@ihabdevteam/core 0.53.0 → 0.54.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.
@@ -829,7 +829,7 @@ 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){cw(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 Od(e){globalThis[ai]=e}function Fo(){return globalThis[ai]?.urlResolver??null}function oi(){return globalThis[ai]?.fallbackUrlResolver??null}const dw=new Map;function Fd(){dw.clear()}const Wd="__ihab_core_pronunciation_resolver__";function Hd(e){globalThis[Wd]=e}function ri(){return globalThis[Wd]??null}let Wo=null;const Vd=new WeakMap;function uw(){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=Vd.get(e);if(t)return t;const a=uw();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),Vd.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 Gd="__ihab_core_image_config__";function qd(e){globalThis[Gd]=e}function Ma(){return globalThis[Gd]??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 pw(){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,pw(),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 Yd(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(d=>!(Lr(d)in i));let c=0;if(s.length>0){let d=0;const u=Array.from({length:Math.min(r,s.length)},async()=>{for(;d<s.length;){const m=d++,h=s[m],p=Lr(h);if(!a&&p in i){c++,n?.(c,s.length);continue}try{await Yo(h)}catch{}c++,n?.(c,s.length)}});await Promise.all(u)}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 Ud(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,d=i.jung!==s.jung,u=i.jong!==s.jong;(c?1:0)+(d?1:0)+(u?1:0)>1?r="multi":c?r="cho":d?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 Kd(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 d=!0;for(let u=0;u<a.length;u++){const m=s[c+u],h=i[u];if(h==="cho"){if(ui(m)!==a[u]){d=!1;break}}else if(h==="jung"){const p=Ee(m);if(!p||dt[p.jung]!==a[u]){d=!1;break}}else{const p=Ee(a[u]);if(p&&p.jong===0){const g=Ee(m);if(!g||g.cho!==p.cho||g.jung!==p.jung){d=!1;break}}else if(m!==a[u]){d=!1;break}}}if(d)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"]},Zd=Object.fromEntries(Object.entries(mo).map(([e,t])=>[t.join(""),gt[Number(e)]]));function hw(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 Xd(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 Qd(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 Jd(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 mw(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&&!mw(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 eu(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=Zd[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 bw(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!=="_"&&gt[a.jong]!==t.jong)}case"invalid":return!1}}function fi(e,t){const a=t.split(",").flatMap(n=>eu(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)=>bw(r[n+s],i)))return!0;return!1}function tu(e){const t=e.split(",").flatMap(i=>eu(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 gw(e){return!!Ee(e)||Ze.includes(e)||dt.includes(e)}function au(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(""),d=i===void 0||i==="_"||Ze.includes(i),u=s===void 0||s==="_"||dt.includes(s),m=c===""||c==="_"||gt.filter(Boolean).includes(c)||!!Zd[c];if(d&&u&&m)continue;return{ok:!1}}if(![...r].every(gw))return{ok:!1}}}return{ok:!0}}const fw={cho:Ze.length,jung:dt.length,jong:gt.length};function vw(e,t,a,r,n=1/0){if(!e||a<1)return[];const i=[...e].map(h=>Ee(h));if(i.some(h=>!h))return[];const s=i,c=s.length;if(a>c)return[];const d=fw[t],u=new Set,m=[];(function h(p,g){if(g.length===a){m.push([...g]);return}for(let f=p;f<c;f++)g.push(f),h(f+1,g),g.pop()})(0,[]);for(const h of m)if((function p(g,f){if(u.size>=n)return;if(g===h.length){const y=f.map(_=>ua(_.cho,_.jung,_.jong)).join("");y!==e&&r.has(y)&&u.add(y);return}const b=h[g],v=s[b][t];for(let y=0;y<d;y++){if(y===v)continue;const _=f.slice();if(_[b]={...f[b],[t]:y},p(g+1,_),u.size>=n)return}})(0,s),u.size>=n)break;return[...u]}function yw(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 ou(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 ru(){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 xw(e,t){try{if(typeof localStorage>"u")return;localStorage.setItem(vi,JSON.stringify(e)),localStorage.setItem(yi,t)}catch{}}function Cw(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 _w(e,t){const a=new Set,r=[];for(const u of e){if(!u.word||a.has(u.word))continue;const m=u.pron||u.word,h=Array.from(m).map(Ee);h.some(p=>p===null)||h.length===Array.from(u.word).length&&(a.add(u.word),r.push({word:u.word,syls:h}))}const n={},i=r.length,s=new Map;for(const u of r){const m=u.syls.length;s.has(m)||s.set(m,[]),s.get(m).push(u)}let c=0;const d=["cho","jung","jong"];for(const u of s.values()){const m=u[0].syls.length;for(let h=0;h<m;h++)for(const p of d){const g=new Map;for(const f of u){let b="";for(let y=0;y<m;y++){y>0&&(b+="~");const _=f.syls[y];y===h?p==="cho"?b+=`*:${_.jung}:${_.jong}`:p==="jung"?b+=`${_.cho}:*:${_.jong}`:b+=`${_.cho}:${_.jung}:*`:b+=`${_.cho}:${_.jung}:${_.jong}`}let v=g.get(b);v||(v=[],g.set(b,v)),v.push(f)}for(const f of g.values())if(!(f.length<2))for(let b=0;b<f.length;b++){const v=f[b];for(let y=b+1;y<f.length;y++){const _=f[y];v.syls[h][p]!==_.syls[h][p]&&(n[v.word]||(n[v.word]={cho:[],jung:[],jong:[]}),n[_.word]||(n[_.word]={cho:[],jung:[],jong:[]}),n[v.word][p].push(_.word),n[_.word][p].push(v.word))}}}c+=u.length,t?.(c,i),await new Promise(h=>setTimeout(h,0))}return i>0&&t?.(i,i),n}async function nu(e,t={}){const a=Cw(e);if(!t.force){if(pa&&Uo===a)return pa;const n=ru();if(n&&n.sig===a)return pa=n.index,Uo=a,pa}const r=await _w(e,t.onProgress);return pa=r,Uo=a,xw(r,a),r}function Ka(){if(pa)return pa;const e=ru();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(p=>ft(e[p])),d={};for(const p of c){const g=e[p];d[p]=new Set(Array.isArray(g)?g:[g])}const u=n==="pron",m=new Map;for(const p of t){const g=a(i(p));if(g.some(y=>!y))continue;let f=g;if(!u&&(f=a(p),f.length!==g.length||f.some(y=>!y)))continue;const b=g.length,v=m.get(b);v?v.push({w:p,dPron:g,dPos:f}):m.set(b,[{w:p,dPron:g,dPos:f}])}const h=new Map;for(const[p,g]of m){const f=new Map,b=(v,y)=>{const _=v.dPos[y];return _!=null&&c.every(C=>d[C].has(Ci[C][_[C]]))};for(const v of g){let y;if(s==="head")y=b(v,0)?0:-1;else if(s==="tail")y=b(v,p-1)?p-1:-1;else if(s==="mid"){y=-1;for(let C=1;C<p-1;C++)if(b(v,C)){y=C;break}}else y=v.dPos.findIndex(C=>C!=null&&c.every(x=>d[x].has(Ci[x][C[x]])));if(y<0)continue;const _=f.get(y);_?_.push(v):f.set(y,[v])}for(const[v,y]of f){const _=new Set(c.map(k=>v+":"+k)),C=k=>{let w="";for(let S=0;S<p;S++){const E=k[S];for(const A of["cho","jung","jong"])w+=(_.has(S+":"+A)?"*":E[A])+"."}return w},x=new Map;for(const k of g){const w=C(k.dPron),S=x.get(w);S?S.push(k):x.set(w,[k])}for(const k of y){const w=x.get(C(k.dPron))??[],S=[];for(const E of w){if(E.w===k.w)continue;let A=!0;for(const B of c){const W=k.dPron[v][B],P=E.dPron[v][B];if(P===W){A=!1;break}if(u&&d[B].has(Ci[B][P])){A=!1;break}}A&&(r&&Ko(k.dPron,E.dPron)||S.push(E.w))}h.set(k.w,S)}}}return h}const Rr=0,iu=1,Za=2,ki=3,ww=4,$r=5,Si=6,Ir=7,kw=8,su=9,Zo=10,Sw=11,Xo=12,Aw=13,Qo=14,zr=15,Or=16,Jo=17,Tw=18,ha=0,_a=1,Bw=3,Xa=4,Ai=5,Ti=6,ma=7,At=8,lu=9,cu=10,Fr=11,du=12,Bi=13,Wr=15,Hr=16,wa=17,uu=18,Ni=21,pu=27,Nw=20,Dw={1:Rr,2:iu,4:Za,7:ki,8:$r,16:Si,17:Ir,19:su,20:Zo,22:Xo,23:Qo,24:zr,25:Or,26:Jo},Ew={[Bw]:[_a,Zo],[Ai]:[Xa,Xo],[lu]:[At,Rr],[cu]:[At,Si],[Fr]:[At,Ir],[du]:[At,Zo],[Bi]:[At,Or],14:[At,Jo],[uu]:[wa,Zo]},jw={[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},hu={[Rr]:zr,[ki]:Or,[Ir]:Jo,[Xo]:Qo},mu={[Rr]:iu,[ki]:ww,[Ir]:kw,[su]:Zo,[Xo]:Aw},Lw=new Set([Ai,cu,Fr,du,Bi,Wr,uu]),Mw=new Set(["\uBC1F"]);function bu(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],d=s.jong;if(!c){s.jong=Di[s.jong]??s.jong;break}if(s.jong===ha)continue;if(c.cho===Sw){if(c.jung===Nw){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===pu){s.jong=ha;continue}const m=jw[s.jong];if(m!==void 0){s.jong=ha,c.cho=m;continue}const h=Ew[s.jong];if(h){s.jong=h[0],c.cho=h[1];continue}const p=Dw[s.jong];p!==void 0&&(s.jong=ha,c.cho=p);continue}if((s.jong===pu||s.jong===Ti||s.jong===Wr)&&hu[c.cho]!==void 0){c.cho=hu[c.cho],s.jong=s.jong===Ti?Xa:s.jong===Wr?At:ha;continue}if(c.cho===Tw){if(s.jong===Ai){s.jong=Xa,c.cho=Qo;continue}if(s.jong===lu){s.jong=At,c.cho=zr;continue}if(s.jong===Fr){s.jong=At,c.cho=Jo;continue}const m=Di[s.jong]??s.jong;if(m===_a){s.jong=ha,c.cho=zr;continue}if(m===ma){s.jong=ha,c.cho=Or;continue}if(m===wa){s.jong=ha,c.cho=Jo;continue}}let u=Di[s.jong]??s.jong;d===Fr&&Mw.has(a[i])&&(u=wa),s.jong=u,mu[c.cho]!==void 0&&(u===_a||u===ma||u===wa||Lw.has(d))&&(c.cho=mu[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 Pw={\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"},Rw={\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 Pw[e]??e}const go=/[ㄱ-ㅎ]/,$w=/[ㅏ-ㅣ]/;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)||$w.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 gu(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 fu(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 vu(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 Iw(e){const t=e?fo[e]?.group:void 0;return t==="synthesis"||t==="deletion"||t==="substitution"?t:null}const zw=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!==zw},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}},Ow=new Set([]);function yu(e){return e in Gr}function xu(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 Cu(e){return Ow.has(e)}function Fw(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 _u(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 wu(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 ku={\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 Su(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=>ku[c]??c,n=a.slice(0,-1).map(c=>`"${c}"${Fw(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 Ww(e,t){return Oi(t,e==="MERGE_2_PHONEMES"||e==="MERGE_3_PHONEMES")}function Hw(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}"${_u(n)} \uBC14\uAFB8\uBA74 \uBB34\uC5C7\uC774 \uB418\uB098\uC694?`:`"${a}"\uC5D0\uC11C "${r}"${zi(r)} "${n}"${_u(n)} \uBC14\uAFB8\uBA74 \uBB34\uC5C7\uC774 \uB418\uB098\uC694?`}function Vw(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}"${wu(n)} \uC5C6\uC5B4\uC9C0\uBA74 \uC5B4\uB5A4 \uC18C\uB9AC\uAC00 \uB418\uB098\uC694?`}return`"${a}"\uC5D0\uC11C "${r}"${wu(r)} \uC5C6\uC5B4\uC9C0\uBA74 \uC5B4\uB5A4 \uB9D0\uC774 \uB418\uB098\uC694?`}function Au(e,t,a){switch(Iw(e)){case"synthesis":return Ww(e,a);case"substitution":return Hw(e,t);case"deletion":return Vw(e,t);default:return""}}function Tu(e){return e.replace(/"([ㄱ-ㅣ])"(으로|와|과|을|를|이|가|은|는|로)?/g,(t,a,r)=>{const n=ku[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 Gw=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)||Gw(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=[],d=new Set([qr(a,n)]),u=He(i.map((m,h)=>h).filter(m=>m!==s&&(t!=="cho"||i[m]!=="\u3147")&&(t!=="jong"||m!==0)));for(const m of u){if(c.length>=r)break;const h=t==="cho"?ua(m,e.jung,e.jong):t==="jung"?ua(e.cho,m,e.jong):ua(e.cho,e.jung,m),p=qr(h,n);d.has(p)||(d.add(p),c.push(h))}return c}function Wi(e,t,a,r,n,i=null){const s=[...e];if(s.length!==2)return null;const c=s.map(h=>Ee(h));if(c.some(h=>!h))return null;const d=Qa(e,a,r);if(d.some(h=>!h))return null;const u=tr(t);let m=u&&t?d.map((h,p)=>Pa(h,t)?p:-1).filter(h=>h>=0):[0,1];if(i!=null&&(m=m.filter(h=>h!==i)),!m.length)return null;for(const h of He(m)){const p=s[h];if(!n.has(p))continue;const g=Ja(c[h],u??"cho",p,40,a),f=[];for(const b of g)if(b!==p&&n.has(b)&&!f.includes(b)&&f.push(b),f.length>=2)break;if(!(f.length<2))return{question:e,distractors:[p,...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(h=>Ee(h));if(c.some(h=>!h))return null;const d=Qa(e,a,r);if(d.some(h=>!h))return null;const u=tr(t),m=u&&t?d.map((h,p)=>Pa(h,t)?p:-1).filter(h=>h>=0):[0,1,2];if(!m.length)return null;for(const h of He(m))for(const p of He([0,1,2].filter(g=>g!==h&&(i==null||g===i)))){const g=[0,1,2].filter(_=>_!==p),f=g.map(_=>s[_]).join("");if(!n.has(f))continue;const b=g.indexOf(h),v=Ja(c[h],u??"cho",s[h],40,a),y=[];for(const _ of v){const C=g.map(k=>s[k]);C[b]=_;const x=C.join("");if(x!==f&&n.has(x)&&!y.includes(x)&&y.push(x),y.length>=2)break}if(!(y.length<2))return{question:e,distractors:[f,...y]}}return null}function Vi(e,t,a,r,n,i=null){const s=[...e],c=s.length;if(c<2)return null;const d=[];for(let m=1;m<=c-1;m++)d.push({remain:s.slice(0,m).join(""),dropped:s.slice(m).join(""),droppedEnd:1}),d.push({remain:s.slice(c-m).join(""),dropped:s.slice(0,c-m).join(""),droppedEnd:0});const u=tr(t);for(const{remain:m,dropped:h,droppedEnd:p}of He(d)){if(i!=null&&p!==i||m===e||!n.has(m)||!n.has(h))continue;const g=[...m],f=g.map(y=>Ee(y));if(f.some(y=>!y))continue;const b=Qa(m,a,r);if(b.some(y=>!y))continue;const v=u&&t?b.map((y,_)=>Pa(y,t)?_:-1).filter(y=>y>=0):g.map((y,_)=>_);if(v.length)for(const y of He(v)){const _=Ja(f[y],u??"cho",g[y],40,a),C=[];for(const x of _){const k=[...g];k[y]=x;const w=k.join("");if(w!==m&&n.has(w)&&!C.includes(w)&&C.push(w),C.length>=2)break}if(C.length>=2)return{question:e,distractors:[m,...C]}}}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),d=Ja({cho:s.cho,jung:s.jung,jong:0},"cho",c,2,a);return d.length<2?null:{question:e,distractors:[c,...d]}}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),d=Ja({cho:qi,jung:s.jung,jong:0},"jung",c,2,a);return d.length<2?null:{question:e,distractors:[c,...d]}}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 d=0;d<n;d++)s+=d===i?"*":r[d];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 d=[...e],u=d.length;if(u<2||u>3)return null;const m=d.map(_=>Ee(_));if(m.some(_=>!_))return null;const h=Qa(e,a,r);if(h.some(_=>!_))return null;const p=_=>a.get(_)??_,g=p(e),f=!!t&&(ft(t.cho)||ft(t.jung)||ft(t.jong)),b=!!s&&(ft(s.cho)||ft(s.jung)||ft(s.jong)),v=_=>{let C=u+"|"+_+"|";for(let x=0;x<u;x++)C+=x===_?"*":d[x];return C};let y;if(i!=null){if(i>=u||f&&!Pa(h[i],t))return null;y=[i]}else f?y=h.map((_,C)=>Pa(_,t)?C:-1).filter(_=>_>=0):y=Array.from({length:u},(_,C)=>C);for(const _ of He(y)){const C=n.get(v(_))??[],x=[],k=[];for(const B of C){if(B===e)continue;const W=[...B].map(M=>Ee(M)),P=m[_],T=W[_];if(!P||!T)continue;let j=0;if(P.cho!==T.cho&&j++,P.jung!==T.jung&&j++,P.jong!==T.jong&&j++,!(j<c||p(B)===g))if(b){const M=Qa(B,a,r)[_];M&&Pa(M,s)?x.push(B):k.push(B)}else x.push(B)}if(!x.length)continue;const w=He(x)[0],S=[],E=new Set([g,p(w)]),A=b?k:x.filter(B=>B!==w);for(const B of He(A)){const W=p(B);if(!E.has(W)&&(E.add(W),S.push(B),S.length>=2))break}if(!b&&S.length<2)for(const B of He(C)){if(B===e||B===w)continue;const W=p(B);if(!E.has(W)&&(E.add(W),S.push(B),S.length>=2))break}if(!(S.length<2))return{question:e,distractors:[w,...S]}}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 Bu(e){return Xi(e)?Zi:e}function Nu(e,t){return e==="id"?void 0:`${e}|${t?"asc":"desc"}`}function Du(e){const[t,a]=e.split("|");return{key:t,asc:a==="asc"}}function Eu(e){let t=e==null?"":String(e);return/^[=+\-@\t\r]/.test(t)&&(t=" "+t),/[",\n\r]/.test(t)?`"${t.replaceAll('"','""')}"`:t}function ju(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 Lu="__ihab_core_word_pool__";function qw(){typeof window<"u"&&window.dispatchEvent(new CustomEvent("wordpool:update"))}function Mu(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[Lu]=r,qw()}function vo(){return globalThis[Lu]??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 Pu(e){yo.__ihabTrainingTimeLogger=e}function Ji(e){Qi("time",()=>yo.__ihabTrainingTimeLogger?.(e))}function Ru(e){yo.__ihabTrainingCompletionLogger=e}function es(e){Qi("completion",()=>yo.__ihabTrainingCompletionLogger?.(e))}function $u(e){yo.__ihabCrosswordLogger=e}function Iu(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 zu(e){return e.filter(t=>t.correct===!1)}let Ou=null,Fu=null,Wu=null;function Hu(e){Ou=e}function Vu(e){Fu=e}function Gu(e){Wu=e}async function qu(e,t){try{return await Ou?.(e,t)??null}catch{return null}}async function Yu(){try{return await Fu?.()??null}catch{return null}}async function Uu(e,t){try{return await Wu?.(e,t)??null}catch{return null}}const os=globalThis;function Ku(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 Zu=ar;function Xu(e,t){return`${e}/${ar(t)}.mp3`}function Qu(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`,d=`${t}/${c}`;try{if(await ei(d)){const u=await Oo(d);if(u)return u}}catch{}if(e.generator)try{const u=await e.generator(s,d,e);if(u)return u}catch{}try{const u=`/api/tts?word=${encodeURIComponent(s)}&voice=${encodeURIComponent(a)}&speed=${encodeURIComponent(String(r))}`;return await fetch(u,{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 Ju(e){return new Date(e).toLocaleDateString("ko-KR",{timeZone:xo,year:"numeric",month:"short",day:"numeric"})}function ep(e){return new Date(e).toLocaleString("ko-KR",{timeZone:xo,year:"numeric",month:"long",day:"numeric",hour:"2-digit",minute:"2-digit"})}function tp(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 ap(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 op(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 rp(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),d=Math.floor(s/30),u=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(d,11)}):t("store.time.yearsAgo",{n:u})}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,d,u]=s.split("-"),m=r?d:String(Number(d)),h=r?u:String(Number(u));return`${c}${a}${m}${a}${h}${n?".":""}`}function np(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 ip(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 sp(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 Yw=[{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"}]}],Uw=[{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 lp(e){ss=e}function Qr(){return ss?.topicTypes??Yw}function ls(){return ss?.trainingTypes??Uw}const cp="ihab_theme",Kw="light";function cs(){try{const e=localStorage.getItem(cp);if(e==="light"||e==="dark"||e==="auto")return e}catch{}return Kw}function ds(e){try{document.documentElement.setAttribute("data-theme",e),localStorage.setItem(cp,e)}catch{}}function dp(){ds(cs())}const up="ihab_font_scale",Zw="medium",Xw=["medium","large1","large2","large3"];function us(){try{const e=localStorage.getItem(up);if(Xw.includes(e))return e}catch{}return Zw}function ps(e){try{document.documentElement.setAttribute("data-font-scale",e),localStorage.setItem(up,e)}catch{}}function pp(){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:[]},Qw={LISTEN_IN_NOISE:3,SHORT_STORY:2,LONG_STORY:1,ORDERING_SENTENCE:2};let hs=null,hp=null,Oa=null;function ms({counts:e,forceRefresh:t}={}){const a=Object.assign({},Qw,e||{}),r=Ur(),n=ka(new Date(`${r}T00:00:00+09:00`).getTime()-864e5),i=JSON.stringify(a);if(!t&&hp===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),hp=r,hs=i,Oa={today:s,yesterday:{date:n,countsKey:i,selection:c}},{today:nr,yesterday:ir}}function mp(){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 Jw(){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 Jw();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||""),d=Object.assign({},n,{training_type:i,category_0:s,category_1:c});i==="LISTEN_IN_NOISE"?Ra.push(d):i==="SHORT_STORY"?$a.push(d):i==="LONG_STORY"?Ia.push(d):i==="ORDERING_SENTENCE"&&za.push(d)}}}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 bp(){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."}],gp=[{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 e4(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,fp=null,vp=null;function t4(){const e=vo();if(e&&e.entries.length>0){const t=Ka();if(en&&fp===e&&vp===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,fp=e,vp=t,en}return[]}const ea=new Proxy([],{get(e,t){const a=t4(),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,yp=null;function eo(){const e=vo();if(xs&&yp===e)return xs;const t=new Map;for(const a of ea)a.w&&t.set(a.w,a.pron);return xs=t,yp=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 a4=0;function Tt(e){return`${e}-rt-${++a4}`}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 xp=null,Cp=null;function cr(e){return e==null?"":Array.isArray(e)?e.slice().sort().join(","):e}function _p(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!==xp||a!==Cp)&&(an.clear(),xp=t,Cp=a);const r=_p(e);return an.has(r)||an.set(r,r4(e)),an.get(r)}function o4(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 r4(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,d=e.phonemeView==="pron"?"pron":"char",u=Math.max(1,e.contrastCount??1),m=t==="cho"||t==="jung"||t==="jong",h=m&&u>=2,p=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?[o4(r),f?N=>f.has(bo(N)):null].filter(N=>N!=null):[],v=t==="random"||t===null,y=v||p,_=v||h||p;let C=ea.filter(N=>!N.w||s&&(!N.grade||!s.has(N.grade))?!1:_?!0:Array.isArray(N.p)&&N.p.length>0);g&&(C=C.filter(N=>{for(const L of g)if(hw(N.w,L))return!0;return!1})),b.length>0&&(C=C.filter(N=>{const L=d==="pron"?Ft(N.w):N.w;return b.every(R=>R(L))})),n&&(C=C.filter(N=>N.w[0]===n));let x;if(i){const N=new Set;for(const L of C)if(N.add(L.w),Array.isArray(L.p))for(const R of L.p)N.add(R);if(y)for(const L of ea)L.w&&N.add(L.w);x=lr(N)}else{const N=new Set;for(const L of C)if(N.add(L.w),Array.isArray(L.p))for(const R of L.p)N.add(R);if(y)for(const L of ea)L.w&&N.add(L.w);x=N}let k=null;if(h){const N=new Set;for(const L of ea)L.w&&N.add(L.w);k=i?lr(N):N}const w=C.filter(N=>x.has(N.w)),S=600,E=Array.from(x),A=E.length>S?ta(E,S):E,B=p&&r!=null&&(ft(r.cho)||ft(r.jung)||ft(r.jong)),W=2500,P=new Map;if(p&&!B&&u>=2){for(const N of E){const L=bo(N),R=P.get(L);R?R.push(N):P.set(L,[N])}for(const[N,L]of P)L.length>W&&P.set(N,ta(L,W))}const T=ci(),j=B?wi(r,E,T,c,d,Ft):null,M=500,H=1500,ae=e.fullCount?w:t==="random"?w.length>M?ta(w,M):w:w.length>H?ta(w,H):w,X=Ka(),oe=[];for(const N of ae){let L;const R=Ft(N.w);if(h)L=vw(N.w,t,u,k,24).filter(z=>Ft(z)!==R);else if(p)B?L=(j.get(N.w)??[]).filter(z=>Ft(z)!==R):u<=1?L=Pr(N.w,X,{okSet:x,pronOf:Ft,decompOf:T,sameStructureOnly:!1}):L=(P.get(bo(N.w))??[]).filter(z=>{if(z===N.w||Ft(z)===R)return!1;const G=yw(N.w,z);return u>=5?G>=5:G===u});else if(v)L=A.filter(z=>z!==N.w&&z.length===N.w.length&&Ft(z)!==R);else{const z=t;L=Pr(N.w,X,{kind:z,okSet:x,pronOf:Ft,decompOf:T,sameStructureOnly:!1}),L.length===0&&(L=(A.length>30?ta(A,30):A).filter(G=>G!==N.w&&di(N.w,G)===t&&Ft(G)!==R))}if(c&&L.length>0&&(m||p&&!B)){const z=T(Ft(N.w));L=L.filter(G=>!Ko(z,T(Ft(G))))}L.length!==0&&oe.push({word:N,usable:L})}return oe}async function wp(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 d=Cs(c.usable,n);if(d.length<n)continue;const u=He([c.word.w,...d]);s.push({id:Tt(e+"-item"),index:s.length+1,word:c.word.w,syllables:c.word.s,choices:u,answerIndex:u.indexOf(c.word.w)})}return s}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)return[];const i=[],s=He([...n]);for(const c of s){if(i.length>=a)break;const d=c.word.w,u=[...c.word.pron||d],m=tn(u);if(!m)continue;const h=n.filter(f=>f.word.w!==d&&f.word.s===c.word.s&&!(f.word.pron||f.word.w).includes(m)&&f.word.pron!==c.word.pron);if(h.length<r)continue;const p=Cs(h.map(f=>f.word.w),r);if(p.length<r)continue;const g=He([d,...p]);i.push({id:Tt("HPI-item"),index:i.length+1,targetSyllable:m,word:d,choices:g,answerIndex:g.indexOf(d)})}return i}async function i4(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 d=tn(i.usable);c=Math.random()<.5?[i.word.w,d]:[d,i.word.w]}return{id:Tt("SOD-item"),index:n+1,word:i.word.w,pair:c,same:s}}).filter(r=>!!r)}async function s4(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(p=>p.word.w),s=new Map(n.map(p=>[p.word.w,p.word.pron])),c=p=>(s.get(p)||p)[0]??"",d={};for(const p of n){const g=c(p.word.w);g&&(d[g]||(d[g]=[]),d[g].push(p.word.w))}const u=Object.entries(d).filter(([,p])=>p.length>=2).map(([p])=>p);if(u.length===0)return[];const m=[],h=He([...u]);for(let p=0;m.length<a&&p<a*4;p++){const g=h[p%h.length],f=d[g];if(f.length<2)continue;const b=He([...f]),v=b[0],y=b[1];if(!v||!y||v===y||(s.get(v)||v)===(s.get(y)||y))continue;const _=s.get(y)||y,C=i.filter(w=>c(w)!==g&&w!==v&&w!==y&&w.length===y.length&&(s.get(w)||w)!==_);if(C.length<r)continue;const x=Cs(C,r);if(x.length<r)continue;const k=He([y,...x]);m.push({id:Tt("SWS-item"),index:m.length+1,sourceWord:v,targetSyllable:g,word:y,choices:k,answerIndex:k.indexOf(y)})}return m}function kp(e,t,a){return ta(e,t).map((r,n)=>{const i=tn(r.usable)??"",s=[...r.word.w],c=[...i],d=s.findIndex((m,h)=>m!==c[h]),u=He(r.usable.filter(m=>m&&m!==i)).slice(0,2);return{id:Tt(a),index:n+1,word:r.word.w,original:r.word.w,changed:i,changedFrom:d>=0?s[d]:"",changedTo:d>=0?c[d]:"",distractors:u}})}async function Sp(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,d=new Set(c.map(g=>g.w)),u=Ui(d),m=t.phonemeView??"char",h=t.composition??null,p=[];for(const g of He(c)){if(p.length>=r)break;const f=Ki(g.w,h,n,m,u,null,null);if(!f)continue;const b=f.distractors[0],v=[...g.w],y=[...b],_=v.findIndex((C,x)=>C!==y[x]);p.push({id:Tt(a),index:p.length+1,word:g.w,original:g.w,changed:b,changedFrom:_>=0?v[_]:"",changedTo:_>=0?y[_]:"",distractors:f.distractors.slice(1)})}return p}async function l4(e){return Sp(2,e,"CS2-item")}async function c4(e){return Sp(3,e,"CS3-item")}async function d4(e){const t=(await Wt({...e,difficulty:"count",contrastCount:1})).filter(a=>a.word.s===1&&a.usable.length>=1);return kp(t,e.count??10,"CP1-item")}async function u4(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 kp(a,e.count??10,"CP2-item")}async function p4(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 h4(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 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 d=Wi(c.word.w,e.composition??null,r,i,n);if(!d)continue;const[u,...m]=d.distractors,h=[...c.word.w],p=h[0]===u?h[1]:h[0];s.push({id:Tt("D2-item"),index:s.length+1,original:c.word.w,word:c.word.w,dropped:p,missingResult:u,distractors:m})}return s}async function b4(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 d=Hi(c.word.w,e.composition??null,r,i,n);if(!d)continue;const[u,...m]=d.distractors,h=[...c.word.w];let p="";for(let g=0;g<h.length;g++)if(h.filter((f,b)=>b!==g).join("")===u){p=h[g];break}s.push({id:Tt("D3-item"),index:s.length+1,original:c.word.w,word:c.word.w,dropped:p,missingResult:u,distractors:m})}return s}async function g4(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 d=Vi(c.word.w,e.composition??null,r,i,n);if(!d)continue;const[u,...m]=d.distractors,h=c.word.w,p=h.startsWith(u)?h.slice(u.length):h.endsWith(u)?h.slice(0,h.length-u.length):"";s.push({id:Tt("DPC-item"),index:s.length+1,original:h,word:h,dropped:p,missingResult:u,distractors:m})}return s}async function f4(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 v4(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 y4(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 x4(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,...d]=s.distractors;n.push({id:Tt("DFC-item"),index:n.length+1,original:i.w,word:i.w,result:c,distractors:d})}return n}function C4(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[d,...u]=s.distractors;n.push({id:Tt("RCP-item"),index:n.length+1,base:i.w,word:i.w,missingConsonant:Ze[c.cho],remaining:d,distractors:u})}return n}const rn=new Map;let Ap=null,Tp=null;async function Bp(e,t={}){const a=vo(),r=Ka();(a!==Ap||r!==Tp)&&(rn.clear(),Ap=a,Tp=r);const n=`${e}:${_p(t)}`;if(rn.has(n))return rn.get(n);const i=await w4(e,t);return rn.set(n,i),i}const _4={SAME_SOUND_PICK:e=>wp("SSP",e),HEAR_AND_PICK_SAME:e=>wp("HPS",e),HEAR_AND_PICK_INCLUDED:e=>n4(e),SAME_OR_DIFF:e=>i4(e),STARTS_WITH_SAME_SOUND:e=>s4(e),LISTEN_AND_REMEMBER_ORDER:e=>f4(e),MERGE_2_SYLLABLES:e=>p4(e),MERGE_3_SYLLABLES:e=>h4(e),MERGE_2_PHONEMES:e=>v4(e),MERGE_3_PHONEMES:e=>y4(e),DROP_1_FROM_2SYLL:e=>m4(e),DROP_1_FROM_3SYLL:e=>b4(e),DROP_PART_FROM_COMPOUND:e=>g4(e),DROP_FINAL_CONSONANT_FROM_1SYLL:e=>x4(e),REMOVE_CONSONANT_AND_IDENTIFY_PHONEME:e=>C4(e),CHANGE_1_SYLL_IN_2SYLL:e=>l4(e),CHANGE_1_SYLL_IN_3SYLL:e=>c4(e),CHANGE_1_PHONEME_IN_1SYLL:e=>d4(e),CHANGE_1_PHONEME_IN_2SYLL:e=>u4(e)};async function w4(e,t={}){const a=_4[e];return a?await a(t):[]}async function k4(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];Bp(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 S4(e){return(await Wt({...e,fullCount:!0})).length}async function A4(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 d of c){const u=Ee(d);if(u&&(Ze[u.cho]!=="\u3147"&&r.add(Ze[u.cho]),n.add(dt[u.jung]),u.jong>0)){i.add(gt[u.jong]);const m=mo[u.jong];m&&m.forEach(h=>i.add(h))}}}return{cho:r,jung:n,jong:i,syllable:s}}const Np={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}},Dp={none:0,free:1,personal_standard:3,mgr_free:4,lite_word:5,lite_sentence:5,lite:6,standard:7,pro:8,enterprise:9},Ep={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 jp(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 Lp=5,Mp=5;function Pp({rank:e,voteCount:t,quota:a=5}){return e<a&&t>0}const Rp={selected:"ALREADY_SELECTED",added:"ALREADY_ADDED",rejected:"ALREADY_REJECTED"},nn="0.53.0";var T4=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:Np,PLAN_LIMITS:Ep,SHORT_STORIES:$a,TIER_RANK:Dp,TOPIC_TYPES:gp,TRAINING_TYPES:Jr,TRAINING_TYPE_I18N_KEY:ys,WORD_SUGGESTION_ACCOUNT_LIMIT:Mp,WORD_SUGGESTION_EXISTING_ERROR:Rp,WORD_SUGGESTION_WEEKLY_QUOTA:Lp,applyFontScale:ps,applyTheme:ds,buildChangeWholeSyllableProblem:Ki,buildDropCompoundProblem:Vi,buildDropContrast3Problem:Hi,buildDropContrastProblem:Wi,buildDropFinalConsonantProblem:Gi,buildMultiPartPosContrast:wi,buildPairIndex:nu,buildRemoveConsonantProblem:Yi,buildSyllableMaskIndex:Ui,bulkSetImageExistence:Ud,cardQuestionTitle:Au,checkImageExists:Yo,classifyPairDifficulty:di,clearAudioExistsCache:Fd,clearImageExistenceCache:li,clearPairIndexCache:xi,composeSyllable:ua,computeDailySelection:ms,configureImageResolver:qd,configureNoiseSettingsStore:Ku,configurePronunciationResolver:Hd,configureStorage:Jn,configureTTS:Od,configureTrainingCategories:lp,copyText:is,createDecompCache:ci,createTTSUrlResolver:Qu,dateToDb:sp,downloadCsvText:ju,downloadSound:Er,ensureTrainingDataLoaded:vs,escapeCsvField:Eu,fileExists:ei,filterContrastCandidates:_i,finalToPhoneme:Vr,firstChoseongOf:ui,formatCount:rr,formatDateKo:Ju,formatDateLocale:tp,formatDateLongKo:ep,formatDateLongLocale:ap,formatDatetimeKo:op,formatPhone:np,formatRelativeTime:Kr,formatTimeHM:Xr,formatYmd:Zr,getAssetBaseUrl:Xn,getDailySelection:mp,getElementAnalyser:Vo,getErrorMessage:Yr,getImageExistenceStats:Mr,getImageExistsCached:si,getImageResolver:Ma,getNoiseBaseUrl:ti,getPairIndex:Ka,getPlanTier:jp,getPronunciationResolver:ri,getSavedFontScale:us,getSavedTheme:cs,getSignedOrPublicUrl:Oo,getTTSFallbackUrlResolver:oi,getTTSUrlResolver:Fo,getTodayKst:Ur,getTopicTypes:Qr,getTrainingPools:bs,getTrainingTypes:ls,getWordPool:vo,hasQuestionWordConstraint:yu,hasSel:ft,hasStructureContrast:Ko,initFontScale:pp,initTheme:dp,isAllChoseong:hi,isManualOnlyType:Cu,isNetworkErrorMessage:Xi,isSyllablePattern:gi,isThisWeekPick:Pp,isTrainingDataLoaded:bp,isValidQuestionWord:xu,itemCorrectness:ts,jamoToNamesForSpeech:Tu,loadGameLeaderboard:Uu,loadMyGameRanks:Yu,loadNoiseSettings:rs,loadTrainingData:fs,logCrossword:Iu,logTrainingCompletion:es,logTrainingTime:Ji,matchSyllables:Qa,matchesChoseongSearch:Kd,matchesSyllablePattern:fi,matchesWordQuery:ho,mergeQuestionText:Oi,minimalPairDistractors:Pr,normalizeDate:ip,officialSoundPath:Xu,parseSortValue:Du,parseSyllable:Ee,patternToComposition:tu,phonemePartsOf:Su,pickEuRo:$i,pickEulReul:Li,pickEunNeun:Pi,pickIga:Ei,pickWaGwa:Ri,prewarmImageCache:Yd,primarySelPart:tr,readLevel:ni,reorderArray:Ii,resolveAssetUrl:Io,resolveSoundPath:Dr,resumeAudioMeter:Ho,sample:Qt,saveNoiseSettings:ns,searchAndRankWords:ou,setAssetBaseUrl:Id,setCrosswordLogger:$u,setGameLeaderboardLoader:Gu,setGameRanksLoader:Vu,setGameScoreSubmitter:Hu,setTrainingCompletionLogger:Ru,setTrainingTimeLogger:Pu,setWordPool:Mu,shuffle:He,sortToValue:Nu,soundOf:qr,speak:Pd,stopSpeaking:Rd,submitGameScore:qu,syllMatchesComp:Pa,syllableContrasts:Ja,syllableLength:bo,syllablePron:Fi,toBase64UrlSafe:Zu,toChoseong:pi,toItemResults:as,toKstHm:rp,toKstYmd:ka,toStandardPronunciation:bu,toStorageName:ar,toUserErrorMessage:Bu,validateSyllableSearchInput:au,withEuRo:vu,withEulReul:Mi,withEunNeun:gu,withIga:ji,withWaGwa:fu,wordContainsChoseong:Xd,wordContainsJongseong:Jd,wordContainsJungseong:Qd,wordHasNoCoda:mi,wordHasSyllableMatching:bi,wrongItems:zu});function B4(e){return typeof window>"u"?"":iw.sanitize(e,{USE_PROFILES:{svg:!0,svgFilters:!0},FORBID_TAGS:["script","use"],FORBID_ATTR:["xlink:href","href"]})}function N4(e){const[t,a]=l.useState(null),[r,n]=l.useState(null),[i,s]=l.useState(null),[c,d]=l.useState(null);return l.useEffect(()=>{if(!e||typeof e!="string"||!e.endsWith(".svg")){a(null),n(null),s(null);return}const u=e.split("/").pop();let m=e;u&&(e.startsWith("/")?m=Io(e):/^(Logo|Symbol)/i.test(u)?m=Io(`logo/${u}`):(/^https?:\/\//i.test(e)||e.startsWith("data:"),m=e)),a(m)},[e]),l.useEffect(()=>{if(!t)return;let u=!1;async function m(){try{let h=await fetch(t);h.ok||(h=await fetch(t));const p=h.headers.get("content-type")||"";if(u)return;if(p.includes("svg")){n("mask");return}if(p.startsWith("image/")){n("img");return}const g=await fetch(t);if(!g.ok)throw new Error("not ok");const f=await g.text();if(u)return;if(/^\s*<svg[\s>]/i.test(f)){const b=B4(f);if(!b){n("none");return}s(b),n("inline");return}n("none")}catch{u||n("none")}}return m(),()=>{u=!0}},[t]),l.useEffect(()=>{let u=!1,m=null;return r==="mask"&&t&&fetch(t).then(h=>{if(!h.ok)throw new Error("fetch failed");return h.blob()}).then(h=>{u||(m=URL.createObjectURL(h),d(m))}).catch(()=>{u||n("img")}),()=>{u=!0,m&&URL.revokeObjectURL(m),d(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:d}=e||{},u=r??"iconRenderer-icon",m=n??"iconRenderer-icon-image",h=i??"iconRenderer-icon-mask",p=s??"iconRenderer-icon-svg",g=typeof t=="string"?t:null,f=S_(g),{iconToUse:b,mode:v,svgText:y,blobUrl:_}=N4(g),C=(S,E={})=>o.jsx("span",{className:u,style:c,...E,children:S}),x=(S,E={})=>o.jsx("img",{src:S,alt:typeof a=="string"?a:a?String(a):"",className:m,...E});if(!t)return null;if(typeof t!="string")return C(t);if(t==="none")return C(o.jsx("span",{className:p,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 C(l.createElement(f,{className:p,size:typeof d=="number"?d:20}),{"aria-hidden":"true"})}catch{}if(b&&b.endsWith(".svg")){if(v==="mask"){const S={"--icon-url":_?`url(${_})`:`url(${b})`};return C(o.jsx("span",{className:h,style:S}),{"aria-hidden":"true"})}return v==="img"?C(x(b,{onError:S=>{S.currentTarget.onerror=null,S.currentTarget.style.display="none"}}),{"aria-hidden":"true"}):v==="inline"?C(o.jsx("span",{className:p,dangerouslySetInnerHTML:y?{__html:y}:void 0}),{"aria-hidden":"true"}):C(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:S=>{S.currentTarget.onerror=null,S.currentTarget.style.display="none"}});const k=typeof d=="number"?d:20,w=`<svg width="${k}" height="${k}" 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 C(o.jsx("span",{className:p,dangerouslySetInnerHTML:{__html:w}}),{"aria-hidden":"true"})}function $p({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 D4=".ihabdevteam-core-scope .error-state__icon{color:var(--color-error)}";J(D4);function Ip({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 E4=".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(E4);function zp({icon:e,title:t,description:a,cta:r,tone:n="main",disabled:i=!1,onClick:s,className:c=""}){const d=()=>{i||s?.()};return o.jsx("section",{role:"button",tabIndex:i?-1:0,"aria-disabled":i||void 0,"aria-label":t,onClick:d,onKeyDown:u=>{(u.key==="Enter"||u.key===" ")&&(u.preventDefault(),d())},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 Op({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 j4=".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(j4);function Fp({title:e="",lines:t=[],notices:a=null,children:r,variant:n="default",dismissible:i=!1,className:s=""}){const{t:c}=ge.useTranslation(),[d,u]=l.useState(!1),m=l.useCallback(()=>u(!0),[]);if(d)return null;const h=`notice-box notice-box--${n} body-2 ${s}`.trim();if(a&&Array.isArray(a)&&a.length)return o.jsx("div",{className:h,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,v)=>o.jsx("span",{className:"notice-box__line body-3",children:b},v))}):g.children??null})]},f))});const p=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:h,role:"note",children:[p,i&&o.jsx("button",{className:"notice-box__dismiss",onClick:m,"aria-label":c("common.close","\uB2EB\uAE30"),children:"\xD7"})]})}var L4=".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(L4);var M4=".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--inline{position:static}.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(M4);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(d=>!d.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:d="dialog",ariaLabel:u="",children:m,backdrop:h=!1,isMobilePopup:p=!1,useBorder:g=!0,header:f}=e||{},b=l.useRef(null),[v,y]=l.useState({position:"fixed",left:0,top:-9999}),[_,C]=l.useState(!1),[x,k]=l.useState("bottom"),[w,S]=l.useState(!1),[E,A]=l.useState(!1),B=!t&&!a,W=l.useCallback((M=!1)=>{if(E&&p)return;const H=a?a.getBoundingClientRect():t;if(!H||!b.current)return;const ae=b.current,{offsetWidth:X,offsetHeight:oe}=ae,N=window.innerWidth,L=window.innerHeight,R=N-H.right,z=H.left,G=H.top,K=L-H.bottom;let O=0,q=0,F="top";if(G>=oe+r)F="top",q=H.top-r-oe,O=H.left+H.width/2-X/2;else if(K>=oe+r)F="bottom",q=H.bottom+r,O=H.left+H.width/2-X/2;else if(R>=X+r)F="right",O=H.right+r,q=H.top+H.height/2-oe/2;else if(z>=X+r)F="left",O=H.left-r-X,q=H.top+H.height/2-oe/2;else{const me=Math.max(G,K,R,z);me===G?(F="top",q=H.top-r-oe,O=H.left+H.width/2-X/2):me===K?(F="bottom",q=H.bottom+r,O=H.left+H.width/2-X/2):me===R?(F="right",O=H.right+r,q=H.top+H.height/2-oe/2):(F="left",O=H.left-r-X,q=H.top+H.height/2-oe/2)}const se=Number(n)||8;O=Math.min(Math.max(O,se),N-X-se),q=Math.min(Math.max(q,se),L-oe-se);const Q=Math.round(O),re=Math.round(q);M&&b.current?(b.current.style.left=`${Q}px`,b.current.style.top=`${re}px`,b.current.dataset.placement=F):(k(F||x),y({position:"fixed",left:Q,top:re}),S(!0))},[E,p,a,t,r,n,x]);l.useLayoutEffect(()=>{if(B)return;if(E&&p){y({position:"fixed",left:"50%",top:"50%",transform:"translate(-50%, -50%)",width:"calc(100% - 40px)",maxWidth:"calc(100% - 40px)"}),S(!0);return}W();const M=requestAnimationFrame(()=>W());return()=>cancelAnimationFrame(M)},[t,a,r,m,n,B,E,p,W]),l.useEffect(()=>{if(B||E&&p||!b.current||typeof ResizeObserver>"u")return;const M=new ResizeObserver(()=>{t&&W()});return M.observe(b.current),()=>M.disconnect()},[t,m,n,B,E,p,W]),l.useEffect(()=>{if(B||E&&p)return;const M=()=>W(!0);return window.addEventListener("resize",M),document.addEventListener("scroll",M,{passive:!0,capture:!0}),()=>{window.removeEventListener("resize",M),document.removeEventListener("scroll",M,{capture:!0})}},[t,r,m,n,B,E,p,W]),l.useEffect(()=>{if(typeof window>"u"||!window.matchMedia)return;const M=window.matchMedia("(max-width: 768px)"),H=()=>A(!!M.matches);H();try{M.addEventListener?M.addEventListener("change",H):M.addListener(H)}catch{try{M.addListener(H)}catch{}}return()=>{try{M.removeEventListener?M.removeEventListener("change",H):M.removeListener(H)}catch{}}},[]);const P=l.useRef(!1),T=l.useCallback((M=!1)=>{if(!(_||P.current)){if(P.current=!0,M){C(!0);try{i&&i()}catch{}return}C(!0),setTimeout(()=>{i&&i()},200)}},[_,i,C]);l.useEffect(()=>{const M=X=>{const oe=b.current;if(!oe)return;const N=X.target;if(N&&!oe.contains(N)){try{if(N.closest&&N.closest("[data-tooltip-ignore]"))return}catch{}s&&T(!0)}},H=X=>{const oe=b.current;if(!oe)return;const N=X.target;if(N&&!oe.contains(N)){try{if(N.closest&&N.closest("[data-tooltip-ignore]"))return}catch{}s&&T(!0)}},ae=X=>{if(X.key==="Escape"){X.stopPropagation(),T();return}if(X.key==="Tab"){const oe=b.current;if(!oe)return;const N=oe.querySelectorAll(dr);if(!N||N.length===0)return;const L=N[0],R=N[N.length-1],z=document.activeElement;X.shiftKey?z===L&&(X.preventDefault(),R.focus()):z===R&&(X.preventDefault(),L.focus())}};return document.addEventListener("pointerdown",M,!0),document.addEventListener("click",H,!0),document.addEventListener("keydown",ae),()=>{document.removeEventListener("pointerdown",M,!0),document.removeEventListener("click",H,!0),document.removeEventListener("keydown",ae)}},[i,s,T]),l.useEffect(()=>{const M=()=>{T(!0)};return typeof document<"u"&&document.addEventListener("speechear-close-tooltips",M),()=>{typeof document<"u"&&document.removeEventListener("speechear-close-tooltips",M)}},[T]);const j=o.jsxs("div",{ref:b,className:`tooltip-content ${B?"tooltip-content--inline":""} ${g?"tooltip-content--bordered":""} ${_?"is-closing":""} ${c} ${E&&p?"is-mobile":""}`,role:d,"aria-label":u||void 0,style:B?{}:{...v,visibility:w?"visible":"hidden"},tabIndex:-1,"data-placement":x,"data-left":B?"":v.left,"data-top":B?"":v.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}),m]});if(B||typeof document>"u")return j;if(h||E&&p){const M=o.jsxs("div",{className:"tooltip-portal",children:[o.jsx("div",{className:"tooltip-backdrop",onClick:()=>{s&&T(!0)}}),j]});return qt.createPortal(M,document.body)}return qt.createPortal(j,document.body)}var P4='.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(P4);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 R4=".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(R4);function to(e){const{anchorRect:t,title:a,items:r,activeIndex:n=-1,showIndex:i=!0,onClose:s,offset:c=12}=e||{},d=Array.isArray(r)?r:r?[r]:[];return!d.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:d.map((u,m)=>o.jsxs("li",{className:`tooltip-description__item body-3${m===n?" tooltip-description__item--active":""}`,children:[i&&d.length>1&&o.jsxs("span",{className:"tooltip-description__index button-1",children:[m+1,"."]}),o.jsx("span",{children:u})]},m))})]})})}function ie(e){const{size:t=48,type:a,htmlType:r,href:n,target:i,rel:s,icon:c,rightIcon:d,label:u,count:m,subLabel:h,children:p,ariaLabel:g,variant:f="default",align:b="center",selected:v,toggleable:y=!1,disabled:_=!1,useLabel:C=!0,useBorder:x=!0,useBG:k=!0,useDisabledCovered:w=!1,useDisabledInvisible:S=!1,width:E,minWidth:A,onClick:B,onDisabledClick:W,showTooltipInfo:P=!1,tooltipInfoText:T=null,tooltipDescription:j=null,iconSize:M="medium",iconColor:H,shape:ae="rounded",color:X,className:oe,...N}=e,L=typeof t=="string"&&isNaN(Number(t))?t.toLowerCase():String(Number(t)||48),R=L.match(/^\d+$/)?`button${L}`:`button-${L}`,z=Number(t),G=!isNaN(z)&&z<40?"button-2":"button-1",K=u??p,O=_||!!N.disabled,q=O?w?"disabled-covered":S?"disabled-invisibled":"disabled":f,F=q?`button--variant-${q}`:"",se=b?`button--align-${b}`:"",Q=ae?`button--shape-${ae}`:"",re=typeof H=="string"&&H.startsWith("--")?`var(${H})`:H,me={...E?{width:typeof E=="number"?`${E}px`:E}:{},...A?{minWidth:typeof A=="number"?`${A}px`:A}:{},...x?{}:{"--button-border":O?"0":"1px solid transparent"},...re?{"--button-icon-color":re}:{},...X?{"--color-main":X}:{}},ce=C===!1?"":K,$=Array.isArray(ce)?ce.length>0:!!ce,ee=!!d,ue=a??($||c||ee?"bar":"dot"),ke=`${R}--${ue}`,Ce=l.useRef(null),I=l.useRef(O),[Z,te]=l.useState(!!v),[fe,De]=l.useState(!1),[ze,Re]=l.useState(null),Me=l.useCallback(()=>De(!1),[]);l.useEffect(()=>{(P||j)&&O&&fe&&(De(!1),Re(null))},[O,P,j,fe]),l.useEffect(()=>{typeof v=="boolean"&&te(v)},[v]),l.useEffect(()=>{if(I.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)}I.current=O},[O]);const Ye=typeof v=="boolean"?!!v:Z,Ne=y||typeof v=="boolean"?Ye?"true":"false":void 0,Ve=xe("button",R,ke,F,se,Q,Ye?"is-selected":null,k?null:"button--no-bg",oe),Fe=`button__icon button__icon--${M}`,be=Array.isArray(h)?h:h!==void 0?[h]:[],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=h!==void 0;return o.jsxs("span",{className:`button__label-text${Oe?" button__label-text--has-sub":""}`,children:[ce,m!=null&&o.jsx("span",{className:"button__count",children:m}),Oe&&o.jsx("span",{className:"button__sub-label-text caption-1",children:h})]})},We=Oe=>{O||(typeof N.onMouseLeave=="function"&&N.onMouseLeave(Oe),typeof v!="boolean"&&te(!1),Oe.currentTarget.blur())},Le=Oe=>{if(O){W?.(Oe);return}typeof v!="boolean"&&y&&te(Qe=>!Qe),B?.(Oe)},Ge=l.useCallback(()=>{!O&&(P||j)&&(De(!0),Re(Ce.current?.getBoundingClientRect()??null))},[O,P,j]),vt=l.useCallback(()=>{(P||j)&&(De(!1),Re(null))},[P,j]),Ue={...N};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 K=="string"?K:null)??void 0,ut=typeof g=="string"?g:typeof K=="string"?K: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=()=>ue==="dot"?o.jsxs(o.Fragment,{children:[Pe(c),$&&o.jsx("span",{className:`button__label ${G}`,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)}),$&&o.jsx("span",{className:`button__label ${G}`,children:Ke()})]}),ee&&o.jsx("span",{className:"button__right",children:Pe(d)})]}):o.jsxs(o.Fragment,{children:[c&&o.jsx("span",{className:"button__left",children:Pe(c,g??K)}),$&&o.jsx("span",{className:`button__label ${G}`,children:Ke()}),ee&&o.jsx("span",{className:"button__right",children:Pe(d)})]}),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&&!W},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 N.onPointerEnter=="function"&&N.onPointerEnter(Oe)},onPointerLeave:Oe=>{vt(),!O&&typeof N.onPointerLeave=="function"&&N.onPointerLeave(Oe)},onFocus:Oe=>{Ge(),!O&&typeof N.onFocus=="function"&&N.onFocus(Oe)},onBlur:Oe=>{We(Oe),vt(),!O&&typeof N.onBlur=="function"&&N.onBlur(Oe)},children:rt()}),fe&&j?o.jsx(to,{anchorRect:ze,title:j.title,items:j.items,onClose:Me}):fe&&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 $4=".ihabdevteam-core-scope .promo-banner-bg{border-radius:inherit;inset:0;pointer-events:none;position:absolute}";J($4);var I4=".ihabdevteam-core-scope .promo-banner-bg-main{background:linear-gradient(45deg,var(--color-main),var(--color-sub))}";J(I4);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 z4=".ihabdevteam-core-scope .promo-banner-bg-soft{background:var(--color-main-a10)}";J(z4);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 O4=".ihabdevteam-core-scope .promo-banner-bg-sub{background:var(--color-sub)}";J(O4);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 F4=".ihabdevteam-core-scope .promo-banner-bg-deep{background:linear-gradient(135deg,var(--color-darkMain),var(--color-darkSub))}";J(F4);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 W4=".ihabdevteam-core-scope .promo-banner-bg-soft-sub{background:var(--color-sub-a10)}";J(W4);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 H4=".ihabdevteam-core-scope .promo-banner-bg-warm{background:var(--color-warn)}";J(H4);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 V4=".ihabdevteam-core-scope .promo-banner-bg-dark{background:var(--color-lightBlack)}";J(V4);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 G4=".ihabdevteam-core-scope .promo-banner-bg-radial{background:radial-gradient(circle at 15% 20%,var(--color-main) 0,var(--color-sub) 100%)}";J(G4);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 q4=".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(q4);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 Y4=".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(Y4);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 U4=".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(U4);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 K4=".ihabdevteam-core-scope .promo-banner-bg-success{background:var(--color-success)}";J(K4);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 Z4=".ihabdevteam-core-scope .promo-banner-bg-naver{background:linear-gradient(90deg,#03c75a 0,var(--color-main) 100%)}";J(Z4);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 X4=".ihabdevteam-core-scope .promo-banner-bg-instagram{background:linear-gradient(45deg,#f9ce34,#ee2a7b 50%,#6228d7)}";J(X4);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 Wp=[{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=v=>Math.max(a,Math.min(r,Number(v))),[c,d]=l.useState(()=>{try{const v=localStorage.getItem(e),y=v?Number(v):1;return Number.isFinite(y)?y:1}catch{return 1}});l.useEffect(()=>{try{localStorage.setItem(e,String(c))}catch{}},[e,c]);const u=v=>{d(typeof v=="function"?y=>s(v(y)):s(v))},m=()=>u(v=>+(v+n).toFixed(6)),h=()=>u(v=>+(v-n).toFixed(6)),p=c<r-Number.EPSILON,g=c>a+Number.EPSILON,f=Math.round(t*c),b=Math.round(f*i);return{scale:c,setScale:u,increase:m,decrease:h,canIncrease:p,canDecrease:g,fontSize:f,lineHeight:b}}const ln=l.createContext(null);function Q4(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=d=>n(d.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"&&Q4(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 ",Hp=(()=>{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=Hp?`${e}${tl}${Hp}`:e,()=>{document.title=a}},[e,t])}function Vp(){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 Gp(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 d=l.useCallback(()=>{a({current:"",next:"",confirm:""}),n(null)},[]),u=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 m=e?await e(t.current,t.next):null;if(s(!1),m){n({type:"error",text:m});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:u,reset:d}}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 qp(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 Yp(e){const{t}=ge.useTranslation(),[a,r]=l.useState({}),[n,i]=l.useState(null),[s,c]=l.useState(null),[d,u]=l.useState(null),m=l.useCallback(()=>{const p={};rl.forEach(g=>{p[g.id]=nl([...g.keys])}),r(p),typeof navigator<"u"&&navigator.storage?.estimate&&navigator.storage.estimate().then(g=>{u({usage:g.usage??0,quota:g.quota??0})}).catch(()=>{})},[]);l.useEffect(()=>{m()},[m]);const h=l.useCallback(async p=>{i(p);try{p==="wordData"?(localStorage.removeItem("word_data_cache"),localStorage.removeItem("word_data_version")):p==="pairIndex"?xi():p==="imageCache"&&li(),m(),e?.(t("settings.cache.cleared","\uCE90\uC2DC\uAC00 \uC0AD\uC81C\uB418\uC5C8\uC2B5\uB2C8\uB2E4."))}finally{i(null)}},[m,e,t]);return{cacheSizes:a,clearingId:n,confirmCacheId:s,setConfirmCacheId:c,storageEstimate:d,refreshCacheSizes:m,handleClearCache:h}}function Up(e){const[t,a]=l.useState(null),[r,n]=l.useState(null),i=l.useCallback(()=>{const s=Ka();if(s){const d=Object.values(s),u=d.filter(m=>m.cho.length+m.jung.length+m.jong.length>0).length;a({matched:u,total:d.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 Kp(e,t=[]){const[a,r]=l.useState(t),[n,i]=l.useState(null),[s,c]=l.useState(!1),[d,u]=l.useState(e),m=l.useRef(s);l.useEffect(()=>{m.current=s});const h=l.useRef(null);l.useEffect(()=>{if(m.current)return;const y=h.current;y!==null&&y.length===t.length&&y.every((_,C)=>_===t[C])||(h.current=t,r(t))},[t]);const p=l.useCallback(y=>{i(y),c(!1),u({...y})},[]),g=l.useCallback(()=>c(!0),[]),f=l.useCallback(()=>c(!1),[]),b=l.useCallback((y,_)=>{r(y),i(_),c(!1)},[]),v=l.useCallback(y=>{r(_=>_.filter(C=>C!==y)),i(null)},[]);return{list:a,setList:r,selected:n,setSelected:i,isEditing:s,setIsEditing:c,editForm:d,setEditForm:u,openDetail:p,startEditing:g,cancelEditing:f,commitEdit:b,remove:v}}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")}},J4={year:"",month:"",day:"",hour:"09",minute:"00",memo:""};function Zp(e=[]){const{list:t,setList:a,selected:r,setSelected:n,isEditing:i,setIsEditing:s,editForm:c,setEditForm:d,openDetail:u,commitEdit:m}=Kp(J4,e),{year:h,month:p,day:g}=_o(),[f,b]=l.useState({year:h,month:p,day:g,hour:"09",minute:"00",memo:""});return{visitHistory:t,visitForm:f,setVisitForm:b,setVisit:v=>y=>b(_=>({..._,[v]:y})),selectedVisit:r,setSelectedVisit:n,isEditingVisit:i,setIsEditingVisit:s,editVisitForm:c,setEditVisitForm:d,openVisitDetail:u,handleVisitSave:v=>{a(x=>[f,...x]);const{year:y,month:_,day:C}=_o();b({year:y,month:_,day:C,hour:"09",minute:"00",memo:""}),v?.()},handleVisitEditSave:()=>{m(v=>v.map(y=>y===r?c:y),c)},addVisit:v=>{a(y=>[v,...y])},removeVisit:v=>{a(y=>y.filter(_=>_!==v))},revertVisitEdit:(v,y)=>{a(_=>_.map(C=>C===y?v:C)),n(_=>_===y?v:_)}}}const Xp=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=Xp(t),n=Xp(a);return r<n?-1:r>n?1:0}),e5={year:"",month:"",day:"",hour:"09",minute:"00",memo:""};function Qp(e,t=[]){const a=l.useMemo(()=>cn(t),[t]),{list:r,setList:n,selected:i,setSelected:s,isEditing:c,setIsEditing:d,editForm:u,setEditForm:m,openDetail:h,commitEdit:p,remove:g}=Kp(e5,a),[f,b]=l.useState([]),{year:v,month:y,day:_}=_o(),[C,x]=l.useState({year:v,month:y,day:_,hour:"09",minute:"00",memo:""}),k=j=>M=>x(H=>({...H,[j]:M})),w=j=>{n(X=>cn([...X,C]));const{year:M,month:H,day:ae}=_o();x({year:M,month:H,day:ae,hour:"09",minute:"00",memo:""}),j?.()},S=()=>{p(j=>cn(j.map(M=>M===i?u:M)),u)},E=l.useCallback(j=>{g(j)},[g]),A=l.useCallback(j=>{e({year:j.year,month:j.month,day:j.day,hour:j.hour,minute:j.minute,memo:j.memo}),g(j)},[e,g]),B=l.useCallback(j=>{n(M=>M.filter(H=>H!==j)),b(M=>[j,...M]),s(null)},[n,s]),W=l.useCallback(j=>{n(M=>cn([...M,j]))},[n]),P=l.useCallback(j=>{n(M=>M.filter(H=>H!==j))},[n]),T=l.useCallback((j,M)=>{n(H=>H.map(ae=>ae===M?j:ae)),s(H=>H===M?j:H)},[n,s]);return{scheduleList:r,noShowList:f,addSchedule:W,removeSchedule:P,revertScheduleEdit:T,scheduleForm:C,setScheduleForm:x,setSchedule:k,selectedSchedule:i,setSelectedSchedule:s,isEditingSchedule:c,setIsEditingSchedule:d,editScheduleForm:u,setEditScheduleForm:m,openScheduleDetail:h,handleScheduleSave:w,handleScheduleEditSave:S,handleScheduleDelete:E,handleScheduleToVisit:A,handleScheduleNoVisit:B}}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 Jp(e){const[t,a]=l.useState(""),[r,n]=l.useState("25"),[i,s]=l.useState("all"),[c,d]=l.useState(1),u=l.useMemo(()=>e.filter(({item:g,status:f})=>!(t&&!g.memo.includes(t)||i!=="all"&&f!==i)),[e,t,i]),m=Math.max(1,Math.ceil(u.length/Number(r))),h=Math.min(c,m),p=l.useMemo(()=>u.slice((h-1)*Number(r),h*Number(r)),[u,h,r]);return{vapSearch:t,setVapSearch:a,vapPageSize:r,setVapPageSize:n,vapStatus:i,setVapStatus:s,vapPage:h,setVapPage:d,vapFiltered:u,vapTotal:m,vapPageItems:p}}function sl(e,t){const{t:a}=ge.useTranslation(),[r,n]=l.useState("25"),[i,s]=l.useState(1),[c,d]=l.useState(t);c!==t&&(d(t),i!==1&&s(1));const u=l.useMemo(()=>il.map(g=>({...g,label:a("visits.showN",{n:g.value})})),[a]),m=l.useCallback(g=>{n(g),s(1)},[]),h=Math.max(1,Math.ceil(e.length/Number(r))),p=Math.min(i,h);return{pageRows:l.useMemo(()=>e.slice((p-1)*Number(r),p*Number(r)),[e,p,r]),pageSizeProps:{options:u,value:r,onChange:m},paginationProps:{page:p,total:h,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 eh(){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:[]}),[d,u]=l.useState(!1),[m,h]=l.useState("\uC88C"),p=l.useCallback(f=>{const b=f.direction;i(v=>({...v,[b]:f})),c(v=>({...v,[b]:[f,...v[b]]})),t(!1)},[]),g=l.useCallback(f=>{const b=f.direction;i(v=>({...v,[b]:f})),u(!1)},[]);return{showDevice:e,setShowDevice:t,deviceDirection:a,setDeviceDirection:r,devices:n,setDevices:i,deviceHistory:s,setDeviceHistory:c,showDeviceList:d,setShowDeviceList:u,listForSide:m,setListForSide:h,handleDeviceSubmit:p,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 th(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 ah(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 oh(e,t){const{label:a,headValue:r,midValue:n,tailValue:i,includeMid:s=!0,headDisabled:c,midDisabled:d,tailDisabled:u,allOptionDisabled:m,groupLabel:h,labelAction:p}=t;return{label:a,...h?{groupLabel:h}:{},...p?{labelAction:p}:{},allOption:!0,allLabel:e("wordSearch.filter.positionAny",{defaultValue:"\uBB34\uAD00"}),...m?{allOptionDisabled:m}:{},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:d}]:[],{value:i,displayLabel:e("wordSearch.filter.positionTail",{defaultValue:"\uC5B4\uB9D0"}),disabled:u}]}}function rh(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(Rw).map(([e,{nucleus:t}])=>[e,t]));const t5={\uACE0\uC720\uC5B4:"\uACE0\uC720",\uD55C\uC790\uC5B4:"\uD55C\uC790",\uC678\uB798\uC5B4:"\uC678\uB798",\uD63C\uC885\uC5B4:"\uD63C\uC885"},a5={"\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"]},o5={difficulty:"\uB09C\uC774\uB3C4 \uB4F1\uAE09",syllables:"\uC74C\uC808 \uC218",syllable5plus:"5\uC74C\uC808 \uC774\uC0C1",partOfSpeech:"\uD488\uC0AC",wordType:"\uC720\uD615",posMap:a5,typeMap:t5};function r5(e,t,a=o5){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(d=>d===a.syllable5plus?c>=5:c===parseInt(d)))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"])]},n5=[...Ze],i5=[...dt],s5=gt.filter(e=>e!==""),ba=e=>e===ra?[]:Array.from(e),ra="__NO_CODA__",nh=[1,2,3,4],na=5,l5=12,ih="SYL_",ml=e=>`${ih}${e}`,c5=e=>Number(e.slice(ih.length));function dn(e){return e>=na?Array.from({length:l5-na+1},(t,a)=>na+a):[e]}const sh={cho:n5,jung:i5,jong:s5},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)},lh={};gl.jung.flat().forEach(({v:e})=>{for(const t of ba(e))lh[t]=e});const d5=new Set(gl.cho.flat().map(e=>e.v));function fl(e,t){return e==="cho"?d5.has(t)?t:null:e==="jung"?lh[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},u5="wt_filter",ch=e=>`wt_filter_${e}`;function dh(e){try{const t=localStorage.getItem(ch(e))??localStorage.getItem(u5);if(t)return JSON.parse(t)}catch{}return null}function p5(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 uh(e,t,a){const{t:r,i18n:n}=ge.useTranslation(),[i]=l.useState(()=>a?.resetOnMount?null:dh(e)),s=i?.contrastCount,c=typeof s=="number"&&Number.isFinite(s)?s:1,[d,u]=l.useState(Math.min(5,Math.max(1,c))),[m,h]=l.useState(i?.phonemeView==="pron"?"pron":i?.phonemeView==="direct"?"direct":"char"),[p,g]=l.useState(()=>p5(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(I=>I.cho||I.jung||I.syllable!=null||I.jong?I:f())},[]);const b=l.useMemo(()=>ft(p.cho)||ft(p.jung)||ft(p.jong)?"count":"random",[p.cho,p.jung,p.jong]),v=l.useRef(m==="char"?p.jung:null);l.useEffect(()=>{m==="char"&&(v.current=p.jung)},[m,p.jung]);const[y,_]=l.useState(a?.resetOnMount?!!a?.defaultImageOnly:i?.excludeNoImage??!0),[C,x]=l.useState(a?.resetOnMount?!1:i?.sameStructureOnly??!0),[k,w]=l.useState(Array.isArray(i?.gradeFilter)?i.gradeFilter:[]),[S,E]=l.useState(Array.isArray(i?.posFilter)?i.posFilter:[]),[A,B]=l.useState(Array.isArray(i?.wordTypeFilter)?i.wordTypeFilter:[]),W=l.useRef(a?.resetKey);l.useEffect(()=>{W.current!==a?.resetKey&&(W.current=a?.resetKey,g(f()),_(!1),x(!1),w([]),E([]),B([]),u(1))},[a?.resetKey]);const P=cl(),[T,j]=l.useState({cho:new Set,jung:new Set,jong:new Set,syllable:new Set}),[M,H]=l.useState(!1),[ae,X]=l.useState(null),oe=1,N=Math.max(1,[p.cho,p.jung,p.jong].filter(Boolean).length);l.useEffect(()=>{d<N&&u(N)},[N,d]);const[L,R]=l.useState(e);l.useEffect(()=>{if(L!==e){if(!a?.resetOnMount){const I=dh(e),Z=typeof I?.contrastCount=="number"&&Number.isFinite(I.contrastCount)?I.contrastCount:1;u(Math.min(5,Math.max(1,Z))),g(I?.composition??f()),_(I?.excludeNoImage??!0),x(I?.sameStructureOnly??!0),h(I?.phonemeView==="pron"?"pron":"char"),w(Array.isArray(I?.gradeFilter)?I.gradeFilter:[]),E(Array.isArray(I?.posFilter)?I.posFilter:[]),B(Array.isArray(I?.wordTypeFilter)?I.wordTypeFilter:[])}R(e)}},[e,L,a?.resetOnMount]),l.useEffect(()=>{if(!a?.resetOnMount&&L===e)try{localStorage.setItem(ch(e),JSON.stringify({contrastCount:d,composition:p,excludeNoImage:y,sameStructureOnly:C,phonemeView:m,gradeFilter:k,posFilter:S,wordTypeFilter:A}))}catch{}},[a?.resetOnMount,e,L,d,p,y,C,m,k,S,A]);const[z,G]=l.useState(0);ur("wordpool:update",()=>G(I=>I+1));const K=l.useRef(n.language);l.useEffect(()=>{K.current!==n.language&&(K.current=n.language,G(I=>I+1))},[n.language]),l.useEffect(()=>{if(!t.choseong)return;let I=!1;return A4({difficulty:b,excludeNoImage:y}).then(Z=>{I||(j(Z),Z.cho.size+Z.jung.size+Z.jong.size>0&&H(!0))}).catch(()=>{I||j({cho:new Set,jung:new Set,jong:new Set,syllable:new Set})}),()=>{I=!0}},[t.choseong,b,y,z]),l.useEffect(()=>{let I=!1;const Z=p,te=Z.cho?ba(Z.cho):null,fe=Z.jung?ba(Z.jung):null,De=Z.jong===ra,ze=De?null:Z.jong?ba(Z.jong):null,Re=Z.syllable!=null?dn(Z.syllable):null,Me=!!(te||fe||ze||De||Re);return S4({difficulty:t.difficulty?b:null,contrastCount:t.difficulty?d:1,composition:t.choseong&&Me?{cho:te,jung:fe,jong:ze,jongNone:De,syllable:Re}:null,excludeNoImage:y,sameStructureOnly:C,phonemeView:m==="pron"?"pron":"char",grade:k.length>0?k:null}).then(Ye=>{I||X(Ye)}).catch(()=>{I||X(null)}),()=>{I=!0}},[t.choseong,t.difficulty,b,d,p,m,y,C,z,k]),l.useEffect(()=>{M&&g(I=>{const Z={...I};let te=!1;return["cho","jung","jong"].forEach(fe=>{const De=I[fe];!De||De===ra||ba(De).some(ze=>T[fe].has(ze))||(Z[fe]=null,te=!0)}),I.syllable!=null&&t.fixedSyllable==null&&(I.syllable>=na?[...T.syllable].some(fe=>fe>=na)||(Z.syllable=null,te=!0):(!T.syllable.has(I.syllable)||I.syllable<oe)&&(Z.syllable=null,te=!0)),te?Z:I})},[T,M,oe,t.fixedSyllable]);const O=l.useMemo(()=>{const I=Z=>{const te=new Set;for(const fe of sh[Z])T[Z].has(fe)&&te.add(fe);return te};return{cho:I("cho"),jung:I("jung"),jong:I("jong")}},[T]),q=l.useMemo(()=>({exact:new Set(nh.filter(I=>T.syllable.has(I))),min:[...T.syllable].some(I=>I>=na)}),[T]),F=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]),se=l.useMemo(()=>({[F.trainOnset]:"cho",[F.trainVowel]:"jung",[F.trainCoda]:"jong"}),[F]),Q=l.useCallback((I,Z)=>({title:Z,items:I}),[]),re=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 I=[];if(t.choseong){const Z={value:ra,displayLabel:F.codaExclude},te=t.fixedNoCoda===!0,fe=(De,ze)=>{const Re=te&&De==="jong",Me={label:ze,groupLabel:F.phonemeGroup,allOption:!t.requireSyllable,allLabel:F.noLimit,allOptionDisabled:Re};if(m==="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([Z]),{...Me,groups:Ne}}const Ye=sh[De].map(Ne=>!Re&&O[De].has(Ne)?Ne:{value:Ne,disabled:!0});return{...Me,items:De==="jong"&&!t.requireCoda?[Z,...Ye]:Ye}};I.push(fe("cho",F.trainOnset)),I.push(fe("jung",F.trainVowel)),I.push(fe("jong",F.trainCoda))}if(I.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:F.gradeLabel}),t.partOfSpeech&&I.push(ul(P)),t.wordType&&I.push(pl(P)),t.choseong||t.fixedSyllable!=null){const Z=t.fixedSyllable;I.push({label:F.syllableCount,items:[...nh.map(te=>({value:ml(te),displayLabel:r("wordPairs.syllableN",{n:te,defaultValue:"{{n}}\uC74C\uC808"}),disabled:Z!=null?te!==Z:!q.exact.has(te)||te<oe})),{value:ml(na),displayLabel:r("wordPairs.syllableNPlus",{n:na,defaultValue:"{{n}}\uC74C\uC808 \uC774\uC0C1"}),disabled:Z!=null?na!==Z:!q.min}],allOption:!0,allOptionDisabled:Z!=null})}return t.choseong?I.push({label:F.exclude,displayLabel:F.selectLabel,multiple:!0,items:[F.excludeImage,F.sameStructure],labelInfo:Q(re)}):I.push({label:F.exclude,displayLabel:F.selectLabel,multiple:!0,items:[F.excludeImage],labelInfo:Q([re[0]])}),I},[t.choseong,t.partOfSpeech,t.wordType,t.requireSyllable,t.fixedSyllable,t.fixedNoCoda,t.requireCoda,oe,O,T,m,q,F,r,Q,re,P]),ce={...t.difficulty?{[F.diffPhonemeCount]:String(d)}:{},...(t.choseong||t.fixedSyllable!=null)&&p.syllable!=null?{[F.syllableCount]:ml(p.syllable)}:{},...t.choseong&&p.cho?{[F.trainOnset]:p.cho}:{},...t.choseong&&p.jung?{[F.trainVowel]:p.jung}:{},...t.choseong&&p.jong?{[F.trainCoda]:p.jong}:{},[F.exclude]:[...y?[F.excludeImage]:[],...C?[F.sameStructure]:[]],[F.gradeLabel]:k.map(I=>r("wordSearch.filter.grade",{n:Number(I),defaultValue:"{{n}}\uB4F1\uAE09"})),...t.partOfSpeech?{[P.partOfSpeech]:S}:{},...t.wordType?{[P.wordType]:A}:{}},$=l.useCallback((I,Z)=>{if(Z===F.diffPhonemeCount){const te=Number(I);te>=1&&u(te)}else if(Z===F.exclude)I===F.excludeImage?_(te=>!te):I===F.sameStructure&&x(te=>!te);else if(Z===F.syllableCount)g(te=>{if(!I||I===Dt)return{...te,syllable:null};const fe=c5(I);return{...te,syllable:te.syllable===fe?null:fe}});else if(Z===F.gradeLabel){if(!I||I===Dt){w([]);return}const te=I.replace(/\D/g,"");w(fe=>fe.includes(te)?fe.filter(De=>De!==te):[...fe,te])}else if(Z===P.partOfSpeech){if(!I||I===Dt){E([]);return}E(te=>te.includes(I)?te.filter(fe=>fe!==I):[...te,I])}else if(Z===P.wordType){if(!I||I===Dt){B([]);return}B(te=>te.includes(I)?te.filter(fe=>fe!==I):[...te,I])}else{const te=se[Z];if(!te)return;g(fe=>t.requireSyllable?I&&I!==Dt?{...fe,[te]:I}:fe:!I||I===Dt||fe[te]===I?{...fe,[te]:null}:{...fe,[te]:I})}},[F,se,P,t.requireSyllable]),ee=l.useCallback(I=>!t.partOfSpeech&&!t.wordType?!0:r5(I,{...t.partOfSpeech?{[P.partOfSpeech]:S}:{},...t.wordType?{[P.wordType]:A}:{}},P),[t.partOfSpeech,t.wordType,S,A,P]),ue=l.useCallback(I=>{I!==m&&(I!=="direct"&&m!=="direct"&&g(Z=>yl(Z,I,v.current)),h(I))},[m]),ke=l.useCallback(()=>({composition:p,contrastCount:d,excludeNoImage:y,sameStructureOnly:C,phonemeView:m,gradeFilter:k}),[p,d,y,C,m,k]),Ce=l.useCallback(I=>{g(I.composition),u(I.contrastCount),_(I.excludeNoImage),x(I.sameStructureOnly??!0),h(I.phonemeView),w(Array.isArray(I.gradeFilter)?I.gradeFilter:[])},[]);return{difficulty:b,contrastCount:d,composition:p,choseong:p.cho,excludeNoImage:y,sameStructureOnly:C,gradeFilter:k,posFilter:S,wordTypeFilter:A,matchesWordAttributes:ee,poolVersion:z,filterSections:me,filterSelected:ce,handleFilterSelect:$,phonemeView:m,setPhonemeView:ue,phonemeGroupLabel:F.phonemeGroup,wordCount:ae,getFilterSnapshot:ke,restoreFilterSnapshot:Ce}}function h5(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 ph(e,t,a,r,n,i,s=!0,c="char",d=[]){const[u,m]=l.useState({}),[h,p]=l.useState(!1),{cho:g=null,jung:f=null,jong:b=null,syllable:v=null}=r??{},y=d.length>0?d.slice().sort().join(","):"";return l.useEffect(()=>{i>0&&k4(n).catch(()=>{})},[i,n]),l.useEffect(()=>{let _=!1;return p(!0),(async()=>{const C=h5({cho:g,jung:f,jong:b,syllable:v}),x=`${g??""}_${f??""}_${b??""}_${v??""}_${y}`,k={};await Promise.all(e.map(async w=>{const S=fo[w.key];try{const E=await Bp(w.key,{difficulty:S.difficulty?t:null,contrastCount:S.difficulty?a:1,composition:S.choseong?C:null,count:5,excludeNoImage:n,sameStructureOnly:s,phonemeView:c,grade:d.length>0?d:null});E&&E.length>0?k[w.key]={id:`wt-${w.key}-${t}-${x}-${Date.now()}`,name:w.label,training_type:w.key,category_main_code:"WORD",iconColor:w.color,subTitle:w.subTitle,items:E,itemCount:E.length}:k[w.key]={id:`wt-${w.key}-empty`,name:w.label,training_type:w.key,category_main_code:"WORD",iconColor:w.color,subTitle:w.subTitle,items:[],itemCount:0,__empty:!0}}catch{k[w.key]=null}})),_||(m(k),p(!1))})(),()=>{_=!0}},[t,a,g,f,b,v,n,s,c,i,y]),{perTypeData:u,generating:h}}function m5(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 b5(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?b5(m5(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 hh(e){return e?!!(e.LISTEN_IN_NOISE?.length||e.SHORT_STORY?.length||e.LONG_STORY?.length||e.ORDERING_SENTENCE?.length):!1}const g5={LISTEN_IN_NOISE:3,SHORT_STORY:2,LONG_STORY:1,ORDERING_SENTENCE:2};function mh(e=!1,t=g5,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 bh(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,d]=l.useState(0),[u,m]=l.useState(!1);l.useEffect(()=>{let p=!1,g,f=0;const b=40,v=()=>{g!==void 0&&(clearInterval(g),g=void 0)};let y=!1;try{const x=new URLSearchParams(window.location.search),k=x.get("forceRefresh")||x.get("force");y=k==="1"||k==="true"}catch{}const _=x=>{t.current=x.today,a.current=x.yesterday,n(!0),m(!0),d(k=>k+1),p=!0,v()},C=async()=>{if(p)return;if(!y){const k=mh(!1,void 0,e);if(hh(k.today)){_(k);return}}try{await vs(3e3)}catch{}if(p)return;const x=mh(y,void 0,e);if(hh(x.today)){_(x);return}++f>=b&&(n(!0),m(!1),p=!0,v())};return C(),g=setInterval(C,250),()=>{p=!0,v()}},[e]);const h=l.useCallback(p=>{const g=i?a.current:t.current,f=i?t.current:a.current;return g?.[p]?.length?g[p]:f?.[p]?.length?f[p]:void 0},[i,c]);return{loaded:r,hasData:u,showYesterday:i,setShowYesterday:s,getTrainingPerType:h}}const wo=[];let hn=!1;function gh(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",gh),hn=!0),()=>{const t=wo.lastIndexOf(e);t>=0&&wo.splice(t,1),wo.length===0&&hn&&typeof document<"u"&&(document.removeEventListener("keydown",gh),hn=!1)}}function fh(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 vh(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(d=>!_l.has(d));if(i.length===0)return;let s=!1;const c=Array.from(new Set(i.map(d=>d.slice(0,d.lastIndexOf(":")))));return t(c).then(d=>{if(!(s||d.length===0)){for(const u of d)u.Meaning&&_l.set(mn(u.Word,u.Homonum??void 0),u.Meaning);r(u=>u+1)}}),()=>{s=!0}},[n,t]),l.useMemo(()=>{const i=n?n.split("|"):[],s=new Map;for(const c of i){const d=_l.get(c);d!=null&&s.set(c,d)}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 yh(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((d,u)=>{i.current&&clearTimeout(i.current),i.current=setTimeout(()=>{a(d),n(u)},e)},[e]),c=l.useCallback(()=>{i.current&&clearTimeout(i.current),a(null),n(null)},[]);return{payload:t,anchorRect:r,openAfterDelay:s,close:c}}function xh(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((h,p)=>{n(p),a(h),s(g=>g+1)},[]),d=l.useCallback(h=>c(h,"warning"),[c]),u=l.useCallback(h=>c(h,"normal"),[c]),m=l.useCallback(()=>a(""),[]);return{toastMessage:t,toastType:r,toastKey:i,showToast:c,showWarning:d,showNormal:u,clearToast:m}}const pr={blue:"#60A5FA",green:"#4ADE80",amber:"#FBBF24",purple:"#A78BFA",pink:"#F472B6"},hr=pr.blue,gn=pr.green,mr=pr.amber,fn=pr.purple,f5=pr.pink,v5=[{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:f5,subTitle:"\uC138 \uB2E8\uC5B4\uB97C \uB4E4\uC740 \uC21C\uC11C\uB300\uB85C \uCE74\uB4DC\uB97C \uC120\uD0DD\uD558\uC138\uC694."}]}];function Ch(){const{t:e}=ge.useTranslation();return l.useMemo(()=>{const t=Object.fromEntries(e4(e).map(r=>[r.key,r.label])),a={...t};return v5.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({}),d=l.useRef(null),u=l.useRef(null),m=l.useCallback(()=>{d.current&&c(e(d.current.getBoundingClientRect()))},[e]);l.useEffect(()=>{if(!n)return;m();const g=y=>{const _=y.target;r&&_.closest?.(r)||d.current?.contains(_)||u.current?.contains(_)||i(!1)};document.addEventListener("mousedown",g);const f=y=>{u.current?.contains(y.target)||(t==="reposition"?m():t==="close"&&i(!1))};t!=="ignore"&&window.addEventListener("scroll",f,!0);const b=()=>{a==="reposition"?m():a==="close"&&i(!1)};a!=="ignore"&&window.addEventListener("resize",b);const v=y=>{y.key==="Escape"&&i(!1)};return document.addEventListener("keydown",v),()=>{document.removeEventListener("mousedown",g),t!=="ignore"&&window.removeEventListener("scroll",f,!0),a!=="ignore"&&window.removeEventListener("resize",b),document.removeEventListener("keydown",v)}},[n,m,t,a,r]);const h=l.useCallback(()=>i(g=>!g),[]),p=l.useCallback(()=>i(!1),[]);return{open:n,setOpen:i,toggle:h,close:p,style:s,triggerRef:d,menuRef:u}}function wl(e,{mode:t="playback",autoStart:a=!1,onPlaySpeaker:r,onComplete:n,playMs:i=1100,feedbackMs:s=1500}={}){const[c,d]=l.useState([]),[u,m]=l.useState(0),[h,p]=l.useState("idle"),[g,f]=l.useState(null),[b,v]=l.useState([]),[y,_]=l.useState(null),[C,x]=l.useState(0),k=l.useRef(0),w=l.useCallback(N=>{k.current=typeof N=="function"?N(k.current):N,x(k.current)},[]),S=l.useRef(r),E=l.useRef(n);l.useEffect(()=>{S.current=r,E.current=n},[r,n]);const A=l.useRef([]),B=()=>{A.current.forEach(clearTimeout),A.current=[]},W=(N,L)=>{A.current.push(setTimeout(L,N))};l.useEffect(()=>()=>B(),[]);const P=c[u]?.id??null,T=l.useCallback(()=>{B(),p("playing"),v([]),_(null),w(0);let N=0;e.forEach((L,R)=>{W(N,()=>{m(R),f(L.id),S.current?.(L)}),W(N+1e3,()=>{f(null),v(z=>[...z,L.id])}),N+=1300}),W(N,()=>{p("done"),E.current?.({score:0,total:e.length})})},[e,w]),j=l.useCallback((N,L)=>{if(L>=N.length){p("done"),E.current?.({score:k.current,total:N.length});return}m(L),_(null),p("playing"),f(N[L].id),S.current?.(N[L]),W(i,()=>{f(null),p("waiting")})},[i]),M=l.useCallback(()=>{B();const N=He(e);d(N),w(0),v([]),j(N,0)},[e,j,w]),H=l.useCallback(()=>{t==="playback"?(d(e),T()):M()},[t,e,T,M]),ae=l.useCallback(()=>{B(),p("idle"),f(null),v([]),_(null),m(0),w(0),d([])},[w]);l.useEffect(()=>{a?H():ae()},[t,e.length,a]);const X=l.useCallback(N=>{h!=="waiting"||t==="playback"||(_(N),N===c[u]?.id&&w(L=>L+1),t==="exam"?(p("playing"),W(400,()=>j(c,u+1))):(p("feedback"),W(s,()=>j(c,u+1))))},[h,t,c,u,j,s,w]),oe=t==="playback"?e.length:c.length;return{bind:{activeSpeakerId:g,playedIds:b,selectedId:y,answerId:P,showFeedback:h==="feedback",clickable:h==="waiting",onSelectSpeaker:X},index:u,total:oe,score:C,phase:h,done:h==="done",start:H,reset:ae}}var y5=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:oh,buildSelectSection:ah,buildSyllableSection:th,buildWordTypeSection:pl,charToPronValue:fl,convertComposition:yl,fmtBytes:qp,lsBytes:nl,meaningKey:mn,pronToCharValue:vl,syllableToFilter:dn,today:_o,toggleAttributeFilter:rh,useAnchoredMenu:ao,useCacheManagement:Yp,useDailyTrainingSelection:bh,useDelayedHoverAnchor:yh,useDeviceManagement:eh,useDocumentTitle:ol,useEscToClose:fh,useFontScale:sn,useHoverAnchor:ko,useMediaQuery:oa,usePagedList:xh,usePasswordChange:Gp,useRelativeDay:Vp,useSoundCompassExam:wl,useTablePaging:sl,useTableSort:ll,useToastState:bn,useTrainingTypeLabels:Ch,useVisitAllPanel:Jp,useVisitHistory:Zp,useVisitSchedule:Qp,useWindowEvent:ur,useWordAttributeFilterKeys:cl,useWordDataStats:Up,useWordMeanings:vh,useWordTrainingDataGeneration:ph,useWordTrainingFilter:uh,valueToJamos:ba}),x5=".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(x5);function _h({title:e,description:t,actionLabel:a,onAction:r,bg:n,color:i,size:s="medium",actionVariant:c,titleColor:d,descriptionColor:u,className:m=""}){const h=n??i??"main",p=l.useRef(null),[g,f]=l.useState("main"),b=oa("(max-width: 767px)");l.useLayoutEffect(()=>{const _=p.current;_&&(d!==void 0&&_.style.setProperty("--promo-banner-bg-title",d),u!==void 0&&_.style.setProperty("--promo-banner-bg-description",u))},[d,u]),l.useLayoutEffect(()=>{const _=p.current;if(!_)return;const C=ks(_);f(C?.actionVariant??"main")},[h]);const v=xe("promo-banner",`promo-banner--${s}`,m),y=Js[h];return o.jsxs("div",{ref:p,className:v,role:"note",children:[o.jsx(y,{}),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(ie,{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 C5='.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(C5);function wh({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),d=c.length,[u,m]=l.useState(0),[h,p]=l.useState(!1),g=d>0?u%d:0;return l.useEffect(()=>{if(d<2||t<=0||h)return;const f=window.setInterval(()=>m(b=>(b+1)%d),t);return()=>window.clearInterval(f)},[d,t,h]),d===0?null:o.jsxs("section",{className:xe("top-banner",r),"aria-label":s,"aria-roledescription":"carousel",onMouseEnter:()=>p(!0),onMouseLeave:()=>p(!1),onFocus:()=>p(!0),onBlur:()=>p(!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))})}),d>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:d,index:b+1,defaultValue:`${d}\uAC1C \uC911 ${b+1}\uBC88\uC9F8 \uBC30\uB108`}),"aria-current":b===g,onClick:()=>m(b)},b))})]})}var _5=".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(_5);function w5({title:e,body:t,open:a=!1,onToggle:r,avatar:n,titleClassName:i="body-2",bodyClassName:s="body-2",className:c=""}){const{t:d}=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:u=>{if(u.key==="Enter"||u.key===" ")u.preventDefault(),r?.();else if(u.key==="ArrowDown"||u.key==="ArrowUp"){u.preventDefault();const m=u.currentTarget.closest('[role="list"]');if(!m)return;const h=Array.from(m.querySelectorAll("[data-accordion-header]")),p=h.indexOf(u.currentTarget);(u.key==="ArrowDown"?h[p+1]:h[p-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?d("accordion.collapse","\uC811\uAE30"):d("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 kh({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,d)=>o.jsx(w5,{title:c.title,body:c.body,avatar:c.avatar,open:d===i,onToggle:()=>s(d===i?-1:d),bodyClassName:n},d))})}var k5=".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(k5);var S5=".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(S5);function A5(){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 T5(){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 B5(){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:C,number:x,position:k="top-right",onClick:w,animate:S=!1}=e,E=x!==void 0?"number":C??"check",A=typeof a=="number"?a:32,B=xe("circle-badge",`circle-badge--${E}`,`circle-badge--${k}`,`circle-badge--${A}`,S?"circle-badge--animate":"",w?"circle-badge--clickable":"",r),W=x!==void 0?`${x}\uBC88\uC9F8 \uC120\uD0DD`:{check:"\uC120\uD0DD\uB428",remove:"\uC81C\uAC70",minus:"\uC81C\uC678"}[C??"check"];return o.jsxs("span",{className:B,onClick:w,onKeyDown:w?P=>{P.key!=="Enter"&&P.key!==" "||(P.preventDefault(),P.currentTarget.click())}:void 0,"aria-label":n??W,role:w?"button":void 0,tabIndex:w?0:void 0,children:[x!==void 0&&x,x===void 0&&C==="check"&&o.jsx(A5,{}),x===void 0&&C==="remove"&&o.jsx(T5,{}),x===void 0&&C==="minus"&&o.jsx(B5,{})]})}const{label:i,children:s,variant:c="default",fill:d="filled",minWidth:u,iconLeft:m,iconRight:h,color:p}=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,v=xe("badge",`badge--${c}`,`badge--${g}`,d!=="filled"?`badge--${d}`:"",f,r),y=p?.startsWith("--")?`var(${p})`:p,_=u!==void 0||y?{...u!==void 0?{minWidth:typeof u=="number"?`${u}px`:u}:{},...y?{"--badge-color":y}:{}}:void 0;return o.jsxs("span",{className:v,style:_,children:[m&&o.jsx(Ie,{icon:m,size:b,className:"badge__icon"}),i??s,h&&o.jsx(Ie,{icon:h,size:b,className:"badge__icon"})]})}var N5=".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(N5);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}]),d=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(),v=b[0]&&typeof b[0].title<"u"?b[0].title:null;return b[0]={title:v,columns:e},b}catch{return[{title:null,columns:e}]}})},[e]);const u=l.useCallback(()=>c(f=>f.length>1?f.slice(0,f.length-1):f),[]),m=l.useRef(null),h=l.useRef(null),p=s.length;l.useEffect(()=>{h.current||(h.current=document.activeElement);let f=0,b=0;const v=()=>{const y=m.current?.querySelector("button:not([disabled])");if(y&&y.offsetParent){y.focus({preventScroll:!0});return}b++<20&&(f=requestAnimationFrame(v))};return f=requestAnimationFrame(v),()=>cancelAnimationFrame(f)},[p]),l.useEffect(()=>()=>{h.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||d.title)&&o.jsxs("div",{className:"tooltip-menu__header",children:[s.length>1?o.jsx(ie,{size:i,type:"dot",icon:"chevron-left",ariaLabel:n("common.back","\uB4A4\uB85C"),onClick:u,variant:"transparent-gray",useBorder:!1}):null,o.jsx("div",{className:"tooltip-menu__title button-1",children:d.title})]}),o.jsx("div",{className:"tooltip-menu__columns",ref:m,children:d.columns&&d.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((v,y)=>o.jsx(ie,{className:"tooltip-menu__item",size:i,type:v.label?"bar":"dot",icon:v.selected?"check":v.icon||"none",rightIcon:Array.isArray(v.children)&&v.children.length?"chevron-right":v.badgeCount?o.jsx(ht,{type:"dot",position:"inline",number:Math.min(v.badgeCount,99),size:24,"aria-label":`${v.badgeCount}`}):void 0,label:v.label,ariaLabel:v.label,onClick:()=>g(v),selected:v.selected,disabled:v.disabled,showTooltipInfo:v.tooltip||!1,useBorder:!1,align:"left"},y))})]},b))})]})}const D5=52,Sh=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",d=r==="manager"?"arrow-left":"arrow-right",u=r==="manager"?s("nav.modeLabelMalgwi","\uB9D0\uADC0"):s("nav.modeLabelManager","\uB9D0\uADC0 \uB9E4\uB2C8\uC800"),m=l.useRef(null),[h,p]=l.useState(0),g=e.length;l.useEffect(()=>{const j=m.current;if(!j||(p(j.clientWidth),typeof ResizeObserver>"u"))return;const M=new ResizeObserver(H=>p(H[0].contentRect.width));return M.observe(j),()=>M.disconnect()},[]);const f=h>0?Math.floor((h+Sh)/(D5+Sh)):g,b=h>0&&f<g,v=b?f:g,y=e.slice(0,v),_=e.slice(v),C=b||i.length>0,x=l.useCallback(j=>({position:"fixed",bottom:window.innerHeight-j.top+8,right:window.innerWidth-j.right,zIndex:1e4}),[]),{open:k,toggle:w,close:S,style:E,triggerRef:A,menuRef:B}=ao({computeStyle:x,onScroll:"ignore",onResize:"ignore"}),W=l.useCallback(()=>n?.(c),[n,c]),P=l.useMemo(()=>_.find(j=>j.key===t)??i.find(j=>j.selected||j.key&&j.key===t),[_,t,i]),T=l.useMemo(()=>[{items:[..._.map(j=>({label:j.label,icon:j.icon,selected:j.key===t,closeOnSelect:!0,onClick:()=>{j.key&&a&&a(j.key),S()}})),...i.map(j=>({label:j.label,icon:j.icon,badgeCount:j.badgeCount,selected:j.selected??(!!j.key&&j.key===t),closeOnSelect:!0,onClick:()=>{j.onClick?.(),S()}}))]}],[_,i,t,a,S]);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(ie,{size:52,type:"dot",icon:d,ariaLabel:u,className:"bottom-nav-item",onClick:W})}),o.jsx("div",{className:"bottom-nav__divider","aria-hidden":"true"})]}),o.jsx("div",{className:"bottom-nav__items",ref:m,children:y.map(j=>o.jsx(ie,{size:52,type:"dot",icon:j.icon,ariaLabel:j.label,selected:j.key===t,disabled:j.state==="disabled",className:"bottom-nav-item",onClick:()=>j.key&&a?.(j.key)},j.key))}),C&&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(ie,{size:52,type:"dot",icon:P?.icon??"ellipsis",ariaLabel:P?.label??s("nav.more","\uB354\uBCF4\uAE30"),selected:!!P,className:"bottom-nav-item",onClick:w}),k&&qt.createPortal(o.jsx("div",{className:"tooltip-content",style:E,ref:B,children:o.jsx(br,{columns:T,onClose:S})}),document.body)]})})]})]})}var E5=".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(E5);function j5(e){const{t}=ge.useTranslation(),{activeKey:a,unreadCount:r,onDebug:n,onNotification:i,onSetting:s,onHelp:c,onAccount:d}=e||{},u="default";return o.jsxs("div",{className:"side-nav__footer",children:[n&&o.jsx(ie,{size:48,showTooltipInfo:!0,type:"dot",shape:"pill",variant:u,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(ie,{size:48,showTooltipInfo:!0,type:"dot",shape:"pill",variant:u,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(ie,{size:48,showTooltipInfo:!0,type:"dot",shape:"pill",variant:u,icon:"settings",ariaLabel:t("nav.settings","\uC124\uC815"),onClick:s,selected:a==="settings"}),o.jsx(ie,{size:48,showTooltipInfo:!0,type:"dot",shape:"pill",variant:u,icon:"message-circle-question-mark",ariaLabel:t("nav.help","\uB3C4\uC6C0\uB9D0"),onClick:c,selected:a==="help"}),o.jsx(ie,{size:48,showTooltipInfo:!0,type:"dot",shape:"pill",variant:u,icon:"user-round",ariaLabel:t("nav.account","\uACC4\uC815"),onClick:d,selected:a==="account"})]})}function Ah(e){const{item:t,itemKey:a,label:r,icon:n,active:i,onClick:s,style:c,state:d,labelStyle:u}=e||{},m=t?.key??a??"",h=t?.label??r??"",p=t?.icon??n??"",g=t?.badge??0,f=o.jsx("span",{className:"side-nav__icon-wrap",children:o.jsx(Ie,{icon:p,label:typeof h=="string"?h:void 0,className:"side-nav__icon",maskClassName:"side-nav__icon-image",imgClassName:void 0,svgClassName:void 0})}),b=d==="disabled",v=`side-nav__item ${i?"active":""} ${d||""} ${b?"disabled":""} ${t?.child?"side-nav__item--child":""}`,y=l.useCallback(_=>{if(!b){try{_.currentTarget.blur()}catch{}s?.(m,_.currentTarget)}},[b,m,s]);return o.jsxs("button",{className:v,onClick:y,"aria-label":typeof h=="string"?h:void 0,style:c,"aria-disabled":b,children:[f,o.jsx("span",{className:"side-nav__label button-1 f",style:u,children:h}),g>0&&o.jsx(ht,{type:"dot",position:"inline",number:Math.min(g,99),size:24,"aria-label":`${g}`}),d==="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:d,onSetting:u,onHelp:m,appMode:h,onAppModeChange:p}=e||{},g=l.useCallback(()=>p?.(h==="malgwi"?"manager":"malgwi"),[p,h]);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(Ah,{item:f,active:f.key===r,state:f.disabled?"disabled":void 0,onClick:(v,y)=>{if(f.disabled)return;if(f.href){window.open(f.href,"_blank","noopener,noreferrer");try{y?.blur()}catch{}return}n?.(f.key);try{const C=document.querySelector(".content-area");C?C.scrollTop=0:window.scrollTo({top:0})}catch{}try{y?.blur()}catch{}if(typeof window<"u"&&window.matchMedia){if(!window.matchMedia("(min-width: 768px) and (max-width: 1023px)").matches)return}else return;const _=document.querySelector(".header");if(_&&!(typeof _.matches=="function"&&_.matches(":hover"))){_.classList.add("header--force-collapsed");const C=()=>{_.classList.remove("header--force-collapsed"),_.removeEventListener("mouseenter",C)};_.addEventListener("mouseenter",C)}}})]},f.key??`side-nav__item-${b}`)),p&&o.jsx("div",{className:"side-nav__separator side-nav__separator--short"}),p&&o.jsx(Ah,{item:{key:"__mode-switch__",label:h==="malgwi"?t("nav.goToManager","\uB9D0\uADC0\uB9E4\uB2C8\uC800\uB85C \uC774\uB3D9"):t("nav.goToMalgwi","\uB9D0\uADC0\uB85C \uC774\uB3D9"),icon:h==="malgwi"?"arrow-right":"arrow-left"},onClick:g})]}),o.jsx(j5,{activeKey:r,unreadCount:i,onDebug:s,onNotification:c,onAccount:d,onSetting:u,onHelp:m})]})}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',L5='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',M5='.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(M5);function Bl({appMode:e}){const{t}=ge.useTranslation(),a=e==="manager",r=a?Tl:Al,n=L5,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:d,onSetting:u,onHelp:m,appMode:h,onAppModeChange:p}){const{t:g}=ge.useTranslation(),f=oa("(max-width: 767px)"),b=l.useMemo(()=>{const E=[];return s&&E.push({key:"debug",icon:"terminal",label:g("nav.debug","\uB514\uBC84\uADF8"),onClick:s}),c&&E.push({key:"notifications",icon:"bell",label:g("nav.notifications","\uC54C\uB9BC"),badgeCount:i,onClick:c}),u&&E.push({key:"settings",icon:"settings",label:g("nav.settings","\uC124\uC815"),onClick:u}),m&&E.push({key:"help",icon:"message-circle-question-mark",label:g("nav.help","\uB3C4\uC6C0\uB9D0"),onClick:m}),d&&E.push({key:"account",icon:"user-round",label:g("nav.account","\uACC4\uC815"),onClick:d}),E},[g,s,c,u,m,d,i]),v=l.useCallback(E=>({position:"fixed",top:E.bottom+8,right:Math.max(8,window.innerWidth-E.right),zIndex:1e4}),[]),{open:y,toggle:_,close:C,style:x,triggerRef:k,menuRef:w}=ao({computeStyle:v,onScroll:"ignore",onResize:"ignore"}),S=l.useMemo(()=>[{items:b.map(E=>({label:E.label,icon:E.icon,badgeCount:E.badgeCount,selected:E.selected??(!!E.key&&E.key===e),closeOnSelect:!0,onClick:()=>{E.onClick?.(),C()}}))}],[b,e,C]);return o.jsxs("aside",{className:`header${h==="manager"?" header--manager":""}`,children:[o.jsxs("div",{className:"header__bi",children:[o.jsx(Bl,{appMode:h}),o.jsxs("div",{className:"header__menu-button",ref:k,children:[o.jsx(ie,{size:48,type:"dot",shape:"pill",variant:"default",icon:"menu",ariaLabel:g("header.menuOpen","\uBA54\uB274 \uC5F4\uAE30"),onClick:_}),y&&qt.createPortal(o.jsx("div",{className:"tooltip-content",style:x,ref:w,children:o.jsx(br,{columns:S,onClose:C})}),document.body)]})]}),o.jsx(Sl,{items:a,activeKey:e??void 0,onChange:t,unreadCount:i,onDebug:s,onNotification:c,onAccount:d,onSetting:u,onHelp:m,appMode:h,onAppModeChange:p}),f&&o.jsx(kl,{items:a,activeKey:e??void 0,onChange:t,appMode:h,onAppModeChange:p})]})}const Th=Nl;var P5='.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(P5);function Bh(e){if(!(e==null||e===""))return or(typeof e=="number"?`${e.toLocaleString("ko-KR")}\uC6D0`:e)}function R5(e){const t=`${e.code??""} ${e.name??""}`.toLowerCase();return/manager|매니저/.test(t)?"manager":"speechear"}function $5(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 I5(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??R5(e),plan:$5(e),label:e.label,price:Bh(e.price),originalPrice:Bh(e.originalPrice),discountLabel:e.discountLabel}}var z5='.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(z5);var 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_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',F5='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>',W5='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',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_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',V5='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>',G5='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',q5=".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(q5);var Y5=".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(Y5);var Nh='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 U5(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("${Nh}")`}})]})}const Dh="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 K5=".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(K5);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 Z5={text:"#1a1a1a",sub:"var(--color-lightGray)",logoBase:"Logo_speechear_kr",copyrightColor:"var(--color-main)"},X5=[{scale:1,opacity:.55},{scale:2,opacity:.4},{scale:3.1,opacity:.28},{scale:4.5,opacity:.18},{scale:6,opacity:.1}];function Eh(e={}){const t=lt(Z5,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:X5.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:Dh,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 Q5=".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(Q5);const J5={text:"#ffffff",sub:"var(--color-lightGray)",logoBase:"Logo_speechear_kr",logoColor:"_white",copyrightColor:"#ffffff"},e3=[{scale:1,opacity:.55},{scale:2,opacity:.4},{scale:3.1,opacity:.28},{scale:4.5,opacity:.18},{scale:6,opacity:.1}];function t3(e={}){const t=lt(J5,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:e3.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:Dh,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("${Nh}")`}})]})}var a3=".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(a3);const o3={text:"#1a1a1a",sub:"var(--color-lightGray)",logoBase:"Logo_speechear_kr",copyrightColor:"var(--color-main)"};function r3(e={}){const t=lt(o3,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 n3={Logo_speechear_kr:{"":Al,_white:O5,_textWhite:F5,_black:W5},Logo_speechearManager_kr:{"":Tl,_white:H5,_textWhite:V5,_black:G5}};function i3(e,t){if(e)return n3[e]?.[t??""]??void 0}const s3={speechear:Al,manager:Tl},l3={speechear:"Logo_speechear_kr",manager:"Logo_speechearManager_kr"},jh=10;function c3(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 d3(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(r3,{}):n?o.jsx(t3,{}):o.jsx(Eh,{})}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:d=!1,textColor:u,subColor:m,copyrightColor:h,logoSrc:p,label:g,price:f,originalPrice:b,discountLabel:v,onUse:y,onRefund:_,onDelete:C}){const{t:x}=ge.useTranslation(),k=e?Dl(e):void 0,w=r??k?.type??"speechear",S=a??k?.plan??"\uC774\uC6A9\uAD8C",E=g??k?.label,A=f??(t?k?.price:void 0),B=b??(t?k?.originalPrice:void 0),W=v??k?.discountLabel,P=l.useMemo(()=>{if(A)return null;const $=e?.durationDays??I5(e?.code);if(!$||$<=0)return null;const ee=$*86400;let ue;if(i!=null)ue=i;else if((s==="active"||s==="expired")&&n){const Ce=new Date(n).getTime();if(Number.isNaN(Ce))return null;const I=new Date;I.setHours(0,0,0,0);const Z=new Date(Ce);Z.setHours(0,0,0,0);const te=Math.round((Z.getTime()-I.getTime())/864e5);ue=Math.max(0,te)*86400}else s==="expired"?ue=0:ue=ee;const ke=Math.max(0,Math.min(100,Math.floor(Math.min(ue,ee)/ee*100)));return s==="pending"&&ke>=100?null:{percent:ke,remainingLabel:c3(ue,x)}},[A,s,n,i,e?.durationDays,e?.code,x]),T=l.useRef(null),[j,M]=l.useState({}),[H,ae]=l.useState(null),X=!!(y||_||C),oe=l.useRef(!1),N=l.useRef(void 0),[L,R]=l.useState(p);l.useLayoutEffect(()=>{R(p)},[p]),l.useLayoutEffect(()=>{const $=T.current;$&&(u!==void 0&&$.style.setProperty("--pass-card-text",u),m!==void 0&&$.style.setProperty("--pass-card-sub",m),h!==void 0&&$.style.setProperty("--pass-card-copyright",h))},[u,m,h]),l.useLayoutEffect(()=>{const $=T.current;if(!$)return;const ee=U5($);if(!p){const ue=l3[w],ke=s==="expired"?"_black":ee?.logoColor??"",Ce=i3(ue,ke);R(Ce)}},[c,p,w,s]);const z=$=>{const ee=T.current;if(!ee)return null;const{left:ue,top:ke,width:Ce,height:I}=ee.getBoundingClientRect(),Z=($.clientX-ue)/Ce-.5;return{rotateX:-(($.clientY-ke)/I-.5)*jh,rotateY:Z*jh}},G=($,ee)=>{const ue=ee*-.7,ke=$*.7+10,Ce=20+(Math.abs($)+Math.abs(ee))*.4;return`${ue}px ${ke}px ${Ce}px rgba(0, 0, 0, 0.18)`},K=l.useCallback($=>{oe.current=!0,clearTimeout(N.current),N.current=setTimeout(()=>{oe.current=!1},200);const ee=z($);ee&&M({transform:`perspective(800px) rotateX(${ee.rotateX}deg) rotateY(${ee.rotateY}deg) scale3d(1.03, 1.03, 1.03)`,boxShadow:G(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($=>{const ee=z($);if(!ee)return;const ue=oe.current?"transform 0.2s ease, box-shadow 0.2s ease":"none";M({transform:`perspective(800px) rotateX(${ee.rotateX}deg) rotateY(${ee.rotateY}deg) scale3d(1.03, 1.03, 1.03)`,boxShadow:G(ee.rotateX,ee.rotateY),transition:ue})},[]),q=l.useCallback(()=>{clearTimeout(N.current),oe.current=!1,M({transform:"perspective(800px) rotateX(0deg) rotateY(0deg) scale3d(1, 1, 1)",boxShadow:"0px 4px 16px rgba(0, 0, 0, 0.08)",transition:"transform 0.5s cubic-bezier(0.23, 1, 0.32, 1), box-shadow 0.5s cubic-bezier(0.23, 1, 0.32, 1)"})},[]),F=l.useCallback(()=>ae(null),[]),se=l.useMemo(()=>{const $=S.replace("\uC774\uC6A9\uAD8C","").trim(),ee=$.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:$})},[S,x]),Q=l.useMemo(()=>{const $=or(A);if(!$)return null;const ee=$.match(/^([^\d]*)([\d.,]+)(.*)$/);if(!ee)return o.jsx("span",{className:"h1",children:$});const[,ue,ke,Ce]=ee;return o.jsxs(o.Fragment,{children:[ue&&o.jsx("span",{className:"h5 pass-card__price-symbol",children:ue}),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]),re=l.useCallback(()=>{X&&ae($=>{if($)return null;const ee=T.current?.getBoundingClientRect();if(!ee)return null;const ue=50;return{left:ee.left,right:ee.right,width:ee.width,height:ee.height,x:ee.x,y:ee.y+ue,top:ee.top+ue,bottom:ee.bottom+ue}})},[X]),me=l.useCallback($=>{X&&($.key==="Enter"||$.key===" ")&&($.preventDefault(),re())},[X,re]),ce=[{items:[...y?[{label:x("passCard.menu.use","\uC0AC\uC6A9\uD558\uAE30"),icon:"play",onClick:()=>{y(),ae(null)},closeOnSelect:!0}]:[],..._?[{label:x("passCard.menu.refund","\uD658\uBD88\uD558\uAE30"),icon:"rotate-ccw",onClick:()=>{_(),ae(null)},closeOnSelect:!0}]:[],...C?[{label:x("passCard.menu.delete","\uC0AD\uC81C\uD558\uAE30"),icon:"trash-2",onClick:()=>{C(),ae(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}${X?" pass-card--clickable":""}`,style:j,onMouseEnter:K,onMouseMove:O,onMouseLeave:q,onClick:re,onKeyDown:X?me:void 0,role:X?"button":void 0,tabIndex:X?0:void 0,children:[c??d3(w,S,E),!d&&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:L??s3[w],className:"pass-card__logo",alt:w==="manager"?x("header.logoManager","\uB9D0\uADC0\uB9E4\uB2C8\uC800 \uB85C\uACE0"):x("header.logoMalgwi","\uB9D0\uADC0 \uB85C\uACE0")}),o.jsxs("div",{className:"pass-card__plan",children:[o.jsx("div",{children:se}),o.jsx("span",{className:"h5b pass-card__plan-suffix",children:E?x("passCard.labeledPlan",{label:E}):x("passCard.planSuffix","\uC774\uC6A9\uAD8C")})]})]})}),A?o.jsxs("div",{className:"pass-card__price-area",children:[W&&o.jsx("span",{className:"pass-card__discount body-3",children:W}),o.jsxs("div",{className:"pass-card__price",children:[B&&o.jsx("span",{className:"pass-card__price-original body-3",children:or(B)}),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."})]})]})}),H&&o.jsx(Sa,{anchorRect:H,onClose:F,children:o.jsx(br,{columns:ce,onClose:F,size:"small"})})]})}var u3=".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(u3);const p3={text:"#1a1a1a",sub:"var(--color-lightGray)",logoBase:"Logo_speechear_kr",copyrightColor:"#1a1a1a"};function h3(e={}){const t=`passcard-sound-line-grad-${l.useId()}`,a=lt(p3,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 m3=".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(m3);const b3={text:"#1a1a1a",sub:"var(--color-lightGray)",logoBase:"Logo_speechear_kr",copyrightColor:"var(--color-main)"};function g3(e={}){const t=lt(b3,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 f3(e,t){if(e){if(t==="manager_pro")return o.jsx(g3,{});if(t==="manager_standard")return o.jsx(h3,{});if(t==="manager_lite")return o.jsx(Eh,{})}}function v3(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 Lh(e){const{t}=ge.useTranslation(),a=t("payment.plan.tierFallback",{defaultValue:"\uC774\uC6A9\uAD8C"}),r=t("payment.plan.openPromo",{defaultValue:"\uC624\uD508 \uD2B9\uAC00"}),{plan:n,onSelect:i,period:s="monthly",ownedCodes:c}=e||{},d=C=>!!C&&!!c?.includes(C),u=(n.tiers||[]).some(C=>/오픈\s*특가/.test(C.label??"")&&d(C.code)),m=C=>{const x=C.prices?C.prices[s]:C.price;return x?(n.tiers||[]).some(k=>!!k.badge&&k.originals?.[s]===x):!1},h=n.colorToken?`var(--color-${n.colorToken})`:"var(--color-gray)",p=t("payment.plan.freePrice","\uBB34\uB8CC"),g=t("payment.products.mgrEnterprise.tier.price","\uBB38\uC758"),f=C=>C.prices?C.prices[s]:C.price,b=(n.tiers||[]).length>0&&(n.tiers||[]).every(C=>{const x=f(C);return x==="\uBB34\uB8CC"||x===p||x==="0\uC6D0"}),v=(n.tiers||[]).length>0&&(n.tiers||[]).every(C=>{const x=f(C);return x==="\uBB38\uC758"||x===g}),y=n.group==="org",_=y?"manager":"speechear";return o.jsxs("div",{className:"payment-plan__card",style:{borderColor:h,"--plan-color":h},children:[n.cardBadge&&o.jsx("div",{className:"payment-plan__card-badge",children:o.jsx(ht,{label:n.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:h},children:n.quote||"\xA0"}),o.jsx("h3",{className:"payment-plan__title-heading h1",children:n.tier??n.title}),o.jsx("p",{className:"payment-plan__subtitle body-3",children:n.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:(n.recommendedFor||[]).map((C,x)=>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:h}}),C]},x))})]}),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:(n.features||[]).map((C,x)=>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:h}}),C]},x))})]}),o.jsx("div",{className:"payment-plan__card-pricing",children:b?null:v?o.jsx(ie,{className:"payment-plan__contact-button",label:t("payment.plan.contact",{defaultValue:"\uBB38\uC758\uD558\uAE30"}),variant:"main",size:56,onClick:()=>n.tiers?.[0]&&i?.({...n.tiers[0],productId:n.id,productTitle:n.title})}):o.jsx(o.Fragment,{children:o.jsx("div",{className:"payment-plan__pricing-list",children:(n.tiers||[]).map(C=>{const x=C.label||a,k=/오픈\s*특가/.test(x),w=k||C.openPromo===!0,S=x.replace(/^오픈\s*특가\s*/,"")||a,E=C.prices?C.prices[s]:C.price,A=C.badge?w?`${r}
832
+ `),this.name="StorageNotConfiguredError"}};function Jn(e){cw(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 Od(e){globalThis[ai]=e}function Fo(){return globalThis[ai]?.urlResolver??null}function oi(){return globalThis[ai]?.fallbackUrlResolver??null}const dw=new Map;function Fd(){dw.clear()}const Wd="__ihab_core_pronunciation_resolver__";function Hd(e){globalThis[Wd]=e}function ri(){return globalThis[Wd]??null}let Wo=null;const Vd=new WeakMap;function uw(){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=Vd.get(e);if(t)return t;const a=uw();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),Vd.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 Gd="__ihab_core_image_config__";function qd(e){globalThis[Gd]=e}function Ma(){return globalThis[Gd]??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 pw(){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,pw(),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 Yd(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(d=>!(Lr(d)in i));let c=0;if(s.length>0){let d=0;const u=Array.from({length:Math.min(r,s.length)},async()=>{for(;d<s.length;){const m=d++,h=s[m],p=Lr(h);if(!a&&p in i){c++,n?.(c,s.length);continue}try{await Yo(h)}catch{}c++,n?.(c,s.length)}});await Promise.all(u)}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 Ud(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,d=i.jung!==s.jung,u=i.jong!==s.jong;(c?1:0)+(d?1:0)+(u?1:0)>1?r="multi":c?r="cho":d?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 Kd(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 d=!0;for(let u=0;u<a.length;u++){const m=s[c+u],h=i[u];if(h==="cho"){if(ui(m)!==a[u]){d=!1;break}}else if(h==="jung"){const p=Ee(m);if(!p||dt[p.jung]!==a[u]){d=!1;break}}else{const p=Ee(a[u]);if(p&&p.jong===0){const g=Ee(m);if(!g||g.cho!==p.cho||g.jung!==p.jung){d=!1;break}}else if(m!==a[u]){d=!1;break}}}if(d)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"]},Zd=Object.fromEntries(Object.entries(mo).map(([e,t])=>[t.join(""),gt[Number(e)]]));function hw(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 Xd(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 Qd(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 Jd(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 mw(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&&!mw(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 eu(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=Zd[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 bw(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!=="_"&&gt[a.jong]!==t.jong)}case"invalid":return!1}}function fi(e,t){const a=t.split(",").flatMap(n=>eu(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)=>bw(r[n+s],i)))return!0;return!1}function tu(e){const t=e.split(",").flatMap(i=>eu(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 gw(e){return!!Ee(e)||Ze.includes(e)||dt.includes(e)}function au(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(""),d=i===void 0||i==="_"||Ze.includes(i),u=s===void 0||s==="_"||dt.includes(s),m=c===""||c==="_"||gt.filter(Boolean).includes(c)||!!Zd[c];if(d&&u&&m)continue;return{ok:!1}}if(![...r].every(gw))return{ok:!1}}}return{ok:!0}}const fw={cho:Ze.length,jung:dt.length,jong:gt.length};function vw(e,t,a,r,n=1/0){if(!e||a<1)return[];const i=[...e].map(h=>Ee(h));if(i.some(h=>!h))return[];const s=i,c=s.length;if(a>c)return[];const d=fw[t],u=new Set,m=[];(function h(p,g){if(g.length===a){m.push([...g]);return}for(let f=p;f<c;f++)g.push(f),h(f+1,g),g.pop()})(0,[]);for(const h of m)if((function p(g,f){if(u.size>=n)return;if(g===h.length){const y=f.map(_=>ua(_.cho,_.jung,_.jong)).join("");y!==e&&r.has(y)&&u.add(y);return}const b=h[g],v=s[b][t];for(let y=0;y<d;y++){if(y===v)continue;const _=f.slice();if(_[b]={...f[b],[t]:y},p(g+1,_),u.size>=n)return}})(0,s),u.size>=n)break;return[...u]}function yw(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 ou(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 ru(){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 xw(e,t){try{if(typeof localStorage>"u")return;localStorage.setItem(vi,JSON.stringify(e)),localStorage.setItem(yi,t)}catch{}}function Cw(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 _w(e,t){const a=new Set,r=[];for(const u of e){if(!u.word||a.has(u.word))continue;const m=u.pron||u.word,h=Array.from(m).map(Ee);h.some(p=>p===null)||h.length===Array.from(u.word).length&&(a.add(u.word),r.push({word:u.word,syls:h}))}const n={},i=r.length,s=new Map;for(const u of r){const m=u.syls.length;s.has(m)||s.set(m,[]),s.get(m).push(u)}let c=0;const d=["cho","jung","jong"];for(const u of s.values()){const m=u[0].syls.length;for(let h=0;h<m;h++)for(const p of d){const g=new Map;for(const f of u){let b="";for(let y=0;y<m;y++){y>0&&(b+="~");const _=f.syls[y];y===h?p==="cho"?b+=`*:${_.jung}:${_.jong}`:p==="jung"?b+=`${_.cho}:*:${_.jong}`:b+=`${_.cho}:${_.jung}:*`:b+=`${_.cho}:${_.jung}:${_.jong}`}let v=g.get(b);v||(v=[],g.set(b,v)),v.push(f)}for(const f of g.values())if(!(f.length<2))for(let b=0;b<f.length;b++){const v=f[b];for(let y=b+1;y<f.length;y++){const _=f[y];v.syls[h][p]!==_.syls[h][p]&&(n[v.word]||(n[v.word]={cho:[],jung:[],jong:[]}),n[_.word]||(n[_.word]={cho:[],jung:[],jong:[]}),n[v.word][p].push(_.word),n[_.word][p].push(v.word))}}}c+=u.length,t?.(c,i),await new Promise(h=>setTimeout(h,0))}return i>0&&t?.(i,i),n}async function nu(e,t={}){const a=Cw(e);if(!t.force){if(pa&&Uo===a)return pa;const n=ru();if(n&&n.sig===a)return pa=n.index,Uo=a,pa}const r=await _w(e,t.onProgress);return pa=r,Uo=a,xw(r,a),r}function Ka(){if(pa)return pa;const e=ru();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(p=>ft(e[p])),d={};for(const p of c){const g=e[p];d[p]=new Set(Array.isArray(g)?g:[g])}const u=n==="pron",m=new Map;for(const p of t){const g=a(i(p));if(g.some(y=>!y))continue;let f=g;if(!u&&(f=a(p),f.length!==g.length||f.some(y=>!y)))continue;const b=g.length,v=m.get(b);v?v.push({w:p,dPron:g,dPos:f}):m.set(b,[{w:p,dPron:g,dPos:f}])}const h=new Map;for(const[p,g]of m){const f=new Map,b=(v,y)=>{const _=v.dPos[y];return _!=null&&c.every(C=>d[C].has(Ci[C][_[C]]))};for(const v of g){let y;if(s==="head")y=b(v,0)?0:-1;else if(s==="tail")y=b(v,p-1)?p-1:-1;else if(s==="mid"){y=-1;for(let C=1;C<p-1;C++)if(b(v,C)){y=C;break}}else y=v.dPos.findIndex(C=>C!=null&&c.every(x=>d[x].has(Ci[x][C[x]])));if(y<0)continue;const _=f.get(y);_?_.push(v):f.set(y,[v])}for(const[v,y]of f){const _=new Set(c.map(k=>v+":"+k)),C=k=>{let w="";for(let S=0;S<p;S++){const E=k[S];for(const A of["cho","jung","jong"])w+=(_.has(S+":"+A)?"*":E[A])+"."}return w},x=new Map;for(const k of g){const w=C(k.dPron),S=x.get(w);S?S.push(k):x.set(w,[k])}for(const k of y){const w=x.get(C(k.dPron))??[],S=[];for(const E of w){if(E.w===k.w)continue;let A=!0;for(const B of c){const W=k.dPron[v][B],P=E.dPron[v][B];if(P===W){A=!1;break}if(u&&d[B].has(Ci[B][P])){A=!1;break}}A&&(r&&Ko(k.dPron,E.dPron)||S.push(E.w))}h.set(k.w,S)}}}return h}const Rr=0,iu=1,Za=2,ki=3,ww=4,$r=5,Si=6,Ir=7,kw=8,su=9,Zo=10,Sw=11,Xo=12,Aw=13,Qo=14,zr=15,Or=16,Jo=17,Tw=18,ha=0,_a=1,Bw=3,Xa=4,Ai=5,Ti=6,ma=7,At=8,lu=9,cu=10,Fr=11,du=12,Bi=13,Wr=15,Hr=16,wa=17,uu=18,Ni=21,pu=27,Nw=20,Dw={1:Rr,2:iu,4:Za,7:ki,8:$r,16:Si,17:Ir,19:su,20:Zo,22:Xo,23:Qo,24:zr,25:Or,26:Jo},Ew={[Bw]:[_a,Zo],[Ai]:[Xa,Xo],[lu]:[At,Rr],[cu]:[At,Si],[Fr]:[At,Ir],[du]:[At,Zo],[Bi]:[At,Or],14:[At,Jo],[uu]:[wa,Zo]},jw={[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},hu={[Rr]:zr,[ki]:Or,[Ir]:Jo,[Xo]:Qo},mu={[Rr]:iu,[ki]:ww,[Ir]:kw,[su]:Zo,[Xo]:Aw},Lw=new Set([Ai,cu,Fr,du,Bi,Wr,uu]),Mw=new Set(["\uBC1F"]);function bu(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],d=s.jong;if(!c){s.jong=Di[s.jong]??s.jong;break}if(s.jong===ha)continue;if(c.cho===Sw){if(c.jung===Nw){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===pu){s.jong=ha;continue}const m=jw[s.jong];if(m!==void 0){s.jong=ha,c.cho=m;continue}const h=Ew[s.jong];if(h){s.jong=h[0],c.cho=h[1];continue}const p=Dw[s.jong];p!==void 0&&(s.jong=ha,c.cho=p);continue}if((s.jong===pu||s.jong===Ti||s.jong===Wr)&&hu[c.cho]!==void 0){c.cho=hu[c.cho],s.jong=s.jong===Ti?Xa:s.jong===Wr?At:ha;continue}if(c.cho===Tw){if(s.jong===Ai){s.jong=Xa,c.cho=Qo;continue}if(s.jong===lu){s.jong=At,c.cho=zr;continue}if(s.jong===Fr){s.jong=At,c.cho=Jo;continue}const m=Di[s.jong]??s.jong;if(m===_a){s.jong=ha,c.cho=zr;continue}if(m===ma){s.jong=ha,c.cho=Or;continue}if(m===wa){s.jong=ha,c.cho=Jo;continue}}let u=Di[s.jong]??s.jong;d===Fr&&Mw.has(a[i])&&(u=wa),s.jong=u,mu[c.cho]!==void 0&&(u===_a||u===ma||u===wa||Lw.has(d))&&(c.cho=mu[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 Pw={\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"},Rw={\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 Pw[e]??e}const go=/[ㄱ-ㅎ]/,$w=/[ㅏ-ㅣ]/;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)||$w.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 gu(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 fu(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 vu(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 Iw(e){const t=e?fo[e]?.group:void 0;return t==="synthesis"||t==="deletion"||t==="substitution"?t:null}const zw=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!==zw},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}},Ow=new Set([]);function yu(e){return e in Gr}function xu(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 Cu(e){return Ow.has(e)}function Fw(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 _u(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 wu(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 ku={\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 Su(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=>ku[c]??c,n=a.slice(0,-1).map(c=>`"${c}"${Fw(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 Ww(e,t){return Oi(t,e==="MERGE_2_PHONEMES"||e==="MERGE_3_PHONEMES")}function Hw(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}"${_u(n)} \uBC14\uAFB8\uBA74 \uBB34\uC5C7\uC774 \uB418\uB098\uC694?`:`"${a}"\uC5D0\uC11C "${r}"${zi(r)} "${n}"${_u(n)} \uBC14\uAFB8\uBA74 \uBB34\uC5C7\uC774 \uB418\uB098\uC694?`}function Vw(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}"${wu(n)} \uC5C6\uC5B4\uC9C0\uBA74 \uC5B4\uB5A4 \uC18C\uB9AC\uAC00 \uB418\uB098\uC694?`}return`"${a}"\uC5D0\uC11C "${r}"${wu(r)} \uC5C6\uC5B4\uC9C0\uBA74 \uC5B4\uB5A4 \uB9D0\uC774 \uB418\uB098\uC694?`}function Au(e,t,a){switch(Iw(e)){case"synthesis":return Ww(e,a);case"substitution":return Hw(e,t);case"deletion":return Vw(e,t);default:return""}}function Tu(e){return e.replace(/"([ㄱ-ㅣ])"(으로|와|과|을|를|이|가|은|는|로)?/g,(t,a,r)=>{const n=ku[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 Gw=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)||Gw(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=[],d=new Set([qr(a,n)]),u=He(i.map((m,h)=>h).filter(m=>m!==s&&(t!=="cho"||i[m]!=="\u3147")&&(t!=="jong"||m!==0)));for(const m of u){if(c.length>=r)break;const h=t==="cho"?ua(m,e.jung,e.jong):t==="jung"?ua(e.cho,m,e.jong):ua(e.cho,e.jung,m),p=qr(h,n);d.has(p)||(d.add(p),c.push(h))}return c}function Wi(e,t,a,r,n,i=null){const s=[...e];if(s.length!==2)return null;const c=s.map(h=>Ee(h));if(c.some(h=>!h))return null;const d=Qa(e,a,r);if(d.some(h=>!h))return null;const u=tr(t);let m=u&&t?d.map((h,p)=>Pa(h,t)?p:-1).filter(h=>h>=0):[0,1];if(i!=null&&(m=m.filter(h=>h!==i)),!m.length)return null;for(const h of He(m)){const p=s[h];if(!n.has(p))continue;const g=Ja(c[h],u??"cho",p,40,a),f=[];for(const b of g)if(b!==p&&n.has(b)&&!f.includes(b)&&f.push(b),f.length>=2)break;if(!(f.length<2))return{question:e,distractors:[p,...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(h=>Ee(h));if(c.some(h=>!h))return null;const d=Qa(e,a,r);if(d.some(h=>!h))return null;const u=tr(t),m=u&&t?d.map((h,p)=>Pa(h,t)?p:-1).filter(h=>h>=0):[0,1,2];if(!m.length)return null;for(const h of He(m))for(const p of He([0,1,2].filter(g=>g!==h&&(i==null||g===i)))){const g=[0,1,2].filter(_=>_!==p),f=g.map(_=>s[_]).join("");if(!n.has(f))continue;const b=g.indexOf(h),v=Ja(c[h],u??"cho",s[h],40,a),y=[];for(const _ of v){const C=g.map(k=>s[k]);C[b]=_;const x=C.join("");if(x!==f&&n.has(x)&&!y.includes(x)&&y.push(x),y.length>=2)break}if(!(y.length<2))return{question:e,distractors:[f,...y]}}return null}function Vi(e,t,a,r,n,i=null){const s=[...e],c=s.length;if(c<2)return null;const d=[];for(let m=1;m<=c-1;m++)d.push({remain:s.slice(0,m).join(""),dropped:s.slice(m).join(""),droppedEnd:1}),d.push({remain:s.slice(c-m).join(""),dropped:s.slice(0,c-m).join(""),droppedEnd:0});const u=tr(t);for(const{remain:m,dropped:h,droppedEnd:p}of He(d)){if(i!=null&&p!==i||m===e||!n.has(m)||!n.has(h))continue;const g=[...m],f=g.map(y=>Ee(y));if(f.some(y=>!y))continue;const b=Qa(m,a,r);if(b.some(y=>!y))continue;const v=u&&t?b.map((y,_)=>Pa(y,t)?_:-1).filter(y=>y>=0):g.map((y,_)=>_);if(v.length)for(const y of He(v)){const _=Ja(f[y],u??"cho",g[y],40,a),C=[];for(const x of _){const k=[...g];k[y]=x;const w=k.join("");if(w!==m&&n.has(w)&&!C.includes(w)&&C.push(w),C.length>=2)break}if(C.length>=2)return{question:e,distractors:[m,...C]}}}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),d=Ja({cho:s.cho,jung:s.jung,jong:0},"cho",c,2,a);return d.length<2?null:{question:e,distractors:[c,...d]}}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),d=Ja({cho:qi,jung:s.jung,jong:0},"jung",c,2,a);return d.length<2?null:{question:e,distractors:[c,...d]}}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 d=0;d<n;d++)s+=d===i?"*":r[d];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 d=[...e],u=d.length;if(u<2||u>3)return null;const m=d.map(_=>Ee(_));if(m.some(_=>!_))return null;const h=Qa(e,a,r);if(h.some(_=>!_))return null;const p=_=>a.get(_)??_,g=p(e),f=!!t&&(ft(t.cho)||ft(t.jung)||ft(t.jong)),b=!!s&&(ft(s.cho)||ft(s.jung)||ft(s.jong)),v=_=>{let C=u+"|"+_+"|";for(let x=0;x<u;x++)C+=x===_?"*":d[x];return C};let y;if(i!=null){if(i>=u||f&&!Pa(h[i],t))return null;y=[i]}else f?y=h.map((_,C)=>Pa(_,t)?C:-1).filter(_=>_>=0):y=Array.from({length:u},(_,C)=>C);for(const _ of He(y)){const C=n.get(v(_))??[],x=[],k=[];for(const B of C){if(B===e)continue;const W=[...B].map(M=>Ee(M)),P=m[_],T=W[_];if(!P||!T)continue;let j=0;if(P.cho!==T.cho&&j++,P.jung!==T.jung&&j++,P.jong!==T.jong&&j++,!(j<c||p(B)===g))if(b){const M=Qa(B,a,r)[_];M&&Pa(M,s)?x.push(B):k.push(B)}else x.push(B)}if(!x.length)continue;const w=He(x)[0],S=[],E=new Set([g,p(w)]),A=b?k:x.filter(B=>B!==w);for(const B of He(A)){const W=p(B);if(!E.has(W)&&(E.add(W),S.push(B),S.length>=2))break}if(!b&&S.length<2)for(const B of He(C)){if(B===e||B===w)continue;const W=p(B);if(!E.has(W)&&(E.add(W),S.push(B),S.length>=2))break}if(!(S.length<2))return{question:e,distractors:[w,...S]}}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 Bu(e){return Xi(e)?Zi:e}function Nu(e,t){return e==="id"?void 0:`${e}|${t?"asc":"desc"}`}function Du(e){const[t,a]=e.split("|");return{key:t,asc:a==="asc"}}function Eu(e){let t=e==null?"":String(e);return/^[=+\-@\t\r]/.test(t)&&(t=" "+t),/[",\n\r]/.test(t)?`"${t.replaceAll('"','""')}"`:t}function ju(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 Lu="__ihab_core_word_pool__";function qw(){typeof window<"u"&&window.dispatchEvent(new CustomEvent("wordpool:update"))}function Mu(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[Lu]=r,qw()}function vo(){return globalThis[Lu]??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 Pu(e){yo.__ihabTrainingTimeLogger=e}function Ji(e){Qi("time",()=>yo.__ihabTrainingTimeLogger?.(e))}function Ru(e){yo.__ihabTrainingCompletionLogger=e}function es(e){Qi("completion",()=>yo.__ihabTrainingCompletionLogger?.(e))}function $u(e){yo.__ihabCrosswordLogger=e}function Iu(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 zu(e){return e.filter(t=>t.correct===!1)}let Ou=null,Fu=null,Wu=null;function Hu(e){Ou=e}function Vu(e){Fu=e}function Gu(e){Wu=e}async function qu(e,t){try{return await Ou?.(e,t)??null}catch{return null}}async function Yu(){try{return await Fu?.()??null}catch{return null}}async function Uu(e,t){try{return await Wu?.(e,t)??null}catch{return null}}const os=globalThis;function Ku(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 Zu=ar;function Xu(e,t){return`${e}/${ar(t)}.mp3`}function Qu(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`,d=`${t}/${c}`;try{if(await ei(d)){const u=await Oo(d);if(u)return u}}catch{}if(e.generator)try{const u=await e.generator(s,d,e);if(u)return u}catch{}try{const u=`/api/tts?word=${encodeURIComponent(s)}&voice=${encodeURIComponent(a)}&speed=${encodeURIComponent(String(r))}`;return await fetch(u,{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 Ju(e){return new Date(e).toLocaleDateString("ko-KR",{timeZone:xo,year:"numeric",month:"short",day:"numeric"})}function ep(e){return new Date(e).toLocaleString("ko-KR",{timeZone:xo,year:"numeric",month:"long",day:"numeric",hour:"2-digit",minute:"2-digit"})}function tp(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 ap(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 op(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 rp(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),d=Math.floor(s/30),u=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(d,11)}):t("store.time.yearsAgo",{n:u})}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,d,u]=s.split("-"),m=r?d:String(Number(d)),h=r?u:String(Number(u));return`${c}${a}${m}${a}${h}${n?".":""}`}function np(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 ip(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 sp(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 Yw=[{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"}]}],Uw=[{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 lp(e){ss=e}function Qr(){return ss?.topicTypes??Yw}function ls(){return ss?.trainingTypes??Uw}const cp="ihab_theme",Kw="light";function cs(){try{const e=localStorage.getItem(cp);if(e==="light"||e==="dark"||e==="auto")return e}catch{}return Kw}function ds(e){try{document.documentElement.setAttribute("data-theme",e),localStorage.setItem(cp,e)}catch{}}function dp(){ds(cs())}const up="ihab_font_scale",Zw="medium",Xw=["medium","large1","large2","large3"];function us(){try{const e=localStorage.getItem(up);if(Xw.includes(e))return e}catch{}return Zw}function ps(e){try{document.documentElement.setAttribute("data-font-scale",e),localStorage.setItem(up,e)}catch{}}function pp(){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:[]},Qw={LISTEN_IN_NOISE:3,SHORT_STORY:2,LONG_STORY:1,ORDERING_SENTENCE:2};let hs=null,hp=null,Oa=null;function ms({counts:e,forceRefresh:t}={}){const a=Object.assign({},Qw,e||{}),r=Ur(),n=ka(new Date(`${r}T00:00:00+09:00`).getTime()-864e5),i=JSON.stringify(a);if(!t&&hp===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),hp=r,hs=i,Oa={today:s,yesterday:{date:n,countsKey:i,selection:c}},{today:nr,yesterday:ir}}function mp(){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 Jw(){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 Jw();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||""),d=Object.assign({},n,{training_type:i,category_0:s,category_1:c});i==="LISTEN_IN_NOISE"?Ra.push(d):i==="SHORT_STORY"?$a.push(d):i==="LONG_STORY"?Ia.push(d):i==="ORDERING_SENTENCE"&&za.push(d)}}}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 bp(){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."}],gp=[{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 e4(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,fp=null,vp=null;function t4(){const e=vo();if(e&&e.entries.length>0){const t=Ka();if(en&&fp===e&&vp===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,fp=e,vp=t,en}return[]}const ea=new Proxy([],{get(e,t){const a=t4(),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,yp=null;function eo(){const e=vo();if(xs&&yp===e)return xs;const t=new Map;for(const a of ea)a.w&&t.set(a.w,a.pron);return xs=t,yp=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 a4=0;function Tt(e){return`${e}-rt-${++a4}`}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 xp=null,Cp=null;function cr(e){return e==null?"":Array.isArray(e)?e.slice().sort().join(","):e}function _p(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!==xp||a!==Cp)&&(an.clear(),xp=t,Cp=a);const r=_p(e);return an.has(r)||an.set(r,r4(e)),an.get(r)}function o4(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 r4(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,d=e.phonemeView==="pron"?"pron":"char",u=Math.max(1,e.contrastCount??1),m=t==="cho"||t==="jung"||t==="jong",h=m&&u>=2,p=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?[o4(r),f?N=>f.has(bo(N)):null].filter(N=>N!=null):[],v=t==="random"||t===null,y=v||p,_=v||h||p;let C=ea.filter(N=>!N.w||s&&(!N.grade||!s.has(N.grade))?!1:_?!0:Array.isArray(N.p)&&N.p.length>0);g&&(C=C.filter(N=>{for(const L of g)if(hw(N.w,L))return!0;return!1})),b.length>0&&(C=C.filter(N=>{const L=d==="pron"?Ft(N.w):N.w;return b.every(R=>R(L))})),n&&(C=C.filter(N=>N.w[0]===n));let x;if(i){const N=new Set;for(const L of C)if(N.add(L.w),Array.isArray(L.p))for(const R of L.p)N.add(R);if(y)for(const L of ea)L.w&&N.add(L.w);x=lr(N)}else{const N=new Set;for(const L of C)if(N.add(L.w),Array.isArray(L.p))for(const R of L.p)N.add(R);if(y)for(const L of ea)L.w&&N.add(L.w);x=N}let k=null;if(h){const N=new Set;for(const L of ea)L.w&&N.add(L.w);k=i?lr(N):N}const w=C.filter(N=>x.has(N.w)),S=600,E=Array.from(x),A=E.length>S?ta(E,S):E,B=p&&r!=null&&(ft(r.cho)||ft(r.jung)||ft(r.jong)),W=2500,P=new Map;if(p&&!B&&u>=2){for(const N of E){const L=bo(N),R=P.get(L);R?R.push(N):P.set(L,[N])}for(const[N,L]of P)L.length>W&&P.set(N,ta(L,W))}const T=ci(),j=B?wi(r,E,T,c,d,Ft):null,M=500,H=1500,ae=e.fullCount?w:t==="random"?w.length>M?ta(w,M):w:w.length>H?ta(w,H):w,X=Ka(),oe=[];for(const N of ae){let L;const R=Ft(N.w);if(h)L=vw(N.w,t,u,k,24).filter(z=>Ft(z)!==R);else if(p)B?L=(j.get(N.w)??[]).filter(z=>Ft(z)!==R):u<=1?L=Pr(N.w,X,{okSet:x,pronOf:Ft,decompOf:T,sameStructureOnly:!1}):L=(P.get(bo(N.w))??[]).filter(z=>{if(z===N.w||Ft(z)===R)return!1;const G=yw(N.w,z);return u>=5?G>=5:G===u});else if(v)L=A.filter(z=>z!==N.w&&z.length===N.w.length&&Ft(z)!==R);else{const z=t;L=Pr(N.w,X,{kind:z,okSet:x,pronOf:Ft,decompOf:T,sameStructureOnly:!1}),L.length===0&&(L=(A.length>30?ta(A,30):A).filter(G=>G!==N.w&&di(N.w,G)===t&&Ft(G)!==R))}if(c&&L.length>0&&(m||p&&!B)){const z=T(Ft(N.w));L=L.filter(G=>!Ko(z,T(Ft(G))))}L.length!==0&&oe.push({word:N,usable:L})}return oe}async function wp(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 d=Cs(c.usable,n);if(d.length<n)continue;const u=He([c.word.w,...d]);s.push({id:Tt(e+"-item"),index:s.length+1,word:c.word.w,syllables:c.word.s,choices:u,answerIndex:u.indexOf(c.word.w)})}return s}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)return[];const i=[],s=He([...n]);for(const c of s){if(i.length>=a)break;const d=c.word.w,u=[...c.word.pron||d],m=tn(u);if(!m)continue;const h=n.filter(f=>f.word.w!==d&&f.word.s===c.word.s&&!(f.word.pron||f.word.w).includes(m)&&f.word.pron!==c.word.pron);if(h.length<r)continue;const p=Cs(h.map(f=>f.word.w),r);if(p.length<r)continue;const g=He([d,...p]);i.push({id:Tt("HPI-item"),index:i.length+1,targetSyllable:m,word:d,choices:g,answerIndex:g.indexOf(d)})}return i}async function i4(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 d=tn(i.usable);c=Math.random()<.5?[i.word.w,d]:[d,i.word.w]}return{id:Tt("SOD-item"),index:n+1,word:i.word.w,pair:c,same:s}}).filter(r=>!!r)}async function s4(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(p=>p.word.w),s=new Map(n.map(p=>[p.word.w,p.word.pron])),c=p=>(s.get(p)||p)[0]??"",d={};for(const p of n){const g=c(p.word.w);g&&(d[g]||(d[g]=[]),d[g].push(p.word.w))}const u=Object.entries(d).filter(([,p])=>p.length>=2).map(([p])=>p);if(u.length===0)return[];const m=[],h=He([...u]);for(let p=0;m.length<a&&p<a*4;p++){const g=h[p%h.length],f=d[g];if(f.length<2)continue;const b=He([...f]),v=b[0],y=b[1];if(!v||!y||v===y||(s.get(v)||v)===(s.get(y)||y))continue;const _=s.get(y)||y,C=i.filter(w=>c(w)!==g&&w!==v&&w!==y&&w.length===y.length&&(s.get(w)||w)!==_);if(C.length<r)continue;const x=Cs(C,r);if(x.length<r)continue;const k=He([y,...x]);m.push({id:Tt("SWS-item"),index:m.length+1,sourceWord:v,targetSyllable:g,word:y,choices:k,answerIndex:k.indexOf(y)})}return m}function kp(e,t,a){return ta(e,t).map((r,n)=>{const i=tn(r.usable)??"",s=[...r.word.w],c=[...i],d=s.findIndex((m,h)=>m!==c[h]),u=He(r.usable.filter(m=>m&&m!==i)).slice(0,2);return{id:Tt(a),index:n+1,word:r.word.w,original:r.word.w,changed:i,changedFrom:d>=0?s[d]:"",changedTo:d>=0?c[d]:"",distractors:u}})}async function Sp(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,d=new Set(c.map(g=>g.w)),u=Ui(d),m=t.phonemeView??"char",h=t.composition??null,p=[];for(const g of He(c)){if(p.length>=r)break;const f=Ki(g.w,h,n,m,u,null,null);if(!f)continue;const b=f.distractors[0],v=[...g.w],y=[...b],_=v.findIndex((C,x)=>C!==y[x]);p.push({id:Tt(a),index:p.length+1,word:g.w,original:g.w,changed:b,changedFrom:_>=0?v[_]:"",changedTo:_>=0?y[_]:"",distractors:f.distractors.slice(1)})}return p}async function l4(e){return Sp(2,e,"CS2-item")}async function c4(e){return Sp(3,e,"CS3-item")}async function d4(e){const t=(await Wt({...e,difficulty:"count",contrastCount:1})).filter(a=>a.word.s===1&&a.usable.length>=1);return kp(t,e.count??10,"CP1-item")}async function u4(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 kp(a,e.count??10,"CP2-item")}async function p4(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 h4(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 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 d=Wi(c.word.w,e.composition??null,r,i,n);if(!d)continue;const[u,...m]=d.distractors,h=[...c.word.w],p=h[0]===u?h[1]:h[0];s.push({id:Tt("D2-item"),index:s.length+1,original:c.word.w,word:c.word.w,dropped:p,missingResult:u,distractors:m})}return s}async function b4(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 d=Hi(c.word.w,e.composition??null,r,i,n);if(!d)continue;const[u,...m]=d.distractors,h=[...c.word.w];let p="";for(let g=0;g<h.length;g++)if(h.filter((f,b)=>b!==g).join("")===u){p=h[g];break}s.push({id:Tt("D3-item"),index:s.length+1,original:c.word.w,word:c.word.w,dropped:p,missingResult:u,distractors:m})}return s}async function g4(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 d=Vi(c.word.w,e.composition??null,r,i,n);if(!d)continue;const[u,...m]=d.distractors,h=c.word.w,p=h.startsWith(u)?h.slice(u.length):h.endsWith(u)?h.slice(0,h.length-u.length):"";s.push({id:Tt("DPC-item"),index:s.length+1,original:h,word:h,dropped:p,missingResult:u,distractors:m})}return s}async function f4(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 v4(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 y4(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 x4(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,...d]=s.distractors;n.push({id:Tt("DFC-item"),index:n.length+1,original:i.w,word:i.w,result:c,distractors:d})}return n}function C4(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[d,...u]=s.distractors;n.push({id:Tt("RCP-item"),index:n.length+1,base:i.w,word:i.w,missingConsonant:Ze[c.cho],remaining:d,distractors:u})}return n}const rn=new Map;let Ap=null,Tp=null;async function Bp(e,t={}){const a=vo(),r=Ka();(a!==Ap||r!==Tp)&&(rn.clear(),Ap=a,Tp=r);const n=`${e}:${_p(t)}`;if(rn.has(n))return rn.get(n);const i=await w4(e,t);return rn.set(n,i),i}const _4={SAME_SOUND_PICK:e=>wp("SSP",e),HEAR_AND_PICK_SAME:e=>wp("HPS",e),HEAR_AND_PICK_INCLUDED:e=>n4(e),SAME_OR_DIFF:e=>i4(e),STARTS_WITH_SAME_SOUND:e=>s4(e),LISTEN_AND_REMEMBER_ORDER:e=>f4(e),MERGE_2_SYLLABLES:e=>p4(e),MERGE_3_SYLLABLES:e=>h4(e),MERGE_2_PHONEMES:e=>v4(e),MERGE_3_PHONEMES:e=>y4(e),DROP_1_FROM_2SYLL:e=>m4(e),DROP_1_FROM_3SYLL:e=>b4(e),DROP_PART_FROM_COMPOUND:e=>g4(e),DROP_FINAL_CONSONANT_FROM_1SYLL:e=>x4(e),REMOVE_CONSONANT_AND_IDENTIFY_PHONEME:e=>C4(e),CHANGE_1_SYLL_IN_2SYLL:e=>l4(e),CHANGE_1_SYLL_IN_3SYLL:e=>c4(e),CHANGE_1_PHONEME_IN_1SYLL:e=>d4(e),CHANGE_1_PHONEME_IN_2SYLL:e=>u4(e)};async function w4(e,t={}){const a=_4[e];return a?await a(t):[]}async function k4(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];Bp(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 S4(e){return(await Wt({...e,fullCount:!0})).length}async function A4(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 d of c){const u=Ee(d);if(u&&(Ze[u.cho]!=="\u3147"&&r.add(Ze[u.cho]),n.add(dt[u.jung]),u.jong>0)){i.add(gt[u.jong]);const m=mo[u.jong];m&&m.forEach(h=>i.add(h))}}}return{cho:r,jung:n,jong:i,syllable:s}}const Np={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}},Dp={none:0,free:1,personal_standard:3,mgr_free:4,lite_word:5,lite_sentence:5,lite:6,standard:7,pro:8,enterprise:9},Ep={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 jp(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 Lp=5,Mp=5;function Pp({rank:e,voteCount:t,quota:a=5}){return e<a&&t>0}const Rp={selected:"ALREADY_SELECTED",added:"ALREADY_ADDED",rejected:"ALREADY_REJECTED"},nn="0.54.0";var T4=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:Np,PLAN_LIMITS:Ep,SHORT_STORIES:$a,TIER_RANK:Dp,TOPIC_TYPES:gp,TRAINING_TYPES:Jr,TRAINING_TYPE_I18N_KEY:ys,WORD_SUGGESTION_ACCOUNT_LIMIT:Mp,WORD_SUGGESTION_EXISTING_ERROR:Rp,WORD_SUGGESTION_WEEKLY_QUOTA:Lp,applyFontScale:ps,applyTheme:ds,buildChangeWholeSyllableProblem:Ki,buildDropCompoundProblem:Vi,buildDropContrast3Problem:Hi,buildDropContrastProblem:Wi,buildDropFinalConsonantProblem:Gi,buildMultiPartPosContrast:wi,buildPairIndex:nu,buildRemoveConsonantProblem:Yi,buildSyllableMaskIndex:Ui,bulkSetImageExistence:Ud,cardQuestionTitle:Au,checkImageExists:Yo,classifyPairDifficulty:di,clearAudioExistsCache:Fd,clearImageExistenceCache:li,clearPairIndexCache:xi,composeSyllable:ua,computeDailySelection:ms,configureImageResolver:qd,configureNoiseSettingsStore:Ku,configurePronunciationResolver:Hd,configureStorage:Jn,configureTTS:Od,configureTrainingCategories:lp,copyText:is,createDecompCache:ci,createTTSUrlResolver:Qu,dateToDb:sp,downloadCsvText:ju,downloadSound:Er,ensureTrainingDataLoaded:vs,escapeCsvField:Eu,fileExists:ei,filterContrastCandidates:_i,finalToPhoneme:Vr,firstChoseongOf:ui,formatCount:rr,formatDateKo:Ju,formatDateLocale:tp,formatDateLongKo:ep,formatDateLongLocale:ap,formatDatetimeKo:op,formatPhone:np,formatRelativeTime:Kr,formatTimeHM:Xr,formatYmd:Zr,getAssetBaseUrl:Xn,getDailySelection:mp,getElementAnalyser:Vo,getErrorMessage:Yr,getImageExistenceStats:Mr,getImageExistsCached:si,getImageResolver:Ma,getNoiseBaseUrl:ti,getPairIndex:Ka,getPlanTier:jp,getPronunciationResolver:ri,getSavedFontScale:us,getSavedTheme:cs,getSignedOrPublicUrl:Oo,getTTSFallbackUrlResolver:oi,getTTSUrlResolver:Fo,getTodayKst:Ur,getTopicTypes:Qr,getTrainingPools:bs,getTrainingTypes:ls,getWordPool:vo,hasQuestionWordConstraint:yu,hasSel:ft,hasStructureContrast:Ko,initFontScale:pp,initTheme:dp,isAllChoseong:hi,isManualOnlyType:Cu,isNetworkErrorMessage:Xi,isSyllablePattern:gi,isThisWeekPick:Pp,isTrainingDataLoaded:bp,isValidQuestionWord:xu,itemCorrectness:ts,jamoToNamesForSpeech:Tu,loadGameLeaderboard:Uu,loadMyGameRanks:Yu,loadNoiseSettings:rs,loadTrainingData:fs,logCrossword:Iu,logTrainingCompletion:es,logTrainingTime:Ji,matchSyllables:Qa,matchesChoseongSearch:Kd,matchesSyllablePattern:fi,matchesWordQuery:ho,mergeQuestionText:Oi,minimalPairDistractors:Pr,normalizeDate:ip,officialSoundPath:Xu,parseSortValue:Du,parseSyllable:Ee,patternToComposition:tu,phonemePartsOf:Su,pickEuRo:$i,pickEulReul:Li,pickEunNeun:Pi,pickIga:Ei,pickWaGwa:Ri,prewarmImageCache:Yd,primarySelPart:tr,readLevel:ni,reorderArray:Ii,resolveAssetUrl:Io,resolveSoundPath:Dr,resumeAudioMeter:Ho,sample:Qt,saveNoiseSettings:ns,searchAndRankWords:ou,setAssetBaseUrl:Id,setCrosswordLogger:$u,setGameLeaderboardLoader:Gu,setGameRanksLoader:Vu,setGameScoreSubmitter:Hu,setTrainingCompletionLogger:Ru,setTrainingTimeLogger:Pu,setWordPool:Mu,shuffle:He,sortToValue:Nu,soundOf:qr,speak:Pd,stopSpeaking:Rd,submitGameScore:qu,syllMatchesComp:Pa,syllableContrasts:Ja,syllableLength:bo,syllablePron:Fi,toBase64UrlSafe:Zu,toChoseong:pi,toItemResults:as,toKstHm:rp,toKstYmd:ka,toStandardPronunciation:bu,toStorageName:ar,toUserErrorMessage:Bu,validateSyllableSearchInput:au,withEuRo:vu,withEulReul:Mi,withEunNeun:gu,withIga:ji,withWaGwa:fu,wordContainsChoseong:Xd,wordContainsJongseong:Jd,wordContainsJungseong:Qd,wordHasNoCoda:mi,wordHasSyllableMatching:bi,wrongItems:zu});function B4(e){return typeof window>"u"?"":iw.sanitize(e,{USE_PROFILES:{svg:!0,svgFilters:!0},FORBID_TAGS:["script","use"],FORBID_ATTR:["xlink:href","href"]})}function N4(e){const[t,a]=l.useState(null),[r,n]=l.useState(null),[i,s]=l.useState(null),[c,d]=l.useState(null);return l.useEffect(()=>{if(!e||typeof e!="string"||!e.endsWith(".svg")){a(null),n(null),s(null);return}const u=e.split("/").pop();let m=e;u&&(e.startsWith("/")?m=Io(e):/^(Logo|Symbol)/i.test(u)?m=Io(`logo/${u}`):(/^https?:\/\//i.test(e)||e.startsWith("data:"),m=e)),a(m)},[e]),l.useEffect(()=>{if(!t)return;let u=!1;async function m(){try{let h=await fetch(t);h.ok||(h=await fetch(t));const p=h.headers.get("content-type")||"";if(u)return;if(p.includes("svg")){n("mask");return}if(p.startsWith("image/")){n("img");return}const g=await fetch(t);if(!g.ok)throw new Error("not ok");const f=await g.text();if(u)return;if(/^\s*<svg[\s>]/i.test(f)){const b=B4(f);if(!b){n("none");return}s(b),n("inline");return}n("none")}catch{u||n("none")}}return m(),()=>{u=!0}},[t]),l.useEffect(()=>{let u=!1,m=null;return r==="mask"&&t&&fetch(t).then(h=>{if(!h.ok)throw new Error("fetch failed");return h.blob()}).then(h=>{u||(m=URL.createObjectURL(h),d(m))}).catch(()=>{u||n("img")}),()=>{u=!0,m&&URL.revokeObjectURL(m),d(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:d}=e||{},u=r??"iconRenderer-icon",m=n??"iconRenderer-icon-image",h=i??"iconRenderer-icon-mask",p=s??"iconRenderer-icon-svg",g=typeof t=="string"?t:null,f=S_(g),{iconToUse:b,mode:v,svgText:y,blobUrl:_}=N4(g),C=(S,E={})=>o.jsx("span",{className:u,style:c,...E,children:S}),x=(S,E={})=>o.jsx("img",{src:S,alt:typeof a=="string"?a:a?String(a):"",className:m,...E});if(!t)return null;if(typeof t!="string")return C(t);if(t==="none")return C(o.jsx("span",{className:p,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 C(l.createElement(f,{className:p,size:typeof d=="number"?d:20}),{"aria-hidden":"true"})}catch{}if(b&&b.endsWith(".svg")){if(v==="mask"){const S={"--icon-url":_?`url(${_})`:`url(${b})`};return C(o.jsx("span",{className:h,style:S}),{"aria-hidden":"true"})}return v==="img"?C(x(b,{onError:S=>{S.currentTarget.onerror=null,S.currentTarget.style.display="none"}}),{"aria-hidden":"true"}):v==="inline"?C(o.jsx("span",{className:p,dangerouslySetInnerHTML:y?{__html:y}:void 0}),{"aria-hidden":"true"}):C(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:S=>{S.currentTarget.onerror=null,S.currentTarget.style.display="none"}});const k=typeof d=="number"?d:20,w=`<svg width="${k}" height="${k}" 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 C(o.jsx("span",{className:p,dangerouslySetInnerHTML:{__html:w}}),{"aria-hidden":"true"})}function $p({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 D4=".ihabdevteam-core-scope .error-state__icon{color:var(--color-error)}";J(D4);function Ip({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 E4=".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(E4);function zp({icon:e,title:t,description:a,cta:r,tone:n="main",disabled:i=!1,onClick:s,className:c=""}){const d=()=>{i||s?.()};return o.jsx("section",{role:"button",tabIndex:i?-1:0,"aria-disabled":i||void 0,"aria-label":t,onClick:d,onKeyDown:u=>{(u.key==="Enter"||u.key===" ")&&(u.preventDefault(),d())},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 Op({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 j4=".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(j4);function Fp({title:e="",lines:t=[],notices:a=null,children:r,variant:n="default",dismissible:i=!1,className:s=""}){const{t:c}=ge.useTranslation(),[d,u]=l.useState(!1),m=l.useCallback(()=>u(!0),[]);if(d)return null;const h=`notice-box notice-box--${n} body-2 ${s}`.trim();if(a&&Array.isArray(a)&&a.length)return o.jsx("div",{className:h,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,v)=>o.jsx("span",{className:"notice-box__line body-3",children:b},v))}):g.children??null})]},f))});const p=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:h,role:"note",children:[p,i&&o.jsx("button",{className:"notice-box__dismiss",onClick:m,"aria-label":c("common.close","\uB2EB\uAE30"),children:"\xD7"})]})}var L4=".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(L4);var M4=".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--inline{position:static}.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(M4);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(d=>!d.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:d="dialog",ariaLabel:u="",children:m,backdrop:h=!1,isMobilePopup:p=!1,useBorder:g=!0,header:f}=e||{},b=l.useRef(null),[v,y]=l.useState({position:"fixed",left:0,top:-9999}),[_,C]=l.useState(!1),[x,k]=l.useState("bottom"),[w,S]=l.useState(!1),[E,A]=l.useState(!1),B=!t&&!a,W=l.useCallback((M=!1)=>{if(E&&p)return;const H=a?a.getBoundingClientRect():t;if(!H||!b.current)return;const ae=b.current,{offsetWidth:X,offsetHeight:oe}=ae,N=window.innerWidth,L=window.innerHeight,R=N-H.right,z=H.left,G=H.top,K=L-H.bottom;let O=0,q=0,F="top";if(G>=oe+r)F="top",q=H.top-r-oe,O=H.left+H.width/2-X/2;else if(K>=oe+r)F="bottom",q=H.bottom+r,O=H.left+H.width/2-X/2;else if(R>=X+r)F="right",O=H.right+r,q=H.top+H.height/2-oe/2;else if(z>=X+r)F="left",O=H.left-r-X,q=H.top+H.height/2-oe/2;else{const me=Math.max(G,K,R,z);me===G?(F="top",q=H.top-r-oe,O=H.left+H.width/2-X/2):me===K?(F="bottom",q=H.bottom+r,O=H.left+H.width/2-X/2):me===R?(F="right",O=H.right+r,q=H.top+H.height/2-oe/2):(F="left",O=H.left-r-X,q=H.top+H.height/2-oe/2)}const se=Number(n)||8;O=Math.min(Math.max(O,se),N-X-se),q=Math.min(Math.max(q,se),L-oe-se);const Q=Math.round(O),re=Math.round(q);M&&b.current?(b.current.style.left=`${Q}px`,b.current.style.top=`${re}px`,b.current.dataset.placement=F):(k(F||x),y({position:"fixed",left:Q,top:re}),S(!0))},[E,p,a,t,r,n,x]);l.useLayoutEffect(()=>{if(B)return;if(E&&p){y({position:"fixed",left:"50%",top:"50%",transform:"translate(-50%, -50%)",width:"calc(100% - 40px)",maxWidth:"calc(100% - 40px)"}),S(!0);return}W();const M=requestAnimationFrame(()=>W());return()=>cancelAnimationFrame(M)},[t,a,r,m,n,B,E,p,W]),l.useEffect(()=>{if(B||E&&p||!b.current||typeof ResizeObserver>"u")return;const M=new ResizeObserver(()=>{t&&W()});return M.observe(b.current),()=>M.disconnect()},[t,m,n,B,E,p,W]),l.useEffect(()=>{if(B||E&&p)return;const M=()=>W(!0);return window.addEventListener("resize",M),document.addEventListener("scroll",M,{passive:!0,capture:!0}),()=>{window.removeEventListener("resize",M),document.removeEventListener("scroll",M,{capture:!0})}},[t,r,m,n,B,E,p,W]),l.useEffect(()=>{if(typeof window>"u"||!window.matchMedia)return;const M=window.matchMedia("(max-width: 768px)"),H=()=>A(!!M.matches);H();try{M.addEventListener?M.addEventListener("change",H):M.addListener(H)}catch{try{M.addListener(H)}catch{}}return()=>{try{M.removeEventListener?M.removeEventListener("change",H):M.removeListener(H)}catch{}}},[]);const P=l.useRef(!1),T=l.useCallback((M=!1)=>{if(!(_||P.current)){if(P.current=!0,M){C(!0);try{i&&i()}catch{}return}C(!0),setTimeout(()=>{i&&i()},200)}},[_,i,C]);l.useEffect(()=>{const M=X=>{const oe=b.current;if(!oe)return;const N=X.target;if(N&&!oe.contains(N)){try{if(N.closest&&N.closest("[data-tooltip-ignore]"))return}catch{}s&&T(!0)}},H=X=>{const oe=b.current;if(!oe)return;const N=X.target;if(N&&!oe.contains(N)){try{if(N.closest&&N.closest("[data-tooltip-ignore]"))return}catch{}s&&T(!0)}},ae=X=>{if(X.key==="Escape"){X.stopPropagation(),T();return}if(X.key==="Tab"){const oe=b.current;if(!oe)return;const N=oe.querySelectorAll(dr);if(!N||N.length===0)return;const L=N[0],R=N[N.length-1],z=document.activeElement;X.shiftKey?z===L&&(X.preventDefault(),R.focus()):z===R&&(X.preventDefault(),L.focus())}};return document.addEventListener("pointerdown",M,!0),document.addEventListener("click",H,!0),document.addEventListener("keydown",ae),()=>{document.removeEventListener("pointerdown",M,!0),document.removeEventListener("click",H,!0),document.removeEventListener("keydown",ae)}},[i,s,T]),l.useEffect(()=>{const M=()=>{T(!0)};return typeof document<"u"&&document.addEventListener("speechear-close-tooltips",M),()=>{typeof document<"u"&&document.removeEventListener("speechear-close-tooltips",M)}},[T]);const j=o.jsxs("div",{ref:b,className:`tooltip-content ${B?"tooltip-content--inline":""} ${g?"tooltip-content--bordered":""} ${_?"is-closing":""} ${c} ${E&&p?"is-mobile":""}`,role:d,"aria-label":u||void 0,style:B?{}:{...v,visibility:w?"visible":"hidden"},tabIndex:-1,"data-placement":x,"data-left":B?"":v.left,"data-top":B?"":v.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}),m]});if(B||typeof document>"u")return j;if(h||E&&p){const M=o.jsxs("div",{className:"tooltip-portal",children:[o.jsx("div",{className:"tooltip-backdrop",onClick:()=>{s&&T(!0)}}),j]});return qt.createPortal(M,document.body)}return qt.createPortal(j,document.body)}var P4='.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(P4);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 R4=".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(R4);function to(e){const{anchorRect:t,title:a,items:r,activeIndex:n=-1,showIndex:i=!0,onClose:s,offset:c=12}=e||{},d=Array.isArray(r)?r:r?[r]:[];return!d.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:d.map((u,m)=>o.jsxs("li",{className:`tooltip-description__item body-3${m===n?" tooltip-description__item--active":""}`,children:[i&&d.length>1&&o.jsxs("span",{className:"tooltip-description__index button-1",children:[m+1,"."]}),o.jsx("span",{children:u})]},m))})]})})}function ie(e){const{size:t=48,type:a,htmlType:r,href:n,target:i,rel:s,icon:c,rightIcon:d,label:u,count:m,subLabel:h,children:p,ariaLabel:g,variant:f="default",align:b="center",selected:v,toggleable:y=!1,disabled:_=!1,useLabel:C=!0,useBorder:x=!0,useBG:k=!0,useDisabledCovered:w=!1,useDisabledInvisible:S=!1,width:E,minWidth:A,onClick:B,onDisabledClick:W,showTooltipInfo:P=!1,tooltipInfoText:T=null,tooltipDescription:j=null,iconSize:M="medium",iconColor:H,shape:ae="rounded",color:X,className:oe,...N}=e,L=typeof t=="string"&&isNaN(Number(t))?t.toLowerCase():String(Number(t)||48),R=L.match(/^\d+$/)?`button${L}`:`button-${L}`,z=Number(t),G=!isNaN(z)&&z<40?"button-2":"button-1",K=u??p,O=_||!!N.disabled,q=O?w?"disabled-covered":S?"disabled-invisibled":"disabled":f,F=q?`button--variant-${q}`:"",se=b?`button--align-${b}`:"",Q=ae?`button--shape-${ae}`:"",re=typeof H=="string"&&H.startsWith("--")?`var(${H})`:H,me={...E?{width:typeof E=="number"?`${E}px`:E}:{},...A?{minWidth:typeof A=="number"?`${A}px`:A}:{},...x?{}:{"--button-border":O?"0":"1px solid transparent"},...re?{"--button-icon-color":re}:{},...X?{"--color-main":X}:{}},ce=C===!1?"":K,$=Array.isArray(ce)?ce.length>0:!!ce,ee=!!d,ue=a??($||c||ee?"bar":"dot"),ke=`${R}--${ue}`,Ce=l.useRef(null),I=l.useRef(O),[Z,te]=l.useState(!!v),[fe,De]=l.useState(!1),[ze,Re]=l.useState(null),Me=l.useCallback(()=>De(!1),[]);l.useEffect(()=>{(P||j)&&O&&fe&&(De(!1),Re(null))},[O,P,j,fe]),l.useEffect(()=>{typeof v=="boolean"&&te(v)},[v]),l.useEffect(()=>{if(I.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)}I.current=O},[O]);const Ye=typeof v=="boolean"?!!v:Z,Ne=y||typeof v=="boolean"?Ye?"true":"false":void 0,Ve=xe("button",R,ke,F,se,Q,Ye?"is-selected":null,k?null:"button--no-bg",oe),Fe=`button__icon button__icon--${M}`,be=Array.isArray(h)?h:h!==void 0?[h]:[],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=h!==void 0;return o.jsxs("span",{className:`button__label-text${Oe?" button__label-text--has-sub":""}`,children:[ce,m!=null&&o.jsx("span",{className:"button__count",children:m}),Oe&&o.jsx("span",{className:"button__sub-label-text caption-1",children:h})]})},We=Oe=>{O||(typeof N.onMouseLeave=="function"&&N.onMouseLeave(Oe),typeof v!="boolean"&&te(!1),Oe.currentTarget.blur())},Le=Oe=>{if(O){W?.(Oe);return}typeof v!="boolean"&&y&&te(Qe=>!Qe),B?.(Oe)},Ge=l.useCallback(()=>{!O&&(P||j)&&(De(!0),Re(Ce.current?.getBoundingClientRect()??null))},[O,P,j]),vt=l.useCallback(()=>{(P||j)&&(De(!1),Re(null))},[P,j]),Ue={...N};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 K=="string"?K:null)??void 0,ut=typeof g=="string"?g:typeof K=="string"?K: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=()=>ue==="dot"?o.jsxs(o.Fragment,{children:[Pe(c),$&&o.jsx("span",{className:`button__label ${G}`,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)}),$&&o.jsx("span",{className:`button__label ${G}`,children:Ke()})]}),ee&&o.jsx("span",{className:"button__right",children:Pe(d)})]}):o.jsxs(o.Fragment,{children:[c&&o.jsx("span",{className:"button__left",children:Pe(c,g??K)}),$&&o.jsx("span",{className:`button__label ${G}`,children:Ke()}),ee&&o.jsx("span",{className:"button__right",children:Pe(d)})]}),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&&!W},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 N.onPointerEnter=="function"&&N.onPointerEnter(Oe)},onPointerLeave:Oe=>{vt(),!O&&typeof N.onPointerLeave=="function"&&N.onPointerLeave(Oe)},onFocus:Oe=>{Ge(),!O&&typeof N.onFocus=="function"&&N.onFocus(Oe)},onBlur:Oe=>{We(Oe),vt(),!O&&typeof N.onBlur=="function"&&N.onBlur(Oe)},children:rt()}),fe&&j?o.jsx(to,{anchorRect:ze,title:j.title,items:j.items,onClose:Me}):fe&&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 $4=".ihabdevteam-core-scope .promo-banner-bg{border-radius:inherit;inset:0;pointer-events:none;position:absolute}";J($4);var I4=".ihabdevteam-core-scope .promo-banner-bg-main{background:linear-gradient(45deg,var(--color-main),var(--color-sub))}";J(I4);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 z4=".ihabdevteam-core-scope .promo-banner-bg-soft{background:var(--color-main-a10)}";J(z4);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 O4=".ihabdevteam-core-scope .promo-banner-bg-sub{background:var(--color-sub)}";J(O4);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 F4=".ihabdevteam-core-scope .promo-banner-bg-deep{background:linear-gradient(135deg,var(--color-darkMain),var(--color-darkSub))}";J(F4);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 W4=".ihabdevteam-core-scope .promo-banner-bg-soft-sub{background:var(--color-sub-a10)}";J(W4);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 H4=".ihabdevteam-core-scope .promo-banner-bg-warm{background:var(--color-warn)}";J(H4);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 V4=".ihabdevteam-core-scope .promo-banner-bg-dark{background:var(--color-lightBlack)}";J(V4);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 G4=".ihabdevteam-core-scope .promo-banner-bg-radial{background:radial-gradient(circle at 15% 20%,var(--color-main) 0,var(--color-sub) 100%)}";J(G4);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 q4=".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(q4);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 Y4=".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(Y4);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 U4=".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(U4);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 K4=".ihabdevteam-core-scope .promo-banner-bg-success{background:var(--color-success)}";J(K4);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 Z4=".ihabdevteam-core-scope .promo-banner-bg-naver{background:linear-gradient(90deg,#03c75a 0,var(--color-main) 100%)}";J(Z4);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 X4=".ihabdevteam-core-scope .promo-banner-bg-instagram{background:linear-gradient(45deg,#f9ce34,#ee2a7b 50%,#6228d7)}";J(X4);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 Wp=[{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=v=>Math.max(a,Math.min(r,Number(v))),[c,d]=l.useState(()=>{try{const v=localStorage.getItem(e),y=v?Number(v):1;return Number.isFinite(y)?y:1}catch{return 1}});l.useEffect(()=>{try{localStorage.setItem(e,String(c))}catch{}},[e,c]);const u=v=>{d(typeof v=="function"?y=>s(v(y)):s(v))},m=()=>u(v=>+(v+n).toFixed(6)),h=()=>u(v=>+(v-n).toFixed(6)),p=c<r-Number.EPSILON,g=c>a+Number.EPSILON,f=Math.round(t*c),b=Math.round(f*i);return{scale:c,setScale:u,increase:m,decrease:h,canIncrease:p,canDecrease:g,fontSize:f,lineHeight:b}}const ln=l.createContext(null);function Q4(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=d=>n(d.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"&&Q4(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 ",Hp=(()=>{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=Hp?`${e}${tl}${Hp}`:e,()=>{document.title=a}},[e,t])}function Vp(){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 Gp(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 d=l.useCallback(()=>{a({current:"",next:"",confirm:""}),n(null)},[]),u=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 m=e?await e(t.current,t.next):null;if(s(!1),m){n({type:"error",text:m});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:u,reset:d}}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 qp(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 Yp(e){const{t}=ge.useTranslation(),[a,r]=l.useState({}),[n,i]=l.useState(null),[s,c]=l.useState(null),[d,u]=l.useState(null),m=l.useCallback(()=>{const p={};rl.forEach(g=>{p[g.id]=nl([...g.keys])}),r(p),typeof navigator<"u"&&navigator.storage?.estimate&&navigator.storage.estimate().then(g=>{u({usage:g.usage??0,quota:g.quota??0})}).catch(()=>{})},[]);l.useEffect(()=>{m()},[m]);const h=l.useCallback(async p=>{i(p);try{p==="wordData"?(localStorage.removeItem("word_data_cache"),localStorage.removeItem("word_data_version")):p==="pairIndex"?xi():p==="imageCache"&&li(),m(),e?.(t("settings.cache.cleared","\uCE90\uC2DC\uAC00 \uC0AD\uC81C\uB418\uC5C8\uC2B5\uB2C8\uB2E4."))}finally{i(null)}},[m,e,t]);return{cacheSizes:a,clearingId:n,confirmCacheId:s,setConfirmCacheId:c,storageEstimate:d,refreshCacheSizes:m,handleClearCache:h}}function Up(e){const[t,a]=l.useState(null),[r,n]=l.useState(null),i=l.useCallback(()=>{const s=Ka();if(s){const d=Object.values(s),u=d.filter(m=>m.cho.length+m.jung.length+m.jong.length>0).length;a({matched:u,total:d.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 Kp(e,t=[]){const[a,r]=l.useState(t),[n,i]=l.useState(null),[s,c]=l.useState(!1),[d,u]=l.useState(e),m=l.useRef(s);l.useEffect(()=>{m.current=s});const h=l.useRef(null);l.useEffect(()=>{if(m.current)return;const y=h.current;y!==null&&y.length===t.length&&y.every((_,C)=>_===t[C])||(h.current=t,r(t))},[t]);const p=l.useCallback(y=>{i(y),c(!1),u({...y})},[]),g=l.useCallback(()=>c(!0),[]),f=l.useCallback(()=>c(!1),[]),b=l.useCallback((y,_)=>{r(y),i(_),c(!1)},[]),v=l.useCallback(y=>{r(_=>_.filter(C=>C!==y)),i(null)},[]);return{list:a,setList:r,selected:n,setSelected:i,isEditing:s,setIsEditing:c,editForm:d,setEditForm:u,openDetail:p,startEditing:g,cancelEditing:f,commitEdit:b,remove:v}}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")}},J4={year:"",month:"",day:"",hour:"09",minute:"00",memo:""};function Zp(e=[]){const{list:t,setList:a,selected:r,setSelected:n,isEditing:i,setIsEditing:s,editForm:c,setEditForm:d,openDetail:u,commitEdit:m}=Kp(J4,e),{year:h,month:p,day:g}=_o(),[f,b]=l.useState({year:h,month:p,day:g,hour:"09",minute:"00",memo:""});return{visitHistory:t,visitForm:f,setVisitForm:b,setVisit:v=>y=>b(_=>({..._,[v]:y})),selectedVisit:r,setSelectedVisit:n,isEditingVisit:i,setIsEditingVisit:s,editVisitForm:c,setEditVisitForm:d,openVisitDetail:u,handleVisitSave:v=>{a(x=>[f,...x]);const{year:y,month:_,day:C}=_o();b({year:y,month:_,day:C,hour:"09",minute:"00",memo:""}),v?.()},handleVisitEditSave:()=>{m(v=>v.map(y=>y===r?c:y),c)},addVisit:v=>{a(y=>[v,...y])},removeVisit:v=>{a(y=>y.filter(_=>_!==v))},revertVisitEdit:(v,y)=>{a(_=>_.map(C=>C===y?v:C)),n(_=>_===y?v:_)}}}const Xp=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=Xp(t),n=Xp(a);return r<n?-1:r>n?1:0}),e5={year:"",month:"",day:"",hour:"09",minute:"00",memo:""};function Qp(e,t=[]){const a=l.useMemo(()=>cn(t),[t]),{list:r,setList:n,selected:i,setSelected:s,isEditing:c,setIsEditing:d,editForm:u,setEditForm:m,openDetail:h,commitEdit:p,remove:g}=Kp(e5,a),[f,b]=l.useState([]),{year:v,month:y,day:_}=_o(),[C,x]=l.useState({year:v,month:y,day:_,hour:"09",minute:"00",memo:""}),k=j=>M=>x(H=>({...H,[j]:M})),w=j=>{n(X=>cn([...X,C]));const{year:M,month:H,day:ae}=_o();x({year:M,month:H,day:ae,hour:"09",minute:"00",memo:""}),j?.()},S=()=>{p(j=>cn(j.map(M=>M===i?u:M)),u)},E=l.useCallback(j=>{g(j)},[g]),A=l.useCallback(j=>{e({year:j.year,month:j.month,day:j.day,hour:j.hour,minute:j.minute,memo:j.memo}),g(j)},[e,g]),B=l.useCallback(j=>{n(M=>M.filter(H=>H!==j)),b(M=>[j,...M]),s(null)},[n,s]),W=l.useCallback(j=>{n(M=>cn([...M,j]))},[n]),P=l.useCallback(j=>{n(M=>M.filter(H=>H!==j))},[n]),T=l.useCallback((j,M)=>{n(H=>H.map(ae=>ae===M?j:ae)),s(H=>H===M?j:H)},[n,s]);return{scheduleList:r,noShowList:f,addSchedule:W,removeSchedule:P,revertScheduleEdit:T,scheduleForm:C,setScheduleForm:x,setSchedule:k,selectedSchedule:i,setSelectedSchedule:s,isEditingSchedule:c,setIsEditingSchedule:d,editScheduleForm:u,setEditScheduleForm:m,openScheduleDetail:h,handleScheduleSave:w,handleScheduleEditSave:S,handleScheduleDelete:E,handleScheduleToVisit:A,handleScheduleNoVisit:B}}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 Jp(e){const[t,a]=l.useState(""),[r,n]=l.useState("25"),[i,s]=l.useState("all"),[c,d]=l.useState(1),u=l.useMemo(()=>e.filter(({item:g,status:f})=>!(t&&!g.memo.includes(t)||i!=="all"&&f!==i)),[e,t,i]),m=Math.max(1,Math.ceil(u.length/Number(r))),h=Math.min(c,m),p=l.useMemo(()=>u.slice((h-1)*Number(r),h*Number(r)),[u,h,r]);return{vapSearch:t,setVapSearch:a,vapPageSize:r,setVapPageSize:n,vapStatus:i,setVapStatus:s,vapPage:h,setVapPage:d,vapFiltered:u,vapTotal:m,vapPageItems:p}}function sl(e,t){const{t:a}=ge.useTranslation(),[r,n]=l.useState("25"),[i,s]=l.useState(1),[c,d]=l.useState(t);c!==t&&(d(t),i!==1&&s(1));const u=l.useMemo(()=>il.map(g=>({...g,label:a("visits.showN",{n:g.value})})),[a]),m=l.useCallback(g=>{n(g),s(1)},[]),h=Math.max(1,Math.ceil(e.length/Number(r))),p=Math.min(i,h);return{pageRows:l.useMemo(()=>e.slice((p-1)*Number(r),p*Number(r)),[e,p,r]),pageSizeProps:{options:u,value:r,onChange:m},paginationProps:{page:p,total:h,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 eh(){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:[]}),[d,u]=l.useState(!1),[m,h]=l.useState("\uC88C"),p=l.useCallback(f=>{const b=f.direction;i(v=>({...v,[b]:f})),c(v=>({...v,[b]:[f,...v[b]]})),t(!1)},[]),g=l.useCallback(f=>{const b=f.direction;i(v=>({...v,[b]:f})),u(!1)},[]);return{showDevice:e,setShowDevice:t,deviceDirection:a,setDeviceDirection:r,devices:n,setDevices:i,deviceHistory:s,setDeviceHistory:c,showDeviceList:d,setShowDeviceList:u,listForSide:m,setListForSide:h,handleDeviceSubmit:p,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 th(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 ah(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 oh(e,t){const{label:a,headValue:r,midValue:n,tailValue:i,includeMid:s=!0,headDisabled:c,midDisabled:d,tailDisabled:u,allOptionDisabled:m,groupLabel:h,labelAction:p}=t;return{label:a,...h?{groupLabel:h}:{},...p?{labelAction:p}:{},allOption:!0,allLabel:e("wordSearch.filter.positionAny",{defaultValue:"\uBB34\uAD00"}),...m?{allOptionDisabled:m}:{},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:d}]:[],{value:i,displayLabel:e("wordSearch.filter.positionTail",{defaultValue:"\uC5B4\uB9D0"}),disabled:u}]}}function rh(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(Rw).map(([e,{nucleus:t}])=>[e,t]));const t5={\uACE0\uC720\uC5B4:"\uACE0\uC720",\uD55C\uC790\uC5B4:"\uD55C\uC790",\uC678\uB798\uC5B4:"\uC678\uB798",\uD63C\uC885\uC5B4:"\uD63C\uC885"},a5={"\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"]},o5={difficulty:"\uB09C\uC774\uB3C4 \uB4F1\uAE09",syllables:"\uC74C\uC808 \uC218",syllable5plus:"5\uC74C\uC808 \uC774\uC0C1",partOfSpeech:"\uD488\uC0AC",wordType:"\uC720\uD615",posMap:a5,typeMap:t5};function r5(e,t,a=o5){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(d=>d===a.syllable5plus?c>=5:c===parseInt(d)))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"])]},n5=[...Ze],i5=[...dt],s5=gt.filter(e=>e!==""),ba=e=>e===ra?[]:Array.from(e),ra="__NO_CODA__",nh=[1,2,3,4],na=5,l5=12,ih="SYL_",ml=e=>`${ih}${e}`,c5=e=>Number(e.slice(ih.length));function dn(e){return e>=na?Array.from({length:l5-na+1},(t,a)=>na+a):[e]}const sh={cho:n5,jung:i5,jong:s5},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)},lh={};gl.jung.flat().forEach(({v:e})=>{for(const t of ba(e))lh[t]=e});const d5=new Set(gl.cho.flat().map(e=>e.v));function fl(e,t){return e==="cho"?d5.has(t)?t:null:e==="jung"?lh[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},u5="wt_filter",ch=e=>`wt_filter_${e}`;function dh(e){try{const t=localStorage.getItem(ch(e))??localStorage.getItem(u5);if(t)return JSON.parse(t)}catch{}return null}function p5(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 uh(e,t,a){const{t:r,i18n:n}=ge.useTranslation(),[i]=l.useState(()=>a?.resetOnMount?null:dh(e)),s=i?.contrastCount,c=typeof s=="number"&&Number.isFinite(s)?s:1,[d,u]=l.useState(Math.min(5,Math.max(1,c))),[m,h]=l.useState(i?.phonemeView==="pron"?"pron":i?.phonemeView==="direct"?"direct":"char"),[p,g]=l.useState(()=>p5(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(I=>I.cho||I.jung||I.syllable!=null||I.jong?I:f())},[]);const b=l.useMemo(()=>ft(p.cho)||ft(p.jung)||ft(p.jong)?"count":"random",[p.cho,p.jung,p.jong]),v=l.useRef(m==="char"?p.jung:null);l.useEffect(()=>{m==="char"&&(v.current=p.jung)},[m,p.jung]);const[y,_]=l.useState(a?.resetOnMount?!!a?.defaultImageOnly:i?.excludeNoImage??!0),[C,x]=l.useState(a?.resetOnMount?!1:i?.sameStructureOnly??!0),[k,w]=l.useState(Array.isArray(i?.gradeFilter)?i.gradeFilter:[]),[S,E]=l.useState(Array.isArray(i?.posFilter)?i.posFilter:[]),[A,B]=l.useState(Array.isArray(i?.wordTypeFilter)?i.wordTypeFilter:[]),W=l.useRef(a?.resetKey);l.useEffect(()=>{W.current!==a?.resetKey&&(W.current=a?.resetKey,g(f()),_(!1),x(!1),w([]),E([]),B([]),u(1))},[a?.resetKey]);const P=cl(),[T,j]=l.useState({cho:new Set,jung:new Set,jong:new Set,syllable:new Set}),[M,H]=l.useState(!1),[ae,X]=l.useState(null),oe=1,N=Math.max(1,[p.cho,p.jung,p.jong].filter(Boolean).length);l.useEffect(()=>{d<N&&u(N)},[N,d]);const[L,R]=l.useState(e);l.useEffect(()=>{if(L!==e){if(!a?.resetOnMount){const I=dh(e),Z=typeof I?.contrastCount=="number"&&Number.isFinite(I.contrastCount)?I.contrastCount:1;u(Math.min(5,Math.max(1,Z))),g(I?.composition??f()),_(I?.excludeNoImage??!0),x(I?.sameStructureOnly??!0),h(I?.phonemeView==="pron"?"pron":"char"),w(Array.isArray(I?.gradeFilter)?I.gradeFilter:[]),E(Array.isArray(I?.posFilter)?I.posFilter:[]),B(Array.isArray(I?.wordTypeFilter)?I.wordTypeFilter:[])}R(e)}},[e,L,a?.resetOnMount]),l.useEffect(()=>{if(!a?.resetOnMount&&L===e)try{localStorage.setItem(ch(e),JSON.stringify({contrastCount:d,composition:p,excludeNoImage:y,sameStructureOnly:C,phonemeView:m,gradeFilter:k,posFilter:S,wordTypeFilter:A}))}catch{}},[a?.resetOnMount,e,L,d,p,y,C,m,k,S,A]);const[z,G]=l.useState(0);ur("wordpool:update",()=>G(I=>I+1));const K=l.useRef(n.language);l.useEffect(()=>{K.current!==n.language&&(K.current=n.language,G(I=>I+1))},[n.language]),l.useEffect(()=>{if(!t.choseong)return;let I=!1;return A4({difficulty:b,excludeNoImage:y}).then(Z=>{I||(j(Z),Z.cho.size+Z.jung.size+Z.jong.size>0&&H(!0))}).catch(()=>{I||j({cho:new Set,jung:new Set,jong:new Set,syllable:new Set})}),()=>{I=!0}},[t.choseong,b,y,z]),l.useEffect(()=>{let I=!1;const Z=p,te=Z.cho?ba(Z.cho):null,fe=Z.jung?ba(Z.jung):null,De=Z.jong===ra,ze=De?null:Z.jong?ba(Z.jong):null,Re=Z.syllable!=null?dn(Z.syllable):null,Me=!!(te||fe||ze||De||Re);return S4({difficulty:t.difficulty?b:null,contrastCount:t.difficulty?d:1,composition:t.choseong&&Me?{cho:te,jung:fe,jong:ze,jongNone:De,syllable:Re}:null,excludeNoImage:y,sameStructureOnly:C,phonemeView:m==="pron"?"pron":"char",grade:k.length>0?k:null}).then(Ye=>{I||X(Ye)}).catch(()=>{I||X(null)}),()=>{I=!0}},[t.choseong,t.difficulty,b,d,p,m,y,C,z,k]),l.useEffect(()=>{M&&g(I=>{const Z={...I};let te=!1;return["cho","jung","jong"].forEach(fe=>{const De=I[fe];!De||De===ra||ba(De).some(ze=>T[fe].has(ze))||(Z[fe]=null,te=!0)}),I.syllable!=null&&t.fixedSyllable==null&&(I.syllable>=na?[...T.syllable].some(fe=>fe>=na)||(Z.syllable=null,te=!0):(!T.syllable.has(I.syllable)||I.syllable<oe)&&(Z.syllable=null,te=!0)),te?Z:I})},[T,M,oe,t.fixedSyllable]);const O=l.useMemo(()=>{const I=Z=>{const te=new Set;for(const fe of sh[Z])T[Z].has(fe)&&te.add(fe);return te};return{cho:I("cho"),jung:I("jung"),jong:I("jong")}},[T]),q=l.useMemo(()=>({exact:new Set(nh.filter(I=>T.syllable.has(I))),min:[...T.syllable].some(I=>I>=na)}),[T]),F=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]),se=l.useMemo(()=>({[F.trainOnset]:"cho",[F.trainVowel]:"jung",[F.trainCoda]:"jong"}),[F]),Q=l.useCallback((I,Z)=>({title:Z,items:I}),[]),re=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 I=[];if(t.choseong){const Z={value:ra,displayLabel:F.codaExclude},te=t.fixedNoCoda===!0,fe=(De,ze)=>{const Re=te&&De==="jong",Me={label:ze,groupLabel:F.phonemeGroup,allOption:!t.requireSyllable,allLabel:F.noLimit,allOptionDisabled:Re};if(m==="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([Z]),{...Me,groups:Ne}}const Ye=sh[De].map(Ne=>!Re&&O[De].has(Ne)?Ne:{value:Ne,disabled:!0});return{...Me,items:De==="jong"&&!t.requireCoda?[Z,...Ye]:Ye}};I.push(fe("cho",F.trainOnset)),I.push(fe("jung",F.trainVowel)),I.push(fe("jong",F.trainCoda))}if(I.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:F.gradeLabel}),t.partOfSpeech&&I.push(ul(P)),t.wordType&&I.push(pl(P)),t.choseong||t.fixedSyllable!=null){const Z=t.fixedSyllable;I.push({label:F.syllableCount,items:[...nh.map(te=>({value:ml(te),displayLabel:r("wordPairs.syllableN",{n:te,defaultValue:"{{n}}\uC74C\uC808"}),disabled:Z!=null?te!==Z:!q.exact.has(te)||te<oe})),{value:ml(na),displayLabel:r("wordPairs.syllableNPlus",{n:na,defaultValue:"{{n}}\uC74C\uC808 \uC774\uC0C1"}),disabled:Z!=null?na!==Z:!q.min}],allOption:!0,allOptionDisabled:Z!=null})}return t.choseong?I.push({label:F.exclude,displayLabel:F.selectLabel,multiple:!0,items:[F.excludeImage,F.sameStructure],labelInfo:Q(re)}):I.push({label:F.exclude,displayLabel:F.selectLabel,multiple:!0,items:[F.excludeImage],labelInfo:Q([re[0]])}),I},[t.choseong,t.partOfSpeech,t.wordType,t.requireSyllable,t.fixedSyllable,t.fixedNoCoda,t.requireCoda,oe,O,T,m,q,F,r,Q,re,P]),ce={...t.difficulty?{[F.diffPhonemeCount]:String(d)}:{},...(t.choseong||t.fixedSyllable!=null)&&p.syllable!=null?{[F.syllableCount]:ml(p.syllable)}:{},...t.choseong&&p.cho?{[F.trainOnset]:p.cho}:{},...t.choseong&&p.jung?{[F.trainVowel]:p.jung}:{},...t.choseong&&p.jong?{[F.trainCoda]:p.jong}:{},[F.exclude]:[...y?[F.excludeImage]:[],...C?[F.sameStructure]:[]],[F.gradeLabel]:k.map(I=>r("wordSearch.filter.grade",{n:Number(I),defaultValue:"{{n}}\uB4F1\uAE09"})),...t.partOfSpeech?{[P.partOfSpeech]:S}:{},...t.wordType?{[P.wordType]:A}:{}},$=l.useCallback((I,Z)=>{if(Z===F.diffPhonemeCount){const te=Number(I);te>=1&&u(te)}else if(Z===F.exclude)I===F.excludeImage?_(te=>!te):I===F.sameStructure&&x(te=>!te);else if(Z===F.syllableCount)g(te=>{if(!I||I===Dt)return{...te,syllable:null};const fe=c5(I);return{...te,syllable:te.syllable===fe?null:fe}});else if(Z===F.gradeLabel){if(!I||I===Dt){w([]);return}const te=I.replace(/\D/g,"");w(fe=>fe.includes(te)?fe.filter(De=>De!==te):[...fe,te])}else if(Z===P.partOfSpeech){if(!I||I===Dt){E([]);return}E(te=>te.includes(I)?te.filter(fe=>fe!==I):[...te,I])}else if(Z===P.wordType){if(!I||I===Dt){B([]);return}B(te=>te.includes(I)?te.filter(fe=>fe!==I):[...te,I])}else{const te=se[Z];if(!te)return;g(fe=>t.requireSyllable?I&&I!==Dt?{...fe,[te]:I}:fe:!I||I===Dt||fe[te]===I?{...fe,[te]:null}:{...fe,[te]:I})}},[F,se,P,t.requireSyllable]),ee=l.useCallback(I=>!t.partOfSpeech&&!t.wordType?!0:r5(I,{...t.partOfSpeech?{[P.partOfSpeech]:S}:{},...t.wordType?{[P.wordType]:A}:{}},P),[t.partOfSpeech,t.wordType,S,A,P]),ue=l.useCallback(I=>{I!==m&&(I!=="direct"&&m!=="direct"&&g(Z=>yl(Z,I,v.current)),h(I))},[m]),ke=l.useCallback(()=>({composition:p,contrastCount:d,excludeNoImage:y,sameStructureOnly:C,phonemeView:m,gradeFilter:k}),[p,d,y,C,m,k]),Ce=l.useCallback(I=>{g(I.composition),u(I.contrastCount),_(I.excludeNoImage),x(I.sameStructureOnly??!0),h(I.phonemeView),w(Array.isArray(I.gradeFilter)?I.gradeFilter:[])},[]);return{difficulty:b,contrastCount:d,composition:p,choseong:p.cho,excludeNoImage:y,sameStructureOnly:C,gradeFilter:k,posFilter:S,wordTypeFilter:A,matchesWordAttributes:ee,poolVersion:z,filterSections:me,filterSelected:ce,handleFilterSelect:$,phonemeView:m,setPhonemeView:ue,phonemeGroupLabel:F.phonemeGroup,wordCount:ae,getFilterSnapshot:ke,restoreFilterSnapshot:Ce}}function h5(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 ph(e,t,a,r,n,i,s=!0,c="char",d=[]){const[u,m]=l.useState({}),[h,p]=l.useState(!1),{cho:g=null,jung:f=null,jong:b=null,syllable:v=null}=r??{},y=d.length>0?d.slice().sort().join(","):"";return l.useEffect(()=>{i>0&&k4(n).catch(()=>{})},[i,n]),l.useEffect(()=>{let _=!1;return p(!0),(async()=>{const C=h5({cho:g,jung:f,jong:b,syllable:v}),x=`${g??""}_${f??""}_${b??""}_${v??""}_${y}`,k={};await Promise.all(e.map(async w=>{const S=fo[w.key];try{const E=await Bp(w.key,{difficulty:S.difficulty?t:null,contrastCount:S.difficulty?a:1,composition:S.choseong?C:null,count:5,excludeNoImage:n,sameStructureOnly:s,phonemeView:c,grade:d.length>0?d:null});E&&E.length>0?k[w.key]={id:`wt-${w.key}-${t}-${x}-${Date.now()}`,name:w.label,training_type:w.key,category_main_code:"WORD",iconColor:w.color,subTitle:w.subTitle,items:E,itemCount:E.length}:k[w.key]={id:`wt-${w.key}-empty`,name:w.label,training_type:w.key,category_main_code:"WORD",iconColor:w.color,subTitle:w.subTitle,items:[],itemCount:0,__empty:!0}}catch{k[w.key]=null}})),_||(m(k),p(!1))})(),()=>{_=!0}},[t,a,g,f,b,v,n,s,c,i,y]),{perTypeData:u,generating:h}}function m5(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 b5(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?b5(m5(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 hh(e){return e?!!(e.LISTEN_IN_NOISE?.length||e.SHORT_STORY?.length||e.LONG_STORY?.length||e.ORDERING_SENTENCE?.length):!1}const g5={LISTEN_IN_NOISE:3,SHORT_STORY:2,LONG_STORY:1,ORDERING_SENTENCE:2};function mh(e=!1,t=g5,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 bh(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,d]=l.useState(0),[u,m]=l.useState(!1);l.useEffect(()=>{let p=!1,g,f=0;const b=40,v=()=>{g!==void 0&&(clearInterval(g),g=void 0)};let y=!1;try{const x=new URLSearchParams(window.location.search),k=x.get("forceRefresh")||x.get("force");y=k==="1"||k==="true"}catch{}const _=x=>{t.current=x.today,a.current=x.yesterday,n(!0),m(!0),d(k=>k+1),p=!0,v()},C=async()=>{if(p)return;if(!y){const k=mh(!1,void 0,e);if(hh(k.today)){_(k);return}}try{await vs(3e3)}catch{}if(p)return;const x=mh(y,void 0,e);if(hh(x.today)){_(x);return}++f>=b&&(n(!0),m(!1),p=!0,v())};return C(),g=setInterval(C,250),()=>{p=!0,v()}},[e]);const h=l.useCallback(p=>{const g=i?a.current:t.current,f=i?t.current:a.current;return g?.[p]?.length?g[p]:f?.[p]?.length?f[p]:void 0},[i,c]);return{loaded:r,hasData:u,showYesterday:i,setShowYesterday:s,getTrainingPerType:h}}const wo=[];let hn=!1;function gh(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",gh),hn=!0),()=>{const t=wo.lastIndexOf(e);t>=0&&wo.splice(t,1),wo.length===0&&hn&&typeof document<"u"&&(document.removeEventListener("keydown",gh),hn=!1)}}function fh(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 vh(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(d=>!_l.has(d));if(i.length===0)return;let s=!1;const c=Array.from(new Set(i.map(d=>d.slice(0,d.lastIndexOf(":")))));return t(c).then(d=>{if(!(s||d.length===0)){for(const u of d)u.Meaning&&_l.set(mn(u.Word,u.Homonum??void 0),u.Meaning);r(u=>u+1)}}),()=>{s=!0}},[n,t]),l.useMemo(()=>{const i=n?n.split("|"):[],s=new Map;for(const c of i){const d=_l.get(c);d!=null&&s.set(c,d)}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 yh(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((d,u)=>{i.current&&clearTimeout(i.current),i.current=setTimeout(()=>{a(d),n(u)},e)},[e]),c=l.useCallback(()=>{i.current&&clearTimeout(i.current),a(null),n(null)},[]);return{payload:t,anchorRect:r,openAfterDelay:s,close:c}}function xh(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((h,p)=>{n(p),a(h),s(g=>g+1)},[]),d=l.useCallback(h=>c(h,"warning"),[c]),u=l.useCallback(h=>c(h,"normal"),[c]),m=l.useCallback(()=>a(""),[]);return{toastMessage:t,toastType:r,toastKey:i,showToast:c,showWarning:d,showNormal:u,clearToast:m}}const pr={blue:"#60A5FA",green:"#4ADE80",amber:"#FBBF24",purple:"#A78BFA",pink:"#F472B6"},hr=pr.blue,gn=pr.green,mr=pr.amber,fn=pr.purple,f5=pr.pink,v5=[{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:f5,subTitle:"\uC138 \uB2E8\uC5B4\uB97C \uB4E4\uC740 \uC21C\uC11C\uB300\uB85C \uCE74\uB4DC\uB97C \uC120\uD0DD\uD558\uC138\uC694."}]}];function Ch(){const{t:e}=ge.useTranslation();return l.useMemo(()=>{const t=Object.fromEntries(e4(e).map(r=>[r.key,r.label])),a={...t};return v5.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({}),d=l.useRef(null),u=l.useRef(null),m=l.useCallback(()=>{d.current&&c(e(d.current.getBoundingClientRect()))},[e]);l.useEffect(()=>{if(!n)return;m();const g=y=>{const _=y.target;r&&_.closest?.(r)||d.current?.contains(_)||u.current?.contains(_)||i(!1)};document.addEventListener("mousedown",g);const f=y=>{u.current?.contains(y.target)||(t==="reposition"?m():t==="close"&&i(!1))};t!=="ignore"&&window.addEventListener("scroll",f,!0);const b=()=>{a==="reposition"?m():a==="close"&&i(!1)};a!=="ignore"&&window.addEventListener("resize",b);const v=y=>{y.key==="Escape"&&i(!1)};return document.addEventListener("keydown",v),()=>{document.removeEventListener("mousedown",g),t!=="ignore"&&window.removeEventListener("scroll",f,!0),a!=="ignore"&&window.removeEventListener("resize",b),document.removeEventListener("keydown",v)}},[n,m,t,a,r]);const h=l.useCallback(()=>i(g=>!g),[]),p=l.useCallback(()=>i(!1),[]);return{open:n,setOpen:i,toggle:h,close:p,style:s,triggerRef:d,menuRef:u}}function wl(e,{mode:t="playback",autoStart:a=!1,onPlaySpeaker:r,onComplete:n,playMs:i=1100,feedbackMs:s=1500}={}){const[c,d]=l.useState([]),[u,m]=l.useState(0),[h,p]=l.useState("idle"),[g,f]=l.useState(null),[b,v]=l.useState([]),[y,_]=l.useState(null),[C,x]=l.useState(0),k=l.useRef(0),w=l.useCallback(N=>{k.current=typeof N=="function"?N(k.current):N,x(k.current)},[]),S=l.useRef(r),E=l.useRef(n);l.useEffect(()=>{S.current=r,E.current=n},[r,n]);const A=l.useRef([]),B=()=>{A.current.forEach(clearTimeout),A.current=[]},W=(N,L)=>{A.current.push(setTimeout(L,N))};l.useEffect(()=>()=>B(),[]);const P=c[u]?.id??null,T=l.useCallback(()=>{B(),p("playing"),v([]),_(null),w(0);let N=0;e.forEach((L,R)=>{W(N,()=>{m(R),f(L.id),S.current?.(L)}),W(N+1e3,()=>{f(null),v(z=>[...z,L.id])}),N+=1300}),W(N,()=>{p("done"),E.current?.({score:0,total:e.length})})},[e,w]),j=l.useCallback((N,L)=>{if(L>=N.length){p("done"),E.current?.({score:k.current,total:N.length});return}m(L),_(null),p("playing"),f(N[L].id),S.current?.(N[L]),W(i,()=>{f(null),p("waiting")})},[i]),M=l.useCallback(()=>{B();const N=He(e);d(N),w(0),v([]),j(N,0)},[e,j,w]),H=l.useCallback(()=>{t==="playback"?(d(e),T()):M()},[t,e,T,M]),ae=l.useCallback(()=>{B(),p("idle"),f(null),v([]),_(null),m(0),w(0),d([])},[w]);l.useEffect(()=>{a?H():ae()},[t,e.length,a]);const X=l.useCallback(N=>{h!=="waiting"||t==="playback"||(_(N),N===c[u]?.id&&w(L=>L+1),t==="exam"?(p("playing"),W(400,()=>j(c,u+1))):(p("feedback"),W(s,()=>j(c,u+1))))},[h,t,c,u,j,s,w]),oe=t==="playback"?e.length:c.length;return{bind:{activeSpeakerId:g,playedIds:b,selectedId:y,answerId:P,showFeedback:h==="feedback",clickable:h==="waiting",onSelectSpeaker:X},index:u,total:oe,score:C,phase:h,done:h==="done",start:H,reset:ae}}var y5=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:oh,buildSelectSection:ah,buildSyllableSection:th,buildWordTypeSection:pl,charToPronValue:fl,convertComposition:yl,fmtBytes:qp,lsBytes:nl,meaningKey:mn,pronToCharValue:vl,syllableToFilter:dn,today:_o,toggleAttributeFilter:rh,useAnchoredMenu:ao,useCacheManagement:Yp,useDailyTrainingSelection:bh,useDelayedHoverAnchor:yh,useDeviceManagement:eh,useDocumentTitle:ol,useEscToClose:fh,useFontScale:sn,useHoverAnchor:ko,useMediaQuery:oa,usePagedList:xh,usePasswordChange:Gp,useRelativeDay:Vp,useSoundCompassExam:wl,useTablePaging:sl,useTableSort:ll,useToastState:bn,useTrainingTypeLabels:Ch,useVisitAllPanel:Jp,useVisitHistory:Zp,useVisitSchedule:Qp,useWindowEvent:ur,useWordAttributeFilterKeys:cl,useWordDataStats:Up,useWordMeanings:vh,useWordTrainingDataGeneration:ph,useWordTrainingFilter:uh,valueToJamos:ba}),x5=".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(x5);function _h({title:e,description:t,actionLabel:a,onAction:r,bg:n,color:i,size:s="medium",actionVariant:c,titleColor:d,descriptionColor:u,className:m=""}){const h=n??i??"main",p=l.useRef(null),[g,f]=l.useState("main"),b=oa("(max-width: 767px)");l.useLayoutEffect(()=>{const _=p.current;_&&(d!==void 0&&_.style.setProperty("--promo-banner-bg-title",d),u!==void 0&&_.style.setProperty("--promo-banner-bg-description",u))},[d,u]),l.useLayoutEffect(()=>{const _=p.current;if(!_)return;const C=ks(_);f(C?.actionVariant??"main")},[h]);const v=xe("promo-banner",`promo-banner--${s}`,m),y=Js[h];return o.jsxs("div",{ref:p,className:v,role:"note",children:[o.jsx(y,{}),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(ie,{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 C5='.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(C5);function wh({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),d=c.length,[u,m]=l.useState(0),[h,p]=l.useState(!1),g=d>0?u%d:0;return l.useEffect(()=>{if(d<2||t<=0||h)return;const f=window.setInterval(()=>m(b=>(b+1)%d),t);return()=>window.clearInterval(f)},[d,t,h]),d===0?null:o.jsxs("section",{className:xe("top-banner",r),"aria-label":s,"aria-roledescription":"carousel",onMouseEnter:()=>p(!0),onMouseLeave:()=>p(!1),onFocus:()=>p(!0),onBlur:()=>p(!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))})}),d>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:d,index:b+1,defaultValue:`${d}\uAC1C \uC911 ${b+1}\uBC88\uC9F8 \uBC30\uB108`}),"aria-current":b===g,onClick:()=>m(b)},b))})]})}var _5=".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(_5);function w5({title:e,body:t,open:a=!1,onToggle:r,avatar:n,titleClassName:i="body-2",bodyClassName:s="body-2",className:c=""}){const{t:d}=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:u=>{if(u.key==="Enter"||u.key===" ")u.preventDefault(),r?.();else if(u.key==="ArrowDown"||u.key==="ArrowUp"){u.preventDefault();const m=u.currentTarget.closest('[role="list"]');if(!m)return;const h=Array.from(m.querySelectorAll("[data-accordion-header]")),p=h.indexOf(u.currentTarget);(u.key==="ArrowDown"?h[p+1]:h[p-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?d("accordion.collapse","\uC811\uAE30"):d("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 kh({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,d)=>o.jsx(w5,{title:c.title,body:c.body,avatar:c.avatar,open:d===i,onToggle:()=>s(d===i?-1:d),bodyClassName:n},d))})}var k5=".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(k5);var S5=".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(S5);function A5(){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 T5(){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 B5(){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:C,number:x,position:k="top-right",onClick:w,animate:S=!1}=e,E=x!==void 0?"number":C??"check",A=typeof a=="number"?a:32,B=xe("circle-badge",`circle-badge--${E}`,`circle-badge--${k}`,`circle-badge--${A}`,S?"circle-badge--animate":"",w?"circle-badge--clickable":"",r),W=x!==void 0?`${x}\uBC88\uC9F8 \uC120\uD0DD`:{check:"\uC120\uD0DD\uB428",remove:"\uC81C\uAC70",minus:"\uC81C\uC678"}[C??"check"];return o.jsxs("span",{className:B,onClick:w,onKeyDown:w?P=>{P.key!=="Enter"&&P.key!==" "||(P.preventDefault(),P.currentTarget.click())}:void 0,"aria-label":n??W,role:w?"button":void 0,tabIndex:w?0:void 0,children:[x!==void 0&&x,x===void 0&&C==="check"&&o.jsx(A5,{}),x===void 0&&C==="remove"&&o.jsx(T5,{}),x===void 0&&C==="minus"&&o.jsx(B5,{})]})}const{label:i,children:s,variant:c="default",fill:d="filled",minWidth:u,iconLeft:m,iconRight:h,color:p}=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,v=xe("badge",`badge--${c}`,`badge--${g}`,d!=="filled"?`badge--${d}`:"",f,r),y=p?.startsWith("--")?`var(${p})`:p,_=u!==void 0||y?{...u!==void 0?{minWidth:typeof u=="number"?`${u}px`:u}:{},...y?{"--badge-color":y}:{}}:void 0;return o.jsxs("span",{className:v,style:_,children:[m&&o.jsx(Ie,{icon:m,size:b,className:"badge__icon"}),i??s,h&&o.jsx(Ie,{icon:h,size:b,className:"badge__icon"})]})}var N5=".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(N5);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}]),d=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(),v=b[0]&&typeof b[0].title<"u"?b[0].title:null;return b[0]={title:v,columns:e},b}catch{return[{title:null,columns:e}]}})},[e]);const u=l.useCallback(()=>c(f=>f.length>1?f.slice(0,f.length-1):f),[]),m=l.useRef(null),h=l.useRef(null),p=s.length;l.useEffect(()=>{h.current||(h.current=document.activeElement);let f=0,b=0;const v=()=>{const y=m.current?.querySelector("button:not([disabled])");if(y&&y.offsetParent){y.focus({preventScroll:!0});return}b++<20&&(f=requestAnimationFrame(v))};return f=requestAnimationFrame(v),()=>cancelAnimationFrame(f)},[p]),l.useEffect(()=>()=>{h.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||d.title)&&o.jsxs("div",{className:"tooltip-menu__header",children:[s.length>1?o.jsx(ie,{size:i,type:"dot",icon:"chevron-left",ariaLabel:n("common.back","\uB4A4\uB85C"),onClick:u,variant:"transparent-gray",useBorder:!1}):null,o.jsx("div",{className:"tooltip-menu__title button-1",children:d.title})]}),o.jsx("div",{className:"tooltip-menu__columns",ref:m,children:d.columns&&d.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((v,y)=>o.jsx(ie,{className:"tooltip-menu__item",size:i,type:v.label?"bar":"dot",icon:v.selected?"check":v.icon||"none",rightIcon:Array.isArray(v.children)&&v.children.length?"chevron-right":v.badgeCount?o.jsx(ht,{type:"dot",position:"inline",number:Math.min(v.badgeCount,99),size:24,"aria-label":`${v.badgeCount}`}):void 0,label:v.label,ariaLabel:v.label,onClick:()=>g(v),selected:v.selected,disabled:v.disabled,showTooltipInfo:v.tooltip||!1,useBorder:!1,align:"left"},y))})]},b))})]})}const D5=52,Sh=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",d=r==="manager"?"arrow-left":"arrow-right",u=r==="manager"?s("nav.modeLabelMalgwi","\uB9D0\uADC0"):s("nav.modeLabelManager","\uB9D0\uADC0 \uB9E4\uB2C8\uC800"),m=l.useRef(null),[h,p]=l.useState(0),g=e.length;l.useEffect(()=>{const j=m.current;if(!j||(p(j.clientWidth),typeof ResizeObserver>"u"))return;const M=new ResizeObserver(H=>p(H[0].contentRect.width));return M.observe(j),()=>M.disconnect()},[]);const f=h>0?Math.floor((h+Sh)/(D5+Sh)):g,b=h>0&&f<g,v=b?f:g,y=e.slice(0,v),_=e.slice(v),C=b||i.length>0,x=l.useCallback(j=>({position:"fixed",bottom:window.innerHeight-j.top+8,right:window.innerWidth-j.right,zIndex:1e4}),[]),{open:k,toggle:w,close:S,style:E,triggerRef:A,menuRef:B}=ao({computeStyle:x,onScroll:"ignore",onResize:"ignore"}),W=l.useCallback(()=>n?.(c),[n,c]),P=l.useMemo(()=>_.find(j=>j.key===t)??i.find(j=>j.selected||j.key&&j.key===t),[_,t,i]),T=l.useMemo(()=>[{items:[..._.map(j=>({label:j.label,icon:j.icon,selected:j.key===t,closeOnSelect:!0,onClick:()=>{j.key&&a&&a(j.key),S()}})),...i.map(j=>({label:j.label,icon:j.icon,badgeCount:j.badgeCount,selected:j.selected??(!!j.key&&j.key===t),closeOnSelect:!0,onClick:()=>{j.onClick?.(),S()}}))]}],[_,i,t,a,S]);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(ie,{size:52,type:"dot",icon:d,ariaLabel:u,className:"bottom-nav-item",onClick:W})}),o.jsx("div",{className:"bottom-nav__divider","aria-hidden":"true"})]}),o.jsx("div",{className:"bottom-nav__items",ref:m,children:y.map(j=>o.jsx(ie,{size:52,type:"dot",icon:j.icon,ariaLabel:j.label,selected:j.key===t,disabled:j.state==="disabled",className:"bottom-nav-item",onClick:()=>j.key&&a?.(j.key)},j.key))}),C&&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(ie,{size:52,type:"dot",icon:P?.icon??"ellipsis",ariaLabel:P?.label??s("nav.more","\uB354\uBCF4\uAE30"),selected:!!P,className:"bottom-nav-item",onClick:w}),k&&qt.createPortal(o.jsx("div",{className:"tooltip-content",style:E,ref:B,children:o.jsx(br,{columns:T,onClose:S})}),document.body)]})})]})]})}var E5=".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(E5);function j5(e){const{t}=ge.useTranslation(),{activeKey:a,unreadCount:r,onDebug:n,onNotification:i,onSetting:s,onHelp:c,onAccount:d}=e||{},u="default";return o.jsxs("div",{className:"side-nav__footer",children:[n&&o.jsx(ie,{size:48,showTooltipInfo:!0,type:"dot",shape:"pill",variant:u,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(ie,{size:48,showTooltipInfo:!0,type:"dot",shape:"pill",variant:u,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(ie,{size:48,showTooltipInfo:!0,type:"dot",shape:"pill",variant:u,icon:"settings",ariaLabel:t("nav.settings","\uC124\uC815"),onClick:s,selected:a==="settings"}),o.jsx(ie,{size:48,showTooltipInfo:!0,type:"dot",shape:"pill",variant:u,icon:"message-circle-question-mark",ariaLabel:t("nav.help","\uB3C4\uC6C0\uB9D0"),onClick:c,selected:a==="help"}),o.jsx(ie,{size:48,showTooltipInfo:!0,type:"dot",shape:"pill",variant:u,icon:"user-round",ariaLabel:t("nav.account","\uACC4\uC815"),onClick:d,selected:a==="account"})]})}function Ah(e){const{item:t,itemKey:a,label:r,icon:n,active:i,onClick:s,style:c,state:d,labelStyle:u}=e||{},m=t?.key??a??"",h=t?.label??r??"",p=t?.icon??n??"",g=t?.badge??0,f=o.jsx("span",{className:"side-nav__icon-wrap",children:o.jsx(Ie,{icon:p,label:typeof h=="string"?h:void 0,className:"side-nav__icon",maskClassName:"side-nav__icon-image",imgClassName:void 0,svgClassName:void 0})}),b=d==="disabled",v=`side-nav__item ${i?"active":""} ${d||""} ${b?"disabled":""} ${t?.child?"side-nav__item--child":""}`,y=l.useCallback(_=>{if(!b){try{_.currentTarget.blur()}catch{}s?.(m,_.currentTarget)}},[b,m,s]);return o.jsxs("button",{className:v,onClick:y,"aria-label":typeof h=="string"?h:void 0,style:c,"aria-disabled":b,children:[f,o.jsx("span",{className:"side-nav__label button-1 f",style:u,children:h}),g>0&&o.jsx(ht,{type:"dot",position:"inline",number:Math.min(g,99),size:24,"aria-label":`${g}`}),d==="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:d,onSetting:u,onHelp:m,appMode:h,onAppModeChange:p}=e||{},g=l.useCallback(()=>p?.(h==="malgwi"?"manager":"malgwi"),[p,h]);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(Ah,{item:f,active:f.key===r,state:f.disabled?"disabled":void 0,onClick:(v,y)=>{if(f.disabled)return;if(f.href){window.open(f.href,"_blank","noopener,noreferrer");try{y?.blur()}catch{}return}n?.(f.key);try{const C=document.querySelector(".content-area");C?C.scrollTop=0:window.scrollTo({top:0})}catch{}try{y?.blur()}catch{}if(typeof window<"u"&&window.matchMedia){if(!window.matchMedia("(min-width: 768px) and (max-width: 1023px)").matches)return}else return;const _=document.querySelector(".header");if(_&&!(typeof _.matches=="function"&&_.matches(":hover"))){_.classList.add("header--force-collapsed");const C=()=>{_.classList.remove("header--force-collapsed"),_.removeEventListener("mouseenter",C)};_.addEventListener("mouseenter",C)}}})]},f.key??`side-nav__item-${b}`)),p&&o.jsx("div",{className:"side-nav__separator side-nav__separator--short"}),p&&o.jsx(Ah,{item:{key:"__mode-switch__",label:h==="malgwi"?t("nav.goToManager","\uB9D0\uADC0\uB9E4\uB2C8\uC800\uB85C \uC774\uB3D9"):t("nav.goToMalgwi","\uB9D0\uADC0\uB85C \uC774\uB3D9"),icon:h==="malgwi"?"arrow-right":"arrow-left"},onClick:g})]}),o.jsx(j5,{activeKey:r,unreadCount:i,onDebug:s,onNotification:c,onAccount:d,onSetting:u,onHelp:m})]})}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',L5='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',M5='.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(M5);function Bl({appMode:e}){const{t}=ge.useTranslation(),a=e==="manager",r=a?Tl:Al,n=L5,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:d,onSetting:u,onHelp:m,appMode:h,onAppModeChange:p}){const{t:g}=ge.useTranslation(),f=oa("(max-width: 767px)"),b=l.useMemo(()=>{const E=[];return s&&E.push({key:"debug",icon:"terminal",label:g("nav.debug","\uB514\uBC84\uADF8"),onClick:s}),c&&E.push({key:"notifications",icon:"bell",label:g("nav.notifications","\uC54C\uB9BC"),badgeCount:i,onClick:c}),u&&E.push({key:"settings",icon:"settings",label:g("nav.settings","\uC124\uC815"),onClick:u}),m&&E.push({key:"help",icon:"message-circle-question-mark",label:g("nav.help","\uB3C4\uC6C0\uB9D0"),onClick:m}),d&&E.push({key:"account",icon:"user-round",label:g("nav.account","\uACC4\uC815"),onClick:d}),E},[g,s,c,u,m,d,i]),v=l.useCallback(E=>({position:"fixed",top:E.bottom+8,right:Math.max(8,window.innerWidth-E.right),zIndex:1e4}),[]),{open:y,toggle:_,close:C,style:x,triggerRef:k,menuRef:w}=ao({computeStyle:v,onScroll:"ignore",onResize:"ignore"}),S=l.useMemo(()=>[{items:b.map(E=>({label:E.label,icon:E.icon,badgeCount:E.badgeCount,selected:E.selected??(!!E.key&&E.key===e),closeOnSelect:!0,onClick:()=>{E.onClick?.(),C()}}))}],[b,e,C]);return o.jsxs("aside",{className:`header${h==="manager"?" header--manager":""}`,children:[o.jsxs("div",{className:"header__bi",children:[o.jsx(Bl,{appMode:h}),o.jsxs("div",{className:"header__menu-button",ref:k,children:[o.jsx(ie,{size:48,type:"dot",shape:"pill",variant:"default",icon:"menu",ariaLabel:g("header.menuOpen","\uBA54\uB274 \uC5F4\uAE30"),onClick:_}),y&&qt.createPortal(o.jsx("div",{className:"tooltip-content",style:x,ref:w,children:o.jsx(br,{columns:S,onClose:C})}),document.body)]})]}),o.jsx(Sl,{items:a,activeKey:e??void 0,onChange:t,unreadCount:i,onDebug:s,onNotification:c,onAccount:d,onSetting:u,onHelp:m,appMode:h,onAppModeChange:p}),f&&o.jsx(kl,{items:a,activeKey:e??void 0,onChange:t,appMode:h,onAppModeChange:p})]})}const Th=Nl;var P5='.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(P5);function Bh(e){if(!(e==null||e===""))return or(typeof e=="number"?`${e.toLocaleString("ko-KR")}\uC6D0`:e)}function R5(e){const t=`${e.code??""} ${e.name??""}`.toLowerCase();return/manager|매니저/.test(t)?"manager":"speechear"}function $5(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 I5(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??R5(e),plan:$5(e),label:e.label,price:Bh(e.price),originalPrice:Bh(e.originalPrice),discountLabel:e.discountLabel}}var z5='.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(z5);var 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_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',F5='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>',W5='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',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_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',V5='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>',G5='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',q5=".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(q5);var Y5=".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(Y5);var Nh='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 U5(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("${Nh}")`}})]})}const Dh="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 K5=".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(K5);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 Z5={text:"#1a1a1a",sub:"var(--color-lightGray)",logoBase:"Logo_speechear_kr",copyrightColor:"var(--color-main)"},X5=[{scale:1,opacity:.55},{scale:2,opacity:.4},{scale:3.1,opacity:.28},{scale:4.5,opacity:.18},{scale:6,opacity:.1}];function Eh(e={}){const t=lt(Z5,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:X5.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:Dh,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 Q5=".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(Q5);const J5={text:"#ffffff",sub:"var(--color-lightGray)",logoBase:"Logo_speechear_kr",logoColor:"_white",copyrightColor:"#ffffff"},e3=[{scale:1,opacity:.55},{scale:2,opacity:.4},{scale:3.1,opacity:.28},{scale:4.5,opacity:.18},{scale:6,opacity:.1}];function t3(e={}){const t=lt(J5,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:e3.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:Dh,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("${Nh}")`}})]})}var a3=".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(a3);const o3={text:"#1a1a1a",sub:"var(--color-lightGray)",logoBase:"Logo_speechear_kr",copyrightColor:"var(--color-main)"};function r3(e={}){const t=lt(o3,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 n3={Logo_speechear_kr:{"":Al,_white:O5,_textWhite:F5,_black:W5},Logo_speechearManager_kr:{"":Tl,_white:H5,_textWhite:V5,_black:G5}};function i3(e,t){if(e)return n3[e]?.[t??""]??void 0}const s3={speechear:Al,manager:Tl},l3={speechear:"Logo_speechear_kr",manager:"Logo_speechearManager_kr"},jh=10;function c3(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 d3(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(r3,{}):n?o.jsx(t3,{}):o.jsx(Eh,{})}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:d=!1,textColor:u,subColor:m,copyrightColor:h,logoSrc:p,label:g,price:f,originalPrice:b,discountLabel:v,onUse:y,onRefund:_,onDelete:C}){const{t:x}=ge.useTranslation(),k=e?Dl(e):void 0,w=r??k?.type??"speechear",S=a??k?.plan??"\uC774\uC6A9\uAD8C",E=g??k?.label,A=f??(t?k?.price:void 0),B=b??(t?k?.originalPrice:void 0),W=v??k?.discountLabel,P=l.useMemo(()=>{if(A)return null;const $=e?.durationDays??I5(e?.code);if(!$||$<=0)return null;const ee=$*86400;let ue;if(i!=null)ue=i;else if((s==="active"||s==="expired")&&n){const Ce=new Date(n).getTime();if(Number.isNaN(Ce))return null;const I=new Date;I.setHours(0,0,0,0);const Z=new Date(Ce);Z.setHours(0,0,0,0);const te=Math.round((Z.getTime()-I.getTime())/864e5);ue=Math.max(0,te)*86400}else s==="expired"?ue=0:ue=ee;const ke=Math.max(0,Math.min(100,Math.floor(Math.min(ue,ee)/ee*100)));return s==="pending"&&ke>=100?null:{percent:ke,remainingLabel:c3(ue,x)}},[A,s,n,i,e?.durationDays,e?.code,x]),T=l.useRef(null),[j,M]=l.useState({}),[H,ae]=l.useState(null),X=!!(y||_||C),oe=l.useRef(!1),N=l.useRef(void 0),[L,R]=l.useState(p);l.useLayoutEffect(()=>{R(p)},[p]),l.useLayoutEffect(()=>{const $=T.current;$&&(u!==void 0&&$.style.setProperty("--pass-card-text",u),m!==void 0&&$.style.setProperty("--pass-card-sub",m),h!==void 0&&$.style.setProperty("--pass-card-copyright",h))},[u,m,h]),l.useLayoutEffect(()=>{const $=T.current;if(!$)return;const ee=U5($);if(!p){const ue=l3[w],ke=s==="expired"?"_black":ee?.logoColor??"",Ce=i3(ue,ke);R(Ce)}},[c,p,w,s]);const z=$=>{const ee=T.current;if(!ee)return null;const{left:ue,top:ke,width:Ce,height:I}=ee.getBoundingClientRect(),Z=($.clientX-ue)/Ce-.5;return{rotateX:-(($.clientY-ke)/I-.5)*jh,rotateY:Z*jh}},G=($,ee)=>{const ue=ee*-.7,ke=$*.7+10,Ce=20+(Math.abs($)+Math.abs(ee))*.4;return`${ue}px ${ke}px ${Ce}px rgba(0, 0, 0, 0.18)`},K=l.useCallback($=>{oe.current=!0,clearTimeout(N.current),N.current=setTimeout(()=>{oe.current=!1},200);const ee=z($);ee&&M({transform:`perspective(800px) rotateX(${ee.rotateX}deg) rotateY(${ee.rotateY}deg) scale3d(1.03, 1.03, 1.03)`,boxShadow:G(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($=>{const ee=z($);if(!ee)return;const ue=oe.current?"transform 0.2s ease, box-shadow 0.2s ease":"none";M({transform:`perspective(800px) rotateX(${ee.rotateX}deg) rotateY(${ee.rotateY}deg) scale3d(1.03, 1.03, 1.03)`,boxShadow:G(ee.rotateX,ee.rotateY),transition:ue})},[]),q=l.useCallback(()=>{clearTimeout(N.current),oe.current=!1,M({transform:"perspective(800px) rotateX(0deg) rotateY(0deg) scale3d(1, 1, 1)",boxShadow:"0px 4px 16px rgba(0, 0, 0, 0.08)",transition:"transform 0.5s cubic-bezier(0.23, 1, 0.32, 1), box-shadow 0.5s cubic-bezier(0.23, 1, 0.32, 1)"})},[]),F=l.useCallback(()=>ae(null),[]),se=l.useMemo(()=>{const $=S.replace("\uC774\uC6A9\uAD8C","").trim(),ee=$.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:$})},[S,x]),Q=l.useMemo(()=>{const $=or(A);if(!$)return null;const ee=$.match(/^([^\d]*)([\d.,]+)(.*)$/);if(!ee)return o.jsx("span",{className:"h1",children:$});const[,ue,ke,Ce]=ee;return o.jsxs(o.Fragment,{children:[ue&&o.jsx("span",{className:"h5 pass-card__price-symbol",children:ue}),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]),re=l.useCallback(()=>{X&&ae($=>{if($)return null;const ee=T.current?.getBoundingClientRect();if(!ee)return null;const ue=50;return{left:ee.left,right:ee.right,width:ee.width,height:ee.height,x:ee.x,y:ee.y+ue,top:ee.top+ue,bottom:ee.bottom+ue}})},[X]),me=l.useCallback($=>{X&&($.key==="Enter"||$.key===" ")&&($.preventDefault(),re())},[X,re]),ce=[{items:[...y?[{label:x("passCard.menu.use","\uC0AC\uC6A9\uD558\uAE30"),icon:"play",onClick:()=>{y(),ae(null)},closeOnSelect:!0}]:[],..._?[{label:x("passCard.menu.refund","\uD658\uBD88\uD558\uAE30"),icon:"rotate-ccw",onClick:()=>{_(),ae(null)},closeOnSelect:!0}]:[],...C?[{label:x("passCard.menu.delete","\uC0AD\uC81C\uD558\uAE30"),icon:"trash-2",onClick:()=>{C(),ae(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}${X?" pass-card--clickable":""}`,style:j,onMouseEnter:K,onMouseMove:O,onMouseLeave:q,onClick:re,onKeyDown:X?me:void 0,role:X?"button":void 0,tabIndex:X?0:void 0,children:[c??d3(w,S,E),!d&&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:L??s3[w],className:"pass-card__logo",alt:w==="manager"?x("header.logoManager","\uB9D0\uADC0\uB9E4\uB2C8\uC800 \uB85C\uACE0"):x("header.logoMalgwi","\uB9D0\uADC0 \uB85C\uACE0")}),o.jsxs("div",{className:"pass-card__plan",children:[o.jsx("div",{children:se}),o.jsx("span",{className:"h5b pass-card__plan-suffix",children:E?x("passCard.labeledPlan",{label:E}):x("passCard.planSuffix","\uC774\uC6A9\uAD8C")})]})]})}),A?o.jsxs("div",{className:"pass-card__price-area",children:[W&&o.jsx("span",{className:"pass-card__discount body-3",children:W}),o.jsxs("div",{className:"pass-card__price",children:[B&&o.jsx("span",{className:"pass-card__price-original body-3",children:or(B)}),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."})]})]})}),H&&o.jsx(Sa,{anchorRect:H,onClose:F,children:o.jsx(br,{columns:ce,onClose:F,size:"small"})})]})}var u3=".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(u3);const p3={text:"#1a1a1a",sub:"var(--color-lightGray)",logoBase:"Logo_speechear_kr",copyrightColor:"#1a1a1a"};function h3(e={}){const t=`passcard-sound-line-grad-${l.useId()}`,a=lt(p3,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 m3=".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(m3);const b3={text:"#1a1a1a",sub:"var(--color-lightGray)",logoBase:"Logo_speechear_kr",copyrightColor:"var(--color-main)"};function g3(e={}){const t=lt(b3,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 f3(e,t){if(e){if(t==="manager_pro")return o.jsx(g3,{});if(t==="manager_standard")return o.jsx(h3,{});if(t==="manager_lite")return o.jsx(Eh,{})}}function v3(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 Lh(e){const{t}=ge.useTranslation(),a=t("payment.plan.tierFallback",{defaultValue:"\uC774\uC6A9\uAD8C"}),r=t("payment.plan.openPromo",{defaultValue:"\uC624\uD508 \uD2B9\uAC00"}),{plan:n,onSelect:i,period:s="monthly",ownedCodes:c}=e||{},d=C=>!!C&&!!c?.includes(C),u=(n.tiers||[]).some(C=>/오픈\s*특가/.test(C.label??"")&&d(C.code)),m=C=>{const x=C.prices?C.prices[s]:C.price;return x?(n.tiers||[]).some(k=>!!k.badge&&k.originals?.[s]===x):!1},h=n.colorToken?`var(--color-${n.colorToken})`:"var(--color-gray)",p=t("payment.plan.freePrice","\uBB34\uB8CC"),g=t("payment.products.mgrEnterprise.tier.price","\uBB38\uC758"),f=C=>C.prices?C.prices[s]:C.price,b=(n.tiers||[]).length>0&&(n.tiers||[]).every(C=>{const x=f(C);return x==="\uBB34\uB8CC"||x===p||x==="0\uC6D0"}),v=(n.tiers||[]).length>0&&(n.tiers||[]).every(C=>{const x=f(C);return x==="\uBB38\uC758"||x===g}),y=n.group==="org",_=y?"manager":"speechear";return o.jsxs("div",{className:"payment-plan__card",style:{borderColor:h,"--plan-color":h},children:[n.cardBadge&&o.jsx("div",{className:"payment-plan__card-badge",children:o.jsx(ht,{label:n.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:h},children:n.quote||"\xA0"}),o.jsx("h3",{className:"payment-plan__title-heading h1",children:n.tier??n.title}),o.jsx("p",{className:"payment-plan__subtitle body-3",children:n.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:(n.recommendedFor||[]).map((C,x)=>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:h}}),C]},x))})]}),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:(n.features||[]).map((C,x)=>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:h}}),C]},x))})]}),o.jsx("div",{className:"payment-plan__card-pricing",children:b?null:v?o.jsx(ie,{className:"payment-plan__contact-button",label:t("payment.plan.contact",{defaultValue:"\uBB38\uC758\uD558\uAE30"}),variant:"main",size:56,onClick:()=>n.tiers?.[0]&&i?.({...n.tiers[0],productId:n.id,productTitle:n.title})}):o.jsx(o.Fragment,{children:o.jsx("div",{className:"payment-plan__pricing-list",children:(n.tiers||[]).map(C=>{const x=C.label||a,k=/오픈\s*특가/.test(x),w=k||C.openPromo===!0,S=x.replace(/^오픈\s*특가\s*/,"")||a,E=C.prices?C.prices[s]:C.price,A=C.badge?w?`${r}
833
833
  ${C.badge}`:C.badge:void 0;if(k&&d(C.code))return null;if(!C.badge&&!u)return m(C)?null:o.jsxs("div",{className:`payment-plan__pricing-row payment-plan__pricing-row--static${C.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:C.label})}),o.jsx("div",{className:"payment-plan__pricing-row-price",children:o.jsx("span",{className:"payment-plan__pricing-current h1",children:v3(E)})})]},C.id);const B=n.tier??(y?n.title:void 0),W=o.jsx(Ml,{showPrice:!0,product:{type:_,code:C.code,name:S,label:B,price:E,originalPrice:C.originals?.[s]??void 0,discountLabel:A},bg:f3(y,n.id)}),P=()=>i?.({...C,productId:n.id,productTitle:n.title,preview:W});return o.jsx("div",{className:"payment-plan__pricing-card",onClick:P,onKeyDown:i?T=>{T.target===T.currentTarget&&(T.key==="Enter"||T.key===" ")&&(T.preventDefault(),P())}:void 0,role:i?"button":void 0,tabIndex:i?0:void 0,children:W},C.id)})})})})]})}function Mh({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 y3=".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(y3);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 Ph(){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 x3=".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(x3);const $l={text:"#ffffff",sub:"var(--color-lightGray)",logoBase:"Logo_speechearManager_kr",logoColor:"_white",copyrightColor:"#ffffff"};function Rh(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 C3=".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(C3);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 _3=".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(_3);const fr=(e,t,a)=>e+(t-e)*a;function $h({speakers:e,size:t=300,viewT:a=0,activeSpeakerId:r=null,playedIds:n,selectedId:i=null,answerId:s=null,showFeedback:c=!1,pulseSelected:d=!1,pulseSelectedDuration:u,pulseScale:m,clickable:h=!1,onSelectSpeaker:p,buttonSize:g=40,showIcon:f=!0,onCenterClick:b,centerLabel:v,centerDisabled:y=!1,centerAttention:_=!1,shortcutAnchor:C="top-right",shortcutScale:x,scaleShortcut:k=!1}){const w=Math.max(0,Math.min(1,a)),S=t/2,E=110/300,A=.18,B=$=>t*(E+($-1)*A),W=$=>{const ee=B($.row??1),ue=$.angleDeg*Math.PI/180;return{x:S+ee*Math.cos(ue),y:S+ee*Math.sin(ue)}},P=Math.max(...e.map($=>$.row??1),1),T=t*.08,j=t*.1,M=t*.24,H=t-2*T,ae=t-j-M,X=t-M/2,oe=l.useMemo(()=>[...new Set(e.map($=>$.deg))].sort(($,ee)=>$-ee),[e]),N=oe.length,L=Math.max(68,N>1?H/(N-1):0),R=l.useMemo(()=>new Map(oe.map(($,ee)=>[$,ee])),[oe]),z=$=>{const ee=R.get($.deg)??0,ue=S+(ee-(N-1)/2)*L,ke=P>1?Math.min(68,ae/(P-1)):0,Ce=ke*(P-1),I=j+(ae-Ce)/2,Z=P===1?j+ae*.4:I+(P-($.row??1))*ke;return{x:ue,y:Z}},G=$=>{const ee=W($),ue=z($);return{x:fr(ee.x,ue.x,w),y:fr(ee.y,ue.y,w)}},K={x:S,y:fr(S,X,w)},O=Math.round(g*1.2),q=Math.round(Math.max(16,Math.min(80,g*.7))),F=[],se=new Map;for(const $ of e){const ee=$.row??1;se.has(ee)||se.set(ee,[]),se.get(ee).push($)}for(const[$,ee]of se.entries()){if(ee.length<2)continue;const ue=[...ee].sort((Ne,Ve)=>Ne.deg-Ve.deg),ke=ue.map(Ne=>G(Ne)),Ce=ue.map(Ne=>Ne.deg),I=Ce[Ce.length-1]-Ce[0],Z=I/(Ce.length-1),te=360-I,fe=ue.length>=3&&Z>0&&te<=Z*1.5,De=Math.round(B($)*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(w===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:S+De*Math.cos(We),y:S+De*Math.sin(We)},Ge={x:(Fe.x+be.x)/2,y:(Fe.y+be.y)/2},vt={x:fr(Le.x,Ge.x,w),y:fr(Le.y,Ge.y,w)},Ue={x:2*vt.x-Ge.x,y:2*vt.y-Ge.y};return`Q ${Ue.x} ${Ue.y} ${be.x} ${be.y}`},Re=fe?[...ue,ue[0]]:ue,Me=fe?[...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]);F.push({key:`arc-${$}`,d:Ye})}const Q=l.useMemo(()=>new Set(n??[]),[n]),re=$=>{if(r===$.id)return"active";if(c){if($.id===s)return"correct";if($.id===i&&i!==s)return"wrong"}return Q.has($.id)?"played":"idle"},me=$=>r===$.id?"loop":c?$.id===s?"loop":null:d&&$.id===i?"once":null,ce=($,ee)=>{switch($){case"played":case"correct":return o.jsx(Jc,{size:ee});case"wrong":return o.jsx(cd,{size:ee});default:return o.jsx(ld,{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:[w===0&&e.map($=>{const{x:ee,y:ue}=G($);return o.jsx("line",{x1:K.x,y1:K.y,x2:ee,y2:ue,stroke:"#dde3ec",strokeWidth:"1"},$.id)}),F.map($=>o.jsx("path",{d:$.d,fill:"none",stroke:"#dde3ec",strokeWidth:"1"},$.key))]}),_&&!y&&o.jsx("div",{className:"sound-compass__pulse sound-compass__pulse--active sound-compass__pulse--center",style:{width:O,height:O,left:K.x-O/2,top:K.y-O/2}}),b?o.jsx("button",{type:"button",className:`sound-compass__center sound-compass__center--button${y?" sound-compass__center--disabled":""}`,style:{width:O,height:O,left:K.x,top:K.y},"aria-label":v,"aria-disabled":y||void 0,tabIndex:y?-1:0,onClick:y?void 0:b,children:o.jsx(Wn,{size:q,color:"currentColor",strokeWidth:1.5})}):o.jsx("div",{className:"sound-compass__center",style:{width:O,height:O,left:K.x,top:K.y},children:o.jsx(Wn,{size:q,color:"currentColor",strokeWidth:1.5})}),e.map(($,ee)=>{const{x:ue,y:ke}=G($),Ce=re($),I=me($),Z={...x!==void 0||k?{"--shortcut-badge-scale":String(x??Math.max(.75,Math.min(3,g/56)))}:null,pointerEvents:h?"auto":"none",cursor:h?"pointer":"default",zIndex:Ce!=="idle"?10:1},te=g,fe=Math.round(Math.max(10,Math.min(56,te*.38))),De=Math.round(Math.max(7,Math.min(18,te*.2))),ze=Math.round(Math.max(10,Math.min(56,te*.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:{...Z,left:ue-te/2,top:ke-te/2},children:[I&&o.jsx("div",{className:`sound-compass__pulse sound-compass__pulse--${Ce}`+(I==="once"?" sound-compass__pulse--once":""),style:{width:te,height:te,...I==="once"&&u!==void 0?{"--sc-pulse-duration-once":`${u}ms`}:null,...m!==void 0?{"--sc-pulse-scale":String(m)}:null}}),o.jsxs("button",{type:"button",tabIndex:h?0:-1,"aria-disabled":h?void 0:!0,onClick:h?()=>p?.($.id):void 0,className:`sound-compass__speaker-btn sound-compass__speaker-btn--${Ce}`,style:{width:te,height:te},"aria-label":$.label,children:[Me&&ce(Ce,fe),Ye&&o.jsx("span",{className:"sound-compass__speaker-number",style:{fontSize:f===!0?De:ze},children:ee+1})]}),$.shortcut&&o.jsx(Il,{keys:$.shortcut,anchor:C,className:"sound-compass__speaker-shortcut"})]},$.id)})]})})}function Ih({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 w3=".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(w3);function zh({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 k3='.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(k3);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:d=>t?.(d.target.checked)}),o.jsx("span",{className:"radio__dot"}),i&&o.jsx("span",{className:"radio__label body-2",children:i})]})}var S3=".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(S3);function Oh({options:e,value:t,onChange:a,name:r,disabled:n=!1,direction:i="vertical",className:s=""}){const c=l.useId(),d=r??`radio-group-${c}`;return o.jsx("div",{className:`radio-group radio-group--${i} ${s}`.trim(),role:"radiogroup",children:e.map(u=>o.jsx(zl,{name:d,value:u.value,checked:t===u.value,disabled:n||u.disabled,label:u.label,onChange:m=>{m&&a?.(u.value)}},u.value))})}var A3=".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(A3);const T3={info:"info",success:"check-circle",warning:"alert-triangle",danger:"alert-circle"};function Fh({tone:e="info",title:t,message:a,children:r,dismissible:n=!1,onDismiss:i,className:s=""}){const{t:c}=ge.useTranslation(),[d,u]=l.useState(!1),m=l.useCallback(()=>{u(!0),i?.()},[i]);if(d)return null;const h=xe("alert",`alert--${e}`,s),p=!!t,g=!!(a||r);return o.jsxs("div",{className:h,role:"alert",children:[o.jsxs("div",{className:"alert__body",children:[o.jsxs("div",{className:"alert__header",children:[o.jsx(Ie,{icon:T3[e],size:20,className:"alert__icon"}),p&&o.jsx("span",{className:"alert__title body-2",children:t}),!p&&g&&o.jsx("div",{className:"alert__message body-3",children:a??r})]}),p&&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:m,"aria-label":c("common.close","\uB2EB\uAE30"),children:"\xD7"})]})}var B3=".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(B3);const N3={ready:"search",guide:"info",error:"circle-alert"};function D3(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 Wh({status:e="guide",label:t,children:a,emphasis:r,icon:n,className:i=""}){const s=n===!1?null:n??N3[e],c=xe("search-summary",`search-summary--${e}`,i),d=t??a,u=typeof d=="string"&&r&&r.length>0?D3(d,r):d;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:u})]})}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(ie,{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 E3=".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(E3);function Hh({items:e=[],value:t,onChange:a,className:r="",size:n=40}){const i=l.useId(),{t:s}=ge.useTranslation(),c=l.useRef(null),d=t??e[0]?.key,u=()=>Array.from(c.current?.querySelectorAll('[role="tab"]:not(:disabled)')??[]),m=(g,f=u())=>{if(f.length===0)return;const b=(g%f.length+f.length)%f.length;f[b]?.focus(),f[b]?.click()},h=g=>{if(!["ArrowRight","ArrowDown","ArrowLeft","ArrowUp","Home","End"].includes(g.key))return;g.preventDefault();const f=u(),b=f.indexOf(g.currentTarget);g.key==="ArrowRight"||g.key==="ArrowDown"?m(b+1,f):g.key==="ArrowLeft"||g.key==="ArrowUp"?m(b-1,f):g.key==="Home"?m(0,f):m(f.length-1,f)},p=e.find(g=>g.key===d);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===d,"aria-controls":`tabs__panel-${i}-${g.key}`,disabled:g.disabled,tabIndex:g.key===d?0:-1,className:`tabs__tab body-2${g.key===d?" tabs__tab--active":""}`,onClick:()=>a?.(g.key),onKeyDown:h,children:g.label},g.key))}),p&&o.jsx("div",{id:`tabs__panel-${i}-${p.key}`,role:"tabpanel","aria-labelledby":`tabs__tab-${i}-${p.key}`,tabIndex:0,className:"tabs__panel",children:p.panel},p.key)]})}var j3=".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(j3);const L3={xs:12,sm:16,md:20,lg:28,xl:36};function M3(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 Vh({src:e,name:t,size:a="md",shape:r="circle",className:n=""}){const{t:i}=ge.useTranslation(),[s,c]=l.useState(!1),d=t?M3(t):"",u=!!e&&!s,m=!u&&!!d,h=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":h,children:[u&&o.jsx("img",{className:"avatar__image",src:e,alt:h,onError:()=>c(!0)}),!u&&m&&o.jsx("span",{className:"avatar__initials","aria-hidden":"true",children:d}),!u&&!m&&o.jsx(Ie,{icon:"user-round",size:L3[a],className:"avatar__icon"})]})}var P3=".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(P3);function R3(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 Gh({onFilesSelected:e,accept:t,multiple:a=!1,disabled:r=!1,showFileList:n=!0,files:i,onRemove:s,className:c=""}){const{t:d}=ge.useTranslation(),u=l.useRef(null),[m,h]=l.useState(!1),[p,g]=l.useState([]),f=i??p,b=w=>{if(!w||w.length===0)return;const S=Array.from(w).filter(A=>R3(A,t));if(S.length===0)return;const E=a?S:S.slice(0,1);if(i===void 0){const A=a?[...f,...E]:E;g(A),e?.(A)}else e?.(E)},v=w=>{w.preventDefault(),!r&&h(!0)},y=w=>{w.preventDefault(),h(!1)},_=w=>{w.preventDefault(),h(!1),!r&&b(w.dataTransfer.files)},C=w=>{b(w.target.files),w.target.value=""},x=()=>{r||u.current?.click()},k=w=>{if(s){s(w);return}if(i===void 0){const S=f.filter((E,A)=>A!==w);g(S),e?.(S)}};return o.jsxs("div",{className:`file-upload ${c}`.trim(),children:[o.jsxs("div",{className:xe("file-upload__dropzone",m&&"file-upload__dropzone--dragging",r&&"file-upload__dropzone--disabled"),role:"button",tabIndex:r?-1:0,"aria-disabled":r,onClick:x,onKeyDown:w=>{(w.key==="Enter"||w.key===" ")&&(w.preventDefault(),x())},onDragOver:v,onDragLeave:y,onDrop:_,children:[o.jsx(Ie,{icon:"upload",size:24,className:"file-upload__icon"}),o.jsx("span",{className:"file-upload__prompt body-2",children:d("fileUpload.dragPrompt","\uD30C\uC77C\uC744 \uC774\uACF3\uC5D0 \uB4DC\uB798\uADF8\uD558\uC5EC \uC5C5\uB85C\uB4DC")}),o.jsx("button",{type:"button",className:"file-upload__browse-button body-3",disabled:r,onClick:w=>{w.stopPropagation(),x()},children:d("fileUpload.browseButton","\uD30C\uC77C \uC120\uD0DD")}),o.jsx("input",{ref:u,type:"file",className:"file-upload__input",accept:t,multiple:a,disabled:r,onChange:C,tabIndex:-1})]}),n&&f.length>0&&o.jsx("ul",{className:"file-upload__list",children:f.map((w,S)=>o.jsxs("li",{className:"file-upload__list-item body-3",children:[o.jsx("span",{className:"file-upload__file-name body-3",children:w.name}),o.jsx("button",{type:"button",className:"file-upload__remove-button","aria-label":d("fileUpload.removeAriaLabel",{name:w.name}),onClick:()=>k(S),children:o.jsx(Ie,{icon:"x",size:14})})]},`${w.name}-${S}`))})]})}var $3=".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($3);function qh({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 I3=".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;min-height:24px;min-width:24px}.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(I3);const z3={small:14,medium:20,large:28};function Yh({value:e,onChange:t,max:a=5,readOnly:r=!1,size:n="medium",ariaLabel:i,className:s=""}){const{t:c}=ge.useTranslation(),d=r||!t,[u,m]=l.useState(null),h=u??e,p=z3[n],g=x=>{d||t?.(x)},f=x=>{d||m(x)},b=l.useRef(null),v=x=>{const k=Math.min(a,Math.max(1,x));t?.(k),Array.from(b.current?.querySelectorAll("[data-star]")??[]).find(w=>w.dataset.star===String(k))?.focus()},y=x=>{if(!d){switch(x.key){case"ArrowRight":case"ArrowUp":v((e||0)+1);break;case"ArrowLeft":case"ArrowDown":v((e||1)-1);break;case"Home":v(1);break;case"End":v(a);break;default:return}x.preventDefault()}},_=e>=1&&e<=a?Math.round(e):1,C=()=>{d||m(null)};return o.jsx("div",{className:`rating rating--${n}${d?" rating--readOnly":""} ${s}`.trim(),ref:b,onKeyDown:y,role:d?"img":"radiogroup","aria-label":d?c("rating.valueLabel",{value:e,max:a}):i??c("rating.groupLabel","\uBCC4\uC810"),onMouseLeave:C,children:Array.from({length:a},(x,k)=>{const w=k+1,S=Math.max(0,Math.min(1,h-k)),E=S>0&&S<1,A=o.jsxs("span",{className:"rating__star-wrap",children:[o.jsx(Ie,{icon:"star",size:p,className:"rating__star rating__star--empty"}),S>0&&o.jsx("span",{className:`rating__star-fill${E?" rating__star-fill--half":""}`,children:o.jsx(Ie,{icon:"star",size:p,className:"rating__star rating__star--filled"})})]});return d?o.jsx("span",{className:"rating__item","aria-hidden":"true",children:A},w):o.jsx("button",{type:"button",className:"rating__item rating__item--interactive",role:"radio","aria-checked":e===w,"aria-label":c("rating.starLabel",{n:w}),"data-star":w,tabIndex:w===_?0:-1,onClick:()=>g(w),onMouseEnter:()=>f(w),children:A},w)})})}var O3=".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(O3);const F3=20,W3=["#499cdf","#4dcdc0","#2fae9e","#e6b94e","#d9534f","#e06b68","#bfc7d1"];function Uh({value:e,onChange:t,palette:a=W3,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:F3,className:"color-picker__check"})},s)})})}var H3=".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(H3);function Kh({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?d=>{d.key!=="Enter"&&d.key!==" "||(d.preventDefault(),d.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 V3=".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(V3);function G3(){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 Zh({open:e,onClose:t,ariaLabel:a,title:r,children:n,size:i="md",closeOnBackdrop:s=!0,closeOnEscape:c=!0,showClose:d=!0,className:u,contentClassName:m}){const{t:h}=ge.useTranslation(),p=l.useId(),g=l.useRef(null),f=l.useCallback(()=>t(),[t]);return l.useEffect(()=>{if(!e)return;const b=document.activeElement,{overflow:v}=document.body.style;return document.body.style.overflow="hidden",g.current?.focus(),()=>{document.body.style.overflow=v,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",u),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?p:void 0,tabIndex:-1,className:xe("dialog__surface",`dialog__surface--${i}`,m),onClick:b=>b.stopPropagation(),children:[r?o.jsx("div",{className:"dialog__header",children:o.jsx("h2",{id:p,className:"dialog__title h4b",children:r})}):null,d?o.jsx("button",{type:"button",className:"dialog__close","aria-label":h("common.close","\uB2EB\uAE30"),onClick:f,children:o.jsx(G3,{})}):null,o.jsx("div",{className:"dialog__body",children:n})]})}),document.body)}var q3=".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(q3);function Xh({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:d=""}){const u=!s&&t.length===0;return o.jsxs("div",{className:xe("board",d),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(m=>o.jsx("th",{scope:"col",className:xe("board__th",`board__cell--${m.headerAlign??m.align??"left"}`),style:m.width?{width:m.width}:void 0,children:m.header},m.key))})}),o.jsx("tbody",{children:s?o.jsx("tr",{children:o.jsx("td",{className:"board__state",colSpan:e.length,children:s})}):u?o.jsx("tr",{children:o.jsx("td",{className:"board__state",colSpan:e.length,children:i})}):t.map((m,h)=>o.jsx("tr",{className:"board__row",children:e.map(p=>o.jsx("td",{className:xe("board__td",`board__cell--${p.align??"left"}`),children:p.render(m,h)},p.key))},a(m,h)))})]})]})}var Y3=".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(Y3);function Qh({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 U3=".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(U3);function Jh({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 K3=".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(K3);function em({title:e,kind:t,body:a,badge:r,badgeSrc:n,footer:i,width:s,className:c=""}){const d=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:[d?o.jsx("div",{className:"publication-card__badge","aria-hidden":"true",children:d}):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 Z3="@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(Z3);function tm({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 X3='.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(X3);function am({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 Q3=".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(Q3);function om({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,d]=l.useState(-1),u=l.useRef(null),m=l.useMemo(()=>{if(!a.length)return[];const b=e??"";return b?a.filter(v=>v.toLowerCase().includes(b.toLowerCase())):r?a:[]},[a,e,r]);l.useEffect(()=>{i||d(-1)},[i]),l.useEffect(()=>()=>{u.current&&clearTimeout(u.current)},[]);const h=l.useCallback(b=>{t?.(b),s(!1)},[t]),p=l.useCallback(()=>s(!0),[]),g=l.useCallback(()=>{u.current=setTimeout(()=>s(!1),120)},[]),f=l.useCallback(b=>{b.key==="ArrowDown"?(b.preventDefault(),s(!0),d(v=>Math.min(m.length-1,v+1))):b.key==="ArrowUp"?(b.preventDefault(),d(v=>Math.max(-1,v-1))):b.key==="Enter"?c>=0&&!b.nativeEvent.isComposing&&h(m[c]):b.key==="Escape"&&i&&(b.preventDefault(),s(!1))},[m,c,i,h]);return{listId:n,open:i,activeIdx:c,filtered:m,handleFocus:p,handleBlur:g,handleKeyDown:f,handleSelect:h}}var J3=".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(J3);function Wa(e){const{value:t,defaultValue:a,name:r,inputRef:n,onChange:i,label:s,ariaLabel:c,required:d,placeholder:u,type:m="text",disabled:h=!1,readOnly:p=!1,error:g,helperText:f,maxLength:b,size:v=48,variant:y="input",fullWidth:_=!1,newline:C=!1,multiline:x=!1,rows:k=3,leftIcon:w,rightIcon:S,clearable:E=!1,list:A,showCount:B=!0,className:W="",onFocus:P,onBlur:T,onKeyDown:j,onEnter:M,inputMode:H,autoComplete:ae,autoFocus:X,suggestions:oe,openOnFocus:N=!1}=e,{t:L}=ge.useTranslation(),R=l.useId();!s&&!c&&Kc(`TextField:unnamed:${R}`,"[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 z=`tf-${R}`,G=`tf-helper-${R}`,K=l.useRef(null),O=Ol({value:t??"",onChange:i,suggestions:oe??[],openOnFocus:N}),q=!!oe&&O.open&&O.filtered.length>0,F=l.useCallback(Z=>{K.current=Z,typeof n=="function"?n(Z):n&&(n.current=Z)},[n]),se=t!==void 0,Q=se&&m==="password",re=(t??"").length;l.useEffect(()=>{const Z=K.current;if(!Q||!Z)return;const te=t??"";Z.value!==te&&(Z.value=te)},[Q,t]),l.useEffect(()=>{if(!C||!K.current)return;const Z=K.current;Z.style.height="",Z.scrollHeight>Z.clientHeight&&(Z.style.height=`${Z.scrollHeight}px`)},[t,C]);const me=b!=null&&re>b,ce=v===32?16:20,$=xe("text-field",`text-field--s${v}`,y==="display"?"text-field--display":"",_?"text-field--full-width":"",h?"text-field--disabled":"",p?"text-field--readonly":"",g?"text-field--error":"",w?"text-field--has-left-icon":"",S||E?"text-field--has-right-icon":"",W),ee={id:z,...Q?{}:se?{value:t}:{defaultValue:a},ref:F,placeholder:u,name:r,disabled:h,readOnly:p,autoFocus:X,tabIndex:p?-1:void 0,maxLength:b,list:A,inputMode:H,autoComplete:ae,"aria-label":!s&&c?c:void 0,"aria-required":d,"aria-invalid":!!g,"aria-describedby":f||g?G:void 0,role:oe?"combobox":void 0,"aria-autocomplete":oe?"list":void 0,"aria-haspopup":oe?"listbox":void 0,"aria-expanded":oe?O.open:void 0,"aria-controls":q?O.listId:void 0,"aria-activedescendant":q&&O.activeIdx>=0?`${O.listId}-option-${O.activeIdx}`:void 0,onChange:Z=>i?.(Z.target.value),onFocus:(Z=>{P?.(Z),oe&&O.handleFocus()}),onBlur:(Z=>{T?.(Z),oe&&O.handleBlur()}),onKeyDown:(Z=>{M&&Z.key==="Enter"&&!Z.nativeEvent.isComposing&&(Z.preventDefault(),M()),j?.(Z),oe&&O.handleKeyDown(Z)})},ue=E&&!h&&!p&&re>0,ke=()=>C?o.jsx("textarea",{...ee,className:"text-field__input text-field__input--auto body-2",rows:1}):x?o.jsx("textarea",{...ee,className:"text-field__input text-field__input--textarea body-2",rows:k}):o.jsx("input",{...ee,type:m,className:"text-field__input body-2"}),Ce=y==="display"&&!C&&!x&&!!u,I=()=>o.jsxs(o.Fragment,{children:[ke(),Ce&&o.jsx("span",{className:"text-field__placeholder","aria-hidden":"true",children:u})]});return o.jsxs("div",{className:$,children:[s&&o.jsxs("label",{htmlFor:z,className:"text-field__label caption-1",children:[s,d&&o.jsx("span",{className:"text-field__required",children:"*"})]}),o.jsxs("div",{className:"text-field__wrap",children:[w&&o.jsx("span",{className:"text-field__icon text-field__icon--left",children:o.jsx(Ie,{icon:w,label:"",className:"",svgClassName:"text-field__icon-svg",size:ce})}),I(),b!=null&&B&&o.jsxs("span",{className:`text-field__count caption-2${me?" text-field__count--over":""}`,children:[re,"/",b]}),ue&&o.jsx(ie,{size:24,type:"dot",icon:"x",variant:"transparent-gray",useBorder:!1,className:"text-field__clear",ariaLabel:L("textField.clearAriaLabel","\uC785\uB825\uAC12 \uC9C0\uC6B0\uAE30"),htmlType:"button",onMouseDown:Z=>{Z.preventDefault()},onClick:()=>i?.(""),tabIndex:-1}),S&&!ue&&o.jsx("span",{className:"text-field__icon text-field__icon--right",children:o.jsx(Ie,{icon:S,label:"",className:"",svgClassName:"text-field__icon-svg",size:ce})})]}),oe&&O.open&&O.filtered.length>0&&o.jsx("ul",{id:O.listId,className:"text-field__suggestions",role:"listbox",children:O.filtered.map((Z,te)=>o.jsx("li",{id:`${O.listId}-option-${te}`,role:"option","aria-selected":te===O.activeIdx,className:`text-field__suggestion body-2${te===O.activeIdx?" is-active":""}`,onMouseDown:fe=>fe.preventDefault(),onClick:()=>{O.handleSelect(Z),K.current?.focus()},children:Z},`${Z}-${te}`))}),(f||g)&&o.jsx("div",{className:"text-field__footer",children:o.jsx("span",{id:G,className:"text-field__helper caption-1",role:g?"alert":void 0,children:g||f})})]})}var e8=".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(e8);function Ut({options:e,value:t,onChange:a,placeholder:r,disabled:n=!1,block:i=!1,size:s=48,error:c=!1,className:d="",ariaLabel:u}){const{t:m}=ge.useTranslation(),h=r??m("dropdown.placeholder","\uC120\uD0DD"),p=l.useId(),g=l.useRef(null),f=l.useCallback(T=>{const j=window.innerHeight-T.bottom<260&&T.top>260;return{position:"fixed",left:T.left,minWidth:T.width,...j?{bottom:window.innerHeight-T.top+6}:{top:T.bottom+6},zIndex:9999}},[]),{open:b,setOpen:v,toggle:y,style:_,triggerRef:C,menuRef:x}=ao({computeStyle:f}),[k,w]=l.useState(-1),S=l.useCallback(()=>w(-1),[]),E=e.find(T=>T.value===t);l.useEffect(()=>{if(b){const T=e.findIndex(j=>j.value===t);w(T>=0?T:0),requestAnimationFrame(()=>{const j=x.current;if(!j)return;const M=j.querySelectorAll(".dropdown__option")[T];M&&(j.scrollTop=Math.max(0,M.offsetTop-j.clientHeight/2+M.clientHeight/2))})}},[b,e,t,x]);const A=l.useCallback(()=>{n||y()},[n,y]),B=l.useCallback(T=>{T.disabled||(a?.(T.value),v(!1))},[a,v]),W=l.useCallback(T=>{if(!n){if(!b){(T.key==="Enter"||T.key===" "||T.key==="ArrowDown")&&(T.preventDefault(),v(!0));return}if(T.key==="Escape"){T.preventDefault(),v(!1);return}T.key==="ArrowDown"?(T.preventDefault(),w(j=>{let M=j+1;for(;M<e.length&&e[M].disabled;)M++;return M<e.length?M:j})):T.key==="ArrowUp"?(T.preventDefault(),w(j=>{let M=j-1;for(;M>=0&&e[M].disabled;)M--;return M>=0?M:j})):T.key==="Enter"&&k>=0&&(T.preventDefault(),B(e[k]))}},[n,b,e,k,B,v]),P=b?o.jsx("div",{ref:x,id:p,className:"dropdown__menu",role:"listbox",style:_,onMouseLeave:S,children:e.map((T,j)=>o.jsxs("button",{id:`${p}-option-${j}`,type:"button",role:"option","aria-selected":T.value===t,className:xe("dropdown__option body-2",T.value===t?"dropdown__option--active":"",j===k?"dropdown__option--active":"",T.disabled?"dropdown__option--disabled":""),onMouseDown:M=>M.preventDefault(),onClick:()=>B(T),onMouseEnter:()=>w(j),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":"",d),onKeyDown:W,children:[o.jsxs("button",{ref:C,type:"button",className:"dropdown__trigger","aria-haspopup":"listbox","aria-expanded":b,"aria-controls":b?p:void 0,"aria-activedescendant":b&&k>=0?`${p}-option-${k}`:void 0,"aria-label":u,"aria-invalid":c||void 0,disabled:n,onClick:A,children:[o.jsx("span",{className:`dropdown__trigger-label body-2${E?"":" dropdown__trigger-label--placeholder"}`,children:E?E.label:h}),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 t8=".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(t8);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"),d=n??s("common.nextPage","\uB2E4\uC74C \uD398\uC774\uC9C0"),u=()=>a(Math.max(1,e-1)),m=()=>a(Math.min(t,e+1));return o.jsxs("div",{className:xe("pagination",i),children:[o.jsx(ie,{size:32,type:"dot",shape:"rounded",icon:"chevron-left",ariaLabel:c,disabled:e<=1,onClick:u}),o.jsxs("span",{className:"pagination__info body-3",children:[e," / ",t]}),o.jsx(ie,{size:32,type:"dot",shape:"rounded",icon:"chevron-right",ariaLabel:d,disabled:e>=t,onClick:m})]})}var a8=".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(a8);function Ha(e){const{t}=ge.useTranslation(),{options:a=[],value:r=a[0]?.key,onChange:n=v=>{},className:i="",size:s=48,shape:c="pill",useBG:d=!0,fullWidth:u=!1,ariaLabel:m}=e||{},h=l.useRef(null),p=a.filter(v=>!v.disabled),g=v=>{if(!p.length)return;const y=Math.max(0,p.findIndex(C=>C.key===r)),_=v==="first"?p[0]:v==="last"?p[p.length-1]:p[(y+v+p.length)%p.length];_&&(n(_.key),Array.from(h.current?.querySelectorAll("[data-segkey]")??[]).find(C=>C.dataset.segkey===_.key)?.focus())},f=v=>{switch(v.key){case"ArrowRight":case"ArrowDown":g(1);break;case"ArrowLeft":case"ArrowUp":g(-1);break;case"Home":g("first");break;case"End":g("last");break;default:return}v.preventDefault()},b=p.some(v=>v.key===r)?r:p[0]?.key;return o.jsx("div",{ref:h,onKeyDown:f,className:xe("segmented-control",`segmented-control--${c}`,`segmented-control--${s}`,u&&"segmented-control--full",!d&&"segmented-control--no-bg",i),role:"radiogroup","aria-label":m??t("segmentedControl.ariaLabel","\uC120\uD0DD \uD0ED"),children:a.map(v=>o.jsx(ie,{role:"radio","aria-checked":v.key===r,"data-segkey":v.key,tabIndex:v.key===b?0:-1,label:v.label,count:v.count,disabled:v.disabled,className:v.key===r?"is-selected":"",onClick:()=>{v.disabled||n(v.key)},size:s,shape:c,useBorder:!1,useBG:!1},v.key))})}var o8=".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(o8);function vn({count:e,search:t,segment:a,filters:r,pageSize:n,pagination:i,actions:s,className:c}){const{t:d}=ge.useTranslation(),u=e!=null&&o.jsxs("p",{className:"toolbar__count body-1",children:[e.prefix??d("common.totalPrefix","\uCD1D "),o.jsx("span",{className:"toolbar__count-highlight",children:e.value}),e.unit,e.suffix]}),m=!!(t||r?.length||n||i||s);return o.jsxs("div",{className:xe("toolbar",c),children:[o.jsxs("div",{className:"toolbar__row",children:[u,a&&(Array.isArray(a)?a:[a]).map((h,p)=>o.jsx(Ha,{size:40,...h},h.ariaLabel??p))]}),m&&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??d("common.search","\uAC80\uC0C9"),ariaLabel:t.placeholder??d("common.search","\uAC80\uC0C9"),clearable:!0}),r?.map((h,p)=>o.jsx(Ut,{size:40,options:h.options,value:h.value,onChange:h.onChange,ariaLabel:h.ariaLabel},p)),n&&o.jsx(Ut,{size:40,options:n.options,value:n.value,onChange:n.onChange,ariaLabel:n.ariaLabel??d("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 r8=".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(r8);function rm(e){return typeof e=="string"?e:typeof e=="number"?String(e):Array.isArray(e)?e.map(rm).join(""):""}function n8(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(`
@@ -980,7 +980,7 @@ ${C.badge}`:C.badge:void 0;if(k&&d(C.code))return null;if(!C.badge&&!u)return m(
980
980
  \uD68C\uBCF5\uC744 \uB3D5\uC2B5\uB2C8\uB2E4.`).split(`
981
981
  `).map((s,c,d)=>o.jsxs(l.Fragment,{children:[s,c<d.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 Dk='.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(Dk);function yb({logo:e,logoAlt:t="",logoHref:a,links:r=[],actions:n,className:i,containerClassName:s,renderLink:c,menuLabel:d={open:"\uBA54\uB274 \uC5F4\uAE30",close:"\uBA54\uB274 \uB2EB\uAE30"}}){const[u,m]=l.useState(!1),h=s?`${s} landing-header__inner`:"landing-header__inner",p=(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:h,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:p(g)},g.href))}),o.jsxs("div",{className:"landing-header__actions",children:[n,r.length>0&&o.jsx("button",{type:"button",onClick:()=>m(g=>!g),"aria-expanded":u,"aria-controls":"landing-header-drawer","aria-label":u?d.close:d.open,className:u?"landing-header__toggle landing-header__toggle--open":"landing-header__toggle",children: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:!u,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:p(g,()=>m(!1))},g.href))})})]})}var Ek=".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(Ek);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 cc=9,jk=e=>Math.round(Math.min(cc,Math.max(0,e))/cc*100),Lk=e=>e/100*cc,Cb={enabled:!0,type:"defaultNoise",level:4.5,speed:1,mainVolume:1,mainSpeed:1},_b=l.createContext(null);function dc(){return l.useContext(_b)}const uc=e=>`${ti()}/${e}`,wb=e=>Array.from({length:10},(t,a)=>uc(`${e}-${String(a+1).padStart(2,"0")}.mp3`)),En={get defaultNoise(){return uc("noise1.mp3")},get street(){return wb("noise2")},get restaurant(){return wb("noise3")},get buzz(){return uc("noise4.mp3")}};function Mk(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 Pk({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),d=l.useRef(null),u=l.useRef(null),m=l.useRef(0),h=l.useRef(null),p=l.useCallback(()=>{u.current!==null&&(cancelAnimationFrame(u.current),u.current=null),h.current!==null&&(clearTimeout(h.current),h.current=null)},[]),g=l.useCallback((v,y=250)=>{const _=n.current;if(!_||!_.src)return;m.current+=1,p();try{Ho(),r.current?.("noise",Vo(_))}catch{}const C=_.paused?0:_.volume;_.paused&&(_.volume=0),_.play().catch(()=>{});const x=performance.now(),k=()=>{const w=Math.min(1,(performance.now()-x)/y);try{_.volume=Math.max(0,Math.min(1,C+(v-C)*w))}catch{}w<1?u.current=requestAnimationFrame(k):u.current=null};u.current=requestAnimationFrame(k)},[p]),f=l.useCallback((v=250,y)=>{const _=n.current;if(!_||_.paused){y?.();return}const C=++m.current;p();const x=performance.now(),k=_.volume,w=()=>{const S=Math.min(1,(performance.now()-x)/v);try{_.volume=Math.max(0,k*(1-S))}catch{}if(S<1)u.current=requestAnimationFrame(w);else{u.current=null,h.current!==null&&(clearTimeout(h.current),h.current=null);try{_.pause()}catch{}y?.()}};u.current=requestAnimationFrame(w),h.current=setTimeout(()=>{if(h.current=null,m.current===C){u.current!==null&&(cancelAnimationFrame(u.current),u.current=null);try{_.paused||(_.volume=0,_.pause(),y?.())}catch{}}},v+150)},[p]);l.useEffect(()=>{const v=document.createElement("audio");return v.loop=!0,v.crossOrigin="anonymous",n.current=v,()=>{p();try{v.pause(),v.src=""}catch{}n.current=null}},[p]);const b=!!e?.settings.enabled&&(e?.settings.level??0)>0;return l.useEffect(()=>{if(!b)return;let v=0;const y=setInterval(()=>{const _=n.current;if(!_||_.paused){v=0;return}const C=t.current;if(C&&!C.paused&&!C.ended||a.current==="playing"){v=0;return}v+=1,v>=2&&(v=0,f())},400);return()=>clearInterval(y)},[f,b,t,a]),l.useEffect(()=>{const v=()=>{if(!document.hidden)return;const y=n.current;if(y&&!y.paused){p();try{y.pause()}catch{}}};return document.addEventListener("visibilitychange",v),()=>document.removeEventListener("visibilitychange",v)},[p]),l.useEffect(()=>{d.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 v=e?.settings,y=n.current;if(!y)return;if(!v||!v.enabled||v.level===0){f();return}const _=Math.min(1,v.level/9);if(c.current!==v.type){const C=Mk(v.type);C&&(c.current=v.type,s(C),f(150,()=>{y.src=C,y.load();const x=t.current;x&&!x.paused&&y.addEventListener("canplay",function k(){y.removeEventListener("canplay",k);const w=t.current;w&&!w.paused&&!w.ended&&g(_)})}))}else{const C=t.current,x=!!C&&!C.paused&&!C.ended;if(x&&y.paused&&y.src)g(_);else if(!y.paused)if(!x)f();else{p();const k=y.volume,w=performance.now(),S=()=>{const E=Math.min(1,(performance.now()-w)/150);try{y.volume=k+(_-k)*E}catch{}E<1?u.current=requestAnimationFrame(S):u.current=null};u.current=requestAnimationFrame(S)}}},[e?.settings,e?.settings.enabled,e?.settings.level,e?.settings.type,p,g,f,t]),l.useEffect(()=>{const v=n.current;if(v)try{v.playbackRate=Math.min(1.25,Math.max(.75,e?.settings.speed??1))}catch{}},[e?.settings.speed]),{noiseAudioRef:n,activeNoiseUrl:i,noiseSettingsRef:d,cancelNoiseFade:p,fadeInNoise:g,fadeOutNoise:f}}function Rk({ttsText:e,playbackRate:t,mainVolume:a,fillRef:r,waveProgressRef:n,setProgress:i,setPlaybackState:s,setStateLocal:c,fadeInNoise:d,fadeOutNoise:u,noiseSettingsRef:m,onDoneRef:h,handleEndRef:p}){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 v=(C,x=1)=>{try{const k=(C||"").trim().split(/\s+/).filter(Boolean).length||Math.max(1,(C||"").length);return Math.max(700,Math.round(k*300/Math.max(.25,x)))}catch{return 1200}},y=l.useCallback(C=>{if(typeof window>"u"||!window.speechSynthesis){try{typeof h.current=="function"&&h.current(!0)}catch{}return}const x=window.speechSynthesis;try{try{x.cancel()}catch{}const k=C??e,w=(Array.isArray(k)?k[0]??"":k)||"",S=new SpeechSynthesisUtterance(w);try{S.rate=Math.max(.3,Math.min(3,t))}catch{}try{S.volume=Math.max(0,Math.min(1,a))}catch{}f.current=v(w,S.rate||1),g.current=performance.now(),i(0),s("playing"),c("playMode");const E=m.current;E?.enabled&&(E?.level??0)>0&&d(E.level/9);const A=()=>{try{const B=g.current||performance.now(),W=performance.now()-B,P=f.current||1200,T=Math.min(1,W/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{}};S.onend=()=>{try{b.current&&(cancelAnimationFrame(b.current),b.current=null),i(1),s("stopped");try{p.current?.()}catch{try{typeof h.current=="function"&&h.current(!0)}catch{}}}catch{}},S.onstart=()=>{try{b.current&&(cancelAnimationFrame(b.current),b.current=null),b.current=requestAnimationFrame(A)}catch{}};try{x.speak(S)}catch{try{typeof h.current=="function"&&h.current(!0)}catch{}}}catch{try{typeof h.current=="function"&&h.current(!0)}catch{}}},[e,t,a,d,r,n,i,s,c,m,h,p]),_=l.useCallback(()=>{try{if(window.speechSynthesis)try{window.speechSynthesis.cancel()}catch{}b.current&&(cancelAnimationFrame(b.current),b.current=null),u(),g.current=null}catch{}s("stopped"),c("active"),i(0)},[u,s,c,i]);return{startTTS:y,stopTTS:_}}var $k='.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($k);async function Ik(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,d=Math.max(t,c),u=Math.floor(d/t)||1,m=new Array(t).fill(0).map((h,p)=>{const g=p*u,f=Math.min(g+u,d);let b=0;for(let v=g;v<f;v++){const y=Math.abs(s[v]);y>b&&(b=y)}return b});try{n.close&&n.close()}catch{}return m}catch{return null}}async function kb(e,t,a){try{const r=await(await fetch(e)).arrayBuffer();return await Ik(r,t,a)}catch(r){try{const n=Yr(r)}catch{}return null}}const Sb=4;function zk(e){const{src:t,segments:a,progress:r=0,waveProgressRef:n,noiseSrc:i,noiseLevel:s=0,noiseSpeed:c=1,totalDuration:d=0,mainVolume:u=1,onReadyChange:m,showSoundWaveForm:h=!0}=e,p=l.useRef(null),g=l.useRef(null),[f,b]=l.useState(null),[v,y]=l.useState(!1),[_,C]=l.useState(null),[x,k]=l.useState(2),[w,S]=l.useState(0),[E,A]=l.useState(null),[B,W]=l.useState(!1),P=3,T=3,j=1,M=300,H=l.useRef(0),ae=l.useCallback(async(se,Q)=>{const re=++H.current,me=()=>H.current===re;try{if(y(!1),!se){me()&&b(null);return}let ce=Q;if(!ce)try{for(let De=0;De<4&&!(p.current||g.current);De++)await new Promise(ze=>requestAnimationFrame(ze));await new Promise(De=>requestAnimationFrame(De));const ee=p.current,ue=g&&g.current?g.current:ee?ee.closest(".audio-player__wave"):null,ke=ue?ue.getBoundingClientRect():ee?ee.getBoundingClientRect():null,Ce=ke?Math.max(100,ke.width):320,I=ke?ke.height:0;I>0&&S(I),ce=Math.max(j,Math.min(M,Math.floor((Ce+T)/(P+T))));const Z=ce*P,te=Math.max(0,ce-1),fe=te>0?(Ce-Z)/te:T;k(Math.max(0,fe))}catch{ce=120}const $=await kb(se,ce);if(!me())return;if(!$){b(null),y(!1);return}b($),C(ce),y(!0)}catch{if(!me())return;b(null),y(!1)}},[y,b,S,k,C]);l.useEffect(()=>{const se=a&&a[0]&&a[0].src||t||a&&a.length===1&&a[0]&&a[0].src;ae(typeof se=="string"?se:void 0).catch(()=>{}),W(!1)},[t,a,ae]),l.useEffect(()=>{let se=!1;if(!i||!_){A(null);return}const Q=d>0?d*(c||1):void 0;return kb(i,_,Q).then(re=>{se||A(re)}).catch(()=>{se||A(null)}),()=>{se=!0}},[i,_,d,c]);const X=Math.max(0,Math.min(1,u)),oe=l.useMemo(()=>f&&f.length&&Math.max(...f)||1,[f]),N=_||40,L=l.useMemo(()=>Array.from({length:N}).map((se,Q)=>{const re=f&&f[Q]!=null?f[Q]:null,me=re==null?null:Math.min(1,re/oe*X),ce=me!=null&&w>0&&me*w<=Sb,$=me==null?.15:ce?0:me,ee=N>1?Q/(N-1):0;return o.jsx("div",{className:ce?"audio-player__bar audio-player__bar--hidden":"audio-player__bar",style:{"--val":$,"--i":Q,"--mix":ee}},Q)}),[N,f,oe,X,w]),R={"--progress":String(Math.max(0,Math.min(1,r)))},z={"--bar-gap":`${x}px`},G=Math.max(0,Math.min(9,s))/9,K=v&&(i?!!E:!0);l.useEffect(()=>{K&&W(!0)},[K]);const O=B?v:K;l.useEffect(()=>{m?.(O)},[O,m]);const q=_||40,F=l.useMemo(()=>Array.from({length:q}).map((se,Q)=>{const re=E&&E[Q]!=null?E[Q]:null,me=re==null?0:Math.min(1,re/oe*G),ce=w>0&&me*w<=Sb,$=ce?0:me,ee=q>1?Q/(q-1):0;return o.jsx("div",{className:ce?"audio-player__bar audio-player__bar--hidden":"audio-player__bar",style:{"--val":$,"--i":Q,"--mix":ee}},Q)}),[q,E,oe,G,w]);return o.jsxs("div",{className:"audio-player__wave",ref:g,style:z,children:[i&&o.jsx("div",{className:`audio-player__wave-noise ${K?"is-ready":""}`,"aria-hidden":"true",children:F}),h&&o.jsxs(o.Fragment,{children:[o.jsx("div",{className:`audio-player__wave-inner audio-player__wave-unplayed ${O?"is-ready":""}`,ref:p,children:L}),o.jsx("div",{className:`audio-player__wave-inner audio-player__wave-played ${O?"is-ready":""}`,ref:n,style:R,children:L})]})]})}const Ok={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 pc(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 u=isFinite(n.duration)&&n.duration||0;s(),a(u)},d=u=>{i||(i=!0,s(),t.rejectOnError?r(new Error(u)):a(0))};n.addEventListener("loadedmetadata",c),n.addEventListener("error",()=>d("audio load failed")),setTimeout(()=>d("audio load timeout"),t.timeoutMs),n.src=e})}const Fk=2e3;function Ab(e,t=Fk){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 Wk({showSoundWaveForm:e,showNoiseWaveForm:t,timeoutMs:a=2500}){const r=l.useRef(!1),n=l.useRef([]),i=l.useCallback(d=>{if(r.current=d,!d||!n.current.length)return;const u=n.current;n.current=[];for(const m of u)m()},[]),s=l.useCallback(()=>{r.current=!1},[]),c=l.useCallback(()=>!e&&!t||r.current?Promise.resolve():new Promise(d=>{const u=setTimeout(d,a);n.current.push(()=>{clearTimeout(u),d()})}),[e,t,a]);return l.useEffect(()=>()=>{const d=n.current;n.current=[];for(const u of d)u()},[]),{onReadyChange:i,waitForReady:c,markNotReady:s}}function Hk(){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 Vk({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 Gk({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 qk(e,t){if(!Array.isArray(e))return null;const a=t||0;return a<e.length-1?a+1:null}function Yk({ended:e,completedByEnd:t}){return!!e||!!t}function Uk(e){return e.map((t,a)=>({src:t.src,label:String(a+1),color:void 0,duration:t.duration||0}))}function Kk(e){return e.reduce((t,a)=>t+(a.duration||0),0)}function Zk(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 Xk({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 u=()=>{try{const m=e.current,h=Gk({currentTime:m&&typeof m.currentTime=="number"?m.currentTime:0,sources:r.current,index:n.current,audioDuration:m&&m.duration?m.duration:0});try{t.current&&(t.current.style.left=`${h*100}%`)}catch{}try{a.current?.style.setProperty("--progress",String(h))}catch{}}catch{}i.current=requestAnimationFrame(u)};i.current=requestAnimationFrame(u)},[e,t,a,r,n]),d=l.useCallback(u=>{s();try{t.current&&(t.current.style.left=`${u*100}%`)}catch{}try{a.current?.style.setProperty("--progress",String(u))}catch{}},[s,t,a]);return l.useEffect(()=>s,[s]),{start:c,stop:s,settleTo:d}}function wr({btnLabel:e,soundSrc:t,bucketPath:a,onDone:r,disabled:n=!1,ttsText:i=null,className:s,showSoundWaveForm:c=!0,showNoiseWaveForm:d=!0}){const{t:u}=ge.useTranslation(),m=e,h=dc(),p=l.useRef(h?.registerAnalyser);l.useEffect(()=>{p.current=h?.registerAnalyser});const g=l.useRef(null),f=l.useRef(null),b=l.useRef(null),v=Hk(),y=l.useRef(null),_=l.useRef(!1),C=l.useRef(0),x=l.useRef(null),{ref:k,rect:w,show:S,hide:E}=Vk();l.useEffect(()=>()=>{p.current?.("main",null),p.current?.("noise",null)},[]);const[A,B]=l.useState(!1),[W,P]=l.useState("idle"),[T,j]=l.useState("stopped"),M=l.useRef("stopped");l.useEffect(()=>{M.current=T},[T]);const[H,ae]=l.useState(0),[X,oe]=l.useState("active"),[N,L]=l.useState(null),[R,z]=l.useState(null),[G,K]=l.useState(0),[O,q]=l.useState(!1),[F,se]=l.useState(0),Q=h?.playbackRate??1,re=h?.mainVolume??1,[me,ce]=l.useState("idle"),[$,ee]=l.useState(""),[ue]=l.useState("top"),ke=l.useRef(null),Ce=l.useRef(0),I=l.useRef(null),{start:Z,stop:te,settleTo:fe}=Xk({audioRef:g,fillRef:f,waveProgressRef:I,sourcesRef:ke,currentIndexRef:Ce}),{onReadyChange:De,waitForReady:ze,markNotReady:Re}=Wk({showSoundWaveForm:c,showNoiseWaveForm:d}),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(Y=>{Fe.current=Y,Ke(Y)},[]),Le=l.useRef(null),{activeNoiseUrl:Ge,noiseSettingsRef:vt,fadeInNoise:Ue,fadeOutNoise:Xe}=Pk({noisePlayer:h,audioRef:g,playbackStateRef:M}),{startTTS:ut,stopTTS:Pe}=Rk({ttsText:i,playbackRate:Q,mainVolume:re,fillRef:f,waveProgressRef:I,setProgress:ae,setPlaybackState:j,setStateLocal:oe,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(N)&&N.length>0?N:Array.isArray(R)&&R.length>0?R:null,Qe=Math.max(Array.isArray(Oe)?Oe.length:0,rt.length),tt=l.useCallback(async(Y,de=3,_e=50)=>{for(let Se=0;Se<de;Se++)try{return await Y.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(u("training.audioFetchError","\uC0AC\uC6B4\uB4DC \uC18C\uC2A4\uB97C \uAC00\uC838\uC624\uC9C0 \uBABB\uD588\uC2B5\uB2C8\uB2E4."))}catch{}return!1}try{ee(u("training.audioFetchError","\uC0AC\uC6B4\uB4DC \uC18C\uC2A4\uB97C \uAC00\uC838\uC624\uC9C0 \uBABB\uD588\uC2B5\uB2C8\uB2E4."))}catch{}return!1},[u]),xt=l.useCallback(()=>{const Y=g.current;if(!Y)return;const de=()=>{j("playing"),oe("playMode"),q(!0),Z();try{Ho(),p.current?.("main",Vo(Y))}catch{}const Ae=vt.current;Ae?.enabled&&(Ae?.level??0)>0&&Ue(Ae.level/9)},_e=()=>{Yk({ended:!!Y?.ended,completedByEnd:Fe.current})||(j("paused"),te(),Xe())},Se=()=>{try{const Ae=ke.current,$e=qk(Ae,Ce.current);if($e!==null){Ce.current=$e,K($e),q(!0);const nt=Ae?.[$e]&&Ae[$e].src;if(nt&&Y){Y.src=nt,Y.load(),tt(Y).catch(()=>{});return}}}catch{}j("stopped"),ae(1);try{if(Y)try{Y.currentTime=0}catch{}}catch{}te(),q(!1),Xe();try{!Ye.current&&Le.current&&Le.current()}catch{}};return Y.addEventListener("play",de),Y.addEventListener("pause",_e),Y.addEventListener("ended",Se),()=>{try{Y.removeEventListener("play",de),Y.removeEventListener("pause",_e),Y.removeEventListener("ended",Se),te()}catch{}}},[Ue,Xe,tt,vt,Z,te]);l.useEffect(()=>xt(),[xt]),l.useEffect(()=>{Ye.current=n},[n]),l.useEffect(()=>{Ne.current=r},[r]),l.useEffect(()=>{if(n||X!=="active")return;const Y=x.current;if(!Y)return;let de=null;const _e=requestAnimationFrame(()=>{try{const Se=Y.getTotalLength();if(!Se)return;const Ae=Se*.2;Y.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),Y.style.animation=`${$e} 2.4s linear infinite`}catch{}});return()=>{cancelAnimationFrame(_e),de?.remove()}},[X,n]),l.useEffect(()=>{ke.current=N},[N]),l.useEffect(()=>{Ce.current=G},[G]),l.useEffect(()=>{const Y=b.current,de=y.current;if(!Y||!de)return;let _e=null;const Se=32,Ae=60,$e=()=>{try{const ct=Array.from(Y.querySelectorAll(":scope > .button"));let pe=0;ct.forEach(Zt=>{if(Zt===de)return;const Eo=Zt.getBoundingClientRect();pe+=Eo.width});const Te=Y.getBoundingClientRect().width,at=Math.max(0,Math.floor(Te-pe-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(Y),_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{}}},[N,R,Qe]),l.useEffect(()=>()=>{try{Me.current&&(clearTimeout(Me.current),Me.current=null),Ve.current&&(clearTimeout(Ve.current),Ve.current=null)}catch{}},[]);const Et=(Y,de)=>{L(Y),se(de),Re(),z(Uk(Y)),ke.current=Y},it=async(Y,de)=>{We(!1),_.current=!1,Y.src=de,Y.load(),await Ab(Y),await ze(),B(!1),await tt(Y),oe("playMode"),K(0),q(!0)},Ht=async(Y,de=!1)=>{const _e=g.current;B(!0),P("measuring_duration");try{const Se=await pc(Y,{timeoutMs:1e4,rejectOnError:!0});Et([{src:Y,objectUrl:null,duration:Se}],Se),P("ready"),de&&_e&&await it(_e,Y)}finally{_.current=!1,B(!1)}},mt=async(Y,de=!1)=>{const _e=g.current;B(!0),P("measuring_duration");try{const Se=await Promise.all(Y.map($e=>pc($e,{timeoutMs:1e4}))),Ae=Y.map(($e,nt)=>({src:$e,objectUrl:null,duration:Se[nt]||0}));Et(Ae,Kk(Ae)),P("ready"),de&&_e&&Ae.length>0&&await it(_e,Ae[0].src)}finally{_.current=!1,B(!1)}},Vt=async(Y=!1,de=!0)=>{const _e=g.current,Se=t?Array.isArray(t)?t:[t]:[];if(!(!Se||Se.length===0||!Se.some(Boolean))&&!_.current){_.current=!0,de&&B(!0),P("resolving");try{const Ae=Zk(t,a,Dr),$e=[];let nt=0;for(const ct of Ae){let pe=ct.src??null,Te=null;if(!pe&&ct.resolvedPath){try{P("getting_signed_url"),pe=await Oo(ct.resolvedPath)}catch{pe=null}if(!pe)try{P("downloading");const Ct=await Er(ct.resolvedPath);if(Ct){const _t=Ct instanceof Blob?Ct:new Blob([Ct]);Te=v.track(URL.createObjectURL(_t)),pe=Te}}catch{P("error");try{ee(u("training.audioFetchError","\uC0AC\uC6B4\uB4DC \uC18C\uC2A4\uB97C \uAC00\uC838\uC624\uC9C0 \uBABB\uD588\uC2B5\uB2C8\uB2E4.")),oe("active")}catch{}}}if(!pe)continue;let at=0;try{P("measuring_duration"),at=await pc(pe,{timeoutMs:3e3})}catch{at=0}nt+=at||0,$e.push({...ct,src:pe,objectUrl:Te,duration:at})}if(Et($e,nt),$e.length>0&&Y&&_e){const ct=$e[0];We(!1);try{v.keepOnly($e.map(pe=>pe.objectUrl))}catch{}if(P("ready"),_.current=!1,ct.src&&_e)try{_e.src=ct.src,_e.load(),await Ab(_e),await ze(),de&&B(!1),_e&&await tt(_e)}catch{de&&B(!1)}else de&&B(!1);oe("playMode"),K(0),q(!0)}}finally{_.current=!1,de&&B(!1),P(Ae=>Ae==="ready"?"ready":"idle")}}},ia=async()=>{const Y=g.current;if(!(!Y&&!et)){if(et){const de=window.speechSynthesis;if(X==="active"){const _e=Fo(),Se=Array.isArray(i)?i.filter(Boolean):i?[i]:[];if(_e&&Se.length>0){oe("load"),B(!0),P("resolving"),_.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{_.current=!1,B(!1),oe("active"),ut(Se[0]||void 0)}return}ut(Se[0]||void 0);return}if(X==="playMode"){if(Y){if(Y.paused){if(Fe.current){await Gt();return}await tt(Y),j("playing")}else Y.pause(),j("paused");return}try{if(de&&de.paused)try{de.resume(),j("playing")}catch{}else try{de.pause(),j("paused")}catch{}}catch{}}return}if(X==="active"){if(n&&Array.isArray(ke.current)&&ke.current.length>0){const de=ke.current[0];try{if(de.src&&Y)try{Y.src=de.src,Y.load(),Y&&await tt(Y)}catch{}oe("playMode"),K(0),q(!0);return}catch{}}oe("load"),await Vt(!0);return}if(X!=="load"&&(X==="playMode"||X==="active"))try{if(Y&&Y.paused){if(Fe.current){await Gt();return}Y&&await tt(Y),j("playing")}else Y&&(Y.pause(),j("paused"))}catch(de){(de instanceof Error||typeof de=="object"&&de&&"name"in de)&&de.name}}},Gt=async()=>{const Y=g.current;if(Y)try{const de=ke.current;if(Array.isArray(de)&&de.length>1){await $t(0);return}We(!1);try{Y.currentTime=0}catch{}Y&&await tt(Y),j("playing"),oe("playMode")}catch{}},Ea=()=>{if(et){Pe();return}const Y=g.current;try{if(Y){try{Y.pause()}catch{}try{Y.currentTime=0}catch{}}}catch{}Xe(),j("stopped"),oe("active"),ae(0),q(!1)},sa=async(Y,{sameSegment:de=!1}={})=>{const _e=++C.current,Se=g.current,Ae=ke.current?.[Y]?.src;try{if(We(!1),K(Y),q(!0),Ce.current=Y,!Ae||!Se||(de||Re(),Se.src=Ae,Se.load(),de||await ze(),_e!==C.current)||(await tt(Se),_e!==C.current))return;j("playing"),oe("playMode")}catch{}},Kt=async()=>{const Y=ke.current,de=Ce.current||0;if(!Y||de<=0){await Gt();return}await sa(de-1)},ja=async()=>{const Y=ke.current,de=Ce.current||0;if(!Y||de>=Y.length-1){Ea();return}await sa(de+1)},jt=()=>{if(Fe.current)return;const Y=200,de=340;We(!0);try{ae(1)}catch{}fe(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{j("stopped")}catch{}if(q(!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)},Y)}catch{}};l.useEffect(()=>{Le.current=jt});const Ga=l.useCallback(()=>ee(""),[]),$t=async Y=>{(ke.current||[])[Y]&&await sa(Y,{sameSegment:Y===Ce.current})},ya=T==="playing",qa=l.useMemo(()=>{if(!R||R.length<=1)return R;const Y=R[G];return Y?[Y]:R},[R,G]),Je=n===!0;l.useEffect(()=>{try{const Y=g.current;Y&&typeof Y.playbackRate=="number"&&(Y.playbackRate=Q||1)}catch{}},[Q]),l.useEffect(()=>{try{const Y=g.current;Y&&(Y.volume=Math.max(0,Math.min(1,re)))}catch{}},[re]);const It=me==="hold",kt=me==="out",xa=X==="playMode"&&!A&&!be||It||kt,la=T!=="stopped"||It||kt,ne=T==="paused",ve=Math.max(0,Math.min(100,(H||0)*100)),ye=xe("audio-player__fill",xa?"is-visible":"",la?"is-expanded":"",ne?"is-paused":"",kt?"is-out":"");return o.jsxs("div",{className:`audio-player ${Je?"is-disabled":""}${s?` ${s}`:""}`,role:"group","aria-label":typeof m=="string"?m:void 0,children:[o.jsxs("div",{className:`audio-player__panel ${ya?"is-playing":""} ${A?"is-loading":""} ${X!=="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:Ok[W]})]}):null,X==="active"?o.jsx("button",{className:"audio-player__button",type:"button",onClick:()=>{E(),ia()},"aria-label":typeof m=="string"?m:u("training.listen","\uB4E3\uAE30"),onMouseEnter:S,onMouseLeave:E,onFocus:S,onBlur:E,children:o.jsx("span",{ref:k,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,w&&o.jsx(aa,{anchorRect:w,text:typeof m=="string"&&m?m:u("training.listenLabel","\uBB38\uC7A5 \uB4E3\uAE30"),offset:8}),o.jsxs("div",{className:`audio-player__play ${X==="playMode"||ya?"is-visible":""}`,children:[o.jsxs("div",{ref:b,className:"audio-player__buttons",children:[o.jsx(ie,{size:32,showTooltipInfo:!0,type:"dot",shape:"pill",useBorder:!1,icon:"skip-back",onClick:Kt,ariaLabel:u("training.prev","\uC774\uC804"),width:"60px",variant:"transparent-white","aria-hidden":"true",tabIndex:-1,disabled:X!=="playMode"}),o.jsx(ie,{size:32,showTooltipInfo:!0,type:"dot",shape:"pill",useBorder:!1,icon:ya?"pause":"play",onClick:ia,ariaLabel:u("common.playPause","\uC7AC\uC0DD / \uBA48\uCDA4"),width:"60px",variant:"transparent-white",disabled:X!=="playMode"}),o.jsx(ie,{size:32,showTooltipInfo:!0,type:"dot",shape:"pill",useBorder:!1,icon:"square",onClick:Ea,ariaLabel:u("training.stop","\uC815\uC9C0"),width:"60px",variant:"transparent-white","aria-hidden":"true",tabIndex:-1,disabled:X!=="playMode"}),Qe>1?o.jsx("div",{ref:y,className:"audio-player__source-buttons",children:Array.from({length:Qe}).map((Y,de)=>o.jsx(ie,{size:32,type:"dot",shape:"pill",useBorder:!1,label:String(de+1),onClick:()=>{try{$t(de)}catch{}},ariaLabel:u("training.sourcePlay",{n:de+1}),variant:"transparent-white",selected:O&&G===de,disabled:X!=="playMode"||!(Array.isArray(N)&&N[de]),showTooltipInfo:!0},de))}):null,!Array.isArray(N)||N.length<=1?o.jsx(ie,{size:32,showTooltipInfo:!0,type:"dot",shape:"pill",useBorder:!1,icon:"repeat",onClick:Gt,ariaLabel:u("common.replay","\uB2E4\uC2DC\uB4E3\uAE30"),width:"60px",variant:"transparent-white",disabled:X!=="playMode"}):null,o.jsx(ie,{size:32,showTooltipInfo:!0,type:"dot",shape:"pill",useBorder:!1,icon:"skip-forward",onClick:ja,ariaLabel:u("training.next","\uB2E4\uC74C"),width:"60px",variant:"transparent-white","aria-hidden":!0,tabIndex:-1,disabled:X!=="playMode"}),o.jsx(ie,{size:32,showTooltipInfo:!0,type:"dot",shape:"pill",useBorder:!1,icon:"check",onClick:jt,ariaLabel:u("common.done","\uC644\uB8CC"),width:"60px",variant:"transparent-white",disabled:X!=="playMode"})]}),o.jsxs("div",{className:"audio-player__slider",children:[o.jsx("div",{className:ye,ref:f,style:{left:`${ve}%`},"aria-hidden":"true"}),(c||d)&&o.jsx(zk,{segments:qa,progress:H,totalDuration:F,onSegmentClick:$t,waveProgressRef:I,showSoundWaveForm:c,noiseSrc:d&&h?.settings.enabled&&(h?.settings.level??0)>0?Ge:null,noiseLevel:h?.settings.level??0,noiseSpeed:h?.settings.speed??1,mainVolume:re,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}),u("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:$,position:ue,onClose:Ga})]})}var Qk=".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(Qk);function No(e){const{t}=ge.useTranslation(),{text:a,label:r,anchorRect:n=null,onClose:i,closeOnOutsideClick:s=!0,isMobilePopup:c=!1}=e||{},[d,u]=l.useState(()=>{try{return localStorage.getItem("tooltip-theme")||"light"}catch{return"light"}});l.useEffect(()=>{try{localStorage.setItem("tooltip-theme",d)}catch{}},[d]);const{increase:m,decrease:h,canIncrease:p,canDecrease:g,fontSize:f,lineHeight:b}=sn({storageKey:"tooltip-fontScale"}),v=l.useCallback(()=>u(k=>k==="dark"?"light":"dark"),[]),y=l.useCallback(k=>{try{k.stopPropagation()}catch{}try{typeof i=="function"&&i()}catch{}},[i]),_=Array.isArray(a)?a:typeof a>"u"||a===null?[]:[a],C={fontSize:`${f}px`,lineHeight:`${b}px`,"--tt-line-height":`${b}px`,"--tt-marker-size":"28px"},x=o.jsxs("div",{className:`tooltip-textbox__root ${d==="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:C,children:_.map((k,w)=>o.jsxs("div",{className:"tooltip-textbox__line",children:[_.length>1?o.jsx("div",{className:"tooltip-textbox__marker",children:o.jsx("span",{className:"tooltip-textbox__line-number button-1",children:w+1})}):null,o.jsx("span",{className:"tooltip-textbox__line-text",children:k})]},w))})]}),o.jsxs("div",{className:"tooltip-textbox__buttons",children:[o.jsx(ie,{size:32,showTooltipInfo:!0,type:"dot",useBorder:!1,width:48,icon:"minus",onClick:h,ariaLabel:t("training.fontSizeDecrease","\uAE00\uC790 \uD06C\uAE30 \uAC10\uC18C"),variant:d==="dark"?"transparent-white":"transparent-gray",disabled:!g}),o.jsx(ie,{size:32,showTooltipInfo:!0,type:"dot",useBorder:!1,width:48,icon:"plus",onClick:m,ariaLabel:t("training.fontSizeIncrease","\uAE00\uC790 \uD06C\uAE30 \uC99D\uAC00"),variant:d==="dark"?"transparent-white":"transparent-gray",disabled:!p}),o.jsx(ie,{size:32,showTooltipInfo:!0,type:"dot",useBorder:!1,width:48,icon:d==="dark"?"moon":"sun-medium",onClick:v,ariaLabel:t("training.toggleBackground","\uBC30\uACBD \uC804\uD658"),variant:d==="dark"?"transparent-white":"transparent-gray"}),o.jsx(ie,{size:32,showTooltipInfo:!0,type:"dot",useBorder:!1,width:48,icon:"x",onClick:y,ariaLabel:t("common.close","\uB2EB\uAE30"),variant:d==="dark"?"transparent-white":"transparent-gray"})]})]});return n?o.jsx(Sa,{anchorRect:n,className:`tooltip-textbox ${d==="dark"?"is-dark":""}`,onClose:i,closeOnOutsideClick:s,isMobilePopup:c,children:x}):o.jsx("div",{className:`tooltip-textbox ${d==="dark"?"is-dark":""}`,children:x})}var Jk=".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(Jk);var e7='.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(e7);function hc({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 t7=".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(t7);function mc({title:e,children:t,className:a="",state:r="disabled",usePreviewTextBtn:n=!1,onPreviewTextBtn:i,previewText:s=null,useFaded:c,usePlayAllBtn:d=!1,onPlayAll:u,playAllActive:m=!1}){const{t:h}=ge.useTranslation(),p=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),[v,y]=l.useState(!1),[_,C]=l.useState(null),[x,k]=l.useState(null),w=l.useRef(i);l.useEffect(()=>{w.current=i});const S=l.useMemo(()=>s==null?"":typeof s=="string"||typeof s=="number"?String(s):Array.isArray(s)&&s.every(B=>typeof B=="string"||typeof B=="number")?s.join(""):"",[s]),E=l.useCallback(()=>{y(!1),C(null),k(null)},[]);l.useEffect(()=>{if(!v)return;let B;try{typeof w.current=="function"&&(B=w.current())}catch{}if(B===!1){E();return}k(typeof B<"u"&&B!==null?B:null)},[S]);const A=l.useCallback(()=>{let B;try{typeof i=="function"&&(B=i())}catch{}if(B!==!1){if(k(typeof B<"u"&&B!==null?B:s),!b.current){y(W=>!W);return}if(v)y(!1),C(null),k(null);else{const W=b.current.getBoundingClientRect();C(W),y(!0)}}},[i,s,v]);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||d?o.jsxs("div",{className:"title-controls",children:[o.jsxs("div",{className:"title-buttons",children:[d&&o.jsx(ie,{size:32,type:p?"dot":"bar",icon:"play-circle",label:p?void 0:h("training.playAll","\uBAA8\uB450 \uB4E3\uAE30"),ariaLabel:h("training.playAll","\uBAA8\uB450 \uB4E3\uAE30"),selected:m,onClick:u,variant:r==="disabled"?"disabled":"default",disabled:r==="disabled"||m}),n&&o.jsx("div",{ref:b,children:o.jsx(ie,{size:32,type:p?"dot":"bar",icon:"eye",label:p?void 0:h("training.sentencePreview","\uBB38\uC7A5 \uBBF8\uB9AC\uBCF4\uAE30"),ariaLabel:h("training.sentencePreview","\uBB38\uC7A5 \uBBF8\uB9AC\uBCF4\uAE30"),selected:v,onClick:A,variant:r==="disabled"?"disabled":"default",disabled:!s&&typeof i!="function"})})]}),v&&o.jsx(No,{text:x??s,label:h("training.sentencePreview","\uBB38\uC7A5 \uBBF8\uB9AC\uBCF4\uAE30"),anchorRect:_,onClose:E,closeOnOutsideClick:!1,isMobilePopup:!0})]}):null]})}function bc(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:d=void 0}){const[u,m]=l.useState(()=>bc(e,t));l.useEffect(()=>{const x=bc(e,t);if(x!==u){const k=setTimeout(()=>m(x),0);return()=>clearTimeout(k)}},[e,t,u]);const h=l.useCallback((...x)=>{bc(e,t)==="done"||u==="done"||typeof c=="function"&&c(...x)},[e,t,u,c]),[p,g]=l.useState(!1),[f,b]=l.useState({text:"",label:"\uBB38\uC7A5 \uB4E3\uAE30",anchorRect:null,backdrop:!1,alignX:null,alignY:null}),v=l.useCallback(x=>{if(!x)return null;try{const k=x;if(typeof x=="object"&&(k.currentTarget||k.target)&&(k.nativeEvent||k.type)){const E=k.currentTarget??k.target;if(E&&typeof E.getBoundingClientRect=="function")return E.getBoundingClientRect()}if(x instanceof DOMRect)return x;const w=x;if(w&&typeof w.getBoundingClientRect=="function")return w.getBoundingClientRect();const S=x?.current;return S&&typeof S.getBoundingClientRect=="function"?S.getBoundingClientRect():null}catch{return null}},[]),y=l.useCallback((x,{text:k="",label:w="\uBB38\uC7A5 \uB4E3\uAE30",backdrop:S=!1,alignX:E="center",alignY:A="top"}={})=>{const B=v(x);b({text:k,label:w,anchorRect:B,backdrop:S,alignX:E,alignY:A}),g(!0)},[v]),_=l.useCallback(()=>{g(!1),b(x=>({...x,anchorRect:null}))},[]),C=l.Children.map(i,x=>{if(l.isValidElement(x)){const k=x;if(typeof k.type=="string")return k;const w=k.props??{},S=typeof w.onDone=="function"?w.onDone:h,E=typeof w.disabled=="boolean";let A=u==="disabled";return E&&(A=!!w.disabled),l.cloneElement(k,{onDone:S,disabled:A,showTooltip:y,hideTooltip:_})}return x});return o.jsxs("div",{className:`training-step training-step--${u} ${a?"training-step--last":""} ${s}`,"aria-current":u==="active",children:[o.jsx(hc,{state:u}),o.jsxs("div",{className:"training-step__content",children:[o.jsx(mc,{state:u,title:r,...n,useFaded:d}),C]}),p?o.jsx(Sa,{anchorRect:f.anchorRect,backdrop:f.backdrop,onClose:_,children:o.jsx(No,{text:f.text,onClose:_})}):null]})}var a7='.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(a7);function gc({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 d=()=>c(A=>A==="dark"?"light":"dark"),{increase:u,decrease:m,canIncrease:h,canDecrease:p,fontSize:g,lineHeight:f}=sn({storageKey:"textbox_fontScale"}),[b,v]=l.useState(""),y=l.useCallback(()=>i("active"),[]),_=l.useCallback(()=>v(""),[]),C=A=>{try{v(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 k=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)},[k]);const w=t==="disabled"?n:t,S=w==="disabled"?"training-text-box--disabled":w==="active"?"training-text-box--active":w==="done"?"training-text-box--done":"",E=l.useMemo(()=>({fontSize:`${g}px`,lineHeight:`${f}px`}),[g,f]);return o.jsxs("div",{className:`training-text-box ${S} ${w!=="disabled"&&s==="dark"?"is-dark":""}`,children:[w==="disabled"&&o.jsx("div",{className:"training-text-box__preview",children:o.jsx(ie,{size:48,type:"bar",onClick:y,icon:"eye",ariaLabel:r("training.sentencePreview","\uBB38\uC7A5 \uBBF8\uB9AC\uBCF4\uAE30"),label:r("training.sentencePreview","\uBB38\uC7A5 \uBBF8\uB9AC\uBCF4\uAE30"),useBorder:!1})}),o.jsx("div",{className:"training-text-box__area","aria-hidden":w==="disabled",children:o.jsx("span",{className:"training-text-box__inner h3",style:E,children:k})}),w!=="disabled"&&o.jsxs("div",{className:"training-text-box__buttons","aria-hidden":w==="disabled",children:[o.jsx(ie,{size:32,type:"dot",onClick:m,onDisabledClick:()=>C(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:!p,useBorder:!1,showTooltipInfo:!0,...!x&&{width:"60px"}}),o.jsx(ie,{size:32,type:"dot",onClick:u,onDisabledClick:()=>C(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:!h,useBorder:!1,showTooltipInfo:!0,...!x&&{width:"60px"}}),o.jsx(ie,{size:32,showTooltipInfo:!0,type:"dot",useBorder:!1,width:48,icon:s==="dark"?"moon":"sun-medium",onClick:d,ariaLabel:r("training.toggleBackground","\uBC30\uACBD \uC804\uD658"),variant:s==="dark"?"transparent-white":"transparent-gray"})]}),o.jsx(ro,{message:b,position:"top",onClose:_})]})}function jn({index:e,stepIndex:t,isLast:a=!1,title:r,useTitleFaded:n,onDone:i,onChange:s,answer:c,wrongAnswers:d,choices:u,multiSelect:m=!1,correctCount:h=0,useDisabledCovered:p=!1,choiceIcons:g,shuffleChoices:f=!0}){const{t:b}=ge.useTranslation(),v=r??b("training.selectConfirm","\uBB38\uC81C\uB97C \uBCF4\uACE0 \uD574\uB2F9\uD558\uB294 \uB0B4\uC6A9\uC744 \uC120\uD0DD\uD558\uC138\uC694."),y=typeof e=="number"?e:-1,_=typeof t!="number"?"disabled":y<t?"done":y===t?"active":"disabled",C=Array.isArray(u)&&u.length?u:typeof c<"u"?[c].concat(Array.isArray(d)?d:[]):void 0,x=d?d.join("||"):"",k=u?u.join("||"):"",[w,S]=l.useState(()=>Array.isArray(C)?f?He(C):C.slice():void 0);l.useEffect(()=>{Array.isArray(C)&&C.length?S(f?He(C):C.slice()):S(void 0)},[c,x,k,f]);const[E,A]=l.useState(null),[B,W]=l.useState(()=>new Set);l.useEffect(()=>{A(null),W(new Set)},[k]);const P=l.useRef(void 0);l.useEffect(()=>{const M=P.current;typeof M=="number"&&typeof t=="number"&&typeof e=="number"&&M>=e&&t<e&&(A(null),W(new Set)),P.current=t},[t,e]);const T=l.useCallback(M=>{if(_!=="active")return;const H=w?.[M];if(H==null)return;const ae=H,X=_==="active"||_==="done";if(m){const oe=new Set(B),N=oe.has(ae);N?oe.delete(ae):oe.add(ae),W(oe),typeof s=="function"&&s({selectedValues:[...oe],__ts:Date.now()}),X&&(typeof h=="number"&&h>0?oe.size>=h:!N)&&typeof i=="function"&&_==="active"&&i({selectedValues:[...oe],__ts:Date.now()})}else A(ae),typeof s=="function"&&s({selectedIndex:M,selectedValue:ae,__ts:Date.now()}),X&&typeof i=="function"&&_==="active"&&i({selectedIndex:M,selectedValue:ae,__ts:Date.now()})},[w,_,m,s,i,h,B]),j=`training-step__buttons${Array.isArray(w)&&w.length>3?" training-step__buttons--wrap-3":""}`;return o.jsx(Va,{index:e,stepIndex:t,isLast:a,title:v,useTitleFaded:n,children:o.jsx("div",{className:j,children:Array.isArray(w)&&w.length>0?w.map((M,H)=>o.jsx(ie,{size:56,type:"bar",onClick:()=>T(H),ariaLabel:String(M),label:M,useLabel:!0,icon:g?g[String(M)]:void 0,variant:"default",disabled:_==="disabled",selected:m?B.has(M):E===M,useDisabledCovered:p,minWidth:0},String(M))):null})})}function Ln({index:e,stepIndex:t,isLast:a=!1,title:r,onDone:n,onChange:i,context:s,demoSelected:c}){const{t:d}=ge.useTranslation(),u=r??d("training.confirmTitle","\uBB38\uC7A5\uC744 \uD655\uC778\uD558\uACE0 \uC798 \uB4E4\uB838\uB294\uC9C0 \uC120\uD0DD\uD558\uC138\uC694."),m=typeof e=="number"?e:-1,h=typeof t!="number"?"disabled":m<t?"done":m===t?"active":"disabled",p=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 C=setTimeout(()=>b(null),0);return()=>clearTimeout(C)}},[p,c,f]);const v=l.useCallback(C=>{const x=typeof C=="object"&&C!==null?Object.assign({},C,{__ts:Date.now()}):{value:C,__ts:Date.now()};typeof i=="function"&&i(x),h==="active"&&typeof n=="function"&&n(x)},[i,h,n]),y=l.useCallback(()=>{h==="active"&&(b(!1),v(!1))},[v,h]),_=l.useCallback(()=>{h==="active"&&(b(!0),v(!0))},[v,h]);return o.jsxs(Va,{index:e,stepIndex:t,isLast:a,title:u,onDone:n,useTitleFaded:!1,children:[o.jsx(gc,{context:s,state:h}),o.jsx("div",{className:"training-step__buttons",children:Array.isArray(g)&&g.length>0?g.slice(0,6).map((C,x)=>o.jsx(ie,{size:56,type:"bar",onClick:()=>{h==="active"&&(b(x),v&&v(x))},disabled:h==="disabled",ariaLabel:String(C),label:C,variant:h,selected:f===x},x)):o.jsxs(o.Fragment,{children:[o.jsx(ie,{size:56,type:"bar",onClick:y,disabled:h==="disabled",icon:"x",ariaLabel:d("training.notHeard","\uC548 \uB4E4\uB838\uC5B4\uC694."),label:d("training.notHeard","\uC548 \uB4E4\uB838\uC5B4\uC694."),variant:"default",selected:f===!1}),o.jsx(ie,{size:56,type:"bar",onClick:_,disabled:h==="disabled",icon:"circle",ariaLabel:d("training.heardWell","\uC798 \uB4E4\uB838\uC5B4\uC694."),label:d("training.heardWell","\uC798 \uB4E4\uB838\uC5B4\uC694."),variant:"default",selected:f===!0})]})})]})}function Mn({index:e,stepIndex:t,isLast:a=!1,title:r,onDone:n,btnLabel:i,soundSrc:s,bucketPath:c,usePreviewTextBtn:d,previewText:u=null,onPreviewTextBtn:m,disabled:h,_pageIndex:p,showSoundWaveForm:g,showNoiseWaveForm:f}){const{t:b}=ge.useTranslation(),v=r??b("training.listenTitle","\uC81C\uC2DC\uD558\uB294 \uBB38\uC7A5\uC744 \uB4E4\uC5B4\uC8FC\uC138\uC694."),y=h??(typeof t=="number"&&typeof e=="number"?e>t:!1);return o.jsx(Va,{index:e,stepIndex:t,isLast:a,title:v,onDone:n,titleProps:{usePreviewTextBtn:d,previewText:u,onPreviewTextBtn:m},children:o.jsx(wr,{soundSrc:s,ttsText:s?null:u??v,bucketPath:c,btnLabel:i||b("training.listenButton","\uBB38\uC7A5 \uB4E3\uAE30"),disabled:y,className:"training-step__listen-sticky",showSoundWaveForm:g,showNoiseWaveForm:f},`audio-p${p??0}-s${e}`)})}var o7=".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(o7);var r7=".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(r7);function Pn({index:e,stepIndex:t,isLast:a=!1,title:r,onDone:n,onChange:i,context:s=[]}){const{t:c}=ge.useTranslation(),d=r??c("training.orderListDefault","\uBB38\uC7A5\uC744 \uB4E4\uC740 \uC21C\uC11C\uB300\uB85C \uBC30\uCE58\uD558\uC138\uC694."),u=L=>typeof L=="string"?L:L&&(L.context||L.sentence||L.question||"")||"",[m,h]=l.useState(Array.isArray(s)?s:[]),[p,g]=l.useState(()=>(m||[]).map((L,R)=>({id:R,text:u(L)}))),f=l.useMemo(()=>typeof t!="number"||typeof e!="number"?"disabled":e<t?"done":e===t?"active":"disabled",[t,e]);l.useEffect(()=>{const L=Array.isArray(s)?s:[];h(L);const R=(z=>{const G=(z||[]).map((F,se)=>({id:se,text:u(F)}));if(G.length<=1)return G;const K=(F,se)=>{if(F.length!==se.length)return!1;for(let Q=0;Q<F.length;Q++)if(F[Q].text!==se[Q].text)return!1;return!0};let O=He(G),q=0;for(;K(O,G)&&q<20;)O=He(G),q+=1;return O})(L);g(R);try{if(typeof i=="function"){const z=R.filter((G,K)=>G.text===u(L[K])).length;i({shuffled:R,score:z,total:(L||[]).length,initial:!0,__ts:Date.now()})}if(typeof n=="function"&&f==="active"){const z=R.filter((G,K)=>G.text===u(L[K])).length;n({shuffled:R,score:z,total:(L||[]).length,initial:!0,__ts:Date.now()})}}catch{}},[s]);const b=(L,R)=>{const z=[...p],G=L+R;if(G<0||G>=z.length)return;const K=z[G];z[G]=z[L],z[L]=K,j(z);try{if(typeof n=="function"&&f==="active"){const O=z.filter((q,F)=>q.text===u(m[F])).length;n({shuffled:z,score:O,total:(m||[]).length,__ts:Date.now()})}}catch{}},[v,y]=l.useState(null),_=l.useRef(null),C=l.useRef(null),x=l.useRef(null),k=l.useRef(null),w=l.useRef(null),S=l.useRef({x:0,y:0}),E=l.useRef(null),A=l.useRef({dx:0,dy:0}),B=()=>{if(E.current!==null)return;const L=()=>{E.current=requestAnimationFrame(L);const R=S.current,z=A.current||{dx:0,dy:0};_.current&&(_.current.style.transform=`translate3d(${R.x-z.dx}px, ${R.y-z.dy}px, 0)`)};E.current=requestAnimationFrame(L)},W=l.useRef(new Map),P=l.useRef(new Map),T=()=>{const L=new Map;return W.current.forEach((R,z)=>{R&&R.getBoundingClientRect&&L.set(z,R.getBoundingClientRect())}),L},j=L=>{const R=T();g(L);try{if(typeof i=="function"){const z=L.filter((G,K)=>G.text===u(m[K])).length;i({shuffled:L,score:z,total:(m||[]).length,__ts:Date.now()})}}catch{}requestAnimationFrame(()=>{const z=T();L.forEach(G=>{const K=R.get(G.id),O=z.get(G.id),q=W.current.get(G.id);if(!q||!K||!O)return;const F=K.top-O.top;F&&(q.style.transition="none",q.style.transform=`translateY(${F}px)`,requestAnimationFrame(()=>{q.style.transition="transform 420ms cubic-bezier(.22,.9,.39,1)",q.style.transform="";const se=()=>{q.style.transition="",q.removeEventListener("transitionend",se)};q.addEventListener("transitionend",se)}))})})},M=(L,R)=>{try{try{R.dataTransfer?.setData("text/plain",String(L))}catch{}try{R.dataTransfer&&(R.dataTransfer.effectAllowed="move")}catch{}try{const z=document.createElement("div");z.style.cssText="position:absolute;top:-9999px;left:-9999px;width:1px;height:1px;opacity:0;pointer-events:none;",document.body.appendChild(z),R.dataTransfer?.setDragImage(z,0,0),requestAnimationFrame(()=>{try{document.body.removeChild(z)}catch{}})}catch{}}catch{}y(L);try{const z=p[L],G=document.createElement("div");G.className="order-list__dragging-object order-list__dragging-object--visible",G.textContent=z&&z.text?z.text:"",document.body.appendChild(G),_.current=G;const K=W.current.get(z.id);let O=R.clientX||0,q=R.clientY||0;try{if(K&&K.getBoundingClientRect){const ce=K.getBoundingClientRect();O=ce.left+ce.width/2,q=ce.top+ce.height/2}}catch{}const F=G.getBoundingClientRect(),se=F.width/2,Q=F.height/2;A.current={dx:se,dy:Q},G.style.transition="none",S.current={x:O,y:q},G.style.transform=`translate3d(${O-se}px, ${q-Q}px, 0)`,requestAnimationFrame(()=>{try{G.style.transition=""}catch{}B()});const re=ce=>{const $=ce;S.current={x:$.clientX,y:$.clientY},B()};x.current=re,document.addEventListener("mousemove",re);const me=ce=>{const $=ce;S.current={x:$.clientX,y:$.clientY},B()};C.current=me,document.addEventListener("dragover",me);try{R.dataTransfer?.setData("text/plain",String(L));try{R.dataTransfer?.setData("application/json",JSON.stringify({idx:L}))}catch{}}catch{}}catch{}},H=(L,R)=>{R.preventDefault();try{R.dataTransfer&&(R.dataTransfer.dropEffect="move")}catch{}try{w.current!==null&&(clearTimeout(w.current),w.current=null);const z=R.currentTarget&&R.currentTarget.closest?R.currentTarget.closest(".order-list__item"):null;if(z&&k.current!==z){if(k.current)try{k.current.classList.remove("drag-over")}catch{}try{z.classList.add("drag-over")}catch{}k.current=z}}catch{}},ae=(L,R)=>{R.preventDefault();const z=R.dataTransfer?.getData("text/plain")||"",G=z?parseInt(z,10):v,K=L;if(typeof G!="number"||isNaN(G)||G===K){y(null),N(),X();return}const O=Ii(p,G,K);j(O),y(null),X();try{if(typeof n=="function"&&f==="active"){const q=O.filter((F,se)=>F.text===u(m[se])).length;n({shuffled:O,score:q,total:(m||[]).length,__ts:Date.now()})}}catch{}try{requestAnimationFrame(()=>{const q=document.querySelectorAll(".order-list .order-list__item")[K];if(!q)return;const F=q.querySelector(".order-list__slot")||q;try{F.classList.add("pulse"),F.offsetHeight,F.classList.add("to-dark");const se=()=>{F.classList.remove("pulse","to-dark"),F.removeEventListener("transitionend",se)};F.addEventListener("transitionend",se)}catch{}})}catch{}N()},X=()=>{if(_.current){try{document.body.removeChild(_.current)}catch{}_.current=null}C.current&&(document.removeEventListener("dragover",C.current),C.current=null),x.current&&(document.removeEventListener("mousemove",x.current),x.current=null),E.current!==null&&(cancelAnimationFrame(E.current),E.current=null)},oe=()=>{y(null),N(),X()};l.useEffect(()=>()=>X(),[]);const N=()=>{try{if(w.current!==null&&(clearTimeout(w.current),w.current=null),k.current){try{k.current.classList.remove("drag-over")}catch{}k.current=null}document.querySelectorAll(".order-list .order-list__item").forEach(L=>L.classList.remove("drag-over"))}catch{}};return l.useEffect(()=>{try{const L=Math.max(1,(p||[]).length);p.forEach((R,z)=>{const G=P.current.get(R.id);if(!G)return;let K=50;L>1&&(K=Math.round(z/(L-1)*100));try{G.style.setProperty("--marker-pos",K+"%")}catch{}})}catch{}},[p]),l.useEffect(()=>()=>{X(),w.current!==null&&(clearTimeout(w.current),w.current=null)},[]),o.jsx(Va,{index:e,stepIndex:t,isLast:a,title:d,children:o.jsx("div",{className:"order-list",children:p.map((L,R)=>{const z=Math.max(1,(p||[]).length),G=z>1?Math.round(R/(z-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":G+"%"},ref:K=>{const O=P.current;K?O.set(L.id,K):O.delete(L.id)},children:o.jsx("span",{className:"order-list__slot-number button-1",children:R+1})}):null,o.jsxs("div",{ref:K=>{const O=W.current;K?O.set(L.id,K):O.delete(L.id)},className:`order-list__draggable ${v===R?"dragging":""}`,"data-disabled":f==="disabled","aria-disabled":f==="disabled",tabIndex:f==="disabled"?-1:0,draggable:f==="active",onDragStart:f==="active"?K=>M(R,K):void 0,onDragEnter:f==="active"?K=>H(R,K):void 0,onDragOver:f==="active"?K=>H(R,K):void 0,onDragLeave:f==="active"?()=>{try{w.current!==null&&clearTimeout(w.current),w.current=setTimeout(()=>{try{const K=document.querySelectorAll(".order-list .order-list__item");K&&K[R]&&(K[R].classList.remove("drag-over"),k.current===K[R]&&(k.current=null))}catch{}},80)}catch{}}:void 0,onDrop:f==="active"?K=>ae(R,K):void 0,onDragEnd:f==="active"?oe:void 0,children:[o.jsx("span",{className:"order-list__item-text body-2",children:L.text}),f==="active"?o.jsxs("span",{className:"order-list__item-buttons",children:[o.jsx(ie,{size:32,type:"dot",onClick:()=>b(R,-1),ariaLabel:c("training.up"),icon:"chevron-up",variant:"transparent-gray",width:48,useFaded:"true",disabled:R===0,useBorder:!1,useDisabledInvisible:!0}),o.jsx(ie,{size:32,type:"dot",onClick:()=>b(R,1),ariaLabel:c("training.down"),icon:"chevron-down",variant:"transparent-gray",width:48,useFaded:"true",disabled:R===p.length-1,useBorder:!1,useDisabledInvisible:!0})]}):null]})]})},L.id)})})})}var n7="";J(n7);const i7=8e3;function s7(e,t){return new Promise(a=>{let r=!1;const n=()=>{r||(r=!0,a())};e.then(n,n),setTimeout(n,t)})}function fc({index:e,stepIndex:t,isLast:a=!1,title:r,onDone:n,onChange:i,context:s=[],selectable:c=!1,hideLabel:d=!1,hideAudio:u=!1,maxCards:m}){const{t:h}=ge.useTranslation(),p=r??h("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=m??3,b=(g||[]).slice(0,f);(g||[]).length>f&&console.warn(`TrainingStepCard: ${g.length} items passed but only ${f} shown`);const v=typeof e=="number"?e:-1,y=typeof t!="number"?"disabled":v<t?"done":v===t?"active":"disabled",[_,C]=l.useState(null),x=l.useRef([]),[k,w]=l.useState(!1),S=l.useMemo(()=>g.map(W=>W?.id??W?.word??"").join("|"),[g]);l.useEffect(()=>{C(null),x.current=[]},[S]);const E=l.useCallback((W,P)=>{if(c)return;const T={item:W,index:P,__ts:Date.now()};try{typeof i=="function"&&i(T)}catch{}if(y==="active"&&typeof n=="function")try{n(T)}catch{}},[c,i,y,n]),A=l.useCallback(async()=>{if(!(k||y==="disabled")){w(!0);try{for(const W of x.current)W&&await s7(W.play(),i7)}finally{w(!1)}}},[k,y]),B=l.useCallback((W,P)=>{if(y!=="active")return;C(P);const T={selectedValue:W.word||W.title||"",selectedIndex:P,item:W,__ts:Date.now()};try{typeof i=="function"&&i(T)}catch{}if(y==="active"&&typeof n=="function")try{n(T)}catch{}},[i,y,n]);return o.jsx(Va,{index:e,stepIndex:t,isLast:a,title:p,onDone:n,titleProps:{usePlayAllBtn:!u&&b.length>0,onPlayAll:A,playAllActive:k},children:o.jsx("div",{className:"training-step__cards",children:b.length===0?o.jsx("div",{className:"training-step__empty",children:h("training.noCards","\uCE74\uB4DC\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4.")}):b.map((W,P)=>o.jsx(Sn,{ref:T=>{x.current[P]=T},item:W,disabled:y==="disabled",onPlayDone:()=>E(W,P),selectable:c,selected:c&&_===P,onSelect:c?()=>B(W,P):void 0,flipDelay:P*120,hideLabel:d,hideAudio:u},W&&W.id||P))})})}const l7=160;var c7=".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(c7);const Tb=()=>{};function Na(e){const t=l.useId();if(!("variant"in e)){const{label:b,sub:v,onClick:y,children:_,align:C="horizontal",icon:x}=e,k=w=>{y&&w.target===w.currentTarget&&(w.key==="Enter"||w.key===" ")&&(w.preventDefault(),y())};return o.jsxs("div",{className:xe("panel-row",C==="vertical"?"panel-row--vertical":"",y?"panel-row--clickable":""),onClick:y,onKeyDown:y?k:void 0,role:y?"button":void 0,tabIndex:y?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}),v&&o.jsx("div",{className:"panel-row__sub caption-1",children:v})]}),o.jsx("div",{className:"panel-row__right",children:_})]})}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:d="horizontal",useFullWidth:u=!1,icon:m}=e;let h=null;const p=a==="toggle"?`panel-toggle-${t}`:void 0;if(a==="toggle"){const b=e;h=o.jsx(Fl,{checked:b.checked,onChange:b.onChange,id:p})}else if(a==="segmented"){const b=e;h=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,v=b.dropdowns?.length?o.jsx("div",{className:`panel-row__dropdown-group${u?" panel-row__dropdown-group--full":""}`,children:b.dropdowns.map((y,_)=>o.jsx("div",{className:u?"panel-row__dropdown-item--full":void 0,children:o.jsx(Ut,{options:y.options,value:y.value,onChange:y.onChange,placeholder:y.placeholder,block:u,error:!!c,ariaLabel:y.ariaLabel??([r,y.placeholder].filter(Boolean).join(" ")||void 0)})},_))}):o.jsx(Ut,{options:b.options??[],value:b.value??"",onChange:b.onChange??Tb,block:u,error:!!c,ariaLabel:r});h=c?o.jsxs("div",{className:`panel-row__dropdown-error-wrap${u?" panel-row__dropdown-error-wrap--full":""}`,children:[v,o.jsx("span",{className:"caption-1 panel-row__error",role:"alert",children:c})]}):v}else if(a==="button"){const b=e;b.buttons?.length?h=o.jsx("div",{className:"panel-row__button-group",children:b.buttons.map((v,y)=>o.jsx(ie,{size:v.btnSize??40,variant:v.btnVariant??"default",disabled:v.disabled,onClick:v.onClick,children:v.label},y))}):h=o.jsx(ie,{size:b.btnSize??40,variant:b.btnVariant??"default",disabled:b.disabled,onClick:b.onClick,children:b.buttonLabel})}else if(a==="text"){const b=e;h=o.jsx("span",{className:`panel-row__text body-2${u?" panel-row__text--full":""}`,style:b.valueColor?{color:b.valueColor}:void 0,children:b.value})}else if(a==="input"){const b=e;h=o.jsxs("div",{className:`panel-row__input-wrap${u?" 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:u,error:c,ariaLabel:r,required:s}),b.helperText&&o.jsx("div",{className:"panel-row__helper caption-1",children:b.helperText})]})}else a==="custom"&&(h=e.children);const g=a==="input"||a==="dropdown"||(a==="text"||a==="custom")&&u,f=b=>{i&&b.target===b.currentTarget&&(b.key==="Enter"||b.key===" ")&&(b.preventDefault(),i())};return o.jsxs("div",{className:xe("panel-row",d==="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:[m!=null&&o.jsx("div",{className:"panel-row__icon",children:m}),o.jsxs("div",{className:"panel-row__left",children:[p?o.jsxs("label",{htmlFor:p,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:h})]})}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(ie,{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:d,useBorder:u=!0,useBg:m=!0,useRowBorder:h=!0,labelWidth:p,form:g=!1,loading:f,empty:b,children:v}){const y=xe("panel",`panel--${n}`,g?"panel--form":"",i!==void 0?"panel--fill":"",u?"":"panel--no-border",m?"":"panel--no-bg",h?"":"panel--no-row-border",c),_={};return i!==void 0&&(_.minHeight=i),s!==void 0&&(_.maxWidth=typeof s=="number"?`${s}px`:s),p!==void 0&&(_["--panel-label-width"]=typeof p=="number"?`${p}px`:p),o.jsxs("div",{className:y,style:Object.keys(_).length?_: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&&(v==null||Array.isArray(v)&&v.length===0)?o.jsx(Na,{variant:"empty",children:b}):d?o.jsx("div",{className:"panel__body--scroll",children:v}):v]})}function Db({cols:e=2,children:t}){return o.jsx("div",{className:"panel-grid",style:{"--panel-grid-cols":e},children:t})}function d7(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"}]}d7(Ca.t.bind(Ca)),Eb(Ca.t.bind(Ca));var u7='.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(u7);const vc="none",p7=.5,h7=1.5,m7=.25;function yc({title:e,valueLabel:t,value:a,min:r,max:n,step:i,tickStep:s,size:c,onChange:d}){return o.jsxs(Na,{variant:"custom",label:e,useFullWidth:!0,children:[o.jsx(ql,{value:a,onChange:d,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 xc({anchorRect:e,onClose:t}){const{t:a}=ge.useTranslation(),r=oa("(max-width: 767px)")?40:24,n=dc(),i=n?.settings.level??0,s=n?.settings.type??"defaultNoise",c=n?.settings.enabled??!0,d=jk(i),u=n?.playbackRate??1,m=n?.mainVolume??1,h=Math.round(m*100),p=l.useCallback(v=>{try{n?.setMainVolume(Math.max(0,Math.min(1,v/100)))}catch{}},[n]),g=l.useCallback(v=>{try{n?.setPlaybackRate(v)}catch{}},[n]),f=l.useCallback(v=>{const y=Lk(v);try{n?.setSettings({level:y})}catch{}},[n]),b=l.useCallback(v=>{try{v===vc?n?.setSettings({enabled:!1}):n?.setSettings({type:v,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(ie,{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(yc,{title:a("training.playVolumeTitle","\uC7AC\uC0DD \uC18C\uB9AC"),valueLabel:`${h}%`,value:h,min:0,max:100,step:10,size:r,onChange:p}),o.jsx(yc,{title:a("training.playSpeedTitle","\uC7AC\uC0DD \uC18D\uB3C4"),valueLabel:`${u.toFixed(2)}x`,value:u,min:p7,max:h7,step:m7,size:r,onChange:g}),o.jsx(yc,{title:a("training.noiseLevelTitle","\uC18C\uC74C \uD06C\uAE30"),valueLabel:`${d}%`,value:d,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:vc,label:a("training.noise.type.none","\uC5C6\uC74C")},...Eb(a).map(v=>({key:v.value,label:v.label}))],value:c?s:vc,onChange:b})})]})})}var b7=".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(b7);function Cc({useNoiseSettingBtn:e=!1,onSettings:t,onNext:a,onResult:r,stepIndex:n=0,stepCount:i=0,pageIndex:s=0,pageCount:c=1}){const{t:d}=ge.useTranslation(),[u,m]=l.useState(!1),[h,p]=l.useState(null),[g,f]=l.useState(!1),b=l.useRef(null),v=l.useRef(null),y=dc(),_=s<c-1,C=s===c-1,x=n===Math.max(0,i);l.useEffect(()=>{e||(m(!1),p(null))},[e]);const k=l.useCallback(()=>{m(!1),p(null)},[]),w=l.useCallback(()=>{if(u){m(!1),p(null);return}const A=b?.current?.getBoundingClientRect();A&&p(A),t?.(),m(!0)},[u,t]),S=l.useCallback(()=>{if(u){m(!1),p(null);return}const A=v?.current?.getBoundingClientRect();A&&p(A),t?.(),m(!0)},[u,t]),E=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(ie,{size:56,type:"bar",icon:"settings",onClick:w,selected:u,ariaLabel:d("training.trainingSettingsTitle","\uD6C8\uB828 \uC124\uC815"),label:d("training.trainingSettingsTitle","\uD6C8\uB828 \uC124\uC815"),minWidth:140})})}),o.jsx("div",{className:"pp-bottom__settings--mobile",children:o.jsx("div",{ref:v,className:"pp-bottom__tooltip-trigger","data-tooltip-ignore":!0,children:o.jsx(ie,{size:56,type:"dot",icon:"settings",onClick:S,selected:u,ariaLabel:d("training.settings","\uC124\uC815"),minWidth:52})})})]}):null,e&&o.jsx(ie,{size:40,type:"dot",shape:"pill",icon:"audio-lines",onClick:E,selected:g,ariaLabel:d("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:d("training.meter.sentence","\uC7AC\uC0DD")}),o.jsx(Cn,{analyser:y?.mainAnalyser??null,orientation:"horizontal",length:112,label:"db",labelPos:"left",ariaLabel:d("training.meter.sentence","\uC7AC\uC0DD")})]}),o.jsxs("div",{className:"pp-bottom__meter",children:[o.jsx("span",{className:"pp-bottom__meter-label caption-1",children:d("training.meter.noise","\uC18C\uC74C")}),o.jsx(Cn,{analyser:y?.noiseAnalyser??null,orientation:"horizontal",length:112,label:"db",labelPos:"left",ariaLabel:d("training.meter.noise","\uC18C\uC74C")})]})]})]}),o.jsxs("div",{className:"pp-bottom__right",children:[C&&o.jsx(ie,{size:56,type:"bar",icon:"check",onClick:typeof r=="function"?r:a,ariaLabel:d("training.viewResult","\uACB0\uACFC\uBCF4\uAE30"),label:d("training.viewResult","\uACB0\uACFC\uBCF4\uAE30"),variant:"main",disabled:!x}),_&&o.jsx(ie,{size:56,type:"bar",rightIcon:"chevron-right",align:"right",onClick:a,ariaLabel:d("training.nextQuestion","\uB2E4\uC74C \uBB38\uC81C"),label:d("training.nextQuestion","\uB2E4\uC74C \uBB38\uC81C"),variant:"main",disabled:!x})]}),e&&u&&o.jsx(xc,{anchorRect:h,onClose:k})]})}var g7=".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(g7);function _c({title:e,subtitle:t,desc:a,depth:r,icon:n,wrapperStyle:i,iconTooltip:s,pageIndex:c,pageCount:d,progressMax:u,progressIndex:m,onBack:h,onClose:p}){const{t:g}=ge.useTranslation(),f=oa("(max-width: 767px)"),b=Number.isInteger(m)?m:c||0,v=Number.isInteger(u)?u:d||0,y=h||p,_=Array.isArray(r)?f?r[r.length-1]:r.join(" / "):r,C=typeof e=="string"?e.trim():e,x=typeof t=="string"?t.trim():t,k=!!(C||x),w=k?C||x:g("common.emptyTrainingName","\uD6C8\uB828 \uC774\uB984\uC774 \uBE44\uC5B4 \uC788\uC2B5\uB2C8\uB2E4."),S=_||t,E=f&&typeof S=="string"&&(S.includes(" \xB7 ")||S.includes(" / "))?S.split(/\s[·/]\s/).pop():S,A=l.useMemo(()=>{const B=i&&typeof i=="object"?{...i}:{};return!("width"in B)&&!("height"in B)&&(B.width="40px",B.height="40px"),B},[i]);return o.jsxs("header",{className:"pp-title training-popup-title",children:[o.jsxs("div",{className:"pp-title__left",children:[y?o.jsx(ie,{size:48,type:"dot",icon:"chevron-left",ariaLabel:g("common.back","\uB4A4\uB85C"),onClick:y,useBorder:!1,iconSize:"large",iconColor:"--color-black",variant:"transparent-gray"}):null,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:[E?o.jsx("span",{className:"pp-title__depth caption-1",children:E}):null,o.jsx("span",{className:`pp-title__title h2${k?"":" pp-title__title--empty"}`,children:w}),a?o.jsx("span",{className:"pp-title__description caption-1",children:a}):null]})]}),o.jsx(Kl,{max:Math.max(0,v??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 wc(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 d=wc(t,a,r),u=typeof c=="function"?c(d)||{}:c||{},m=t?.id||t?.title||n.length;return{id:`${e}:${m}`,meta:{...d,...u},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 kc(e,t){if(!(!e||typeof e!="object"))return e[`step-${t}`]}function zb(e,t,a,r){return kc(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 f7(){const e=l.useContext(Wb);if(!e)throw new Error("useTrainingPagePopupContext must be used inside TrainingPagePopup");return e}function v7({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,d=typeof t!="number"?"disabled":c<t?"done":c===t?"active":"disabled",[u,m]=l.useState(()=>n.map(()=>null)),h=n.join("|");l.useEffect(()=>{m(h?h.split("|").map(()=>null):[])},[h]);const p=l.useMemo(()=>u.filter(f=>f!==null).length+1,[u]),g=l.useCallback(f=>{d==="active"&&m(b=>{const v=[...b];if(v[f]!==null){const _=v[f];return v.map(C=>C!==null&&C>=_?null:C)}v[f]=p;const y={selectedOrder:v,words:n,__ts:Date.now()};try{typeof s=="function"&&s(y)}catch{}if(v.every(_=>_!==null))try{typeof i=="function"&&i(y)}catch{}return v})},[d,p,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:d==="disabled",selectable:!0,selected:u[b]!==null,orderRank:u[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=f7();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 Sc({_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 Ac({_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 Tc({_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 Bc({_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 Nc({_stepIndex:e,_totalSteps:t,...a}){const{index:r,stepIndex:n,isLast:i,onDone:s,onChange:c}=Do(e,t);return o.jsx(fc,{...a,index:r,stepIndex:n,isLast:i,onDone:s,onChange:c})}function y7({_stepIndex:e,_totalSteps:t,...a}){const{index:r,stepIndex:n,isLast:i,onDone:s,onChange:c}=Do(e,t);return o.jsx(v7,{...a,index:r,stepIndex:n,isLast:i,onDone:s,onChange:c})}var x7=`.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(x7);function Dc(...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 C7(e){return Dc(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=Dc(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 Ec(e){const{score:t,contextsLength:a,results:r=[],subtitle:n,onReplay:i,onClose:s,inline:c=!1}=e||{},{t:d}=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 u=l.useCallback(b=>{const v=Hb(b),y=Dc(b?.wording,b?.label);return v===!0?{variant:"main",label:y??d("training.result.heardWell","\uC798 \uB4E4\uC5C8\uC5B4\uC694")}:v===!1?{variant:"danger",label:y??d("training.result.notHeard","\uBABB \uB4E4\uC5C8\uC5B4\uC694")}:{variant:"disabled",label:y??d("training.result.notJudged","\uBBF8\uD310\uC815")}},[d]),m=a??0,h=t??0,p=l.useMemo(()=>Array.isArray(r)?r:[],[r]),g=l.useMemo(()=>p.map(b=>{const v=b??{},y=C7(v)||"(\uB0B4\uC6A9\uC5C6\uC74C)",{variant:_,label:C}=u(v),x=Array.isArray(v.corrects)?v.corrects:[],k=x.length?x.join(", "):v.answer!=null&&v.answer!==""?String(v.answer):null,w=typeof v.selectedText=="string"?v.selectedText:null,S=Hb(v)===!0;return{problem:y,variant:_,label:C,answer:k,selectedText:w,isCorrect:S}}),[p,u]),f=l.useMemo(()=>g.some(b=>b.answer!==null||b.selectedText!==null),[g]);return o.jsx(Ta,{onClose:s,inline:c,ariaLabel:d("training.result.title","\uD6C8\uB828\uC744 \uBAA8\uB450 \uB9C8\uCCE4\uC2B5\uB2C8\uB2E4."),className:"popup--training-result",footerClassName:"trp-result__foot",footer:({animateThen:b,closeWithAnimation:v})=>o.jsxs("div",{className:"trp-actions",children:[o.jsx(ie,{size:56,type:"bar",label:d("training.result.replay","\uB2E4\uC2DC\uD558\uAE30"),onClick:()=>b(i)}),o.jsx(ie,{size:56,type:"bar",label:d("training.result.done","\uC644\uB8CC"),variant:"main",onClick:v})]}),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:d("training.result.eyebrow","\uD6C8\uB828 \uC644\uB8CC")}),o.jsx("h1",{className:"trp-result__title h2",children:d("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":d("training.result.scoreAria",{correct:h,total:m}),children:[o.jsx("span",{className:"trp-score__big",children:h}),o.jsx("span",{className:"trp-score__sep",children:"/"}),o.jsx("span",{className:"trp-score__total",children:m})]})})]}),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":d("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:d("training.result.colProblem","\uBB38\uC81C")}),f&&o.jsx("span",{role:"columnheader",children:d("training.result.colAnswerSelected","\uC815\uB2F5 \xB7 \uC120\uD0DD")}),o.jsx("span",{className:"col-right",role:"columnheader",children:d("training.result.colJudge","\uD310\uC815")})]}),g.map((b,v)=>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(v+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:d("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:d("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})})]},v))]})})]})})}function _7(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 jc(e,t){return e&&e.id||`page-${t??0}`}function Lc(e,t){return e&&e.key||`step-${t??0}`}function $n(){return{pageIndex:0,stepIndex:0,answersByPage:{}}}function w7(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"]),k7=e=>o.jsx(Ec,{score:e.score,contextsLength:e.contextsLength,results:e.results,onReplay:e.onReplay,onClose:e.onClose});function S7(e){const{scenario:t,title:a,subTitle:r,depth:n,icon:i,wrapperStyle:s,iconTooltip:c,pageIndex:d,pageCount:u,stepIndex:m,stepCount:h,onBack:p,onComplete:g,onNext:f,onSettings:b,useNoiseSetting:v=!0,children:y,ariaLabel:_,label:C,buildResults:x,onResult:k,typeKey:w,entryPoint:S,dailyTotal:E,itemRef:A,renderResultPopup:B}=e;_7(w&&!Vb.has(w)?w:"");const W=l.useRef(0);l.useEffect(()=>{W.current=Date.now()},[]);const{t:P}=ge.useTranslation(),T=k,j=!!t,M=t?.id||null,H=t?.meta||{},ae=Array.isArray(t?.pages)?t.pages:[],X=Array.isArray(y)||l.isValidElement(y)&&typeof y!="function"?l.Children.toArray(y).filter(l.isValidElement):[],oe=X.length>0,N=ne=>ne===Sr||ne?.__isTrainingPage===!0,L=oe&&X.some(ne=>N(ne.type)),R=L?X.filter(ne=>N(ne.type)).map((ne,ve)=>{const ye=ne.props||{};return{id:`children-page-${ve}`,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:X}],z=oe&&!j&&typeof y!="function",G=z?Math.max(1,R.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 ne=document.body;return ne.dataset.ihabTrainingPopupCount=String(Number(ne.dataset.ihabTrainingPopupCount||"0")+1),ne.classList.add("ihab-training-popup-open"),()=>{const ve=Number(ne.dataset.ihabTrainingPopupCount||"1")-1;ve>0?ne.dataset.ihabTrainingPopupCount=String(ve):(delete ne.dataset.ihabTrainingPopupCount,ne.classList.remove("ihab-training-popup-open"))}},[]),l.useEffect(()=>{if(!(typeof document>"u"||!document.body))return ik()},[]);const[K,O]=l.useState({...Cb,enabled:!1}),q=l.useRef(K);l.useEffect(()=>{q.current=K},[K]),l.useEffect(()=>{let ne=!1;return rs().then(ve=>{if(ne)return;const ye=ve?{...q.current,...ve}:{...Cb};q.current=ye,O(ye)}),()=>{ne=!0}},[]);const[F,se]=l.useState(null),[Q,re]=l.useState(null),me=l.useCallback((ne,ve)=>{ne==="main"?se(ve):re(ve)},[]),ce=l.useCallback(ne=>{const ve={...q.current,...ne};q.current=ve,O(ve),ns(ve)},[]),$=K.mainSpeed,ee=K.mainVolume,ue=l.useCallback(ne=>ce({mainSpeed:ne}),[ce]),ke=l.useCallback(ne=>ce({mainVolume:ne}),[ce]),Ce=l.useMemo(()=>({settings:K,setSettings:ce,registerAnalyser:me,mainAnalyser:F,noiseAnalyser:Q,playbackRate:$,setPlaybackRate:ue,mainVolume:ee,setMainVolume:ke}),[K,ce,me,F,Q,$,ue,ee,ke]),I=l.useRef(null),[Z,te]=l.useState("center"),[fe,De]=l.useState(!1),ze=l.useRef(!1),Re=l.useRef(null),Me=l.useCallback(ne=>{ze.current||(ze.current=!0,De(!0),Re.current=setTimeout(ne,l7))},[]);l.useEffect(()=>()=>{Re.current&&clearTimeout(Re.current)},[]),l.useEffect(()=>{const ne=I.current;if(!ne)return;const ve=Array.from(ne.querySelectorAll(dr)).filter(Y=>!Y.closest('[aria-hidden="true"]'))[0];if(ve)try{ve.focus()}catch{}const ye=Y=>{if(Y.key==="Escape"){Y.preventDefault(),Me(()=>{typeof p=="function"&&p()});return}};return ne.addEventListener("keydown",ye),()=>ne.removeEventListener("keydown",ye)},[p,Me]),_s(I,!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 d=="number"?d:null);l.useEffect(()=>{!j&&!z||(Ge($n()),be(null))},[j,M,z]),l.useEffect(()=>{z&&Ge(ne=>{const ve=Math.max(0,Math.min(ne.pageIndex,Math.max(0,G-1)));return ve!==ne.pageIndex?{...ne,pageIndex:ve,stepIndex:0}:ne})},[z,G]);const Ue=z?Math.max(0,Math.min(Le.pageIndex,G-1)):0,Xe=z?R[Ue]:null,ut=z&&Xe&&Array.isArray(Xe.steps)?Xe.steps:[],Pe=j?Le.pageIndex:z?Ue:typeof d=="number"?d:0,rt=j?ae[Math.max(0,Math.min(Le.pageIndex,Math.max(0,ae.length-1)))]:null,et=j&&rt&&Array.isArray(rt.steps)?rt.steps:[],Oe=j?et.length:z?ut.length:typeof h=="number"?h:0,Qe=j||z?Math.max(0,Math.min(Le.stepIndex,Math.max(0,Oe))):typeof m=="number"?m:0,tt=j?ae.length:z?G:typeof u=="number"?u:0;l.useLayoutEffect(()=>{const ne=vt.current;if(typeof Pe=="number"&&ne!==null&&Pe!==ne&&Pe>ne)try{We(P("training.problemNotice",{n:Pe+1}))}catch{}vt.current=typeof Pe=="number"?Pe:vt.current},[Pe,d,P]),l.useLayoutEffect(()=>{const ne=I.current;if(!ne)return;const ve=()=>ne.querySelector(".page-popup__scroll");let ye=null,Y=null,de=null;const _e=ct=>{const pe=ve();if(!pe)return;const Te=pe.scrollHeight<=pe.clientHeight;if(te(Te?"center":"top"),ct&&!Ve.current){Ve.current=!0;try{Ne(!0)}catch{}try{$e.disconnect()}catch{}}},Se=()=>{ye!==null&&cancelAnimationFrame(ye),ye=requestAnimationFrame(()=>{Y!==null&&clearTimeout(Y),Y=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(ne,{childList:!0,subtree:!0,attributes:!0});const nt=setTimeout(()=>{Ve.current||_e(!0)},400);return()=>{window.removeEventListener("resize",Ae),ye!==null&&cancelAnimationFrame(ye),Y!==null&&clearTimeout(Y),de!==null&&cancelAnimationFrame(de),clearTimeout(nt);try{$e.disconnect()}catch{}}},[I]);const xt=l.useCallback(ne=>{I.current&&(I.current._childOnNext=ne)},[]),Et=l.useCallback(ne=>{I.current&&(I.current._childOnResult=ne)},[]),it=l.useCallback((ne,ve,ye)=>{Ge(Y=>{const de=Y.answersByPage[ne]||{},_e=de[ve],Se=Rn(ye),Ae=Rn(_e);return _e&&Ae>Se?Y:{...Y,answersByPage:{...Y.answersByPage,[ne]:{...de,[ve]:ye}}}})},[Ge]),Ht=l.useCallback((ne,ve,ye)=>{const Y=jc(rt,Pe),de=Lc(ne,ve);it(Y,de,ye)},[rt,Pe,it]),mt=l.useCallback((ne,ve,ye)=>{const Y=jc(rt,Pe),de=Lc(ne,ve);it(Y,de,ye),!ye?.allowChange&&ne?.autoAdvance!==!1&&Ge(_e=>({..._e,stepIndex:Math.max(_e.stepIndex,ve+1)}))},[rt,Pe,it,Ge]),Vt=l.useCallback((ne,ve)=>{const ye=Xe?.id||`children-page-${Pe??0}`,Y=typeof ve=="number"?ve:Qe??0,de=`step-${Y}`;it(ye,de,ne),ne?.allowChange||Ge(_e=>({..._e,stepIndex:Math.max(_e.stepIndex,Y+1)}))},[Xe,Pe,Qe,it,Ge]),ia=l.useCallback((ne,ve)=>{const ye=Xe?.id||`children-page-${Pe??0}`,Y=`step-${typeof ve=="number"?ve:Qe??0}`;it(ye,Y,ne)},[Xe,Pe,Qe,it]),Gt=z?{currentPageIndex:Pe??0,currentStepIndex:Qe??0,totalStepsInPage:ut.length,handleStepDone:Vt,handleStepChange:ia}:null,Ea=async()=>{const ne=typeof t?.buildResults=="function"?await Promise.resolve(t.buildResults({scenario:t,pages:ae,flowState:Le,answersByPage:Le.answersByPage})):null;return typeof T=="function"&&await Promise.resolve(T(ne))||ne},sa=async()=>{const ne=Xe?.id||`children-page-${Le.pageIndex}`,ve=Le.answersByPage[ne]||{},ye=L?(()=>{const _e={};let Se=0;return R.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 pe=$e[`step-${ct}`];typeof pe<"u"&&(_e[`step-${Se+ct}`]=pe)}Se+=nt}),_e})():ve;if(typeof x=="function"){const _e=await Promise.resolve(x(ye,{pageAnswers:ve,answersByPage:Le.answersByPage,pages:R,currentPageId:ne}));return typeof T=="function"&&await Promise.resolve(T(_e))||_e}const Y=Object.entries(ve).map(([_e,Se],Ae)=>({index:Ae,key:_e,payload:Se})),de={results:Y,answers:Y,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(j){const ye=Ea();be({});const Y=ye;Promise.resolve(Y).then(de=>{be(de||{isEmpty:!0})}).catch(de=>{be({isEmpty:!0})});return}if(z){const ye=sa();be({});const Y=ye;Promise.resolve(Y).then(de=>{be(de||{isEmpty:!0})}).catch(de=>{be({isEmpty:!0})});return}const ne=I.current&&I.current._childOnResult,ve=ye=>{try{return ye?ye():void 0}catch{return}};if(typeof ne=="function"){const ye=ve(ne);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(Y=>{Y&&be(Y)}).catch(Y=>{});return}if(typeof T=="function"){const ye=ve(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(Y=>{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{}Y&&be(Y)}).catch(Y=>{console.error("viewResults external handler failed",Y)});return}},ja=()=>{if(j){if(typeof Pe=="number"&&typeof tt=="number"&&Pe<tt-1){Ge(ve=>({...ve,pageIndex:ve.pageIndex+1,stepIndex:0}));return}return Kt()}if(z){const ve=ut.length;if(typeof Qe=="number"&&Qe<ve-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 ne=I.current&&I.current._childOnNext;if(typeof ne=="function"){try{ne()}catch{}return}},jt=j?H.title||H.label||_||P("common.popup","\uD31D\uC5C5"):a||C||(Array.isArray(n)?n[n.length-1]:void 0)||_||P("common.popup","\uD31D\uC5C5"),Ga=j?H.title??H.label??jt:a??C??jt,$t=(ne,ve)=>{const ye=jc(rt,Pe),Y=Lc(ne,ve),de=Le.answersByPage[ye]?.[Y],_e=w7(ne,{page:rt,pageIndex:Pe,step:ne,stepIndex:ve,storedPayload:de,answersByPage:Le.answersByPage,flowState:Le}),Se={key:Y,index:ve,stepIndex:Qe,isLast:ve===et.length-1};switch(ne?.type){case"listen":return o.jsx(Mn,{...Se,..._e,onDone:Ae=>mt(ne,ve,Ae)});case"confirm":return o.jsx(jn,{...Se,..._e,onDone:Ae=>mt(ne,ve,Ae),onChange:Ae=>Ht(ne,ve,Ae)});case"confirmWithText":return o.jsx(Ln,{...Se,..._e,onDone:Ae=>mt(ne,ve,Ae),onChange:Ae=>Ht(ne,ve,Ae)});case"orderList":return o.jsx(Pn,{...Se,..._e,onDone:Ae=>mt(ne,ve,Ae),onChange:Ae=>Ht(ne,ve,Ae)});default:return null}},ya=j?ae.length>0?o.jsx("div",{className:"training-steps",children:et.map((ne,ve)=>$t(ne,ve))}):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=z?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((ne,ve)=>{const ye=ne;return l.cloneElement(ye,{...ye.props,_stepIndex:ve,_totalSteps:ut.length,_stepKey:`step-${ve}`,_pageIndex:Pe})})}),Xe?.pageBottom?o.jsx("div",{className:"training-page-bottom",children:Xe.pageBottom}):null]}):null,Je=l.useCallback(()=>{let ne;if(w){const ve=Fe,ye=ve?.results||ve?.answers||[],Y=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=Y!=null?de:null;es({items:as(ye),category:Vb.has(w)?"sentence":"word",trainingType:w,entryPoint:S??"sentence",itemRef:A??null,correct:_e,total:Y,score:typeof ve?.score=="number"?ve.score:null,durationSeconds:Math.max(0,Math.round((Date.now()-W.current)/1e3)),dailyTotal:E??null}),ne={correct:_e,total:Y}}be(null),Me(()=>{typeof g=="function"&&g(ne),typeof p=="function"&&p()})},[g,p,w,S,E,A,Fe,be,Me]),It=l.useCallback(()=>We(""),[We]),kt=l.useCallback(()=>{Me(()=>{typeof p=="function"&&p()})},[p,Me]),xa=o.jsxs("div",{className:`page-popup${fe?" page-popup--closing":""}`,role:"dialog","aria-label":jt,children:[o.jsxs("div",{ref:I,className:`page-popup__panel ${Ye?"":"page-popup__panel--measuring"} ${Z==="center"?"page-popup__panel--center":Z==="top"?"page-popup__panel--top":""}`,"aria-modal":"true",children:[o.jsx(_c,{title:Ga,subtitle:j?H.subtitle||H.label:Array.isArray(n)?n.join(" / "):void 0,desc:j?void 0:r,depth:j?H.depth:n,icon:j?H.icon:i,wrapperStyle:j?H.wrapperStyle:s,iconTooltip:j?H.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 ${Z==="center"?"page-popup__content--center":"page-popup__content--top"}`,children:z?qa:j?ya:typeof y=="function"?y({registerOnNext:xt,registerOnResult:Et,panelRef:I,setResultOverlay:be}):y})}),o.jsx(Cc,{onSettings:b,onNext:ja,onResult:Kt,useNoiseSettingBtn:!!(j?H.useNoiseSetting??!0:v),stepIndex:Qe,stepCount:Oe,pageIndex:Pe,pageCount:tt})]}),Fe&&!Fe.isEmpty&&(B??k7)({score:Fe.score,results:Fe.results||Fe.answers||[],contextsLength:Fe.results?Fe.results.length:Fe.answers?Fe.answers.length:0,onReplay:()=>{if(be(null),j){if(Ge($n()),typeof t?.onReplay=="function")try{t.onReplay()}catch{}return}if(z){Ge($n());return}try{const ne=I.current&&I.current._childOnResult;typeof ne=="function"&&ne({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(ie,{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=S7;Da.Page=Sr,Da.ListenStep=Sc,Da.ConfirmStep=Ac,Da.ConfirmWithTextStep=Tc,Da.OrderListStep=Bc,Da.CardStep=Nc,Da.CardOrderStep=y7;var A7=".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(A7);var T7='.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(T7);function B7({label:e,homonum:t}){const a=Ma()?.(e,t)??"",{imgRef:r,loading:n,hasImage:i,onLoad:s,onError:c}=Xl(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 Mc({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 d=t.left+t.width/2-i/2,u=t.top-s-8;u<8&&(u=t.bottom+8),d=Math.max(8,Math.min(d,c-i-8)),n({left:d,top:u})},[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(B7,{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:d,onClearSelection:u,onPrint:m,onPrintEmpty:h,className:p,emptyHint:g,sectionType:f="page",disc:b,notice:v}){const{t:y,i18n:_}=ge.useTranslation(),C=_.language?.startsWith("ko")??!1,{anchorRect:x,openAt:k,close:w}=ko(),[S,E]=l.useState(null),A=l.useCallback(()=>{w(),E(null)},[w]),B=(r??"").trim(),W=/^[^,[\]\s]+$/.test(B)?B:"",P=W.length>0,[T,j]=l.useState("ganada"),[M,H]=l.useState("50"),[ae,X]=l.useState(1),[oe,N]=l.useState(P);oe!==P&&(N(P),j(P?"match":"ganada"));const L=T==="match"&&!P?"ganada":T,R=l.useMemo(()=>[...P?[{value:"match",label:y("wordSearch.sort.match",{defaultValue:"\uC2DC\uC791 \uC6B0\uC120"})}]:[],{value:"ganada",label:y("wordSearch.sort.ganada",{defaultValue:"\uAC00\uB098\uB2E4\uC21C \u2191"})},{value:"ganada_desc",label:y("wordSearch.sort.ganadaDesc",{defaultValue:"\uAC00\uB098\uB2E4\uC21C \u2193"})},{value:"syllable",label:y("wordSearch.sort.syllable",{defaultValue:"\uC74C\uC808 \uC218 \u2191"})},{value:"syllable_desc",label:y("wordSearch.sort.syllableDesc",{defaultValue:"\uC74C\uC808 \uC218 \u2193"})},{value:"grade",label:y("wordSearch.sort.grade",{defaultValue:"\uB4F1\uAE09\uC21C \u2191"})},{value:"grade_desc",label:y("wordSearch.sort.gradeDesc",{defaultValue:"\uB4F1\uAE09\uC21C \u2193"})}],[y,P]),z=l.useMemo(()=>["10","25","50","100"].map(I=>({value:I,label:y("wordSearch.pageSize",{count:Number(I),defaultValue:`${I}\uAC1C\uC529 \uBCF4\uAE30`})})),[y]),G=I=>I.words[0],K=l.useCallback((I,Z)=>{const te=ze=>G(ze)?.label??"",fe=ze=>G(ze)?.syllables??[...te(ze)].length,De=ze=>{const Re=parseInt(G(ze)?.grade??"",10);return Number.isFinite(Re)?Re:999};switch(L){case"match":{const ze=[...W].length,Re=Me=>ho(te(Me).slice(0,ze),W)?0:1;return Re(I)-Re(Z)||te(I).localeCompare(te(Z),"ko")}case"ganada":return te(I).localeCompare(te(Z),"ko");case"ganada_desc":return te(Z).localeCompare(te(I),"ko");case"syllable":return fe(I)-fe(Z)||te(I).localeCompare(te(Z),"ko");case"syllable_desc":return fe(Z)-fe(I)||te(I).localeCompare(te(Z),"ko");case"grade":return De(I)-De(Z)||te(I).localeCompare(te(Z),"ko");case"grade_desc":return De(Z)-De(I)||te(I).localeCompare(te(Z),"ko");default:return 0}},[L,W]),O=l.useMemo(()=>n.slice().sort(K),[n,K]),q=Number(M)||10,F=l.useMemo(()=>(i??[]).flatMap(I=>I.items.slice().sort(K).map(Z=>({item:Z,label:I.label}))),[i,K]),se=i?F.length:O.length,Q=Math.max(1,Math.ceil(se/q)),re=Math.min(ae,Q),me=l.useMemo(()=>O.slice((re-1)*q,re*q),[O,re,q]),ce=l.useMemo(()=>{if(!i)return null;const I=F.slice((re-1)*q,re*q),Z=new Map;for(const{item:te,label:fe}of I)Z.has(fe)||Z.set(fe,[]),Z.get(fe).push(te);return[...Z.entries()].map(([te,fe])=>({label:te,items:fe}))},[i,F,re,q]);l.useEffect(()=>{X(1)},[T,M,se]);const $=se>0?o.jsxs("div",{className:"word-search-result-block__toolbar",children:[o.jsx(Ut,{size:40,options:R,value:L,onChange:j,ariaLabel:y("wordSearch.sort.aria",{defaultValue:"\uC815\uB82C"})}),o.jsx(Ut,{size:40,options:z,value:M,onChange:H,ariaLabel:y("wordSearch.pageSizeAria",{defaultValue:"\uD398\uC774\uC9C0 \uD06C\uAE30"})}),o.jsx(vr,{page:re,totalPages:Q,onChange:X})]}):void 0,ee=I=>{c&&c(I)},ue=t!==void 0&&a?o.jsxs(o.Fragment,{children:[y("wordSearch.resultTitlePrefix","\uCD1D "),o.jsx("span",{style:{color:"var(--color-main)"},children:t}),y("wordSearch.resultTitleSuffix",{unit:C?ji(a):a})]}):void 0,ke=t!==void 0&&t>0&&d!==void 0&&a?y("wordSearch.resultDisc",{unit:C?Mi(a):a,max:d,selected:s.length}):void 0,Ce=b??(v?o.jsxs(o.Fragment,{children:[o.jsx("span",{className:"word-search-result-block__notice",children:v}),ke?o.jsx("span",{className:"word-search-result-block__disc",children:ke}):null]}):ke);return o.jsxs(no,{type:f,icon:e,title:ue,action:$,disc:Ce,className:xe("word-search-result-block",p),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:y("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(I=>o.jsx("div",{className:"word-search-result-block__group",children:o.jsx("div",{className:"word-search-result-block__items",children:I.items.map(Z=>{const te=s.includes(Z.id);return o.jsx("div",{onMouseEnter:fe=>{k(fe.currentTarget),E(Z.words)},onMouseLeave:A,children:o.jsx(ie,{size:"word",align:"grid",label:Z.words.map(fe=>fe.label),subLabel:Z.words.map(fe=>fe.subLabel).filter(Boolean).length>0?Z.words.map(fe=>fe.subLabel):void 0,selected:te,onClick:()=>ee(Z.id),minWidth:200})},Z.id)})})},I.label)):o.jsx("div",{className:"word-search-result-block__items",children:me.map(I=>{const Z=s.includes(I.id);return o.jsx("div",{onMouseEnter:te=>{k(te.currentTarget),E(I.words)},onMouseLeave:A,children:o.jsx(ie,{size:"word",align:"grid",label:I.words.map(te=>te.label),subLabel:I.words.map(te=>te.subLabel).filter(Boolean).length>0?I.words.map(te=>te.subLabel):void 0,selected:Z,onClick:()=>ee(I.id),minWidth:200})},I.id)})}),S&&x&&o.jsx(Mc,{words:S,anchorRect:x})]}),Q>1&&o.jsx("div",{className:"word-search-result-block__pagination-bottom",children:o.jsx(vr,{page:re,totalPages:Q,onChange:X})}),(u||m)&&o.jsxs("div",{className:"word-search-result-block__actions",children:[u&&o.jsx(ie,{size:"56",type:"bar",label:y("common.resetSelection","\uC120\uD0DD \uCD08\uAE30\uD654"),selected:!1,disabled:s.length===0,onClick:s.length===0?void 0:u}),m&&o.jsx("div",{onClick:s.length===0?h:void 0,children:o.jsx(ie,{size:"56",type:"bar",variant:"main",label:y("wordTable.title","\uB2E8\uC5B4 \uD45C \uB9CC\uB4E4\uAE30"),disabled:s.length===0,onClick:s.length===0?void 0:m})})]})]})}var N7='.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(N7);function D7(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:d,placeholder:u="-",className:m,title:h,titleIcon:p,disc:g,showInfoButton:f=!1,onClearPhoneme:b,onSearch:v,onSearchEmpty:y,searchDisabled:_=!1,searchLabel:C,searchChecking:x=!1,pairMode:k=!1,sectionType:w="page",beforeSearchContent:S,beforeContent:E,afterContent:A,hideCountControl:B=!1,ordinal:W=!1}){const{t:P}=ge.useTranslation(),T=l.useMemo(()=>P("wordPairs.infoNotes",{returnObjects:!0}),[P]),j=l.useMemo(()=>Array.from({length:n-i+1},(O,q)=>{const F=i+q;return{key:String(F),label:P("wordPairs.count",{n:F})}}),[P,n,i]),M=l.useMemo(()=>P("wordPairs.ordinals",{returnObjects:!0}),[P]),H=l.useCallback(O=>W?P("wordPairs.phonemeOrdinalLabel",{ordinal:M[O-1]??O}):a===1?P("wordPairs.phonemeSingleLabel","\uC74C\uC808"):P("wordPairs.phonemeN",{n:O}),[W,M,a,P]),ae=l.useCallback(O=>W?P("wordPairs.phonemeContrastOrdinalLabel",{ordinal:M[O-1]??O}):a===1?P("wordPairs.phonemeContrastSingleLabel","\uB300\uB9BD \uC74C\uC808"):P("wordPairs.phonemeContrast",{n:O}),[W,M,a,P]),X=l.useCallback((O,q)=>q?o.jsxs(o.Fragment,{children:[O,o.jsx("span",{className:"phoneme-select-block__required",children:"*"})]}):O,[]),{anchorRect:oe,toggleAt:N,close:L}=ko(),R=l.useCallback(O=>r(Number(O)),[r]),z=oa("(max-width: 767px)"),G=l.useCallback(O=>D7(O,e).map(({label:q,value:F,displayLabel:se})=>{const Q=!!F&&F!=="\uC5C6\uC74C";return o.jsxs("span",{className:xe("phoneme-select-block__cell-jamo-part",F?"":"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${F==="\uC5C6\uC74C"?" phoneme-select-block__cell-jamo-char--excluded":""}`,children:F==="\uC5C6\uC74C"?"x":F||u}),Q&&o.jsx("span",{className:"phoneme-select-block__cell-jamo-label caption-2",children:se??q})]},q)}),[e,u]),K=o.jsxs(o.Fragment,{children:[o.jsx("div",{"data-tooltip-ignore":!0,children:o.jsx(ie,{size:40,type:z?"dot":void 0,icon:"info",label:z?void 0:P("wordPairs.caution","\uC720\uC758\uC0AC\uD56D"),selected:!!oe,onClick:O=>N(O.currentTarget)})}),oe&&o.jsx(to,{title:P("wordPairs.caution","\uC720\uC758\uC0AC\uD56D"),items:T,anchorRect:oe,onClose:L})]});return o.jsxs(no,{type:w,title:h,icon:p,disc:g,action:K,className:xe("phoneme-select-block",m),children:[E,(!B||f&&!(h||g))&&o.jsxs("div",{className:"phoneme-select-block__controls",children:[!B&&o.jsx(Ha,{options:j,value:String(a),onChange:R,size:40,className:"phoneme-select-block__count-control"}),f&&!(h||g)&&K]}),o.jsx("div",{className:"phoneme-select-block__cells",children:k?o.jsxs(o.Fragment,{children:[o.jsx("div",{className:"phoneme-select-block__cell-group",children:Array.from({length:a}).map((O,q)=>{const F=t[q*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:G(F)})}),o.jsx("span",{className:"phoneme-select-block__cell-index caption-1",children:H(q+1)})]},q)})}),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,q)=>{const F=t[q*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:G(F)})}),o.jsx("span",{className:"phoneme-select-block__cell-index caption-1",children:ae(q+1)})]},q)})})]}):t.map((O,q)=>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:G(O)})}),o.jsx("span",{className:"phoneme-select-block__cell-index caption-1",children:H(q+1)})]},q))}),(s||c)&&o.jsx("div",{className:"phoneme-select-block__panels",children:o.jsx("div",{className:"phoneme-select-block__detail",children:k?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,q)=>{const F=t[q*2]??{};return o.jsx(va,{title:X(H(q+1),q===0),sections:c?c(F,q*2):s,selected:F,onSelect:d?.(q*2),align:"newline"},q)})}),o.jsx("div",{className:"phoneme-select-block__panel-group",children:Array.from({length:a}).map((O,q)=>{const F=t[q*2+1]??{};return o.jsx(va,{title:ae(q+1),sections:c?c(F,q*2+1):s,selected:F,onSelect:d?.(q*2+1),align:"newline"},q)})})]}):t.map((O,q)=>o.jsx(va,{title:X(H(q+1),q===0),sections:c?c(O,q):s,selected:O,onSelect:d?.(q),align:"newline"},q))})}),S&&o.jsx("div",{className:"phoneme-select-block__before-search",children:S}),(b||v||x)&&(()=>{const O=t.every(q=>Object.entries(q).every(([F,se])=>!se||F==="\uC885\uC131"&&se==="\uC5C6\uC74C"));return o.jsxs("div",{className:"phoneme-select-block__search-row",onClick:O?y:void 0,children:[b&&o.jsx(ie,{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:C??P("wordSearch.searchButton","\uAC80\uC0C9\uD558\uAE30")})]}):v&&o.jsx(ie,{size:"56",type:"bar",variant:"main",label:C??P("wordSearch.searchButton","\uAC80\uC0C9\uD558\uAE30"),disabled:O||_,onClick:O||_?void 0:v})]})})(),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:d,className:u}){const{t:m}=ge.useTranslation(),h={searchMode:m("wordPairs.filter.searchModeLabel","\uB300\uB9BD \uBC29\uC2DD"),phonemeOrder:m("wordPairs.filter.phonemeOrder","\uC785\uB825 \uC74C\uC808 \uC704\uCE58"),count:m("wordPairs.filter.countLabel","\uC785\uB825 \uC74C\uC808 \uAC2F\uC218"),inputMode:m("wordPairs.filter.inputModeLabel","\uC785\uB825 \uBC29\uC2DD"),orderAny:m("wordPairs.filter.orderAny","\uBB34\uAD00"),orderMatch:m("wordPairs.filter.orderMatch","\uC77C\uCE58"),include:m("wordPairs.mode.include","\uC74C\uC18C \uD3EC\uD568"),pick:m("wordPairs.mode.pick","\uC74C\uC18C \uB300\uB9BD"),explicit:m("wordPairs.mode.contrast","\uC74C\uC18C \uB300\uB9BD \uC9C0\uC815"),charInput:m("wordPairs.input.char","\uAE00\uC790 \uC120\uD0DD"),pronInput:m("wordPairs.input.pron","\uBC1C\uC74C \uC120\uD0DD")},p=v=>m("wordPairs.count",{n:v}),g=[{label:h.searchMode,items:[h.include,h.pick,h.explicit],display:"segmented",labelAction:o.jsx(So,{title:m("wordPairs.mode.infoTitle","\uB300\uB9BD \uBC29\uC2DD"),items:[m("wordPairs.mode.infoInclude","\uC74C\uC18C \uD3EC\uD568 \u2014 \uC120\uD0DD\uD55C \uC74C\uC18C\uAC00 \uBAA8\uB450 \uB4E4\uC5B4\uAC04 \uB2E8\uC5B4\uC640 \uADF8 \uB300\uB9BD\uC30D\uC744 \uCC3E\uC544\uC694."),m("wordPairs.mode.infoPick","\uC74C\uC18C \uB300\uB9BD \u2014 \uC120\uD0DD\uD55C \uC74C\uC18C\uAC00 \uB300\uB9BD\uC30D \uB450 \uB2E8\uC5B4\uC758 \uC2E4\uC81C \uCC28\uC774\uC810\uC77C \uB54C\uB9CC \uB9E4\uCE6D\uB3FC\uC694."),m("wordPairs.mode.infoContrast","\uC74C\uC18C \uB300\uB9BD \uC9C0\uC815 \u2014 \uAE30\uC900 \uB2E8\uC5B4\uC640 \uB300\uB9BD \uB2E8\uC5B4\uC758 \uC74C\uC18C\uB97C \uAC01\uAC01 \uC9C1\uC811 \uC120\uD0DD\uD574 \uB300\uB9BD\uC30D\uC744 \uCC3E\uC544\uC694.")]})},{label:h.phonemeOrder,items:[h.orderAny,h.orderMatch],display:"segmented",labelAction:o.jsx(So,{items:m("wordPairs.filter.phonemeOrderInfo",{returnObjects:!0})})},{label:h.count,items:[p(1),p(2)],display:"segmented"},{label:h.inputMode,items:[h.charInput,h.pronInput],display:"segmented",labelAction:o.jsx(So,{title:m("wordPairs.input.infoTitle","\uC785\uB825 \uBC29\uC2DD"),items:[m("wordPairs.input.infoChar","\uAE00\uC790 \uC120\uD0DD \u2014 \uC120\uD0DD\uD55C \uC74C\uC18C\uB85C \uB2E8\uC5B4(\uAE00\uC790 \uAE30\uC900)\uB97C \uCC3E\uC740 \uD6C4, \uB2E8\uC5B4\uC758 \uD45C\uC900 \uBC1C\uC74C \uB300\uB9BD\uC30D\uC744 \uCC3E\uC2B5\uB2C8\uB2E4."),m("wordPairs.input.infoPron","\uBC1C\uC74C \uC120\uD0DD \u2014 \uC120\uD0DD\uD55C \uC74C\uC18C\uB85C \uD45C\uC900 \uBC1C\uC74C \uB300\uB9BD\uC30D\uC744 \uCC3E\uC2B5\uB2C8\uB2E4.")]})}],f={[h.searchMode]:t==="explicit"?h.explicit:t==="pick"?h.pick:h.include,[h.phonemeOrder]:r==="ordered"?h.orderMatch:h.orderAny,[h.count]:p(i),[h.inputMode]:c==="phoneme"?h.pronInput:h.charInput},b=(v,y)=>{y===h.searchMode?a(v===h.explicit?"explicit":v===h.pick?"pick":"include"):y===h.phonemeOrder?n(v===h.orderMatch?"ordered":"unordered"):y===h.count?s(v===p(2)?2:1):y===h.inputMode&&d(v===h.pronInput?"phoneme":"word")};return o.jsx(va,{className:u,title:e??m("wordPairs.filter.searchOptionsTitle","\uB300\uB9BD \uC124\uC815"),sections:g,selected:f,onSelect:b,align:"inline"})}var E7=".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(E7);function Zb(e){const{title:t,items:a,columns:r,gridTemplateColumns:n,searchPlaceholder:i,searchFn:s,defaultSortKey:c,defaultSortAsc:d=!0,selectedId:u,selectedIds:m,onSelect:h,onClose:p,pageSizeOptions:g=[10,25,50,100],initialPageSize:f,emptyText:b,countLabel:v,topContent:y,className:_=""}=e,{t:C}=ge.useTranslation(),x=i??C("common.search","\uAC80\uC0C9"),k=b??C("common.emptyList","\uD56D\uBAA9\uC774 \uC5C6\uC2B5\uB2C8\uB2E4."),[w,S]=l.useState(""),[E,A]=l.useState(c??r[0]?.key??""),[B,W]=l.useState(d),[P,T]=l.useState(String(f??g[0]??10)),[j,M]=l.useState(1);l.useEffect(()=>{M(1)},[w,P]);const H=s!==null,ae=l.useCallback((O,q)=>{if(!q)return!0;const F=q.toLowerCase();return r.some(se=>{const Q=O[se.key];return Q==null?!1:String(Q).toLowerCase().includes(F)})},[r]),X=s??ae,oe=l.useMemo(()=>{const O=H?a.filter(q=>X(q,w)):a;return E?[...O].sort((q,F)=>{const se=q[E]??"",Q=F[E]??"";return se===Q?0:B?se>Q?1:-1:se<Q?1:-1}):O},[a,w,E,B,H,X]),N=Math.max(1,Math.ceil(oe.length/Number(P))),L=oe.slice((j-1)*Number(P),j*Number(P)),R=l.useCallback(O=>{E===O?W(q=>!q):(A(O),W(!0))},[E]),z=l.useMemo(()=>{if(typeof v=="string"&&v.includes("{n}")){const[O,q]=v.split("{n}");return{prefix:O,suffix:q}}return{prefix:C("common.totalCountPrefix","\uCD1D "),suffix:C("common.totalCountSuffix","\uAC1C")}},[v,C]),G=l.useMemo(()=>r.map(O=>({label:O.label,onClick:O.sortable!==!1?()=>R(O.key):void 0,className:O.className,sortDir:O.sortable!==!1&&E===O.key?B?"asc":"desc":null})),[r,E,B,R]),K=l.useMemo(()=>g.map(O=>({value:String(O),label:C("common.pageSizeLabel",{n:O})})),[g,C]);return o.jsxs(Ta,{className:`popup-list ${_}`,title:t,onClose:p,children:[y,o.jsx(vn,{count:{value:oe.length,prefix:z.prefix,suffix:z.suffix},search:H?{value:w,onChange:S,placeholder:x}:void 0,pageSize:{options:K,value:P,onChange:T},pagination:{page:j,total:N,onChange:M}}),o.jsx(_n,{size:"medium",gridTemplateColumns:n,resizable:!0,fields:G,items:L,onRowClick:h,renderRow:O=>{const q=m!=null?O.id!=null&&m.has(O.id):u!=null&&O.id===u;return r.map(F=>({content:F.render?F.render(O):O[F.key]??"",className:q?"popup-list__row--selected":F.className}))},empty:k})]})}function Xb(e){const{title:t,message:a,topContent:r,details:n,children:i,confirmLabel:s,cancelLabel:c,hideCancel:d=!1,extraAction:u,confirmVariant:m="main",confirmDisabled:h=!1,onConfirm:p,closeOnConfirm:g=!0,onClose:f,inline:b,size:v="small",className:y}=e,{t:_}=ge.useTranslation(),C=l.useRef(!1),[x,k]=l.useState(!1);return o.jsxs(Ta,{title:t,onClose:f,closeDisabled:x,inline:b,size:v,className:xe("confirm-popup",y),buttons:[...u?[{label:u.label,variant:u.variant??"default",disabled:u.disabled||x,onClick:async({closeWithAnimation:w})=>{if(!C.current){C.current=!0,k(!0);try{await u.onClick(w),(u.closeOnClick??!0)&&w()}finally{C.current=!1,k(!1)}}}}]:[],...d?[]:[{label:c??_("common.cancel","\uCDE8\uC18C"),variant:"default",disabled:x,onClick:({closeWithAnimation:w})=>w()}],{label:s??_("common.confirm","\uD655\uC778"),variant:m,disabled:h||x,onClick:async({closeWithAnimation:w})=>{if(!C.current){C.current=!0,k(!0);try{await p(w),g&&w()}finally{C.current=!1,k(!1)}}}}],children:[r!=null&&o.jsx("div",{className:"confirm-popup__top",children:r}),n&&n.length>0&&o.jsx(kr,{children:n.map((w,S)=>o.jsx(Na,{label:w.label,children:o.jsx("span",{className:"panel-row__text body-2",children:w.value})},S))}),o.jsx("p",{className:"body-2 confirm-popup__message",children:a}),i]})}var j7=".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(j7);function Qb({onApply:e,onCancel:t}){const{t:a}=ge.useTranslation(),[r,n]=l.useState(""),[i,s]=l.useState(!1),[c,d]=l.useState(null),u=l.useRef(null);l.useEffect(()=>{u.current?.focus()},[]);const m=l.useCallback(async g=>{const f=r.trim();if(f){s(!0),d(null);try{await e(f),g()}catch(b){d(Yr(b)),s(!1)}}},[r,e]),h=l.useCallback((g,f)=>{g.key==="Enter"&&m(f)},[m]),p=g=>{n(g.target.value),d(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})=>{m(g)}}],children:({closeWithAnimation:g})=>o.jsxs(o.Fragment,{children:[o.jsx("input",{ref:u,className:"coupon-input-popup__input body-2","aria-label":a("coupons.input.label","\uCFE0\uD3F0 \uCF54\uB4DC"),placeholder:a("coupons.input.placeholder","\uCFE0\uD3F0 \uCF54\uB4DC \uC785\uB825"),value:r,onChange:p,onKeyDown:f=>h(f,g),disabled:i,autoComplete:"off",spellCheck:!1}),c&&o.jsx("p",{className:"coupon-input-popup__error caption-1",role:"alert",children:c})]})})}var L7=".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(L7);const Jb=200;function M7(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},d)=>[d>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((u,m)=>{const h=M7(u);return h?o.jsx(wn,{index:m,type:s,trainingData:h,size:"compact",hideCheckBadge:!0},u.itemId??m):null})})]},s.key)])})});return t?o.jsx(Sa,{anchorRect:t,offset:a,onClose:r,closeOnOutsideClick:!1,className:"tooltip-training",children:i}):i}var P7=".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(P7);const tg=["var(--color-main)","var(--color-sub)"];function Pc({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),v=t-b,y=(_,C)=>Array.from({length:_}).map((x,k)=>{const w=6+Math.random()*12,S=Math.round(Math.min(18,w*Math.min(1.5,1+r*.4))),E=tg[Math.floor(Math.random()*tg.length)],A=Math.random()*300,B=(360+Math.random()*260)*r*1.2,W=(C==="left"?-95+Math.random()*40:-85-Math.random()*40)*Math.PI/180,P=Math.cos(W)*B,T=Math.sin(W)*B*1.35,j=Math.random()*720-360,M=(1200+Math.random()*3e3)*Math.min(1.6,1+r*.3),H=Math.random()>.7?"50%":"3px";return{id:`${C}-${k}`,side:C,size:S,color:E,delay:A,vx:P,vy:T,angularVel:j,life:M,borderRadius:H}});return[...y(b,"left"),...y(v,"right")]},[t,r]),c=l.useRef(null),d=l.useRef({}),u=l.useRef(null),m=l.useRef(n);l.useEffect(()=>{m.current=n},[n]);const h=l.useRef(null),p=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"&&p.current==null&&(p.current=g()),l.useEffect(()=>{if(!e)return;if(typeof window<"u"&&window.matchMedia?.("(prefers-reduced-motion: reduce)").matches){m.current?.();return}const b=1200,v=performance.now(),y=p.current&&p.current!==document.body?p.current.getBoundingClientRect():null,_=Math.max(60,(window.innerHeight||800)*.05),C=N=>Math.max(40,(N||window.innerWidth)*.02),x=y?.width||window.innerWidth||375,k=y?.height||window.innerHeight||812,w=N=>{const L=[...N].sort((R,z)=>R-z);return L[Math.floor(L.length/2)]||1},S=w(s.map(N=>Math.abs(N.vy))),E=w(s.map(N=>Math.abs(N.vx))),A=Math.sqrt(2*b*(k*.72+_))/S,B=S*A/b,W=x*.5/(E*B),P=(N,L,R)=>Math.min(R,Math.max(L,N)),T=P(A,.8,2.4),j=P(W,.7,2.2),M=s.map(N=>({...N,vx:N.vx*j,vy:N.vy*T,startTime:v+N.delay,ended:!1})),H=y?{x:y.left-C(y.width),y:y.top+y.height+_}:{x:-C(window.innerWidth),y:window.innerHeight+_},ae=y?{x:y.left+y.width+C(y.width),y:y.top+y.height+_}:{x:window.innerWidth+C(window.innerWidth),y:window.innerHeight+_},X=N=>{let L=!1;for(const R of M){const z=d.current[R.id];if(!z||!z)continue;if(N<R.startTime){z.style.display="none";continue}if(!R._inited){const ce=R.side==="left"?H.x:ae.x,$=R.side==="left"?H.y:ae.y;z.style.left=`${ce}px`,z.style.top=`${$}px`,z.style.transform="translate3d(0px, 0px, 0)",z.style.display="block",z.style.zIndex="100000";try{if(typeof window<"u"&&typeof R.color=="string"&&R.color.startsWith("var(")){const ee=R.color.slice(4,-1).trim(),ue=getComputedStyle(document.documentElement).getPropertyValue(ee).trim();ue?z.style.background=ue:z.style.background="#FF0060"}}catch{}R._inited=!0}const G=(N-R.startTime)/1e3;if(G<0)continue;const K=R.life/1e3;if(G>=K){z.style.opacity="0",z.style.display="none",R.ended=!0;continue}L=!0;const O=R.side==="left"?H.x:ae.x,q=R.side==="left"?H.y:ae.y,F=O+R.vx*G,se=q+R.vy*G+.5*b*G*G,Q=(R.angularVel||0)*G,re=F-O,me=se-q;z.style.transform=`translate3d(${re}px, ${me}px, 0) rotate(${Q}deg)`,z.style.opacity=`${Math.max(0,1-G/K)}`}L?u.current=requestAnimationFrame(X):m.current?.()};u.current=requestAnimationFrame(X);const oe=setTimeout(()=>{try{if((p.current?p.current.querySelectorAll(".confetti"):document.querySelectorAll(".confetti")).length===0&&!document.querySelector(".party-container")){const N=document.createElement("div");N.className="party-container",N.style.position="fixed",N.style.inset="0",N.style.pointerEvents="none",N.style.overflow="visible",N.style.zIndex="2147483647";for(const L of s){const R=document.createElement("span");R.className=`confetti confetti--${L.side}`,R.setAttribute("aria-hidden","true"),R.style.display="none",R.style.position="fixed",R.style.left="0px",R.style.top="0px",R.style.width=`${L.size}px`,R.style.height=`${Math.max(4,L.size*.6)}px`;let z=L.color;try{if(typeof z=="string"&&z.startsWith("var(")){const G=z.slice(4,-1).trim(),K=getComputedStyle(document.documentElement).getPropertyValue(G).trim();K&&(z=K)}}catch{}R.style.background=z,R.style.borderRadius=L.borderRadius,R.style.transform="translate3d(0,0,0)",R.style.opacity="0",N.appendChild(R),d.current[L.id]=R}(document.body||p.current).appendChild(N),h.current=N}}catch{}},300);return()=>{if(u.current&&cancelAnimationFrame(u.current),clearTimeout(oe),h.current){try{h.current.remove()}catch{}h.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:v=>{d.current[b.id]=v},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,p.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(Pc,{active:t,trigger:e})}var R7=".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(R7);function og({title:e,sub:t,rightAction:a,titleAction:r,badge:n,badgeVariant:i="default",documentTitle:s,onBack:c,backLabel:d}){const{t:u}=ge.useTranslation();ol(typeof e=="string"?e:s??null);const m=d??u("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(ie,{className:"page-title__back",size:48,type:"dot",icon:"chevron-left",iconSize:"large",useBorder:!1,iconColor:"var(--color-text-primary)",ariaLabel:m,showTooltipInfo:m,onClick:c}),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:d,children:u}){return o.jsx(ng.Provider,{value:{words:e,loading:t,error:a,statusMessage:r,localVersion:n,remoteVersion:i,progress:s,clearAndRefetch:c,checkRemoteVersion:d},children:u})}var $7=".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($7);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 I7='.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(I7);const z7=(e,t)=>`${e} / ${t}`;function cg({blocks:e,sectionTitles:t,logo:a,footer:r,pageLabel:n=z7,pageWidth:i,pageHeight:s,margin:c,className:d,style:u}){const{t:m}=ge.useTranslation(),h=l.useRef(null),p=l.useRef(null),g=l.useRef(null),f=l.useRef(null),[b,v]=l.useState(null),[y,_]=l.useState(!1);l.useEffect(()=>{const B=h.current;if(!B)return;const W=()=>_(B.scrollWidth>B.clientWidth+1);if(W(),typeof ResizeObserver>"u")return;const P=new ResizeObserver(W);return P.observe(B),()=>P.disconnect()},[b]);const C=e.map(B=>`${B.id}\0${B.section??""}\0${B.group??""}`).join("");l.useLayoutEffect(()=>{const B=p.current,W=f.current;if(!B||!W)return;const P=g.current?.offsetHeight??0,T=W.offsetHeight-P,j=Array.from(B.children).map(N=>N.offsetHeight),M=[];e.forEach((N,L)=>{const R=M[M.length-1],z=R?e[R[0]]:void 0;z&&N.group!=null&&z.group===N.group?R.push(L):M.push([L])});const H=[];let ae=[],X=0;const oe=()=>{ae.length&&H.push(ae),ae=[],X=0};M.forEach(N=>{const L=N.reduce((R,z)=>R+j[z],0);ae.length&&e[ae[0]].section!==e[N[0]].section&&oe(),ae.length&&X+L>T&&oe(),L>T?N.forEach(R=>{ae.length&&X+j[R]>T&&oe(),ae.push(R),X+=j[R]}):(N.forEach(R=>ae.push(R)),X+=L)}),oe(),v(H)},[C]);const x=Pl,k=x,w=r??o.jsxs(o.Fragment,{children:[o.jsx("img",{src:k,alt:"IHAB",className:"report-doc__logo"}),"\xA9 IHAB, Inc. All rights reserved."]}),S=(B,W,P)=>({header:o.jsxs("div",{className:"report-doc__header",children:[o.jsx("h2",{className:"report-doc__title h3b",children:P!=null&&t?.[P]||null}),a]}),footer:o.jsxs("div",{className:"report-doc__footer caption-1",children:[o.jsx("span",{className:"report-doc__footer-left",children:w}),o.jsx("span",{className:"report-doc__page-no",children:n(B,W)})]})}),E=S(1,1,e[0]?.section),A={...i?{"--report-page-w":i}:null,...s?{"--report-page-h":s}:null,...c?{"--report-margin":c}:null,...u};return o.jsxs("div",{ref:h,className:xe("report-doc",d),style:A,tabIndex:y?0:void 0,role:y?"group":void 0,"aria-label":y?m("report.previewRegion","\uBCF4\uACE0\uC11C \uBBF8\uB9AC\uBCF4\uAE30"):void 0,children:[o.jsxs("div",{className:"report-doc__measure","aria-hidden":!0,children:[o.jsx("div",{ref:f,className:"report-doc__ruler"}),o.jsxs("div",{ref:g,children:[E.header,E.footer]}),o.jsx("div",{ref:p,className:"report-doc__measure-blocks",children:e.map(B=>o.jsx("div",{children:B.content},B.id))})]}),b&&o.jsx("div",{className:"report-doc__pages",children:b.map((B,W)=>{const{header:P,footer:T}=S(W+1,b.length,e[B[0]].section);return o.jsxs("section",{className:"report-doc__page",children:[P,B.map(j=>o.jsx("div",{children:e[j].content},e[j].id)),T]},W)})})]})}var O7=".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(O7);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 F7=".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(F7);function ug({title:e,message:t,actionLabel:a,onAction:r,icon:n,onClose:i,className:s=""}){const{t:c}=ge.useTranslation(),d=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(od,{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(ie,{size:32,variant:"main",shape:"pill",className:"update-alert__action",onClick:r,children:d})]})}var W7=".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(W7);function pg({title:e,description:t,topActions:a,children:r,footerLeft:n,footerRight:i,onClick:s,draggable:c,onDragStart:d,onDragEnd:u,className:m}){const h=n!=null||i!=null,p=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":"",m),onClick:s,onKeyDown:s?g:void 0,role:s?"button":void 0,tabIndex:s?0:void 0,draggable:c,onDragStart:d,onDragEnd:u,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:" "})]}),p&&o.jsx("div",{className:"training-card__body",children:r}),h&&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 H7=".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(H7);function hg({title:e,count:t,collapsed:a=!1,onToggle:r,sort:n,actions:i,empty:s=!1,emptyContent:c,dragOver:d=!1,onDragOver:u,onDragLeave:m,onDrop:h,children:p,className:g}){const{t:f}=ge.useTranslation(),b=xe("training-card-group",d&&"training-card-group--dragover",a&&"training-card-group--collapsed",g);return o.jsxs("div",{className:b,onDragOver:u,onDragLeave:m,onDrop:h,children:[o.jsxs("header",{className:"training-card-group__header",children:[o.jsx(ie,{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:v=>v.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:p}))]})}var V7=".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(V7);const G7="speechear:saved_word_tables";function q7(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 Y7(){try{const e=localStorage.getItem(G7);if(!e)return[];const t=JSON.parse(e);return Array.isArray(t)?t.filter(q7):[]}catch{return[]}}function mg({title:e,titleIcon:t,disc:a,items:r,onSaveComplete:n,onLoad:i,onRemoveItem:s,onReset:c,resetLabel:d,saveButtonLabel:u,secondarySaveButtonLabel:m,onReorder:h,showCellCount:p,onAddItem:g,className:f,renderSavePopup:b,renderWordSearch:v,hideControls:y,saveOnly:_,tableName:C,nameValue:x,onNameChange:k,descriptionValue:w,onDescriptionChange:S,namePlaceholder:E,descriptionPlaceholder:A,existingNames:B,editingName:W,onCancel:P}){const{t:T}=ge.useTranslation(),j=d??T("wordPrint.clearAllSelection","\uBAA8\uB450 \uC120\uD0DD \uD574\uC81C"),M=r===void 0,H=!!k,[ae,X]=l.useState([]),oe=(x??"").trim(),N=oe||(E??"").trim(),L=(w??"").trim()||(A??"").trim(),R=(B??[]).map(pe=>pe.trim().toLowerCase()),z=[W?.trim().toLowerCase(),...ae].filter(pe=>!!pe),G=[...R];for(const pe of z){const Te=G.indexOf(pe);Te!==-1&&G.splice(Te,1)}const K=oe!==""&&G.includes(oe.toLowerCase()),[O,q]=l.useState(Array(4).fill(null)),[F,se]=l.useState(4),[Q,re]=l.useState(null),[me,ce]=l.useState("landscape"),[$,ee]=l.useState(["\uC774\uBBF8\uC9C0","\uB2E8\uC5B4","\uD45C\uC900 \uBC1C\uC74C"]),[ue,ke]=l.useState("\uD45C\uC2DC"),[Ce,I]=l.useState(!0),[Z,te]=l.useState(!0),fe=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(()=>re(null),[re]),[Ue,Xe]=l.useState(()=>Math.max(r?.length??1,1));l.useEffect(()=>{M||Xe(pe=>Math.max(pe,r?.length??1))},[r?.length,M]);const ut=M?F:p?Math.max(Ue,r?.length??1):Math.max(r?.length??0,1),{width:Pe,height:rt}=io[me],et=!M&&!p,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=M?O.some(pe=>pe!==null&&pe.length>1):(r??[]).some(pe=>pe.words.length>1),Ht=C?.trim()||`${Zr(Ur())} ${it?T("wordTable.printFileNamePair","\uB300\uB9BD\uC30D\uD45C"):T("wordTable.printFileNameSingle","\uB2E8\uC5B4\uD45C")}`,mt=l.useCallback(()=>Et?De.current.filter(pe=>pe!==null):fe.current?[fe.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=pe=>{se(pe),q(Te=>{const at=Array(pe).fill(null);return Te.slice(0,pe).forEach((Ct,_t)=>{at[_t]=Ct}),at}),re(null)},sa=pe=>{q(Te=>{const at=[...Te];return at[pe]=null,at}),Q===pe&&re(null)},Kt=pe=>{if(Q===null)return;const Te=Q;q(Ct=>{const _t=[...Ct];return _t[Te]=pe,_t});const at=O.findIndex((Ct,_t)=>_t>Te&&Ct===null);re(at!==-1?at:null)},ja=M?O.some(pe=>pe?.some(Te=>!!Te.colloquialPronunciation)):(r??[]).some(pe=>pe.words.some(Te=>!!Te.colloquialLabel)),jt=l.useMemo(()=>Ma()?M?O.flatMap(pe=>(pe??[]).map(Te=>[Te.word,Te.homonum])):(r??[]).flatMap(pe=>pe.words.map(Te=>[Te.label,Te.homonum])):[],[M,O,r]),[Ga,$t]=l.useState(!1);l.useEffect(()=>{if(jt.length===0)return;let pe=!1;return Promise.all(jt.map(([Te,at])=>Yo(Te,at))).then(Te=>{pe||$t(Te.some(Boolean))}),()=>{pe=!0}},[jt]);const ya=jt.length>0&&Ga,qa=l.useMemo(()=>[...M||p?[{label:T("wordTable.filter.columns","\uCE78 \uC218"),items:xk.map(pe=>({value:`${pe}\uCE78`,displayLabel:T("wordTable.filter.column",{count:pe})})),display:"segmented"}]:[],...et&&(r?.length??0)>0?[Om(T,{hasPairs:it,itemCount:Oe})]:[],...Et?[Fm(T)]:[]],[T,M,p,et,r?.length,it,Oe,Et]),Je={...M||p?{[T("wordTable.filter.columns","\uCE78 \uC218")]:`${M?F: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=(pe,Te)=>{Te===T("wordTable.filter.columns","\uCE78 \uC218")?M?Ea(parseInt(pe)):Xe(parseInt(pe)):Te===T(it?"wordTable.filter.itemsPerPagePair":"wordTable.filter.itemsPerPageWord")?Re(parseInt(pe)):Te===T("wordTable.filter.pageNumber","\uD398\uC774\uC9C0 \uBC88\uD638")&&Ye(Hm(pe))},kt=M?O.filter(pe=>pe!==null).map(pe=>({id:pe[0].word,words:pe.map(Te=>({label:Te.word,subLabel:Te.pronunciation,homonum:Te.homonum}))})):r??[],xa=(pe=!1)=>{if(be(pe),H&&n){const Te=N.trim().toLowerCase();Te&&X(at=>at.includes(Te)?at:[...at,Te]),n(N,kt,L||void 0,pe);return}if(_&&n){n("",kt,void 0,pe);return}if(n){Ve(!0);return}Gt()},[la,ne]=l.useState(!1),[ve,ye]=l.useState(""),Y=ve.trim(),de=Y!==""&&R.includes(Y.toLowerCase()),_e=()=>{ye(N?`${N} (\uBCF5\uC0AC)`:""),ne(!0)},Se=()=>{!Y||de||!n||(n(Y,kt,L||void 0,!0),ne(!1))},Ae=kt.length===0,$e=Ae||H&&(N===""||K),nt=()=>{if(Ae){Le(T("wordTable.emptyItems","\uB2E8\uC5B4\uB97C 1\uAC1C \uC774\uC0C1 \uCD94\uAC00\uD574\uC8FC\uC138\uC694."));return}if(H&&N===""){Le(T("wordTable.save.nameRequired","\uD45C \uC774\uB984\uC744 \uC785\uB825\uD574 \uC8FC\uC138\uC694."));return}H&&K&&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:$,cutLine:ue,showOutline:Ce,showDivLine:Z,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:m??T("wordTable.saveAsNewButton","\uB2E4\uB978 \uC774\uB984\uC73C\uB85C \uC800\uC7A5"),onClose:()=>ne(!1),footer:({closeWithAnimation:pe})=>o.jsxs(o.Fragment,{children:[o.jsx(ie,{size:48,type:"bar",label:T("common.cancel","\uCDE8\uC18C"),onClick:pe}),o.jsx(ie,{size:48,type:"bar",variant:"main",label:T("common.save","\uC800\uC7A5"),disabled:!Y||de,onClick:Se})]}),children:o.jsx(Wa,{label:T("wordTable.save.nameLabel","\uC774\uB984"),value:ve,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:Y7().map(pe=>pe.name),saveAsNew:Fe,onSave:(pe,Te)=>{n(pe,kt,Te,Fe),Ve(!1)},onCancel:()=>Ve(!1)}),(M||g)&&Q!==null&&v?.({cellIndex:Q,onConfirm:M?Kt:pe=>{if(g){const Te=pe[0];Te&&g({id:Te.word,words:[{label:Te.word,subLabel:Te.pronunciation,homonum:Te.homonum}]})}re(null)},onClose:vt}),!y&&o.jsx(Bn,{hasImage:ya,hasColloquial:ja,contentTypes:$,orientation:me,showOutline:Ce,cutLine:ue,showDivLine:Z,setters:{setContentTypes:ee,setOrientation:ce,setShowOutline:I,setCutLine:ke,setShowDivLine:te},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((pe,Te)=>o.jsx(so,{orientation:me,contentTypes:$,cutLine:ue,showOutline:Ce,showDivLine:Z,count:tt,items:pe,onRemoveItem:s,contentRef:at=>{De.current[Te]=at},pageNumber:{current:Te+1,total:xt.length},pageNumberPosition:Me},Te))}):o.jsx(so,{orientation:me,contentTypes:$,cutLine:ue,showOutline:Ce,showDivLine:Z,count:ut,items:M?void 0:r??[],editCells:M?O:void 0,activeCell:Q,onActivateCell:M||g?re:void 0,onRemoveCell:M?sa:void 0,onRemoveItem:M?void 0:s,onReorder:M?void 0:h,showFillerAdd:!!g,contentRef:fe}),H&&!y&&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:k,placeholder:E?E+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:K?T("wordTable.save.duplicateName","\uC774\uBBF8 \uC0AC\uC6A9 \uC911\uC778 \uC774\uB984\uC785\uB2C8\uB2E4."):void 0,onKeyDown:pe=>{(pe.key==="Tab"&&!pe.shiftKey||pe.key===" ")&&!(x??"").trim()&&(E??"").trim()&&(pe.preventDefault(),k?.(E??""))}})}),o.jsx(Na,{variant:"custom",label:T("wordTable.save.descriptionLabel","\uC124\uBA85"),align:"vertical",useFullWidth:!0,children:o.jsx(Wa,{value:w??"",onChange:S,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:pe=>{(pe.key==="Tab"&&!pe.shiftKey||pe.key===" ")&&!(w??"").trim()&&(A??"").trim()&&(pe.preventDefault(),S?.(A??""))}})})]})]}),!y&&o.jsxs("div",{className:"word-table-block__actions",children:[o.jsxs("div",{className:"word-table-block__actions-left",children:[!_&&c&&o.jsx(ie,{size:40,type:"bar",label:j,onClick:c}),!_&&i&&o.jsx(ie,{size:40,type:"bar",label:T("wordTable.load","\uBD88\uB7EC\uC624\uAE30"),onClick:i}),!_&&o.jsx(ie,{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(ie,{size:"56",type:"bar",label:T("common.cancel","\uCDE8\uC18C"),onClick:P}),!_&&o.jsx(ie,{size:"56",type:"bar",label:T("wordTable.print","\uC778\uC1C4\uD558\uAE30"),onClick:Vt}),m&&o.jsx(ie,{size:"56",type:"bar",label:m,onClick:()=>H?_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(ie,{size:"56",type:"bar",variant:"main",label:u??T("wordTable.saveButton","\uC800\uC7A5\uD558\uAE30"),onClick:()=>xa(!1),disabled:$e,onDisabledClick:nt})]})]}),o.jsx(ro,{message:Ke,type:We,onClose:Ge})]})}var U7=".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(U7);function Rc({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 d=e[c];return d?o.jsx("div",{className:"word-table-thumb__cell",children:(d.words.length?d.words:[{label:d.id}]).map((u,m)=>o.jsxs(l.Fragment,{children:[m>0&&o.jsx("span",{className:"word-table-thumb__divider"}),o.jsx("span",{className:"word-table-thumb__word body-3",children:u.label})]},m))},c):o.jsx("div",{className:"word-table-thumb__cell word-table-thumb__cell--empty"},c)})})}var K7=".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(K7);function bg({items:e,name:t,description:a,createdAt:r,published:n,publishedLabel:i,shared:s,sharedLabel:c,isNew:d,publisherName:u,publishedAt:m,likeCount:h,downloadCount:p,onPublisherClick:g,selected:f,onClick:b,onMore:v,titleNode:y,className:_}){const{t:C}=ge.useTranslation(),x=y!=null,k=u!=null||m!=null||h!=null||p!=null,w=S=>{!x&&(S.key==="Enter"||S.key===" ")&&(S.preventDefault(),b?.())};return o.jsxs("div",{className:xe("word-table-button",f?"word-table-button--selected":"",k?"":"word-table-button--no-footer",_),role:"button",tabIndex:0,"aria-label":t,onClick:x?void 0:b,onKeyDown:w,children:[d&&o.jsx("span",{className:"word-table-button__new-dot","aria-label":C("myWordTable.newBadge","\uC0C8\uB85C \uB9CC\uB4E0 \uD45C")}),o.jsx(Rc,{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:[y??o.jsx("div",{className:"word-table-button__title h4",children:t}),a&&o.jsx("div",{className:"word-table-button__desc body-3",children:a})]}),v&&!x&&o.jsx(ie,{className:"word-table-button__more",size:32,type:"dot",variant:"transparent-gray",useBorder:!1,icon:"ellipsis",ariaLabel:C("common.moreFor",{name:t}),onClick:S=>{S.stopPropagation(),v(S)}})]}),(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,C):""}),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"})]})]}),k&&o.jsxs("div",{className:"word-table-button__footer",children:[o.jsxs("span",{className:"word-table-button__store-by",children:[u&&o.jsx("button",{className:"training-card__publisher body-4",type:"button",onClick:S=>{S.stopPropagation(),g?.()},children:u}),m&&o.jsx("span",{className:"training-card__date body-4",children:Kr(m,C)})]}),o.jsxs("span",{className:"word-table-button__store-stats",children:[h!=null&&o.jsx(ht,{size:"small",fill:"soft",variant:"like",iconLeft:"heart",label:String(h)}),p!=null&&o.jsx(ht,{size:"small",fill:"soft",variant:"main",iconLeft:"download",label:String(p)})]})]})]})}/**
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(x7);function Dc(...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 C7(e){return Dc(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=Dc(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 Ec(e){const{score:t,contextsLength:a,results:r=[],subtitle:n,onReplay:i,onClose:s,inline:c=!1}=e||{},{t:d}=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 u=l.useCallback(b=>{const v=Hb(b),y=Dc(b?.wording,b?.label);return v===!0?{variant:"main",label:y??d("training.result.heardWell","\uC798 \uB4E4\uC5C8\uC5B4\uC694")}:v===!1?{variant:"danger",label:y??d("training.result.notHeard","\uBABB \uB4E4\uC5C8\uC5B4\uC694")}:{variant:"disabled",label:y??d("training.result.notJudged","\uBBF8\uD310\uC815")}},[d]),m=a??0,h=t??0,p=l.useMemo(()=>Array.isArray(r)?r:[],[r]),g=l.useMemo(()=>p.map(b=>{const v=b??{},y=C7(v)||"(\uB0B4\uC6A9\uC5C6\uC74C)",{variant:_,label:C}=u(v),x=Array.isArray(v.corrects)?v.corrects:[],k=x.length?x.join(", "):v.answer!=null&&v.answer!==""?String(v.answer):null,w=typeof v.selectedText=="string"?v.selectedText:null,S=Hb(v)===!0;return{problem:y,variant:_,label:C,answer:k,selectedText:w,isCorrect:S}}),[p,u]),f=l.useMemo(()=>g.some(b=>b.answer!==null||b.selectedText!==null),[g]);return o.jsx(Ta,{onClose:s,inline:c,ariaLabel:d("training.result.title","\uD6C8\uB828\uC744 \uBAA8\uB450 \uB9C8\uCCE4\uC2B5\uB2C8\uB2E4."),className:"popup--training-result",footerClassName:"trp-result__foot",footer:({animateThen:b,closeWithAnimation:v})=>o.jsxs("div",{className:"trp-actions",children:[o.jsx(ie,{size:56,type:"bar",label:d("training.result.replay","\uB2E4\uC2DC\uD558\uAE30"),onClick:()=>b(i)}),o.jsx(ie,{size:56,type:"bar",label:d("training.result.done","\uC644\uB8CC"),variant:"main",onClick:v})]}),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:d("training.result.eyebrow","\uD6C8\uB828 \uC644\uB8CC")}),o.jsx("h1",{className:"trp-result__title h2",children:d("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":d("training.result.scoreAria",{correct:h,total:m}),children:[o.jsx("span",{className:"trp-score__big",children:h}),o.jsx("span",{className:"trp-score__sep",children:"/"}),o.jsx("span",{className:"trp-score__total",children:m})]})})]}),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":d("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:d("training.result.colProblem","\uBB38\uC81C")}),f&&o.jsx("span",{role:"columnheader",children:d("training.result.colAnswerSelected","\uC815\uB2F5 \xB7 \uC120\uD0DD")}),o.jsx("span",{className:"col-right",role:"columnheader",children:d("training.result.colJudge","\uD310\uC815")})]}),g.map((b,v)=>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(v+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:d("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:d("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})})]},v))]})})]})})}function _7(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 jc(e,t){return e&&e.id||`page-${t??0}`}function Lc(e,t){return e&&e.key||`step-${t??0}`}function $n(){return{pageIndex:0,stepIndex:0,answersByPage:{}}}function w7(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"]),k7=e=>o.jsx(Ec,{score:e.score,contextsLength:e.contextsLength,results:e.results,onReplay:e.onReplay,onClose:e.onClose});function S7(e){const{scenario:t,title:a,subTitle:r,depth:n,icon:i,wrapperStyle:s,iconTooltip:c,pageIndex:d,pageCount:u,stepIndex:m,stepCount:h,onBack:p,onComplete:g,onNext:f,onSettings:b,useNoiseSetting:v=!0,children:y,ariaLabel:_,label:C,buildResults:x,onResult:k,typeKey:w,entryPoint:S,dailyTotal:E,itemRef:A,renderResultPopup:B}=e;_7(w&&!Vb.has(w)?w:"");const W=l.useRef(0);l.useEffect(()=>{W.current=Date.now()},[]);const{t:P}=ge.useTranslation(),T=k,j=!!t,M=t?.id||null,H=t?.meta||{},ae=Array.isArray(t?.pages)?t.pages:[],X=Array.isArray(y)||l.isValidElement(y)&&typeof y!="function"?l.Children.toArray(y).filter(l.isValidElement):[],oe=X.length>0,N=ne=>ne===Sr||ne?.__isTrainingPage===!0,L=oe&&X.some(ne=>N(ne.type)),R=L?X.filter(ne=>N(ne.type)).map((ne,ve)=>{const ye=ne.props||{};return{id:`children-page-${ve}`,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:X}],z=oe&&!j&&typeof y!="function",G=z?Math.max(1,R.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 ne=document.body;return ne.dataset.ihabTrainingPopupCount=String(Number(ne.dataset.ihabTrainingPopupCount||"0")+1),ne.classList.add("ihab-training-popup-open"),()=>{const ve=Number(ne.dataset.ihabTrainingPopupCount||"1")-1;ve>0?ne.dataset.ihabTrainingPopupCount=String(ve):(delete ne.dataset.ihabTrainingPopupCount,ne.classList.remove("ihab-training-popup-open"))}},[]),l.useEffect(()=>{if(!(typeof document>"u"||!document.body))return ik()},[]);const[K,O]=l.useState({...Cb,enabled:!1}),q=l.useRef(K);l.useEffect(()=>{q.current=K},[K]),l.useEffect(()=>{let ne=!1;return rs().then(ve=>{if(ne)return;const ye=ve?{...q.current,...ve}:{...Cb};q.current=ye,O(ye)}),()=>{ne=!0}},[]);const[F,se]=l.useState(null),[Q,re]=l.useState(null),me=l.useCallback((ne,ve)=>{ne==="main"?se(ve):re(ve)},[]),ce=l.useCallback(ne=>{const ve={...q.current,...ne};q.current=ve,O(ve),ns(ve)},[]),$=K.mainSpeed,ee=K.mainVolume,ue=l.useCallback(ne=>ce({mainSpeed:ne}),[ce]),ke=l.useCallback(ne=>ce({mainVolume:ne}),[ce]),Ce=l.useMemo(()=>({settings:K,setSettings:ce,registerAnalyser:me,mainAnalyser:F,noiseAnalyser:Q,playbackRate:$,setPlaybackRate:ue,mainVolume:ee,setMainVolume:ke}),[K,ce,me,F,Q,$,ue,ee,ke]),I=l.useRef(null),[Z,te]=l.useState("center"),[fe,De]=l.useState(!1),ze=l.useRef(!1),Re=l.useRef(null),Me=l.useCallback(ne=>{ze.current||(ze.current=!0,De(!0),Re.current=setTimeout(ne,l7))},[]);l.useEffect(()=>()=>{Re.current&&clearTimeout(Re.current)},[]),l.useEffect(()=>{const ne=I.current;if(!ne)return;const ve=Array.from(ne.querySelectorAll(dr)).filter(Y=>!Y.closest('[aria-hidden="true"]'))[0];if(ve)try{ve.focus()}catch{}const ye=Y=>{if(Y.key==="Escape"){Y.preventDefault(),Me(()=>{typeof p=="function"&&p()});return}};return ne.addEventListener("keydown",ye),()=>ne.removeEventListener("keydown",ye)},[p,Me]),_s(I,!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 d=="number"?d:null);l.useEffect(()=>{!j&&!z||(Ge($n()),be(null))},[j,M,z]),l.useEffect(()=>{z&&Ge(ne=>{const ve=Math.max(0,Math.min(ne.pageIndex,Math.max(0,G-1)));return ve!==ne.pageIndex?{...ne,pageIndex:ve,stepIndex:0}:ne})},[z,G]);const Ue=z?Math.max(0,Math.min(Le.pageIndex,G-1)):0,Xe=z?R[Ue]:null,ut=z&&Xe&&Array.isArray(Xe.steps)?Xe.steps:[],Pe=j?Le.pageIndex:z?Ue:typeof d=="number"?d:0,rt=j?ae[Math.max(0,Math.min(Le.pageIndex,Math.max(0,ae.length-1)))]:null,et=j&&rt&&Array.isArray(rt.steps)?rt.steps:[],Oe=j?et.length:z?ut.length:typeof h=="number"?h:0,Qe=j||z?Math.max(0,Math.min(Le.stepIndex,Math.max(0,Oe))):typeof m=="number"?m:0,tt=j?ae.length:z?G:typeof u=="number"?u:0;l.useLayoutEffect(()=>{const ne=vt.current;if(typeof Pe=="number"&&ne!==null&&Pe!==ne&&Pe>ne)try{We(P("training.problemNotice",{n:Pe+1}))}catch{}vt.current=typeof Pe=="number"?Pe:vt.current},[Pe,d,P]),l.useLayoutEffect(()=>{const ne=I.current;if(!ne)return;const ve=()=>ne.querySelector(".page-popup__scroll");let ye=null,Y=null,de=null;const _e=ct=>{const pe=ve();if(!pe)return;const Te=pe.scrollHeight<=pe.clientHeight;if(te(Te?"center":"top"),ct&&!Ve.current){Ve.current=!0;try{Ne(!0)}catch{}try{$e.disconnect()}catch{}}},Se=()=>{ye!==null&&cancelAnimationFrame(ye),ye=requestAnimationFrame(()=>{Y!==null&&clearTimeout(Y),Y=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(ne,{childList:!0,subtree:!0,attributes:!0});const nt=setTimeout(()=>{Ve.current||_e(!0)},400);return()=>{window.removeEventListener("resize",Ae),ye!==null&&cancelAnimationFrame(ye),Y!==null&&clearTimeout(Y),de!==null&&cancelAnimationFrame(de),clearTimeout(nt);try{$e.disconnect()}catch{}}},[I]);const xt=l.useCallback(ne=>{I.current&&(I.current._childOnNext=ne)},[]),Et=l.useCallback(ne=>{I.current&&(I.current._childOnResult=ne)},[]),it=l.useCallback((ne,ve,ye)=>{Ge(Y=>{const de=Y.answersByPage[ne]||{},_e=de[ve],Se=Rn(ye),Ae=Rn(_e);return _e&&Ae>Se?Y:{...Y,answersByPage:{...Y.answersByPage,[ne]:{...de,[ve]:ye}}}})},[Ge]),Ht=l.useCallback((ne,ve,ye)=>{const Y=jc(rt,Pe),de=Lc(ne,ve);it(Y,de,ye)},[rt,Pe,it]),mt=l.useCallback((ne,ve,ye)=>{const Y=jc(rt,Pe),de=Lc(ne,ve);it(Y,de,ye),!ye?.allowChange&&ne?.autoAdvance!==!1&&Ge(_e=>({..._e,stepIndex:Math.max(_e.stepIndex,ve+1)}))},[rt,Pe,it,Ge]),Vt=l.useCallback((ne,ve)=>{const ye=Xe?.id||`children-page-${Pe??0}`,Y=typeof ve=="number"?ve:Qe??0,de=`step-${Y}`;it(ye,de,ne),ne?.allowChange||Ge(_e=>({..._e,stepIndex:Math.max(_e.stepIndex,Y+1)}))},[Xe,Pe,Qe,it,Ge]),ia=l.useCallback((ne,ve)=>{const ye=Xe?.id||`children-page-${Pe??0}`,Y=`step-${typeof ve=="number"?ve:Qe??0}`;it(ye,Y,ne)},[Xe,Pe,Qe,it]),Gt=z?{currentPageIndex:Pe??0,currentStepIndex:Qe??0,totalStepsInPage:ut.length,handleStepDone:Vt,handleStepChange:ia}:null,Ea=async()=>{const ne=typeof t?.buildResults=="function"?await Promise.resolve(t.buildResults({scenario:t,pages:ae,flowState:Le,answersByPage:Le.answersByPage})):null;return typeof T=="function"&&await Promise.resolve(T(ne))||ne},sa=async()=>{const ne=Xe?.id||`children-page-${Le.pageIndex}`,ve=Le.answersByPage[ne]||{},ye=L?(()=>{const _e={};let Se=0;return R.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 pe=$e[`step-${ct}`];typeof pe<"u"&&(_e[`step-${Se+ct}`]=pe)}Se+=nt}),_e})():ve;if(typeof x=="function"){const _e=await Promise.resolve(x(ye,{pageAnswers:ve,answersByPage:Le.answersByPage,pages:R,currentPageId:ne}));return typeof T=="function"&&await Promise.resolve(T(_e))||_e}const Y=Object.entries(ve).map(([_e,Se],Ae)=>({index:Ae,key:_e,payload:Se})),de={results:Y,answers:Y,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(j){const ye=Ea();be({});const Y=ye;Promise.resolve(Y).then(de=>{be(de||{isEmpty:!0})}).catch(de=>{be({isEmpty:!0})});return}if(z){const ye=sa();be({});const Y=ye;Promise.resolve(Y).then(de=>{be(de||{isEmpty:!0})}).catch(de=>{be({isEmpty:!0})});return}const ne=I.current&&I.current._childOnResult,ve=ye=>{try{return ye?ye():void 0}catch{return}};if(typeof ne=="function"){const ye=ve(ne);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(Y=>{Y&&be(Y)}).catch(Y=>{});return}if(typeof T=="function"){const ye=ve(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(Y=>{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{}Y&&be(Y)}).catch(Y=>{console.error("viewResults external handler failed",Y)});return}},ja=()=>{if(j){if(typeof Pe=="number"&&typeof tt=="number"&&Pe<tt-1){Ge(ve=>({...ve,pageIndex:ve.pageIndex+1,stepIndex:0}));return}return Kt()}if(z){const ve=ut.length;if(typeof Qe=="number"&&Qe<ve-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 ne=I.current&&I.current._childOnNext;if(typeof ne=="function"){try{ne()}catch{}return}},jt=j?H.title||H.label||_||P("common.popup","\uD31D\uC5C5"):a||C||(Array.isArray(n)?n[n.length-1]:void 0)||_||P("common.popup","\uD31D\uC5C5"),Ga=j?H.title??H.label??jt:a??C??jt,$t=(ne,ve)=>{const ye=jc(rt,Pe),Y=Lc(ne,ve),de=Le.answersByPage[ye]?.[Y],_e=w7(ne,{page:rt,pageIndex:Pe,step:ne,stepIndex:ve,storedPayload:de,answersByPage:Le.answersByPage,flowState:Le}),Se={key:Y,index:ve,stepIndex:Qe,isLast:ve===et.length-1};switch(ne?.type){case"listen":return o.jsx(Mn,{...Se,..._e,onDone:Ae=>mt(ne,ve,Ae)});case"confirm":return o.jsx(jn,{...Se,..._e,onDone:Ae=>mt(ne,ve,Ae),onChange:Ae=>Ht(ne,ve,Ae)});case"confirmWithText":return o.jsx(Ln,{...Se,..._e,onDone:Ae=>mt(ne,ve,Ae),onChange:Ae=>Ht(ne,ve,Ae)});case"orderList":return o.jsx(Pn,{...Se,..._e,onDone:Ae=>mt(ne,ve,Ae),onChange:Ae=>Ht(ne,ve,Ae)});default:return null}},ya=j?ae.length>0?o.jsx("div",{className:"training-steps",children:et.map((ne,ve)=>$t(ne,ve))}):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=z?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((ne,ve)=>{const ye=ne;return l.cloneElement(ye,{...ye.props,_stepIndex:ve,_totalSteps:ut.length,_stepKey:`step-${ve}`,_pageIndex:Pe})})}),Xe?.pageBottom?o.jsx("div",{className:"training-page-bottom",children:Xe.pageBottom}):null]}):null,Je=l.useCallback(()=>{let ne;if(w){const ve=Fe,ye=ve?.results||ve?.answers||[],Y=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=Y!=null?de:null;es({items:as(ye),category:Vb.has(w)?"sentence":"word",trainingType:w,entryPoint:S??"sentence",itemRef:A??null,correct:_e,total:Y,score:typeof ve?.score=="number"?ve.score:null,durationSeconds:Math.max(0,Math.round((Date.now()-W.current)/1e3)),dailyTotal:E??null}),ne={correct:_e,total:Y}}be(null),Me(()=>{typeof g=="function"&&g(ne),typeof p=="function"&&p()})},[g,p,w,S,E,A,Fe,be,Me]),It=l.useCallback(()=>We(""),[We]),kt=l.useCallback(()=>{Me(()=>{typeof p=="function"&&p()})},[p,Me]),xa=o.jsxs("div",{className:`page-popup${fe?" page-popup--closing":""}`,role:"dialog","aria-modal":"true","aria-label":jt,children:[o.jsxs("div",{ref:I,className:`page-popup__panel ${Ye?"":"page-popup__panel--measuring"} ${Z==="center"?"page-popup__panel--center":Z==="top"?"page-popup__panel--top":""}`,children:[o.jsx(_c,{title:Ga,subtitle:j?H.subtitle||H.label:Array.isArray(n)?n.join(" / "):void 0,desc:j?void 0:r,depth:j?H.depth:n,icon:j?H.icon:i,wrapperStyle:j?H.wrapperStyle:s,iconTooltip:j?H.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 ${Z==="center"?"page-popup__content--center":"page-popup__content--top"}`,children:z?qa:j?ya:typeof y=="function"?y({registerOnNext:xt,registerOnResult:Et,panelRef:I,setResultOverlay:be}):y})}),o.jsx(Cc,{onSettings:b,onNext:ja,onResult:Kt,useNoiseSettingBtn:!!(j?H.useNoiseSetting??!0:v),stepIndex:Qe,stepCount:Oe,pageIndex:Pe,pageCount:tt})]}),Fe&&!Fe.isEmpty&&(B??k7)({score:Fe.score,results:Fe.results||Fe.answers||[],contextsLength:Fe.results?Fe.results.length:Fe.answers?Fe.answers.length:0,onReplay:()=>{if(be(null),j){if(Ge($n()),typeof t?.onReplay=="function")try{t.onReplay()}catch{}return}if(z){Ge($n());return}try{const ne=I.current&&I.current._childOnResult;typeof ne=="function"&&ne({replay:!0})}catch{}},onClose:Je}),Fe?.isEmpty&&o.jsx("div",{className:"page-popup page-popup--result-empty",role:"dialog","aria-modal":"true","aria-label":P("training.result.eyebrow","\uD6C8\uB828 \uC644\uB8CC"),children:o.jsxs("div",{className:"page-popup__panel page-popup__panel--center",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(ie,{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=S7;Da.Page=Sr,Da.ListenStep=Sc,Da.ConfirmStep=Ac,Da.ConfirmWithTextStep=Tc,Da.OrderListStep=Bc,Da.CardStep=Nc,Da.CardOrderStep=y7;var A7=".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(A7);var T7='.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(T7);function B7({label:e,homonum:t}){const a=Ma()?.(e,t)??"",{imgRef:r,loading:n,hasImage:i,onLoad:s,onError:c}=Xl(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 Mc({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 d=t.left+t.width/2-i/2,u=t.top-s-8;u<8&&(u=t.bottom+8),d=Math.max(8,Math.min(d,c-i-8)),n({left:d,top:u})},[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(B7,{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:d,onClearSelection:u,onPrint:m,onPrintEmpty:h,className:p,emptyHint:g,sectionType:f="page",disc:b,notice:v}){const{t:y,i18n:_}=ge.useTranslation(),C=_.language?.startsWith("ko")??!1,{anchorRect:x,openAt:k,close:w}=ko(),[S,E]=l.useState(null),A=l.useCallback(()=>{w(),E(null)},[w]),B=(r??"").trim(),W=/^[^,[\]\s]+$/.test(B)?B:"",P=W.length>0,[T,j]=l.useState("ganada"),[M,H]=l.useState("50"),[ae,X]=l.useState(1),[oe,N]=l.useState(P);oe!==P&&(N(P),j(P?"match":"ganada"));const L=T==="match"&&!P?"ganada":T,R=l.useMemo(()=>[...P?[{value:"match",label:y("wordSearch.sort.match",{defaultValue:"\uC2DC\uC791 \uC6B0\uC120"})}]:[],{value:"ganada",label:y("wordSearch.sort.ganada",{defaultValue:"\uAC00\uB098\uB2E4\uC21C \u2191"})},{value:"ganada_desc",label:y("wordSearch.sort.ganadaDesc",{defaultValue:"\uAC00\uB098\uB2E4\uC21C \u2193"})},{value:"syllable",label:y("wordSearch.sort.syllable",{defaultValue:"\uC74C\uC808 \uC218 \u2191"})},{value:"syllable_desc",label:y("wordSearch.sort.syllableDesc",{defaultValue:"\uC74C\uC808 \uC218 \u2193"})},{value:"grade",label:y("wordSearch.sort.grade",{defaultValue:"\uB4F1\uAE09\uC21C \u2191"})},{value:"grade_desc",label:y("wordSearch.sort.gradeDesc",{defaultValue:"\uB4F1\uAE09\uC21C \u2193"})}],[y,P]),z=l.useMemo(()=>["10","25","50","100"].map(I=>({value:I,label:y("wordSearch.pageSize",{count:Number(I),defaultValue:`${I}\uAC1C\uC529 \uBCF4\uAE30`})})),[y]),G=I=>I.words[0],K=l.useCallback((I,Z)=>{const te=ze=>G(ze)?.label??"",fe=ze=>G(ze)?.syllables??[...te(ze)].length,De=ze=>{const Re=parseInt(G(ze)?.grade??"",10);return Number.isFinite(Re)?Re:999};switch(L){case"match":{const ze=[...W].length,Re=Me=>ho(te(Me).slice(0,ze),W)?0:1;return Re(I)-Re(Z)||te(I).localeCompare(te(Z),"ko")}case"ganada":return te(I).localeCompare(te(Z),"ko");case"ganada_desc":return te(Z).localeCompare(te(I),"ko");case"syllable":return fe(I)-fe(Z)||te(I).localeCompare(te(Z),"ko");case"syllable_desc":return fe(Z)-fe(I)||te(I).localeCompare(te(Z),"ko");case"grade":return De(I)-De(Z)||te(I).localeCompare(te(Z),"ko");case"grade_desc":return De(Z)-De(I)||te(I).localeCompare(te(Z),"ko");default:return 0}},[L,W]),O=l.useMemo(()=>n.slice().sort(K),[n,K]),q=Number(M)||10,F=l.useMemo(()=>(i??[]).flatMap(I=>I.items.slice().sort(K).map(Z=>({item:Z,label:I.label}))),[i,K]),se=i?F.length:O.length,Q=Math.max(1,Math.ceil(se/q)),re=Math.min(ae,Q),me=l.useMemo(()=>O.slice((re-1)*q,re*q),[O,re,q]),ce=l.useMemo(()=>{if(!i)return null;const I=F.slice((re-1)*q,re*q),Z=new Map;for(const{item:te,label:fe}of I)Z.has(fe)||Z.set(fe,[]),Z.get(fe).push(te);return[...Z.entries()].map(([te,fe])=>({label:te,items:fe}))},[i,F,re,q]);l.useEffect(()=>{X(1)},[T,M,se]);const $=se>0?o.jsxs("div",{className:"word-search-result-block__toolbar",children:[o.jsx(Ut,{size:40,options:R,value:L,onChange:j,ariaLabel:y("wordSearch.sort.aria",{defaultValue:"\uC815\uB82C"})}),o.jsx(Ut,{size:40,options:z,value:M,onChange:H,ariaLabel:y("wordSearch.pageSizeAria",{defaultValue:"\uD398\uC774\uC9C0 \uD06C\uAE30"})}),o.jsx(vr,{page:re,totalPages:Q,onChange:X})]}):void 0,ee=I=>{c&&c(I)},ue=t!==void 0&&a?o.jsxs(o.Fragment,{children:[y("wordSearch.resultTitlePrefix","\uCD1D "),o.jsx("span",{style:{color:"var(--color-main)"},children:t}),y("wordSearch.resultTitleSuffix",{unit:C?ji(a):a})]}):void 0,ke=t!==void 0&&t>0&&d!==void 0&&a?y("wordSearch.resultDisc",{unit:C?Mi(a):a,max:d,selected:s.length}):void 0,Ce=b??(v?o.jsxs(o.Fragment,{children:[o.jsx("span",{className:"word-search-result-block__notice",children:v}),ke?o.jsx("span",{className:"word-search-result-block__disc",children:ke}):null]}):ke);return o.jsxs(no,{type:f,icon:e,title:ue,action:$,disc:Ce,className:xe("word-search-result-block",p),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:y("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(I=>o.jsx("div",{className:"word-search-result-block__group",children:o.jsx("div",{className:"word-search-result-block__items",children:I.items.map(Z=>{const te=s.includes(Z.id);return o.jsx("div",{onMouseEnter:fe=>{k(fe.currentTarget),E(Z.words)},onMouseLeave:A,children:o.jsx(ie,{size:"word",align:"grid",label:Z.words.map(fe=>fe.label),subLabel:Z.words.map(fe=>fe.subLabel).filter(Boolean).length>0?Z.words.map(fe=>fe.subLabel):void 0,selected:te,onClick:()=>ee(Z.id),minWidth:200})},Z.id)})})},I.label)):o.jsx("div",{className:"word-search-result-block__items",children:me.map(I=>{const Z=s.includes(I.id);return o.jsx("div",{onMouseEnter:te=>{k(te.currentTarget),E(I.words)},onMouseLeave:A,children:o.jsx(ie,{size:"word",align:"grid",label:I.words.map(te=>te.label),subLabel:I.words.map(te=>te.subLabel).filter(Boolean).length>0?I.words.map(te=>te.subLabel):void 0,selected:Z,onClick:()=>ee(I.id),minWidth:200})},I.id)})}),S&&x&&o.jsx(Mc,{words:S,anchorRect:x})]}),Q>1&&o.jsx("div",{className:"word-search-result-block__pagination-bottom",children:o.jsx(vr,{page:re,totalPages:Q,onChange:X})}),(u||m)&&o.jsxs("div",{className:"word-search-result-block__actions",children:[u&&o.jsx(ie,{size:"56",type:"bar",label:y("common.resetSelection","\uC120\uD0DD \uCD08\uAE30\uD654"),selected:!1,disabled:s.length===0,onClick:s.length===0?void 0:u}),m&&o.jsx("div",{onClick:s.length===0?h:void 0,children:o.jsx(ie,{size:"56",type:"bar",variant:"main",label:y("wordTable.title","\uB2E8\uC5B4 \uD45C \uB9CC\uB4E4\uAE30"),disabled:s.length===0,onClick:s.length===0?void 0:m})})]})]})}var N7='.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(N7);function D7(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:d,placeholder:u="-",className:m,title:h,titleIcon:p,disc:g,showInfoButton:f=!1,onClearPhoneme:b,onSearch:v,onSearchEmpty:y,searchDisabled:_=!1,searchLabel:C,searchChecking:x=!1,pairMode:k=!1,sectionType:w="page",beforeSearchContent:S,beforeContent:E,afterContent:A,hideCountControl:B=!1,ordinal:W=!1}){const{t:P}=ge.useTranslation(),T=l.useMemo(()=>P("wordPairs.infoNotes",{returnObjects:!0}),[P]),j=l.useMemo(()=>Array.from({length:n-i+1},(O,q)=>{const F=i+q;return{key:String(F),label:P("wordPairs.count",{n:F})}}),[P,n,i]),M=l.useMemo(()=>P("wordPairs.ordinals",{returnObjects:!0}),[P]),H=l.useCallback(O=>W?P("wordPairs.phonemeOrdinalLabel",{ordinal:M[O-1]??O}):a===1?P("wordPairs.phonemeSingleLabel","\uC74C\uC808"):P("wordPairs.phonemeN",{n:O}),[W,M,a,P]),ae=l.useCallback(O=>W?P("wordPairs.phonemeContrastOrdinalLabel",{ordinal:M[O-1]??O}):a===1?P("wordPairs.phonemeContrastSingleLabel","\uB300\uB9BD \uC74C\uC808"):P("wordPairs.phonemeContrast",{n:O}),[W,M,a,P]),X=l.useCallback((O,q)=>q?o.jsxs(o.Fragment,{children:[O,o.jsx("span",{className:"phoneme-select-block__required",children:"*"})]}):O,[]),{anchorRect:oe,toggleAt:N,close:L}=ko(),R=l.useCallback(O=>r(Number(O)),[r]),z=oa("(max-width: 767px)"),G=l.useCallback(O=>D7(O,e).map(({label:q,value:F,displayLabel:se})=>{const Q=!!F&&F!=="\uC5C6\uC74C";return o.jsxs("span",{className:xe("phoneme-select-block__cell-jamo-part",F?"":"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${F==="\uC5C6\uC74C"?" phoneme-select-block__cell-jamo-char--excluded":""}`,children:F==="\uC5C6\uC74C"?"x":F||u}),Q&&o.jsx("span",{className:"phoneme-select-block__cell-jamo-label caption-2",children:se??q})]},q)}),[e,u]),K=o.jsxs(o.Fragment,{children:[o.jsx("div",{"data-tooltip-ignore":!0,children:o.jsx(ie,{size:40,type:z?"dot":void 0,icon:"info",label:z?void 0:P("wordPairs.caution","\uC720\uC758\uC0AC\uD56D"),selected:!!oe,onClick:O=>N(O.currentTarget)})}),oe&&o.jsx(to,{title:P("wordPairs.caution","\uC720\uC758\uC0AC\uD56D"),items:T,anchorRect:oe,onClose:L})]});return o.jsxs(no,{type:w,title:h,icon:p,disc:g,action:K,className:xe("phoneme-select-block",m),children:[E,(!B||f&&!(h||g))&&o.jsxs("div",{className:"phoneme-select-block__controls",children:[!B&&o.jsx(Ha,{options:j,value:String(a),onChange:R,size:40,className:"phoneme-select-block__count-control"}),f&&!(h||g)&&K]}),o.jsx("div",{className:"phoneme-select-block__cells",children:k?o.jsxs(o.Fragment,{children:[o.jsx("div",{className:"phoneme-select-block__cell-group",children:Array.from({length:a}).map((O,q)=>{const F=t[q*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:G(F)})}),o.jsx("span",{className:"phoneme-select-block__cell-index caption-1",children:H(q+1)})]},q)})}),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,q)=>{const F=t[q*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:G(F)})}),o.jsx("span",{className:"phoneme-select-block__cell-index caption-1",children:ae(q+1)})]},q)})})]}):t.map((O,q)=>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:G(O)})}),o.jsx("span",{className:"phoneme-select-block__cell-index caption-1",children:H(q+1)})]},q))}),(s||c)&&o.jsx("div",{className:"phoneme-select-block__panels",children:o.jsx("div",{className:"phoneme-select-block__detail",children:k?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,q)=>{const F=t[q*2]??{};return o.jsx(va,{title:X(H(q+1),q===0),sections:c?c(F,q*2):s,selected:F,onSelect:d?.(q*2),align:"newline"},q)})}),o.jsx("div",{className:"phoneme-select-block__panel-group",children:Array.from({length:a}).map((O,q)=>{const F=t[q*2+1]??{};return o.jsx(va,{title:ae(q+1),sections:c?c(F,q*2+1):s,selected:F,onSelect:d?.(q*2+1),align:"newline"},q)})})]}):t.map((O,q)=>o.jsx(va,{title:X(H(q+1),q===0),sections:c?c(O,q):s,selected:O,onSelect:d?.(q),align:"newline"},q))})}),S&&o.jsx("div",{className:"phoneme-select-block__before-search",children:S}),(b||v||x)&&(()=>{const O=t.every(q=>Object.entries(q).every(([F,se])=>!se||F==="\uC885\uC131"&&se==="\uC5C6\uC74C"));return o.jsxs("div",{className:"phoneme-select-block__search-row",onClick:O?y:void 0,children:[b&&o.jsx(ie,{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:C??P("wordSearch.searchButton","\uAC80\uC0C9\uD558\uAE30")})]}):v&&o.jsx(ie,{size:"56",type:"bar",variant:"main",label:C??P("wordSearch.searchButton","\uAC80\uC0C9\uD558\uAE30"),disabled:O||_,onClick:O||_?void 0:v})]})})(),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:d,className:u}){const{t:m}=ge.useTranslation(),h={searchMode:m("wordPairs.filter.searchModeLabel","\uB300\uB9BD \uBC29\uC2DD"),phonemeOrder:m("wordPairs.filter.phonemeOrder","\uC785\uB825 \uC74C\uC808 \uC704\uCE58"),count:m("wordPairs.filter.countLabel","\uC785\uB825 \uC74C\uC808 \uAC2F\uC218"),inputMode:m("wordPairs.filter.inputModeLabel","\uC785\uB825 \uBC29\uC2DD"),orderAny:m("wordPairs.filter.orderAny","\uBB34\uAD00"),orderMatch:m("wordPairs.filter.orderMatch","\uC77C\uCE58"),include:m("wordPairs.mode.include","\uC74C\uC18C \uD3EC\uD568"),pick:m("wordPairs.mode.pick","\uC74C\uC18C \uB300\uB9BD"),explicit:m("wordPairs.mode.contrast","\uC74C\uC18C \uB300\uB9BD \uC9C0\uC815"),charInput:m("wordPairs.input.char","\uAE00\uC790 \uC120\uD0DD"),pronInput:m("wordPairs.input.pron","\uBC1C\uC74C \uC120\uD0DD")},p=v=>m("wordPairs.count",{n:v}),g=[{label:h.searchMode,items:[h.include,h.pick,h.explicit],display:"segmented",labelAction:o.jsx(So,{title:m("wordPairs.mode.infoTitle","\uB300\uB9BD \uBC29\uC2DD"),items:[m("wordPairs.mode.infoInclude","\uC74C\uC18C \uD3EC\uD568 \u2014 \uC120\uD0DD\uD55C \uC74C\uC18C\uAC00 \uBAA8\uB450 \uB4E4\uC5B4\uAC04 \uB2E8\uC5B4\uC640 \uADF8 \uB300\uB9BD\uC30D\uC744 \uCC3E\uC544\uC694."),m("wordPairs.mode.infoPick","\uC74C\uC18C \uB300\uB9BD \u2014 \uC120\uD0DD\uD55C \uC74C\uC18C\uAC00 \uB300\uB9BD\uC30D \uB450 \uB2E8\uC5B4\uC758 \uC2E4\uC81C \uCC28\uC774\uC810\uC77C \uB54C\uB9CC \uB9E4\uCE6D\uB3FC\uC694."),m("wordPairs.mode.infoContrast","\uC74C\uC18C \uB300\uB9BD \uC9C0\uC815 \u2014 \uAE30\uC900 \uB2E8\uC5B4\uC640 \uB300\uB9BD \uB2E8\uC5B4\uC758 \uC74C\uC18C\uB97C \uAC01\uAC01 \uC9C1\uC811 \uC120\uD0DD\uD574 \uB300\uB9BD\uC30D\uC744 \uCC3E\uC544\uC694.")]})},{label:h.phonemeOrder,items:[h.orderAny,h.orderMatch],display:"segmented",labelAction:o.jsx(So,{items:m("wordPairs.filter.phonemeOrderInfo",{returnObjects:!0})})},{label:h.count,items:[p(1),p(2)],display:"segmented"},{label:h.inputMode,items:[h.charInput,h.pronInput],display:"segmented",labelAction:o.jsx(So,{title:m("wordPairs.input.infoTitle","\uC785\uB825 \uBC29\uC2DD"),items:[m("wordPairs.input.infoChar","\uAE00\uC790 \uC120\uD0DD \u2014 \uC120\uD0DD\uD55C \uC74C\uC18C\uB85C \uB2E8\uC5B4(\uAE00\uC790 \uAE30\uC900)\uB97C \uCC3E\uC740 \uD6C4, \uB2E8\uC5B4\uC758 \uD45C\uC900 \uBC1C\uC74C \uB300\uB9BD\uC30D\uC744 \uCC3E\uC2B5\uB2C8\uB2E4."),m("wordPairs.input.infoPron","\uBC1C\uC74C \uC120\uD0DD \u2014 \uC120\uD0DD\uD55C \uC74C\uC18C\uB85C \uD45C\uC900 \uBC1C\uC74C \uB300\uB9BD\uC30D\uC744 \uCC3E\uC2B5\uB2C8\uB2E4.")]})}],f={[h.searchMode]:t==="explicit"?h.explicit:t==="pick"?h.pick:h.include,[h.phonemeOrder]:r==="ordered"?h.orderMatch:h.orderAny,[h.count]:p(i),[h.inputMode]:c==="phoneme"?h.pronInput:h.charInput},b=(v,y)=>{y===h.searchMode?a(v===h.explicit?"explicit":v===h.pick?"pick":"include"):y===h.phonemeOrder?n(v===h.orderMatch?"ordered":"unordered"):y===h.count?s(v===p(2)?2:1):y===h.inputMode&&d(v===h.pronInput?"phoneme":"word")};return o.jsx(va,{className:u,title:e??m("wordPairs.filter.searchOptionsTitle","\uB300\uB9BD \uC124\uC815"),sections:g,selected:f,onSelect:b,align:"inline"})}var E7=".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(E7);function Zb(e){const{title:t,items:a,columns:r,gridTemplateColumns:n,searchPlaceholder:i,searchFn:s,defaultSortKey:c,defaultSortAsc:d=!0,selectedId:u,selectedIds:m,onSelect:h,onClose:p,pageSizeOptions:g=[10,25,50,100],initialPageSize:f,emptyText:b,countLabel:v,topContent:y,className:_=""}=e,{t:C}=ge.useTranslation(),x=i??C("common.search","\uAC80\uC0C9"),k=b??C("common.emptyList","\uD56D\uBAA9\uC774 \uC5C6\uC2B5\uB2C8\uB2E4."),[w,S]=l.useState(""),[E,A]=l.useState(c??r[0]?.key??""),[B,W]=l.useState(d),[P,T]=l.useState(String(f??g[0]??10)),[j,M]=l.useState(1);l.useEffect(()=>{M(1)},[w,P]);const H=s!==null,ae=l.useCallback((O,q)=>{if(!q)return!0;const F=q.toLowerCase();return r.some(se=>{const Q=O[se.key];return Q==null?!1:String(Q).toLowerCase().includes(F)})},[r]),X=s??ae,oe=l.useMemo(()=>{const O=H?a.filter(q=>X(q,w)):a;return E?[...O].sort((q,F)=>{const se=q[E]??"",Q=F[E]??"";return se===Q?0:B?se>Q?1:-1:se<Q?1:-1}):O},[a,w,E,B,H,X]),N=Math.max(1,Math.ceil(oe.length/Number(P))),L=oe.slice((j-1)*Number(P),j*Number(P)),R=l.useCallback(O=>{E===O?W(q=>!q):(A(O),W(!0))},[E]),z=l.useMemo(()=>{if(typeof v=="string"&&v.includes("{n}")){const[O,q]=v.split("{n}");return{prefix:O,suffix:q}}return{prefix:C("common.totalCountPrefix","\uCD1D "),suffix:C("common.totalCountSuffix","\uAC1C")}},[v,C]),G=l.useMemo(()=>r.map(O=>({label:O.label,onClick:O.sortable!==!1?()=>R(O.key):void 0,className:O.className,sortDir:O.sortable!==!1&&E===O.key?B?"asc":"desc":null})),[r,E,B,R]),K=l.useMemo(()=>g.map(O=>({value:String(O),label:C("common.pageSizeLabel",{n:O})})),[g,C]);return o.jsxs(Ta,{className:`popup-list ${_}`,title:t,onClose:p,children:[y,o.jsx(vn,{count:{value:oe.length,prefix:z.prefix,suffix:z.suffix},search:H?{value:w,onChange:S,placeholder:x}:void 0,pageSize:{options:K,value:P,onChange:T},pagination:{page:j,total:N,onChange:M}}),o.jsx(_n,{size:"medium",gridTemplateColumns:n,resizable:!0,fields:G,items:L,onRowClick:h,renderRow:O=>{const q=m!=null?O.id!=null&&m.has(O.id):u!=null&&O.id===u;return r.map(F=>({content:F.render?F.render(O):O[F.key]??"",className:q?"popup-list__row--selected":F.className}))},empty:k})]})}function Xb(e){const{title:t,message:a,topContent:r,details:n,children:i,confirmLabel:s,cancelLabel:c,hideCancel:d=!1,extraAction:u,confirmVariant:m="main",confirmDisabled:h=!1,onConfirm:p,closeOnConfirm:g=!0,onClose:f,inline:b,size:v="small",className:y}=e,{t:_}=ge.useTranslation(),C=l.useRef(!1),[x,k]=l.useState(!1);return o.jsxs(Ta,{title:t,onClose:f,closeDisabled:x,inline:b,size:v,className:xe("confirm-popup",y),buttons:[...u?[{label:u.label,variant:u.variant??"default",disabled:u.disabled||x,onClick:async({closeWithAnimation:w})=>{if(!C.current){C.current=!0,k(!0);try{await u.onClick(w),(u.closeOnClick??!0)&&w()}finally{C.current=!1,k(!1)}}}}]:[],...d?[]:[{label:c??_("common.cancel","\uCDE8\uC18C"),variant:"default",disabled:x,onClick:({closeWithAnimation:w})=>w()}],{label:s??_("common.confirm","\uD655\uC778"),variant:m,disabled:h||x,onClick:async({closeWithAnimation:w})=>{if(!C.current){C.current=!0,k(!0);try{await p(w),g&&w()}finally{C.current=!1,k(!1)}}}}],children:[r!=null&&o.jsx("div",{className:"confirm-popup__top",children:r}),n&&n.length>0&&o.jsx(kr,{children:n.map((w,S)=>o.jsx(Na,{label:w.label,children:o.jsx("span",{className:"panel-row__text body-2",children:w.value})},S))}),o.jsx("p",{className:"body-2 confirm-popup__message",children:a}),i]})}var j7=".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(j7);function Qb({onApply:e,onCancel:t}){const{t:a}=ge.useTranslation(),[r,n]=l.useState(""),[i,s]=l.useState(!1),[c,d]=l.useState(null),u=l.useRef(null);l.useEffect(()=>{u.current?.focus()},[]);const m=l.useCallback(async g=>{const f=r.trim();if(f){s(!0),d(null);try{await e(f),g()}catch(b){d(Yr(b)),s(!1)}}},[r,e]),h=l.useCallback((g,f)=>{g.key==="Enter"&&m(f)},[m]),p=g=>{n(g.target.value),d(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})=>{m(g)}}],children:({closeWithAnimation:g})=>o.jsxs(o.Fragment,{children:[o.jsx("input",{ref:u,className:"coupon-input-popup__input body-2","aria-label":a("coupons.input.label","\uCFE0\uD3F0 \uCF54\uB4DC"),placeholder:a("coupons.input.placeholder","\uCFE0\uD3F0 \uCF54\uB4DC \uC785\uB825"),value:r,onChange:p,onKeyDown:f=>h(f,g),disabled:i,autoComplete:"off",spellCheck:!1}),c&&o.jsx("p",{className:"coupon-input-popup__error caption-1",role:"alert",children:c})]})})}var L7=".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(L7);const Jb=200;function M7(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},d)=>[d>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((u,m)=>{const h=M7(u);return h?o.jsx(wn,{index:m,type:s,trainingData:h,size:"compact",hideCheckBadge:!0},u.itemId??m):null})})]},s.key)])})});return t?o.jsx(Sa,{anchorRect:t,offset:a,onClose:r,closeOnOutsideClick:!1,className:"tooltip-training",children:i}):i}var P7=".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(P7);const tg=["var(--color-main)","var(--color-sub)"];function Pc({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),v=t-b,y=(_,C)=>Array.from({length:_}).map((x,k)=>{const w=6+Math.random()*12,S=Math.round(Math.min(18,w*Math.min(1.5,1+r*.4))),E=tg[Math.floor(Math.random()*tg.length)],A=Math.random()*300,B=(360+Math.random()*260)*r*1.2,W=(C==="left"?-95+Math.random()*40:-85-Math.random()*40)*Math.PI/180,P=Math.cos(W)*B,T=Math.sin(W)*B*1.35,j=Math.random()*720-360,M=(1200+Math.random()*3e3)*Math.min(1.6,1+r*.3),H=Math.random()>.7?"50%":"3px";return{id:`${C}-${k}`,side:C,size:S,color:E,delay:A,vx:P,vy:T,angularVel:j,life:M,borderRadius:H}});return[...y(b,"left"),...y(v,"right")]},[t,r]),c=l.useRef(null),d=l.useRef({}),u=l.useRef(null),m=l.useRef(n);l.useEffect(()=>{m.current=n},[n]);const h=l.useRef(null),p=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"&&p.current==null&&(p.current=g()),l.useEffect(()=>{if(!e)return;if(typeof window<"u"&&window.matchMedia?.("(prefers-reduced-motion: reduce)").matches){m.current?.();return}const b=1200,v=performance.now(),y=p.current&&p.current!==document.body?p.current.getBoundingClientRect():null,_=Math.max(60,(window.innerHeight||800)*.05),C=N=>Math.max(40,(N||window.innerWidth)*.02),x=y?.width||window.innerWidth||375,k=y?.height||window.innerHeight||812,w=N=>{const L=[...N].sort((R,z)=>R-z);return L[Math.floor(L.length/2)]||1},S=w(s.map(N=>Math.abs(N.vy))),E=w(s.map(N=>Math.abs(N.vx))),A=Math.sqrt(2*b*(k*.72+_))/S,B=S*A/b,W=x*.5/(E*B),P=(N,L,R)=>Math.min(R,Math.max(L,N)),T=P(A,.8,2.4),j=P(W,.7,2.2),M=s.map(N=>({...N,vx:N.vx*j,vy:N.vy*T,startTime:v+N.delay,ended:!1})),H=y?{x:y.left-C(y.width),y:y.top+y.height+_}:{x:-C(window.innerWidth),y:window.innerHeight+_},ae=y?{x:y.left+y.width+C(y.width),y:y.top+y.height+_}:{x:window.innerWidth+C(window.innerWidth),y:window.innerHeight+_},X=N=>{let L=!1;for(const R of M){const z=d.current[R.id];if(!z||!z)continue;if(N<R.startTime){z.style.display="none";continue}if(!R._inited){const ce=R.side==="left"?H.x:ae.x,$=R.side==="left"?H.y:ae.y;z.style.left=`${ce}px`,z.style.top=`${$}px`,z.style.transform="translate3d(0px, 0px, 0)",z.style.display="block",z.style.zIndex="100000";try{if(typeof window<"u"&&typeof R.color=="string"&&R.color.startsWith("var(")){const ee=R.color.slice(4,-1).trim(),ue=getComputedStyle(document.documentElement).getPropertyValue(ee).trim();ue?z.style.background=ue:z.style.background="#FF0060"}}catch{}R._inited=!0}const G=(N-R.startTime)/1e3;if(G<0)continue;const K=R.life/1e3;if(G>=K){z.style.opacity="0",z.style.display="none",R.ended=!0;continue}L=!0;const O=R.side==="left"?H.x:ae.x,q=R.side==="left"?H.y:ae.y,F=O+R.vx*G,se=q+R.vy*G+.5*b*G*G,Q=(R.angularVel||0)*G,re=F-O,me=se-q;z.style.transform=`translate3d(${re}px, ${me}px, 0) rotate(${Q}deg)`,z.style.opacity=`${Math.max(0,1-G/K)}`}L?u.current=requestAnimationFrame(X):m.current?.()};u.current=requestAnimationFrame(X);const oe=setTimeout(()=>{try{if((p.current?p.current.querySelectorAll(".confetti"):document.querySelectorAll(".confetti")).length===0&&!document.querySelector(".party-container")){const N=document.createElement("div");N.className="party-container",N.style.position="fixed",N.style.inset="0",N.style.pointerEvents="none",N.style.overflow="visible",N.style.zIndex="2147483647";for(const L of s){const R=document.createElement("span");R.className=`confetti confetti--${L.side}`,R.setAttribute("aria-hidden","true"),R.style.display="none",R.style.position="fixed",R.style.left="0px",R.style.top="0px",R.style.width=`${L.size}px`,R.style.height=`${Math.max(4,L.size*.6)}px`;let z=L.color;try{if(typeof z=="string"&&z.startsWith("var(")){const G=z.slice(4,-1).trim(),K=getComputedStyle(document.documentElement).getPropertyValue(G).trim();K&&(z=K)}}catch{}R.style.background=z,R.style.borderRadius=L.borderRadius,R.style.transform="translate3d(0,0,0)",R.style.opacity="0",N.appendChild(R),d.current[L.id]=R}(document.body||p.current).appendChild(N),h.current=N}}catch{}},300);return()=>{if(u.current&&cancelAnimationFrame(u.current),clearTimeout(oe),h.current){try{h.current.remove()}catch{}h.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:v=>{d.current[b.id]=v},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,p.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(Pc,{active:t,trigger:e})}var R7=".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(R7);function og({title:e,sub:t,rightAction:a,titleAction:r,badge:n,badgeVariant:i="default",documentTitle:s,onBack:c,backLabel:d}){const{t:u}=ge.useTranslation();ol(typeof e=="string"?e:s??null);const m=d??u("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(ie,{className:"page-title__back",size:48,type:"dot",icon:"chevron-left",iconSize:"large",useBorder:!1,iconColor:"var(--color-text-primary)",ariaLabel:m,showTooltipInfo:m,onClick:c}),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:d,children:u}){return o.jsx(ng.Provider,{value:{words:e,loading:t,error:a,statusMessage:r,localVersion:n,remoteVersion:i,progress:s,clearAndRefetch:c,checkRemoteVersion:d},children:u})}var $7=".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($7);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 I7='.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(I7);const z7=(e,t)=>`${e} / ${t}`;function cg({blocks:e,sectionTitles:t,logo:a,footer:r,pageLabel:n=z7,pageWidth:i,pageHeight:s,margin:c,className:d,style:u}){const{t:m}=ge.useTranslation(),h=l.useRef(null),p=l.useRef(null),g=l.useRef(null),f=l.useRef(null),[b,v]=l.useState(null),[y,_]=l.useState(!1);l.useEffect(()=>{const B=h.current;if(!B)return;const W=()=>_(B.scrollWidth>B.clientWidth+1);if(W(),typeof ResizeObserver>"u")return;const P=new ResizeObserver(W);return P.observe(B),()=>P.disconnect()},[b]);const C=e.map(B=>`${B.id}\0${B.section??""}\0${B.group??""}`).join("");l.useLayoutEffect(()=>{const B=p.current,W=f.current;if(!B||!W)return;const P=g.current?.offsetHeight??0,T=W.offsetHeight-P,j=Array.from(B.children).map(N=>N.offsetHeight),M=[];e.forEach((N,L)=>{const R=M[M.length-1],z=R?e[R[0]]:void 0;z&&N.group!=null&&z.group===N.group?R.push(L):M.push([L])});const H=[];let ae=[],X=0;const oe=()=>{ae.length&&H.push(ae),ae=[],X=0};M.forEach(N=>{const L=N.reduce((R,z)=>R+j[z],0);ae.length&&e[ae[0]].section!==e[N[0]].section&&oe(),ae.length&&X+L>T&&oe(),L>T?N.forEach(R=>{ae.length&&X+j[R]>T&&oe(),ae.push(R),X+=j[R]}):(N.forEach(R=>ae.push(R)),X+=L)}),oe(),v(H)},[C]);const x=Pl,k=x,w=r??o.jsxs(o.Fragment,{children:[o.jsx("img",{src:k,alt:"IHAB",className:"report-doc__logo"}),"\xA9 IHAB, Inc. All rights reserved."]}),S=(B,W,P)=>({header:o.jsxs("div",{className:"report-doc__header",children:[o.jsx("h2",{className:"report-doc__title h3b",children:P!=null&&t?.[P]||null}),a]}),footer:o.jsxs("div",{className:"report-doc__footer caption-1",children:[o.jsx("span",{className:"report-doc__footer-left",children:w}),o.jsx("span",{className:"report-doc__page-no",children:n(B,W)})]})}),E=S(1,1,e[0]?.section),A={...i?{"--report-page-w":i}:null,...s?{"--report-page-h":s}:null,...c?{"--report-margin":c}:null,...u};return o.jsxs("div",{ref:h,className:xe("report-doc",d),style:A,tabIndex:y?0:void 0,role:y?"group":void 0,"aria-label":y?m("report.previewRegion","\uBCF4\uACE0\uC11C \uBBF8\uB9AC\uBCF4\uAE30"):void 0,children:[o.jsxs("div",{className:"report-doc__measure","aria-hidden":!0,children:[o.jsx("div",{ref:f,className:"report-doc__ruler"}),o.jsxs("div",{ref:g,children:[E.header,E.footer]}),o.jsx("div",{ref:p,className:"report-doc__measure-blocks",children:e.map(B=>o.jsx("div",{children:B.content},B.id))})]}),b&&o.jsx("div",{className:"report-doc__pages",children:b.map((B,W)=>{const{header:P,footer:T}=S(W+1,b.length,e[B[0]].section);return o.jsxs("section",{className:"report-doc__page",children:[P,B.map(j=>o.jsx("div",{children:e[j].content},e[j].id)),T]},W)})})]})}var O7=".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(O7);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 F7=".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(F7);function ug({title:e,message:t,actionLabel:a,onAction:r,icon:n,onClose:i,className:s=""}){const{t:c}=ge.useTranslation(),d=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(od,{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(ie,{size:32,variant:"main",shape:"pill",className:"update-alert__action",onClick:r,children:d})]})}var W7=".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(W7);function pg({title:e,description:t,topActions:a,children:r,footerLeft:n,footerRight:i,onClick:s,draggable:c,onDragStart:d,onDragEnd:u,className:m}){const h=n!=null||i!=null,p=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":"",m),onClick:s,onKeyDown:s?g:void 0,role:s?"button":void 0,tabIndex:s?0:void 0,draggable:c,onDragStart:d,onDragEnd:u,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:" "})]}),p&&o.jsx("div",{className:"training-card__body",children:r}),h&&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 H7=".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(H7);function hg({title:e,count:t,collapsed:a=!1,onToggle:r,sort:n,actions:i,empty:s=!1,emptyContent:c,dragOver:d=!1,onDragOver:u,onDragLeave:m,onDrop:h,children:p,className:g}){const{t:f}=ge.useTranslation(),b=xe("training-card-group",d&&"training-card-group--dragover",a&&"training-card-group--collapsed",g);return o.jsxs("div",{className:b,onDragOver:u,onDragLeave:m,onDrop:h,children:[o.jsxs("header",{className:"training-card-group__header",children:[o.jsx(ie,{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:v=>v.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:p}))]})}var V7=".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(V7);const G7="speechear:saved_word_tables";function q7(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 Y7(){try{const e=localStorage.getItem(G7);if(!e)return[];const t=JSON.parse(e);return Array.isArray(t)?t.filter(q7):[]}catch{return[]}}function mg({title:e,titleIcon:t,disc:a,items:r,onSaveComplete:n,onLoad:i,onRemoveItem:s,onReset:c,resetLabel:d,saveButtonLabel:u,secondarySaveButtonLabel:m,onReorder:h,showCellCount:p,onAddItem:g,className:f,renderSavePopup:b,renderWordSearch:v,hideControls:y,saveOnly:_,tableName:C,nameValue:x,onNameChange:k,descriptionValue:w,onDescriptionChange:S,namePlaceholder:E,descriptionPlaceholder:A,existingNames:B,editingName:W,onCancel:P}){const{t:T}=ge.useTranslation(),j=d??T("wordPrint.clearAllSelection","\uBAA8\uB450 \uC120\uD0DD \uD574\uC81C"),M=r===void 0,H=!!k,[ae,X]=l.useState([]),oe=(x??"").trim(),N=oe||(E??"").trim(),L=(w??"").trim()||(A??"").trim(),R=(B??[]).map(pe=>pe.trim().toLowerCase()),z=[W?.trim().toLowerCase(),...ae].filter(pe=>!!pe),G=[...R];for(const pe of z){const Te=G.indexOf(pe);Te!==-1&&G.splice(Te,1)}const K=oe!==""&&G.includes(oe.toLowerCase()),[O,q]=l.useState(Array(4).fill(null)),[F,se]=l.useState(4),[Q,re]=l.useState(null),[me,ce]=l.useState("landscape"),[$,ee]=l.useState(["\uC774\uBBF8\uC9C0","\uB2E8\uC5B4","\uD45C\uC900 \uBC1C\uC74C"]),[ue,ke]=l.useState("\uD45C\uC2DC"),[Ce,I]=l.useState(!0),[Z,te]=l.useState(!0),fe=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(()=>re(null),[re]),[Ue,Xe]=l.useState(()=>Math.max(r?.length??1,1));l.useEffect(()=>{M||Xe(pe=>Math.max(pe,r?.length??1))},[r?.length,M]);const ut=M?F:p?Math.max(Ue,r?.length??1):Math.max(r?.length??0,1),{width:Pe,height:rt}=io[me],et=!M&&!p,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=M?O.some(pe=>pe!==null&&pe.length>1):(r??[]).some(pe=>pe.words.length>1),Ht=C?.trim()||`${Zr(Ur())} ${it?T("wordTable.printFileNamePair","\uB300\uB9BD\uC30D\uD45C"):T("wordTable.printFileNameSingle","\uB2E8\uC5B4\uD45C")}`,mt=l.useCallback(()=>Et?De.current.filter(pe=>pe!==null):fe.current?[fe.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=pe=>{se(pe),q(Te=>{const at=Array(pe).fill(null);return Te.slice(0,pe).forEach((Ct,_t)=>{at[_t]=Ct}),at}),re(null)},sa=pe=>{q(Te=>{const at=[...Te];return at[pe]=null,at}),Q===pe&&re(null)},Kt=pe=>{if(Q===null)return;const Te=Q;q(Ct=>{const _t=[...Ct];return _t[Te]=pe,_t});const at=O.findIndex((Ct,_t)=>_t>Te&&Ct===null);re(at!==-1?at:null)},ja=M?O.some(pe=>pe?.some(Te=>!!Te.colloquialPronunciation)):(r??[]).some(pe=>pe.words.some(Te=>!!Te.colloquialLabel)),jt=l.useMemo(()=>Ma()?M?O.flatMap(pe=>(pe??[]).map(Te=>[Te.word,Te.homonum])):(r??[]).flatMap(pe=>pe.words.map(Te=>[Te.label,Te.homonum])):[],[M,O,r]),[Ga,$t]=l.useState(!1);l.useEffect(()=>{if(jt.length===0)return;let pe=!1;return Promise.all(jt.map(([Te,at])=>Yo(Te,at))).then(Te=>{pe||$t(Te.some(Boolean))}),()=>{pe=!0}},[jt]);const ya=jt.length>0&&Ga,qa=l.useMemo(()=>[...M||p?[{label:T("wordTable.filter.columns","\uCE78 \uC218"),items:xk.map(pe=>({value:`${pe}\uCE78`,displayLabel:T("wordTable.filter.column",{count:pe})})),display:"segmented"}]:[],...et&&(r?.length??0)>0?[Om(T,{hasPairs:it,itemCount:Oe})]:[],...Et?[Fm(T)]:[]],[T,M,p,et,r?.length,it,Oe,Et]),Je={...M||p?{[T("wordTable.filter.columns","\uCE78 \uC218")]:`${M?F: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=(pe,Te)=>{Te===T("wordTable.filter.columns","\uCE78 \uC218")?M?Ea(parseInt(pe)):Xe(parseInt(pe)):Te===T(it?"wordTable.filter.itemsPerPagePair":"wordTable.filter.itemsPerPageWord")?Re(parseInt(pe)):Te===T("wordTable.filter.pageNumber","\uD398\uC774\uC9C0 \uBC88\uD638")&&Ye(Hm(pe))},kt=M?O.filter(pe=>pe!==null).map(pe=>({id:pe[0].word,words:pe.map(Te=>({label:Te.word,subLabel:Te.pronunciation,homonum:Te.homonum}))})):r??[],xa=(pe=!1)=>{if(be(pe),H&&n){const Te=N.trim().toLowerCase();Te&&X(at=>at.includes(Te)?at:[...at,Te]),n(N,kt,L||void 0,pe);return}if(_&&n){n("",kt,void 0,pe);return}if(n){Ve(!0);return}Gt()},[la,ne]=l.useState(!1),[ve,ye]=l.useState(""),Y=ve.trim(),de=Y!==""&&R.includes(Y.toLowerCase()),_e=()=>{ye(N?`${N} (\uBCF5\uC0AC)`:""),ne(!0)},Se=()=>{!Y||de||!n||(n(Y,kt,L||void 0,!0),ne(!1))},Ae=kt.length===0,$e=Ae||H&&(N===""||K),nt=()=>{if(Ae){Le(T("wordTable.emptyItems","\uB2E8\uC5B4\uB97C 1\uAC1C \uC774\uC0C1 \uCD94\uAC00\uD574\uC8FC\uC138\uC694."));return}if(H&&N===""){Le(T("wordTable.save.nameRequired","\uD45C \uC774\uB984\uC744 \uC785\uB825\uD574 \uC8FC\uC138\uC694."));return}H&&K&&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:$,cutLine:ue,showOutline:Ce,showDivLine:Z,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:m??T("wordTable.saveAsNewButton","\uB2E4\uB978 \uC774\uB984\uC73C\uB85C \uC800\uC7A5"),onClose:()=>ne(!1),footer:({closeWithAnimation:pe})=>o.jsxs(o.Fragment,{children:[o.jsx(ie,{size:48,type:"bar",label:T("common.cancel","\uCDE8\uC18C"),onClick:pe}),o.jsx(ie,{size:48,type:"bar",variant:"main",label:T("common.save","\uC800\uC7A5"),disabled:!Y||de,onClick:Se})]}),children:o.jsx(Wa,{label:T("wordTable.save.nameLabel","\uC774\uB984"),value:ve,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:Y7().map(pe=>pe.name),saveAsNew:Fe,onSave:(pe,Te)=>{n(pe,kt,Te,Fe),Ve(!1)},onCancel:()=>Ve(!1)}),(M||g)&&Q!==null&&v?.({cellIndex:Q,onConfirm:M?Kt:pe=>{if(g){const Te=pe[0];Te&&g({id:Te.word,words:[{label:Te.word,subLabel:Te.pronunciation,homonum:Te.homonum}]})}re(null)},onClose:vt}),!y&&o.jsx(Bn,{hasImage:ya,hasColloquial:ja,contentTypes:$,orientation:me,showOutline:Ce,cutLine:ue,showDivLine:Z,setters:{setContentTypes:ee,setOrientation:ce,setShowOutline:I,setCutLine:ke,setShowDivLine:te},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((pe,Te)=>o.jsx(so,{orientation:me,contentTypes:$,cutLine:ue,showOutline:Ce,showDivLine:Z,count:tt,items:pe,onRemoveItem:s,contentRef:at=>{De.current[Te]=at},pageNumber:{current:Te+1,total:xt.length},pageNumberPosition:Me},Te))}):o.jsx(so,{orientation:me,contentTypes:$,cutLine:ue,showOutline:Ce,showDivLine:Z,count:ut,items:M?void 0:r??[],editCells:M?O:void 0,activeCell:Q,onActivateCell:M||g?re:void 0,onRemoveCell:M?sa:void 0,onRemoveItem:M?void 0:s,onReorder:M?void 0:h,showFillerAdd:!!g,contentRef:fe}),H&&!y&&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:k,placeholder:E?E+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:K?T("wordTable.save.duplicateName","\uC774\uBBF8 \uC0AC\uC6A9 \uC911\uC778 \uC774\uB984\uC785\uB2C8\uB2E4."):void 0,onKeyDown:pe=>{(pe.key==="Tab"&&!pe.shiftKey||pe.key===" ")&&!(x??"").trim()&&(E??"").trim()&&(pe.preventDefault(),k?.(E??""))}})}),o.jsx(Na,{variant:"custom",label:T("wordTable.save.descriptionLabel","\uC124\uBA85"),align:"vertical",useFullWidth:!0,children:o.jsx(Wa,{value:w??"",onChange:S,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:pe=>{(pe.key==="Tab"&&!pe.shiftKey||pe.key===" ")&&!(w??"").trim()&&(A??"").trim()&&(pe.preventDefault(),S?.(A??""))}})})]})]}),!y&&o.jsxs("div",{className:"word-table-block__actions",children:[o.jsxs("div",{className:"word-table-block__actions-left",children:[!_&&c&&o.jsx(ie,{size:40,type:"bar",label:j,onClick:c}),!_&&i&&o.jsx(ie,{size:40,type:"bar",label:T("wordTable.load","\uBD88\uB7EC\uC624\uAE30"),onClick:i}),!_&&o.jsx(ie,{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(ie,{size:"56",type:"bar",label:T("common.cancel","\uCDE8\uC18C"),onClick:P}),!_&&o.jsx(ie,{size:"56",type:"bar",label:T("wordTable.print","\uC778\uC1C4\uD558\uAE30"),onClick:Vt}),m&&o.jsx(ie,{size:"56",type:"bar",label:m,onClick:()=>H?_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(ie,{size:"56",type:"bar",variant:"main",label:u??T("wordTable.saveButton","\uC800\uC7A5\uD558\uAE30"),onClick:()=>xa(!1),disabled:$e,onDisabledClick:nt})]})]}),o.jsx(ro,{message:Ke,type:We,onClose:Ge})]})}var U7=".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(U7);function Rc({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 d=e[c];return d?o.jsx("div",{className:"word-table-thumb__cell",children:(d.words.length?d.words:[{label:d.id}]).map((u,m)=>o.jsxs(l.Fragment,{children:[m>0&&o.jsx("span",{className:"word-table-thumb__divider"}),o.jsx("span",{className:"word-table-thumb__word body-3",children:u.label})]},m))},c):o.jsx("div",{className:"word-table-thumb__cell word-table-thumb__cell--empty"},c)})})}var K7=".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(K7);function bg({items:e,name:t,description:a,createdAt:r,published:n,publishedLabel:i,shared:s,sharedLabel:c,isNew:d,publisherName:u,publishedAt:m,likeCount:h,downloadCount:p,onPublisherClick:g,selected:f,onClick:b,onMore:v,titleNode:y,className:_}){const{t:C}=ge.useTranslation(),x=y!=null,k=u!=null||m!=null||h!=null||p!=null,w=S=>{!x&&(S.key==="Enter"||S.key===" ")&&(S.preventDefault(),b?.())};return o.jsxs("div",{className:xe("word-table-button",f?"word-table-button--selected":"",k?"":"word-table-button--no-footer",_),role:"button",tabIndex:0,"aria-label":t,onClick:x?void 0:b,onKeyDown:w,children:[d&&o.jsx("span",{className:"word-table-button__new-dot","aria-label":C("myWordTable.newBadge","\uC0C8\uB85C \uB9CC\uB4E0 \uD45C")}),o.jsx(Rc,{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:[y??o.jsx("div",{className:"word-table-button__title h4",children:t}),a&&o.jsx("div",{className:"word-table-button__desc body-3",children:a})]}),v&&!x&&o.jsx(ie,{className:"word-table-button__more",size:32,type:"dot",variant:"transparent-gray",useBorder:!1,icon:"ellipsis",ariaLabel:C("common.moreFor",{name:t}),onClick:S=>{S.stopPropagation(),v(S)}})]}),(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,C):""}),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"})]})]}),k&&o.jsxs("div",{className:"word-table-button__footer",children:[o.jsxs("span",{className:"word-table-button__store-by",children:[u&&o.jsx("button",{className:"training-card__publisher body-4",type:"button",onClick:S=>{S.stopPropagation(),g?.()},children:u}),m&&o.jsx("span",{className:"training-card__date body-4",children:Kr(m,C)})]}),o.jsxs("span",{className:"word-table-button__store-stats",children:[h!=null&&o.jsx(ht,{size:"small",fill:"soft",variant:"like",iconLeft:"heart",label:String(h)}),p!=null&&o.jsx(ht,{size:"small",fill:"soft",variant:"main",iconLeft:"download",label:String(p)})]})]})]})}/**
984
984
  * @license lucide-react v1.38.0 - ISC
985
985
  *
986
986
  * This source code is licensed under the ISC license.