@ihabdevteam/core 0.43.0 → 0.45.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/dist/components.cjs.js +8 -8
- package/dist/components.esm.css +5 -5
- package/dist/hooks.cjs.js +1 -1
- package/dist/ihabdevteam-core.cjs.js +11 -11
- package/dist/ihabdevteam-core.d.ts +1 -1
- package/dist/packages/core/src/components/Dropdown.css +0 -11
- package/dist/packages/core/src/components/FilterPanel.css +0 -5
- package/dist/packages/core/src/components/Footer.css +0 -6
- package/dist/packages/core/src/components/Header.css +0 -17
- package/dist/packages/core/src/components/Loader.css +0 -32
- package/dist/packages/core/src/components/Panel.css +2 -16
- package/dist/packages/core/src/components/PaymentPlan.css +0 -61
- package/dist/packages/core/src/components/Popup/DeviceListPopup.css +0 -55
- package/dist/packages/core/src/components/Popup/Popup.css +0 -6
- package/dist/packages/core/src/components/Popup/SaveTablePopup.css +0 -9
- package/dist/packages/core/src/components/Popup/TrainingResultPopup.css +0 -34
- package/dist/packages/core/src/components/SoundCompass.css +0 -8
- package/dist/packages/core/src/components/Table.css +0 -21
- package/dist/packages/core/src/components/Toolbar.css +0 -8
- package/dist/packages/core/src/components/Tooltip/MenuTooltip.css +0 -19
- package/dist/packages/core/src/components/Tooltip/Tooltip.css +0 -17
- package/dist/packages/core/src/components/Tooltip/Tooltip.js +7 -1
- package/dist/packages/core/src/components/Training/CategoryIcon.css +0 -22
- package/dist/packages/core/src/components/Training/TrainingBlock.css +0 -7
- package/dist/packages/core/src/components/Training/TrainingCard.css +0 -42
- package/dist/packages/core/src/components/Training/TrainingStep.css +0 -118
- package/dist/packages/core/src/components/Training/TrainingStepTitle.css +0 -6
- 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
|
@@ -809,7 +809,7 @@ and aids recovery.`,site:{title:"Site",malgwi:"Malgwi",soundDirection:"Sound Dir
|
|
|
809
809
|
* This source code is licensed under the ISC license.
|
|
810
810
|
* See the LICENSE file in the root directory of this source tree.
|
|
811
811
|
*/const f_=[["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"}]],v_=K("thumbs-up",f_),md={"alert-triangle":Jc,"align-start-vertical":tv,anchor:EC,armchair:LC,"arrow-down":ov,"arrow-left":nv,"arrow-right":sv,"arrow-right-left":cv,"arrow-up-a-z":PC,"audio-lines":uv,baby:hv,ban:bv,"bar-chart-2":$C,bell:fv,"book-marked":yv,"book-open":Cv,"bow-arrow":wv,braces:Sv,bug:Tv,calendar:ud,"calendar-check":Nv,"calendar-days":Ev,camera:Lv,car:OC,"chart-column":Pv,"chart-line":$v,"chart-pie":zv,check:ed,"chevron-down":pd,"chevron-left":td,"chevron-right":ad,"chevron-up":hd,circle:d_,"clipboard-list":Vv,coffee:WC,combine:qv,copy:Uv,"credit-card":Zv,database:od,diff:Jv,download:rd,ear:ay,edit:ry,"edit-2":iy,"edit-3":ly,ellipsis:nd,eraser:uy,"external-link":hy,eye:by,"file-text":fy,"flip-horizontal":yy,"folder-open":Cy,"folder-plus":wy,gamepad:Sy,"gamepad-2":VC,gavel:Ty,"git-merge":id,globe:Dy,headphones:jy,heart:My,home:Ry,inbox:qC,info:Iy,"key-round":Oy,landmark:Wy,layers:Vy,"layout-dashboard":qy,leaf:Uy,lightbulb:Zy,link:Qy,"link-2":ex,"link-2-off":ax,list:rx,"list-checks":ix,"list-ordered":lx,"list-tree":UC,loader:dx,lock:px,"log-out":mx,mail:gx,"map-pin":vx,menu:m_,"message-circle":xx,"message-circle-question-mark":_x,"message-square":kx,"message-square-more":ZC,"message-square-text":Ax,minus:QC,"minus-circle":Bx,moon:g_,"more-horizontal":nd,package:Dx,palette:jx,"party-popper":Mx,pause:Rx,pencil:Ix,phone:Ox,play:Wx,"play-circle":Vx,plus:qx,printer:Ux,"refresh-cw":Zx,repeat:Qx,replace:e2,rocket:a2,"rotate-ccw":r2,"rotate-cw":i2,salad:l2,"scan-search":d2,search:m2,"circle-alert":sd,"alert-circle":sd,"check-circle":ld,scissors:g2,"search-x":v2,send:x2,settings:_2,"share-2":e_,"shield-check":k2,"shopping-cart":A2,shuffle:B2,"skip-back":D2,"skip-forward":j2,sparkles:a_,square:M2,star:R2,store:I2,"sun-medium":O2,table:W2,"table-2":V2,tag:q2,terminal:U2,"text-cursor-input":Z2,"text-initial":Q2,"thumbs-up":v_,ticket:eC,trash:rC,triangle:p_,"trash-2":aC,"trending-up":iC,"triangle-alert":Jc,trophy:lC,type:r_,unlink:dC,upload:pC,user:Wn,"user-plus":bC,"user-round":fC,"user-round-check":yC,users:CC,"users-round":wC,volume:i_,"volume-2":cd,wrench:AC,x:dd,zap:NC};function y_(e){return md[e]??null}const bd=new Set;function x_(e){return Kc&&!(e in md)&&!bd.has(e)&&(bd.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 C_=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 __(e){const t=e.toLowerCase();if(t.startsWith("http://")||t.startsWith("https://")||t.startsWith("data:")||e.includes("/assets/"))return null;const a=(e.split("/").pop()||"").replace(/\.svg$/,"");return a?C_(a):null}const gd=new Map;function w_(e){const t=typeof e=="string"?__(e):null,a=t?y_(t)??gd.get(t)??null:null,[r,n]=l.useState(null);return l.useEffect(()=>{if(!t||a)return;let i=!1;return x_(t).then(s=>{gd.set(t,s),i||n(s)}),()=>{i=!0}},[t,a]),a??r}/*! @license DOMPurify 3.4.14 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.4.14/LICENSE */function fd(e,t){(t==null||t>e.length)&&(t=e.length);for(var a=0,r=Array(t);a<t;a++)r[a]=e[a];return r}function k_(e){if(Array.isArray(e))return e}function S_(e,t){var a=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(a!=null){var r,n,i,s,c=[],u=!0,d=!1;try{if(i=(a=a.call(e)).next,t!==0)for(;!(u=(r=i.call(a)).done)&&(c.push(r.value),c.length!==t);u=!0);}catch(p){d=!0,n=p}finally{try{if(!u&&a.return!=null&&(s=a.return(),Object(s)!==s))return}finally{if(d)throw n}}return c}}function A_(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
812
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function T_(e,t){return k_(e)||S_(e,t)||B_(e,t)||A_()}function B_(e,t){if(e){if(typeof e=="string")return fd(e,t);var a={}.toString.call(e).slice(8,-1);return a==="Object"&&e.constructor&&(a=e.constructor.name),a==="Map"||a==="Set"?Array.from(e):a==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?fd(e,t):void 0}}const vd=Object.entries,yd=Object.setPrototypeOf,N_=Object.isFrozen,D_=Object.getPrototypeOf,E_=Object.getOwnPropertyDescriptor;let bt=Object.freeze,yt=Object.seal,uo=Object.create,xd=typeof Reflect<"u"&&Reflect,Hn=xd.apply,Vn=xd.construct;bt||(bt=function(t){return t}),yt||(yt=function(t){return t}),Hn||(Hn=function(t,a){for(var r=arguments.length,n=new Array(r>2?r-2:0),i=2;i<r;i++)n[i-2]=arguments[i];return t.apply(a,n)}),Vn||(Vn=function(t){for(var a=arguments.length,r=new Array(a>1?a-1:0),n=1;n<a;n++)r[n-1]=arguments[n];return new t(...r)});const Ya=pt(Array.prototype.forEach),j_=pt(Array.prototype.lastIndexOf),Cd=pt(Array.prototype.pop),Mo=pt(Array.prototype.push),L_=pt(Array.prototype.splice),po=Array.isArray,Po=pt(String.prototype.toLowerCase),Gn=pt(String.prototype.toString),_d=pt(String.prototype.match),Ro=pt(String.prototype.replace),wd=pt(String.prototype.indexOf),M_=pt(String.prototype.trim),P_=pt(Number.prototype.toString),R_=pt(Boolean.prototype.toString),kd=typeof BigInt>"u"?null:pt(BigInt.prototype.toString),Sd=typeof Symbol>"u"?null:pt(Symbol.prototype.toString),Rt=pt(Object.prototype.hasOwnProperty),$o=pt(Object.prototype.toString),St=pt(RegExp.prototype.test),Ua=$_(TypeError);function pt(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var a=arguments.length,r=new Array(a>1?a-1:0),n=1;n<a;n++)r[n-1]=arguments[n];return Hn(e,t,r)}}function $_(e){return function(){for(var t=arguments.length,a=new Array(t),r=0;r<t;r++)a[r]=arguments[r];return Vn(e,a)}}function qe(e,t){let a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Po;if(yd&&yd(e,null),!po(t))return e;let r=t.length;for(;r--;){let n=t[r];if(typeof n=="string"){const i=a(n);i!==n&&(N_(t)||(t[r]=i),n=i)}e[n]=!0}return e}function I_(e){for(let t=0;t<e.length;t++)Rt(e,t)||(e[t]=null);return e}function zt(e){const t=uo(null);for(const r of vd(e)){var a=T_(r,2);const n=a[0],i=a[1];Rt(e,n)&&(po(i)?t[n]=I_(i):i&&typeof i=="object"&&i.constructor===Object?t[n]=zt(i):t[n]=i)}return t}function z_(e){switch(typeof e){case"string":return e;case"number":return P_(e);case"boolean":return R_(e);case"bigint":return kd?kd(e):"0";case"symbol":return Sd?Sd(e):"Symbol()";case"undefined":return $o(e);case"function":case"object":{if(e===null)return $o(e);const t=e,a=Xt(t,"toString");if(typeof a=="function"){const r=a(t);return typeof r=="string"?r:$o(r)}return $o(e)}default:return $o(e)}}function Xt(e,t){for(;e!==null;){const r=E_(e,t);if(r){if(r.get)return pt(r.get);if(typeof r.value=="function")return pt(r.value)}e=D_(e)}function a(){return null}return a}function O_(e){try{return St(e,""),!0}catch{return!1}}const Ad=bt(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),qn=bt(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),Yn=bt(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),F_=bt(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),Un=bt(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),W_=bt(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Td=bt(["#text"]),Bd=bt(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","command","commandfor","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns"]),Kn=bt(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dominant-baseline","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","pointer-events","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-orientation","text-rendering","textlength","type","u1","u2","unicode","values","vector-effect","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),Nd=bt(["accent","accentunder","align","bevelled","close","columnalign","columnlines","columnspacing","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lquote","lspace","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),Br=bt(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),H_=yt(/{{[\w\W]*|^[\w\W]*}}/g),V_=yt(/<%[\w\W]*|^[\w\W]*%>/g),G_=yt(/\${[\w\W]*/g),q_=yt(/^data-[\-\w.\u00B7-\uFFFF]+$/),Y_=yt(/^aria-[\-\w]+$/),Dd=yt(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),U_=yt(/^(?:\w+script|data):/i),K_=yt(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Z_=yt(/^html$/i),X_=yt(/^[a-z][.\w]*(-[.\w]+)+$/i),Ed=yt(/<[/\w!]/g),jd=yt(/<[/\w]/g),Q_=yt(/<\/no(script|embed|frames)/i),J_=yt(/\/>/i),Ot={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,processingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},Ld=["style","script","xmp","iframe","noembed","noframes","plaintext","noscript"],ew=bt(qe({},Ld)),tw=(function(){const e={};return Ya(Ld,t=>{e[t]=yt(new RegExp("</"+t+"(?=[\\t\\n\\f\\r />])","i"))}),bt(e)})(),aw=function(){return typeof window>"u"?null:window},ow=function(t,a){if(typeof t!="object"||typeof t.createPolicy!="function")return null;let r=null;const n="data-tt-policy-suffix";a&&a.hasAttribute(n)&&(r=a.getAttribute(n));const i="dompurify"+(r?"#"+r:"");try{return t.createPolicy(i,{createHTML(s){return s},createScriptURL(s){return s}})}catch{return console.warn("TrustedTypes policy "+i+" could not be created."),null}},Md=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},La=function(t,a,r,n){return Rt(t,a)&&po(t[a])?qe(n.base?zt(n.base):{},t[a],n.transform):r},Zn=function(t,a,r){const n=Rt(t,a)?t[a]:void 0;return n&&typeof n=="object"?zt(n):r()};function Pd(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:aw();const t=he=>Pd(he);if(t.version="3.4.14",t.removed=[],!e||!e.document||e.document.nodeType!==Ot.document||!e.Element)return t.isSupported=!1,t;let a=e.document;const r=a,n=r.currentScript;e.DocumentFragment;const i=e.HTMLTemplateElement,s=e.Node,c=e.Element,u=e.NodeFilter,d=e.NamedNodeMap;d===void 0&&(e.NamedNodeMap||e.MozNamedAttrMap),e.HTMLFormElement;const p=e.DOMParser,m=e.trustedTypes,h=c.prototype,g=Xt(h,"cloneNode"),f=Xt(h,"remove"),b=Xt(h,"nextSibling"),y=Xt(h,"childNodes"),v=Xt(h,"parentNode"),C=Xt(h,"shadowRoot"),w=Xt(h,"attributes"),x=s&&s.prototype?Xt(s.prototype,"nodeType"):null,S=s&&s.prototype?Xt(s.prototype,"nodeName"):null,_=s&&s.prototype?Xt(s.prototype,"ownerDocument"):null,k=function(B){return x?x(B):B.nodeType},N=function(B){return S?S(B):B.nodeName};if(typeof i=="function"){const he=a.createElement("template");he.content&&he.content.ownerDocument&&(a=he.content.ownerDocument)}let A,D="",H,P=!1,T=0;const E=function(){if(T>0)throw Ua('A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the "DOMPurify and Trusted Types" section of the README.')},L=function(B){E(),T++;try{return A.createHTML(B)}finally{T--}},F=function(B){E(),T++;try{return A.createScriptURL(B)}finally{T--}},te=function(){return P||(H=ow(m,n),P=!0),H},Z=a,V=Z.implementation,j=Z.createNodeIterator,M=Z.createDocumentFragment,$=Z.getElementsByTagName,W=r.importNode;let q=Md();t.isSupported=typeof vd=="function"&&typeof v=="function"&&V&&V.createHTMLDocument!==void 0;const X=H_,O=V_,Y=G_,z=q_,re=Y_,Q=U_,ne=K_,me=X_;let ce=Dd,I=null;const ee=qe({},[...Ad,...qn,...Yn,...Un,...Td]);let pe=null;const ke=qe({},[...Bd,...Kn,...Nd,...Br]);let Ce=Object.seal(uo(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}})),R=null,oe=null;const ae=Object.seal(uo(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let ve=!0,De=!0,ze=!1,Re=!0,Me=!1,Ye=!0,Ne=!1,Ve=!1,Fe=null,be=null,Ke=!1,We=!1,Le=!1,Ge=!1,vt=!0,Ue=!1;const Xe="user-content-";let ut=!0,Pe=!1,rt={},et=null;const Oe=qe({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","selectedcontent","style","svg","template","thead","title","video","xmp"]);let Qe=null;const tt=qe({},["audio","video","img","source","image","track"]);let xt=null;const Et=qe({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),it="http://www.w3.org/1998/Math/MathML",Ht="http://www.w3.org/2000/svg",mt="http://www.w3.org/1999/xhtml";let Vt=mt,ia=!1,Gt=null;const Ea=qe({},[it,Ht,mt],Gn),sa=bt(["mi","mo","mn","ms","mtext"]);let Kt=qe({},sa);const ja=bt(["annotation-xml"]);let jt=qe({},ja);const Ga=qe({},["title","style","font","a","script"]);let $t=null;const ya=["application/xhtml+xml","text/html"],qa="text/html";let Je=null,It=null;const kt=a.createElement("form"),xa=function(B){return B instanceof RegExp||B instanceof Function},la=function(){let B=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(It&&It===B)return;(!B||typeof B!="object")&&(B={}),B=zt(B),$t=ya.indexOf(B.PARSER_MEDIA_TYPE)===-1?qa:B.PARSER_MEDIA_TYPE,Je=$t==="application/xhtml+xml"?Gn:Po,I=La(B,"ALLOWED_TAGS",ee,{transform:Je}),pe=La(B,"ALLOWED_ATTR",ke,{transform:Je}),Gt=La(B,"ALLOWED_NAMESPACES",Ea,{transform:Gn}),xt=La(B,"ADD_URI_SAFE_ATTR",Et,{transform:Je,base:Et}),Qe=La(B,"ADD_DATA_URI_TAGS",tt,{transform:Je,base:tt}),et=La(B,"FORBID_CONTENTS",Oe,{transform:Je}),R=La(B,"FORBID_TAGS",zt({}),{transform:Je}),oe=La(B,"FORBID_ATTR",zt({}),{transform:Je}),rt=Rt(B,"USE_PROFILES")?B.USE_PROFILES&&typeof B.USE_PROFILES=="object"?zt(B.USE_PROFILES):B.USE_PROFILES:!1,ve=B.ALLOW_ARIA_ATTR!==!1,De=B.ALLOW_DATA_ATTR!==!1,ze=B.ALLOW_UNKNOWN_PROTOCOLS||!1,Re=B.ALLOW_SELF_CLOSE_IN_ATTR!==!1,Me=B.SAFE_FOR_TEMPLATES||!1,Ye=B.SAFE_FOR_XML!==!1,Ne=B.WHOLE_DOCUMENT||!1,We=B.RETURN_DOM||!1,Le=B.RETURN_DOM_FRAGMENT||!1,Ge=B.RETURN_TRUSTED_TYPE||!1,Ke=B.FORCE_BODY||!1,vt=B.SANITIZE_DOM!==!1,Ue=B.SANITIZE_NAMED_PROPS||!1,ut=B.KEEP_CONTENT!==!1,Pe=B.IN_PLACE||!1,ce=O_(B.ALLOWED_URI_REGEXP)?B.ALLOWED_URI_REGEXP:Dd,Vt=typeof B.NAMESPACE=="string"?B.NAMESPACE:mt,Kt=Zn(B,"MATHML_TEXT_INTEGRATION_POINTS",()=>qe({},sa)),jt=Zn(B,"HTML_INTEGRATION_POINTS",()=>qe({},ja));const G=Zn(B,"CUSTOM_ELEMENT_HANDLING",()=>uo(null));if(Ce=uo(null),Rt(G,"tagNameCheck")&&xa(G.tagNameCheck)&&(Ce.tagNameCheck=G.tagNameCheck),Rt(G,"attributeNameCheck")&&xa(G.attributeNameCheck)&&(Ce.attributeNameCheck=G.attributeNameCheck),Rt(G,"allowCustomizedBuiltInElements")&&typeof G.allowCustomizedBuiltInElements=="boolean"&&(Ce.allowCustomizedBuiltInElements=G.allowCustomizedBuiltInElements),yt(Ce),Me&&(De=!1),Le&&(We=!0),rt&&(I=qe({},Td),pe=uo(null),rt.html===!0&&(qe(I,Ad),qe(pe,Bd)),rt.svg===!0&&(qe(I,qn),qe(pe,Kn),qe(pe,Br)),rt.svgFilters===!0&&(qe(I,Yn),qe(pe,Kn),qe(pe,Br)),rt.mathMl===!0&&(qe(I,Un),qe(pe,Nd),qe(pe,Br))),ae.tagCheck=null,ae.attributeCheck=null,Rt(B,"ADD_TAGS")&&(typeof B.ADD_TAGS=="function"?ae.tagCheck=B.ADD_TAGS:po(B.ADD_TAGS)&&(I===ee&&(I=zt(I)),qe(I,B.ADD_TAGS,Je))),Rt(B,"ADD_ATTR")&&(typeof B.ADD_ATTR=="function"?ae.attributeCheck=B.ADD_ATTR:po(B.ADD_ATTR)&&(pe===ke&&(pe=zt(pe)),qe(pe,B.ADD_ATTR,Je))),Rt(B,"ADD_FORBID_CONTENTS")&&po(B.ADD_FORBID_CONTENTS)&&(et===Oe&&(et=zt(et)),qe(et,B.ADD_FORBID_CONTENTS,Je)),ut&&(I["#text"]=!0),Ne&&qe(I,["html","head","body"]),I.table&&(qe(I,["tbody"]),delete R.tbody),B.TRUSTED_TYPES_POLICY){if(typeof B.TRUSTED_TYPES_POLICY.createHTML!="function")throw Ua('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof B.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw Ua('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');const le=A;A=B.TRUSTED_TYPES_POLICY;try{D=L("")}catch(we){throw A=le,we}}else B.TRUSTED_TYPES_POLICY===null?(A=void 0,D=""):(A===void 0&&(A=te()),A&&typeof D=="string"&&(D=L("")));bt&&bt(B),It=B},ie=qe({},[...qn,...Yn,...F_]),fe=qe({},[...Un,...W_]),ye=function(B,G,le){return G.namespaceURI===mt?B==="svg":G.namespaceURI===it?B==="svg"&&(le==="annotation-xml"||Kt[le]):!!ie[B]},U=function(B,G,le){return G.namespaceURI===mt?B==="math":G.namespaceURI===Ht?B==="math"&&jt[le]:!!fe[B]},de=function(B,G,le){return G.namespaceURI===Ht&&!jt[le]||G.namespaceURI===it&&!Kt[le]?!1:!fe[B]&&(Ga[B]||!ie[B])},_e=function(B){let G=v(B);(!G||!G.tagName)&&(G={namespaceURI:Vt,tagName:"template"});const le=Po(B.tagName),we=Po(G.tagName);return Gt[B.namespaceURI]?B.namespaceURI===Ht?ye(le,G,we):B.namespaceURI===it?U(le,G,we):B.namespaceURI===mt?de(le,G,we):!!($t==="application/xhtml+xml"&&Gt[B.namespaceURI]):!1},Se=function(B){Mo(t.removed,{element:B});try{v(B).removeChild(B)}catch{if(f(B),!v(B))throw Ua("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place")}},Ae=function(B,G,le){try{B.removeAttributeNode(G)}catch{try{B.removeAttribute(le)}catch{}}},$e=function(B){ue(B);const G=y(B);if(G){const we=[];Ya(G,Be=>{Mo(we,Be)}),Ya(we,Be=>{try{f(Be)}catch{}})}const le=w(B);if(le)for(let we=le.length-1;we>=0;--we){const Be=le[we],je=Be&&Be.name;typeof je=="string"&&Ae(B,Be,je)}},nt=function(B,G,le){if(!le)try{le=G.getAttributeNode(B)}catch{le=null}Mo(t.removed,{attribute:le||null,from:G});try{le?G.removeAttributeNode(le):G.removeAttribute(B)}catch{try{G.removeAttribute(B)}catch{}}if(B==="is")if(We||Le)try{Se(G)}catch{}else try{G.setAttribute(B,"")}catch{}},ct=function(B){const G=w(B);if(G)for(let le=G.length-1;le>=0;--le){const we=G[le],Be=we&&we.name;typeof Be!="string"||pe[Je(Be)]||Ae(B,we,Be)}},ue=function(B){const G=[B];for(;G.length>0;){const le=G.pop();k(le)===Ot.element&&ct(le);const Be=y(le);if(Be)for(let je=Be.length-1;je>=0;--je)G.push(Be[je])}},Te=function(B,G){return Ye?B==="patchsrc"?!0:B==="for"&&G!=="label"&&G!=="output":!1},at=function(B){if(!Ye)return;const G=[B];for(;G.length>0;){const le=G.pop(),we=k(le);if(we===Ot.processingInstruction||we===Ot.comment&&St(jd,le.data)){try{f(le)}catch{}continue}if(we===Ot.element){const je=le,ot=Je(N(le));try{je.hasAttribute&&je.hasAttribute("patchsrc")&&je.removeAttribute("patchsrc"),je.hasAttribute&&je.hasAttribute("for")&&Te("for",ot)&&je.removeAttribute("for")}catch{}}const Be=y(le);if(Be)for(let je=Be.length-1;je>=0;--je)G.push(Be[je])}},Ct=function(B){let G=null,le=null;if(Ke)B="<remove></remove>"+B;else{const je=_d(B,/^[\r\n\t ]+/);le=je&&je[0]}$t==="application/xhtml+xml"&&Vt===mt&&(B='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+B+"</body></html>");const we=A?L(B):B;if(Vt===mt)try{G=new p().parseFromString(we,$t)}catch{}if(!G||!G.documentElement){G=V.createDocument(Vt,"template",null);try{G.documentElement.innerHTML=ia?D:we}catch{}}const Be=G.body||G.documentElement;return B&&le&&Be.insertBefore(a.createTextNode(le),Be.childNodes[0]||null),Vt===mt?$.call(G,Ne?"html":"body")[0]:Ne?G.documentElement:Be},_t=function(B){const G=_?_(B):B.ownerDocument;return j.call(G||B,B,u.SHOW_ELEMENT|u.SHOW_COMMENT|u.SHOW_TEXT|u.SHOW_PROCESSING_INSTRUCTION|u.SHOW_CDATA_SECTION,null)},Zt=function(B){return B=Ro(B,X," "),B=Ro(B,O," "),B=Ro(B,Y," "),B},Eo=function(B){var G;B.normalize();const le=_?_(B):B.ownerDocument,we=j.call(le||B,B,u.SHOW_TEXT|u.SHOW_COMMENT|u.SHOW_CDATA_SECTION|u.SHOW_PROCESSING_INSTRUCTION,null);let Be=we.nextNode();for(;Be;)Be.data=Zt(Be.data),Be=we.nextNode();const je=(G=B.querySelectorAll)===null||G===void 0?void 0:G.call(B,"template");je&&Ya(je,ot=>{lo(ot.content)&&Eo(ot.content)})},Sr=function(B){const G=S?S(B):null;return typeof G!="string"||Je(G)!=="form"?!1:typeof B.nodeName!="string"||typeof B.textContent!="string"||typeof B.removeChild!="function"||B.attributes!==w(B)||typeof B.removeAttribute!="function"||typeof B.setAttribute!="function"||typeof B.namespaceURI!="string"||typeof B.insertBefore!="function"||typeof B.hasChildNodes!="function"||B.nodeType!==x(B)||B.childNodes!==y(B)},lo=function(B){if(!x||typeof B!="object"||B===null)return!1;try{return x(B)===Ot.documentFragment}catch{return!1}},jo=function(B){if(!x||typeof B!="object"||B===null)return!1;try{return typeof x(B)=="number"}catch{return!1}};function ca(he,B,G){he.length!==0&&Ya(he,le=>{le.call(t,B,G,It)})}const vg=function(B,G){return!!(Ye&&B.hasChildNodes()&&!jo(B.firstElementChild)&&St(Ed,B.textContent)&&St(Ed,B.innerHTML)||Ye&&B.namespaceURI===mt&&ew[G]&&(jo(B.firstElementChild)||typeof B.textContent=="string"&&St(tw[G],B.textContent))||B.nodeType===Ot.processingInstruction||Ye&&B.nodeType===Ot.comment&&St(jd,B.data))},Ar=function(B,G){if(B instanceof RegExp)return St(B,G);if(B instanceof Function){for(var le=arguments.length,we=new Array(le>2?le-2:0),Be=2;Be<le;Be++)we[Be-2]=arguments[Be];return!!B(G,...we)}return!1},yg=function(B,G,le){if(!R[G]&&Hc(G)&&Ar(Ce.tagNameCheck,G))return!1;if(ut&&!et[G]){const we=v(B),Be=y(B);if(Be&&we){const je=Be.length;for(let ot=je-1;ot>=0;--ot){const st=B===le?g(Be[ot],!0):Be[ot];we.insertBefore(st,b(B))}}}return Se(B),!0},zc=function(B,G,le,we){return B.length===0?G:G===le||G===we?zt(G):G},Oc=function(B,G){return B===G||v(B)!==null?!1:(Pe&&ue(B),!0)},Fc=function(B,G){if(ca(q.beforeSanitizeElements,B,null),Oc(B,G))return!0;if(Sr(B))return Se(B),!0;const le=Je(N(B));if(I=zc(q.uponSanitizeElement,I,ee,Fe),ca(q.uponSanitizeElement,B,{tagName:le,allowedTags:I}),Oc(B,G))return!0;if(vg(B,le))return Se(B),!0;if(R[le]||!(ae.tagCheck instanceof Function&&ae.tagCheck(le))&&!I[le]){const Be=yg(B,le,G);return Be===!1&&ca(q.afterSanitizeElements,B,null),Be}if(k(B)===Ot.element&&!_e(B)||(le==="noscript"||le==="noembed"||le==="noframes")&&St(Q_,B.innerHTML))return Se(B),!0;if(Me&&B.nodeType===Ot.text){const Be=Zt(B.textContent);B.textContent!==Be&&(Mo(t.removed,{element:B.cloneNode()}),B.textContent=Be)}return ca(q.afterSanitizeElements,B,null),!1},Wc=function(B,G,le){if(oe[G]||Te(G,B)||vt&&(G==="id"||G==="name")&&(le in a||le in kt))return!1;const we=pe[G]||ae.attributeCheck instanceof Function&&ae.attributeCheck(G,B);return De&&St(z,G)||ve&&St(re,G)?!0:we?xt[G]||St(ce,Ro(le,ne,""))||(G==="src"||G==="xlink:href"||G==="href")&&B!=="script"&&wd(le,"data:")===0&&Qe[B]||ze&&!St(Q,Ro(le,ne,""))?!0:!le:Hc(B)&&Ar(Ce.tagNameCheck,B)&&Ar(Ce.attributeNameCheck,G,B)||G==="is"&&Ce.allowCustomizedBuiltInElements&&Ar(Ce.tagNameCheck,le)},xg=qe({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),Hc=function(B){return!xg[Po(B)]&&St(me,B)},Cg=function(B,G,le,we){if(A&&typeof m=="object"&&typeof m.getAttributeType=="function"&&!le)switch(m.getAttributeType(B,G)){case"TrustedHTML":return L(we);case"TrustedScriptURL":return F(we)}return we},_g=function(B,G,le,we){try{le?B.setAttributeNS(le,G,we):B.setAttribute(G,we),Sr(B)?Se(B):Cd(t.removed)}catch{nt(G,B)}},Vc=function(B){ca(q.beforeSanitizeAttributes,B,null);const G=B.attributes;if(!G||Sr(B))return;pe=zc(q.uponSanitizeAttribute,pe,ke,be);const le={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:pe,forceKeepAttr:void 0};let we=G.length;const Be=Je(B.nodeName);for(;we--;){const je=G[we],ot=je.name,st=je.namespaceURI,Mt=je.value,Pt=Je(ot),zn=Mt;let Lt=ot==="value"?zn:M_(zn);if(le.attrName=Pt,le.attrValue=Lt,le.keepAttr=!0,le.forceKeepAttr=void 0,ca(q.uponSanitizeAttribute,B,le),Lt=le.attrValue,Ue&&(Pt==="id"||Pt==="name")&&wd(Lt,Xe)!==0&&(nt(ot,B,je),Lt=Xe+Lt),Ye&&St(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,Lt)){nt(ot,B,je);continue}if(Pt==="attributename"&&_d(Lt,"href")){nt(ot,B,je);continue}if(!le.forceKeepAttr){if(!le.keepAttr){nt(ot,B,je);continue}if(!Re&&St(J_,Lt)){nt(ot,B,je);continue}if(Me&&(Lt=Zt(Lt)),!Wc(Be,Pt,Lt)){nt(ot,B,je);continue}Lt=Cg(Be,Pt,st,Lt),Lt!==zn&&_g(B,ot,st,Lt)}}ca(q.afterSanitizeAttributes,B,null)},Tr=function(B){let G=null;const le=_t(B);for(ca(q.beforeSanitizeShadowDOM,B,null);G=le.nextNode();)if(ca(q.uponSanitizeShadowNode,G,null),Fc(G,B),Vc(G),lo(G.content)&&Tr(G.content),k(G)===Ot.element){const we=C(G);lo(we)&&(In(we),Tr(we))}ca(q.afterSanitizeShadowDOM,B,null)},In=function(B){const G=[{node:B,shadow:null}];for(;G.length>0;){const le=G.pop();if(le.shadow){Tr(le.shadow);continue}const we=le.node,je=k(we)===Ot.element,ot=y(we);if(ot)for(let st=ot.length-1;st>=0;--st)G.push({node:ot[st],shadow:null});if(je){const st=S?S(we):null;if(typeof st=="string"&&Je(st)==="template"){const Mt=we.content;lo(Mt)&&G.push({node:Mt,shadow:null})}}if(je){const st=C(we);lo(st)&&G.push({node:null,shadow:st},{node:st,shadow:null})}}};return t.sanitize=function(he){let B=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},G=null,le=null,we=null,Be=null;if(ia=!he,ia&&(he="<!-->"),typeof he!="string"&&!jo(he)&&(he=z_(he),typeof he!="string"))throw Ua("dirty is not a string, aborting");if(!t.isSupported)return he;Ve?(I=Fe,pe=be):la(B),(q.uponSanitizeElement.length>0||q.uponSanitizeAttribute.length>0)&&(I=zt(I)),q.uponSanitizeAttribute.length>0&&(pe=zt(pe)),t.removed=[];const je=Pe&&typeof he!="string"&&jo(he);if(je){at(he);const Mt=N(he);if(typeof Mt=="string"){const Pt=Je(Mt);if(!I[Pt]||R[Pt])throw $e(he),Ua("root node is forbidden and cannot be sanitized in-place")}if(Sr(he))throw $e(he),Ua("root node is clobbered and cannot be sanitized in-place");try{In(he)}catch(Pt){throw $e(he),Pt}}else if(jo(he))G=Ct("<!---->"),le=G.ownerDocument.importNode(he,!0),le.nodeType===Ot.element&&le.nodeName==="BODY"||le.nodeName==="HTML"?G=le:G.appendChild(le),In(le);else{if(!We&&!Me&&!Ne&&he.indexOf("<")===-1)return A&&Ge?L(he):he;if(G=Ct(he),!G)return We?null:Ge?D:""}G&&Ke&&Se(G.firstChild);const ot=je?he:G;try{const Mt=_t(ot);for(;we=Mt.nextNode();)Fc(we,ot),Vc(we),lo(we.content)&&Tr(we.content)}catch(Mt){throw je&&($e(he),Ya(t.removed,Pt=>{Pt.element&&ue(Pt.element)})),Mt}if(je)return Ya(t.removed,Mt=>{Mt.element&&ue(Mt.element)}),Me&&Eo(he),he;if(We){if(Me&&Eo(G),Le)for(Be=M.call(G.ownerDocument);G.firstChild;)Be.appendChild(G.firstChild);else Be=G;return(pe.shadowroot||pe.shadowrootmode)&&(Be=W.call(r,Be,!0)),Be}let st=Ne?G.outerHTML:G.innerHTML;return Ne&&I["!doctype"]&&G.ownerDocument&&G.ownerDocument.doctype&&G.ownerDocument.doctype.name&&St(Z_,G.ownerDocument.doctype.name)&&(st="<!DOCTYPE "+G.ownerDocument.doctype.name+`>
|
|
812
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function T_(e,t){return k_(e)||S_(e,t)||B_(e,t)||A_()}function B_(e,t){if(e){if(typeof e=="string")return fd(e,t);var a={}.toString.call(e).slice(8,-1);return a==="Object"&&e.constructor&&(a=e.constructor.name),a==="Map"||a==="Set"?Array.from(e):a==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?fd(e,t):void 0}}const vd=Object.entries,yd=Object.setPrototypeOf,N_=Object.isFrozen,D_=Object.getPrototypeOf,E_=Object.getOwnPropertyDescriptor;let bt=Object.freeze,yt=Object.seal,uo=Object.create,xd=typeof Reflect<"u"&&Reflect,Hn=xd.apply,Vn=xd.construct;bt||(bt=function(t){return t}),yt||(yt=function(t){return t}),Hn||(Hn=function(t,a){for(var r=arguments.length,n=new Array(r>2?r-2:0),i=2;i<r;i++)n[i-2]=arguments[i];return t.apply(a,n)}),Vn||(Vn=function(t){for(var a=arguments.length,r=new Array(a>1?a-1:0),n=1;n<a;n++)r[n-1]=arguments[n];return new t(...r)});const Ya=pt(Array.prototype.forEach),j_=pt(Array.prototype.lastIndexOf),Cd=pt(Array.prototype.pop),Mo=pt(Array.prototype.push),L_=pt(Array.prototype.splice),po=Array.isArray,Po=pt(String.prototype.toLowerCase),Gn=pt(String.prototype.toString),_d=pt(String.prototype.match),Ro=pt(String.prototype.replace),wd=pt(String.prototype.indexOf),M_=pt(String.prototype.trim),P_=pt(Number.prototype.toString),R_=pt(Boolean.prototype.toString),kd=typeof BigInt>"u"?null:pt(BigInt.prototype.toString),Sd=typeof Symbol>"u"?null:pt(Symbol.prototype.toString),Rt=pt(Object.prototype.hasOwnProperty),$o=pt(Object.prototype.toString),St=pt(RegExp.prototype.test),Ua=$_(TypeError);function pt(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var a=arguments.length,r=new Array(a>1?a-1:0),n=1;n<a;n++)r[n-1]=arguments[n];return Hn(e,t,r)}}function $_(e){return function(){for(var t=arguments.length,a=new Array(t),r=0;r<t;r++)a[r]=arguments[r];return Vn(e,a)}}function qe(e,t){let a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Po;if(yd&&yd(e,null),!po(t))return e;let r=t.length;for(;r--;){let n=t[r];if(typeof n=="string"){const i=a(n);i!==n&&(N_(t)||(t[r]=i),n=i)}e[n]=!0}return e}function I_(e){for(let t=0;t<e.length;t++)Rt(e,t)||(e[t]=null);return e}function zt(e){const t=uo(null);for(const r of vd(e)){var a=T_(r,2);const n=a[0],i=a[1];Rt(e,n)&&(po(i)?t[n]=I_(i):i&&typeof i=="object"&&i.constructor===Object?t[n]=zt(i):t[n]=i)}return t}function z_(e){switch(typeof e){case"string":return e;case"number":return P_(e);case"boolean":return R_(e);case"bigint":return kd?kd(e):"0";case"symbol":return Sd?Sd(e):"Symbol()";case"undefined":return $o(e);case"function":case"object":{if(e===null)return $o(e);const t=e,a=Xt(t,"toString");if(typeof a=="function"){const r=a(t);return typeof r=="string"?r:$o(r)}return $o(e)}default:return $o(e)}}function Xt(e,t){for(;e!==null;){const r=E_(e,t);if(r){if(r.get)return pt(r.get);if(typeof r.value=="function")return pt(r.value)}e=D_(e)}function a(){return null}return a}function O_(e){try{return St(e,""),!0}catch{return!1}}const Ad=bt(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),qn=bt(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),Yn=bt(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),F_=bt(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),Un=bt(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),W_=bt(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Td=bt(["#text"]),Bd=bt(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","command","commandfor","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns"]),Kn=bt(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dominant-baseline","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","pointer-events","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-orientation","text-rendering","textlength","type","u1","u2","unicode","values","vector-effect","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),Nd=bt(["accent","accentunder","align","bevelled","close","columnalign","columnlines","columnspacing","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lquote","lspace","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),Nr=bt(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),H_=yt(/{{[\w\W]*|^[\w\W]*}}/g),V_=yt(/<%[\w\W]*|^[\w\W]*%>/g),G_=yt(/\${[\w\W]*/g),q_=yt(/^data-[\-\w.\u00B7-\uFFFF]+$/),Y_=yt(/^aria-[\-\w]+$/),Dd=yt(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),U_=yt(/^(?:\w+script|data):/i),K_=yt(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Z_=yt(/^html$/i),X_=yt(/^[a-z][.\w]*(-[.\w]+)+$/i),Ed=yt(/<[/\w!]/g),jd=yt(/<[/\w]/g),Q_=yt(/<\/no(script|embed|frames)/i),J_=yt(/\/>/i),Ot={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,processingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},Ld=["style","script","xmp","iframe","noembed","noframes","plaintext","noscript"],ew=bt(qe({},Ld)),tw=(function(){const e={};return Ya(Ld,t=>{e[t]=yt(new RegExp("</"+t+"(?=[\\t\\n\\f\\r />])","i"))}),bt(e)})(),aw=function(){return typeof window>"u"?null:window},ow=function(t,a){if(typeof t!="object"||typeof t.createPolicy!="function")return null;let r=null;const n="data-tt-policy-suffix";a&&a.hasAttribute(n)&&(r=a.getAttribute(n));const i="dompurify"+(r?"#"+r:"");try{return t.createPolicy(i,{createHTML(s){return s},createScriptURL(s){return s}})}catch{return console.warn("TrustedTypes policy "+i+" could not be created."),null}},Md=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},La=function(t,a,r,n){return Rt(t,a)&&po(t[a])?qe(n.base?zt(n.base):{},t[a],n.transform):r},Zn=function(t,a,r){const n=Rt(t,a)?t[a]:void 0;return n&&typeof n=="object"?zt(n):r()};function Pd(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:aw();const t=he=>Pd(he);if(t.version="3.4.14",t.removed=[],!e||!e.document||e.document.nodeType!==Ot.document||!e.Element)return t.isSupported=!1,t;let a=e.document;const r=a,n=r.currentScript;e.DocumentFragment;const i=e.HTMLTemplateElement,s=e.Node,c=e.Element,u=e.NodeFilter,d=e.NamedNodeMap;d===void 0&&(e.NamedNodeMap||e.MozNamedAttrMap),e.HTMLFormElement;const p=e.DOMParser,m=e.trustedTypes,h=c.prototype,g=Xt(h,"cloneNode"),f=Xt(h,"remove"),b=Xt(h,"nextSibling"),y=Xt(h,"childNodes"),v=Xt(h,"parentNode"),C=Xt(h,"shadowRoot"),w=Xt(h,"attributes"),x=s&&s.prototype?Xt(s.prototype,"nodeType"):null,S=s&&s.prototype?Xt(s.prototype,"nodeName"):null,_=s&&s.prototype?Xt(s.prototype,"ownerDocument"):null,k=function(B){return x?x(B):B.nodeType},N=function(B){return S?S(B):B.nodeName};if(typeof i=="function"){const he=a.createElement("template");he.content&&he.content.ownerDocument&&(a=he.content.ownerDocument)}let A,D="",H,P=!1,T=0;const E=function(){if(T>0)throw Ua('A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the "DOMPurify and Trusted Types" section of the README.')},L=function(B){E(),T++;try{return A.createHTML(B)}finally{T--}},F=function(B){E(),T++;try{return A.createScriptURL(B)}finally{T--}},te=function(){return P||(H=ow(m,n),P=!0),H},Z=a,V=Z.implementation,j=Z.createNodeIterator,M=Z.createDocumentFragment,$=Z.getElementsByTagName,W=r.importNode;let q=Md();t.isSupported=typeof vd=="function"&&typeof v=="function"&&V&&V.createHTMLDocument!==void 0;const X=H_,O=V_,Y=G_,z=q_,re=Y_,Q=U_,ne=K_,me=X_;let ce=Dd,I=null;const ee=qe({},[...Ad,...qn,...Yn,...Un,...Td]);let pe=null;const ke=qe({},[...Bd,...Kn,...Nd,...Nr]);let Ce=Object.seal(uo(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}})),R=null,oe=null;const ae=Object.seal(uo(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let ve=!0,De=!0,ze=!1,Re=!0,Me=!1,Ye=!0,Ne=!1,Ve=!1,Fe=null,be=null,Ke=!1,We=!1,Le=!1,Ge=!1,vt=!0,Ue=!1;const Xe="user-content-";let ut=!0,Pe=!1,rt={},et=null;const Oe=qe({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","selectedcontent","style","svg","template","thead","title","video","xmp"]);let Qe=null;const tt=qe({},["audio","video","img","source","image","track"]);let xt=null;const Et=qe({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),it="http://www.w3.org/1998/Math/MathML",Ht="http://www.w3.org/2000/svg",mt="http://www.w3.org/1999/xhtml";let Vt=mt,ia=!1,Gt=null;const Ea=qe({},[it,Ht,mt],Gn),sa=bt(["mi","mo","mn","ms","mtext"]);let Kt=qe({},sa);const ja=bt(["annotation-xml"]);let jt=qe({},ja);const Ga=qe({},["title","style","font","a","script"]);let $t=null;const ya=["application/xhtml+xml","text/html"],qa="text/html";let Je=null,It=null;const kt=a.createElement("form"),xa=function(B){return B instanceof RegExp||B instanceof Function},la=function(){let B=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(It&&It===B)return;(!B||typeof B!="object")&&(B={}),B=zt(B),$t=ya.indexOf(B.PARSER_MEDIA_TYPE)===-1?qa:B.PARSER_MEDIA_TYPE,Je=$t==="application/xhtml+xml"?Gn:Po,I=La(B,"ALLOWED_TAGS",ee,{transform:Je}),pe=La(B,"ALLOWED_ATTR",ke,{transform:Je}),Gt=La(B,"ALLOWED_NAMESPACES",Ea,{transform:Gn}),xt=La(B,"ADD_URI_SAFE_ATTR",Et,{transform:Je,base:Et}),Qe=La(B,"ADD_DATA_URI_TAGS",tt,{transform:Je,base:tt}),et=La(B,"FORBID_CONTENTS",Oe,{transform:Je}),R=La(B,"FORBID_TAGS",zt({}),{transform:Je}),oe=La(B,"FORBID_ATTR",zt({}),{transform:Je}),rt=Rt(B,"USE_PROFILES")?B.USE_PROFILES&&typeof B.USE_PROFILES=="object"?zt(B.USE_PROFILES):B.USE_PROFILES:!1,ve=B.ALLOW_ARIA_ATTR!==!1,De=B.ALLOW_DATA_ATTR!==!1,ze=B.ALLOW_UNKNOWN_PROTOCOLS||!1,Re=B.ALLOW_SELF_CLOSE_IN_ATTR!==!1,Me=B.SAFE_FOR_TEMPLATES||!1,Ye=B.SAFE_FOR_XML!==!1,Ne=B.WHOLE_DOCUMENT||!1,We=B.RETURN_DOM||!1,Le=B.RETURN_DOM_FRAGMENT||!1,Ge=B.RETURN_TRUSTED_TYPE||!1,Ke=B.FORCE_BODY||!1,vt=B.SANITIZE_DOM!==!1,Ue=B.SANITIZE_NAMED_PROPS||!1,ut=B.KEEP_CONTENT!==!1,Pe=B.IN_PLACE||!1,ce=O_(B.ALLOWED_URI_REGEXP)?B.ALLOWED_URI_REGEXP:Dd,Vt=typeof B.NAMESPACE=="string"?B.NAMESPACE:mt,Kt=Zn(B,"MATHML_TEXT_INTEGRATION_POINTS",()=>qe({},sa)),jt=Zn(B,"HTML_INTEGRATION_POINTS",()=>qe({},ja));const G=Zn(B,"CUSTOM_ELEMENT_HANDLING",()=>uo(null));if(Ce=uo(null),Rt(G,"tagNameCheck")&&xa(G.tagNameCheck)&&(Ce.tagNameCheck=G.tagNameCheck),Rt(G,"attributeNameCheck")&&xa(G.attributeNameCheck)&&(Ce.attributeNameCheck=G.attributeNameCheck),Rt(G,"allowCustomizedBuiltInElements")&&typeof G.allowCustomizedBuiltInElements=="boolean"&&(Ce.allowCustomizedBuiltInElements=G.allowCustomizedBuiltInElements),yt(Ce),Me&&(De=!1),Le&&(We=!0),rt&&(I=qe({},Td),pe=uo(null),rt.html===!0&&(qe(I,Ad),qe(pe,Bd)),rt.svg===!0&&(qe(I,qn),qe(pe,Kn),qe(pe,Nr)),rt.svgFilters===!0&&(qe(I,Yn),qe(pe,Kn),qe(pe,Nr)),rt.mathMl===!0&&(qe(I,Un),qe(pe,Nd),qe(pe,Nr))),ae.tagCheck=null,ae.attributeCheck=null,Rt(B,"ADD_TAGS")&&(typeof B.ADD_TAGS=="function"?ae.tagCheck=B.ADD_TAGS:po(B.ADD_TAGS)&&(I===ee&&(I=zt(I)),qe(I,B.ADD_TAGS,Je))),Rt(B,"ADD_ATTR")&&(typeof B.ADD_ATTR=="function"?ae.attributeCheck=B.ADD_ATTR:po(B.ADD_ATTR)&&(pe===ke&&(pe=zt(pe)),qe(pe,B.ADD_ATTR,Je))),Rt(B,"ADD_FORBID_CONTENTS")&&po(B.ADD_FORBID_CONTENTS)&&(et===Oe&&(et=zt(et)),qe(et,B.ADD_FORBID_CONTENTS,Je)),ut&&(I["#text"]=!0),Ne&&qe(I,["html","head","body"]),I.table&&(qe(I,["tbody"]),delete R.tbody),B.TRUSTED_TYPES_POLICY){if(typeof B.TRUSTED_TYPES_POLICY.createHTML!="function")throw Ua('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof B.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw Ua('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');const le=A;A=B.TRUSTED_TYPES_POLICY;try{D=L("")}catch(we){throw A=le,we}}else B.TRUSTED_TYPES_POLICY===null?(A=void 0,D=""):(A===void 0&&(A=te()),A&&typeof D=="string"&&(D=L("")));bt&&bt(B),It=B},ie=qe({},[...qn,...Yn,...F_]),fe=qe({},[...Un,...W_]),ye=function(B,G,le){return G.namespaceURI===mt?B==="svg":G.namespaceURI===it?B==="svg"&&(le==="annotation-xml"||Kt[le]):!!ie[B]},U=function(B,G,le){return G.namespaceURI===mt?B==="math":G.namespaceURI===Ht?B==="math"&&jt[le]:!!fe[B]},de=function(B,G,le){return G.namespaceURI===Ht&&!jt[le]||G.namespaceURI===it&&!Kt[le]?!1:!fe[B]&&(Ga[B]||!ie[B])},_e=function(B){let G=v(B);(!G||!G.tagName)&&(G={namespaceURI:Vt,tagName:"template"});const le=Po(B.tagName),we=Po(G.tagName);return Gt[B.namespaceURI]?B.namespaceURI===Ht?ye(le,G,we):B.namespaceURI===it?U(le,G,we):B.namespaceURI===mt?de(le,G,we):!!($t==="application/xhtml+xml"&&Gt[B.namespaceURI]):!1},Se=function(B){Mo(t.removed,{element:B});try{v(B).removeChild(B)}catch{if(f(B),!v(B))throw Ua("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place")}},Ae=function(B,G,le){try{B.removeAttributeNode(G)}catch{try{B.removeAttribute(le)}catch{}}},$e=function(B){ue(B);const G=y(B);if(G){const we=[];Ya(G,Be=>{Mo(we,Be)}),Ya(we,Be=>{try{f(Be)}catch{}})}const le=w(B);if(le)for(let we=le.length-1;we>=0;--we){const Be=le[we],je=Be&&Be.name;typeof je=="string"&&Ae(B,Be,je)}},nt=function(B,G,le){if(!le)try{le=G.getAttributeNode(B)}catch{le=null}Mo(t.removed,{attribute:le||null,from:G});try{le?G.removeAttributeNode(le):G.removeAttribute(B)}catch{try{G.removeAttribute(B)}catch{}}if(B==="is")if(We||Le)try{Se(G)}catch{}else try{G.setAttribute(B,"")}catch{}},ct=function(B){const G=w(B);if(G)for(let le=G.length-1;le>=0;--le){const we=G[le],Be=we&&we.name;typeof Be!="string"||pe[Je(Be)]||Ae(B,we,Be)}},ue=function(B){const G=[B];for(;G.length>0;){const le=G.pop();k(le)===Ot.element&&ct(le);const Be=y(le);if(Be)for(let je=Be.length-1;je>=0;--je)G.push(Be[je])}},Te=function(B,G){return Ye?B==="patchsrc"?!0:B==="for"&&G!=="label"&&G!=="output":!1},at=function(B){if(!Ye)return;const G=[B];for(;G.length>0;){const le=G.pop(),we=k(le);if(we===Ot.processingInstruction||we===Ot.comment&&St(jd,le.data)){try{f(le)}catch{}continue}if(we===Ot.element){const je=le,ot=Je(N(le));try{je.hasAttribute&&je.hasAttribute("patchsrc")&&je.removeAttribute("patchsrc"),je.hasAttribute&&je.hasAttribute("for")&&Te("for",ot)&&je.removeAttribute("for")}catch{}}const Be=y(le);if(Be)for(let je=Be.length-1;je>=0;--je)G.push(Be[je])}},Ct=function(B){let G=null,le=null;if(Ke)B="<remove></remove>"+B;else{const je=_d(B,/^[\r\n\t ]+/);le=je&&je[0]}$t==="application/xhtml+xml"&&Vt===mt&&(B='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+B+"</body></html>");const we=A?L(B):B;if(Vt===mt)try{G=new p().parseFromString(we,$t)}catch{}if(!G||!G.documentElement){G=V.createDocument(Vt,"template",null);try{G.documentElement.innerHTML=ia?D:we}catch{}}const Be=G.body||G.documentElement;return B&&le&&Be.insertBefore(a.createTextNode(le),Be.childNodes[0]||null),Vt===mt?$.call(G,Ne?"html":"body")[0]:Ne?G.documentElement:Be},_t=function(B){const G=_?_(B):B.ownerDocument;return j.call(G||B,B,u.SHOW_ELEMENT|u.SHOW_COMMENT|u.SHOW_TEXT|u.SHOW_PROCESSING_INSTRUCTION|u.SHOW_CDATA_SECTION,null)},Zt=function(B){return B=Ro(B,X," "),B=Ro(B,O," "),B=Ro(B,Y," "),B},Eo=function(B){var G;B.normalize();const le=_?_(B):B.ownerDocument,we=j.call(le||B,B,u.SHOW_TEXT|u.SHOW_COMMENT|u.SHOW_CDATA_SECTION|u.SHOW_PROCESSING_INSTRUCTION,null);let Be=we.nextNode();for(;Be;)Be.data=Zt(Be.data),Be=we.nextNode();const je=(G=B.querySelectorAll)===null||G===void 0?void 0:G.call(B,"template");je&&Ya(je,ot=>{lo(ot.content)&&Eo(ot.content)})},Ar=function(B){const G=S?S(B):null;return typeof G!="string"||Je(G)!=="form"?!1:typeof B.nodeName!="string"||typeof B.textContent!="string"||typeof B.removeChild!="function"||B.attributes!==w(B)||typeof B.removeAttribute!="function"||typeof B.setAttribute!="function"||typeof B.namespaceURI!="string"||typeof B.insertBefore!="function"||typeof B.hasChildNodes!="function"||B.nodeType!==x(B)||B.childNodes!==y(B)},lo=function(B){if(!x||typeof B!="object"||B===null)return!1;try{return x(B)===Ot.documentFragment}catch{return!1}},jo=function(B){if(!x||typeof B!="object"||B===null)return!1;try{return typeof x(B)=="number"}catch{return!1}};function ca(he,B,G){he.length!==0&&Ya(he,le=>{le.call(t,B,G,It)})}const vg=function(B,G){return!!(Ye&&B.hasChildNodes()&&!jo(B.firstElementChild)&&St(Ed,B.textContent)&&St(Ed,B.innerHTML)||Ye&&B.namespaceURI===mt&&ew[G]&&(jo(B.firstElementChild)||typeof B.textContent=="string"&&St(tw[G],B.textContent))||B.nodeType===Ot.processingInstruction||Ye&&B.nodeType===Ot.comment&&St(jd,B.data))},Tr=function(B,G){if(B instanceof RegExp)return St(B,G);if(B instanceof Function){for(var le=arguments.length,we=new Array(le>2?le-2:0),Be=2;Be<le;Be++)we[Be-2]=arguments[Be];return!!B(G,...we)}return!1},yg=function(B,G,le){if(!R[G]&&Hc(G)&&Tr(Ce.tagNameCheck,G))return!1;if(ut&&!et[G]){const we=v(B),Be=y(B);if(Be&&we){const je=Be.length;for(let ot=je-1;ot>=0;--ot){const st=B===le?g(Be[ot],!0):Be[ot];we.insertBefore(st,b(B))}}}return Se(B),!0},zc=function(B,G,le,we){return B.length===0?G:G===le||G===we?zt(G):G},Oc=function(B,G){return B===G||v(B)!==null?!1:(Pe&&ue(B),!0)},Fc=function(B,G){if(ca(q.beforeSanitizeElements,B,null),Oc(B,G))return!0;if(Ar(B))return Se(B),!0;const le=Je(N(B));if(I=zc(q.uponSanitizeElement,I,ee,Fe),ca(q.uponSanitizeElement,B,{tagName:le,allowedTags:I}),Oc(B,G))return!0;if(vg(B,le))return Se(B),!0;if(R[le]||!(ae.tagCheck instanceof Function&&ae.tagCheck(le))&&!I[le]){const Be=yg(B,le,G);return Be===!1&&ca(q.afterSanitizeElements,B,null),Be}if(k(B)===Ot.element&&!_e(B)||(le==="noscript"||le==="noembed"||le==="noframes")&&St(Q_,B.innerHTML))return Se(B),!0;if(Me&&B.nodeType===Ot.text){const Be=Zt(B.textContent);B.textContent!==Be&&(Mo(t.removed,{element:B.cloneNode()}),B.textContent=Be)}return ca(q.afterSanitizeElements,B,null),!1},Wc=function(B,G,le){if(oe[G]||Te(G,B)||vt&&(G==="id"||G==="name")&&(le in a||le in kt))return!1;const we=pe[G]||ae.attributeCheck instanceof Function&&ae.attributeCheck(G,B);return De&&St(z,G)||ve&&St(re,G)?!0:we?xt[G]||St(ce,Ro(le,ne,""))||(G==="src"||G==="xlink:href"||G==="href")&&B!=="script"&&wd(le,"data:")===0&&Qe[B]||ze&&!St(Q,Ro(le,ne,""))?!0:!le:Hc(B)&&Tr(Ce.tagNameCheck,B)&&Tr(Ce.attributeNameCheck,G,B)||G==="is"&&Ce.allowCustomizedBuiltInElements&&Tr(Ce.tagNameCheck,le)},xg=qe({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),Hc=function(B){return!xg[Po(B)]&&St(me,B)},Cg=function(B,G,le,we){if(A&&typeof m=="object"&&typeof m.getAttributeType=="function"&&!le)switch(m.getAttributeType(B,G)){case"TrustedHTML":return L(we);case"TrustedScriptURL":return F(we)}return we},_g=function(B,G,le,we){try{le?B.setAttributeNS(le,G,we):B.setAttribute(G,we),Ar(B)?Se(B):Cd(t.removed)}catch{nt(G,B)}},Vc=function(B){ca(q.beforeSanitizeAttributes,B,null);const G=B.attributes;if(!G||Ar(B))return;pe=zc(q.uponSanitizeAttribute,pe,ke,be);const le={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:pe,forceKeepAttr:void 0};let we=G.length;const Be=Je(B.nodeName);for(;we--;){const je=G[we],ot=je.name,st=je.namespaceURI,Mt=je.value,Pt=Je(ot),zn=Mt;let Lt=ot==="value"?zn:M_(zn);if(le.attrName=Pt,le.attrValue=Lt,le.keepAttr=!0,le.forceKeepAttr=void 0,ca(q.uponSanitizeAttribute,B,le),Lt=le.attrValue,Ue&&(Pt==="id"||Pt==="name")&&wd(Lt,Xe)!==0&&(nt(ot,B,je),Lt=Xe+Lt),Ye&&St(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,Lt)){nt(ot,B,je);continue}if(Pt==="attributename"&&_d(Lt,"href")){nt(ot,B,je);continue}if(!le.forceKeepAttr){if(!le.keepAttr){nt(ot,B,je);continue}if(!Re&&St(J_,Lt)){nt(ot,B,je);continue}if(Me&&(Lt=Zt(Lt)),!Wc(Be,Pt,Lt)){nt(ot,B,je);continue}Lt=Cg(Be,Pt,st,Lt),Lt!==zn&&_g(B,ot,st,Lt)}}ca(q.afterSanitizeAttributes,B,null)},Br=function(B){let G=null;const le=_t(B);for(ca(q.beforeSanitizeShadowDOM,B,null);G=le.nextNode();)if(ca(q.uponSanitizeShadowNode,G,null),Fc(G,B),Vc(G),lo(G.content)&&Br(G.content),k(G)===Ot.element){const we=C(G);lo(we)&&(In(we),Br(we))}ca(q.afterSanitizeShadowDOM,B,null)},In=function(B){const G=[{node:B,shadow:null}];for(;G.length>0;){const le=G.pop();if(le.shadow){Br(le.shadow);continue}const we=le.node,je=k(we)===Ot.element,ot=y(we);if(ot)for(let st=ot.length-1;st>=0;--st)G.push({node:ot[st],shadow:null});if(je){const st=S?S(we):null;if(typeof st=="string"&&Je(st)==="template"){const Mt=we.content;lo(Mt)&&G.push({node:Mt,shadow:null})}}if(je){const st=C(we);lo(st)&&G.push({node:null,shadow:st},{node:st,shadow:null})}}};return t.sanitize=function(he){let B=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},G=null,le=null,we=null,Be=null;if(ia=!he,ia&&(he="<!-->"),typeof he!="string"&&!jo(he)&&(he=z_(he),typeof he!="string"))throw Ua("dirty is not a string, aborting");if(!t.isSupported)return he;Ve?(I=Fe,pe=be):la(B),(q.uponSanitizeElement.length>0||q.uponSanitizeAttribute.length>0)&&(I=zt(I)),q.uponSanitizeAttribute.length>0&&(pe=zt(pe)),t.removed=[];const je=Pe&&typeof he!="string"&&jo(he);if(je){at(he);const Mt=N(he);if(typeof Mt=="string"){const Pt=Je(Mt);if(!I[Pt]||R[Pt])throw $e(he),Ua("root node is forbidden and cannot be sanitized in-place")}if(Ar(he))throw $e(he),Ua("root node is clobbered and cannot be sanitized in-place");try{In(he)}catch(Pt){throw $e(he),Pt}}else if(jo(he))G=Ct("<!---->"),le=G.ownerDocument.importNode(he,!0),le.nodeType===Ot.element&&le.nodeName==="BODY"||le.nodeName==="HTML"?G=le:G.appendChild(le),In(le);else{if(!We&&!Me&&!Ne&&he.indexOf("<")===-1)return A&&Ge?L(he):he;if(G=Ct(he),!G)return We?null:Ge?D:""}G&&Ke&&Se(G.firstChild);const ot=je?he:G;try{const Mt=_t(ot);for(;we=Mt.nextNode();)Fc(we,ot),Vc(we),lo(we.content)&&Br(we.content)}catch(Mt){throw je&&($e(he),Ya(t.removed,Pt=>{Pt.element&&ue(Pt.element)})),Mt}if(je)return Ya(t.removed,Mt=>{Mt.element&&ue(Mt.element)}),Me&&Eo(he),he;if(We){if(Me&&Eo(G),Le)for(Be=M.call(G.ownerDocument);G.firstChild;)Be.appendChild(G.firstChild);else Be=G;return(pe.shadowroot||pe.shadowrootmode)&&(Be=W.call(r,Be,!0)),Be}let st=Ne?G.outerHTML:G.innerHTML;return Ne&&I["!doctype"]&&G.ownerDocument&&G.ownerDocument.doctype&&G.ownerDocument.doctype.name&&St(Z_,G.ownerDocument.doctype.name)&&(st="<!DOCTYPE "+G.ownerDocument.doctype.name+`>
|
|
813
813
|
`+st),Me&&(st=Zt(st)),A&&Ge?L(st):st},t.setConfig=function(){let he=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};la(he),Ve=!0,Fe=I,be=pe},t.clearConfig=function(){It=null,Ve=!1,Fe=null,be=null,A=H,D=""},t.isValidAttribute=function(he,B,G){It||la({});const le=Je(he),we=Je(B);return Wc(le,we,G)},t.addHook=function(he,B){typeof B=="function"&&Rt(q,he)&&Mo(q[he],B)},t.removeHook=function(he,B){if(Rt(q,he)){if(B!==void 0){const G=j_(q[he],B);return G===-1?void 0:L_(q[he],G,1)[0]}return Cd(q[he])}},t.removeHooks=function(he){Rt(q,he)&&(q[he]=[])},t.removeAllHooks=function(){q=Md()},t}var rw=Pd();function Rd(e,{onEnd:t,rate:a=.9}={}){if(typeof window>"u"||typeof SpeechSynthesisUtterance>"u"||!("speechSynthesis"in window)){t?.();return}const r=window.speechSynthesis,n=()=>{r.cancel();const i=new SpeechSynthesisUtterance(e),s=r.getVoices().find(c=>c.lang.startsWith("ko"));s&&(i.voice=s),i.rate=a,i.onend=t?function(c){try{t()}catch{}}:null,r.speak(i)};r.getVoices().length>0?n():r.addEventListener("voiceschanged",n,{once:!0})}function $d(){typeof window<"u"&&"speechSynthesis"in window&&window.speechSynthesis.cancel()}const nw=/^(?:[a-z]+:)?\/\//i;let Id="";function iw(e){const t=String(e||"").trim();return t?t.replace(/\/+$/,""):""}function zd(e){Id=iw(e)}function Xn(){return Id}function Io(e){const t=String(e||"").trim();if(!t)return"";if(nw.test(t)||t.startsWith("data:")||t.startsWith("blob:"))return t;const a=t.startsWith("/")?t:`/${t}`,r=Xn();return r?`${r}${a}`:a}const Od="__ihab_core_storage_resolvers__";function zo(){return globalThis[Od]??null}function sw(e){globalThis[Od]=e}let Qn=class extends Error{constructor(t){super(`
|
|
814
814
|
[ihabdevteam-core] ${t}() \uD638\uCD9C \uC2E4\uD328 \u2014 configureStorage()\uAC00 \uC124\uC815\uB418\uC9C0 \uC54A\uC558\uC2B5\uB2C8\uB2E4.
|
|
815
815
|
|
|
@@ -829,22 +829,22 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
829
829
|
\uC124\uCE58 \uBA85\uB839\uC5B4 (\uC2A4\uD1A0\uB9AC\uC9C0 SDK \uBBF8\uC124\uCE58 \uC2DC):
|
|
830
830
|
npm install @supabase/supabase-js
|
|
831
831
|
pnpm add @supabase/supabase-js
|
|
832
|
-
`),this.name="StorageNotConfiguredError"}};function Jn(e){sw(e)}function Nr(e,t){if(!e)return null;const a=zo();return a?.resolvePath?a.resolvePath(e,t):t?`${t}/${e}.mp3`:null}async function ei(e){if(!e)return!1;const t=zo();if(!t)throw new Qn("fileExists");if(t.exists)return t.exists(e);try{return await t.resolveUrl(e)!==null}catch{return!1}}async function Oo(e){if(!e)return null;const t=zo();if(!t)throw new Qn("getSignedOrPublicUrl");try{return await t.resolveUrl(e)}catch{return null}}async function Dr(e){const t=zo();if(!t)throw new Qn("downloadSound");return t.download(e)}function ti(){return zo()?.noiseBaseUrl??"/sounds/noise"}const ai="__ihab_core_tts_config__";function Fd(e){globalThis[ai]=e}function Fo(){return globalThis[ai]?.urlResolver??null}function oi(){return globalThis[ai]?.fallbackUrlResolver??null}const lw=new Map;function Wd(){lw.clear()}const Hd="__ihab_core_pronunciation_resolver__";function Vd(e){globalThis[Hd]=e}function ri(){return globalThis[Hd]??null}let Wo=null;const Gd=new WeakMap;function cw(){if(Wo)return Wo;try{const e=window.AudioContext||window.webkitAudioContext;return e?(Wo=new e,Wo):null}catch{return null}}function Ho(){try{Wo?.resume()}catch{}}function Vo(e){if(!e)return null;const t=Gd.get(e);if(t)return t;const a=cw();if(!a)return null;try{const r=a.createMediaElementSource(e),n=a.createAnalyser();return n.fftSize=1024,n.smoothingTimeConstant=.6,r.connect(n),r.connect(a.destination),Gd.set(e,n),n}catch{return null}}function ni(e,t){e.getFloatTimeDomainData(t);let a=0;for(let r=0;r<t.length;r++){const n=t[r];a+=n*n}return Math.sqrt(a/t.length)}const qd="__ihab_core_image_config__";function Yd(e){globalThis[qd]=e}function Ma(){return globalThis[qd]??null}const Go="word_image_existence_map_v1";let da=null;const Er=new Map;function qo(){if(da)return da;try{const e=typeof localStorage<"u"?localStorage.getItem(Go):null;da=e?JSON.parse(e):{}}catch{da={}}return da}let ii=null;function dw(){ii||(ii=setTimeout(()=>{ii=null;try{typeof localStorage<"u"&&da&&localStorage.setItem(Go,JSON.stringify(da))}catch{}},200))}function jr(e,t){return`${e}_${t??1}`}async function Yo(e,t){const a=qo(),r=jr(e,t);if(r in a)return a[r];if(Er.has(r))return Er.get(r);const n=Ma();if(!n)return!1;const i=n(e,t);if(!i)return!1;const s=fetch(i,{method:"HEAD",signal:AbortSignal.timeout(8e3)}).then(c=>c.ok).catch(()=>!1).then(c=>(a[r]=c,dw(),Er.delete(r),c));return Er.set(r,s),s}function si(e,t){const a=qo(),r=jr(e,t);return r in a?a[r]:void 0}async function Ud(e,t={}){const{force:a=!1,concurrency:r=16,onProgress:n}=t,i=qo(),s=a?Array.from(new Set(e)):Array.from(new Set(e)).filter(u=>!(jr(u)in i));let c=0;if(s.length>0){let u=0;const d=Array.from({length:Math.min(r,s.length)},async()=>{for(;u<s.length;){const p=u++,m=s[p],h=jr(m);if(!a&&h in i){c++,n?.(c,s.length);continue}try{await Yo(m)}catch{}c++,n?.(c,s.length)}});await Promise.all(d)}try{typeof localStorage<"u"&&da&&localStorage.setItem(Go,JSON.stringify(da))}catch{}return{checked:s.length,cached:Object.keys(i).length,total:e.length}}function Lr(){const e=qo(),t=Object.values(e);return t.length===0?null:{total:t.length,exists:t.filter(Boolean).length}}function Kd(e){const t=qo();Object.assign(t,e);try{typeof localStorage<"u"&&localStorage.setItem(Go,JSON.stringify(t))}catch{}}function li(){da={};try{typeof localStorage<"u"&&localStorage.removeItem(Go)}catch{}}const Ze=["\u3131","\u3132","\u3134","\u3137","\u3138","\u3139","\u3141","\u3142","\u3143","\u3145","\u3146","\u3147","\u3148","\u3149","\u314A","\u314B","\u314C","\u314D","\u314E"],dt=["\u314F","\u3150","\u3151","\u3152","\u3153","\u3154","\u3155","\u3156","\u3157","\u3158","\u3159","\u315A","\u315B","\u315C","\u315D","\u315E","\u315F","\u3160","\u3161","\u3162","\u3163"],gt=["","\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 Ee(e){if(!e)return null;const t=e.charCodeAt(0)-44032;return t<0||t>=11172?null:{cho:Math.floor(t/588),jung:Math.floor(t%588/28),jong:t%28}}function ci(){const e=new Map;return t=>{let a=e.get(t);return a||(a=[...t].map(r=>Ee(r)),e.set(t,a)),a}}function ua(e,t,a=0){return String.fromCharCode(44032+(e*21+t)*28+a)}function di(e,t){if(!e||!t||e===t||e.length!==t.length)return"random";let a=0,r=null;for(let n=0;n<e.length;n++){const i=Ee(e[n]),s=Ee(t[n]);if(!i||!s)return"random";if(i.cho===s.cho&&i.jung===s.jung&&i.jong===s.jong)continue;a++;const c=i.cho!==s.cho,u=i.jung!==s.jung,d=i.jong!==s.jong;(c?1:0)+(u?1:0)+(d?1:0)>1?r="multi":c?r="cho":u?r="jung":r="jong"}return a!==1?"random":r==="cho"?"cho":r==="jung"?"jung":r==="jong"?"jong":"random"}function ui(e){const t=Ee(e[0]||"");return t?Ze[t.cho]:""}function pi(e){return[...e].map(t=>{const a=Ee(t);return a?Ze[a.cho]:t}).join("")}function hi(e){return!!e&&[...e].every(t=>Ze.includes(t))}function Zd(e,t){return t?hi(t)?pi(e).includes(t):e.toLowerCase().includes(t.toLowerCase()):!0}function ho(e,t){if(!t)return!0;const a=[...t],r=c=>Ze.includes(c),n=c=>dt.includes(c),i=a.map(c=>r(c)?"cho":n(c)?"jung":Ee(c)?"syl":"other");if(i.includes("other"))return e.includes(t);const s=[...e];for(let c=0;c+a.length<=s.length;c++){let u=!0;for(let d=0;d<a.length;d++){const p=s[c+d],m=i[d];if(m==="cho"){if(ui(p)!==a[d]){u=!1;break}}else if(m==="jung"){const h=Ee(p);if(!h||dt[h.jung]!==a[d]){u=!1;break}}else{const h=Ee(a[d]);if(h&&h.jong===0){const g=Ee(p);if(!g||g.cho!==h.cho||g.jung!==h.jung){u=!1;break}}else if(p!==a[d]){u=!1;break}}}if(u)return!0}return!1}const mo={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"]},Xd=Object.fromEntries(Object.entries(mo).map(([e,t])=>[t.join(""),gt[Number(e)]]));function uw(e,t){if(!e||!t)return!1;for(const a of e){const r=Ee(a);if(r){if(Ze[r.cho]===t)return!0;if(r.jong>0){if(gt[r.jong]===t)return!0;const n=mo[r.jong];if(n&&n.includes(t))return!0}}}return!1}function Qd(e,t){if(!e||!t)return!1;for(const a of e){const r=Ee(a);if(r&&Ze[r.cho]===t)return!0}return!1}function Jd(e,t){if(!e||!t)return!1;for(const a of e){const r=Ee(a);if(r&&dt[r.jung]===t)return!0}return!1}function eu(e,t){if(!e||!t)return!1;for(const a of e){const r=Ee(a);if(!r||r.jong<=0)continue;if(gt[r.jong]===t)return!0;const n=mo[r.jong];if(n&&n.includes(t))return!0}return!1}function bo(e){if(!e)return 0;let t=0;for(const a of e)Ee(a)&&t++;return t}function mi(e){if(!e)return!1;let t=!1;for(const a of e){const r=Ee(a);if(r&&(t=!0,r.jong>0))return!1}return t}function pw(e,t){if(e.jong<=0)return!1;if(t.includes(gt[e.jong]))return!0;const a=mo[e.jong];return!!a&&a.some(r=>t.includes(r))}function bi(e,t,a){if(!e)return!1;const r=[...e],n=i=>{const s=Ee(r[i]);if(!s||t.cho&&!t.cho.includes(Ze[s.cho])||t.jung&&!t.jung.includes(dt[s.jung]))return!1;if(t.jongNone){if(s.jong>0)return!1}else if(t.jong&&!pw(s,t.jong))return!1;return!0};if(a==="head")return n(0);if(a==="tail")return n(r.length-1);if(a==="mid"){for(let i=1;i<r.length-1;i++)if(n(i))return!0;return!1}for(let i=0;i<r.length;i++)if(n(i))return!0;return!1}function gi(e){return e.includes(",")||e.includes("_")}function tu(e){if(e==="")return[{kind:"any"}];if(e.includes("_")){const t=[...e];if(t.length>4)return[{kind:"invalid"}];const a=t[0]??"_",r=t[1]??"_";let n=t.slice(2).join("");if(n.length===2){const i=Xd[n];if(!i)return[{kind:"invalid"}];n=i}return[{kind:"template",cho:a,jung:r,jong:n||"_"}]}return[...e].map(t=>Ee(t)?{kind:"syllable",ch:t}:Ze.includes(t)?{kind:"cho",jamo:t}:dt.includes(t)?{kind:"jung",jamo:t}:{kind:"invalid"})}function hw(e,t){switch(t.kind){case"any":return!0;case"syllable":{const a=Ee(t.ch);if(!a)return e===t.ch;if(a.jong===0){const r=Ee(e);return!!r&&r.cho===a.cho&&r.jung===a.jung}return e===t.ch}case"cho":{const a=Ee(e);return!!a&&Ze[a.cho]===t.jamo}case"jung":{const a=Ee(e);return!!a&&dt[a.jung]===t.jamo}case"template":{const a=Ee(e);return!(!a||t.cho!=="_"&&Ze[a.cho]!==t.cho||t.jung!=="_"&&dt[a.jung]!==t.jung||t.jong!=="_"&>[a.jong]!==t.jong)}case"invalid":return!1}}function fi(e,t){const a=t.split(",").flatMap(n=>tu(n.trim()));if(a.length===0)return!0;const r=[...e];if(r.length<a.length)return!1;for(let n=0;n+a.length<=r.length;n++)if(a.every((i,s)=>hw(r[n+s],i)))return!0;return!1}function au(e){const t=e.split(",").flatMap(i=>tu(i.trim())),a=new Set,r=new Set,n=new Set;for(const i of t)switch(i.kind){case"cho":a.add(i.jamo);break;case"jung":r.add(i.jamo);break;case"template":i.cho!=="_"&&a.add(i.cho),i.jung!=="_"&&r.add(i.jung),i.jong!=="_"&&n.add(i.jong);break;case"syllable":{const s=Ee(i.ch);s&&(a.add(Ze[s.cho]),r.add(dt[s.jung]),s.jong!==0&&n.add(gt[s.jong]));break}}return a.size===0&&r.size===0&&n.size===0?null:{cho:a.size?[...a]:null,jung:r.size?[...r]:null,jong:n.size?[...n]:null}}function mw(e){return!!Ee(e)||Ze.includes(e)||dt.includes(e)}function ou(e){const t=e.trim();if(!t)return{ok:!0};for(const a of t.split(",")){const r=a.trim();if(r!==""){if(r.includes("_")){const n=[...r];if(n.length>4)return{ok:!1};const i=n[0],s=n[1],c=n.slice(2).join(""),u=i===void 0||i==="_"||Ze.includes(i),d=s===void 0||s==="_"||dt.includes(s),p=c===""||c==="_"||gt.filter(Boolean).includes(c)||!!Xd[c];if(u&&d&&p)continue;return{ok:!1}}if(![...r].every(mw))return{ok:!1}}}return{ok:!0}}const bw={cho:Ze.length,jung:dt.length,jong:gt.length};function gw(e,t,a,r,n=1/0){if(!e||a<1)return[];const i=[...e].map(m=>Ee(m));if(i.some(m=>!m))return[];const s=i,c=s.length;if(a>c)return[];const u=bw[t],d=new Set,p=[];(function m(h,g){if(g.length===a){p.push([...g]);return}for(let f=h;f<c;f++)g.push(f),m(f+1,g),g.pop()})(0,[]);for(const m of p)if((function h(g,f){if(d.size>=n)return;if(g===m.length){const v=f.map(C=>ua(C.cho,C.jung,C.jong)).join("");v!==e&&r.has(v)&&d.add(v);return}const b=m[g],y=s[b][t];for(let v=0;v<u;v++){if(v===y)continue;const C=f.slice();if(C[b]={...f[b],[t]:v},h(g+1,C),d.size>=n)return}})(0,s),d.size>=n)break;return[...d]}function fw(e,t){if(!e||!t||e.length!==t.length)return-1;let a=0;for(let r=0;r<e.length;r++){const n=Ee(e[r]),i=Ee(t[r]);if(!n||!i)return-1;n.cho!==i.cho&&a++,n.jung!==i.jung&&a++,n.jong!==i.jong&&a++}return a}function ru(e,t){const a=t.trim();if(!a||!/[^\s,_]/.test(a))return e;if(gi(a))return e.filter(s=>fi(s.word,a));const r=e.filter(s=>ho(s.word,a)||ho(s.pronunciation??"",a)),n=[...a].length,i=s=>!!s&&ho(s.slice(0,n),a);return r.map(s=>({w:s,rank:i(s.word)||i(s.pronunciation??"")?0:1})).sort((s,c)=>s.rank-c.rank).map(s=>s.w)}const vi="word_pair_index_v2",yi="word_pair_index_sig_v2";let pa=null,Uo=null;function nu(){try{if(typeof localStorage>"u")return null;const e=localStorage.getItem(vi),t=localStorage.getItem(yi);return!e||!t?null:{index:JSON.parse(e),sig:t}}catch{return null}}function vw(e,t){try{if(typeof localStorage>"u")return;localStorage.setItem(vi,JSON.stringify(e)),localStorage.setItem(yi,t)}catch{}}function yw(e){const t=e.map(r=>`${r.word}|${r.pron??""}`).sort();let a=0;for(const r of t)for(let n=0;n<r.length;n++)a=(a<<5)-a+r.charCodeAt(n)|0;return`${t.length}-${a}`}async function xw(e,t){const a=new Set,r=[];for(const d of e){if(!d.word||a.has(d.word))continue;const p=d.pron||d.word,m=Array.from(p).map(Ee);m.some(h=>h===null)||m.length===Array.from(d.word).length&&(a.add(d.word),r.push({word:d.word,syls:m}))}const n={},i=r.length,s=new Map;for(const d of r){const p=d.syls.length;s.has(p)||s.set(p,[]),s.get(p).push(d)}let c=0;const u=["cho","jung","jong"];for(const d of s.values()){const p=d[0].syls.length;for(let m=0;m<p;m++)for(const h of u){const g=new Map;for(const f of d){let b="";for(let v=0;v<p;v++){v>0&&(b+="~");const C=f.syls[v];v===m?h==="cho"?b+=`*:${C.jung}:${C.jong}`:h==="jung"?b+=`${C.cho}:*:${C.jong}`:b+=`${C.cho}:${C.jung}:*`:b+=`${C.cho}:${C.jung}:${C.jong}`}let y=g.get(b);y||(y=[],g.set(b,y)),y.push(f)}for(const f of g.values())if(!(f.length<2))for(let b=0;b<f.length;b++){const y=f[b];for(let v=b+1;v<f.length;v++){const C=f[v];y.syls[m][h]!==C.syls[m][h]&&(n[y.word]||(n[y.word]={cho:[],jung:[],jong:[]}),n[C.word]||(n[C.word]={cho:[],jung:[],jong:[]}),n[y.word][h].push(C.word),n[C.word][h].push(y.word))}}}c+=d.length,t?.(c,i),await new Promise(m=>setTimeout(m,0))}return i>0&&t?.(i,i),n}async function iu(e,t={}){const a=yw(e);if(!t.force){if(pa&&Uo===a)return pa;const n=nu();if(n&&n.sig===a)return pa=n.index,Uo=a,pa}const r=await xw(e,t.onProgress);return pa=r,Uo=a,vw(r,a),r}function Ka(){if(pa)return pa;const e=nu();return e?(pa=e.index,Uo=e.sig,pa):null}function xi(){pa=null,Uo=null;try{typeof localStorage<"u"&&(localStorage.removeItem(vi),localStorage.removeItem(yi))}catch{}}const Ci={cho:Ze,jung:dt,jong:gt},ft=e=>Array.isArray(e)?e.length>0:!!e;function Ko(e,t){if(e.length!==t.length)return!1;for(let a=0;a<e.length;a++){const r=e[a],n=t[a];if(!(!r||!n)&&(r.cho!==n.cho&&Ze[r.cho]==="\u3147"!=(Ze[n.cho]==="\u3147")||r.jong!==n.jong&&r.jong===0!=(n.jong===0)))return!0}return!1}function _i(e,t,a){const r=a.pronOf(e),n=a.decompOf,i=a.sameStructureOnly&&n?n(r):null,s=[];for(const c of t)c!==e&&(a.okSet&&!a.okSet.has(c)||a.pronOf(c)!==r&&(i&&n&&Ko(i,n(a.pronOf(c)))||s.push(c)));return s}function Mr(e,t,a){const r=t?.[e];if(!r)return[];const n=a.kind?r[a.kind]??[]:[...r.cho??[],...r.jung??[],...r.jong??[]];return _i(e,n,a)}function wi(e,t,a,r,n,i,s){const c=["cho","jung","jong"].filter(h=>ft(e[h])),u={};for(const h of c){const g=e[h];u[h]=new Set(Array.isArray(g)?g:[g])}const d=n==="pron",p=new Map;for(const h of t){const g=a(i(h));if(g.some(v=>!v))continue;let f=g;if(!d&&(f=a(h),f.length!==g.length||f.some(v=>!v)))continue;const b=g.length,y=p.get(b);y?y.push({w:h,dPron:g,dPos:f}):p.set(b,[{w:h,dPron:g,dPos:f}])}const m=new Map;for(const[h,g]of p){const f=new Map,b=(y,v)=>{const C=y.dPos[v];return C!=null&&c.every(w=>u[w].has(Ci[w][C[w]]))};for(const y of g){let v;if(s==="head")v=b(y,0)?0:-1;else if(s==="tail")v=b(y,h-1)?h-1:-1;else if(s==="mid"){v=-1;for(let w=1;w<h-1;w++)if(b(y,w)){v=w;break}}else v=y.dPos.findIndex(w=>w!=null&&c.every(x=>u[x].has(Ci[x][w[x]])));if(v<0)continue;const C=f.get(v);C?C.push(y):f.set(v,[y])}for(const[y,v]of f){const C=new Set(c.map(S=>y+":"+S)),w=S=>{let _="";for(let k=0;k<h;k++){const N=S[k];for(const A of["cho","jung","jong"])_+=(C.has(k+":"+A)?"*":N[A])+"."}return _},x=new Map;for(const S of g){const _=w(S.dPron),k=x.get(_);k?k.push(S):x.set(_,[S])}for(const S of v){const _=x.get(w(S.dPron))??[],k=[];for(const N of _){if(N.w===S.w)continue;let A=!0;for(const D of c){const H=S.dPron[y][D],P=N.dPron[y][D];if(P===H){A=!1;break}if(d&&u[D].has(Ci[D][P])){A=!1;break}}A&&(r&&Ko(S.dPron,N.dPron)||k.push(N.w))}m.set(S.w,k)}}}return m}const Pr=0,su=1,Za=2,ki=3,Cw=4,Rr=5,Si=6,$r=7,_w=8,lu=9,Zo=10,ww=11,Xo=12,kw=13,Qo=14,Ir=15,zr=16,Jo=17,Sw=18,ha=0,_a=1,Aw=3,Xa=4,Ai=5,Ti=6,ma=7,At=8,cu=9,du=10,Or=11,uu=12,Bi=13,Fr=15,Wr=16,wa=17,pu=18,Ni=21,hu=27,Tw=20,Bw={1:Pr,2:su,4:Za,7:ki,8:Rr,16:Si,17:$r,19:lu,20:Zo,22:Xo,23:Qo,24:Ir,25:zr,26:Jo},Nw={[Aw]:[_a,Zo],[Ai]:[Xa,Xo],[cu]:[At,Pr],[du]:[At,Si],[Or]:[At,$r],[uu]:[At,Zo],[Bi]:[At,zr],14:[At,Jo],[pu]:[wa,Zo]},Dw={[Ti]:Za,[Fr]:Rr},Di={2:_a,24:_a,3:_a,9:_a,5:Xa,6:Xa,19:ma,20:ma,22:ma,23:ma,25:ma,27:ma,11:At,12:At,13:At,15:At,10:Wr,14:wa,18:wa,26:wa},mu={[Pr]:Ir,[ki]:zr,[$r]:Jo,[Xo]:Qo},bu={[Pr]:su,[ki]:Cw,[$r]:_w,[lu]:Zo,[Xo]:kw},Ew=new Set([Ai,du,Or,uu,Bi,Fr,pu]),jw=new Set(["\uBC1F"]);function gu(e){const t=(e??"").trim();if(!t)return"";const a=[...t],r=a.map(Ee);if(r.some(i=>i===null))return t;const n=r;for(let i=0;i<n.length;i++){const s=n[i],c=n[i+1],u=s.jong;if(!c){s.jong=Di[s.jong]??s.jong;break}if(s.jong===ha)continue;if(c.cho===ww){if(c.jung===Tw){if(s.jong===ma){s.jong=ha,c.cho=Xo;continue}if(s.jong===25){s.jong=ha,c.cho=Qo;continue}if(s.jong===Bi){s.jong=At,c.cho=Qo;continue}}if(s.jong===hu){s.jong=ha;continue}const p=Dw[s.jong];if(p!==void 0){s.jong=ha,c.cho=p;continue}const m=Nw[s.jong];if(m){s.jong=m[0],c.cho=m[1];continue}const h=Bw[s.jong];h!==void 0&&(s.jong=ha,c.cho=h);continue}if((s.jong===hu||s.jong===Ti||s.jong===Fr)&&mu[c.cho]!==void 0){c.cho=mu[c.cho],s.jong=s.jong===Ti?Xa:s.jong===Fr?At:ha;continue}if(c.cho===Sw){if(s.jong===Ai){s.jong=Xa,c.cho=Qo;continue}if(s.jong===cu){s.jong=At,c.cho=Ir;continue}if(s.jong===Or){s.jong=At,c.cho=Jo;continue}const p=Di[s.jong]??s.jong;if(p===_a){s.jong=ha,c.cho=Ir;continue}if(p===ma){s.jong=ha,c.cho=zr;continue}if(p===wa){s.jong=ha,c.cho=Jo;continue}}let d=Di[s.jong]??s.jong;u===Or&&jw.has(a[i])&&(d=wa),s.jong=d,bu[c.cho]!==void 0&&(d===_a||d===ma||d===wa||Ew.has(u))&&(c.cho=bu[c.cho]),(c.cho===Za||c.cho===Si)&&(s.jong===_a?s.jong=Ni:s.jong===ma?s.jong=Xa:s.jong===wa&&(s.jong=Wr)),c.cho===Rr?s.jong===Xa?s.jong=At:s.jong===Wr||s.jong===Ni?c.cho=Za:s.jong===_a?(s.jong=Ni,c.cho=Za):s.jong===wa&&(s.jong=Wr,c.cho=Za):s.jong===At&&c.cho===Za&&(c.cho=Rr)}return n.map(i=>ua(i.cho,i.jung,i.jong)).join("")}const Lw={\u3131:"\u3131",\u3132:"\u3131",\u314B:"\u3131",\u3133:"\u3131",\u313A:"\u3131",\u3134:"\u3134",\u3135:"\u3134",\u3136:"\u3134",\u3137:"\u3137",\u3145:"\u3137",\u3146:"\u3137",\u3148:"\u3137",\u314A:"\u3137",\u314C:"\u3137",\u314E:"\u3137",\u3139:"\u3139",\u313C:"\u3139",\u313D:"\u3139",\u313E:"\u3139",\u3140:"\u3139",\u3141:"\u3141",\u313B:"\u3141",\u3142:"\u3142",\u314D:"\u3142",\u313F:"\u3142",\u3144:"\u3142",\u3147:"\u3147"},Mw={\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"}};function Hr(e){return Lw[e]??e}const go=/[ㄱ-ㅎ]/,Pw=/[ㅏ-ㅣ]/;function er(e){for(let t=e.length-1;t>=0;t--){const a=e[t],r=a.charCodeAt(0);if(r>=44032&&r<=55203||go.test(a)||Pw.test(a))return a}return null}function Ei(e){const t=er(e);if(!t)return"\uAC00";const a=t.charCodeAt(0);return a>=44032&&a<=55203?(a-44032)%28!==0?"\uC774":"\uAC00":go.test(t)?"\uC774":"\uAC00"}function ji(e){return`${e}${Ei(e)}`}function Li(e){const t=er(e);if(!t)return"\uB97C";const a=t.charCodeAt(0);return a>=44032&&a<=55203?(a-44032)%28!==0?"\uC744":"\uB97C":go.test(t)?"\uC744":"\uB97C"}function Mi(e){return`${e}${Li(e)}`}function Pi(e){const t=er(e);if(!t)return"\uB294";const a=t.charCodeAt(0);return a>=44032&&a<=55203?(a-44032)%28!==0?"\uC740":"\uB294":go.test(t)?"\uC740":"\uB294"}function fu(e){return`${e}${Pi(e)}`}function Ri(e){const t=er(e);if(!t)return"\uC640";const a=t.charCodeAt(0);return a>=44032&&a<=55203?(a-44032)%28!==0?"\uACFC":"\uC640":go.test(t)?"\uACFC":"\uC640"}function vu(e){return`${e}${Ri(e)}`}function $i(e){const t=er(e);if(!t)return"\uB85C";const a=t.charCodeAt(0);if(a>=44032&&a<=55203){const r=(a-44032)%28;return r===0||r===8?"\uB85C":"\uC73C\uB85C"}return t==="\u3139"?"\uB85C":go.test(t)?"\uC73C\uB85C":"\uB85C"}function yu(e){return`${e}${$i(e)}`}function Ii(e,t,a){const r=e.slice(),[n]=r.splice(t,1);return r.splice(a,0,n),r}function He(e,t=Math.random){const a=e.slice();for(let r=a.length-1;r>0;r--){const n=Math.floor(t()*(r+1));[a[r],a[n]]=[a[n],a[r]]}return a}function Qt(e,t,a=Math.random){return!Array.isArray(e)||e.length===0||t<=0?[]:t>=e.length?He(e,a):He(e,a).slice(0,t)}const fo={SAME_SOUND_PICK:{difficulty:!0,choseong:!0,group:"discrimination"},SAME_OR_DIFF:{difficulty:!0,choseong:!0,group:"discrimination"},HEAR_AND_PICK_SAME:{difficulty:!0,choseong:!0,group:"discrimination"},HEAR_AND_PICK_INCLUDED:{difficulty:!0,choseong:!0,group:"discrimination"},STARTS_WITH_SAME_SOUND:{difficulty:!1,choseong:!0,group:"discrimination"},LISTEN_AND_REMEMBER_ORDER:{difficulty:!1,choseong:!0,group:"attention"},MERGE_2_SYLLABLES:{difficulty:!1,choseong:!0,group:"synthesis"},MERGE_3_SYLLABLES:{difficulty:!1,choseong:!0,group:"synthesis"},MERGE_2_PHONEMES:{difficulty:!1,choseong:!0,group:"synthesis"},MERGE_3_PHONEMES:{difficulty:!1,choseong:!0,group:"synthesis"},DROP_1_FROM_2SYLL:{difficulty:!1,choseong:!0,group:"deletion"},DROP_1_FROM_3SYLL:{difficulty:!1,choseong:!0,group:"deletion"},DROP_PART_FROM_COMPOUND:{difficulty:!1,choseong:!0,group:"deletion"},DROP_FINAL_CONSONANT_FROM_1SYLL:{difficulty:!1,choseong:!0,group:"deletion"},REMOVE_CONSONANT_AND_IDENTIFY_PHONEME:{difficulty:!1,choseong:!0,group:"deletion"},CHANGE_1_SYLL_IN_2SYLL:{difficulty:!0,choseong:!0,group:"substitution"},CHANGE_1_SYLL_IN_3SYLL:{difficulty:!0,choseong:!0,group:"substitution"},CHANGE_1_PHONEME_IN_1SYLL:{difficulty:!1,choseong:!0,group:"substitution"},CHANGE_1_PHONEME_IN_2SYLL:{difficulty:!0,choseong:!0,group:"substitution"}};function Rw(e){const t=e?fo[e]?.group:void 0;return t==="synthesis"||t==="deletion"||t==="substitution"?t:null}const $w=Ze.indexOf("\u3147"),Vr={DROP_FINAL_CONSONANT_FROM_1SYLL:{syllables:1,syllable:e=>e.jong>0},REMOVE_CONSONANT_AND_IDENTIFY_PHONEME:{syllables:1,syllable:e=>e.jong===0&&e.cho!==$w},MERGE_2_SYLLABLES:{syllables:2,syllable:()=>!0},MERGE_3_SYLLABLES:{syllables:3,syllable:()=>!0},MERGE_2_PHONEMES:{syllables:1,syllable:e=>e.jong===0},MERGE_3_PHONEMES:{syllables:1,syllable:e=>e.jong>0}},Iw=new Set([]);function xu(e){return e in Vr}function Cu(e,t){const a=Vr[e];if(!a)return!0;const r=[...t];if(r.length!==a.syllables)return!1;const n=Ee(r[0]);return!!n&&a.syllable(n)}function _u(e){return Iw.has(e)}function zw(e){const t=e.charCodeAt((e.length||1)-1)||0;return t<44032||t>55203||(t-44032)%28===0?"\uC640":"\uACFC"}function zi(e){const t=e.charCodeAt((e.length||1)-1)||0;return t<44032||t>55203||(t-44032)%28===0?"\uB97C":"\uC744"}function wu(e){const t=e.charCodeAt((e.length||1)-1)||0;if(t<44032||t>55203)return"\uB85C";const a=(t-44032)%28;return a===0||a===8?"\uB85C":"\uC73C\uB85C"}function ku(e){const t=e.charAt((e.length||1)-1),a=t.charCodeAt(0)||0;return a>=44032&&a<=55203?(a-44032)%28===0?"\uAC00":"\uC774":/[ㄱ-ㅎ]/.test(t)?"\uC774":"\uAC00"}const Su={\u3131:"\uAE30\uC5ED",\u3132:"\uC30D\uAE30\uC5ED",\u3134:"\uB2C8\uC740",\u3137:"\uB514\uADFF",\u3138:"\uC30D\uB514\uADFF",\u3139:"\uB9AC\uC744",\u3141:"\uBBF8\uC74C",\u3142:"\uBE44\uC74D",\u3143:"\uC30D\uBE44\uC74D",\u3145:"\uC2DC\uC637",\u3146:"\uC30D\uC2DC\uC637",\u3147:"\uC774\uC751",\u3148:"\uC9C0\uC752",\u3149:"\uC30D\uC9C0\uC752",\u314A:"\uCE58\uC753",\u314B:"\uD0A4\uC754",\u314C:"\uD2F0\uC755",\u314D:"\uD53C\uC756",\u314E:"\uD788\uC757",\u3133:"\uAE30\uC5ED\uC2DC\uC637",\u3135:"\uB2C8\uC740\uC9C0\uC752",\u3136:"\uB2C8\uC740\uD788\uC757",\u313A:"\uB9AC\uC744\uAE30\uC5ED",\u313B:"\uB9AC\uC744\uBBF8\uC74C",\u313C:"\uB9AC\uC744\uBE44\uC74D",\u313D:"\uB9AC\uC744\uC2DC\uC637",\u313E:"\uB9AC\uC744\uD2F0\uC755",\u313F:"\uB9AC\uC744\uD53C\uC756",\u3140:"\uB9AC\uC744\uD788\uC757",\u3144:"\uBE44\uC74D\uC2DC\uC637",\u314F:"\uC544",\u3150:"\uC560",\u3151:"\uC57C",\u3152:"\uC598",\u3153:"\uC5B4",\u3154:"\uC5D0",\u3155:"\uC5EC",\u3156:"\uC608",\u3157:"\uC624",\u3158:"\uC640",\u3159:"\uC65C",\u315A:"\uC678",\u315B:"\uC694",\u315C:"\uC6B0",\u315D:"\uC6CC",\u315E:"\uC6E8",\u315F:"\uC704",\u3160:"\uC720",\u3161:"\uC73C",\u3162:"\uC758",\u3163:"\uC774"};function Au(e){if([...e].length!==1)return[e];const t=Ee(e);if(!t)return[e];const a=[Ze[t.cho],dt[t.jung]];return t.jong!==0&&a.push(gt[t.jong]),a}function Oi(e,t=!1){const a=e.filter(Boolean);if(a.length<2)return"";const r=c=>Su[c]??c,n=a.slice(0,-1).map(c=>`"${c}"${zw(r(c))}`).join(" "),i=a[a.length-1],s=`"${i}"${zi(r(i))}`;return`${n} ${s} \uD569\uCE58\uBA74 \uC5B4\uB5A4 ${t?"\uC18C\uB9AC":"\uB2E8\uC5B4"}\uAC00 \uB418\uB098\uC694?`}function Ow(e,t){return Oi(t,e==="MERGE_2_PHONEMES"||e==="MERGE_3_PHONEMES")}function Fw(e,t){const a=String(t?.word??t?.original??""),r=String(t?.changedFrom??""),n=String(t?.changedTo??"");return e==="CHANGE_1_PHONEME_IN_1SYLL"?`"${a}"${zi(a)} "${n}"${wu(n)} \uBC14\uAFB8\uBA74 \uBB34\uC5C7\uC774 \uB418\uB098\uC694?`:`"${a}"\uC5D0\uC11C "${r}"${zi(r)} "${n}"${wu(n)} \uBC14\uAFB8\uBA74 \uBB34\uC5C7\uC774 \uB418\uB098\uC694?`}function Ww(e,t){const a=String(t?.word??t?.original??t?.base??""),r=String(t?.dropped??"");if(e==="DROP_FINAL_CONSONANT_FROM_1SYLL")return`"${a}"\uC5D0\uC11C \uBC1B\uCE68\uC774 \uC5C6\uC5B4\uC9C0\uBA74 \uC5B4\uB5A4 \uB9D0\uC774 \uB418\uB098\uC694?`;if(e==="REMOVE_CONSONANT_AND_IDENTIFY_PHONEME"){const n=String(t?.missingConsonant??"");return`"${a}"\uC5D0\uC11C "${n}"${ku(n)} \uC5C6\uC5B4\uC9C0\uBA74 \uC5B4\uB5A4 \uC18C\uB9AC\uAC00 \uB418\uB098\uC694?`}return`"${a}"\uC5D0\uC11C "${r}"${ku(r)} \uC5C6\uC5B4\uC9C0\uBA74 \uC5B4\uB5A4 \uB9D0\uC774 \uB418\uB098\uC694?`}function Tu(e,t,a){switch(Rw(e)){case"synthesis":return Ow(e,a);case"substitution":return Fw(e,t);case"deletion":return Ww(e,t);default:return""}}function Bu(e){return e.replace(/"([ㄱ-ㅣ])"(으로|와|과|을|를|이|가|은|는|로)?/g,(t,a,r)=>{const n=Su[a];if(!n)return t;if(!r)return`"${n}"`;const i=(n.charCodeAt(n.length-1)-44032)%28,s=i!==0;let c=r;return r==="\uC640"||r==="\uACFC"?c=s?"\uACFC":"\uC640":r==="\uC744"||r==="\uB97C"?c=s?"\uC744":"\uB97C":r==="\uC774"||r==="\uAC00"?c=s?"\uC774":"\uAC00":r==="\uC740"||r==="\uB294"?c=s?"\uC740":"\uB294":(r==="\uC73C\uB85C"||r==="\uB85C")&&(c=i===0||i===8?"\uB85C":"\uC73C\uB85C"),`"${n}"${c}`})}const Hw=e=>e==null?[]:Array.isArray(e)?e:[e];function Fi(e){if([...e].length!==1)return"";const t=Ee(e);if(!t)return"";const a=Hr(gt[t.jong]),r=a===""?0:gt.indexOf(a);return ua(t.cho,t.jung,r<0?0:r)}function Gr(e,t){return t.get(e)||Fi(e)||e}function tr(e){return e?ft(e.cho)?"cho":ft(e.jung)?"jung":ft(e.jong)?"jong":null:null}function Pa(e,t){const a=(r,n)=>!ft(r)||Hw(r).includes(n);return a(t.cho,Ze[e.cho])&&a(t.jung,dt[e.jung])&&a(t.jong,gt[e.jong])}function Qa(e,t,a){const r=[...e];if(a!=="pron")return r.map(i=>Ee(i));const n=[...t.get(e)||e];return n.length!==r.length?r.map(i=>Ee(i)):n.map(i=>Ee(i))}function Ja(e,t,a,r,n){const i=t==="cho"?Ze:t==="jung"?dt:gt,s=e[t],c=[],u=new Set([Gr(a,n)]),d=He(i.map((p,m)=>m).filter(p=>p!==s&&(t!=="cho"||i[p]!=="\u3147")&&(t!=="jong"||p!==0)));for(const p of d){if(c.length>=r)break;const m=t==="cho"?ua(p,e.jung,e.jong):t==="jung"?ua(e.cho,p,e.jong):ua(e.cho,e.jung,p),h=Gr(m,n);u.has(h)||(u.add(h),c.push(m))}return c}function Wi(e,t,a,r,n,i=null){const s=[...e];if(s.length!==2)return null;const c=s.map(m=>Ee(m));if(c.some(m=>!m))return null;const u=Qa(e,a,r);if(u.some(m=>!m))return null;const d=tr(t);let p=d&&t?u.map((m,h)=>Pa(m,t)?h:-1).filter(m=>m>=0):[0,1];if(i!=null&&(p=p.filter(m=>m!==i)),!p.length)return null;for(const m of He(p)){const h=s[m];if(!n.has(h))continue;const g=Ja(c[m],d??"cho",h,40,a),f=[];for(const b of g)if(b!==h&&n.has(b)&&!f.includes(b)&&f.push(b),f.length>=2)break;if(!(f.length<2))return{question:e,distractors:[h,...f]}}return null}function Hi(e,t,a,r,n,i=null){const s=[...e];if(s.length!==3)return null;const c=s.map(m=>Ee(m));if(c.some(m=>!m))return null;const u=Qa(e,a,r);if(u.some(m=>!m))return null;const d=tr(t),p=d&&t?u.map((m,h)=>Pa(m,t)?h:-1).filter(m=>m>=0):[0,1,2];if(!p.length)return null;for(const m of He(p))for(const h of He([0,1,2].filter(g=>g!==m&&(i==null||g===i)))){const g=[0,1,2].filter(C=>C!==h),f=g.map(C=>s[C]).join("");if(!n.has(f))continue;const b=g.indexOf(m),y=Ja(c[m],d??"cho",s[m],40,a),v=[];for(const C of y){const w=g.map(S=>s[S]);w[b]=C;const x=w.join("");if(x!==f&&n.has(x)&&!v.includes(x)&&v.push(x),v.length>=2)break}if(!(v.length<2))return{question:e,distractors:[f,...v]}}return null}function Vi(e,t,a,r,n,i=null){const s=[...e],c=s.length;if(c<2)return null;const u=[];for(let p=1;p<=c-1;p++)u.push({remain:s.slice(0,p).join(""),dropped:s.slice(p).join(""),droppedEnd:1}),u.push({remain:s.slice(c-p).join(""),dropped:s.slice(0,c-p).join(""),droppedEnd:0});const d=tr(t);for(const{remain:p,dropped:m,droppedEnd:h}of He(u)){if(i!=null&&h!==i||p===e||!n.has(p)||!n.has(m))continue;const g=[...p],f=g.map(v=>Ee(v));if(f.some(v=>!v))continue;const b=Qa(p,a,r);if(b.some(v=>!v))continue;const y=d&&t?b.map((v,C)=>Pa(v,t)?C:-1).filter(v=>v>=0):g.map((v,C)=>C);if(y.length)for(const v of He(y)){const C=Ja(f[v],d??"cho",g[v],40,a),w=[];for(const x of C){const S=[...g];S[v]=x;const _=S.join("");if(_!==p&&n.has(_)&&!w.includes(_)&&w.push(_),w.length>=2)break}if(w.length>=2)return{question:e,distractors:[p,...w]}}}return null}function Gi(e,t,a,r,n,i=null){if([...e].length!==1)return null;const s=Ee(a.get(e)||e);if(!s||s.jong===0)return null;const c=ua(s.cho,s.jung,0),u=Ja({cho:s.cho,jung:s.jung,jong:0},"cho",c,2,a);return u.length<2?null:{question:e,distractors:[c,...u]}}const qi=Ze.indexOf("\u3147");function Yi(e,t,a,r,n,i=null){if([...e].length!==1)return null;const s=Ee(a.get(e)||e);if(!s||s.jong!==0||s.cho===qi)return null;const c=ua(qi,s.jung,0),u=Ja({cho:qi,jung:s.jung,jong:0},"jung",c,2,a);return u.length<2?null:{question:e,distractors:[c,...u]}}function Ui(e){const t=new Map;for(const a of e){const r=[...a],n=r.length;if(!(n<2||n>3))for(let i=0;i<n;i++){let s=n+"|"+i+"|";for(let u=0;u<n;u++)s+=u===i?"*":r[u];const c=t.get(s);c?c.push(a):t.set(s,[a])}}return t}function Ki(e,t,a,r,n,i=null,s=null,c=2){const u=[...e],d=u.length;if(d<2||d>3)return null;const p=u.map(C=>Ee(C));if(p.some(C=>!C))return null;const m=Qa(e,a,r);if(m.some(C=>!C))return null;const h=C=>a.get(C)??C,g=h(e),f=!!t&&(ft(t.cho)||ft(t.jung)||ft(t.jong)),b=!!s&&(ft(s.cho)||ft(s.jung)||ft(s.jong)),y=C=>{let w=d+"|"+C+"|";for(let x=0;x<d;x++)w+=x===C?"*":u[x];return w};let v;if(i!=null){if(i>=d||f&&!Pa(m[i],t))return null;v=[i]}else f?v=m.map((C,w)=>Pa(C,t)?w:-1).filter(C=>C>=0):v=Array.from({length:d},(C,w)=>w);for(const C of He(v)){const w=n.get(y(C))??[],x=[],S=[];for(const D of w){if(D===e)continue;const H=[...D].map(L=>Ee(L)),P=p[C],T=H[C];if(!P||!T)continue;let E=0;if(P.cho!==T.cho&&E++,P.jung!==T.jung&&E++,P.jong!==T.jong&&E++,!(E<c||h(D)===g))if(b){const L=Qa(D,a,r)[C];L&&Pa(L,s)?x.push(D):S.push(D)}else x.push(D)}if(!x.length)continue;const _=He(x)[0],k=[],N=new Set([g,h(_)]),A=b?S:x.filter(D=>D!==_);for(const D of He(A)){const H=h(D);if(!N.has(H)&&(N.add(H),k.push(D),k.length>=2))break}if(!b&&k.length<2)for(const D of He(w)){if(D===e||D===_)continue;const H=h(D);if(!N.has(H)&&(N.add(H),k.push(D),k.length>=2))break}if(!(k.length<2))return{question:e,distractors:[_,...k]}}return null}function qr(e,t="\uC54C \uC218 \uC5C6\uB294 \uC624\uB958"){if(e instanceof Error)return e.message||t;if(typeof e=="string")return e||t;if(e&&typeof e=="object"){const a=e;for(const r of[a.message,a.error_description,a.error])if(typeof r=="string"&&r)return r}return t}const Zi="\uB124\uD2B8\uC6CC\uD06C \uC5F0\uACB0\uC774 \uBD88\uC548\uC815\uD569\uB2C8\uB2E4. \uC5F0\uACB0 \uC0C1\uD0DC\uB97C \uD655\uC778\uD55C \uB4A4 \uB2E4\uC2DC \uC2DC\uB3C4\uD574 \uC8FC\uC138\uC694.";function Xi(e){return e?/failed to fetch|load failed|networkerror|network request failed|fetcherror/i.test(e):!1}function Nu(e){return Xi(e)?Zi:e}function Du(e,t){return e==="id"?void 0:`${e}|${t?"asc":"desc"}`}function Eu(e){const[t,a]=e.split("|");return{key:t,asc:a==="asc"}}function ju(e){let t=e==null?"":String(e);return/^[=+\-@\t\r]/.test(t)&&(t=" "+t),/[",\n\r]/.test(t)?`"${t.replaceAll('"','""')}"`:t}function Lu(e,t){const a=new Blob(["\uFEFF"+t],{type:"text/csv;charset=utf-8"}),r=URL.createObjectURL(a),n=document.createElement("a");n.href=r,n.download=e,n.click(),URL.revokeObjectURL(r)}const Mu="__ihab_core_word_pool__";function Vw(){typeof window<"u"&&window.dispatchEvent(new CustomEvent("wordpool:update"))}function Pu(e,t){const a=new Map;for(const n of e)a.set(n.word,n);const r={entries:e,pairIndex:t??null,byWord:a};globalThis[Mu]=r,Vw()}function vo(){return globalThis[Mu]??null}const yo=globalThis;function Qi(e,t){const a=r=>{};try{const r=t();r&&typeof r.catch=="function"&&r.catch(a)}catch(r){a(r)}}function Ru(e){yo.__ihabTrainingTimeLogger=e}function Ji(e){Qi("time",()=>yo.__ihabTrainingTimeLogger?.(e))}function $u(e){yo.__ihabTrainingCompletionLogger=e}function es(e){Qi("completion",()=>yo.__ihabTrainingCompletionLogger?.(e))}function Iu(e){yo.__ihabCrosswordLogger=e}function zu(e){Qi("crossword",()=>yo.__ihabCrosswordLogger?.(e))}function Jt(e){return typeof e=="string"?e.trim()||null:typeof e=="number"?String(e):null}function ts(e){for(const t of["correct","isCorrect","heard","judgement"])if(typeof e[t]=="boolean")return e[t];return e.score===1?!0:e.score===0?!1:null}function as(e){return Array.isArray(e)?e.map((t,a)=>{const r=t??{};return{index:a,itemId:Jt(r.contextCode)??Jt(r.itemId)??Jt(r.itemCode)??Jt(r.id),question:Jt(r.question)??Jt(r.sentence)??Jt(r.word)??Jt(r.targetSyllable),answer:Jt(r.answer),selected:Jt(r.selectedText)??Jt(r.selected),correct:ts(r)}}):[]}function Ou(e){return e.filter(t=>t.correct===!1)}let Fu=null,Wu=null,Hu=null;function Vu(e){Fu=e}function Gu(e){Wu=e}function qu(e){Hu=e}async function Yu(e,t){try{return await Fu?.(e,t)??null}catch{return null}}async function Uu(){try{return await Wu?.()??null}catch{return null}}async function Ku(e,t){try{return await Hu?.(e,t)??null}catch{return null}}const os=globalThis;function Zu(e){os.__ihabNoiseSettingsStore=e}async function rs(){try{return await os.__ihabNoiseSettingsStore?.load()??null}catch{return null}}function ns(e){const t=a=>{};try{const a=os.__ihabNoiseSettingsStore?.save(e);a&&typeof a.catch=="function"&&a.catch(t)}catch(a){t(a)}}function ar(e){const t=new TextEncoder().encode(String(e).normalize("NFC"));let a="";return t.forEach(r=>{a+=r.toString(16).padStart(2,"0")}),a}const Xu=ar;function Qu(e,t){return`${e}/${ar(t)}.mp3`}function Ju(e={}){const t=e.storagePrefix??"audio-cache",a=e.voice??"ko-f",r=typeof e.speed=="number"?e.speed:1,n=e.filenameSanitizer??ar;return async function(i){const s=String(i||"").trim();if(!s)return"";const c=`${n(s)}_${a}.mp3`,u=`${t}/${c}`;try{if(await ei(u)){const d=await Oo(u);if(d)return d}}catch{}if(e.generator)try{const d=await e.generator(s,u,e);if(d)return d}catch{}try{const d=`/api/tts?word=${encodeURIComponent(s)}&voice=${encodeURIComponent(a)}&speed=${encodeURIComponent(String(r))}`;return await fetch(d,{method:"GET"}),`/audio-cache/${c}`}catch{return`/audio-cache/${c}`}}}async function is(e){if(typeof document<"u")try{const t=document.createElement("textarea");t.value=e,t.setAttribute("readonly",""),t.style.position="fixed",t.style.top="0",t.style.left="0",t.style.opacity="0",t.style.pointerEvents="none",document.body.appendChild(t),t.focus(),t.select(),t.setSelectionRange(0,e.length);const a=document.execCommand("copy");if(document.body.removeChild(t),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}const xo="Asia/Seoul";function ep(e){return new Date(e).toLocaleDateString("ko-KR",{timeZone:xo,year:"numeric",month:"short",day:"numeric"})}function tp(e){return new Date(e).toLocaleString("ko-KR",{timeZone:xo,year:"numeric",month:"long",day:"numeric",hour:"2-digit",minute:"2-digit"})}function ap(e,t){const a=t.startsWith("ko")?"ko-KR":"en-US";return new Date(e).toLocaleDateString(a,{timeZone:xo,year:"numeric",month:"short",day:"numeric"})}function op(e,t){const a=t.startsWith("ko")?"ko-KR":"en-US";return new Date(e).toLocaleString(a,{timeZone:xo,year:"numeric",month:"long",day:"numeric",hour:"2-digit",minute:"2-digit"})}function rp(e){return new Date(e).toLocaleString("ko-KR",{timeZone:xo,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"})}function np(e){if(e==null||e==="")return"";const t=e instanceof Date?e:new Date(e);return isNaN(t.getTime())?"":new Intl.DateTimeFormat("en-GB",{timeZone:xo,hour:"2-digit",minute:"2-digit",hour12:!1}).format(t)}function Yr(){return ka(new Date)}function ka(e){if(e==null||e==="")return"";const t=e instanceof Date?e:new Date(e);return isNaN(t.getTime())?"":new Intl.DateTimeFormat("fr-CA",{timeZone:"Asia/Seoul"}).format(t)}function Ur(e,t){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)),n=Math.floor(r/60),i=Math.floor(n/60),s=Math.floor(i/24),c=Math.floor(s/7),u=Math.floor(s/30),d=Math.floor(s/365);return n<1?t("store.time.justNow","\uBC29\uAE08 \uC804"):n<60?t("store.time.minutesAgo",{n}):i<24?t("store.time.hoursAgo",{n:i}):s<7?t("store.time.daysAgo",{n:s}):c<5?t("store.time.weeksAgo",{n:c}):s<365?t("store.time.monthsAgo",{n:Math.min(u,11)}):t("store.time.yearsAgo",{n:d})}function Kr(e,t={}){const{sep:a=".",pad:r=!0,trailingDot:n=!1,fallback:i="\u2014"}=t;if(!e)return i;const s=ka(e instanceof Date?e:String(e));if(!s)return i;const[c,u,d]=s.split("-"),p=r?u:String(Number(u)),m=r?d:String(Number(d));return`${c}${a}${p}${a}${m}${n?".":""}`}function ip(e){const t=e.replace(/\D/g,"").slice(0,11);return t.startsWith("02")?t.length<=2?t:t.length<=6?`${t.slice(0,2)}-${t.slice(2)}`:`${t.slice(0,2)}-${t.slice(2,t.length-4)}-${t.slice(t.length-4)}`:t.length<=3?t:t.length<=7?`${t.slice(0,3)}-${t.slice(3)}`:`${t.slice(0,3)}-${t.slice(3,t.length-4)}-${t.slice(t.length-4)}`}function sp(e){if(e){if(/^\d{4}\.\d{2}\.\d{2}$/.test(e))return e;if(/^\d{8}$/.test(e))return`${e.slice(0,4)}.${e.slice(4,6)}.${e.slice(6,8)}`;if(/^\d{4}-\d{2}-\d{2}$/.test(e))return e.replace(/-/g,".");if(/^\d{4}-\d{2}-\d{2}T/.test(e)){const t=new Date(e);return isNaN(t.getTime())?void 0:ka(t).replace(/-/g,".")}}}function lp(e){if(e)return/^\d{4}\.\d{2}\.\d{2}$/.test(e)?e.replace(/\./g,"-"):e}function or(e){if(!e)return e;const t=e.trim();return/^[₩$]/.test(t)?t:/원\s*$/.test(t)?"\u20A9"+t.replace(/\s*원\s*$/,"").trim():t}function Zr(e,t){if(!e)return"-";const a=/^(\d{1,2}):(\d{2})$/.exec(e.trim());if(!a)return e;const r=Number(a[1]),n=Number(a[2]),i=a[1].padStart(2,"0");return n===0?t("date.timeH",{h:r,hh:i,mm:a[2]}):t("date.timeHM",{h:r,hh:i,m:n,mm:a[2]})}function rr(e){return(e??0).toLocaleString("ko-KR")}const Gw=[{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"}]}],qw=[{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"}];let ss=null;function cp(e){ss=e}function Xr(){return ss?.topicTypes??Gw}function ls(){return ss?.trainingTypes??qw}const dp="ihab_theme",Yw="light";function cs(){try{const e=localStorage.getItem(dp);if(e==="light"||e==="dark"||e==="auto")return e}catch{}return Yw}function ds(e){try{document.documentElement.setAttribute("data-theme",e),localStorage.setItem(dp,e)}catch{}}function up(){ds(cs())}const pp="ihab_font_scale",Uw="medium",Kw=["medium","large1","large2","large3"];function us(){try{const e=localStorage.getItem(pp);if(Kw.includes(e))return e}catch{}return Uw}function ps(e){try{document.documentElement.setAttribute("data-font-scale",e),localStorage.setItem(pp,e)}catch{}}function hp(){ps(us())}const Ra=[],$a=[],Ia=[],za=[],nr={LISTEN_IN_NOISE:[],SHORT_STORY:[],LONG_STORY:[],ORDERING_SENTENCE:[]},ir={LISTEN_IN_NOISE:[],SHORT_STORY:[],LONG_STORY:[],ORDERING_SENTENCE:[]},Zw={LISTEN_IN_NOISE:3,SHORT_STORY:2,LONG_STORY:1,ORDERING_SENTENCE:2};let hs=null,mp=null,Oa=null;function ms({counts:e,forceRefresh:t}={}){const a=Object.assign({},Zw,e||{}),r=Yr(),n=ka(new Date(`${r}T00:00:00+09:00`).getTime()-864e5),i=JSON.stringify(a);if(!t&&mp===r&&hs===i&&Oa)return Object.assign(nr,Oa.today),Object.assign(ir,Oa.yesterday?.selection||{LISTEN_IN_NOISE:[],SHORT_STORY:[],LONG_STORY:[],ORDERING_SENTENCE:[]}),{today:nr,yesterday:ir};const s={LISTEN_IN_NOISE:Qt(Ra,Math.max(0,Number(a.LISTEN_IN_NOISE)||0)),SHORT_STORY:Qt($a,Math.max(0,Number(a.SHORT_STORY)||0)),LONG_STORY:Qt(Ia,Math.max(0,Number(a.LONG_STORY)||0)),ORDERING_SENTENCE:Qt(za,Math.max(0,Number(a.ORDERING_SENTENCE)||0))};let c=null;return Oa&&hs===i&&Oa.yesterday&&Oa.yesterday.date===n&&(c=Oa.yesterday.selection),c||(c={LISTEN_IN_NOISE:Qt(Ra,Math.max(0,Number(a.LISTEN_IN_NOISE)||0)),SHORT_STORY:Qt($a,Math.max(0,Number(a.SHORT_STORY)||0)),LONG_STORY:Qt(Ia,Math.max(0,Number(a.LONG_STORY)||0)),ORDERING_SENTENCE:Qt(za,Math.max(0,Number(a.ORDERING_SENTENCE)||0))}),Object.assign(nr,s),Object.assign(ir,c),mp=r,hs=i,Oa={today:s,yesterday:{date:n,countsKey:i,selection:c}},{today:nr,yesterday:ir}}function bp(){return{today:nr,yesterday:ir}}function bs(){return{LISTEN_IN_NOISE:Ra,SHORT_STORY:$a,LONG_STORY:Ia,ORDERING_SENTENCE:za}}let gs=!1,sr=null;async function Xw(){try{const e={url:typeof document>"u"?require("url").pathToFileURL(__filename).href:Yt&&Yt.tagName.toUpperCase()==="SCRIPT"&&Yt.src||new URL("ihabdevteam-core.cjs.js",document.baseURI).href}&&void 0||"/",t=await fetch(`${e}data/allTrainingData.json`);return t.ok?await t.json():null}catch{return null}}async function fs(){if(!gs)return sr||(sr=(async()=>{const e=await Xw();if(!e){sr=null;try{window.dispatchEvent(new Event("speechear.data.error"))}catch{}return}try{for(const t of Object.keys(e||{})){const a=e[t]||[];for(const r of a){const n=r,i=String(n.training_type||t),s=String(n.category_main_code||n.category_main||n.category_0||""),c=String(n.category_sub_code||n.category_sub||n.category_1||""),u=Object.assign({},n,{training_type:i,category_0:s,category_1:c});i==="LISTEN_IN_NOISE"?Ra.push(u):i==="SHORT_STORY"?$a.push(u):i==="LONG_STORY"?Ia.push(u):i==="ORDERING_SENTENCE"&&za.push(u)}}}catch{sr=null;try{window.dispatchEvent(new Event("speechear.data.error"))}catch{}return}try{window.dispatchEvent(new Event("speechear.data.updated"))}catch{}try{ms()}catch{}gs=!0})(),sr)}function gp(){return gs}async function vs(e=3e3){const t=fs();return Promise.race([t,new Promise(a=>setTimeout(a,e))])}const Qr=[{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."}],fp=[{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\uC0C1\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",desc:"\uC18C\uC74C \uD658\uACBD \uC18D \uBB38\uC7A5 \uC774\uD574 \uD6C8\uB828",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",desc:"\uC18C\uC74C \uD658\uACBD \uC18D \uBB38\uC7A5 \uC774\uD574 \uD6C8\uB828",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",desc:"\uC18C\uC74C \uD658\uACBD \uC18D \uBB38\uC7A5 \uC774\uD574 \uD6C8\uB828",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",desc:"\uC18C\uC74C \uD658\uACBD \uC18D \uBB38\uC7A5 \uC774\uD574 \uD6C8\uB828",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",desc:"\uC18C\uC74C \uD658\uACBD \uC18D \uBB38\uC7A5 \uC774\uD574 \uD6C8\uB828",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",desc:"\uC18C\uC74C \uD658\uACBD \uC18D \uBB38\uC7A5 \uC774\uD574 \uD6C8\uB828",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",desc:"\uC18C\uC74C \uD658\uACBD \uC18D \uBB38\uC7A5 \uC774\uD574 \uD6C8\uB828",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"}]}],ys={LISTEN_IN_NOISE:"listenInNoise",SHORT_STORY:"shortStory",LONG_STORY:"longStory",ORDERING_SENTENCE:"orderingSentence"};function Qw(e){return Qr.map(t=>{const a=ys[t.key];return a?{...t,label:e(`trainingType.${a}.title`),desc:e(`trainingType.${a}.desc`)}:t})}let Jr=null,vp=null,yp=null;function Jw(){const e=vo();if(e&&e.entries.length>0){const t=Ka();if(Jr&&vp===e&&yp===t)return Jr;const a=new Set,r=[];for(const n of e.entries)!n.word||a.has(n.word)||(a.add(n.word),r.push({w:n.word,s:n.syllables,p:t?.[n.word]?[...t[n.word].cho??[],...t[n.word].jung??[],...t[n.word].jong??[]]:[],pron:n.pronunciation||n.word,grade:n.grade}));return Jr=r,vp=e,yp=t,Jr}return[]}const ea=new Proxy([],{get(e,t){const a=Jw(),r=a[t];return typeof r=="function"?r.bind(a):r}});function en(e){return e.length?e[Math.floor(Math.random()*e.length)]:void 0}function ta(e,t){if(t>=e.length)return He(e);if(t===0)return[];const a=e.slice();for(let r=0;r<t;r++){const n=r+Math.floor(Math.random()*(a.length-r)),i=a[r];a[r]=a[n],a[n]=i}return a.slice(0,t)}let xs=null,xp=null;function eo(){const e=vo();if(xs&&xp===e)return xs;const t=new Map;for(const a of ea)a.w&&t.set(a.w,a.pron);return xs=t,xp=e,t}function Ft(e){return eo().get(e)||e}function Cs(e,t,a=new Set){const r=[];for(const n of He(e)){if(r.length>=t)break;const i=Ft(n);a.has(i)||(a.add(i),r.push(n))}return r}let e4=0;function Tt(e){return`${e}-rt-${++e4}`}function lr(e){const t=Lr();if(!t||t.total===0){const r=new Set;for(const n of e)r.add(n);return r}const a=new Set;for(const r of e)si(r)===!0&&a.add(r);return a}const tn=new Map;let Cp=null,_p=null;function cr(e){return e==null?"":Array.isArray(e)?e.slice().sort().join(","):e}function wp(e){const t=cr(e.choseong),a=e.composition,r=a?.syllable==null?"":Array.isArray(a.syllable)?a.syllable.slice().sort().join(","):String(a.syllable),n=a?`${cr(a.cho)}/${cr(a.jung)}/${cr(a.jong)}/${a.jongNone?"N":""}/${r}`:"",i=cr(e.grade);return`${e.difficulty??""}|${t}|${n}|${e.excludeNoImage?"1":"0"}|${e.count??""}|x${e.contrastCount??1}|${e.fullCount?"F":""}|s${e.sameStructureOnly===!1?"0":"1"}|v${e.phonemeView==="pron"?"p":"c"}|g${i}|t${e.targetSyllable??""}|c${e.choicesPerItem??""}`}async function Wt(e){const t=vo(),a=Ka();(t!==Cp||a!==_p)&&(tn.clear(),Cp=t,_p=a);const r=wp(e);return tn.has(r)||tn.set(r,a4(e)),tn.get(r)}function t4(e){if(!e)return null;const t=s=>s==null?null:Array.isArray(s)?s.length?s:null:[s],a=t(e.cho),r=t(e.jung),n=!!e.jongNone,i=n?null:t(e.jong);return a||r||i||n?n&&!a&&!r&&!i?s=>mi(s):s=>bi(s,{cho:a,jung:r,jong:i,jongNone:n}):null}async function a4(e){const{difficulty:t=null,choseong:a=null,composition:r=null,targetSyllable:n=null,excludeNoImage:i=!1}=e,s=e.grade&&e.grade.length>0?new Set(e.grade):null,c=e.sameStructureOnly??!0,u=e.phonemeView==="pron"?"pron":"char",d=Math.max(1,e.contrastCount??1),p=t==="cho"||t==="jung"||t==="jong",m=p&&d>=2,h=t==="count",g=a?new Set(Array.isArray(a)?a:[a]):null,f=r?.syllable!=null?new Set(Array.isArray(r.syllable)?r.syllable:[r.syllable]):null,b=r?[t4(r),f?j=>f.has(bo(j)):null].filter(j=>j!=null):[],y=t==="random"||t===null,v=y||h,C=y||m||h;let w=ea.filter(j=>!j.w||s&&(!j.grade||!s.has(j.grade))?!1:C?!0:Array.isArray(j.p)&&j.p.length>0);g&&(w=w.filter(j=>{for(const M of g)if(uw(j.w,M))return!0;return!1})),b.length>0&&(w=w.filter(j=>{const M=u==="pron"?Ft(j.w):j.w;return b.every($=>$(M))})),n&&(w=w.filter(j=>j.w[0]===n));let x;if(i){const j=new Set;for(const M of w)if(j.add(M.w),Array.isArray(M.p))for(const $ of M.p)j.add($);if(v)for(const M of ea)M.w&&j.add(M.w);x=lr(j)}else{const j=new Set;for(const M of w)if(j.add(M.w),Array.isArray(M.p))for(const $ of M.p)j.add($);if(v)for(const M of ea)M.w&&j.add(M.w);x=j}let S=null;if(m){const j=new Set;for(const M of ea)M.w&&j.add(M.w);S=i?lr(j):j}const _=w.filter(j=>x.has(j.w)),k=600,N=Array.from(x),A=N.length>k?ta(N,k):N,D=h&&r!=null&&(ft(r.cho)||ft(r.jung)||ft(r.jong)),H=2500,P=new Map;if(h&&!D&&d>=2){for(const j of N){const M=bo(j),$=P.get(M);$?$.push(j):P.set(M,[j])}for(const[j,M]of P)M.length>H&&P.set(j,ta(M,H))}const T=ci(),E=D?wi(r,N,T,c,u,Ft):null,L=500,F=1500,te=e.fullCount?_:t==="random"?_.length>L?ta(_,L):_:_.length>F?ta(_,F):_,Z=Ka(),V=[];for(const j of te){let M;const $=Ft(j.w);if(m)M=gw(j.w,t,d,S,24).filter(W=>Ft(W)!==$);else if(h)D?M=(E.get(j.w)??[]).filter(W=>Ft(W)!==$):d<=1?M=Mr(j.w,Z,{okSet:x,pronOf:Ft,decompOf:T,sameStructureOnly:!1}):M=(P.get(bo(j.w))??[]).filter(W=>{if(W===j.w||Ft(W)===$)return!1;const q=fw(j.w,W);return d>=5?q>=5:q===d});else if(y)M=A.filter(W=>W!==j.w&&W.length===j.w.length&&Ft(W)!==$);else{const W=t;M=Mr(j.w,Z,{kind:W,okSet:x,pronOf:Ft,decompOf:T,sameStructureOnly:!1}),M.length===0&&(M=(A.length>30?ta(A,30):A).filter(q=>q!==j.w&&di(j.w,q)===t&&Ft(q)!==$))}if(c&&M.length>0&&(p||h&&!D)){const W=T(Ft(j.w));M=M.filter(q=>!Ko(W,T(Ft(q))))}M.length!==0&&V.push({word:j,usable:M})}return V}async function kp(e,t){const{choicesPerItem:a=3,count:r=10}=t,n=a-1,i=(await Wt(t)).filter(c=>c.usable.length>=n),s=[];for(const c of He(i)){if(s.length>=r)break;const u=Cs(c.usable,n);if(u.length<n)continue;const d=He([c.word.w,...u]);s.push({id:Tt(e+"-item"),index:s.length+1,word:c.word.w,syllables:c.word.s,choices:d,answerIndex:d.indexOf(c.word.w)})}return s}async function o4(e){const{choicesPerItem:t=3,count:a=10}=e,r=t-1,n=await Wt({...e,difficulty:null});if(n.length<t)return[];const i=[],s=He([...n]);for(const c of s){if(i.length>=a)break;const u=c.word.w,d=[...c.word.pron||u],p=en(d);if(!p)continue;const m=n.filter(f=>f.word.w!==u&&f.word.s===c.word.s&&!(f.word.pron||f.word.w).includes(p)&&f.word.pron!==c.word.pron);if(m.length<r)continue;const h=Cs(m.map(f=>f.word.w),r);if(h.length<r)continue;const g=He([u,...h]);i.push({id:Tt("HPI-item"),index:i.length+1,targetSyllable:p,word:u,choices:g,answerIndex:g.indexOf(u)})}return i}async function r4(e){const{count:t=10}=e,a=(await Wt(e)).filter(r=>r.usable.length>=1);return Array.from({length:t},(r,n)=>{const i=en(a);if(!i)return null;const s=n%2===0;let c;if(s)c=[i.word.w,i.word.w];else{const u=en(i.usable);c=Math.random()<.5?[i.word.w,u]:[u,i.word.w]}return{id:Tt("SOD-item"),index:n+1,word:i.word.w,pair:c,same:s}}).filter(r=>!!r)}async function n4(e){const{choicesPerItem:t=3,count:a=10}=e,r=t-1,n=await Wt({...e,difficulty:null});if(n.length<t+1)return[];const i=n.map(h=>h.word.w),s=new Map(n.map(h=>[h.word.w,h.word.pron])),c=h=>(s.get(h)||h)[0]??"",u={};for(const h of n){const g=c(h.word.w);g&&(u[g]||(u[g]=[]),u[g].push(h.word.w))}const d=Object.entries(u).filter(([,h])=>h.length>=2).map(([h])=>h);if(d.length===0)return[];const p=[],m=He([...d]);for(let h=0;p.length<a&&h<a*4;h++){const g=m[h%m.length],f=u[g];if(f.length<2)continue;const b=He([...f]),y=b[0],v=b[1];if(!y||!v||y===v||(s.get(y)||y)===(s.get(v)||v))continue;const C=s.get(v)||v,w=i.filter(_=>c(_)!==g&&_!==y&&_!==v&&_.length===v.length&&(s.get(_)||_)!==C);if(w.length<r)continue;const x=Cs(w,r);if(x.length<r)continue;const S=He([v,...x]);p.push({id:Tt("SWS-item"),index:p.length+1,sourceWord:y,targetSyllable:g,word:v,choices:S,answerIndex:S.indexOf(v)})}return p}function Sp(e,t,a){return ta(e,t).map((r,n)=>{const i=en(r.usable)??"",s=[...r.word.w],c=[...i],u=s.findIndex((p,m)=>p!==c[m]),d=He(r.usable.filter(p=>p&&p!==i)).slice(0,2);return{id:Tt(a),index:n+1,word:r.word.w,original:r.word.w,changed:i,changedFrom:u>=0?s[u]:"",changedTo:u>=0?c[u]:"",distractors:d}})}async function Ap(e,t,a){const{count:r=10}=t,n=eo(),i=ea.filter(g=>g.w&&g.s===e),s=t.excludeNoImage?lr(i.map(g=>g.w)):null,c=s?i.filter(g=>s.has(g.w)):i,u=new Set(c.map(g=>g.w)),d=Ui(u),p=t.phonemeView??"char",m=t.composition??null,h=[];for(const g of He(c)){if(h.length>=r)break;const f=Ki(g.w,m,n,p,d,null,null);if(!f)continue;const b=f.distractors[0],y=[...g.w],v=[...b],C=y.findIndex((w,x)=>w!==v[x]);h.push({id:Tt(a),index:h.length+1,word:g.w,original:g.w,changed:b,changedFrom:C>=0?y[C]:"",changedTo:C>=0?v[C]:"",distractors:f.distractors.slice(1)})}return h}async function i4(e){return Ap(2,e,"CS2-item")}async function s4(e){return Ap(3,e,"CS3-item")}async function l4(e){const t=(await Wt({...e,difficulty:"count",contrastCount:1})).filter(a=>a.word.s===1&&a.usable.length>=1);return Sp(t,e.count??10,"CP1-item")}async function c4(e){const t=e.difficulty&&e.difficulty!=="random"?e.difficulty:"count",a=(await Wt({...e,difficulty:t,contrastCount:1})).filter(r=>r.word.s===2&&r.usable.length>=1);return Sp(a,e.count??10,"CP2-item")}async function d4(e){const{count:t=10}=e,a=(await Wt({...e})).filter(r=>r.word.s===2);return ta(a,t).map((r,n)=>({id:Tt("M2S-item"),index:n+1,word:r.word.w,answer:r.word.w,parts:[...r.word.w]}))}async function u4(e){const{count:t=10}=e,a=(await Wt({...e})).filter(r=>r.word.s===3);return ta(a,t).map((r,n)=>({id:Tt("M3S-item"),index:n+1,word:r.word.w,answer:r.word.w,parts:[...r.word.w]}))}async function p4(e){const{count:t=10}=e,a=(await Wt({...e})).filter(c=>c.word.s===2),r=eo(),n=new Set(ea.map(c=>c.w)),i=e.phonemeView??"char",s=[];for(const c of He(a)){if(s.length>=t)break;const u=Wi(c.word.w,e.composition??null,r,i,n);if(!u)continue;const[d,...p]=u.distractors,m=[...c.word.w],h=m[0]===d?m[1]:m[0];s.push({id:Tt("D2-item"),index:s.length+1,original:c.word.w,word:c.word.w,dropped:h,missingResult:d,distractors:p})}return s}async function h4(e){const{count:t=10}=e,a=(await Wt({...e})).filter(c=>c.word.s===3),r=eo(),n=new Set(ea.map(c=>c.w)),i=e.phonemeView??"char",s=[];for(const c of He(a)){if(s.length>=t)break;const u=Hi(c.word.w,e.composition??null,r,i,n);if(!u)continue;const[d,...p]=u.distractors,m=[...c.word.w];let h="";for(let g=0;g<m.length;g++)if(m.filter((f,b)=>b!==g).join("")===d){h=m[g];break}s.push({id:Tt("D3-item"),index:s.length+1,original:c.word.w,word:c.word.w,dropped:h,missingResult:d,distractors:p})}return s}async function m4(e){const{count:t=10}=e,a=(await Wt({...e})).filter(c=>c.word.s>=2),r=eo(),n=new Set(ea.map(c=>c.w)),i=e.phonemeView??"char",s=[];for(const c of He(a)){if(s.length>=t)break;const u=Vi(c.word.w,e.composition??null,r,i,n);if(!u)continue;const[d,...p]=u.distractors,m=c.word.w,h=m.startsWith(d)?m.slice(d.length):m.endsWith(d)?m.slice(0,m.length-d.length):"";s.push({id:Tt("DPC-item"),index:s.length+1,original:m,word:m,dropped:h,missingResult:d,distractors:p})}return s}async function b4(e){const{count:t=10}=e,a=(await Wt({...e})).map(r=>r.word.w);return a.length<3?[]:Array.from({length:t},(r,n)=>{const i=ta(a,3);return{id:Tt("LRO-item"),index:n+1,sequence:i,choices:He(i)}})}function an(e,t,a){const r=ea.filter(s=>s.w&&s.s===e),n=t?lr(r.map(s=>s.w)):null,i=[];for(const s of r)if(!(n&&!n.has(s.w))){if(a){const c=Ee(s.w);if(!c||!a(c))continue}i.push(s)}return i}function g4(e){const t=an(1,e.excludeNoImage??!1,a=>a.jong===0);return ta(t,e.count??10).map((a,r)=>{const n=Ee(a.w);return{id:Tt("M2P-item"),index:r+1,parts:[Ze[n.cho],dt[n.jung]],answer:a.w,word:a.w}})}function f4(e){const t=an(1,e.excludeNoImage??!1,a=>a.jong>0&&!mo[a.jong]);return ta(t,e.count??10).map((a,r)=>{const n=Ee(a.w);return{id:Tt("M3P-item"),index:r+1,parts:[Ze[n.cho],dt[n.jung],gt[n.jong]],answer:a.w,word:a.w}})}function v4(e){const t=Vr.DROP_FINAL_CONSONANT_FROM_1SYLL,a=an(t.syllables,e.excludeNoImage??!1,t.syllable),r=eo(),n=[];for(const i of He(a)){if(n.length>=(e.count??10))break;const s=Gi(i.w,null,r);if(!s)continue;const[c,...u]=s.distractors;n.push({id:Tt("DFC-item"),index:n.length+1,original:i.w,word:i.w,result:c,distractors:u})}return n}function y4(e){const t=Vr.REMOVE_CONSONANT_AND_IDENTIFY_PHONEME,a=an(t.syllables,e.excludeNoImage??!1,t.syllable),r=eo(),n=[];for(const i of He(a)){if(n.length>=(e.count??10))break;const s=Yi(i.w,null,r);if(!s)continue;const c=Ee(r.get(i.w)||i.w);if(!c)continue;const[u,...d]=s.distractors;n.push({id:Tt("RCP-item"),index:n.length+1,base:i.w,word:i.w,missingConsonant:Ze[c.cho],remaining:u,distractors:d})}return n}const on=new Map;let Tp=null,Bp=null;async function Np(e,t={}){const a=vo(),r=Ka();(a!==Tp||r!==Bp)&&(on.clear(),Tp=a,Bp=r);const n=`${e}:${wp(t)}`;if(on.has(n))return on.get(n);const i=await C4(e,t);return on.set(n,i),i}const x4={SAME_SOUND_PICK:e=>kp("SSP",e),HEAR_AND_PICK_SAME:e=>kp("HPS",e),HEAR_AND_PICK_INCLUDED:e=>o4(e),SAME_OR_DIFF:e=>r4(e),STARTS_WITH_SAME_SOUND:e=>n4(e),LISTEN_AND_REMEMBER_ORDER:e=>b4(e),MERGE_2_SYLLABLES:e=>d4(e),MERGE_3_SYLLABLES:e=>u4(e),MERGE_2_PHONEMES:e=>g4(e),MERGE_3_PHONEMES:e=>f4(e),DROP_1_FROM_2SYLL:e=>p4(e),DROP_1_FROM_3SYLL:e=>h4(e),DROP_PART_FROM_COMPOUND:e=>m4(e),DROP_FINAL_CONSONANT_FROM_1SYLL:e=>v4(e),REMOVE_CONSONANT_AND_IDENTIFY_PHONEME:e=>y4(e),CHANGE_1_SYLL_IN_2SYLL:e=>i4(e),CHANGE_1_SYLL_IN_3SYLL:e=>s4(e),CHANGE_1_PHONEME_IN_1SYLL:e=>l4(e),CHANGE_1_PHONEME_IN_2SYLL:e=>c4(e)};async function C4(e,t={}){const a=x4[e];return a?await a(t):[]}async function _4(e){const t=[null,"count"],a=Object.keys(fo);let r=0;for(const n of t)for(const i of a){const s=fo[i];Np(i,{difficulty:s.difficulty?n:null,choseong:null,count:10,excludeNoImage:e}).catch(()=>{}),++r%6===0&&await new Promise(c=>setTimeout(c,0))}}async function w4(e){return(await Wt({...e,fullCount:!0})).length}async function k4(e={}){const t=[];for(const c of ea)c.w&&t.push(c.w);const a=e.excludeNoImage?lr(t):t,r=new Set,n=new Set,i=new Set,s=new Set;for(const c of a){s.add(bo(c));for(const u of c){const d=Ee(u);if(d&&(Ze[d.cho]!=="\u3147"&&r.add(Ze[d.cho]),n.add(dt[d.jung]),d.jong>0)){i.add(gt[d.jong]);const p=mo[d.jong];p&&p.forEach(m=>i.add(m))}}}return{cho:r,jung:n,jong:i,syllable:s}}const Dp={free:{maxCustomers:0,visitWord:!1,visitSentence:!1,homework:!1,customerStats:!1,managerCustomerSplit:!1,managerManagement:!1,sentenceTrainingSetting:!1,wordTrainingSetting:!1,myWordList:!1,wordListShare:!1,groupTrainingSetting:!1,minimalPairSearch:!0,wordTableSetting:!1,wordTablePrint:!1,addToMyList:!1,addToGroupList:!1,wordSearch:!0,wordSearchPrint:!1,wordSearchAddToMyList:!1,wordSearchAddToGroupList:!1,wordDataLevel:1,sentenceDataLevel:0,crossword:!1,crosswordMid:!1,crosswordHigh:!1,wordTrainingView:!1,sentenceTrainingView:!1},personal_standard:{maxCustomers:0,visitWord:!1,visitSentence:!1,homework:!1,customerStats:!1,managerCustomerSplit:!1,managerManagement:!1,sentenceTrainingSetting:!0,wordTrainingSetting:!0,myWordList:!0,wordListShare:!0,groupTrainingSetting:!1,minimalPairSearch:!0,wordTableSetting:!0,wordTablePrint:!0,addToMyList:!0,addToGroupList:!1,wordSearch:!0,wordSearchPrint:!0,wordSearchAddToMyList:!0,wordSearchAddToGroupList:!1,wordDataLevel:2,sentenceDataLevel:2,crossword:!0,crosswordMid:!0,crosswordHigh:!1,wordTrainingView:!0,sentenceTrainingView:!0},mgr_free:{maxCustomers:5,visitWord:!0,visitSentence:!0,homework:!1,customerStats:!1,managerCustomerSplit:!1,managerManagement:!1,sentenceTrainingSetting:!1,wordTrainingSetting:!1,myWordList:!1,wordListShare:!1,groupTrainingSetting:!1,minimalPairSearch:!0,wordTableSetting:!1,wordTablePrint:!1,addToMyList:!1,addToGroupList:!1,wordSearch:!0,wordSearchPrint:!1,wordSearchAddToMyList:!1,wordSearchAddToGroupList:!1,wordDataLevel:1,sentenceDataLevel:1,crossword:!1,crosswordMid:!1,crosswordHigh:!1,wordTrainingView:!1,sentenceTrainingView:!1},none:{maxCustomers:0,visitWord:!1,visitSentence:!1,homework:!1,customerStats:!1,managerCustomerSplit:!1,managerManagement:!1,sentenceTrainingSetting:!1,wordTrainingSetting:!1,myWordList:!1,wordListShare:!1,groupTrainingSetting:!1,minimalPairSearch:!1,wordTableSetting:!1,wordTablePrint:!1,addToMyList:!1,addToGroupList:!1,wordSearch:!1,wordSearchPrint:!1,wordSearchAddToMyList:!1,wordSearchAddToGroupList:!1,wordDataLevel:0,sentenceDataLevel:0,crossword:!1,crosswordMid:!1,crosswordHigh:!1,wordTrainingView:!1,sentenceTrainingView:!1},lite_word:{maxCustomers:10,visitWord:!0,visitSentence:!1,homework:!1,customerStats:!1,managerCustomerSplit:!1,managerManagement:!1,sentenceTrainingSetting:!1,wordTrainingSetting:!1,myWordList:!1,wordListShare:!1,groupTrainingSetting:!1,minimalPairSearch:!0,wordTableSetting:!0,wordTablePrint:!0,addToMyList:!1,addToGroupList:!1,wordSearch:!0,wordSearchPrint:!0,wordSearchAddToMyList:!1,wordSearchAddToGroupList:!1,wordDataLevel:1,sentenceDataLevel:0,crossword:!0,crosswordMid:!1,crosswordHigh:!1,wordTrainingView:!0,sentenceTrainingView:!1},lite_sentence:{maxCustomers:10,visitWord:!1,visitSentence:!0,homework:!1,customerStats:!1,managerCustomerSplit:!1,managerManagement:!1,sentenceTrainingSetting:!1,wordTrainingSetting:!1,myWordList:!1,wordListShare:!1,groupTrainingSetting:!1,minimalPairSearch:!1,wordTableSetting:!1,wordTablePrint:!0,addToMyList:!1,addToGroupList:!1,wordSearch:!1,wordSearchPrint:!0,wordSearchAddToMyList:!1,wordSearchAddToGroupList:!1,wordDataLevel:0,sentenceDataLevel:1,crossword:!0,crosswordMid:!1,crosswordHigh:!1,wordTrainingView:!1,sentenceTrainingView:!0},lite:{maxCustomers:10,visitWord:!0,visitSentence:!0,homework:!1,customerStats:!1,managerCustomerSplit:!1,managerManagement:!1,sentenceTrainingSetting:!1,wordTrainingSetting:!1,myWordList:!1,wordListShare:!1,groupTrainingSetting:!1,minimalPairSearch:!0,wordTableSetting:!0,wordTablePrint:!0,addToMyList:!1,addToGroupList:!1,wordSearch:!0,wordSearchPrint:!0,wordSearchAddToMyList:!1,wordSearchAddToGroupList:!1,wordDataLevel:1,sentenceDataLevel:1,crossword:!0,crosswordMid:!1,crosswordHigh:!1,wordTrainingView:!0,sentenceTrainingView:!0},standard:{maxCustomers:30,visitWord:!0,visitSentence:!0,homework:!1,customerStats:!1,managerCustomerSplit:!1,managerManagement:!1,sentenceTrainingSetting:!0,wordTrainingSetting:!0,myWordList:!0,wordListShare:!0,groupTrainingSetting:!1,minimalPairSearch:!0,wordTableSetting:!0,wordTablePrint:!0,addToMyList:!0,addToGroupList:!1,wordSearch:!0,wordSearchPrint:!0,wordSearchAddToMyList:!0,wordSearchAddToGroupList:!1,wordDataLevel:2,sentenceDataLevel:2,crossword:!0,crosswordMid:!0,crosswordHigh:!1,wordTrainingView:!0,sentenceTrainingView:!0},pro:{maxCustomers:50,visitWord:!0,visitSentence:!0,homework:!0,customerStats:!0,managerCustomerSplit:!1,managerManagement:!1,sentenceTrainingSetting:!0,wordTrainingSetting:!0,myWordList:!0,wordListShare:!0,groupTrainingSetting:!1,minimalPairSearch:!0,wordTableSetting:!0,wordTablePrint:!0,addToMyList:!0,addToGroupList:!1,wordSearch:!0,wordSearchPrint:!0,wordSearchAddToMyList:!0,wordSearchAddToGroupList:!1,wordDataLevel:3,sentenceDataLevel:3,crossword:!0,crosswordMid:!0,crosswordHigh:!0,wordTrainingView:!0,sentenceTrainingView:!0},enterprise:{maxCustomers:1/0,visitWord:!0,visitSentence:!0,homework:!0,customerStats:!0,managerCustomerSplit:!0,managerManagement:!0,sentenceTrainingSetting:!0,wordTrainingSetting:!0,myWordList:!0,wordListShare:!0,groupTrainingSetting:!0,minimalPairSearch:!0,wordTableSetting:!0,wordTablePrint:!0,addToMyList:!0,addToGroupList:!0,wordSearch:!0,wordSearchPrint:!0,wordSearchAddToMyList:!0,wordSearchAddToGroupList:!0,wordDataLevel:3,sentenceDataLevel:3,crossword:!0,crosswordMid:!0,crosswordHigh:!0,wordTrainingView:!0,sentenceTrainingView:!0}},Ep={none:0,free:1,personal_standard:3,mgr_free:4,lite_word:5,lite_sentence:5,lite:6,standard:7,pro:8,enterprise:9},jp={free:{sentenceTrainingDaily:2,wordTrainingDaily:2,gameDaily:1},personal_standard:{sentenceTrainingDaily:null,wordTrainingDaily:null,gameDaily:null},mgr_free:{sentenceTrainingDaily:2,wordTrainingDaily:2,gameDaily:1,trainingItemMax:5,customerMax:5,homeworkSendDaily:1},lite:{sentenceTrainingDaily:5,wordTrainingDaily:5,gameDaily:5,trainingItemMax:10,customerMax:10,homeworkSendDaily:10},standard:{sentenceTrainingDaily:null,wordTrainingDaily:null,gameDaily:null,trainingItemMax:30,customerMax:30,homeworkSendDaily:30},pro:{sentenceTrainingDaily:null,wordTrainingDaily:null,gameDaily:null,trainingItemMax:null,customerMax:50,homeworkSendDaily:50},enterprise:{sentenceTrainingDaily:null,wordTrainingDaily:null,gameDaily:null,trainingItemMax:null,customerMax:null,homeworkSendDaily:null}};function Lp(e){const t=e.toLowerCase();return t.startsWith("manager_enterprise")?"enterprise":t.startsWith("manager_pro")?"pro":t.startsWith("manager_standard")?"standard":t.startsWith("manager_lite_word")?"lite_word":t.startsWith("manager_lite_sentence")?"lite_sentence":t.startsWith("manager_lite")||t.startsWith("mgr_lite")?"lite":t.startsWith("mgr_standard")?"standard":t.startsWith("mgr_pro")?"pro":t.startsWith("content_")||t.startsWith("speechear_")||t.startsWith("light_")||t==="light"?"personal_standard":"none"}const Mp=5,Pp=5;function Rp({rank:e,voteCount:t,quota:a=5}){return e<a&&t>0}const $p={selected:"ALREADY_SELECTED",added:"ALREADY_ADDED",rejected:"ALREADY_REJECTED"},rn="0.43.0";var S4=Object.freeze({__proto__:null,CAPABILITY:fo,CHOSEONG:Ze,CORE_VERSION:rn,JONGSEONG:gt,JUNGSEONG:dt,LONG_STORIES:Ia,NETWORK_ERROR_MESSAGE:Zi,NOISE_DATAS:Ra,ORDER_SETS:za,PLAN_FEATURES:Dp,PLAN_LIMITS:jp,SHORT_STORIES:$a,TIER_RANK:Ep,TOPIC_TYPES:fp,TRAINING_TYPES:Qr,TRAINING_TYPE_I18N_KEY:ys,WORD_SUGGESTION_ACCOUNT_LIMIT:Pp,WORD_SUGGESTION_EXISTING_ERROR:$p,WORD_SUGGESTION_WEEKLY_QUOTA:Mp,applyFontScale:ps,applyTheme:ds,buildChangeWholeSyllableProblem:Ki,buildDropCompoundProblem:Vi,buildDropContrast3Problem:Hi,buildDropContrastProblem:Wi,buildDropFinalConsonantProblem:Gi,buildMultiPartPosContrast:wi,buildPairIndex:iu,buildRemoveConsonantProblem:Yi,buildSyllableMaskIndex:Ui,bulkSetImageExistence:Kd,cardQuestionTitle:Tu,checkImageExists:Yo,classifyPairDifficulty:di,clearAudioExistsCache:Wd,clearImageExistenceCache:li,clearPairIndexCache:xi,composeSyllable:ua,computeDailySelection:ms,configureImageResolver:Yd,configureNoiseSettingsStore:Zu,configurePronunciationResolver:Vd,configureStorage:Jn,configureTTS:Fd,configureTrainingCategories:cp,copyText:is,createDecompCache:ci,createTTSUrlResolver:Ju,dateToDb:lp,downloadCsvText:Lu,downloadSound:Dr,ensureTrainingDataLoaded:vs,escapeCsvField:ju,fileExists:ei,filterContrastCandidates:_i,finalToPhoneme:Hr,firstChoseongOf:ui,formatCount:rr,formatDateKo:ep,formatDateLocale:ap,formatDateLongKo:tp,formatDateLongLocale:op,formatDatetimeKo:rp,formatPhone:ip,formatRelativeTime:Ur,formatTimeHM:Zr,formatYmd:Kr,getAssetBaseUrl:Xn,getDailySelection:bp,getElementAnalyser:Vo,getErrorMessage:qr,getImageExistenceStats:Lr,getImageExistsCached:si,getImageResolver:Ma,getNoiseBaseUrl:ti,getPairIndex:Ka,getPlanTier:Lp,getPronunciationResolver:ri,getSavedFontScale:us,getSavedTheme:cs,getSignedOrPublicUrl:Oo,getTTSFallbackUrlResolver:oi,getTTSUrlResolver:Fo,getTodayKst:Yr,getTopicTypes:Xr,getTrainingPools:bs,getTrainingTypes:ls,getWordPool:vo,hasQuestionWordConstraint:xu,hasSel:ft,hasStructureContrast:Ko,initFontScale:hp,initTheme:up,isAllChoseong:hi,isManualOnlyType:_u,isNetworkErrorMessage:Xi,isSyllablePattern:gi,isThisWeekPick:Rp,isTrainingDataLoaded:gp,isValidQuestionWord:Cu,itemCorrectness:ts,jamoToNamesForSpeech:Bu,loadGameLeaderboard:Ku,loadMyGameRanks:Uu,loadNoiseSettings:rs,loadTrainingData:fs,logCrossword:zu,logTrainingCompletion:es,logTrainingTime:Ji,matchSyllables:Qa,matchesChoseongSearch:Zd,matchesSyllablePattern:fi,matchesWordQuery:ho,mergeQuestionText:Oi,minimalPairDistractors:Mr,normalizeDate:sp,officialSoundPath:Qu,parseSortValue:Eu,parseSyllable:Ee,patternToComposition:au,phonemePartsOf:Au,pickEuRo:$i,pickEulReul:Li,pickEunNeun:Pi,pickIga:Ei,pickWaGwa:Ri,prewarmImageCache:Ud,primarySelPart:tr,readLevel:ni,reorderArray:Ii,resolveAssetUrl:Io,resolveSoundPath:Nr,resumeAudioMeter:Ho,sample:Qt,saveNoiseSettings:ns,searchAndRankWords:ru,setAssetBaseUrl:zd,setCrosswordLogger:Iu,setGameLeaderboardLoader:qu,setGameRanksLoader:Gu,setGameScoreSubmitter:Vu,setTrainingCompletionLogger:$u,setTrainingTimeLogger:Ru,setWordPool:Pu,shuffle:He,sortToValue:Du,soundOf:Gr,speak:Rd,stopSpeaking:$d,submitGameScore:Yu,syllMatchesComp:Pa,syllableContrasts:Ja,syllableLength:bo,syllablePron:Fi,toBase64UrlSafe:Xu,toChoseong:pi,toItemResults:as,toKstHm:np,toKstYmd:ka,toStandardPronunciation:gu,toStorageName:ar,toUserErrorMessage:Nu,validateSyllableSearchInput:ou,withEuRo:yu,withEulReul:Mi,withEunNeun:fu,withIga:ji,withWaGwa:vu,wordContainsChoseong:Qd,wordContainsJongseong:eu,wordContainsJungseong:Jd,wordHasNoCoda:mi,wordHasSyllableMatching:bi,wrongItems:Ou});function A4(e){return typeof window>"u"?"":rw.sanitize(e,{USE_PROFILES:{svg:!0,svgFilters:!0},FORBID_TAGS:["script","use"],FORBID_ATTR:["xlink:href","href"]})}function T4(e){const[t,a]=l.useState(null),[r,n]=l.useState(null),[i,s]=l.useState(null),[c,u]=l.useState(null);return l.useEffect(()=>{if(!e||typeof e!="string"||!e.endsWith(".svg")){a(null),n(null),s(null);return}const d=e.split("/").pop();let p=e;d&&(e.startsWith("/")?p=Io(e):/^(Logo|Symbol)/i.test(d)?p=Io(`logo/${d}`):(/^https?:\/\//i.test(e)||e.startsWith("data:"),p=e)),a(p)},[e]),l.useEffect(()=>{if(!t)return;let d=!1;async function p(){try{let m=await fetch(t);m.ok||(m=await fetch(t));const h=m.headers.get("content-type")||"";if(d)return;if(h.includes("svg")){n("mask");return}if(h.startsWith("image/")){n("img");return}const g=await fetch(t);if(!g.ok)throw new Error("not ok");const f=await g.text();if(d)return;if(/^\s*<svg[\s>]/i.test(f)){const b=A4(f);if(!b){n("none");return}s(b),n("inline");return}n("none")}catch{d||n("none")}}return p(),()=>{d=!0}},[t]),l.useEffect(()=>{let d=!1,p=null;return r==="mask"&&t&&fetch(t).then(m=>{if(!m.ok)throw new Error("fetch failed");return m.blob()}).then(m=>{d||(p=URL.createObjectURL(m),u(p))}).catch(()=>{d||n("img")}),()=>{d=!0,p&&URL.revokeObjectURL(p),u(null)}},[r,t]),{iconToUse:t,mode:r,svgText:i,blobUrl:c}}function Ie(e){const{icon:t,label:a,className:r,imgClassName:n,maskClassName:i,svgClassName:s,wrapperStyle:c,size:u}=e||{},d=r??"iconRenderer-icon",p=n??"iconRenderer-icon-image",m=i??"iconRenderer-icon-mask",h=s??"iconRenderer-icon-svg",g=typeof t=="string"?t:null,f=w_(g),{iconToUse:b,mode:y,svgText:v,blobUrl:C}=T4(g),w=(k,N={})=>o.jsx("span",{className:d,style:c,...N,children:k}),x=(k,N={})=>o.jsx("img",{src:k,alt:typeof a=="string"?a:a?String(a):"",className:p,...N});if(!t)return null;if(typeof t!="string")return w(t);if(t==="none")return w(o.jsx("span",{className:h,dangerouslySetInnerHTML:{__html:'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" aria-hidden="true"></svg>'}}),{"aria-hidden":"true"});if(f)try{return w(l.createElement(f,{className:h,size:typeof u=="number"?u:20}),{"aria-hidden":"true"})}catch{}if(b&&b.endsWith(".svg")){if(y==="mask"){const k={"--icon-url":C?`url(${C})`:`url(${b})`};return w(o.jsx("span",{className:m,style:k}),{"aria-hidden":"true"})}return y==="img"?w(x(b,{onError:k=>{k.currentTarget.onerror=null,k.currentTarget.style.display="none"}}),{"aria-hidden":"true"}):y==="inline"?w(o.jsx("span",{className:h,dangerouslySetInnerHTML:v?{__html:v}:void 0}),{"aria-hidden":"true"}):w(null,{"aria-hidden":"true"})}if(t.startsWith("/")||t.includes("/assets/")||t.match(/\.(png|jpg|jpeg|webp|gif)$/i))return x(Io(t),{style:c,onError:k=>{k.currentTarget.onerror=null,k.currentTarget.style.display="none"}});const S=typeof u=="number"?u:20,_=`<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 w(o.jsx("span",{className:h,dangerouslySetInnerHTML:{__html:_}}),{"aria-hidden":"true"})}function Ip({icon:e,emoji:t,title:a,message:r,hint:n,action:i,compact:s,className:c}){return o.jsxs("div",{className:xe("empty-state",s&&"empty-state--compact",c),children:[t&&o.jsx("span",{className:"empty-state__emoji",children:t}),e&&o.jsx(Ie,{icon:e,className:"empty-state__icon"}),a&&o.jsx("p",{className:"empty-state__title body-2",children:a}),r&&o.jsx("p",{className:"empty-state__message body-3",children:r}),n&&o.jsx("p",{className:"empty-state__hint caption-1",children:n}),i&&o.jsxs("button",{className:"empty-state__action button button40 button40--bar button--variant-main button--align-center button--shape-rounded",onClick:i.onClick,children:[i.icon&&o.jsx(Ie,{icon:i.icon,className:"button__icon"}),o.jsx("span",{className:"button__label button-1",children:i.label})]})]})}var B4=".ihabdevteam-core-scope .error-state__icon{color:var(--color-error)}";J(B4);function zp({message:e,hint:t,icon:a="triangle-alert",onRetry:r,retryLabel:n,className:i}){const{t:s}=ge.useTranslation();return o.jsxs("div",{className:xe("empty-state","error-state",i),role:"alert",children:[o.jsx(Ie,{icon:a,className:"empty-state__icon error-state__icon"}),o.jsx("p",{className:"empty-state__message body-3",children:e??s("common.errorState.message",{defaultValue:"\uBD88\uB7EC\uC624\uC9C0 \uBABB\uD588\uC2B5\uB2C8\uB2E4."})}),t&&o.jsx("p",{className:"empty-state__hint caption-1",children:t}),r&&o.jsxs("button",{className:"empty-state__action button button40 button40--bar button--variant-main button--align-center button--shape-rounded",onClick:r,children:[o.jsx(Ie,{icon:"rotate-cw",className:"button__icon"}),o.jsx("span",{className:"button__label button-1",children:n??s("common.errorState.retry",{defaultValue:"\uB2E4\uC2DC \uC2DC\uB3C4"})})]})]})}var N4=".ihabdevteam-core-scope .action-card{--ac-color:var(--color-main);--ac-color-a10:var(--color-main-a10);aspect-ratio:1/1;background:var(--color-surface);border:1px solid var(--color-border);border-radius:var(--radius-l);box-shadow:var(--shadow-card);cursor:pointer;display:block;overflow:hidden;transition:transform .2s ease-out,box-shadow .2s ease-out,border-color .2s ease-out;width:100%}.ihabdevteam-core-scope .action-card--sub{--ac-color:var(--color-sub);--ac-color-a10:var(--color-sub-a10)}.ihabdevteam-core-scope .action-card:focus-visible{outline:none}.ihabdevteam-core-scope .action-card:not(.action-card--disabled):focus-visible,.ihabdevteam-core-scope .action-card:not(.action-card--disabled):hover{border-color:var(--ac-color);box-shadow:var(--shadow-panel);transform:translateY(-4px)}.ihabdevteam-core-scope .action-card--disabled{cursor:wait;opacity:.6}.ihabdevteam-core-scope .action-card__body{display:flex;flex-direction:column;gap:var(--spacing-m);height:100%;padding:var(--spacing-l)}.ihabdevteam-core-scope .action-card__chip{align-items:center;background:var(--ac-color-a10);border-radius:var(--radius-m);color:var(--ac-color);display:flex;height:64px;justify-content:center;width:64px}.ihabdevteam-core-scope .action-card__text{display:flex;flex-direction:column;gap:var(--spacing-xs)}.ihabdevteam-core-scope .action-card__title{color:var(--color-text-primary);font-size:var(--text-h2-size);font-weight:var(--text-h2-weight-bold);letter-spacing:var(--text-h2-spacing);line-height:var(--text-h2-line);margin:0}.ihabdevteam-core-scope .action-card__desc{color:var(--color-lightGray);font-size:var(--text-body-2-size);font-weight:var(--text-body-2-weight);line-height:var(--text-body-2-line);margin:0}.ihabdevteam-core-scope .action-card__cta{align-items:center;color:var(--ac-color);display:flex;font-size:var(--text-body-2-size);font-weight:var(--text-body-2-weight-bold);gap:var(--spacing-xs);justify-content:flex-end;line-height:var(--text-body-2-line);margin-top:auto;padding-right:var(--spacing-s);padding-top:var(--spacing-s)}.ihabdevteam-core-scope .action-card__arrow{display:flex;transition:transform .2s}.ihabdevteam-core-scope .action-card:not(.action-card--disabled):hover .action-card__arrow{transform:translateX(4px)}";J(N4);function Op({icon:e,title:t,description:a,cta:r,tone:n="main",disabled:i=!1,onClick:s,className:c=""}){const u=()=>{i||s?.()};return o.jsx("section",{role:"button",tabIndex:i?-1:0,"aria-disabled":i||void 0,"aria-label":t,onClick:u,onKeyDown:d=>{(d.key==="Enter"||d.key===" ")&&(d.preventDefault(),u())},className:xe("action-card",`action-card--${n}`,i&&"action-card--disabled",c),children:o.jsxs("div",{className:"action-card__body",children:[o.jsx("span",{"aria-hidden":!0,className:"action-card__chip",children:o.jsx(Ie,{icon:e,size:34})}),o.jsxs("div",{className:"action-card__text",children:[o.jsx("h2",{className:"action-card__title",children:t}),o.jsx("p",{className:"action-card__desc",children:a})]}),o.jsxs("div",{className:"action-card__cta",children:[o.jsx("span",{children:r}),o.jsx("span",{"aria-hidden":!0,className:"action-card__arrow",children:o.jsx(Ie,{icon:"arrow-right",size:18})})]})]})})}function Fp({as:e="div",className:t="",children:a,storage:r,...n}){r&&Jn({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});const i=xe("ihabdevteam-core-scope",t);return o.jsx(e,{className:i,...n,children:a})}var D4=".ihabdevteam-core-scope .notice-box{background:var(--color-darkWhite);border-radius:var(--radius-m);color:var(--color-gray);margin:0 auto var(--spacing-page);padding:var(--spacing-l);position:relative;text-align:left}.ihabdevteam-core-scope .notice-box ul{margin:0;padding:0 0 0 18px}.ihabdevteam-core-scope .notice-box__inner{border-radius:var(--radius-s);padding:12px 14px;text-align:left}.ihabdevteam-core-scope .notice-box__title{color:var(--color-darkGray);margin:0 0 10px}.ihabdevteam-core-scope .notice-box__body,.ihabdevteam-core-scope .notice-box__line{color:var(--color-deepGray)}.ihabdevteam-core-scope .notice-box--default{border-color:var(--color-whiteLine)}.ihabdevteam-core-scope .notice-box--dashed{background:var(--color-deepWhite);border:1px dashed var(--color-whiteLine)}.ihabdevteam-core-scope .notice-box--important{border:1px solid var(--color-main);box-shadow:var(--shadow-dropdown)}.ihabdevteam-core-scope .notice-box__dismiss{background:none;border:none;border-radius:var(--radius-xs);color:var(--color-lightGray);cursor:pointer;font-size:18px;line-height:1;padding:2px 6px;position:absolute;right:10px;top:8px;transition:color .12s}.ihabdevteam-core-scope .notice-box__dismiss:hover{color:var(--color-gray)}@media (max-width:767px){.ihabdevteam-core-scope .notice-box,.ihabdevteam-core-scope .notice-box__inner{padding:var(--spacing-s)}}";J(D4);function Wp({title:e="",lines:t=[],notices:a=null,children:r,variant:n="default",dismissible:i=!1,className:s=""}){const{t:c}=ge.useTranslation(),[u,d]=l.useState(!1),p=l.useCallback(()=>d(!0),[]);if(u)return null;const m=`notice-box notice-box--${n} body-2 ${s}`.trim();if(a&&Array.isArray(a)&&a.length)return o.jsx("div",{className:m,role:"note",children:a.map((g,f)=>o.jsxs("div",{className:"notice-box__inner",children:[g.title?o.jsx("span",{className:"notice-box__title body-3",children:g.title}):null,o.jsx("div",{className:"notice-box__body",children:g.lines&&g.lines.length?o.jsx("div",{children:g.lines.map((b,y)=>o.jsx("span",{className:"notice-box__line body-3",children:b},y))}):g.children??null})]},f))});const h=e||t.length?o.jsxs("div",{className:"notice-box__inner",children:[e?o.jsx("span",{className:"notice-box__title body-1",children:e}):null,o.jsx("div",{className:"notice-box__body",children:t.length?o.jsx("ul",{children:t.map((g,f)=>o.jsx("li",{className:"notice-box__line",children:g},f))}):r})]}):o.jsx("div",{className:"notice-box__inner",children:r});return o.jsxs("div",{className:m,role:"note",children:[h,i&&o.jsx("button",{className:"notice-box__dismiss",onClick:p,"aria-label":c("common.close","\uB2EB\uAE30"),children:"\xD7"})]})}var E4=".ihabdevteam-core-scope .button{align-items:center;background:var(--color-white);border:0;border:var(--button-border,0);box-sizing:border-box;color:inherit;cursor:pointer;display:inline-flex;gap:var(--spacing-xs);padding:0 12px;transition:background-color .14s ease,color .14s ease,transform .1s ease,box-shadow .14s ease}.ihabdevteam-core-scope .button__icon,.ihabdevteam-core-scope .button__left,.ihabdevteam-core-scope .button__right{align-items:center;color:inherit;display:inline-flex;justify-content:center}.ihabdevteam-core-scope .button--align-center .button__label,.ihabdevteam-core-scope .button--align-right .button__label{flex:1 1 auto;text-align:center}.ihabdevteam-core-scope .button__icon{height:24px;width:24px}.ihabdevteam-core-scope .button__icon--small{height:16px;width:16px}.ihabdevteam-core-scope .button__icon--medium{height:24px;width:24px}.ihabdevteam-core-scope .button__icon--large{height:36px;width:36px}.ihabdevteam-core-scope .button__center-group{align-items:center;display:inline-flex;gap:var(--spacing-xs)}.ihabdevteam-core-scope .button__center-group .button__label{display:inline-block;flex:0 1 auto;text-align:center}.ihabdevteam-core-scope .button__label{display:block;white-space:normal}.ihabdevteam-core-scope .button__label-text{align-items:center;display:inline-flex;justify-content:center;max-width:100%;vertical-align:middle;white-space:normal;word-break:break-word}.ihabdevteam-core-scope .button__label-text--has-sub{flex-direction:column;gap:3px}.ihabdevteam-core-scope .button__count{color:var(--color-main);font-weight:700;margin-left:4px}.ihabdevteam-core-scope .button--variant-main .button__count,.ihabdevteam-core-scope .is-selected .button__count,.ihabdevteam-core-scope [aria-pressed=true] .button__count{color:#fff}.ihabdevteam-core-scope .button__label:has(>.button__label-text+.button__label-text){gap:5px}.ihabdevteam-core-scope .button__sub-label-text{color:var(--button-subLabel-color,var(--color-gray));display:block}.ihabdevteam-core-scope .button__icon-img{display:block;height:100%;-o-object-fit:contain;object-fit:contain;width:100%}.ihabdevteam-core-scope .button__icon-mask{background-color:currentColor;display:block;height:100%;-webkit-mask-image:var(--icon-url);mask-image:var(--icon-url);-webkit-mask-position:center;mask-position:center;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:contain;mask-size:contain;width:100%}.ihabdevteam-core-scope .button__icon-svg{align-items:center;display:inline-flex;height:100%;justify-content:center;width:100%}.ihabdevteam-core-scope .button__icon-svg svg{display:block;height:100%;width:100%}.ihabdevteam-core-scope .button__icon-svg svg,.ihabdevteam-core-scope .button__icon-svg svg *{fill:currentColor;stroke:currentColor}.ihabdevteam-core-scope .button .button__label{color:currentColor;color:var(--button-text-color,currentColor);min-height:20px;min-width:20px}.ihabdevteam-core-scope .button .button__icon,.ihabdevteam-core-scope .button .button__left,.ihabdevteam-core-scope .button .button__right{color:currentColor;color:var(--button-icon-color,currentColor)}.ihabdevteam-core-scope .button--align-left{justify-content:flex-start}.ihabdevteam-core-scope .button--align-center{justify-content:center}.ihabdevteam-core-scope .button--align-right{justify-content:flex-end}.ihabdevteam-core-scope .button--align-left .button__label{align-items:center;display:inline-flex;flex:1 1 auto}.ihabdevteam-core-scope .button--align-left .button__label-text{justify-content:flex-start;text-align:left}.ihabdevteam-core-scope .button--align-center .button__label{align-items:center;display:flex;flex:1 1 auto;justify-content:center;text-align:center}.ihabdevteam-core-scope .button--align-right .button__label{flex:1 1 auto;text-align:right}.ihabdevteam-core-scope .button--align-grid{justify-content:center}.ihabdevteam-core-scope .button--align-grid .button__label{display:grid;flex:1 1 auto;grid-auto-columns:1fr;grid-auto-flow:column;text-align:center}.ihabdevteam-core-scope .button.button--no-bg{background:transparent;border-color:transparent}.ihabdevteam-core-scope .button--variant-danger{--button-text-color:var(--color-error);--button-icon-color:var(--color-error);--button-subLabel-color:var(--color-error);background:var(--color-deepWhite);border:var(--button-border,1px solid var(--color-error))}.ihabdevteam-core-scope .button--variant-danger:focus-visible,.ihabdevteam-core-scope .button--variant-danger:hover{--button-text-color:var(--color-error);--button-icon-color:var(--color-error);--button-subLabel-color:var(--color-error);background:var(--color-error-a10);border-color:var(--color-error)}.ihabdevteam-core-scope .button--variant-danger.is-selected,.ihabdevteam-core-scope .button--variant-danger[aria-pressed=true]{--button-text-color:#fff;--button-icon-color:#fff;--button-subLabel-color:#fff;background:var(--color-error);border-color:var(--color-error)}.ihabdevteam-core-scope .button--variant-default{--button-text-color:var(--color-darkGray);--button-icon-color:var(--color-lightGray);--button-subLabel-color:var(--color-gray);background:var(--color-deepWhite);border:var(--button-border,1px solid var(--color-whiteLine))}.ihabdevteam-core-scope .button--variant-default:focus-visible,.ihabdevteam-core-scope .button--variant-default:hover{--button-text-color:var(--color-black);--button-icon-color:var(--color-main);--button-subLabel-color:var(--color-black);background:var(--color-white);border-color:var(--color-main)}.ihabdevteam-core-scope .button--variant-default.is-selected,.ihabdevteam-core-scope .button--variant-default[aria-pressed=true]{--button-text-color:#fff;--button-icon-color:#fff;--button-subLabel-color:#fff;background:var(--color-main);border-color:var(--color-main)}.ihabdevteam-core-scope .button--variant-main{--button-subLabel-color:var(--color-white-a80);background:var(--color-main);border:var(--button-border,1px solid var(--color-main));color:#fff}.ihabdevteam-core-scope .button--variant-main:focus-visible,.ihabdevteam-core-scope .button--variant-main:hover{--button-subLabel-color:var(--color-white-a80);background:var(--color-sub);border-color:var(--color-sub);color:#fff}.ihabdevteam-core-scope .button--variant-main.is-selected,.ihabdevteam-core-scope .button--variant-main[aria-pressed=true]{--button-subLabel-color:var(--color-white-a80);background:var(--color-sub);color:#fff}.ihabdevteam-core-scope .button--variant-sub{--button-subLabel-color:var(--color-white-a80);background:var(--color-primary,var(--color-sub));color:#fff}.ihabdevteam-core-scope .button--variant-sub:focus-visible,.ihabdevteam-core-scope .button--variant-sub:hover{--button-subLabel-color:var(--color-white-a80);background:var(--color-uiAccent);color:#fff}.ihabdevteam-core-scope .button--variant-transparent-white{--button-subLabel-color:var(--color-white-a60);background:transparent;border:var(--button-border,1px solid var(--color-white-a80));color:#fbfdff}.ihabdevteam-core-scope .button--variant-transparent-white:focus-visible,.ihabdevteam-core-scope .button--variant-transparent-white:hover{--button-subLabel-color:var(--color-white-a80);background:var(--color-white-a10);color:#fff}.ihabdevteam-core-scope .button--variant-transparent-white.is-selected,.ihabdevteam-core-scope .button--variant-transparent-white[aria-pressed=true]{--button-subLabel-color:var(--color-lightGray);background:var(--color-white);color:var(--color-main)}.ihabdevteam-core-scope .button--variant-transparent-gray{--button-subLabel-color:var(--color-gray-a60);background:transparent;border:var(--button-border,1px solid var(--color-gray-a80));color:var(--color-gray-a80)}.ihabdevteam-core-scope .button--variant-transparent-gray:focus-visible,.ihabdevteam-core-scope .button--variant-transparent-gray:hover{--button-subLabel-color:var(--color-gray-a60);background:var(--color-gray-a10);color:var(--color-gray)}.ihabdevteam-core-scope .button--variant-transparent-lightGray{--button-subLabel-color:var(--color-gray-a60);background:transparent;border:var(--button-border,1px solid var(--color-lightGray-a80));color:var(--color-gray)}.ihabdevteam-core-scope .button--variant-transparent-lightGray:focus-visible,.ihabdevteam-core-scope .button--variant-transparent-lightGray:hover{--button-subLabel-color:var(--color-gray-a60);background:var(--color-lightGray-a10);color:var(--color-deepGray)}.ihabdevteam-core-scope .button--variant-disabled{--button-subLabel-color:var(--color-disabled);background-color:transparent;border:var(--button-border,1px solid var(--color-whiteLine));color:var(--color-disabled)}.ihabdevteam-core-scope .button--variant-disabled .button__icon,.ihabdevteam-core-scope .button--variant-disabled .button__left,.ihabdevteam-core-scope .button--variant-disabled .button__right{color:var(--color-disabled)}.ihabdevteam-core-scope .button--variant-disabled-covered{background-color:var(--color-darkWhite);border:var(--button-border,1px solid var(--color-darkWhite));border-color:var(--color-whiteLine);color:transparent}.ihabdevteam-core-scope .button--variant-disabled-covered .button__icon,.ihabdevteam-core-scope .button--variant-disabled-covered .button__left,.ihabdevteam-core-scope .button--variant-disabled-covered .button__right{color:transparent}.ihabdevteam-core-scope .button--variant-disabled-faded,.ihabdevteam-core-scope .button--variant-disabled-invisibled{background:transparent}.ihabdevteam-core-scope .button--variant-disabled-faded .button__icon,.ihabdevteam-core-scope .button--variant-disabled-faded .button__left,.ihabdevteam-core-scope .button--variant-disabled-faded .button__right,.ihabdevteam-core-scope .button--variant-disabled-invisibled .button__icon,.ihabdevteam-core-scope .button--variant-disabled-invisibled .button__label,.ihabdevteam-core-scope .button--variant-disabled-invisibled .button__left,.ihabdevteam-core-scope .button--variant-disabled-invisibled .button__right{color:transparent}.ihabdevteam-core-scope .button:disabled,.ihabdevteam-core-scope .button[disabled]{cursor:default;pointer-events:none}.ihabdevteam-core-scope .button--shape-rounded{border-radius:8px!important;border-radius:var(--button-rounded-radius,8px)!important}.ihabdevteam-core-scope .button--shape-pill{border-radius:9999px!important}.ihabdevteam-core-scope .button72{--button-rounded-radius:18px;border-radius:36px;height:72px;justify-content:center}.ihabdevteam-core-scope .button72--bar{min-width:220px}.ihabdevteam-core-scope .button72--dot{padding:0;width:72px}.ihabdevteam-core-scope .button56{--button-rounded-radius:14px;border-radius:28px;height:56px;justify-content:center}.ihabdevteam-core-scope .button56--bar{min-width:190px}.ihabdevteam-core-scope .button56--dot{padding:0;width:56px}.ihabdevteam-core-scope .button52{--button-rounded-radius:13px;border-radius:26px;height:52px;justify-content:center}.ihabdevteam-core-scope .button52--bar{min-width:175px}.ihabdevteam-core-scope .button52--dot{padding:0;width:52px}.ihabdevteam-core-scope .button48{--button-rounded-radius:12px;border-radius:24px;height:48px;justify-content:center}.ihabdevteam-core-scope .button48--bar{min-width:160px}.ihabdevteam-core-scope .button48--dot{padding:0;width:48px}.ihabdevteam-core-scope .button40{--button-rounded-radius:10px;border-radius:20px;height:40px;justify-content:center}.ihabdevteam-core-scope .button40--bar{min-width:100px}.ihabdevteam-core-scope .button40--dot{padding:0;width:40px}.ihabdevteam-core-scope .button40 .button__icon,.ihabdevteam-core-scope .button40--bar .button__icon,.ihabdevteam-core-scope .button40--dot .button__icon{height:20px;width:20px}.ihabdevteam-core-scope .button32{--button-rounded-radius:8px;border-radius:16px;height:32px;justify-content:center}.ihabdevteam-core-scope .button32--bar{min-width:72px}.ihabdevteam-core-scope .button32--dot{padding:0;width:32px}.ihabdevteam-core-scope .button32 .button__icon,.ihabdevteam-core-scope .button32--bar .button__icon,.ihabdevteam-core-scope .button32--dot .button__icon{height:18px;width:18px}.ihabdevteam-core-scope .button28{--button-rounded-radius:7px;border-radius:14px;height:28px;justify-content:center}.ihabdevteam-core-scope .button28--bar{min-width:60px}.ihabdevteam-core-scope .button28--dot{padding:0;width:28px}.ihabdevteam-core-scope .button28 .button__icon,.ihabdevteam-core-scope .button28--bar .button__icon,.ihabdevteam-core-scope .button28--dot .button__icon{height:16px;width:16px}.ihabdevteam-core-scope .button24{--button-rounded-radius:6px;border-radius:12px;height:24px;justify-content:center}.ihabdevteam-core-scope .button24--bar{min-width:48px}.ihabdevteam-core-scope .button24--dot{padding:0;width:24px}.ihabdevteam-core-scope .button24 .button__icon,.ihabdevteam-core-scope .button24--bar .button__icon,.ihabdevteam-core-scope .button24--dot .button__icon{height:14px;width:14px}.ihabdevteam-core-scope .button-keyboard{border-radius:12px;height:32px;justify-content:center}.ihabdevteam-core-scope .button-keyboard--bar{min-width:32px;padding:0 12px}.ihabdevteam-core-scope .button-keyboard--dot{padding:0;width:32px}.ihabdevteam-core-scope .button-word{border-radius:12px;height:72px;justify-content:center;padding:0 16px}.ihabdevteam-core-scope .button-word--bar{min-width:120px}.ihabdevteam-core-scope .button-word--dot{padding:0;width:72px}@media (max-width:1024px){.ihabdevteam-core-scope .button56{--button-rounded-radius:13px;border-radius:25px;height:50px}.ihabdevteam-core-scope .button56--bar{min-width:170px}.ihabdevteam-core-scope .button56--dot{width:50px}.ihabdevteam-core-scope .button48{--button-rounded-radius:11px;border-radius:22px;height:44px}.ihabdevteam-core-scope .button48--bar{min-width:140px}.ihabdevteam-core-scope .button48--dot{width:44px}.ihabdevteam-core-scope .button40{--button-rounded-radius:9px;border-radius:18px;height:36px}.ihabdevteam-core-scope .button40--bar{min-width:88px}.ihabdevteam-core-scope .button40--dot{width:36px}.ihabdevteam-core-scope .button32{--button-rounded-radius:8px;border-radius:15px;height:30px}.ihabdevteam-core-scope .button32--bar{min-width:64px}.ihabdevteam-core-scope .button32--dot{width:30px}.ihabdevteam-core-scope .button24--bar{min-width:44px}}@media (max-width:768px){.ihabdevteam-core-scope .button56{--button-rounded-radius:12px;border-radius:23px;height:46px}.ihabdevteam-core-scope .button56--bar{min-width:150px}.ihabdevteam-core-scope .button56--dot{width:46px}.ihabdevteam-core-scope .button56 .button__icon,.ihabdevteam-core-scope .button56--bar .button__icon,.ihabdevteam-core-scope .button56--dot .button__icon{height:20px;width:20px}.ihabdevteam-core-scope .button48{--button-rounded-radius:10px;border-radius:20px;height:40px}.ihabdevteam-core-scope .button48--bar{min-width:120px}.ihabdevteam-core-scope .button48--dot{width:40px}.ihabdevteam-core-scope .button48 .button__icon,.ihabdevteam-core-scope .button48--bar .button__icon,.ihabdevteam-core-scope .button48--dot .button__icon{height:20px;width:20px}.ihabdevteam-core-scope .button40{--button-rounded-radius:8px;border-radius:17px;height:34px}.ihabdevteam-core-scope .button40--bar{min-width:80px}.ihabdevteam-core-scope .button40--dot{width:34px}.ihabdevteam-core-scope .button32{--button-rounded-radius:7px;border-radius:14px;height:28px}.ihabdevteam-core-scope .button32--bar{min-width:60px}.ihabdevteam-core-scope .button32--dot{width:28px}.ihabdevteam-core-scope .button24--bar{min-width:40px}}";J(E4);var j4=".ihabdevteam-core-scope .tooltip-content{animation:tooltip-pop .2s cubic-bezier(.2,.9,.2,1) both;background-color:var(--color-white);border-radius:var(--radius-m);box-shadow:var(--shadow-tooltip);box-sizing:border-box;pointer-events:auto;position:absolute;transform-origin:left center;white-space:normal;will-change:transform,opacity;z-index:var(--z-tooltip)}.ihabdevteam-core-scope .tooltip-content--bordered{border:1px solid var(--color-whiteLine)}.ihabdevteam-core-scope .tooltip-content.tooltip-description,.ihabdevteam-core-scope .tooltip-content.tooltip-info,.ihabdevteam-core-scope .tooltip-content.tooltip-training{background:transparent;box-shadow:none}.ihabdevteam-core-scope .tooltip-content__header{align-items:center;color:var(--color-gray);display:flex;height:40px;padding:0 2px 10px}.ihabdevteam-core-scope .tooltip-content.is-closing{opacity:0;transition:opacity .2s ease,transform .2s ease}.ihabdevteam-core-scope .tooltip-content[data-placement=top]{transform:translateY(-6px)}.ihabdevteam-core-scope .tooltip-content[data-placement=bottom]{transform:translateY(6px)}.ihabdevteam-core-scope .tooltip-content[data-placement=left]{transform:translateX(-6px)}.ihabdevteam-core-scope .tooltip-content[data-placement=right]{transform:translateX(6px)}.ihabdevteam-core-scope .tooltip-content.is-closing[data-placement=top]{transform:translateY(-6px) scale(.98)}.ihabdevteam-core-scope .tooltip-content.is-closing[data-placement=bottom]{transform:translateY(6px) scale(.98)}.ihabdevteam-core-scope .tooltip-content.is-closing[data-placement=left]{transform:translateX(-6px) scale(.98)}.ihabdevteam-core-scope .tooltip-content.is-closing[data-placement=right]{transform:translateX(6px) scale(.98)}.ihabdevteam-core-scope .tooltip--hidden{display:none}@keyframes tooltip-pop{0%{opacity:0;transform:translateY(-6px) scale(.98)}to{opacity:1;transform:translateY(0) scale(1)}}@keyframes tooltip-fade-out{0%{opacity:1;transform:translateY(0) scale(1)}to{opacity:0;transform:translateY(-6px) scale(.98)}}.ihabdevteam-core-scope .tooltip-backdrop{background:var(--color-popupBlock);inset:0;position:fixed;z-index:calc(var(--z-tooltip) - 1)}.ihabdevteam-core-scope .tooltip-portal{inset:0;position:fixed;z-index:var(--z-tooltip)}.ihabdevteam-core-scope .tooltip-content.is-mobile{left:50%!important;max-width:calc(100% - 40px)!important;top:50%!important;transform:translate(-50%,-50%)!important;visibility:visible!important;width:calc(100% - 40px)!important;z-index:var(--z-tooltip)!important}.ihabdevteam-core-scope .tooltip-content .tooltip-close{display:inline-flex;position:absolute;right:6px;top:6px;z-index:2}.ihabdevteam-core-scope .tooltip-content .tooltip-close .button{box-shadow:none}";J(j4);function Sa(e){const{anchorRect:t,anchorEl:a,offset:r=20,edgeMargin:n=20,onClose:i,closeOnOutsideClick:s=!0,className:c="",role:u="dialog",ariaLabel:d="",children:p,backdrop:m=!1,isMobilePopup:h=!1,useBorder:g=!0,header:f}=e||{},b=l.useRef(null),[y,v]=l.useState({position:"fixed",left:0,top:-9999}),[C,w]=l.useState(!1),[x,S]=l.useState("bottom"),[_,k]=l.useState(!1),[N,A]=l.useState(!1),D=!t&&!a,H=l.useCallback((L=!1)=>{if(N&&h)return;const F=a?a.getBoundingClientRect():t;if(!F||!b.current)return;const te=b.current,{offsetWidth:Z,offsetHeight:V}=te,j=window.innerWidth,M=window.innerHeight,$=j-F.right,W=F.left,q=F.top,X=M-F.bottom;let O=0,Y=0,z="top";if(q>=V+r)z="top",Y=F.top-r-V,O=F.left+F.width/2-Z/2;else if(X>=V+r)z="bottom",Y=F.bottom+r,O=F.left+F.width/2-Z/2;else if($>=Z+r)z="right",O=F.right+r,Y=F.top+F.height/2-V/2;else if(W>=Z+r)z="left",O=F.left-r-Z,Y=F.top+F.height/2-V/2;else{const me=Math.max(q,X,$,W);me===q?(z="top",Y=F.top-r-V,O=F.left+F.width/2-Z/2):me===X?(z="bottom",Y=F.bottom+r,O=F.left+F.width/2-Z/2):me===$?(z="right",O=F.right+r,Y=F.top+F.height/2-V/2):(z="left",O=F.left-r-Z,Y=F.top+F.height/2-V/2)}const re=Number(n)||8;O=Math.min(Math.max(O,re),j-Z-re),Y=Math.min(Math.max(Y,re),M-V-re);const Q=Math.round(O),ne=Math.round(Y);L&&b.current?(b.current.style.left=`${Q}px`,b.current.style.top=`${ne}px`,b.current.dataset.placement=z):(S(z||x),v({position:"fixed",left:Q,top:ne}),k(!0))},[N,h,a,t,r,n,x]);l.useLayoutEffect(()=>{if(D)return;if(N&&h){v({position:"fixed",left:"50%",top:"50%",transform:"translate(-50%, -50%)",width:"calc(100% - 40px)",maxWidth:"calc(100% - 40px)"}),k(!0);return}H();const L=requestAnimationFrame(()=>H());return()=>cancelAnimationFrame(L)},[t,a,r,p,n,D,N,h,H]),l.useEffect(()=>{if(D||N&&h||!b.current||typeof ResizeObserver>"u")return;const L=new ResizeObserver(()=>{t&&H()});return L.observe(b.current),()=>L.disconnect()},[t,p,n,D,N,h,H]),l.useEffect(()=>{if(D||N&&h)return;const L=()=>H(!0);return window.addEventListener("resize",L),document.addEventListener("scroll",L,{passive:!0,capture:!0}),()=>{window.removeEventListener("resize",L),document.removeEventListener("scroll",L,{capture:!0})}},[t,r,p,n,D,N,h,H]),l.useEffect(()=>{if(typeof window>"u"||!window.matchMedia)return;const L=window.matchMedia("(max-width: 768px)"),F=()=>A(!!L.matches);F();try{L.addEventListener?L.addEventListener("change",F):L.addListener(F)}catch{try{L.addListener(F)}catch{}}return()=>{try{L.removeEventListener?L.removeEventListener("change",F):L.removeListener(F)}catch{}}},[]);const P=l.useRef(!1),T=l.useCallback((L=!1)=>{if(!(C||P.current)){if(P.current=!0,L){w(!0);try{i&&i()}catch{}return}w(!0),setTimeout(()=>{i&&i()},200)}},[C,i,w]);l.useEffect(()=>{const L=Z=>{const V=b.current;if(!V)return;const j=Z.target;if(j&&!V.contains(j)){try{if(j.closest&&j.closest("[data-tooltip-ignore]"))return}catch{}s&&T(!0)}},F=Z=>{const V=b.current;if(!V)return;const j=Z.target;if(j&&!V.contains(j)){try{if(j.closest&&j.closest("[data-tooltip-ignore]"))return}catch{}s&&T(!0)}},te=Z=>{if(Z.key==="Escape"){Z.stopPropagation(),T();return}if(Z.key==="Tab"){const V=b.current;if(!V)return;const j=V.querySelectorAll('button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])');if(!j||j.length===0)return;const M=j[0],$=j[j.length-1],W=document.activeElement;Z.shiftKey?W===M&&(Z.preventDefault(),$.focus()):W===$&&(Z.preventDefault(),M.focus())}};return document.addEventListener("pointerdown",L,!0),document.addEventListener("click",F,!0),document.addEventListener("keydown",te),()=>{document.removeEventListener("pointerdown",L,!0),document.removeEventListener("click",F,!0),document.removeEventListener("keydown",te)}},[i,s,T]),l.useEffect(()=>{const L=()=>{T(!0)};return typeof document<"u"&&document.addEventListener("speechear-close-tooltips",L),()=>{typeof document<"u"&&document.removeEventListener("speechear-close-tooltips",L)}},[T]);const E=o.jsxs("div",{ref:b,className:`tooltip-content ${g?"tooltip-content--bordered":""} ${C?"is-closing":""} ${c} ${N&&h?"is-mobile":""}`,role:u,"aria-label":d||void 0,style:D?{}:{...y,visibility:_?"visible":"hidden"},tabIndex:-1,"data-placement":x,"data-left":D?"":y.left,"data-top":D?"":y.top,"data-anchor-left":t?Math.round(t.left):"","data-anchor-top":t?Math.round(t.top):"","data-anchor-width":t?Math.round(t.width):"","data-anchor-height":t?Math.round(t.height):"",children:[f!=null&&o.jsx("div",{className:"tooltip-content__header h5",children:f}),p]});if(D||typeof document>"u")return E;if(m||N&&h){const L=o.jsxs("div",{className:"tooltip-portal",children:[o.jsx("div",{className:"tooltip-backdrop",onClick:()=>{s&&T(!0)}}),E]});return qt.createPortal(L,document.body)}return qt.createPortal(E,document.body)}var L4='.ihabdevteam-core-scope .tooltip-info__content{align-items:center;background:var(--color-deepWhite);border:1px solid var(--color-main);border-radius:var(--radius-m);box-shadow:var(--shadow-tooltip);color:var(--color-black);display:inline-flex;justify-content:center;line-height:1;overflow:hidden;padding:4px 12px;position:relative;text-align:center;text-overflow:ellipsis;white-space:nowrap}.ihabdevteam-core-scope .tooltip-content.tooltip-info{pointer-events:none}.ihabdevteam-core-scope .tooltip-content.tooltip-info .tooltip-info__content{box-shadow:var(--shadow-tooltip)}.ihabdevteam-core-scope .tooltip-info[data-placement=bottom] .tooltip-info__content:after,.ihabdevteam-core-scope .tooltip-info[data-placement=top] .tooltip-info__content:after{content:"";height:0;margin:0;padding:0;position:absolute;width:0}';J(L4);function aa(e){const{anchorRect:t,text:a,offset:r=8,onClose:n,className:i="",ariaLabel:s}=e||{};return a?o.jsx(Sa,{anchorRect:t,offset:r,onClose:n,closeOnOutsideClick:!1,className:`tooltip-info ${i}`,ariaLabel:s||a,children:o.jsx("div",{className:"tooltip-info__content body-3",children:a})}):null}var M4=".ihabdevteam-core-scope .tooltip-description__box{background:var(--color-white);border:1px solid var(--color-whiteLine);border-radius:var(--radius-m);box-shadow:var(--shadow-tooltip);display:flex;flex-direction:column;gap:10px;max-width:640px;padding:16px 20px}.ihabdevteam-core-scope .tooltip-description__title{color:var(--color-black);margin:0}.ihabdevteam-core-scope .tooltip-description__items{display:flex;flex-direction:column;gap:var(--spacing-xs);list-style:none;margin:0;padding:0}.ihabdevteam-core-scope .tooltip-description__item{align-items:flex-start;color:var(--color-darkGray);display:flex;gap:var(--spacing-xs);margin:0}.ihabdevteam-core-scope .tooltip-description__index{color:var(--color-main);flex-shrink:0}.ihabdevteam-core-scope .tooltip-description__item--active{color:var(--color-main);font-weight:600}.ihabdevteam-core-scope .tooltip-description__item--active .tooltip-description__index{color:var(--color-main)}";J(M4);function to(e){const{anchorRect:t,title:a,items:r,activeIndex:n=-1,showIndex:i=!0,onClose:s,offset:c=12}=e||{},u=Array.isArray(r)?r:r?[r]:[];return!u.length&&!a?null:o.jsx(Sa,{anchorRect:t,offset:c,onClose:s,closeOnOutsideClick:!0,useBorder:!1,className:"tooltip-description",children:o.jsxs("div",{className:"tooltip-description__box",children:[a&&o.jsx("span",{className:"tooltip-description__title body-2",children:a}),o.jsx("ol",{className:"tooltip-description__items",children:u.map((d,p)=>o.jsxs("li",{className:`tooltip-description__item body-3${p===n?" tooltip-description__item--active":""}`,children:[i&&u.length>1&&o.jsxs("span",{className:"tooltip-description__index button-1",children:[p+1,"."]}),o.jsx("span",{children:d})]},p))})]})})}function se(e){const{size:t=48,type:a,htmlType:r,href:n,target:i,rel:s,icon:c,rightIcon:u,label:d,count:p,subLabel:m,children:h,ariaLabel:g,variant:f="default",align:b="center",selected:y,toggleable:v=!1,disabled:C=!1,useLabel:w=!0,useBorder:x=!0,useBG:S=!0,useDisabledCovered:_=!1,useDisabledInvisible:k=!1,width:N,minWidth:A,onClick:D,onDisabledClick:H,showTooltipInfo:P=!1,tooltipInfoText:T=null,tooltipDescription:E=null,iconSize:L="medium",iconColor:F,shape:te="rounded",color:Z,className:V,...j}=e,M=typeof t=="string"&&isNaN(Number(t))?t.toLowerCase():String(Number(t)||48),$=M.match(/^\d+$/)?`button${M}`:`button-${M}`,W=Number(t),q=!isNaN(W)&&W<40?"button-2":"button-1",X=d??h,O=C||!!j.disabled,Y=O?_?"disabled-covered":k?"disabled-invisibled":"disabled":f,z=Y?`button--variant-${Y}`:"",re=b?`button--align-${b}`:"",Q=te?`button--shape-${te}`:"",ne=typeof F=="string"&&F.startsWith("--")?`var(${F})`:F,me={...N?{width:typeof N=="number"?`${N}px`:N}:{},...A?{minWidth:typeof A=="number"?`${A}px`:A}:{},...x?{}:{"--button-border":O?"0":"1px solid transparent"},...ne?{"--button-icon-color":ne}:{},...Z?{"--color-main":Z}:{}},ce=w===!1?"":X,I=Array.isArray(ce)?ce.length>0:!!ce,ee=!!u,pe=a??(I||c||ee?"bar":"dot"),ke=`${$}--${pe}`,Ce=l.useRef(null),R=l.useRef(O),[oe,ae]=l.useState(!!y),[ve,De]=l.useState(!1),[ze,Re]=l.useState(null),Me=l.useCallback(()=>De(!1),[]);l.useEffect(()=>{(P||E)&&O&&ve&&(De(!1),Re(null))},[O,P,E,ve]),l.useEffect(()=>{typeof y=="boolean"&&ae(y)},[y]),l.useEffect(()=>{if(R.current&&!O&&Ce.current){const Oe=Ce.current;Oe.blur(),Oe.style.pointerEvents="none";const Qe=requestAnimationFrame(()=>{requestAnimationFrame(()=>{Ce.current&&(Ce.current.style.pointerEvents="")})});return()=>cancelAnimationFrame(Qe)}R.current=O},[O]);const Ye=typeof y=="boolean"?!!y:oe,Ne=v||typeof y=="boolean"?Ye?"true":"false":void 0,Ve=xe("button",$,ke,z,re,Q,Ye?"is-selected":null,S?null:"button--no-bg",V),Fe=`button__icon button__icon--${L}`,be=Array.isArray(m)?m:m!==void 0?[m]:[],Ke=()=>{if(Array.isArray(ce))return ce.map((Qe,tt)=>{const xt=be[tt];return o.jsxs("span",{className:`button__label-text${xt!==void 0?" button__label-text--has-sub":""}`,children:[Qe,xt!==void 0&&o.jsx("span",{className:"button__sub-label-text caption-1",children:xt})]},tt)});const Oe=m!==void 0;return o.jsxs("span",{className:`button__label-text${Oe?" button__label-text--has-sub":""}`,children:[ce,p!=null&&o.jsx("span",{className:"button__count",children:p}),Oe&&o.jsx("span",{className:"button__sub-label-text caption-1",children:m})]})},We=Oe=>{O||(typeof j.onMouseLeave=="function"&&j.onMouseLeave(Oe),typeof y!="boolean"&&ae(!1),Oe.currentTarget.blur())},Le=Oe=>{if(O){H?.(Oe);return}typeof y!="boolean"&&v&&ae(Qe=>!Qe),D?.(Oe)},Ge=l.useCallback(()=>{!O&&(P||E)&&(De(!0),Re(Ce.current?.getBoundingClientRect()??null))},[O,P,E]),vt=l.useCallback(()=>{(P||E)&&(De(!1),Re(null))},[P,E]),Ue={...j};delete Ue.disabled,delete Ue.className,delete Ue.faded,delete Ue.useFaded,delete Ue.loading,delete Ue.onMouseLeave,delete Ue.onPointerEnter,delete Ue.onPointerLeave,delete Ue.onFocus,delete Ue.onBlur,O&&(Object.keys(Ue).forEach(Oe=>{/^on[A-Z]/.test(Oe)&&typeof Ue[Oe]=="function"&&delete Ue[Oe]}),Ue["aria-disabled"]="true");const Xe=(typeof P=="string"?P:null)??(typeof T=="string"?T:null)??(typeof g=="string"?g:null)??(typeof X=="string"?X:null)??void 0,ut=typeof g=="string"?g:typeof X=="string"?X:Xe,Pe=(Oe,Qe)=>o.jsx(Ie,{icon:Oe,label:Qe??ut,className:Fe,imgClassName:"button__icon-img",maskClassName:"button__icon-mask",svgClassName:"button__icon-svg"}),rt=()=>pe==="dot"?o.jsxs(o.Fragment,{children:[Pe(c),I&&o.jsx("span",{className:`button__label ${q}`,children:Ke()})]}):b==="center"&&c?o.jsxs(o.Fragment,{children:[o.jsxs("span",{className:"button__center-group",children:[o.jsx("span",{className:"button__left",children:Pe(c)}),I&&o.jsx("span",{className:`button__label ${q}`,children:Ke()})]}),ee&&o.jsx("span",{className:"button__right",children:Pe(u)})]}):o.jsxs(o.Fragment,{children:[c&&o.jsx("span",{className:"button__left",children:Pe(c,g??X)}),I&&o.jsx("span",{className:`button__label ${q}`,children:Ke()}),ee&&o.jsx("span",{className:"button__right",children:Pe(u)})]}),et=!!n&&!O;return o.jsxs(o.Fragment,{children:[o.jsx(et?"a":"button",{...Ue,ref:Ce,...et?{href:n,target:i,rel:s??(i==="_blank"?"noreferrer":void 0)}:{type:r,disabled:O&&!H},className:Ve,"aria-pressed":Ne,"aria-label":ut,"aria-disabled":et&&O?!0:void 0,style:me,onClick:Le,onMouseLeave:We,onPointerEnter:Oe=>{Ge(),!O&&typeof j.onPointerEnter=="function"&&j.onPointerEnter(Oe)},onPointerLeave:Oe=>{vt(),!O&&typeof j.onPointerLeave=="function"&&j.onPointerLeave(Oe)},onFocus:Oe=>{Ge(),!O&&typeof j.onFocus=="function"&&j.onFocus(Oe)},onBlur:Oe=>{We(Oe),vt(),!O&&typeof j.onBlur=="function"&&j.onBlur(Oe)},children:rt()}),ve&&E?o.jsx(to,{anchorRect:ze,title:E.title,items:E.items,onClose:Me}):ve&&Xe?o.jsx(aa,{anchorRect:ze,text:Xe,onClose:Me}):null]})}function lt(e,t,a){const r=l.useRef(null);return l.useLayoutEffect(()=>{const n=r.current?.parentElement??null;return t(n,e),()=>a(n)},[e,t,a]),r}var P4=".ihabdevteam-core-scope .promo-banner-bg{border-radius:inherit;inset:0;pointer-events:none;position:absolute}";J(P4);var R4=".ihabdevteam-core-scope .promo-banner-bg-main{background:linear-gradient(45deg,var(--color-main),var(--color-sub))}";J(R4);const Co={title:"--promo-banner-bg-title",description:"--promo-banner-bg-description"},_s=new WeakMap;function ws(e){if(e)return _s.get(e)}function Bt(e,t){e&&(e.style.setProperty(Co.title,t.title),e.style.setProperty(Co.description,t.description),_s.set(e,t))}function Nt(e){e&&(e.style.removeProperty(Co.title),e.style.removeProperty(Co.description),_s.delete(e))}const ks={title:"#ffffff",description:"rgba(255, 255, 255, 0.85)",actionVariant:"default"};function Ss(){const e=lt(ks,Bt,Nt);return o.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-main","aria-hidden":"true"})}var $4=".ihabdevteam-core-scope .promo-banner-bg-soft{background:var(--color-main-a10)}";J($4);const As={title:"var(--color-main)",description:"var(--color-gray)",actionVariant:"main"};function Ts(){const e=lt(As,Bt,Nt);return o.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-soft","aria-hidden":"true"})}var I4=".ihabdevteam-core-scope .promo-banner-bg-sub{background:var(--color-sub)}";J(I4);const Bs={title:"#ffffff",description:"rgba(255, 255, 255, 0.85)",actionVariant:"main"};function Ns(){const e=lt(Bs,Bt,Nt);return o.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-sub","aria-hidden":"true"})}var z4=".ihabdevteam-core-scope .promo-banner-bg-deep{background:linear-gradient(135deg,var(--color-darkMain),var(--color-darkSub))}";J(z4);const Ds={title:"#ffffff",description:"rgba(255, 255, 255, 0.85)",actionVariant:"main"};function Es(){const e=lt(Ds,Bt,Nt);return o.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-deep","aria-hidden":"true"})}var O4=".ihabdevteam-core-scope .promo-banner-bg-soft-sub{background:var(--color-sub-a10)}";J(O4);const js={title:"var(--color-darkSub)",description:"var(--color-gray)",actionVariant:"main"};function Ls(){const e=lt(js,Bt,Nt);return o.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-soft-sub","aria-hidden":"true"})}var F4=".ihabdevteam-core-scope .promo-banner-bg-warm{background:var(--color-warn)}";J(F4);const Ms={title:"var(--color-black)",description:"var(--color-darkGray)",actionVariant:"main"};function Ps(){const e=lt(Ms,Bt,Nt);return o.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-warm","aria-hidden":"true"})}var W4=".ihabdevteam-core-scope .promo-banner-bg-dark{background:var(--color-lightBlack)}";J(W4);const Rs={title:"var(--color-white)",description:"var(--color-lightGray)",actionVariant:"main"};function $s(){const e=lt(Rs,Bt,Nt);return o.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-dark","aria-hidden":"true"})}var H4=".ihabdevteam-core-scope .promo-banner-bg-radial{background:radial-gradient(circle at 15% 20%,var(--color-main) 0,var(--color-sub) 100%)}";J(H4);const Is={title:"#ffffff",description:"rgba(255, 255, 255, 0.85)",actionVariant:"main"};function zs(){const e=lt(Is,Bt,Nt);return o.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-radial","aria-hidden":"true"})}var V4=".ihabdevteam-core-scope .promo-banner-bg-diagonal{background-color:var(--color-lightMain);background-image:repeating-linear-gradient(45deg,var(--color-main-a10) 0,var(--color-main-a10) 10px,transparent 10px,transparent 20px)}";J(V4);const Os={title:"var(--color-darkMain)",description:"var(--color-gray)",actionVariant:"main"};function Fs(){const e=lt(Os,Bt,Nt);return o.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-diagonal","aria-hidden":"true"})}var G4=".ihabdevteam-core-scope .promo-banner-bg-dots{background-color:var(--color-lightSub);background-image:radial-gradient(var(--color-sub-a10) 2px,transparent 2px);background-size:14px 14px}";J(G4);const Ws={title:"var(--color-darkSub)",description:"var(--color-gray)",actionVariant:"main"};function Hs(){const e=lt(Ws,Bt,Nt);return o.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-dots","aria-hidden":"true"})}var q4=".ihabdevteam-core-scope .promo-banner-bg-outline{background:var(--color-white);border:1px solid var(--color-whiteLine);box-sizing:border-box}.ihabdevteam-core-scope .promo-banner-bg-outline__dot{background:linear-gradient(45deg,var(--color-main),var(--color-sub));border-radius:50%;bottom:-40px;height:140px;opacity:.12;position:absolute;right:-40px;width:140px}";J(q4);const Vs={title:"var(--color-black)",description:"var(--color-gray)",actionVariant:"main"};function Gs(){const e=lt(Vs,Bt,Nt);return o.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-outline","aria-hidden":"true",children:o.jsx("span",{className:"promo-banner-bg-outline__dot"})})}var Y4=".ihabdevteam-core-scope .promo-banner-bg-success{background:var(--color-success)}";J(Y4);const qs={title:"#ffffff",description:"rgba(255, 255, 255, 0.85)",actionVariant:"main"};function Ys(){const e=lt(qs,Bt,Nt);return o.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-success","aria-hidden":"true"})}var U4=".ihabdevteam-core-scope .promo-banner-bg-naver{background:linear-gradient(90deg,#03c75a 0,var(--color-main) 100%)}";J(U4);const Us={title:"#ffffff",description:"rgba(255, 255, 255, 0.85)",actionVariant:"sub"};function Ks(){const e=lt(Us,Bt,Nt);return o.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-naver","aria-hidden":"true"})}var K4=".ihabdevteam-core-scope .promo-banner-bg-instagram{background:linear-gradient(45deg,#f9ce34,#ee2a7b 50%,#6228d7)}";J(K4);const Zs={title:"#ffffff",description:"rgba(255, 255, 255, 0.85)",actionVariant:"transparent-white"};function Xs(){const e=lt(Zs,Bt,Nt);return o.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-instagram","aria-hidden":"true"})}const Hp=[{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"}],Qs={main:Ss,soft:Ts,sub:Ns,deep:Es,softSub:Ls,warm:Ps,dark:$s,radial:zs,diagonal:Fs,dots:Hs,outline:Gs,success:Ys,naver:Ks,instagram:Xs};function nn({storageKey:e="fontScale",baseFont:t=20,minScale:a=.8,maxScale:r=1.4,step:n=.1,lineHeightRatio:i=1.4}={}){const s=y=>Math.max(a,Math.min(r,Number(y))),[c,u]=l.useState(()=>{try{const y=localStorage.getItem(e),v=y?Number(y):1;return Number.isFinite(v)?v:1}catch{return 1}});l.useEffect(()=>{try{localStorage.setItem(e,String(c))}catch{}},[e,c]);const d=y=>{u(typeof y=="function"?v=>s(y(v)):s(y))},p=()=>d(y=>+(y+n).toFixed(6)),m=()=>d(y=>+(y-n).toFixed(6)),h=c<r-Number.EPSILON,g=c>a+Number.EPSILON,f=Math.round(t*c),b=Math.round(f*i);return{scale:c,setScale:d,increase:p,decrease:m,canIncrease:h,canDecrease:g,fontSize:f,lineHeight:b}}const sn=l.createContext(null);function Z4(e){return/max-width:\s*7[0-9][0-9]px/.test(e)}function oa(e){const t=l.useContext(sn),a=i=>typeof window>"u"||!window.matchMedia?!1:window.matchMedia(i).matches,[r,n]=l.useState(a(e));return l.useEffect(()=>{if(typeof window>"u"||!window.matchMedia)return;const i=window.matchMedia(e),s=u=>n(u.matches),c=i;return c.addEventListener?c.addEventListener("change",s):c.addListener&&c.addListener(s),n(i.matches),()=>{c.removeEventListener?c.removeEventListener("change",s):c.removeListener&&c.removeListener(s)}},[e]),t&&typeof t.mobile=="boolean"&&Z4(e)?t.mobile:r}function Js(e){const t=l.useRef(e);return l.useEffect(()=>{t.current=e}),t}function dr(e,t){const a=Js(t);l.useEffect(()=>{const r=()=>a.current();try{window.addEventListener(e,r)}catch{}return()=>{try{window.removeEventListener(e,r)}catch{}}},[e,a])}const el=" \xB7 ",Vp=(()=>{if(typeof document>"u")return"";const e=document.title;return e.includes(el)?e.split(el).pop()??e:e})(),tl=l.createContext(!1);function al(e){const t=l.useContext(tl);l.useEffect(()=>{if(t||typeof e!="string"||!e)return;const a=document.title;return document.title=Vp?`${e}${el}${Vp}`:e,()=>{document.title=a}},[e,t])}function Gp(){const{t:e}=ge.useTranslation();return l.useCallback(t=>{if(!t)return"";const a=new Date(t).getTime();if(Number.isNaN(a))return"";const r=Math.floor((Date.now()-a)/864e5);return r<=0?e("myHomework.relativeDay.today","\uC624\uB298"):r===1?e("myHomework.relativeDay.yesterday","\uC5B4\uC81C"):e("myHomework.relativeDay.daysAgo",{n:r})},[e])}function qp(e){const[t,a]=l.useState({current:"",next:"",confirm:""}),[r,n]=l.useState(null),[i,s]=l.useState(!1),c=l.useRef(null);l.useEffect(()=>()=>{c.current!==null&&clearTimeout(c.current)},[]);const u=l.useCallback(()=>{a({current:"",next:"",confirm:""}),n(null)},[]),d=l.useCallback(async()=>{if(!t.current){n({type:"error",text:"\uD604\uC7AC \uBE44\uBC00\uBC88\uD638\uB97C \uC785\uB825\uD558\uC138\uC694."});return}if(!t.next){n({type:"error",text:"\uC0C8 \uBE44\uBC00\uBC88\uD638\uB97C \uC785\uB825\uD558\uC138\uC694."});return}if(t.next!==t.confirm){n({type:"error",text:"\uC0C8 \uBE44\uBC00\uBC88\uD638\uAC00 \uC77C\uCE58\uD558\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4."});return}s(!0);const p=e?await e(t.current,t.next):null;if(s(!1),p){n({type:"error",text:p});return}n({type:"success",text:"\uBE44\uBC00\uBC88\uD638\uAC00 \uBCC0\uACBD\uB418\uC5C8\uC2B5\uB2C8\uB2E4."}),a({current:"",next:"",confirm:""}),c.current!==null&&clearTimeout(c.current),c.current=setTimeout(()=>n(null),1500)},[t,e]);return{pw:t,setPw:a,pwMsg:r,setPwMsg:n,pwLoading:i,handleChangePw:d,reset:u}}const ol=[{id:"wordData",labelKey:"settings.cache.group.wordData.label",subKey:"settings.cache.group.wordData.sub",keys:["word_data_cache","word_data_version"]},{id:"pairIndex",labelKey:"settings.cache.group.pairIndex.label",subKey:"settings.cache.group.pairIndex.sub",keys:["word_pair_index_v2","word_pair_index_sig_v2"]},{id:"imageCache",labelKey:"settings.cache.group.imageCache.label",subKey:"settings.cache.group.imageCache.sub",keys:["word_image_existence_map_v1"]}];function rl(e){return e.reduce((t,a)=>{try{const r=localStorage.getItem(a);return t+(r?new Blob([r]).size:0)}catch{return t}},0)}function Yp(e){return e===0?"0 B":e<1024?`${e} B`:e<1024*1024?`${(e/1024).toFixed(1)} KB`:e<1024*1024*1024?`${(e/(1024*1024)).toFixed(2)} MB`:`${(e/(1024*1024*1024)).toFixed(2)} GB`}function Up(e){const{t}=ge.useTranslation(),[a,r]=l.useState({}),[n,i]=l.useState(null),[s,c]=l.useState(null),[u,d]=l.useState(null),p=l.useCallback(()=>{const h={};ol.forEach(g=>{h[g.id]=rl([...g.keys])}),r(h),typeof navigator<"u"&&navigator.storage?.estimate&&navigator.storage.estimate().then(g=>{d({usage:g.usage??0,quota:g.quota??0})}).catch(()=>{})},[]);l.useEffect(()=>{p()},[p]);const m=l.useCallback(async h=>{i(h);try{h==="wordData"?(localStorage.removeItem("word_data_cache"),localStorage.removeItem("word_data_version")):h==="pairIndex"?xi():h==="imageCache"&&li(),p(),e?.(t("settings.cache.cleared","\uCE90\uC2DC\uAC00 \uC0AD\uC81C\uB418\uC5C8\uC2B5\uB2C8\uB2E4."))}finally{i(null)}},[p,e,t]);return{cacheSizes:a,clearingId:n,confirmCacheId:s,setConfirmCacheId:c,storageEstimate:u,refreshCacheSizes:p,handleClearCache:m}}function Kp(e){const[t,a]=l.useState(null),[r,n]=l.useState(null),i=l.useCallback(()=>{const s=Ka();if(s){const u=Object.values(s),d=u.filter(p=>p.cho.length+p.jung.length+p.jong.length>0).length;a({matched:d,total:u.length})}else a(null);const c=Lr();n(c?{exists:c.exists,total:c.total}:null)},[]);return l.useEffect(()=>{i();const s=setTimeout(i,1e3);return()=>clearTimeout(s)},[e?.length,i]),{pairStats:t,imgStats:r,setPairStats:a,setImgStats:n,refreshStats:i}}function Zp(e,t=[]){const[a,r]=l.useState(t),[n,i]=l.useState(null),[s,c]=l.useState(!1),[u,d]=l.useState(e),p=l.useRef(s);l.useEffect(()=>{p.current=s});const m=l.useRef(null);l.useEffect(()=>{if(p.current)return;const v=m.current;v!==null&&v.length===t.length&&v.every((C,w)=>C===t[w])||(m.current=t,r(t))},[t]);const h=l.useCallback(v=>{i(v),c(!1),d({...v})},[]),g=l.useCallback(()=>c(!0),[]),f=l.useCallback(()=>c(!1),[]),b=l.useCallback((v,C)=>{r(v),i(C),c(!1)},[]),y=l.useCallback(v=>{r(C=>C.filter(w=>w!==v)),i(null)},[]);return{list:a,setList:r,selected:n,setSelected:i,isEditing:s,setIsEditing:c,editForm:u,setEditForm:d,openDetail:h,startEditing:g,cancelEditing:f,commitEdit:b,remove:y}}const _o=()=>{const e=new Date;return{year:String(e.getFullYear()),month:String(e.getMonth()+1).padStart(2,"0"),day:String(e.getDate()).padStart(2,"0")}},X4={year:"",month:"",day:"",hour:"09",minute:"00",memo:""};function Xp(e=[]){const{list:t,setList:a,selected:r,setSelected:n,isEditing:i,setIsEditing:s,editForm:c,setEditForm:u,openDetail:d,commitEdit:p}=Zp(X4,e),{year:m,month:h,day:g}=_o(),[f,b]=l.useState({year:m,month:h,day:g,hour:"09",minute:"00",memo:""});return{visitHistory:t,visitForm:f,setVisitForm:b,setVisit:y=>v=>b(C=>({...C,[y]:v})),selectedVisit:r,setSelectedVisit:n,isEditingVisit:i,setIsEditingVisit:s,editVisitForm:c,setEditVisitForm:u,openVisitDetail:d,handleVisitSave:y=>{a(x=>[f,...x]);const{year:v,month:C,day:w}=_o();b({year:v,month:C,day:w,hour:"09",minute:"00",memo:""}),y?.()},handleVisitEditSave:()=>{p(y=>y.map(v=>v===r?c:v),c)},addVisit:y=>{a(v=>[y,...v])},removeVisit:y=>{a(v=>v.filter(C=>C!==y))},revertVisitEdit:(y,v)=>{a(C=>C.map(w=>w===v?y:w)),n(C=>C===v?y:C)}}}const Qp=e=>`${e.year.padStart(4,"0")}-${e.month.padStart(2,"0")}-${e.day.padStart(2,"0")} ${e.hour.padStart(2,"0")}:${e.minute.padStart(2,"0")}`,ln=e=>[...e].sort((t,a)=>{const r=Qp(t),n=Qp(a);return r<n?-1:r>n?1:0}),Q4={year:"",month:"",day:"",hour:"09",minute:"00",memo:""};function Jp(e,t=[]){const a=l.useMemo(()=>ln(t),[t]),{list:r,setList:n,selected:i,setSelected:s,isEditing:c,setIsEditing:u,editForm:d,setEditForm:p,openDetail:m,commitEdit:h,remove:g}=Zp(Q4,a),[f,b]=l.useState([]),{year:y,month:v,day:C}=_o(),[w,x]=l.useState({year:y,month:v,day:C,hour:"09",minute:"00",memo:""}),S=E=>L=>x(F=>({...F,[E]:L})),_=E=>{n(Z=>ln([...Z,w]));const{year:L,month:F,day:te}=_o();x({year:L,month:F,day:te,hour:"09",minute:"00",memo:""}),E?.()},k=()=>{h(E=>ln(E.map(L=>L===i?d:L)),d)},N=l.useCallback(E=>{g(E)},[g]),A=l.useCallback(E=>{e({year:E.year,month:E.month,day:E.day,hour:E.hour,minute:E.minute,memo:E.memo}),g(E)},[e,g]),D=l.useCallback(E=>{n(L=>L.filter(F=>F!==E)),b(L=>[E,...L]),s(null)},[n,s]),H=l.useCallback(E=>{n(L=>ln([...L,E]))},[n]),P=l.useCallback(E=>{n(L=>L.filter(F=>F!==E))},[n]),T=l.useCallback((E,L)=>{n(F=>F.map(te=>te===L?E:te)),s(F=>F===L?E:F)},[n,s]);return{scheduleList:r,noShowList:f,addSchedule:H,removeSchedule:P,revertScheduleEdit:T,scheduleForm:w,setScheduleForm:x,setSchedule:S,selectedSchedule:i,setSelectedSchedule:s,isEditingSchedule:c,setIsEditingSchedule:u,editScheduleForm:d,setEditScheduleForm:p,openScheduleDetail:m,handleScheduleSave:_,handleScheduleEditSave:k,handleScheduleDelete:N,handleScheduleToVisit:A,handleScheduleNoVisit:D}}const nl=[{value:"10",label:"10\uAC1C\uC529 \uBCF4\uAE30"},{value:"25",label:"25\uAC1C\uC529 \uBCF4\uAE30"},{value:"50",label:"50\uAC1C\uC529 \uBCF4\uAE30"},{value:"100",label:"100\uAC1C\uC529 \uBCF4\uAE30"}];function eh(e){const[t,a]=l.useState(""),[r,n]=l.useState("25"),[i,s]=l.useState("all"),[c,u]=l.useState(1),d=l.useMemo(()=>e.filter(({item:g,status:f})=>!(t&&!g.memo.includes(t)||i!=="all"&&f!==i)),[e,t,i]),p=Math.max(1,Math.ceil(d.length/Number(r))),m=Math.min(c,p),h=l.useMemo(()=>d.slice((m-1)*Number(r),m*Number(r)),[d,m,r]);return{vapSearch:t,setVapSearch:a,vapPageSize:r,setVapPageSize:n,vapStatus:i,setVapStatus:s,vapPage:m,setVapPage:u,vapFiltered:d,vapTotal:p,vapPageItems:h}}function il(e,t){const{t:a}=ge.useTranslation(),[r,n]=l.useState("25"),[i,s]=l.useState(1),[c,u]=l.useState(t);c!==t&&(u(t),i!==1&&s(1));const d=l.useMemo(()=>nl.map(g=>({...g,label:a("visits.showN",{n:g.value})})),[a]),p=l.useCallback(g=>{n(g),s(1)},[]),m=Math.max(1,Math.ceil(e.length/Number(r))),h=Math.min(i,m);return{pageRows:l.useMemo(()=>e.slice((h-1)*Number(r),h*Number(r)),[e,h,r]),pageSizeProps:{options:d,value:r,onChange:p},paginationProps:{page:h,total:m,onChange:s},setPage:s}}function sl(){const[e,t]=l.useState(null),a=l.useCallback(n=>{t(i=>i?.key===n?{key:n,asc:!i.asc}:{key:n,asc:!0})},[]),r=l.useCallback((n,i)=>({label:n,sortDir:e?.key===i?e.asc?"asc":"desc":null,onClick:()=>a(i)}),[e,a]);return{\uC815\uB82C:e,\uCE78:r}}function th(){const[e,t]=l.useState(!1),[a,r]=l.useState("\uC88C"),[n,i]=l.useState({\uC88C:null,\uC6B0:null}),[s,c]=l.useState({\uC88C:[],\uC6B0:[]}),[u,d]=l.useState(!1),[p,m]=l.useState("\uC88C"),h=l.useCallback(f=>{const b=f.direction;i(y=>({...y,[b]:f})),c(y=>({...y,[b]:[f,...y[b]]})),t(!1)},[]),g=l.useCallback(f=>{const b=f.direction;i(y=>({...y,[b]:f})),d(!1)},[]);return{showDevice:e,setShowDevice:t,deviceDirection:a,setDeviceDirection:r,devices:n,setDevices:i,deviceHistory:s,setDeviceHistory:c,showDeviceList:u,setShowDeviceList:d,listForSide:p,setListForSide:m,handleDeviceSubmit:h,handleSelectFromList:g}}const Dt="\uC804\uCCB4";function ll(){const{t:e}=ge.useTranslation();return l.useMemo(()=>({difficulty:e("wordSearch.filter.difficulty","\uB4F1\uAE09"),syllables:e("wordSearch.filter.syllables","\uC74C\uC808 \uC218"),syllable5plus:e("wordSearch.filter.syllable5plus","5\uC74C\uC808 \uC774\uC0C1"),partOfSpeech:e("wordSearch.filter.partOfSpeech","\uD488\uC0AC"),wordType:e("wordSearch.filter.wordType","\uC720\uD615"),posMap:{[e("wordSearch.filter.pos.noun","\uCCB4\uC5B8(\uBA85\uC0AC, \uC218\uC0AC)")]:["\uBA85","\uC218"],[e("wordSearch.filter.pos.verb","\uC6A9\uC5B8(\uB3D9\uC0AC, \uD615\uC6A9\uC0AC)")]:["\uB3D9","\uD615"],[e("wordSearch.filter.pos.modifier","\uC218\uC2DD\uC5B8(\uBD80\uC0AC, \uAD00\uD615\uC0AC)")]:["\uBD80","\uAD00"]},typeMap:{[e("wordSearch.filter.type.native","\uACE0\uC720\uC5B4")]:"\uACE0\uC720",[e("wordSearch.filter.type.sino","\uD55C\uC790\uC5B4")]:"\uD55C\uC790",[e("wordSearch.filter.type.foreign","\uC678\uB798\uC5B4")]:"\uC678\uB798",[e("wordSearch.filter.type.mixed","\uD63C\uC885\uC5B4")]:"\uD63C\uC885"}}),[e])}function cl(e,t,a){return{label:t.difficulty,items:[1,2,3,4].map(r=>e("wordSearch.filter.grade",{n:r})),multiple:!0,allOption:!0,allLabel:a?.allLabel,labelAction:a?.labelAction,labelInfo:a?.labelInfo}}function dl(e){return{label:e.partOfSpeech,items:Object.keys(e.posMap),multiple:!0,allOption:!0}}function ul(e){return{label:e.wordType,items:Object.keys(e.typeMap),multiple:!0,allOption:!0}}function ah(e,t){return{label:t.syllables,items:[e("wordSearch.filter.syllable",{n:1}),e("wordSearch.filter.syllable",{n:2}),e("wordSearch.filter.syllable",{n:3}),e("wordSearch.filter.syllable",{n:4}),t.syllable5plus],multiple:!0,allOption:!0}}function oh(e,t){const a=[e("wordPairs.filter.onlyHasImage","\uC774\uBBF8\uC9C0 \uC788\uB294 \uB2E8\uC5B4\uB9CC")];return t?.includeStructure&&a.push(e("wordPairs.filter.onlySameStructure","\uC74C\uC18C \uAD6C\uC870 \uAC19\uC740 \uB2E8\uC5B4\uB9CC")),{label:e("wordPairs.filter.selectLabel","\uC120\uD0DD"),items:a,multiple:!0,labelAction:t?.labelAction,labelInfo:t?.labelInfo}}function rh(e,t){const{label:a,headValue:r,midValue:n,tailValue:i,includeMid:s=!0,headDisabled:c,midDisabled:u,tailDisabled:d,allOptionDisabled:p,groupLabel:m,labelAction:h}=t;return{label:a,...m?{groupLabel:m}:{},...h?{labelAction:h}:{},allOption:!0,allLabel:e("wordSearch.filter.positionAny",{defaultValue:"\uBB34\uAD00"}),...p?{allOptionDisabled:p}:{},items:[{value:r,displayLabel:e("wordSearch.filter.positionHead",{defaultValue:"\uC5B4\uB450"}),disabled:c},...s?[{value:n,displayLabel:e("wordSearch.filter.positionMid",{defaultValue:"\uC5B4\uC911"}),disabled:u}]:[],{value:i,displayLabel:e("wordSearch.filter.positionTail",{defaultValue:"\uC5B4\uB9D0"}),disabled:d}]}}function nh(e,t,a){if(t===Dt){const{[a]:i,...s}=e;return s}const r=e[a]??[],n=r.includes(t)?r.filter(i=>i!==t):[...r,t];if(n.length===0){const{[a]:i,...s}=e;return s}return{...e,[a]:n}}Object.fromEntries(Object.entries(Mw).map(([e,{nucleus:t}])=>[e,t]));const J4={\uACE0\uC720\uC5B4:"\uACE0\uC720",\uD55C\uC790\uC5B4:"\uD55C\uC790",\uC678\uB798\uC5B4:"\uC678\uB798",\uD63C\uC885\uC5B4:"\uD63C\uC885"},e5={"\uCCB4\uC5B8(\uBA85\uC0AC,\uC218\uC0AC)":["\uBA85","\uC218"],"\uC6A9\uC5B8(\uB3D9\uC0AC,\uD615\uC6A9\uC0AC)":["\uB3D9","\uD615"],"\uC218\uC2DD\uC5B8(\uBD80\uC0AC,\uAD00\uD615\uC0AC)":["\uBD80","\uAD00"]},t5={difficulty:"\uB09C\uC774\uB3C4 \uB4F1\uAE09",syllables:"\uC74C\uC808 \uC218",syllable5plus:"5\uC74C\uC808 \uC774\uC0C1",partOfSpeech:"\uD488\uC0AC",wordType:"\uC720\uD615",posMap:e5,typeMap:J4};function a5(e,t,a=t5){const r=t[a.difficulty];if(r?.length&&!r.some(c=>e.grade===c.replace(/\D/g,"")))return!1;const n=t[a.syllables];if(n?.length){const c=e.syllables??0;if(!n.some(u=>u===a.syllable5plus?c>=5:c===parseInt(u)))return!1}const i=t[a.partOfSpeech];if(i?.length&&!i.flatMap(c=>a.posMap[c]??[c]).some(c=>(e.pos??"").includes(c)))return!1;const s=t[a.wordType];return!(s?.length&&!s.some(c=>e.wordType===a.typeMap[c]))}const Aa=(e,t)=>t.map(a=>({jamos:[a],tooltip:e})),wt=(e,t)=>({jamos:[...e],tooltip:t}),pl={cho:[Aa("\uC591\uC21C\uC74C",["\u3142","\u3143","\u314D","\u3141"]),Aa("\uCE58\uC870\uC74C",["\u3137","\u3138","\u314C","\u3134","\u3139"]),Aa("\uCE58\uC870\uC74C",["\u3145","\u3146"]),Aa("\uACBD\uAD6C\uAC1C\uC74C",["\u3148","\u3149","\u314A"]),Aa("\uC5F0\uAD6C\uAC1C\uC74C",["\u3131","\u3132","\u314B"]),Aa("\uC131\uBB38\uC74C",["\u314E"])],jung:[[wt("\u3163","\uC804\uC124 \uACE0\uBAA8\uC74C"),wt("\u315F","\uC804\uC124 \uACE0\uBAA8\uC74C \xB7 w\uD65C\uC74C"),wt("\u3162","\uC804\uC124 \uACE0\uBAA8\uC74C \xB7 \u0270\uD65C\uC74C")],[wt("\u3161","\uD6C4\uC124 \uACE0\uBAA8\uC74C \uD3C9\uC21C")],[wt("\u315C","\uD6C4\uC124 \uACE0\uBAA8\uC74C \uC6D0\uC21C"),wt("\u3160","\uD6C4\uC124 \uACE0\uBAA8\uC74C \uC6D0\uC21C \xB7 j\uD65C\uC74C")],[wt("\u3154\u3150","\uC804\uC124 \uC911\uBAA8\uC74C"),wt("\u3156\u3152","\uC804\uC124 \uC911\uBAA8\uC74C \xB7 j\uD65C\uC74C"),wt("\u3159\u315A\u315E","\uC804\uC124 \uC911\uBAA8\uC74C \xB7 w\uD65C\uC74C")],[wt("\u3153","\uD6C4\uC124 \uC911\uBAA8\uC74C \uD3C9\uC21C"),wt("\u3155","\uD6C4\uC124 \uC911\uBAA8\uC74C \uD3C9\uC21C \xB7 j\uD65C\uC74C"),wt("\u315D","\uD6C4\uC124 \uC911\uBAA8\uC74C \uD3C9\uC21C \xB7 w\uD65C\uC74C")],[wt("\u3157","\uD6C4\uC124 \uC911\uBAA8\uC74C \uC6D0\uC21C"),wt("\u315B","\uD6C4\uC124 \uC911\uBAA8\uC74C \uC6D0\uC21C \xB7 j\uD65C\uC74C")],[wt("\u314F","\uC800\uBAA8\uC74C"),wt("\u3151","\uC800\uBAA8\uC74C \xB7 j\uD65C\uC74C"),wt("\u3158","\uC800\uBAA8\uC74C \xB7 w\uD65C\uC74C")]],jong:[Aa("\uC591\uC21C\uC74C",["\u3142","\u3141"]),Aa("\uCE58\uC870\uC74C",["\u3137","\u3134","\u3139"]),Aa("\uC5F0\uAD6C\uAC1C\uC74C",["\u3131","\u3147"])]},o5=[...Ze],r5=[...dt],n5=gt.filter(e=>e!==""),ba=e=>e===ra?[]:Array.from(e),ra="__NO_CODA__",ih=[1,2,3,4],na=5,i5=12,sh="SYL_",hl=e=>`${sh}${e}`,s5=e=>Number(e.slice(sh.length));function cn(e){return e>=na?Array.from({length:i5-na+1},(t,a)=>na+a):[e]}const lh={cho:o5,jung:r5,jong:n5},ml=e=>e.map(t=>t.map(({jamos:a,tooltip:r})=>({v:a.join(""),tooltip:r}))),bl={cho:ml(pl.cho),jung:ml(pl.jung),jong:ml(pl.jong)},ch={};bl.jung.flat().forEach(({v:e})=>{for(const t of ba(e))ch[t]=e});const l5=new Set(bl.cho.flat().map(e=>e.v));function gl(e,t){return e==="cho"?l5.has(t)?t:null:e==="jung"?ch[t]??t:Hr(t)}function fl(e,t,a){if(e==="jung"){const r=ba(t);return a&&r.includes(a)?a:r[0]??t}return t}function vl(e,t,a){const r=(n,i)=>i?n==="jong"&&i===ra?ra:t==="pron"?gl(n,i):fl(n,i,n==="jung"?a:null):null;return{...e,cho:r("cho",e.cho),jung:r("jung",e.jung),jong:r("jong",e.jong)}}const dn={cho:null,jung:null,jong:null,syllable:null},c5="wt_filter",dh=e=>`wt_filter_${e}`;function uh(e){try{const t=localStorage.getItem(dh(e))??localStorage.getItem(c5);if(t)return JSON.parse(t)}catch{}return null}function d5(e){const t=e;return t?.composition?{cho:t.composition.cho??null,jung:t.composition.jung??null,jong:t.composition.jong??null,syllable:t.composition.syllable??null}:t?.choseong?{...dn,cho:t.choseong}:dn}function ph(e,t,a){const{t:r,i18n:n}=ge.useTranslation(),[i]=l.useState(()=>a?.resetOnMount?null:uh(e)),s=i?.contrastCount,c=typeof s=="number"&&Number.isFinite(s)?s:1,[u,d]=l.useState(Math.min(5,Math.max(1,c))),[p,m]=l.useState(i?.phonemeView==="pron"?"pron":i?.phonemeView==="direct"?"direct":"char"),[h,g]=l.useState(()=>d5(i)),f=l.useCallback(()=>t.requireSyllable?{cho:"\u3131",jung:"\u314F",jong:ra,syllable:t.fixedSyllable??null}:{cho:null,jung:null,jong:t.fixedNoCoda?ra:null,syllable:t.fixedSyllable??null},[t.requireSyllable,t.fixedSyllable,t.fixedNoCoda]);l.useEffect(()=>{!t.requireSyllable&&t.fixedSyllable==null&&!t.fixedNoCoda||g(R=>R.cho||R.jung||R.syllable!=null||R.jong?R:f())},[]);const b=l.useMemo(()=>ft(h.cho)||ft(h.jung)||ft(h.jong)?"count":"random",[h.cho,h.jung,h.jong]),y=l.useRef(p==="char"?h.jung:null);l.useEffect(()=>{p==="char"&&(y.current=h.jung)},[p,h.jung]);const[v,C]=l.useState(a?.resetOnMount?!!a?.defaultImageOnly:i?.excludeNoImage??!0),[w,x]=l.useState(a?.resetOnMount?!1:i?.sameStructureOnly??!0),[S,_]=l.useState(Array.isArray(i?.gradeFilter)?i.gradeFilter:[]),[k,N]=l.useState(Array.isArray(i?.posFilter)?i.posFilter:[]),[A,D]=l.useState(Array.isArray(i?.wordTypeFilter)?i.wordTypeFilter:[]),H=l.useRef(a?.resetKey);l.useEffect(()=>{H.current!==a?.resetKey&&(H.current=a?.resetKey,g(f()),C(!1),x(!1),_([]),N([]),D([]),d(1))},[a?.resetKey]);const P=ll(),[T,E]=l.useState({cho:new Set,jung:new Set,jong:new Set,syllable:new Set}),[L,F]=l.useState(!1),[te,Z]=l.useState(null),V=1,j=Math.max(1,[h.cho,h.jung,h.jong].filter(Boolean).length);l.useEffect(()=>{u<j&&d(j)},[j,u]);const[M,$]=l.useState(e);l.useEffect(()=>{if(M!==e){if(!a?.resetOnMount){const R=uh(e),oe=typeof R?.contrastCount=="number"&&Number.isFinite(R.contrastCount)?R.contrastCount:1;d(Math.min(5,Math.max(1,oe))),g(R?.composition??f()),C(R?.excludeNoImage??!0),x(R?.sameStructureOnly??!0),m(R?.phonemeView==="pron"?"pron":"char"),_(Array.isArray(R?.gradeFilter)?R.gradeFilter:[]),N(Array.isArray(R?.posFilter)?R.posFilter:[]),D(Array.isArray(R?.wordTypeFilter)?R.wordTypeFilter:[])}$(e)}},[e,M,a?.resetOnMount]),l.useEffect(()=>{if(!a?.resetOnMount&&M===e)try{localStorage.setItem(dh(e),JSON.stringify({contrastCount:u,composition:h,excludeNoImage:v,sameStructureOnly:w,phonemeView:p,gradeFilter:S,posFilter:k,wordTypeFilter:A}))}catch{}},[a?.resetOnMount,e,M,u,h,v,w,p,S,k,A]);const[W,q]=l.useState(0);dr("wordpool:update",()=>q(R=>R+1));const X=l.useRef(n.language);l.useEffect(()=>{X.current!==n.language&&(X.current=n.language,q(R=>R+1))},[n.language]),l.useEffect(()=>{if(!t.choseong)return;let R=!1;return k4({difficulty:b,excludeNoImage:v}).then(oe=>{R||(E(oe),oe.cho.size+oe.jung.size+oe.jong.size>0&&F(!0))}).catch(()=>{R||E({cho:new Set,jung:new Set,jong:new Set,syllable:new Set})}),()=>{R=!0}},[t.choseong,b,v,W]),l.useEffect(()=>{let R=!1;const oe=h,ae=oe.cho?ba(oe.cho):null,ve=oe.jung?ba(oe.jung):null,De=oe.jong===ra,ze=De?null:oe.jong?ba(oe.jong):null,Re=oe.syllable!=null?cn(oe.syllable):null,Me=!!(ae||ve||ze||De||Re);return w4({difficulty:t.difficulty?b:null,contrastCount:t.difficulty?u:1,composition:t.choseong&&Me?{cho:ae,jung:ve,jong:ze,jongNone:De,syllable:Re}:null,excludeNoImage:v,sameStructureOnly:w,phonemeView:p==="pron"?"pron":"char",grade:S.length>0?S:null}).then(Ye=>{R||Z(Ye)}).catch(()=>{R||Z(null)}),()=>{R=!0}},[t.choseong,t.difficulty,b,u,h,p,v,w,W,S]),l.useEffect(()=>{L&&g(R=>{const oe={...R};let ae=!1;return["cho","jung","jong"].forEach(ve=>{const De=R[ve];!De||De===ra||ba(De).some(ze=>T[ve].has(ze))||(oe[ve]=null,ae=!0)}),R.syllable!=null&&t.fixedSyllable==null&&(R.syllable>=na?[...T.syllable].some(ve=>ve>=na)||(oe.syllable=null,ae=!0):(!T.syllable.has(R.syllable)||R.syllable<V)&&(oe.syllable=null,ae=!0)),ae?oe:R})},[T,L,V,t.fixedSyllable]);const O=l.useMemo(()=>{const R=oe=>{const ae=new Set;for(const ve of lh[oe])T[oe].has(ve)&&ae.add(ve);return ae};return{cho:R("cho"),jung:R("jung"),jong:R("jong")}},[T]),Y=l.useMemo(()=>({exact:new Set(ih.filter(R=>T.syllable.has(R))),min:[...T.syllable].some(R=>R>=na)}),[T]),z=l.useMemo(()=>({diffPhonemeCount:r("training.contrast.diffPhonemeCount",{defaultValue:"\uB2E4\uB978 \uC74C\uC18C\uC758 \uCD1D \uAC2F\uC218"}),composition:r("wordPairs.composition","\uC815\uB2F5 \uB2E8\uC5B4 \uAD6C\uC131"),syllableCount:r("wordPairs.syllableCount","\uC74C\uC808 \uC218"),onset:r("wordPairs.onset","\uCD08\uC131"),vowel:r("wordPairs.vowel","\uBAA8\uC74C"),coda:r("wordPairs.coda","\uC885\uC131"),phonemeGroup:r("training.filter.phonemeGroup",{defaultValue:"\uD6C8\uB828 \uC74C\uC808"}),trainOnset:r("training.filter.trainOnset",{defaultValue:"\uCD08\uC131"}),trainVowel:r("training.filter.trainVowel",{defaultValue:"\uBAA8\uC74C"}),trainCoda:r("training.filter.trainCoda",{defaultValue:"\uC885\uC131"}),random:r("training.filter.random","\uBB34\uC791\uC704"),exclude:r("wordSearch.filter.exclude","\uC81C\uC678"),selectLabel:r("training.filter.selectSection",{defaultValue:"\uC120\uD0DD"}),none:r("common.none","\uC5C6\uC74C"),noImage:r("wordSearch.filter.excludeNoImage","\uC774\uBBF8\uC9C0 \uC5C6\uC74C"),excludeImage:r("training.filter.excludeImage",{defaultValue:"\uC774\uBBF8\uC9C0 \uC788\uB294 \uB2E8\uC5B4\uB9CC"}),sameStructure:r("training.filter.sameStructure",{defaultValue:"\uC74C\uC18C \uAD6C\uC870 \uAC19\uC740 \uB2E8\uC5B4\uB9CC"}),noLimit:r("training.filter.noLimit",{defaultValue:"\uBB34\uAD00"}),codaExclude:r("training.filter.codaExclude",{defaultValue:"\uC81C\uC678"}),gradeLabel:r("training.filter.gradeLabel",{defaultValue:"\uB09C\uC774\uB3C4 \uB4F1\uAE09"})}),[r]),re=l.useMemo(()=>({[z.trainOnset]:"cho",[z.trainVowel]:"jung",[z.trainCoda]:"jong"}),[z]),Q=l.useCallback((R,oe)=>({title:oe,items:R}),[]),ne=l.useMemo(()=>[r("training.filter.excludeImageInfo",{defaultValue:"\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."}),r("training.filter.sameStructureInfo",{defaultValue:"\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."})],[r]),me=l.useMemo(()=>{const R=[];if(t.choseong){const oe={value:ra,displayLabel:z.codaExclude},ae=t.fixedNoCoda===!0,ve=(De,ze)=>{const Re=ae&&De==="jong",Me={label:ze,groupLabel:z.phonemeGroup,allOption:!t.requireSyllable,allLabel:z.noLimit,allOptionDisabled:Re};if(p==="pron"){const Ne=bl[De].map(Ve=>Ve.map(({v:Fe,tooltip:be})=>{const Ke=ba(Fe),We=Re||!Ke.some(Le=>T[De].has(Le));return Ke.length>1?{value:Fe,labels:Ke,tooltip:be,disabled:We}:{value:Fe,tooltip:be,disabled:We}}));return De==="jong"&&!t.requireCoda&&Ne.unshift([oe]),{...Me,groups:Ne}}const Ye=lh[De].map(Ne=>!Re&&O[De].has(Ne)?Ne:{value:Ne,disabled:!0});return{...Me,items:De==="jong"&&!t.requireCoda?[oe,...Ye]:Ye}};R.push(ve("cho",z.trainOnset)),R.push(ve("jung",z.trainVowel)),R.push(ve("jong",z.trainCoda))}if(R.push({...cl(r,P,{labelInfo:Q([r("wordPairs.filter.difficultyInfo",{defaultValue:"\uAD6D\uB9BD\uAD6D\uC5B4\uC6D0\uC758 \uAE30\uCD08 \uC5B4\uD718 \uB4F1\uAE09\uC774 \uACB0\uACFC\uC5D0 \uBC18\uC601\uB429\uB2C8\uB2E4."})])}),label:z.gradeLabel}),t.partOfSpeech&&R.push(dl(P)),t.wordType&&R.push(ul(P)),t.choseong||t.fixedSyllable!=null){const oe=t.fixedSyllable;R.push({label:z.syllableCount,items:[...ih.map(ae=>({value:hl(ae),displayLabel:r("wordPairs.syllableN",{n:ae,defaultValue:"{{n}}\uC74C\uC808"}),disabled:oe!=null?ae!==oe:!Y.exact.has(ae)||ae<V})),{value:hl(na),displayLabel:r("wordPairs.syllableNPlus",{n:na,defaultValue:"{{n}}\uC74C\uC808 \uC774\uC0C1"}),disabled:oe!=null?na!==oe:!Y.min}],allOption:!0,allOptionDisabled:oe!=null})}return t.choseong?R.push({label:z.exclude,displayLabel:z.selectLabel,multiple:!0,items:[z.excludeImage,z.sameStructure],labelInfo:Q(ne)}):R.push({label:z.exclude,displayLabel:z.selectLabel,multiple:!0,items:[z.excludeImage],labelInfo:Q([ne[0]])}),R},[t.choseong,t.partOfSpeech,t.wordType,t.requireSyllable,t.fixedSyllable,t.fixedNoCoda,t.requireCoda,V,O,T,p,Y,z,r,Q,ne,P]),ce={...t.difficulty?{[z.diffPhonemeCount]:String(u)}:{},...(t.choseong||t.fixedSyllable!=null)&&h.syllable!=null?{[z.syllableCount]:hl(h.syllable)}:{},...t.choseong&&h.cho?{[z.trainOnset]:h.cho}:{},...t.choseong&&h.jung?{[z.trainVowel]:h.jung}:{},...t.choseong&&h.jong?{[z.trainCoda]:h.jong}:{},[z.exclude]:[...v?[z.excludeImage]:[],...w?[z.sameStructure]:[]],[z.gradeLabel]:S.map(R=>r("wordSearch.filter.grade",{n:Number(R),defaultValue:"{{n}}\uB4F1\uAE09"})),...t.partOfSpeech?{[P.partOfSpeech]:k}:{},...t.wordType?{[P.wordType]:A}:{}},I=l.useCallback((R,oe)=>{if(oe===z.diffPhonemeCount){const ae=Number(R);ae>=1&&d(ae)}else if(oe===z.exclude)R===z.excludeImage?C(ae=>!ae):R===z.sameStructure&&x(ae=>!ae);else if(oe===z.syllableCount)g(ae=>{if(!R||R===Dt)return{...ae,syllable:null};const ve=s5(R);return{...ae,syllable:ae.syllable===ve?null:ve}});else if(oe===z.gradeLabel){if(!R||R===Dt){_([]);return}const ae=R.replace(/\D/g,"");_(ve=>ve.includes(ae)?ve.filter(De=>De!==ae):[...ve,ae])}else if(oe===P.partOfSpeech){if(!R||R===Dt){N([]);return}N(ae=>ae.includes(R)?ae.filter(ve=>ve!==R):[...ae,R])}else if(oe===P.wordType){if(!R||R===Dt){D([]);return}D(ae=>ae.includes(R)?ae.filter(ve=>ve!==R):[...ae,R])}else{const ae=re[oe];if(!ae)return;g(ve=>t.requireSyllable?R&&R!==Dt?{...ve,[ae]:R}:ve:!R||R===Dt||ve[ae]===R?{...ve,[ae]:null}:{...ve,[ae]:R})}},[z,re,P,t.requireSyllable]),ee=l.useCallback(R=>!t.partOfSpeech&&!t.wordType?!0:a5(R,{...t.partOfSpeech?{[P.partOfSpeech]:k}:{},...t.wordType?{[P.wordType]:A}:{}},P),[t.partOfSpeech,t.wordType,k,A,P]),pe=l.useCallback(R=>{R!==p&&(R!=="direct"&&p!=="direct"&&g(oe=>vl(oe,R,y.current)),m(R))},[p]),ke=l.useCallback(()=>({composition:h,contrastCount:u,excludeNoImage:v,sameStructureOnly:w,phonemeView:p,gradeFilter:S}),[h,u,v,w,p,S]),Ce=l.useCallback(R=>{g(R.composition),d(R.contrastCount),C(R.excludeNoImage),x(R.sameStructureOnly??!0),m(R.phonemeView),_(Array.isArray(R.gradeFilter)?R.gradeFilter:[])},[]);return{difficulty:b,contrastCount:u,composition:h,choseong:h.cho,excludeNoImage:v,sameStructureOnly:w,gradeFilter:S,posFilter:k,wordTypeFilter:A,matchesWordAttributes:ee,poolVersion:W,filterSections:me,filterSelected:ce,handleFilterSelect:I,phonemeView:p,setPhonemeView:pe,phonemeGroupLabel:z.phonemeGroup,wordCount:te,getFilterSnapshot:ke,restoreFilterSnapshot:Ce}}function u5(e){const t=c=>c?ba(c):null,a=t(e.cho),r=t(e.jung),n=e.jong===ra,i=n?null:t(e.jong),s=e.syllable!=null?cn(e.syllable):null;return!a&&!r&&!i&&!n&&!s?null:{cho:a,jung:r,jong:i,jongNone:n,syllable:s}}function hh(e,t,a,r,n,i,s=!0,c="char",u=[]){const[d,p]=l.useState({}),[m,h]=l.useState(!1),{cho:g=null,jung:f=null,jong:b=null,syllable:y=null}=r??{},v=u.length>0?u.slice().sort().join(","):"";return l.useEffect(()=>{i>0&&_4(n).catch(()=>{})},[i,n]),l.useEffect(()=>{let C=!1;return h(!0),(async()=>{const w=u5({cho:g,jung:f,jong:b,syllable:y}),x=`${g??""}_${f??""}_${b??""}_${y??""}_${v}`,S={};await Promise.all(e.map(async _=>{const k=fo[_.key];try{const N=await Np(_.key,{difficulty:k.difficulty?t:null,contrastCount:k.difficulty?a:1,composition:k.choseong?w:null,count:5,excludeNoImage:n,sameStructureOnly:s,phonemeView:c,grade:u.length>0?u:null});N&&N.length>0?S[_.key]={id:`wt-${_.key}-${t}-${x}-${Date.now()}`,name:_.label,training_type:_.key,category_main_code:"WORD",iconColor:_.color,subTitle:_.subTitle,items:N,itemCount:N.length}:S[_.key]={id:`wt-${_.key}-empty`,name:_.label,training_type:_.key,category_main_code:"WORD",iconColor:_.color,subTitle:_.subTitle,items:[],itemCount:0,__empty:!0}}catch{S[_.key]=null}})),C||(p(S),h(!1))})(),()=>{C=!0}},[t,a,g,f,b,y,n,s,c,i,v]),{perTypeData:d,generating:m}}function p5(e){let t=2166136261;for(let a=0;a<e.length;a++)t^=e.charCodeAt(a),t=Math.imul(t,16777619);return t>>>0}function h5(e){let t=e>>>0;return()=>{t|=0,t=t+1831565813|0;let a=Math.imul(t^t>>>15,1|t);return a=a+Math.imul(a^a>>>7,61|a)^a,((a^a>>>14)>>>0)/4294967296}}const un=Qt;function yl(e,t){const a=t?h5(p5(t)):Math.random;return{LISTEN_IN_NOISE:un(Ra,Math.max(0,e.LISTEN_IN_NOISE||0),a),SHORT_STORY:un($a,Math.max(0,e.SHORT_STORY||0),a),LONG_STORY:un(Ia,Math.max(0,e.LONG_STORY||0),a),ORDERING_SENTENCE:un(za,Math.max(0,e.ORDERING_SENTENCE||0),a)}}function mh(e){return e?!!(e.LISTEN_IN_NOISE?.length||e.SHORT_STORY?.length||e.LONG_STORY?.length||e.ORDERING_SENTENCE?.length):!1}const m5={LISTEN_IN_NOISE:3,SHORT_STORY:2,LONG_STORY:1,ORDERING_SENTENCE:2};function bh(e=!1,t=m5,a){const r=ka(Date.now()),n=ka(Date.now()-864e5),i=`${a??""}|${r}`,s=`${a??""}|${n}`;return Ra.length>0||$a.length>0||Ia.length>0||za.length>0?{today:yl(t,i),yesterday:yl(t,s)}:{today:yl(t,i),yesterday:null}}function gh(e){const t=l.useRef({LISTEN_IN_NOISE:[],SHORT_STORY:[],LONG_STORY:[],ORDERING_SENTENCE:[]}),a=l.useRef(null),[r,n]=l.useState(!1),[i,s]=l.useState(!1),[c,u]=l.useState(0),[d,p]=l.useState(!1);l.useEffect(()=>{let h=!1,g,f=0;const b=40,y=()=>{g!==void 0&&(clearInterval(g),g=void 0)};let v=!1;try{const x=new URLSearchParams(window.location.search),S=x.get("forceRefresh")||x.get("force");v=S==="1"||S==="true"}catch{}const C=x=>{t.current=x.today,a.current=x.yesterday,n(!0),p(!0),u(S=>S+1),h=!0,y()},w=async()=>{if(h)return;if(!v){const S=bh(!1,void 0,e);if(mh(S.today)){C(S);return}}try{await vs(3e3)}catch{}if(h)return;const x=bh(v,void 0,e);if(mh(x.today)){C(x);return}++f>=b&&(n(!0),p(!1),h=!0,y())};return w(),g=setInterval(w,250),()=>{h=!0,y()}},[e]);const m=l.useCallback(h=>{const g=i?a.current:t.current,f=i?t.current:a.current;return g?.[h]?.length?g[h]:f?.[h]?.length?f[h]:void 0},[i,c]);return{loaded:r,hasData:d,showYesterday:i,setShowYesterday:s,getTrainingPerType:m}}const wo=[];let pn=!1;function fh(e){if(e.key!=="Escape"||e.defaultPrevented)return;const t=wo[wo.length-1];t&&(e.stopPropagation(),t())}function xl(e){return wo.push(e),!pn&&typeof document<"u"&&(document.addEventListener("keydown",fh),pn=!0),()=>{const t=wo.lastIndexOf(e);t>=0&&wo.splice(t,1),wo.length===0&&pn&&typeof document<"u"&&(document.removeEventListener("keydown",fh),pn=!1)}}function vh(e,t=!0){const a=Js(e);l.useEffect(()=>{if(t)return xl(()=>{a.current?.()})},[t,a])}const hn=(e,t)=>`${e}:${t??1}`,Cl=new Map;function yh(e,t){const[a,r]=l.useState(0),n=e.map(i=>hn(i.word,i.homonum)).join("|");return l.useEffect(()=>{const i=(n?n.split("|"):[]).filter(u=>!Cl.has(u));if(i.length===0)return;let s=!1;const c=Array.from(new Set(i.map(u=>u.slice(0,u.lastIndexOf(":")))));return t(c).then(u=>{if(!(s||u.length===0)){for(const d of u)d.Meaning&&Cl.set(hn(d.Word,d.Homonum??void 0),d.Meaning);r(d=>d+1)}}),()=>{s=!0}},[n,t]),l.useMemo(()=>{const i=n?n.split("|"):[],s=new Map;for(const c of i){const u=Cl.get(c);u!=null&&s.set(c,u)}return s},[n,a])}function ko(){const[e,t]=l.useState(null),a=l.useCallback(i=>t(i.getBoundingClientRect()),[]),r=l.useCallback(()=>t(null),[]),n=l.useCallback(i=>{const s=i.getBoundingClientRect();t(c=>c?null:s)},[]);return{anchorRect:e,isOpen:e!=null,openAt:a,close:r,toggleAt:n}}function xh(e){const[t,a]=l.useState(null),[r,n]=l.useState(null),i=l.useRef(null);l.useEffect(()=>()=>{i.current&&clearTimeout(i.current)},[]);const s=l.useCallback((u,d)=>{i.current&&clearTimeout(i.current),i.current=setTimeout(()=>{a(u),n(d)},e)},[e]),c=l.useCallback(()=>{i.current&&clearTimeout(i.current),a(null),n(null)},[]);return{payload:t,anchorRect:r,openAfterDelay:s,close:c}}function Ch(e,t,a){const r=Number.isFinite(t)&&t>=1?Math.floor(t):1,n=Math.max(1,Math.ceil(e.length/r)),i=Number.isFinite(a)?Math.min(Math.max(1,Math.floor(a)),n):1;return{pageItems:l.useMemo(()=>e.slice((i-1)*r,i*r),[e,i,r]),totalPages:n,curPage:i}}function mn(e="warning"){const[t,a]=l.useState(""),[r,n]=l.useState(e),[i,s]=l.useState(0),c=l.useCallback((m,h)=>{n(h),a(m),s(g=>g+1)},[]),u=l.useCallback(m=>c(m,"warning"),[c]),d=l.useCallback(m=>c(m,"normal"),[c]),p=l.useCallback(()=>a(""),[]);return{toastMessage:t,toastType:r,toastKey:i,showToast:c,showWarning:u,showNormal:d,clearToast:p}}const ur={blue:"#60A5FA",green:"#4ADE80",amber:"#FBBF24",purple:"#A78BFA",pink:"#F472B6"},pr=ur.blue,bn=ur.green,hr=ur.amber,gn=ur.purple,b5=ur.pink,g5=[{key:"discrimination",label:"\uBCC0\uBCC4\uD6C8\uB828",disc:"\uB450 \uC18C\uB9AC\uAC00 \uAC19\uC740\uC9C0 \uB2E4\uB978\uC9C0, \uB610\uB294 \uD2B9\uC815 \uC18C\uB9AC\uB97C \uAD6C\uBCC4\uD558\uB294 \uD6C8\uB828\uC785\uB2C8\uB2E4.",icon:"ear",types:[{key:"SAME_SOUND_PICK",label:"\uAC19\uC740 \uC18C\uB9AC \uACE0\uB974\uAE30",icon:"volume-2",color:pr,subTitle:"\uB4E4\uC740 \uC18C\uB9AC\uC640 \uAC19\uC740 \uB2E8\uC5B4 \uCE74\uB4DC\uB97C \uACE0\uB974\uC138\uC694."},{key:"SAME_OR_DIFF",label:"\uAC19\uC740\uC9C0 \uB2E4\uB978\uC9C0 \uB9DE\uD788\uAE30",icon:"diff",color:pr,subTitle:"\uB450 \uC18C\uB9AC\uAC00 \uAC19\uC740\uC9C0, \uB2E4\uB978\uC9C0 \uAD6C\uBD84\uD558\uC138\uC694."},{key:"HEAR_AND_PICK_SAME",label:"\uC77C\uCE58\uD558\uB294 \uB2E8\uC5B4 \uB9DE\uD788\uAE30",icon:"headphones",color:pr,subTitle:"\uB4E4\uC740 \uC18C\uB9AC\uC758 \uB2E8\uC5B4 \uCE74\uB4DC\uB97C \uACE0\uB974\uC138\uC694."},{key:"HEAR_AND_PICK_INCLUDED",label:"\uD55C \uC74C\uC808 \uD3EC\uD568 \uB2E8\uC5B4 \uB9DE\uD788\uAE30",icon:"scan-search",color:pr,subTitle:"\uB4E4\uC740 \uC74C\uC808\uC774 \uD3EC\uD568\uB41C \uB2E8\uC5B4 \uCE74\uB4DC\uB97C \uACE0\uB974\uC138\uC694."},{key:"STARTS_WITH_SAME_SOUND",label:"\uCCAB \uC74C\uC808\uC774 \uAC19\uC740 \uB2E8\uC5B4 \uB9DE\uD788\uAE30",icon:"play-circle",color:pr,subTitle:"\uB4E4\uC740 \uB2E8\uC5B4\uC640 \uAC19\uC740 \uC18C\uB9AC\uB85C \uC2DC\uC791\uD558\uB294 \uB2E8\uC5B4\uB97C \uACE0\uB974\uC138\uC694."}]},{key:"synthesis",label:"\uD569\uC131\uD6C8\uB828",disc:"\uB450 \uAC1C \uC774\uC0C1\uC758 \uC74C\uC808\uC774\uB098 \uC74C\uC18C\uB97C \uD569\uCCD0 \uB2E8\uC5B4\uB97C \uB9CC\uB4DC\uB294 \uD6C8\uB828\uC785\uB2C8\uB2E4.",icon:"git-merge",types:[{key:"MERGE_2_SYLLABLES",label:"\uC74C\uC808 2\uAC1C \uD569\uCE58\uAE30",icon:"link-2",color:bn,subTitle:"\uB450 \uC74C\uC808\uC744 \uD569\uCE58\uBA74 \uC5B4\uB5A4 \uB2E8\uC5B4\uAC00 \uB420\uAE4C\uC694?"},{key:"MERGE_3_SYLLABLES",label:"\uC74C\uC808 3\uAC1C \uD569\uCE58\uAE30",icon:"git-merge",color:bn,subTitle:"\uC138 \uC74C\uC808\uC744 \uD569\uCE58\uBA74 \uC5B4\uB5A4 \uB2E8\uC5B4\uAC00 \uB420\uAE4C\uC694?"},{key:"MERGE_2_PHONEMES",label:"\uC74C\uC18C 2\uAC1C \uD569\uCE58\uAE30",icon:"combine",color:bn,subTitle:"\uB450 \uC74C\uC18C\uB97C \uD569\uCE58\uBA74 \uC5B4\uB5A4 \uC18C\uB9AC\uAC00 \uB420\uAE4C\uC694?"},{key:"MERGE_3_PHONEMES",label:"\uC74C\uC18C 3\uAC1C \uD569\uCE58\uAE30",icon:"braces",color:bn,subTitle:"\uC138 \uC74C\uC18C\uB97C \uD569\uCE58\uBA74 \uC5B4\uB5A4 \uC18C\uB9AC\uAC00 \uB420\uAE4C\uC694?"}]},{key:"deletion",label:"\uD0C8\uB77D\uD6C8\uB828",disc:"\uB2E8\uC5B4\uC5D0\uC11C \uC74C\uC808\uC774\uB098 \uC74C\uC18C\uB97C \uC81C\uAC70\uD588\uC744 \uB54C \uB0A8\uB294 \uC18C\uB9AC\uB97C \uC778\uC2DD\uD558\uB294 \uD6C8\uB828\uC785\uB2C8\uB2E4.",icon:"scissors",types:[{key:"DROP_1_FROM_2SYLL",label:"2\uC74C\uC808\uC5D0\uC11C 1\uC74C\uC808 \uD0C8\uB77D",icon:"scissors",color:hr,subTitle:"2\uC74C\uC808 \uB2E8\uC5B4\uC5D0\uC11C \uD55C \uC74C\uC808\uC744 \uBE7C\uBA74 \uC5B4\uB5A4 \uC18C\uB9AC\uAC00 \uB420\uAE4C\uC694?"},{key:"DROP_1_FROM_3SYLL",label:"3\uC74C\uC808\uC5D0\uC11C 1\uC74C\uC808 \uD0C8\uB77D",icon:"minus-circle",color:hr,subTitle:"3\uC74C\uC808 \uB2E8\uC5B4\uC5D0\uC11C \uD55C \uC74C\uC808\uC744 \uBE7C\uBA74 \uC5B4\uB5A4 \uC18C\uB9AC\uAC00 \uB420\uAE4C\uC694?"},{key:"DROP_PART_FROM_COMPOUND",label:"\uD569\uC131\uC5B4\uC5D0\uC11C \uBD80\uBD84\uD0C8\uB77D",icon:"unlink",color:hr,subTitle:"\uD569\uC131\uC5B4\uC758 \uC77C\uBD80\uB97C \uBE7C\uBA74 \uC5B4\uB5A4 \uB2E8\uC5B4\uAC00 \uB420\uAE4C\uC694?"},{key:"DROP_FINAL_CONSONANT_FROM_1SYLL",label:"1\uC74C\uC808\uC5D0\uC11C \uBC1B\uCE68 \uD0C8\uB77D",icon:"eraser",color:hr,subTitle:"\uBC1B\uCE68\uC744 \uBE7C\uBA74 \uC5B4\uB5A4 \uC18C\uB9AC\uAC00 \uB420\uAE4C\uC694?"},{key:"REMOVE_CONSONANT_AND_IDENTIFY_PHONEME",label:"1\uC74C\uC808\uC5D0\uC11C \uC790\uC74C \uD0C8\uB77D",icon:"audio-lines",color:hr,subTitle:"\uC790\uC74C\uC744 \uBE7C\uBA74 \uC5B4\uB5A4 \uC18C\uB9AC\uAC00 \uB0A8\uC744\uAE4C\uC694?"}]},{key:"substitution",label:"\uB300\uCE58\uD6C8\uB828",disc:"\uB2E8\uC5B4\uC758 \uC77C\uBD80 \uC74C\uC808\uC774\uB098 \uC74C\uC18C\uB97C \uBC14\uAFB8\uC5B4 \uC0C8\uB85C\uC6B4 \uC18C\uB9AC\uB97C \uB9CC\uB4DC\uB294 \uD6C8\uB828\uC785\uB2C8\uB2E4.",icon:"replace",types:[{key:"CHANGE_1_SYLL_IN_2SYLL",label:"2\uC74C\uC808\uC5D0\uC11C \uD55C \uC74C\uC808 \uBC14\uAFB8\uAE30",icon:"replace",color:gn,subTitle:"2\uC74C\uC808 \uB2E8\uC5B4\uC758 \uD55C \uC74C\uC808\uC744 \uBC14\uAFD4 \uC0C8 \uB2E8\uC5B4\uB97C \uB9CC\uB4DC\uC138\uC694."},{key:"CHANGE_1_SYLL_IN_3SYLL",label:"3\uC74C\uC808\uC5D0\uC11C \uD55C \uC74C\uC808 \uBC14\uAFB8\uAE30",icon:"shuffle",color:gn,subTitle:"3\uC74C\uC808 \uB2E8\uC5B4\uC758 \uD55C \uC74C\uC808\uC744 \uBC14\uAFD4 \uC0C8 \uB2E8\uC5B4\uB97C \uB9CC\uB4DC\uC138\uC694."},{key:"CHANGE_1_PHONEME_IN_1SYLL",label:"1\uC74C\uC808\uC5D0\uC11C \uD55C \uC74C\uC18C \uBC14\uAFB8\uAE30",icon:"arrow-right-left",color:gn,subTitle:"1\uC74C\uC808 \uB2E8\uC5B4\uC758 \uD55C \uC74C\uC18C\uB97C \uBC14\uAFD4 \uC0C8 \uC18C\uB9AC\uB97C \uB9CC\uB4DC\uC138\uC694."},{key:"CHANGE_1_PHONEME_IN_2SYLL",label:"2\uC74C\uC808\uC5D0\uC11C \uD55C \uC74C\uC18C \uBC14\uAFB8\uAE30",icon:"flip-horizontal",color:gn,subTitle:"2\uC74C\uC808 \uB2E8\uC5B4\uC758 \uD55C \uC74C\uC18C\uB97C \uBC14\uAFD4 \uC0C8 \uB2E8\uC5B4\uB97C \uB9CC\uB4DC\uC138\uC694."}]},{key:"attention",label:"\uCCAD\uAC01\uC801\uC8FC\uC758\uB825\uD6C8\uB828",disc:"\uC5EC\uB7EC \uC18C\uB9AC\uB97C \uB4E3\uACE0 \uC21C\uC11C\uB97C \uAE30\uC5B5\uD558\uB294 \uC8FC\uC758\uB825\uACFC \uB2E8\uAE30 \uAE30\uC5B5 \uD6C8\uB828\uC785\uB2C8\uB2E4.",icon:"list-ordered",types:[{key:"LISTEN_AND_REMEMBER_ORDER",label:"\uB4E3\uACE0 \uC21C\uC11C\uB300\uB85C \uAE30\uC5B5\uD558\uAE30",icon:"list-ordered",color:b5,subTitle:"\uC138 \uB2E8\uC5B4\uB97C \uB4E4\uC740 \uC21C\uC11C\uB300\uB85C \uCE74\uB4DC\uB97C \uC120\uD0DD\uD558\uC138\uC694."}]}];function _h(){const{t:e}=ge.useTranslation();return l.useMemo(()=>{const t=Object.fromEntries(Qw(e).map(r=>[r.key,r.label])),a={...t};return g5.flatMap(r=>r.types).forEach(r=>{a[r.key]=e(`trainingType.${r.key}.label`,{defaultValue:r.label})}),{sentence:t,all:a}},[e])}function ao({computeStyle:e,onScroll:t="close",onResize:a="close",ignoreOutsideClickSelector:r}){const[n,i]=l.useState(!1),[s,c]=l.useState({}),u=l.useRef(null),d=l.useRef(null),p=l.useCallback(()=>{u.current&&c(e(u.current.getBoundingClientRect()))},[e]);l.useEffect(()=>{if(!n)return;p();const g=v=>{const C=v.target;r&&C.closest?.(r)||u.current?.contains(C)||d.current?.contains(C)||i(!1)};document.addEventListener("mousedown",g);const f=v=>{d.current?.contains(v.target)||(t==="reposition"?p():t==="close"&&i(!1))};t!=="ignore"&&window.addEventListener("scroll",f,!0);const b=()=>{a==="reposition"?p():a==="close"&&i(!1)};a!=="ignore"&&window.addEventListener("resize",b);const y=v=>{v.key==="Escape"&&i(!1)};return document.addEventListener("keydown",y),()=>{document.removeEventListener("mousedown",g),t!=="ignore"&&window.removeEventListener("scroll",f,!0),a!=="ignore"&&window.removeEventListener("resize",b),document.removeEventListener("keydown",y)}},[n,p,t,a,r]);const m=l.useCallback(()=>i(g=>!g),[]),h=l.useCallback(()=>i(!1),[]);return{open:n,setOpen:i,toggle:m,close:h,style:s,triggerRef:u,menuRef:d}}function _l(e,{mode:t="playback",autoStart:a=!1,onPlaySpeaker:r,onComplete:n,playMs:i=1100,feedbackMs:s=1500}={}){const[c,u]=l.useState([]),[d,p]=l.useState(0),[m,h]=l.useState("idle"),[g,f]=l.useState(null),[b,y]=l.useState([]),[v,C]=l.useState(null),[w,x]=l.useState(0),S=l.useRef(0),_=l.useCallback(j=>{S.current=typeof j=="function"?j(S.current):j,x(S.current)},[]),k=l.useRef(r),N=l.useRef(n);l.useEffect(()=>{k.current=r,N.current=n},[r,n]);const A=l.useRef([]),D=()=>{A.current.forEach(clearTimeout),A.current=[]},H=(j,M)=>{A.current.push(setTimeout(M,j))};l.useEffect(()=>()=>D(),[]);const P=c[d]?.id??null,T=l.useCallback(()=>{D(),h("playing"),y([]),C(null),_(0);let j=0;e.forEach((M,$)=>{H(j,()=>{p($),f(M.id),k.current?.(M)}),H(j+1e3,()=>{f(null),y(W=>[...W,M.id])}),j+=1300}),H(j,()=>{h("done"),N.current?.({score:0,total:e.length})})},[e,_]),E=l.useCallback((j,M)=>{if(M>=j.length){h("done"),N.current?.({score:S.current,total:j.length});return}p(M),C(null),h("playing"),f(j[M].id),k.current?.(j[M]),H(i,()=>{f(null),h("waiting")})},[i]),L=l.useCallback(()=>{D();const j=He(e);u(j),_(0),y([]),E(j,0)},[e,E,_]),F=l.useCallback(()=>{t==="playback"?(u(e),T()):L()},[t,e,T,L]),te=l.useCallback(()=>{D(),h("idle"),f(null),y([]),C(null),p(0),_(0),u([])},[_]);l.useEffect(()=>{a?F():te()},[t,e.length,a]);const Z=l.useCallback(j=>{m!=="waiting"||t==="playback"||(C(j),j===c[d]?.id&&_(M=>M+1),t==="exam"?(h("playing"),H(400,()=>E(c,d+1))):(h("feedback"),H(s,()=>E(c,d+1))))},[m,t,c,d,E,s,_]),V=t==="playback"?e.length:c.length;return{bind:{activeSpeakerId:g,playedIds:b,selectedId:v,answerId:P,showFeedback:m==="feedback",clickable:m==="waiting",onSelectSpeaker:Z},index:d,total:V,score:w,phase:m,done:m==="done",start:F,reset:te}}var f5=Object.freeze({__proto__:null,CACHE_GROUPS:ol,CORE_VERSION:rn,DocumentTitleSuppressContext:tl,EMPTY_COMPOSITION:dn,MediaQueryOverrideContext:sn,NO_CODA:ra,SYLLABLE_MIN:na,VAP_PAGE_SIZE_OPTIONS:nl,buildGradeSection:cl,buildPartOfSpeechSection:dl,buildPositionSection:rh,buildSelectSection:oh,buildSyllableSection:ah,buildWordTypeSection:ul,charToPronValue:gl,convertComposition:vl,fmtBytes:Yp,lsBytes:rl,meaningKey:hn,pronToCharValue:fl,syllableToFilter:cn,today:_o,toggleAttributeFilter:nh,useAnchoredMenu:ao,useCacheManagement:Up,useDailyTrainingSelection:gh,useDelayedHoverAnchor:xh,useDeviceManagement:th,useDocumentTitle:al,useEscToClose:vh,useFontScale:nn,useHoverAnchor:ko,useMediaQuery:oa,usePagedList:Ch,usePasswordChange:qp,useRelativeDay:Gp,useSoundCompassExam:_l,useTablePaging:il,useTableSort:sl,useToastState:mn,useTrainingTypeLabels:_h,useVisitAllPanel:eh,useVisitHistory:Xp,useVisitSchedule:Jp,useWindowEvent:dr,useWordAttributeFilterKeys:ll,useWordDataStats:Kp,useWordMeanings:yh,useWordTrainingDataGeneration:hh,useWordTrainingFilter:ph,valueToJamos:ba}),v5=".ihabdevteam-core-scope .promo-banner{align-items:center;border-radius:var(--radius-s);box-sizing:border-box;display:flex;gap:var(--spacing-m);justify-content:space-between;overflow:hidden;position:relative;text-align:left}.ihabdevteam-core-scope .promo-banner--medium{min-height:120px;padding:20px 24px}.ihabdevteam-core-scope .promo-banner--small{padding:14px 16px}.ihabdevteam-core-scope .promo-banner__title{color:inherit;color:var(--promo-banner-bg-title,inherit)}.ihabdevteam-core-scope .promo-banner__description{color:inherit;color:var(--promo-banner-bg-description,inherit)}.ihabdevteam-core-scope .promo-banner__text{display:flex;flex-direction:column;justify-content:center;min-width:0;position:relative;z-index:1}.ihabdevteam-core-scope .promo-banner__description{margin-left:2px;margin-top:1px}.ihabdevteam-core-scope .promo-banner>.button{flex-shrink:0;position:relative;z-index:1}";J(v5);function wh({title:e,description:t,actionLabel:a,onAction:r,bg:n,color:i,size:s="medium",actionVariant:c,titleColor:u,descriptionColor:d,className:p=""}){const m=n??i??"main",h=l.useRef(null),[g,f]=l.useState("main"),b=oa("(max-width: 767px)");l.useLayoutEffect(()=>{const C=h.current;C&&(u!==void 0&&C.style.setProperty("--promo-banner-bg-title",u),d!==void 0&&C.style.setProperty("--promo-banner-bg-description",d))},[u,d]),l.useLayoutEffect(()=>{const C=h.current;if(!C)return;const w=ws(C);f(w?.actionVariant??"main")},[m]);const y=xe("promo-banner",`promo-banner--${s}`,p),v=Qs[m];return o.jsxs("div",{ref:h,className:y,role:"note",children:[o.jsx(v,{}),o.jsxs("div",{className:"promo-banner__text",children:[o.jsx("span",{className:`promo-banner__title ${s==="small"?"body-2":"h2"}`,children:e}),t&&o.jsx("span",{className:"promo-banner__description body-3",children:t})]}),a&&r&&o.jsx(se,{size:40,variant:c??g,shape:"pill",useBorder:!0,onClick:r,ariaLabel:a,...b?{type:"dot",icon:"arrow-right"}:{rightIcon:"arrow-right",label:a,minWidth:140}})]})}var y5='.ihabdevteam-core-scope .top-banner{--top-banner-min-h:120px;display:flex;flex-direction:column;padding-bottom:var(--spacing-page);position:relative}.ihabdevteam-core-scope .top-banner__viewport{border-radius:var(--radius-m);min-height:var(--top-banner-min-h);overflow:hidden}.ihabdevteam-core-scope .top-banner__track{align-items:stretch;display:flex;min-height:var(--top-banner-min-h);transition:transform .4s ease}.ihabdevteam-core-scope .top-banner__slide{flex:0 0 100%;min-width:0}.ihabdevteam-core-scope .top-banner__slide>*{box-sizing:border-box;min-height:100%;width:100%}.ihabdevteam-core-scope .top-banner__dots{bottom:calc(var(--spacing-page) + 12px);display:flex;gap:6px;left:50%;position:absolute;transform:translateX(-50%)}.ihabdevteam-core-scope .top-banner__dot{background:var(--color-white-a30);border:none;border-radius:3px;cursor:pointer;height:6px;padding:0;position:relative;transition:width .25s ease,background-color .25s ease;width:6px}.ihabdevteam-core-scope .top-banner__dot:after{content:"";height:24px;left:50%;position:absolute;top:50%;transform:translate(-50%,-50%);width:calc(100% + 6px)}.ihabdevteam-core-scope .top-banner__dot--active{background:var(--color-white);width:18px}.ihabdevteam-core-scope .top-banner__dots--dark .top-banner__dot{background:var(--color-lightGray-a80)}.ihabdevteam-core-scope .top-banner__dots--dark .top-banner__dot--active{background:var(--color-main)}';J(y5);function kh({children:e,interval:t=5e3,dotTone:a,className:r="","aria-label":n}){const{t:i}=ge.useTranslation(),s=n??i("topBanner.ariaLabel","\uBC30\uB108"),c=l.Children.toArray(e),u=c.length,[d,p]=l.useState(0),[m,h]=l.useState(!1),g=u>0?d%u:0;return l.useEffect(()=>{if(u<2||t<=0||m)return;const f=window.setInterval(()=>p(b=>(b+1)%u),t);return()=>window.clearInterval(f)},[u,t,m]),u===0?null:o.jsxs("section",{className:xe("top-banner",r),"aria-label":s,"aria-roledescription":"carousel",onMouseEnter:()=>h(!0),onMouseLeave:()=>h(!1),onFocus:()=>h(!0),onBlur:()=>h(!1),children:[o.jsx("div",{className:"top-banner__viewport",children:o.jsx("div",{className:"top-banner__track",style:{transform:`translateX(-${g*100}%)`},children:c.map((f,b)=>o.jsx("div",{className:"top-banner__slide","aria-hidden":b!==g,...b!==g?{inert:!0}:{},children:f},b))})}),u>1&&o.jsx("div",{className:`top-banner__dots${(a?.[g]??"light")==="dark"?" top-banner__dots--dark":""}`,children:c.map((f,b)=>o.jsx("button",{type:"button",className:`top-banner__dot${b===g?" top-banner__dot--active":""}`,"aria-label":i("topBanner.dotAriaLabel",{count:u,index:b+1,defaultValue:`${u}\uAC1C \uC911 ${b+1}\uBC88\uC9F8 \uBC30\uB108`}),"aria-current":b===g,onClick:()=>p(b)},b))})]})}var x5=".ihabdevteam-core-scope .accordion-item{background:transparent;border-radius:var(--radius-m)}.ihabdevteam-core-scope .accordion-item__header{align-items:center;background:var(--color-deepWhite);border:1px solid var(--color-whiteLine);border-radius:var(--radius-m);box-sizing:border-box;cursor:pointer;display:flex;gap:var(--spacing-s);min-height:56px;outline:none;padding:0 20px;transition:background-color .2s ease,border-color .2s ease}.ihabdevteam-core-scope .accordion-item__header:hover{background:var(--color-deepWhite);border-color:var(--color-main)}.ihabdevteam-core-scope .accordion-item__header:focus-visible{outline:2px solid var(--color-main);outline-offset:2px}.ihabdevteam-core-scope .accordion-item__avatar{align-items:center;display:inline-flex;flex:none}.ihabdevteam-core-scope .accordion-item__title{flex:1;text-align:left}.ihabdevteam-core-scope .accordion-item__chevron{align-items:center;display:inline-flex;flex:none}.ihabdevteam-core-scope .accordion-item__chevron-icon{align-items:center;color:var(--color-lightGray);display:inline-flex}.ihabdevteam-core-scope .accordion-item__chevron-image{height:18px;opacity:.7;transition:transform .18s ease;width:18px}.ihabdevteam-core-scope .accordion-item.accordion-item--open{background:var(--color-main-a10);border-radius:var(--radius-m);overflow:hidden}.ihabdevteam-core-scope .accordion-item.accordion-item--open .accordion-item__header{background:var(--color-white);border:1px solid var(--color-main)}.ihabdevteam-core-scope .accordion-item.accordion-item--open .accordion-item__chevron-image{transform:rotate(180deg)}.ihabdevteam-core-scope .accordion-item__body p{margin:0}.ihabdevteam-core-scope .accordion-item__body{background:transparent;box-sizing:border-box;color:var(--color-darkGray);max-width:100%;overflow-wrap:break-word;padding:40px 32px;text-align:left;word-break:break-word}.ihabdevteam-core-scope .accordion-group--s48 .accordion-item__header{min-height:48px}.ihabdevteam-core-scope .accordion-group--s56 .accordion-item__header{min-height:56px}.ihabdevteam-core-scope .accordion-group--s72 .accordion-item__header{min-height:72px}.ihabdevteam-core-scope .accordion-group--s48 .accordion-item,.ihabdevteam-core-scope .accordion-group--s48 .accordion-item.accordion-item--open,.ihabdevteam-core-scope .accordion-group--s48 .accordion-item__header{border-radius:12px}.ihabdevteam-core-scope .accordion-group--s56 .accordion-item,.ihabdevteam-core-scope .accordion-group--s56 .accordion-item.accordion-item--open,.ihabdevteam-core-scope .accordion-group--s56 .accordion-item__header{border-radius:14px}.ihabdevteam-core-scope .accordion-group--s72 .accordion-item,.ihabdevteam-core-scope .accordion-group--s72 .accordion-item.accordion-item--open,.ihabdevteam-core-scope .accordion-group--s72 .accordion-item__header{border-radius:18px}.ihabdevteam-core-scope .accordion-group,.ihabdevteam-core-scope .accordion-group>.accordion-item{box-sizing:border-box;display:block;width:100%}.ihabdevteam-core-scope .accordion-group>.accordion-item+.accordion-item{margin-top:var(--spacing-s)}";J(x5);function C5({title:e,body:t,open:a=!1,onToggle:r,avatar:n,titleClassName:i="body-2",bodyClassName:s="body-2",className:c=""}){const{t:u}=ge.useTranslation();return o.jsxs("div",{className:`accordion-item ${a?"accordion-item--open":""} ${c}`.trim(),children:[o.jsxs("div",{className:"accordion-item__header",role:"button",tabIndex:0,"aria-expanded":a,"data-accordion-header":!0,onClick:r,onKeyDown:d=>{if(d.key==="Enter"||d.key===" ")d.preventDefault(),r?.();else if(d.key==="ArrowDown"||d.key==="ArrowUp"){d.preventDefault();const p=d.currentTarget.closest('[role="list"]');if(!p)return;const m=Array.from(p.querySelectorAll("[data-accordion-header]")),h=m.indexOf(d.currentTarget);(d.key==="ArrowDown"?m[h+1]:m[h-1])?.focus()}},children:[n&&o.jsx("div",{className:"accordion-item__avatar",children:n}),o.jsx("div",{className:`accordion-item__title ${i}`,children:e}),o.jsx("div",{className:"accordion-item__chevron",children:o.jsx(Ie,{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&&o.jsx("div",{className:`accordion-item__body ${s}`,children:typeof t=="string"?o.jsx("p",{children:t}):t})]})}function Sh({items:e=[],defaultOpenIndex:t=0,size:a=72,className:r="",bodyClassName:n}){const[i,s]=l.useState(t);return o.jsx("div",{className:`accordion-group accordion-group--s${a} ${r}`.trim(),role:"list",children:e.map((c,u)=>o.jsx(C5,{title:c.title,body:c.body,avatar:c.avatar,open:u===i,onToggle:()=>s(u===i?-1:u),bodyClassName:n},u))})}var _5=".ihabdevteam-core-scope .bottom-nav{align-items:flex-start;background:var(--color-deepWhite);border-top:1px solid var(--color-whiteLine);bottom:0;display:none;height:calc(72px + env(safe-area-inset-bottom));left:0;padding:8px calc(10px + env(safe-area-inset-right)) env(safe-area-inset-bottom) calc(10px + env(safe-area-inset-left));position:fixed;right:0;z-index:var(--z-nav)}.ihabdevteam-core-scope .bottom-nav__left{align-items:center;display:flex;flex-shrink:0}.ihabdevteam-core-scope .bottom-nav__divider{align-self:flex-start;background:var(--color-whiteLine);border-radius:1px;flex-shrink:0;height:24px;margin:14px 0 0;width:1px}.ihabdevteam-core-scope .bottom-nav__items{align-items:center;display:flex;flex:1;gap:10px;justify-content:center;overflow:hidden}.ihabdevteam-core-scope .bottom-nav__right{align-items:center;display:flex;flex-shrink:0}@media (max-width:767px){.ihabdevteam-core-scope .bottom-nav{display:flex}}@media (min-width:768px){.ihabdevteam-core-scope .bottom-nav{display:none}}.ihabdevteam-core-scope .bottom-nav-item{align-items:center;background:transparent!important;border:none!important;border-radius:10px!important;color:var(--color-lightGray);cursor:pointer;display:flex!important;flex-direction:column;height:52px!important;justify-content:center;padding:0!important;transition:background .16s ease,color .16s ease!important;width:52px!important}.ihabdevteam-core-scope .bottom-nav-item:hover:not(.is-selected){background:var(--color-darkWhite)!important}.ihabdevteam-core-scope .bottom-nav-item.is-selected{animation:bottom-nav-active-bg .36s cubic-bezier(.4,0,.2,1) forwards;background-color:var(--color-sub)!important;box-shadow:0 6px 12px rgba(12,24,36,.06);color:#fff!important}.ihabdevteam-core-scope .bottom-nav-item.is-selected *{color:#fff!important}.ihabdevteam-core-scope .bottom-nav-item:focus-visible{outline:2px solid var(--focus-ring);outline-offset:2px}.ihabdevteam-core-scope .bottom-nav-item:disabled,.ihabdevteam-core-scope .bottom-nav-item[disabled]{opacity:.6;pointer-events:none}@keyframes bottom-nav-active-bg{0%{background-color:var(--color-sub)}to{background-color:var(--color-main)}}";J(_5);var w5=".ihabdevteam-core-scope .badge{align-items:center;background:var(--badge-color,var(--color-main));border-radius:999px;box-shadow:none;box-shadow:var(--badge-shadow,none);color:#fff;color:var(--badge-on-color,#fff);display:inline-flex;gap:6px;justify-content:center;line-height:1;vertical-align:middle;white-space:nowrap}.ihabdevteam-core-scope .badge--small{font-size:12px;height:20px;padding:0 10px}.ihabdevteam-core-scope .badge--medium{font-size:14px;height:28px;padding:0 14px}.ihabdevteam-core-scope .badge--large{font-size:16px;height:32px;padding:0 18px}.ihabdevteam-core-scope .badge__icon{align-items:center;display:inline-flex;flex-shrink:0}.ihabdevteam-core-scope .badge--default{--badge-color:var(--color-lightGray);--badge-on-color:#fff}.ihabdevteam-core-scope .badge--main{--badge-color:var(--color-main);--badge-on-color:#fff}.ihabdevteam-core-scope .badge--sub{--badge-color:var(--color-sub);--badge-on-color:#fff}.ihabdevteam-core-scope .badge--danger{--badge-color:var(--color-error);--badge-on-color:#fff}.ihabdevteam-core-scope .badge--disabled{--badge-color:var(--color-disabled);--badge-on-color:#fff}.ihabdevteam-core-scope .badge--like{--badge-color:var(--color-like);--badge-on-color:#fff}.ihabdevteam-core-scope .badge--success{--badge-color:var(--color-success);--badge-on-color:#fff}.ihabdevteam-core-scope .badge--warning{--badge-color:var(--color-warn);--badge-on-color:#fff}.ihabdevteam-core-scope .badge--critical{--badge-color:#7c3aed;--badge-on-color:#fff}.ihabdevteam-core-scope .badge--outline{background:transparent;border:1px solid var(--badge-color);box-shadow:none;color:var(--badge-color)}.ihabdevteam-core-scope .badge--soft{background:color-mix(in srgb,var(--badge-color) 10%,transparent);box-shadow:none;color:var(--badge-color)}.ihabdevteam-core-scope .circle-badge{align-items:center;border:2px solid var(--color-pureWhite);border-radius:50%;box-sizing:border-box;display:inline-flex;flex-shrink:0;font-weight:700;justify-content:center;line-height:1;pointer-events:none;position:absolute;transition:background .12s,transform .12s;-webkit-user-select:none;-moz-user-select:none;user-select:none;z-index:1}@keyframes circle-badge-pop{0%{opacity:0;transform:scale(.3)}60%{opacity:1;transform:scale(1.12)}to{opacity:1;transform:scale(1)}}.ihabdevteam-core-scope .circle-badge--animate{animation:circle-badge-pop .24s cubic-bezier(.34,1.56,.64,1)}@media (prefers-reduced-motion:reduce){.ihabdevteam-core-scope .circle-badge--animate{animation:none}}.ihabdevteam-core-scope .circle-badge--clickable{cursor:pointer;pointer-events:auto}.ihabdevteam-core-scope .circle-badge--clickable:hover{transform:scale(1.12)}.ihabdevteam-core-scope .circle-badge--top-right{right:-6px;top:-6px}.ihabdevteam-core-scope .circle-badge--top-left{left:-6px;top:-6px}.ihabdevteam-core-scope .circle-badge--inline{border:none;position:static}.ihabdevteam-core-scope .circle-badge--24{border-width:1px;font-size:11px;height:24px;width:24px}.ihabdevteam-core-scope .circle-badge--32{border-width:2px;font-size:14px;height:32px;width:32px}.ihabdevteam-core-scope .circle-badge--40{border-width:2px;font-size:16px;height:40px;width:40px}.ihabdevteam-core-scope .circle-badge--check,.ihabdevteam-core-scope .circle-badge--number{background:var(--color-main);color:#fff}.ihabdevteam-core-scope .circle-badge--remove{background:var(--color-error);color:#fff}.ihabdevteam-core-scope .circle-badge--minus{background:var(--color-lightGray);color:#fff}.ihabdevteam-core-scope .circle-badge--24 svg{height:11px;width:11px}.ihabdevteam-core-scope .circle-badge--32 svg{height:15px;width:15px}.ihabdevteam-core-scope .circle-badge--40 svg{height:19px;width:19px}";J(w5);function k5(){return o.jsx("svg",{viewBox:"0 0 12 12",fill:"none",stroke:"currentColor",strokeWidth:2.2,strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:o.jsx("polyline",{points:"2,6 5,9 10,3"})})}function S5(){return o.jsxs("svg",{viewBox:"0 0 12 12",fill:"none",stroke:"currentColor",strokeWidth:2.2,strokeLinecap:"round","aria-hidden":"true",children:[o.jsx("line",{x1:"3",y1:"3",x2:"9",y2:"9"}),o.jsx("line",{x1:"9",y1:"3",x2:"3",y2:"9"})]})}function A5(){return o.jsx("svg",{viewBox:"0 0 12 12",fill:"none",stroke:"currentColor",strokeWidth:2.2,strokeLinecap:"round","aria-hidden":"true",children:o.jsx("line",{x1:"2.5",y1:"6",x2:"9.5",y2:"6"})})}function ht(e){const{type:t="bar",size:a,className:r="","aria-label":n}=e;if(t==="dot"){const{icon:w,number:x,position:S="top-right",onClick:_,animate:k=!1}=e,N=x!==void 0?"number":w??"check",A=typeof a=="number"?a:32,D=xe("circle-badge",`circle-badge--${N}`,`circle-badge--${S}`,`circle-badge--${A}`,k?"circle-badge--animate":"",_?"circle-badge--clickable":"",r),H=x!==void 0?`${x}\uBC88\uC9F8 \uC120\uD0DD`:{check:"\uC120\uD0DD\uB428",remove:"\uC81C\uAC70",minus:"\uC81C\uC678"}[w??"check"];return o.jsxs("span",{className:D,onClick:_,onKeyDown:_?P=>{P.key!=="Enter"&&P.key!==" "||(P.preventDefault(),P.currentTarget.click())}:void 0,"aria-label":n??H,role:_?"button":void 0,tabIndex:_?0:void 0,children:[x!==void 0&&x,x===void 0&&w==="check"&&o.jsx(k5,{}),x===void 0&&w==="remove"&&o.jsx(S5,{}),x===void 0&&w==="minus"&&o.jsx(A5,{})]})}const{label:i,children:s,variant:c="default",fill:u="filled",minWidth:d,iconLeft:p,iconRight:m,color:h}=e,g=typeof a=="number"?"medium":a??"medium",f={small:"caption-2b",medium:"body-3b",large:"body-2b"}[g]??"body-2b",b={small:12,medium:14,large:16}[g]??14,y=xe("badge",`badge--${c}`,`badge--${g}`,u!=="filled"?`badge--${u}`:"",f,r),v=h?.startsWith("--")?`var(${h})`:h,C=d!==void 0||v?{...d!==void 0?{minWidth:typeof d=="number"?`${d}px`:d}:{},...v?{"--badge-color":v}:{}}:void 0;return o.jsxs("span",{className:y,style:C,children:[p&&o.jsx(Ie,{icon:p,size:b,className:"badge__icon"}),i??s,m&&o.jsx(Ie,{icon:m,size:b,className:"badge__icon"})]})}var T5=".ihabdevteam-core-scope .tooltip-menu{display:flex;flex-direction:column;gap:var(--spacing-xs);min-width:160px;padding:var(--spacing-xs)}.ihabdevteam-core-scope .tooltip-menu__header{align-items:center;border-bottom:1px solid var(--color-darkWhite);display:flex;gap:var(--spacing-xs);height:52px;padding:8px 12px}.ihabdevteam-core-scope .tooltip-menu__title{font-weight:600}.ihabdevteam-core-scope .tooltip-menu__columns{display:flex;gap:var(--spacing-s);padding:4px}.ihabdevteam-core-scope .tooltip-menu__column{display:flex;flex:1;flex-direction:column;gap:var(--spacing-xs);min-width:0}.ihabdevteam-core-scope .tooltip-menu__column-title{color:var(--color-lightGray);margin-bottom:4px}.ihabdevteam-core-scope .tooltip-menu__items{display:flex;flex-direction:column;gap:var(--spacing-l)}.ihabdevteam-core-scope .tooltip-menu--small{gap:2px;min-width:140px}.ihabdevteam-core-scope .tooltip-menu--small .tooltip-menu__items{gap:var(--spacing-xs)}.ihabdevteam-core-scope .tooltip-menu--small .tooltip-menu__columns{gap:var(--spacing-xs);padding:2px}.ihabdevteam-core-scope .tooltip-menu--small .tooltip-menu__header{height:44px;padding:6px 10px}.ihabdevteam-core-scope .tooltip-menu__item{width:100%}.ihabdevteam-core-scope .tooltip-menu__item-icon{align-items:center;display:inline-flex;height:24px;justify-content:center;width:24px}.ihabdevteam-core-scope .tooltip-menu__label{flex:1}.ihabdevteam-core-scope .tooltip-menu__chev{align-items:center;display:inline-flex;justify-content:center;width:20px}@media (max-width:600px){.ihabdevteam-core-scope .tooltip-menu__columns{flex-direction:column}}";J(T5);function mr({columns:e=[],onClose:t,className:a="",size:r="medium"}){const{t:n}=ge.useTranslation(),i=r==="small"?40:48,[s,c]=l.useState([{title:null,columns:e}]),u=s[s.length-1];l.useEffect(()=>{c(f=>{try{if(!Array.isArray(f)||f.length===0)return[{title:null,columns:e}];const b=f.slice(),y=b[0]&&typeof b[0].title<"u"?b[0].title:null;return b[0]={title:y,columns:e},b}catch{return[{title:null,columns:e}]}})},[e]);const d=l.useCallback(()=>c(f=>f.length>1?f.slice(0,f.length-1):f),[]),p=l.useRef(null),m=l.useRef(null),h=s.length;l.useEffect(()=>{m.current||(m.current=document.activeElement);let f=0,b=0;const y=()=>{const v=p.current?.querySelector("button:not([disabled])");if(v&&v.offsetParent){v.focus({preventScroll:!0});return}b++<20&&(f=requestAnimationFrame(y))};return f=requestAnimationFrame(y),()=>cancelAnimationFrame(f)},[h]),l.useEffect(()=>()=>{m.current?.focus?.({preventScroll:!0})},[]);const g=l.useCallback(f=>{if(f){if(Array.isArray(f.children)&&f.children.length){c(b=>[...b,{title:f.label||null,columns:[{title:null,items:f.children||[]}]}]);return}try{typeof f.onClick=="function"&&f.onClick()}catch{}try{f&&f.closeOnSelect&&typeof t=="function"&&t()}catch{}}},[t]);return o.jsxs("div",{className:`tooltip-menu tooltip-menu--${r} ${a}`,children:[(s.length>1||u.title)&&o.jsxs("div",{className:"tooltip-menu__header",children:[s.length>1?o.jsx(se,{size:i,type:"dot",icon:"chevron-left",ariaLabel:n("common.back","\uB4A4\uB85C"),onClick:d,variant:"transparent-gray",useBorder:!1}):null,o.jsx("div",{className:"tooltip-menu__title button-1",children:u.title})]}),o.jsx("div",{className:"tooltip-menu__columns",ref:p,children:u.columns&&u.columns.map((f,b)=>o.jsxs("div",{className:"tooltip-menu__column",children:[f.title?o.jsx("div",{className:"tooltip-menu__column-title body-3",children:f.title}):null,o.jsx("div",{className:"tooltip-menu__items",children:(f.items||[]).map((y,v)=>o.jsx(se,{className:"tooltip-menu__item",size:i,type:y.label?"bar":"dot",icon:y.selected?"check":y.icon||"none",rightIcon:Array.isArray(y.children)&&y.children.length?"chevron-right":y.badgeCount?o.jsx(ht,{type:"dot",position:"inline",number:Math.min(y.badgeCount,99),size:24,"aria-label":`${y.badgeCount}`}):void 0,label:y.label,ariaLabel:y.label,onClick:()=>g(y),selected:y.selected,disabled:y.disabled,showTooltipInfo:y.tooltip||!1,useBorder:!1,align:"left"},v))})]},b))})]})}const B5=52,Ah=10;function wl({items:e=[],activeKey:t,onChange:a,appMode:r,onAppModeChange:n,moreItems:i=[]}){const{t:s}=ge.useTranslation(),c=r==="manager"?"malgwi":"manager",u=r==="manager"?"arrow-left":"arrow-right",d=r==="manager"?s("nav.modeLabelMalgwi","\uB9D0\uADC0"):s("nav.modeLabelManager","\uB9D0\uADC0 \uB9E4\uB2C8\uC800"),p=l.useRef(null),[m,h]=l.useState(0),g=e.length;l.useEffect(()=>{const E=p.current;if(!E||(h(E.clientWidth),typeof ResizeObserver>"u"))return;const L=new ResizeObserver(F=>h(F[0].contentRect.width));return L.observe(E),()=>L.disconnect()},[]);const f=m>0?Math.floor((m+Ah)/(B5+Ah)):g,b=m>0&&f<g,y=b?f:g,v=e.slice(0,y),C=e.slice(y),w=b||i.length>0,x=l.useCallback(E=>({position:"fixed",bottom:window.innerHeight-E.top+8,right:window.innerWidth-E.right,zIndex:1e4}),[]),{open:S,toggle:_,close:k,style:N,triggerRef:A,menuRef:D}=ao({computeStyle:x,onScroll:"ignore",onResize:"ignore"}),H=l.useCallback(()=>n?.(c),[n,c]),P=l.useMemo(()=>C.find(E=>E.key===t)??i.find(E=>E.selected||E.key&&E.key===t),[C,t,i]),T=l.useMemo(()=>[{items:[...C.map(E=>({label:E.label,icon:E.icon,selected:E.key===t,closeOnSelect:!0,onClick:()=>{E.key&&a&&a(E.key),k()}})),...i.map(E=>({label:E.label,icon:E.icon,badgeCount:E.badgeCount,selected:E.selected??(!!E.key&&E.key===t),closeOnSelect:!0,onClick:()=>{E.onClick?.(),k()}}))]}],[C,i,t,a,k]);return o.jsxs("nav",{className:"bottom-nav","aria-label":s("nav.bottomNav","\uD558\uB2E8 \uB124\uBE44\uAC8C\uC774\uC158"),children:[n&&o.jsxs(o.Fragment,{children:[o.jsx("div",{className:"bottom-nav__left",children:o.jsx(se,{size:52,type:"dot",icon:u,ariaLabel:d,className:"bottom-nav-item",onClick:H})}),o.jsx("div",{className:"bottom-nav__divider","aria-hidden":"true"})]}),o.jsx("div",{className:"bottom-nav__items",ref:p,children:v.map(E=>o.jsx(se,{size:52,type:"dot",icon:E.icon,ariaLabel:E.label,selected:E.key===t,disabled:E.state==="disabled",className:"bottom-nav-item",onClick:()=>E.key&&a?.(E.key)},E.key))}),w&&o.jsxs(o.Fragment,{children:[o.jsx("div",{className:"bottom-nav__divider","aria-hidden":"true"}),o.jsx("div",{className:"bottom-nav__right",children:o.jsxs("div",{ref:A,children:[o.jsx(se,{size:52,type:"dot",icon:P?.icon??"ellipsis",ariaLabel:P?.label??s("nav.more","\uB354\uBCF4\uAE30"),selected:!!P,className:"bottom-nav-item",onClick:_}),S&&qt.createPortal(o.jsx("div",{className:"tooltip-content",style:N,ref:D,children:o.jsx(mr,{columns:T,onClose:k})}),document.body)]})})]})]})}var N5=".ihabdevteam-core-scope .side-nav__menu{-webkit-overflow-scrolling:touch;background-clip:padding-box;border-right:1px solid transparent;display:flex;flex:1;flex-direction:column;min-height:0;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;padding:0 0 0 12px;scrollbar-color:var(--color-darkWhite) transparent;scrollbar-gutter:stable;scrollbar-width:thin}.ihabdevteam-core-scope .side-nav__menu::-webkit-scrollbar{width:4px}.ihabdevteam-core-scope .side-nav__menu::-webkit-scrollbar-track{background:transparent}.ihabdevteam-core-scope .side-nav__menu::-webkit-scrollbar-thumb{background:var(--color-darkWhite);border-radius:var(--radius-xs)}.ihabdevteam-core-scope .side-nav__menu::-webkit-scrollbar-thumb:hover{background:var(--color-lightGray,var(--color-lightGray))}.ihabdevteam-core-scope .side-nav__menu-list{display:flex;flex:1 0 auto;flex-direction:column;gap:4px;overflow:visible;padding:4px 0}.ihabdevteam-core-scope .side-nav__notification-wrap{align-self:flex-start;display:inline-flex;position:relative}.ihabdevteam-core-scope .side-nav__footer{align-items:left;display:flex;flex-direction:column;flex-shrink:0;gap:var(--spacing-s);margin-top:var(--spacing-s);padding:0 0 var(--spacing-s) 0}.ihabdevteam-core-scope .side-nav__separator{background:var(--color-whiteLine);height:1px;margin:0 var(--spacing-s) var(--spacing-xs)}.ihabdevteam-core-scope .side-nav__separator--short{margin:4px var(--spacing-m);width:var(--spacing-xl)}@media (max-width:767px){.ihabdevteam-core-scope .side-nav__footer,.ihabdevteam-core-scope .side-nav__menu{display:none}}.ihabdevteam-core-scope .side-nav__item{align-items:center;background:transparent;border:none;border-radius:var(--radius-s);box-sizing:border-box;color:var(--color-darkGray);cursor:pointer;display:flex;flex-shrink:0;font-family:var(--font-family);gap:var(--spacing-s);height:52px;justify-content:flex-start;padding:0 var(--spacing-m);text-align:left;width:100%}@keyframes ihabCoreSnSweep{0%{background-position:100% 0}to{background-position:0 0}}@keyframes ihabCoreSnIconBounce{0%{transform:scale(1)}40%{transform:scale(1.12)}to{transform:scale(1)}}.ihabdevteam-core-scope .side-nav__item.active{animation:ihabCoreSnSweep 1s cubic-bezier(.4,0,.2,1) forwards;background:linear-gradient(90deg,var(--color-main) 50%,var(--color-sub) 100%);background-position:0 0;background-size:200% 100%;box-shadow:var(--shadow-button);color:#fff}.ihabdevteam-core-scope .side-nav__item.active .side-nav__icon{animation:ihabCoreSnIconBounce .48s cubic-bezier(.4,0,.2,1) forwards;color:#fff}.ihabdevteam-core-scope .side-nav__icon{align-items:center;color:var(--color-lightGray);display:inline-flex;height:24px;justify-content:center;width:24px}.ihabdevteam-core-scope .side-nav__item.active .circle-badge{background:var(--color-pureWhite);color:var(--color-main)}.ihabdevteam-core-scope .side-nav__item .circle-badge--inline{border:1px solid var(--color-pureWhite)}.ihabdevteam-core-scope .side-nav__icon-wrap{display:inline-flex;flex:0 0 24px;position:relative}.ihabdevteam-core-scope .side-nav__icon{flex:0 0 24px}.ihabdevteam-core-scope .side-nav__icon img{display:block;height:20px;-o-object-fit:contain;object-fit:contain;width:20px}.ihabdevteam-core-scope .side-nav__icon-image{background-color:currentColor;background-position:50%;background-repeat:no-repeat;background-size:contain;display:inline-block;height:20px;-webkit-mask-image:var(--icon-url);mask-image:var(--icon-url);-webkit-mask-position:center;mask-position:center;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:contain;mask-size:contain;width:20px}.ihabdevteam-core-scope .side-nav__item .side-nav__icon img{filter:brightness(0) saturate(0) opacity(.45);transition:filter .16s ease,opacity .16s ease}.ihabdevteam-core-scope .side-nav__item.active .side-nav__icon img{filter:brightness(0) invert(1)}.ihabdevteam-core-scope .side-nav__label{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ihabdevteam-core-scope .side-nav__item{transition:background-color .16s ease,color .16s ease,transform 80ms ease}.ihabdevteam-core-scope .side-nav__item:focus-visible:not(.active),.ihabdevteam-core-scope .side-nav__item:focus:not(.active),.ihabdevteam-core-scope .side-nav__item:hover:not(.active){background:var(--color-darkWhite)}.ihabdevteam-core-scope .side-nav__item:focus-visible{outline:2px solid var(--focus-ring);outline-offset:2px}.ihabdevteam-core-scope .side-nav__item.disabled,.ihabdevteam-core-scope .side-nav__item.disabled:focus,.ihabdevteam-core-scope .side-nav__item.disabled:hover{background:transparent;color:var(--color-lightGray);cursor:default;opacity:.6;pointer-events:none;transform:none}.ihabdevteam-core-scope .side-nav__item.disabled .side-nav__icon{color:var(--color-lightGray)}.ihabdevteam-core-scope .side-nav__item.disabled .side-nav__icon img{filter:none;opacity:.8}.ihabdevteam-core-scope .side-nav__item--child{height:40px;padding-left:30px}.ihabdevteam-core-scope .side-nav__item--child .side-nav__icon{height:20px;width:20px}.ihabdevteam-core-scope .side-nav__item--child .side-nav__label{font-weight:400}";J(N5);function D5(e){const{t}=ge.useTranslation(),{activeKey:a,unreadCount:r,onDebug:n,onNotification:i,onSetting:s,onHelp:c,onAccount:u}=e||{},d="default";return o.jsxs("div",{className:"side-nav__footer",children:[n&&o.jsx(se,{size:48,showTooltipInfo:!0,type:"dot",shape:"pill",variant:d,icon:"terminal",ariaLabel:t("nav.debug","\uB514\uBC84\uADF8"),onClick:n,selected:a==="debug"}),o.jsxs("span",{className:"side-nav__notification-wrap",children:[o.jsx(se,{size:48,showTooltipInfo:!0,type:"dot",shape:"pill",variant:d,icon:"bell",ariaLabel:t("nav.notifications","\uC54C\uB9BC"),onClick:i,selected:a==="notifications"}),!!r&&o.jsx(ht,{type:"dot",number:Math.min(r,99),size:24})]}),o.jsx(se,{size:48,showTooltipInfo:!0,type:"dot",shape:"pill",variant:d,icon:"settings",ariaLabel:t("nav.settings","\uC124\uC815"),onClick:s,selected:a==="settings"}),o.jsx(se,{size:48,showTooltipInfo:!0,type:"dot",shape:"pill",variant:d,icon:"message-circle-question-mark",ariaLabel:t("nav.help","\uB3C4\uC6C0\uB9D0"),onClick:c,selected:a==="help"}),o.jsx(se,{size:48,showTooltipInfo:!0,type:"dot",shape:"pill",variant:d,icon:"user-round",ariaLabel:t("nav.account","\uACC4\uC815"),onClick:u,selected:a==="account"})]})}function Th(e){const{item:t,itemKey:a,label:r,icon:n,active:i,onClick:s,style:c,state:u,labelStyle:d}=e||{},p=t?.key??a??"",m=t?.label??r??"",h=t?.icon??n??"",g=t?.badge??0,f=o.jsx("span",{className:"side-nav__icon-wrap",children:o.jsx(Ie,{icon:h,label:typeof m=="string"?m:void 0,className:"side-nav__icon",maskClassName:"side-nav__icon-image",imgClassName:void 0,svgClassName:void 0})}),b=u==="disabled",y=`side-nav__item ${i?"active":""} ${u||""} ${b?"disabled":""} ${t?.child?"side-nav__item--child":""}`,v=l.useCallback(C=>{if(!b){try{C.currentTarget.blur()}catch{}s?.(p,C.currentTarget)}},[b,p,s]);return o.jsxs("button",{className:y,onClick:v,"aria-label":typeof m=="string"?m:void 0,style:c,"aria-disabled":b,children:[f,o.jsx("span",{className:"side-nav__label button-1 f",style:d,children:m}),g>0&&o.jsx(ht,{type:"dot",position:"inline",number:Math.min(g,99),size:24,"aria-label":`${g}`}),u==="loading"&&o.jsx("span",{className:"side-nav__spinner","aria-label":"loading"})]})}function kl(e){const{t}=ge.useTranslation(),{items:a=[],activeKey:r,onChange:n,unreadCount:i,onDebug:s,onNotification:c,onAccount:u,onSetting:d,onHelp:p,appMode:m,onAppModeChange:h}=e||{},g=l.useCallback(()=>h?.(m==="malgwi"?"manager":"malgwi"),[h,m]);return o.jsxs("nav",{"aria-label":t("nav.mainMenu","\uBA54\uC778 \uBA54\uB274"),className:"side-nav__menu",children:[o.jsxs("div",{className:"side-nav__menu-list",children:[(a||[]).filter(f=>!f.section&&(f.key||f.label)).map((f,b)=>o.jsxs(l.Fragment,{children:[f.divider&&o.jsx("div",{className:"side-nav__separator"}),o.jsx(Th,{item:f,active:f.key===r,state:f.disabled?"disabled":void 0,onClick:(y,v)=>{if(f.disabled)return;if(f.href){window.open(f.href,"_blank","noopener,noreferrer");try{v?.blur()}catch{}return}n?.(f.key);try{const w=document.querySelector(".content-area");w?w.scrollTop=0:window.scrollTo({top:0})}catch{}try{v?.blur()}catch{}if(typeof window<"u"&&window.matchMedia){if(!window.matchMedia("(min-width: 768px) and (max-width: 1023px)").matches)return}else return;const C=document.querySelector(".header");if(C&&!(typeof C.matches=="function"&&C.matches(":hover"))){C.classList.add("header--force-collapsed");const w=()=>{C.classList.remove("header--force-collapsed"),C.removeEventListener("mouseenter",w)};C.addEventListener("mouseenter",w)}}})]},f.key??`side-nav__item-${b}`)),h&&o.jsx("div",{className:"side-nav__separator side-nav__separator--short"}),h&&o.jsx(Th,{item:{key:"__mode-switch__",label:m==="malgwi"?t("nav.goToManager","\uB9D0\uADC0\uB9E4\uB2C8\uC800\uB85C \uC774\uB3D9"):t("nav.goToMalgwi","\uB9D0\uADC0\uB85C \uC774\uB3D9"),icon:m==="malgwi"?"arrow-right":"arrow-left"},onClick:g})]}),o.jsx(D5,{activeKey:r,unreadCount:i,onDebug:s,onNotification:c,onAccount:u,onSetting:d,onHelp:p})]})}var Sl='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',Al='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',E5='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',j5='.ihabdevteam-core-scope .header{background:var(--color-deepWhite);border-left:1px solid var(--color-whiteLine);border-right:1px solid var(--color-whiteLine);bottom:0;box-sizing:content-box;display:flex;flex-direction:column;isolation:isolate;left:0;overflow:visible;overscroll-behavior:none;position:fixed;top:0;z-index:var(--z-sidebar)}.ihabdevteam-core-scope .header__menu-button{background:transparent;border:none;display:none}.ihabdevteam-core-scope .header__bottom{align-items:center;background:var(--color-deepWhite);border-top:1px solid var(--color-whiteLine);bottom:0;display:flex;height:56px;justify-content:center;left:0;padding:0;padding-bottom:calc(var(--spacing-content) + env(safe-area-inset-bottom));position:fixed;right:0}.ihabdevteam-core-scope .header__category-button{background:transparent;border:none}.ihabdevteam-core-scope .header:before{background:linear-gradient(160deg,var(--color-main) 0,var(--color-sub) 100%);content:"";inset:0;opacity:0;pointer-events:none;position:absolute;transition:opacity .2s ease;z-index:-1}.ihabdevteam-core-scope .header--manager{border-right-color:hsla(0,0%,100%,.2)}.ihabdevteam-core-scope .header--manager:before{opacity:1}.ihabdevteam-core-scope .header--manager .side-nav__separator{background:hsla(0,0%,100%,.25)}.ihabdevteam-core-scope .header--manager .side-nav__icon,.ihabdevteam-core-scope .header--manager .side-nav__item{color:var(--color-deepWhite)}.ihabdevteam-core-scope .header--manager .side-nav__item:focus:not(.active),.ihabdevteam-core-scope .header--manager .side-nav__item:hover:not(.active){background:hsla(0,0%,100%,.15);color:#fff}.ihabdevteam-core-scope .header--manager .side-nav__item:focus:not(.active) .side-nav__icon,.ihabdevteam-core-scope .header--manager .side-nav__item:hover:not(.active) .side-nav__icon{color:#fff}.ihabdevteam-core-scope .header--manager .side-nav__item.active{animation:ihabCoreSnSweep 1s cubic-bezier(.4,0,.2,1) forwards;background:linear-gradient(90deg,var(--color-pureWhite) 50%,color-mix(in srgb,var(--color-main) 50%,#fff) 100%);background-position:0 0;background-size:200% 100%;box-shadow:var(--shadow-card);color:var(--color-darkGray)}.ihabdevteam-core-scope .header--manager .side-nav__item.active .side-nav__icon{animation:ihabCoreSnIconBounce .48s cubic-bezier(.4,0,.2,1) forwards;color:var(--color-lightGray)}.ihabdevteam-core-scope .header--manager .side-nav__item.active .side-nav__icon img{filter:none;opacity:1}.ihabdevteam-core-scope .header--manager .side-nav__footer [role=button],.ihabdevteam-core-scope .header--manager .side-nav__footer button{color:hsla(0,0%,100%,.55)}.ihabdevteam-core-scope .header--manager .side-nav__mode-switch{background:transparent;border-color:hsla(0,0%,100%,.2)}.ihabdevteam-core-scope .header--manager .side-nav__mode-switch:hover{background:hsla(0,0%,100%,.12);border-color:hsla(0,0%,100%,.35)}.ihabdevteam-core-scope .header--manager .side-nav__mode-switch-label{color:hsla(0,0%,100%,.7)}.ihabdevteam-core-scope .header--manager .side-nav__mode-switch-arrow{color:hsla(0,0%,100%,.35)}@media (min-width:1024px){.ihabdevteam-core-scope .header{width:220px}.ihabdevteam-core-scope .header__bottom,.ihabdevteam-core-scope .header__menu-button{display:none}}@media (min-width:768px) and (max-width:1023px){.ihabdevteam-core-scope .header__branding{height:80px}.ihabdevteam-core-scope .header .side-nav__menu{padding:0 10px;transition:padding .18s ease}.ihabdevteam-core-scope .header .side-nav__item{border-radius:var(--radius-card);gap:0;padding:0 14px;transition:padding .18s ease,gap .18s ease}.ihabdevteam-core-scope .header:focus-within .side-nav__menu,.ihabdevteam-core-scope .header:hover .side-nav__menu{padding:0 10px}.ihabdevteam-core-scope .header:focus-within .side-nav__item,.ihabdevteam-core-scope .header:hover .side-nav__item{gap:10px;padding:0 16px}.ihabdevteam-core-scope .header .side-nav__label{display:inline-block;max-width:0;opacity:0;overflow:hidden;pointer-events:none;transform:translateX(-6px);transition:max-width .18s ease,opacity .18s ease,transform .18s ease;white-space:nowrap}.ihabdevteam-core-scope .header{overflow:visible;transition:width .18s ease;width:72px}.ihabdevteam-core-scope .header:focus-within,.ihabdevteam-core-scope .header:hover{width:220px}.ihabdevteam-core-scope .header:focus-within .side-nav__label,.ihabdevteam-core-scope .header:hover .side-nav__label{max-width:200px;opacity:1;pointer-events:auto;transform:translateX(0)}.ihabdevteam-core-scope .header.header--force-collapsed{width:72px}.ihabdevteam-core-scope .header.header--force-collapsed .side-nav__label{max-width:0;opacity:0;pointer-events:none;transform:translateX(-6px)}.ihabdevteam-core-scope .header.header--force-collapsed:hover{width:72px}}@media (max-width:767px){.ihabdevteam-core-scope .header{align-items:center;border-bottom:1px solid var(--color-whiteLine);border-left:none;border-right:none;flex-direction:row;height:64px;justify-content:space-between;left:0;position:fixed;right:0;top:0;width:100%}.ihabdevteam-core-scope .header__top{align-items:center;display:flex;flex:1}.ihabdevteam-core-scope .header__branding{height:auto}.ihabdevteam-core-scope .header__menu-button{display:inline-flex}.ihabdevteam-core-scope .header__bi{align-items:center;display:flex;gap:var(--spacing-xs);padding:0 calc(12px + env(safe-area-inset-right)) 0 calc(12px + env(safe-area-inset-left));width:100%}.ihabdevteam-core-scope .header__bi .header__menu-button{margin-left:auto}.ihabdevteam-core-scope .header__bottom{display:none}}.ihabdevteam-core-scope .brand-identity__root{align-items:center;display:flex;height:100px;justify-content:center}.ihabdevteam-core-scope .brand-identity__image{height:48px;-o-object-fit:contain;object-fit:contain;width:auto}@media (min-width:1024px){.ihabdevteam-core-scope .brand-identity__root{height:100px}}@media (min-width:768px) and (max-width:1023px){.ihabdevteam-core-scope .brand-identity__root{height:100px}}@media (max-width:767px){.ihabdevteam-core-scope .brand-identity__root{height:64px;padding:10px}.ihabdevteam-core-scope .brand-identity__image{height:40px}}';J(j5);function Tl({appMode:e}){const{t}=ge.useTranslation(),a=e==="manager",r=a?Al:Sl,n=E5,i=oa("(min-width: 768px) and (max-width: 1023px)");return o.jsx("div",{className:"brand-identity__root","aria-label":t("header.biArea","BI \uC601\uC5ED"),children:i?o.jsx("img",{src:n,alt:t("header.biSymbol","BI \uC2EC\uBCFC"),className:"brand-identity__image"}):o.jsx("img",{src:r,alt:a?t("header.logoManager","\uB9D0\uADC0\uB9E4\uB2C8\uC800 \uB85C\uACE0"):t("header.logoMalgwi","\uB9D0\uADC0 \uB85C\uACE0"),className:"brand-identity__image"})})}function Bl({activeKey:e,onChange:t,items:a,malgwiItems:r,managerItems:n,unreadCount:i,onDebug:s,onNotification:c,onAccount:u,onSetting:d,onHelp:p,appMode:m,onAppModeChange:h}){const{t:g}=ge.useTranslation(),f=oa("(max-width: 767px)"),b=l.useMemo(()=>{const N=[];return s&&N.push({key:"debug",icon:"terminal",label:g("nav.debug","\uB514\uBC84\uADF8"),onClick:s}),c&&N.push({key:"notifications",icon:"bell",label:g("nav.notifications","\uC54C\uB9BC"),badgeCount:i,onClick:c}),d&&N.push({key:"settings",icon:"settings",label:g("nav.settings","\uC124\uC815"),onClick:d}),p&&N.push({key:"help",icon:"message-circle-question-mark",label:g("nav.help","\uB3C4\uC6C0\uB9D0"),onClick:p}),u&&N.push({key:"account",icon:"user-round",label:g("nav.account","\uACC4\uC815"),onClick:u}),N},[g,s,c,d,p,u,i]),y=l.useCallback(N=>({position:"fixed",top:N.bottom+8,right:Math.max(8,window.innerWidth-N.right),zIndex:1e4}),[]),{open:v,toggle:C,close:w,style:x,triggerRef:S,menuRef:_}=ao({computeStyle:y,onScroll:"ignore",onResize:"ignore"}),k=l.useMemo(()=>[{items:b.map(N=>({label:N.label,icon:N.icon,badgeCount:N.badgeCount,selected:N.selected??(!!N.key&&N.key===e),closeOnSelect:!0,onClick:()=>{N.onClick?.(),w()}}))}],[b,e,w]);return o.jsxs("aside",{className:`header${m==="manager"?" header--manager":""}`,children:[o.jsxs("div",{className:"header__bi",children:[o.jsx(Tl,{appMode:m}),o.jsxs("div",{className:"header__menu-button",ref:S,children:[o.jsx(se,{size:48,type:"dot",shape:"pill",variant:"default",icon:"menu",ariaLabel:g("header.menuOpen","\uBA54\uB274 \uC5F4\uAE30"),onClick:C}),v&&qt.createPortal(o.jsx("div",{className:"tooltip-content",style:x,ref:_,children:o.jsx(mr,{columns:k,onClose:w})}),document.body)]})]}),o.jsx(kl,{items:a,activeKey:e??void 0,onChange:t,unreadCount:i,onDebug:s,onNotification:c,onAccount:u,onSetting:d,onHelp:p,appMode:m,onAppModeChange:h}),f&&o.jsx(wl,{items:a,activeKey:e??void 0,onChange:t,appMode:m,onAppModeChange:h})]})}const Bh=Bl;var L5='.ihabdevteam-core-scope .payment-plan__card{background:var(--color-white);border:1px solid var(--color-whiteLine);border-radius:var(--radius-m);box-sizing:border-box;display:flex;flex:1 1 340px;flex-direction:column;gap:28px;max-width:360px;min-width:min(340px,100%);padding:20px;position:relative;text-align:left;transition:box-shadow .2s ease,transform .2s ease;width:100%}.ihabdevteam-core-scope .payment-plan__card:hover{box-shadow:var(--shadow-dropdown);transform:translateY(-4px)}.ihabdevteam-core-scope .payment-plan__card-badge{position:absolute;right:32px;top:32px}.ihabdevteam-core-scope .payment-plan__pricing-card{cursor:pointer;display:flex;justify-content:center}.ihabdevteam-core-scope .payment-plan__title{color:var(--color-black);display:flex;flex-direction:column;margin:0}.ihabdevteam-core-scope .payment-plan__quote{color:var(--color-sub);margin:0 0 4px;min-height:1.4em}.ihabdevteam-core-scope .payment-plan__title-heading{margin:0}.ihabdevteam-core-scope .payment-plan__subtitle{color:var(--color-gray);line-height:1.5;margin:8px 0 0;text-align:left}.ihabdevteam-core-scope .payment-plan__box,.ihabdevteam-core-scope .payment-plan__box-title{display:block}.ihabdevteam-core-scope .payment-plan__box-list{color:var(--color-lightGray);padding-left:18px}.ihabdevteam-core-scope .payment-plan__box-list li{margin-bottom:4px}.ihabdevteam-core-scope .payment-plan__contact-button{width:100%}.ihabdevteam-core-scope .payment-plan__feature-list{display:flex;flex-direction:column;gap:10px;list-style:none;margin:12px 0 0;padding:0}.ihabdevteam-core-scope .payment-plan__feature-item{align-items:center;color:var(--color-darkGray);display:flex;gap:10px;line-height:1.45}.ihabdevteam-core-scope .payment-plan__feature-check{align-items:center;display:inline-flex;flex-shrink:0;justify-content:center}.ihabdevteam-core-scope .payment-plan__card-pricing{display:flex;flex-direction:column;gap:6px;margin-top:auto;text-align:left;width:100%}.ihabdevteam-core-scope .payment-plan__pricing-list{display:flex;flex-direction:column;gap:var(--spacing-s)}.ihabdevteam-core-scope .payment-plan__pricing-row{grid-row-gap:4px;align-items:center;background:var(--plan-color,var(--color-darkWhite));border:1px solid transparent;border-radius:var(--radius-s);box-sizing:border-box;color:#fff;cursor:pointer;display:grid;grid-template-columns:1fr auto;grid-template-rows:auto auto;padding:14px 18px;row-gap:4px;transition:filter .15s ease,transform .15s ease,box-shadow .15s ease;width:100%}.ihabdevteam-core-scope .payment-plan__pricing-row--static{cursor:default;pointer-events:none}.ihabdevteam-core-scope .payment-plan__pricing-row--highlight{background:var(--color-white);border:1px solid var(--plan-color,var(--color-main));color:var(--color-darkGray)}.ihabdevteam-core-scope .payment-plan__pricing-row--highlight .payment-plan__pricing-current,.ihabdevteam-core-scope .payment-plan__pricing-row--highlight .payment-plan__pricing-row-price{color:var(--plan-color,var(--color-main))}.ihabdevteam-core-scope .payment-plan__pricing-row--highlight .payment-plan__pricing-original{color:var(--color-lightGray)}.ihabdevteam-core-scope .payment-plan__pricing-row--highlight .payment-plan__pricing-badge{color:var(--plan-color,var(--color-main))}.ihabdevteam-core-scope .payment-plan__pricing-row:hover{box-shadow:var(--shadow-dropdown);filter:brightness(1.04);transform:translateY(-2px)}.ihabdevteam-core-scope .payment-plan__pricing-row-title{display:contents}.ihabdevteam-core-scope .payment-plan__pricing-row-label{grid-column:1;grid-row:1;margin:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ihabdevteam-core-scope .payment-plan__pricing-badge{color:hsla(0,0%,100%,.9);grid-column:2;grid-row:1;margin:0;text-align:right;white-space:nowrap}.ihabdevteam-core-scope .payment-plan__pricing-row-price{align-items:center;color:#fff;display:flex;gap:var(--spacing-xs);grid-column:1/-1;grid-row:2;justify-content:flex-end;margin:0;text-align:right}.ihabdevteam-core-scope .payment-plan__pricing-original{color:var(--color-white-a80);margin:0;text-decoration:line-through;white-space:nowrap}.ihabdevteam-core-scope .payment-plan__pricing-current{color:#fff;margin:0;white-space:nowrap}.ihabdevteam-core-scope .payment-plan__pricing-symbol{font-weight:600;margin-right:2px}.ihabdevteam-core-scope .payment-plan__list{grid-gap:var(--spacing-l);align-items:stretch;display:grid;gap:var(--spacing-l);grid-template-columns:repeat(auto-fit,minmax(min(340px,100%),360px));justify-content:center;margin:0 auto var(--spacing-page);width:100%}.ihabdevteam-core-scope .payment-plan__list>.payment-plan__card{align-self:stretch}.ihabdevteam-core-scope .payment-plan__card-content,.ihabdevteam-core-scope .payment-plan__card-inner{min-height:0}.ihabdevteam-core-scope .payment-plan__card.recommended{border-color:var(--color-main);box-shadow:var(--shadow-dropdown)}.ihabdevteam-core-scope .payment-plan__recommended-badge{background:var(--color-main);border-radius:var(--radius-m);color:#fff;font-weight:700;left:50%;padding:4px 14px;position:absolute;top:-12px;transform:translateX(-50%);white-space:nowrap}.ihabdevteam-core-scope .payment-plan__name{font-weight:800;margin:0 0 8px}.ihabdevteam-core-scope .payment-plan__price{font-weight:800;margin:0 0 4px}.ihabdevteam-core-scope .payment-plan__period{color:var(--color-gray);display:inline}.ihabdevteam-core-scope .payment-plan__features{display:flex;flex-direction:column;gap:var(--spacing-xs);list-style:none;margin:20px 0;padding:0}.ihabdevteam-core-scope .payment-plan__feature{align-items:center;color:var(--color-darkGray);display:flex;gap:var(--spacing-xs)}.ihabdevteam-core-scope .payment-plan__feature:before{color:var(--color-success);content:"\u2713";font-weight:700}.ihabdevteam-core-scope .payment-plan__button{border:none;border-radius:var(--radius-card);cursor:pointer;font-weight:700;padding:14px;transition:all .12s;width:100%}.ihabdevteam-core-scope .payment-plan__button--primary{background:var(--color-main);color:#fff}.ihabdevteam-core-scope .payment-plan__button--primary:hover{background:var(--color-infoLink)}.ihabdevteam-core-scope .payment-plan__button--outline{background:var(--color-deepWhite);border:1px solid var(--color-whiteLine);color:var(--color-darkGray)}.ihabdevteam-core-scope .payment-plan__button--outline:hover{border-color:var(--color-main);color:var(--color-main)}@media (max-width:767px){.ihabdevteam-core-scope .payment-plan__list{align-items:center;flex-direction:column;gap:var(--spacing-m)}.ihabdevteam-core-scope .payment-plan__list>.payment-plan__card{align-self:center;flex:none;max-width:360px;width:100%}}';J(L5);function Nh(e){if(!(e==null||e===""))return or(typeof e=="number"?`${e.toLocaleString("ko-KR")}\uC6D0`:e)}function M5(e){const t=`${e.code??""} ${e.name??""}`.toLowerCase();return/manager|매니저/.test(t)?"manager":"speechear"}function P5(e){if(e.durationDays&&e.durationDays>0){const n=e.durationDays;return n%365===0?`${n/365}\uB144`:`${n}\uC77C`}const t=(e.code??"").match(/(\d+)(d|y)\b/i);if(t)return t[2].toLowerCase()==="y"?`${t[1]}\uB144`:`${t[1]}\uC77C`;const a=e.name??"",r=a.match(/(\d+\s*(?:년|개월|주|일))\s*(?:이용권)?\s*$/);return r?r[1].replace(/\s+/g,""):a||"\uC774\uC6A9\uAD8C"}function R5(e){const t=(e??"").match(/(\d+)(d|y)\b/i);if(!t)return null;const a=Number(t[1]);return t[2].toLowerCase()==="y"?a*365:a}function Nl(e){return{type:e.type??M5(e),plan:P5(e),label:e.label,price:Nh(e.price),originalPrice:Nh(e.originalPrice),discountLabel:e.discountLabel}}var $5='.ihabdevteam-core-scope .pass-card-frame{container-type:inline-size;height:188px;max-width:100%;width:300px}.ihabdevteam-core-scope .pass-card{border-radius:16px;box-sizing:border-box;display:flex;flex-direction:column;height:188px;overflow:hidden;padding:var(--spacing-l);position:relative;width:300px}.ihabdevteam-core-scope .pass-card-frame>.pass-card{aspect-ratio:auto;border-radius:5.33cqw;height:100%;padding:6.67cqw;width:100%}.ihabdevteam-core-scope .pass-card--clickable{cursor:pointer}@media (max-width:360px){.ihabdevteam-core-scope .pass-card,.ihabdevteam-core-scope .pass-card-frame{max-width:300px;width:100%}}.ihabdevteam-core-scope .pass-card--active{box-shadow:0 4px 16px rgba(0,0,0,.08)}.ihabdevteam-core-scope .pass-card--pending{box-shadow:0 2px 8px rgba(0,0,0,.05)}.ihabdevteam-core-scope .pass-card--expired{--color-main:var(--color-disabled);--color-sub:var(--color-whiteLine);--pass-card-expired-shape:var(--color-whiteLine);box-shadow:none}.ihabdevteam-core-scope [data-theme=dark] .pass-card--expired,.ihabdevteam-core-scope[data-theme=dark] .pass-card--expired,[data-theme=dark] .pass-card--expired .ihabdevteam-core-scope{--pass-card-expired-shape:hsla(0,0%,100%,.18)}@media (prefers-color-scheme:dark){.ihabdevteam-core-scope :root:not([data-theme=light]):not([data-theme=dark]) .pass-card--expired{--pass-card-expired-shape:hsla(0,0%,100%,.18)}}.ihabdevteam-core-scope .pass-card--expired .pass-card-bg{background:var(--color-darkWhite)}.ihabdevteam-core-scope .pass-card--expired .pass-card-bg__symbol{background:var(--pass-card-expired-shape)}.ihabdevteam-core-scope .pass-card--expired .pass-card__copyright,.ihabdevteam-core-scope .pass-card--expired .pass-card__plan,.ihabdevteam-core-scope .pass-card--expired .pass-card__price-area,.ihabdevteam-core-scope .pass-card--expired .pass-card__usage,.ihabdevteam-core-scope .pass-card--expired .pass-card__usage-percent,.ihabdevteam-core-scope .pass-card--expired .pass-card__usage-remaining{color:var(--color-gray)}.ihabdevteam-core-scope .pass-card.pass-card--expired:after{box-shadow:inset 1px 1px 0 hsla(0,0%,100%,.5),inset -1px -1px 0 color-mix(in srgb,var(--color-gray) 10%,transparent)}.ihabdevteam-core-scope .pass-card:after{border-radius:inherit;box-shadow:inset 1px 1px 0 hsla(0,0%,100%,.5),inset -1px -1px 0 rgba(73,156,223,.2);content:"";inset:0;pointer-events:none;position:absolute;z-index:2}.ihabdevteam-core-scope .pass-card__top{align-items:flex-start;display:flex;flex-direction:row;justify-content:space-between;margin-top:-1.67cqw;position:relative;z-index:1}.ihabdevteam-core-scope .pass-card__top-left{align-items:flex-start;display:flex;flex-direction:column;gap:0}.ihabdevteam-core-scope .pass-card__logo{height:10.67cqw;-o-object-fit:contain;object-fit:contain;width:auto}.ihabdevteam-core-scope .pass-card__plan{color:var(--pass-card-text,var(--color-pureBlack));display:flex;flex-direction:column;gap:0;margin-top:-.67cqw;position:relative;text-align:left;z-index:1}.ihabdevteam-core-scope .pass-card__plan .h0{font-size:13.33cqw;line-height:1.3}.ihabdevteam-core-scope .pass-card .pass-card__plan-number{font-size:17.33cqw;letter-spacing:-1cqw;line-height:1}.ihabdevteam-core-scope .pass-card__plan .h5b{font-size:5cqw;line-height:1.53}.ihabdevteam-core-scope .pass-card__plan-unit{margin-left:.67cqw;position:relative;top:-.67cqw}.ihabdevteam-core-scope .pass-card__plan-suffix{margin-left:.67cqw;margin-top:0}.ihabdevteam-core-scope .pass-card .pass-card__copyright{color:var(--pass-card-text,var(--color-black));font-size:3.67cqw;line-height:1.36;margin:auto 0 0;position:relative;text-align:left;z-index:1}.ihabdevteam-core-scope .pass-card__price-area{align-items:flex-end;bottom:4.67cqw;display:flex;flex-direction:column;gap:0;position:absolute;right:6.67cqw;z-index:1}.ihabdevteam-core-scope .pass-card__price-area .h1{font-size:10.67cqw;line-height:1.375}.ihabdevteam-core-scope .pass-card__price-area .h5{font-size:5cqw;line-height:1.53}.ihabdevteam-core-scope .pass-card__usage{align-items:flex-end;bottom:4.67cqw;color:var(--pass-card-text,var(--color-black));display:flex;flex-direction:column;gap:0;position:absolute;right:6.67cqw;z-index:1}.ihabdevteam-core-scope .pass-card__usage-percent{align-items:baseline;display:inline-flex;font-size:3.67cqw;gap:0;line-height:1.36;opacity:.9}.ihabdevteam-core-scope .pass-card__usage .pass-card__usage-remaining{font-size:5cqw;line-height:1.53;opacity:.9}.ihabdevteam-core-scope .pass-card__usage .pass-card__usage-value{font-size:10.67cqw;line-height:1.2}.ihabdevteam-core-scope .pass-card__usage .pass-card__usage-symbol{font-size:5cqw;line-height:1.53}.ihabdevteam-core-scope .pass-card__discount{color:var(--pass-card-text,var(--color-pureBlack));font-size:4.67cqw;line-height:1.2;text-align:right;white-space:pre-line}.ihabdevteam-core-scope .pass-card__price{align-items:baseline;color:var(--pass-card-text,var(--color-pureBlack));display:inline-flex;gap:2cqw;text-align:right}.ihabdevteam-core-scope .pass-card__price-original{color:color-mix(in srgb,var(--pass-card-text,var(--color-pureBlack)) 75%,transparent);font-size:4.67cqw;line-height:1.57;text-decoration:line-through;text-decoration-thickness:1px}';J($5);var I5='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',z5='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>',O5='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',F5='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',W5='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>',H5='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',V5=".ihabdevteam-core-scope .pass-card-bg{border-radius:inherit;inset:0;overflow:hidden;pointer-events:none;position:absolute}:where(.ihabdevteam-core-scope){--pass-card-symbol-opacity:1}.ihabdevteam-core-scope .pass-card-bg__symbol{background:var(--symbol-url) center /contain no-repeat;height:48px;-webkit-mask:var(--symbol-url) center /contain no-repeat;mask:var(--symbol-url) center /contain no-repeat;position:absolute;right:12px;top:12px;width:48px}";J(V5);var G5=".ihabdevteam-core-scope .pass-card-bg-two-circle{background:var(--color-pureWhite)}.ihabdevteam-core-scope .pass-card-bg-two-circle__c1,.ihabdevteam-core-scope .pass-card-bg-two-circle__c3{border-radius:50%;opacity:.75;opacity:var(--pass-card-symbol-opacity,.75);position:absolute}.ihabdevteam-core-scope .pass-card-bg-two-circle__c1{background:var(--color-main);height:340px;right:-150px;top:-140px;width:340px}.ihabdevteam-core-scope .pass-card-bg-two-circle__c3{background:var(--color-sub);bottom:-90px;height:220px;right:-50px;width:220px}.ihabdevteam-core-scope .pass-card-bg-two-circle__symbol{background:var(--color-darkWhite)}";J(G5);var Dh='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 Fa={text:"--pass-card-text",sub:"--pass-card-sub",copyright:"--pass-card-copyright"},Dl=new WeakMap;function q5(e){if(e)return Dl.get(e)}function ga(e,t){e&&(e.style.setProperty(Fa.text,t.text),e.style.setProperty(Fa.sub,t.sub),t.copyrightColor&&e.style.setProperty(Fa.copyright,t.copyrightColor),Dl.set(e,t))}function fa(e){e&&(e.style.removeProperty(Fa.text),e.style.removeProperty(Fa.sub),e.style.removeProperty(Fa.copyright),Dl.delete(e))}const El={text:"var(--color-pureBlack)",sub:"var(--color-lightGray)",logoBase:"Logo_speechear_kr",copyrightColor:"#1a1a1a"};function jl(e={}){const t=lt(El,ga,fa);return o.jsxs("div",{ref:t,className:"pass-card-bg pass-card-bg-two-circle","aria-hidden":"true",children:[o.jsx("div",{className:"pass-card-bg-two-circle__c1"}),o.jsx("div",{className:"pass-card-bg-two-circle__c3"}),o.jsx("span",{className:"pass-card-bg__symbol pass-card-bg-two-circle__symbol",style:{"--symbol-url":`url("${Dh}")`}})]})}const Eh="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 Y5=".ihabdevteam-core-scope .pass-card-bg-sound-move{background:var(--color-pureWhite)}.ihabdevteam-core-scope .pass-card-bg-sound-move__svg{height:100%;inset:0;pointer-events:none;position:absolute;width:100%}";J(Y5);var br='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 U5={text:"#1a1a1a",sub:"var(--color-lightGray)",logoBase:"Logo_speechear_kr",copyrightColor:"var(--color-main)"},K5=[{scale:1,opacity:.55},{scale:2,opacity:.4},{scale:3.1,opacity:.28},{scale:4.5,opacity:.18},{scale:6,opacity:.1}];function jh(e={}){const t=lt(U5,ga,fa),a="var(--color-main)",r=270,n=170;return o.jsxs("div",{ref:t,className:"pass-card-bg pass-card-bg-sound-move","aria-hidden":"true",children:[o.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:K5.map(({scale:i,opacity:s},c)=>o.jsx("g",{transform:`translate(${r} ${n}) scale(${i}) translate(-50 -50)`,opacity:s,children:o.jsx("path",{d:Eh,fill:"none",stroke:a,strokeWidth:"1.5",vectorEffect:"non-scaling-stroke"})},c))}),o.jsx("span",{className:"pass-card-bg__symbol pass-card-bg-sound-move__symbol",style:{"--symbol-url":`url("${br}")`}})]})}var Z5=".ihabdevteam-core-scope .pass-card-bg-sound-move-v1{background:linear-gradient(135deg,var(--color-main),var(--color-sub))}.ihabdevteam-core-scope .pass-card-bg-sound-move-v1__svg{height:100%;inset:0;pointer-events:none;position:absolute;width:100%}";J(Z5);const X5={text:"#ffffff",sub:"var(--color-lightGray)",logoBase:"Logo_speechear_kr",logoColor:"_white",copyrightColor:"#ffffff"},Q5=[{scale:1,opacity:.55},{scale:2,opacity:.4},{scale:3.1,opacity:.28},{scale:4.5,opacity:.18},{scale:6,opacity:.1}];function J5(e={}){const t=lt(X5,ga,fa),a="#ffffff",r=270,n=170;return o.jsxs("div",{ref:t,className:"pass-card-bg pass-card-bg-sound-move-v1","aria-hidden":"true",children:[o.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:Q5.map(({scale:i,opacity:s},c)=>o.jsx("g",{transform:`translate(${r} ${n}) scale(${i}) translate(-50 -50)`,opacity:s,children:o.jsx("path",{d:Eh,fill:"none",stroke:a,strokeWidth:"1.5",vectorEffect:"non-scaling-stroke"})},c))}),o.jsx("span",{className:"pass-card-bg__symbol pass-card-bg-sound-move-v1__symbol",style:{"--symbol-url":`url("${Dh}")`}})]})}var e3=".ihabdevteam-core-scope .pass-card-bg-talk{align-items:center;background:var(--color-pureWhite);display:flex;justify-content:center}.ihabdevteam-core-scope .pass-card-bg-talk__shape{height:76px;position:absolute;width:76px}.ihabdevteam-core-scope .pass-card-bg-talk__shape--left{background:var(--color-main);border-radius:42px 42px 42px 4px;transform:translateX(-18px)}.ihabdevteam-core-scope .pass-card-bg-talk__shape--right{background:var(--color-sub);border-radius:50%;opacity:.7;transform:translateX(18px)}";J(e3);const t3={text:"#1a1a1a",sub:"var(--color-lightGray)",logoBase:"Logo_speechear_kr",copyrightColor:"var(--color-main)"};function a3(e={}){const t=lt(t3,ga,fa);return o.jsxs("div",{ref:t,className:"pass-card-bg pass-card-bg-talk","aria-hidden":"true",children:[o.jsx("div",{className:"pass-card-bg-talk__shape pass-card-bg-talk__shape--left"}),o.jsx("div",{className:"pass-card-bg-talk__shape pass-card-bg-talk__shape--right"}),o.jsx("span",{className:"pass-card-bg__symbol pass-card-bg-talk__symbol",style:{"--symbol-url":`url("${br}")`}})]})}const o3={Logo_speechear_kr:{"":Sl,_white:I5,_textWhite:z5,_black:O5},Logo_speechearManager_kr:{"":Al,_white:F5,_textWhite:W5,_black:H5}};function r3(e,t){if(e)return o3[e]?.[t??""]??void 0}const n3={speechear:Sl,manager:Al},i3={speechear:"Logo_speechear_kr",manager:"Logo_speechearManager_kr"},Lh=10;function s3(e,t){if(e<=0)return t("passCard.remainingSecond",{n:0});const a=Math.floor(e/86400);if(a>0)return t("passCard.remainingDay",{n:a});const r=Math.floor(e/3600);if(r>0)return t("passCard.remainingHour",{n:r});const n=Math.floor(e/60);return n>0?t("passCard.remainingMinute",{n}):t("passCard.remainingSecond",{n:Math.floor(e)})}function l3(e,t,a){if(e==="manager"){const r=/년/.test(t)||/yr|year/i.test(t)||/1년|365/.test(t),n=a==="\uC624\uD508\uD2B9\uAC00"||a===Ca.t("passCard.specialLabel");return r?o.jsx(a3,{}):n?o.jsx(J5,{}):o.jsx(jh,{})}return o.jsx(jl,{})}function Ll({product:e,showPrice:t=!1,plan:a,type:r,endDate:n,remainingSeconds:i,state:s="active",bg:c,bgOnly:u=!1,textColor:d,subColor:p,copyrightColor:m,logoSrc:h,label:g,price:f,originalPrice:b,discountLabel:y,onUse:v,onRefund:C,onDelete:w}){const{t:x}=ge.useTranslation(),S=e?Nl(e):void 0,_=r??S?.type??"speechear",k=a??S?.plan??"\uC774\uC6A9\uAD8C",N=g??S?.label,A=f??(t?S?.price:void 0),D=b??(t?S?.originalPrice:void 0),H=y??S?.discountLabel,P=l.useMemo(()=>{if(A)return null;const I=e?.durationDays??R5(e?.code);if(!I||I<=0)return null;const ee=I*86400;let pe;if(i!=null)pe=i;else if((s==="active"||s==="expired")&&n){const Ce=new Date(n).getTime();if(Number.isNaN(Ce))return null;const R=new Date;R.setHours(0,0,0,0);const oe=new Date(Ce);oe.setHours(0,0,0,0);const ae=Math.round((oe.getTime()-R.getTime())/864e5);pe=Math.max(0,ae)*86400}else s==="expired"?pe=0:pe=ee;const ke=Math.max(0,Math.min(100,Math.floor(Math.min(pe,ee)/ee*100)));return s==="pending"&&ke>=100?null:{percent:ke,remainingLabel:s3(pe,x)}},[A,s,n,i,e?.durationDays,e?.code,x]),T=l.useRef(null),[E,L]=l.useState({}),[F,te]=l.useState(null),Z=!!(v||C||w),V=l.useRef(!1),j=l.useRef(void 0),[M,$]=l.useState(h);l.useLayoutEffect(()=>{$(h)},[h]),l.useLayoutEffect(()=>{const I=T.current;I&&(d!==void 0&&I.style.setProperty("--pass-card-text",d),p!==void 0&&I.style.setProperty("--pass-card-sub",p),m!==void 0&&I.style.setProperty("--pass-card-copyright",m))},[d,p,m]),l.useLayoutEffect(()=>{const I=T.current;if(!I)return;const ee=q5(I);if(!h){const pe=i3[_],ke=s==="expired"?"_black":ee?.logoColor??"",Ce=r3(pe,ke);$(Ce)}},[c,h,_,s]);const W=I=>{const ee=T.current;if(!ee)return null;const{left:pe,top:ke,width:Ce,height:R}=ee.getBoundingClientRect(),oe=(I.clientX-pe)/Ce-.5;return{rotateX:-((I.clientY-ke)/R-.5)*Lh,rotateY:oe*Lh}},q=(I,ee)=>{const pe=ee*-.7,ke=I*.7+10,Ce=20+(Math.abs(I)+Math.abs(ee))*.4;return`${pe}px ${ke}px ${Ce}px rgba(0, 0, 0, 0.18)`},X=l.useCallback(I=>{V.current=!0,clearTimeout(j.current),j.current=setTimeout(()=>{V.current=!1},200);const ee=W(I);ee&&L({transform:`perspective(800px) rotateX(${ee.rotateX}deg) rotateY(${ee.rotateY}deg) scale3d(1.03, 1.03, 1.03)`,boxShadow:q(ee.rotateX,ee.rotateY),transition:"transform 0.25s cubic-bezier(0.23, 1, 0.32, 1), box-shadow 0.25s cubic-bezier(0.23, 1, 0.32, 1)"})},[]),O=l.useCallback(I=>{const ee=W(I);if(!ee)return;const pe=V.current?"transform 0.2s ease, box-shadow 0.2s ease":"none";L({transform:`perspective(800px) rotateX(${ee.rotateX}deg) rotateY(${ee.rotateY}deg) scale3d(1.03, 1.03, 1.03)`,boxShadow:q(ee.rotateX,ee.rotateY),transition:pe})},[]),Y=l.useCallback(()=>{clearTimeout(j.current),V.current=!1,L({transform:"perspective(800px) rotateX(0deg) rotateY(0deg) scale3d(1, 1, 1)",boxShadow:"0px 4px 16px rgba(0, 0, 0, 0.08)",transition:"transform 0.5s cubic-bezier(0.23, 1, 0.32, 1), box-shadow 0.5s cubic-bezier(0.23, 1, 0.32, 1)"})},[]),z=l.useCallback(()=>te(null),[]),re=l.useMemo(()=>{const I=k.replace("\uC774\uC6A9\uAD8C","").trim(),ee=I.match(/^(.*?)(일|년)$/);return ee?o.jsxs(o.Fragment,{children:[o.jsx("span",{className:"h0 pass-card__plan-number",children:ee[1]}),o.jsx("span",{className:"h5b pass-card__plan-unit",children:ee[2]==="\uB144"?x("passCard.unitYear","\uB144"):x("passCard.unitDay","\uC77C")})]}):o.jsx("span",{className:"h0",children:I})},[k,x]),Q=l.useMemo(()=>{const I=or(A);if(!I)return null;const ee=I.match(/^([^\d]*)([\d.,]+)(.*)$/);if(!ee)return o.jsx("span",{className:"h1",children:I});const[,pe,ke,Ce]=ee;return o.jsxs(o.Fragment,{children:[pe&&o.jsx("span",{className:"h5 pass-card__price-symbol",children:pe}),o.jsx("span",{className:"h1 pass-card__price-amount",children:ke}),Ce.trim()&&o.jsx("span",{className:"h5 pass-card__price-symbol",children:Ce.trim()})]})},[A]),ne=l.useCallback(()=>{Z&&te(I=>{if(I)return null;const ee=T.current?.getBoundingClientRect();if(!ee)return null;const pe=50;return{left:ee.left,right:ee.right,width:ee.width,height:ee.height,x:ee.x,y:ee.y+pe,top:ee.top+pe,bottom:ee.bottom+pe}})},[Z]),me=l.useCallback(I=>{Z&&(I.key==="Enter"||I.key===" ")&&(I.preventDefault(),ne())},[Z,ne]),ce=[{items:[...v?[{label:x("passCard.menu.use","\uC0AC\uC6A9\uD558\uAE30"),icon:"play",onClick:()=>{v(),te(null)},closeOnSelect:!0}]:[],...C?[{label:x("passCard.menu.refund","\uD658\uBD88\uD558\uAE30"),icon:"rotate-ccw",onClick:()=>{C(),te(null)},closeOnSelect:!0}]:[],...w?[{label:x("passCard.menu.delete","\uC0AD\uC81C\uD558\uAE30"),icon:"trash-2",onClick:()=>{w(),te(null)},closeOnSelect:!0}]:[]]}];return o.jsxs(o.Fragment,{children:[o.jsx("div",{className:"pass-card-frame",children:o.jsxs("div",{ref:T,className:`pass-card pass-card--${s}${Z?" pass-card--clickable":""}`,style:E,onMouseEnter:X,onMouseMove:O,onMouseLeave:Y,onClick:ne,onKeyDown:Z?me:void 0,role:Z?"button":void 0,tabIndex:Z?0:void 0,children:[c??l3(_,k,N),!u&&o.jsxs(o.Fragment,{children:[o.jsx("div",{className:"pass-card__top",children:o.jsxs("div",{className:"pass-card__top-left",children:[o.jsx("img",{src:M??n3[_],className:"pass-card__logo",alt:_==="manager"?x("header.logoManager","\uB9D0\uADC0\uB9E4\uB2C8\uC800 \uB85C\uACE0"):x("header.logoMalgwi","\uB9D0\uADC0 \uB85C\uACE0")}),o.jsxs("div",{className:"pass-card__plan",children:[o.jsx("div",{children:re}),o.jsx("span",{className:"h5b pass-card__plan-suffix",children:N?x("passCard.labeledPlan",{label:N}):x("passCard.planSuffix","\uC774\uC6A9\uAD8C")})]})]})}),A?o.jsxs("div",{className:"pass-card__price-area",children:[H&&o.jsx("span",{className:"pass-card__discount body-3",children:H}),o.jsxs("div",{className:"pass-card__price",children:[D&&o.jsx("span",{className:"pass-card__price-original body-3",children:or(D)}),Q]})]}):P?o.jsxs("div",{className:"pass-card__usage",children:[o.jsx("span",{className:"h5b pass-card__usage-remaining",children:P.remainingLabel}),o.jsxs("span",{className:"pass-card__usage-percent",children:[o.jsx("span",{className:"h1 pass-card__usage-value",children:P.percent}),o.jsx("span",{className:"h5b pass-card__usage-symbol",children:"%"})]})]}):o.jsx("div",{className:"pass-card__copyright caption-2",children:"\xA9 IHAB Corp. All rights reserved."})]})]})}),F&&o.jsx(Sa,{anchorRect:F,onClose:z,children:o.jsx(mr,{columns:ce,onClose:z,size:"small"})})]})}var c3=".ihabdevteam-core-scope .pass-card-bg-sound-line{background:linear-gradient(60deg,var(--color-pureWhite) 0,color-mix(in srgb,var(--color-sub) 15%,var(--color-pureWhite)) 100%)}.ihabdevteam-core-scope .pass-card-bg-sound-line__svg{height:100%;inset:0;pointer-events:none;position:absolute;width:100%}";J(c3);const d3={text:"#1a1a1a",sub:"var(--color-lightGray)",logoBase:"Logo_speechear_kr",copyrightColor:"#1a1a1a"};function u3(e={}){const t=`passcard-sound-line-grad-${l.useId()}`,a=lt(d3,ga,fa);return o.jsxs("div",{ref:a,className:"pass-card-bg pass-card-bg-sound-line","aria-hidden":"true",children:[o.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:[o.jsx("defs",{children:o.jsxs("linearGradient",{id:t,x1:"0",y1:"0",x2:"1",y2:"0",children:[o.jsx("stop",{offset:"20%",stopColor:"var(--color-main)"}),o.jsx("stop",{offset:"80%",stopColor:"var(--color-sub)"})]})}),o.jsx("g",{transform:"translate(25, 45)",children:o.jsx("path",{d:"M -30 150 C 40 80, 100 220, 160 150 S 280 80, 340 150 S 460 220, 510 150",fill:"none",stroke:`url(#${t})`,strokeWidth:"50",strokeLinecap:"round"})})]}),o.jsx("span",{className:"pass-card-bg__symbol pass-card-bg-sound-line__symbol",style:{"--symbol-url":`url("${br}")`}})]})}var p3=".ihabdevteam-core-scope .pass-card-bg-talk-v1{align-items:center;background:var(--color-pureWhite);display:flex;justify-content:center}.ihabdevteam-core-scope .pass-card-bg-talk-v1__shape{height:76px;position:absolute;width:76px}.ihabdevteam-core-scope .pass-card-bg-talk-v1__shape--left{background:linear-gradient(70deg,var(--color-main),var(--color-sub));border-radius:999px;height:92px;transform:translateX(0) rotate(120deg);width:180px}.ihabdevteam-core-scope .pass-card-bg-talk-v1__shape--right{background:var(--color-sub);border-radius:50%;height:60px;opacity:1;transform:translate(38px,12px);width:60px}";J(p3);const h3={text:"#1a1a1a",sub:"var(--color-lightGray)",logoBase:"Logo_speechear_kr",copyrightColor:"var(--color-main)"};function m3(e={}){const t=lt(h3,ga,fa);return o.jsxs("div",{ref:t,className:"pass-card-bg pass-card-bg-talk-v1","aria-hidden":"true",children:[o.jsx("div",{className:"pass-card-bg-talk-v1__shape pass-card-bg-talk-v1__shape--left"}),o.jsx("div",{className:"pass-card-bg-talk-v1__shape pass-card-bg-talk-v1__shape--right"}),o.jsx("span",{className:"pass-card-bg__symbol pass-card-bg-talk-v1__symbol",style:{"--symbol-url":`url("${br}")`}})]})}function b3(e,t){if(e){if(t==="manager_pro")return o.jsx(m3,{});if(t==="manager_standard")return o.jsx(u3,{});if(t==="manager_lite")return o.jsx(jh,{})}}function g3(e){const t=or(e);if(!t)return null;const a=t.match(/^([^\d]*)([\d.,]+)(.*)$/);if(!a)return t;const[,r,n,i]=a;return o.jsxs(o.Fragment,{children:[r&&o.jsx("span",{className:"payment-plan__pricing-symbol h4",children:r}),n,i.trim()&&o.jsx("span",{className:"payment-plan__pricing-symbol h4",children:i.trim()})]})}function Mh(e){const{t}=ge.useTranslation(),{plan:a,onSelect:r,period:n="monthly",ownedCodes:i}=e||{},s=v=>!!v&&!!i?.includes(v),c=(a.tiers||[]).some(v=>/오픈\s*특가/.test(v.label??"")&&s(v.code)),u=v=>{const C=v.prices?v.prices[n]:v.price;return C?(a.tiers||[]).some(w=>!!w.badge&&w.originals?.[n]===C):!1},d=a.colorToken?`var(--color-${a.colorToken})`:"var(--color-gray)",p=t("payment.plan.freePrice","\uBB34\uB8CC"),m=t("payment.products.mgrEnterprise.tier.price","\uBB38\uC758"),h=v=>v.prices?v.prices[n]:v.price,g=(a.tiers||[]).length>0&&(a.tiers||[]).every(v=>{const C=h(v);return C==="\uBB34\uB8CC"||C===p||C==="0\uC6D0"}),f=(a.tiers||[]).length>0&&(a.tiers||[]).every(v=>{const C=h(v);return C==="\uBB38\uC758"||C===m}),b=a.group==="org",y=b?"manager":"speechear";return o.jsxs("div",{className:"payment-plan__card",style:{borderColor:d,"--plan-color":d},children:[a.cardBadge&&o.jsx("div",{className:"payment-plan__card-badge",children:o.jsx(ht,{label:a.cardBadge,variant:"main",size:"medium",fill:"soft"})}),o.jsxs("div",{className:"payment-plan__title",children:[o.jsx("p",{className:"payment-plan__quote body-3b",style:{color:d},children:a.quote||"\xA0"}),o.jsx("h3",{className:"payment-plan__title-heading h1",children:a.tier??a.title}),o.jsx("p",{className:"payment-plan__subtitle body-3",children:a.subtitle})]}),o.jsxs("div",{className:"payment-plan__box",children:[o.jsx("span",{className:"payment-plan__box-title body-3b",children:t("payment.plan.recommendedFor","\uC774\uB7F0 \uBD84\uAED8 \uCD94\uCC9C\uD569\uB2C8\uB2E4.")}),o.jsx("ul",{className:"payment-plan__feature-list",children:(a.recommendedFor||[]).map((v,C)=>o.jsxs("li",{className:"payment-plan__feature-item body-3",children:[o.jsx(Ie,{icon:"check",size:18,className:"payment-plan__feature-check",wrapperStyle:{color:d}}),v]},C))})]}),o.jsxs("div",{className:"payment-plan__box",children:[o.jsx("span",{className:"payment-plan__box-title body-3b",children:t("payment.plan.features","\uD575\uC2EC \uAE30\uB2A5")}),o.jsx("ul",{className:"payment-plan__feature-list",children:(a.features||[]).map((v,C)=>o.jsxs("li",{className:"payment-plan__feature-item body-3",children:[o.jsx(Ie,{icon:"check",size:18,className:"payment-plan__feature-check",wrapperStyle:{color:d}}),v]},C))})]}),o.jsx("div",{className:"payment-plan__card-pricing",children:g?null:f?o.jsx(se,{className:"payment-plan__contact-button",label:t("payment.plan.contact",{defaultValue:"\uBB38\uC758\uD558\uAE30"}),variant:"main",size:56,onClick:()=>a.tiers?.[0]&&r?.({...a.tiers[0],productId:a.id,productTitle:a.title})}):o.jsx(o.Fragment,{children:o.jsx("div",{className:"payment-plan__pricing-list",children:(a.tiers||[]).map(v=>{const C=v.label||"\uC774\uC6A9\uAD8C",w=/오픈\s*특가/.test(C),x=w||v.openPromo===!0,S=C.replace(/^오픈\s*특가\s*/,"")||"\uC774\uC6A9\uAD8C",_=v.prices?v.prices[n]:v.price,k=v.badge?x?`\uC624\uD508 \uD2B9\uAC00
|
|
833
|
-
${v.badge}`:v.badge:void 0;if(w&&s(v.code))return null;if(!v.badge&&!c)return u(v)?null:o.jsxs("div",{className:`payment-plan__pricing-row payment-plan__pricing-row--static${v.highlight?" payment-plan__pricing-row--highlight":""}`,children:[o.jsx("div",{className:"payment-plan__pricing-row-title",children:o.jsx("div",{className:"payment-plan__pricing-row-label h5b",children:v.label})}),o.jsx("div",{className:"payment-plan__pricing-row-price",children:o.jsx("span",{className:"payment-plan__pricing-current h1",children:g3(_)})})]},v.id);const N=a.tier??(b?a.title:void 0),A=o.jsx(Ll,{showPrice:!0,product:{type:y,code:v.code,name:S,label:N,price:_,originalPrice:v.originals?.[n]??void 0,discountLabel:k},bg:b3(b,a.id)}),D=()=>r?.({...v,productId:a.id,productTitle:a.title,preview:A});return o.jsx("div",{className:"payment-plan__pricing-card",onClick:D,onKeyDown:r?H=>{H.target===H.currentTarget&&(H.key==="Enter"||H.key===" ")&&(H.preventDefault(),D())}:void 0,role:r?"button":void 0,tabIndex:r?0:void 0,children:A},v.id)})})})})]})}function Ph({variant:e="default"}){return o.jsxs("div",{className:`pass-card-bg pass-card-bg--${e}`,"aria-hidden":"true",children:[o.jsx("div",{className:"pass-card-bg__circle pass-card-bg__circle--1"}),o.jsx("div",{className:"pass-card-bg__circle pass-card-bg__circle--2"}),o.jsx("div",{className:"pass-card-bg__circle pass-card-bg__circle--3"})]})}var f3=".ihabdevteam-core-scope .pass-card-bg-ihab{background:var(--color-white)}.ihabdevteam-core-scope .pass-card-bg-ihab__symbol{bottom:-24px;height:140px;-o-object-fit:contain;object-fit:contain;opacity:.06;position:absolute;right:-24px;width:140px}.ihabdevteam-core-scope .pass-card-bg-ihab__symbol-top{transform:translate(-48px) rotate(-90deg);transform-origin:top right;width:126.72px}";J(f3);var Ml='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 Pl={text:"#1a1a1a",sub:"var(--color-lightGray)",logoBase:"Logo_speechear_kr",copyrightColor:"#c9c9c9"};function Rh(){const e=lt(Pl,ga,fa);return o.jsx("div",{ref:e,className:"pass-card-bg pass-card-bg-ihab","aria-hidden":"true",children:o.jsx("span",{className:"pass-card-bg__symbol pass-card-bg-ihab__symbol-top",style:{"--symbol-url":`url("${Ml}")`}})})}var v3=".ihabdevteam-core-scope .pass-card-bg-left-color-grid{background:var(--color-white)}.ihabdevteam-core-scope .pass-card-bg-left-color-grid__bar{background:linear-gradient(120deg,var(--color-main),var(--color-sub));border-radius:16px 0 0 16px;height:100%;left:0;position:absolute;top:0;width:76%}.ihabdevteam-core-scope .pass-card-bg-left-color-grid__grid{--grid-line:rgba(73,156,223,.06);background-image:linear-gradient(rgba(73,156,223,.06) 1px,transparent 0),linear-gradient(90deg,rgba(73,156,223,.06) 1px,transparent 0);background-image:linear-gradient(var(--grid-line) 1px,transparent 1px),linear-gradient(90deg,var(--grid-line) 1px,transparent 1px);background-size:24px 24px;inset:0;position:absolute}.ihabdevteam-core-scope .pass-card--expired .pass-card-bg-left-color-grid__grid{--grid-line:transparent}.ihabdevteam-core-scope .pass-card--expired .pass-card-bg-left-color-grid__bar{background:var(--pass-card-expired-shape)}";J(v3);const Rl={text:"#ffffff",sub:"var(--color-lightGray)",logoBase:"Logo_speechearManager_kr",logoColor:"_white",copyrightColor:"#ffffff"};function $h(e={}){const t=lt(Rl,ga,fa);return o.jsxs("div",{ref:t,className:"pass-card-bg pass-card-bg-left-color-grid","aria-hidden":"true",children:[o.jsx("div",{className:"pass-card-bg-left-color-grid__bar"}),o.jsx("div",{className:"pass-card-bg-left-color-grid__grid"}),o.jsx("span",{className:"pass-card-bg__symbol pass-card-bg-left-color-grid__symbol",style:{"--symbol-url":`url("${br}")`}})]})}var y3=".ihabdevteam-core-scope .shortcut-badge{align-items:center;display:inline-flex;gap:4px;pointer-events:none;z-index:10}.ihabdevteam-core-scope .shortcut-badge--top-left{left:0;position:absolute;top:0;transform:translate(-25%,-25%) scale(1);transform:translate(-25%,-25%) scale(var(--shortcut-badge-scale,1))}.ihabdevteam-core-scope .shortcut-badge--top-right{position:absolute;right:0;top:0;transform:translate(25%,-25%) scale(1);transform:translate(25%,-25%) scale(var(--shortcut-badge-scale,1))}.ihabdevteam-core-scope .shortcut-badge--bottom-left{bottom:0;left:0;position:absolute;transform:translate(-25%,25%) scale(1);transform:translate(-25%,25%) scale(var(--shortcut-badge-scale,1))}.ihabdevteam-core-scope .shortcut-badge--bottom-right{bottom:0;position:absolute;right:0;transform:translate(25%,25%) scale(1);transform:translate(25%,25%) scale(var(--shortcut-badge-scale,1))}.ihabdevteam-core-scope .shortcut-badge__group{align-items:center;display:inline-flex;gap:4px}.ihabdevteam-core-scope .shortcut-badge__plus{color:var(--color-lightGray);font-size:11px;line-height:1}.ihabdevteam-core-scope .shortcut-badge__key{align-items:center;background:var(--color-lightBlack);border:2px solid var(--color-pureWhite);border-radius:var(--radius-sm);box-sizing:border-box;color:var(--color-white);display:inline-flex;font-family:inherit;font-size:11px;font-weight:400;justify-content:center;line-height:1;min-height:24px;min-width:24px;padding:0 5px;white-space:nowrap}";J(y3);function $l({keys:e,anchor:t="top-right",scale:a,className:r=""}){const n=Array.isArray(e)?e:[e];return o.jsx("span",{className:xe("shortcut-badge",`shortcut-badge--${t}`,r),style:a===void 0?void 0:{"--shortcut-badge-scale":String(a)},children:n.map((i,s)=>o.jsxs("span",{className:"shortcut-badge__group",children:[s>0&&o.jsx("span",{className:"shortcut-badge__plus",children:"+"}),o.jsx("kbd",{className:"shortcut-badge__key",children:i})]},`${i}-${s}`))})}var x3=".ihabdevteam-core-scope .sound-compass{--scb-idle-bg:var(--color-deepWhite);--scb-idle-border:var(--color-whiteLine);--scb-idle-fg:var(--color-lightGray);--scb-active-bg:var(--color-main);--scb-active-border:var(--color-main);--scb-active-fg:#fff;--scb-played-bg:var(--color-sub);--scb-played-border:var(--color-sub);--scb-played-fg:#fff;--scb-wrong-bg:#ef4444;--scb-wrong-border:#ef4444;--scb-wrong-fg:#fff;--scb-idle-hover-bg:var(--color-whiteLine);--scb-idle-hover-border:var(--color-lightGray);--scb-idle-hover-fg:var(--scb-idle-fg);--scb-focus-ring:var(--color-main);--scc-bg:var(--color-white);--scc-border:var(--color-whiteLine);--scc-fg:var(--color-lightGray);--scc-hover-bg:var(--color-deepWhite);--scc-hover-border:var(--color-lightGray);--scc-hover-fg:var(--color-darkGray);--scc-disabled-bg:var(--color-deepWhite);--scc-disabled-border:var(--color-whiteLine);--scc-disabled-fg:var(--color-whiteLine);align-items:center;display:flex;flex-direction:column;width:100%}.ihabdevteam-core-scope .sound-compass__status{color:var(--color-lightGray);font-size:13px;letter-spacing:-.01em;margin-bottom:12px}.ihabdevteam-core-scope .sound-compass__svg{left:0;overflow:visible;position:absolute;top:0}.ihabdevteam-core-scope .sound-compass__speaker-btn{all:unset;align-items:center;border-radius:50%;border-style:solid;border-width:1px;box-sizing:border-box;display:flex;flex-direction:column;gap:1px;justify-content:center;position:relative;transition:background-color .15s,border-color .15s,color .15s;z-index:1}.ihabdevteam-core-scope .sound-compass__speaker-btn--idle{background:var(--scb-idle-bg);border-color:var(--scb-idle-border);color:var(--scb-idle-fg)}.ihabdevteam-core-scope .sound-compass__speaker-btn--active{background:var(--scb-active-bg);border-color:var(--scb-active-border);color:var(--scb-active-fg)}.ihabdevteam-core-scope .sound-compass__speaker-btn--correct,.ihabdevteam-core-scope .sound-compass__speaker-btn--played{background:var(--scb-played-bg);border-color:var(--scb-played-border);color:var(--scb-played-fg)}.ihabdevteam-core-scope .sound-compass__speaker-btn--wrong{background:var(--scb-wrong-bg);border-color:var(--scb-wrong-border);color:var(--scb-wrong-fg)}.ihabdevteam-core-scope .sound-compass__speaker-number{color:inherit;font-weight:700;line-height:1;-webkit-user-select:none;-moz-user-select:none;user-select:none}.ihabdevteam-core-scope .sound-compass__compass-wrap{flex-shrink:0;margin-bottom:24px;overflow:visible;position:relative}.ihabdevteam-core-scope .sound-compass__center{align-items:center;background:var(--scc-bg);border:1px solid var(--scc-border);border-radius:50%;color:var(--scc-fg);display:flex;justify-content:center;left:50%;pointer-events:none;position:absolute;top:50%;transform:translate(-50%,-50%)}@keyframes sound-compass-pulse{0%{opacity:0;transform:scale(.95)}8%{opacity:.45;transform:scale(1.05)}to{opacity:0;transform:scale(2.8);transform:scale(var(--sc-pulse-scale,2.8))}}.ihabdevteam-core-scope .sound-compass__center--button{-webkit-appearance:none;-moz-appearance:none;appearance:none;cursor:pointer;font:inherit;padding:0;pointer-events:auto;transition:background-color .15s,border-color .15s,color .15s}.ihabdevteam-core-scope .sound-compass__center--button:hover{background:var(--scc-hover-bg);border-color:var(--scc-hover-border);color:var(--scc-hover-fg)}.ihabdevteam-core-scope .sound-compass__center--button:focus-visible{outline:2px solid var(--scb-focus-ring);outline-offset:2px}.ihabdevteam-core-scope .sound-compass__center--disabled{background:var(--scc-disabled-bg);border-color:var(--scc-disabled-border);color:var(--scc-disabled-fg);cursor:default;pointer-events:none}.ihabdevteam-core-scope .sound-compass__pulse--center{z-index:0}.ihabdevteam-core-scope .sound-compass__pulse{animation:sound-compass-pulse 1s cubic-bezier(.33,1,.68,1) infinite;background:var(--sc-pulse-color,var(--scb-active-bg));border-radius:50%;height:40px;left:0;pointer-events:none;position:absolute;top:0;width:40px}.ihabdevteam-core-scope .sound-compass__pulse--idle{background:var(--sc-pulse-color,var(--scb-idle-bg))}.ihabdevteam-core-scope .sound-compass__pulse--active{background:var(--sc-pulse-color,var(--scb-active-bg))}.ihabdevteam-core-scope .sound-compass__pulse--correct,.ihabdevteam-core-scope .sound-compass__pulse--played{background:var(--sc-pulse-color,var(--scb-played-bg))}.ihabdevteam-core-scope .sound-compass__pulse--wrong{background:var(--sc-pulse-color,var(--scb-wrong-bg))}.ihabdevteam-core-scope .sound-compass__pulse--once{animation-duration:1s;animation-duration:var(--sc-pulse-duration-once,1s);animation-iteration-count:1}.ihabdevteam-core-scope .sound-compass__speaker-btn:hover{box-shadow:0 0 0 4px color-mix(in srgb,var(--scb-focus-ring) 14%,transparent)}.ihabdevteam-core-scope .sound-compass__speaker-btn--idle:hover{background:var(--scb-idle-hover-bg);border-color:var(--scb-idle-hover-border);color:var(--scb-idle-hover-fg)}.ihabdevteam-core-scope .sound-compass__speaker-btn:focus-visible{outline:2px solid var(--scb-focus-ring);outline-offset:2px}.ihabdevteam-core-scope .sound-compass__speaker-shortcut{pointer-events:none;z-index:2}.ihabdevteam-core-scope .sound-compass__speaker-pos{position:absolute}";J(x3);const gr=(e,t,a)=>e+(t-e)*a;function Ih({speakers:e,size:t=300,viewT:a=0,activeSpeakerId:r=null,playedIds:n,selectedId:i=null,answerId:s=null,showFeedback:c=!1,pulseSelected:u=!1,pulseSelectedDuration:d,pulseScale:p,clickable:m=!1,onSelectSpeaker:h,buttonSize:g=40,showIcon:f=!0,onCenterClick:b,centerLabel:y,centerDisabled:v=!1,centerAttention:C=!1,shortcutAnchor:w="top-right",shortcutScale:x,scaleShortcut:S=!1}){const _=Math.max(0,Math.min(1,a)),k=t/2,N=110/300,A=.18,D=I=>t*(N+(I-1)*A),H=I=>{const ee=D(I.row??1),pe=I.angleDeg*Math.PI/180;return{x:k+ee*Math.cos(pe),y:k+ee*Math.sin(pe)}},P=Math.max(...e.map(I=>I.row??1),1),T=t*.08,E=t*.1,L=t*.24,F=t-2*T,te=t-E-L,Z=t-L/2,V=l.useMemo(()=>[...new Set(e.map(I=>I.deg))].sort((I,ee)=>I-ee),[e]),j=V.length,M=Math.max(68,j>1?F/(j-1):0),$=l.useMemo(()=>new Map(V.map((I,ee)=>[I,ee])),[V]),W=I=>{const ee=$.get(I.deg)??0,pe=k+(ee-(j-1)/2)*M,ke=P>1?Math.min(68,te/(P-1)):0,Ce=ke*(P-1),R=E+(te-Ce)/2,oe=P===1?E+te*.4:R+(P-(I.row??1))*ke;return{x:pe,y:oe}},q=I=>{const ee=H(I),pe=W(I);return{x:gr(ee.x,pe.x,_),y:gr(ee.y,pe.y,_)}},X={x:k,y:gr(k,Z,_)},O=Math.round(g*1.2),Y=Math.round(Math.max(16,Math.min(80,g*.7))),z=[],re=new Map;for(const I of e){const ee=I.row??1;re.has(ee)||re.set(ee,[]),re.get(ee).push(I)}for(const[I,ee]of re.entries()){if(ee.length<2)continue;const pe=[...ee].sort((Ne,Ve)=>Ne.deg-Ve.deg),ke=pe.map(Ne=>q(Ne)),Ce=pe.map(Ne=>Ne.deg),R=Ce[Ce.length-1]-Ce[0],oe=R/(Ce.length-1),ae=360-R,ve=pe.length>=3&&oe>0&&ae<=oe*1.5,De=Math.round(D(I)*1e3)/1e3,ze=(Ne,Ve,Fe,be)=>{const Ke=(Ve.angleDeg-Ne.angleDeg+540)%360-180;if(Ke===0)return`L ${be.x} ${be.y}`;if(_===0)return`A ${De} ${De} 0 0 ${Ke>0?1:0} ${be.x} ${be.y}`;const We=(Ne.angleDeg+Ke/2)*Math.PI/180,Le={x:k+De*Math.cos(We),y:k+De*Math.sin(We)},Ge={x:(Fe.x+be.x)/2,y:(Fe.y+be.y)/2},vt={x:gr(Le.x,Ge.x,_),y:gr(Le.y,Ge.y,_)},Ue={x:2*vt.x-Ge.x,y:2*vt.y-Ge.y};return`Q ${Ue.x} ${Ue.y} ${be.x} ${be.y}`},Re=ve?[...pe,pe[0]]:pe,Me=ve?[...ke,ke[0]]:ke;let Ye=`M ${Me[0].x} ${Me[0].y}`;for(let Ne=1;Ne<Me.length;Ne++)Ye+=" "+ze(Re[Ne-1],Re[Ne],Me[Ne-1],Me[Ne]);z.push({key:`arc-${I}`,d:Ye})}const Q=l.useMemo(()=>new Set(n??[]),[n]),ne=I=>{if(r===I.id)return"active";if(c){if(I.id===s)return"correct";if(I.id===i&&i!==s)return"wrong"}return Q.has(I.id)?"played":"idle"},me=I=>r===I.id?"loop":c?I.id===s?"loop":null:u&&I.id===i?"once":null,ce=(I,ee)=>{switch(I){case"played":case"correct":return o.jsx(ed,{size:ee});case"wrong":return o.jsx(dd,{size:ee});default:return o.jsx(cd,{size:ee})}};return o.jsx("div",{className:"sound-compass",children:o.jsxs("div",{className:"sound-compass__compass-wrap",style:{width:t,height:t},children:[o.jsxs("svg",{width:t,height:t,viewBox:`0 0 ${t} ${t}`,className:"sound-compass__svg",children:[_===0&&e.map(I=>{const{x:ee,y:pe}=q(I);return o.jsx("line",{x1:X.x,y1:X.y,x2:ee,y2:pe,stroke:"#dde3ec",strokeWidth:"1"},I.id)}),z.map(I=>o.jsx("path",{d:I.d,fill:"none",stroke:"#dde3ec",strokeWidth:"1"},I.key))]}),C&&!v&&o.jsx("div",{className:"sound-compass__pulse sound-compass__pulse--active sound-compass__pulse--center",style:{width:O,height:O,left:X.x-O/2,top:X.y-O/2}}),b?o.jsx("button",{type:"button",className:`sound-compass__center sound-compass__center--button${v?" sound-compass__center--disabled":""}`,style:{width:O,height:O,left:X.x,top:X.y},"aria-label":y,"aria-disabled":v||void 0,tabIndex:v?-1:0,onClick:v?void 0:b,children:o.jsx(Wn,{size:Y,color:"currentColor",strokeWidth:1.5})}):o.jsx("div",{className:"sound-compass__center",style:{width:O,height:O,left:X.x,top:X.y},children:o.jsx(Wn,{size:Y,color:"currentColor",strokeWidth:1.5})}),e.map((I,ee)=>{const{x:pe,y:ke}=q(I),Ce=ne(I),R=me(I),oe={...x!==void 0||S?{"--shortcut-badge-scale":String(x??Math.max(.75,Math.min(3,g/56)))}:null,pointerEvents:m?"auto":"none",cursor:m?"pointer":"default",zIndex:Ce!=="idle"?10:1},ae=g,ve=Math.round(Math.max(10,Math.min(56,ae*.38))),De=Math.round(Math.max(7,Math.min(18,ae*.2))),ze=Math.round(Math.max(10,Math.min(56,ae*.4))),Re=f==="answered"&&(Ce==="played"||Ce==="correct"||Ce==="wrong"),Me=f===!0||Re,Ye=!Re;return o.jsxs("div",{className:"sound-compass__speaker-pos",style:{...oe,left:pe-ae/2,top:ke-ae/2},children:[R&&o.jsx("div",{className:`sound-compass__pulse sound-compass__pulse--${Ce}`+(R==="once"?" sound-compass__pulse--once":""),style:{width:ae,height:ae,...R==="once"&&d!==void 0?{"--sc-pulse-duration-once":`${d}ms`}:null,...p!==void 0?{"--sc-pulse-scale":String(p)}:null}}),o.jsxs("button",{type:"button",tabIndex:m?0:-1,"aria-disabled":m?void 0:!0,onClick:m?()=>h?.(I.id):void 0,className:`sound-compass__speaker-btn sound-compass__speaker-btn--${Ce}`,style:{width:ae,height:ae},"aria-label":I.label,children:[Me&&ce(Ce,ve),Ye&&o.jsx("span",{className:"sound-compass__speaker-number",style:{fontSize:f===!0?De:ze},children:ee+1})]}),I.shortcut&&o.jsx($l,{keys:I.shortcut,anchor:w,className:"sound-compass__speaker-shortcut"})]},I.id)})]})})}function zh({children:e,position:t="top-left",size:a=24,className:r=""}){return o.jsx("span",{className:xe("circle-badge","circle-badge--number",`circle-badge--${a}`,`circle-badge--${t}`,r),children:e})}var C3=".ihabdevteam-core-scope .divider--horizontal{align-items:center;border:none;border-top:1px solid var(--color-whiteLine);display:flex;width:100%}.ihabdevteam-core-scope .divider--vertical{border:none;border-left:1px solid var(--color-whiteLine);display:inline-block;height:1em;vertical-align:middle;width:1px}.ihabdevteam-core-scope .divider--labeled{border-top:none;gap:var(--spacing-s)}.ihabdevteam-core-scope .divider__line{background:var(--color-whiteLine);flex:1 1 auto;height:1px}.ihabdevteam-core-scope .divider__label{color:var(--color-gray);flex:0 0 auto;white-space:nowrap}";J(C3);function Oh({orientation:e="horizontal",label:t,className:a=""}){const r=xe("divider",`divider--${e}`,t&&e==="horizontal"?"divider--labeled":"",a);return e==="vertical"?o.jsx("div",{className:r,role:"separator","aria-orientation":"vertical"}):t?o.jsxs("div",{className:r,role:"separator","aria-orientation":"horizontal",children:[o.jsx("span",{className:"divider__line"}),o.jsx("span",{className:"divider__label caption-1",children:t}),o.jsx("span",{className:"divider__line"})]}):o.jsx("div",{className:r,role:"separator","aria-orientation":"horizontal"})}var _3='.ihabdevteam-core-scope .radio{align-items:center;cursor:pointer;display:inline-flex;gap:var(--spacing-xs);position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none}.ihabdevteam-core-scope .radio input{height:0;opacity:0;position:absolute;width:0}.ihabdevteam-core-scope .radio__dot{background:var(--color-pureWhite);border:1.5px solid var(--color-whiteLine);border-radius:50%;display:inline-block;flex-shrink:0;height:20px;position:relative;transition:border-color .15s,background .15s;width:20px}.ihabdevteam-core-scope .radio__dot:before{background:var(--color-pureWhite);border-radius:50%;content:"";inset:4px;position:absolute;transform:scale(0);transition:transform .15s}.ihabdevteam-core-scope .radio input:checked+.radio__dot{background:var(--color-main);border-color:var(--color-main)}.ihabdevteam-core-scope .radio input:checked+.radio__dot:before{transform:scale(1)}.ihabdevteam-core-scope .radio:not(.radio--disabled):hover .radio__dot{border-color:var(--color-main)}.ihabdevteam-core-scope .radio input:focus-visible+.radio__dot{outline:2px solid var(--color-main);outline-offset:2px}.ihabdevteam-core-scope .radio__label{color:var(--color-black)}.ihabdevteam-core-scope .radio--disabled{cursor:not-allowed;opacity:.45}';J(_3);function Il({checked:e,onChange:t,name:a,value:r,disabled:n=!1,label:i,className:s=""}){const c=l.useId();return o.jsxs("label",{className:`radio${n?" radio--disabled":""} ${s}`.trim(),htmlFor:c,children:[o.jsx("input",{id:c,type:"radio",name:a,value:r,checked:e,disabled:n,onChange:u=>t?.(u.target.checked)}),o.jsx("span",{className:"radio__dot"}),i&&o.jsx("span",{className:"radio__label body-2",children:i})]})}var w3=".ihabdevteam-core-scope .radio-group{display:flex}.ihabdevteam-core-scope .radio-group--vertical{flex-direction:column;gap:var(--spacing-s)}.ihabdevteam-core-scope .radio-group--horizontal{flex-direction:row;flex-wrap:wrap;gap:var(--spacing-l)}";J(w3);function Fh({options:e,value:t,onChange:a,name:r,disabled:n=!1,direction:i="vertical",className:s=""}){const c=l.useId(),u=r??`radio-group-${c}`;return o.jsx("div",{className:`radio-group radio-group--${i} ${s}`.trim(),role:"radiogroup",children:e.map(d=>o.jsx(Il,{name:u,value:d.value,checked:t===d.value,disabled:n||d.disabled,label:d.label,onChange:p=>{p&&a?.(d.value)}},d.value))})}var k3=".ihabdevteam-core-scope .alert{align-items:flex-start;background:color-mix(in srgb,var(--alert-color) 10%,transparent);border:1px solid color-mix(in srgb,var(--alert-color) 25%,transparent);border-radius:var(--radius-sm);display:flex;gap:var(--spacing-s);padding:var(--spacing-m)}.ihabdevteam-core-scope .alert__icon{align-items:center;color:var(--alert-color);display:inline-flex;flex-shrink:0}.ihabdevteam-core-scope .alert__body{display:flex;flex:1 1 auto;flex-direction:column;gap:2px;min-width:0}.ihabdevteam-core-scope .alert__header{align-items:center;display:flex;gap:var(--spacing-xs)}.ihabdevteam-core-scope .alert__message--indented{margin-left:calc(20px + var(--spacing-xs))}.ihabdevteam-core-scope .alert__title{color:var(--color-black)}.ihabdevteam-core-scope .alert__message{color:var(--color-darkGray)}.ihabdevteam-core-scope .alert__dismiss{align-items:center;background:transparent;border:none;color:var(--color-gray);cursor:pointer;display:inline-flex;flex-shrink:0;font-size:18px;height:20px;justify-content:center;line-height:1;padding:0;width:20px}.ihabdevteam-core-scope .alert__dismiss:hover{color:var(--color-darkGray)}.ihabdevteam-core-scope .alert--info{--alert-color:var(--color-main)}.ihabdevteam-core-scope .alert--success{--alert-color:var(--color-success)}.ihabdevteam-core-scope .alert--warning{--alert-color:var(--color-warn)}.ihabdevteam-core-scope .alert--danger{--alert-color:var(--color-error)}";J(k3);const S3={info:"info",success:"check-circle",warning:"alert-triangle",danger:"alert-circle"};function Wh({tone:e="info",title:t,message:a,children:r,dismissible:n=!1,onDismiss:i,className:s=""}){const{t:c}=ge.useTranslation(),[u,d]=l.useState(!1),p=l.useCallback(()=>{d(!0),i?.()},[i]);if(u)return null;const m=xe("alert",`alert--${e}`,s),h=!!t,g=!!(a||r);return o.jsxs("div",{className:m,role:"alert",children:[o.jsxs("div",{className:"alert__body",children:[o.jsxs("div",{className:"alert__header",children:[o.jsx(Ie,{icon:S3[e],size:20,className:"alert__icon"}),h&&o.jsx("span",{className:"alert__title body-2",children:t}),!h&&g&&o.jsx("div",{className:"alert__message body-3",children:a??r})]}),h&&g&&o.jsx("div",{className:"alert__message alert__message--indented body-3",children:a??r})]}),n&&o.jsx("button",{type:"button",className:"alert__dismiss",onClick:p,"aria-label":c("common.close","\uB2EB\uAE30"),children:"\xD7"})]})}var A3=".ihabdevteam-core-scope .search-summary{align-items:center;background:var(--color-deepWhite);border:1px solid var(--color-whiteLine);border-radius:var(--radius-card);box-shadow:var(--shadow-card);box-sizing:border-box;color:var(--color-gray);display:inline-flex;gap:var(--spacing-xs);max-width:100%;padding:30px 20px;text-align:left}.ihabdevteam-core-scope .search-summary__icon{color:currentColor;display:inline-flex;flex-shrink:0}.ihabdevteam-core-scope .search-summary__text{min-width:0;overflow-wrap:anywhere;word-break:keep-all}.ihabdevteam-core-scope .search-summary__em{color:var(--color-main)}.ihabdevteam-core-scope .search-summary--ready{background:var(--color-white);color:var(--color-deepGray)}.ihabdevteam-core-scope .search-summary--ready .search-summary__em{color:var(--color-main)}.ihabdevteam-core-scope .search-summary--guide{background:var(--color-deepWhite);color:var(--color-gray)}.ihabdevteam-core-scope .search-summary--error{background:var(--color-white);color:var(--color-error)}.ihabdevteam-core-scope .search-summary--error .search-summary__em{color:var(--color-error)}";J(A3);const T3={ready:"search",guide:"info",error:"circle-alert"};function B3(e,t){const a=t.filter(Boolean);if(a.length===0)return e;const r=[];let n=0,i=0;for(const s of a){const c=e.indexOf(s,n);c<0||(c>n&&r.push(e.slice(n,c)),r.push(o.jsx("strong",{className:"search-summary__em body-2",children:s},i++)),n=c+s.length)}return n<e.length&&r.push(e.slice(n)),r}function Hh({status:e="guide",label:t,children:a,emphasis:r,icon:n,className:i=""}){const s=n===!1?null:n??T3[e],c=xe("search-summary",`search-summary--${e}`,i),u=t??a,d=typeof u=="string"&&r&&r.length>0?B3(u,r):u;return o.jsxs("div",{className:c,role:"status","aria-live":"polite",children:[s!=null&&o.jsx(Ie,{icon:s,size:18,className:"search-summary__icon"}),o.jsx("span",{className:"search-summary__text body-2",children:d})]})}function So({title:e,items:t}){const{t:a}=ge.useTranslation(),{anchorRect:r,openAt:n,close:i}=ko();return o.jsxs(o.Fragment,{children:[o.jsx(se,{size:24,type:"dot",icon:"info",variant:"transparent-gray",useBorder:!1,selected:!!r,ariaLabel:a("common.info","\uC124\uBA85"),onPointerEnter:s=>n(s.currentTarget),onPointerLeave:i,onFocus:s=>n(s.currentTarget),onBlur:i}),r&&o.jsx(to,{title:e,items:t,showIndex:t.length>1,anchorRect:r,onClose:i})]})}var N3=".ihabdevteam-core-scope .tabs{display:flex;flex-direction:column;gap:var(--spacing-m)}.ihabdevteam-core-scope .tabs__list{border-bottom:1px solid var(--color-whiteLine);display:flex;gap:var(--spacing-s)}.ihabdevteam-core-scope .tabs__tab{-webkit-appearance:none;-moz-appearance:none;appearance:none;background:transparent;border:none;border-bottom:2px solid transparent;color:var(--color-gray);cursor:pointer;padding:0 var(--spacing-xs);transition:color .15s,border-color .15s;white-space:nowrap}.ihabdevteam-core-scope .tabs__list--32 .tabs__tab{height:32px}.ihabdevteam-core-scope .tabs__list--40 .tabs__tab{height:40px}.ihabdevteam-core-scope .tabs__list--48 .tabs__tab{height:48px}.ihabdevteam-core-scope .tabs__tab:hover:not(:disabled){color:var(--color-darkGray)}.ihabdevteam-core-scope .tabs__tab:focus-visible{outline:2px solid var(--color-main);outline-offset:2px}.ihabdevteam-core-scope .tabs__tab--active{border-bottom-color:var(--color-main);color:var(--color-main)}.ihabdevteam-core-scope .tabs__tab:disabled{color:var(--color-disabled);cursor:not-allowed}.ihabdevteam-core-scope .tabs__panel{outline:none}.ihabdevteam-core-scope .tabs__panel:focus-visible{outline:2px solid var(--color-main);outline-offset:2px}";J(N3);function Vh({items:e=[],value:t,onChange:a,className:r="",size:n=40}){const i=l.useId(),{t:s}=ge.useTranslation(),c=l.useRef(null),u=t??e[0]?.key,d=()=>Array.from(c.current?.querySelectorAll('[role="tab"]:not(:disabled)')??[]),p=(g,f=d())=>{if(f.length===0)return;const b=(g%f.length+f.length)%f.length;f[b]?.focus(),f[b]?.click()},m=g=>{if(!["ArrowRight","ArrowDown","ArrowLeft","ArrowUp","Home","End"].includes(g.key))return;g.preventDefault();const f=d(),b=f.indexOf(g.currentTarget);g.key==="ArrowRight"||g.key==="ArrowDown"?p(b+1,f):g.key==="ArrowLeft"||g.key==="ArrowUp"?p(b-1,f):g.key==="Home"?p(0,f):p(f.length-1,f)},h=e.find(g=>g.key===u);return o.jsxs("div",{className:`tabs ${r}`.trim(),children:[o.jsx("div",{ref:c,className:`tabs__list tabs__list--${n}`,role:"tablist","aria-label":s("tabs.ariaLabel","\uD0ED"),children:e.map(g=>o.jsx("button",{id:`tabs__tab-${i}-${g.key}`,type:"button",role:"tab","aria-selected":g.key===u,"aria-controls":`tabs__panel-${i}-${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:m,children:g.label},g.key))}),h&&o.jsx("div",{id:`tabs__panel-${i}-${h.key}`,role:"tabpanel","aria-labelledby":`tabs__tab-${i}-${h.key}`,tabIndex:0,className:"tabs__panel",children:h.panel},h.key)]})}var D3=".ihabdevteam-core-scope .avatar{align-items:center;background:var(--color-lightGray-a10);color:var(--color-gray);display:inline-flex;flex-shrink:0;height:var(--avatar-size);justify-content:center;overflow:hidden;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;width:var(--avatar-size)}.ihabdevteam-core-scope .avatar--circle{border-radius:50%}.ihabdevteam-core-scope .avatar--rounded-square{border-radius:var(--radius-card)}.ihabdevteam-core-scope .avatar--xs{--avatar-size:24px}.ihabdevteam-core-scope .avatar--sm{--avatar-size:32px}.ihabdevteam-core-scope .avatar--md{--avatar-size:40px}.ihabdevteam-core-scope .avatar--lg{--avatar-size:56px}.ihabdevteam-core-scope .avatar--xl{--avatar-size:80px}.ihabdevteam-core-scope .avatar__image{height:100%;-o-object-fit:cover;object-fit:cover;width:100%}.ihabdevteam-core-scope .avatar__initials{font-size:calc(var(--avatar-size)*.4);font-weight:600;line-height:1}.ihabdevteam-core-scope .avatar__icon{align-items:center;display:inline-flex;justify-content:center}";J(D3);const E3={xs:12,sm:16,md:20,lg:28,xl:36};function j3(e){const t=e.trim().split(/\s+/).filter(Boolean);return t.length===0?"":t.length===1?[...t[0]].slice(0,2).join("").toUpperCase():([...t[0]][0]+[...t[t.length-1]][0]).toUpperCase()}function Gh({src:e,name:t,size:a="md",shape:r="circle",className:n=""}){const{t:i}=ge.useTranslation(),[s,c]=l.useState(!1),u=t?j3(t):"",d=!!e&&!s,p=!d&&!!u,m=t||i("avatar.ariaLabel","\uC0AC\uC6A9\uC790 \uC544\uBC14\uD0C0");return o.jsxs("span",{className:`avatar avatar--${a} avatar--${r} ${n}`.trim(),role:"img","aria-label":m,children:[d&&o.jsx("img",{className:"avatar__image",src:e,alt:m,onError:()=>c(!0)}),!d&&p&&o.jsx("span",{className:"avatar__initials","aria-hidden":"true",children:u}),!d&&!p&&o.jsx(Ie,{icon:"user-round",size:E3[a],className:"avatar__icon"})]})}var L3=".ihabdevteam-core-scope .file-upload{display:flex;flex-direction:column;gap:var(--spacing-s)}.ihabdevteam-core-scope .file-upload__dropzone{align-items:center;background:var(--color-deepWhite);border:1px dashed var(--color-whiteLine);border-radius:var(--radius-card);cursor:pointer;display:flex;flex-direction:column;gap:var(--spacing-xs);justify-content:center;padding:var(--spacing-xl);position:relative;transition:border-color .15s,background .15s}.ihabdevteam-core-scope .file-upload__dropzone:hover:not(.file-upload__dropzone--disabled){border-color:var(--color-main)}.ihabdevteam-core-scope .file-upload__dropzone:focus-visible{outline:2px solid var(--color-main);outline-offset:2px}.ihabdevteam-core-scope .file-upload__dropzone--dragging{background:var(--color-main-a10);border-color:var(--color-main)}.ihabdevteam-core-scope .file-upload__dropzone--disabled{cursor:not-allowed;opacity:.5}.ihabdevteam-core-scope .file-upload__icon{color:var(--color-gray)}.ihabdevteam-core-scope .file-upload__prompt{color:var(--color-gray);text-align:center}.ihabdevteam-core-scope .file-upload__browse-button{-webkit-appearance:none;-moz-appearance:none;appearance:none;background:var(--color-pureWhite);border:1px solid var(--color-whiteLine);border-radius:var(--radius-sm);color:var(--color-main);cursor:pointer;padding:var(--spacing-xs) var(--spacing-m)}.ihabdevteam-core-scope .file-upload__browse-button:disabled{color:var(--color-disabled);cursor:not-allowed}.ihabdevteam-core-scope .file-upload__input{height:1px;opacity:0;overflow:hidden;pointer-events:none;position:absolute;width:1px}.ihabdevteam-core-scope .file-upload__list{display:flex;flex-direction:column;gap:var(--spacing-xs);list-style:none;margin:0;padding:0}.ihabdevteam-core-scope .file-upload__list-item{align-items:center;background:var(--color-deepWhite);border-radius:var(--radius-sm);display:flex;gap:var(--spacing-s);justify-content:space-between;padding:var(--spacing-xs) var(--spacing-s)}.ihabdevteam-core-scope .file-upload__file-name{color:var(--color-darkGray);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ihabdevteam-core-scope .file-upload__remove-button{align-items:center;-webkit-appearance:none;-moz-appearance:none;appearance:none;background:transparent;border:none;color:var(--color-gray);cursor:pointer;display:inline-flex;flex-shrink:0;justify-content:center}.ihabdevteam-core-scope .file-upload__remove-button:hover{color:var(--color-error)}";J(L3);function M3(e,t){if(!t)return!0;const a=t.split(",").map(i=>i.trim()).filter(Boolean);if(a.length===0)return!0;const r=e.name.toLowerCase(),n=e.type.toLowerCase();return a.some(i=>{const s=i.toLowerCase();return s.startsWith(".")?r.endsWith(s):s.endsWith("/*")?n.startsWith(s.slice(0,-1)):n===s})}function qh({onFilesSelected:e,accept:t,multiple:a=!1,disabled:r=!1,showFileList:n=!0,files:i,onRemove:s,className:c=""}){const{t:u}=ge.useTranslation(),d=l.useRef(null),[p,m]=l.useState(!1),[h,g]=l.useState([]),f=i??h,b=_=>{if(!_||_.length===0)return;const k=Array.from(_).filter(A=>M3(A,t));if(k.length===0)return;const N=a?k:k.slice(0,1);if(i===void 0){const A=a?[...f,...N]:N;g(A),e?.(A)}else e?.(N)},y=_=>{_.preventDefault(),!r&&m(!0)},v=_=>{_.preventDefault(),m(!1)},C=_=>{_.preventDefault(),m(!1),!r&&b(_.dataTransfer.files)},w=_=>{b(_.target.files),_.target.value=""},x=()=>{r||d.current?.click()},S=_=>{if(s){s(_);return}if(i===void 0){const k=f.filter((N,A)=>A!==_);g(k),e?.(k)}};return o.jsxs("div",{className:`file-upload ${c}`.trim(),children:[o.jsxs("div",{className:xe("file-upload__dropzone",p&&"file-upload__dropzone--dragging",r&&"file-upload__dropzone--disabled"),role:"button",tabIndex:r?-1:0,"aria-disabled":r,onClick:x,onKeyDown:_=>{(_.key==="Enter"||_.key===" ")&&(_.preventDefault(),x())},onDragOver:y,onDragLeave:v,onDrop:C,children:[o.jsx(Ie,{icon:"upload",size:24,className:"file-upload__icon"}),o.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")}),o.jsx("button",{type:"button",className:"file-upload__browse-button body-3",disabled:r,onClick:_=>{_.stopPropagation(),x()},children:u("fileUpload.browseButton","\uD30C\uC77C \uC120\uD0DD")}),o.jsx("input",{ref:d,type:"file",className:"file-upload__input",accept:t,multiple:a,disabled:r,onChange:w,tabIndex:-1})]}),n&&f.length>0&&o.jsx("ul",{className:"file-upload__list",children:f.map((_,k)=>o.jsxs("li",{className:"file-upload__list-item body-3",children:[o.jsx("span",{className:"file-upload__file-name body-3",children:_.name}),o.jsx("button",{type:"button",className:"file-upload__remove-button","aria-label":u("fileUpload.removeAriaLabel",{name:_.name}),onClick:()=>S(k),children:o.jsx(Ie,{icon:"x",size:14})})]},`${_.name}-${k}`))})]})}var P3=".ihabdevteam-core-scope .breadcrumb{align-items:center;display:inline-flex}.ihabdevteam-core-scope .breadcrumb__list{align-items:center;display:flex;flex-wrap:wrap;gap:var(--spacing-xs);list-style:none;margin:0;padding:0}.ihabdevteam-core-scope .breadcrumb__item{align-items:center;display:inline-flex;gap:var(--spacing-xs)}.ihabdevteam-core-scope .breadcrumb__link{align-items:center;background:none;border:none;color:var(--color-gray);cursor:pointer;display:inline-flex;justify-content:center;margin:0;min-height:24px;min-width:24px;padding:0}.ihabdevteam-core-scope .breadcrumb__link:hover{color:var(--color-main);text-decoration:underline}.ihabdevteam-core-scope .breadcrumb__link:focus-visible{border-radius:var(--radius-xs);outline:2px solid var(--color-main);outline-offset:2px}.ihabdevteam-core-scope .breadcrumb__current{color:var(--color-darkGray)}.ihabdevteam-core-scope .breadcrumb__separator{align-items:center;color:var(--color-disabled);display:inline-flex;flex-shrink:0}";J(P3);function Yh({items:e,className:t=""}){return o.jsx("nav",{className:`breadcrumb ${t}`.trim(),"aria-label":"breadcrumb",children:o.jsx("ol",{className:"breadcrumb__list",children:e.map((a,r)=>{const n=r===e.length-1;return o.jsxs("li",{className:"breadcrumb__item",children:[n?o.jsx("span",{className:"breadcrumb__current body-3","aria-current":"page",children:a.label}):o.jsx("button",{type:"button",className:"breadcrumb__link body-3",onClick:a.onClick,children:a.label}),!n&&o.jsx(Ie,{icon:"chevron-right",size:14,className:"breadcrumb__separator"})]},r)})})})}var R3=".ihabdevteam-core-scope .rating{--rating-color:var(--color-warn);--rating-empty-color:var(--color-whiteLine);align-items:center;display:inline-flex;gap:2px}.ihabdevteam-core-scope .rating__item{align-items:center;background:none;border:none;display:inline-flex;justify-content:center;line-height:0;margin:0;padding:0}.ihabdevteam-core-scope .rating__item--interactive{cursor:pointer}.ihabdevteam-core-scope .rating__item--interactive:focus-visible{border-radius:var(--radius-xs);outline:2px solid var(--color-main);outline-offset:2px}.ihabdevteam-core-scope .rating--readOnly .rating__item{cursor:default}.ihabdevteam-core-scope .rating__star-wrap{display:inline-flex;line-height:0;position:relative}.ihabdevteam-core-scope .rating__star--empty{color:var(--rating-empty-color)}.ihabdevteam-core-scope .rating__star--empty svg{fill:var(--rating-empty-color)}.ihabdevteam-core-scope .rating__star-fill{display:inline-flex;height:100%;left:0;overflow:hidden;position:absolute;top:0;white-space:nowrap;width:100%}.ihabdevteam-core-scope .rating__star-fill--half{width:50%}.ihabdevteam-core-scope .rating__star--filled{color:var(--rating-color)}.ihabdevteam-core-scope .rating__star--filled svg{fill:var(--rating-color)}";J(R3);const $3={small:14,medium:20,large:28};function Uh({value:e,onChange:t,max:a=5,readOnly:r=!1,size:n="medium",ariaLabel:i,className:s=""}){const{t:c}=ge.useTranslation(),u=r||!t,[d,p]=l.useState(null),m=d??e,h=$3[n],g=x=>{u||t?.(x)},f=x=>{u||p(x)},b=l.useRef(null),y=x=>{const S=Math.min(a,Math.max(1,x));t?.(S),Array.from(b.current?.querySelectorAll("[data-star]")??[]).find(_=>_.dataset.star===String(S))?.focus()},v=x=>{if(!u){switch(x.key){case"ArrowRight":case"ArrowUp":y((e||0)+1);break;case"ArrowLeft":case"ArrowDown":y((e||1)-1);break;case"Home":y(1);break;case"End":y(a);break;default:return}x.preventDefault()}},C=e>=1&&e<=a?Math.round(e):1,w=()=>{u||p(null)};return o.jsx("div",{className:`rating rating--${n}${u?" rating--readOnly":""} ${s}`.trim(),ref:b,onKeyDown:v,role:u?"img":"radiogroup","aria-label":u?c("rating.valueLabel",{value:e,max:a}):i??c("rating.groupLabel","\uBCC4\uC810"),onMouseLeave:w,children:Array.from({length:a},(x,S)=>{const _=S+1,k=Math.max(0,Math.min(1,m-S)),N=k>0&&k<1,A=o.jsxs("span",{className:"rating__star-wrap",children:[o.jsx(Ie,{icon:"star",size:h,className:"rating__star rating__star--empty"}),k>0&&o.jsx("span",{className:`rating__star-fill${N?" rating__star-fill--half":""}`,children:o.jsx(Ie,{icon:"star",size:h,className:"rating__star rating__star--filled"})})]});return u?o.jsx("span",{className:"rating__item","aria-hidden":"true",children:A},_):o.jsx("button",{type:"button",className:"rating__item rating__item--interactive",role:"radio","aria-checked":e===_,"aria-label":c("rating.starLabel",{n:_}),"data-star":_,tabIndex:_===C?0:-1,onClick:()=>g(_),onMouseEnter:()=>f(_),children:A},_)})})}var I3=".ihabdevteam-core-scope .color-picker{display:flex;flex-wrap:wrap;gap:var(--spacing-xs)}.ihabdevteam-core-scope .color-picker__swatch{align-items:center;border:none;cursor:pointer;display:inline-flex;justify-content:center;padding:0;position:relative;transition:transform .12s,box-shadow .12s}.ihabdevteam-core-scope .color-picker__swatch--32{border-radius:8px;height:32px;width:32px}.ihabdevteam-core-scope .color-picker__swatch--40{border-radius:10px;height:40px;width:40px}.ihabdevteam-core-scope .color-picker__swatch--48{border-radius:12px;height:48px;width:48px}.ihabdevteam-core-scope .color-picker__swatch:hover{transform:scale(1.08)}.ihabdevteam-core-scope .color-picker__swatch:focus-visible{outline:2px solid var(--color-main);outline-offset:2px}.ihabdevteam-core-scope .color-picker__check{color:#fff}.ihabdevteam-core-scope .color-picker__check svg{display:block}";J(I3);const z3=20,O3=["#499cdf","#4dcdc0","#2fae9e","#e6b94e","#d9534f","#e06b68","#bfc7d1"];function Kh({value:e,onChange:t,palette:a=O3,size:r=40,className:n=""}){const{t:i}=ge.useTranslation();return o.jsx("div",{className:`color-picker ${n}`.trim(),role:"group",children:a.map(s=>{const c=e?.toLowerCase()===s.toLowerCase();return o.jsx("button",{type:"button",className:`color-picker__swatch color-picker__swatch--${r}`,style:{backgroundColor:s},onClick:()=>t(s),"aria-pressed":c,"aria-label":c?`${s} ${i("colorPicker.selected","\uC120\uD0DD\uB428")}`:s,children:c&&o.jsx(Ie,{icon:"check",size:z3,className:"color-picker__check"})},s)})})}var F3=".ihabdevteam-core-scope .count-tile{background:var(--color-deepWhite);border:1px solid var(--color-darkWhite);border-radius:16px;box-sizing:border-box;flex-shrink:0;height:72px;padding:12px;position:relative;transition:border-color .15s,background .15s;width:72px}.ihabdevteam-core-scope .count-tile__icon{color:var(--color-main);left:12px;position:absolute;top:12px}.ihabdevteam-core-scope .count-tile__count{bottom:12px;color:var(--color-darkGray);line-height:1;position:absolute;right:12px}.ihabdevteam-core-scope .count-tile--clickable{cursor:pointer}.ihabdevteam-core-scope .count-tile--clickable:hover{background:var(--color-white)}@media (max-width:767px){.ihabdevteam-core-scope .count-tile{border-radius:14px;height:60px;padding:10px;width:60px}.ihabdevteam-core-scope .count-tile__icon{left:8px;top:8px}.ihabdevteam-core-scope .count-tile__count{bottom:8px;right:8px}}";J(F3);function Zh({icon:e,count:t,title:a,className:r="",onClick:n,onMouseEnter:i,onMouseLeave:s}){const c=xe("count-tile",n&&"count-tile--clickable",r);return o.jsxs("div",{className:c,onClick:n,onKeyDown:n?u=>{u.key!=="Enter"&&u.key!==" "||(u.preventDefault(),u.currentTarget.click())}:void 0,onMouseEnter:i,onMouseLeave:s,role:n?"button":"img",tabIndex:n?0:void 0,"aria-label":a?`${a} ${t}`:String(t),children:[o.jsx(Ie,{icon:e,size:20,className:"count-tile__icon"}),o.jsx("span",{className:"count-tile__count h5","aria-hidden":"true",children:t})]})}function zl(e,t=!0){l.useEffect(()=>{if(!t)return;const a=e.current;if(!a)return;const r=n=>{if(n.key!=="Tab")return;const i=Array.from(a.querySelectorAll(fn)).filter(u=>!u.closest('[aria-hidden="true"]'));if(!i.length){n.preventDefault();return}const s=i[0],c=i[i.length-1];n.shiftKey&&document.activeElement===s?(n.preventDefault(),c.focus()):!n.shiftKey&&document.activeElement===c&&(n.preventDefault(),s.focus())};return a.addEventListener("keydown",r),()=>a.removeEventListener("keydown",r)},[e,t])}const fn='a[href], button:not([disabled]), input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex="-1"])';var W3=".ihabdevteam-core-scope .dialog{align-items:center;background:rgba(16,24,32,.6);display:flex;inset:0;justify-content:center;padding:32px;position:fixed;z-index:2200;z-index:var(--z-modal,2200)}@supports (color:rgb(0 0 0/0)) and (top:var(--f )){.ihabdevteam-core-scope .dialog{background:var(--color-popupBlock,rgba(16,24,32,.6))}}.ihabdevteam-core-scope .dialog__surface{background:#fff;background:var(--color-pureWhite,#fff);border-radius:20px;border-radius:var(--radius-dialog,20px);box-shadow:var(--shadow-popup);max-height:calc(100vh - 64px);outline:none;overflow:auto;position:relative;width:100%}.ihabdevteam-core-scope .dialog__surface--sm{max-width:420px}.ihabdevteam-core-scope .dialog__surface--md{max-width:640px}.ihabdevteam-core-scope .dialog__surface--lg{max-width:1000px}.ihabdevteam-core-scope .dialog__surface--full{background:none;box-shadow:none;max-width:1000px;overflow:visible}.ihabdevteam-core-scope .dialog__header{padding:24px 24px 0}.ihabdevteam-core-scope .dialog__title{color:var(--color-black);margin:0}.ihabdevteam-core-scope .dialog__close{align-items:center;background:none;border:0;border-radius:999px;border-radius:var(--radius-full,999px);color:var(--color-gray);cursor:pointer;display:flex;height:40px;justify-content:center;position:absolute;right:12px;top:12px;transition:background .15s ease,color .15s ease;width:40px}.ihabdevteam-core-scope .dialog__close:hover{background:var(--color-darkWhite);color:var(--color-black)}.ihabdevteam-core-scope .dialog__close>svg{height:20px;width:20px}.ihabdevteam-core-scope .dialog__surface--full .dialog__close{background:hsla(0,0%,100%,.1);color:var(--color-pureWhite);right:0;top:-48px}.ihabdevteam-core-scope .dialog__surface--full .dialog__close:hover{background:hsla(0,0%,100%,.2)}.ihabdevteam-core-scope .dialog__body{padding:24px}.ihabdevteam-core-scope .dialog__surface--full .dialog__body{padding:0}@media (max-width:639px){.ihabdevteam-core-scope .dialog{padding:16px}.ihabdevteam-core-scope .dialog__body{padding:20px}}";J(W3);function H3(){return o.jsx("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round","aria-hidden":!0,children:o.jsx("path",{d:"M6 6l12 12M18 6 6 18"})})}function Xh({open:e,onClose:t,ariaLabel:a,title:r,children:n,size:i="md",closeOnBackdrop:s=!0,closeOnEscape:c=!0,showClose:u=!0,className:d,contentClassName:p}){const{t:m}=ge.useTranslation(),h=l.useId(),g=l.useRef(null),f=l.useCallback(()=>t(),[t]);return l.useEffect(()=>{if(!e)return;const b=document.activeElement,{overflow:y}=document.body.style;return document.body.style.overflow="hidden",g.current?.focus(),()=>{document.body.style.overflow=y,b?.focus?.()}},[e]),l.useEffect(()=>{if(!(!e||!c))return xl(f)},[e,c,f]),zl(g,e),!e||typeof document>"u"?null:qt.createPortal(o.jsx("div",{className:xe("dialog",d),onClick:s?f:void 0,children:o.jsxs("div",{ref:g,role:"dialog","aria-modal":"true","aria-label":r?void 0:a,"aria-labelledby":r?h:void 0,tabIndex:-1,className:xe("dialog__surface",`dialog__surface--${i}`,p),onClick:b=>b.stopPropagation(),children:[r?o.jsx("div",{className:"dialog__header",children:o.jsx("h2",{id:h,className:"dialog__title h4b",children:r})}):null,u?o.jsx("button",{type:"button",className:"dialog__close","aria-label":m("common.close","\uB2EB\uAE30"),onClick:f,children:o.jsx(H3,{})}):null,o.jsx("div",{className:"dialog__body",children:n})]})}),document.body)}var V3=".ihabdevteam-core-scope .board{width:100%}.ihabdevteam-core-scope .board__head{align-items:flex-end;display:flex;flex-wrap:wrap;gap:var(--spacing-m);justify-content:space-between;margin-bottom:var(--spacing-m)}.ihabdevteam-core-scope .board__title{color:var(--color-text-primary);font-size:var(--text-body-2-size);font-weight:500;line-height:var(--text-body-2-line);margin:0}.ihabdevteam-core-scope .board__toolbar{align-items:center;display:flex;gap:var(--spacing-xs)}.ihabdevteam-core-scope .board__table{border-collapse:collapse;border-top:1px solid var(--color-text-primary);text-align:left;width:100%}.ihabdevteam-core-scope .board__caption{clip-path:inset(50%);height:1px;overflow:hidden;position:absolute;white-space:nowrap;width:1px}.ihabdevteam-core-scope .board__th{border-bottom:1px solid var(--color-border);color:var(--color-text-primary);font-size:var(--text-body-3-size);font-weight:500;line-height:var(--text-body-3-line);padding:14px 0}.ihabdevteam-core-scope .board__row{border-bottom:1px solid var(--color-border);transition:background .15s ease;transition:background var(--duration-fast,.15s) var(--ease-out,ease)}.ihabdevteam-core-scope .board__row:hover{background:var(--color-surface-raised)}.ihabdevteam-core-scope .board__td{color:var(--color-text-primary);font-size:var(--text-body-3-size);line-height:var(--text-body-3-line);padding:var(--spacing-m) 0}.ihabdevteam-core-scope .board__cell--left{text-align:left}.ihabdevteam-core-scope .board__cell--center{text-align:center}.ihabdevteam-core-scope .board__cell--right{text-align:right}.ihabdevteam-core-scope .board__state{color:var(--color-text-secondary);font-size:var(--text-body-3-size);padding:56px 0;text-align:center}";J(V3);function Qh({columns:e,rows:t,rowKey:a,title:r,toolbar:n,empty:i="\uB4F1\uB85D\uB41C \uD56D\uBAA9\uC774 \uC5C6\uC2B5\uB2C8\uB2E4.",loading:s,caption:c,className:u=""}){const d=!s&&t.length===0;return o.jsxs("div",{className:xe("board",u),children:[r||n?o.jsxs("div",{className:"board__head",children:[r?o.jsx("h2",{className:"board__title",children:r}):o.jsx("span",{}),n?o.jsx("div",{className:"board__toolbar",children:n}):null]}):null,o.jsxs("table",{className:"board__table",children:[c?o.jsx("caption",{className:"board__caption",children:c}):null,o.jsx("thead",{children:o.jsx("tr",{children:e.map(p=>o.jsx("th",{scope:"col",className:xe("board__th",`board__cell--${p.headerAlign??p.align??"left"}`),style:p.width?{width:p.width}:void 0,children:p.header},p.key))})}),o.jsx("tbody",{children:s?o.jsx("tr",{children:o.jsx("td",{className:"board__state",colSpan:e.length,children:s})}):d?o.jsx("tr",{children:o.jsx("td",{className:"board__state",colSpan:e.length,children:i})}):t.map((p,m)=>o.jsx("tr",{className:"board__row",children:e.map(h=>o.jsx("td",{className:xe("board__td",`board__cell--${h.align??"left"}`),children:h.render(p,m)},h.key))},a(p,m)))})]})]})}var G3=".ihabdevteam-core-scope .person-card{display:flex;flex-direction:column}.ihabdevteam-core-scope .person-card__photo{background:var(--color-surface-raised);border-radius:var(--radius-full);flex-shrink:0;margin-inline:auto;max-width:100%;overflow:hidden}.ihabdevteam-core-scope .person-card__photo>*,.ihabdevteam-core-scope .person-card__photo>img{height:100%;-o-object-fit:cover;object-fit:cover;width:100%}.ihabdevteam-core-scope .person-card__name{color:var(--color-text-primary);font-size:var(--text-h4-size);font-weight:var(--text-h4-weight-bold);line-height:var(--text-h4-line);margin-top:var(--spacing-xl);text-align:center}.ihabdevteam-core-scope .person-card__role{color:var(--color-darkGray);font-size:var(--text-body-3-size);font-weight:var(--text-body-3-weight);line-height:var(--text-body-3-line);margin-top:6px;text-align:center}.ihabdevteam-core-scope .person-card__credentials{display:flex;flex-direction:column;gap:var(--spacing-xs);list-style:none;margin:var(--spacing-xl) auto 0;max-width:100%;padding:0;text-align:left;width:-moz-fit-content;width:fit-content}.ihabdevteam-core-scope .person-card__credentials>li{color:var(--color-darkGray);font-size:var(--text-body-3-size);line-height:var(--text-body-3-line)}@media (max-width:767px){.ihabdevteam-core-scope .person-card__credentials,.ihabdevteam-core-scope .person-card__name{margin-top:var(--spacing-l)}}";J(G3);function Jh({name:e,role:t,photo:a,media:r,credentials:n,size:i=190,className:s=""}){return o.jsxs("div",{className:xe("person-card",s),children:[o.jsx("div",{className:"person-card__photo",style:{width:i,height:i},children:r??(a?o.jsx("img",{src:a,alt:t?`${e} ${t}`:e}):null)}),o.jsx("h3",{className:"person-card__name",children:e}),t?o.jsx("p",{className:"person-card__role",children:t}):null,n?.length?o.jsx("ul",{className:"person-card__credentials",children:n.map(c=>o.jsx("li",{children:c},c))}):null]})}var q3=".ihabdevteam-core-scope .timeline{display:flex;flex-direction:column;gap:56px}.ihabdevteam-core-scope .timeline__title{color:var(--color-text-primary);font-size:var(--text-h1-size);font-weight:var(--text-h1-weight);letter-spacing:var(--text-h1-spacing);line-height:var(--text-h1-line);margin:0}.ihabdevteam-core-scope .timeline__rows{border-top:1px solid var(--color-border);list-style:none;margin:var(--spacing-m) 0 0;padding:0}.ihabdevteam-core-scope .timeline__row{border-bottom:1px solid var(--color-border);display:flex;gap:40px;padding:var(--spacing-l) 0}.ihabdevteam-core-scope .timeline__label{color:var(--color-text-primary);flex-shrink:0;font-size:var(--text-body-2-size);font-weight:var(--text-body-2-weight-bold);line-height:var(--text-body-2-line);padding-top:1px;width:28px}.ihabdevteam-core-scope .timeline__items{display:flex;flex-direction:column;gap:4px}.ihabdevteam-core-scope .timeline__items>p{color:var(--color-text-primary);font-size:var(--text-body-2-size);font-weight:var(--text-body-2-weight);line-height:var(--text-body-2-line);margin:0}@media (max-width:767px){.ihabdevteam-core-scope .timeline{gap:40px}.ihabdevteam-core-scope .timeline__row{gap:var(--spacing-xl)}}";J(q3);function em({groups:e,className:t=""}){return o.jsx("div",{className:xe("timeline",t),children:e.map(a=>o.jsxs("section",{className:"timeline__group",children:[o.jsx("h3",{className:"timeline__title",children:a.title}),o.jsx("ul",{className:"timeline__rows",children:a.entries.map((r,n)=>o.jsxs("li",{className:"timeline__row",children:[r.label?o.jsx("span",{className:"timeline__label",children:r.label}):null,o.jsx("div",{className:"timeline__items",children:r.items.map((i,s)=>o.jsx("p",{children:i},s))})]},`${r.label??""}-${n}`))})]},a.title))})}var Y3=".ihabdevteam-core-scope .publication-card{background:var(--color-surface-raised);border-radius:var(--radius-m);box-sizing:border-box;display:flex;flex-direction:column;padding:36px var(--spacing-xl) 32px;position:relative}.ihabdevteam-core-scope .publication-card__badge{height:88px;pointer-events:none;position:absolute;right:var(--spacing-xl);top:0}.ihabdevteam-core-scope .publication-card__badge>*,.ihabdevteam-core-scope .publication-card__badge>img{height:100%;width:auto}.ihabdevteam-core-scope .publication-card__title{color:var(--color-text-primary);font-size:var(--text-h4-size);font-weight:var(--text-h4-weight-bold);line-height:var(--text-h4-line);margin:0;padding-right:96px;position:relative;z-index:1}.ihabdevteam-core-scope .publication-card__kind{color:var(--color-darkGray);font-size:var(--text-body-3-size);font-weight:var(--text-body-3-weight);line-height:var(--text-body-3-line);margin:var(--spacing-m) 0 0}.ihabdevteam-core-scope .publication-card__body{color:var(--color-darkGray);font-size:var(--text-caption-1-size);line-height:1.65;margin:var(--spacing-m) 0 0}@media (max-width:767px){.ihabdevteam-core-scope .publication-card{padding:32px var(--spacing-l) 28px}.ihabdevteam-core-scope .publication-card__kind{margin-top:var(--spacing-m)}}.ihabdevteam-core-scope .publication-card__footer{margin-top:auto;padding-top:var(--spacing-l)}";J(Y3);function tm({title:e,kind:t,body:a,badge:r,badgeSrc:n,footer:i,width:s,className:c=""}){const u=r??(n?o.jsx("img",{src:n,alt:""}):null);return o.jsxs("div",{className:xe("publication-card",c),style:s?{width:s,flexShrink:0}:void 0,children:[u?o.jsx("div",{className:"publication-card__badge","aria-hidden":"true",children:u}):null,o.jsx("h3",{className:"publication-card__title",children:e}),t?o.jsx("p",{className:"publication-card__kind",children:t}):null,o.jsx("p",{className:"publication-card__body",children:a}),i?o.jsx("div",{className:"publication-card__footer",children:i}):null]})}var U3="@keyframes splash-logo{0%{opacity:0;transform:scale(.92)}18%{opacity:1;transform:scale(1)}75%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(1.04)}}.ihabdevteam-core-scope .splash-logo{align-items:center;background:var(--color-pureWhite);display:flex;inset:0;justify-content:center;position:absolute;z-index:1000;z-index:var(--z-modal,1000)}.ihabdevteam-core-scope .splash-logo__image{animation:splash-logo 3s cubic-bezier(.4,0,.2,1) forwards;animation:splash-logo var(--splash-logo-duration,3s) cubic-bezier(.4,0,.2,1) forwards;height:80px;height:var(--splash-logo-height,80px);width:auto}@media (prefers-reduced-motion:reduce){.ihabdevteam-core-scope .splash-logo__image{animation:none;opacity:1}}";J(U3);function am({logo:e,alt:t,onDone:a,durationMs:r=3e3}){const n=Js(a);return l.useEffect(()=>{if(!n.current)return;const i=setTimeout(()=>n.current?.(),r);return()=>clearTimeout(i)},[r,n]),o.jsx("div",{className:"splash-logo",style:{"--splash-logo-duration":`${r}ms`},"aria-hidden":"true",children:o.jsx("img",{src:e,alt:t,className:"splash-logo__image"})})}var K3='.ihabdevteam-core-scope .section-header{text-align:center}.ihabdevteam-core-scope .section-header__eyebrow{align-items:center;display:flex;font-size:var(--text-caption-1-size);font-weight:600;gap:10px;justify-content:center;letter-spacing:.18em;line-height:var(--text-caption-1-line);margin:0}.ihabdevteam-core-scope .section-header__index{font-feature-settings:"tnum";font-variant-numeric:tabular-nums;opacity:.6}.ihabdevteam-core-scope .section-header__rule{background:currentColor;height:1px;opacity:.3;width:24px}.ihabdevteam-core-scope .section-header__title{font-family:inherit;font-family:var(--font-display,inherit);font-size:clamp(2rem,1.35rem + 2.1vw,2.9rem);font-weight:700;letter-spacing:-.01em;line-height:1.15;margin:0}.ihabdevteam-core-scope .section-header__eyebrow+.section-header__title{margin-top:var(--spacing-xl)}.ihabdevteam-core-scope .section-header__description{font-size:var(--text-body-2-size);line-height:1.9;margin-top:var(--spacing-m)}.ihabdevteam-core-scope .section-header--dark .section-header__eyebrow{color:var(--color-main)}.ihabdevteam-core-scope .section-header--dark .section-header__title{color:var(--color-text-primary)}.ihabdevteam-core-scope .section-header--dark .section-header__description{color:var(--color-darkGray)}.ihabdevteam-core-scope .section-header--light .section-header__eyebrow{color:hsla(0,0%,100%,.85)}.ihabdevteam-core-scope .section-header--light .section-header__title{color:var(--color-pureWhite)}.ihabdevteam-core-scope .section-header--light .section-header__description{color:hsla(0,0%,100%,.85)}';J(K3);function om({eyebrow:e,eyebrowIndex:t,title:a,description:r,level:n=2,tone:i="dark",className:s=""}){const c=n===1?"h1":"h2";return o.jsxs("div",{className:xe("section-header",`section-header--${i}`,s),children:[e?o.jsxs("p",{className:"section-header__eyebrow",children:[t?o.jsxs(o.Fragment,{children:[o.jsx("span",{className:"section-header__index",children:t}),o.jsx("span",{"aria-hidden":!0,className:"section-header__rule"})]}):null,e]}):null,a?o.jsx(c,{className:"section-header__title",children:a}):null,r?o.jsx("div",{className:"section-header__description",children:r}):null]})}var Z3=".ihabdevteam-core-scope .company-meta{align-items:center;color:var(--color-gray);display:flex;flex-direction:column;font-size:var(--text-caption-1-size);gap:var(--spacing-xs);list-style:none;margin:0;padding:0}.ihabdevteam-core-scope .company-meta__item{align-items:center;display:flex}.ihabdevteam-core-scope .company-meta__divider{color:var(--color-whiteLine);display:none;padding-inline:var(--spacing-m)}@media (min-width:640px){.ihabdevteam-core-scope .company-meta{flex-direction:row;gap:0}.ihabdevteam-core-scope .company-meta__divider{display:inline}}";J(Z3);function rm({items:e,className:t=""}){return o.jsx("ul",{className:xe("company-meta",t),children:e.map((a,r)=>o.jsxs("li",{className:"company-meta__item",children:[r>0?o.jsx("span",{"aria-hidden":!0,className:"company-meta__divider",children:"|"}):null,a]},a))})}function Ol({value:e,onChange:t,suggestions:a,openOnFocus:r=!1}){const n=l.useId(),[i,s]=l.useState(!1),[c,u]=l.useState(-1),d=l.useRef(null),p=l.useMemo(()=>{if(!a.length)return[];const b=e??"";return b?a.filter(y=>y.toLowerCase().includes(b.toLowerCase())):r?a:[]},[a,e,r]);l.useEffect(()=>{i||u(-1)},[i]),l.useEffect(()=>()=>{d.current&&clearTimeout(d.current)},[]);const m=l.useCallback(b=>{t?.(b),s(!1)},[t]),h=l.useCallback(()=>s(!0),[]),g=l.useCallback(()=>{d.current=setTimeout(()=>s(!1),120)},[]),f=l.useCallback(b=>{b.key==="ArrowDown"?(b.preventDefault(),s(!0),u(y=>Math.min(p.length-1,y+1))):b.key==="ArrowUp"?(b.preventDefault(),u(y=>Math.max(-1,y-1))):b.key==="Enter"?c>=0&&!b.nativeEvent.isComposing&&m(p[c]):b.key==="Escape"&&i&&(b.preventDefault(),s(!1))},[p,c,i,m]);return{listId:n,open:i,activeIdx:c,filtered:p,handleFocus:h,handleBlur:g,handleKeyDown:f,handleSelect:m}}var X3=".ihabdevteam-core-scope .text-field{box-sizing:border-box;display:inline-flex;flex-direction:column;gap:6px;position:relative}.ihabdevteam-core-scope .text-field--full-width{display:flex;width:100%}.ihabdevteam-core-scope .text-field__label{align-items:center;color:var(--color-darkGray);display:flex;gap:4px}.ihabdevteam-core-scope .text-field__required{color:var(--color-main);line-height:1}.ihabdevteam-core-scope .text-field__wrap{align-items:center;background:var(--color-deepWhite);border:1px solid var(--color-whiteLine);border-radius:12px;box-sizing:border-box;display:flex;overflow:hidden;position:relative;transition:border-color .12s,background .12s,box-shadow .12s}.ihabdevteam-core-scope .text-field--s32 .text-field__wrap{border-radius:8px}.ihabdevteam-core-scope .text-field--s40 .text-field__wrap{border-radius:10px}.ihabdevteam-core-scope .text-field--s48 .text-field__wrap{border-radius:12px}.ihabdevteam-core-scope .text-field--s64 .text-field__wrap{border-radius:14px}.ihabdevteam-core-scope .text-field__wrap:focus-within{background:var(--color-white);border-color:var(--color-main);box-shadow:0 0 0 3px var(--color-main-a10)}.ihabdevteam-core-scope .text-field--error .text-field__wrap{border-color:var(--color-error)}.ihabdevteam-core-scope .text-field--error .text-field__wrap:focus-within{box-shadow:0 0 0 3px var(--color-error-a10)}.ihabdevteam-core-scope .text-field--disabled .text-field__wrap{cursor:not-allowed;opacity:.5}.ihabdevteam-core-scope .text-field--readonly .text-field__input{pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.ihabdevteam-core-scope .text-field--readonly .text-field__wrap{border-color:var(--color-darkWhite)}.ihabdevteam-core-scope .text-field__input{background:transparent;border:none;box-sizing:border-box;color:var(--color-darkGray);flex:1;margin:0;min-width:0;outline:none;padding:0 12px}.ihabdevteam-core-scope .text-field__input::-moz-placeholder{color:var(--color-lightGray)}.ihabdevteam-core-scope .text-field__input::placeholder{color:var(--color-lightGray)}.ihabdevteam-core-scope .text-field__input:disabled{cursor:not-allowed}.ihabdevteam-core-scope .text-field__input[readonly]{cursor:default}.ihabdevteam-core-scope .text-field__input--textarea{align-self:stretch;line-height:1.6;min-height:80px;padding:10px 12px;resize:vertical}.ihabdevteam-core-scope .text-field__input--auto{align-self:stretch;line-height:1.5;overflow:hidden;padding:0 12px;resize:none}.ihabdevteam-core-scope .text-field:has(.text-field__input--auto) .text-field__wrap,.ihabdevteam-core-scope .text-field:has(.text-field__input--textarea) .text-field__wrap{align-items:flex-start}.ihabdevteam-core-scope .text-field:has(.text-field__input--auto) .text-field__clear,.ihabdevteam-core-scope .text-field:has(.text-field__input--auto) .text-field__icon,.ihabdevteam-core-scope .text-field:has(.text-field__input--textarea) .text-field__clear,.ihabdevteam-core-scope .text-field:has(.text-field__input--textarea) .text-field__icon{margin-top:var(--spacing-s)}.ihabdevteam-core-scope .text-field--s32 .text-field__input:not(.text-field__input--textarea):not(.text-field__input--auto){height:30px}.ihabdevteam-core-scope .text-field--s40 .text-field__input:not(.text-field__input--textarea):not(.text-field__input--auto){height:38px}.ihabdevteam-core-scope .text-field--s48 .text-field__input:not(.text-field__input--textarea):not(.text-field__input--auto){height:46px}.ihabdevteam-core-scope .text-field--s64 .text-field__input:not(.text-field__input--textarea):not(.text-field__input--auto){height:62px;line-height:normal}.ihabdevteam-core-scope .text-field--display .text-field__input{font-weight:700;text-align:center}.ihabdevteam-core-scope .text-field--display .text-field__input::-moz-placeholder{color:transparent}.ihabdevteam-core-scope .text-field--display .text-field__input::placeholder{color:transparent}.ihabdevteam-core-scope .text-field--display .text-field__placeholder{align-items:center;color:var(--color-lightGray);display:flex;font-weight:400;inset:0;justify-content:center;pointer-events:none;position:absolute}.ihabdevteam-core-scope .text-field--display .text-field__input:not(:-moz-placeholder)~.text-field__placeholder{display:none}.ihabdevteam-core-scope .text-field--display .text-field__input:not(:placeholder-shown)~.text-field__placeholder{display:none}.ihabdevteam-core-scope .text-field--display.text-field--s48 .text-field__input{font-size:22px}.ihabdevteam-core-scope .text-field--display.text-field--s48 .text-field__placeholder{font-size:15px}.ihabdevteam-core-scope .text-field--display.text-field--s64 .text-field__input{font-size:28px;letter-spacing:-.3px}.ihabdevteam-core-scope .text-field--display.text-field--s64 .text-field__placeholder{font-size:16px}.ihabdevteam-core-scope .text-field--s32 .text-field__input--auto{height:30px;min-height:30px;padding-bottom:3px;padding-top:3px}.ihabdevteam-core-scope .text-field--s40 .text-field__input--auto{height:38px;min-height:38px;padding-bottom:7px;padding-top:7px}.ihabdevteam-core-scope .text-field--s48 .text-field__input--auto{height:46px;min-height:46px;padding-bottom:11px;padding-top:11px}.ihabdevteam-core-scope .text-field__icon{align-items:center;color:var(--color-lightGray);display:inline-flex;flex-shrink:0;height:20px;justify-content:center;width:20px}.ihabdevteam-core-scope .text-field__icon--left{margin-left:var(--spacing-s)}.ihabdevteam-core-scope .text-field__icon--right{margin-right:var(--spacing-s)}.ihabdevteam-core-scope .text-field__icon-svg{display:block}.ihabdevteam-core-scope .text-field--has-left-icon .text-field__input{padding-left:6px}.ihabdevteam-core-scope .text-field--has-right-icon .text-field__input{padding-right:6px}.ihabdevteam-core-scope .text-field--s32 .text-field__icon{height:16px;width:16px}.ihabdevteam-core-scope .text-field--s32 .text-field__input{font-size:14px;line-height:22px}.ihabdevteam-core-scope .text-field__clear{flex-shrink:0;margin-right:10px}.ihabdevteam-core-scope .text-field__suggestions{background:var(--color-white);border:1px solid var(--color-whiteLine);border-radius:var(--radius-sm);box-shadow:var(--shadow-dropdown);left:0;margin-top:var(--spacing-xs);max-height:220px;overflow:auto;padding:4px 0;position:absolute;right:0;top:100%;z-index:var(--z-dropdown)}.ihabdevteam-core-scope .text-field__suggestion{color:var(--color-darkGray);cursor:pointer;padding:8px 12px}.ihabdevteam-core-scope .text-field__suggestion.is-active,.ihabdevteam-core-scope .text-field__suggestion:hover{background:var(--color-deepWhite);color:var(--color-main)}.ihabdevteam-core-scope .text-field__footer{align-items:flex-start;display:flex;gap:var(--spacing-xs)}.ihabdevteam-core-scope .text-field__helper{color:var(--color-lightGray);flex:1}.ihabdevteam-core-scope .text-field--error .text-field__helper{color:var(--color-error)}.ihabdevteam-core-scope .text-field__count{color:var(--color-gray);flex-shrink:0;margin-right:12px;-webkit-user-select:none;-moz-user-select:none;user-select:none;white-space:nowrap}.ihabdevteam-core-scope .text-field--has-right-icon .text-field__count,.ihabdevteam-core-scope .text-field:has(.text-field__clear) .text-field__count{margin-right:8px}.ihabdevteam-core-scope .text-field__count--over{color:var(--color-error)}.ihabdevteam-core-scope .text-field:has(.text-field__input--textarea) .text-field__count{bottom:6px;margin:0;pointer-events:none;position:absolute;right:20px}.ihabdevteam-core-scope .text-field:has(.text-field__input--auto) .text-field__count{align-self:flex-end;margin-bottom:var(--spacing-s)}";J(X3);function Wa(e){const{value:t,defaultValue:a,name:r,inputRef:n,onChange:i,label:s,ariaLabel:c,required:u,placeholder:d,type:p="text",disabled:m=!1,readOnly:h=!1,error:g,helperText:f,maxLength:b,size:y=48,variant:v="input",fullWidth:C=!1,newline:w=!1,multiline:x=!1,rows:S=3,leftIcon:_,rightIcon:k,clearable:N=!1,list:A,showCount:D=!0,className:H="",onFocus:P,onBlur:T,onKeyDown:E,onEnter:L,inputMode:F,autoComplete:te,autoFocus:Z,suggestions:V,openOnFocus:j=!1}=e,{t:M}=ge.useTranslation(),$=l.useId();!s&&!c&&Zc(`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 W=`tf-${$}`,q=`tf-helper-${$}`,X=l.useRef(null),O=Ol({value:t??"",onChange:i,suggestions:V??[],openOnFocus:j}),Y=l.useCallback(R=>{X.current=R,typeof n=="function"?n(R):n&&(n.current=R)},[n]),z=t!==void 0,re=z&&p==="password",Q=(t??"").length;l.useEffect(()=>{const R=X.current;if(!re||!R)return;const oe=t??"";R.value!==oe&&(R.value=oe)},[re,t]),l.useEffect(()=>{if(!w||!X.current)return;const R=X.current;R.style.height="",R.scrollHeight>R.clientHeight&&(R.style.height=`${R.scrollHeight}px`)},[t,w]);const ne=b!=null&&Q>b,me=y===32?16:20,ce=xe("text-field",`text-field--s${y}`,v==="display"?"text-field--display":"",C?"text-field--full-width":"",m?"text-field--disabled":"",h?"text-field--readonly":"",g?"text-field--error":"",_?"text-field--has-left-icon":"",k||N?"text-field--has-right-icon":"",H),I={id:W,...re?{}:z?{value:t}:{defaultValue:a},ref:Y,placeholder:d,name:r,disabled:m,readOnly:h,autoFocus:Z,tabIndex:h?-1:void 0,maxLength:b,list:A,inputMode:F,autoComplete:te,"aria-label":!s&&c?c:void 0,"aria-required":u,"aria-invalid":!!g,"aria-describedby":f||g?q:void 0,role:V?"combobox":void 0,"aria-autocomplete":V?"list":void 0,"aria-haspopup":V?"listbox":void 0,"aria-expanded":V?O.open:void 0,"aria-controls":V?O.listId:void 0,"aria-activedescendant":V&&O.activeIdx>=0?`${O.listId}-option-${O.activeIdx}`:void 0,onChange:R=>i?.(R.target.value),onFocus:(R=>{P?.(R),V&&O.handleFocus()}),onBlur:(R=>{T?.(R),V&&O.handleBlur()}),onKeyDown:(R=>{L&&R.key==="Enter"&&!R.nativeEvent.isComposing&&(R.preventDefault(),L()),E?.(R),V&&O.handleKeyDown(R)})},ee=N&&!m&&!h&&Q>0,pe=()=>w?o.jsx("textarea",{...I,className:"text-field__input text-field__input--auto body-2",rows:1}):x?o.jsx("textarea",{...I,className:"text-field__input text-field__input--textarea body-2",rows:S}):o.jsx("input",{...I,type:p,className:"text-field__input body-2"}),ke=v==="display"&&!w&&!x&&!!d,Ce=()=>o.jsxs(o.Fragment,{children:[pe(),ke&&o.jsx("span",{className:"text-field__placeholder","aria-hidden":"true",children:d})]});return o.jsxs("div",{className:ce,children:[s&&o.jsxs("label",{htmlFor:W,className:"text-field__label caption-1",children:[s,u&&o.jsx("span",{className:"text-field__required",children:"*"})]}),o.jsxs("div",{className:"text-field__wrap",children:[_&&o.jsx("span",{className:"text-field__icon text-field__icon--left",children:o.jsx(Ie,{icon:_,label:"",className:"",svgClassName:"text-field__icon-svg",size:me})}),Ce(),b!=null&&D&&o.jsxs("span",{className:`text-field__count caption-2${ne?" text-field__count--over":""}`,children:[Q,"/",b]}),ee&&o.jsx(se,{size:24,type:"dot",icon:"x",variant:"transparent-gray",useBorder:!1,className:"text-field__clear",ariaLabel:M("textField.clearAriaLabel","\uC785\uB825\uAC12 \uC9C0\uC6B0\uAE30"),htmlType:"button",onMouseDown:R=>{R.preventDefault()},onClick:()=>i?.(""),tabIndex:-1}),k&&!ee&&o.jsx("span",{className:"text-field__icon text-field__icon--right",children:o.jsx(Ie,{icon:k,label:"",className:"",svgClassName:"text-field__icon-svg",size:me})})]}),V&&O.open&&O.filtered.length>0&&o.jsx("ul",{id:O.listId,className:"text-field__suggestions",role:"listbox",children:O.filtered.map((R,oe)=>o.jsx("li",{id:`${O.listId}-option-${oe}`,role:"option","aria-selected":oe===O.activeIdx,className:`text-field__suggestion body-2${oe===O.activeIdx?" is-active":""}`,onMouseDown:ae=>ae.preventDefault(),onClick:()=>{O.handleSelect(R),X.current?.focus()},children:R},`${R}-${oe}`))}),(f||g)&&o.jsx("div",{className:"text-field__footer",children:o.jsx("span",{id:q,className:"text-field__helper caption-1",role:g?"alert":void 0,children:g||f})})]})}var Q3=".ihabdevteam-core-scope .dropdown{display:inline-block;position:relative}.ihabdevteam-core-scope .dropdown--block{display:block;width:100%}.ihabdevteam-core-scope .dropdown--block .dropdown__trigger{min-width:0}.ihabdevteam-core-scope .dropdown--s40 .dropdown__trigger{border-radius:10px;height:40px}.ihabdevteam-core-scope .dropdown--s48 .dropdown__trigger{border-radius:12px;height:48px}.ihabdevteam-core-scope .dropdown__trigger{align-items:center;background:var(--color-deepWhite);border:1px solid var(--color-whiteLine);border-radius:12px;box-sizing:border-box;color:var(--color-darkGray);cursor:pointer;display:flex;font-family:var(--font-family);gap:var(--spacing-xs);height:48px;justify-content:space-between;min-width:120px;padding:0 12px;text-align:left;transition:border-color .15s,background .15s,box-shadow .15s;white-space:nowrap;width:100%}.ihabdevteam-core-scope .dropdown__trigger:hover:not(:disabled){border-color:var(--color-main)}.ihabdevteam-core-scope .dropdown__trigger:focus-visible{border-color:var(--color-main);box-shadow:0 0 0 3px var(--color-main-a10);outline:none}.ihabdevteam-core-scope .dropdown__trigger:disabled{background:var(--color-deepWhite);cursor:default;opacity:.5}.ihabdevteam-core-scope .dropdown--open .dropdown__trigger{background:var(--color-white);border-color:var(--color-main);box-shadow:0 0 0 3px var(--color-main-a10)}.ihabdevteam-core-scope .dropdown--error .dropdown__trigger{border:1px solid var(--color-error)}.ihabdevteam-core-scope .dropdown--error .dropdown__trigger:hover:not(:disabled),.ihabdevteam-core-scope .dropdown--error.dropdown--open .dropdown__trigger{border-color:var(--color-error);box-shadow:0 0 0 3px color-mix(in srgb,var(--color-error) 15%,transparent)}.ihabdevteam-core-scope .dropdown__trigger-label{flex:1;overflow:hidden;text-overflow:ellipsis}.ihabdevteam-core-scope .dropdown__trigger-label--placeholder{color:var(--color-lightGray)}.ihabdevteam-core-scope .dropdown__chevron{color:var(--color-gray);flex-shrink:0;height:16px;transition:transform .2s;width:16px}.ihabdevteam-core-scope .dropdown--open .dropdown__chevron{transform:rotate(180deg)}.ihabdevteam-core-scope .dropdown__menu{animation:dropdown-appear .12s ease;background:var(--color-white);border:1.5px solid var(--color-whiteLine);border-radius:var(--radius-card);box-shadow:var(--shadow-dropdown);box-sizing:border-box;max-height:260px;overflow-y:auto;overscroll-behavior-y:contain;padding:6px}.ihabdevteam-core-scope .dropdown__menu--up{bottom:calc(100% + 6px);top:auto}@keyframes dropdown-appear{0%{opacity:0;transform:translateY(-6px)}to{opacity:1;transform:translateY(0)}}.ihabdevteam-core-scope .dropdown__option{align-items:center;background:transparent;border:none;border-radius:var(--radius-sm);box-sizing:border-box;color:var(--color-darkGray);cursor:pointer;display:flex;font-family:var(--font-family);gap:var(--spacing-xs);padding:9px 12px;text-align:left;transition:background .1s,color .1s;white-space:nowrap;width:100%}.ihabdevteam-core-scope .dropdown__option:hover{background:var(--color-deepWhite)}.ihabdevteam-core-scope .dropdown__option--active{background:var(--color-main-a10);color:var(--color-main)}.ihabdevteam-core-scope .dropdown__option--disabled{cursor:default;opacity:.4;pointer-events:none}.ihabdevteam-core-scope .dropdown__option-check{align-items:center;color:var(--color-main);display:flex;flex-shrink:0;height:14px;justify-content:center;width:14px}.ihabdevteam-core-scope .dropdown__option-check svg{height:14px;width:14px}.ihabdevteam-core-scope .dropdown__divider{background:var(--color-darkWhite);height:1px;margin:4px 0}";J(Q3);function Ut({options:e,value:t,onChange:a,placeholder:r,disabled:n=!1,block:i=!1,size:s=48,error:c=!1,className:u="",ariaLabel:d}){const{t:p}=ge.useTranslation(),m=r??p("dropdown.placeholder","\uC120\uD0DD"),h=l.useId(),g=l.useRef(null),f=l.useCallback(T=>{const E=window.innerHeight-T.bottom<260&&T.top>260;return{position:"fixed",left:T.left,minWidth:T.width,...E?{bottom:window.innerHeight-T.top+6}:{top:T.bottom+6},zIndex:9999}},[]),{open:b,setOpen:y,toggle:v,style:C,triggerRef:w,menuRef:x}=ao({computeStyle:f}),[S,_]=l.useState(-1),k=l.useCallback(()=>_(-1),[]),N=e.find(T=>T.value===t);l.useEffect(()=>{if(b){const T=e.findIndex(E=>E.value===t);_(T>=0?T:0),requestAnimationFrame(()=>{const E=x.current;if(!E)return;const L=E.querySelectorAll(".dropdown__option")[T];L&&(E.scrollTop=Math.max(0,L.offsetTop-E.clientHeight/2+L.clientHeight/2))})}},[b,e,t,x]);const A=l.useCallback(()=>{n||v()},[n,v]),D=l.useCallback(T=>{T.disabled||(a?.(T.value),y(!1))},[a,y]),H=l.useCallback(T=>{if(!n){if(!b){(T.key==="Enter"||T.key===" "||T.key==="ArrowDown")&&(T.preventDefault(),y(!0));return}if(T.key==="Escape"){T.preventDefault(),y(!1);return}T.key==="ArrowDown"?(T.preventDefault(),_(E=>{let L=E+1;for(;L<e.length&&e[L].disabled;)L++;return L<e.length?L:E})):T.key==="ArrowUp"?(T.preventDefault(),_(E=>{let L=E-1;for(;L>=0&&e[L].disabled;)L--;return L>=0?L:E})):T.key==="Enter"&&S>=0&&(T.preventDefault(),D(e[S]))}},[n,b,e,S,D,y]),P=b?o.jsx("div",{ref:x,id:h,className:"dropdown__menu",role:"listbox",style:C,onMouseLeave:k,children:e.map((T,E)=>o.jsxs("button",{id:`${h}-option-${E}`,type:"button",role:"option","aria-selected":T.value===t,className:xe("dropdown__option body-2",T.value===t?"dropdown__option--active":"",E===S?"dropdown__option--active":"",T.disabled?"dropdown__option--disabled":""),onMouseDown:L=>L.preventDefault(),onClick:()=>D(T),onMouseEnter:()=>_(E),disabled:T.disabled,children:[o.jsx("span",{className:"dropdown__option-check",children:T.value===t&&o.jsx("svg",{viewBox:"0 0 14 14",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",children:o.jsx("polyline",{points:"2 7 5.5 10.5 12 3.5"})})}),T.label]},T.value))}):null;return o.jsxs("div",{ref:g,className:xe("dropdown",`dropdown--s${s}`,b?"dropdown--open":"",i?"dropdown--block":"",c?"dropdown--error":"",u),onKeyDown:H,children:[o.jsxs("button",{ref:w,type:"button",className:"dropdown__trigger","aria-haspopup":"listbox","aria-expanded":b,"aria-controls":b?h:void 0,"aria-activedescendant":b&&S>=0?`${h}-option-${S}`:void 0,"aria-label":d,"aria-invalid":c||void 0,disabled:n,onClick:A,children:[o.jsx("span",{className:`dropdown__trigger-label body-2${N?"":" dropdown__trigger-label--placeholder"}`,children:N?N.label:m}),o.jsx("svg",{className:"dropdown__chevron",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:o.jsx("polyline",{points:"4 6 8 10 12 6"})})]}),typeof document<"u"&&qt.createPortal(P,g.current?.closest(".ihabdevteam-core-scope")??document.body)]})}var J3=".ihabdevteam-core-scope .pagination{align-items:center;display:flex;gap:4px}.ihabdevteam-core-scope .pagination__info{color:var(--color-darkGray);font-weight:600;min-width:48px;text-align:center}";J(J3);function fr({page:e,totalPages:t,onChange:a,prevLabel:r,nextLabel:n,className:i=""}){const{t:s}=ge.useTranslation(),c=r??s("common.prevPage","\uC774\uC804 \uD398\uC774\uC9C0"),u=n??s("common.nextPage","\uB2E4\uC74C \uD398\uC774\uC9C0"),d=()=>a(Math.max(1,e-1)),p=()=>a(Math.min(t,e+1));return o.jsxs("div",{className:xe("pagination",i),children:[o.jsx(se,{size:32,type:"dot",shape:"rounded",icon:"chevron-left",ariaLabel:c,disabled:e<=1,onClick:d}),o.jsxs("span",{className:"pagination__info body-3",children:[e," / ",t]}),o.jsx(se,{size:32,type:"dot",shape:"rounded",icon:"chevron-right",ariaLabel:u,disabled:e>=t,onClick:p})]})}var e8=".ihabdevteam-core-scope .segmented-control{background:var(--color-darkWhite);display:inline-flex;flex-shrink:0;flex-wrap:wrap;gap:var(--spacing-xs);overflow:hidden;padding:4px}.ihabdevteam-core-scope .segmented-control--pill{border-radius:999px}.ihabdevteam-core-scope .segmented-control--rounded{border-radius:12px}.ihabdevteam-core-scope .segmented-control .button{min-width:96px}.ihabdevteam-core-scope .segmented-control--32 .button{min-width:64px}.ihabdevteam-core-scope .segmented-control--40 .button{min-width:80px}.ihabdevteam-core-scope .segmented-control--48 .button{min-width:96px}.ihabdevteam-core-scope .segmented-control--no-bg{background:transparent;padding:0}.ihabdevteam-core-scope .segmented-control--full{display:flex;flex-wrap:nowrap;width:100%}.ihabdevteam-core-scope .segmented-control--full .button{flex:1 1 0;min-width:0}@media (max-width:767px){.ihabdevteam-core-scope .segmented-control{flex-shrink:1;min-width:0}.ihabdevteam-core-scope .segmented-control:has(>.button:nth-child(4):last-child){border-radius:14px;display:grid;grid-template-columns:repeat(2,1fr);width:100%}.ihabdevteam-core-scope .segmented-control:has(>.button:nth-child(4):last-child)>.button{justify-content:center;width:100%}.ihabdevteam-core-scope .segmented-control--pill:has(>.button:nth-child(5)){border-radius:14px}.ihabdevteam-core-scope .segmented-control:has(>.button:nth-child(5)){justify-content:center}}";J(e8);function Ha(e){const{t}=ge.useTranslation(),{options:a=[],value:r=a[0]?.key,onChange:n=y=>{},className:i="",size:s=48,shape:c="pill",useBG:u=!0,fullWidth:d=!1,ariaLabel:p}=e||{},m=l.useRef(null),h=a.filter(y=>!y.disabled),g=y=>{if(!h.length)return;const v=Math.max(0,h.findIndex(w=>w.key===r)),C=y==="first"?h[0]:y==="last"?h[h.length-1]:h[(v+y+h.length)%h.length];C&&(n(C.key),Array.from(m.current?.querySelectorAll("[data-segkey]")??[]).find(w=>w.dataset.segkey===C.key)?.focus())},f=y=>{switch(y.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}y.preventDefault()},b=h.some(y=>y.key===r)?r:h[0]?.key;return o.jsx("div",{ref:m,onKeyDown:f,className:xe("segmented-control",`segmented-control--${c}`,`segmented-control--${s}`,d&&"segmented-control--full",!u&&"segmented-control--no-bg",i),role:"radiogroup","aria-label":p??t("segmentedControl.ariaLabel","\uC120\uD0DD \uD0ED"),children:a.map(y=>o.jsx(se,{role:"radio","aria-checked":y.key===r,"data-segkey":y.key,tabIndex:y.key===b?0:-1,label:y.label,count:y.count,disabled:y.disabled,className:y.key===r?"is-selected":"",onClick:()=>{y.disabled||n(y.key)},size:s,shape:c,useBorder:!1,useBG:!1},y.key))})}var t8=".ihabdevteam-core-scope .toolbar{align-items:center;box-sizing:border-box;display:flex;flex-direction:row;flex-wrap:wrap;gap:var(--spacing-s);min-height:64px;padding-bottom:8px;padding-top:8px;width:100%}.ihabdevteam-core-scope .toolbar__row{display:contents}.ihabdevteam-core-scope .toolbar__row-end{align-items:center;display:flex;flex-wrap:wrap;gap:var(--spacing-s);justify-content:flex-end;margin-left:auto}.ihabdevteam-core-scope .toolbar__count{color:var(--color-gray);flex-shrink:0;margin:0;white-space:nowrap}.ihabdevteam-core-scope .toolbar .toolbar__search{flex-shrink:0;min-width:200px}@media (max-width:767px){.ihabdevteam-core-scope .toolbar{align-items:stretch;flex-direction:column;flex-wrap:wrap;padding-bottom:12px;padding-top:12px}.ihabdevteam-core-scope .toolbar__row{align-items:center;display:flex;flex-wrap:wrap;gap:var(--spacing-s)}.ihabdevteam-core-scope .toolbar .toolbar__search{flex:1;min-width:150px}}.ihabdevteam-core-scope .toolbar__count-highlight{color:var(--color-main)}.ihabdevteam-core-scope .toolbar__divider{align-self:stretch;height:auto;margin:8px 0}@media (max-width:767px){.ihabdevteam-core-scope .toolbar__divider{display:none}}";J(t8);function vn({count:e,search:t,segment:a,filters:r,pageSize:n,pagination:i,actions:s,className:c}){const{t:u}=ge.useTranslation(),d=e!=null&&o.jsxs("p",{className:"toolbar__count body-1",children:[e.prefix??u("common.totalPrefix","\uCD1D "),o.jsx("span",{className:"toolbar__count-highlight",children:e.value}),e.unit,e.suffix]}),p=!!(t||r?.length||n||i||s);return o.jsxs("div",{className:xe("toolbar",c),children:[o.jsxs("div",{className:"toolbar__row",children:[d,a&&(Array.isArray(a)?a:[a]).map((m,h)=>o.jsx(Ha,{size:40,...m},m.ariaLabel??h))]}),p&&o.jsx("div",{className:"toolbar__row",children:o.jsxs("div",{className:"toolbar__row-end",children:[t&&o.jsx(Wa,{className:"toolbar__search",size:40,value:t.value,onChange:t.onChange,placeholder:t.placeholder??u("common.search","\uAC80\uC0C9"),ariaLabel:t.placeholder??u("common.search","\uAC80\uC0C9"),clearable:!0}),r?.map((m,h)=>o.jsx(Ut,{size:40,options:m.options,value:m.value,onChange:m.onChange,ariaLabel:m.ariaLabel},h)),n&&o.jsx(Ut,{size:40,options:n.options,value:n.value,onChange:n.onChange,ariaLabel:n.ariaLabel??u("common.pageSizeSelect","\uD398\uC774\uC9C0\uB2F9 \uD45C\uC2DC \uAC1C\uC218")}),i&&o.jsx(fr,{page:i.page,totalPages:i.total,onChange:i.onChange,prevLabel:i.prevLabel,nextLabel:i.nextLabel}),s]})})]})}var a8=".ihabdevteam-core-scope .code-box{background:#eff8ff;background:var(--color-code-bg,#eff8ff);border:1px solid rgba(4,34,51,.06);border-radius:10px;color:#042233;color:var(--color-code-text,#042233);margin:0;overflow:hidden;padding:16px 20px}.ihabdevteam-core-scope .code-box__header{align-items:center;display:flex;gap:12px;justify-content:space-between;min-height:40px}.ihabdevteam-core-scope .code-box__title{align-items:center;color:rgba(4,34,51,.75);display:flex;letter-spacing:.02em}.ihabdevteam-core-scope .code-box__copy{flex-shrink:0}.ihabdevteam-core-scope .code-box__inner{background:transparent;color:#042233;color:var(--color-code-text,#042233);font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Roboto Mono,Courier New,monospace;font-size:13px;line-height:1.6;margin:0;overflow-wrap:anywhere;overflow-x:auto;padding:8px 0 0;white-space:pre-wrap;word-break:break-word}.ihabdevteam-core-scope .code-box__inner code{display:block;font-family:inherit;overflow-wrap:anywhere;white-space:pre-wrap;word-break:break-word}.ihabdevteam-core-scope .code-box--small .code-box__inner{font-size:12px}.ihabdevteam-core-scope .code-token{overflow-wrap:anywhere;white-space:pre-wrap;word-break:break-word}.ihabdevteam-core-scope .code-token.keyword{color:#6b46ff;font-weight:600}.ihabdevteam-core-scope .code-token.string{color:#0a9d58}.ihabdevteam-core-scope .code-token.comment{color:#6b7280;font-style:italic}.ihabdevteam-core-scope .code-token.command{color:#0b78d1}.ihabdevteam-core-scope .code-token.number{color:#d97706}.ihabdevteam-core-scope .code-token.operator{color:#dc2626}.ihabdevteam-core-scope .code-token.identifier,.ihabdevteam-core-scope .code-token.punctuation{color:#042233;color:var(--color-code-text,#042233)}";J(a8);function nm(e){return typeof e=="string"?e:typeof e=="number"?String(e):Array.isArray(e)?e.map(nm).join(""):""}function o8(e){let t=e.replace(/\r\n/g,`
|
|
832
|
+
`),this.name="StorageNotConfiguredError"}};function Jn(e){sw(e)}function Dr(e,t){if(!e)return null;const a=zo();return a?.resolvePath?a.resolvePath(e,t):t?`${t}/${e}.mp3`:null}async function ei(e){if(!e)return!1;const t=zo();if(!t)throw new Qn("fileExists");if(t.exists)return t.exists(e);try{return await t.resolveUrl(e)!==null}catch{return!1}}async function Oo(e){if(!e)return null;const t=zo();if(!t)throw new Qn("getSignedOrPublicUrl");try{return await t.resolveUrl(e)}catch{return null}}async function Er(e){const t=zo();if(!t)throw new Qn("downloadSound");return t.download(e)}function ti(){return zo()?.noiseBaseUrl??"/sounds/noise"}const ai="__ihab_core_tts_config__";function Fd(e){globalThis[ai]=e}function Fo(){return globalThis[ai]?.urlResolver??null}function oi(){return globalThis[ai]?.fallbackUrlResolver??null}const lw=new Map;function Wd(){lw.clear()}const Hd="__ihab_core_pronunciation_resolver__";function Vd(e){globalThis[Hd]=e}function ri(){return globalThis[Hd]??null}let Wo=null;const Gd=new WeakMap;function cw(){if(Wo)return Wo;try{const e=window.AudioContext||window.webkitAudioContext;return e?(Wo=new e,Wo):null}catch{return null}}function Ho(){try{Wo?.resume()}catch{}}function Vo(e){if(!e)return null;const t=Gd.get(e);if(t)return t;const a=cw();if(!a)return null;try{const r=a.createMediaElementSource(e),n=a.createAnalyser();return n.fftSize=1024,n.smoothingTimeConstant=.6,r.connect(n),r.connect(a.destination),Gd.set(e,n),n}catch{return null}}function ni(e,t){e.getFloatTimeDomainData(t);let a=0;for(let r=0;r<t.length;r++){const n=t[r];a+=n*n}return Math.sqrt(a/t.length)}const qd="__ihab_core_image_config__";function Yd(e){globalThis[qd]=e}function Ma(){return globalThis[qd]??null}const Go="word_image_existence_map_v1";let da=null;const jr=new Map;function qo(){if(da)return da;try{const e=typeof localStorage<"u"?localStorage.getItem(Go):null;da=e?JSON.parse(e):{}}catch{da={}}return da}let ii=null;function dw(){ii||(ii=setTimeout(()=>{ii=null;try{typeof localStorage<"u"&&da&&localStorage.setItem(Go,JSON.stringify(da))}catch{}},200))}function Lr(e,t){return`${e}_${t??1}`}async function Yo(e,t){const a=qo(),r=Lr(e,t);if(r in a)return a[r];if(jr.has(r))return jr.get(r);const n=Ma();if(!n)return!1;const i=n(e,t);if(!i)return!1;const s=fetch(i,{method:"HEAD",signal:AbortSignal.timeout(8e3)}).then(c=>c.ok).catch(()=>!1).then(c=>(a[r]=c,dw(),jr.delete(r),c));return jr.set(r,s),s}function si(e,t){const a=qo(),r=Lr(e,t);return r in a?a[r]:void 0}async function Ud(e,t={}){const{force:a=!1,concurrency:r=16,onProgress:n}=t,i=qo(),s=a?Array.from(new Set(e)):Array.from(new Set(e)).filter(u=>!(Lr(u)in i));let c=0;if(s.length>0){let u=0;const d=Array.from({length:Math.min(r,s.length)},async()=>{for(;u<s.length;){const p=u++,m=s[p],h=Lr(m);if(!a&&h in i){c++,n?.(c,s.length);continue}try{await Yo(m)}catch{}c++,n?.(c,s.length)}});await Promise.all(d)}try{typeof localStorage<"u"&&da&&localStorage.setItem(Go,JSON.stringify(da))}catch{}return{checked:s.length,cached:Object.keys(i).length,total:e.length}}function Mr(){const e=qo(),t=Object.values(e);return t.length===0?null:{total:t.length,exists:t.filter(Boolean).length}}function Kd(e){const t=qo();Object.assign(t,e);try{typeof localStorage<"u"&&localStorage.setItem(Go,JSON.stringify(t))}catch{}}function li(){da={};try{typeof localStorage<"u"&&localStorage.removeItem(Go)}catch{}}const Ze=["\u3131","\u3132","\u3134","\u3137","\u3138","\u3139","\u3141","\u3142","\u3143","\u3145","\u3146","\u3147","\u3148","\u3149","\u314A","\u314B","\u314C","\u314D","\u314E"],dt=["\u314F","\u3150","\u3151","\u3152","\u3153","\u3154","\u3155","\u3156","\u3157","\u3158","\u3159","\u315A","\u315B","\u315C","\u315D","\u315E","\u315F","\u3160","\u3161","\u3162","\u3163"],gt=["","\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 Ee(e){if(!e)return null;const t=e.charCodeAt(0)-44032;return t<0||t>=11172?null:{cho:Math.floor(t/588),jung:Math.floor(t%588/28),jong:t%28}}function ci(){const e=new Map;return t=>{let a=e.get(t);return a||(a=[...t].map(r=>Ee(r)),e.set(t,a)),a}}function ua(e,t,a=0){return String.fromCharCode(44032+(e*21+t)*28+a)}function di(e,t){if(!e||!t||e===t||e.length!==t.length)return"random";let a=0,r=null;for(let n=0;n<e.length;n++){const i=Ee(e[n]),s=Ee(t[n]);if(!i||!s)return"random";if(i.cho===s.cho&&i.jung===s.jung&&i.jong===s.jong)continue;a++;const c=i.cho!==s.cho,u=i.jung!==s.jung,d=i.jong!==s.jong;(c?1:0)+(u?1:0)+(d?1:0)>1?r="multi":c?r="cho":u?r="jung":r="jong"}return a!==1?"random":r==="cho"?"cho":r==="jung"?"jung":r==="jong"?"jong":"random"}function ui(e){const t=Ee(e[0]||"");return t?Ze[t.cho]:""}function pi(e){return[...e].map(t=>{const a=Ee(t);return a?Ze[a.cho]:t}).join("")}function hi(e){return!!e&&[...e].every(t=>Ze.includes(t))}function Zd(e,t){return t?hi(t)?pi(e).includes(t):e.toLowerCase().includes(t.toLowerCase()):!0}function ho(e,t){if(!t)return!0;const a=[...t],r=c=>Ze.includes(c),n=c=>dt.includes(c),i=a.map(c=>r(c)?"cho":n(c)?"jung":Ee(c)?"syl":"other");if(i.includes("other"))return e.includes(t);const s=[...e];for(let c=0;c+a.length<=s.length;c++){let u=!0;for(let d=0;d<a.length;d++){const p=s[c+d],m=i[d];if(m==="cho"){if(ui(p)!==a[d]){u=!1;break}}else if(m==="jung"){const h=Ee(p);if(!h||dt[h.jung]!==a[d]){u=!1;break}}else{const h=Ee(a[d]);if(h&&h.jong===0){const g=Ee(p);if(!g||g.cho!==h.cho||g.jung!==h.jung){u=!1;break}}else if(p!==a[d]){u=!1;break}}}if(u)return!0}return!1}const mo={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"]},Xd=Object.fromEntries(Object.entries(mo).map(([e,t])=>[t.join(""),gt[Number(e)]]));function uw(e,t){if(!e||!t)return!1;for(const a of e){const r=Ee(a);if(r){if(Ze[r.cho]===t)return!0;if(r.jong>0){if(gt[r.jong]===t)return!0;const n=mo[r.jong];if(n&&n.includes(t))return!0}}}return!1}function Qd(e,t){if(!e||!t)return!1;for(const a of e){const r=Ee(a);if(r&&Ze[r.cho]===t)return!0}return!1}function Jd(e,t){if(!e||!t)return!1;for(const a of e){const r=Ee(a);if(r&&dt[r.jung]===t)return!0}return!1}function eu(e,t){if(!e||!t)return!1;for(const a of e){const r=Ee(a);if(!r||r.jong<=0)continue;if(gt[r.jong]===t)return!0;const n=mo[r.jong];if(n&&n.includes(t))return!0}return!1}function bo(e){if(!e)return 0;let t=0;for(const a of e)Ee(a)&&t++;return t}function mi(e){if(!e)return!1;let t=!1;for(const a of e){const r=Ee(a);if(r&&(t=!0,r.jong>0))return!1}return t}function pw(e,t){if(e.jong<=0)return!1;if(t.includes(gt[e.jong]))return!0;const a=mo[e.jong];return!!a&&a.some(r=>t.includes(r))}function bi(e,t,a){if(!e)return!1;const r=[...e],n=i=>{const s=Ee(r[i]);if(!s||t.cho&&!t.cho.includes(Ze[s.cho])||t.jung&&!t.jung.includes(dt[s.jung]))return!1;if(t.jongNone){if(s.jong>0)return!1}else if(t.jong&&!pw(s,t.jong))return!1;return!0};if(a==="head")return n(0);if(a==="tail")return n(r.length-1);if(a==="mid"){for(let i=1;i<r.length-1;i++)if(n(i))return!0;return!1}for(let i=0;i<r.length;i++)if(n(i))return!0;return!1}function gi(e){return e.includes(",")||e.includes("_")}function tu(e){if(e==="")return[{kind:"any"}];if(e.includes("_")){const t=[...e];if(t.length>4)return[{kind:"invalid"}];const a=t[0]??"_",r=t[1]??"_";let n=t.slice(2).join("");if(n.length===2){const i=Xd[n];if(!i)return[{kind:"invalid"}];n=i}return[{kind:"template",cho:a,jung:r,jong:n||"_"}]}return[...e].map(t=>Ee(t)?{kind:"syllable",ch:t}:Ze.includes(t)?{kind:"cho",jamo:t}:dt.includes(t)?{kind:"jung",jamo:t}:{kind:"invalid"})}function hw(e,t){switch(t.kind){case"any":return!0;case"syllable":{const a=Ee(t.ch);if(!a)return e===t.ch;if(a.jong===0){const r=Ee(e);return!!r&&r.cho===a.cho&&r.jung===a.jung}return e===t.ch}case"cho":{const a=Ee(e);return!!a&&Ze[a.cho]===t.jamo}case"jung":{const a=Ee(e);return!!a&&dt[a.jung]===t.jamo}case"template":{const a=Ee(e);return!(!a||t.cho!=="_"&&Ze[a.cho]!==t.cho||t.jung!=="_"&&dt[a.jung]!==t.jung||t.jong!=="_"&>[a.jong]!==t.jong)}case"invalid":return!1}}function fi(e,t){const a=t.split(",").flatMap(n=>tu(n.trim()));if(a.length===0)return!0;const r=[...e];if(r.length<a.length)return!1;for(let n=0;n+a.length<=r.length;n++)if(a.every((i,s)=>hw(r[n+s],i)))return!0;return!1}function au(e){const t=e.split(",").flatMap(i=>tu(i.trim())),a=new Set,r=new Set,n=new Set;for(const i of t)switch(i.kind){case"cho":a.add(i.jamo);break;case"jung":r.add(i.jamo);break;case"template":i.cho!=="_"&&a.add(i.cho),i.jung!=="_"&&r.add(i.jung),i.jong!=="_"&&n.add(i.jong);break;case"syllable":{const s=Ee(i.ch);s&&(a.add(Ze[s.cho]),r.add(dt[s.jung]),s.jong!==0&&n.add(gt[s.jong]));break}}return a.size===0&&r.size===0&&n.size===0?null:{cho:a.size?[...a]:null,jung:r.size?[...r]:null,jong:n.size?[...n]:null}}function mw(e){return!!Ee(e)||Ze.includes(e)||dt.includes(e)}function ou(e){const t=e.trim();if(!t)return{ok:!0};for(const a of t.split(",")){const r=a.trim();if(r!==""){if(r.includes("_")){const n=[...r];if(n.length>4)return{ok:!1};const i=n[0],s=n[1],c=n.slice(2).join(""),u=i===void 0||i==="_"||Ze.includes(i),d=s===void 0||s==="_"||dt.includes(s),p=c===""||c==="_"||gt.filter(Boolean).includes(c)||!!Xd[c];if(u&&d&&p)continue;return{ok:!1}}if(![...r].every(mw))return{ok:!1}}}return{ok:!0}}const bw={cho:Ze.length,jung:dt.length,jong:gt.length};function gw(e,t,a,r,n=1/0){if(!e||a<1)return[];const i=[...e].map(m=>Ee(m));if(i.some(m=>!m))return[];const s=i,c=s.length;if(a>c)return[];const u=bw[t],d=new Set,p=[];(function m(h,g){if(g.length===a){p.push([...g]);return}for(let f=h;f<c;f++)g.push(f),m(f+1,g),g.pop()})(0,[]);for(const m of p)if((function h(g,f){if(d.size>=n)return;if(g===m.length){const v=f.map(C=>ua(C.cho,C.jung,C.jong)).join("");v!==e&&r.has(v)&&d.add(v);return}const b=m[g],y=s[b][t];for(let v=0;v<u;v++){if(v===y)continue;const C=f.slice();if(C[b]={...f[b],[t]:v},h(g+1,C),d.size>=n)return}})(0,s),d.size>=n)break;return[...d]}function fw(e,t){if(!e||!t||e.length!==t.length)return-1;let a=0;for(let r=0;r<e.length;r++){const n=Ee(e[r]),i=Ee(t[r]);if(!n||!i)return-1;n.cho!==i.cho&&a++,n.jung!==i.jung&&a++,n.jong!==i.jong&&a++}return a}function ru(e,t){const a=t.trim();if(!a||!/[^\s,_]/.test(a))return e;if(gi(a))return e.filter(s=>fi(s.word,a));const r=e.filter(s=>ho(s.word,a)||ho(s.pronunciation??"",a)),n=[...a].length,i=s=>!!s&&ho(s.slice(0,n),a);return r.map(s=>({w:s,rank:i(s.word)||i(s.pronunciation??"")?0:1})).sort((s,c)=>s.rank-c.rank).map(s=>s.w)}const vi="word_pair_index_v2",yi="word_pair_index_sig_v2";let pa=null,Uo=null;function nu(){try{if(typeof localStorage>"u")return null;const e=localStorage.getItem(vi),t=localStorage.getItem(yi);return!e||!t?null:{index:JSON.parse(e),sig:t}}catch{return null}}function vw(e,t){try{if(typeof localStorage>"u")return;localStorage.setItem(vi,JSON.stringify(e)),localStorage.setItem(yi,t)}catch{}}function yw(e){const t=e.map(r=>`${r.word}|${r.pron??""}`).sort();let a=0;for(const r of t)for(let n=0;n<r.length;n++)a=(a<<5)-a+r.charCodeAt(n)|0;return`${t.length}-${a}`}async function xw(e,t){const a=new Set,r=[];for(const d of e){if(!d.word||a.has(d.word))continue;const p=d.pron||d.word,m=Array.from(p).map(Ee);m.some(h=>h===null)||m.length===Array.from(d.word).length&&(a.add(d.word),r.push({word:d.word,syls:m}))}const n={},i=r.length,s=new Map;for(const d of r){const p=d.syls.length;s.has(p)||s.set(p,[]),s.get(p).push(d)}let c=0;const u=["cho","jung","jong"];for(const d of s.values()){const p=d[0].syls.length;for(let m=0;m<p;m++)for(const h of u){const g=new Map;for(const f of d){let b="";for(let v=0;v<p;v++){v>0&&(b+="~");const C=f.syls[v];v===m?h==="cho"?b+=`*:${C.jung}:${C.jong}`:h==="jung"?b+=`${C.cho}:*:${C.jong}`:b+=`${C.cho}:${C.jung}:*`:b+=`${C.cho}:${C.jung}:${C.jong}`}let y=g.get(b);y||(y=[],g.set(b,y)),y.push(f)}for(const f of g.values())if(!(f.length<2))for(let b=0;b<f.length;b++){const y=f[b];for(let v=b+1;v<f.length;v++){const C=f[v];y.syls[m][h]!==C.syls[m][h]&&(n[y.word]||(n[y.word]={cho:[],jung:[],jong:[]}),n[C.word]||(n[C.word]={cho:[],jung:[],jong:[]}),n[y.word][h].push(C.word),n[C.word][h].push(y.word))}}}c+=d.length,t?.(c,i),await new Promise(m=>setTimeout(m,0))}return i>0&&t?.(i,i),n}async function iu(e,t={}){const a=yw(e);if(!t.force){if(pa&&Uo===a)return pa;const n=nu();if(n&&n.sig===a)return pa=n.index,Uo=a,pa}const r=await xw(e,t.onProgress);return pa=r,Uo=a,vw(r,a),r}function Ka(){if(pa)return pa;const e=nu();return e?(pa=e.index,Uo=e.sig,pa):null}function xi(){pa=null,Uo=null;try{typeof localStorage<"u"&&(localStorage.removeItem(vi),localStorage.removeItem(yi))}catch{}}const Ci={cho:Ze,jung:dt,jong:gt},ft=e=>Array.isArray(e)?e.length>0:!!e;function Ko(e,t){if(e.length!==t.length)return!1;for(let a=0;a<e.length;a++){const r=e[a],n=t[a];if(!(!r||!n)&&(r.cho!==n.cho&&Ze[r.cho]==="\u3147"!=(Ze[n.cho]==="\u3147")||r.jong!==n.jong&&r.jong===0!=(n.jong===0)))return!0}return!1}function _i(e,t,a){const r=a.pronOf(e),n=a.decompOf,i=a.sameStructureOnly&&n?n(r):null,s=[];for(const c of t)c!==e&&(a.okSet&&!a.okSet.has(c)||a.pronOf(c)!==r&&(i&&n&&Ko(i,n(a.pronOf(c)))||s.push(c)));return s}function Pr(e,t,a){const r=t?.[e];if(!r)return[];const n=a.kind?r[a.kind]??[]:[...r.cho??[],...r.jung??[],...r.jong??[]];return _i(e,n,a)}function wi(e,t,a,r,n,i,s){const c=["cho","jung","jong"].filter(h=>ft(e[h])),u={};for(const h of c){const g=e[h];u[h]=new Set(Array.isArray(g)?g:[g])}const d=n==="pron",p=new Map;for(const h of t){const g=a(i(h));if(g.some(v=>!v))continue;let f=g;if(!d&&(f=a(h),f.length!==g.length||f.some(v=>!v)))continue;const b=g.length,y=p.get(b);y?y.push({w:h,dPron:g,dPos:f}):p.set(b,[{w:h,dPron:g,dPos:f}])}const m=new Map;for(const[h,g]of p){const f=new Map,b=(y,v)=>{const C=y.dPos[v];return C!=null&&c.every(w=>u[w].has(Ci[w][C[w]]))};for(const y of g){let v;if(s==="head")v=b(y,0)?0:-1;else if(s==="tail")v=b(y,h-1)?h-1:-1;else if(s==="mid"){v=-1;for(let w=1;w<h-1;w++)if(b(y,w)){v=w;break}}else v=y.dPos.findIndex(w=>w!=null&&c.every(x=>u[x].has(Ci[x][w[x]])));if(v<0)continue;const C=f.get(v);C?C.push(y):f.set(v,[y])}for(const[y,v]of f){const C=new Set(c.map(S=>y+":"+S)),w=S=>{let _="";for(let k=0;k<h;k++){const N=S[k];for(const A of["cho","jung","jong"])_+=(C.has(k+":"+A)?"*":N[A])+"."}return _},x=new Map;for(const S of g){const _=w(S.dPron),k=x.get(_);k?k.push(S):x.set(_,[S])}for(const S of v){const _=x.get(w(S.dPron))??[],k=[];for(const N of _){if(N.w===S.w)continue;let A=!0;for(const D of c){const H=S.dPron[y][D],P=N.dPron[y][D];if(P===H){A=!1;break}if(d&&u[D].has(Ci[D][P])){A=!1;break}}A&&(r&&Ko(S.dPron,N.dPron)||k.push(N.w))}m.set(S.w,k)}}}return m}const Rr=0,su=1,Za=2,ki=3,Cw=4,$r=5,Si=6,Ir=7,_w=8,lu=9,Zo=10,ww=11,Xo=12,kw=13,Qo=14,zr=15,Or=16,Jo=17,Sw=18,ha=0,_a=1,Aw=3,Xa=4,Ai=5,Ti=6,ma=7,At=8,cu=9,du=10,Fr=11,uu=12,Bi=13,Wr=15,Hr=16,wa=17,pu=18,Ni=21,hu=27,Tw=20,Bw={1:Rr,2:su,4:Za,7:ki,8:$r,16:Si,17:Ir,19:lu,20:Zo,22:Xo,23:Qo,24:zr,25:Or,26:Jo},Nw={[Aw]:[_a,Zo],[Ai]:[Xa,Xo],[cu]:[At,Rr],[du]:[At,Si],[Fr]:[At,Ir],[uu]:[At,Zo],[Bi]:[At,Or],14:[At,Jo],[pu]:[wa,Zo]},Dw={[Ti]:Za,[Wr]:$r},Di={2:_a,24:_a,3:_a,9:_a,5:Xa,6:Xa,19:ma,20:ma,22:ma,23:ma,25:ma,27:ma,11:At,12:At,13:At,15:At,10:Hr,14:wa,18:wa,26:wa},mu={[Rr]:zr,[ki]:Or,[Ir]:Jo,[Xo]:Qo},bu={[Rr]:su,[ki]:Cw,[Ir]:_w,[lu]:Zo,[Xo]:kw},Ew=new Set([Ai,du,Fr,uu,Bi,Wr,pu]),jw=new Set(["\uBC1F"]);function gu(e){const t=(e??"").trim();if(!t)return"";const a=[...t],r=a.map(Ee);if(r.some(i=>i===null))return t;const n=r;for(let i=0;i<n.length;i++){const s=n[i],c=n[i+1],u=s.jong;if(!c){s.jong=Di[s.jong]??s.jong;break}if(s.jong===ha)continue;if(c.cho===ww){if(c.jung===Tw){if(s.jong===ma){s.jong=ha,c.cho=Xo;continue}if(s.jong===25){s.jong=ha,c.cho=Qo;continue}if(s.jong===Bi){s.jong=At,c.cho=Qo;continue}}if(s.jong===hu){s.jong=ha;continue}const p=Dw[s.jong];if(p!==void 0){s.jong=ha,c.cho=p;continue}const m=Nw[s.jong];if(m){s.jong=m[0],c.cho=m[1];continue}const h=Bw[s.jong];h!==void 0&&(s.jong=ha,c.cho=h);continue}if((s.jong===hu||s.jong===Ti||s.jong===Wr)&&mu[c.cho]!==void 0){c.cho=mu[c.cho],s.jong=s.jong===Ti?Xa:s.jong===Wr?At:ha;continue}if(c.cho===Sw){if(s.jong===Ai){s.jong=Xa,c.cho=Qo;continue}if(s.jong===cu){s.jong=At,c.cho=zr;continue}if(s.jong===Fr){s.jong=At,c.cho=Jo;continue}const p=Di[s.jong]??s.jong;if(p===_a){s.jong=ha,c.cho=zr;continue}if(p===ma){s.jong=ha,c.cho=Or;continue}if(p===wa){s.jong=ha,c.cho=Jo;continue}}let d=Di[s.jong]??s.jong;u===Fr&&jw.has(a[i])&&(d=wa),s.jong=d,bu[c.cho]!==void 0&&(d===_a||d===ma||d===wa||Ew.has(u))&&(c.cho=bu[c.cho]),(c.cho===Za||c.cho===Si)&&(s.jong===_a?s.jong=Ni:s.jong===ma?s.jong=Xa:s.jong===wa&&(s.jong=Hr)),c.cho===$r?s.jong===Xa?s.jong=At:s.jong===Hr||s.jong===Ni?c.cho=Za:s.jong===_a?(s.jong=Ni,c.cho=Za):s.jong===wa&&(s.jong=Hr,c.cho=Za):s.jong===At&&c.cho===Za&&(c.cho=$r)}return n.map(i=>ua(i.cho,i.jung,i.jong)).join("")}const Lw={\u3131:"\u3131",\u3132:"\u3131",\u314B:"\u3131",\u3133:"\u3131",\u313A:"\u3131",\u3134:"\u3134",\u3135:"\u3134",\u3136:"\u3134",\u3137:"\u3137",\u3145:"\u3137",\u3146:"\u3137",\u3148:"\u3137",\u314A:"\u3137",\u314C:"\u3137",\u314E:"\u3137",\u3139:"\u3139",\u313C:"\u3139",\u313D:"\u3139",\u313E:"\u3139",\u3140:"\u3139",\u3141:"\u3141",\u313B:"\u3141",\u3142:"\u3142",\u314D:"\u3142",\u313F:"\u3142",\u3144:"\u3142",\u3147:"\u3147"},Mw={\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"}};function Vr(e){return Lw[e]??e}const go=/[ㄱ-ㅎ]/,Pw=/[ㅏ-ㅣ]/;function er(e){for(let t=e.length-1;t>=0;t--){const a=e[t],r=a.charCodeAt(0);if(r>=44032&&r<=55203||go.test(a)||Pw.test(a))return a}return null}function Ei(e){const t=er(e);if(!t)return"\uAC00";const a=t.charCodeAt(0);return a>=44032&&a<=55203?(a-44032)%28!==0?"\uC774":"\uAC00":go.test(t)?"\uC774":"\uAC00"}function ji(e){return`${e}${Ei(e)}`}function Li(e){const t=er(e);if(!t)return"\uB97C";const a=t.charCodeAt(0);return a>=44032&&a<=55203?(a-44032)%28!==0?"\uC744":"\uB97C":go.test(t)?"\uC744":"\uB97C"}function Mi(e){return`${e}${Li(e)}`}function Pi(e){const t=er(e);if(!t)return"\uB294";const a=t.charCodeAt(0);return a>=44032&&a<=55203?(a-44032)%28!==0?"\uC740":"\uB294":go.test(t)?"\uC740":"\uB294"}function fu(e){return`${e}${Pi(e)}`}function Ri(e){const t=er(e);if(!t)return"\uC640";const a=t.charCodeAt(0);return a>=44032&&a<=55203?(a-44032)%28!==0?"\uACFC":"\uC640":go.test(t)?"\uACFC":"\uC640"}function vu(e){return`${e}${Ri(e)}`}function $i(e){const t=er(e);if(!t)return"\uB85C";const a=t.charCodeAt(0);if(a>=44032&&a<=55203){const r=(a-44032)%28;return r===0||r===8?"\uB85C":"\uC73C\uB85C"}return t==="\u3139"?"\uB85C":go.test(t)?"\uC73C\uB85C":"\uB85C"}function yu(e){return`${e}${$i(e)}`}function Ii(e,t,a){const r=e.slice(),[n]=r.splice(t,1);return r.splice(a,0,n),r}function He(e,t=Math.random){const a=e.slice();for(let r=a.length-1;r>0;r--){const n=Math.floor(t()*(r+1));[a[r],a[n]]=[a[n],a[r]]}return a}function Qt(e,t,a=Math.random){return!Array.isArray(e)||e.length===0||t<=0?[]:t>=e.length?He(e,a):He(e,a).slice(0,t)}const fo={SAME_SOUND_PICK:{difficulty:!0,choseong:!0,group:"discrimination"},SAME_OR_DIFF:{difficulty:!0,choseong:!0,group:"discrimination"},HEAR_AND_PICK_SAME:{difficulty:!0,choseong:!0,group:"discrimination"},HEAR_AND_PICK_INCLUDED:{difficulty:!0,choseong:!0,group:"discrimination"},STARTS_WITH_SAME_SOUND:{difficulty:!1,choseong:!0,group:"discrimination"},LISTEN_AND_REMEMBER_ORDER:{difficulty:!1,choseong:!0,group:"attention"},MERGE_2_SYLLABLES:{difficulty:!1,choseong:!0,group:"synthesis"},MERGE_3_SYLLABLES:{difficulty:!1,choseong:!0,group:"synthesis"},MERGE_2_PHONEMES:{difficulty:!1,choseong:!0,group:"synthesis"},MERGE_3_PHONEMES:{difficulty:!1,choseong:!0,group:"synthesis"},DROP_1_FROM_2SYLL:{difficulty:!1,choseong:!0,group:"deletion"},DROP_1_FROM_3SYLL:{difficulty:!1,choseong:!0,group:"deletion"},DROP_PART_FROM_COMPOUND:{difficulty:!1,choseong:!0,group:"deletion"},DROP_FINAL_CONSONANT_FROM_1SYLL:{difficulty:!1,choseong:!0,group:"deletion"},REMOVE_CONSONANT_AND_IDENTIFY_PHONEME:{difficulty:!1,choseong:!0,group:"deletion"},CHANGE_1_SYLL_IN_2SYLL:{difficulty:!0,choseong:!0,group:"substitution"},CHANGE_1_SYLL_IN_3SYLL:{difficulty:!0,choseong:!0,group:"substitution"},CHANGE_1_PHONEME_IN_1SYLL:{difficulty:!1,choseong:!0,group:"substitution"},CHANGE_1_PHONEME_IN_2SYLL:{difficulty:!0,choseong:!0,group:"substitution"}};function Rw(e){const t=e?fo[e]?.group:void 0;return t==="synthesis"||t==="deletion"||t==="substitution"?t:null}const $w=Ze.indexOf("\u3147"),Gr={DROP_FINAL_CONSONANT_FROM_1SYLL:{syllables:1,syllable:e=>e.jong>0},REMOVE_CONSONANT_AND_IDENTIFY_PHONEME:{syllables:1,syllable:e=>e.jong===0&&e.cho!==$w},MERGE_2_SYLLABLES:{syllables:2,syllable:()=>!0},MERGE_3_SYLLABLES:{syllables:3,syllable:()=>!0},MERGE_2_PHONEMES:{syllables:1,syllable:e=>e.jong===0},MERGE_3_PHONEMES:{syllables:1,syllable:e=>e.jong>0}},Iw=new Set([]);function xu(e){return e in Gr}function Cu(e,t){const a=Gr[e];if(!a)return!0;const r=[...t];if(r.length!==a.syllables)return!1;const n=Ee(r[0]);return!!n&&a.syllable(n)}function _u(e){return Iw.has(e)}function zw(e){const t=e.charCodeAt((e.length||1)-1)||0;return t<44032||t>55203||(t-44032)%28===0?"\uC640":"\uACFC"}function zi(e){const t=e.charCodeAt((e.length||1)-1)||0;return t<44032||t>55203||(t-44032)%28===0?"\uB97C":"\uC744"}function wu(e){const t=e.charCodeAt((e.length||1)-1)||0;if(t<44032||t>55203)return"\uB85C";const a=(t-44032)%28;return a===0||a===8?"\uB85C":"\uC73C\uB85C"}function ku(e){const t=e.charAt((e.length||1)-1),a=t.charCodeAt(0)||0;return a>=44032&&a<=55203?(a-44032)%28===0?"\uAC00":"\uC774":/[ㄱ-ㅎ]/.test(t)?"\uC774":"\uAC00"}const Su={\u3131:"\uAE30\uC5ED",\u3132:"\uC30D\uAE30\uC5ED",\u3134:"\uB2C8\uC740",\u3137:"\uB514\uADFF",\u3138:"\uC30D\uB514\uADFF",\u3139:"\uB9AC\uC744",\u3141:"\uBBF8\uC74C",\u3142:"\uBE44\uC74D",\u3143:"\uC30D\uBE44\uC74D",\u3145:"\uC2DC\uC637",\u3146:"\uC30D\uC2DC\uC637",\u3147:"\uC774\uC751",\u3148:"\uC9C0\uC752",\u3149:"\uC30D\uC9C0\uC752",\u314A:"\uCE58\uC753",\u314B:"\uD0A4\uC754",\u314C:"\uD2F0\uC755",\u314D:"\uD53C\uC756",\u314E:"\uD788\uC757",\u3133:"\uAE30\uC5ED\uC2DC\uC637",\u3135:"\uB2C8\uC740\uC9C0\uC752",\u3136:"\uB2C8\uC740\uD788\uC757",\u313A:"\uB9AC\uC744\uAE30\uC5ED",\u313B:"\uB9AC\uC744\uBBF8\uC74C",\u313C:"\uB9AC\uC744\uBE44\uC74D",\u313D:"\uB9AC\uC744\uC2DC\uC637",\u313E:"\uB9AC\uC744\uD2F0\uC755",\u313F:"\uB9AC\uC744\uD53C\uC756",\u3140:"\uB9AC\uC744\uD788\uC757",\u3144:"\uBE44\uC74D\uC2DC\uC637",\u314F:"\uC544",\u3150:"\uC560",\u3151:"\uC57C",\u3152:"\uC598",\u3153:"\uC5B4",\u3154:"\uC5D0",\u3155:"\uC5EC",\u3156:"\uC608",\u3157:"\uC624",\u3158:"\uC640",\u3159:"\uC65C",\u315A:"\uC678",\u315B:"\uC694",\u315C:"\uC6B0",\u315D:"\uC6CC",\u315E:"\uC6E8",\u315F:"\uC704",\u3160:"\uC720",\u3161:"\uC73C",\u3162:"\uC758",\u3163:"\uC774"};function Au(e){if([...e].length!==1)return[e];const t=Ee(e);if(!t)return[e];const a=[Ze[t.cho],dt[t.jung]];return t.jong!==0&&a.push(gt[t.jong]),a}function Oi(e,t=!1){const a=e.filter(Boolean);if(a.length<2)return"";const r=c=>Su[c]??c,n=a.slice(0,-1).map(c=>`"${c}"${zw(r(c))}`).join(" "),i=a[a.length-1],s=`"${i}"${zi(r(i))}`;return`${n} ${s} \uD569\uCE58\uBA74 \uC5B4\uB5A4 ${t?"\uC18C\uB9AC":"\uB2E8\uC5B4"}\uAC00 \uB418\uB098\uC694?`}function Ow(e,t){return Oi(t,e==="MERGE_2_PHONEMES"||e==="MERGE_3_PHONEMES")}function Fw(e,t){const a=String(t?.word??t?.original??""),r=String(t?.changedFrom??""),n=String(t?.changedTo??"");return e==="CHANGE_1_PHONEME_IN_1SYLL"?`"${a}"${zi(a)} "${n}"${wu(n)} \uBC14\uAFB8\uBA74 \uBB34\uC5C7\uC774 \uB418\uB098\uC694?`:`"${a}"\uC5D0\uC11C "${r}"${zi(r)} "${n}"${wu(n)} \uBC14\uAFB8\uBA74 \uBB34\uC5C7\uC774 \uB418\uB098\uC694?`}function Ww(e,t){const a=String(t?.word??t?.original??t?.base??""),r=String(t?.dropped??"");if(e==="DROP_FINAL_CONSONANT_FROM_1SYLL")return`"${a}"\uC5D0\uC11C \uBC1B\uCE68\uC774 \uC5C6\uC5B4\uC9C0\uBA74 \uC5B4\uB5A4 \uB9D0\uC774 \uB418\uB098\uC694?`;if(e==="REMOVE_CONSONANT_AND_IDENTIFY_PHONEME"){const n=String(t?.missingConsonant??"");return`"${a}"\uC5D0\uC11C "${n}"${ku(n)} \uC5C6\uC5B4\uC9C0\uBA74 \uC5B4\uB5A4 \uC18C\uB9AC\uAC00 \uB418\uB098\uC694?`}return`"${a}"\uC5D0\uC11C "${r}"${ku(r)} \uC5C6\uC5B4\uC9C0\uBA74 \uC5B4\uB5A4 \uB9D0\uC774 \uB418\uB098\uC694?`}function Tu(e,t,a){switch(Rw(e)){case"synthesis":return Ow(e,a);case"substitution":return Fw(e,t);case"deletion":return Ww(e,t);default:return""}}function Bu(e){return e.replace(/"([ㄱ-ㅣ])"(으로|와|과|을|를|이|가|은|는|로)?/g,(t,a,r)=>{const n=Su[a];if(!n)return t;if(!r)return`"${n}"`;const i=(n.charCodeAt(n.length-1)-44032)%28,s=i!==0;let c=r;return r==="\uC640"||r==="\uACFC"?c=s?"\uACFC":"\uC640":r==="\uC744"||r==="\uB97C"?c=s?"\uC744":"\uB97C":r==="\uC774"||r==="\uAC00"?c=s?"\uC774":"\uAC00":r==="\uC740"||r==="\uB294"?c=s?"\uC740":"\uB294":(r==="\uC73C\uB85C"||r==="\uB85C")&&(c=i===0||i===8?"\uB85C":"\uC73C\uB85C"),`"${n}"${c}`})}const Hw=e=>e==null?[]:Array.isArray(e)?e:[e];function Fi(e){if([...e].length!==1)return"";const t=Ee(e);if(!t)return"";const a=Vr(gt[t.jong]),r=a===""?0:gt.indexOf(a);return ua(t.cho,t.jung,r<0?0:r)}function qr(e,t){return t.get(e)||Fi(e)||e}function tr(e){return e?ft(e.cho)?"cho":ft(e.jung)?"jung":ft(e.jong)?"jong":null:null}function Pa(e,t){const a=(r,n)=>!ft(r)||Hw(r).includes(n);return a(t.cho,Ze[e.cho])&&a(t.jung,dt[e.jung])&&a(t.jong,gt[e.jong])}function Qa(e,t,a){const r=[...e];if(a!=="pron")return r.map(i=>Ee(i));const n=[...t.get(e)||e];return n.length!==r.length?r.map(i=>Ee(i)):n.map(i=>Ee(i))}function Ja(e,t,a,r,n){const i=t==="cho"?Ze:t==="jung"?dt:gt,s=e[t],c=[],u=new Set([qr(a,n)]),d=He(i.map((p,m)=>m).filter(p=>p!==s&&(t!=="cho"||i[p]!=="\u3147")&&(t!=="jong"||p!==0)));for(const p of d){if(c.length>=r)break;const m=t==="cho"?ua(p,e.jung,e.jong):t==="jung"?ua(e.cho,p,e.jong):ua(e.cho,e.jung,p),h=qr(m,n);u.has(h)||(u.add(h),c.push(m))}return c}function Wi(e,t,a,r,n,i=null){const s=[...e];if(s.length!==2)return null;const c=s.map(m=>Ee(m));if(c.some(m=>!m))return null;const u=Qa(e,a,r);if(u.some(m=>!m))return null;const d=tr(t);let p=d&&t?u.map((m,h)=>Pa(m,t)?h:-1).filter(m=>m>=0):[0,1];if(i!=null&&(p=p.filter(m=>m!==i)),!p.length)return null;for(const m of He(p)){const h=s[m];if(!n.has(h))continue;const g=Ja(c[m],d??"cho",h,40,a),f=[];for(const b of g)if(b!==h&&n.has(b)&&!f.includes(b)&&f.push(b),f.length>=2)break;if(!(f.length<2))return{question:e,distractors:[h,...f]}}return null}function Hi(e,t,a,r,n,i=null){const s=[...e];if(s.length!==3)return null;const c=s.map(m=>Ee(m));if(c.some(m=>!m))return null;const u=Qa(e,a,r);if(u.some(m=>!m))return null;const d=tr(t),p=d&&t?u.map((m,h)=>Pa(m,t)?h:-1).filter(m=>m>=0):[0,1,2];if(!p.length)return null;for(const m of He(p))for(const h of He([0,1,2].filter(g=>g!==m&&(i==null||g===i)))){const g=[0,1,2].filter(C=>C!==h),f=g.map(C=>s[C]).join("");if(!n.has(f))continue;const b=g.indexOf(m),y=Ja(c[m],d??"cho",s[m],40,a),v=[];for(const C of y){const w=g.map(S=>s[S]);w[b]=C;const x=w.join("");if(x!==f&&n.has(x)&&!v.includes(x)&&v.push(x),v.length>=2)break}if(!(v.length<2))return{question:e,distractors:[f,...v]}}return null}function Vi(e,t,a,r,n,i=null){const s=[...e],c=s.length;if(c<2)return null;const u=[];for(let p=1;p<=c-1;p++)u.push({remain:s.slice(0,p).join(""),dropped:s.slice(p).join(""),droppedEnd:1}),u.push({remain:s.slice(c-p).join(""),dropped:s.slice(0,c-p).join(""),droppedEnd:0});const d=tr(t);for(const{remain:p,dropped:m,droppedEnd:h}of He(u)){if(i!=null&&h!==i||p===e||!n.has(p)||!n.has(m))continue;const g=[...p],f=g.map(v=>Ee(v));if(f.some(v=>!v))continue;const b=Qa(p,a,r);if(b.some(v=>!v))continue;const y=d&&t?b.map((v,C)=>Pa(v,t)?C:-1).filter(v=>v>=0):g.map((v,C)=>C);if(y.length)for(const v of He(y)){const C=Ja(f[v],d??"cho",g[v],40,a),w=[];for(const x of C){const S=[...g];S[v]=x;const _=S.join("");if(_!==p&&n.has(_)&&!w.includes(_)&&w.push(_),w.length>=2)break}if(w.length>=2)return{question:e,distractors:[p,...w]}}}return null}function Gi(e,t,a,r,n,i=null){if([...e].length!==1)return null;const s=Ee(a.get(e)||e);if(!s||s.jong===0)return null;const c=ua(s.cho,s.jung,0),u=Ja({cho:s.cho,jung:s.jung,jong:0},"cho",c,2,a);return u.length<2?null:{question:e,distractors:[c,...u]}}const qi=Ze.indexOf("\u3147");function Yi(e,t,a,r,n,i=null){if([...e].length!==1)return null;const s=Ee(a.get(e)||e);if(!s||s.jong!==0||s.cho===qi)return null;const c=ua(qi,s.jung,0),u=Ja({cho:qi,jung:s.jung,jong:0},"jung",c,2,a);return u.length<2?null:{question:e,distractors:[c,...u]}}function Ui(e){const t=new Map;for(const a of e){const r=[...a],n=r.length;if(!(n<2||n>3))for(let i=0;i<n;i++){let s=n+"|"+i+"|";for(let u=0;u<n;u++)s+=u===i?"*":r[u];const c=t.get(s);c?c.push(a):t.set(s,[a])}}return t}function Ki(e,t,a,r,n,i=null,s=null,c=2){const u=[...e],d=u.length;if(d<2||d>3)return null;const p=u.map(C=>Ee(C));if(p.some(C=>!C))return null;const m=Qa(e,a,r);if(m.some(C=>!C))return null;const h=C=>a.get(C)??C,g=h(e),f=!!t&&(ft(t.cho)||ft(t.jung)||ft(t.jong)),b=!!s&&(ft(s.cho)||ft(s.jung)||ft(s.jong)),y=C=>{let w=d+"|"+C+"|";for(let x=0;x<d;x++)w+=x===C?"*":u[x];return w};let v;if(i!=null){if(i>=d||f&&!Pa(m[i],t))return null;v=[i]}else f?v=m.map((C,w)=>Pa(C,t)?w:-1).filter(C=>C>=0):v=Array.from({length:d},(C,w)=>w);for(const C of He(v)){const w=n.get(y(C))??[],x=[],S=[];for(const D of w){if(D===e)continue;const H=[...D].map(L=>Ee(L)),P=p[C],T=H[C];if(!P||!T)continue;let E=0;if(P.cho!==T.cho&&E++,P.jung!==T.jung&&E++,P.jong!==T.jong&&E++,!(E<c||h(D)===g))if(b){const L=Qa(D,a,r)[C];L&&Pa(L,s)?x.push(D):S.push(D)}else x.push(D)}if(!x.length)continue;const _=He(x)[0],k=[],N=new Set([g,h(_)]),A=b?S:x.filter(D=>D!==_);for(const D of He(A)){const H=h(D);if(!N.has(H)&&(N.add(H),k.push(D),k.length>=2))break}if(!b&&k.length<2)for(const D of He(w)){if(D===e||D===_)continue;const H=h(D);if(!N.has(H)&&(N.add(H),k.push(D),k.length>=2))break}if(!(k.length<2))return{question:e,distractors:[_,...k]}}return null}function Yr(e,t="\uC54C \uC218 \uC5C6\uB294 \uC624\uB958"){if(e instanceof Error)return e.message||t;if(typeof e=="string")return e||t;if(e&&typeof e=="object"){const a=e;for(const r of[a.message,a.error_description,a.error])if(typeof r=="string"&&r)return r}return t}const Zi="\uB124\uD2B8\uC6CC\uD06C \uC5F0\uACB0\uC774 \uBD88\uC548\uC815\uD569\uB2C8\uB2E4. \uC5F0\uACB0 \uC0C1\uD0DC\uB97C \uD655\uC778\uD55C \uB4A4 \uB2E4\uC2DC \uC2DC\uB3C4\uD574 \uC8FC\uC138\uC694.";function Xi(e){return e?/failed to fetch|load failed|networkerror|network request failed|fetcherror/i.test(e):!1}function Nu(e){return Xi(e)?Zi:e}function Du(e,t){return e==="id"?void 0:`${e}|${t?"asc":"desc"}`}function Eu(e){const[t,a]=e.split("|");return{key:t,asc:a==="asc"}}function ju(e){let t=e==null?"":String(e);return/^[=+\-@\t\r]/.test(t)&&(t=" "+t),/[",\n\r]/.test(t)?`"${t.replaceAll('"','""')}"`:t}function Lu(e,t){const a=new Blob(["\uFEFF"+t],{type:"text/csv;charset=utf-8"}),r=URL.createObjectURL(a),n=document.createElement("a");n.href=r,n.download=e,n.click(),URL.revokeObjectURL(r)}const Mu="__ihab_core_word_pool__";function Vw(){typeof window<"u"&&window.dispatchEvent(new CustomEvent("wordpool:update"))}function Pu(e,t){const a=new Map;for(const n of e)a.set(n.word,n);const r={entries:e,pairIndex:t??null,byWord:a};globalThis[Mu]=r,Vw()}function vo(){return globalThis[Mu]??null}const yo=globalThis;function Qi(e,t){const a=r=>{};try{const r=t();r&&typeof r.catch=="function"&&r.catch(a)}catch(r){a(r)}}function Ru(e){yo.__ihabTrainingTimeLogger=e}function Ji(e){Qi("time",()=>yo.__ihabTrainingTimeLogger?.(e))}function $u(e){yo.__ihabTrainingCompletionLogger=e}function es(e){Qi("completion",()=>yo.__ihabTrainingCompletionLogger?.(e))}function Iu(e){yo.__ihabCrosswordLogger=e}function zu(e){Qi("crossword",()=>yo.__ihabCrosswordLogger?.(e))}function Jt(e){return typeof e=="string"?e.trim()||null:typeof e=="number"?String(e):null}function ts(e){for(const t of["correct","isCorrect","heard","judgement"])if(typeof e[t]=="boolean")return e[t];return e.score===1?!0:e.score===0?!1:null}function as(e){return Array.isArray(e)?e.map((t,a)=>{const r=t??{};return{index:a,itemId:Jt(r.contextCode)??Jt(r.itemId)??Jt(r.itemCode)??Jt(r.id),question:Jt(r.question)??Jt(r.sentence)??Jt(r.word)??Jt(r.targetSyllable),answer:Jt(r.answer),selected:Jt(r.selectedText)??Jt(r.selected),correct:ts(r)}}):[]}function Ou(e){return e.filter(t=>t.correct===!1)}let Fu=null,Wu=null,Hu=null;function Vu(e){Fu=e}function Gu(e){Wu=e}function qu(e){Hu=e}async function Yu(e,t){try{return await Fu?.(e,t)??null}catch{return null}}async function Uu(){try{return await Wu?.()??null}catch{return null}}async function Ku(e,t){try{return await Hu?.(e,t)??null}catch{return null}}const os=globalThis;function Zu(e){os.__ihabNoiseSettingsStore=e}async function rs(){try{return await os.__ihabNoiseSettingsStore?.load()??null}catch{return null}}function ns(e){const t=a=>{};try{const a=os.__ihabNoiseSettingsStore?.save(e);a&&typeof a.catch=="function"&&a.catch(t)}catch(a){t(a)}}function ar(e){const t=new TextEncoder().encode(String(e).normalize("NFC"));let a="";return t.forEach(r=>{a+=r.toString(16).padStart(2,"0")}),a}const Xu=ar;function Qu(e,t){return`${e}/${ar(t)}.mp3`}function Ju(e={}){const t=e.storagePrefix??"audio-cache",a=e.voice??"ko-f",r=typeof e.speed=="number"?e.speed:1,n=e.filenameSanitizer??ar;return async function(i){const s=String(i||"").trim();if(!s)return"";const c=`${n(s)}_${a}.mp3`,u=`${t}/${c}`;try{if(await ei(u)){const d=await Oo(u);if(d)return d}}catch{}if(e.generator)try{const d=await e.generator(s,u,e);if(d)return d}catch{}try{const d=`/api/tts?word=${encodeURIComponent(s)}&voice=${encodeURIComponent(a)}&speed=${encodeURIComponent(String(r))}`;return await fetch(d,{method:"GET"}),`/audio-cache/${c}`}catch{return`/audio-cache/${c}`}}}async function is(e){if(typeof document<"u")try{const t=document.createElement("textarea");t.value=e,t.setAttribute("readonly",""),t.style.position="fixed",t.style.top="0",t.style.left="0",t.style.opacity="0",t.style.pointerEvents="none",document.body.appendChild(t),t.focus(),t.select(),t.setSelectionRange(0,e.length);const a=document.execCommand("copy");if(document.body.removeChild(t),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}const xo="Asia/Seoul";function ep(e){return new Date(e).toLocaleDateString("ko-KR",{timeZone:xo,year:"numeric",month:"short",day:"numeric"})}function tp(e){return new Date(e).toLocaleString("ko-KR",{timeZone:xo,year:"numeric",month:"long",day:"numeric",hour:"2-digit",minute:"2-digit"})}function ap(e,t){const a=t.startsWith("ko")?"ko-KR":"en-US";return new Date(e).toLocaleDateString(a,{timeZone:xo,year:"numeric",month:"short",day:"numeric"})}function op(e,t){const a=t.startsWith("ko")?"ko-KR":"en-US";return new Date(e).toLocaleString(a,{timeZone:xo,year:"numeric",month:"long",day:"numeric",hour:"2-digit",minute:"2-digit"})}function rp(e){return new Date(e).toLocaleString("ko-KR",{timeZone:xo,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"})}function np(e){if(e==null||e==="")return"";const t=e instanceof Date?e:new Date(e);return isNaN(t.getTime())?"":new Intl.DateTimeFormat("en-GB",{timeZone:xo,hour:"2-digit",minute:"2-digit",hour12:!1}).format(t)}function Ur(){return ka(new Date)}function ka(e){if(e==null||e==="")return"";const t=e instanceof Date?e:new Date(e);return isNaN(t.getTime())?"":new Intl.DateTimeFormat("fr-CA",{timeZone:"Asia/Seoul"}).format(t)}function Kr(e,t){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)),n=Math.floor(r/60),i=Math.floor(n/60),s=Math.floor(i/24),c=Math.floor(s/7),u=Math.floor(s/30),d=Math.floor(s/365);return n<1?t("store.time.justNow","\uBC29\uAE08 \uC804"):n<60?t("store.time.minutesAgo",{n}):i<24?t("store.time.hoursAgo",{n:i}):s<7?t("store.time.daysAgo",{n:s}):c<5?t("store.time.weeksAgo",{n:c}):s<365?t("store.time.monthsAgo",{n:Math.min(u,11)}):t("store.time.yearsAgo",{n:d})}function Zr(e,t={}){const{sep:a=".",pad:r=!0,trailingDot:n=!1,fallback:i="\u2014"}=t;if(!e)return i;const s=ka(e instanceof Date?e:String(e));if(!s)return i;const[c,u,d]=s.split("-"),p=r?u:String(Number(u)),m=r?d:String(Number(d));return`${c}${a}${p}${a}${m}${n?".":""}`}function ip(e){const t=e.replace(/\D/g,"").slice(0,11);return t.startsWith("02")?t.length<=2?t:t.length<=6?`${t.slice(0,2)}-${t.slice(2)}`:`${t.slice(0,2)}-${t.slice(2,t.length-4)}-${t.slice(t.length-4)}`:t.length<=3?t:t.length<=7?`${t.slice(0,3)}-${t.slice(3)}`:`${t.slice(0,3)}-${t.slice(3,t.length-4)}-${t.slice(t.length-4)}`}function sp(e){if(e){if(/^\d{4}\.\d{2}\.\d{2}$/.test(e))return e;if(/^\d{8}$/.test(e))return`${e.slice(0,4)}.${e.slice(4,6)}.${e.slice(6,8)}`;if(/^\d{4}-\d{2}-\d{2}$/.test(e))return e.replace(/-/g,".");if(/^\d{4}-\d{2}-\d{2}T/.test(e)){const t=new Date(e);return isNaN(t.getTime())?void 0:ka(t).replace(/-/g,".")}}}function lp(e){if(e)return/^\d{4}\.\d{2}\.\d{2}$/.test(e)?e.replace(/\./g,"-"):e}function or(e){if(!e)return e;const t=e.trim();return/^[₩$]/.test(t)?t:/원\s*$/.test(t)?"\u20A9"+t.replace(/\s*원\s*$/,"").trim():t}function Xr(e,t){if(!e)return"-";const a=/^(\d{1,2}):(\d{2})$/.exec(e.trim());if(!a)return e;const r=Number(a[1]),n=Number(a[2]),i=a[1].padStart(2,"0");return n===0?t("date.timeH",{h:r,hh:i,mm:a[2]}):t("date.timeHM",{h:r,hh:i,m:n,mm:a[2]})}function rr(e){return(e??0).toLocaleString("ko-KR")}const Gw=[{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"}]}],qw=[{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"}];let ss=null;function cp(e){ss=e}function Qr(){return ss?.topicTypes??Gw}function ls(){return ss?.trainingTypes??qw}const dp="ihab_theme",Yw="light";function cs(){try{const e=localStorage.getItem(dp);if(e==="light"||e==="dark"||e==="auto")return e}catch{}return Yw}function ds(e){try{document.documentElement.setAttribute("data-theme",e),localStorage.setItem(dp,e)}catch{}}function up(){ds(cs())}const pp="ihab_font_scale",Uw="medium",Kw=["medium","large1","large2","large3"];function us(){try{const e=localStorage.getItem(pp);if(Kw.includes(e))return e}catch{}return Uw}function ps(e){try{document.documentElement.setAttribute("data-font-scale",e),localStorage.setItem(pp,e)}catch{}}function hp(){ps(us())}const Ra=[],$a=[],Ia=[],za=[],nr={LISTEN_IN_NOISE:[],SHORT_STORY:[],LONG_STORY:[],ORDERING_SENTENCE:[]},ir={LISTEN_IN_NOISE:[],SHORT_STORY:[],LONG_STORY:[],ORDERING_SENTENCE:[]},Zw={LISTEN_IN_NOISE:3,SHORT_STORY:2,LONG_STORY:1,ORDERING_SENTENCE:2};let hs=null,mp=null,Oa=null;function ms({counts:e,forceRefresh:t}={}){const a=Object.assign({},Zw,e||{}),r=Ur(),n=ka(new Date(`${r}T00:00:00+09:00`).getTime()-864e5),i=JSON.stringify(a);if(!t&&mp===r&&hs===i&&Oa)return Object.assign(nr,Oa.today),Object.assign(ir,Oa.yesterday?.selection||{LISTEN_IN_NOISE:[],SHORT_STORY:[],LONG_STORY:[],ORDERING_SENTENCE:[]}),{today:nr,yesterday:ir};const s={LISTEN_IN_NOISE:Qt(Ra,Math.max(0,Number(a.LISTEN_IN_NOISE)||0)),SHORT_STORY:Qt($a,Math.max(0,Number(a.SHORT_STORY)||0)),LONG_STORY:Qt(Ia,Math.max(0,Number(a.LONG_STORY)||0)),ORDERING_SENTENCE:Qt(za,Math.max(0,Number(a.ORDERING_SENTENCE)||0))};let c=null;return Oa&&hs===i&&Oa.yesterday&&Oa.yesterday.date===n&&(c=Oa.yesterday.selection),c||(c={LISTEN_IN_NOISE:Qt(Ra,Math.max(0,Number(a.LISTEN_IN_NOISE)||0)),SHORT_STORY:Qt($a,Math.max(0,Number(a.SHORT_STORY)||0)),LONG_STORY:Qt(Ia,Math.max(0,Number(a.LONG_STORY)||0)),ORDERING_SENTENCE:Qt(za,Math.max(0,Number(a.ORDERING_SENTENCE)||0))}),Object.assign(nr,s),Object.assign(ir,c),mp=r,hs=i,Oa={today:s,yesterday:{date:n,countsKey:i,selection:c}},{today:nr,yesterday:ir}}function bp(){return{today:nr,yesterday:ir}}function bs(){return{LISTEN_IN_NOISE:Ra,SHORT_STORY:$a,LONG_STORY:Ia,ORDERING_SENTENCE:za}}let gs=!1,sr=null;async function Xw(){try{const e={url:typeof document>"u"?require("url").pathToFileURL(__filename).href:Yt&&Yt.tagName.toUpperCase()==="SCRIPT"&&Yt.src||new URL("ihabdevteam-core.cjs.js",document.baseURI).href}&&void 0||"/",t=await fetch(`${e}data/allTrainingData.json`);return t.ok?await t.json():null}catch{return null}}async function fs(){if(!gs)return sr||(sr=(async()=>{const e=await Xw();if(!e){sr=null;try{window.dispatchEvent(new Event("speechear.data.error"))}catch{}return}try{for(const t of Object.keys(e||{})){const a=e[t]||[];for(const r of a){const n=r,i=String(n.training_type||t),s=String(n.category_main_code||n.category_main||n.category_0||""),c=String(n.category_sub_code||n.category_sub||n.category_1||""),u=Object.assign({},n,{training_type:i,category_0:s,category_1:c});i==="LISTEN_IN_NOISE"?Ra.push(u):i==="SHORT_STORY"?$a.push(u):i==="LONG_STORY"?Ia.push(u):i==="ORDERING_SENTENCE"&&za.push(u)}}}catch{sr=null;try{window.dispatchEvent(new Event("speechear.data.error"))}catch{}return}try{window.dispatchEvent(new Event("speechear.data.updated"))}catch{}try{ms()}catch{}gs=!0})(),sr)}function gp(){return gs}async function vs(e=3e3){const t=fs();return Promise.race([t,new Promise(a=>setTimeout(a,e))])}const Jr=[{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."}],fp=[{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\uC0C1\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",desc:"\uC18C\uC74C \uD658\uACBD \uC18D \uBB38\uC7A5 \uC774\uD574 \uD6C8\uB828",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",desc:"\uC18C\uC74C \uD658\uACBD \uC18D \uBB38\uC7A5 \uC774\uD574 \uD6C8\uB828",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",desc:"\uC18C\uC74C \uD658\uACBD \uC18D \uBB38\uC7A5 \uC774\uD574 \uD6C8\uB828",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",desc:"\uC18C\uC74C \uD658\uACBD \uC18D \uBB38\uC7A5 \uC774\uD574 \uD6C8\uB828",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",desc:"\uC18C\uC74C \uD658\uACBD \uC18D \uBB38\uC7A5 \uC774\uD574 \uD6C8\uB828",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",desc:"\uC18C\uC74C \uD658\uACBD \uC18D \uBB38\uC7A5 \uC774\uD574 \uD6C8\uB828",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",desc:"\uC18C\uC74C \uD658\uACBD \uC18D \uBB38\uC7A5 \uC774\uD574 \uD6C8\uB828",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"}]}],ys={LISTEN_IN_NOISE:"listenInNoise",SHORT_STORY:"shortStory",LONG_STORY:"longStory",ORDERING_SENTENCE:"orderingSentence"};function Qw(e){return Jr.map(t=>{const a=ys[t.key];return a?{...t,label:e(`trainingType.${a}.title`),desc:e(`trainingType.${a}.desc`)}:t})}let en=null,vp=null,yp=null;function Jw(){const e=vo();if(e&&e.entries.length>0){const t=Ka();if(en&&vp===e&&yp===t)return en;const a=new Set,r=[];for(const n of e.entries)!n.word||a.has(n.word)||(a.add(n.word),r.push({w:n.word,s:n.syllables,p:t?.[n.word]?[...t[n.word].cho??[],...t[n.word].jung??[],...t[n.word].jong??[]]:[],pron:n.pronunciation||n.word,grade:n.grade}));return en=r,vp=e,yp=t,en}return[]}const ea=new Proxy([],{get(e,t){const a=Jw(),r=a[t];return typeof r=="function"?r.bind(a):r}});function tn(e){return e.length?e[Math.floor(Math.random()*e.length)]:void 0}function ta(e,t){if(t>=e.length)return He(e);if(t===0)return[];const a=e.slice();for(let r=0;r<t;r++){const n=r+Math.floor(Math.random()*(a.length-r)),i=a[r];a[r]=a[n],a[n]=i}return a.slice(0,t)}let xs=null,xp=null;function eo(){const e=vo();if(xs&&xp===e)return xs;const t=new Map;for(const a of ea)a.w&&t.set(a.w,a.pron);return xs=t,xp=e,t}function Ft(e){return eo().get(e)||e}function Cs(e,t,a=new Set){const r=[];for(const n of He(e)){if(r.length>=t)break;const i=Ft(n);a.has(i)||(a.add(i),r.push(n))}return r}let e4=0;function Tt(e){return`${e}-rt-${++e4}`}function lr(e){const t=Mr();if(!t||t.total===0){const r=new Set;for(const n of e)r.add(n);return r}const a=new Set;for(const r of e)si(r)===!0&&a.add(r);return a}const an=new Map;let Cp=null,_p=null;function cr(e){return e==null?"":Array.isArray(e)?e.slice().sort().join(","):e}function wp(e){const t=cr(e.choseong),a=e.composition,r=a?.syllable==null?"":Array.isArray(a.syllable)?a.syllable.slice().sort().join(","):String(a.syllable),n=a?`${cr(a.cho)}/${cr(a.jung)}/${cr(a.jong)}/${a.jongNone?"N":""}/${r}`:"",i=cr(e.grade);return`${e.difficulty??""}|${t}|${n}|${e.excludeNoImage?"1":"0"}|${e.count??""}|x${e.contrastCount??1}|${e.fullCount?"F":""}|s${e.sameStructureOnly===!1?"0":"1"}|v${e.phonemeView==="pron"?"p":"c"}|g${i}|t${e.targetSyllable??""}|c${e.choicesPerItem??""}`}async function Wt(e){const t=vo(),a=Ka();(t!==Cp||a!==_p)&&(an.clear(),Cp=t,_p=a);const r=wp(e);return an.has(r)||an.set(r,a4(e)),an.get(r)}function t4(e){if(!e)return null;const t=s=>s==null?null:Array.isArray(s)?s.length?s:null:[s],a=t(e.cho),r=t(e.jung),n=!!e.jongNone,i=n?null:t(e.jong);return a||r||i||n?n&&!a&&!r&&!i?s=>mi(s):s=>bi(s,{cho:a,jung:r,jong:i,jongNone:n}):null}async function a4(e){const{difficulty:t=null,choseong:a=null,composition:r=null,targetSyllable:n=null,excludeNoImage:i=!1}=e,s=e.grade&&e.grade.length>0?new Set(e.grade):null,c=e.sameStructureOnly??!0,u=e.phonemeView==="pron"?"pron":"char",d=Math.max(1,e.contrastCount??1),p=t==="cho"||t==="jung"||t==="jong",m=p&&d>=2,h=t==="count",g=a?new Set(Array.isArray(a)?a:[a]):null,f=r?.syllable!=null?new Set(Array.isArray(r.syllable)?r.syllable:[r.syllable]):null,b=r?[t4(r),f?j=>f.has(bo(j)):null].filter(j=>j!=null):[],y=t==="random"||t===null,v=y||h,C=y||m||h;let w=ea.filter(j=>!j.w||s&&(!j.grade||!s.has(j.grade))?!1:C?!0:Array.isArray(j.p)&&j.p.length>0);g&&(w=w.filter(j=>{for(const M of g)if(uw(j.w,M))return!0;return!1})),b.length>0&&(w=w.filter(j=>{const M=u==="pron"?Ft(j.w):j.w;return b.every($=>$(M))})),n&&(w=w.filter(j=>j.w[0]===n));let x;if(i){const j=new Set;for(const M of w)if(j.add(M.w),Array.isArray(M.p))for(const $ of M.p)j.add($);if(v)for(const M of ea)M.w&&j.add(M.w);x=lr(j)}else{const j=new Set;for(const M of w)if(j.add(M.w),Array.isArray(M.p))for(const $ of M.p)j.add($);if(v)for(const M of ea)M.w&&j.add(M.w);x=j}let S=null;if(m){const j=new Set;for(const M of ea)M.w&&j.add(M.w);S=i?lr(j):j}const _=w.filter(j=>x.has(j.w)),k=600,N=Array.from(x),A=N.length>k?ta(N,k):N,D=h&&r!=null&&(ft(r.cho)||ft(r.jung)||ft(r.jong)),H=2500,P=new Map;if(h&&!D&&d>=2){for(const j of N){const M=bo(j),$=P.get(M);$?$.push(j):P.set(M,[j])}for(const[j,M]of P)M.length>H&&P.set(j,ta(M,H))}const T=ci(),E=D?wi(r,N,T,c,u,Ft):null,L=500,F=1500,te=e.fullCount?_:t==="random"?_.length>L?ta(_,L):_:_.length>F?ta(_,F):_,Z=Ka(),V=[];for(const j of te){let M;const $=Ft(j.w);if(m)M=gw(j.w,t,d,S,24).filter(W=>Ft(W)!==$);else if(h)D?M=(E.get(j.w)??[]).filter(W=>Ft(W)!==$):d<=1?M=Pr(j.w,Z,{okSet:x,pronOf:Ft,decompOf:T,sameStructureOnly:!1}):M=(P.get(bo(j.w))??[]).filter(W=>{if(W===j.w||Ft(W)===$)return!1;const q=fw(j.w,W);return d>=5?q>=5:q===d});else if(y)M=A.filter(W=>W!==j.w&&W.length===j.w.length&&Ft(W)!==$);else{const W=t;M=Pr(j.w,Z,{kind:W,okSet:x,pronOf:Ft,decompOf:T,sameStructureOnly:!1}),M.length===0&&(M=(A.length>30?ta(A,30):A).filter(q=>q!==j.w&&di(j.w,q)===t&&Ft(q)!==$))}if(c&&M.length>0&&(p||h&&!D)){const W=T(Ft(j.w));M=M.filter(q=>!Ko(W,T(Ft(q))))}M.length!==0&&V.push({word:j,usable:M})}return V}async function kp(e,t){const{choicesPerItem:a=3,count:r=10}=t,n=a-1,i=(await Wt(t)).filter(c=>c.usable.length>=n),s=[];for(const c of He(i)){if(s.length>=r)break;const u=Cs(c.usable,n);if(u.length<n)continue;const d=He([c.word.w,...u]);s.push({id:Tt(e+"-item"),index:s.length+1,word:c.word.w,syllables:c.word.s,choices:d,answerIndex:d.indexOf(c.word.w)})}return s}async function o4(e){const{choicesPerItem:t=3,count:a=10}=e,r=t-1,n=await Wt({...e,difficulty:null});if(n.length<t)return[];const i=[],s=He([...n]);for(const c of s){if(i.length>=a)break;const u=c.word.w,d=[...c.word.pron||u],p=tn(d);if(!p)continue;const m=n.filter(f=>f.word.w!==u&&f.word.s===c.word.s&&!(f.word.pron||f.word.w).includes(p)&&f.word.pron!==c.word.pron);if(m.length<r)continue;const h=Cs(m.map(f=>f.word.w),r);if(h.length<r)continue;const g=He([u,...h]);i.push({id:Tt("HPI-item"),index:i.length+1,targetSyllable:p,word:u,choices:g,answerIndex:g.indexOf(u)})}return i}async function r4(e){const{count:t=10}=e,a=(await Wt(e)).filter(r=>r.usable.length>=1);return Array.from({length:t},(r,n)=>{const i=tn(a);if(!i)return null;const s=n%2===0;let c;if(s)c=[i.word.w,i.word.w];else{const u=tn(i.usable);c=Math.random()<.5?[i.word.w,u]:[u,i.word.w]}return{id:Tt("SOD-item"),index:n+1,word:i.word.w,pair:c,same:s}}).filter(r=>!!r)}async function n4(e){const{choicesPerItem:t=3,count:a=10}=e,r=t-1,n=await Wt({...e,difficulty:null});if(n.length<t+1)return[];const i=n.map(h=>h.word.w),s=new Map(n.map(h=>[h.word.w,h.word.pron])),c=h=>(s.get(h)||h)[0]??"",u={};for(const h of n){const g=c(h.word.w);g&&(u[g]||(u[g]=[]),u[g].push(h.word.w))}const d=Object.entries(u).filter(([,h])=>h.length>=2).map(([h])=>h);if(d.length===0)return[];const p=[],m=He([...d]);for(let h=0;p.length<a&&h<a*4;h++){const g=m[h%m.length],f=u[g];if(f.length<2)continue;const b=He([...f]),y=b[0],v=b[1];if(!y||!v||y===v||(s.get(y)||y)===(s.get(v)||v))continue;const C=s.get(v)||v,w=i.filter(_=>c(_)!==g&&_!==y&&_!==v&&_.length===v.length&&(s.get(_)||_)!==C);if(w.length<r)continue;const x=Cs(w,r);if(x.length<r)continue;const S=He([v,...x]);p.push({id:Tt("SWS-item"),index:p.length+1,sourceWord:y,targetSyllable:g,word:v,choices:S,answerIndex:S.indexOf(v)})}return p}function Sp(e,t,a){return ta(e,t).map((r,n)=>{const i=tn(r.usable)??"",s=[...r.word.w],c=[...i],u=s.findIndex((p,m)=>p!==c[m]),d=He(r.usable.filter(p=>p&&p!==i)).slice(0,2);return{id:Tt(a),index:n+1,word:r.word.w,original:r.word.w,changed:i,changedFrom:u>=0?s[u]:"",changedTo:u>=0?c[u]:"",distractors:d}})}async function Ap(e,t,a){const{count:r=10}=t,n=eo(),i=ea.filter(g=>g.w&&g.s===e),s=t.excludeNoImage?lr(i.map(g=>g.w)):null,c=s?i.filter(g=>s.has(g.w)):i,u=new Set(c.map(g=>g.w)),d=Ui(u),p=t.phonemeView??"char",m=t.composition??null,h=[];for(const g of He(c)){if(h.length>=r)break;const f=Ki(g.w,m,n,p,d,null,null);if(!f)continue;const b=f.distractors[0],y=[...g.w],v=[...b],C=y.findIndex((w,x)=>w!==v[x]);h.push({id:Tt(a),index:h.length+1,word:g.w,original:g.w,changed:b,changedFrom:C>=0?y[C]:"",changedTo:C>=0?v[C]:"",distractors:f.distractors.slice(1)})}return h}async function i4(e){return Ap(2,e,"CS2-item")}async function s4(e){return Ap(3,e,"CS3-item")}async function l4(e){const t=(await Wt({...e,difficulty:"count",contrastCount:1})).filter(a=>a.word.s===1&&a.usable.length>=1);return Sp(t,e.count??10,"CP1-item")}async function c4(e){const t=e.difficulty&&e.difficulty!=="random"?e.difficulty:"count",a=(await Wt({...e,difficulty:t,contrastCount:1})).filter(r=>r.word.s===2&&r.usable.length>=1);return Sp(a,e.count??10,"CP2-item")}async function d4(e){const{count:t=10}=e,a=(await Wt({...e})).filter(r=>r.word.s===2);return ta(a,t).map((r,n)=>({id:Tt("M2S-item"),index:n+1,word:r.word.w,answer:r.word.w,parts:[...r.word.w]}))}async function u4(e){const{count:t=10}=e,a=(await Wt({...e})).filter(r=>r.word.s===3);return ta(a,t).map((r,n)=>({id:Tt("M3S-item"),index:n+1,word:r.word.w,answer:r.word.w,parts:[...r.word.w]}))}async function p4(e){const{count:t=10}=e,a=(await Wt({...e})).filter(c=>c.word.s===2),r=eo(),n=new Set(ea.map(c=>c.w)),i=e.phonemeView??"char",s=[];for(const c of He(a)){if(s.length>=t)break;const u=Wi(c.word.w,e.composition??null,r,i,n);if(!u)continue;const[d,...p]=u.distractors,m=[...c.word.w],h=m[0]===d?m[1]:m[0];s.push({id:Tt("D2-item"),index:s.length+1,original:c.word.w,word:c.word.w,dropped:h,missingResult:d,distractors:p})}return s}async function h4(e){const{count:t=10}=e,a=(await Wt({...e})).filter(c=>c.word.s===3),r=eo(),n=new Set(ea.map(c=>c.w)),i=e.phonemeView??"char",s=[];for(const c of He(a)){if(s.length>=t)break;const u=Hi(c.word.w,e.composition??null,r,i,n);if(!u)continue;const[d,...p]=u.distractors,m=[...c.word.w];let h="";for(let g=0;g<m.length;g++)if(m.filter((f,b)=>b!==g).join("")===d){h=m[g];break}s.push({id:Tt("D3-item"),index:s.length+1,original:c.word.w,word:c.word.w,dropped:h,missingResult:d,distractors:p})}return s}async function m4(e){const{count:t=10}=e,a=(await Wt({...e})).filter(c=>c.word.s>=2),r=eo(),n=new Set(ea.map(c=>c.w)),i=e.phonemeView??"char",s=[];for(const c of He(a)){if(s.length>=t)break;const u=Vi(c.word.w,e.composition??null,r,i,n);if(!u)continue;const[d,...p]=u.distractors,m=c.word.w,h=m.startsWith(d)?m.slice(d.length):m.endsWith(d)?m.slice(0,m.length-d.length):"";s.push({id:Tt("DPC-item"),index:s.length+1,original:m,word:m,dropped:h,missingResult:d,distractors:p})}return s}async function b4(e){const{count:t=10}=e,a=(await Wt({...e})).map(r=>r.word.w);return a.length<3?[]:Array.from({length:t},(r,n)=>{const i=ta(a,3);return{id:Tt("LRO-item"),index:n+1,sequence:i,choices:He(i)}})}function on(e,t,a){const r=ea.filter(s=>s.w&&s.s===e),n=t?lr(r.map(s=>s.w)):null,i=[];for(const s of r)if(!(n&&!n.has(s.w))){if(a){const c=Ee(s.w);if(!c||!a(c))continue}i.push(s)}return i}function g4(e){const t=on(1,e.excludeNoImage??!1,a=>a.jong===0);return ta(t,e.count??10).map((a,r)=>{const n=Ee(a.w);return{id:Tt("M2P-item"),index:r+1,parts:[Ze[n.cho],dt[n.jung]],answer:a.w,word:a.w}})}function f4(e){const t=on(1,e.excludeNoImage??!1,a=>a.jong>0&&!mo[a.jong]);return ta(t,e.count??10).map((a,r)=>{const n=Ee(a.w);return{id:Tt("M3P-item"),index:r+1,parts:[Ze[n.cho],dt[n.jung],gt[n.jong]],answer:a.w,word:a.w}})}function v4(e){const t=Gr.DROP_FINAL_CONSONANT_FROM_1SYLL,a=on(t.syllables,e.excludeNoImage??!1,t.syllable),r=eo(),n=[];for(const i of He(a)){if(n.length>=(e.count??10))break;const s=Gi(i.w,null,r);if(!s)continue;const[c,...u]=s.distractors;n.push({id:Tt("DFC-item"),index:n.length+1,original:i.w,word:i.w,result:c,distractors:u})}return n}function y4(e){const t=Gr.REMOVE_CONSONANT_AND_IDENTIFY_PHONEME,a=on(t.syllables,e.excludeNoImage??!1,t.syllable),r=eo(),n=[];for(const i of He(a)){if(n.length>=(e.count??10))break;const s=Yi(i.w,null,r);if(!s)continue;const c=Ee(r.get(i.w)||i.w);if(!c)continue;const[u,...d]=s.distractors;n.push({id:Tt("RCP-item"),index:n.length+1,base:i.w,word:i.w,missingConsonant:Ze[c.cho],remaining:u,distractors:d})}return n}const rn=new Map;let Tp=null,Bp=null;async function Np(e,t={}){const a=vo(),r=Ka();(a!==Tp||r!==Bp)&&(rn.clear(),Tp=a,Bp=r);const n=`${e}:${wp(t)}`;if(rn.has(n))return rn.get(n);const i=await C4(e,t);return rn.set(n,i),i}const x4={SAME_SOUND_PICK:e=>kp("SSP",e),HEAR_AND_PICK_SAME:e=>kp("HPS",e),HEAR_AND_PICK_INCLUDED:e=>o4(e),SAME_OR_DIFF:e=>r4(e),STARTS_WITH_SAME_SOUND:e=>n4(e),LISTEN_AND_REMEMBER_ORDER:e=>b4(e),MERGE_2_SYLLABLES:e=>d4(e),MERGE_3_SYLLABLES:e=>u4(e),MERGE_2_PHONEMES:e=>g4(e),MERGE_3_PHONEMES:e=>f4(e),DROP_1_FROM_2SYLL:e=>p4(e),DROP_1_FROM_3SYLL:e=>h4(e),DROP_PART_FROM_COMPOUND:e=>m4(e),DROP_FINAL_CONSONANT_FROM_1SYLL:e=>v4(e),REMOVE_CONSONANT_AND_IDENTIFY_PHONEME:e=>y4(e),CHANGE_1_SYLL_IN_2SYLL:e=>i4(e),CHANGE_1_SYLL_IN_3SYLL:e=>s4(e),CHANGE_1_PHONEME_IN_1SYLL:e=>l4(e),CHANGE_1_PHONEME_IN_2SYLL:e=>c4(e)};async function C4(e,t={}){const a=x4[e];return a?await a(t):[]}async function _4(e){const t=[null,"count"],a=Object.keys(fo);let r=0;for(const n of t)for(const i of a){const s=fo[i];Np(i,{difficulty:s.difficulty?n:null,choseong:null,count:10,excludeNoImage:e}).catch(()=>{}),++r%6===0&&await new Promise(c=>setTimeout(c,0))}}async function w4(e){return(await Wt({...e,fullCount:!0})).length}async function k4(e={}){const t=[];for(const c of ea)c.w&&t.push(c.w);const a=e.excludeNoImage?lr(t):t,r=new Set,n=new Set,i=new Set,s=new Set;for(const c of a){s.add(bo(c));for(const u of c){const d=Ee(u);if(d&&(Ze[d.cho]!=="\u3147"&&r.add(Ze[d.cho]),n.add(dt[d.jung]),d.jong>0)){i.add(gt[d.jong]);const p=mo[d.jong];p&&p.forEach(m=>i.add(m))}}}return{cho:r,jung:n,jong:i,syllable:s}}const Dp={free:{maxCustomers:0,visitWord:!1,visitSentence:!1,homework:!1,customerStats:!1,managerCustomerSplit:!1,managerManagement:!1,sentenceTrainingSetting:!1,wordTrainingSetting:!1,myWordList:!1,wordListShare:!1,groupTrainingSetting:!1,minimalPairSearch:!0,wordTableSetting:!1,wordTablePrint:!1,addToMyList:!1,addToGroupList:!1,wordSearch:!0,wordSearchPrint:!1,wordSearchAddToMyList:!1,wordSearchAddToGroupList:!1,wordDataLevel:1,sentenceDataLevel:0,crossword:!1,crosswordMid:!1,crosswordHigh:!1,wordTrainingView:!1,sentenceTrainingView:!1},personal_standard:{maxCustomers:0,visitWord:!1,visitSentence:!1,homework:!1,customerStats:!1,managerCustomerSplit:!1,managerManagement:!1,sentenceTrainingSetting:!0,wordTrainingSetting:!0,myWordList:!0,wordListShare:!0,groupTrainingSetting:!1,minimalPairSearch:!0,wordTableSetting:!0,wordTablePrint:!0,addToMyList:!0,addToGroupList:!1,wordSearch:!0,wordSearchPrint:!0,wordSearchAddToMyList:!0,wordSearchAddToGroupList:!1,wordDataLevel:2,sentenceDataLevel:2,crossword:!0,crosswordMid:!0,crosswordHigh:!1,wordTrainingView:!0,sentenceTrainingView:!0},mgr_free:{maxCustomers:5,visitWord:!0,visitSentence:!0,homework:!1,customerStats:!1,managerCustomerSplit:!1,managerManagement:!1,sentenceTrainingSetting:!1,wordTrainingSetting:!1,myWordList:!1,wordListShare:!1,groupTrainingSetting:!1,minimalPairSearch:!0,wordTableSetting:!1,wordTablePrint:!1,addToMyList:!1,addToGroupList:!1,wordSearch:!0,wordSearchPrint:!1,wordSearchAddToMyList:!1,wordSearchAddToGroupList:!1,wordDataLevel:1,sentenceDataLevel:1,crossword:!1,crosswordMid:!1,crosswordHigh:!1,wordTrainingView:!1,sentenceTrainingView:!1},none:{maxCustomers:0,visitWord:!1,visitSentence:!1,homework:!1,customerStats:!1,managerCustomerSplit:!1,managerManagement:!1,sentenceTrainingSetting:!1,wordTrainingSetting:!1,myWordList:!1,wordListShare:!1,groupTrainingSetting:!1,minimalPairSearch:!1,wordTableSetting:!1,wordTablePrint:!1,addToMyList:!1,addToGroupList:!1,wordSearch:!1,wordSearchPrint:!1,wordSearchAddToMyList:!1,wordSearchAddToGroupList:!1,wordDataLevel:0,sentenceDataLevel:0,crossword:!1,crosswordMid:!1,crosswordHigh:!1,wordTrainingView:!1,sentenceTrainingView:!1},lite_word:{maxCustomers:10,visitWord:!0,visitSentence:!1,homework:!1,customerStats:!1,managerCustomerSplit:!1,managerManagement:!1,sentenceTrainingSetting:!1,wordTrainingSetting:!1,myWordList:!1,wordListShare:!1,groupTrainingSetting:!1,minimalPairSearch:!0,wordTableSetting:!0,wordTablePrint:!0,addToMyList:!1,addToGroupList:!1,wordSearch:!0,wordSearchPrint:!0,wordSearchAddToMyList:!1,wordSearchAddToGroupList:!1,wordDataLevel:1,sentenceDataLevel:0,crossword:!0,crosswordMid:!1,crosswordHigh:!1,wordTrainingView:!0,sentenceTrainingView:!1},lite_sentence:{maxCustomers:10,visitWord:!1,visitSentence:!0,homework:!1,customerStats:!1,managerCustomerSplit:!1,managerManagement:!1,sentenceTrainingSetting:!1,wordTrainingSetting:!1,myWordList:!1,wordListShare:!1,groupTrainingSetting:!1,minimalPairSearch:!1,wordTableSetting:!1,wordTablePrint:!0,addToMyList:!1,addToGroupList:!1,wordSearch:!1,wordSearchPrint:!0,wordSearchAddToMyList:!1,wordSearchAddToGroupList:!1,wordDataLevel:0,sentenceDataLevel:1,crossword:!0,crosswordMid:!1,crosswordHigh:!1,wordTrainingView:!1,sentenceTrainingView:!0},lite:{maxCustomers:10,visitWord:!0,visitSentence:!0,homework:!1,customerStats:!1,managerCustomerSplit:!1,managerManagement:!1,sentenceTrainingSetting:!1,wordTrainingSetting:!1,myWordList:!1,wordListShare:!1,groupTrainingSetting:!1,minimalPairSearch:!0,wordTableSetting:!0,wordTablePrint:!0,addToMyList:!1,addToGroupList:!1,wordSearch:!0,wordSearchPrint:!0,wordSearchAddToMyList:!1,wordSearchAddToGroupList:!1,wordDataLevel:1,sentenceDataLevel:1,crossword:!0,crosswordMid:!1,crosswordHigh:!1,wordTrainingView:!0,sentenceTrainingView:!0},standard:{maxCustomers:30,visitWord:!0,visitSentence:!0,homework:!1,customerStats:!1,managerCustomerSplit:!1,managerManagement:!1,sentenceTrainingSetting:!0,wordTrainingSetting:!0,myWordList:!0,wordListShare:!0,groupTrainingSetting:!1,minimalPairSearch:!0,wordTableSetting:!0,wordTablePrint:!0,addToMyList:!0,addToGroupList:!1,wordSearch:!0,wordSearchPrint:!0,wordSearchAddToMyList:!0,wordSearchAddToGroupList:!1,wordDataLevel:2,sentenceDataLevel:2,crossword:!0,crosswordMid:!0,crosswordHigh:!1,wordTrainingView:!0,sentenceTrainingView:!0},pro:{maxCustomers:50,visitWord:!0,visitSentence:!0,homework:!0,customerStats:!0,managerCustomerSplit:!1,managerManagement:!1,sentenceTrainingSetting:!0,wordTrainingSetting:!0,myWordList:!0,wordListShare:!0,groupTrainingSetting:!1,minimalPairSearch:!0,wordTableSetting:!0,wordTablePrint:!0,addToMyList:!0,addToGroupList:!1,wordSearch:!0,wordSearchPrint:!0,wordSearchAddToMyList:!0,wordSearchAddToGroupList:!1,wordDataLevel:3,sentenceDataLevel:3,crossword:!0,crosswordMid:!0,crosswordHigh:!0,wordTrainingView:!0,sentenceTrainingView:!0},enterprise:{maxCustomers:1/0,visitWord:!0,visitSentence:!0,homework:!0,customerStats:!0,managerCustomerSplit:!0,managerManagement:!0,sentenceTrainingSetting:!0,wordTrainingSetting:!0,myWordList:!0,wordListShare:!0,groupTrainingSetting:!0,minimalPairSearch:!0,wordTableSetting:!0,wordTablePrint:!0,addToMyList:!0,addToGroupList:!0,wordSearch:!0,wordSearchPrint:!0,wordSearchAddToMyList:!0,wordSearchAddToGroupList:!0,wordDataLevel:3,sentenceDataLevel:3,crossword:!0,crosswordMid:!0,crosswordHigh:!0,wordTrainingView:!0,sentenceTrainingView:!0}},Ep={none:0,free:1,personal_standard:3,mgr_free:4,lite_word:5,lite_sentence:5,lite:6,standard:7,pro:8,enterprise:9},jp={free:{sentenceTrainingDaily:2,wordTrainingDaily:2,gameDaily:1},personal_standard:{sentenceTrainingDaily:null,wordTrainingDaily:null,gameDaily:null},mgr_free:{sentenceTrainingDaily:2,wordTrainingDaily:2,gameDaily:1,trainingItemMax:5,customerMax:5,homeworkSendDaily:1},lite:{sentenceTrainingDaily:5,wordTrainingDaily:5,gameDaily:5,trainingItemMax:10,customerMax:10,homeworkSendDaily:10},standard:{sentenceTrainingDaily:null,wordTrainingDaily:null,gameDaily:null,trainingItemMax:30,customerMax:30,homeworkSendDaily:30},pro:{sentenceTrainingDaily:null,wordTrainingDaily:null,gameDaily:null,trainingItemMax:null,customerMax:50,homeworkSendDaily:50},enterprise:{sentenceTrainingDaily:null,wordTrainingDaily:null,gameDaily:null,trainingItemMax:null,customerMax:null,homeworkSendDaily:null}};function Lp(e){const t=e.toLowerCase();return t.startsWith("manager_enterprise")?"enterprise":t.startsWith("manager_pro")?"pro":t.startsWith("manager_standard")?"standard":t.startsWith("manager_lite_word")?"lite_word":t.startsWith("manager_lite_sentence")?"lite_sentence":t.startsWith("manager_lite")||t.startsWith("mgr_lite")?"lite":t.startsWith("mgr_standard")?"standard":t.startsWith("mgr_pro")?"pro":t.startsWith("content_")||t.startsWith("speechear_")||t.startsWith("light_")||t==="light"?"personal_standard":"none"}const Mp=5,Pp=5;function Rp({rank:e,voteCount:t,quota:a=5}){return e<a&&t>0}const $p={selected:"ALREADY_SELECTED",added:"ALREADY_ADDED",rejected:"ALREADY_REJECTED"},nn="0.45.0";var S4=Object.freeze({__proto__:null,CAPABILITY:fo,CHOSEONG:Ze,CORE_VERSION:nn,JONGSEONG:gt,JUNGSEONG:dt,LONG_STORIES:Ia,NETWORK_ERROR_MESSAGE:Zi,NOISE_DATAS:Ra,ORDER_SETS:za,PLAN_FEATURES:Dp,PLAN_LIMITS:jp,SHORT_STORIES:$a,TIER_RANK:Ep,TOPIC_TYPES:fp,TRAINING_TYPES:Jr,TRAINING_TYPE_I18N_KEY:ys,WORD_SUGGESTION_ACCOUNT_LIMIT:Pp,WORD_SUGGESTION_EXISTING_ERROR:$p,WORD_SUGGESTION_WEEKLY_QUOTA:Mp,applyFontScale:ps,applyTheme:ds,buildChangeWholeSyllableProblem:Ki,buildDropCompoundProblem:Vi,buildDropContrast3Problem:Hi,buildDropContrastProblem:Wi,buildDropFinalConsonantProblem:Gi,buildMultiPartPosContrast:wi,buildPairIndex:iu,buildRemoveConsonantProblem:Yi,buildSyllableMaskIndex:Ui,bulkSetImageExistence:Kd,cardQuestionTitle:Tu,checkImageExists:Yo,classifyPairDifficulty:di,clearAudioExistsCache:Wd,clearImageExistenceCache:li,clearPairIndexCache:xi,composeSyllable:ua,computeDailySelection:ms,configureImageResolver:Yd,configureNoiseSettingsStore:Zu,configurePronunciationResolver:Vd,configureStorage:Jn,configureTTS:Fd,configureTrainingCategories:cp,copyText:is,createDecompCache:ci,createTTSUrlResolver:Ju,dateToDb:lp,downloadCsvText:Lu,downloadSound:Er,ensureTrainingDataLoaded:vs,escapeCsvField:ju,fileExists:ei,filterContrastCandidates:_i,finalToPhoneme:Vr,firstChoseongOf:ui,formatCount:rr,formatDateKo:ep,formatDateLocale:ap,formatDateLongKo:tp,formatDateLongLocale:op,formatDatetimeKo:rp,formatPhone:ip,formatRelativeTime:Kr,formatTimeHM:Xr,formatYmd:Zr,getAssetBaseUrl:Xn,getDailySelection:bp,getElementAnalyser:Vo,getErrorMessage:Yr,getImageExistenceStats:Mr,getImageExistsCached:si,getImageResolver:Ma,getNoiseBaseUrl:ti,getPairIndex:Ka,getPlanTier:Lp,getPronunciationResolver:ri,getSavedFontScale:us,getSavedTheme:cs,getSignedOrPublicUrl:Oo,getTTSFallbackUrlResolver:oi,getTTSUrlResolver:Fo,getTodayKst:Ur,getTopicTypes:Qr,getTrainingPools:bs,getTrainingTypes:ls,getWordPool:vo,hasQuestionWordConstraint:xu,hasSel:ft,hasStructureContrast:Ko,initFontScale:hp,initTheme:up,isAllChoseong:hi,isManualOnlyType:_u,isNetworkErrorMessage:Xi,isSyllablePattern:gi,isThisWeekPick:Rp,isTrainingDataLoaded:gp,isValidQuestionWord:Cu,itemCorrectness:ts,jamoToNamesForSpeech:Bu,loadGameLeaderboard:Ku,loadMyGameRanks:Uu,loadNoiseSettings:rs,loadTrainingData:fs,logCrossword:zu,logTrainingCompletion:es,logTrainingTime:Ji,matchSyllables:Qa,matchesChoseongSearch:Zd,matchesSyllablePattern:fi,matchesWordQuery:ho,mergeQuestionText:Oi,minimalPairDistractors:Pr,normalizeDate:sp,officialSoundPath:Qu,parseSortValue:Eu,parseSyllable:Ee,patternToComposition:au,phonemePartsOf:Au,pickEuRo:$i,pickEulReul:Li,pickEunNeun:Pi,pickIga:Ei,pickWaGwa:Ri,prewarmImageCache:Ud,primarySelPart:tr,readLevel:ni,reorderArray:Ii,resolveAssetUrl:Io,resolveSoundPath:Dr,resumeAudioMeter:Ho,sample:Qt,saveNoiseSettings:ns,searchAndRankWords:ru,setAssetBaseUrl:zd,setCrosswordLogger:Iu,setGameLeaderboardLoader:qu,setGameRanksLoader:Gu,setGameScoreSubmitter:Vu,setTrainingCompletionLogger:$u,setTrainingTimeLogger:Ru,setWordPool:Pu,shuffle:He,sortToValue:Du,soundOf:qr,speak:Rd,stopSpeaking:$d,submitGameScore:Yu,syllMatchesComp:Pa,syllableContrasts:Ja,syllableLength:bo,syllablePron:Fi,toBase64UrlSafe:Xu,toChoseong:pi,toItemResults:as,toKstHm:np,toKstYmd:ka,toStandardPronunciation:gu,toStorageName:ar,toUserErrorMessage:Nu,validateSyllableSearchInput:ou,withEuRo:yu,withEulReul:Mi,withEunNeun:fu,withIga:ji,withWaGwa:vu,wordContainsChoseong:Qd,wordContainsJongseong:eu,wordContainsJungseong:Jd,wordHasNoCoda:mi,wordHasSyllableMatching:bi,wrongItems:Ou});function A4(e){return typeof window>"u"?"":rw.sanitize(e,{USE_PROFILES:{svg:!0,svgFilters:!0},FORBID_TAGS:["script","use"],FORBID_ATTR:["xlink:href","href"]})}function T4(e){const[t,a]=l.useState(null),[r,n]=l.useState(null),[i,s]=l.useState(null),[c,u]=l.useState(null);return l.useEffect(()=>{if(!e||typeof e!="string"||!e.endsWith(".svg")){a(null),n(null),s(null);return}const d=e.split("/").pop();let p=e;d&&(e.startsWith("/")?p=Io(e):/^(Logo|Symbol)/i.test(d)?p=Io(`logo/${d}`):(/^https?:\/\//i.test(e)||e.startsWith("data:"),p=e)),a(p)},[e]),l.useEffect(()=>{if(!t)return;let d=!1;async function p(){try{let m=await fetch(t);m.ok||(m=await fetch(t));const h=m.headers.get("content-type")||"";if(d)return;if(h.includes("svg")){n("mask");return}if(h.startsWith("image/")){n("img");return}const g=await fetch(t);if(!g.ok)throw new Error("not ok");const f=await g.text();if(d)return;if(/^\s*<svg[\s>]/i.test(f)){const b=A4(f);if(!b){n("none");return}s(b),n("inline");return}n("none")}catch{d||n("none")}}return p(),()=>{d=!0}},[t]),l.useEffect(()=>{let d=!1,p=null;return r==="mask"&&t&&fetch(t).then(m=>{if(!m.ok)throw new Error("fetch failed");return m.blob()}).then(m=>{d||(p=URL.createObjectURL(m),u(p))}).catch(()=>{d||n("img")}),()=>{d=!0,p&&URL.revokeObjectURL(p),u(null)}},[r,t]),{iconToUse:t,mode:r,svgText:i,blobUrl:c}}function Ie(e){const{icon:t,label:a,className:r,imgClassName:n,maskClassName:i,svgClassName:s,wrapperStyle:c,size:u}=e||{},d=r??"iconRenderer-icon",p=n??"iconRenderer-icon-image",m=i??"iconRenderer-icon-mask",h=s??"iconRenderer-icon-svg",g=typeof t=="string"?t:null,f=w_(g),{iconToUse:b,mode:y,svgText:v,blobUrl:C}=T4(g),w=(k,N={})=>o.jsx("span",{className:d,style:c,...N,children:k}),x=(k,N={})=>o.jsx("img",{src:k,alt:typeof a=="string"?a:a?String(a):"",className:p,...N});if(!t)return null;if(typeof t!="string")return w(t);if(t==="none")return w(o.jsx("span",{className:h,dangerouslySetInnerHTML:{__html:'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" aria-hidden="true"></svg>'}}),{"aria-hidden":"true"});if(f)try{return w(l.createElement(f,{className:h,size:typeof u=="number"?u:20}),{"aria-hidden":"true"})}catch{}if(b&&b.endsWith(".svg")){if(y==="mask"){const k={"--icon-url":C?`url(${C})`:`url(${b})`};return w(o.jsx("span",{className:m,style:k}),{"aria-hidden":"true"})}return y==="img"?w(x(b,{onError:k=>{k.currentTarget.onerror=null,k.currentTarget.style.display="none"}}),{"aria-hidden":"true"}):y==="inline"?w(o.jsx("span",{className:h,dangerouslySetInnerHTML:v?{__html:v}:void 0}),{"aria-hidden":"true"}):w(null,{"aria-hidden":"true"})}if(t.startsWith("/")||t.includes("/assets/")||t.match(/\.(png|jpg|jpeg|webp|gif)$/i))return x(Io(t),{style:c,onError:k=>{k.currentTarget.onerror=null,k.currentTarget.style.display="none"}});const S=typeof u=="number"?u:20,_=`<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 w(o.jsx("span",{className:h,dangerouslySetInnerHTML:{__html:_}}),{"aria-hidden":"true"})}function Ip({icon:e,emoji:t,title:a,message:r,hint:n,action:i,compact:s,className:c}){return o.jsxs("div",{className:xe("empty-state",s&&"empty-state--compact",c),children:[t&&o.jsx("span",{className:"empty-state__emoji",children:t}),e&&o.jsx(Ie,{icon:e,className:"empty-state__icon"}),a&&o.jsx("p",{className:"empty-state__title body-2",children:a}),r&&o.jsx("p",{className:"empty-state__message body-3",children:r}),n&&o.jsx("p",{className:"empty-state__hint caption-1",children:n}),i&&o.jsxs("button",{className:"empty-state__action button button40 button40--bar button--variant-main button--align-center button--shape-rounded",onClick:i.onClick,children:[i.icon&&o.jsx(Ie,{icon:i.icon,className:"button__icon"}),o.jsx("span",{className:"button__label button-1",children:i.label})]})]})}var B4=".ihabdevteam-core-scope .error-state__icon{color:var(--color-error)}";J(B4);function zp({message:e,hint:t,icon:a="triangle-alert",onRetry:r,retryLabel:n,className:i}){const{t:s}=ge.useTranslation();return o.jsxs("div",{className:xe("empty-state","error-state",i),role:"alert",children:[o.jsx(Ie,{icon:a,className:"empty-state__icon error-state__icon"}),o.jsx("p",{className:"empty-state__message body-3",children:e??s("common.errorState.message",{defaultValue:"\uBD88\uB7EC\uC624\uC9C0 \uBABB\uD588\uC2B5\uB2C8\uB2E4."})}),t&&o.jsx("p",{className:"empty-state__hint caption-1",children:t}),r&&o.jsxs("button",{className:"empty-state__action button button40 button40--bar button--variant-main button--align-center button--shape-rounded",onClick:r,children:[o.jsx(Ie,{icon:"rotate-cw",className:"button__icon"}),o.jsx("span",{className:"button__label button-1",children:n??s("common.errorState.retry",{defaultValue:"\uB2E4\uC2DC \uC2DC\uB3C4"})})]})]})}var N4=".ihabdevteam-core-scope .action-card{--ac-color:var(--color-main);--ac-color-a10:var(--color-main-a10);aspect-ratio:1/1;background:var(--color-surface);border:1px solid var(--color-border);border-radius:var(--radius-l);box-shadow:var(--shadow-card);cursor:pointer;display:block;overflow:hidden;transition:transform .2s ease-out,box-shadow .2s ease-out,border-color .2s ease-out;width:100%}.ihabdevteam-core-scope .action-card--sub{--ac-color:var(--color-sub);--ac-color-a10:var(--color-sub-a10)}.ihabdevteam-core-scope .action-card:focus-visible{outline:none}.ihabdevteam-core-scope .action-card:not(.action-card--disabled):focus-visible,.ihabdevteam-core-scope .action-card:not(.action-card--disabled):hover{border-color:var(--ac-color);box-shadow:var(--shadow-panel);transform:translateY(-4px)}.ihabdevteam-core-scope .action-card--disabled{cursor:wait;opacity:.6}.ihabdevteam-core-scope .action-card__body{display:flex;flex-direction:column;gap:var(--spacing-m);height:100%;padding:var(--spacing-l)}.ihabdevteam-core-scope .action-card__chip{align-items:center;background:var(--ac-color-a10);border-radius:var(--radius-m);color:var(--ac-color);display:flex;height:64px;justify-content:center;width:64px}.ihabdevteam-core-scope .action-card__text{display:flex;flex-direction:column;gap:var(--spacing-xs)}.ihabdevteam-core-scope .action-card__title{color:var(--color-text-primary);font-size:var(--text-h2-size);font-weight:var(--text-h2-weight-bold);letter-spacing:var(--text-h2-spacing);line-height:var(--text-h2-line);margin:0}.ihabdevteam-core-scope .action-card__desc{color:var(--color-lightGray);font-size:var(--text-body-2-size);font-weight:var(--text-body-2-weight);line-height:var(--text-body-2-line);margin:0}.ihabdevteam-core-scope .action-card__cta{align-items:center;color:var(--ac-color);display:flex;font-size:var(--text-body-2-size);font-weight:var(--text-body-2-weight-bold);gap:var(--spacing-xs);justify-content:flex-end;line-height:var(--text-body-2-line);margin-top:auto;padding-right:var(--spacing-s);padding-top:var(--spacing-s)}.ihabdevteam-core-scope .action-card__arrow{display:flex;transition:transform .2s}.ihabdevteam-core-scope .action-card:not(.action-card--disabled):hover .action-card__arrow{transform:translateX(4px)}";J(N4);function Op({icon:e,title:t,description:a,cta:r,tone:n="main",disabled:i=!1,onClick:s,className:c=""}){const u=()=>{i||s?.()};return o.jsx("section",{role:"button",tabIndex:i?-1:0,"aria-disabled":i||void 0,"aria-label":t,onClick:u,onKeyDown:d=>{(d.key==="Enter"||d.key===" ")&&(d.preventDefault(),u())},className:xe("action-card",`action-card--${n}`,i&&"action-card--disabled",c),children:o.jsxs("div",{className:"action-card__body",children:[o.jsx("span",{"aria-hidden":!0,className:"action-card__chip",children:o.jsx(Ie,{icon:e,size:34})}),o.jsxs("div",{className:"action-card__text",children:[o.jsx("h2",{className:"action-card__title",children:t}),o.jsx("p",{className:"action-card__desc",children:a})]}),o.jsxs("div",{className:"action-card__cta",children:[o.jsx("span",{children:r}),o.jsx("span",{"aria-hidden":!0,className:"action-card__arrow",children:o.jsx(Ie,{icon:"arrow-right",size:18})})]})]})})}function Fp({as:e="div",className:t="",children:a,storage:r,...n}){r&&Jn({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});const i=xe("ihabdevteam-core-scope",t);return o.jsx(e,{className:i,...n,children:a})}var D4=".ihabdevteam-core-scope .notice-box{background:var(--color-darkWhite);border-radius:var(--radius-m);color:var(--color-gray);margin:0 auto var(--spacing-page);padding:var(--spacing-l);position:relative;text-align:left}.ihabdevteam-core-scope .notice-box ul{margin:0;padding:0 0 0 18px}.ihabdevteam-core-scope .notice-box__inner{border-radius:var(--radius-s);padding:12px 14px;text-align:left}.ihabdevteam-core-scope .notice-box__title{color:var(--color-darkGray);margin:0 0 10px}.ihabdevteam-core-scope .notice-box__body,.ihabdevteam-core-scope .notice-box__line{color:var(--color-deepGray)}.ihabdevteam-core-scope .notice-box--default{border-color:var(--color-whiteLine)}.ihabdevteam-core-scope .notice-box--dashed{background:var(--color-deepWhite);border:1px dashed var(--color-whiteLine)}.ihabdevteam-core-scope .notice-box--important{border:1px solid var(--color-main);box-shadow:var(--shadow-dropdown)}.ihabdevteam-core-scope .notice-box__dismiss{background:none;border:none;border-radius:var(--radius-xs);color:var(--color-lightGray);cursor:pointer;font-size:18px;line-height:1;padding:2px 6px;position:absolute;right:10px;top:8px;transition:color .12s}.ihabdevteam-core-scope .notice-box__dismiss:hover{color:var(--color-gray)}@media (max-width:767px){.ihabdevteam-core-scope .notice-box,.ihabdevteam-core-scope .notice-box__inner{padding:var(--spacing-s)}}";J(D4);function Wp({title:e="",lines:t=[],notices:a=null,children:r,variant:n="default",dismissible:i=!1,className:s=""}){const{t:c}=ge.useTranslation(),[u,d]=l.useState(!1),p=l.useCallback(()=>d(!0),[]);if(u)return null;const m=`notice-box notice-box--${n} body-2 ${s}`.trim();if(a&&Array.isArray(a)&&a.length)return o.jsx("div",{className:m,role:"note",children:a.map((g,f)=>o.jsxs("div",{className:"notice-box__inner",children:[g.title?o.jsx("span",{className:"notice-box__title body-3",children:g.title}):null,o.jsx("div",{className:"notice-box__body",children:g.lines&&g.lines.length?o.jsx("div",{children:g.lines.map((b,y)=>o.jsx("span",{className:"notice-box__line body-3",children:b},y))}):g.children??null})]},f))});const h=e||t.length?o.jsxs("div",{className:"notice-box__inner",children:[e?o.jsx("span",{className:"notice-box__title body-1",children:e}):null,o.jsx("div",{className:"notice-box__body",children:t.length?o.jsx("ul",{children:t.map((g,f)=>o.jsx("li",{className:"notice-box__line",children:g},f))}):r})]}):o.jsx("div",{className:"notice-box__inner",children:r});return o.jsxs("div",{className:m,role:"note",children:[h,i&&o.jsx("button",{className:"notice-box__dismiss",onClick:p,"aria-label":c("common.close","\uB2EB\uAE30"),children:"\xD7"})]})}var E4=".ihabdevteam-core-scope .button{align-items:center;background:var(--color-white);border:0;border:var(--button-border,0);box-sizing:border-box;color:inherit;cursor:pointer;display:inline-flex;gap:var(--spacing-xs);padding:0 12px;transition:background-color .14s ease,color .14s ease,transform .1s ease,box-shadow .14s ease}.ihabdevteam-core-scope .button__icon,.ihabdevteam-core-scope .button__left,.ihabdevteam-core-scope .button__right{align-items:center;color:inherit;display:inline-flex;justify-content:center}.ihabdevteam-core-scope .button--align-center .button__label,.ihabdevteam-core-scope .button--align-right .button__label{flex:1 1 auto;text-align:center}.ihabdevteam-core-scope .button__icon{height:24px;width:24px}.ihabdevteam-core-scope .button__icon--small{height:16px;width:16px}.ihabdevteam-core-scope .button__icon--medium{height:24px;width:24px}.ihabdevteam-core-scope .button__icon--large{height:36px;width:36px}.ihabdevteam-core-scope .button__center-group{align-items:center;display:inline-flex;gap:var(--spacing-xs)}.ihabdevteam-core-scope .button__center-group .button__label{display:inline-block;flex:0 1 auto;text-align:center}.ihabdevteam-core-scope .button__label{display:block;white-space:normal}.ihabdevteam-core-scope .button__label-text{align-items:center;display:inline-flex;justify-content:center;max-width:100%;vertical-align:middle;white-space:normal;word-break:break-word}.ihabdevteam-core-scope .button__label-text--has-sub{flex-direction:column;gap:3px}.ihabdevteam-core-scope .button__count{color:var(--color-main);font-weight:700;margin-left:4px}.ihabdevteam-core-scope .button--variant-main .button__count,.ihabdevteam-core-scope .is-selected .button__count,.ihabdevteam-core-scope [aria-pressed=true] .button__count{color:#fff}.ihabdevteam-core-scope .button__label:has(>.button__label-text+.button__label-text){gap:5px}.ihabdevteam-core-scope .button__sub-label-text{color:var(--button-subLabel-color,var(--color-gray));display:block}.ihabdevteam-core-scope .button__icon-img{display:block;height:100%;-o-object-fit:contain;object-fit:contain;width:100%}.ihabdevteam-core-scope .button__icon-mask{background-color:currentColor;display:block;height:100%;-webkit-mask-image:var(--icon-url);mask-image:var(--icon-url);-webkit-mask-position:center;mask-position:center;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:contain;mask-size:contain;width:100%}.ihabdevteam-core-scope .button__icon-svg{align-items:center;display:inline-flex;height:100%;justify-content:center;width:100%}.ihabdevteam-core-scope .button__icon-svg svg{display:block;height:100%;width:100%}.ihabdevteam-core-scope .button__icon-svg svg,.ihabdevteam-core-scope .button__icon-svg svg *{fill:currentColor;stroke:currentColor}.ihabdevteam-core-scope .button .button__label{color:currentColor;color:var(--button-text-color,currentColor);min-height:20px;min-width:20px}.ihabdevteam-core-scope .button .button__icon,.ihabdevteam-core-scope .button .button__left,.ihabdevteam-core-scope .button .button__right{color:currentColor;color:var(--button-icon-color,currentColor)}.ihabdevteam-core-scope .button--align-left{justify-content:flex-start}.ihabdevteam-core-scope .button--align-center{justify-content:center}.ihabdevteam-core-scope .button--align-right{justify-content:flex-end}.ihabdevteam-core-scope .button--align-left .button__label{align-items:center;display:inline-flex;flex:1 1 auto}.ihabdevteam-core-scope .button--align-left .button__label-text{justify-content:flex-start;text-align:left}.ihabdevteam-core-scope .button--align-center .button__label{align-items:center;display:flex;flex:1 1 auto;justify-content:center;text-align:center}.ihabdevteam-core-scope .button--align-right .button__label{flex:1 1 auto;text-align:right}.ihabdevteam-core-scope .button--align-grid{justify-content:center}.ihabdevteam-core-scope .button--align-grid .button__label{display:grid;flex:1 1 auto;grid-auto-columns:1fr;grid-auto-flow:column;text-align:center}.ihabdevteam-core-scope .button.button--no-bg{background:transparent;border-color:transparent}.ihabdevteam-core-scope .button--variant-danger{--button-text-color:var(--color-error);--button-icon-color:var(--color-error);--button-subLabel-color:var(--color-error);background:var(--color-deepWhite);border:var(--button-border,1px solid var(--color-error))}.ihabdevteam-core-scope .button--variant-danger:focus-visible,.ihabdevteam-core-scope .button--variant-danger:hover{--button-text-color:var(--color-error);--button-icon-color:var(--color-error);--button-subLabel-color:var(--color-error);background:var(--color-error-a10);border-color:var(--color-error)}.ihabdevteam-core-scope .button--variant-danger.is-selected,.ihabdevteam-core-scope .button--variant-danger[aria-pressed=true]{--button-text-color:#fff;--button-icon-color:#fff;--button-subLabel-color:#fff;background:var(--color-error);border-color:var(--color-error)}.ihabdevteam-core-scope .button--variant-default{--button-text-color:var(--color-darkGray);--button-icon-color:var(--color-lightGray);--button-subLabel-color:var(--color-gray);background:var(--color-deepWhite);border:var(--button-border,1px solid var(--color-whiteLine))}.ihabdevteam-core-scope .button--variant-default:focus-visible,.ihabdevteam-core-scope .button--variant-default:hover{--button-text-color:var(--color-black);--button-icon-color:var(--color-main);--button-subLabel-color:var(--color-black);background:var(--color-white);border-color:var(--color-main)}.ihabdevteam-core-scope .button--variant-default.is-selected,.ihabdevteam-core-scope .button--variant-default[aria-pressed=true]{--button-text-color:#fff;--button-icon-color:#fff;--button-subLabel-color:#fff;background:var(--color-main);border-color:var(--color-main)}.ihabdevteam-core-scope .button--variant-main{--button-subLabel-color:var(--color-white-a80);background:var(--color-main);border:var(--button-border,1px solid var(--color-main));color:#fff}.ihabdevteam-core-scope .button--variant-main:focus-visible,.ihabdevteam-core-scope .button--variant-main:hover{--button-subLabel-color:var(--color-white-a80);background:var(--color-sub);border-color:var(--color-sub);color:#fff}.ihabdevteam-core-scope .button--variant-main.is-selected,.ihabdevteam-core-scope .button--variant-main[aria-pressed=true]{--button-subLabel-color:var(--color-white-a80);background:var(--color-sub);color:#fff}.ihabdevteam-core-scope .button--variant-sub{--button-subLabel-color:var(--color-white-a80);background:var(--color-primary,var(--color-sub));color:#fff}.ihabdevteam-core-scope .button--variant-sub:focus-visible,.ihabdevteam-core-scope .button--variant-sub:hover{--button-subLabel-color:var(--color-white-a80);background:var(--color-uiAccent);color:#fff}.ihabdevteam-core-scope .button--variant-transparent-white{--button-subLabel-color:var(--color-white-a60);background:transparent;border:var(--button-border,1px solid var(--color-white-a80));color:#fbfdff}.ihabdevteam-core-scope .button--variant-transparent-white:focus-visible,.ihabdevteam-core-scope .button--variant-transparent-white:hover{--button-subLabel-color:var(--color-white-a80);background:var(--color-white-a10);color:#fff}.ihabdevteam-core-scope .button--variant-transparent-white.is-selected,.ihabdevteam-core-scope .button--variant-transparent-white[aria-pressed=true]{--button-subLabel-color:var(--color-lightGray);background:var(--color-white);color:var(--color-main)}.ihabdevteam-core-scope .button--variant-transparent-gray{--button-subLabel-color:var(--color-gray-a60);background:transparent;border:var(--button-border,1px solid var(--color-gray-a80));color:var(--color-gray-a80)}.ihabdevteam-core-scope .button--variant-transparent-gray:focus-visible,.ihabdevteam-core-scope .button--variant-transparent-gray:hover{--button-subLabel-color:var(--color-gray-a60);background:var(--color-gray-a10);color:var(--color-gray)}.ihabdevteam-core-scope .button--variant-transparent-lightGray{--button-subLabel-color:var(--color-gray-a60);background:transparent;border:var(--button-border,1px solid var(--color-lightGray-a80));color:var(--color-gray)}.ihabdevteam-core-scope .button--variant-transparent-lightGray:focus-visible,.ihabdevteam-core-scope .button--variant-transparent-lightGray:hover{--button-subLabel-color:var(--color-gray-a60);background:var(--color-lightGray-a10);color:var(--color-deepGray)}.ihabdevteam-core-scope .button--variant-disabled{--button-subLabel-color:var(--color-disabled);background-color:transparent;border:var(--button-border,1px solid var(--color-whiteLine));color:var(--color-disabled)}.ihabdevteam-core-scope .button--variant-disabled .button__icon,.ihabdevteam-core-scope .button--variant-disabled .button__left,.ihabdevteam-core-scope .button--variant-disabled .button__right{color:var(--color-disabled)}.ihabdevteam-core-scope .button--variant-disabled-covered{background-color:var(--color-darkWhite);border:var(--button-border,1px solid var(--color-darkWhite));border-color:var(--color-whiteLine);color:transparent}.ihabdevteam-core-scope .button--variant-disabled-covered .button__icon,.ihabdevteam-core-scope .button--variant-disabled-covered .button__left,.ihabdevteam-core-scope .button--variant-disabled-covered .button__right{color:transparent}.ihabdevteam-core-scope .button--variant-disabled-faded,.ihabdevteam-core-scope .button--variant-disabled-invisibled{background:transparent}.ihabdevteam-core-scope .button--variant-disabled-faded .button__icon,.ihabdevteam-core-scope .button--variant-disabled-faded .button__left,.ihabdevteam-core-scope .button--variant-disabled-faded .button__right,.ihabdevteam-core-scope .button--variant-disabled-invisibled .button__icon,.ihabdevteam-core-scope .button--variant-disabled-invisibled .button__label,.ihabdevteam-core-scope .button--variant-disabled-invisibled .button__left,.ihabdevteam-core-scope .button--variant-disabled-invisibled .button__right{color:transparent}.ihabdevteam-core-scope .button:disabled,.ihabdevteam-core-scope .button[disabled]{cursor:default;pointer-events:none}.ihabdevteam-core-scope .button--shape-rounded{border-radius:8px!important;border-radius:var(--button-rounded-radius,8px)!important}.ihabdevteam-core-scope .button--shape-pill{border-radius:9999px!important}.ihabdevteam-core-scope .button72{--button-rounded-radius:18px;border-radius:36px;height:72px;justify-content:center}.ihabdevteam-core-scope .button72--bar{min-width:220px}.ihabdevteam-core-scope .button72--dot{padding:0;width:72px}.ihabdevteam-core-scope .button56{--button-rounded-radius:14px;border-radius:28px;height:56px;justify-content:center}.ihabdevteam-core-scope .button56--bar{min-width:190px}.ihabdevteam-core-scope .button56--dot{padding:0;width:56px}.ihabdevteam-core-scope .button52{--button-rounded-radius:13px;border-radius:26px;height:52px;justify-content:center}.ihabdevteam-core-scope .button52--bar{min-width:175px}.ihabdevteam-core-scope .button52--dot{padding:0;width:52px}.ihabdevteam-core-scope .button48{--button-rounded-radius:12px;border-radius:24px;height:48px;justify-content:center}.ihabdevteam-core-scope .button48--bar{min-width:160px}.ihabdevteam-core-scope .button48--dot{padding:0;width:48px}.ihabdevteam-core-scope .button40{--button-rounded-radius:10px;border-radius:20px;height:40px;justify-content:center}.ihabdevteam-core-scope .button40--bar{min-width:100px}.ihabdevteam-core-scope .button40--dot{padding:0;width:40px}.ihabdevteam-core-scope .button40 .button__icon,.ihabdevteam-core-scope .button40--bar .button__icon,.ihabdevteam-core-scope .button40--dot .button__icon{height:20px;width:20px}.ihabdevteam-core-scope .button32{--button-rounded-radius:8px;border-radius:16px;height:32px;justify-content:center}.ihabdevteam-core-scope .button32--bar{min-width:72px}.ihabdevteam-core-scope .button32--dot{padding:0;width:32px}.ihabdevteam-core-scope .button32 .button__icon,.ihabdevteam-core-scope .button32--bar .button__icon,.ihabdevteam-core-scope .button32--dot .button__icon{height:18px;width:18px}.ihabdevteam-core-scope .button28{--button-rounded-radius:7px;border-radius:14px;height:28px;justify-content:center}.ihabdevteam-core-scope .button28--bar{min-width:60px}.ihabdevteam-core-scope .button28--dot{padding:0;width:28px}.ihabdevteam-core-scope .button28 .button__icon,.ihabdevteam-core-scope .button28--bar .button__icon,.ihabdevteam-core-scope .button28--dot .button__icon{height:16px;width:16px}.ihabdevteam-core-scope .button24{--button-rounded-radius:6px;border-radius:12px;height:24px;justify-content:center}.ihabdevteam-core-scope .button24--bar{min-width:48px}.ihabdevteam-core-scope .button24--dot{padding:0;width:24px}.ihabdevteam-core-scope .button24 .button__icon,.ihabdevteam-core-scope .button24--bar .button__icon,.ihabdevteam-core-scope .button24--dot .button__icon{height:14px;width:14px}.ihabdevteam-core-scope .button-keyboard{border-radius:12px;height:32px;justify-content:center}.ihabdevteam-core-scope .button-keyboard--bar{min-width:32px;padding:0 12px}.ihabdevteam-core-scope .button-keyboard--dot{padding:0;width:32px}.ihabdevteam-core-scope .button-word{border-radius:12px;height:72px;justify-content:center;padding:0 16px}.ihabdevteam-core-scope .button-word--bar{min-width:120px}.ihabdevteam-core-scope .button-word--dot{padding:0;width:72px}@media (max-width:1024px){.ihabdevteam-core-scope .button56{--button-rounded-radius:13px;border-radius:25px;height:50px}.ihabdevteam-core-scope .button56--bar{min-width:170px}.ihabdevteam-core-scope .button56--dot{width:50px}.ihabdevteam-core-scope .button48{--button-rounded-radius:11px;border-radius:22px;height:44px}.ihabdevteam-core-scope .button48--bar{min-width:140px}.ihabdevteam-core-scope .button48--dot{width:44px}.ihabdevteam-core-scope .button40{--button-rounded-radius:9px;border-radius:18px;height:36px}.ihabdevteam-core-scope .button40--bar{min-width:88px}.ihabdevteam-core-scope .button40--dot{width:36px}.ihabdevteam-core-scope .button32{--button-rounded-radius:8px;border-radius:15px;height:30px}.ihabdevteam-core-scope .button32--bar{min-width:64px}.ihabdevteam-core-scope .button32--dot{width:30px}.ihabdevteam-core-scope .button24--bar{min-width:44px}}@media (max-width:768px){.ihabdevteam-core-scope .button56{--button-rounded-radius:12px;border-radius:23px;height:46px}.ihabdevteam-core-scope .button56--bar{min-width:150px}.ihabdevteam-core-scope .button56--dot{width:46px}.ihabdevteam-core-scope .button56 .button__icon,.ihabdevteam-core-scope .button56--bar .button__icon,.ihabdevteam-core-scope .button56--dot .button__icon{height:20px;width:20px}.ihabdevteam-core-scope .button48{--button-rounded-radius:10px;border-radius:20px;height:40px}.ihabdevteam-core-scope .button48--bar{min-width:120px}.ihabdevteam-core-scope .button48--dot{width:40px}.ihabdevteam-core-scope .button48 .button__icon,.ihabdevteam-core-scope .button48--bar .button__icon,.ihabdevteam-core-scope .button48--dot .button__icon{height:20px;width:20px}.ihabdevteam-core-scope .button40{--button-rounded-radius:8px;border-radius:17px;height:34px}.ihabdevteam-core-scope .button40--bar{min-width:80px}.ihabdevteam-core-scope .button40--dot{width:34px}.ihabdevteam-core-scope .button32{--button-rounded-radius:7px;border-radius:14px;height:28px}.ihabdevteam-core-scope .button32--bar{min-width:60px}.ihabdevteam-core-scope .button32--dot{width:28px}.ihabdevteam-core-scope .button24--bar{min-width:40px}}";J(E4);var j4=".ihabdevteam-core-scope .tooltip-content{animation:tooltip-pop .2s cubic-bezier(.2,.9,.2,1) both;background-color:var(--color-white);border-radius:var(--radius-m);box-shadow:var(--shadow-tooltip);box-sizing:border-box;pointer-events:auto;position:absolute;transform-origin:left center;white-space:normal;will-change:transform,opacity;z-index:var(--z-tooltip)}.ihabdevteam-core-scope .tooltip-content--bordered{border:1px solid var(--color-whiteLine)}.ihabdevteam-core-scope .tooltip-content.tooltip-description,.ihabdevteam-core-scope .tooltip-content.tooltip-info,.ihabdevteam-core-scope .tooltip-content.tooltip-training{background:transparent;box-shadow:none}.ihabdevteam-core-scope .tooltip-content__header{align-items:center;color:var(--color-gray);display:flex;height:40px;padding:0 2px 10px}.ihabdevteam-core-scope .tooltip-content.is-closing{opacity:0;transition:opacity .2s ease,transform .2s ease}.ihabdevteam-core-scope .tooltip-content[data-placement=top]{transform:translateY(-6px)}.ihabdevteam-core-scope .tooltip-content[data-placement=bottom]{transform:translateY(6px)}.ihabdevteam-core-scope .tooltip-content[data-placement=left]{transform:translateX(-6px)}.ihabdevteam-core-scope .tooltip-content[data-placement=right]{transform:translateX(6px)}.ihabdevteam-core-scope .tooltip-content.is-closing[data-placement=top]{transform:translateY(-6px) scale(.98)}.ihabdevteam-core-scope .tooltip-content.is-closing[data-placement=bottom]{transform:translateY(6px) scale(.98)}.ihabdevteam-core-scope .tooltip-content.is-closing[data-placement=left]{transform:translateX(-6px) scale(.98)}.ihabdevteam-core-scope .tooltip-content.is-closing[data-placement=right]{transform:translateX(6px) scale(.98)}@keyframes tooltip-pop{0%{opacity:0;transform:translateY(-6px) scale(.98)}to{opacity:1;transform:translateY(0) scale(1)}}@keyframes tooltip-fade-out{0%{opacity:1;transform:translateY(0) scale(1)}to{opacity:0;transform:translateY(-6px) scale(.98)}}.ihabdevteam-core-scope .tooltip-backdrop{background:var(--color-popupBlock);inset:0;position:fixed;z-index:calc(var(--z-tooltip) - 1)}.ihabdevteam-core-scope .tooltip-portal{inset:0;position:fixed;z-index:var(--z-tooltip)}.ihabdevteam-core-scope .tooltip-content.is-mobile{left:50%!important;max-width:calc(100% - 40px)!important;top:50%!important;transform:translate(-50%,-50%)!important;visibility:visible!important;width:calc(100% - 40px)!important;z-index:var(--z-tooltip)!important}";J(j4);function _s(e,t=!0){l.useEffect(()=>{if(!t)return;const a=e.current;if(!a)return;const r=n=>{if(n.key!=="Tab")return;const i=Array.from(a.querySelectorAll(dr)).filter(u=>!u.closest('[aria-hidden="true"]'));if(!i.length){n.preventDefault();return}const s=i[0],c=i[i.length-1];n.shiftKey&&document.activeElement===s?(n.preventDefault(),c.focus()):!n.shiftKey&&document.activeElement===c&&(n.preventDefault(),s.focus())};return a.addEventListener("keydown",r),()=>a.removeEventListener("keydown",r)},[e,t])}const dr='a[href], button:not([disabled]), input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex="-1"])';function Sa(e){const{anchorRect:t,anchorEl:a,offset:r=20,edgeMargin:n=20,onClose:i,closeOnOutsideClick:s=!0,className:c="",role:u="dialog",ariaLabel:d="",children:p,backdrop:m=!1,isMobilePopup:h=!1,useBorder:g=!0,header:f}=e||{},b=l.useRef(null),[y,v]=l.useState({position:"fixed",left:0,top:-9999}),[C,w]=l.useState(!1),[x,S]=l.useState("bottom"),[_,k]=l.useState(!1),[N,A]=l.useState(!1),D=!t&&!a,H=l.useCallback((L=!1)=>{if(N&&h)return;const F=a?a.getBoundingClientRect():t;if(!F||!b.current)return;const te=b.current,{offsetWidth:Z,offsetHeight:V}=te,j=window.innerWidth,M=window.innerHeight,$=j-F.right,W=F.left,q=F.top,X=M-F.bottom;let O=0,Y=0,z="top";if(q>=V+r)z="top",Y=F.top-r-V,O=F.left+F.width/2-Z/2;else if(X>=V+r)z="bottom",Y=F.bottom+r,O=F.left+F.width/2-Z/2;else if($>=Z+r)z="right",O=F.right+r,Y=F.top+F.height/2-V/2;else if(W>=Z+r)z="left",O=F.left-r-Z,Y=F.top+F.height/2-V/2;else{const me=Math.max(q,X,$,W);me===q?(z="top",Y=F.top-r-V,O=F.left+F.width/2-Z/2):me===X?(z="bottom",Y=F.bottom+r,O=F.left+F.width/2-Z/2):me===$?(z="right",O=F.right+r,Y=F.top+F.height/2-V/2):(z="left",O=F.left-r-Z,Y=F.top+F.height/2-V/2)}const re=Number(n)||8;O=Math.min(Math.max(O,re),j-Z-re),Y=Math.min(Math.max(Y,re),M-V-re);const Q=Math.round(O),ne=Math.round(Y);L&&b.current?(b.current.style.left=`${Q}px`,b.current.style.top=`${ne}px`,b.current.dataset.placement=z):(S(z||x),v({position:"fixed",left:Q,top:ne}),k(!0))},[N,h,a,t,r,n,x]);l.useLayoutEffect(()=>{if(D)return;if(N&&h){v({position:"fixed",left:"50%",top:"50%",transform:"translate(-50%, -50%)",width:"calc(100% - 40px)",maxWidth:"calc(100% - 40px)"}),k(!0);return}H();const L=requestAnimationFrame(()=>H());return()=>cancelAnimationFrame(L)},[t,a,r,p,n,D,N,h,H]),l.useEffect(()=>{if(D||N&&h||!b.current||typeof ResizeObserver>"u")return;const L=new ResizeObserver(()=>{t&&H()});return L.observe(b.current),()=>L.disconnect()},[t,p,n,D,N,h,H]),l.useEffect(()=>{if(D||N&&h)return;const L=()=>H(!0);return window.addEventListener("resize",L),document.addEventListener("scroll",L,{passive:!0,capture:!0}),()=>{window.removeEventListener("resize",L),document.removeEventListener("scroll",L,{capture:!0})}},[t,r,p,n,D,N,h,H]),l.useEffect(()=>{if(typeof window>"u"||!window.matchMedia)return;const L=window.matchMedia("(max-width: 768px)"),F=()=>A(!!L.matches);F();try{L.addEventListener?L.addEventListener("change",F):L.addListener(F)}catch{try{L.addListener(F)}catch{}}return()=>{try{L.removeEventListener?L.removeEventListener("change",F):L.removeListener(F)}catch{}}},[]);const P=l.useRef(!1),T=l.useCallback((L=!1)=>{if(!(C||P.current)){if(P.current=!0,L){w(!0);try{i&&i()}catch{}return}w(!0),setTimeout(()=>{i&&i()},200)}},[C,i,w]);l.useEffect(()=>{const L=Z=>{const V=b.current;if(!V)return;const j=Z.target;if(j&&!V.contains(j)){try{if(j.closest&&j.closest("[data-tooltip-ignore]"))return}catch{}s&&T(!0)}},F=Z=>{const V=b.current;if(!V)return;const j=Z.target;if(j&&!V.contains(j)){try{if(j.closest&&j.closest("[data-tooltip-ignore]"))return}catch{}s&&T(!0)}},te=Z=>{if(Z.key==="Escape"){Z.stopPropagation(),T();return}if(Z.key==="Tab"){const V=b.current;if(!V)return;const j=V.querySelectorAll(dr);if(!j||j.length===0)return;const M=j[0],$=j[j.length-1],W=document.activeElement;Z.shiftKey?W===M&&(Z.preventDefault(),$.focus()):W===$&&(Z.preventDefault(),M.focus())}};return document.addEventListener("pointerdown",L,!0),document.addEventListener("click",F,!0),document.addEventListener("keydown",te),()=>{document.removeEventListener("pointerdown",L,!0),document.removeEventListener("click",F,!0),document.removeEventListener("keydown",te)}},[i,s,T]),l.useEffect(()=>{const L=()=>{T(!0)};return typeof document<"u"&&document.addEventListener("speechear-close-tooltips",L),()=>{typeof document<"u"&&document.removeEventListener("speechear-close-tooltips",L)}},[T]);const E=o.jsxs("div",{ref:b,className:`tooltip-content ${g?"tooltip-content--bordered":""} ${C?"is-closing":""} ${c} ${N&&h?"is-mobile":""}`,role:u,"aria-label":d||void 0,style:D?{}:{...y,visibility:_?"visible":"hidden"},tabIndex:-1,"data-placement":x,"data-left":D?"":y.left,"data-top":D?"":y.top,"data-anchor-left":t?Math.round(t.left):"","data-anchor-top":t?Math.round(t.top):"","data-anchor-width":t?Math.round(t.width):"","data-anchor-height":t?Math.round(t.height):"",children:[f!=null&&o.jsx("div",{className:"tooltip-content__header h5",children:f}),p]});if(D||typeof document>"u")return E;if(m||N&&h){const L=o.jsxs("div",{className:"tooltip-portal",children:[o.jsx("div",{className:"tooltip-backdrop",onClick:()=>{s&&T(!0)}}),E]});return qt.createPortal(L,document.body)}return qt.createPortal(E,document.body)}var L4='.ihabdevteam-core-scope .tooltip-info__content{align-items:center;background:var(--color-deepWhite);border:1px solid var(--color-main);border-radius:var(--radius-m);box-shadow:var(--shadow-tooltip);color:var(--color-black);display:inline-flex;justify-content:center;line-height:1;overflow:hidden;padding:4px 12px;position:relative;text-align:center;text-overflow:ellipsis;white-space:nowrap}.ihabdevteam-core-scope .tooltip-content.tooltip-info{pointer-events:none}.ihabdevteam-core-scope .tooltip-content.tooltip-info .tooltip-info__content{box-shadow:var(--shadow-tooltip)}.ihabdevteam-core-scope .tooltip-info[data-placement=bottom] .tooltip-info__content:after,.ihabdevteam-core-scope .tooltip-info[data-placement=top] .tooltip-info__content:after{content:"";height:0;margin:0;padding:0;position:absolute;width:0}';J(L4);function aa(e){const{anchorRect:t,text:a,offset:r=8,onClose:n,className:i="",ariaLabel:s}=e||{};return a?o.jsx(Sa,{anchorRect:t,offset:r,onClose:n,closeOnOutsideClick:!1,className:`tooltip-info ${i}`,ariaLabel:s||a,children:o.jsx("div",{className:"tooltip-info__content body-3",children:a})}):null}var M4=".ihabdevteam-core-scope .tooltip-description__box{background:var(--color-white);border:1px solid var(--color-whiteLine);border-radius:var(--radius-m);box-shadow:var(--shadow-tooltip);display:flex;flex-direction:column;gap:10px;max-width:640px;padding:16px 20px}.ihabdevteam-core-scope .tooltip-description__title{color:var(--color-black);margin:0}.ihabdevteam-core-scope .tooltip-description__items{display:flex;flex-direction:column;gap:var(--spacing-xs);list-style:none;margin:0;padding:0}.ihabdevteam-core-scope .tooltip-description__item{align-items:flex-start;color:var(--color-darkGray);display:flex;gap:var(--spacing-xs);margin:0}.ihabdevteam-core-scope .tooltip-description__index{color:var(--color-main);flex-shrink:0}.ihabdevteam-core-scope .tooltip-description__item--active{color:var(--color-main);font-weight:600}.ihabdevteam-core-scope .tooltip-description__item--active .tooltip-description__index{color:var(--color-main)}";J(M4);function to(e){const{anchorRect:t,title:a,items:r,activeIndex:n=-1,showIndex:i=!0,onClose:s,offset:c=12}=e||{},u=Array.isArray(r)?r:r?[r]:[];return!u.length&&!a?null:o.jsx(Sa,{anchorRect:t,offset:c,onClose:s,closeOnOutsideClick:!0,useBorder:!1,className:"tooltip-description",children:o.jsxs("div",{className:"tooltip-description__box",children:[a&&o.jsx("span",{className:"tooltip-description__title body-2",children:a}),o.jsx("ol",{className:"tooltip-description__items",children:u.map((d,p)=>o.jsxs("li",{className:`tooltip-description__item body-3${p===n?" tooltip-description__item--active":""}`,children:[i&&u.length>1&&o.jsxs("span",{className:"tooltip-description__index button-1",children:[p+1,"."]}),o.jsx("span",{children:d})]},p))})]})})}function se(e){const{size:t=48,type:a,htmlType:r,href:n,target:i,rel:s,icon:c,rightIcon:u,label:d,count:p,subLabel:m,children:h,ariaLabel:g,variant:f="default",align:b="center",selected:y,toggleable:v=!1,disabled:C=!1,useLabel:w=!0,useBorder:x=!0,useBG:S=!0,useDisabledCovered:_=!1,useDisabledInvisible:k=!1,width:N,minWidth:A,onClick:D,onDisabledClick:H,showTooltipInfo:P=!1,tooltipInfoText:T=null,tooltipDescription:E=null,iconSize:L="medium",iconColor:F,shape:te="rounded",color:Z,className:V,...j}=e,M=typeof t=="string"&&isNaN(Number(t))?t.toLowerCase():String(Number(t)||48),$=M.match(/^\d+$/)?`button${M}`:`button-${M}`,W=Number(t),q=!isNaN(W)&&W<40?"button-2":"button-1",X=d??h,O=C||!!j.disabled,Y=O?_?"disabled-covered":k?"disabled-invisibled":"disabled":f,z=Y?`button--variant-${Y}`:"",re=b?`button--align-${b}`:"",Q=te?`button--shape-${te}`:"",ne=typeof F=="string"&&F.startsWith("--")?`var(${F})`:F,me={...N?{width:typeof N=="number"?`${N}px`:N}:{},...A?{minWidth:typeof A=="number"?`${A}px`:A}:{},...x?{}:{"--button-border":O?"0":"1px solid transparent"},...ne?{"--button-icon-color":ne}:{},...Z?{"--color-main":Z}:{}},ce=w===!1?"":X,I=Array.isArray(ce)?ce.length>0:!!ce,ee=!!u,pe=a??(I||c||ee?"bar":"dot"),ke=`${$}--${pe}`,Ce=l.useRef(null),R=l.useRef(O),[oe,ae]=l.useState(!!y),[ve,De]=l.useState(!1),[ze,Re]=l.useState(null),Me=l.useCallback(()=>De(!1),[]);l.useEffect(()=>{(P||E)&&O&&ve&&(De(!1),Re(null))},[O,P,E,ve]),l.useEffect(()=>{typeof y=="boolean"&&ae(y)},[y]),l.useEffect(()=>{if(R.current&&!O&&Ce.current){const Oe=Ce.current;Oe.blur(),Oe.style.pointerEvents="none";const Qe=requestAnimationFrame(()=>{requestAnimationFrame(()=>{Ce.current&&(Ce.current.style.pointerEvents="")})});return()=>cancelAnimationFrame(Qe)}R.current=O},[O]);const Ye=typeof y=="boolean"?!!y:oe,Ne=v||typeof y=="boolean"?Ye?"true":"false":void 0,Ve=xe("button",$,ke,z,re,Q,Ye?"is-selected":null,S?null:"button--no-bg",V),Fe=`button__icon button__icon--${L}`,be=Array.isArray(m)?m:m!==void 0?[m]:[],Ke=()=>{if(Array.isArray(ce))return ce.map((Qe,tt)=>{const xt=be[tt];return o.jsxs("span",{className:`button__label-text${xt!==void 0?" button__label-text--has-sub":""}`,children:[Qe,xt!==void 0&&o.jsx("span",{className:"button__sub-label-text caption-1",children:xt})]},tt)});const Oe=m!==void 0;return o.jsxs("span",{className:`button__label-text${Oe?" button__label-text--has-sub":""}`,children:[ce,p!=null&&o.jsx("span",{className:"button__count",children:p}),Oe&&o.jsx("span",{className:"button__sub-label-text caption-1",children:m})]})},We=Oe=>{O||(typeof j.onMouseLeave=="function"&&j.onMouseLeave(Oe),typeof y!="boolean"&&ae(!1),Oe.currentTarget.blur())},Le=Oe=>{if(O){H?.(Oe);return}typeof y!="boolean"&&v&&ae(Qe=>!Qe),D?.(Oe)},Ge=l.useCallback(()=>{!O&&(P||E)&&(De(!0),Re(Ce.current?.getBoundingClientRect()??null))},[O,P,E]),vt=l.useCallback(()=>{(P||E)&&(De(!1),Re(null))},[P,E]),Ue={...j};delete Ue.disabled,delete Ue.className,delete Ue.faded,delete Ue.useFaded,delete Ue.loading,delete Ue.onMouseLeave,delete Ue.onPointerEnter,delete Ue.onPointerLeave,delete Ue.onFocus,delete Ue.onBlur,O&&(Object.keys(Ue).forEach(Oe=>{/^on[A-Z]/.test(Oe)&&typeof Ue[Oe]=="function"&&delete Ue[Oe]}),Ue["aria-disabled"]="true");const Xe=(typeof P=="string"?P:null)??(typeof T=="string"?T:null)??(typeof g=="string"?g:null)??(typeof X=="string"?X:null)??void 0,ut=typeof g=="string"?g:typeof X=="string"?X:Xe,Pe=(Oe,Qe)=>o.jsx(Ie,{icon:Oe,label:Qe??ut,className:Fe,imgClassName:"button__icon-img",maskClassName:"button__icon-mask",svgClassName:"button__icon-svg"}),rt=()=>pe==="dot"?o.jsxs(o.Fragment,{children:[Pe(c),I&&o.jsx("span",{className:`button__label ${q}`,children:Ke()})]}):b==="center"&&c?o.jsxs(o.Fragment,{children:[o.jsxs("span",{className:"button__center-group",children:[o.jsx("span",{className:"button__left",children:Pe(c)}),I&&o.jsx("span",{className:`button__label ${q}`,children:Ke()})]}),ee&&o.jsx("span",{className:"button__right",children:Pe(u)})]}):o.jsxs(o.Fragment,{children:[c&&o.jsx("span",{className:"button__left",children:Pe(c,g??X)}),I&&o.jsx("span",{className:`button__label ${q}`,children:Ke()}),ee&&o.jsx("span",{className:"button__right",children:Pe(u)})]}),et=!!n&&!O;return o.jsxs(o.Fragment,{children:[o.jsx(et?"a":"button",{...Ue,ref:Ce,...et?{href:n,target:i,rel:s??(i==="_blank"?"noreferrer":void 0)}:{type:r,disabled:O&&!H},className:Ve,"aria-pressed":Ne,"aria-label":ut,"aria-disabled":et&&O?!0:void 0,style:me,onClick:Le,onMouseLeave:We,onPointerEnter:Oe=>{Ge(),!O&&typeof j.onPointerEnter=="function"&&j.onPointerEnter(Oe)},onPointerLeave:Oe=>{vt(),!O&&typeof j.onPointerLeave=="function"&&j.onPointerLeave(Oe)},onFocus:Oe=>{Ge(),!O&&typeof j.onFocus=="function"&&j.onFocus(Oe)},onBlur:Oe=>{We(Oe),vt(),!O&&typeof j.onBlur=="function"&&j.onBlur(Oe)},children:rt()}),ve&&E?o.jsx(to,{anchorRect:ze,title:E.title,items:E.items,onClose:Me}):ve&&Xe?o.jsx(aa,{anchorRect:ze,text:Xe,onClose:Me}):null]})}function lt(e,t,a){const r=l.useRef(null);return l.useLayoutEffect(()=>{const n=r.current?.parentElement??null;return t(n,e),()=>a(n)},[e,t,a]),r}var P4=".ihabdevteam-core-scope .promo-banner-bg{border-radius:inherit;inset:0;pointer-events:none;position:absolute}";J(P4);var R4=".ihabdevteam-core-scope .promo-banner-bg-main{background:linear-gradient(45deg,var(--color-main),var(--color-sub))}";J(R4);const Co={title:"--promo-banner-bg-title",description:"--promo-banner-bg-description"},ws=new WeakMap;function ks(e){if(e)return ws.get(e)}function Bt(e,t){e&&(e.style.setProperty(Co.title,t.title),e.style.setProperty(Co.description,t.description),ws.set(e,t))}function Nt(e){e&&(e.style.removeProperty(Co.title),e.style.removeProperty(Co.description),ws.delete(e))}const Ss={title:"#ffffff",description:"rgba(255, 255, 255, 0.85)",actionVariant:"default"};function As(){const e=lt(Ss,Bt,Nt);return o.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-main","aria-hidden":"true"})}var $4=".ihabdevteam-core-scope .promo-banner-bg-soft{background:var(--color-main-a10)}";J($4);const Ts={title:"var(--color-main)",description:"var(--color-gray)",actionVariant:"main"};function Bs(){const e=lt(Ts,Bt,Nt);return o.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-soft","aria-hidden":"true"})}var I4=".ihabdevteam-core-scope .promo-banner-bg-sub{background:var(--color-sub)}";J(I4);const Ns={title:"#ffffff",description:"rgba(255, 255, 255, 0.85)",actionVariant:"main"};function Ds(){const e=lt(Ns,Bt,Nt);return o.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-sub","aria-hidden":"true"})}var z4=".ihabdevteam-core-scope .promo-banner-bg-deep{background:linear-gradient(135deg,var(--color-darkMain),var(--color-darkSub))}";J(z4);const Es={title:"#ffffff",description:"rgba(255, 255, 255, 0.85)",actionVariant:"main"};function js(){const e=lt(Es,Bt,Nt);return o.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-deep","aria-hidden":"true"})}var O4=".ihabdevteam-core-scope .promo-banner-bg-soft-sub{background:var(--color-sub-a10)}";J(O4);const Ls={title:"var(--color-darkSub)",description:"var(--color-gray)",actionVariant:"main"};function Ms(){const e=lt(Ls,Bt,Nt);return o.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-soft-sub","aria-hidden":"true"})}var F4=".ihabdevteam-core-scope .promo-banner-bg-warm{background:var(--color-warn)}";J(F4);const Ps={title:"var(--color-black)",description:"var(--color-darkGray)",actionVariant:"main"};function Rs(){const e=lt(Ps,Bt,Nt);return o.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-warm","aria-hidden":"true"})}var W4=".ihabdevteam-core-scope .promo-banner-bg-dark{background:var(--color-lightBlack)}";J(W4);const $s={title:"var(--color-white)",description:"var(--color-lightGray)",actionVariant:"main"};function Is(){const e=lt($s,Bt,Nt);return o.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-dark","aria-hidden":"true"})}var H4=".ihabdevteam-core-scope .promo-banner-bg-radial{background:radial-gradient(circle at 15% 20%,var(--color-main) 0,var(--color-sub) 100%)}";J(H4);const zs={title:"#ffffff",description:"rgba(255, 255, 255, 0.85)",actionVariant:"main"};function Os(){const e=lt(zs,Bt,Nt);return o.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-radial","aria-hidden":"true"})}var V4=".ihabdevteam-core-scope .promo-banner-bg-diagonal{background-color:var(--color-lightMain);background-image:repeating-linear-gradient(45deg,var(--color-main-a10) 0,var(--color-main-a10) 10px,transparent 10px,transparent 20px)}";J(V4);const Fs={title:"var(--color-darkMain)",description:"var(--color-gray)",actionVariant:"main"};function Ws(){const e=lt(Fs,Bt,Nt);return o.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-diagonal","aria-hidden":"true"})}var G4=".ihabdevteam-core-scope .promo-banner-bg-dots{background-color:var(--color-lightSub);background-image:radial-gradient(var(--color-sub-a10) 2px,transparent 2px);background-size:14px 14px}";J(G4);const Hs={title:"var(--color-darkSub)",description:"var(--color-gray)",actionVariant:"main"};function Vs(){const e=lt(Hs,Bt,Nt);return o.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-dots","aria-hidden":"true"})}var q4=".ihabdevteam-core-scope .promo-banner-bg-outline{background:var(--color-white);border:1px solid var(--color-whiteLine);box-sizing:border-box}.ihabdevteam-core-scope .promo-banner-bg-outline__dot{background:linear-gradient(45deg,var(--color-main),var(--color-sub));border-radius:50%;bottom:-40px;height:140px;opacity:.12;position:absolute;right:-40px;width:140px}";J(q4);const Gs={title:"var(--color-black)",description:"var(--color-gray)",actionVariant:"main"};function qs(){const e=lt(Gs,Bt,Nt);return o.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-outline","aria-hidden":"true",children:o.jsx("span",{className:"promo-banner-bg-outline__dot"})})}var Y4=".ihabdevteam-core-scope .promo-banner-bg-success{background:var(--color-success)}";J(Y4);const Ys={title:"#ffffff",description:"rgba(255, 255, 255, 0.85)",actionVariant:"main"};function Us(){const e=lt(Ys,Bt,Nt);return o.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-success","aria-hidden":"true"})}var U4=".ihabdevteam-core-scope .promo-banner-bg-naver{background:linear-gradient(90deg,#03c75a 0,var(--color-main) 100%)}";J(U4);const Ks={title:"#ffffff",description:"rgba(255, 255, 255, 0.85)",actionVariant:"sub"};function Zs(){const e=lt(Ks,Bt,Nt);return o.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-naver","aria-hidden":"true"})}var K4=".ihabdevteam-core-scope .promo-banner-bg-instagram{background:linear-gradient(45deg,#f9ce34,#ee2a7b 50%,#6228d7)}";J(K4);const Xs={title:"#ffffff",description:"rgba(255, 255, 255, 0.85)",actionVariant:"transparent-white"};function Qs(){const e=lt(Xs,Bt,Nt);return o.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-instagram","aria-hidden":"true"})}const Hp=[{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"}],Js={main:As,soft:Bs,sub:Ds,deep:js,softSub:Ms,warm:Rs,dark:Is,radial:Os,diagonal:Ws,dots:Vs,outline:qs,success:Us,naver:Zs,instagram:Qs};function sn({storageKey:e="fontScale",baseFont:t=20,minScale:a=.8,maxScale:r=1.4,step:n=.1,lineHeightRatio:i=1.4}={}){const s=y=>Math.max(a,Math.min(r,Number(y))),[c,u]=l.useState(()=>{try{const y=localStorage.getItem(e),v=y?Number(y):1;return Number.isFinite(v)?v:1}catch{return 1}});l.useEffect(()=>{try{localStorage.setItem(e,String(c))}catch{}},[e,c]);const d=y=>{u(typeof y=="function"?v=>s(y(v)):s(y))},p=()=>d(y=>+(y+n).toFixed(6)),m=()=>d(y=>+(y-n).toFixed(6)),h=c<r-Number.EPSILON,g=c>a+Number.EPSILON,f=Math.round(t*c),b=Math.round(f*i);return{scale:c,setScale:d,increase:p,decrease:m,canIncrease:h,canDecrease:g,fontSize:f,lineHeight:b}}const ln=l.createContext(null);function Z4(e){return/max-width:\s*7[0-9][0-9]px/.test(e)}function oa(e){const t=l.useContext(ln),a=i=>typeof window>"u"||!window.matchMedia?!1:window.matchMedia(i).matches,[r,n]=l.useState(a(e));return l.useEffect(()=>{if(typeof window>"u"||!window.matchMedia)return;const i=window.matchMedia(e),s=u=>n(u.matches),c=i;return c.addEventListener?c.addEventListener("change",s):c.addListener&&c.addListener(s),n(i.matches),()=>{c.removeEventListener?c.removeEventListener("change",s):c.removeListener&&c.removeListener(s)}},[e]),t&&typeof t.mobile=="boolean"&&Z4(e)?t.mobile:r}function el(e){const t=l.useRef(e);return l.useEffect(()=>{t.current=e}),t}function ur(e,t){const a=el(t);l.useEffect(()=>{const r=()=>a.current();try{window.addEventListener(e,r)}catch{}return()=>{try{window.removeEventListener(e,r)}catch{}}},[e,a])}const tl=" \xB7 ",Vp=(()=>{if(typeof document>"u")return"";const e=document.title;return e.includes(tl)?e.split(tl).pop()??e:e})(),al=l.createContext(!1);function ol(e){const t=l.useContext(al);l.useEffect(()=>{if(t||typeof e!="string"||!e)return;const a=document.title;return document.title=Vp?`${e}${tl}${Vp}`:e,()=>{document.title=a}},[e,t])}function Gp(){const{t:e}=ge.useTranslation();return l.useCallback(t=>{if(!t)return"";const a=new Date(t).getTime();if(Number.isNaN(a))return"";const r=Math.floor((Date.now()-a)/864e5);return r<=0?e("myHomework.relativeDay.today","\uC624\uB298"):r===1?e("myHomework.relativeDay.yesterday","\uC5B4\uC81C"):e("myHomework.relativeDay.daysAgo",{n:r})},[e])}function qp(e){const[t,a]=l.useState({current:"",next:"",confirm:""}),[r,n]=l.useState(null),[i,s]=l.useState(!1),c=l.useRef(null);l.useEffect(()=>()=>{c.current!==null&&clearTimeout(c.current)},[]);const u=l.useCallback(()=>{a({current:"",next:"",confirm:""}),n(null)},[]),d=l.useCallback(async()=>{if(!t.current){n({type:"error",text:"\uD604\uC7AC \uBE44\uBC00\uBC88\uD638\uB97C \uC785\uB825\uD558\uC138\uC694."});return}if(!t.next){n({type:"error",text:"\uC0C8 \uBE44\uBC00\uBC88\uD638\uB97C \uC785\uB825\uD558\uC138\uC694."});return}if(t.next!==t.confirm){n({type:"error",text:"\uC0C8 \uBE44\uBC00\uBC88\uD638\uAC00 \uC77C\uCE58\uD558\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4."});return}s(!0);const p=e?await e(t.current,t.next):null;if(s(!1),p){n({type:"error",text:p});return}n({type:"success",text:"\uBE44\uBC00\uBC88\uD638\uAC00 \uBCC0\uACBD\uB418\uC5C8\uC2B5\uB2C8\uB2E4."}),a({current:"",next:"",confirm:""}),c.current!==null&&clearTimeout(c.current),c.current=setTimeout(()=>n(null),1500)},[t,e]);return{pw:t,setPw:a,pwMsg:r,setPwMsg:n,pwLoading:i,handleChangePw:d,reset:u}}const rl=[{id:"wordData",labelKey:"settings.cache.group.wordData.label",subKey:"settings.cache.group.wordData.sub",keys:["word_data_cache","word_data_version"]},{id:"pairIndex",labelKey:"settings.cache.group.pairIndex.label",subKey:"settings.cache.group.pairIndex.sub",keys:["word_pair_index_v2","word_pair_index_sig_v2"]},{id:"imageCache",labelKey:"settings.cache.group.imageCache.label",subKey:"settings.cache.group.imageCache.sub",keys:["word_image_existence_map_v1"]}];function nl(e){return e.reduce((t,a)=>{try{const r=localStorage.getItem(a);return t+(r?new Blob([r]).size:0)}catch{return t}},0)}function Yp(e){return e===0?"0 B":e<1024?`${e} B`:e<1024*1024?`${(e/1024).toFixed(1)} KB`:e<1024*1024*1024?`${(e/(1024*1024)).toFixed(2)} MB`:`${(e/(1024*1024*1024)).toFixed(2)} GB`}function Up(e){const{t}=ge.useTranslation(),[a,r]=l.useState({}),[n,i]=l.useState(null),[s,c]=l.useState(null),[u,d]=l.useState(null),p=l.useCallback(()=>{const h={};rl.forEach(g=>{h[g.id]=nl([...g.keys])}),r(h),typeof navigator<"u"&&navigator.storage?.estimate&&navigator.storage.estimate().then(g=>{d({usage:g.usage??0,quota:g.quota??0})}).catch(()=>{})},[]);l.useEffect(()=>{p()},[p]);const m=l.useCallback(async h=>{i(h);try{h==="wordData"?(localStorage.removeItem("word_data_cache"),localStorage.removeItem("word_data_version")):h==="pairIndex"?xi():h==="imageCache"&&li(),p(),e?.(t("settings.cache.cleared","\uCE90\uC2DC\uAC00 \uC0AD\uC81C\uB418\uC5C8\uC2B5\uB2C8\uB2E4."))}finally{i(null)}},[p,e,t]);return{cacheSizes:a,clearingId:n,confirmCacheId:s,setConfirmCacheId:c,storageEstimate:u,refreshCacheSizes:p,handleClearCache:m}}function Kp(e){const[t,a]=l.useState(null),[r,n]=l.useState(null),i=l.useCallback(()=>{const s=Ka();if(s){const u=Object.values(s),d=u.filter(p=>p.cho.length+p.jung.length+p.jong.length>0).length;a({matched:d,total:u.length})}else a(null);const c=Mr();n(c?{exists:c.exists,total:c.total}:null)},[]);return l.useEffect(()=>{i();const s=setTimeout(i,1e3);return()=>clearTimeout(s)},[e?.length,i]),{pairStats:t,imgStats:r,setPairStats:a,setImgStats:n,refreshStats:i}}function Zp(e,t=[]){const[a,r]=l.useState(t),[n,i]=l.useState(null),[s,c]=l.useState(!1),[u,d]=l.useState(e),p=l.useRef(s);l.useEffect(()=>{p.current=s});const m=l.useRef(null);l.useEffect(()=>{if(p.current)return;const v=m.current;v!==null&&v.length===t.length&&v.every((C,w)=>C===t[w])||(m.current=t,r(t))},[t]);const h=l.useCallback(v=>{i(v),c(!1),d({...v})},[]),g=l.useCallback(()=>c(!0),[]),f=l.useCallback(()=>c(!1),[]),b=l.useCallback((v,C)=>{r(v),i(C),c(!1)},[]),y=l.useCallback(v=>{r(C=>C.filter(w=>w!==v)),i(null)},[]);return{list:a,setList:r,selected:n,setSelected:i,isEditing:s,setIsEditing:c,editForm:u,setEditForm:d,openDetail:h,startEditing:g,cancelEditing:f,commitEdit:b,remove:y}}const _o=()=>{const e=new Date;return{year:String(e.getFullYear()),month:String(e.getMonth()+1).padStart(2,"0"),day:String(e.getDate()).padStart(2,"0")}},X4={year:"",month:"",day:"",hour:"09",minute:"00",memo:""};function Xp(e=[]){const{list:t,setList:a,selected:r,setSelected:n,isEditing:i,setIsEditing:s,editForm:c,setEditForm:u,openDetail:d,commitEdit:p}=Zp(X4,e),{year:m,month:h,day:g}=_o(),[f,b]=l.useState({year:m,month:h,day:g,hour:"09",minute:"00",memo:""});return{visitHistory:t,visitForm:f,setVisitForm:b,setVisit:y=>v=>b(C=>({...C,[y]:v})),selectedVisit:r,setSelectedVisit:n,isEditingVisit:i,setIsEditingVisit:s,editVisitForm:c,setEditVisitForm:u,openVisitDetail:d,handleVisitSave:y=>{a(x=>[f,...x]);const{year:v,month:C,day:w}=_o();b({year:v,month:C,day:w,hour:"09",minute:"00",memo:""}),y?.()},handleVisitEditSave:()=>{p(y=>y.map(v=>v===r?c:v),c)},addVisit:y=>{a(v=>[y,...v])},removeVisit:y=>{a(v=>v.filter(C=>C!==y))},revertVisitEdit:(y,v)=>{a(C=>C.map(w=>w===v?y:w)),n(C=>C===v?y:C)}}}const Qp=e=>`${e.year.padStart(4,"0")}-${e.month.padStart(2,"0")}-${e.day.padStart(2,"0")} ${e.hour.padStart(2,"0")}:${e.minute.padStart(2,"0")}`,cn=e=>[...e].sort((t,a)=>{const r=Qp(t),n=Qp(a);return r<n?-1:r>n?1:0}),Q4={year:"",month:"",day:"",hour:"09",minute:"00",memo:""};function Jp(e,t=[]){const a=l.useMemo(()=>cn(t),[t]),{list:r,setList:n,selected:i,setSelected:s,isEditing:c,setIsEditing:u,editForm:d,setEditForm:p,openDetail:m,commitEdit:h,remove:g}=Zp(Q4,a),[f,b]=l.useState([]),{year:y,month:v,day:C}=_o(),[w,x]=l.useState({year:y,month:v,day:C,hour:"09",minute:"00",memo:""}),S=E=>L=>x(F=>({...F,[E]:L})),_=E=>{n(Z=>cn([...Z,w]));const{year:L,month:F,day:te}=_o();x({year:L,month:F,day:te,hour:"09",minute:"00",memo:""}),E?.()},k=()=>{h(E=>cn(E.map(L=>L===i?d:L)),d)},N=l.useCallback(E=>{g(E)},[g]),A=l.useCallback(E=>{e({year:E.year,month:E.month,day:E.day,hour:E.hour,minute:E.minute,memo:E.memo}),g(E)},[e,g]),D=l.useCallback(E=>{n(L=>L.filter(F=>F!==E)),b(L=>[E,...L]),s(null)},[n,s]),H=l.useCallback(E=>{n(L=>cn([...L,E]))},[n]),P=l.useCallback(E=>{n(L=>L.filter(F=>F!==E))},[n]),T=l.useCallback((E,L)=>{n(F=>F.map(te=>te===L?E:te)),s(F=>F===L?E:F)},[n,s]);return{scheduleList:r,noShowList:f,addSchedule:H,removeSchedule:P,revertScheduleEdit:T,scheduleForm:w,setScheduleForm:x,setSchedule:S,selectedSchedule:i,setSelectedSchedule:s,isEditingSchedule:c,setIsEditingSchedule:u,editScheduleForm:d,setEditScheduleForm:p,openScheduleDetail:m,handleScheduleSave:_,handleScheduleEditSave:k,handleScheduleDelete:N,handleScheduleToVisit:A,handleScheduleNoVisit:D}}const il=[{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 eh(e){const[t,a]=l.useState(""),[r,n]=l.useState("25"),[i,s]=l.useState("all"),[c,u]=l.useState(1),d=l.useMemo(()=>e.filter(({item:g,status:f})=>!(t&&!g.memo.includes(t)||i!=="all"&&f!==i)),[e,t,i]),p=Math.max(1,Math.ceil(d.length/Number(r))),m=Math.min(c,p),h=l.useMemo(()=>d.slice((m-1)*Number(r),m*Number(r)),[d,m,r]);return{vapSearch:t,setVapSearch:a,vapPageSize:r,setVapPageSize:n,vapStatus:i,setVapStatus:s,vapPage:m,setVapPage:u,vapFiltered:d,vapTotal:p,vapPageItems:h}}function sl(e,t){const{t:a}=ge.useTranslation(),[r,n]=l.useState("25"),[i,s]=l.useState(1),[c,u]=l.useState(t);c!==t&&(u(t),i!==1&&s(1));const d=l.useMemo(()=>il.map(g=>({...g,label:a("visits.showN",{n:g.value})})),[a]),p=l.useCallback(g=>{n(g),s(1)},[]),m=Math.max(1,Math.ceil(e.length/Number(r))),h=Math.min(i,m);return{pageRows:l.useMemo(()=>e.slice((h-1)*Number(r),h*Number(r)),[e,h,r]),pageSizeProps:{options:d,value:r,onChange:p},paginationProps:{page:h,total:m,onChange:s},setPage:s}}function ll(){const[e,t]=l.useState(null),a=l.useCallback(n=>{t(i=>i?.key===n?{key:n,asc:!i.asc}:{key:n,asc:!0})},[]),r=l.useCallback((n,i)=>({label:n,sortDir:e?.key===i?e.asc?"asc":"desc":null,onClick:()=>a(i)}),[e,a]);return{\uC815\uB82C:e,\uCE78:r}}function th(){const[e,t]=l.useState(!1),[a,r]=l.useState("\uC88C"),[n,i]=l.useState({\uC88C:null,\uC6B0:null}),[s,c]=l.useState({\uC88C:[],\uC6B0:[]}),[u,d]=l.useState(!1),[p,m]=l.useState("\uC88C"),h=l.useCallback(f=>{const b=f.direction;i(y=>({...y,[b]:f})),c(y=>({...y,[b]:[f,...y[b]]})),t(!1)},[]),g=l.useCallback(f=>{const b=f.direction;i(y=>({...y,[b]:f})),d(!1)},[]);return{showDevice:e,setShowDevice:t,deviceDirection:a,setDeviceDirection:r,devices:n,setDevices:i,deviceHistory:s,setDeviceHistory:c,showDeviceList:u,setShowDeviceList:d,listForSide:p,setListForSide:m,handleDeviceSubmit:h,handleSelectFromList:g}}const Dt="\uC804\uCCB4";function cl(){const{t:e}=ge.useTranslation();return l.useMemo(()=>({difficulty:e("wordSearch.filter.difficulty","\uB4F1\uAE09"),syllables:e("wordSearch.filter.syllables","\uC74C\uC808 \uC218"),syllable5plus:e("wordSearch.filter.syllable5plus","5\uC74C\uC808 \uC774\uC0C1"),partOfSpeech:e("wordSearch.filter.partOfSpeech","\uD488\uC0AC"),wordType:e("wordSearch.filter.wordType","\uC720\uD615"),posMap:{[e("wordSearch.filter.pos.noun","\uCCB4\uC5B8(\uBA85\uC0AC, \uC218\uC0AC)")]:["\uBA85","\uC218"],[e("wordSearch.filter.pos.verb","\uC6A9\uC5B8(\uB3D9\uC0AC, \uD615\uC6A9\uC0AC)")]:["\uB3D9","\uD615"],[e("wordSearch.filter.pos.modifier","\uC218\uC2DD\uC5B8(\uBD80\uC0AC, \uAD00\uD615\uC0AC)")]:["\uBD80","\uAD00"]},typeMap:{[e("wordSearch.filter.type.native","\uACE0\uC720\uC5B4")]:"\uACE0\uC720",[e("wordSearch.filter.type.sino","\uD55C\uC790\uC5B4")]:"\uD55C\uC790",[e("wordSearch.filter.type.foreign","\uC678\uB798\uC5B4")]:"\uC678\uB798",[e("wordSearch.filter.type.mixed","\uD63C\uC885\uC5B4")]:"\uD63C\uC885"}}),[e])}function dl(e,t,a){return{label:t.difficulty,items:[1,2,3,4].map(r=>e("wordSearch.filter.grade",{n:r})),multiple:!0,allOption:!0,allLabel:a?.allLabel,labelAction:a?.labelAction,labelInfo:a?.labelInfo}}function ul(e){return{label:e.partOfSpeech,items:Object.keys(e.posMap),multiple:!0,allOption:!0}}function pl(e){return{label:e.wordType,items:Object.keys(e.typeMap),multiple:!0,allOption:!0}}function ah(e,t){return{label:t.syllables,items:[e("wordSearch.filter.syllable",{n:1}),e("wordSearch.filter.syllable",{n:2}),e("wordSearch.filter.syllable",{n:3}),e("wordSearch.filter.syllable",{n:4}),t.syllable5plus],multiple:!0,allOption:!0}}function oh(e,t){const a=[e("wordPairs.filter.onlyHasImage","\uC774\uBBF8\uC9C0 \uC788\uB294 \uB2E8\uC5B4\uB9CC")];return t?.includeStructure&&a.push(e("wordPairs.filter.onlySameStructure","\uC74C\uC18C \uAD6C\uC870 \uAC19\uC740 \uB2E8\uC5B4\uB9CC")),{label:e("wordPairs.filter.selectLabel","\uC120\uD0DD"),items:a,multiple:!0,labelAction:t?.labelAction,labelInfo:t?.labelInfo}}function rh(e,t){const{label:a,headValue:r,midValue:n,tailValue:i,includeMid:s=!0,headDisabled:c,midDisabled:u,tailDisabled:d,allOptionDisabled:p,groupLabel:m,labelAction:h}=t;return{label:a,...m?{groupLabel:m}:{},...h?{labelAction:h}:{},allOption:!0,allLabel:e("wordSearch.filter.positionAny",{defaultValue:"\uBB34\uAD00"}),...p?{allOptionDisabled:p}:{},items:[{value:r,displayLabel:e("wordSearch.filter.positionHead",{defaultValue:"\uC5B4\uB450"}),disabled:c},...s?[{value:n,displayLabel:e("wordSearch.filter.positionMid",{defaultValue:"\uC5B4\uC911"}),disabled:u}]:[],{value:i,displayLabel:e("wordSearch.filter.positionTail",{defaultValue:"\uC5B4\uB9D0"}),disabled:d}]}}function nh(e,t,a){if(t===Dt){const{[a]:i,...s}=e;return s}const r=e[a]??[],n=r.includes(t)?r.filter(i=>i!==t):[...r,t];if(n.length===0){const{[a]:i,...s}=e;return s}return{...e,[a]:n}}Object.fromEntries(Object.entries(Mw).map(([e,{nucleus:t}])=>[e,t]));const J4={\uACE0\uC720\uC5B4:"\uACE0\uC720",\uD55C\uC790\uC5B4:"\uD55C\uC790",\uC678\uB798\uC5B4:"\uC678\uB798",\uD63C\uC885\uC5B4:"\uD63C\uC885"},e5={"\uCCB4\uC5B8(\uBA85\uC0AC,\uC218\uC0AC)":["\uBA85","\uC218"],"\uC6A9\uC5B8(\uB3D9\uC0AC,\uD615\uC6A9\uC0AC)":["\uB3D9","\uD615"],"\uC218\uC2DD\uC5B8(\uBD80\uC0AC,\uAD00\uD615\uC0AC)":["\uBD80","\uAD00"]},t5={difficulty:"\uB09C\uC774\uB3C4 \uB4F1\uAE09",syllables:"\uC74C\uC808 \uC218",syllable5plus:"5\uC74C\uC808 \uC774\uC0C1",partOfSpeech:"\uD488\uC0AC",wordType:"\uC720\uD615",posMap:e5,typeMap:J4};function a5(e,t,a=t5){const r=t[a.difficulty];if(r?.length&&!r.some(c=>e.grade===c.replace(/\D/g,"")))return!1;const n=t[a.syllables];if(n?.length){const c=e.syllables??0;if(!n.some(u=>u===a.syllable5plus?c>=5:c===parseInt(u)))return!1}const i=t[a.partOfSpeech];if(i?.length&&!i.flatMap(c=>a.posMap[c]??[c]).some(c=>(e.pos??"").includes(c)))return!1;const s=t[a.wordType];return!(s?.length&&!s.some(c=>e.wordType===a.typeMap[c]))}const Aa=(e,t)=>t.map(a=>({jamos:[a],tooltip:e})),wt=(e,t)=>({jamos:[...e],tooltip:t}),hl={cho:[Aa("\uC591\uC21C\uC74C",["\u3142","\u3143","\u314D","\u3141"]),Aa("\uCE58\uC870\uC74C",["\u3137","\u3138","\u314C","\u3134","\u3139"]),Aa("\uCE58\uC870\uC74C",["\u3145","\u3146"]),Aa("\uACBD\uAD6C\uAC1C\uC74C",["\u3148","\u3149","\u314A"]),Aa("\uC5F0\uAD6C\uAC1C\uC74C",["\u3131","\u3132","\u314B"]),Aa("\uC131\uBB38\uC74C",["\u314E"])],jung:[[wt("\u3163","\uC804\uC124 \uACE0\uBAA8\uC74C"),wt("\u315F","\uC804\uC124 \uACE0\uBAA8\uC74C \xB7 w\uD65C\uC74C"),wt("\u3162","\uC804\uC124 \uACE0\uBAA8\uC74C \xB7 \u0270\uD65C\uC74C")],[wt("\u3161","\uD6C4\uC124 \uACE0\uBAA8\uC74C \uD3C9\uC21C")],[wt("\u315C","\uD6C4\uC124 \uACE0\uBAA8\uC74C \uC6D0\uC21C"),wt("\u3160","\uD6C4\uC124 \uACE0\uBAA8\uC74C \uC6D0\uC21C \xB7 j\uD65C\uC74C")],[wt("\u3154\u3150","\uC804\uC124 \uC911\uBAA8\uC74C"),wt("\u3156\u3152","\uC804\uC124 \uC911\uBAA8\uC74C \xB7 j\uD65C\uC74C"),wt("\u3159\u315A\u315E","\uC804\uC124 \uC911\uBAA8\uC74C \xB7 w\uD65C\uC74C")],[wt("\u3153","\uD6C4\uC124 \uC911\uBAA8\uC74C \uD3C9\uC21C"),wt("\u3155","\uD6C4\uC124 \uC911\uBAA8\uC74C \uD3C9\uC21C \xB7 j\uD65C\uC74C"),wt("\u315D","\uD6C4\uC124 \uC911\uBAA8\uC74C \uD3C9\uC21C \xB7 w\uD65C\uC74C")],[wt("\u3157","\uD6C4\uC124 \uC911\uBAA8\uC74C \uC6D0\uC21C"),wt("\u315B","\uD6C4\uC124 \uC911\uBAA8\uC74C \uC6D0\uC21C \xB7 j\uD65C\uC74C")],[wt("\u314F","\uC800\uBAA8\uC74C"),wt("\u3151","\uC800\uBAA8\uC74C \xB7 j\uD65C\uC74C"),wt("\u3158","\uC800\uBAA8\uC74C \xB7 w\uD65C\uC74C")]],jong:[Aa("\uC591\uC21C\uC74C",["\u3142","\u3141"]),Aa("\uCE58\uC870\uC74C",["\u3137","\u3134","\u3139"]),Aa("\uC5F0\uAD6C\uAC1C\uC74C",["\u3131","\u3147"])]},o5=[...Ze],r5=[...dt],n5=gt.filter(e=>e!==""),ba=e=>e===ra?[]:Array.from(e),ra="__NO_CODA__",ih=[1,2,3,4],na=5,i5=12,sh="SYL_",ml=e=>`${sh}${e}`,s5=e=>Number(e.slice(sh.length));function dn(e){return e>=na?Array.from({length:i5-na+1},(t,a)=>na+a):[e]}const lh={cho:o5,jung:r5,jong:n5},bl=e=>e.map(t=>t.map(({jamos:a,tooltip:r})=>({v:a.join(""),tooltip:r}))),gl={cho:bl(hl.cho),jung:bl(hl.jung),jong:bl(hl.jong)},ch={};gl.jung.flat().forEach(({v:e})=>{for(const t of ba(e))ch[t]=e});const l5=new Set(gl.cho.flat().map(e=>e.v));function fl(e,t){return e==="cho"?l5.has(t)?t:null:e==="jung"?ch[t]??t:Vr(t)}function vl(e,t,a){if(e==="jung"){const r=ba(t);return a&&r.includes(a)?a:r[0]??t}return t}function yl(e,t,a){const r=(n,i)=>i?n==="jong"&&i===ra?ra:t==="pron"?fl(n,i):vl(n,i,n==="jung"?a:null):null;return{...e,cho:r("cho",e.cho),jung:r("jung",e.jung),jong:r("jong",e.jong)}}const un={cho:null,jung:null,jong:null,syllable:null},c5="wt_filter",dh=e=>`wt_filter_${e}`;function uh(e){try{const t=localStorage.getItem(dh(e))??localStorage.getItem(c5);if(t)return JSON.parse(t)}catch{}return null}function d5(e){const t=e;return t?.composition?{cho:t.composition.cho??null,jung:t.composition.jung??null,jong:t.composition.jong??null,syllable:t.composition.syllable??null}:t?.choseong?{...un,cho:t.choseong}:un}function ph(e,t,a){const{t:r,i18n:n}=ge.useTranslation(),[i]=l.useState(()=>a?.resetOnMount?null:uh(e)),s=i?.contrastCount,c=typeof s=="number"&&Number.isFinite(s)?s:1,[u,d]=l.useState(Math.min(5,Math.max(1,c))),[p,m]=l.useState(i?.phonemeView==="pron"?"pron":i?.phonemeView==="direct"?"direct":"char"),[h,g]=l.useState(()=>d5(i)),f=l.useCallback(()=>t.requireSyllable?{cho:"\u3131",jung:"\u314F",jong:ra,syllable:t.fixedSyllable??null}:{cho:null,jung:null,jong:t.fixedNoCoda?ra:null,syllable:t.fixedSyllable??null},[t.requireSyllable,t.fixedSyllable,t.fixedNoCoda]);l.useEffect(()=>{!t.requireSyllable&&t.fixedSyllable==null&&!t.fixedNoCoda||g(R=>R.cho||R.jung||R.syllable!=null||R.jong?R:f())},[]);const b=l.useMemo(()=>ft(h.cho)||ft(h.jung)||ft(h.jong)?"count":"random",[h.cho,h.jung,h.jong]),y=l.useRef(p==="char"?h.jung:null);l.useEffect(()=>{p==="char"&&(y.current=h.jung)},[p,h.jung]);const[v,C]=l.useState(a?.resetOnMount?!!a?.defaultImageOnly:i?.excludeNoImage??!0),[w,x]=l.useState(a?.resetOnMount?!1:i?.sameStructureOnly??!0),[S,_]=l.useState(Array.isArray(i?.gradeFilter)?i.gradeFilter:[]),[k,N]=l.useState(Array.isArray(i?.posFilter)?i.posFilter:[]),[A,D]=l.useState(Array.isArray(i?.wordTypeFilter)?i.wordTypeFilter:[]),H=l.useRef(a?.resetKey);l.useEffect(()=>{H.current!==a?.resetKey&&(H.current=a?.resetKey,g(f()),C(!1),x(!1),_([]),N([]),D([]),d(1))},[a?.resetKey]);const P=cl(),[T,E]=l.useState({cho:new Set,jung:new Set,jong:new Set,syllable:new Set}),[L,F]=l.useState(!1),[te,Z]=l.useState(null),V=1,j=Math.max(1,[h.cho,h.jung,h.jong].filter(Boolean).length);l.useEffect(()=>{u<j&&d(j)},[j,u]);const[M,$]=l.useState(e);l.useEffect(()=>{if(M!==e){if(!a?.resetOnMount){const R=uh(e),oe=typeof R?.contrastCount=="number"&&Number.isFinite(R.contrastCount)?R.contrastCount:1;d(Math.min(5,Math.max(1,oe))),g(R?.composition??f()),C(R?.excludeNoImage??!0),x(R?.sameStructureOnly??!0),m(R?.phonemeView==="pron"?"pron":"char"),_(Array.isArray(R?.gradeFilter)?R.gradeFilter:[]),N(Array.isArray(R?.posFilter)?R.posFilter:[]),D(Array.isArray(R?.wordTypeFilter)?R.wordTypeFilter:[])}$(e)}},[e,M,a?.resetOnMount]),l.useEffect(()=>{if(!a?.resetOnMount&&M===e)try{localStorage.setItem(dh(e),JSON.stringify({contrastCount:u,composition:h,excludeNoImage:v,sameStructureOnly:w,phonemeView:p,gradeFilter:S,posFilter:k,wordTypeFilter:A}))}catch{}},[a?.resetOnMount,e,M,u,h,v,w,p,S,k,A]);const[W,q]=l.useState(0);ur("wordpool:update",()=>q(R=>R+1));const X=l.useRef(n.language);l.useEffect(()=>{X.current!==n.language&&(X.current=n.language,q(R=>R+1))},[n.language]),l.useEffect(()=>{if(!t.choseong)return;let R=!1;return k4({difficulty:b,excludeNoImage:v}).then(oe=>{R||(E(oe),oe.cho.size+oe.jung.size+oe.jong.size>0&&F(!0))}).catch(()=>{R||E({cho:new Set,jung:new Set,jong:new Set,syllable:new Set})}),()=>{R=!0}},[t.choseong,b,v,W]),l.useEffect(()=>{let R=!1;const oe=h,ae=oe.cho?ba(oe.cho):null,ve=oe.jung?ba(oe.jung):null,De=oe.jong===ra,ze=De?null:oe.jong?ba(oe.jong):null,Re=oe.syllable!=null?dn(oe.syllable):null,Me=!!(ae||ve||ze||De||Re);return w4({difficulty:t.difficulty?b:null,contrastCount:t.difficulty?u:1,composition:t.choseong&&Me?{cho:ae,jung:ve,jong:ze,jongNone:De,syllable:Re}:null,excludeNoImage:v,sameStructureOnly:w,phonemeView:p==="pron"?"pron":"char",grade:S.length>0?S:null}).then(Ye=>{R||Z(Ye)}).catch(()=>{R||Z(null)}),()=>{R=!0}},[t.choseong,t.difficulty,b,u,h,p,v,w,W,S]),l.useEffect(()=>{L&&g(R=>{const oe={...R};let ae=!1;return["cho","jung","jong"].forEach(ve=>{const De=R[ve];!De||De===ra||ba(De).some(ze=>T[ve].has(ze))||(oe[ve]=null,ae=!0)}),R.syllable!=null&&t.fixedSyllable==null&&(R.syllable>=na?[...T.syllable].some(ve=>ve>=na)||(oe.syllable=null,ae=!0):(!T.syllable.has(R.syllable)||R.syllable<V)&&(oe.syllable=null,ae=!0)),ae?oe:R})},[T,L,V,t.fixedSyllable]);const O=l.useMemo(()=>{const R=oe=>{const ae=new Set;for(const ve of lh[oe])T[oe].has(ve)&&ae.add(ve);return ae};return{cho:R("cho"),jung:R("jung"),jong:R("jong")}},[T]),Y=l.useMemo(()=>({exact:new Set(ih.filter(R=>T.syllable.has(R))),min:[...T.syllable].some(R=>R>=na)}),[T]),z=l.useMemo(()=>({diffPhonemeCount:r("training.contrast.diffPhonemeCount",{defaultValue:"\uB2E4\uB978 \uC74C\uC18C\uC758 \uCD1D \uAC2F\uC218"}),composition:r("wordPairs.composition","\uC815\uB2F5 \uB2E8\uC5B4 \uAD6C\uC131"),syllableCount:r("wordPairs.syllableCount","\uC74C\uC808 \uC218"),onset:r("wordPairs.onset","\uCD08\uC131"),vowel:r("wordPairs.vowel","\uBAA8\uC74C"),coda:r("wordPairs.coda","\uC885\uC131"),phonemeGroup:r("training.filter.phonemeGroup",{defaultValue:"\uD6C8\uB828 \uC74C\uC808"}),trainOnset:r("training.filter.trainOnset",{defaultValue:"\uCD08\uC131"}),trainVowel:r("training.filter.trainVowel",{defaultValue:"\uBAA8\uC74C"}),trainCoda:r("training.filter.trainCoda",{defaultValue:"\uC885\uC131"}),random:r("training.filter.random","\uBB34\uC791\uC704"),exclude:r("wordSearch.filter.exclude","\uC81C\uC678"),selectLabel:r("training.filter.selectSection",{defaultValue:"\uC120\uD0DD"}),none:r("common.none","\uC5C6\uC74C"),noImage:r("wordSearch.filter.excludeNoImage","\uC774\uBBF8\uC9C0 \uC5C6\uC74C"),excludeImage:r("training.filter.excludeImage",{defaultValue:"\uC774\uBBF8\uC9C0 \uC788\uB294 \uB2E8\uC5B4\uB9CC"}),sameStructure:r("training.filter.sameStructure",{defaultValue:"\uC74C\uC18C \uAD6C\uC870 \uAC19\uC740 \uB2E8\uC5B4\uB9CC"}),noLimit:r("training.filter.noLimit",{defaultValue:"\uBB34\uAD00"}),codaExclude:r("training.filter.codaExclude",{defaultValue:"\uC81C\uC678"}),gradeLabel:r("training.filter.gradeLabel",{defaultValue:"\uB09C\uC774\uB3C4 \uB4F1\uAE09"})}),[r]),re=l.useMemo(()=>({[z.trainOnset]:"cho",[z.trainVowel]:"jung",[z.trainCoda]:"jong"}),[z]),Q=l.useCallback((R,oe)=>({title:oe,items:R}),[]),ne=l.useMemo(()=>[r("training.filter.excludeImageInfo",{defaultValue:"\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."}),r("training.filter.sameStructureInfo",{defaultValue:"\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."})],[r]),me=l.useMemo(()=>{const R=[];if(t.choseong){const oe={value:ra,displayLabel:z.codaExclude},ae=t.fixedNoCoda===!0,ve=(De,ze)=>{const Re=ae&&De==="jong",Me={label:ze,groupLabel:z.phonemeGroup,allOption:!t.requireSyllable,allLabel:z.noLimit,allOptionDisabled:Re};if(p==="pron"){const Ne=gl[De].map(Ve=>Ve.map(({v:Fe,tooltip:be})=>{const Ke=ba(Fe),We=Re||!Ke.some(Le=>T[De].has(Le));return Ke.length>1?{value:Fe,labels:Ke,tooltip:be,disabled:We}:{value:Fe,tooltip:be,disabled:We}}));return De==="jong"&&!t.requireCoda&&Ne.unshift([oe]),{...Me,groups:Ne}}const Ye=lh[De].map(Ne=>!Re&&O[De].has(Ne)?Ne:{value:Ne,disabled:!0});return{...Me,items:De==="jong"&&!t.requireCoda?[oe,...Ye]:Ye}};R.push(ve("cho",z.trainOnset)),R.push(ve("jung",z.trainVowel)),R.push(ve("jong",z.trainCoda))}if(R.push({...dl(r,P,{labelInfo:Q([r("wordPairs.filter.difficultyInfo",{defaultValue:"\uAD6D\uB9BD\uAD6D\uC5B4\uC6D0\uC758 \uAE30\uCD08 \uC5B4\uD718 \uB4F1\uAE09\uC774 \uACB0\uACFC\uC5D0 \uBC18\uC601\uB429\uB2C8\uB2E4."})])}),label:z.gradeLabel}),t.partOfSpeech&&R.push(ul(P)),t.wordType&&R.push(pl(P)),t.choseong||t.fixedSyllable!=null){const oe=t.fixedSyllable;R.push({label:z.syllableCount,items:[...ih.map(ae=>({value:ml(ae),displayLabel:r("wordPairs.syllableN",{n:ae,defaultValue:"{{n}}\uC74C\uC808"}),disabled:oe!=null?ae!==oe:!Y.exact.has(ae)||ae<V})),{value:ml(na),displayLabel:r("wordPairs.syllableNPlus",{n:na,defaultValue:"{{n}}\uC74C\uC808 \uC774\uC0C1"}),disabled:oe!=null?na!==oe:!Y.min}],allOption:!0,allOptionDisabled:oe!=null})}return t.choseong?R.push({label:z.exclude,displayLabel:z.selectLabel,multiple:!0,items:[z.excludeImage,z.sameStructure],labelInfo:Q(ne)}):R.push({label:z.exclude,displayLabel:z.selectLabel,multiple:!0,items:[z.excludeImage],labelInfo:Q([ne[0]])}),R},[t.choseong,t.partOfSpeech,t.wordType,t.requireSyllable,t.fixedSyllable,t.fixedNoCoda,t.requireCoda,V,O,T,p,Y,z,r,Q,ne,P]),ce={...t.difficulty?{[z.diffPhonemeCount]:String(u)}:{},...(t.choseong||t.fixedSyllable!=null)&&h.syllable!=null?{[z.syllableCount]:ml(h.syllable)}:{},...t.choseong&&h.cho?{[z.trainOnset]:h.cho}:{},...t.choseong&&h.jung?{[z.trainVowel]:h.jung}:{},...t.choseong&&h.jong?{[z.trainCoda]:h.jong}:{},[z.exclude]:[...v?[z.excludeImage]:[],...w?[z.sameStructure]:[]],[z.gradeLabel]:S.map(R=>r("wordSearch.filter.grade",{n:Number(R),defaultValue:"{{n}}\uB4F1\uAE09"})),...t.partOfSpeech?{[P.partOfSpeech]:k}:{},...t.wordType?{[P.wordType]:A}:{}},I=l.useCallback((R,oe)=>{if(oe===z.diffPhonemeCount){const ae=Number(R);ae>=1&&d(ae)}else if(oe===z.exclude)R===z.excludeImage?C(ae=>!ae):R===z.sameStructure&&x(ae=>!ae);else if(oe===z.syllableCount)g(ae=>{if(!R||R===Dt)return{...ae,syllable:null};const ve=s5(R);return{...ae,syllable:ae.syllable===ve?null:ve}});else if(oe===z.gradeLabel){if(!R||R===Dt){_([]);return}const ae=R.replace(/\D/g,"");_(ve=>ve.includes(ae)?ve.filter(De=>De!==ae):[...ve,ae])}else if(oe===P.partOfSpeech){if(!R||R===Dt){N([]);return}N(ae=>ae.includes(R)?ae.filter(ve=>ve!==R):[...ae,R])}else if(oe===P.wordType){if(!R||R===Dt){D([]);return}D(ae=>ae.includes(R)?ae.filter(ve=>ve!==R):[...ae,R])}else{const ae=re[oe];if(!ae)return;g(ve=>t.requireSyllable?R&&R!==Dt?{...ve,[ae]:R}:ve:!R||R===Dt||ve[ae]===R?{...ve,[ae]:null}:{...ve,[ae]:R})}},[z,re,P,t.requireSyllable]),ee=l.useCallback(R=>!t.partOfSpeech&&!t.wordType?!0:a5(R,{...t.partOfSpeech?{[P.partOfSpeech]:k}:{},...t.wordType?{[P.wordType]:A}:{}},P),[t.partOfSpeech,t.wordType,k,A,P]),pe=l.useCallback(R=>{R!==p&&(R!=="direct"&&p!=="direct"&&g(oe=>yl(oe,R,y.current)),m(R))},[p]),ke=l.useCallback(()=>({composition:h,contrastCount:u,excludeNoImage:v,sameStructureOnly:w,phonemeView:p,gradeFilter:S}),[h,u,v,w,p,S]),Ce=l.useCallback(R=>{g(R.composition),d(R.contrastCount),C(R.excludeNoImage),x(R.sameStructureOnly??!0),m(R.phonemeView),_(Array.isArray(R.gradeFilter)?R.gradeFilter:[])},[]);return{difficulty:b,contrastCount:u,composition:h,choseong:h.cho,excludeNoImage:v,sameStructureOnly:w,gradeFilter:S,posFilter:k,wordTypeFilter:A,matchesWordAttributes:ee,poolVersion:W,filterSections:me,filterSelected:ce,handleFilterSelect:I,phonemeView:p,setPhonemeView:pe,phonemeGroupLabel:z.phonemeGroup,wordCount:te,getFilterSnapshot:ke,restoreFilterSnapshot:Ce}}function u5(e){const t=c=>c?ba(c):null,a=t(e.cho),r=t(e.jung),n=e.jong===ra,i=n?null:t(e.jong),s=e.syllable!=null?dn(e.syllable):null;return!a&&!r&&!i&&!n&&!s?null:{cho:a,jung:r,jong:i,jongNone:n,syllable:s}}function hh(e,t,a,r,n,i,s=!0,c="char",u=[]){const[d,p]=l.useState({}),[m,h]=l.useState(!1),{cho:g=null,jung:f=null,jong:b=null,syllable:y=null}=r??{},v=u.length>0?u.slice().sort().join(","):"";return l.useEffect(()=>{i>0&&_4(n).catch(()=>{})},[i,n]),l.useEffect(()=>{let C=!1;return h(!0),(async()=>{const w=u5({cho:g,jung:f,jong:b,syllable:y}),x=`${g??""}_${f??""}_${b??""}_${y??""}_${v}`,S={};await Promise.all(e.map(async _=>{const k=fo[_.key];try{const N=await Np(_.key,{difficulty:k.difficulty?t:null,contrastCount:k.difficulty?a:1,composition:k.choseong?w:null,count:5,excludeNoImage:n,sameStructureOnly:s,phonemeView:c,grade:u.length>0?u:null});N&&N.length>0?S[_.key]={id:`wt-${_.key}-${t}-${x}-${Date.now()}`,name:_.label,training_type:_.key,category_main_code:"WORD",iconColor:_.color,subTitle:_.subTitle,items:N,itemCount:N.length}:S[_.key]={id:`wt-${_.key}-empty`,name:_.label,training_type:_.key,category_main_code:"WORD",iconColor:_.color,subTitle:_.subTitle,items:[],itemCount:0,__empty:!0}}catch{S[_.key]=null}})),C||(p(S),h(!1))})(),()=>{C=!0}},[t,a,g,f,b,y,n,s,c,i,v]),{perTypeData:d,generating:m}}function p5(e){let t=2166136261;for(let a=0;a<e.length;a++)t^=e.charCodeAt(a),t=Math.imul(t,16777619);return t>>>0}function h5(e){let t=e>>>0;return()=>{t|=0,t=t+1831565813|0;let a=Math.imul(t^t>>>15,1|t);return a=a+Math.imul(a^a>>>7,61|a)^a,((a^a>>>14)>>>0)/4294967296}}const pn=Qt;function xl(e,t){const a=t?h5(p5(t)):Math.random;return{LISTEN_IN_NOISE:pn(Ra,Math.max(0,e.LISTEN_IN_NOISE||0),a),SHORT_STORY:pn($a,Math.max(0,e.SHORT_STORY||0),a),LONG_STORY:pn(Ia,Math.max(0,e.LONG_STORY||0),a),ORDERING_SENTENCE:pn(za,Math.max(0,e.ORDERING_SENTENCE||0),a)}}function mh(e){return e?!!(e.LISTEN_IN_NOISE?.length||e.SHORT_STORY?.length||e.LONG_STORY?.length||e.ORDERING_SENTENCE?.length):!1}const m5={LISTEN_IN_NOISE:3,SHORT_STORY:2,LONG_STORY:1,ORDERING_SENTENCE:2};function bh(e=!1,t=m5,a){const r=ka(Date.now()),n=ka(Date.now()-864e5),i=`${a??""}|${r}`,s=`${a??""}|${n}`;return Ra.length>0||$a.length>0||Ia.length>0||za.length>0?{today:xl(t,i),yesterday:xl(t,s)}:{today:xl(t,i),yesterday:null}}function gh(e){const t=l.useRef({LISTEN_IN_NOISE:[],SHORT_STORY:[],LONG_STORY:[],ORDERING_SENTENCE:[]}),a=l.useRef(null),[r,n]=l.useState(!1),[i,s]=l.useState(!1),[c,u]=l.useState(0),[d,p]=l.useState(!1);l.useEffect(()=>{let h=!1,g,f=0;const b=40,y=()=>{g!==void 0&&(clearInterval(g),g=void 0)};let v=!1;try{const x=new URLSearchParams(window.location.search),S=x.get("forceRefresh")||x.get("force");v=S==="1"||S==="true"}catch{}const C=x=>{t.current=x.today,a.current=x.yesterday,n(!0),p(!0),u(S=>S+1),h=!0,y()},w=async()=>{if(h)return;if(!v){const S=bh(!1,void 0,e);if(mh(S.today)){C(S);return}}try{await vs(3e3)}catch{}if(h)return;const x=bh(v,void 0,e);if(mh(x.today)){C(x);return}++f>=b&&(n(!0),p(!1),h=!0,y())};return w(),g=setInterval(w,250),()=>{h=!0,y()}},[e]);const m=l.useCallback(h=>{const g=i?a.current:t.current,f=i?t.current:a.current;return g?.[h]?.length?g[h]:f?.[h]?.length?f[h]:void 0},[i,c]);return{loaded:r,hasData:d,showYesterday:i,setShowYesterday:s,getTrainingPerType:m}}const wo=[];let hn=!1;function fh(e){if(e.key!=="Escape"||e.defaultPrevented)return;const t=wo[wo.length-1];t&&(e.stopPropagation(),t())}function Cl(e){return wo.push(e),!hn&&typeof document<"u"&&(document.addEventListener("keydown",fh),hn=!0),()=>{const t=wo.lastIndexOf(e);t>=0&&wo.splice(t,1),wo.length===0&&hn&&typeof document<"u"&&(document.removeEventListener("keydown",fh),hn=!1)}}function vh(e,t=!0){const a=el(e);l.useEffect(()=>{if(t)return Cl(()=>{a.current?.()})},[t,a])}const mn=(e,t)=>`${e}:${t??1}`,_l=new Map;function yh(e,t){const[a,r]=l.useState(0),n=e.map(i=>mn(i.word,i.homonum)).join("|");return l.useEffect(()=>{const i=(n?n.split("|"):[]).filter(u=>!_l.has(u));if(i.length===0)return;let s=!1;const c=Array.from(new Set(i.map(u=>u.slice(0,u.lastIndexOf(":")))));return t(c).then(u=>{if(!(s||u.length===0)){for(const d of u)d.Meaning&&_l.set(mn(d.Word,d.Homonum??void 0),d.Meaning);r(d=>d+1)}}),()=>{s=!0}},[n,t]),l.useMemo(()=>{const i=n?n.split("|"):[],s=new Map;for(const c of i){const u=_l.get(c);u!=null&&s.set(c,u)}return s},[n,a])}function ko(){const[e,t]=l.useState(null),a=l.useCallback(i=>t(i.getBoundingClientRect()),[]),r=l.useCallback(()=>t(null),[]),n=l.useCallback(i=>{const s=i.getBoundingClientRect();t(c=>c?null:s)},[]);return{anchorRect:e,isOpen:e!=null,openAt:a,close:r,toggleAt:n}}function xh(e){const[t,a]=l.useState(null),[r,n]=l.useState(null),i=l.useRef(null);l.useEffect(()=>()=>{i.current&&clearTimeout(i.current)},[]);const s=l.useCallback((u,d)=>{i.current&&clearTimeout(i.current),i.current=setTimeout(()=>{a(u),n(d)},e)},[e]),c=l.useCallback(()=>{i.current&&clearTimeout(i.current),a(null),n(null)},[]);return{payload:t,anchorRect:r,openAfterDelay:s,close:c}}function Ch(e,t,a){const r=Number.isFinite(t)&&t>=1?Math.floor(t):1,n=Math.max(1,Math.ceil(e.length/r)),i=Number.isFinite(a)?Math.min(Math.max(1,Math.floor(a)),n):1;return{pageItems:l.useMemo(()=>e.slice((i-1)*r,i*r),[e,i,r]),totalPages:n,curPage:i}}function bn(e="warning"){const[t,a]=l.useState(""),[r,n]=l.useState(e),[i,s]=l.useState(0),c=l.useCallback((m,h)=>{n(h),a(m),s(g=>g+1)},[]),u=l.useCallback(m=>c(m,"warning"),[c]),d=l.useCallback(m=>c(m,"normal"),[c]),p=l.useCallback(()=>a(""),[]);return{toastMessage:t,toastType:r,toastKey:i,showToast:c,showWarning:u,showNormal:d,clearToast:p}}const pr={blue:"#60A5FA",green:"#4ADE80",amber:"#FBBF24",purple:"#A78BFA",pink:"#F472B6"},hr=pr.blue,gn=pr.green,mr=pr.amber,fn=pr.purple,b5=pr.pink,g5=[{key:"discrimination",label:"\uBCC0\uBCC4\uD6C8\uB828",disc:"\uB450 \uC18C\uB9AC\uAC00 \uAC19\uC740\uC9C0 \uB2E4\uB978\uC9C0, \uB610\uB294 \uD2B9\uC815 \uC18C\uB9AC\uB97C \uAD6C\uBCC4\uD558\uB294 \uD6C8\uB828\uC785\uB2C8\uB2E4.",icon:"ear",types:[{key:"SAME_SOUND_PICK",label:"\uAC19\uC740 \uC18C\uB9AC \uACE0\uB974\uAE30",icon:"volume-2",color:hr,subTitle:"\uB4E4\uC740 \uC18C\uB9AC\uC640 \uAC19\uC740 \uB2E8\uC5B4 \uCE74\uB4DC\uB97C \uACE0\uB974\uC138\uC694."},{key:"SAME_OR_DIFF",label:"\uAC19\uC740\uC9C0 \uB2E4\uB978\uC9C0 \uB9DE\uD788\uAE30",icon:"diff",color:hr,subTitle:"\uB450 \uC18C\uB9AC\uAC00 \uAC19\uC740\uC9C0, \uB2E4\uB978\uC9C0 \uAD6C\uBD84\uD558\uC138\uC694."},{key:"HEAR_AND_PICK_SAME",label:"\uC77C\uCE58\uD558\uB294 \uB2E8\uC5B4 \uB9DE\uD788\uAE30",icon:"headphones",color:hr,subTitle:"\uB4E4\uC740 \uC18C\uB9AC\uC758 \uB2E8\uC5B4 \uCE74\uB4DC\uB97C \uACE0\uB974\uC138\uC694."},{key:"HEAR_AND_PICK_INCLUDED",label:"\uD55C \uC74C\uC808 \uD3EC\uD568 \uB2E8\uC5B4 \uB9DE\uD788\uAE30",icon:"scan-search",color:hr,subTitle:"\uB4E4\uC740 \uC74C\uC808\uC774 \uD3EC\uD568\uB41C \uB2E8\uC5B4 \uCE74\uB4DC\uB97C \uACE0\uB974\uC138\uC694."},{key:"STARTS_WITH_SAME_SOUND",label:"\uCCAB \uC74C\uC808\uC774 \uAC19\uC740 \uB2E8\uC5B4 \uB9DE\uD788\uAE30",icon:"play-circle",color:hr,subTitle:"\uB4E4\uC740 \uB2E8\uC5B4\uC640 \uAC19\uC740 \uC18C\uB9AC\uB85C \uC2DC\uC791\uD558\uB294 \uB2E8\uC5B4\uB97C \uACE0\uB974\uC138\uC694."}]},{key:"synthesis",label:"\uD569\uC131\uD6C8\uB828",disc:"\uB450 \uAC1C \uC774\uC0C1\uC758 \uC74C\uC808\uC774\uB098 \uC74C\uC18C\uB97C \uD569\uCCD0 \uB2E8\uC5B4\uB97C \uB9CC\uB4DC\uB294 \uD6C8\uB828\uC785\uB2C8\uB2E4.",icon:"git-merge",types:[{key:"MERGE_2_SYLLABLES",label:"\uC74C\uC808 2\uAC1C \uD569\uCE58\uAE30",icon:"link-2",color:gn,subTitle:"\uB450 \uC74C\uC808\uC744 \uD569\uCE58\uBA74 \uC5B4\uB5A4 \uB2E8\uC5B4\uAC00 \uB420\uAE4C\uC694?"},{key:"MERGE_3_SYLLABLES",label:"\uC74C\uC808 3\uAC1C \uD569\uCE58\uAE30",icon:"git-merge",color:gn,subTitle:"\uC138 \uC74C\uC808\uC744 \uD569\uCE58\uBA74 \uC5B4\uB5A4 \uB2E8\uC5B4\uAC00 \uB420\uAE4C\uC694?"},{key:"MERGE_2_PHONEMES",label:"\uC74C\uC18C 2\uAC1C \uD569\uCE58\uAE30",icon:"combine",color:gn,subTitle:"\uB450 \uC74C\uC18C\uB97C \uD569\uCE58\uBA74 \uC5B4\uB5A4 \uC18C\uB9AC\uAC00 \uB420\uAE4C\uC694?"},{key:"MERGE_3_PHONEMES",label:"\uC74C\uC18C 3\uAC1C \uD569\uCE58\uAE30",icon:"braces",color:gn,subTitle:"\uC138 \uC74C\uC18C\uB97C \uD569\uCE58\uBA74 \uC5B4\uB5A4 \uC18C\uB9AC\uAC00 \uB420\uAE4C\uC694?"}]},{key:"deletion",label:"\uD0C8\uB77D\uD6C8\uB828",disc:"\uB2E8\uC5B4\uC5D0\uC11C \uC74C\uC808\uC774\uB098 \uC74C\uC18C\uB97C \uC81C\uAC70\uD588\uC744 \uB54C \uB0A8\uB294 \uC18C\uB9AC\uB97C \uC778\uC2DD\uD558\uB294 \uD6C8\uB828\uC785\uB2C8\uB2E4.",icon:"scissors",types:[{key:"DROP_1_FROM_2SYLL",label:"2\uC74C\uC808\uC5D0\uC11C 1\uC74C\uC808 \uD0C8\uB77D",icon:"scissors",color:mr,subTitle:"2\uC74C\uC808 \uB2E8\uC5B4\uC5D0\uC11C \uD55C \uC74C\uC808\uC744 \uBE7C\uBA74 \uC5B4\uB5A4 \uC18C\uB9AC\uAC00 \uB420\uAE4C\uC694?"},{key:"DROP_1_FROM_3SYLL",label:"3\uC74C\uC808\uC5D0\uC11C 1\uC74C\uC808 \uD0C8\uB77D",icon:"minus-circle",color:mr,subTitle:"3\uC74C\uC808 \uB2E8\uC5B4\uC5D0\uC11C \uD55C \uC74C\uC808\uC744 \uBE7C\uBA74 \uC5B4\uB5A4 \uC18C\uB9AC\uAC00 \uB420\uAE4C\uC694?"},{key:"DROP_PART_FROM_COMPOUND",label:"\uD569\uC131\uC5B4\uC5D0\uC11C \uBD80\uBD84\uD0C8\uB77D",icon:"unlink",color:mr,subTitle:"\uD569\uC131\uC5B4\uC758 \uC77C\uBD80\uB97C \uBE7C\uBA74 \uC5B4\uB5A4 \uB2E8\uC5B4\uAC00 \uB420\uAE4C\uC694?"},{key:"DROP_FINAL_CONSONANT_FROM_1SYLL",label:"1\uC74C\uC808\uC5D0\uC11C \uBC1B\uCE68 \uD0C8\uB77D",icon:"eraser",color:mr,subTitle:"\uBC1B\uCE68\uC744 \uBE7C\uBA74 \uC5B4\uB5A4 \uC18C\uB9AC\uAC00 \uB420\uAE4C\uC694?"},{key:"REMOVE_CONSONANT_AND_IDENTIFY_PHONEME",label:"1\uC74C\uC808\uC5D0\uC11C \uC790\uC74C \uD0C8\uB77D",icon:"audio-lines",color:mr,subTitle:"\uC790\uC74C\uC744 \uBE7C\uBA74 \uC5B4\uB5A4 \uC18C\uB9AC\uAC00 \uB0A8\uC744\uAE4C\uC694?"}]},{key:"substitution",label:"\uB300\uCE58\uD6C8\uB828",disc:"\uB2E8\uC5B4\uC758 \uC77C\uBD80 \uC74C\uC808\uC774\uB098 \uC74C\uC18C\uB97C \uBC14\uAFB8\uC5B4 \uC0C8\uB85C\uC6B4 \uC18C\uB9AC\uB97C \uB9CC\uB4DC\uB294 \uD6C8\uB828\uC785\uB2C8\uB2E4.",icon:"replace",types:[{key:"CHANGE_1_SYLL_IN_2SYLL",label:"2\uC74C\uC808\uC5D0\uC11C \uD55C \uC74C\uC808 \uBC14\uAFB8\uAE30",icon:"replace",color:fn,subTitle:"2\uC74C\uC808 \uB2E8\uC5B4\uC758 \uD55C \uC74C\uC808\uC744 \uBC14\uAFD4 \uC0C8 \uB2E8\uC5B4\uB97C \uB9CC\uB4DC\uC138\uC694."},{key:"CHANGE_1_SYLL_IN_3SYLL",label:"3\uC74C\uC808\uC5D0\uC11C \uD55C \uC74C\uC808 \uBC14\uAFB8\uAE30",icon:"shuffle",color:fn,subTitle:"3\uC74C\uC808 \uB2E8\uC5B4\uC758 \uD55C \uC74C\uC808\uC744 \uBC14\uAFD4 \uC0C8 \uB2E8\uC5B4\uB97C \uB9CC\uB4DC\uC138\uC694."},{key:"CHANGE_1_PHONEME_IN_1SYLL",label:"1\uC74C\uC808\uC5D0\uC11C \uD55C \uC74C\uC18C \uBC14\uAFB8\uAE30",icon:"arrow-right-left",color:fn,subTitle:"1\uC74C\uC808 \uB2E8\uC5B4\uC758 \uD55C \uC74C\uC18C\uB97C \uBC14\uAFD4 \uC0C8 \uC18C\uB9AC\uB97C \uB9CC\uB4DC\uC138\uC694."},{key:"CHANGE_1_PHONEME_IN_2SYLL",label:"2\uC74C\uC808\uC5D0\uC11C \uD55C \uC74C\uC18C \uBC14\uAFB8\uAE30",icon:"flip-horizontal",color:fn,subTitle:"2\uC74C\uC808 \uB2E8\uC5B4\uC758 \uD55C \uC74C\uC18C\uB97C \uBC14\uAFD4 \uC0C8 \uB2E8\uC5B4\uB97C \uB9CC\uB4DC\uC138\uC694."}]},{key:"attention",label:"\uCCAD\uAC01\uC801\uC8FC\uC758\uB825\uD6C8\uB828",disc:"\uC5EC\uB7EC \uC18C\uB9AC\uB97C \uB4E3\uACE0 \uC21C\uC11C\uB97C \uAE30\uC5B5\uD558\uB294 \uC8FC\uC758\uB825\uACFC \uB2E8\uAE30 \uAE30\uC5B5 \uD6C8\uB828\uC785\uB2C8\uB2E4.",icon:"list-ordered",types:[{key:"LISTEN_AND_REMEMBER_ORDER",label:"\uB4E3\uACE0 \uC21C\uC11C\uB300\uB85C \uAE30\uC5B5\uD558\uAE30",icon:"list-ordered",color:b5,subTitle:"\uC138 \uB2E8\uC5B4\uB97C \uB4E4\uC740 \uC21C\uC11C\uB300\uB85C \uCE74\uB4DC\uB97C \uC120\uD0DD\uD558\uC138\uC694."}]}];function _h(){const{t:e}=ge.useTranslation();return l.useMemo(()=>{const t=Object.fromEntries(Qw(e).map(r=>[r.key,r.label])),a={...t};return g5.flatMap(r=>r.types).forEach(r=>{a[r.key]=e(`trainingType.${r.key}.label`,{defaultValue:r.label})}),{sentence:t,all:a}},[e])}function ao({computeStyle:e,onScroll:t="close",onResize:a="close",ignoreOutsideClickSelector:r}){const[n,i]=l.useState(!1),[s,c]=l.useState({}),u=l.useRef(null),d=l.useRef(null),p=l.useCallback(()=>{u.current&&c(e(u.current.getBoundingClientRect()))},[e]);l.useEffect(()=>{if(!n)return;p();const g=v=>{const C=v.target;r&&C.closest?.(r)||u.current?.contains(C)||d.current?.contains(C)||i(!1)};document.addEventListener("mousedown",g);const f=v=>{d.current?.contains(v.target)||(t==="reposition"?p():t==="close"&&i(!1))};t!=="ignore"&&window.addEventListener("scroll",f,!0);const b=()=>{a==="reposition"?p():a==="close"&&i(!1)};a!=="ignore"&&window.addEventListener("resize",b);const y=v=>{v.key==="Escape"&&i(!1)};return document.addEventListener("keydown",y),()=>{document.removeEventListener("mousedown",g),t!=="ignore"&&window.removeEventListener("scroll",f,!0),a!=="ignore"&&window.removeEventListener("resize",b),document.removeEventListener("keydown",y)}},[n,p,t,a,r]);const m=l.useCallback(()=>i(g=>!g),[]),h=l.useCallback(()=>i(!1),[]);return{open:n,setOpen:i,toggle:m,close:h,style:s,triggerRef:u,menuRef:d}}function wl(e,{mode:t="playback",autoStart:a=!1,onPlaySpeaker:r,onComplete:n,playMs:i=1100,feedbackMs:s=1500}={}){const[c,u]=l.useState([]),[d,p]=l.useState(0),[m,h]=l.useState("idle"),[g,f]=l.useState(null),[b,y]=l.useState([]),[v,C]=l.useState(null),[w,x]=l.useState(0),S=l.useRef(0),_=l.useCallback(j=>{S.current=typeof j=="function"?j(S.current):j,x(S.current)},[]),k=l.useRef(r),N=l.useRef(n);l.useEffect(()=>{k.current=r,N.current=n},[r,n]);const A=l.useRef([]),D=()=>{A.current.forEach(clearTimeout),A.current=[]},H=(j,M)=>{A.current.push(setTimeout(M,j))};l.useEffect(()=>()=>D(),[]);const P=c[d]?.id??null,T=l.useCallback(()=>{D(),h("playing"),y([]),C(null),_(0);let j=0;e.forEach((M,$)=>{H(j,()=>{p($),f(M.id),k.current?.(M)}),H(j+1e3,()=>{f(null),y(W=>[...W,M.id])}),j+=1300}),H(j,()=>{h("done"),N.current?.({score:0,total:e.length})})},[e,_]),E=l.useCallback((j,M)=>{if(M>=j.length){h("done"),N.current?.({score:S.current,total:j.length});return}p(M),C(null),h("playing"),f(j[M].id),k.current?.(j[M]),H(i,()=>{f(null),h("waiting")})},[i]),L=l.useCallback(()=>{D();const j=He(e);u(j),_(0),y([]),E(j,0)},[e,E,_]),F=l.useCallback(()=>{t==="playback"?(u(e),T()):L()},[t,e,T,L]),te=l.useCallback(()=>{D(),h("idle"),f(null),y([]),C(null),p(0),_(0),u([])},[_]);l.useEffect(()=>{a?F():te()},[t,e.length,a]);const Z=l.useCallback(j=>{m!=="waiting"||t==="playback"||(C(j),j===c[d]?.id&&_(M=>M+1),t==="exam"?(h("playing"),H(400,()=>E(c,d+1))):(h("feedback"),H(s,()=>E(c,d+1))))},[m,t,c,d,E,s,_]),V=t==="playback"?e.length:c.length;return{bind:{activeSpeakerId:g,playedIds:b,selectedId:v,answerId:P,showFeedback:m==="feedback",clickable:m==="waiting",onSelectSpeaker:Z},index:d,total:V,score:w,phase:m,done:m==="done",start:F,reset:te}}var f5=Object.freeze({__proto__:null,CACHE_GROUPS:rl,CORE_VERSION:nn,DocumentTitleSuppressContext:al,EMPTY_COMPOSITION:un,MediaQueryOverrideContext:ln,NO_CODA:ra,SYLLABLE_MIN:na,VAP_PAGE_SIZE_OPTIONS:il,buildGradeSection:dl,buildPartOfSpeechSection:ul,buildPositionSection:rh,buildSelectSection:oh,buildSyllableSection:ah,buildWordTypeSection:pl,charToPronValue:fl,convertComposition:yl,fmtBytes:Yp,lsBytes:nl,meaningKey:mn,pronToCharValue:vl,syllableToFilter:dn,today:_o,toggleAttributeFilter:nh,useAnchoredMenu:ao,useCacheManagement:Up,useDailyTrainingSelection:gh,useDelayedHoverAnchor:xh,useDeviceManagement:th,useDocumentTitle:ol,useEscToClose:vh,useFontScale:sn,useHoverAnchor:ko,useMediaQuery:oa,usePagedList:Ch,usePasswordChange:qp,useRelativeDay:Gp,useSoundCompassExam:wl,useTablePaging:sl,useTableSort:ll,useToastState:bn,useTrainingTypeLabels:_h,useVisitAllPanel:eh,useVisitHistory:Xp,useVisitSchedule:Jp,useWindowEvent:ur,useWordAttributeFilterKeys:cl,useWordDataStats:Kp,useWordMeanings:yh,useWordTrainingDataGeneration:hh,useWordTrainingFilter:ph,valueToJamos:ba}),v5=".ihabdevteam-core-scope .promo-banner{align-items:center;border-radius:var(--radius-s);box-sizing:border-box;display:flex;gap:var(--spacing-m);justify-content:space-between;overflow:hidden;position:relative;text-align:left}.ihabdevteam-core-scope .promo-banner--medium{min-height:120px;padding:20px 24px}.ihabdevteam-core-scope .promo-banner--small{padding:14px 16px}.ihabdevteam-core-scope .promo-banner__title{color:inherit;color:var(--promo-banner-bg-title,inherit)}.ihabdevteam-core-scope .promo-banner__description{color:inherit;color:var(--promo-banner-bg-description,inherit)}.ihabdevteam-core-scope .promo-banner__text{display:flex;flex-direction:column;justify-content:center;min-width:0;position:relative;z-index:1}.ihabdevteam-core-scope .promo-banner__description{margin-left:2px;margin-top:1px}.ihabdevteam-core-scope .promo-banner>.button{flex-shrink:0;position:relative;z-index:1}";J(v5);function wh({title:e,description:t,actionLabel:a,onAction:r,bg:n,color:i,size:s="medium",actionVariant:c,titleColor:u,descriptionColor:d,className:p=""}){const m=n??i??"main",h=l.useRef(null),[g,f]=l.useState("main"),b=oa("(max-width: 767px)");l.useLayoutEffect(()=>{const C=h.current;C&&(u!==void 0&&C.style.setProperty("--promo-banner-bg-title",u),d!==void 0&&C.style.setProperty("--promo-banner-bg-description",d))},[u,d]),l.useLayoutEffect(()=>{const C=h.current;if(!C)return;const w=ks(C);f(w?.actionVariant??"main")},[m]);const y=xe("promo-banner",`promo-banner--${s}`,p),v=Js[m];return o.jsxs("div",{ref:h,className:y,role:"note",children:[o.jsx(v,{}),o.jsxs("div",{className:"promo-banner__text",children:[o.jsx("span",{className:`promo-banner__title ${s==="small"?"body-2":"h2"}`,children:e}),t&&o.jsx("span",{className:"promo-banner__description body-3",children:t})]}),a&&r&&o.jsx(se,{size:40,variant:c??g,shape:"pill",useBorder:!0,onClick:r,ariaLabel:a,...b?{type:"dot",icon:"arrow-right"}:{rightIcon:"arrow-right",label:a,minWidth:140}})]})}var y5='.ihabdevteam-core-scope .top-banner{--top-banner-min-h:120px;display:flex;flex-direction:column;padding-bottom:var(--spacing-page);position:relative}.ihabdevteam-core-scope .top-banner__viewport{border-radius:var(--radius-m);min-height:var(--top-banner-min-h);overflow:hidden}.ihabdevteam-core-scope .top-banner__track{align-items:stretch;display:flex;min-height:var(--top-banner-min-h);transition:transform .4s ease}.ihabdevteam-core-scope .top-banner__slide{flex:0 0 100%;min-width:0}.ihabdevteam-core-scope .top-banner__slide>*{box-sizing:border-box;min-height:100%;width:100%}.ihabdevteam-core-scope .top-banner__dots{bottom:calc(var(--spacing-page) + 12px);display:flex;gap:6px;left:50%;position:absolute;transform:translateX(-50%)}.ihabdevteam-core-scope .top-banner__dot{background:var(--color-white-a30);border:none;border-radius:3px;cursor:pointer;height:6px;padding:0;position:relative;transition:width .25s ease,background-color .25s ease;width:6px}.ihabdevteam-core-scope .top-banner__dot:after{content:"";height:24px;left:50%;position:absolute;top:50%;transform:translate(-50%,-50%);width:calc(100% + 6px)}.ihabdevteam-core-scope .top-banner__dot--active{background:var(--color-white);width:18px}.ihabdevteam-core-scope .top-banner__dots--dark .top-banner__dot{background:var(--color-lightGray-a80)}.ihabdevteam-core-scope .top-banner__dots--dark .top-banner__dot--active{background:var(--color-main)}';J(y5);function kh({children:e,interval:t=5e3,dotTone:a,className:r="","aria-label":n}){const{t:i}=ge.useTranslation(),s=n??i("topBanner.ariaLabel","\uBC30\uB108"),c=l.Children.toArray(e),u=c.length,[d,p]=l.useState(0),[m,h]=l.useState(!1),g=u>0?d%u:0;return l.useEffect(()=>{if(u<2||t<=0||m)return;const f=window.setInterval(()=>p(b=>(b+1)%u),t);return()=>window.clearInterval(f)},[u,t,m]),u===0?null:o.jsxs("section",{className:xe("top-banner",r),"aria-label":s,"aria-roledescription":"carousel",onMouseEnter:()=>h(!0),onMouseLeave:()=>h(!1),onFocus:()=>h(!0),onBlur:()=>h(!1),children:[o.jsx("div",{className:"top-banner__viewport",children:o.jsx("div",{className:"top-banner__track",style:{transform:`translateX(-${g*100}%)`},children:c.map((f,b)=>o.jsx("div",{className:"top-banner__slide","aria-hidden":b!==g,...b!==g?{inert:!0}:{},children:f},b))})}),u>1&&o.jsx("div",{className:`top-banner__dots${(a?.[g]??"light")==="dark"?" top-banner__dots--dark":""}`,children:c.map((f,b)=>o.jsx("button",{type:"button",className:`top-banner__dot${b===g?" top-banner__dot--active":""}`,"aria-label":i("topBanner.dotAriaLabel",{count:u,index:b+1,defaultValue:`${u}\uAC1C \uC911 ${b+1}\uBC88\uC9F8 \uBC30\uB108`}),"aria-current":b===g,onClick:()=>p(b)},b))})]})}var x5=".ihabdevteam-core-scope .accordion-item{background:transparent;border-radius:var(--radius-m)}.ihabdevteam-core-scope .accordion-item__header{align-items:center;background:var(--color-deepWhite);border:1px solid var(--color-whiteLine);border-radius:var(--radius-m);box-sizing:border-box;cursor:pointer;display:flex;gap:var(--spacing-s);min-height:56px;outline:none;padding:0 20px;transition:background-color .2s ease,border-color .2s ease}.ihabdevteam-core-scope .accordion-item__header:hover{background:var(--color-deepWhite);border-color:var(--color-main)}.ihabdevteam-core-scope .accordion-item__header:focus-visible{outline:2px solid var(--color-main);outline-offset:2px}.ihabdevteam-core-scope .accordion-item__avatar{align-items:center;display:inline-flex;flex:none}.ihabdevteam-core-scope .accordion-item__title{flex:1;text-align:left}.ihabdevteam-core-scope .accordion-item__chevron{align-items:center;display:inline-flex;flex:none}.ihabdevteam-core-scope .accordion-item__chevron-icon{align-items:center;color:var(--color-lightGray);display:inline-flex}.ihabdevteam-core-scope .accordion-item__chevron-image{height:18px;opacity:.7;transition:transform .18s ease;width:18px}.ihabdevteam-core-scope .accordion-item.accordion-item--open{background:var(--color-main-a10);border-radius:var(--radius-m);overflow:hidden}.ihabdevteam-core-scope .accordion-item.accordion-item--open .accordion-item__header{background:var(--color-white);border:1px solid var(--color-main)}.ihabdevteam-core-scope .accordion-item.accordion-item--open .accordion-item__chevron-image{transform:rotate(180deg)}.ihabdevteam-core-scope .accordion-item__body p{margin:0}.ihabdevteam-core-scope .accordion-item__body{background:transparent;box-sizing:border-box;color:var(--color-darkGray);max-width:100%;overflow-wrap:break-word;padding:40px 32px;text-align:left;word-break:break-word}.ihabdevteam-core-scope .accordion-group--s48 .accordion-item__header{min-height:48px}.ihabdevteam-core-scope .accordion-group--s56 .accordion-item__header{min-height:56px}.ihabdevteam-core-scope .accordion-group--s72 .accordion-item__header{min-height:72px}.ihabdevteam-core-scope .accordion-group--s48 .accordion-item,.ihabdevteam-core-scope .accordion-group--s48 .accordion-item.accordion-item--open,.ihabdevteam-core-scope .accordion-group--s48 .accordion-item__header{border-radius:12px}.ihabdevteam-core-scope .accordion-group--s56 .accordion-item,.ihabdevteam-core-scope .accordion-group--s56 .accordion-item.accordion-item--open,.ihabdevteam-core-scope .accordion-group--s56 .accordion-item__header{border-radius:14px}.ihabdevteam-core-scope .accordion-group--s72 .accordion-item,.ihabdevteam-core-scope .accordion-group--s72 .accordion-item.accordion-item--open,.ihabdevteam-core-scope .accordion-group--s72 .accordion-item__header{border-radius:18px}.ihabdevteam-core-scope .accordion-group,.ihabdevteam-core-scope .accordion-group>.accordion-item{box-sizing:border-box;display:block;width:100%}.ihabdevteam-core-scope .accordion-group>.accordion-item+.accordion-item{margin-top:var(--spacing-s)}";J(x5);function C5({title:e,body:t,open:a=!1,onToggle:r,avatar:n,titleClassName:i="body-2",bodyClassName:s="body-2",className:c=""}){const{t:u}=ge.useTranslation();return o.jsxs("div",{className:`accordion-item ${a?"accordion-item--open":""} ${c}`.trim(),children:[o.jsxs("div",{className:"accordion-item__header",role:"button",tabIndex:0,"aria-expanded":a,"data-accordion-header":!0,onClick:r,onKeyDown:d=>{if(d.key==="Enter"||d.key===" ")d.preventDefault(),r?.();else if(d.key==="ArrowDown"||d.key==="ArrowUp"){d.preventDefault();const p=d.currentTarget.closest('[role="list"]');if(!p)return;const m=Array.from(p.querySelectorAll("[data-accordion-header]")),h=m.indexOf(d.currentTarget);(d.key==="ArrowDown"?m[h+1]:m[h-1])?.focus()}},children:[n&&o.jsx("div",{className:"accordion-item__avatar",children:n}),o.jsx("div",{className:`accordion-item__title ${i}`,children:e}),o.jsx("div",{className:"accordion-item__chevron",children:o.jsx(Ie,{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&&o.jsx("div",{className:`accordion-item__body ${s}`,children:typeof t=="string"?o.jsx("p",{children:t}):t})]})}function Sh({items:e=[],defaultOpenIndex:t=0,size:a=72,className:r="",bodyClassName:n}){const[i,s]=l.useState(t);return o.jsx("div",{className:`accordion-group accordion-group--s${a} ${r}`.trim(),role:"list",children:e.map((c,u)=>o.jsx(C5,{title:c.title,body:c.body,avatar:c.avatar,open:u===i,onToggle:()=>s(u===i?-1:u),bodyClassName:n},u))})}var _5=".ihabdevteam-core-scope .bottom-nav{align-items:flex-start;background:var(--color-deepWhite);border-top:1px solid var(--color-whiteLine);bottom:0;display:none;height:calc(72px + env(safe-area-inset-bottom));left:0;padding:8px calc(10px + env(safe-area-inset-right)) env(safe-area-inset-bottom) calc(10px + env(safe-area-inset-left));position:fixed;right:0;z-index:var(--z-nav)}.ihabdevteam-core-scope .bottom-nav__left{align-items:center;display:flex;flex-shrink:0}.ihabdevteam-core-scope .bottom-nav__divider{align-self:flex-start;background:var(--color-whiteLine);border-radius:1px;flex-shrink:0;height:24px;margin:14px 0 0;width:1px}.ihabdevteam-core-scope .bottom-nav__items{align-items:center;display:flex;flex:1;gap:10px;justify-content:center;overflow:hidden}.ihabdevteam-core-scope .bottom-nav__right{align-items:center;display:flex;flex-shrink:0}@media (max-width:767px){.ihabdevteam-core-scope .bottom-nav{display:flex}}@media (min-width:768px){.ihabdevteam-core-scope .bottom-nav{display:none}}.ihabdevteam-core-scope .bottom-nav-item{align-items:center;background:transparent!important;border:none!important;border-radius:10px!important;color:var(--color-lightGray);cursor:pointer;display:flex!important;flex-direction:column;height:52px!important;justify-content:center;padding:0!important;transition:background .16s ease,color .16s ease!important;width:52px!important}.ihabdevteam-core-scope .bottom-nav-item:hover:not(.is-selected){background:var(--color-darkWhite)!important}.ihabdevteam-core-scope .bottom-nav-item.is-selected{animation:bottom-nav-active-bg .36s cubic-bezier(.4,0,.2,1) forwards;background-color:var(--color-sub)!important;box-shadow:0 6px 12px rgba(12,24,36,.06);color:#fff!important}.ihabdevteam-core-scope .bottom-nav-item.is-selected *{color:#fff!important}.ihabdevteam-core-scope .bottom-nav-item:focus-visible{outline:2px solid var(--focus-ring);outline-offset:2px}.ihabdevteam-core-scope .bottom-nav-item:disabled,.ihabdevteam-core-scope .bottom-nav-item[disabled]{opacity:.6;pointer-events:none}@keyframes bottom-nav-active-bg{0%{background-color:var(--color-sub)}to{background-color:var(--color-main)}}";J(_5);var w5=".ihabdevteam-core-scope .badge{align-items:center;background:var(--badge-color,var(--color-main));border-radius:999px;box-shadow:none;box-shadow:var(--badge-shadow,none);color:#fff;color:var(--badge-on-color,#fff);display:inline-flex;gap:6px;justify-content:center;line-height:1;vertical-align:middle;white-space:nowrap}.ihabdevteam-core-scope .badge--small{font-size:12px;height:20px;padding:0 10px}.ihabdevteam-core-scope .badge--medium{font-size:14px;height:28px;padding:0 14px}.ihabdevteam-core-scope .badge--large{font-size:16px;height:32px;padding:0 18px}.ihabdevteam-core-scope .badge__icon{align-items:center;display:inline-flex;flex-shrink:0}.ihabdevteam-core-scope .badge--default{--badge-color:var(--color-lightGray);--badge-on-color:#fff}.ihabdevteam-core-scope .badge--main{--badge-color:var(--color-main);--badge-on-color:#fff}.ihabdevteam-core-scope .badge--sub{--badge-color:var(--color-sub);--badge-on-color:#fff}.ihabdevteam-core-scope .badge--danger{--badge-color:var(--color-error);--badge-on-color:#fff}.ihabdevteam-core-scope .badge--disabled{--badge-color:var(--color-disabled);--badge-on-color:#fff}.ihabdevteam-core-scope .badge--like{--badge-color:var(--color-like);--badge-on-color:#fff}.ihabdevteam-core-scope .badge--success{--badge-color:var(--color-success);--badge-on-color:#fff}.ihabdevteam-core-scope .badge--warning{--badge-color:var(--color-warn);--badge-on-color:#fff}.ihabdevteam-core-scope .badge--critical{--badge-color:#7c3aed;--badge-on-color:#fff}.ihabdevteam-core-scope .badge--outline{background:transparent;border:1px solid var(--badge-color);box-shadow:none;color:var(--badge-color)}.ihabdevteam-core-scope .badge--soft{background:color-mix(in srgb,var(--badge-color) 10%,transparent);box-shadow:none;color:var(--badge-color)}.ihabdevteam-core-scope .circle-badge{align-items:center;border:2px solid var(--color-pureWhite);border-radius:50%;box-sizing:border-box;display:inline-flex;flex-shrink:0;font-weight:700;justify-content:center;line-height:1;pointer-events:none;position:absolute;transition:background .12s,transform .12s;-webkit-user-select:none;-moz-user-select:none;user-select:none;z-index:1}@keyframes circle-badge-pop{0%{opacity:0;transform:scale(.3)}60%{opacity:1;transform:scale(1.12)}to{opacity:1;transform:scale(1)}}.ihabdevteam-core-scope .circle-badge--animate{animation:circle-badge-pop .24s cubic-bezier(.34,1.56,.64,1)}@media (prefers-reduced-motion:reduce){.ihabdevteam-core-scope .circle-badge--animate{animation:none}}.ihabdevteam-core-scope .circle-badge--clickable{cursor:pointer;pointer-events:auto}.ihabdevteam-core-scope .circle-badge--clickable:hover{transform:scale(1.12)}.ihabdevteam-core-scope .circle-badge--top-right{right:-6px;top:-6px}.ihabdevteam-core-scope .circle-badge--top-left{left:-6px;top:-6px}.ihabdevteam-core-scope .circle-badge--inline{border:none;position:static}.ihabdevteam-core-scope .circle-badge--24{border-width:1px;font-size:11px;height:24px;width:24px}.ihabdevteam-core-scope .circle-badge--32{border-width:2px;font-size:14px;height:32px;width:32px}.ihabdevteam-core-scope .circle-badge--40{border-width:2px;font-size:16px;height:40px;width:40px}.ihabdevteam-core-scope .circle-badge--check,.ihabdevteam-core-scope .circle-badge--number{background:var(--color-main);color:#fff}.ihabdevteam-core-scope .circle-badge--remove{background:var(--color-error);color:#fff}.ihabdevteam-core-scope .circle-badge--minus{background:var(--color-lightGray);color:#fff}.ihabdevteam-core-scope .circle-badge--24 svg{height:11px;width:11px}.ihabdevteam-core-scope .circle-badge--32 svg{height:15px;width:15px}.ihabdevteam-core-scope .circle-badge--40 svg{height:19px;width:19px}";J(w5);function k5(){return o.jsx("svg",{viewBox:"0 0 12 12",fill:"none",stroke:"currentColor",strokeWidth:2.2,strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:o.jsx("polyline",{points:"2,6 5,9 10,3"})})}function S5(){return o.jsxs("svg",{viewBox:"0 0 12 12",fill:"none",stroke:"currentColor",strokeWidth:2.2,strokeLinecap:"round","aria-hidden":"true",children:[o.jsx("line",{x1:"3",y1:"3",x2:"9",y2:"9"}),o.jsx("line",{x1:"9",y1:"3",x2:"3",y2:"9"})]})}function A5(){return o.jsx("svg",{viewBox:"0 0 12 12",fill:"none",stroke:"currentColor",strokeWidth:2.2,strokeLinecap:"round","aria-hidden":"true",children:o.jsx("line",{x1:"2.5",y1:"6",x2:"9.5",y2:"6"})})}function ht(e){const{type:t="bar",size:a,className:r="","aria-label":n}=e;if(t==="dot"){const{icon:w,number:x,position:S="top-right",onClick:_,animate:k=!1}=e,N=x!==void 0?"number":w??"check",A=typeof a=="number"?a:32,D=xe("circle-badge",`circle-badge--${N}`,`circle-badge--${S}`,`circle-badge--${A}`,k?"circle-badge--animate":"",_?"circle-badge--clickable":"",r),H=x!==void 0?`${x}\uBC88\uC9F8 \uC120\uD0DD`:{check:"\uC120\uD0DD\uB428",remove:"\uC81C\uAC70",minus:"\uC81C\uC678"}[w??"check"];return o.jsxs("span",{className:D,onClick:_,onKeyDown:_?P=>{P.key!=="Enter"&&P.key!==" "||(P.preventDefault(),P.currentTarget.click())}:void 0,"aria-label":n??H,role:_?"button":void 0,tabIndex:_?0:void 0,children:[x!==void 0&&x,x===void 0&&w==="check"&&o.jsx(k5,{}),x===void 0&&w==="remove"&&o.jsx(S5,{}),x===void 0&&w==="minus"&&o.jsx(A5,{})]})}const{label:i,children:s,variant:c="default",fill:u="filled",minWidth:d,iconLeft:p,iconRight:m,color:h}=e,g=typeof a=="number"?"medium":a??"medium",f={small:"caption-2b",medium:"body-3b",large:"body-2b"}[g]??"body-2b",b={small:12,medium:14,large:16}[g]??14,y=xe("badge",`badge--${c}`,`badge--${g}`,u!=="filled"?`badge--${u}`:"",f,r),v=h?.startsWith("--")?`var(${h})`:h,C=d!==void 0||v?{...d!==void 0?{minWidth:typeof d=="number"?`${d}px`:d}:{},...v?{"--badge-color":v}:{}}:void 0;return o.jsxs("span",{className:y,style:C,children:[p&&o.jsx(Ie,{icon:p,size:b,className:"badge__icon"}),i??s,m&&o.jsx(Ie,{icon:m,size:b,className:"badge__icon"})]})}var T5=".ihabdevteam-core-scope .tooltip-menu{display:flex;flex-direction:column;gap:var(--spacing-xs);min-width:160px;padding:var(--spacing-xs)}.ihabdevteam-core-scope .tooltip-menu__header{align-items:center;border-bottom:1px solid var(--color-darkWhite);display:flex;gap:var(--spacing-xs);height:52px;padding:8px 12px}.ihabdevteam-core-scope .tooltip-menu__title{font-weight:600}.ihabdevteam-core-scope .tooltip-menu__columns{display:flex;gap:var(--spacing-s);padding:4px}.ihabdevteam-core-scope .tooltip-menu__column{display:flex;flex:1;flex-direction:column;gap:var(--spacing-xs);min-width:0}.ihabdevteam-core-scope .tooltip-menu__column-title{color:var(--color-lightGray);margin-bottom:4px}.ihabdevteam-core-scope .tooltip-menu__items{display:flex;flex-direction:column;gap:var(--spacing-l)}.ihabdevteam-core-scope .tooltip-menu--small{gap:2px;min-width:140px}.ihabdevteam-core-scope .tooltip-menu--small .tooltip-menu__items{gap:var(--spacing-xs)}.ihabdevteam-core-scope .tooltip-menu--small .tooltip-menu__columns{gap:var(--spacing-xs);padding:2px}.ihabdevteam-core-scope .tooltip-menu--small .tooltip-menu__header{height:44px;padding:6px 10px}.ihabdevteam-core-scope .tooltip-menu__item{width:100%}@media (max-width:600px){.ihabdevteam-core-scope .tooltip-menu__columns{flex-direction:column}}";J(T5);function br({columns:e=[],onClose:t,className:a="",size:r="medium"}){const{t:n}=ge.useTranslation(),i=r==="small"?40:48,[s,c]=l.useState([{title:null,columns:e}]),u=s[s.length-1];l.useEffect(()=>{c(f=>{try{if(!Array.isArray(f)||f.length===0)return[{title:null,columns:e}];const b=f.slice(),y=b[0]&&typeof b[0].title<"u"?b[0].title:null;return b[0]={title:y,columns:e},b}catch{return[{title:null,columns:e}]}})},[e]);const d=l.useCallback(()=>c(f=>f.length>1?f.slice(0,f.length-1):f),[]),p=l.useRef(null),m=l.useRef(null),h=s.length;l.useEffect(()=>{m.current||(m.current=document.activeElement);let f=0,b=0;const y=()=>{const v=p.current?.querySelector("button:not([disabled])");if(v&&v.offsetParent){v.focus({preventScroll:!0});return}b++<20&&(f=requestAnimationFrame(y))};return f=requestAnimationFrame(y),()=>cancelAnimationFrame(f)},[h]),l.useEffect(()=>()=>{m.current?.focus?.({preventScroll:!0})},[]);const g=l.useCallback(f=>{if(f){if(Array.isArray(f.children)&&f.children.length){c(b=>[...b,{title:f.label||null,columns:[{title:null,items:f.children||[]}]}]);return}try{typeof f.onClick=="function"&&f.onClick()}catch{}try{f&&f.closeOnSelect&&typeof t=="function"&&t()}catch{}}},[t]);return o.jsxs("div",{className:`tooltip-menu tooltip-menu--${r} ${a}`,children:[(s.length>1||u.title)&&o.jsxs("div",{className:"tooltip-menu__header",children:[s.length>1?o.jsx(se,{size:i,type:"dot",icon:"chevron-left",ariaLabel:n("common.back","\uB4A4\uB85C"),onClick:d,variant:"transparent-gray",useBorder:!1}):null,o.jsx("div",{className:"tooltip-menu__title button-1",children:u.title})]}),o.jsx("div",{className:"tooltip-menu__columns",ref:p,children:u.columns&&u.columns.map((f,b)=>o.jsxs("div",{className:"tooltip-menu__column",children:[f.title?o.jsx("div",{className:"tooltip-menu__column-title body-3",children:f.title}):null,o.jsx("div",{className:"tooltip-menu__items",children:(f.items||[]).map((y,v)=>o.jsx(se,{className:"tooltip-menu__item",size:i,type:y.label?"bar":"dot",icon:y.selected?"check":y.icon||"none",rightIcon:Array.isArray(y.children)&&y.children.length?"chevron-right":y.badgeCount?o.jsx(ht,{type:"dot",position:"inline",number:Math.min(y.badgeCount,99),size:24,"aria-label":`${y.badgeCount}`}):void 0,label:y.label,ariaLabel:y.label,onClick:()=>g(y),selected:y.selected,disabled:y.disabled,showTooltipInfo:y.tooltip||!1,useBorder:!1,align:"left"},v))})]},b))})]})}const B5=52,Ah=10;function kl({items:e=[],activeKey:t,onChange:a,appMode:r,onAppModeChange:n,moreItems:i=[]}){const{t:s}=ge.useTranslation(),c=r==="manager"?"malgwi":"manager",u=r==="manager"?"arrow-left":"arrow-right",d=r==="manager"?s("nav.modeLabelMalgwi","\uB9D0\uADC0"):s("nav.modeLabelManager","\uB9D0\uADC0 \uB9E4\uB2C8\uC800"),p=l.useRef(null),[m,h]=l.useState(0),g=e.length;l.useEffect(()=>{const E=p.current;if(!E||(h(E.clientWidth),typeof ResizeObserver>"u"))return;const L=new ResizeObserver(F=>h(F[0].contentRect.width));return L.observe(E),()=>L.disconnect()},[]);const f=m>0?Math.floor((m+Ah)/(B5+Ah)):g,b=m>0&&f<g,y=b?f:g,v=e.slice(0,y),C=e.slice(y),w=b||i.length>0,x=l.useCallback(E=>({position:"fixed",bottom:window.innerHeight-E.top+8,right:window.innerWidth-E.right,zIndex:1e4}),[]),{open:S,toggle:_,close:k,style:N,triggerRef:A,menuRef:D}=ao({computeStyle:x,onScroll:"ignore",onResize:"ignore"}),H=l.useCallback(()=>n?.(c),[n,c]),P=l.useMemo(()=>C.find(E=>E.key===t)??i.find(E=>E.selected||E.key&&E.key===t),[C,t,i]),T=l.useMemo(()=>[{items:[...C.map(E=>({label:E.label,icon:E.icon,selected:E.key===t,closeOnSelect:!0,onClick:()=>{E.key&&a&&a(E.key),k()}})),...i.map(E=>({label:E.label,icon:E.icon,badgeCount:E.badgeCount,selected:E.selected??(!!E.key&&E.key===t),closeOnSelect:!0,onClick:()=>{E.onClick?.(),k()}}))]}],[C,i,t,a,k]);return o.jsxs("nav",{className:"bottom-nav","aria-label":s("nav.bottomNav","\uD558\uB2E8 \uB124\uBE44\uAC8C\uC774\uC158"),children:[n&&o.jsxs(o.Fragment,{children:[o.jsx("div",{className:"bottom-nav__left",children:o.jsx(se,{size:52,type:"dot",icon:u,ariaLabel:d,className:"bottom-nav-item",onClick:H})}),o.jsx("div",{className:"bottom-nav__divider","aria-hidden":"true"})]}),o.jsx("div",{className:"bottom-nav__items",ref:p,children:v.map(E=>o.jsx(se,{size:52,type:"dot",icon:E.icon,ariaLabel:E.label,selected:E.key===t,disabled:E.state==="disabled",className:"bottom-nav-item",onClick:()=>E.key&&a?.(E.key)},E.key))}),w&&o.jsxs(o.Fragment,{children:[o.jsx("div",{className:"bottom-nav__divider","aria-hidden":"true"}),o.jsx("div",{className:"bottom-nav__right",children:o.jsxs("div",{ref:A,children:[o.jsx(se,{size:52,type:"dot",icon:P?.icon??"ellipsis",ariaLabel:P?.label??s("nav.more","\uB354\uBCF4\uAE30"),selected:!!P,className:"bottom-nav-item",onClick:_}),S&&qt.createPortal(o.jsx("div",{className:"tooltip-content",style:N,ref:D,children:o.jsx(br,{columns:T,onClose:k})}),document.body)]})})]})]})}var N5=".ihabdevteam-core-scope .side-nav__menu{-webkit-overflow-scrolling:touch;background-clip:padding-box;border-right:1px solid transparent;display:flex;flex:1;flex-direction:column;min-height:0;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;padding:0 0 0 12px;scrollbar-color:var(--color-darkWhite) transparent;scrollbar-gutter:stable;scrollbar-width:thin}.ihabdevteam-core-scope .side-nav__menu::-webkit-scrollbar{width:4px}.ihabdevteam-core-scope .side-nav__menu::-webkit-scrollbar-track{background:transparent}.ihabdevteam-core-scope .side-nav__menu::-webkit-scrollbar-thumb{background:var(--color-darkWhite);border-radius:var(--radius-xs)}.ihabdevteam-core-scope .side-nav__menu::-webkit-scrollbar-thumb:hover{background:var(--color-lightGray,var(--color-lightGray))}.ihabdevteam-core-scope .side-nav__menu-list{display:flex;flex:1 0 auto;flex-direction:column;gap:4px;overflow:visible;padding:4px 0}.ihabdevteam-core-scope .side-nav__notification-wrap{align-self:flex-start;display:inline-flex;position:relative}.ihabdevteam-core-scope .side-nav__footer{align-items:left;display:flex;flex-direction:column;flex-shrink:0;gap:var(--spacing-s);margin-top:var(--spacing-s);padding:0 0 var(--spacing-s) 0}.ihabdevteam-core-scope .side-nav__separator{background:var(--color-whiteLine);height:1px;margin:0 var(--spacing-s) var(--spacing-xs)}.ihabdevteam-core-scope .side-nav__separator--short{margin:4px var(--spacing-m);width:var(--spacing-xl)}@media (max-width:767px){.ihabdevteam-core-scope .side-nav__footer,.ihabdevteam-core-scope .side-nav__menu{display:none}}.ihabdevteam-core-scope .side-nav__item{align-items:center;background:transparent;border:none;border-radius:var(--radius-s);box-sizing:border-box;color:var(--color-darkGray);cursor:pointer;display:flex;flex-shrink:0;font-family:var(--font-family);gap:var(--spacing-s);height:52px;justify-content:flex-start;padding:0 var(--spacing-m);text-align:left;width:100%}@keyframes ihabCoreSnSweep{0%{background-position:100% 0}to{background-position:0 0}}@keyframes ihabCoreSnIconBounce{0%{transform:scale(1)}40%{transform:scale(1.12)}to{transform:scale(1)}}.ihabdevteam-core-scope .side-nav__item.active{animation:ihabCoreSnSweep 1s cubic-bezier(.4,0,.2,1) forwards;background:linear-gradient(90deg,var(--color-main) 50%,var(--color-sub) 100%);background-position:0 0;background-size:200% 100%;box-shadow:var(--shadow-button);color:#fff}.ihabdevteam-core-scope .side-nav__item.active .side-nav__icon{animation:ihabCoreSnIconBounce .48s cubic-bezier(.4,0,.2,1) forwards;color:#fff}.ihabdevteam-core-scope .side-nav__icon{align-items:center;color:var(--color-lightGray);display:inline-flex;height:24px;justify-content:center;width:24px}.ihabdevteam-core-scope .side-nav__item.active .circle-badge{background:var(--color-pureWhite);color:var(--color-main)}.ihabdevteam-core-scope .side-nav__item .circle-badge--inline{border:1px solid var(--color-pureWhite)}.ihabdevteam-core-scope .side-nav__icon-wrap{display:inline-flex;flex:0 0 24px;position:relative}.ihabdevteam-core-scope .side-nav__icon{flex:0 0 24px}.ihabdevteam-core-scope .side-nav__icon img{display:block;height:20px;-o-object-fit:contain;object-fit:contain;width:20px}.ihabdevteam-core-scope .side-nav__icon-image{background-color:currentColor;background-position:50%;background-repeat:no-repeat;background-size:contain;display:inline-block;height:20px;-webkit-mask-image:var(--icon-url);mask-image:var(--icon-url);-webkit-mask-position:center;mask-position:center;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:contain;mask-size:contain;width:20px}.ihabdevteam-core-scope .side-nav__item .side-nav__icon img{filter:brightness(0) saturate(0) opacity(.45);transition:filter .16s ease,opacity .16s ease}.ihabdevteam-core-scope .side-nav__item.active .side-nav__icon img{filter:brightness(0) invert(1)}.ihabdevteam-core-scope .side-nav__label{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ihabdevteam-core-scope .side-nav__item{transition:background-color .16s ease,color .16s ease,transform 80ms ease}.ihabdevteam-core-scope .side-nav__item:focus-visible:not(.active),.ihabdevteam-core-scope .side-nav__item:focus:not(.active),.ihabdevteam-core-scope .side-nav__item:hover:not(.active){background:var(--color-darkWhite)}.ihabdevteam-core-scope .side-nav__item:focus-visible{outline:2px solid var(--focus-ring);outline-offset:2px}.ihabdevteam-core-scope .side-nav__item.disabled,.ihabdevteam-core-scope .side-nav__item.disabled:focus,.ihabdevteam-core-scope .side-nav__item.disabled:hover{background:transparent;color:var(--color-lightGray);cursor:default;opacity:.6;pointer-events:none;transform:none}.ihabdevteam-core-scope .side-nav__item.disabled .side-nav__icon{color:var(--color-lightGray)}.ihabdevteam-core-scope .side-nav__item.disabled .side-nav__icon img{filter:none;opacity:.8}.ihabdevteam-core-scope .side-nav__item--child{height:40px;padding-left:30px}.ihabdevteam-core-scope .side-nav__item--child .side-nav__icon{height:20px;width:20px}.ihabdevteam-core-scope .side-nav__item--child .side-nav__label{font-weight:400}";J(N5);function D5(e){const{t}=ge.useTranslation(),{activeKey:a,unreadCount:r,onDebug:n,onNotification:i,onSetting:s,onHelp:c,onAccount:u}=e||{},d="default";return o.jsxs("div",{className:"side-nav__footer",children:[n&&o.jsx(se,{size:48,showTooltipInfo:!0,type:"dot",shape:"pill",variant:d,icon:"terminal",ariaLabel:t("nav.debug","\uB514\uBC84\uADF8"),onClick:n,selected:a==="debug"}),o.jsxs("span",{className:"side-nav__notification-wrap",children:[o.jsx(se,{size:48,showTooltipInfo:!0,type:"dot",shape:"pill",variant:d,icon:"bell",ariaLabel:t("nav.notifications","\uC54C\uB9BC"),onClick:i,selected:a==="notifications"}),!!r&&o.jsx(ht,{type:"dot",number:Math.min(r,99),size:24})]}),o.jsx(se,{size:48,showTooltipInfo:!0,type:"dot",shape:"pill",variant:d,icon:"settings",ariaLabel:t("nav.settings","\uC124\uC815"),onClick:s,selected:a==="settings"}),o.jsx(se,{size:48,showTooltipInfo:!0,type:"dot",shape:"pill",variant:d,icon:"message-circle-question-mark",ariaLabel:t("nav.help","\uB3C4\uC6C0\uB9D0"),onClick:c,selected:a==="help"}),o.jsx(se,{size:48,showTooltipInfo:!0,type:"dot",shape:"pill",variant:d,icon:"user-round",ariaLabel:t("nav.account","\uACC4\uC815"),onClick:u,selected:a==="account"})]})}function Th(e){const{item:t,itemKey:a,label:r,icon:n,active:i,onClick:s,style:c,state:u,labelStyle:d}=e||{},p=t?.key??a??"",m=t?.label??r??"",h=t?.icon??n??"",g=t?.badge??0,f=o.jsx("span",{className:"side-nav__icon-wrap",children:o.jsx(Ie,{icon:h,label:typeof m=="string"?m:void 0,className:"side-nav__icon",maskClassName:"side-nav__icon-image",imgClassName:void 0,svgClassName:void 0})}),b=u==="disabled",y=`side-nav__item ${i?"active":""} ${u||""} ${b?"disabled":""} ${t?.child?"side-nav__item--child":""}`,v=l.useCallback(C=>{if(!b){try{C.currentTarget.blur()}catch{}s?.(p,C.currentTarget)}},[b,p,s]);return o.jsxs("button",{className:y,onClick:v,"aria-label":typeof m=="string"?m:void 0,style:c,"aria-disabled":b,children:[f,o.jsx("span",{className:"side-nav__label button-1 f",style:d,children:m}),g>0&&o.jsx(ht,{type:"dot",position:"inline",number:Math.min(g,99),size:24,"aria-label":`${g}`}),u==="loading"&&o.jsx("span",{className:"side-nav__spinner","aria-label":"loading"})]})}function Sl(e){const{t}=ge.useTranslation(),{items:a=[],activeKey:r,onChange:n,unreadCount:i,onDebug:s,onNotification:c,onAccount:u,onSetting:d,onHelp:p,appMode:m,onAppModeChange:h}=e||{},g=l.useCallback(()=>h?.(m==="malgwi"?"manager":"malgwi"),[h,m]);return o.jsxs("nav",{"aria-label":t("nav.mainMenu","\uBA54\uC778 \uBA54\uB274"),className:"side-nav__menu",children:[o.jsxs("div",{className:"side-nav__menu-list",children:[(a||[]).filter(f=>!f.section&&(f.key||f.label)).map((f,b)=>o.jsxs(l.Fragment,{children:[f.divider&&o.jsx("div",{className:"side-nav__separator"}),o.jsx(Th,{item:f,active:f.key===r,state:f.disabled?"disabled":void 0,onClick:(y,v)=>{if(f.disabled)return;if(f.href){window.open(f.href,"_blank","noopener,noreferrer");try{v?.blur()}catch{}return}n?.(f.key);try{const w=document.querySelector(".content-area");w?w.scrollTop=0:window.scrollTo({top:0})}catch{}try{v?.blur()}catch{}if(typeof window<"u"&&window.matchMedia){if(!window.matchMedia("(min-width: 768px) and (max-width: 1023px)").matches)return}else return;const C=document.querySelector(".header");if(C&&!(typeof C.matches=="function"&&C.matches(":hover"))){C.classList.add("header--force-collapsed");const w=()=>{C.classList.remove("header--force-collapsed"),C.removeEventListener("mouseenter",w)};C.addEventListener("mouseenter",w)}}})]},f.key??`side-nav__item-${b}`)),h&&o.jsx("div",{className:"side-nav__separator side-nav__separator--short"}),h&&o.jsx(Th,{item:{key:"__mode-switch__",label:m==="malgwi"?t("nav.goToManager","\uB9D0\uADC0\uB9E4\uB2C8\uC800\uB85C \uC774\uB3D9"):t("nav.goToMalgwi","\uB9D0\uADC0\uB85C \uC774\uB3D9"),icon:m==="malgwi"?"arrow-right":"arrow-left"},onClick:g})]}),o.jsx(D5,{activeKey:r,unreadCount:i,onDebug:s,onNotification:c,onAccount:u,onSetting:d,onHelp:p})]})}var Al='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',Tl='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',E5='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',j5='.ihabdevteam-core-scope .header{background:var(--color-deepWhite);border-left:1px solid var(--color-whiteLine);border-right:1px solid var(--color-whiteLine);bottom:0;box-sizing:content-box;display:flex;flex-direction:column;isolation:isolate;left:0;overflow:visible;overscroll-behavior:none;position:fixed;top:0;z-index:var(--z-sidebar)}.ihabdevteam-core-scope .header__menu-button{background:transparent;border:none;display:none}.ihabdevteam-core-scope .header__bottom{align-items:center;background:var(--color-deepWhite);border-top:1px solid var(--color-whiteLine);bottom:0;display:flex;height:56px;justify-content:center;left:0;padding:0;padding-bottom:calc(var(--spacing-content) + env(safe-area-inset-bottom));position:fixed;right:0}.ihabdevteam-core-scope .header__category-button{background:transparent;border:none}.ihabdevteam-core-scope .header:before{background:linear-gradient(160deg,var(--color-main) 0,var(--color-sub) 100%);content:"";inset:0;opacity:0;pointer-events:none;position:absolute;transition:opacity .2s ease;z-index:-1}.ihabdevteam-core-scope .header--manager{border-right-color:hsla(0,0%,100%,.2)}.ihabdevteam-core-scope .header--manager:before{opacity:1}.ihabdevteam-core-scope .header--manager .side-nav__separator{background:hsla(0,0%,100%,.25)}.ihabdevteam-core-scope .header--manager .side-nav__icon,.ihabdevteam-core-scope .header--manager .side-nav__item{color:var(--color-deepWhite)}.ihabdevteam-core-scope .header--manager .side-nav__item:focus:not(.active),.ihabdevteam-core-scope .header--manager .side-nav__item:hover:not(.active){background:hsla(0,0%,100%,.15);color:#fff}.ihabdevteam-core-scope .header--manager .side-nav__item:focus:not(.active) .side-nav__icon,.ihabdevteam-core-scope .header--manager .side-nav__item:hover:not(.active) .side-nav__icon{color:#fff}.ihabdevteam-core-scope .header--manager .side-nav__item.active{animation:ihabCoreSnSweep 1s cubic-bezier(.4,0,.2,1) forwards;background:linear-gradient(90deg,var(--color-pureWhite) 50%,color-mix(in srgb,var(--color-main) 50%,#fff) 100%);background-position:0 0;background-size:200% 100%;box-shadow:var(--shadow-card);color:var(--color-darkGray)}.ihabdevteam-core-scope .header--manager .side-nav__item.active .side-nav__icon{animation:ihabCoreSnIconBounce .48s cubic-bezier(.4,0,.2,1) forwards;color:var(--color-lightGray)}.ihabdevteam-core-scope .header--manager .side-nav__item.active .side-nav__icon img{filter:none;opacity:1}.ihabdevteam-core-scope .header--manager .side-nav__footer [role=button],.ihabdevteam-core-scope .header--manager .side-nav__footer button{color:hsla(0,0%,100%,.55)}@media (min-width:1024px){.ihabdevteam-core-scope .header{width:220px}.ihabdevteam-core-scope .header__bottom,.ihabdevteam-core-scope .header__menu-button{display:none}}@media (min-width:768px) and (max-width:1023px){.ihabdevteam-core-scope .header__branding{height:80px}.ihabdevteam-core-scope .header .side-nav__menu{padding:0 10px;transition:padding .18s ease}.ihabdevteam-core-scope .header .side-nav__item{border-radius:var(--radius-card);gap:0;padding:0 14px;transition:padding .18s ease,gap .18s ease}.ihabdevteam-core-scope .header:focus-within .side-nav__menu,.ihabdevteam-core-scope .header:hover .side-nav__menu{padding:0 10px}.ihabdevteam-core-scope .header:focus-within .side-nav__item,.ihabdevteam-core-scope .header:hover .side-nav__item{gap:10px;padding:0 16px}.ihabdevteam-core-scope .header .side-nav__label{display:inline-block;max-width:0;opacity:0;overflow:hidden;pointer-events:none;transform:translateX(-6px);transition:max-width .18s ease,opacity .18s ease,transform .18s ease;white-space:nowrap}.ihabdevteam-core-scope .header{overflow:visible;transition:width .18s ease;width:72px}.ihabdevteam-core-scope .header:focus-within,.ihabdevteam-core-scope .header:hover{width:220px}.ihabdevteam-core-scope .header:focus-within .side-nav__label,.ihabdevteam-core-scope .header:hover .side-nav__label{max-width:200px;opacity:1;pointer-events:auto;transform:translateX(0)}.ihabdevteam-core-scope .header.header--force-collapsed{width:72px}.ihabdevteam-core-scope .header.header--force-collapsed .side-nav__label{max-width:0;opacity:0;pointer-events:none;transform:translateX(-6px)}.ihabdevteam-core-scope .header.header--force-collapsed:hover{width:72px}}@media (max-width:767px){.ihabdevteam-core-scope .header{align-items:center;border-bottom:1px solid var(--color-whiteLine);border-left:none;border-right:none;flex-direction:row;height:64px;justify-content:space-between;left:0;position:fixed;right:0;top:0;width:100%}.ihabdevteam-core-scope .header__top{align-items:center;display:flex;flex:1}.ihabdevteam-core-scope .header__branding{height:auto}.ihabdevteam-core-scope .header__menu-button{display:inline-flex}.ihabdevteam-core-scope .header__bi{align-items:center;display:flex;gap:var(--spacing-xs);padding:0 calc(12px + env(safe-area-inset-right)) 0 calc(12px + env(safe-area-inset-left));width:100%}.ihabdevteam-core-scope .header__bi .header__menu-button{margin-left:auto}.ihabdevteam-core-scope .header__bottom{display:none}}.ihabdevteam-core-scope .brand-identity__root{align-items:center;display:flex;height:100px;justify-content:center}.ihabdevteam-core-scope .brand-identity__image{height:48px;-o-object-fit:contain;object-fit:contain;width:auto}@media (min-width:1024px){.ihabdevteam-core-scope .brand-identity__root{height:100px}}@media (min-width:768px) and (max-width:1023px){.ihabdevteam-core-scope .brand-identity__root{height:100px}}@media (max-width:767px){.ihabdevteam-core-scope .brand-identity__root{height:64px;padding:10px}.ihabdevteam-core-scope .brand-identity__image{height:40px}}';J(j5);function Bl({appMode:e}){const{t}=ge.useTranslation(),a=e==="manager",r=a?Tl:Al,n=E5,i=oa("(min-width: 768px) and (max-width: 1023px)");return o.jsx("div",{className:"brand-identity__root","aria-label":t("header.biArea","BI \uC601\uC5ED"),children:i?o.jsx("img",{src:n,alt:t("header.biSymbol","BI \uC2EC\uBCFC"),className:"brand-identity__image"}):o.jsx("img",{src:r,alt:a?t("header.logoManager","\uB9D0\uADC0\uB9E4\uB2C8\uC800 \uB85C\uACE0"):t("header.logoMalgwi","\uB9D0\uADC0 \uB85C\uACE0"),className:"brand-identity__image"})})}function Nl({activeKey:e,onChange:t,items:a,malgwiItems:r,managerItems:n,unreadCount:i,onDebug:s,onNotification:c,onAccount:u,onSetting:d,onHelp:p,appMode:m,onAppModeChange:h}){const{t:g}=ge.useTranslation(),f=oa("(max-width: 767px)"),b=l.useMemo(()=>{const N=[];return s&&N.push({key:"debug",icon:"terminal",label:g("nav.debug","\uB514\uBC84\uADF8"),onClick:s}),c&&N.push({key:"notifications",icon:"bell",label:g("nav.notifications","\uC54C\uB9BC"),badgeCount:i,onClick:c}),d&&N.push({key:"settings",icon:"settings",label:g("nav.settings","\uC124\uC815"),onClick:d}),p&&N.push({key:"help",icon:"message-circle-question-mark",label:g("nav.help","\uB3C4\uC6C0\uB9D0"),onClick:p}),u&&N.push({key:"account",icon:"user-round",label:g("nav.account","\uACC4\uC815"),onClick:u}),N},[g,s,c,d,p,u,i]),y=l.useCallback(N=>({position:"fixed",top:N.bottom+8,right:Math.max(8,window.innerWidth-N.right),zIndex:1e4}),[]),{open:v,toggle:C,close:w,style:x,triggerRef:S,menuRef:_}=ao({computeStyle:y,onScroll:"ignore",onResize:"ignore"}),k=l.useMemo(()=>[{items:b.map(N=>({label:N.label,icon:N.icon,badgeCount:N.badgeCount,selected:N.selected??(!!N.key&&N.key===e),closeOnSelect:!0,onClick:()=>{N.onClick?.(),w()}}))}],[b,e,w]);return o.jsxs("aside",{className:`header${m==="manager"?" header--manager":""}`,children:[o.jsxs("div",{className:"header__bi",children:[o.jsx(Bl,{appMode:m}),o.jsxs("div",{className:"header__menu-button",ref:S,children:[o.jsx(se,{size:48,type:"dot",shape:"pill",variant:"default",icon:"menu",ariaLabel:g("header.menuOpen","\uBA54\uB274 \uC5F4\uAE30"),onClick:C}),v&&qt.createPortal(o.jsx("div",{className:"tooltip-content",style:x,ref:_,children:o.jsx(br,{columns:k,onClose:w})}),document.body)]})]}),o.jsx(Sl,{items:a,activeKey:e??void 0,onChange:t,unreadCount:i,onDebug:s,onNotification:c,onAccount:u,onSetting:d,onHelp:p,appMode:m,onAppModeChange:h}),f&&o.jsx(kl,{items:a,activeKey:e??void 0,onChange:t,appMode:m,onAppModeChange:h})]})}const Bh=Nl;var L5='.ihabdevteam-core-scope .payment-plan__card{background:var(--color-white);border:1px solid var(--color-whiteLine);border-radius:var(--radius-m);box-sizing:border-box;display:flex;flex:1 1 340px;flex-direction:column;gap:28px;max-width:360px;min-width:min(340px,100%);padding:20px;position:relative;text-align:left;transition:box-shadow .2s ease,transform .2s ease;width:100%}.ihabdevteam-core-scope .payment-plan__card:hover{box-shadow:var(--shadow-dropdown);transform:translateY(-4px)}.ihabdevteam-core-scope .payment-plan__card-badge{position:absolute;right:32px;top:32px}.ihabdevteam-core-scope .payment-plan__pricing-card{cursor:pointer;display:flex;justify-content:center}.ihabdevteam-core-scope .payment-plan__title{color:var(--color-black);display:flex;flex-direction:column;margin:0}.ihabdevteam-core-scope .payment-plan__quote{color:var(--color-sub);margin:0 0 4px;min-height:1.4em}.ihabdevteam-core-scope .payment-plan__title-heading{margin:0}.ihabdevteam-core-scope .payment-plan__subtitle{color:var(--color-gray);line-height:1.5;margin:8px 0 0;text-align:left}.ihabdevteam-core-scope .payment-plan__box,.ihabdevteam-core-scope .payment-plan__box-title{display:block}.ihabdevteam-core-scope .payment-plan__contact-button{width:100%}.ihabdevteam-core-scope .payment-plan__feature-list{display:flex;flex-direction:column;gap:10px;list-style:none;margin:12px 0 0;padding:0}.ihabdevteam-core-scope .payment-plan__feature-item{align-items:center;color:var(--color-darkGray);display:flex;gap:10px;line-height:1.45}.ihabdevteam-core-scope .payment-plan__feature-check{align-items:center;display:inline-flex;flex-shrink:0;justify-content:center}.ihabdevteam-core-scope .payment-plan__card-pricing{display:flex;flex-direction:column;gap:6px;margin-top:auto;text-align:left;width:100%}.ihabdevteam-core-scope .payment-plan__pricing-list{display:flex;flex-direction:column;gap:var(--spacing-s)}.ihabdevteam-core-scope .payment-plan__pricing-row{grid-row-gap:4px;align-items:center;background:var(--plan-color,var(--color-darkWhite));border:1px solid transparent;border-radius:var(--radius-s);box-sizing:border-box;color:#fff;cursor:pointer;display:grid;grid-template-columns:1fr auto;grid-template-rows:auto auto;padding:14px 18px;row-gap:4px;transition:filter .15s ease,transform .15s ease,box-shadow .15s ease;width:100%}.ihabdevteam-core-scope .payment-plan__pricing-row--static{cursor:default;pointer-events:none}.ihabdevteam-core-scope .payment-plan__pricing-row--highlight{background:var(--color-white);border:1px solid var(--plan-color,var(--color-main));color:var(--color-darkGray)}.ihabdevteam-core-scope .payment-plan__pricing-row--highlight .payment-plan__pricing-current,.ihabdevteam-core-scope .payment-plan__pricing-row--highlight .payment-plan__pricing-row-price{color:var(--plan-color,var(--color-main))}.ihabdevteam-core-scope .payment-plan__pricing-row:hover{box-shadow:var(--shadow-dropdown);filter:brightness(1.04);transform:translateY(-2px)}.ihabdevteam-core-scope .payment-plan__pricing-row-title{display:contents}.ihabdevteam-core-scope .payment-plan__pricing-row-label{grid-column:1;grid-row:1;margin:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ihabdevteam-core-scope .payment-plan__pricing-row-price{align-items:center;color:#fff;display:flex;gap:var(--spacing-xs);grid-column:1/-1;grid-row:2;justify-content:flex-end;margin:0;text-align:right}.ihabdevteam-core-scope .payment-plan__pricing-current{color:#fff;margin:0;white-space:nowrap}.ihabdevteam-core-scope .payment-plan__pricing-symbol{font-weight:600;margin-right:2px}.ihabdevteam-core-scope .payment-plan__list{grid-gap:var(--spacing-l);align-items:stretch;display:grid;gap:var(--spacing-l);grid-template-columns:repeat(auto-fit,minmax(min(340px,100%),360px));justify-content:center;margin:0 auto var(--spacing-page);width:100%}.ihabdevteam-core-scope .payment-plan__list>.payment-plan__card{align-self:stretch}.ihabdevteam-core-scope .payment-plan__card.recommended{border-color:var(--color-main);box-shadow:var(--shadow-dropdown)}.ihabdevteam-core-scope .payment-plan__feature{align-items:center;color:var(--color-darkGray);display:flex;gap:var(--spacing-xs)}.ihabdevteam-core-scope .payment-plan__feature:before{color:var(--color-success);content:"\u2713";font-weight:700}@media (max-width:767px){.ihabdevteam-core-scope .payment-plan__list{align-items:center;flex-direction:column;gap:var(--spacing-m)}.ihabdevteam-core-scope .payment-plan__list>.payment-plan__card{align-self:center;flex:none;max-width:360px;width:100%}}';J(L5);function Nh(e){if(!(e==null||e===""))return or(typeof e=="number"?`${e.toLocaleString("ko-KR")}\uC6D0`:e)}function M5(e){const t=`${e.code??""} ${e.name??""}`.toLowerCase();return/manager|매니저/.test(t)?"manager":"speechear"}function P5(e){if(e.durationDays&&e.durationDays>0){const n=e.durationDays;return n%365===0?`${n/365}\uB144`:`${n}\uC77C`}const t=(e.code??"").match(/(\d+)(d|y)\b/i);if(t)return t[2].toLowerCase()==="y"?`${t[1]}\uB144`:`${t[1]}\uC77C`;const a=e.name??"",r=a.match(/(\d+\s*(?:년|개월|주|일))\s*(?:이용권)?\s*$/);return r?r[1].replace(/\s+/g,""):a||"\uC774\uC6A9\uAD8C"}function R5(e){const t=(e??"").match(/(\d+)(d|y)\b/i);if(!t)return null;const a=Number(t[1]);return t[2].toLowerCase()==="y"?a*365:a}function Dl(e){return{type:e.type??M5(e),plan:P5(e),label:e.label,price:Nh(e.price),originalPrice:Nh(e.originalPrice),discountLabel:e.discountLabel}}var $5='.ihabdevteam-core-scope .pass-card-frame{container-type:inline-size;height:188px;max-width:100%;width:300px}.ihabdevteam-core-scope .pass-card{border-radius:16px;box-sizing:border-box;display:flex;flex-direction:column;height:188px;overflow:hidden;padding:var(--spacing-l);position:relative;width:300px}.ihabdevteam-core-scope .pass-card-frame>.pass-card{aspect-ratio:auto;border-radius:5.33cqw;height:100%;padding:6.67cqw;width:100%}.ihabdevteam-core-scope .pass-card--clickable{cursor:pointer}@media (max-width:360px){.ihabdevteam-core-scope .pass-card,.ihabdevteam-core-scope .pass-card-frame{max-width:300px;width:100%}}.ihabdevteam-core-scope .pass-card--active{box-shadow:0 4px 16px rgba(0,0,0,.08)}.ihabdevteam-core-scope .pass-card--pending{box-shadow:0 2px 8px rgba(0,0,0,.05)}.ihabdevteam-core-scope .pass-card--expired{--color-main:var(--color-disabled);--color-sub:var(--color-whiteLine);--pass-card-expired-shape:var(--color-whiteLine);box-shadow:none}.ihabdevteam-core-scope [data-theme=dark] .pass-card--expired,.ihabdevteam-core-scope[data-theme=dark] .pass-card--expired,[data-theme=dark] .pass-card--expired .ihabdevteam-core-scope{--pass-card-expired-shape:hsla(0,0%,100%,.18)}@media (prefers-color-scheme:dark){.ihabdevteam-core-scope :root:not([data-theme=light]):not([data-theme=dark]) .pass-card--expired{--pass-card-expired-shape:hsla(0,0%,100%,.18)}}.ihabdevteam-core-scope .pass-card--expired .pass-card-bg{background:var(--color-darkWhite)}.ihabdevteam-core-scope .pass-card--expired .pass-card-bg__symbol{background:var(--pass-card-expired-shape)}.ihabdevteam-core-scope .pass-card--expired .pass-card__copyright,.ihabdevteam-core-scope .pass-card--expired .pass-card__plan,.ihabdevteam-core-scope .pass-card--expired .pass-card__price-area,.ihabdevteam-core-scope .pass-card--expired .pass-card__usage,.ihabdevteam-core-scope .pass-card--expired .pass-card__usage-percent,.ihabdevteam-core-scope .pass-card--expired .pass-card__usage-remaining{color:var(--color-gray)}.ihabdevteam-core-scope .pass-card.pass-card--expired:after{box-shadow:inset 1px 1px 0 hsla(0,0%,100%,.5),inset -1px -1px 0 color-mix(in srgb,var(--color-gray) 10%,transparent)}.ihabdevteam-core-scope .pass-card:after{border-radius:inherit;box-shadow:inset 1px 1px 0 hsla(0,0%,100%,.5),inset -1px -1px 0 rgba(73,156,223,.2);content:"";inset:0;pointer-events:none;position:absolute;z-index:2}.ihabdevteam-core-scope .pass-card__top{align-items:flex-start;display:flex;flex-direction:row;justify-content:space-between;margin-top:-1.67cqw;position:relative;z-index:1}.ihabdevteam-core-scope .pass-card__top-left{align-items:flex-start;display:flex;flex-direction:column;gap:0}.ihabdevteam-core-scope .pass-card__logo{height:10.67cqw;-o-object-fit:contain;object-fit:contain;width:auto}.ihabdevteam-core-scope .pass-card__plan{color:var(--pass-card-text,var(--color-pureBlack));display:flex;flex-direction:column;gap:0;margin-top:-.67cqw;position:relative;text-align:left;z-index:1}.ihabdevteam-core-scope .pass-card__plan .h0{font-size:13.33cqw;line-height:1.3}.ihabdevteam-core-scope .pass-card .pass-card__plan-number{font-size:17.33cqw;letter-spacing:-1cqw;line-height:1}.ihabdevteam-core-scope .pass-card__plan .h5b{font-size:5cqw;line-height:1.53}.ihabdevteam-core-scope .pass-card__plan-unit{margin-left:.67cqw;position:relative;top:-.67cqw}.ihabdevteam-core-scope .pass-card__plan-suffix{margin-left:.67cqw;margin-top:0}.ihabdevteam-core-scope .pass-card .pass-card__copyright{color:var(--pass-card-text,var(--color-black));font-size:3.67cqw;line-height:1.36;margin:auto 0 0;position:relative;text-align:left;z-index:1}.ihabdevteam-core-scope .pass-card__price-area{align-items:flex-end;bottom:4.67cqw;display:flex;flex-direction:column;gap:0;position:absolute;right:6.67cqw;z-index:1}.ihabdevteam-core-scope .pass-card__price-area .h1{font-size:10.67cqw;line-height:1.375}.ihabdevteam-core-scope .pass-card__price-area .h5{font-size:5cqw;line-height:1.53}.ihabdevteam-core-scope .pass-card__usage{align-items:flex-end;bottom:4.67cqw;color:var(--pass-card-text,var(--color-black));display:flex;flex-direction:column;gap:0;position:absolute;right:6.67cqw;z-index:1}.ihabdevteam-core-scope .pass-card__usage-percent{align-items:baseline;display:inline-flex;font-size:3.67cqw;gap:0;line-height:1.36;opacity:.9}.ihabdevteam-core-scope .pass-card__usage .pass-card__usage-remaining{font-size:5cqw;line-height:1.53;opacity:.9}.ihabdevteam-core-scope .pass-card__usage .pass-card__usage-value{font-size:10.67cqw;line-height:1.2}.ihabdevteam-core-scope .pass-card__usage .pass-card__usage-symbol{font-size:5cqw;line-height:1.53}.ihabdevteam-core-scope .pass-card__discount{color:var(--pass-card-text,var(--color-pureBlack));font-size:4.67cqw;line-height:1.2;text-align:right;white-space:pre-line}.ihabdevteam-core-scope .pass-card__price{align-items:baseline;color:var(--pass-card-text,var(--color-pureBlack));display:inline-flex;gap:2cqw;text-align:right}.ihabdevteam-core-scope .pass-card__price-original{color:color-mix(in srgb,var(--pass-card-text,var(--color-pureBlack)) 75%,transparent);font-size:4.67cqw;line-height:1.57;text-decoration:line-through;text-decoration-thickness:1px}';J($5);var I5='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',z5='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>',O5='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',F5='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',W5='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>',H5='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',V5=".ihabdevteam-core-scope .pass-card-bg{border-radius:inherit;inset:0;overflow:hidden;pointer-events:none;position:absolute}:where(.ihabdevteam-core-scope){--pass-card-symbol-opacity:1}.ihabdevteam-core-scope .pass-card-bg__symbol{background:var(--symbol-url) center /contain no-repeat;height:48px;-webkit-mask:var(--symbol-url) center /contain no-repeat;mask:var(--symbol-url) center /contain no-repeat;position:absolute;right:12px;top:12px;width:48px}";J(V5);var G5=".ihabdevteam-core-scope .pass-card-bg-two-circle{background:var(--color-pureWhite)}.ihabdevteam-core-scope .pass-card-bg-two-circle__c1,.ihabdevteam-core-scope .pass-card-bg-two-circle__c3{border-radius:50%;opacity:.75;opacity:var(--pass-card-symbol-opacity,.75);position:absolute}.ihabdevteam-core-scope .pass-card-bg-two-circle__c1{background:var(--color-main);height:340px;right:-150px;top:-140px;width:340px}.ihabdevteam-core-scope .pass-card-bg-two-circle__c3{background:var(--color-sub);bottom:-90px;height:220px;right:-50px;width:220px}.ihabdevteam-core-scope .pass-card-bg-two-circle__symbol{background:var(--color-darkWhite)}";J(G5);var Dh='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 Fa={text:"--pass-card-text",sub:"--pass-card-sub",copyright:"--pass-card-copyright"},El=new WeakMap;function q5(e){if(e)return El.get(e)}function ga(e,t){e&&(e.style.setProperty(Fa.text,t.text),e.style.setProperty(Fa.sub,t.sub),t.copyrightColor&&e.style.setProperty(Fa.copyright,t.copyrightColor),El.set(e,t))}function fa(e){e&&(e.style.removeProperty(Fa.text),e.style.removeProperty(Fa.sub),e.style.removeProperty(Fa.copyright),El.delete(e))}const jl={text:"var(--color-pureBlack)",sub:"var(--color-lightGray)",logoBase:"Logo_speechear_kr",copyrightColor:"#1a1a1a"};function Ll(e={}){const t=lt(jl,ga,fa);return o.jsxs("div",{ref:t,className:"pass-card-bg pass-card-bg-two-circle","aria-hidden":"true",children:[o.jsx("div",{className:"pass-card-bg-two-circle__c1"}),o.jsx("div",{className:"pass-card-bg-two-circle__c3"}),o.jsx("span",{className:"pass-card-bg__symbol pass-card-bg-two-circle__symbol",style:{"--symbol-url":`url("${Dh}")`}})]})}const Eh="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 Y5=".ihabdevteam-core-scope .pass-card-bg-sound-move{background:var(--color-pureWhite)}.ihabdevteam-core-scope .pass-card-bg-sound-move__svg{height:100%;inset:0;pointer-events:none;position:absolute;width:100%}";J(Y5);var gr='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 U5={text:"#1a1a1a",sub:"var(--color-lightGray)",logoBase:"Logo_speechear_kr",copyrightColor:"var(--color-main)"},K5=[{scale:1,opacity:.55},{scale:2,opacity:.4},{scale:3.1,opacity:.28},{scale:4.5,opacity:.18},{scale:6,opacity:.1}];function jh(e={}){const t=lt(U5,ga,fa),a="var(--color-main)",r=270,n=170;return o.jsxs("div",{ref:t,className:"pass-card-bg pass-card-bg-sound-move","aria-hidden":"true",children:[o.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:K5.map(({scale:i,opacity:s},c)=>o.jsx("g",{transform:`translate(${r} ${n}) scale(${i}) translate(-50 -50)`,opacity:s,children:o.jsx("path",{d:Eh,fill:"none",stroke:a,strokeWidth:"1.5",vectorEffect:"non-scaling-stroke"})},c))}),o.jsx("span",{className:"pass-card-bg__symbol pass-card-bg-sound-move__symbol",style:{"--symbol-url":`url("${gr}")`}})]})}var Z5=".ihabdevteam-core-scope .pass-card-bg-sound-move-v1{background:linear-gradient(135deg,var(--color-main),var(--color-sub))}.ihabdevteam-core-scope .pass-card-bg-sound-move-v1__svg{height:100%;inset:0;pointer-events:none;position:absolute;width:100%}";J(Z5);const X5={text:"#ffffff",sub:"var(--color-lightGray)",logoBase:"Logo_speechear_kr",logoColor:"_white",copyrightColor:"#ffffff"},Q5=[{scale:1,opacity:.55},{scale:2,opacity:.4},{scale:3.1,opacity:.28},{scale:4.5,opacity:.18},{scale:6,opacity:.1}];function J5(e={}){const t=lt(X5,ga,fa),a="#ffffff",r=270,n=170;return o.jsxs("div",{ref:t,className:"pass-card-bg pass-card-bg-sound-move-v1","aria-hidden":"true",children:[o.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:Q5.map(({scale:i,opacity:s},c)=>o.jsx("g",{transform:`translate(${r} ${n}) scale(${i}) translate(-50 -50)`,opacity:s,children:o.jsx("path",{d:Eh,fill:"none",stroke:a,strokeWidth:"1.5",vectorEffect:"non-scaling-stroke"})},c))}),o.jsx("span",{className:"pass-card-bg__symbol pass-card-bg-sound-move-v1__symbol",style:{"--symbol-url":`url("${Dh}")`}})]})}var e3=".ihabdevteam-core-scope .pass-card-bg-talk{align-items:center;background:var(--color-pureWhite);display:flex;justify-content:center}.ihabdevteam-core-scope .pass-card-bg-talk__shape{height:76px;position:absolute;width:76px}.ihabdevteam-core-scope .pass-card-bg-talk__shape--left{background:var(--color-main);border-radius:42px 42px 42px 4px;transform:translateX(-18px)}.ihabdevteam-core-scope .pass-card-bg-talk__shape--right{background:var(--color-sub);border-radius:50%;opacity:.7;transform:translateX(18px)}";J(e3);const t3={text:"#1a1a1a",sub:"var(--color-lightGray)",logoBase:"Logo_speechear_kr",copyrightColor:"var(--color-main)"};function a3(e={}){const t=lt(t3,ga,fa);return o.jsxs("div",{ref:t,className:"pass-card-bg pass-card-bg-talk","aria-hidden":"true",children:[o.jsx("div",{className:"pass-card-bg-talk__shape pass-card-bg-talk__shape--left"}),o.jsx("div",{className:"pass-card-bg-talk__shape pass-card-bg-talk__shape--right"}),o.jsx("span",{className:"pass-card-bg__symbol pass-card-bg-talk__symbol",style:{"--symbol-url":`url("${gr}")`}})]})}const o3={Logo_speechear_kr:{"":Al,_white:I5,_textWhite:z5,_black:O5},Logo_speechearManager_kr:{"":Tl,_white:F5,_textWhite:W5,_black:H5}};function r3(e,t){if(e)return o3[e]?.[t??""]??void 0}const n3={speechear:Al,manager:Tl},i3={speechear:"Logo_speechear_kr",manager:"Logo_speechearManager_kr"},Lh=10;function s3(e,t){if(e<=0)return t("passCard.remainingSecond",{n:0});const a=Math.floor(e/86400);if(a>0)return t("passCard.remainingDay",{n:a});const r=Math.floor(e/3600);if(r>0)return t("passCard.remainingHour",{n:r});const n=Math.floor(e/60);return n>0?t("passCard.remainingMinute",{n}):t("passCard.remainingSecond",{n:Math.floor(e)})}function l3(e,t,a){if(e==="manager"){const r=/년/.test(t)||/yr|year/i.test(t)||/1년|365/.test(t),n=a==="\uC624\uD508\uD2B9\uAC00"||a===Ca.t("passCard.specialLabel");return r?o.jsx(a3,{}):n?o.jsx(J5,{}):o.jsx(jh,{})}return o.jsx(Ll,{})}function Ml({product:e,showPrice:t=!1,plan:a,type:r,endDate:n,remainingSeconds:i,state:s="active",bg:c,bgOnly:u=!1,textColor:d,subColor:p,copyrightColor:m,logoSrc:h,label:g,price:f,originalPrice:b,discountLabel:y,onUse:v,onRefund:C,onDelete:w}){const{t:x}=ge.useTranslation(),S=e?Dl(e):void 0,_=r??S?.type??"speechear",k=a??S?.plan??"\uC774\uC6A9\uAD8C",N=g??S?.label,A=f??(t?S?.price:void 0),D=b??(t?S?.originalPrice:void 0),H=y??S?.discountLabel,P=l.useMemo(()=>{if(A)return null;const I=e?.durationDays??R5(e?.code);if(!I||I<=0)return null;const ee=I*86400;let pe;if(i!=null)pe=i;else if((s==="active"||s==="expired")&&n){const Ce=new Date(n).getTime();if(Number.isNaN(Ce))return null;const R=new Date;R.setHours(0,0,0,0);const oe=new Date(Ce);oe.setHours(0,0,0,0);const ae=Math.round((oe.getTime()-R.getTime())/864e5);pe=Math.max(0,ae)*86400}else s==="expired"?pe=0:pe=ee;const ke=Math.max(0,Math.min(100,Math.floor(Math.min(pe,ee)/ee*100)));return s==="pending"&&ke>=100?null:{percent:ke,remainingLabel:s3(pe,x)}},[A,s,n,i,e?.durationDays,e?.code,x]),T=l.useRef(null),[E,L]=l.useState({}),[F,te]=l.useState(null),Z=!!(v||C||w),V=l.useRef(!1),j=l.useRef(void 0),[M,$]=l.useState(h);l.useLayoutEffect(()=>{$(h)},[h]),l.useLayoutEffect(()=>{const I=T.current;I&&(d!==void 0&&I.style.setProperty("--pass-card-text",d),p!==void 0&&I.style.setProperty("--pass-card-sub",p),m!==void 0&&I.style.setProperty("--pass-card-copyright",m))},[d,p,m]),l.useLayoutEffect(()=>{const I=T.current;if(!I)return;const ee=q5(I);if(!h){const pe=i3[_],ke=s==="expired"?"_black":ee?.logoColor??"",Ce=r3(pe,ke);$(Ce)}},[c,h,_,s]);const W=I=>{const ee=T.current;if(!ee)return null;const{left:pe,top:ke,width:Ce,height:R}=ee.getBoundingClientRect(),oe=(I.clientX-pe)/Ce-.5;return{rotateX:-((I.clientY-ke)/R-.5)*Lh,rotateY:oe*Lh}},q=(I,ee)=>{const pe=ee*-.7,ke=I*.7+10,Ce=20+(Math.abs(I)+Math.abs(ee))*.4;return`${pe}px ${ke}px ${Ce}px rgba(0, 0, 0, 0.18)`},X=l.useCallback(I=>{V.current=!0,clearTimeout(j.current),j.current=setTimeout(()=>{V.current=!1},200);const ee=W(I);ee&&L({transform:`perspective(800px) rotateX(${ee.rotateX}deg) rotateY(${ee.rotateY}deg) scale3d(1.03, 1.03, 1.03)`,boxShadow:q(ee.rotateX,ee.rotateY),transition:"transform 0.25s cubic-bezier(0.23, 1, 0.32, 1), box-shadow 0.25s cubic-bezier(0.23, 1, 0.32, 1)"})},[]),O=l.useCallback(I=>{const ee=W(I);if(!ee)return;const pe=V.current?"transform 0.2s ease, box-shadow 0.2s ease":"none";L({transform:`perspective(800px) rotateX(${ee.rotateX}deg) rotateY(${ee.rotateY}deg) scale3d(1.03, 1.03, 1.03)`,boxShadow:q(ee.rotateX,ee.rotateY),transition:pe})},[]),Y=l.useCallback(()=>{clearTimeout(j.current),V.current=!1,L({transform:"perspective(800px) rotateX(0deg) rotateY(0deg) scale3d(1, 1, 1)",boxShadow:"0px 4px 16px rgba(0, 0, 0, 0.08)",transition:"transform 0.5s cubic-bezier(0.23, 1, 0.32, 1), box-shadow 0.5s cubic-bezier(0.23, 1, 0.32, 1)"})},[]),z=l.useCallback(()=>te(null),[]),re=l.useMemo(()=>{const I=k.replace("\uC774\uC6A9\uAD8C","").trim(),ee=I.match(/^(.*?)(일|년)$/);return ee?o.jsxs(o.Fragment,{children:[o.jsx("span",{className:"h0 pass-card__plan-number",children:ee[1]}),o.jsx("span",{className:"h5b pass-card__plan-unit",children:ee[2]==="\uB144"?x("passCard.unitYear","\uB144"):x("passCard.unitDay","\uC77C")})]}):o.jsx("span",{className:"h0",children:I})},[k,x]),Q=l.useMemo(()=>{const I=or(A);if(!I)return null;const ee=I.match(/^([^\d]*)([\d.,]+)(.*)$/);if(!ee)return o.jsx("span",{className:"h1",children:I});const[,pe,ke,Ce]=ee;return o.jsxs(o.Fragment,{children:[pe&&o.jsx("span",{className:"h5 pass-card__price-symbol",children:pe}),o.jsx("span",{className:"h1 pass-card__price-amount",children:ke}),Ce.trim()&&o.jsx("span",{className:"h5 pass-card__price-symbol",children:Ce.trim()})]})},[A]),ne=l.useCallback(()=>{Z&&te(I=>{if(I)return null;const ee=T.current?.getBoundingClientRect();if(!ee)return null;const pe=50;return{left:ee.left,right:ee.right,width:ee.width,height:ee.height,x:ee.x,y:ee.y+pe,top:ee.top+pe,bottom:ee.bottom+pe}})},[Z]),me=l.useCallback(I=>{Z&&(I.key==="Enter"||I.key===" ")&&(I.preventDefault(),ne())},[Z,ne]),ce=[{items:[...v?[{label:x("passCard.menu.use","\uC0AC\uC6A9\uD558\uAE30"),icon:"play",onClick:()=>{v(),te(null)},closeOnSelect:!0}]:[],...C?[{label:x("passCard.menu.refund","\uD658\uBD88\uD558\uAE30"),icon:"rotate-ccw",onClick:()=>{C(),te(null)},closeOnSelect:!0}]:[],...w?[{label:x("passCard.menu.delete","\uC0AD\uC81C\uD558\uAE30"),icon:"trash-2",onClick:()=>{w(),te(null)},closeOnSelect:!0}]:[]]}];return o.jsxs(o.Fragment,{children:[o.jsx("div",{className:"pass-card-frame",children:o.jsxs("div",{ref:T,className:`pass-card pass-card--${s}${Z?" pass-card--clickable":""}`,style:E,onMouseEnter:X,onMouseMove:O,onMouseLeave:Y,onClick:ne,onKeyDown:Z?me:void 0,role:Z?"button":void 0,tabIndex:Z?0:void 0,children:[c??l3(_,k,N),!u&&o.jsxs(o.Fragment,{children:[o.jsx("div",{className:"pass-card__top",children:o.jsxs("div",{className:"pass-card__top-left",children:[o.jsx("img",{src:M??n3[_],className:"pass-card__logo",alt:_==="manager"?x("header.logoManager","\uB9D0\uADC0\uB9E4\uB2C8\uC800 \uB85C\uACE0"):x("header.logoMalgwi","\uB9D0\uADC0 \uB85C\uACE0")}),o.jsxs("div",{className:"pass-card__plan",children:[o.jsx("div",{children:re}),o.jsx("span",{className:"h5b pass-card__plan-suffix",children:N?x("passCard.labeledPlan",{label:N}):x("passCard.planSuffix","\uC774\uC6A9\uAD8C")})]})]})}),A?o.jsxs("div",{className:"pass-card__price-area",children:[H&&o.jsx("span",{className:"pass-card__discount body-3",children:H}),o.jsxs("div",{className:"pass-card__price",children:[D&&o.jsx("span",{className:"pass-card__price-original body-3",children:or(D)}),Q]})]}):P?o.jsxs("div",{className:"pass-card__usage",children:[o.jsx("span",{className:"h5b pass-card__usage-remaining",children:P.remainingLabel}),o.jsxs("span",{className:"pass-card__usage-percent",children:[o.jsx("span",{className:"h1 pass-card__usage-value",children:P.percent}),o.jsx("span",{className:"h5b pass-card__usage-symbol",children:"%"})]})]}):o.jsx("div",{className:"pass-card__copyright caption-2",children:"\xA9 IHAB Corp. All rights reserved."})]})]})}),F&&o.jsx(Sa,{anchorRect:F,onClose:z,children:o.jsx(br,{columns:ce,onClose:z,size:"small"})})]})}var c3=".ihabdevteam-core-scope .pass-card-bg-sound-line{background:linear-gradient(60deg,var(--color-pureWhite) 0,color-mix(in srgb,var(--color-sub) 15%,var(--color-pureWhite)) 100%)}.ihabdevteam-core-scope .pass-card-bg-sound-line__svg{height:100%;inset:0;pointer-events:none;position:absolute;width:100%}";J(c3);const d3={text:"#1a1a1a",sub:"var(--color-lightGray)",logoBase:"Logo_speechear_kr",copyrightColor:"#1a1a1a"};function u3(e={}){const t=`passcard-sound-line-grad-${l.useId()}`,a=lt(d3,ga,fa);return o.jsxs("div",{ref:a,className:"pass-card-bg pass-card-bg-sound-line","aria-hidden":"true",children:[o.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:[o.jsx("defs",{children:o.jsxs("linearGradient",{id:t,x1:"0",y1:"0",x2:"1",y2:"0",children:[o.jsx("stop",{offset:"20%",stopColor:"var(--color-main)"}),o.jsx("stop",{offset:"80%",stopColor:"var(--color-sub)"})]})}),o.jsx("g",{transform:"translate(25, 45)",children:o.jsx("path",{d:"M -30 150 C 40 80, 100 220, 160 150 S 280 80, 340 150 S 460 220, 510 150",fill:"none",stroke:`url(#${t})`,strokeWidth:"50",strokeLinecap:"round"})})]}),o.jsx("span",{className:"pass-card-bg__symbol pass-card-bg-sound-line__symbol",style:{"--symbol-url":`url("${gr}")`}})]})}var p3=".ihabdevteam-core-scope .pass-card-bg-talk-v1{align-items:center;background:var(--color-pureWhite);display:flex;justify-content:center}.ihabdevteam-core-scope .pass-card-bg-talk-v1__shape{height:76px;position:absolute;width:76px}.ihabdevteam-core-scope .pass-card-bg-talk-v1__shape--left{background:linear-gradient(70deg,var(--color-main),var(--color-sub));border-radius:999px;height:92px;transform:translateX(0) rotate(120deg);width:180px}.ihabdevteam-core-scope .pass-card-bg-talk-v1__shape--right{background:var(--color-sub);border-radius:50%;height:60px;opacity:1;transform:translate(38px,12px);width:60px}";J(p3);const h3={text:"#1a1a1a",sub:"var(--color-lightGray)",logoBase:"Logo_speechear_kr",copyrightColor:"var(--color-main)"};function m3(e={}){const t=lt(h3,ga,fa);return o.jsxs("div",{ref:t,className:"pass-card-bg pass-card-bg-talk-v1","aria-hidden":"true",children:[o.jsx("div",{className:"pass-card-bg-talk-v1__shape pass-card-bg-talk-v1__shape--left"}),o.jsx("div",{className:"pass-card-bg-talk-v1__shape pass-card-bg-talk-v1__shape--right"}),o.jsx("span",{className:"pass-card-bg__symbol pass-card-bg-talk-v1__symbol",style:{"--symbol-url":`url("${gr}")`}})]})}function b3(e,t){if(e){if(t==="manager_pro")return o.jsx(m3,{});if(t==="manager_standard")return o.jsx(u3,{});if(t==="manager_lite")return o.jsx(jh,{})}}function g3(e){const t=or(e);if(!t)return null;const a=t.match(/^([^\d]*)([\d.,]+)(.*)$/);if(!a)return t;const[,r,n,i]=a;return o.jsxs(o.Fragment,{children:[r&&o.jsx("span",{className:"payment-plan__pricing-symbol h4",children:r}),n,i.trim()&&o.jsx("span",{className:"payment-plan__pricing-symbol h4",children:i.trim()})]})}function Mh(e){const{t}=ge.useTranslation(),{plan:a,onSelect:r,period:n="monthly",ownedCodes:i}=e||{},s=v=>!!v&&!!i?.includes(v),c=(a.tiers||[]).some(v=>/오픈\s*특가/.test(v.label??"")&&s(v.code)),u=v=>{const C=v.prices?v.prices[n]:v.price;return C?(a.tiers||[]).some(w=>!!w.badge&&w.originals?.[n]===C):!1},d=a.colorToken?`var(--color-${a.colorToken})`:"var(--color-gray)",p=t("payment.plan.freePrice","\uBB34\uB8CC"),m=t("payment.products.mgrEnterprise.tier.price","\uBB38\uC758"),h=v=>v.prices?v.prices[n]:v.price,g=(a.tiers||[]).length>0&&(a.tiers||[]).every(v=>{const C=h(v);return C==="\uBB34\uB8CC"||C===p||C==="0\uC6D0"}),f=(a.tiers||[]).length>0&&(a.tiers||[]).every(v=>{const C=h(v);return C==="\uBB38\uC758"||C===m}),b=a.group==="org",y=b?"manager":"speechear";return o.jsxs("div",{className:"payment-plan__card",style:{borderColor:d,"--plan-color":d},children:[a.cardBadge&&o.jsx("div",{className:"payment-plan__card-badge",children:o.jsx(ht,{label:a.cardBadge,variant:"main",size:"medium",fill:"soft"})}),o.jsxs("div",{className:"payment-plan__title",children:[o.jsx("p",{className:"payment-plan__quote body-3b",style:{color:d},children:a.quote||"\xA0"}),o.jsx("h3",{className:"payment-plan__title-heading h1",children:a.tier??a.title}),o.jsx("p",{className:"payment-plan__subtitle body-3",children:a.subtitle})]}),o.jsxs("div",{className:"payment-plan__box",children:[o.jsx("span",{className:"payment-plan__box-title body-3b",children:t("payment.plan.recommendedFor","\uC774\uB7F0 \uBD84\uAED8 \uCD94\uCC9C\uD569\uB2C8\uB2E4.")}),o.jsx("ul",{className:"payment-plan__feature-list",children:(a.recommendedFor||[]).map((v,C)=>o.jsxs("li",{className:"payment-plan__feature-item body-3",children:[o.jsx(Ie,{icon:"check",size:18,className:"payment-plan__feature-check",wrapperStyle:{color:d}}),v]},C))})]}),o.jsxs("div",{className:"payment-plan__box",children:[o.jsx("span",{className:"payment-plan__box-title body-3b",children:t("payment.plan.features","\uD575\uC2EC \uAE30\uB2A5")}),o.jsx("ul",{className:"payment-plan__feature-list",children:(a.features||[]).map((v,C)=>o.jsxs("li",{className:"payment-plan__feature-item body-3",children:[o.jsx(Ie,{icon:"check",size:18,className:"payment-plan__feature-check",wrapperStyle:{color:d}}),v]},C))})]}),o.jsx("div",{className:"payment-plan__card-pricing",children:g?null:f?o.jsx(se,{className:"payment-plan__contact-button",label:t("payment.plan.contact",{defaultValue:"\uBB38\uC758\uD558\uAE30"}),variant:"main",size:56,onClick:()=>a.tiers?.[0]&&r?.({...a.tiers[0],productId:a.id,productTitle:a.title})}):o.jsx(o.Fragment,{children:o.jsx("div",{className:"payment-plan__pricing-list",children:(a.tiers||[]).map(v=>{const C=v.label||"\uC774\uC6A9\uAD8C",w=/오픈\s*특가/.test(C),x=w||v.openPromo===!0,S=C.replace(/^오픈\s*특가\s*/,"")||"\uC774\uC6A9\uAD8C",_=v.prices?v.prices[n]:v.price,k=v.badge?x?`\uC624\uD508 \uD2B9\uAC00
|
|
833
|
+
${v.badge}`:v.badge:void 0;if(w&&s(v.code))return null;if(!v.badge&&!c)return u(v)?null:o.jsxs("div",{className:`payment-plan__pricing-row payment-plan__pricing-row--static${v.highlight?" payment-plan__pricing-row--highlight":""}`,children:[o.jsx("div",{className:"payment-plan__pricing-row-title",children:o.jsx("div",{className:"payment-plan__pricing-row-label h5b",children:v.label})}),o.jsx("div",{className:"payment-plan__pricing-row-price",children:o.jsx("span",{className:"payment-plan__pricing-current h1",children:g3(_)})})]},v.id);const N=a.tier??(b?a.title:void 0),A=o.jsx(Ml,{showPrice:!0,product:{type:y,code:v.code,name:S,label:N,price:_,originalPrice:v.originals?.[n]??void 0,discountLabel:k},bg:b3(b,a.id)}),D=()=>r?.({...v,productId:a.id,productTitle:a.title,preview:A});return o.jsx("div",{className:"payment-plan__pricing-card",onClick:D,onKeyDown:r?H=>{H.target===H.currentTarget&&(H.key==="Enter"||H.key===" ")&&(H.preventDefault(),D())}:void 0,role:r?"button":void 0,tabIndex:r?0:void 0,children:A},v.id)})})})})]})}function Ph({variant:e="default"}){return o.jsxs("div",{className:`pass-card-bg pass-card-bg--${e}`,"aria-hidden":"true",children:[o.jsx("div",{className:"pass-card-bg__circle pass-card-bg__circle--1"}),o.jsx("div",{className:"pass-card-bg__circle pass-card-bg__circle--2"}),o.jsx("div",{className:"pass-card-bg__circle pass-card-bg__circle--3"})]})}var f3=".ihabdevteam-core-scope .pass-card-bg-ihab{background:var(--color-white)}.ihabdevteam-core-scope .pass-card-bg-ihab__symbol{bottom:-24px;height:140px;-o-object-fit:contain;object-fit:contain;opacity:.06;position:absolute;right:-24px;width:140px}.ihabdevteam-core-scope .pass-card-bg-ihab__symbol-top{transform:translate(-48px) rotate(-90deg);transform-origin:top right;width:126.72px}";J(f3);var Pl='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 Rl={text:"#1a1a1a",sub:"var(--color-lightGray)",logoBase:"Logo_speechear_kr",copyrightColor:"#c9c9c9"};function Rh(){const e=lt(Rl,ga,fa);return o.jsx("div",{ref:e,className:"pass-card-bg pass-card-bg-ihab","aria-hidden":"true",children:o.jsx("span",{className:"pass-card-bg__symbol pass-card-bg-ihab__symbol-top",style:{"--symbol-url":`url("${Pl}")`}})})}var v3=".ihabdevteam-core-scope .pass-card-bg-left-color-grid{background:var(--color-white)}.ihabdevteam-core-scope .pass-card-bg-left-color-grid__bar{background:linear-gradient(120deg,var(--color-main),var(--color-sub));border-radius:16px 0 0 16px;height:100%;left:0;position:absolute;top:0;width:76%}.ihabdevteam-core-scope .pass-card-bg-left-color-grid__grid{--grid-line:rgba(73,156,223,.06);background-image:linear-gradient(rgba(73,156,223,.06) 1px,transparent 0),linear-gradient(90deg,rgba(73,156,223,.06) 1px,transparent 0);background-image:linear-gradient(var(--grid-line) 1px,transparent 1px),linear-gradient(90deg,var(--grid-line) 1px,transparent 1px);background-size:24px 24px;inset:0;position:absolute}.ihabdevteam-core-scope .pass-card--expired .pass-card-bg-left-color-grid__grid{--grid-line:transparent}.ihabdevteam-core-scope .pass-card--expired .pass-card-bg-left-color-grid__bar{background:var(--pass-card-expired-shape)}";J(v3);const $l={text:"#ffffff",sub:"var(--color-lightGray)",logoBase:"Logo_speechearManager_kr",logoColor:"_white",copyrightColor:"#ffffff"};function $h(e={}){const t=lt($l,ga,fa);return o.jsxs("div",{ref:t,className:"pass-card-bg pass-card-bg-left-color-grid","aria-hidden":"true",children:[o.jsx("div",{className:"pass-card-bg-left-color-grid__bar"}),o.jsx("div",{className:"pass-card-bg-left-color-grid__grid"}),o.jsx("span",{className:"pass-card-bg__symbol pass-card-bg-left-color-grid__symbol",style:{"--symbol-url":`url("${gr}")`}})]})}var y3=".ihabdevteam-core-scope .shortcut-badge{align-items:center;display:inline-flex;gap:4px;pointer-events:none;z-index:10}.ihabdevteam-core-scope .shortcut-badge--top-left{left:0;position:absolute;top:0;transform:translate(-25%,-25%) scale(1);transform:translate(-25%,-25%) scale(var(--shortcut-badge-scale,1))}.ihabdevteam-core-scope .shortcut-badge--top-right{position:absolute;right:0;top:0;transform:translate(25%,-25%) scale(1);transform:translate(25%,-25%) scale(var(--shortcut-badge-scale,1))}.ihabdevteam-core-scope .shortcut-badge--bottom-left{bottom:0;left:0;position:absolute;transform:translate(-25%,25%) scale(1);transform:translate(-25%,25%) scale(var(--shortcut-badge-scale,1))}.ihabdevteam-core-scope .shortcut-badge--bottom-right{bottom:0;position:absolute;right:0;transform:translate(25%,25%) scale(1);transform:translate(25%,25%) scale(var(--shortcut-badge-scale,1))}.ihabdevteam-core-scope .shortcut-badge__group{align-items:center;display:inline-flex;gap:4px}.ihabdevteam-core-scope .shortcut-badge__plus{color:var(--color-lightGray);font-size:11px;line-height:1}.ihabdevteam-core-scope .shortcut-badge__key{align-items:center;background:var(--color-lightBlack);border:2px solid var(--color-pureWhite);border-radius:var(--radius-sm);box-sizing:border-box;color:var(--color-white);display:inline-flex;font-family:inherit;font-size:11px;font-weight:400;justify-content:center;line-height:1;min-height:24px;min-width:24px;padding:0 5px;white-space:nowrap}";J(y3);function Il({keys:e,anchor:t="top-right",scale:a,className:r=""}){const n=Array.isArray(e)?e:[e];return o.jsx("span",{className:xe("shortcut-badge",`shortcut-badge--${t}`,r),style:a===void 0?void 0:{"--shortcut-badge-scale":String(a)},children:n.map((i,s)=>o.jsxs("span",{className:"shortcut-badge__group",children:[s>0&&o.jsx("span",{className:"shortcut-badge__plus",children:"+"}),o.jsx("kbd",{className:"shortcut-badge__key",children:i})]},`${i}-${s}`))})}var x3=".ihabdevteam-core-scope .sound-compass{--scb-idle-bg:var(--color-deepWhite);--scb-idle-border:var(--color-whiteLine);--scb-idle-fg:var(--color-lightGray);--scb-active-bg:var(--color-main);--scb-active-border:var(--color-main);--scb-active-fg:#fff;--scb-played-bg:var(--color-sub);--scb-played-border:var(--color-sub);--scb-played-fg:#fff;--scb-wrong-bg:#ef4444;--scb-wrong-border:#ef4444;--scb-wrong-fg:#fff;--scb-idle-hover-bg:var(--color-whiteLine);--scb-idle-hover-border:var(--color-lightGray);--scb-idle-hover-fg:var(--scb-idle-fg);--scb-focus-ring:var(--color-main);--scc-bg:var(--color-white);--scc-border:var(--color-whiteLine);--scc-fg:var(--color-lightGray);--scc-hover-bg:var(--color-deepWhite);--scc-hover-border:var(--color-lightGray);--scc-hover-fg:var(--color-darkGray);--scc-disabled-bg:var(--color-deepWhite);--scc-disabled-border:var(--color-whiteLine);--scc-disabled-fg:var(--color-whiteLine);align-items:center;display:flex;flex-direction:column;width:100%}.ihabdevteam-core-scope .sound-compass__svg{left:0;overflow:visible;position:absolute;top:0}.ihabdevteam-core-scope .sound-compass__speaker-btn{all:unset;align-items:center;border-radius:50%;border-style:solid;border-width:1px;box-sizing:border-box;display:flex;flex-direction:column;gap:1px;justify-content:center;position:relative;transition:background-color .15s,border-color .15s,color .15s;z-index:1}.ihabdevteam-core-scope .sound-compass__speaker-btn--idle{background:var(--scb-idle-bg);border-color:var(--scb-idle-border);color:var(--scb-idle-fg)}.ihabdevteam-core-scope .sound-compass__speaker-btn--active{background:var(--scb-active-bg);border-color:var(--scb-active-border);color:var(--scb-active-fg)}.ihabdevteam-core-scope .sound-compass__speaker-btn--correct,.ihabdevteam-core-scope .sound-compass__speaker-btn--played{background:var(--scb-played-bg);border-color:var(--scb-played-border);color:var(--scb-played-fg)}.ihabdevteam-core-scope .sound-compass__speaker-btn--wrong{background:var(--scb-wrong-bg);border-color:var(--scb-wrong-border);color:var(--scb-wrong-fg)}.ihabdevteam-core-scope .sound-compass__speaker-number{color:inherit;font-weight:700;line-height:1;-webkit-user-select:none;-moz-user-select:none;user-select:none}.ihabdevteam-core-scope .sound-compass__compass-wrap{flex-shrink:0;margin-bottom:24px;overflow:visible;position:relative}.ihabdevteam-core-scope .sound-compass__center{align-items:center;background:var(--scc-bg);border:1px solid var(--scc-border);border-radius:50%;color:var(--scc-fg);display:flex;justify-content:center;left:50%;pointer-events:none;position:absolute;top:50%;transform:translate(-50%,-50%)}@keyframes sound-compass-pulse{0%{opacity:0;transform:scale(.95)}8%{opacity:.45;transform:scale(1.05)}to{opacity:0;transform:scale(2.8);transform:scale(var(--sc-pulse-scale,2.8))}}.ihabdevteam-core-scope .sound-compass__center--button{-webkit-appearance:none;-moz-appearance:none;appearance:none;cursor:pointer;font:inherit;padding:0;pointer-events:auto;transition:background-color .15s,border-color .15s,color .15s}.ihabdevteam-core-scope .sound-compass__center--button:hover{background:var(--scc-hover-bg);border-color:var(--scc-hover-border);color:var(--scc-hover-fg)}.ihabdevteam-core-scope .sound-compass__center--button:focus-visible{outline:2px solid var(--scb-focus-ring);outline-offset:2px}.ihabdevteam-core-scope .sound-compass__center--disabled{background:var(--scc-disabled-bg);border-color:var(--scc-disabled-border);color:var(--scc-disabled-fg);cursor:default;pointer-events:none}.ihabdevteam-core-scope .sound-compass__pulse--center{z-index:0}.ihabdevteam-core-scope .sound-compass__pulse{animation:sound-compass-pulse 1s cubic-bezier(.33,1,.68,1) infinite;background:var(--sc-pulse-color,var(--scb-active-bg));border-radius:50%;height:40px;left:0;pointer-events:none;position:absolute;top:0;width:40px}.ihabdevteam-core-scope .sound-compass__pulse--idle{background:var(--sc-pulse-color,var(--scb-idle-bg))}.ihabdevteam-core-scope .sound-compass__pulse--active{background:var(--sc-pulse-color,var(--scb-active-bg))}.ihabdevteam-core-scope .sound-compass__pulse--correct,.ihabdevteam-core-scope .sound-compass__pulse--played{background:var(--sc-pulse-color,var(--scb-played-bg))}.ihabdevteam-core-scope .sound-compass__pulse--wrong{background:var(--sc-pulse-color,var(--scb-wrong-bg))}.ihabdevteam-core-scope .sound-compass__pulse--once{animation-duration:1s;animation-duration:var(--sc-pulse-duration-once,1s);animation-iteration-count:1}.ihabdevteam-core-scope .sound-compass__speaker-btn:hover{box-shadow:0 0 0 4px color-mix(in srgb,var(--scb-focus-ring) 14%,transparent)}.ihabdevteam-core-scope .sound-compass__speaker-btn--idle:hover{background:var(--scb-idle-hover-bg);border-color:var(--scb-idle-hover-border);color:var(--scb-idle-hover-fg)}.ihabdevteam-core-scope .sound-compass__speaker-btn:focus-visible{outline:2px solid var(--scb-focus-ring);outline-offset:2px}.ihabdevteam-core-scope .sound-compass__speaker-shortcut{pointer-events:none;z-index:2}.ihabdevteam-core-scope .sound-compass__speaker-pos{position:absolute}";J(x3);const fr=(e,t,a)=>e+(t-e)*a;function Ih({speakers:e,size:t=300,viewT:a=0,activeSpeakerId:r=null,playedIds:n,selectedId:i=null,answerId:s=null,showFeedback:c=!1,pulseSelected:u=!1,pulseSelectedDuration:d,pulseScale:p,clickable:m=!1,onSelectSpeaker:h,buttonSize:g=40,showIcon:f=!0,onCenterClick:b,centerLabel:y,centerDisabled:v=!1,centerAttention:C=!1,shortcutAnchor:w="top-right",shortcutScale:x,scaleShortcut:S=!1}){const _=Math.max(0,Math.min(1,a)),k=t/2,N=110/300,A=.18,D=I=>t*(N+(I-1)*A),H=I=>{const ee=D(I.row??1),pe=I.angleDeg*Math.PI/180;return{x:k+ee*Math.cos(pe),y:k+ee*Math.sin(pe)}},P=Math.max(...e.map(I=>I.row??1),1),T=t*.08,E=t*.1,L=t*.24,F=t-2*T,te=t-E-L,Z=t-L/2,V=l.useMemo(()=>[...new Set(e.map(I=>I.deg))].sort((I,ee)=>I-ee),[e]),j=V.length,M=Math.max(68,j>1?F/(j-1):0),$=l.useMemo(()=>new Map(V.map((I,ee)=>[I,ee])),[V]),W=I=>{const ee=$.get(I.deg)??0,pe=k+(ee-(j-1)/2)*M,ke=P>1?Math.min(68,te/(P-1)):0,Ce=ke*(P-1),R=E+(te-Ce)/2,oe=P===1?E+te*.4:R+(P-(I.row??1))*ke;return{x:pe,y:oe}},q=I=>{const ee=H(I),pe=W(I);return{x:fr(ee.x,pe.x,_),y:fr(ee.y,pe.y,_)}},X={x:k,y:fr(k,Z,_)},O=Math.round(g*1.2),Y=Math.round(Math.max(16,Math.min(80,g*.7))),z=[],re=new Map;for(const I of e){const ee=I.row??1;re.has(ee)||re.set(ee,[]),re.get(ee).push(I)}for(const[I,ee]of re.entries()){if(ee.length<2)continue;const pe=[...ee].sort((Ne,Ve)=>Ne.deg-Ve.deg),ke=pe.map(Ne=>q(Ne)),Ce=pe.map(Ne=>Ne.deg),R=Ce[Ce.length-1]-Ce[0],oe=R/(Ce.length-1),ae=360-R,ve=pe.length>=3&&oe>0&&ae<=oe*1.5,De=Math.round(D(I)*1e3)/1e3,ze=(Ne,Ve,Fe,be)=>{const Ke=(Ve.angleDeg-Ne.angleDeg+540)%360-180;if(Ke===0)return`L ${be.x} ${be.y}`;if(_===0)return`A ${De} ${De} 0 0 ${Ke>0?1:0} ${be.x} ${be.y}`;const We=(Ne.angleDeg+Ke/2)*Math.PI/180,Le={x:k+De*Math.cos(We),y:k+De*Math.sin(We)},Ge={x:(Fe.x+be.x)/2,y:(Fe.y+be.y)/2},vt={x:fr(Le.x,Ge.x,_),y:fr(Le.y,Ge.y,_)},Ue={x:2*vt.x-Ge.x,y:2*vt.y-Ge.y};return`Q ${Ue.x} ${Ue.y} ${be.x} ${be.y}`},Re=ve?[...pe,pe[0]]:pe,Me=ve?[...ke,ke[0]]:ke;let Ye=`M ${Me[0].x} ${Me[0].y}`;for(let Ne=1;Ne<Me.length;Ne++)Ye+=" "+ze(Re[Ne-1],Re[Ne],Me[Ne-1],Me[Ne]);z.push({key:`arc-${I}`,d:Ye})}const Q=l.useMemo(()=>new Set(n??[]),[n]),ne=I=>{if(r===I.id)return"active";if(c){if(I.id===s)return"correct";if(I.id===i&&i!==s)return"wrong"}return Q.has(I.id)?"played":"idle"},me=I=>r===I.id?"loop":c?I.id===s?"loop":null:u&&I.id===i?"once":null,ce=(I,ee)=>{switch(I){case"played":case"correct":return o.jsx(ed,{size:ee});case"wrong":return o.jsx(dd,{size:ee});default:return o.jsx(cd,{size:ee})}};return o.jsx("div",{className:"sound-compass",children:o.jsxs("div",{className:"sound-compass__compass-wrap",style:{width:t,height:t},children:[o.jsxs("svg",{width:t,height:t,viewBox:`0 0 ${t} ${t}`,className:"sound-compass__svg",children:[_===0&&e.map(I=>{const{x:ee,y:pe}=q(I);return o.jsx("line",{x1:X.x,y1:X.y,x2:ee,y2:pe,stroke:"#dde3ec",strokeWidth:"1"},I.id)}),z.map(I=>o.jsx("path",{d:I.d,fill:"none",stroke:"#dde3ec",strokeWidth:"1"},I.key))]}),C&&!v&&o.jsx("div",{className:"sound-compass__pulse sound-compass__pulse--active sound-compass__pulse--center",style:{width:O,height:O,left:X.x-O/2,top:X.y-O/2}}),b?o.jsx("button",{type:"button",className:`sound-compass__center sound-compass__center--button${v?" sound-compass__center--disabled":""}`,style:{width:O,height:O,left:X.x,top:X.y},"aria-label":y,"aria-disabled":v||void 0,tabIndex:v?-1:0,onClick:v?void 0:b,children:o.jsx(Wn,{size:Y,color:"currentColor",strokeWidth:1.5})}):o.jsx("div",{className:"sound-compass__center",style:{width:O,height:O,left:X.x,top:X.y},children:o.jsx(Wn,{size:Y,color:"currentColor",strokeWidth:1.5})}),e.map((I,ee)=>{const{x:pe,y:ke}=q(I),Ce=ne(I),R=me(I),oe={...x!==void 0||S?{"--shortcut-badge-scale":String(x??Math.max(.75,Math.min(3,g/56)))}:null,pointerEvents:m?"auto":"none",cursor:m?"pointer":"default",zIndex:Ce!=="idle"?10:1},ae=g,ve=Math.round(Math.max(10,Math.min(56,ae*.38))),De=Math.round(Math.max(7,Math.min(18,ae*.2))),ze=Math.round(Math.max(10,Math.min(56,ae*.4))),Re=f==="answered"&&(Ce==="played"||Ce==="correct"||Ce==="wrong"),Me=f===!0||Re,Ye=!Re;return o.jsxs("div",{className:"sound-compass__speaker-pos",style:{...oe,left:pe-ae/2,top:ke-ae/2},children:[R&&o.jsx("div",{className:`sound-compass__pulse sound-compass__pulse--${Ce}`+(R==="once"?" sound-compass__pulse--once":""),style:{width:ae,height:ae,...R==="once"&&d!==void 0?{"--sc-pulse-duration-once":`${d}ms`}:null,...p!==void 0?{"--sc-pulse-scale":String(p)}:null}}),o.jsxs("button",{type:"button",tabIndex:m?0:-1,"aria-disabled":m?void 0:!0,onClick:m?()=>h?.(I.id):void 0,className:`sound-compass__speaker-btn sound-compass__speaker-btn--${Ce}`,style:{width:ae,height:ae},"aria-label":I.label,children:[Me&&ce(Ce,ve),Ye&&o.jsx("span",{className:"sound-compass__speaker-number",style:{fontSize:f===!0?De:ze},children:ee+1})]}),I.shortcut&&o.jsx(Il,{keys:I.shortcut,anchor:w,className:"sound-compass__speaker-shortcut"})]},I.id)})]})})}function zh({children:e,position:t="top-left",size:a=24,className:r=""}){return o.jsx("span",{className:xe("circle-badge","circle-badge--number",`circle-badge--${a}`,`circle-badge--${t}`,r),children:e})}var C3=".ihabdevteam-core-scope .divider--horizontal{align-items:center;border:none;border-top:1px solid var(--color-whiteLine);display:flex;width:100%}.ihabdevteam-core-scope .divider--vertical{border:none;border-left:1px solid var(--color-whiteLine);display:inline-block;height:1em;vertical-align:middle;width:1px}.ihabdevteam-core-scope .divider--labeled{border-top:none;gap:var(--spacing-s)}.ihabdevteam-core-scope .divider__line{background:var(--color-whiteLine);flex:1 1 auto;height:1px}.ihabdevteam-core-scope .divider__label{color:var(--color-gray);flex:0 0 auto;white-space:nowrap}";J(C3);function Oh({orientation:e="horizontal",label:t,className:a=""}){const r=xe("divider",`divider--${e}`,t&&e==="horizontal"?"divider--labeled":"",a);return e==="vertical"?o.jsx("div",{className:r,role:"separator","aria-orientation":"vertical"}):t?o.jsxs("div",{className:r,role:"separator","aria-orientation":"horizontal",children:[o.jsx("span",{className:"divider__line"}),o.jsx("span",{className:"divider__label caption-1",children:t}),o.jsx("span",{className:"divider__line"})]}):o.jsx("div",{className:r,role:"separator","aria-orientation":"horizontal"})}var _3='.ihabdevteam-core-scope .radio{align-items:center;cursor:pointer;display:inline-flex;gap:var(--spacing-xs);position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none}.ihabdevteam-core-scope .radio input{height:0;opacity:0;position:absolute;width:0}.ihabdevteam-core-scope .radio__dot{background:var(--color-pureWhite);border:1.5px solid var(--color-whiteLine);border-radius:50%;display:inline-block;flex-shrink:0;height:20px;position:relative;transition:border-color .15s,background .15s;width:20px}.ihabdevteam-core-scope .radio__dot:before{background:var(--color-pureWhite);border-radius:50%;content:"";inset:4px;position:absolute;transform:scale(0);transition:transform .15s}.ihabdevteam-core-scope .radio input:checked+.radio__dot{background:var(--color-main);border-color:var(--color-main)}.ihabdevteam-core-scope .radio input:checked+.radio__dot:before{transform:scale(1)}.ihabdevteam-core-scope .radio:not(.radio--disabled):hover .radio__dot{border-color:var(--color-main)}.ihabdevteam-core-scope .radio input:focus-visible+.radio__dot{outline:2px solid var(--color-main);outline-offset:2px}.ihabdevteam-core-scope .radio__label{color:var(--color-black)}.ihabdevteam-core-scope .radio--disabled{cursor:not-allowed;opacity:.45}';J(_3);function zl({checked:e,onChange:t,name:a,value:r,disabled:n=!1,label:i,className:s=""}){const c=l.useId();return o.jsxs("label",{className:`radio${n?" radio--disabled":""} ${s}`.trim(),htmlFor:c,children:[o.jsx("input",{id:c,type:"radio",name:a,value:r,checked:e,disabled:n,onChange:u=>t?.(u.target.checked)}),o.jsx("span",{className:"radio__dot"}),i&&o.jsx("span",{className:"radio__label body-2",children:i})]})}var w3=".ihabdevteam-core-scope .radio-group{display:flex}.ihabdevteam-core-scope .radio-group--vertical{flex-direction:column;gap:var(--spacing-s)}.ihabdevteam-core-scope .radio-group--horizontal{flex-direction:row;flex-wrap:wrap;gap:var(--spacing-l)}";J(w3);function Fh({options:e,value:t,onChange:a,name:r,disabled:n=!1,direction:i="vertical",className:s=""}){const c=l.useId(),u=r??`radio-group-${c}`;return o.jsx("div",{className:`radio-group radio-group--${i} ${s}`.trim(),role:"radiogroup",children:e.map(d=>o.jsx(zl,{name:u,value:d.value,checked:t===d.value,disabled:n||d.disabled,label:d.label,onChange:p=>{p&&a?.(d.value)}},d.value))})}var k3=".ihabdevteam-core-scope .alert{align-items:flex-start;background:color-mix(in srgb,var(--alert-color) 10%,transparent);border:1px solid color-mix(in srgb,var(--alert-color) 25%,transparent);border-radius:var(--radius-sm);display:flex;gap:var(--spacing-s);padding:var(--spacing-m)}.ihabdevteam-core-scope .alert__icon{align-items:center;color:var(--alert-color);display:inline-flex;flex-shrink:0}.ihabdevteam-core-scope .alert__body{display:flex;flex:1 1 auto;flex-direction:column;gap:2px;min-width:0}.ihabdevteam-core-scope .alert__header{align-items:center;display:flex;gap:var(--spacing-xs)}.ihabdevteam-core-scope .alert__message--indented{margin-left:calc(20px + var(--spacing-xs))}.ihabdevteam-core-scope .alert__title{color:var(--color-black)}.ihabdevteam-core-scope .alert__message{color:var(--color-darkGray)}.ihabdevteam-core-scope .alert__dismiss{align-items:center;background:transparent;border:none;color:var(--color-gray);cursor:pointer;display:inline-flex;flex-shrink:0;font-size:18px;height:20px;justify-content:center;line-height:1;padding:0;width:20px}.ihabdevteam-core-scope .alert__dismiss:hover{color:var(--color-darkGray)}.ihabdevteam-core-scope .alert--info{--alert-color:var(--color-main)}.ihabdevteam-core-scope .alert--success{--alert-color:var(--color-success)}.ihabdevteam-core-scope .alert--warning{--alert-color:var(--color-warn)}.ihabdevteam-core-scope .alert--danger{--alert-color:var(--color-error)}";J(k3);const S3={info:"info",success:"check-circle",warning:"alert-triangle",danger:"alert-circle"};function Wh({tone:e="info",title:t,message:a,children:r,dismissible:n=!1,onDismiss:i,className:s=""}){const{t:c}=ge.useTranslation(),[u,d]=l.useState(!1),p=l.useCallback(()=>{d(!0),i?.()},[i]);if(u)return null;const m=xe("alert",`alert--${e}`,s),h=!!t,g=!!(a||r);return o.jsxs("div",{className:m,role:"alert",children:[o.jsxs("div",{className:"alert__body",children:[o.jsxs("div",{className:"alert__header",children:[o.jsx(Ie,{icon:S3[e],size:20,className:"alert__icon"}),h&&o.jsx("span",{className:"alert__title body-2",children:t}),!h&&g&&o.jsx("div",{className:"alert__message body-3",children:a??r})]}),h&&g&&o.jsx("div",{className:"alert__message alert__message--indented body-3",children:a??r})]}),n&&o.jsx("button",{type:"button",className:"alert__dismiss",onClick:p,"aria-label":c("common.close","\uB2EB\uAE30"),children:"\xD7"})]})}var A3=".ihabdevteam-core-scope .search-summary{align-items:center;background:var(--color-deepWhite);border:1px solid var(--color-whiteLine);border-radius:var(--radius-card);box-shadow:var(--shadow-card);box-sizing:border-box;color:var(--color-gray);display:inline-flex;gap:var(--spacing-xs);max-width:100%;padding:30px 20px;text-align:left}.ihabdevteam-core-scope .search-summary__icon{color:currentColor;display:inline-flex;flex-shrink:0}.ihabdevteam-core-scope .search-summary__text{min-width:0;overflow-wrap:anywhere;word-break:keep-all}.ihabdevteam-core-scope .search-summary__em{color:var(--color-main)}.ihabdevteam-core-scope .search-summary--ready{background:var(--color-white);color:var(--color-deepGray)}.ihabdevteam-core-scope .search-summary--ready .search-summary__em{color:var(--color-main)}.ihabdevteam-core-scope .search-summary--guide{background:var(--color-deepWhite);color:var(--color-gray)}.ihabdevteam-core-scope .search-summary--error{background:var(--color-white);color:var(--color-error)}.ihabdevteam-core-scope .search-summary--error .search-summary__em{color:var(--color-error)}";J(A3);const T3={ready:"search",guide:"info",error:"circle-alert"};function B3(e,t){const a=t.filter(Boolean);if(a.length===0)return e;const r=[];let n=0,i=0;for(const s of a){const c=e.indexOf(s,n);c<0||(c>n&&r.push(e.slice(n,c)),r.push(o.jsx("strong",{className:"search-summary__em body-2",children:s},i++)),n=c+s.length)}return n<e.length&&r.push(e.slice(n)),r}function Hh({status:e="guide",label:t,children:a,emphasis:r,icon:n,className:i=""}){const s=n===!1?null:n??T3[e],c=xe("search-summary",`search-summary--${e}`,i),u=t??a,d=typeof u=="string"&&r&&r.length>0?B3(u,r):u;return o.jsxs("div",{className:c,role:"status","aria-live":"polite",children:[s!=null&&o.jsx(Ie,{icon:s,size:18,className:"search-summary__icon"}),o.jsx("span",{className:"search-summary__text body-2",children:d})]})}function So({title:e,items:t}){const{t:a}=ge.useTranslation(),{anchorRect:r,openAt:n,close:i}=ko();return o.jsxs(o.Fragment,{children:[o.jsx(se,{size:24,type:"dot",icon:"info",variant:"transparent-gray",useBorder:!1,selected:!!r,ariaLabel:a("common.info","\uC124\uBA85"),onPointerEnter:s=>n(s.currentTarget),onPointerLeave:i,onFocus:s=>n(s.currentTarget),onBlur:i}),r&&o.jsx(to,{title:e,items:t,showIndex:t.length>1,anchorRect:r,onClose:i})]})}var N3=".ihabdevteam-core-scope .tabs{display:flex;flex-direction:column;gap:var(--spacing-m)}.ihabdevteam-core-scope .tabs__list{border-bottom:1px solid var(--color-whiteLine);display:flex;gap:var(--spacing-s)}.ihabdevteam-core-scope .tabs__tab{-webkit-appearance:none;-moz-appearance:none;appearance:none;background:transparent;border:none;border-bottom:2px solid transparent;color:var(--color-gray);cursor:pointer;padding:0 var(--spacing-xs);transition:color .15s,border-color .15s;white-space:nowrap}.ihabdevteam-core-scope .tabs__list--32 .tabs__tab{height:32px}.ihabdevteam-core-scope .tabs__list--40 .tabs__tab{height:40px}.ihabdevteam-core-scope .tabs__list--48 .tabs__tab{height:48px}.ihabdevteam-core-scope .tabs__tab:hover:not(:disabled){color:var(--color-darkGray)}.ihabdevteam-core-scope .tabs__tab:focus-visible{outline:2px solid var(--color-main);outline-offset:2px}.ihabdevteam-core-scope .tabs__tab--active{border-bottom-color:var(--color-main);color:var(--color-main)}.ihabdevteam-core-scope .tabs__tab:disabled{color:var(--color-disabled);cursor:not-allowed}.ihabdevteam-core-scope .tabs__panel{outline:none}.ihabdevteam-core-scope .tabs__panel:focus-visible{outline:2px solid var(--color-main);outline-offset:2px}";J(N3);function Vh({items:e=[],value:t,onChange:a,className:r="",size:n=40}){const i=l.useId(),{t:s}=ge.useTranslation(),c=l.useRef(null),u=t??e[0]?.key,d=()=>Array.from(c.current?.querySelectorAll('[role="tab"]:not(:disabled)')??[]),p=(g,f=d())=>{if(f.length===0)return;const b=(g%f.length+f.length)%f.length;f[b]?.focus(),f[b]?.click()},m=g=>{if(!["ArrowRight","ArrowDown","ArrowLeft","ArrowUp","Home","End"].includes(g.key))return;g.preventDefault();const f=d(),b=f.indexOf(g.currentTarget);g.key==="ArrowRight"||g.key==="ArrowDown"?p(b+1,f):g.key==="ArrowLeft"||g.key==="ArrowUp"?p(b-1,f):g.key==="Home"?p(0,f):p(f.length-1,f)},h=e.find(g=>g.key===u);return o.jsxs("div",{className:`tabs ${r}`.trim(),children:[o.jsx("div",{ref:c,className:`tabs__list tabs__list--${n}`,role:"tablist","aria-label":s("tabs.ariaLabel","\uD0ED"),children:e.map(g=>o.jsx("button",{id:`tabs__tab-${i}-${g.key}`,type:"button",role:"tab","aria-selected":g.key===u,"aria-controls":`tabs__panel-${i}-${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:m,children:g.label},g.key))}),h&&o.jsx("div",{id:`tabs__panel-${i}-${h.key}`,role:"tabpanel","aria-labelledby":`tabs__tab-${i}-${h.key}`,tabIndex:0,className:"tabs__panel",children:h.panel},h.key)]})}var D3=".ihabdevteam-core-scope .avatar{align-items:center;background:var(--color-lightGray-a10);color:var(--color-gray);display:inline-flex;flex-shrink:0;height:var(--avatar-size);justify-content:center;overflow:hidden;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;width:var(--avatar-size)}.ihabdevteam-core-scope .avatar--circle{border-radius:50%}.ihabdevteam-core-scope .avatar--rounded-square{border-radius:var(--radius-card)}.ihabdevteam-core-scope .avatar--xs{--avatar-size:24px}.ihabdevteam-core-scope .avatar--sm{--avatar-size:32px}.ihabdevteam-core-scope .avatar--md{--avatar-size:40px}.ihabdevteam-core-scope .avatar--lg{--avatar-size:56px}.ihabdevteam-core-scope .avatar--xl{--avatar-size:80px}.ihabdevteam-core-scope .avatar__image{height:100%;-o-object-fit:cover;object-fit:cover;width:100%}.ihabdevteam-core-scope .avatar__initials{font-size:calc(var(--avatar-size)*.4);font-weight:600;line-height:1}.ihabdevteam-core-scope .avatar__icon{align-items:center;display:inline-flex;justify-content:center}";J(D3);const E3={xs:12,sm:16,md:20,lg:28,xl:36};function j3(e){const t=e.trim().split(/\s+/).filter(Boolean);return t.length===0?"":t.length===1?[...t[0]].slice(0,2).join("").toUpperCase():([...t[0]][0]+[...t[t.length-1]][0]).toUpperCase()}function Gh({src:e,name:t,size:a="md",shape:r="circle",className:n=""}){const{t:i}=ge.useTranslation(),[s,c]=l.useState(!1),u=t?j3(t):"",d=!!e&&!s,p=!d&&!!u,m=t||i("avatar.ariaLabel","\uC0AC\uC6A9\uC790 \uC544\uBC14\uD0C0");return o.jsxs("span",{className:`avatar avatar--${a} avatar--${r} ${n}`.trim(),role:"img","aria-label":m,children:[d&&o.jsx("img",{className:"avatar__image",src:e,alt:m,onError:()=>c(!0)}),!d&&p&&o.jsx("span",{className:"avatar__initials","aria-hidden":"true",children:u}),!d&&!p&&o.jsx(Ie,{icon:"user-round",size:E3[a],className:"avatar__icon"})]})}var L3=".ihabdevteam-core-scope .file-upload{display:flex;flex-direction:column;gap:var(--spacing-s)}.ihabdevteam-core-scope .file-upload__dropzone{align-items:center;background:var(--color-deepWhite);border:1px dashed var(--color-whiteLine);border-radius:var(--radius-card);cursor:pointer;display:flex;flex-direction:column;gap:var(--spacing-xs);justify-content:center;padding:var(--spacing-xl);position:relative;transition:border-color .15s,background .15s}.ihabdevteam-core-scope .file-upload__dropzone:hover:not(.file-upload__dropzone--disabled){border-color:var(--color-main)}.ihabdevteam-core-scope .file-upload__dropzone:focus-visible{outline:2px solid var(--color-main);outline-offset:2px}.ihabdevteam-core-scope .file-upload__dropzone--dragging{background:var(--color-main-a10);border-color:var(--color-main)}.ihabdevteam-core-scope .file-upload__dropzone--disabled{cursor:not-allowed;opacity:.5}.ihabdevteam-core-scope .file-upload__icon{color:var(--color-gray)}.ihabdevteam-core-scope .file-upload__prompt{color:var(--color-gray);text-align:center}.ihabdevteam-core-scope .file-upload__browse-button{-webkit-appearance:none;-moz-appearance:none;appearance:none;background:var(--color-pureWhite);border:1px solid var(--color-whiteLine);border-radius:var(--radius-sm);color:var(--color-main);cursor:pointer;padding:var(--spacing-xs) var(--spacing-m)}.ihabdevteam-core-scope .file-upload__browse-button:disabled{color:var(--color-disabled);cursor:not-allowed}.ihabdevteam-core-scope .file-upload__input{height:1px;opacity:0;overflow:hidden;pointer-events:none;position:absolute;width:1px}.ihabdevteam-core-scope .file-upload__list{display:flex;flex-direction:column;gap:var(--spacing-xs);list-style:none;margin:0;padding:0}.ihabdevteam-core-scope .file-upload__list-item{align-items:center;background:var(--color-deepWhite);border-radius:var(--radius-sm);display:flex;gap:var(--spacing-s);justify-content:space-between;padding:var(--spacing-xs) var(--spacing-s)}.ihabdevteam-core-scope .file-upload__file-name{color:var(--color-darkGray);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ihabdevteam-core-scope .file-upload__remove-button{align-items:center;-webkit-appearance:none;-moz-appearance:none;appearance:none;background:transparent;border:none;color:var(--color-gray);cursor:pointer;display:inline-flex;flex-shrink:0;justify-content:center}.ihabdevteam-core-scope .file-upload__remove-button:hover{color:var(--color-error)}";J(L3);function M3(e,t){if(!t)return!0;const a=t.split(",").map(i=>i.trim()).filter(Boolean);if(a.length===0)return!0;const r=e.name.toLowerCase(),n=e.type.toLowerCase();return a.some(i=>{const s=i.toLowerCase();return s.startsWith(".")?r.endsWith(s):s.endsWith("/*")?n.startsWith(s.slice(0,-1)):n===s})}function qh({onFilesSelected:e,accept:t,multiple:a=!1,disabled:r=!1,showFileList:n=!0,files:i,onRemove:s,className:c=""}){const{t:u}=ge.useTranslation(),d=l.useRef(null),[p,m]=l.useState(!1),[h,g]=l.useState([]),f=i??h,b=_=>{if(!_||_.length===0)return;const k=Array.from(_).filter(A=>M3(A,t));if(k.length===0)return;const N=a?k:k.slice(0,1);if(i===void 0){const A=a?[...f,...N]:N;g(A),e?.(A)}else e?.(N)},y=_=>{_.preventDefault(),!r&&m(!0)},v=_=>{_.preventDefault(),m(!1)},C=_=>{_.preventDefault(),m(!1),!r&&b(_.dataTransfer.files)},w=_=>{b(_.target.files),_.target.value=""},x=()=>{r||d.current?.click()},S=_=>{if(s){s(_);return}if(i===void 0){const k=f.filter((N,A)=>A!==_);g(k),e?.(k)}};return o.jsxs("div",{className:`file-upload ${c}`.trim(),children:[o.jsxs("div",{className:xe("file-upload__dropzone",p&&"file-upload__dropzone--dragging",r&&"file-upload__dropzone--disabled"),role:"button",tabIndex:r?-1:0,"aria-disabled":r,onClick:x,onKeyDown:_=>{(_.key==="Enter"||_.key===" ")&&(_.preventDefault(),x())},onDragOver:y,onDragLeave:v,onDrop:C,children:[o.jsx(Ie,{icon:"upload",size:24,className:"file-upload__icon"}),o.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")}),o.jsx("button",{type:"button",className:"file-upload__browse-button body-3",disabled:r,onClick:_=>{_.stopPropagation(),x()},children:u("fileUpload.browseButton","\uD30C\uC77C \uC120\uD0DD")}),o.jsx("input",{ref:d,type:"file",className:"file-upload__input",accept:t,multiple:a,disabled:r,onChange:w,tabIndex:-1})]}),n&&f.length>0&&o.jsx("ul",{className:"file-upload__list",children:f.map((_,k)=>o.jsxs("li",{className:"file-upload__list-item body-3",children:[o.jsx("span",{className:"file-upload__file-name body-3",children:_.name}),o.jsx("button",{type:"button",className:"file-upload__remove-button","aria-label":u("fileUpload.removeAriaLabel",{name:_.name}),onClick:()=>S(k),children:o.jsx(Ie,{icon:"x",size:14})})]},`${_.name}-${k}`))})]})}var P3=".ihabdevteam-core-scope .breadcrumb{align-items:center;display:inline-flex}.ihabdevteam-core-scope .breadcrumb__list{align-items:center;display:flex;flex-wrap:wrap;gap:var(--spacing-xs);list-style:none;margin:0;padding:0}.ihabdevteam-core-scope .breadcrumb__item{align-items:center;display:inline-flex;gap:var(--spacing-xs)}.ihabdevteam-core-scope .breadcrumb__link{align-items:center;background:none;border:none;color:var(--color-gray);cursor:pointer;display:inline-flex;justify-content:center;margin:0;min-height:24px;min-width:24px;padding:0}.ihabdevteam-core-scope .breadcrumb__link:hover{color:var(--color-main);text-decoration:underline}.ihabdevteam-core-scope .breadcrumb__link:focus-visible{border-radius:var(--radius-xs);outline:2px solid var(--color-main);outline-offset:2px}.ihabdevteam-core-scope .breadcrumb__current{color:var(--color-darkGray)}.ihabdevteam-core-scope .breadcrumb__separator{align-items:center;color:var(--color-disabled);display:inline-flex;flex-shrink:0}";J(P3);function Yh({items:e,className:t=""}){return o.jsx("nav",{className:`breadcrumb ${t}`.trim(),"aria-label":"breadcrumb",children:o.jsx("ol",{className:"breadcrumb__list",children:e.map((a,r)=>{const n=r===e.length-1;return o.jsxs("li",{className:"breadcrumb__item",children:[n?o.jsx("span",{className:"breadcrumb__current body-3","aria-current":"page",children:a.label}):o.jsx("button",{type:"button",className:"breadcrumb__link body-3",onClick:a.onClick,children:a.label}),!n&&o.jsx(Ie,{icon:"chevron-right",size:14,className:"breadcrumb__separator"})]},r)})})})}var R3=".ihabdevteam-core-scope .rating{--rating-color:var(--color-warn);--rating-empty-color:var(--color-whiteLine);align-items:center;display:inline-flex;gap:2px}.ihabdevteam-core-scope .rating__item{align-items:center;background:none;border:none;display:inline-flex;justify-content:center;line-height:0;margin:0;padding:0}.ihabdevteam-core-scope .rating__item--interactive{cursor:pointer}.ihabdevteam-core-scope .rating__item--interactive:focus-visible{border-radius:var(--radius-xs);outline:2px solid var(--color-main);outline-offset:2px}.ihabdevteam-core-scope .rating--readOnly .rating__item{cursor:default}.ihabdevteam-core-scope .rating__star-wrap{display:inline-flex;line-height:0;position:relative}.ihabdevteam-core-scope .rating__star--empty{color:var(--rating-empty-color)}.ihabdevteam-core-scope .rating__star--empty svg{fill:var(--rating-empty-color)}.ihabdevteam-core-scope .rating__star-fill{display:inline-flex;height:100%;left:0;overflow:hidden;position:absolute;top:0;white-space:nowrap;width:100%}.ihabdevteam-core-scope .rating__star-fill--half{width:50%}.ihabdevteam-core-scope .rating__star--filled{color:var(--rating-color)}.ihabdevteam-core-scope .rating__star--filled svg{fill:var(--rating-color)}";J(R3);const $3={small:14,medium:20,large:28};function Uh({value:e,onChange:t,max:a=5,readOnly:r=!1,size:n="medium",ariaLabel:i,className:s=""}){const{t:c}=ge.useTranslation(),u=r||!t,[d,p]=l.useState(null),m=d??e,h=$3[n],g=x=>{u||t?.(x)},f=x=>{u||p(x)},b=l.useRef(null),y=x=>{const S=Math.min(a,Math.max(1,x));t?.(S),Array.from(b.current?.querySelectorAll("[data-star]")??[]).find(_=>_.dataset.star===String(S))?.focus()},v=x=>{if(!u){switch(x.key){case"ArrowRight":case"ArrowUp":y((e||0)+1);break;case"ArrowLeft":case"ArrowDown":y((e||1)-1);break;case"Home":y(1);break;case"End":y(a);break;default:return}x.preventDefault()}},C=e>=1&&e<=a?Math.round(e):1,w=()=>{u||p(null)};return o.jsx("div",{className:`rating rating--${n}${u?" rating--readOnly":""} ${s}`.trim(),ref:b,onKeyDown:v,role:u?"img":"radiogroup","aria-label":u?c("rating.valueLabel",{value:e,max:a}):i??c("rating.groupLabel","\uBCC4\uC810"),onMouseLeave:w,children:Array.from({length:a},(x,S)=>{const _=S+1,k=Math.max(0,Math.min(1,m-S)),N=k>0&&k<1,A=o.jsxs("span",{className:"rating__star-wrap",children:[o.jsx(Ie,{icon:"star",size:h,className:"rating__star rating__star--empty"}),k>0&&o.jsx("span",{className:`rating__star-fill${N?" rating__star-fill--half":""}`,children:o.jsx(Ie,{icon:"star",size:h,className:"rating__star rating__star--filled"})})]});return u?o.jsx("span",{className:"rating__item","aria-hidden":"true",children:A},_):o.jsx("button",{type:"button",className:"rating__item rating__item--interactive",role:"radio","aria-checked":e===_,"aria-label":c("rating.starLabel",{n:_}),"data-star":_,tabIndex:_===C?0:-1,onClick:()=>g(_),onMouseEnter:()=>f(_),children:A},_)})})}var I3=".ihabdevteam-core-scope .color-picker{display:flex;flex-wrap:wrap;gap:var(--spacing-xs)}.ihabdevteam-core-scope .color-picker__swatch{align-items:center;border:none;cursor:pointer;display:inline-flex;justify-content:center;padding:0;position:relative;transition:transform .12s,box-shadow .12s}.ihabdevteam-core-scope .color-picker__swatch--32{border-radius:8px;height:32px;width:32px}.ihabdevteam-core-scope .color-picker__swatch--40{border-radius:10px;height:40px;width:40px}.ihabdevteam-core-scope .color-picker__swatch--48{border-radius:12px;height:48px;width:48px}.ihabdevteam-core-scope .color-picker__swatch:hover{transform:scale(1.08)}.ihabdevteam-core-scope .color-picker__swatch:focus-visible{outline:2px solid var(--color-main);outline-offset:2px}.ihabdevteam-core-scope .color-picker__check{color:#fff}.ihabdevteam-core-scope .color-picker__check svg{display:block}";J(I3);const z3=20,O3=["#499cdf","#4dcdc0","#2fae9e","#e6b94e","#d9534f","#e06b68","#bfc7d1"];function Kh({value:e,onChange:t,palette:a=O3,size:r=40,className:n=""}){const{t:i}=ge.useTranslation();return o.jsx("div",{className:`color-picker ${n}`.trim(),role:"group",children:a.map(s=>{const c=e?.toLowerCase()===s.toLowerCase();return o.jsx("button",{type:"button",className:`color-picker__swatch color-picker__swatch--${r}`,style:{backgroundColor:s},onClick:()=>t(s),"aria-pressed":c,"aria-label":c?`${s} ${i("colorPicker.selected","\uC120\uD0DD\uB428")}`:s,children:c&&o.jsx(Ie,{icon:"check",size:z3,className:"color-picker__check"})},s)})})}var F3=".ihabdevteam-core-scope .count-tile{background:var(--color-deepWhite);border:1px solid var(--color-darkWhite);border-radius:16px;box-sizing:border-box;flex-shrink:0;height:72px;padding:12px;position:relative;transition:border-color .15s,background .15s;width:72px}.ihabdevteam-core-scope .count-tile__icon{color:var(--color-main);left:12px;position:absolute;top:12px}.ihabdevteam-core-scope .count-tile__count{bottom:12px;color:var(--color-darkGray);line-height:1;position:absolute;right:12px}.ihabdevteam-core-scope .count-tile--clickable{cursor:pointer}.ihabdevteam-core-scope .count-tile--clickable:hover{background:var(--color-white)}@media (max-width:767px){.ihabdevteam-core-scope .count-tile{border-radius:14px;height:60px;padding:10px;width:60px}.ihabdevteam-core-scope .count-tile__icon{left:8px;top:8px}.ihabdevteam-core-scope .count-tile__count{bottom:8px;right:8px}}";J(F3);function Zh({icon:e,count:t,title:a,className:r="",onClick:n,onMouseEnter:i,onMouseLeave:s}){const c=xe("count-tile",n&&"count-tile--clickable",r);return o.jsxs("div",{className:c,onClick:n,onKeyDown:n?u=>{u.key!=="Enter"&&u.key!==" "||(u.preventDefault(),u.currentTarget.click())}:void 0,onMouseEnter:i,onMouseLeave:s,role:n?"button":"img",tabIndex:n?0:void 0,"aria-label":a?`${a} ${t}`:String(t),children:[o.jsx(Ie,{icon:e,size:20,className:"count-tile__icon"}),o.jsx("span",{className:"count-tile__count h5","aria-hidden":"true",children:t})]})}var W3=".ihabdevteam-core-scope .dialog{align-items:center;background:rgba(16,24,32,.6);display:flex;inset:0;justify-content:center;padding:32px;position:fixed;z-index:2200;z-index:var(--z-modal,2200)}@supports (color:rgb(0 0 0/0)) and (top:var(--f )){.ihabdevteam-core-scope .dialog{background:var(--color-popupBlock,rgba(16,24,32,.6))}}.ihabdevteam-core-scope .dialog__surface{background:#fff;background:var(--color-pureWhite,#fff);border-radius:20px;border-radius:var(--radius-dialog,20px);box-shadow:var(--shadow-popup);max-height:calc(100vh - 64px);outline:none;overflow:auto;position:relative;width:100%}.ihabdevteam-core-scope .dialog__surface--sm{max-width:420px}.ihabdevteam-core-scope .dialog__surface--md{max-width:640px}.ihabdevteam-core-scope .dialog__surface--lg{max-width:1000px}.ihabdevteam-core-scope .dialog__surface--full{background:none;box-shadow:none;max-width:1000px;overflow:visible}.ihabdevteam-core-scope .dialog__header{padding:24px 24px 0}.ihabdevteam-core-scope .dialog__title{color:var(--color-black);margin:0}.ihabdevteam-core-scope .dialog__close{align-items:center;background:none;border:0;border-radius:999px;border-radius:var(--radius-full,999px);color:var(--color-gray);cursor:pointer;display:flex;height:40px;justify-content:center;position:absolute;right:12px;top:12px;transition:background .15s ease,color .15s ease;width:40px}.ihabdevteam-core-scope .dialog__close:hover{background:var(--color-darkWhite);color:var(--color-black)}.ihabdevteam-core-scope .dialog__close>svg{height:20px;width:20px}.ihabdevteam-core-scope .dialog__surface--full .dialog__close{background:hsla(0,0%,100%,.1);color:var(--color-pureWhite);right:0;top:-48px}.ihabdevteam-core-scope .dialog__surface--full .dialog__close:hover{background:hsla(0,0%,100%,.2)}.ihabdevteam-core-scope .dialog__body{padding:24px}.ihabdevteam-core-scope .dialog__surface--full .dialog__body{padding:0}@media (max-width:639px){.ihabdevteam-core-scope .dialog{padding:16px}.ihabdevteam-core-scope .dialog__body{padding:20px}}";J(W3);function H3(){return o.jsx("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round","aria-hidden":!0,children:o.jsx("path",{d:"M6 6l12 12M18 6 6 18"})})}function Xh({open:e,onClose:t,ariaLabel:a,title:r,children:n,size:i="md",closeOnBackdrop:s=!0,closeOnEscape:c=!0,showClose:u=!0,className:d,contentClassName:p}){const{t:m}=ge.useTranslation(),h=l.useId(),g=l.useRef(null),f=l.useCallback(()=>t(),[t]);return l.useEffect(()=>{if(!e)return;const b=document.activeElement,{overflow:y}=document.body.style;return document.body.style.overflow="hidden",g.current?.focus(),()=>{document.body.style.overflow=y,b?.focus?.()}},[e]),l.useEffect(()=>{if(!(!e||!c))return Cl(f)},[e,c,f]),_s(g,e),!e||typeof document>"u"?null:qt.createPortal(o.jsx("div",{className:xe("dialog",d),onClick:s?f:void 0,children:o.jsxs("div",{ref:g,role:"dialog","aria-modal":"true","aria-label":r?void 0:a,"aria-labelledby":r?h:void 0,tabIndex:-1,className:xe("dialog__surface",`dialog__surface--${i}`,p),onClick:b=>b.stopPropagation(),children:[r?o.jsx("div",{className:"dialog__header",children:o.jsx("h2",{id:h,className:"dialog__title h4b",children:r})}):null,u?o.jsx("button",{type:"button",className:"dialog__close","aria-label":m("common.close","\uB2EB\uAE30"),onClick:f,children:o.jsx(H3,{})}):null,o.jsx("div",{className:"dialog__body",children:n})]})}),document.body)}var V3=".ihabdevteam-core-scope .board{width:100%}.ihabdevteam-core-scope .board__head{align-items:flex-end;display:flex;flex-wrap:wrap;gap:var(--spacing-m);justify-content:space-between;margin-bottom:var(--spacing-m)}.ihabdevteam-core-scope .board__title{color:var(--color-text-primary);font-size:var(--text-body-2-size);font-weight:500;line-height:var(--text-body-2-line);margin:0}.ihabdevteam-core-scope .board__toolbar{align-items:center;display:flex;gap:var(--spacing-xs)}.ihabdevteam-core-scope .board__table{border-collapse:collapse;border-top:1px solid var(--color-text-primary);text-align:left;width:100%}.ihabdevteam-core-scope .board__caption{clip-path:inset(50%);height:1px;overflow:hidden;position:absolute;white-space:nowrap;width:1px}.ihabdevteam-core-scope .board__th{border-bottom:1px solid var(--color-border);color:var(--color-text-primary);font-size:var(--text-body-3-size);font-weight:500;line-height:var(--text-body-3-line);padding:14px 0}.ihabdevteam-core-scope .board__row{border-bottom:1px solid var(--color-border);transition:background .15s ease;transition:background var(--duration-fast,.15s) var(--ease-out,ease)}.ihabdevteam-core-scope .board__row:hover{background:var(--color-surface-raised)}.ihabdevteam-core-scope .board__td{color:var(--color-text-primary);font-size:var(--text-body-3-size);line-height:var(--text-body-3-line);padding:var(--spacing-m) 0}.ihabdevteam-core-scope .board__cell--left{text-align:left}.ihabdevteam-core-scope .board__cell--center{text-align:center}.ihabdevteam-core-scope .board__cell--right{text-align:right}.ihabdevteam-core-scope .board__state{color:var(--color-text-secondary);font-size:var(--text-body-3-size);padding:56px 0;text-align:center}";J(V3);function Qh({columns:e,rows:t,rowKey:a,title:r,toolbar:n,empty:i="\uB4F1\uB85D\uB41C \uD56D\uBAA9\uC774 \uC5C6\uC2B5\uB2C8\uB2E4.",loading:s,caption:c,className:u=""}){const d=!s&&t.length===0;return o.jsxs("div",{className:xe("board",u),children:[r||n?o.jsxs("div",{className:"board__head",children:[r?o.jsx("h2",{className:"board__title",children:r}):o.jsx("span",{}),n?o.jsx("div",{className:"board__toolbar",children:n}):null]}):null,o.jsxs("table",{className:"board__table",children:[c?o.jsx("caption",{className:"board__caption",children:c}):null,o.jsx("thead",{children:o.jsx("tr",{children:e.map(p=>o.jsx("th",{scope:"col",className:xe("board__th",`board__cell--${p.headerAlign??p.align??"left"}`),style:p.width?{width:p.width}:void 0,children:p.header},p.key))})}),o.jsx("tbody",{children:s?o.jsx("tr",{children:o.jsx("td",{className:"board__state",colSpan:e.length,children:s})}):d?o.jsx("tr",{children:o.jsx("td",{className:"board__state",colSpan:e.length,children:i})}):t.map((p,m)=>o.jsx("tr",{className:"board__row",children:e.map(h=>o.jsx("td",{className:xe("board__td",`board__cell--${h.align??"left"}`),children:h.render(p,m)},h.key))},a(p,m)))})]})]})}var G3=".ihabdevteam-core-scope .person-card{display:flex;flex-direction:column}.ihabdevteam-core-scope .person-card__photo{background:var(--color-surface-raised);border-radius:var(--radius-full);flex-shrink:0;margin-inline:auto;max-width:100%;overflow:hidden}.ihabdevteam-core-scope .person-card__photo>*,.ihabdevteam-core-scope .person-card__photo>img{height:100%;-o-object-fit:cover;object-fit:cover;width:100%}.ihabdevteam-core-scope .person-card__name{color:var(--color-text-primary);font-size:var(--text-h4-size);font-weight:var(--text-h4-weight-bold);line-height:var(--text-h4-line);margin-top:var(--spacing-xl);text-align:center}.ihabdevteam-core-scope .person-card__role{color:var(--color-darkGray);font-size:var(--text-body-3-size);font-weight:var(--text-body-3-weight);line-height:var(--text-body-3-line);margin-top:6px;text-align:center}.ihabdevteam-core-scope .person-card__credentials{display:flex;flex-direction:column;gap:var(--spacing-xs);list-style:none;margin:var(--spacing-xl) auto 0;max-width:100%;padding:0;text-align:left;width:-moz-fit-content;width:fit-content}.ihabdevteam-core-scope .person-card__credentials>li{color:var(--color-darkGray);font-size:var(--text-body-3-size);line-height:var(--text-body-3-line)}@media (max-width:767px){.ihabdevteam-core-scope .person-card__credentials,.ihabdevteam-core-scope .person-card__name{margin-top:var(--spacing-l)}}";J(G3);function Jh({name:e,role:t,photo:a,media:r,credentials:n,size:i=190,className:s=""}){return o.jsxs("div",{className:xe("person-card",s),children:[o.jsx("div",{className:"person-card__photo",style:{width:i,height:i},children:r??(a?o.jsx("img",{src:a,alt:t?`${e} ${t}`:e}):null)}),o.jsx("h3",{className:"person-card__name",children:e}),t?o.jsx("p",{className:"person-card__role",children:t}):null,n?.length?o.jsx("ul",{className:"person-card__credentials",children:n.map(c=>o.jsx("li",{children:c},c))}):null]})}var q3=".ihabdevteam-core-scope .timeline{display:flex;flex-direction:column;gap:56px}.ihabdevteam-core-scope .timeline__title{color:var(--color-text-primary);font-size:var(--text-h1-size);font-weight:var(--text-h1-weight);letter-spacing:var(--text-h1-spacing);line-height:var(--text-h1-line);margin:0}.ihabdevteam-core-scope .timeline__rows{border-top:1px solid var(--color-border);list-style:none;margin:var(--spacing-m) 0 0;padding:0}.ihabdevteam-core-scope .timeline__row{border-bottom:1px solid var(--color-border);display:flex;gap:40px;padding:var(--spacing-l) 0}.ihabdevteam-core-scope .timeline__label{color:var(--color-text-primary);flex-shrink:0;font-size:var(--text-body-2-size);font-weight:var(--text-body-2-weight-bold);line-height:var(--text-body-2-line);padding-top:1px;width:28px}.ihabdevteam-core-scope .timeline__items{display:flex;flex-direction:column;gap:4px}.ihabdevteam-core-scope .timeline__items>p{color:var(--color-text-primary);font-size:var(--text-body-2-size);font-weight:var(--text-body-2-weight);line-height:var(--text-body-2-line);margin:0}@media (max-width:767px){.ihabdevteam-core-scope .timeline{gap:40px}.ihabdevteam-core-scope .timeline__row{gap:var(--spacing-xl)}}";J(q3);function em({groups:e,className:t=""}){return o.jsx("div",{className:xe("timeline",t),children:e.map(a=>o.jsxs("section",{className:"timeline__group",children:[o.jsx("h3",{className:"timeline__title",children:a.title}),o.jsx("ul",{className:"timeline__rows",children:a.entries.map((r,n)=>o.jsxs("li",{className:"timeline__row",children:[r.label?o.jsx("span",{className:"timeline__label",children:r.label}):null,o.jsx("div",{className:"timeline__items",children:r.items.map((i,s)=>o.jsx("p",{children:i},s))})]},`${r.label??""}-${n}`))})]},a.title))})}var Y3=".ihabdevteam-core-scope .publication-card{background:var(--color-surface-raised);border-radius:var(--radius-m);box-sizing:border-box;display:flex;flex-direction:column;padding:36px var(--spacing-xl) 32px;position:relative}.ihabdevteam-core-scope .publication-card__badge{height:88px;pointer-events:none;position:absolute;right:var(--spacing-xl);top:0}.ihabdevteam-core-scope .publication-card__badge>*,.ihabdevteam-core-scope .publication-card__badge>img{height:100%;width:auto}.ihabdevteam-core-scope .publication-card__title{color:var(--color-text-primary);font-size:var(--text-h4-size);font-weight:var(--text-h4-weight-bold);line-height:var(--text-h4-line);margin:0;padding-right:96px;position:relative;z-index:1}.ihabdevteam-core-scope .publication-card__kind{color:var(--color-darkGray);font-size:var(--text-body-3-size);font-weight:var(--text-body-3-weight);line-height:var(--text-body-3-line);margin:var(--spacing-m) 0 0}.ihabdevteam-core-scope .publication-card__body{color:var(--color-darkGray);font-size:var(--text-caption-1-size);line-height:1.65;margin:var(--spacing-m) 0 0}@media (max-width:767px){.ihabdevteam-core-scope .publication-card{padding:32px var(--spacing-l) 28px}.ihabdevteam-core-scope .publication-card__kind{margin-top:var(--spacing-m)}}.ihabdevteam-core-scope .publication-card__footer{margin-top:auto;padding-top:var(--spacing-l)}";J(Y3);function tm({title:e,kind:t,body:a,badge:r,badgeSrc:n,footer:i,width:s,className:c=""}){const u=r??(n?o.jsx("img",{src:n,alt:""}):null);return o.jsxs("div",{className:xe("publication-card",c),style:s?{width:s,flexShrink:0}:void 0,children:[u?o.jsx("div",{className:"publication-card__badge","aria-hidden":"true",children:u}):null,o.jsx("h3",{className:"publication-card__title",children:e}),t?o.jsx("p",{className:"publication-card__kind",children:t}):null,o.jsx("p",{className:"publication-card__body",children:a}),i?o.jsx("div",{className:"publication-card__footer",children:i}):null]})}var U3="@keyframes splash-logo{0%{opacity:0;transform:scale(.92)}18%{opacity:1;transform:scale(1)}75%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(1.04)}}.ihabdevteam-core-scope .splash-logo{align-items:center;background:var(--color-pureWhite);display:flex;inset:0;justify-content:center;position:absolute;z-index:1000;z-index:var(--z-modal,1000)}.ihabdevteam-core-scope .splash-logo__image{animation:splash-logo 3s cubic-bezier(.4,0,.2,1) forwards;animation:splash-logo var(--splash-logo-duration,3s) cubic-bezier(.4,0,.2,1) forwards;height:80px;height:var(--splash-logo-height,80px);width:auto}@media (prefers-reduced-motion:reduce){.ihabdevteam-core-scope .splash-logo__image{animation:none;opacity:1}}";J(U3);function am({logo:e,alt:t,onDone:a,durationMs:r=3e3}){const n=el(a);return l.useEffect(()=>{if(!n.current)return;const i=setTimeout(()=>n.current?.(),r);return()=>clearTimeout(i)},[r,n]),o.jsx("div",{className:"splash-logo",style:{"--splash-logo-duration":`${r}ms`},"aria-hidden":"true",children:o.jsx("img",{src:e,alt:t,className:"splash-logo__image"})})}var K3='.ihabdevteam-core-scope .section-header{text-align:center}.ihabdevteam-core-scope .section-header__eyebrow{align-items:center;display:flex;font-size:var(--text-caption-1-size);font-weight:600;gap:10px;justify-content:center;letter-spacing:.18em;line-height:var(--text-caption-1-line);margin:0}.ihabdevteam-core-scope .section-header__index{font-feature-settings:"tnum";font-variant-numeric:tabular-nums;opacity:.6}.ihabdevteam-core-scope .section-header__rule{background:currentColor;height:1px;opacity:.3;width:24px}.ihabdevteam-core-scope .section-header__title{font-family:inherit;font-family:var(--font-display,inherit);font-size:clamp(2rem,1.35rem + 2.1vw,2.9rem);font-weight:700;letter-spacing:-.01em;line-height:1.15;margin:0}.ihabdevteam-core-scope .section-header__eyebrow+.section-header__title{margin-top:var(--spacing-xl)}.ihabdevteam-core-scope .section-header__description{font-size:var(--text-body-2-size);line-height:1.9;margin-top:var(--spacing-m)}.ihabdevteam-core-scope .section-header--dark .section-header__eyebrow{color:var(--color-main)}.ihabdevteam-core-scope .section-header--dark .section-header__title{color:var(--color-text-primary)}.ihabdevteam-core-scope .section-header--dark .section-header__description{color:var(--color-darkGray)}.ihabdevteam-core-scope .section-header--light .section-header__eyebrow{color:hsla(0,0%,100%,.85)}.ihabdevteam-core-scope .section-header--light .section-header__title{color:var(--color-pureWhite)}.ihabdevteam-core-scope .section-header--light .section-header__description{color:hsla(0,0%,100%,.85)}';J(K3);function om({eyebrow:e,eyebrowIndex:t,title:a,description:r,level:n=2,tone:i="dark",className:s=""}){const c=n===1?"h1":"h2";return o.jsxs("div",{className:xe("section-header",`section-header--${i}`,s),children:[e?o.jsxs("p",{className:"section-header__eyebrow",children:[t?o.jsxs(o.Fragment,{children:[o.jsx("span",{className:"section-header__index",children:t}),o.jsx("span",{"aria-hidden":!0,className:"section-header__rule"})]}):null,e]}):null,a?o.jsx(c,{className:"section-header__title",children:a}):null,r?o.jsx("div",{className:"section-header__description",children:r}):null]})}var Z3=".ihabdevteam-core-scope .company-meta{align-items:center;color:var(--color-gray);display:flex;flex-direction:column;font-size:var(--text-caption-1-size);gap:var(--spacing-xs);list-style:none;margin:0;padding:0}.ihabdevteam-core-scope .company-meta__item{align-items:center;display:flex}.ihabdevteam-core-scope .company-meta__divider{color:var(--color-whiteLine);display:none;padding-inline:var(--spacing-m)}@media (min-width:640px){.ihabdevteam-core-scope .company-meta{flex-direction:row;gap:0}.ihabdevteam-core-scope .company-meta__divider{display:inline}}";J(Z3);function rm({items:e,className:t=""}){return o.jsx("ul",{className:xe("company-meta",t),children:e.map((a,r)=>o.jsxs("li",{className:"company-meta__item",children:[r>0?o.jsx("span",{"aria-hidden":!0,className:"company-meta__divider",children:"|"}):null,a]},a))})}function Ol({value:e,onChange:t,suggestions:a,openOnFocus:r=!1}){const n=l.useId(),[i,s]=l.useState(!1),[c,u]=l.useState(-1),d=l.useRef(null),p=l.useMemo(()=>{if(!a.length)return[];const b=e??"";return b?a.filter(y=>y.toLowerCase().includes(b.toLowerCase())):r?a:[]},[a,e,r]);l.useEffect(()=>{i||u(-1)},[i]),l.useEffect(()=>()=>{d.current&&clearTimeout(d.current)},[]);const m=l.useCallback(b=>{t?.(b),s(!1)},[t]),h=l.useCallback(()=>s(!0),[]),g=l.useCallback(()=>{d.current=setTimeout(()=>s(!1),120)},[]),f=l.useCallback(b=>{b.key==="ArrowDown"?(b.preventDefault(),s(!0),u(y=>Math.min(p.length-1,y+1))):b.key==="ArrowUp"?(b.preventDefault(),u(y=>Math.max(-1,y-1))):b.key==="Enter"?c>=0&&!b.nativeEvent.isComposing&&m(p[c]):b.key==="Escape"&&i&&(b.preventDefault(),s(!1))},[p,c,i,m]);return{listId:n,open:i,activeIdx:c,filtered:p,handleFocus:h,handleBlur:g,handleKeyDown:f,handleSelect:m}}var X3=".ihabdevteam-core-scope .text-field{box-sizing:border-box;display:inline-flex;flex-direction:column;gap:6px;position:relative}.ihabdevteam-core-scope .text-field--full-width{display:flex;width:100%}.ihabdevteam-core-scope .text-field__label{align-items:center;color:var(--color-darkGray);display:flex;gap:4px}.ihabdevteam-core-scope .text-field__required{color:var(--color-main);line-height:1}.ihabdevteam-core-scope .text-field__wrap{align-items:center;background:var(--color-deepWhite);border:1px solid var(--color-whiteLine);border-radius:12px;box-sizing:border-box;display:flex;overflow:hidden;position:relative;transition:border-color .12s,background .12s,box-shadow .12s}.ihabdevteam-core-scope .text-field--s32 .text-field__wrap{border-radius:8px}.ihabdevteam-core-scope .text-field--s40 .text-field__wrap{border-radius:10px}.ihabdevteam-core-scope .text-field--s48 .text-field__wrap{border-radius:12px}.ihabdevteam-core-scope .text-field--s64 .text-field__wrap{border-radius:14px}.ihabdevteam-core-scope .text-field__wrap:focus-within{background:var(--color-white);border-color:var(--color-main);box-shadow:0 0 0 3px var(--color-main-a10)}.ihabdevteam-core-scope .text-field--error .text-field__wrap{border-color:var(--color-error)}.ihabdevteam-core-scope .text-field--error .text-field__wrap:focus-within{box-shadow:0 0 0 3px var(--color-error-a10)}.ihabdevteam-core-scope .text-field--disabled .text-field__wrap{cursor:not-allowed;opacity:.5}.ihabdevteam-core-scope .text-field--readonly .text-field__input{pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.ihabdevteam-core-scope .text-field--readonly .text-field__wrap{border-color:var(--color-darkWhite)}.ihabdevteam-core-scope .text-field__input{background:transparent;border:none;box-sizing:border-box;color:var(--color-darkGray);flex:1;margin:0;min-width:0;outline:none;padding:0 12px}.ihabdevteam-core-scope .text-field__input::-moz-placeholder{color:var(--color-lightGray)}.ihabdevteam-core-scope .text-field__input::placeholder{color:var(--color-lightGray)}.ihabdevteam-core-scope .text-field__input:disabled{cursor:not-allowed}.ihabdevteam-core-scope .text-field__input[readonly]{cursor:default}.ihabdevteam-core-scope .text-field__input--textarea{align-self:stretch;line-height:1.6;min-height:80px;padding:10px 12px;resize:vertical}.ihabdevteam-core-scope .text-field__input--auto{align-self:stretch;line-height:1.5;overflow:hidden;padding:0 12px;resize:none}.ihabdevteam-core-scope .text-field:has(.text-field__input--auto) .text-field__wrap,.ihabdevteam-core-scope .text-field:has(.text-field__input--textarea) .text-field__wrap{align-items:flex-start}.ihabdevteam-core-scope .text-field:has(.text-field__input--auto) .text-field__clear,.ihabdevteam-core-scope .text-field:has(.text-field__input--auto) .text-field__icon,.ihabdevteam-core-scope .text-field:has(.text-field__input--textarea) .text-field__clear,.ihabdevteam-core-scope .text-field:has(.text-field__input--textarea) .text-field__icon{margin-top:var(--spacing-s)}.ihabdevteam-core-scope .text-field--s32 .text-field__input:not(.text-field__input--textarea):not(.text-field__input--auto){height:30px}.ihabdevteam-core-scope .text-field--s40 .text-field__input:not(.text-field__input--textarea):not(.text-field__input--auto){height:38px}.ihabdevteam-core-scope .text-field--s48 .text-field__input:not(.text-field__input--textarea):not(.text-field__input--auto){height:46px}.ihabdevteam-core-scope .text-field--s64 .text-field__input:not(.text-field__input--textarea):not(.text-field__input--auto){height:62px;line-height:normal}.ihabdevteam-core-scope .text-field--display .text-field__input{font-weight:700;text-align:center}.ihabdevteam-core-scope .text-field--display .text-field__input::-moz-placeholder{color:transparent}.ihabdevteam-core-scope .text-field--display .text-field__input::placeholder{color:transparent}.ihabdevteam-core-scope .text-field--display .text-field__placeholder{align-items:center;color:var(--color-lightGray);display:flex;font-weight:400;inset:0;justify-content:center;pointer-events:none;position:absolute}.ihabdevteam-core-scope .text-field--display .text-field__input:not(:-moz-placeholder)~.text-field__placeholder{display:none}.ihabdevteam-core-scope .text-field--display .text-field__input:not(:placeholder-shown)~.text-field__placeholder{display:none}.ihabdevteam-core-scope .text-field--display.text-field--s48 .text-field__input{font-size:22px}.ihabdevteam-core-scope .text-field--display.text-field--s48 .text-field__placeholder{font-size:15px}.ihabdevteam-core-scope .text-field--display.text-field--s64 .text-field__input{font-size:28px;letter-spacing:-.3px}.ihabdevteam-core-scope .text-field--display.text-field--s64 .text-field__placeholder{font-size:16px}.ihabdevteam-core-scope .text-field--s32 .text-field__input--auto{height:30px;min-height:30px;padding-bottom:3px;padding-top:3px}.ihabdevteam-core-scope .text-field--s40 .text-field__input--auto{height:38px;min-height:38px;padding-bottom:7px;padding-top:7px}.ihabdevteam-core-scope .text-field--s48 .text-field__input--auto{height:46px;min-height:46px;padding-bottom:11px;padding-top:11px}.ihabdevteam-core-scope .text-field__icon{align-items:center;color:var(--color-lightGray);display:inline-flex;flex-shrink:0;height:20px;justify-content:center;width:20px}.ihabdevteam-core-scope .text-field__icon--left{margin-left:var(--spacing-s)}.ihabdevteam-core-scope .text-field__icon--right{margin-right:var(--spacing-s)}.ihabdevteam-core-scope .text-field__icon-svg{display:block}.ihabdevteam-core-scope .text-field--has-left-icon .text-field__input{padding-left:6px}.ihabdevteam-core-scope .text-field--has-right-icon .text-field__input{padding-right:6px}.ihabdevteam-core-scope .text-field--s32 .text-field__icon{height:16px;width:16px}.ihabdevteam-core-scope .text-field--s32 .text-field__input{font-size:14px;line-height:22px}.ihabdevteam-core-scope .text-field__clear{flex-shrink:0;margin-right:10px}.ihabdevteam-core-scope .text-field__suggestions{background:var(--color-white);border:1px solid var(--color-whiteLine);border-radius:var(--radius-sm);box-shadow:var(--shadow-dropdown);left:0;margin-top:var(--spacing-xs);max-height:220px;overflow:auto;padding:4px 0;position:absolute;right:0;top:100%;z-index:var(--z-dropdown)}.ihabdevteam-core-scope .text-field__suggestion{color:var(--color-darkGray);cursor:pointer;padding:8px 12px}.ihabdevteam-core-scope .text-field__suggestion.is-active,.ihabdevteam-core-scope .text-field__suggestion:hover{background:var(--color-deepWhite);color:var(--color-main)}.ihabdevteam-core-scope .text-field__footer{align-items:flex-start;display:flex;gap:var(--spacing-xs)}.ihabdevteam-core-scope .text-field__helper{color:var(--color-lightGray);flex:1}.ihabdevteam-core-scope .text-field--error .text-field__helper{color:var(--color-error)}.ihabdevteam-core-scope .text-field__count{color:var(--color-gray);flex-shrink:0;margin-right:12px;-webkit-user-select:none;-moz-user-select:none;user-select:none;white-space:nowrap}.ihabdevteam-core-scope .text-field--has-right-icon .text-field__count,.ihabdevteam-core-scope .text-field:has(.text-field__clear) .text-field__count{margin-right:8px}.ihabdevteam-core-scope .text-field__count--over{color:var(--color-error)}.ihabdevteam-core-scope .text-field:has(.text-field__input--textarea) .text-field__count{bottom:6px;margin:0;pointer-events:none;position:absolute;right:20px}.ihabdevteam-core-scope .text-field:has(.text-field__input--auto) .text-field__count{align-self:flex-end;margin-bottom:var(--spacing-s)}";J(X3);function Wa(e){const{value:t,defaultValue:a,name:r,inputRef:n,onChange:i,label:s,ariaLabel:c,required:u,placeholder:d,type:p="text",disabled:m=!1,readOnly:h=!1,error:g,helperText:f,maxLength:b,size:y=48,variant:v="input",fullWidth:C=!1,newline:w=!1,multiline:x=!1,rows:S=3,leftIcon:_,rightIcon:k,clearable:N=!1,list:A,showCount:D=!0,className:H="",onFocus:P,onBlur:T,onKeyDown:E,onEnter:L,inputMode:F,autoComplete:te,autoFocus:Z,suggestions:V,openOnFocus:j=!1}=e,{t:M}=ge.useTranslation(),$=l.useId();!s&&!c&&Zc(`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 W=`tf-${$}`,q=`tf-helper-${$}`,X=l.useRef(null),O=Ol({value:t??"",onChange:i,suggestions:V??[],openOnFocus:j}),Y=l.useCallback(R=>{X.current=R,typeof n=="function"?n(R):n&&(n.current=R)},[n]),z=t!==void 0,re=z&&p==="password",Q=(t??"").length;l.useEffect(()=>{const R=X.current;if(!re||!R)return;const oe=t??"";R.value!==oe&&(R.value=oe)},[re,t]),l.useEffect(()=>{if(!w||!X.current)return;const R=X.current;R.style.height="",R.scrollHeight>R.clientHeight&&(R.style.height=`${R.scrollHeight}px`)},[t,w]);const ne=b!=null&&Q>b,me=y===32?16:20,ce=xe("text-field",`text-field--s${y}`,v==="display"?"text-field--display":"",C?"text-field--full-width":"",m?"text-field--disabled":"",h?"text-field--readonly":"",g?"text-field--error":"",_?"text-field--has-left-icon":"",k||N?"text-field--has-right-icon":"",H),I={id:W,...re?{}:z?{value:t}:{defaultValue:a},ref:Y,placeholder:d,name:r,disabled:m,readOnly:h,autoFocus:Z,tabIndex:h?-1:void 0,maxLength:b,list:A,inputMode:F,autoComplete:te,"aria-label":!s&&c?c:void 0,"aria-required":u,"aria-invalid":!!g,"aria-describedby":f||g?q:void 0,role:V?"combobox":void 0,"aria-autocomplete":V?"list":void 0,"aria-haspopup":V?"listbox":void 0,"aria-expanded":V?O.open:void 0,"aria-controls":V?O.listId:void 0,"aria-activedescendant":V&&O.activeIdx>=0?`${O.listId}-option-${O.activeIdx}`:void 0,onChange:R=>i?.(R.target.value),onFocus:(R=>{P?.(R),V&&O.handleFocus()}),onBlur:(R=>{T?.(R),V&&O.handleBlur()}),onKeyDown:(R=>{L&&R.key==="Enter"&&!R.nativeEvent.isComposing&&(R.preventDefault(),L()),E?.(R),V&&O.handleKeyDown(R)})},ee=N&&!m&&!h&&Q>0,pe=()=>w?o.jsx("textarea",{...I,className:"text-field__input text-field__input--auto body-2",rows:1}):x?o.jsx("textarea",{...I,className:"text-field__input text-field__input--textarea body-2",rows:S}):o.jsx("input",{...I,type:p,className:"text-field__input body-2"}),ke=v==="display"&&!w&&!x&&!!d,Ce=()=>o.jsxs(o.Fragment,{children:[pe(),ke&&o.jsx("span",{className:"text-field__placeholder","aria-hidden":"true",children:d})]});return o.jsxs("div",{className:ce,children:[s&&o.jsxs("label",{htmlFor:W,className:"text-field__label caption-1",children:[s,u&&o.jsx("span",{className:"text-field__required",children:"*"})]}),o.jsxs("div",{className:"text-field__wrap",children:[_&&o.jsx("span",{className:"text-field__icon text-field__icon--left",children:o.jsx(Ie,{icon:_,label:"",className:"",svgClassName:"text-field__icon-svg",size:me})}),Ce(),b!=null&&D&&o.jsxs("span",{className:`text-field__count caption-2${ne?" text-field__count--over":""}`,children:[Q,"/",b]}),ee&&o.jsx(se,{size:24,type:"dot",icon:"x",variant:"transparent-gray",useBorder:!1,className:"text-field__clear",ariaLabel:M("textField.clearAriaLabel","\uC785\uB825\uAC12 \uC9C0\uC6B0\uAE30"),htmlType:"button",onMouseDown:R=>{R.preventDefault()},onClick:()=>i?.(""),tabIndex:-1}),k&&!ee&&o.jsx("span",{className:"text-field__icon text-field__icon--right",children:o.jsx(Ie,{icon:k,label:"",className:"",svgClassName:"text-field__icon-svg",size:me})})]}),V&&O.open&&O.filtered.length>0&&o.jsx("ul",{id:O.listId,className:"text-field__suggestions",role:"listbox",children:O.filtered.map((R,oe)=>o.jsx("li",{id:`${O.listId}-option-${oe}`,role:"option","aria-selected":oe===O.activeIdx,className:`text-field__suggestion body-2${oe===O.activeIdx?" is-active":""}`,onMouseDown:ae=>ae.preventDefault(),onClick:()=>{O.handleSelect(R),X.current?.focus()},children:R},`${R}-${oe}`))}),(f||g)&&o.jsx("div",{className:"text-field__footer",children:o.jsx("span",{id:q,className:"text-field__helper caption-1",role:g?"alert":void 0,children:g||f})})]})}var Q3=".ihabdevteam-core-scope .dropdown{display:inline-block;position:relative}.ihabdevteam-core-scope .dropdown--block{display:block;width:100%}.ihabdevteam-core-scope .dropdown--block .dropdown__trigger{min-width:0}.ihabdevteam-core-scope .dropdown--s40 .dropdown__trigger{border-radius:10px;height:40px}.ihabdevteam-core-scope .dropdown--s48 .dropdown__trigger{border-radius:12px;height:48px}.ihabdevteam-core-scope .dropdown__trigger{align-items:center;background:var(--color-deepWhite);border:1px solid var(--color-whiteLine);border-radius:12px;box-sizing:border-box;color:var(--color-darkGray);cursor:pointer;display:flex;font-family:var(--font-family);gap:var(--spacing-xs);height:48px;justify-content:space-between;min-width:120px;padding:0 12px;text-align:left;transition:border-color .15s,background .15s,box-shadow .15s;white-space:nowrap;width:100%}.ihabdevteam-core-scope .dropdown__trigger:hover:not(:disabled){border-color:var(--color-main)}.ihabdevteam-core-scope .dropdown__trigger:focus-visible{border-color:var(--color-main);box-shadow:0 0 0 3px var(--color-main-a10);outline:none}.ihabdevteam-core-scope .dropdown__trigger:disabled{background:var(--color-deepWhite);cursor:default;opacity:.5}.ihabdevteam-core-scope .dropdown--open .dropdown__trigger{background:var(--color-white);border-color:var(--color-main);box-shadow:0 0 0 3px var(--color-main-a10)}.ihabdevteam-core-scope .dropdown--error .dropdown__trigger{border:1px solid var(--color-error)}.ihabdevteam-core-scope .dropdown--error .dropdown__trigger:hover:not(:disabled),.ihabdevteam-core-scope .dropdown--error.dropdown--open .dropdown__trigger{border-color:var(--color-error);box-shadow:0 0 0 3px color-mix(in srgb,var(--color-error) 15%,transparent)}.ihabdevteam-core-scope .dropdown__trigger-label{flex:1;overflow:hidden;text-overflow:ellipsis}.ihabdevteam-core-scope .dropdown__trigger-label--placeholder{color:var(--color-lightGray)}.ihabdevteam-core-scope .dropdown__chevron{color:var(--color-gray);flex-shrink:0;height:16px;transition:transform .2s;width:16px}.ihabdevteam-core-scope .dropdown--open .dropdown__chevron{transform:rotate(180deg)}.ihabdevteam-core-scope .dropdown__menu{animation:dropdown-appear .12s ease;background:var(--color-white);border:1.5px solid var(--color-whiteLine);border-radius:var(--radius-card);box-shadow:var(--shadow-dropdown);box-sizing:border-box;max-height:260px;overflow-y:auto;overscroll-behavior-y:contain;padding:6px}@keyframes dropdown-appear{0%{opacity:0;transform:translateY(-6px)}to{opacity:1;transform:translateY(0)}}.ihabdevteam-core-scope .dropdown__option{align-items:center;background:transparent;border:none;border-radius:var(--radius-sm);box-sizing:border-box;color:var(--color-darkGray);cursor:pointer;display:flex;font-family:var(--font-family);gap:var(--spacing-xs);padding:9px 12px;text-align:left;transition:background .1s,color .1s;white-space:nowrap;width:100%}.ihabdevteam-core-scope .dropdown__option:hover{background:var(--color-deepWhite)}.ihabdevteam-core-scope .dropdown__option--active{background:var(--color-main-a10);color:var(--color-main)}.ihabdevteam-core-scope .dropdown__option--disabled{cursor:default;opacity:.4;pointer-events:none}.ihabdevteam-core-scope .dropdown__option-check{align-items:center;color:var(--color-main);display:flex;flex-shrink:0;height:14px;justify-content:center;width:14px}.ihabdevteam-core-scope .dropdown__option-check svg{height:14px;width:14px}";J(Q3);function Ut({options:e,value:t,onChange:a,placeholder:r,disabled:n=!1,block:i=!1,size:s=48,error:c=!1,className:u="",ariaLabel:d}){const{t:p}=ge.useTranslation(),m=r??p("dropdown.placeholder","\uC120\uD0DD"),h=l.useId(),g=l.useRef(null),f=l.useCallback(T=>{const E=window.innerHeight-T.bottom<260&&T.top>260;return{position:"fixed",left:T.left,minWidth:T.width,...E?{bottom:window.innerHeight-T.top+6}:{top:T.bottom+6},zIndex:9999}},[]),{open:b,setOpen:y,toggle:v,style:C,triggerRef:w,menuRef:x}=ao({computeStyle:f}),[S,_]=l.useState(-1),k=l.useCallback(()=>_(-1),[]),N=e.find(T=>T.value===t);l.useEffect(()=>{if(b){const T=e.findIndex(E=>E.value===t);_(T>=0?T:0),requestAnimationFrame(()=>{const E=x.current;if(!E)return;const L=E.querySelectorAll(".dropdown__option")[T];L&&(E.scrollTop=Math.max(0,L.offsetTop-E.clientHeight/2+L.clientHeight/2))})}},[b,e,t,x]);const A=l.useCallback(()=>{n||v()},[n,v]),D=l.useCallback(T=>{T.disabled||(a?.(T.value),y(!1))},[a,y]),H=l.useCallback(T=>{if(!n){if(!b){(T.key==="Enter"||T.key===" "||T.key==="ArrowDown")&&(T.preventDefault(),y(!0));return}if(T.key==="Escape"){T.preventDefault(),y(!1);return}T.key==="ArrowDown"?(T.preventDefault(),_(E=>{let L=E+1;for(;L<e.length&&e[L].disabled;)L++;return L<e.length?L:E})):T.key==="ArrowUp"?(T.preventDefault(),_(E=>{let L=E-1;for(;L>=0&&e[L].disabled;)L--;return L>=0?L:E})):T.key==="Enter"&&S>=0&&(T.preventDefault(),D(e[S]))}},[n,b,e,S,D,y]),P=b?o.jsx("div",{ref:x,id:h,className:"dropdown__menu",role:"listbox",style:C,onMouseLeave:k,children:e.map((T,E)=>o.jsxs("button",{id:`${h}-option-${E}`,type:"button",role:"option","aria-selected":T.value===t,className:xe("dropdown__option body-2",T.value===t?"dropdown__option--active":"",E===S?"dropdown__option--active":"",T.disabled?"dropdown__option--disabled":""),onMouseDown:L=>L.preventDefault(),onClick:()=>D(T),onMouseEnter:()=>_(E),disabled:T.disabled,children:[o.jsx("span",{className:"dropdown__option-check",children:T.value===t&&o.jsx("svg",{viewBox:"0 0 14 14",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",children:o.jsx("polyline",{points:"2 7 5.5 10.5 12 3.5"})})}),T.label]},T.value))}):null;return o.jsxs("div",{ref:g,className:xe("dropdown",`dropdown--s${s}`,b?"dropdown--open":"",i?"dropdown--block":"",c?"dropdown--error":"",u),onKeyDown:H,children:[o.jsxs("button",{ref:w,type:"button",className:"dropdown__trigger","aria-haspopup":"listbox","aria-expanded":b,"aria-controls":b?h:void 0,"aria-activedescendant":b&&S>=0?`${h}-option-${S}`:void 0,"aria-label":d,"aria-invalid":c||void 0,disabled:n,onClick:A,children:[o.jsx("span",{className:`dropdown__trigger-label body-2${N?"":" dropdown__trigger-label--placeholder"}`,children:N?N.label:m}),o.jsx("svg",{className:"dropdown__chevron",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:o.jsx("polyline",{points:"4 6 8 10 12 6"})})]}),typeof document<"u"&&qt.createPortal(P,g.current?.closest(".ihabdevteam-core-scope")??document.body)]})}var J3=".ihabdevteam-core-scope .pagination{align-items:center;display:flex;gap:4px}.ihabdevteam-core-scope .pagination__info{color:var(--color-darkGray);font-weight:600;min-width:48px;text-align:center}";J(J3);function vr({page:e,totalPages:t,onChange:a,prevLabel:r,nextLabel:n,className:i=""}){const{t:s}=ge.useTranslation(),c=r??s("common.prevPage","\uC774\uC804 \uD398\uC774\uC9C0"),u=n??s("common.nextPage","\uB2E4\uC74C \uD398\uC774\uC9C0"),d=()=>a(Math.max(1,e-1)),p=()=>a(Math.min(t,e+1));return o.jsxs("div",{className:xe("pagination",i),children:[o.jsx(se,{size:32,type:"dot",shape:"rounded",icon:"chevron-left",ariaLabel:c,disabled:e<=1,onClick:d}),o.jsxs("span",{className:"pagination__info body-3",children:[e," / ",t]}),o.jsx(se,{size:32,type:"dot",shape:"rounded",icon:"chevron-right",ariaLabel:u,disabled:e>=t,onClick:p})]})}var e8=".ihabdevteam-core-scope .segmented-control{background:var(--color-darkWhite);display:inline-flex;flex-shrink:0;flex-wrap:wrap;gap:var(--spacing-xs);overflow:hidden;padding:4px}.ihabdevteam-core-scope .segmented-control--pill{border-radius:999px}.ihabdevteam-core-scope .segmented-control--rounded{border-radius:12px}.ihabdevteam-core-scope .segmented-control .button{min-width:96px}.ihabdevteam-core-scope .segmented-control--32 .button{min-width:64px}.ihabdevteam-core-scope .segmented-control--40 .button{min-width:80px}.ihabdevteam-core-scope .segmented-control--48 .button{min-width:96px}.ihabdevteam-core-scope .segmented-control--no-bg{background:transparent;padding:0}.ihabdevteam-core-scope .segmented-control--full{display:flex;flex-wrap:nowrap;width:100%}.ihabdevteam-core-scope .segmented-control--full .button{flex:1 1 0;min-width:0}@media (max-width:767px){.ihabdevteam-core-scope .segmented-control{flex-shrink:1;min-width:0}.ihabdevteam-core-scope .segmented-control:has(>.button:nth-child(4):last-child){border-radius:14px;display:grid;grid-template-columns:repeat(2,1fr);width:100%}.ihabdevteam-core-scope .segmented-control:has(>.button:nth-child(4):last-child)>.button{justify-content:center;width:100%}.ihabdevteam-core-scope .segmented-control--pill:has(>.button:nth-child(5)){border-radius:14px}.ihabdevteam-core-scope .segmented-control:has(>.button:nth-child(5)){justify-content:center}}";J(e8);function Ha(e){const{t}=ge.useTranslation(),{options:a=[],value:r=a[0]?.key,onChange:n=y=>{},className:i="",size:s=48,shape:c="pill",useBG:u=!0,fullWidth:d=!1,ariaLabel:p}=e||{},m=l.useRef(null),h=a.filter(y=>!y.disabled),g=y=>{if(!h.length)return;const v=Math.max(0,h.findIndex(w=>w.key===r)),C=y==="first"?h[0]:y==="last"?h[h.length-1]:h[(v+y+h.length)%h.length];C&&(n(C.key),Array.from(m.current?.querySelectorAll("[data-segkey]")??[]).find(w=>w.dataset.segkey===C.key)?.focus())},f=y=>{switch(y.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}y.preventDefault()},b=h.some(y=>y.key===r)?r:h[0]?.key;return o.jsx("div",{ref:m,onKeyDown:f,className:xe("segmented-control",`segmented-control--${c}`,`segmented-control--${s}`,d&&"segmented-control--full",!u&&"segmented-control--no-bg",i),role:"radiogroup","aria-label":p??t("segmentedControl.ariaLabel","\uC120\uD0DD \uD0ED"),children:a.map(y=>o.jsx(se,{role:"radio","aria-checked":y.key===r,"data-segkey":y.key,tabIndex:y.key===b?0:-1,label:y.label,count:y.count,disabled:y.disabled,className:y.key===r?"is-selected":"",onClick:()=>{y.disabled||n(y.key)},size:s,shape:c,useBorder:!1,useBG:!1},y.key))})}var t8=".ihabdevteam-core-scope .toolbar{align-items:center;box-sizing:border-box;display:flex;flex-direction:row;flex-wrap:wrap;gap:var(--spacing-s);min-height:64px;padding-bottom:8px;padding-top:8px;width:100%}.ihabdevteam-core-scope .toolbar__row{display:contents}.ihabdevteam-core-scope .toolbar__row-end{align-items:center;display:flex;flex-wrap:wrap;gap:var(--spacing-s);justify-content:flex-end;margin-left:auto}.ihabdevteam-core-scope .toolbar__count{color:var(--color-gray);flex-shrink:0;margin:0;white-space:nowrap}.ihabdevteam-core-scope .toolbar .toolbar__search{flex-shrink:0;min-width:200px}@media (max-width:767px){.ihabdevteam-core-scope .toolbar{align-items:stretch;flex-direction:column;flex-wrap:wrap;padding-bottom:12px;padding-top:12px}.ihabdevteam-core-scope .toolbar__row{align-items:center;display:flex;flex-wrap:wrap;gap:var(--spacing-s)}.ihabdevteam-core-scope .toolbar .toolbar__search{flex:1;min-width:150px}}.ihabdevteam-core-scope .toolbar__count-highlight{color:var(--color-main)}";J(t8);function vn({count:e,search:t,segment:a,filters:r,pageSize:n,pagination:i,actions:s,className:c}){const{t:u}=ge.useTranslation(),d=e!=null&&o.jsxs("p",{className:"toolbar__count body-1",children:[e.prefix??u("common.totalPrefix","\uCD1D "),o.jsx("span",{className:"toolbar__count-highlight",children:e.value}),e.unit,e.suffix]}),p=!!(t||r?.length||n||i||s);return o.jsxs("div",{className:xe("toolbar",c),children:[o.jsxs("div",{className:"toolbar__row",children:[d,a&&(Array.isArray(a)?a:[a]).map((m,h)=>o.jsx(Ha,{size:40,...m},m.ariaLabel??h))]}),p&&o.jsx("div",{className:"toolbar__row",children:o.jsxs("div",{className:"toolbar__row-end",children:[t&&o.jsx(Wa,{className:"toolbar__search",size:40,value:t.value,onChange:t.onChange,placeholder:t.placeholder??u("common.search","\uAC80\uC0C9"),ariaLabel:t.placeholder??u("common.search","\uAC80\uC0C9"),clearable:!0}),r?.map((m,h)=>o.jsx(Ut,{size:40,options:m.options,value:m.value,onChange:m.onChange,ariaLabel:m.ariaLabel},h)),n&&o.jsx(Ut,{size:40,options:n.options,value:n.value,onChange:n.onChange,ariaLabel:n.ariaLabel??u("common.pageSizeSelect","\uD398\uC774\uC9C0\uB2F9 \uD45C\uC2DC \uAC1C\uC218")}),i&&o.jsx(vr,{page:i.page,totalPages:i.total,onChange:i.onChange,prevLabel:i.prevLabel,nextLabel:i.nextLabel}),s]})})]})}var a8=".ihabdevteam-core-scope .code-box{background:#eff8ff;background:var(--color-code-bg,#eff8ff);border:1px solid rgba(4,34,51,.06);border-radius:10px;color:#042233;color:var(--color-code-text,#042233);margin:0;overflow:hidden;padding:16px 20px}.ihabdevteam-core-scope .code-box__header{align-items:center;display:flex;gap:12px;justify-content:space-between;min-height:40px}.ihabdevteam-core-scope .code-box__title{align-items:center;color:rgba(4,34,51,.75);display:flex;letter-spacing:.02em}.ihabdevteam-core-scope .code-box__copy{flex-shrink:0}.ihabdevteam-core-scope .code-box__inner{background:transparent;color:#042233;color:var(--color-code-text,#042233);font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Roboto Mono,Courier New,monospace;font-size:13px;line-height:1.6;margin:0;overflow-wrap:anywhere;overflow-x:auto;padding:8px 0 0;white-space:pre-wrap;word-break:break-word}.ihabdevteam-core-scope .code-box__inner code{display:block;font-family:inherit;overflow-wrap:anywhere;white-space:pre-wrap;word-break:break-word}.ihabdevteam-core-scope .code-box--small .code-box__inner{font-size:12px}.ihabdevteam-core-scope .code-token{overflow-wrap:anywhere;white-space:pre-wrap;word-break:break-word}.ihabdevteam-core-scope .code-token.keyword{color:#6b46ff;font-weight:600}.ihabdevteam-core-scope .code-token.string{color:#0a9d58}.ihabdevteam-core-scope .code-token.comment{color:#6b7280;font-style:italic}.ihabdevteam-core-scope .code-token.command{color:#0b78d1}.ihabdevteam-core-scope .code-token.number{color:#d97706}.ihabdevteam-core-scope .code-token.operator{color:#dc2626}.ihabdevteam-core-scope .code-token.identifier,.ihabdevteam-core-scope .code-token.punctuation{color:#042233;color:var(--color-code-text,#042233)}";J(a8);function nm(e){return typeof e=="string"?e:typeof e=="number"?String(e):Array.isArray(e)?e.map(nm).join(""):""}function o8(e){let t=e.replace(/\r\n/g,`
|
|
834
834
|
`).replace(/\r/g,`
|
|
835
835
|
`);t=t.replace(/^\n+/,"").replace(/\n+$/,"");const a=t.split(`
|
|
836
836
|
`).map(i=>i.replace(/\t/g," ")),r=a.filter(i=>i.trim().length>0),n=r.length>0?Math.min(...r.map(i=>i.match(/^ */)?.[0].length??0)):0;return a.map(i=>i.slice(n)).join(`
|
|
837
837
|
`)}const r8=new Set(["pnpm","npm","yarn","node","git","curl","docker","cat","ls","cd","rm","mv","cp","echo","export"]),n8=/^(?: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 i8(e,t){let a=e;const r=[],n=/sh|bash/.test(t.toLowerCase()),i=(s,c)=>r.push({type:s,content:c});for(;a.length>0;){const s=a.match(/^\s+/);if(s){i("whitespace",s[0]),a=a.slice(s[0].length);continue}if(!n&&a.startsWith("//")){const f=a.indexOf(`
|
|
838
838
|
`),b=f===-1?a:a.slice(0,f);i("comment",b),a=a.slice(b.length);continue}if(n&&a.startsWith("#")){const f=a.indexOf(`
|
|
839
|
-
`),b=f===-1?a:a.slice(0,f);i("comment",b),a=a.slice(b.length);continue}const c=a.match(/^\/\*[\s\S]*?\*\//);if(c){i("comment",c[0]),a=a.slice(c[0].length);continue}const u=a.match(/^(`(?:\\.|[^`])*`|"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*')/);if(u){i("string",u[0]),a=a.slice(u[0].length);continue}const d=a.match(/^\d+(?:\.\d+)?/);if(d){i("number",d[0]),a=a.slice(d[0].length);continue}const p=a.match(n8);if(p){i("keyword",p[0]),a=a.slice(p[0].length);continue}const m=a.match(/^[A-Za-z_$][A-Za-z0-9_$-]*/);if(m){const f=m[0];i(n&&r8.has(f)?"command":"identifier",f),a=a.slice(f.length);continue}const h=a.match(/^[=+\-*/%<>!&|^~?:]+/);if(h){i("operator",h[0]),a=a.slice(h[0].length);continue}const g=a.match(/^[()[\]{};.,]/);if(g){i("punctuation",g[0]),a=a.slice(1);continue}i("other",a[0]),a=a.slice(1)}return r}function im({children:e,language:t="bash",title:a="",showCopy:r=!0,size:n="default",className:i=""}){const{t:s}=ge.useTranslation(),[c,u]=l.useState(!1),d=o8(nm(e)),p=l.useRef(null);l.useEffect(()=>()=>{p.current&&clearTimeout(p.current)},[]);const m=async()=>{try{if(!await is(d))return;u(!0),p.current&&clearTimeout(p.current),p.current=setTimeout(()=>u(!1),2e3)}catch{}},h=i8(d,t),g=n==="small"?"caption-1":"body-3";return o.jsxs("div",{className:xe("code-box",n==="small"?"code-box--small":"",i),children:[(a||r)&&o.jsxs("div",{className:"code-box__header",role:"toolbar","aria-label":s("common.codeBlock","\uCF54\uB4DC \uBE14\uB85D"),children:[o.jsx("div",{className:"code-box__title caption-1",children:a}),r&&o.jsx(se,{className:"code-box__copy",size:40,type:"dot",variant:"transparent-gray",useBorder:!1,icon:c?"check":"copy",onClick:m,ariaLabel:c?s("common.copied","\uBCF5\uC0AC\uB428"):s("common.copyCode","\uCF54\uB4DC \uBCF5\uC0AC")})]}),o.jsx("pre",{className:"code-box__inner","data-lang":t,children:o.jsx("code",{children:h.map((f,b)=>o.jsx("span",{className:`code-token ${f.type} ${g}`,children:f.content},b))})})]})}var s8=".ihabdevteam-core-scope .loader-spinner{align-items:center;display:inline-flex;justify-content:center}.ihabdevteam-core-scope .loader-spinner__svg{animation:loader-rotate 1s linear infinite;transform-origin:center}.ihabdevteam-core-scope .loader-spinner__bg{stroke:rgba(0,0,0,.08)}.ihabdevteam-core-scope .loader-spinner__fg{stroke:var(--color-main);stroke-dasharray:125;stroke-dashoffset:80;animation:loader-dash 1.2s ease-in-out infinite}@keyframes loader-rotate{to{transform:rotate(1turn)}}@keyframes loader-dash{0%{stroke-dashoffset:125}50%{stroke-dashoffset:35}to{stroke-dashoffset:125}}.ihabdevteam-core-scope .loader-bar{background:rgba(0,0,0,.06);border-radius:999px;height:8px;overflow:hidden;width:100%}.ihabdevteam-core-scope .loader-bar__inner{background:var(--color-main);height:100%;transition:width .22s cubic-bezier(.2,.8,.2,1);width:0}.ihabdevteam-core-scope .core-loader-spinner{align-items:center;display:inline-flex;justify-content:center}.ihabdevteam-core-scope .core-loader-spinner__svg{animation:core-loader-rotate 1s linear infinite;transform-origin:center}.ihabdevteam-core-scope .core-loader-spinner__bg{stroke:rgba(0,0,0,.08)}.ihabdevteam-core-scope .core-loader-spinner__fg{stroke:var(--color-main);stroke-dasharray:125;stroke-dashoffset:80;animation:core-loader-dash 1.2s ease-in-out infinite}@keyframes core-loader-rotate{to{transform:rotate(1turn)}}@keyframes core-loader-dash{0%{stroke-dashoffset:125}50%{stroke-dashoffset:35}to{stroke-dashoffset:125}}.ihabdevteam-core-scope .core-loader-bar{background:rgba(0,0,0,.06);border-radius:999px;height:8px;overflow:hidden;width:100%}.ihabdevteam-core-scope .core-loader-bar__inner{background:var(--color-main);height:100%;transition:width .22s cubic-bezier(.2,.8,.2,1);width:0}.ihabdevteam-core-scope .page-loading-center{display:flex;justify-content:center;padding:40px 0}";J(s8);function Ao(e){const{variant:t="spinner",size:a=24,progress:r=null,label:n}=e||{};if(t==="bar"){const s=Math.max(0,Math.min(100,Number(r)||0));return o.jsx("div",{className:"loader-bar",role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":s,"aria-label":n||"Loading",children:o.jsx("div",{className:"loader-bar__inner",style:{width:`${s}%`}})})}const i=typeof a=="number"?`${a}px`:a;return o.jsx("div",{className:"loader-spinner",style:{width:i,height:i},role:"status","aria-label":n||"Loading",children:o.jsxs("svg",{className:"loader-spinner__svg",viewBox:"0 0 50 50",width:a,height:a,children:[o.jsx("circle",{className:"loader-spinner__bg",cx:"25",cy:"25",r:"20",fill:"none",strokeWidth:"4"}),o.jsx("circle",{className:"loader-spinner__fg",cx:"25",cy:"25",r:"20",fill:"none",strokeWidth:"4",strokeLinecap:"round"})]})})}var l8='.ihabdevteam-core-scope .toggle{align-items:center;cursor:pointer;display:inline-flex;gap:var(--spacing-xs);position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none}.ihabdevteam-core-scope .toggle input{height:0;opacity:0;position:absolute;width:0}.ihabdevteam-core-scope .toggle__slider{background:#e2e8f0;background:var(--color-whiteLine,#e2e8f0);border-radius:26px;display:inline-block;flex-shrink:0;height:26px;position:relative;transition:background .2s;width:44px}.ihabdevteam-core-scope .toggle__slider:before{background:var(--color-pureWhite);border-radius:50%;box-shadow:0 1px 4px rgba(0,0,0,.15);content:"";height:20px;left:3px;position:absolute;top:3px;transition:transform .2s;width:20px}.ihabdevteam-core-scope .toggle input:checked+.toggle__slider{background:var(--color-main,var(--color-main))}.ihabdevteam-core-scope .toggle input:checked+.toggle__slider:before{transform:translateX(18px)}.ihabdevteam-core-scope .toggle input:focus-visible+.toggle__slider{outline:2px solid var(--color-main,var(--color-main));outline-offset:2px}.ihabdevteam-core-scope .toggle__label{color:var(--color-darkGray)}.ihabdevteam-core-scope .toggle--disabled{cursor:not-allowed;opacity:.45}';J(l8);function Fl({checked:e,onChange:t,disabled:a=!1,label:r,ariaLabel:n,labelPosition:i="right",className:s="",id:c}){const u=r&&o.jsx("span",{className:"toggle__label body-3",children:r});return o.jsxs("label",{className:`toggle${a?" toggle--disabled":""} ${s}`.trim(),children:[i==="left"&&u,o.jsx("input",{id:c,type:"checkbox",checked:e,disabled:a,onChange:d=>t?.(d.target.checked),"aria-label":!r&&n?n:void 0}),o.jsx("span",{className:"toggle__slider"}),i==="right"&&u]})}var c8=`.ihabdevteam-core-scope .checkbox{align-items:center;cursor:pointer;display:inline-flex;gap:8px;line-height:1;-webkit-user-select:none;-moz-user-select:none;user-select:none}.ihabdevteam-core-scope .checkbox--disabled{cursor:not-allowed;opacity:.4}.ihabdevteam-core-scope .checkbox__input{clip:rect(0 0 0 0);border:0;height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;white-space:nowrap;width:1px}.ihabdevteam-core-scope .checkbox__box{background:var(--color-white,var(--color-pureWhite));border:1.5px solid var(--color-whiteLine);border-radius:8px;border-radius:var(--radius-sm,8px);flex-shrink:0;height:24px;position:relative;transition:border-color .15s,background .15s;width:24px}.ihabdevteam-core-scope .checkbox__input:checked+.checkbox__box{background:var(--color-main,var(--color-main));border-color:var(--color-main,var(--color-main))}.ihabdevteam-core-scope .checkbox__input:checked+.checkbox__box:after{background:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 18 18'%3E%3Cpath stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.8' d='m4 9 3.5 3.5L14 6'/%3E%3C/svg%3E") 50%/cover no-repeat;content:"";inset:0;position:absolute}.ihabdevteam-core-scope .checkbox__input:indeterminate+.checkbox__box{background:var(--color-main,var(--color-main));border-color:var(--color-main,var(--color-main))}.ihabdevteam-core-scope .checkbox__input:indeterminate+.checkbox__box:after{background:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 18 18'%3E%3Cpath stroke='%23fff' stroke-linecap='round' stroke-width='2' d='M4.5 9h9'/%3E%3C/svg%3E") 50%/cover no-repeat;content:"";inset:0;position:absolute}.ihabdevteam-core-scope .checkbox:not(.checkbox--disabled):hover .checkbox__box{border-color:var(--color-main,var(--color-main))}.ihabdevteam-core-scope .checkbox__input:focus-visible+.checkbox__box{outline:2px solid var(--color-main,var(--color-main));outline-offset:2px}.ihabdevteam-core-scope .checkbox--large .checkbox__box{border-radius:10px;border-radius:var(--radius-s,10px);height:30px;width:30px}.ihabdevteam-core-scope .checkbox--small .checkbox__box{border-radius:4px;border-radius:var(--radius-xs,4px);height:16px;width:16px}.ihabdevteam-core-scope .checkbox__label{color:var(--color-darkGray)}.ihabdevteam-core-scope .checkbox--small .checkbox__label{font-size:13px}`;J(c8);function Wl({checked:e=!1,onChange:t,disabled:a,indeterminate:r,label:n,size:i="medium",className:s,title:c,ariaLabel:u}){const d=l.useRef(null),p=l.useId();return l.useEffect(()=>{d.current&&(d.current.indeterminate=!!r)},[r]),o.jsxs("label",{className:xe("checkbox",i==="small"&&"checkbox--small",i==="large"&&"checkbox--large",a&&"checkbox--disabled",s),htmlFor:p,title:c,children:[o.jsx("input",{ref:d,id:p,type:"checkbox",className:"checkbox__input",checked:e,onChange:m=>t?.(m.target.checked),disabled:a,"aria-label":!n&&u?u:void 0}),o.jsx("span",{className:"checkbox__box"}),n&&o.jsx("span",{className:"checkbox__label body-3",children:n})]})}var d8=".ihabdevteam-core-scope .bulk-bar{align-items:center;background:var(--color-pureWhite,var(--color-pureWhite));border:1px solid var(--color-main);border-radius:12px;border-radius:var(--radius-m,12px);bottom:24px;box-shadow:0 4px 20px rgba(0,0,0,.12);box-sizing:border-box;color:#1a1a1a;color:var(--color-gray900,#1a1a1a);display:flex;gap:12px;justify-content:space-between;margin-top:16px;min-height:60px;opacity:0;padding:10px 16px;pointer-events:none;position:sticky;transform:translateY(12px);transition:opacity .2s ease,transform .2s ease}.ihabdevteam-core-scope .bulk-bar--visible{opacity:1;pointer-events:auto;transform:translateY(0)}.ihabdevteam-core-scope .bulk-bar__count{color:#1a1a1a;color:var(--color-gray900,#1a1a1a);flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ihabdevteam-core-scope .bulk-bar__count b{color:var(--color-main)}.ihabdevteam-core-scope .bulk-bar__actions{display:flex;flex-shrink:0;gap:8px}.ihabdevteam-core-scope .bulk-bar__chips{align-items:center;display:flex;flex-wrap:wrap;gap:8px;gap:var(--spacing-xs,8px);min-width:0}.ihabdevteam-core-scope .bulk-bar__chips .button{white-space:nowrap}@media (max-width:767px){.ihabdevteam-core-scope .bulk-bar{flex-wrap:wrap}.ihabdevteam-core-scope .bulk-bar__actions{flex-wrap:wrap;justify-content:flex-end;width:100%}}.ihabdevteam-core-scope .bulk-bar__actions--stacked{align-items:stretch;flex-direction:column}";J(d8);function sm({count:e,actions:t,onClear:a,clearLabel:r="\uC120\uD0DD \uD574\uC81C",visible:n,content:i,max:s}){const{t:c}=ge.useTranslation(),u=n!==void 0?n:e>0,d=l.useRef(null),[p,m]=l.useState(!1);return l.useEffect(()=>{const h=d.current;if(!h)return;const g=()=>{const b=h.firstElementChild??h,y=Array.from(b.children);if(y.length<2){m(!1);return}const v=y[0].offsetTop;m(y.some(C=>C.offsetTop!==v))};if(g(),typeof ResizeObserver>"u")return;const f=new ResizeObserver(g);return f.observe(h),()=>f.disconnect()},[i,e]),o.jsxs("div",{className:`bulk-bar ${u?"bulk-bar--visible":""}`,children:[o.jsx("span",{ref:d,className:"bulk-bar__count body-2",children:i??o.jsx("b",{children:c("common.selectedCount",{count:e})})}),s!==void 0&&o.jsx(ht,{size:"small",fill:"soft",variant:"main",label:`${e} / ${s}`}),o.jsxs("div",{className:`bulk-bar__actions${p?" bulk-bar__actions--stacked":""}`,children:[o.jsx(se,{size:40,label:r,onClick:a}),t.map((h,g)=>o.jsx(se,{size:40,variant:h.variant??"default",icon:h.icon,label:h.label,onClick:h.onClick},g))]})]})}function Hl(e){const t=()=>{if(e){const[m,h]=e.split("-");return{y:+m,m:+h-1}}const p=new Date;return{y:p.getFullYear(),m:p.getMonth()}},[a,r]=l.useState(()=>t().y),[n,i]=l.useState(()=>t().m),s=l.useRef(e);l.useEffect(()=>{if(e===s.current)return;s.current=e;const p=t();r(p.y),i(p.m)},[e]);const c=l.useCallback(()=>{n===0?(r(p=>p-1),i(11)):i(p=>p-1)},[n]),u=l.useCallback(()=>{n===11?(r(p=>p+1),i(0)):i(p=>p+1)},[n]),d=l.useCallback((p,m)=>{r(p),i(m)},[]);return{viewY:a,viewM:n,prevMonth:c,nextMonth:u,setViewYM:d}}var u8=".ihabdevteam-core-scope .date-picker{position:relative;width:100%}.ihabdevteam-core-scope .date-picker__trigger{align-items:center;background:var(--color-deepWhite);border:1px solid var(--color-whiteLine);box-sizing:border-box;color:var(--color-darkGray);cursor:pointer;display:flex;justify-content:space-between;padding:0 12px;text-align:left;transition:border-color .12s,background .12s,box-shadow .12s;width:100%}.ihabdevteam-core-scope .date-picker--s40 .date-picker__trigger{border-radius:10px;height:40px}.ihabdevteam-core-scope .date-picker--s48 .date-picker__trigger{border-radius:12px;height:48px}.ihabdevteam-core-scope .date-picker--s64 .date-picker__trigger{border-radius:14px;height:64px}.ihabdevteam-core-scope .date-picker--open .date-picker__trigger,.ihabdevteam-core-scope .date-picker__trigger:focus{background:var(--color-white);border-color:var(--color-main);box-shadow:0 0 0 3px var(--color-main-a10);outline:none}.ihabdevteam-core-scope .date-picker__trigger:disabled{cursor:not-allowed;opacity:.5}.ihabdevteam-core-scope .date-picker__placeholder{color:var(--color-lightGray);white-space:nowrap}.ihabdevteam-core-scope .date-picker__value{color:var(--color-darkGray);white-space:nowrap}.ihabdevteam-core-scope .date-picker__icon{color:var(--color-lightGray);flex-shrink:0;transition:color .12s}.ihabdevteam-core-scope .date-picker--open .date-picker__icon{color:var(--color-main)}.ihabdevteam-core-scope .date-picker__dropdown{background:var(--color-white);border:1px solid var(--color-whiteLine);border-radius:12px;box-shadow:0 8px 24px rgba(0,0,0,.1);box-sizing:border-box;left:0;min-width:260px;padding:12px;position:absolute;top:calc(100% + 6px);z-index:200}.ihabdevteam-core-scope .date-picker__nav{align-items:center;display:flex;justify-content:space-between;margin-bottom:10px}.ihabdevteam-core-scope .date-picker__nav-dropdown{flex:1;margin:0 4px}.ihabdevteam-core-scope .date-picker__nav-dropdown .dropdown__trigger{background:transparent!important;border:none!important;border-radius:6px!important;box-shadow:none!important;gap:4px!important;height:32px!important;justify-content:center!important;transition:background .12s,color .12s!important}.ihabdevteam-core-scope .date-picker__nav-dropdown .dropdown__trigger:hover,.ihabdevteam-core-scope .date-picker__nav-dropdown.dropdown--open .dropdown__trigger{background:var(--color-deepWhite)!important}.ihabdevteam-core-scope .date-picker__nav-dropdown .dropdown__trigger-label{color:var(--color-darkGray)!important;flex:initial!important;font-weight:600!important}.ihabdevteam-core-scope .date-picker__nav-btn{align-items:center;background:var(--color-deepWhite);border:1px solid var(--color-whiteLine);border-radius:8px;color:var(--color-darkGray);cursor:pointer;display:flex;height:28px;justify-content:center;transition:border-color .12s,color .12s;width:28px}.ihabdevteam-core-scope .date-picker__nav-btn:hover{border-color:var(--color-main);color:var(--color-main)}.ihabdevteam-core-scope .date-picker__grid{grid-gap:2px;display:grid;gap:2px;grid-template-columns:repeat(7,1fr)}.ihabdevteam-core-scope .date-picker__dow{color:var(--color-lightGray);font-weight:600;padding:4px 0 6px;text-align:center}.ihabdevteam-core-scope .date-picker__dow:first-child{color:var(--color-error)}.ihabdevteam-core-scope .date-picker__dow:last-child{color:var(--color-main)}.ihabdevteam-core-scope .date-picker__day{align-items:center;aspect-ratio:1;background:transparent;border:none;border-radius:6px;color:var(--color-darkGray);cursor:pointer;display:flex;justify-content:center;transition:background .1s,color .1s;width:100%}.ihabdevteam-core-scope .date-picker__day:hover:not(:disabled){background:var(--color-main-a10);color:var(--color-main)}.ihabdevteam-core-scope .date-picker__day--sun:hover:not(:disabled){color:var(--color-error)}.ihabdevteam-core-scope .date-picker__day--sat:hover:not(:disabled){color:var(--color-main)}.ihabdevteam-core-scope .date-picker__day--sun{color:var(--color-error)}.ihabdevteam-core-scope .date-picker__day--sat{color:var(--color-main)}.ihabdevteam-core-scope .date-picker__day--today{font-weight:700;outline:1.5px solid var(--color-main);outline-offset:-1.5px}.ihabdevteam-core-scope .date-picker__day--selected{background:var(--color-main)!important;color:#fff!important;font-weight:700}.ihabdevteam-core-scope .date-picker__day--disabled{cursor:not-allowed;opacity:.3}";J(u8);const p8=["\uC77C","\uC6D4","\uD654","\uC218","\uBAA9","\uAE08","\uD1A0"];function lm(e,t){return new Date(e,t+1,0).getDate()}function h8(e,t){return new Date(e,t,1).getDay()}function To(e,t,a){return`${e}-${String(t+1).padStart(2,"0")}-${String(a).padStart(2,"0")}`}function m8(e){if(!e)return"";const[t,a,r]=e.split("-");return`${t}. ${a}. ${r}.`}function b8(e,t,a){const r=t?+t.split("-")[0]:e-10,n=a?+a.split("-")[0]:e+10,i=[];for(let s=r;s<=n;s++)for(let c=0;c<12;c++){const u=`${s}-${String(c+1).padStart(2,"0")}`;t&&u<t.slice(0,7)||a&&u>a.slice(0,7)||i.push({value:u,label:`${s}\uB144 ${c+1}\uC6D4`})}return i}function cm({value:e,onChange:t,size:a=48,min:r,max:n,disabled:i,placeholder:s="\uB0A0\uC9DC \uC120\uD0DD",className:c}){const{t:u}=ge.useTranslation(),d=new Date,{viewY:p,viewM:m,prevMonth:h,nextMonth:g,setViewYM:f}=Hl(e),b=l.useCallback(V=>{const j=window.innerHeight-V.bottom,M=300,$=j<M&&V.top>M;return{position:"fixed",left:V.left,width:V.width,minWidth:260,...$?{bottom:window.innerHeight-V.top+6}:{top:V.bottom+6},zIndex:9999}},[]),{open:y,setOpen:v,toggle:C,style:w,triggerRef:x,menuRef:S}=ao({computeStyle:b,onScroll:"reposition",onResize:"reposition",ignoreOutsideClickSelector:".dropdown__menu"});l.useEffect(()=>{if(!y)return;const V=S.current;return(V?.querySelector(".date-picker__day--selected")??V?.querySelector(".date-picker__day--today")??V?.querySelector(fn)??V)?.focus?.(),()=>{const j=document.activeElement;(!j||j===document.body)&&x.current?.focus?.()}},[y,S,x]);const[_,k]=l.useState(1),N=l.useRef(null),A=l.useRef(null);l.useEffect(()=>{if(!y)return;const V=To(d.getFullYear(),d.getMonth(),d.getDate()),j=e&&e.slice(0,7)===`${p}-${String(m+1).padStart(2,"0")}`?+e.slice(8):V.slice(0,7)===`${p}-${String(m+1).padStart(2,"0")}`?+V.slice(8):1;k(j)},[y]),l.useEffect(()=>{if(A.current==null)return;const V=A.current;A.current=null,N.current?.querySelector(`[data-day="${V}"]`)?.focus()}),l.useEffect(()=>{k(V=>Math.min(V,lm(p,m)))},[p,m]);const D=l.useCallback(V=>{let j=To(V.getFullYear(),V.getMonth(),V.getDate());r&&j<r&&(j=r),n&&j>n&&(j=n);const[M,$,W]=j.split("-").map(Number);(M!==p||$-1!==m)&&f(M,$-1),k(W),A.current=W},[r,n,p,m,f]),H=l.useCallback(V=>{const j=new Date(p,m,_),M=W=>{j.setDate(j.getDate()+W),D(j)},$=W=>{j.setMonth(j.getMonth()+W),D(j)};switch(V.key){case"ArrowLeft":M(-1);break;case"ArrowRight":M(1);break;case"ArrowUp":M(-7);break;case"ArrowDown":M(7);break;case"Home":M(-j.getDay());break;case"End":M(6-j.getDay());break;case"PageUp":V.shiftKey?$(-12):$(-1);break;case"PageDown":V.shiftKey?$(12):$(1);break;default:return}V.preventDefault()},[p,m,_,D]),P=l.useCallback(V=>{t(To(p,m,V)),v(!1)},[p,m,t,v]),T=V=>{const j=To(p,m,V);return!!(r&&j<r||n&&j>n)},E=[];for(let V=0;V<h8(p,m);V++)E.push(null);for(let V=1;V<=lm(p,m);V++)E.push(V);const L=a===64?20:a===40?16:18,F=b8(p,r,n),te=`${p}-${String(m+1).padStart(2,"0")}`,Z=y?qt.createPortal(o.jsxs("div",{ref:S,className:"date-picker__dropdown",style:w,role:"dialog","aria-label":u("datePicker.chooseDate","\uB0A0\uC9DC \uC120\uD0DD"),tabIndex:-1,children:[o.jsxs("div",{className:"date-picker__nav",children:[o.jsx("button",{type:"button",className:"date-picker__nav-btn",onClick:h,"aria-label":u("calendar.prevMonth","\uC774\uC804 \uB2EC"),children:o.jsx(td,{size:16,strokeWidth:2})}),o.jsx(Ut,{className:"date-picker__nav-dropdown",ariaLabel:u("datePicker.selectYearMonth","\uC5F0\uC6D4 \uC120\uD0DD"),options:F,value:te,onChange:V=>{const[j,M]=V.split("-");f(+j,+M-1)},block:!0,size:40}),o.jsx("button",{type:"button",className:"date-picker__nav-btn",onClick:g,"aria-label":u("calendar.nextMonth","\uB2E4\uC74C \uB2EC"),children:o.jsx(ad,{size:16,strokeWidth:2})})]}),o.jsxs("div",{className:"date-picker__grid",ref:N,onKeyDown:H,children:[p8.map(V=>o.jsx("div",{className:"date-picker__dow caption-1",children:V},V)),E.map((V,j)=>{if(V===null)return o.jsx("div",{},`e${j}`);const M=To(p,m,V),$=M===e,W=M===To(d.getFullYear(),d.getMonth(),d.getDate()),q=T(V),X=j%7;return o.jsx("button",{type:"button",disabled:q,"data-day":V,tabIndex:V===_?0:-1,"aria-current":W?"date":void 0,onClick:()=>!q&&P(V),className:xe("date-picker__day caption-1",$&&"date-picker__day--selected",W&&!$&&"date-picker__day--today",q&&"date-picker__day--disabled",X===0&&"date-picker__day--sun",X===6&&"date-picker__day--sat"),children:V},V)})]})]}),document.body):null;return o.jsxs("div",{className:xe("date-picker",`date-picker--s${a}`,y&&"date-picker--open",c),children:[o.jsxs("button",{ref:x,type:"button",className:"date-picker__trigger body-2",onClick:()=>!i&&C(),disabled:i,"aria-haspopup":"true","aria-expanded":y,children:[o.jsx("span",{className:e?"date-picker__value":"date-picker__placeholder",children:e?m8(e):s}),o.jsx(ud,{size:L,className:"date-picker__icon",strokeWidth:1.5})]}),Z]})}var g8=".ihabdevteam-core-scope .month-dropdown .dropdown__trigger{max-width:200px;min-width:200px;width:200px}.ihabdevteam-core-scope .month-dropdown .dropdown__menu{max-height:280px;overflow-y:auto;scrollbar-color:var(--color-darkWhite) transparent;scrollbar-width:thin}.ihabdevteam-core-scope .month-dropdown .dropdown__menu::-webkit-scrollbar{width:4px}.ihabdevteam-core-scope .month-dropdown .dropdown__menu::-webkit-scrollbar-thumb{background:var(--color-darkWhite);border-radius:var(--radius-xs)}.ihabdevteam-core-scope .manager-bar-chart-wrap{display:flex;flex-direction:column;gap:var(--spacing-s)}.ihabdevteam-core-scope .manager-bar-chart-gridline{background:var(--color-darkWhite);height:1px;left:0;pointer-events:none;position:absolute;right:0;z-index:-1}.ihabdevteam-core-scope .manager-bar-chart-gridline__label{color:var(--color-deepGray);font-size:11px;left:0;position:absolute;top:100%;white-space:nowrap}.ihabdevteam-core-scope .manager-bar-chart-inner{align-items:flex-start;display:flex;gap:var(--spacing-xs)}.ihabdevteam-core-scope .manager-bar-chart-scroll{-webkit-overflow-scrolling:touch;flex:1;overflow-x:auto;overflow-y:visible;scrollbar-width:none}.ihabdevteam-core-scope .manager-bar-chart-scroll::-webkit-scrollbar{display:none}.ihabdevteam-core-scope .manager-bar-chart-area{display:flex;flex-direction:column;min-width:-moz-max-content;min-width:max-content}.ihabdevteam-core-scope .manager-bar-chart-area svg{display:block}.ihabdevteam-core-scope .manager-bar-chart-x-axis{color:var(--color-deepGray);display:flex;font-size:11px;padding-top:6px}.ihabdevteam-core-scope .manager-bar-chart-x-axis__label{align-items:center;display:flex;flex:1;flex-direction:column;gap:1px;justify-content:flex-start;min-width:0;text-align:center;word-break:keep-all}.ihabdevteam-core-scope .manager-bar-chart-x-axis__label--future .caption-1{color:var(--color-whiteLine)}.ihabdevteam-core-scope .manager-bar-chart-x-axis__main{position:relative}.ihabdevteam-core-scope .manager-bar-chart-x-axis__today-dot{border-radius:50%;height:8px;position:absolute;right:calc(100% + 3px);top:50%;transform:translateY(-50%);width:8px}.ihabdevteam-core-scope .manager-bar-chart-plot{align-items:flex-end;display:flex;gap:0;isolation:isolate;position:relative}.ihabdevteam-core-scope .manager-bar-chart-col{align-items:flex-end;display:flex;flex:1;gap:2px;height:100%;justify-content:center}.ihabdevteam-core-scope .manager-bar-chart-stack{display:flex;flex-direction:column-reverse;min-width:0}.ihabdevteam-core-scope .manager-bar-chart-bar{border-radius:6px 6px 0 0;min-width:0}.ihabdevteam-core-scope .manager-bar-chart-stack-segment{width:100%}.ihabdevteam-core-scope .manager-bar-chart-detail-btn{margin-left:auto}";J(g8);var f8=".ihabdevteam-core-scope .manager-section{background:var(--color-white);border-radius:var(--radius-m);box-shadow:var(--shadow-card);margin-bottom:14px;min-width:320px;padding:20px}.ihabdevteam-core-scope .manager-section__head{align-items:flex-start;display:flex;gap:var(--spacing-xs);justify-content:space-between;margin-bottom:var(--spacing-s)}.ihabdevteam-core-scope .chart-section-icon{display:inline-flex;opacity:.35}.ihabdevteam-core-scope .chart-section-icon-inner{color:var(--color-darkGray);height:22px;width:22px}@media (max-width:767px){.ihabdevteam-core-scope .manager-section__head{align-items:flex-start;flex-direction:column;gap:var(--spacing-s)}.ihabdevteam-core-scope .manager-section-controls{flex-wrap:wrap}.ihabdevteam-core-scope .manager-section-controls .segmented-control{flex-wrap:nowrap}.ihabdevteam-core-scope .manager-section{min-width:0;padding:18px}}.ihabdevteam-core-scope .manager-section-controls{align-items:center;display:flex;gap:var(--spacing-xs)}.ihabdevteam-core-scope .manager-bar-chart-loading{align-items:center;display:flex;justify-content:center;min-height:186px}.ihabdevteam-core-scope .barchart-sub-row{align-items:flex-start;display:flex;justify-content:space-between;margin-bottom:var(--spacing-l)}.ihabdevteam-core-scope .barchart-total{align-items:baseline;display:flex;gap:4px}.ihabdevteam-core-scope .barchart-total--stacked{align-items:flex-start;flex-direction:column;gap:0}.ihabdevteam-core-scope .barchart-total--stacked .barchart-total__label,.ihabdevteam-core-scope .barchart-total--stacked .barchart-total__num,.ihabdevteam-core-scope .barchart-total--stacked .barchart-total__unit,.ihabdevteam-core-scope .barchart-total--stacked .barchart-total__value{line-height:1.1;margin:0}.ihabdevteam-core-scope .barchart-total__label{color:var(--color-gray)}.ihabdevteam-core-scope .barchart-total__value{align-items:baseline;display:flex;gap:4px}.ihabdevteam-core-scope .barchart-total__num{color:var(--color-black)}.ihabdevteam-core-scope .barchart-total__unit{color:var(--color-gray)}.ihabdevteam-core-scope .manager-bar-chart-legend{align-items:flex-end;color:var(--color-gray);display:flex;flex-direction:column;font-size:12px;gap:6px;padding-right:var(--spacing-xs)}.ihabdevteam-core-scope .manager-bar-chart-legend-item{align-items:center;display:inline-flex}.ihabdevteam-core-scope .manager-bar-chart-legend-dot{border-radius:50%;display:inline-block;height:8px;margin-right:4px;width:8px}.ihabdevteam-core-scope .manager-section--compact{min-width:160px;padding:20px}.ihabdevteam-core-scope .manager-section--compact .manager-section__head{margin-bottom:4px;min-height:28px}.ihabdevteam-core-scope .chart-section-title--small{color:var(--color-deepGray)}.ihabdevteam-core-scope .manager-section--compact .barchart-total__num{font-size:32px;line-height:1}.ihabdevteam-core-scope .manager-section--compact .barchart-total{flex-shrink:0}.ihabdevteam-core-scope .manager-section--compact .barchart-sub-row{margin-bottom:var(--spacing-s)}.ihabdevteam-core-scope .manager-section--compact .manager-bar-chart-legend{align-items:stretch;flex:1 1 auto;min-width:0}.ihabdevteam-core-scope .manager-section--compact .manager-bar-chart-legend-item{display:flex;justify-content:flex-end;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:100%}.ihabdevteam-core-scope .manager-section--full{flex:1 1 100%;width:100%}@media (max-width:767px){.ihabdevteam-core-scope .manager-section--compact{min-width:0}}";J(f8);function yn({items:e,className:t}){return o.jsx("div",{className:t?`manager-bar-chart-legend ${t}`:"manager-bar-chart-legend",children:e.map((a,r)=>o.jsxs("span",{className:"manager-bar-chart-legend-item",children:[o.jsx("span",{className:"manager-bar-chart-legend-dot",style:{background:a.color}}),a.label]},r))})}function vr({label:e,children:t}){return e?o.jsxs("div",{className:"barchart-total barchart-total--stacked",children:[o.jsx("span",{className:"barchart-total__label body-3",children:e}),o.jsx("span",{className:"barchart-total__value",children:t})]}):o.jsx("div",{className:"barchart-total",children:t})}function xn({title:e,titleClassName:t="h3",headRight:a,subRow:r,className:n,children:i}){return o.jsxs("section",{className:n?`manager-section ${n}`:"manager-section",children:[o.jsxs("div",{className:"manager-section__head",children:[o.jsx("div",{className:t,children:e}),a]}),r&&o.jsx("div",{className:"barchart-sub-row",children:r}),i]})}function oo(e,t){const a=new Date(e,t,1).getDay();return 1+(8-(a===0?7:a))%7}function v8(){const e=new Date;let t=e.getFullYear(),a=e.getMonth(),r=e.getDate();if(r<oo(t,a)){const s=new Date(t,a,0);t=s.getFullYear(),a=s.getMonth(),r=s.getDate()}const n=Math.floor((r-oo(t,a))/7),i=`${t}\uB144 ${a+1}\uC6D4`;return{monthKey:i,value:`${i}#${n}`}}function dm(e){const t=new Date,a=`${t.getFullYear()}\uB144 ${t.getMonth()+1}\uC6D4`,r=new Map;r.set(a,[]);for(const i of e){if(isNaN(i.date.getTime()))continue;const s=`${i.date.getFullYear()}\uB144 ${i.date.getMonth()+1}\uC6D4`;r.has(s)||r.set(s,[]),r.get(s).push(i)}const n={};for(const[i,s]of r){const c=i.match(/^(\d+)년 (\d+)월$/);if(!c)continue;const u=Number(c[1]),d=Number(c[2])-1,p=new Date(u,d+1,0).getDate(),m=u===t.getFullYear()&&d===t.getMonth(),h=t.getDate(),g=s.reduce((w,x)=>Math.max(w,x.parts?.length??0),0),f=new Array(p+1).fill(0),b=new Array(p+1).fill(0),y=Array.from({length:p+1},()=>new Array(g).fill(0));for(const w of s){const x=w.date.getDate();if(f[x]+=w.a,b[x]+=w.b,w.parts)for(let S=0;S<g;S++)y[x][S]+=w.parts[S]??0}const v=[];for(let w=1;w<=p;w++){const x=m&&w>h;v.push({label:String(w),a:x&&f[w]===0&&b[w]===0?-1:f[w],b:b[w],...g?{parts:y[w]}:{}})}const C=[];for(let w=oo(u,d);w<=p;w+=7){const x=Math.min(w+6,p);let S=0,_=0;const k=new Array(g).fill(0);for(let N=w;N<=x;N++){S+=f[N],_+=b[N];for(let A=0;A<g;A++)k[A]+=y[N][A]}C.push({label:`${C.length+1}\uC8FC`,sublabel:`[${w}\uC77C~${x}\uC77C]`,a:S,b:_,...g?{parts:k}:{}})}n[i]={weekly:C,daily:v}}return n}function y8(){const e=new Date,t=e.getFullYear(),a=e.getMonth()+1,r=[];for(let n=2024;n<=t;n++){const i=n===t?a:12;for(let s=1;s<=i;s++){const c=`${n}\uB144 ${s}\uC6D4`;r.push({value:c,label:c,year:n,month:s})}}return r.reverse()}const x8=y8(),um=["\uCCAB\uC9F8","\uB458\uC9F8","\uC14B\uC9F8","\uB137\uC9F8","\uB2E4\uC12F\uC9F8","\uC5EC\uC12F\uC9F8","\uC77C\uACF1\uC9F8"];function Vl(e){const{t,i18n:a}=ge.useTranslation(),[r,n]=l.useState("week"),i=l.useMemo(()=>x8.filter(A=>A.value in e),[e]),s=l.useMemo(()=>{const A=[];for(const D of i){const H=new Date(D.year,D.month,0).getDate(),P=oo(D.year,D.month-1),T=Math.ceil((H-P+1)/7);for(let E=T-1;E>=0;E--)A.push({value:`${D.value}#${E}`,monthKey:D.value,year:D.year,month:D.month,week:E})}return A},[i]),c=l.useCallback(A=>{const D=t("calendar.yearMonth",{year:A.year,month:A.month});return a.language?.startsWith("ko")?`${D} ${um[A.week]??`${A.week+1}`}\uC8FC`:`${D} Week ${A.week+1}`},[t,a.language]),u=l.useMemo(()=>i.map(A=>({value:A.value,label:t("calendar.yearMonth",{year:A.year,month:A.month})})),[t,i]),d=l.useMemo(()=>s.map(A=>({value:A.value,label:c(A)})),[s,c]),p=l.useMemo(()=>v8(),[]),m=l.useMemo(()=>i.find(A=>A.value===p.monthKey)?.value??i[0]?.value??"",[i,p]),h=l.useMemo(()=>s.find(A=>A.value===p.value)?.value??s[0]?.value??"",[s,p]),[g,f]=l.useState(""),[b,y]=l.useState("");l.useEffect(()=>{i.find(A=>A.value===g)||f(m)},[i,g,m]),l.useEffect(()=>{s.find(A=>A.value===b)||y(h)},[s,b,h]);const v=r==="month"?u:d,C=r==="month"?g:b,w=r==="month"?f:y,x=l.useMemo(()=>{const A=t("calendar.dow",{returnObjects:!0});return Array.isArray(A)?A:["\uC77C","\uC6D4","\uD654","\uC218","\uBAA9","\uAE08","\uD1A0"]},[t]),S=v.findIndex(A=>A.value===C),_=l.useCallback(()=>{const A=v.findIndex(D=>D.value===C);A<v.length-1&&w(v[A+1].value)},[v,C,w]),k=l.useCallback(()=>{const A=v.findIndex(D=>D.value===C);A>0&&w(v[A-1].value)},[v,C,w]),N=l.useMemo(()=>[{key:"week",label:t("manager.chart.periodWeek","\uC8FC")},{key:"month",label:t("manager.chart.periodMonth","\uC6D4")}],[t]);return{period:r,setPeriod:n,range:C,setRange:w,activeOptions:v,activeIdx:S,handlePrev:_,handleNext:k,periodOptions:N,monthRange:g,weekRange:b,weekRanges:s,DOW:x}}function C8({data:e,colorA:t,colorB:a,labelA:r,labelB:n,barWidth:i=10,height:s=140,maxOverride:c,tightMax:u,seriesColors:d,seriesLabels:p,rateLabels:m}){const h=!a,g=!!(d&&d.length>0),f=l.useMemo(()=>g?Math.max(0,...e.filter(k=>k.a!==-1).map(k=>(k.parts??[]).reduce((N,A)=>N+Math.max(0,A),0))):Math.max(0,...e.filter(k=>k.a!==-1).flatMap(k=>h?[k.a]:[k.a,k.b])),[e,h,g]),b=l.useMemo(()=>c??(u?f>0?f:10:Math.ceil(f/10)*10||10),[f,c,u]),y=s,v=g||h?1:2,C=l.useMemo(()=>{const k=Math.max(1,e.length);return Math.max(8,Math.min(i,Math.round(120/(k*v)+6)))},[e.length,v,i]),w=l.useMemo(()=>{const k=Math.round(b/2);return k!==b?[b,k,0]:[b,0]},[b]),[x,S]=l.useState(null),_=l.useCallback(()=>S(null),[]);return o.jsxs("div",{className:"manager-bar-chart-wrap",children:[o.jsx("div",{className:"manager-bar-chart-inner",children:o.jsx("div",{className:"manager-bar-chart-scroll",children:o.jsxs("div",{className:"manager-bar-chart-area",children:[o.jsxs("div",{className:"manager-bar-chart-plot",style:{height:y},children:[w.slice(0,-1).map((k,N)=>o.jsx("div",{className:"manager-bar-chart-gridline",style:{top:N*(y/(w.length-1))},children:o.jsx("span",{className:"manager-bar-chart-gridline__label caption-1",children:k})},N)),e.map((k,N)=>{const A=k.a===-1,D=A?0:k.a/b*y,H=A?0:k.b/b*y,P=k.parts??[];return o.jsx("div",{className:"manager-bar-chart-col",style:{cursor:A?"default":"pointer"},onMouseEnter:A?void 0:T=>{const E=T.currentTarget.getBoundingClientRect(),L=g?(p??[]).map((F,te)=>`${F}: ${P[te]??0}`).filter((F,te)=>(P[te]??0)>0).join(" / ")||`${(p??[]).join(" / ")}: 0`:m&&!h?`${r} ${k.a}% / ${n} ${k.b}%`:m&&k.rawB!==void 0?`${m.total} ${k.rawB} / ${m.done} ${k.rawA??0}`:h?`${r}: ${k.a}`:`${r}: ${k.a} / ${n}: ${k.b}`;S({rect:{left:E.left,top:E.top,right:E.right,bottom:E.bottom,width:E.width,height:E.height},text:L})},onMouseLeave:_,children:!A&&(g?o.jsx("div",{className:"manager-bar-chart-stack",style:{flex:`0 1 ${C}px`,maxWidth:C},children:(()=>{const T=P.reduce((E,L,F)=>L>0?F:E,-1);return P.map((E,L)=>E>0?o.jsx("div",{className:"manager-bar-chart-stack-segment",style:{height:E/b*y,background:(d??[])[L],borderRadius:L===T?"6px 6px 0 0":void 0}},L):null)})()}):o.jsxs(o.Fragment,{children:[o.jsx("div",{className:"manager-bar-chart-bar",style:{flex:`0 1 ${C}px`,maxWidth:C,height:D,background:t}}),!h&&o.jsx("div",{className:"manager-bar-chart-bar",style:{flex:`0 1 ${C}px`,maxWidth:C,height:H,background:a}})]}))},N)})]}),o.jsx("div",{className:"manager-bar-chart-x-axis",children:e.map((k,N)=>{const A=k.a===-1;return o.jsxs("span",{className:`manager-bar-chart-x-axis__label${A?" manager-bar-chart-x-axis__label--future":""}`,children:[o.jsxs("span",{className:"caption-1 manager-bar-chart-x-axis__main",children:[k.isToday&&o.jsx("span",{className:"manager-bar-chart-x-axis__today-dot",style:{background:t}}),k.label]}),k.sublabel&&o.jsx("span",{className:"caption-1",children:k.sublabel})]},N)})})]})})}),x&&o.jsx(aa,{anchorRect:x.rect,text:x.text})]})}function Gl({control:e}){const{t}=ge.useTranslation(),a=t("calendar.prevMonth","\uC774\uC804 \uB2EC"),r=t("calendar.nextMonth","\uB2E4\uC74C \uB2EC"),{activeOptions:n,activeIdx:i,range:s,setRange:c,handlePrev:u,handleNext:d,periodOptions:p,period:m,setPeriod:h}=e;return o.jsxs("div",{className:"manager-section-controls",children:[o.jsx(se,{size:32,type:"dot",icon:"chevron-left",ariaLabel:a,showTooltipInfo:a,disabled:i===n.length-1,onClick:u}),o.jsx(Ut,{value:s,onChange:c,options:n,size:40,className:"month-dropdown",ariaLabel:t("calendar.rangeSelect","\uAE30\uAC04 \uC120\uD0DD")}),o.jsx(se,{size:32,type:"dot",icon:"chevron-right",ariaLabel:r,showTooltipInfo:r,disabled:i<=0,onClick:d}),o.jsx(Ha,{ariaLabel:t("calendar.periodSelect","\uAE30\uAC04 \uB2E8\uC704"),options:p,value:m,onChange:g=>h(g),size:32})]})}function _8(e,t,a,r){const{period:n,monthRange:i,weekRange:s,weekRanges:c,DOW:u}=t,d=r?.startsWith("ko"),p=new Date,m=p.getFullYear(),h=p.getMonth()+1,g=p.getDate();if(n==="month"){const y=e[i]??{weekly:[],daily:[]},v=i.match(/^(\d+)년 (\d+)월$/),C=v?Number(v[1]):null,w=v?Number(v[2]):null,x=C&&w?oo(C,w-1):1;return y.weekly.map((S,_)=>{const k=_+1;let N=S.label,A=!1,D=!1;if(C&&w){const H=x+_*7,P=new Date(C,w-1,H+6),T=P.getMonth()+1,E=P.getDate(),L=T===w?`${E}`:`${T}/${E}`;N=a("manager.chart.weekRange",{start:H,end:L}),A=m===C&&h===w&&g>=H&&g<=H+6,D=C>m||C===m&&(w>h||w===h&&H>g)}return{...S,label:N,sublabel:d?`${um[k-1]??k}\uC8FC`:`Week ${k}`,isToday:A,a:D?-1:S.a,b:D?0:S.b}})}const f=c.find(y=>y.value===s);if(!f)return[];const b=new Date(f.year,f.month-1,oo(f.year,f.month-1)+f.week*7);return Array.from({length:7},(y,v)=>{const C=new Date(b);C.setDate(b.getDate()+v);const w=C.getMonth()+1,x=C.getDate(),S=C.getFullYear(),_=(e[`${S}\uB144 ${w}\uC6D4`]?.daily??[])[x-1],k=w===f.month&&S===f.year,N=_?.a===-1||C>new Date(m,p.getMonth(),g);return{label:k?`${x}`:`${w}/${x}`,sublabel:u[C.getDay()]??"",a:N?-1:_&&_.a>0?_.a:0,b:N?0:_&&_.b>0?_.b:0,isToday:S===m&&w===h&&x===g,..._?.parts?{parts:N?_.parts.map(()=>0):_.parts}:{}}})}const w8={small:{height:100,barWidth:16},medium:{height:140,barWidth:20},large:{height:180,barWidth:24}};function pm({size:e="medium",titleKey:t,data:a,colorA:r,colorB:n,labelAKey:i,labelBKey:s,showTotal:c=!1,totalUnitKey:u,totalLabelKey:d,control:p,hideControls:m=!1,rate:h=!1,tightMax:g=!1,avgMode:f=!1,totalFormat:b,series:y,loading:v=!1,onDetail:C}){const{t:w,i18n:x}=ge.useTranslation(),S=w8[e],_=Vl(a),k=p??_,N=l.useMemo(()=>_8(a,k,w,x.language),[a,k,w,x.language]),A=l.useMemo(()=>h?N.map(T=>({...T,a:T.a===-1?-1:T.b>0?Math.round(T.a/T.b*100):0,b:T.a===-1?0:s&&T.parts&&T.parts[1]>0?Math.round(T.parts[0]/T.parts[1]*100):0,rawA:T.a===-1?-1:T.a,rawB:T.b})):N,[N,h,s]),D=l.useMemo(()=>{if(h||f){const T=(k.period==="week"?N:a[k.monthRange]?.daily??[]).filter(L=>L.a!==-1);if(T.length===0)return 0;const E=h?T.reduce((L,F)=>L+(F.b>0?F.a/F.b*100:0),0):T.reduce((L,F)=>L+(F.a>0?F.a:0),0);return Math.round(E/T.length)}return A.reduce((T,E)=>T+(E.a>0?E.a:0)+(s&&E.b>0?E.b:0),0)},[A,N,h,f,s,k.period,k.monthRange,a]),H=y&&y.length>0?y.map(T=>({color:T.color,label:T.label})):[{color:r,label:w(i)},...s?[{color:n,label:w(s)}]:[]],P=e==="small";return o.jsx(xn,{className:P?"manager-section--compact":e==="large"?"manager-section--full":void 0,title:w(t),titleClassName:P?"h5 chart-section-title--small":void 0,headRight:P?void 0:o.jsxs(o.Fragment,{children:[!m&&o.jsx(Gl,{control:k}),C&&o.jsx("span",{className:"manager-bar-chart-detail-btn",children:o.jsx(se,{size:32,type:"dot",icon:"list",ariaLabel:w("trainingStatus.detail","\uC0C1\uC138\uBCF4\uAE30"),onClick:C})})]}),subRow:o.jsxs(o.Fragment,{children:[c?h||f||d&&b?o.jsx(vr,{label:P?void 0:`${w(k.period==="week"?"manager.chart.weeklyPrefix":"manager.chart.monthlyPrefix")} ${w(d??i)}`,children:b?(b(D).match(/(\d+|[^\d]+)/g)??[]).map((T,E)=>/\d/.test(T)?o.jsx("span",{className:"barchart-total__num h0",children:T},E):o.jsx("span",{className:"barchart-total__unit h5",children:T},E)):o.jsxs(o.Fragment,{children:[o.jsx("span",{className:"barchart-total__num h0",children:D}),u&&o.jsx("span",{className:"barchart-total__unit h5",children:w(u)})]})}):o.jsxs(vr,{children:[o.jsx("span",{className:"barchart-total__num h0",children:D}),o.jsx("span",{className:"barchart-total__unit h5",children:w(i)}),u&&o.jsx("span",{className:"barchart-total__unit h5",children:w(u)})]}):o.jsx("span",{}),o.jsx(yn,{items:H,className:"caption-1"})]}),children:v?o.jsx("div",{className:"manager-bar-chart-loading",children:o.jsx(Ao,{size:32})}):o.jsx(C8,{data:A,colorA:r,colorB:s?n:void 0,labelA:w(i),labelB:s?w(s):void 0,barWidth:S.barWidth,height:S.height,maxOverride:h?100:void 0,tightMax:g,seriesColors:y?.map(T=>T.color),seriesLabels:y?.map(T=>T.label),rateLabels:h?{total:w("trainingStatus.today.tooltipTotal","\uC804\uCCB4"),done:w("trainingStatus.today.tooltipDone","\uC644\uB8CC")}:void 0})})}function hm(e){if(e.period==="month"){const i=e.monthRange.match(/^(\d+)년 (\d+)월$/),s=new Date,c=i?Number(i[1]):s.getFullYear(),u=i?Number(i[2]):s.getMonth()+1;return{from:new Date(c,u-1,1,0,0,0),to:new Date(c,u,0,23,59,59)}}const t=e.weekRanges.find(i=>i.value===e.weekRange);if(!t){const i=new Date;return{from:i,to:i}}const a=oo(t.year,t.month-1),r=new Date(t.year,t.month-1,a+t.week*7,0,0,0),n=new Date(r);return n.setDate(r.getDate()+6),n.setHours(23,59,59),{from:r,to:n}}var k8=".ihabdevteam-core-scope .ring-chart{flex-shrink:0;position:relative}.ihabdevteam-core-scope .ring-chart svg{display:block}.ihabdevteam-core-scope .ring-chart__center{align-items:center;display:flex;flex-direction:column;inset:0;justify-content:center;pointer-events:none;position:absolute}.ihabdevteam-core-scope .ring-chart__center--small{transform:translateY(6.5px)}.ihabdevteam-core-scope .ring-chart__center--medium{transform:translateY(7.5px)}.ihabdevteam-core-scope .ring-chart__center--large{transform:translateY(8.5px)}.ihabdevteam-core-scope .ring-chart__pct{color:var(--color-darkGray);line-height:1}.ihabdevteam-core-scope .ring-chart__label{color:var(--color-lightGray)}.ihabdevteam-core-scope .ring-chart__label--tight{margin-top:-2px}.ihabdevteam-core-scope .ring-chart-section-body{display:flex;justify-content:center}.ihabdevteam-core-scope .ring-chart-section-body--offset{justify-content:flex-end}";J(k8);const mm={small:{diameter:96,strokeWidth:16},medium:{diameter:120,strokeWidth:18},large:{diameter:160,strokeWidth:22}};function bm({done:e,total:t,segments:a,color:r="var(--color-main)",size:n="medium",strokeWidth:i,label:s="%",hideCenter:c=!1,hideLabel:u=!1}){const d=typeof n=="number"?n:mm[n].diameter,p=i??(typeof n=="number"?12:mm[n].strokeWidth),m=d/2,h=(d-p)/2,g=2*Math.PI*h;if(a&&a.length>0){const v=a.reduce((C,w)=>{const x=C.length>0?C[C.length-1].acc:0,S=Math.max(0,Math.min(w.ratio,1-x));return C.push({color:w.color,rotate:-90+x*360,dash:g*S,acc:x+S}),C},[]);return o.jsx("div",{className:"ring-chart",style:{width:d,height:d},children:o.jsxs("svg",{width:d,height:d,viewBox:`0 0 ${d} ${d}`,"aria-hidden":"true",children:[o.jsx("circle",{cx:m,cy:m,r:h,fill:"none",stroke:"var(--color-whiteLine)",strokeWidth:p}),v.map((C,w)=>C.dash>0&&o.jsx("circle",{cx:m,cy:m,r:h,fill:"none",stroke:C.color,strokeWidth:p,strokeDasharray:`${C.dash} ${g}`,strokeLinecap:"round",transform:`rotate(${C.rotate} ${m} ${m})`},w))]})})}const f=(t??0)>0?Math.min((e??0)/t,1):0,b=g*f,y=g-b;return o.jsxs("div",{className:"ring-chart",style:{width:d,height:d},children:[o.jsxs("svg",{width:d,height:d,viewBox:`0 0 ${d} ${d}`,"aria-hidden":"true",children:[o.jsx("circle",{cx:m,cy:m,r:h,fill:"none",stroke:"var(--color-whiteLine)",strokeWidth:p}),f>0&&o.jsx("circle",{cx:m,cy:m,r:h,fill:"none",stroke:r,strokeWidth:p,strokeDasharray:`${b} ${y}`,strokeLinecap:f<.02||f>.98?"butt":"round",transform:`rotate(-90 ${m} ${m})`})]}),!c&&o.jsxs("div",{className:`ring-chart__center${u?"":` ${d<=96?"ring-chart__center--small":n==="medium"?"ring-chart__center--medium":"ring-chart__center--large"}`}`,children:[o.jsx("span",{className:`ring-chart__pct ${d<=96?"h2":"h1"}`,children:Math.round(f*100)}),!u&&o.jsx("span",{className:`ring-chart__label ${d<=96?"caption-2":"caption-1"}${d<=96||n==="medium"?" ring-chart__label--tight":""}`,children:s})]})]})}function gm({titleKey:e,headRight:t,icon:a,showTotal:r,totalLabelKey:n,legend:i,loading:s,className:c,...u}){const{t:d}=ge.useTranslation();if(!e)return o.jsx(bm,{...u});const p=(u.total??0)>0?Math.round(Math.min((u.done??0)/u.total,1)*100):0,m=u.size==="small",h=u.size==="large",g=[c,m?"manager-section--compact":h?"manager-section--full":""].filter(Boolean).join(" ")||void 0,f=a&&o.jsx("span",{className:"chart-section-icon",children:o.jsx(Ie,{icon:a,className:"chart-section-icon-inner"})});return o.jsx(xn,{className:g,title:d(e),titleClassName:m?"h5 chart-section-title--small":void 0,headRight:f||(m?void 0:t),subRow:(r||i)&&o.jsxs(o.Fragment,{children:[r?o.jsxs(vr,{label:!m&&n?d(n):void 0,children:[o.jsx("span",{className:"barchart-total__num h0",children:p}),o.jsx("span",{className:"barchart-total__unit h5",children:"%"})]}):o.jsx("span",{}),i&&o.jsx(yn,{items:i})]}),children:s?o.jsx("div",{className:"manager-bar-chart-loading",children:o.jsx(Ao,{size:32})}):o.jsx("div",{className:"ring-chart-section-body ring-chart-section-body--offset",children:o.jsx(bm,{...u,hideCenter:m||u.hideCenter})})})}var S8=".ihabdevteam-core-scope .manager-stat-card{background:var(--color-white);border-radius:var(--radius-m);box-shadow:var(--shadow-card);container-type:inline-size;display:flex;flex-direction:column;gap:4px;justify-content:flex-start;min-width:160px;padding:20px}.ihabdevteam-core-scope .manager-stat-card--clickable{border:1px solid transparent;cursor:pointer;transition:box-shadow .12s ease,border-color .12s ease}.ihabdevteam-core-scope .manager-stat-card--clickable:hover{border-color:var(--color-main);box-shadow:var(--shadow-dropdown)}.ihabdevteam-core-scope .manager-stat-card__label-row{align-items:center;display:flex;justify-content:space-between;min-height:28px}.ihabdevteam-core-scope .manager-stat-card__label{color:var(--color-deepGray)}.ihabdevteam-core-scope .manager-stat-card__icon{display:inline-flex;opacity:.35}.ihabdevteam-core-scope .manager-stat-card__icon-inner{color:var(--color-darkGray);height:22px;width:22px}.ihabdevteam-core-scope .manager-stat-card__content{align-items:flex-start;display:flex;flex:1;flex-direction:column;gap:var(--spacing-xs);justify-content:space-between}.ihabdevteam-core-scope .manager-stat-card__left{align-items:flex-start;display:flex;flex:1;flex-direction:row;gap:8px;text-align:left}.ihabdevteam-core-scope .manager-stat-card__value{color:var(--color-black);flex-shrink:0;font-size:32px;font-weight:700;letter-spacing:-.5px;line-height:1;white-space:nowrap}.ihabdevteam-core-scope .manager-stat-card__change{font-size:12px;font-weight:500;line-height:1.2;margin-top:1px;min-width:0}.ihabdevteam-core-scope .manager-stat-card__change--up{color:var(--color-sub)}.ihabdevteam-core-scope .manager-stat-card__change--down{color:var(--color-error)}.ihabdevteam-core-scope .manager-stat-card__change--neutral{color:var(--color-gray)}@media (max-width:767px){.ihabdevteam-core-scope .manager-stat-card{padding:12px 14px 16px}.ihabdevteam-core-scope .manager-stat-card__value{font-size:24px}}";J(S8);function fm({label:e,value:t,change:a,changeType:r,icon:n,tooltip:i,onClick:s}){const c=l.useRef(null),{anchorRect:u,openAt:d,close:p}=ko(),m=l.useCallback(()=>{i&&c.current&&d(c.current)},[i,d]),h=r??(a===void 0?void 0:a>0?"up":a<0?"down":"neutral"),g=a===void 0?void 0:a>0?`+${a}`:`${a}`,f=l.useCallback(b=>{s&&(b.key==="Enter"||b.key===" ")&&(b.preventDefault(),s())},[s]);return o.jsxs("div",{ref:c,className:`manager-stat-card${s?" manager-stat-card--clickable":""}`,onClick:s,onKeyDown:s?f:void 0,onPointerEnter:m,onPointerLeave:p,onFocus:m,onBlur:p,role:s?"button":void 0,tabIndex:s?0:void 0,"aria-label":s?`${e} ${t}`:void 0,children:[i&&u&&o.jsx(aa,{anchorRect:{left:u.left,top:u.top+21,right:u.right,bottom:u.bottom,width:u.width,height:u.height},text:i}),o.jsxs("div",{className:"manager-stat-card__label-row",children:[o.jsx("span",{className:"manager-stat-card__label h5",children:e}),n&&o.jsx("span",{className:"manager-stat-card__icon",children:o.jsx(Ie,{icon:n,className:"manager-stat-card__icon-inner"})})]}),o.jsx("div",{className:"manager-stat-card__content",children:o.jsxs("div",{className:"manager-stat-card__left",children:[o.jsx("div",{className:"manager-stat-card__value h2",children:t}),g&&o.jsx("div",{className:`manager-stat-card__change manager-stat-card__change--${h??"neutral"} caption-1`,children:g})]})})]})}var A8='.ihabdevteam-core-scope .slider{--slider-thumb:40px;--slider-fill:calc(var(--slider-thumb)/2 + var(--slider-ratio, 0)*(100% - var(--slider-thumb)));--slider-fill-color:var(--color-main);-webkit-appearance:none;-moz-appearance:none;appearance:none;background:transparent;border-radius:999px;cursor:pointer;margin:0;outline:none}.ihabdevteam-core-scope .slider:disabled{--slider-fill-color:var(--color-gray);cursor:not-allowed}.ihabdevteam-core-scope .slider:focus-visible{outline:2px solid var(--color-main);outline-offset:4px}.ihabdevteam-core-scope .slider--horizontal{background:linear-gradient(to right,var(--slider-fill-color) var(--slider-fill),var(--color-darkWhite) var(--slider-fill));height:var(--slider-thumb);width:100%}.ihabdevteam-core-scope .slider--vertical{-webkit-appearance:none;-moz-appearance:none;appearance:none;background:linear-gradient(to top,var(--slider-fill-color) var(--slider-fill),var(--color-darkWhite) var(--slider-fill));direction:rtl;height:160px;width:var(--slider-thumb);writing-mode:vertical-lr}.ihabdevteam-core-scope .slider::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;background:var(--color-white);border:2px solid var(--slider-fill-color);border-radius:50%;box-shadow:var(--shadow-dropdown);cursor:pointer;height:var(--slider-thumb);width:var(--slider-thumb)}.ihabdevteam-core-scope .slider:disabled::-webkit-slider-thumb{cursor:not-allowed}.ihabdevteam-core-scope .slider::-moz-range-thumb{background:var(--color-white);border:2px solid var(--slider-fill-color);border-radius:50%;box-shadow:var(--shadow-dropdown);cursor:pointer;height:var(--slider-thumb);width:var(--slider-thumb)}.ihabdevteam-core-scope .slider::-moz-range-track{background:transparent}.ihabdevteam-core-scope .slider--static{pointer-events:none}.ihabdevteam-core-scope .slider--static::-webkit-slider-thumb{visibility:hidden}.ihabdevteam-core-scope .slider--static::-moz-range-thumb{visibility:hidden}.ihabdevteam-core-scope .slider-wrap{align-items:center;display:flex;gap:10px}.ihabdevteam-core-scope .slider-wrap--label-left,.ihabdevteam-core-scope .slider-wrap--label-right{flex-direction:row}.ihabdevteam-core-scope .slider-wrap--label-left>.slider,.ihabdevteam-core-scope .slider-wrap--label-left>.slider-track-group,.ihabdevteam-core-scope .slider-wrap--label-right>.slider,.ihabdevteam-core-scope .slider-wrap--label-right>.slider-track-group{flex:1;min-width:0}.ihabdevteam-core-scope .slider-wrap--label-bottom,.ihabdevteam-core-scope .slider-wrap--label-top{flex-direction:column;gap:6px}.ihabdevteam-core-scope .slider-wrap--label-left .slider-wrap__value,.ihabdevteam-core-scope .slider-wrap--label-top .slider-wrap__value{order:-1}.ihabdevteam-core-scope .slider-wrap--label-bottom.slider-wrap--align-left,.ihabdevteam-core-scope .slider-wrap--label-top.slider-wrap--align-left{align-items:flex-start}.ihabdevteam-core-scope .slider-wrap--label-bottom.slider-wrap--align-center,.ihabdevteam-core-scope .slider-wrap--label-top.slider-wrap--align-center{align-items:center}.ihabdevteam-core-scope .slider-wrap--label-bottom.slider-wrap--align-right,.ihabdevteam-core-scope .slider-wrap--label-top.slider-wrap--align-right{align-items:flex-end}.ihabdevteam-core-scope .slider-wrap--horizontal.slider-wrap--label-bottom>.slider,.ihabdevteam-core-scope .slider-wrap--horizontal.slider-wrap--label-bottom>.slider-track-group,.ihabdevteam-core-scope .slider-wrap--horizontal.slider-wrap--label-top>.slider,.ihabdevteam-core-scope .slider-wrap--horizontal.slider-wrap--label-top>.slider-track-group{align-self:stretch}.ihabdevteam-core-scope .slider-wrap__value{font-feature-settings:"tnum";color:var(--color-main);flex-shrink:0;font-variant-numeric:tabular-nums;white-space:nowrap}.ihabdevteam-core-scope .slider-wrap--label-left .slider-wrap__value,.ihabdevteam-core-scope .slider-wrap--label-right .slider-wrap__value{min-width:2.5em;text-align:right}.ihabdevteam-core-scope .slider-track-group{align-items:center;display:flex;gap:8px}.ihabdevteam-core-scope .slider-track-group--horizontal{flex-direction:row}.ihabdevteam-core-scope .slider-track-group--horizontal .slider{flex:1;min-width:0}.ihabdevteam-core-scope .slider-track-group--vertical{flex-direction:column}.ihabdevteam-core-scope .slider-wrap__minmax{font-feature-settings:"tnum";color:var(--color-lightGray);flex-shrink:0;font-variant-numeric:tabular-nums;white-space:nowrap}';J(A8);function ql({value:e,onChange:t,min:a=0,max:r=100,step:n=1,orientation:i="horizontal",size:s=24,disabled:c=!1,ariaLabel:u,length:d,className:p,label:m,formatValue:h,labelPos:g,labelAlign:f="right",showMinMax:b=!1,minLabel:y,maxLabel:v,showBgTick:C=!1,showFillTick:w=!1,tickStep:x,tickShape:S="dot"}){t&&!u&&Zc("Slider:unnamed","[ihab/Slider] \uC774\uB984\uC774 \uC5C6\uC2B5\uB2C8\uB2E4 \u2014 ariaLabel \uC744 \uC8FC\uC138\uC694. label prop \uC740 \uAC12 \uD45C\uAE30 \uBC29\uC2DD\uC774\uC9C0 \uC774\uB984\uC774 \uC544\uB2D9\uB2C8\uB2E4.");const _=Math.min(r,Math.max(a,e)),k=r>a?(_-a)/(r-a):0,N=i==="vertical",A=!t,D=W=>t?.(Number(W.target.value)),H=typeof d=="number"?`${d}px`:d,P={"--slider-ratio":String(k),"--slider-thumb":`${s}px`,...H?N?{height:H}:{width:H}:{}},T=x??n,E=(C||w)&&T>0&&r>a?Math.floor((r-a)/T+1e-6):0;if(E>0&&E<=100){const W=S!=="dash",q=re=>W?`radial-gradient(circle, ${re} 0.5px, transparent 1px)`:N?`linear-gradient(to bottom, transparent calc(50% - 2px), ${re} calc(50% - 2px), ${re} calc(50% + 2px), transparent calc(50% + 2px))`:`linear-gradient(to right, transparent calc(50% - 2px), ${re} calc(50% - 2px), ${re} calc(50% + 2px), transparent calc(50% + 2px))`,X=W?"2px":"4px",O=[],Y=[],z=[];for(let re=0;re<=E;re++){const Q=re*T/(r-a);if(Q>1+1e-6)break;const ne=`${((N?1-Q:Q)*100).toFixed(4)}%`,me=Q<=k+1e-6;if(me?!w:!C)continue;const ce=me?"var(--slider-tick-color-on-fill, var(--color-deepWhite))":"var(--slider-tick-color, var(--color-lightGray))";O.push(q(ce)),Y.push(N?`${X} var(--slider-thumb)`:`var(--slider-thumb) ${X}`),z.push(N?`center ${ne}`:`${ne} center`)}O.push(N?"linear-gradient(to top, var(--slider-fill-color) var(--slider-fill), var(--color-darkWhite) var(--slider-fill))":"linear-gradient(to right, var(--slider-fill-color) var(--slider-fill), var(--color-darkWhite) var(--slider-fill))"),Y.push("100% 100%"),z.push("0 0"),P.backgroundImage=O.join(", "),P.backgroundSize=Y.join(", "),P.backgroundPosition=z.join(", "),P.backgroundRepeat="no-repeat"}const L=o.jsx("input",{type:"range",className:xe("slider",`slider--${i}`,A&&"slider--static",!m&&!b&&p),min:a,max:r,step:n,value:_,disabled:c,readOnly:A,tabIndex:A?-1:void 0,"aria-label":u,"aria-orientation":i,onChange:D,style:P});if(!m&&!b)return L;const F=o.jsx("span",{className:"slider-wrap__minmax caption-1",children:y??a}),te=o.jsx("span",{className:"slider-wrap__minmax caption-1",children:v??r}),Z=b?o.jsxs("div",{className:xe("slider-track-group",`slider-track-group--${i}`,!m&&p),children:[N?te:F,L,N?F:te]}):L;if(!m)return Z;const V=g??(N?"bottom":"right"),j=`${Math.round(r>a?(_-a)/(r-a)*100:0)}%`,M=h?h(_):m==="percent"?j:m==="count"?`${_} / ${r}`:String(_),$=o.jsx("span",{className:"slider-wrap__value body-3b",children:M});return o.jsxs("div",{className:xe("slider-wrap",`slider-wrap--${i}`,`slider-wrap--label-${V}`,`slider-wrap--align-${f}`,p),children:[Z,$]})}var T8='.ihabdevteam-core-scope .audio-meter{align-items:center;display:inline-flex;gap:var(--spacing-xs)}.ihabdevteam-core-scope .audio-meter__track{--meter-level:0;background:var(--color-darkWhite);border-radius:999px;flex-shrink:0;overflow:hidden;position:relative}.ihabdevteam-core-scope .audio-meter__fill{inset:0;position:absolute}.ihabdevteam-core-scope .audio-meter__value{font-feature-settings:"tnum";color:var(--color-gray);font-variant-numeric:tabular-nums;text-align:right;white-space:nowrap;width:40px}.ihabdevteam-core-scope .audio-meter--horizontal .audio-meter__track{height:8px;width:120px}.ihabdevteam-core-scope .audio-meter--horizontal .audio-meter__fill{background:linear-gradient(to right,var(--color-success) 0,var(--color-success) 55%,var(--color-warn) 80%,var(--color-error) 100%);transform:scaleX(var(--meter-level));transform-origin:left}.ihabdevteam-core-scope .audio-meter--vertical{flex-direction:column}.ihabdevteam-core-scope .audio-meter--vertical .audio-meter__track{height:120px;width:8px}.ihabdevteam-core-scope .audio-meter--vertical .audio-meter__fill{background:linear-gradient(to top,var(--color-success) 0,var(--color-success) 55%,var(--color-warn) 80%,var(--color-error) 100%);transform:scaleY(var(--meter-level));transform-origin:bottom}.ihabdevteam-core-scope .audio-meter.audio-meter--label-left,.ihabdevteam-core-scope .audio-meter.audio-meter--label-right{flex-direction:row}.ihabdevteam-core-scope .audio-meter.audio-meter--label-bottom,.ihabdevteam-core-scope .audio-meter.audio-meter--label-top{flex-direction:column}.ihabdevteam-core-scope .audio-meter--label-left .audio-meter__value,.ihabdevteam-core-scope .audio-meter--label-top .audio-meter__value{order:-1}.ihabdevteam-core-scope .audio-meter--label-bottom.audio-meter--align-left,.ihabdevteam-core-scope .audio-meter--label-top.audio-meter--align-left{align-items:flex-start}.ihabdevteam-core-scope .audio-meter--label-bottom.audio-meter--align-center,.ihabdevteam-core-scope .audio-meter--label-top.audio-meter--align-center{align-items:center}.ihabdevteam-core-scope .audio-meter--label-bottom.audio-meter--align-right,.ihabdevteam-core-scope .audio-meter--label-top.audio-meter--align-right{align-items:flex-end}';J(T8);const B8=.86,N8=250,Yl=(e,t,a,r)=>{const n=Math.round(Math.min(r,Math.max(a,e-t)));return`${n<0?"-":"+"}${Math.abs(n)} dB`};function Cn({analyser:e,audioElement:t,orientation:a="horizontal",length:r,label:n,labelPos:i,labelAlign:s="right",floorDb:c=-60,refDb:u=-35,displayMin:d=-5,displayMax:p=25,className:m,ariaLabel:h}){const g=l.useRef(null),f=l.useRef(null),b=l.useRef(null);l.useEffect(()=>{const w=e??Vo(t),x=g.current;if(!w||!x){x?.style.setProperty("--meter-level","0"),f.current&&(f.current.textContent=Yl(c,u,d,p));return}Ho();const S=new Float32Array(w.fftSize);let _=0,k=0,N=0,A=0,D=null;const H=P=>{const T=ni(w,S);_=T>_?T:_*B8;const E=_>1e-5?20*Math.log10(_):-1/0,L=Math.max(c,E),F=L-u,te=Math.min(1,Math.max(0,(F-d)/(p-d)));if(x.style.setProperty("--meter-level",te.toFixed(3)),f.current&&(k+=L,N+=1,P-A>=N8)){const Z=k/N;D=D==null?Z:D*.6+Z*.4,f.current.textContent=Yl(D,u,d,p),k=0,N=0,A=P}b.current=requestAnimationFrame(H)};return b.current=requestAnimationFrame(H),()=>{b.current!=null&&cancelAnimationFrame(b.current),b.current=null}},[e,t,c,u,d,p]);const y=typeof r=="number"?`${r}px`:r,v=o.jsx("div",{className:"audio-meter__track",style:y?a==="vertical"?{height:y}:{width:y}:{},children:o.jsx("div",{ref:g,className:"audio-meter__fill"})}),C=i??(a==="vertical"?"bottom":"right");return o.jsxs("div",{className:xe("audio-meter",`audio-meter--${a}`,n&&`audio-meter--label-${C}`,n&&`audio-meter--align-${s}`,m),role:"meter","aria-label":h,children:[v,n&&o.jsx("span",{ref:f,className:"audio-meter__value caption-2",children:Yl(c,u,d,p)})]})}const Ul=500;function Kl({message:e,position:t,duration:a,onClose:r}){const[n,i]=l.useState(!1),[s,c]=l.useState(!1),u=l.useRef(s),d=l.useRef(n);l.useEffect(()=>{u.current=s},[s]),l.useEffect(()=>{d.current=n},[n]);const p=l.useRef(null),m=l.useRef(""),h=l.useRef(r);l.useEffect(()=>{h.current=r});const g=a,f=l.useRef(null),b=l.useRef(null),y=l.useRef(null),v=l.useRef(null),C=l.useRef(null);return l.useEffect(()=>{if(e!==m.current&&(f.current&&(clearTimeout(f.current),f.current=null),b.current&&(clearTimeout(b.current),b.current=null)),e){if(d.current)return g>0&&!f.current&&(f.current=setTimeout(()=>{i(!1),b.current=setTimeout(()=>{c(!1);try{h.current()}catch{}},Ul)},g)),m.current=e,()=>{};const w=()=>{const x=p.current;if(x)try{x.classList.remove("is-visible"),x.style.transition="none",t==="top"?x.style.transform="translateX(-50%) translateY(-16px)":x.style.transform="translateX(-50%) translateY(16px)",x.style.opacity="0",x.offsetWidth,x.style.transition="",x.classList.add("is-visible"),C.current&&clearTimeout(C.current),C.current=setTimeout(()=>{C.current=null;try{x.style.opacity="",x.style.transform="",x.style.transition=""}catch{}},60)}catch{}};u.current?(w(),i(!0)):(c(!0),y.current=requestAnimationFrame(()=>{v.current=requestAnimationFrame(()=>{w(),i(!0)})})),g>0&&(f.current=setTimeout(()=>{i(!1),b.current=setTimeout(()=>{c(!1);try{h.current()}catch{}},Ul)},g))}else i(!1),b.current=setTimeout(()=>c(!1),Ul);return m.current=e,()=>{f.current&&clearTimeout(f.current),b.current&&clearTimeout(b.current),y.current&&cancelAnimationFrame(y.current),v.current&&cancelAnimationFrame(v.current),C.current&&clearTimeout(C.current),f.current=null,b.current=null,y.current=null,v.current=null,C.current=null}},[e,g,t]),{mounted:s,showing:n,popupRef:p}}var D8=".ihabdevteam-core-scope .toast{left:50%;pointer-events:none;position:fixed;transform:translateX(-50%);will-change:transform,opacity;z-index:var(--z-toast)}.ihabdevteam-core-scope .toast__inner{align-items:center;background:var(--color-main);border-radius:var(--radius-m);box-shadow:var(--shadow-popup);box-sizing:border-box;color:#fff;display:flex;justify-content:center;margin:0;max-width:min(520px,calc(100vw - 32px));min-height:60px;min-width:min(360px,calc(100vw - 32px));overflow:hidden;padding:var(--spacing-content);pointer-events:auto;text-align:center;text-overflow:ellipsis;white-space:nowrap}.ihabdevteam-core-scope .toast__inner--normal{background:linear-gradient(var(--color-white),var(--color-white)) padding-box,linear-gradient(135deg,var(--color-main),var(--color-sub)) border-box;border:2px solid transparent;color:var(--color-black)}.ihabdevteam-core-scope .toast__inner--notice{background:linear-gradient(135deg,var(--color-main),var(--color-sub));color:#fff}.ihabdevteam-core-scope .toast__inner--warning{background:var(--color-error);color:#fff}.ihabdevteam-core-scope .toast--top{opacity:0;top:18px;transform:translateX(-50%) translateY(-100%);transition:transform .26s cubic-bezier(.22,.9,.3,1),opacity .18s ease-out}.ihabdevteam-core-scope .toast--top.is-visible{opacity:1;transform:translateX(-50%) translateY(0)}.ihabdevteam-core-scope .toast--bottom{bottom:18px;opacity:0;transform:translateX(-50%) translateY(100%);transition:transform .26s cubic-bezier(.22,.9,.3,1),opacity .18s ease-out}.ihabdevteam-core-scope .toast--bottom.is-visible{opacity:1;transform:translateX(-50%) translateY(0)}";J(D8);function ro({message:e="",position:t="top",type:a="normal",onClose:r=()=>{},duration:n=2e3}){const{mounted:i,showing:s,popupRef:c}=Kl({message:e,position:t,duration:n,onClose:r});if(!i)return null;const u=a==="notice"||a==="warning"?a:"normal",d=o.jsx("div",{ref:c,className:`toast toast--${t} ${s?"is-visible":""}`,role:"status","aria-live":"polite",children:o.jsx("div",{className:`toast__inner toast__inner--${u} body-2`,children:e})});return typeof document<"u"?qt.createPortal(d,document.body):d}var E8='.ihabdevteam-core-scope .progress-bar{flex-shrink:0}.ihabdevteam-core-scope .progress-bar__track{background:var(--progress-bar-track,var(--color-darkWhite));border-radius:999px;height:8px;height:var(--progress-bar-height,8px);overflow:hidden;width:100%}.ihabdevteam-core-scope .progress-bar__fill{background:var(--progress-bar-fill,var(--color-main));border-radius:inherit;height:100%;transition:width .3s ease;transition:width var(--progress-bar-duration,.3s) ease}.ihabdevteam-core-scope .progress-bar__label{font-feature-settings:"tnum";color:var(--progress-bar-label-color,var(--color-gray));font-variant-numeric:tabular-nums}.ihabdevteam-core-scope .progress-bar--4{--progress-bar-height:4px}.ihabdevteam-core-scope .progress-bar--8{--progress-bar-height:8px}.ihabdevteam-core-scope .progress-bar--16{--progress-bar-height:16px}.ihabdevteam-core-scope .progress-bar--24{--progress-bar-height:24px}.ihabdevteam-core-scope .progress-bar--32{--progress-bar-height:32px}.ihabdevteam-core-scope .progress-bar--label-left,.ihabdevteam-core-scope .progress-bar--label-right{align-items:center;display:flex;gap:10px}.ihabdevteam-core-scope .progress-bar--label-left>.progress-bar__track,.ihabdevteam-core-scope .progress-bar--label-right>.progress-bar__track{flex:1;min-width:0}.ihabdevteam-core-scope .progress-bar--label-left .progress-bar__label{order:-1}.ihabdevteam-core-scope .progress-bar--label-bottom,.ihabdevteam-core-scope .progress-bar--label-top{display:flex;flex-direction:column;gap:6px}.ihabdevteam-core-scope .progress-bar--label-top .progress-bar__label{order:-1}.ihabdevteam-core-scope .progress-bar--label-bottom.progress-bar--align-left,.ihabdevteam-core-scope .progress-bar--label-top.progress-bar--align-left{align-items:flex-start}.ihabdevteam-core-scope .progress-bar--label-bottom.progress-bar--align-center,.ihabdevteam-core-scope .progress-bar--label-top.progress-bar--align-center{align-items:center}.ihabdevteam-core-scope .progress-bar--label-bottom.progress-bar--align-right,.ihabdevteam-core-scope .progress-bar--label-top.progress-bar--align-right{align-items:flex-end}.ihabdevteam-core-scope .progress-bar--label-bottom>.progress-bar__track,.ihabdevteam-core-scope .progress-bar--label-top>.progress-bar__track{align-self:stretch}.ihabdevteam-core-scope .progress-bar--label-inside{position:relative}.ihabdevteam-core-scope .progress-bar--label-inside .progress-bar__label{pointer-events:none;position:absolute;top:50%}.ihabdevteam-core-scope .progress-bar--label-on-fill .progress-bar__label{color:var(--progress-bar-label-color-on-fill,var(--color-deepWhite))}.ihabdevteam-core-scope .progress-bar--label-inside.progress-bar--align-left .progress-bar__label{left:10px;transform:translateY(-50%)}.ihabdevteam-core-scope .progress-bar--label-inside.progress-bar--align-center .progress-bar__label{left:50%;transform:translate(-50%,-50%)}.ihabdevteam-core-scope .progress-bar--label-inside.progress-bar--align-right .progress-bar__label{right:10px;transform:translateY(-50%)}@media (prefers-reduced-motion:reduce){.ihabdevteam-core-scope .progress-bar__fill{transition:none}}';J(E8);const j8=24;function vm({value:e,max:t=100,size:a=8,color:r,trackColor:n,label:i,formatValue:s,labelPos:c,labelAlign:u="right",ariaLabel:d,className:p}){const m=Number.isFinite(t)&&t>0?t:1,h=Math.max(0,Math.min(Number.isFinite(e)?e:0,m)),g=h/m*100,f=c??(a>=j8?"inside":"bottom"),b=f==="center"?"inside":f,y=b==="inside"&&(u==="left"?g>=15:u==="center"?g>=50:g>=85),v={};return r&&(v["--progress-bar-fill"]=r),n&&(v["--progress-bar-track"]=n),o.jsxs("div",{className:xe("progress-bar",`progress-bar--${a}`,`progress-bar--label-${b}`,i&&`progress-bar--align-${u}`,i&&y&&"progress-bar--label-on-fill",p),style:v,children:[o.jsx("div",{className:"progress-bar__track",role:"progressbar","aria-valuenow":h,"aria-valuemin":0,"aria-valuemax":m,"aria-label":d,children:o.jsx("div",{className:"progress-bar__fill",style:{width:`${g}%`}})}),i&&o.jsx("span",{className:"progress-bar__label caption-1b",children:s?s(h):i==="percent"?`${Math.round(g)}%`:i==="raw"?String(h):`${h} / ${m}`})]})}var L8=".ihabdevteam-core-scope .progress-indicator{align-items:center;display:flex;gap:var(--spacing-xs)}.ihabdevteam-core-scope .progress-indicator-dot{align-items:center;background:var(--pi-inactive-bg,var(--color-whiteLine));border-radius:var(--radius-card);color:var(--pi-inactive-color,var(--color-gray));display:inline-flex;height:28px;justify-content:center;width:52px}.ihabdevteam-core-scope .progress-indicator-dot.done{background:var(--color-main);color:#fff}.ihabdevteam-core-scope .progress-indicator-dot.active{background:var(--color-sub);color:#fff}@media (max-width:1024px){.ihabdevteam-core-scope .progress-indicator{gap:6px}.ihabdevteam-core-scope .progress-indicator-dot{height:28px;width:44px}}@media (max-width:767px){.ihabdevteam-core-scope .progress-indicator--mobile .progress-indicator-dot{height:28px;padding:0 12px;width:auto}}.ihabdevteam-core-scope .progress-indicator--dot{gap:var(--spacing-xs)}.ihabdevteam-core-scope .progress-indicator-dot--dot{background:var(--pi-inactive-bg,var(--color-darkWhite));border-radius:var(--radius-full);height:8px;transition:width .2s ease-out,background .2s ease-out;width:8px}.ihabdevteam-core-scope .progress-indicator-dot--dot.done{background:color-mix(in srgb,var(--color-main) 40%,transparent)}.ihabdevteam-core-scope .progress-indicator-dot--dot.active{background:var(--color-main);width:24px}@media (prefers-reduced-motion:reduce){.ihabdevteam-core-scope .progress-indicator-dot--dot{transition:none}}";J(L8);const M8="rgba(255, 255, 255, 0.16)";function Zl({max:e,index:t,inactiveBg:a,inactiveColor:r,transparent:n,variant:i="numbered",announce:s=!1,ariaLabel:c}){const{t:u}=ge.useTranslation(),d=oa("(max-width: 767px)");if(!Number.isInteger(e)||e<=0)return null;const p=Number.isInteger(t)?Math.max(0,Math.min(t,e-1)):0,m=c??u("progress.steps",{current:p+1,total:e,defaultValue:"\uC9C4\uD589 \uB2E8\uACC4 {{current}} / {{total}}"}),h={};return a&&(h["--pi-inactive-bg"]=a),r&&(h["--pi-inactive-color"]=r),n&&(a||(h["--pi-inactive-bg"]=M8),r||(h["--pi-inactive-color"]="var(--color-white)")),i==="dot"?o.jsx("div",{className:"progress-indicator progress-indicator--dot",style:h,role:s?"status":"img","aria-label":m,children:Array.from({length:e}).map((g,f)=>o.jsx("span",{"aria-hidden":"true",className:`progress-indicator-dot--dot${f<p?" done":f===p?" active":""}`},f))}):d?o.jsx("div",{className:"progress-indicator progress-indicator--mobile",style:h,role:"list","aria-label":m,children:o.jsxs("span",{role:"listitem",className:"progress-indicator-dot active body-3",children:[p+1," / ",e]})}):o.jsx("div",{className:"progress-indicator",style:h,role:"list","aria-label":m,children:Array.from({length:e}).map((g,f)=>o.jsx("span",{role:"listitem","aria-current":f===p?"step":void 0,className:`progress-indicator-dot ${f<p?" done":f===p?" active":""} body-3`,children:f+1},f))})}function P8(e){if(!e)return[];const t=[];let a=0,r="";for(const n of e.trim()){if(n==="("?a++:n===")"&&a--,/\s/.test(n)&&a===0){r&&(t.push(r),r="");continue}r+=n}return r&&t.push(r),t}var R8=".ihabdevteam-core-scope .table-wrap{background:var(--color-white);border:1px solid var(--color-whiteLine);border-radius:var(--radius-card);overflow-x:auto}.ihabdevteam-core-scope .table{width:100%}.ihabdevteam-core-scope .table-header{align-items:center;border-bottom:1px solid var(--color-whiteLine);box-sizing:border-box;display:flex;gap:8px;padding:0 16px;text-align:left;width:100%}.ihabdevteam-core-scope .table-header[role=button]{cursor:pointer;transition:background .15s}.ihabdevteam-core-scope .table-header[role=button]:hover{background:var(--color-darkWhite)}.ihabdevteam-core-scope .table-header__chevron{align-items:center;color:var(--color-gray);display:flex;flex-shrink:0}.ihabdevteam-core-scope .table-header__icon{align-items:center;color:var(--t-item-fg,var(--color-main));display:flex;flex-shrink:0;height:20px;justify-content:center;width:20px}.ihabdevteam-core-scope .table-header__title{color:var(--color-darkGray)}.ihabdevteam-core-scope .table-header__count{color:var(--color-main);flex-shrink:0}.ihabdevteam-core-scope .table-header__actions{align-items:center;display:flex;flex-shrink:0;gap:4px;margin-left:auto}.ihabdevteam-core-scope .table-header__action-button{background:none;border:none;border-radius:4px;color:var(--color-gray);cursor:pointer;line-height:1;padding:2px 6px;transition:background .12s,color .12s}.ihabdevteam-core-scope .table-header__action-button:hover{background:var(--color-darkWhite);color:var(--color-main)}.ihabdevteam-core-scope .table-header__action-button--delete:hover{background:#ffeef0;background:var(--color-error-bg,#ffeef0);color:#e03131;color:var(--color-error,#e03131)}.ihabdevteam-core-scope .table-wrap--collapsed .table-header{border-bottom:none}.ihabdevteam-core-scope .table-wrap--dragover{outline:2px dashed var(--color-main);outline-offset:-2px}.ihabdevteam-core-scope .table-wrap--dragover .table-header{background:var(--color-darkWhite)}.ihabdevteam-core-scope .table-fields{border-bottom:1px solid var(--color-whiteLine);display:grid;grid-template-columns:repeat(auto-fit,minmax(80px,1fr));grid-template-columns:var(--table-grid-cols,repeat(auto-fit,minmax(80px,1fr)))}.ihabdevteam-core-scope .table-body{display:flex;flex-direction:column}.ihabdevteam-core-scope .table-row-wrap{border-bottom:1px solid var(--color-darkWhite);display:flex;flex-direction:column}.ihabdevteam-core-scope .table-row-wrap:last-child{border-bottom:none}.ihabdevteam-core-scope .table-row{display:grid;grid-template-columns:repeat(auto-fit,minmax(80px,1fr));grid-template-columns:var(--table-grid-cols,repeat(auto-fit,minmax(80px,1fr)))}.ihabdevteam-core-scope .table-row-expand{background:var(--color-darkWhite);border-top:1px solid var(--color-whiteLine);display:flex;flex-wrap:wrap;gap:12px;padding:16px 20px}.ihabdevteam-core-scope .table-wrap--small .table-fields,.ihabdevteam-core-scope .table-wrap--small .table-header,.ihabdevteam-core-scope .table-wrap--small .table-row{min-height:48px}.ihabdevteam-core-scope .table-wrap--medium .table-fields,.ihabdevteam-core-scope .table-wrap--medium .table-header,.ihabdevteam-core-scope .table-wrap--medium .table-row{min-height:56px}.ihabdevteam-core-scope .table-wrap--large .table-fields,.ihabdevteam-core-scope .table-wrap--large .table-header,.ihabdevteam-core-scope .table-wrap--large .table-row{min-height:64px}.ihabdevteam-core-scope .table-fields.table-fields--groups{min-height:34px}.ihabdevteam-core-scope .table-row--clickable{cursor:pointer;transition:background .1s,box-shadow .1s}.ihabdevteam-core-scope .table-row--clickable:hover{background:var(--color-darkWhite)}.ihabdevteam-core-scope .table-row--draggable{cursor:grab}.ihabdevteam-core-scope .table-row--draggable:active{cursor:grabbing}.ihabdevteam-core-scope .table-row--dragging{opacity:.4}.ihabdevteam-core-scope .table-row--empty,.ihabdevteam-core-scope .table-row--loading{align-items:center;display:flex;justify-content:center}.ihabdevteam-core-scope .table-row--empty{color:var(--color-lightGray);padding:0 20px}.ihabdevteam-core-scope .table-wrap--small .table-row--empty{min-height:48px}.ihabdevteam-core-scope .table-wrap--medium .table-row--empty{min-height:56px}.ihabdevteam-core-scope .table-wrap--large .table-row--empty{min-height:64px}";J(R8);var $8=".ihabdevteam-core-scope .table-cell{align-items:center;color:var(--color-darkGray);display:flex;min-width:0;overflow:hidden;overflow-wrap:break-word;padding:0 16px;word-break:break-word}";J($8);var I8='.ihabdevteam-core-scope .table-field{align-items:center;color:var(--color-gray);cursor:pointer;display:flex;gap:0;min-width:0;overflow:hidden;padding:0 16px;text-align:left;-webkit-user-select:none;-moz-user-select:none;user-select:none;white-space:nowrap}.ihabdevteam-core-scope .table-field--resizable{position:relative}.ihabdevteam-core-scope .table-field__resizer{align-items:center;cursor:col-resize;display:flex;height:100%;justify-content:flex-end;position:absolute;right:0;top:0;touch-action:none;width:10px;z-index:3}.ihabdevteam-core-scope .table-field__resizer:after{background:var(--color-whiteLine);content:"";height:55%;transition:background-color .12s,width .12s,height .12s;width:1px}.ihabdevteam-core-scope .table-field__resizer:active:after,.ihabdevteam-core-scope .table-field__resizer:hover:after{background:var(--color-main);height:100%;width:2px}.ihabdevteam-core-scope .table-field--sorted,.ihabdevteam-core-scope .table-field:hover{color:var(--color-main)}.ihabdevteam-core-scope .table-field__sort-arrow{flex-shrink:0}';J(I8);function z8({children:e,className:t,style:a}){return o.jsx("div",{className:t?`table-cell ${t}`:"table-cell",style:a,children:e})}function Xl({variant:e="default",children:t,className:a,draggable:r,onClick:n,onMouseEnter:i,onMouseLeave:s,onDragStart:c,onDragEnd:u,expandedContent:d}){const p=l.useCallback(m=>{n&&m.target===m.currentTarget&&(m.key==="Enter"||m.key===" ")&&(m.preventDefault(),n())},[n]);return e==="loading"?o.jsx("div",{className:"table-row-wrap",children:o.jsx("div",{className:"table-row table-row--loading",children:o.jsx(Ao,{size:28})})}):e==="empty"?o.jsx("div",{className:"table-row-wrap",children:o.jsx("div",{className:"table-row table-row--empty body-3",children:t})}):o.jsxs("div",{className:"table-row-wrap",children:[o.jsx("div",{className:a?`table-row ${a}`:"table-row",draggable:r,onClick:n,onKeyDown:n?p:void 0,onMouseEnter:i,onMouseLeave:s,onDragStart:c,onDragEnd:u,role:n?"button":void 0,tabIndex:n?0:void 0,children:t}),d&&o.jsx("div",{className:"table-row-expand",children:d})]})}function O8({dir:e}){return o.jsx(e==="asc"?hd:pd,{className:"table-field__sort-arrow",size:16,strokeWidth:2})}function F8({children:e,onClick:t,className:a,sortDir:r,onResizeStart:n}){const i=l.useCallback(s=>{t&&s.target===s.currentTarget&&(s.key==="Enter"||s.key===" ")&&(s.preventDefault(),t())},[t]);return o.jsxs("div",{onClick:t,onKeyDown:t?i:void 0,role:t?"button":void 0,tabIndex:t?0:void 0,"aria-sort":r?r==="asc"?"ascending":"descending":void 0,className:xe("table-field body-3",a,r?"table-field--sorted":"",n?"table-field--resizable":""),children:[e,r&&o.jsx(O8,{dir:r}),n&&o.jsx("span",{className:"table-field__resizer",onPointerDown:n,onClick:s=>s.stopPropagation(),"aria-hidden":"true"})]})}function _n({fields:e=[],headerGroups:t,items:a=[],renderRow:r,onRowClick:n,onRowMouseEnter:i,onRowMouseLeave:s,onRowDragStart:c,onRowDragEnd:u,draggingId:d,gridTemplateColumns:p,resizable:m=!1,resizeMode:h="grow",resizeStorageKey:g,size:f="small",title:b,icon:y,count:v,collapsed:C=!1,onToggleCollapse:w,headerActions:x,empty:S,loading:_,dragOver:k=!1,onDragOver:N,onDragLeave:A,onDrop:D,renderExpandedRow:H,expandedId:P}){const{t:T}=ge.useTranslation(),E=48,L=g?`table-cols:${g}`:null,F=l.useRef(null),te=l.useRef(null),[Z,V]=l.useState(()=>{if(!L||typeof window>"u")return null;try{const Q=JSON.parse(window.localStorage.getItem(L)??"null");return Array.isArray(Q)&&Q.every(ne=>typeof ne=="number")?Q:null}catch{return null}}),j=l.useRef(Z);l.useEffect(()=>{j.current=Z},[Z]);const M=l.useCallback(Q=>{const ne=te.current;ne&&V(me=>{if(!me)return me;const ce=[...me];if(ne.next!=null&&ne.startWNext!=null){const I=Q.clientX-ne.startX,ee=Math.max(E-ne.startW,Math.min(ne.startWNext-E,I));ce[ne.index]=ne.startW+ee,ce[ne.next]=ne.startWNext-ee}else ce[ne.index]=Math.max(E,ne.startW+(Q.clientX-ne.startX));return ce})},[]),$=l.useCallback(()=>{if(te.current=null,window.removeEventListener("pointermove",M),window.removeEventListener("pointerup",$),document.body.style.cursor="",document.body.style.userSelect="",L&&j.current)try{window.localStorage.setItem(L,JSON.stringify(j.current))}catch{}},[M,L]),W=l.useCallback((Q,ne)=>{ne.preventDefault(),ne.stopPropagation();const me=F.current;if(!me)return;const ce=Array.from(me.children).map(ee=>ee.getBoundingClientRect().width),I=h==="fit"?e.findIndex((ee,pe)=>pe>Q&&ee.resizable!==!1):-1;te.current=I>=0?{index:Q,startX:ne.clientX,startW:ce[Q],next:I,startWNext:ce[I]}:{index:Q,startX:ne.clientX,startW:ce[Q]},V(ce),window.addEventListener("pointermove",M),window.addEventListener("pointerup",$),document.body.style.cursor="col-resize",document.body.style.userSelect="none"},[M,$,h,e]);l.useEffect(()=>()=>{te.current&&(window.removeEventListener("pointermove",M),window.removeEventListener("pointerup",$),document.body.style.cursor="",document.body.style.userSelect="")},[M,$]);const q=P8(p),X=Q=>/^\d+(\.\d+)?px$/.test(q[Q]??""),O=Q=>h==="fit"&&!X(Q)?"fr":"px",Y=Z&&Z.length===e.length&&(h==="fit"||a.length>0)?e.map((Q,ne)=>Q.resizable===!1&&q[ne]?q[ne]:`${Z[ne]}${O(ne)}`).join(" "):p,z=Y?{"--table-grid-cols":Y}:void 0,re=b!==void 0;return o.jsx("div",{className:`table-wrap table-wrap--${f}${k?" table-wrap--dragover":""}${C?" table-wrap--collapsed":""}`,style:z,onDragOver:N,onDragLeave:A,onDrop:D,children:o.jsxs("div",{className:"table body-2",children:[re&&o.jsxs("div",{className:"table-header",onClick:w,role:w?"button":void 0,tabIndex:w?0:void 0,"aria-expanded":w?!C:void 0,onKeyDown:w?Q=>{(Q.key==="Enter"||Q.key===" ")&&(Q.preventDefault(),w())}:void 0,children:[w&&o.jsx(se,{size:40,type:"dot",variant:"transparent-gray",useBorder:!1,icon:C?"chevron-right":"chevron-down",ariaLabel:C?T("common.expand","\uD3BC\uCE58\uAE30"):T("common.collapse","\uC811\uAE30"),className:"table-header__chevron"}),y&&o.jsx(Ie,{icon:y,label:typeof b=="string"?b:void 0,className:"table-header__icon"}),o.jsx("span",{className:"table-header__title h5b",children:b}),v!==void 0&&o.jsx("span",{className:"table-header__count body-3b",children:v}),x&&o.jsx("span",{className:"table-header__actions",onClick:Q=>Q.stopPropagation(),children:x})]}),!C&&o.jsxs(o.Fragment,{children:[t&&t.length>0&&o.jsx("div",{className:"table-fields table-fields--groups",children:t.map((Q,ne)=>o.jsx("div",{className:xe("table-field body-3",Q.className),style:{gridColumn:`span ${Q.span}`},children:Q.label},ne))}),o.jsx("div",{className:"table-fields",ref:F,children:e.map((Q,ne)=>o.jsx(F8,{onClick:Q.onClick,className:Q.className,sortDir:Q.sortDir,onResizeStart:m&&ne<e.length-1&&Q.resizable!==!1&&(h!=="fit"||e.some((me,ce)=>ce>ne&&me.resizable!==!1))?me=>W(ne,me):void 0,children:Q.label},ne))}),o.jsx("div",{className:"table-body",children:_?o.jsx(Xl,{variant:"loading"}):a.length===0&&S?o.jsx(Xl,{variant:"empty",children:S}):a.map((Q,ne)=>{const me=d!=null&&Q.id===d,ce=P!=null&&(P instanceof Set?P.has(Q.id):Q.id===P);return o.jsx(Xl,{className:`${n?" table-row--clickable":""}${c?" table-row--draggable":""}${me?" table-row--dragging":""}`.trim(),draggable:!!c,onClick:n?()=>n(Q):void 0,onMouseEnter:i?I=>i(Q,I):void 0,onMouseLeave:s?I=>s(Q,I):void 0,onDragStart:c?I=>c(Q,I):void 0,onDragEnd:u?I=>u(Q,I):void 0,expandedContent:ce&&H?H(Q):void 0,children:r(Q).map((I,ee)=>o.jsx(z8,{className:I.className,style:I.style,children:I.content},ee))},String(Q.id??ne))})})]})]})})}function ym(e){switch(e){case"\uBCF4\uCCAD\uAE30":return"main";case"\uC778\uACF5\uC640\uC6B0":return"sub";default:return"default"}}var W8=".ihabdevteam-core-scope .dlp-popup .popup-panel{max-width:600px}.ihabdevteam-core-scope .dlp-empty{color:var(--color-gray);padding:32px 20px;text-align:center}.ihabdevteam-core-scope .dlp-table{border-collapse:collapse;font-size:13px;width:100%}.ihabdevteam-core-scope .dlp-table thead tr{border-bottom:1px solid var(--color-darkWhite)}.ihabdevteam-core-scope .dlp-table th{color:var(--color-lightGray);font-weight:500;padding:8px 12px;text-align:left;white-space:nowrap}.ihabdevteam-core-scope .dlp-row{border-bottom:1px solid var(--color-darkWhite);cursor:pointer;transition:background .1s}.ihabdevteam-core-scope .dlp-row:hover{background:#f5f5f5;background:var(--color-hoverBg,#f5f5f5)}.ihabdevteam-core-scope .dlp-row:last-child{border-bottom:none}.ihabdevteam-core-scope .dlp-table td{color:var(--color-darkGray);padding:10px 12px;vertical-align:middle}.ihabdevteam-core-scope .dlp-date{color:var(--color-lightGray);white-space:nowrap}.ihabdevteam-core-scope .dlp-delete{background:none;border:none;border-radius:4px;color:var(--color-lightGray);cursor:pointer;font-size:12px;padding:4px 8px;transition:color .1s,background .1s}.ihabdevteam-core-scope .dlp-delete:hover{background:#fdecea;background:var(--color-errorBg,#fdecea);color:#e53935;color:var(--color-error,#e53935)}.ihabdevteam-core-scope .dlp-side-table{margin-top:0}.ihabdevteam-core-scope .dlp-side-pick{display:flex;justify-content:flex-start;margin-bottom:8px}.ihabdevteam-core-scope .dlp-worn-check{align-items:center;display:inline-flex}.ihabdevteam-core-scope .dlp-row-actions{align-items:center;display:flex;justify-content:flex-end}.ihabdevteam-core-scope .dlp-worn-side{color:#3b82f6;color:var(--color-main,#3b82f6);font-weight:600}";J(W8);function xm(e,t){return t!=="wornAt"?String(e[t]??""):e.wornYear?`${e.wornYear}-${e.wornMonth.padStart(2,"0")}-${e.wornDay.padStart(2,"0")}`:""}function Cm({rows:e,onSelect:t,onDelete:a,onWear:r,onRelease:n,onAdd:i}){const{t:s}=ge.useTranslation(),c=f=>f==="\uC88C"?s("device.direction.left","\uC88C"):s("device.direction.right","\uC6B0"),{\uC815\uB82C:u,\uCE78:d}=sl(),p=l.useMemo(()=>{if(!u)return e;const{key:f,asc:b}=u;return[...e].sort((y,v)=>{const C=f==="worn"?Number(v.worn)-Number(y.worn):xm(y,f).localeCompare(xm(v,f),"ko");return b?C:-C})},[e,u]),{pageRows:m,pageSizeProps:h,paginationProps:g}=il(p,u);return o.jsxs("div",{className:"dlp-side-table",children:[o.jsx(vn,{count:{value:e.length,unit:s("customers.device.unit","\uAC1C")},pageSize:h,pagination:g,actions:i&&o.jsx(se,{size:40,type:"bar",variant:"main",icon:"plus",label:s("customers.device.addButton","\uAE30\uAE30 \uCD94\uAC00"),onClick:i})}),o.jsx(_n,{resizable:!0,resizeMode:"fit",resizeStorageKey:"customer-device-history-v2",fields:[{...d(s("customers.device.wearingNow","\uCC29\uC6A9"),"worn"),resizable:!1},d(s("device.direction.label","\uBC29\uD5A5"),"side"),d(s("device.deviceType","\uC885\uB958"),"device"),d(s("device.brand","\uBE0C\uB79C\uB4DC"),"brand"),d(s("device.fitType","\uCC29\uC6A9\uD615\uD0DC"),"fitType"),d(s("device.productName","\uC81C\uD488\uBA85"),"productName"),d(s("device.wornDate","\uCC29\uC6A9\uC77C"),"wornAt"),...a?[{label:"",resizable:!1}]:[]],items:m.map((f,b)=>({id:f.id??`${f.side}-${b}`,row:f})),gridTemplateColumns:`56px 110px 110px minmax(120px, 1fr) 100px minmax(120px, 1fr) 110px${a?" 80px":""}`,renderRow:({row:f})=>[{content:o.jsx("span",{className:"dlp-worn-check",onClick:b=>b.stopPropagation(),children:o.jsx(Wl,{checked:f.worn,disabled:!r||!n,ariaLabel:f.worn?s("customers.device.unwear","\uCC29\uC6A9 \uD574\uC81C"):s("customers.device.wear","\uCC29\uC6A9"),onChange:b=>{b?r?.(f):n?.(f)}})})},{content:o.jsx("span",{children:c(f.side)})},{content:f.device?o.jsx(ht,{size:"small",variant:ym(f.device),fill:"soft",label:f.device}):o.jsx("span",{})},{content:o.jsx("span",{children:f.brand})},{content:o.jsx("span",{children:f.fitType||"-"})},{content:o.jsx("span",{children:f.productName||"-"})},{content:o.jsx("span",{className:"dlp-date",children:f.wornYear?`${f.wornYear}.${f.wornMonth}.${f.wornDay}`:"-"})},...a?[{content:o.jsx("span",{className:"dlp-row-actions",children:o.jsx(se,{size:28,type:"bar",variant:"transparent-gray",label:s("common.delete","\uC0AD\uC81C"),onClick:b=>{b?.stopPropagation(),a(f)}})})}]:[]],onRowClick:({row:f})=>t(f),empty:s("customers.device.historyEmpty","\uB4F1\uB85D\uB41C \uAE30\uAE30 \uC774\uB825\uC774 \uC5C6\uC2B5\uB2C8\uB2E4.")})]})}var H8=`.ihabdevteam-core-scope .calendar-nav{align-items:center;display:flex;gap:var(--spacing-m);justify-content:center;margin-bottom:var(--spacing-m);position:relative}.ihabdevteam-core-scope .calendar-nav__legend{align-items:center;color:var(--color-gray);display:flex;gap:6px;position:absolute;right:0}.ihabdevteam-core-scope .calendar-nav__legend-dot{border-radius:50%;display:inline-block;height:8px;width:8px}.ihabdevteam-core-scope .calendar-nav__legend-dot--main{background:var(--color-main)}.ihabdevteam-core-scope .calendar-nav__legend-dot--sub{background:var(--color-sub)}.ihabdevteam-core-scope .calendar-nav__legend-dot--disabled{background:var(--color-disabled)}.ihabdevteam-core-scope .calendar-nav__button{background:var(--color-white);border:1px solid var(--color-whiteLine);border-radius:var(--radius-sm);color:var(--color-darkGray);cursor:pointer;display:flex;font-size:18px;height:32px;line-height:1;transition:border-color .15s,color .15s;width:32px}.ihabdevteam-core-scope .calendar-nav__button:hover{border-color:var(--color-main);color:var(--color-main)}.ihabdevteam-core-scope .calendar-nav__title{color:var(--color-darkGray);font-weight:700;min-width:100px;text-align:center}.ihabdevteam-core-scope .calendar-grid{grid-gap:4px;display:grid;gap:4px;grid-template-columns:repeat(7,1fr)}.ihabdevteam-core-scope .calendar-day-header{color:var(--color-lightGray);font-weight:600;padding:6px 0;text-align:center}.ihabdevteam-core-scope .calendar-day-header:first-child{color:var(--color-error)}.ihabdevteam-core-scope .calendar-day-header:last-child{color:var(--color-main)}.ihabdevteam-core-scope .calendar-cell{background:transparent;border-radius:var(--radius-s);box-sizing:border-box;cursor:default;min-height:118px;min-width:118px;padding:8px}.ihabdevteam-core-scope .calendar-cell.empty{background:transparent;cursor:default}
|
|
839
|
+
`),b=f===-1?a:a.slice(0,f);i("comment",b),a=a.slice(b.length);continue}const c=a.match(/^\/\*[\s\S]*?\*\//);if(c){i("comment",c[0]),a=a.slice(c[0].length);continue}const u=a.match(/^(`(?:\\.|[^`])*`|"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*')/);if(u){i("string",u[0]),a=a.slice(u[0].length);continue}const d=a.match(/^\d+(?:\.\d+)?/);if(d){i("number",d[0]),a=a.slice(d[0].length);continue}const p=a.match(n8);if(p){i("keyword",p[0]),a=a.slice(p[0].length);continue}const m=a.match(/^[A-Za-z_$][A-Za-z0-9_$-]*/);if(m){const f=m[0];i(n&&r8.has(f)?"command":"identifier",f),a=a.slice(f.length);continue}const h=a.match(/^[=+\-*/%<>!&|^~?:]+/);if(h){i("operator",h[0]),a=a.slice(h[0].length);continue}const g=a.match(/^[()[\]{};.,]/);if(g){i("punctuation",g[0]),a=a.slice(1);continue}i("other",a[0]),a=a.slice(1)}return r}function im({children:e,language:t="bash",title:a="",showCopy:r=!0,size:n="default",className:i=""}){const{t:s}=ge.useTranslation(),[c,u]=l.useState(!1),d=o8(nm(e)),p=l.useRef(null);l.useEffect(()=>()=>{p.current&&clearTimeout(p.current)},[]);const m=async()=>{try{if(!await is(d))return;u(!0),p.current&&clearTimeout(p.current),p.current=setTimeout(()=>u(!1),2e3)}catch{}},h=i8(d,t),g=n==="small"?"caption-1":"body-3";return o.jsxs("div",{className:xe("code-box",n==="small"?"code-box--small":"",i),children:[(a||r)&&o.jsxs("div",{className:"code-box__header",role:"toolbar","aria-label":s("common.codeBlock","\uCF54\uB4DC \uBE14\uB85D"),children:[o.jsx("div",{className:"code-box__title caption-1",children:a}),r&&o.jsx(se,{className:"code-box__copy",size:40,type:"dot",variant:"transparent-gray",useBorder:!1,icon:c?"check":"copy",onClick:m,ariaLabel:c?s("common.copied","\uBCF5\uC0AC\uB428"):s("common.copyCode","\uCF54\uB4DC \uBCF5\uC0AC")})]}),o.jsx("pre",{className:"code-box__inner","data-lang":t,children:o.jsx("code",{children:h.map((f,b)=>o.jsx("span",{className:`code-token ${f.type} ${g}`,children:f.content},b))})})]})}var s8=".ihabdevteam-core-scope .loader-spinner{align-items:center;display:inline-flex;justify-content:center}.ihabdevteam-core-scope .loader-spinner__svg{animation:loader-rotate 1s linear infinite;transform-origin:center}.ihabdevteam-core-scope .loader-spinner__bg{stroke:rgba(0,0,0,.08)}.ihabdevteam-core-scope .loader-spinner__fg{stroke:var(--color-main);stroke-dasharray:125;stroke-dashoffset:80;animation:loader-dash 1.2s ease-in-out infinite}@keyframes loader-rotate{to{transform:rotate(1turn)}}@keyframes loader-dash{0%{stroke-dashoffset:125}50%{stroke-dashoffset:35}to{stroke-dashoffset:125}}.ihabdevteam-core-scope .loader-bar{background:rgba(0,0,0,.06);border-radius:999px;height:8px;overflow:hidden;width:100%}.ihabdevteam-core-scope .loader-bar__inner{background:var(--color-main);height:100%;transition:width .22s cubic-bezier(.2,.8,.2,1);width:0}@keyframes core-loader-rotate{to{transform:rotate(1turn)}}@keyframes core-loader-dash{0%{stroke-dashoffset:125}50%{stroke-dashoffset:35}to{stroke-dashoffset:125}}.ihabdevteam-core-scope .page-loading-center{display:flex;justify-content:center;padding:40px 0}";J(s8);function Ao(e){const{variant:t="spinner",size:a=24,progress:r=null,label:n}=e||{};if(t==="bar"){const s=Math.max(0,Math.min(100,Number(r)||0));return o.jsx("div",{className:"loader-bar",role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":s,"aria-label":n||"Loading",children:o.jsx("div",{className:"loader-bar__inner",style:{width:`${s}%`}})})}const i=typeof a=="number"?`${a}px`:a;return o.jsx("div",{className:"loader-spinner",style:{width:i,height:i},role:"status","aria-label":n||"Loading",children:o.jsxs("svg",{className:"loader-spinner__svg",viewBox:"0 0 50 50",width:a,height:a,children:[o.jsx("circle",{className:"loader-spinner__bg",cx:"25",cy:"25",r:"20",fill:"none",strokeWidth:"4"}),o.jsx("circle",{className:"loader-spinner__fg",cx:"25",cy:"25",r:"20",fill:"none",strokeWidth:"4",strokeLinecap:"round"})]})})}var l8='.ihabdevteam-core-scope .toggle{align-items:center;cursor:pointer;display:inline-flex;gap:var(--spacing-xs);position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none}.ihabdevteam-core-scope .toggle input{height:0;opacity:0;position:absolute;width:0}.ihabdevteam-core-scope .toggle__slider{background:#e2e8f0;background:var(--color-whiteLine,#e2e8f0);border-radius:26px;display:inline-block;flex-shrink:0;height:26px;position:relative;transition:background .2s;width:44px}.ihabdevteam-core-scope .toggle__slider:before{background:var(--color-pureWhite);border-radius:50%;box-shadow:0 1px 4px rgba(0,0,0,.15);content:"";height:20px;left:3px;position:absolute;top:3px;transition:transform .2s;width:20px}.ihabdevteam-core-scope .toggle input:checked+.toggle__slider{background:var(--color-main,var(--color-main))}.ihabdevteam-core-scope .toggle input:checked+.toggle__slider:before{transform:translateX(18px)}.ihabdevteam-core-scope .toggle input:focus-visible+.toggle__slider{outline:2px solid var(--color-main,var(--color-main));outline-offset:2px}.ihabdevteam-core-scope .toggle__label{color:var(--color-darkGray)}.ihabdevteam-core-scope .toggle--disabled{cursor:not-allowed;opacity:.45}';J(l8);function Fl({checked:e,onChange:t,disabled:a=!1,label:r,ariaLabel:n,labelPosition:i="right",className:s="",id:c}){const u=r&&o.jsx("span",{className:"toggle__label body-3",children:r});return o.jsxs("label",{className:`toggle${a?" toggle--disabled":""} ${s}`.trim(),children:[i==="left"&&u,o.jsx("input",{id:c,type:"checkbox",checked:e,disabled:a,onChange:d=>t?.(d.target.checked),"aria-label":!r&&n?n:void 0}),o.jsx("span",{className:"toggle__slider"}),i==="right"&&u]})}var c8=`.ihabdevteam-core-scope .checkbox{align-items:center;cursor:pointer;display:inline-flex;gap:8px;line-height:1;-webkit-user-select:none;-moz-user-select:none;user-select:none}.ihabdevteam-core-scope .checkbox--disabled{cursor:not-allowed;opacity:.4}.ihabdevteam-core-scope .checkbox__input{clip:rect(0 0 0 0);border:0;height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;white-space:nowrap;width:1px}.ihabdevteam-core-scope .checkbox__box{background:var(--color-white,var(--color-pureWhite));border:1.5px solid var(--color-whiteLine);border-radius:8px;border-radius:var(--radius-sm,8px);flex-shrink:0;height:24px;position:relative;transition:border-color .15s,background .15s;width:24px}.ihabdevteam-core-scope .checkbox__input:checked+.checkbox__box{background:var(--color-main,var(--color-main));border-color:var(--color-main,var(--color-main))}.ihabdevteam-core-scope .checkbox__input:checked+.checkbox__box:after{background:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 18 18'%3E%3Cpath stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.8' d='m4 9 3.5 3.5L14 6'/%3E%3C/svg%3E") 50%/cover no-repeat;content:"";inset:0;position:absolute}.ihabdevteam-core-scope .checkbox__input:indeterminate+.checkbox__box{background:var(--color-main,var(--color-main));border-color:var(--color-main,var(--color-main))}.ihabdevteam-core-scope .checkbox__input:indeterminate+.checkbox__box:after{background:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 18 18'%3E%3Cpath stroke='%23fff' stroke-linecap='round' stroke-width='2' d='M4.5 9h9'/%3E%3C/svg%3E") 50%/cover no-repeat;content:"";inset:0;position:absolute}.ihabdevteam-core-scope .checkbox:not(.checkbox--disabled):hover .checkbox__box{border-color:var(--color-main,var(--color-main))}.ihabdevteam-core-scope .checkbox__input:focus-visible+.checkbox__box{outline:2px solid var(--color-main,var(--color-main));outline-offset:2px}.ihabdevteam-core-scope .checkbox--large .checkbox__box{border-radius:10px;border-radius:var(--radius-s,10px);height:30px;width:30px}.ihabdevteam-core-scope .checkbox--small .checkbox__box{border-radius:4px;border-radius:var(--radius-xs,4px);height:16px;width:16px}.ihabdevteam-core-scope .checkbox__label{color:var(--color-darkGray)}.ihabdevteam-core-scope .checkbox--small .checkbox__label{font-size:13px}`;J(c8);function Wl({checked:e=!1,onChange:t,disabled:a,indeterminate:r,label:n,size:i="medium",className:s,title:c,ariaLabel:u}){const d=l.useRef(null),p=l.useId();return l.useEffect(()=>{d.current&&(d.current.indeterminate=!!r)},[r]),o.jsxs("label",{className:xe("checkbox",i==="small"&&"checkbox--small",i==="large"&&"checkbox--large",a&&"checkbox--disabled",s),htmlFor:p,title:c,children:[o.jsx("input",{ref:d,id:p,type:"checkbox",className:"checkbox__input",checked:e,onChange:m=>t?.(m.target.checked),disabled:a,"aria-label":!n&&u?u:void 0}),o.jsx("span",{className:"checkbox__box"}),n&&o.jsx("span",{className:"checkbox__label body-3",children:n})]})}var d8=".ihabdevteam-core-scope .bulk-bar{align-items:center;background:var(--color-pureWhite,var(--color-pureWhite));border:1px solid var(--color-main);border-radius:12px;border-radius:var(--radius-m,12px);bottom:24px;box-shadow:0 4px 20px rgba(0,0,0,.12);box-sizing:border-box;color:#1a1a1a;color:var(--color-gray900,#1a1a1a);display:flex;gap:12px;justify-content:space-between;margin-top:16px;min-height:60px;opacity:0;padding:10px 16px;pointer-events:none;position:sticky;transform:translateY(12px);transition:opacity .2s ease,transform .2s ease}.ihabdevteam-core-scope .bulk-bar--visible{opacity:1;pointer-events:auto;transform:translateY(0)}.ihabdevteam-core-scope .bulk-bar__count{color:#1a1a1a;color:var(--color-gray900,#1a1a1a);flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ihabdevteam-core-scope .bulk-bar__count b{color:var(--color-main)}.ihabdevteam-core-scope .bulk-bar__actions{display:flex;flex-shrink:0;gap:8px}.ihabdevteam-core-scope .bulk-bar__chips{align-items:center;display:flex;flex-wrap:wrap;gap:8px;gap:var(--spacing-xs,8px);min-width:0}.ihabdevteam-core-scope .bulk-bar__chips .button{white-space:nowrap}@media (max-width:767px){.ihabdevteam-core-scope .bulk-bar{flex-wrap:wrap}.ihabdevteam-core-scope .bulk-bar__actions{flex-wrap:wrap;justify-content:flex-end;width:100%}}.ihabdevteam-core-scope .bulk-bar__actions--stacked{align-items:stretch;flex-direction:column}";J(d8);function sm({count:e,actions:t,onClear:a,clearLabel:r="\uC120\uD0DD \uD574\uC81C",visible:n,content:i,max:s}){const{t:c}=ge.useTranslation(),u=n!==void 0?n:e>0,d=l.useRef(null),[p,m]=l.useState(!1);return l.useEffect(()=>{const h=d.current;if(!h)return;const g=()=>{const b=h.firstElementChild??h,y=Array.from(b.children);if(y.length<2){m(!1);return}const v=y[0].offsetTop;m(y.some(C=>C.offsetTop!==v))};if(g(),typeof ResizeObserver>"u")return;const f=new ResizeObserver(g);return f.observe(h),()=>f.disconnect()},[i,e]),o.jsxs("div",{className:`bulk-bar ${u?"bulk-bar--visible":""}`,children:[o.jsx("span",{ref:d,className:"bulk-bar__count body-2",children:i??o.jsx("b",{children:c("common.selectedCount",{count:e})})}),s!==void 0&&o.jsx(ht,{size:"small",fill:"soft",variant:"main",label:`${e} / ${s}`}),o.jsxs("div",{className:`bulk-bar__actions${p?" bulk-bar__actions--stacked":""}`,children:[o.jsx(se,{size:40,label:r,onClick:a}),t.map((h,g)=>o.jsx(se,{size:40,variant:h.variant??"default",icon:h.icon,label:h.label,onClick:h.onClick},g))]})]})}function Hl(e){const t=()=>{if(e){const[m,h]=e.split("-");return{y:+m,m:+h-1}}const p=new Date;return{y:p.getFullYear(),m:p.getMonth()}},[a,r]=l.useState(()=>t().y),[n,i]=l.useState(()=>t().m),s=l.useRef(e);l.useEffect(()=>{if(e===s.current)return;s.current=e;const p=t();r(p.y),i(p.m)},[e]);const c=l.useCallback(()=>{n===0?(r(p=>p-1),i(11)):i(p=>p-1)},[n]),u=l.useCallback(()=>{n===11?(r(p=>p+1),i(0)):i(p=>p+1)},[n]),d=l.useCallback((p,m)=>{r(p),i(m)},[]);return{viewY:a,viewM:n,prevMonth:c,nextMonth:u,setViewYM:d}}var u8=".ihabdevteam-core-scope .date-picker{position:relative;width:100%}.ihabdevteam-core-scope .date-picker__trigger{align-items:center;background:var(--color-deepWhite);border:1px solid var(--color-whiteLine);box-sizing:border-box;color:var(--color-darkGray);cursor:pointer;display:flex;justify-content:space-between;padding:0 12px;text-align:left;transition:border-color .12s,background .12s,box-shadow .12s;width:100%}.ihabdevteam-core-scope .date-picker--s40 .date-picker__trigger{border-radius:10px;height:40px}.ihabdevteam-core-scope .date-picker--s48 .date-picker__trigger{border-radius:12px;height:48px}.ihabdevteam-core-scope .date-picker--s64 .date-picker__trigger{border-radius:14px;height:64px}.ihabdevteam-core-scope .date-picker--open .date-picker__trigger,.ihabdevteam-core-scope .date-picker__trigger:focus{background:var(--color-white);border-color:var(--color-main);box-shadow:0 0 0 3px var(--color-main-a10);outline:none}.ihabdevteam-core-scope .date-picker__trigger:disabled{cursor:not-allowed;opacity:.5}.ihabdevteam-core-scope .date-picker__placeholder{color:var(--color-lightGray);white-space:nowrap}.ihabdevteam-core-scope .date-picker__value{color:var(--color-darkGray);white-space:nowrap}.ihabdevteam-core-scope .date-picker__icon{color:var(--color-lightGray);flex-shrink:0;transition:color .12s}.ihabdevteam-core-scope .date-picker--open .date-picker__icon{color:var(--color-main)}.ihabdevteam-core-scope .date-picker__dropdown{background:var(--color-white);border:1px solid var(--color-whiteLine);border-radius:12px;box-shadow:0 8px 24px rgba(0,0,0,.1);box-sizing:border-box;left:0;min-width:260px;padding:12px;position:absolute;top:calc(100% + 6px);z-index:200}.ihabdevteam-core-scope .date-picker__nav{align-items:center;display:flex;justify-content:space-between;margin-bottom:10px}.ihabdevteam-core-scope .date-picker__nav-dropdown{flex:1;margin:0 4px}.ihabdevteam-core-scope .date-picker__nav-dropdown .dropdown__trigger{background:transparent!important;border:none!important;border-radius:6px!important;box-shadow:none!important;gap:4px!important;height:32px!important;justify-content:center!important;transition:background .12s,color .12s!important}.ihabdevteam-core-scope .date-picker__nav-dropdown .dropdown__trigger:hover,.ihabdevteam-core-scope .date-picker__nav-dropdown.dropdown--open .dropdown__trigger{background:var(--color-deepWhite)!important}.ihabdevteam-core-scope .date-picker__nav-dropdown .dropdown__trigger-label{color:var(--color-darkGray)!important;flex:initial!important;font-weight:600!important}.ihabdevteam-core-scope .date-picker__nav-btn{align-items:center;background:var(--color-deepWhite);border:1px solid var(--color-whiteLine);border-radius:8px;color:var(--color-darkGray);cursor:pointer;display:flex;height:28px;justify-content:center;transition:border-color .12s,color .12s;width:28px}.ihabdevteam-core-scope .date-picker__nav-btn:hover{border-color:var(--color-main);color:var(--color-main)}.ihabdevteam-core-scope .date-picker__grid{grid-gap:2px;display:grid;gap:2px;grid-template-columns:repeat(7,1fr)}.ihabdevteam-core-scope .date-picker__dow{color:var(--color-lightGray);font-weight:600;padding:4px 0 6px;text-align:center}.ihabdevteam-core-scope .date-picker__dow:first-child{color:var(--color-error)}.ihabdevteam-core-scope .date-picker__dow:last-child{color:var(--color-main)}.ihabdevteam-core-scope .date-picker__day{align-items:center;aspect-ratio:1;background:transparent;border:none;border-radius:6px;color:var(--color-darkGray);cursor:pointer;display:flex;justify-content:center;transition:background .1s,color .1s;width:100%}.ihabdevteam-core-scope .date-picker__day:hover:not(:disabled){background:var(--color-main-a10);color:var(--color-main)}.ihabdevteam-core-scope .date-picker__day--sun:hover:not(:disabled){color:var(--color-error)}.ihabdevteam-core-scope .date-picker__day--sat:hover:not(:disabled){color:var(--color-main)}.ihabdevteam-core-scope .date-picker__day--sun{color:var(--color-error)}.ihabdevteam-core-scope .date-picker__day--sat{color:var(--color-main)}.ihabdevteam-core-scope .date-picker__day--today{font-weight:700;outline:1.5px solid var(--color-main);outline-offset:-1.5px}.ihabdevteam-core-scope .date-picker__day--selected{background:var(--color-main)!important;color:#fff!important;font-weight:700}.ihabdevteam-core-scope .date-picker__day--disabled{cursor:not-allowed;opacity:.3}";J(u8);const p8=["\uC77C","\uC6D4","\uD654","\uC218","\uBAA9","\uAE08","\uD1A0"];function lm(e,t){return new Date(e,t+1,0).getDate()}function h8(e,t){return new Date(e,t,1).getDay()}function To(e,t,a){return`${e}-${String(t+1).padStart(2,"0")}-${String(a).padStart(2,"0")}`}function m8(e){if(!e)return"";const[t,a,r]=e.split("-");return`${t}. ${a}. ${r}.`}function b8(e,t,a){const r=t?+t.split("-")[0]:e-10,n=a?+a.split("-")[0]:e+10,i=[];for(let s=r;s<=n;s++)for(let c=0;c<12;c++){const u=`${s}-${String(c+1).padStart(2,"0")}`;t&&u<t.slice(0,7)||a&&u>a.slice(0,7)||i.push({value:u,label:`${s}\uB144 ${c+1}\uC6D4`})}return i}function cm({value:e,onChange:t,size:a=48,min:r,max:n,disabled:i,placeholder:s="\uB0A0\uC9DC \uC120\uD0DD",className:c}){const{t:u}=ge.useTranslation(),d=new Date,{viewY:p,viewM:m,prevMonth:h,nextMonth:g,setViewYM:f}=Hl(e),b=l.useCallback(V=>{const j=window.innerHeight-V.bottom,M=300,$=j<M&&V.top>M;return{position:"fixed",left:V.left,width:V.width,minWidth:260,...$?{bottom:window.innerHeight-V.top+6}:{top:V.bottom+6},zIndex:9999}},[]),{open:y,setOpen:v,toggle:C,style:w,triggerRef:x,menuRef:S}=ao({computeStyle:b,onScroll:"reposition",onResize:"reposition",ignoreOutsideClickSelector:".dropdown__menu"});l.useEffect(()=>{if(!y)return;const V=S.current;return(V?.querySelector(".date-picker__day--selected")??V?.querySelector(".date-picker__day--today")??V?.querySelector(dr)??V)?.focus?.(),()=>{const j=document.activeElement;(!j||j===document.body)&&x.current?.focus?.()}},[y,S,x]);const[_,k]=l.useState(1),N=l.useRef(null),A=l.useRef(null);l.useEffect(()=>{if(!y)return;const V=To(d.getFullYear(),d.getMonth(),d.getDate()),j=e&&e.slice(0,7)===`${p}-${String(m+1).padStart(2,"0")}`?+e.slice(8):V.slice(0,7)===`${p}-${String(m+1).padStart(2,"0")}`?+V.slice(8):1;k(j)},[y]),l.useEffect(()=>{if(A.current==null)return;const V=A.current;A.current=null,N.current?.querySelector(`[data-day="${V}"]`)?.focus()}),l.useEffect(()=>{k(V=>Math.min(V,lm(p,m)))},[p,m]);const D=l.useCallback(V=>{let j=To(V.getFullYear(),V.getMonth(),V.getDate());r&&j<r&&(j=r),n&&j>n&&(j=n);const[M,$,W]=j.split("-").map(Number);(M!==p||$-1!==m)&&f(M,$-1),k(W),A.current=W},[r,n,p,m,f]),H=l.useCallback(V=>{const j=new Date(p,m,_),M=W=>{j.setDate(j.getDate()+W),D(j)},$=W=>{j.setMonth(j.getMonth()+W),D(j)};switch(V.key){case"ArrowLeft":M(-1);break;case"ArrowRight":M(1);break;case"ArrowUp":M(-7);break;case"ArrowDown":M(7);break;case"Home":M(-j.getDay());break;case"End":M(6-j.getDay());break;case"PageUp":V.shiftKey?$(-12):$(-1);break;case"PageDown":V.shiftKey?$(12):$(1);break;default:return}V.preventDefault()},[p,m,_,D]),P=l.useCallback(V=>{t(To(p,m,V)),v(!1)},[p,m,t,v]),T=V=>{const j=To(p,m,V);return!!(r&&j<r||n&&j>n)},E=[];for(let V=0;V<h8(p,m);V++)E.push(null);for(let V=1;V<=lm(p,m);V++)E.push(V);const L=a===64?20:a===40?16:18,F=b8(p,r,n),te=`${p}-${String(m+1).padStart(2,"0")}`,Z=y?qt.createPortal(o.jsxs("div",{ref:S,className:"date-picker__dropdown",style:w,role:"dialog","aria-label":u("datePicker.chooseDate","\uB0A0\uC9DC \uC120\uD0DD"),tabIndex:-1,children:[o.jsxs("div",{className:"date-picker__nav",children:[o.jsx("button",{type:"button",className:"date-picker__nav-btn",onClick:h,"aria-label":u("calendar.prevMonth","\uC774\uC804 \uB2EC"),children:o.jsx(td,{size:16,strokeWidth:2})}),o.jsx(Ut,{className:"date-picker__nav-dropdown",ariaLabel:u("datePicker.selectYearMonth","\uC5F0\uC6D4 \uC120\uD0DD"),options:F,value:te,onChange:V=>{const[j,M]=V.split("-");f(+j,+M-1)},block:!0,size:40}),o.jsx("button",{type:"button",className:"date-picker__nav-btn",onClick:g,"aria-label":u("calendar.nextMonth","\uB2E4\uC74C \uB2EC"),children:o.jsx(ad,{size:16,strokeWidth:2})})]}),o.jsxs("div",{className:"date-picker__grid",ref:N,onKeyDown:H,children:[p8.map(V=>o.jsx("div",{className:"date-picker__dow caption-1",children:V},V)),E.map((V,j)=>{if(V===null)return o.jsx("div",{},`e${j}`);const M=To(p,m,V),$=M===e,W=M===To(d.getFullYear(),d.getMonth(),d.getDate()),q=T(V),X=j%7;return o.jsx("button",{type:"button",disabled:q,"data-day":V,tabIndex:V===_?0:-1,"aria-current":W?"date":void 0,onClick:()=>!q&&P(V),className:xe("date-picker__day caption-1",$&&"date-picker__day--selected",W&&!$&&"date-picker__day--today",q&&"date-picker__day--disabled",X===0&&"date-picker__day--sun",X===6&&"date-picker__day--sat"),children:V},V)})]})]}),document.body):null;return o.jsxs("div",{className:xe("date-picker",`date-picker--s${a}`,y&&"date-picker--open",c),children:[o.jsxs("button",{ref:x,type:"button",className:"date-picker__trigger body-2",onClick:()=>!i&&C(),disabled:i,"aria-haspopup":"true","aria-expanded":y,children:[o.jsx("span",{className:e?"date-picker__value":"date-picker__placeholder",children:e?m8(e):s}),o.jsx(ud,{size:L,className:"date-picker__icon",strokeWidth:1.5})]}),Z]})}var g8=".ihabdevteam-core-scope .month-dropdown .dropdown__trigger{max-width:200px;min-width:200px;width:200px}.ihabdevteam-core-scope .month-dropdown .dropdown__menu{max-height:280px;overflow-y:auto;scrollbar-color:var(--color-darkWhite) transparent;scrollbar-width:thin}.ihabdevteam-core-scope .month-dropdown .dropdown__menu::-webkit-scrollbar{width:4px}.ihabdevteam-core-scope .month-dropdown .dropdown__menu::-webkit-scrollbar-thumb{background:var(--color-darkWhite);border-radius:var(--radius-xs)}.ihabdevteam-core-scope .manager-bar-chart-wrap{display:flex;flex-direction:column;gap:var(--spacing-s)}.ihabdevteam-core-scope .manager-bar-chart-gridline{background:var(--color-darkWhite);height:1px;left:0;pointer-events:none;position:absolute;right:0;z-index:-1}.ihabdevteam-core-scope .manager-bar-chart-gridline__label{color:var(--color-deepGray);font-size:11px;left:0;position:absolute;top:100%;white-space:nowrap}.ihabdevteam-core-scope .manager-bar-chart-inner{align-items:flex-start;display:flex;gap:var(--spacing-xs)}.ihabdevteam-core-scope .manager-bar-chart-scroll{-webkit-overflow-scrolling:touch;flex:1;overflow-x:auto;overflow-y:visible;scrollbar-width:none}.ihabdevteam-core-scope .manager-bar-chart-scroll::-webkit-scrollbar{display:none}.ihabdevteam-core-scope .manager-bar-chart-area{display:flex;flex-direction:column;min-width:-moz-max-content;min-width:max-content}.ihabdevteam-core-scope .manager-bar-chart-area svg{display:block}.ihabdevteam-core-scope .manager-bar-chart-x-axis{color:var(--color-deepGray);display:flex;font-size:11px;padding-top:6px}.ihabdevteam-core-scope .manager-bar-chart-x-axis__label{align-items:center;display:flex;flex:1;flex-direction:column;gap:1px;justify-content:flex-start;min-width:0;text-align:center;word-break:keep-all}.ihabdevteam-core-scope .manager-bar-chart-x-axis__label--future .caption-1{color:var(--color-whiteLine)}.ihabdevteam-core-scope .manager-bar-chart-x-axis__main{position:relative}.ihabdevteam-core-scope .manager-bar-chart-x-axis__today-dot{border-radius:50%;height:8px;position:absolute;right:calc(100% + 3px);top:50%;transform:translateY(-50%);width:8px}.ihabdevteam-core-scope .manager-bar-chart-plot{align-items:flex-end;display:flex;gap:0;isolation:isolate;position:relative}.ihabdevteam-core-scope .manager-bar-chart-col{align-items:flex-end;display:flex;flex:1;gap:2px;height:100%;justify-content:center}.ihabdevteam-core-scope .manager-bar-chart-stack{display:flex;flex-direction:column-reverse;min-width:0}.ihabdevteam-core-scope .manager-bar-chart-bar{border-radius:6px 6px 0 0;min-width:0}.ihabdevteam-core-scope .manager-bar-chart-stack-segment{width:100%}.ihabdevteam-core-scope .manager-bar-chart-detail-btn{margin-left:auto}";J(g8);var f8=".ihabdevteam-core-scope .manager-section{background:var(--color-white);border-radius:var(--radius-m);box-shadow:var(--shadow-card);margin-bottom:14px;min-width:320px;padding:20px}.ihabdevteam-core-scope .manager-section__head{align-items:flex-start;display:flex;gap:var(--spacing-xs);justify-content:space-between;margin-bottom:var(--spacing-s)}.ihabdevteam-core-scope .chart-section-icon{display:inline-flex;opacity:.35}.ihabdevteam-core-scope .chart-section-icon-inner{color:var(--color-darkGray);height:22px;width:22px}@media (max-width:767px){.ihabdevteam-core-scope .manager-section__head{align-items:flex-start;flex-direction:column;gap:var(--spacing-s)}.ihabdevteam-core-scope .manager-section-controls{flex-wrap:wrap}.ihabdevteam-core-scope .manager-section-controls .segmented-control{flex-wrap:nowrap}.ihabdevteam-core-scope .manager-section{min-width:0;padding:18px}}.ihabdevteam-core-scope .manager-section-controls{align-items:center;display:flex;gap:var(--spacing-xs)}.ihabdevteam-core-scope .manager-bar-chart-loading{align-items:center;display:flex;justify-content:center;min-height:186px}.ihabdevteam-core-scope .barchart-sub-row{align-items:flex-start;display:flex;justify-content:space-between;margin-bottom:var(--spacing-l)}.ihabdevteam-core-scope .barchart-total{align-items:baseline;display:flex;gap:4px}.ihabdevteam-core-scope .barchart-total--stacked{align-items:flex-start;flex-direction:column;gap:0}.ihabdevteam-core-scope .barchart-total--stacked .barchart-total__label,.ihabdevteam-core-scope .barchart-total--stacked .barchart-total__num,.ihabdevteam-core-scope .barchart-total--stacked .barchart-total__unit,.ihabdevteam-core-scope .barchart-total--stacked .barchart-total__value{line-height:1.1;margin:0}.ihabdevteam-core-scope .barchart-total__label{color:var(--color-gray)}.ihabdevteam-core-scope .barchart-total__value{align-items:baseline;display:flex;gap:4px}.ihabdevteam-core-scope .barchart-total__num{color:var(--color-black)}.ihabdevteam-core-scope .barchart-total__unit{color:var(--color-gray)}.ihabdevteam-core-scope .manager-bar-chart-legend{align-items:flex-end;color:var(--color-gray);display:flex;flex-direction:column;font-size:12px;gap:6px;padding-right:var(--spacing-xs)}.ihabdevteam-core-scope .manager-bar-chart-legend-item{align-items:center;display:inline-flex}.ihabdevteam-core-scope .manager-bar-chart-legend-dot{border-radius:50%;display:inline-block;height:8px;margin-right:4px;width:8px}.ihabdevteam-core-scope .manager-section--compact{min-width:160px;padding:20px}.ihabdevteam-core-scope .manager-section--compact .manager-section__head{margin-bottom:4px;min-height:28px}.ihabdevteam-core-scope .chart-section-title--small{color:var(--color-deepGray)}.ihabdevteam-core-scope .manager-section--compact .barchart-total__num{font-size:32px;line-height:1}.ihabdevteam-core-scope .manager-section--compact .barchart-total{flex-shrink:0}.ihabdevteam-core-scope .manager-section--compact .barchart-sub-row{margin-bottom:var(--spacing-s)}.ihabdevteam-core-scope .manager-section--compact .manager-bar-chart-legend{align-items:stretch;flex:1 1 auto;min-width:0}.ihabdevteam-core-scope .manager-section--compact .manager-bar-chart-legend-item{display:flex;justify-content:flex-end;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:100%}.ihabdevteam-core-scope .manager-section--full{flex:1 1 100%;width:100%}@media (max-width:767px){.ihabdevteam-core-scope .manager-section--compact{min-width:0}}";J(f8);function yn({items:e,className:t}){return o.jsx("div",{className:t?`manager-bar-chart-legend ${t}`:"manager-bar-chart-legend",children:e.map((a,r)=>o.jsxs("span",{className:"manager-bar-chart-legend-item",children:[o.jsx("span",{className:"manager-bar-chart-legend-dot",style:{background:a.color}}),a.label]},r))})}function yr({label:e,children:t}){return e?o.jsxs("div",{className:"barchart-total barchart-total--stacked",children:[o.jsx("span",{className:"barchart-total__label body-3",children:e}),o.jsx("span",{className:"barchart-total__value",children:t})]}):o.jsx("div",{className:"barchart-total",children:t})}function xn({title:e,titleClassName:t="h3",headRight:a,subRow:r,className:n,children:i}){return o.jsxs("section",{className:n?`manager-section ${n}`:"manager-section",children:[o.jsxs("div",{className:"manager-section__head",children:[o.jsx("div",{className:t,children:e}),a]}),r&&o.jsx("div",{className:"barchart-sub-row",children:r}),i]})}function oo(e,t){const a=new Date(e,t,1).getDay();return 1+(8-(a===0?7:a))%7}function v8(){const e=new Date;let t=e.getFullYear(),a=e.getMonth(),r=e.getDate();if(r<oo(t,a)){const s=new Date(t,a,0);t=s.getFullYear(),a=s.getMonth(),r=s.getDate()}const n=Math.floor((r-oo(t,a))/7),i=`${t}\uB144 ${a+1}\uC6D4`;return{monthKey:i,value:`${i}#${n}`}}function dm(e){const t=new Date,a=`${t.getFullYear()}\uB144 ${t.getMonth()+1}\uC6D4`,r=new Map;r.set(a,[]);for(const i of e){if(isNaN(i.date.getTime()))continue;const s=`${i.date.getFullYear()}\uB144 ${i.date.getMonth()+1}\uC6D4`;r.has(s)||r.set(s,[]),r.get(s).push(i)}const n={};for(const[i,s]of r){const c=i.match(/^(\d+)년 (\d+)월$/);if(!c)continue;const u=Number(c[1]),d=Number(c[2])-1,p=new Date(u,d+1,0).getDate(),m=u===t.getFullYear()&&d===t.getMonth(),h=t.getDate(),g=s.reduce((w,x)=>Math.max(w,x.parts?.length??0),0),f=new Array(p+1).fill(0),b=new Array(p+1).fill(0),y=Array.from({length:p+1},()=>new Array(g).fill(0));for(const w of s){const x=w.date.getDate();if(f[x]+=w.a,b[x]+=w.b,w.parts)for(let S=0;S<g;S++)y[x][S]+=w.parts[S]??0}const v=[];for(let w=1;w<=p;w++){const x=m&&w>h;v.push({label:String(w),a:x&&f[w]===0&&b[w]===0?-1:f[w],b:b[w],...g?{parts:y[w]}:{}})}const C=[];for(let w=oo(u,d);w<=p;w+=7){const x=Math.min(w+6,p);let S=0,_=0;const k=new Array(g).fill(0);for(let N=w;N<=x;N++){S+=f[N],_+=b[N];for(let A=0;A<g;A++)k[A]+=y[N][A]}C.push({label:`${C.length+1}\uC8FC`,sublabel:`[${w}\uC77C~${x}\uC77C]`,a:S,b:_,...g?{parts:k}:{}})}n[i]={weekly:C,daily:v}}return n}function y8(){const e=new Date,t=e.getFullYear(),a=e.getMonth()+1,r=[];for(let n=2024;n<=t;n++){const i=n===t?a:12;for(let s=1;s<=i;s++){const c=`${n}\uB144 ${s}\uC6D4`;r.push({value:c,label:c,year:n,month:s})}}return r.reverse()}const x8=y8(),um=["\uCCAB\uC9F8","\uB458\uC9F8","\uC14B\uC9F8","\uB137\uC9F8","\uB2E4\uC12F\uC9F8","\uC5EC\uC12F\uC9F8","\uC77C\uACF1\uC9F8"];function Vl(e){const{t,i18n:a}=ge.useTranslation(),[r,n]=l.useState("week"),i=l.useMemo(()=>x8.filter(A=>A.value in e),[e]),s=l.useMemo(()=>{const A=[];for(const D of i){const H=new Date(D.year,D.month,0).getDate(),P=oo(D.year,D.month-1),T=Math.ceil((H-P+1)/7);for(let E=T-1;E>=0;E--)A.push({value:`${D.value}#${E}`,monthKey:D.value,year:D.year,month:D.month,week:E})}return A},[i]),c=l.useCallback(A=>{const D=t("calendar.yearMonth",{year:A.year,month:A.month});return a.language?.startsWith("ko")?`${D} ${um[A.week]??`${A.week+1}`}\uC8FC`:`${D} Week ${A.week+1}`},[t,a.language]),u=l.useMemo(()=>i.map(A=>({value:A.value,label:t("calendar.yearMonth",{year:A.year,month:A.month})})),[t,i]),d=l.useMemo(()=>s.map(A=>({value:A.value,label:c(A)})),[s,c]),p=l.useMemo(()=>v8(),[]),m=l.useMemo(()=>i.find(A=>A.value===p.monthKey)?.value??i[0]?.value??"",[i,p]),h=l.useMemo(()=>s.find(A=>A.value===p.value)?.value??s[0]?.value??"",[s,p]),[g,f]=l.useState(""),[b,y]=l.useState("");l.useEffect(()=>{i.find(A=>A.value===g)||f(m)},[i,g,m]),l.useEffect(()=>{s.find(A=>A.value===b)||y(h)},[s,b,h]);const v=r==="month"?u:d,C=r==="month"?g:b,w=r==="month"?f:y,x=l.useMemo(()=>{const A=t("calendar.dow",{returnObjects:!0});return Array.isArray(A)?A:["\uC77C","\uC6D4","\uD654","\uC218","\uBAA9","\uAE08","\uD1A0"]},[t]),S=v.findIndex(A=>A.value===C),_=l.useCallback(()=>{const A=v.findIndex(D=>D.value===C);A<v.length-1&&w(v[A+1].value)},[v,C,w]),k=l.useCallback(()=>{const A=v.findIndex(D=>D.value===C);A>0&&w(v[A-1].value)},[v,C,w]),N=l.useMemo(()=>[{key:"week",label:t("manager.chart.periodWeek","\uC8FC")},{key:"month",label:t("manager.chart.periodMonth","\uC6D4")}],[t]);return{period:r,setPeriod:n,range:C,setRange:w,activeOptions:v,activeIdx:S,handlePrev:_,handleNext:k,periodOptions:N,monthRange:g,weekRange:b,weekRanges:s,DOW:x}}function C8({data:e,colorA:t,colorB:a,labelA:r,labelB:n,barWidth:i=10,height:s=140,maxOverride:c,tightMax:u,seriesColors:d,seriesLabels:p,rateLabels:m}){const h=!a,g=!!(d&&d.length>0),f=l.useMemo(()=>g?Math.max(0,...e.filter(k=>k.a!==-1).map(k=>(k.parts??[]).reduce((N,A)=>N+Math.max(0,A),0))):Math.max(0,...e.filter(k=>k.a!==-1).flatMap(k=>h?[k.a]:[k.a,k.b])),[e,h,g]),b=l.useMemo(()=>c??(u?f>0?f:10:Math.ceil(f/10)*10||10),[f,c,u]),y=s,v=g||h?1:2,C=l.useMemo(()=>{const k=Math.max(1,e.length);return Math.max(8,Math.min(i,Math.round(120/(k*v)+6)))},[e.length,v,i]),w=l.useMemo(()=>{const k=Math.round(b/2);return k!==b?[b,k,0]:[b,0]},[b]),[x,S]=l.useState(null),_=l.useCallback(()=>S(null),[]);return o.jsxs("div",{className:"manager-bar-chart-wrap",children:[o.jsx("div",{className:"manager-bar-chart-inner",children:o.jsx("div",{className:"manager-bar-chart-scroll",children:o.jsxs("div",{className:"manager-bar-chart-area",children:[o.jsxs("div",{className:"manager-bar-chart-plot",style:{height:y},children:[w.slice(0,-1).map((k,N)=>o.jsx("div",{className:"manager-bar-chart-gridline",style:{top:N*(y/(w.length-1))},children:o.jsx("span",{className:"manager-bar-chart-gridline__label caption-1",children:k})},N)),e.map((k,N)=>{const A=k.a===-1,D=A?0:k.a/b*y,H=A?0:k.b/b*y,P=k.parts??[];return o.jsx("div",{className:"manager-bar-chart-col",style:{cursor:A?"default":"pointer"},onMouseEnter:A?void 0:T=>{const E=T.currentTarget.getBoundingClientRect(),L=g?(p??[]).map((F,te)=>`${F}: ${P[te]??0}`).filter((F,te)=>(P[te]??0)>0).join(" / ")||`${(p??[]).join(" / ")}: 0`:m&&!h?`${r} ${k.a}% / ${n} ${k.b}%`:m&&k.rawB!==void 0?`${m.total} ${k.rawB} / ${m.done} ${k.rawA??0}`:h?`${r}: ${k.a}`:`${r}: ${k.a} / ${n}: ${k.b}`;S({rect:{left:E.left,top:E.top,right:E.right,bottom:E.bottom,width:E.width,height:E.height},text:L})},onMouseLeave:_,children:!A&&(g?o.jsx("div",{className:"manager-bar-chart-stack",style:{flex:`0 1 ${C}px`,maxWidth:C},children:(()=>{const T=P.reduce((E,L,F)=>L>0?F:E,-1);return P.map((E,L)=>E>0?o.jsx("div",{className:"manager-bar-chart-stack-segment",style:{height:E/b*y,background:(d??[])[L],borderRadius:L===T?"6px 6px 0 0":void 0}},L):null)})()}):o.jsxs(o.Fragment,{children:[o.jsx("div",{className:"manager-bar-chart-bar",style:{flex:`0 1 ${C}px`,maxWidth:C,height:D,background:t}}),!h&&o.jsx("div",{className:"manager-bar-chart-bar",style:{flex:`0 1 ${C}px`,maxWidth:C,height:H,background:a}})]}))},N)})]}),o.jsx("div",{className:"manager-bar-chart-x-axis",children:e.map((k,N)=>{const A=k.a===-1;return o.jsxs("span",{className:`manager-bar-chart-x-axis__label${A?" manager-bar-chart-x-axis__label--future":""}`,children:[o.jsxs("span",{className:"caption-1 manager-bar-chart-x-axis__main",children:[k.isToday&&o.jsx("span",{className:"manager-bar-chart-x-axis__today-dot",style:{background:t}}),k.label]}),k.sublabel&&o.jsx("span",{className:"caption-1",children:k.sublabel})]},N)})})]})})}),x&&o.jsx(aa,{anchorRect:x.rect,text:x.text})]})}function Gl({control:e}){const{t}=ge.useTranslation(),a=t("calendar.prevMonth","\uC774\uC804 \uB2EC"),r=t("calendar.nextMonth","\uB2E4\uC74C \uB2EC"),{activeOptions:n,activeIdx:i,range:s,setRange:c,handlePrev:u,handleNext:d,periodOptions:p,period:m,setPeriod:h}=e;return o.jsxs("div",{className:"manager-section-controls",children:[o.jsx(se,{size:32,type:"dot",icon:"chevron-left",ariaLabel:a,showTooltipInfo:a,disabled:i===n.length-1,onClick:u}),o.jsx(Ut,{value:s,onChange:c,options:n,size:40,className:"month-dropdown",ariaLabel:t("calendar.rangeSelect","\uAE30\uAC04 \uC120\uD0DD")}),o.jsx(se,{size:32,type:"dot",icon:"chevron-right",ariaLabel:r,showTooltipInfo:r,disabled:i<=0,onClick:d}),o.jsx(Ha,{ariaLabel:t("calendar.periodSelect","\uAE30\uAC04 \uB2E8\uC704"),options:p,value:m,onChange:g=>h(g),size:32})]})}function _8(e,t,a,r){const{period:n,monthRange:i,weekRange:s,weekRanges:c,DOW:u}=t,d=r?.startsWith("ko"),p=new Date,m=p.getFullYear(),h=p.getMonth()+1,g=p.getDate();if(n==="month"){const y=e[i]??{weekly:[],daily:[]},v=i.match(/^(\d+)년 (\d+)월$/),C=v?Number(v[1]):null,w=v?Number(v[2]):null,x=C&&w?oo(C,w-1):1;return y.weekly.map((S,_)=>{const k=_+1;let N=S.label,A=!1,D=!1;if(C&&w){const H=x+_*7,P=new Date(C,w-1,H+6),T=P.getMonth()+1,E=P.getDate(),L=T===w?`${E}`:`${T}/${E}`;N=a("manager.chart.weekRange",{start:H,end:L}),A=m===C&&h===w&&g>=H&&g<=H+6,D=C>m||C===m&&(w>h||w===h&&H>g)}return{...S,label:N,sublabel:d?`${um[k-1]??k}\uC8FC`:`Week ${k}`,isToday:A,a:D?-1:S.a,b:D?0:S.b}})}const f=c.find(y=>y.value===s);if(!f)return[];const b=new Date(f.year,f.month-1,oo(f.year,f.month-1)+f.week*7);return Array.from({length:7},(y,v)=>{const C=new Date(b);C.setDate(b.getDate()+v);const w=C.getMonth()+1,x=C.getDate(),S=C.getFullYear(),_=(e[`${S}\uB144 ${w}\uC6D4`]?.daily??[])[x-1],k=w===f.month&&S===f.year,N=_?.a===-1||C>new Date(m,p.getMonth(),g);return{label:k?`${x}`:`${w}/${x}`,sublabel:u[C.getDay()]??"",a:N?-1:_&&_.a>0?_.a:0,b:N?0:_&&_.b>0?_.b:0,isToday:S===m&&w===h&&x===g,..._?.parts?{parts:N?_.parts.map(()=>0):_.parts}:{}}})}const w8={small:{height:100,barWidth:16},medium:{height:140,barWidth:20},large:{height:180,barWidth:24}};function pm({size:e="medium",titleKey:t,data:a,colorA:r,colorB:n,labelAKey:i,labelBKey:s,showTotal:c=!1,totalUnitKey:u,totalLabelKey:d,control:p,hideControls:m=!1,rate:h=!1,tightMax:g=!1,avgMode:f=!1,totalFormat:b,series:y,loading:v=!1,onDetail:C}){const{t:w,i18n:x}=ge.useTranslation(),S=w8[e],_=Vl(a),k=p??_,N=l.useMemo(()=>_8(a,k,w,x.language),[a,k,w,x.language]),A=l.useMemo(()=>h?N.map(T=>({...T,a:T.a===-1?-1:T.b>0?Math.round(T.a/T.b*100):0,b:T.a===-1?0:s&&T.parts&&T.parts[1]>0?Math.round(T.parts[0]/T.parts[1]*100):0,rawA:T.a===-1?-1:T.a,rawB:T.b})):N,[N,h,s]),D=l.useMemo(()=>{if(h||f){const T=(k.period==="week"?N:a[k.monthRange]?.daily??[]).filter(L=>L.a!==-1);if(T.length===0)return 0;const E=h?T.reduce((L,F)=>L+(F.b>0?F.a/F.b*100:0),0):T.reduce((L,F)=>L+(F.a>0?F.a:0),0);return Math.round(E/T.length)}return A.reduce((T,E)=>T+(E.a>0?E.a:0)+(s&&E.b>0?E.b:0),0)},[A,N,h,f,s,k.period,k.monthRange,a]),H=y&&y.length>0?y.map(T=>({color:T.color,label:T.label})):[{color:r,label:w(i)},...s?[{color:n,label:w(s)}]:[]],P=e==="small";return o.jsx(xn,{className:P?"manager-section--compact":e==="large"?"manager-section--full":void 0,title:w(t),titleClassName:P?"h5 chart-section-title--small":void 0,headRight:P?void 0:o.jsxs(o.Fragment,{children:[!m&&o.jsx(Gl,{control:k}),C&&o.jsx("span",{className:"manager-bar-chart-detail-btn",children:o.jsx(se,{size:32,type:"dot",icon:"list",ariaLabel:w("trainingStatus.detail","\uC0C1\uC138\uBCF4\uAE30"),onClick:C})})]}),subRow:o.jsxs(o.Fragment,{children:[c?h||f||d&&b?o.jsx(yr,{label:P?void 0:`${w(k.period==="week"?"manager.chart.weeklyPrefix":"manager.chart.monthlyPrefix")} ${w(d??i)}`,children:b?(b(D).match(/(\d+|[^\d]+)/g)??[]).map((T,E)=>/\d/.test(T)?o.jsx("span",{className:"barchart-total__num h0",children:T},E):o.jsx("span",{className:"barchart-total__unit h5",children:T},E)):o.jsxs(o.Fragment,{children:[o.jsx("span",{className:"barchart-total__num h0",children:D}),u&&o.jsx("span",{className:"barchart-total__unit h5",children:w(u)})]})}):o.jsxs(yr,{children:[o.jsx("span",{className:"barchart-total__num h0",children:D}),o.jsx("span",{className:"barchart-total__unit h5",children:w(i)}),u&&o.jsx("span",{className:"barchart-total__unit h5",children:w(u)})]}):o.jsx("span",{}),o.jsx(yn,{items:H,className:"caption-1"})]}),children:v?o.jsx("div",{className:"manager-bar-chart-loading",children:o.jsx(Ao,{size:32})}):o.jsx(C8,{data:A,colorA:r,colorB:s?n:void 0,labelA:w(i),labelB:s?w(s):void 0,barWidth:S.barWidth,height:S.height,maxOverride:h?100:void 0,tightMax:g,seriesColors:y?.map(T=>T.color),seriesLabels:y?.map(T=>T.label),rateLabels:h?{total:w("trainingStatus.today.tooltipTotal","\uC804\uCCB4"),done:w("trainingStatus.today.tooltipDone","\uC644\uB8CC")}:void 0})})}function hm(e){if(e.period==="month"){const i=e.monthRange.match(/^(\d+)년 (\d+)월$/),s=new Date,c=i?Number(i[1]):s.getFullYear(),u=i?Number(i[2]):s.getMonth()+1;return{from:new Date(c,u-1,1,0,0,0),to:new Date(c,u,0,23,59,59)}}const t=e.weekRanges.find(i=>i.value===e.weekRange);if(!t){const i=new Date;return{from:i,to:i}}const a=oo(t.year,t.month-1),r=new Date(t.year,t.month-1,a+t.week*7,0,0,0),n=new Date(r);return n.setDate(r.getDate()+6),n.setHours(23,59,59),{from:r,to:n}}var k8=".ihabdevteam-core-scope .ring-chart{flex-shrink:0;position:relative}.ihabdevteam-core-scope .ring-chart svg{display:block}.ihabdevteam-core-scope .ring-chart__center{align-items:center;display:flex;flex-direction:column;inset:0;justify-content:center;pointer-events:none;position:absolute}.ihabdevteam-core-scope .ring-chart__center--small{transform:translateY(6.5px)}.ihabdevteam-core-scope .ring-chart__center--medium{transform:translateY(7.5px)}.ihabdevteam-core-scope .ring-chart__center--large{transform:translateY(8.5px)}.ihabdevteam-core-scope .ring-chart__pct{color:var(--color-darkGray);line-height:1}.ihabdevteam-core-scope .ring-chart__label{color:var(--color-lightGray)}.ihabdevteam-core-scope .ring-chart__label--tight{margin-top:-2px}.ihabdevteam-core-scope .ring-chart-section-body{display:flex;justify-content:center}.ihabdevteam-core-scope .ring-chart-section-body--offset{justify-content:flex-end}";J(k8);const mm={small:{diameter:96,strokeWidth:16},medium:{diameter:120,strokeWidth:18},large:{diameter:160,strokeWidth:22}};function bm({done:e,total:t,segments:a,color:r="var(--color-main)",size:n="medium",strokeWidth:i,label:s="%",hideCenter:c=!1,hideLabel:u=!1}){const d=typeof n=="number"?n:mm[n].diameter,p=i??(typeof n=="number"?12:mm[n].strokeWidth),m=d/2,h=(d-p)/2,g=2*Math.PI*h;if(a&&a.length>0){const v=a.reduce((C,w)=>{const x=C.length>0?C[C.length-1].acc:0,S=Math.max(0,Math.min(w.ratio,1-x));return C.push({color:w.color,rotate:-90+x*360,dash:g*S,acc:x+S}),C},[]);return o.jsx("div",{className:"ring-chart",style:{width:d,height:d},children:o.jsxs("svg",{width:d,height:d,viewBox:`0 0 ${d} ${d}`,"aria-hidden":"true",children:[o.jsx("circle",{cx:m,cy:m,r:h,fill:"none",stroke:"var(--color-whiteLine)",strokeWidth:p}),v.map((C,w)=>C.dash>0&&o.jsx("circle",{cx:m,cy:m,r:h,fill:"none",stroke:C.color,strokeWidth:p,strokeDasharray:`${C.dash} ${g}`,strokeLinecap:"round",transform:`rotate(${C.rotate} ${m} ${m})`},w))]})})}const f=(t??0)>0?Math.min((e??0)/t,1):0,b=g*f,y=g-b;return o.jsxs("div",{className:"ring-chart",style:{width:d,height:d},children:[o.jsxs("svg",{width:d,height:d,viewBox:`0 0 ${d} ${d}`,"aria-hidden":"true",children:[o.jsx("circle",{cx:m,cy:m,r:h,fill:"none",stroke:"var(--color-whiteLine)",strokeWidth:p}),f>0&&o.jsx("circle",{cx:m,cy:m,r:h,fill:"none",stroke:r,strokeWidth:p,strokeDasharray:`${b} ${y}`,strokeLinecap:f<.02||f>.98?"butt":"round",transform:`rotate(-90 ${m} ${m})`})]}),!c&&o.jsxs("div",{className:`ring-chart__center${u?"":` ${d<=96?"ring-chart__center--small":n==="medium"?"ring-chart__center--medium":"ring-chart__center--large"}`}`,children:[o.jsx("span",{className:`ring-chart__pct ${d<=96?"h2":"h1"}`,children:Math.round(f*100)}),!u&&o.jsx("span",{className:`ring-chart__label ${d<=96?"caption-2":"caption-1"}${d<=96||n==="medium"?" ring-chart__label--tight":""}`,children:s})]})]})}function gm({titleKey:e,headRight:t,icon:a,showTotal:r,totalLabelKey:n,legend:i,loading:s,className:c,...u}){const{t:d}=ge.useTranslation();if(!e)return o.jsx(bm,{...u});const p=(u.total??0)>0?Math.round(Math.min((u.done??0)/u.total,1)*100):0,m=u.size==="small",h=u.size==="large",g=[c,m?"manager-section--compact":h?"manager-section--full":""].filter(Boolean).join(" ")||void 0,f=a&&o.jsx("span",{className:"chart-section-icon",children:o.jsx(Ie,{icon:a,className:"chart-section-icon-inner"})});return o.jsx(xn,{className:g,title:d(e),titleClassName:m?"h5 chart-section-title--small":void 0,headRight:f||(m?void 0:t),subRow:(r||i)&&o.jsxs(o.Fragment,{children:[r?o.jsxs(yr,{label:!m&&n?d(n):void 0,children:[o.jsx("span",{className:"barchart-total__num h0",children:p}),o.jsx("span",{className:"barchart-total__unit h5",children:"%"})]}):o.jsx("span",{}),i&&o.jsx(yn,{items:i})]}),children:s?o.jsx("div",{className:"manager-bar-chart-loading",children:o.jsx(Ao,{size:32})}):o.jsx("div",{className:"ring-chart-section-body ring-chart-section-body--offset",children:o.jsx(bm,{...u,hideCenter:m||u.hideCenter})})})}var S8=".ihabdevteam-core-scope .manager-stat-card{background:var(--color-white);border-radius:var(--radius-m);box-shadow:var(--shadow-card);container-type:inline-size;display:flex;flex-direction:column;gap:4px;justify-content:flex-start;min-width:160px;padding:20px}.ihabdevteam-core-scope .manager-stat-card--clickable{border:1px solid transparent;cursor:pointer;transition:box-shadow .12s ease,border-color .12s ease}.ihabdevteam-core-scope .manager-stat-card--clickable:hover{border-color:var(--color-main);box-shadow:var(--shadow-dropdown)}.ihabdevteam-core-scope .manager-stat-card__label-row{align-items:center;display:flex;justify-content:space-between;min-height:28px}.ihabdevteam-core-scope .manager-stat-card__label{color:var(--color-deepGray)}.ihabdevteam-core-scope .manager-stat-card__icon{display:inline-flex;opacity:.35}.ihabdevteam-core-scope .manager-stat-card__icon-inner{color:var(--color-darkGray);height:22px;width:22px}.ihabdevteam-core-scope .manager-stat-card__content{align-items:flex-start;display:flex;flex:1;flex-direction:column;gap:var(--spacing-xs);justify-content:space-between}.ihabdevteam-core-scope .manager-stat-card__left{align-items:flex-start;display:flex;flex:1;flex-direction:row;gap:8px;text-align:left}.ihabdevteam-core-scope .manager-stat-card__value{color:var(--color-black);flex-shrink:0;font-size:32px;font-weight:700;letter-spacing:-.5px;line-height:1;white-space:nowrap}.ihabdevteam-core-scope .manager-stat-card__change{font-size:12px;font-weight:500;line-height:1.2;margin-top:1px;min-width:0}.ihabdevteam-core-scope .manager-stat-card__change--up{color:var(--color-sub)}.ihabdevteam-core-scope .manager-stat-card__change--down{color:var(--color-error)}.ihabdevteam-core-scope .manager-stat-card__change--neutral{color:var(--color-gray)}@media (max-width:767px){.ihabdevteam-core-scope .manager-stat-card{padding:12px 14px 16px}.ihabdevteam-core-scope .manager-stat-card__value{font-size:24px}}";J(S8);function fm({label:e,value:t,change:a,changeType:r,icon:n,tooltip:i,onClick:s}){const c=l.useRef(null),{anchorRect:u,openAt:d,close:p}=ko(),m=l.useCallback(()=>{i&&c.current&&d(c.current)},[i,d]),h=r??(a===void 0?void 0:a>0?"up":a<0?"down":"neutral"),g=a===void 0?void 0:a>0?`+${a}`:`${a}`,f=l.useCallback(b=>{s&&(b.key==="Enter"||b.key===" ")&&(b.preventDefault(),s())},[s]);return o.jsxs("div",{ref:c,className:`manager-stat-card${s?" manager-stat-card--clickable":""}`,onClick:s,onKeyDown:s?f:void 0,onPointerEnter:m,onPointerLeave:p,onFocus:m,onBlur:p,role:s?"button":void 0,tabIndex:s?0:void 0,"aria-label":s?`${e} ${t}`:void 0,children:[i&&u&&o.jsx(aa,{anchorRect:{left:u.left,top:u.top+21,right:u.right,bottom:u.bottom,width:u.width,height:u.height},text:i}),o.jsxs("div",{className:"manager-stat-card__label-row",children:[o.jsx("span",{className:"manager-stat-card__label h5",children:e}),n&&o.jsx("span",{className:"manager-stat-card__icon",children:o.jsx(Ie,{icon:n,className:"manager-stat-card__icon-inner"})})]}),o.jsx("div",{className:"manager-stat-card__content",children:o.jsxs("div",{className:"manager-stat-card__left",children:[o.jsx("div",{className:"manager-stat-card__value h2",children:t}),g&&o.jsx("div",{className:`manager-stat-card__change manager-stat-card__change--${h??"neutral"} caption-1`,children:g})]})})]})}var A8='.ihabdevteam-core-scope .slider{--slider-thumb:40px;--slider-fill:calc(var(--slider-thumb)/2 + var(--slider-ratio, 0)*(100% - var(--slider-thumb)));--slider-fill-color:var(--color-main);-webkit-appearance:none;-moz-appearance:none;appearance:none;background:transparent;border-radius:999px;cursor:pointer;margin:0;outline:none}.ihabdevteam-core-scope .slider:disabled{--slider-fill-color:var(--color-gray);cursor:not-allowed}.ihabdevteam-core-scope .slider:focus-visible{outline:2px solid var(--color-main);outline-offset:4px}.ihabdevteam-core-scope .slider--horizontal{background:linear-gradient(to right,var(--slider-fill-color) var(--slider-fill),var(--color-darkWhite) var(--slider-fill));height:var(--slider-thumb);width:100%}.ihabdevteam-core-scope .slider--vertical{-webkit-appearance:none;-moz-appearance:none;appearance:none;background:linear-gradient(to top,var(--slider-fill-color) var(--slider-fill),var(--color-darkWhite) var(--slider-fill));direction:rtl;height:160px;width:var(--slider-thumb);writing-mode:vertical-lr}.ihabdevteam-core-scope .slider::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;background:var(--color-white);border:2px solid var(--slider-fill-color);border-radius:50%;box-shadow:var(--shadow-dropdown);cursor:pointer;height:var(--slider-thumb);width:var(--slider-thumb)}.ihabdevteam-core-scope .slider:disabled::-webkit-slider-thumb{cursor:not-allowed}.ihabdevteam-core-scope .slider::-moz-range-thumb{background:var(--color-white);border:2px solid var(--slider-fill-color);border-radius:50%;box-shadow:var(--shadow-dropdown);cursor:pointer;height:var(--slider-thumb);width:var(--slider-thumb)}.ihabdevteam-core-scope .slider::-moz-range-track{background:transparent}.ihabdevteam-core-scope .slider--static{pointer-events:none}.ihabdevteam-core-scope .slider--static::-webkit-slider-thumb{visibility:hidden}.ihabdevteam-core-scope .slider--static::-moz-range-thumb{visibility:hidden}.ihabdevteam-core-scope .slider-wrap{align-items:center;display:flex;gap:10px}.ihabdevteam-core-scope .slider-wrap--label-left,.ihabdevteam-core-scope .slider-wrap--label-right{flex-direction:row}.ihabdevteam-core-scope .slider-wrap--label-left>.slider,.ihabdevteam-core-scope .slider-wrap--label-left>.slider-track-group,.ihabdevteam-core-scope .slider-wrap--label-right>.slider,.ihabdevteam-core-scope .slider-wrap--label-right>.slider-track-group{flex:1;min-width:0}.ihabdevteam-core-scope .slider-wrap--label-bottom,.ihabdevteam-core-scope .slider-wrap--label-top{flex-direction:column;gap:6px}.ihabdevteam-core-scope .slider-wrap--label-left .slider-wrap__value,.ihabdevteam-core-scope .slider-wrap--label-top .slider-wrap__value{order:-1}.ihabdevteam-core-scope .slider-wrap--label-bottom.slider-wrap--align-left,.ihabdevteam-core-scope .slider-wrap--label-top.slider-wrap--align-left{align-items:flex-start}.ihabdevteam-core-scope .slider-wrap--label-bottom.slider-wrap--align-center,.ihabdevteam-core-scope .slider-wrap--label-top.slider-wrap--align-center{align-items:center}.ihabdevteam-core-scope .slider-wrap--label-bottom.slider-wrap--align-right,.ihabdevteam-core-scope .slider-wrap--label-top.slider-wrap--align-right{align-items:flex-end}.ihabdevteam-core-scope .slider-wrap--horizontal.slider-wrap--label-bottom>.slider,.ihabdevteam-core-scope .slider-wrap--horizontal.slider-wrap--label-bottom>.slider-track-group,.ihabdevteam-core-scope .slider-wrap--horizontal.slider-wrap--label-top>.slider,.ihabdevteam-core-scope .slider-wrap--horizontal.slider-wrap--label-top>.slider-track-group{align-self:stretch}.ihabdevteam-core-scope .slider-wrap__value{font-feature-settings:"tnum";color:var(--color-main);flex-shrink:0;font-variant-numeric:tabular-nums;white-space:nowrap}.ihabdevteam-core-scope .slider-wrap--label-left .slider-wrap__value,.ihabdevteam-core-scope .slider-wrap--label-right .slider-wrap__value{min-width:2.5em;text-align:right}.ihabdevteam-core-scope .slider-track-group{align-items:center;display:flex;gap:8px}.ihabdevteam-core-scope .slider-track-group--horizontal{flex-direction:row}.ihabdevteam-core-scope .slider-track-group--horizontal .slider{flex:1;min-width:0}.ihabdevteam-core-scope .slider-track-group--vertical{flex-direction:column}.ihabdevteam-core-scope .slider-wrap__minmax{font-feature-settings:"tnum";color:var(--color-lightGray);flex-shrink:0;font-variant-numeric:tabular-nums;white-space:nowrap}';J(A8);function ql({value:e,onChange:t,min:a=0,max:r=100,step:n=1,orientation:i="horizontal",size:s=24,disabled:c=!1,ariaLabel:u,length:d,className:p,label:m,formatValue:h,labelPos:g,labelAlign:f="right",showMinMax:b=!1,minLabel:y,maxLabel:v,showBgTick:C=!1,showFillTick:w=!1,tickStep:x,tickShape:S="dot"}){t&&!u&&Zc("Slider:unnamed","[ihab/Slider] \uC774\uB984\uC774 \uC5C6\uC2B5\uB2C8\uB2E4 \u2014 ariaLabel \uC744 \uC8FC\uC138\uC694. label prop \uC740 \uAC12 \uD45C\uAE30 \uBC29\uC2DD\uC774\uC9C0 \uC774\uB984\uC774 \uC544\uB2D9\uB2C8\uB2E4.");const _=Math.min(r,Math.max(a,e)),k=r>a?(_-a)/(r-a):0,N=i==="vertical",A=!t,D=W=>t?.(Number(W.target.value)),H=typeof d=="number"?`${d}px`:d,P={"--slider-ratio":String(k),"--slider-thumb":`${s}px`,...H?N?{height:H}:{width:H}:{}},T=x??n,E=(C||w)&&T>0&&r>a?Math.floor((r-a)/T+1e-6):0;if(E>0&&E<=100){const W=S!=="dash",q=re=>W?`radial-gradient(circle, ${re} 0.5px, transparent 1px)`:N?`linear-gradient(to bottom, transparent calc(50% - 2px), ${re} calc(50% - 2px), ${re} calc(50% + 2px), transparent calc(50% + 2px))`:`linear-gradient(to right, transparent calc(50% - 2px), ${re} calc(50% - 2px), ${re} calc(50% + 2px), transparent calc(50% + 2px))`,X=W?"2px":"4px",O=[],Y=[],z=[];for(let re=0;re<=E;re++){const Q=re*T/(r-a);if(Q>1+1e-6)break;const ne=`${((N?1-Q:Q)*100).toFixed(4)}%`,me=Q<=k+1e-6;if(me?!w:!C)continue;const ce=me?"var(--slider-tick-color-on-fill, var(--color-deepWhite))":"var(--slider-tick-color, var(--color-lightGray))";O.push(q(ce)),Y.push(N?`${X} var(--slider-thumb)`:`var(--slider-thumb) ${X}`),z.push(N?`center ${ne}`:`${ne} center`)}O.push(N?"linear-gradient(to top, var(--slider-fill-color) var(--slider-fill), var(--color-darkWhite) var(--slider-fill))":"linear-gradient(to right, var(--slider-fill-color) var(--slider-fill), var(--color-darkWhite) var(--slider-fill))"),Y.push("100% 100%"),z.push("0 0"),P.backgroundImage=O.join(", "),P.backgroundSize=Y.join(", "),P.backgroundPosition=z.join(", "),P.backgroundRepeat="no-repeat"}const L=o.jsx("input",{type:"range",className:xe("slider",`slider--${i}`,A&&"slider--static",!m&&!b&&p),min:a,max:r,step:n,value:_,disabled:c,readOnly:A,tabIndex:A?-1:void 0,"aria-label":u,"aria-orientation":i,onChange:D,style:P});if(!m&&!b)return L;const F=o.jsx("span",{className:"slider-wrap__minmax caption-1",children:y??a}),te=o.jsx("span",{className:"slider-wrap__minmax caption-1",children:v??r}),Z=b?o.jsxs("div",{className:xe("slider-track-group",`slider-track-group--${i}`,!m&&p),children:[N?te:F,L,N?F:te]}):L;if(!m)return Z;const V=g??(N?"bottom":"right"),j=`${Math.round(r>a?(_-a)/(r-a)*100:0)}%`,M=h?h(_):m==="percent"?j:m==="count"?`${_} / ${r}`:String(_),$=o.jsx("span",{className:"slider-wrap__value body-3b",children:M});return o.jsxs("div",{className:xe("slider-wrap",`slider-wrap--${i}`,`slider-wrap--label-${V}`,`slider-wrap--align-${f}`,p),children:[Z,$]})}var T8='.ihabdevteam-core-scope .audio-meter{align-items:center;display:inline-flex;gap:var(--spacing-xs)}.ihabdevteam-core-scope .audio-meter__track{--meter-level:0;background:var(--color-darkWhite);border-radius:999px;flex-shrink:0;overflow:hidden;position:relative}.ihabdevteam-core-scope .audio-meter__fill{inset:0;position:absolute}.ihabdevteam-core-scope .audio-meter__value{font-feature-settings:"tnum";color:var(--color-gray);font-variant-numeric:tabular-nums;text-align:right;white-space:nowrap;width:40px}.ihabdevteam-core-scope .audio-meter--horizontal .audio-meter__track{height:8px;width:120px}.ihabdevteam-core-scope .audio-meter--horizontal .audio-meter__fill{background:linear-gradient(to right,var(--color-success) 0,var(--color-success) 55%,var(--color-warn) 80%,var(--color-error) 100%);transform:scaleX(var(--meter-level));transform-origin:left}.ihabdevteam-core-scope .audio-meter--vertical{flex-direction:column}.ihabdevteam-core-scope .audio-meter--vertical .audio-meter__track{height:120px;width:8px}.ihabdevteam-core-scope .audio-meter--vertical .audio-meter__fill{background:linear-gradient(to top,var(--color-success) 0,var(--color-success) 55%,var(--color-warn) 80%,var(--color-error) 100%);transform:scaleY(var(--meter-level));transform-origin:bottom}.ihabdevteam-core-scope .audio-meter.audio-meter--label-left,.ihabdevteam-core-scope .audio-meter.audio-meter--label-right{flex-direction:row}.ihabdevteam-core-scope .audio-meter.audio-meter--label-bottom,.ihabdevteam-core-scope .audio-meter.audio-meter--label-top{flex-direction:column}.ihabdevteam-core-scope .audio-meter--label-left .audio-meter__value,.ihabdevteam-core-scope .audio-meter--label-top .audio-meter__value{order:-1}.ihabdevteam-core-scope .audio-meter--label-bottom.audio-meter--align-left,.ihabdevteam-core-scope .audio-meter--label-top.audio-meter--align-left{align-items:flex-start}.ihabdevteam-core-scope .audio-meter--label-bottom.audio-meter--align-center,.ihabdevteam-core-scope .audio-meter--label-top.audio-meter--align-center{align-items:center}.ihabdevteam-core-scope .audio-meter--label-bottom.audio-meter--align-right,.ihabdevteam-core-scope .audio-meter--label-top.audio-meter--align-right{align-items:flex-end}';J(T8);const B8=.86,N8=250,Yl=(e,t,a,r)=>{const n=Math.round(Math.min(r,Math.max(a,e-t)));return`${n<0?"-":"+"}${Math.abs(n)} dB`};function Cn({analyser:e,audioElement:t,orientation:a="horizontal",length:r,label:n,labelPos:i,labelAlign:s="right",floorDb:c=-60,refDb:u=-35,displayMin:d=-5,displayMax:p=25,className:m,ariaLabel:h}){const g=l.useRef(null),f=l.useRef(null),b=l.useRef(null);l.useEffect(()=>{const w=e??Vo(t),x=g.current;if(!w||!x){x?.style.setProperty("--meter-level","0"),f.current&&(f.current.textContent=Yl(c,u,d,p));return}Ho();const S=new Float32Array(w.fftSize);let _=0,k=0,N=0,A=0,D=null;const H=P=>{const T=ni(w,S);_=T>_?T:_*B8;const E=_>1e-5?20*Math.log10(_):-1/0,L=Math.max(c,E),F=L-u,te=Math.min(1,Math.max(0,(F-d)/(p-d)));if(x.style.setProperty("--meter-level",te.toFixed(3)),f.current&&(k+=L,N+=1,P-A>=N8)){const Z=k/N;D=D==null?Z:D*.6+Z*.4,f.current.textContent=Yl(D,u,d,p),k=0,N=0,A=P}b.current=requestAnimationFrame(H)};return b.current=requestAnimationFrame(H),()=>{b.current!=null&&cancelAnimationFrame(b.current),b.current=null}},[e,t,c,u,d,p]);const y=typeof r=="number"?`${r}px`:r,v=o.jsx("div",{className:"audio-meter__track",style:y?a==="vertical"?{height:y}:{width:y}:{},children:o.jsx("div",{ref:g,className:"audio-meter__fill"})}),C=i??(a==="vertical"?"bottom":"right");return o.jsxs("div",{className:xe("audio-meter",`audio-meter--${a}`,n&&`audio-meter--label-${C}`,n&&`audio-meter--align-${s}`,m),role:"meter","aria-label":h,children:[v,n&&o.jsx("span",{ref:f,className:"audio-meter__value caption-2",children:Yl(c,u,d,p)})]})}const Ul=500;function Kl({message:e,position:t,duration:a,onClose:r}){const[n,i]=l.useState(!1),[s,c]=l.useState(!1),u=l.useRef(s),d=l.useRef(n);l.useEffect(()=>{u.current=s},[s]),l.useEffect(()=>{d.current=n},[n]);const p=l.useRef(null),m=l.useRef(""),h=l.useRef(r);l.useEffect(()=>{h.current=r});const g=a,f=l.useRef(null),b=l.useRef(null),y=l.useRef(null),v=l.useRef(null),C=l.useRef(null);return l.useEffect(()=>{if(e!==m.current&&(f.current&&(clearTimeout(f.current),f.current=null),b.current&&(clearTimeout(b.current),b.current=null)),e){if(d.current)return g>0&&!f.current&&(f.current=setTimeout(()=>{i(!1),b.current=setTimeout(()=>{c(!1);try{h.current()}catch{}},Ul)},g)),m.current=e,()=>{};const w=()=>{const x=p.current;if(x)try{x.classList.remove("is-visible"),x.style.transition="none",t==="top"?x.style.transform="translateX(-50%) translateY(-16px)":x.style.transform="translateX(-50%) translateY(16px)",x.style.opacity="0",x.offsetWidth,x.style.transition="",x.classList.add("is-visible"),C.current&&clearTimeout(C.current),C.current=setTimeout(()=>{C.current=null;try{x.style.opacity="",x.style.transform="",x.style.transition=""}catch{}},60)}catch{}};u.current?(w(),i(!0)):(c(!0),y.current=requestAnimationFrame(()=>{v.current=requestAnimationFrame(()=>{w(),i(!0)})})),g>0&&(f.current=setTimeout(()=>{i(!1),b.current=setTimeout(()=>{c(!1);try{h.current()}catch{}},Ul)},g))}else i(!1),b.current=setTimeout(()=>c(!1),Ul);return m.current=e,()=>{f.current&&clearTimeout(f.current),b.current&&clearTimeout(b.current),y.current&&cancelAnimationFrame(y.current),v.current&&cancelAnimationFrame(v.current),C.current&&clearTimeout(C.current),f.current=null,b.current=null,y.current=null,v.current=null,C.current=null}},[e,g,t]),{mounted:s,showing:n,popupRef:p}}var D8=".ihabdevteam-core-scope .toast{left:50%;pointer-events:none;position:fixed;transform:translateX(-50%);will-change:transform,opacity;z-index:var(--z-toast)}.ihabdevteam-core-scope .toast__inner{align-items:center;background:var(--color-main);border-radius:var(--radius-m);box-shadow:var(--shadow-popup);box-sizing:border-box;color:#fff;display:flex;justify-content:center;margin:0;max-width:min(520px,calc(100vw - 32px));min-height:60px;min-width:min(360px,calc(100vw - 32px));overflow:hidden;padding:var(--spacing-content);pointer-events:auto;text-align:center;text-overflow:ellipsis;white-space:nowrap}.ihabdevteam-core-scope .toast__inner--normal{background:linear-gradient(var(--color-white),var(--color-white)) padding-box,linear-gradient(135deg,var(--color-main),var(--color-sub)) border-box;border:2px solid transparent;color:var(--color-black)}.ihabdevteam-core-scope .toast__inner--notice{background:linear-gradient(135deg,var(--color-main),var(--color-sub));color:#fff}.ihabdevteam-core-scope .toast__inner--warning{background:var(--color-error);color:#fff}.ihabdevteam-core-scope .toast--top{opacity:0;top:18px;transform:translateX(-50%) translateY(-100%);transition:transform .26s cubic-bezier(.22,.9,.3,1),opacity .18s ease-out}.ihabdevteam-core-scope .toast--top.is-visible{opacity:1;transform:translateX(-50%) translateY(0)}.ihabdevteam-core-scope .toast--bottom{bottom:18px;opacity:0;transform:translateX(-50%) translateY(100%);transition:transform .26s cubic-bezier(.22,.9,.3,1),opacity .18s ease-out}.ihabdevteam-core-scope .toast--bottom.is-visible{opacity:1;transform:translateX(-50%) translateY(0)}";J(D8);function ro({message:e="",position:t="top",type:a="normal",onClose:r=()=>{},duration:n=2e3}){const{mounted:i,showing:s,popupRef:c}=Kl({message:e,position:t,duration:n,onClose:r});if(!i)return null;const u=a==="notice"||a==="warning"?a:"normal",d=o.jsx("div",{ref:c,className:`toast toast--${t} ${s?"is-visible":""}`,role:"status","aria-live":"polite",children:o.jsx("div",{className:`toast__inner toast__inner--${u} body-2`,children:e})});return typeof document<"u"?qt.createPortal(d,document.body):d}var E8='.ihabdevteam-core-scope .progress-bar{flex-shrink:0}.ihabdevteam-core-scope .progress-bar__track{background:var(--progress-bar-track,var(--color-darkWhite));border-radius:999px;height:8px;height:var(--progress-bar-height,8px);overflow:hidden;width:100%}.ihabdevteam-core-scope .progress-bar__fill{background:var(--progress-bar-fill,var(--color-main));border-radius:inherit;height:100%;transition:width .3s ease;transition:width var(--progress-bar-duration,.3s) ease}.ihabdevteam-core-scope .progress-bar__label{font-feature-settings:"tnum";color:var(--progress-bar-label-color,var(--color-gray));font-variant-numeric:tabular-nums}.ihabdevteam-core-scope .progress-bar--4{--progress-bar-height:4px}.ihabdevteam-core-scope .progress-bar--8{--progress-bar-height:8px}.ihabdevteam-core-scope .progress-bar--16{--progress-bar-height:16px}.ihabdevteam-core-scope .progress-bar--24{--progress-bar-height:24px}.ihabdevteam-core-scope .progress-bar--32{--progress-bar-height:32px}.ihabdevteam-core-scope .progress-bar--label-left,.ihabdevteam-core-scope .progress-bar--label-right{align-items:center;display:flex;gap:10px}.ihabdevteam-core-scope .progress-bar--label-left>.progress-bar__track,.ihabdevteam-core-scope .progress-bar--label-right>.progress-bar__track{flex:1;min-width:0}.ihabdevteam-core-scope .progress-bar--label-left .progress-bar__label{order:-1}.ihabdevteam-core-scope .progress-bar--label-bottom,.ihabdevteam-core-scope .progress-bar--label-top{display:flex;flex-direction:column;gap:6px}.ihabdevteam-core-scope .progress-bar--label-top .progress-bar__label{order:-1}.ihabdevteam-core-scope .progress-bar--label-bottom.progress-bar--align-left,.ihabdevteam-core-scope .progress-bar--label-top.progress-bar--align-left{align-items:flex-start}.ihabdevteam-core-scope .progress-bar--label-bottom.progress-bar--align-center,.ihabdevteam-core-scope .progress-bar--label-top.progress-bar--align-center{align-items:center}.ihabdevteam-core-scope .progress-bar--label-bottom.progress-bar--align-right,.ihabdevteam-core-scope .progress-bar--label-top.progress-bar--align-right{align-items:flex-end}.ihabdevteam-core-scope .progress-bar--label-bottom>.progress-bar__track,.ihabdevteam-core-scope .progress-bar--label-top>.progress-bar__track{align-self:stretch}.ihabdevteam-core-scope .progress-bar--label-inside{position:relative}.ihabdevteam-core-scope .progress-bar--label-inside .progress-bar__label{pointer-events:none;position:absolute;top:50%}.ihabdevteam-core-scope .progress-bar--label-on-fill .progress-bar__label{color:var(--progress-bar-label-color-on-fill,var(--color-deepWhite))}.ihabdevteam-core-scope .progress-bar--label-inside.progress-bar--align-left .progress-bar__label{left:10px;transform:translateY(-50%)}.ihabdevteam-core-scope .progress-bar--label-inside.progress-bar--align-center .progress-bar__label{left:50%;transform:translate(-50%,-50%)}.ihabdevteam-core-scope .progress-bar--label-inside.progress-bar--align-right .progress-bar__label{right:10px;transform:translateY(-50%)}@media (prefers-reduced-motion:reduce){.ihabdevteam-core-scope .progress-bar__fill{transition:none}}';J(E8);const j8=24;function vm({value:e,max:t=100,size:a=8,color:r,trackColor:n,label:i,formatValue:s,labelPos:c,labelAlign:u="right",ariaLabel:d,className:p}){const m=Number.isFinite(t)&&t>0?t:1,h=Math.max(0,Math.min(Number.isFinite(e)?e:0,m)),g=h/m*100,f=c??(a>=j8?"inside":"bottom"),b=f==="center"?"inside":f,y=b==="inside"&&(u==="left"?g>=15:u==="center"?g>=50:g>=85),v={};return r&&(v["--progress-bar-fill"]=r),n&&(v["--progress-bar-track"]=n),o.jsxs("div",{className:xe("progress-bar",`progress-bar--${a}`,`progress-bar--label-${b}`,i&&`progress-bar--align-${u}`,i&&y&&"progress-bar--label-on-fill",p),style:v,children:[o.jsx("div",{className:"progress-bar__track",role:"progressbar","aria-valuenow":h,"aria-valuemin":0,"aria-valuemax":m,"aria-label":d,children:o.jsx("div",{className:"progress-bar__fill",style:{width:`${g}%`}})}),i&&o.jsx("span",{className:"progress-bar__label caption-1b",children:s?s(h):i==="percent"?`${Math.round(g)}%`:i==="raw"?String(h):`${h} / ${m}`})]})}var L8=".ihabdevteam-core-scope .progress-indicator{align-items:center;display:flex;gap:var(--spacing-xs)}.ihabdevteam-core-scope .progress-indicator-dot{align-items:center;background:var(--pi-inactive-bg,var(--color-whiteLine));border-radius:var(--radius-card);color:var(--pi-inactive-color,var(--color-gray));display:inline-flex;height:28px;justify-content:center;width:52px}.ihabdevteam-core-scope .progress-indicator-dot.done{background:var(--color-main);color:#fff}.ihabdevteam-core-scope .progress-indicator-dot.active{background:var(--color-sub);color:#fff}@media (max-width:1024px){.ihabdevteam-core-scope .progress-indicator{gap:6px}.ihabdevteam-core-scope .progress-indicator-dot{height:28px;width:44px}}@media (max-width:767px){.ihabdevteam-core-scope .progress-indicator--mobile .progress-indicator-dot{height:28px;padding:0 12px;width:auto}}.ihabdevteam-core-scope .progress-indicator--dot{gap:var(--spacing-xs)}.ihabdevteam-core-scope .progress-indicator-dot--dot{background:var(--pi-inactive-bg,var(--color-darkWhite));border-radius:var(--radius-full);height:8px;transition:width .2s ease-out,background .2s ease-out;width:8px}.ihabdevteam-core-scope .progress-indicator-dot--dot.done{background:color-mix(in srgb,var(--color-main) 40%,transparent)}.ihabdevteam-core-scope .progress-indicator-dot--dot.active{background:var(--color-main);width:24px}@media (prefers-reduced-motion:reduce){.ihabdevteam-core-scope .progress-indicator-dot--dot{transition:none}}";J(L8);const M8="rgba(255, 255, 255, 0.16)";function Zl({max:e,index:t,inactiveBg:a,inactiveColor:r,transparent:n,variant:i="numbered",announce:s=!1,ariaLabel:c}){const{t:u}=ge.useTranslation(),d=oa("(max-width: 767px)");if(!Number.isInteger(e)||e<=0)return null;const p=Number.isInteger(t)?Math.max(0,Math.min(t,e-1)):0,m=c??u("progress.steps",{current:p+1,total:e,defaultValue:"\uC9C4\uD589 \uB2E8\uACC4 {{current}} / {{total}}"}),h={};return a&&(h["--pi-inactive-bg"]=a),r&&(h["--pi-inactive-color"]=r),n&&(a||(h["--pi-inactive-bg"]=M8),r||(h["--pi-inactive-color"]="var(--color-white)")),i==="dot"?o.jsx("div",{className:"progress-indicator progress-indicator--dot",style:h,role:s?"status":"img","aria-label":m,children:Array.from({length:e}).map((g,f)=>o.jsx("span",{"aria-hidden":"true",className:`progress-indicator-dot--dot${f<p?" done":f===p?" active":""}`},f))}):d?o.jsx("div",{className:"progress-indicator progress-indicator--mobile",style:h,role:"list","aria-label":m,children:o.jsxs("span",{role:"listitem",className:"progress-indicator-dot active body-3",children:[p+1," / ",e]})}):o.jsx("div",{className:"progress-indicator",style:h,role:"list","aria-label":m,children:Array.from({length:e}).map((g,f)=>o.jsx("span",{role:"listitem","aria-current":f===p?"step":void 0,className:`progress-indicator-dot ${f<p?" done":f===p?" active":""} body-3`,children:f+1},f))})}function P8(e){if(!e)return[];const t=[];let a=0,r="";for(const n of e.trim()){if(n==="("?a++:n===")"&&a--,/\s/.test(n)&&a===0){r&&(t.push(r),r="");continue}r+=n}return r&&t.push(r),t}var R8=".ihabdevteam-core-scope .table-wrap{background:var(--color-white);border:1px solid var(--color-whiteLine);border-radius:var(--radius-card);overflow-x:auto}.ihabdevteam-core-scope .table{width:100%}.ihabdevteam-core-scope .table-header{align-items:center;border-bottom:1px solid var(--color-whiteLine);box-sizing:border-box;display:flex;gap:8px;padding:0 16px;text-align:left;width:100%}.ihabdevteam-core-scope .table-header[role=button]{cursor:pointer;transition:background .15s}.ihabdevteam-core-scope .table-header[role=button]:hover{background:var(--color-darkWhite)}.ihabdevteam-core-scope .table-header__chevron{align-items:center;color:var(--color-gray);display:flex;flex-shrink:0}.ihabdevteam-core-scope .table-header__icon{align-items:center;color:var(--t-item-fg,var(--color-main));display:flex;flex-shrink:0;height:20px;justify-content:center;width:20px}.ihabdevteam-core-scope .table-header__title{color:var(--color-darkGray)}.ihabdevteam-core-scope .table-header__count{color:var(--color-main);flex-shrink:0}.ihabdevteam-core-scope .table-header__actions{align-items:center;display:flex;flex-shrink:0;gap:4px;margin-left:auto}.ihabdevteam-core-scope .table-wrap--collapsed .table-header{border-bottom:none}.ihabdevteam-core-scope .table-wrap--dragover{outline:2px dashed var(--color-main);outline-offset:-2px}.ihabdevteam-core-scope .table-wrap--dragover .table-header{background:var(--color-darkWhite)}.ihabdevteam-core-scope .table-fields{border-bottom:1px solid var(--color-whiteLine);display:grid;grid-template-columns:repeat(auto-fit,minmax(80px,1fr));grid-template-columns:var(--table-grid-cols,repeat(auto-fit,minmax(80px,1fr)))}.ihabdevteam-core-scope .table-body{display:flex;flex-direction:column}.ihabdevteam-core-scope .table-row-wrap{border-bottom:1px solid var(--color-darkWhite);display:flex;flex-direction:column}.ihabdevteam-core-scope .table-row-wrap:last-child{border-bottom:none}.ihabdevteam-core-scope .table-row{display:grid;grid-template-columns:repeat(auto-fit,minmax(80px,1fr));grid-template-columns:var(--table-grid-cols,repeat(auto-fit,minmax(80px,1fr)))}.ihabdevteam-core-scope .table-row-expand{background:var(--color-darkWhite);border-top:1px solid var(--color-whiteLine);display:flex;flex-wrap:wrap;gap:12px;padding:16px 20px}.ihabdevteam-core-scope .table-wrap--small .table-fields,.ihabdevteam-core-scope .table-wrap--small .table-header,.ihabdevteam-core-scope .table-wrap--small .table-row{min-height:48px}.ihabdevteam-core-scope .table-wrap--medium .table-fields,.ihabdevteam-core-scope .table-wrap--medium .table-header,.ihabdevteam-core-scope .table-wrap--medium .table-row{min-height:56px}.ihabdevteam-core-scope .table-wrap--large .table-fields,.ihabdevteam-core-scope .table-wrap--large .table-header,.ihabdevteam-core-scope .table-wrap--large .table-row{min-height:64px}.ihabdevteam-core-scope .table-fields.table-fields--groups{min-height:34px}.ihabdevteam-core-scope .table-row--clickable{cursor:pointer;transition:background .1s,box-shadow .1s}.ihabdevteam-core-scope .table-row--clickable:hover{background:var(--color-darkWhite)}.ihabdevteam-core-scope .table-row--draggable{cursor:grab}.ihabdevteam-core-scope .table-row--draggable:active{cursor:grabbing}.ihabdevteam-core-scope .table-row--dragging{opacity:.4}.ihabdevteam-core-scope .table-row--empty,.ihabdevteam-core-scope .table-row--loading{align-items:center;display:flex;justify-content:center}.ihabdevteam-core-scope .table-row--empty{color:var(--color-lightGray);padding:0 20px}.ihabdevteam-core-scope .table-wrap--small .table-row--empty{min-height:48px}.ihabdevteam-core-scope .table-wrap--medium .table-row--empty{min-height:56px}.ihabdevteam-core-scope .table-wrap--large .table-row--empty{min-height:64px}";J(R8);var $8=".ihabdevteam-core-scope .table-cell{align-items:center;color:var(--color-darkGray);display:flex;min-width:0;overflow:hidden;overflow-wrap:break-word;padding:0 16px;word-break:break-word}";J($8);var I8='.ihabdevteam-core-scope .table-field{align-items:center;color:var(--color-gray);cursor:pointer;display:flex;gap:0;min-width:0;overflow:hidden;padding:0 16px;text-align:left;-webkit-user-select:none;-moz-user-select:none;user-select:none;white-space:nowrap}.ihabdevteam-core-scope .table-field--resizable{position:relative}.ihabdevteam-core-scope .table-field__resizer{align-items:center;cursor:col-resize;display:flex;height:100%;justify-content:flex-end;position:absolute;right:0;top:0;touch-action:none;width:10px;z-index:3}.ihabdevteam-core-scope .table-field__resizer:after{background:var(--color-whiteLine);content:"";height:55%;transition:background-color .12s,width .12s,height .12s;width:1px}.ihabdevteam-core-scope .table-field__resizer:active:after,.ihabdevteam-core-scope .table-field__resizer:hover:after{background:var(--color-main);height:100%;width:2px}.ihabdevteam-core-scope .table-field--sorted,.ihabdevteam-core-scope .table-field:hover{color:var(--color-main)}.ihabdevteam-core-scope .table-field__sort-arrow{flex-shrink:0}';J(I8);function z8({children:e,className:t,style:a}){return o.jsx("div",{className:t?`table-cell ${t}`:"table-cell",style:a,children:e})}function Xl({variant:e="default",children:t,className:a,draggable:r,onClick:n,onMouseEnter:i,onMouseLeave:s,onDragStart:c,onDragEnd:u,expandedContent:d}){const p=l.useCallback(m=>{n&&m.target===m.currentTarget&&(m.key==="Enter"||m.key===" ")&&(m.preventDefault(),n())},[n]);return e==="loading"?o.jsx("div",{className:"table-row-wrap",children:o.jsx("div",{className:"table-row table-row--loading",children:o.jsx(Ao,{size:28})})}):e==="empty"?o.jsx("div",{className:"table-row-wrap",children:o.jsx("div",{className:"table-row table-row--empty body-3",children:t})}):o.jsxs("div",{className:"table-row-wrap",children:[o.jsx("div",{className:a?`table-row ${a}`:"table-row",draggable:r,onClick:n,onKeyDown:n?p:void 0,onMouseEnter:i,onMouseLeave:s,onDragStart:c,onDragEnd:u,role:n?"button":void 0,tabIndex:n?0:void 0,children:t}),d&&o.jsx("div",{className:"table-row-expand",children:d})]})}function O8({dir:e}){return o.jsx(e==="asc"?hd:pd,{className:"table-field__sort-arrow",size:16,strokeWidth:2})}function F8({children:e,onClick:t,className:a,sortDir:r,onResizeStart:n}){const i=l.useCallback(s=>{t&&s.target===s.currentTarget&&(s.key==="Enter"||s.key===" ")&&(s.preventDefault(),t())},[t]);return o.jsxs("div",{onClick:t,onKeyDown:t?i:void 0,role:t?"button":void 0,tabIndex:t?0:void 0,"aria-sort":r?r==="asc"?"ascending":"descending":void 0,className:xe("table-field body-3",a,r?"table-field--sorted":"",n?"table-field--resizable":""),children:[e,r&&o.jsx(O8,{dir:r}),n&&o.jsx("span",{className:"table-field__resizer",onPointerDown:n,onClick:s=>s.stopPropagation(),"aria-hidden":"true"})]})}function _n({fields:e=[],headerGroups:t,items:a=[],renderRow:r,onRowClick:n,onRowMouseEnter:i,onRowMouseLeave:s,onRowDragStart:c,onRowDragEnd:u,draggingId:d,gridTemplateColumns:p,resizable:m=!1,resizeMode:h="grow",resizeStorageKey:g,size:f="small",title:b,icon:y,count:v,collapsed:C=!1,onToggleCollapse:w,headerActions:x,empty:S,loading:_,dragOver:k=!1,onDragOver:N,onDragLeave:A,onDrop:D,renderExpandedRow:H,expandedId:P}){const{t:T}=ge.useTranslation(),E=48,L=g?`table-cols:${g}`:null,F=l.useRef(null),te=l.useRef(null),[Z,V]=l.useState(()=>{if(!L||typeof window>"u")return null;try{const Q=JSON.parse(window.localStorage.getItem(L)??"null");return Array.isArray(Q)&&Q.every(ne=>typeof ne=="number")?Q:null}catch{return null}}),j=l.useRef(Z);l.useEffect(()=>{j.current=Z},[Z]);const M=l.useCallback(Q=>{const ne=te.current;ne&&V(me=>{if(!me)return me;const ce=[...me];if(ne.next!=null&&ne.startWNext!=null){const I=Q.clientX-ne.startX,ee=Math.max(E-ne.startW,Math.min(ne.startWNext-E,I));ce[ne.index]=ne.startW+ee,ce[ne.next]=ne.startWNext-ee}else ce[ne.index]=Math.max(E,ne.startW+(Q.clientX-ne.startX));return ce})},[]),$=l.useCallback(()=>{if(te.current=null,window.removeEventListener("pointermove",M),window.removeEventListener("pointerup",$),document.body.style.cursor="",document.body.style.userSelect="",L&&j.current)try{window.localStorage.setItem(L,JSON.stringify(j.current))}catch{}},[M,L]),W=l.useCallback((Q,ne)=>{ne.preventDefault(),ne.stopPropagation();const me=F.current;if(!me)return;const ce=Array.from(me.children).map(ee=>ee.getBoundingClientRect().width),I=h==="fit"?e.findIndex((ee,pe)=>pe>Q&&ee.resizable!==!1):-1;te.current=I>=0?{index:Q,startX:ne.clientX,startW:ce[Q],next:I,startWNext:ce[I]}:{index:Q,startX:ne.clientX,startW:ce[Q]},V(ce),window.addEventListener("pointermove",M),window.addEventListener("pointerup",$),document.body.style.cursor="col-resize",document.body.style.userSelect="none"},[M,$,h,e]);l.useEffect(()=>()=>{te.current&&(window.removeEventListener("pointermove",M),window.removeEventListener("pointerup",$),document.body.style.cursor="",document.body.style.userSelect="")},[M,$]);const q=P8(p),X=Q=>/^\d+(\.\d+)?px$/.test(q[Q]??""),O=Q=>h==="fit"&&!X(Q)?"fr":"px",Y=Z&&Z.length===e.length&&(h==="fit"||a.length>0)?e.map((Q,ne)=>Q.resizable===!1&&q[ne]?q[ne]:`${Z[ne]}${O(ne)}`).join(" "):p,z=Y?{"--table-grid-cols":Y}:void 0,re=b!==void 0;return o.jsx("div",{className:`table-wrap table-wrap--${f}${k?" table-wrap--dragover":""}${C?" table-wrap--collapsed":""}`,style:z,onDragOver:N,onDragLeave:A,onDrop:D,children:o.jsxs("div",{className:"table body-2",children:[re&&o.jsxs("div",{className:"table-header",onClick:w,role:w?"button":void 0,tabIndex:w?0:void 0,"aria-expanded":w?!C:void 0,onKeyDown:w?Q=>{(Q.key==="Enter"||Q.key===" ")&&(Q.preventDefault(),w())}:void 0,children:[w&&o.jsx(se,{size:40,type:"dot",variant:"transparent-gray",useBorder:!1,icon:C?"chevron-right":"chevron-down",ariaLabel:C?T("common.expand","\uD3BC\uCE58\uAE30"):T("common.collapse","\uC811\uAE30"),className:"table-header__chevron"}),y&&o.jsx(Ie,{icon:y,label:typeof b=="string"?b:void 0,className:"table-header__icon"}),o.jsx("span",{className:"table-header__title h5b",children:b}),v!==void 0&&o.jsx("span",{className:"table-header__count body-3b",children:v}),x&&o.jsx("span",{className:"table-header__actions",onClick:Q=>Q.stopPropagation(),children:x})]}),!C&&o.jsxs(o.Fragment,{children:[t&&t.length>0&&o.jsx("div",{className:"table-fields table-fields--groups",children:t.map((Q,ne)=>o.jsx("div",{className:xe("table-field body-3",Q.className),style:{gridColumn:`span ${Q.span}`},children:Q.label},ne))}),o.jsx("div",{className:"table-fields",ref:F,children:e.map((Q,ne)=>o.jsx(F8,{onClick:Q.onClick,className:Q.className,sortDir:Q.sortDir,onResizeStart:m&&ne<e.length-1&&Q.resizable!==!1&&(h!=="fit"||e.some((me,ce)=>ce>ne&&me.resizable!==!1))?me=>W(ne,me):void 0,children:Q.label},ne))}),o.jsx("div",{className:"table-body",children:_?o.jsx(Xl,{variant:"loading"}):a.length===0&&S?o.jsx(Xl,{variant:"empty",children:S}):a.map((Q,ne)=>{const me=d!=null&&Q.id===d,ce=P!=null&&(P instanceof Set?P.has(Q.id):Q.id===P);return o.jsx(Xl,{className:`${n?" table-row--clickable":""}${c?" table-row--draggable":""}${me?" table-row--dragging":""}`.trim(),draggable:!!c,onClick:n?()=>n(Q):void 0,onMouseEnter:i?I=>i(Q,I):void 0,onMouseLeave:s?I=>s(Q,I):void 0,onDragStart:c?I=>c(Q,I):void 0,onDragEnd:u?I=>u(Q,I):void 0,expandedContent:ce&&H?H(Q):void 0,children:r(Q).map((I,ee)=>o.jsx(z8,{className:I.className,style:I.style,children:I.content},ee))},String(Q.id??ne))})})]})]})})}function ym(e){switch(e){case"\uBCF4\uCCAD\uAE30":return"main";case"\uC778\uACF5\uC640\uC6B0":return"sub";default:return"default"}}var W8=".ihabdevteam-core-scope .dlp-popup .popup-panel{max-width:600px}.ihabdevteam-core-scope .dlp-row{border-bottom:1px solid var(--color-darkWhite);cursor:pointer;transition:background .1s}.ihabdevteam-core-scope .dlp-row:hover{background:#f5f5f5;background:var(--color-hoverBg,#f5f5f5)}.ihabdevteam-core-scope .dlp-row:last-child{border-bottom:none}.ihabdevteam-core-scope .dlp-date{color:var(--color-lightGray);white-space:nowrap}.ihabdevteam-core-scope .dlp-side-table{margin-top:0}.ihabdevteam-core-scope .dlp-worn-check{align-items:center;display:inline-flex}.ihabdevteam-core-scope .dlp-row-actions{align-items:center;display:flex;justify-content:flex-end}";J(W8);function xm(e,t){return t!=="wornAt"?String(e[t]??""):e.wornYear?`${e.wornYear}-${e.wornMonth.padStart(2,"0")}-${e.wornDay.padStart(2,"0")}`:""}function Cm({rows:e,onSelect:t,onDelete:a,onWear:r,onRelease:n,onAdd:i}){const{t:s}=ge.useTranslation(),c=f=>f==="\uC88C"?s("device.direction.left","\uC88C"):s("device.direction.right","\uC6B0"),{\uC815\uB82C:u,\uCE78:d}=ll(),p=l.useMemo(()=>{if(!u)return e;const{key:f,asc:b}=u;return[...e].sort((y,v)=>{const C=f==="worn"?Number(v.worn)-Number(y.worn):xm(y,f).localeCompare(xm(v,f),"ko");return b?C:-C})},[e,u]),{pageRows:m,pageSizeProps:h,paginationProps:g}=sl(p,u);return o.jsxs("div",{className:"dlp-side-table",children:[o.jsx(vn,{count:{value:e.length,unit:s("customers.device.unit","\uAC1C")},pageSize:h,pagination:g,actions:i&&o.jsx(se,{size:40,type:"bar",variant:"main",icon:"plus",label:s("customers.device.addButton","\uAE30\uAE30 \uCD94\uAC00"),onClick:i})}),o.jsx(_n,{resizable:!0,resizeMode:"fit",resizeStorageKey:"customer-device-history-v2",fields:[{...d(s("customers.device.wearingNow","\uCC29\uC6A9"),"worn"),resizable:!1},d(s("device.direction.label","\uBC29\uD5A5"),"side"),d(s("device.deviceType","\uC885\uB958"),"device"),d(s("device.brand","\uBE0C\uB79C\uB4DC"),"brand"),d(s("device.fitType","\uCC29\uC6A9\uD615\uD0DC"),"fitType"),d(s("device.productName","\uC81C\uD488\uBA85"),"productName"),d(s("device.wornDate","\uCC29\uC6A9\uC77C"),"wornAt"),...a?[{label:"",resizable:!1}]:[]],items:m.map((f,b)=>({id:f.id??`${f.side}-${b}`,row:f})),gridTemplateColumns:`56px 110px 110px minmax(120px, 1fr) 100px minmax(120px, 1fr) 110px${a?" 80px":""}`,renderRow:({row:f})=>[{content:o.jsx("span",{className:"dlp-worn-check",onClick:b=>b.stopPropagation(),children:o.jsx(Wl,{checked:f.worn,disabled:!r||!n,ariaLabel:f.worn?s("customers.device.unwear","\uCC29\uC6A9 \uD574\uC81C"):s("customers.device.wear","\uCC29\uC6A9"),onChange:b=>{b?r?.(f):n?.(f)}})})},{content:o.jsx("span",{children:c(f.side)})},{content:f.device?o.jsx(ht,{size:"small",variant:ym(f.device),fill:"soft",label:f.device}):o.jsx("span",{})},{content:o.jsx("span",{children:f.brand})},{content:o.jsx("span",{children:f.fitType||"-"})},{content:o.jsx("span",{children:f.productName||"-"})},{content:o.jsx("span",{className:"dlp-date",children:f.wornYear?`${f.wornYear}.${f.wornMonth}.${f.wornDay}`:"-"})},...a?[{content:o.jsx("span",{className:"dlp-row-actions",children:o.jsx(se,{size:28,type:"bar",variant:"transparent-gray",label:s("common.delete","\uC0AD\uC81C"),onClick:b=>{b?.stopPropagation(),a(f)}})})}]:[]],onRowClick:({row:f})=>t(f),empty:s("customers.device.historyEmpty","\uB4F1\uB85D\uB41C \uAE30\uAE30 \uC774\uB825\uC774 \uC5C6\uC2B5\uB2C8\uB2E4.")})]})}var H8=`.ihabdevteam-core-scope .calendar-nav{align-items:center;display:flex;gap:var(--spacing-m);justify-content:center;margin-bottom:var(--spacing-m);position:relative}.ihabdevteam-core-scope .calendar-nav__legend{align-items:center;color:var(--color-gray);display:flex;gap:6px;position:absolute;right:0}.ihabdevteam-core-scope .calendar-nav__legend-dot{border-radius:50%;display:inline-block;height:8px;width:8px}.ihabdevteam-core-scope .calendar-nav__legend-dot--main{background:var(--color-main)}.ihabdevteam-core-scope .calendar-nav__legend-dot--sub{background:var(--color-sub)}.ihabdevteam-core-scope .calendar-nav__legend-dot--disabled{background:var(--color-disabled)}.ihabdevteam-core-scope .calendar-nav__button{background:var(--color-white);border:1px solid var(--color-whiteLine);border-radius:var(--radius-sm);color:var(--color-darkGray);cursor:pointer;display:flex;font-size:18px;height:32px;line-height:1;transition:border-color .15s,color .15s;width:32px}.ihabdevteam-core-scope .calendar-nav__button:hover{border-color:var(--color-main);color:var(--color-main)}.ihabdevteam-core-scope .calendar-nav__title{color:var(--color-darkGray);font-weight:700;min-width:100px;text-align:center}.ihabdevteam-core-scope .calendar-grid{grid-gap:4px;display:grid;gap:4px;grid-template-columns:repeat(7,1fr)}.ihabdevteam-core-scope .calendar-day-header{color:var(--color-lightGray);font-weight:600;padding:6px 0;text-align:center}.ihabdevteam-core-scope .calendar-day-header:first-child{color:var(--color-error)}.ihabdevteam-core-scope .calendar-day-header:last-child{color:var(--color-main)}.ihabdevteam-core-scope .calendar-cell{background:transparent;border-radius:var(--radius-s);box-sizing:border-box;cursor:default;min-height:118px;min-width:118px;padding:8px}.ihabdevteam-core-scope .calendar-cell.empty{background:transparent;cursor:default}
|
|
840
840
|
|
|
841
841
|
/* !important \uD544\uC694 \u2014 \uC624\uB298\uC774 \uC77C\uC694\uC77C/\uD1A0\uC694\uC77C\uACFC \uACB9\uCE58\uBA74 \uC544\uB798 nth-child \uC8FC\uB9D0 \uC0C9\uC0C1 \uADDC\uCE59\uACFC
|
|
842
842
|
\uD2B9\uC774\uB3C4\uAC00 \uB3D9\uC77C(3\uD074\uB798\uC2A4)\uD558\uACE0 \uC18C\uC2A4 \uC21C\uC11C\uC0C1 \uB4A4\uB77C !important \uC5C6\uC774\uB294 \uD770 \uAE00\uC790\uAC00 \uC8FC\uB9D0\uC0C9\uC73C\uB85C
|
|
843
|
-
\uB36E\uC5B4\uC368\uC9D0(\uC624\uB298 \uD45C\uC2DC\uAC00 \uBB34\uC758\uBBF8\uD574\uC9D0). \uC2E4\uC81C \uACBD\uD569 \uD655\uC778\uB428. */.ihabdevteam-core-scope .calendar-cell.today .calendar-cell__number{align-items:center;background:var(--color-main);border-radius:50%;color:#fff!important;display:flex;height:24px;justify-content:center;width:24px}.ihabdevteam-core-scope .calendar-cell__number{align-items:center;color:var(--color-darkGray);display:flex;font-weight:600;height:24px;justify-content:center;margin-bottom:6px;width:24px}.ihabdevteam-core-scope .calendar-cell:nth-child(7n+8) .calendar-cell__number{color:var(--color-error)}.ihabdevteam-core-scope .calendar-cell:nth-child(7n+14) .calendar-cell__number{color:var(--color-main)}.ihabdevteam-core-scope .calendar-cell__badges{display:flex;flex-direction:column;gap:4px}.ihabdevteam-core-scope .calendar-visit-badge{align-items:center;background:var(--color-main-a10);border-radius:var(--radius-xs);box-sizing:border-box;color:var(--color-main);display:flex;gap:6px;min-height:28px;overflow:hidden;padding:0 8px}.ihabdevteam-core-scope .calendar-visit-badge__time{flex-shrink:0;font-weight:400;opacity:.7}.ihabdevteam-core-scope .calendar-visit-badge__name{flex:1;overflow:hidden;text-align:right;text-overflow:ellipsis;white-space:nowrap}.ihabdevteam-core-scope .calendar-visit-badge--scheduled{background:var(--color-sub-a10);color:var(--color-sub)}.ihabdevteam-core-scope .calendar-visit-badge--no-visit{background:color-mix(in srgb,var(--color-disabled) 15%,#fff);color:var(--color-disabled)}.ihabdevteam-core-scope .calendar-visit-badge__no-visit{background:var(--color-disabled);border-radius:var(--radius-xs);color:#fff;flex-shrink:0;line-height:1.4;padding:1px 5px}.ihabdevteam-core-scope .calendar-visit-badge--clickable{cursor:pointer;transition:background .12s,color .12s,border-color .12s}.ihabdevteam-core-scope .calendar-visit-badge--clickable:hover{background:var(--color-main);border-color:transparent;color:#fff}.ihabdevteam-core-scope .calendar-visit-badge--scheduled.calendar-visit-badge--clickable:hover{background:var(--color-sub);color:#fff}.ihabdevteam-core-scope .calendar-visit-badge--no-visit.calendar-visit-badge--clickable:hover{background:var(--color-disabled);color:#fff}.ihabdevteam-core-scope .calendar-visit-badge--draggable{cursor:grab}.ihabdevteam-core-scope .calendar-visit-badge--draggable:active{cursor:grabbing;opacity:.5}.ihabdevteam-core-scope .calendar-nav__button{align-items:center;display:inline-flex;justify-content:center}.ihabdevteam-core-scope .calendar-nav__button-icon{display:block}.ihabdevteam-core-scope .calendar-cell--clickable{cursor:pointer}.ihabdevteam-core-scope .calendar-cell--clickable:hover{background:var(--color-darkWhite)}.ihabdevteam-core-scope .calendar-cell--clickable:focus-visible{outline:2px solid var(--color-main);outline-offset:-2px}.ihabdevteam-core-scope .calendar-cell.drag-over{background:var(--color-main-a10);outline:1px solid var(--color-main);outline-offset:-1px}@media (max-width:767px){.ihabdevteam-core-scope .calendar-nav{flex-wrap:wrap}.ihabdevteam-core-scope .calendar-nav__legend{justify-content:center;position:static;width:100%}.ihabdevteam-core-scope .calendar-cell,.ihabdevteam-core-scope .calendar-day-header{min-width:0}.ihabdevteam-core-scope .calendar-cell{min-height:72px;padding:4px}}`;J(H8);function _m(e,t){return e?{role:t?.role??"button",tabIndex:0,...t?.selected===void 0?{}:{"aria-selected":t.selected},onKeyDown:a=>{a.key!=="Enter"&&a.key!==" "||(a.preventDefault(),e(a))}}:{}}function V8(e,t){return new Date(e,t+1,0).getDate()}function G8(e,t){return new Date(e,t,1).getDay()}function wm({visits:e=[],onVisitClick:t,onVisitMove:a,onDayClick:r}){const{t:n}=ge.useTranslation(),i=l.useMemo(()=>n("calendar.dow",{returnObjects:!0}),[n]),[s,c]=l.useState(new Date().getFullYear()),[u,d]=l.useState(new Date().getMonth()),[p,m]=l.useState(null),h=l.useRef(null),g=new Date,f=l.useMemo(()=>{const x={};return e.forEach(S=>{x[S.date]||(x[S.date]=[]),x[S.date].push(S)}),x},[e]),b=l.useMemo(()=>{const x=V8(s,u),S=G8(s,u),_=[];for(let k=0;k<S;k++)_.push(null);for(let k=1;k<=x;k++)_.push(k);for(;_.length<35;)_.push(null);return _},[s,u]),y=l.useCallback(()=>{u===0?(c(x=>x-1),d(11)):d(x=>x-1)},[u]),v=l.useCallback(()=>{u===11?(c(x=>x+1),d(0)):d(x=>x+1)},[u]),C=x=>`${s}-${String(u+1).padStart(2,"0")}-${String(x).padStart(2,"0")}`,w=x=>g.getFullYear()===s&&g.getMonth()===u&&g.getDate()===x;return o.jsxs("div",{children:[o.jsxs("div",{className:"calendar-nav",children:[o.jsx("button",{className:"calendar-nav__button",onClick:y,"aria-label":n("calendar.prevMonth","\uC774\uC804 \uB2EC"),children:o.jsx(Ie,{icon:"chevron-left",label:"",className:"",svgClassName:"calendar-nav__button-icon",size:18})}),o.jsx("span",{className:"calendar-nav__title h5",children:n("calendar.yearMonth",{year:s,month:u+1})}),o.jsx("button",{className:"calendar-nav__button",onClick:v,"aria-label":n("calendar.nextMonth","\uB2E4\uC74C \uB2EC"),children:o.jsx(Ie,{icon:"chevron-right",label:"",className:"",svgClassName:"calendar-nav__button-icon",size:18})}),o.jsxs("div",{className:"calendar-nav__legend",children:[o.jsx("span",{className:"calendar-nav__legend-dot calendar-nav__legend-dot--main"}),o.jsx("span",{className:"caption-1",children:n("calendar.legend.visited","\uBC29\uBB38")}),o.jsx("span",{className:"calendar-nav__legend-dot calendar-nav__legend-dot--sub"}),o.jsx("span",{className:"caption-1",children:n("calendar.legend.scheduled","\uC608\uC57D")}),o.jsx("span",{className:"calendar-nav__legend-dot calendar-nav__legend-dot--disabled"}),o.jsx("span",{className:"caption-1",children:n("calendar.legend.noVisit","\uBBF8\uBC29\uBB38")})]})]}),o.jsxs("div",{className:"calendar-grid",children:[i.map(x=>o.jsx("div",{className:"calendar-day-header body-3",children:x},x)),b.map((x,S)=>{if(x===null)return o.jsx("div",{className:"calendar-cell empty"},`empty-${S}`);const _=x,k=C(_),N=f[k]??[],A=p===k;return o.jsxs("div",{className:`calendar-cell${w(_)?" today":""}${A?" drag-over":""}${r?" calendar-cell--clickable":""}`,role:r?"button":void 0,tabIndex:r?0:void 0,"aria-label":r?n("calendar.addOnDate",{date:k}):void 0,onClick:r?()=>r(k):void 0,onKeyDown:r?D=>{D.key!=="Enter"&&D.key!==" "||(D.preventDefault(),r(k))}:void 0,onDragOver:a?D=>{D.preventDefault(),m(k)}:void 0,onDragLeave:a?D=>{D.currentTarget.contains(D.relatedTarget)||m(null)}:void 0,onDrop:a?D=>{D.preventDefault(),h.current!=null&&(a(h.current,k),h.current=null),m(null)}:void 0,children:[o.jsx("div",{className:"calendar-cell__number body-3",children:_}),o.jsx("div",{className:"calendar-cell__badges",children:N.map((D,H)=>o.jsxs("div",{draggable:!!a,className:`calendar-visit-badge${D.status==="noVisit"?" calendar-visit-badge--no-visit":D.status==="scheduled"?" calendar-visit-badge--scheduled":""}${t?" calendar-visit-badge--clickable":""}${a?" calendar-visit-badge--draggable":""}`,onDragStart:a?P=>{h.current=D.id,P.dataTransfer.effectAllowed="move"}:void 0,onDragEnd:a?()=>{h.current=null,m(null)}:void 0,onClick:t?P=>{P.stopPropagation(),t(D)}:void 0,..._m(t?()=>t(D):void 0),"aria-label":[D.time?Zr(D.time,n):null,D.customer,n(D.status==="noVisit"?"calendar.legend.noVisit":D.status==="scheduled"?"calendar.legend.scheduled":"calendar.legend.visited")].filter(Boolean).join(" "),children:[D.time&&o.jsx("span",{className:"calendar-visit-badge__time body-3",children:Zr(D.time,n)}),o.jsx("span",{className:"calendar-visit-badge__name body-3",children:D.customer}),D.status==="noVisit"&&o.jsx("span",{className:"calendar-visit-badge__no-visit caption-1",children:n("calendar.legend.noVisit","\uBBF8\uBC29\uBB38")})]},D.id??H))})]},_)})]})]})}var q8=".ihabdevteam-core-scope .section{display:flex;flex-direction:column;text-align:left;width:100%}.ihabdevteam-core-scope .section--page{gap:var(--spacing-m);padding-bottom:var(--spacing-page)}.ihabdevteam-core-scope .section--pagePopup{gap:var(--spacing-s);padding-bottom:var(--spacing-page)}.ihabdevteam-core-scope .section--popup{gap:var(--spacing-xs);padding-bottom:var(--spacing-page)}.ihabdevteam-core-scope .section:last-child{padding-bottom:0}.ihabdevteam-core-scope .section__header{align-items:center;display:flex;justify-content:space-between;width:100%}.ihabdevteam-core-scope .section__title-row{align-items:flex-start;display:flex;flex:1;gap:var(--spacing-s)}.ihabdevteam-core-scope .section__icon{align-items:center;background:var(--t-item-bg,var(--color-deepWhite));color:var(--t-item-fg,var(--color-main));display:flex;flex-shrink:0;height:20px;justify-content:center;margin-top:5px;width:20px}.ihabdevteam-core-scope .section__title-group{display:flex;flex-direction:column;gap:4px}.ihabdevteam-core-scope .section__title{color:var(--color-black);margin:0}.ihabdevteam-core-scope .section__disc{color:var(--color-gray);margin:0}.ihabdevteam-core-scope .section__action{flex-shrink:0}@media (max-width:767px){.ihabdevteam-core-scope .section__header{align-items:flex-start;flex-direction:column;gap:var(--spacing-xs)}}";J(q8);const Y8={page:"h3",pagePopup:"h4",popup:"h5"};function no({type:e="page",title:t,icon:a,action:r,disc:n,children:i,className:s,style:c}){const u=Y8[e],d=t||n;return o.jsxs("div",{className:xe("section",`section--${e}`,s),style:c,children:[d&&o.jsxs("div",{className:"section__header",children:[o.jsxs("div",{className:"section__title-row",children:[a&&o.jsx(Ie,{icon:a,label:typeof t=="string"?t:void 0,className:"section__icon"}),o.jsxs("div",{className:"section__title-group",children:[t&&o.jsx("div",{className:`section__title ${u}`,children:t}),n&&o.jsx("div",{className:"section__disc body-3",children:n})]})]}),r&&o.jsx("div",{className:"section__action",children:r})]}),i]})}var U8=".ihabdevteam-core-scope .training-blocks{align-items:flex-start;display:flex;flex-direction:column}.ihabdevteam-core-scope .training-block{border-radius:var(--radius-card);width:100%}.ihabdevteam-core-scope .training-list{align-items:flex-start;display:flex;flex-wrap:wrap;gap:10px}.ihabdevteam-core-scope .training-list__item{display:inline-block;vertical-align:top}.ihabdevteam-core-scope .training-block__more{display:flex;justify-content:center;margin-top:var(--spacing-l)}.ihabdevteam-core-scope .training-blocks--top-spaced{margin-top:18px}";J(U8);var K8=".ihabdevteam-core-scope .category-icon{align-items:center;background:var(--t-item-bg,color-mix(in srgb,var(--t-item-fg,var(--color-lightGray)) 10%,transparent));border-radius:var(--radius-s);color:var(--t-item-fg,var(--color-lightGray));display:flex;flex-shrink:0;font-size:18px;height:40px;justify-content:center;width:40px}.ihabdevteam-core-scope .category-icon--small{border-radius:var(--radius-sm);height:28px;width:28px}.ihabdevteam-core-scope .category-icon__mask{background-color:currentColor;background-color:var(--t-item-fg,currentColor);border-radius:var(--radius-sm);display:inline-block;-webkit-mask-image:var(--icon-url);mask-image:var(--icon-url);-webkit-mask-position:center;mask-position:center;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:contain;mask-size:contain}.ihabdevteam-core-scope .category-icon__image{border-radius:var(--radius-sm);display:block;-o-object-fit:contain;object-fit:contain}.ihabdevteam-core-scope .category-icon__svg svg{fill:currentColor;display:block}.ihabdevteam-core-scope .category-icon__wrap{cursor:default;display:inline-flex;position:relative}.ihabdevteam-core-scope .training-list__item .category-icon__wrap{left:18px;position:absolute;top:18px}.ihabdevteam-core-scope .training-list__item .category-icon{position:static}.ihabdevteam-core-scope .category-icon__tooltip{pointer-events:none;white-space:nowrap}.ihabdevteam-core-scope .category-icon__tooltip-text{background:var(--color-darkGray);border-radius:var(--radius-sm);box-shadow:var(--shadow-tooltip);color:#fff;display:block;font-size:13px;line-height:1.4;padding:6px 12px}";J(K8);function km({icon:e,label:t,tooltip:a,wrapperStyle:r,color:n,bgColor:i,useHover:s=!0,iconSize:c="medium"}){const u=c==="small",d=xe("category-icon",u?"category-icon--small":""),p=u?16:20,m=l.useRef(null),[h,g]=l.useState(!1),f=l.useMemo(()=>{const _=r&&typeof r=="object"?{...r}:{};return!n&&!i?_:{..._,...n?{color:n,"--t-item-fg":n}:{},...i?{"--t-item-bg":i}:{}}},[r,n,i]),b=a||t,[y,v]=l.useState(null);l.useLayoutEffect(()=>{h&&v(m.current?.getBoundingClientRect()??null)},[h]),l.useEffect(()=>{if(!s&&h)try{g(!1)}catch{}},[s,h]),l.useEffect(()=>{if(!h)return;const _=k=>{const N=m.current;if(!N)return;const A=k.target;A&&!N.contains(A)&&g(!1)};return document.addEventListener("pointerdown",_,!0),()=>document.removeEventListener("pointerdown",_,!0)},[h]);const C=l.useCallback(()=>{s&&g(!0)},[s]),w=l.useCallback(()=>{s&&g(!1)},[s]),x=l.useCallback(()=>g(!1),[]),S=l.useCallback(_=>{if(_.key==="Escape"){g(!1);return}(_.key==="Enter"||_.key===" ")&&(_.preventDefault(),g(k=>!k))},[]);return o.jsxs("span",{ref:m,className:"category-icon__wrap",onPointerEnter:C,onPointerLeave:w,onFocus:C,onBlur:w,onKeyDown:S,role:"button",tabIndex:0,"aria-label":typeof b=="string"?b:void 0,"aria-haspopup":!!b,"aria-expanded":h,"data-tooltip-ignore":!0,children:[o.jsx(Ie,{icon:e,label:t,className:d,imgClassName:"category-icon__image",maskClassName:"category-icon__mask",svgClassName:"category-icon__svg",wrapperStyle:f,size:p}),h&&b&&o.jsx(aa,{anchorRect:y,text:typeof b=="string"?b:void 0,offset:8,onClose:x,className:"category-icon__tooltip",ariaLabel:typeof b=="string"?b:void 0})]})}var Z8=".ihabdevteam-core-scope .training-block-button{background:var(--color-white);border:1px solid rgba(0,0,0,.06);border-radius:var(--radius-m);box-shadow:var(--shadow-card);box-sizing:border-box;cursor:pointer;display:inline-block;height:200px;padding:var(--spacing-l);position:relative;text-align:left;transition:all .12s;vertical-align:top;width:200px}.ihabdevteam-core-scope .training-block-button:hover{border-color:var(--color-main);box-shadow:var(--shadow-card)}.ihabdevteam-core-scope .training-block-button--completed{box-shadow:var(--shadow-card)}.ihabdevteam-core-scope .training-block-button__more{position:absolute;right:var(--spacing-l);top:calc(var(--spacing-l) - 2px);z-index:2}@media (min-width:768px) and (max-width:1023px){.ihabdevteam-core-scope .training-block-button{height:190px;width:190px}}@media (max-width:767px){.ihabdevteam-core-scope .training-block-button{height:170px;width:calc(50% - 5px)}.ihabdevteam-core-scope .training-block-button__title.h3{-webkit-line-clamp:3;-webkit-box-orient:vertical;display:-webkit-box;line-height:20px;overflow:hidden}}.ihabdevteam-core-scope .training-block-button__left{display:block}.ihabdevteam-core-scope .training-block-button__title.h3{color:var(--color-black);left:20px;margin:0;position:absolute;right:20px;top:68px}.ihabdevteam-core-scope .training-block-button__description{align-items:center;bottom:20px;display:flex;gap:var(--spacing-xs);height:20px;justify-content:space-between;left:20px;position:absolute;right:20px}.ihabdevteam-core-scope .training-block-button__count{color:var(--color-darkGray)}.ihabdevteam-core-scope .training-block-button__chevron{align-items:center;color:var(--color-lightGray);display:inline-flex;height:20px;justify-content:center;margin-left:auto}.ihabdevteam-core-scope .training-block-button__chevron-icon,.ihabdevteam-core-scope .training-block-button__chevron-icon-image,.ihabdevteam-core-scope .training-block-button__chevron-icon-mask,.ihabdevteam-core-scope .training-block-button__chevron-icon-svg{align-items:center;color:var(--color-lightGray);display:inline-flex;height:20px;justify-content:center;width:20px}.ihabdevteam-core-scope .training-block-button__chevron-icon-mask{background-color:currentColor;-webkit-mask-image:var(--icon-url);mask-image:var(--icon-url);-webkit-mask-position:center;mask-position:center;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:contain;mask-size:contain}.ihabdevteam-core-scope .training-block-button__chevron-icon-image{display:block;-o-object-fit:contain;object-fit:contain}.ihabdevteam-core-scope .training-block-button__chevron-icon-svg svg{fill:currentColor;display:block;height:20px;width:20px}.ihabdevteam-core-scope .training-block-button .category-icon__wrap{left:18px;position:absolute;top:18px}.ihabdevteam-core-scope .training-block-button .category-icon{position:static}.ihabdevteam-core-scope .training-block-button__type-label{color:var(--color-gray);left:20px;overflow:hidden;position:absolute;right:20px;text-overflow:ellipsis;top:68px;white-space:nowrap}.ihabdevteam-core-scope .training-block-button--withType .training-block-button__title.h3{top:86px}.ihabdevteam-core-scope .training-block-button--small{height:120px;width:120px}.ihabdevteam-core-scope .training-block-button--small .category-icon__wrap{left:12px;top:12px}.ihabdevteam-core-scope .training-block-button--small .training-block-button__type-label{color:var(--color-gray);left:12px;overflow:hidden;position:absolute;right:12px;text-overflow:ellipsis;top:44px;white-space:nowrap}.ihabdevteam-core-scope .training-block-button--small .training-block-button__title{color:var(--color-black);left:12px;margin:0;overflow:hidden;position:absolute;right:12px;text-overflow:ellipsis;top:60px;white-space:nowrap}.ihabdevteam-core-scope .training-block-button--small.training-block-button--no-type-label .training-block-button__title{-webkit-line-clamp:2;-webkit-box-orient:vertical;display:-webkit-box;top:44px;white-space:normal}.ihabdevteam-core-scope .training-block-button--small .training-block-button__description{bottom:10px;height:16px;left:12px;right:12px}.ihabdevteam-core-scope .training-block-button--small .training-block-button__more{right:6px;top:6px}.ihabdevteam-core-scope .training-block-button--small .training-block-button__chevron-icon,.ihabdevteam-core-scope .training-block-button--small .training-block-button__chevron-icon-svg,.ihabdevteam-core-scope .training-block-button--small .training-block-button__chevron-icon-svg svg{height:12px;width:12px}.ihabdevteam-core-scope .training-block-button--list{box-shadow:none;min-height:68px;padding:0 12px;width:200px}.ihabdevteam-core-scope .training-block-button--list .training-block-button__left{align-items:center;display:flex;gap:var(--spacing-s);height:100%;width:100%}.ihabdevteam-core-scope .training-block-button--list .category-icon__wrap{flex-shrink:0;order:1;position:static}.ihabdevteam-core-scope .training-block-button--list .training-block-button__title{color:var(--color-black);flex:1;min-width:0;order:2;overflow:hidden;position:static;text-overflow:ellipsis;white-space:nowrap}.ihabdevteam-core-scope .training-block-button--list .training-block-button__description{display:none}.ihabdevteam-core-scope .training-block-button--list .training-block-button__preview{align-items:center;display:inline-flex;flex-shrink:0;justify-content:center;order:4}.ihabdevteam-core-scope .training-block-button--small .training-block-button__preview{align-items:center;display:inline-flex;justify-content:center;position:absolute;right:12px;top:12px;z-index:1}.ihabdevteam-core-scope .training-block-button--compact{background:transparent;border-color:transparent;box-shadow:none;height:40px;padding:0;width:100%}.ihabdevteam-core-scope .training-block-button--compact:hover{background:var(--color-darkWhite);border-color:transparent;box-shadow:none}.ihabdevteam-core-scope .training-block-button--compact .training-block-button__left{align-items:center;display:flex;gap:var(--spacing-xs);height:100%;width:100%}.ihabdevteam-core-scope .training-block-button--compact .category-icon__wrap{flex-shrink:0;order:1;position:static}.ihabdevteam-core-scope .training-block-button--compact .training-block-button__title{color:var(--color-black);flex:1;min-width:0;order:2;overflow:hidden;position:static;text-overflow:ellipsis;white-space:nowrap}.ihabdevteam-core-scope .training-block-button--compact .training-block-button__description{display:none}";J(Z8);function X8(e,t){if(!e)return{previewCodes:[],previewBucket:null};const a=e,r=s=>s.map(c=>c?.contextCode||c?.context_code).filter(Boolean).map(String);if(t==="LISTEN_IN_NOISE"){const s=a.sentences||a.items||[],c=Array.isArray(s)&&s.length>0?r(s):[];return c.length===0&&(a.contextCode||a.context_code)&&c.push(String(a.contextCode||a.context_code)),{previewCodes:c,previewBucket:"LIN_D"}}if(t==="SHORT_STORY"){const s=a.items||a.sentences||[],c=Array.isArray(s)&&s.length>0?r(s):[];return c.length===0&&(a.contextCode||a.context_code)&&c.push(String(a.contextCode||a.context_code)),{previewCodes:c,previewBucket:"SHORT_S"}}if(t==="LONG_STORY"){const s=a.items||a.sentences||[],c=Array.isArray(s)&&s.length>0?r(s):[];return c.length===0&&(a.contextCode||a.context_code)&&c.push(String(a.contextCode||a.context_code)),{previewCodes:c,previewBucket:"LONG"}}if(t==="ORDERING_SENTENCE"){const s=a.sentences||a.items||[],c=Array.isArray(s)&&s.length>0?r(s):[];return c.length===0&&(a.contextCode||a.context_code)&&c.push(String(a.contextCode||a.context_code)),{previewCodes:c,previewBucket:"LIN_D"}}const n=a.sentences||a.items||[],i=r(Array.isArray(n)?n:[]);return i.length===0&&(a.contextCode||a.context_code)&&i.push(String(a.contextCode||a.context_code)),{previewCodes:i,previewBucket:null}}function Q8(e,t){const[a,r]=l.useState(!1),[n,i]=l.useState(-1),[s,c]=l.useState([]),u=l.useRef(null),d=l.useRef(!1),p=l.useRef(null),[m,h]=l.useState(!1),g=l.useRef([]),{previewCodes:f,previewBucket:b}=X8(e,t);l.useEffect(()=>{if(!f.length)return;let v=!1;return(async()=>{const C=[],w=[];for(const x of f)try{const S=Nr(x,b);if(!S){C.push("");continue}let _=null;try{_=await Oo(S)}catch{}if(!_)try{const k=await Dr(S);k&&(_=URL.createObjectURL(k),w.push(_))}catch{}C.push(_??"")}catch{C.push("")}v?w.forEach(x=>{try{URL.revokeObjectURL(x)}catch{}}):(g.current.forEach(x=>{try{URL.revokeObjectURL(x)}catch{}}),g.current=w,c(C))})(),()=>{v=!0}},[f.join(","),b]),l.useEffect(()=>()=>{g.current.forEach(v=>{try{URL.revokeObjectURL(v)}catch{}}),g.current=[]},[]);const y=l.useCallback(async v=>{if(v.stopPropagation(),v.preventDefault(),d.current){d.current=!1;try{u.current?.pause()}catch{}r(!1),i(-1);return}if(s.filter(Boolean).length){d.current=!0,r(!0);for(let C=0;C<s.length&&d.current;C++){const w=s[C];if(w){i(C);try{await new Promise((x,S)=>{const _=new Audio(w);u.current=_,_.onended=()=>x(),_.onerror=()=>S(),_.play().catch(S)})}catch{break}}}d.current=!1,r(!1),i(-1)}},[s]);return l.useEffect(()=>()=>{d.current=!1;try{u.current?.pause()}catch{}u.current=null},[]),{playing:a,playingIndex:n,previewUrls:s,previewHover:m,setPreviewHover:h,previewBtnRef:p,handlePreview:y}}const J8=e=>{if(!e)return[];const t=typeof e.context=="string"&&e.context.trim()||typeof e.sentence=="string"&&e.sentence.trim()||typeof e.text=="string"&&e.text.trim()||"";if(t)return[String(t)];const a=e.sentences||e.items||e.questions||[];return Array.isArray(a)&&a.length>0?a.map(r=>{if(typeof r=="string")return r;if(r&&typeof r=="object"){const n=r;return n.sentence||n.text||n.context||n.question||n.title||""}return""}).filter(r=>typeof r=="string"&&r.trim().length>0).map(r=>r.trim()):[]};function wn(e){const{index:t,type:a,trainingData:r,ariaLabel:n,depth:i,renderPopup:s,completed:c,completedIds:u,selectedIds:d,tooltipText:p,useDescriptionTooltip:m=!1,onRemove:h,hideCheckBadge:g=!1,showTypeLabel:f=!1,onComplete:b,onSelect:y,onMore:v,countLabelOverride:C,size:w="square"}=e||{},{t:x}=ge.useTranslation(),[S,_]=l.useState(!1),k=l.useRef(null),[N,A]=l.useState(!1);l.useEffect(()=>{k.current?.matches(":hover")&&A(!0)},[]);const{playing:D,playingIndex:H,previewUrls:P,previewHover:T,setPreviewHover:E,previewBtnRef:L,handlePreview:F}=Q8(r,a?.key),te=l.useCallback(()=>{y?y():_(!0)},[y]),Z=l.useCallback(()=>_(!1),[]),V=l.useCallback(()=>A(!0),[]),j=l.useCallback(()=>A(!1),[]),M=l.useCallback(()=>E(!0),[E]),$=l.useCallback(()=>E(!1),[E]),[W,q]=l.useState(null);l.useLayoutEffect(()=>{T&&q(L.current?.getBoundingClientRect()??null)},[T,L]);const[X,O]=l.useState(null);l.useLayoutEffect(()=>{N&&!S&&m&&O(k.current?.getBoundingClientRect()??null)},[N,S,m]);const Y=l.useCallback(be=>{(be.key==="Enter"||be.key===" ")&&(be.preventDefault(),te())},[te]),z=r||null,re=l.useMemo(()=>{if(!m)return null;const be=p?(Array.isArray(p)?p:[p]).filter(Boolean):null,Ke=be&&be.length>0?be:J8(z);return Ke&&Ke.length>0?Ke:null},[m,p,z]),Q=l.useCallback(be=>{be.stopPropagation(),h?.()},[h]),ne=l.useCallback(be=>be.stopPropagation(),[]),me=l.useCallback(be=>{typeof b=="function"&&b(be)},[b]),ce=c||(u&&r?.id!=null?u.has(String(r.id)):!1),I=!ce&&(d!=null&&r?.id!=null?d.has(String(r.id)):!1);dr("speechear.popup.close",Z);const ee=Xr(),pe=`${a?.label||""} ${t+1}`,ke=z?.title||z?.name||pe;let Ce=a?.icon,R,oe="",ae="";try{const be=z?.category_0||z?.category_main_code||z?.category_main,Ke=z?.category_1||z?.category_sub_code||z?.category_sub,We=ee.find(Le=>Le.key===be);We?.icon&&(Ce=We.icon),!R&&We?.color&&(R={"--t-item-fg":We.color}),!R&&z?.iconColor&&(R={"--t-item-fg":z.iconColor}),oe=We?.label||"";try{ae=We?.subs?.find(Le=>Le.key===Ke)?.label||""}catch{}}catch{}const ve=ae?`${oe} / ${ae}`:oe||a?.label||ke,De=be=>x("training.countQuestions",{n:be}),ze=be=>x("training.countSentences",{n:be});let Re="";try{if(z)if(a?.key==="LISTEN_IN_NOISE"){let be=0;Array.isArray(z.items)&&z.items.length>0?be=z.items.length:Array.isArray(z.sentences)&&z.sentences.length>0?be=z.sentences.length:z.sentences&&(be=1),Re=ze(be)}else if(a?.key==="SHORT_STORY"){let be=1;Array.isArray(r?.items)?be=r.items.length:Array.isArray(r?.raw&&r.raw?.items)?be=r.raw.items.length:Array.isArray(z?.questions)?be=z.questions.length:Array.isArray(z?.sentences)&&(be=z.sentences.length),Re=De(be)}else if(a?.key==="LONG_STORY"){let be=1;if(Array.isArray(z.items)&&z.items.length>0){const Ke=z.items.reduce((We,Le)=>{const Ge=Le.questionItems;return Array.isArray(Ge)?We+Ge.length:Array.isArray(Le.questions)?We+Le.questions.length:We},0);be=Ke>0?Ke:z.items.length}else Array.isArray(z.questions)&&z.questions.length>0?be=z.questions.length:Array.isArray(z.sentences)&&z.sentences.length>0&&(be=z.sentences.length);Re=De(be)}else if(a?.key==="ORDERING_SENTENCE"){let be=1;Array.isArray(z.items)&&z.items.length>0?be=z.items.length:Array.isArray(z.sentences)&&z.sentences.length>0&&(be=z.sentences.length),Re=ze(be)}else Array.isArray(z.items)&&(Re=z.items.length>0?De(z.items.length):"")}catch{}const Me=w==="list",Ye=w==="compact",Ne=w==="small",Ve=Ne&&a?.key?ls().find(be=>be.key===a.key)?.label??"":"",Fe=!!f&&!!a?.label&&a.label!==String(ke)||Ne&&!!Ve&&Ve!==String(ke);return o.jsxs(o.Fragment,{children:[o.jsxs("div",{ref:k,className:`training-block-button${Me?" training-block-button--list":""}${Ye?" training-block-button--compact":""}${Ne?" training-block-button--small":""}${ce?" training-block-button--completed":""}${I?" training-block-button--selected":""}${Fe&&!Ne?" training-block-button--withType":""}${Ne&&!Fe?" training-block-button--no-type-label":""}`,onClick:te,onPointerEnter:V,onPointerLeave:j,role:"button",tabIndex:0,onKeyDown:Y,"aria-label":typeof n=="string"?n:typeof ke=="string"?ke:void 0,children:[o.jsxs("div",{className:"training-block-button__left",children:[f&&a?.label&&a.label!==String(ke)&&o.jsx("span",{className:"training-block-button__type-label caption-1",children:a.label}),Ne&&Ve&&Ve!==String(ke)&&o.jsx("span",{className:"training-block-button__type-label caption-2",children:Ve}),o.jsx(km,{icon:Ce,label:ke,tooltip:ve,wrapperStyle:R,iconSize:Ne||Ye?"small":"medium"}),!g&&(ce||I)&&!(h&&N)&&o.jsx(ht,{type:"dot",icon:"check",position:"top-left",size:"medium","aria-label":ce?x("training.completed","\uD6C8\uB828 \uC644\uB8CC"):x("training.selected","\uC120\uD0DD\uB428")}),h&&N&&o.jsx(ht,{type:"dot",icon:"remove",position:"top-left",size:"medium","aria-label":x("common.remove","\uC81C\uAC70"),onClick:Q}),o.jsx("div",{className:`training-block-button__title ${Ye?"body-3":Ne?"body-3b":"h3"}`,children:String(ke)}),o.jsxs("div",{className:"training-block-button__description",children:[(()=>{const be=C!==void 0?C:Re;return be?o.jsx("div",{className:`training-block-button__count ${Ne?"caption-2":"caption-1"}`,children:be}):null})(),o.jsx("div",{className:"training-block-button__chevron",children:o.jsx(Ie,{icon:"chevron-right",label:x("training.next","\uB2E4\uC74C"),className:"training-block-button__chevron-icon",imgClassName:"training-block-button__chevron-icon-image",maskClassName:"training-block-button__chevron-icon-mask",svgClassName:"training-block-button__chevron-icon-svg",size:Ne?12:20})})]}),(Me||Ne)&&P.length>0&&o.jsx("div",{ref:L,className:"training-block-button__preview","data-tooltip-ignore":!0,onClick:ne,onPointerEnter:M,onPointerLeave:$,children:o.jsx(se,{size:Ne?28:32,type:"dot",icon:D?"pause":"play",variant:Ne?"transparent-lightGray":"default",useBorder:!1,selected:D,ariaLabel:D?x("training.stop","\uC815\uC9C0"):x("training.preview","\uBBF8\uB9AC \uB4E3\uAE30"),onClick:F})})]}),v&&o.jsx("div",{className:"training-block-button__more","data-tooltip-ignore":!0,onClick:be=>{be.stopPropagation(),v(be)},children:o.jsx(se,{size:40,type:"dot",icon:"more-horizontal",variant:"transparent-lightGray",useBorder:!1,ariaLabel:x("common.more","\uB354\uBCF4\uAE30")})})]}),T&&o.jsx(aa,{anchorRect:W,text:D?x("training.stop","\uC815\uC9C0"):x("training.preview","\uBBF8\uB9AC \uB4E3\uAE30"),offset:8,onClose:$}),N&&!S&&m&&(re?o.jsx(to,{anchorRect:X,items:re,activeIndex:H,onClose:j}):z?.subTitle?o.jsx(aa,{anchorRect:X,text:z.subTitle,offset:8,onClose:j}):null),S&&s&&s({trainingData:z,typeKey:a?.key??"",onClose:Z,onComplete:me,popupTitle:String(ke),popupSubTitle:a?.subTitle,depth:i!=null?String(i):void 0,popupIcon:Ce,popupIconTooltip:String(ve),popupWrapperStyle:R})]})}const kn=20;function Sm(e){const{t}=ge.useTranslation(),{type:a,trainingDatas:r,depth:n,renderPopup:i,completedIds:s,selectedIds:c,onItemComplete:u,size:d,useDescriptionTooltip:p,onRemove:m,onMore:h,sectionType:g="page"}=e||{},[,f]=l.useState(0),b=typeof r<"u"?Array.isArray(r)?r:[]:[],y=b.length,[v,C]=l.useState(Math.min(y,kn)),w=l.useMemo(()=>Array.isArray(n)?[...n,a?.label].filter(Boolean).join(" \xB7 "):[n||"",a?.label].filter(Boolean).join(" \xB7 "),[n,a?.label]);l.useEffect(()=>{C(Math.min(y,kn))},[y]),dr("speechear.data.updated",()=>f(S=>S+1));function x(){C(S=>Math.min(y,S+kn))}return o.jsxs(no,{type:g,title:a?.label,icon:a?.icon,disc:a?.desc,className:"training-block",children:[o.jsx("div",{className:"training-list",children:(b||[]).slice(0,v).map((S,_)=>{const k=S;return o.jsx(wn,{index:_,type:a,trainingData:k,depth:w,renderPopup:i,completedIds:s,selectedIds:c,size:d,useDescriptionTooltip:p,onRemove:typeof m=="function"&&c!=null&&k?.id!=null&&c.has(String(k.id))?()=>m(k):void 0,onComplete:typeof u=="function"&&k?.id!=null?()=>u(String(k.id)):void 0,onMore:typeof h=="function"?N=>h(k,N):void 0},k?.id!=null?`${a?.key||"t"}-${String(k.id)}`:`${a?.key||"t"}-${_}`)})}),y>kn&&v<y&&o.jsx("div",{className:"training-block__more",children:o.jsx(se,{size:48,type:"bar",icon:"plus",onClick:x,ariaLabel:t("common.loadMore","\uB354\uBCF4\uAE30"),label:t("common.loadMore","\uB354\uBCF4\uAE30"),variant:"main"})})]})}function Ql(e){const t=l.useRef(null),[a,r]=l.useState(!!e),[n,i]=l.useState(!1);l.useEffect(()=>{i(!1);const u=t.current;r(!!e&&!(u?.complete&&u.naturalWidth>0))},[e]);const s=l.useCallback(()=>r(!1),[]),c=l.useCallback(()=>{r(!1),i(!0)},[]);return{imgRef:t,loading:a,failed:n,hasImage:!!e&&!n,onLoad:s,onError:c}}let Bo=null;function ek(e){if(Bo&&Bo!==e)try{Bo()}catch{}return Bo=e,()=>{Bo===e&&(Bo=null)}}var tk='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',ak='.ihabdevteam-core-scope .training-word-card{background:var(--color-white);border-radius:var(--radius-m);display:flex;flex:none;flex-direction:column;height:260px;overflow:visible;perspective:900px;position:relative;width:200px}.ihabdevteam-core-scope .training-word-card--disabled{cursor:default}.ihabdevteam-core-scope .training-word-card__flipper{border-radius:var(--radius-m);box-shadow:var(--shadow-card);display:flex;flex:1;flex-direction:column;position:relative;transform-style:preserve-3d;transition:transform .55s cubic-bezier(.4,0,.2,1);will-change:transform}.ihabdevteam-core-scope .training-word-card--flipped .training-word-card__flipper{transform:rotateY(180deg)}.ihabdevteam-core-scope .training-word-card__front{box-sizing:border-box;flex:1;flex-direction:column;gap:var(--spacing-s);min-height:0;padding:10px var(--spacing-m)}.ihabdevteam-core-scope .training-word-card__back,.ihabdevteam-core-scope .training-word-card__front{align-items:center;backface-visibility:hidden;-webkit-backface-visibility:hidden;display:flex;justify-content:center}.ihabdevteam-core-scope .training-word-card__back{background:#f3f5f6;background:var(--color-deepWhite,#f3f5f6);border-radius:var(--radius-m);inset:0;position:absolute;transform:rotateY(180deg)}.ihabdevteam-core-scope .training-word-card__back:before{border:8px solid var(--color-darkWhite);border-radius:var(--radius-m);content:"";inset:0;pointer-events:none;position:absolute}.ihabdevteam-core-scope .training-word-card__disabled-symbol{filter:invert(93%) sepia(6%) saturate(247%) hue-rotate(163deg) brightness(101%) contrast(93%);height:52px;opacity:.6;pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none;width:52px}.ihabdevteam-core-scope .training-word-card__selected-badge{position:absolute;right:0;top:0;transform:translate(12%,-12%);z-index:3}.ihabdevteam-core-scope .training-word-card__selected-badge .circle-badge{border:2px solid var(--color-pureWhite)}.ihabdevteam-core-scope .training-word-card--selectable{cursor:pointer;outline:1px solid transparent;overflow:visible;transition:box-shadow .15s,outline-color .15s}.ihabdevteam-core-scope .training-word-card--selectable:not(.training-word-card--disabled):hover{box-shadow:0 4px 16px rgba(9,30,34,.12);outline:1px solid var(--color-main)}.ihabdevteam-core-scope .training-word-card--selectable.training-word-card--selected:hover,.ihabdevteam-core-scope .training-word-card--selected{box-shadow:none;outline:2px solid #4f6ef7;outline:2px solid var(--color-main,#4f6ef7)}.ihabdevteam-core-scope .training-word-card__image-wrap{aspect-ratio:4/3;background:#f3f5f6;border-radius:var(--radius-s);flex-shrink:0;overflow:hidden;padding:0;position:relative;width:100%}.ihabdevteam-core-scope .training-word-card__image{-webkit-user-drag:none;display:block;height:100%;-o-object-fit:cover;object-fit:cover;pointer-events:none;transition:opacity .2s;-webkit-user-select:none;-moz-user-select:none;user-select:none;width:100%}.ihabdevteam-core-scope .training-word-card__placeholder{background:linear-gradient(160deg,#f0f2f4,#e4e8ea);height:100%;width:100%}.ihabdevteam-core-scope .training-word-card__spinner{align-items:center;display:flex;inset:0;justify-content:center;position:absolute;z-index:1}.ihabdevteam-core-scope .training-word-card__spinner:after{animation:twCard__spin .7s linear infinite;border:3px solid rgba(0,0,0,.1);border-radius:50%;border-top:3px solid var(--color-main,#4f6ef7);content:"";height:28px;width:28px}@keyframes twCard__spin{to{transform:rotate(1turn)}}.ihabdevteam-core-scope .training-word-card__body{align-items:center;display:flex;flex-direction:column;gap:3px;padding:0}.ihabdevteam-core-scope .training-word-card__word{color:#0b2b35;color:var(--color-black,#0b2b35);font-size:22px;font-weight:700;line-height:1.25;text-align:center;word-break:keep-all}.ihabdevteam-core-scope .training-word-card__pronunciation{color:#70858a;color:var(--color-gray,#70858a);font-size:13px;font-weight:500;line-height:1.4;text-align:center}.ihabdevteam-core-scope .training-word-card__colloquial{color:#a0b0b5;color:var(--color-lightGray,#a0b0b5);line-height:1.4;text-align:center}.ihabdevteam-core-scope .training-word-card__bottom{display:flex;flex-shrink:0;justify-content:center}@media (max-width:720px){.ihabdevteam-core-scope .training-word-card{border-radius:var(--radius-card)}.ihabdevteam-core-scope .training-word-card__word{font-size:18px}.ihabdevteam-core-scope .training-word-card__body{gap:2px}.ihabdevteam-core-scope .training-word-card__front{gap:var(--spacing-xs)}.ihabdevteam-core-scope .training-word-card__back,.ihabdevteam-core-scope .training-word-card__back:before{border-radius:var(--radius-card)}}@media (max-width:767px){.ihabdevteam-core-scope .training-word-card{border-radius:var(--radius-card);height:auto;width:100%}.ihabdevteam-core-scope .training-word-card__flipper{border-radius:var(--radius-card);box-shadow:0 2px 8px rgba(0,0,0,.03)}.ihabdevteam-core-scope .training-word-card__front{padding:var(--spacing-s)}.ihabdevteam-core-scope .training-word-card__back:before{border-width:4px}.ihabdevteam-core-scope .training-word-card__image-wrap{aspect-ratio:1/1}.ihabdevteam-core-scope .training-word-card__word{font-size:14px}.ihabdevteam-core-scope .training-word-card__pronunciation{font-size:11px}.ihabdevteam-core-scope .training-word-card__body{gap:2px}.ihabdevteam-core-scope .training-word-card__front{gap:4px}}';J(ak);const ok=tk,Sn=l.forwardRef(function({item:e,disabled:t=!1,onPlayDone:a,selectable:r=!1,selected:n=!1,onSelect:i,flipDelay:s=0,hideLabel:c=!1,hideAudio:u=!1,orderRank:d=null},p){const{t:m}=ge.useTranslation(),h=e.word||e.title||"",g=t||!h,f=e.audio??e.sound??e.audioKey,b=e.subLabel||e.pronunciation||"",y=e.colloquialLabel||"",[v,C]=l.useState({label:h,subLabel:b,colloquialLabel:y,homonum:e.homonum});h&&v.label!==h&&C({label:h,subLabel:b,colloquialLabel:y,homonum:e.homonum});const w=l.useRef(null),x=oa("(max-width: 767px)"),[S,_]=l.useState(!1),[k,N]=l.useState(""),A=Ma()?.(v.label,v.homonum)??e.image??"",{imgRef:D,loading:H,hasImage:P,onLoad:T,onError:E}=Ql(A);l.useEffect(()=>{let M=!1;return(async()=>{if(f){if(typeof f=="string"){if(f.startsWith("http")||f.includes("/")){N(f);return}}else if(typeof f=="object"&&!Array.isArray(f)){const W=f.src;if(W){N(W);return}}}const $=Fo();if($&&h)try{const W=await Promise.resolve($(h));!M&&W&&N(W)}catch{}})(),()=>{M=!0}},[f,h]),l.useEffect(()=>()=>{try{w.current?.pause()}catch{}w.current=null},[]);const L=l.useCallback(()=>new Promise(M=>{if(typeof window<"u"&&window.speechSynthesis&&h){_(!0),window.speechSynthesis.cancel();const $=new SpeechSynthesisUtterance(h);$.lang="ko-KR",$.onend=()=>{_(!1);try{a?.()}catch{}M()},$.onerror=()=>{_(!1),M()},window.speechSynthesis.speak($)}else M()}),[h,a]),F=l.useCallback(M=>new Promise($=>{let W=!1;const q=()=>{W||(W=!0,_(!1),$(!1))};try{const X=new Audio(M);w.current=X,X.onended=()=>{if(!W){W=!0,_(!1);try{a?.()}catch{}$(!0)}},X.onerror=q,X.play().catch(q)}catch{q()}}),[a]),te=l.useCallback(async()=>{if(t)return;const M=ek(()=>{try{w.current?.pause()}catch{}try{window.speechSynthesis?.cancel()}catch{}_(!1)});try{window.speechSynthesis?.cancel()}catch{}try{if(k&&(_(!0),await F(k)))return;const $=oi();if($&&h)try{const W=await Promise.resolve($(h));if(W&&(_(!0),await F(W)))return}catch{}await L()}finally{M()}},[t,k,h,F,L]);l.useImperativeHandle(p,()=>({play:()=>te()}),[te]);const Z=M=>M.stopPropagation(),V=l.useCallback(M=>{if(M.stopPropagation(),!t){if(S){try{w.current?.pause()}catch{}try{window.speechSynthesis?.cancel()}catch{}_(!1);return}te()}},[t,S,te]),j=xe("training-word-card",t?"training-word-card--disabled":"",g?"training-word-card--flipped":"",r?"training-word-card--selectable":"",n?"training-word-card--selected":"");return o.jsx("div",{className:j,onClick:r&&!t?i:void 0,role:r?"button":void 0,"aria-pressed":r?n:void 0,tabIndex:r&&!t?0:void 0,"aria-disabled":r&&t?!0:void 0,onKeyDown:r&&!t?M=>{(M.key==="Enter"||M.key===" "||M.key==="Spacebar")&&(M.preventDefault(),i?.())}:void 0,children:o.jsxs("div",{className:"training-word-card__flipper",style:{transitionDelay:g?"0ms":`${s}ms`},children:[o.jsxs("div",{className:"training-word-card__front",children:[n&&o.jsx("div",{className:"training-word-card__selected-badge",onClick:Z,children:o.jsx(ht,{type:"dot",size:40,position:"inline",animate:!0,icon:d!=null?void 0:"check",number:d??void 0,"aria-label":d!=null?m("training.nthSelected",{n:d}):m("training.selected","\uC120\uD0DD\uB428")})}),o.jsx("div",{className:"training-word-card__image-wrap",children:P?o.jsxs(o.Fragment,{children:[H&&o.jsx("div",{className:"training-word-card__spinner"}),o.jsx("img",{ref:D,className:"training-word-card__image",src:A,alt:v.label||m("common.image","\uC774\uBBF8\uC9C0"),style:{opacity:H?0:1},onLoad:T,onError:E})]}):o.jsx("div",{className:"training-word-card__placeholder"})}),!c&&o.jsxs("div",{className:"training-word-card__body",children:[o.jsx("div",{className:"training-word-card__word",children:v.label}),v.subLabel&&o.jsxs("div",{className:"training-word-card__pronunciation",children:["[",v.subLabel,"]"]}),v.colloquialLabel&&o.jsxs("div",{className:"training-word-card__colloquial caption-1",children:["[",v.colloquialLabel,"]"]})]}),!u&&o.jsx("div",{className:"training-word-card__bottom",onClick:r?Z:void 0,children:o.jsx(se,{size:x?40:48,type:x?"dot":"bar",icon:S?"pause":"play",label:x?void 0:m("training.playSound","\uC18C\uB9AC \uB4E3\uAE30"),selected:S,onClick:V,disabled:t,ariaLabel:m("training.playSound","\uC18C\uB9AC \uB4E3\uAE30")})})]}),o.jsx("div",{className:"training-word-card__back","aria-hidden":"true",children:o.jsx("img",{src:ok,className:"training-word-card__disabled-symbol",alt:"",draggable:!1})})]})})});let yr=0,Am="",Tm="",xr=0;function rk(){return Bm(!1)}function nk(){return Bm(!0)}function Bm(e){const t=typeof document<"u";yr===0&&t&&(Am=document.body.style.overflow,document.body.style.overflow="hidden"),e&&t&&(xr===0&&(Tm=document.body.style.paddingRight),xr++,document.body.style.paddingRight="0px"),yr++;let a=!1;return()=>{a||(a=!0,yr=Math.max(0,yr-1),e&&t&&(xr=Math.max(0,xr-1),xr===0&&(document.body.style.paddingRight=Tm)),yr===0&&t&&(document.body.style.overflow=Am))}}var ik=".ihabdevteam-core-scope .popup{align-items:center;background:rgba(16,24,32,.6);background:var(--color-popupBlock,rgba(16,24,32,.6));display:flex;inset:0;justify-content:center;position:fixed;z-index:var(--z-modal)}.ihabdevteam-core-scope .popup.popup--inline{align-items:stretch;background:transparent;justify-content:stretch;position:relative;z-index:5}.ihabdevteam-core-scope .popup.popup--inline .popup-panel{width:100%}.ihabdevteam-core-scope .popup-panel{background:var(--color-white);border-radius:28px;box-shadow:var(--shadow-popup);display:flex;flex-direction:column;max-height:calc(100% - 60px);max-width:820px;overflow:hidden;position:relative;width:calc(100% - 40px)}.ihabdevteam-core-scope .popup-panel--small{max-width:480px}.ihabdevteam-core-scope .popup-panel--medium{max-width:680px}.ihabdevteam-core-scope .popup-panel--large{max-width:1080px}.ihabdevteam-core-scope .popup-close-float{align-items:center;display:flex;gap:var(--spacing-xs);position:absolute;right:8px;top:8px;z-index:1}.ihabdevteam-core-scope .popup-title{display:block;flex-shrink:0;padding:var(--spacing-l);text-align:center}.ihabdevteam-core-scope .popup-header{align-items:center;display:flex;flex-shrink:0;gap:var(--spacing-s);padding:var(--spacing-l) var(--spacing-l) 0}.ihabdevteam-core-scope .popup-header--with-subtitle{align-items:flex-start}.ihabdevteam-core-scope .popup-header-main{display:flex;flex:1;flex-direction:column;gap:4px;min-width:0}.ihabdevteam-core-scope .popup-title--left{flex:1;min-width:0;padding:0;text-align:left}.ihabdevteam-core-scope .popup-header-main .popup-title--left{flex:none}.ihabdevteam-core-scope .popup-header .popup-title--left{margin:0}.ihabdevteam-core-scope .popup-subtitle{color:var(--color-gray);margin:0;text-align:left}.ihabdevteam-core-scope .popup-header-actions{align-items:center;display:flex;flex-shrink:0;gap:6px}.ihabdevteam-core-scope .popup-content{-webkit-overflow-scrolling:touch;display:flex;flex:1;flex-direction:column;min-height:0;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;padding:20px 20px 0;touch-action:pan-y}.ihabdevteam-core-scope .popup-content__inner{padding-bottom:20px}.ihabdevteam-core-scope .popup-footer{display:flex;gap:8px;justify-content:center;padding:0 20px 20px}.ihabdevteam-core-scope .popup-footer--buttons>*{flex:1;max-width:200px}.ihabdevteam-core-scope .popup--closing{opacity:0;transition:opacity .26s ease}@media (max-width:767px){.ihabdevteam-core-scope .popup-panel{max-height:calc(100% - 132px - env(safe-area-inset-bottom))}}.ihabdevteam-core-scope .form-date-row{display:flex;flex:1;gap:6px;min-width:0}.ihabdevteam-core-scope .form-date-row>div{min-width:90px}.ihabdevteam-core-scope .form-date-row--ymd>div:first-child{flex:3}.ihabdevteam-core-scope .form-date-row--ymd>div:nth-child(2),.ihabdevteam-core-scope .form-date-row--ymd>div:nth-child(3){flex:2}.ihabdevteam-core-scope .form-date-row--hm>div{flex:1}.ihabdevteam-core-scope .form-date-row--gap-8{gap:8px}@media (max-width:360px){.ihabdevteam-core-scope .form-date-row--ymd{flex-wrap:wrap}.ihabdevteam-core-scope .form-date-row--ymd>div:first-child{flex:1 0 100%}}.ihabdevteam-core-scope .form-field-error{color:var(--color-error);font-size:13px;margin-bottom:8px;padding:6px 0}.ihabdevteam-core-scope .form-inline-error{color:var(--color-error);display:block;margin-top:4px}.ihabdevteam-core-scope .confirm-popup__message{margin:0 auto;max-width:100%;padding:8px 0;text-align:left;width:-moz-fit-content;width:fit-content}.ihabdevteam-core-scope .confirm-popup .popup-content{padding-top:40px}.ihabdevteam-core-scope .confirm-popup .popup-content__inner{padding-bottom:40px}.ihabdevteam-core-scope .confirm-popup .panel+.confirm-popup__message{margin-top:16px}.ihabdevteam-core-scope .confirm-popup__top{display:flex;justify-content:center;margin-bottom:20px}";J(ik);const sk=260;function Ta(e){const{t}=ge.useTranslation(),{title:a,subtitle:r,headerActions:n,children:i,buttons:s,footer:c,footerClassName:u="",onClose:d,closeDisabled:p=!1,beforeClose:m,className:h="",ariaLabel:g,useTitle:f=!0,inline:b=!1,size:y,resetScrollKey:v}=e||{},[C,w]=l.useState(!1),x=l.useRef(!1),S=l.useRef(null),_=l.useId(),k=l.useRef(null);l.useEffect(()=>{},[b,a,g,h]),l.useEffect(()=>{v!==void 0&&k.current&&(k.current.scrollTop=0)},[v]);const[N,A]=l.useState(!1);l.useEffect(()=>{const L=k.current;if(!L)return;const F=()=>A(L.scrollHeight>L.clientHeight+1);if(F(),typeof ResizeObserver>"u")return;const te=new ResizeObserver(F);te.observe(L);const Z=L.firstElementChild;return Z&&te.observe(Z),()=>te.disconnect()},[i,v]),l.useEffect(()=>{if(!b)return rk()},[b]),l.useEffect(()=>{if(b)return;const L=document.activeElement,F=S.current;return F&&!F.contains(document.activeElement)&&(F.querySelector(fn)??F).focus(),()=>{L?.focus?.()}},[b]),zl(S,!b);const D=l.useCallback(L=>{x.current||(x.current=!0,w(!0),setTimeout(()=>{try{L&&L()}catch{}},sk))},[]),H=l.useCallback(()=>{p||m&&m()===!1||D(d)},[D,d,p,m]),P=l.useRef(H);l.useEffect(()=>{P.current=H});const T=!b&&!!d;l.useEffect(()=>{if(T)return xl(()=>P.current())},[T]);const E=o.jsx("div",{className:`popup ${b?"popup--inline":""} ${C?"popup--closing":""} ${h}`,children:o.jsxs("div",{ref:S,className:`popup-panel${y?` popup-panel--${y}`:""}`,tabIndex:-1,role:b?void 0:"dialog","aria-modal":b?void 0:!0,"aria-labelledby":!b&&a?_:void 0,"aria-label":!b&&!a&&g?g:void 0,children:[!f&&(n||d)?o.jsxs("div",{className:"popup-close-float",children:[n,d&&o.jsx(se,{size:40,type:"dot",icon:"x",variant:"transparent-gray",useBorder:!1,onClick:H,disabled:p,ariaLabel:t("common.close","\uB2EB\uAE30")})]}):a||n||d?o.jsxs("div",{className:`popup-header${r?" popup-header--with-subtitle":""}`,children:[o.jsxs("div",{className:"popup-header-main",children:[o.jsx("span",{id:_,className:"popup-title popup-title--left h2",children:a}),r&&o.jsx("span",{className:"popup-subtitle body-3",children:r})]}),o.jsxs("div",{className:"popup-header-actions",children:[n,d&&o.jsx(se,{size:40,type:"dot",icon:"x",variant:"transparent-gray",useBorder:!1,onClick:H,disabled:p,ariaLabel:t("common.close","\uB2EB\uAE30")})]})]}):null,o.jsx("div",{className:"popup-content",ref:k,tabIndex:N?0:void 0,children:o.jsx("div",{className:"popup-content__inner",children:typeof i=="function"?i({animateThen:D,closeWithAnimation:H}):i})}),s?.length?o.jsx("div",{className:"popup-footer popup-footer--buttons",children:s.map((L,F)=>o.jsx(se,{size:48,variant:L.variant??"default",label:L.label,disabled:L.disabled,onClick:()=>L.onClick?.({animateThen:D,closeWithAnimation:H})},F))}):c?o.jsx("div",{className:`popup-footer${u?` ${u}`:""}`,children:typeof c=="function"?c({animateThen:D,closeWithAnimation:H}):c}):null]})});return b||typeof document>"u"?E:qt.createPortal(E,document.body)}function Cr(e){return String(e)}const Jl=["o","triangle","x"];function ec(e,t){return e===t?null:t}const tc={o:"circle",triangle:"triangle",x:"x"},ac={o:"main",triangle:"warn",x:"danger"};function Nm(e){let t=0,a=0,r=0;for(const i of Object.values(e))i==="o"?t++:i==="triangle"?a++:i==="x"&&r++;const n=t+a+r;return{marked:n,o:t,triangle:a,x:r,rate:n===0?null:(t+a*.5)/n}}function An(e){const t={};for(const[a,r]of Object.entries(e))(r==="o"||r==="triangle"||r==="x")&&(t[a]=r);return t}function oc(e){const t=[];let a=0;for(const r of e)t.push(a),a+=r;return t}function Dm(e,t){return!t&&e>0}var lk=`.ihabdevteam-core-scope .word-table__scaler{overflow:clip;overflow-clip-margin:32px;width:100%}.ihabdevteam-core-scope .word-table{--print-margin:57px;background:#fbfdff;border:1px solid var(--color-whiteLine);box-shadow:var(--shadow-dropdown);box-sizing:border-box;padding:57px;padding:var(--print-margin)}.ihabdevteam-core-scope .word-table-block__content{box-sizing:border-box;display:grid;height:100%;position:relative;width:100%}.ihabdevteam-core-scope .word-table__page-number{bottom:8px;color:var(--color-gray);pointer-events:none;position:absolute;z-index:2}.ihabdevteam-core-scope .word-table__page-number--left{left:12px}.ihabdevteam-core-scope .word-table__page-number--right{right:12px}.ihabdevteam-core-scope .word-table__page-number--center{left:50%;transform:translateX(-50%)}.ihabdevteam-core-scope .word-table-block__content--cut-show{background:var(--color-whiteLine);gap:1px;print-color-adjust:exact;-webkit-print-color-adjust:exact}.ihabdevteam-core-scope .word-table-block__content--outline{position:relative}.ihabdevteam-core-scope .word-table-block__content--outline:after{border:1px solid var(--color-whiteLine);content:"";inset:0;pointer-events:none;position:absolute;z-index:1}.ihabdevteam-core-scope .word-table-block__content--cut-corner .word-table-block__card{background:linear-gradient(var(--color-whiteLine),var(--color-whiteLine)) 0 0 /8px 1px no-repeat,linear-gradient(var(--color-whiteLine),var(--color-whiteLine)) 0 0 /1px 8px no-repeat,linear-gradient(var(--color-whiteLine),var(--color-whiteLine)) 100% 0 /8px 1px no-repeat,linear-gradient(var(--color-whiteLine),var(--color-whiteLine)) 100% 0 /1px 8px no-repeat,linear-gradient(var(--color-whiteLine),var(--color-whiteLine)) 0 100% /8px 1px no-repeat,linear-gradient(var(--color-whiteLine),var(--color-whiteLine)) 0 100% /1px 8px no-repeat,linear-gradient(var(--color-whiteLine),var(--color-whiteLine)) 100% 100% /8px 1px no-repeat,linear-gradient(var(--color-whiteLine),var(--color-whiteLine)) 100% 100% /1px 8px no-repeat,#fbfdff;print-color-adjust:exact;-webkit-print-color-adjust:exact}.ihabdevteam-core-scope .word-table-block__card{background:#fbfdff;display:flex;min-height:0;overflow:hidden;position:relative;transition:box-shadow .15s}.ihabdevteam-core-scope .word-table-block__card--filler{align-items:center;justify-content:center}.ihabdevteam-core-scope .word-table-block__card:not(.word-table-block__card--filler):hover{box-shadow:var(--shadow-dropdown);z-index:1}.ihabdevteam-core-scope .word-table-block__card--draggable{cursor:grab}.ihabdevteam-core-scope .word-table-block__card--draggable:active{cursor:grabbing}.ihabdevteam-core-scope .word-table-block__card--drag-over{outline:2px solid var(--color-main);outline-offset:-2px;z-index:2}.ihabdevteam-core-scope .word-table-block__card-close{opacity:0;position:absolute;right:20px;top:20px;transition:opacity .15s;z-index:1}.ihabdevteam-core-scope .word-table-block__card-close:focus-visible,.ihabdevteam-core-scope .word-table-block__card-close:focus-within,.ihabdevteam-core-scope .word-table-block__card:focus-within .word-table-block__card-close,.ihabdevteam-core-scope .word-table-block__card:hover .word-table-block__card-close{opacity:1}.ihabdevteam-core-scope .word-table-block__pair-divider{align-self:center;background:var(--color-whiteLine);display:none;flex-shrink:0;height:20%;print-color-adjust:exact;-webkit-print-color-adjust:exact;width:1px}.ihabdevteam-core-scope .word-table-block__content--div-line .word-table-block__pair-divider{display:block}.ihabdevteam-core-scope .word-table-block__edit-cell{align-items:stretch;background:#fbfdff;display:flex;flex-direction:row;min-height:0;overflow:hidden;position:relative;transition:box-shadow .15s}.ihabdevteam-core-scope .word-table-block__edit-cell--filled:hover{box-shadow:var(--shadow-dropdown);z-index:1}.ihabdevteam-core-scope .word-table-block__edit-cell--filled:focus-within .word-table-block__card-close,.ihabdevteam-core-scope .word-table-block__edit-cell--filled:hover .word-table-block__card-close{opacity:1}.ihabdevteam-core-scope .word-table-block__edit-cell--empty{align-items:center;justify-content:center}.ihabdevteam-core-scope .word-table-block__edit-cell--active{background:rgba(73,156,223,.04);background:rgba(var(--color-main-rgb,73,156,223),.04);outline:2px solid var(--color-main);outline-offset:-2px}.ihabdevteam-core-scope .word-table-block__content--cut-corner .word-table-block__edit-cell{background:linear-gradient(var(--color-whiteLine),var(--color-whiteLine)) 0 0 /8px 1px no-repeat,linear-gradient(var(--color-whiteLine),var(--color-whiteLine)) 0 0 /1px 8px no-repeat,linear-gradient(var(--color-whiteLine),var(--color-whiteLine)) 100% 0 /8px 1px no-repeat,linear-gradient(var(--color-whiteLine),var(--color-whiteLine)) 100% 0 /1px 8px no-repeat,linear-gradient(var(--color-whiteLine),var(--color-whiteLine)) 0 100% /8px 1px no-repeat,linear-gradient(var(--color-whiteLine),var(--color-whiteLine)) 0 100% /1px 8px no-repeat,linear-gradient(var(--color-whiteLine),var(--color-whiteLine)) 100% 100% /8px 1px no-repeat,linear-gradient(var(--color-whiteLine),var(--color-whiteLine)) 100% 100% /1px 8px no-repeat,#fbfdff;print-color-adjust:exact;-webkit-print-color-adjust:exact}.ihabdevteam-core-scope .word-table-cell{align-items:center;display:flex;flex:1;justify-content:center;min-height:0;min-width:0;overflow:hidden;position:relative}.ihabdevteam-core-scope .word-table-cell__inner{align-items:center;box-sizing:border-box;display:flex;flex-direction:column;height:380px;justify-content:center;transform-origin:center center;width:280px}.ihabdevteam-core-scope .word-table-cell__word{color:var(--color-black);text-align:center;white-space:nowrap}.ihabdevteam-core-scope .word-table-cell__sub{color:var(--color-gray);text-align:center;white-space:nowrap}.ihabdevteam-core-scope .word-table-cell__colloquial{color:var(--color-lightGray);text-align:center;white-space:nowrap}.ihabdevteam-core-scope .word-table-cell__play-button{left:20px;opacity:0;position:absolute;top:20px;transition:opacity .15s;z-index:1}.ihabdevteam-core-scope .word-table-block__card:hover .word-table-cell__play-button,.ihabdevteam-core-scope .word-table-block__edit-cell:focus-within .word-table-cell__play-button,.ihabdevteam-core-scope .word-table-block__edit-cell:hover .word-table-cell__play-button,.ihabdevteam-core-scope .word-table-cell__play-button:focus-visible,.ihabdevteam-core-scope .word-table-cell__play-button:focus-within{opacity:1}.ihabdevteam-core-scope .word-table-cell__info-button{left:20px;opacity:0;position:absolute;top:60px;transition:opacity .15s;z-index:1}.ihabdevteam-core-scope .word-table-block__card:hover .word-table-cell__info-button,.ihabdevteam-core-scope .word-table-block__edit-cell:focus-within .word-table-cell__info-button,.ihabdevteam-core-scope .word-table-block__edit-cell:hover .word-table-cell__info-button,.ihabdevteam-core-scope .word-table-cell__info-button:focus-visible,.ihabdevteam-core-scope .word-table-cell__info-button:focus-within{opacity:1}.ihabdevteam-core-scope .word-table-cell__image-wrap{background:var(--color-deepWhite);border-radius:var(--radius-card);flex-shrink:0;height:240px;overflow:hidden;position:relative;width:240px}.ihabdevteam-core-scope .word-table-cell__image{display:block;height:100%;-o-object-fit:cover;object-fit:cover;transition:opacity .2s;width:100%}.ihabdevteam-core-scope .word-table-cell__spinner{align-items:center;display:flex;inset:0;justify-content:center;position:absolute}.ihabdevteam-core-scope .word-table-cell__spinner:after{animation:wordTableCell_spin .7s linear infinite;border:3px solid #fbfdff;border-radius:50%;border-top:3px solid var(--color-white,#fbfdff);border:3px solid var(--color-white,#fbfdff);border-top-color:var(--color-main,var(--color-main));content:"";height:32px;width:32px}@keyframes wordTableCell_spin{to{transform:rotate(1turn)}}@media print{@page{margin:0}.ihabdevteam-core-scope body *{visibility:hidden}.ihabdevteam-core-scope .word-table,.ihabdevteam-core-scope .word-table *{visibility:visible}
|
|
843
|
+
\uB36E\uC5B4\uC368\uC9D0(\uC624\uB298 \uD45C\uC2DC\uAC00 \uBB34\uC758\uBBF8\uD574\uC9D0). \uC2E4\uC81C \uACBD\uD569 \uD655\uC778\uB428. */.ihabdevteam-core-scope .calendar-cell.today .calendar-cell__number{align-items:center;background:var(--color-main);border-radius:50%;color:#fff!important;display:flex;height:24px;justify-content:center;width:24px}.ihabdevteam-core-scope .calendar-cell__number{align-items:center;color:var(--color-darkGray);display:flex;font-weight:600;height:24px;justify-content:center;margin-bottom:6px;width:24px}.ihabdevteam-core-scope .calendar-cell:nth-child(7n+8) .calendar-cell__number{color:var(--color-error)}.ihabdevteam-core-scope .calendar-cell:nth-child(7n+14) .calendar-cell__number{color:var(--color-main)}.ihabdevteam-core-scope .calendar-cell__badges{display:flex;flex-direction:column;gap:4px}.ihabdevteam-core-scope .calendar-visit-badge{align-items:center;background:var(--color-main-a10);border-radius:var(--radius-xs);box-sizing:border-box;color:var(--color-main);display:flex;gap:6px;min-height:28px;overflow:hidden;padding:0 8px}.ihabdevteam-core-scope .calendar-visit-badge__time{flex-shrink:0;font-weight:400;opacity:.7}.ihabdevteam-core-scope .calendar-visit-badge__name{flex:1;overflow:hidden;text-align:right;text-overflow:ellipsis;white-space:nowrap}.ihabdevteam-core-scope .calendar-visit-badge--scheduled{background:var(--color-sub-a10);color:var(--color-sub)}.ihabdevteam-core-scope .calendar-visit-badge--no-visit{background:color-mix(in srgb,var(--color-disabled) 15%,#fff);color:var(--color-disabled)}.ihabdevteam-core-scope .calendar-visit-badge__no-visit{background:var(--color-disabled);border-radius:var(--radius-xs);color:#fff;flex-shrink:0;line-height:1.4;padding:1px 5px}.ihabdevteam-core-scope .calendar-visit-badge--clickable{cursor:pointer;transition:background .12s,color .12s,border-color .12s}.ihabdevteam-core-scope .calendar-visit-badge--clickable:hover{background:var(--color-main);border-color:transparent;color:#fff}.ihabdevteam-core-scope .calendar-visit-badge--scheduled.calendar-visit-badge--clickable:hover{background:var(--color-sub);color:#fff}.ihabdevteam-core-scope .calendar-visit-badge--no-visit.calendar-visit-badge--clickable:hover{background:var(--color-disabled);color:#fff}.ihabdevteam-core-scope .calendar-visit-badge--draggable{cursor:grab}.ihabdevteam-core-scope .calendar-visit-badge--draggable:active{cursor:grabbing;opacity:.5}.ihabdevteam-core-scope .calendar-nav__button{align-items:center;display:inline-flex;justify-content:center}.ihabdevteam-core-scope .calendar-nav__button-icon{display:block}.ihabdevteam-core-scope .calendar-cell--clickable{cursor:pointer}.ihabdevteam-core-scope .calendar-cell--clickable:hover{background:var(--color-darkWhite)}.ihabdevteam-core-scope .calendar-cell--clickable:focus-visible{outline:2px solid var(--color-main);outline-offset:-2px}.ihabdevteam-core-scope .calendar-cell.drag-over{background:var(--color-main-a10);outline:1px solid var(--color-main);outline-offset:-1px}@media (max-width:767px){.ihabdevteam-core-scope .calendar-nav{flex-wrap:wrap}.ihabdevteam-core-scope .calendar-nav__legend{justify-content:center;position:static;width:100%}.ihabdevteam-core-scope .calendar-cell,.ihabdevteam-core-scope .calendar-day-header{min-width:0}.ihabdevteam-core-scope .calendar-cell{min-height:72px;padding:4px}}`;J(H8);function _m(e,t){return e?{role:t?.role??"button",tabIndex:0,...t?.selected===void 0?{}:{"aria-selected":t.selected},onKeyDown:a=>{a.key!=="Enter"&&a.key!==" "||(a.preventDefault(),e(a))}}:{}}function V8(e,t){return new Date(e,t+1,0).getDate()}function G8(e,t){return new Date(e,t,1).getDay()}function wm({visits:e=[],onVisitClick:t,onVisitMove:a,onDayClick:r}){const{t:n}=ge.useTranslation(),i=l.useMemo(()=>n("calendar.dow",{returnObjects:!0}),[n]),[s,c]=l.useState(new Date().getFullYear()),[u,d]=l.useState(new Date().getMonth()),[p,m]=l.useState(null),h=l.useRef(null),g=new Date,f=l.useMemo(()=>{const x={};return e.forEach(S=>{x[S.date]||(x[S.date]=[]),x[S.date].push(S)}),x},[e]),b=l.useMemo(()=>{const x=V8(s,u),S=G8(s,u),_=[];for(let k=0;k<S;k++)_.push(null);for(let k=1;k<=x;k++)_.push(k);for(;_.length<35;)_.push(null);return _},[s,u]),y=l.useCallback(()=>{u===0?(c(x=>x-1),d(11)):d(x=>x-1)},[u]),v=l.useCallback(()=>{u===11?(c(x=>x+1),d(0)):d(x=>x+1)},[u]),C=x=>`${s}-${String(u+1).padStart(2,"0")}-${String(x).padStart(2,"0")}`,w=x=>g.getFullYear()===s&&g.getMonth()===u&&g.getDate()===x;return o.jsxs("div",{children:[o.jsxs("div",{className:"calendar-nav",children:[o.jsx("button",{className:"calendar-nav__button",onClick:y,"aria-label":n("calendar.prevMonth","\uC774\uC804 \uB2EC"),children:o.jsx(Ie,{icon:"chevron-left",label:"",className:"",svgClassName:"calendar-nav__button-icon",size:18})}),o.jsx("span",{className:"calendar-nav__title h5",children:n("calendar.yearMonth",{year:s,month:u+1})}),o.jsx("button",{className:"calendar-nav__button",onClick:v,"aria-label":n("calendar.nextMonth","\uB2E4\uC74C \uB2EC"),children:o.jsx(Ie,{icon:"chevron-right",label:"",className:"",svgClassName:"calendar-nav__button-icon",size:18})}),o.jsxs("div",{className:"calendar-nav__legend",children:[o.jsx("span",{className:"calendar-nav__legend-dot calendar-nav__legend-dot--main"}),o.jsx("span",{className:"caption-1",children:n("calendar.legend.visited","\uBC29\uBB38")}),o.jsx("span",{className:"calendar-nav__legend-dot calendar-nav__legend-dot--sub"}),o.jsx("span",{className:"caption-1",children:n("calendar.legend.scheduled","\uC608\uC57D")}),o.jsx("span",{className:"calendar-nav__legend-dot calendar-nav__legend-dot--disabled"}),o.jsx("span",{className:"caption-1",children:n("calendar.legend.noVisit","\uBBF8\uBC29\uBB38")})]})]}),o.jsxs("div",{className:"calendar-grid",children:[i.map(x=>o.jsx("div",{className:"calendar-day-header body-3",children:x},x)),b.map((x,S)=>{if(x===null)return o.jsx("div",{className:"calendar-cell empty"},`empty-${S}`);const _=x,k=C(_),N=f[k]??[],A=p===k;return o.jsxs("div",{className:`calendar-cell${w(_)?" today":""}${A?" drag-over":""}${r?" calendar-cell--clickable":""}`,role:r?"button":void 0,tabIndex:r?0:void 0,"aria-label":r?n("calendar.addOnDate",{date:k}):void 0,onClick:r?()=>r(k):void 0,onKeyDown:r?D=>{D.key!=="Enter"&&D.key!==" "||(D.preventDefault(),r(k))}:void 0,onDragOver:a?D=>{D.preventDefault(),m(k)}:void 0,onDragLeave:a?D=>{D.currentTarget.contains(D.relatedTarget)||m(null)}:void 0,onDrop:a?D=>{D.preventDefault(),h.current!=null&&(a(h.current,k),h.current=null),m(null)}:void 0,children:[o.jsx("div",{className:"calendar-cell__number body-3",children:_}),o.jsx("div",{className:"calendar-cell__badges",children:N.map((D,H)=>o.jsxs("div",{draggable:!!a,className:`calendar-visit-badge${D.status==="noVisit"?" calendar-visit-badge--no-visit":D.status==="scheduled"?" calendar-visit-badge--scheduled":""}${t?" calendar-visit-badge--clickable":""}${a?" calendar-visit-badge--draggable":""}`,onDragStart:a?P=>{h.current=D.id,P.dataTransfer.effectAllowed="move"}:void 0,onDragEnd:a?()=>{h.current=null,m(null)}:void 0,onClick:t?P=>{P.stopPropagation(),t(D)}:void 0,..._m(t?()=>t(D):void 0),"aria-label":[D.time?Xr(D.time,n):null,D.customer,n(D.status==="noVisit"?"calendar.legend.noVisit":D.status==="scheduled"?"calendar.legend.scheduled":"calendar.legend.visited")].filter(Boolean).join(" "),children:[D.time&&o.jsx("span",{className:"calendar-visit-badge__time body-3",children:Xr(D.time,n)}),o.jsx("span",{className:"calendar-visit-badge__name body-3",children:D.customer}),D.status==="noVisit"&&o.jsx("span",{className:"calendar-visit-badge__no-visit caption-1",children:n("calendar.legend.noVisit","\uBBF8\uBC29\uBB38")})]},D.id??H))})]},_)})]})]})}var q8=".ihabdevteam-core-scope .section{display:flex;flex-direction:column;text-align:left;width:100%}.ihabdevteam-core-scope .section--page{gap:var(--spacing-m);padding-bottom:var(--spacing-page)}.ihabdevteam-core-scope .section--pagePopup{gap:var(--spacing-s);padding-bottom:var(--spacing-page)}.ihabdevteam-core-scope .section--popup{gap:var(--spacing-xs);padding-bottom:var(--spacing-page)}.ihabdevteam-core-scope .section:last-child{padding-bottom:0}.ihabdevteam-core-scope .section__header{align-items:center;display:flex;justify-content:space-between;width:100%}.ihabdevteam-core-scope .section__title-row{align-items:flex-start;display:flex;flex:1;gap:var(--spacing-s)}.ihabdevteam-core-scope .section__icon{align-items:center;background:var(--t-item-bg,var(--color-deepWhite));color:var(--t-item-fg,var(--color-main));display:flex;flex-shrink:0;height:20px;justify-content:center;margin-top:5px;width:20px}.ihabdevteam-core-scope .section__title-group{display:flex;flex-direction:column;gap:4px}.ihabdevteam-core-scope .section__title{color:var(--color-black);margin:0}.ihabdevteam-core-scope .section__disc{color:var(--color-gray);margin:0}.ihabdevteam-core-scope .section__action{flex-shrink:0}@media (max-width:767px){.ihabdevteam-core-scope .section__header{align-items:flex-start;flex-direction:column;gap:var(--spacing-xs)}}";J(q8);const Y8={page:"h3",pagePopup:"h4",popup:"h5"};function no({type:e="page",title:t,icon:a,action:r,disc:n,children:i,className:s,style:c}){const u=Y8[e],d=t||n;return o.jsxs("div",{className:xe("section",`section--${e}`,s),style:c,children:[d&&o.jsxs("div",{className:"section__header",children:[o.jsxs("div",{className:"section__title-row",children:[a&&o.jsx(Ie,{icon:a,label:typeof t=="string"?t:void 0,className:"section__icon"}),o.jsxs("div",{className:"section__title-group",children:[t&&o.jsx("div",{className:`section__title ${u}`,children:t}),n&&o.jsx("div",{className:"section__disc body-3",children:n})]})]}),r&&o.jsx("div",{className:"section__action",children:r})]}),i]})}var U8=".ihabdevteam-core-scope .training-blocks{align-items:flex-start;display:flex;flex-direction:column}.ihabdevteam-core-scope .training-block{border-radius:var(--radius-card);width:100%}.ihabdevteam-core-scope .training-list{align-items:flex-start;display:flex;flex-wrap:wrap;gap:10px}.ihabdevteam-core-scope .training-block__more{display:flex;justify-content:center;margin-top:var(--spacing-l)}.ihabdevteam-core-scope .training-blocks--top-spaced{margin-top:18px}";J(U8);var K8=".ihabdevteam-core-scope .category-icon{align-items:center;background:var(--t-item-bg,color-mix(in srgb,var(--t-item-fg,var(--color-lightGray)) 10%,transparent));border-radius:var(--radius-s);color:var(--t-item-fg,var(--color-lightGray));display:flex;flex-shrink:0;font-size:18px;height:40px;justify-content:center;width:40px}.ihabdevteam-core-scope .category-icon--small{border-radius:var(--radius-sm);height:28px;width:28px}.ihabdevteam-core-scope .category-icon__mask{background-color:currentColor;background-color:var(--t-item-fg,currentColor);border-radius:var(--radius-sm);display:inline-block;-webkit-mask-image:var(--icon-url);mask-image:var(--icon-url);-webkit-mask-position:center;mask-position:center;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:contain;mask-size:contain}.ihabdevteam-core-scope .category-icon__image{border-radius:var(--radius-sm);display:block;-o-object-fit:contain;object-fit:contain}.ihabdevteam-core-scope .category-icon__svg svg{fill:currentColor;display:block}.ihabdevteam-core-scope .category-icon__wrap{cursor:default;display:inline-flex;position:relative}.ihabdevteam-core-scope .category-icon__tooltip{pointer-events:none;white-space:nowrap}";J(K8);function km({icon:e,label:t,tooltip:a,wrapperStyle:r,color:n,bgColor:i,useHover:s=!0,iconSize:c="medium"}){const u=c==="small",d=xe("category-icon",u?"category-icon--small":""),p=u?16:20,m=l.useRef(null),[h,g]=l.useState(!1),f=l.useMemo(()=>{const _=r&&typeof r=="object"?{...r}:{};return!n&&!i?_:{..._,...n?{color:n,"--t-item-fg":n}:{},...i?{"--t-item-bg":i}:{}}},[r,n,i]),b=a||t,[y,v]=l.useState(null);l.useLayoutEffect(()=>{h&&v(m.current?.getBoundingClientRect()??null)},[h]),l.useEffect(()=>{if(!s&&h)try{g(!1)}catch{}},[s,h]),l.useEffect(()=>{if(!h)return;const _=k=>{const N=m.current;if(!N)return;const A=k.target;A&&!N.contains(A)&&g(!1)};return document.addEventListener("pointerdown",_,!0),()=>document.removeEventListener("pointerdown",_,!0)},[h]);const C=l.useCallback(()=>{s&&g(!0)},[s]),w=l.useCallback(()=>{s&&g(!1)},[s]),x=l.useCallback(()=>g(!1),[]),S=l.useCallback(_=>{if(_.key==="Escape"){g(!1);return}(_.key==="Enter"||_.key===" ")&&(_.preventDefault(),g(k=>!k))},[]);return o.jsxs("span",{ref:m,className:"category-icon__wrap",onPointerEnter:C,onPointerLeave:w,onFocus:C,onBlur:w,onKeyDown:S,role:"button",tabIndex:0,"aria-label":typeof b=="string"?b:void 0,"aria-haspopup":!!b,"aria-expanded":h,"data-tooltip-ignore":!0,children:[o.jsx(Ie,{icon:e,label:t,className:d,imgClassName:"category-icon__image",maskClassName:"category-icon__mask",svgClassName:"category-icon__svg",wrapperStyle:f,size:p}),h&&b&&o.jsx(aa,{anchorRect:y,text:typeof b=="string"?b:void 0,offset:8,onClose:x,className:"category-icon__tooltip",ariaLabel:typeof b=="string"?b:void 0})]})}var Z8=".ihabdevteam-core-scope .training-block-button{background:var(--color-white);border:1px solid rgba(0,0,0,.06);border-radius:var(--radius-m);box-shadow:var(--shadow-card);box-sizing:border-box;cursor:pointer;display:inline-block;height:200px;padding:var(--spacing-l);position:relative;text-align:left;transition:all .12s;vertical-align:top;width:200px}.ihabdevteam-core-scope .training-block-button:hover{border-color:var(--color-main);box-shadow:var(--shadow-card)}.ihabdevteam-core-scope .training-block-button--completed{box-shadow:var(--shadow-card)}.ihabdevteam-core-scope .training-block-button__more{position:absolute;right:var(--spacing-l);top:calc(var(--spacing-l) - 2px);z-index:2}@media (min-width:768px) and (max-width:1023px){.ihabdevteam-core-scope .training-block-button{height:190px;width:190px}}@media (max-width:767px){.ihabdevteam-core-scope .training-block-button{height:170px;width:calc(50% - 5px)}.ihabdevteam-core-scope .training-block-button__title.h3{-webkit-line-clamp:3;-webkit-box-orient:vertical;display:-webkit-box;line-height:20px;overflow:hidden}}.ihabdevteam-core-scope .training-block-button__left{display:block}.ihabdevteam-core-scope .training-block-button__title.h3{color:var(--color-black);left:20px;margin:0;position:absolute;right:20px;top:68px}.ihabdevteam-core-scope .training-block-button__description{align-items:center;bottom:20px;display:flex;gap:var(--spacing-xs);height:20px;justify-content:space-between;left:20px;position:absolute;right:20px}.ihabdevteam-core-scope .training-block-button__count{color:var(--color-darkGray)}.ihabdevteam-core-scope .training-block-button__chevron{align-items:center;color:var(--color-lightGray);display:inline-flex;height:20px;justify-content:center;margin-left:auto}.ihabdevteam-core-scope .training-block-button__chevron-icon,.ihabdevteam-core-scope .training-block-button__chevron-icon-image,.ihabdevteam-core-scope .training-block-button__chevron-icon-mask,.ihabdevteam-core-scope .training-block-button__chevron-icon-svg{align-items:center;color:var(--color-lightGray);display:inline-flex;height:20px;justify-content:center;width:20px}.ihabdevteam-core-scope .training-block-button__chevron-icon-mask{background-color:currentColor;-webkit-mask-image:var(--icon-url);mask-image:var(--icon-url);-webkit-mask-position:center;mask-position:center;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:contain;mask-size:contain}.ihabdevteam-core-scope .training-block-button__chevron-icon-image{display:block;-o-object-fit:contain;object-fit:contain}.ihabdevteam-core-scope .training-block-button__chevron-icon-svg svg{fill:currentColor;display:block;height:20px;width:20px}.ihabdevteam-core-scope .training-block-button .category-icon__wrap{left:18px;position:absolute;top:18px}.ihabdevteam-core-scope .training-block-button .category-icon{position:static}.ihabdevteam-core-scope .training-block-button__type-label{color:var(--color-gray);left:20px;overflow:hidden;position:absolute;right:20px;text-overflow:ellipsis;top:68px;white-space:nowrap}.ihabdevteam-core-scope .training-block-button--withType .training-block-button__title.h3{top:86px}.ihabdevteam-core-scope .training-block-button--small{height:120px;width:120px}.ihabdevteam-core-scope .training-block-button--small .category-icon__wrap{left:12px;top:12px}.ihabdevteam-core-scope .training-block-button--small .training-block-button__type-label{color:var(--color-gray);left:12px;overflow:hidden;position:absolute;right:12px;text-overflow:ellipsis;top:44px;white-space:nowrap}.ihabdevteam-core-scope .training-block-button--small .training-block-button__title{color:var(--color-black);left:12px;margin:0;overflow:hidden;position:absolute;right:12px;text-overflow:ellipsis;top:60px;white-space:nowrap}.ihabdevteam-core-scope .training-block-button--small.training-block-button--no-type-label .training-block-button__title{-webkit-line-clamp:2;-webkit-box-orient:vertical;display:-webkit-box;top:44px;white-space:normal}.ihabdevteam-core-scope .training-block-button--small .training-block-button__description{bottom:10px;height:16px;left:12px;right:12px}.ihabdevteam-core-scope .training-block-button--small .training-block-button__more{right:6px;top:6px}.ihabdevteam-core-scope .training-block-button--small .training-block-button__chevron-icon,.ihabdevteam-core-scope .training-block-button--small .training-block-button__chevron-icon-svg,.ihabdevteam-core-scope .training-block-button--small .training-block-button__chevron-icon-svg svg{height:12px;width:12px}.ihabdevteam-core-scope .training-block-button--list{box-shadow:none;min-height:68px;padding:0 12px;width:200px}.ihabdevteam-core-scope .training-block-button--list .training-block-button__left{align-items:center;display:flex;gap:var(--spacing-s);height:100%;width:100%}.ihabdevteam-core-scope .training-block-button--list .category-icon__wrap{flex-shrink:0;order:1;position:static}.ihabdevteam-core-scope .training-block-button--list .training-block-button__title{color:var(--color-black);flex:1;min-width:0;order:2;overflow:hidden;position:static;text-overflow:ellipsis;white-space:nowrap}.ihabdevteam-core-scope .training-block-button--list .training-block-button__description{display:none}.ihabdevteam-core-scope .training-block-button--list .training-block-button__preview{align-items:center;display:inline-flex;flex-shrink:0;justify-content:center;order:4}.ihabdevteam-core-scope .training-block-button--small .training-block-button__preview{align-items:center;display:inline-flex;justify-content:center;position:absolute;right:12px;top:12px;z-index:1}.ihabdevteam-core-scope .training-block-button--compact{background:transparent;border-color:transparent;box-shadow:none;height:40px;padding:0;width:100%}.ihabdevteam-core-scope .training-block-button--compact:hover{background:var(--color-darkWhite);border-color:transparent;box-shadow:none}.ihabdevteam-core-scope .training-block-button--compact .training-block-button__left{align-items:center;display:flex;gap:var(--spacing-xs);height:100%;width:100%}.ihabdevteam-core-scope .training-block-button--compact .category-icon__wrap{flex-shrink:0;order:1;position:static}.ihabdevteam-core-scope .training-block-button--compact .training-block-button__title{color:var(--color-black);flex:1;min-width:0;order:2;overflow:hidden;position:static;text-overflow:ellipsis;white-space:nowrap}.ihabdevteam-core-scope .training-block-button--compact .training-block-button__description{display:none}";J(Z8);function X8(e,t){if(!e)return{previewCodes:[],previewBucket:null};const a=e,r=s=>s.map(c=>c?.contextCode||c?.context_code).filter(Boolean).map(String);if(t==="LISTEN_IN_NOISE"){const s=a.sentences||a.items||[],c=Array.isArray(s)&&s.length>0?r(s):[];return c.length===0&&(a.contextCode||a.context_code)&&c.push(String(a.contextCode||a.context_code)),{previewCodes:c,previewBucket:"LIN_D"}}if(t==="SHORT_STORY"){const s=a.items||a.sentences||[],c=Array.isArray(s)&&s.length>0?r(s):[];return c.length===0&&(a.contextCode||a.context_code)&&c.push(String(a.contextCode||a.context_code)),{previewCodes:c,previewBucket:"SHORT_S"}}if(t==="LONG_STORY"){const s=a.items||a.sentences||[],c=Array.isArray(s)&&s.length>0?r(s):[];return c.length===0&&(a.contextCode||a.context_code)&&c.push(String(a.contextCode||a.context_code)),{previewCodes:c,previewBucket:"LONG"}}if(t==="ORDERING_SENTENCE"){const s=a.sentences||a.items||[],c=Array.isArray(s)&&s.length>0?r(s):[];return c.length===0&&(a.contextCode||a.context_code)&&c.push(String(a.contextCode||a.context_code)),{previewCodes:c,previewBucket:"LIN_D"}}const n=a.sentences||a.items||[],i=r(Array.isArray(n)?n:[]);return i.length===0&&(a.contextCode||a.context_code)&&i.push(String(a.contextCode||a.context_code)),{previewCodes:i,previewBucket:null}}function Q8(e,t){const[a,r]=l.useState(!1),[n,i]=l.useState(-1),[s,c]=l.useState([]),u=l.useRef(null),d=l.useRef(!1),p=l.useRef(null),[m,h]=l.useState(!1),g=l.useRef([]),{previewCodes:f,previewBucket:b}=X8(e,t);l.useEffect(()=>{if(!f.length)return;let v=!1;return(async()=>{const C=[],w=[];for(const x of f)try{const S=Dr(x,b);if(!S){C.push("");continue}let _=null;try{_=await Oo(S)}catch{}if(!_)try{const k=await Er(S);k&&(_=URL.createObjectURL(k),w.push(_))}catch{}C.push(_??"")}catch{C.push("")}v?w.forEach(x=>{try{URL.revokeObjectURL(x)}catch{}}):(g.current.forEach(x=>{try{URL.revokeObjectURL(x)}catch{}}),g.current=w,c(C))})(),()=>{v=!0}},[f.join(","),b]),l.useEffect(()=>()=>{g.current.forEach(v=>{try{URL.revokeObjectURL(v)}catch{}}),g.current=[]},[]);const y=l.useCallback(async v=>{if(v.stopPropagation(),v.preventDefault(),d.current){d.current=!1;try{u.current?.pause()}catch{}r(!1),i(-1);return}if(s.filter(Boolean).length){d.current=!0,r(!0);for(let C=0;C<s.length&&d.current;C++){const w=s[C];if(w){i(C);try{await new Promise((x,S)=>{const _=new Audio(w);u.current=_,_.onended=()=>x(),_.onerror=()=>S(),_.play().catch(S)})}catch{break}}}d.current=!1,r(!1),i(-1)}},[s]);return l.useEffect(()=>()=>{d.current=!1;try{u.current?.pause()}catch{}u.current=null},[]),{playing:a,playingIndex:n,previewUrls:s,previewHover:m,setPreviewHover:h,previewBtnRef:p,handlePreview:y}}const J8=e=>{if(!e)return[];const t=typeof e.context=="string"&&e.context.trim()||typeof e.sentence=="string"&&e.sentence.trim()||typeof e.text=="string"&&e.text.trim()||"";if(t)return[String(t)];const a=e.sentences||e.items||e.questions||[];return Array.isArray(a)&&a.length>0?a.map(r=>{if(typeof r=="string")return r;if(r&&typeof r=="object"){const n=r;return n.sentence||n.text||n.context||n.question||n.title||""}return""}).filter(r=>typeof r=="string"&&r.trim().length>0).map(r=>r.trim()):[]};function wn(e){const{index:t,type:a,trainingData:r,ariaLabel:n,depth:i,renderPopup:s,completed:c,completedIds:u,selectedIds:d,tooltipText:p,useDescriptionTooltip:m=!1,onRemove:h,hideCheckBadge:g=!1,showTypeLabel:f=!1,onComplete:b,onSelect:y,onMore:v,countLabelOverride:C,size:w="square"}=e||{},{t:x}=ge.useTranslation(),[S,_]=l.useState(!1),k=l.useRef(null),[N,A]=l.useState(!1);l.useEffect(()=>{k.current?.matches(":hover")&&A(!0)},[]);const{playing:D,playingIndex:H,previewUrls:P,previewHover:T,setPreviewHover:E,previewBtnRef:L,handlePreview:F}=Q8(r,a?.key),te=l.useCallback(()=>{y?y():_(!0)},[y]),Z=l.useCallback(()=>_(!1),[]),V=l.useCallback(()=>A(!0),[]),j=l.useCallback(()=>A(!1),[]),M=l.useCallback(()=>E(!0),[E]),$=l.useCallback(()=>E(!1),[E]),[W,q]=l.useState(null);l.useLayoutEffect(()=>{T&&q(L.current?.getBoundingClientRect()??null)},[T,L]);const[X,O]=l.useState(null);l.useLayoutEffect(()=>{N&&!S&&m&&O(k.current?.getBoundingClientRect()??null)},[N,S,m]);const Y=l.useCallback(be=>{(be.key==="Enter"||be.key===" ")&&(be.preventDefault(),te())},[te]),z=r||null,re=l.useMemo(()=>{if(!m)return null;const be=p?(Array.isArray(p)?p:[p]).filter(Boolean):null,Ke=be&&be.length>0?be:J8(z);return Ke&&Ke.length>0?Ke:null},[m,p,z]),Q=l.useCallback(be=>{be.stopPropagation(),h?.()},[h]),ne=l.useCallback(be=>be.stopPropagation(),[]),me=l.useCallback(be=>{typeof b=="function"&&b(be)},[b]),ce=c||(u&&r?.id!=null?u.has(String(r.id)):!1),I=!ce&&(d!=null&&r?.id!=null?d.has(String(r.id)):!1);ur("speechear.popup.close",Z);const ee=Qr(),pe=`${a?.label||""} ${t+1}`,ke=z?.title||z?.name||pe;let Ce=a?.icon,R,oe="",ae="";try{const be=z?.category_0||z?.category_main_code||z?.category_main,Ke=z?.category_1||z?.category_sub_code||z?.category_sub,We=ee.find(Le=>Le.key===be);We?.icon&&(Ce=We.icon),!R&&We?.color&&(R={"--t-item-fg":We.color}),!R&&z?.iconColor&&(R={"--t-item-fg":z.iconColor}),oe=We?.label||"";try{ae=We?.subs?.find(Le=>Le.key===Ke)?.label||""}catch{}}catch{}const ve=ae?`${oe} / ${ae}`:oe||a?.label||ke,De=be=>x("training.countQuestions",{n:be}),ze=be=>x("training.countSentences",{n:be});let Re="";try{if(z)if(a?.key==="LISTEN_IN_NOISE"){let be=0;Array.isArray(z.items)&&z.items.length>0?be=z.items.length:Array.isArray(z.sentences)&&z.sentences.length>0?be=z.sentences.length:z.sentences&&(be=1),Re=ze(be)}else if(a?.key==="SHORT_STORY"){let be=1;Array.isArray(r?.items)?be=r.items.length:Array.isArray(r?.raw&&r.raw?.items)?be=r.raw.items.length:Array.isArray(z?.questions)?be=z.questions.length:Array.isArray(z?.sentences)&&(be=z.sentences.length),Re=De(be)}else if(a?.key==="LONG_STORY"){let be=1;if(Array.isArray(z.items)&&z.items.length>0){const Ke=z.items.reduce((We,Le)=>{const Ge=Le.questionItems;return Array.isArray(Ge)?We+Ge.length:Array.isArray(Le.questions)?We+Le.questions.length:We},0);be=Ke>0?Ke:z.items.length}else Array.isArray(z.questions)&&z.questions.length>0?be=z.questions.length:Array.isArray(z.sentences)&&z.sentences.length>0&&(be=z.sentences.length);Re=De(be)}else if(a?.key==="ORDERING_SENTENCE"){let be=1;Array.isArray(z.items)&&z.items.length>0?be=z.items.length:Array.isArray(z.sentences)&&z.sentences.length>0&&(be=z.sentences.length),Re=ze(be)}else Array.isArray(z.items)&&(Re=z.items.length>0?De(z.items.length):"")}catch{}const Me=w==="list",Ye=w==="compact",Ne=w==="small",Ve=Ne&&a?.key?ls().find(be=>be.key===a.key)?.label??"":"",Fe=!!f&&!!a?.label&&a.label!==String(ke)||Ne&&!!Ve&&Ve!==String(ke);return o.jsxs(o.Fragment,{children:[o.jsxs("div",{ref:k,className:`training-block-button${Me?" training-block-button--list":""}${Ye?" training-block-button--compact":""}${Ne?" training-block-button--small":""}${ce?" training-block-button--completed":""}${I?" training-block-button--selected":""}${Fe&&!Ne?" training-block-button--withType":""}${Ne&&!Fe?" training-block-button--no-type-label":""}`,onClick:te,onPointerEnter:V,onPointerLeave:j,role:"button",tabIndex:0,onKeyDown:Y,"aria-label":typeof n=="string"?n:typeof ke=="string"?ke:void 0,children:[o.jsxs("div",{className:"training-block-button__left",children:[f&&a?.label&&a.label!==String(ke)&&o.jsx("span",{className:"training-block-button__type-label caption-1",children:a.label}),Ne&&Ve&&Ve!==String(ke)&&o.jsx("span",{className:"training-block-button__type-label caption-2",children:Ve}),o.jsx(km,{icon:Ce,label:ke,tooltip:ve,wrapperStyle:R,iconSize:Ne||Ye?"small":"medium"}),!g&&(ce||I)&&!(h&&N)&&o.jsx(ht,{type:"dot",icon:"check",position:"top-left",size:"medium","aria-label":ce?x("training.completed","\uD6C8\uB828 \uC644\uB8CC"):x("training.selected","\uC120\uD0DD\uB428")}),h&&N&&o.jsx(ht,{type:"dot",icon:"remove",position:"top-left",size:"medium","aria-label":x("common.remove","\uC81C\uAC70"),onClick:Q}),o.jsx("div",{className:`training-block-button__title ${Ye?"body-3":Ne?"body-3b":"h3"}`,children:String(ke)}),o.jsxs("div",{className:"training-block-button__description",children:[(()=>{const be=C!==void 0?C:Re;return be?o.jsx("div",{className:`training-block-button__count ${Ne?"caption-2":"caption-1"}`,children:be}):null})(),o.jsx("div",{className:"training-block-button__chevron",children:o.jsx(Ie,{icon:"chevron-right",label:x("training.next","\uB2E4\uC74C"),className:"training-block-button__chevron-icon",imgClassName:"training-block-button__chevron-icon-image",maskClassName:"training-block-button__chevron-icon-mask",svgClassName:"training-block-button__chevron-icon-svg",size:Ne?12:20})})]}),(Me||Ne)&&P.length>0&&o.jsx("div",{ref:L,className:"training-block-button__preview","data-tooltip-ignore":!0,onClick:ne,onPointerEnter:M,onPointerLeave:$,children:o.jsx(se,{size:Ne?28:32,type:"dot",icon:D?"pause":"play",variant:Ne?"transparent-lightGray":"default",useBorder:!1,selected:D,ariaLabel:D?x("training.stop","\uC815\uC9C0"):x("training.preview","\uBBF8\uB9AC \uB4E3\uAE30"),onClick:F})})]}),v&&o.jsx("div",{className:"training-block-button__more","data-tooltip-ignore":!0,onClick:be=>{be.stopPropagation(),v(be)},children:o.jsx(se,{size:40,type:"dot",icon:"more-horizontal",variant:"transparent-lightGray",useBorder:!1,ariaLabel:x("common.more","\uB354\uBCF4\uAE30")})})]}),T&&o.jsx(aa,{anchorRect:W,text:D?x("training.stop","\uC815\uC9C0"):x("training.preview","\uBBF8\uB9AC \uB4E3\uAE30"),offset:8,onClose:$}),N&&!S&&m&&(re?o.jsx(to,{anchorRect:X,items:re,activeIndex:H,onClose:j}):z?.subTitle?o.jsx(aa,{anchorRect:X,text:z.subTitle,offset:8,onClose:j}):null),S&&s&&s({trainingData:z,typeKey:a?.key??"",onClose:Z,onComplete:me,popupTitle:String(ke),popupSubTitle:a?.subTitle,depth:i!=null?String(i):void 0,popupIcon:Ce,popupIconTooltip:String(ve),popupWrapperStyle:R})]})}const kn=20;function Sm(e){const{t}=ge.useTranslation(),{type:a,trainingDatas:r,depth:n,renderPopup:i,completedIds:s,selectedIds:c,onItemComplete:u,size:d,useDescriptionTooltip:p,onRemove:m,onMore:h,sectionType:g="page"}=e||{},[,f]=l.useState(0),b=typeof r<"u"?Array.isArray(r)?r:[]:[],y=b.length,[v,C]=l.useState(Math.min(y,kn)),w=l.useMemo(()=>Array.isArray(n)?[...n,a?.label].filter(Boolean).join(" \xB7 "):[n||"",a?.label].filter(Boolean).join(" \xB7 "),[n,a?.label]);l.useEffect(()=>{C(Math.min(y,kn))},[y]),ur("speechear.data.updated",()=>f(S=>S+1));function x(){C(S=>Math.min(y,S+kn))}return o.jsxs(no,{type:g,title:a?.label,icon:a?.icon,disc:a?.desc,className:"training-block",children:[o.jsx("div",{className:"training-list",children:(b||[]).slice(0,v).map((S,_)=>{const k=S;return o.jsx(wn,{index:_,type:a,trainingData:k,depth:w,renderPopup:i,completedIds:s,selectedIds:c,size:d,useDescriptionTooltip:p,onRemove:typeof m=="function"&&c!=null&&k?.id!=null&&c.has(String(k.id))?()=>m(k):void 0,onComplete:typeof u=="function"&&k?.id!=null?()=>u(String(k.id)):void 0,onMore:typeof h=="function"?N=>h(k,N):void 0},k?.id!=null?`${a?.key||"t"}-${String(k.id)}`:`${a?.key||"t"}-${_}`)})}),y>kn&&v<y&&o.jsx("div",{className:"training-block__more",children:o.jsx(se,{size:48,type:"bar",icon:"plus",onClick:x,ariaLabel:t("common.loadMore","\uB354\uBCF4\uAE30"),label:t("common.loadMore","\uB354\uBCF4\uAE30"),variant:"main"})})]})}function Ql(e){const t=l.useRef(null),[a,r]=l.useState(!!e),[n,i]=l.useState(!1);l.useEffect(()=>{i(!1);const u=t.current;r(!!e&&!(u?.complete&&u.naturalWidth>0))},[e]);const s=l.useCallback(()=>r(!1),[]),c=l.useCallback(()=>{r(!1),i(!0)},[]);return{imgRef:t,loading:a,failed:n,hasImage:!!e&&!n,onLoad:s,onError:c}}let Bo=null;function ek(e){if(Bo&&Bo!==e)try{Bo()}catch{}return Bo=e,()=>{Bo===e&&(Bo=null)}}var tk='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',ak='.ihabdevteam-core-scope .training-word-card{background:var(--color-white);border-radius:var(--radius-m);display:flex;flex:none;flex-direction:column;height:260px;overflow:visible;perspective:900px;position:relative;width:200px}.ihabdevteam-core-scope .training-word-card--disabled{cursor:default}.ihabdevteam-core-scope .training-word-card__flipper{border-radius:var(--radius-m);box-shadow:var(--shadow-card);display:flex;flex:1;flex-direction:column;position:relative;transform-style:preserve-3d;transition:transform .55s cubic-bezier(.4,0,.2,1);will-change:transform}.ihabdevteam-core-scope .training-word-card--flipped .training-word-card__flipper{transform:rotateY(180deg)}.ihabdevteam-core-scope .training-word-card__front{box-sizing:border-box;flex:1;flex-direction:column;gap:var(--spacing-s);min-height:0;padding:10px var(--spacing-m)}.ihabdevteam-core-scope .training-word-card__back,.ihabdevteam-core-scope .training-word-card__front{align-items:center;backface-visibility:hidden;-webkit-backface-visibility:hidden;display:flex;justify-content:center}.ihabdevteam-core-scope .training-word-card__back{background:#f3f5f6;background:var(--color-deepWhite,#f3f5f6);border-radius:var(--radius-m);inset:0;position:absolute;transform:rotateY(180deg)}.ihabdevteam-core-scope .training-word-card__back:before{border:8px solid var(--color-darkWhite);border-radius:var(--radius-m);content:"";inset:0;pointer-events:none;position:absolute}.ihabdevteam-core-scope .training-word-card__disabled-symbol{filter:invert(93%) sepia(6%) saturate(247%) hue-rotate(163deg) brightness(101%) contrast(93%);height:52px;opacity:.6;pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none;width:52px}.ihabdevteam-core-scope .training-word-card__selected-badge{position:absolute;right:0;top:0;transform:translate(12%,-12%);z-index:3}.ihabdevteam-core-scope .training-word-card__selected-badge .circle-badge{border:2px solid var(--color-pureWhite)}.ihabdevteam-core-scope .training-word-card--selectable{cursor:pointer;outline:1px solid transparent;overflow:visible;transition:box-shadow .15s,outline-color .15s}.ihabdevteam-core-scope .training-word-card--selectable:not(.training-word-card--disabled):hover{box-shadow:0 4px 16px rgba(9,30,34,.12);outline:1px solid var(--color-main)}.ihabdevteam-core-scope .training-word-card--selectable.training-word-card--selected:hover,.ihabdevteam-core-scope .training-word-card--selected{box-shadow:none;outline:2px solid #4f6ef7;outline:2px solid var(--color-main,#4f6ef7)}.ihabdevteam-core-scope .training-word-card__image-wrap{aspect-ratio:4/3;background:#f3f5f6;border-radius:var(--radius-s);flex-shrink:0;overflow:hidden;padding:0;position:relative;width:100%}.ihabdevteam-core-scope .training-word-card__image{-webkit-user-drag:none;display:block;height:100%;-o-object-fit:cover;object-fit:cover;pointer-events:none;transition:opacity .2s;-webkit-user-select:none;-moz-user-select:none;user-select:none;width:100%}.ihabdevteam-core-scope .training-word-card__placeholder{background:linear-gradient(160deg,#f0f2f4,#e4e8ea);height:100%;width:100%}.ihabdevteam-core-scope .training-word-card__spinner{align-items:center;display:flex;inset:0;justify-content:center;position:absolute;z-index:1}.ihabdevteam-core-scope .training-word-card__spinner:after{animation:twCard__spin .7s linear infinite;border:3px solid rgba(0,0,0,.1);border-radius:50%;border-top:3px solid var(--color-main,#4f6ef7);content:"";height:28px;width:28px}@keyframes twCard__spin{to{transform:rotate(1turn)}}.ihabdevteam-core-scope .training-word-card__body{align-items:center;display:flex;flex-direction:column;gap:3px;padding:0}.ihabdevteam-core-scope .training-word-card__word{color:#0b2b35;color:var(--color-black,#0b2b35);font-size:22px;font-weight:700;line-height:1.25;text-align:center;word-break:keep-all}.ihabdevteam-core-scope .training-word-card__pronunciation{color:#70858a;color:var(--color-gray,#70858a);font-size:13px;font-weight:500;line-height:1.4;text-align:center}.ihabdevteam-core-scope .training-word-card__colloquial{color:#a0b0b5;color:var(--color-lightGray,#a0b0b5);line-height:1.4;text-align:center}.ihabdevteam-core-scope .training-word-card__bottom{display:flex;flex-shrink:0;justify-content:center}@media (max-width:720px){.ihabdevteam-core-scope .training-word-card{border-radius:var(--radius-card)}.ihabdevteam-core-scope .training-word-card__word{font-size:18px}.ihabdevteam-core-scope .training-word-card__body{gap:2px}.ihabdevteam-core-scope .training-word-card__front{gap:var(--spacing-xs)}.ihabdevteam-core-scope .training-word-card__back,.ihabdevteam-core-scope .training-word-card__back:before{border-radius:var(--radius-card)}}@media (max-width:767px){.ihabdevteam-core-scope .training-word-card{border-radius:var(--radius-card);height:auto;width:100%}.ihabdevteam-core-scope .training-word-card__flipper{border-radius:var(--radius-card);box-shadow:0 2px 8px rgba(0,0,0,.03)}.ihabdevteam-core-scope .training-word-card__front{padding:var(--spacing-s)}.ihabdevteam-core-scope .training-word-card__back:before{border-width:4px}.ihabdevteam-core-scope .training-word-card__image-wrap{aspect-ratio:1/1}.ihabdevteam-core-scope .training-word-card__word{font-size:14px}.ihabdevteam-core-scope .training-word-card__pronunciation{font-size:11px}.ihabdevteam-core-scope .training-word-card__body{gap:2px}.ihabdevteam-core-scope .training-word-card__front{gap:4px}}';J(ak);const ok=tk,Sn=l.forwardRef(function({item:e,disabled:t=!1,onPlayDone:a,selectable:r=!1,selected:n=!1,onSelect:i,flipDelay:s=0,hideLabel:c=!1,hideAudio:u=!1,orderRank:d=null},p){const{t:m}=ge.useTranslation(),h=e.word||e.title||"",g=t||!h,f=e.audio??e.sound??e.audioKey,b=e.subLabel||e.pronunciation||"",y=e.colloquialLabel||"",[v,C]=l.useState({label:h,subLabel:b,colloquialLabel:y,homonum:e.homonum});h&&v.label!==h&&C({label:h,subLabel:b,colloquialLabel:y,homonum:e.homonum});const w=l.useRef(null),x=oa("(max-width: 767px)"),[S,_]=l.useState(!1),[k,N]=l.useState(""),A=Ma()?.(v.label,v.homonum)??e.image??"",{imgRef:D,loading:H,hasImage:P,onLoad:T,onError:E}=Ql(A);l.useEffect(()=>{let M=!1;return(async()=>{if(f){if(typeof f=="string"){if(f.startsWith("http")||f.includes("/")){N(f);return}}else if(typeof f=="object"&&!Array.isArray(f)){const W=f.src;if(W){N(W);return}}}const $=Fo();if($&&h)try{const W=await Promise.resolve($(h));!M&&W&&N(W)}catch{}})(),()=>{M=!0}},[f,h]),l.useEffect(()=>()=>{try{w.current?.pause()}catch{}w.current=null},[]);const L=l.useCallback(()=>new Promise(M=>{if(typeof window<"u"&&window.speechSynthesis&&h){_(!0),window.speechSynthesis.cancel();const $=new SpeechSynthesisUtterance(h);$.lang="ko-KR",$.onend=()=>{_(!1);try{a?.()}catch{}M()},$.onerror=()=>{_(!1),M()},window.speechSynthesis.speak($)}else M()}),[h,a]),F=l.useCallback(M=>new Promise($=>{let W=!1;const q=()=>{W||(W=!0,_(!1),$(!1))};try{const X=new Audio(M);w.current=X,X.onended=()=>{if(!W){W=!0,_(!1);try{a?.()}catch{}$(!0)}},X.onerror=q,X.play().catch(q)}catch{q()}}),[a]),te=l.useCallback(async()=>{if(t)return;const M=ek(()=>{try{w.current?.pause()}catch{}try{window.speechSynthesis?.cancel()}catch{}_(!1)});try{window.speechSynthesis?.cancel()}catch{}try{if(k&&(_(!0),await F(k)))return;const $=oi();if($&&h)try{const W=await Promise.resolve($(h));if(W&&(_(!0),await F(W)))return}catch{}await L()}finally{M()}},[t,k,h,F,L]);l.useImperativeHandle(p,()=>({play:()=>te()}),[te]);const Z=M=>M.stopPropagation(),V=l.useCallback(M=>{if(M.stopPropagation(),!t){if(S){try{w.current?.pause()}catch{}try{window.speechSynthesis?.cancel()}catch{}_(!1);return}te()}},[t,S,te]),j=xe("training-word-card",t?"training-word-card--disabled":"",g?"training-word-card--flipped":"",r?"training-word-card--selectable":"",n?"training-word-card--selected":"");return o.jsx("div",{className:j,onClick:r&&!t?i:void 0,role:r?"button":void 0,"aria-pressed":r?n:void 0,tabIndex:r&&!t?0:void 0,"aria-disabled":r&&t?!0:void 0,onKeyDown:r&&!t?M=>{(M.key==="Enter"||M.key===" "||M.key==="Spacebar")&&(M.preventDefault(),i?.())}:void 0,children:o.jsxs("div",{className:"training-word-card__flipper",style:{transitionDelay:g?"0ms":`${s}ms`},children:[o.jsxs("div",{className:"training-word-card__front",children:[n&&o.jsx("div",{className:"training-word-card__selected-badge",onClick:Z,children:o.jsx(ht,{type:"dot",size:40,position:"inline",animate:!0,icon:d!=null?void 0:"check",number:d??void 0,"aria-label":d!=null?m("training.nthSelected",{n:d}):m("training.selected","\uC120\uD0DD\uB428")})}),o.jsx("div",{className:"training-word-card__image-wrap",children:P?o.jsxs(o.Fragment,{children:[H&&o.jsx("div",{className:"training-word-card__spinner"}),o.jsx("img",{ref:D,className:"training-word-card__image",src:A,alt:v.label||m("common.image","\uC774\uBBF8\uC9C0"),style:{opacity:H?0:1},onLoad:T,onError:E})]}):o.jsx("div",{className:"training-word-card__placeholder"})}),!c&&o.jsxs("div",{className:"training-word-card__body",children:[o.jsx("div",{className:"training-word-card__word",children:v.label}),v.subLabel&&o.jsxs("div",{className:"training-word-card__pronunciation",children:["[",v.subLabel,"]"]}),v.colloquialLabel&&o.jsxs("div",{className:"training-word-card__colloquial caption-1",children:["[",v.colloquialLabel,"]"]})]}),!u&&o.jsx("div",{className:"training-word-card__bottom",onClick:r?Z:void 0,children:o.jsx(se,{size:x?40:48,type:x?"dot":"bar",icon:S?"pause":"play",label:x?void 0:m("training.playSound","\uC18C\uB9AC \uB4E3\uAE30"),selected:S,onClick:V,disabled:t,ariaLabel:m("training.playSound","\uC18C\uB9AC \uB4E3\uAE30")})})]}),o.jsx("div",{className:"training-word-card__back","aria-hidden":"true",children:o.jsx("img",{src:ok,className:"training-word-card__disabled-symbol",alt:"",draggable:!1})})]})})});let xr=0,Am="",Tm="",Cr=0;function rk(){return Bm(!1)}function nk(){return Bm(!0)}function Bm(e){const t=typeof document<"u";xr===0&&t&&(Am=document.body.style.overflow,document.body.style.overflow="hidden"),e&&t&&(Cr===0&&(Tm=document.body.style.paddingRight),Cr++,document.body.style.paddingRight="0px"),xr++;let a=!1;return()=>{a||(a=!0,xr=Math.max(0,xr-1),e&&t&&(Cr=Math.max(0,Cr-1),Cr===0&&(document.body.style.paddingRight=Tm)),xr===0&&t&&(document.body.style.overflow=Am))}}var ik=".ihabdevteam-core-scope .popup{align-items:center;background:rgba(16,24,32,.6);background:var(--color-popupBlock,rgba(16,24,32,.6));display:flex;inset:0;justify-content:center;position:fixed;z-index:var(--z-modal)}.ihabdevteam-core-scope .popup.popup--inline{align-items:stretch;background:transparent;justify-content:stretch;position:relative;z-index:5}.ihabdevteam-core-scope .popup.popup--inline .popup-panel{width:100%}.ihabdevteam-core-scope .popup-panel{background:var(--color-white);border-radius:28px;box-shadow:var(--shadow-popup);display:flex;flex-direction:column;max-height:calc(100% - 60px);max-width:820px;overflow:hidden;position:relative;width:calc(100% - 40px)}.ihabdevteam-core-scope .popup-panel--small{max-width:480px}.ihabdevteam-core-scope .popup-panel--medium{max-width:680px}.ihabdevteam-core-scope .popup-panel--large{max-width:1080px}.ihabdevteam-core-scope .popup-close-float{align-items:center;display:flex;gap:var(--spacing-xs);position:absolute;right:8px;top:8px;z-index:1}.ihabdevteam-core-scope .popup-title{display:block;flex-shrink:0;padding:var(--spacing-l);text-align:center}.ihabdevteam-core-scope .popup-header{align-items:center;display:flex;flex-shrink:0;gap:var(--spacing-s);padding:var(--spacing-l) var(--spacing-l) 0}.ihabdevteam-core-scope .popup-header--with-subtitle{align-items:flex-start}.ihabdevteam-core-scope .popup-header-main{display:flex;flex:1;flex-direction:column;gap:4px;min-width:0}.ihabdevteam-core-scope .popup-title--left{flex:1;min-width:0;padding:0;text-align:left}.ihabdevteam-core-scope .popup-header-main .popup-title--left{flex:none}.ihabdevteam-core-scope .popup-header .popup-title--left{margin:0}.ihabdevteam-core-scope .popup-subtitle{color:var(--color-gray);margin:0;text-align:left}.ihabdevteam-core-scope .popup-header-actions{align-items:center;display:flex;flex-shrink:0;gap:6px}.ihabdevteam-core-scope .popup-content{-webkit-overflow-scrolling:touch;display:flex;flex:1;flex-direction:column;min-height:0;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;padding:20px 20px 0;touch-action:pan-y}.ihabdevteam-core-scope .popup-content__inner{padding-bottom:20px}.ihabdevteam-core-scope .popup-footer{display:flex;gap:8px;justify-content:center;padding:0 20px 20px}.ihabdevteam-core-scope .popup-footer--buttons>*{flex:1;max-width:200px}.ihabdevteam-core-scope .popup--closing{opacity:0;transition:opacity .26s ease}@media (max-width:767px){.ihabdevteam-core-scope .popup-panel{max-height:calc(100% - 132px - env(safe-area-inset-bottom))}}.ihabdevteam-core-scope .form-date-row{display:flex;flex:1;gap:6px;min-width:0}.ihabdevteam-core-scope .form-date-row>div{min-width:90px}.ihabdevteam-core-scope .form-date-row--ymd>div:first-child{flex:3}.ihabdevteam-core-scope .form-date-row--ymd>div:nth-child(2),.ihabdevteam-core-scope .form-date-row--ymd>div:nth-child(3){flex:2}.ihabdevteam-core-scope .form-date-row--hm>div{flex:1}.ihabdevteam-core-scope .form-date-row--gap-8{gap:8px}@media (max-width:360px){.ihabdevteam-core-scope .form-date-row--ymd{flex-wrap:wrap}.ihabdevteam-core-scope .form-date-row--ymd>div:first-child{flex:1 0 100%}}.ihabdevteam-core-scope .form-field-error{color:var(--color-error);font-size:13px;margin-bottom:8px;padding:6px 0}.ihabdevteam-core-scope .confirm-popup__message{margin:0 auto;max-width:100%;padding:8px 0;text-align:left;width:-moz-fit-content;width:fit-content}.ihabdevteam-core-scope .confirm-popup .popup-content{padding-top:40px}.ihabdevteam-core-scope .confirm-popup .popup-content__inner{padding-bottom:40px}.ihabdevteam-core-scope .confirm-popup .panel+.confirm-popup__message{margin-top:16px}.ihabdevteam-core-scope .confirm-popup__top{display:flex;justify-content:center;margin-bottom:20px}";J(ik);const sk=260;function Ta(e){const{t}=ge.useTranslation(),{title:a,subtitle:r,headerActions:n,children:i,buttons:s,footer:c,footerClassName:u="",onClose:d,closeDisabled:p=!1,beforeClose:m,className:h="",ariaLabel:g,useTitle:f=!0,inline:b=!1,size:y,resetScrollKey:v}=e||{},[C,w]=l.useState(!1),x=l.useRef(!1),S=l.useRef(null),_=l.useId(),k=l.useRef(null);l.useEffect(()=>{},[b,a,g,h]),l.useEffect(()=>{v!==void 0&&k.current&&(k.current.scrollTop=0)},[v]);const[N,A]=l.useState(!1);l.useEffect(()=>{const L=k.current;if(!L)return;const F=()=>A(L.scrollHeight>L.clientHeight+1);if(F(),typeof ResizeObserver>"u")return;const te=new ResizeObserver(F);te.observe(L);const Z=L.firstElementChild;return Z&&te.observe(Z),()=>te.disconnect()},[i,v]),l.useEffect(()=>{if(!b)return rk()},[b]),l.useEffect(()=>{if(b)return;const L=document.activeElement,F=S.current;return F&&!F.contains(document.activeElement)&&(F.querySelector(dr)??F).focus(),()=>{L?.focus?.()}},[b]),_s(S,!b);const D=l.useCallback(L=>{x.current||(x.current=!0,w(!0),setTimeout(()=>{try{L&&L()}catch{}},sk))},[]),H=l.useCallback(()=>{p||m&&m()===!1||D(d)},[D,d,p,m]),P=l.useRef(H);l.useEffect(()=>{P.current=H});const T=!b&&!!d;l.useEffect(()=>{if(T)return Cl(()=>P.current())},[T]);const E=o.jsx("div",{className:`popup ${b?"popup--inline":""} ${C?"popup--closing":""} ${h}`,children:o.jsxs("div",{ref:S,className:`popup-panel${y?` popup-panel--${y}`:""}`,tabIndex:-1,role:b?void 0:"dialog","aria-modal":b?void 0:!0,"aria-labelledby":!b&&a?_:void 0,"aria-label":!b&&!a&&g?g:void 0,children:[!f&&(n||d)?o.jsxs("div",{className:"popup-close-float",children:[n,d&&o.jsx(se,{size:40,type:"dot",icon:"x",variant:"transparent-gray",useBorder:!1,onClick:H,disabled:p,ariaLabel:t("common.close","\uB2EB\uAE30")})]}):a||n||d?o.jsxs("div",{className:`popup-header${r?" popup-header--with-subtitle":""}`,children:[o.jsxs("div",{className:"popup-header-main",children:[o.jsx("span",{id:_,className:"popup-title popup-title--left h2",children:a}),r&&o.jsx("span",{className:"popup-subtitle body-3",children:r})]}),o.jsxs("div",{className:"popup-header-actions",children:[n,d&&o.jsx(se,{size:40,type:"dot",icon:"x",variant:"transparent-gray",useBorder:!1,onClick:H,disabled:p,ariaLabel:t("common.close","\uB2EB\uAE30")})]})]}):null,o.jsx("div",{className:"popup-content",ref:k,tabIndex:N?0:void 0,children:o.jsx("div",{className:"popup-content__inner",children:typeof i=="function"?i({animateThen:D,closeWithAnimation:H}):i})}),s?.length?o.jsx("div",{className:"popup-footer popup-footer--buttons",children:s.map((L,F)=>o.jsx(se,{size:48,variant:L.variant??"default",label:L.label,disabled:L.disabled,onClick:()=>L.onClick?.({animateThen:D,closeWithAnimation:H})},F))}):c?o.jsx("div",{className:`popup-footer${u?` ${u}`:""}`,children:typeof c=="function"?c({animateThen:D,closeWithAnimation:H}):c}):null]})});return b||typeof document>"u"?E:qt.createPortal(E,document.body)}function _r(e){return String(e)}const Jl=["o","triangle","x"];function ec(e,t){return e===t?null:t}const tc={o:"circle",triangle:"triangle",x:"x"},ac={o:"main",triangle:"warn",x:"danger"};function Nm(e){let t=0,a=0,r=0;for(const i of Object.values(e))i==="o"?t++:i==="triangle"?a++:i==="x"&&r++;const n=t+a+r;return{marked:n,o:t,triangle:a,x:r,rate:n===0?null:(t+a*.5)/n}}function An(e){const t={};for(const[a,r]of Object.entries(e))(r==="o"||r==="triangle"||r==="x")&&(t[a]=r);return t}function oc(e){const t=[];let a=0;for(const r of e)t.push(a),a+=r;return t}function Dm(e,t){return!t&&e>0}var lk=`.ihabdevteam-core-scope .word-table__scaler{overflow:clip;overflow-clip-margin:32px;width:100%}.ihabdevteam-core-scope .word-table{--print-margin:57px;background:#fbfdff;border:1px solid var(--color-whiteLine);box-shadow:var(--shadow-dropdown);box-sizing:border-box;padding:57px;padding:var(--print-margin)}.ihabdevteam-core-scope .word-table-block__content{box-sizing:border-box;display:grid;height:100%;position:relative;width:100%}.ihabdevteam-core-scope .word-table__page-number{bottom:8px;color:var(--color-gray);pointer-events:none;position:absolute;z-index:2}.ihabdevteam-core-scope .word-table__page-number--left{left:12px}.ihabdevteam-core-scope .word-table__page-number--right{right:12px}.ihabdevteam-core-scope .word-table__page-number--center{left:50%;transform:translateX(-50%)}.ihabdevteam-core-scope .word-table-block__content--cut-show{background:var(--color-whiteLine);gap:1px;print-color-adjust:exact;-webkit-print-color-adjust:exact}.ihabdevteam-core-scope .word-table-block__content--outline{position:relative}.ihabdevteam-core-scope .word-table-block__content--outline:after{border:1px solid var(--color-whiteLine);content:"";inset:0;pointer-events:none;position:absolute;z-index:1}.ihabdevteam-core-scope .word-table-block__content--cut-corner .word-table-block__card{background:linear-gradient(var(--color-whiteLine),var(--color-whiteLine)) 0 0 /8px 1px no-repeat,linear-gradient(var(--color-whiteLine),var(--color-whiteLine)) 0 0 /1px 8px no-repeat,linear-gradient(var(--color-whiteLine),var(--color-whiteLine)) 100% 0 /8px 1px no-repeat,linear-gradient(var(--color-whiteLine),var(--color-whiteLine)) 100% 0 /1px 8px no-repeat,linear-gradient(var(--color-whiteLine),var(--color-whiteLine)) 0 100% /8px 1px no-repeat,linear-gradient(var(--color-whiteLine),var(--color-whiteLine)) 0 100% /1px 8px no-repeat,linear-gradient(var(--color-whiteLine),var(--color-whiteLine)) 100% 100% /8px 1px no-repeat,linear-gradient(var(--color-whiteLine),var(--color-whiteLine)) 100% 100% /1px 8px no-repeat,#fbfdff;print-color-adjust:exact;-webkit-print-color-adjust:exact}.ihabdevteam-core-scope .word-table-block__card{background:#fbfdff;display:flex;min-height:0;overflow:hidden;position:relative;transition:box-shadow .15s}.ihabdevteam-core-scope .word-table-block__card--filler{align-items:center;justify-content:center}.ihabdevteam-core-scope .word-table-block__card:not(.word-table-block__card--filler):hover{box-shadow:var(--shadow-dropdown);z-index:1}.ihabdevteam-core-scope .word-table-block__card--draggable{cursor:grab}.ihabdevteam-core-scope .word-table-block__card--draggable:active{cursor:grabbing}.ihabdevteam-core-scope .word-table-block__card--drag-over{outline:2px solid var(--color-main);outline-offset:-2px;z-index:2}.ihabdevteam-core-scope .word-table-block__card-close{opacity:0;position:absolute;right:20px;top:20px;transition:opacity .15s;z-index:1}.ihabdevteam-core-scope .word-table-block__card-close:focus-visible,.ihabdevteam-core-scope .word-table-block__card-close:focus-within,.ihabdevteam-core-scope .word-table-block__card:focus-within .word-table-block__card-close,.ihabdevteam-core-scope .word-table-block__card:hover .word-table-block__card-close{opacity:1}.ihabdevteam-core-scope .word-table-block__pair-divider{align-self:center;background:var(--color-whiteLine);display:none;flex-shrink:0;height:20%;print-color-adjust:exact;-webkit-print-color-adjust:exact;width:1px}.ihabdevteam-core-scope .word-table-block__content--div-line .word-table-block__pair-divider{display:block}.ihabdevteam-core-scope .word-table-block__edit-cell{align-items:stretch;background:#fbfdff;display:flex;flex-direction:row;min-height:0;overflow:hidden;position:relative;transition:box-shadow .15s}.ihabdevteam-core-scope .word-table-block__edit-cell--filled:hover{box-shadow:var(--shadow-dropdown);z-index:1}.ihabdevteam-core-scope .word-table-block__edit-cell--filled:focus-within .word-table-block__card-close,.ihabdevteam-core-scope .word-table-block__edit-cell--filled:hover .word-table-block__card-close{opacity:1}.ihabdevteam-core-scope .word-table-block__edit-cell--empty{align-items:center;justify-content:center}.ihabdevteam-core-scope .word-table-block__edit-cell--active{background:rgba(73,156,223,.04);background:rgba(var(--color-main-rgb,73,156,223),.04);outline:2px solid var(--color-main);outline-offset:-2px}.ihabdevteam-core-scope .word-table-block__content--cut-corner .word-table-block__edit-cell{background:linear-gradient(var(--color-whiteLine),var(--color-whiteLine)) 0 0 /8px 1px no-repeat,linear-gradient(var(--color-whiteLine),var(--color-whiteLine)) 0 0 /1px 8px no-repeat,linear-gradient(var(--color-whiteLine),var(--color-whiteLine)) 100% 0 /8px 1px no-repeat,linear-gradient(var(--color-whiteLine),var(--color-whiteLine)) 100% 0 /1px 8px no-repeat,linear-gradient(var(--color-whiteLine),var(--color-whiteLine)) 0 100% /8px 1px no-repeat,linear-gradient(var(--color-whiteLine),var(--color-whiteLine)) 0 100% /1px 8px no-repeat,linear-gradient(var(--color-whiteLine),var(--color-whiteLine)) 100% 100% /8px 1px no-repeat,linear-gradient(var(--color-whiteLine),var(--color-whiteLine)) 100% 100% /1px 8px no-repeat,#fbfdff;print-color-adjust:exact;-webkit-print-color-adjust:exact}.ihabdevteam-core-scope .word-table-cell{align-items:center;display:flex;flex:1;justify-content:center;min-height:0;min-width:0;overflow:hidden;position:relative}.ihabdevteam-core-scope .word-table-cell__inner{align-items:center;box-sizing:border-box;display:flex;flex-direction:column;height:380px;justify-content:center;transform-origin:center center;width:280px}.ihabdevteam-core-scope .word-table-cell__word{color:var(--color-black);text-align:center;white-space:nowrap}.ihabdevteam-core-scope .word-table-cell__sub{color:var(--color-gray);text-align:center;white-space:nowrap}.ihabdevteam-core-scope .word-table-cell__colloquial{color:var(--color-lightGray);text-align:center;white-space:nowrap}.ihabdevteam-core-scope .word-table-cell__play-button{left:20px;opacity:0;position:absolute;top:20px;transition:opacity .15s;z-index:1}.ihabdevteam-core-scope .word-table-block__card:hover .word-table-cell__play-button,.ihabdevteam-core-scope .word-table-block__edit-cell:focus-within .word-table-cell__play-button,.ihabdevteam-core-scope .word-table-block__edit-cell:hover .word-table-cell__play-button,.ihabdevteam-core-scope .word-table-cell__play-button:focus-visible,.ihabdevteam-core-scope .word-table-cell__play-button:focus-within{opacity:1}.ihabdevteam-core-scope .word-table-cell__info-button{left:20px;opacity:0;position:absolute;top:60px;transition:opacity .15s;z-index:1}.ihabdevteam-core-scope .word-table-block__card:hover .word-table-cell__info-button,.ihabdevteam-core-scope .word-table-block__edit-cell:focus-within .word-table-cell__info-button,.ihabdevteam-core-scope .word-table-block__edit-cell:hover .word-table-cell__info-button,.ihabdevteam-core-scope .word-table-cell__info-button:focus-visible,.ihabdevteam-core-scope .word-table-cell__info-button:focus-within{opacity:1}.ihabdevteam-core-scope .word-table-cell__image-wrap{background:var(--color-deepWhite);border-radius:var(--radius-card);flex-shrink:0;height:240px;overflow:hidden;position:relative;width:240px}.ihabdevteam-core-scope .word-table-cell__image{display:block;height:100%;-o-object-fit:cover;object-fit:cover;transition:opacity .2s;width:100%}.ihabdevteam-core-scope .word-table-cell__spinner{align-items:center;display:flex;inset:0;justify-content:center;position:absolute}.ihabdevteam-core-scope .word-table-cell__spinner:after{animation:wordTableCell_spin .7s linear infinite;border:3px solid #fbfdff;border-radius:50%;border-top:3px solid var(--color-white,#fbfdff);border:3px solid var(--color-white,#fbfdff);border-top-color:var(--color-main,var(--color-main));content:"";height:32px;width:32px}@keyframes wordTableCell_spin{to{transform:rotate(1turn)}}@media print{@page{margin:0}.ihabdevteam-core-scope body *{visibility:hidden}.ihabdevteam-core-scope .word-table,.ihabdevteam-core-scope .word-table *{visibility:visible}
|
|
844
844
|
|
|
845
845
|
/* !important \uD544\uC694: WordTable.tsx\uAC00 \uD654\uBA74 \uD45C\uC2DC\uC6A9 scale/marginLeft\uB97C \uC778\uB77C\uC778 style\uB85C
|
|
846
846
|
\uC9C1\uC811 \uC801\uC6A9\uD558\uBBC0\uB85C(\uC2A4\uD06C\uB9B0 \uCD95\uC18C \uB80C\uB354), \uC778\uC1C4 \uC2DC \uC774\uB97C \uBB34\uD6A8\uD654\uD558\uB824\uBA74 \uD074\uB798\uC2A4 \uADDC\uCE59\uC5D0
|
|
847
|
-
!important\uAC00 \uBD88\uAC00\uD53C(\uC778\uB77C\uC778 \uC2A4\uD0C0\uC77C\uC740 !important \uC5C6\uC774\uB294 \uC774\uAE38 \uC218 \uC5C6\uC74C). */.ihabdevteam-core-scope .word-table{background:#fbfdff;border:none;box-shadow:none;inset:0;margin:0!important;padding:15mm;position:fixed;transform:none!important}.ihabdevteam-core-scope .word-table-block__card-close,.ihabdevteam-core-scope .word-table-cell__info-button,.ihabdevteam-core-scope .word-table-cell__play-button,.ihabdevteam-core-scope .word-table-cell__spinner{display:none}}.ihabdevteam-core-scope .word-table-cell__score{bottom:16px;display:flex;gap:4px;left:50%;position:absolute;transform:translateX(-50%);z-index:1}.ihabdevteam-core-scope .word-table-cell__score-slot{display:none}.ihabdevteam-core-scope .word-table-block__card:hover .word-table-cell__score-slot,.ihabdevteam-core-scope .word-table-block__edit-cell:focus-within .word-table-cell__score-slot,.ihabdevteam-core-scope .word-table-block__edit-cell:hover .word-table-cell__score-slot,.ihabdevteam-core-scope .word-table-cell__score-slot--on,.ihabdevteam-core-scope .word-table-cell__score:focus-within .word-table-cell__score-slot{display:inline-flex}@media print{.ihabdevteam-core-scope .word-table-block__card:hover .word-table-cell__score-slot:not(.word-table-cell__score-slot--on),.ihabdevteam-core-scope .word-table-block__edit-cell:hover .word-table-cell__score-slot:not(.word-table-cell__score-slot--on){display:none}}.ihabdevteam-core-scope .word-table-cell__score .button--variant-main.is-selected,.ihabdevteam-core-scope .word-table-cell__score .button--variant-main[aria-pressed=true]{background:var(--color-main);border-color:var(--color-main)}.ihabdevteam-core-scope .word-table-cell__score .button--variant-warn.is-selected,.ihabdevteam-core-scope .word-table-cell__score .button--variant-warn[aria-pressed=true]{--button-icon-color:#fff;background:var(--color-warn);border-color:var(--color-warn)}`;J(lk);const io={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 Em(e="landscape"){const{printSize:t,printW:a,printH:r}=io[e],n=document.createElement("style");n.textContent=`@page { size: ${t}; margin: 0; } .word-table { width: ${a} !important; height: ${r} !important; }`,document.head.appendChild(n);const i=()=>{document.head.removeChild(n),window.removeEventListener("afterprint",i)};window.addEventListener("afterprint",i),window.print()}function jm(e,t){if(e.length===0)return[[]];const a=Math.max(1,Math.floor(t)),r=[];for(let n=0;n<e.length;n+=a)r.push(e.slice(n,n+a));return r}const ck={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 dk(e,t){const a=ck[e][t];if(a)return a;const r=Math.max(1,Math.ceil(t)),n=Math.max(1,Math.ceil(Math.sqrt(r*.707)));let i,s;return e==="landscape"?(s=n,i=Math.ceil(r/s)):(i=n,s=Math.ceil(r/i)),(e==="landscape"?i<s:s<i)&&([i,s]=[s,i]),{cols:i,rows:s}}const uk={\uD45C\uC2DC:"word-table-block__content--cut-show",\uC810\uC120:"",\uCF54\uB108:"word-table-block__content--cut-corner",\uBBF8\uD45C\uC2DC:""},rc={\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"},nc={\uACE0\uC720:"\uACE0\uC720\uC5B4",\uD55C\uC790:"\uD55C\uC790\uC5B4",\uC678\uB798:"\uC678\uB798\uC5B4",\uD63C\uC885:"\uD63C\uC885\uC5B4"};function Tn(e,t){return e?e.split("/").map(a=>t[a]??a).join("/"):""}function Lm(e,t,a,r){if(r!=="\uC810\uC120")return{};const n=e%t,i=Math.floor(e/t),s=n<t-1,c=i<a-1;if(!s&&!c)return{};const u="#ddd",d=g=>`repeating-linear-gradient(to ${g}, ${u} 0, ${u} 5px, transparent 5px, transparent 10px)`,p=[],m=[],h=[];return s&&(p.push(d("bottom")),m.push("1px 100%"),h.push("right center")),c&&(p.push(d("right")),m.push("100% 1px"),h.push("center bottom")),{backgroundImage:p.join(", "),backgroundSize:m.join(", "),backgroundPosition:h.join(", "),backgroundRepeat:"no-repeat",printColorAdjust:"exact",WebkitPrintColorAdjust:"exact"}}const pk=280,hk=240,mk=280,bk=400,gk=120,fk=280;function ic(e,t){const a=l.useRef(null),[r,n]=l.useState(1),[i,s]=l.useState(0),c=l.useCallback((u,d)=>{const p=u/e,m=t?d/t:1/0,h=Math.min(1,p,m);n(h),s(Math.max(0,(u-e*h)/2))},[e,t]);return l.useEffect(()=>{const u=a.current;if(!u)return;const d=t?u.parentElement??u:u;if(c(d.clientWidth,d.clientHeight),typeof ResizeObserver>"u")return;const p=new ResizeObserver(([m])=>c(m.contentRect.width,m.contentRect.height));return p.observe(d),()=>p.disconnect()},[c,t]),{scalerRef:a,scale:r,offset:i}}let Ba=null;function Mm({label:e,subLabel:t,colloquialLabel:a,homonum:r,showWord:n=!0,showImage:i=!0,showPronunciation:s=!0,showColloquial:c=!0,buttonSize:u=40,wordInfo:d}){const{t:p}=ge.useTranslation(),m=l.useRef(null),h=l.useRef(null),g=l.useRef(null),[f,b]=l.useState(1),[y,v]=l.useState(!1),[C,w]=l.useState(""),[x,S]=l.useState(null),_=t&&t.length>0?t:ri()?.(e,r)??"",k=Ma()?.(e,r)??"",{imgRef:N,loading:A,failed:D,onLoad:H,onError:P}=Ql(k),T=l.useCallback(()=>S(h.current?.getBoundingClientRect()??null),[]),E=l.useCallback(()=>S(null),[]),L=l.useMemo(()=>{if(!d)return null;const j=[];return d.grade&&j.push(`\uB09C\uC774\uB3C4: ${d.grade}\uB4F1\uAE09`),d.syllables&&j.push(`\uC74C\uC808 \uC218: ${d.syllables}\uC74C\uC808`),d.pos&&j.push(`\uD488\uC0AC: ${Tn(d.pos,rc)}`),d.wordType&&j.push(`\uC720\uD615: ${Tn(d.wordType,nc)}`),j.length?j:null},[d]);l.useEffect(()=>{const j=Fo(),M=_||e;if(!j||!M)return;let $=!1;return Promise.resolve(j(M)).then(W=>{!$&&W&&w(W)}),()=>{$=!0}},[_,e]),l.useEffect(()=>()=>{g.current?.pause(),Ba?.audio===g.current&&(Ba=null)},[]);const F=l.useCallback(async j=>{if(j.stopPropagation(),y){g.current?.pause(),v(!1),Ba=null;return}if(C){Ba?.stop(),v(!0);try{const M=new Audio(C);g.current=M;const $=()=>{v(!1),Ba?.audio===M&&(Ba=null)};Ba={audio:M,stop:()=>{M.pause(),$()}},M.onended=$,M.onerror=$,await M.play()}catch{v(!1),Ba?.audio===g.current&&(Ba=null)}}},[y,C]),te=i&&!!k&&!D,Z=te&&n?pk:te?mk:hk,V=te&&n?bk:te?fk:gk;return l.useEffect(()=>{const j=m.current;if(!j||typeof ResizeObserver>"u")return;const M=new ResizeObserver(([$])=>{const{width:W,height:q}=$.contentRect;b(Math.min(W/Z,q/V))});return M.observe(j),()=>M.disconnect()},[Z,V]),o.jsxs("div",{ref:m,className:"word-table-cell",children:[o.jsxs("div",{className:"word-table-cell__inner",style:{transform:`scale(${f})`},children:[te&&o.jsxs("div",{className:"word-table-cell__image-wrap",children:[A&&o.jsx("div",{className:"word-table-cell__spinner"}),o.jsx("img",{ref:N,className:"word-table-cell__image",src:k,alt:e,draggable:!1,style:{opacity:A?0:1},onLoad:H,onError:P})]}),n&&o.jsx("span",{className:"word-table-cell__word h0",children:e}),s&&_&&o.jsxs("span",{className:"word-table-cell__sub h3",children:["[",_,"]"]}),c&&a&&o.jsxs("span",{className:"word-table-cell__colloquial h5",children:["[",a,"]"]})]}),o.jsxs("div",{className:"word-table-cell__play-button","data-audio-src":C,children:[o.jsx("span",{"data-play-state":"play",style:{display:y?"none":void 0},children:o.jsx(se,{size:u,type:"dot",icon:"play",variant:"transparent-lightGray",useBorder:!1,showTooltipInfo:p("common.play","\uC7AC\uC0DD"),onClick:F})}),o.jsx("span",{"data-play-state":"pause",style:{display:y?void 0:"none"},children:o.jsx(se,{size:u,type:"dot",icon:"pause",useBorder:!1,selected:!0,showTooltipInfo:p("common.pause","\uBA48\uCDA4"),onClick:F})})]}),d&&o.jsxs("div",{ref:h,className:"word-table-cell__info-button",onPointerEnter:T,onPointerLeave:E,onFocus:T,onBlur:E,children:[o.jsx(se,{size:u,type:"dot",icon:"info",variant:"transparent-lightGray",useBorder:!1,showTooltipInfo:!1,ariaLabel:p("wordTable.wordInfo","{{word}} \uB0B1\uB9D0 \uC815\uBCF4",{word:e}),onClick:j=>j.stopPropagation()}),x&&L&&o.jsx(to,{anchorRect:x,items:L,showIndex:!1})]})]})}function so({title:e,titleIcon:t,disc:a,className:r,orientation:n="landscape",contentTypes:i=["\uC774\uBBF8\uC9C0","\uB2E8\uC5B4","\uD45C\uC900 \uBC1C\uC74C"],cutLine:s="\uD45C\uC2DC",showOutline:c=!0,showDivLine:u=!0,items:d,editCells:p,count:m,activeCell:h=null,onActivateCell:g,onRemoveCell:f,onRemoveItem:b,onReorder:y,showFillerAdd:v=!1,contentRef:C,buttonSize:w=40,pageNumber:x,pageNumberPosition:S="right",fitHeight:_=!1,scoring:k=!1,marks:N,onMarkClick:A,scoreIndexOffset:D=0}){const H=l.useCallback((me,ce)=>{A?.(D+me,ce)},[A,D]),P=(me,ce)=>{const I=N?.[Cr(D+me)]??null;return o.jsx("div",{className:xe("word-table-cell__score",I?"word-table-cell__score--marked":""),children:Jl.map(ee=>o.jsx("span",{className:xe("word-table-cell__score-slot",I===ee?"word-table-cell__score-slot--on":""),children:o.jsx(se,{size:w,type:"dot",icon:tc[ee],variant:I===ee?ac[ee]:"default",selected:I===ee,useBorder:!1,showTooltipInfo:!1,ariaLabel:T(`wordTable.scoring.${ee}`,{word:ce,defaultValue:`${ce} ${ee}`}),onClick:pe=>{pe.stopPropagation(),H(me,ee)}})},ee))})},{t:T}=ge.useTranslation(),E=p!==void 0,L=l.useRef(null),[F,te]=l.useState(null),{width:Z,height:V}=io[n],{scalerRef:j,scale:M,offset:$}=ic(Z,_?V:void 0),W=E?p?.length??0:d?.length??0,q=Math.max(m??W,1),{cols:X,rows:O}=dk(n,q),Y={word:i.length===0||i.includes("\uB2E8\uC5B4"),image:i.length===0||i.includes("\uC774\uBBF8\uC9C0"),pron:i.length===0||i.includes("\uD45C\uC900 \uBC1C\uC74C"),colloq:i.length===0||i.includes("\uAD6C\uC5B4\uCCB4 \uBC1C\uC74C")},z=E?(p??[]).some(me=>me!==null&&me.length>1):(d??[]).some(me=>me.words.length>1),re=xe("word-table-block__content",uk[s],c&&"word-table-block__content--outline",u&&z&&"word-table-block__content--div-line"),Q={transform:`scale(${1/M})`,transformOrigin:"center center"},ne=o.jsx("div",{ref:j,className:"word-table__scaler",style:{height:V*M},children:o.jsx("div",{className:xe("word-table",r),style:{width:Z,height:V,transform:`scale(${M})`,transformOrigin:"top left",marginLeft:$},children:o.jsxs("div",{ref:C,className:re,style:{gridTemplateColumns:`repeat(${X}, 1fr)`,gridTemplateRows:`repeat(${O}, 1fr)`},children:[E?o.jsx(o.Fragment,{children:(p??[]).map((me,ce)=>o.jsx("div",{className:xe("word-table-block__edit-cell",me?"word-table-block__edit-cell--filled":"word-table-block__edit-cell--empty",h===ce?"word-table-block__edit-cell--active":""),style:Lm(ce,X,O,s),children:me?o.jsxs(o.Fragment,{children:[me.map((I,ee)=>o.jsxs(l.Fragment,{children:[ee>0&&o.jsx("div",{className:"word-table-block__pair-divider"}),o.jsx(Mm,{label:I.word,subLabel:I.pronunciation,homonum:I.homonum,showWord:Y.word,showImage:Y.image,showPronunciation:Y.pron,showColloquial:Y.colloq,buttonSize:w})]},ee)),k&&P(ce,me.map(I=>I.word).join(" / ")),f&&o.jsx("div",{className:"word-table-block__card-close",children:o.jsx(se,{size:w,type:"dot",icon:"x",variant:"transparent-lightGray",useBorder:!1,showTooltipInfo:me.length>1?T("wordPrint.removePair","\uB300\uB9BD\uC30D \uBE7C\uAE30"):T("wordPrint.removeWord","\uB2E8\uC5B4 \uBE7C\uAE30"),ariaLabel:me.length>1?T("wordPrint.removePair","\uB300\uB9BD\uC30D \uBE7C\uAE30"):T("wordPrint.removeWord","\uB2E8\uC5B4 \uBE7C\uAE30"),onClick:()=>f(ce)})})]}):g&&o.jsx("div",{style:Q,children:o.jsx(se,{size:"48",type:"bar",icon:"plus",label:T("wordTable.addWord","\uCD94\uAC00\uD558\uAE30"),onClick:()=>g(ce)})})},ce))}):o.jsxs(o.Fragment,{children:[(d??[]).map((me,ce)=>o.jsxs("div",{className:`word-table-block__card${y?" word-table-block__card--draggable":""}${F===ce?" word-table-block__card--drag-over":""}`,style:Lm(ce,X,O,s),draggable:!!y,onDragStart:y?()=>{L.current=ce}:void 0,onDragOver:y?I=>{I.preventDefault(),te(ce)}:void 0,onDragLeave:y?()=>te(null):void 0,onDrop:y?I=>{I.preventDefault(),L.current!==null&&L.current!==ce&&y(L.current,ce),L.current=null,te(null)}:void 0,onDragEnd:y?()=>{L.current=null,te(null)}:void 0,children:[me.words.map((I,ee)=>o.jsxs(l.Fragment,{children:[ee>0&&o.jsx("div",{className:"word-table-block__pair-divider"}),o.jsx(Mm,{label:I.label,subLabel:I.subLabel,colloquialLabel:I.colloquialLabel,homonum:I.homonum,showWord:Y.word,showImage:Y.image,showPronunciation:Y.pron,showColloquial:Y.colloq,buttonSize:w,wordInfo:I.grade||I.syllables!=null||I.pos||I.wordType?{grade:I.grade,syllables:I.syllables,pos:I.pos,wordType:I.wordType}:void 0})]},ee)),k&&P(ce,me.words.map(I=>I.label).join(" / ")),b&&o.jsx("div",{className:"word-table-block__card-close",children:o.jsx(se,{size:w,type:"dot",icon:"x",variant:"transparent-lightGray",useBorder:!1,showTooltipInfo:me.words.length>1?T("wordPrint.removePair","\uB300\uB9BD\uC30D \uBE7C\uAE30"):T("wordPrint.removeWord","\uB2E8\uC5B4 \uBE7C\uAE30"),ariaLabel:me.words.length>1?T("wordPrint.removePair","\uB300\uB9BD\uC30D \uBE7C\uAE30"):T("wordPrint.removeWord","\uB2E8\uC5B4 \uBE7C\uAE30"),onClick:()=>b(me.id)})})]},me.id)),Array.from({length:Math.max(0,X*O-(d?.length??0))}).map((me,ce)=>{const I=(d?.length??0)+ce<q;return o.jsx("div",{className:"word-table-block__card word-table-block__card--filler",children:v&&g&&I&&o.jsx("div",{style:Q,children:o.jsx(se,{size:w,type:"bar",icon:"plus",label:T("wordTable.addWord","\uCD94\uAC00\uD558\uAE30"),onClick:()=>g((d?.length??0)+ce)})})},`filler-${ce}`)})]}),x&&S!=="none"&&o.jsx("span",{className:`word-table__page-number body-3 word-table__page-number--${S}`,children:T("wordTable.filter.pageIndicator",{current:x.current,total:x.total})})]})})});return e!=null||t||a?o.jsx(no,{type:"page",icon:t,title:e,disc:a,className:xe("word-table-block",r),children:ne}):ne}var vk=".ihabdevteam-core-scope .filter-panel{background:var(--color-white);border:1px solid var(--color-darkWhite);border-radius:var(--radius-m);display:flex;flex-direction:column;gap:var(--spacing-m);min-width:200px;padding:var(--spacing-l)}.ihabdevteam-core-scope .filter-panel__header{align-items:center;display:flex;justify-content:space-between}.ihabdevteam-core-scope .filter-panel--collapsible{padding-bottom:0;padding-top:0}.ihabdevteam-core-scope .filter-panel--collapsible .filter-panel__header{flex-shrink:0;min-height:60px}.ihabdevteam-core-scope .filter-panel--collapsible .filter-panel__sections{padding-bottom:var(--spacing-m)}.ihabdevteam-core-scope .filter-panel__footer{border-top:1px solid var(--color-darkWhite);color:var(--color-gray);padding-bottom:var(--spacing-l);padding-top:var(--spacing-m)}.ihabdevteam-core-scope .filter-panel__title{display:block;text-align:left}.ihabdevteam-core-scope .filter-panel__title-row{align-items:center;display:flex;gap:var(--spacing-xs);min-width:0}.ihabdevteam-core-scope .filter-panel__header-actions{align-items:center;display:flex;gap:var(--spacing-xs);margin-left:auto}.ihabdevteam-core-scope .filter-panel__section{align-items:flex-start;display:flex;flex-direction:column;gap:var(--spacing-xs)}.ihabdevteam-core-scope .filter-panel__section-label-row{align-items:center;display:flex;justify-content:space-between}.ihabdevteam-core-scope .filter-panel__section-label{color:var(--color-darkGray);margin:0;text-align:left}.ihabdevteam-core-scope .filter-panel__section-multiple{color:var(--color-lightGray)}.ihabdevteam-core-scope .filter-panel__sections{display:flex;flex-direction:column;gap:var(--spacing-m)}.ihabdevteam-core-scope .filter-panel__sections--row{align-items:flex-start;flex-direction:row;flex-wrap:wrap;gap:16px 32px}.ihabdevteam-core-scope .filter-panel__group-label-row{align-items:center;display:flex;flex-basis:100%;gap:var(--spacing-s);justify-content:space-between;padding-top:var(--spacing-xs);width:100%}.ihabdevteam-core-scope .filter-panel__group-label{color:var(--color-darkGray);margin:0;text-align:left}.ihabdevteam-core-scope .filter-panel__section--row{align-items:center;flex-direction:row;gap:var(--spacing-s)}.ihabdevteam-core-scope .filter-panel__section--row .filter-panel__section-label-row{flex:0 0 auto;min-width:44px}.ihabdevteam-core-scope .filter-panel__sections--row .filter-panel__section--row{flex:0 0 auto;max-width:100%}.ihabdevteam-core-scope .filter-panel__sections--row .filter-panel__section--block{flex-basis:100%}.ihabdevteam-core-scope .filter-panel__items{display:flex;flex-wrap:wrap;gap:var(--spacing-xs)}.ihabdevteam-core-scope .filter-panel__item-groups{-moz-column-gap:var(--spacing-xl);column-gap:var(--spacing-xl);display:flex;flex-wrap:wrap;row-gap:var(--spacing-xs)}.ihabdevteam-core-scope .filter-panel__item-group{display:flex;flex-wrap:wrap;gap:var(--spacing-xs)}.ihabdevteam-core-scope .filter-panel__note{color:var(--color-darkGray);text-align:left;width:100%}.ihabdevteam-core-scope .filter-panel__note-list{display:flex;flex-direction:column;gap:4px;margin:0;padding-left:18px}.ihabdevteam-core-scope .filter-panel__textfield{min-width:200px}.ihabdevteam-core-scope .filter-panel__dropdown{min-width:180px}@media (max-width:767px){.ihabdevteam-core-scope .filter-panel__textfield{min-width:0;width:100%}}";J(vk);function va({title:e,headerAction:t,collapsible:a=!1,defaultCollapsed:r=!1,collapsed:n,onCollapsedChange:i,footer:s,sections:c,selected:u={},onSelect:d,align:p,sectionAlign:m,className:h}){const g=(p??(m==="vertical"?"newline":"inline"))==="inline",{t:f}=ge.useTranslation(),[b,y]=l.useState(r),v=n??b,C=()=>{const x=!v;y(x),i?.(x)},w=e||t||a;return o.jsxs("div",{className:xe("filter-panel",a?"filter-panel--collapsible":"",v?"filter-panel--collapsed":"",h),children:[w&&o.jsxs("div",{className:"filter-panel__header",children:[o.jsxs("div",{className:"filter-panel__title-row",children:[a&&o.jsx(se,{size:40,type:"dot",variant:"transparent-gray",useBorder:!1,icon:v?"chevron-down":"chevron-up",ariaLabel:v?f("common.expand","\uD3BC\uCE58\uAE30"):f("common.collapse","\uC811\uAE30"),"aria-expanded":!v,onClick:C}),e&&o.jsx("span",{className:"filter-panel__title h4",children:e})]}),o.jsx("div",{className:"filter-panel__header-actions",children:!v&&t})]}),!v&&o.jsxs(o.Fragment,{children:[o.jsx("div",{className:xe("filter-panel__sections",g?"filter-panel__sections--row":""),children:c.map(x=>{const S=u[x.label],_=S===void 0||(Array.isArray(S)?S.length===0:!1),k=(x.items??[]).filter(A=>A!=null),N=A=>{const D=typeof A=="string"?A:A.value,H=typeof A!="string"&&!!A.disabled,P=typeof A!="string"?A.labels:void 0,T=typeof A!="string"?A.displayLabel:void 0,E=typeof A!="string"?A.tooltip:void 0,L=typeof A!="string"?A.descriptionTooltip:void 0,F=typeof A!="string"?A.shape:void 0,te=Array.isArray(S)?S.includes(D):S===D;return o.jsx(se,{size:"keyboard",label:P??T??D,type:x.itemType??(P?"bar":D.length===1?"dot":void 0),selected:te,disabled:H,shape:F,showTooltipInfo:!!E,tooltipInfoText:E,tooltipDescription:L,onClick:()=>d?.(D,x.label)},D)};return o.jsxs(l.Fragment,{children:[x.groupLabel&&o.jsxs("div",{className:"filter-panel__group-label-row",children:[o.jsx("div",{className:"filter-panel__group-label body-2",children:x.groupLabel}),x.groupAction]}),o.jsxs("div",{className:xe("filter-panel__section",x.layout==="row"?"filter-panel__section--row":"",x.block?"filter-panel__section--block":""),children:[o.jsxs("div",{className:"filter-panel__section-label-row",children:[o.jsx("span",{className:"filter-panel__section-label body-3",children:x.displayLabel??x.label}),x.labelAction??(x.labelInfo?o.jsx(So,{...x.labelInfo}):null)]}),x.type==="note"?o.jsx("div",{className:"filter-panel__note body-3",children:x.content}):x.type==="input"?o.jsx(Wa,{className:"filter-panel__textfield",placeholder:x.placeholder,ariaLabel:x.displayLabel??x.label,value:u[x.label]??"",onChange:A=>d?.(A,x.label),error:x.error}):!x.multiple&&x.display==="segmented"?o.jsx(Ha,{ariaLabel:x.displayLabel??x.label,options:[...x.allOption?[{key:Dt,label:x.allLabel??f("common.all","\uC804\uCCB4")}]:[],...k.map(A=>{const D=typeof A=="string"?A:A.value,H=typeof A!="string"?A.displayLabel:void 0,P=typeof A!="string"?A.disabled:void 0;return{key:D,label:H??D,disabled:P}})],value:_&&x.allOption?Dt:u[x.label],onChange:A=>d?.(A,x.label),size:32}):!x.multiple&&x.display==="dropdown"?o.jsx(Ut,{className:"filter-panel__dropdown",size:40,options:[...x.allOption?[{value:Dt,label:x.allLabel??f("common.all","\uC804\uCCB4")}]:[],...k.map(A=>{const D=typeof A=="string"?A:A.value,H=typeof A!="string"?A.displayLabel:void 0,P=typeof A!="string"?A.disabled:void 0;return{value:D,label:H??D,disabled:P}})],value:_&&x.allOption?Dt:u[x.label],onChange:A=>d?.(A,x.label)}):o.jsxs("div",{className:x.groups?"filter-panel__item-groups":"filter-panel__items",children:[x.allOption&&!x.groups&&o.jsx(se,{size:"keyboard",label:x.allLabel??f("common.all","\uC804\uCCB4"),selected:_,disabled:x.allOptionDisabled,onClick:()=>d?.(Dt,x.label)}),x.groups?x.groups.map((A,D)=>o.jsxs("div",{className:"filter-panel__item-group",children:[D===0&&x.allOption&&o.jsx(se,{size:"keyboard",label:x.allLabel??f("common.all","\uC804\uCCB4"),selected:_,disabled:x.allOptionDisabled,onClick:()=>d?.(Dt,x.label)}),A.filter(H=>H!=null).map(N)]},D)):k.map(N)]})]})]},x.label)})}),s!=null&&s!==!1&&o.jsx("div",{className:"filter-panel__footer body-3",children:s})]})]})}const yk=[1,2,3,4,5,6,7,8,9,10,11,12],xk=[8,4,2,1];function Pm(e,t){return{label:e("wordTable.filter.composition","\uAD6C\uC131"),items:[{value:"\uC774\uBBF8\uC9C0",disabled:!t.hasImage,displayLabel:e("wordTable.filter.image","\uC774\uBBF8\uC9C0")},{value:"\uB2E8\uC5B4",displayLabel:e("wordTable.filter.word","\uB2E8\uC5B4")},{value:"\uD45C\uC900 \uBC1C\uC74C",displayLabel:e("wordTable.filter.standardPron","\uD45C\uC900 \uBC1C\uC74C")},{value:"\uAD6C\uC5B4\uCCB4 \uBC1C\uC74C",disabled:!t.hasColloquial,displayLabel:e("wordTable.filter.colloquialPron","\uAD6C\uC5B4\uCCB4 \uBC1C\uC74C")}],multiple:!0,allOption:!0}}function Rm(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 $m(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 Im(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 zm(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 Om(e,t){return{label:e(t.hasPairs?"wordTable.filter.itemsPerPagePair":"wordTable.filter.itemsPerPageWord"),items:[t.itemCount,...xk.filter(a=>a<t.itemCount)].map(a=>({value:`${a}\uAC1C`,displayLabel:e("wordTable.filter.itemsPerPageOption",{count:a})})),display:"segmented"}}function Fm(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 Wm={left:"\uC67C\uCABD",center:"\uC911\uC559",right:"\uC624\uB978\uCABD",none:"\uBBF8\uD45C\uC2DC"};function Hm(e){return e==="\uC67C\uCABD"?"left":e==="\uC911\uC559"?"center":e==="\uC624\uB978\uCABD"?"right":"none"}function Vm(e,t){return{[e("wordTable.filter.composition","\uAD6C\uC131")]:t.contentTypes,[e("wordTable.filter.paperOrientation","\uC6A9\uC9C0 \uBC29\uD5A5")]:t.orientation==="landscape"?"\uAC00\uB85C":"\uC138\uB85C",[e("wordTable.filter.border","\uC678\uACFD\uC120")]:t.showOutline?"\uD45C\uC2DC":"\uBBF8\uD45C\uC2DC",[e("wordTable.filter.cutLine","\uC808\uCDE8\uC120")]:t.cutLine,[e("wordPrint.divLine","\uB300\uB9BD\uC120")]:t.showDivLine?"\uD45C\uC2DC":"\uBBF8\uD45C\uC2DC"}}function Gm(e,t,a,r){return a===e("wordTable.filter.composition","\uAD6C\uC131")?t===Dt?(r.setContentTypes(()=>[]),!0):(r.setContentTypes(n=>n.includes(t)?n.filter(i=>i!==t):[...n,t]),!0):a===e("wordTable.filter.paperOrientation","\uC6A9\uC9C0 \uBC29\uD5A5")?(r.setOrientation(t==="\uAC00\uB85C"?"landscape":"portrait"),!0):a===e("wordTable.filter.border","\uC678\uACFD\uC120")?(r.setShowOutline(t==="\uD45C\uC2DC"),!0):a===e("wordTable.filter.cutLine","\uC808\uCDE8\uC120")?(r.setCutLine(t),!0):a===e("wordPrint.divLine","\uB300\uB9BD\uC120")?(r.setShowDivLine(t==="\uD45C\uC2DC"),!0):!1}function Ck(e){return"sections"in e}function Bn(e){const{t}=ge.useTranslation(),{title:a,className:r}=e;if(Ck(e))return o.jsx(va,{className:r,title:a??t("wordTable.filterTitle","\uD45C \uC124\uC815"),sections:e.sections,selected:e.selected,onSelect:e.onSelect,align:"inline"});const{hasImage:n,hasColloquial:i,contentTypes:s,orientation:c,showOutline:u,cutLine:d,showDivLine:p,setters:m,showCutLine:h=!1,showDivLine2:g=!1,middleSections:f=[],extraSelected:b={},onExtraSelect:y}=e,v=[Pm(t,{hasImage:n,hasColloquial:i}),Rm(t),...f,$m(t),...h?[Im(t)]:[],...g?[zm(t)]:[]],C={...Vm(t,{contentTypes:s,orientation:c,showOutline:u,cutLine:d,showDivLine:p}),...b},w=(x,S)=>{Gm(t,x,S,m)||y?.(x,S)};return o.jsx(va,{className:r,title:a??t("wordTable.filterTitle","\uD45C \uC124\uC815"),sections:v,selected:C,onSelect:w,sectionAlign:"horizontal"})}function qm(e){return e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">")}function sc(e){return e.replace(/[\\/:*?"<>|]/g,"_").trim()}function _k(e,t,a,r="",n=""){if(e.length===0)return;const i=r?sc(r):"";if(i){const u=document.title;document.title=i;const d=()=>{document.title=u,window.removeEventListener("afterprint",d)};window.addEventListener("afterprint",d)}const s=document.createElement("iframe");s.style.cssText="position:fixed;left:-10000px;top:0;width:1200px;height:900px;border:0;",document.body.appendChild(s);const c=s.contentDocument;if(!c){s.remove();return}c.open(),c.write(lc(e,t,a,!0,i,n)),c.close(),s.contentWindow?.addEventListener("afterprint",()=>setTimeout(()=>s.remove(),0))}function lc(e,t,a,r=!1,n="",i=""){n=n?sc(n):"";const s=Array.from(document.styleSheets).flatMap(p=>{try{return Array.from(p.cssRules).map(m=>m.cssText)}catch{return[]}}).join(`
|
|
847
|
+
!important\uAC00 \uBD88\uAC00\uD53C(\uC778\uB77C\uC778 \uC2A4\uD0C0\uC77C\uC740 !important \uC5C6\uC774\uB294 \uC774\uAE38 \uC218 \uC5C6\uC74C). */.ihabdevteam-core-scope .word-table{background:#fbfdff;border:none;box-shadow:none;inset:0;margin:0!important;padding:15mm;position:fixed;transform:none!important}.ihabdevteam-core-scope .word-table-block__card-close,.ihabdevteam-core-scope .word-table-cell__info-button,.ihabdevteam-core-scope .word-table-cell__play-button,.ihabdevteam-core-scope .word-table-cell__spinner{display:none}}.ihabdevteam-core-scope .word-table-cell__score{bottom:16px;display:flex;gap:4px;left:50%;position:absolute;transform:translateX(-50%);z-index:1}.ihabdevteam-core-scope .word-table-cell__score-slot{display:none}.ihabdevteam-core-scope .word-table-block__card:hover .word-table-cell__score-slot,.ihabdevteam-core-scope .word-table-block__edit-cell:focus-within .word-table-cell__score-slot,.ihabdevteam-core-scope .word-table-block__edit-cell:hover .word-table-cell__score-slot,.ihabdevteam-core-scope .word-table-cell__score-slot--on,.ihabdevteam-core-scope .word-table-cell__score:focus-within .word-table-cell__score-slot{display:inline-flex}@media print{.ihabdevteam-core-scope .word-table-block__card:hover .word-table-cell__score-slot:not(.word-table-cell__score-slot--on),.ihabdevteam-core-scope .word-table-block__edit-cell:hover .word-table-cell__score-slot:not(.word-table-cell__score-slot--on){display:none}}.ihabdevteam-core-scope .word-table-cell__score .button--variant-main.is-selected,.ihabdevteam-core-scope .word-table-cell__score .button--variant-main[aria-pressed=true]{background:var(--color-main);border-color:var(--color-main)}.ihabdevteam-core-scope .word-table-cell__score .button--variant-warn.is-selected,.ihabdevteam-core-scope .word-table-cell__score .button--variant-warn[aria-pressed=true]{--button-icon-color:#fff;background:var(--color-warn);border-color:var(--color-warn)}`;J(lk);const io={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 Em(e="landscape"){const{printSize:t,printW:a,printH:r}=io[e],n=document.createElement("style");n.textContent=`@page { size: ${t}; margin: 0; } .word-table { width: ${a} !important; height: ${r} !important; }`,document.head.appendChild(n);const i=()=>{document.head.removeChild(n),window.removeEventListener("afterprint",i)};window.addEventListener("afterprint",i),window.print()}function jm(e,t){if(e.length===0)return[[]];const a=Math.max(1,Math.floor(t)),r=[];for(let n=0;n<e.length;n+=a)r.push(e.slice(n,n+a));return r}const ck={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 dk(e,t){const a=ck[e][t];if(a)return a;const r=Math.max(1,Math.ceil(t)),n=Math.max(1,Math.ceil(Math.sqrt(r*.707)));let i,s;return e==="landscape"?(s=n,i=Math.ceil(r/s)):(i=n,s=Math.ceil(r/i)),(e==="landscape"?i<s:s<i)&&([i,s]=[s,i]),{cols:i,rows:s}}const uk={\uD45C\uC2DC:"word-table-block__content--cut-show",\uC810\uC120:"",\uCF54\uB108:"word-table-block__content--cut-corner",\uBBF8\uD45C\uC2DC:""},rc={\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"},nc={\uACE0\uC720:"\uACE0\uC720\uC5B4",\uD55C\uC790:"\uD55C\uC790\uC5B4",\uC678\uB798:"\uC678\uB798\uC5B4",\uD63C\uC885:"\uD63C\uC885\uC5B4"};function Tn(e,t){return e?e.split("/").map(a=>t[a]??a).join("/"):""}function Lm(e,t,a,r){if(r!=="\uC810\uC120")return{};const n=e%t,i=Math.floor(e/t),s=n<t-1,c=i<a-1;if(!s&&!c)return{};const u="#ddd",d=g=>`repeating-linear-gradient(to ${g}, ${u} 0, ${u} 5px, transparent 5px, transparent 10px)`,p=[],m=[],h=[];return s&&(p.push(d("bottom")),m.push("1px 100%"),h.push("right center")),c&&(p.push(d("right")),m.push("100% 1px"),h.push("center bottom")),{backgroundImage:p.join(", "),backgroundSize:m.join(", "),backgroundPosition:h.join(", "),backgroundRepeat:"no-repeat",printColorAdjust:"exact",WebkitPrintColorAdjust:"exact"}}const pk=280,hk=240,mk=280,bk=400,gk=120,fk=280;function ic(e,t){const a=l.useRef(null),[r,n]=l.useState(1),[i,s]=l.useState(0),c=l.useCallback((u,d)=>{const p=u/e,m=t?d/t:1/0,h=Math.min(1,p,m);n(h),s(Math.max(0,(u-e*h)/2))},[e,t]);return l.useEffect(()=>{const u=a.current;if(!u)return;const d=t?u.parentElement??u:u;if(c(d.clientWidth,d.clientHeight),typeof ResizeObserver>"u")return;const p=new ResizeObserver(([m])=>c(m.contentRect.width,m.contentRect.height));return p.observe(d),()=>p.disconnect()},[c,t]),{scalerRef:a,scale:r,offset:i}}let Ba=null;function Mm({label:e,subLabel:t,colloquialLabel:a,homonum:r,showWord:n=!0,showImage:i=!0,showPronunciation:s=!0,showColloquial:c=!0,buttonSize:u=40,wordInfo:d}){const{t:p}=ge.useTranslation(),m=l.useRef(null),h=l.useRef(null),g=l.useRef(null),[f,b]=l.useState(1),[y,v]=l.useState(!1),[C,w]=l.useState(""),[x,S]=l.useState(null),_=t&&t.length>0?t:ri()?.(e,r)??"",k=Ma()?.(e,r)??"",{imgRef:N,loading:A,failed:D,onLoad:H,onError:P}=Ql(k),T=l.useCallback(()=>S(h.current?.getBoundingClientRect()??null),[]),E=l.useCallback(()=>S(null),[]),L=l.useMemo(()=>{if(!d)return null;const j=[];return d.grade&&j.push(`\uB09C\uC774\uB3C4: ${d.grade}\uB4F1\uAE09`),d.syllables&&j.push(`\uC74C\uC808 \uC218: ${d.syllables}\uC74C\uC808`),d.pos&&j.push(`\uD488\uC0AC: ${Tn(d.pos,rc)}`),d.wordType&&j.push(`\uC720\uD615: ${Tn(d.wordType,nc)}`),j.length?j:null},[d]);l.useEffect(()=>{const j=Fo(),M=_||e;if(!j||!M)return;let $=!1;return Promise.resolve(j(M)).then(W=>{!$&&W&&w(W)}),()=>{$=!0}},[_,e]),l.useEffect(()=>()=>{g.current?.pause(),Ba?.audio===g.current&&(Ba=null)},[]);const F=l.useCallback(async j=>{if(j.stopPropagation(),y){g.current?.pause(),v(!1),Ba=null;return}if(C){Ba?.stop(),v(!0);try{const M=new Audio(C);g.current=M;const $=()=>{v(!1),Ba?.audio===M&&(Ba=null)};Ba={audio:M,stop:()=>{M.pause(),$()}},M.onended=$,M.onerror=$,await M.play()}catch{v(!1),Ba?.audio===g.current&&(Ba=null)}}},[y,C]),te=i&&!!k&&!D,Z=te&&n?pk:te?mk:hk,V=te&&n?bk:te?fk:gk;return l.useEffect(()=>{const j=m.current;if(!j||typeof ResizeObserver>"u")return;const M=new ResizeObserver(([$])=>{const{width:W,height:q}=$.contentRect;b(Math.min(W/Z,q/V))});return M.observe(j),()=>M.disconnect()},[Z,V]),o.jsxs("div",{ref:m,className:"word-table-cell",children:[o.jsxs("div",{className:"word-table-cell__inner",style:{transform:`scale(${f})`},children:[te&&o.jsxs("div",{className:"word-table-cell__image-wrap",children:[A&&o.jsx("div",{className:"word-table-cell__spinner"}),o.jsx("img",{ref:N,className:"word-table-cell__image",src:k,alt:e,draggable:!1,style:{opacity:A?0:1},onLoad:H,onError:P})]}),n&&o.jsx("span",{className:"word-table-cell__word h0",children:e}),s&&_&&o.jsxs("span",{className:"word-table-cell__sub h3",children:["[",_,"]"]}),c&&a&&o.jsxs("span",{className:"word-table-cell__colloquial h5",children:["[",a,"]"]})]}),o.jsxs("div",{className:"word-table-cell__play-button","data-audio-src":C,children:[o.jsx("span",{"data-play-state":"play",style:{display:y?"none":void 0},children:o.jsx(se,{size:u,type:"dot",icon:"play",variant:"transparent-lightGray",useBorder:!1,showTooltipInfo:p("common.play","\uC7AC\uC0DD"),onClick:F})}),o.jsx("span",{"data-play-state":"pause",style:{display:y?void 0:"none"},children:o.jsx(se,{size:u,type:"dot",icon:"pause",useBorder:!1,selected:!0,showTooltipInfo:p("common.pause","\uBA48\uCDA4"),onClick:F})})]}),d&&o.jsxs("div",{ref:h,className:"word-table-cell__info-button",onPointerEnter:T,onPointerLeave:E,onFocus:T,onBlur:E,children:[o.jsx(se,{size:u,type:"dot",icon:"info",variant:"transparent-lightGray",useBorder:!1,showTooltipInfo:!1,ariaLabel:p("wordTable.wordInfo","{{word}} \uB0B1\uB9D0 \uC815\uBCF4",{word:e}),onClick:j=>j.stopPropagation()}),x&&L&&o.jsx(to,{anchorRect:x,items:L,showIndex:!1})]})]})}function so({title:e,titleIcon:t,disc:a,className:r,orientation:n="landscape",contentTypes:i=["\uC774\uBBF8\uC9C0","\uB2E8\uC5B4","\uD45C\uC900 \uBC1C\uC74C"],cutLine:s="\uD45C\uC2DC",showOutline:c=!0,showDivLine:u=!0,items:d,editCells:p,count:m,activeCell:h=null,onActivateCell:g,onRemoveCell:f,onRemoveItem:b,onReorder:y,showFillerAdd:v=!1,contentRef:C,buttonSize:w=40,pageNumber:x,pageNumberPosition:S="right",fitHeight:_=!1,scoring:k=!1,marks:N,onMarkClick:A,scoreIndexOffset:D=0}){const H=l.useCallback((me,ce)=>{A?.(D+me,ce)},[A,D]),P=(me,ce)=>{const I=N?.[_r(D+me)]??null;return o.jsx("div",{className:xe("word-table-cell__score",I?"word-table-cell__score--marked":""),children:Jl.map(ee=>o.jsx("span",{className:xe("word-table-cell__score-slot",I===ee?"word-table-cell__score-slot--on":""),children:o.jsx(se,{size:w,type:"dot",icon:tc[ee],variant:I===ee?ac[ee]:"default",selected:I===ee,useBorder:!1,showTooltipInfo:!1,ariaLabel:T(`wordTable.scoring.${ee}`,{word:ce,defaultValue:`${ce} ${ee}`}),onClick:pe=>{pe.stopPropagation(),H(me,ee)}})},ee))})},{t:T}=ge.useTranslation(),E=p!==void 0,L=l.useRef(null),[F,te]=l.useState(null),{width:Z,height:V}=io[n],{scalerRef:j,scale:M,offset:$}=ic(Z,_?V:void 0),W=E?p?.length??0:d?.length??0,q=Math.max(m??W,1),{cols:X,rows:O}=dk(n,q),Y={word:i.length===0||i.includes("\uB2E8\uC5B4"),image:i.length===0||i.includes("\uC774\uBBF8\uC9C0"),pron:i.length===0||i.includes("\uD45C\uC900 \uBC1C\uC74C"),colloq:i.length===0||i.includes("\uAD6C\uC5B4\uCCB4 \uBC1C\uC74C")},z=E?(p??[]).some(me=>me!==null&&me.length>1):(d??[]).some(me=>me.words.length>1),re=xe("word-table-block__content",uk[s],c&&"word-table-block__content--outline",u&&z&&"word-table-block__content--div-line"),Q={transform:`scale(${1/M})`,transformOrigin:"center center"},ne=o.jsx("div",{ref:j,className:"word-table__scaler",style:{height:V*M},children:o.jsx("div",{className:xe("word-table",r),style:{width:Z,height:V,transform:`scale(${M})`,transformOrigin:"top left",marginLeft:$},children:o.jsxs("div",{ref:C,className:re,style:{gridTemplateColumns:`repeat(${X}, 1fr)`,gridTemplateRows:`repeat(${O}, 1fr)`},children:[E?o.jsx(o.Fragment,{children:(p??[]).map((me,ce)=>o.jsx("div",{className:xe("word-table-block__edit-cell",me?"word-table-block__edit-cell--filled":"word-table-block__edit-cell--empty",h===ce?"word-table-block__edit-cell--active":""),style:Lm(ce,X,O,s),children:me?o.jsxs(o.Fragment,{children:[me.map((I,ee)=>o.jsxs(l.Fragment,{children:[ee>0&&o.jsx("div",{className:"word-table-block__pair-divider"}),o.jsx(Mm,{label:I.word,subLabel:I.pronunciation,homonum:I.homonum,showWord:Y.word,showImage:Y.image,showPronunciation:Y.pron,showColloquial:Y.colloq,buttonSize:w})]},ee)),k&&P(ce,me.map(I=>I.word).join(" / ")),f&&o.jsx("div",{className:"word-table-block__card-close",children:o.jsx(se,{size:w,type:"dot",icon:"x",variant:"transparent-lightGray",useBorder:!1,showTooltipInfo:me.length>1?T("wordPrint.removePair","\uB300\uB9BD\uC30D \uBE7C\uAE30"):T("wordPrint.removeWord","\uB2E8\uC5B4 \uBE7C\uAE30"),ariaLabel:me.length>1?T("wordPrint.removePair","\uB300\uB9BD\uC30D \uBE7C\uAE30"):T("wordPrint.removeWord","\uB2E8\uC5B4 \uBE7C\uAE30"),onClick:()=>f(ce)})})]}):g&&o.jsx("div",{style:Q,children:o.jsx(se,{size:"48",type:"bar",icon:"plus",label:T("wordTable.addWord","\uCD94\uAC00\uD558\uAE30"),onClick:()=>g(ce)})})},ce))}):o.jsxs(o.Fragment,{children:[(d??[]).map((me,ce)=>o.jsxs("div",{className:`word-table-block__card${y?" word-table-block__card--draggable":""}${F===ce?" word-table-block__card--drag-over":""}`,style:Lm(ce,X,O,s),draggable:!!y,onDragStart:y?()=>{L.current=ce}:void 0,onDragOver:y?I=>{I.preventDefault(),te(ce)}:void 0,onDragLeave:y?()=>te(null):void 0,onDrop:y?I=>{I.preventDefault(),L.current!==null&&L.current!==ce&&y(L.current,ce),L.current=null,te(null)}:void 0,onDragEnd:y?()=>{L.current=null,te(null)}:void 0,children:[me.words.map((I,ee)=>o.jsxs(l.Fragment,{children:[ee>0&&o.jsx("div",{className:"word-table-block__pair-divider"}),o.jsx(Mm,{label:I.label,subLabel:I.subLabel,colloquialLabel:I.colloquialLabel,homonum:I.homonum,showWord:Y.word,showImage:Y.image,showPronunciation:Y.pron,showColloquial:Y.colloq,buttonSize:w,wordInfo:I.grade||I.syllables!=null||I.pos||I.wordType?{grade:I.grade,syllables:I.syllables,pos:I.pos,wordType:I.wordType}:void 0})]},ee)),k&&P(ce,me.words.map(I=>I.label).join(" / ")),b&&o.jsx("div",{className:"word-table-block__card-close",children:o.jsx(se,{size:w,type:"dot",icon:"x",variant:"transparent-lightGray",useBorder:!1,showTooltipInfo:me.words.length>1?T("wordPrint.removePair","\uB300\uB9BD\uC30D \uBE7C\uAE30"):T("wordPrint.removeWord","\uB2E8\uC5B4 \uBE7C\uAE30"),ariaLabel:me.words.length>1?T("wordPrint.removePair","\uB300\uB9BD\uC30D \uBE7C\uAE30"):T("wordPrint.removeWord","\uB2E8\uC5B4 \uBE7C\uAE30"),onClick:()=>b(me.id)})})]},me.id)),Array.from({length:Math.max(0,X*O-(d?.length??0))}).map((me,ce)=>{const I=(d?.length??0)+ce<q;return o.jsx("div",{className:"word-table-block__card word-table-block__card--filler",children:v&&g&&I&&o.jsx("div",{style:Q,children:o.jsx(se,{size:w,type:"bar",icon:"plus",label:T("wordTable.addWord","\uCD94\uAC00\uD558\uAE30"),onClick:()=>g((d?.length??0)+ce)})})},`filler-${ce}`)})]}),x&&S!=="none"&&o.jsx("span",{className:`word-table__page-number body-3 word-table__page-number--${S}`,children:T("wordTable.filter.pageIndicator",{current:x.current,total:x.total})})]})})});return e!=null||t||a?o.jsx(no,{type:"page",icon:t,title:e,disc:a,className:xe("word-table-block",r),children:ne}):ne}var vk=".ihabdevteam-core-scope .filter-panel{background:var(--color-white);border:1px solid var(--color-darkWhite);border-radius:var(--radius-m);display:flex;flex-direction:column;gap:var(--spacing-m);min-width:200px;padding:var(--spacing-l)}.ihabdevteam-core-scope .filter-panel__header{align-items:center;display:flex;justify-content:space-between}.ihabdevteam-core-scope .filter-panel--collapsible{padding-bottom:0;padding-top:0}.ihabdevteam-core-scope .filter-panel--collapsible .filter-panel__header{flex-shrink:0;min-height:60px}.ihabdevteam-core-scope .filter-panel--collapsible .filter-panel__sections{padding-bottom:var(--spacing-m)}.ihabdevteam-core-scope .filter-panel__footer{border-top:1px solid var(--color-darkWhite);color:var(--color-gray);padding-bottom:var(--spacing-l);padding-top:var(--spacing-m)}.ihabdevteam-core-scope .filter-panel__title{display:block;text-align:left}.ihabdevteam-core-scope .filter-panel__title-row{align-items:center;display:flex;gap:var(--spacing-xs);min-width:0}.ihabdevteam-core-scope .filter-panel__header-actions{align-items:center;display:flex;gap:var(--spacing-xs);margin-left:auto}.ihabdevteam-core-scope .filter-panel__section{align-items:flex-start;display:flex;flex-direction:column;gap:var(--spacing-xs)}.ihabdevteam-core-scope .filter-panel__section-label-row{align-items:center;display:flex;justify-content:space-between}.ihabdevteam-core-scope .filter-panel__section-label{color:var(--color-darkGray);margin:0;text-align:left}.ihabdevteam-core-scope .filter-panel__sections{display:flex;flex-direction:column;gap:var(--spacing-m)}.ihabdevteam-core-scope .filter-panel__sections--row{align-items:flex-start;flex-direction:row;flex-wrap:wrap;gap:16px 32px}.ihabdevteam-core-scope .filter-panel__group-label-row{align-items:center;display:flex;flex-basis:100%;gap:var(--spacing-s);justify-content:space-between;padding-top:var(--spacing-xs);width:100%}.ihabdevteam-core-scope .filter-panel__group-label{color:var(--color-darkGray);margin:0;text-align:left}.ihabdevteam-core-scope .filter-panel__section--row{align-items:center;flex-direction:row;gap:var(--spacing-s)}.ihabdevteam-core-scope .filter-panel__section--row .filter-panel__section-label-row{flex:0 0 auto;min-width:44px}.ihabdevteam-core-scope .filter-panel__sections--row .filter-panel__section--row{flex:0 0 auto;max-width:100%}.ihabdevteam-core-scope .filter-panel__sections--row .filter-panel__section--block{flex-basis:100%}.ihabdevteam-core-scope .filter-panel__items{display:flex;flex-wrap:wrap;gap:var(--spacing-xs)}.ihabdevteam-core-scope .filter-panel__item-groups{-moz-column-gap:var(--spacing-xl);column-gap:var(--spacing-xl);display:flex;flex-wrap:wrap;row-gap:var(--spacing-xs)}.ihabdevteam-core-scope .filter-panel__item-group{display:flex;flex-wrap:wrap;gap:var(--spacing-xs)}.ihabdevteam-core-scope .filter-panel__note{color:var(--color-darkGray);text-align:left;width:100%}.ihabdevteam-core-scope .filter-panel__note-list{display:flex;flex-direction:column;gap:4px;margin:0;padding-left:18px}.ihabdevteam-core-scope .filter-panel__textfield{min-width:200px}.ihabdevteam-core-scope .filter-panel__dropdown{min-width:180px}@media (max-width:767px){.ihabdevteam-core-scope .filter-panel__textfield{min-width:0;width:100%}}";J(vk);function va({title:e,headerAction:t,collapsible:a=!1,defaultCollapsed:r=!1,collapsed:n,onCollapsedChange:i,footer:s,sections:c,selected:u={},onSelect:d,align:p,sectionAlign:m,className:h}){const g=(p??(m==="vertical"?"newline":"inline"))==="inline",{t:f}=ge.useTranslation(),[b,y]=l.useState(r),v=n??b,C=()=>{const x=!v;y(x),i?.(x)},w=e||t||a;return o.jsxs("div",{className:xe("filter-panel",a?"filter-panel--collapsible":"",v?"filter-panel--collapsed":"",h),children:[w&&o.jsxs("div",{className:"filter-panel__header",children:[o.jsxs("div",{className:"filter-panel__title-row",children:[a&&o.jsx(se,{size:40,type:"dot",variant:"transparent-gray",useBorder:!1,icon:v?"chevron-down":"chevron-up",ariaLabel:v?f("common.expand","\uD3BC\uCE58\uAE30"):f("common.collapse","\uC811\uAE30"),"aria-expanded":!v,onClick:C}),e&&o.jsx("span",{className:"filter-panel__title h4",children:e})]}),o.jsx("div",{className:"filter-panel__header-actions",children:!v&&t})]}),!v&&o.jsxs(o.Fragment,{children:[o.jsx("div",{className:xe("filter-panel__sections",g?"filter-panel__sections--row":""),children:c.map(x=>{const S=u[x.label],_=S===void 0||(Array.isArray(S)?S.length===0:!1),k=(x.items??[]).filter(A=>A!=null),N=A=>{const D=typeof A=="string"?A:A.value,H=typeof A!="string"&&!!A.disabled,P=typeof A!="string"?A.labels:void 0,T=typeof A!="string"?A.displayLabel:void 0,E=typeof A!="string"?A.tooltip:void 0,L=typeof A!="string"?A.descriptionTooltip:void 0,F=typeof A!="string"?A.shape:void 0,te=Array.isArray(S)?S.includes(D):S===D;return o.jsx(se,{size:"keyboard",label:P??T??D,type:x.itemType??(P?"bar":D.length===1?"dot":void 0),selected:te,disabled:H,shape:F,showTooltipInfo:!!E,tooltipInfoText:E,tooltipDescription:L,onClick:()=>d?.(D,x.label)},D)};return o.jsxs(l.Fragment,{children:[x.groupLabel&&o.jsxs("div",{className:"filter-panel__group-label-row",children:[o.jsx("div",{className:"filter-panel__group-label body-2",children:x.groupLabel}),x.groupAction]}),o.jsxs("div",{className:xe("filter-panel__section",x.layout==="row"?"filter-panel__section--row":"",x.block?"filter-panel__section--block":""),children:[o.jsxs("div",{className:"filter-panel__section-label-row",children:[o.jsx("span",{className:"filter-panel__section-label body-3",children:x.displayLabel??x.label}),x.labelAction??(x.labelInfo?o.jsx(So,{...x.labelInfo}):null)]}),x.type==="note"?o.jsx("div",{className:"filter-panel__note body-3",children:x.content}):x.type==="input"?o.jsx(Wa,{className:"filter-panel__textfield",placeholder:x.placeholder,ariaLabel:x.displayLabel??x.label,value:u[x.label]??"",onChange:A=>d?.(A,x.label),error:x.error}):!x.multiple&&x.display==="segmented"?o.jsx(Ha,{ariaLabel:x.displayLabel??x.label,options:[...x.allOption?[{key:Dt,label:x.allLabel??f("common.all","\uC804\uCCB4")}]:[],...k.map(A=>{const D=typeof A=="string"?A:A.value,H=typeof A!="string"?A.displayLabel:void 0,P=typeof A!="string"?A.disabled:void 0;return{key:D,label:H??D,disabled:P}})],value:_&&x.allOption?Dt:u[x.label],onChange:A=>d?.(A,x.label),size:32}):!x.multiple&&x.display==="dropdown"?o.jsx(Ut,{className:"filter-panel__dropdown",size:40,options:[...x.allOption?[{value:Dt,label:x.allLabel??f("common.all","\uC804\uCCB4")}]:[],...k.map(A=>{const D=typeof A=="string"?A:A.value,H=typeof A!="string"?A.displayLabel:void 0,P=typeof A!="string"?A.disabled:void 0;return{value:D,label:H??D,disabled:P}})],value:_&&x.allOption?Dt:u[x.label],onChange:A=>d?.(A,x.label)}):o.jsxs("div",{className:x.groups?"filter-panel__item-groups":"filter-panel__items",children:[x.allOption&&!x.groups&&o.jsx(se,{size:"keyboard",label:x.allLabel??f("common.all","\uC804\uCCB4"),selected:_,disabled:x.allOptionDisabled,onClick:()=>d?.(Dt,x.label)}),x.groups?x.groups.map((A,D)=>o.jsxs("div",{className:"filter-panel__item-group",children:[D===0&&x.allOption&&o.jsx(se,{size:"keyboard",label:x.allLabel??f("common.all","\uC804\uCCB4"),selected:_,disabled:x.allOptionDisabled,onClick:()=>d?.(Dt,x.label)}),A.filter(H=>H!=null).map(N)]},D)):k.map(N)]})]})]},x.label)})}),s!=null&&s!==!1&&o.jsx("div",{className:"filter-panel__footer body-3",children:s})]})]})}const yk=[1,2,3,4,5,6,7,8,9,10,11,12],xk=[8,4,2,1];function Pm(e,t){return{label:e("wordTable.filter.composition","\uAD6C\uC131"),items:[{value:"\uC774\uBBF8\uC9C0",disabled:!t.hasImage,displayLabel:e("wordTable.filter.image","\uC774\uBBF8\uC9C0")},{value:"\uB2E8\uC5B4",displayLabel:e("wordTable.filter.word","\uB2E8\uC5B4")},{value:"\uD45C\uC900 \uBC1C\uC74C",displayLabel:e("wordTable.filter.standardPron","\uD45C\uC900 \uBC1C\uC74C")},{value:"\uAD6C\uC5B4\uCCB4 \uBC1C\uC74C",disabled:!t.hasColloquial,displayLabel:e("wordTable.filter.colloquialPron","\uAD6C\uC5B4\uCCB4 \uBC1C\uC74C")}],multiple:!0,allOption:!0}}function Rm(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 $m(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 Im(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 zm(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 Om(e,t){return{label:e(t.hasPairs?"wordTable.filter.itemsPerPagePair":"wordTable.filter.itemsPerPageWord"),items:[t.itemCount,...xk.filter(a=>a<t.itemCount)].map(a=>({value:`${a}\uAC1C`,displayLabel:e("wordTable.filter.itemsPerPageOption",{count:a})})),display:"segmented"}}function Fm(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 Wm={left:"\uC67C\uCABD",center:"\uC911\uC559",right:"\uC624\uB978\uCABD",none:"\uBBF8\uD45C\uC2DC"};function Hm(e){return e==="\uC67C\uCABD"?"left":e==="\uC911\uC559"?"center":e==="\uC624\uB978\uCABD"?"right":"none"}function Vm(e,t){return{[e("wordTable.filter.composition","\uAD6C\uC131")]:t.contentTypes,[e("wordTable.filter.paperOrientation","\uC6A9\uC9C0 \uBC29\uD5A5")]:t.orientation==="landscape"?"\uAC00\uB85C":"\uC138\uB85C",[e("wordTable.filter.border","\uC678\uACFD\uC120")]:t.showOutline?"\uD45C\uC2DC":"\uBBF8\uD45C\uC2DC",[e("wordTable.filter.cutLine","\uC808\uCDE8\uC120")]:t.cutLine,[e("wordPrint.divLine","\uB300\uB9BD\uC120")]:t.showDivLine?"\uD45C\uC2DC":"\uBBF8\uD45C\uC2DC"}}function Gm(e,t,a,r){return a===e("wordTable.filter.composition","\uAD6C\uC131")?t===Dt?(r.setContentTypes(()=>[]),!0):(r.setContentTypes(n=>n.includes(t)?n.filter(i=>i!==t):[...n,t]),!0):a===e("wordTable.filter.paperOrientation","\uC6A9\uC9C0 \uBC29\uD5A5")?(r.setOrientation(t==="\uAC00\uB85C"?"landscape":"portrait"),!0):a===e("wordTable.filter.border","\uC678\uACFD\uC120")?(r.setShowOutline(t==="\uD45C\uC2DC"),!0):a===e("wordTable.filter.cutLine","\uC808\uCDE8\uC120")?(r.setCutLine(t),!0):a===e("wordPrint.divLine","\uB300\uB9BD\uC120")?(r.setShowDivLine(t==="\uD45C\uC2DC"),!0):!1}function Ck(e){return"sections"in e}function Bn(e){const{t}=ge.useTranslation(),{title:a,className:r}=e;if(Ck(e))return o.jsx(va,{className:r,title:a??t("wordTable.filterTitle","\uD45C \uC124\uC815"),sections:e.sections,selected:e.selected,onSelect:e.onSelect,align:"inline"});const{hasImage:n,hasColloquial:i,contentTypes:s,orientation:c,showOutline:u,cutLine:d,showDivLine:p,setters:m,showCutLine:h=!1,showDivLine2:g=!1,middleSections:f=[],extraSelected:b={},onExtraSelect:y}=e,v=[Pm(t,{hasImage:n,hasColloquial:i}),Rm(t),...f,$m(t),...h?[Im(t)]:[],...g?[zm(t)]:[]],C={...Vm(t,{contentTypes:s,orientation:c,showOutline:u,cutLine:d,showDivLine:p}),...b},w=(x,S)=>{Gm(t,x,S,m)||y?.(x,S)};return o.jsx(va,{className:r,title:a??t("wordTable.filterTitle","\uD45C \uC124\uC815"),sections:v,selected:C,onSelect:w,sectionAlign:"horizontal"})}function qm(e){return e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">")}function sc(e){return e.replace(/[\\/:*?"<>|]/g,"_").trim()}function _k(e,t,a,r="",n=""){if(e.length===0)return;const i=r?sc(r):"";if(i){const u=document.title;document.title=i;const d=()=>{document.title=u,window.removeEventListener("afterprint",d)};window.addEventListener("afterprint",d)}const s=document.createElement("iframe");s.style.cssText="position:fixed;left:-10000px;top:0;width:1200px;height:900px;border:0;",document.body.appendChild(s);const c=s.contentDocument;if(!c){s.remove();return}c.open(),c.write(lc(e,t,a,!0,i,n)),c.close(),s.contentWindow?.addEventListener("afterprint",()=>setTimeout(()=>s.remove(),0))}function lc(e,t,a,r=!1,n="",i=""){n=n?sc(n):"";const s=Array.from(document.styleSheets).flatMap(p=>{try{return Array.from(p.cssRules).map(m=>m.cssText)}catch{return[]}}).join(`
|
|
848
848
|
`),c=document.documentElement.getAttribute("data-theme")||"light",u=i?`<div class="paper-head">${qm(i)}</div>`:"",d=e.map(p=>{const m=p.cloneNode(!0);return m.querySelectorAll('[data-play-state="play"]').forEach(h=>h.style.display=""),m.querySelectorAll('[data-play-state="pause"]').forEach(h=>h.style.display="none"),m.querySelectorAll(".word-table-cell__score-slot:not(.word-table-cell__score-slot--on)").forEach(h=>h.remove()),`<div class="paper-wrap">${u}${m.outerHTML}</div>`}).join(`
|
|
849
849
|
`);return`<!DOCTYPE html>
|
|
850
850
|
<html data-theme="${c}">
|
|
@@ -971,16 +971,16 @@ ${v.badge}`:v.badge:void 0;if(w&&s(v.code))return null;if(!v.badge&&!c)return u(
|
|
|
971
971
|
`:""}
|
|
972
972
|
<\/script>
|
|
973
973
|
</body>
|
|
974
|
-
</html>`}function Nn({getElements:e,paperW:t,paperH:a,fileName:r="",onPopupBlocked:n,header:i=""}){const s=l.useCallback(()=>{_k(e(),t,a,r,i)},[e,t,a,r,i]),c=l.useCallback(()=>{const d=e();if(d.length===0)return;const p=window.open("","_blank");if(!p){n?.();return}p.document.write(lc(d,t,a,!1,r,i)),p.document.close()},[e,t,a,r,n,i]),u=l.useCallback(()=>{const d=e();if(d.length===0)return;const p=lc(d,t,a,!1,r,i),m=new Blob([p],{type:"text/html;charset=utf-8"}),h=URL.createObjectURL(m),g=r&&sc(r),f=Object.assign(document.createElement("a"),{href:h,download:`${g}.html`});document.body.appendChild(f),f.click(),document.body.removeChild(f),URL.revokeObjectURL(h)},[e,t,a,r,i]);return{print:s,openNewWindow:c,downloadHtml:u}}function cc(e){const{t}=ge.useTranslation(),[a,r]=l.useState("landscape"),[n,i]=l.useState(["\uC774\uBBF8\uC9C0","\uB2E8\uC5B4","\uD45C\uC900 \uBC1C\uC74C"]),[s,c]=l.useState("\uD45C\uC2DC"),[u,d]=l.useState(!0),[p,m]=l.useState(!0),[h,g]=l.useState(8),[f,b]=l.useState("right"),y=e.length,v=e.some(P=>P.words.length>1),C=e.some(P=>P.words.some(T=>!!T.colloquialLabel)),w=Math.min(h,Math.max(y,1)),x=l.useMemo(()=>jm(e,w),[e,w]),S=x.length>1,_=w,[k,N]=l.useState(!1);l.useEffect(()=>{let P=!1;if(!Ma()){N(!1);return}return Promise.all(e.flatMap(T=>T.words.map(E=>Yo(E.label,E.homonum)))).then(T=>{P||N(T.some(Boolean))}),()=>{P=!0}},[e]);const A=l.useMemo(()=>[Pm(t,{hasImage:k,hasColloquial:C}),Rm(t),...y>0?[Om(t,{hasPairs:v,itemCount:y})]:[],...S?[Fm(t)]:[],$m(t),..._>1?[Im(t)]:[],...v?[zm(t)]:[]],[t,k,C,y,v,S,_]),D={...Vm(t,{contentTypes:n,orientation:a,showOutline:u,cutLine:s,showDivLine:p}),...y>0?{[t(v?"wordTable.filter.itemsPerPagePair":"wordTable.filter.itemsPerPageWord")]:`${w}\uAC1C`}:{},...S?{[t("wordTable.filter.pageNumber","\uD398\uC774\uC9C0 \uBC88\uD638")]:Wm[f]}:{}},H=l.useCallback((P,T)=>{Gm(t,P,T,{setContentTypes:i,setOrientation:r,setShowOutline:d,setCutLine:c,setShowDivLine:m})||(T===t("wordTable.filter.itemsPerPagePair","\uD398\uC774\uC9C0\uB2F9 \uB300\uB9BD\uC30D \uC218")||T===t("wordTable.filter.itemsPerPageWord","\uD398\uC774\uC9C0\uB2F9 \uB2E8\uC5B4 \uC218")?g(parseInt(P)):T===t("wordTable.filter.pageNumber","\uD398\uC774\uC9C0 \uBC88\uD638")&&b(Hm(P)))},[t]);return{settings:{orientation:a,contentTypes:n,cutLine:s,showOutline:u,showDivLine:p,count:_},filterSections:A,filterSelected:D,handleSelect:H,pages:x,isPaginated:S,pageNumberPosition:f}}var wk=".ihabdevteam-core-scope .word-table-popup .popup-content__inner,.ihabdevteam-core-scope .word-table-popup__body{display:flex;flex:1;flex-direction:column;min-height:0}.ihabdevteam-core-scope .word-table-popup__body{gap:var(--spacing-m)}.ihabdevteam-core-scope .word-table-popup__table{align-items:flex-start;display:flex;flex:1;justify-content:center;min-height:0;overflow:hidden}.ihabdevteam-core-scope .word-table-popup__pages{align-items:center;display:flex;flex:1;flex-direction:column;gap:24px;gap:var(--spacing-content,24px);min-height:0;overflow:auto}@media print{.ihabdevteam-core-scope .word-table-popup__pages .word-table{-moz-column-break-after:page;break-after:page;page-break-after:always;position:static}.ihabdevteam-core-scope .word-table-popup__pages .word-table:last-child{-moz-column-break-after:auto;break-after:auto;page-break-after:auto}}.ihabdevteam-core-scope .word-table-popup__empty{color:var(--color-gray);padding:var(--spacing-m) 0;text-align:center}";J(wk);function Ym({items:e,words:t,title:a,subtitle:r,emptyText:n,buttons:i,renderButtons:s,renderFooter:c,footerClassName:u,printFileName:d,showSettings:p,autoPrint:m,className:h,onClose:g,scoring:f=!1,onScoreChange:b,printHeader:y,beforeClose:v}){const{t:C}=ge.useTranslation(),w=l.useMemo(()=>Array.isArray(e)?e:(Array.isArray(t)?t:[]).filter(re=>typeof re=="string"&&re.length>0).map((re,Q)=>({id:`${re}-${Q}`,words:[{label:re}]})),[e,t]),{settings:x,filterSections:S,filterSelected:_,handleSelect:k,pages:N,isPaginated:A,pageNumberPosition:D}=cc(w),H=l.useMemo(()=>oc(N.map(re=>re.length)),[N]),[P,T]=l.useState({}),E=l.useCallback((re,Q)=>{T(ne=>({...ne,[Cr(re)]:ec(ne[Cr(re)]??null,Q)}))},[]),L=l.useRef(b);l.useEffect(()=>{L.current=b}),l.useEffect(()=>{L.current?.(An(P))},[P]);const F=l.useMemo(()=>An(P),[P]),te=l.useRef(null),{toastMessage:Z,toastKey:V,showWarning:j,clearToast:M}=mn("warning"),$=l.useRef([]),W=l.useCallback(()=>A?$.current.filter(re=>re!==null):te.current?[te.current]:[],[A]),{print:q,openNewWindow:X}=Nn({getElements:W,paperW:io[x.orientation].width,paperH:io[x.orientation].height,fileName:d??"",header:y??"",onPopupBlocked:()=>j(C("wordTable.popupBlocked","\uD31D\uC5C5\uC774 \uCC28\uB2E8\uB418\uC5C8\uC2B5\uB2C8\uB2E4. \uBE0C\uB77C\uC6B0\uC800 \uC124\uC815\uC5D0\uC11C \uD31D\uC5C5\uC744 \uD5C8\uC6A9\uD574 \uC8FC\uC138\uC694."))}),O=l.useMemo(()=>c?void 0:s?s({print:q,openNewWindow:X}):d?[{label:C("wordTable.openNewWindow","\uC0C8 \uCC3D\uC73C\uB85C \uBCF4\uAE30"),variant:"default",onClick:()=>X()},{label:C("wordTable.print","\uC778\uC1C4\uD558\uAE30"),variant:"default",onClick:()=>q()},...i??[]]:i,[c,s,d,i,C,q,X]),Y=l.useMemo(()=>c?c({print:q,openNewWindow:X}):void 0,[c,q,X]),z=l.useRef(!1);return l.useEffect(()=>{if(!m||z.current)return;z.current=!0;const re=window.setTimeout(()=>q(),100);return()=>window.clearTimeout(re)},[m,q]),o.jsxs(Ta,{title:a??C("keyWords.title","\uC8FC\uC694 \uB2E8\uC5B4"),subtitle:r,size:"large",className:xe("word-table-popup",h),buttons:O,footer:Y,footerClassName:u,beforeClose:v,onClose:g,children:[w.length>0?o.jsxs("div",{className:"word-table-popup__body",children:[p&&o.jsx(Bn,{sections:S,selected:_,onSelect:k}),A?o.jsx("div",{className:"word-table-popup__pages",children:N.map((re,Q)=>o.jsx(so,{items:re,orientation:x.orientation,contentTypes:x.contentTypes,cutLine:x.cutLine,showOutline:x.showOutline,showDivLine:x.showDivLine,count:x.count,contentRef:ne=>{$.current[Q]=ne},pageNumber:{current:Q+1,total:N.length},pageNumberPosition:D,scoring:f,scoreIndexOffset:H[Q],marks:F,onMarkClick:E},Q))}):o.jsx("div",{className:"word-table-popup__table",children:o.jsx(so,{items:w,orientation:x.orientation,contentTypes:x.contentTypes,cutLine:x.cutLine,showOutline:x.showOutline,showDivLine:x.showDivLine,count:x.count,contentRef:te,fitHeight:!0,scoring:f,marks:F,onMarkClick:E})})]}):o.jsx("p",{className:"word-table-popup__empty body-3",children:n??C("keyWords.empty","\uCD94\uCD9C\uB41C \uC8FC\uC694 \uB2E8\uC5B4\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4.")}),o.jsx(ro,{message:Z,position:"top",onClose:M},V)]})}const kk=new Set(["x","triangle"]);function Um(e,t){const a=[];for(let r=0;r<e.length;r++){const n=t[String(r)];n&&kk.has(n)&&a.push(e[r])}return a}function Km(e,t){const[,a,r]=ka(t).split("-"),n=`${a}.${r}`,i=/\s*(?:(\d+)차\s*)?복습\s*\d{2}\.\d{2}$/;let s=e.trim(),c=1;for(;;){const d=i.exec(s);if(!d)break;c=Math.max(c,(d[1]?Number(d[1]):1)+1),s=s.slice(0,d.index).trim()}const u=c>=2?`${c}\uCC28 `:"";return`${s||"\uB2E8\uC5B4\uD45C"} ${u}\uBCF5\uC2B5 ${n}`}function Zm(e,t){const a={};for(const[r,n]of Object.entries(t)){if(n!=="o"&&n!=="triangle"&&n!=="x")continue;const i=Number(r),s=e[i];s&&(a[r]=s)}return a}function Xm(e){return e.map(t=>t.label).join(" / ")}function Qm(e,t,a){const r=Kr(a);return[e.trim(),r,t.trim()].filter(Boolean).join(" \xB7 ")}function Jm(e,t,a){return a===0?0:(e+t*.5)/a}function eb(e){const t=new Map,a=[...e].sort((n,i)=>n.scoredAt.localeCompare(i.scoredAt));for(const n of a)for(const[i,s]of Object.entries(n.marks)){const c=n.labels?.[i];if(!c)continue;const u=t.get(c)??{o:0,triangle:0,x:0,latest:s,latestAt:n.scoredAt};if(s==="o")u.o++;else if(s==="triangle")u.triangle++;else if(s==="x")u.x++;else continue;u.latest=s,u.latestAt=n.scoredAt,t.set(c,u)}const r=[];for(const[n,i]of t){const s=i.o+i.triangle+i.x;r.push({label:n,tried:s,o:i.o,triangle:i.triangle,x:i.x,rate:Jm(i.o,i.triangle,s),latest:i.latest,latestAt:i.latestAt})}return r.sort((n,i)=>n.rate-i.rate||i.tried-n.tried||n.label.localeCompare(i.label)),r}function tb(e){const t=new Map;for(const r of e){const n=r.tableId??`name:${r.tableName}`,i=t.get(n)??{tableName:r.tableName,tableId:r.tableId,rows:[]};i.rows.push(r),t.set(n,i)}const a=[];for(const r of t.values()){const n=[...r.rows].sort((s,c)=>s.scoredAt.localeCompare(c.scoredAt)),i=n.map(s=>{const c=Object.values(s.marks),u=c.filter(p=>p==="o").length,d=c.filter(p=>p==="triangle").length;return Jm(u,d,c.filter(p=>p==="o"||p==="triangle"||p==="x").length)});a.push({tableName:r.tableName,tableId:r.tableId,rates:i,times:n.map(s=>s.scoredAt),delta:i.length>=2?i[i.length-1]-i[0]:null})}return a.sort((r,n)=>(n.times[n.times.length-1]??"").localeCompare(r.times[r.times.length-1]??"")),a}function ab(e,t=8){return e.filter(a=>a.latest!=="o").slice(0,t)}function ob(e){const t=new Map;let a=0,r=0;const n=[...e].sort((s,c)=>s.answeredAt.localeCompare(c.answeredAt));for(const s of n){if(s.isCorrect==null)continue;const c=s.itemTitle?.trim();if(!c){r++;continue}a++;const u=s.itemId?.trim()||c,d=`${s.trainingType}|${u}`,p=t.get(d)??{trainingType:s.trainingType,itemId:u,title:c,tried:0,wrong:0,latestCorrect:s.isCorrect,latestAt:s.answeredAt,lastSelected:s.selected,setIds:[]};p.tried++,s.isCorrect||p.wrong++,p.title=c,p.latestCorrect=s.isCorrect,p.latestAt=s.answeredAt,p.lastSelected=s.selected,s.setId&&!p.setIds.includes(s.setId)&&p.setIds.unshift(s.setId),t.set(d,p)}const i=[...t.entries()].map(([s,c])=>({key:s,trainingType:c.trainingType,itemId:c.itemId,title:c.title,tried:c.tried,wrong:c.wrong,rate:c.tried===0?0:(c.tried-c.wrong)/c.tried,latestCorrect:c.latestCorrect,latestAt:c.latestAt,lastSelected:c.lastSelected,setIds:c.setIds}));return i.sort((s,c)=>s.rate-c.rate||c.tried-s.tried||s.title.localeCompare(c.title)),{items:i,counted:a,skippedNoTitle:r}}function rb(e,t=8){return e.filter(a=>!a.latestCorrect).slice(0,t)}function nb(e){const t=new Map;for(const r of e){const n=t.get(r.trainingType)??[];n.push(r),t.set(r.trainingType,n)}const a=[...t.entries()].map(([r,n])=>({trainingType:r,items:n,pending:n.filter(i=>!i.latestCorrect).length}));return a.sort((r,n)=>n.pending-r.pending||r.trainingType.localeCompare(n.trainingType)),a}const Dn=["LISTEN_IN_NOISE","SHORT_STORY","LONG_STORY","ORDERING_SENTENCE"];function ib(e){const t=new Map;let a=0;for(const i of e){if(i.latestCorrect)continue;const s=i.setIds[0];if(!s){a++;continue}const c=`${i.trainingType}|${s}`,u=t.get(c)??{setId:s,trainingType:i.trainingType,pending:0};u.pending++,t.set(c,u)}const r=(i,s)=>s.pending-i.pending||i.trainingType.localeCompare(s.trainingType)||i.setId.localeCompare(s.setId),n=[...t.values()];return{sentence:n.filter(i=>Dn.includes(i.trainingType)).sort(r),word:n.filter(i=>!Dn.includes(i.trainingType)).sort(r),noSet:a}}function sb(e,t,a=5){const r=new Set(t);if(r.size===0)return[];const n=[];for(const i of e){const s=new Set,c=[];for(const u of i.cellLabels)r.has(u)&&!s.has(u)&&(s.add(u),c.push(u));c.length!==0&&n.push({id:i.id,name:i.name,kind:i.kind,covered:c,totalCells:i.cellLabels.length})}return n.sort((i,s)=>s.covered.length-i.covered.length||i.totalCells-s.totalCells||i.name.localeCompare(s.name)),n.slice(0,Math.max(0,a))}function lb(e,t){const a=new Set(e.flatMap(r=>r.covered));return t.filter(r=>!a.has(r))}function cb(e,t){const a=new Map;for(const n of e)for(const i of n.cells){const s=n.labelOf(i);a.has(s)||a.set(s,i)}const r=[];for(const n of t){const i=a.get(n);i!==void 0&&r.push(i)}return r}function db(e){if(!e||e<=0)return"-";const t=Math.floor(e/60),a=e%60;return t>0?`${t}\uBD84${a>0?` ${a}\uCD08`:""}`:`${a}\uCD08`}function ub(e,t){const a=[],r=new Set;for(const n of e){const i=t(n);r.has(i)||(r.add(i),a.push({key:i,value:n,pinned:!1}))}return a}function pb(e,t){return e.map(a=>a.key===t?{...a,pinned:!a.pinned}:a)}function hb(e,t){return e.filter(a=>a.key!==t)}function mb(e,t,a){const r=e.filter(d=>d.pinned),n=new Set(r.map(d=>d.key)),i=e.length-r.length,s=[],c=new Set(n);for(const d of t){if(s.length>=i)break;const p=a(d);c.has(p)||(c.add(p),s.push({key:p,value:d,pinned:!1}))}const u=[...s];return e.map(d=>d.pinned?d:u.shift()).filter(d=>d!==void 0)}function bb(e){return e.map(t=>t.value)}var Sk=`.ihabdevteam-core-scope .icon-grid-menu{align-items:flex-start;display:flex;flex-wrap:wrap;justify-content:center}.ihabdevteam-core-scope .icon-grid-menu--medium{margin-bottom:60px}.ihabdevteam-core-scope .icon-grid-menu--small{margin-bottom:var(--spacing-l)}.ihabdevteam-core-scope .page:has(.choice-chips) .icon-grid-menu{margin-bottom:var(--spacing-l)}.ihabdevteam-core-scope .icon-grid-menu__button{align-items:center;background:var(--color-deepWhite);border:1px solid var(--color-whiteLine);border-radius:28px;cursor:pointer;display:flex;flex-direction:column;gap:0;height:68px;justify-content:center;padding:0;text-align:center;transition:background-color .24s ease,box-shadow .15s,border-color .15s;width:68px}.ihabdevteam-core-scope .icon-grid-menu__button:hover{border-color:var(--color-main);box-shadow:var(--shadow-card)}.ihabdevteam-core-scope .icon-grid-menu__button:disabled{border-color:var(--color-whiteLine);box-shadow:none;cursor:default;opacity:.95;outline:none;pointer-events:none}.ihabdevteam-core-scope .icon-grid-menu__button-icon{align-items:center;color:var(--color-lightGray);display:inline-flex;font-size:28px;height:32px;justify-content:center;transform-origin:center;width:32px;will-change:transform}
|
|
974
|
+
</html>`}function Nn({getElements:e,paperW:t,paperH:a,fileName:r="",onPopupBlocked:n,header:i=""}){const s=l.useCallback(()=>{_k(e(),t,a,r,i)},[e,t,a,r,i]),c=l.useCallback(()=>{const d=e();if(d.length===0)return;const p=window.open("","_blank");if(!p){n?.();return}p.document.write(lc(d,t,a,!1,r,i)),p.document.close()},[e,t,a,r,n,i]),u=l.useCallback(()=>{const d=e();if(d.length===0)return;const p=lc(d,t,a,!1,r,i),m=new Blob([p],{type:"text/html;charset=utf-8"}),h=URL.createObjectURL(m),g=r&&sc(r),f=Object.assign(document.createElement("a"),{href:h,download:`${g}.html`});document.body.appendChild(f),f.click(),document.body.removeChild(f),URL.revokeObjectURL(h)},[e,t,a,r,i]);return{print:s,openNewWindow:c,downloadHtml:u}}function cc(e){const{t}=ge.useTranslation(),[a,r]=l.useState("landscape"),[n,i]=l.useState(["\uC774\uBBF8\uC9C0","\uB2E8\uC5B4","\uD45C\uC900 \uBC1C\uC74C"]),[s,c]=l.useState("\uD45C\uC2DC"),[u,d]=l.useState(!0),[p,m]=l.useState(!0),[h,g]=l.useState(8),[f,b]=l.useState("right"),y=e.length,v=e.some(P=>P.words.length>1),C=e.some(P=>P.words.some(T=>!!T.colloquialLabel)),w=Math.min(h,Math.max(y,1)),x=l.useMemo(()=>jm(e,w),[e,w]),S=x.length>1,_=w,[k,N]=l.useState(!1);l.useEffect(()=>{let P=!1;if(!Ma()){N(!1);return}return Promise.all(e.flatMap(T=>T.words.map(E=>Yo(E.label,E.homonum)))).then(T=>{P||N(T.some(Boolean))}),()=>{P=!0}},[e]);const A=l.useMemo(()=>[Pm(t,{hasImage:k,hasColloquial:C}),Rm(t),...y>0?[Om(t,{hasPairs:v,itemCount:y})]:[],...S?[Fm(t)]:[],$m(t),..._>1?[Im(t)]:[],...v?[zm(t)]:[]],[t,k,C,y,v,S,_]),D={...Vm(t,{contentTypes:n,orientation:a,showOutline:u,cutLine:s,showDivLine:p}),...y>0?{[t(v?"wordTable.filter.itemsPerPagePair":"wordTable.filter.itemsPerPageWord")]:`${w}\uAC1C`}:{},...S?{[t("wordTable.filter.pageNumber","\uD398\uC774\uC9C0 \uBC88\uD638")]:Wm[f]}:{}},H=l.useCallback((P,T)=>{Gm(t,P,T,{setContentTypes:i,setOrientation:r,setShowOutline:d,setCutLine:c,setShowDivLine:m})||(T===t("wordTable.filter.itemsPerPagePair","\uD398\uC774\uC9C0\uB2F9 \uB300\uB9BD\uC30D \uC218")||T===t("wordTable.filter.itemsPerPageWord","\uD398\uC774\uC9C0\uB2F9 \uB2E8\uC5B4 \uC218")?g(parseInt(P)):T===t("wordTable.filter.pageNumber","\uD398\uC774\uC9C0 \uBC88\uD638")&&b(Hm(P)))},[t]);return{settings:{orientation:a,contentTypes:n,cutLine:s,showOutline:u,showDivLine:p,count:_},filterSections:A,filterSelected:D,handleSelect:H,pages:x,isPaginated:S,pageNumberPosition:f}}var wk=".ihabdevteam-core-scope .word-table-popup .popup-content__inner,.ihabdevteam-core-scope .word-table-popup__body{display:flex;flex:1;flex-direction:column;min-height:0}.ihabdevteam-core-scope .word-table-popup__body{gap:var(--spacing-m)}.ihabdevteam-core-scope .word-table-popup__table{align-items:flex-start;display:flex;flex:1;justify-content:center;min-height:0;overflow:hidden}.ihabdevteam-core-scope .word-table-popup__pages{align-items:center;display:flex;flex:1;flex-direction:column;gap:24px;gap:var(--spacing-content,24px);min-height:0;overflow:auto}@media print{.ihabdevteam-core-scope .word-table-popup__pages .word-table{-moz-column-break-after:page;break-after:page;page-break-after:always;position:static}.ihabdevteam-core-scope .word-table-popup__pages .word-table:last-child{-moz-column-break-after:auto;break-after:auto;page-break-after:auto}}.ihabdevteam-core-scope .word-table-popup__empty{color:var(--color-gray);padding:var(--spacing-m) 0;text-align:center}";J(wk);function Ym({items:e,words:t,title:a,subtitle:r,emptyText:n,buttons:i,renderButtons:s,renderFooter:c,footerClassName:u,printFileName:d,showSettings:p,autoPrint:m,className:h,onClose:g,scoring:f=!1,onScoreChange:b,printHeader:y,beforeClose:v}){const{t:C}=ge.useTranslation(),w=l.useMemo(()=>Array.isArray(e)?e:(Array.isArray(t)?t:[]).filter(re=>typeof re=="string"&&re.length>0).map((re,Q)=>({id:`${re}-${Q}`,words:[{label:re}]})),[e,t]),{settings:x,filterSections:S,filterSelected:_,handleSelect:k,pages:N,isPaginated:A,pageNumberPosition:D}=cc(w),H=l.useMemo(()=>oc(N.map(re=>re.length)),[N]),[P,T]=l.useState({}),E=l.useCallback((re,Q)=>{T(ne=>({...ne,[_r(re)]:ec(ne[_r(re)]??null,Q)}))},[]),L=l.useRef(b);l.useEffect(()=>{L.current=b}),l.useEffect(()=>{L.current?.(An(P))},[P]);const F=l.useMemo(()=>An(P),[P]),te=l.useRef(null),{toastMessage:Z,toastKey:V,showWarning:j,clearToast:M}=bn("warning"),$=l.useRef([]),W=l.useCallback(()=>A?$.current.filter(re=>re!==null):te.current?[te.current]:[],[A]),{print:q,openNewWindow:X}=Nn({getElements:W,paperW:io[x.orientation].width,paperH:io[x.orientation].height,fileName:d??"",header:y??"",onPopupBlocked:()=>j(C("wordTable.popupBlocked","\uD31D\uC5C5\uC774 \uCC28\uB2E8\uB418\uC5C8\uC2B5\uB2C8\uB2E4. \uBE0C\uB77C\uC6B0\uC800 \uC124\uC815\uC5D0\uC11C \uD31D\uC5C5\uC744 \uD5C8\uC6A9\uD574 \uC8FC\uC138\uC694."))}),O=l.useMemo(()=>c?void 0:s?s({print:q,openNewWindow:X}):d?[{label:C("wordTable.openNewWindow","\uC0C8 \uCC3D\uC73C\uB85C \uBCF4\uAE30"),variant:"default",onClick:()=>X()},{label:C("wordTable.print","\uC778\uC1C4\uD558\uAE30"),variant:"default",onClick:()=>q()},...i??[]]:i,[c,s,d,i,C,q,X]),Y=l.useMemo(()=>c?c({print:q,openNewWindow:X}):void 0,[c,q,X]),z=l.useRef(!1);return l.useEffect(()=>{if(!m||z.current)return;z.current=!0;const re=window.setTimeout(()=>q(),100);return()=>window.clearTimeout(re)},[m,q]),o.jsxs(Ta,{title:a??C("keyWords.title","\uC8FC\uC694 \uB2E8\uC5B4"),subtitle:r,size:"large",className:xe("word-table-popup",h),buttons:O,footer:Y,footerClassName:u,beforeClose:v,onClose:g,children:[w.length>0?o.jsxs("div",{className:"word-table-popup__body",children:[p&&o.jsx(Bn,{sections:S,selected:_,onSelect:k}),A?o.jsx("div",{className:"word-table-popup__pages",children:N.map((re,Q)=>o.jsx(so,{items:re,orientation:x.orientation,contentTypes:x.contentTypes,cutLine:x.cutLine,showOutline:x.showOutline,showDivLine:x.showDivLine,count:x.count,contentRef:ne=>{$.current[Q]=ne},pageNumber:{current:Q+1,total:N.length},pageNumberPosition:D,scoring:f,scoreIndexOffset:H[Q],marks:F,onMarkClick:E},Q))}):o.jsx("div",{className:"word-table-popup__table",children:o.jsx(so,{items:w,orientation:x.orientation,contentTypes:x.contentTypes,cutLine:x.cutLine,showOutline:x.showOutline,showDivLine:x.showDivLine,count:x.count,contentRef:te,fitHeight:!0,scoring:f,marks:F,onMarkClick:E})})]}):o.jsx("p",{className:"word-table-popup__empty body-3",children:n??C("keyWords.empty","\uCD94\uCD9C\uB41C \uC8FC\uC694 \uB2E8\uC5B4\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4.")}),o.jsx(ro,{message:Z,position:"top",onClose:M},V)]})}const kk=new Set(["x","triangle"]);function Um(e,t){const a=[];for(let r=0;r<e.length;r++){const n=t[String(r)];n&&kk.has(n)&&a.push(e[r])}return a}function Km(e,t){const[,a,r]=ka(t).split("-"),n=`${a}.${r}`,i=/\s*(?:(\d+)차\s*)?복습\s*\d{2}\.\d{2}$/;let s=e.trim(),c=1;for(;;){const d=i.exec(s);if(!d)break;c=Math.max(c,(d[1]?Number(d[1]):1)+1),s=s.slice(0,d.index).trim()}const u=c>=2?`${c}\uCC28 `:"";return`${s||"\uB2E8\uC5B4\uD45C"} ${u}\uBCF5\uC2B5 ${n}`}function Zm(e,t){const a={};for(const[r,n]of Object.entries(t)){if(n!=="o"&&n!=="triangle"&&n!=="x")continue;const i=Number(r),s=e[i];s&&(a[r]=s)}return a}function Xm(e){return e.map(t=>t.label).join(" / ")}function Qm(e,t,a){const r=Zr(a);return[e.trim(),r,t.trim()].filter(Boolean).join(" \xB7 ")}function Jm(e,t,a){return a===0?0:(e+t*.5)/a}function eb(e){const t=new Map,a=[...e].sort((n,i)=>n.scoredAt.localeCompare(i.scoredAt));for(const n of a)for(const[i,s]of Object.entries(n.marks)){const c=n.labels?.[i];if(!c)continue;const u=t.get(c)??{o:0,triangle:0,x:0,latest:s,latestAt:n.scoredAt};if(s==="o")u.o++;else if(s==="triangle")u.triangle++;else if(s==="x")u.x++;else continue;u.latest=s,u.latestAt=n.scoredAt,t.set(c,u)}const r=[];for(const[n,i]of t){const s=i.o+i.triangle+i.x;r.push({label:n,tried:s,o:i.o,triangle:i.triangle,x:i.x,rate:Jm(i.o,i.triangle,s),latest:i.latest,latestAt:i.latestAt})}return r.sort((n,i)=>n.rate-i.rate||i.tried-n.tried||n.label.localeCompare(i.label)),r}function tb(e){const t=new Map;for(const r of e){const n=r.tableId??`name:${r.tableName}`,i=t.get(n)??{tableName:r.tableName,tableId:r.tableId,rows:[]};i.rows.push(r),t.set(n,i)}const a=[];for(const r of t.values()){const n=[...r.rows].sort((s,c)=>s.scoredAt.localeCompare(c.scoredAt)),i=n.map(s=>{const c=Object.values(s.marks),u=c.filter(p=>p==="o").length,d=c.filter(p=>p==="triangle").length;return Jm(u,d,c.filter(p=>p==="o"||p==="triangle"||p==="x").length)});a.push({tableName:r.tableName,tableId:r.tableId,rates:i,times:n.map(s=>s.scoredAt),delta:i.length>=2?i[i.length-1]-i[0]:null})}return a.sort((r,n)=>(n.times[n.times.length-1]??"").localeCompare(r.times[r.times.length-1]??"")),a}function ab(e,t=8){return e.filter(a=>a.latest!=="o").slice(0,t)}function ob(e){const t=new Map;let a=0,r=0;const n=[...e].sort((s,c)=>s.answeredAt.localeCompare(c.answeredAt));for(const s of n){if(s.isCorrect==null)continue;const c=s.itemTitle?.trim();if(!c){r++;continue}a++;const u=s.itemId?.trim()||c,d=`${s.trainingType}|${u}`,p=t.get(d)??{trainingType:s.trainingType,itemId:u,title:c,tried:0,wrong:0,latestCorrect:s.isCorrect,latestAt:s.answeredAt,lastSelected:s.selected,setIds:[]};p.tried++,s.isCorrect||p.wrong++,p.title=c,p.latestCorrect=s.isCorrect,p.latestAt=s.answeredAt,p.lastSelected=s.selected,s.setId&&!p.setIds.includes(s.setId)&&p.setIds.unshift(s.setId),t.set(d,p)}const i=[...t.entries()].map(([s,c])=>({key:s,trainingType:c.trainingType,itemId:c.itemId,title:c.title,tried:c.tried,wrong:c.wrong,rate:c.tried===0?0:(c.tried-c.wrong)/c.tried,latestCorrect:c.latestCorrect,latestAt:c.latestAt,lastSelected:c.lastSelected,setIds:c.setIds}));return i.sort((s,c)=>s.rate-c.rate||c.tried-s.tried||s.title.localeCompare(c.title)),{items:i,counted:a,skippedNoTitle:r}}function rb(e,t=8){return e.filter(a=>!a.latestCorrect).slice(0,t)}function nb(e){const t=new Map;for(const r of e){const n=t.get(r.trainingType)??[];n.push(r),t.set(r.trainingType,n)}const a=[...t.entries()].map(([r,n])=>({trainingType:r,items:n,pending:n.filter(i=>!i.latestCorrect).length}));return a.sort((r,n)=>n.pending-r.pending||r.trainingType.localeCompare(n.trainingType)),a}const Dn=["LISTEN_IN_NOISE","SHORT_STORY","LONG_STORY","ORDERING_SENTENCE"];function ib(e){const t=new Map;let a=0;for(const i of e){if(i.latestCorrect)continue;const s=i.setIds[0];if(!s){a++;continue}const c=`${i.trainingType}|${s}`,u=t.get(c)??{setId:s,trainingType:i.trainingType,pending:0};u.pending++,t.set(c,u)}const r=(i,s)=>s.pending-i.pending||i.trainingType.localeCompare(s.trainingType)||i.setId.localeCompare(s.setId),n=[...t.values()];return{sentence:n.filter(i=>Dn.includes(i.trainingType)).sort(r),word:n.filter(i=>!Dn.includes(i.trainingType)).sort(r),noSet:a}}function sb(e,t,a=5){const r=new Set(t);if(r.size===0)return[];const n=[];for(const i of e){const s=new Set,c=[];for(const u of i.cellLabels)r.has(u)&&!s.has(u)&&(s.add(u),c.push(u));c.length!==0&&n.push({id:i.id,name:i.name,kind:i.kind,covered:c,totalCells:i.cellLabels.length})}return n.sort((i,s)=>s.covered.length-i.covered.length||i.totalCells-s.totalCells||i.name.localeCompare(s.name)),n.slice(0,Math.max(0,a))}function lb(e,t){const a=new Set(e.flatMap(r=>r.covered));return t.filter(r=>!a.has(r))}function cb(e,t){const a=new Map;for(const n of e)for(const i of n.cells){const s=n.labelOf(i);a.has(s)||a.set(s,i)}const r=[];for(const n of t){const i=a.get(n);i!==void 0&&r.push(i)}return r}function db(e){if(!e||e<=0)return"-";const t=Math.floor(e/60),a=e%60;return t>0?`${t}\uBD84${a>0?` ${a}\uCD08`:""}`:`${a}\uCD08`}function ub(e,t){const a=[],r=new Set;for(const n of e){const i=t(n);r.has(i)||(r.add(i),a.push({key:i,value:n,pinned:!1}))}return a}function pb(e,t){return e.map(a=>a.key===t?{...a,pinned:!a.pinned}:a)}function hb(e,t){return e.filter(a=>a.key!==t)}function mb(e,t,a){const r=e.filter(d=>d.pinned),n=new Set(r.map(d=>d.key)),i=e.length-r.length,s=[],c=new Set(n);for(const d of t){if(s.length>=i)break;const p=a(d);c.has(p)||(c.add(p),s.push({key:p,value:d,pinned:!1}))}const u=[...s];return e.map(d=>d.pinned?d:u.shift()).filter(d=>d!==void 0)}function bb(e){return e.map(t=>t.value)}var Sk=`.ihabdevteam-core-scope .icon-grid-menu{align-items:flex-start;display:flex;flex-wrap:wrap;justify-content:center}.ihabdevteam-core-scope .icon-grid-menu--medium{margin-bottom:60px}.ihabdevteam-core-scope .icon-grid-menu--small{margin-bottom:var(--spacing-l)}.ihabdevteam-core-scope .page:has(.choice-chips) .icon-grid-menu{margin-bottom:var(--spacing-l)}.ihabdevteam-core-scope .icon-grid-menu__button{align-items:center;background:var(--color-deepWhite);border:1px solid var(--color-whiteLine);border-radius:28px;cursor:pointer;display:flex;flex-direction:column;gap:0;height:68px;justify-content:center;padding:0;text-align:center;transition:background-color .24s ease,box-shadow .15s,border-color .15s;width:68px}.ihabdevteam-core-scope .icon-grid-menu__button:hover{border-color:var(--color-main);box-shadow:var(--shadow-card)}.ihabdevteam-core-scope .icon-grid-menu__button:disabled{border-color:var(--color-whiteLine);box-shadow:none;cursor:default;opacity:.95;outline:none;pointer-events:none}.ihabdevteam-core-scope .icon-grid-menu__button-icon{align-items:center;color:var(--color-lightGray);display:inline-flex;font-size:28px;height:32px;justify-content:center;transform-origin:center;width:32px;will-change:transform}
|
|
975
975
|
|
|
976
976
|
/* !important \uD544\uC694: Icon.tsx\uC758 \uD3F4\uBC31 SVG(nullSvg)\uB294 style="stroke:...;stroke-width:.." \uC778\uB77C\uC778
|
|
977
977
|
\uC18D\uC131\uC73C\uB85C \uB80C\uB354\uB9C1\uB418\uC5B4 \uD074\uB798\uC2A4 \uADDC\uCE59\uBCF4\uB2E4 \uC6B0\uC120\uC21C\uC704\uAC00 \uB192\uC74C. \uC774 \uADDC\uCE59\uC744 \uBAA8\uB4E0 \uC544\uC774\uCF58(\uC77C\uBC18 lucide
|
|
978
|
-
\uC544\uC774\uCF58 + \uD3F4\uBC31)\uC5D0 \uB3D9\uC77C\uD558\uAC8C \uC801\uC6A9\uD558\uB824\uBA74 !important\uAC00 \uBD88\uAC00\uD53C\uD568. */.ihabdevteam-core-scope .icon-grid-menu__button-icon-svg svg,.ihabdevteam-core-scope .icon-grid-menu__button-icon-svg svg *{stroke:currentColor!important;stroke-width:2px!important;stroke-width:var(--icon-grid-menu-button-stroke-width,2px)!important;vector-effect:non-scaling-stroke}.ihabdevteam-core-scope .icon-grid-menu__button-icon-svg{height:24px;width:24px}.ihabdevteam-core-scope .icon-grid-menu__button-icon-svg svg{display:block;height:28px;width:28px}.ihabdevteam-core-scope .icon-grid-menu__button-icon-mask{background-color:currentColor;display:inline-block;height:28px;-webkit-mask-image:var(--icon-url);mask-image:var(--icon-url);-webkit-mask-position:center;mask-position:center;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:contain;mask-size:contain;width:28px}.ihabdevteam-core-scope .icon-grid-menu__button-icon-image{display:block;height:28px;-o-object-fit:contain;object-fit:contain;width:28px}.ihabdevteam-core-scope .icon-grid-menu__button-wrapper{align-items:center;display:inline-flex;flex-direction:column;gap:6px}.ihabdevteam-core-scope .icon-grid-menu__button-label{color:var(--color-darkGray);overflow-wrap:break-word;word-break:keep-all}.ihabdevteam-core-scope .icon-grid-menu__button.icon-grid-menu__button--selected{animation:sub-to-main .36s cubic-bezier(.4,0,.2,1) forwards;background-color:var(--color-main);border-color:transparent;box-shadow:var(--shadow-button);color:#fff}.ihabdevteam-core-scope .icon-grid-menu__button.icon-grid-menu__button--selected .icon-grid-menu__button-icon{color:#fff}.ihabdevteam-core-scope .icon-grid-menu--small .icon-grid-menu__button-wrapper{gap:4px;margin:4px 8px;width:56px}.ihabdevteam-core-scope .icon-grid-menu--medium .icon-grid-menu__button-wrapper{margin-left:6px;margin-right:6px}.ihabdevteam-core-scope .icon-grid-menu--small .icon-grid-menu__button{border-radius:20px;height:48px;width:48px}.ihabdevteam-core-scope .icon-grid-menu--small .icon-grid-menu__button-icon{font-size:20px;height:24px;width:24px}.ihabdevteam-core-scope .icon-grid-menu--small .icon-grid-menu__button-icon-image,.ihabdevteam-core-scope .icon-grid-menu--small .icon-grid-menu__button-icon-mask,.ihabdevteam-core-scope .icon-grid-menu--small .icon-grid-menu__button-icon-svg,.ihabdevteam-core-scope .icon-grid-menu--small .icon-grid-menu__button-icon-svg svg{height:20px;width:20px}.ihabdevteam-core-scope .icon-grid-menu--small .icon-grid-menu__button-label{font-size:12px;line-height:1.3}@media (min-width:1024px){.ihabdevteam-core-scope .icon-grid-menu__button-wrapper{margin:8px 12px;width:80px}.ihabdevteam-core-scope .icon-grid-menu__button{border-radius:28px;height:68px;width:68px}.ihabdevteam-core-scope .icon-grid-menu__button-icon-mask{height:28px;width:28px}}@media (min-width:768px) and (max-width:1023px){.ihabdevteam-core-scope .icon-grid-menu__button-wrapper{margin:8px 10px;width:64px}.ihabdevteam-core-scope .icon-grid-menu__button{border-radius:24px;height:58px;width:58px}.ihabdevteam-core-scope .icon-grid-menu__button-icon-mask{height:24px;width:24px}}@media (max-width:767px){.ihabdevteam-core-scope .icon-grid-menu__button-wrapper{margin:var(--spacing-xs);width:50px}.ihabdevteam-core-scope .icon-grid-menu__button{border-radius:20px;height:48px;width:48px}.ihabdevteam-core-scope .icon-grid-menu__button-icon-mask{height:20px;width:20px}}`;J(Sk);function Ak(e){const{category:t={},isSelected:a=!1,onClick:r}=e||{},n=t?.key?` icon-grid-menu__button--${t.key}`:"",i=l.useId();return o.jsxs("div",{className:`icon-grid-menu__button-wrapper${n}`,children:[o.jsx("button",{className:`icon-grid-menu__button${a?" icon-grid-menu__button--selected":""}`,"data-key":t?.key,onClick:a?void 0:r,"aria-pressed":a,"aria-labelledby":i,disabled:a,children:o.jsx(Ie,{icon:t.icon,label:t.label,className:"icon-grid-menu__button-icon",imgClassName:"icon-grid-menu__button-icon-image",maskClassName:"icon-grid-menu__button-icon-mask",svgClassName:"icon-grid-menu__button-icon-svg"})}),o.jsx("span",{id:i,className:"icon-grid-menu__button-label button-1",children:t.label})]})}function gb(e){const{categories:t=[],selected:a,onSelect:r,size:n="medium"}=e||{},i=a??(t&&t[0]?.key)??null,[s,c]=l.useState(i??null);l.useEffect(()=>{a!=null&&c(a)},[a]);const u=l.useRef(r),d=l.useRef(s),p=l.useRef(a!==void 0);l.useEffect(()=>{!p.current&&d.current&&typeof u.current=="function"&&u.current(d.current)},[]);const m=l.useCallback(h=>{const g=s===h?null:h;c(g),r?.(g)},[s,r]);return o.jsx("div",{className:`icon-grid-menu icon-grid-menu--${n}`,children:(t||[]).map(h=>o.jsx(Ak,{category:h,isSelected:s===h.key,onClick:()=>m(h.key)},h.key))})}var Tk=".ihabdevteam-core-scope .choice-chips{display:block;width:100%}.ihabdevteam-core-scope .choice-chips--medium{margin-bottom:60px}.ihabdevteam-core-scope .choice-chips--small{margin-bottom:var(--spacing-l)}.ihabdevteam-core-scope .choice-chips__list{align-items:center;display:flex;flex-wrap:wrap;gap:var(--spacing-s);justify-content:center;padding-bottom:6px}.ihabdevteam-core-scope .choice-chips__list::-webkit-scrollbar{height:8px}.ihabdevteam-core-scope .choice-chips__list::-webkit-scrollbar-thumb{background:rgba(0,0,0,.08);border-radius:var(--radius-sm)}.ihabdevteam-core-scope .choice-chips__button{background:var(--color-deepWhite)!important;border:1px solid var(--color-whiteLine)!important;border-radius:var(--radius-s)!important;color:var(--color-darkGray)!important;height:40px!important;padding:0 24px!important;transition:all .12s!important;white-space:nowrap}.ihabdevteam-core-scope .choice-chips__button:hover{border-color:var(--color-main)!important}.ihabdevteam-core-scope .choice-chips--small .choice-chips__button{height:32px!important;padding:0 16px!important}.ihabdevteam-core-scope .choice-chips--small .choice-chips__list{gap:var(--spacing-xs)}.ihabdevteam-core-scope .choice-chips__button.is-selected{animation:chip-sub-to-main .36s cubic-bezier(.4,0,.2,1) forwards;background:var(--color-main)!important;border:1px solid var(--color-main)!important;box-shadow:var(--shadow-dropdown);color:#fff!important}@keyframes chip-sub-to-main{0%{background-color:var(--color-sub)}to{background-color:var(--color-main)}}";J(Tk);function fb({subs:e=[],selected:t,onSelect:a,size:r="medium"}){const n=r==="small"?32:40;return o.jsx("div",{className:`choice-chips choice-chips--${r}`,children:o.jsx("div",{className:"choice-chips__list",children:e.map(i=>o.jsx(se,{size:n,type:"bar",label:i.label,selected:t===i.key,className:"choice-chips__button",onClick:()=>a?.(i.key)},i.key))})})}var Bk=".ihabdevteam-core-scope .site-footer{background:var(--color-deepWhite);border-top:1px solid var(--color-whiteLine);box-sizing:border-box;color:var(--color-gray);padding:var(--spacing-page)}.ihabdevteam-core-scope .site-footer__top{align-items:flex-start;display:flex;gap:40px;justify-content:space-between}.ihabdevteam-core-scope .site-footer__brand{flex:0 0 220px;width:220px}.ihabdevteam-core-scope .site-footer__lead{color:var(--color-gray);text-align:left}.ihabdevteam-core-scope .site-footer__links{align-items:flex-start;display:flex;flex:1 1 auto;flex-wrap:wrap;gap:100px 10px;min-width:320px}.ihabdevteam-core-scope .site-footer__column{flex:0 0 160px;min-width:160px;text-align:left}.ihabdevteam-core-scope .site-footer__column-title{color:var(--color-lightGray)}.ihabdevteam-core-scope .footer-title{color:var(--color-lightGray);display:inline-block;font-size:13px;font-weight:600;line-height:20px;width:80px}.ihabdevteam-core-scope .site-footer__column ul{list-style:none;margin:10px 0 0;padding:0}.ihabdevteam-core-scope .site-footer__column li{margin-bottom:6px}.ihabdevteam-core-scope .footer-link,.ihabdevteam-core-scope .site-footer__column a{color:var(--color-lightGray);text-decoration:none}.ihabdevteam-core-scope .footer-link{align-items:center;display:inline-flex;font-size:13px;line-height:20px;min-height:24px;min-width:24px;transition:color .12s ease}.ihabdevteam-core-scope .footer-copyright,.ihabdevteam-core-scope .footer-meta{line-height:18px}.ihabdevteam-core-scope .footer-link:focus,.ihabdevteam-core-scope .footer-link:hover{color:var(--color-main);text-decoration:none}.ihabdevteam-core-scope .site-footer__rule{border:none;border-top:1px solid var(--color-darkWhite);margin:40px 0}.ihabdevteam-core-scope .site-footer__bottom{align-items:center;display:flex;gap:40px;justify-content:flex-start}.ihabdevteam-core-scope .site-footer__brand-compact{align-items:center;display:flex;gap:18px}.ihabdevteam-core-scope .site-footer__logo{height:52px}.ihabdevteam-core-scope .site-footer__bottom .site-footer__brand{align-items:center;display:flex;justify-content:center}.ihabdevteam-core-scope .site-footer__meta{color:var(--color-lightGray);text-align:left}.ihabdevteam-core-scope .site-footer__copyright{align-items:center;box-sizing:border-box;color:var(--color-lightGray);display:flex;justify-content:center;margin:var(--spacing-page) 0 0 0;text-align:center;width:100%}@media (max-width:1024px){.ihabdevteam-core-scope .site-footer__top{flex-direction:column;gap:var(--spacing-page)}.ihabdevteam-core-scope .site-footer__brand{flex:0 0 auto;width:100%}.ihabdevteam-core-scope .site-footer__links{gap:20px 10px;margin:0;min-width:0;width:100%}.ihabdevteam-core-scope .site-footer__bottom{align-items:flex-start;flex-direction:column;gap:var(--spacing-page)}.ihabdevteam-core-scope .site-footer__meta{width:100%}.ihabdevteam-core-scope .site-footer__logo{height:50px}}@media (max-width:767px){.ihabdevteam-core-scope .site-footer__logo{height:48px}}";J(Bk);function vb({onTermsClick:e,onPrivacyClick:t,contact:a}={}){const r=a?.email??"support@ihab.co.kr",n=a?.tel??"031-380-3724",{t:i}=ge.useTranslation();return o.jsx("footer",{className:"site-footer",children:o.jsxs("div",{className:"safearea",children:[o.jsxs("div",{className:"site-footer__top",children:[o.jsx("div",{className:"site-footer__brand",children:o.jsx("div",{className:"site-footer__lead h3",children:i("footer.lead",`\uC544\uC774\uD574\uBE0C\uB294 \uC18C\uB9AC\uB97C \uD1B5\uD574
|
|
978
|
+
\uC544\uC774\uCF58 + \uD3F4\uBC31)\uC5D0 \uB3D9\uC77C\uD558\uAC8C \uC801\uC6A9\uD558\uB824\uBA74 !important\uAC00 \uBD88\uAC00\uD53C\uD568. */.ihabdevteam-core-scope .icon-grid-menu__button-icon-svg svg,.ihabdevteam-core-scope .icon-grid-menu__button-icon-svg svg *{stroke:currentColor!important;stroke-width:2px!important;stroke-width:var(--icon-grid-menu-button-stroke-width,2px)!important;vector-effect:non-scaling-stroke}.ihabdevteam-core-scope .icon-grid-menu__button-icon-svg{height:24px;width:24px}.ihabdevteam-core-scope .icon-grid-menu__button-icon-svg svg{display:block;height:28px;width:28px}.ihabdevteam-core-scope .icon-grid-menu__button-icon-mask{background-color:currentColor;display:inline-block;height:28px;-webkit-mask-image:var(--icon-url);mask-image:var(--icon-url);-webkit-mask-position:center;mask-position:center;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:contain;mask-size:contain;width:28px}.ihabdevteam-core-scope .icon-grid-menu__button-icon-image{display:block;height:28px;-o-object-fit:contain;object-fit:contain;width:28px}.ihabdevteam-core-scope .icon-grid-menu__button-wrapper{align-items:center;display:inline-flex;flex-direction:column;gap:6px}.ihabdevteam-core-scope .icon-grid-menu__button-label{color:var(--color-darkGray);overflow-wrap:break-word;word-break:keep-all}.ihabdevteam-core-scope .icon-grid-menu__button.icon-grid-menu__button--selected{animation:sub-to-main .36s cubic-bezier(.4,0,.2,1) forwards;background-color:var(--color-main);border-color:transparent;box-shadow:var(--shadow-button);color:#fff}.ihabdevteam-core-scope .icon-grid-menu__button.icon-grid-menu__button--selected .icon-grid-menu__button-icon{color:#fff}.ihabdevteam-core-scope .icon-grid-menu--small .icon-grid-menu__button-wrapper{gap:4px;margin:4px 8px;width:56px}.ihabdevteam-core-scope .icon-grid-menu--medium .icon-grid-menu__button-wrapper{margin-left:6px;margin-right:6px}.ihabdevteam-core-scope .icon-grid-menu--small .icon-grid-menu__button{border-radius:20px;height:48px;width:48px}.ihabdevteam-core-scope .icon-grid-menu--small .icon-grid-menu__button-icon{font-size:20px;height:24px;width:24px}.ihabdevteam-core-scope .icon-grid-menu--small .icon-grid-menu__button-icon-image,.ihabdevteam-core-scope .icon-grid-menu--small .icon-grid-menu__button-icon-mask,.ihabdevteam-core-scope .icon-grid-menu--small .icon-grid-menu__button-icon-svg,.ihabdevteam-core-scope .icon-grid-menu--small .icon-grid-menu__button-icon-svg svg{height:20px;width:20px}.ihabdevteam-core-scope .icon-grid-menu--small .icon-grid-menu__button-label{font-size:12px;line-height:1.3}@media (min-width:1024px){.ihabdevteam-core-scope .icon-grid-menu__button-wrapper{margin:8px 12px;width:80px}.ihabdevteam-core-scope .icon-grid-menu__button{border-radius:28px;height:68px;width:68px}.ihabdevteam-core-scope .icon-grid-menu__button-icon-mask{height:28px;width:28px}}@media (min-width:768px) and (max-width:1023px){.ihabdevteam-core-scope .icon-grid-menu__button-wrapper{margin:8px 10px;width:64px}.ihabdevteam-core-scope .icon-grid-menu__button{border-radius:24px;height:58px;width:58px}.ihabdevteam-core-scope .icon-grid-menu__button-icon-mask{height:24px;width:24px}}@media (max-width:767px){.ihabdevteam-core-scope .icon-grid-menu__button-wrapper{margin:var(--spacing-xs);width:50px}.ihabdevteam-core-scope .icon-grid-menu__button{border-radius:20px;height:48px;width:48px}.ihabdevteam-core-scope .icon-grid-menu__button-icon-mask{height:20px;width:20px}}`;J(Sk);function Ak(e){const{category:t={},isSelected:a=!1,onClick:r}=e||{},n=t?.key?` icon-grid-menu__button--${t.key}`:"",i=l.useId();return o.jsxs("div",{className:`icon-grid-menu__button-wrapper${n}`,children:[o.jsx("button",{className:`icon-grid-menu__button${a?" icon-grid-menu__button--selected":""}`,"data-key":t?.key,onClick:a?void 0:r,"aria-pressed":a,"aria-labelledby":i,disabled:a,children:o.jsx(Ie,{icon:t.icon,label:t.label,className:"icon-grid-menu__button-icon",imgClassName:"icon-grid-menu__button-icon-image",maskClassName:"icon-grid-menu__button-icon-mask",svgClassName:"icon-grid-menu__button-icon-svg"})}),o.jsx("span",{id:i,className:"icon-grid-menu__button-label button-1",children:t.label})]})}function gb(e){const{categories:t=[],selected:a,onSelect:r,size:n="medium"}=e||{},i=a??(t&&t[0]?.key)??null,[s,c]=l.useState(i??null);l.useEffect(()=>{a!=null&&c(a)},[a]);const u=l.useRef(r),d=l.useRef(s),p=l.useRef(a!==void 0);l.useEffect(()=>{!p.current&&d.current&&typeof u.current=="function"&&u.current(d.current)},[]);const m=l.useCallback(h=>{const g=s===h?null:h;c(g),r?.(g)},[s,r]);return o.jsx("div",{className:`icon-grid-menu icon-grid-menu--${n}`,children:(t||[]).map(h=>o.jsx(Ak,{category:h,isSelected:s===h.key,onClick:()=>m(h.key)},h.key))})}var Tk=".ihabdevteam-core-scope .choice-chips{display:block;width:100%}.ihabdevteam-core-scope .choice-chips--medium{margin-bottom:60px}.ihabdevteam-core-scope .choice-chips--small{margin-bottom:var(--spacing-l)}.ihabdevteam-core-scope .choice-chips__list{align-items:center;display:flex;flex-wrap:wrap;gap:var(--spacing-s);justify-content:center;padding-bottom:6px}.ihabdevteam-core-scope .choice-chips__list::-webkit-scrollbar{height:8px}.ihabdevteam-core-scope .choice-chips__list::-webkit-scrollbar-thumb{background:rgba(0,0,0,.08);border-radius:var(--radius-sm)}.ihabdevteam-core-scope .choice-chips__button{background:var(--color-deepWhite)!important;border:1px solid var(--color-whiteLine)!important;border-radius:var(--radius-s)!important;color:var(--color-darkGray)!important;height:40px!important;padding:0 24px!important;transition:all .12s!important;white-space:nowrap}.ihabdevteam-core-scope .choice-chips__button:hover{border-color:var(--color-main)!important}.ihabdevteam-core-scope .choice-chips--small .choice-chips__button{height:32px!important;padding:0 16px!important}.ihabdevteam-core-scope .choice-chips--small .choice-chips__list{gap:var(--spacing-xs)}.ihabdevteam-core-scope .choice-chips__button.is-selected{animation:chip-sub-to-main .36s cubic-bezier(.4,0,.2,1) forwards;background:var(--color-main)!important;border:1px solid var(--color-main)!important;box-shadow:var(--shadow-dropdown);color:#fff!important}@keyframes chip-sub-to-main{0%{background-color:var(--color-sub)}to{background-color:var(--color-main)}}";J(Tk);function fb({subs:e=[],selected:t,onSelect:a,size:r="medium"}){const n=r==="small"?32:40;return o.jsx("div",{className:`choice-chips choice-chips--${r}`,children:o.jsx("div",{className:"choice-chips__list",children:e.map(i=>o.jsx(se,{size:n,type:"bar",label:i.label,selected:t===i.key,className:"choice-chips__button",onClick:()=>a?.(i.key)},i.key))})})}var Bk=".ihabdevteam-core-scope .site-footer{background:var(--color-deepWhite);border-top:1px solid var(--color-whiteLine);box-sizing:border-box;color:var(--color-gray);padding:var(--spacing-page)}.ihabdevteam-core-scope .site-footer__top{align-items:flex-start;display:flex;gap:40px;justify-content:space-between}.ihabdevteam-core-scope .site-footer__brand{flex:0 0 220px;width:220px}.ihabdevteam-core-scope .site-footer__lead{color:var(--color-gray);text-align:left}.ihabdevteam-core-scope .site-footer__links{align-items:flex-start;display:flex;flex:1 1 auto;flex-wrap:wrap;gap:100px 10px;min-width:320px}.ihabdevteam-core-scope .site-footer__column{flex:0 0 160px;min-width:160px;text-align:left}.ihabdevteam-core-scope .site-footer__column-title{color:var(--color-lightGray)}.ihabdevteam-core-scope .footer-title{color:var(--color-lightGray);display:inline-block;font-size:13px;font-weight:600;line-height:20px;width:80px}.ihabdevteam-core-scope .site-footer__column ul{list-style:none;margin:10px 0 0;padding:0}.ihabdevteam-core-scope .site-footer__column li{margin-bottom:6px}.ihabdevteam-core-scope .footer-link,.ihabdevteam-core-scope .site-footer__column a{color:var(--color-lightGray);text-decoration:none}.ihabdevteam-core-scope .footer-link{align-items:center;display:inline-flex;font-size:13px;line-height:20px;min-height:24px;min-width:24px;transition:color .12s ease}.ihabdevteam-core-scope .footer-copyright,.ihabdevteam-core-scope .footer-meta{line-height:18px}.ihabdevteam-core-scope .footer-link:focus,.ihabdevteam-core-scope .footer-link:hover{color:var(--color-main);text-decoration:none}.ihabdevteam-core-scope .site-footer__rule{border:none;border-top:1px solid var(--color-darkWhite);margin:40px 0}.ihabdevteam-core-scope .site-footer__bottom{align-items:center;display:flex;gap:40px;justify-content:flex-start}.ihabdevteam-core-scope .site-footer__logo{height:52px}.ihabdevteam-core-scope .site-footer__bottom .site-footer__brand{align-items:center;display:flex;justify-content:center}.ihabdevteam-core-scope .site-footer__meta{color:var(--color-lightGray);text-align:left}.ihabdevteam-core-scope .site-footer__copyright{align-items:center;box-sizing:border-box;color:var(--color-lightGray);display:flex;justify-content:center;margin:var(--spacing-page) 0 0 0;text-align:center;width:100%}@media (max-width:1024px){.ihabdevteam-core-scope .site-footer__top{flex-direction:column;gap:var(--spacing-page)}.ihabdevteam-core-scope .site-footer__brand{flex:0 0 auto;width:100%}.ihabdevteam-core-scope .site-footer__links{gap:20px 10px;margin:0;min-width:0;width:100%}.ihabdevteam-core-scope .site-footer__bottom{align-items:flex-start;flex-direction:column;gap:var(--spacing-page)}.ihabdevteam-core-scope .site-footer__meta{width:100%}.ihabdevteam-core-scope .site-footer__logo{height:50px}}@media (max-width:767px){.ihabdevteam-core-scope .site-footer__logo{height:48px}}";J(Bk);function vb({onTermsClick:e,onPrivacyClick:t,contact:a}={}){const r=a?.email??"support@ihab.co.kr",n=a?.tel??"031-380-3724",{t:i}=ge.useTranslation();return o.jsx("footer",{className:"site-footer",children:o.jsxs("div",{className:"safearea",children:[o.jsxs("div",{className:"site-footer__top",children:[o.jsx("div",{className:"site-footer__brand",children:o.jsx("div",{className:"site-footer__lead h3",children:i("footer.lead",`\uC544\uC774\uD574\uBE0C\uB294 \uC18C\uB9AC\uB97C \uD1B5\uD574
|
|
979
979
|
\uC2E0\uB8B0\uB97C \uC313\uACE0
|
|
980
980
|
\uD68C\uBCF5\uC744 \uB3D5\uC2B5\uB2C8\uB2E4.`).split(`
|
|
981
|
-
`).map((s,c,u)=>o.jsxs(l.Fragment,{children:[s,c<u.length-1&&o.jsx("br",{})]},c))})}),o.jsxs("div",{className:"site-footer__links",children:[o.jsxs("div",{className:"site-footer__column",children:[o.jsx("div",{className:"site-footer__column-title footer-title",children:i("footer.site.title","\uC0AC\uC774\uD2B8")}),o.jsxs("ul",{children:[o.jsx("li",{children:o.jsx("a",{className:"footer-link",href:"https://www.ihab.co.kr/",target:"_blank",rel:"noopener noreferrer",children:"IHAB"})}),o.jsx("li",{children:o.jsx("a",{className:"footer-link",href:"https://speechear.ihab.co.kr/",target:"_blank",rel:"noopener noreferrer",children:i("footer.site.malgwi","\uB9D0\uADC0")})}),o.jsx("li",{children:o.jsx("a",{className:"footer-link",href:"https://ihab-offcial-web.vercel.app/product/sound-localization",target:"_blank",rel:"noopener noreferrer",children:i("footer.site.soundDirection","\uC18C\uB9AC\uBC29\uD5A5\uC131\uC2DC\uC2A4\uD15C")})}),o.jsx("li",{children:o.jsx("a",{className:"footer-link",href:"https://ihab-offcial-web.vercel.app/product/vr-sound-localization",target:"_blank",rel:"noopener noreferrer",children:i("footer.site.vrSoundDirection","VR\uC18C\uB9AC\uBC29\uD5A5\uC131\uC2DC\uC2A4\uD15C")})}),o.jsx("li",{children:o.jsx("a",{className:"footer-link",href:"https://ihab-offcial-web.vercel.app/product/hearing-test-pro",target:"_blank",rel:"noopener noreferrer",children:i("footer.site.hearingTest","\uCCAD\uB825\uD14C\uC2A4\uD2B8 \uD504\uB85C")})})]})]}),o.jsxs("div",{className:"site-footer__column",children:[o.jsx("div",{className:"site-footer__column-title footer-title",children:i("footer.sns.title","SNS")}),o.jsxs("ul",{children:[o.jsx("li",{children:o.jsx("a",{className:"footer-link",href:"https://blog.naver.com/ihab_official",target:"_blank",rel:"noopener noreferrer",children:i("footer.sns.naverBlog","\uB124\uC774\uBC84 \uBE14\uB85C\uADF8")})}),o.jsx("li",{children:o.jsx("a",{className:"footer-link",href:"https://www.instagram.com/ihab.official.yt/",target:"_blank",rel:"noopener noreferrer",children:"Instagram"})}),o.jsx("li",{children:o.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"})})]})]}),o.jsxs("div",{className:"site-footer__column",children:[o.jsx("div",{className:"site-footer__column-title footer-title",children:i("footer.policy.title","\uC815\uCC45")}),o.jsxs("ul",{children:[o.jsx("li",{children:o.jsx("a",{className:"footer-link",href:"#",onClick:s=>{e&&(s.preventDefault(),e())},children:i("footer.policy.terms","\uC774\uC6A9\uC57D\uAD00")})}),o.jsx("li",{children:o.jsx("a",{className:"footer-link",href:"#",onClick:s=>{t&&(s.preventDefault(),t())},children:i("footer.policy.privacy","\uAC1C\uC778\uC815\uBCF4 \uCC98\uB9AC\uBC29\uCE68")})})]})]})]})]}),o.jsx("hr",{className:"site-footer__rule"}),o.jsxs("div",{className:"site-footer__bottom",children:[o.jsx("div",{className:"site-footer__brand",children:o.jsx("img",{src:Ml,alt:"IHAB",className:"site-footer__logo"})}),o.jsxs("div",{className:"site-footer__meta",children:[o.jsxs("div",{children:[o.jsx("span",{className:"footer-title",children:i("footer.ceo","\uB300\uD45C")}),o.jsx("span",{className:"footer-meta caption-1",children:i("footer.ceoName","\uD55C\uC9C0\uD61C")})]}),o.jsxs("div",{children:[o.jsx("span",{className:"footer-title",children:i("footer.address","\uC8FC\uC18C")}),o.jsx("span",{className:"footer-meta caption-1",children:i("footer.addressValue","\uAC15\uC6D0\uB3C4 \uCD98\uCC9C\uC2DC \uC2DC\uCCAD\uAE38 32 \uD574\uCC2C\uBE4C\uB529 3\uCE35 302\uD638")})]}),o.jsxs("div",{children:[o.jsx("span",{className:"footer-title",children:i("footer.support","\uACE0\uAC1D\uC13C\uD130")}),o.jsxs("span",{className:"footer-meta caption-1",children:[r," \xA0 ",n]})]})]})]}),o.jsx("div",{className:"site-footer__copyright footer-copyright caption-1",children:"\xA9 IHAB, Inc. All rights reserved."})]})})}var Nk='.ihabdevteam-core-scope .landing-header{background:var(--landing-header-bg,var(--color-deepWhite));border-bottom:1px solid rgba(15,18,60,.05);border-bottom:1px solid var(--landing-header-border,rgba(15,18,60,.05));position:sticky;top:0;transform:translateZ(0);will-change:transform;z-index:500;z-index:var(--z-sticky,500)}.ihabdevteam-core-scope .landing-header__inner{align-items:center;display:flex;height:72px;height:var(--landing-header-height,72px);justify-content:space-between;position:relative}.ihabdevteam-core-scope .landing-header__brand{align-items:center;display:flex;flex:0 0 auto;margin-right:auto;text-decoration:none}.ihabdevteam-core-scope .landing-header__logo{display:block;height:40px;height:var(--landing-header-logo-height,40px);max-width:none;transform-origin:left center;transition:transform .3s cubic-bezier(.2,.9,.2,1.2),filter .3s;width:auto}.ihabdevteam-core-scope .landing-header__brand:hover .landing-header__logo{filter:brightness(1.08);transform:scale(1.05)}.ihabdevteam-core-scope .landing-header__links{align-items:center;color:var(--landing-header-link-color,var(--color-deepGray));display:flex;font-size:15px;font-weight:500;gap:36px;left:50%;position:absolute;transform:translateX(-50%)}.ihabdevteam-core-scope .landing-header__links a{color:inherit;padding:6px 0;position:relative;text-decoration:none;transition:color .2s}.ihabdevteam-core-scope .landing-header__links a:hover{color:var(--landing-header-link-hover,var(--color-main))}.ihabdevteam-core-scope .landing-header__links a:after{background:linear-gradient(90deg,var(--color-main),var(--color-sub));border-radius:1px;bottom:0;content:"";height:2px;left:0;position:absolute;right:100%;transition:right .35s cubic-bezier(.2,.7,.2,1)}.ihabdevteam-core-scope .landing-header__links a:hover:after{right:0}.ihabdevteam-core-scope .landing-header__actions{align-items:center;display:flex;gap:8px;gap:var(--spacing-xs,8px)}.ihabdevteam-core-scope .landing-header__toggle{align-items:center;background:none;border:0;color:var(--landing-header-link-color,var(--color-deepGray));cursor:pointer;display:none;height:44px;justify-content:center;margin-right:-10px;width:44px}.ihabdevteam-core-scope .landing-header__burger{display:block;height:14px;position:relative;width:22px}.ihabdevteam-core-scope .landing-header__burger>span{background:currentColor;border-radius:1px;height:2px;inset-inline:0;position:absolute;transition:transform .2s cubic-bezier(.2,.7,.2,1),opacity .2s cubic-bezier(.2,.7,.2,1)}.ihabdevteam-core-scope .landing-header__burger>span:first-child{top:0}.ihabdevteam-core-scope .landing-header__burger>span:nth-child(2){top:6px}.ihabdevteam-core-scope .landing-header__burger>span:nth-child(3){top:12px}.ihabdevteam-core-scope .landing-header__toggle--open .landing-header__burger>span:first-child{transform:translateY(6px) rotate(45deg)}.ihabdevteam-core-scope .landing-header__toggle--open .landing-header__burger>span:nth-child(2){opacity:0}.ihabdevteam-core-scope .landing-header__toggle--open .landing-header__burger>span:nth-child(3){transform:translateY(-6px) rotate(-45deg)}.ihabdevteam-core-scope .landing-header__drawer{background:var(--landing-header-bg,var(--color-deepWhite));border-top:1px solid rgba(15,18,60,.05)}.ihabdevteam-core-scope .landing-header__drawer-item{display:block}.ihabdevteam-core-scope .landing-header__drawer-item a{align-items:center;color:var(--landing-header-link-color,var(--color-deepGray));display:flex;font-size:15px;font-weight:500;min-height:48px;text-decoration:none;transition:color .2s}.ihabdevteam-core-scope .landing-header__drawer-item a:hover,.ihabdevteam-core-scope .landing-header__drawer-item a[aria-current=page]{color:var(--landing-header-link-hover,var(--color-main))}@media (max-width:960px){.ihabdevteam-core-scope .landing-header__links{display:none}.ihabdevteam-core-scope .landing-header__toggle{display:flex}}@media (min-width:961px){.ihabdevteam-core-scope .landing-header__drawer{display:none}}';J(Nk);function yb({logo:e,logoAlt:t="",logoHref:a,links:r=[],actions:n,className:i,containerClassName:s,renderLink:c,menuLabel:u={open:"\uBA54\uB274 \uC5F4\uAE30",close:"\uBA54\uB274 \uB2EB\uAE30"}}){const[d,p]=l.useState(!1),m=s?`${s} landing-header__inner`:"landing-header__inner",h=(g,f)=>c?c(g,{onClick:f}):o.jsx("a",{href:g.href,onClick:f,"aria-current":g.current?"page":void 0,children:g.label});return o.jsxs("header",{className:i?`landing-header ${i}`:"landing-header",children:[o.jsxs("div",{className:m,children:[e!=null&&(()=>{const g=typeof e=="string"?o.jsx("img",{src:e,alt:t,className:"landing-header__logo"}):e;return a?o.jsx("a",{href:a,className:"landing-header__brand",children:g}):o.jsx("div",{className:"landing-header__brand",children:g})})(),r.length>0&&o.jsx("nav",{className:"landing-header__links",children:r.map(g=>o.jsx("span",{children:h(g)},g.href))}),o.jsxs("div",{className:"landing-header__actions",children:[n,r.length>0&&o.jsx("button",{type:"button",onClick:()=>p(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:o.jsxs("span",{className:"landing-header__burger",children:[o.jsx("span",{}),o.jsx("span",{}),o.jsx("span",{})]})})]})]}),r.length>0&&o.jsx("nav",{id:"landing-header-drawer",hidden:!d,className:"landing-header__drawer",children:o.jsx("div",{className:s??void 0,children:r.map(g=>o.jsx("span",{className:"landing-header__drawer-item",children:h(g,()=>p(!1))},g.href))})})]})}var Dk=".ihabdevteam-core-scope .bottom-sticky{animation:bottom-sticky-in .4s cubic-bezier(.2,.9,.2,1) both;bottom:24px;bottom:var(--bottom-sticky-offset,24px);left:50%;max-width:680px;max-width:var(--bottom-sticky-max-width,680px);position:fixed;transform:translateX(-50%);width:calc(100% - 48px);z-index:500;z-index:var(--z-sticky,500)}@keyframes bottom-sticky-in{0%{opacity:0;transform:translateX(-50%) translateY(16px)}to{opacity:1;transform:translateX(-50%) translateY(0)}}.ihabdevteam-core-scope .bottom-sticky__inner{align-items:center;background:var(--bottom-sticky-bg,var(--color-pureWhite));border-radius:20px;border-radius:var(--radius-m,20px);box-shadow:0 8px 40px rgba(15,18,60,.18),0 2px 8px rgba(15,18,60,.06);display:flex;gap:16px;gap:var(--spacing-m,16px);justify-content:space-between;padding:12px 12px 12px 24px;transition:box-shadow .2s,transform .2s}.ihabdevteam-core-scope .bottom-sticky__inner--clickable{cursor:pointer}.ihabdevteam-core-scope .bottom-sticky__inner--clickable:hover{border:1px solid var(--color-main);box-shadow:0 16px 56px color-mix(in srgb,var(--color-main) 30%,transparent),0 4px 12px color-mix(in srgb,var(--color-main) 15%,transparent);transform:translateY(-4px)}.ihabdevteam-core-scope .bottom-sticky__content{align-items:center;display:flex;flex:1;gap:12px;gap:var(--spacing-s,12px);justify-content:center}.ihabdevteam-core-scope .bottom-sticky__tagline{align-items:center;color:var(--color-black);display:flex;gap:0;margin:0;white-space:nowrap}.ihabdevteam-core-scope .bottom-sticky__tagline-highlight{background:linear-gradient(90deg,var(--color-main),var(--color-sub),var(--color-infoLink));-webkit-background-clip:text;background-clip:text;color:transparent;display:inline}.ihabdevteam-core-scope .bottom-sticky__tagline-part{align-items:center;display:flex;white-space:nowrap}.ihabdevteam-core-scope .bottom-sticky__tagline-logo{display:block;height:32px;width:auto}@media (max-width:600px){.ihabdevteam-core-scope .bottom-sticky{bottom:16px;bottom:var(--bottom-sticky-offset,16px);width:calc(100% - 32px)}.ihabdevteam-core-scope .bottom-sticky__inner{align-items:stretch;flex-direction:column;gap:12px;gap:var(--spacing-s,12px);padding:16px;padding:var(--spacing-m,16px)}.ihabdevteam-core-scope .bottom-sticky__content{flex:none;gap:6px;justify-content:center}.ihabdevteam-core-scope .bottom-sticky__tagline{flex-wrap:wrap;justify-content:center;text-align:center;white-space:normal}.ihabdevteam-core-scope .bottom-sticky__tagline-logo{height:26px}}";J(Dk);function xb({children:e,action:t,onClick:a,className:r}){const n=a?"bottom-sticky__inner bottom-sticky__inner--clickable":"bottom-sticky__inner";return o.jsx("div",{className:r?`bottom-sticky ${r}`:"bottom-sticky",children:o.jsxs("div",{className:n,onClick:a,..._m(a),children:[o.jsx("div",{className:"bottom-sticky__content",children:e}),t]})})}const dc=9,Ek=e=>Math.round(Math.min(dc,Math.max(0,e))/dc*100),jk=e=>e/100*dc,Cb={enabled:!0,type:"defaultNoise",level:4.5,speed:1,mainVolume:1,mainSpeed:1},_b=l.createContext(null);function uc(){return l.useContext(_b)}const pc=e=>`${ti()}/${e}`,wb=e=>Array.from({length:10},(t,a)=>pc(`${e}-${String(a+1).padStart(2,"0")}.mp3`)),En={get defaultNoise(){return pc("noise1.mp3")},get street(){return wb("noise2")},get restaurant(){return wb("noise3")},get buzz(){return pc("noise4.mp3")}};function Lk(e){const t=Math.floor(Math.random()*10);switch(e){case"defaultNoise":return En.defaultNoise;case"street":return En.street[t];case"restaurant":return En.restaurant[t];case"buzz":return En.buzz;default:return null}}function Mk({noisePlayer:e,audioRef:t,playbackStateRef:a}){const r=l.useRef(e?.registerAnalyser);r.current=e?.registerAnalyser;const n=l.useRef(null),[i,s]=l.useState(null),c=l.useRef(null),u=l.useRef(null),d=l.useRef(null),p=l.useRef(0),m=l.useRef(null),h=l.useCallback(()=>{d.current!==null&&(cancelAnimationFrame(d.current),d.current=null),m.current!==null&&(clearTimeout(m.current),m.current=null)},[]),g=l.useCallback((y,v=250)=>{const C=n.current;if(!C||!C.src)return;p.current+=1,h();try{Ho(),r.current?.("noise",Vo(C))}catch{}const w=C.paused?0:C.volume;C.paused&&(C.volume=0),C.play().catch(()=>{});const x=performance.now(),S=()=>{const _=Math.min(1,(performance.now()-x)/v);try{C.volume=Math.max(0,Math.min(1,w+(y-w)*_))}catch{}_<1?d.current=requestAnimationFrame(S):d.current=null};d.current=requestAnimationFrame(S)},[h]),f=l.useCallback((y=250,v)=>{const C=n.current;if(!C||C.paused){v?.();return}const w=++p.current;h();const x=performance.now(),S=C.volume,_=()=>{const k=Math.min(1,(performance.now()-x)/y);try{C.volume=Math.max(0,S*(1-k))}catch{}if(k<1)d.current=requestAnimationFrame(_);else{d.current=null,m.current!==null&&(clearTimeout(m.current),m.current=null);try{C.pause()}catch{}v?.()}};d.current=requestAnimationFrame(_),m.current=setTimeout(()=>{if(m.current=null,p.current===w){d.current!==null&&(cancelAnimationFrame(d.current),d.current=null);try{C.paused||(C.volume=0,C.pause(),v?.())}catch{}}},y+150)},[h]);l.useEffect(()=>{const y=document.createElement("audio");return y.loop=!0,y.crossOrigin="anonymous",n.current=y,()=>{h();try{y.pause(),y.src=""}catch{}n.current=null}},[h]);const b=!!e?.settings.enabled&&(e?.settings.level??0)>0;return l.useEffect(()=>{if(!b)return;let y=0;const v=setInterval(()=>{const C=n.current;if(!C||C.paused){y=0;return}const w=t.current;if(w&&!w.paused&&!w.ended||a.current==="playing"){y=0;return}y+=1,y>=2&&(y=0,f())},400);return()=>clearInterval(v)},[f,b,t,a]),l.useEffect(()=>{const y=()=>{if(!document.hidden)return;const v=n.current;if(v&&!v.paused){h();try{v.pause()}catch{}}};return document.addEventListener("visibilitychange",y),()=>document.removeEventListener("visibilitychange",y)},[h]),l.useEffect(()=>{u.current=e?{enabled:e.settings.enabled,level:e.settings.level,type:e.settings.type}:null},[e,e?.settings.enabled,e?.settings.level,e?.settings.type]),l.useEffect(()=>{const y=e?.settings,v=n.current;if(!v)return;if(!y||!y.enabled||y.level===0){f();return}const C=Math.min(1,y.level/9);if(c.current!==y.type){const w=Lk(y.type);w&&(c.current=y.type,s(w),f(150,()=>{v.src=w,v.load();const x=t.current;x&&!x.paused&&v.addEventListener("canplay",function S(){v.removeEventListener("canplay",S);const _=t.current;_&&!_.paused&&!_.ended&&g(C)})}))}else{const w=t.current,x=!!w&&!w.paused&&!w.ended;if(x&&v.paused&&v.src)g(C);else if(!v.paused)if(!x)f();else{h();const S=v.volume,_=performance.now(),k=()=>{const N=Math.min(1,(performance.now()-_)/150);try{v.volume=S+(C-S)*N}catch{}N<1?d.current=requestAnimationFrame(k):d.current=null};d.current=requestAnimationFrame(k)}}},[e?.settings,e?.settings.enabled,e?.settings.level,e?.settings.type,h,g,f,t]),l.useEffect(()=>{const y=n.current;if(y)try{y.playbackRate=Math.min(1.25,Math.max(.75,e?.settings.speed??1))}catch{}},[e?.settings.speed]),{noiseAudioRef:n,activeNoiseUrl:i,noiseSettingsRef:u,cancelNoiseFade:h,fadeInNoise:g,fadeOutNoise:f}}function Pk({ttsText:e,playbackRate:t,mainVolume:a,fillRef:r,waveProgressRef:n,setProgress:i,setPlaybackState:s,setStateLocal:c,fadeInNoise:u,fadeOutNoise:d,noiseSettingsRef:p,onDoneRef:m,handleEndRef:h}){const g=l.useRef(null),f=l.useRef(0),b=l.useRef(null);l.useEffect(()=>()=>{try{if(b.current&&(cancelAnimationFrame(b.current),b.current=null),window.speechSynthesis)try{window.speechSynthesis.cancel()}catch{}}catch{}},[]);const y=(w,x=1)=>{try{const S=(w||"").trim().split(/\s+/).filter(Boolean).length||Math.max(1,(w||"").length);return Math.max(700,Math.round(S*300/Math.max(.25,x)))}catch{return 1200}},v=l.useCallback(w=>{if(typeof window>"u"||!window.speechSynthesis){try{typeof m.current=="function"&&m.current(!0)}catch{}return}const x=window.speechSynthesis;try{try{x.cancel()}catch{}const S=w??e,_=(Array.isArray(S)?S[0]??"":S)||"",k=new SpeechSynthesisUtterance(_);try{k.rate=Math.max(.3,Math.min(3,t))}catch{}try{k.volume=Math.max(0,Math.min(1,a))}catch{}f.current=y(_,k.rate||1),g.current=performance.now(),i(0),s("playing"),c("playMode");const N=p.current;N?.enabled&&(N?.level??0)>0&&u(N.level/9);const A=()=>{try{const D=g.current||performance.now(),H=performance.now()-D,P=f.current||1200,T=Math.min(1,H/P);i(T);try{r.current&&(r.current.style.left=`${T*100}%`),n.current&&n.current.style.setProperty("--progress",String(T))}catch{}T<1&&(b.current=requestAnimationFrame(A))}catch{}};k.onend=()=>{try{b.current&&(cancelAnimationFrame(b.current),b.current=null),i(1),s("stopped");try{h.current?.()}catch{try{typeof m.current=="function"&&m.current(!0)}catch{}}}catch{}},k.onstart=()=>{try{b.current&&(cancelAnimationFrame(b.current),b.current=null),b.current=requestAnimationFrame(A)}catch{}};try{x.speak(k)}catch{try{typeof m.current=="function"&&m.current(!0)}catch{}}}catch{try{typeof m.current=="function"&&m.current(!0)}catch{}}},[e,t,a,u,r,n,i,s,c,p,m,h]),C=l.useCallback(()=>{try{if(window.speechSynthesis)try{window.speechSynthesis.cancel()}catch{}b.current&&(cancelAnimationFrame(b.current),b.current=null),d(),g.current=null}catch{}s("stopped"),c("active"),i(0)},[d,s,c,i]);return{startTTS:v,stopTTS:C}}var Rk='.ihabdevteam-core-scope .audio-player{align-items:center;display:flex;flex-direction:column;width:100%}.ihabdevteam-core-scope .audio-player__no-waveform{align-items:center;align-self:flex-start;color:var(--color-lightGray);display:flex;gap:4px;margin:6px 0 0}.ihabdevteam-core-scope .audio-player__no-waveform .iconRenderer-icon{align-items:center;display:inline-flex}.ihabdevteam-core-scope .audio-player__panel{align-items:center;background:linear-gradient(90deg,var(--color-main),var(--color-sub));background:linear-gradient(var(--angle,90deg),var(--color-main),var(--color-sub));border-radius:var(--radius-m);display:flex;height:120px;position:relative;width:100%}.ihabdevteam-core-scope .audio-player.is-disabled .audio-player__panel{background:var(--color-darkWhite);border:1px solid var(--color-darkWhite)}.ihabdevteam-core-scope .audio-player.is-disabled .audio-player__buttons,.ihabdevteam-core-scope .audio-player.is-disabled .audio-player__play,.ihabdevteam-core-scope .audio-player.is-disabled .audio-player__wave{pointer-events:none}.ihabdevteam-core-scope .audio-player.is-disabled .audio-player__buttons .button,.ihabdevteam-core-scope .audio-player.is-disabled .audio-player__play .button{opacity:.7}.ihabdevteam-core-scope .audio-player__play{align-items:center;bottom:0;display:flex;height:100%;justify-content:center;left:0;opacity:0;pointer-events:none;position:relative;right:0;top:0;transition:opacity .16s ease,transform .16s ease;width:100%;z-index:10}.ihabdevteam-core-scope .audio-player__play.is-visible{opacity:1;pointer-events:auto}.ihabdevteam-core-scope .audio-player__panel>.button{left:50%;position:absolute;top:50%;transform:translate(-50%,-50%);transition:opacity .16s ease,transform .16s ease;will-change:opacity,transform;z-index:35}.ihabdevteam-core-scope .audio-player__button{align-items:center;background:transparent;border:0;cursor:pointer;display:flex;inset:0;justify-content:center;padding:0;position:absolute;z-index:35}.ihabdevteam-core-scope .audio-player__button-triangle-wrap{align-items:center;display:flex;height:90px;justify-content:center;transition:transform .32s cubic-bezier(.2,.7,.2,1);width:90px}.ihabdevteam-core-scope .audio-player__button:hover .audio-player__button-triangle-wrap{transform:scale(1.18)}.ihabdevteam-core-scope .audio-player__button:active .audio-player__button-triangle-wrap{transform:scale(1.06)}.ihabdevteam-core-scope .audio-player__button-triangle{height:100%;width:100%}.ihabdevteam-core-scope .audio-player__button-triangle path{fill:none;stroke:#fff;stroke-linecap:round;stroke-linejoin:round;stroke-width:2.6}.ihabdevteam-core-scope .audio-player.is-disabled .audio-player__button{cursor:default;opacity:.5;pointer-events:none}.ihabdevteam-core-scope .audio-player__slider{align-items:center;bottom:50px;box-sizing:border-box;display:flex;left:20px;pointer-events:none;position:absolute;right:20px;top:20px}.ihabdevteam-core-scope .audio-player__buttons{align-items:center;border-radius:999px;bottom:10px;box-sizing:border-box;display:flex;gap:0;height:28px;justify-content:center;left:0;pointer-events:auto;position:absolute;right:0;z-index:40}.ihabdevteam-core-scope .audio-player__source-buttons{align-items:center;border:1px solid var(--color-white-a30);border-radius:var(--radius-m);display:inline-flex;justify-content:center;overflow:visible}.ihabdevteam-core-scope .audio-player__source-buttons .button{flex:0 0 auto;max-width:60px}.ihabdevteam-core-scope .audio-player__buttons .button[aria-label=\\B2E4\\C74C],.ihabdevteam-core-scope .audio-player__buttons .button[aria-label=\\C774\\C804],.ihabdevteam-core-scope .audio-player__buttons .button[aria-label=\\C815\\C9C0]{display:none}.ihabdevteam-core-scope .audio-player__buttons>.button{align-items:center;display:inline-flex;justify-content:center;margin:0;width:auto}.ihabdevteam-core-scope .audio-player__fill{backface-visibility:hidden;background:var(--color-pureWhite);border-radius:var(--radius-sm);height:100%;left:0;opacity:0;pointer-events:none;position:absolute;top:50%;transform:translateX(-50%) translateY(-50%) scaleY(0);transform-origin:center center;transition:transform .28s cubic-bezier(.2,.8,.2,1),opacity .16s ease;width:8px;will-change:transform,opacity;z-index:70}.ihabdevteam-core-scope .audio-player__fill.is-visible{opacity:1}.ihabdevteam-core-scope .audio-player__fill.is-expanded{transform:translateX(-50%) translateY(-50%) scaleY(1)}.ihabdevteam-core-scope .audio-player__fill.is-paused{transition:opacity .16s ease}.ihabdevteam-core-scope .audio-player__fill.is-out{animation:audio-player-fill-out .28s cubic-bezier(.2,.8,.2,1) forwards}@keyframes audio-player-fill-out{0%{opacity:1;transform:translateX(-50%) translateY(-50%) scaleY(1)}to{opacity:0;transform:translateX(-50%) translateY(-50%) scaleY(0)}}.ihabdevteam-core-scope .audio-player__loading{align-items:center;background:transparent;border-radius:var(--radius-sm);color:rgba(0,0,0,.85);color:var(--audio-loading-foreground,rgba(0,0,0,.85));display:inline-flex;font-size:13px;gap:var(--spacing-xs);left:50%;padding:0;pointer-events:none;position:absolute;top:50%;transform:translate(-50%,-50%);z-index:999}.ihabdevteam-core-scope .audio-player__debug{align-items:center;background:hsla(0,0%,100%,.06);border-radius:18px;color:#fff;display:flex;font-size:12px;gap:8px;padding:6px 10px;pointer-events:none;position:absolute;right:12px;top:12px}.ihabdevteam-core-scope .audio-player__debug-dot{border-radius:10px;box-shadow:0 0 6px rgba(0,0,0,.4);display:inline-block;height:10px;width:10px}.ihabdevteam-core-scope .audio-player__loading .audio-player__loading-text,.ihabdevteam-core-scope .audio-player__panel.is-loading .audio-player__loading-text{display:none}.ihabdevteam-core-scope .audio-player__loading-spinner{animation:audio-player-spinner .9s linear infinite;border:4px solid hsla(0,0%,100%,.2);border-radius:50%;border-top-color:#fff;filter:drop-shadow(0 2px 6px rgba(0,0,0,.25));height:40px;width:40px}@keyframes audio-player-spinner{to{transform:rotate(1turn)}}.ihabdevteam-core-scope .audio-player__wave{height:90%;position:absolute}.ihabdevteam-core-scope .audio-player__wave,.ihabdevteam-core-scope .audio-player__wave-inner{align-items:center;display:flex;justify-content:center;pointer-events:none;width:100%;z-index:60}.ihabdevteam-core-scope .audio-player__wave-inner{cursor:default;gap:3px;gap:var(--bar-gap,3px);height:100%;margin:0 auto;padding:0}.ihabdevteam-core-scope .audio-player__wave-inner:not(.is-ready) .audio-player__bar:after{opacity:0}.ihabdevteam-core-scope .audio-player__wave-inner.is-ready .audio-player__bar:after{animation:wave-bar-in .35s cubic-bezier(.22,.9,.3,1) both;animation-delay:0ms;animation-delay:calc(var(--i, 0)*2ms)}@keyframes wave-bar-in{0%{opacity:0;transform:translateY(-50%) scaleY(.05)}to{opacity:1;transform:translateY(-50%) scaleY(.15);transform:translateY(-50%) scaleY(var(--val,.15))}}.ihabdevteam-core-scope .audio-player__wave-inner.is-ready .audio-player__bar--hidden:after,.ihabdevteam-core-scope .audio-player__wave-noise.is-ready .audio-player__bar--hidden:after{animation:none;opacity:0}.ihabdevteam-core-scope .audio-player__wave-played{bottom:0;clip-path:inset(0 100% 0 0);clip-path:inset(0 calc((1 - var(--progress, 0))*100%) 0 0);left:0;pointer-events:none;position:absolute;right:0;top:0}.ihabdevteam-core-scope .audio-player__bar{box-sizing:border-box;flex:0 0 3px;flex:0 0 var(--bar-w,3px);height:100%;position:relative}.ihabdevteam-core-scope .audio-player__wave-unplayed .audio-player__bar:after{background:color-mix(in srgb,var(--color-lightMain),var(--color-lightSub) 0);border-radius:999px;content:"";height:100%;left:0;opacity:1;position:absolute;right:0;top:50%;transform:translateY(-50%) scaleY(.15);transform:translateY(-50%) scaleY(var(--val,.15));transform-origin:center center;z-index:61}@supports (color:color-mix(in lch,red,blue)) and (top:var(--f )){.ihabdevteam-core-scope .audio-player__wave-unplayed .audio-player__bar:after{background:color-mix(in srgb,var(--color-lightMain),var(--color-lightSub) calc(var(--mix, 0)*100%))}}.ihabdevteam-core-scope .audio-player__wave-played .audio-player__bar:after{background:color-mix(in srgb,var(--color-lightMain),var(--color-lightSub) 0);border-radius:999px;content:"";height:100%;left:0;opacity:1;position:absolute;right:0;top:50%;transform:translateY(-50%) scaleY(.15);transform:translateY(-50%) scaleY(var(--val,.15));transform-origin:center center;z-index:62}@supports (color:color-mix(in lch,red,blue)) and (top:var(--f )){.ihabdevteam-core-scope .audio-player__wave-played .audio-player__bar:after{background:color-mix(in srgb,var(--color-lightMain),var(--color-lightSub) calc(var(--mix, 0)*100%))}}.ihabdevteam-core-scope .audio-player__wave-noise{align-items:center;bottom:0;display:flex;gap:3px;gap:var(--bar-gap,3px);justify-content:center;left:0;margin:0 auto;pointer-events:none;position:absolute;right:0;top:0;width:100%;z-index:58}.ihabdevteam-core-scope .audio-player__wave-noise .audio-player__bar:after{background:color-mix(in srgb,var(--color-deepMain),var(--color-deepSub) 0);border-radius:999px;content:"";height:100%;left:0;opacity:1;position:absolute;right:0;top:50%;transform:translateY(-50%) scaleY(.1);transform:translateY(-50%) scaleY(var(--val,.1));transform-origin:center center;z-index:58}@supports (color:color-mix(in lch,red,blue)) and (top:var(--f )){.ihabdevteam-core-scope .audio-player__wave-noise .audio-player__bar:after{background:color-mix(in srgb,var(--color-deepMain),var(--color-deepSub) calc(var(--mix, 0)*100%))}}.ihabdevteam-core-scope .audio-player__wave-noise:not(.is-ready) .audio-player__bar:after{opacity:0}.ihabdevteam-core-scope .audio-player__wave-noise.is-ready .audio-player__bar:after{animation:wave-bar-in .35s cubic-bezier(.22,.9,.3,1) both;animation-delay:0ms;animation-delay:calc(var(--i, 0)*2ms)}.ihabdevteam-core-scope .audio-player__segments{align-items:center;display:flex;gap:3px;gap:var(--bar-gap,3px);height:100%;position:relative;width:100%}.ihabdevteam-core-scope .audio-player__segment{align-items:center;cursor:pointer;display:flex;height:100%;justify-content:center;padding:10px 0;pointer-events:auto;position:relative}.ihabdevteam-core-scope .audio-player__segment-inner{align-items:center;display:flex;gap:3px;gap:var(--bar-gap,3px);height:100%;justify-content:center;width:100%}';J(Rk);async function $k(e,t,a){try{const r=window.AudioContext||window.webkitAudioContext,n=new r,i=await n.decodeAudioData(e.slice(0)),s=i.numberOfChannels>0?i.getChannelData(0):null;if(!s)return null;const c=a&&a>0?Math.min(s.length,Math.floor(a*i.sampleRate)):s.length,u=Math.max(t,c),d=Math.floor(u/t)||1,p=new Array(t).fill(0).map((m,h)=>{const g=h*d,f=Math.min(g+d,u);let b=0;for(let y=g;y<f;y++){const v=Math.abs(s[y]);v>b&&(b=v)}return b});try{n.close&&n.close()}catch{}return p}catch{return null}}async function kb(e,t,a){try{const r=await(await fetch(e)).arrayBuffer();return await $k(r,t,a)}catch(r){try{const n=qr(r)}catch{}return null}}const Sb=4;function Ik(e){const{src:t,segments:a,progress:r=0,waveProgressRef:n,noiseSrc:i,noiseLevel:s=0,noiseSpeed:c=1,totalDuration:u=0,mainVolume:d=1,onReadyChange:p,showSoundWaveForm:m=!0}=e,h=l.useRef(null),g=l.useRef(null),[f,b]=l.useState(null),[y,v]=l.useState(!1),[C,w]=l.useState(null),[x,S]=l.useState(2),[_,k]=l.useState(0),[N,A]=l.useState(null),[D,H]=l.useState(!1),P=3,T=3,E=1,L=300,F=l.useRef(0),te=l.useCallback(async(re,Q)=>{const ne=++F.current,me=()=>F.current===ne;try{if(v(!1),!re){me()&&b(null);return}let ce=Q;if(!ce)try{for(let De=0;De<4&&!(h.current||g.current);De++)await new Promise(ze=>requestAnimationFrame(ze));await new Promise(De=>requestAnimationFrame(De));const ee=h.current,pe=g&&g.current?g.current:ee?ee.closest(".audio-player__wave"):null,ke=pe?pe.getBoundingClientRect():ee?ee.getBoundingClientRect():null,Ce=ke?Math.max(100,ke.width):320,R=ke?ke.height:0;R>0&&k(R),ce=Math.max(E,Math.min(L,Math.floor((Ce+T)/(P+T))));const oe=ce*P,ae=Math.max(0,ce-1),ve=ae>0?(Ce-oe)/ae:T;S(Math.max(0,ve))}catch{ce=120}const I=await kb(re,ce);if(!me())return;if(!I){b(null),v(!1);return}b(I),w(ce),v(!0)}catch{if(!me())return;b(null),v(!1)}},[v,b,k,S,w]);l.useEffect(()=>{const re=a&&a[0]&&a[0].src||t||a&&a.length===1&&a[0]&&a[0].src;te(typeof re=="string"?re:void 0).catch(()=>{}),H(!1)},[t,a,te]),l.useEffect(()=>{let re=!1;if(!i||!C){A(null);return}const Q=u>0?u*(c||1):void 0;return kb(i,C,Q).then(ne=>{re||A(ne)}).catch(()=>{re||A(null)}),()=>{re=!0}},[i,C,u,c]);const Z=Math.max(0,Math.min(1,d)),V=l.useMemo(()=>f&&f.length&&Math.max(...f)||1,[f]),j=C||40,M=l.useMemo(()=>Array.from({length:j}).map((re,Q)=>{const ne=f&&f[Q]!=null?f[Q]:null,me=ne==null?null:Math.min(1,ne/V*Z),ce=me!=null&&_>0&&me*_<=Sb,I=me==null?.15:ce?0:me,ee=j>1?Q/(j-1):0;return o.jsx("div",{className:ce?"audio-player__bar audio-player__bar--hidden":"audio-player__bar",style:{"--val":I,"--i":Q,"--mix":ee}},Q)}),[j,f,V,Z,_]),$={"--progress":String(Math.max(0,Math.min(1,r)))},W={"--bar-gap":`${x}px`},q=Math.max(0,Math.min(9,s))/9,X=y&&(i?!!N:!0);l.useEffect(()=>{X&&H(!0)},[X]);const O=D?y:X;l.useEffect(()=>{p?.(O)},[O,p]);const Y=C||40,z=l.useMemo(()=>Array.from({length:Y}).map((re,Q)=>{const ne=N&&N[Q]!=null?N[Q]:null,me=ne==null?0:Math.min(1,ne/V*q),ce=_>0&&me*_<=Sb,I=ce?0:me,ee=Y>1?Q/(Y-1):0;return o.jsx("div",{className:ce?"audio-player__bar audio-player__bar--hidden":"audio-player__bar",style:{"--val":I,"--i":Q,"--mix":ee}},Q)}),[Y,N,V,q,_]);return o.jsxs("div",{className:"audio-player__wave",ref:g,style:W,children:[i&&o.jsx("div",{className:`audio-player__wave-noise ${X?"is-ready":""}`,"aria-hidden":"true",children:z}),m&&o.jsxs(o.Fragment,{children:[o.jsx("div",{className:`audio-player__wave-inner audio-player__wave-unplayed ${O?"is-ready":""}`,ref:h,children:M}),o.jsx("div",{className:`audio-player__wave-inner audio-player__wave-played ${O?"is-ready":""}`,ref:n,style:$,children:M})]})]})}const zk={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 hc(e,t){return new Promise((a,r)=>{const n=document.createElement("audio");let i=!1;const s=()=>{try{n.src=""}catch{}},c=()=>{if(i)return;i=!0;const d=isFinite(n.duration)&&n.duration||0;s(),a(d)},u=d=>{i||(i=!0,s(),t.rejectOnError?r(new Error(d)):a(0))};n.addEventListener("loadedmetadata",c),n.addEventListener("error",()=>u("audio load failed")),setTimeout(()=>u("audio load timeout"),t.timeoutMs),n.src=e})}const Ok=2e3;function Ab(e,t=Ok){return new Promise(a=>{let r=!1;const n=()=>{r||(r=!0,a())};e.addEventListener("canplay",n,{once:!0}),e.addEventListener("error",n,{once:!0}),setTimeout(n,t)})}function Fk({showSoundWaveForm:e,showNoiseWaveForm:t,timeoutMs:a=2500}){const r=l.useRef(!1),n=l.useRef([]),i=l.useCallback(u=>{if(r.current=u,!u||!n.current.length)return;const d=n.current;n.current=[];for(const p of d)p()},[]),s=l.useCallback(()=>{r.current=!1},[]),c=l.useCallback(()=>!e&&!t||r.current?Promise.resolve():new Promise(u=>{const d=setTimeout(u,a);n.current.push(()=>{clearTimeout(d),u()})}),[e,t,a]);return l.useEffect(()=>()=>{const u=n.current;n.current=[];for(const d of u)d()},[]),{onReadyChange:i,waitForReady:c,markNotReady:s}}function Wk(){const e=l.useRef([]),t=l.useCallback(n=>(e.current.push(n),n),[]),a=l.useCallback(n=>{const i=new Set([...n].filter(Boolean));e.current=e.current.filter(s=>{if(i.has(s))return!0;try{URL.revokeObjectURL(s)}catch{}return!1})},[]),r=l.useCallback(()=>{a([])},[a]);return l.useEffect(()=>()=>{for(const n of e.current)try{URL.revokeObjectURL(n)}catch{}e.current=[]},[]),{track:t,keepOnly:a,revokeAll:r}}function Hk({offsetY:e=8}={}){const t=l.useRef(null),[a,r]=l.useState(null),n=l.useCallback(()=>r(null),[]),i=l.useCallback(()=>{try{const s=t.current?.getBoundingClientRect();if(!s)return;r({left:s.left,right:s.right,width:s.width,height:s.height,x:s.x,top:s.top+e,bottom:s.bottom+e,y:s.y+e,toJSON:s.toJSON.bind(s)})}catch{}},[e]);return l.useEffect(()=>{if(a)return document.addEventListener("mousedown",n),()=>document.removeEventListener("mousedown",n)},[a,n]),{ref:t,rect:a,show:i,hide:n}}function Vk({currentTime:e,sources:t,index:a,audioDuration:r}){const n=a||0,i=Array.isArray(t)&&t.length>0?t[n]:void 0,s=i?i.duration||r||0:r||0;if(!(s>0))return 0;const c=Number.isFinite(e)?e:0;return Math.max(0,Math.min(1,c/s))}function Gk(e,t){if(!Array.isArray(e))return null;const a=t||0;return a<e.length-1?a+1:null}function qk({ended:e,completedByEnd:t}){return!!e||!!t}function Yk(e){return e.map((t,a)=>({src:t.src,label:String(a+1),color:void 0,duration:t.duration||0}))}function Uk(e){return e.reduce((t,a)=>t+(a.duration||0),0)}function Kk(e,t,a){const r=Array.isArray(e)?e:e?[e]:[],n=[];for(const i of r)if(i){if(typeof i=="object"&&i!==null&&"src"in i&&i.src){const s=i;n.push({code:s.code??null,src:s.src});continue}if(typeof i=="string"&&(i.startsWith("http")||i.includes("/"))){n.push({code:null,src:i});continue}if(typeof i=="string"||typeof i=="number"){const s=String(i),c=a(s,t);c&&n.push({code:s,resolvedPath:c})}}return n}function Zk({audioRef:e,fillRef:t,waveProgressRef:a,sourcesRef:r,currentIndexRef:n}){const i=l.useRef(null),s=l.useCallback(()=>{i.current!==null&&(cancelAnimationFrame(i.current),i.current=null)},[]),c=l.useCallback(()=>{if(i.current!==null)return;const d=()=>{try{const p=e.current,m=Vk({currentTime:p&&typeof p.currentTime=="number"?p.currentTime:0,sources:r.current,index:n.current,audioDuration:p&&p.duration?p.duration:0});try{t.current&&(t.current.style.left=`${m*100}%`)}catch{}try{a.current?.style.setProperty("--progress",String(m))}catch{}}catch{}i.current=requestAnimationFrame(d)};i.current=requestAnimationFrame(d)},[e,t,a,r,n]),u=l.useCallback(d=>{s();try{t.current&&(t.current.style.left=`${d*100}%`)}catch{}try{a.current?.style.setProperty("--progress",String(d))}catch{}},[s,t,a]);return l.useEffect(()=>s,[s]),{start:c,stop:s,settleTo:u}}function _r({btnLabel:e,soundSrc:t,bucketPath:a,onDone:r,disabled:n=!1,ttsText:i=null,className:s,showSoundWaveForm:c=!0,showNoiseWaveForm:u=!0}){const{t:d}=ge.useTranslation(),p=e,m=uc(),h=l.useRef(m?.registerAnalyser);l.useEffect(()=>{h.current=m?.registerAnalyser});const g=l.useRef(null),f=l.useRef(null),b=l.useRef(null),y=Wk(),v=l.useRef(null),C=l.useRef(!1),w=l.useRef(0),x=l.useRef(null),{ref:S,rect:_,show:k,hide:N}=Hk();l.useEffect(()=>()=>{h.current?.("main",null),h.current?.("noise",null)},[]);const[A,D]=l.useState(!1),[H,P]=l.useState("idle"),[T,E]=l.useState("stopped"),L=l.useRef("stopped");l.useEffect(()=>{L.current=T},[T]);const[F,te]=l.useState(0),[Z,V]=l.useState("active"),[j,M]=l.useState(null),[$,W]=l.useState(null),[q,X]=l.useState(0),[O,Y]=l.useState(!1),[z,re]=l.useState(0),Q=m?.playbackRate??1,ne=m?.mainVolume??1,[me,ce]=l.useState("idle"),[I,ee]=l.useState(""),[pe]=l.useState("top"),ke=l.useRef(null),Ce=l.useRef(0),R=l.useRef(null),{start:oe,stop:ae,settleTo:ve}=Zk({audioRef:g,fillRef:f,waveProgressRef:R,sourcesRef:ke,currentIndexRef:Ce}),{onReadyChange:De,waitForReady:ze,markNotReady:Re}=Fk({showSoundWaveForm:c,showNoiseWaveForm:u}),Me=l.useRef(null),Ye=l.useRef(n),Ne=l.useRef(r),Ve=l.useRef(null),Fe=l.useRef(!1),[be,Ke]=l.useState(!1),We=l.useCallback(U=>{Fe.current=U,Ke(U)},[]),Le=l.useRef(null),{activeNoiseUrl:Ge,noiseSettingsRef:vt,fadeInNoise:Ue,fadeOutNoise:Xe}=Mk({noisePlayer:m,audioRef:g,playbackStateRef:L}),{startTTS:ut,stopTTS:Pe}=Pk({ttsText:i,playbackRate:Q,mainVolume:ne,fillRef:f,waveProgressRef:R,setProgress:te,setPlaybackState:E,setStateLocal:V,fadeInNoise:Ue,fadeOutNoise:Xe,noiseSettingsRef:vt,onDoneRef:Ne,handleEndRef:Le}),rt=Array.isArray(t)?t.filter(Boolean):t?[t]:[],et=(!rt||rt.length===0)&&!!i,Oe=Array.isArray(j)&&j.length>0?j:Array.isArray($)&&$.length>0?$:null,Qe=Math.max(Array.isArray(Oe)?Oe.length:0,rt.length),tt=l.useCallback(async(U,de=3,_e=50)=>{for(let Se=0;Se<de;Se++)try{return await U.play(),!0}catch(Ae){if((Ae instanceof Error||typeof Ae=="object"&&Ae&&"name"in Ae?Ae.name:void 0)==="AbortError"){await new Promise($e=>setTimeout($e,_e));continue}try{ee(d("training.audioFetchError","\uC0AC\uC6B4\uB4DC \uC18C\uC2A4\uB97C \uAC00\uC838\uC624\uC9C0 \uBABB\uD588\uC2B5\uB2C8\uB2E4."))}catch{}return!1}try{ee(d("training.audioFetchError","\uC0AC\uC6B4\uB4DC \uC18C\uC2A4\uB97C \uAC00\uC838\uC624\uC9C0 \uBABB\uD588\uC2B5\uB2C8\uB2E4."))}catch{}return!1},[d]),xt=l.useCallback(()=>{const U=g.current;if(!U)return;const de=()=>{E("playing"),V("playMode"),Y(!0),oe();try{Ho(),h.current?.("main",Vo(U))}catch{}const Ae=vt.current;Ae?.enabled&&(Ae?.level??0)>0&&Ue(Ae.level/9)},_e=()=>{qk({ended:!!U?.ended,completedByEnd:Fe.current})||(E("paused"),ae(),Xe())},Se=()=>{try{const Ae=ke.current,$e=Gk(Ae,Ce.current);if($e!==null){Ce.current=$e,X($e),Y(!0);const nt=Ae?.[$e]&&Ae[$e].src;if(nt&&U){U.src=nt,U.load(),tt(U).catch(()=>{});return}}}catch{}E("stopped"),te(1);try{if(U)try{U.currentTime=0}catch{}}catch{}ae(),Y(!1),Xe();try{!Ye.current&&Le.current&&Le.current()}catch{}};return U.addEventListener("play",de),U.addEventListener("pause",_e),U.addEventListener("ended",Se),()=>{try{U.removeEventListener("play",de),U.removeEventListener("pause",_e),U.removeEventListener("ended",Se),ae()}catch{}}},[Ue,Xe,tt,vt,oe,ae]);l.useEffect(()=>xt(),[xt]),l.useEffect(()=>{Ye.current=n},[n]),l.useEffect(()=>{Ne.current=r},[r]),l.useEffect(()=>{if(n||Z!=="active")return;const U=x.current;if(!U)return;let de=null;const _e=requestAnimationFrame(()=>{try{const Se=U.getTotalLength();if(!Se)return;const Ae=Se*.2;U.style.strokeDasharray=`${Se-Ae} ${Ae}`;const $e="triFlow_"+Math.random().toString(36).slice(2);de=document.createElement("style"),de.textContent=`@keyframes ${$e}{from{stroke-dashoffset:0}to{stroke-dashoffset:-${Se}}}`,document.head.appendChild(de),U.style.animation=`${$e} 2.4s linear infinite`}catch{}});return()=>{cancelAnimationFrame(_e),de?.remove()}},[Z,n]),l.useEffect(()=>{ke.current=j},[j]),l.useEffect(()=>{Ce.current=q},[q]),l.useEffect(()=>{const U=b.current,de=v.current;if(!U||!de)return;let _e=null;const Se=32,Ae=60,$e=()=>{try{const ct=Array.from(U.querySelectorAll(":scope > .button"));let ue=0;ct.forEach(Zt=>{if(Zt===de)return;const Eo=Zt.getBoundingClientRect();ue+=Eo.width});const Te=U.getBoundingClientRect().width,at=Math.max(0,Math.floor(Te-ue-8)),Ct=Qe;if(!Ct||at<=0){Array.from(de.children).forEach(Zt=>{try{Zt.style.width=""}catch{}});return}let _t=Math.floor(at/Ct);_t>Ae&&(_t=Ae),_t<Se&&(_t=Math.max(Se,Math.floor(at/Ct))),Array.from(de.querySelectorAll(".button")).forEach(Zt=>{try{Zt.style.width=`${_t}px`}catch{}})}catch{}},nt=requestAnimationFrame($e);try{_e=new ResizeObserver(()=>{requestAnimationFrame($e)}),_e.observe(U),_e.observe(de),window.addEventListener("resize",$e)}catch{}return()=>{try{cancelAnimationFrame(nt)}catch{}try{_e&&(_e.disconnect(),_e=null)}catch{}try{window.removeEventListener("resize",$e)}catch{}}},[j,$,Qe]),l.useEffect(()=>()=>{try{Me.current&&(clearTimeout(Me.current),Me.current=null),Ve.current&&(clearTimeout(Ve.current),Ve.current=null)}catch{}},[]);const Et=(U,de)=>{M(U),re(de),Re(),W(Yk(U)),ke.current=U},it=async(U,de)=>{We(!1),C.current=!1,U.src=de,U.load(),await Ab(U),await ze(),D(!1),await tt(U),V("playMode"),X(0),Y(!0)},Ht=async(U,de=!1)=>{const _e=g.current;D(!0),P("measuring_duration");try{const Se=await hc(U,{timeoutMs:1e4,rejectOnError:!0});Et([{src:U,objectUrl:null,duration:Se}],Se),P("ready"),de&&_e&&await it(_e,U)}finally{C.current=!1,D(!1)}},mt=async(U,de=!1)=>{const _e=g.current;D(!0),P("measuring_duration");try{const Se=await Promise.all(U.map($e=>hc($e,{timeoutMs:1e4}))),Ae=U.map(($e,nt)=>({src:$e,objectUrl:null,duration:Se[nt]||0}));Et(Ae,Uk(Ae)),P("ready"),de&&_e&&Ae.length>0&&await it(_e,Ae[0].src)}finally{C.current=!1,D(!1)}},Vt=async(U=!1,de=!0)=>{const _e=g.current,Se=t?Array.isArray(t)?t:[t]:[];if(!(!Se||Se.length===0||!Se.some(Boolean))&&!C.current){C.current=!0,de&&D(!0),P("resolving");try{const Ae=Kk(t,a,Nr),$e=[];let nt=0;for(const ct of Ae){let ue=ct.src??null,Te=null;if(!ue&&ct.resolvedPath){try{P("getting_signed_url"),ue=await Oo(ct.resolvedPath)}catch{ue=null}if(!ue)try{P("downloading");const Ct=await Dr(ct.resolvedPath);if(Ct){const _t=Ct instanceof Blob?Ct:new Blob([Ct]);Te=y.track(URL.createObjectURL(_t)),ue=Te}}catch{P("error");try{ee(d("training.audioFetchError","\uC0AC\uC6B4\uB4DC \uC18C\uC2A4\uB97C \uAC00\uC838\uC624\uC9C0 \uBABB\uD588\uC2B5\uB2C8\uB2E4.")),V("active")}catch{}}}if(!ue)continue;let at=0;try{P("measuring_duration"),at=await hc(ue,{timeoutMs:3e3})}catch{at=0}nt+=at||0,$e.push({...ct,src:ue,objectUrl:Te,duration:at})}if(Et($e,nt),$e.length>0&&U&&_e){const ct=$e[0];We(!1);try{y.keepOnly($e.map(ue=>ue.objectUrl))}catch{}if(P("ready"),C.current=!1,ct.src&&_e)try{_e.src=ct.src,_e.load(),await Ab(_e),await ze(),de&&D(!1),_e&&await tt(_e)}catch{de&&D(!1)}else de&&D(!1);V("playMode"),X(0),Y(!0)}}finally{C.current=!1,de&&D(!1),P(Ae=>Ae==="ready"?"ready":"idle")}}},ia=async()=>{const U=g.current;if(!(!U&&!et)){if(et){const de=window.speechSynthesis;if(Z==="active"){const _e=Fo(),Se=Array.isArray(i)?i.filter(Boolean):i?[i]:[];if(_e&&Se.length>0){V("load"),D(!0),P("resolving"),C.current=!0;try{const Ae=await Promise.all(Se.map($e=>Promise.resolve(_e($e))));Ae.length>1?await mt(Ae,!0):await Ht(Ae[0],!0)}catch{C.current=!1,D(!1),V("active"),ut(Se[0]||void 0)}return}ut(Se[0]||void 0);return}if(Z==="playMode"){if(U){if(U.paused){if(Fe.current){await Gt();return}await tt(U),E("playing")}else U.pause(),E("paused");return}try{if(de&&de.paused)try{de.resume(),E("playing")}catch{}else try{de.pause(),E("paused")}catch{}}catch{}}return}if(Z==="active"){if(n&&Array.isArray(ke.current)&&ke.current.length>0){const de=ke.current[0];try{if(de.src&&U)try{U.src=de.src,U.load(),U&&await tt(U)}catch{}V("playMode"),X(0),Y(!0);return}catch{}}V("load"),await Vt(!0);return}if(Z!=="load"&&(Z==="playMode"||Z==="active"))try{if(U&&U.paused){if(Fe.current){await Gt();return}U&&await tt(U),E("playing")}else U&&(U.pause(),E("paused"))}catch(de){(de instanceof Error||typeof de=="object"&&de&&"name"in de)&&de.name}}},Gt=async()=>{const U=g.current;if(U)try{const de=ke.current;if(Array.isArray(de)&&de.length>1){await $t(0);return}We(!1);try{U.currentTime=0}catch{}U&&await tt(U),E("playing"),V("playMode")}catch{}},Ea=()=>{if(et){Pe();return}const U=g.current;try{if(U){try{U.pause()}catch{}try{U.currentTime=0}catch{}}}catch{}Xe(),E("stopped"),V("active"),te(0),Y(!1)},sa=async(U,{sameSegment:de=!1}={})=>{const _e=++w.current,Se=g.current,Ae=ke.current?.[U]?.src;try{if(We(!1),X(U),Y(!0),Ce.current=U,!Ae||!Se||(de||Re(),Se.src=Ae,Se.load(),de||await ze(),_e!==w.current)||(await tt(Se),_e!==w.current))return;E("playing"),V("playMode")}catch{}},Kt=async()=>{const U=ke.current,de=Ce.current||0;if(!U||de<=0){await Gt();return}await sa(de-1)},ja=async()=>{const U=ke.current,de=Ce.current||0;if(!U||de>=U.length-1){Ea();return}await sa(de+1)},jt=()=>{if(Fe.current)return;const U=200,de=340;We(!0);try{te(1)}catch{}ve(1);try{ce("hold")}catch{}try{const _e=g.current,Se=et&&!!_e?.src;if(!et||Se){if(_e){_e.pause();try{_e.currentTime=0}catch{}}}else Pe();Xe()}catch{}try{E("stopped")}catch{}if(Y(!1),!Ye.current)try{Ve.current&&(clearTimeout(Ve.current),Ve.current=null),Ve.current=setTimeout(()=>{try{ce("out")}catch{}Ve.current=setTimeout(()=>{try{typeof Ne.current=="function"&&Ne.current(!0)}catch{}try{ce("idle")}catch{}Ve.current=null},de)},U)}catch{}};l.useEffect(()=>{Le.current=jt});const Ga=l.useCallback(()=>ee(""),[]),$t=async U=>{(ke.current||[])[U]&&await sa(U,{sameSegment:U===Ce.current})},ya=T==="playing",qa=l.useMemo(()=>{if(!$||$.length<=1)return $;const U=$[q];return U?[U]:$},[$,q]),Je=n===!0;l.useEffect(()=>{try{const U=g.current;U&&typeof U.playbackRate=="number"&&(U.playbackRate=Q||1)}catch{}},[Q]),l.useEffect(()=>{try{const U=g.current;U&&(U.volume=Math.max(0,Math.min(1,ne)))}catch{}},[ne]);const It=me==="hold",kt=me==="out",xa=Z==="playMode"&&!A&&!be||It||kt,la=T!=="stopped"||It||kt,ie=T==="paused",fe=Math.max(0,Math.min(100,(F||0)*100)),ye=xe("audio-player__fill",xa?"is-visible":"",la?"is-expanded":"",ie?"is-paused":"",kt?"is-out":"");return o.jsxs("div",{className:`audio-player ${Je?"is-disabled":""}${s?` ${s}`:""}`,role:"group","aria-label":typeof p=="string"?p:void 0,children:[o.jsxs("div",{className:`audio-player__panel ${ya?"is-playing":""} ${A?"is-loading":""} ${Z!=="default"?"is-revealed":""}`,children:[A?o.jsxs("div",{className:"audio-player__loading",role:"status","aria-live":"polite",children:[o.jsx("span",{className:"audio-player__loading-spinner","aria-hidden":"true"}),o.jsx("span",{className:"audio-player__loading-text",children:zk[H]})]}):null,Z==="active"?o.jsx("button",{className:"audio-player__button",type:"button",onClick:()=>{N(),ia()},"aria-label":typeof p=="string"?p:d("training.listen","\uB4E3\uAE30"),onMouseEnter:k,onMouseLeave:N,onFocus:k,onBlur:N,children:o.jsx("span",{ref:S,className:"audio-player__button-triangle-wrap",children:o.jsx("svg",{className:"audio-player__button-triangle",viewBox:"0 0 24 24","aria-hidden":"true",children:o.jsx("path",{ref:x,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,_&&o.jsx(aa,{anchorRect:_,text:typeof p=="string"&&p?p:d("training.listenLabel","\uBB38\uC7A5 \uB4E3\uAE30"),offset:8}),o.jsxs("div",{className:`audio-player__play ${Z==="playMode"||ya?"is-visible":""}`,children:[o.jsxs("div",{ref:b,className:"audio-player__buttons",children:[o.jsx(se,{size:32,showTooltipInfo:!0,type:"dot",shape:"pill",useBorder:!1,icon:"skip-back",onClick:Kt,ariaLabel:d("training.prev","\uC774\uC804"),width:"60px",variant:"transparent-white","aria-hidden":"true",tabIndex:-1,disabled:Z!=="playMode"}),o.jsx(se,{size:32,showTooltipInfo:!0,type:"dot",shape:"pill",useBorder:!1,icon:ya?"pause":"play",onClick:ia,ariaLabel:d("common.playPause","\uC7AC\uC0DD / \uBA48\uCDA4"),width:"60px",variant:"transparent-white",disabled:Z!=="playMode"}),o.jsx(se,{size:32,showTooltipInfo:!0,type:"dot",shape:"pill",useBorder:!1,icon:"square",onClick:Ea,ariaLabel:d("training.stop","\uC815\uC9C0"),width:"60px",variant:"transparent-white","aria-hidden":"true",tabIndex:-1,disabled:Z!=="playMode"}),Qe>1?o.jsx("div",{ref:v,className:"audio-player__source-buttons",children:Array.from({length:Qe}).map((U,de)=>o.jsx(se,{size:32,type:"dot",shape:"pill",useBorder:!1,label:String(de+1),onClick:()=>{try{$t(de)}catch{}},ariaLabel:d("training.sourcePlay",{n:de+1}),variant:"transparent-white",selected:O&&q===de,disabled:Z!=="playMode"||!(Array.isArray(j)&&j[de]),showTooltipInfo:!0},de))}):null,!Array.isArray(j)||j.length<=1?o.jsx(se,{size:32,showTooltipInfo:!0,type:"dot",shape:"pill",useBorder:!1,icon:"repeat",onClick:Gt,ariaLabel:d("common.replay","\uB2E4\uC2DC\uB4E3\uAE30"),width:"60px",variant:"transparent-white",disabled:Z!=="playMode"}):null,o.jsx(se,{size:32,showTooltipInfo:!0,type:"dot",shape:"pill",useBorder:!1,icon:"skip-forward",onClick:ja,ariaLabel:d("training.next","\uB2E4\uC74C"),width:"60px",variant:"transparent-white","aria-hidden":!0,tabIndex:-1,disabled:Z!=="playMode"}),o.jsx(se,{size:32,showTooltipInfo:!0,type:"dot",shape:"pill",useBorder:!1,icon:"check",onClick:jt,ariaLabel:d("common.done","\uC644\uB8CC"),width:"60px",variant:"transparent-white",disabled:Z!=="playMode"})]}),o.jsxs("div",{className:"audio-player__slider",children:[o.jsx("div",{className:ye,ref:f,style:{left:`${fe}%`},"aria-hidden":"true"}),(c||u)&&o.jsx(Ik,{segments:qa,progress:F,totalDuration:z,onSegmentClick:$t,waveProgressRef:R,showSoundWaveForm:c,noiseSrc:u&&m?.settings.enabled&&(m?.settings.level??0)>0?Ge:null,noiseLevel:m?.settings.level??0,noiseSpeed:m?.settings.speed??1,mainVolume:ne,onReadyChange:De})]})]}),o.jsx("audio",{ref:g,crossOrigin:"anonymous",preload:"auto"})]}),!c&&o.jsxs("p",{className:"audio-player__no-waveform caption-1",children:[o.jsx(Ie,{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.")]}),o.jsx(ro,{message:I,position:pe,onClose:Ga})]})}var Xk=".ihabdevteam-core-scope .tooltip-textbox{background:var(--color-deepWhite);border:1px solid var(--color-whiteLine);border-radius:var(--radius-m);box-sizing:border-box;max-width:520px;padding:var(--spacing-content)}.ihabdevteam-core-scope .tooltip-textbox__root{display:flex;flex-direction:column;gap:var(--spacing-xs)}.ihabdevteam-core-scope .tooltip-textbox__box{background:transparent}.ihabdevteam-core-scope .tooltip-textbox__label{color:var(--color-darkGray)}.ihabdevteam-core-scope .tooltip-textbox__text{color:var(--color-darkGray);overflow-wrap:anywhere;white-space:normal;word-break:keep-all}.ihabdevteam-core-scope .tooltip-textbox__line{align-items:center;display:flex;gap:var(--spacing-s);margin-bottom:0;min-height:60px;padding:10px 0}.ihabdevteam-core-scope .tooltip-textbox__line:last-child{margin-bottom:0}.ihabdevteam-core-scope .tooltip-textbox__line:not(:last-child){border-bottom:1px solid var(--color-darkWhite)}.ihabdevteam-core-scope .tooltip-textbox.is-dark .tooltip-textbox__line:not(:last-child){border-bottom-color:hsla(0,0%,100%,.06)}.ihabdevteam-core-scope .tooltip-textbox__marker{--marker-pos:50%;align-items:center;background-color:var(--color-main);background:color-mix(in srgb,var(--color-main) 50%,var(--color-sub) 50%);border:2px solid var(--color-pureWhite);border-radius:var(--radius-sm);box-sizing:border-box;color:#fff;display:inline-flex;height:24px;justify-content:center;min-width:24px}@supports (color:color-mix(in lch,red,blue)) and (top:var(--f )){.ihabdevteam-core-scope .tooltip-textbox__marker{background:color-mix(in srgb,var(--color-main) calc(100% - var(--marker-pos)),var(--color-sub) var(--marker-pos))}}.ihabdevteam-core-scope .tooltip-textbox__line-number{color:#fff;min-width:auto;text-align:center}.ihabdevteam-core-scope .tooltip-textbox__line-text{flex:1 1 auto}.ihabdevteam-core-scope .tooltip-textbox__buttons{align-items:center;display:flex;gap:var(--spacing-xs);justify-content:center;margin-top:10px;position:relative}.ihabdevteam-core-scope .tooltip-textbox.is-dark{background:var(--color-darkGray);border-color:var(--color-gray)}.ihabdevteam-core-scope .tooltip-textbox.is-dark .tooltip-textbox__text{color:var(--color-deepWhite)}";J(Xk);function No(e){const{t}=ge.useTranslation(),{text:a,label:r,anchorRect:n=null,onClose:i,closeOnOutsideClick:s=!0,isMobilePopup:c=!1}=e||{},[u,d]=l.useState(()=>{try{return localStorage.getItem("tooltip-theme")||"light"}catch{return"light"}});l.useEffect(()=>{try{localStorage.setItem("tooltip-theme",u)}catch{}},[u]);const{increase:p,decrease:m,canIncrease:h,canDecrease:g,fontSize:f,lineHeight:b}=nn({storageKey:"tooltip-fontScale"}),y=l.useCallback(()=>d(S=>S==="dark"?"light":"dark"),[]),v=l.useCallback(S=>{try{S.stopPropagation()}catch{}try{typeof i=="function"&&i()}catch{}},[i]),C=Array.isArray(a)?a:typeof a>"u"||a===null?[]:[a],w={fontSize:`${f}px`,lineHeight:`${b}px`,"--tt-line-height":`${b}px`,"--tt-marker-size":"28px"},x=o.jsxs("div",{className:`tooltip-textbox__root ${u==="dark"?"is-dark":""}`,children:[o.jsxs("div",{className:"tooltip-textbox__box",children:[r&&o.jsx("div",{className:"tooltip-textbox__label body-2b",children:r}),o.jsx("div",{className:"tooltip-textbox__text body-1",style:w,children:C.map((S,_)=>o.jsxs("div",{className:"tooltip-textbox__line",children:[C.length>1?o.jsx("div",{className:"tooltip-textbox__marker",children:o.jsx("span",{className:"tooltip-textbox__line-number button-1",children:_+1})}):null,o.jsx("span",{className:"tooltip-textbox__line-text",children:S})]},_))})]}),o.jsxs("div",{className:"tooltip-textbox__buttons",children:[o.jsx(se,{size:32,showTooltipInfo:!0,type:"dot",useBorder:!1,width:48,icon:"minus",onClick:m,ariaLabel:t("training.fontSizeDecrease","\uAE00\uC790 \uD06C\uAE30 \uAC10\uC18C"),variant:u==="dark"?"transparent-white":"transparent-gray",disabled:!g}),o.jsx(se,{size:32,showTooltipInfo:!0,type:"dot",useBorder:!1,width:48,icon:"plus",onClick:p,ariaLabel:t("training.fontSizeIncrease","\uAE00\uC790 \uD06C\uAE30 \uC99D\uAC00"),variant:u==="dark"?"transparent-white":"transparent-gray",disabled:!h}),o.jsx(se,{size:32,showTooltipInfo:!0,type:"dot",useBorder:!1,width:48,icon:u==="dark"?"moon":"sun-medium",onClick:y,ariaLabel:t("training.toggleBackground","\uBC30\uACBD \uC804\uD658"),variant:u==="dark"?"transparent-white":"transparent-gray"}),o.jsx(se,{size:32,showTooltipInfo:!0,type:"dot",useBorder:!1,width:48,icon:"x",onClick:v,ariaLabel:t("common.close","\uB2EB\uAE30"),variant:u==="dark"?"transparent-white":"transparent-gray"})]})]});return n?o.jsx(Sa,{anchorRect:n,className:`tooltip-textbox ${u==="dark"?"is-dark":""}`,onClose:i,closeOnOutsideClick:s,isMobilePopup:c,children:x}):o.jsx("div",{className:`tooltip-textbox ${u==="dark"?"is-dark":""}`,children:x})}var Qk=".ihabdevteam-core-scope .training-page-bottom{box-sizing:border-box;width:100%}.ihabdevteam-core-scope .pp-bottom{align-items:center;background:var(--color-deepWhite);border-top:1px solid var(--color-whiteLine);box-sizing:border-box;display:flex;flex:0 0 auto;gap:var(--spacing-s);justify-content:space-between;padding:12px 18px calc(12px + env(safe-area-inset-bottom));width:100%;z-index:5}.ihabdevteam-core-scope .pp-bottom__left{align-items:center;display:flex;gap:var(--spacing-m)}.ihabdevteam-core-scope .pp-bottom__right{align-items:center;display:flex;gap:8px}.ihabdevteam-core-scope .pp-bottom__meters{border:1px solid var(--color-whiteLine);border-radius:14px;display:flex;flex-direction:column;gap:2px;justify-content:center;padding:8px 12px}.ihabdevteam-core-scope .pp-bottom__meter{align-items:center;display:flex;flex-direction:row;gap:var(--spacing-xs)}.ihabdevteam-core-scope .pp-bottom__meter-label{color:var(--color-gray);min-width:28px}.ihabdevteam-core-scope .pp-bottom__settings--desktop{display:none}.ihabdevteam-core-scope .pp-bottom__settings--mobile{display:flex}@media (min-width:768px){.ihabdevteam-core-scope .pp-bottom__settings--desktop{display:block}.ihabdevteam-core-scope .pp-bottom__settings--mobile{display:none}}.ihabdevteam-core-scope .pp-bottom__tooltip-trigger{display:inline-block}.ihabdevteam-core-scope .training-steps{box-sizing:border-box;display:flex;flex-direction:column;overflow:visible;width:100%}.ihabdevteam-core-scope .training-step{align-items:stretch;box-sizing:border-box;display:flex;flex-direction:row;flex-wrap:nowrap;gap:var(--spacing-m);overflow:visible;width:100%}.ihabdevteam-core-scope .training-step__body,.ihabdevteam-core-scope .training-step__content{box-sizing:border-box;display:flex;flex:1 1 auto;flex-direction:column;gap:var(--spacing-s);overflow:visible;width:100%}.ihabdevteam-core-scope .training-step__content{gap:var(--spacing-m);min-width:0}.ihabdevteam-core-scope .training-step__controls{box-sizing:border-box;display:flex;flex-direction:column;gap:10px;width:100%}.ihabdevteam-core-scope .training-step__title{color:#0b2b35;color:var(--text,#0b2b35);margin:0;text-align:left}.ihabdevteam-core-scope .training-step__body .audio-player{display:flex;justify-content:center;width:100%}.ihabdevteam-core-scope .training-step__body .audio-player__panel{border-radius:var(--radius-card);padding:18px 20px;width:100%}.ihabdevteam-core-scope .training-step__controls.compact{align-items:center;display:flex;justify-content:center;width:72px}.ihabdevteam-core-scope .training-step__confirm-sentence{align-items:center;background:var(--color-white);border:1px solid rgba(0,0,0,.04);border-radius:var(--radius-card);box-shadow:var(--shadow-card);color:#0b2b35;color:var(--text,#0b2b35);display:flex;height:200px;justify-content:center;max-width:100%;overflow-wrap:anywhere;padding:var(--spacing-m);text-align:center;word-break:keep-all}.ihabdevteam-core-scope .training-step__controls.expanded{-ms-overflow-style:none;align-items:stretch;max-height:420px;overflow-y:auto;padding-bottom:6px;scrollbar-width:none;width:100%}.ihabdevteam-core-scope .training-step__controls.expanded::-webkit-scrollbar{display:none}.ihabdevteam-core-scope .training-step__controls .training-step__title{color:#70858a;color:var(--muted,#70858a)}.ihabdevteam-core-scope .training-step__answer-button{background:var(--color-white);border:1px solid rgba(0,0,0,.06);border-radius:var(--radius-s);cursor:pointer;flex:0 0 auto;padding:10px 14px}.ihabdevteam-core-scope .training-step__buttons{-ms-overflow-style:none;align-items:stretch;display:flex;flex-direction:row;gap:var(--spacing-content);overflow-x:auto;scrollbar-width:none;width:100%}.ihabdevteam-core-scope .training-step__buttons::-webkit-scrollbar{display:none}.ihabdevteam-core-scope .training-step__buttons>*{align-self:stretch;flex:1 1 0;margin:0;min-width:0}.ihabdevteam-core-scope .training-step__buttons.training-step__buttons--wrap-3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));overflow-x:visible}.ihabdevteam-core-scope .training-step__buttons.training-step__buttons--wrap-3>*{width:100%}.ihabdevteam-core-scope .training-step__buttons .button{align-items:center;align-self:stretch;display:flex}.ihabdevteam-core-scope .training-step__answer-button+.training-step__answer-button{margin-top:0}.ihabdevteam-core-scope .training-step__multi-confirm{display:flex;justify-content:flex-end;margin-top:12px;margin-top:var(--margin-content,12px);width:100%}.ihabdevteam-core-scope .training-step__controls::-webkit-scrollbar{display:none}.ihabdevteam-core-scope .training-step__controls{-ms-overflow-style:none;scrollbar-width:none}@media (max-width:640px){.ihabdevteam-core-scope .training-step__body .audio-player__panel{border-radius:var(--radius-card);padding:14px}.ihabdevteam-core-scope .training-step__controls.compact{width:48px}.ihabdevteam-core-scope .training-step{flex-direction:row;gap:10px}}@media (max-width:720px){.ihabdevteam-core-scope .training-step__controls.expanded{gap:8px}.ihabdevteam-core-scope .training-step__answer-button{padding:9px 12px}.ihabdevteam-core-scope .training-step__confirm-sentence{padding:var(--spacing-s)}}.ihabdevteam-core-scope .training-step__cards{box-sizing:border-box;display:flex;gap:var(--spacing-s);width:100%}@media (max-width:767px){.ihabdevteam-core-scope .training-step__cards{grid-gap:var(--spacing-s);display:grid;gap:var(--spacing-s);grid-template-columns:repeat(3,1fr)}}.ihabdevteam-core-scope .training-step__block{display:flex;flex-direction:column;gap:var(--spacing-s);width:100%}.ihabdevteam-core-scope .training-step__block--row{align-items:center;display:flex;flex-direction:row;gap:var(--spacing-s)}.ihabdevteam-core-scope .training-step__listen-sticky{width:100%}.ihabdevteam-core-scope .training-step.training-step--has-nested .training-step__content{margin-bottom:100px}.ihabdevteam-core-scope .training-steps>.training-step:last-child .training-step__content{margin-bottom:0}.ihabdevteam-core-scope .training-step:not(.training-step--last) .training-step__content{margin-bottom:var( --margin-page)}.ihabdevteam-core-scope .training-step.training-step--last .training-step__content{margin-bottom:0}";J(Qk);var Jk='.ihabdevteam-core-scope .ts-bullet{--dot-size:28px;--dot-gap:10px;align-items:center;align-self:stretch;display:flex;flex-direction:column;justify-content:flex-start;position:relative;width:28px;width:var(--dot-size)}.ihabdevteam-core-scope .bullet__dot{align-items:center;border:2px solid rgba(43,138,125,.12);border-radius:50%;display:flex;height:var(--dot-size);justify-content:center;width:var(--dot-size);z-index:2}.ihabdevteam-core-scope .bullet__icon{align-items:center;color:var(--color-darkGray);display:inline-flex;height:20px;justify-content:center;position:relative;width:20px;z-index:1}.ihabdevteam-core-scope .bullet__icon-img{display:block;height:100%;-o-object-fit:contain;object-fit:contain;width:100%}.ihabdevteam-core-scope .bullet__icon-mask{background-color:currentColor;height:100%;-webkit-mask-image:var(--icon-url);mask-image:var(--icon-url);-webkit-mask-position:center;mask-position:center;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:contain;mask-size:contain;width:100%}.ihabdevteam-core-scope .bullet__icon-svg svg{fill:currentColor;height:100%;width:100%}.ihabdevteam-core-scope .ts-bullet__line{background:var(--color-whiteLine);border-radius:var(--radius-xs);bottom:20px;left:50%;position:absolute;top:calc(var(--dot-size) + var(--dot-gap));transform:translateX(-50%);width:2px;z-index:1}.ihabdevteam-core-scope .ts-bullet--done .bullet__icon{color:transparent}.ihabdevteam-core-scope .ts-bullet--active .bullet__icon{color:#fff}.ihabdevteam-core-scope .ts-bullet--disabled .bullet__icon{color:transparent}.ihabdevteam-core-scope .ts-bullet--done .bullet__dot{border:2px solid var(--color-main)}.ihabdevteam-core-scope .ts-bullet--active .bullet__dot{background-color:var(--color-main);position:relative}.ihabdevteam-core-scope .ts-bullet--active .bullet__dot:after,.ihabdevteam-core-scope .ts-bullet--active .bullet__dot:before{animation:bullet-ripple 3s cubic-bezier(.2,.6,.2,1) infinite;background:var(--color-main);border-radius:50%;content:"";inset:0;opacity:.5;pointer-events:none;position:absolute}.ihabdevteam-core-scope .ts-bullet--active .bullet__dot:after{animation-delay:1.5s;opacity:.3}@keyframes bullet-ripple{0%{opacity:.5;transform:scale(1)}to{opacity:0;transform:scale(2.2)}}.ihabdevteam-core-scope .ts-bullet--disabled .bullet__dot{border:2px solid var(--color-whiteLine)}.ihabdevteam-core-scope .ts-bullet--done .bullet__line{background-color:var(--color-main)}.ihabdevteam-core-scope .ts-bullet--active .bullet__line,.ihabdevteam-core-scope .ts-bullet--disabled .bullet__line{background-color:var(--color-whiteLine)}.ihabdevteam-core-scope .training-step--last .ts-bullet__line,.ihabdevteam-core-scope .training-step.training-step--last .ts-bullet__line{display:none}@media (max-width:1024px){.ihabdevteam-core-scope .ts-bullet{--dot-size:26px}}@media (max-width:768px){.ihabdevteam-core-scope .ts-bullet{--dot-size:24px}}';J(Jk);function mc({state:e="disabled"}){const{t}=ge.useTranslation();return o.jsxs("div",{className:`ts-bullet ts-bullet--${e}`,"aria-hidden":!0,children:[o.jsx("div",{className:"bullet__dot",children:o.jsx(Ie,{icon:"chevron-right",label:t("training.next","\uB2E4\uC74C"),className:"bullet__icon",imgClassName:"bullet__icon-img",maskClassName:"bullet__icon-mask",svgClassName:"bullet__icon-svg",wrapperStyle:{},size:20})}),o.jsx("div",{className:"ts-bullet__line"})]})}var e7=".ihabdevteam-core-scope .training-step__title-row{align-items:center;display:flex;gap:var(--spacing-xs);padding-right:72px;position:relative;width:100%}.ihabdevteam-core-scope .training-step__title-row .training-step__title{color:var(--color-black);margin:0;padding:0}.ihabdevteam-core-scope .training-step__title--faded .training-step__title-text{background-color:var(--color-darkWhite);border-radius:var(--radius-xs);color:transparent;opacity:1;transition:color .14s ease,opacity .14s ease}.ihabdevteam-core-scope .training-step__title-row .training-step__title .title-extra{margin-left:var(--spacing-xs)}.ihabdevteam-core-scope .training-step__title-row .title-controls{align-items:center;display:flex;gap:6px;margin-left:auto}.ihabdevteam-core-scope .training-step__title-row .title-controls .title-buttons{align-items:center;display:inline-flex;gap:6px;justify-content:center;overflow:visible;position:absolute;right:0;top:50%;transform:translateY(-50%)}.ihabdevteam-core-scope .training-step__title-row .title-controls .title-buttons .button28{align-items:center;display:inline-flex;justify-content:center}.ihabdevteam-core-scope .training-step__title-row--disabled .training-step__title,.ihabdevteam-core-scope .training-step__title-row--done .training-step__title{pointer-events:none}.ihabdevteam-core-scope .training-step__title-row--disabled .title-controls{opacity:.6;pointer-events:none}.ihabdevteam-core-scope .training-step__title-row--active .title-controls,.ihabdevteam-core-scope .training-step__title-row--done .title-controls{opacity:1;pointer-events:auto}.ihabdevteam-core-scope .training-step__title-row--disabled .training-step__title,.ihabdevteam-core-scope .training-step__title-row--done .training-step__title{color:var(--color-disabled)}.ihabdevteam-core-scope .training-step__title-row--active .training-step__title{color:var(--color-black)}";J(e7);function bc({title:e,children:t,className:a="",state:r="disabled",usePreviewTextBtn:n=!1,onPreviewTextBtn:i,previewText:s=null,useFaded:c,usePlayAllBtn:u=!1,onPlayAll:d,playAllActive:p=!1}){const{t:m}=ge.useTranslation(),h=oa("(max-width: 767px)"),g=`training-step__title h4 ${c&&r==="disabled"?"training-step__title--faded":""} ${a}`.trim(),f=`training-step__title-row training-step__title-row--${r}`.trim(),b=l.useRef(null),[y,v]=l.useState(!1),[C,w]=l.useState(null),[x,S]=l.useState(null),_=l.useRef(i);l.useEffect(()=>{_.current=i});const k=l.useMemo(()=>s==null?"":typeof s=="string"||typeof s=="number"?String(s):Array.isArray(s)&&s.every(D=>typeof D=="string"||typeof D=="number")?s.join(""):"",[s]),N=l.useCallback(()=>{v(!1),w(null),S(null)},[]);l.useEffect(()=>{if(!y)return;let D;try{typeof _.current=="function"&&(D=_.current())}catch{}if(D===!1){N();return}S(typeof D<"u"&&D!==null?D:null)},[k]);const A=l.useCallback(()=>{let D;try{typeof i=="function"&&(D=i())}catch{}if(D!==!1){if(S(typeof D<"u"&&D!==null?D:s),!b.current){v(H=>!H);return}if(y)v(!1),w(null),S(null);else{const H=b.current.getBoundingClientRect();w(H),v(!0)}}},[i,s,y]);return o.jsxs("div",{className:f,children:[o.jsx("p",{className:g,children:o.jsx("span",{className:"training-step__title-text",children:e??t})}),n||u?o.jsxs("div",{className:"title-controls",children:[o.jsxs("div",{className:"title-buttons",children:[u&&o.jsx(se,{size:32,type:h?"dot":"bar",icon:"play-circle",label:h?void 0:m("training.playAll","\uBAA8\uB450 \uB4E3\uAE30"),ariaLabel:m("training.playAll","\uBAA8\uB450 \uB4E3\uAE30"),selected:p,onClick:d,variant:r==="disabled"?"disabled":"default",disabled:r==="disabled"||p}),n&&o.jsx("div",{ref:b,children:o.jsx(se,{size:32,type:h?"dot":"bar",icon:"eye",label:h?void 0:m("training.sentencePreview","\uBB38\uC7A5 \uBBF8\uB9AC\uBCF4\uAE30"),ariaLabel:m("training.sentencePreview","\uBB38\uC7A5 \uBBF8\uB9AC\uBCF4\uAE30"),selected:y,onClick:A,variant:r==="disabled"?"disabled":"default",disabled:!s&&typeof i!="function"})})]}),y&&o.jsx(No,{text:x??s,label:m("training.sentencePreview","\uBB38\uC7A5 \uBBF8\uB9AC\uBCF4\uAE30"),anchorRect:C,onClose:N,closeOnOutsideClick:!1,isMobilePopup:!0})]}):null]})}function gc(e,t){return typeof t!="number"||typeof e!="number"?"disabled":e<t?"done":e===t?"active":"disabled"}function Va({index:e,stepIndex:t,isLast:a=!1,title:r="",titleProps:n={},children:i,className:s="",onDone:c=void 0,useTitleFaded:u=void 0}){const[d,p]=l.useState(()=>gc(e,t));l.useEffect(()=>{const x=gc(e,t);if(x!==d){const S=setTimeout(()=>p(x),0);return()=>clearTimeout(S)}},[e,t,d]);const m=l.useCallback((...x)=>{gc(e,t)==="done"||d==="done"||typeof c=="function"&&c(...x)},[e,t,d,c]),[h,g]=l.useState(!1),[f,b]=l.useState({text:"",label:"\uBB38\uC7A5 \uB4E3\uAE30",anchorRect:null,backdrop:!1,alignX:null,alignY:null}),y=l.useCallback(x=>{if(!x)return null;try{const S=x;if(typeof x=="object"&&(S.currentTarget||S.target)&&(S.nativeEvent||S.type)){const N=S.currentTarget??S.target;if(N&&typeof N.getBoundingClientRect=="function")return N.getBoundingClientRect()}if(x instanceof DOMRect)return x;const _=x;if(_&&typeof _.getBoundingClientRect=="function")return _.getBoundingClientRect();const k=x?.current;return k&&typeof k.getBoundingClientRect=="function"?k.getBoundingClientRect():null}catch{return null}},[]),v=l.useCallback((x,{text:S="",label:_="\uBB38\uC7A5 \uB4E3\uAE30",backdrop:k=!1,alignX:N="center",alignY:A="top"}={})=>{const D=y(x);b({text:S,label:_,anchorRect:D,backdrop:k,alignX:N,alignY:A}),g(!0)},[y]),C=l.useCallback(()=>{g(!1),b(x=>({...x,anchorRect:null}))},[]),w=l.Children.map(i,x=>{if(l.isValidElement(x)){const S=x;if(typeof S.type=="string")return S;const _=S.props??{},k=typeof _.onDone=="function"?_.onDone:m,N=typeof _.disabled=="boolean";let A=d==="disabled";return N&&(A=!!_.disabled),l.cloneElement(S,{onDone:k,disabled:A,showTooltip:v,hideTooltip:C})}return x});return o.jsxs("div",{className:`training-step training-step--${d} ${a?"training-step--last":""} ${s}`,"aria-current":d==="active",children:[o.jsx(mc,{state:d}),o.jsxs("div",{className:"training-step__content",children:[o.jsx(bc,{state:d,title:r,...n,useFaded:u}),w]}),h?o.jsx(Sa,{anchorRect:f.anchorRect,backdrop:f.backdrop,onClose:C,children:o.jsx(No,{text:f.text,onClose:C})}):null]})}var t7='.ihabdevteam-core-scope .training-text-box{background:var(--color-darkWhite);border:1px solid var(--color-deepWhite);border-radius:var(--radius-m);color:var(--color-black);display:flex;flex-direction:column;max-width:100%;min-height:160px;overflow:visible;overflow-wrap:anywhere;padding:var(--spacing-content);position:relative;text-align:center;word-break:keep-all}.ihabdevteam-core-scope .training-text-box--disabled{pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.ihabdevteam-core-scope .training-text-box--disabled .training-text-box__inner{visibility:hidden}.ihabdevteam-core-scope .training-text-box--disabled:after{content:"";pointer-events:none;position:absolute;z-index:5}.ihabdevteam-core-scope .training-text-box__preview{align-items:center;display:flex;justify-content:center;left:50%;pointer-events:auto;position:absolute;top:50%;transform:translate(-50%,-50%);z-index:60}.ihabdevteam-core-scope .training-text-box__buttons{border-radius:999px;gap:4px;height:28px;left:0;right:0}.ihabdevteam-core-scope .training-text-box__area,.ihabdevteam-core-scope .training-text-box__buttons{align-items:center;box-sizing:border-box;display:flex;justify-content:center;pointer-events:auto;position:relative;z-index:40}.ihabdevteam-core-scope .training-text-box__area{flex:1 1 auto;margin:0 auto;min-height:0;text-align:center;width:100%}.ihabdevteam-core-scope .training-text-box--active,.ihabdevteam-core-scope .training-text-box--done{background-color:var(--color-white);border-color:var(--color-main);pointer-events:auto;transition:box-shadow .18s ease,transform .18s ease,opacity .16s ease;-webkit-user-select:auto;-moz-user-select:auto;user-select:auto}.ihabdevteam-core-scope .training-text-box.is-dark{background:var(--color-darkGray);border:1px solid var(--color-black);color:var(--color-deepWhite)}.ihabdevteam-core-scope .training-text-box .training-text-box__inner{display:block;overflow-wrap:anywhere;text-align:center;white-space:normal;width:100%;word-break:keep-all}.ihabdevteam-core-scope .training-text-box.is-dark .tooltip-textbox__text,.ihabdevteam-core-scope .training-text-box.is-dark .training-text-box__inner{color:var(--color-deepWhite)}';J(t7);function fc({context:e,state:t="disabled",theme:a="light"}){const{t:r}=ge.useTranslation(),[n,i]=l.useState("disabled"),[s,c]=l.useState(()=>{try{return localStorage.getItem("tooltip-theme")||a}catch{return a}});l.useEffect(()=>{try{localStorage.setItem("tooltip-theme",s)}catch{}},[s]);const u=()=>c(A=>A==="dark"?"light":"dark"),{increase:d,decrease:p,canIncrease:m,canDecrease:h,fontSize:g,lineHeight:f}=nn({storageKey:"textbox_fontScale"}),[b,y]=l.useState(""),v=l.useCallback(()=>i("active"),[]),C=l.useCallback(()=>y(""),[]),w=A=>{try{y(A)}catch{}},x=typeof navigator<"u"&&/Mobi|Android/i.test(navigator.userAgent||"");l.useEffect(()=>{if(t!=="disabled"){const A=setTimeout(()=>i(t),0);return()=>clearTimeout(A)}},[t]);const S=l.useMemo(()=>e&&typeof e=="object"?String(e.sentence??e.text??""):typeof e=="string"?e:"",[e]);l.useEffect(()=>{const A=setTimeout(()=>i("disabled"),0);return()=>clearTimeout(A)},[S]);const _=t==="disabled"?n:t,k=_==="disabled"?"training-text-box--disabled":_==="active"?"training-text-box--active":_==="done"?"training-text-box--done":"",N=l.useMemo(()=>({fontSize:`${g}px`,lineHeight:`${f}px`}),[g,f]);return o.jsxs("div",{className:`training-text-box ${k} ${_!=="disabled"&&s==="dark"?"is-dark":""}`,children:[_==="disabled"&&o.jsx("div",{className:"training-text-box__preview",children:o.jsx(se,{size:48,type:"bar",onClick:v,icon:"eye",ariaLabel:r("training.sentencePreview","\uBB38\uC7A5 \uBBF8\uB9AC\uBCF4\uAE30"),label:r("training.sentencePreview","\uBB38\uC7A5 \uBBF8\uB9AC\uBCF4\uAE30"),useBorder:!1})}),o.jsx("div",{className:"training-text-box__area","aria-hidden":_==="disabled",children:o.jsx("span",{className:"training-text-box__inner h3",style:N,children:S})}),_!=="disabled"&&o.jsxs("div",{className:"training-text-box__buttons","aria-hidden":_==="disabled",children:[o.jsx(se,{size:32,type:"dot",onClick:p,onDisabledClick:()=>w(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:s==="dark"?"transparent-white":"transparent-gray",disabled:!h,useBorder:!1,showTooltipInfo:!0,...!x&&{width:"60px"}}),o.jsx(se,{size:32,type:"dot",onClick:d,onDisabledClick:()=>w(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:s==="dark"?"transparent-white":"transparent-gray",disabled:!m,useBorder:!1,showTooltipInfo:!0,...!x&&{width:"60px"}}),o.jsx(se,{size:32,showTooltipInfo:!0,type:"dot",useBorder:!1,width:48,icon:s==="dark"?"moon":"sun-medium",onClick:u,ariaLabel:r("training.toggleBackground","\uBC30\uACBD \uC804\uD658"),variant:s==="dark"?"transparent-white":"transparent-gray"})]}),o.jsx(ro,{message:b,position:"top",onClose:C})]})}function jn({index:e,stepIndex:t,isLast:a=!1,title:r,useTitleFaded:n,onDone:i,onChange:s,answer:c,wrongAnswers:u,choices:d,multiSelect:p=!1,correctCount:m=0,useDisabledCovered:h=!1,choiceIcons:g,shuffleChoices:f=!0}){const{t:b}=ge.useTranslation(),y=r??b("training.selectConfirm","\uBB38\uC81C\uB97C \uBCF4\uACE0 \uD574\uB2F9\uD558\uB294 \uB0B4\uC6A9\uC744 \uC120\uD0DD\uD558\uC138\uC694."),v=typeof e=="number"?e:-1,C=typeof t!="number"?"disabled":v<t?"done":v===t?"active":"disabled",w=Array.isArray(d)&&d.length?d:typeof c<"u"?[c].concat(Array.isArray(u)?u:[]):void 0,x=u?u.join("||"):"",S=d?d.join("||"):"",[_,k]=l.useState(()=>Array.isArray(w)?f?He(w):w.slice():void 0);l.useEffect(()=>{Array.isArray(w)&&w.length?k(f?He(w):w.slice()):k(void 0)},[c,x,S,f]);const[N,A]=l.useState(null),[D,H]=l.useState(()=>new Set);l.useEffect(()=>{A(null),H(new Set)},[S]);const P=l.useRef(void 0);l.useEffect(()=>{const L=P.current;typeof L=="number"&&typeof t=="number"&&typeof e=="number"&&L>=e&&t<e&&(A(null),H(new Set)),P.current=t},[t,e]);const T=l.useCallback(L=>{if(C!=="active")return;const F=_?.[L];if(F==null)return;const te=F,Z=C==="active"||C==="done";if(p){const V=new Set(D),j=V.has(te);j?V.delete(te):V.add(te),H(V),typeof s=="function"&&s({selectedValues:[...V],__ts:Date.now()}),Z&&(typeof m=="number"&&m>0?V.size>=m:!j)&&typeof i=="function"&&C==="active"&&i({selectedValues:[...V],__ts:Date.now()})}else A(te),typeof s=="function"&&s({selectedIndex:L,selectedValue:te,__ts:Date.now()}),Z&&typeof i=="function"&&C==="active"&&i({selectedIndex:L,selectedValue:te,__ts:Date.now()})},[_,C,p,s,i,m,D]),E=`training-step__buttons${Array.isArray(_)&&_.length>3?" training-step__buttons--wrap-3":""}`;return o.jsx(Va,{index:e,stepIndex:t,isLast:a,title:y,useTitleFaded:n,children:o.jsx("div",{className:E,children:Array.isArray(_)&&_.length>0?_.map((L,F)=>o.jsx(se,{size:56,type:"bar",onClick:()=>T(F),ariaLabel:String(L),label:L,useLabel:!0,icon:g?g[String(L)]:void 0,variant:"default",disabled:C==="disabled",selected:p?D.has(L):N===L,useDisabledCovered:h,minWidth:0},String(L))):null})})}function Ln({index:e,stepIndex:t,isLast:a=!1,title:r,onDone:n,onChange:i,context:s,demoSelected:c}){const{t:u}=ge.useTranslation(),d=r??u("training.confirmTitle","\uBB38\uC7A5\uC744 \uD655\uC778\uD558\uACE0 \uC798 \uB4E4\uB838\uB294\uC9C0 \uC120\uD0DD\uD558\uC138\uC694."),p=typeof e=="number"?e:-1,m=typeof t!="number"?"disabled":p<t?"done":p===t?"active":"disabled",h=s&&typeof s=="object"?s.sentence||"":typeof s=="string"?s:"",g=s&&typeof s=="object"?s.choices:void 0,[f,b]=l.useState(c??null);l.useEffect(()=>{if(c==null&&f!==null){const w=setTimeout(()=>b(null),0);return()=>clearTimeout(w)}},[h,c,f]);const y=l.useCallback(w=>{const x=typeof w=="object"&&w!==null?Object.assign({},w,{__ts:Date.now()}):{value:w,__ts:Date.now()};typeof i=="function"&&i(x),m==="active"&&typeof n=="function"&&n(x)},[i,m,n]),v=l.useCallback(()=>{m==="active"&&(b(!1),y(!1))},[y,m]),C=l.useCallback(()=>{m==="active"&&(b(!0),y(!0))},[y,m]);return o.jsxs(Va,{index:e,stepIndex:t,isLast:a,title:d,onDone:n,useTitleFaded:!1,children:[o.jsx(fc,{context:s,state:m}),o.jsx("div",{className:"training-step__buttons",children:Array.isArray(g)&&g.length>0?g.slice(0,6).map((w,x)=>o.jsx(se,{size:56,type:"bar",onClick:()=>{m==="active"&&(b(x),y&&y(x))},disabled:m==="disabled",ariaLabel:String(w),label:w,variant:m,selected:f===x},x)):o.jsxs(o.Fragment,{children:[o.jsx(se,{size:56,type:"bar",onClick:v,disabled:m==="disabled",icon:"x",ariaLabel:u("training.notHeard","\uC548 \uB4E4\uB838\uC5B4\uC694."),label:u("training.notHeard","\uC548 \uB4E4\uB838\uC5B4\uC694."),variant:"default",selected:f===!1}),o.jsx(se,{size:56,type:"bar",onClick:C,disabled:m==="disabled",icon:"circle",ariaLabel:u("training.heardWell","\uC798 \uB4E4\uB838\uC5B4\uC694."),label:u("training.heardWell","\uC798 \uB4E4\uB838\uC5B4\uC694."),variant:"default",selected:f===!0})]})})]})}function Mn({index:e,stepIndex:t,isLast:a=!1,title:r,onDone:n,btnLabel:i,soundSrc:s,bucketPath:c,usePreviewTextBtn:u,previewText:d=null,onPreviewTextBtn:p,disabled:m,_pageIndex:h,showSoundWaveForm:g,showNoiseWaveForm:f}){const{t:b}=ge.useTranslation(),y=r??b("training.listenTitle","\uC81C\uC2DC\uD558\uB294 \uBB38\uC7A5\uC744 \uB4E4\uC5B4\uC8FC\uC138\uC694."),v=m??(typeof t=="number"&&typeof e=="number"?e>t:!1);return o.jsx(Va,{index:e,stepIndex:t,isLast:a,title:y,onDone:n,titleProps:{usePreviewTextBtn:u,previewText:d,onPreviewTextBtn:p},children:o.jsx(_r,{soundSrc:s,ttsText:s?null:d??y,bucketPath:c,btnLabel:i||b("training.listenButton","\uBB38\uC7A5 \uB4E3\uAE30"),disabled:v,className:"training-step__listen-sticky",showSoundWaveForm:g,showNoiseWaveForm:f},`audio-p${h??0}-s${e}`)})}var a7=".ihabdevteam-core-scope .page-popup--closing{opacity:0;pointer-events:none;transition:opacity .16s ease}.ihabdevteam-core-scope .page-popup__panel{overflow:auto}.ihabdevteam-core-scope .page-popup__close{font-size:20px;right:12px;top:10px}.ihabdevteam-core-scope .page-popup{align-items:stretch;display:flex;inset:0;justify-content:center;position:fixed;z-index:var(--z-page-popup)}.ihabdevteam-core-scope .page-popup__panel{background:var(--color-deepWhite);border-radius:0;box-shadow:none;color:var(--color-black);display:flex;flex-direction:column;height:100%;max-height:none;max-width:none;overflow:hidden;position:relative;width:100%}.ihabdevteam-core-scope .page-popup__scroll{-webkit-overflow-scrolling:touch;align-items:flex-start;display:flex;flex:1 1 0;justify-content:center;min-height:0;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;scrollbar-color:rgba(0,0,0,.15) transparent;scrollbar-width:thin;touch-action:pan-y}.ihabdevteam-core-scope .page-popup__scroll::-webkit-scrollbar{width:4px}.ihabdevteam-core-scope .page-popup__scroll::-webkit-scrollbar-track{background:transparent}.ihabdevteam-core-scope .page-popup__scroll::-webkit-scrollbar-thumb{background:rgba(0,0,0,.15);border-radius:var(--radius-xs)}.ihabdevteam-core-scope .page-popup__scroll::-webkit-scrollbar-thumb:hover{background:rgba(0,0,0,.28)}.ihabdevteam-core-scope .page-popup__panel--measuring .page-popup__scroll{opacity:0;pointer-events:none}.ihabdevteam-core-scope .page-popup__scroll{transition:opacity .12s ease}.ihabdevteam-core-scope .nt-debug{background:rgba(0,0,0,.03);border-radius:var(--radius-sm);color:var(--text,var(--color-black));font-family:monospace;font-size:12px;line-height:1.2;max-width:300px;padding:8px 10px;position:absolute;right:20px;top:84px;white-space:pre-wrap;z-index:calc(var(--z-page-popup) + 1)}.ihabdevteam-core-scope .page-popup--backdrop{display:none}.ihabdevteam-core-scope .page-popup__close{background:transparent;border:none;color:var(--text,var(--color-black));cursor:pointer;font-size:22px;line-height:1;position:absolute;right:14px;top:12px}.ihabdevteam-core-scope .page-popup__panel>*{box-sizing:border-box}.ihabdevteam-core-scope .page-popup__body{padding:16px 20px}.ihabdevteam-core-scope .page-popup__content{box-sizing:border-box;margin:0 auto;max-width:800px;min-width:0;padding:var(--spacing-page);width:100%}.ihabdevteam-core-scope .page-popup__content--center{margin-bottom:auto;margin-top:auto}.ihabdevteam-core-scope .pp-empty{color:var(--color-gray);padding:24px 0;text-align:center;width:100%}.ihabdevteam-core-scope .page-popup__content .training-steps{box-sizing:border-box;min-width:0;width:100%}.ihabdevteam-core-scope .page-popup__bottom,.ihabdevteam-core-scope .page-popup__top{flex-shrink:0}.ihabdevteam-core-scope .page-popup__panel--center .page-popup__scroll{align-items:center}.ihabdevteam-core-scope .page-popup--result-empty{background:var(--color-deepWhite)}.ihabdevteam-core-scope .page-popup__empty{align-items:center;color:var(--color-gray);display:flex;flex-direction:column;justify-content:center;padding:2rem;text-align:center;width:100%}";J(a7);var o7=".ihabdevteam-core-scope .order-list{display:flex;flex-direction:column;gap:var(--spacing-xs)}.ihabdevteam-core-scope .order-list__item{align-items:flex-start;display:flex;gap:var(--spacing-s)}.ihabdevteam-core-scope .order-list__draggable{align-items:center;border-radius:var(--radius-m);display:flex;flex:1;gap:var(--spacing-xs);justify-content:space-between;min-height:60px;padding:0 0 0 4px;will-change:transform}.ihabdevteam-core-scope .order-list__item-text{color:var(--color-black)}.ihabdevteam-core-scope .order-list__item-buttons{align-items:center;align-self:center;display:inline-flex;gap:2px}@media (max-width:600px){.ihabdevteam-core-scope .order-list__item-buttons{align-items:center;align-self:center;display:flex;flex-direction:column}.ihabdevteam-core-scope .order-list__item-buttons>*{box-sizing:border-box;display:inline-flex}}.ihabdevteam-core-scope .order-list__item.correct{border:1px solid var(--color-main)}.ihabdevteam-core-scope .order-list__slot{align-items:center;background-color:var(--color-darkWhite);border-radius:var(--radius-m);box-sizing:border-box;display:flex;gap:var(--spacing-xs);height:auto;padding:4px 10px;width:100%}.ihabdevteam-core-scope .order-list__marker{--marker-pos:50%;align-items:center;background-color:var(--color-main);background:color-mix(in srgb,var(--color-main) 50%,var(--color-sub) 50%);border:2px solid var(--color-pureWhite);border-radius:var(--radius-sm);box-sizing:border-box;color:#fff;display:inline-flex;height:24px;justify-content:center;width:24px}@supports (color:color-mix(in lch,red,blue)) and (top:var(--f )){.ihabdevteam-core-scope .order-list__marker{background:color-mix(in srgb,var(--color-main) calc(100% - var(--marker-pos)),var(--color-sub) var(--marker-pos))}}@media (max-width:600px){.ihabdevteam-core-scope .order-list__marker{height:24px;min-width:24px;width:24px}}.ihabdevteam-core-scope .order-list__item:hover .order-list__slot{background-color:var(--color-deepWhite);box-shadow:inset 0 0 0 1px var(--color-main);transition:box-shadow .16s cubic-bezier(.22,.9,.39,1)}.ihabdevteam-core-scope .order-list__item.drag-over .order-list__slot{background-color:var(--color-white);box-shadow:inset 0 0 0 1px var(--color-main)}.ihabdevteam-core-scope .order-list__slot.pulse{background-color:var(--color-white);transition:background-color .42s cubic-bezier(.22,.9,.39,1)}.ihabdevteam-core-scope .order-list__slot.pulse.to-dark{background-color:var(--color-darkWhite)}.ihabdevteam-core-scope .order-list__slot-number{align-items:center;align-self:center;border-radius:var(--radius-sm);color:#fff;display:inline-flex;height:32px;justify-content:center;width:32px}.ihabdevteam-core-scope .order-list__draggable.dragging{background-color:var(--color-white);opacity:.2}.ihabdevteam-core-scope .order-list__dragging-object{align-items:center;background:var(--color-white);border-radius:var(--radius-m);box-shadow:0 14px 40px rgba(16,24,40,.18);box-sizing:border-box;color:var(--color-black);display:inline-flex;gap:var(--spacing-s);left:0;max-width:calc(100vw - var(--spacing-page)*3);min-height:60px;opacity:1;overflow-wrap:anywhere;padding:20px;pointer-events:none;position:fixed;top:0;transform:translate3d(-9999px,-9999px,0) scale(1);transition:transform .16s cubic-bezier(.22,.9,.39,1),opacity .18s ease;white-space:normal;width:auto;will-change:transform,opacity;word-break:keep-all;z-index:var(--z-popover)}.ihabdevteam-core-scope .order-list__dragging-object--visible{opacity:1}.ihabdevteam-core-scope .order-list__item.drag-over .order-list__slot:hover{background-color:var(--color-white);border-radius:var(--radius-m);box-shadow:inset 0 0 0 1px var(--color-main);transition:box-shadow .16s cubic-bezier(.22,.9,.39,1)}.ihabdevteam-core-scope .order-list__item-text{display:block;line-height:1.4;margin:0;overflow-wrap:anywhere;white-space:normal;width:100%;word-break:keep-all}.ihabdevteam-core-scope .order-list__draggable[data-disabled=true],.ihabdevteam-core-scope .order-list__draggable[draggable=false]{background-color:var(--color-darkWhite);box-shadow:none!important;cursor:default;opacity:.9;pointer-events:none}.ihabdevteam-core-scope .order-list__draggable[data-disabled=true] .order-list__item-text,.ihabdevteam-core-scope .order-list__draggable[draggable=false] .order-list__item-text{color:var(--color-gray);display:none!important;opacity:.9}.ihabdevteam-core-scope .order-list__draggable[data-disabled=true] .order-list__item-buttons,.ihabdevteam-core-scope .order-list__draggable[data-disabled=true]~.order-list__slot .order-list__slot-number,.ihabdevteam-core-scope .order-list__draggable[draggable=false] .order-list__item-buttons,.ihabdevteam-core-scope .order-list__draggable[draggable=false]~.order-list__slot .order-list__slot-number,.ihabdevteam-core-scope .order-list__slot-number[hidden]{display:none!important}.ihabdevteam-core-scope .order-list__draggable[data-disabled=true] .order-list__slot,.ihabdevteam-core-scope .order-list__draggable[data-disabled=true]+.order-list__slot,.ihabdevteam-core-scope .order-list__draggable[draggable=false] .order-list__slot,.ihabdevteam-core-scope .order-list__draggable[draggable=false]+.order-list__slot,.ihabdevteam-core-scope .order-list__slot[data-disabled=true]{background-color:var(--color-darkWhite)!important;box-shadow:none!important}.ihabdevteam-core-scope .order-list__slot[data-disabled=true]{cursor:default!important;pointer-events:none!important}.ihabdevteam-core-scope .order-list__slot[data-disabled=true] .order-list__slot-number{display:none!important}";J(o7);function Pn({index:e,stepIndex:t,isLast:a=!1,title:r,onDone:n,onChange:i,context:s=[]}){const{t:c}=ge.useTranslation(),u=r??c("training.orderListDefault","\uBB38\uC7A5\uC744 \uB4E4\uC740 \uC21C\uC11C\uB300\uB85C \uBC30\uCE58\uD558\uC138\uC694."),d=M=>typeof M=="string"?M:M&&(M.context||M.sentence||M.question||"")||"",[p,m]=l.useState(Array.isArray(s)?s:[]),[h,g]=l.useState(()=>(p||[]).map((M,$)=>({id:$,text:d(M)}))),f=l.useMemo(()=>typeof t!="number"||typeof e!="number"?"disabled":e<t?"done":e===t?"active":"disabled",[t,e]);l.useEffect(()=>{const M=Array.isArray(s)?s:[];m(M);const $=(W=>{const q=(W||[]).map((z,re)=>({id:re,text:d(z)}));if(q.length<=1)return q;const X=(z,re)=>{if(z.length!==re.length)return!1;for(let Q=0;Q<z.length;Q++)if(z[Q].text!==re[Q].text)return!1;return!0};let O=He(q),Y=0;for(;X(O,q)&&Y<20;)O=He(q),Y+=1;return O})(M);g($);try{if(typeof i=="function"){const W=$.filter((q,X)=>q.text===d(M[X])).length;i({shuffled:$,score:W,total:(M||[]).length,initial:!0,__ts:Date.now()})}if(typeof n=="function"&&f==="active"){const W=$.filter((q,X)=>q.text===d(M[X])).length;n({shuffled:$,score:W,total:(M||[]).length,initial:!0,__ts:Date.now()})}}catch{}},[s]);const b=(M,$)=>{const W=[...h],q=M+$;if(q<0||q>=W.length)return;const X=W[q];W[q]=W[M],W[M]=X,E(W);try{if(typeof n=="function"&&f==="active"){const O=W.filter((Y,z)=>Y.text===d(p[z])).length;n({shuffled:W,score:O,total:(p||[]).length,__ts:Date.now()})}}catch{}},[y,v]=l.useState(null),C=l.useRef(null),w=l.useRef(null),x=l.useRef(null),S=l.useRef(null),_=l.useRef(null),k=l.useRef({x:0,y:0}),N=l.useRef(null),A=l.useRef({dx:0,dy:0}),D=()=>{if(N.current!==null)return;const M=()=>{N.current=requestAnimationFrame(M);const $=k.current,W=A.current||{dx:0,dy:0};C.current&&(C.current.style.transform=`translate3d(${$.x-W.dx}px, ${$.y-W.dy}px, 0)`)};N.current=requestAnimationFrame(M)},H=l.useRef(new Map),P=l.useRef(new Map),T=()=>{const M=new Map;return H.current.forEach(($,W)=>{$&&$.getBoundingClientRect&&M.set(W,$.getBoundingClientRect())}),M},E=M=>{const $=T();g(M);try{if(typeof i=="function"){const W=M.filter((q,X)=>q.text===d(p[X])).length;i({shuffled:M,score:W,total:(p||[]).length,__ts:Date.now()})}}catch{}requestAnimationFrame(()=>{const W=T();M.forEach(q=>{const X=$.get(q.id),O=W.get(q.id),Y=H.current.get(q.id);if(!Y||!X||!O)return;const z=X.top-O.top;z&&(Y.style.transition="none",Y.style.transform=`translateY(${z}px)`,requestAnimationFrame(()=>{Y.style.transition="transform 420ms cubic-bezier(.22,.9,.39,1)",Y.style.transform="";const re=()=>{Y.style.transition="",Y.removeEventListener("transitionend",re)};Y.addEventListener("transitionend",re)}))})})},L=(M,$)=>{try{try{$.dataTransfer?.setData("text/plain",String(M))}catch{}try{$.dataTransfer&&($.dataTransfer.effectAllowed="move")}catch{}try{const W=document.createElement("div");W.style.cssText="position:absolute;top:-9999px;left:-9999px;width:1px;height:1px;opacity:0;pointer-events:none;",document.body.appendChild(W),$.dataTransfer?.setDragImage(W,0,0),requestAnimationFrame(()=>{try{document.body.removeChild(W)}catch{}})}catch{}}catch{}v(M);try{const W=h[M],q=document.createElement("div");q.className="order-list__dragging-object order-list__dragging-object--visible",q.textContent=W&&W.text?W.text:"",document.body.appendChild(q),C.current=q;const X=H.current.get(W.id);let O=$.clientX||0,Y=$.clientY||0;try{if(X&&X.getBoundingClientRect){const ce=X.getBoundingClientRect();O=ce.left+ce.width/2,Y=ce.top+ce.height/2}}catch{}const z=q.getBoundingClientRect(),re=z.width/2,Q=z.height/2;A.current={dx:re,dy:Q},q.style.transition="none",k.current={x:O,y:Y},q.style.transform=`translate3d(${O-re}px, ${Y-Q}px, 0)`,requestAnimationFrame(()=>{try{q.style.transition=""}catch{}D()});const ne=ce=>{const I=ce;k.current={x:I.clientX,y:I.clientY},D()};x.current=ne,document.addEventListener("mousemove",ne);const me=ce=>{const I=ce;k.current={x:I.clientX,y:I.clientY},D()};w.current=me,document.addEventListener("dragover",me);try{$.dataTransfer?.setData("text/plain",String(M));try{$.dataTransfer?.setData("application/json",JSON.stringify({idx:M}))}catch{}}catch{}}catch{}},F=(M,$)=>{$.preventDefault();try{$.dataTransfer&&($.dataTransfer.dropEffect="move")}catch{}try{_.current!==null&&(clearTimeout(_.current),_.current=null);const W=$.currentTarget&&$.currentTarget.closest?$.currentTarget.closest(".order-list__item"):null;if(W&&S.current!==W){if(S.current)try{S.current.classList.remove("drag-over")}catch{}try{W.classList.add("drag-over")}catch{}S.current=W}}catch{}},te=(M,$)=>{$.preventDefault();const W=$.dataTransfer?.getData("text/plain")||"",q=W?parseInt(W,10):y,X=M;if(typeof q!="number"||isNaN(q)||q===X){v(null),j(),Z();return}const O=Ii(h,q,X);E(O),v(null),Z();try{if(typeof n=="function"&&f==="active"){const Y=O.filter((z,re)=>z.text===d(p[re])).length;n({shuffled:O,score:Y,total:(p||[]).length,__ts:Date.now()})}}catch{}try{requestAnimationFrame(()=>{const Y=document.querySelectorAll(".order-list .order-list__item")[X];if(!Y)return;const z=Y.querySelector(".order-list__slot")||Y;try{z.classList.add("pulse"),z.offsetHeight,z.classList.add("to-dark");const re=()=>{z.classList.remove("pulse","to-dark"),z.removeEventListener("transitionend",re)};z.addEventListener("transitionend",re)}catch{}})}catch{}j()},Z=()=>{if(C.current){try{document.body.removeChild(C.current)}catch{}C.current=null}w.current&&(document.removeEventListener("dragover",w.current),w.current=null),x.current&&(document.removeEventListener("mousemove",x.current),x.current=null),N.current!==null&&(cancelAnimationFrame(N.current),N.current=null)},V=()=>{v(null),j(),Z()};l.useEffect(()=>()=>Z(),[]);const j=()=>{try{if(_.current!==null&&(clearTimeout(_.current),_.current=null),S.current){try{S.current.classList.remove("drag-over")}catch{}S.current=null}document.querySelectorAll(".order-list .order-list__item").forEach(M=>M.classList.remove("drag-over"))}catch{}};return l.useEffect(()=>{try{const M=Math.max(1,(h||[]).length);h.forEach(($,W)=>{const q=P.current.get($.id);if(!q)return;let X=50;M>1&&(X=Math.round(W/(M-1)*100));try{q.style.setProperty("--marker-pos",X+"%")}catch{}})}catch{}},[h]),l.useEffect(()=>()=>{Z(),_.current!==null&&(clearTimeout(_.current),_.current=null)},[]),o.jsx(Va,{index:e,stepIndex:t,isLast:a,title:u,children:o.jsx("div",{className:"order-list",children:h.map((M,$)=>{const W=Math.max(1,(h||[]).length),q=W>1?Math.round($/(W-1)*100):50;return o.jsx("div",{className:"order-list__item",children:o.jsxs("div",{className:"order-list__slot","data-disabled":f==="disabled","aria-disabled":f==="disabled",children:[f!=="disabled"?o.jsx("div",{className:"order-list__marker caption-1",style:{"--marker-pos":q+"%"},ref:X=>{const O=P.current;X?O.set(M.id,X):O.delete(M.id)},children:o.jsx("span",{className:"order-list__slot-number button-1",children:$+1})}):null,o.jsxs("div",{ref:X=>{const O=H.current;X?O.set(M.id,X):O.delete(M.id)},className:`order-list__draggable ${y===$?"dragging":""}`,"data-disabled":f==="disabled","aria-disabled":f==="disabled",tabIndex:f==="disabled"?-1:0,draggable:f==="active",onDragStart:f==="active"?X=>L($,X):void 0,onDragEnter:f==="active"?X=>F($,X):void 0,onDragOver:f==="active"?X=>F($,X):void 0,onDragLeave:f==="active"?()=>{try{_.current!==null&&clearTimeout(_.current),_.current=setTimeout(()=>{try{const X=document.querySelectorAll(".order-list .order-list__item");X&&X[$]&&(X[$].classList.remove("drag-over"),S.current===X[$]&&(S.current=null))}catch{}},80)}catch{}}:void 0,onDrop:f==="active"?X=>te($,X):void 0,onDragEnd:f==="active"?V:void 0,children:[o.jsx("span",{className:"order-list__item-text body-2",children:M.text}),f==="active"?o.jsxs("span",{className:"order-list__item-buttons",children:[o.jsx(se,{size:32,type:"dot",onClick:()=>b($,-1),ariaLabel:c("training.up"),icon:"chevron-up",variant:"transparent-gray",width:48,useFaded:"true",disabled:$===0,useBorder:!1,useDisabledInvisible:!0}),o.jsx(se,{size:32,type:"dot",onClick:()=>b($,1),ariaLabel:c("training.down"),icon:"chevron-down",variant:"transparent-gray",width:48,useFaded:"true",disabled:$===h.length-1,useBorder:!1,useDisabledInvisible:!0})]}):null]})]})},M.id)})})})}var r7="";J(r7);const n7=8e3;function i7(e,t){return new Promise(a=>{let r=!1;const n=()=>{r||(r=!0,a())};e.then(n,n),setTimeout(n,t)})}function vc({index:e,stepIndex:t,isLast:a=!1,title:r,onDone:n,onChange:i,context:s=[],selectable:c=!1,hideLabel:u=!1,hideAudio:d=!1,maxCards:p}){const{t:m}=ge.useTranslation(),h=r??m("training.cardInstructions","\uB0B1\uB9D0 \uCE74\uB4DC\uB97C \uBCF4\uACE0 \uC18C\uB9AC\uB97C \uB4E3\uACE0 \uD655\uC778\uD558\uC138\uC694."),g=l.useMemo(()=>Array.isArray(s)?s:s&&s.items||[],[s]),f=p??3,b=(g||[]).slice(0,f);(g||[]).length>f&&console.warn(`TrainingStepCard: ${g.length} items passed but only ${f} shown`);const y=typeof e=="number"?e:-1,v=typeof t!="number"?"disabled":y<t?"done":y===t?"active":"disabled",[C,w]=l.useState(null),x=l.useRef([]),[S,_]=l.useState(!1),k=l.useMemo(()=>g.map(H=>H?.id??H?.word??"").join("|"),[g]);l.useEffect(()=>{w(null),x.current=[]},[k]);const N=l.useCallback((H,P)=>{if(c)return;const T={item:H,index:P,__ts:Date.now()};try{typeof i=="function"&&i(T)}catch{}if(v==="active"&&typeof n=="function")try{n(T)}catch{}},[c,i,v,n]),A=l.useCallback(async()=>{if(!(S||v==="disabled")){_(!0);try{for(const H of x.current)H&&await i7(H.play(),n7)}finally{_(!1)}}},[S,v]),D=l.useCallback((H,P)=>{if(v!=="active")return;w(P);const T={selectedValue:H.word||H.title||"",selectedIndex:P,item:H,__ts:Date.now()};try{typeof i=="function"&&i(T)}catch{}if(v==="active"&&typeof n=="function")try{n(T)}catch{}},[i,v,n]);return o.jsx(Va,{index:e,stepIndex:t,isLast:a,title:h,onDone:n,titleProps:{usePlayAllBtn:!d&&b.length>0,onPlayAll:A,playAllActive:S},children:o.jsx("div",{className:"training-step__cards",children:b.length===0?o.jsx("div",{className:"training-step__empty",children:m("training.noCards","\uCE74\uB4DC\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4.")}):b.map((H,P)=>o.jsx(Sn,{ref:T=>{x.current[P]=T},item:H,disabled:v==="disabled",onPlayDone:()=>N(H,P),selectable:c,selected:c&&C===P,onSelect:c?()=>D(H,P):void 0,flipDelay:P*120,hideLabel:u,hideAudio:d},H&&H.id||P))})})}const s7=160;var l7=".ihabdevteam-core-scope .panel{background:var(--color-white);border:1px solid var(--color-whiteLine);border-radius:var(--radius-card);display:flex;flex-direction:column;overflow:visible;padding:0;text-align:left}.ihabdevteam-core-scope .panel--no-border{border:none}.ihabdevteam-core-scope .panel--no-bg{background:transparent;border-radius:0}.ihabdevteam-core-scope .panel--no-border .panel-row{padding-left:0;padding-right:0}.ihabdevteam-core-scope .panel--no-row-border .panel-row+.panel-row{border-top:none}.ihabdevteam-core-scope .panel__header{align-items:center;border-bottom:1px solid var(--color-darkWhite);box-sizing:border-box;display:flex;gap:var(--spacing-xs);justify-content:space-between;margin:0;padding:0 20px}.ihabdevteam-core-scope .panel__header:last-child{border-bottom:none}.ihabdevteam-core-scope .panel--small .panel__header{min-height:48px}.ihabdevteam-core-scope .panel--medium .panel__header{min-height:56px}.ihabdevteam-core-scope .panel--large .panel__header{min-height:64px}.ihabdevteam-core-scope .panel__icon{align-items:center;color:var(--t-item-fg,var(--color-main));display:flex;flex-shrink:0;height:20px;justify-content:center;margin-right:var(--spacing-s);width:20px}.ihabdevteam-core-scope .panel__title-group{display:flex;flex-direction:column;gap:4px;margin-right:auto;min-width:0}.ihabdevteam-core-scope .panel__title{color:var(--color-darkGray);margin:0}.ihabdevteam-core-scope .panel__disc{color:var(--color-gray);margin:0}.ihabdevteam-core-scope .panel__actions{display:flex;flex-shrink:0;gap:6px}.ihabdevteam-core-scope .panel-row{align-items:center;box-sizing:border-box;display:flex;gap:var(--spacing-m);justify-content:space-between;padding:4px 20px}.ihabdevteam-core-scope .panel--small .panel-row{min-height:48px}.ihabdevteam-core-scope .panel--medium .panel-row{min-height:56px}.ihabdevteam-core-scope .panel--large .panel-row{min-height:64px}.ihabdevteam-core-scope .panel-row+.panel-row{border-top:1px solid var(--color-darkWhite)}.ihabdevteam-core-scope .panel--fill .panel-row{border-bottom:1px solid var(--color-darkWhite)}.ihabdevteam-core-scope .panel--fill .panel-row+.panel-row{border-top:none}.ihabdevteam-core-scope .panel--no-row-border .panel-row{border-bottom:none}.ihabdevteam-core-scope .panel>:not(.panel-row)+.panel-row{border-top:none}.ihabdevteam-core-scope .panel-grid{grid-gap:1px;background:var(--color-darkWhite);display:grid;gap:1px;grid-template-columns:repeat(2,1fr);grid-template-columns:repeat(var(--panel-grid-cols,2),1fr);overflow:hidden;padding-bottom:1px}.ihabdevteam-core-scope .panel-grid .panel-row{background:var(--color-white)}.ihabdevteam-core-scope .panel-grid .panel-row+.panel-row{border-top:none}.ihabdevteam-core-scope .panel-row--empty{color:var(--color-lightGray);justify-content:center}.ihabdevteam-core-scope .panel-row--loading{justify-content:center}.ihabdevteam-core-scope .panel__body--scroll{flex:1;min-height:0;overflow-y:auto;overscroll-behavior-y:contain}.ihabdevteam-core-scope .panel-row--content{display:block;min-height:0;padding:16px}.ihabdevteam-core-scope .panel-row--scroll{display:flex;flex:1;flex-direction:column;min-height:0;overflow-y:auto;overscroll-behavior-y:contain;padding:16px 16px 20px}.ihabdevteam-core-scope .panel-row--content+.panel-row--content,.ihabdevteam-core-scope .panel-row--content+.panel-row--scroll,.ihabdevteam-core-scope .panel-row--scroll+.panel-row--content,.ihabdevteam-core-scope .panel-row--scroll+.panel-row--scroll{border-top:none}.ihabdevteam-core-scope .panel-row__icon{align-items:center;display:flex;flex-shrink:0;margin-right:-4px}.ihabdevteam-core-scope .panel-row__left{flex:1;min-width:0}.ihabdevteam-core-scope .panel-row__label{color:var(--color-deepGray)}.ihabdevteam-core-scope .panel-row__sub{color:var(--color-gray);margin-top:2px}.ihabdevteam-core-scope .panel-row__right{align-items:center;display:flex;flex:0 0 auto;justify-content:flex-end}@media (max-width:767px){.ihabdevteam-core-scope .panel-row{flex-wrap:wrap}.ihabdevteam-core-scope .panel-row__right{flex:0 1 auto;min-width:0}}.ihabdevteam-core-scope .panel--form .panel-row{grid-gap:var(--spacing-m);align-items:center;display:grid;gap:var(--spacing-m);grid-template-columns:80px 1fr;grid-template-columns:var(--panel-label-width,80px) 1fr}.ihabdevteam-core-scope .panel--form .panel-row:has(.text-field--full-width){align-items:flex-start}.ihabdevteam-core-scope .panel--form .panel-row:has(.text-field--full-width) .panel-row__left{padding-top:9px}.ihabdevteam-core-scope .panel-row--label-fixed .panel-row__left{flex:0 0 120px;flex:0 0 var(--panel-label-width,120px)}.ihabdevteam-core-scope .panel-row--label-fixed .panel-row__right{flex:1;min-width:0}.ihabdevteam-core-scope .panel-row--clickable{cursor:pointer;transition:background .1s,box-shadow .1s}.ihabdevteam-core-scope .panel-row--clickable:hover{background:var(--color-darkWhite)}.ihabdevteam-core-scope .panel-row__text{color:var(--color-darkGray);overflow-wrap:break-word;text-align:right;word-break:break-word}.ihabdevteam-core-scope .panel-row--text .panel-row__right{flex:1;min-width:0}.ihabdevteam-core-scope .panel-row--block{align-items:stretch;display:flex;flex-direction:column;justify-content:center}.ihabdevteam-core-scope .panel-row__description{color:var(--color-gray);line-height:1.6;margin:0;overflow-wrap:break-word;word-break:break-word}.ihabdevteam-core-scope .panel-row__dropdown-group{display:flex;gap:var(--spacing-s)}.ihabdevteam-core-scope .panel-row__dropdown-group--full,.ihabdevteam-core-scope .panel-row__dropdown-item--full{flex:1;min-width:0}.ihabdevteam-core-scope .panel-row__dropdown-error-wrap{display:flex;flex-direction:column}.ihabdevteam-core-scope .panel-row__dropdown-error-wrap--full{flex:1;min-width:0}.ihabdevteam-core-scope .panel-row__text--full{text-align:left;width:100%}.ihabdevteam-core-scope .panel-row__input-wrap{display:flex;flex-direction:column}.ihabdevteam-core-scope .panel-row__input-wrap--full{flex:1;min-width:0}.ihabdevteam-core-scope .panel-row--vertical{align-items:flex-start;flex-direction:column;gap:8px;gap:var(--spacing-xs,8px)}.ihabdevteam-core-scope .panel-row--vertical .panel-row__left{flex:none;width:100%}.ihabdevteam-core-scope .panel-row--vertical .panel-row__right{align-items:flex-start;flex:none;justify-content:flex-start;width:100%}.ihabdevteam-core-scope .panel-row--vertical .panel-row__text{margin-left:0;text-align:left}.ihabdevteam-core-scope .panel-row--device{grid-gap:0;align-items:stretch;display:grid;gap:0;grid-template-columns:1fr 1fr;min-height:0;padding:0}.ihabdevteam-core-scope .panel-row__device-column{box-sizing:border-box;display:flex;flex-direction:column;gap:0;min-height:164px;padding:14px 16px}.ihabdevteam-core-scope .panel-row__device-column+.panel-row__device-column{border-left:1px solid var(--color-darkWhite)}.ihabdevteam-core-scope .panel-row__device-head{align-items:center;display:flex;gap:8px;justify-content:space-between;margin-bottom:8px;min-height:32px}.ihabdevteam-core-scope .panel-row__device-side{color:var(--color-darkGray);margin:0;text-align:left}.ihabdevteam-core-scope .panel-row__device-info{margin:0;text-align:left}.ihabdevteam-core-scope .panel-row__device-info,.ihabdevteam-core-scope .panel-row__device-kind{align-items:flex-start;display:flex;flex-direction:column;gap:3px}.ihabdevteam-core-scope .panel-row__device-name{color:var(--color-darkGray)}.ihabdevteam-core-scope .panel-row__device-detail{color:var(--color-gray)}.ihabdevteam-core-scope .panel-row__device-product{color:var(--color-darkGray)}.ihabdevteam-core-scope .panel-row__device-date{color:var(--color-lightGray);margin-top:2px}.ihabdevteam-core-scope .panel-row__device-empty{align-items:center;color:var(--color-lightGray);display:flex;flex:1;justify-content:center;text-align:center}.ihabdevteam-core-scope .required-mark{color:var(--color-main);margin-left:2px}.ihabdevteam-core-scope .panel-row__error{color:var(--color-error);margin-top:4px}.ihabdevteam-core-scope .panel-row__helper{color:var(--color-lightGray);margin-top:4px}.ihabdevteam-core-scope .panel-row__button-group{display:flex;gap:6px}@media (max-width:767px){.ihabdevteam-core-scope .panel-row__dropdown-group{flex-wrap:wrap}.ihabdevteam-core-scope .panel-row__dropdown-error-wrap--full,.ihabdevteam-core-scope .panel-row__dropdown-item--full{flex:1 1 104px}}";J(l7);const Tb=()=>{};function Na(e){const t=l.useId();if(!("variant"in e)){const{label:b,sub:y,onClick:v,children:C,align:w="horizontal",icon:x}=e,S=_=>{v&&_.target===_.currentTarget&&(_.key==="Enter"||_.key===" ")&&(_.preventDefault(),v())};return o.jsxs("div",{className:xe("panel-row",w==="vertical"?"panel-row--vertical":"",v?"panel-row--clickable":""),onClick:v,onKeyDown:v?S:void 0,role:v?"button":void 0,tabIndex:v?0:void 0,children:[x!=null&&o.jsx("div",{className:"panel-row__icon",children:x}),b!=null&&o.jsxs("div",{className:"panel-row__left",children:[o.jsx("div",{className:"panel-row__label body-3",children:b}),y&&o.jsx("div",{className:"panel-row__sub caption-1",children:y})]}),o.jsx("div",{className:"panel-row__right",children:C})]})}if(e.variant==="description")return o.jsx("div",{className:"panel-row panel-row--block",children:o.jsx("p",{className:"panel-row__description body-3",children:e.children})});if(e.variant==="empty")return o.jsx("div",{className:"panel-row panel-row--empty body-3",children:e.children});if(e.variant==="loading")return o.jsx("div",{className:"panel-row panel-row--loading",children:o.jsx(Ao,{size:28})});if(e.variant==="custom"&&!e.label)return o.jsx("div",{className:"panel-row panel-row--block",children:e.children});const{variant:a,label:r,sub:n,onClick:i,required:s,error:c,align:u="horizontal",useFullWidth:d=!1,icon:p}=e;let m=null;const h=a==="toggle"?`panel-toggle-${t}`:void 0;if(a==="toggle"){const b=e;m=o.jsx(Fl,{checked:b.checked,onChange:b.onChange,id:h})}else if(a==="segmented"){const b=e;m=o.jsx(Ha,{options:b.options,value:b.value,onChange:b.onChange,size:b.size??40,ariaLabel:r})}else if(a==="dropdown"){const b=e,y=b.dropdowns?.length?o.jsx("div",{className:`panel-row__dropdown-group${d?" panel-row__dropdown-group--full":""}`,children:b.dropdowns.map((v,C)=>o.jsx("div",{className:d?"panel-row__dropdown-item--full":void 0,children:o.jsx(Ut,{options:v.options,value:v.value,onChange:v.onChange,placeholder:v.placeholder,block:d,error:!!c,ariaLabel:v.ariaLabel??([r,v.placeholder].filter(Boolean).join(" ")||void 0)})},C))}):o.jsx(Ut,{options:b.options??[],value:b.value??"",onChange:b.onChange??Tb,block:d,error:!!c,ariaLabel:r});m=c?o.jsxs("div",{className:`panel-row__dropdown-error-wrap${d?" panel-row__dropdown-error-wrap--full":""}`,children:[y,o.jsx("span",{className:"caption-1 panel-row__error",role:"alert",children:c})]}):y}else if(a==="button"){const b=e;b.buttons?.length?m=o.jsx("div",{className:"panel-row__button-group",children:b.buttons.map((y,v)=>o.jsx(se,{size:y.btnSize??40,variant:y.btnVariant??"default",disabled:y.disabled,onClick:y.onClick,children:y.label},v))}):m=o.jsx(se,{size:b.btnSize??40,variant:b.btnVariant??"default",disabled:b.disabled,onClick:b.onClick,children:b.buttonLabel})}else if(a==="text"){const b=e;m=o.jsx("span",{className:`panel-row__text body-2${d?" panel-row__text--full":""}`,style:b.valueColor?{color:b.valueColor}:void 0,children:b.value})}else if(a==="input"){const b=e;m=o.jsxs("div",{className:`panel-row__input-wrap${d?" panel-row__input-wrap--full":""}`,children:[o.jsx(Wa,{value:b.value,onChange:b.onChange??Tb,onKeyDown:b.onKeyDown,onEnter:b.onEnter,placeholder:b.placeholder,inputMode:b.inputMode,readOnly:b.readOnly,disabled:b.disabled,type:b.type,autoComplete:b.autoComplete,maxLength:b.maxLength,showCount:b.showCount,multiline:b.multiline,rows:b.rows,fullWidth:d,error:c,ariaLabel:r,required:s}),b.helperText&&o.jsx("div",{className:"panel-row__helper caption-1",children:b.helperText})]})}else a==="custom"&&(m=e.children);const g=a==="input"||a==="dropdown"||(a==="text"||a==="custom")&&d,f=b=>{i&&b.target===b.currentTarget&&(b.key==="Enter"||b.key===" ")&&(b.preventDefault(),i())};return o.jsxs("div",{className:xe("panel-row",u==="vertical"?"panel-row--vertical":"",g?"panel-row--label-fixed":"",a==="text"?"panel-row--text":"",i?"panel-row--clickable":""),onClick:i,onKeyDown:i?f:void 0,role:i?"button":void 0,tabIndex:i?0:void 0,children:[p!=null&&o.jsx("div",{className:"panel-row__icon",children:p}),o.jsxs("div",{className:"panel-row__left",children:[h?o.jsxs("label",{htmlFor:h,className:"panel-row__label body-3",children:[r,s&&o.jsx("span",{className:"required-mark",children:"*"})]}):o.jsxs("div",{className:"panel-row__label body-3",children:[r,s&&o.jsx("span",{className:"required-mark",children:"*"})]}),n&&o.jsx("div",{className:"panel-row__sub caption-1",children:n})]}),o.jsx("div",{className:"panel-row__right",children:m})]})}function Bb(e){const t=e.productName||e.brand,a=[e.brand,e.fitType].filter(r=>!!r&&r!==t);return[...new Set(a)].join(" \xB7 ")}function Nb({devices:e,onRelease:t}){const{t:a}=ge.useTranslation();return o.jsx("div",{className:"panel-row panel-row--device",children:["\uC88C","\uC6B0"].map(r=>{const n=e[r],i=r==="\uC88C"?a("device.direction.left","\uC88C"):a("device.direction.right","\uC6B0");return o.jsxs("div",{className:"panel-row__device-column",children:[o.jsxs("div",{className:"panel-row__device-head",children:[o.jsx("span",{className:"panel-row__device-side body-2b",children:i}),n&&t&&o.jsx(se,{size:32,type:"dot",icon:"x",ariaLabel:a("customers.device.unwear","\uCC29\uC6A9 \uD574\uC81C"),showTooltipInfo:a("customers.device.unwear","\uCC29\uC6A9 \uD574\uC81C"),onClick:()=>t(r)})]}),n?o.jsxs("div",{className:"panel-row__device-info",children:[o.jsxs("span",{className:"panel-row__device-kind",children:[n.device&&o.jsx(ht,{size:"small",variant:ym(n.device),fill:"soft",label:n.device}),Bb(n)&&o.jsx("span",{className:"panel-row__device-detail body-3",children:Bb(n)})]}),o.jsx("span",{className:"panel-row__device-name body-2b",children:n.productName||n.brand}),o.jsx("span",{className:"panel-row__device-date caption-1",children:a("customers.device.wornSince",{date:`${n.wornYear}.${n.wornMonth}.${n.wornDay}`})})]}):o.jsx("span",{className:"panel-row__device-empty body-3",children:a("customers.device.notRegistered","\uBBF8\uB4F1\uB85D")})]},r)})})}function wr({title:e,icon:t,disc:a,actions:r,size:n="medium",minHeight:i,maxWidth:s,className:c,scrollable:u,useBorder:d=!0,useBg:p=!0,useRowBorder:m=!0,labelWidth:h,form:g=!1,loading:f,empty:b,children:y}){const v=xe("panel",`panel--${n}`,g?"panel--form":"",i!==void 0?"panel--fill":"",d?"":"panel--no-border",p?"":"panel--no-bg",m?"":"panel--no-row-border",c),C={};return i!==void 0&&(C.minHeight=i),s!==void 0&&(C.maxWidth=typeof s=="number"?`${s}px`:s),h!==void 0&&(C["--panel-label-width"]=typeof h=="number"?`${h}px`:h),o.jsxs("div",{className:v,style:Object.keys(C).length?C:void 0,children:[(e!=null||a!=null)&&o.jsxs("div",{className:xe("panel__header",a!=null?"panel__header--with-disc":""),children:[t&&o.jsx(Ie,{icon:t,label:typeof e=="string"?e:void 0,className:"panel__icon"}),o.jsxs("div",{className:"panel__title-group",children:[e!=null&&o.jsx("h2",{className:`panel__title ${a!=null?"body-3b":"h5b"}`,children:e}),a!=null&&o.jsx("p",{className:"panel__disc caption-1",children:a})]}),r&&o.jsx("div",{className:"panel__actions",children:r})]}),f?o.jsx(Na,{variant:"loading"}):b!=null&&(y==null||Array.isArray(y)&&y.length===0)?o.jsx(Na,{variant:"empty",children:b}):u?o.jsx("div",{className:"panel__body--scroll",children:y}):y]})}function Db({cols:e=2,children:t}){return o.jsx("div",{className:"panel-grid",style:{"--panel-grid-cols":e},children:t})}function c7(e){return[{label:e("training.noise.level.none","\uC5C6\uC74C"),value:0},{label:e("training.noise.level.weak","\uC57D\uD568"),value:1},{label:e("training.noise.level.medium","\uBCF4\uD1B5"),value:2},{label:e("training.noise.level.strong","\uAC15\uD568"),value:3},{label:e("training.noise.level.veryStrong","\uB9E4\uC6B0 \uAC15\uD568"),value:4}]}function Eb(e){return[{label:e("training.noise.type.default","\uAE30\uBCF8"),value:"defaultNoise",icon:"party-popper"},{label:e("training.noise.type.street","\uAE38\uAC70\uB9AC"),value:"street",icon:"car"},{label:e("training.noise.type.buzz","\uC640\uAE00\uC640\uAE00"),value:"buzz",icon:"message-square-more"},{label:e("training.noise.type.restaurant","\uC2DD\uB2F9"),value:"restaurant",icon:"coffee"}]}c7(Ca.t.bind(Ca)),Eb(Ca.t.bind(Ca));var d7='.ihabdevteam-core-scope .noise-settings{border-radius:var(--radius-m);box-sizing:border-box;max-width:calc(100vw - 40px);padding:20px}.ihabdevteam-core-scope .tooltip-content:has(.noise-settings__header) .tooltip-content__header{border-bottom:1px solid var(--color-darkWhite);height:60px;padding:0 20px}.ihabdevteam-core-scope .noise-settings__header{align-items:center;display:flex;justify-content:space-between;width:100%}.ihabdevteam-core-scope .noise-settings__header span{color:var(--color-darkGray);font-weight:600}.ihabdevteam-core-scope .noise-settings__slider-input.slider--horizontal{flex:1 1 auto}.ihabdevteam-core-scope .noise-settings__value{font-feature-settings:"tnum";color:var(--color-main);flex:0 0 auto;font-variant-numeric:tabular-nums;text-align:right;white-space:nowrap;width:44px}';J(d7);const yc="none",u7=.5,p7=1.5,h7=.25;function xc({title:e,valueLabel:t,value:a,min:r,max:n,step:i,tickStep:s,size:c,onChange:u}){return o.jsxs(Na,{variant:"custom",label:e,useFullWidth:!0,children:[o.jsx(ql,{value:a,onChange:u,min:r,max:n,step:i,size:c,showBgTick:!0,tickStep:s,ariaLabel:e,className:"noise-settings__slider-input"}),o.jsx("div",{className:"noise-settings__value button-1",children:t})]})}function Cc({anchorRect:e,onClose:t}){const{t:a}=ge.useTranslation(),r=oa("(max-width: 767px)")?40:24,n=uc(),i=n?.settings.level??0,s=n?.settings.type??"defaultNoise",c=n?.settings.enabled??!0,u=Ek(i),d=n?.playbackRate??1,p=n?.mainVolume??1,m=Math.round(p*100),h=l.useCallback(y=>{try{n?.setMainVolume(Math.max(0,Math.min(1,y/100)))}catch{}},[n]),g=l.useCallback(y=>{try{n?.setPlaybackRate(y)}catch{}},[n]),f=l.useCallback(y=>{const v=jk(y);try{n?.setSettings({level:v})}catch{}},[n]),b=l.useCallback(y=>{try{y===yc?n?.setSettings({enabled:!1}):n?.setSettings({type:y,enabled:!0})}catch{}},[n]);return o.jsx(Sa,{anchorRect:e,offset:12,onClose:t,ariaLabel:a("training.trainingSettingsTitle","\uD6C8\uB828 \uC124\uC815"),isMobilePopup:!1,closeOnOutsideClick:!1,header:o.jsxs("div",{className:"noise-settings__header",children:[o.jsx("span",{children:a("training.trainingSettingsTitle","\uD6C8\uB828 \uC124\uC815")}),o.jsx(se,{size:40,type:"dot",icon:"x",variant:"transparent-gray",useBorder:!1,ariaLabel:a("common.close","\uB2EB\uAE30"),onClick:t})]}),children:o.jsxs(wr,{className:"noise-settings",useBorder:!1,labelWidth:72,children:[o.jsx(xc,{title:a("training.playVolumeTitle","\uC7AC\uC0DD \uC18C\uB9AC"),valueLabel:`${m}%`,value:m,min:0,max:100,step:10,size:r,onChange:h}),o.jsx(xc,{title:a("training.playSpeedTitle","\uC7AC\uC0DD \uC18D\uB3C4"),valueLabel:`${d.toFixed(2)}x`,value:d,min:u7,max:p7,step:h7,size:r,onChange:g}),o.jsx(xc,{title:a("training.noiseLevelTitle","\uC18C\uC74C \uD06C\uAE30"),valueLabel:`${u}%`,value:u,min:0,max:100,step:10,size:r,onChange:f}),o.jsx(Na,{variant:"custom",label:a("training.noiseTypeTitle","\uC18C\uC74C \uC885\uB958"),useFullWidth:!0,children:o.jsx(Ha,{ariaLabel:a("training.noiseTypeTitle","\uC18C\uC74C \uC885\uB958"),size:40,shape:"rounded",options:[{key:yc,label:a("training.noise.type.none","\uC5C6\uC74C")},...Eb(a).map(y=>({key:y.value,label:y.label}))],value:c?s:yc,onChange:b})})]})})}var m7=".ihabdevteam-core-scope .training-page-bottom{box-sizing:border-box;width:100%}.ihabdevteam-core-scope .pp-bottom{align-items:center;background:var(--color-deepWhite);border-top:1px solid var(--color-whiteLine);box-sizing:border-box;display:flex;flex:0 0 auto;gap:var(--spacing-s);justify-content:space-between;padding:12px 18px calc(12px + env(safe-area-inset-bottom));width:100%;z-index:5}.ihabdevteam-core-scope .pp-bottom__left{align-items:center;display:flex;gap:var(--spacing-m)}.ihabdevteam-core-scope .pp-bottom__right{align-items:center;display:flex;gap:8px}.ihabdevteam-core-scope .pp-bottom__meters{border:1px solid var(--color-whiteLine);border-radius:14px;display:flex;flex-direction:column;gap:2px;justify-content:center;padding:8px 12px}.ihabdevteam-core-scope .pp-bottom__meter{align-items:center;display:flex;flex-direction:row;gap:var(--spacing-xs)}.ihabdevteam-core-scope .pp-bottom__meter-label{color:var(--color-gray);min-width:28px}.ihabdevteam-core-scope .pp-bottom__settings--desktop{display:none}.ihabdevteam-core-scope .pp-bottom__settings--mobile{display:flex}@media (min-width:768px){.ihabdevteam-core-scope .pp-bottom__settings--desktop{display:block}.ihabdevteam-core-scope .pp-bottom__settings--mobile{display:none}}.ihabdevteam-core-scope .pp-bottom__tooltip-trigger{display:inline-block}";J(m7);function _c({useNoiseSettingBtn:e=!1,onSettings:t,onNext:a,onResult:r,stepIndex:n=0,stepCount:i=0,pageIndex:s=0,pageCount:c=1}){const{t:u}=ge.useTranslation(),[d,p]=l.useState(!1),[m,h]=l.useState(null),[g,f]=l.useState(!1),b=l.useRef(null),y=l.useRef(null),v=uc(),C=s<c-1,w=s===c-1,x=n===Math.max(0,i);l.useEffect(()=>{e||(p(!1),h(null))},[e]);const S=l.useCallback(()=>{p(!1),h(null)},[]),_=l.useCallback(()=>{if(d){p(!1),h(null);return}const A=b?.current?.getBoundingClientRect();A&&h(A),t?.(),p(!0)},[d,t]),k=l.useCallback(()=>{if(d){p(!1),h(null);return}const A=y?.current?.getBoundingClientRect();A&&h(A),t?.(),p(!0)},[d,t]),N=l.useCallback(()=>f(A=>!A),[]);return o.jsxs("div",{className:"pp-bottom",children:[o.jsxs("div",{className:"pp-bottom__left",children:[e?o.jsxs(o.Fragment,{children:[o.jsx("div",{className:"pp-bottom__settings--desktop",children:o.jsx("div",{ref:b,className:"pp-bottom__tooltip-trigger","data-tooltip-ignore":!0,children:o.jsx(se,{size:56,type:"bar",icon:"settings",onClick:_,selected:d,ariaLabel:u("training.trainingSettingsTitle","\uD6C8\uB828 \uC124\uC815"),label:u("training.trainingSettingsTitle","\uD6C8\uB828 \uC124\uC815"),minWidth:140})})}),o.jsx("div",{className:"pp-bottom__settings--mobile",children:o.jsx("div",{ref:y,className:"pp-bottom__tooltip-trigger","data-tooltip-ignore":!0,children:o.jsx(se,{size:56,type:"dot",icon:"settings",onClick:k,selected:d,ariaLabel:u("training.settings","\uC124\uC815"),minWidth:52})})})]}):null,e&&o.jsx(se,{size:40,type:"dot",shape:"pill",icon:"audio-lines",onClick:N,selected:g,ariaLabel:u("training.meter.toggle","\uC624\uB514\uC624 \uBBF8\uD130 \uD45C\uC2DC")}),e&&g&&o.jsxs("div",{className:"pp-bottom__meters",children:[o.jsxs("div",{className:"pp-bottom__meter",children:[o.jsx("span",{className:"pp-bottom__meter-label caption-1",children:u("training.meter.sentence","\uC7AC\uC0DD")}),o.jsx(Cn,{analyser:v?.mainAnalyser??null,orientation:"horizontal",length:112,label:"db",labelPos:"left",ariaLabel:u("training.meter.sentence","\uC7AC\uC0DD")})]}),o.jsxs("div",{className:"pp-bottom__meter",children:[o.jsx("span",{className:"pp-bottom__meter-label caption-1",children:u("training.meter.noise","\uC18C\uC74C")}),o.jsx(Cn,{analyser:v?.noiseAnalyser??null,orientation:"horizontal",length:112,label:"db",labelPos:"left",ariaLabel:u("training.meter.noise","\uC18C\uC74C")})]})]})]}),o.jsxs("div",{className:"pp-bottom__right",children:[w&&o.jsx(se,{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:!x}),C&&o.jsx(se,{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:!x})]}),e&&d&&o.jsx(Cc,{anchorRect:m,onClose:S})]})}var b7=".ihabdevteam-core-scope .training-page-top{box-sizing:border-box;width:100%}.ihabdevteam-core-scope .pp-title.training-popup-title{align-items:center;background:var(--color-deepWhite);border-bottom:1px solid var(--color-whiteLine);box-sizing:border-box;display:flex;gap:var(--spacing-s);justify-content:space-between;padding:12px 16px;position:relative;width:100%;z-index:6}.ihabdevteam-core-scope .pp-title__left{align-items:center;display:flex;gap:var(--spacing-s);min-width:0}.ihabdevteam-core-scope .pp-title__text{display:flex;flex-direction:column;min-width:0}.ihabdevteam-core-scope .pp-title__depth{color:var(--color-gray)}.ihabdevteam-core-scope .pp-title__title{font-weight:700;margin:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ihabdevteam-core-scope .pp-title__title--empty{color:var(--color-whiteLine)}.ihabdevteam-core-scope .pp-title__description{color:var(--color-gray);margin-top:1px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}@media (max-width:767px){.ihabdevteam-core-scope .pp-title.training-popup-title{gap:var(--spacing-xs);padding:10px 12px}.ihabdevteam-core-scope .pp-title__depth{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ihabdevteam-core-scope .pp-title__left{flex:1;min-width:0;overflow:hidden}}";J(b7);function wc({title:e,subtitle:t,desc:a,depth:r,icon:n,wrapperStyle:i,iconTooltip:s,pageIndex:c,pageCount:u,progressMax:d,progressIndex:p,onBack:m,onClose:h}){const{t:g}=ge.useTranslation(),f=oa("(max-width: 767px)"),b=Number.isInteger(p)?p:c||0,y=Number.isInteger(d)?d:u||0,v=m||h,C=Array.isArray(r)?f?r[r.length-1]:r.join(" / "):r,w=typeof e=="string"?e.trim():e,x=typeof t=="string"?t.trim():t,S=!!(w||x),_=S?w||x:g("common.emptyTrainingName","\uD6C8\uB828 \uC774\uB984\uC774 \uBE44\uC5B4 \uC788\uC2B5\uB2C8\uB2E4."),k=C||t,N=f&&typeof k=="string"&&(k.includes(" \xB7 ")||k.includes(" / "))?k.split(/\s[·/]\s/).pop():k,A=l.useMemo(()=>{const D=i&&typeof i=="object"?{...i}:{};return!("width"in D)&&!("height"in D)&&(D.width="40px",D.height="40px"),D},[i]);return o.jsxs("header",{className:"pp-title training-popup-title",children:[o.jsxs("div",{className:"pp-title__left",children:[v?o.jsx(se,{size:48,type:"dot",icon:"chevron-left",ariaLabel:g("common.back","\uB4A4\uB85C"),onClick:v,useBorder:!1,iconSize:"large",iconColor:"--color-black",variant:"transparent-gray"}):null,o.jsx("div",{children:n?o.jsx(km,{icon:n,label:e,tooltip:s,wrapperStyle:A}):null}),o.jsxs("div",{className:"pp-title__text",children:[N?o.jsx("span",{className:"pp-title__depth caption-1",children:N}):null,o.jsx("span",{className:`pp-title__title h2${S?"":" pp-title__title--empty"}`,children:_}),a?o.jsx("span",{className:"pp-title__description caption-1",children:a}):null]})]}),o.jsx(Zl,{max:Math.max(0,y??0),index:Math.max(0,b??0)})]})}function jb(){typeof window<"u"&&window.dispatchEvent(new CustomEvent("speechear.popup.close"))}function Lb(e){return!e&&e!==0?[]:Array.isArray(e)?e.flatMap(t=>typeof t=="string"?t.split("|").map(a=>a.trim()).filter(Boolean):t||t===0?[String(t)]:[]):typeof e=="string"?e.split("|").map(t=>t.trim()).filter(Boolean):[String(e)]}function kc(e,t,a){const r=e,n=r?.title||r?.name||(Array.isArray(t)?t[t.length-1]:void 0)||a||"\uD6C8\uB828",i=Xr().find(c=>c.key===(r?.category_0||r?.category_main_code)),s=i?.subs?.find(c=>c.key===(r?.category_1||r?.category_sub_code));return{title:n,label:r?.title||n,depth:t,icon:i?.icon,wrapperStyle:i?.color?{"--t-item-fg":i.color}:void 0,iconTooltip:[i?.label,s?.label].filter(Boolean).join(" / ")||void 0}}function Rn(e){return e&&typeof e=="object"&&typeof e.__ts=="number"?e.__ts:0}function Mb(e){const t=e;return Array.isArray(t?.items)?t.items:Array.isArray(e)?e:e?[e]:[]}function Pb({idPrefix:e,trainingData:t,depth:a,fallbackTitle:r="\uD6C8\uB828",pages:n=[],emptyMessage:i,buildResults:s,metaPatch:c}){const u=kc(t,a,r),d=typeof c=="function"?c(u)||{}:c||{},p=t?.id||t?.title||n.length;return{id:`${e}:${p}`,meta:{...u,...d},pages:n,emptyMessage:i,buildResults:s}}function Rb(e){if(typeof e=="string")return e;if(e&&typeof e=="object"){const t=e;return t.context||t.sentence||t.question||""||""}return""}function $b(e){if(e&&typeof e=="object"){const t=e;if(Array.isArray(t.selectedValues))return t.selectedValues;if(t.selectedValue!==void 0)return t.selectedValue;if(t.selectedIndex!==void 0)return t.selectedIndex;if(t.value!==void 0)return t.value}return e}function Ib(e,t=[]){if(Array.isArray(e))return e.join(", ");if(typeof e=="number"&&Array.isArray(t))return String(t[e]??"");if(typeof e=="string")return e}function Sc(e,t){if(!(!e||typeof e!="object"))return e[`step-${t}`]}function zb(e,t,a,r){return Sc(e,t*a+r)}function Ob({payload:e,selected:t,choices:a=[],correctAnswers:r=[]}){if(e&&typeof e=="object"){const n=e;if(Array.isArray(n.selectedValues))return r.every(i=>n.selectedValues.includes(i))&&n.selectedValues.every(i=>r.includes(i));if(typeof n.correct=="boolean")return n.correct}if(r.length){if(typeof t=="number"&&Array.isArray(a)&&a.length)return r.some(n=>String(n)===String(a[t]));if(typeof t<"u")return r.some(n=>String(n)===String(t))}}function Fb(e){return e?Array.isArray(e.items)?e.items.map(t=>{const a=t;return typeof t=="string"?{sentence:t}:{sentence:a.context||a.sentence||"",contextCode:a.contextCode||a.context_code}}):Array.isArray(e.sentences)?e.sentences.map(t=>{const a=t;return typeof t=="string"?{sentence:t}:{sentence:a.sentence||a.context||"",contextCode:a.contextCode}}):Array.isArray(e.contexts)?e.contexts:e.contextCode?[{contextCode:e.contextCode}]:[]:[]}const Wb=l.createContext(null);function g7(){const e=l.useContext(Wb);if(!e)throw new Error("useTrainingPagePopupContext must be used inside TrainingPagePopup");return e}function f7({index:e,stepIndex:t,isLast:a=!1,title:r="\uB4E4\uC740 \uC21C\uC11C\uB300\uB85C \uCE74\uB4DC\uB97C \uC120\uD0DD\uD558\uC138\uC694.",choices:n=[],onDone:i,onChange:s}){const c=typeof e=="number"?e:-1,u=typeof t!="number"?"disabled":c<t?"done":c===t?"active":"disabled",[d,p]=l.useState(()=>n.map(()=>null)),m=n.join("|");l.useEffect(()=>{p(m?m.split("|").map(()=>null):[])},[m]);const h=l.useMemo(()=>d.filter(f=>f!==null).length+1,[d]),g=l.useCallback(f=>{u==="active"&&p(b=>{const y=[...b];if(y[f]!==null){const C=y[f];return y.map(w=>w!==null&&w>=C?null:w)}y[f]=h;const v={selectedOrder:y,words:n,__ts:Date.now()};try{typeof s=="function"&&s(v)}catch{}if(y.every(C=>C!==null))try{typeof i=="function"&&i(v)}catch{}return y})},[u,h,s,i,n]);return o.jsx(Va,{index:e,stepIndex:t,isLast:a,title:r,onDone:i,children:o.jsx("div",{className:"training-step__cards",children:n.map((f,b)=>o.jsx(Sn,{item:{word:f},disabled:u==="disabled",selectable:!0,selected:d[b]!==null,orderRank:d[b],onSelect:()=>g(b),flipDelay:b*120,hideLabel:!1,hideAudio:!0},`${f}-${b}`))})})}function kr(e){return null}kr.__isTrainingPage=!0;function Do(e,t){const a=g7();return{ctx:a,index:e,stepIndex:a.currentStepIndex,isLast:typeof e=="number"&&typeof t=="number"?e===t-1:!1,onDone:r=>a.handleStepDone(r,e),onChange:r=>a.handleStepChange(r,e)}}function Ac({_stepIndex:e,_totalSteps:t,...a}){const{index:r,stepIndex:n,isLast:i,onDone:s}=Do(e,t);return o.jsx(Mn,{...a,index:r,stepIndex:n,isLast:i,onDone:s})}function Tc({_stepIndex:e,_totalSteps:t,...a}){const{index:r,stepIndex:n,isLast:i,onDone:s,onChange:c}=Do(e,t);return o.jsx(jn,{...a,index:r,stepIndex:n,isLast:i,onDone:s,onChange:c})}function Bc({_stepIndex:e,_totalSteps:t,...a}){const{index:r,stepIndex:n,isLast:i,onDone:s,onChange:c}=Do(e,t);return o.jsx(Ln,{...a,index:r,stepIndex:n,isLast:i,onDone:s,onChange:c})}function Nc({_stepIndex:e,_totalSteps:t,...a}){const{index:r,stepIndex:n,isLast:i,onDone:s,onChange:c}=Do(e,t);return o.jsx(Pn,{...a,index:r,stepIndex:n,isLast:i,onDone:s,onChange:c})}function Dc({_stepIndex:e,_totalSteps:t,...a}){const{index:r,stepIndex:n,isLast:i,onDone:s,onChange:c}=Do(e,t);return o.jsx(vc,{...a,index:r,stepIndex:n,isLast:i,onDone:s,onChange:c})}function v7({_stepIndex:e,_totalSteps:t,...a}){const{index:r,stepIndex:n,isLast:i,onDone:s,onChange:c}=Do(e,t);return o.jsx(f7,{...a,index:r,stepIndex:n,isLast:i,onDone:s,onChange:c})}var y7=`.ihabdevteam-core-scope .trp-result{display:flex;flex:1;flex-direction:column;min-height:0;padding:0;position:relative}.ihabdevteam-core-scope .popup--training-result .popup-header{padding:var(--spacing-l) var(--spacing-l) 0;position:absolute;right:0;top:0;z-index:1}.ihabdevteam-core-scope .trp-result__head{padding:12px 72px 20px;position:relative;text-align:center}.ihabdevteam-core-scope .trp-result__eyebrow{align-items:center;color:var(--color-main);display:inline-flex;gap:var(--spacing-xs);letter-spacing:.22em;margin:0 0 14px;text-transform:uppercase}.ihabdevteam-core-scope .trp-result__eyebrow:after,.ihabdevteam-core-scope .trp-result__eyebrow:before{background:currentColor;content:"";height:1px;opacity:.35;width:24px}.ihabdevteam-core-scope .trp-result__title{color:var(--color-black);font-size:28px;margin:0}.ihabdevteam-core-scope .trp-result__subtitle{color:var(--color-gray);margin:10px 0 0}.ihabdevteam-core-scope .trp-score{align-items:center;display:flex;flex-direction:column;gap:var(--spacing-m);margin:36px auto 8px}.ihabdevteam-core-scope .trp-score__figure{font-feature-settings:"tnum";align-items:baseline;display:flex;font-variant-numeric:tabular-nums;gap:var(--spacing-s)}.ihabdevteam-core-scope .trp-score__sep,.ihabdevteam-core-scope .trp-score__total{align-self:flex-end;color:var(--color-lightGray);font-size:44px;letter-spacing:-1px;padding-bottom:18px}.ihabdevteam-core-scope .trp-score__big{background:var(--color-main);-webkit-background-clip:text;background-clip:text;color:transparent;font-size:112px;letter-spacing:-5px;line-height:.92}.ihabdevteam-core-scope .trp-accuracy{align-items:center;display:flex;gap:6px;justify-content:center;margin:28px auto 0;max-width:620px}.ihabdevteam-core-scope .trp-accuracy__seg{background:var(--color-darkWhite,var(--color-darkWhite));border-radius:999px;flex:1;height:6px}.ihabdevteam-core-scope .trp-accuracy__seg.is-on{background:linear-gradient(90deg,var(--color-main),var(--color-sub))}.ihabdevteam-core-scope .trp-accuracy__label{font-feature-settings:"tnum";color:var(--color-gray);font-variant-numeric:tabular-nums;margin-left:var(--spacing-xs);white-space:nowrap}.ihabdevteam-core-scope .trp-result__body{padding:16px 0 0}.ihabdevteam-core-scope .result-table{width:100%}.ihabdevteam-core-scope .result-table__head{grid-gap:var(--spacing-m);border-bottom:1px solid var(--color-whiteLine);color:var(--color-lightGray);display:grid;gap:var(--spacing-m);grid-template-columns:1fr 100px;letter-spacing:.16em;padding:12px 4px 14px;text-transform:uppercase}.ihabdevteam-core-scope .result-table--answer .result-table__head,.ihabdevteam-core-scope .result-table--answer .result-table__row{grid-template-columns:1fr 200px 100px}.ihabdevteam-core-scope .result-table__head .col-right{text-align:center}.ihabdevteam-core-scope .result-table__row{grid-gap:var(--spacing-m);align-items:center;border-bottom:1px solid var(--color-whiteLine);display:grid;gap:var(--spacing-m);grid-template-columns:1fr 100px;padding:22px 4px;transition:background .18s ease}.ihabdevteam-core-scope .result-table__row:hover{background:var(--color-deepWhite)}.ihabdevteam-core-scope .result-table__row:last-child{border-bottom:0}.ihabdevteam-core-scope .trp-row__problem{align-items:baseline;display:flex;gap:10px}.ihabdevteam-core-scope .trp-row__no{font-feature-settings:"tnum";color:var(--color-lightGray);flex-shrink:0;font-variant-numeric:tabular-nums;width:32px}.ihabdevteam-core-scope .trp-row__q{color:var(--color-black);letter-spacing:-.1px}.ihabdevteam-core-scope .trp-row__judge{align-self:center;display:flex;justify-content:center}.ihabdevteam-core-scope .trp-row__answers{align-self:center;display:flex;flex-direction:column;gap:var(--spacing-xs)}.ihabdevteam-core-scope .trp-row__answer-line{align-items:baseline;display:flex;gap:10px}.ihabdevteam-core-scope .trp-row__answer-label{flex-shrink:0;width:32px}.ihabdevteam-core-scope .trp-row__answer-label.answer-correct{color:var(--color-lightGray)}.ihabdevteam-core-scope .trp-row__answer-label.answer-selected.is-correct{color:var(--color-main)}.ihabdevteam-core-scope .trp-row__answer-label.answer-selected.is-wrong{color:var(--color-error)}.ihabdevteam-core-scope .trp-row__answer-value{color:var(--color-black)}.ihabdevteam-core-scope .trp-row__answer-value.is-correct{color:var(--color-main)}.ihabdevteam-core-scope .trp-row__answer-value.is-wrong{color:var(--color-error)}.ihabdevteam-core-scope .popup-footer.trp-result__foot{align-items:center;background:var(--color-white);display:flex;flex-shrink:0;gap:var(--spacing-s);justify-content:center;padding:var(--spacing-l)}.ihabdevteam-core-scope .trp-foot__note{align-items:center;color:var(--color-gray);display:flex;font-size:13px;gap:var(--spacing-xs)}.ihabdevteam-core-scope .trp-foot__note svg{color:var(--color-main);flex-shrink:0}.ihabdevteam-core-scope .trp-actions{display:flex;gap:var(--spacing-s)}@keyframes result-rise{0%{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}.ihabdevteam-core-scope .trp-result.is-on{animation:result-rise .5s cubic-bezier(.22,.9,.3,1) both}.ihabdevteam-core-scope .trp-result.is-on .trp-score__big{animation:result-rise .7s cubic-bezier(.22,.9,.3,1) .1s both}.ihabdevteam-core-scope .trp-result.is-on .result-table__row{animation:result-rise .5s cubic-bezier(.22,.9,.3,1) both}.ihabdevteam-core-scope .trp-result.is-on .result-table__row:nth-child(2){animation-delay:.18s}.ihabdevteam-core-scope .trp-result.is-on .result-table__row:nth-child(3){animation-delay:.24s}.ihabdevteam-core-scope .trp-result.is-on .result-table__row:nth-child(4){animation-delay:.3s}.ihabdevteam-core-scope .trp-result.is-on .result-table__row:nth-child(5){animation-delay:.36s}@media (max-width:767px){.ihabdevteam-core-scope .trp-result{padding:0}.ihabdevteam-core-scope .trp-result__head{padding:0 20px 20px}.ihabdevteam-core-scope .trp-result__body{padding:0}.ihabdevteam-core-scope .popup-footer.trp-result__foot{border-top:1px solid var(--color-whiteLine);gap:var(--spacing-xs);padding:var(--spacing-l)}.ihabdevteam-core-scope .trp-actions{display:flex;gap:var(--spacing-xs);width:100%}.ihabdevteam-core-scope .trp-actions>*{flex:1;min-width:0}.ihabdevteam-core-scope .trp-score{gap:10px;margin:20px auto 4px}.ihabdevteam-core-scope .trp-score__big{font-size:72px;letter-spacing:-3px}.ihabdevteam-core-scope .trp-score__sep,.ihabdevteam-core-scope .trp-score__total{font-size:28px;padding-bottom:10px}.ihabdevteam-core-scope .result-table__head{display:none}.ihabdevteam-core-scope .result-table__head,.ihabdevteam-core-scope .result-table__row{gap:var(--spacing-xs);grid-template-columns:1fr auto}.ihabdevteam-core-scope .result-table__row{padding:14px 4px}.ihabdevteam-core-scope .trp-row__judge{justify-content:flex-start}.ihabdevteam-core-scope .result-table--answer .result-table__row{align-items:start;gap:6px;grid-template-columns:1fr;grid-template-rows:auto auto auto;padding:14px 4px}.ihabdevteam-core-scope .result-table--answer .trp-row__judge{grid-row:1;justify-content:flex-start}.ihabdevteam-core-scope .result-table--answer .trp-row__problem{grid-row:2}.ihabdevteam-core-scope .result-table--answer .trp-row__answers{grid-row:3}
|
|
981
|
+
`).map((s,c,u)=>o.jsxs(l.Fragment,{children:[s,c<u.length-1&&o.jsx("br",{})]},c))})}),o.jsxs("div",{className:"site-footer__links",children:[o.jsxs("div",{className:"site-footer__column",children:[o.jsx("div",{className:"site-footer__column-title footer-title",children:i("footer.site.title","\uC0AC\uC774\uD2B8")}),o.jsxs("ul",{children:[o.jsx("li",{children:o.jsx("a",{className:"footer-link",href:"https://www.ihab.co.kr/",target:"_blank",rel:"noopener noreferrer",children:"IHAB"})}),o.jsx("li",{children:o.jsx("a",{className:"footer-link",href:"https://speechear.ihab.co.kr/",target:"_blank",rel:"noopener noreferrer",children:i("footer.site.malgwi","\uB9D0\uADC0")})}),o.jsx("li",{children:o.jsx("a",{className:"footer-link",href:"https://ihab-offcial-web.vercel.app/product/sound-localization",target:"_blank",rel:"noopener noreferrer",children:i("footer.site.soundDirection","\uC18C\uB9AC\uBC29\uD5A5\uC131\uC2DC\uC2A4\uD15C")})}),o.jsx("li",{children:o.jsx("a",{className:"footer-link",href:"https://ihab-offcial-web.vercel.app/product/vr-sound-localization",target:"_blank",rel:"noopener noreferrer",children:i("footer.site.vrSoundDirection","VR\uC18C\uB9AC\uBC29\uD5A5\uC131\uC2DC\uC2A4\uD15C")})}),o.jsx("li",{children:o.jsx("a",{className:"footer-link",href:"https://ihab-offcial-web.vercel.app/product/hearing-test-pro",target:"_blank",rel:"noopener noreferrer",children:i("footer.site.hearingTest","\uCCAD\uB825\uD14C\uC2A4\uD2B8 \uD504\uB85C")})})]})]}),o.jsxs("div",{className:"site-footer__column",children:[o.jsx("div",{className:"site-footer__column-title footer-title",children:i("footer.sns.title","SNS")}),o.jsxs("ul",{children:[o.jsx("li",{children:o.jsx("a",{className:"footer-link",href:"https://blog.naver.com/ihab_official",target:"_blank",rel:"noopener noreferrer",children:i("footer.sns.naverBlog","\uB124\uC774\uBC84 \uBE14\uB85C\uADF8")})}),o.jsx("li",{children:o.jsx("a",{className:"footer-link",href:"https://www.instagram.com/ihab.official.yt/",target:"_blank",rel:"noopener noreferrer",children:"Instagram"})}),o.jsx("li",{children:o.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"})})]})]}),o.jsxs("div",{className:"site-footer__column",children:[o.jsx("div",{className:"site-footer__column-title footer-title",children:i("footer.policy.title","\uC815\uCC45")}),o.jsxs("ul",{children:[o.jsx("li",{children:o.jsx("a",{className:"footer-link",href:"#",onClick:s=>{e&&(s.preventDefault(),e())},children:i("footer.policy.terms","\uC774\uC6A9\uC57D\uAD00")})}),o.jsx("li",{children:o.jsx("a",{className:"footer-link",href:"#",onClick:s=>{t&&(s.preventDefault(),t())},children:i("footer.policy.privacy","\uAC1C\uC778\uC815\uBCF4 \uCC98\uB9AC\uBC29\uCE68")})})]})]})]})]}),o.jsx("hr",{className:"site-footer__rule"}),o.jsxs("div",{className:"site-footer__bottom",children:[o.jsx("div",{className:"site-footer__brand",children:o.jsx("img",{src:Pl,alt:"IHAB",className:"site-footer__logo"})}),o.jsxs("div",{className:"site-footer__meta",children:[o.jsxs("div",{children:[o.jsx("span",{className:"footer-title",children:i("footer.ceo","\uB300\uD45C")}),o.jsx("span",{className:"footer-meta caption-1",children:i("footer.ceoName","\uD55C\uC9C0\uD61C")})]}),o.jsxs("div",{children:[o.jsx("span",{className:"footer-title",children:i("footer.address","\uC8FC\uC18C")}),o.jsx("span",{className:"footer-meta caption-1",children:i("footer.addressValue","\uAC15\uC6D0\uB3C4 \uCD98\uCC9C\uC2DC \uC2DC\uCCAD\uAE38 32 \uD574\uCC2C\uBE4C\uB529 3\uCE35 302\uD638")})]}),o.jsxs("div",{children:[o.jsx("span",{className:"footer-title",children:i("footer.support","\uACE0\uAC1D\uC13C\uD130")}),o.jsxs("span",{className:"footer-meta caption-1",children:[r," \xA0 ",n]})]})]})]}),o.jsx("div",{className:"site-footer__copyright footer-copyright caption-1",children:"\xA9 IHAB, Inc. All rights reserved."})]})})}var Nk='.ihabdevteam-core-scope .landing-header{background:var(--landing-header-bg,var(--color-deepWhite));border-bottom:1px solid rgba(15,18,60,.05);border-bottom:1px solid var(--landing-header-border,rgba(15,18,60,.05));position:sticky;top:0;transform:translateZ(0);will-change:transform;z-index:500;z-index:var(--z-sticky,500)}.ihabdevteam-core-scope .landing-header__inner{align-items:center;display:flex;height:72px;height:var(--landing-header-height,72px);justify-content:space-between;position:relative}.ihabdevteam-core-scope .landing-header__brand{align-items:center;display:flex;flex:0 0 auto;margin-right:auto;text-decoration:none}.ihabdevteam-core-scope .landing-header__logo{display:block;height:40px;height:var(--landing-header-logo-height,40px);max-width:none;transform-origin:left center;transition:transform .3s cubic-bezier(.2,.9,.2,1.2),filter .3s;width:auto}.ihabdevteam-core-scope .landing-header__brand:hover .landing-header__logo{filter:brightness(1.08);transform:scale(1.05)}.ihabdevteam-core-scope .landing-header__links{align-items:center;color:var(--landing-header-link-color,var(--color-deepGray));display:flex;font-size:15px;font-weight:500;gap:36px;left:50%;position:absolute;transform:translateX(-50%)}.ihabdevteam-core-scope .landing-header__links a{color:inherit;padding:6px 0;position:relative;text-decoration:none;transition:color .2s}.ihabdevteam-core-scope .landing-header__links a:hover{color:var(--landing-header-link-hover,var(--color-main))}.ihabdevteam-core-scope .landing-header__links a:after{background:linear-gradient(90deg,var(--color-main),var(--color-sub));border-radius:1px;bottom:0;content:"";height:2px;left:0;position:absolute;right:100%;transition:right .35s cubic-bezier(.2,.7,.2,1)}.ihabdevteam-core-scope .landing-header__links a:hover:after{right:0}.ihabdevteam-core-scope .landing-header__actions{align-items:center;display:flex;gap:8px;gap:var(--spacing-xs,8px)}.ihabdevteam-core-scope .landing-header__toggle{align-items:center;background:none;border:0;color:var(--landing-header-link-color,var(--color-deepGray));cursor:pointer;display:none;height:44px;justify-content:center;margin-right:-10px;width:44px}.ihabdevteam-core-scope .landing-header__burger{display:block;height:14px;position:relative;width:22px}.ihabdevteam-core-scope .landing-header__burger>span{background:currentColor;border-radius:1px;height:2px;inset-inline:0;position:absolute;transition:transform .2s cubic-bezier(.2,.7,.2,1),opacity .2s cubic-bezier(.2,.7,.2,1)}.ihabdevteam-core-scope .landing-header__burger>span:first-child{top:0}.ihabdevteam-core-scope .landing-header__burger>span:nth-child(2){top:6px}.ihabdevteam-core-scope .landing-header__burger>span:nth-child(3){top:12px}.ihabdevteam-core-scope .landing-header__toggle--open .landing-header__burger>span:first-child{transform:translateY(6px) rotate(45deg)}.ihabdevteam-core-scope .landing-header__toggle--open .landing-header__burger>span:nth-child(2){opacity:0}.ihabdevteam-core-scope .landing-header__toggle--open .landing-header__burger>span:nth-child(3){transform:translateY(-6px) rotate(-45deg)}.ihabdevteam-core-scope .landing-header__drawer{background:var(--landing-header-bg,var(--color-deepWhite));border-top:1px solid rgba(15,18,60,.05)}.ihabdevteam-core-scope .landing-header__drawer-item{display:block}.ihabdevteam-core-scope .landing-header__drawer-item a{align-items:center;color:var(--landing-header-link-color,var(--color-deepGray));display:flex;font-size:15px;font-weight:500;min-height:48px;text-decoration:none;transition:color .2s}.ihabdevteam-core-scope .landing-header__drawer-item a:hover,.ihabdevteam-core-scope .landing-header__drawer-item a[aria-current=page]{color:var(--landing-header-link-hover,var(--color-main))}@media (max-width:960px){.ihabdevteam-core-scope .landing-header__links{display:none}.ihabdevteam-core-scope .landing-header__toggle{display:flex}}@media (min-width:961px){.ihabdevteam-core-scope .landing-header__drawer{display:none}}';J(Nk);function yb({logo:e,logoAlt:t="",logoHref:a,links:r=[],actions:n,className:i,containerClassName:s,renderLink:c,menuLabel:u={open:"\uBA54\uB274 \uC5F4\uAE30",close:"\uBA54\uB274 \uB2EB\uAE30"}}){const[d,p]=l.useState(!1),m=s?`${s} landing-header__inner`:"landing-header__inner",h=(g,f)=>c?c(g,{onClick:f}):o.jsx("a",{href:g.href,onClick:f,"aria-current":g.current?"page":void 0,children:g.label});return o.jsxs("header",{className:i?`landing-header ${i}`:"landing-header",children:[o.jsxs("div",{className:m,children:[e!=null&&(()=>{const g=typeof e=="string"?o.jsx("img",{src:e,alt:t,className:"landing-header__logo"}):e;return a?o.jsx("a",{href:a,className:"landing-header__brand",children:g}):o.jsx("div",{className:"landing-header__brand",children:g})})(),r.length>0&&o.jsx("nav",{className:"landing-header__links",children:r.map(g=>o.jsx("span",{children:h(g)},g.href))}),o.jsxs("div",{className:"landing-header__actions",children:[n,r.length>0&&o.jsx("button",{type:"button",onClick:()=>p(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:o.jsxs("span",{className:"landing-header__burger",children:[o.jsx("span",{}),o.jsx("span",{}),o.jsx("span",{})]})})]})]}),r.length>0&&o.jsx("nav",{id:"landing-header-drawer",hidden:!d,className:"landing-header__drawer",children:o.jsx("div",{className:s??void 0,children:r.map(g=>o.jsx("span",{className:"landing-header__drawer-item",children:h(g,()=>p(!1))},g.href))})})]})}var Dk=".ihabdevteam-core-scope .bottom-sticky{animation:bottom-sticky-in .4s cubic-bezier(.2,.9,.2,1) both;bottom:24px;bottom:var(--bottom-sticky-offset,24px);left:50%;max-width:680px;max-width:var(--bottom-sticky-max-width,680px);position:fixed;transform:translateX(-50%);width:calc(100% - 48px);z-index:500;z-index:var(--z-sticky,500)}@keyframes bottom-sticky-in{0%{opacity:0;transform:translateX(-50%) translateY(16px)}to{opacity:1;transform:translateX(-50%) translateY(0)}}.ihabdevteam-core-scope .bottom-sticky__inner{align-items:center;background:var(--bottom-sticky-bg,var(--color-pureWhite));border-radius:20px;border-radius:var(--radius-m,20px);box-shadow:0 8px 40px rgba(15,18,60,.18),0 2px 8px rgba(15,18,60,.06);display:flex;gap:16px;gap:var(--spacing-m,16px);justify-content:space-between;padding:12px 12px 12px 24px;transition:box-shadow .2s,transform .2s}.ihabdevteam-core-scope .bottom-sticky__inner--clickable{cursor:pointer}.ihabdevteam-core-scope .bottom-sticky__inner--clickable:hover{border:1px solid var(--color-main);box-shadow:0 16px 56px color-mix(in srgb,var(--color-main) 30%,transparent),0 4px 12px color-mix(in srgb,var(--color-main) 15%,transparent);transform:translateY(-4px)}.ihabdevteam-core-scope .bottom-sticky__content{align-items:center;display:flex;flex:1;gap:12px;gap:var(--spacing-s,12px);justify-content:center}.ihabdevteam-core-scope .bottom-sticky__tagline{align-items:center;color:var(--color-black);display:flex;gap:0;margin:0;white-space:nowrap}.ihabdevteam-core-scope .bottom-sticky__tagline-highlight{background:linear-gradient(90deg,var(--color-main),var(--color-sub),var(--color-infoLink));-webkit-background-clip:text;background-clip:text;color:transparent;display:inline}.ihabdevteam-core-scope .bottom-sticky__tagline-part{align-items:center;display:flex;white-space:nowrap}.ihabdevteam-core-scope .bottom-sticky__tagline-logo{display:block;height:32px;width:auto}@media (max-width:600px){.ihabdevteam-core-scope .bottom-sticky{bottom:16px;bottom:var(--bottom-sticky-offset,16px);width:calc(100% - 32px)}.ihabdevteam-core-scope .bottom-sticky__inner{align-items:stretch;flex-direction:column;gap:12px;gap:var(--spacing-s,12px);padding:16px;padding:var(--spacing-m,16px)}.ihabdevteam-core-scope .bottom-sticky__content{flex:none;gap:6px;justify-content:center}.ihabdevteam-core-scope .bottom-sticky__tagline{flex-wrap:wrap;justify-content:center;text-align:center;white-space:normal}.ihabdevteam-core-scope .bottom-sticky__tagline-logo{height:26px}}";J(Dk);function xb({children:e,action:t,onClick:a,className:r}){const n=a?"bottom-sticky__inner bottom-sticky__inner--clickable":"bottom-sticky__inner";return o.jsx("div",{className:r?`bottom-sticky ${r}`:"bottom-sticky",children:o.jsxs("div",{className:n,onClick:a,..._m(a),children:[o.jsx("div",{className:"bottom-sticky__content",children:e}),t]})})}const dc=9,Ek=e=>Math.round(Math.min(dc,Math.max(0,e))/dc*100),jk=e=>e/100*dc,Cb={enabled:!0,type:"defaultNoise",level:4.5,speed:1,mainVolume:1,mainSpeed:1},_b=l.createContext(null);function uc(){return l.useContext(_b)}const pc=e=>`${ti()}/${e}`,wb=e=>Array.from({length:10},(t,a)=>pc(`${e}-${String(a+1).padStart(2,"0")}.mp3`)),En={get defaultNoise(){return pc("noise1.mp3")},get street(){return wb("noise2")},get restaurant(){return wb("noise3")},get buzz(){return pc("noise4.mp3")}};function Lk(e){const t=Math.floor(Math.random()*10);switch(e){case"defaultNoise":return En.defaultNoise;case"street":return En.street[t];case"restaurant":return En.restaurant[t];case"buzz":return En.buzz;default:return null}}function Mk({noisePlayer:e,audioRef:t,playbackStateRef:a}){const r=l.useRef(e?.registerAnalyser);r.current=e?.registerAnalyser;const n=l.useRef(null),[i,s]=l.useState(null),c=l.useRef(null),u=l.useRef(null),d=l.useRef(null),p=l.useRef(0),m=l.useRef(null),h=l.useCallback(()=>{d.current!==null&&(cancelAnimationFrame(d.current),d.current=null),m.current!==null&&(clearTimeout(m.current),m.current=null)},[]),g=l.useCallback((y,v=250)=>{const C=n.current;if(!C||!C.src)return;p.current+=1,h();try{Ho(),r.current?.("noise",Vo(C))}catch{}const w=C.paused?0:C.volume;C.paused&&(C.volume=0),C.play().catch(()=>{});const x=performance.now(),S=()=>{const _=Math.min(1,(performance.now()-x)/v);try{C.volume=Math.max(0,Math.min(1,w+(y-w)*_))}catch{}_<1?d.current=requestAnimationFrame(S):d.current=null};d.current=requestAnimationFrame(S)},[h]),f=l.useCallback((y=250,v)=>{const C=n.current;if(!C||C.paused){v?.();return}const w=++p.current;h();const x=performance.now(),S=C.volume,_=()=>{const k=Math.min(1,(performance.now()-x)/y);try{C.volume=Math.max(0,S*(1-k))}catch{}if(k<1)d.current=requestAnimationFrame(_);else{d.current=null,m.current!==null&&(clearTimeout(m.current),m.current=null);try{C.pause()}catch{}v?.()}};d.current=requestAnimationFrame(_),m.current=setTimeout(()=>{if(m.current=null,p.current===w){d.current!==null&&(cancelAnimationFrame(d.current),d.current=null);try{C.paused||(C.volume=0,C.pause(),v?.())}catch{}}},y+150)},[h]);l.useEffect(()=>{const y=document.createElement("audio");return y.loop=!0,y.crossOrigin="anonymous",n.current=y,()=>{h();try{y.pause(),y.src=""}catch{}n.current=null}},[h]);const b=!!e?.settings.enabled&&(e?.settings.level??0)>0;return l.useEffect(()=>{if(!b)return;let y=0;const v=setInterval(()=>{const C=n.current;if(!C||C.paused){y=0;return}const w=t.current;if(w&&!w.paused&&!w.ended||a.current==="playing"){y=0;return}y+=1,y>=2&&(y=0,f())},400);return()=>clearInterval(v)},[f,b,t,a]),l.useEffect(()=>{const y=()=>{if(!document.hidden)return;const v=n.current;if(v&&!v.paused){h();try{v.pause()}catch{}}};return document.addEventListener("visibilitychange",y),()=>document.removeEventListener("visibilitychange",y)},[h]),l.useEffect(()=>{u.current=e?{enabled:e.settings.enabled,level:e.settings.level,type:e.settings.type}:null},[e,e?.settings.enabled,e?.settings.level,e?.settings.type]),l.useEffect(()=>{const y=e?.settings,v=n.current;if(!v)return;if(!y||!y.enabled||y.level===0){f();return}const C=Math.min(1,y.level/9);if(c.current!==y.type){const w=Lk(y.type);w&&(c.current=y.type,s(w),f(150,()=>{v.src=w,v.load();const x=t.current;x&&!x.paused&&v.addEventListener("canplay",function S(){v.removeEventListener("canplay",S);const _=t.current;_&&!_.paused&&!_.ended&&g(C)})}))}else{const w=t.current,x=!!w&&!w.paused&&!w.ended;if(x&&v.paused&&v.src)g(C);else if(!v.paused)if(!x)f();else{h();const S=v.volume,_=performance.now(),k=()=>{const N=Math.min(1,(performance.now()-_)/150);try{v.volume=S+(C-S)*N}catch{}N<1?d.current=requestAnimationFrame(k):d.current=null};d.current=requestAnimationFrame(k)}}},[e?.settings,e?.settings.enabled,e?.settings.level,e?.settings.type,h,g,f,t]),l.useEffect(()=>{const y=n.current;if(y)try{y.playbackRate=Math.min(1.25,Math.max(.75,e?.settings.speed??1))}catch{}},[e?.settings.speed]),{noiseAudioRef:n,activeNoiseUrl:i,noiseSettingsRef:u,cancelNoiseFade:h,fadeInNoise:g,fadeOutNoise:f}}function Pk({ttsText:e,playbackRate:t,mainVolume:a,fillRef:r,waveProgressRef:n,setProgress:i,setPlaybackState:s,setStateLocal:c,fadeInNoise:u,fadeOutNoise:d,noiseSettingsRef:p,onDoneRef:m,handleEndRef:h}){const g=l.useRef(null),f=l.useRef(0),b=l.useRef(null);l.useEffect(()=>()=>{try{if(b.current&&(cancelAnimationFrame(b.current),b.current=null),window.speechSynthesis)try{window.speechSynthesis.cancel()}catch{}}catch{}},[]);const y=(w,x=1)=>{try{const S=(w||"").trim().split(/\s+/).filter(Boolean).length||Math.max(1,(w||"").length);return Math.max(700,Math.round(S*300/Math.max(.25,x)))}catch{return 1200}},v=l.useCallback(w=>{if(typeof window>"u"||!window.speechSynthesis){try{typeof m.current=="function"&&m.current(!0)}catch{}return}const x=window.speechSynthesis;try{try{x.cancel()}catch{}const S=w??e,_=(Array.isArray(S)?S[0]??"":S)||"",k=new SpeechSynthesisUtterance(_);try{k.rate=Math.max(.3,Math.min(3,t))}catch{}try{k.volume=Math.max(0,Math.min(1,a))}catch{}f.current=y(_,k.rate||1),g.current=performance.now(),i(0),s("playing"),c("playMode");const N=p.current;N?.enabled&&(N?.level??0)>0&&u(N.level/9);const A=()=>{try{const D=g.current||performance.now(),H=performance.now()-D,P=f.current||1200,T=Math.min(1,H/P);i(T);try{r.current&&(r.current.style.left=`${T*100}%`),n.current&&n.current.style.setProperty("--progress",String(T))}catch{}T<1&&(b.current=requestAnimationFrame(A))}catch{}};k.onend=()=>{try{b.current&&(cancelAnimationFrame(b.current),b.current=null),i(1),s("stopped");try{h.current?.()}catch{try{typeof m.current=="function"&&m.current(!0)}catch{}}}catch{}},k.onstart=()=>{try{b.current&&(cancelAnimationFrame(b.current),b.current=null),b.current=requestAnimationFrame(A)}catch{}};try{x.speak(k)}catch{try{typeof m.current=="function"&&m.current(!0)}catch{}}}catch{try{typeof m.current=="function"&&m.current(!0)}catch{}}},[e,t,a,u,r,n,i,s,c,p,m,h]),C=l.useCallback(()=>{try{if(window.speechSynthesis)try{window.speechSynthesis.cancel()}catch{}b.current&&(cancelAnimationFrame(b.current),b.current=null),d(),g.current=null}catch{}s("stopped"),c("active"),i(0)},[d,s,c,i]);return{startTTS:v,stopTTS:C}}var Rk='.ihabdevteam-core-scope .audio-player{align-items:center;display:flex;flex-direction:column;width:100%}.ihabdevteam-core-scope .audio-player__no-waveform{align-items:center;align-self:flex-start;color:var(--color-lightGray);display:flex;gap:4px;margin:6px 0 0}.ihabdevteam-core-scope .audio-player__no-waveform .iconRenderer-icon{align-items:center;display:inline-flex}.ihabdevteam-core-scope .audio-player__panel{align-items:center;background:linear-gradient(90deg,var(--color-main),var(--color-sub));background:linear-gradient(var(--angle,90deg),var(--color-main),var(--color-sub));border-radius:var(--radius-m);display:flex;height:120px;position:relative;width:100%}.ihabdevteam-core-scope .audio-player.is-disabled .audio-player__panel{background:var(--color-darkWhite);border:1px solid var(--color-darkWhite)}.ihabdevteam-core-scope .audio-player.is-disabled .audio-player__buttons,.ihabdevteam-core-scope .audio-player.is-disabled .audio-player__play,.ihabdevteam-core-scope .audio-player.is-disabled .audio-player__wave{pointer-events:none}.ihabdevteam-core-scope .audio-player.is-disabled .audio-player__buttons .button,.ihabdevteam-core-scope .audio-player.is-disabled .audio-player__play .button{opacity:.7}.ihabdevteam-core-scope .audio-player__play{align-items:center;bottom:0;display:flex;height:100%;justify-content:center;left:0;opacity:0;pointer-events:none;position:relative;right:0;top:0;transition:opacity .16s ease,transform .16s ease;width:100%;z-index:10}.ihabdevteam-core-scope .audio-player__play.is-visible{opacity:1;pointer-events:auto}.ihabdevteam-core-scope .audio-player__panel>.button{left:50%;position:absolute;top:50%;transform:translate(-50%,-50%);transition:opacity .16s ease,transform .16s ease;will-change:opacity,transform;z-index:35}.ihabdevteam-core-scope .audio-player__button{align-items:center;background:transparent;border:0;cursor:pointer;display:flex;inset:0;justify-content:center;padding:0;position:absolute;z-index:35}.ihabdevteam-core-scope .audio-player__button-triangle-wrap{align-items:center;display:flex;height:90px;justify-content:center;transition:transform .32s cubic-bezier(.2,.7,.2,1);width:90px}.ihabdevteam-core-scope .audio-player__button:hover .audio-player__button-triangle-wrap{transform:scale(1.18)}.ihabdevteam-core-scope .audio-player__button:active .audio-player__button-triangle-wrap{transform:scale(1.06)}.ihabdevteam-core-scope .audio-player__button-triangle{height:100%;width:100%}.ihabdevteam-core-scope .audio-player__button-triangle path{fill:none;stroke:#fff;stroke-linecap:round;stroke-linejoin:round;stroke-width:2.6}.ihabdevteam-core-scope .audio-player.is-disabled .audio-player__button{cursor:default;opacity:.5;pointer-events:none}.ihabdevteam-core-scope .audio-player__slider{align-items:center;bottom:50px;box-sizing:border-box;display:flex;left:20px;pointer-events:none;position:absolute;right:20px;top:20px}.ihabdevteam-core-scope .audio-player__buttons{align-items:center;border-radius:999px;bottom:10px;box-sizing:border-box;display:flex;gap:0;height:28px;justify-content:center;left:0;pointer-events:auto;position:absolute;right:0;z-index:40}.ihabdevteam-core-scope .audio-player__source-buttons{align-items:center;border:1px solid var(--color-white-a30);border-radius:var(--radius-m);display:inline-flex;justify-content:center;overflow:visible}.ihabdevteam-core-scope .audio-player__source-buttons .button{flex:0 0 auto;max-width:60px}.ihabdevteam-core-scope .audio-player__buttons .button[aria-label=\\B2E4\\C74C],.ihabdevteam-core-scope .audio-player__buttons .button[aria-label=\\C774\\C804],.ihabdevteam-core-scope .audio-player__buttons .button[aria-label=\\C815\\C9C0]{display:none}.ihabdevteam-core-scope .audio-player__buttons>.button{align-items:center;display:inline-flex;justify-content:center;margin:0;width:auto}.ihabdevteam-core-scope .audio-player__fill{backface-visibility:hidden;background:var(--color-pureWhite);border-radius:var(--radius-sm);height:100%;left:0;opacity:0;pointer-events:none;position:absolute;top:50%;transform:translateX(-50%) translateY(-50%) scaleY(0);transform-origin:center center;transition:transform .28s cubic-bezier(.2,.8,.2,1),opacity .16s ease;width:8px;will-change:transform,opacity;z-index:70}.ihabdevteam-core-scope .audio-player__fill.is-visible{opacity:1}.ihabdevteam-core-scope .audio-player__fill.is-expanded{transform:translateX(-50%) translateY(-50%) scaleY(1)}.ihabdevteam-core-scope .audio-player__fill.is-paused{transition:opacity .16s ease}.ihabdevteam-core-scope .audio-player__fill.is-out{animation:audio-player-fill-out .28s cubic-bezier(.2,.8,.2,1) forwards}@keyframes audio-player-fill-out{0%{opacity:1;transform:translateX(-50%) translateY(-50%) scaleY(1)}to{opacity:0;transform:translateX(-50%) translateY(-50%) scaleY(0)}}.ihabdevteam-core-scope .audio-player__loading{align-items:center;background:transparent;border-radius:var(--radius-sm);color:rgba(0,0,0,.85);color:var(--audio-loading-foreground,rgba(0,0,0,.85));display:inline-flex;font-size:13px;gap:var(--spacing-xs);left:50%;padding:0;pointer-events:none;position:absolute;top:50%;transform:translate(-50%,-50%);z-index:999}.ihabdevteam-core-scope .audio-player__debug{align-items:center;background:hsla(0,0%,100%,.06);border-radius:18px;color:#fff;display:flex;font-size:12px;gap:8px;padding:6px 10px;pointer-events:none;position:absolute;right:12px;top:12px}.ihabdevteam-core-scope .audio-player__debug-dot{border-radius:10px;box-shadow:0 0 6px rgba(0,0,0,.4);display:inline-block;height:10px;width:10px}.ihabdevteam-core-scope .audio-player__loading .audio-player__loading-text,.ihabdevteam-core-scope .audio-player__panel.is-loading .audio-player__loading-text{display:none}.ihabdevteam-core-scope .audio-player__loading-spinner{animation:audio-player-spinner .9s linear infinite;border:4px solid hsla(0,0%,100%,.2);border-radius:50%;border-top-color:#fff;filter:drop-shadow(0 2px 6px rgba(0,0,0,.25));height:40px;width:40px}@keyframes audio-player-spinner{to{transform:rotate(1turn)}}.ihabdevteam-core-scope .audio-player__wave{height:90%;position:absolute}.ihabdevteam-core-scope .audio-player__wave,.ihabdevteam-core-scope .audio-player__wave-inner{align-items:center;display:flex;justify-content:center;pointer-events:none;width:100%;z-index:60}.ihabdevteam-core-scope .audio-player__wave-inner{cursor:default;gap:3px;gap:var(--bar-gap,3px);height:100%;margin:0 auto;padding:0}.ihabdevteam-core-scope .audio-player__wave-inner:not(.is-ready) .audio-player__bar:after{opacity:0}.ihabdevteam-core-scope .audio-player__wave-inner.is-ready .audio-player__bar:after{animation:wave-bar-in .35s cubic-bezier(.22,.9,.3,1) both;animation-delay:0ms;animation-delay:calc(var(--i, 0)*2ms)}@keyframes wave-bar-in{0%{opacity:0;transform:translateY(-50%) scaleY(.05)}to{opacity:1;transform:translateY(-50%) scaleY(.15);transform:translateY(-50%) scaleY(var(--val,.15))}}.ihabdevteam-core-scope .audio-player__wave-inner.is-ready .audio-player__bar--hidden:after,.ihabdevteam-core-scope .audio-player__wave-noise.is-ready .audio-player__bar--hidden:after{animation:none;opacity:0}.ihabdevteam-core-scope .audio-player__wave-played{bottom:0;clip-path:inset(0 100% 0 0);clip-path:inset(0 calc((1 - var(--progress, 0))*100%) 0 0);left:0;pointer-events:none;position:absolute;right:0;top:0}.ihabdevteam-core-scope .audio-player__bar{box-sizing:border-box;flex:0 0 3px;flex:0 0 var(--bar-w,3px);height:100%;position:relative}.ihabdevteam-core-scope .audio-player__wave-unplayed .audio-player__bar:after{background:color-mix(in srgb,var(--color-lightMain),var(--color-lightSub) 0);border-radius:999px;content:"";height:100%;left:0;opacity:1;position:absolute;right:0;top:50%;transform:translateY(-50%) scaleY(.15);transform:translateY(-50%) scaleY(var(--val,.15));transform-origin:center center;z-index:61}@supports (color:color-mix(in lch,red,blue)) and (top:var(--f )){.ihabdevteam-core-scope .audio-player__wave-unplayed .audio-player__bar:after{background:color-mix(in srgb,var(--color-lightMain),var(--color-lightSub) calc(var(--mix, 0)*100%))}}.ihabdevteam-core-scope .audio-player__wave-played .audio-player__bar:after{background:color-mix(in srgb,var(--color-lightMain),var(--color-lightSub) 0);border-radius:999px;content:"";height:100%;left:0;opacity:1;position:absolute;right:0;top:50%;transform:translateY(-50%) scaleY(.15);transform:translateY(-50%) scaleY(var(--val,.15));transform-origin:center center;z-index:62}@supports (color:color-mix(in lch,red,blue)) and (top:var(--f )){.ihabdevteam-core-scope .audio-player__wave-played .audio-player__bar:after{background:color-mix(in srgb,var(--color-lightMain),var(--color-lightSub) calc(var(--mix, 0)*100%))}}.ihabdevteam-core-scope .audio-player__wave-noise{align-items:center;bottom:0;display:flex;gap:3px;gap:var(--bar-gap,3px);justify-content:center;left:0;margin:0 auto;pointer-events:none;position:absolute;right:0;top:0;width:100%;z-index:58}.ihabdevteam-core-scope .audio-player__wave-noise .audio-player__bar:after{background:color-mix(in srgb,var(--color-deepMain),var(--color-deepSub) 0);border-radius:999px;content:"";height:100%;left:0;opacity:1;position:absolute;right:0;top:50%;transform:translateY(-50%) scaleY(.1);transform:translateY(-50%) scaleY(var(--val,.1));transform-origin:center center;z-index:58}@supports (color:color-mix(in lch,red,blue)) and (top:var(--f )){.ihabdevteam-core-scope .audio-player__wave-noise .audio-player__bar:after{background:color-mix(in srgb,var(--color-deepMain),var(--color-deepSub) calc(var(--mix, 0)*100%))}}.ihabdevteam-core-scope .audio-player__wave-noise:not(.is-ready) .audio-player__bar:after{opacity:0}.ihabdevteam-core-scope .audio-player__wave-noise.is-ready .audio-player__bar:after{animation:wave-bar-in .35s cubic-bezier(.22,.9,.3,1) both;animation-delay:0ms;animation-delay:calc(var(--i, 0)*2ms)}.ihabdevteam-core-scope .audio-player__segments{align-items:center;display:flex;gap:3px;gap:var(--bar-gap,3px);height:100%;position:relative;width:100%}.ihabdevteam-core-scope .audio-player__segment{align-items:center;cursor:pointer;display:flex;height:100%;justify-content:center;padding:10px 0;pointer-events:auto;position:relative}.ihabdevteam-core-scope .audio-player__segment-inner{align-items:center;display:flex;gap:3px;gap:var(--bar-gap,3px);height:100%;justify-content:center;width:100%}';J(Rk);async function $k(e,t,a){try{const r=window.AudioContext||window.webkitAudioContext,n=new r,i=await n.decodeAudioData(e.slice(0)),s=i.numberOfChannels>0?i.getChannelData(0):null;if(!s)return null;const c=a&&a>0?Math.min(s.length,Math.floor(a*i.sampleRate)):s.length,u=Math.max(t,c),d=Math.floor(u/t)||1,p=new Array(t).fill(0).map((m,h)=>{const g=h*d,f=Math.min(g+d,u);let b=0;for(let y=g;y<f;y++){const v=Math.abs(s[y]);v>b&&(b=v)}return b});try{n.close&&n.close()}catch{}return p}catch{return null}}async function kb(e,t,a){try{const r=await(await fetch(e)).arrayBuffer();return await $k(r,t,a)}catch(r){try{const n=Yr(r)}catch{}return null}}const Sb=4;function Ik(e){const{src:t,segments:a,progress:r=0,waveProgressRef:n,noiseSrc:i,noiseLevel:s=0,noiseSpeed:c=1,totalDuration:u=0,mainVolume:d=1,onReadyChange:p,showSoundWaveForm:m=!0}=e,h=l.useRef(null),g=l.useRef(null),[f,b]=l.useState(null),[y,v]=l.useState(!1),[C,w]=l.useState(null),[x,S]=l.useState(2),[_,k]=l.useState(0),[N,A]=l.useState(null),[D,H]=l.useState(!1),P=3,T=3,E=1,L=300,F=l.useRef(0),te=l.useCallback(async(re,Q)=>{const ne=++F.current,me=()=>F.current===ne;try{if(v(!1),!re){me()&&b(null);return}let ce=Q;if(!ce)try{for(let De=0;De<4&&!(h.current||g.current);De++)await new Promise(ze=>requestAnimationFrame(ze));await new Promise(De=>requestAnimationFrame(De));const ee=h.current,pe=g&&g.current?g.current:ee?ee.closest(".audio-player__wave"):null,ke=pe?pe.getBoundingClientRect():ee?ee.getBoundingClientRect():null,Ce=ke?Math.max(100,ke.width):320,R=ke?ke.height:0;R>0&&k(R),ce=Math.max(E,Math.min(L,Math.floor((Ce+T)/(P+T))));const oe=ce*P,ae=Math.max(0,ce-1),ve=ae>0?(Ce-oe)/ae:T;S(Math.max(0,ve))}catch{ce=120}const I=await kb(re,ce);if(!me())return;if(!I){b(null),v(!1);return}b(I),w(ce),v(!0)}catch{if(!me())return;b(null),v(!1)}},[v,b,k,S,w]);l.useEffect(()=>{const re=a&&a[0]&&a[0].src||t||a&&a.length===1&&a[0]&&a[0].src;te(typeof re=="string"?re:void 0).catch(()=>{}),H(!1)},[t,a,te]),l.useEffect(()=>{let re=!1;if(!i||!C){A(null);return}const Q=u>0?u*(c||1):void 0;return kb(i,C,Q).then(ne=>{re||A(ne)}).catch(()=>{re||A(null)}),()=>{re=!0}},[i,C,u,c]);const Z=Math.max(0,Math.min(1,d)),V=l.useMemo(()=>f&&f.length&&Math.max(...f)||1,[f]),j=C||40,M=l.useMemo(()=>Array.from({length:j}).map((re,Q)=>{const ne=f&&f[Q]!=null?f[Q]:null,me=ne==null?null:Math.min(1,ne/V*Z),ce=me!=null&&_>0&&me*_<=Sb,I=me==null?.15:ce?0:me,ee=j>1?Q/(j-1):0;return o.jsx("div",{className:ce?"audio-player__bar audio-player__bar--hidden":"audio-player__bar",style:{"--val":I,"--i":Q,"--mix":ee}},Q)}),[j,f,V,Z,_]),$={"--progress":String(Math.max(0,Math.min(1,r)))},W={"--bar-gap":`${x}px`},q=Math.max(0,Math.min(9,s))/9,X=y&&(i?!!N:!0);l.useEffect(()=>{X&&H(!0)},[X]);const O=D?y:X;l.useEffect(()=>{p?.(O)},[O,p]);const Y=C||40,z=l.useMemo(()=>Array.from({length:Y}).map((re,Q)=>{const ne=N&&N[Q]!=null?N[Q]:null,me=ne==null?0:Math.min(1,ne/V*q),ce=_>0&&me*_<=Sb,I=ce?0:me,ee=Y>1?Q/(Y-1):0;return o.jsx("div",{className:ce?"audio-player__bar audio-player__bar--hidden":"audio-player__bar",style:{"--val":I,"--i":Q,"--mix":ee}},Q)}),[Y,N,V,q,_]);return o.jsxs("div",{className:"audio-player__wave",ref:g,style:W,children:[i&&o.jsx("div",{className:`audio-player__wave-noise ${X?"is-ready":""}`,"aria-hidden":"true",children:z}),m&&o.jsxs(o.Fragment,{children:[o.jsx("div",{className:`audio-player__wave-inner audio-player__wave-unplayed ${O?"is-ready":""}`,ref:h,children:M}),o.jsx("div",{className:`audio-player__wave-inner audio-player__wave-played ${O?"is-ready":""}`,ref:n,style:$,children:M})]})]})}const zk={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 hc(e,t){return new Promise((a,r)=>{const n=document.createElement("audio");let i=!1;const s=()=>{try{n.src=""}catch{}},c=()=>{if(i)return;i=!0;const d=isFinite(n.duration)&&n.duration||0;s(),a(d)},u=d=>{i||(i=!0,s(),t.rejectOnError?r(new Error(d)):a(0))};n.addEventListener("loadedmetadata",c),n.addEventListener("error",()=>u("audio load failed")),setTimeout(()=>u("audio load timeout"),t.timeoutMs),n.src=e})}const Ok=2e3;function Ab(e,t=Ok){return new Promise(a=>{let r=!1;const n=()=>{r||(r=!0,a())};e.addEventListener("canplay",n,{once:!0}),e.addEventListener("error",n,{once:!0}),setTimeout(n,t)})}function Fk({showSoundWaveForm:e,showNoiseWaveForm:t,timeoutMs:a=2500}){const r=l.useRef(!1),n=l.useRef([]),i=l.useCallback(u=>{if(r.current=u,!u||!n.current.length)return;const d=n.current;n.current=[];for(const p of d)p()},[]),s=l.useCallback(()=>{r.current=!1},[]),c=l.useCallback(()=>!e&&!t||r.current?Promise.resolve():new Promise(u=>{const d=setTimeout(u,a);n.current.push(()=>{clearTimeout(d),u()})}),[e,t,a]);return l.useEffect(()=>()=>{const u=n.current;n.current=[];for(const d of u)d()},[]),{onReadyChange:i,waitForReady:c,markNotReady:s}}function Wk(){const e=l.useRef([]),t=l.useCallback(n=>(e.current.push(n),n),[]),a=l.useCallback(n=>{const i=new Set([...n].filter(Boolean));e.current=e.current.filter(s=>{if(i.has(s))return!0;try{URL.revokeObjectURL(s)}catch{}return!1})},[]),r=l.useCallback(()=>{a([])},[a]);return l.useEffect(()=>()=>{for(const n of e.current)try{URL.revokeObjectURL(n)}catch{}e.current=[]},[]),{track:t,keepOnly:a,revokeAll:r}}function Hk({offsetY:e=8}={}){const t=l.useRef(null),[a,r]=l.useState(null),n=l.useCallback(()=>r(null),[]),i=l.useCallback(()=>{try{const s=t.current?.getBoundingClientRect();if(!s)return;r({left:s.left,right:s.right,width:s.width,height:s.height,x:s.x,top:s.top+e,bottom:s.bottom+e,y:s.y+e,toJSON:s.toJSON.bind(s)})}catch{}},[e]);return l.useEffect(()=>{if(a)return document.addEventListener("mousedown",n),()=>document.removeEventListener("mousedown",n)},[a,n]),{ref:t,rect:a,show:i,hide:n}}function Vk({currentTime:e,sources:t,index:a,audioDuration:r}){const n=a||0,i=Array.isArray(t)&&t.length>0?t[n]:void 0,s=i?i.duration||r||0:r||0;if(!(s>0))return 0;const c=Number.isFinite(e)?e:0;return Math.max(0,Math.min(1,c/s))}function Gk(e,t){if(!Array.isArray(e))return null;const a=t||0;return a<e.length-1?a+1:null}function qk({ended:e,completedByEnd:t}){return!!e||!!t}function Yk(e){return e.map((t,a)=>({src:t.src,label:String(a+1),color:void 0,duration:t.duration||0}))}function Uk(e){return e.reduce((t,a)=>t+(a.duration||0),0)}function Kk(e,t,a){const r=Array.isArray(e)?e:e?[e]:[],n=[];for(const i of r)if(i){if(typeof i=="object"&&i!==null&&"src"in i&&i.src){const s=i;n.push({code:s.code??null,src:s.src});continue}if(typeof i=="string"&&(i.startsWith("http")||i.includes("/"))){n.push({code:null,src:i});continue}if(typeof i=="string"||typeof i=="number"){const s=String(i),c=a(s,t);c&&n.push({code:s,resolvedPath:c})}}return n}function Zk({audioRef:e,fillRef:t,waveProgressRef:a,sourcesRef:r,currentIndexRef:n}){const i=l.useRef(null),s=l.useCallback(()=>{i.current!==null&&(cancelAnimationFrame(i.current),i.current=null)},[]),c=l.useCallback(()=>{if(i.current!==null)return;const d=()=>{try{const p=e.current,m=Vk({currentTime:p&&typeof p.currentTime=="number"?p.currentTime:0,sources:r.current,index:n.current,audioDuration:p&&p.duration?p.duration:0});try{t.current&&(t.current.style.left=`${m*100}%`)}catch{}try{a.current?.style.setProperty("--progress",String(m))}catch{}}catch{}i.current=requestAnimationFrame(d)};i.current=requestAnimationFrame(d)},[e,t,a,r,n]),u=l.useCallback(d=>{s();try{t.current&&(t.current.style.left=`${d*100}%`)}catch{}try{a.current?.style.setProperty("--progress",String(d))}catch{}},[s,t,a]);return l.useEffect(()=>s,[s]),{start:c,stop:s,settleTo:u}}function wr({btnLabel:e,soundSrc:t,bucketPath:a,onDone:r,disabled:n=!1,ttsText:i=null,className:s,showSoundWaveForm:c=!0,showNoiseWaveForm:u=!0}){const{t:d}=ge.useTranslation(),p=e,m=uc(),h=l.useRef(m?.registerAnalyser);l.useEffect(()=>{h.current=m?.registerAnalyser});const g=l.useRef(null),f=l.useRef(null),b=l.useRef(null),y=Wk(),v=l.useRef(null),C=l.useRef(!1),w=l.useRef(0),x=l.useRef(null),{ref:S,rect:_,show:k,hide:N}=Hk();l.useEffect(()=>()=>{h.current?.("main",null),h.current?.("noise",null)},[]);const[A,D]=l.useState(!1),[H,P]=l.useState("idle"),[T,E]=l.useState("stopped"),L=l.useRef("stopped");l.useEffect(()=>{L.current=T},[T]);const[F,te]=l.useState(0),[Z,V]=l.useState("active"),[j,M]=l.useState(null),[$,W]=l.useState(null),[q,X]=l.useState(0),[O,Y]=l.useState(!1),[z,re]=l.useState(0),Q=m?.playbackRate??1,ne=m?.mainVolume??1,[me,ce]=l.useState("idle"),[I,ee]=l.useState(""),[pe]=l.useState("top"),ke=l.useRef(null),Ce=l.useRef(0),R=l.useRef(null),{start:oe,stop:ae,settleTo:ve}=Zk({audioRef:g,fillRef:f,waveProgressRef:R,sourcesRef:ke,currentIndexRef:Ce}),{onReadyChange:De,waitForReady:ze,markNotReady:Re}=Fk({showSoundWaveForm:c,showNoiseWaveForm:u}),Me=l.useRef(null),Ye=l.useRef(n),Ne=l.useRef(r),Ve=l.useRef(null),Fe=l.useRef(!1),[be,Ke]=l.useState(!1),We=l.useCallback(U=>{Fe.current=U,Ke(U)},[]),Le=l.useRef(null),{activeNoiseUrl:Ge,noiseSettingsRef:vt,fadeInNoise:Ue,fadeOutNoise:Xe}=Mk({noisePlayer:m,audioRef:g,playbackStateRef:L}),{startTTS:ut,stopTTS:Pe}=Pk({ttsText:i,playbackRate:Q,mainVolume:ne,fillRef:f,waveProgressRef:R,setProgress:te,setPlaybackState:E,setStateLocal:V,fadeInNoise:Ue,fadeOutNoise:Xe,noiseSettingsRef:vt,onDoneRef:Ne,handleEndRef:Le}),rt=Array.isArray(t)?t.filter(Boolean):t?[t]:[],et=(!rt||rt.length===0)&&!!i,Oe=Array.isArray(j)&&j.length>0?j:Array.isArray($)&&$.length>0?$:null,Qe=Math.max(Array.isArray(Oe)?Oe.length:0,rt.length),tt=l.useCallback(async(U,de=3,_e=50)=>{for(let Se=0;Se<de;Se++)try{return await U.play(),!0}catch(Ae){if((Ae instanceof Error||typeof Ae=="object"&&Ae&&"name"in Ae?Ae.name:void 0)==="AbortError"){await new Promise($e=>setTimeout($e,_e));continue}try{ee(d("training.audioFetchError","\uC0AC\uC6B4\uB4DC \uC18C\uC2A4\uB97C \uAC00\uC838\uC624\uC9C0 \uBABB\uD588\uC2B5\uB2C8\uB2E4."))}catch{}return!1}try{ee(d("training.audioFetchError","\uC0AC\uC6B4\uB4DC \uC18C\uC2A4\uB97C \uAC00\uC838\uC624\uC9C0 \uBABB\uD588\uC2B5\uB2C8\uB2E4."))}catch{}return!1},[d]),xt=l.useCallback(()=>{const U=g.current;if(!U)return;const de=()=>{E("playing"),V("playMode"),Y(!0),oe();try{Ho(),h.current?.("main",Vo(U))}catch{}const Ae=vt.current;Ae?.enabled&&(Ae?.level??0)>0&&Ue(Ae.level/9)},_e=()=>{qk({ended:!!U?.ended,completedByEnd:Fe.current})||(E("paused"),ae(),Xe())},Se=()=>{try{const Ae=ke.current,$e=Gk(Ae,Ce.current);if($e!==null){Ce.current=$e,X($e),Y(!0);const nt=Ae?.[$e]&&Ae[$e].src;if(nt&&U){U.src=nt,U.load(),tt(U).catch(()=>{});return}}}catch{}E("stopped"),te(1);try{if(U)try{U.currentTime=0}catch{}}catch{}ae(),Y(!1),Xe();try{!Ye.current&&Le.current&&Le.current()}catch{}};return U.addEventListener("play",de),U.addEventListener("pause",_e),U.addEventListener("ended",Se),()=>{try{U.removeEventListener("play",de),U.removeEventListener("pause",_e),U.removeEventListener("ended",Se),ae()}catch{}}},[Ue,Xe,tt,vt,oe,ae]);l.useEffect(()=>xt(),[xt]),l.useEffect(()=>{Ye.current=n},[n]),l.useEffect(()=>{Ne.current=r},[r]),l.useEffect(()=>{if(n||Z!=="active")return;const U=x.current;if(!U)return;let de=null;const _e=requestAnimationFrame(()=>{try{const Se=U.getTotalLength();if(!Se)return;const Ae=Se*.2;U.style.strokeDasharray=`${Se-Ae} ${Ae}`;const $e="triFlow_"+Math.random().toString(36).slice(2);de=document.createElement("style"),de.textContent=`@keyframes ${$e}{from{stroke-dashoffset:0}to{stroke-dashoffset:-${Se}}}`,document.head.appendChild(de),U.style.animation=`${$e} 2.4s linear infinite`}catch{}});return()=>{cancelAnimationFrame(_e),de?.remove()}},[Z,n]),l.useEffect(()=>{ke.current=j},[j]),l.useEffect(()=>{Ce.current=q},[q]),l.useEffect(()=>{const U=b.current,de=v.current;if(!U||!de)return;let _e=null;const Se=32,Ae=60,$e=()=>{try{const ct=Array.from(U.querySelectorAll(":scope > .button"));let ue=0;ct.forEach(Zt=>{if(Zt===de)return;const Eo=Zt.getBoundingClientRect();ue+=Eo.width});const Te=U.getBoundingClientRect().width,at=Math.max(0,Math.floor(Te-ue-8)),Ct=Qe;if(!Ct||at<=0){Array.from(de.children).forEach(Zt=>{try{Zt.style.width=""}catch{}});return}let _t=Math.floor(at/Ct);_t>Ae&&(_t=Ae),_t<Se&&(_t=Math.max(Se,Math.floor(at/Ct))),Array.from(de.querySelectorAll(".button")).forEach(Zt=>{try{Zt.style.width=`${_t}px`}catch{}})}catch{}},nt=requestAnimationFrame($e);try{_e=new ResizeObserver(()=>{requestAnimationFrame($e)}),_e.observe(U),_e.observe(de),window.addEventListener("resize",$e)}catch{}return()=>{try{cancelAnimationFrame(nt)}catch{}try{_e&&(_e.disconnect(),_e=null)}catch{}try{window.removeEventListener("resize",$e)}catch{}}},[j,$,Qe]),l.useEffect(()=>()=>{try{Me.current&&(clearTimeout(Me.current),Me.current=null),Ve.current&&(clearTimeout(Ve.current),Ve.current=null)}catch{}},[]);const Et=(U,de)=>{M(U),re(de),Re(),W(Yk(U)),ke.current=U},it=async(U,de)=>{We(!1),C.current=!1,U.src=de,U.load(),await Ab(U),await ze(),D(!1),await tt(U),V("playMode"),X(0),Y(!0)},Ht=async(U,de=!1)=>{const _e=g.current;D(!0),P("measuring_duration");try{const Se=await hc(U,{timeoutMs:1e4,rejectOnError:!0});Et([{src:U,objectUrl:null,duration:Se}],Se),P("ready"),de&&_e&&await it(_e,U)}finally{C.current=!1,D(!1)}},mt=async(U,de=!1)=>{const _e=g.current;D(!0),P("measuring_duration");try{const Se=await Promise.all(U.map($e=>hc($e,{timeoutMs:1e4}))),Ae=U.map(($e,nt)=>({src:$e,objectUrl:null,duration:Se[nt]||0}));Et(Ae,Uk(Ae)),P("ready"),de&&_e&&Ae.length>0&&await it(_e,Ae[0].src)}finally{C.current=!1,D(!1)}},Vt=async(U=!1,de=!0)=>{const _e=g.current,Se=t?Array.isArray(t)?t:[t]:[];if(!(!Se||Se.length===0||!Se.some(Boolean))&&!C.current){C.current=!0,de&&D(!0),P("resolving");try{const Ae=Kk(t,a,Dr),$e=[];let nt=0;for(const ct of Ae){let ue=ct.src??null,Te=null;if(!ue&&ct.resolvedPath){try{P("getting_signed_url"),ue=await Oo(ct.resolvedPath)}catch{ue=null}if(!ue)try{P("downloading");const Ct=await Er(ct.resolvedPath);if(Ct){const _t=Ct instanceof Blob?Ct:new Blob([Ct]);Te=y.track(URL.createObjectURL(_t)),ue=Te}}catch{P("error");try{ee(d("training.audioFetchError","\uC0AC\uC6B4\uB4DC \uC18C\uC2A4\uB97C \uAC00\uC838\uC624\uC9C0 \uBABB\uD588\uC2B5\uB2C8\uB2E4.")),V("active")}catch{}}}if(!ue)continue;let at=0;try{P("measuring_duration"),at=await hc(ue,{timeoutMs:3e3})}catch{at=0}nt+=at||0,$e.push({...ct,src:ue,objectUrl:Te,duration:at})}if(Et($e,nt),$e.length>0&&U&&_e){const ct=$e[0];We(!1);try{y.keepOnly($e.map(ue=>ue.objectUrl))}catch{}if(P("ready"),C.current=!1,ct.src&&_e)try{_e.src=ct.src,_e.load(),await Ab(_e),await ze(),de&&D(!1),_e&&await tt(_e)}catch{de&&D(!1)}else de&&D(!1);V("playMode"),X(0),Y(!0)}}finally{C.current=!1,de&&D(!1),P(Ae=>Ae==="ready"?"ready":"idle")}}},ia=async()=>{const U=g.current;if(!(!U&&!et)){if(et){const de=window.speechSynthesis;if(Z==="active"){const _e=Fo(),Se=Array.isArray(i)?i.filter(Boolean):i?[i]:[];if(_e&&Se.length>0){V("load"),D(!0),P("resolving"),C.current=!0;try{const Ae=await Promise.all(Se.map($e=>Promise.resolve(_e($e))));Ae.length>1?await mt(Ae,!0):await Ht(Ae[0],!0)}catch{C.current=!1,D(!1),V("active"),ut(Se[0]||void 0)}return}ut(Se[0]||void 0);return}if(Z==="playMode"){if(U){if(U.paused){if(Fe.current){await Gt();return}await tt(U),E("playing")}else U.pause(),E("paused");return}try{if(de&&de.paused)try{de.resume(),E("playing")}catch{}else try{de.pause(),E("paused")}catch{}}catch{}}return}if(Z==="active"){if(n&&Array.isArray(ke.current)&&ke.current.length>0){const de=ke.current[0];try{if(de.src&&U)try{U.src=de.src,U.load(),U&&await tt(U)}catch{}V("playMode"),X(0),Y(!0);return}catch{}}V("load"),await Vt(!0);return}if(Z!=="load"&&(Z==="playMode"||Z==="active"))try{if(U&&U.paused){if(Fe.current){await Gt();return}U&&await tt(U),E("playing")}else U&&(U.pause(),E("paused"))}catch(de){(de instanceof Error||typeof de=="object"&&de&&"name"in de)&&de.name}}},Gt=async()=>{const U=g.current;if(U)try{const de=ke.current;if(Array.isArray(de)&&de.length>1){await $t(0);return}We(!1);try{U.currentTime=0}catch{}U&&await tt(U),E("playing"),V("playMode")}catch{}},Ea=()=>{if(et){Pe();return}const U=g.current;try{if(U){try{U.pause()}catch{}try{U.currentTime=0}catch{}}}catch{}Xe(),E("stopped"),V("active"),te(0),Y(!1)},sa=async(U,{sameSegment:de=!1}={})=>{const _e=++w.current,Se=g.current,Ae=ke.current?.[U]?.src;try{if(We(!1),X(U),Y(!0),Ce.current=U,!Ae||!Se||(de||Re(),Se.src=Ae,Se.load(),de||await ze(),_e!==w.current)||(await tt(Se),_e!==w.current))return;E("playing"),V("playMode")}catch{}},Kt=async()=>{const U=ke.current,de=Ce.current||0;if(!U||de<=0){await Gt();return}await sa(de-1)},ja=async()=>{const U=ke.current,de=Ce.current||0;if(!U||de>=U.length-1){Ea();return}await sa(de+1)},jt=()=>{if(Fe.current)return;const U=200,de=340;We(!0);try{te(1)}catch{}ve(1);try{ce("hold")}catch{}try{const _e=g.current,Se=et&&!!_e?.src;if(!et||Se){if(_e){_e.pause();try{_e.currentTime=0}catch{}}}else Pe();Xe()}catch{}try{E("stopped")}catch{}if(Y(!1),!Ye.current)try{Ve.current&&(clearTimeout(Ve.current),Ve.current=null),Ve.current=setTimeout(()=>{try{ce("out")}catch{}Ve.current=setTimeout(()=>{try{typeof Ne.current=="function"&&Ne.current(!0)}catch{}try{ce("idle")}catch{}Ve.current=null},de)},U)}catch{}};l.useEffect(()=>{Le.current=jt});const Ga=l.useCallback(()=>ee(""),[]),$t=async U=>{(ke.current||[])[U]&&await sa(U,{sameSegment:U===Ce.current})},ya=T==="playing",qa=l.useMemo(()=>{if(!$||$.length<=1)return $;const U=$[q];return U?[U]:$},[$,q]),Je=n===!0;l.useEffect(()=>{try{const U=g.current;U&&typeof U.playbackRate=="number"&&(U.playbackRate=Q||1)}catch{}},[Q]),l.useEffect(()=>{try{const U=g.current;U&&(U.volume=Math.max(0,Math.min(1,ne)))}catch{}},[ne]);const It=me==="hold",kt=me==="out",xa=Z==="playMode"&&!A&&!be||It||kt,la=T!=="stopped"||It||kt,ie=T==="paused",fe=Math.max(0,Math.min(100,(F||0)*100)),ye=xe("audio-player__fill",xa?"is-visible":"",la?"is-expanded":"",ie?"is-paused":"",kt?"is-out":"");return o.jsxs("div",{className:`audio-player ${Je?"is-disabled":""}${s?` ${s}`:""}`,role:"group","aria-label":typeof p=="string"?p:void 0,children:[o.jsxs("div",{className:`audio-player__panel ${ya?"is-playing":""} ${A?"is-loading":""} ${Z!=="default"?"is-revealed":""}`,children:[A?o.jsxs("div",{className:"audio-player__loading",role:"status","aria-live":"polite",children:[o.jsx("span",{className:"audio-player__loading-spinner","aria-hidden":"true"}),o.jsx("span",{className:"audio-player__loading-text",children:zk[H]})]}):null,Z==="active"?o.jsx("button",{className:"audio-player__button",type:"button",onClick:()=>{N(),ia()},"aria-label":typeof p=="string"?p:d("training.listen","\uB4E3\uAE30"),onMouseEnter:k,onMouseLeave:N,onFocus:k,onBlur:N,children:o.jsx("span",{ref:S,className:"audio-player__button-triangle-wrap",children:o.jsx("svg",{className:"audio-player__button-triangle",viewBox:"0 0 24 24","aria-hidden":"true",children:o.jsx("path",{ref:x,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,_&&o.jsx(aa,{anchorRect:_,text:typeof p=="string"&&p?p:d("training.listenLabel","\uBB38\uC7A5 \uB4E3\uAE30"),offset:8}),o.jsxs("div",{className:`audio-player__play ${Z==="playMode"||ya?"is-visible":""}`,children:[o.jsxs("div",{ref:b,className:"audio-player__buttons",children:[o.jsx(se,{size:32,showTooltipInfo:!0,type:"dot",shape:"pill",useBorder:!1,icon:"skip-back",onClick:Kt,ariaLabel:d("training.prev","\uC774\uC804"),width:"60px",variant:"transparent-white","aria-hidden":"true",tabIndex:-1,disabled:Z!=="playMode"}),o.jsx(se,{size:32,showTooltipInfo:!0,type:"dot",shape:"pill",useBorder:!1,icon:ya?"pause":"play",onClick:ia,ariaLabel:d("common.playPause","\uC7AC\uC0DD / \uBA48\uCDA4"),width:"60px",variant:"transparent-white",disabled:Z!=="playMode"}),o.jsx(se,{size:32,showTooltipInfo:!0,type:"dot",shape:"pill",useBorder:!1,icon:"square",onClick:Ea,ariaLabel:d("training.stop","\uC815\uC9C0"),width:"60px",variant:"transparent-white","aria-hidden":"true",tabIndex:-1,disabled:Z!=="playMode"}),Qe>1?o.jsx("div",{ref:v,className:"audio-player__source-buttons",children:Array.from({length:Qe}).map((U,de)=>o.jsx(se,{size:32,type:"dot",shape:"pill",useBorder:!1,label:String(de+1),onClick:()=>{try{$t(de)}catch{}},ariaLabel:d("training.sourcePlay",{n:de+1}),variant:"transparent-white",selected:O&&q===de,disabled:Z!=="playMode"||!(Array.isArray(j)&&j[de]),showTooltipInfo:!0},de))}):null,!Array.isArray(j)||j.length<=1?o.jsx(se,{size:32,showTooltipInfo:!0,type:"dot",shape:"pill",useBorder:!1,icon:"repeat",onClick:Gt,ariaLabel:d("common.replay","\uB2E4\uC2DC\uB4E3\uAE30"),width:"60px",variant:"transparent-white",disabled:Z!=="playMode"}):null,o.jsx(se,{size:32,showTooltipInfo:!0,type:"dot",shape:"pill",useBorder:!1,icon:"skip-forward",onClick:ja,ariaLabel:d("training.next","\uB2E4\uC74C"),width:"60px",variant:"transparent-white","aria-hidden":!0,tabIndex:-1,disabled:Z!=="playMode"}),o.jsx(se,{size:32,showTooltipInfo:!0,type:"dot",shape:"pill",useBorder:!1,icon:"check",onClick:jt,ariaLabel:d("common.done","\uC644\uB8CC"),width:"60px",variant:"transparent-white",disabled:Z!=="playMode"})]}),o.jsxs("div",{className:"audio-player__slider",children:[o.jsx("div",{className:ye,ref:f,style:{left:`${fe}%`},"aria-hidden":"true"}),(c||u)&&o.jsx(Ik,{segments:qa,progress:F,totalDuration:z,onSegmentClick:$t,waveProgressRef:R,showSoundWaveForm:c,noiseSrc:u&&m?.settings.enabled&&(m?.settings.level??0)>0?Ge:null,noiseLevel:m?.settings.level??0,noiseSpeed:m?.settings.speed??1,mainVolume:ne,onReadyChange:De})]})]}),o.jsx("audio",{ref:g,crossOrigin:"anonymous",preload:"auto"})]}),!c&&o.jsxs("p",{className:"audio-player__no-waveform caption-1",children:[o.jsx(Ie,{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.")]}),o.jsx(ro,{message:I,position:pe,onClose:Ga})]})}var Xk=".ihabdevteam-core-scope .tooltip-textbox{background:var(--color-deepWhite);border:1px solid var(--color-whiteLine);border-radius:var(--radius-m);box-sizing:border-box;max-width:520px;padding:var(--spacing-content)}.ihabdevteam-core-scope .tooltip-textbox__root{display:flex;flex-direction:column;gap:var(--spacing-xs)}.ihabdevteam-core-scope .tooltip-textbox__box{background:transparent}.ihabdevteam-core-scope .tooltip-textbox__label{color:var(--color-darkGray)}.ihabdevteam-core-scope .tooltip-textbox__text{color:var(--color-darkGray);overflow-wrap:anywhere;white-space:normal;word-break:keep-all}.ihabdevteam-core-scope .tooltip-textbox__line{align-items:center;display:flex;gap:var(--spacing-s);margin-bottom:0;min-height:60px;padding:10px 0}.ihabdevteam-core-scope .tooltip-textbox__line:last-child{margin-bottom:0}.ihabdevteam-core-scope .tooltip-textbox__line:not(:last-child){border-bottom:1px solid var(--color-darkWhite)}.ihabdevteam-core-scope .tooltip-textbox.is-dark .tooltip-textbox__line:not(:last-child){border-bottom-color:hsla(0,0%,100%,.06)}.ihabdevteam-core-scope .tooltip-textbox__marker{--marker-pos:50%;align-items:center;background-color:var(--color-main);background:color-mix(in srgb,var(--color-main) 50%,var(--color-sub) 50%);border:2px solid var(--color-pureWhite);border-radius:var(--radius-sm);box-sizing:border-box;color:#fff;display:inline-flex;height:24px;justify-content:center;min-width:24px}@supports (color:color-mix(in lch,red,blue)) and (top:var(--f )){.ihabdevteam-core-scope .tooltip-textbox__marker{background:color-mix(in srgb,var(--color-main) calc(100% - var(--marker-pos)),var(--color-sub) var(--marker-pos))}}.ihabdevteam-core-scope .tooltip-textbox__line-number{color:#fff;min-width:auto;text-align:center}.ihabdevteam-core-scope .tooltip-textbox__line-text{flex:1 1 auto}.ihabdevteam-core-scope .tooltip-textbox__buttons{align-items:center;display:flex;gap:var(--spacing-xs);justify-content:center;margin-top:10px;position:relative}.ihabdevteam-core-scope .tooltip-textbox.is-dark{background:var(--color-darkGray);border-color:var(--color-gray)}.ihabdevteam-core-scope .tooltip-textbox.is-dark .tooltip-textbox__text{color:var(--color-deepWhite)}";J(Xk);function No(e){const{t}=ge.useTranslation(),{text:a,label:r,anchorRect:n=null,onClose:i,closeOnOutsideClick:s=!0,isMobilePopup:c=!1}=e||{},[u,d]=l.useState(()=>{try{return localStorage.getItem("tooltip-theme")||"light"}catch{return"light"}});l.useEffect(()=>{try{localStorage.setItem("tooltip-theme",u)}catch{}},[u]);const{increase:p,decrease:m,canIncrease:h,canDecrease:g,fontSize:f,lineHeight:b}=sn({storageKey:"tooltip-fontScale"}),y=l.useCallback(()=>d(S=>S==="dark"?"light":"dark"),[]),v=l.useCallback(S=>{try{S.stopPropagation()}catch{}try{typeof i=="function"&&i()}catch{}},[i]),C=Array.isArray(a)?a:typeof a>"u"||a===null?[]:[a],w={fontSize:`${f}px`,lineHeight:`${b}px`,"--tt-line-height":`${b}px`,"--tt-marker-size":"28px"},x=o.jsxs("div",{className:`tooltip-textbox__root ${u==="dark"?"is-dark":""}`,children:[o.jsxs("div",{className:"tooltip-textbox__box",children:[r&&o.jsx("div",{className:"tooltip-textbox__label body-2b",children:r}),o.jsx("div",{className:"tooltip-textbox__text body-1",style:w,children:C.map((S,_)=>o.jsxs("div",{className:"tooltip-textbox__line",children:[C.length>1?o.jsx("div",{className:"tooltip-textbox__marker",children:o.jsx("span",{className:"tooltip-textbox__line-number button-1",children:_+1})}):null,o.jsx("span",{className:"tooltip-textbox__line-text",children:S})]},_))})]}),o.jsxs("div",{className:"tooltip-textbox__buttons",children:[o.jsx(se,{size:32,showTooltipInfo:!0,type:"dot",useBorder:!1,width:48,icon:"minus",onClick:m,ariaLabel:t("training.fontSizeDecrease","\uAE00\uC790 \uD06C\uAE30 \uAC10\uC18C"),variant:u==="dark"?"transparent-white":"transparent-gray",disabled:!g}),o.jsx(se,{size:32,showTooltipInfo:!0,type:"dot",useBorder:!1,width:48,icon:"plus",onClick:p,ariaLabel:t("training.fontSizeIncrease","\uAE00\uC790 \uD06C\uAE30 \uC99D\uAC00"),variant:u==="dark"?"transparent-white":"transparent-gray",disabled:!h}),o.jsx(se,{size:32,showTooltipInfo:!0,type:"dot",useBorder:!1,width:48,icon:u==="dark"?"moon":"sun-medium",onClick:y,ariaLabel:t("training.toggleBackground","\uBC30\uACBD \uC804\uD658"),variant:u==="dark"?"transparent-white":"transparent-gray"}),o.jsx(se,{size:32,showTooltipInfo:!0,type:"dot",useBorder:!1,width:48,icon:"x",onClick:v,ariaLabel:t("common.close","\uB2EB\uAE30"),variant:u==="dark"?"transparent-white":"transparent-gray"})]})]});return n?o.jsx(Sa,{anchorRect:n,className:`tooltip-textbox ${u==="dark"?"is-dark":""}`,onClose:i,closeOnOutsideClick:s,isMobilePopup:c,children:x}):o.jsx("div",{className:`tooltip-textbox ${u==="dark"?"is-dark":""}`,children:x})}var Qk=".ihabdevteam-core-scope .training-page-bottom{box-sizing:border-box;width:100%}.ihabdevteam-core-scope .pp-bottom{align-items:center;background:var(--color-deepWhite);border-top:1px solid var(--color-whiteLine);box-sizing:border-box;display:flex;flex:0 0 auto;gap:var(--spacing-s);justify-content:space-between;padding:12px 18px calc(12px + env(safe-area-inset-bottom));width:100%;z-index:5}.ihabdevteam-core-scope .pp-bottom__left{align-items:center;display:flex;gap:var(--spacing-m)}.ihabdevteam-core-scope .pp-bottom__right{align-items:center;display:flex;gap:8px}.ihabdevteam-core-scope .pp-bottom__meters{border:1px solid var(--color-whiteLine);border-radius:14px;display:flex;flex-direction:column;gap:2px;justify-content:center;padding:8px 12px}.ihabdevteam-core-scope .pp-bottom__meter{align-items:center;display:flex;flex-direction:row;gap:var(--spacing-xs)}.ihabdevteam-core-scope .pp-bottom__meter-label{color:var(--color-gray);min-width:28px}.ihabdevteam-core-scope .pp-bottom__settings--desktop{display:none}.ihabdevteam-core-scope .pp-bottom__settings--mobile{display:flex}@media (min-width:768px){.ihabdevteam-core-scope .pp-bottom__settings--desktop{display:block}.ihabdevteam-core-scope .pp-bottom__settings--mobile{display:none}}.ihabdevteam-core-scope .pp-bottom__tooltip-trigger{display:inline-block}.ihabdevteam-core-scope .training-steps{box-sizing:border-box;display:flex;flex-direction:column;overflow:visible;width:100%}.ihabdevteam-core-scope .training-step{align-items:stretch;box-sizing:border-box;display:flex;flex-direction:row;flex-wrap:nowrap;gap:var(--spacing-m);overflow:visible;width:100%}.ihabdevteam-core-scope .training-step__content{box-sizing:border-box;display:flex;flex:1 1 auto;flex-direction:column;gap:var(--spacing-s);gap:var(--spacing-m);min-width:0;overflow:visible;width:100%}.ihabdevteam-core-scope .training-step__title{color:#0b2b35;color:var(--text,#0b2b35);margin:0;text-align:left}.ihabdevteam-core-scope .training-step__buttons{-ms-overflow-style:none;align-items:stretch;display:flex;flex-direction:row;gap:var(--spacing-content);overflow-x:auto;scrollbar-width:none;width:100%}.ihabdevteam-core-scope .training-step__buttons::-webkit-scrollbar{display:none}.ihabdevteam-core-scope .training-step__buttons>*{align-self:stretch;flex:1 1 0;margin:0;min-width:0}.ihabdevteam-core-scope .training-step__buttons.training-step__buttons--wrap-3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));overflow-x:visible}.ihabdevteam-core-scope .training-step__buttons.training-step__buttons--wrap-3>*{width:100%}.ihabdevteam-core-scope .training-step__buttons .button{align-items:center;align-self:stretch;display:flex}@media (max-width:640px){.ihabdevteam-core-scope .training-step{flex-direction:row;gap:10px}}.ihabdevteam-core-scope .training-step__cards{box-sizing:border-box;display:flex;gap:var(--spacing-s);width:100%}@media (max-width:767px){.ihabdevteam-core-scope .training-step__cards{grid-gap:var(--spacing-s);display:grid;gap:var(--spacing-s);grid-template-columns:repeat(3,1fr)}}.ihabdevteam-core-scope .training-step__listen-sticky{width:100%}.ihabdevteam-core-scope .training-step.training-step--has-nested .training-step__content{margin-bottom:100px}.ihabdevteam-core-scope .training-steps>.training-step:last-child .training-step__content{margin-bottom:0}.ihabdevteam-core-scope .training-step:not(.training-step--last) .training-step__content{margin-bottom:var( --margin-page)}.ihabdevteam-core-scope .training-step.training-step--last .training-step__content{margin-bottom:0}";J(Qk);var Jk='.ihabdevteam-core-scope .ts-bullet{--dot-size:28px;--dot-gap:10px;align-items:center;align-self:stretch;display:flex;flex-direction:column;justify-content:flex-start;position:relative;width:28px;width:var(--dot-size)}.ihabdevteam-core-scope .bullet__dot{align-items:center;border:2px solid rgba(43,138,125,.12);border-radius:50%;display:flex;height:var(--dot-size);justify-content:center;width:var(--dot-size);z-index:2}.ihabdevteam-core-scope .bullet__icon{align-items:center;color:var(--color-darkGray);display:inline-flex;height:20px;justify-content:center;position:relative;width:20px;z-index:1}.ihabdevteam-core-scope .bullet__icon-img{display:block;height:100%;-o-object-fit:contain;object-fit:contain;width:100%}.ihabdevteam-core-scope .bullet__icon-mask{background-color:currentColor;height:100%;-webkit-mask-image:var(--icon-url);mask-image:var(--icon-url);-webkit-mask-position:center;mask-position:center;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:contain;mask-size:contain;width:100%}.ihabdevteam-core-scope .bullet__icon-svg svg{fill:currentColor;height:100%;width:100%}.ihabdevteam-core-scope .ts-bullet__line{background:var(--color-whiteLine);border-radius:var(--radius-xs);bottom:20px;left:50%;position:absolute;top:calc(var(--dot-size) + var(--dot-gap));transform:translateX(-50%);width:2px;z-index:1}.ihabdevteam-core-scope .ts-bullet--done .bullet__icon{color:transparent}.ihabdevteam-core-scope .ts-bullet--active .bullet__icon{color:#fff}.ihabdevteam-core-scope .ts-bullet--disabled .bullet__icon{color:transparent}.ihabdevteam-core-scope .ts-bullet--done .bullet__dot{border:2px solid var(--color-main)}.ihabdevteam-core-scope .ts-bullet--active .bullet__dot{background-color:var(--color-main);position:relative}.ihabdevteam-core-scope .ts-bullet--active .bullet__dot:after,.ihabdevteam-core-scope .ts-bullet--active .bullet__dot:before{animation:bullet-ripple 3s cubic-bezier(.2,.6,.2,1) infinite;background:var(--color-main);border-radius:50%;content:"";inset:0;opacity:.5;pointer-events:none;position:absolute}.ihabdevteam-core-scope .ts-bullet--active .bullet__dot:after{animation-delay:1.5s;opacity:.3}@keyframes bullet-ripple{0%{opacity:.5;transform:scale(1)}to{opacity:0;transform:scale(2.2)}}.ihabdevteam-core-scope .ts-bullet--disabled .bullet__dot{border:2px solid var(--color-whiteLine)}.ihabdevteam-core-scope .ts-bullet--done .bullet__line{background-color:var(--color-main)}.ihabdevteam-core-scope .ts-bullet--active .bullet__line,.ihabdevteam-core-scope .ts-bullet--disabled .bullet__line{background-color:var(--color-whiteLine)}.ihabdevteam-core-scope .training-step--last .ts-bullet__line,.ihabdevteam-core-scope .training-step.training-step--last .ts-bullet__line{display:none}@media (max-width:1024px){.ihabdevteam-core-scope .ts-bullet{--dot-size:26px}}@media (max-width:768px){.ihabdevteam-core-scope .ts-bullet{--dot-size:24px}}';J(Jk);function mc({state:e="disabled"}){const{t}=ge.useTranslation();return o.jsxs("div",{className:`ts-bullet ts-bullet--${e}`,"aria-hidden":!0,children:[o.jsx("div",{className:"bullet__dot",children:o.jsx(Ie,{icon:"chevron-right",label:t("training.next","\uB2E4\uC74C"),className:"bullet__icon",imgClassName:"bullet__icon-img",maskClassName:"bullet__icon-mask",svgClassName:"bullet__icon-svg",wrapperStyle:{},size:20})}),o.jsx("div",{className:"ts-bullet__line"})]})}var e7=".ihabdevteam-core-scope .training-step__title-row{align-items:center;display:flex;gap:var(--spacing-xs);padding-right:72px;position:relative;width:100%}.ihabdevteam-core-scope .training-step__title-row .training-step__title{color:var(--color-black);margin:0;padding:0}.ihabdevteam-core-scope .training-step__title--faded .training-step__title-text{background-color:var(--color-darkWhite);border-radius:var(--radius-xs);color:transparent;opacity:1;transition:color .14s ease,opacity .14s ease}.ihabdevteam-core-scope .training-step__title-row .title-controls{align-items:center;display:flex;gap:6px;margin-left:auto}.ihabdevteam-core-scope .training-step__title-row .title-controls .title-buttons{align-items:center;display:inline-flex;gap:6px;justify-content:center;overflow:visible;position:absolute;right:0;top:50%;transform:translateY(-50%)}.ihabdevteam-core-scope .training-step__title-row .title-controls .title-buttons .button28{align-items:center;display:inline-flex;justify-content:center}.ihabdevteam-core-scope .training-step__title-row--disabled .training-step__title,.ihabdevteam-core-scope .training-step__title-row--done .training-step__title{pointer-events:none}.ihabdevteam-core-scope .training-step__title-row--disabled .title-controls{opacity:.6;pointer-events:none}.ihabdevteam-core-scope .training-step__title-row--active .title-controls,.ihabdevteam-core-scope .training-step__title-row--done .title-controls{opacity:1;pointer-events:auto}.ihabdevteam-core-scope .training-step__title-row--disabled .training-step__title,.ihabdevteam-core-scope .training-step__title-row--done .training-step__title{color:var(--color-disabled)}.ihabdevteam-core-scope .training-step__title-row--active .training-step__title{color:var(--color-black)}";J(e7);function bc({title:e,children:t,className:a="",state:r="disabled",usePreviewTextBtn:n=!1,onPreviewTextBtn:i,previewText:s=null,useFaded:c,usePlayAllBtn:u=!1,onPlayAll:d,playAllActive:p=!1}){const{t:m}=ge.useTranslation(),h=oa("(max-width: 767px)"),g=`training-step__title h4 ${c&&r==="disabled"?"training-step__title--faded":""} ${a}`.trim(),f=`training-step__title-row training-step__title-row--${r}`.trim(),b=l.useRef(null),[y,v]=l.useState(!1),[C,w]=l.useState(null),[x,S]=l.useState(null),_=l.useRef(i);l.useEffect(()=>{_.current=i});const k=l.useMemo(()=>s==null?"":typeof s=="string"||typeof s=="number"?String(s):Array.isArray(s)&&s.every(D=>typeof D=="string"||typeof D=="number")?s.join(""):"",[s]),N=l.useCallback(()=>{v(!1),w(null),S(null)},[]);l.useEffect(()=>{if(!y)return;let D;try{typeof _.current=="function"&&(D=_.current())}catch{}if(D===!1){N();return}S(typeof D<"u"&&D!==null?D:null)},[k]);const A=l.useCallback(()=>{let D;try{typeof i=="function"&&(D=i())}catch{}if(D!==!1){if(S(typeof D<"u"&&D!==null?D:s),!b.current){v(H=>!H);return}if(y)v(!1),w(null),S(null);else{const H=b.current.getBoundingClientRect();w(H),v(!0)}}},[i,s,y]);return o.jsxs("div",{className:f,children:[o.jsx("p",{className:g,children:o.jsx("span",{className:"training-step__title-text",children:e??t})}),n||u?o.jsxs("div",{className:"title-controls",children:[o.jsxs("div",{className:"title-buttons",children:[u&&o.jsx(se,{size:32,type:h?"dot":"bar",icon:"play-circle",label:h?void 0:m("training.playAll","\uBAA8\uB450 \uB4E3\uAE30"),ariaLabel:m("training.playAll","\uBAA8\uB450 \uB4E3\uAE30"),selected:p,onClick:d,variant:r==="disabled"?"disabled":"default",disabled:r==="disabled"||p}),n&&o.jsx("div",{ref:b,children:o.jsx(se,{size:32,type:h?"dot":"bar",icon:"eye",label:h?void 0:m("training.sentencePreview","\uBB38\uC7A5 \uBBF8\uB9AC\uBCF4\uAE30"),ariaLabel:m("training.sentencePreview","\uBB38\uC7A5 \uBBF8\uB9AC\uBCF4\uAE30"),selected:y,onClick:A,variant:r==="disabled"?"disabled":"default",disabled:!s&&typeof i!="function"})})]}),y&&o.jsx(No,{text:x??s,label:m("training.sentencePreview","\uBB38\uC7A5 \uBBF8\uB9AC\uBCF4\uAE30"),anchorRect:C,onClose:N,closeOnOutsideClick:!1,isMobilePopup:!0})]}):null]})}function gc(e,t){return typeof t!="number"||typeof e!="number"?"disabled":e<t?"done":e===t?"active":"disabled"}function Va({index:e,stepIndex:t,isLast:a=!1,title:r="",titleProps:n={},children:i,className:s="",onDone:c=void 0,useTitleFaded:u=void 0}){const[d,p]=l.useState(()=>gc(e,t));l.useEffect(()=>{const x=gc(e,t);if(x!==d){const S=setTimeout(()=>p(x),0);return()=>clearTimeout(S)}},[e,t,d]);const m=l.useCallback((...x)=>{gc(e,t)==="done"||d==="done"||typeof c=="function"&&c(...x)},[e,t,d,c]),[h,g]=l.useState(!1),[f,b]=l.useState({text:"",label:"\uBB38\uC7A5 \uB4E3\uAE30",anchorRect:null,backdrop:!1,alignX:null,alignY:null}),y=l.useCallback(x=>{if(!x)return null;try{const S=x;if(typeof x=="object"&&(S.currentTarget||S.target)&&(S.nativeEvent||S.type)){const N=S.currentTarget??S.target;if(N&&typeof N.getBoundingClientRect=="function")return N.getBoundingClientRect()}if(x instanceof DOMRect)return x;const _=x;if(_&&typeof _.getBoundingClientRect=="function")return _.getBoundingClientRect();const k=x?.current;return k&&typeof k.getBoundingClientRect=="function"?k.getBoundingClientRect():null}catch{return null}},[]),v=l.useCallback((x,{text:S="",label:_="\uBB38\uC7A5 \uB4E3\uAE30",backdrop:k=!1,alignX:N="center",alignY:A="top"}={})=>{const D=y(x);b({text:S,label:_,anchorRect:D,backdrop:k,alignX:N,alignY:A}),g(!0)},[y]),C=l.useCallback(()=>{g(!1),b(x=>({...x,anchorRect:null}))},[]),w=l.Children.map(i,x=>{if(l.isValidElement(x)){const S=x;if(typeof S.type=="string")return S;const _=S.props??{},k=typeof _.onDone=="function"?_.onDone:m,N=typeof _.disabled=="boolean";let A=d==="disabled";return N&&(A=!!_.disabled),l.cloneElement(S,{onDone:k,disabled:A,showTooltip:v,hideTooltip:C})}return x});return o.jsxs("div",{className:`training-step training-step--${d} ${a?"training-step--last":""} ${s}`,"aria-current":d==="active",children:[o.jsx(mc,{state:d}),o.jsxs("div",{className:"training-step__content",children:[o.jsx(bc,{state:d,title:r,...n,useFaded:u}),w]}),h?o.jsx(Sa,{anchorRect:f.anchorRect,backdrop:f.backdrop,onClose:C,children:o.jsx(No,{text:f.text,onClose:C})}):null]})}var t7='.ihabdevteam-core-scope .training-text-box{background:var(--color-darkWhite);border:1px solid var(--color-deepWhite);border-radius:var(--radius-m);color:var(--color-black);display:flex;flex-direction:column;max-width:100%;min-height:160px;overflow:visible;overflow-wrap:anywhere;padding:var(--spacing-content);position:relative;text-align:center;word-break:keep-all}.ihabdevteam-core-scope .training-text-box--disabled{pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.ihabdevteam-core-scope .training-text-box--disabled .training-text-box__inner{visibility:hidden}.ihabdevteam-core-scope .training-text-box--disabled:after{content:"";pointer-events:none;position:absolute;z-index:5}.ihabdevteam-core-scope .training-text-box__preview{align-items:center;display:flex;justify-content:center;left:50%;pointer-events:auto;position:absolute;top:50%;transform:translate(-50%,-50%);z-index:60}.ihabdevteam-core-scope .training-text-box__buttons{border-radius:999px;gap:4px;height:28px;left:0;right:0}.ihabdevteam-core-scope .training-text-box__area,.ihabdevteam-core-scope .training-text-box__buttons{align-items:center;box-sizing:border-box;display:flex;justify-content:center;pointer-events:auto;position:relative;z-index:40}.ihabdevteam-core-scope .training-text-box__area{flex:1 1 auto;margin:0 auto;min-height:0;text-align:center;width:100%}.ihabdevteam-core-scope .training-text-box--active,.ihabdevteam-core-scope .training-text-box--done{background-color:var(--color-white);border-color:var(--color-main);pointer-events:auto;transition:box-shadow .18s ease,transform .18s ease,opacity .16s ease;-webkit-user-select:auto;-moz-user-select:auto;user-select:auto}.ihabdevteam-core-scope .training-text-box.is-dark{background:var(--color-darkGray);border:1px solid var(--color-black);color:var(--color-deepWhite)}.ihabdevteam-core-scope .training-text-box .training-text-box__inner{display:block;overflow-wrap:anywhere;text-align:center;white-space:normal;width:100%;word-break:keep-all}.ihabdevteam-core-scope .training-text-box.is-dark .tooltip-textbox__text,.ihabdevteam-core-scope .training-text-box.is-dark .training-text-box__inner{color:var(--color-deepWhite)}';J(t7);function fc({context:e,state:t="disabled",theme:a="light"}){const{t:r}=ge.useTranslation(),[n,i]=l.useState("disabled"),[s,c]=l.useState(()=>{try{return localStorage.getItem("tooltip-theme")||a}catch{return a}});l.useEffect(()=>{try{localStorage.setItem("tooltip-theme",s)}catch{}},[s]);const u=()=>c(A=>A==="dark"?"light":"dark"),{increase:d,decrease:p,canIncrease:m,canDecrease:h,fontSize:g,lineHeight:f}=sn({storageKey:"textbox_fontScale"}),[b,y]=l.useState(""),v=l.useCallback(()=>i("active"),[]),C=l.useCallback(()=>y(""),[]),w=A=>{try{y(A)}catch{}},x=typeof navigator<"u"&&/Mobi|Android/i.test(navigator.userAgent||"");l.useEffect(()=>{if(t!=="disabled"){const A=setTimeout(()=>i(t),0);return()=>clearTimeout(A)}},[t]);const S=l.useMemo(()=>e&&typeof e=="object"?String(e.sentence??e.text??""):typeof e=="string"?e:"",[e]);l.useEffect(()=>{const A=setTimeout(()=>i("disabled"),0);return()=>clearTimeout(A)},[S]);const _=t==="disabled"?n:t,k=_==="disabled"?"training-text-box--disabled":_==="active"?"training-text-box--active":_==="done"?"training-text-box--done":"",N=l.useMemo(()=>({fontSize:`${g}px`,lineHeight:`${f}px`}),[g,f]);return o.jsxs("div",{className:`training-text-box ${k} ${_!=="disabled"&&s==="dark"?"is-dark":""}`,children:[_==="disabled"&&o.jsx("div",{className:"training-text-box__preview",children:o.jsx(se,{size:48,type:"bar",onClick:v,icon:"eye",ariaLabel:r("training.sentencePreview","\uBB38\uC7A5 \uBBF8\uB9AC\uBCF4\uAE30"),label:r("training.sentencePreview","\uBB38\uC7A5 \uBBF8\uB9AC\uBCF4\uAE30"),useBorder:!1})}),o.jsx("div",{className:"training-text-box__area","aria-hidden":_==="disabled",children:o.jsx("span",{className:"training-text-box__inner h3",style:N,children:S})}),_!=="disabled"&&o.jsxs("div",{className:"training-text-box__buttons","aria-hidden":_==="disabled",children:[o.jsx(se,{size:32,type:"dot",onClick:p,onDisabledClick:()=>w(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:s==="dark"?"transparent-white":"transparent-gray",disabled:!h,useBorder:!1,showTooltipInfo:!0,...!x&&{width:"60px"}}),o.jsx(se,{size:32,type:"dot",onClick:d,onDisabledClick:()=>w(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:s==="dark"?"transparent-white":"transparent-gray",disabled:!m,useBorder:!1,showTooltipInfo:!0,...!x&&{width:"60px"}}),o.jsx(se,{size:32,showTooltipInfo:!0,type:"dot",useBorder:!1,width:48,icon:s==="dark"?"moon":"sun-medium",onClick:u,ariaLabel:r("training.toggleBackground","\uBC30\uACBD \uC804\uD658"),variant:s==="dark"?"transparent-white":"transparent-gray"})]}),o.jsx(ro,{message:b,position:"top",onClose:C})]})}function jn({index:e,stepIndex:t,isLast:a=!1,title:r,useTitleFaded:n,onDone:i,onChange:s,answer:c,wrongAnswers:u,choices:d,multiSelect:p=!1,correctCount:m=0,useDisabledCovered:h=!1,choiceIcons:g,shuffleChoices:f=!0}){const{t:b}=ge.useTranslation(),y=r??b("training.selectConfirm","\uBB38\uC81C\uB97C \uBCF4\uACE0 \uD574\uB2F9\uD558\uB294 \uB0B4\uC6A9\uC744 \uC120\uD0DD\uD558\uC138\uC694."),v=typeof e=="number"?e:-1,C=typeof t!="number"?"disabled":v<t?"done":v===t?"active":"disabled",w=Array.isArray(d)&&d.length?d:typeof c<"u"?[c].concat(Array.isArray(u)?u:[]):void 0,x=u?u.join("||"):"",S=d?d.join("||"):"",[_,k]=l.useState(()=>Array.isArray(w)?f?He(w):w.slice():void 0);l.useEffect(()=>{Array.isArray(w)&&w.length?k(f?He(w):w.slice()):k(void 0)},[c,x,S,f]);const[N,A]=l.useState(null),[D,H]=l.useState(()=>new Set);l.useEffect(()=>{A(null),H(new Set)},[S]);const P=l.useRef(void 0);l.useEffect(()=>{const L=P.current;typeof L=="number"&&typeof t=="number"&&typeof e=="number"&&L>=e&&t<e&&(A(null),H(new Set)),P.current=t},[t,e]);const T=l.useCallback(L=>{if(C!=="active")return;const F=_?.[L];if(F==null)return;const te=F,Z=C==="active"||C==="done";if(p){const V=new Set(D),j=V.has(te);j?V.delete(te):V.add(te),H(V),typeof s=="function"&&s({selectedValues:[...V],__ts:Date.now()}),Z&&(typeof m=="number"&&m>0?V.size>=m:!j)&&typeof i=="function"&&C==="active"&&i({selectedValues:[...V],__ts:Date.now()})}else A(te),typeof s=="function"&&s({selectedIndex:L,selectedValue:te,__ts:Date.now()}),Z&&typeof i=="function"&&C==="active"&&i({selectedIndex:L,selectedValue:te,__ts:Date.now()})},[_,C,p,s,i,m,D]),E=`training-step__buttons${Array.isArray(_)&&_.length>3?" training-step__buttons--wrap-3":""}`;return o.jsx(Va,{index:e,stepIndex:t,isLast:a,title:y,useTitleFaded:n,children:o.jsx("div",{className:E,children:Array.isArray(_)&&_.length>0?_.map((L,F)=>o.jsx(se,{size:56,type:"bar",onClick:()=>T(F),ariaLabel:String(L),label:L,useLabel:!0,icon:g?g[String(L)]:void 0,variant:"default",disabled:C==="disabled",selected:p?D.has(L):N===L,useDisabledCovered:h,minWidth:0},String(L))):null})})}function Ln({index:e,stepIndex:t,isLast:a=!1,title:r,onDone:n,onChange:i,context:s,demoSelected:c}){const{t:u}=ge.useTranslation(),d=r??u("training.confirmTitle","\uBB38\uC7A5\uC744 \uD655\uC778\uD558\uACE0 \uC798 \uB4E4\uB838\uB294\uC9C0 \uC120\uD0DD\uD558\uC138\uC694."),p=typeof e=="number"?e:-1,m=typeof t!="number"?"disabled":p<t?"done":p===t?"active":"disabled",h=s&&typeof s=="object"?s.sentence||"":typeof s=="string"?s:"",g=s&&typeof s=="object"?s.choices:void 0,[f,b]=l.useState(c??null);l.useEffect(()=>{if(c==null&&f!==null){const w=setTimeout(()=>b(null),0);return()=>clearTimeout(w)}},[h,c,f]);const y=l.useCallback(w=>{const x=typeof w=="object"&&w!==null?Object.assign({},w,{__ts:Date.now()}):{value:w,__ts:Date.now()};typeof i=="function"&&i(x),m==="active"&&typeof n=="function"&&n(x)},[i,m,n]),v=l.useCallback(()=>{m==="active"&&(b(!1),y(!1))},[y,m]),C=l.useCallback(()=>{m==="active"&&(b(!0),y(!0))},[y,m]);return o.jsxs(Va,{index:e,stepIndex:t,isLast:a,title:d,onDone:n,useTitleFaded:!1,children:[o.jsx(fc,{context:s,state:m}),o.jsx("div",{className:"training-step__buttons",children:Array.isArray(g)&&g.length>0?g.slice(0,6).map((w,x)=>o.jsx(se,{size:56,type:"bar",onClick:()=>{m==="active"&&(b(x),y&&y(x))},disabled:m==="disabled",ariaLabel:String(w),label:w,variant:m,selected:f===x},x)):o.jsxs(o.Fragment,{children:[o.jsx(se,{size:56,type:"bar",onClick:v,disabled:m==="disabled",icon:"x",ariaLabel:u("training.notHeard","\uC548 \uB4E4\uB838\uC5B4\uC694."),label:u("training.notHeard","\uC548 \uB4E4\uB838\uC5B4\uC694."),variant:"default",selected:f===!1}),o.jsx(se,{size:56,type:"bar",onClick:C,disabled:m==="disabled",icon:"circle",ariaLabel:u("training.heardWell","\uC798 \uB4E4\uB838\uC5B4\uC694."),label:u("training.heardWell","\uC798 \uB4E4\uB838\uC5B4\uC694."),variant:"default",selected:f===!0})]})})]})}function Mn({index:e,stepIndex:t,isLast:a=!1,title:r,onDone:n,btnLabel:i,soundSrc:s,bucketPath:c,usePreviewTextBtn:u,previewText:d=null,onPreviewTextBtn:p,disabled:m,_pageIndex:h,showSoundWaveForm:g,showNoiseWaveForm:f}){const{t:b}=ge.useTranslation(),y=r??b("training.listenTitle","\uC81C\uC2DC\uD558\uB294 \uBB38\uC7A5\uC744 \uB4E4\uC5B4\uC8FC\uC138\uC694."),v=m??(typeof t=="number"&&typeof e=="number"?e>t:!1);return o.jsx(Va,{index:e,stepIndex:t,isLast:a,title:y,onDone:n,titleProps:{usePreviewTextBtn:u,previewText:d,onPreviewTextBtn:p},children:o.jsx(wr,{soundSrc:s,ttsText:s?null:d??y,bucketPath:c,btnLabel:i||b("training.listenButton","\uBB38\uC7A5 \uB4E3\uAE30"),disabled:v,className:"training-step__listen-sticky",showSoundWaveForm:g,showNoiseWaveForm:f},`audio-p${h??0}-s${e}`)})}var a7=".ihabdevteam-core-scope .page-popup--closing{opacity:0;pointer-events:none;transition:opacity .16s ease}.ihabdevteam-core-scope .page-popup__panel{overflow:auto}.ihabdevteam-core-scope .page-popup__close{font-size:20px;right:12px;top:10px}.ihabdevteam-core-scope .page-popup{align-items:stretch;display:flex;inset:0;justify-content:center;position:fixed;z-index:var(--z-page-popup)}.ihabdevteam-core-scope .page-popup__panel{background:var(--color-deepWhite);border-radius:0;box-shadow:none;color:var(--color-black);display:flex;flex-direction:column;height:100%;max-height:none;max-width:none;overflow:hidden;position:relative;width:100%}.ihabdevteam-core-scope .page-popup__scroll{-webkit-overflow-scrolling:touch;align-items:flex-start;display:flex;flex:1 1 0;justify-content:center;min-height:0;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;scrollbar-color:rgba(0,0,0,.15) transparent;scrollbar-width:thin;touch-action:pan-y}.ihabdevteam-core-scope .page-popup__scroll::-webkit-scrollbar{width:4px}.ihabdevteam-core-scope .page-popup__scroll::-webkit-scrollbar-track{background:transparent}.ihabdevteam-core-scope .page-popup__scroll::-webkit-scrollbar-thumb{background:rgba(0,0,0,.15);border-radius:var(--radius-xs)}.ihabdevteam-core-scope .page-popup__scroll::-webkit-scrollbar-thumb:hover{background:rgba(0,0,0,.28)}.ihabdevteam-core-scope .page-popup__panel--measuring .page-popup__scroll{opacity:0;pointer-events:none}.ihabdevteam-core-scope .page-popup__scroll{transition:opacity .12s ease}.ihabdevteam-core-scope .nt-debug{background:rgba(0,0,0,.03);border-radius:var(--radius-sm);color:var(--text,var(--color-black));font-family:monospace;font-size:12px;line-height:1.2;max-width:300px;padding:8px 10px;position:absolute;right:20px;top:84px;white-space:pre-wrap;z-index:calc(var(--z-page-popup) + 1)}.ihabdevteam-core-scope .page-popup--backdrop{display:none}.ihabdevteam-core-scope .page-popup__close{background:transparent;border:none;color:var(--text,var(--color-black));cursor:pointer;font-size:22px;line-height:1;position:absolute;right:14px;top:12px}.ihabdevteam-core-scope .page-popup__panel>*{box-sizing:border-box}.ihabdevteam-core-scope .page-popup__body{padding:16px 20px}.ihabdevteam-core-scope .page-popup__content{box-sizing:border-box;margin:0 auto;max-width:800px;min-width:0;padding:var(--spacing-page);width:100%}.ihabdevteam-core-scope .page-popup__content--center{margin-bottom:auto;margin-top:auto}.ihabdevteam-core-scope .pp-empty{color:var(--color-gray);padding:24px 0;text-align:center;width:100%}.ihabdevteam-core-scope .page-popup__content .training-steps{box-sizing:border-box;min-width:0;width:100%}.ihabdevteam-core-scope .page-popup__bottom,.ihabdevteam-core-scope .page-popup__top{flex-shrink:0}.ihabdevteam-core-scope .page-popup__panel--center .page-popup__scroll{align-items:center}.ihabdevteam-core-scope .page-popup--result-empty{background:var(--color-deepWhite)}.ihabdevteam-core-scope .page-popup__empty{align-items:center;color:var(--color-gray);display:flex;flex-direction:column;justify-content:center;padding:2rem;text-align:center;width:100%}";J(a7);var o7=".ihabdevteam-core-scope .order-list{display:flex;flex-direction:column;gap:var(--spacing-xs)}.ihabdevteam-core-scope .order-list__item{align-items:flex-start;display:flex;gap:var(--spacing-s)}.ihabdevteam-core-scope .order-list__draggable{align-items:center;border-radius:var(--radius-m);display:flex;flex:1;gap:var(--spacing-xs);justify-content:space-between;min-height:60px;padding:0 0 0 4px;will-change:transform}.ihabdevteam-core-scope .order-list__item-text{color:var(--color-black)}.ihabdevteam-core-scope .order-list__item-buttons{align-items:center;align-self:center;display:inline-flex;gap:2px}@media (max-width:600px){.ihabdevteam-core-scope .order-list__item-buttons{align-items:center;align-self:center;display:flex;flex-direction:column}.ihabdevteam-core-scope .order-list__item-buttons>*{box-sizing:border-box;display:inline-flex}}.ihabdevteam-core-scope .order-list__item.correct{border:1px solid var(--color-main)}.ihabdevteam-core-scope .order-list__slot{align-items:center;background-color:var(--color-darkWhite);border-radius:var(--radius-m);box-sizing:border-box;display:flex;gap:var(--spacing-xs);height:auto;padding:4px 10px;width:100%}.ihabdevteam-core-scope .order-list__marker{--marker-pos:50%;align-items:center;background-color:var(--color-main);background:color-mix(in srgb,var(--color-main) 50%,var(--color-sub) 50%);border:2px solid var(--color-pureWhite);border-radius:var(--radius-sm);box-sizing:border-box;color:#fff;display:inline-flex;height:24px;justify-content:center;width:24px}@supports (color:color-mix(in lch,red,blue)) and (top:var(--f )){.ihabdevteam-core-scope .order-list__marker{background:color-mix(in srgb,var(--color-main) calc(100% - var(--marker-pos)),var(--color-sub) var(--marker-pos))}}@media (max-width:600px){.ihabdevteam-core-scope .order-list__marker{height:24px;min-width:24px;width:24px}}.ihabdevteam-core-scope .order-list__item:hover .order-list__slot{background-color:var(--color-deepWhite);box-shadow:inset 0 0 0 1px var(--color-main);transition:box-shadow .16s cubic-bezier(.22,.9,.39,1)}.ihabdevteam-core-scope .order-list__item.drag-over .order-list__slot{background-color:var(--color-white);box-shadow:inset 0 0 0 1px var(--color-main)}.ihabdevteam-core-scope .order-list__slot.pulse{background-color:var(--color-white);transition:background-color .42s cubic-bezier(.22,.9,.39,1)}.ihabdevteam-core-scope .order-list__slot.pulse.to-dark{background-color:var(--color-darkWhite)}.ihabdevteam-core-scope .order-list__slot-number{align-items:center;align-self:center;border-radius:var(--radius-sm);color:#fff;display:inline-flex;height:32px;justify-content:center;width:32px}.ihabdevteam-core-scope .order-list__draggable.dragging{background-color:var(--color-white);opacity:.2}.ihabdevteam-core-scope .order-list__dragging-object{align-items:center;background:var(--color-white);border-radius:var(--radius-m);box-shadow:0 14px 40px rgba(16,24,40,.18);box-sizing:border-box;color:var(--color-black);display:inline-flex;gap:var(--spacing-s);left:0;max-width:calc(100vw - var(--spacing-page)*3);min-height:60px;opacity:1;overflow-wrap:anywhere;padding:20px;pointer-events:none;position:fixed;top:0;transform:translate3d(-9999px,-9999px,0) scale(1);transition:transform .16s cubic-bezier(.22,.9,.39,1),opacity .18s ease;white-space:normal;width:auto;will-change:transform,opacity;word-break:keep-all;z-index:var(--z-popover)}.ihabdevteam-core-scope .order-list__dragging-object--visible{opacity:1}.ihabdevteam-core-scope .order-list__item.drag-over .order-list__slot:hover{background-color:var(--color-white);border-radius:var(--radius-m);box-shadow:inset 0 0 0 1px var(--color-main);transition:box-shadow .16s cubic-bezier(.22,.9,.39,1)}.ihabdevteam-core-scope .order-list__item-text{display:block;line-height:1.4;margin:0;overflow-wrap:anywhere;white-space:normal;width:100%;word-break:keep-all}.ihabdevteam-core-scope .order-list__draggable[data-disabled=true],.ihabdevteam-core-scope .order-list__draggable[draggable=false]{background-color:var(--color-darkWhite);box-shadow:none!important;cursor:default;opacity:.9;pointer-events:none}.ihabdevteam-core-scope .order-list__draggable[data-disabled=true] .order-list__item-text,.ihabdevteam-core-scope .order-list__draggable[draggable=false] .order-list__item-text{color:var(--color-gray);display:none!important;opacity:.9}.ihabdevteam-core-scope .order-list__draggable[data-disabled=true] .order-list__item-buttons,.ihabdevteam-core-scope .order-list__draggable[data-disabled=true]~.order-list__slot .order-list__slot-number,.ihabdevteam-core-scope .order-list__draggable[draggable=false] .order-list__item-buttons,.ihabdevteam-core-scope .order-list__draggable[draggable=false]~.order-list__slot .order-list__slot-number,.ihabdevteam-core-scope .order-list__slot-number[hidden]{display:none!important}.ihabdevteam-core-scope .order-list__draggable[data-disabled=true] .order-list__slot,.ihabdevteam-core-scope .order-list__draggable[data-disabled=true]+.order-list__slot,.ihabdevteam-core-scope .order-list__draggable[draggable=false] .order-list__slot,.ihabdevteam-core-scope .order-list__draggable[draggable=false]+.order-list__slot,.ihabdevteam-core-scope .order-list__slot[data-disabled=true]{background-color:var(--color-darkWhite)!important;box-shadow:none!important}.ihabdevteam-core-scope .order-list__slot[data-disabled=true]{cursor:default!important;pointer-events:none!important}.ihabdevteam-core-scope .order-list__slot[data-disabled=true] .order-list__slot-number{display:none!important}";J(o7);function Pn({index:e,stepIndex:t,isLast:a=!1,title:r,onDone:n,onChange:i,context:s=[]}){const{t:c}=ge.useTranslation(),u=r??c("training.orderListDefault","\uBB38\uC7A5\uC744 \uB4E4\uC740 \uC21C\uC11C\uB300\uB85C \uBC30\uCE58\uD558\uC138\uC694."),d=M=>typeof M=="string"?M:M&&(M.context||M.sentence||M.question||"")||"",[p,m]=l.useState(Array.isArray(s)?s:[]),[h,g]=l.useState(()=>(p||[]).map((M,$)=>({id:$,text:d(M)}))),f=l.useMemo(()=>typeof t!="number"||typeof e!="number"?"disabled":e<t?"done":e===t?"active":"disabled",[t,e]);l.useEffect(()=>{const M=Array.isArray(s)?s:[];m(M);const $=(W=>{const q=(W||[]).map((z,re)=>({id:re,text:d(z)}));if(q.length<=1)return q;const X=(z,re)=>{if(z.length!==re.length)return!1;for(let Q=0;Q<z.length;Q++)if(z[Q].text!==re[Q].text)return!1;return!0};let O=He(q),Y=0;for(;X(O,q)&&Y<20;)O=He(q),Y+=1;return O})(M);g($);try{if(typeof i=="function"){const W=$.filter((q,X)=>q.text===d(M[X])).length;i({shuffled:$,score:W,total:(M||[]).length,initial:!0,__ts:Date.now()})}if(typeof n=="function"&&f==="active"){const W=$.filter((q,X)=>q.text===d(M[X])).length;n({shuffled:$,score:W,total:(M||[]).length,initial:!0,__ts:Date.now()})}}catch{}},[s]);const b=(M,$)=>{const W=[...h],q=M+$;if(q<0||q>=W.length)return;const X=W[q];W[q]=W[M],W[M]=X,E(W);try{if(typeof n=="function"&&f==="active"){const O=W.filter((Y,z)=>Y.text===d(p[z])).length;n({shuffled:W,score:O,total:(p||[]).length,__ts:Date.now()})}}catch{}},[y,v]=l.useState(null),C=l.useRef(null),w=l.useRef(null),x=l.useRef(null),S=l.useRef(null),_=l.useRef(null),k=l.useRef({x:0,y:0}),N=l.useRef(null),A=l.useRef({dx:0,dy:0}),D=()=>{if(N.current!==null)return;const M=()=>{N.current=requestAnimationFrame(M);const $=k.current,W=A.current||{dx:0,dy:0};C.current&&(C.current.style.transform=`translate3d(${$.x-W.dx}px, ${$.y-W.dy}px, 0)`)};N.current=requestAnimationFrame(M)},H=l.useRef(new Map),P=l.useRef(new Map),T=()=>{const M=new Map;return H.current.forEach(($,W)=>{$&&$.getBoundingClientRect&&M.set(W,$.getBoundingClientRect())}),M},E=M=>{const $=T();g(M);try{if(typeof i=="function"){const W=M.filter((q,X)=>q.text===d(p[X])).length;i({shuffled:M,score:W,total:(p||[]).length,__ts:Date.now()})}}catch{}requestAnimationFrame(()=>{const W=T();M.forEach(q=>{const X=$.get(q.id),O=W.get(q.id),Y=H.current.get(q.id);if(!Y||!X||!O)return;const z=X.top-O.top;z&&(Y.style.transition="none",Y.style.transform=`translateY(${z}px)`,requestAnimationFrame(()=>{Y.style.transition="transform 420ms cubic-bezier(.22,.9,.39,1)",Y.style.transform="";const re=()=>{Y.style.transition="",Y.removeEventListener("transitionend",re)};Y.addEventListener("transitionend",re)}))})})},L=(M,$)=>{try{try{$.dataTransfer?.setData("text/plain",String(M))}catch{}try{$.dataTransfer&&($.dataTransfer.effectAllowed="move")}catch{}try{const W=document.createElement("div");W.style.cssText="position:absolute;top:-9999px;left:-9999px;width:1px;height:1px;opacity:0;pointer-events:none;",document.body.appendChild(W),$.dataTransfer?.setDragImage(W,0,0),requestAnimationFrame(()=>{try{document.body.removeChild(W)}catch{}})}catch{}}catch{}v(M);try{const W=h[M],q=document.createElement("div");q.className="order-list__dragging-object order-list__dragging-object--visible",q.textContent=W&&W.text?W.text:"",document.body.appendChild(q),C.current=q;const X=H.current.get(W.id);let O=$.clientX||0,Y=$.clientY||0;try{if(X&&X.getBoundingClientRect){const ce=X.getBoundingClientRect();O=ce.left+ce.width/2,Y=ce.top+ce.height/2}}catch{}const z=q.getBoundingClientRect(),re=z.width/2,Q=z.height/2;A.current={dx:re,dy:Q},q.style.transition="none",k.current={x:O,y:Y},q.style.transform=`translate3d(${O-re}px, ${Y-Q}px, 0)`,requestAnimationFrame(()=>{try{q.style.transition=""}catch{}D()});const ne=ce=>{const I=ce;k.current={x:I.clientX,y:I.clientY},D()};x.current=ne,document.addEventListener("mousemove",ne);const me=ce=>{const I=ce;k.current={x:I.clientX,y:I.clientY},D()};w.current=me,document.addEventListener("dragover",me);try{$.dataTransfer?.setData("text/plain",String(M));try{$.dataTransfer?.setData("application/json",JSON.stringify({idx:M}))}catch{}}catch{}}catch{}},F=(M,$)=>{$.preventDefault();try{$.dataTransfer&&($.dataTransfer.dropEffect="move")}catch{}try{_.current!==null&&(clearTimeout(_.current),_.current=null);const W=$.currentTarget&&$.currentTarget.closest?$.currentTarget.closest(".order-list__item"):null;if(W&&S.current!==W){if(S.current)try{S.current.classList.remove("drag-over")}catch{}try{W.classList.add("drag-over")}catch{}S.current=W}}catch{}},te=(M,$)=>{$.preventDefault();const W=$.dataTransfer?.getData("text/plain")||"",q=W?parseInt(W,10):y,X=M;if(typeof q!="number"||isNaN(q)||q===X){v(null),j(),Z();return}const O=Ii(h,q,X);E(O),v(null),Z();try{if(typeof n=="function"&&f==="active"){const Y=O.filter((z,re)=>z.text===d(p[re])).length;n({shuffled:O,score:Y,total:(p||[]).length,__ts:Date.now()})}}catch{}try{requestAnimationFrame(()=>{const Y=document.querySelectorAll(".order-list .order-list__item")[X];if(!Y)return;const z=Y.querySelector(".order-list__slot")||Y;try{z.classList.add("pulse"),z.offsetHeight,z.classList.add("to-dark");const re=()=>{z.classList.remove("pulse","to-dark"),z.removeEventListener("transitionend",re)};z.addEventListener("transitionend",re)}catch{}})}catch{}j()},Z=()=>{if(C.current){try{document.body.removeChild(C.current)}catch{}C.current=null}w.current&&(document.removeEventListener("dragover",w.current),w.current=null),x.current&&(document.removeEventListener("mousemove",x.current),x.current=null),N.current!==null&&(cancelAnimationFrame(N.current),N.current=null)},V=()=>{v(null),j(),Z()};l.useEffect(()=>()=>Z(),[]);const j=()=>{try{if(_.current!==null&&(clearTimeout(_.current),_.current=null),S.current){try{S.current.classList.remove("drag-over")}catch{}S.current=null}document.querySelectorAll(".order-list .order-list__item").forEach(M=>M.classList.remove("drag-over"))}catch{}};return l.useEffect(()=>{try{const M=Math.max(1,(h||[]).length);h.forEach(($,W)=>{const q=P.current.get($.id);if(!q)return;let X=50;M>1&&(X=Math.round(W/(M-1)*100));try{q.style.setProperty("--marker-pos",X+"%")}catch{}})}catch{}},[h]),l.useEffect(()=>()=>{Z(),_.current!==null&&(clearTimeout(_.current),_.current=null)},[]),o.jsx(Va,{index:e,stepIndex:t,isLast:a,title:u,children:o.jsx("div",{className:"order-list",children:h.map((M,$)=>{const W=Math.max(1,(h||[]).length),q=W>1?Math.round($/(W-1)*100):50;return o.jsx("div",{className:"order-list__item",children:o.jsxs("div",{className:"order-list__slot","data-disabled":f==="disabled","aria-disabled":f==="disabled",children:[f!=="disabled"?o.jsx("div",{className:"order-list__marker caption-1",style:{"--marker-pos":q+"%"},ref:X=>{const O=P.current;X?O.set(M.id,X):O.delete(M.id)},children:o.jsx("span",{className:"order-list__slot-number button-1",children:$+1})}):null,o.jsxs("div",{ref:X=>{const O=H.current;X?O.set(M.id,X):O.delete(M.id)},className:`order-list__draggable ${y===$?"dragging":""}`,"data-disabled":f==="disabled","aria-disabled":f==="disabled",tabIndex:f==="disabled"?-1:0,draggable:f==="active",onDragStart:f==="active"?X=>L($,X):void 0,onDragEnter:f==="active"?X=>F($,X):void 0,onDragOver:f==="active"?X=>F($,X):void 0,onDragLeave:f==="active"?()=>{try{_.current!==null&&clearTimeout(_.current),_.current=setTimeout(()=>{try{const X=document.querySelectorAll(".order-list .order-list__item");X&&X[$]&&(X[$].classList.remove("drag-over"),S.current===X[$]&&(S.current=null))}catch{}},80)}catch{}}:void 0,onDrop:f==="active"?X=>te($,X):void 0,onDragEnd:f==="active"?V:void 0,children:[o.jsx("span",{className:"order-list__item-text body-2",children:M.text}),f==="active"?o.jsxs("span",{className:"order-list__item-buttons",children:[o.jsx(se,{size:32,type:"dot",onClick:()=>b($,-1),ariaLabel:c("training.up"),icon:"chevron-up",variant:"transparent-gray",width:48,useFaded:"true",disabled:$===0,useBorder:!1,useDisabledInvisible:!0}),o.jsx(se,{size:32,type:"dot",onClick:()=>b($,1),ariaLabel:c("training.down"),icon:"chevron-down",variant:"transparent-gray",width:48,useFaded:"true",disabled:$===h.length-1,useBorder:!1,useDisabledInvisible:!0})]}):null]})]})},M.id)})})})}var r7="";J(r7);const n7=8e3;function i7(e,t){return new Promise(a=>{let r=!1;const n=()=>{r||(r=!0,a())};e.then(n,n),setTimeout(n,t)})}function vc({index:e,stepIndex:t,isLast:a=!1,title:r,onDone:n,onChange:i,context:s=[],selectable:c=!1,hideLabel:u=!1,hideAudio:d=!1,maxCards:p}){const{t:m}=ge.useTranslation(),h=r??m("training.cardInstructions","\uB0B1\uB9D0 \uCE74\uB4DC\uB97C \uBCF4\uACE0 \uC18C\uB9AC\uB97C \uB4E3\uACE0 \uD655\uC778\uD558\uC138\uC694."),g=l.useMemo(()=>Array.isArray(s)?s:s&&s.items||[],[s]),f=p??3,b=(g||[]).slice(0,f);(g||[]).length>f&&console.warn(`TrainingStepCard: ${g.length} items passed but only ${f} shown`);const y=typeof e=="number"?e:-1,v=typeof t!="number"?"disabled":y<t?"done":y===t?"active":"disabled",[C,w]=l.useState(null),x=l.useRef([]),[S,_]=l.useState(!1),k=l.useMemo(()=>g.map(H=>H?.id??H?.word??"").join("|"),[g]);l.useEffect(()=>{w(null),x.current=[]},[k]);const N=l.useCallback((H,P)=>{if(c)return;const T={item:H,index:P,__ts:Date.now()};try{typeof i=="function"&&i(T)}catch{}if(v==="active"&&typeof n=="function")try{n(T)}catch{}},[c,i,v,n]),A=l.useCallback(async()=>{if(!(S||v==="disabled")){_(!0);try{for(const H of x.current)H&&await i7(H.play(),n7)}finally{_(!1)}}},[S,v]),D=l.useCallback((H,P)=>{if(v!=="active")return;w(P);const T={selectedValue:H.word||H.title||"",selectedIndex:P,item:H,__ts:Date.now()};try{typeof i=="function"&&i(T)}catch{}if(v==="active"&&typeof n=="function")try{n(T)}catch{}},[i,v,n]);return o.jsx(Va,{index:e,stepIndex:t,isLast:a,title:h,onDone:n,titleProps:{usePlayAllBtn:!d&&b.length>0,onPlayAll:A,playAllActive:S},children:o.jsx("div",{className:"training-step__cards",children:b.length===0?o.jsx("div",{className:"training-step__empty",children:m("training.noCards","\uCE74\uB4DC\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4.")}):b.map((H,P)=>o.jsx(Sn,{ref:T=>{x.current[P]=T},item:H,disabled:v==="disabled",onPlayDone:()=>N(H,P),selectable:c,selected:c&&C===P,onSelect:c?()=>D(H,P):void 0,flipDelay:P*120,hideLabel:u,hideAudio:d},H&&H.id||P))})})}const s7=160;var l7=".ihabdevteam-core-scope .panel{background:var(--color-white);border:1px solid var(--color-whiteLine);border-radius:var(--radius-card);display:flex;flex-direction:column;overflow:visible;padding:0;text-align:left}.ihabdevteam-core-scope .panel--no-border{border:none}.ihabdevteam-core-scope .panel--no-bg{background:transparent;border-radius:0}.ihabdevteam-core-scope .panel--no-border .panel-row{padding-left:0;padding-right:0}.ihabdevteam-core-scope .panel--no-row-border .panel-row+.panel-row{border-top:none}.ihabdevteam-core-scope .panel__header{align-items:center;border-bottom:1px solid var(--color-darkWhite);box-sizing:border-box;display:flex;gap:var(--spacing-xs);justify-content:space-between;margin:0;padding:0 20px}.ihabdevteam-core-scope .panel__header:last-child{border-bottom:none}.ihabdevteam-core-scope .panel--small .panel__header{min-height:48px}.ihabdevteam-core-scope .panel--medium .panel__header{min-height:56px}.ihabdevteam-core-scope .panel--large .panel__header{min-height:64px}.ihabdevteam-core-scope .panel__icon{align-items:center;color:var(--t-item-fg,var(--color-main));display:flex;flex-shrink:0;height:20px;justify-content:center;margin-right:var(--spacing-s);width:20px}.ihabdevteam-core-scope .panel__title-group{display:flex;flex-direction:column;gap:4px;margin-right:auto;min-width:0}.ihabdevteam-core-scope .panel__title{color:var(--color-darkGray);margin:0}.ihabdevteam-core-scope .panel__disc{color:var(--color-gray);margin:0}.ihabdevteam-core-scope .panel__actions{display:flex;flex-shrink:0;gap:6px}.ihabdevteam-core-scope .panel-row{align-items:center;box-sizing:border-box;display:flex;gap:var(--spacing-m);justify-content:space-between;padding:4px 20px}.ihabdevteam-core-scope .panel--small .panel-row{min-height:48px}.ihabdevteam-core-scope .panel--medium .panel-row{min-height:56px}.ihabdevteam-core-scope .panel--large .panel-row{min-height:64px}.ihabdevteam-core-scope .panel-row+.panel-row{border-top:1px solid var(--color-darkWhite)}.ihabdevteam-core-scope .panel--fill .panel-row{border-bottom:1px solid var(--color-darkWhite)}.ihabdevteam-core-scope .panel--fill .panel-row+.panel-row{border-top:none}.ihabdevteam-core-scope .panel--no-row-border .panel-row{border-bottom:none}.ihabdevteam-core-scope .panel>:not(.panel-row)+.panel-row{border-top:none}.ihabdevteam-core-scope .panel-grid{grid-gap:1px;background:var(--color-darkWhite);display:grid;gap:1px;grid-template-columns:repeat(2,1fr);grid-template-columns:repeat(var(--panel-grid-cols,2),1fr);overflow:hidden;padding-bottom:1px}.ihabdevteam-core-scope .panel-grid .panel-row{background:var(--color-white)}.ihabdevteam-core-scope .panel-grid .panel-row+.panel-row{border-top:none}.ihabdevteam-core-scope .panel-row--empty{color:var(--color-lightGray);justify-content:center}.ihabdevteam-core-scope .panel-row--loading{justify-content:center}.ihabdevteam-core-scope .panel__body--scroll{flex:1;min-height:0;overflow-y:auto;overscroll-behavior-y:contain}.ihabdevteam-core-scope .panel-row--content{display:block;min-height:0;padding:16px}.ihabdevteam-core-scope .panel-row--content+.panel-row--content{border-top:none}.ihabdevteam-core-scope .panel-row__icon{align-items:center;display:flex;flex-shrink:0;margin-right:-4px}.ihabdevteam-core-scope .panel-row__left{flex:1;min-width:0}.ihabdevteam-core-scope .panel-row__label{color:var(--color-deepGray)}.ihabdevteam-core-scope .panel-row__sub{color:var(--color-gray);margin-top:2px}.ihabdevteam-core-scope .panel-row__right{align-items:center;display:flex;flex:0 0 auto;justify-content:flex-end}@media (max-width:767px){.ihabdevteam-core-scope .panel-row{flex-wrap:wrap}.ihabdevteam-core-scope .panel-row__right{flex:0 1 auto;min-width:0}}.ihabdevteam-core-scope .panel--form .panel-row{grid-gap:var(--spacing-m);align-items:center;display:grid;gap:var(--spacing-m);grid-template-columns:80px 1fr;grid-template-columns:var(--panel-label-width,80px) 1fr}.ihabdevteam-core-scope .panel--form .panel-row:has(.text-field--full-width){align-items:flex-start}.ihabdevteam-core-scope .panel--form .panel-row:has(.text-field--full-width) .panel-row__left{padding-top:9px}.ihabdevteam-core-scope .panel-row--label-fixed .panel-row__left{flex:0 0 120px;flex:0 0 var(--panel-label-width,120px)}.ihabdevteam-core-scope .panel-row--label-fixed .panel-row__right{flex:1;min-width:0}.ihabdevteam-core-scope .panel-row--clickable{cursor:pointer;transition:background .1s,box-shadow .1s}.ihabdevteam-core-scope .panel-row--clickable:hover{background:var(--color-darkWhite)}.ihabdevteam-core-scope .panel-row__text{color:var(--color-darkGray);overflow-wrap:break-word;text-align:right;word-break:break-word}.ihabdevteam-core-scope .panel-row--text .panel-row__right{flex:1;min-width:0}.ihabdevteam-core-scope .panel-row--block{align-items:stretch;display:flex;flex-direction:column;justify-content:center}.ihabdevteam-core-scope .panel-row__description{color:var(--color-gray);line-height:1.6;margin:0;overflow-wrap:break-word;word-break:break-word}.ihabdevteam-core-scope .panel-row__dropdown-group{display:flex;gap:var(--spacing-s)}.ihabdevteam-core-scope .panel-row__dropdown-group--full,.ihabdevteam-core-scope .panel-row__dropdown-item--full{flex:1;min-width:0}.ihabdevteam-core-scope .panel-row__dropdown-error-wrap{display:flex;flex-direction:column}.ihabdevteam-core-scope .panel-row__dropdown-error-wrap--full{flex:1;min-width:0}.ihabdevteam-core-scope .panel-row__text--full{text-align:left;width:100%}.ihabdevteam-core-scope .panel-row__input-wrap{display:flex;flex-direction:column}.ihabdevteam-core-scope .panel-row__input-wrap--full{flex:1;min-width:0}.ihabdevteam-core-scope .panel-row--vertical{align-items:flex-start;flex-direction:column;gap:8px;gap:var(--spacing-xs,8px)}.ihabdevteam-core-scope .panel-row--vertical .panel-row__left{flex:none;width:100%}.ihabdevteam-core-scope .panel-row--vertical .panel-row__right{align-items:flex-start;flex:none;justify-content:flex-start;width:100%}.ihabdevteam-core-scope .panel-row--vertical .panel-row__text{margin-left:0;text-align:left}.ihabdevteam-core-scope .panel-row--device{grid-gap:0;align-items:stretch;display:grid;gap:0;grid-template-columns:1fr 1fr;min-height:0;padding:0}.ihabdevteam-core-scope .panel-row__device-column{box-sizing:border-box;display:flex;flex-direction:column;gap:0;min-height:164px;padding:14px 16px}.ihabdevteam-core-scope .panel-row__device-column+.panel-row__device-column{border-left:1px solid var(--color-darkWhite)}.ihabdevteam-core-scope .panel-row__device-head{align-items:center;display:flex;gap:8px;justify-content:space-between;margin-bottom:8px;min-height:32px}.ihabdevteam-core-scope .panel-row__device-side{color:var(--color-darkGray);margin:0;text-align:left}.ihabdevteam-core-scope .panel-row__device-info{margin:0;text-align:left}.ihabdevteam-core-scope .panel-row__device-info,.ihabdevteam-core-scope .panel-row__device-kind{align-items:flex-start;display:flex;flex-direction:column;gap:3px}.ihabdevteam-core-scope .panel-row__device-name{color:var(--color-darkGray)}.ihabdevteam-core-scope .panel-row__device-detail{color:var(--color-gray)}.ihabdevteam-core-scope .panel-row__device-date{color:var(--color-lightGray);margin-top:2px}.ihabdevteam-core-scope .panel-row__device-empty{align-items:center;color:var(--color-lightGray);display:flex;flex:1;justify-content:center;text-align:center}.ihabdevteam-core-scope .required-mark{color:var(--color-main);margin-left:2px}.ihabdevteam-core-scope .panel-row__error{color:var(--color-error);margin-top:4px}.ihabdevteam-core-scope .panel-row__helper{color:var(--color-lightGray);margin-top:4px}.ihabdevteam-core-scope .panel-row__button-group{display:flex;gap:6px}@media (max-width:767px){.ihabdevteam-core-scope .panel-row__dropdown-group{flex-wrap:wrap}.ihabdevteam-core-scope .panel-row__dropdown-error-wrap--full,.ihabdevteam-core-scope .panel-row__dropdown-item--full{flex:1 1 104px}}";J(l7);const Tb=()=>{};function Na(e){const t=l.useId();if(!("variant"in e)){const{label:b,sub:y,onClick:v,children:C,align:w="horizontal",icon:x}=e,S=_=>{v&&_.target===_.currentTarget&&(_.key==="Enter"||_.key===" ")&&(_.preventDefault(),v())};return o.jsxs("div",{className:xe("panel-row",w==="vertical"?"panel-row--vertical":"",v?"panel-row--clickable":""),onClick:v,onKeyDown:v?S:void 0,role:v?"button":void 0,tabIndex:v?0:void 0,children:[x!=null&&o.jsx("div",{className:"panel-row__icon",children:x}),b!=null&&o.jsxs("div",{className:"panel-row__left",children:[o.jsx("div",{className:"panel-row__label body-3",children:b}),y&&o.jsx("div",{className:"panel-row__sub caption-1",children:y})]}),o.jsx("div",{className:"panel-row__right",children:C})]})}if(e.variant==="description")return o.jsx("div",{className:"panel-row panel-row--block",children:o.jsx("p",{className:"panel-row__description body-3",children:e.children})});if(e.variant==="empty")return o.jsx("div",{className:"panel-row panel-row--empty body-3",children:e.children});if(e.variant==="loading")return o.jsx("div",{className:"panel-row panel-row--loading",children:o.jsx(Ao,{size:28})});if(e.variant==="custom"&&!e.label)return o.jsx("div",{className:"panel-row panel-row--block",children:e.children});const{variant:a,label:r,sub:n,onClick:i,required:s,error:c,align:u="horizontal",useFullWidth:d=!1,icon:p}=e;let m=null;const h=a==="toggle"?`panel-toggle-${t}`:void 0;if(a==="toggle"){const b=e;m=o.jsx(Fl,{checked:b.checked,onChange:b.onChange,id:h})}else if(a==="segmented"){const b=e;m=o.jsx(Ha,{options:b.options,value:b.value,onChange:b.onChange,size:b.size??40,ariaLabel:r})}else if(a==="dropdown"){const b=e,y=b.dropdowns?.length?o.jsx("div",{className:`panel-row__dropdown-group${d?" panel-row__dropdown-group--full":""}`,children:b.dropdowns.map((v,C)=>o.jsx("div",{className:d?"panel-row__dropdown-item--full":void 0,children:o.jsx(Ut,{options:v.options,value:v.value,onChange:v.onChange,placeholder:v.placeholder,block:d,error:!!c,ariaLabel:v.ariaLabel??([r,v.placeholder].filter(Boolean).join(" ")||void 0)})},C))}):o.jsx(Ut,{options:b.options??[],value:b.value??"",onChange:b.onChange??Tb,block:d,error:!!c,ariaLabel:r});m=c?o.jsxs("div",{className:`panel-row__dropdown-error-wrap${d?" panel-row__dropdown-error-wrap--full":""}`,children:[y,o.jsx("span",{className:"caption-1 panel-row__error",role:"alert",children:c})]}):y}else if(a==="button"){const b=e;b.buttons?.length?m=o.jsx("div",{className:"panel-row__button-group",children:b.buttons.map((y,v)=>o.jsx(se,{size:y.btnSize??40,variant:y.btnVariant??"default",disabled:y.disabled,onClick:y.onClick,children:y.label},v))}):m=o.jsx(se,{size:b.btnSize??40,variant:b.btnVariant??"default",disabled:b.disabled,onClick:b.onClick,children:b.buttonLabel})}else if(a==="text"){const b=e;m=o.jsx("span",{className:`panel-row__text body-2${d?" panel-row__text--full":""}`,style:b.valueColor?{color:b.valueColor}:void 0,children:b.value})}else if(a==="input"){const b=e;m=o.jsxs("div",{className:`panel-row__input-wrap${d?" panel-row__input-wrap--full":""}`,children:[o.jsx(Wa,{value:b.value,onChange:b.onChange??Tb,onKeyDown:b.onKeyDown,onEnter:b.onEnter,placeholder:b.placeholder,inputMode:b.inputMode,readOnly:b.readOnly,disabled:b.disabled,type:b.type,autoComplete:b.autoComplete,maxLength:b.maxLength,showCount:b.showCount,multiline:b.multiline,rows:b.rows,fullWidth:d,error:c,ariaLabel:r,required:s}),b.helperText&&o.jsx("div",{className:"panel-row__helper caption-1",children:b.helperText})]})}else a==="custom"&&(m=e.children);const g=a==="input"||a==="dropdown"||(a==="text"||a==="custom")&&d,f=b=>{i&&b.target===b.currentTarget&&(b.key==="Enter"||b.key===" ")&&(b.preventDefault(),i())};return o.jsxs("div",{className:xe("panel-row",u==="vertical"?"panel-row--vertical":"",g?"panel-row--label-fixed":"",a==="text"?"panel-row--text":"",i?"panel-row--clickable":""),onClick:i,onKeyDown:i?f:void 0,role:i?"button":void 0,tabIndex:i?0:void 0,children:[p!=null&&o.jsx("div",{className:"panel-row__icon",children:p}),o.jsxs("div",{className:"panel-row__left",children:[h?o.jsxs("label",{htmlFor:h,className:"panel-row__label body-3",children:[r,s&&o.jsx("span",{className:"required-mark",children:"*"})]}):o.jsxs("div",{className:"panel-row__label body-3",children:[r,s&&o.jsx("span",{className:"required-mark",children:"*"})]}),n&&o.jsx("div",{className:"panel-row__sub caption-1",children:n})]}),o.jsx("div",{className:"panel-row__right",children:m})]})}function Bb(e){const t=e.productName||e.brand,a=[e.brand,e.fitType].filter(r=>!!r&&r!==t);return[...new Set(a)].join(" \xB7 ")}function Nb({devices:e,onRelease:t}){const{t:a}=ge.useTranslation();return o.jsx("div",{className:"panel-row panel-row--device",children:["\uC88C","\uC6B0"].map(r=>{const n=e[r],i=r==="\uC88C"?a("device.direction.left","\uC88C"):a("device.direction.right","\uC6B0");return o.jsxs("div",{className:"panel-row__device-column",children:[o.jsxs("div",{className:"panel-row__device-head",children:[o.jsx("span",{className:"panel-row__device-side body-2b",children:i}),n&&t&&o.jsx(se,{size:32,type:"dot",icon:"x",ariaLabel:a("customers.device.unwear","\uCC29\uC6A9 \uD574\uC81C"),showTooltipInfo:a("customers.device.unwear","\uCC29\uC6A9 \uD574\uC81C"),onClick:()=>t(r)})]}),n?o.jsxs("div",{className:"panel-row__device-info",children:[o.jsxs("span",{className:"panel-row__device-kind",children:[n.device&&o.jsx(ht,{size:"small",variant:ym(n.device),fill:"soft",label:n.device}),Bb(n)&&o.jsx("span",{className:"panel-row__device-detail body-3",children:Bb(n)})]}),o.jsx("span",{className:"panel-row__device-name body-2b",children:n.productName||n.brand}),o.jsx("span",{className:"panel-row__device-date caption-1",children:a("customers.device.wornSince",{date:`${n.wornYear}.${n.wornMonth}.${n.wornDay}`})})]}):o.jsx("span",{className:"panel-row__device-empty body-3",children:a("customers.device.notRegistered","\uBBF8\uB4F1\uB85D")})]},r)})})}function kr({title:e,icon:t,disc:a,actions:r,size:n="medium",minHeight:i,maxWidth:s,className:c,scrollable:u,useBorder:d=!0,useBg:p=!0,useRowBorder:m=!0,labelWidth:h,form:g=!1,loading:f,empty:b,children:y}){const v=xe("panel",`panel--${n}`,g?"panel--form":"",i!==void 0?"panel--fill":"",d?"":"panel--no-border",p?"":"panel--no-bg",m?"":"panel--no-row-border",c),C={};return i!==void 0&&(C.minHeight=i),s!==void 0&&(C.maxWidth=typeof s=="number"?`${s}px`:s),h!==void 0&&(C["--panel-label-width"]=typeof h=="number"?`${h}px`:h),o.jsxs("div",{className:v,style:Object.keys(C).length?C:void 0,children:[(e!=null||a!=null)&&o.jsxs("div",{className:xe("panel__header",a!=null?"panel__header--with-disc":""),children:[t&&o.jsx(Ie,{icon:t,label:typeof e=="string"?e:void 0,className:"panel__icon"}),o.jsxs("div",{className:"panel__title-group",children:[e!=null&&o.jsx("h2",{className:`panel__title ${a!=null?"body-3b":"h5b"}`,children:e}),a!=null&&o.jsx("p",{className:"panel__disc caption-1",children:a})]}),r&&o.jsx("div",{className:"panel__actions",children:r})]}),f?o.jsx(Na,{variant:"loading"}):b!=null&&(y==null||Array.isArray(y)&&y.length===0)?o.jsx(Na,{variant:"empty",children:b}):u?o.jsx("div",{className:"panel__body--scroll",children:y}):y]})}function Db({cols:e=2,children:t}){return o.jsx("div",{className:"panel-grid",style:{"--panel-grid-cols":e},children:t})}function c7(e){return[{label:e("training.noise.level.none","\uC5C6\uC74C"),value:0},{label:e("training.noise.level.weak","\uC57D\uD568"),value:1},{label:e("training.noise.level.medium","\uBCF4\uD1B5"),value:2},{label:e("training.noise.level.strong","\uAC15\uD568"),value:3},{label:e("training.noise.level.veryStrong","\uB9E4\uC6B0 \uAC15\uD568"),value:4}]}function Eb(e){return[{label:e("training.noise.type.default","\uAE30\uBCF8"),value:"defaultNoise",icon:"party-popper"},{label:e("training.noise.type.street","\uAE38\uAC70\uB9AC"),value:"street",icon:"car"},{label:e("training.noise.type.buzz","\uC640\uAE00\uC640\uAE00"),value:"buzz",icon:"message-square-more"},{label:e("training.noise.type.restaurant","\uC2DD\uB2F9"),value:"restaurant",icon:"coffee"}]}c7(Ca.t.bind(Ca)),Eb(Ca.t.bind(Ca));var d7='.ihabdevteam-core-scope .noise-settings{border-radius:var(--radius-m);box-sizing:border-box;max-width:calc(100vw - 40px);padding:20px}.ihabdevteam-core-scope .tooltip-content:has(.noise-settings__header) .tooltip-content__header{border-bottom:1px solid var(--color-darkWhite);height:60px;padding:0 20px}.ihabdevteam-core-scope .noise-settings__header{align-items:center;display:flex;justify-content:space-between;width:100%}.ihabdevteam-core-scope .noise-settings__header span{color:var(--color-darkGray);font-weight:600}.ihabdevteam-core-scope .noise-settings__slider-input.slider--horizontal{flex:1 1 auto}.ihabdevteam-core-scope .noise-settings__value{font-feature-settings:"tnum";color:var(--color-main);flex:0 0 auto;font-variant-numeric:tabular-nums;text-align:right;white-space:nowrap;width:44px}';J(d7);const yc="none",u7=.5,p7=1.5,h7=.25;function xc({title:e,valueLabel:t,value:a,min:r,max:n,step:i,tickStep:s,size:c,onChange:u}){return o.jsxs(Na,{variant:"custom",label:e,useFullWidth:!0,children:[o.jsx(ql,{value:a,onChange:u,min:r,max:n,step:i,size:c,showBgTick:!0,tickStep:s,ariaLabel:e,className:"noise-settings__slider-input"}),o.jsx("div",{className:"noise-settings__value button-1",children:t})]})}function Cc({anchorRect:e,onClose:t}){const{t:a}=ge.useTranslation(),r=oa("(max-width: 767px)")?40:24,n=uc(),i=n?.settings.level??0,s=n?.settings.type??"defaultNoise",c=n?.settings.enabled??!0,u=Ek(i),d=n?.playbackRate??1,p=n?.mainVolume??1,m=Math.round(p*100),h=l.useCallback(y=>{try{n?.setMainVolume(Math.max(0,Math.min(1,y/100)))}catch{}},[n]),g=l.useCallback(y=>{try{n?.setPlaybackRate(y)}catch{}},[n]),f=l.useCallback(y=>{const v=jk(y);try{n?.setSettings({level:v})}catch{}},[n]),b=l.useCallback(y=>{try{y===yc?n?.setSettings({enabled:!1}):n?.setSettings({type:y,enabled:!0})}catch{}},[n]);return o.jsx(Sa,{anchorRect:e,offset:12,onClose:t,ariaLabel:a("training.trainingSettingsTitle","\uD6C8\uB828 \uC124\uC815"),isMobilePopup:!1,closeOnOutsideClick:!1,header:o.jsxs("div",{className:"noise-settings__header",children:[o.jsx("span",{children:a("training.trainingSettingsTitle","\uD6C8\uB828 \uC124\uC815")}),o.jsx(se,{size:40,type:"dot",icon:"x",variant:"transparent-gray",useBorder:!1,ariaLabel:a("common.close","\uB2EB\uAE30"),onClick:t})]}),children:o.jsxs(kr,{className:"noise-settings",useBorder:!1,labelWidth:72,children:[o.jsx(xc,{title:a("training.playVolumeTitle","\uC7AC\uC0DD \uC18C\uB9AC"),valueLabel:`${m}%`,value:m,min:0,max:100,step:10,size:r,onChange:h}),o.jsx(xc,{title:a("training.playSpeedTitle","\uC7AC\uC0DD \uC18D\uB3C4"),valueLabel:`${d.toFixed(2)}x`,value:d,min:u7,max:p7,step:h7,size:r,onChange:g}),o.jsx(xc,{title:a("training.noiseLevelTitle","\uC18C\uC74C \uD06C\uAE30"),valueLabel:`${u}%`,value:u,min:0,max:100,step:10,size:r,onChange:f}),o.jsx(Na,{variant:"custom",label:a("training.noiseTypeTitle","\uC18C\uC74C \uC885\uB958"),useFullWidth:!0,children:o.jsx(Ha,{ariaLabel:a("training.noiseTypeTitle","\uC18C\uC74C \uC885\uB958"),size:40,shape:"rounded",options:[{key:yc,label:a("training.noise.type.none","\uC5C6\uC74C")},...Eb(a).map(y=>({key:y.value,label:y.label}))],value:c?s:yc,onChange:b})})]})})}var m7=".ihabdevteam-core-scope .training-page-bottom{box-sizing:border-box;width:100%}.ihabdevteam-core-scope .pp-bottom{align-items:center;background:var(--color-deepWhite);border-top:1px solid var(--color-whiteLine);box-sizing:border-box;display:flex;flex:0 0 auto;gap:var(--spacing-s);justify-content:space-between;padding:12px 18px calc(12px + env(safe-area-inset-bottom));width:100%;z-index:5}.ihabdevteam-core-scope .pp-bottom__left{align-items:center;display:flex;gap:var(--spacing-m)}.ihabdevteam-core-scope .pp-bottom__right{align-items:center;display:flex;gap:8px}.ihabdevteam-core-scope .pp-bottom__meters{border:1px solid var(--color-whiteLine);border-radius:14px;display:flex;flex-direction:column;gap:2px;justify-content:center;padding:8px 12px}.ihabdevteam-core-scope .pp-bottom__meter{align-items:center;display:flex;flex-direction:row;gap:var(--spacing-xs)}.ihabdevteam-core-scope .pp-bottom__meter-label{color:var(--color-gray);min-width:28px}.ihabdevteam-core-scope .pp-bottom__settings--desktop{display:none}.ihabdevteam-core-scope .pp-bottom__settings--mobile{display:flex}@media (min-width:768px){.ihabdevteam-core-scope .pp-bottom__settings--desktop{display:block}.ihabdevteam-core-scope .pp-bottom__settings--mobile{display:none}}.ihabdevteam-core-scope .pp-bottom__tooltip-trigger{display:inline-block}";J(m7);function _c({useNoiseSettingBtn:e=!1,onSettings:t,onNext:a,onResult:r,stepIndex:n=0,stepCount:i=0,pageIndex:s=0,pageCount:c=1}){const{t:u}=ge.useTranslation(),[d,p]=l.useState(!1),[m,h]=l.useState(null),[g,f]=l.useState(!1),b=l.useRef(null),y=l.useRef(null),v=uc(),C=s<c-1,w=s===c-1,x=n===Math.max(0,i);l.useEffect(()=>{e||(p(!1),h(null))},[e]);const S=l.useCallback(()=>{p(!1),h(null)},[]),_=l.useCallback(()=>{if(d){p(!1),h(null);return}const A=b?.current?.getBoundingClientRect();A&&h(A),t?.(),p(!0)},[d,t]),k=l.useCallback(()=>{if(d){p(!1),h(null);return}const A=y?.current?.getBoundingClientRect();A&&h(A),t?.(),p(!0)},[d,t]),N=l.useCallback(()=>f(A=>!A),[]);return o.jsxs("div",{className:"pp-bottom",children:[o.jsxs("div",{className:"pp-bottom__left",children:[e?o.jsxs(o.Fragment,{children:[o.jsx("div",{className:"pp-bottom__settings--desktop",children:o.jsx("div",{ref:b,className:"pp-bottom__tooltip-trigger","data-tooltip-ignore":!0,children:o.jsx(se,{size:56,type:"bar",icon:"settings",onClick:_,selected:d,ariaLabel:u("training.trainingSettingsTitle","\uD6C8\uB828 \uC124\uC815"),label:u("training.trainingSettingsTitle","\uD6C8\uB828 \uC124\uC815"),minWidth:140})})}),o.jsx("div",{className:"pp-bottom__settings--mobile",children:o.jsx("div",{ref:y,className:"pp-bottom__tooltip-trigger","data-tooltip-ignore":!0,children:o.jsx(se,{size:56,type:"dot",icon:"settings",onClick:k,selected:d,ariaLabel:u("training.settings","\uC124\uC815"),minWidth:52})})})]}):null,e&&o.jsx(se,{size:40,type:"dot",shape:"pill",icon:"audio-lines",onClick:N,selected:g,ariaLabel:u("training.meter.toggle","\uC624\uB514\uC624 \uBBF8\uD130 \uD45C\uC2DC")}),e&&g&&o.jsxs("div",{className:"pp-bottom__meters",children:[o.jsxs("div",{className:"pp-bottom__meter",children:[o.jsx("span",{className:"pp-bottom__meter-label caption-1",children:u("training.meter.sentence","\uC7AC\uC0DD")}),o.jsx(Cn,{analyser:v?.mainAnalyser??null,orientation:"horizontal",length:112,label:"db",labelPos:"left",ariaLabel:u("training.meter.sentence","\uC7AC\uC0DD")})]}),o.jsxs("div",{className:"pp-bottom__meter",children:[o.jsx("span",{className:"pp-bottom__meter-label caption-1",children:u("training.meter.noise","\uC18C\uC74C")}),o.jsx(Cn,{analyser:v?.noiseAnalyser??null,orientation:"horizontal",length:112,label:"db",labelPos:"left",ariaLabel:u("training.meter.noise","\uC18C\uC74C")})]})]})]}),o.jsxs("div",{className:"pp-bottom__right",children:[w&&o.jsx(se,{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:!x}),C&&o.jsx(se,{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:!x})]}),e&&d&&o.jsx(Cc,{anchorRect:m,onClose:S})]})}var b7=".ihabdevteam-core-scope .training-page-top{box-sizing:border-box;width:100%}.ihabdevteam-core-scope .pp-title.training-popup-title{align-items:center;background:var(--color-deepWhite);border-bottom:1px solid var(--color-whiteLine);box-sizing:border-box;display:flex;gap:var(--spacing-s);justify-content:space-between;padding:12px 16px;position:relative;width:100%;z-index:6}.ihabdevteam-core-scope .pp-title__left{align-items:center;display:flex;gap:var(--spacing-s);min-width:0}.ihabdevteam-core-scope .pp-title__text{display:flex;flex-direction:column;min-width:0}.ihabdevteam-core-scope .pp-title__depth{color:var(--color-gray)}.ihabdevteam-core-scope .pp-title__title{font-weight:700;margin:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ihabdevteam-core-scope .pp-title__title--empty{color:var(--color-whiteLine)}.ihabdevteam-core-scope .pp-title__description{color:var(--color-gray);margin-top:1px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}@media (max-width:767px){.ihabdevteam-core-scope .pp-title.training-popup-title{gap:var(--spacing-xs);padding:10px 12px}.ihabdevteam-core-scope .pp-title__depth{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ihabdevteam-core-scope .pp-title__left{flex:1;min-width:0;overflow:hidden}}";J(b7);function wc({title:e,subtitle:t,desc:a,depth:r,icon:n,wrapperStyle:i,iconTooltip:s,pageIndex:c,pageCount:u,progressMax:d,progressIndex:p,onBack:m,onClose:h}){const{t:g}=ge.useTranslation(),f=oa("(max-width: 767px)"),b=Number.isInteger(p)?p:c||0,y=Number.isInteger(d)?d:u||0,v=m||h,C=Array.isArray(r)?f?r[r.length-1]:r.join(" / "):r,w=typeof e=="string"?e.trim():e,x=typeof t=="string"?t.trim():t,S=!!(w||x),_=S?w||x:g("common.emptyTrainingName","\uD6C8\uB828 \uC774\uB984\uC774 \uBE44\uC5B4 \uC788\uC2B5\uB2C8\uB2E4."),k=C||t,N=f&&typeof k=="string"&&(k.includes(" \xB7 ")||k.includes(" / "))?k.split(/\s[·/]\s/).pop():k,A=l.useMemo(()=>{const D=i&&typeof i=="object"?{...i}:{};return!("width"in D)&&!("height"in D)&&(D.width="40px",D.height="40px"),D},[i]);return o.jsxs("header",{className:"pp-title training-popup-title",children:[o.jsxs("div",{className:"pp-title__left",children:[v?o.jsx(se,{size:48,type:"dot",icon:"chevron-left",ariaLabel:g("common.back","\uB4A4\uB85C"),onClick:v,useBorder:!1,iconSize:"large",iconColor:"--color-black",variant:"transparent-gray"}):null,o.jsx("div",{children:n?o.jsx(km,{icon:n,label:e,tooltip:s,wrapperStyle:A}):null}),o.jsxs("div",{className:"pp-title__text",children:[N?o.jsx("span",{className:"pp-title__depth caption-1",children:N}):null,o.jsx("span",{className:`pp-title__title h2${S?"":" pp-title__title--empty"}`,children:_}),a?o.jsx("span",{className:"pp-title__description caption-1",children:a}):null]})]}),o.jsx(Zl,{max:Math.max(0,y??0),index:Math.max(0,b??0)})]})}function jb(){typeof window<"u"&&window.dispatchEvent(new CustomEvent("speechear.popup.close"))}function Lb(e){return!e&&e!==0?[]:Array.isArray(e)?e.flatMap(t=>typeof t=="string"?t.split("|").map(a=>a.trim()).filter(Boolean):t||t===0?[String(t)]:[]):typeof e=="string"?e.split("|").map(t=>t.trim()).filter(Boolean):[String(e)]}function kc(e,t,a){const r=e,n=r?.title||r?.name||(Array.isArray(t)?t[t.length-1]:void 0)||a||"\uD6C8\uB828",i=Qr().find(c=>c.key===(r?.category_0||r?.category_main_code)),s=i?.subs?.find(c=>c.key===(r?.category_1||r?.category_sub_code));return{title:n,label:r?.title||n,depth:t,icon:i?.icon,wrapperStyle:i?.color?{"--t-item-fg":i.color}:void 0,iconTooltip:[i?.label,s?.label].filter(Boolean).join(" / ")||void 0}}function Rn(e){return e&&typeof e=="object"&&typeof e.__ts=="number"?e.__ts:0}function Mb(e){const t=e;return Array.isArray(t?.items)?t.items:Array.isArray(e)?e:e?[e]:[]}function Pb({idPrefix:e,trainingData:t,depth:a,fallbackTitle:r="\uD6C8\uB828",pages:n=[],emptyMessage:i,buildResults:s,metaPatch:c}){const u=kc(t,a,r),d=typeof c=="function"?c(u)||{}:c||{},p=t?.id||t?.title||n.length;return{id:`${e}:${p}`,meta:{...u,...d},pages:n,emptyMessage:i,buildResults:s}}function Rb(e){if(typeof e=="string")return e;if(e&&typeof e=="object"){const t=e;return t.context||t.sentence||t.question||""||""}return""}function $b(e){if(e&&typeof e=="object"){const t=e;if(Array.isArray(t.selectedValues))return t.selectedValues;if(t.selectedValue!==void 0)return t.selectedValue;if(t.selectedIndex!==void 0)return t.selectedIndex;if(t.value!==void 0)return t.value}return e}function Ib(e,t=[]){if(Array.isArray(e))return e.join(", ");if(typeof e=="number"&&Array.isArray(t))return String(t[e]??"");if(typeof e=="string")return e}function Sc(e,t){if(!(!e||typeof e!="object"))return e[`step-${t}`]}function zb(e,t,a,r){return Sc(e,t*a+r)}function Ob({payload:e,selected:t,choices:a=[],correctAnswers:r=[]}){if(e&&typeof e=="object"){const n=e;if(Array.isArray(n.selectedValues))return r.every(i=>n.selectedValues.includes(i))&&n.selectedValues.every(i=>r.includes(i));if(typeof n.correct=="boolean")return n.correct}if(r.length){if(typeof t=="number"&&Array.isArray(a)&&a.length)return r.some(n=>String(n)===String(a[t]));if(typeof t<"u")return r.some(n=>String(n)===String(t))}}function Fb(e){return e?Array.isArray(e.items)?e.items.map(t=>{const a=t;return typeof t=="string"?{sentence:t}:{sentence:a.context||a.sentence||"",contextCode:a.contextCode||a.context_code}}):Array.isArray(e.sentences)?e.sentences.map(t=>{const a=t;return typeof t=="string"?{sentence:t}:{sentence:a.sentence||a.context||"",contextCode:a.contextCode}}):Array.isArray(e.contexts)?e.contexts:e.contextCode?[{contextCode:e.contextCode}]:[]:[]}const Wb=l.createContext(null);function g7(){const e=l.useContext(Wb);if(!e)throw new Error("useTrainingPagePopupContext must be used inside TrainingPagePopup");return e}function f7({index:e,stepIndex:t,isLast:a=!1,title:r="\uB4E4\uC740 \uC21C\uC11C\uB300\uB85C \uCE74\uB4DC\uB97C \uC120\uD0DD\uD558\uC138\uC694.",choices:n=[],onDone:i,onChange:s}){const c=typeof e=="number"?e:-1,u=typeof t!="number"?"disabled":c<t?"done":c===t?"active":"disabled",[d,p]=l.useState(()=>n.map(()=>null)),m=n.join("|");l.useEffect(()=>{p(m?m.split("|").map(()=>null):[])},[m]);const h=l.useMemo(()=>d.filter(f=>f!==null).length+1,[d]),g=l.useCallback(f=>{u==="active"&&p(b=>{const y=[...b];if(y[f]!==null){const C=y[f];return y.map(w=>w!==null&&w>=C?null:w)}y[f]=h;const v={selectedOrder:y,words:n,__ts:Date.now()};try{typeof s=="function"&&s(v)}catch{}if(y.every(C=>C!==null))try{typeof i=="function"&&i(v)}catch{}return y})},[u,h,s,i,n]);return o.jsx(Va,{index:e,stepIndex:t,isLast:a,title:r,onDone:i,children:o.jsx("div",{className:"training-step__cards",children:n.map((f,b)=>o.jsx(Sn,{item:{word:f},disabled:u==="disabled",selectable:!0,selected:d[b]!==null,orderRank:d[b],onSelect:()=>g(b),flipDelay:b*120,hideLabel:!1,hideAudio:!0},`${f}-${b}`))})})}function Sr(e){return null}Sr.__isTrainingPage=!0;function Do(e,t){const a=g7();return{ctx:a,index:e,stepIndex:a.currentStepIndex,isLast:typeof e=="number"&&typeof t=="number"?e===t-1:!1,onDone:r=>a.handleStepDone(r,e),onChange:r=>a.handleStepChange(r,e)}}function Ac({_stepIndex:e,_totalSteps:t,...a}){const{index:r,stepIndex:n,isLast:i,onDone:s}=Do(e,t);return o.jsx(Mn,{...a,index:r,stepIndex:n,isLast:i,onDone:s})}function Tc({_stepIndex:e,_totalSteps:t,...a}){const{index:r,stepIndex:n,isLast:i,onDone:s,onChange:c}=Do(e,t);return o.jsx(jn,{...a,index:r,stepIndex:n,isLast:i,onDone:s,onChange:c})}function Bc({_stepIndex:e,_totalSteps:t,...a}){const{index:r,stepIndex:n,isLast:i,onDone:s,onChange:c}=Do(e,t);return o.jsx(Ln,{...a,index:r,stepIndex:n,isLast:i,onDone:s,onChange:c})}function Nc({_stepIndex:e,_totalSteps:t,...a}){const{index:r,stepIndex:n,isLast:i,onDone:s,onChange:c}=Do(e,t);return o.jsx(Pn,{...a,index:r,stepIndex:n,isLast:i,onDone:s,onChange:c})}function Dc({_stepIndex:e,_totalSteps:t,...a}){const{index:r,stepIndex:n,isLast:i,onDone:s,onChange:c}=Do(e,t);return o.jsx(vc,{...a,index:r,stepIndex:n,isLast:i,onDone:s,onChange:c})}function v7({_stepIndex:e,_totalSteps:t,...a}){const{index:r,stepIndex:n,isLast:i,onDone:s,onChange:c}=Do(e,t);return o.jsx(f7,{...a,index:r,stepIndex:n,isLast:i,onDone:s,onChange:c})}var y7=`.ihabdevteam-core-scope .trp-result{display:flex;flex:1;flex-direction:column;min-height:0;padding:0;position:relative}.ihabdevteam-core-scope .popup--training-result .popup-header{padding:var(--spacing-l) var(--spacing-l) 0;position:absolute;right:0;top:0;z-index:1}.ihabdevteam-core-scope .trp-result__head{padding:12px 72px 20px;position:relative;text-align:center}.ihabdevteam-core-scope .trp-result__eyebrow{align-items:center;color:var(--color-main);display:inline-flex;gap:var(--spacing-xs);letter-spacing:.22em;margin:0 0 14px;text-transform:uppercase}.ihabdevteam-core-scope .trp-result__eyebrow:after,.ihabdevteam-core-scope .trp-result__eyebrow:before{background:currentColor;content:"";height:1px;opacity:.35;width:24px}.ihabdevteam-core-scope .trp-result__title{color:var(--color-black);font-size:28px;margin:0}.ihabdevteam-core-scope .trp-result__subtitle{color:var(--color-gray);margin:10px 0 0}.ihabdevteam-core-scope .trp-score{align-items:center;display:flex;flex-direction:column;gap:var(--spacing-m);margin:36px auto 8px}.ihabdevteam-core-scope .trp-score__figure{font-feature-settings:"tnum";align-items:baseline;display:flex;font-variant-numeric:tabular-nums;gap:var(--spacing-s)}.ihabdevteam-core-scope .trp-score__sep,.ihabdevteam-core-scope .trp-score__total{align-self:flex-end;color:var(--color-lightGray);font-size:44px;letter-spacing:-1px;padding-bottom:18px}.ihabdevteam-core-scope .trp-score__big{background:var(--color-main);-webkit-background-clip:text;background-clip:text;color:transparent;font-size:112px;letter-spacing:-5px;line-height:.92}.ihabdevteam-core-scope .trp-result__body{padding:16px 0 0}.ihabdevteam-core-scope .result-table{width:100%}.ihabdevteam-core-scope .result-table__head{grid-gap:var(--spacing-m);border-bottom:1px solid var(--color-whiteLine);color:var(--color-lightGray);display:grid;gap:var(--spacing-m);grid-template-columns:1fr 100px;letter-spacing:.16em;padding:12px 4px 14px;text-transform:uppercase}.ihabdevteam-core-scope .result-table--answer .result-table__head,.ihabdevteam-core-scope .result-table--answer .result-table__row{grid-template-columns:1fr 200px 100px}.ihabdevteam-core-scope .result-table__head .col-right{text-align:center}.ihabdevteam-core-scope .result-table__row{grid-gap:var(--spacing-m);align-items:center;border-bottom:1px solid var(--color-whiteLine);display:grid;gap:var(--spacing-m);grid-template-columns:1fr 100px;padding:22px 4px;transition:background .18s ease}.ihabdevteam-core-scope .result-table__row:hover{background:var(--color-deepWhite)}.ihabdevteam-core-scope .result-table__row:last-child{border-bottom:0}.ihabdevteam-core-scope .trp-row__problem{align-items:baseline;display:flex;gap:10px}.ihabdevteam-core-scope .trp-row__no{font-feature-settings:"tnum";color:var(--color-lightGray);flex-shrink:0;font-variant-numeric:tabular-nums;width:32px}.ihabdevteam-core-scope .trp-row__q{color:var(--color-black);letter-spacing:-.1px}.ihabdevteam-core-scope .trp-row__judge{align-self:center;display:flex;justify-content:center}.ihabdevteam-core-scope .trp-row__answers{align-self:center;display:flex;flex-direction:column;gap:var(--spacing-xs)}.ihabdevteam-core-scope .trp-row__answer-line{align-items:baseline;display:flex;gap:10px}.ihabdevteam-core-scope .trp-row__answer-label{flex-shrink:0;width:32px}.ihabdevteam-core-scope .trp-row__answer-label.answer-correct{color:var(--color-lightGray)}.ihabdevteam-core-scope .trp-row__answer-label.answer-selected.is-correct{color:var(--color-main)}.ihabdevteam-core-scope .trp-row__answer-label.answer-selected.is-wrong{color:var(--color-error)}.ihabdevteam-core-scope .trp-row__answer-value{color:var(--color-black)}.ihabdevteam-core-scope .trp-row__answer-value.is-correct{color:var(--color-main)}.ihabdevteam-core-scope .trp-row__answer-value.is-wrong{color:var(--color-error)}.ihabdevteam-core-scope .popup-footer.trp-result__foot{align-items:center;background:var(--color-white);display:flex;flex-shrink:0;gap:var(--spacing-s);justify-content:center;padding:var(--spacing-l)}.ihabdevteam-core-scope .trp-actions{display:flex;gap:var(--spacing-s)}@keyframes result-rise{0%{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}.ihabdevteam-core-scope .trp-result.is-on{animation:result-rise .5s cubic-bezier(.22,.9,.3,1) both}.ihabdevteam-core-scope .trp-result.is-on .trp-score__big{animation:result-rise .7s cubic-bezier(.22,.9,.3,1) .1s both}.ihabdevteam-core-scope .trp-result.is-on .result-table__row{animation:result-rise .5s cubic-bezier(.22,.9,.3,1) both}.ihabdevteam-core-scope .trp-result.is-on .result-table__row:nth-child(2){animation-delay:.18s}.ihabdevteam-core-scope .trp-result.is-on .result-table__row:nth-child(3){animation-delay:.24s}.ihabdevteam-core-scope .trp-result.is-on .result-table__row:nth-child(4){animation-delay:.3s}.ihabdevteam-core-scope .trp-result.is-on .result-table__row:nth-child(5){animation-delay:.36s}@media (max-width:767px){.ihabdevteam-core-scope .trp-result{padding:0}.ihabdevteam-core-scope .trp-result__head{padding:0 20px 20px}.ihabdevteam-core-scope .trp-result__body{padding:0}.ihabdevteam-core-scope .popup-footer.trp-result__foot{border-top:1px solid var(--color-whiteLine);gap:var(--spacing-xs);padding:var(--spacing-l)}.ihabdevteam-core-scope .trp-actions{display:flex;gap:var(--spacing-xs);width:100%}.ihabdevteam-core-scope .trp-actions>*{flex:1;min-width:0}.ihabdevteam-core-scope .trp-score{gap:10px;margin:20px auto 4px}.ihabdevteam-core-scope .trp-score__big{font-size:72px;letter-spacing:-3px}.ihabdevteam-core-scope .trp-score__sep,.ihabdevteam-core-scope .trp-score__total{font-size:28px;padding-bottom:10px}.ihabdevteam-core-scope .result-table__head{display:none}.ihabdevteam-core-scope .result-table__head,.ihabdevteam-core-scope .result-table__row{gap:var(--spacing-xs);grid-template-columns:1fr auto}.ihabdevteam-core-scope .result-table__row{padding:14px 4px}.ihabdevteam-core-scope .trp-row__judge{justify-content:flex-start}.ihabdevteam-core-scope .result-table--answer .result-table__row{align-items:start;gap:6px;grid-template-columns:1fr;grid-template-rows:auto auto auto;padding:14px 4px}.ihabdevteam-core-scope .result-table--answer .trp-row__judge{grid-row:1;justify-content:flex-start}.ihabdevteam-core-scope .result-table--answer .trp-row__problem{grid-row:2}.ihabdevteam-core-scope .result-table--answer .trp-row__answers{grid-row:3}
|
|
982
982
|
/* !important \uD544\uC694 \u2014 TrainingResultPopup.tsx\uAC00 Badge\uC5D0 minWidth={80}\uC744 \uC778\uB77C\uC778\uC73C\uB85C
|
|
983
|
-
\uC804\uB2EC\uD558\uBBC0\uB85C(\uCF54\uB4DC \uD655\uC778\uB428) \uBAA8\uBC14\uC77C\uC5D0\uC11C \uC790\uC5F0 \uD3ED\uC73C\uB85C \uB418\uB3CC\uB9AC\uB824\uBA74 \uD2B9\uC774\uB3C4\uB85C\uB294 \uBD80\uC871. */.ihabdevteam-core-scope .trp-row__judge .badge{min-width:0!important;min-width:auto!important}.ihabdevteam-core-scope .result-table--answer .trp-row__judge .badge{height:26px;padding:0 12px}}`;J(y7);function Ec(...e){for(const t of e)if(typeof t=="string"){const a=t.trim();if(a.length)return a}else{if(typeof t=="number"||typeof t=="boolean")return String(t);if(Array.isArray(t)&&t.length)return t.join(", ");if(t&&typeof t=="object"){const a=t,r=[a.text,a.label,a.value];for(const n of r){if(typeof n=="string"&&n.trim().length)return n.trim();if(typeof n=="number"||typeof n=="boolean")return String(n)}}}return null}function x7(e){return Ec(e?.question,e?.q,e?.sentence,e?.text,e?.prompt,e?.wording)}function Hb(e){if(!e)return;if(typeof e.decision=="boolean")return e.decision;if(typeof e.correct=="boolean")return e.correct;if(typeof e.heard=="boolean")return e.heard;if(typeof e.judgement=="boolean")return e.judgement;const t=Ec(e?.status,e?.result,e?.judge,e?.note);if(t){const a=t.toLowerCase();if(["ok","true","\uB9DE\uC74C","\uC815\uB2F5"].some(r=>a.includes(r)))return!0;if(["ng","false","\uD2C0\uB9BC","\uC624\uB2F5"].some(r=>a.includes(r)))return!1}}function jc(e){const{score:t,contextsLength:a,results:r=[],subtitle:n,onReplay:i,onClose:s,inline:c=!1}=e||{},{t:u}=ge.useTranslation();l.useEffect(()=>{const b=a??0;t!=null&&b>0&&t/b>.5&&window.dispatchEvent(new CustomEvent("party:trigger",{detail:{count:140,strength:1.6,duration:2200}}))},[t,a]);const d=l.useCallback(b=>{const y=Hb(b),v=Ec(b?.wording,b?.label);return y===!0?{variant:"main",label:v??u("training.result.heardWell","\uC798 \uB4E4\uC5C8\uC5B4\uC694")}:y===!1?{variant:"danger",label:v??u("training.result.notHeard","\uBABB \uB4E4\uC5C8\uC5B4\uC694")}:{variant:"disabled",label:v??u("training.result.notJudged","\uBBF8\uD310\uC815")}},[u]),p=a??0,m=t??0,h=l.useMemo(()=>Array.isArray(r)?r:[],[r]),g=l.useMemo(()=>h.map(b=>{const y=b??{},v=x7(y)||"(\uB0B4\uC6A9\uC5C6\uC74C)",{variant:C,label:w}=d(y),x=Array.isArray(y.corrects)?y.corrects:[],S=x.length?x.join(", "):y.answer!=null&&y.answer!==""?String(y.answer):null,_=typeof y.selectedText=="string"?y.selectedText:null,k=Hb(y)===!0;return{problem:v,variant:C,label:w,answer:S,selectedText:_,isCorrect:k}}),[h,d]),f=l.useMemo(()=>g.some(b=>b.answer!==null||b.selectedText!==null),[g]);return o.jsx(Ta,{onClose:s,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:b,closeWithAnimation:y})=>o.jsxs("div",{className:"trp-actions",children:[o.jsx(se,{size:56,type:"bar",label:u("training.result.replay","\uB2E4\uC2DC\uD558\uAE30"),onClick:()=>b(i)}),o.jsx(se,{size:56,type:"bar",label:u("training.result.done","\uC644\uB8CC"),variant:"main",onClick:y})]}),children:()=>o.jsxs("div",{className:"trp-result is-on",children:[o.jsxs("header",{className:"trp-result__head",children:[o.jsx("p",{className:"trp-result__eyebrow caption-1",children:u("training.result.eyebrow","\uD6C8\uB828 \uC644\uB8CC")}),o.jsx("h1",{className:"trp-result__title h2",children:u("training.result.title","\uD6C8\uB828\uC744 \uBAA8\uB450 \uB9C8\uCCE4\uC2B5\uB2C8\uB2E4.")}),n&&o.jsx("p",{className:"trp-result__subtitle body-3",children:n}),o.jsx("div",{className:"trp-score",children:o.jsxs("div",{className:"trp-score__figure","aria-label":u("training.result.scoreAria",{correct:m,total:p}),children:[o.jsx("span",{className:"trp-score__big",children:m}),o.jsx("span",{className:"trp-score__sep",children:"/"}),o.jsx("span",{className:"trp-score__total",children:p})]})})]}),g.length>0&&o.jsx("section",{className:"trp-result__body",children:o.jsxs("div",{className:`result-table${f?" result-table--answer":""}`,role:"table","aria-label":u("training.result.tableAriaLabel","\uBB38\uD56D\uBCC4 \uD310\uC815"),children:[o.jsxs("div",{className:"result-table__head caption-1",role:"row",children:[o.jsx("span",{role:"columnheader",children:u("training.result.colProblem","\uBB38\uC81C")}),f&&o.jsx("span",{role:"columnheader",children:u("training.result.colAnswerSelected","\uC815\uB2F5 \xB7 \uC120\uD0DD")}),o.jsx("span",{className:"col-right",role:"columnheader",children:u("training.result.colJudge","\uD310\uC815")})]}),g.map((b,y)=>o.jsxs("div",{className:"result-table__row",role:"row",children:[o.jsxs("div",{className:"trp-row__problem",children:[o.jsx("span",{className:"trp-row__no caption-1",children:String(y+1).padStart(2,"0")}),o.jsx("div",{className:"trp-row__q body-2",children:b.problem})]}),f&&o.jsxs("div",{className:"trp-row__answers",children:[b.answer!==null&&o.jsxs("div",{className:"trp-row__answer-line",children:[o.jsx("span",{className:"trp-row__answer-label answer-correct caption-1",children:u("training.result.colAnswer","\uC815\uB2F5")}),o.jsx("span",{className:"trp-row__answer-value body-2",children:b.answer})]}),o.jsxs("div",{className:"trp-row__answer-line",children:[o.jsx("span",{className:`trp-row__answer-label answer-selected caption-1 ${b.isCorrect?"is-correct":"is-wrong"}`,children:u("training.result.colSelected","\uC120\uD0DD")}),o.jsx("span",{className:`trp-row__answer-value body-2 ${b.isCorrect?"is-correct":"is-wrong"}`,children:b.selectedText??"\u2014"})]})]}),o.jsx("div",{className:"trp-row__judge",children:o.jsx(ht,{variant:b.variant,label:b.label,fill:"soft",minWidth:80})})]},y))]})})]})})}function C7(e){l.useEffect(()=>{if(!e)return;const t=new Date;return()=>{const a=new Date;a.getTime()-t.getTime()<5e3||Ji({trainingType:e,startedAt:t.toISOString(),endedAt:a.toISOString()})}},[e])}function Lc(e,t){return e&&e.id||`page-${t??0}`}function Mc(e,t){return e&&e.key||`step-${t??0}`}function $n(){return{pageIndex:0,stepIndex:0,answersByPage:{}}}function _7(e,t){return typeof e?.props=="function"?e.props(t)||{}:e?.props||{}}const Vb=new Set(["LISTEN_IN_NOISE","SHORT_STORY","LONG_STORY","ORDERING_SENTENCE"]),w7=e=>o.jsx(jc,{score:e.score,contextsLength:e.contextsLength,results:e.results,onReplay:e.onReplay,onClose:e.onClose});function k7(e){const{scenario:t,title:a,subTitle:r,depth:n,icon:i,wrapperStyle:s,iconTooltip:c,pageIndex:u,pageCount:d,stepIndex:p,stepCount:m,onBack:h,onComplete:g,onNext:f,onSettings:b,useNoiseSetting:y=!0,children:v,ariaLabel:C,label:w,buildResults:x,onResult:S,typeKey:_,entryPoint:k,dailyTotal:N,itemRef:A,renderResultPopup:D}=e;C7(_&&!Vb.has(_)?_:"");const H=l.useRef(0);l.useEffect(()=>{H.current=Date.now()},[]);const{t:P}=ge.useTranslation(),T=S,E=!!t,L=t?.id||null,F=t?.meta||{},te=Array.isArray(t?.pages)?t.pages:[],Z=Array.isArray(v)||l.isValidElement(v)&&typeof v!="function"?l.Children.toArray(v).filter(l.isValidElement):[],V=Z.length>0,j=ie=>ie===kr||ie?.__isTrainingPage===!0,M=V&&Z.some(ie=>j(ie.type)),$=M?Z.filter(ie=>j(ie.type)).map((ie,fe)=>{const ye=ie.props||{};return{id:`children-page-${fe}`,steps:l.Children.toArray(ye.children).filter(l.isValidElement),pageTop:ye.pageTop||ye.top||null,pageBottom:ye.pageBottom||ye.bottom||null}}):[{id:"children-page-0",steps:Z}],W=V&&!E&&typeof v!="function",q=W?Math.max(1,$.length):0;l.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")}},[]),l.useEffect(()=>{if(typeof document>"u"||!document.body)return;const ie=document.body;return ie.dataset.ihabTrainingPopupCount=String(Number(ie.dataset.ihabTrainingPopupCount||"0")+1),ie.classList.add("ihab-training-popup-open"),()=>{const fe=Number(ie.dataset.ihabTrainingPopupCount||"1")-1;fe>0?ie.dataset.ihabTrainingPopupCount=String(fe):(delete ie.dataset.ihabTrainingPopupCount,ie.classList.remove("ihab-training-popup-open"))}},[]),l.useEffect(()=>{if(!(typeof document>"u"||!document.body))return nk()},[]);const[X,O]=l.useState({...Cb,enabled:!1}),Y=l.useRef(X);l.useEffect(()=>{Y.current=X},[X]),l.useEffect(()=>{let ie=!1;return rs().then(fe=>{if(ie)return;const ye=fe?{...Y.current,...fe}:{...Cb};Y.current=ye,O(ye)}),()=>{ie=!0}},[]);const[z,re]=l.useState(null),[Q,ne]=l.useState(null),me=l.useCallback((ie,fe)=>{ie==="main"?re(fe):ne(fe)},[]),ce=l.useCallback(ie=>{const fe={...Y.current,...ie};Y.current=fe,O(fe),ns(fe)},[]),I=X.mainSpeed,ee=X.mainVolume,pe=l.useCallback(ie=>ce({mainSpeed:ie}),[ce]),ke=l.useCallback(ie=>ce({mainVolume:ie}),[ce]),Ce=l.useMemo(()=>({settings:X,setSettings:ce,registerAnalyser:me,mainAnalyser:z,noiseAnalyser:Q,playbackRate:I,setPlaybackRate:pe,mainVolume:ee,setMainVolume:ke}),[X,ce,me,z,Q,I,pe,ee,ke]),R=l.useRef(null),[oe,ae]=l.useState("center"),[ve,De]=l.useState(!1),ze=l.useRef(!1),Re=l.useRef(null),Me=l.useCallback(ie=>{ze.current||(ze.current=!0,De(!0),Re.current=setTimeout(ie,s7))},[]);l.useEffect(()=>()=>{Re.current&&clearTimeout(Re.current)},[]),l.useEffect(()=>{const ie=R.current;if(!ie)return;const fe=Array.from(ie.querySelectorAll(fn)).filter(U=>!U.closest('[aria-hidden="true"]'))[0];if(fe)try{fe.focus()}catch{}const ye=U=>{if(U.key==="Escape"){U.preventDefault(),Me(()=>{typeof h=="function"&&h()});return}};return ie.addEventListener("keydown",ye),()=>ie.removeEventListener("keydown",ye)},[h,Me]),zl(R,!0);const[Ye,Ne]=l.useState(!1),Ve=l.useRef(!1),[Fe,be]=l.useState(null),[Ke,We]=l.useState(""),[Le,Ge]=l.useState(()=>$n()),vt=l.useRef(typeof u=="number"?u:null);l.useEffect(()=>{!E&&!W||(Ge($n()),be(null))},[E,L,W]),l.useEffect(()=>{W&&Ge(ie=>{const fe=Math.max(0,Math.min(ie.pageIndex,Math.max(0,q-1)));return fe!==ie.pageIndex?{...ie,pageIndex:fe,stepIndex:0}:ie})},[W,q]);const Ue=W?Math.max(0,Math.min(Le.pageIndex,q-1)):0,Xe=W?$[Ue]:null,ut=W&&Xe&&Array.isArray(Xe.steps)?Xe.steps:[],Pe=E?Le.pageIndex:W?Ue:typeof u=="number"?u:0,rt=E?te[Math.max(0,Math.min(Le.pageIndex,Math.max(0,te.length-1)))]:null,et=E&&rt&&Array.isArray(rt.steps)?rt.steps:[],Oe=E?et.length:W?ut.length:typeof m=="number"?m:0,Qe=E||W?Math.max(0,Math.min(Le.stepIndex,Math.max(0,Oe))):typeof p=="number"?p:0,tt=E?te.length:W?q:typeof d=="number"?d:0;l.useLayoutEffect(()=>{const ie=vt.current;if(typeof Pe=="number"&&ie!==null&&Pe!==ie&&Pe>ie)try{We(P("training.problemNotice",{n:Pe+1}))}catch{}vt.current=typeof Pe=="number"?Pe:vt.current},[Pe,u,P]),l.useLayoutEffect(()=>{const ie=R.current;if(!ie)return;const fe=()=>ie.querySelector(".page-popup__scroll");let ye=null,U=null,de=null;const _e=ct=>{const ue=fe();if(!ue)return;const Te=ue.scrollHeight<=ue.clientHeight;if(ae(Te?"center":"top"),ct&&!Ve.current){Ve.current=!0;try{Ne(!0)}catch{}try{$e.disconnect()}catch{}}},Se=()=>{ye!==null&&cancelAnimationFrame(ye),ye=requestAnimationFrame(()=>{U!==null&&clearTimeout(U),U=setTimeout(()=>_e(!0),60)})},Ae=()=>{de!==null&&cancelAnimationFrame(de),de=requestAnimationFrame(()=>_e(!1))};Se(),window.addEventListener("resize",Ae);const $e=new MutationObserver(Se);$e.observe(ie,{childList:!0,subtree:!0,attributes:!0});const nt=setTimeout(()=>{Ve.current||_e(!0)},400);return()=>{window.removeEventListener("resize",Ae),ye!==null&&cancelAnimationFrame(ye),U!==null&&clearTimeout(U),de!==null&&cancelAnimationFrame(de),clearTimeout(nt);try{$e.disconnect()}catch{}}},[R]);const xt=l.useCallback(ie=>{R.current&&(R.current._childOnNext=ie)},[]),Et=l.useCallback(ie=>{R.current&&(R.current._childOnResult=ie)},[]),it=l.useCallback((ie,fe,ye)=>{Ge(U=>{const de=U.answersByPage[ie]||{},_e=de[fe],Se=Rn(ye),Ae=Rn(_e);return _e&&Ae>Se?U:{...U,answersByPage:{...U.answersByPage,[ie]:{...de,[fe]:ye}}}})},[Ge]),Ht=l.useCallback((ie,fe,ye)=>{const U=Lc(rt,Pe),de=Mc(ie,fe);it(U,de,ye)},[rt,Pe,it]),mt=l.useCallback((ie,fe,ye)=>{const U=Lc(rt,Pe),de=Mc(ie,fe);it(U,de,ye),!ye?.allowChange&&ie?.autoAdvance!==!1&&Ge(_e=>({..._e,stepIndex:Math.max(_e.stepIndex,fe+1)}))},[rt,Pe,it,Ge]),Vt=l.useCallback((ie,fe)=>{const ye=Xe?.id||`children-page-${Pe??0}`,U=typeof fe=="number"?fe:Qe??0,de=`step-${U}`;it(ye,de,ie),ie?.allowChange||Ge(_e=>({..._e,stepIndex:Math.max(_e.stepIndex,U+1)}))},[Xe,Pe,Qe,it,Ge]),ia=l.useCallback((ie,fe)=>{const ye=Xe?.id||`children-page-${Pe??0}`,U=`step-${typeof fe=="number"?fe:Qe??0}`;it(ye,U,ie)},[Xe,Pe,Qe,it]),Gt=W?{currentPageIndex:Pe??0,currentStepIndex:Qe??0,totalStepsInPage:ut.length,handleStepDone:Vt,handleStepChange:ia}:null,Ea=async()=>{const ie=typeof t?.buildResults=="function"?await Promise.resolve(t.buildResults({scenario:t,pages:te,flowState:Le,answersByPage:Le.answersByPage})):null;return typeof T=="function"&&await Promise.resolve(T(ie))||ie},sa=async()=>{const ie=Xe?.id||`children-page-${Le.pageIndex}`,fe=Le.answersByPage[ie]||{},ye=M?(()=>{const _e={};let Se=0;return $.forEach(Ae=>{const $e=Le.answersByPage[Ae.id]||{},nt=Array.isArray(Ae.steps)?Ae.steps.length:0;for(let ct=0;ct<nt;ct+=1){const ue=$e[`step-${ct}`];typeof ue<"u"&&(_e[`step-${Se+ct}`]=ue)}Se+=nt}),_e})():fe;if(typeof x=="function"){const _e=await Promise.resolve(x(ye,{pageAnswers:fe,answersByPage:Le.answersByPage,pages:$,currentPageId:ie}));return typeof T=="function"&&await Promise.resolve(T(_e))||_e}const U=Object.entries(fe).map(([_e,Se],Ae)=>({index:Ae,key:_e,payload:Se})),de={results:U,answers:U,score:0};return typeof T=="function"&&await Promise.resolve(T(de))||de},Kt=()=>{try{if(typeof document<"u"&&document.body){try{document.dispatchEvent(new CustomEvent("speechear-close-tooltips"))}catch{}document.dispatchEvent(new PointerEvent("pointerdown",{bubbles:!0,cancelable:!0})),document.dispatchEvent(new MouseEvent("click",{bubbles:!0,cancelable:!0}))}}catch{}if(E){const ye=Ea();be({});const U=ye;Promise.resolve(U).then(de=>{be(de||{isEmpty:!0})}).catch(de=>{be({isEmpty:!0})});return}if(W){const ye=sa();be({});const U=ye;Promise.resolve(U).then(de=>{be(de||{isEmpty:!0})}).catch(de=>{be({isEmpty:!0})});return}const ie=R.current&&R.current._childOnResult,fe=ye=>{try{return ye?ye():void 0}catch{return}};if(typeof ie=="function"){const ye=fe(ie);try{typeof document>"u"?require("url").pathToFileURL(__filename).href:Yt&&Yt.tagName.toUpperCase()==="SCRIPT"&&Yt.src||new URL("ihabdevteam-core.cjs.js",document.baseURI).href}catch{}ye&&typeof ye.then!="function"?be(ye):be(ye&&typeof ye.then=="function"?{}:{}),Promise.resolve(ye).then(U=>{U&&be(U)}).catch(U=>{});return}if(typeof T=="function"){const ye=fe(T);try{typeof document>"u"?require("url").pathToFileURL(__filename).href:Yt&&Yt.tagName.toUpperCase()==="SCRIPT"&&Yt.src||new URL("ihabdevteam-core.cjs.js",document.baseURI).href}catch{}ye&&typeof ye.then!="function"?be(ye):be(ye&&typeof ye.then=="function"?{}:{}),Promise.resolve(ye).then(U=>{try{typeof document>"u"?require("url").pathToFileURL(__filename).href:Yt&&Yt.tagName.toUpperCase()==="SCRIPT"&&Yt.src||new URL("ihabdevteam-core.cjs.js",document.baseURI).href}catch{}U&&be(U)}).catch(U=>{console.error("viewResults external handler failed",U)});return}},ja=()=>{if(E){if(typeof Pe=="number"&&typeof tt=="number"&&Pe<tt-1){Ge(fe=>({...fe,pageIndex:fe.pageIndex+1,stepIndex:0}));return}return Kt()}if(W){const fe=ut.length;if(typeof Qe=="number"&&Qe<fe-1){Ge(ye=>({...ye,stepIndex:ye.stepIndex+1}));return}if(typeof Pe=="number"&&typeof tt=="number"&&Pe<tt-1){Ge(ye=>({...ye,pageIndex:ye.pageIndex+1,stepIndex:0}));return}return Kt()}if(typeof f=="function"){try{f()}catch{}return}const ie=R.current&&R.current._childOnNext;if(typeof ie=="function"){try{ie()}catch{}return}},jt=E?F.title||F.label||C||P("common.popup","\uD31D\uC5C5"):a||w||(Array.isArray(n)?n[n.length-1]:void 0)||C||P("common.popup","\uD31D\uC5C5"),Ga=E?F.title??F.label??jt:a??w??jt,$t=(ie,fe)=>{const ye=Lc(rt,Pe),U=Mc(ie,fe),de=Le.answersByPage[ye]?.[U],_e=_7(ie,{page:rt,pageIndex:Pe,step:ie,stepIndex:fe,storedPayload:de,answersByPage:Le.answersByPage,flowState:Le}),Se={key:U,index:fe,stepIndex:Qe,isLast:fe===et.length-1};switch(ie?.type){case"listen":return o.jsx(Mn,{...Se,..._e,onDone:Ae=>mt(ie,fe,Ae)});case"confirm":return o.jsx(jn,{...Se,..._e,onDone:Ae=>mt(ie,fe,Ae),onChange:Ae=>Ht(ie,fe,Ae)});case"confirmWithText":return o.jsx(Ln,{...Se,..._e,onDone:Ae=>mt(ie,fe,Ae),onChange:Ae=>Ht(ie,fe,Ae)});case"orderList":return o.jsx(Pn,{...Se,..._e,onDone:Ae=>mt(ie,fe,Ae),onChange:Ae=>Ht(ie,fe,Ae)});default:return null}},ya=E?te.length>0?o.jsx("div",{className:"training-steps",children:et.map((ie,fe)=>$t(ie,fe))}):o.jsx("div",{className:"page-popup__content page-popup__content--center",children:o.jsx("div",{className:"pp-empty",children:t?.emptyMessage||P("training.noQuestions","\uBB38\uC81C\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4.")})}):null,qa=W?o.jsxs(Wb.Provider,{value:Gt,children:[Xe?.pageTop?o.jsx("div",{className:"training-page-top",children:Xe.pageTop}):null,o.jsx("div",{className:"training-steps",children:ut.map((ie,fe)=>{const ye=ie;return l.cloneElement(ye,{...ye.props,_stepIndex:fe,_totalSteps:ut.length,_stepKey:`step-${fe}`,_pageIndex:Pe})})}),Xe?.pageBottom?o.jsx("div",{className:"training-page-bottom",children:Xe.pageBottom}):null]}):null,Je=l.useCallback(()=>{let ie;if(_){const fe=Fe,ye=fe?.results||fe?.answers||[],U=Array.isArray(ye)&&ye.length>0?ye.length:null,de=Array.isArray(ye)?ye.filter(Se=>Se?.correct===!0||Se?.isCorrect===!0||Se?.score===1||Se?.heard===!0||Se?.judgement===!0).length:null,_e=U!=null?de:null;es({items:as(ye),category:Vb.has(_)?"sentence":"word",trainingType:_,entryPoint:k??"sentence",itemRef:A??null,correct:_e,total:U,score:typeof fe?.score=="number"?fe.score:null,durationSeconds:Math.max(0,Math.round((Date.now()-H.current)/1e3)),dailyTotal:N??null}),ie={correct:_e,total:U}}be(null),Me(()=>{typeof g=="function"&&g(ie),typeof h=="function"&&h()})},[g,h,_,k,N,A,Fe,be,Me]),It=l.useCallback(()=>We(""),[We]),kt=l.useCallback(()=>{Me(()=>{typeof h=="function"&&h()})},[h,Me]),xa=o.jsxs("div",{className:`page-popup${ve?" page-popup--closing":""}`,role:"dialog","aria-label":jt,children:[o.jsxs("div",{ref:R,className:`page-popup__panel ${Ye?"":"page-popup__panel--measuring"} ${oe==="center"?"page-popup__panel--center":oe==="top"?"page-popup__panel--top":""}`,"aria-modal":"true",children:[o.jsx(wc,{title:Ga,subtitle:E?F.subtitle||F.label:Array.isArray(n)?n.join(" / "):void 0,desc:E?void 0:r,depth:E?F.depth:n,icon:E?F.icon:i,wrapperStyle:E?F.wrapperStyle:s,iconTooltip:E?F.iconTooltip:c,progressMax:tt,progressIndex:Pe,pageIndex:Pe,pageCount:tt,onBack:kt,onClose:kt}),o.jsx("div",{className:"page-popup__scroll",children:o.jsx("div",{className:`page-popup__content ${oe==="center"?"page-popup__content--center":"page-popup__content--top"}`,children:W?qa:E?ya:typeof v=="function"?v({registerOnNext:xt,registerOnResult:Et,panelRef:R,setResultOverlay:be}):v})}),o.jsx(_c,{onSettings:b,onNext:ja,onResult:Kt,useNoiseSettingBtn:!!(E?F.useNoiseSetting??!0:y),stepIndex:Qe,stepCount:Oe,pageIndex:Pe,pageCount:tt})]}),Fe&&!Fe.isEmpty&&(D??w7)({score:Fe.score,results:Fe.results||Fe.answers||[],contextsLength:Fe.results?Fe.results.length:Fe.answers?Fe.answers.length:0,onReplay:()=>{if(be(null),E){if(Ge($n()),typeof t?.onReplay=="function")try{t.onReplay()}catch{}return}if(W){Ge($n());return}try{const ie=R.current&&R.current._childOnResult;typeof ie=="function"&&ie({replay:!0})}catch{}},onClose:Je}),Fe?.isEmpty&&o.jsx("div",{className:"page-popup page-popup--result-empty",role:"dialog","aria-label":P("training.result.eyebrow","\uD6C8\uB828 \uC644\uB8CC"),children:o.jsxs("div",{className:"page-popup__panel page-popup__panel--center","aria-modal":"true",children:[o.jsx("div",{className:"page-popup__scroll",children:o.jsx("div",{className:"page-popup__content page-popup__content--center",children:o.jsx("div",{className:"page-popup__empty",children:P("training.result.eyebrow","\uD6C8\uB828 \uC644\uB8CC")})})}),o.jsx("div",{className:"page-popup__bottom",children:o.jsx(se,{variant:"main",size:48,onClick:Je,label:P("training.result.done","\uC644\uB8CC")})})]})}),o.jsx(ro,{message:Ke,position:"top",onClose:It})]}),la=o.jsx(_b.Provider,{value:Ce,children:xa});return typeof document<"u"&&document.body?qt.createPortal(la,document.body):la}const Da=k7;Da.Page=kr,Da.ListenStep=Ac,Da.ConfirmStep=Tc,Da.ConfirmWithTextStep=Bc,Da.OrderListStep=Nc,Da.CardStep=Dc,Da.CardOrderStep=v7;var S7=".ihabdevteam-core-scope .word-search-result-block__actions{display:flex;gap:var(--spacing-xs);justify-content:center}.ihabdevteam-core-scope .word-search-result-block__toolbar{align-items:center;display:flex;flex-wrap:wrap;gap:var(--spacing-xs);justify-content:flex-end}.ihabdevteam-core-scope .word-search-result-block__inner{background:var(--color-white);border:1px solid var(--color-darkWhite);border-radius:var(--radius-m);padding:var(--spacing-content)}.ihabdevteam-core-scope .word-search-result-block__inner:has(+.word-search-result-block__actions:not(:empty)){margin-bottom:var(--spacing-content)}.ihabdevteam-core-scope .word-search-result-block__items{grid-gap:var(--spacing-xs);display:grid;gap:var(--spacing-xs);grid-template-columns:repeat(auto-fill,200px);justify-content:center}.ihabdevteam-core-scope .word-search-result-block__items .button__label-text,.ihabdevteam-core-scope .word-search-result-block__items .button__sub-label-text{white-space:nowrap;word-break:keep-all}.ihabdevteam-core-scope .word-search-result-block__items .button__label:has(.button__label-text:nth-child(4)){gap:4px 10px;grid-auto-columns:auto;grid-auto-flow:row;grid-template-columns:repeat(2,minmax(0,1fr))}.ihabdevteam-core-scope .word-search-result-block__items .button-word:has(.button__label-text:nth-child(4)){height:auto;min-height:72px;padding-bottom:8px;padding-top:8px}@media (max-width:767px){.ihabdevteam-core-scope .word-search-result-block__items{grid-template-columns:repeat(2,1fr);justify-content:normal}.ihabdevteam-core-scope .word-search-result-block__items .button{min-width:0!important;width:100%}}.ihabdevteam-core-scope .word-search-result-block__empty{color:var(--color-gray);margin:0;padding:24px 0;text-align:center}.ihabdevteam-core-scope .word-search-result-block__group{display:flex;flex-direction:column;gap:10px}.ihabdevteam-core-scope .word-search-result-block__group+.word-search-result-block__group{border-top:1px solid var(--color-darkWhite);margin-top:var(--spacing-l);padding-top:var(--spacing-l)}.ihabdevteam-core-scope .word-search-result-block__pagination-bottom{display:flex;justify-content:center;margin-top:16px}.ihabdevteam-core-scope .word-search-result-block__empty-wrap{align-items:center;display:flex;flex-direction:column;gap:8px;gap:var(--spacing-xs,8px)}.ihabdevteam-core-scope .word-search-result-block__empty-hint{color:var(--color-sub);line-height:1.6;max-width:34em;text-align:center}.ihabdevteam-core-scope .word-search-result-block__disc,.ihabdevteam-core-scope .word-search-result-block__notice{display:block}.ihabdevteam-core-scope .word-search-result-block__notice{color:var(--color-text-primary)}";J(S7);var A7='.ihabdevteam-core-scope .tooltip-word-image{background:var(--color-white);border-radius:var(--radius-m);box-shadow:var(--shadow-dropdown);padding:var(--spacing-s);position:fixed;z-index:var(--z-tooltip)}.ihabdevteam-core-scope .tooltip-word-image__cells{display:flex;gap:var(--spacing-s)}.ihabdevteam-core-scope .tooltip-word-image__cell{background:#f5f5f5;background:var(--color-white,#f5f5f5);border-radius:var(--radius-card);flex-shrink:0;height:120px;overflow:hidden;position:relative;width:120px}.ihabdevteam-core-scope .tooltip-word-image__cell img{display:block;height:100%;-o-object-fit:cover;object-fit:cover;transition:opacity .2s;width:100%}.ihabdevteam-core-scope .tooltip-word-image__spinner{align-items:center;display:flex;inset:0;justify-content:center;position:absolute}.ihabdevteam-core-scope .tooltip-word-image__spinner:after{animation:tooltip-spin .7s linear infinite;border:3px solid #e0e0e0;border-radius:50%;border-top:3px solid var(--color-white,#e0e0e0);border:3px solid var(--color-white,#e0e0e0);border-top-color:var(--color-main,#4f6ef7);content:"";height:24px;width:24px}@keyframes tooltip-spin{to{transform:rotate(1turn)}}.ihabdevteam-core-scope .tooltip-word-image__cell--text{align-items:center;color:var(--color-black);display:flex;font-weight:700;justify-content:center}';J(A7);function T7({label:e,homonum:t}){const a=Ma()?.(e,t)??"",{imgRef:r,loading:n,hasImage:i,onLoad:s,onError:c}=Ql(a);return i?o.jsxs("div",{className:"tooltip-word-image__cell",children:[n&&o.jsx("div",{className:"tooltip-word-image__spinner"}),o.jsx("img",{ref:r,src:a,alt:e,draggable:!1,style:{opacity:n?0:1},onLoad:s,onError:c})]}):o.jsx("div",{className:"tooltip-word-image__cell tooltip-word-image__cell--text h3",children:o.jsx("span",{children:e})})}function Pc({words:e,anchorRect:t}){const a=l.useRef(null),[r,n]=l.useState(null);return l.useLayoutEffect(()=>{if(!t||!a.current)return;const{offsetWidth:i,offsetHeight:s}=a.current,c=window.innerWidth;let u=t.left+t.width/2-i/2,d=t.top-s-8;d<8&&(d=t.bottom+8),u=Math.max(8,Math.min(u,c-i-8)),n({left:u,top:d})},[t]),!t||e.length===0?null:qt.createPortal(o.jsx("div",{ref:a,className:"tooltip-word-image",style:{visibility:r?"visible":"hidden",left:r?.left??0,top:r?.top??-9999},children:o.jsx("div",{className:"tooltip-word-image__cells",children:e.map(i=>o.jsx(T7,{label:i.label,homonum:i.homonum},`${i.label}_${i.homonum??1}`))})}),document.body)}function Gb({titleIcon:e,resultCount:t,resultUnit:a,searchQuery:r,items:n,groups:i,selected:s=[],onSelect:c,maxSelect:u,onClearSelection:d,onPrint:p,onPrintEmpty:m,className:h,emptyHint:g,sectionType:f="page",disc:b,notice:y}){const{t:v,i18n:C}=ge.useTranslation(),w=C.language?.startsWith("ko")??!1,{anchorRect:x,openAt:S,close:_}=ko(),[k,N]=l.useState(null),A=l.useCallback(()=>{_(),N(null)},[_]),D=(r??"").trim(),H=/^[^,[\]\s]+$/.test(D)?D:"",P=H.length>0,[T,E]=l.useState("ganada"),[L,F]=l.useState("50"),[te,Z]=l.useState(1),[V,j]=l.useState(P);V!==P&&(j(P),E(P?"match":"ganada"));const M=T==="match"&&!P?"ganada":T,$=l.useMemo(()=>[...P?[{value:"match",label:v("wordSearch.sort.match",{defaultValue:"\uC2DC\uC791 \uC6B0\uC120"})}]:[],{value:"ganada",label:v("wordSearch.sort.ganada",{defaultValue:"\uAC00\uB098\uB2E4\uC21C \u2191"})},{value:"ganada_desc",label:v("wordSearch.sort.ganadaDesc",{defaultValue:"\uAC00\uB098\uB2E4\uC21C \u2193"})},{value:"syllable",label:v("wordSearch.sort.syllable",{defaultValue:"\uC74C\uC808 \uC218 \u2191"})},{value:"syllable_desc",label:v("wordSearch.sort.syllableDesc",{defaultValue:"\uC74C\uC808 \uC218 \u2193"})},{value:"grade",label:v("wordSearch.sort.grade",{defaultValue:"\uB4F1\uAE09\uC21C \u2191"})},{value:"grade_desc",label:v("wordSearch.sort.gradeDesc",{defaultValue:"\uB4F1\uAE09\uC21C \u2193"})}],[v,P]),W=l.useMemo(()=>["10","25","50","100"].map(R=>({value:R,label:v("wordSearch.pageSize",{count:Number(R),defaultValue:`${R}\uAC1C\uC529 \uBCF4\uAE30`})})),[v]),q=R=>R.words[0],X=l.useCallback((R,oe)=>{const ae=ze=>q(ze)?.label??"",ve=ze=>q(ze)?.syllables??[...ae(ze)].length,De=ze=>{const Re=parseInt(q(ze)?.grade??"",10);return Number.isFinite(Re)?Re:999};switch(M){case"match":{const ze=[...H].length,Re=Me=>ho(ae(Me).slice(0,ze),H)?0:1;return Re(R)-Re(oe)||ae(R).localeCompare(ae(oe),"ko")}case"ganada":return ae(R).localeCompare(ae(oe),"ko");case"ganada_desc":return ae(oe).localeCompare(ae(R),"ko");case"syllable":return ve(R)-ve(oe)||ae(R).localeCompare(ae(oe),"ko");case"syllable_desc":return ve(oe)-ve(R)||ae(R).localeCompare(ae(oe),"ko");case"grade":return De(R)-De(oe)||ae(R).localeCompare(ae(oe),"ko");case"grade_desc":return De(oe)-De(R)||ae(R).localeCompare(ae(oe),"ko");default:return 0}},[M,H]),O=l.useMemo(()=>n.slice().sort(X),[n,X]),Y=Number(L)||10,z=l.useMemo(()=>(i??[]).flatMap(R=>R.items.slice().sort(X).map(oe=>({item:oe,label:R.label}))),[i,X]),re=i?z.length:O.length,Q=Math.max(1,Math.ceil(re/Y)),ne=Math.min(te,Q),me=l.useMemo(()=>O.slice((ne-1)*Y,ne*Y),[O,ne,Y]),ce=l.useMemo(()=>{if(!i)return null;const R=z.slice((ne-1)*Y,ne*Y),oe=new Map;for(const{item:ae,label:ve}of R)oe.has(ve)||oe.set(ve,[]),oe.get(ve).push(ae);return[...oe.entries()].map(([ae,ve])=>({label:ae,items:ve}))},[i,z,ne,Y]);l.useEffect(()=>{Z(1)},[T,L,re]);const I=re>0?o.jsxs("div",{className:"word-search-result-block__toolbar",children:[o.jsx(Ut,{size:40,options:$,value:M,onChange:E,ariaLabel:v("wordSearch.sort.aria",{defaultValue:"\uC815\uB82C"})}),o.jsx(Ut,{size:40,options:W,value:L,onChange:F,ariaLabel:v("wordSearch.pageSizeAria",{defaultValue:"\uD398\uC774\uC9C0 \uD06C\uAE30"})}),o.jsx(fr,{page:ne,totalPages:Q,onChange:Z})]}):void 0,ee=R=>{c&&c(R)},pe=t!==void 0&&a?o.jsxs(o.Fragment,{children:[v("wordSearch.resultTitlePrefix","\uCD1D "),o.jsx("span",{style:{color:"var(--color-main)"},children:t}),v("wordSearch.resultTitleSuffix",{unit:w?ji(a):a})]}):void 0,ke=t!==void 0&&t>0&&u!==void 0&&a?v("wordSearch.resultDisc",{unit:w?Mi(a):a,max:u,selected:s.length}):void 0,Ce=b??(y?o.jsxs(o.Fragment,{children:[o.jsx("span",{className:"word-search-result-block__notice",children:y}),ke?o.jsx("span",{className:"word-search-result-block__disc",children:ke}):null]}):ke);return o.jsxs(no,{type:f,icon:e,title:pe,action:I,disc:Ce,className:xe("word-search-result-block",h),children:[o.jsxs("div",{className:"word-search-result-block__inner",children:[(i?i.length===0:n.length===0)&&o.jsxs("div",{className:"word-search-result-block__empty-wrap",children:[o.jsx("p",{className:"word-search-result-block__empty body-3",children:v("wordSearch.emptyResult","\uAC80\uC0C9 \uACB0\uACFC\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4.")}),g&&o.jsx("p",{className:"word-search-result-block__empty-hint body-3",children:g})]}),i?(ce??[]).map(R=>o.jsx("div",{className:"word-search-result-block__group",children:o.jsx("div",{className:"word-search-result-block__items",children:R.items.map(oe=>{const ae=s.includes(oe.id);return o.jsx("div",{onMouseEnter:ve=>{S(ve.currentTarget),N(oe.words)},onMouseLeave:A,children:o.jsx(se,{size:"word",align:"grid",label:oe.words.map(ve=>ve.label),subLabel:oe.words.map(ve=>ve.subLabel).filter(Boolean).length>0?oe.words.map(ve=>ve.subLabel):void 0,selected:ae,onClick:()=>ee(oe.id),minWidth:200})},oe.id)})})},R.label)):o.jsx("div",{className:"word-search-result-block__items",children:me.map(R=>{const oe=s.includes(R.id);return o.jsx("div",{onMouseEnter:ae=>{S(ae.currentTarget),N(R.words)},onMouseLeave:A,children:o.jsx(se,{size:"word",align:"grid",label:R.words.map(ae=>ae.label),subLabel:R.words.map(ae=>ae.subLabel).filter(Boolean).length>0?R.words.map(ae=>ae.subLabel):void 0,selected:oe,onClick:()=>ee(R.id),minWidth:200})},R.id)})}),k&&x&&o.jsx(Pc,{words:k,anchorRect:x})]}),Q>1&&o.jsx("div",{className:"word-search-result-block__pagination-bottom",children:o.jsx(fr,{page:ne,totalPages:Q,onChange:Z})}),(d||p)&&o.jsxs("div",{className:"word-search-result-block__actions",children:[d&&o.jsx(se,{size:"56",type:"bar",label:v("common.resetSelection","\uC120\uD0DD \uCD08\uAE30\uD654"),selected:!1,disabled:s.length===0,onClick:s.length===0?void 0:d}),p&&o.jsx("div",{onClick:s.length===0?m:void 0,children:o.jsx(se,{size:"56",type:"bar",variant:"main",label:v("wordTable.title","\uB2E8\uC5B4 \uD45C \uB9CC\uB4E4\uAE30"),disabled:s.length===0,onClick:s.length===0?void 0:p})})]})]})}var B7='.ihabdevteam-core-scope .phoneme-select-block{align-items:flex-start;flex:1 1 auto;width:100%}.ihabdevteam-core-scope .phoneme-select-block__cell{align-items:center;display:flex;flex-direction:column;gap:12px}.ihabdevteam-core-scope .phoneme-select-block__controls{align-items:center;display:flex;flex-direction:row;gap:var(--spacing-xs);justify-content:center;width:100%}@media (max-width:767px){.ihabdevteam-core-scope .phoneme-select-block__controls{align-items:center;flex-direction:column}}.ihabdevteam-core-scope .phoneme-select-block__count-control{align-self:center}.ihabdevteam-core-scope .phoneme-select-block__cell-group{align-items:flex-start;display:flex;gap:var(--spacing-xs)}.ihabdevteam-core-scope .phoneme-select-block__cell-vs{align-self:center;color:var(--color-lightGray);margin-bottom:22px;padding:0 16px}.ihabdevteam-core-scope .phoneme-select-block__pair-panels{display:flex;gap:var(--spacing-s);width:100%}.ihabdevteam-core-scope .phoneme-select-block__panel-group{display:flex;flex:1;flex-direction:column;gap:var(--spacing-m)}.ihabdevteam-core-scope .phoneme-select-block__cells{align-items:flex-start;display:flex;gap:var(--spacing-xs);justify-content:center;padding:var(--spacing-m) 0;width:100%}.ihabdevteam-core-scope .phoneme-select-block__cell-circle{align-items:center;background:var(--color-white);border:1px solid var(--color-whiteLine);border-radius:var(--radius-m);box-shadow:var(--shadow-tooltip);display:flex;height:80px;justify-content:center;position:relative;width:240px}.ihabdevteam-core-scope .phoneme-select-block__cell-index{color:var(--color-gray);line-height:1}.ihabdevteam-core-scope .phoneme-select-block__cell-jamo{align-items:stretch;display:flex;flex-direction:row;height:100%;justify-content:center;width:100%}.ihabdevteam-core-scope .phoneme-select-block__cell-jamo-part{align-items:center;color:var(--color-black);display:flex;flex:1;flex-direction:column;gap:4px;justify-content:center;padding-top:3px;position:relative}.ihabdevteam-core-scope .phoneme-select-block__cell-jamo-part--no-label{padding-top:0}.ihabdevteam-core-scope .phoneme-select-block__cell-jamo-char.h1{line-height:1}.ihabdevteam-core-scope .phoneme-select-block__cell-jamo-char--excluded{color:var(--color-whiteLine);transform:translateY(-2px)}.ihabdevteam-core-scope .phoneme-select-block__cell-jamo-part--empty .phoneme-select-block__cell-jamo-char{transform:translateY(-2px)}.ihabdevteam-core-scope .phoneme-select-block__cell-jamo-label{color:var(--color-lightGray);line-height:1}.ihabdevteam-core-scope .phoneme-select-block__cell-jamo-part--empty .phoneme-select-block__cell-jamo-label{color:var(--color-darkWhite)}.ihabdevteam-core-scope .phoneme-select-block__cell-jamo-part+.phoneme-select-block__cell-jamo-part:before{background:var(--color-whiteLine);content:"";height:20px;left:0;position:absolute;top:50%;transform:translateY(-50%);width:1px}.ihabdevteam-core-scope .phoneme-select-block__cell-jamo-part--empty{color:var(--color-darkWhite)}.ihabdevteam-core-scope .phoneme-select-block__panels{align-items:stretch;align-self:stretch;display:flex;flex-direction:column;gap:var(--spacing-m);width:100%}.ihabdevteam-core-scope .phoneme-select-block__detail{align-items:flex-start;display:flex;flex-direction:row;gap:var(--spacing-s);justify-content:center}.ihabdevteam-core-scope .phoneme-select-block__detail>.filter-panel{flex:1}.ihabdevteam-core-scope .phoneme-select-block>.filter-panel{align-self:stretch;width:100%}.ihabdevteam-core-scope .phoneme-select-block__controls .button38--bar{min-width:96px}.ihabdevteam-core-scope .phoneme-select-block__required{color:var(--color-main);line-height:1;margin-left:2px}.ihabdevteam-core-scope .phoneme-select-block__before-search{display:flex;justify-content:center;text-align:center;width:100%}.ihabdevteam-core-scope .phoneme-select-block__search-row{display:flex;gap:var(--spacing-xs);justify-content:center;width:100%}.ihabdevteam-core-scope .phoneme-select-block__checking{align-items:center;background:transparent;border:1px solid var(--color-whiteLine);border-radius:var(--radius-m);color:var(--color-disabled);cursor:default;display:flex;gap:10px;height:60px;min-width:198px;padding:0 28px}.ihabdevteam-core-scope .phoneme-select-block__checking-label{white-space:nowrap}.ihabdevteam-core-scope .phoneme-select-block__spinner{animation:phonemeSpinner .7s linear infinite;border:2px solid var(--color-whiteLine);border-radius:50%;border-top-color:var(--color-disabled);flex-shrink:0;height:18px;width:18px}@keyframes phonemeSpinner{to{transform:rotate(1turn)}}@media (max-width:767px){.ihabdevteam-core-scope .phoneme-select-block__detail,.ihabdevteam-core-scope .phoneme-select-block__pair-panels{flex-direction:column}.ihabdevteam-core-scope .phoneme-select-block__detail>.filter-panel{width:100%}.ihabdevteam-core-scope .phoneme-select-block__cell-vs{align-self:center;margin-bottom:0;padding:4px 0}.ihabdevteam-core-scope .phoneme-select-block__cells{flex-wrap:wrap}.ihabdevteam-core-scope .phoneme-select-block__cell-circle{height:64px;width:min(240px,100%)}.ihabdevteam-core-scope .phoneme-select-block__cell-jamo-part{font-size:24px}}';J(B7);function N7(e,t){return t.map(a=>{const r=typeof a=="string"?a:a.label,n=typeof a=="string"?void 0:a.displayLabel;return{label:r,value:e[r]??"",displayLabel:n}})}function qb({sections:e,selectedList:t,count:a,onCountChange:r,maxCount:n=4,minCount:i=1,combinationSections:s,combinationSectionsForSlot:c,onSelect:u,placeholder:d="-",className:p,title:m,titleIcon:h,disc:g,showInfoButton:f=!1,onClearPhoneme:b,onSearch:y,onSearchEmpty:v,searchDisabled:C=!1,searchLabel:w,searchChecking:x=!1,pairMode:S=!1,sectionType:_="page",beforeSearchContent:k,beforeContent:N,afterContent:A,hideCountControl:D=!1,ordinal:H=!1}){const{t:P}=ge.useTranslation(),T=l.useMemo(()=>P("wordPairs.infoNotes",{returnObjects:!0}),[P]),E=l.useMemo(()=>Array.from({length:n-i+1},(O,Y)=>{const z=i+Y;return{key:String(z),label:P("wordPairs.count",{n:z})}}),[P,n,i]),L=l.useMemo(()=>P("wordPairs.ordinals",{returnObjects:!0}),[P]),F=l.useCallback(O=>H?P("wordPairs.phonemeOrdinalLabel",{ordinal:L[O-1]??O}):a===1?P("wordPairs.phonemeSingleLabel","\uC74C\uC808"):P("wordPairs.phonemeN",{n:O}),[H,L,a,P]),te=l.useCallback(O=>H?P("wordPairs.phonemeContrastOrdinalLabel",{ordinal:L[O-1]??O}):a===1?P("wordPairs.phonemeContrastSingleLabel","\uB300\uB9BD \uC74C\uC808"):P("wordPairs.phonemeContrast",{n:O}),[H,L,a,P]),Z=l.useCallback((O,Y)=>Y?o.jsxs(o.Fragment,{children:[O,o.jsx("span",{className:"phoneme-select-block__required",children:"*"})]}):O,[]),{anchorRect:V,toggleAt:j,close:M}=ko(),$=l.useCallback(O=>r(Number(O)),[r]),W=oa("(max-width: 767px)"),q=l.useCallback(O=>N7(O,e).map(({label:Y,value:z,displayLabel:re})=>{const Q=!!z&&z!=="\uC5C6\uC74C";return o.jsxs("span",{className:xe("phoneme-select-block__cell-jamo-part",z?"":"phoneme-select-block__cell-jamo-part--empty",Q?"":"phoneme-select-block__cell-jamo-part--no-label"),children:[o.jsx("span",{className:`phoneme-select-block__cell-jamo-char h1${z==="\uC5C6\uC74C"?" phoneme-select-block__cell-jamo-char--excluded":""}`,children:z==="\uC5C6\uC74C"?"x":z||d}),Q&&o.jsx("span",{className:"phoneme-select-block__cell-jamo-label caption-2",children:re??Y})]},Y)}),[e,d]),X=o.jsxs(o.Fragment,{children:[o.jsx("div",{"data-tooltip-ignore":!0,children:o.jsx(se,{size:40,type:W?"dot":void 0,icon:"info",label:W?void 0:P("wordPairs.caution","\uC720\uC758\uC0AC\uD56D"),selected:!!V,onClick:O=>j(O.currentTarget)})}),V&&o.jsx(to,{title:P("wordPairs.caution","\uC720\uC758\uC0AC\uD56D"),items:T,anchorRect:V,onClose:M})]});return o.jsxs(no,{type:_,title:m,icon:h,disc:g,action:X,className:xe("phoneme-select-block",p),children:[N,(!D||f&&!(m||g))&&o.jsxs("div",{className:"phoneme-select-block__controls",children:[!D&&o.jsx(Ha,{options:E,value:String(a),onChange:$,size:40,className:"phoneme-select-block__count-control"}),f&&!(m||g)&&X]}),o.jsx("div",{className:"phoneme-select-block__cells",children:S?o.jsxs(o.Fragment,{children:[o.jsx("div",{className:"phoneme-select-block__cell-group",children:Array.from({length:a}).map((O,Y)=>{const z=t[Y*2]??{};return o.jsxs("div",{className:"phoneme-select-block__cell",children:[o.jsx("div",{className:"phoneme-select-block__cell-circle",children:o.jsx("div",{className:"phoneme-select-block__cell-jamo",children:q(z)})}),o.jsx("span",{className:"phoneme-select-block__cell-index caption-1",children:F(Y+1)})]},Y)})}),o.jsx("span",{className:"phoneme-select-block__cell-vs h3",children:P("wordPairs.phonemeSelect.vs","\uB300")}),o.jsx("div",{className:"phoneme-select-block__cell-group",children:Array.from({length:a}).map((O,Y)=>{const z=t[Y*2+1]??{};return o.jsxs("div",{className:"phoneme-select-block__cell",children:[o.jsx("div",{className:"phoneme-select-block__cell-circle",children:o.jsx("div",{className:"phoneme-select-block__cell-jamo",children:q(z)})}),o.jsx("span",{className:"phoneme-select-block__cell-index caption-1",children:te(Y+1)})]},Y)})})]}):t.map((O,Y)=>o.jsxs("div",{className:"phoneme-select-block__cell",children:[o.jsx("div",{className:"phoneme-select-block__cell-circle",children:o.jsx("div",{className:"phoneme-select-block__cell-jamo",children:q(O)})}),o.jsx("span",{className:"phoneme-select-block__cell-index caption-1",children:F(Y+1)})]},Y))}),(s||c)&&o.jsx("div",{className:"phoneme-select-block__panels",children:o.jsx("div",{className:"phoneme-select-block__detail",children:S?o.jsxs("div",{className:"phoneme-select-block__pair-panels",children:[o.jsx("div",{className:"phoneme-select-block__panel-group",children:Array.from({length:a}).map((O,Y)=>{const z=t[Y*2]??{};return o.jsx(va,{title:Z(F(Y+1),Y===0),sections:c?c(z,Y*2):s,selected:z,onSelect:u?.(Y*2),align:"newline"},Y)})}),o.jsx("div",{className:"phoneme-select-block__panel-group",children:Array.from({length:a}).map((O,Y)=>{const z=t[Y*2+1]??{};return o.jsx(va,{title:te(Y+1),sections:c?c(z,Y*2+1):s,selected:z,onSelect:u?.(Y*2+1),align:"newline"},Y)})})]}):t.map((O,Y)=>o.jsx(va,{title:Z(F(Y+1),Y===0),sections:c?c(O,Y):s,selected:O,onSelect:u?.(Y),align:"newline"},Y))})}),k&&o.jsx("div",{className:"phoneme-select-block__before-search",children:k}),(b||y||x)&&(()=>{const O=t.every(Y=>Object.entries(Y).every(([z,re])=>!re||z==="\uC885\uC131"&&re==="\uC5C6\uC74C"));return o.jsxs("div",{className:"phoneme-select-block__search-row",onClick:O?v:void 0,children:[b&&o.jsx(se,{size:"56",type:"bar",label:P("wordPairs.resetOptions","\uAC80\uC0C9 \uC635\uC158 \uCD08\uAE30\uD654"),selected:!1,disabled:O,onClick:O?void 0:b}),x?o.jsxs("div",{className:"phoneme-select-block__checking",children:[o.jsx("div",{className:"phoneme-select-block__spinner"}),o.jsx("span",{className:"button-1 phoneme-select-block__checking-label",children:w??P("wordSearch.searchButton","\uAC80\uC0C9\uD558\uAE30")})]}):y&&o.jsx(se,{size:"56",type:"bar",variant:"main",label:w??P("wordSearch.searchButton","\uAC80\uC0C9\uD558\uAE30"),disabled:O||C,onClick:O||C?void 0:y})]})})(),A]})}function Yb({title:e,sections:t,selected:a,onSelect:r,className:n}){const{t:i}=ge.useTranslation();return o.jsx(va,{className:n,title:e??i("wordSearch.filterTitle","\uB2E8\uC5B4 \uAC80\uC0C9 \uC124\uC815"),sections:t,selected:a,onSelect:r,align:"inline"})}function Ub({title:e,headerAction:t,sections:a,selected:r,onSelect:n,className:i}){const{t:s}=ge.useTranslation();return a.length===0?null:o.jsx(va,{className:i,title:e??s("training.filter.phonemeGroup",{defaultValue:"\uD6C8\uB828 \uC74C\uC808"}),headerAction:t,sections:a,selected:r,onSelect:n,align:"newline"})}function Kb({title:e,mode:t,onModeChange:a,matchMode:r,onMatchModeChange:n,positionCount:i,onPositionCountChange:s,inputMode:c,onInputModeChange:u,className:d}){const{t:p}=ge.useTranslation(),m={searchMode:p("wordPairs.filter.searchModeLabel","\uB300\uB9BD \uBC29\uC2DD"),phonemeOrder:p("wordPairs.filter.phonemeOrder","\uC785\uB825 \uC74C\uC808 \uC704\uCE58"),count:p("wordPairs.filter.countLabel","\uC785\uB825 \uC74C\uC808 \uAC2F\uC218"),inputMode:p("wordPairs.filter.inputModeLabel","\uC785\uB825 \uBC29\uC2DD"),orderAny:p("wordPairs.filter.orderAny","\uBB34\uAD00"),orderMatch:p("wordPairs.filter.orderMatch","\uC77C\uCE58"),include:p("wordPairs.mode.include","\uC74C\uC18C \uD3EC\uD568"),pick:p("wordPairs.mode.pick","\uC74C\uC18C \uB300\uB9BD"),explicit:p("wordPairs.mode.contrast","\uC74C\uC18C \uB300\uB9BD \uC9C0\uC815"),charInput:p("wordPairs.input.char","\uAE00\uC790 \uC120\uD0DD"),pronInput:p("wordPairs.input.pron","\uBC1C\uC74C \uC120\uD0DD")},h=y=>p("wordPairs.count",{n:y}),g=[{label:m.searchMode,items:[m.include,m.pick,m.explicit],display:"segmented",labelAction:o.jsx(So,{title:p("wordPairs.mode.infoTitle","\uB300\uB9BD \uBC29\uC2DD"),items:[p("wordPairs.mode.infoInclude","\uC74C\uC18C \uD3EC\uD568 \u2014 \uC120\uD0DD\uD55C \uC74C\uC18C\uAC00 \uBAA8\uB450 \uB4E4\uC5B4\uAC04 \uB2E8\uC5B4\uC640 \uADF8 \uB300\uB9BD\uC30D\uC744 \uCC3E\uC544\uC694."),p("wordPairs.mode.infoPick","\uC74C\uC18C \uB300\uB9BD \u2014 \uC120\uD0DD\uD55C \uC74C\uC18C\uAC00 \uB300\uB9BD\uC30D \uB450 \uB2E8\uC5B4\uC758 \uC2E4\uC81C \uCC28\uC774\uC810\uC77C \uB54C\uB9CC \uB9E4\uCE6D\uB3FC\uC694."),p("wordPairs.mode.infoContrast","\uC74C\uC18C \uB300\uB9BD \uC9C0\uC815 \u2014 \uAE30\uC900 \uB2E8\uC5B4\uC640 \uB300\uB9BD \uB2E8\uC5B4\uC758 \uC74C\uC18C\uB97C \uAC01\uAC01 \uC9C1\uC811 \uC120\uD0DD\uD574 \uB300\uB9BD\uC30D\uC744 \uCC3E\uC544\uC694.")]})},{label:m.phonemeOrder,items:[m.orderAny,m.orderMatch],display:"segmented",labelAction:o.jsx(So,{items:p("wordPairs.filter.phonemeOrderInfo",{returnObjects:!0})})},{label:m.count,items:[h(1),h(2)],display:"segmented"},{label:m.inputMode,items:[m.charInput,m.pronInput],display:"segmented",labelAction:o.jsx(So,{title:p("wordPairs.input.infoTitle","\uC785\uB825 \uBC29\uC2DD"),items:[p("wordPairs.input.infoChar","\uAE00\uC790 \uC120\uD0DD \u2014 \uC120\uD0DD\uD55C \uC74C\uC18C\uB85C \uB2E8\uC5B4(\uAE00\uC790 \uAE30\uC900)\uB97C \uCC3E\uC740 \uD6C4, \uB2E8\uC5B4\uC758 \uD45C\uC900 \uBC1C\uC74C \uB300\uB9BD\uC30D\uC744 \uCC3E\uC2B5\uB2C8\uB2E4."),p("wordPairs.input.infoPron","\uBC1C\uC74C \uC120\uD0DD \u2014 \uC120\uD0DD\uD55C \uC74C\uC18C\uB85C \uD45C\uC900 \uBC1C\uC74C \uB300\uB9BD\uC30D\uC744 \uCC3E\uC2B5\uB2C8\uB2E4.")]})}],f={[m.searchMode]:t==="explicit"?m.explicit:t==="pick"?m.pick:m.include,[m.phonemeOrder]:r==="ordered"?m.orderMatch:m.orderAny,[m.count]:h(i),[m.inputMode]:c==="phoneme"?m.pronInput:m.charInput},b=(y,v)=>{v===m.searchMode?a(y===m.explicit?"explicit":y===m.pick?"pick":"include"):v===m.phonemeOrder?n(y===m.orderMatch?"ordered":"unordered"):v===m.count?s(y===h(2)?2:1):v===m.inputMode&&u(y===m.pronInput?"phoneme":"word")};return o.jsx(va,{className:d,title:e??p("wordPairs.filter.searchOptionsTitle","\uB300\uB9BD \uC124\uC815"),sections:g,selected:f,onSelect:b,align:"inline"})}var D7=".ihabdevteam-core-scope .popup-list .popup-panel{max-height:calc(100% - 60px);max-width:880px;width:calc(100% - 40px)}.ihabdevteam-core-scope .popup-list .popup-content{display:flex;flex-direction:column;gap:var(--spacing-m);min-height:0;overflow:hidden}.ihabdevteam-core-scope .popup-list .table-wrap{flex:1;min-height:0;overflow-x:auto;overflow-y:auto;overscroll-behavior-y:contain}.ihabdevteam-core-scope .popup-list .table-fields,.ihabdevteam-core-scope .popup-list .table-row{min-width:520px}.ihabdevteam-core-scope .popup-list__row--selected{background:var(--color-deepWhite);color:var(--color-main);font-weight:600}";J(D7);function Zb(e){const{title:t,items:a,columns:r,gridTemplateColumns:n,searchPlaceholder:i,searchFn:s,defaultSortKey:c,defaultSortAsc:u=!0,selectedId:d,selectedIds:p,onSelect:m,onClose:h,pageSizeOptions:g=[10,25,50,100],initialPageSize:f,emptyText:b,countLabel:y,topContent:v,className:C=""}=e,{t:w}=ge.useTranslation(),x=i??w("common.search","\uAC80\uC0C9"),S=b??w("common.emptyList","\uD56D\uBAA9\uC774 \uC5C6\uC2B5\uB2C8\uB2E4."),[_,k]=l.useState(""),[N,A]=l.useState(c??r[0]?.key??""),[D,H]=l.useState(u),[P,T]=l.useState(String(f??g[0]??10)),[E,L]=l.useState(1);l.useEffect(()=>{L(1)},[_,P]);const F=s!==null,te=l.useCallback((O,Y)=>{if(!Y)return!0;const z=Y.toLowerCase();return r.some(re=>{const Q=O[re.key];return Q==null?!1:String(Q).toLowerCase().includes(z)})},[r]),Z=s??te,V=l.useMemo(()=>{const O=F?a.filter(Y=>Z(Y,_)):a;return N?[...O].sort((Y,z)=>{const re=Y[N]??"",Q=z[N]??"";return re===Q?0:D?re>Q?1:-1:re<Q?1:-1}):O},[a,_,N,D,F,Z]),j=Math.max(1,Math.ceil(V.length/Number(P))),M=V.slice((E-1)*Number(P),E*Number(P)),$=l.useCallback(O=>{N===O?H(Y=>!Y):(A(O),H(!0))},[N]),W=l.useMemo(()=>{if(typeof y=="string"&&y.includes("{n}")){const[O,Y]=y.split("{n}");return{prefix:O,suffix:Y}}return{prefix:w("common.totalCountPrefix","\uCD1D "),suffix:w("common.totalCountSuffix","\uAC1C")}},[y,w]),q=l.useMemo(()=>r.map(O=>({label:O.label,onClick:O.sortable!==!1?()=>$(O.key):void 0,className:O.className,sortDir:O.sortable!==!1&&N===O.key?D?"asc":"desc":null})),[r,N,D,$]),X=l.useMemo(()=>g.map(O=>({value:String(O),label:w("common.pageSizeLabel",{n:O})})),[g,w]);return o.jsxs(Ta,{className:`popup-list ${C}`,title:t,onClose:h,children:[v,o.jsx(vn,{count:{value:V.length,prefix:W.prefix,suffix:W.suffix},search:F?{value:_,onChange:k,placeholder:x}:void 0,pageSize:{options:X,value:P,onChange:T},pagination:{page:E,total:j,onChange:L}}),o.jsx(_n,{size:"medium",gridTemplateColumns:n,resizable:!0,fields:q,items:M,onRowClick:m,renderRow:O=>{const Y=p!=null?O.id!=null&&p.has(O.id):d!=null&&O.id===d;return r.map(z=>({content:z.render?z.render(O):O[z.key]??"",className:Y?"popup-list__row--selected":z.className}))},empty:S})]})}function Xb(e){const{title:t,message:a,topContent:r,details:n,children:i,confirmLabel:s,cancelLabel:c,hideCancel:u=!1,extraAction:d,confirmVariant:p="main",confirmDisabled:m=!1,onConfirm:h,closeOnConfirm:g=!0,onClose:f,inline:b,size:y="small",className:v}=e,{t:C}=ge.useTranslation(),w=l.useRef(!1),[x,S]=l.useState(!1);return o.jsxs(Ta,{title:t,onClose:f,closeDisabled:x,inline:b,size:y,className:xe("confirm-popup",v),buttons:[...d?[{label:d.label,variant:d.variant??"default",disabled:d.disabled||x,onClick:async({closeWithAnimation:_})=>{if(!w.current){w.current=!0,S(!0);try{await d.onClick(_),(d.closeOnClick??!0)&&_()}finally{w.current=!1,S(!1)}}}}]:[],...u?[]:[{label:c??C("common.cancel","\uCDE8\uC18C"),variant:"default",disabled:x,onClick:({closeWithAnimation:_})=>_()}],{label:s??C("common.confirm","\uD655\uC778"),variant:p,disabled:m||x,onClick:async({closeWithAnimation:_})=>{if(!w.current){w.current=!0,S(!0);try{await h(_),g&&_()}finally{w.current=!1,S(!1)}}}}],children:[r!=null&&o.jsx("div",{className:"confirm-popup__top",children:r}),n&&n.length>0&&o.jsx(wr,{children:n.map((_,k)=>o.jsx(Na,{label:_.label,children:o.jsx("span",{className:"panel-row__text body-2",children:_.value})},k))}),o.jsx("p",{className:"body-2 confirm-popup__message",children:a}),i]})}var E7=".ihabdevteam-core-scope .coupon-input-popup__input{background:var(--color-white);border:1px solid var(--color-whiteLine);border-radius:var(--radius-s);box-sizing:border-box;color:var(--color-darkGray);font-family:inherit;height:48px;letter-spacing:.06em;padding:0 14px;text-transform:uppercase;transition:border-color .15s;width:100%}.ihabdevteam-core-scope .coupon-input-popup__input:focus{border-color:var(--color-main);outline:none}.ihabdevteam-core-scope .coupon-input-popup__input::-moz-placeholder{color:var(--color-lightGray);letter-spacing:normal;text-transform:none}.ihabdevteam-core-scope .coupon-input-popup__input::placeholder{color:var(--color-lightGray);letter-spacing:normal;text-transform:none}.ihabdevteam-core-scope .coupon-input-popup__error{color:#e84040;color:var(--color-red,#e84040);margin:var(--spacing-xs) 0 0}";J(E7);function Qb({onApply:e,onCancel:t}){const{t:a}=ge.useTranslation(),[r,n]=l.useState(""),[i,s]=l.useState(!1),[c,u]=l.useState(null),d=l.useRef(null);l.useEffect(()=>{d.current?.focus()},[]);const p=l.useCallback(async g=>{const f=r.trim();if(f){s(!0),u(null);try{await e(f),g()}catch(b){u(qr(b)),s(!1)}}},[r,e]),m=l.useCallback((g,f)=>{g.key==="Enter"&&p(f)},[p]),h=g=>{n(g.target.value),u(null)};return o.jsx(Ta,{className:"coupon-input-popup",title:a("usage.couponButton","\uCFE0\uD3F0 \uC785\uB825"),size:"small",onClose:t,closeDisabled:i,buttons:[{label:a("common.cancel","\uCDE8\uC18C"),variant:"default",disabled:i,onClick:({closeWithAnimation:g})=>g()},{label:a("coupons.applyButton","\uC801\uC6A9"),variant:"main",disabled:!r.trim()||i,onClick:({closeWithAnimation:g})=>{p(g)}}],children:({closeWithAnimation:g})=>o.jsxs(o.Fragment,{children:[o.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:h,onKeyDown:f=>m(f,g),disabled:i,autoComplete:"off",spellCheck:!1}),c&&o.jsx("p",{className:"coupon-input-popup__error caption-1",role:"alert",children:c})]})})}var j7=".ihabdevteam-core-scope .tooltip-content.tooltip-training{pointer-events:none}.ihabdevteam-core-scope .tooltip-training__box{background:var(--color-white);border-radius:var(--radius-m);box-shadow:0 4px 16px rgba(0,0,0,.12);padding:10px 14px}.ihabdevteam-core-scope .tooltip-training__groups{align-items:stretch;display:flex;flex-direction:row;gap:0}.ihabdevteam-core-scope .tooltip-training__section{display:flex;flex-direction:column;flex-shrink:0;gap:6px;width:100px}.ihabdevteam-core-scope .tooltip-training__section-header{align-items:center;display:flex}.ihabdevteam-core-scope .tooltip-training__type-label{color:var(--color-darkGray);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ihabdevteam-core-scope .tooltip-training__divider{align-self:center;background:var(--color-whiteLine);flex-shrink:0;height:20px;margin:0 10px;width:1px}.ihabdevteam-core-scope .tooltip-training__items{display:flex;flex-direction:column;gap:2px;pointer-events:none}.ihabdevteam-core-scope .tooltip-training__items .training-block-button--compact{cursor:default}";J(j7);const Jb=200;function L7(e){return e.itemId?(bs()[e.trainingType]??[]).find(t=>t?.id!=null&&String(t.id)===String(e.itemId))??null:null}function eg({plan:e,anchorRect:t,offset:a=12,onClose:r}){const n=l.useMemo(()=>Qr.map(s=>({type:s,items:(e.items??[]).filter(c=>c.trainingType===s.key)})).filter(s=>s.items.length>0),[e.items]);if(n.length===0)return null;const i=o.jsx("div",{className:"tooltip-training__box",children:o.jsx("div",{className:"tooltip-training__groups",children:n.flatMap(({type:s,items:c},u)=>[u>0?o.jsx("div",{className:"tooltip-training__divider"},`div-${s.key}`):null,o.jsxs("div",{className:"tooltip-training__section",children:[o.jsx("div",{className:"tooltip-training__section-header",children:o.jsx("span",{className:"tooltip-training__type-label body-3b",children:s.label})}),o.jsx("div",{className:"tooltip-training__items",children:c.map((d,p)=>{const m=L7(d);return m?o.jsx(wn,{index:p,type:s,trainingData:m,size:"compact",hideCheckBadge:!0},d.itemId??p):null})})]},s.key)])})});return t?o.jsx(Sa,{anchorRect:t,offset:a,onClose:r,closeOnOutsideClick:!1,className:"tooltip-training",children:i}):i}var M7=".ihabdevteam-core-scope .party-container{inset:0;overflow:visible;pointer-events:none;position:fixed}.ihabdevteam-core-scope .confetti{display:none;left:0;opacity:0;position:fixed;top:0;transform:translateZ(0);will-change:transform,opacity}.ihabdevteam-core-scope .confetti--left{transform-origin:left bottom}.ihabdevteam-core-scope .confetti--right{transform-origin:right bottom}.ihabdevteam-core-scope .confetti.show{display:block;opacity:1;transition:opacity .2s linear}";J(M7);const tg=["var(--color-main)","var(--color-sub)"];function Rc({active:e=!1,count:t=40,duration:a=2e3,strength:r=1,onComplete:n,trigger:i=0}){const s=l.useMemo(()=>{const b=Math.floor(t/2),y=t-b,v=(C,w)=>Array.from({length:C}).map((x,S)=>{const _=6+Math.random()*12,k=Math.round(Math.min(18,_*Math.min(1.5,1+r*.4))),N=tg[Math.floor(Math.random()*tg.length)],A=Math.random()*300,D=(360+Math.random()*260)*r*1.2,H=(w==="left"?-95+Math.random()*40:-85-Math.random()*40)*Math.PI/180,P=Math.cos(H)*D,T=Math.sin(H)*D*1.35,E=Math.random()*720-360,L=(1200+Math.random()*3e3)*Math.min(1.6,1+r*.3),F=Math.random()>.7?"50%":"3px";return{id:`${w}-${S}`,side:w,size:k,color:N,delay:A,vx:P,vy:T,angularVel:E,life:L,borderRadius:F}});return[...v(b,"left"),...v(y,"right")]},[t,r]),c=l.useRef(null),u=l.useRef({}),d=l.useRef(null),p=l.useRef(n);l.useEffect(()=>{p.current=n},[n]);const m=l.useRef(null),h=l.useRef(null),g=()=>{if(typeof document>"u")return null;let b=document.querySelector("[data-ihab-effect-root]");return b||(b=document.createElement("div"),b.className="app-effect",b.dataset.ihabEffectRoot="",b.style.position="fixed",b.style.inset="0",b.style.pointerEvents="none",b.style.zIndex="99998",document.body.appendChild(b)),b};if(typeof document<"u"&&h.current==null&&(h.current=g()),l.useEffect(()=>{if(!e)return;if(typeof window<"u"&&window.matchMedia?.("(prefers-reduced-motion: reduce)").matches){p.current?.();return}const b=1200,y=performance.now(),v=h.current&&h.current!==document.body?h.current.getBoundingClientRect():null,C=Math.max(60,(window.innerHeight||800)*.05),w=j=>Math.max(40,(j||window.innerWidth)*.02),x=v?.width||window.innerWidth||375,S=v?.height||window.innerHeight||812,_=j=>{const M=[...j].sort(($,W)=>$-W);return M[Math.floor(M.length/2)]||1},k=_(s.map(j=>Math.abs(j.vy))),N=_(s.map(j=>Math.abs(j.vx))),A=Math.sqrt(2*b*(S*.72+C))/k,D=k*A/b,H=x*.5/(N*D),P=(j,M,$)=>Math.min($,Math.max(M,j)),T=P(A,.8,2.4),E=P(H,.7,2.2),L=s.map(j=>({...j,vx:j.vx*E,vy:j.vy*T,startTime:y+j.delay,ended:!1})),F=v?{x:v.left-w(v.width),y:v.top+v.height+C}:{x:-w(window.innerWidth),y:window.innerHeight+C},te=v?{x:v.left+v.width+w(v.width),y:v.top+v.height+C}:{x:window.innerWidth+w(window.innerWidth),y:window.innerHeight+C},Z=j=>{let M=!1;for(const $ of L){const W=u.current[$.id];if(!W||!W)continue;if(j<$.startTime){W.style.display="none";continue}if(!$._inited){const ce=$.side==="left"?F.x:te.x,I=$.side==="left"?F.y:te.y;W.style.left=`${ce}px`,W.style.top=`${I}px`,W.style.transform="translate3d(0px, 0px, 0)",W.style.display="block",W.style.zIndex="100000";try{if(typeof window<"u"&&typeof $.color=="string"&&$.color.startsWith("var(")){const ee=$.color.slice(4,-1).trim(),pe=getComputedStyle(document.documentElement).getPropertyValue(ee).trim();pe?W.style.background=pe:W.style.background="#FF0060"}}catch{}$._inited=!0}const q=(j-$.startTime)/1e3;if(q<0)continue;const X=$.life/1e3;if(q>=X){W.style.opacity="0",W.style.display="none",$.ended=!0;continue}M=!0;const O=$.side==="left"?F.x:te.x,Y=$.side==="left"?F.y:te.y,z=O+$.vx*q,re=Y+$.vy*q+.5*b*q*q,Q=($.angularVel||0)*q,ne=z-O,me=re-Y;W.style.transform=`translate3d(${ne}px, ${me}px, 0) rotate(${Q}deg)`,W.style.opacity=`${Math.max(0,1-q/X)}`}M?d.current=requestAnimationFrame(Z):p.current?.()};d.current=requestAnimationFrame(Z);const V=setTimeout(()=>{try{if((h.current?h.current.querySelectorAll(".confetti"):document.querySelectorAll(".confetti")).length===0&&!document.querySelector(".party-container")){const j=document.createElement("div");j.className="party-container",j.style.position="fixed",j.style.inset="0",j.style.pointerEvents="none",j.style.overflow="visible",j.style.zIndex="2147483647";for(const M of s){const $=document.createElement("span");$.className=`confetti confetti--${M.side}`,$.setAttribute("aria-hidden","true"),$.style.display="none",$.style.position="fixed",$.style.left="0px",$.style.top="0px",$.style.width=`${M.size}px`,$.style.height=`${Math.max(4,M.size*.6)}px`;let W=M.color;try{if(typeof W=="string"&&W.startsWith("var(")){const q=W.slice(4,-1).trim(),X=getComputedStyle(document.documentElement).getPropertyValue(q).trim();X&&(W=X)}}catch{}$.style.background=W,$.style.borderRadius=M.borderRadius,$.style.transform="translate3d(0,0,0)",$.style.opacity="0",j.appendChild($),u.current[M.id]=$}(document.body||h.current).appendChild(j),m.current=j}}catch{}},300);return()=>{if(d.current&&cancelAnimationFrame(d.current),clearTimeout(V),m.current){try{m.current.remove()}catch{}m.current=null}}},[e,a,i,s]),!e)return null;const f=o.jsx("div",{className:"party-container",ref:c,children:s.map(b=>o.jsx("span",{"aria-hidden":!0,ref:y=>{u.current[b.id]=y},className:`confetti confetti--${b.side}`,style:{width:`${b.size}px`,height:`${Math.max(4,b.size*.6)}px`,background:b.color,borderRadius:b.borderRadius}},`${b.id}-${i}`))});return typeof document<"u"?qt.createPortal(f,h.current||document.body):f}function ag({trigger:e=0,active:t=!1}){const a=l.useRef(0);return l.useEffect(()=>{a.current=e},[e]),o.jsx(Rc,{active:t,trigger:e})}var P7=".ihabdevteam-core-scope .page-title{align-items:center;display:flex;gap:12px;justify-content:space-between;padding-bottom:var(--spacing-page)}.ihabdevteam-core-scope .page-title__main{align-items:flex-start;display:flex;flex:1;flex-direction:column;min-width:0;text-align:left}.ihabdevteam-core-scope .page-title__title-row{align-items:center;display:flex;gap:12px}.ihabdevteam-core-scope .page-title__title{margin:0}.ihabdevteam-core-scope .page-title__title-action{align-items:center;display:flex;flex-shrink:0}.ihabdevteam-core-scope .page-title__badge{align-items:center;display:flex}.ihabdevteam-core-scope .page-title__sub{color:var(--color-gray);margin:6px 0 0}.ihabdevteam-core-scope .page-title__action{flex-shrink:0;margin-left:var(--spacing-s)}@media (max-width:767px){.ihabdevteam-core-scope .page-title{align-items:flex-start;flex-direction:column;gap:10px}.ihabdevteam-core-scope .page-title__action{align-self:flex-start;margin-left:0}}.ihabdevteam-core-scope .page-title__back{flex-shrink:0;margin-left:-8px;margin-right:-4px}";J(P7);function og({title:e,sub:t,rightAction:a,titleAction:r,badge:n,badgeVariant:i="default",documentTitle:s,onBack:c,backLabel:u}){const{t:d}=ge.useTranslation();al(typeof e=="string"?e:s??null);const p=u??d("common.back","\uB4A4\uB85C");return o.jsxs("div",{className:"page-title",children:[o.jsxs("div",{className:"page-title__main",children:[o.jsxs("div",{className:"page-title__title-row",children:[c&&o.jsx(se,{className:"page-title__back",size:48,type:"dot",icon:"chevron-left",iconSize:"large",useBorder:!1,iconColor:"var(--color-text-primary)",ariaLabel:p,showTooltipInfo:p,onClick:c}),o.jsx("h1",{className:"page-title__title h1",children:e}),n&&o.jsx("div",{className:"page-title__badge",children:o.jsx(ht,{label:n,size:"small",variant:i,fill:"outline"})}),r?o.jsx("div",{className:"page-title__title-action",children:r}):null]}),t&&o.jsx("p",{className:"page-title__sub body-2",children:t})]}),a?o.jsx("div",{className:"page-title__action",children:a}):null]})}function rg(e){return e??""}const ng=l.createContext({words:[],loading:!1});function ig(){return l.useContext(ng)}function sg({words:e,loading:t,error:a,statusMessage:r,localVersion:n,remoteVersion:i,progress:s,clearAndRefetch:c,checkRemoteVersion:u,children:d}){return o.jsx(ng.Provider,{value:{words:e,loading:t,error:a,statusMessage:r,localVersion:n,remoteVersion:i,progress:s,clearAndRefetch:c,checkRemoteVersion:u},children:d})}var R7=".ihabdevteam-core-scope .summary-strip{background:var(--color-surface);border:1px solid var(--color-border);border-radius:var(--radius-card);box-shadow:var(--shadow-card);padding:var(--spacing-m) var(--spacing-l);width:100%}.ihabdevteam-core-scope .summary-strip__row{align-items:center;display:flex;gap:var(--spacing-l)}.ihabdevteam-core-scope .summary-strip__items{grid-gap:var(--spacing-s) var(--spacing-l);display:grid;flex:1;gap:var(--spacing-s) var(--spacing-l);grid-template-columns:repeat(2,minmax(0,1fr));min-width:0}@media (min-width:640px){.ihabdevteam-core-scope .summary-strip__items{grid-template-columns:repeat(3,minmax(0,1fr))}}@media (min-width:1024px){.ihabdevteam-core-scope .summary-strip__items{grid-template-columns:repeat(4,minmax(0,1fr))}}@media (min-width:1280px){.ihabdevteam-core-scope .summary-strip__items{grid-template-columns:repeat(4,minmax(0,1fr));grid-template-columns:repeat(var(--summary-strip-cols,4),minmax(0,1fr))}}.ihabdevteam-core-scope .summary-strip__item{min-width:0}.ihabdevteam-core-scope .summary-strip__label{color:var(--color-gray);margin:0}.ihabdevteam-core-scope .summary-strip__value{margin:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ihabdevteam-core-scope .summary-strip__actions{align-items:center;display:flex;flex-shrink:0;gap:var(--spacing-xs)}";J(R7);function lg({items:e,actions:t,columns:a,className:r,style:n}){const i=a??e.length;return o.jsx("section",{className:xe("summary-strip",r),style:{"--summary-strip-cols":String(i),...n},children:o.jsxs("div",{className:"summary-strip__row",children:[o.jsx("div",{className:"summary-strip__items",children:e.map((s,c)=>o.jsxs("div",{className:"summary-strip__item",children:[o.jsx("p",{className:"summary-strip__label caption-1",children:s.label}),o.jsx("p",{className:"summary-strip__value body-3b",children:s.value})]},c))}),t&&o.jsx("div",{className:"summary-strip__actions",children:t})]})})}var $7='.ihabdevteam-core-scope .report-doc{--report-page-w:210mm;--report-page-h:297mm;--report-margin:14mm;display:flex;justify-content:safe center;max-width:100%;min-width:0;overflow-x:auto;padding-block:var(--spacing-s);width:100%}.ihabdevteam-core-scope .report-doc__pages{align-items:center;display:flex;flex-direction:column;gap:var(--spacing-l)}.ihabdevteam-core-scope .report-doc__page{background:#fff;box-shadow:var(--shadow-card);color:#000;display:flex;flex-direction:column;flex-shrink:0;min-height:var(--report-page-h);padding:var(--report-margin);width:var(--report-page-w)}.ihabdevteam-core-scope .report-doc__header{align-items:center;display:flex;justify-content:space-between;margin-bottom:var(--spacing-s)}.ihabdevteam-core-scope .report-doc__title{margin:0}.ihabdevteam-core-scope .report-doc__footer{align-items:center;color:var(--color-gray);display:flex;justify-content:space-between;margin-top:auto;padding-top:var(--spacing-s)}.ihabdevteam-core-scope .report-doc__footer-left{align-items:center;display:flex;gap:var(--spacing-s)}.ihabdevteam-core-scope .report-doc__page-no{font-feature-settings:"tnum";font-variant-numeric:tabular-nums}.ihabdevteam-core-scope .report-doc__logo{height:28px;width:auto}.ihabdevteam-core-scope .report-doc__measure{display:flex;flex-direction:column;opacity:0;pointer-events:none;position:absolute;width:calc(var(--report-page-w) - var(--report-margin)*2);z-index:-10}.ihabdevteam-core-scope .report-doc__measure-blocks{display:flex;flex-direction:column}.ihabdevteam-core-scope .report-doc__ruler{height:calc(var(--report-page-h) - var(--report-margin)*2)}@media print{.ihabdevteam-core-scope .report-doc{display:block;overflow:visible;padding-block:0}.ihabdevteam-core-scope .report-doc__pages{display:block}.ihabdevteam-core-scope .report-doc__page{-moz-column-break-after:page;box-shadow:none;break-after:page;page-break-after:always}.ihabdevteam-core-scope .report-doc__page:last-child{-moz-column-break-after:auto;break-after:auto;page-break-after:auto}}';J($7);const I7=(e,t)=>`${e} / ${t}`;function cg({blocks:e,sectionTitles:t,logo:a,footer:r,pageLabel:n=I7,pageWidth:i,pageHeight:s,margin:c,className:u,style:d}){const p=l.useRef(null),m=l.useRef(null),h=l.useRef(null),[g,f]=l.useState(null),b=e.map(_=>`${_.id}\0${_.section??""}\0${_.group??""}`).join("");l.useLayoutEffect(()=>{const _=p.current,k=h.current;if(!_||!k)return;const N=m.current?.offsetHeight??0,A=k.offsetHeight-N,D=Array.from(_.children).map(F=>F.offsetHeight),H=[];e.forEach((F,te)=>{const Z=H[H.length-1],V=Z?e[Z[0]]:void 0;V&&F.group!=null&&V.group===F.group?Z.push(te):H.push([te])});const P=[];let T=[],E=0;const L=()=>{T.length&&P.push(T),T=[],E=0};H.forEach(F=>{const te=F.reduce((Z,V)=>Z+D[V],0);T.length&&e[T[0]].section!==e[F[0]].section&&L(),T.length&&E+te>A&&L(),te>A?F.forEach(Z=>{T.length&&E+D[Z]>A&&L(),T.push(Z),E+=D[Z]}):(F.forEach(Z=>T.push(Z)),E+=te)}),L(),f(P)},[b]);const y=Ml,v=y,C=r??o.jsxs(o.Fragment,{children:[o.jsx("img",{src:v,alt:"IHAB",className:"report-doc__logo"}),"\xA9 IHAB, Inc. All rights reserved."]}),w=(_,k,N)=>({header:o.jsxs("div",{className:"report-doc__header",children:[o.jsx("h2",{className:"report-doc__title h3b",children:N!=null&&t?.[N]||null}),a]}),footer:o.jsxs("div",{className:"report-doc__footer caption-1",children:[o.jsx("span",{className:"report-doc__footer-left",children:C}),o.jsx("span",{className:"report-doc__page-no",children:n(_,k)})]})}),x=w(1,1,e[0]?.section),S={...i?{"--report-page-w":i}:null,...s?{"--report-page-h":s}:null,...c?{"--report-margin":c}:null,...d};return o.jsxs("div",{className:xe("report-doc",u),style:S,children:[o.jsxs("div",{className:"report-doc__measure","aria-hidden":!0,children:[o.jsx("div",{ref:h,className:"report-doc__ruler"}),o.jsxs("div",{ref:m,children:[x.header,x.footer]}),o.jsx("div",{ref:p,className:"report-doc__measure-blocks",children:e.map(_=>o.jsx("div",{children:_.content},_.id))})]}),g&&o.jsx("div",{className:"report-doc__pages",children:g.map((_,k)=>{const{header:N,footer:A}=w(k+1,g.length,e[_[0]].section);return o.jsxs("section",{className:"report-doc__page",children:[N,_.map(D=>o.jsx("div",{children:e[D].content},e[D].id)),A]},k)})})]})}var z7=".ihabdevteam-core-scope .report-info{border:1px solid var(--color-border);border-radius:var(--radius-card);margin-bottom:var(--spacing-l);padding:var(--spacing-s) var(--spacing-m)}.ihabdevteam-core-scope .report-info__title{color:var(--color-darkGray);margin:0 0 var(--spacing-s)}.ihabdevteam-core-scope .report-info__grid{grid-gap:var(--spacing-xs) var(--spacing-l);display:grid;gap:var(--spacing-xs) var(--spacing-l);grid-template-columns:repeat(4,minmax(0,1fr));grid-template-columns:repeat(var(--report-info-cols,4),minmax(0,1fr))}@media (max-width:640px){.ihabdevteam-core-scope .report-info__grid{grid-template-columns:repeat(2,minmax(0,1fr))}}.ihabdevteam-core-scope .report-info__field{align-items:baseline;display:flex;gap:var(--spacing-s)}.ihabdevteam-core-scope .report-info__label{color:var(--color-gray);flex-shrink:0;width:3.5rem}.ihabdevteam-core-scope .report-info__value{color:var(--color-darkGray);white-space:nowrap}";J(z7);function dg({title:e,fields:t,columns:a=4,className:r,style:n}){return o.jsxs("div",{className:xe("report-info",r),style:{"--report-info-cols":String(a),...n},children:[e&&o.jsx("p",{className:"report-info__title h5b",children:e}),o.jsx("div",{className:"report-info__grid",children:t.map((i,s)=>o.jsxs("div",{className:"report-info__field body-2",children:[o.jsx("span",{className:"report-info__label body-3",children:i.label}),o.jsx("span",{className:"report-info__value",children:i.value})]},s))})]})}var O7=".ihabdevteam-core-scope .update-alert{animation:update-alert-slide-in .32s cubic-bezier(.34,1.56,.64,1) both;backdrop-filter:blur(20px) saturate(180%);-webkit-backdrop-filter:blur(20px) saturate(180%);background:hsla(0,0%,97%,.92);border:1px solid var(--color-main);border-radius:var(--radius-m);box-shadow:0 4px 24px rgba(0,0,0,.14),0 1px 4px rgba(0,0,0,.08),inset 0 0 0 .5px rgba(0,0,0,.1);padding:var(--spacing-l);width:380px}.ihabdevteam-core-scope .update-alert,.ihabdevteam-core-scope .update-alert-stack{display:flex;flex-direction:column;gap:12px;max-width:calc(100vw - 32px);position:fixed;right:16px;top:16px;z-index:var(--z-alert)}.ihabdevteam-core-scope .update-alert-stack{align-items:flex-end}.ihabdevteam-core-scope .update-alert-stack .update-alert{position:relative;z-index:auto}.ihabdevteam-core-scope .update-alert:has(.update-alert__close) .update-alert__title{padding-right:24px}.ihabdevteam-core-scope .update-alert__close{align-items:center;background:none;border:none;border-radius:6px;border-radius:var(--radius-s,6px);color:#888;cursor:pointer;display:flex;font-size:20px;height:24px;justify-content:center;line-height:1;position:absolute;right:8px;top:8px;width:24px}.ihabdevteam-core-scope .update-alert__close:hover{background:rgba(0,0,0,.06);color:#333}.ihabdevteam-core-scope .update-alert__top{align-items:center;display:flex;gap:10px}@keyframes update-alert-slide-in{0%{opacity:0;transform:translateX(calc(100% + 24px))}to{opacity:1;transform:translateX(0)}}.ihabdevteam-core-scope .update-alert__icon{align-items:center;color:var(--color-main);display:flex;flex-shrink:0;font-size:20px;height:40px;justify-content:center;width:40px}.ihabdevteam-core-scope .update-alert__body{flex:1;min-width:0}.ihabdevteam-core-scope .update-alert__title{color:#1a1a1a;text-align:left}.ihabdevteam-core-scope .update-alert__message{color:#555;margin-top:2px;text-align:left}.ihabdevteam-core-scope .update-alert__action{width:100%}";J(O7);function ug({title:e,message:t,actionLabel:a,onAction:r,icon:n,onClose:i,className:s=""}){const{t:c}=ge.useTranslation(),u=a??c("common.update","\uC5C5\uB370\uC774\uD2B8");return o.jsxs("div",{className:xe("update-alert",s),role:"alert",children:[i&&o.jsx("button",{type:"button",className:"update-alert__close",onClick:i,"aria-label":c("common.close","\uB2EB\uAE30"),children:"\xD7"}),o.jsxs("div",{className:"update-alert__top",children:[o.jsx("div",{className:"update-alert__icon",children:n??o.jsx(rd,{size:20,strokeWidth:2})}),o.jsxs("div",{className:"update-alert__body",children:[o.jsx("div",{className:"update-alert__title h4",children:e}),o.jsx("div",{className:"update-alert__message body-3",children:t})]})]}),r&&o.jsx(se,{size:32,variant:"main",shape:"pill",className:"update-alert__action",onClick:r,children:u})]})}var F7=".ihabdevteam-core-scope .training-card{background:var(--color-white);border:1px solid transparent;border-radius:var(--radius-card);display:flex;flex-direction:column;gap:10px;max-width:100%;padding:18px;position:relative;transition:border-color .15s,box-shadow .15s;width:360px}.ihabdevteam-core-scope .training-card:hover{border-color:var(--color-main);box-shadow:0 4px 16px var(--color-main-a10)}.ihabdevteam-core-scope .training-card--dragging{opacity:.5}.ihabdevteam-core-scope .training-card--clickable{cursor:pointer}.ihabdevteam-core-scope .training-card__header{display:flex;flex-direction:column;gap:4px}.ihabdevteam-core-scope .training-card__title-row{align-items:center;display:flex;gap:8px;justify-content:space-between;min-width:0}.ihabdevteam-core-scope .training-card__title{color:var(--color-darkGray);margin:0;overflow:hidden;text-align:left;text-overflow:ellipsis;white-space:nowrap}.ihabdevteam-core-scope .training-card__top-actions{align-items:center;display:flex;flex-shrink:0;gap:2px;margin-right:-8px}.ihabdevteam-core-scope .training-card__publisher{background:none;border:none;color:var(--color-gray);cursor:pointer;font-size:11px;font-weight:400;max-width:120px;overflow:hidden;padding:0;text-align:left;text-overflow:ellipsis;white-space:nowrap;width:-moz-fit-content;width:fit-content}.ihabdevteam-core-scope .training-card__publisher:hover{color:var(--color-main);text-decoration:underline}.ihabdevteam-core-scope .training-card__description{color:var(--color-gray);margin:0;min-height:1.55em;overflow:hidden;text-align:left;text-overflow:ellipsis;white-space:nowrap}.ihabdevteam-core-scope .training-card__body{display:flex;flex:1;flex-direction:column;gap:8px;justify-content:flex-end}.ihabdevteam-core-scope .training-card__empty{color:var(--color-lightGray)}.ihabdevteam-core-scope .training-card__types{display:flex;flex-wrap:wrap;gap:6px;justify-content:center}.ihabdevteam-core-scope .training-card__types .button{min-width:0;padding-inline:12px}.ihabdevteam-core-scope .training-card__type{background:color-mix(in srgb,var(--badge-color,var(--color-main)) 10%,transparent);border:1px solid color-mix(in srgb,var(--badge-color,var(--color-main)) 25%,transparent);border-radius:var(--radius-full);color:var(--badge-color,var(--color-main));display:inline-block;font-size:11px;font-weight:600;padding:2px 8px}.ihabdevteam-core-scope .training-card__tags{display:flex;flex-wrap:wrap;gap:5px}.ihabdevteam-core-scope .training-card__tag{color:var(--color-main);font-size:11px}.ihabdevteam-core-scope .training-card__words{align-content:flex-start;display:flex;flex-wrap:wrap;gap:4px}.ihabdevteam-core-scope .training-card__word{background:var(--color-deepWhite);border:1px solid var(--color-whiteLine);border-radius:var(--radius-full);color:var(--color-darkGray);display:inline-block;font-size:11px;padding:2px 8px;white-space:nowrap}.ihabdevteam-core-scope .training-card__footer{align-items:center;display:flex;gap:var(--spacing-xs);justify-content:space-between;padding-top:8px}.ihabdevteam-core-scope .training-card__footer-left{align-items:center;display:flex;gap:6px;min-width:0}.ihabdevteam-core-scope .training-card__date{color:var(--color-gray);font-size:11px;white-space:nowrap}.ihabdevteam-core-scope .training-card__meta{align-items:center;display:flex;gap:4px}.ihabdevteam-core-scope .training-card__count{align-items:center;color:var(--color-lightGray);display:inline-flex;font-size:11px;gap:3px;white-space:nowrap}";J(F7);function pg({title:e,description:t,topActions:a,children:r,footerLeft:n,footerRight:i,onClick:s,draggable:c,onDragStart:u,onDragEnd:d,className:p}){const m=n!=null||i!=null,h=r!=null&&r!==!1,g=l.useCallback(f=>{s&&f.target===f.currentTarget&&(f.key==="Enter"||f.key===" ")&&(f.preventDefault(),s())},[s]);return o.jsxs("div",{className:xe("training-card",s?"training-card--clickable":"",p),onClick:s,onKeyDown:s?g:void 0,role:s?"button":void 0,tabIndex:s?0:void 0,draggable:c,onDragStart:u,onDragEnd:d,children:[o.jsxs("div",{className:"training-card__header",children:[o.jsxs("div",{className:"training-card__title-row",children:[typeof e=="string"?o.jsx("h3",{className:"training-card__title h4",children:e}):e,a!=null&&o.jsx("div",{className:"training-card__top-actions",onClick:f=>f.stopPropagation(),children:a})]}),t!=null?typeof t=="string"?o.jsx("p",{className:"training-card__description body-3",children:t}):t:o.jsx("p",{className:"training-card__description body-3","aria-hidden":"true",children:" "})]}),h&&o.jsx("div",{className:"training-card__body",children:r}),m&&o.jsxs("div",{className:"training-card__footer",children:[n!=null&&o.jsx("div",{className:"training-card__footer-left",children:n}),i!=null&&o.jsx("div",{className:"training-card__meta",children:i})]})]})}var W7=".ihabdevteam-core-scope .training-card-group{background:var(--color-darkWhite);border:1px solid var(--color-darkWhite);border-radius:var(--radius-card);overflow:hidden;transition:border-color .15s,box-shadow .15s}.ihabdevteam-core-scope .training-card-group--dragover{border-color:var(--color-main);box-shadow:0 0 0 2px var(--color-main-a10)}.ihabdevteam-core-scope .training-card-group__header{align-items:center;cursor:pointer;display:flex;gap:8px;height:60px;padding:0 12px;-webkit-user-select:none;-moz-user-select:none;user-select:none}.ihabdevteam-core-scope .training-card-group__chevron{flex-shrink:0}.ihabdevteam-core-scope .training-card-group__title{color:var(--color-black);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ihabdevteam-core-scope .training-card-group__count{color:var(--color-main);flex-shrink:0}.ihabdevteam-core-scope .training-card-group__actions{align-items:center;display:flex;flex-shrink:0;gap:8px;margin-left:auto}.ihabdevteam-core-scope .training-card-group__empty{color:var(--color-lightGray);padding:24px 16px;text-align:center}.ihabdevteam-core-scope .training-card-group__grid{align-items:flex-start;display:flex;flex-wrap:wrap;gap:12px;padding:0 12px 12px}.ihabdevteam-core-scope .training-card-group__grid>*{min-width:0}";J(W7);function hg({title:e,count:t,collapsed:a=!1,onToggle:r,sort:n,actions:i,empty:s=!1,emptyContent:c,dragOver:u=!1,onDragOver:d,onDragLeave:p,onDrop:m,children:h,className:g}){const{t:f}=ge.useTranslation(),b=xe("training-card-group",u&&"training-card-group--dragover",a&&"training-card-group--collapsed",g);return o.jsxs("div",{className:b,onDragOver:d,onDragLeave:p,onDrop:m,children:[o.jsxs("header",{className:"training-card-group__header",children:[o.jsx(se,{size:40,type:"dot",variant:"transparent-gray",useBorder:!1,icon:a?"chevron-right":"chevron-down",ariaLabel:a?f("common.expand","\uD3BC\uCE58\uAE30"):f("common.collapse","\uC811\uAE30"),className:"training-card-group__chevron",onClick:r}),typeof e=="string"?o.jsx("span",{className:"training-card-group__title h5b",children:e}):e,t!==void 0&&o.jsx("span",{className:"training-card-group__count body-3b",children:t}),(n||i!=null)&&o.jsxs("span",{className:"training-card-group__actions",onClick:y=>y.stopPropagation(),children:[n&&o.jsx(Ut,{size:40,options:n.options,value:n.value,placeholder:n.placeholder,onChange:n.onChange}),i]})]}),!a&&(s?o.jsx("div",{className:"training-card-group__empty body-3",children:c}):o.jsx("div",{className:"training-card-group__grid",children:h}))]})}var H7=".ihabdevteam-core-scope .word-table-block__meta{background:transparent}.ihabdevteam-core-scope .word-table-block__actions{align-items:center;display:flex;gap:var(--spacing-xs);justify-content:space-between}.ihabdevteam-core-scope .word-table-block__actions-left,.ihabdevteam-core-scope .word-table-block__actions-right{display:flex;gap:var(--spacing-xs)}@media (max-width:767px){.ihabdevteam-core-scope .word-table-block__actions{align-items:stretch;flex-direction:column}.ihabdevteam-core-scope .word-table-block__actions-left,.ihabdevteam-core-scope .word-table-block__actions-right{display:grid;grid-template-columns:repeat(2,1fr)}.ihabdevteam-core-scope .word-table-block__actions .button{min-width:0;width:100%}}.ihabdevteam-core-scope .my-word-table-preview-popup .popup-panel{max-width:none;width:min(1400px,94vw)}.ihabdevteam-core-scope .my-word-table-preview-popup .popup-body{overflow:auto;overscroll-behavior-y:contain}.ihabdevteam-core-scope .word-table-block__pages{display:flex;flex-direction:column;gap:24px;gap:var(--spacing-content,24px)}@media print{.ihabdevteam-core-scope .word-table-block>.filter-panel,.ihabdevteam-core-scope .word-table-block>.section__header,.ihabdevteam-core-scope .word-table-block__actions{display:none}.ihabdevteam-core-scope .word-table-block__pages .word-table{-moz-column-break-after:page;break-after:page;page-break-after:always;position:static}.ihabdevteam-core-scope .word-table-block__pages .word-table:last-child{-moz-column-break-after:auto;break-after:auto;page-break-after:auto}}";J(H7);const V7="speechear:saved_word_tables";function G7(e){if(typeof e!="object"||e===null)return!1;const t=e;return typeof t.id=="string"&&typeof t.name=="string"&&Array.isArray(t.items)}function q7(){try{const e=localStorage.getItem(V7);if(!e)return[];const t=JSON.parse(e);return Array.isArray(t)?t.filter(G7):[]}catch{return[]}}function mg({title:e,titleIcon:t,disc:a,items:r,onSaveComplete:n,onLoad:i,onRemoveItem:s,onReset:c,resetLabel:u,saveButtonLabel:d,secondarySaveButtonLabel:p,onReorder:m,showCellCount:h,onAddItem:g,className:f,renderSavePopup:b,renderWordSearch:y,hideControls:v,saveOnly:C,tableName:w,nameValue:x,onNameChange:S,descriptionValue:_,onDescriptionChange:k,namePlaceholder:N,descriptionPlaceholder:A,existingNames:D,editingName:H,onCancel:P}){const{t:T}=ge.useTranslation(),E=u??T("wordPrint.clearAllSelection","\uBAA8\uB450 \uC120\uD0DD \uD574\uC81C"),L=r===void 0,F=!!S,[te,Z]=l.useState([]),V=(x??"").trim(),j=V||(N??"").trim(),M=(_??"").trim()||(A??"").trim(),$=(D??[]).map(ue=>ue.trim().toLowerCase()),W=[H?.trim().toLowerCase(),...te].filter(ue=>!!ue),q=[...$];for(const ue of W){const Te=q.indexOf(ue);Te!==-1&&q.splice(Te,1)}const X=V!==""&&q.includes(V.toLowerCase()),[O,Y]=l.useState(Array(4).fill(null)),[z,re]=l.useState(4),[Q,ne]=l.useState(null),[me,ce]=l.useState("landscape"),[I,ee]=l.useState(["\uC774\uBBF8\uC9C0","\uB2E8\uC5B4","\uD45C\uC900 \uBC1C\uC74C"]),[pe,ke]=l.useState("\uD45C\uC2DC"),[Ce,R]=l.useState(!0),[oe,ae]=l.useState(!0),ve=l.useRef(null),De=l.useRef([]),[ze,Re]=l.useState(8),[Me,Ye]=l.useState("right"),[Ne,Ve]=l.useState(!1),[Fe,be]=l.useState(!1),{toastMessage:Ke,toastType:We,showWarning:Le,clearToast:Ge}=mn("warning"),vt=l.useCallback(()=>ne(null),[ne]),[Ue,Xe]=l.useState(()=>Math.max(r?.length??1,1));l.useEffect(()=>{L||Xe(ue=>Math.max(ue,r?.length??1))},[r?.length,L]);const ut=L?z:h?Math.max(Ue,r?.length??1):Math.max(r?.length??0,1),{width:Pe,height:rt}=io[me],et=!L&&!h,Oe=r?.length??0,Qe=Math.min(ze,Math.max(Oe,1)),tt=et?Qe:ut,xt=et?jm(r??[],tt):null,Et=!!xt&&xt.length>1,it=L?O.some(ue=>ue!==null&&ue.length>1):(r??[]).some(ue=>ue.words.length>1),Ht=w?.trim()||`${Kr(Yr())} ${it?T("wordTable.printFileNamePair","\uB300\uB9BD\uC30D\uD45C"):T("wordTable.printFileNameSingle","\uB2E8\uC5B4\uD45C")}`,mt=l.useCallback(()=>Et?De.current.filter(ue=>ue!==null):ve.current?[ve.current]:[],[Et]),{print:Vt,openNewWindow:ia,downloadHtml:Gt}=Nn({getElements:mt,paperW:Pe,paperH:rt,fileName:Ht,onPopupBlocked:()=>{Le(T("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."))}}),Ea=ue=>{re(ue),Y(Te=>{const at=Array(ue).fill(null);return Te.slice(0,ue).forEach((Ct,_t)=>{at[_t]=Ct}),at}),ne(null)},sa=ue=>{Y(Te=>{const at=[...Te];return at[ue]=null,at}),Q===ue&&ne(null)},Kt=ue=>{if(Q===null)return;const Te=Q;Y(Ct=>{const _t=[...Ct];return _t[Te]=ue,_t});const at=O.findIndex((Ct,_t)=>_t>Te&&Ct===null);ne(at!==-1?at:null)},ja=L?O.some(ue=>ue?.some(Te=>!!Te.colloquialPronunciation)):(r??[]).some(ue=>ue.words.some(Te=>!!Te.colloquialLabel)),jt=l.useMemo(()=>Ma()?L?O.flatMap(ue=>(ue??[]).map(Te=>[Te.word,Te.homonum])):(r??[]).flatMap(ue=>ue.words.map(Te=>[Te.label,Te.homonum])):[],[L,O,r]),[Ga,$t]=l.useState(!1);l.useEffect(()=>{if(jt.length===0)return;let ue=!1;return Promise.all(jt.map(([Te,at])=>Yo(Te,at))).then(Te=>{ue||$t(Te.some(Boolean))}),()=>{ue=!0}},[jt]);const ya=jt.length>0&&Ga,qa=l.useMemo(()=>[...L||h?[{label:T("wordTable.filter.columns","\uCE78 \uC218"),items:yk.map(ue=>({value:`${ue}\uCE78`,displayLabel:T("wordTable.filter.column",{count:ue})})),display:"segmented"}]:[],...et&&(r?.length??0)>0?[Om(T,{hasPairs:it,itemCount:Oe})]:[],...Et?[Fm(T)]:[]],[T,L,h,et,r?.length,it,Oe,Et]),Je={...L||h?{[T("wordTable.filter.columns","\uCE78 \uC218")]:`${L?z:Ue}\uCE78`}:{},...et&&(r?.length??0)>0?{[T(it?"wordTable.filter.itemsPerPagePair":"wordTable.filter.itemsPerPageWord")]:`${Qe}\uAC1C`}:{},...Et?{[T("wordTable.filter.pageNumber","\uD398\uC774\uC9C0 \uBC88\uD638")]:Wm[Me]}:{}},It=(ue,Te)=>{Te===T("wordTable.filter.columns","\uCE78 \uC218")?L?Ea(parseInt(ue)):Xe(parseInt(ue)):Te===T(it?"wordTable.filter.itemsPerPagePair":"wordTable.filter.itemsPerPageWord")?Re(parseInt(ue)):Te===T("wordTable.filter.pageNumber","\uD398\uC774\uC9C0 \uBC88\uD638")&&Ye(Hm(ue))},kt=L?O.filter(ue=>ue!==null).map(ue=>({id:ue[0].word,words:ue.map(Te=>({label:Te.word,subLabel:Te.pronunciation,homonum:Te.homonum}))})):r??[],xa=(ue=!1)=>{if(be(ue),F&&n){const Te=j.trim().toLowerCase();Te&&Z(at=>at.includes(Te)?at:[...at,Te]),n(j,kt,M||void 0,ue);return}if(C&&n){n("",kt,void 0,ue);return}if(n){Ve(!0);return}Gt()},[la,ie]=l.useState(!1),[fe,ye]=l.useState(""),U=fe.trim(),de=U!==""&&$.includes(U.toLowerCase()),_e=()=>{ye(j?`${j} (\uBCF5\uC0AC)`:""),ie(!0)},Se=()=>{!U||de||!n||(n(U,kt,M||void 0,!0),ie(!1))},Ae=kt.length===0,$e=Ae||F&&(j===""||X),nt=()=>{if(Ae){Le(T("wordTable.emptyItems","\uB2E8\uC5B4\uB97C 1\uAC1C \uC774\uC0C1 \uCD94\uAC00\uD574\uC8FC\uC138\uC694."));return}if(F&&j===""){Le(T("wordTable.save.nameRequired","\uD45C \uC774\uB984\uC744 \uC785\uB825\uD574 \uC8FC\uC138\uC694."));return}F&&X&&Le(T("wordTable.save.duplicateName","\uC774\uBBF8 \uC0AC\uC6A9 \uC911\uC778 \uC774\uB984\uC785\uB2C8\uB2E4."))},ct=o.jsx(so,{items:kt,orientation:me,contentTypes:I,cutLine:pe,showOutline:Ce,showDivLine:oe,count:ut});return o.jsxs(o.Fragment,{children:[o.jsxs(no,{type:"page",icon:t,title:e,disc:a,className:xe("word-table-block",f),children:[la&&o.jsx(Ta,{size:"small",title:p??T("wordTable.saveAsNewButton","\uB2E4\uB978 \uC774\uB984\uC73C\uB85C \uC800\uC7A5"),onClose:()=>ie(!1),footer:({closeWithAnimation:ue})=>o.jsxs(o.Fragment,{children:[o.jsx(se,{size:48,type:"bar",label:T("common.cancel","\uCDE8\uC18C"),onClick:ue}),o.jsx(se,{size:48,type:"bar",variant:"main",label:T("common.save","\uC800\uC7A5"),disabled:!U||de,onClick:Se})]}),children:o.jsx(Wa,{label:T("wordTable.save.nameLabel","\uC774\uB984"),value:fe,onChange:ye,placeholder:T("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:Se,error:de?T("wordTable.save.duplicateName","\uC774\uBBF8 \uC0AC\uC6A9 \uC911\uC778 \uC774\uB984\uC785\uB2C8\uB2E4."):void 0})}),Ne&&n&&b?.({defaultName:typeof e=="string"?e:T("wordTable.defaultName","\uB2E8\uC5B4 \uD45C"),preview:ct,previewW:Pe,previewH:rt,items:kt,existingNames:q7().map(ue=>ue.name),saveAsNew:Fe,onSave:(ue,Te)=>{n(ue,kt,Te,Fe),Ve(!1)},onCancel:()=>Ve(!1)}),(L||g)&&Q!==null&&y?.({cellIndex:Q,onConfirm:L?Kt:ue=>{if(g){const Te=ue[0];Te&&g({id:Te.word,words:[{label:Te.word,subLabel:Te.pronunciation,homonum:Te.homonum}]})}ne(null)},onClose:vt}),!v&&o.jsx(Bn,{hasImage:ya,hasColloquial:ja,contentTypes:I,orientation:me,showOutline:Ce,cutLine:pe,showDivLine:oe,setters:{setContentTypes:ee,setOrientation:ce,setShowOutline:R,setCutLine:ke,setShowDivLine:ae},showCutLine:(et?tt:ut)>1,showDivLine2:it,middleSections:qa,extraSelected:Je,onExtraSelect:It}),Et&&xt?o.jsx("div",{className:"word-table-block__pages",children:xt.map((ue,Te)=>o.jsx(so,{orientation:me,contentTypes:I,cutLine:pe,showOutline:Ce,showDivLine:oe,count:tt,items:ue,onRemoveItem:s,contentRef:at=>{De.current[Te]=at},pageNumber:{current:Te+1,total:xt.length},pageNumberPosition:Me},Te))}):o.jsx(so,{orientation:me,contentTypes:I,cutLine:pe,showOutline:Ce,showDivLine:oe,count:ut,items:L?void 0:r??[],editCells:L?O:void 0,activeCell:Q,onActivateCell:L||g?ne:void 0,onRemoveCell:L?sa:void 0,onRemoveItem:L?void 0:s,onReorder:L?void 0:m,showFillerAdd:!!g,contentRef:ve}),F&&!v&&o.jsxs(wr,{size:"medium",labelWidth:64,useBorder:!1,useRowBorder:!1,className:"word-table-block__meta",children:[o.jsx(Na,{variant:"custom",label:T("wordTable.save.nameLabel","\uC774\uB984"),required:!0,align:"vertical",useFullWidth:!0,children:o.jsx(Wa,{required:!0,value:x??"",onChange:S,placeholder:N?N+T("wordTable.save.autoFillHint"," (Tab \uB610\uB294 space \uC785\uB825\uC2DC \uC790\uB3D9 \uC785\uB825)"):T("wordTable.save.placeholder","\uC774 \uB2E8\uC5B4\uD45C\uC5D0 \uB300\uD55C \uC81C\uBAA9\uC744 \uC785\uB825\uD558\uC138\uC694."),ariaLabel:T("wordTable.save.nameLabel","\uC774\uB984"),maxLength:40,size:48,fullWidth:!0,error:X?T("wordTable.save.duplicateName","\uC774\uBBF8 \uC0AC\uC6A9 \uC911\uC778 \uC774\uB984\uC785\uB2C8\uB2E4."):void 0,onKeyDown:ue=>{(ue.key==="Tab"&&!ue.shiftKey||ue.key===" ")&&!(x??"").trim()&&(N??"").trim()&&(ue.preventDefault(),S?.(N??""))}})}),o.jsx(Na,{variant:"custom",label:T("wordTable.save.descriptionLabel","\uC124\uBA85"),align:"vertical",useFullWidth:!0,children:o.jsx(Wa,{value:_??"",onChange:k,placeholder:A?A+T("wordTable.save.autoFillHint"," (Tab \uB610\uB294 space \uC785\uB825\uC2DC \uC790\uB3D9 \uC785\uB825)"):T("wordTable.save.descriptionPlaceholder","\uC774 \uB2E8\uC5B4\uD45C\uC5D0 \uB300\uD55C \uC124\uBA85\uC744 \uC785\uB825\uD558\uC138\uC694."),ariaLabel:T("wordTable.save.descriptionLabel","\uC124\uBA85"),maxLength:200,multiline:!0,rows:2,fullWidth:!0,onKeyDown:ue=>{(ue.key==="Tab"&&!ue.shiftKey||ue.key===" ")&&!(_??"").trim()&&(A??"").trim()&&(ue.preventDefault(),k?.(A??""))}})})]})]}),!v&&o.jsxs("div",{className:"word-table-block__actions",children:[o.jsxs("div",{className:"word-table-block__actions-left",children:[!C&&c&&o.jsx(se,{size:40,type:"bar",label:E,onClick:c}),!C&&i&&o.jsx(se,{size:40,type:"bar",label:T("wordTable.load","\uBD88\uB7EC\uC624\uAE30"),onClick:i}),!C&&o.jsx(se,{size:40,type:"bar",label:T("wordTable.openNewWindow","\uC0C8 \uCC3D\uC73C\uB85C \uBCF4\uAE30"),onClick:ia})]}),o.jsxs("div",{className:"word-table-block__actions-right",children:[P&&o.jsx(se,{size:"56",type:"bar",label:T("common.cancel","\uCDE8\uC18C"),onClick:P}),!C&&o.jsx(se,{size:"56",type:"bar",label:T("wordTable.print","\uC778\uC1C4\uD558\uAE30"),onClick:Vt}),p&&o.jsx(se,{size:"56",type:"bar",label:p,onClick:()=>F?_e():xa(!0),disabled:Ae,onDisabledClick:()=>{Le(T("wordTable.emptyItems","\uB2E8\uC5B4\uB97C 1\uAC1C \uC774\uC0C1 \uCD94\uAC00\uD574\uC8FC\uC138\uC694."))}}),o.jsx(se,{size:"56",type:"bar",variant:"main",label:d??T("wordTable.saveButton","\uC800\uC7A5\uD558\uAE30"),onClick:()=>xa(!1),disabled:$e,onDisabledClick:nt})]})]}),o.jsx(ro,{message:Ke,type:We,onClose:Ge})]})}var Y7=".ihabdevteam-core-scope .word-table-thumb{grid-gap:1px;background:var(--color-darkWhite);border-bottom:1px solid var(--color-darkWhite);display:grid;gap:1px;grid-auto-rows:minmax(min-content,1fr);height:140px;overflow:hidden}.ihabdevteam-core-scope .word-table-thumb__cell{align-items:center;background:var(--color-white);display:flex;flex-direction:column;gap:1px;justify-content:center;min-height:0;overflow:hidden;padding:4px}.ihabdevteam-core-scope .word-table-thumb__word{color:var(--color-black)}.ihabdevteam-core-scope .word-table-thumb .word-table-thumb__word{line-height:1.2}.ihabdevteam-core-scope .word-table-thumb__divider{background:var(--color-darkWhite);display:block;height:1px;margin:1px 0;width:30%}";J(Y7);function $c({items:e,className:t}){const a=e.length,r=a<=3?1:2,n=Math.ceil(a/r)||1,i=r*n;return o.jsx("div",{className:xe("word-table-thumb",t),style:{gridTemplateColumns:`repeat(${r}, 1fr)`},children:Array.from({length:i},(s,c)=>{const u=e[c];return u?o.jsx("div",{className:"word-table-thumb__cell",children:(u.words.length?u.words:[{label:u.id}]).map((d,p)=>o.jsxs(l.Fragment,{children:[p>0&&o.jsx("span",{className:"word-table-thumb__divider"}),o.jsx("span",{className:"word-table-thumb__word body-3",children:d.label})]},p))},c):o.jsx("div",{className:"word-table-thumb__cell word-table-thumb__cell--empty"},c)})})}var U7=".ihabdevteam-core-scope .word-table-button{background:var(--color-white);border:1px solid var(--color-whiteLine);border-radius:8px;border-radius:var(--radius-s,8px);box-sizing:border-box;cursor:pointer;display:flex;flex-direction:column;overflow:hidden;position:relative;transition:border-color .15s,box-shadow .15s;width:240px}.ihabdevteam-core-scope .word-table-button:hover{border-color:var(--color-main);box-shadow:0 2px 10px rgba(0,0,0,.06)}.ihabdevteam-core-scope .word-table-button:focus-visible{outline:2px solid var(--color-main);outline-offset:1px}.ihabdevteam-core-scope .word-table-button--selected{border-color:var(--color-main);box-shadow:0 0 0 1px var(--color-main) inset}.ihabdevteam-core-scope .word-table-button__thumb{flex:0 0 auto;height:290px}.ihabdevteam-core-scope .word-table-button__info{align-items:flex-start;display:flex;flex-direction:row;gap:8px;min-width:0;padding:12px 14px 0;position:relative}.ihabdevteam-core-scope .word-table-button__more{position:absolute;right:10px;top:8px}.ihabdevteam-core-scope .word-table-button__title{padding-right:34px}.ihabdevteam-core-scope .word-table-button--no-footer .word-table-button__info{flex:1 1 auto;min-height:0}.ihabdevteam-core-scope .word-table-button--no-footer .word-table-button__info-text{align-self:stretch}.ihabdevteam-core-scope .word-table-button__info-text{align-items:flex-start;display:flex;flex:1 1 auto;flex-direction:column;gap:4px;min-width:0;text-align:left}.ihabdevteam-core-scope .word-table-button__title{-webkit-line-clamp:2;-webkit-box-orient:vertical;color:var(--color-black);display:-webkit-box;overflow:hidden;overflow-wrap:anywhere}.ihabdevteam-core-scope .word-table-button__desc{-webkit-line-clamp:2;-webkit-box-orient:vertical;color:var(--color-gray);display:-webkit-box;overflow:hidden}.ihabdevteam-core-scope .word-table-button__meta{color:var(--color-gray)}.ihabdevteam-core-scope .word-table-button__meta-row{align-items:center;display:flex;gap:8px;justify-content:space-between;min-width:0;padding:12px 14px 14px}.ihabdevteam-core-scope .word-table-button__badges{align-items:center;display:flex;flex:0 0 auto;gap:4px}.ihabdevteam-core-scope .word-table-button--no-footer .word-table-button__meta-row{margin-top:auto}.ihabdevteam-core-scope .word-table-button__footer{display:flex;flex-direction:column;gap:8px;margin-top:auto;min-width:0;padding:12px 14px 14px}.ihabdevteam-core-scope .word-table-button__store-by{align-items:center;display:inline-flex;gap:6px;min-width:0;overflow:hidden}.ihabdevteam-core-scope .word-table-button__store-by .training-card__date{white-space:nowrap}.ihabdevteam-core-scope .word-table-button__store-stats{align-items:center;align-self:flex-end;display:inline-flex;gap:4px}.ihabdevteam-core-scope .word-table-button__more{flex:0 0 auto}.ihabdevteam-core-scope .word-table-button__badge{pointer-events:none}.ihabdevteam-core-scope .word-table-button__new-dot{background:var(--color-main);border-radius:50%;box-shadow:0 0 0 2px var(--color-white);height:10px;pointer-events:none;position:absolute;right:8px;top:8px;width:10px;z-index:3}";J(U7);function bg({items:e,name:t,description:a,createdAt:r,published:n,publishedLabel:i,shared:s,sharedLabel:c,isNew:u,publisherName:d,publishedAt:p,likeCount:m,downloadCount:h,onPublisherClick:g,selected:f,onClick:b,onMore:y,titleNode:v,className:C}){const{t:w}=ge.useTranslation(),x=v!=null,S=d!=null||p!=null||m!=null||h!=null,_=k=>{!x&&(k.key==="Enter"||k.key===" ")&&(k.preventDefault(),b?.())};return o.jsxs("div",{className:xe("word-table-button",f?"word-table-button--selected":"",S?"":"word-table-button--no-footer",C),role:"button",tabIndex:0,"aria-label":t,onClick:x?void 0:b,onKeyDown:_,children:[u&&o.jsx("span",{className:"word-table-button__new-dot","aria-label":w("myWordTable.newBadge","\uC0C8\uB85C \uB9CC\uB4E0 \uD45C")}),o.jsx($c,{items:e,className:"word-table-button__thumb"}),o.jsxs("div",{className:"word-table-button__info",children:[o.jsxs("div",{className:"word-table-button__info-text",children:[v??o.jsx("div",{className:"word-table-button__title h4",children:t}),a&&o.jsx("div",{className:"word-table-button__desc body-3",children:a})]}),y&&!x&&o.jsx(se,{className:"word-table-button__more",size:32,type:"dot",variant:"transparent-gray",useBorder:!1,icon:"ellipsis",ariaLabel:w("common.moreFor",{name:t}),onClick:k=>{k.stopPropagation(),y(k)}})]}),(r||n||s)&&o.jsxs("div",{className:"word-table-button__meta-row",children:[o.jsx("span",{className:"word-table-button__meta caption-1",children:r?Ur(r,w):""}),o.jsxs("span",{className:"word-table-button__badges",children:[n&&o.jsx(ht,{className:"word-table-button__badge",size:"small",variant:"main",fill:"soft",iconLeft:"book-marked",label:i??"\uBC1C\uD589\uB428"}),s&&o.jsx(ht,{className:"word-table-button__badge",size:"small",fill:"soft",iconLeft:"link",label:c??"\uACF5\uC720 \uC911"})]})]}),S&&o.jsxs("div",{className:"word-table-button__footer",children:[o.jsxs("span",{className:"word-table-button__store-by",children:[d&&o.jsx("button",{className:"training-card__publisher body-4",type:"button",onClick:k=>{k.stopPropagation(),g?.()},children:d}),p&&o.jsx("span",{className:"training-card__date body-4",children:Ur(p,w)})]}),o.jsxs("span",{className:"word-table-button__store-stats",children:[m!=null&&o.jsx(ht,{size:"small",fill:"soft",variant:"like",iconLeft:"heart",label:String(m)}),h!=null&&o.jsx(ht,{size:"small",fill:"soft",variant:"main",iconLeft:"download",label:String(h)})]})]})]})}/**
|
|
983
|
+
\uC804\uB2EC\uD558\uBBC0\uB85C(\uCF54\uB4DC \uD655\uC778\uB428) \uBAA8\uBC14\uC77C\uC5D0\uC11C \uC790\uC5F0 \uD3ED\uC73C\uB85C \uB418\uB3CC\uB9AC\uB824\uBA74 \uD2B9\uC774\uB3C4\uB85C\uB294 \uBD80\uC871. */.ihabdevteam-core-scope .trp-row__judge .badge{min-width:0!important;min-width:auto!important}.ihabdevteam-core-scope .result-table--answer .trp-row__judge .badge{height:26px;padding:0 12px}}`;J(y7);function Ec(...e){for(const t of e)if(typeof t=="string"){const a=t.trim();if(a.length)return a}else{if(typeof t=="number"||typeof t=="boolean")return String(t);if(Array.isArray(t)&&t.length)return t.join(", ");if(t&&typeof t=="object"){const a=t,r=[a.text,a.label,a.value];for(const n of r){if(typeof n=="string"&&n.trim().length)return n.trim();if(typeof n=="number"||typeof n=="boolean")return String(n)}}}return null}function x7(e){return Ec(e?.question,e?.q,e?.sentence,e?.text,e?.prompt,e?.wording)}function Hb(e){if(!e)return;if(typeof e.decision=="boolean")return e.decision;if(typeof e.correct=="boolean")return e.correct;if(typeof e.heard=="boolean")return e.heard;if(typeof e.judgement=="boolean")return e.judgement;const t=Ec(e?.status,e?.result,e?.judge,e?.note);if(t){const a=t.toLowerCase();if(["ok","true","\uB9DE\uC74C","\uC815\uB2F5"].some(r=>a.includes(r)))return!0;if(["ng","false","\uD2C0\uB9BC","\uC624\uB2F5"].some(r=>a.includes(r)))return!1}}function jc(e){const{score:t,contextsLength:a,results:r=[],subtitle:n,onReplay:i,onClose:s,inline:c=!1}=e||{},{t:u}=ge.useTranslation();l.useEffect(()=>{const b=a??0;t!=null&&b>0&&t/b>.5&&window.dispatchEvent(new CustomEvent("party:trigger",{detail:{count:140,strength:1.6,duration:2200}}))},[t,a]);const d=l.useCallback(b=>{const y=Hb(b),v=Ec(b?.wording,b?.label);return y===!0?{variant:"main",label:v??u("training.result.heardWell","\uC798 \uB4E4\uC5C8\uC5B4\uC694")}:y===!1?{variant:"danger",label:v??u("training.result.notHeard","\uBABB \uB4E4\uC5C8\uC5B4\uC694")}:{variant:"disabled",label:v??u("training.result.notJudged","\uBBF8\uD310\uC815")}},[u]),p=a??0,m=t??0,h=l.useMemo(()=>Array.isArray(r)?r:[],[r]),g=l.useMemo(()=>h.map(b=>{const y=b??{},v=x7(y)||"(\uB0B4\uC6A9\uC5C6\uC74C)",{variant:C,label:w}=d(y),x=Array.isArray(y.corrects)?y.corrects:[],S=x.length?x.join(", "):y.answer!=null&&y.answer!==""?String(y.answer):null,_=typeof y.selectedText=="string"?y.selectedText:null,k=Hb(y)===!0;return{problem:v,variant:C,label:w,answer:S,selectedText:_,isCorrect:k}}),[h,d]),f=l.useMemo(()=>g.some(b=>b.answer!==null||b.selectedText!==null),[g]);return o.jsx(Ta,{onClose:s,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:b,closeWithAnimation:y})=>o.jsxs("div",{className:"trp-actions",children:[o.jsx(se,{size:56,type:"bar",label:u("training.result.replay","\uB2E4\uC2DC\uD558\uAE30"),onClick:()=>b(i)}),o.jsx(se,{size:56,type:"bar",label:u("training.result.done","\uC644\uB8CC"),variant:"main",onClick:y})]}),children:()=>o.jsxs("div",{className:"trp-result is-on",children:[o.jsxs("header",{className:"trp-result__head",children:[o.jsx("p",{className:"trp-result__eyebrow caption-1",children:u("training.result.eyebrow","\uD6C8\uB828 \uC644\uB8CC")}),o.jsx("h1",{className:"trp-result__title h2",children:u("training.result.title","\uD6C8\uB828\uC744 \uBAA8\uB450 \uB9C8\uCCE4\uC2B5\uB2C8\uB2E4.")}),n&&o.jsx("p",{className:"trp-result__subtitle body-3",children:n}),o.jsx("div",{className:"trp-score",children:o.jsxs("div",{className:"trp-score__figure","aria-label":u("training.result.scoreAria",{correct:m,total:p}),children:[o.jsx("span",{className:"trp-score__big",children:m}),o.jsx("span",{className:"trp-score__sep",children:"/"}),o.jsx("span",{className:"trp-score__total",children:p})]})})]}),g.length>0&&o.jsx("section",{className:"trp-result__body",children:o.jsxs("div",{className:`result-table${f?" result-table--answer":""}`,role:"table","aria-label":u("training.result.tableAriaLabel","\uBB38\uD56D\uBCC4 \uD310\uC815"),children:[o.jsxs("div",{className:"result-table__head caption-1",role:"row",children:[o.jsx("span",{role:"columnheader",children:u("training.result.colProblem","\uBB38\uC81C")}),f&&o.jsx("span",{role:"columnheader",children:u("training.result.colAnswerSelected","\uC815\uB2F5 \xB7 \uC120\uD0DD")}),o.jsx("span",{className:"col-right",role:"columnheader",children:u("training.result.colJudge","\uD310\uC815")})]}),g.map((b,y)=>o.jsxs("div",{className:"result-table__row",role:"row",children:[o.jsxs("div",{className:"trp-row__problem",children:[o.jsx("span",{className:"trp-row__no caption-1",children:String(y+1).padStart(2,"0")}),o.jsx("div",{className:"trp-row__q body-2",children:b.problem})]}),f&&o.jsxs("div",{className:"trp-row__answers",children:[b.answer!==null&&o.jsxs("div",{className:"trp-row__answer-line",children:[o.jsx("span",{className:"trp-row__answer-label answer-correct caption-1",children:u("training.result.colAnswer","\uC815\uB2F5")}),o.jsx("span",{className:"trp-row__answer-value body-2",children:b.answer})]}),o.jsxs("div",{className:"trp-row__answer-line",children:[o.jsx("span",{className:`trp-row__answer-label answer-selected caption-1 ${b.isCorrect?"is-correct":"is-wrong"}`,children:u("training.result.colSelected","\uC120\uD0DD")}),o.jsx("span",{className:`trp-row__answer-value body-2 ${b.isCorrect?"is-correct":"is-wrong"}`,children:b.selectedText??"\u2014"})]})]}),o.jsx("div",{className:"trp-row__judge",children:o.jsx(ht,{variant:b.variant,label:b.label,fill:"soft",minWidth:80})})]},y))]})})]})})}function C7(e){l.useEffect(()=>{if(!e)return;const t=new Date;return()=>{const a=new Date;a.getTime()-t.getTime()<5e3||Ji({trainingType:e,startedAt:t.toISOString(),endedAt:a.toISOString()})}},[e])}function Lc(e,t){return e&&e.id||`page-${t??0}`}function Mc(e,t){return e&&e.key||`step-${t??0}`}function $n(){return{pageIndex:0,stepIndex:0,answersByPage:{}}}function _7(e,t){return typeof e?.props=="function"?e.props(t)||{}:e?.props||{}}const Vb=new Set(["LISTEN_IN_NOISE","SHORT_STORY","LONG_STORY","ORDERING_SENTENCE"]),w7=e=>o.jsx(jc,{score:e.score,contextsLength:e.contextsLength,results:e.results,onReplay:e.onReplay,onClose:e.onClose});function k7(e){const{scenario:t,title:a,subTitle:r,depth:n,icon:i,wrapperStyle:s,iconTooltip:c,pageIndex:u,pageCount:d,stepIndex:p,stepCount:m,onBack:h,onComplete:g,onNext:f,onSettings:b,useNoiseSetting:y=!0,children:v,ariaLabel:C,label:w,buildResults:x,onResult:S,typeKey:_,entryPoint:k,dailyTotal:N,itemRef:A,renderResultPopup:D}=e;C7(_&&!Vb.has(_)?_:"");const H=l.useRef(0);l.useEffect(()=>{H.current=Date.now()},[]);const{t:P}=ge.useTranslation(),T=S,E=!!t,L=t?.id||null,F=t?.meta||{},te=Array.isArray(t?.pages)?t.pages:[],Z=Array.isArray(v)||l.isValidElement(v)&&typeof v!="function"?l.Children.toArray(v).filter(l.isValidElement):[],V=Z.length>0,j=ie=>ie===Sr||ie?.__isTrainingPage===!0,M=V&&Z.some(ie=>j(ie.type)),$=M?Z.filter(ie=>j(ie.type)).map((ie,fe)=>{const ye=ie.props||{};return{id:`children-page-${fe}`,steps:l.Children.toArray(ye.children).filter(l.isValidElement),pageTop:ye.pageTop||ye.top||null,pageBottom:ye.pageBottom||ye.bottom||null}}):[{id:"children-page-0",steps:Z}],W=V&&!E&&typeof v!="function",q=W?Math.max(1,$.length):0;l.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")}},[]),l.useEffect(()=>{if(typeof document>"u"||!document.body)return;const ie=document.body;return ie.dataset.ihabTrainingPopupCount=String(Number(ie.dataset.ihabTrainingPopupCount||"0")+1),ie.classList.add("ihab-training-popup-open"),()=>{const fe=Number(ie.dataset.ihabTrainingPopupCount||"1")-1;fe>0?ie.dataset.ihabTrainingPopupCount=String(fe):(delete ie.dataset.ihabTrainingPopupCount,ie.classList.remove("ihab-training-popup-open"))}},[]),l.useEffect(()=>{if(!(typeof document>"u"||!document.body))return nk()},[]);const[X,O]=l.useState({...Cb,enabled:!1}),Y=l.useRef(X);l.useEffect(()=>{Y.current=X},[X]),l.useEffect(()=>{let ie=!1;return rs().then(fe=>{if(ie)return;const ye=fe?{...Y.current,...fe}:{...Cb};Y.current=ye,O(ye)}),()=>{ie=!0}},[]);const[z,re]=l.useState(null),[Q,ne]=l.useState(null),me=l.useCallback((ie,fe)=>{ie==="main"?re(fe):ne(fe)},[]),ce=l.useCallback(ie=>{const fe={...Y.current,...ie};Y.current=fe,O(fe),ns(fe)},[]),I=X.mainSpeed,ee=X.mainVolume,pe=l.useCallback(ie=>ce({mainSpeed:ie}),[ce]),ke=l.useCallback(ie=>ce({mainVolume:ie}),[ce]),Ce=l.useMemo(()=>({settings:X,setSettings:ce,registerAnalyser:me,mainAnalyser:z,noiseAnalyser:Q,playbackRate:I,setPlaybackRate:pe,mainVolume:ee,setMainVolume:ke}),[X,ce,me,z,Q,I,pe,ee,ke]),R=l.useRef(null),[oe,ae]=l.useState("center"),[ve,De]=l.useState(!1),ze=l.useRef(!1),Re=l.useRef(null),Me=l.useCallback(ie=>{ze.current||(ze.current=!0,De(!0),Re.current=setTimeout(ie,s7))},[]);l.useEffect(()=>()=>{Re.current&&clearTimeout(Re.current)},[]),l.useEffect(()=>{const ie=R.current;if(!ie)return;const fe=Array.from(ie.querySelectorAll(dr)).filter(U=>!U.closest('[aria-hidden="true"]'))[0];if(fe)try{fe.focus()}catch{}const ye=U=>{if(U.key==="Escape"){U.preventDefault(),Me(()=>{typeof h=="function"&&h()});return}};return ie.addEventListener("keydown",ye),()=>ie.removeEventListener("keydown",ye)},[h,Me]),_s(R,!0);const[Ye,Ne]=l.useState(!1),Ve=l.useRef(!1),[Fe,be]=l.useState(null),[Ke,We]=l.useState(""),[Le,Ge]=l.useState(()=>$n()),vt=l.useRef(typeof u=="number"?u:null);l.useEffect(()=>{!E&&!W||(Ge($n()),be(null))},[E,L,W]),l.useEffect(()=>{W&&Ge(ie=>{const fe=Math.max(0,Math.min(ie.pageIndex,Math.max(0,q-1)));return fe!==ie.pageIndex?{...ie,pageIndex:fe,stepIndex:0}:ie})},[W,q]);const Ue=W?Math.max(0,Math.min(Le.pageIndex,q-1)):0,Xe=W?$[Ue]:null,ut=W&&Xe&&Array.isArray(Xe.steps)?Xe.steps:[],Pe=E?Le.pageIndex:W?Ue:typeof u=="number"?u:0,rt=E?te[Math.max(0,Math.min(Le.pageIndex,Math.max(0,te.length-1)))]:null,et=E&&rt&&Array.isArray(rt.steps)?rt.steps:[],Oe=E?et.length:W?ut.length:typeof m=="number"?m:0,Qe=E||W?Math.max(0,Math.min(Le.stepIndex,Math.max(0,Oe))):typeof p=="number"?p:0,tt=E?te.length:W?q:typeof d=="number"?d:0;l.useLayoutEffect(()=>{const ie=vt.current;if(typeof Pe=="number"&&ie!==null&&Pe!==ie&&Pe>ie)try{We(P("training.problemNotice",{n:Pe+1}))}catch{}vt.current=typeof Pe=="number"?Pe:vt.current},[Pe,u,P]),l.useLayoutEffect(()=>{const ie=R.current;if(!ie)return;const fe=()=>ie.querySelector(".page-popup__scroll");let ye=null,U=null,de=null;const _e=ct=>{const ue=fe();if(!ue)return;const Te=ue.scrollHeight<=ue.clientHeight;if(ae(Te?"center":"top"),ct&&!Ve.current){Ve.current=!0;try{Ne(!0)}catch{}try{$e.disconnect()}catch{}}},Se=()=>{ye!==null&&cancelAnimationFrame(ye),ye=requestAnimationFrame(()=>{U!==null&&clearTimeout(U),U=setTimeout(()=>_e(!0),60)})},Ae=()=>{de!==null&&cancelAnimationFrame(de),de=requestAnimationFrame(()=>_e(!1))};Se(),window.addEventListener("resize",Ae);const $e=new MutationObserver(Se);$e.observe(ie,{childList:!0,subtree:!0,attributes:!0});const nt=setTimeout(()=>{Ve.current||_e(!0)},400);return()=>{window.removeEventListener("resize",Ae),ye!==null&&cancelAnimationFrame(ye),U!==null&&clearTimeout(U),de!==null&&cancelAnimationFrame(de),clearTimeout(nt);try{$e.disconnect()}catch{}}},[R]);const xt=l.useCallback(ie=>{R.current&&(R.current._childOnNext=ie)},[]),Et=l.useCallback(ie=>{R.current&&(R.current._childOnResult=ie)},[]),it=l.useCallback((ie,fe,ye)=>{Ge(U=>{const de=U.answersByPage[ie]||{},_e=de[fe],Se=Rn(ye),Ae=Rn(_e);return _e&&Ae>Se?U:{...U,answersByPage:{...U.answersByPage,[ie]:{...de,[fe]:ye}}}})},[Ge]),Ht=l.useCallback((ie,fe,ye)=>{const U=Lc(rt,Pe),de=Mc(ie,fe);it(U,de,ye)},[rt,Pe,it]),mt=l.useCallback((ie,fe,ye)=>{const U=Lc(rt,Pe),de=Mc(ie,fe);it(U,de,ye),!ye?.allowChange&&ie?.autoAdvance!==!1&&Ge(_e=>({..._e,stepIndex:Math.max(_e.stepIndex,fe+1)}))},[rt,Pe,it,Ge]),Vt=l.useCallback((ie,fe)=>{const ye=Xe?.id||`children-page-${Pe??0}`,U=typeof fe=="number"?fe:Qe??0,de=`step-${U}`;it(ye,de,ie),ie?.allowChange||Ge(_e=>({..._e,stepIndex:Math.max(_e.stepIndex,U+1)}))},[Xe,Pe,Qe,it,Ge]),ia=l.useCallback((ie,fe)=>{const ye=Xe?.id||`children-page-${Pe??0}`,U=`step-${typeof fe=="number"?fe:Qe??0}`;it(ye,U,ie)},[Xe,Pe,Qe,it]),Gt=W?{currentPageIndex:Pe??0,currentStepIndex:Qe??0,totalStepsInPage:ut.length,handleStepDone:Vt,handleStepChange:ia}:null,Ea=async()=>{const ie=typeof t?.buildResults=="function"?await Promise.resolve(t.buildResults({scenario:t,pages:te,flowState:Le,answersByPage:Le.answersByPage})):null;return typeof T=="function"&&await Promise.resolve(T(ie))||ie},sa=async()=>{const ie=Xe?.id||`children-page-${Le.pageIndex}`,fe=Le.answersByPage[ie]||{},ye=M?(()=>{const _e={};let Se=0;return $.forEach(Ae=>{const $e=Le.answersByPage[Ae.id]||{},nt=Array.isArray(Ae.steps)?Ae.steps.length:0;for(let ct=0;ct<nt;ct+=1){const ue=$e[`step-${ct}`];typeof ue<"u"&&(_e[`step-${Se+ct}`]=ue)}Se+=nt}),_e})():fe;if(typeof x=="function"){const _e=await Promise.resolve(x(ye,{pageAnswers:fe,answersByPage:Le.answersByPage,pages:$,currentPageId:ie}));return typeof T=="function"&&await Promise.resolve(T(_e))||_e}const U=Object.entries(fe).map(([_e,Se],Ae)=>({index:Ae,key:_e,payload:Se})),de={results:U,answers:U,score:0};return typeof T=="function"&&await Promise.resolve(T(de))||de},Kt=()=>{try{if(typeof document<"u"&&document.body){try{document.dispatchEvent(new CustomEvent("speechear-close-tooltips"))}catch{}document.dispatchEvent(new PointerEvent("pointerdown",{bubbles:!0,cancelable:!0})),document.dispatchEvent(new MouseEvent("click",{bubbles:!0,cancelable:!0}))}}catch{}if(E){const ye=Ea();be({});const U=ye;Promise.resolve(U).then(de=>{be(de||{isEmpty:!0})}).catch(de=>{be({isEmpty:!0})});return}if(W){const ye=sa();be({});const U=ye;Promise.resolve(U).then(de=>{be(de||{isEmpty:!0})}).catch(de=>{be({isEmpty:!0})});return}const ie=R.current&&R.current._childOnResult,fe=ye=>{try{return ye?ye():void 0}catch{return}};if(typeof ie=="function"){const ye=fe(ie);try{typeof document>"u"?require("url").pathToFileURL(__filename).href:Yt&&Yt.tagName.toUpperCase()==="SCRIPT"&&Yt.src||new URL("ihabdevteam-core.cjs.js",document.baseURI).href}catch{}ye&&typeof ye.then!="function"?be(ye):be(ye&&typeof ye.then=="function"?{}:{}),Promise.resolve(ye).then(U=>{U&&be(U)}).catch(U=>{});return}if(typeof T=="function"){const ye=fe(T);try{typeof document>"u"?require("url").pathToFileURL(__filename).href:Yt&&Yt.tagName.toUpperCase()==="SCRIPT"&&Yt.src||new URL("ihabdevteam-core.cjs.js",document.baseURI).href}catch{}ye&&typeof ye.then!="function"?be(ye):be(ye&&typeof ye.then=="function"?{}:{}),Promise.resolve(ye).then(U=>{try{typeof document>"u"?require("url").pathToFileURL(__filename).href:Yt&&Yt.tagName.toUpperCase()==="SCRIPT"&&Yt.src||new URL("ihabdevteam-core.cjs.js",document.baseURI).href}catch{}U&&be(U)}).catch(U=>{console.error("viewResults external handler failed",U)});return}},ja=()=>{if(E){if(typeof Pe=="number"&&typeof tt=="number"&&Pe<tt-1){Ge(fe=>({...fe,pageIndex:fe.pageIndex+1,stepIndex:0}));return}return Kt()}if(W){const fe=ut.length;if(typeof Qe=="number"&&Qe<fe-1){Ge(ye=>({...ye,stepIndex:ye.stepIndex+1}));return}if(typeof Pe=="number"&&typeof tt=="number"&&Pe<tt-1){Ge(ye=>({...ye,pageIndex:ye.pageIndex+1,stepIndex:0}));return}return Kt()}if(typeof f=="function"){try{f()}catch{}return}const ie=R.current&&R.current._childOnNext;if(typeof ie=="function"){try{ie()}catch{}return}},jt=E?F.title||F.label||C||P("common.popup","\uD31D\uC5C5"):a||w||(Array.isArray(n)?n[n.length-1]:void 0)||C||P("common.popup","\uD31D\uC5C5"),Ga=E?F.title??F.label??jt:a??w??jt,$t=(ie,fe)=>{const ye=Lc(rt,Pe),U=Mc(ie,fe),de=Le.answersByPage[ye]?.[U],_e=_7(ie,{page:rt,pageIndex:Pe,step:ie,stepIndex:fe,storedPayload:de,answersByPage:Le.answersByPage,flowState:Le}),Se={key:U,index:fe,stepIndex:Qe,isLast:fe===et.length-1};switch(ie?.type){case"listen":return o.jsx(Mn,{...Se,..._e,onDone:Ae=>mt(ie,fe,Ae)});case"confirm":return o.jsx(jn,{...Se,..._e,onDone:Ae=>mt(ie,fe,Ae),onChange:Ae=>Ht(ie,fe,Ae)});case"confirmWithText":return o.jsx(Ln,{...Se,..._e,onDone:Ae=>mt(ie,fe,Ae),onChange:Ae=>Ht(ie,fe,Ae)});case"orderList":return o.jsx(Pn,{...Se,..._e,onDone:Ae=>mt(ie,fe,Ae),onChange:Ae=>Ht(ie,fe,Ae)});default:return null}},ya=E?te.length>0?o.jsx("div",{className:"training-steps",children:et.map((ie,fe)=>$t(ie,fe))}):o.jsx("div",{className:"page-popup__content page-popup__content--center",children:o.jsx("div",{className:"pp-empty",children:t?.emptyMessage||P("training.noQuestions","\uBB38\uC81C\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4.")})}):null,qa=W?o.jsxs(Wb.Provider,{value:Gt,children:[Xe?.pageTop?o.jsx("div",{className:"training-page-top",children:Xe.pageTop}):null,o.jsx("div",{className:"training-steps",children:ut.map((ie,fe)=>{const ye=ie;return l.cloneElement(ye,{...ye.props,_stepIndex:fe,_totalSteps:ut.length,_stepKey:`step-${fe}`,_pageIndex:Pe})})}),Xe?.pageBottom?o.jsx("div",{className:"training-page-bottom",children:Xe.pageBottom}):null]}):null,Je=l.useCallback(()=>{let ie;if(_){const fe=Fe,ye=fe?.results||fe?.answers||[],U=Array.isArray(ye)&&ye.length>0?ye.length:null,de=Array.isArray(ye)?ye.filter(Se=>Se?.correct===!0||Se?.isCorrect===!0||Se?.score===1||Se?.heard===!0||Se?.judgement===!0).length:null,_e=U!=null?de:null;es({items:as(ye),category:Vb.has(_)?"sentence":"word",trainingType:_,entryPoint:k??"sentence",itemRef:A??null,correct:_e,total:U,score:typeof fe?.score=="number"?fe.score:null,durationSeconds:Math.max(0,Math.round((Date.now()-H.current)/1e3)),dailyTotal:N??null}),ie={correct:_e,total:U}}be(null),Me(()=>{typeof g=="function"&&g(ie),typeof h=="function"&&h()})},[g,h,_,k,N,A,Fe,be,Me]),It=l.useCallback(()=>We(""),[We]),kt=l.useCallback(()=>{Me(()=>{typeof h=="function"&&h()})},[h,Me]),xa=o.jsxs("div",{className:`page-popup${ve?" page-popup--closing":""}`,role:"dialog","aria-label":jt,children:[o.jsxs("div",{ref:R,className:`page-popup__panel ${Ye?"":"page-popup__panel--measuring"} ${oe==="center"?"page-popup__panel--center":oe==="top"?"page-popup__panel--top":""}`,"aria-modal":"true",children:[o.jsx(wc,{title:Ga,subtitle:E?F.subtitle||F.label:Array.isArray(n)?n.join(" / "):void 0,desc:E?void 0:r,depth:E?F.depth:n,icon:E?F.icon:i,wrapperStyle:E?F.wrapperStyle:s,iconTooltip:E?F.iconTooltip:c,progressMax:tt,progressIndex:Pe,pageIndex:Pe,pageCount:tt,onBack:kt,onClose:kt}),o.jsx("div",{className:"page-popup__scroll",children:o.jsx("div",{className:`page-popup__content ${oe==="center"?"page-popup__content--center":"page-popup__content--top"}`,children:W?qa:E?ya:typeof v=="function"?v({registerOnNext:xt,registerOnResult:Et,panelRef:R,setResultOverlay:be}):v})}),o.jsx(_c,{onSettings:b,onNext:ja,onResult:Kt,useNoiseSettingBtn:!!(E?F.useNoiseSetting??!0:y),stepIndex:Qe,stepCount:Oe,pageIndex:Pe,pageCount:tt})]}),Fe&&!Fe.isEmpty&&(D??w7)({score:Fe.score,results:Fe.results||Fe.answers||[],contextsLength:Fe.results?Fe.results.length:Fe.answers?Fe.answers.length:0,onReplay:()=>{if(be(null),E){if(Ge($n()),typeof t?.onReplay=="function")try{t.onReplay()}catch{}return}if(W){Ge($n());return}try{const ie=R.current&&R.current._childOnResult;typeof ie=="function"&&ie({replay:!0})}catch{}},onClose:Je}),Fe?.isEmpty&&o.jsx("div",{className:"page-popup page-popup--result-empty",role:"dialog","aria-label":P("training.result.eyebrow","\uD6C8\uB828 \uC644\uB8CC"),children:o.jsxs("div",{className:"page-popup__panel page-popup__panel--center","aria-modal":"true",children:[o.jsx("div",{className:"page-popup__scroll",children:o.jsx("div",{className:"page-popup__content page-popup__content--center",children:o.jsx("div",{className:"page-popup__empty",children:P("training.result.eyebrow","\uD6C8\uB828 \uC644\uB8CC")})})}),o.jsx("div",{className:"page-popup__bottom",children:o.jsx(se,{variant:"main",size:48,onClick:Je,label:P("training.result.done","\uC644\uB8CC")})})]})}),o.jsx(ro,{message:Ke,position:"top",onClose:It})]}),la=o.jsx(_b.Provider,{value:Ce,children:xa});return typeof document<"u"&&document.body?qt.createPortal(la,document.body):la}const Da=k7;Da.Page=Sr,Da.ListenStep=Ac,Da.ConfirmStep=Tc,Da.ConfirmWithTextStep=Bc,Da.OrderListStep=Nc,Da.CardStep=Dc,Da.CardOrderStep=v7;var S7=".ihabdevteam-core-scope .word-search-result-block__actions{display:flex;gap:var(--spacing-xs);justify-content:center}.ihabdevteam-core-scope .word-search-result-block__toolbar{align-items:center;display:flex;flex-wrap:wrap;gap:var(--spacing-xs);justify-content:flex-end}.ihabdevteam-core-scope .word-search-result-block__inner{background:var(--color-white);border:1px solid var(--color-darkWhite);border-radius:var(--radius-m);padding:var(--spacing-content)}.ihabdevteam-core-scope .word-search-result-block__inner:has(+.word-search-result-block__actions:not(:empty)){margin-bottom:var(--spacing-content)}.ihabdevteam-core-scope .word-search-result-block__items{grid-gap:var(--spacing-xs);display:grid;gap:var(--spacing-xs);grid-template-columns:repeat(auto-fill,200px);justify-content:center}.ihabdevteam-core-scope .word-search-result-block__items .button__label-text,.ihabdevteam-core-scope .word-search-result-block__items .button__sub-label-text{white-space:nowrap;word-break:keep-all}.ihabdevteam-core-scope .word-search-result-block__items .button__label:has(.button__label-text:nth-child(4)){gap:4px 10px;grid-auto-columns:auto;grid-auto-flow:row;grid-template-columns:repeat(2,minmax(0,1fr))}.ihabdevteam-core-scope .word-search-result-block__items .button-word:has(.button__label-text:nth-child(4)){height:auto;min-height:72px;padding-bottom:8px;padding-top:8px}@media (max-width:767px){.ihabdevteam-core-scope .word-search-result-block__items{grid-template-columns:repeat(2,1fr);justify-content:normal}.ihabdevteam-core-scope .word-search-result-block__items .button{min-width:0!important;width:100%}}.ihabdevteam-core-scope .word-search-result-block__empty{color:var(--color-gray);margin:0;padding:24px 0;text-align:center}.ihabdevteam-core-scope .word-search-result-block__group{display:flex;flex-direction:column;gap:10px}.ihabdevteam-core-scope .word-search-result-block__group+.word-search-result-block__group{border-top:1px solid var(--color-darkWhite);margin-top:var(--spacing-l);padding-top:var(--spacing-l)}.ihabdevteam-core-scope .word-search-result-block__pagination-bottom{display:flex;justify-content:center;margin-top:16px}.ihabdevteam-core-scope .word-search-result-block__empty-wrap{align-items:center;display:flex;flex-direction:column;gap:8px;gap:var(--spacing-xs,8px)}.ihabdevteam-core-scope .word-search-result-block__empty-hint{color:var(--color-sub);line-height:1.6;max-width:34em;text-align:center}.ihabdevteam-core-scope .word-search-result-block__disc,.ihabdevteam-core-scope .word-search-result-block__notice{display:block}.ihabdevteam-core-scope .word-search-result-block__notice{color:var(--color-text-primary)}";J(S7);var A7='.ihabdevteam-core-scope .tooltip-word-image{background:var(--color-white);border-radius:var(--radius-m);box-shadow:var(--shadow-dropdown);padding:var(--spacing-s);position:fixed;z-index:var(--z-tooltip)}.ihabdevteam-core-scope .tooltip-word-image__cells{display:flex;gap:var(--spacing-s)}.ihabdevteam-core-scope .tooltip-word-image__cell{background:#f5f5f5;background:var(--color-white,#f5f5f5);border-radius:var(--radius-card);flex-shrink:0;height:120px;overflow:hidden;position:relative;width:120px}.ihabdevteam-core-scope .tooltip-word-image__cell img{display:block;height:100%;-o-object-fit:cover;object-fit:cover;transition:opacity .2s;width:100%}.ihabdevteam-core-scope .tooltip-word-image__spinner{align-items:center;display:flex;inset:0;justify-content:center;position:absolute}.ihabdevteam-core-scope .tooltip-word-image__spinner:after{animation:tooltip-spin .7s linear infinite;border:3px solid #e0e0e0;border-radius:50%;border-top:3px solid var(--color-white,#e0e0e0);border:3px solid var(--color-white,#e0e0e0);border-top-color:var(--color-main,#4f6ef7);content:"";height:24px;width:24px}@keyframes tooltip-spin{to{transform:rotate(1turn)}}.ihabdevteam-core-scope .tooltip-word-image__cell--text{align-items:center;color:var(--color-black);display:flex;font-weight:700;justify-content:center}';J(A7);function T7({label:e,homonum:t}){const a=Ma()?.(e,t)??"",{imgRef:r,loading:n,hasImage:i,onLoad:s,onError:c}=Ql(a);return i?o.jsxs("div",{className:"tooltip-word-image__cell",children:[n&&o.jsx("div",{className:"tooltip-word-image__spinner"}),o.jsx("img",{ref:r,src:a,alt:e,draggable:!1,style:{opacity:n?0:1},onLoad:s,onError:c})]}):o.jsx("div",{className:"tooltip-word-image__cell tooltip-word-image__cell--text h3",children:o.jsx("span",{children:e})})}function Pc({words:e,anchorRect:t}){const a=l.useRef(null),[r,n]=l.useState(null);return l.useLayoutEffect(()=>{if(!t||!a.current)return;const{offsetWidth:i,offsetHeight:s}=a.current,c=window.innerWidth;let u=t.left+t.width/2-i/2,d=t.top-s-8;d<8&&(d=t.bottom+8),u=Math.max(8,Math.min(u,c-i-8)),n({left:u,top:d})},[t]),!t||e.length===0?null:qt.createPortal(o.jsx("div",{ref:a,className:"tooltip-word-image",style:{visibility:r?"visible":"hidden",left:r?.left??0,top:r?.top??-9999},children:o.jsx("div",{className:"tooltip-word-image__cells",children:e.map(i=>o.jsx(T7,{label:i.label,homonum:i.homonum},`${i.label}_${i.homonum??1}`))})}),document.body)}function Gb({titleIcon:e,resultCount:t,resultUnit:a,searchQuery:r,items:n,groups:i,selected:s=[],onSelect:c,maxSelect:u,onClearSelection:d,onPrint:p,onPrintEmpty:m,className:h,emptyHint:g,sectionType:f="page",disc:b,notice:y}){const{t:v,i18n:C}=ge.useTranslation(),w=C.language?.startsWith("ko")??!1,{anchorRect:x,openAt:S,close:_}=ko(),[k,N]=l.useState(null),A=l.useCallback(()=>{_(),N(null)},[_]),D=(r??"").trim(),H=/^[^,[\]\s]+$/.test(D)?D:"",P=H.length>0,[T,E]=l.useState("ganada"),[L,F]=l.useState("50"),[te,Z]=l.useState(1),[V,j]=l.useState(P);V!==P&&(j(P),E(P?"match":"ganada"));const M=T==="match"&&!P?"ganada":T,$=l.useMemo(()=>[...P?[{value:"match",label:v("wordSearch.sort.match",{defaultValue:"\uC2DC\uC791 \uC6B0\uC120"})}]:[],{value:"ganada",label:v("wordSearch.sort.ganada",{defaultValue:"\uAC00\uB098\uB2E4\uC21C \u2191"})},{value:"ganada_desc",label:v("wordSearch.sort.ganadaDesc",{defaultValue:"\uAC00\uB098\uB2E4\uC21C \u2193"})},{value:"syllable",label:v("wordSearch.sort.syllable",{defaultValue:"\uC74C\uC808 \uC218 \u2191"})},{value:"syllable_desc",label:v("wordSearch.sort.syllableDesc",{defaultValue:"\uC74C\uC808 \uC218 \u2193"})},{value:"grade",label:v("wordSearch.sort.grade",{defaultValue:"\uB4F1\uAE09\uC21C \u2191"})},{value:"grade_desc",label:v("wordSearch.sort.gradeDesc",{defaultValue:"\uB4F1\uAE09\uC21C \u2193"})}],[v,P]),W=l.useMemo(()=>["10","25","50","100"].map(R=>({value:R,label:v("wordSearch.pageSize",{count:Number(R),defaultValue:`${R}\uAC1C\uC529 \uBCF4\uAE30`})})),[v]),q=R=>R.words[0],X=l.useCallback((R,oe)=>{const ae=ze=>q(ze)?.label??"",ve=ze=>q(ze)?.syllables??[...ae(ze)].length,De=ze=>{const Re=parseInt(q(ze)?.grade??"",10);return Number.isFinite(Re)?Re:999};switch(M){case"match":{const ze=[...H].length,Re=Me=>ho(ae(Me).slice(0,ze),H)?0:1;return Re(R)-Re(oe)||ae(R).localeCompare(ae(oe),"ko")}case"ganada":return ae(R).localeCompare(ae(oe),"ko");case"ganada_desc":return ae(oe).localeCompare(ae(R),"ko");case"syllable":return ve(R)-ve(oe)||ae(R).localeCompare(ae(oe),"ko");case"syllable_desc":return ve(oe)-ve(R)||ae(R).localeCompare(ae(oe),"ko");case"grade":return De(R)-De(oe)||ae(R).localeCompare(ae(oe),"ko");case"grade_desc":return De(oe)-De(R)||ae(R).localeCompare(ae(oe),"ko");default:return 0}},[M,H]),O=l.useMemo(()=>n.slice().sort(X),[n,X]),Y=Number(L)||10,z=l.useMemo(()=>(i??[]).flatMap(R=>R.items.slice().sort(X).map(oe=>({item:oe,label:R.label}))),[i,X]),re=i?z.length:O.length,Q=Math.max(1,Math.ceil(re/Y)),ne=Math.min(te,Q),me=l.useMemo(()=>O.slice((ne-1)*Y,ne*Y),[O,ne,Y]),ce=l.useMemo(()=>{if(!i)return null;const R=z.slice((ne-1)*Y,ne*Y),oe=new Map;for(const{item:ae,label:ve}of R)oe.has(ve)||oe.set(ve,[]),oe.get(ve).push(ae);return[...oe.entries()].map(([ae,ve])=>({label:ae,items:ve}))},[i,z,ne,Y]);l.useEffect(()=>{Z(1)},[T,L,re]);const I=re>0?o.jsxs("div",{className:"word-search-result-block__toolbar",children:[o.jsx(Ut,{size:40,options:$,value:M,onChange:E,ariaLabel:v("wordSearch.sort.aria",{defaultValue:"\uC815\uB82C"})}),o.jsx(Ut,{size:40,options:W,value:L,onChange:F,ariaLabel:v("wordSearch.pageSizeAria",{defaultValue:"\uD398\uC774\uC9C0 \uD06C\uAE30"})}),o.jsx(vr,{page:ne,totalPages:Q,onChange:Z})]}):void 0,ee=R=>{c&&c(R)},pe=t!==void 0&&a?o.jsxs(o.Fragment,{children:[v("wordSearch.resultTitlePrefix","\uCD1D "),o.jsx("span",{style:{color:"var(--color-main)"},children:t}),v("wordSearch.resultTitleSuffix",{unit:w?ji(a):a})]}):void 0,ke=t!==void 0&&t>0&&u!==void 0&&a?v("wordSearch.resultDisc",{unit:w?Mi(a):a,max:u,selected:s.length}):void 0,Ce=b??(y?o.jsxs(o.Fragment,{children:[o.jsx("span",{className:"word-search-result-block__notice",children:y}),ke?o.jsx("span",{className:"word-search-result-block__disc",children:ke}):null]}):ke);return o.jsxs(no,{type:f,icon:e,title:pe,action:I,disc:Ce,className:xe("word-search-result-block",h),children:[o.jsxs("div",{className:"word-search-result-block__inner",children:[(i?i.length===0:n.length===0)&&o.jsxs("div",{className:"word-search-result-block__empty-wrap",children:[o.jsx("p",{className:"word-search-result-block__empty body-3",children:v("wordSearch.emptyResult","\uAC80\uC0C9 \uACB0\uACFC\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4.")}),g&&o.jsx("p",{className:"word-search-result-block__empty-hint body-3",children:g})]}),i?(ce??[]).map(R=>o.jsx("div",{className:"word-search-result-block__group",children:o.jsx("div",{className:"word-search-result-block__items",children:R.items.map(oe=>{const ae=s.includes(oe.id);return o.jsx("div",{onMouseEnter:ve=>{S(ve.currentTarget),N(oe.words)},onMouseLeave:A,children:o.jsx(se,{size:"word",align:"grid",label:oe.words.map(ve=>ve.label),subLabel:oe.words.map(ve=>ve.subLabel).filter(Boolean).length>0?oe.words.map(ve=>ve.subLabel):void 0,selected:ae,onClick:()=>ee(oe.id),minWidth:200})},oe.id)})})},R.label)):o.jsx("div",{className:"word-search-result-block__items",children:me.map(R=>{const oe=s.includes(R.id);return o.jsx("div",{onMouseEnter:ae=>{S(ae.currentTarget),N(R.words)},onMouseLeave:A,children:o.jsx(se,{size:"word",align:"grid",label:R.words.map(ae=>ae.label),subLabel:R.words.map(ae=>ae.subLabel).filter(Boolean).length>0?R.words.map(ae=>ae.subLabel):void 0,selected:oe,onClick:()=>ee(R.id),minWidth:200})},R.id)})}),k&&x&&o.jsx(Pc,{words:k,anchorRect:x})]}),Q>1&&o.jsx("div",{className:"word-search-result-block__pagination-bottom",children:o.jsx(vr,{page:ne,totalPages:Q,onChange:Z})}),(d||p)&&o.jsxs("div",{className:"word-search-result-block__actions",children:[d&&o.jsx(se,{size:"56",type:"bar",label:v("common.resetSelection","\uC120\uD0DD \uCD08\uAE30\uD654"),selected:!1,disabled:s.length===0,onClick:s.length===0?void 0:d}),p&&o.jsx("div",{onClick:s.length===0?m:void 0,children:o.jsx(se,{size:"56",type:"bar",variant:"main",label:v("wordTable.title","\uB2E8\uC5B4 \uD45C \uB9CC\uB4E4\uAE30"),disabled:s.length===0,onClick:s.length===0?void 0:p})})]})]})}var B7='.ihabdevteam-core-scope .phoneme-select-block{align-items:flex-start;flex:1 1 auto;width:100%}.ihabdevteam-core-scope .phoneme-select-block__cell{align-items:center;display:flex;flex-direction:column;gap:12px}.ihabdevteam-core-scope .phoneme-select-block__controls{align-items:center;display:flex;flex-direction:row;gap:var(--spacing-xs);justify-content:center;width:100%}@media (max-width:767px){.ihabdevteam-core-scope .phoneme-select-block__controls{align-items:center;flex-direction:column}}.ihabdevteam-core-scope .phoneme-select-block__count-control{align-self:center}.ihabdevteam-core-scope .phoneme-select-block__cell-group{align-items:flex-start;display:flex;gap:var(--spacing-xs)}.ihabdevteam-core-scope .phoneme-select-block__cell-vs{align-self:center;color:var(--color-lightGray);margin-bottom:22px;padding:0 16px}.ihabdevteam-core-scope .phoneme-select-block__pair-panels{display:flex;gap:var(--spacing-s);width:100%}.ihabdevteam-core-scope .phoneme-select-block__panel-group{display:flex;flex:1;flex-direction:column;gap:var(--spacing-m)}.ihabdevteam-core-scope .phoneme-select-block__cells{align-items:flex-start;display:flex;gap:var(--spacing-xs);justify-content:center;padding:var(--spacing-m) 0;width:100%}.ihabdevteam-core-scope .phoneme-select-block__cell-circle{align-items:center;background:var(--color-white);border:1px solid var(--color-whiteLine);border-radius:var(--radius-m);box-shadow:var(--shadow-tooltip);display:flex;height:80px;justify-content:center;position:relative;width:240px}.ihabdevteam-core-scope .phoneme-select-block__cell-index{color:var(--color-gray);line-height:1}.ihabdevteam-core-scope .phoneme-select-block__cell-jamo{align-items:stretch;display:flex;flex-direction:row;height:100%;justify-content:center;width:100%}.ihabdevteam-core-scope .phoneme-select-block__cell-jamo-part{align-items:center;color:var(--color-black);display:flex;flex:1;flex-direction:column;gap:4px;justify-content:center;padding-top:3px;position:relative}.ihabdevteam-core-scope .phoneme-select-block__cell-jamo-part--no-label{padding-top:0}.ihabdevteam-core-scope .phoneme-select-block__cell-jamo-char.h1{line-height:1}.ihabdevteam-core-scope .phoneme-select-block__cell-jamo-char--excluded{color:var(--color-whiteLine);transform:translateY(-2px)}.ihabdevteam-core-scope .phoneme-select-block__cell-jamo-part--empty .phoneme-select-block__cell-jamo-char{transform:translateY(-2px)}.ihabdevteam-core-scope .phoneme-select-block__cell-jamo-label{color:var(--color-lightGray);line-height:1}.ihabdevteam-core-scope .phoneme-select-block__cell-jamo-part--empty .phoneme-select-block__cell-jamo-label{color:var(--color-darkWhite)}.ihabdevteam-core-scope .phoneme-select-block__cell-jamo-part+.phoneme-select-block__cell-jamo-part:before{background:var(--color-whiteLine);content:"";height:20px;left:0;position:absolute;top:50%;transform:translateY(-50%);width:1px}.ihabdevteam-core-scope .phoneme-select-block__cell-jamo-part--empty{color:var(--color-darkWhite)}.ihabdevteam-core-scope .phoneme-select-block__panels{align-items:stretch;align-self:stretch;display:flex;flex-direction:column;gap:var(--spacing-m);width:100%}.ihabdevteam-core-scope .phoneme-select-block__detail{align-items:flex-start;display:flex;flex-direction:row;gap:var(--spacing-s);justify-content:center}.ihabdevteam-core-scope .phoneme-select-block__detail>.filter-panel{flex:1}.ihabdevteam-core-scope .phoneme-select-block>.filter-panel{align-self:stretch;width:100%}.ihabdevteam-core-scope .phoneme-select-block__controls .button38--bar{min-width:96px}.ihabdevteam-core-scope .phoneme-select-block__required{color:var(--color-main);line-height:1;margin-left:2px}.ihabdevteam-core-scope .phoneme-select-block__before-search{display:flex;justify-content:center;text-align:center;width:100%}.ihabdevteam-core-scope .phoneme-select-block__search-row{display:flex;gap:var(--spacing-xs);justify-content:center;width:100%}.ihabdevteam-core-scope .phoneme-select-block__checking{align-items:center;background:transparent;border:1px solid var(--color-whiteLine);border-radius:var(--radius-m);color:var(--color-disabled);cursor:default;display:flex;gap:10px;height:60px;min-width:198px;padding:0 28px}.ihabdevteam-core-scope .phoneme-select-block__checking-label{white-space:nowrap}.ihabdevteam-core-scope .phoneme-select-block__spinner{animation:phonemeSpinner .7s linear infinite;border:2px solid var(--color-whiteLine);border-radius:50%;border-top-color:var(--color-disabled);flex-shrink:0;height:18px;width:18px}@keyframes phonemeSpinner{to{transform:rotate(1turn)}}@media (max-width:767px){.ihabdevteam-core-scope .phoneme-select-block__detail,.ihabdevteam-core-scope .phoneme-select-block__pair-panels{flex-direction:column}.ihabdevteam-core-scope .phoneme-select-block__detail>.filter-panel{width:100%}.ihabdevteam-core-scope .phoneme-select-block__cell-vs{align-self:center;margin-bottom:0;padding:4px 0}.ihabdevteam-core-scope .phoneme-select-block__cells{flex-wrap:wrap}.ihabdevteam-core-scope .phoneme-select-block__cell-circle{height:64px;width:min(240px,100%)}.ihabdevteam-core-scope .phoneme-select-block__cell-jamo-part{font-size:24px}}';J(B7);function N7(e,t){return t.map(a=>{const r=typeof a=="string"?a:a.label,n=typeof a=="string"?void 0:a.displayLabel;return{label:r,value:e[r]??"",displayLabel:n}})}function qb({sections:e,selectedList:t,count:a,onCountChange:r,maxCount:n=4,minCount:i=1,combinationSections:s,combinationSectionsForSlot:c,onSelect:u,placeholder:d="-",className:p,title:m,titleIcon:h,disc:g,showInfoButton:f=!1,onClearPhoneme:b,onSearch:y,onSearchEmpty:v,searchDisabled:C=!1,searchLabel:w,searchChecking:x=!1,pairMode:S=!1,sectionType:_="page",beforeSearchContent:k,beforeContent:N,afterContent:A,hideCountControl:D=!1,ordinal:H=!1}){const{t:P}=ge.useTranslation(),T=l.useMemo(()=>P("wordPairs.infoNotes",{returnObjects:!0}),[P]),E=l.useMemo(()=>Array.from({length:n-i+1},(O,Y)=>{const z=i+Y;return{key:String(z),label:P("wordPairs.count",{n:z})}}),[P,n,i]),L=l.useMemo(()=>P("wordPairs.ordinals",{returnObjects:!0}),[P]),F=l.useCallback(O=>H?P("wordPairs.phonemeOrdinalLabel",{ordinal:L[O-1]??O}):a===1?P("wordPairs.phonemeSingleLabel","\uC74C\uC808"):P("wordPairs.phonemeN",{n:O}),[H,L,a,P]),te=l.useCallback(O=>H?P("wordPairs.phonemeContrastOrdinalLabel",{ordinal:L[O-1]??O}):a===1?P("wordPairs.phonemeContrastSingleLabel","\uB300\uB9BD \uC74C\uC808"):P("wordPairs.phonemeContrast",{n:O}),[H,L,a,P]),Z=l.useCallback((O,Y)=>Y?o.jsxs(o.Fragment,{children:[O,o.jsx("span",{className:"phoneme-select-block__required",children:"*"})]}):O,[]),{anchorRect:V,toggleAt:j,close:M}=ko(),$=l.useCallback(O=>r(Number(O)),[r]),W=oa("(max-width: 767px)"),q=l.useCallback(O=>N7(O,e).map(({label:Y,value:z,displayLabel:re})=>{const Q=!!z&&z!=="\uC5C6\uC74C";return o.jsxs("span",{className:xe("phoneme-select-block__cell-jamo-part",z?"":"phoneme-select-block__cell-jamo-part--empty",Q?"":"phoneme-select-block__cell-jamo-part--no-label"),children:[o.jsx("span",{className:`phoneme-select-block__cell-jamo-char h1${z==="\uC5C6\uC74C"?" phoneme-select-block__cell-jamo-char--excluded":""}`,children:z==="\uC5C6\uC74C"?"x":z||d}),Q&&o.jsx("span",{className:"phoneme-select-block__cell-jamo-label caption-2",children:re??Y})]},Y)}),[e,d]),X=o.jsxs(o.Fragment,{children:[o.jsx("div",{"data-tooltip-ignore":!0,children:o.jsx(se,{size:40,type:W?"dot":void 0,icon:"info",label:W?void 0:P("wordPairs.caution","\uC720\uC758\uC0AC\uD56D"),selected:!!V,onClick:O=>j(O.currentTarget)})}),V&&o.jsx(to,{title:P("wordPairs.caution","\uC720\uC758\uC0AC\uD56D"),items:T,anchorRect:V,onClose:M})]});return o.jsxs(no,{type:_,title:m,icon:h,disc:g,action:X,className:xe("phoneme-select-block",p),children:[N,(!D||f&&!(m||g))&&o.jsxs("div",{className:"phoneme-select-block__controls",children:[!D&&o.jsx(Ha,{options:E,value:String(a),onChange:$,size:40,className:"phoneme-select-block__count-control"}),f&&!(m||g)&&X]}),o.jsx("div",{className:"phoneme-select-block__cells",children:S?o.jsxs(o.Fragment,{children:[o.jsx("div",{className:"phoneme-select-block__cell-group",children:Array.from({length:a}).map((O,Y)=>{const z=t[Y*2]??{};return o.jsxs("div",{className:"phoneme-select-block__cell",children:[o.jsx("div",{className:"phoneme-select-block__cell-circle",children:o.jsx("div",{className:"phoneme-select-block__cell-jamo",children:q(z)})}),o.jsx("span",{className:"phoneme-select-block__cell-index caption-1",children:F(Y+1)})]},Y)})}),o.jsx("span",{className:"phoneme-select-block__cell-vs h3",children:P("wordPairs.phonemeSelect.vs","\uB300")}),o.jsx("div",{className:"phoneme-select-block__cell-group",children:Array.from({length:a}).map((O,Y)=>{const z=t[Y*2+1]??{};return o.jsxs("div",{className:"phoneme-select-block__cell",children:[o.jsx("div",{className:"phoneme-select-block__cell-circle",children:o.jsx("div",{className:"phoneme-select-block__cell-jamo",children:q(z)})}),o.jsx("span",{className:"phoneme-select-block__cell-index caption-1",children:te(Y+1)})]},Y)})})]}):t.map((O,Y)=>o.jsxs("div",{className:"phoneme-select-block__cell",children:[o.jsx("div",{className:"phoneme-select-block__cell-circle",children:o.jsx("div",{className:"phoneme-select-block__cell-jamo",children:q(O)})}),o.jsx("span",{className:"phoneme-select-block__cell-index caption-1",children:F(Y+1)})]},Y))}),(s||c)&&o.jsx("div",{className:"phoneme-select-block__panels",children:o.jsx("div",{className:"phoneme-select-block__detail",children:S?o.jsxs("div",{className:"phoneme-select-block__pair-panels",children:[o.jsx("div",{className:"phoneme-select-block__panel-group",children:Array.from({length:a}).map((O,Y)=>{const z=t[Y*2]??{};return o.jsx(va,{title:Z(F(Y+1),Y===0),sections:c?c(z,Y*2):s,selected:z,onSelect:u?.(Y*2),align:"newline"},Y)})}),o.jsx("div",{className:"phoneme-select-block__panel-group",children:Array.from({length:a}).map((O,Y)=>{const z=t[Y*2+1]??{};return o.jsx(va,{title:te(Y+1),sections:c?c(z,Y*2+1):s,selected:z,onSelect:u?.(Y*2+1),align:"newline"},Y)})})]}):t.map((O,Y)=>o.jsx(va,{title:Z(F(Y+1),Y===0),sections:c?c(O,Y):s,selected:O,onSelect:u?.(Y),align:"newline"},Y))})}),k&&o.jsx("div",{className:"phoneme-select-block__before-search",children:k}),(b||y||x)&&(()=>{const O=t.every(Y=>Object.entries(Y).every(([z,re])=>!re||z==="\uC885\uC131"&&re==="\uC5C6\uC74C"));return o.jsxs("div",{className:"phoneme-select-block__search-row",onClick:O?v:void 0,children:[b&&o.jsx(se,{size:"56",type:"bar",label:P("wordPairs.resetOptions","\uAC80\uC0C9 \uC635\uC158 \uCD08\uAE30\uD654"),selected:!1,disabled:O,onClick:O?void 0:b}),x?o.jsxs("div",{className:"phoneme-select-block__checking",children:[o.jsx("div",{className:"phoneme-select-block__spinner"}),o.jsx("span",{className:"button-1 phoneme-select-block__checking-label",children:w??P("wordSearch.searchButton","\uAC80\uC0C9\uD558\uAE30")})]}):y&&o.jsx(se,{size:"56",type:"bar",variant:"main",label:w??P("wordSearch.searchButton","\uAC80\uC0C9\uD558\uAE30"),disabled:O||C,onClick:O||C?void 0:y})]})})(),A]})}function Yb({title:e,sections:t,selected:a,onSelect:r,className:n}){const{t:i}=ge.useTranslation();return o.jsx(va,{className:n,title:e??i("wordSearch.filterTitle","\uB2E8\uC5B4 \uAC80\uC0C9 \uC124\uC815"),sections:t,selected:a,onSelect:r,align:"inline"})}function Ub({title:e,headerAction:t,sections:a,selected:r,onSelect:n,className:i}){const{t:s}=ge.useTranslation();return a.length===0?null:o.jsx(va,{className:i,title:e??s("training.filter.phonemeGroup",{defaultValue:"\uD6C8\uB828 \uC74C\uC808"}),headerAction:t,sections:a,selected:r,onSelect:n,align:"newline"})}function Kb({title:e,mode:t,onModeChange:a,matchMode:r,onMatchModeChange:n,positionCount:i,onPositionCountChange:s,inputMode:c,onInputModeChange:u,className:d}){const{t:p}=ge.useTranslation(),m={searchMode:p("wordPairs.filter.searchModeLabel","\uB300\uB9BD \uBC29\uC2DD"),phonemeOrder:p("wordPairs.filter.phonemeOrder","\uC785\uB825 \uC74C\uC808 \uC704\uCE58"),count:p("wordPairs.filter.countLabel","\uC785\uB825 \uC74C\uC808 \uAC2F\uC218"),inputMode:p("wordPairs.filter.inputModeLabel","\uC785\uB825 \uBC29\uC2DD"),orderAny:p("wordPairs.filter.orderAny","\uBB34\uAD00"),orderMatch:p("wordPairs.filter.orderMatch","\uC77C\uCE58"),include:p("wordPairs.mode.include","\uC74C\uC18C \uD3EC\uD568"),pick:p("wordPairs.mode.pick","\uC74C\uC18C \uB300\uB9BD"),explicit:p("wordPairs.mode.contrast","\uC74C\uC18C \uB300\uB9BD \uC9C0\uC815"),charInput:p("wordPairs.input.char","\uAE00\uC790 \uC120\uD0DD"),pronInput:p("wordPairs.input.pron","\uBC1C\uC74C \uC120\uD0DD")},h=y=>p("wordPairs.count",{n:y}),g=[{label:m.searchMode,items:[m.include,m.pick,m.explicit],display:"segmented",labelAction:o.jsx(So,{title:p("wordPairs.mode.infoTitle","\uB300\uB9BD \uBC29\uC2DD"),items:[p("wordPairs.mode.infoInclude","\uC74C\uC18C \uD3EC\uD568 \u2014 \uC120\uD0DD\uD55C \uC74C\uC18C\uAC00 \uBAA8\uB450 \uB4E4\uC5B4\uAC04 \uB2E8\uC5B4\uC640 \uADF8 \uB300\uB9BD\uC30D\uC744 \uCC3E\uC544\uC694."),p("wordPairs.mode.infoPick","\uC74C\uC18C \uB300\uB9BD \u2014 \uC120\uD0DD\uD55C \uC74C\uC18C\uAC00 \uB300\uB9BD\uC30D \uB450 \uB2E8\uC5B4\uC758 \uC2E4\uC81C \uCC28\uC774\uC810\uC77C \uB54C\uB9CC \uB9E4\uCE6D\uB3FC\uC694."),p("wordPairs.mode.infoContrast","\uC74C\uC18C \uB300\uB9BD \uC9C0\uC815 \u2014 \uAE30\uC900 \uB2E8\uC5B4\uC640 \uB300\uB9BD \uB2E8\uC5B4\uC758 \uC74C\uC18C\uB97C \uAC01\uAC01 \uC9C1\uC811 \uC120\uD0DD\uD574 \uB300\uB9BD\uC30D\uC744 \uCC3E\uC544\uC694.")]})},{label:m.phonemeOrder,items:[m.orderAny,m.orderMatch],display:"segmented",labelAction:o.jsx(So,{items:p("wordPairs.filter.phonemeOrderInfo",{returnObjects:!0})})},{label:m.count,items:[h(1),h(2)],display:"segmented"},{label:m.inputMode,items:[m.charInput,m.pronInput],display:"segmented",labelAction:o.jsx(So,{title:p("wordPairs.input.infoTitle","\uC785\uB825 \uBC29\uC2DD"),items:[p("wordPairs.input.infoChar","\uAE00\uC790 \uC120\uD0DD \u2014 \uC120\uD0DD\uD55C \uC74C\uC18C\uB85C \uB2E8\uC5B4(\uAE00\uC790 \uAE30\uC900)\uB97C \uCC3E\uC740 \uD6C4, \uB2E8\uC5B4\uC758 \uD45C\uC900 \uBC1C\uC74C \uB300\uB9BD\uC30D\uC744 \uCC3E\uC2B5\uB2C8\uB2E4."),p("wordPairs.input.infoPron","\uBC1C\uC74C \uC120\uD0DD \u2014 \uC120\uD0DD\uD55C \uC74C\uC18C\uB85C \uD45C\uC900 \uBC1C\uC74C \uB300\uB9BD\uC30D\uC744 \uCC3E\uC2B5\uB2C8\uB2E4.")]})}],f={[m.searchMode]:t==="explicit"?m.explicit:t==="pick"?m.pick:m.include,[m.phonemeOrder]:r==="ordered"?m.orderMatch:m.orderAny,[m.count]:h(i),[m.inputMode]:c==="phoneme"?m.pronInput:m.charInput},b=(y,v)=>{v===m.searchMode?a(y===m.explicit?"explicit":y===m.pick?"pick":"include"):v===m.phonemeOrder?n(y===m.orderMatch?"ordered":"unordered"):v===m.count?s(y===h(2)?2:1):v===m.inputMode&&u(y===m.pronInput?"phoneme":"word")};return o.jsx(va,{className:d,title:e??p("wordPairs.filter.searchOptionsTitle","\uB300\uB9BD \uC124\uC815"),sections:g,selected:f,onSelect:b,align:"inline"})}var D7=".ihabdevteam-core-scope .popup-list .popup-panel{max-height:calc(100% - 60px);max-width:880px;width:calc(100% - 40px)}.ihabdevteam-core-scope .popup-list .popup-content{display:flex;flex-direction:column;gap:var(--spacing-m);min-height:0;overflow:hidden}.ihabdevteam-core-scope .popup-list .table-wrap{flex:1;min-height:0;overflow-x:auto;overflow-y:auto;overscroll-behavior-y:contain}.ihabdevteam-core-scope .popup-list .table-fields,.ihabdevteam-core-scope .popup-list .table-row{min-width:520px}.ihabdevteam-core-scope .popup-list__row--selected{background:var(--color-deepWhite);color:var(--color-main);font-weight:600}";J(D7);function Zb(e){const{title:t,items:a,columns:r,gridTemplateColumns:n,searchPlaceholder:i,searchFn:s,defaultSortKey:c,defaultSortAsc:u=!0,selectedId:d,selectedIds:p,onSelect:m,onClose:h,pageSizeOptions:g=[10,25,50,100],initialPageSize:f,emptyText:b,countLabel:y,topContent:v,className:C=""}=e,{t:w}=ge.useTranslation(),x=i??w("common.search","\uAC80\uC0C9"),S=b??w("common.emptyList","\uD56D\uBAA9\uC774 \uC5C6\uC2B5\uB2C8\uB2E4."),[_,k]=l.useState(""),[N,A]=l.useState(c??r[0]?.key??""),[D,H]=l.useState(u),[P,T]=l.useState(String(f??g[0]??10)),[E,L]=l.useState(1);l.useEffect(()=>{L(1)},[_,P]);const F=s!==null,te=l.useCallback((O,Y)=>{if(!Y)return!0;const z=Y.toLowerCase();return r.some(re=>{const Q=O[re.key];return Q==null?!1:String(Q).toLowerCase().includes(z)})},[r]),Z=s??te,V=l.useMemo(()=>{const O=F?a.filter(Y=>Z(Y,_)):a;return N?[...O].sort((Y,z)=>{const re=Y[N]??"",Q=z[N]??"";return re===Q?0:D?re>Q?1:-1:re<Q?1:-1}):O},[a,_,N,D,F,Z]),j=Math.max(1,Math.ceil(V.length/Number(P))),M=V.slice((E-1)*Number(P),E*Number(P)),$=l.useCallback(O=>{N===O?H(Y=>!Y):(A(O),H(!0))},[N]),W=l.useMemo(()=>{if(typeof y=="string"&&y.includes("{n}")){const[O,Y]=y.split("{n}");return{prefix:O,suffix:Y}}return{prefix:w("common.totalCountPrefix","\uCD1D "),suffix:w("common.totalCountSuffix","\uAC1C")}},[y,w]),q=l.useMemo(()=>r.map(O=>({label:O.label,onClick:O.sortable!==!1?()=>$(O.key):void 0,className:O.className,sortDir:O.sortable!==!1&&N===O.key?D?"asc":"desc":null})),[r,N,D,$]),X=l.useMemo(()=>g.map(O=>({value:String(O),label:w("common.pageSizeLabel",{n:O})})),[g,w]);return o.jsxs(Ta,{className:`popup-list ${C}`,title:t,onClose:h,children:[v,o.jsx(vn,{count:{value:V.length,prefix:W.prefix,suffix:W.suffix},search:F?{value:_,onChange:k,placeholder:x}:void 0,pageSize:{options:X,value:P,onChange:T},pagination:{page:E,total:j,onChange:L}}),o.jsx(_n,{size:"medium",gridTemplateColumns:n,resizable:!0,fields:q,items:M,onRowClick:m,renderRow:O=>{const Y=p!=null?O.id!=null&&p.has(O.id):d!=null&&O.id===d;return r.map(z=>({content:z.render?z.render(O):O[z.key]??"",className:Y?"popup-list__row--selected":z.className}))},empty:S})]})}function Xb(e){const{title:t,message:a,topContent:r,details:n,children:i,confirmLabel:s,cancelLabel:c,hideCancel:u=!1,extraAction:d,confirmVariant:p="main",confirmDisabled:m=!1,onConfirm:h,closeOnConfirm:g=!0,onClose:f,inline:b,size:y="small",className:v}=e,{t:C}=ge.useTranslation(),w=l.useRef(!1),[x,S]=l.useState(!1);return o.jsxs(Ta,{title:t,onClose:f,closeDisabled:x,inline:b,size:y,className:xe("confirm-popup",v),buttons:[...d?[{label:d.label,variant:d.variant??"default",disabled:d.disabled||x,onClick:async({closeWithAnimation:_})=>{if(!w.current){w.current=!0,S(!0);try{await d.onClick(_),(d.closeOnClick??!0)&&_()}finally{w.current=!1,S(!1)}}}}]:[],...u?[]:[{label:c??C("common.cancel","\uCDE8\uC18C"),variant:"default",disabled:x,onClick:({closeWithAnimation:_})=>_()}],{label:s??C("common.confirm","\uD655\uC778"),variant:p,disabled:m||x,onClick:async({closeWithAnimation:_})=>{if(!w.current){w.current=!0,S(!0);try{await h(_),g&&_()}finally{w.current=!1,S(!1)}}}}],children:[r!=null&&o.jsx("div",{className:"confirm-popup__top",children:r}),n&&n.length>0&&o.jsx(kr,{children:n.map((_,k)=>o.jsx(Na,{label:_.label,children:o.jsx("span",{className:"panel-row__text body-2",children:_.value})},k))}),o.jsx("p",{className:"body-2 confirm-popup__message",children:a}),i]})}var E7=".ihabdevteam-core-scope .coupon-input-popup__input{background:var(--color-white);border:1px solid var(--color-whiteLine);border-radius:var(--radius-s);box-sizing:border-box;color:var(--color-darkGray);font-family:inherit;height:48px;letter-spacing:.06em;padding:0 14px;text-transform:uppercase;transition:border-color .15s;width:100%}.ihabdevteam-core-scope .coupon-input-popup__input:focus{border-color:var(--color-main);outline:none}.ihabdevteam-core-scope .coupon-input-popup__input::-moz-placeholder{color:var(--color-lightGray);letter-spacing:normal;text-transform:none}.ihabdevteam-core-scope .coupon-input-popup__input::placeholder{color:var(--color-lightGray);letter-spacing:normal;text-transform:none}.ihabdevteam-core-scope .coupon-input-popup__error{color:#e84040;color:var(--color-red,#e84040);margin:var(--spacing-xs) 0 0}";J(E7);function Qb({onApply:e,onCancel:t}){const{t:a}=ge.useTranslation(),[r,n]=l.useState(""),[i,s]=l.useState(!1),[c,u]=l.useState(null),d=l.useRef(null);l.useEffect(()=>{d.current?.focus()},[]);const p=l.useCallback(async g=>{const f=r.trim();if(f){s(!0),u(null);try{await e(f),g()}catch(b){u(Yr(b)),s(!1)}}},[r,e]),m=l.useCallback((g,f)=>{g.key==="Enter"&&p(f)},[p]),h=g=>{n(g.target.value),u(null)};return o.jsx(Ta,{className:"coupon-input-popup",title:a("usage.couponButton","\uCFE0\uD3F0 \uC785\uB825"),size:"small",onClose:t,closeDisabled:i,buttons:[{label:a("common.cancel","\uCDE8\uC18C"),variant:"default",disabled:i,onClick:({closeWithAnimation:g})=>g()},{label:a("coupons.applyButton","\uC801\uC6A9"),variant:"main",disabled:!r.trim()||i,onClick:({closeWithAnimation:g})=>{p(g)}}],children:({closeWithAnimation:g})=>o.jsxs(o.Fragment,{children:[o.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:h,onKeyDown:f=>m(f,g),disabled:i,autoComplete:"off",spellCheck:!1}),c&&o.jsx("p",{className:"coupon-input-popup__error caption-1",role:"alert",children:c})]})})}var j7=".ihabdevteam-core-scope .tooltip-content.tooltip-training{pointer-events:none}.ihabdevteam-core-scope .tooltip-training__box{background:var(--color-white);border-radius:var(--radius-m);box-shadow:0 4px 16px rgba(0,0,0,.12);padding:10px 14px}.ihabdevteam-core-scope .tooltip-training__groups{align-items:stretch;display:flex;flex-direction:row;gap:0}.ihabdevteam-core-scope .tooltip-training__section{display:flex;flex-direction:column;flex-shrink:0;gap:6px;width:100px}.ihabdevteam-core-scope .tooltip-training__section-header{align-items:center;display:flex}.ihabdevteam-core-scope .tooltip-training__type-label{color:var(--color-darkGray);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ihabdevteam-core-scope .tooltip-training__divider{align-self:center;background:var(--color-whiteLine);flex-shrink:0;height:20px;margin:0 10px;width:1px}.ihabdevteam-core-scope .tooltip-training__items{display:flex;flex-direction:column;gap:2px;pointer-events:none}.ihabdevteam-core-scope .tooltip-training__items .training-block-button--compact{cursor:default}";J(j7);const Jb=200;function L7(e){return e.itemId?(bs()[e.trainingType]??[]).find(t=>t?.id!=null&&String(t.id)===String(e.itemId))??null:null}function eg({plan:e,anchorRect:t,offset:a=12,onClose:r}){const n=l.useMemo(()=>Jr.map(s=>({type:s,items:(e.items??[]).filter(c=>c.trainingType===s.key)})).filter(s=>s.items.length>0),[e.items]);if(n.length===0)return null;const i=o.jsx("div",{className:"tooltip-training__box",children:o.jsx("div",{className:"tooltip-training__groups",children:n.flatMap(({type:s,items:c},u)=>[u>0?o.jsx("div",{className:"tooltip-training__divider"},`div-${s.key}`):null,o.jsxs("div",{className:"tooltip-training__section",children:[o.jsx("div",{className:"tooltip-training__section-header",children:o.jsx("span",{className:"tooltip-training__type-label body-3b",children:s.label})}),o.jsx("div",{className:"tooltip-training__items",children:c.map((d,p)=>{const m=L7(d);return m?o.jsx(wn,{index:p,type:s,trainingData:m,size:"compact",hideCheckBadge:!0},d.itemId??p):null})})]},s.key)])})});return t?o.jsx(Sa,{anchorRect:t,offset:a,onClose:r,closeOnOutsideClick:!1,className:"tooltip-training",children:i}):i}var M7=".ihabdevteam-core-scope .party-container{inset:0;overflow:visible;pointer-events:none;position:fixed}.ihabdevteam-core-scope .confetti{display:none;left:0;opacity:0;position:fixed;top:0;transform:translateZ(0);will-change:transform,opacity}.ihabdevteam-core-scope .confetti--left{transform-origin:left bottom}.ihabdevteam-core-scope .confetti--right{transform-origin:right bottom}.ihabdevteam-core-scope .confetti.show{display:block;opacity:1;transition:opacity .2s linear}";J(M7);const tg=["var(--color-main)","var(--color-sub)"];function Rc({active:e=!1,count:t=40,duration:a=2e3,strength:r=1,onComplete:n,trigger:i=0}){const s=l.useMemo(()=>{const b=Math.floor(t/2),y=t-b,v=(C,w)=>Array.from({length:C}).map((x,S)=>{const _=6+Math.random()*12,k=Math.round(Math.min(18,_*Math.min(1.5,1+r*.4))),N=tg[Math.floor(Math.random()*tg.length)],A=Math.random()*300,D=(360+Math.random()*260)*r*1.2,H=(w==="left"?-95+Math.random()*40:-85-Math.random()*40)*Math.PI/180,P=Math.cos(H)*D,T=Math.sin(H)*D*1.35,E=Math.random()*720-360,L=(1200+Math.random()*3e3)*Math.min(1.6,1+r*.3),F=Math.random()>.7?"50%":"3px";return{id:`${w}-${S}`,side:w,size:k,color:N,delay:A,vx:P,vy:T,angularVel:E,life:L,borderRadius:F}});return[...v(b,"left"),...v(y,"right")]},[t,r]),c=l.useRef(null),u=l.useRef({}),d=l.useRef(null),p=l.useRef(n);l.useEffect(()=>{p.current=n},[n]);const m=l.useRef(null),h=l.useRef(null),g=()=>{if(typeof document>"u")return null;let b=document.querySelector("[data-ihab-effect-root]");return b||(b=document.createElement("div"),b.className="app-effect",b.dataset.ihabEffectRoot="",b.style.position="fixed",b.style.inset="0",b.style.pointerEvents="none",b.style.zIndex="99998",document.body.appendChild(b)),b};if(typeof document<"u"&&h.current==null&&(h.current=g()),l.useEffect(()=>{if(!e)return;if(typeof window<"u"&&window.matchMedia?.("(prefers-reduced-motion: reduce)").matches){p.current?.();return}const b=1200,y=performance.now(),v=h.current&&h.current!==document.body?h.current.getBoundingClientRect():null,C=Math.max(60,(window.innerHeight||800)*.05),w=j=>Math.max(40,(j||window.innerWidth)*.02),x=v?.width||window.innerWidth||375,S=v?.height||window.innerHeight||812,_=j=>{const M=[...j].sort(($,W)=>$-W);return M[Math.floor(M.length/2)]||1},k=_(s.map(j=>Math.abs(j.vy))),N=_(s.map(j=>Math.abs(j.vx))),A=Math.sqrt(2*b*(S*.72+C))/k,D=k*A/b,H=x*.5/(N*D),P=(j,M,$)=>Math.min($,Math.max(M,j)),T=P(A,.8,2.4),E=P(H,.7,2.2),L=s.map(j=>({...j,vx:j.vx*E,vy:j.vy*T,startTime:y+j.delay,ended:!1})),F=v?{x:v.left-w(v.width),y:v.top+v.height+C}:{x:-w(window.innerWidth),y:window.innerHeight+C},te=v?{x:v.left+v.width+w(v.width),y:v.top+v.height+C}:{x:window.innerWidth+w(window.innerWidth),y:window.innerHeight+C},Z=j=>{let M=!1;for(const $ of L){const W=u.current[$.id];if(!W||!W)continue;if(j<$.startTime){W.style.display="none";continue}if(!$._inited){const ce=$.side==="left"?F.x:te.x,I=$.side==="left"?F.y:te.y;W.style.left=`${ce}px`,W.style.top=`${I}px`,W.style.transform="translate3d(0px, 0px, 0)",W.style.display="block",W.style.zIndex="100000";try{if(typeof window<"u"&&typeof $.color=="string"&&$.color.startsWith("var(")){const ee=$.color.slice(4,-1).trim(),pe=getComputedStyle(document.documentElement).getPropertyValue(ee).trim();pe?W.style.background=pe:W.style.background="#FF0060"}}catch{}$._inited=!0}const q=(j-$.startTime)/1e3;if(q<0)continue;const X=$.life/1e3;if(q>=X){W.style.opacity="0",W.style.display="none",$.ended=!0;continue}M=!0;const O=$.side==="left"?F.x:te.x,Y=$.side==="left"?F.y:te.y,z=O+$.vx*q,re=Y+$.vy*q+.5*b*q*q,Q=($.angularVel||0)*q,ne=z-O,me=re-Y;W.style.transform=`translate3d(${ne}px, ${me}px, 0) rotate(${Q}deg)`,W.style.opacity=`${Math.max(0,1-q/X)}`}M?d.current=requestAnimationFrame(Z):p.current?.()};d.current=requestAnimationFrame(Z);const V=setTimeout(()=>{try{if((h.current?h.current.querySelectorAll(".confetti"):document.querySelectorAll(".confetti")).length===0&&!document.querySelector(".party-container")){const j=document.createElement("div");j.className="party-container",j.style.position="fixed",j.style.inset="0",j.style.pointerEvents="none",j.style.overflow="visible",j.style.zIndex="2147483647";for(const M of s){const $=document.createElement("span");$.className=`confetti confetti--${M.side}`,$.setAttribute("aria-hidden","true"),$.style.display="none",$.style.position="fixed",$.style.left="0px",$.style.top="0px",$.style.width=`${M.size}px`,$.style.height=`${Math.max(4,M.size*.6)}px`;let W=M.color;try{if(typeof W=="string"&&W.startsWith("var(")){const q=W.slice(4,-1).trim(),X=getComputedStyle(document.documentElement).getPropertyValue(q).trim();X&&(W=X)}}catch{}$.style.background=W,$.style.borderRadius=M.borderRadius,$.style.transform="translate3d(0,0,0)",$.style.opacity="0",j.appendChild($),u.current[M.id]=$}(document.body||h.current).appendChild(j),m.current=j}}catch{}},300);return()=>{if(d.current&&cancelAnimationFrame(d.current),clearTimeout(V),m.current){try{m.current.remove()}catch{}m.current=null}}},[e,a,i,s]),!e)return null;const f=o.jsx("div",{className:"party-container",ref:c,children:s.map(b=>o.jsx("span",{"aria-hidden":!0,ref:y=>{u.current[b.id]=y},className:`confetti confetti--${b.side}`,style:{width:`${b.size}px`,height:`${Math.max(4,b.size*.6)}px`,background:b.color,borderRadius:b.borderRadius}},`${b.id}-${i}`))});return typeof document<"u"?qt.createPortal(f,h.current||document.body):f}function ag({trigger:e=0,active:t=!1}){const a=l.useRef(0);return l.useEffect(()=>{a.current=e},[e]),o.jsx(Rc,{active:t,trigger:e})}var P7=".ihabdevteam-core-scope .page-title{align-items:center;display:flex;gap:12px;justify-content:space-between;padding-bottom:var(--spacing-page)}.ihabdevteam-core-scope .page-title__main{align-items:flex-start;display:flex;flex:1;flex-direction:column;min-width:0;text-align:left}.ihabdevteam-core-scope .page-title__title-row{align-items:center;display:flex;gap:12px}.ihabdevteam-core-scope .page-title__title{margin:0}.ihabdevteam-core-scope .page-title__title-action{align-items:center;display:flex;flex-shrink:0}.ihabdevteam-core-scope .page-title__badge{align-items:center;display:flex}.ihabdevteam-core-scope .page-title__sub{color:var(--color-gray);margin:6px 0 0}.ihabdevteam-core-scope .page-title__action{flex-shrink:0;margin-left:var(--spacing-s)}@media (max-width:767px){.ihabdevteam-core-scope .page-title{align-items:flex-start;flex-direction:column;gap:10px}.ihabdevteam-core-scope .page-title__action{align-self:flex-start;margin-left:0}}.ihabdevteam-core-scope .page-title__back{flex-shrink:0;margin-left:-8px;margin-right:-4px}";J(P7);function og({title:e,sub:t,rightAction:a,titleAction:r,badge:n,badgeVariant:i="default",documentTitle:s,onBack:c,backLabel:u}){const{t:d}=ge.useTranslation();ol(typeof e=="string"?e:s??null);const p=u??d("common.back","\uB4A4\uB85C");return o.jsxs("div",{className:"page-title",children:[o.jsxs("div",{className:"page-title__main",children:[o.jsxs("div",{className:"page-title__title-row",children:[c&&o.jsx(se,{className:"page-title__back",size:48,type:"dot",icon:"chevron-left",iconSize:"large",useBorder:!1,iconColor:"var(--color-text-primary)",ariaLabel:p,showTooltipInfo:p,onClick:c}),o.jsx("h1",{className:"page-title__title h1",children:e}),n&&o.jsx("div",{className:"page-title__badge",children:o.jsx(ht,{label:n,size:"small",variant:i,fill:"outline"})}),r?o.jsx("div",{className:"page-title__title-action",children:r}):null]}),t&&o.jsx("p",{className:"page-title__sub body-2",children:t})]}),a?o.jsx("div",{className:"page-title__action",children:a}):null]})}function rg(e){return e??""}const ng=l.createContext({words:[],loading:!1});function ig(){return l.useContext(ng)}function sg({words:e,loading:t,error:a,statusMessage:r,localVersion:n,remoteVersion:i,progress:s,clearAndRefetch:c,checkRemoteVersion:u,children:d}){return o.jsx(ng.Provider,{value:{words:e,loading:t,error:a,statusMessage:r,localVersion:n,remoteVersion:i,progress:s,clearAndRefetch:c,checkRemoteVersion:u},children:d})}var R7=".ihabdevteam-core-scope .summary-strip{background:var(--color-surface);border:1px solid var(--color-border);border-radius:var(--radius-card);box-shadow:var(--shadow-card);padding:var(--spacing-m) var(--spacing-l);width:100%}.ihabdevteam-core-scope .summary-strip__row{align-items:center;display:flex;gap:var(--spacing-l)}.ihabdevteam-core-scope .summary-strip__items{grid-gap:var(--spacing-s) var(--spacing-l);display:grid;flex:1;gap:var(--spacing-s) var(--spacing-l);grid-template-columns:repeat(2,minmax(0,1fr));min-width:0}@media (min-width:640px){.ihabdevteam-core-scope .summary-strip__items{grid-template-columns:repeat(3,minmax(0,1fr))}}@media (min-width:1024px){.ihabdevteam-core-scope .summary-strip__items{grid-template-columns:repeat(4,minmax(0,1fr))}}@media (min-width:1280px){.ihabdevteam-core-scope .summary-strip__items{grid-template-columns:repeat(4,minmax(0,1fr));grid-template-columns:repeat(var(--summary-strip-cols,4),minmax(0,1fr))}}.ihabdevteam-core-scope .summary-strip__item{min-width:0}.ihabdevteam-core-scope .summary-strip__label{color:var(--color-gray);margin:0}.ihabdevteam-core-scope .summary-strip__value{margin:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ihabdevteam-core-scope .summary-strip__actions{align-items:center;display:flex;flex-shrink:0;gap:var(--spacing-xs)}";J(R7);function lg({items:e,actions:t,columns:a,className:r,style:n}){const i=a??e.length;return o.jsx("section",{className:xe("summary-strip",r),style:{"--summary-strip-cols":String(i),...n},children:o.jsxs("div",{className:"summary-strip__row",children:[o.jsx("div",{className:"summary-strip__items",children:e.map((s,c)=>o.jsxs("div",{className:"summary-strip__item",children:[o.jsx("p",{className:"summary-strip__label caption-1",children:s.label}),o.jsx("p",{className:"summary-strip__value body-3b",children:s.value})]},c))}),t&&o.jsx("div",{className:"summary-strip__actions",children:t})]})})}var $7='.ihabdevteam-core-scope .report-doc{--report-page-w:210mm;--report-page-h:297mm;--report-margin:14mm;display:flex;justify-content:safe center;max-width:100%;min-width:0;overflow-x:auto;padding-block:var(--spacing-s);width:100%}.ihabdevteam-core-scope .report-doc__pages{align-items:center;display:flex;flex-direction:column;gap:var(--spacing-l)}.ihabdevteam-core-scope .report-doc__page{background:#fff;box-shadow:var(--shadow-card);color:#000;display:flex;flex-direction:column;flex-shrink:0;min-height:var(--report-page-h);padding:var(--report-margin);width:var(--report-page-w)}.ihabdevteam-core-scope .report-doc__header{align-items:center;display:flex;justify-content:space-between;margin-bottom:var(--spacing-s)}.ihabdevteam-core-scope .report-doc__title{margin:0}.ihabdevteam-core-scope .report-doc__footer{align-items:center;color:var(--color-gray);display:flex;justify-content:space-between;margin-top:auto;padding-top:var(--spacing-s)}.ihabdevteam-core-scope .report-doc__footer-left{align-items:center;display:flex;gap:var(--spacing-s)}.ihabdevteam-core-scope .report-doc__page-no{font-feature-settings:"tnum";font-variant-numeric:tabular-nums}.ihabdevteam-core-scope .report-doc__logo{height:28px;width:auto}.ihabdevteam-core-scope .report-doc__measure{display:flex;flex-direction:column;opacity:0;pointer-events:none;position:absolute;width:calc(var(--report-page-w) - var(--report-margin)*2);z-index:-10}.ihabdevteam-core-scope .report-doc__measure-blocks{display:flex;flex-direction:column}.ihabdevteam-core-scope .report-doc__ruler{height:calc(var(--report-page-h) - var(--report-margin)*2)}@media print{.ihabdevteam-core-scope .report-doc{display:block;overflow:visible;padding-block:0}.ihabdevteam-core-scope .report-doc__pages{display:block}.ihabdevteam-core-scope .report-doc__page{-moz-column-break-after:page;box-shadow:none;break-after:page;page-break-after:always}.ihabdevteam-core-scope .report-doc__page:last-child{-moz-column-break-after:auto;break-after:auto;page-break-after:auto}}';J($7);const I7=(e,t)=>`${e} / ${t}`;function cg({blocks:e,sectionTitles:t,logo:a,footer:r,pageLabel:n=I7,pageWidth:i,pageHeight:s,margin:c,className:u,style:d}){const p=l.useRef(null),m=l.useRef(null),h=l.useRef(null),[g,f]=l.useState(null),b=e.map(_=>`${_.id}\0${_.section??""}\0${_.group??""}`).join("");l.useLayoutEffect(()=>{const _=p.current,k=h.current;if(!_||!k)return;const N=m.current?.offsetHeight??0,A=k.offsetHeight-N,D=Array.from(_.children).map(F=>F.offsetHeight),H=[];e.forEach((F,te)=>{const Z=H[H.length-1],V=Z?e[Z[0]]:void 0;V&&F.group!=null&&V.group===F.group?Z.push(te):H.push([te])});const P=[];let T=[],E=0;const L=()=>{T.length&&P.push(T),T=[],E=0};H.forEach(F=>{const te=F.reduce((Z,V)=>Z+D[V],0);T.length&&e[T[0]].section!==e[F[0]].section&&L(),T.length&&E+te>A&&L(),te>A?F.forEach(Z=>{T.length&&E+D[Z]>A&&L(),T.push(Z),E+=D[Z]}):(F.forEach(Z=>T.push(Z)),E+=te)}),L(),f(P)},[b]);const y=Pl,v=y,C=r??o.jsxs(o.Fragment,{children:[o.jsx("img",{src:v,alt:"IHAB",className:"report-doc__logo"}),"\xA9 IHAB, Inc. All rights reserved."]}),w=(_,k,N)=>({header:o.jsxs("div",{className:"report-doc__header",children:[o.jsx("h2",{className:"report-doc__title h3b",children:N!=null&&t?.[N]||null}),a]}),footer:o.jsxs("div",{className:"report-doc__footer caption-1",children:[o.jsx("span",{className:"report-doc__footer-left",children:C}),o.jsx("span",{className:"report-doc__page-no",children:n(_,k)})]})}),x=w(1,1,e[0]?.section),S={...i?{"--report-page-w":i}:null,...s?{"--report-page-h":s}:null,...c?{"--report-margin":c}:null,...d};return o.jsxs("div",{className:xe("report-doc",u),style:S,children:[o.jsxs("div",{className:"report-doc__measure","aria-hidden":!0,children:[o.jsx("div",{ref:h,className:"report-doc__ruler"}),o.jsxs("div",{ref:m,children:[x.header,x.footer]}),o.jsx("div",{ref:p,className:"report-doc__measure-blocks",children:e.map(_=>o.jsx("div",{children:_.content},_.id))})]}),g&&o.jsx("div",{className:"report-doc__pages",children:g.map((_,k)=>{const{header:N,footer:A}=w(k+1,g.length,e[_[0]].section);return o.jsxs("section",{className:"report-doc__page",children:[N,_.map(D=>o.jsx("div",{children:e[D].content},e[D].id)),A]},k)})})]})}var z7=".ihabdevteam-core-scope .report-info{border:1px solid var(--color-border);border-radius:var(--radius-card);margin-bottom:var(--spacing-l);padding:var(--spacing-s) var(--spacing-m)}.ihabdevteam-core-scope .report-info__title{color:var(--color-darkGray);margin:0 0 var(--spacing-s)}.ihabdevteam-core-scope .report-info__grid{grid-gap:var(--spacing-xs) var(--spacing-l);display:grid;gap:var(--spacing-xs) var(--spacing-l);grid-template-columns:repeat(4,minmax(0,1fr));grid-template-columns:repeat(var(--report-info-cols,4),minmax(0,1fr))}@media (max-width:640px){.ihabdevteam-core-scope .report-info__grid{grid-template-columns:repeat(2,minmax(0,1fr))}}.ihabdevteam-core-scope .report-info__field{align-items:baseline;display:flex;gap:var(--spacing-s)}.ihabdevteam-core-scope .report-info__label{color:var(--color-gray);flex-shrink:0;width:3.5rem}.ihabdevteam-core-scope .report-info__value{color:var(--color-darkGray);white-space:nowrap}";J(z7);function dg({title:e,fields:t,columns:a=4,className:r,style:n}){return o.jsxs("div",{className:xe("report-info",r),style:{"--report-info-cols":String(a),...n},children:[e&&o.jsx("p",{className:"report-info__title h5b",children:e}),o.jsx("div",{className:"report-info__grid",children:t.map((i,s)=>o.jsxs("div",{className:"report-info__field body-2",children:[o.jsx("span",{className:"report-info__label body-3",children:i.label}),o.jsx("span",{className:"report-info__value",children:i.value})]},s))})]})}var O7=".ihabdevteam-core-scope .update-alert{animation:update-alert-slide-in .32s cubic-bezier(.34,1.56,.64,1) both;backdrop-filter:blur(20px) saturate(180%);-webkit-backdrop-filter:blur(20px) saturate(180%);background:hsla(0,0%,97%,.92);border:1px solid var(--color-main);border-radius:var(--radius-m);box-shadow:0 4px 24px rgba(0,0,0,.14),0 1px 4px rgba(0,0,0,.08),inset 0 0 0 .5px rgba(0,0,0,.1);padding:var(--spacing-l);width:380px}.ihabdevteam-core-scope .update-alert,.ihabdevteam-core-scope .update-alert-stack{display:flex;flex-direction:column;gap:12px;max-width:calc(100vw - 32px);position:fixed;right:16px;top:16px;z-index:var(--z-alert)}.ihabdevteam-core-scope .update-alert-stack{align-items:flex-end}.ihabdevteam-core-scope .update-alert-stack .update-alert{position:relative;z-index:auto}.ihabdevteam-core-scope .update-alert:has(.update-alert__close) .update-alert__title{padding-right:24px}.ihabdevteam-core-scope .update-alert__close{align-items:center;background:none;border:none;border-radius:6px;border-radius:var(--radius-s,6px);color:#888;cursor:pointer;display:flex;font-size:20px;height:24px;justify-content:center;line-height:1;position:absolute;right:8px;top:8px;width:24px}.ihabdevteam-core-scope .update-alert__close:hover{background:rgba(0,0,0,.06);color:#333}.ihabdevteam-core-scope .update-alert__top{align-items:center;display:flex;gap:10px}@keyframes update-alert-slide-in{0%{opacity:0;transform:translateX(calc(100% + 24px))}to{opacity:1;transform:translateX(0)}}.ihabdevteam-core-scope .update-alert__icon{align-items:center;color:var(--color-main);display:flex;flex-shrink:0;font-size:20px;height:40px;justify-content:center;width:40px}.ihabdevteam-core-scope .update-alert__body{flex:1;min-width:0}.ihabdevteam-core-scope .update-alert__title{color:#1a1a1a;text-align:left}.ihabdevteam-core-scope .update-alert__message{color:#555;margin-top:2px;text-align:left}.ihabdevteam-core-scope .update-alert__action{width:100%}";J(O7);function ug({title:e,message:t,actionLabel:a,onAction:r,icon:n,onClose:i,className:s=""}){const{t:c}=ge.useTranslation(),u=a??c("common.update","\uC5C5\uB370\uC774\uD2B8");return o.jsxs("div",{className:xe("update-alert",s),role:"alert",children:[i&&o.jsx("button",{type:"button",className:"update-alert__close",onClick:i,"aria-label":c("common.close","\uB2EB\uAE30"),children:"\xD7"}),o.jsxs("div",{className:"update-alert__top",children:[o.jsx("div",{className:"update-alert__icon",children:n??o.jsx(rd,{size:20,strokeWidth:2})}),o.jsxs("div",{className:"update-alert__body",children:[o.jsx("div",{className:"update-alert__title h4",children:e}),o.jsx("div",{className:"update-alert__message body-3",children:t})]})]}),r&&o.jsx(se,{size:32,variant:"main",shape:"pill",className:"update-alert__action",onClick:r,children:u})]})}var F7=".ihabdevteam-core-scope .training-card{background:var(--color-white);border:1px solid transparent;border-radius:var(--radius-card);display:flex;flex-direction:column;gap:10px;max-width:100%;padding:18px;position:relative;transition:border-color .15s,box-shadow .15s;width:360px}.ihabdevteam-core-scope .training-card:hover{border-color:var(--color-main);box-shadow:0 4px 16px var(--color-main-a10)}.ihabdevteam-core-scope .training-card--dragging{opacity:.5}.ihabdevteam-core-scope .training-card--clickable{cursor:pointer}.ihabdevteam-core-scope .training-card__header{display:flex;flex-direction:column;gap:4px}.ihabdevteam-core-scope .training-card__title-row{align-items:center;display:flex;gap:8px;justify-content:space-between;min-width:0}.ihabdevteam-core-scope .training-card__title{color:var(--color-darkGray);margin:0;overflow:hidden;text-align:left;text-overflow:ellipsis;white-space:nowrap}.ihabdevteam-core-scope .training-card__top-actions{align-items:center;display:flex;flex-shrink:0;gap:2px;margin-right:-8px}.ihabdevteam-core-scope .training-card__publisher{background:none;border:none;color:var(--color-gray);cursor:pointer;font-size:11px;font-weight:400;max-width:120px;overflow:hidden;padding:0;text-align:left;text-overflow:ellipsis;white-space:nowrap;width:-moz-fit-content;width:fit-content}.ihabdevteam-core-scope .training-card__publisher:hover{color:var(--color-main);text-decoration:underline}.ihabdevteam-core-scope .training-card__description{color:var(--color-gray);margin:0;min-height:1.55em;overflow:hidden;text-align:left;text-overflow:ellipsis;white-space:nowrap}.ihabdevteam-core-scope .training-card__body{display:flex;flex:1;flex-direction:column;gap:8px;justify-content:flex-end}.ihabdevteam-core-scope .training-card__empty{color:var(--color-lightGray)}.ihabdevteam-core-scope .training-card__types{display:flex;flex-wrap:wrap;gap:6px;justify-content:center}.ihabdevteam-core-scope .training-card__types .button{min-width:0;padding-inline:12px}.ihabdevteam-core-scope .training-card__words{align-content:flex-start;display:flex;flex-wrap:wrap;gap:4px}.ihabdevteam-core-scope .training-card__footer{align-items:center;display:flex;gap:var(--spacing-xs);justify-content:space-between;padding-top:8px}.ihabdevteam-core-scope .training-card__footer-left{align-items:center;display:flex;gap:6px;min-width:0}.ihabdevteam-core-scope .training-card__date{color:var(--color-gray);font-size:11px;white-space:nowrap}.ihabdevteam-core-scope .training-card__meta{align-items:center;display:flex;gap:4px}";J(F7);function pg({title:e,description:t,topActions:a,children:r,footerLeft:n,footerRight:i,onClick:s,draggable:c,onDragStart:u,onDragEnd:d,className:p}){const m=n!=null||i!=null,h=r!=null&&r!==!1,g=l.useCallback(f=>{s&&f.target===f.currentTarget&&(f.key==="Enter"||f.key===" ")&&(f.preventDefault(),s())},[s]);return o.jsxs("div",{className:xe("training-card",s?"training-card--clickable":"",p),onClick:s,onKeyDown:s?g:void 0,role:s?"button":void 0,tabIndex:s?0:void 0,draggable:c,onDragStart:u,onDragEnd:d,children:[o.jsxs("div",{className:"training-card__header",children:[o.jsxs("div",{className:"training-card__title-row",children:[typeof e=="string"?o.jsx("h3",{className:"training-card__title h4",children:e}):e,a!=null&&o.jsx("div",{className:"training-card__top-actions",onClick:f=>f.stopPropagation(),children:a})]}),t!=null?typeof t=="string"?o.jsx("p",{className:"training-card__description body-3",children:t}):t:o.jsx("p",{className:"training-card__description body-3","aria-hidden":"true",children:" "})]}),h&&o.jsx("div",{className:"training-card__body",children:r}),m&&o.jsxs("div",{className:"training-card__footer",children:[n!=null&&o.jsx("div",{className:"training-card__footer-left",children:n}),i!=null&&o.jsx("div",{className:"training-card__meta",children:i})]})]})}var W7=".ihabdevteam-core-scope .training-card-group{background:var(--color-darkWhite);border:1px solid var(--color-darkWhite);border-radius:var(--radius-card);overflow:hidden;transition:border-color .15s,box-shadow .15s}.ihabdevteam-core-scope .training-card-group--dragover{border-color:var(--color-main);box-shadow:0 0 0 2px var(--color-main-a10)}.ihabdevteam-core-scope .training-card-group__header{align-items:center;cursor:pointer;display:flex;gap:8px;height:60px;padding:0 12px;-webkit-user-select:none;-moz-user-select:none;user-select:none}.ihabdevteam-core-scope .training-card-group__chevron{flex-shrink:0}.ihabdevteam-core-scope .training-card-group__title{color:var(--color-black);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ihabdevteam-core-scope .training-card-group__count{color:var(--color-main);flex-shrink:0}.ihabdevteam-core-scope .training-card-group__actions{align-items:center;display:flex;flex-shrink:0;gap:8px;margin-left:auto}.ihabdevteam-core-scope .training-card-group__empty{color:var(--color-lightGray);padding:24px 16px;text-align:center}.ihabdevteam-core-scope .training-card-group__grid{align-items:flex-start;display:flex;flex-wrap:wrap;gap:12px;padding:0 12px 12px}.ihabdevteam-core-scope .training-card-group__grid>*{min-width:0}";J(W7);function hg({title:e,count:t,collapsed:a=!1,onToggle:r,sort:n,actions:i,empty:s=!1,emptyContent:c,dragOver:u=!1,onDragOver:d,onDragLeave:p,onDrop:m,children:h,className:g}){const{t:f}=ge.useTranslation(),b=xe("training-card-group",u&&"training-card-group--dragover",a&&"training-card-group--collapsed",g);return o.jsxs("div",{className:b,onDragOver:d,onDragLeave:p,onDrop:m,children:[o.jsxs("header",{className:"training-card-group__header",children:[o.jsx(se,{size:40,type:"dot",variant:"transparent-gray",useBorder:!1,icon:a?"chevron-right":"chevron-down",ariaLabel:a?f("common.expand","\uD3BC\uCE58\uAE30"):f("common.collapse","\uC811\uAE30"),className:"training-card-group__chevron",onClick:r}),typeof e=="string"?o.jsx("span",{className:"training-card-group__title h5b",children:e}):e,t!==void 0&&o.jsx("span",{className:"training-card-group__count body-3b",children:t}),(n||i!=null)&&o.jsxs("span",{className:"training-card-group__actions",onClick:y=>y.stopPropagation(),children:[n&&o.jsx(Ut,{size:40,options:n.options,value:n.value,placeholder:n.placeholder,onChange:n.onChange}),i]})]}),!a&&(s?o.jsx("div",{className:"training-card-group__empty body-3",children:c}):o.jsx("div",{className:"training-card-group__grid",children:h}))]})}var H7=".ihabdevteam-core-scope .word-table-block__meta{background:transparent}.ihabdevteam-core-scope .word-table-block__actions{align-items:center;display:flex;gap:var(--spacing-xs);justify-content:space-between}.ihabdevteam-core-scope .word-table-block__actions-left,.ihabdevteam-core-scope .word-table-block__actions-right{display:flex;gap:var(--spacing-xs)}@media (max-width:767px){.ihabdevteam-core-scope .word-table-block__actions{align-items:stretch;flex-direction:column}.ihabdevteam-core-scope .word-table-block__actions-left,.ihabdevteam-core-scope .word-table-block__actions-right{display:grid;grid-template-columns:repeat(2,1fr)}.ihabdevteam-core-scope .word-table-block__actions .button{min-width:0;width:100%}}.ihabdevteam-core-scope .my-word-table-preview-popup .popup-panel{max-width:none;width:min(1400px,94vw)}.ihabdevteam-core-scope .my-word-table-preview-popup .popup-body{overflow:auto;overscroll-behavior-y:contain}.ihabdevteam-core-scope .word-table-block__pages{display:flex;flex-direction:column;gap:24px;gap:var(--spacing-content,24px)}@media print{.ihabdevteam-core-scope .word-table-block>.filter-panel,.ihabdevteam-core-scope .word-table-block>.section__header,.ihabdevteam-core-scope .word-table-block__actions{display:none}.ihabdevteam-core-scope .word-table-block__pages .word-table{-moz-column-break-after:page;break-after:page;page-break-after:always;position:static}.ihabdevteam-core-scope .word-table-block__pages .word-table:last-child{-moz-column-break-after:auto;break-after:auto;page-break-after:auto}}";J(H7);const V7="speechear:saved_word_tables";function G7(e){if(typeof e!="object"||e===null)return!1;const t=e;return typeof t.id=="string"&&typeof t.name=="string"&&Array.isArray(t.items)}function q7(){try{const e=localStorage.getItem(V7);if(!e)return[];const t=JSON.parse(e);return Array.isArray(t)?t.filter(G7):[]}catch{return[]}}function mg({title:e,titleIcon:t,disc:a,items:r,onSaveComplete:n,onLoad:i,onRemoveItem:s,onReset:c,resetLabel:u,saveButtonLabel:d,secondarySaveButtonLabel:p,onReorder:m,showCellCount:h,onAddItem:g,className:f,renderSavePopup:b,renderWordSearch:y,hideControls:v,saveOnly:C,tableName:w,nameValue:x,onNameChange:S,descriptionValue:_,onDescriptionChange:k,namePlaceholder:N,descriptionPlaceholder:A,existingNames:D,editingName:H,onCancel:P}){const{t:T}=ge.useTranslation(),E=u??T("wordPrint.clearAllSelection","\uBAA8\uB450 \uC120\uD0DD \uD574\uC81C"),L=r===void 0,F=!!S,[te,Z]=l.useState([]),V=(x??"").trim(),j=V||(N??"").trim(),M=(_??"").trim()||(A??"").trim(),$=(D??[]).map(ue=>ue.trim().toLowerCase()),W=[H?.trim().toLowerCase(),...te].filter(ue=>!!ue),q=[...$];for(const ue of W){const Te=q.indexOf(ue);Te!==-1&&q.splice(Te,1)}const X=V!==""&&q.includes(V.toLowerCase()),[O,Y]=l.useState(Array(4).fill(null)),[z,re]=l.useState(4),[Q,ne]=l.useState(null),[me,ce]=l.useState("landscape"),[I,ee]=l.useState(["\uC774\uBBF8\uC9C0","\uB2E8\uC5B4","\uD45C\uC900 \uBC1C\uC74C"]),[pe,ke]=l.useState("\uD45C\uC2DC"),[Ce,R]=l.useState(!0),[oe,ae]=l.useState(!0),ve=l.useRef(null),De=l.useRef([]),[ze,Re]=l.useState(8),[Me,Ye]=l.useState("right"),[Ne,Ve]=l.useState(!1),[Fe,be]=l.useState(!1),{toastMessage:Ke,toastType:We,showWarning:Le,clearToast:Ge}=bn("warning"),vt=l.useCallback(()=>ne(null),[ne]),[Ue,Xe]=l.useState(()=>Math.max(r?.length??1,1));l.useEffect(()=>{L||Xe(ue=>Math.max(ue,r?.length??1))},[r?.length,L]);const ut=L?z:h?Math.max(Ue,r?.length??1):Math.max(r?.length??0,1),{width:Pe,height:rt}=io[me],et=!L&&!h,Oe=r?.length??0,Qe=Math.min(ze,Math.max(Oe,1)),tt=et?Qe:ut,xt=et?jm(r??[],tt):null,Et=!!xt&&xt.length>1,it=L?O.some(ue=>ue!==null&&ue.length>1):(r??[]).some(ue=>ue.words.length>1),Ht=w?.trim()||`${Zr(Ur())} ${it?T("wordTable.printFileNamePair","\uB300\uB9BD\uC30D\uD45C"):T("wordTable.printFileNameSingle","\uB2E8\uC5B4\uD45C")}`,mt=l.useCallback(()=>Et?De.current.filter(ue=>ue!==null):ve.current?[ve.current]:[],[Et]),{print:Vt,openNewWindow:ia,downloadHtml:Gt}=Nn({getElements:mt,paperW:Pe,paperH:rt,fileName:Ht,onPopupBlocked:()=>{Le(T("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."))}}),Ea=ue=>{re(ue),Y(Te=>{const at=Array(ue).fill(null);return Te.slice(0,ue).forEach((Ct,_t)=>{at[_t]=Ct}),at}),ne(null)},sa=ue=>{Y(Te=>{const at=[...Te];return at[ue]=null,at}),Q===ue&&ne(null)},Kt=ue=>{if(Q===null)return;const Te=Q;Y(Ct=>{const _t=[...Ct];return _t[Te]=ue,_t});const at=O.findIndex((Ct,_t)=>_t>Te&&Ct===null);ne(at!==-1?at:null)},ja=L?O.some(ue=>ue?.some(Te=>!!Te.colloquialPronunciation)):(r??[]).some(ue=>ue.words.some(Te=>!!Te.colloquialLabel)),jt=l.useMemo(()=>Ma()?L?O.flatMap(ue=>(ue??[]).map(Te=>[Te.word,Te.homonum])):(r??[]).flatMap(ue=>ue.words.map(Te=>[Te.label,Te.homonum])):[],[L,O,r]),[Ga,$t]=l.useState(!1);l.useEffect(()=>{if(jt.length===0)return;let ue=!1;return Promise.all(jt.map(([Te,at])=>Yo(Te,at))).then(Te=>{ue||$t(Te.some(Boolean))}),()=>{ue=!0}},[jt]);const ya=jt.length>0&&Ga,qa=l.useMemo(()=>[...L||h?[{label:T("wordTable.filter.columns","\uCE78 \uC218"),items:yk.map(ue=>({value:`${ue}\uCE78`,displayLabel:T("wordTable.filter.column",{count:ue})})),display:"segmented"}]:[],...et&&(r?.length??0)>0?[Om(T,{hasPairs:it,itemCount:Oe})]:[],...Et?[Fm(T)]:[]],[T,L,h,et,r?.length,it,Oe,Et]),Je={...L||h?{[T("wordTable.filter.columns","\uCE78 \uC218")]:`${L?z:Ue}\uCE78`}:{},...et&&(r?.length??0)>0?{[T(it?"wordTable.filter.itemsPerPagePair":"wordTable.filter.itemsPerPageWord")]:`${Qe}\uAC1C`}:{},...Et?{[T("wordTable.filter.pageNumber","\uD398\uC774\uC9C0 \uBC88\uD638")]:Wm[Me]}:{}},It=(ue,Te)=>{Te===T("wordTable.filter.columns","\uCE78 \uC218")?L?Ea(parseInt(ue)):Xe(parseInt(ue)):Te===T(it?"wordTable.filter.itemsPerPagePair":"wordTable.filter.itemsPerPageWord")?Re(parseInt(ue)):Te===T("wordTable.filter.pageNumber","\uD398\uC774\uC9C0 \uBC88\uD638")&&Ye(Hm(ue))},kt=L?O.filter(ue=>ue!==null).map(ue=>({id:ue[0].word,words:ue.map(Te=>({label:Te.word,subLabel:Te.pronunciation,homonum:Te.homonum}))})):r??[],xa=(ue=!1)=>{if(be(ue),F&&n){const Te=j.trim().toLowerCase();Te&&Z(at=>at.includes(Te)?at:[...at,Te]),n(j,kt,M||void 0,ue);return}if(C&&n){n("",kt,void 0,ue);return}if(n){Ve(!0);return}Gt()},[la,ie]=l.useState(!1),[fe,ye]=l.useState(""),U=fe.trim(),de=U!==""&&$.includes(U.toLowerCase()),_e=()=>{ye(j?`${j} (\uBCF5\uC0AC)`:""),ie(!0)},Se=()=>{!U||de||!n||(n(U,kt,M||void 0,!0),ie(!1))},Ae=kt.length===0,$e=Ae||F&&(j===""||X),nt=()=>{if(Ae){Le(T("wordTable.emptyItems","\uB2E8\uC5B4\uB97C 1\uAC1C \uC774\uC0C1 \uCD94\uAC00\uD574\uC8FC\uC138\uC694."));return}if(F&&j===""){Le(T("wordTable.save.nameRequired","\uD45C \uC774\uB984\uC744 \uC785\uB825\uD574 \uC8FC\uC138\uC694."));return}F&&X&&Le(T("wordTable.save.duplicateName","\uC774\uBBF8 \uC0AC\uC6A9 \uC911\uC778 \uC774\uB984\uC785\uB2C8\uB2E4."))},ct=o.jsx(so,{items:kt,orientation:me,contentTypes:I,cutLine:pe,showOutline:Ce,showDivLine:oe,count:ut});return o.jsxs(o.Fragment,{children:[o.jsxs(no,{type:"page",icon:t,title:e,disc:a,className:xe("word-table-block",f),children:[la&&o.jsx(Ta,{size:"small",title:p??T("wordTable.saveAsNewButton","\uB2E4\uB978 \uC774\uB984\uC73C\uB85C \uC800\uC7A5"),onClose:()=>ie(!1),footer:({closeWithAnimation:ue})=>o.jsxs(o.Fragment,{children:[o.jsx(se,{size:48,type:"bar",label:T("common.cancel","\uCDE8\uC18C"),onClick:ue}),o.jsx(se,{size:48,type:"bar",variant:"main",label:T("common.save","\uC800\uC7A5"),disabled:!U||de,onClick:Se})]}),children:o.jsx(Wa,{label:T("wordTable.save.nameLabel","\uC774\uB984"),value:fe,onChange:ye,placeholder:T("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:Se,error:de?T("wordTable.save.duplicateName","\uC774\uBBF8 \uC0AC\uC6A9 \uC911\uC778 \uC774\uB984\uC785\uB2C8\uB2E4."):void 0})}),Ne&&n&&b?.({defaultName:typeof e=="string"?e:T("wordTable.defaultName","\uB2E8\uC5B4 \uD45C"),preview:ct,previewW:Pe,previewH:rt,items:kt,existingNames:q7().map(ue=>ue.name),saveAsNew:Fe,onSave:(ue,Te)=>{n(ue,kt,Te,Fe),Ve(!1)},onCancel:()=>Ve(!1)}),(L||g)&&Q!==null&&y?.({cellIndex:Q,onConfirm:L?Kt:ue=>{if(g){const Te=ue[0];Te&&g({id:Te.word,words:[{label:Te.word,subLabel:Te.pronunciation,homonum:Te.homonum}]})}ne(null)},onClose:vt}),!v&&o.jsx(Bn,{hasImage:ya,hasColloquial:ja,contentTypes:I,orientation:me,showOutline:Ce,cutLine:pe,showDivLine:oe,setters:{setContentTypes:ee,setOrientation:ce,setShowOutline:R,setCutLine:ke,setShowDivLine:ae},showCutLine:(et?tt:ut)>1,showDivLine2:it,middleSections:qa,extraSelected:Je,onExtraSelect:It}),Et&&xt?o.jsx("div",{className:"word-table-block__pages",children:xt.map((ue,Te)=>o.jsx(so,{orientation:me,contentTypes:I,cutLine:pe,showOutline:Ce,showDivLine:oe,count:tt,items:ue,onRemoveItem:s,contentRef:at=>{De.current[Te]=at},pageNumber:{current:Te+1,total:xt.length},pageNumberPosition:Me},Te))}):o.jsx(so,{orientation:me,contentTypes:I,cutLine:pe,showOutline:Ce,showDivLine:oe,count:ut,items:L?void 0:r??[],editCells:L?O:void 0,activeCell:Q,onActivateCell:L||g?ne:void 0,onRemoveCell:L?sa:void 0,onRemoveItem:L?void 0:s,onReorder:L?void 0:m,showFillerAdd:!!g,contentRef:ve}),F&&!v&&o.jsxs(kr,{size:"medium",labelWidth:64,useBorder:!1,useRowBorder:!1,className:"word-table-block__meta",children:[o.jsx(Na,{variant:"custom",label:T("wordTable.save.nameLabel","\uC774\uB984"),required:!0,align:"vertical",useFullWidth:!0,children:o.jsx(Wa,{required:!0,value:x??"",onChange:S,placeholder:N?N+T("wordTable.save.autoFillHint"," (Tab \uB610\uB294 space \uC785\uB825\uC2DC \uC790\uB3D9 \uC785\uB825)"):T("wordTable.save.placeholder","\uC774 \uB2E8\uC5B4\uD45C\uC5D0 \uB300\uD55C \uC81C\uBAA9\uC744 \uC785\uB825\uD558\uC138\uC694."),ariaLabel:T("wordTable.save.nameLabel","\uC774\uB984"),maxLength:40,size:48,fullWidth:!0,error:X?T("wordTable.save.duplicateName","\uC774\uBBF8 \uC0AC\uC6A9 \uC911\uC778 \uC774\uB984\uC785\uB2C8\uB2E4."):void 0,onKeyDown:ue=>{(ue.key==="Tab"&&!ue.shiftKey||ue.key===" ")&&!(x??"").trim()&&(N??"").trim()&&(ue.preventDefault(),S?.(N??""))}})}),o.jsx(Na,{variant:"custom",label:T("wordTable.save.descriptionLabel","\uC124\uBA85"),align:"vertical",useFullWidth:!0,children:o.jsx(Wa,{value:_??"",onChange:k,placeholder:A?A+T("wordTable.save.autoFillHint"," (Tab \uB610\uB294 space \uC785\uB825\uC2DC \uC790\uB3D9 \uC785\uB825)"):T("wordTable.save.descriptionPlaceholder","\uC774 \uB2E8\uC5B4\uD45C\uC5D0 \uB300\uD55C \uC124\uBA85\uC744 \uC785\uB825\uD558\uC138\uC694."),ariaLabel:T("wordTable.save.descriptionLabel","\uC124\uBA85"),maxLength:200,multiline:!0,rows:2,fullWidth:!0,onKeyDown:ue=>{(ue.key==="Tab"&&!ue.shiftKey||ue.key===" ")&&!(_??"").trim()&&(A??"").trim()&&(ue.preventDefault(),k?.(A??""))}})})]})]}),!v&&o.jsxs("div",{className:"word-table-block__actions",children:[o.jsxs("div",{className:"word-table-block__actions-left",children:[!C&&c&&o.jsx(se,{size:40,type:"bar",label:E,onClick:c}),!C&&i&&o.jsx(se,{size:40,type:"bar",label:T("wordTable.load","\uBD88\uB7EC\uC624\uAE30"),onClick:i}),!C&&o.jsx(se,{size:40,type:"bar",label:T("wordTable.openNewWindow","\uC0C8 \uCC3D\uC73C\uB85C \uBCF4\uAE30"),onClick:ia})]}),o.jsxs("div",{className:"word-table-block__actions-right",children:[P&&o.jsx(se,{size:"56",type:"bar",label:T("common.cancel","\uCDE8\uC18C"),onClick:P}),!C&&o.jsx(se,{size:"56",type:"bar",label:T("wordTable.print","\uC778\uC1C4\uD558\uAE30"),onClick:Vt}),p&&o.jsx(se,{size:"56",type:"bar",label:p,onClick:()=>F?_e():xa(!0),disabled:Ae,onDisabledClick:()=>{Le(T("wordTable.emptyItems","\uB2E8\uC5B4\uB97C 1\uAC1C \uC774\uC0C1 \uCD94\uAC00\uD574\uC8FC\uC138\uC694."))}}),o.jsx(se,{size:"56",type:"bar",variant:"main",label:d??T("wordTable.saveButton","\uC800\uC7A5\uD558\uAE30"),onClick:()=>xa(!1),disabled:$e,onDisabledClick:nt})]})]}),o.jsx(ro,{message:Ke,type:We,onClose:Ge})]})}var Y7=".ihabdevteam-core-scope .word-table-thumb{grid-gap:1px;background:var(--color-darkWhite);border-bottom:1px solid var(--color-darkWhite);display:grid;gap:1px;grid-auto-rows:minmax(min-content,1fr);height:140px;overflow:hidden}.ihabdevteam-core-scope .word-table-thumb__cell{align-items:center;background:var(--color-white);display:flex;flex-direction:column;gap:1px;justify-content:center;min-height:0;overflow:hidden;padding:4px}.ihabdevteam-core-scope .word-table-thumb__word{color:var(--color-black)}.ihabdevteam-core-scope .word-table-thumb .word-table-thumb__word{line-height:1.2}.ihabdevteam-core-scope .word-table-thumb__divider{background:var(--color-darkWhite);display:block;height:1px;margin:1px 0;width:30%}";J(Y7);function $c({items:e,className:t}){const a=e.length,r=a<=3?1:2,n=Math.ceil(a/r)||1,i=r*n;return o.jsx("div",{className:xe("word-table-thumb",t),style:{gridTemplateColumns:`repeat(${r}, 1fr)`},children:Array.from({length:i},(s,c)=>{const u=e[c];return u?o.jsx("div",{className:"word-table-thumb__cell",children:(u.words.length?u.words:[{label:u.id}]).map((d,p)=>o.jsxs(l.Fragment,{children:[p>0&&o.jsx("span",{className:"word-table-thumb__divider"}),o.jsx("span",{className:"word-table-thumb__word body-3",children:d.label})]},p))},c):o.jsx("div",{className:"word-table-thumb__cell word-table-thumb__cell--empty"},c)})})}var U7=".ihabdevteam-core-scope .word-table-button{background:var(--color-white);border:1px solid var(--color-whiteLine);border-radius:8px;border-radius:var(--radius-s,8px);box-sizing:border-box;cursor:pointer;display:flex;flex-direction:column;overflow:hidden;position:relative;transition:border-color .15s,box-shadow .15s;width:240px}.ihabdevteam-core-scope .word-table-button:hover{border-color:var(--color-main);box-shadow:0 2px 10px rgba(0,0,0,.06)}.ihabdevteam-core-scope .word-table-button:focus-visible{outline:2px solid var(--color-main);outline-offset:1px}.ihabdevteam-core-scope .word-table-button--selected{border-color:var(--color-main);box-shadow:0 0 0 1px var(--color-main) inset}.ihabdevteam-core-scope .word-table-button__thumb{flex:0 0 auto;height:290px}.ihabdevteam-core-scope .word-table-button__info{align-items:flex-start;display:flex;flex-direction:row;gap:8px;min-width:0;padding:12px 14px 0;position:relative}.ihabdevteam-core-scope .word-table-button__more{position:absolute;right:10px;top:8px}.ihabdevteam-core-scope .word-table-button__title{padding-right:34px}.ihabdevteam-core-scope .word-table-button--no-footer .word-table-button__info{flex:1 1 auto;min-height:0}.ihabdevteam-core-scope .word-table-button--no-footer .word-table-button__info-text{align-self:stretch}.ihabdevteam-core-scope .word-table-button__info-text{align-items:flex-start;display:flex;flex:1 1 auto;flex-direction:column;gap:4px;min-width:0;text-align:left}.ihabdevteam-core-scope .word-table-button__title{-webkit-line-clamp:2;-webkit-box-orient:vertical;color:var(--color-black);display:-webkit-box;overflow:hidden;overflow-wrap:anywhere}.ihabdevteam-core-scope .word-table-button__desc{-webkit-line-clamp:2;-webkit-box-orient:vertical;color:var(--color-gray);display:-webkit-box;overflow:hidden}.ihabdevteam-core-scope .word-table-button__meta{color:var(--color-gray)}.ihabdevteam-core-scope .word-table-button__meta-row{align-items:center;display:flex;gap:8px;justify-content:space-between;min-width:0;padding:12px 14px 14px}.ihabdevteam-core-scope .word-table-button__badges{align-items:center;display:flex;flex:0 0 auto;gap:4px}.ihabdevteam-core-scope .word-table-button--no-footer .word-table-button__meta-row{margin-top:auto}.ihabdevteam-core-scope .word-table-button__footer{display:flex;flex-direction:column;gap:8px;margin-top:auto;min-width:0;padding:12px 14px 14px}.ihabdevteam-core-scope .word-table-button__store-by{align-items:center;display:inline-flex;gap:6px;min-width:0;overflow:hidden}.ihabdevteam-core-scope .word-table-button__store-by .training-card__date{white-space:nowrap}.ihabdevteam-core-scope .word-table-button__store-stats{align-items:center;align-self:flex-end;display:inline-flex;gap:4px}.ihabdevteam-core-scope .word-table-button__more{flex:0 0 auto}.ihabdevteam-core-scope .word-table-button__badge{pointer-events:none}.ihabdevteam-core-scope .word-table-button__new-dot{background:var(--color-main);border-radius:50%;box-shadow:0 0 0 2px var(--color-white);height:10px;pointer-events:none;position:absolute;right:8px;top:8px;width:10px;z-index:3}";J(U7);function bg({items:e,name:t,description:a,createdAt:r,published:n,publishedLabel:i,shared:s,sharedLabel:c,isNew:u,publisherName:d,publishedAt:p,likeCount:m,downloadCount:h,onPublisherClick:g,selected:f,onClick:b,onMore:y,titleNode:v,className:C}){const{t:w}=ge.useTranslation(),x=v!=null,S=d!=null||p!=null||m!=null||h!=null,_=k=>{!x&&(k.key==="Enter"||k.key===" ")&&(k.preventDefault(),b?.())};return o.jsxs("div",{className:xe("word-table-button",f?"word-table-button--selected":"",S?"":"word-table-button--no-footer",C),role:"button",tabIndex:0,"aria-label":t,onClick:x?void 0:b,onKeyDown:_,children:[u&&o.jsx("span",{className:"word-table-button__new-dot","aria-label":w("myWordTable.newBadge","\uC0C8\uB85C \uB9CC\uB4E0 \uD45C")}),o.jsx($c,{items:e,className:"word-table-button__thumb"}),o.jsxs("div",{className:"word-table-button__info",children:[o.jsxs("div",{className:"word-table-button__info-text",children:[v??o.jsx("div",{className:"word-table-button__title h4",children:t}),a&&o.jsx("div",{className:"word-table-button__desc body-3",children:a})]}),y&&!x&&o.jsx(se,{className:"word-table-button__more",size:32,type:"dot",variant:"transparent-gray",useBorder:!1,icon:"ellipsis",ariaLabel:w("common.moreFor",{name:t}),onClick:k=>{k.stopPropagation(),y(k)}})]}),(r||n||s)&&o.jsxs("div",{className:"word-table-button__meta-row",children:[o.jsx("span",{className:"word-table-button__meta caption-1",children:r?Kr(r,w):""}),o.jsxs("span",{className:"word-table-button__badges",children:[n&&o.jsx(ht,{className:"word-table-button__badge",size:"small",variant:"main",fill:"soft",iconLeft:"book-marked",label:i??"\uBC1C\uD589\uB428"}),s&&o.jsx(ht,{className:"word-table-button__badge",size:"small",fill:"soft",iconLeft:"link",label:c??"\uACF5\uC720 \uC911"})]})]}),S&&o.jsxs("div",{className:"word-table-button__footer",children:[o.jsxs("span",{className:"word-table-button__store-by",children:[d&&o.jsx("button",{className:"training-card__publisher body-4",type:"button",onClick:k=>{k.stopPropagation(),g?.()},children:d}),p&&o.jsx("span",{className:"training-card__date body-4",children:Kr(p,w)})]}),o.jsxs("span",{className:"word-table-button__store-stats",children:[m!=null&&o.jsx(ht,{size:"small",fill:"soft",variant:"like",iconLeft:"heart",label:String(m)}),h!=null&&o.jsx(ht,{size:"small",fill:"soft",variant:"main",iconLeft:"download",label:String(h)})]})]})]})}/**
|
|
984
984
|
* @license lucide-react v1.38.0 - ISC
|
|
985
985
|
*
|
|
986
986
|
* This source code is licensed under the ISC license.
|
|
@@ -994,4 +994,4 @@ ${v.badge}`:v.badge:void 0;if(w&&s(v.code))return null;if(!v.badge&&!c)return u(
|
|
|
994
994
|
|
|
995
995
|
/* !important \uBD88\uD544\uC694 \u2014 WordDataUpdatePopup.tsx\uC758 \uC778\uB77C\uC778 width\uB294 pct/isDone/isError\uC77C \uB54C\uB9CC
|
|
996
996
|
\uC124\uC815\uB418\uACE0 \uC774 indeterminate \uD074\uB798\uC2A4\uAC00 \uBD99\uB294 \uC0C1\uD0DC(state==='active' && pct===undefined)\uC5D0\uC11C\uB294
|
|
997
|
-
\uC778\uB77C\uC778 width\uAC00 \uC544\uC608 \uC124\uC815\uB418\uC9C0 \uC54A\uC544(undefined) \uACBD\uD569 \uC790\uCCB4\uAC00 \uC5C6\uC74C(\uCF54\uB4DC \uD655\uC778\uB428). */.ihabdevteam-core-scope .wdup-bar__fill--indeterminate{animation:wdup-indeterminate 1.4s ease-in-out infinite;width:40%}@keyframes wdup-indeterminate{0%{transform:translateX(-150%)}to{transform:translateX(400%)}}.ihabdevteam-core-scope .wdup-phase-card__sub{color:var(--color-lightGray)}`;J(J7);function e6(e){return{idle:0,"word-download":1,"image-list":2,"image-match":2,"pair-build":3,done:4}[e]??0}function Ic({icon:e,label:t,state:a,pct:r,subText:n}){const{t:i}=ge.useTranslation(),s=a==="done",c=a==="pending",u=a==="error",d=s?100:r??0;return o.jsxs("div",{className:"wdup-phase-card",children:[o.jsx("div",{className:`wdup-phase-card__icon${s?" wdup-phase-card__icon--done":u?" wdup-phase-card__icon--error":""}`,children:s?o.jsx(ld,{size:22,color:"white",strokeWidth:2.5}):u?o.jsx(Q7,{size:22,color:"white",strokeWidth:2.5}):o.jsx("span",{className:`wdup-phase-card__icon-inner${c?" wdup-phase-card__icon-inner--pending":""}`,children:e})}),o.jsxs("div",{className:"wdup-phase-card__body",children:[o.jsxs("div",{className:"wdup-phase-card__top",children:[o.jsx("span",{className:`wdup-phase-card__label body-2${c?" wdup-phase-card__label--pending":""}`,children:t}),s?o.jsx(ht,{variant:"sub",fill:"soft",size:"small",label:i("common.done","\uC644\uB8CC")}):u?o.jsx(ht,{variant:"danger",fill:"soft",size:"small",label:i("common.failed","\uC2E4\uD328")}):(n||r!==void 0)&&o.jsxs("span",{className:"wdup-phase-card__sub body-3",children:[n,n&&r!==void 0?` \xB7 ${r}%`:r!==void 0?`${r}%`:""]})]}),!c&&o.jsx("div",{className:"wdup-bar",children:o.jsx("div",{className:`wdup-bar__fill${s?" wdup-bar__fill--done":u?" wdup-bar__fill--error":""}${a==="active"&&r===void 0?" wdup-bar__fill--indeterminate":""}`,style:{width:r!==void 0||s||u?`${u?100:d}%`:void 0}})})]})]})}function gg({title:e,progress:t,onDone:a,onRetry:r,inline:n}){const{t:i}=ge.useTranslation(),{phase:s,error:c,wordCount:u,imagePage:d,imageDone:p,imageTotal:m,pairPercent:h}=t,g=e6(s),f=s==="done",b=!!c;function y(_){return b&&g===_?"error":g>_?"done":g===_?"active":"pending"}const v=y(1),C=y(2),w=y(3),x=s==="image-match"&&m?Math.round((p??0)/m*100):void 0,S=l.useMemo(()=>{if(C!=="done"){if(s==="image-list")return i("wordData.checkingPage",{page:d??1});if(s==="image-match"&&m)return i("wordData.imageCount",{done:rr(p),total:rr(m)})}},[C,s,d,m,p,i]);return o.jsx(Ta,{inline:n,className:"popup--word-data-update",title:e,footer:b?o.jsx(se,{size:56,variant:"main",onClick:r,children:i("common.retry","\uB2E4\uC2DC \uC2DC\uB3C4")}):o.jsx(se,{size:56,variant:"main",disabled:!f,onClick:a,children:i("common.done","\uC644\uB8CC")}),children:o.jsxs("div",{className:"wdup-cards",children:[o.jsx(Ic,{icon:o.jsx(od,{size:22,color:"var(--color-main, #29b6c8)",strokeWidth:1.8}),label:i("wordData.phaseWordDownload","\uB2E8\uC5B4 \uB370\uC774\uD130 \uB2E4\uC6B4\uB85C\uB4DC"),state:v,subText:v==="active"?i("wordData.downloadingCount",{n:rr(u)}):void 0}),o.jsx(Ic,{icon:o.jsx(Z7,{size:22,color:"var(--color-main, #29b6c8)",strokeWidth:1.8}),label:i("wordData.phaseImageCheck","\uC774\uBBF8\uC9C0 \uD655\uC778"),state:C,pct:x,subText:S}),o.jsx(Ic,{icon:o.jsx(id,{size:22,color:"var(--color-main, #29b6c8)",strokeWidth:1.8}),label:i("wordData.phasePairAnalysis","\uB2E8\uC5B4\uC30D \uBD84\uC11D"),state:w,pct:w==="active"?h??0:void 0,subText:void 0})]})})}var t6=".ihabdevteam-core-scope .debug-result-launcher{bottom:18px;display:flex;flex-direction:column;gap:var(--spacing-xs);position:fixed;right:18px;z-index:var(--z-tooltip)}.ihabdevteam-core-scope .debug-buttons{background:rgba(11,43,47,.02);border-radius:var(--radius-s);box-shadow:var(--shadow-dropdown);display:flex;flex-direction:column;gap:6px;padding:var(--spacing-xs)}.ihabdevteam-core-scope .debug-button{background:var(--color-white);border:1px solid rgba(11,43,47,.06);border-radius:var(--radius-sm);cursor:pointer;font-size:13px;padding:8px 12px}.ihabdevteam-core-scope .debug-button:hover{transform:translateY(-1px)}";J(t6);function fg({enabled:e=!1,renderResultPopup:t}={}){const[a,r]=l.useState(null),[n,i]=l.useState(null),s=h=>{let g=null;h==="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}]}:h==="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}]}:h==="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}]}:h==="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}]}),i(g),r(h)},c=l.useCallback(()=>{r(null),i(null)},[]),u=l.useCallback(()=>s("noise"),[]),d=l.useCallback(()=>s("short"),[]),p=l.useCallback(()=>s("long"),[]),m=l.useCallback(()=>s("order"),[]);return e?o.jsxs("div",{className:"debug-result-launcher",children:[o.jsxs("div",{className:"debug-buttons",children:[o.jsx("button",{className:"debug-button",onClick:u,children:"Noise \uACB0\uACFC\uBCF4\uAE30"}),o.jsx("button",{className:"debug-button",onClick:d,children:"ShortStory \uACB0\uACFC\uBCF4\uAE30"}),o.jsx("button",{className:"debug-button",onClick:p,children:"LongStory \uACB0\uACFC\uBCF4\uAE30"}),o.jsx("button",{className:"debug-button",onClick:m,children:"Order \uACB0\uACFC\uBCF4\uAE30"})]}),a&&n?t?.({score:n.score,contextsLength:n.contextsLength,results:n.results,onReplay:c,onClose:c}):null]}):null}var a6=Object.freeze({__proto__:null,Accordion:Sh,ActionCard:Op,Alert:Wh,AppHeader:Bh,AudioMeter:Cn,AudioPlayer:_r,Avatar:Gh,Badge:ht,BarChart:pm,BarChartControls:Gl,Board:Qh,BottomNav:wl,BrandIdentity:Tl,Breadcrumb:Yh,BulkBar:sm,Button:se,CORE_VERSION:rn,Calendar:wm,CardStep:Dc,ChartLegend:yn,ChartSection:xn,ChartTotal:vr,Checkbox:Wl,ChoiceChips:fb,CircleBadge:zh,CodeBox:im,ColorPicker:Kh,CompanyMeta:rm,ConfirmPopup:Xb,ConfirmStep:Tc,ConfirmWithTextStep:Bc,ContrastFilterPanel:Kb,CoreScope:Fp,CountTile:Zh,CouponInputPopup:Qb,DatePicker:cm,DebugResultLauncher:fg,DescriptionTooltip:to,DeviceSideTable:Cm,Dialog:Xh,Divider:Oh,Dropdown:Ut,EffectPartyPopper:Rc,EffectPartyPopperHost:ag,EmptyState:Ip,ErrorState:zp,FILTER_ALL_VALUE:Dt,FileUpload:qh,FilterPanel:va,FilterSectionInfo:So,Footer:vb,Header:Bl,Icon:Ie,IconGridMenu:gb,IconRenderer:Ie,InfoTooltip:aa,LandingBottomSticky:xb,LandingHeader:yb,ListPopup:Zb,ListenStep:Ac,Loader:Ao,MARKS:Jl,MARK_ICON:tc,MARK_VARIANT:ac,MediaQueryOverrideContext:sn,MenuTooltip:mr,NoiseSettingsTooltip:Cc,NoticeBox:Wp,OrderListStep:Nc,PASS_CARD_BG_VARS:Fa,POS_LABEL:rc,PROMO_BANNER_BG_COMPONENTS:Qs,PROMO_BANNER_BG_OPTIONS:Hp,PROMO_BANNER_BG_VARS:Co,Page:kr,PageTitle:og,Pagination:fr,Panel:wr,PanelGrid:Db,PanelRow:Na,PanelRowDevice:Nb,PassCard:Ll,PassCardBg:Ph,PassCardBgIHAB:Rh,PassCardBgLeftColorGrid:$h,PassCardBgTwoCircle:jl,PaymentPlan:Mh,PersonCard:Jh,PhonemeFilterPanel:Ub,PhonemeSelectBlock:qb,Popup:Ta,ProgressBar:vm,ProgressIndicator:Zl,PromoBanner:wh,PromoBannerBgDark:$s,PromoBannerBgDeep:Es,PromoBannerBgDiagonal:Fs,PromoBannerBgDots:Hs,PromoBannerBgInstagram:Xs,PromoBannerBgMain:Ss,PromoBannerBgNaver:Ks,PromoBannerBgOutline:Gs,PromoBannerBgRadial:zs,PromoBannerBgSoft:Ts,PromoBannerBgSoftSub:Ls,PromoBannerBgSub:Ns,PromoBannerBgSuccess:Ys,PromoBannerBgWarm:Ps,PublicationCard:tm,Radio:Il,RadioGroup:Fh,Rating:Uh,ReportDocument:cg,ReportInfoPanel:dg,RingChart:gm,SENTENCE_TRAINING_TYPES:Dn,SearchSummary:Hh,Section:no,SectionHeader:om,SegmentedControl:Ha,ShortcutBadge:$l,SideNav:kl,Slider:ql,SoundCompass:Ih,SplashLogo:am,StatChart:fm,SummaryStrip:lg,TRAINING_TOOLTIP_HOVER_DELAY_MS:Jb,Table:_n,TableFilterPanel:Bn,Tabs:Vh,TextBoxTooltip:No,TextField:Wa,Timeline:em,Toast:ro,Toggle:Fl,Toolbar:vn,Tooltip:Sa,TooltipInfo:aa,TooltipTextBox:No,TopBanner:kh,TrainingBlock:Sm,TrainingBlockButton:wn,TrainingCard:pg,TrainingCardGroup:hg,TrainingPagePopup:Da,TrainingPagePopupBottom:_c,TrainingPagePopupTitle:wc,TrainingResultPopup:jc,TrainingStep:Va,TrainingStepAudioPlayer:_r,TrainingStepBullet:mc,TrainingStepCard:vc,TrainingStepConfirm:jn,TrainingStepConfirmWithText:Ln,TrainingStepListen:Mn,TrainingStepOrderList:Pn,TrainingStepTextBox:fc,TrainingStepTitle:bc,TrainingTooltip:eg,TrainingWordCard:Sn,UpdateAlert:ug,WORD_TABLE_PAPER:io,WORD_TYPE_LABEL:nc,WordDataProvider:sg,WordDataUpdatePopup:gg,WordImageTooltip:Pc,WordSearchFilterPanel:Yb,WordSearchResultBlock:Gb,WordTable:so,WordTableBlock:mg,WordTableButton:bg,WordTablePopup:Ym,WordTableThumbnail:$c,buildMonthChartData:dm,cellLabel:Xm,cellsForLabels:cb,clearPassCardBgTheme:fa,clearPromoBannerBgTheme:Nt,closeTrainingPopup:jb,companyTypeLabel:rg,createTrainingScenario:Pb,cx:xe,deriveNoiseContexts:Fb,derivePassCard:Nl,draftValues:bb,expandSlashLabel:Tn,formatDuration:db,getControlDateRange:hm,getPayloadTimestamp:Rn,getPromoBannerBgTheme:ws,getSelectedFromPayload:$b,getSelectedText:Ib,getStepPayload:Sc,getSteppedPayload:zb,injectPassCardBgTheme:ga,injectPromoBannerBgTheme:Bt,isSelectionCorrect:Ob,labelsForSave:Zm,markAfterClick:ec,marksForSave:An,missesByType:nb,nextFocus:ab,nextMisses:rb,pageStartIndexes:oc,passCardBgIhabTheme:Pl,passCardBgLeftColorGridTheme:Rl,passCardBgTwoCircleTheme:El,printWordTable:Em,promoBannerBgDarkTheme:Rs,promoBannerBgDeepTheme:Ds,promoBannerBgDiagonalTheme:Os,promoBannerBgDotsTheme:Ws,promoBannerBgInstagramTheme:Zs,promoBannerBgMainTheme:ks,promoBannerBgNaverTheme:Us,promoBannerBgOutlineTheme:Vs,promoBannerBgRadialTheme:Is,promoBannerBgSoftSubTheme:js,promoBannerBgSoftTheme:As,promoBannerBgSubTheme:Bs,promoBannerBgSuccessTheme:qs,promoBannerBgWarmTheme:Ms,recommendTables:sb,regenerateUnpinned:mb,removeItem:hb,resolveTrainingItems:Mb,resolveTrainingPopupMeta:kc,reviewCells:Um,reviewSetPlan:ib,reviewTableName:Km,scoreKey:Cr,scoreSheetHeader:Qm,shouldConfirmDiscard:Dm,splitTrainingVariants:Lb,summarize:Nm,summarizeMisses:ob,tableTrends:tb,toDraft:ub,toTrainingText:Rb,togglePin:pb,uncoveredLabels:lb,useAnchoredMenu:ao,useBarChartControl:Vl,useCalendarMonth:Hl,useComboboxSuggestions:Ol,useFitScale:ic,useSoundCompassExam:_l,useToastLifecycle:Kl,useWordData:ig,useWordTableDisplaySettings:cc,useWordTablePrint:Nn,weakItems:eb}),o6=Object.freeze({__proto__:null});const r6={...a6,...f5,...S4,...o6};exports.Accordion=Sh,exports.ActionCard=Op,exports.Alert=Wh,exports.AppHeader=Bh,exports.AudioMeter=Cn,exports.AudioPlayer=_r,exports.Avatar=Gh,exports.Badge=ht,exports.BarChart=pm,exports.BarChartControls=Gl,exports.Board=Qh,exports.BottomNav=wl,exports.BrandIdentity=Tl,exports.Breadcrumb=Yh,exports.BulkBar=sm,exports.Button=se,exports.CACHE_GROUPS=ol,exports.CAPABILITY=fo,exports.CHOSEONG=Ze,exports.CORE_VERSION=rn,exports.Calendar=wm,exports.CardStep=Dc,exports.ChartLegend=yn,exports.ChartSection=xn,exports.ChartTotal=vr,exports.Checkbox=Wl,exports.ChoiceChips=fb,exports.CircleBadge=zh,exports.CodeBox=im,exports.ColorPicker=Kh,exports.CompanyMeta=rm,exports.ConfirmPopup=Xb,exports.ConfirmStep=Tc,exports.ConfirmWithTextStep=Bc,exports.ContrastFilterPanel=Kb,exports.CoreScope=Fp,exports.CountTile=Zh,exports.CouponInputPopup=Qb,exports.DEFAULT_LOCALE=co,exports.DatePicker=cm,exports.DebugResultLauncher=fg,exports.DescriptionTooltip=to,exports.DeviceSideTable=Cm,exports.Dialog=Xh,exports.Divider=Oh,exports.DocumentTitleSuppressContext=tl,exports.Dropdown=Ut,exports.EMPTY_COMPOSITION=dn,exports.EffectPartyPopper=Rc,exports.EffectPartyPopperHost=ag,exports.EmptyState=Ip,exports.ErrorState=zp,exports.FILTER_ALL_VALUE=Dt,exports.FileUpload=qh,exports.FilterPanel=va,exports.FilterSectionInfo=So,exports.Footer=vb,exports.Header=Bl,exports.I18nProvider=Gf,exports.Icon=Ie,exports.IconGridMenu=gb,exports.IconRenderer=Ie,exports.InfoTooltip=aa,exports.JONGSEONG=gt,exports.JUNGSEONG=dt,exports.LOCALE_STORAGE_KEY=On,exports.LONG_STORIES=Ia,exports.LandingBottomSticky=xb,exports.LandingHeader=yb,exports.ListPopup=Zb,exports.ListenStep=Ac,exports.Loader=Ao,exports.MARKS=Jl,exports.MARK_ICON=tc,exports.MARK_VARIANT=ac,exports.MediaQueryOverrideContext=sn,exports.MenuTooltip=mr,exports.NETWORK_ERROR_MESSAGE=Zi,exports.NOISE_DATAS=Ra,exports.NO_CODA=ra,exports.NoiseSettingsTooltip=Cc,exports.NoticeBox=Wp,exports.ORDER_SETS=za,exports.OrderListStep=Nc,exports.PASS_CARD_BG_VARS=Fa,exports.PLAN_FEATURES=Dp,exports.PLAN_LIMITS=jp,exports.POS_LABEL=rc,exports.PROMO_BANNER_BG_COMPONENTS=Qs,exports.PROMO_BANNER_BG_OPTIONS=Hp,exports.PROMO_BANNER_BG_VARS=Co,exports.Page=kr,exports.PageTitle=og,exports.Pagination=fr,exports.Panel=wr,exports.PanelGrid=Db,exports.PanelRow=Na,exports.PanelRowDevice=Nb,exports.PassCard=Ll,exports.PassCardBg=Ph,exports.PassCardBgIHAB=Rh,exports.PassCardBgLeftColorGrid=$h,exports.PassCardBgTwoCircle=jl,exports.PaymentPlan=Mh,exports.PersonCard=Jh,exports.PhonemeFilterPanel=Ub,exports.PhonemeSelectBlock=qb,exports.Popup=Ta,exports.ProgressBar=vm,exports.ProgressIndicator=Zl,exports.PromoBanner=wh,exports.PromoBannerBgDark=$s,exports.PromoBannerBgDeep=Es,exports.PromoBannerBgDiagonal=Fs,exports.PromoBannerBgDots=Hs,exports.PromoBannerBgInstagram=Xs,exports.PromoBannerBgMain=Ss,exports.PromoBannerBgNaver=Ks,exports.PromoBannerBgOutline=Gs,exports.PromoBannerBgRadial=zs,exports.PromoBannerBgSoft=Ts,exports.PromoBannerBgSoftSub=Ls,exports.PromoBannerBgSub=Ns,exports.PromoBannerBgSuccess=Ys,exports.PromoBannerBgWarm=Ps,exports.PublicationCard=tm,exports.Radio=Il,exports.RadioGroup=Fh,exports.Rating=Uh,exports.ReportDocument=cg,exports.ReportInfoPanel=dg,exports.RingChart=gm,exports.SENTENCE_TRAINING_TYPES=Dn,exports.SHORT_STORIES=$a,exports.SUPPORTED_LOCALES=Lo,exports.SYLLABLE_MIN=na,exports.SearchSummary=Hh,exports.Section=no,exports.SectionHeader=om,exports.SegmentedControl=Ha,exports.ShortcutBadge=$l,exports.SideNav=kl,exports.Slider=ql,exports.SoundCompass=Ih,exports.SplashLogo=am,exports.StatChart=fm,exports.SummaryStrip=lg,exports.TIER_RANK=Ep,exports.TOPIC_TYPES=fp,exports.TRAINING_TOOLTIP_HOVER_DELAY_MS=Jb,exports.TRAINING_TYPES=Qr,exports.TRAINING_TYPE_I18N_KEY=ys,exports.Table=_n,exports.TableFilterPanel=Bn,exports.Tabs=Vh,exports.TextBoxTooltip=No,exports.TextField=Wa,exports.Timeline=em,exports.Toast=ro,exports.Toggle=Fl,exports.Toolbar=vn,exports.Tooltip=Sa,exports.TooltipInfo=aa,exports.TooltipTextBox=No,exports.TopBanner=kh,exports.TrainingBlock=Sm,exports.TrainingBlockButton=wn,exports.TrainingCard=pg,exports.TrainingCardGroup=hg,exports.TrainingPagePopup=Da,exports.TrainingPagePopupBottom=_c,exports.TrainingPagePopupTitle=wc,exports.TrainingResultPopup=jc,exports.TrainingStep=Va,exports.TrainingStepAudioPlayer=_r,exports.TrainingStepBullet=mc,exports.TrainingStepCard=vc,exports.TrainingStepConfirm=jn,exports.TrainingStepConfirmWithText=Ln,exports.TrainingStepListen=Mn,exports.TrainingStepOrderList=Pn,exports.TrainingStepTextBox=fc,exports.TrainingStepTitle=bc,exports.TrainingTooltip=eg,exports.TrainingWordCard=Sn,exports.UpdateAlert=ug,exports.VAP_PAGE_SIZE_OPTIONS=nl,exports.WORD_SUGGESTION_ACCOUNT_LIMIT=Pp,exports.WORD_SUGGESTION_EXISTING_ERROR=$p,exports.WORD_SUGGESTION_WEEKLY_QUOTA=Mp,exports.WORD_TABLE_PAPER=io,exports.WORD_TYPE_LABEL=nc,exports.WordDataProvider=sg,exports.WordDataUpdatePopup=gg,exports.WordImageTooltip=Pc,exports.WordSearchFilterPanel=Yb,exports.WordSearchResultBlock=Gb,exports.WordTable=so,exports.WordTableBlock=mg,exports.WordTableButton=bg,exports.WordTablePopup=Ym,exports.WordTableThumbnail=$c,exports.applyFontScale=ps,exports.applyTheme=ds,exports.buildChangeWholeSyllableProblem=Ki,exports.buildDropCompoundProblem=Vi,exports.buildDropContrast3Problem=Hi,exports.buildDropContrastProblem=Wi,exports.buildDropFinalConsonantProblem=Gi,exports.buildGradeSection=cl,exports.buildMonthChartData=dm,exports.buildMultiPartPosContrast=wi,exports.buildPairIndex=iu,exports.buildPartOfSpeechSection=dl,exports.buildPositionSection=rh,exports.buildRemoveConsonantProblem=Yi,exports.buildSelectSection=oh,exports.buildSyllableMaskIndex=Ui,exports.buildSyllableSection=ah,exports.buildWordTypeSection=ul,exports.bulkSetImageExistence=Kd,exports.cardQuestionTitle=Tu,exports.cellLabel=Xm,exports.cellsForLabels=cb,exports.charToPronValue=gl,exports.checkImageExists=Yo,exports.classifyPairDifficulty=di,exports.clearAudioExistsCache=Wd,exports.clearImageExistenceCache=li,exports.clearPairIndexCache=xi,exports.clearPassCardBgTheme=fa,exports.clearPromoBannerBgTheme=Nt,exports.closeTrainingPopup=jb,exports.companyTypeLabel=rg,exports.composeSyllable=ua,exports.computeDailySelection=ms,exports.configureImageResolver=Yd,exports.configureNoiseSettingsStore=Zu,exports.configurePronunciationResolver=Vd,exports.configureStorage=Jn,exports.configureTTS=Fd,exports.configureTrainingCategories=cp,exports.convertComposition=vl,exports.copyText=is,exports.createDecompCache=ci,exports.createTTSUrlResolver=Ju,exports.createTrainingScenario=Pb,exports.cx=xe,exports.dateToDb=lp,exports.default=r6,exports.deriveNoiseContexts=Fb,exports.derivePassCard=Nl,exports.downloadCsvText=Lu,exports.downloadSound=Dr,exports.draftValues=bb,exports.ensureTrainingDataLoaded=vs,exports.escapeCsvField=ju,exports.expandSlashLabel=Tn,exports.fileExists=ei,exports.filterContrastCandidates=_i,exports.finalToPhoneme=Hr,exports.firstChoseongOf=ui,exports.fmtBytes=Yp,exports.formatCount=rr,exports.formatDateKo=ep,exports.formatDateLocale=ap,exports.formatDateLongKo=tp,exports.formatDateLongLocale=op,exports.formatDatetimeKo=rp,exports.formatDuration=db,exports.formatPhone=ip,exports.formatRelativeTime=Ur,exports.formatTimeHM=Zr,exports.formatYmd=Kr,exports.getAssetBaseUrl=Xn,exports.getControlDateRange=hm,exports.getDailySelection=bp,exports.getElementAnalyser=Vo,exports.getErrorMessage=qr,exports.getImageExistenceStats=Lr,exports.getImageExistsCached=si,exports.getImageResolver=Ma,exports.getNoiseBaseUrl=ti,exports.getPairIndex=Ka,exports.getPayloadTimestamp=Rn,exports.getPlanTier=Lp,exports.getPromoBannerBgTheme=ws,exports.getPronunciationResolver=ri,exports.getSavedFontScale=us,exports.getSavedTheme=cs,exports.getSelectedFromPayload=$b,exports.getSelectedText=Ib,exports.getSignedOrPublicUrl=Oo,exports.getStepPayload=Sc,exports.getSteppedPayload=zb,exports.getTTSFallbackUrlResolver=oi,exports.getTTSUrlResolver=Fo,exports.getTodayKst=Yr,exports.getTopicTypes=Xr,exports.getTrainingPools=bs,exports.getTrainingTypes=ls,exports.getWordPool=vo,exports.hasQuestionWordConstraint=xu,exports.hasSel=ft,exports.hasStructureContrast=Ko,exports.initFontScale=hp,exports.initTheme=up,exports.injectPassCardBgTheme=ga,exports.injectPromoBannerBgTheme=Bt,exports.isAllChoseong=hi,exports.isManualOnlyType=_u,exports.isNetworkErrorMessage=Xi,exports.isSelectionCorrect=Ob,exports.isSyllablePattern=gi,exports.isThisWeekPick=Rp,exports.isTrainingDataLoaded=gp,exports.isValidQuestionWord=Cu,exports.itemCorrectness=ts,exports.jamoToNamesForSpeech=Bu,exports.labelsForSave=Zm,exports.loadGameLeaderboard=Ku,exports.loadMyGameRanks=Uu,exports.loadNoiseSettings=rs,exports.loadTrainingData=fs,exports.logCrossword=zu,exports.logTrainingCompletion=es,exports.logTrainingTime=Ji,exports.lsBytes=rl,exports.markAfterClick=ec,exports.marksForSave=An,exports.matchSyllables=Qa,exports.matchesChoseongSearch=Zd,exports.matchesSyllablePattern=fi,exports.matchesWordQuery=ho,exports.meaningKey=hn,exports.mergeQuestionText=Oi,exports.minimalPairDistractors=Mr,exports.missesByType=nb,exports.nextFocus=ab,exports.nextMisses=rb,exports.normalizeDate=sp,exports.officialSoundPath=Qu,exports.pageStartIndexes=oc,exports.parseSortValue=Eu,exports.parseSyllable=Ee,exports.passCardBgIhabTheme=Pl,exports.passCardBgLeftColorGridTheme=Rl,exports.passCardBgTwoCircleTheme=El,exports.patternToComposition=au,exports.phonemePartsOf=Au,exports.pickEuRo=$i,exports.pickEulReul=Li,exports.pickEunNeun=Pi,exports.pickIga=Ei,exports.pickWaGwa=Ri,exports.prewarmImageCache=Ud,exports.primarySelPart=tr,exports.printWordTable=Em,exports.promoBannerBgDarkTheme=Rs,exports.promoBannerBgDeepTheme=Ds,exports.promoBannerBgDiagonalTheme=Os,exports.promoBannerBgDotsTheme=Ws,exports.promoBannerBgInstagramTheme=Zs,exports.promoBannerBgMainTheme=ks,exports.promoBannerBgNaverTheme=Us,exports.promoBannerBgOutlineTheme=Vs,exports.promoBannerBgRadialTheme=Is,exports.promoBannerBgSoftSubTheme=js,exports.promoBannerBgSoftTheme=As,exports.promoBannerBgSubTheme=Bs,exports.promoBannerBgSuccessTheme=qs,exports.promoBannerBgWarmTheme=Ms,exports.pronToCharValue=fl,exports.readLevel=ni,exports.recommendTables=sb,exports.regenerateUnpinned=mb,exports.removeItem=hb,exports.reorderArray=Ii,exports.resolveAssetUrl=Io,exports.resolveSoundPath=Nr,exports.resolveTrainingItems=Mb,exports.resolveTrainingPopupMeta=kc,exports.resumeAudioMeter=Ho,exports.reviewCells=Um,exports.reviewSetPlan=ib,exports.reviewTableName=Km,exports.sample=Qt,exports.saveLocale=Hf,exports.saveNoiseSettings=ns,exports.scoreKey=Cr,exports.scoreSheetHeader=Qm,exports.searchAndRankWords=ru,exports.setAssetBaseUrl=zd,exports.setCrosswordLogger=Iu,exports.setGameLeaderboardLoader=qu,exports.setGameRanksLoader=Gu,exports.setGameScoreSubmitter=Vu,exports.setTrainingCompletionLogger=$u,exports.setTrainingTimeLogger=Ru,exports.setWordPool=Pu,exports.shouldConfirmDiscard=Dm,exports.shuffle=He,exports.sortToValue=Du,exports.soundOf=Gr,exports.speak=Rd,exports.splitTrainingVariants=Lb,exports.stopSpeaking=$d,exports.submitGameScore=Yu,exports.summarize=Nm,exports.summarizeMisses=ob,exports.syllMatchesComp=Pa,exports.syllableContrasts=Ja,exports.syllableLength=bo,exports.syllablePron=Fi,exports.syllableToFilter=cn,exports.tableTrends=tb,exports.toBase64UrlSafe=Xu,exports.toChoseong=pi,exports.toDraft=ub,exports.toItemResults=as,exports.toKstHm=np,exports.toKstYmd=ka,exports.toStandardPronunciation=gu,exports.toStorageName=ar,exports.toTrainingText=Rb,exports.toUserErrorMessage=Nu,exports.today=_o,exports.toggleAttributeFilter=nh,exports.togglePin=pb,exports.uncoveredLabels=lb,exports.useAnchoredMenu=ao,exports.useBarChartControl=Vl,exports.useCacheManagement=Up,exports.useCalendarMonth=Hl,exports.useComboboxSuggestions=Ol,exports.useDailyTrainingSelection=gh,exports.useDelayedHoverAnchor=xh,exports.useDeviceManagement=th,exports.useDocumentTitle=al,exports.useEscToClose=vh,exports.useFitScale=ic,exports.useFontScale=nn,exports.useHoverAnchor=ko,exports.useI18n=Vf,exports.useMediaQuery=oa,exports.usePagedList=Ch,exports.usePasswordChange=qp,exports.useRelativeDay=Gp,exports.useSoundCompassExam=_l,exports.useTablePaging=il,exports.useTableSort=sl,exports.useToastLifecycle=Kl,exports.useToastState=mn,exports.useTrainingTypeLabels=_h,exports.useVisitAllPanel=eh,exports.useVisitHistory=Xp,exports.useVisitSchedule=Jp,exports.useWindowEvent=dr,exports.useWordAttributeFilterKeys=ll,exports.useWordData=ig,exports.useWordDataStats=Kp,exports.useWordMeanings=yh,exports.useWordTableDisplaySettings=cc,exports.useWordTablePrint=Nn,exports.useWordTrainingDataGeneration=hh,exports.useWordTrainingFilter=ph,exports.validateSyllableSearchInput=ou,exports.valueToJamos=ba,exports.weakItems=eb,exports.withEuRo=yu,exports.withEulReul=Mi,exports.withEunNeun=fu,exports.withIga=ji,exports.withWaGwa=vu,exports.wordContainsChoseong=Qd,exports.wordContainsJongseong=eu,exports.wordContainsJungseong=Jd,exports.wordHasNoCoda=mi,exports.wordHasSyllableMatching=bi,exports.wrongItems=Ou;
|
|
997
|
+
\uC778\uB77C\uC778 width\uAC00 \uC544\uC608 \uC124\uC815\uB418\uC9C0 \uC54A\uC544(undefined) \uACBD\uD569 \uC790\uCCB4\uAC00 \uC5C6\uC74C(\uCF54\uB4DC \uD655\uC778\uB428). */.ihabdevteam-core-scope .wdup-bar__fill--indeterminate{animation:wdup-indeterminate 1.4s ease-in-out infinite;width:40%}@keyframes wdup-indeterminate{0%{transform:translateX(-150%)}to{transform:translateX(400%)}}.ihabdevteam-core-scope .wdup-phase-card__sub{color:var(--color-lightGray)}`;J(J7);function e6(e){return{idle:0,"word-download":1,"image-list":2,"image-match":2,"pair-build":3,done:4}[e]??0}function Ic({icon:e,label:t,state:a,pct:r,subText:n}){const{t:i}=ge.useTranslation(),s=a==="done",c=a==="pending",u=a==="error",d=s?100:r??0;return o.jsxs("div",{className:"wdup-phase-card",children:[o.jsx("div",{className:`wdup-phase-card__icon${s?" wdup-phase-card__icon--done":u?" wdup-phase-card__icon--error":""}`,children:s?o.jsx(ld,{size:22,color:"white",strokeWidth:2.5}):u?o.jsx(Q7,{size:22,color:"white",strokeWidth:2.5}):o.jsx("span",{className:`wdup-phase-card__icon-inner${c?" wdup-phase-card__icon-inner--pending":""}`,children:e})}),o.jsxs("div",{className:"wdup-phase-card__body",children:[o.jsxs("div",{className:"wdup-phase-card__top",children:[o.jsx("span",{className:`wdup-phase-card__label body-2${c?" wdup-phase-card__label--pending":""}`,children:t}),s?o.jsx(ht,{variant:"sub",fill:"soft",size:"small",label:i("common.done","\uC644\uB8CC")}):u?o.jsx(ht,{variant:"danger",fill:"soft",size:"small",label:i("common.failed","\uC2E4\uD328")}):(n||r!==void 0)&&o.jsxs("span",{className:"wdup-phase-card__sub body-3",children:[n,n&&r!==void 0?` \xB7 ${r}%`:r!==void 0?`${r}%`:""]})]}),!c&&o.jsx("div",{className:"wdup-bar",children:o.jsx("div",{className:`wdup-bar__fill${s?" wdup-bar__fill--done":u?" wdup-bar__fill--error":""}${a==="active"&&r===void 0?" wdup-bar__fill--indeterminate":""}`,style:{width:r!==void 0||s||u?`${u?100:d}%`:void 0}})})]})]})}function gg({title:e,progress:t,onDone:a,onRetry:r,inline:n}){const{t:i}=ge.useTranslation(),{phase:s,error:c,wordCount:u,imagePage:d,imageDone:p,imageTotal:m,pairPercent:h}=t,g=e6(s),f=s==="done",b=!!c;function y(_){return b&&g===_?"error":g>_?"done":g===_?"active":"pending"}const v=y(1),C=y(2),w=y(3),x=s==="image-match"&&m?Math.round((p??0)/m*100):void 0,S=l.useMemo(()=>{if(C!=="done"){if(s==="image-list")return i("wordData.checkingPage",{page:d??1});if(s==="image-match"&&m)return i("wordData.imageCount",{done:rr(p),total:rr(m)})}},[C,s,d,m,p,i]);return o.jsx(Ta,{inline:n,className:"popup--word-data-update",title:e,footer:b?o.jsx(se,{size:56,variant:"main",onClick:r,children:i("common.retry","\uB2E4\uC2DC \uC2DC\uB3C4")}):o.jsx(se,{size:56,variant:"main",disabled:!f,onClick:a,children:i("common.done","\uC644\uB8CC")}),children:o.jsxs("div",{className:"wdup-cards",children:[o.jsx(Ic,{icon:o.jsx(od,{size:22,color:"var(--color-main, #29b6c8)",strokeWidth:1.8}),label:i("wordData.phaseWordDownload","\uB2E8\uC5B4 \uB370\uC774\uD130 \uB2E4\uC6B4\uB85C\uB4DC"),state:v,subText:v==="active"?i("wordData.downloadingCount",{n:rr(u)}):void 0}),o.jsx(Ic,{icon:o.jsx(Z7,{size:22,color:"var(--color-main, #29b6c8)",strokeWidth:1.8}),label:i("wordData.phaseImageCheck","\uC774\uBBF8\uC9C0 \uD655\uC778"),state:C,pct:x,subText:S}),o.jsx(Ic,{icon:o.jsx(id,{size:22,color:"var(--color-main, #29b6c8)",strokeWidth:1.8}),label:i("wordData.phasePairAnalysis","\uB2E8\uC5B4\uC30D \uBD84\uC11D"),state:w,pct:w==="active"?h??0:void 0,subText:void 0})]})})}var t6=".ihabdevteam-core-scope .debug-result-launcher{bottom:18px;display:flex;flex-direction:column;gap:var(--spacing-xs);position:fixed;right:18px;z-index:var(--z-tooltip)}.ihabdevteam-core-scope .debug-buttons{background:rgba(11,43,47,.02);border-radius:var(--radius-s);box-shadow:var(--shadow-dropdown);display:flex;flex-direction:column;gap:6px;padding:var(--spacing-xs)}.ihabdevteam-core-scope .debug-button{background:var(--color-white);border:1px solid rgba(11,43,47,.06);border-radius:var(--radius-sm);cursor:pointer;font-size:13px;padding:8px 12px}.ihabdevteam-core-scope .debug-button:hover{transform:translateY(-1px)}";J(t6);function fg({enabled:e=!1,renderResultPopup:t}={}){const[a,r]=l.useState(null),[n,i]=l.useState(null),s=h=>{let g=null;h==="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}]}:h==="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}]}:h==="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}]}:h==="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}]}),i(g),r(h)},c=l.useCallback(()=>{r(null),i(null)},[]),u=l.useCallback(()=>s("noise"),[]),d=l.useCallback(()=>s("short"),[]),p=l.useCallback(()=>s("long"),[]),m=l.useCallback(()=>s("order"),[]);return e?o.jsxs("div",{className:"debug-result-launcher",children:[o.jsxs("div",{className:"debug-buttons",children:[o.jsx("button",{className:"debug-button",onClick:u,children:"Noise \uACB0\uACFC\uBCF4\uAE30"}),o.jsx("button",{className:"debug-button",onClick:d,children:"ShortStory \uACB0\uACFC\uBCF4\uAE30"}),o.jsx("button",{className:"debug-button",onClick:p,children:"LongStory \uACB0\uACFC\uBCF4\uAE30"}),o.jsx("button",{className:"debug-button",onClick:m,children:"Order \uACB0\uACFC\uBCF4\uAE30"})]}),a&&n?t?.({score:n.score,contextsLength:n.contextsLength,results:n.results,onReplay:c,onClose:c}):null]}):null}var a6=Object.freeze({__proto__:null,Accordion:Sh,ActionCard:Op,Alert:Wh,AppHeader:Bh,AudioMeter:Cn,AudioPlayer:wr,Avatar:Gh,Badge:ht,BarChart:pm,BarChartControls:Gl,Board:Qh,BottomNav:kl,BrandIdentity:Bl,Breadcrumb:Yh,BulkBar:sm,Button:se,CORE_VERSION:nn,Calendar:wm,CardStep:Dc,ChartLegend:yn,ChartSection:xn,ChartTotal:yr,Checkbox:Wl,ChoiceChips:fb,CircleBadge:zh,CodeBox:im,ColorPicker:Kh,CompanyMeta:rm,ConfirmPopup:Xb,ConfirmStep:Tc,ConfirmWithTextStep:Bc,ContrastFilterPanel:Kb,CoreScope:Fp,CountTile:Zh,CouponInputPopup:Qb,DatePicker:cm,DebugResultLauncher:fg,DescriptionTooltip:to,DeviceSideTable:Cm,Dialog:Xh,Divider:Oh,Dropdown:Ut,EffectPartyPopper:Rc,EffectPartyPopperHost:ag,EmptyState:Ip,ErrorState:zp,FILTER_ALL_VALUE:Dt,FileUpload:qh,FilterPanel:va,FilterSectionInfo:So,Footer:vb,Header:Nl,Icon:Ie,IconGridMenu:gb,IconRenderer:Ie,InfoTooltip:aa,LandingBottomSticky:xb,LandingHeader:yb,ListPopup:Zb,ListenStep:Ac,Loader:Ao,MARKS:Jl,MARK_ICON:tc,MARK_VARIANT:ac,MediaQueryOverrideContext:ln,MenuTooltip:br,NoiseSettingsTooltip:Cc,NoticeBox:Wp,OrderListStep:Nc,PASS_CARD_BG_VARS:Fa,POS_LABEL:rc,PROMO_BANNER_BG_COMPONENTS:Js,PROMO_BANNER_BG_OPTIONS:Hp,PROMO_BANNER_BG_VARS:Co,Page:Sr,PageTitle:og,Pagination:vr,Panel:kr,PanelGrid:Db,PanelRow:Na,PanelRowDevice:Nb,PassCard:Ml,PassCardBg:Ph,PassCardBgIHAB:Rh,PassCardBgLeftColorGrid:$h,PassCardBgTwoCircle:Ll,PaymentPlan:Mh,PersonCard:Jh,PhonemeFilterPanel:Ub,PhonemeSelectBlock:qb,Popup:Ta,ProgressBar:vm,ProgressIndicator:Zl,PromoBanner:wh,PromoBannerBgDark:Is,PromoBannerBgDeep:js,PromoBannerBgDiagonal:Ws,PromoBannerBgDots:Vs,PromoBannerBgInstagram:Qs,PromoBannerBgMain:As,PromoBannerBgNaver:Zs,PromoBannerBgOutline:qs,PromoBannerBgRadial:Os,PromoBannerBgSoft:Bs,PromoBannerBgSoftSub:Ms,PromoBannerBgSub:Ds,PromoBannerBgSuccess:Us,PromoBannerBgWarm:Rs,PublicationCard:tm,Radio:zl,RadioGroup:Fh,Rating:Uh,ReportDocument:cg,ReportInfoPanel:dg,RingChart:gm,SENTENCE_TRAINING_TYPES:Dn,SearchSummary:Hh,Section:no,SectionHeader:om,SegmentedControl:Ha,ShortcutBadge:Il,SideNav:Sl,Slider:ql,SoundCompass:Ih,SplashLogo:am,StatChart:fm,SummaryStrip:lg,TRAINING_TOOLTIP_HOVER_DELAY_MS:Jb,Table:_n,TableFilterPanel:Bn,Tabs:Vh,TextBoxTooltip:No,TextField:Wa,Timeline:em,Toast:ro,Toggle:Fl,Toolbar:vn,Tooltip:Sa,TooltipInfo:aa,TooltipTextBox:No,TopBanner:kh,TrainingBlock:Sm,TrainingBlockButton:wn,TrainingCard:pg,TrainingCardGroup:hg,TrainingPagePopup:Da,TrainingPagePopupBottom:_c,TrainingPagePopupTitle:wc,TrainingResultPopup:jc,TrainingStep:Va,TrainingStepAudioPlayer:wr,TrainingStepBullet:mc,TrainingStepCard:vc,TrainingStepConfirm:jn,TrainingStepConfirmWithText:Ln,TrainingStepListen:Mn,TrainingStepOrderList:Pn,TrainingStepTextBox:fc,TrainingStepTitle:bc,TrainingTooltip:eg,TrainingWordCard:Sn,UpdateAlert:ug,WORD_TABLE_PAPER:io,WORD_TYPE_LABEL:nc,WordDataProvider:sg,WordDataUpdatePopup:gg,WordImageTooltip:Pc,WordSearchFilterPanel:Yb,WordSearchResultBlock:Gb,WordTable:so,WordTableBlock:mg,WordTableButton:bg,WordTablePopup:Ym,WordTableThumbnail:$c,buildMonthChartData:dm,cellLabel:Xm,cellsForLabels:cb,clearPassCardBgTheme:fa,clearPromoBannerBgTheme:Nt,closeTrainingPopup:jb,companyTypeLabel:rg,createTrainingScenario:Pb,cx:xe,deriveNoiseContexts:Fb,derivePassCard:Dl,draftValues:bb,expandSlashLabel:Tn,formatDuration:db,getControlDateRange:hm,getPayloadTimestamp:Rn,getPromoBannerBgTheme:ks,getSelectedFromPayload:$b,getSelectedText:Ib,getStepPayload:Sc,getSteppedPayload:zb,injectPassCardBgTheme:ga,injectPromoBannerBgTheme:Bt,isSelectionCorrect:Ob,labelsForSave:Zm,markAfterClick:ec,marksForSave:An,missesByType:nb,nextFocus:ab,nextMisses:rb,pageStartIndexes:oc,passCardBgIhabTheme:Rl,passCardBgLeftColorGridTheme:$l,passCardBgTwoCircleTheme:jl,printWordTable:Em,promoBannerBgDarkTheme:$s,promoBannerBgDeepTheme:Es,promoBannerBgDiagonalTheme:Fs,promoBannerBgDotsTheme:Hs,promoBannerBgInstagramTheme:Xs,promoBannerBgMainTheme:Ss,promoBannerBgNaverTheme:Ks,promoBannerBgOutlineTheme:Gs,promoBannerBgRadialTheme:zs,promoBannerBgSoftSubTheme:Ls,promoBannerBgSoftTheme:Ts,promoBannerBgSubTheme:Ns,promoBannerBgSuccessTheme:Ys,promoBannerBgWarmTheme:Ps,recommendTables:sb,regenerateUnpinned:mb,removeItem:hb,resolveTrainingItems:Mb,resolveTrainingPopupMeta:kc,reviewCells:Um,reviewSetPlan:ib,reviewTableName:Km,scoreKey:_r,scoreSheetHeader:Qm,shouldConfirmDiscard:Dm,splitTrainingVariants:Lb,summarize:Nm,summarizeMisses:ob,tableTrends:tb,toDraft:ub,toTrainingText:Rb,togglePin:pb,uncoveredLabels:lb,useAnchoredMenu:ao,useBarChartControl:Vl,useCalendarMonth:Hl,useComboboxSuggestions:Ol,useFitScale:ic,useSoundCompassExam:wl,useToastLifecycle:Kl,useWordData:ig,useWordTableDisplaySettings:cc,useWordTablePrint:Nn,weakItems:eb}),o6=Object.freeze({__proto__:null});const r6={...a6,...f5,...S4,...o6};exports.Accordion=Sh,exports.ActionCard=Op,exports.Alert=Wh,exports.AppHeader=Bh,exports.AudioMeter=Cn,exports.AudioPlayer=wr,exports.Avatar=Gh,exports.Badge=ht,exports.BarChart=pm,exports.BarChartControls=Gl,exports.Board=Qh,exports.BottomNav=kl,exports.BrandIdentity=Bl,exports.Breadcrumb=Yh,exports.BulkBar=sm,exports.Button=se,exports.CACHE_GROUPS=rl,exports.CAPABILITY=fo,exports.CHOSEONG=Ze,exports.CORE_VERSION=nn,exports.Calendar=wm,exports.CardStep=Dc,exports.ChartLegend=yn,exports.ChartSection=xn,exports.ChartTotal=yr,exports.Checkbox=Wl,exports.ChoiceChips=fb,exports.CircleBadge=zh,exports.CodeBox=im,exports.ColorPicker=Kh,exports.CompanyMeta=rm,exports.ConfirmPopup=Xb,exports.ConfirmStep=Tc,exports.ConfirmWithTextStep=Bc,exports.ContrastFilterPanel=Kb,exports.CoreScope=Fp,exports.CountTile=Zh,exports.CouponInputPopup=Qb,exports.DEFAULT_LOCALE=co,exports.DatePicker=cm,exports.DebugResultLauncher=fg,exports.DescriptionTooltip=to,exports.DeviceSideTable=Cm,exports.Dialog=Xh,exports.Divider=Oh,exports.DocumentTitleSuppressContext=al,exports.Dropdown=Ut,exports.EMPTY_COMPOSITION=un,exports.EffectPartyPopper=Rc,exports.EffectPartyPopperHost=ag,exports.EmptyState=Ip,exports.ErrorState=zp,exports.FILTER_ALL_VALUE=Dt,exports.FileUpload=qh,exports.FilterPanel=va,exports.FilterSectionInfo=So,exports.Footer=vb,exports.Header=Nl,exports.I18nProvider=Gf,exports.Icon=Ie,exports.IconGridMenu=gb,exports.IconRenderer=Ie,exports.InfoTooltip=aa,exports.JONGSEONG=gt,exports.JUNGSEONG=dt,exports.LOCALE_STORAGE_KEY=On,exports.LONG_STORIES=Ia,exports.LandingBottomSticky=xb,exports.LandingHeader=yb,exports.ListPopup=Zb,exports.ListenStep=Ac,exports.Loader=Ao,exports.MARKS=Jl,exports.MARK_ICON=tc,exports.MARK_VARIANT=ac,exports.MediaQueryOverrideContext=ln,exports.MenuTooltip=br,exports.NETWORK_ERROR_MESSAGE=Zi,exports.NOISE_DATAS=Ra,exports.NO_CODA=ra,exports.NoiseSettingsTooltip=Cc,exports.NoticeBox=Wp,exports.ORDER_SETS=za,exports.OrderListStep=Nc,exports.PASS_CARD_BG_VARS=Fa,exports.PLAN_FEATURES=Dp,exports.PLAN_LIMITS=jp,exports.POS_LABEL=rc,exports.PROMO_BANNER_BG_COMPONENTS=Js,exports.PROMO_BANNER_BG_OPTIONS=Hp,exports.PROMO_BANNER_BG_VARS=Co,exports.Page=Sr,exports.PageTitle=og,exports.Pagination=vr,exports.Panel=kr,exports.PanelGrid=Db,exports.PanelRow=Na,exports.PanelRowDevice=Nb,exports.PassCard=Ml,exports.PassCardBg=Ph,exports.PassCardBgIHAB=Rh,exports.PassCardBgLeftColorGrid=$h,exports.PassCardBgTwoCircle=Ll,exports.PaymentPlan=Mh,exports.PersonCard=Jh,exports.PhonemeFilterPanel=Ub,exports.PhonemeSelectBlock=qb,exports.Popup=Ta,exports.ProgressBar=vm,exports.ProgressIndicator=Zl,exports.PromoBanner=wh,exports.PromoBannerBgDark=Is,exports.PromoBannerBgDeep=js,exports.PromoBannerBgDiagonal=Ws,exports.PromoBannerBgDots=Vs,exports.PromoBannerBgInstagram=Qs,exports.PromoBannerBgMain=As,exports.PromoBannerBgNaver=Zs,exports.PromoBannerBgOutline=qs,exports.PromoBannerBgRadial=Os,exports.PromoBannerBgSoft=Bs,exports.PromoBannerBgSoftSub=Ms,exports.PromoBannerBgSub=Ds,exports.PromoBannerBgSuccess=Us,exports.PromoBannerBgWarm=Rs,exports.PublicationCard=tm,exports.Radio=zl,exports.RadioGroup=Fh,exports.Rating=Uh,exports.ReportDocument=cg,exports.ReportInfoPanel=dg,exports.RingChart=gm,exports.SENTENCE_TRAINING_TYPES=Dn,exports.SHORT_STORIES=$a,exports.SUPPORTED_LOCALES=Lo,exports.SYLLABLE_MIN=na,exports.SearchSummary=Hh,exports.Section=no,exports.SectionHeader=om,exports.SegmentedControl=Ha,exports.ShortcutBadge=Il,exports.SideNav=Sl,exports.Slider=ql,exports.SoundCompass=Ih,exports.SplashLogo=am,exports.StatChart=fm,exports.SummaryStrip=lg,exports.TIER_RANK=Ep,exports.TOPIC_TYPES=fp,exports.TRAINING_TOOLTIP_HOVER_DELAY_MS=Jb,exports.TRAINING_TYPES=Jr,exports.TRAINING_TYPE_I18N_KEY=ys,exports.Table=_n,exports.TableFilterPanel=Bn,exports.Tabs=Vh,exports.TextBoxTooltip=No,exports.TextField=Wa,exports.Timeline=em,exports.Toast=ro,exports.Toggle=Fl,exports.Toolbar=vn,exports.Tooltip=Sa,exports.TooltipInfo=aa,exports.TooltipTextBox=No,exports.TopBanner=kh,exports.TrainingBlock=Sm,exports.TrainingBlockButton=wn,exports.TrainingCard=pg,exports.TrainingCardGroup=hg,exports.TrainingPagePopup=Da,exports.TrainingPagePopupBottom=_c,exports.TrainingPagePopupTitle=wc,exports.TrainingResultPopup=jc,exports.TrainingStep=Va,exports.TrainingStepAudioPlayer=wr,exports.TrainingStepBullet=mc,exports.TrainingStepCard=vc,exports.TrainingStepConfirm=jn,exports.TrainingStepConfirmWithText=Ln,exports.TrainingStepListen=Mn,exports.TrainingStepOrderList=Pn,exports.TrainingStepTextBox=fc,exports.TrainingStepTitle=bc,exports.TrainingTooltip=eg,exports.TrainingWordCard=Sn,exports.UpdateAlert=ug,exports.VAP_PAGE_SIZE_OPTIONS=il,exports.WORD_SUGGESTION_ACCOUNT_LIMIT=Pp,exports.WORD_SUGGESTION_EXISTING_ERROR=$p,exports.WORD_SUGGESTION_WEEKLY_QUOTA=Mp,exports.WORD_TABLE_PAPER=io,exports.WORD_TYPE_LABEL=nc,exports.WordDataProvider=sg,exports.WordDataUpdatePopup=gg,exports.WordImageTooltip=Pc,exports.WordSearchFilterPanel=Yb,exports.WordSearchResultBlock=Gb,exports.WordTable=so,exports.WordTableBlock=mg,exports.WordTableButton=bg,exports.WordTablePopup=Ym,exports.WordTableThumbnail=$c,exports.applyFontScale=ps,exports.applyTheme=ds,exports.buildChangeWholeSyllableProblem=Ki,exports.buildDropCompoundProblem=Vi,exports.buildDropContrast3Problem=Hi,exports.buildDropContrastProblem=Wi,exports.buildDropFinalConsonantProblem=Gi,exports.buildGradeSection=dl,exports.buildMonthChartData=dm,exports.buildMultiPartPosContrast=wi,exports.buildPairIndex=iu,exports.buildPartOfSpeechSection=ul,exports.buildPositionSection=rh,exports.buildRemoveConsonantProblem=Yi,exports.buildSelectSection=oh,exports.buildSyllableMaskIndex=Ui,exports.buildSyllableSection=ah,exports.buildWordTypeSection=pl,exports.bulkSetImageExistence=Kd,exports.cardQuestionTitle=Tu,exports.cellLabel=Xm,exports.cellsForLabels=cb,exports.charToPronValue=fl,exports.checkImageExists=Yo,exports.classifyPairDifficulty=di,exports.clearAudioExistsCache=Wd,exports.clearImageExistenceCache=li,exports.clearPairIndexCache=xi,exports.clearPassCardBgTheme=fa,exports.clearPromoBannerBgTheme=Nt,exports.closeTrainingPopup=jb,exports.companyTypeLabel=rg,exports.composeSyllable=ua,exports.computeDailySelection=ms,exports.configureImageResolver=Yd,exports.configureNoiseSettingsStore=Zu,exports.configurePronunciationResolver=Vd,exports.configureStorage=Jn,exports.configureTTS=Fd,exports.configureTrainingCategories=cp,exports.convertComposition=yl,exports.copyText=is,exports.createDecompCache=ci,exports.createTTSUrlResolver=Ju,exports.createTrainingScenario=Pb,exports.cx=xe,exports.dateToDb=lp,exports.default=r6,exports.deriveNoiseContexts=Fb,exports.derivePassCard=Dl,exports.downloadCsvText=Lu,exports.downloadSound=Er,exports.draftValues=bb,exports.ensureTrainingDataLoaded=vs,exports.escapeCsvField=ju,exports.expandSlashLabel=Tn,exports.fileExists=ei,exports.filterContrastCandidates=_i,exports.finalToPhoneme=Vr,exports.firstChoseongOf=ui,exports.fmtBytes=Yp,exports.formatCount=rr,exports.formatDateKo=ep,exports.formatDateLocale=ap,exports.formatDateLongKo=tp,exports.formatDateLongLocale=op,exports.formatDatetimeKo=rp,exports.formatDuration=db,exports.formatPhone=ip,exports.formatRelativeTime=Kr,exports.formatTimeHM=Xr,exports.formatYmd=Zr,exports.getAssetBaseUrl=Xn,exports.getControlDateRange=hm,exports.getDailySelection=bp,exports.getElementAnalyser=Vo,exports.getErrorMessage=Yr,exports.getImageExistenceStats=Mr,exports.getImageExistsCached=si,exports.getImageResolver=Ma,exports.getNoiseBaseUrl=ti,exports.getPairIndex=Ka,exports.getPayloadTimestamp=Rn,exports.getPlanTier=Lp,exports.getPromoBannerBgTheme=ks,exports.getPronunciationResolver=ri,exports.getSavedFontScale=us,exports.getSavedTheme=cs,exports.getSelectedFromPayload=$b,exports.getSelectedText=Ib,exports.getSignedOrPublicUrl=Oo,exports.getStepPayload=Sc,exports.getSteppedPayload=zb,exports.getTTSFallbackUrlResolver=oi,exports.getTTSUrlResolver=Fo,exports.getTodayKst=Ur,exports.getTopicTypes=Qr,exports.getTrainingPools=bs,exports.getTrainingTypes=ls,exports.getWordPool=vo,exports.hasQuestionWordConstraint=xu,exports.hasSel=ft,exports.hasStructureContrast=Ko,exports.initFontScale=hp,exports.initTheme=up,exports.injectPassCardBgTheme=ga,exports.injectPromoBannerBgTheme=Bt,exports.isAllChoseong=hi,exports.isManualOnlyType=_u,exports.isNetworkErrorMessage=Xi,exports.isSelectionCorrect=Ob,exports.isSyllablePattern=gi,exports.isThisWeekPick=Rp,exports.isTrainingDataLoaded=gp,exports.isValidQuestionWord=Cu,exports.itemCorrectness=ts,exports.jamoToNamesForSpeech=Bu,exports.labelsForSave=Zm,exports.loadGameLeaderboard=Ku,exports.loadMyGameRanks=Uu,exports.loadNoiseSettings=rs,exports.loadTrainingData=fs,exports.logCrossword=zu,exports.logTrainingCompletion=es,exports.logTrainingTime=Ji,exports.lsBytes=nl,exports.markAfterClick=ec,exports.marksForSave=An,exports.matchSyllables=Qa,exports.matchesChoseongSearch=Zd,exports.matchesSyllablePattern=fi,exports.matchesWordQuery=ho,exports.meaningKey=mn,exports.mergeQuestionText=Oi,exports.minimalPairDistractors=Pr,exports.missesByType=nb,exports.nextFocus=ab,exports.nextMisses=rb,exports.normalizeDate=sp,exports.officialSoundPath=Qu,exports.pageStartIndexes=oc,exports.parseSortValue=Eu,exports.parseSyllable=Ee,exports.passCardBgIhabTheme=Rl,exports.passCardBgLeftColorGridTheme=$l,exports.passCardBgTwoCircleTheme=jl,exports.patternToComposition=au,exports.phonemePartsOf=Au,exports.pickEuRo=$i,exports.pickEulReul=Li,exports.pickEunNeun=Pi,exports.pickIga=Ei,exports.pickWaGwa=Ri,exports.prewarmImageCache=Ud,exports.primarySelPart=tr,exports.printWordTable=Em,exports.promoBannerBgDarkTheme=$s,exports.promoBannerBgDeepTheme=Es,exports.promoBannerBgDiagonalTheme=Fs,exports.promoBannerBgDotsTheme=Hs,exports.promoBannerBgInstagramTheme=Xs,exports.promoBannerBgMainTheme=Ss,exports.promoBannerBgNaverTheme=Ks,exports.promoBannerBgOutlineTheme=Gs,exports.promoBannerBgRadialTheme=zs,exports.promoBannerBgSoftSubTheme=Ls,exports.promoBannerBgSoftTheme=Ts,exports.promoBannerBgSubTheme=Ns,exports.promoBannerBgSuccessTheme=Ys,exports.promoBannerBgWarmTheme=Ps,exports.pronToCharValue=vl,exports.readLevel=ni,exports.recommendTables=sb,exports.regenerateUnpinned=mb,exports.removeItem=hb,exports.reorderArray=Ii,exports.resolveAssetUrl=Io,exports.resolveSoundPath=Dr,exports.resolveTrainingItems=Mb,exports.resolveTrainingPopupMeta=kc,exports.resumeAudioMeter=Ho,exports.reviewCells=Um,exports.reviewSetPlan=ib,exports.reviewTableName=Km,exports.sample=Qt,exports.saveLocale=Hf,exports.saveNoiseSettings=ns,exports.scoreKey=_r,exports.scoreSheetHeader=Qm,exports.searchAndRankWords=ru,exports.setAssetBaseUrl=zd,exports.setCrosswordLogger=Iu,exports.setGameLeaderboardLoader=qu,exports.setGameRanksLoader=Gu,exports.setGameScoreSubmitter=Vu,exports.setTrainingCompletionLogger=$u,exports.setTrainingTimeLogger=Ru,exports.setWordPool=Pu,exports.shouldConfirmDiscard=Dm,exports.shuffle=He,exports.sortToValue=Du,exports.soundOf=qr,exports.speak=Rd,exports.splitTrainingVariants=Lb,exports.stopSpeaking=$d,exports.submitGameScore=Yu,exports.summarize=Nm,exports.summarizeMisses=ob,exports.syllMatchesComp=Pa,exports.syllableContrasts=Ja,exports.syllableLength=bo,exports.syllablePron=Fi,exports.syllableToFilter=dn,exports.tableTrends=tb,exports.toBase64UrlSafe=Xu,exports.toChoseong=pi,exports.toDraft=ub,exports.toItemResults=as,exports.toKstHm=np,exports.toKstYmd=ka,exports.toStandardPronunciation=gu,exports.toStorageName=ar,exports.toTrainingText=Rb,exports.toUserErrorMessage=Nu,exports.today=_o,exports.toggleAttributeFilter=nh,exports.togglePin=pb,exports.uncoveredLabels=lb,exports.useAnchoredMenu=ao,exports.useBarChartControl=Vl,exports.useCacheManagement=Up,exports.useCalendarMonth=Hl,exports.useComboboxSuggestions=Ol,exports.useDailyTrainingSelection=gh,exports.useDelayedHoverAnchor=xh,exports.useDeviceManagement=th,exports.useDocumentTitle=ol,exports.useEscToClose=vh,exports.useFitScale=ic,exports.useFontScale=sn,exports.useHoverAnchor=ko,exports.useI18n=Vf,exports.useMediaQuery=oa,exports.usePagedList=Ch,exports.usePasswordChange=qp,exports.useRelativeDay=Gp,exports.useSoundCompassExam=wl,exports.useTablePaging=sl,exports.useTableSort=ll,exports.useToastLifecycle=Kl,exports.useToastState=bn,exports.useTrainingTypeLabels=_h,exports.useVisitAllPanel=eh,exports.useVisitHistory=Xp,exports.useVisitSchedule=Jp,exports.useWindowEvent=ur,exports.useWordAttributeFilterKeys=cl,exports.useWordData=ig,exports.useWordDataStats=Kp,exports.useWordMeanings=yh,exports.useWordTableDisplaySettings=cc,exports.useWordTablePrint=Nn,exports.useWordTrainingDataGeneration=hh,exports.useWordTrainingFilter=ph,exports.validateSyllableSearchInput=ou,exports.valueToJamos=ba,exports.weakItems=eb,exports.withEuRo=yu,exports.withEulReul=Mi,exports.withEunNeun=fu,exports.withIga=ji,exports.withWaGwa=vu,exports.wordContainsChoseong=Qd,exports.wordContainsJongseong=eu,exports.wordContainsJungseong=Jd,exports.wordHasNoCoda=mi,exports.wordHasSyllableMatching=bi,exports.wrongItems=Ou;
|