@ihabdevteam/core 0.130.0 → 0.131.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +23 -0
- package/dist/components.cjs.js +174 -174
- package/dist/components.esm.css +1 -1
- package/dist/hooks.cjs.js +1 -1
- package/dist/i18n.cjs.js +3 -3
- package/dist/ihabdevteam-core.cjs.js +180 -180
- package/dist/ihabdevteam-core.d.ts +15 -15
- package/dist/packages/core/src/components/BottomNav.css +15 -0
- package/dist/packages/core/src/components/BottomNav.d.ts +6 -0
- package/dist/packages/core/src/components/BottomNav.js +12 -1
- package/dist/packages/core/src/components/Header.js +3 -1
- package/dist/packages/core/src/components/PassCard/PassCardBg.css +33 -0
- package/dist/packages/core/src/i18n/locales/en.json +2 -1
- package/dist/packages/core/src/i18n/locales/ko.json +2 -1
- package/dist/packages/core/src/utils/CategoryData.d.ts +12 -40
- package/dist/packages/core/src/utils/CategoryData.js +13 -8
- package/dist/packages/core/src/version.d.ts +1 -1
- package/dist/packages/core/src/version.js +1 -1
- package/dist/utils.cjs.js +1 -1
- package/package.json +1 -1
package/dist/components.cjs.js
CHANGED
|
@@ -8,17 +8,17 @@
|
|
|
8
8
|
*
|
|
9
9
|
* This source code is licensed under the ISC license.
|
|
10
10
|
* See the LICENSE file in the root directory of this source tree.
|
|
11
|
-
*/const
|
|
11
|
+
*/const nc=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();/**
|
|
12
12
|
* @license lucide-react v1.38.0 - ISC
|
|
13
13
|
*
|
|
14
14
|
* This source code is licensed under the ISC license.
|
|
15
15
|
* See the LICENSE file in the root directory of this source tree.
|
|
16
|
-
*/const
|
|
16
|
+
*/const ac=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(n,a,r)=>r?r.toUpperCase():a.toLowerCase());/**
|
|
17
17
|
* @license lucide-react v1.38.0 - ISC
|
|
18
18
|
*
|
|
19
19
|
* This source code is licensed under the ISC license.
|
|
20
20
|
* See the LICENSE file in the root directory of this source tree.
|
|
21
|
-
*/const so=e=>{const n=
|
|
21
|
+
*/const so=e=>{const n=ac(e);return n.charAt(0).toUpperCase()+n.slice(1)};/**
|
|
22
22
|
* @license lucide-react v1.38.0 - ISC
|
|
23
23
|
*
|
|
24
24
|
* This source code is licensed under the ISC license.
|
|
@@ -28,784 +28,784 @@
|
|
|
28
28
|
*
|
|
29
29
|
* This source code is licensed under the ISC license.
|
|
30
30
|
* See the LICENSE file in the root directory of this source tree.
|
|
31
|
-
*/const
|
|
31
|
+
*/const rc=e=>{for(const n in e)if(n.startsWith("aria-")||n==="role"||n==="title")return!0;return!1},oc=i.createContext({}),sc=()=>i.useContext(oc),ic=i.forwardRef(({color:e,size:n,strokeWidth:a,absoluteStrokeWidth:r,className:o="",children:s,iconNode:l,...c},u)=>{const{size:d=24,strokeWidth:p=2,absoluteStrokeWidth:h=!1,color:m="currentColor",className:f=""}=sc()??{},C=r??h?Number(a??p)*24/Number(n??d):a??p;return i.createElement("svg",{ref:u,...Ma,width:n??d??Ma.width,height:n??d??Ma.height,stroke:e??m,strokeWidth:C,className:oo("lucide",f,o),...!s&&!rc(c)&&{"aria-hidden":"true"},...c},[...l.map(([b,g])=>i.createElement(b,g)),...Array.isArray(s)?s:[s]])});/**
|
|
32
32
|
* @license lucide-react v1.38.0 - ISC
|
|
33
33
|
*
|
|
34
34
|
* This source code is licensed under the ISC license.
|
|
35
35
|
* See the LICENSE file in the root directory of this source tree.
|
|
36
|
-
*/const
|
|
36
|
+
*/const K=(e,n)=>{const a=i.forwardRef(({className:r,...o},s)=>i.createElement(ic,{ref:s,iconNode:n,className:oo(`lucide-${nc(so(e))}`,`lucide-${e}`,r),...o}));return a.displayName=so(e),a};/**
|
|
37
37
|
* @license lucide-react v1.38.0 - ISC
|
|
38
38
|
*
|
|
39
39
|
* This source code is licensed under the ISC license.
|
|
40
40
|
* See the LICENSE file in the root directory of this source tree.
|
|
41
|
-
*/const
|
|
41
|
+
*/const lc=[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]],io=K("triangle-alert",lc);/**
|
|
42
42
|
* @license lucide-react v1.38.0 - ISC
|
|
43
43
|
*
|
|
44
44
|
* This source code is licensed under the ISC license.
|
|
45
45
|
* See the LICENSE file in the root directory of this source tree.
|
|
46
|
-
*/const
|
|
46
|
+
*/const cc=[["rect",{width:"9",height:"6",x:"6",y:"14",rx:"2",key:"lpm2y7"}],["rect",{width:"16",height:"6",x:"6",y:"4",rx:"2",key:"rdj6ps"}],["path",{d:"M2 2v20",key:"1ivd8o"}]],uc=K("align-start-vertical",cc);/**
|
|
47
47
|
* @license lucide-react v1.38.0 - ISC
|
|
48
48
|
*
|
|
49
49
|
* This source code is licensed under the ISC license.
|
|
50
50
|
* See the LICENSE file in the root directory of this source tree.
|
|
51
|
-
*/const
|
|
51
|
+
*/const dc=[["path",{d:"M12 5v14",key:"s699le"}],["path",{d:"m19 12-7 7-7-7",key:"1idqje"}]],pc=K("arrow-down",dc);/**
|
|
52
52
|
* @license lucide-react v1.38.0 - ISC
|
|
53
53
|
*
|
|
54
54
|
* This source code is licensed under the ISC license.
|
|
55
55
|
* See the LICENSE file in the root directory of this source tree.
|
|
56
|
-
*/const
|
|
56
|
+
*/const hc=[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]],mc=K("arrow-left",hc);/**
|
|
57
57
|
* @license lucide-react v1.38.0 - ISC
|
|
58
58
|
*
|
|
59
59
|
* This source code is licensed under the ISC license.
|
|
60
60
|
* See the LICENSE file in the root directory of this source tree.
|
|
61
|
-
*/const
|
|
61
|
+
*/const Cc=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]],fc=K("arrow-right",Cc);/**
|
|
62
62
|
* @license lucide-react v1.38.0 - ISC
|
|
63
63
|
*
|
|
64
64
|
* This source code is licensed under the ISC license.
|
|
65
65
|
* See the LICENSE file in the root directory of this source tree.
|
|
66
|
-
*/const
|
|
66
|
+
*/const gc=[["path",{d:"m16 3 4 4-4 4",key:"1x1c3m"}],["path",{d:"M20 7H4",key:"zbl0bi"}],["path",{d:"m8 21-4-4 4-4",key:"h9nckh"}],["path",{d:"M4 17h16",key:"g4d7ey"}]],bc=K("arrow-right-left",gc);/**
|
|
67
67
|
* @license lucide-react v1.38.0 - ISC
|
|
68
68
|
*
|
|
69
69
|
* This source code is licensed under the ISC license.
|
|
70
70
|
* See the LICENSE file in the root directory of this source tree.
|
|
71
|
-
*/const
|
|
71
|
+
*/const yc=[["path",{d:"M2 10v3",key:"1fnikh"}],["path",{d:"M6 6v11",key:"11sgs0"}],["path",{d:"M10 3v18",key:"yhl04a"}],["path",{d:"M14 8v7",key:"3a1oy3"}],["path",{d:"M18 5v13",key:"123xd1"}],["path",{d:"M22 10v3",key:"154ddg"}]],vc=K("audio-lines",yc);/**
|
|
72
72
|
* @license lucide-react v1.38.0 - ISC
|
|
73
73
|
*
|
|
74
74
|
* This source code is licensed under the ISC license.
|
|
75
75
|
* See the LICENSE file in the root directory of this source tree.
|
|
76
|
-
*/const
|
|
76
|
+
*/const xc=[["path",{d:"M10 16c.5.3 1.2.5 2 .5s1.5-.2 2-.5",key:"1u7htd"}],["path",{d:"M15 12h.01",key:"1k8ypt"}],["path",{d:"M19.38 6.813A9 9 0 0 1 20.8 10.2a2 2 0 0 1 0 3.6 9 9 0 0 1-17.6 0 2 2 0 0 1 0-3.6A9 9 0 0 1 12 3c2 0 3.5 1.1 3.5 2.5s-.9 2.5-2 2.5c-.8 0-1.5-.4-1.5-1",key:"11xh7x"}],["path",{d:"M9 12h.01",key:"157uk2"}]],_c=K("baby",xc);/**
|
|
77
77
|
* @license lucide-react v1.38.0 - ISC
|
|
78
78
|
*
|
|
79
79
|
* This source code is licensed under the ISC license.
|
|
80
80
|
* See the LICENSE file in the root directory of this source tree.
|
|
81
|
-
*/const
|
|
81
|
+
*/const wc=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M4.929 4.929 19.07 19.071",key:"196cmz"}]],kc=K("ban",wc);/**
|
|
82
82
|
* @license lucide-react v1.38.0 - ISC
|
|
83
83
|
*
|
|
84
84
|
* This source code is licensed under the ISC license.
|
|
85
85
|
* See the LICENSE file in the root directory of this source tree.
|
|
86
|
-
*/const
|
|
86
|
+
*/const Ac=[["path",{d:"M10.268 21a2 2 0 0 0 3.464 0",key:"vwvbt9"}],["path",{d:"M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326",key:"11g9vi"}]],Nc=K("bell",Ac);/**
|
|
87
87
|
* @license lucide-react v1.38.0 - ISC
|
|
88
88
|
*
|
|
89
89
|
* This source code is licensed under the ISC license.
|
|
90
90
|
* See the LICENSE file in the root directory of this source tree.
|
|
91
|
-
*/const
|
|
91
|
+
*/const Bc=[["path",{d:"M10 2v8l3-3 3 3V2",key:"sqw3rj"}],["path",{d:"M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H19a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1H6.5a1 1 0 0 1 0-5H20",key:"k3hazp"}]],Dc=K("book-marked",Bc);/**
|
|
92
92
|
* @license lucide-react v1.38.0 - ISC
|
|
93
93
|
*
|
|
94
94
|
* This source code is licensed under the ISC license.
|
|
95
95
|
* See the LICENSE file in the root directory of this source tree.
|
|
96
|
-
*/const Sc=[["path",{d:"M12 5v16",key:"1f6ucr"}],["path",{d:"M20.001 19A2 2 0 0022 17V5a2 2 0 00-1.999-2L16 3.002A5 5 0 0012 5a5 5 0 00-4-2H4a2 2 0 00-2 2v12a2 2 0 001.999 2H8a5 5 0 014 2 5 5 0 014-2z",key:"1fyvmf"}]],
|
|
96
|
+
*/const Sc=[["path",{d:"M12 5v16",key:"1f6ucr"}],["path",{d:"M20.001 19A2 2 0 0022 17V5a2 2 0 00-1.999-2L16 3.002A5 5 0 0012 5a5 5 0 00-4-2H4a2 2 0 00-2 2v12a2 2 0 001.999 2H8a5 5 0 014 2 5 5 0 014-2z",key:"1fyvmf"}]],jc=K("book-open",Sc);/**
|
|
97
97
|
* @license lucide-react v1.38.0 - ISC
|
|
98
98
|
*
|
|
99
99
|
* This source code is licensed under the ISC license.
|
|
100
100
|
* See the LICENSE file in the root directory of this source tree.
|
|
101
|
-
*/const
|
|
101
|
+
*/const Ec=[["path",{d:"M17 3h4v4",key:"19p9u1"}],["path",{d:"M18.575 11.082a13 13 0 0 1 1.048 9.027 1.17 1.17 0 0 1-1.914.597L14 17",key:"12t3w9"}],["path",{d:"M7 10 3.29 6.29a1.17 1.17 0 0 1 .6-1.91 13 13 0 0 1 9.03 1.05",key:"ogng5l"}],["path",{d:"M7 14a1.7 1.7 0 0 0-1.207.5l-2.646 2.646A.5.5 0 0 0 3.5 18H5a1 1 0 0 1 1 1v1.5a.5.5 0 0 0 .854.354L9.5 18.207A1.7 1.7 0 0 0 10 17v-2a1 1 0 0 0-1-1z",key:"8v3fy2"}],["path",{d:"M9.707 14.293 21 3",key:"ydm3bn"}]],Tc=K("bow-arrow",Ec);/**
|
|
102
102
|
* @license lucide-react v1.38.0 - ISC
|
|
103
103
|
*
|
|
104
104
|
* This source code is licensed under the ISC license.
|
|
105
105
|
* See the LICENSE file in the root directory of this source tree.
|
|
106
|
-
*/const
|
|
106
|
+
*/const Mc=[["path",{d:"M8 3H7a2 2 0 0 0-2 2v5a2 2 0 0 1-2 2 2 2 0 0 1 2 2v5c0 1.1.9 2 2 2h1",key:"ezmyqa"}],["path",{d:"M16 21h1a2 2 0 0 0 2-2v-5c0-1.1.9-2 2-2a2 2 0 0 1-2-2V5a2 2 0 0 0-2-2h-1",key:"e1hn23"}]],Lc=K("braces",Mc);/**
|
|
107
107
|
* @license lucide-react v1.38.0 - ISC
|
|
108
108
|
*
|
|
109
109
|
* This source code is licensed under the ISC license.
|
|
110
110
|
* See the LICENSE file in the root directory of this source tree.
|
|
111
|
-
*/const
|
|
111
|
+
*/const $c=[["path",{d:"M12 20v-9",key:"1qisl0"}],["path",{d:"M14 7a4 4 0 0 1 4 4v3a6 6 0 0 1-12 0v-3a4 4 0 0 1 4-4z",key:"uouzyp"}],["path",{d:"M14.12 3.88 16 2",key:"qol33r"}],["path",{d:"M21 21a4 4 0 0 0-3.81-4",key:"1b0z45"}],["path",{d:"M21 5a4 4 0 0 1-3.55 3.97",key:"5cxbf6"}],["path",{d:"M22 13h-4",key:"1jl80f"}],["path",{d:"M3 21a4 4 0 0 1 3.81-4",key:"1fjd4g"}],["path",{d:"M3 5a4 4 0 0 0 3.55 3.97",key:"1d7oge"}],["path",{d:"M6 13H2",key:"82j7cp"}],["path",{d:"m8 2 1.88 1.88",key:"fmnt4t"}],["path",{d:"M9 7.13V6a3 3 0 1 1 6 0v1.13",key:"1vgav8"}]],Rc=K("bug",$c);/**
|
|
112
112
|
* @license lucide-react v1.38.0 - ISC
|
|
113
113
|
*
|
|
114
114
|
* This source code is licensed under the ISC license.
|
|
115
115
|
* See the LICENSE file in the root directory of this source tree.
|
|
116
|
-
*/const
|
|
116
|
+
*/const Pc=[["path",{d:"M8 2v3",key:"1ioesn"}],["path",{d:"M16 2v3",key:"otl347"}],["rect",{x:"3",y:"3",width:"18",height:"18",rx:"2",key:"h1oib"}],["path",{d:"M3 9h18",key:"1pudct"}],["path",{d:"m9 15 2 2 4-4",key:"1grp1n"}]],Ic=K("calendar-check",Pc);/**
|
|
117
117
|
* @license lucide-react v1.38.0 - ISC
|
|
118
118
|
*
|
|
119
119
|
* This source code is licensed under the ISC license.
|
|
120
120
|
* See the LICENSE file in the root directory of this source tree.
|
|
121
|
-
*/const
|
|
121
|
+
*/const Fc=[["path",{d:"M8 2v3",key:"1ioesn"}],["path",{d:"M16 2v3",key:"otl347"}],["rect",{x:"3",y:"3",width:"18",height:"18",rx:"2",key:"h1oib"}],["path",{d:"M3 9h18",key:"1pudct"}],["path",{d:"M8 13h.01",key:"1sbv64"}],["path",{d:"M12 13h.01",key:"y0uutt"}],["path",{d:"M16 13h.01",key:"wip0gl"}],["path",{d:"M8 17h.01",key:"p3bg7i"}],["path",{d:"M12 17h.01",key:"p32p05"}],["path",{d:"M16 17h.01",key:"ql8jdd"}]],Oc=K("calendar-days",Fc);/**
|
|
122
122
|
* @license lucide-react v1.38.0 - ISC
|
|
123
123
|
*
|
|
124
124
|
* This source code is licensed under the ISC license.
|
|
125
125
|
* See the LICENSE file in the root directory of this source tree.
|
|
126
|
-
*/const
|
|
126
|
+
*/const Hc=[["path",{d:"M13.997 4a2 2 0 0 1 1.76 1.05l.486.9A2 2 0 0 0 18.003 7H20a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V9a2 2 0 0 1 2-2h1.997a2 2 0 0 0 1.759-1.048l.489-.904A2 2 0 0 1 10.004 4z",key:"18u6gg"}],["circle",{cx:"12",cy:"13",r:"3",key:"1vg3eu"}]],Vc=K("camera",Hc);/**
|
|
127
127
|
* @license lucide-react v1.38.0 - ISC
|
|
128
128
|
*
|
|
129
129
|
* This source code is licensed under the ISC license.
|
|
130
130
|
* See the LICENSE file in the root directory of this source tree.
|
|
131
|
-
*/const
|
|
131
|
+
*/const zc=[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"M18 17V9",key:"2bz60n"}],["path",{d:"M13 17V5",key:"1frdt8"}],["path",{d:"M8 17v-3",key:"17ska0"}]],Wc=K("chart-column",zc);/**
|
|
132
132
|
* @license lucide-react v1.38.0 - ISC
|
|
133
133
|
*
|
|
134
134
|
* This source code is licensed under the ISC license.
|
|
135
135
|
* See the LICENSE file in the root directory of this source tree.
|
|
136
|
-
*/const
|
|
136
|
+
*/const qc=[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"m19 9-5 5-4-4-3 3",key:"2osh9i"}]],Uc=K("chart-line",qc);/**
|
|
137
137
|
* @license lucide-react v1.38.0 - ISC
|
|
138
138
|
*
|
|
139
139
|
* This source code is licensed under the ISC license.
|
|
140
140
|
* See the LICENSE file in the root directory of this source tree.
|
|
141
|
-
*/const
|
|
141
|
+
*/const Gc=[["path",{d:"M21 12c.552 0 1.005-.449.95-.998a10 10 0 0 0-8.953-8.951c-.55-.055-.998.398-.998.95v8a1 1 0 0 0 1 1z",key:"pzmjnu"}],["path",{d:"M21.21 15.89A10 10 0 1 1 8 2.83",key:"k2fpak"}]],Kc=K("chart-pie",Gc);/**
|
|
142
142
|
* @license lucide-react v1.38.0 - ISC
|
|
143
143
|
*
|
|
144
144
|
* This source code is licensed under the ISC license.
|
|
145
145
|
* See the LICENSE file in the root directory of this source tree.
|
|
146
|
-
*/const
|
|
146
|
+
*/const Zc=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],lo=K("check",Zc);/**
|
|
147
147
|
* @license lucide-react v1.38.0 - ISC
|
|
148
148
|
*
|
|
149
149
|
* This source code is licensed under the ISC license.
|
|
150
150
|
* See the LICENSE file in the root directory of this source tree.
|
|
151
|
-
*/const
|
|
151
|
+
*/const Yc=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],co=K("chevron-left",Yc);/**
|
|
152
152
|
* @license lucide-react v1.38.0 - ISC
|
|
153
153
|
*
|
|
154
154
|
* This source code is licensed under the ISC license.
|
|
155
155
|
* See the LICENSE file in the root directory of this source tree.
|
|
156
|
-
*/const
|
|
156
|
+
*/const Xc=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],uo=K("chevron-right",Xc);/**
|
|
157
157
|
* @license lucide-react v1.38.0 - ISC
|
|
158
158
|
*
|
|
159
159
|
* This source code is licensed under the ISC license.
|
|
160
160
|
* See the LICENSE file in the root directory of this source tree.
|
|
161
|
-
*/const
|
|
161
|
+
*/const Jc=[["rect",{width:"8",height:"4",x:"8",y:"2",rx:"1",ry:"1",key:"tgr4d6"}],["path",{d:"M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2",key:"116196"}],["path",{d:"M12 11h4",key:"1jrz19"}],["path",{d:"M12 16h4",key:"n85exb"}],["path",{d:"M8 11h.01",key:"1dfujw"}],["path",{d:"M8 16h.01",key:"18s6g9"}]],Qc=K("clipboard-list",Jc);/**
|
|
162
162
|
* @license lucide-react v1.38.0 - ISC
|
|
163
163
|
*
|
|
164
164
|
* This source code is licensed under the ISC license.
|
|
165
165
|
* See the LICENSE file in the root directory of this source tree.
|
|
166
|
-
*/const
|
|
166
|
+
*/const eu=[["path",{d:"M14 3a1 1 0 0 1 1 1v5a1 1 0 0 1-1 1",key:"1l7d7l"}],["path",{d:"M19 3a1 1 0 0 1 1 1v5a1 1 0 0 1-1 1",key:"9955pe"}],["path",{d:"m7 15 3 3",key:"4hkfgk"}],["path",{d:"m7 21 3-3H5a2 2 0 0 1-2-2v-2",key:"1xljwe"}],["rect",{x:"14",y:"14",width:"7",height:"7",rx:"1",key:"1cdgtw"}],["rect",{x:"3",y:"3",width:"7",height:"7",rx:"1",key:"zi3rio"}]],tu=K("combine",eu);/**
|
|
167
167
|
* @license lucide-react v1.38.0 - ISC
|
|
168
168
|
*
|
|
169
169
|
* This source code is licensed under the ISC license.
|
|
170
170
|
* See the LICENSE file in the root directory of this source tree.
|
|
171
|
-
*/const
|
|
171
|
+
*/const nu=[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]],au=K("copy",nu);/**
|
|
172
172
|
* @license lucide-react v1.38.0 - ISC
|
|
173
173
|
*
|
|
174
174
|
* This source code is licensed under the ISC license.
|
|
175
175
|
* See the LICENSE file in the root directory of this source tree.
|
|
176
|
-
*/const
|
|
176
|
+
*/const ru=[["path",{d:"M12 12h.01",key:"1mp3jc"}],["path",{d:"M16 12h.01",key:"1l6xoz"}],["path",{d:"m17 7 5 5-5 5",key:"1xlxn0"}],["path",{d:"m7 7-5 5 5 5",key:"19njba"}],["path",{d:"M8 12h.01",key:"czm47f"}]],ou=K("chevrons-left-right-ellipsis",ru);/**
|
|
177
177
|
* @license lucide-react v1.38.0 - ISC
|
|
178
178
|
*
|
|
179
179
|
* This source code is licensed under the ISC license.
|
|
180
180
|
* See the LICENSE file in the root directory of this source tree.
|
|
181
|
-
*/const
|
|
181
|
+
*/const su=[["rect",{width:"20",height:"14",x:"2",y:"5",rx:"2",key:"ynyp8z"}],["line",{x1:"2",x2:"22",y1:"10",y2:"10",key:"1b3vmo"}]],iu=K("credit-card",su);/**
|
|
182
182
|
* @license lucide-react v1.38.0 - ISC
|
|
183
183
|
*
|
|
184
184
|
* This source code is licensed under the ISC license.
|
|
185
185
|
* See the LICENSE file in the root directory of this source tree.
|
|
186
|
-
*/const
|
|
186
|
+
*/const lu=[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]],po=K("database",lu);/**
|
|
187
187
|
* @license lucide-react v1.38.0 - ISC
|
|
188
188
|
*
|
|
189
189
|
* This source code is licensed under the ISC license.
|
|
190
190
|
* See the LICENSE file in the root directory of this source tree.
|
|
191
|
-
*/const
|
|
191
|
+
*/const cu=[["path",{d:"M12 3v14",key:"7cf3v8"}],["path",{d:"M5 10h14",key:"elsbfy"}],["path",{d:"M5 21h14",key:"11awu3"}]],uu=K("diff",cu);/**
|
|
192
192
|
* @license lucide-react v1.38.0 - ISC
|
|
193
193
|
*
|
|
194
194
|
* This source code is licensed under the ISC license.
|
|
195
195
|
* See the LICENSE file in the root directory of this source tree.
|
|
196
|
-
*/const
|
|
196
|
+
*/const du=[["path",{d:"M12 15V3",key:"m9g1x1"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["path",{d:"m7 10 5 5 5-5",key:"brsn70"}]],ho=K("download",du);/**
|
|
197
197
|
* @license lucide-react v1.38.0 - ISC
|
|
198
198
|
*
|
|
199
199
|
* This source code is licensed under the ISC license.
|
|
200
200
|
* See the LICENSE file in the root directory of this source tree.
|
|
201
|
-
*/const
|
|
201
|
+
*/const pu=[["path",{d:"M6 8.5a6.5 6.5 0 1 1 13 0c0 6-6 6-6 10a3.5 3.5 0 1 1-7 0",key:"1dfaln"}],["path",{d:"M15 8.5a2.5 2.5 0 0 0-5 0v1a2 2 0 1 1 0 4",key:"1qnva7"}]],hu=K("ear",pu);/**
|
|
202
202
|
* @license lucide-react v1.38.0 - ISC
|
|
203
203
|
*
|
|
204
204
|
* This source code is licensed under the ISC license.
|
|
205
205
|
* See the LICENSE file in the root directory of this source tree.
|
|
206
|
-
*/const
|
|
206
|
+
*/const mu=[["path",{d:"M12 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7",key:"1m0v6g"}],["path",{d:"M18.375 2.625a1 1 0 0 1 3 3l-9.013 9.014a2 2 0 0 1-.853.505l-2.873.84a.5.5 0 0 1-.62-.62l.84-2.873a2 2 0 0 1 .506-.852z",key:"ohrbg2"}]],Cu=K("square-pen",mu);/**
|
|
207
207
|
* @license lucide-react v1.38.0 - ISC
|
|
208
208
|
*
|
|
209
209
|
* This source code is licensed under the ISC license.
|
|
210
210
|
* See the LICENSE file in the root directory of this source tree.
|
|
211
|
-
*/const fu=[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}]],
|
|
211
|
+
*/const fu=[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}]],gu=K("pen",fu);/**
|
|
212
212
|
* @license lucide-react v1.38.0 - ISC
|
|
213
213
|
*
|
|
214
214
|
* This source code is licensed under the ISC license.
|
|
215
215
|
* See the LICENSE file in the root directory of this source tree.
|
|
216
|
-
*/const
|
|
216
|
+
*/const bu=[["path",{d:"M13 21h8",key:"1jsn5i"}],["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}]],yu=K("pen-line",bu);/**
|
|
217
217
|
* @license lucide-react v1.38.0 - ISC
|
|
218
218
|
*
|
|
219
219
|
* This source code is licensed under the ISC license.
|
|
220
220
|
* See the LICENSE file in the root directory of this source tree.
|
|
221
|
-
*/const
|
|
221
|
+
*/const vu=[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"19",cy:"12",r:"1",key:"1wjl8i"}],["circle",{cx:"5",cy:"12",r:"1",key:"1pcz8c"}]],mo=K("ellipsis",vu);/**
|
|
222
222
|
* @license lucide-react v1.38.0 - ISC
|
|
223
223
|
*
|
|
224
224
|
* This source code is licensed under the ISC license.
|
|
225
225
|
* See the LICENSE file in the root directory of this source tree.
|
|
226
|
-
*/const
|
|
226
|
+
*/const xu=[["path",{d:"M21 21H8a2 2 0 0 1-1.42-.587l-3.994-3.999a2 2 0 0 1 0-2.828l10-10a2 2 0 0 1 2.829 0l5.999 6a2 2 0 0 1 0 2.828L12.834 21",key:"g5wo59"}],["path",{d:"m5.082 11.09 8.828 8.828",key:"1wx5vj"}]],_u=K("eraser",xu);/**
|
|
227
227
|
* @license lucide-react v1.38.0 - ISC
|
|
228
228
|
*
|
|
229
229
|
* This source code is licensed under the ISC license.
|
|
230
230
|
* See the LICENSE file in the root directory of this source tree.
|
|
231
|
-
*/const
|
|
231
|
+
*/const wu=[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]],ku=K("external-link",wu);/**
|
|
232
232
|
* @license lucide-react v1.38.0 - ISC
|
|
233
233
|
*
|
|
234
234
|
* This source code is licensed under the ISC license.
|
|
235
235
|
* See the LICENSE file in the root directory of this source tree.
|
|
236
|
-
*/const
|
|
236
|
+
*/const Au=[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],Nu=K("eye",Au);/**
|
|
237
237
|
* @license lucide-react v1.38.0 - ISC
|
|
238
238
|
*
|
|
239
239
|
* This source code is licensed under the ISC license.
|
|
240
240
|
* See the LICENSE file in the root directory of this source tree.
|
|
241
|
-
*/const
|
|
241
|
+
*/const Bu=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]],Du=K("file-text",Bu);/**
|
|
242
242
|
* @license lucide-react v1.38.0 - ISC
|
|
243
243
|
*
|
|
244
244
|
* This source code is licensed under the ISC license.
|
|
245
245
|
* See the LICENSE file in the root directory of this source tree.
|
|
246
|
-
*/const Su=[["path",{d:"M8 3H5a2 2 0 0 0-2 2v14c0 1.1.9 2 2 2h3",key:"1i73f7"}],["path",{d:"M16 3h3a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-3",key:"saxlbk"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"M12 14v2",key:"8jcxud"}],["path",{d:"M12 8v2",key:"1woqiv"}],["path",{d:"M12 2v2",key:"tus03m"}]],
|
|
246
|
+
*/const Su=[["path",{d:"M8 3H5a2 2 0 0 0-2 2v14c0 1.1.9 2 2 2h3",key:"1i73f7"}],["path",{d:"M16 3h3a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-3",key:"saxlbk"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"M12 14v2",key:"8jcxud"}],["path",{d:"M12 8v2",key:"1woqiv"}],["path",{d:"M12 2v2",key:"tus03m"}]],ju=K("square-centerline-dashed-horizontal",Su);/**
|
|
247
247
|
* @license lucide-react v1.38.0 - ISC
|
|
248
248
|
*
|
|
249
249
|
* This source code is licensed under the ISC license.
|
|
250
250
|
* See the LICENSE file in the root directory of this source tree.
|
|
251
|
-
*/const
|
|
251
|
+
*/const Eu=[["path",{d:"m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2",key:"usdka0"}]],Tu=K("folder-open",Eu);/**
|
|
252
252
|
* @license lucide-react v1.38.0 - ISC
|
|
253
253
|
*
|
|
254
254
|
* This source code is licensed under the ISC license.
|
|
255
255
|
* See the LICENSE file in the root directory of this source tree.
|
|
256
|
-
*/const
|
|
256
|
+
*/const Mu=[["path",{d:"M12 10v6",key:"1bos4e"}],["path",{d:"M9 13h6",key:"1uhe8q"}],["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}]],Lu=K("folder-plus",Mu);/**
|
|
257
257
|
* @license lucide-react v1.38.0 - ISC
|
|
258
258
|
*
|
|
259
259
|
* This source code is licensed under the ISC license.
|
|
260
260
|
* See the LICENSE file in the root directory of this source tree.
|
|
261
|
-
*/const
|
|
261
|
+
*/const $u=[["line",{x1:"6",x2:"10",y1:"12",y2:"12",key:"161bw2"}],["line",{x1:"8",x2:"8",y1:"10",y2:"14",key:"1i6ji0"}],["line",{x1:"15",x2:"15.01",y1:"13",y2:"13",key:"dqpgro"}],["line",{x1:"18",x2:"18.01",y1:"11",y2:"11",key:"meh2c"}],["rect",{width:"20",height:"12",x:"2",y:"6",rx:"2",key:"9lu3g6"}]],Ru=K("gamepad",$u);/**
|
|
262
262
|
* @license lucide-react v1.38.0 - ISC
|
|
263
263
|
*
|
|
264
264
|
* This source code is licensed under the ISC license.
|
|
265
265
|
* See the LICENSE file in the root directory of this source tree.
|
|
266
|
-
*/const
|
|
266
|
+
*/const Pu=[["path",{d:"m14 13-8.381 8.38a1 1 0 0 1-3.001-3l8.384-8.381",key:"pgg06f"}],["path",{d:"m16 16 6-6",key:"vzrcl6"}],["path",{d:"m21.5 10.5-8-8",key:"a17d9x"}],["path",{d:"m8 8 6-6",key:"18bi4p"}],["path",{d:"m8.5 7.5 8 8",key:"1oyaui"}]],Iu=K("gavel",Pu);/**
|
|
267
267
|
* @license lucide-react v1.38.0 - ISC
|
|
268
268
|
*
|
|
269
269
|
* This source code is licensed under the ISC license.
|
|
270
270
|
* See the LICENSE file in the root directory of this source tree.
|
|
271
|
-
*/const
|
|
271
|
+
*/const Fu=[["circle",{cx:"18",cy:"18",r:"3",key:"1xkwt0"}],["circle",{cx:"6",cy:"6",r:"3",key:"1lh9wr"}],["path",{d:"M6 21V9a9 9 0 0 0 9 9",key:"7kw0sc"}]],Co=K("git-merge",Fu);/**
|
|
272
272
|
* @license lucide-react v1.38.0 - ISC
|
|
273
273
|
*
|
|
274
274
|
* This source code is licensed under the ISC license.
|
|
275
275
|
* See the LICENSE file in the root directory of this source tree.
|
|
276
|
-
*/const
|
|
276
|
+
*/const Ou=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]],Hu=K("globe",Ou);/**
|
|
277
277
|
* @license lucide-react v1.38.0 - ISC
|
|
278
278
|
*
|
|
279
279
|
* This source code is licensed under the ISC license.
|
|
280
280
|
* See the LICENSE file in the root directory of this source tree.
|
|
281
|
-
*/const
|
|
281
|
+
*/const Vu=[["path",{d:"M3 14h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-7a9 9 0 0 1 18 0v7a2 2 0 0 1-2 2h-1a2 2 0 0 1-2-2v-3a2 2 0 0 1 2-2h3",key:"1xhozi"}]],zu=K("headphones",Vu);/**
|
|
282
282
|
* @license lucide-react v1.38.0 - ISC
|
|
283
283
|
*
|
|
284
284
|
* This source code is licensed under the ISC license.
|
|
285
285
|
* See the LICENSE file in the root directory of this source tree.
|
|
286
|
-
*/const
|
|
286
|
+
*/const Wu=[["path",{d:"M2 9.5a5.5 5.5 0 0 1 9.591-3.676.56.56 0 0 0 .818 0A5.49 5.49 0 0 1 22 9.5c0 2.29-1.5 4-3 5.5l-5.492 5.313a2 2 0 0 1-3 .019L5 15c-1.5-1.5-3-3.2-3-5.5",key:"mvr1a0"}]],qu=K("heart",Wu);/**
|
|
287
287
|
* @license lucide-react v1.38.0 - ISC
|
|
288
288
|
*
|
|
289
289
|
* This source code is licensed under the ISC license.
|
|
290
290
|
* See the LICENSE file in the root directory of this source tree.
|
|
291
|
-
*/const
|
|
291
|
+
*/const Uu=[["path",{d:"M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8",key:"5wwlr5"}],["path",{d:"M3 10a2 2 0 0 1 .709-1.528l7-6a2 2 0 0 1 2.582 0l7 6A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z",key:"r6nss1"}]],Gu=K("house",Uu);/**
|
|
292
292
|
* @license lucide-react v1.38.0 - ISC
|
|
293
293
|
*
|
|
294
294
|
* This source code is licensed under the ISC license.
|
|
295
295
|
* See the LICENSE file in the root directory of this source tree.
|
|
296
|
-
*/const
|
|
296
|
+
*/const Ku=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]],Zu=K("info",Ku);/**
|
|
297
297
|
* @license lucide-react v1.38.0 - ISC
|
|
298
298
|
*
|
|
299
299
|
* This source code is licensed under the ISC license.
|
|
300
300
|
* See the LICENSE file in the root directory of this source tree.
|
|
301
|
-
*/const
|
|
301
|
+
*/const Yu=[["path",{d:"M2.586 17.414A2 2 0 0 0 2 18.828V21a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h1a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h.172a2 2 0 0 0 1.414-.586l.814-.814a6.5 6.5 0 1 0-4-4z",key:"1s6t7t"}],["circle",{cx:"16.5",cy:"7.5",r:".5",fill:"currentColor",key:"w0ekpg"}]],Xu=K("key-round",Yu);/**
|
|
302
302
|
* @license lucide-react v1.38.0 - ISC
|
|
303
303
|
*
|
|
304
304
|
* This source code is licensed under the ISC license.
|
|
305
305
|
* See the LICENSE file in the root directory of this source tree.
|
|
306
|
-
*/const
|
|
306
|
+
*/const Ju=[["path",{d:"M10 18v-7",key:"wt116b"}],["path",{d:"M11.119 2.205a2 2 0 0 1 1.762 0l7.84 3.846A.5.5 0 0 1 20.5 7h-17a.5.5 0 0 1-.22-.949z",key:"yxxwt6"}],["path",{d:"M14 18v-7",key:"vav6t3"}],["path",{d:"M18 18v-7",key:"aexdmj"}],["path",{d:"M3 22h18",key:"8prr45"}],["path",{d:"M6 18v-7",key:"1ivflk"}]],Qu=K("landmark",Ju);/**
|
|
307
307
|
* @license lucide-react v1.38.0 - ISC
|
|
308
308
|
*
|
|
309
309
|
* This source code is licensed under the ISC license.
|
|
310
310
|
* See the LICENSE file in the root directory of this source tree.
|
|
311
|
-
*/const
|
|
311
|
+
*/const ed=[["path",{d:"M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z",key:"zw3jo"}],["path",{d:"M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12",key:"1wduqc"}],["path",{d:"M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17",key:"kqbvx6"}]],td=K("layers",ed);/**
|
|
312
312
|
* @license lucide-react v1.38.0 - ISC
|
|
313
313
|
*
|
|
314
314
|
* This source code is licensed under the ISC license.
|
|
315
315
|
* See the LICENSE file in the root directory of this source tree.
|
|
316
|
-
*/const
|
|
316
|
+
*/const nd=[["rect",{width:"7",height:"9",x:"3",y:"3",rx:"1",key:"10lvy0"}],["rect",{width:"7",height:"5",x:"14",y:"3",rx:"1",key:"16une8"}],["rect",{width:"7",height:"9",x:"14",y:"12",rx:"1",key:"1hutg5"}],["rect",{width:"7",height:"5",x:"3",y:"16",rx:"1",key:"ldoo1y"}]],ad=K("layout-dashboard",nd);/**
|
|
317
317
|
* @license lucide-react v1.38.0 - ISC
|
|
318
318
|
*
|
|
319
319
|
* This source code is licensed under the ISC license.
|
|
320
320
|
* See the LICENSE file in the root directory of this source tree.
|
|
321
|
-
*/const
|
|
321
|
+
*/const rd=[["path",{d:"M11 20A7 7 0 0 1 9.8 6.1C15.5 5 17 4.48 19 2c1 2 2 4.18 2 8 0 5.5-4.78 10-10 10Z",key:"nnexq3"}],["path",{d:"M2 21c0-3 1.85-5.36 5.08-6C9.5 14.52 12 13 13 12",key:"mt58a7"}]],od=K("leaf",rd);/**
|
|
322
322
|
* @license lucide-react v1.38.0 - ISC
|
|
323
323
|
*
|
|
324
324
|
* This source code is licensed under the ISC license.
|
|
325
325
|
* See the LICENSE file in the root directory of this source tree.
|
|
326
|
-
*/const
|
|
326
|
+
*/const sd=[["path",{d:"M15 14c.2-1 .7-1.7 1.5-2.5 1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5.7.7 1.3 1.5 1.5 2.5",key:"1gvzjb"}],["path",{d:"M9 18h6",key:"x1upvd"}],["path",{d:"M10 22h4",key:"ceow96"}]],id=K("lightbulb",sd);/**
|
|
327
327
|
* @license lucide-react v1.38.0 - ISC
|
|
328
328
|
*
|
|
329
329
|
* This source code is licensed under the ISC license.
|
|
330
330
|
* See the LICENSE file in the root directory of this source tree.
|
|
331
|
-
*/const
|
|
331
|
+
*/const ld=[["path",{d:"M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71",key:"1cjeqo"}],["path",{d:"M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71",key:"19qd67"}]],cd=K("link",ld);/**
|
|
332
332
|
* @license lucide-react v1.38.0 - ISC
|
|
333
333
|
*
|
|
334
334
|
* This source code is licensed under the ISC license.
|
|
335
335
|
* See the LICENSE file in the root directory of this source tree.
|
|
336
|
-
*/const
|
|
336
|
+
*/const ud=[["path",{d:"M9 17H7A5 5 0 0 1 7 7h2",key:"8i5ue5"}],["path",{d:"M15 7h2a5 5 0 1 1 0 10h-2",key:"1b9ql8"}],["line",{x1:"8",x2:"16",y1:"12",y2:"12",key:"1jonct"}]],dd=K("link-2",ud);/**
|
|
337
337
|
* @license lucide-react v1.38.0 - ISC
|
|
338
338
|
*
|
|
339
339
|
* This source code is licensed under the ISC license.
|
|
340
340
|
* See the LICENSE file in the root directory of this source tree.
|
|
341
|
-
*/const
|
|
341
|
+
*/const pd=[["path",{d:"M9 17H7A5 5 0 0 1 7 7",key:"10o201"}],["path",{d:"M15 7h2a5 5 0 0 1 4 8",key:"1d3206"}],["line",{x1:"8",x2:"12",y1:"12",y2:"12",key:"rvw6j4"}],["line",{x1:"2",x2:"22",y1:"2",y2:"22",key:"a6p6uj"}]],hd=K("link-2-off",pd);/**
|
|
342
342
|
* @license lucide-react v1.38.0 - ISC
|
|
343
343
|
*
|
|
344
344
|
* This source code is licensed under the ISC license.
|
|
345
345
|
* See the LICENSE file in the root directory of this source tree.
|
|
346
|
-
*/const
|
|
346
|
+
*/const md=[["path",{d:"M3 5h.01",key:"18ugdj"}],["path",{d:"M3 12h.01",key:"nlz23k"}],["path",{d:"M3 19h.01",key:"noohij"}],["path",{d:"M8 5h13",key:"1pao27"}],["path",{d:"M8 12h13",key:"1za7za"}],["path",{d:"M8 19h13",key:"m83p4d"}]],Cd=K("list",md);/**
|
|
347
347
|
* @license lucide-react v1.38.0 - ISC
|
|
348
348
|
*
|
|
349
349
|
* This source code is licensed under the ISC license.
|
|
350
350
|
* See the LICENSE file in the root directory of this source tree.
|
|
351
|
-
*/const fd=[["path",{d:"M13 5h8",key:"a7qcls"}],["path",{d:"M13 12h8",key:"h98zly"}],["path",{d:"M13 19h8",key:"c3s6r1"}],["path",{d:"m3 17 2 2 4-4",key:"1jhpwq"}],["path",{d:"m3 7 2 2 4-4",key:"1obspn"}]],
|
|
351
|
+
*/const fd=[["path",{d:"M13 5h8",key:"a7qcls"}],["path",{d:"M13 12h8",key:"h98zly"}],["path",{d:"M13 19h8",key:"c3s6r1"}],["path",{d:"m3 17 2 2 4-4",key:"1jhpwq"}],["path",{d:"m3 7 2 2 4-4",key:"1obspn"}]],gd=K("list-checks",fd);/**
|
|
352
352
|
* @license lucide-react v1.38.0 - ISC
|
|
353
353
|
*
|
|
354
354
|
* This source code is licensed under the ISC license.
|
|
355
355
|
* See the LICENSE file in the root directory of this source tree.
|
|
356
|
-
*/const
|
|
356
|
+
*/const bd=[["path",{d:"M11 5h10",key:"1cz7ny"}],["path",{d:"M11 12h10",key:"1438ji"}],["path",{d:"M11 19h10",key:"11t30w"}],["path",{d:"M4 4h1v5",key:"10yrso"}],["path",{d:"M4 9h2",key:"r1h2o0"}],["path",{d:"M6.5 20H3.4c0-1 2.6-1.925 2.6-3.5a1.5 1.5 0 0 0-2.6-1.02",key:"xtkcd5"}]],yd=K("list-ordered",bd);/**
|
|
357
357
|
* @license lucide-react v1.38.0 - ISC
|
|
358
358
|
*
|
|
359
359
|
* This source code is licensed under the ISC license.
|
|
360
360
|
* See the LICENSE file in the root directory of this source tree.
|
|
361
|
-
*/const
|
|
361
|
+
*/const vd=[["path",{d:"M12 2v4",key:"3427ic"}],["path",{d:"m16.2 7.8 2.9-2.9",key:"r700ao"}],["path",{d:"M18 12h4",key:"wj9ykh"}],["path",{d:"m16.2 16.2 2.9 2.9",key:"1bxg5t"}],["path",{d:"M12 18v4",key:"jadmvz"}],["path",{d:"m4.9 19.1 2.9-2.9",key:"bwix9q"}],["path",{d:"M2 12h4",key:"j09sii"}],["path",{d:"m4.9 4.9 2.9 2.9",key:"giyufr"}]],xd=K("loader",vd);/**
|
|
362
362
|
* @license lucide-react v1.38.0 - ISC
|
|
363
363
|
*
|
|
364
364
|
* This source code is licensed under the ISC license.
|
|
365
365
|
* See the LICENSE file in the root directory of this source tree.
|
|
366
|
-
*/const
|
|
366
|
+
*/const _d=[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]],wd=K("lock",_d);/**
|
|
367
367
|
* @license lucide-react v1.38.0 - ISC
|
|
368
368
|
*
|
|
369
369
|
* This source code is licensed under the ISC license.
|
|
370
370
|
* See the LICENSE file in the root directory of this source tree.
|
|
371
|
-
*/const
|
|
371
|
+
*/const kd=[["path",{d:"m16 17 5-5-5-5",key:"1bji2h"}],["path",{d:"M21 12H9",key:"dn1m92"}],["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}]],Ad=K("log-out",kd);/**
|
|
372
372
|
* @license lucide-react v1.38.0 - ISC
|
|
373
373
|
*
|
|
374
374
|
* This source code is licensed under the ISC license.
|
|
375
375
|
* See the LICENSE file in the root directory of this source tree.
|
|
376
|
-
*/const
|
|
376
|
+
*/const Nd=[["path",{d:"m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7",key:"132q7q"}],["rect",{x:"2",y:"4",width:"20",height:"16",rx:"2",key:"izxlao"}]],Bd=K("mail",Nd);/**
|
|
377
377
|
* @license lucide-react v1.38.0 - ISC
|
|
378
378
|
*
|
|
379
379
|
* This source code is licensed under the ISC license.
|
|
380
380
|
* See the LICENSE file in the root directory of this source tree.
|
|
381
|
-
*/const
|
|
381
|
+
*/const Dd=[["path",{d:"M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0",key:"1r0f0z"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}]],Sd=K("map-pin",Dd);/**
|
|
382
382
|
* @license lucide-react v1.38.0 - ISC
|
|
383
383
|
*
|
|
384
384
|
* This source code is licensed under the ISC license.
|
|
385
385
|
* See the LICENSE file in the root directory of this source tree.
|
|
386
|
-
*/const
|
|
386
|
+
*/const jd=[["path",{d:"M2.992 16.342a2 2 0 0 1 .094 1.167l-1.065 3.29a1 1 0 0 0 1.236 1.168l3.413-.998a2 2 0 0 1 1.099.092 10 10 0 1 0-4.777-4.719",key:"1sd12s"}]],Ed=K("message-circle",jd);/**
|
|
387
387
|
* @license lucide-react v1.38.0 - ISC
|
|
388
388
|
*
|
|
389
389
|
* This source code is licensed under the ISC license.
|
|
390
390
|
* See the LICENSE file in the root directory of this source tree.
|
|
391
|
-
*/const
|
|
391
|
+
*/const Td=[["path",{d:"M2.992 16.342a2 2 0 0 1 .094 1.167l-1.065 3.29a1 1 0 0 0 1.236 1.168l3.413-.998a2 2 0 0 1 1.099.092 10 10 0 1 0-4.777-4.719",key:"1sd12s"}],["path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3",key:"1u773s"}],["path",{d:"M12 17h.01",key:"p32p05"}]],Md=K("message-circle-question-mark",Td);/**
|
|
392
392
|
* @license lucide-react v1.38.0 - ISC
|
|
393
393
|
*
|
|
394
394
|
* This source code is licensed under the ISC license.
|
|
395
395
|
* See the LICENSE file in the root directory of this source tree.
|
|
396
|
-
*/const
|
|
396
|
+
*/const Ld=[["path",{d:"M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z",key:"18887p"}]],$d=K("message-square",Ld);/**
|
|
397
397
|
* @license lucide-react v1.38.0 - ISC
|
|
398
398
|
*
|
|
399
399
|
* This source code is licensed under the ISC license.
|
|
400
400
|
* See the LICENSE file in the root directory of this source tree.
|
|
401
|
-
*/const
|
|
401
|
+
*/const Rd=[["path",{d:"M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z",key:"18887p"}],["path",{d:"M7 11h10",key:"1twpyw"}],["path",{d:"M7 15h6",key:"d9of3u"}],["path",{d:"M7 7h8",key:"af5zfr"}]],Pd=K("message-square-text",Rd);/**
|
|
402
402
|
* @license lucide-react v1.38.0 - ISC
|
|
403
403
|
*
|
|
404
404
|
* This source code is licensed under the ISC license.
|
|
405
405
|
* See the LICENSE file in the root directory of this source tree.
|
|
406
|
-
*/const
|
|
406
|
+
*/const Id=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M8 12h8",key:"1wcyev"}]],Fd=K("circle-minus",Id);/**
|
|
407
407
|
* @license lucide-react v1.38.0 - ISC
|
|
408
408
|
*
|
|
409
409
|
* This source code is licensed under the ISC license.
|
|
410
410
|
* See the LICENSE file in the root directory of this source tree.
|
|
411
|
-
*/const
|
|
411
|
+
*/const Od=[["path",{d:"M11 21.73a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73z",key:"1a0edw"}],["path",{d:"M12 22V12",key:"d0xqtd"}],["polyline",{points:"3.29 7 12 12 20.71 7",key:"ousv84"}],["path",{d:"m7.5 4.27 9 5.15",key:"1c824w"}]],Hd=K("package",Od);/**
|
|
412
412
|
* @license lucide-react v1.38.0 - ISC
|
|
413
413
|
*
|
|
414
414
|
* This source code is licensed under the ISC license.
|
|
415
415
|
* See the LICENSE file in the root directory of this source tree.
|
|
416
|
-
*/const
|
|
416
|
+
*/const Vd=[["path",{d:"M12 22a1 1 0 0 1 0-20 10 9 0 0 1 10 9 5 5 0 0 1-5 5h-2.25a1.75 1.75 0 0 0-1.4 2.8l.3.4a1.75 1.75 0 0 1-1.4 2.8z",key:"e79jfc"}],["circle",{cx:"13.5",cy:"6.5",r:".5",fill:"currentColor",key:"1okk4w"}],["circle",{cx:"17.5",cy:"10.5",r:".5",fill:"currentColor",key:"f64h9f"}],["circle",{cx:"6.5",cy:"12.5",r:".5",fill:"currentColor",key:"qy21gx"}],["circle",{cx:"8.5",cy:"7.5",r:".5",fill:"currentColor",key:"fotxhn"}]],zd=K("palette",Vd);/**
|
|
417
417
|
* @license lucide-react v1.38.0 - ISC
|
|
418
418
|
*
|
|
419
419
|
* This source code is licensed under the ISC license.
|
|
420
420
|
* See the LICENSE file in the root directory of this source tree.
|
|
421
|
-
*/const
|
|
421
|
+
*/const Wd=[["path",{d:"M5.8 11.3 2 22l10.7-3.79",key:"gwxi1d"}],["path",{d:"M4 3h.01",key:"1vcuye"}],["path",{d:"M22 8h.01",key:"1mrtc2"}],["path",{d:"M15 2h.01",key:"1cjtqr"}],["path",{d:"M22 20h.01",key:"1mrys2"}],["path",{d:"m22 2-2.24.75a2.9 2.9 0 0 0-1.96 3.12c.1.86-.57 1.63-1.45 1.63h-.38c-.86 0-1.6.6-1.76 1.44L14 10",key:"hbicv8"}],["path",{d:"m22 13-.82-.33c-.86-.34-1.82.2-1.98 1.11c-.11.7-.72 1.22-1.43 1.22H17",key:"1i94pl"}],["path",{d:"m11 2 .33.82c.34.86-.2 1.82-1.11 1.98C9.52 4.9 9 5.52 9 6.23V7",key:"1cofks"}],["path",{d:"M11 13c1.93 1.93 2.83 4.17 2 5-.83.83-3.07-.07-5-2-1.93-1.93-2.83-4.17-2-5 .83-.83 3.07.07 5 2Z",key:"4kbmks"}]],qd=K("party-popper",Wd);/**
|
|
422
422
|
* @license lucide-react v1.38.0 - ISC
|
|
423
423
|
*
|
|
424
424
|
* This source code is licensed under the ISC license.
|
|
425
425
|
* See the LICENSE file in the root directory of this source tree.
|
|
426
|
-
*/const
|
|
426
|
+
*/const Ud=[["rect",{x:"14",y:"3",width:"5",height:"18",rx:"1",key:"kaeet6"}],["rect",{x:"5",y:"3",width:"5",height:"18",rx:"1",key:"1wsw3u"}]],Gd=K("pause",Ud);/**
|
|
427
427
|
* @license lucide-react v1.38.0 - ISC
|
|
428
428
|
*
|
|
429
429
|
* This source code is licensed under the ISC license.
|
|
430
430
|
* See the LICENSE file in the root directory of this source tree.
|
|
431
|
-
*/const
|
|
431
|
+
*/const Kd=[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}]],Zd=K("pencil",Kd);/**
|
|
432
432
|
* @license lucide-react v1.38.0 - ISC
|
|
433
433
|
*
|
|
434
434
|
* This source code is licensed under the ISC license.
|
|
435
435
|
* See the LICENSE file in the root directory of this source tree.
|
|
436
|
-
*/const
|
|
436
|
+
*/const Yd=[["path",{d:"M13.832 16.568a1 1 0 0 0 1.213-.303l.355-.465A2 2 0 0 1 17 15h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2A18 18 0 0 1 2 4a2 2 0 0 1 2-2h3a2 2 0 0 1 2 2v3a2 2 0 0 1-.8 1.6l-.468.351a1 1 0 0 0-.292 1.233 14 14 0 0 0 6.392 6.384",key:"9njp5v"}]],Xd=K("phone",Yd);/**
|
|
437
437
|
* @license lucide-react v1.38.0 - ISC
|
|
438
438
|
*
|
|
439
439
|
* This source code is licensed under the ISC license.
|
|
440
440
|
* See the LICENSE file in the root directory of this source tree.
|
|
441
|
-
*/const
|
|
441
|
+
*/const Jd=[["path",{d:"M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z",key:"10ikf1"}]],Qd=K("play",Jd);/**
|
|
442
442
|
* @license lucide-react v1.38.0 - ISC
|
|
443
443
|
*
|
|
444
444
|
* This source code is licensed under the ISC license.
|
|
445
445
|
* See the LICENSE file in the root directory of this source tree.
|
|
446
|
-
*/const
|
|
446
|
+
*/const e1=[["path",{d:"M9 9.003a1 1 0 0 1 1.517-.859l4.997 2.997a1 1 0 0 1 0 1.718l-4.997 2.997A1 1 0 0 1 9 14.996z",key:"kmsa83"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],t1=K("circle-play",e1);/**
|
|
447
447
|
* @license lucide-react v1.38.0 - ISC
|
|
448
448
|
*
|
|
449
449
|
* This source code is licensed under the ISC license.
|
|
450
450
|
* See the LICENSE file in the root directory of this source tree.
|
|
451
|
-
*/const
|
|
451
|
+
*/const n1=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],a1=K("plus",n1);/**
|
|
452
452
|
* @license lucide-react v1.38.0 - ISC
|
|
453
453
|
*
|
|
454
454
|
* This source code is licensed under the ISC license.
|
|
455
455
|
* See the LICENSE file in the root directory of this source tree.
|
|
456
|
-
*/const
|
|
456
|
+
*/const r1=[["path",{d:"M6 18H4a2 2 0 0 1-2-2v-5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v5a2 2 0 0 1-2 2h-2",key:"143wyd"}],["path",{d:"M6 9V3a1 1 0 0 1 1-1h10a1 1 0 0 1 1 1v6",key:"1itne7"}],["rect",{x:"6",y:"14",width:"12",height:"8",rx:"1",key:"1ue0tg"}]],o1=K("printer",r1);/**
|
|
457
457
|
* @license lucide-react v1.38.0 - ISC
|
|
458
458
|
*
|
|
459
459
|
* This source code is licensed under the ISC license.
|
|
460
460
|
* See the LICENSE file in the root directory of this source tree.
|
|
461
|
-
*/const
|
|
461
|
+
*/const s1=[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]],i1=K("refresh-cw",s1);/**
|
|
462
462
|
* @license lucide-react v1.38.0 - ISC
|
|
463
463
|
*
|
|
464
464
|
* This source code is licensed under the ISC license.
|
|
465
465
|
* See the LICENSE file in the root directory of this source tree.
|
|
466
|
-
*/const
|
|
466
|
+
*/const l1=[["path",{d:"m17 2 4 4-4 4",key:"nntrym"}],["path",{d:"M3 11v-1a4 4 0 0 1 4-4h14",key:"84bu3i"}],["path",{d:"m7 22-4-4 4-4",key:"1wqhfi"}],["path",{d:"M21 13v1a4 4 0 0 1-4 4H3",key:"1rx37r"}]],c1=K("repeat",l1);/**
|
|
467
467
|
* @license lucide-react v1.38.0 - ISC
|
|
468
468
|
*
|
|
469
469
|
* This source code is licensed under the ISC license.
|
|
470
470
|
* See the LICENSE file in the root directory of this source tree.
|
|
471
|
-
*/const
|
|
471
|
+
*/const u1=[["path",{d:"M14 4a1 1 0 0 1 1-1",key:"dhj8ez"}],["path",{d:"M15 10a1 1 0 0 1-1-1",key:"1mnyi5"}],["path",{d:"M21 4a1 1 0 0 0-1-1",key:"sfs9ap"}],["path",{d:"M21 9a1 1 0 0 1-1 1",key:"mp6qeo"}],["path",{d:"m3 7 3 3 3-3",key:"x25e72"}],["path",{d:"M6 10V5a2 2 0 0 1 2-2h2",key:"15xut4"}],["rect",{x:"3",y:"14",width:"7",height:"7",rx:"1",key:"1bkyp8"}]],d1=K("replace",u1);/**
|
|
472
472
|
* @license lucide-react v1.38.0 - ISC
|
|
473
473
|
*
|
|
474
474
|
* This source code is licensed under the ISC license.
|
|
475
475
|
* See the LICENSE file in the root directory of this source tree.
|
|
476
|
-
*/const
|
|
476
|
+
*/const p1=[["path",{d:"M12 15v5s3.03-.55 4-2c1.08-1.62 0-5 0-5",key:"qeys4"}],["path",{d:"M4.5 16.5c-1.5 1.26-2 5-2 5s3.74-.5 5-2c.71-.84.7-2.13-.09-2.91a2.18 2.18 0 0 0-2.91-.09",key:"u4xsad"}],["path",{d:"M9 12a22 22 0 0 1 2-3.95A12.88 12.88 0 0 1 22 2c0 2.72-.78 7.5-6 11a22.4 22.4 0 0 1-4 2z",key:"676m9"}],["path",{d:"M9 12H4s.55-3.03 2-4c1.62-1.08 5 .05 5 .05",key:"92ym6u"}]],h1=K("rocket",p1);/**
|
|
477
477
|
* @license lucide-react v1.38.0 - ISC
|
|
478
478
|
*
|
|
479
479
|
* This source code is licensed under the ISC license.
|
|
480
480
|
* See the LICENSE file in the root directory of this source tree.
|
|
481
|
-
*/const
|
|
481
|
+
*/const m1=[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]],C1=K("rotate-ccw",m1);/**
|
|
482
482
|
* @license lucide-react v1.38.0 - ISC
|
|
483
483
|
*
|
|
484
484
|
* This source code is licensed under the ISC license.
|
|
485
485
|
* See the LICENSE file in the root directory of this source tree.
|
|
486
|
-
*/const f1=[["path",{d:"M21 12a9 9 0 1 1-9-9c2.52 0 4.93 1 6.74 2.74L21 8",key:"1p45f6"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}]],
|
|
486
|
+
*/const f1=[["path",{d:"M21 12a9 9 0 1 1-9-9c2.52 0 4.93 1 6.74 2.74L21 8",key:"1p45f6"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}]],g1=K("rotate-cw",f1);/**
|
|
487
487
|
* @license lucide-react v1.38.0 - ISC
|
|
488
488
|
*
|
|
489
489
|
* This source code is licensed under the ISC license.
|
|
490
490
|
* See the LICENSE file in the root directory of this source tree.
|
|
491
|
-
*/const
|
|
491
|
+
*/const b1=[["path",{d:"M7 21h10",key:"1b0cd5"}],["path",{d:"M12 21a9 9 0 0 0 9-9H3a9 9 0 0 0 9 9Z",key:"4rw317"}],["path",{d:"M11.38 12a2.4 2.4 0 0 1-.4-4.77 2.4 2.4 0 0 1 3.2-2.77 2.4 2.4 0 0 1 3.47-.63 2.4 2.4 0 0 1 3.37 3.37 2.4 2.4 0 0 1-1.1 3.7 2.51 2.51 0 0 1 .03 1.1",key:"10xrj0"}],["path",{d:"m13 12 4-4",key:"1hckqy"}],["path",{d:"M10.9 7.25A3.99 3.99 0 0 0 4 10c0 .73.2 1.41.54 2",key:"1p4srx"}]],y1=K("salad",b1);/**
|
|
492
492
|
* @license lucide-react v1.38.0 - ISC
|
|
493
493
|
*
|
|
494
494
|
* This source code is licensed under the ISC license.
|
|
495
495
|
* See the LICENSE file in the root directory of this source tree.
|
|
496
|
-
*/const
|
|
496
|
+
*/const v1=[["path",{d:"M3 7V5a2 2 0 0 1 2-2h2",key:"aa7l1z"}],["path",{d:"M17 3h2a2 2 0 0 1 2 2v2",key:"4qcy5o"}],["path",{d:"M21 17v2a2 2 0 0 1-2 2h-2",key:"6vwrx8"}],["path",{d:"M7 21H5a2 2 0 0 1-2-2v-2",key:"ioqczr"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}],["path",{d:"m16 16-1.9-1.9",key:"1dq9hf"}]],x1=K("scan-search",v1);/**
|
|
497
497
|
* @license lucide-react v1.38.0 - ISC
|
|
498
498
|
*
|
|
499
499
|
* This source code is licensed under the ISC license.
|
|
500
500
|
* See the LICENSE file in the root directory of this source tree.
|
|
501
|
-
*/const
|
|
501
|
+
*/const _1=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]],fo=K("circle-alert",_1);/**
|
|
502
502
|
* @license lucide-react v1.38.0 - ISC
|
|
503
503
|
*
|
|
504
504
|
* This source code is licensed under the ISC license.
|
|
505
505
|
* See the LICENSE file in the root directory of this source tree.
|
|
506
|
-
*/const
|
|
506
|
+
*/const w1=[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]],go=K("circle-check-big",w1);/**
|
|
507
507
|
* @license lucide-react v1.38.0 - ISC
|
|
508
508
|
*
|
|
509
509
|
* This source code is licensed under the ISC license.
|
|
510
510
|
* See the LICENSE file in the root directory of this source tree.
|
|
511
|
-
*/const
|
|
511
|
+
*/const k1=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],A1=K("search",k1);/**
|
|
512
512
|
* @license lucide-react v1.38.0 - ISC
|
|
513
513
|
*
|
|
514
514
|
* This source code is licensed under the ISC license.
|
|
515
515
|
* See the LICENSE file in the root directory of this source tree.
|
|
516
|
-
*/const
|
|
516
|
+
*/const N1=[["circle",{cx:"6",cy:"6",r:"3",key:"1lh9wr"}],["path",{d:"M8.12 8.12 12 12",key:"1alkpv"}],["path",{d:"M20 4 8.12 15.88",key:"xgtan2"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}],["path",{d:"M14.8 14.8 20 20",key:"ptml3r"}]],B1=K("scissors",N1);/**
|
|
517
517
|
* @license lucide-react v1.38.0 - ISC
|
|
518
518
|
*
|
|
519
519
|
* This source code is licensed under the ISC license.
|
|
520
520
|
* See the LICENSE file in the root directory of this source tree.
|
|
521
|
-
*/const
|
|
521
|
+
*/const D1=[["path",{d:"m13.5 8.5-5 5",key:"1cs55j"}],["path",{d:"m8.5 8.5 5 5",key:"a8mexj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]],S1=K("search-x",D1);/**
|
|
522
522
|
* @license lucide-react v1.38.0 - ISC
|
|
523
523
|
*
|
|
524
524
|
* This source code is licensed under the ISC license.
|
|
525
525
|
* See the LICENSE file in the root directory of this source tree.
|
|
526
|
-
*/const
|
|
526
|
+
*/const j1=[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]],E1=K("send",j1);/**
|
|
527
527
|
* @license lucide-react v1.38.0 - ISC
|
|
528
528
|
*
|
|
529
529
|
* This source code is licensed under the ISC license.
|
|
530
530
|
* See the LICENSE file in the root directory of this source tree.
|
|
531
|
-
*/const
|
|
531
|
+
*/const T1=[["path",{d:"M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915",key:"1i5ecw"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],M1=K("settings",T1);/**
|
|
532
532
|
* @license lucide-react v1.38.0 - ISC
|
|
533
533
|
*
|
|
534
534
|
* This source code is licensed under the ISC license.
|
|
535
535
|
* See the LICENSE file in the root directory of this source tree.
|
|
536
|
-
*/const
|
|
536
|
+
*/const L1=[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],$1=K("shield-check",L1);/**
|
|
537
537
|
* @license lucide-react v1.38.0 - ISC
|
|
538
538
|
*
|
|
539
539
|
* This source code is licensed under the ISC license.
|
|
540
540
|
* See the LICENSE file in the root directory of this source tree.
|
|
541
|
-
*/const
|
|
541
|
+
*/const R1=[["path",{d:"m2.05 2.05 1.099-.028a1 1 0 0 1 1.008.815l2.69 14.347A1 1 0 0 0 7.83 18H18",key:"uebgi3"}],["path",{d:"M4.563 5h16.435a1 1 0 0 1 .981 1.204l-1.026 6.226A2 2 0 0 1 18.962 14H6.25",key:"1j7c9p"}],["circle",{cx:"18",cy:"20",r:"2",key:"t9985n"}],["circle",{cx:"8",cy:"20",r:"2",key:"ckkr5m"}]],P1=K("shopping-cart",R1);/**
|
|
542
542
|
* @license lucide-react v1.38.0 - ISC
|
|
543
543
|
*
|
|
544
544
|
* This source code is licensed under the ISC license.
|
|
545
545
|
* See the LICENSE file in the root directory of this source tree.
|
|
546
|
-
*/const
|
|
546
|
+
*/const I1=[["path",{d:"m18 14 4 4-4 4",key:"10pe0f"}],["path",{d:"m18 2 4 4-4 4",key:"pucp1d"}],["path",{d:"M2 18h1.973a4 4 0 0 0 3.3-1.7l5.454-8.6a4 4 0 0 1 3.3-1.7H22",key:"1ailkh"}],["path",{d:"M2 6h1.972a4 4 0 0 1 3.6 2.2",key:"km57vx"}],["path",{d:"M22 18h-6.041a4 4 0 0 1-3.3-1.8l-.359-.45",key:"os18l9"}]],F1=K("shuffle",I1);/**
|
|
547
547
|
* @license lucide-react v1.38.0 - ISC
|
|
548
548
|
*
|
|
549
549
|
* This source code is licensed under the ISC license.
|
|
550
550
|
* See the LICENSE file in the root directory of this source tree.
|
|
551
|
-
*/const
|
|
551
|
+
*/const O1=[["path",{d:"M17.971 4.285A2 2 0 0 1 21 6v12a2 2 0 0 1-3.029 1.715l-9.997-5.998a2 2 0 0 1-.003-3.432z",key:"15892j"}],["path",{d:"M3 20V4",key:"1ptbpl"}]],H1=K("skip-back",O1);/**
|
|
552
552
|
* @license lucide-react v1.38.0 - ISC
|
|
553
553
|
*
|
|
554
554
|
* This source code is licensed under the ISC license.
|
|
555
555
|
* See the LICENSE file in the root directory of this source tree.
|
|
556
|
-
*/const
|
|
556
|
+
*/const V1=[["path",{d:"M21 4v16",key:"7j8fe9"}],["path",{d:"M6.029 4.285A2 2 0 0 0 3 6v12a2 2 0 0 0 3.029 1.715l9.997-5.998a2 2 0 0 0 .003-3.432z",key:"zs4d6"}]],z1=K("skip-forward",V1);/**
|
|
557
557
|
* @license lucide-react v1.38.0 - ISC
|
|
558
558
|
*
|
|
559
559
|
* This source code is licensed under the ISC license.
|
|
560
560
|
* See the LICENSE file in the root directory of this source tree.
|
|
561
|
-
*/const
|
|
561
|
+
*/const W1=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}]],q1=K("square",W1);/**
|
|
562
562
|
* @license lucide-react v1.38.0 - ISC
|
|
563
563
|
*
|
|
564
564
|
* This source code is licensed under the ISC license.
|
|
565
565
|
* See the LICENSE file in the root directory of this source tree.
|
|
566
|
-
*/const
|
|
566
|
+
*/const U1=[["path",{d:"M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z",key:"r04s7s"}]],G1=K("star",U1);/**
|
|
567
567
|
* @license lucide-react v1.38.0 - ISC
|
|
568
568
|
*
|
|
569
569
|
* This source code is licensed under the ISC license.
|
|
570
570
|
* See the LICENSE file in the root directory of this source tree.
|
|
571
|
-
*/const
|
|
571
|
+
*/const K1=[["path",{d:"M15 21v-5a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v5",key:"slp6dd"}],["path",{d:"M17.774 10.31a1.12 1.12 0 0 0-1.549 0 2.5 2.5 0 0 1-3.451 0 1.12 1.12 0 0 0-1.548 0 2.5 2.5 0 0 1-3.452 0 1.12 1.12 0 0 0-1.549 0 2.5 2.5 0 0 1-3.77-3.248l2.889-4.184A2 2 0 0 1 7 2h10a2 2 0 0 1 1.653.873l2.895 4.192a2.5 2.5 0 0 1-3.774 3.244",key:"o0xfot"}],["path",{d:"M4 10.95V19a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-8.05",key:"wn3emo"}]],Z1=K("store",K1);/**
|
|
572
572
|
* @license lucide-react v1.38.0 - ISC
|
|
573
573
|
*
|
|
574
574
|
* This source code is licensed under the ISC license.
|
|
575
575
|
* See the LICENSE file in the root directory of this source tree.
|
|
576
|
-
*/const
|
|
576
|
+
*/const Y1=[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 3v1",key:"1asbbs"}],["path",{d:"M12 20v1",key:"1wcdkc"}],["path",{d:"M3 12h1",key:"lp3yf2"}],["path",{d:"M20 12h1",key:"1vloll"}],["path",{d:"m18.364 5.636-.707.707",key:"1hakh0"}],["path",{d:"m6.343 17.657-.707.707",key:"18m9nf"}],["path",{d:"m5.636 5.636.707.707",key:"1xv1c5"}],["path",{d:"m17.657 17.657.707.707",key:"vl76zb"}]],X1=K("sun-medium",Y1);/**
|
|
577
577
|
* @license lucide-react v1.38.0 - ISC
|
|
578
578
|
*
|
|
579
579
|
* This source code is licensed under the ISC license.
|
|
580
580
|
* See the LICENSE file in the root directory of this source tree.
|
|
581
|
-
*/const
|
|
581
|
+
*/const J1=[["path",{d:"M12 3v18",key:"108xh3"}],["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M3 9h18",key:"1pudct"}],["path",{d:"M3 15h18",key:"5xshup"}]],Q1=K("table",J1);/**
|
|
582
582
|
* @license lucide-react v1.38.0 - ISC
|
|
583
583
|
*
|
|
584
584
|
* This source code is licensed under the ISC license.
|
|
585
585
|
* See the LICENSE file in the root directory of this source tree.
|
|
586
|
-
*/const
|
|
586
|
+
*/const ep=[["path",{d:"M9 3H5a2 2 0 0 0-2 2v4m6-6h10a2 2 0 0 1 2 2v4M9 3v18m0 0h10a2 2 0 0 0 2-2V9M9 21H5a2 2 0 0 1-2-2V9m0 0h18",key:"gugj83"}]],tp=K("table-2",ep);/**
|
|
587
587
|
* @license lucide-react v1.38.0 - ISC
|
|
588
588
|
*
|
|
589
589
|
* This source code is licensed under the ISC license.
|
|
590
590
|
* See the LICENSE file in the root directory of this source tree.
|
|
591
|
-
*/const
|
|
591
|
+
*/const np=[["path",{d:"M12.586 2.586A2 2 0 0 0 11.172 2H4a2 2 0 0 0-2 2v7.172a2 2 0 0 0 .586 1.414l8.704 8.704a2.426 2.426 0 0 0 3.42 0l6.58-6.58a2.426 2.426 0 0 0 0-3.42z",key:"vktsd0"}],["circle",{cx:"7.5",cy:"7.5",r:".5",fill:"currentColor",key:"kqv944"}]],ap=K("tag",np);/**
|
|
592
592
|
* @license lucide-react v1.38.0 - ISC
|
|
593
593
|
*
|
|
594
594
|
* This source code is licensed under the ISC license.
|
|
595
595
|
* See the LICENSE file in the root directory of this source tree.
|
|
596
|
-
*/const
|
|
596
|
+
*/const rp=[["path",{d:"M12 19h8",key:"baeox8"}],["path",{d:"m4 17 6-6-6-6",key:"1yngyt"}]],op=K("terminal",rp);/**
|
|
597
597
|
* @license lucide-react v1.38.0 - ISC
|
|
598
598
|
*
|
|
599
599
|
* This source code is licensed under the ISC license.
|
|
600
600
|
* See the LICENSE file in the root directory of this source tree.
|
|
601
|
-
*/const
|
|
601
|
+
*/const sp=[["path",{d:"M12 20h-1a2 2 0 0 1-2-2 2 2 0 0 1-2 2H6",key:"1528k5"}],["path",{d:"M13 8h7a2 2 0 0 1 2 2v4a2 2 0 0 1-2 2h-7",key:"13ksps"}],["path",{d:"M5 16H4a2 2 0 0 1-2-2v-4a2 2 0 0 1 2-2h1",key:"1n9rhb"}],["path",{d:"M6 4h1a2 2 0 0 1 2 2 2 2 0 0 1 2-2h1",key:"1mj8rg"}],["path",{d:"M9 6v12",key:"velyjx"}]],ip=K("text-cursor-input",sp);/**
|
|
602
602
|
* @license lucide-react v1.38.0 - ISC
|
|
603
603
|
*
|
|
604
604
|
* This source code is licensed under the ISC license.
|
|
605
605
|
* See the LICENSE file in the root directory of this source tree.
|
|
606
|
-
*/const
|
|
606
|
+
*/const lp=[["path",{d:"M15 5h6",key:"1pr8yx"}],["path",{d:"M15 12h6",key:"upa0zy"}],["path",{d:"M3 19h18",key:"awlh7x"}],["path",{d:"m3 12 3.553-7.724a.5.5 0 0 1 .894 0L11 12",key:"6lvno8"}],["path",{d:"M3.92 10h6.16",key:"1tl8ex"}]],cp=K("text-initial",lp);/**
|
|
607
607
|
* @license lucide-react v1.38.0 - ISC
|
|
608
608
|
*
|
|
609
609
|
* This source code is licensed under the ISC license.
|
|
610
610
|
* See the LICENSE file in the root directory of this source tree.
|
|
611
|
-
*/const
|
|
611
|
+
*/const up=[["path",{d:"M2 9a3 3 0 0 1 0 6v2a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-2a3 3 0 0 1 0-6V7a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2Z",key:"qn84l0"}],["path",{d:"M13 5v2",key:"dyzc3o"}],["path",{d:"M13 17v2",key:"1ont0d"}],["path",{d:"M13 11v2",key:"1wjjxi"}]],dp=K("ticket",up);/**
|
|
612
612
|
* @license lucide-react v1.38.0 - ISC
|
|
613
613
|
*
|
|
614
614
|
* This source code is licensed under the ISC license.
|
|
615
615
|
* See the LICENSE file in the root directory of this source tree.
|
|
616
|
-
*/const
|
|
616
|
+
*/const pp=[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]],hp=K("trash-2",pp);/**
|
|
617
617
|
* @license lucide-react v1.38.0 - ISC
|
|
618
618
|
*
|
|
619
619
|
* This source code is licensed under the ISC license.
|
|
620
620
|
* See the LICENSE file in the root directory of this source tree.
|
|
621
|
-
*/const
|
|
621
|
+
*/const mp=[["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]],Cp=K("trash",mp);/**
|
|
622
622
|
* @license lucide-react v1.38.0 - ISC
|
|
623
623
|
*
|
|
624
624
|
* This source code is licensed under the ISC license.
|
|
625
625
|
* See the LICENSE file in the root directory of this source tree.
|
|
626
|
-
*/const fp=[["path",{d:"M16 7h6v6",key:"box55l"}],["path",{d:"m22 7-8.5 8.5-5-5L2 17",key:"1t1m79"}]],
|
|
626
|
+
*/const fp=[["path",{d:"M16 7h6v6",key:"box55l"}],["path",{d:"m22 7-8.5 8.5-5-5L2 17",key:"1t1m79"}]],gp=K("trending-up",fp);/**
|
|
627
627
|
* @license lucide-react v1.38.0 - ISC
|
|
628
628
|
*
|
|
629
629
|
* This source code is licensed under the ISC license.
|
|
630
630
|
* See the LICENSE file in the root directory of this source tree.
|
|
631
|
-
*/const
|
|
631
|
+
*/const bp=[["path",{d:"M10 14.66V17a1 1 0 0 1-1 1 2 2 0 0 0-2 2v2",key:"pwuv1l"}],["path",{d:"M14 14.66V17a1 1 0 0 0 1 1 2 2 0 0 1 2 2v2",key:"1y54w1"}],["path",{d:"M17.916 10H19.5A2.5 2.5 0 0 0 22 7.5V5a1 1 0 0 0-1-1h-3",key:"e30mpu"}],["path",{d:"M4 22h16",key:"57wxv0"}],["path",{d:"M6 9a6 6 0 0 0 12 0V3a1 1 0 0 0-1-1H7a1 1 0 0 0-1 1z",key:"1mhfuq"}],["path",{d:"M6.084 10H4.5A2.5 2.5 0 0 1 2 7.5V5a1 1 0 0 1 1-1h3",key:"i0yafy"}]],yp=K("trophy",bp);/**
|
|
632
632
|
* @license lucide-react v1.38.0 - ISC
|
|
633
633
|
*
|
|
634
634
|
* This source code is licensed under the ISC license.
|
|
635
635
|
* See the LICENSE file in the root directory of this source tree.
|
|
636
|
-
*/const
|
|
636
|
+
*/const vp=[["path",{d:"m18.84 12.25 1.72-1.71h-.02a5.004 5.004 0 0 0-.12-7.07 5.006 5.006 0 0 0-6.95 0l-1.72 1.71",key:"yqzxt4"}],["path",{d:"m5.17 11.75-1.71 1.71a5.004 5.004 0 0 0 .12 7.07 5.006 5.006 0 0 0 6.95 0l1.71-1.71",key:"4qinb0"}],["line",{x1:"8",x2:"8",y1:"2",y2:"5",key:"1041cp"}],["line",{x1:"2",x2:"5",y1:"8",y2:"8",key:"14m1p5"}],["line",{x1:"16",x2:"16",y1:"19",y2:"22",key:"rzdirn"}],["line",{x1:"19",x2:"22",y1:"16",y2:"16",key:"ox905f"}]],xp=K("unlink",vp);/**
|
|
637
637
|
* @license lucide-react v1.38.0 - ISC
|
|
638
638
|
*
|
|
639
639
|
* This source code is licensed under the ISC license.
|
|
640
640
|
* See the LICENSE file in the root directory of this source tree.
|
|
641
|
-
*/const
|
|
641
|
+
*/const _p=[["path",{d:"M12 3v12",key:"1x0j5s"}],["path",{d:"m17 8-5-5-5 5",key:"7q97r8"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}]],wp=K("upload",_p);/**
|
|
642
642
|
* @license lucide-react v1.38.0 - ISC
|
|
643
643
|
*
|
|
644
644
|
* This source code is licensed under the ISC license.
|
|
645
645
|
* See the LICENSE file in the root directory of this source tree.
|
|
646
|
-
*/const
|
|
646
|
+
*/const kp=[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]],La=K("user",kp);/**
|
|
647
647
|
* @license lucide-react v1.38.0 - ISC
|
|
648
648
|
*
|
|
649
649
|
* This source code is licensed under the ISC license.
|
|
650
650
|
* See the LICENSE file in the root directory of this source tree.
|
|
651
|
-
*/const
|
|
651
|
+
*/const Ap=[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["line",{x1:"19",x2:"19",y1:"8",y2:"14",key:"1bvyxn"}],["line",{x1:"22",x2:"16",y1:"11",y2:"11",key:"1shjgl"}]],Np=K("user-plus",Ap);/**
|
|
652
652
|
* @license lucide-react v1.38.0 - ISC
|
|
653
653
|
*
|
|
654
654
|
* This source code is licensed under the ISC license.
|
|
655
655
|
* See the LICENSE file in the root directory of this source tree.
|
|
656
|
-
*/const
|
|
656
|
+
*/const Bp=[["circle",{cx:"12",cy:"8",r:"5",key:"1hypcn"}],["path",{d:"M20 21a8 8 0 0 0-16 0",key:"rfgkzh"}]],Dp=K("user-round",Bp);/**
|
|
657
657
|
* @license lucide-react v1.38.0 - ISC
|
|
658
658
|
*
|
|
659
659
|
* This source code is licensed under the ISC license.
|
|
660
660
|
* See the LICENSE file in the root directory of this source tree.
|
|
661
|
-
*/const Sp=[["path",{d:"M2 21a8 8 0 0 1 13.292-6",key:"bjp14o"}],["circle",{cx:"10",cy:"8",r:"5",key:"o932ke"}],["path",{d:"m16 19 2 2 4-4",key:"1b14m6"}]],
|
|
661
|
+
*/const Sp=[["path",{d:"M2 21a8 8 0 0 1 13.292-6",key:"bjp14o"}],["circle",{cx:"10",cy:"8",r:"5",key:"o932ke"}],["path",{d:"m16 19 2 2 4-4",key:"1b14m6"}]],jp=K("user-round-check",Sp);/**
|
|
662
662
|
* @license lucide-react v1.38.0 - ISC
|
|
663
663
|
*
|
|
664
664
|
* This source code is licensed under the ISC license.
|
|
665
665
|
* See the LICENSE file in the root directory of this source tree.
|
|
666
|
-
*/const
|
|
666
|
+
*/const Ep=[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["path",{d:"M16 3.128a4 4 0 0 1 0 7.744",key:"16gr8j"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}]],Tp=K("users",Ep);/**
|
|
667
667
|
* @license lucide-react v1.38.0 - ISC
|
|
668
668
|
*
|
|
669
669
|
* This source code is licensed under the ISC license.
|
|
670
670
|
* See the LICENSE file in the root directory of this source tree.
|
|
671
|
-
*/const
|
|
671
|
+
*/const Mp=[["path",{d:"M18 21a8 8 0 0 0-16 0",key:"3ypg7q"}],["circle",{cx:"10",cy:"8",r:"5",key:"o932ke"}],["path",{d:"M22 20c0-3.37-2-6.5-4-8a5 5 0 0 0-.45-8.3",key:"10s06x"}]],Lp=K("users-round",Mp);/**
|
|
672
672
|
* @license lucide-react v1.38.0 - ISC
|
|
673
673
|
*
|
|
674
674
|
* This source code is licensed under the ISC license.
|
|
675
675
|
* See the LICENSE file in the root directory of this source tree.
|
|
676
|
-
*/const
|
|
676
|
+
*/const $p=[["path",{d:"M11 4.702a.705.705 0 0 0-1.203-.498L6.413 7.587A1.4 1.4 0 0 1 5.416 8H3a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h2.416a1.4 1.4 0 0 1 .997.413l3.383 3.384A.705.705 0 0 0 11 19.298z",key:"uqj9uw"}],["path",{d:"M16 9a5 5 0 0 1 0 6",key:"1q6k2b"}],["path",{d:"M19.364 18.364a9 9 0 0 0 0-12.728",key:"ijwkga"}]],bo=K("volume-2",$p);/**
|
|
677
677
|
* @license lucide-react v1.38.0 - ISC
|
|
678
678
|
*
|
|
679
679
|
* This source code is licensed under the ISC license.
|
|
680
680
|
* See the LICENSE file in the root directory of this source tree.
|
|
681
|
-
*/const
|
|
681
|
+
*/const Rp=[["path",{d:"M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.106-3.105c.32-.322.863-.22.983.218a6 6 0 0 1-8.259 7.057l-7.91 7.91a1 1 0 0 1-2.999-3l7.91-7.91a6 6 0 0 1 7.057-8.259c.438.12.54.662.219.984z",key:"1ngwbx"}]],Pp=K("wrench",Rp);/**
|
|
682
682
|
* @license lucide-react v1.38.0 - ISC
|
|
683
683
|
*
|
|
684
684
|
* This source code is licensed under the ISC license.
|
|
685
685
|
* See the LICENSE file in the root directory of this source tree.
|
|
686
|
-
*/const
|
|
686
|
+
*/const Ip=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],yo=K("x",Ip);/**
|
|
687
687
|
* @license lucide-react v1.38.0 - ISC
|
|
688
688
|
*
|
|
689
689
|
* This source code is licensed under the ISC license.
|
|
690
690
|
* See the LICENSE file in the root directory of this source tree.
|
|
691
|
-
*/const
|
|
691
|
+
*/const Fp=[["path",{d:"M15.914 4a1.5 1.5 0 00-2.474-1.561l-9 9A1.5 1.5 0 005.5 14h4.002a.5.5 0 01.471.666L8.086 20a1.5 1.5 0 002.475 1.56l9-9A1.5 1.5 0 0018.5 10h-3.997a.5.5 0 01-.472-.667z",key:"1v7up4"}]],Op=K("zap",Fp);/**
|
|
692
692
|
* @license lucide-react v1.38.0 - ISC
|
|
693
693
|
*
|
|
694
694
|
* This source code is licensed under the ISC license.
|
|
695
695
|
* See the LICENSE file in the root directory of this source tree.
|
|
696
|
-
*/const
|
|
696
|
+
*/const Hp=[["path",{d:"M12 6v16",key:"nqf5sj"}],["path",{d:"m19 13 2-1a9 9 0 0 1-18 0l2 1",key:"y7qv08"}],["path",{d:"M9 11h6",key:"1fldmi"}],["circle",{cx:"12",cy:"4",r:"2",key:"muu5ef"}]],Vp=K("anchor",Hp);/**
|
|
697
697
|
* @license lucide-react v1.38.0 - ISC
|
|
698
698
|
*
|
|
699
699
|
* This source code is licensed under the ISC license.
|
|
700
700
|
* See the LICENSE file in the root directory of this source tree.
|
|
701
|
-
*/const
|
|
701
|
+
*/const zp=[["path",{d:"M19 9V6a2 2 0 0 0-2-2H7a2 2 0 0 0-2 2v3",key:"irtipd"}],["path",{d:"M3 16a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-5a2 2 0 0 0-4 0v1.5a.5.5 0 0 1-.5.5h-9a.5.5 0 0 1-.5-.5V11a2 2 0 0 0-4 0z",key:"1qyhux"}],["path",{d:"M5 18v2",key:"ppbyun"}],["path",{d:"M19 18v2",key:"gy7782"}]],Wp=K("armchair",zp);/**
|
|
702
702
|
* @license lucide-react v1.38.0 - ISC
|
|
703
703
|
*
|
|
704
704
|
* This source code is licensed under the ISC license.
|
|
705
705
|
* See the LICENSE file in the root directory of this source tree.
|
|
706
|
-
*/const
|
|
706
|
+
*/const qp=[["path",{d:"m3 8 4-4 4 4",key:"11wl7u"}],["path",{d:"M7 4v16",key:"1glfcx"}],["path",{d:"M20 8h-5",key:"1vsyxs"}],["path",{d:"M15 10V6.5a2.5 2.5 0 0 1 5 0V10",key:"ag13bf"}],["path",{d:"M15 14h5l-5 6h5",key:"ur5jdg"}]],Up=K("arrow-up-a-z",qp);/**
|
|
707
707
|
* @license lucide-react v1.38.0 - ISC
|
|
708
708
|
*
|
|
709
709
|
* This source code is licensed under the ISC license.
|
|
710
710
|
* See the LICENSE file in the root directory of this source tree.
|
|
711
|
-
*/const
|
|
711
|
+
*/const Gp=[["path",{d:"M5 21v-6",key:"1hz6c0"}],["path",{d:"M12 21V3",key:"1lcnhd"}],["path",{d:"M19 21V9",key:"unv183"}]],Kp=K("chart-no-axes-column",Gp);/**
|
|
712
712
|
* @license lucide-react v1.38.0 - ISC
|
|
713
713
|
*
|
|
714
714
|
* This source code is licensed under the ISC license.
|
|
715
715
|
* See the LICENSE file in the root directory of this source tree.
|
|
716
|
-
*/const
|
|
716
|
+
*/const Zp=[["path",{d:"M8 2v3",key:"1ioesn"}],["path",{d:"M16 2v3",key:"otl347"}],["rect",{x:"3",y:"3",width:"18",height:"18",rx:"2",key:"h1oib"}],["path",{d:"M3 9h18",key:"1pudct"}]],vo=K("calendar",Zp);/**
|
|
717
717
|
* @license lucide-react v1.38.0 - ISC
|
|
718
718
|
*
|
|
719
719
|
* This source code is licensed under the ISC license.
|
|
720
720
|
* See the LICENSE file in the root directory of this source tree.
|
|
721
|
-
*/const
|
|
721
|
+
*/const Yp=[["path",{d:"M19 17h2c.6 0 1-.4 1-1v-3c0-.9-.7-1.7-1.5-1.9C18.7 10.6 16 10 16 10s-1.3-1.4-2.2-2.3c-.5-.4-1.1-.7-1.8-.7H5c-.6 0-1.1.4-1.4.9l-1.4 2.9A3.7 3.7 0 0 0 2 12v4c0 .6.4 1 1 1h2",key:"5owen"}],["circle",{cx:"7",cy:"17",r:"2",key:"u2ysq9"}],["path",{d:"M9 17h6",key:"r8uit2"}],["circle",{cx:"17",cy:"17",r:"2",key:"axvx0g"}]],Xp=K("car",Yp);/**
|
|
722
722
|
* @license lucide-react v1.38.0 - ISC
|
|
723
723
|
*
|
|
724
724
|
* This source code is licensed under the ISC license.
|
|
725
725
|
* See the LICENSE file in the root directory of this source tree.
|
|
726
|
-
*/const
|
|
726
|
+
*/const Jp=[["path",{d:"M10 2v2",key:"7u0qdc"}],["path",{d:"M14 2v2",key:"6buw04"}],["path",{d:"M16 8a1 1 0 0 1 1 1v8a4 4 0 0 1-4 4H7a4 4 0 0 1-4-4V9a1 1 0 0 1 1-1h14a4 4 0 1 1 0 8h-1",key:"pwadti"}],["path",{d:"M6 2v2",key:"colzsn"}]],Qp=K("coffee",Jp);/**
|
|
727
727
|
* @license lucide-react v1.38.0 - ISC
|
|
728
728
|
*
|
|
729
729
|
* This source code is licensed under the ISC license.
|
|
730
730
|
* See the LICENSE file in the root directory of this source tree.
|
|
731
|
-
*/const
|
|
731
|
+
*/const eh=[["line",{x1:"6",x2:"10",y1:"11",y2:"11",key:"1gktln"}],["line",{x1:"8",x2:"8",y1:"9",y2:"13",key:"qnk9ow"}],["line",{x1:"15",x2:"15.01",y1:"12",y2:"12",key:"krot7o"}],["line",{x1:"18",x2:"18.01",y1:"10",y2:"10",key:"1lcuu1"}],["path",{d:"M17.32 5H6.68a4 4 0 0 0-3.978 3.59c-.006.052-.01.101-.017.152C2.604 9.416 2 14.456 2 16a3 3 0 0 0 3 3c1 0 1.5-.5 2-1l1.414-1.414A2 2 0 0 1 9.828 16h4.344a2 2 0 0 1 1.414.586L17 18c.5.5 1 1 2 1a3 3 0 0 0 3-3c0-1.545-.604-6.584-.685-7.258-.007-.05-.011-.1-.017-.151A4 4 0 0 0 17.32 5z",key:"mfqc10"}]],th=K("gamepad-2",eh);/**
|
|
732
732
|
* @license lucide-react v1.38.0 - ISC
|
|
733
733
|
*
|
|
734
734
|
* This source code is licensed under the ISC license.
|
|
735
735
|
* See the LICENSE file in the root directory of this source tree.
|
|
736
|
-
*/const
|
|
736
|
+
*/const nh=[["polyline",{points:"22 12 16 12 14 15 10 15 8 12 2 12",key:"o97t9d"}],["path",{d:"M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"oot6mr"}]],ah=K("inbox",nh);/**
|
|
737
737
|
* @license lucide-react v1.38.0 - ISC
|
|
738
738
|
*
|
|
739
739
|
* This source code is licensed under the ISC license.
|
|
740
740
|
* See the LICENSE file in the root directory of this source tree.
|
|
741
|
-
*/const
|
|
741
|
+
*/const rh=[["path",{d:"M8 5h13",key:"1pao27"}],["path",{d:"M13 12h8",key:"h98zly"}],["path",{d:"M13 19h8",key:"c3s6r1"}],["path",{d:"M3 10a2 2 0 0 0 2 2h3",key:"1npucw"}],["path",{d:"M3 5v12a2 2 0 0 0 2 2h3",key:"x1gjn2"}]],oh=K("list-tree",rh);/**
|
|
742
742
|
* @license lucide-react v1.38.0 - ISC
|
|
743
743
|
*
|
|
744
744
|
* This source code is licensed under the ISC license.
|
|
745
745
|
* See the LICENSE file in the root directory of this source tree.
|
|
746
|
-
*/const
|
|
746
|
+
*/const sh=[["path",{d:"M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z",key:"18887p"}],["path",{d:"M12 11h.01",key:"z322tv"}],["path",{d:"M16 11h.01",key:"xkw8gn"}],["path",{d:"M8 11h.01",key:"1dfujw"}]],ih=K("message-square-more",sh);/**
|
|
747
747
|
* @license lucide-react v1.38.0 - ISC
|
|
748
748
|
*
|
|
749
749
|
* This source code is licensed under the ISC license.
|
|
750
750
|
* See the LICENSE file in the root directory of this source tree.
|
|
751
|
-
*/const
|
|
751
|
+
*/const lh=[["path",{d:"M5 12h14",key:"1ays0h"}]],ch=K("minus",lh);/**
|
|
752
752
|
* @license lucide-react v1.38.0 - ISC
|
|
753
753
|
*
|
|
754
754
|
* This source code is licensed under the ISC license.
|
|
755
755
|
* See the LICENSE file in the root directory of this source tree.
|
|
756
|
-
*/const
|
|
756
|
+
*/const uh=[["circle",{cx:"18",cy:"5",r:"3",key:"gq8acd"}],["circle",{cx:"6",cy:"12",r:"3",key:"w7nqdw"}],["circle",{cx:"18",cy:"19",r:"3",key:"1xt0gg"}],["line",{x1:"8.59",x2:"15.42",y1:"13.51",y2:"17.49",key:"47mynk"}],["line",{x1:"15.41",x2:"8.59",y1:"6.51",y2:"10.49",key:"1n3mei"}]],dh=K("share-2",uh);/**
|
|
757
757
|
* @license lucide-react v1.38.0 - ISC
|
|
758
758
|
*
|
|
759
759
|
* This source code is licensed under the ISC license.
|
|
760
760
|
* See the LICENSE file in the root directory of this source tree.
|
|
761
|
-
*/const
|
|
761
|
+
*/const ph=[["path",{d:"M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z",key:"1s2grr"}],["path",{d:"M20 2v4",key:"1rf3ol"}],["path",{d:"M22 4h-4",key:"gwowj6"}],["circle",{cx:"4",cy:"20",r:"2",key:"6kqj1y"}]],hh=K("sparkles",ph);/**
|
|
762
762
|
* @license lucide-react v1.38.0 - ISC
|
|
763
763
|
*
|
|
764
764
|
* This source code is licensed under the ISC license.
|
|
765
765
|
* See the LICENSE file in the root directory of this source tree.
|
|
766
|
-
*/const
|
|
766
|
+
*/const mh=[["path",{d:"M12 4v16",key:"1654pz"}],["path",{d:"M4 7V5a1 1 0 0 1 1-1h14a1 1 0 0 1 1 1v2",key:"e0r10z"}],["path",{d:"M9 20h6",key:"s66wpe"}]],Ch=K("type",mh);/**
|
|
767
767
|
* @license lucide-react v1.38.0 - ISC
|
|
768
768
|
*
|
|
769
769
|
* This source code is licensed under the ISC license.
|
|
770
770
|
* See the LICENSE file in the root directory of this source tree.
|
|
771
|
-
*/const fh=[["path",{d:"M11 4.702a.705.705 0 0 0-1.203-.498L6.413 7.587A1.4 1.4 0 0 1 5.416 8H3a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h2.416a1.4 1.4 0 0 1 .997.413l3.383 3.384A.705.705 0 0 0 11 19.298z",key:"uqj9uw"}]],
|
|
771
|
+
*/const fh=[["path",{d:"M11 4.702a.705.705 0 0 0-1.203-.498L6.413 7.587A1.4 1.4 0 0 1 5.416 8H3a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h2.416a1.4 1.4 0 0 1 .997.413l3.383 3.384A.705.705 0 0 0 11 19.298z",key:"uqj9uw"}]],gh=K("volume",fh);/**
|
|
772
772
|
* @license lucide-react v1.38.0 - ISC
|
|
773
773
|
*
|
|
774
774
|
* This source code is licensed under the ISC license.
|
|
775
775
|
* See the LICENSE file in the root directory of this source tree.
|
|
776
|
-
*/const
|
|
776
|
+
*/const bh=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],xo=K("chevron-down",bh);/**
|
|
777
777
|
* @license lucide-react v1.38.0 - ISC
|
|
778
778
|
*
|
|
779
779
|
* This source code is licensed under the ISC license.
|
|
780
780
|
* See the LICENSE file in the root directory of this source tree.
|
|
781
|
-
*/const
|
|
781
|
+
*/const yh=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],_o=K("chevron-up",yh);/**
|
|
782
782
|
* @license lucide-react v1.38.0 - ISC
|
|
783
783
|
*
|
|
784
784
|
* This source code is licensed under the ISC license.
|
|
785
785
|
* See the LICENSE file in the root directory of this source tree.
|
|
786
|
-
*/const
|
|
786
|
+
*/const vh=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],xh=K("circle",vh);/**
|
|
787
787
|
* @license lucide-react v1.38.0 - ISC
|
|
788
788
|
*
|
|
789
789
|
* This source code is licensed under the ISC license.
|
|
790
790
|
* See the LICENSE file in the root directory of this source tree.
|
|
791
|
-
*/const
|
|
791
|
+
*/const _h=[["path",{d:"M13.73 4a2 2 0 0 0-3.46 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3Z",key:"14u9p9"}]],wh=K("triangle",_h);/**
|
|
792
792
|
* @license lucide-react v1.38.0 - ISC
|
|
793
793
|
*
|
|
794
794
|
* This source code is licensed under the ISC license.
|
|
795
795
|
* See the LICENSE file in the root directory of this source tree.
|
|
796
|
-
*/const
|
|
796
|
+
*/const kh=[["path",{d:"M4 5h16",key:"1tepv9"}],["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 19h16",key:"1djgab"}]],Ah=K("menu",kh);/**
|
|
797
797
|
* @license lucide-react v1.38.0 - ISC
|
|
798
798
|
*
|
|
799
799
|
* This source code is licensed under the ISC license.
|
|
800
800
|
* See the LICENSE file in the root directory of this source tree.
|
|
801
|
-
*/const
|
|
801
|
+
*/const Nh=[["path",{d:"M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401",key:"kfwtm"}]],Bh=K("moon",Nh);/**
|
|
802
802
|
* @license lucide-react v1.38.0 - ISC
|
|
803
803
|
*
|
|
804
804
|
* This source code is licensed under the ISC license.
|
|
805
805
|
* See the LICENSE file in the root directory of this source tree.
|
|
806
|
-
*/const
|
|
807
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ph(e,n){return Lh(e)||$h(e,n)||Ih(e,n)||Rh()}function Ih(e,n){if(e){if(typeof e=="string")return No(e,n);var a={}.toString.call(e).slice(8,-1);return a==="Object"&&e.constructor&&(a=e.constructor.name),a==="Map"||a==="Set"?Array.from(e):a==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?No(e,n):void 0}}const Bo=Object.entries,So=Object.setPrototypeOf,Fh=Object.isFrozen,Oh=Object.getPrototypeOf,Hh=Object.getOwnPropertyDescriptor;let it=Object.freeze,ut=Object.seal,Bn=Object.create,Do=typeof Reflect<"u"&&Reflect,$a=Do.apply,Ra=Do.construct;it||(it=function(n){return n}),ut||(ut=function(n){return n}),$a||($a=function(n,a){for(var r=arguments.length,o=new Array(r>2?r-2:0),s=2;s<r;s++)o[s-2]=arguments[s];return n.apply(a,o)}),Ra||(Ra=function(n){for(var a=arguments.length,r=new Array(a>1?a-1:0),o=1;o<a;o++)r[o-1]=arguments[o];return new n(...r)});const yn=st(Array.prototype.forEach),Vh=st(Array.prototype.lastIndexOf),jo=st(Array.prototype.pop),On=st(Array.prototype.push),zh=st(Array.prototype.splice),Sn=Array.isArray,Hn=st(String.prototype.toLowerCase),Pa=st(String.prototype.toString),Eo=st(String.prototype.match),Vn=st(String.prototype.replace),To=st(String.prototype.indexOf),Wh=st(String.prototype.trim),qh=st(Number.prototype.toString),Uh=st(Boolean.prototype.toString),Mo=typeof BigInt>"u"?null:st(BigInt.prototype.toString),Lo=typeof Symbol>"u"?null:st(Symbol.prototype.toString),Nt=st(Object.prototype.hasOwnProperty),zn=st(Object.prototype.toString),mt=st(RegExp.prototype.test),vn=Gh(TypeError);function st(e){return function(n){n instanceof RegExp&&(n.lastIndex=0);for(var a=arguments.length,r=new Array(a>1?a-1:0),o=1;o<a;o++)r[o-1]=arguments[o];return $a(e,n,r)}}function Gh(e){return function(){for(var n=arguments.length,a=new Array(n),r=0;r<n;r++)a[r]=arguments[r];return Ra(e,a)}}function We(e,n){let a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Hn;if(So&&So(e,null),!Sn(n))return e;let r=n.length;for(;r--;){let o=n[r];if(typeof o=="string"){const s=a(o);s!==o&&(Fh(n)||(n[r]=s),o=s)}e[o]=!0}return e}function Kh(e){for(let n=0;n<e.length;n++)Nt(e,n)||(e[n]=null);return e}function Dt(e){const n=Bn(null);for(const r of Bo(e)){var a=Ph(r,2);const o=a[0],s=a[1];Nt(e,o)&&(Sn(s)?n[o]=Kh(s):s&&typeof s=="object"&&s.constructor===Object?n[o]=Dt(s):n[o]=s)}return n}function Zh(e){switch(typeof e){case"string":return e;case"number":return qh(e);case"boolean":return Uh(e);case"bigint":return Mo?Mo(e):"0";case"symbol":return Lo?Lo(e):"Symbol()";case"undefined":return zn(e);case"function":case"object":{if(e===null)return zn(e);const n=e,a=Ht(n,"toString");if(typeof a=="function"){const r=a(n);return typeof r=="string"?r:zn(r)}return zn(e)}default:return zn(e)}}function Ht(e,n){for(;e!==null;){const r=Hh(e,n);if(r){if(r.get)return st(r.get);if(typeof r.value=="function")return st(r.value)}e=Oh(e)}function a(){return null}return a}function Yh(e){try{return mt(e,""),!0}catch{return!1}}const $o=it(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),Ia=it(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),Fa=it(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),Xh=it(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),Oa=it(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),Jh=it(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Ro=it(["#text"]),Po=it(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","command","commandfor","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns"]),Ha=it(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dominant-baseline","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","pointer-events","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-orientation","text-rendering","textlength","type","u1","u2","unicode","values","vector-effect","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),Io=it(["accent","accentunder","align","bevelled","close","columnalign","columnlines","columnspacing","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lquote","lspace","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),la=it(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),Qh=ut(/{{[\w\W]*|^[\w\W]*}}/g),em=ut(/<%[\w\W]*|^[\w\W]*%>/g),tm=ut(/\${[\w\W]*/g),nm=ut(/^data-[\-\w.\u00B7-\uFFFF]+$/),am=ut(/^aria-[\-\w]+$/),Fo=ut(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),rm=ut(/^(?:\w+script|data):/i),om=ut(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),sm=ut(/^html$/i),im=ut(/^[a-z][.\w]*(-[.\w]+)+$/i),Oo=ut(/<[/\w!]/g),Ho=ut(/<[/\w]/g),lm=ut(/<\/no(script|embed|frames)/i),cm=ut(/\/>/i),jt={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,processingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},Vo=["style","script","xmp","iframe","noembed","noframes","plaintext","noscript"],um=it(We({},Vo)),dm=(function(){const e={};return yn(Vo,n=>{e[n]=ut(new RegExp("</"+n+"(?=[\\t\\n\\f\\r />])","i"))}),it(e)})(),pm=function(){return typeof window>"u"?null:window},hm=function(n,a){if(typeof n!="object"||typeof n.createPolicy!="function")return null;let r=null;const o="data-tt-policy-suffix";a&&a.hasAttribute(o)&&(r=a.getAttribute(o));const s="dompurify"+(r?"#"+r:"");try{return n.createPolicy(s,{createHTML(l){return l},createScriptURL(l){return l}})}catch{return console.warn("TrustedTypes policy "+s+" could not be created."),null}},zo=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},sn=function(n,a,r,o){return Nt(n,a)&&Sn(n[a])?We(o.base?Dt(o.base):{},n[a],o.transform):r},Va=function(n,a,r){const o=Nt(n,a)?n[a]:void 0;return o&&typeof o=="object"?Dt(o):r()};function Wo(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:pm();const n=ce=>Wo(ce);if(n.version="3.4.14",n.removed=[],!e||!e.document||e.document.nodeType!==jt.document||!e.Element)return n.isSupported=!1,n;let a=e.document;const r=a,o=r.currentScript;e.DocumentFragment;const s=e.HTMLTemplateElement,l=e.Node,c=e.Element,u=e.NodeFilter,d=e.NamedNodeMap;d===void 0&&(e.NamedNodeMap||e.MozNamedAttrMap),e.HTMLFormElement;const p=e.DOMParser,h=e.trustedTypes,m=c.prototype,C=Ht(m,"cloneNode"),f=Ht(m,"remove"),b=Ht(m,"nextSibling"),g=Ht(m,"childNodes"),y=Ht(m,"parentNode"),w=Ht(m,"shadowRoot"),_=Ht(m,"attributes"),v=l&&l.prototype?Ht(l.prototype,"nodeType"):null,A=l&&l.prototype?Ht(l.prototype,"nodeName"):null,x=l&&l.prototype?Ht(l.prototype,"ownerDocument"):null,k=function(B){return v?v(B):B.nodeType},M=function(B){return A?A(B):B.nodeName};if(typeof s=="function"){const ce=a.createElement("template");ce.content&&ce.content.ownerDocument&&(a=ce.content.ownerDocument)}let N,D="",P,L=!1,E=0;const R=function(){if(E>0)throw vn('A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the "DOMPurify and Trusted Types" section of the README.')},S=function(B){R(),E++;try{return N.createHTML(B)}finally{E--}},V=function(B){R(),E++;try{return N.createScriptURL(B)}finally{E--}},Y=function(){return L||(P=hm(h,o),L=!0),P},X=a,J=X.implementation,O=X.createNodeIterator,j=X.createDocumentFragment,$=X.getElementsByTagName,F=r.importNode;let H=zo();n.isSupported=typeof Bo=="function"&&typeof y=="function"&&J&&J.createHTMLDocument!==void 0;const Z=Qh,I=em,W=tm,U=nm,le=am,pe=rm,Ce=om,ve=im;let he=Fo,T=null;const q=We({},[...$o,...Ia,...Fa,...Oa,...Ro]);let ee=null;const _e=We({},[...Po,...Ha,...Io,...la]);let ue=Object.seal(Bn(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),ie=null,te=null;const se=Object.seal(Bn(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let Se=!0,He=!0,Ve=!1,Re=!0,Ee=!1,je=!0,Ae=!1,ze=!1,at=null,ge=null,Pe=!1,$e=!1,Ke=!1,Ze=!1,Ue=!0,Ie=!1;const dt="user-content-";let ct=!0,qe=!1,ot={},Te=null;const Me=We({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","selectedcontent","style","svg","template","thead","title","video","xmp"]);let tt=null;const ft=We({},["audio","video","img","source","image","track"]);let Ye=null;const Xe=We({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),ht="http://www.w3.org/1998/Math/MathML",Et="http://www.w3.org/2000/svg",Qe="http://www.w3.org/1999/xhtml";let vt=Qe,Tt=!1,Zt=null;const on=We({},[ht,Et,Qe],Pa),Ft=it(["mi","mo","mn","ms","mtext"]);let Wt=We({},Ft);const qt=it(["annotation-xml"]);let xt=We({},qt);const Cn=We({},["title","style","font","a","script"]);let _t=null;const gn=["application/xhtml+xml","text/html"],Yt="text/html";let Ge=null,Mt=null;const wt=a.createElement("form"),Xt=function(B){return B instanceof RegExp||B instanceof Function},Ot=function(){let B=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(Mt&&Mt===B)return;(!B||typeof B!="object")&&(B={}),B=Dt(B),_t=gn.indexOf(B.PARSER_MEDIA_TYPE)===-1?Yt:B.PARSER_MEDIA_TYPE,Ge=_t==="application/xhtml+xml"?Pa:Hn,T=sn(B,"ALLOWED_TAGS",q,{transform:Ge}),ee=sn(B,"ALLOWED_ATTR",_e,{transform:Ge}),Zt=sn(B,"ALLOWED_NAMESPACES",on,{transform:Pa}),Ye=sn(B,"ADD_URI_SAFE_ATTR",Xe,{transform:Ge,base:Xe}),tt=sn(B,"ADD_DATA_URI_TAGS",ft,{transform:Ge,base:ft}),Te=sn(B,"FORBID_CONTENTS",Me,{transform:Ge}),ie=sn(B,"FORBID_TAGS",Dt({}),{transform:Ge}),te=sn(B,"FORBID_ATTR",Dt({}),{transform:Ge}),ot=Nt(B,"USE_PROFILES")?B.USE_PROFILES&&typeof B.USE_PROFILES=="object"?Dt(B.USE_PROFILES):B.USE_PROFILES:!1,Se=B.ALLOW_ARIA_ATTR!==!1,He=B.ALLOW_DATA_ATTR!==!1,Ve=B.ALLOW_UNKNOWN_PROTOCOLS||!1,Re=B.ALLOW_SELF_CLOSE_IN_ATTR!==!1,Ee=B.SAFE_FOR_TEMPLATES||!1,je=B.SAFE_FOR_XML!==!1,Ae=B.WHOLE_DOCUMENT||!1,$e=B.RETURN_DOM||!1,Ke=B.RETURN_DOM_FRAGMENT||!1,Ze=B.RETURN_TRUSTED_TYPE||!1,Pe=B.FORCE_BODY||!1,Ue=B.SANITIZE_DOM!==!1,Ie=B.SANITIZE_NAMED_PROPS||!1,ct=B.KEEP_CONTENT!==!1,qe=B.IN_PLACE||!1,he=Yh(B.ALLOWED_URI_REGEXP)?B.ALLOWED_URI_REGEXP:Fo,vt=typeof B.NAMESPACE=="string"?B.NAMESPACE:Qe,Wt=Va(B,"MATHML_TEXT_INTEGRATION_POINTS",()=>We({},Ft)),xt=Va(B,"HTML_INTEGRATION_POINTS",()=>We({},qt));const z=Va(B,"CUSTOM_ELEMENT_HANDLING",()=>Bn(null));if(ue=Bn(null),Nt(z,"tagNameCheck")&&Xt(z.tagNameCheck)&&(ue.tagNameCheck=z.tagNameCheck),Nt(z,"attributeNameCheck")&&Xt(z.attributeNameCheck)&&(ue.attributeNameCheck=z.attributeNameCheck),Nt(z,"allowCustomizedBuiltInElements")&&typeof z.allowCustomizedBuiltInElements=="boolean"&&(ue.allowCustomizedBuiltInElements=z.allowCustomizedBuiltInElements),ut(ue),Ee&&(He=!1),Ke&&($e=!0),ot&&(T=We({},Ro),ee=Bn(null),ot.html===!0&&(We(T,$o),We(ee,Po)),ot.svg===!0&&(We(T,Ia),We(ee,Ha),We(ee,la)),ot.svgFilters===!0&&(We(T,Fa),We(ee,Ha),We(ee,la)),ot.mathMl===!0&&(We(T,Oa),We(ee,Io),We(ee,la))),se.tagCheck=null,se.attributeCheck=null,Nt(B,"ADD_TAGS")&&(typeof B.ADD_TAGS=="function"?se.tagCheck=B.ADD_TAGS:Sn(B.ADD_TAGS)&&(T===q&&(T=Dt(T)),We(T,B.ADD_TAGS,Ge))),Nt(B,"ADD_ATTR")&&(typeof B.ADD_ATTR=="function"?se.attributeCheck=B.ADD_ATTR:Sn(B.ADD_ATTR)&&(ee===_e&&(ee=Dt(ee)),We(ee,B.ADD_ATTR,Ge))),Nt(B,"ADD_FORBID_CONTENTS")&&Sn(B.ADD_FORBID_CONTENTS)&&(Te===Me&&(Te=Dt(Te)),We(Te,B.ADD_FORBID_CONTENTS,Ge)),ct&&(T["#text"]=!0),Ae&&We(T,["html","head","body"]),T.table&&(We(T,["tbody"]),delete ie.tbody),B.TRUSTED_TYPES_POLICY){if(typeof B.TRUSTED_TYPES_POLICY.createHTML!="function")throw vn('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof B.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw vn('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');const re=N;N=B.TRUSTED_TYPES_POLICY;try{D=S("")}catch(we){throw N=re,we}}else B.TRUSTED_TYPES_POLICY===null?(N=void 0,D=""):(N===void 0&&(N=Y()),N&&typeof D=="string"&&(D=S("")));it&&it(B),Mt=B},Lt=We({},[...Ia,...Fa,...Xh]),Ut=We({},[...Oa,...Jh]),oe=function(B,z,re){return z.namespaceURI===Qe?B==="svg":z.namespaceURI===ht?B==="svg"&&(re==="annotation-xml"||Wt[re]):!!Lt[B]},me=function(B,z,re){return z.namespaceURI===Qe?B==="math":z.namespaceURI===Et?B==="math"&&xt[re]:!!Ut[B]},fe=function(B,z,re){return z.namespaceURI===Et&&!xt[re]||z.namespaceURI===ht&&!Wt[re]?!1:!Ut[B]&&(Cn[B]||!Lt[B])},Ne=function(B){let z=y(B);(!z||!z.tagName)&&(z={namespaceURI:vt,tagName:"template"});const re=Hn(B.tagName),we=Hn(z.tagName);return Zt[B.namespaceURI]?B.namespaceURI===Et?oe(re,z,we):B.namespaceURI===ht?me(re,z,we):B.namespaceURI===Qe?fe(re,z,we):!!(_t==="application/xhtml+xml"&&Zt[B.namespaceURI]):!1},K=function(B){On(n.removed,{element:B});try{y(B).removeChild(B)}catch{if(f(B),!y(B))throw vn("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place")}},ne=function(B,z,re){try{B.removeAttributeNode(z)}catch{try{B.removeAttribute(re)}catch{}}},be=function(B){Q(B);const z=g(B);if(z){const we=[];yn(z,Be=>{On(we,Be)}),yn(we,Be=>{try{f(Be)}catch{}})}const re=_(B);if(re)for(let we=re.length-1;we>=0;--we){const Be=re[we],Le=Be&&Be.name;typeof Le=="string"&&ne(B,Be,Le)}},xe=function(B,z,re){if(!re)try{re=z.getAttributeNode(B)}catch{re=null}On(n.removed,{attribute:re||null,from:z});try{re?z.removeAttributeNode(re):z.removeAttribute(B)}catch{try{z.removeAttribute(B)}catch{}}if(B==="is")if($e||Ke)try{K(z)}catch{}else try{z.setAttribute(B,"")}catch{}},De=function(B){const z=_(B);if(z)for(let re=z.length-1;re>=0;--re){const we=z[re],Be=we&&we.name;typeof Be!="string"||ee[Ge(Be)]||ne(B,we,Be)}},Q=function(B){const z=[B];for(;z.length>0;){const re=z.pop();k(re)===jt.element&&De(re);const Be=g(re);if(Be)for(let Le=Be.length-1;Le>=0;--Le)z.push(Be[Le])}},ke=function(B,z){return je?B==="patchsrc"?!0:B==="for"&&z!=="label"&&z!=="output":!1},Fe=function(B){if(!je)return;const z=[B];for(;z.length>0;){const re=z.pop(),we=k(re);if(we===jt.processingInstruction||we===jt.comment&&mt(Ho,re.data)){try{f(re)}catch{}continue}if(we===jt.element){const Le=re,Je=Ge(M(re));try{Le.hasAttribute&&Le.hasAttribute("patchsrc")&&Le.removeAttribute("patchsrc"),Le.hasAttribute&&Le.hasAttribute("for")&&ke("for",Je)&&Le.removeAttribute("for")}catch{}}const Be=g(re);if(Be)for(let Le=Be.length-1;Le>=0;--Le)z.push(Be[Le])}},et=function(B){let z=null,re=null;if(Pe)B="<remove></remove>"+B;else{const Le=Eo(B,/^[\r\n\t ]+/);re=Le&&Le[0]}_t==="application/xhtml+xml"&&vt===Qe&&(B='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+B+"</body></html>");const we=N?S(B):B;if(vt===Qe)try{z=new p().parseFromString(we,_t)}catch{}if(!z||!z.documentElement){z=J.createDocument(vt,"template",null);try{z.documentElement.innerHTML=Tt?D:we}catch{}}const Be=z.body||z.documentElement;return B&&re&&Be.insertBefore(a.createTextNode(re),Be.childNodes[0]||null),vt===Qe?$.call(z,Ae?"html":"body")[0]:Ae?z.documentElement:Be},Ct=function(B){const z=x?x(B):B.ownerDocument;return O.call(z||B,B,u.SHOW_ELEMENT|u.SHOW_COMMENT|u.SHOW_TEXT|u.SHOW_PROCESSING_INSTRUCTION|u.SHOW_CDATA_SECTION,null)},Bt=function(B){return B=Vn(B,Z," "),B=Vn(B,I," "),B=Vn(B,W," "),B},$t=function(B){var z;B.normalize();const re=x?x(B):B.ownerDocument,we=O.call(re||B,B,u.SHOW_TEXT|u.SHOW_COMMENT|u.SHOW_CDATA_SECTION|u.SHOW_PROCESSING_INSTRUCTION,null);let Be=we.nextNode();for(;Be;)Be.data=Bt(Be.data),Be=we.nextNode();const Le=(z=B.querySelectorAll)===null||z===void 0?void 0:z.call(B,"template");Le&&yn(Le,Je=>{St(Je.content)&&$t(Je.content)})},Rt=function(B){const z=A?A(B):null;return typeof z!="string"||Ge(z)!=="form"?!1:typeof B.nodeName!="string"||typeof B.textContent!="string"||typeof B.removeChild!="function"||B.attributes!==_(B)||typeof B.removeAttribute!="function"||typeof B.setAttribute!="function"||typeof B.namespaceURI!="string"||typeof B.insertBefore!="function"||typeof B.hasChildNodes!="function"||B.nodeType!==v(B)||B.childNodes!==g(B)},St=function(B){if(!v||typeof B!="object"||B===null)return!1;try{return v(B)===jt.documentFragment}catch{return!1}},bn=function(B){if(!v||typeof B!="object"||B===null)return!1;try{return typeof v(B)=="number"}catch{return!1}};function Gt(ce,B,z){ce.length!==0&&yn(ce,re=>{re.call(n,B,z,Mt)})}const Yl=function(B,z){return!!(je&&B.hasChildNodes()&&!bn(B.firstElementChild)&&mt(Oo,B.textContent)&&mt(Oo,B.innerHTML)||je&&B.namespaceURI===Qe&&um[z]&&(bn(B.firstElementChild)||typeof B.textContent=="string"&&mt(dm[z],B.textContent))||B.nodeType===jt.processingInstruction||je&&B.nodeType===jt.comment&&mt(Ho,B.data))},sa=function(B,z){if(B instanceof RegExp)return mt(B,z);if(B instanceof Function){for(var re=arguments.length,we=new Array(re>2?re-2:0),Be=2;Be<re;Be++)we[Be-2]=arguments[Be];return!!B(z,...we)}return!1},Xl=function(B,z,re){if(!ie[z]&&to(z)&&sa(ue.tagNameCheck,z))return!1;if(ct&&!Te[z]){const we=y(B),Be=g(B);if(Be&&we){const Le=Be.length;for(let Je=Le-1;Je>=0;--Je){const nt=B===re?C(Be[Je],!0):Be[Je];we.insertBefore(nt,b(B))}}}return K(B),!0},Xr=function(B,z,re,we){return B.length===0?z:z===re||z===we?Dt(z):z},Jr=function(B,z){return B===z||y(B)!==null?!1:(qe&&Q(B),!0)},Qr=function(B,z){if(Gt(H.beforeSanitizeElements,B,null),Jr(B,z))return!0;if(Rt(B))return K(B),!0;const re=Ge(M(B));if(T=Xr(H.uponSanitizeElement,T,q,at),Gt(H.uponSanitizeElement,B,{tagName:re,allowedTags:T}),Jr(B,z))return!0;if(Yl(B,re))return K(B),!0;if(ie[re]||!(se.tagCheck instanceof Function&&se.tagCheck(re))&&!T[re]){const Be=Xl(B,re,z);return Be===!1&&Gt(H.afterSanitizeElements,B,null),Be}if(k(B)===jt.element&&!Ne(B)||(re==="noscript"||re==="noembed"||re==="noframes")&&mt(lm,B.innerHTML))return K(B),!0;if(Ee&&B.nodeType===jt.text){const Be=Bt(B.textContent);B.textContent!==Be&&(On(n.removed,{element:B.cloneNode()}),B.textContent=Be)}return Gt(H.afterSanitizeElements,B,null),!1},eo=function(B,z,re){if(te[z]||ke(z,B)||Ue&&(z==="id"||z==="name")&&(re in a||re in wt))return!1;const we=ee[z]||se.attributeCheck instanceof Function&&se.attributeCheck(z,B);return He&&mt(U,z)||Se&&mt(le,z)?!0:we?Ye[z]||mt(he,Vn(re,Ce,""))||(z==="src"||z==="xlink:href"||z==="href")&&B!=="script"&&To(re,"data:")===0&&tt[B]||Ve&&!mt(pe,Vn(re,Ce,""))?!0:!re:to(B)&&sa(ue.tagNameCheck,B)&&sa(ue.attributeNameCheck,z,B)||z==="is"&&ue.allowCustomizedBuiltInElements&&sa(ue.tagNameCheck,re)},Jl=We({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),to=function(B){return!Jl[Hn(B)]&&mt(ve,B)},Ql=function(B,z,re,we){if(N&&typeof h=="object"&&typeof h.getAttributeType=="function"&&!re)switch(h.getAttributeType(B,z)){case"TrustedHTML":return S(we);case"TrustedScriptURL":return V(we)}return we},ec=function(B,z,re,we){try{re?B.setAttributeNS(re,z,we):B.setAttribute(z,we),Rt(B)?K(B):jo(n.removed)}catch{xe(z,B)}},no=function(B){Gt(H.beforeSanitizeAttributes,B,null);const z=B.attributes;if(!z||Rt(B))return;ee=Xr(H.uponSanitizeAttribute,ee,_e,ge);const re={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:ee,forceKeepAttr:void 0};let we=z.length;const Be=Ge(B.nodeName);for(;we--;){const Le=z[we],Je=Le.name,nt=Le.namespaceURI,kt=Le.value,At=Ge(Je),Ta=kt;let gt=Je==="value"?Ta:Wh(Ta);if(re.attrName=At,re.attrValue=gt,re.keepAttr=!0,re.forceKeepAttr=void 0,Gt(H.uponSanitizeAttribute,B,re),gt=re.attrValue,Ie&&(At==="id"||At==="name")&&To(gt,dt)!==0&&(xe(Je,B,Le),gt=dt+gt),je&&mt(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,gt)){xe(Je,B,Le);continue}if(At==="attributename"&&Eo(gt,"href")){xe(Je,B,Le);continue}if(!re.forceKeepAttr){if(!re.keepAttr){xe(Je,B,Le);continue}if(!Re&&mt(cm,gt)){xe(Je,B,Le);continue}if(Ee&&(gt=Bt(gt)),!eo(Be,At,gt)){xe(Je,B,Le);continue}gt=Ql(Be,At,nt,gt),gt!==Ta&&ec(B,Je,nt,gt)}}Gt(H.afterSanitizeAttributes,B,null)},ia=function(B){let z=null;const re=Ct(B);for(Gt(H.beforeSanitizeShadowDOM,B,null);z=re.nextNode();)if(Gt(H.uponSanitizeShadowNode,z,null),Qr(z,B),no(z),St(z.content)&&ia(z.content),k(z)===jt.element){const we=w(z);St(we)&&(Ea(we),ia(we))}Gt(H.afterSanitizeShadowDOM,B,null)},Ea=function(B){const z=[{node:B,shadow:null}];for(;z.length>0;){const re=z.pop();if(re.shadow){ia(re.shadow);continue}const we=re.node,Le=k(we)===jt.element,Je=g(we);if(Je)for(let nt=Je.length-1;nt>=0;--nt)z.push({node:Je[nt],shadow:null});if(Le){const nt=A?A(we):null;if(typeof nt=="string"&&Ge(nt)==="template"){const kt=we.content;St(kt)&&z.push({node:kt,shadow:null})}}if(Le){const nt=w(we);St(nt)&&z.push({node:null,shadow:nt},{node:nt,shadow:null})}}};return n.sanitize=function(ce){let B=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},z=null,re=null,we=null,Be=null;if(Tt=!ce,Tt&&(ce="<!-->"),typeof ce!="string"&&!bn(ce)&&(ce=Zh(ce),typeof ce!="string"))throw vn("dirty is not a string, aborting");if(!n.isSupported)return ce;ze?(T=at,ee=ge):Ot(B),(H.uponSanitizeElement.length>0||H.uponSanitizeAttribute.length>0)&&(T=Dt(T)),H.uponSanitizeAttribute.length>0&&(ee=Dt(ee)),n.removed=[];const Le=qe&&typeof ce!="string"&&bn(ce);if(Le){Fe(ce);const kt=M(ce);if(typeof kt=="string"){const At=Ge(kt);if(!T[At]||ie[At])throw be(ce),vn("root node is forbidden and cannot be sanitized in-place")}if(Rt(ce))throw be(ce),vn("root node is clobbered and cannot be sanitized in-place");try{Ea(ce)}catch(At){throw be(ce),At}}else if(bn(ce))z=et("<!---->"),re=z.ownerDocument.importNode(ce,!0),re.nodeType===jt.element&&re.nodeName==="BODY"||re.nodeName==="HTML"?z=re:z.appendChild(re),Ea(re);else{if(!$e&&!Ee&&!Ae&&ce.indexOf("<")===-1)return N&&Ze?S(ce):ce;if(z=et(ce),!z)return $e?null:Ze?D:""}z&&Pe&&K(z.firstChild);const Je=Le?ce:z;try{const kt=Ct(Je);for(;we=kt.nextNode();)Qr(we,Je),no(we),St(we.content)&&ia(we.content)}catch(kt){throw Le&&(be(ce),yn(n.removed,At=>{At.element&&Q(At.element)})),kt}if(Le)return yn(n.removed,kt=>{kt.element&&Q(kt.element)}),Ee&&$t(ce),ce;if($e){if(Ee&&$t(z),Ke)for(Be=j.call(z.ownerDocument);z.firstChild;)Be.appendChild(z.firstChild);else Be=z;return(ee.shadowroot||ee.shadowrootmode)&&(Be=F.call(r,Be,!0)),Be}let nt=Ae?z.outerHTML:z.innerHTML;return Ae&&T["!doctype"]&&z.ownerDocument&&z.ownerDocument.doctype&&z.ownerDocument.doctype.name&&mt(sm,z.ownerDocument.doctype.name)&&(nt="<!DOCTYPE "+z.ownerDocument.doctype.name+`>
|
|
808
|
-
`+nt),Ee&&(nt=Bt(nt)),N&&Ze?
|
|
806
|
+
*/const Dh=[["path",{d:"M15 5.88 14 10h5.83a2 2 0 0 1 1.92 2.56l-2.33 8A2 2 0 0 1 17.5 22H4a2 2 0 0 1-2-2v-8a2 2 0 0 1 2-2h2.76a2 2 0 0 0 1.79-1.11L12 2a3.13 3.13 0 0 1 3 3.88Z",key:"emmmcr"}],["path",{d:"M7 10v12",key:"1qc93n"}]],Sh=K("thumbs-up",Dh),wo={"alert-triangle":io,"align-start-vertical":uc,anchor:Vp,armchair:Wp,"arrow-down":pc,"arrow-left":mc,"arrow-right":fc,"arrow-right-left":bc,"arrow-up-a-z":Up,"audio-lines":vc,baby:_c,ban:kc,"bar-chart-2":Kp,bell:Nc,"book-marked":Dc,"book-open":jc,"bow-arrow":Tc,braces:Lc,bug:Rc,calendar:vo,"calendar-check":Ic,"calendar-days":Oc,camera:Vc,car:Xp,"chart-column":Wc,"chart-line":Uc,"chart-pie":Kc,check:lo,"chevron-down":xo,"chevron-left":co,"chevron-right":uo,"chevron-up":_o,circle:xh,"clipboard-list":Qc,coffee:Qp,combine:tu,copy:au,"chevrons-left-right-ellipsis":ou,"credit-card":iu,database:po,diff:uu,download:ho,ear:hu,edit:Cu,"edit-2":gu,"edit-3":yu,ellipsis:mo,eraser:_u,"external-link":ku,eye:Nu,"file-text":Du,"flip-horizontal":ju,"folder-open":Tu,"folder-plus":Lu,gamepad:Ru,"gamepad-2":th,gavel:Iu,"git-merge":Co,globe:Hu,headphones:zu,heart:qu,home:Gu,inbox:ah,info:Zu,"key-round":Xu,landmark:Qu,layers:td,"layout-dashboard":ad,leaf:od,lightbulb:id,link:cd,"link-2":dd,"link-2-off":hd,list:Cd,"list-checks":gd,"list-ordered":yd,"list-tree":oh,loader:xd,lock:wd,"log-out":Ad,mail:Bd,"map-pin":Sd,menu:Ah,"message-circle":Ed,"message-circle-question-mark":Md,"message-square":$d,"message-square-more":ih,"message-square-text":Pd,minus:ch,"minus-circle":Fd,moon:Bh,"more-horizontal":mo,package:Hd,palette:zd,"party-popper":qd,pause:Gd,pencil:Zd,phone:Xd,play:Qd,"play-circle":t1,plus:a1,printer:o1,"refresh-cw":i1,repeat:c1,replace:d1,rocket:h1,"rotate-ccw":C1,"rotate-cw":g1,salad:y1,"scan-search":x1,search:A1,"circle-alert":fo,"alert-circle":fo,"check-circle":go,scissors:B1,"search-x":S1,send:E1,settings:M1,"share-2":dh,"shield-check":$1,"shopping-cart":P1,shuffle:F1,"skip-back":H1,"skip-forward":z1,sparkles:hh,square:q1,star:G1,store:Z1,"sun-medium":X1,table:Q1,"table-2":tp,tag:ap,terminal:op,"text-cursor-input":ip,"text-initial":cp,"thumbs-up":Sh,ticket:dp,trash:Cp,triangle:wh,"trash-2":hp,"trending-up":gp,"triangle-alert":io,trophy:yp,type:Ch,unlink:xp,upload:wp,user:La,"user-plus":Np,"user-round":Dp,"user-round-check":jp,users:Tp,"users-round":Lp,volume:gh,"volume-2":bo,wrench:Pp,x:yo,zap:Op};function jh(e){return wo[e]??null}const ko=new Set;function Eh(e){return ro&&!(e in wo)&&!ko.has(e)&&(ko.add(e),console.warn(`[ihabdevteam-core] lucide \uC544\uC774\uCF58 '${e}' \uC774 \uC815\uC801 \uBAA9\uB85D\uC5D0 \uC5C6\uC5B4 \uB80C\uB354\uB418\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4. utils/lucideIconSet.ts \uC758 STATIC_LUCIDE_ICONS \uC5D0 \uCD94\uAC00\uD558\uC138\uC694.`)),Promise.resolve(null)}const Th=e=>e.replace(/([A-Z]+)([A-Z][a-z])/g,"$1-$2").replace(/([a-z0-9])([A-Z])/g,"$1-$2").replace(/([A-Za-z])([0-9])/g,"$1-$2").replace(/[_ ]+/g,"-").toLowerCase();function Mh(e){const n=e.toLowerCase();if(n.startsWith("http://")||n.startsWith("https://")||n.startsWith("data:")||e.includes("/assets/"))return null;const a=(e.split("/").pop()||"").replace(/\.svg$/,"");return a?Th(a):null}const Ao=new Map;function Lh(e){const n=typeof e=="string"?Mh(e):null,a=n?jh(n)??Ao.get(n)??null:null,[r,o]=i.useState(null);return i.useEffect(()=>{if(!n||a)return;let s=!1;return Eh(n).then(l=>{Ao.set(n,l),s||o(l)}),()=>{s=!0}},[n,a]),a??r}/*! @license DOMPurify 3.4.14 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.4.14/LICENSE */function No(e,n){(n==null||n>e.length)&&(n=e.length);for(var a=0,r=Array(n);a<n;a++)r[a]=e[a];return r}function $h(e){if(Array.isArray(e))return e}function Rh(e,n){var a=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(a!=null){var r,o,s,l,c=[],u=!0,d=!1;try{if(s=(a=a.call(e)).next,n!==0)for(;!(u=(r=s.call(a)).done)&&(c.push(r.value),c.length!==n);u=!0);}catch(p){d=!0,o=p}finally{try{if(!u&&a.return!=null&&(l=a.return(),Object(l)!==l))return}finally{if(d)throw o}}return c}}function Ph(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
807
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ih(e,n){return $h(e)||Rh(e,n)||Fh(e,n)||Ph()}function Fh(e,n){if(e){if(typeof e=="string")return No(e,n);var a={}.toString.call(e).slice(8,-1);return a==="Object"&&e.constructor&&(a=e.constructor.name),a==="Map"||a==="Set"?Array.from(e):a==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?No(e,n):void 0}}const Bo=Object.entries,Do=Object.setPrototypeOf,Oh=Object.isFrozen,Hh=Object.getPrototypeOf,Vh=Object.getOwnPropertyDescriptor;let lt=Object.freeze,ut=Object.seal,Bn=Object.create,So=typeof Reflect<"u"&&Reflect,$a=So.apply,Ra=So.construct;lt||(lt=function(n){return n}),ut||(ut=function(n){return n}),$a||($a=function(n,a){for(var r=arguments.length,o=new Array(r>2?r-2:0),s=2;s<r;s++)o[s-2]=arguments[s];return n.apply(a,o)}),Ra||(Ra=function(n){for(var a=arguments.length,r=new Array(a>1?a-1:0),o=1;o<a;o++)r[o-1]=arguments[o];return new n(...r)});const yn=it(Array.prototype.forEach),zh=it(Array.prototype.lastIndexOf),jo=it(Array.prototype.pop),On=it(Array.prototype.push),Wh=it(Array.prototype.splice),Dn=Array.isArray,Hn=it(String.prototype.toLowerCase),Pa=it(String.prototype.toString),Eo=it(String.prototype.match),Vn=it(String.prototype.replace),To=it(String.prototype.indexOf),qh=it(String.prototype.trim),Uh=it(Number.prototype.toString),Gh=it(Boolean.prototype.toString),Mo=typeof BigInt>"u"?null:it(BigInt.prototype.toString),Lo=typeof Symbol>"u"?null:it(Symbol.prototype.toString),Nt=it(Object.prototype.hasOwnProperty),zn=it(Object.prototype.toString),mt=it(RegExp.prototype.test),vn=Kh(TypeError);function it(e){return function(n){n instanceof RegExp&&(n.lastIndex=0);for(var a=arguments.length,r=new Array(a>1?a-1:0),o=1;o<a;o++)r[o-1]=arguments[o];return $a(e,n,r)}}function Kh(e){return function(){for(var n=arguments.length,a=new Array(n),r=0;r<n;r++)a[r]=arguments[r];return Ra(e,a)}}function We(e,n){let a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Hn;if(Do&&Do(e,null),!Dn(n))return e;let r=n.length;for(;r--;){let o=n[r];if(typeof o=="string"){const s=a(o);s!==o&&(Oh(n)||(n[r]=s),o=s)}e[o]=!0}return e}function Zh(e){for(let n=0;n<e.length;n++)Nt(e,n)||(e[n]=null);return e}function St(e){const n=Bn(null);for(const r of Bo(e)){var a=Ih(r,2);const o=a[0],s=a[1];Nt(e,o)&&(Dn(s)?n[o]=Zh(s):s&&typeof s=="object"&&s.constructor===Object?n[o]=St(s):n[o]=s)}return n}function Yh(e){switch(typeof e){case"string":return e;case"number":return Uh(e);case"boolean":return Gh(e);case"bigint":return Mo?Mo(e):"0";case"symbol":return Lo?Lo(e):"Symbol()";case"undefined":return zn(e);case"function":case"object":{if(e===null)return zn(e);const n=e,a=Ht(n,"toString");if(typeof a=="function"){const r=a(n);return typeof r=="string"?r:zn(r)}return zn(e)}default:return zn(e)}}function Ht(e,n){for(;e!==null;){const r=Vh(e,n);if(r){if(r.get)return it(r.get);if(typeof r.value=="function")return it(r.value)}e=Hh(e)}function a(){return null}return a}function Xh(e){try{return mt(e,""),!0}catch{return!1}}const $o=lt(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),Ia=lt(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),Fa=lt(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),Jh=lt(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),Oa=lt(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),Qh=lt(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Ro=lt(["#text"]),Po=lt(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","command","commandfor","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns"]),Ha=lt(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dominant-baseline","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","pointer-events","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-orientation","text-rendering","textlength","type","u1","u2","unicode","values","vector-effect","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),Io=lt(["accent","accentunder","align","bevelled","close","columnalign","columnlines","columnspacing","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lquote","lspace","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),la=lt(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),em=ut(/{{[\w\W]*|^[\w\W]*}}/g),tm=ut(/<%[\w\W]*|^[\w\W]*%>/g),nm=ut(/\${[\w\W]*/g),am=ut(/^data-[\-\w.\u00B7-\uFFFF]+$/),rm=ut(/^aria-[\-\w]+$/),Fo=ut(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),om=ut(/^(?:\w+script|data):/i),sm=ut(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),im=ut(/^html$/i),lm=ut(/^[a-z][.\w]*(-[.\w]+)+$/i),Oo=ut(/<[/\w!]/g),Ho=ut(/<[/\w]/g),cm=ut(/<\/no(script|embed|frames)/i),um=ut(/\/>/i),jt={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,processingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},Vo=["style","script","xmp","iframe","noembed","noframes","plaintext","noscript"],dm=lt(We({},Vo)),pm=(function(){const e={};return yn(Vo,n=>{e[n]=ut(new RegExp("</"+n+"(?=[\\t\\n\\f\\r />])","i"))}),lt(e)})(),hm=function(){return typeof window>"u"?null:window},mm=function(n,a){if(typeof n!="object"||typeof n.createPolicy!="function")return null;let r=null;const o="data-tt-policy-suffix";a&&a.hasAttribute(o)&&(r=a.getAttribute(o));const s="dompurify"+(r?"#"+r:"");try{return n.createPolicy(s,{createHTML(l){return l},createScriptURL(l){return l}})}catch{return console.warn("TrustedTypes policy "+s+" could not be created."),null}},zo=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},sn=function(n,a,r,o){return Nt(n,a)&&Dn(n[a])?We(o.base?St(o.base):{},n[a],o.transform):r},Va=function(n,a,r){const o=Nt(n,a)?n[a]:void 0;return o&&typeof o=="object"?St(o):r()};function Wo(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:hm();const n=ce=>Wo(ce);if(n.version="3.4.14",n.removed=[],!e||!e.document||e.document.nodeType!==jt.document||!e.Element)return n.isSupported=!1,n;let a=e.document;const r=a,o=r.currentScript;e.DocumentFragment;const s=e.HTMLTemplateElement,l=e.Node,c=e.Element,u=e.NodeFilter,d=e.NamedNodeMap;d===void 0&&(e.NamedNodeMap||e.MozNamedAttrMap),e.HTMLFormElement;const p=e.DOMParser,h=e.trustedTypes,m=c.prototype,f=Ht(m,"cloneNode"),C=Ht(m,"remove"),b=Ht(m,"nextSibling"),g=Ht(m,"childNodes"),y=Ht(m,"parentNode"),w=Ht(m,"shadowRoot"),_=Ht(m,"attributes"),v=l&&l.prototype?Ht(l.prototype,"nodeType"):null,A=l&&l.prototype?Ht(l.prototype,"nodeName"):null,x=l&&l.prototype?Ht(l.prototype,"ownerDocument"):null,k=function(B){return v?v(B):B.nodeType},T=function(B){return A?A(B):B.nodeName};if(typeof s=="function"){const ce=a.createElement("template");ce.content&&ce.content.ownerDocument&&(a=ce.content.ownerDocument)}let N,D="",P,L=!1,j=0;const R=function(){if(j>0)throw vn('A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the "DOMPurify and Trusted Types" section of the README.')},M=function(B){R(),j++;try{return N.createHTML(B)}finally{j--}},z=function(B){R(),j++;try{return N.createScriptURL(B)}finally{j--}},H=function(){return L||(P=mm(h,o),L=!0),P},Z=a,J=Z.implementation,O=Z.createNodeIterator,S=Z.createDocumentFragment,$=Z.getElementsByTagName,F=r.importNode;let V=zo();n.isSupported=typeof Bo=="function"&&typeof y=="function"&&J&&J.createHTMLDocument!==void 0;const X=em,I=tm,q=nm,G=am,le=rm,pe=om,fe=sm,ve=lm;let he=Fo,E=null;const U=We({},[...$o,...Ia,...Fa,...Oa,...Ro]);let ee=null;const _e=We({},[...Po,...Ha,...Io,...la]);let ue=Object.seal(Bn(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),ie=null,te=null;const se=Object.seal(Bn(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let De=!0,He=!0,Ve=!1,Re=!0,Ee=!1,je=!0,Ae=!1,ze=!1,at=null,ge=null,Pe=!1,$e=!1,Ke=!1,Ze=!1,Ue=!0,Ie=!1;const dt="user-content-";let ct=!0,qe=!1,st={},Te=null;const Me=We({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","selectedcontent","style","svg","template","thead","title","video","xmp"]);let tt=null;const Ct=We({},["audio","video","img","source","image","track"]);let Ye=null;const Xe=We({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),ht="http://www.w3.org/1998/Math/MathML",Et="http://www.w3.org/2000/svg",Qe="http://www.w3.org/1999/xhtml";let vt=Qe,Tt=!1,Zt=null;const on=We({},[ht,Et,Qe],Pa),Ft=lt(["mi","mo","mn","ms","mtext"]);let Wt=We({},Ft);const qt=lt(["annotation-xml"]);let xt=We({},qt);const fn=We({},["title","style","font","a","script"]);let _t=null;const gn=["application/xhtml+xml","text/html"],Yt="text/html";let Ge=null,Mt=null;const wt=a.createElement("form"),Xt=function(B){return B instanceof RegExp||B instanceof Function},Ot=function(){let B=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(Mt&&Mt===B)return;(!B||typeof B!="object")&&(B={}),B=St(B),_t=gn.indexOf(B.PARSER_MEDIA_TYPE)===-1?Yt:B.PARSER_MEDIA_TYPE,Ge=_t==="application/xhtml+xml"?Pa:Hn,E=sn(B,"ALLOWED_TAGS",U,{transform:Ge}),ee=sn(B,"ALLOWED_ATTR",_e,{transform:Ge}),Zt=sn(B,"ALLOWED_NAMESPACES",on,{transform:Pa}),Ye=sn(B,"ADD_URI_SAFE_ATTR",Xe,{transform:Ge,base:Xe}),tt=sn(B,"ADD_DATA_URI_TAGS",Ct,{transform:Ge,base:Ct}),Te=sn(B,"FORBID_CONTENTS",Me,{transform:Ge}),ie=sn(B,"FORBID_TAGS",St({}),{transform:Ge}),te=sn(B,"FORBID_ATTR",St({}),{transform:Ge}),st=Nt(B,"USE_PROFILES")?B.USE_PROFILES&&typeof B.USE_PROFILES=="object"?St(B.USE_PROFILES):B.USE_PROFILES:!1,De=B.ALLOW_ARIA_ATTR!==!1,He=B.ALLOW_DATA_ATTR!==!1,Ve=B.ALLOW_UNKNOWN_PROTOCOLS||!1,Re=B.ALLOW_SELF_CLOSE_IN_ATTR!==!1,Ee=B.SAFE_FOR_TEMPLATES||!1,je=B.SAFE_FOR_XML!==!1,Ae=B.WHOLE_DOCUMENT||!1,$e=B.RETURN_DOM||!1,Ke=B.RETURN_DOM_FRAGMENT||!1,Ze=B.RETURN_TRUSTED_TYPE||!1,Pe=B.FORCE_BODY||!1,Ue=B.SANITIZE_DOM!==!1,Ie=B.SANITIZE_NAMED_PROPS||!1,ct=B.KEEP_CONTENT!==!1,qe=B.IN_PLACE||!1,he=Xh(B.ALLOWED_URI_REGEXP)?B.ALLOWED_URI_REGEXP:Fo,vt=typeof B.NAMESPACE=="string"?B.NAMESPACE:Qe,Wt=Va(B,"MATHML_TEXT_INTEGRATION_POINTS",()=>We({},Ft)),xt=Va(B,"HTML_INTEGRATION_POINTS",()=>We({},qt));const W=Va(B,"CUSTOM_ELEMENT_HANDLING",()=>Bn(null));if(ue=Bn(null),Nt(W,"tagNameCheck")&&Xt(W.tagNameCheck)&&(ue.tagNameCheck=W.tagNameCheck),Nt(W,"attributeNameCheck")&&Xt(W.attributeNameCheck)&&(ue.attributeNameCheck=W.attributeNameCheck),Nt(W,"allowCustomizedBuiltInElements")&&typeof W.allowCustomizedBuiltInElements=="boolean"&&(ue.allowCustomizedBuiltInElements=W.allowCustomizedBuiltInElements),ut(ue),Ee&&(He=!1),Ke&&($e=!0),st&&(E=We({},Ro),ee=Bn(null),st.html===!0&&(We(E,$o),We(ee,Po)),st.svg===!0&&(We(E,Ia),We(ee,Ha),We(ee,la)),st.svgFilters===!0&&(We(E,Fa),We(ee,Ha),We(ee,la)),st.mathMl===!0&&(We(E,Oa),We(ee,Io),We(ee,la))),se.tagCheck=null,se.attributeCheck=null,Nt(B,"ADD_TAGS")&&(typeof B.ADD_TAGS=="function"?se.tagCheck=B.ADD_TAGS:Dn(B.ADD_TAGS)&&(E===U&&(E=St(E)),We(E,B.ADD_TAGS,Ge))),Nt(B,"ADD_ATTR")&&(typeof B.ADD_ATTR=="function"?se.attributeCheck=B.ADD_ATTR:Dn(B.ADD_ATTR)&&(ee===_e&&(ee=St(ee)),We(ee,B.ADD_ATTR,Ge))),Nt(B,"ADD_FORBID_CONTENTS")&&Dn(B.ADD_FORBID_CONTENTS)&&(Te===Me&&(Te=St(Te)),We(Te,B.ADD_FORBID_CONTENTS,Ge)),ct&&(E["#text"]=!0),Ae&&We(E,["html","head","body"]),E.table&&(We(E,["tbody"]),delete ie.tbody),B.TRUSTED_TYPES_POLICY){if(typeof B.TRUSTED_TYPES_POLICY.createHTML!="function")throw vn('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof B.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw vn('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');const re=N;N=B.TRUSTED_TYPES_POLICY;try{D=M("")}catch(we){throw N=re,we}}else B.TRUSTED_TYPES_POLICY===null?(N=void 0,D=""):(N===void 0&&(N=H()),N&&typeof D=="string"&&(D=M("")));lt&<(B),Mt=B},Lt=We({},[...Ia,...Fa,...Jh]),Ut=We({},[...Oa,...Qh]),oe=function(B,W,re){return W.namespaceURI===Qe?B==="svg":W.namespaceURI===ht?B==="svg"&&(re==="annotation-xml"||Wt[re]):!!Lt[B]},me=function(B,W,re){return W.namespaceURI===Qe?B==="math":W.namespaceURI===Et?B==="math"&&xt[re]:!!Ut[B]},Ce=function(B,W,re){return W.namespaceURI===Et&&!xt[re]||W.namespaceURI===ht&&!Wt[re]?!1:!Ut[B]&&(fn[B]||!Lt[B])},Ne=function(B){let W=y(B);(!W||!W.tagName)&&(W={namespaceURI:vt,tagName:"template"});const re=Hn(B.tagName),we=Hn(W.tagName);return Zt[B.namespaceURI]?B.namespaceURI===Et?oe(re,W,we):B.namespaceURI===ht?me(re,W,we):B.namespaceURI===Qe?Ce(re,W,we):!!(_t==="application/xhtml+xml"&&Zt[B.namespaceURI]):!1},Y=function(B){On(n.removed,{element:B});try{y(B).removeChild(B)}catch{if(C(B),!y(B))throw vn("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place")}},ne=function(B,W,re){try{B.removeAttributeNode(W)}catch{try{B.removeAttribute(re)}catch{}}},be=function(B){Q(B);const W=g(B);if(W){const we=[];yn(W,Be=>{On(we,Be)}),yn(we,Be=>{try{C(Be)}catch{}})}const re=_(B);if(re)for(let we=re.length-1;we>=0;--we){const Be=re[we],Le=Be&&Be.name;typeof Le=="string"&&ne(B,Be,Le)}},xe=function(B,W,re){if(!re)try{re=W.getAttributeNode(B)}catch{re=null}On(n.removed,{attribute:re||null,from:W});try{re?W.removeAttributeNode(re):W.removeAttribute(B)}catch{try{W.removeAttribute(B)}catch{}}if(B==="is")if($e||Ke)try{Y(W)}catch{}else try{W.setAttribute(B,"")}catch{}},Se=function(B){const W=_(B);if(W)for(let re=W.length-1;re>=0;--re){const we=W[re],Be=we&&we.name;typeof Be!="string"||ee[Ge(Be)]||ne(B,we,Be)}},Q=function(B){const W=[B];for(;W.length>0;){const re=W.pop();k(re)===jt.element&&Se(re);const Be=g(re);if(Be)for(let Le=Be.length-1;Le>=0;--Le)W.push(Be[Le])}},ke=function(B,W){return je?B==="patchsrc"?!0:B==="for"&&W!=="label"&&W!=="output":!1},Fe=function(B){if(!je)return;const W=[B];for(;W.length>0;){const re=W.pop(),we=k(re);if(we===jt.processingInstruction||we===jt.comment&&mt(Ho,re.data)){try{C(re)}catch{}continue}if(we===jt.element){const Le=re,Je=Ge(T(re));try{Le.hasAttribute&&Le.hasAttribute("patchsrc")&&Le.removeAttribute("patchsrc"),Le.hasAttribute&&Le.hasAttribute("for")&&ke("for",Je)&&Le.removeAttribute("for")}catch{}}const Be=g(re);if(Be)for(let Le=Be.length-1;Le>=0;--Le)W.push(Be[Le])}},et=function(B){let W=null,re=null;if(Pe)B="<remove></remove>"+B;else{const Le=Eo(B,/^[\r\n\t ]+/);re=Le&&Le[0]}_t==="application/xhtml+xml"&&vt===Qe&&(B='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+B+"</body></html>");const we=N?M(B):B;if(vt===Qe)try{W=new p().parseFromString(we,_t)}catch{}if(!W||!W.documentElement){W=J.createDocument(vt,"template",null);try{W.documentElement.innerHTML=Tt?D:we}catch{}}const Be=W.body||W.documentElement;return B&&re&&Be.insertBefore(a.createTextNode(re),Be.childNodes[0]||null),vt===Qe?$.call(W,Ae?"html":"body")[0]:Ae?W.documentElement:Be},ft=function(B){const W=x?x(B):B.ownerDocument;return O.call(W||B,B,u.SHOW_ELEMENT|u.SHOW_COMMENT|u.SHOW_TEXT|u.SHOW_PROCESSING_INSTRUCTION|u.SHOW_CDATA_SECTION,null)},Bt=function(B){return B=Vn(B,X," "),B=Vn(B,I," "),B=Vn(B,q," "),B},$t=function(B){var W;B.normalize();const re=x?x(B):B.ownerDocument,we=O.call(re||B,B,u.SHOW_TEXT|u.SHOW_COMMENT|u.SHOW_CDATA_SECTION|u.SHOW_PROCESSING_INSTRUCTION,null);let Be=we.nextNode();for(;Be;)Be.data=Bt(Be.data),Be=we.nextNode();const Le=(W=B.querySelectorAll)===null||W===void 0?void 0:W.call(B,"template");Le&&yn(Le,Je=>{Dt(Je.content)&&$t(Je.content)})},Rt=function(B){const W=A?A(B):null;return typeof W!="string"||Ge(W)!=="form"?!1:typeof B.nodeName!="string"||typeof B.textContent!="string"||typeof B.removeChild!="function"||B.attributes!==_(B)||typeof B.removeAttribute!="function"||typeof B.setAttribute!="function"||typeof B.namespaceURI!="string"||typeof B.insertBefore!="function"||typeof B.hasChildNodes!="function"||B.nodeType!==v(B)||B.childNodes!==g(B)},Dt=function(B){if(!v||typeof B!="object"||B===null)return!1;try{return v(B)===jt.documentFragment}catch{return!1}},bn=function(B){if(!v||typeof B!="object"||B===null)return!1;try{return typeof v(B)=="number"}catch{return!1}};function Gt(ce,B,W){ce.length!==0&&yn(ce,re=>{re.call(n,B,W,Mt)})}const Xl=function(B,W){return!!(je&&B.hasChildNodes()&&!bn(B.firstElementChild)&&mt(Oo,B.textContent)&&mt(Oo,B.innerHTML)||je&&B.namespaceURI===Qe&&dm[W]&&(bn(B.firstElementChild)||typeof B.textContent=="string"&&mt(pm[W],B.textContent))||B.nodeType===jt.processingInstruction||je&&B.nodeType===jt.comment&&mt(Ho,B.data))},sa=function(B,W){if(B instanceof RegExp)return mt(B,W);if(B instanceof Function){for(var re=arguments.length,we=new Array(re>2?re-2:0),Be=2;Be<re;Be++)we[Be-2]=arguments[Be];return!!B(W,...we)}return!1},Jl=function(B,W,re){if(!ie[W]&&to(W)&&sa(ue.tagNameCheck,W))return!1;if(ct&&!Te[W]){const we=y(B),Be=g(B);if(Be&&we){const Le=Be.length;for(let Je=Le-1;Je>=0;--Je){const nt=B===re?f(Be[Je],!0):Be[Je];we.insertBefore(nt,b(B))}}}return Y(B),!0},Xr=function(B,W,re,we){return B.length===0?W:W===re||W===we?St(W):W},Jr=function(B,W){return B===W||y(B)!==null?!1:(qe&&Q(B),!0)},Qr=function(B,W){if(Gt(V.beforeSanitizeElements,B,null),Jr(B,W))return!0;if(Rt(B))return Y(B),!0;const re=Ge(T(B));if(E=Xr(V.uponSanitizeElement,E,U,at),Gt(V.uponSanitizeElement,B,{tagName:re,allowedTags:E}),Jr(B,W))return!0;if(Xl(B,re))return Y(B),!0;if(ie[re]||!(se.tagCheck instanceof Function&&se.tagCheck(re))&&!E[re]){const Be=Jl(B,re,W);return Be===!1&&Gt(V.afterSanitizeElements,B,null),Be}if(k(B)===jt.element&&!Ne(B)||(re==="noscript"||re==="noembed"||re==="noframes")&&mt(cm,B.innerHTML))return Y(B),!0;if(Ee&&B.nodeType===jt.text){const Be=Bt(B.textContent);B.textContent!==Be&&(On(n.removed,{element:B.cloneNode()}),B.textContent=Be)}return Gt(V.afterSanitizeElements,B,null),!1},eo=function(B,W,re){if(te[W]||ke(W,B)||Ue&&(W==="id"||W==="name")&&(re in a||re in wt))return!1;const we=ee[W]||se.attributeCheck instanceof Function&&se.attributeCheck(W,B);return He&&mt(G,W)||De&&mt(le,W)?!0:we?Ye[W]||mt(he,Vn(re,fe,""))||(W==="src"||W==="xlink:href"||W==="href")&&B!=="script"&&To(re,"data:")===0&&tt[B]||Ve&&!mt(pe,Vn(re,fe,""))?!0:!re:to(B)&&sa(ue.tagNameCheck,B)&&sa(ue.attributeNameCheck,W,B)||W==="is"&&ue.allowCustomizedBuiltInElements&&sa(ue.tagNameCheck,re)},Ql=We({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),to=function(B){return!Ql[Hn(B)]&&mt(ve,B)},ec=function(B,W,re,we){if(N&&typeof h=="object"&&typeof h.getAttributeType=="function"&&!re)switch(h.getAttributeType(B,W)){case"TrustedHTML":return M(we);case"TrustedScriptURL":return z(we)}return we},tc=function(B,W,re,we){try{re?B.setAttributeNS(re,W,we):B.setAttribute(W,we),Rt(B)?Y(B):jo(n.removed)}catch{xe(W,B)}},no=function(B){Gt(V.beforeSanitizeAttributes,B,null);const W=B.attributes;if(!W||Rt(B))return;ee=Xr(V.uponSanitizeAttribute,ee,_e,ge);const re={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:ee,forceKeepAttr:void 0};let we=W.length;const Be=Ge(B.nodeName);for(;we--;){const Le=W[we],Je=Le.name,nt=Le.namespaceURI,kt=Le.value,At=Ge(Je),Ta=kt;let gt=Je==="value"?Ta:qh(Ta);if(re.attrName=At,re.attrValue=gt,re.keepAttr=!0,re.forceKeepAttr=void 0,Gt(V.uponSanitizeAttribute,B,re),gt=re.attrValue,Ie&&(At==="id"||At==="name")&&To(gt,dt)!==0&&(xe(Je,B,Le),gt=dt+gt),je&&mt(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,gt)){xe(Je,B,Le);continue}if(At==="attributename"&&Eo(gt,"href")){xe(Je,B,Le);continue}if(!re.forceKeepAttr){if(!re.keepAttr){xe(Je,B,Le);continue}if(!Re&&mt(um,gt)){xe(Je,B,Le);continue}if(Ee&&(gt=Bt(gt)),!eo(Be,At,gt)){xe(Je,B,Le);continue}gt=ec(Be,At,nt,gt),gt!==Ta&&tc(B,Je,nt,gt)}}Gt(V.afterSanitizeAttributes,B,null)},ia=function(B){let W=null;const re=ft(B);for(Gt(V.beforeSanitizeShadowDOM,B,null);W=re.nextNode();)if(Gt(V.uponSanitizeShadowNode,W,null),Qr(W,B),no(W),Dt(W.content)&&ia(W.content),k(W)===jt.element){const we=w(W);Dt(we)&&(Ea(we),ia(we))}Gt(V.afterSanitizeShadowDOM,B,null)},Ea=function(B){const W=[{node:B,shadow:null}];for(;W.length>0;){const re=W.pop();if(re.shadow){ia(re.shadow);continue}const we=re.node,Le=k(we)===jt.element,Je=g(we);if(Je)for(let nt=Je.length-1;nt>=0;--nt)W.push({node:Je[nt],shadow:null});if(Le){const nt=A?A(we):null;if(typeof nt=="string"&&Ge(nt)==="template"){const kt=we.content;Dt(kt)&&W.push({node:kt,shadow:null})}}if(Le){const nt=w(we);Dt(nt)&&W.push({node:null,shadow:nt},{node:nt,shadow:null})}}};return n.sanitize=function(ce){let B=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},W=null,re=null,we=null,Be=null;if(Tt=!ce,Tt&&(ce="<!-->"),typeof ce!="string"&&!bn(ce)&&(ce=Yh(ce),typeof ce!="string"))throw vn("dirty is not a string, aborting");if(!n.isSupported)return ce;ze?(E=at,ee=ge):Ot(B),(V.uponSanitizeElement.length>0||V.uponSanitizeAttribute.length>0)&&(E=St(E)),V.uponSanitizeAttribute.length>0&&(ee=St(ee)),n.removed=[];const Le=qe&&typeof ce!="string"&&bn(ce);if(Le){Fe(ce);const kt=T(ce);if(typeof kt=="string"){const At=Ge(kt);if(!E[At]||ie[At])throw be(ce),vn("root node is forbidden and cannot be sanitized in-place")}if(Rt(ce))throw be(ce),vn("root node is clobbered and cannot be sanitized in-place");try{Ea(ce)}catch(At){throw be(ce),At}}else if(bn(ce))W=et("<!---->"),re=W.ownerDocument.importNode(ce,!0),re.nodeType===jt.element&&re.nodeName==="BODY"||re.nodeName==="HTML"?W=re:W.appendChild(re),Ea(re);else{if(!$e&&!Ee&&!Ae&&ce.indexOf("<")===-1)return N&&Ze?M(ce):ce;if(W=et(ce),!W)return $e?null:Ze?D:""}W&&Pe&&Y(W.firstChild);const Je=Le?ce:W;try{const kt=ft(Je);for(;we=kt.nextNode();)Qr(we,Je),no(we),Dt(we.content)&&ia(we.content)}catch(kt){throw Le&&(be(ce),yn(n.removed,At=>{At.element&&Q(At.element)})),kt}if(Le)return yn(n.removed,kt=>{kt.element&&Q(kt.element)}),Ee&&$t(ce),ce;if($e){if(Ee&&$t(W),Ke)for(Be=S.call(W.ownerDocument);W.firstChild;)Be.appendChild(W.firstChild);else Be=W;return(ee.shadowroot||ee.shadowrootmode)&&(Be=F.call(r,Be,!0)),Be}let nt=Ae?W.outerHTML:W.innerHTML;return Ae&&E["!doctype"]&&W.ownerDocument&&W.ownerDocument.doctype&&W.ownerDocument.doctype.name&&mt(im,W.ownerDocument.doctype.name)&&(nt="<!DOCTYPE "+W.ownerDocument.doctype.name+`>
|
|
808
|
+
`+nt),Ee&&(nt=Bt(nt)),N&&Ze?M(nt):nt},n.setConfig=function(){let ce=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Ot(ce),ze=!0,at=E,ge=ee},n.clearConfig=function(){Mt=null,ze=!1,at=null,ge=null,N=P,D=""},n.isValidAttribute=function(ce,B,W){Mt||Ot({});const re=Ge(ce),we=Ge(B);return eo(re,we,W)},n.addHook=function(ce,B){typeof B=="function"&&Nt(V,ce)&&On(V[ce],B)},n.removeHook=function(ce,B){if(Nt(V,ce)){if(B!==void 0){const W=zh(V[ce],B);return W===-1?void 0:Wh(V[ce],W,1)[0]}return jo(V[ce])}},n.removeHooks=function(ce){Nt(V,ce)&&(V[ce]=[])},n.removeAllHooks=function(){V=zo()},n}var Cm=Wo();const fm=/^(?:[a-z]+:)?\/\//i,gm="__ihab_core_asset_base_url__";function bm(){return globalThis[gm]??""}function za(e){const n=String(e||"").trim();if(!n)return"";if(fm.test(n)||n.startsWith("data:")||n.startsWith("blob:"))return n;const a=n.startsWith("/")?n:`/${n}`,r=bm();return r?`${r}${a}`:a}const qo="__ihab_core_storage_resolvers__";function Wn(){return globalThis[qo]??null}function ym(e){globalThis[qo]=e}let Uo=class extends Error{constructor(n){super(`
|
|
809
809
|
[ihabdevteam-core] ${n}() \uD638\uCD9C \uC2E4\uD328 \u2014 configureStorage()\uAC00 \uC124\uC815\uB418\uC9C0 \uC54A\uC558\uC2B5\uB2C8\uB2E4.
|
|
810
810
|
|
|
811
811
|
\uC571 \uCD08\uAE30\uD654 \uC2DC\uC810(main.tsx \uB4F1)\uC5D0 \uC544\uB798\uC640 \uAC19\uC774 \uD55C \uBC88 \uD638\uCD9C\uD558\uC138\uC694:
|
|
@@ -824,24 +824,24 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
824
824
|
\uC124\uCE58 \uBA85\uB839\uC5B4 (\uC2A4\uD1A0\uB9AC\uC9C0 SDK \uBBF8\uC124\uCE58 \uC2DC):
|
|
825
825
|
npm install @supabase/supabase-js
|
|
826
826
|
pnpm add @supabase/supabase-js
|
|
827
|
-
`),this.name="StorageNotConfiguredError"}};function ym(e){bm(e)}function Go(e,n){if(!e)return null;const a=Wn();return a?.resolvePath?a.resolvePath(e,n):n?`${n}/${e}.mp3`:null}async function Ko(e){if(!e)return null;const n=Wn();if(!n)throw new Uo("getSignedOrPublicUrl");try{return await n.resolveUrl(e)}catch{return null}}async function Zo(e){const n=Wn();if(!n)throw new Uo("downloadSound");return n.download(e)}function vm(){return Wn()?.noiseBaseUrl??"/sounds/noise"}function Yo(){const e=Number(Wn()?.noiseFileGain);return Number.isFinite(e)&&e>0?e:1}const Xo="__ihab_core_tts_config__";function Wa(){return globalThis[Xo]?.urlResolver??null}function xm(){return globalThis[Xo]?.fallbackUrlResolver??null}const _m="__ihab_core_pronunciation_resolver__";function wm(){return globalThis[_m]??null}let ln=null;const qn=new WeakMap,qa=new WeakMap,Ua=new WeakMap;let Jo=!1;const Qo=e=>Math.max(0,Math.min(1,Number.isFinite(e)?e:0));function km(){if(Jo||typeof document>"u")return;Jo=!0;const e=()=>{try{ln&&ln.state!=="running"&&ln.resume()}catch{}};for(const n of["pointerdown","touchend","keydown"])document.addEventListener(n,e,{capture:!0,passive:!0})}function es(){if(ln)return ln;try{const e=window.AudioContext||window.webkitAudioContext;return e?(ln=new e,km(),ln):null}catch{return null}}function Ga(){try{ln?.resume()}catch{}}function Ka(e,n){const a=qn.get(n);if(a)return a;try{const r=e.createMediaElementSource(n),o=e.createGain(),s=e.createAnalyser();s.fftSize=1024,s.smoothingTimeConstant=.6,o.gain.value=Qo(qa.get(n)??n.volume),r.connect(o),o.connect(s),o.connect(e.destination);try{n.volume=1}catch{}const l={gain:o,analyser:s};return qn.set(n,l),l}catch{return null}}function ca(e){if(!e)return Promise.resolve(null);const n=qn.get(e);if(n)return Promise.resolve(n.analyser);const a=es();if(!a)return Promise.resolve(null);if(a.state==="running")return Promise.resolve(Ka(a,e)?.analyser??null);const r=Ua.get(e);if(r)return r;const o=Promise.resolve().then(()=>a.resume()).then(()=>a.state==="running"?Ka(a,e)?.analyser??null:null).catch(()=>null).finally(()=>{Ua.delete(e)});return Ua.set(e,o),o}function Am(e){if(!e)return null;const n=qn.get(e);if(n)return n.analyser;const a=es();return a?a.state==="running"?Ka(a,e)?.analyser??null:(ca(e),null):null}function cn(e,n){const a=Qo(n);qa.set(e,a);const r=qn.get(e);if(r){try{e.volume!==1&&(e.volume=1)}catch{}const o=r.gain.gain;try{const s=r.gain.context.currentTime;o.cancelScheduledValues(s),o.setTargetAtTime(a,s,.01)}catch{try{o.value=a}catch{}}return"gain"}try{e.volume=a}catch{}return"element"}function ua(e){return qa.get(e)??e.volume}function Nm(e,n){e.getFloatTimeDomainData(n);let a=0;for(let r=0;r<n.length;r++){const o=n[r];a+=o*o}return Math.sqrt(a/n.length)}const Bm="__ihab_core_image_config__";function Dn(){return globalThis[Bm]??null}const ts="word_image_existence_map_v1";let xn=null;const da=new Map;function Sm(){if(xn)return xn;try{const e=typeof localStorage<"u"?localStorage.getItem(ts):null;xn=e?JSON.parse(e):{}}catch{xn={}}return xn}let Za=null;function Dm(){Za||(Za=setTimeout(()=>{Za=null;try{typeof localStorage<"u"&&xn&&localStorage.setItem(ts,JSON.stringify(xn))}catch{}},200))}function jm(e,n){return`${e}_${n??1}`}async function ns(e,n){const a=Sm(),r=jm(e,n);if(r in a)return a[r];if(da.has(r))return da.get(r);const o=Dn();if(!o)return!1;const s=o(e,n);if(!s)return!1;const l=fetch(s,{method:"HEAD",signal:AbortSignal.timeout(8e3)}).then(c=>c.ok).catch(()=>!1).then(c=>(a[r]=c,Dm(),da.delete(r),c));return da.set(r,l),l}const as=["\u3131","\u3132","\u3134","\u3137","\u3138","\u3139","\u3141","\u3142","\u3143","\u3145","\u3146","\u3147","\u3148","\u3149","\u314A","\u314B","\u314C","\u314D","\u314E"],rs=["\u314F","\u3150","\u3151","\u3152","\u3153","\u3154","\u3155","\u3156","\u3157","\u3158","\u3159","\u315A","\u315B","\u315C","\u315D","\u315E","\u315F","\u3160","\u3161","\u3162","\u3163"],Em=["","\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 Un(e){if(!e)return null;const n=e.charCodeAt(0)-44032;return n<0||n>=11172?null:{cho:Math.floor(n/588),jung:Math.floor(n%588/28),jong:n%28}}function Tm(e){const n=Un(e[0]||"");return n?as[n.cho]:""}function Mm(e,n){if(!n)return!0;const a=[...n],r=c=>as.includes(c),o=c=>rs.includes(c),s=a.map(c=>r(c)?"cho":o(c)?"jung":Un(c)?"syl":"other");if(s.includes("other"))return e.includes(n);const l=[...e];for(let c=0;c+a.length<=l.length;c++){let u=!0;for(let d=0;d<a.length;d++){const p=l[c+d],h=s[d];if(h==="cho"){if(Tm(p)!==a[d]){u=!1;break}}else if(h==="jung"){const m=Un(p);if(!m||rs[m.jung]!==a[d]){u=!1;break}}else{const m=Un(a[d]);if(m&&m.jong===0){const C=Un(p);if(!C||C.cho!==m.cho||C.jung!==m.jung){u=!1;break}}else if(p!==a[d]){u=!1;break}}}if(u)return!0}return!1}const Lm={3:["\u3131","\u3145"],5:["\u3134","\u3148"],6:["\u3134","\u314E"],9:["\u3139","\u3131"],10:["\u3139","\u3141"],11:["\u3139","\u3142"],12:["\u3139","\u3145"],13:["\u3139","\u314C"],14:["\u3139","\u314D"],15:["\u3139","\u314E"],18:["\u3142","\u3145"]};Object.fromEntries(Object.entries(Lm).map(([e,n])=>[n.join(""),Em[Number(e)]]));const $m="word_pair_index_v2",Rm="word_pair_index_sig_v2";let pa=null;function Pm(){try{if(typeof localStorage>"u")return null;const e=localStorage.getItem($m),n=localStorage.getItem(Rm);return!e||!n?null:{index:JSON.parse(e),sig:n}}catch{return null}}function Im(){if(pa)return pa;const e=Pm();return e?(pa=e.index,e.sig,pa):null}const Fm={\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"}},Ya=/[ㄱ-ㅎ]/,Om=/[ㅏ-ㅣ]/;function os(e){for(let n=e.length-1;n>=0;n--){const a=e[n],r=a.charCodeAt(0);if(r>=44032&&r<=55203||Ya.test(a)||Om.test(a))return a}return null}function Hm(e){const n=os(e);if(!n)return"\uAC00";const a=n.charCodeAt(0);return a>=44032&&a<=55203?(a-44032)%28!==0?"\uC774":"\uAC00":Ya.test(n)?"\uC774":"\uAC00"}function Vm(e){return`${e}${Hm(e)}`}function zm(e){const n=os(e);if(!n)return"\uB97C";const a=n.charCodeAt(0);return a>=44032&&a<=55203?(a-44032)%28!==0?"\uC744":"\uB97C":Ya.test(n)?"\uC744":"\uB97C"}function Wm(e){return`${e}${zm(e)}`}function qm(e,n,a){const r=e.slice(),[o]=r.splice(n,1);return r.splice(a,0,o),r}function Gn(e,n=Math.random){const a=e.slice();for(let r=a.length-1;r>0;r--){const o=Math.floor(n()*(r+1));[a[r],a[o]]=[a[o],a[r]]}return a}const Um=()=>{const e="\uC54C \uC218 \uC5C6\uB294 \uC624\uB958",n=typeof Pt?.t=="function"?Pt.t("common.unknownError",{defaultValue:e}):void 0;return typeof n=="string"&&n?n:e};function ss(e,n){if(n===void 0&&(n=Um()),e instanceof Error)return e.message||n;if(typeof e=="string")return e||n;if(e&&typeof e=="object"){const a=e;for(const r of[a.message,a.error_description,a.error])if(typeof r=="string"&&r)return r}return n}const Gm="__ihab_core_word_pool__";function Km(){return globalThis[Gm]??null}const is=globalThis;function ls(e,n){const a=r=>{};try{const r=n();r&&typeof r.catch=="function"&&r.catch(a)}catch(r){a(r)}}function Zm(e){ls("time",()=>is.__ihabTrainingTimeLogger?.(e))}function Ym(e){ls("completion",()=>is.__ihabTrainingCompletionLogger?.(e))}function Vt(e){return typeof e=="string"?e.trim()||null:typeof e=="number"?String(e):null}function Xm(e){for(const n of["correct","isCorrect","heard","judgement"])if(typeof e[n]=="boolean")return e[n];return e.score===1?!0:e.score===0?!1:null}function Jm(e){return Array.isArray(e)?e.map((n,a)=>{const r=n??{};return{index:a,itemId:Vt(r.contextCode)??Vt(r.itemId)??Vt(r.itemCode)??Vt(r.id),question:Vt(r.question)??Vt(r.sentence)??Vt(r.word)??Vt(r.targetSyllable),answer:Vt(r.answer),selected:Vt(r.selectedText)??Vt(r.selected),correct:Xm(r)}}):[]}const Xa=globalThis;async function Qm(){try{return await Xa.__ihabNoiseSettingsStore?.load()??null}catch{return null}}function e0(e){const n=a=>{};try{const a=Xa.__ihabNoiseSettingsStore?.save(e);a&&typeof a.catch=="function"&&a.catch(n)}catch(a){n(a)}}function Ja(e){try{Xa.__ihabNoiseSettingsStore?.applied?.(e)}catch{}}async function t0(e){if(typeof document<"u"){const n=document.activeElement;let a=null;try{if(a=document.createElement("textarea"),a.value=e,a.setAttribute("readonly",""),a.style.position="fixed",a.style.top="0",a.style.left="0",a.style.opacity="0",a.style.pointerEvents="none",document.body.appendChild(a),a.focus(),a.select(),a.setSelectionRange(0,e.length),document.execCommand("copy"))return!0}catch{}finally{if(a?.parentNode&&a.parentNode.removeChild(a),n&&n!==document.activeElement&&typeof n.focus=="function"&&n.isConnected)try{n.focus({preventScroll:!0})}catch{}}}try{if(typeof navigator<"u"&&navigator.clipboard&&typeof navigator.clipboard.writeText=="function")return await navigator.clipboard.writeText(e),!0}catch{}return!1}function n0(){return Qa(new Date)}function Qa(e){if(e==null||e==="")return"";const n=e instanceof Date?e:new Date(e);return isNaN(n.getTime())?"":new Intl.DateTimeFormat("fr-CA",{timeZone:"Asia/Seoul"}).format(n)}function cs(e,n){if(!e)return"";const a=new Date(e).getTime();if(Number.isNaN(a))return"";const r=Math.max(0,Math.floor((Date.now()-a)/1e3)),o=Math.floor(r/60),s=Math.floor(o/60),l=Math.floor(s/24),c=Math.floor(l/7),u=Math.floor(l/30),d=Math.floor(l/365);return o<1?n("store.time.justNow","\uBC29\uAE08 \uC804"):o<60?n("store.time.minutesAgo",{n:o}):s<24?n("store.time.hoursAgo",{n:s}):l<7?n("store.time.daysAgo",{n:l}):c<5?n("store.time.weeksAgo",{n:c}):l<365?n("store.time.monthsAgo",{n:Math.min(u,11)}):n("store.time.yearsAgo",{n:d})}function us(e,n={}){const{sep:a=".",pad:r=!0,trailingDot:o=!1,fallback:s="\u2014"}=n;if(!e)return s;const l=Qa(e instanceof Date?e:String(e));if(!l)return s;const[c,u,d]=l.split("-"),p=r?u:String(Number(u)),h=r?d:String(Number(d));return`${c}${a}${p}${a}${h}${o?".":""}`}function Kn(e){if(!e)return e;const n=e.trim();return/^[₩$]/.test(n)?n:/원\s*$/.test(n)?"\u20A9"+n.replace(/\s*원\s*$/,"").trim():n}function ds(e,n){if(!e)return"-";const a=/^(\d{1,2}):(\d{2})$/.exec(e.trim());if(!a)return e;const r=Number(a[1]),o=Number(a[2]),s=a[1].padStart(2,"0");return o===0?n("date.timeH",{h:r,hh:s,mm:a[2]}):n("date.timeHM",{h:r,hh:s,m:o,mm:a[2]})}function er(e){return(e??0).toLocaleString("ko-KR")}const a0=[{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"}]}],r0=[{key:"LISTEN_IN_NOISE",label:"\uC18C\uC74C \uD558 \uBB38\uC7A5 \uB4E3\uAE30",icon:"party-popper",desc:"\uC18C\uC74C \uD658\uACBD \uC18D \uBB38\uC7A5 \uC774\uD574 \uD6C8\uB828"},{key:"SHORT_STORY",label:"\uC9E7\uC740 \uC774\uC57C\uAE30 \uB4E3\uAE30",icon:"message-square",desc:"\uC9E7\uC740 \uC774\uC57C\uAE30 + 4\uBB38\uC81C"},{key:"LONG_STORY",label:"\uAE34 \uC774\uC57C\uAE30 \uB4E3\uAE30",icon:"message-square-text",desc:"\uAE34 \uC774\uC57C\uAE30 \uC2EC\uD654 \uD6C8\uB828"},{key:"ORDERING_SENTENCE",label:"\uBB38\uC7A5 \uC21C\uC11C\uD654 \uD558\uAE30",icon:"align-start-vertical",desc:"\uC21C\uC11C \uBC30\uC5F4 \uD6C8\uB828"}];function ps(){return a0}function o0(){return r0}const s0=[],i0=[],l0=[],c0=[];function u0(){return{LISTEN_IN_NOISE:s0,SHORT_STORY:i0,LONG_STORY:l0,ORDERING_SENTENCE:c0}}const d0=[{key:"LISTEN_IN_NOISE",label:"\uC18C\uC74C \uD558 \uBB38\uC7A5 \uB4E3\uAE30",icon:"party-popper",desc:"\uB2E4\uC591\uD55C \uC18C\uC74C \uD658\uACBD\uC5D0\uC11C \uBB38\uC7A5 \uCCAD\uB825\uC744 \uD6C8\uB828\uD569\uB2C8\uB2E4."},{key:"SHORT_STORY",label:"\uC9E7\uC740 \uC774\uC57C\uAE30 \uB4E3\uAE30",icon:"message-square",desc:"\uC9E7\uC740 \uC774\uC57C\uAE30\uB97C \uB4E3\uACE0 \uAE30\uC5B5\uD558\uC5EC \uBB38\uC81C\uB97C \uD480\uC5B4\uBD05\uB2C8\uB2E4."},{key:"LONG_STORY",label:"\uAE34 \uC774\uC57C\uAE30 \uB4E3\uAE30",icon:"message-square-text",desc:"\uAE34 \uC774\uC57C\uAE30\uB97C \uB4E3\uACE0 \uAE30\uC5B5\uD558\uC5EC \uB2E4\uC218\uC758 \uBB38\uC81C\uB97C \uD480\uC5B4\uBD05\uB2C8\uB2E4."},{key:"ORDERING_SENTENCE",label:"\uBB38\uC7A5 \uC21C\uC11C\uD654 \uD558\uAE30",icon:"align-start-vertical",desc:"\uC5EC\uB7EC\uAC1C\uC758 \uC9E7\uC740 \uBB38\uC7A5\uC744 \uB4E3\uACE0 \uAE30\uC5B5\uD558\uC5EC \uADF8 \uC21C\uC11C\uC5D0 \uB9DE\uAC8C \uBC30\uC5F4\uD569\uB2C8\uB2E4."}];let ha=null,hs=null,ms=null;function p0(){const e=Km();if(e&&e.entries.length>0){const n=Im();if(ha&&hs===e&&ms===n)return ha;const a=new Set,r=[];for(const o of e.entries)!o.word||a.has(o.word)||(a.add(o.word),r.push({w:o.word,s:o.syllables,p:n?.[o.word]?[...n[o.word].cho??[],...n[o.word].jung??[],...n[o.word].jong??[]]:[],pron:o.pronunciation||o.word,grade:o.grade}));return ha=r,hs=e,ms=n,ha}return[]}new Proxy([],{get(e,n){const a=p0(),r=a[n];return typeof r=="function"?r.bind(a):r}});const h0="0.130.0";function m0(e){return typeof window>"u"?"":mm.sanitize(e,{USE_PROFILES:{svg:!0,svgFilters:!0},FORBID_TAGS:["script","use"],FORBID_ATTR:["xlink:href","href"]})}function f0(e){const[n,a]=i.useState(null),[r,o]=i.useState(null),[s,l]=i.useState(null),[c,u]=i.useState(null);return i.useEffect(()=>{if(!e||typeof e!="string"||!e.endsWith(".svg")){a(null),o(null),l(null);return}const d=e.split("/").pop();let p=e;d&&(e.startsWith("/")?p=za(e):/^(Logo|Symbol)/i.test(d)?p=za(`logo/${d}`):(/^https?:\/\//i.test(e)||e.startsWith("data:"),p=e)),a(p)},[e]),i.useEffect(()=>{if(!n)return;let d=!1;async function p(){try{let h=await fetch(n);h.ok||(h=await fetch(n));const m=h.headers.get("content-type")||"";if(d)return;if(m.includes("svg")){o("mask");return}if(m.startsWith("image/")){o("img");return}const C=await fetch(n);if(!C.ok)throw new Error("not ok");const f=await C.text();if(d)return;if(/^\s*<svg[\s>]/i.test(f)){const b=m0(f);if(!b){o("none");return}l(b),o("inline");return}o("none")}catch{d||o("none")}}return p(),()=>{d=!0}},[n]),i.useEffect(()=>{let d=!1,p=null;return r==="mask"&&n&&fetch(n).then(h=>{if(!h.ok)throw new Error("fetch failed");return h.blob()}).then(h=>{d||(p=URL.createObjectURL(h),u(p))}).catch(()=>{d||o("img")}),()=>{d=!0,p&&URL.revokeObjectURL(p),u(null)}},[r,n]),{iconToUse:n,mode:r,svgText:s,blobUrl:c}}function Oe(e){const{icon:n,label:a,className:r,imgClassName:o,maskClassName:s,svgClassName:l,wrapperStyle:c,size:u}=e||{},d=r??"iconRenderer-icon",p=o??"iconRenderer-icon-image",h=s??"iconRenderer-icon-mask",m=l??"iconRenderer-icon-svg",C=typeof n=="string"?n:null,f=Mh(C),{iconToUse:b,mode:g,svgText:y,blobUrl:w}=f0(C),_=(k,M={})=>t.jsx("span",{className:d,style:c,...M,children:k}),v=(k,M={})=>t.jsx("img",{src:k,alt:typeof a=="string"?a:a?String(a):"",className:p,...M});if(!n)return null;if(typeof n!="string")return _(n);if(n==="none")return _(t.jsx("span",{className:m,dangerouslySetInnerHTML:{__html:'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" aria-hidden="true"></svg>'}}),{"aria-hidden":"true"});if(f)try{return _(i.createElement(f,{className:m,size:typeof u=="number"?u:20}),{"aria-hidden":"true"})}catch{}if(b&&b.endsWith(".svg")){if(g==="mask"){const k={"--icon-url":w?`url(${w})`:`url(${b})`,...typeof u=="number"?{"--icon-size":`${u}px`}:null};return _(t.jsx("span",{className:h,style:k}),{"aria-hidden":"true"})}return g==="img"?_(v(b,{onError:k=>{k.currentTarget.onerror=null,k.currentTarget.style.display="none"}}),{"aria-hidden":"true"}):g==="inline"?_(t.jsx("span",{className:m,dangerouslySetInnerHTML:y?{__html:y}:void 0}),{"aria-hidden":"true"}):_(null,{"aria-hidden":"true"})}if(n.startsWith("/")||n.includes("/assets/")||n.match(/\.(png|jpg|jpeg|webp|gif)$/i))return v(za(n),{style:c,onError:k=>{k.currentTarget.onerror=null,k.currentTarget.style.display="none"}});const A=typeof u=="number"?u:20,x=`<svg width="${A}" height="${A}" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><rect x="3" y="3" width="18" height="18" rx="2" ry="2" style="fill:none;stroke:currentColor;stroke-width:2"/></svg>`;return _(t.jsx("span",{className:m,dangerouslySetInnerHTML:{__html:x}}),{"aria-hidden":"true"})}function C0({icon:e,emoji:n,title:a,message:r,hint:o,action:s,compact:l,className:c}){return t.jsxs("div",{className:ye("empty-state",l&&"empty-state--compact",c),children:[n&&t.jsx("span",{className:"empty-state__emoji",children:n}),e&&t.jsx(Oe,{icon:e,className:"empty-state__icon"}),a&&t.jsx("p",{className:"empty-state__title body-2",children:a}),r&&t.jsx("p",{className:"empty-state__message body-3",children:r}),o&&t.jsx("p",{className:"empty-state__hint caption-1",children:o}),s&&t.jsxs("button",{type:"button",className:"empty-state__action button button40 button40--bar button--variant-main button--align-center button--shape-rounded",onClick:s.onClick,children:[s.icon&&t.jsx(Oe,{icon:s.icon,className:"button__icon"}),t.jsx("span",{className:"button__label button-1",children:s.label})]})]})}function g0({message:e,hint:n,icon:a="triangle-alert",onRetry:r,retryLabel:o,className:s}){const{t:l}=de.useTranslation();return t.jsxs("div",{className:ye("empty-state","error-state",s),role:"alert",children:[t.jsx(Oe,{icon:a,className:"empty-state__icon error-state__icon"}),t.jsx("p",{className:"empty-state__message body-3",children:e??l("common.errorState.message",{defaultValue:"\uBD88\uB7EC\uC624\uC9C0 \uBABB\uD588\uC2B5\uB2C8\uB2E4."})}),n&&t.jsx("p",{className:"empty-state__hint caption-1",children:n}),r&&t.jsxs("button",{type:"button",className:"empty-state__action button button40 button40--bar button--variant-main button--align-center button--shape-rounded",onClick:r,children:[t.jsx(Oe,{icon:"rotate-cw",className:"button__icon"}),t.jsx("span",{className:"button__label button-1",children:o??l("common.errorState.retry",{defaultValue:"\uB2E4\uC2DC \uC2DC\uB3C4"})})]})]})}function b0({icon:e,title:n,description:a,cta:r,tone:o="main",disabled:s=!1,onClick:l,className:c=""}){const u=()=>{s||l?.()};return t.jsx("section",{role:"button",tabIndex:s?-1:0,"aria-disabled":s||void 0,"aria-label":n,onClick:u,onKeyDown:d=>{(d.key==="Enter"||d.key===" ")&&(d.preventDefault(),u())},className:ye("action-card",`action-card--${o}`,s&&"action-card--disabled",c),children:t.jsxs("div",{className:"action-card__body",children:[t.jsx("span",{"aria-hidden":!0,className:"action-card__chip",children:t.jsx(Oe,{icon:e,size:34})}),t.jsxs("div",{className:"action-card__text",children:[t.jsx("h2",{className:"action-card__title",children:n}),t.jsx("p",{className:"action-card__desc",children:a})]}),t.jsxs("div",{className:"action-card__cta",children:[t.jsx("span",{children:r}),t.jsx("span",{"aria-hidden":!0,className:"action-card__arrow",children:t.jsx(Oe,{icon:"arrow-right",size:18})})]})]})})}function y0({as:e="div",className:n="",children:a,storage:r,...o}){r&&ym({resolveUrl:r.resolveUrl,download:r.download??(()=>Promise.reject(new Error("[ihabdevteam-core] CoreScope: download resolver\uAC00 \uC124\uC815\uB418\uC9C0 \uC54A\uC558\uC2B5\uB2C8\uB2E4."))),exists:r.exists,resolvePath:r.resolvePath,noiseBaseUrl:r.noiseBaseUrl,noiseFileGain:r.noiseFileGain});const s=ye("ihabdevteam-core-scope",n);return t.jsx(e,{className:s,...o,children:a})}function v0({title:e="",lines:n=[],notices:a=null,children:r,variant:o="default",dismissible:s=!1,className:l=""}){const{t:c}=de.useTranslation(),[u,d]=i.useState(!1),p=i.useCallback(()=>d(!0),[]);if(u)return null;const h=`notice-box notice-box--${o} body-2 ${l}`.trim();if(a&&Array.isArray(a)&&a.length)return t.jsx("div",{className:h,role:"note",children:a.map((C,f)=>t.jsxs("div",{className:"notice-box__inner",children:[C.title?t.jsx("span",{className:"notice-box__title body-3",children:C.title}):null,t.jsx("div",{className:"notice-box__body",children:C.lines&&C.lines.length?t.jsx("div",{children:C.lines.map((b,g)=>t.jsx("span",{className:"notice-box__line body-3",children:b},g))}):C.children??null})]},f))});const m=e||n.length?t.jsxs("div",{className:"notice-box__inner",children:[e?t.jsx("span",{className:"notice-box__title body-1",children:e}):null,t.jsx("div",{className:"notice-box__body",children:n.length?t.jsx("ul",{children:n.map((C,f)=>t.jsx("li",{className:"notice-box__line",children:C},f))}):r})]}):t.jsx("div",{className:"notice-box__inner",children:r});return t.jsxs("div",{className:h,role:"note",children:[m,s&&t.jsx("button",{type:"button",className:"notice-box__dismiss",onClick:p,"aria-label":c("common.close","\uB2EB\uAE30"),children:"\xD7"})]})}function tr(e,n=!0){i.useEffect(()=>{if(!n)return;const a=e.current;if(!a)return;const r=o=>{if(o.key!=="Tab")return;const s=Array.from(a.querySelectorAll(Zn)).filter(u=>!u.closest('[aria-hidden="true"]'));if(!s.length){o.preventDefault();return}const l=s[0],c=s[s.length-1];o.shiftKey&&document.activeElement===l?(o.preventDefault(),c.focus()):!o.shiftKey&&document.activeElement===c&&(o.preventDefault(),l.focus())};return a.addEventListener("keydown",r),()=>a.removeEventListener("keydown",r)},[e,n])}const Zn='a[href], button:not([disabled]), input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex="-1"])';function un(e){const{anchorRect:n,anchorEl:a,offset:r=20,edgeMargin:o=20,onClose:s,closeOnOutsideClick:l=!0,className:c="",role:u="dialog",ariaLabel:d="",children:p,backdrop:h=!1,isMobilePopup:m=!1,useBorder:C=!0,header:f}=e||{},b=i.useRef(null),[g,y]=i.useState({position:"fixed",left:0,top:-9999}),[w,_]=i.useState(!1),[v,A]=i.useState("bottom"),[x,k]=i.useState(!1),[M,N]=i.useState(!1),D=!n&&!a,P=i.useCallback((S=!1)=>{if(M&&m)return;const V=a?a.getBoundingClientRect():n;if(!V||!b.current)return;const Y=b.current,{offsetWidth:X,offsetHeight:J}=Y,O=window.innerWidth,j=window.innerHeight,$=O-V.right,F=V.left,H=V.top,Z=j-V.bottom;let I=0,W=0,U="top";if(H>=J+r)U="top",W=V.top-r-J,I=V.left+V.width/2-X/2;else if(Z>=J+r)U="bottom",W=V.bottom+r,I=V.left+V.width/2-X/2;else if($>=X+r)U="right",I=V.right+r,W=V.top+V.height/2-J/2;else if(F>=X+r)U="left",I=V.left-r-X,W=V.top+V.height/2-J/2;else{const ve=Math.max(H,Z,$,F);ve===H?(U="top",W=V.top-r-J,I=V.left+V.width/2-X/2):ve===Z?(U="bottom",W=V.bottom+r,I=V.left+V.width/2-X/2):ve===$?(U="right",I=V.right+r,W=V.top+V.height/2-J/2):(U="left",I=V.left-r-X,W=V.top+V.height/2-J/2)}const le=Number(o)||8;I=Math.min(Math.max(I,le),O-X-le),W=Math.min(Math.max(W,le),j-J-le);const pe=Math.round(I),Ce=Math.round(W);S&&b.current?(b.current.style.left=`${pe}px`,b.current.style.top=`${Ce}px`,b.current.dataset.placement=U):(A(U||v),y({position:"fixed",left:pe,top:Ce}),k(!0))},[M,m,a,n,r,o,v]);i.useLayoutEffect(()=>{if(D)return;if(M&&m){y({position:"fixed",left:"50%",top:"50%",transform:"translate(-50%, -50%)",width:"calc(100% - 40px)",maxWidth:"calc(100% - 40px)"}),k(!0);return}P();const S=requestAnimationFrame(()=>P());return()=>cancelAnimationFrame(S)},[n,a,r,p,o,D,M,m,P]),i.useEffect(()=>{if(D||M&&m||!b.current||typeof ResizeObserver>"u")return;const S=new ResizeObserver(()=>{n&&P()});return S.observe(b.current),()=>S.disconnect()},[n,p,o,D,M,m,P]),i.useEffect(()=>{if(D||M&&m)return;const S=()=>P(!0);return window.addEventListener("resize",S),document.addEventListener("scroll",S,{passive:!0,capture:!0}),()=>{window.removeEventListener("resize",S),document.removeEventListener("scroll",S,{capture:!0})}},[n,r,p,o,D,M,m,P]),i.useEffect(()=>{if(typeof window>"u"||!window.matchMedia)return;const S=window.matchMedia("(max-width: 768px)"),V=()=>N(!!S.matches);V();try{S.addEventListener?S.addEventListener("change",V):S.addListener(V)}catch{try{S.addListener(V)}catch{}}return()=>{try{S.removeEventListener?S.removeEventListener("change",V):S.removeListener(V)}catch{}}},[]);const L=i.useRef(!1),E=i.useCallback((S=!1)=>{if(s&&!(w||L.current)){if(L.current=!0,S){_(!0);try{s&&s()}catch{}return}_(!0),setTimeout(()=>{s&&s()},200)}},[w,s,_]);i.useEffect(()=>{if(D)return;const S=X=>{const J=b.current;if(!J)return;const O=X.target;if(O&&!J.contains(O)){try{if(O.closest&&O.closest("[data-tooltip-ignore]"))return}catch{}l&&E(!0)}},V=X=>{const J=b.current;if(!J)return;const O=X.target;if(O&&!J.contains(O)){try{if(O.closest&&O.closest("[data-tooltip-ignore]"))return}catch{}l&&E(!0)}},Y=X=>{if(X.key==="Escape"){X.stopPropagation(),E();return}if(X.key==="Tab"){const J=b.current;if(!J)return;const O=J.querySelectorAll(Zn);if(!O||O.length===0)return;const j=O[0],$=O[O.length-1],F=document.activeElement;X.shiftKey?F===j&&(X.preventDefault(),$.focus()):F===$&&(X.preventDefault(),j.focus())}};return document.addEventListener("pointerdown",S,!0),document.addEventListener("click",V,!0),document.addEventListener("keydown",Y),()=>{document.removeEventListener("pointerdown",S,!0),document.removeEventListener("click",V,!0),document.removeEventListener("keydown",Y)}},[s,l,E,D]),i.useEffect(()=>{const S=()=>{E(!0)};return typeof document<"u"&&document.addEventListener("speechear-close-tooltips",S),()=>{typeof document<"u"&&document.removeEventListener("speechear-close-tooltips",S)}},[E]);const R=t.jsxs("div",{ref:b,className:`tooltip-content ${D?"tooltip-content--inline":""} ${C?"tooltip-content--bordered":""} ${w?"is-closing":""} ${c} ${M&&m?"is-mobile":""}`,role:u,"aria-label":d||void 0,style:D?{}:{...g,visibility:x?"visible":"hidden"},tabIndex:-1,"data-placement":v,"data-left":D?"":g.left,"data-top":D?"":g.top,"data-anchor-left":n?Math.round(n.left):"","data-anchor-top":n?Math.round(n.top):"","data-anchor-width":n?Math.round(n.width):"","data-anchor-height":n?Math.round(n.height):"",children:[f!=null&&t.jsx("div",{className:"tooltip-content__header h5",children:f}),p]});if(D||typeof document>"u")return R;if(h||M&&m){const S=t.jsxs("div",{className:"tooltip-portal",children:[t.jsx("div",{className:"tooltip-backdrop",onClick:()=>{l&&E(!0)}}),R]});return It.createPortal(S,document.body)}return It.createPortal(R,document.body)}function dn(e){const{anchorRect:n,text:a,offset:r=8,onClose:o,className:s="",ariaLabel:l}=e||{};return a?t.jsx(un,{anchorRect:n,offset:r,onClose:o,closeOnOutsideClick:!1,className:`tooltip-info ${s}`,ariaLabel:l||a,children:t.jsx("div",{className:"tooltip-info__content body-3",children:a})}):null}function _n(e){const{t:n}=de.useTranslation(),{anchorRect:a,title:r,items:o,activeIndex:s=-1,showIndex:l=!0,onClose:c,offset:u=12,closeOnOutsideClick:d=!0}=e||{},p=(Array.isArray(o)?o:o?[o]:[]).map(h=>typeof h=="string"?{text:h}:h);return!p.length&&!r?null:t.jsx(un,{anchorRect:a,offset:u,onClose:c,closeOnOutsideClick:d,useBorder:!1,className:"tooltip-description",ariaLabel:r||n("tooltip.description","\uC124\uBA85"),children:t.jsxs("div",{className:"tooltip-description__box",children:[r&&t.jsx("span",{className:"tooltip-description__title body-2",children:r}),t.jsx("ol",{className:"tooltip-description__items",children:p.map((h,m)=>t.jsxs("li",{className:`tooltip-description__item body-3${m===s?" tooltip-description__item--active":""}`,children:[l&&p.length>1&&t.jsxs("span",{className:"tooltip-description__index button-1",children:[m+1,"."]}),h.color&&t.jsx("span",{className:"tooltip-description__dot",style:{background:h.color},"aria-hidden":"true"}),t.jsx("span",{children:h.text})]},m))})]})})}function ae(e){const{size:n=48,type:a,htmlType:r,href:o,target:s,rel:l,icon:c,rightIcon:u,label:d,count:p,subLabel:h,children:m,ariaLabel:C,variant:f="default",align:b="center",selected:g,toggleable:y=!1,disabled:w=!1,useLabel:_=!0,useBorder:v=!0,useBG:A=!0,useDisabledCovered:x=!1,useDisabledInvisible:k=!1,width:M,minWidth:N,onClick:D,onDisabledClick:P,showTooltipInfo:L=!1,tooltipInfoText:E=null,tooltipDescription:R=null,iconSize:S="medium",iconColor:V,shape:Y="rounded",color:X,className:J,...O}=e,j=typeof n=="string"&&isNaN(Number(n))?n.toLowerCase():String(Number(n)||48),$=j.match(/^\d+$/)?`button${j}`:`button-${j}`,F=Number(n),H=!isNaN(F)&&F<40?"button-2":"button-1",Z=d??m,I=w||!!O.disabled,W=I?x?"disabled-covered":k?"disabled-invisibled":"disabled":f,U=W?`button--variant-${W}`:"",le=b?`button--align-${b}`:"",pe=Y?`button--shape-${Y}`:"",Ce=typeof V=="string"&&V.startsWith("--")?`var(${V})`:V,ve={...M?{width:typeof M=="number"?`${M}px`:M}:{},...N?{minWidth:typeof N=="number"?`${N}px`:N}:{},...v?{}:{"--button-border":I?"0":"1px solid transparent"},...Ce?{"--button-icon-color":Ce}:{},...X?{"--color-main":X}:{}},he=_===!1?"":Z,T=Array.isArray(he)?he.length>0:!!he,q=!!u,ee=a??(T||c||q?"bar":"dot"),_e=`${$}--${ee}`,ue=i.useRef(null),ie=i.useRef(I),[te,se]=i.useState(!!g),[Se,He]=i.useState(!1),[Ve,Re]=i.useState(null),Ee=i.useCallback(()=>He(!1),[]);i.useEffect(()=>{typeof g=="boolean"&&se(g)},[g]),i.useEffect(()=>{if(ie.current&&!I&&ue.current){const Me=ue.current;Me.blur(),Me.style.pointerEvents="none";const tt=requestAnimationFrame(()=>{requestAnimationFrame(()=>{ue.current&&(ue.current.style.pointerEvents="")})});return()=>cancelAnimationFrame(tt)}ie.current=I},[I]);const je=typeof g=="boolean"?!!g:te,Ae=y||typeof g=="boolean"?je?"true":"false":void 0,ze=ye("button",$,_e,U,le,pe,je?"is-selected":null,A?null:"button--no-bg",J),at=`button__icon button__icon--${S}`,ge=Array.isArray(h)?h:h!==void 0?[h]:[],Pe=()=>{if(Array.isArray(he))return he.map((tt,ft)=>{const Ye=ge[ft];return t.jsxs("span",{className:`button__label-text${Ye!==void 0?" button__label-text--has-sub":""}`,children:[tt,Ye!==void 0&&t.jsx("span",{className:"button__sub-label-text caption-1",children:Ye})]},ft)});const Me=h!==void 0;return t.jsxs("span",{className:`button__label-text${Me?" button__label-text--has-sub":""}`,children:[he,p!=null&&t.jsx("span",{className:"button__count",children:p}),Me&&t.jsx("span",{className:"button__sub-label-text caption-1",children:h})]})},$e=Me=>{I||(typeof O.onMouseLeave=="function"&&O.onMouseLeave(Me),typeof g!="boolean"&&se(!1),Me.currentTarget.blur())},Ke=Me=>{if(I){P?.(Me);return}typeof g!="boolean"&&y&&se(tt=>!tt),D?.(Me)},Ze=i.useCallback(()=>{(L||R)&&(He(!0),Re(ue.current?.getBoundingClientRect()??null))},[L,R]),Ue=i.useCallback(()=>{(L||R)&&(He(!1),Re(null))},[L,R]),Ie={...O};delete Ie.disabled,delete Ie.className,delete Ie.faded,delete Ie.useFaded,delete Ie.loading,delete Ie.onMouseLeave,delete Ie.onPointerEnter,delete Ie.onPointerLeave,delete Ie.onFocus,delete Ie.onBlur,I&&(Object.keys(Ie).forEach(Me=>{/^on[A-Z]/.test(Me)&&typeof Ie[Me]=="function"&&delete Ie[Me]}),Ie["aria-disabled"]="true");const dt=(typeof L=="string"?L:null)??(typeof E=="string"?E:null)??(typeof C=="string"?C:null)??(typeof Z=="string"?Z:null)??void 0,ct=typeof C=="string"?C:typeof Z=="string"?Z:dt,qe=(Me,tt)=>t.jsx(Oe,{icon:Me,label:tt??ct,className:at,imgClassName:"button__icon-img",maskClassName:"button__icon-mask",svgClassName:"button__icon-svg"}),ot=()=>ee==="dot"?t.jsxs(t.Fragment,{children:[qe(c),T&&t.jsx("span",{className:`button__label ${H}`,children:Pe()})]}):b==="center"&&c?t.jsxs(t.Fragment,{children:[t.jsxs("span",{className:"button__center-group",children:[t.jsx("span",{className:"button__left",children:qe(c)}),T&&t.jsx("span",{className:`button__label ${H}`,children:Pe()})]}),q&&t.jsx("span",{className:"button__right",children:qe(u)})]}):t.jsxs(t.Fragment,{children:[c&&t.jsx("span",{className:"button__left",children:qe(c,C??Z)}),T&&t.jsx("span",{className:`button__label ${H}`,children:Pe()}),q&&t.jsx("span",{className:"button__right",children:qe(u)})]}),Te=!!o&&!I;return t.jsxs(t.Fragment,{children:[t.jsx(Te?"a":"button",{...Ie,ref:ue,...Te?{href:o,target:s,rel:l??(s==="_blank"?"noreferrer":void 0)}:{type:r,disabled:I&&!P},className:ze,"aria-pressed":Ae,"aria-label":ct,"aria-disabled":Te&&I?!0:void 0,style:ve,onClick:Ke,onMouseLeave:$e,onPointerEnter:Me=>{Ze(),!I&&typeof O.onPointerEnter=="function"&&O.onPointerEnter(Me)},onPointerLeave:Me=>{Ue(),!I&&typeof O.onPointerLeave=="function"&&O.onPointerLeave(Me)},onFocus:Me=>{Ze(),!I&&typeof O.onFocus=="function"&&O.onFocus(Me)},onBlur:Me=>{$e(Me),Ue(),!I&&typeof O.onBlur=="function"&&O.onBlur(Me)},children:ot()}),Se&&R?t.jsx(_n,{anchorRect:Ve,title:R.title,items:R.items,onClose:Ee}):Se&&dt?t.jsx(dn,{anchorRect:Ve,text:dt,onClose:Ee}):null]})}function rt(e,n,a){const r=i.useRef(null);return i.useLayoutEffect(()=>{const o=r.current?.parentElement??null;return n(o,e),()=>a(o)},[e,n,a]),r}const Yn={title:"--promo-banner-bg-title",description:"--promo-banner-bg-description"},nr=new WeakMap;function ar(e){if(e)return nr.get(e)}function bt(e,n){e&&(e.style.setProperty(Yn.title,n.title),e.style.setProperty(Yn.description,n.description),nr.set(e,n))}function yt(e){e&&(e.style.removeProperty(Yn.title),e.style.removeProperty(Yn.description),nr.delete(e))}const fs={title:"#ffffff",description:"rgba(255, 255, 255, 0.85)",actionVariant:"default"};function Cs(){const e=rt(fs,bt,yt);return t.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-main","aria-hidden":"true"})}const gs={title:"var(--color-main)",description:"var(--color-gray)",actionVariant:"main"};function bs(){const e=rt(gs,bt,yt);return t.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-soft","aria-hidden":"true"})}const ys={title:"#ffffff",description:"rgba(255, 255, 255, 0.85)",actionVariant:"main"};function vs(){const e=rt(ys,bt,yt);return t.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-sub","aria-hidden":"true"})}const xs={title:"#ffffff",description:"rgba(255, 255, 255, 0.85)",actionVariant:"main"};function _s(){const e=rt(xs,bt,yt);return t.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-deep","aria-hidden":"true"})}const ws={title:"var(--color-darkSub)",description:"var(--color-gray)",actionVariant:"main"};function ks(){const e=rt(ws,bt,yt);return t.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-soft-sub","aria-hidden":"true"})}const As={title:"var(--color-black)",description:"var(--color-darkGray)",actionVariant:"main"};function Ns(){const e=rt(As,bt,yt);return t.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-warm","aria-hidden":"true"})}const Bs={title:"var(--color-white)",description:"var(--color-lightGray)",actionVariant:"main"};function Ss(){const e=rt(Bs,bt,yt);return t.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-dark","aria-hidden":"true"})}const Ds={title:"#ffffff",description:"rgba(255, 255, 255, 0.85)",actionVariant:"main"};function js(){const e=rt(Ds,bt,yt);return t.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-radial","aria-hidden":"true"})}const Es={title:"var(--color-darkMain)",description:"var(--color-gray)",actionVariant:"main"};function Ts(){const e=rt(Es,bt,yt);return t.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-diagonal","aria-hidden":"true"})}const Ms={title:"var(--color-darkSub)",description:"var(--color-gray)",actionVariant:"main"};function Ls(){const e=rt(Ms,bt,yt);return t.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-dots","aria-hidden":"true"})}const $s={title:"var(--color-black)",description:"var(--color-gray)",actionVariant:"main"};function Rs(){const e=rt($s,bt,yt);return t.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-outline","aria-hidden":"true",children:t.jsx("span",{className:"promo-banner-bg-outline__dot"})})}const Ps={title:"#ffffff",description:"rgba(255, 255, 255, 0.85)",actionVariant:"main"};function Is(){const e=rt(Ps,bt,yt);return t.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-success","aria-hidden":"true"})}const Fs={title:"#ffffff",description:"rgba(255, 255, 255, 0.85)",actionVariant:"sub"};function Os(){const e=rt(Fs,bt,yt);return t.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-naver","aria-hidden":"true"})}const Hs={title:"#ffffff",description:"rgba(255, 255, 255, 0.85)",actionVariant:"transparent-white"};function Vs(){const e=rt(Hs,bt,yt);return t.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-instagram","aria-hidden":"true"})}const x0=[{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"}],zs={main:Cs,soft:bs,sub:vs,deep:_s,softSub:ks,warm:Ns,dark:Ss,radial:js,diagonal:Ts,dots:Ls,outline:Rs,success:Is,naver:Os,instagram:Vs};function Ws({storageKey:e="fontScale",baseFont:n=20,minScale:a=.8,maxScale:r=1.4,step:o=.1,lineHeightRatio:s=1.4}={}){const l=g=>Math.max(a,Math.min(r,Number(g))),[c,u]=i.useState(()=>{try{const g=localStorage.getItem(e),y=g?Number(g):1;return Number.isFinite(y)?l(y):l(1)}catch{return 1}});i.useEffect(()=>{try{localStorage.setItem(e,String(c))}catch{}},[e,c]);const d=g=>{u(typeof g=="function"?y=>l(g(y)):l(g))},p=()=>d(g=>+(g+o).toFixed(6)),h=()=>d(g=>+(g-o).toFixed(6)),m=c<r-Number.EPSILON,C=c>a+Number.EPSILON,f=Math.round(n*c),b=Math.round(f*s);return{scale:c,setScale:d,increase:p,decrease:h,canIncrease:m,canDecrease:C,fontSize:f,lineHeight:b}}const qs=i.createContext(null);function _0(e){return/max-width:\s*7[0-9][0-9]px/.test(e)}function Qt(e){const n=i.useContext(qs),a=s=>typeof window>"u"||!window.matchMedia?!1:window.matchMedia(s).matches,[r,o]=i.useState(a(e));return i.useEffect(()=>{if(typeof window>"u"||!window.matchMedia)return;const s=window.matchMedia(e),l=u=>o(u.matches),c=s;return c.addEventListener?c.addEventListener("change",l):c.addListener&&c.addListener(l),o(s.matches),()=>{c.removeEventListener?c.removeEventListener("change",l):c.removeListener&&c.removeListener(l)}},[e]),n&&typeof n.mobile=="boolean"&&_0(e)?n.mobile:r}function rr(e){const n=i.useRef(e);return i.useEffect(()=>{n.current=e}),n}function Us(e,n){const a=rr(n);i.useEffect(()=>{const r=()=>a.current();try{window.addEventListener(e,r)}catch{}return()=>{try{window.removeEventListener(e,r)}catch{}}},[e,a])}const or=" \xB7 ",Gs=(()=>{if(typeof document>"u")return"";const e=document.title;return e.includes(or)?e.split(or).pop()??e:e})(),w0=i.createContext(!1);function k0(e){const n=i.useContext(w0);i.useEffect(()=>{if(n||typeof e!="string"||!e)return;const a=document.title;return document.title=Gs?`${e}${or}${Gs}`:e,()=>{document.title=a}},[e,n])}const Ks=[{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 A0(e,n,a){const{t:r}=de.useTranslation(),[o,s]=i.useState(()=>{const f=a?.initialPageSize;return f&&Ks.some(b=>b.value===f)?f:"25"}),[l,c]=i.useState(1),[u,d]=i.useState(n);u!==n&&(d(n),l!==1&&c(1));const p=i.useMemo(()=>Ks.map(f=>({...f,label:r("visits.showN",{n:f.value})})),[r]),h=i.useCallback(f=>{s(f),c(1)},[]),m=Math.max(1,Math.ceil(e.length/Number(o))),C=Math.min(l,m);return{pageRows:i.useMemo(()=>e.slice((C-1)*Number(o),C*Number(o)),[e,C,o]),pageSizeProps:{options:p,value:o,onChange:h},paginationProps:{page:C,total:m,onChange:c},setPage:c}}function N0(){const[e,n]=i.useState(null),a=i.useCallback(o=>{n(s=>s?.key===o?{key:o,asc:!s.asc}:{key:o,asc:!0})},[]),r=i.useCallback((o,s)=>({label:o,sortDir:e?.key===s?e.asc?"asc":"desc":null,onClick:()=>a(s)}),[e,a]);return{\uC815\uB82C:e,\uCE78:r}}const Kt="\uC804\uCCB4";Object.fromEntries(Object.entries(Fm).map(([e,{nucleus:n}])=>[e,n]));const B0={labial:e=>e("common.phonetics.place.labial",{defaultValue:"\uC591\uC21C\uC74C"}),alveolar:e=>e("common.phonetics.place.alveolar",{defaultValue:"\uCE58\uC870\uC74C"}),palatal:e=>e("common.phonetics.place.palatal",{defaultValue:"\uACBD\uAD6C\uAC1C\uC74C"}),velar:e=>e("common.phonetics.place.velar",{defaultValue:"\uC5F0\uAD6C\uAC1C\uC74C"}),glottal:e=>e("common.phonetics.place.glottal",{defaultValue:"\uC131\uBB38\uC74C"})},S0={frontHigh:e=>e("common.phonetics.vowel.frontHigh",{defaultValue:"\uC804\uC124 \uACE0\uBAA8\uC74C"}),backHighUnrounded:e=>e("common.phonetics.vowel.backHighUnrounded",{defaultValue:"\uD6C4\uC124 \uACE0\uBAA8\uC74C \uD3C9\uC21C"}),backHighRounded:e=>e("common.phonetics.vowel.backHighRounded",{defaultValue:"\uD6C4\uC124 \uACE0\uBAA8\uC74C \uC6D0\uC21C"}),frontMid:e=>e("common.phonetics.vowel.frontMid",{defaultValue:"\uC804\uC124 \uC911\uBAA8\uC74C"}),backMidUnrounded:e=>e("common.phonetics.vowel.backMidUnrounded",{defaultValue:"\uD6C4\uC124 \uC911\uBAA8\uC74C \uD3C9\uC21C"}),backMidRounded:e=>e("common.phonetics.vowel.backMidRounded",{defaultValue:"\uD6C4\uC124 \uC911\uBAA8\uC74C \uC6D0\uC21C"}),low:e=>e("common.phonetics.vowel.low",{defaultValue:"\uC800\uBAA8\uC74C"})},D0={j:e=>e("common.phonetics.glide.j",{defaultValue:"j\uD65C\uC74C"}),w:e=>e("common.phonetics.glide.w",{defaultValue:"w\uD65C\uC74C"}),velar:e=>e("common.phonetics.glide.velar",{defaultValue:"\u0270\uD65C\uC74C"})};function j0(e,n){if("place"in n)return B0[n.place](e);const a=S0[n.vowel](e);return n.glide?`${a} \xB7 ${D0[n.glide](e)}`:a}const E0=(e,{defaultValue:n})=>n,Zs=(e,n)=>({jamos:e,phonetic:n,tooltip:j0(E0,n)}),en=(e,n)=>n.map(a=>Zs([a],{place:e})),pt=(e,n,a)=>Zs([...e],a?{vowel:n,glide:a}:{vowel:n}),sr={cho:[en("labial",["\u3142","\u3143","\u314D","\u3141"]),en("alveolar",["\u3137","\u3138","\u314C","\u3134","\u3139"]),en("alveolar",["\u3145","\u3146"]),en("palatal",["\u3148","\u3149","\u314A"]),en("velar",["\u3131","\u3132","\u314B"]),en("glottal",["\u314E"])],jung:[[pt("\u3163","frontHigh"),pt("\u315F","frontHigh","w"),pt("\u3162","frontHigh","velar")],[pt("\u3161","backHighUnrounded")],[pt("\u315C","backHighRounded"),pt("\u3160","backHighRounded","j")],[pt("\u3154\u3150","frontMid"),pt("\u3156\u3152","frontMid","j"),pt("\u3159\u315A\u315E","frontMid","w")],[pt("\u3153","backMidUnrounded"),pt("\u3155","backMidUnrounded","j"),pt("\u315D","backMidUnrounded","w")],[pt("\u3157","backMidRounded"),pt("\u315B","backMidRounded","j")],[pt("\u314F","low"),pt("\u3151","low","j"),pt("\u3158","low","w")]],jong:[en("labial",["\u3142","\u3141"]),en("alveolar",["\u3137","\u3134","\u3139"]),en("velar",["\u3131","\u3147"])]},T0=e=>e===M0?[]:Array.from(e),M0="__NO_CODA__",ir=e=>e.map(n=>n.map(({jamos:a,phonetic:r,tooltip:o})=>({v:a.join(""),phonetic:r,tooltip:o}))),Ys={cho:ir(sr.cho),jung:ir(sr.jung),jong:ir(sr.jong)};Ys.jung.flat().forEach(({v:e})=>{for(const n of T0(e));}),new Set(Ys.cho.flat().map(e=>e.v));const jn=[];let ma=!1;function Xs(e){if(e.key!=="Escape"||e.defaultPrevented)return;const n=jn[jn.length-1];n&&(e.stopPropagation(),n())}function lr(e){return jn.push(e),!ma&&typeof document<"u"&&(document.addEventListener("keydown",Xs),ma=!0),()=>{const n=jn.lastIndexOf(e);n>=0&&jn.splice(n,1),jn.length===0&&ma&&typeof document<"u"&&(document.removeEventListener("keydown",Xs),ma=!1)}}function L0(e,n=!0){const a=rr(e);i.useEffect(()=>{if(n)return lr(()=>{a.current?.()})},[n,a])}function fa(){const[e,n]=i.useState(null),a=i.useCallback(s=>n(s.getBoundingClientRect()),[]),r=i.useCallback(()=>n(null),[]),o=i.useCallback(s=>{const l=s.getBoundingClientRect();n(c=>c?null:l)},[]);return{anchorRect:e,isOpen:e!=null,openAt:a,close:r,toggleAt:o}}function Js(e="warning"){const[n,a]=i.useState(""),[r,o]=i.useState(e),[s,l]=i.useState(0),c=i.useCallback((h,m)=>{o(m),a(h),l(C=>C+1)},[]),u=i.useCallback(h=>c(h,"warning"),[c]),d=i.useCallback(h=>c(h,"normal"),[c]),p=i.useCallback(()=>a(""),[]);return{toastMessage:n,toastType:r,toastKey:s,showToast:c,showWarning:u,showNormal:d,clearToast:p}}function Xn({computeStyle:e,onScroll:n="close",onResize:a="close",ignoreOutsideClickSelector:r}){const[o,s]=i.useState(!1),[l,c]=i.useState({}),u=i.useRef(null),d=i.useRef(null),p=i.useCallback(()=>{u.current&&c(e(u.current.getBoundingClientRect()))},[e]);i.useEffect(()=>{if(!o)return;p();const C=y=>{const w=y.target;r&&w.closest?.(r)||u.current?.contains(w)||d.current?.contains(w)||s(!1)};document.addEventListener("mousedown",C);const f=y=>{d.current?.contains(y.target)||(n==="reposition"?p():n==="close"&&s(!1))};n!=="ignore"&&window.addEventListener("scroll",f,!0);const b=()=>{a==="reposition"?p():a==="close"&&s(!1)};a!=="ignore"&&window.addEventListener("resize",b);const g=y=>{y.key==="Escape"&&s(!1)};return document.addEventListener("keydown",g),()=>{document.removeEventListener("mousedown",C),n!=="ignore"&&window.removeEventListener("scroll",f,!0),a!=="ignore"&&window.removeEventListener("resize",b),document.removeEventListener("keydown",g)}},[o,p,n,a,r]);const h=i.useCallback(()=>s(C=>!C),[]),m=i.useCallback(()=>s(!1),[]);return{open:o,setOpen:s,toggle:h,close:m,style:l,triggerRef:u,menuRef:d}}function $0(e,{mode:n="playback",autoStart:a=!1,onPlaySpeaker:r,onComplete:o,playMs:s=1100,feedbackMs:l=1500}={}){const[c,u]=i.useState([]),[d,p]=i.useState(0),[h,m]=i.useState("idle"),[C,f]=i.useState(null),[b,g]=i.useState([]),[y,w]=i.useState(null),[_,v]=i.useState(0),A=i.useRef(0),x=i.useCallback(O=>{A.current=typeof O=="function"?O(A.current):O,v(A.current)},[]),k=i.useRef(r),M=i.useRef(o);i.useEffect(()=>{k.current=r,M.current=o},[r,o]);const N=i.useRef([]),D=()=>{N.current.forEach(clearTimeout),N.current=[]},P=(O,j)=>{N.current.push(setTimeout(j,O))};i.useEffect(()=>()=>D(),[]);const L=c[d]?.id??null,E=i.useCallback(()=>{D(),m("playing"),g([]),w(null),x(0);let O=0;e.forEach((j,$)=>{P(O,()=>{p($),f(j.id),k.current?.(j)}),P(O+1e3,()=>{f(null),g(F=>[...F,j.id])}),O+=1300}),P(O,()=>{m("done"),M.current?.({score:0,total:e.length})})},[e,x]),R=i.useCallback((O,j)=>{if(j>=O.length){m("done"),M.current?.({score:A.current,total:O.length});return}p(j),w(null),m("playing"),f(O[j].id),k.current?.(O[j]),P(s,()=>{f(null),m("waiting")})},[s]),S=i.useCallback(()=>{D();const O=Gn(e);u(O),x(0),g([]),R(O,0)},[e,R,x]),V=i.useCallback(()=>{n==="playback"?(u(e),E()):S()},[n,e,E,S]),Y=i.useCallback(()=>{D(),m("idle"),f(null),g([]),w(null),p(0),x(0),u([])},[x]);i.useEffect(()=>{a?V():Y()},[n,e.length,a]);const X=i.useCallback(O=>{h!=="waiting"||n==="playback"||(w(O),O===c[d]?.id&&x(j=>j+1),n==="exam"?(m("playing"),P(400,()=>R(c,d+1))):(m("feedback"),P(l,()=>R(c,d+1))))},[h,n,c,d,R,l,x]),J=n==="playback"?e.length:c.length;return{bind:{activeSpeakerId:C,playedIds:b,selectedId:y,answerId:L,showFeedback:h==="feedback",clickable:h==="waiting",onSelectSpeaker:X},index:d,total:J,score:_,phase:h,done:h==="done",start:V,reset:Y}}function R0({title:e,description:n,actionLabel:a,onAction:r,bg:o,color:s,size:l="medium",actionVariant:c,titleColor:u,descriptionColor:d,className:p=""}){const h=o??s??"main",m=i.useRef(null),[C,f]=i.useState("main"),b=Qt("(max-width: 767px)"),g=i.useRef({title:!1,description:!1});i.useLayoutEffect(()=>{const _=m.current;if(!_)return;const v=ar(_),A=(x,k,M)=>{if(M!==void 0)_.style.setProperty(k,M),g.current[x]=!0;else if(g.current[x]){const N=v?.[x];N?_.style.setProperty(k,N):_.style.removeProperty(k),g.current[x]=!1}};A("title","--promo-banner-bg-title",u),A("description","--promo-banner-bg-description",d)},[u,d,h]),i.useLayoutEffect(()=>{const _=m.current;if(!_)return;const v=ar(_);f(v?.actionVariant??"main")},[h]);const y=ye("promo-banner",`promo-banner--${l}`,p),w=zs[h];return t.jsxs("div",{ref:m,className:y,role:"note",children:[t.jsx(w,{}),t.jsxs("div",{className:"promo-banner__text",children:[t.jsx("span",{className:`promo-banner__title ${l==="small"?"body-2":"h2"}`,children:e}),n&&t.jsx("span",{className:"promo-banner__description body-3",children:n})]}),a&&r&&t.jsx(ae,{size:40,variant:c??C,shape:"pill",useBorder:!0,onClick:r,ariaLabel:a,...b?{type:"dot",icon:"arrow-right"}:{rightIcon:"arrow-right",label:a,minWidth:140}})]})}function P0({children:e,interval:n=5e3,dotTone:a,className:r="","aria-label":o}){const{t:s}=de.useTranslation(),l=o??s("topBanner.ariaLabel","\uBC30\uB108"),c=i.Children.toArray(e),u=c.length,[d,p]=i.useState(0),[h,m]=i.useState(!1),C=u>0?d%u:0;return i.useEffect(()=>{if(u<2||n<=0||h)return;const f=window.setInterval(()=>p(b=>(b+1)%u),n);return()=>window.clearInterval(f)},[u,n,h]),u===0?null:t.jsxs("section",{className:ye("top-banner",r),"aria-label":l,"aria-roledescription":"carousel",onMouseEnter:()=>m(!0),onMouseLeave:()=>m(!1),onFocus:()=>m(!0),onBlur:()=>m(!1),children:[t.jsx("div",{className:"top-banner__viewport",children:t.jsx("div",{className:"top-banner__track",style:{transform:`translateX(-${C*100}%)`},children:c.map((f,b)=>t.jsx("div",{className:"top-banner__slide","aria-hidden":b!==C,...b!==C?{inert:!0}:{},children:f},b))})}),u>1&&t.jsx("div",{className:`top-banner__dots${(a?.[C]??"light")==="dark"?" top-banner__dots--dark":""}`,children:c.map((f,b)=>t.jsx("button",{type:"button",className:`top-banner__dot${b===C?" top-banner__dot--active":""}`,"aria-label":s("topBanner.dotAriaLabel",{count:u,index:b+1,defaultValue:`${u}\uAC1C \uC911 ${b+1}\uBC88\uC9F8 \uBC30\uB108`}),"aria-current":b===C,onClick:()=>p(b)},b))})]})}function I0({title:e,body:n,open:a=!1,onToggle:r,avatar:o,titleClassName:s="body-2",bodyClassName:l="body-2",className:c=""}){const{t:u}=de.useTranslation();return t.jsxs("div",{className:`accordion-item ${a?"accordion-item--open":""} ${c}`.trim(),children:[t.jsxs("div",{className:"accordion-item__header",role:"button",tabIndex:0,"aria-expanded":a,"data-accordion-header":!0,onClick:r,onKeyDown:d=>{if(d.key==="Enter"||d.key===" ")d.preventDefault(),r?.();else if(d.key==="ArrowDown"||d.key==="ArrowUp"){d.preventDefault();const p=d.currentTarget.closest('[role="list"]');if(!p)return;const h=Array.from(p.querySelectorAll("[data-accordion-header]")),m=h.indexOf(d.currentTarget);(d.key==="ArrowDown"?h[m+1]:h[m-1])?.focus()}},children:[o&&t.jsx("div",{className:"accordion-item__avatar",children:o}),t.jsx("div",{className:`accordion-item__title ${s}`,children:e}),t.jsx("div",{className:"accordion-item__chevron",children:t.jsx(Oe,{icon:a?"chevron-up":"chevron-down",label:a?u("accordion.collapse","\uC811\uAE30"):u("accordion.expand","\uD3BC\uCE58\uAE30"),className:"accordion-item__chevron-icon",imgClassName:"accordion-item__chevron-image"})})]}),a&&t.jsx("div",{className:`accordion-item__body ${l}`,children:typeof n=="string"?t.jsx("p",{children:n}):n})]})}function F0({items:e=[],defaultOpenIndex:n=0,size:a=72,className:r="",bodyClassName:o}){const[s,l]=i.useState(n);return t.jsx("div",{className:`accordion-group accordion-group--s${a} ${r}`.trim(),role:"list",children:e.map((c,u)=>t.jsx(I0,{title:c.title,body:c.body,avatar:c.avatar,open:u===s,onToggle:()=>l(u===s?-1:u),bodyClassName:o},u))})}function O0(){return t.jsx("svg",{viewBox:"0 0 12 12",fill:"none",stroke:"currentColor",strokeWidth:2.2,strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:t.jsx("polyline",{points:"2,6 5,9 10,3"})})}function H0(){return t.jsxs("svg",{viewBox:"0 0 12 12",fill:"none",stroke:"currentColor",strokeWidth:2.2,strokeLinecap:"round","aria-hidden":"true",children:[t.jsx("line",{x1:"3",y1:"3",x2:"9",y2:"9"}),t.jsx("line",{x1:"9",y1:"3",x2:"3",y2:"9"})]})}function V0(){return t.jsx("svg",{viewBox:"0 0 12 12",fill:"none",stroke:"currentColor",strokeWidth:2.2,strokeLinecap:"round","aria-hidden":"true",children:t.jsx("line",{x1:"2.5",y1:"6",x2:"9.5",y2:"6"})})}function lt(e){const{t:n}=de.useTranslation(),{type:a="bar",size:r,className:o="","aria-label":s}=e;if(a==="dot"){const{icon:v,number:A,position:x="top-right",onClick:k,animate:M=!1}=e,N=v??"check",D=A!==void 0?"number":N,P=typeof r=="number"?r:32,L=ye("circle-badge",`circle-badge--${D}`,`circle-badge--${x}`,`circle-badge--${P}`,M?"circle-badge--animate":"",k?"circle-badge--clickable":"",o),E=A!==void 0?n("badge.nthSelected",{n:A,defaultValue:"{{n}}\uBC88\uC9F8 \uC120\uD0DD"}):{check:n("badge.selected","\uC120\uD0DD\uB428"),remove:n("badge.remove","\uC81C\uAC70"),minus:n("badge.exclude","\uC81C\uC678")}[N];return t.jsxs("span",{className:L,onClick:k,onKeyDown:k?R=>{R.key!=="Enter"&&R.key!==" "||(R.preventDefault(),R.currentTarget.click())}:void 0,"aria-label":s??E,role:k?"button":void 0,tabIndex:k?0:void 0,children:[A!==void 0&&A,A===void 0&&N==="check"&&t.jsx(O0,{}),A===void 0&&N==="remove"&&t.jsx(H0,{}),A===void 0&&N==="minus"&&t.jsx(V0,{})]})}const{label:l,children:c,variant:u="default",fill:d="filled",minWidth:p,iconLeft:h,iconRight:m,color:C}=e,f=typeof r=="number"?"medium":r??"medium",b={small:"caption-2b",medium:"body-3b",large:"body-2b"}[f]??"body-2b",g={small:12,medium:14,large:16}[f]??14,y=ye("badge",`badge--${u}`,`badge--${f}`,d!=="filled"?`badge--${d}`:"",b,o),w=C?.startsWith("--")?`var(${C})`:C,_=p!==void 0||w?{...p!==void 0?{minWidth:typeof p=="number"?`${p}px`:p}:{},...w?{"--badge-color":w}:{}}:void 0;return t.jsxs("span",{className:y,style:_,"aria-label":s,role:s?"img":void 0,children:[h&&t.jsx(Oe,{icon:h,size:g,className:"badge__icon"}),l??c,m&&t.jsx(Oe,{icon:m,size:g,className:"badge__icon"})]})}function Ca({columns:e=[],onClose:n,className:a="",size:r="medium"}){const{t:o}=de.useTranslation(),s=r==="small"?40:48,[l,c]=i.useState([{title:null,columns:e}]),u=l[l.length-1];i.useEffect(()=>{c(f=>{try{if(!Array.isArray(f)||f.length===0)return[{title:null,columns:e}];const b=f.slice(),g=b[0]&&typeof b[0].title<"u"?b[0].title:null;return b[0]={title:g,columns:e},b}catch{return[{title:null,columns:e}]}})},[e]);const d=i.useCallback(()=>c(f=>f.length>1?f.slice(0,f.length-1):f),[]),p=i.useRef(null),h=i.useRef(null),m=l.length;i.useEffect(()=>{h.current||(h.current=document.activeElement);let f=0,b=0;const g=()=>{const y=p.current?.querySelector("button:not([disabled])");if(y&&y.offsetParent){y.focus({preventScroll:!0});return}b++<20&&(f=requestAnimationFrame(g))};return f=requestAnimationFrame(g),()=>cancelAnimationFrame(f)},[m]),i.useEffect(()=>()=>{h.current?.focus?.({preventScroll:!0})},[]);const C=i.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 n=="function"&&n()}catch{}}},[n]);return t.jsxs("div",{className:`tooltip-menu tooltip-menu--${r} ${a}`,children:[(l.length>1||u.title)&&t.jsxs("div",{className:"tooltip-menu__header",children:[l.length>1?t.jsx(ae,{size:s,type:"dot",icon:"chevron-left",ariaLabel:o("common.back","\uB4A4\uB85C"),onClick:d,variant:"transparent-gray",useBorder:!1}):null,t.jsx("div",{className:"tooltip-menu__title button-1",children:u.title})]}),t.jsx("div",{className:"tooltip-menu__columns",ref:p,children:u.columns&&u.columns.map((f,b)=>t.jsxs("div",{className:"tooltip-menu__column",children:[f.title?t.jsx("div",{className:"tooltip-menu__column-title body-3",children:f.title}):null,t.jsx("div",{className:"tooltip-menu__items",children:(f.items||[]).map((g,y)=>t.jsx(ae,{className:"tooltip-menu__item",size:s,type:g.label?"bar":"dot",icon:g.selected?"check":g.icon||"none",rightIcon:Array.isArray(g.children)&&g.children.length?"chevron-right":g.badgeCount?t.jsx(lt,{type:"dot",position:"inline",number:Math.min(g.badgeCount,99),size:24,"aria-label":`${g.badgeCount}`}):void 0,label:g.label,ariaLabel:g.label,onClick:()=>C(g),selected:g.selected,disabled:g.disabled,showTooltipInfo:g.tooltip||!1,useBorder:!1,align:"left"},y))})]},b))})]})}const z0=52,Qs=10;function ei({items:e=[],activeKey:n,onChange:a,appMode:r,onAppModeChange:o,moreItems:s=[]}){const{t:l}=de.useTranslation(),c=r==="manager"?"malgwi":"manager",u=r==="manager"?"arrow-left":"arrow-right",d=r==="manager"?l("nav.modeLabelMalgwi","\uB9D0\uADC0"):l("nav.modeLabelManager","\uB9D0\uADC0 \uB9E4\uB2C8\uC800"),p=i.useRef(null),[h,m]=i.useState(0),C=e.length;i.useEffect(()=>{const S=p.current;if(!S||(m(S.clientWidth),typeof ResizeObserver>"u"))return;const V=new ResizeObserver(Y=>m(Y[0].contentRect.width));return V.observe(S),()=>V.disconnect()},[]);const f=h>0?Math.floor((h+Qs)/(z0+Qs)):C,b=h>0&&f<C,g=b?f:C,y=e.slice(0,g),w=e.slice(g),_=b||s.length>0,v=i.useCallback(S=>({position:"fixed",bottom:window.innerHeight-S.top+8,right:window.innerWidth-S.right,zIndex:1e4}),[]),A=i.useId(),{open:x,toggle:k,close:M,style:N,triggerRef:D,menuRef:P}=Xn({computeStyle:v,onScroll:"ignore",onResize:"ignore"}),L=i.useCallback(()=>o?.(c),[o,c]),E=i.useMemo(()=>w.find(S=>S.key===n)??s.find(S=>S.selected||S.key&&S.key===n),[w,n,s]),R=i.useMemo(()=>[{items:[...w.map(S=>({label:S.label,icon:S.icon,selected:S.key===n,closeOnSelect:!0,onClick:()=>{S.key&&a&&a(S.key),M()}})),...s.map(S=>({label:S.label,icon:S.icon,badgeCount:S.badgeCount,selected:S.selected??(!!S.key&&S.key===n),closeOnSelect:!0,onClick:()=>{S.onClick?.(),M()}}))]}],[w,s,n,a,M]);return t.jsxs("nav",{className:"bottom-nav","aria-label":l("nav.bottomNav","\uD558\uB2E8 \uB124\uBE44\uAC8C\uC774\uC158"),children:[o&&t.jsxs(t.Fragment,{children:[t.jsx("div",{className:"bottom-nav__left",children:t.jsx(ae,{size:52,type:"dot",icon:u,ariaLabel:d,className:"bottom-nav-item",onClick:L})}),t.jsx("div",{className:"bottom-nav__divider","aria-hidden":"true"})]}),t.jsx("div",{className:"bottom-nav__items",ref:p,children:y.map(S=>t.jsx(ae,{size:52,type:"dot",icon:S.icon,ariaLabel:S.label,selected:S.key===n,disabled:S.state==="disabled",className:"bottom-nav-item",onClick:()=>S.key&&a?.(S.key)},S.key))}),_&&t.jsxs(t.Fragment,{children:[t.jsx("div",{className:"bottom-nav__divider","aria-hidden":"true"}),t.jsx("div",{className:"bottom-nav__right",children:t.jsxs("div",{ref:D,children:[t.jsx(ae,{size:52,type:"dot",icon:E?.icon??"ellipsis",ariaLabel:E?.label??l("nav.more","\uB354\uBCF4\uAE30"),selected:!!E,className:"bottom-nav-item",onClick:k,"aria-expanded":x,"aria-controls":x?A:void 0}),x&&It.createPortal(t.jsx("div",{id:A,role:"group","aria-label":l("nav.moreMenu","\uB354\uBCF4\uAE30 \uBA54\uB274"),className:"tooltip-content",style:N,ref:P,children:t.jsx(Ca,{columns:R,onClose:M})}),document.body)]})})]})]})}function W0(e){const{t:n}=de.useTranslation(),{activeKey:a,unreadCount:r,onDebug:o,onNotification:s,onSetting:l,onHelp:c,onAccount:u}=e||{},d="default";return o||s||l||c||u?t.jsxs("div",{className:"side-nav__footer",children:[o&&t.jsx(ae,{size:48,showTooltipInfo:!0,type:"dot",shape:"pill",variant:d,icon:"terminal",ariaLabel:n("nav.debug","\uB514\uBC84\uADF8"),onClick:o,selected:a==="debug"}),s&&t.jsxs("span",{className:"side-nav__notification-wrap",children:[t.jsx(ae,{size:48,showTooltipInfo:!0,type:"dot",shape:"pill",variant:d,icon:"bell",ariaLabel:n("nav.notifications","\uC54C\uB9BC"),onClick:s,selected:a==="notifications"}),!!r&&t.jsx(lt,{type:"dot",number:Math.min(r,99),size:24})]}),l&&t.jsx(ae,{size:48,showTooltipInfo:!0,type:"dot",shape:"pill",variant:d,icon:"settings",ariaLabel:n("nav.settings","\uC124\uC815"),onClick:l,selected:a==="settings"}),c&&t.jsx(ae,{size:48,showTooltipInfo:!0,type:"dot",shape:"pill",variant:d,icon:"message-circle-question-mark",ariaLabel:n("nav.help","\uB3C4\uC6C0\uB9D0"),onClick:c,selected:a==="help"}),u&&t.jsx(ae,{size:48,showTooltipInfo:!0,type:"dot",shape:"pill",variant:d,icon:"user-round",ariaLabel:n("nav.account","\uACC4\uC815"),onClick:u,selected:a==="account"})]}):null}function ti(e){const{item:n,itemKey:a,label:r,icon:o,active:s,onClick:l,style:c,state:u,labelStyle:d}=e||{},p=n?.key??a??"",h=n?.label??r??"",m=n?.icon??o??"",C=n?.badge??0,f=t.jsx("span",{className:"side-nav__icon-wrap",children:t.jsx(Oe,{icon:m,label:typeof h=="string"?h:void 0,className:"side-nav__icon",maskClassName:"side-nav__icon-image",imgClassName:void 0,svgClassName:void 0})}),b=u==="disabled",g=`side-nav__item ${s?"active":""} ${u||""} ${b?"disabled":""} ${n?.child?"side-nav__item--child":""}`,y=i.useCallback(w=>{if(!b){try{w.currentTarget.blur()}catch{}l?.(p,w.currentTarget)}},[b,p,l]);return t.jsxs("button",{className:g,onClick:y,"aria-label":typeof h=="string"?h:void 0,style:c,"aria-disabled":b,children:[f,t.jsx("span",{className:"side-nav__label button-1 f",style:d,children:h}),C>0&&t.jsx(lt,{type:"dot",position:"inline",number:Math.min(C,99),size:24,"aria-label":`${C}`}),u==="loading"&&t.jsx("span",{className:"side-nav__spinner","aria-label":"loading"})]})}function ni(e){const{t:n}=de.useTranslation(),{items:a=[],activeKey:r,onChange:o,unreadCount:s,onDebug:l,onNotification:c,onAccount:u,onSetting:d,onHelp:p,appMode:h,onAppModeChange:m}=e||{},C=i.useCallback(()=>m?.(h==="malgwi"?"manager":"malgwi"),[m,h]);return t.jsxs("nav",{"aria-label":n("nav.mainMenu","\uBA54\uC778 \uBA54\uB274"),className:"side-nav__menu",children:[t.jsxs("div",{className:"side-nav__menu-list",children:[(a||[]).filter(f=>!f.section&&(f.key||f.label)).map((f,b)=>t.jsxs(i.Fragment,{children:[f.divider&&t.jsx("div",{className:"side-nav__separator"}),t.jsx(ti,{item:f,active:f.key===r,state:f.disabled?"disabled":void 0,onClick:(g,y)=>{if(f.disabled)return;if(f.href){window.open(f.href,"_blank","noopener,noreferrer");try{y?.blur()}catch{}return}o?.(f.key);try{const _=document.querySelector(".content-area");_?_.scrollTop=0:window.scrollTo({top:0})}catch{}try{y?.blur()}catch{}if(typeof window<"u"&&window.matchMedia){if(!window.matchMedia("(min-width: 768px) and (max-width: 1023px)").matches)return}else return;const w=document.querySelector(".header");if(w&&!(typeof w.matches=="function"&&w.matches(":hover"))){w.classList.add("header--force-collapsed");const _=()=>{w.classList.remove("header--force-collapsed"),w.removeEventListener("mouseenter",_)};w.addEventListener("mouseenter",_)}}})]},f.key??`side-nav__item-${b}`)),m&&t.jsx("div",{className:"side-nav__separator side-nav__separator--short"}),m&&t.jsx(ti,{item:{key:"__mode-switch__",label:h==="malgwi"?n("nav.goToManager","\uB9D0\uADC0\uB9E4\uB2C8\uC800\uB85C \uC774\uB3D9"):n("nav.goToMalgwi","\uB9D0\uADC0\uB85C \uC774\uB3D9"),icon:h==="malgwi"?"arrow-right":"arrow-left"},onClick:C})]}),t.jsx(W0,{activeKey:r,unreadCount:s,onDebug:l,onNotification:c,onAccount:u,onSetting:d,onHelp:p})]})}var cr='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',ur='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',q0='data:image/svg+xml,<svg width="100" height="100" viewBox="0 0 100 100" fill="none" xmlns="http://www.w3.org/2000/svg">%0A<g clip-path="url(%23clip0_2175_65214)">%0A<path d="M57.1427 17.8571H35.7141C25.8518 17.8571 17.8569 25.852 17.8569 35.7143V57.1428C17.8569 67.0051 25.8518 75 35.7141 75H57.1427C67.0049 75 74.9998 67.0051 74.9998 57.1428V35.7143C74.9998 25.852 67.0049 17.8571 57.1427 17.8571Z" fill="%234DCDC0"/>%0A<path d="M45.575 50.7393C36.5429 60.6821 21.3286 61.6678 11.1 53.1643C10.6322 52.775 10.5822 52.0678 10.9929 51.6178L27.0679 33.925L45.575 50.7393Z" fill="%234DCDC0"/>%0A<path d="M64.2857 25H42.8571C32.9964 25 25 32.9964 25 42.8571V64.2857C25 74.1464 32.9964 82.1429 42.8571 82.1429H58.9679C59.9321 82.1429 60.7143 82.925 60.7143 83.8893C60.7143 84.9107 61.5893 85.7214 62.6071 85.6321C73.5536 84.675 82.1429 75.4821 82.1429 64.2857V42.8571C82.1429 32.9964 74.1464 25 64.2857 25Z" fill="%234DCDC0"/>%0A<path d="M35.7143 25C29.7964 25 25 29.7964 25 35.7143V64.2857C25 67.3786 25.7893 70.2893 27.1714 72.8286C29.7071 74.2143 32.6179 75 35.7143 75H64.2857C70.2036 75 75 70.2036 75 64.2857V35.7143C75 32.6214 74.2107 29.7107 72.8286 27.1714C70.2929 25.7857 67.3821 25 64.2857 25H35.7143Z" fill="%23499CDF"/>%0A<path d="M36.0714 40.7143C36.0714 39.5308 35.112 38.5714 33.9285 38.5714C32.745 38.5714 31.7856 39.5308 31.7856 40.7143V45C31.7856 46.1834 32.745 47.1428 33.9285 47.1428C35.112 47.1428 36.0714 46.1834 36.0714 45V40.7143Z" fill="white"/>%0A<path d="M46.7859 57.1429C45.743 57.1429 44.6966 56.875 43.7502 56.3286C42.8966 55.8357 42.6037 54.7429 43.1002 53.8893C43.593 53.0357 44.6859 52.7429 45.5395 53.2393C46.518 53.8036 47.7573 53.6429 48.5537 52.8464C48.9395 52.4607 49.1823 51.9714 49.2573 51.4357C49.5787 49.1607 50.5823 47 52.1645 45.1857C53.1073 44.1071 53.6037 42.7214 53.568 41.2857C53.493 38.3536 51.1466 35.9107 48.2216 35.7286C47.2359 35.6679 46.2859 35.8464 45.4073 36.2679C44.5145 36.6929 43.4502 36.3107 43.0287 35.4214C42.6037 34.5321 42.9859 33.4643 43.8752 33.0429C45.2895 32.3714 46.868 32.0679 48.4466 32.1643C53.2002 32.4607 57.0216 36.4286 57.1395 41.1964C57.1966 43.5286 56.3859 45.7786 54.8573 47.5357C53.7323 48.825 53.018 50.3464 52.7966 51.9357C52.6109 53.2464 52.018 54.4357 51.0823 55.375C49.9145 56.5429 48.3609 57.15 46.7895 57.15L46.7859 57.1429Z" fill="white"/>%0A</g>%0A<defs>%0A<clipPath id="clip0_2175_65214">%0A<rect width="100" height="100" fill="white"/>%0A</clipPath>%0A</defs>%0A</svg>%0A';function ai({appMode:e}){const{t:n}=de.useTranslation(),a=e==="manager",r=a?ur:cr,o=q0,s=Qt("(min-width: 768px) and (max-width: 1023px)");return t.jsx("div",{className:"brand-identity__root","aria-label":n("header.biArea","BI \uC601\uC5ED"),children:s?t.jsx("img",{src:o,alt:n("header.biSymbol","BI \uC2EC\uBCFC"),className:"brand-identity__image"}):t.jsx("img",{src:r,alt:a?n("header.logoManager","\uB9D0\uADC0\uB9E4\uB2C8\uC800 \uB85C\uACE0"):n("header.logoMalgwi","\uB9D0\uADC0 \uB85C\uACE0"),className:"brand-identity__image"})})}function ri({activeKey:e,onChange:n,items:a,malgwiItems:r,managerItems:o,unreadCount:s,onDebug:l,onNotification:c,onAccount:u,onSetting:d,onHelp:p,appMode:h,onAppModeChange:m}){const{t:C}=de.useTranslation(),f=Qt("(max-width: 767px)"),b=i.useMemo(()=>(a??[]).filter(P=>!P.section&&(P.key||P.label)).map(P=>({key:P.key,label:typeof P.label=="string"?P.label:void 0,icon:P.icon,state:P.disabled?"disabled":void 0})),[a]),g=i.useCallback(P=>{const L=a?.find(E=>E.key===P);if(!L?.disabled){if(L?.href){window.open(L.href,"_blank","noopener,noreferrer");return}n?.(P)}},[a,n]),y=i.useMemo(()=>{const P=[];return l&&P.push({key:"debug",icon:"terminal",label:C("nav.debug","\uB514\uBC84\uADF8"),onClick:l}),c&&P.push({key:"notifications",icon:"bell",label:C("nav.notifications","\uC54C\uB9BC"),badgeCount:s,onClick:c}),d&&P.push({key:"settings",icon:"settings",label:C("nav.settings","\uC124\uC815"),onClick:d}),p&&P.push({key:"help",icon:"message-circle-question-mark",label:C("nav.help","\uB3C4\uC6C0\uB9D0"),onClick:p}),u&&P.push({key:"account",icon:"user-round",label:C("nav.account","\uACC4\uC815"),onClick:u}),P},[C,l,c,d,p,u,s]),w=i.useCallback(P=>({position:"fixed",top:P.bottom+8,right:Math.max(8,window.innerWidth-P.right),zIndex:1e4}),[]),_=i.useId(),{open:v,toggle:A,close:x,style:k,triggerRef:M,menuRef:N}=Xn({computeStyle:w,onScroll:"ignore",onResize:"ignore"}),D=i.useMemo(()=>[{items:y.map(P=>({label:P.label,icon:P.icon,badgeCount:P.badgeCount,selected:P.selected??(!!P.key&&P.key===e),closeOnSelect:!0,onClick:()=>{P.onClick?.(),x()}}))}],[y,e,x]);return t.jsxs("aside",{className:`header${h==="manager"?" header--manager":""}`,children:[t.jsxs("div",{className:"header__bi",children:[t.jsx(ai,{appMode:h}),t.jsxs("div",{className:"header__menu-button",ref:M,children:[t.jsx(ae,{size:48,type:"dot",shape:"pill",variant:"default",icon:"menu",ariaLabel:C("header.menuOpen","\uBA54\uB274 \uC5F4\uAE30"),onClick:A,"aria-expanded":v,"aria-controls":v?_:void 0}),v&&It.createPortal(t.jsx("div",{id:_,role:"group","aria-label":C("header.utilMenu","\uC720\uD2F8\uB9AC\uD2F0 \uBA54\uB274"),className:"tooltip-content",style:k,ref:N,children:t.jsx(Ca,{columns:D,onClose:x})}),document.body)]})]}),t.jsx(ni,{items:a,activeKey:e??void 0,onChange:n,unreadCount:s,onDebug:l,onNotification:c,onAccount:u,onSetting:d,onHelp:p,appMode:h,onAppModeChange:m}),f&&t.jsx(ei,{items:b,activeKey:e??void 0,onChange:g,appMode:h,onAppModeChange:m})]})}const U0=ri;var G0={statusFilter:"\uC0C1\uD0DC \uD544\uD130",pageSizeSelect:"\uD398\uC774\uC9C0\uB2F9 \uD45C\uC2DC \uAC1C\uC218",selectedCount:"{{count}}\uAC1C \uC120\uD0DD\uB428",cancel:"\uCDE8\uC18C",info:"\uC124\uBA85",errorState:{message:"\uBD88\uB7EC\uC624\uC9C0 \uBABB\uD588\uC2B5\uB2C8\uB2E4.",retry:"\uB2E4\uC2DC \uC2DC\uB3C4"},save:"\uC800\uC7A5",confirm:"\uD655\uC778",close:"\uB2EB\uAE30",back:"\uB4A4\uB85C",emptyTrainingName:"\uD6C8\uB828 \uC774\uB984\uC774 \uBE44\uC5B4 \uC788\uC2B5\uB2C8\uB2E4.",remove:"\uC81C\uAC70",image:"\uC774\uBBF8\uC9C0",delete:"\uC0AD\uC81C",reset:"\uCD08\uAE30\uD654",update:"\uC5C5\uB370\uC774\uD2B8",download:"\uB2E4\uC6B4\uB85C\uB4DC",search:"\uAC80\uC0C9",empty:"\uB370\uC774\uD130\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4.",yes:"\uC608",no:"\uC544\uB2C8\uC624",all:"\uC804\uCCB4",none:"\uC5C6\uC74C",days:"{{count}}\uC77C",loadMore:"\uB354\uBCF4\uAE30",more:"\uB354\uBCF4\uAE30",moreFor:"{{name}} \uB354\uBCF4\uAE30",retry:"\uB2E4\uC2DC \uC2DC\uB3C4",prevPage:"\uC774\uC804 \uD398\uC774\uC9C0",nextPage:"\uB2E4\uC74C \uD398\uC774\uC9C0",play:"\uC7AC\uC0DD",pause:"\uBA48\uCDA4",playPause:"\uC7AC\uC0DD / \uBA48\uCDA4",replay:"\uB2E4\uC2DC\uB4E3\uAE30",subscription:"\uC774\uC6A9\uAD8C",done:"\uC644\uB8CC",failed:"\uC2E4\uD328",continue:"\uACC4\uC18D",notification:"\uC54C\uB9BC",emptyList:"\uD56D\uBAA9\uC774 \uC5C6\uC2B5\uB2C8\uB2E4.",menu:"\uBA54\uB274",resetSelection:"\uC120\uD0DD \uCD08\uAE30\uD654",pageSizeLabel:"{{n}}\uAC1C\uC529 \uBCF4\uAE30",totalCountPrefix:"\uCD1D ",totalCountSuffix:"\uAC1C",expand:"\uD3BC\uCE58\uAE30",collapse:"\uC811\uAE30",popup:"\uD31D\uC5C5",codeBlock:"\uCF54\uB4DC \uBE14\uB85D",totalPrefix:"\uCD1D ",copyCode:"\uCF54\uB4DC \uBCF5\uC0AC",copied:"\uBCF5\uC0AC\uB428",col:{problem:"\uBB38\uC81C"},phonetics:{place:{labial:"\uC591\uC21C\uC74C",alveolar:"\uCE58\uC870\uC74C",palatal:"\uACBD\uAD6C\uAC1C\uC74C",velar:"\uC5F0\uAD6C\uAC1C\uC74C",glottal:"\uC131\uBB38\uC74C"},vowel:{frontHigh:"\uC804\uC124 \uACE0\uBAA8\uC74C",backHighUnrounded:"\uD6C4\uC124 \uACE0\uBAA8\uC74C \uD3C9\uC21C",backHighRounded:"\uD6C4\uC124 \uACE0\uBAA8\uC74C \uC6D0\uC21C",frontMid:"\uC804\uC124 \uC911\uBAA8\uC74C",backMidUnrounded:"\uD6C4\uC124 \uC911\uBAA8\uC74C \uD3C9\uC21C",backMidRounded:"\uD6C4\uC124 \uC911\uBAA8\uC74C \uC6D0\uC21C",low:"\uC800\uBAA8\uC74C"},glide:{j:"j\uD65C\uC74C",w:"w\uD65C\uC74C",velar:"\u0270\uD65C\uC74C"}},unknownError:"\uC54C \uC218 \uC5C6\uB294 \uC624\uB958"},K0={rangeSelect:"\uAE30\uAC04 \uC120\uD0DD",dow:["\uC77C","\uC6D4","\uD654","\uC218","\uBAA9","\uAE08","\uD1A0"],yearMonth:"{{year}}\uB144 {{month}}\uC6D4",prevMonth:"\uC774\uC804 \uB2EC",addOnDate:"{{date}}\uC5D0 \uBC29\uBB38 \uB4F1\uB85D",nextMonth:"\uB2E4\uC74C \uB2EC",prevWeek:"\uC774\uC804 \uC8FC",nextWeek:"\uB2E4\uC74C \uC8FC",legend:{visited:"\uBC29\uBB38",scheduled:"\uC608\uC57D",noVisit:"\uBBF8\uBC29\uBB38"},periodSelect:"\uAE30\uAC04 \uB2E8\uC704"},Z0={planSuffix:"\uC774\uC6A9\uAD8C",labeledPlan:"{{label}} \uC774\uC6A9\uAD8C",couponCode:"\uC774\uC6A9\uAD8C \uCF54\uB4DC",specialLabel:"\uC624\uD508\uD2B9\uAC00",unitDay:"\uC77C",unitYear:"\uB144",remainingDay:"{{n}}\uC77C \uB0A8\uC74C",remainingHour:"{{n}}\uC2DC\uAC04 \uB0A8\uC74C",remainingMinute:"{{n}}\uBD84 \uB0A8\uC74C",remainingSecond:"{{n}}\uCD08 \uB0A8\uC74C",menu:{use:"\uC0AC\uC6A9\uD558\uAE30",refund:"\uD658\uBD88\uD558\uAE30",delete:"\uC0AD\uC81C\uD558\uAE30"}},Y0={clearAriaLabel:"\uAC80\uC0C9\uC5B4 \uC9C0\uC6B0\uAE30"},X0={starLabel:"{{n}}\uBC88\uC9F8 \uBCC4 \uC120\uD0DD",valueLabel:"{{max}}\uC810 \uB9CC\uC810\uC5D0 {{value}}\uC810",groupLabel:"\uBCC4\uC810"},J0={selected:"\uC120\uD0DD\uB428"},Q0={placeholder:"\uC120\uD0DD"},e2={collapse:"\uC811\uAE30",expand:"\uD3BC\uCE58\uAE30"},t2={biArea:"BI \uC601\uC5ED",biSymbol:"BI \uC2EC\uBCFC",logoMalgwi:"\uB9D0\uADC0 \uB85C\uACE0",logoManager:"\uB9D0\uADC0\uB9E4\uB2C8\uC800 \uB85C\uACE0",menuOpen:"\uBA54\uB274 \uC5F4\uAE30",utilMenu:"\uC720\uD2F8\uB9AC\uD2F0 \uBA54\uB274"},n2={mainMenu:"\uBA54\uC778 \uBA54\uB274",bottomNav:"\uD558\uB2E8 \uB124\uBE44\uAC8C\uC774\uC158",goToManager:"\uB9D0\uADC0\uB9E4\uB2C8\uC800\uB85C \uC774\uB3D9",goToMalgwi:"\uB9D0\uADC0\uB85C \uC774\uB3D9",modeLabelManager:"\uB9D0\uADC0 \uB9E4\uB2C8\uC800",modeLabelMalgwi:"\uB9D0\uADC0",training:"\uD6C8\uB828",settings:"\uC124\uC815",notifications:"\uC54C\uB9BC",account:"\uACC4\uC815",help:"\uB3C4\uC6C0\uB9D0",debug:"\uB514\uBC84\uADF8",coupons:"\uCFE0\uD3F0",topic:"\uC8FC\uC81C\uBCC4 \uB4E3\uAE30",trainingType:"\uD6C8\uB828\uBCC4 \uB4E3\uAE30",wordPairs:"\uB300\uB9BD\uC30D \uCC3E\uAE30",wordSearch:"\uB2E8\uC5B4 \uCC3E\uAE30",wordTable:"\uB2E8\uC5B4\uD45C \uB9CC\uB4E4\uAE30",company:"\uC5C5\uCCB4\uC815\uBCF4",more:"\uB354\uBCF4\uAE30",moreMenu:"\uB354\uBCF4\uAE30 \uBA54\uB274"},a2={language:{training:{label:"\uD6C8\uB828 \uC5B8\uC5B4",sub:"\uD6C8\uB828\uC5D0 \uC0AC\uC6A9\uB418\uB294 \uB2E8\uC5B4\uC640 \uC74C\uC131 \uC5B8\uC5B4"}},notifications:{title:"\uC54C\uB9BC"},display:{fontSize:{small:"\uC791\uAC8C",large:"\uD06C\uAC8C"}},cache:{title:"\uCE90\uC2DC \uAD00\uB9AC",confirmMessage:"\uCE90\uC2DC({{size}})\uB97C \uC0AD\uC81C\uD569\uB2C8\uB2E4. \uACC4\uC18D\uD558\uC2DC\uACA0\uC2B5\uB2C8\uAE4C?",delete:"\uC0AD\uC81C",deleting:"\uC0AD\uC81C \uC911",cleared:"\uCE90\uC2DC\uAC00 \uC0AD\uC81C\uB418\uC5C8\uC2B5\uB2C8\uB2E4.",group:{wordData:{label:"\uB2E8\uC5B4 \uB370\uC774\uD130",sub:"\uB2E8\uC5B4 \uBAA9\uB85D \uBC0F \uBC84\uC804 \uC815\uBCF4"},pairIndex:{label:"\uB2E8\uC5B4\uC30D \uC778\uB371\uC2A4",sub:"\uCD08\uC131\xB7\uC911\uC131\xB7\uC885\uC131 \uB300\uB9BD\uC30D \uBD84\uC11D \uCE90\uC2DC"},imageCache:{label:"\uC774\uBBF8\uC9C0 \uCE90\uC2DC",sub:"\uB2E8\uC5B4\uBCC4 \uC774\uBBF8\uC9C0 \uC874\uC7AC \uC5EC\uBD80 \uD655\uC778 \uACB0\uACFC"},trainingRecord:{label:"\uD6C8\uB828 \uAE30\uB85D",sub:"\uC624\uB298\uC758 \uD6C8\uB828 \uC9C4\uD589\uB960 \uBC0F \uD559\uC2B5 \uC77C\uC218"}}},button:{save:"\uC124\uC815 \uC800\uC7A5"},popup:{clear:{confirm:"\uCD08\uAE30\uD654"},update:{confirm:"\uC5C5\uB370\uC774\uD2B8"},cache:{title:"{{label}} \uC0AD\uC81C",message:"{{label}}({{size}})\uB97C \uC0AD\uC81C\uD569\uB2C8\uB2E4. \uACC4\uC18D\uD558\uC2DC\uACA0\uC2B5\uB2C8\uAE4C?"}},saved:"\u2713 \uC800\uC7A5\uB428",account:{title:"\uACC4\uC815",delete:{sub:"\uD0C8\uD1F4 \uD6C4 30\uC77C \uC774\uB0B4 \uC7AC\uAC00\uC785 \uC2DC \uBCF5\uAD6C \uAC00\uB2A5\uD569\uB2C8\uB2E4."}}},r2={addButton:"\uC774\uC6A9\uAD8C \uCD94\uAC00\uD558\uAE30",couponButton:"\uCFE0\uD3F0 \uC785\uB825",loading:"\uBD88\uB7EC\uC624\uB294 \uC911\u2026",segment:{personal:"\uB9D0\uADC0",org:"\uB9D0\uADC0\uB9E4\uB2C8\uC800"},org:{title:"\uD604\uC7AC \uC774\uC6A9\uAD8C",disc:"\uAE30\uAD00\uC5D0\uC11C \uC0AC\uC6A9 \uC911\uC778 \uC774\uC6A9\uAD8C \uC815\uBCF4\uC785\uB2C8\uB2E4.",empty:"\uB4F1\uB85D\uB41C \uAE30\uAD00 \uC774\uC6A9\uAD8C\uC774 \uC5C6\uC2B5\uB2C8\uB2E4.",fallbackTitle:"\uAE30\uAD00 \uC774\uC6A9\uAD8C",startDate:"\uC2DC\uC791\uC77C",endDate:"\uB9CC\uB8CC\uC77C",remaining:"\uB0A8\uC740 \uAE30\uAC04",duration:"\uC774\uC6A9 \uAE30\uAC04"},active:{infoTitle:"\uC774\uC6A9 \uC815\uBCF4",refund:"\uD658\uBD88 \uC694\uCCAD",startDate:"\uC0AC\uC6A9 \uC2DC\uC791\uC77C",endDate:"\uC885\uB8CC\uC77C",remaining:"\uB0A8\uC740 \uAE30\uAC04"},pending:{title:"\uBCF4\uC720",empty:"\uB300\uAE30 \uC911\uC778 \uC774\uC6A9\uAD8C\uC774 \uC5C6\uC2B5\uB2C8\uB2E4."}},o2={profile:{planSuffix:"\uD50C\uB79C",plan:"\uD50C\uB79C"},basicInfo:{name:{placeholder:"\uD64D\uAE38\uB3D9"}},security:{title:"\uBCF4\uC548",password:{label:"\uBE44\uBC00\uBC88\uD638",currentRequired:"\uD604\uC7AC \uBE44\uBC00\uBC88\uD638\uB97C \uC785\uB825\uD558\uC138\uC694.",newRequired:"\uC0C8 \uBE44\uBC00\uBC88\uD638\uB97C \uC785\uB825\uD558\uC138\uC694.",mismatch:"\uC0C8 \uBE44\uBC00\uBC88\uD638\uAC00 \uC77C\uCE58\uD558\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4.",changed:"\uBE44\uBC00\uBC88\uD638\uAC00 \uBCC0\uACBD\uB418\uC5C8\uC2B5\uB2C8\uB2E4."},twoFactor:{label:"2\uB2E8\uACC4 \uC778\uC99D",sub:"\uACC4\uC815 \uBCF4\uC548\uC744 \uAC15\uD654\uD558\uC138\uC694"}}},s2={guide:{faq:{title:"\uC790\uC8FC \uBB3B\uB294 \uC9C8\uBB38",desc:"FAQ \uBAA8\uC544\uBCF4\uAE30"}}},i2={settings:"\uC124\uC815",start:{title:"\uB2E8\uC5B4\uD6C8\uB828 \uC2DC\uC791",description:"\uC544\uB798 \uD6C8\uB828 \uC720\uD615\uC744 \uC120\uD0DD\uD574 \uC2DC\uC791\uD558\uC138\uC694"},difficulty:{tooltip:"\uAC00\uC7A5 \uC26C\uC6B4 \uB09C\uC774\uB3C4\uB294 '\uBB34\uC791\uC704', \uAC00\uC7A5 \uC5B4\uB824\uC6B4 \uB09C\uC774\uB3C4\uB294 '\uCD08\uC131\uCC28\uC774' \uC785\uB2C8\uB2E4."},contrast:{label:"\uB300\uB9BD",type:"\uB300\uB9BD \uC885\uB958",count:"\uB300\uB9BD \uAC2F\uC218",n:"{{n}}\uAC1C"},filter:{random:"\uBB34\uC791\uC704",trainOnset:"\uCD08\uC131",trainVowel:"\uBAA8\uC74C",trainCoda:"\uC885\uC131",phonemeGroup:"\uD6C8\uB828 \uC74C\uC808",noLimit:"\uBB34\uAD00",codaExclude:"\uC81C\uC678",gradeLabel:"\uB4F1\uAE09",excludeImageInfo:"\uC774\uBBF8\uC9C0 \uC788\uB294 \uB2E8\uC5B4\uB9CC: \uB2E8\uC5B4 \uC911\uC5D0 \uC774\uBBF8\uC9C0\uAC00 \uC788\uB294 \uB2E8\uC5B4\uB9CC \uACB0\uACFC\uC5D0 \uBCF4\uC5EC\uC90D\uB2C8\uB2E4.",sameStructureInfo:"\uC74C\uC18C \uAD6C\uC870 \uAC19\uC740 \uB2E8\uC5B4\uB9CC: \uC815\uB2F5\uACFC \uC624\uB2F5\uC758 \uC74C\uC808 \uAD6C\uC870(\uAE00\uC790 \uC218\xB7\uBC1B\uCE68 \uC720\uBB34 \uB4F1)\uAC00 \uAC19\uC740 \uACB0\uACFC\uB9CC \uB0A8\uACA8\uC694.",selectSection:"\uC120\uD0DD",excludeImage:"\uC774\uBBF8\uC9C0 \uC788\uB294 \uB2E8\uC5B4\uB9CC",sameStructure:"\uC74C\uC18C \uAD6C\uC870 \uAC19\uC740 \uB2E8\uC5B4\uB9CC"},noQuestions:"\uBB38\uC81C\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4.",countQuestions:"{{n}}\uBB38\uC81C",countSentences:"{{n}}\uBB38\uC7A5",comingSoon:"\uC900\uBE44 \uC911",nextQuestion:"\uB2E4\uC74C \uBB38\uC81C",noiseRatioTitle:"\uC18C\uC74C \uBE44\uC728",noiseRatioValue:"{{ratio}}\uBC30",noiseTypeTitle:"\uC18C\uC74C \uC885\uB958",playVolumeTitle:"\uC804\uCCB4 \uC18C\uB9AC",playSpeedTitle:"\uC7AC\uC0DD \uC18D\uB3C4",meter:{sentence:"\uC7AC\uC0DD",noise:"\uC18C\uC74C",toggle:"\uC624\uB514\uC624 \uBBF8\uD130 \uD45C\uC2DC"},viewResult:"\uACB0\uACFC\uBCF4\uAE30",problemNotice:"{{n}}\uBC88 \uBB38\uC81C \uC785\uB2C8\uB2E4.",trainingSettingsTitle:"\uD6C8\uB828 \uC124\uC815",sentencePreview:"\uBB38\uC7A5 \uBBF8\uB9AC\uBCF4\uAE30",notHeard:"\uC548 \uB4E4\uB838\uC5B4\uC694.",heardWell:"\uC798 \uB4E4\uB838\uC5B4\uC694.",confirmTitle:"\uBB38\uC7A5\uC744 \uD655\uC778\uD558\uACE0 \uC798 \uB4E4\uB838\uB294\uC9C0 \uC120\uD0DD\uD558\uC138\uC694.",noSoundWaveform:"\uC18C\uB9AC \uBE44\uAD50 \uBB38\uC81C\uB294 \uC6E8\uC774\uBE0C\uD3FC\uC744 \uD45C\uD604\uD558\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4.",noise:{level:{none:"\uC5C6\uC74C",weak:"\uC57D\uD568",medium:"\uBCF4\uD1B5",strong:"\uAC15\uD568",veryStrong:"\uB9E4\uC6B0 \uAC15\uD568"},type:{none:"\uC5C6\uC74C",default:"\uAE30\uBCF8",street:"\uAE38\uAC70\uB9AC",buzz:"\uC640\uAE00\uC640\uAE00",restaurant:"\uC2DD\uB2F9"}},listenTitle:"\uC81C\uC2DC\uD558\uB294 \uBB38\uC7A5\uC744 \uB4E4\uC5B4\uC8FC\uC138\uC694.",listenButton:"\uBB38\uC7A5 \uB4E3\uAE30",playSound:"\uC18C\uB9AC \uB4E3\uAE30",playAll:"\uBAA8\uB450 \uB4E3\uAE30",stop:"\uC815\uC9C0",preview:"\uBBF8\uB9AC \uB4E3\uAE30",next:"\uB2E4\uC74C",completed:"\uD6C8\uB828 \uC644\uB8CC",selected:"\uC120\uD0DD\uB428",nthSelected:"{{n}}\uBC88\uC9F8 \uC120\uD0DD",fontSizeMin:"\uAE00\uC528 \uD06C\uAE30\uAC00 \uCD5C\uC18C\uC785\uB2C8\uB2E4.",fontSizeMax:"\uAE00\uC528 \uD06C\uAE30\uAC00 \uCD5C\uB300\uC785\uB2C8\uB2E4.",fontSizeDecrease:"\uAE00\uC790 \uD06C\uAE30 \uAC10\uC18C",fontSizeIncrease:"\uAE00\uC790 \uD06C\uAE30 \uC99D\uAC00",toggleBackground:"\uBC30\uACBD \uC804\uD658",cardInstructions:"\uB0B1\uB9D0 \uCE74\uB4DC\uB97C \uBCF4\uACE0 \uC18C\uB9AC\uB97C \uB4E3\uACE0 \uD655\uC778\uD558\uC138\uC694.",noCards:"\uCE74\uB4DC\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4.",audioFetchError:"\uC0AC\uC6B4\uB4DC \uC18C\uC2A4\uB97C \uAC00\uC838\uC624\uC9C0 \uBABB\uD588\uC2B5\uB2C8\uB2E4.",selectConfirm:"\uBB38\uC81C\uB97C \uBCF4\uACE0 \uD574\uB2F9\uD558\uB294 \uB0B4\uC6A9\uC744 \uC120\uD0DD\uD558\uC138\uC694.",orderListDefault:"\uBB38\uC7A5\uC744 \uB4E4\uC740 \uC21C\uC11C\uB300\uB85C \uBC30\uCE58\uD558\uC138\uC694.",result:{eyebrow:"\uD6C8\uB828 \uC644\uB8CC",title:"\uD6C8\uB828\uC744 \uBAA8\uB450 \uB9C8\uCCE4\uC2B5\uB2C8\uB2E4.",scoreAria:"{{correct}} / {{total}} \uBB38\uD56D",elapsed:"\uC18C\uC694 \uC2DC\uAC04",summary:"{{correct}}\uAC1C\uC758 \uBB38\uD56D\uC744 \uC798 \uB4E4\uC5C8\uC2B5\uB2C8\uB2E4.",tableAriaLabel:"\uBB38\uD56D\uBCC4 \uD310\uC815",colJudge:"\uD310\uC815",colAnswerSelected:"\uC815\uB2F5 \xB7 \uC120\uD0DD",colAnswer:"\uC815\uB2F5",colSelected:"\uC120\uD0DD",heardWell:"\uC798 \uB4E4\uC5C8\uC5B4\uC694",notHeard:"\uBABB \uB4E4\uC5C8\uC5B4\uC694",notJudged:"\uBBF8\uD310\uC815",replay:"\uB2E4\uC2DC\uD558\uAE30",done:"\uC644\uB8CC",viewResult:"\uACB0\uACFC \uD655\uC778",noContent:"(\uB0B4\uC6A9\uC5C6\uC74C)"},up:"\uC704\uB85C",down:"\uC544\uB798\uB85C",prev:"\uC774\uC804",listenLabel:"\uBB38\uC7A5 \uB4E3\uAE30",sourcePlay:"\uC18C\uC2A4 {{n}} \uC7AC\uC0DD",listen:"\uB4E3\uAE30"},l2={totalCount:"\uAC1C\uC758 \uD6C8\uB828 \uBB36\uC74C",renameGroup:"\uADF8\uB8F9 \uC774\uB984 \uBC14\uAFB8\uAE30",itemCount:"\uD6C8\uB828 \uAC1C\uC218",menu:{edit:"\uD6C8\uB828 \uBB36\uC74C \uC218\uC815",rename:"\uC774\uB984 \uBC14\uAFB8\uAE30",move:"\uADF8\uB8F9 \uC774\uB3D9",duplicate:"\uD6C8\uB828 \uBB36\uC74C \uBCF5\uC0AC",publish:"\uB9D0\uADC0\uC790\uB8CC\uC2E4\uC5D0 \uC62C\uB9AC\uAE30"},sort:{customers:"\uD6C8\uB828 \uACE0\uAC1D"},copyLink:"\uB9C1\uD06C \uBCF5\uC0AC",removeLink:"\uB9C1\uD06C \uC81C\uAC70",linkRemoved:"\uB9C1\uD06C\uAC00 \uC81C\uAC70\uB418\uC5C8\uC2B5\uB2C8\uB2E4.",linkSaveFirst:"\uBA3C\uC800 \uD6C8\uB828 \uBB36\uC74C\uC744 \uC800\uC7A5\uD574\uC8FC\uC138\uC694.",linkSaveFirstHint:"\uC800\uC7A5\uB41C \uD6C8\uB828 \uBB36\uC74C\uC5D0\uC11C\uB9CC \uACF5\uC720 \uB9C1\uD06C\uB97C \uC0DD\uC131\uD560 \uC218 \uC788\uC2B5\uB2C8\uB2E4.",linkCopySelect:"\uBCF5\uC0AC\uAC00 \uB9C9\uD600 \uB9C1\uD06C\uB97C \uC120\uD0DD\uD588\uC2B5\uB2C8\uB2E4. Ctrl/\u2318+C\uB85C \uBCF5\uC0AC\uD558\uC138\uC694.",nameRequired:"\uD6C8\uB828 \uBB36\uC74C \uC774\uB984\uC744 \uC785\uB825\uD574\uC8FC\uC138\uC694.",itemRequired:"\uD6C8\uB828\uC744 1\uAC1C \uC774\uC0C1 \uB2F4\uC544\uC8FC\uC138\uC694.",randomAdd:"\uBB34\uC791\uC704 \uCD94\uAC00"},c2={totalCount:"\uBA85\uC758 \uACE0\uAC1D",loadError:"\uBAA9\uB85D\uC744 \uBD88\uB7EC\uC624\uC9C0 \uBABB\uD588\uC2B5\uB2C8\uB2E4.",basicInfo:{editTooltip:"\uC218\uC815\uD558\uAE30"},member:{placeholder:"\uC774\uBA54\uC77C \uB610\uB294 \uC804\uD654",link:"\uC5F0\uACB0",linking:"\uC5F0\uACB0 \uC911\u2026"},device:{title:"\uCCAD\uAC01\uC7AC\uD65C\uAE30\uAE30",addTooltip:"\uC0C8\uB85C \uC0DD\uC131",addButton:"\uAE30\uAE30 \uCD94\uAC00",listTooltip:"\uBAA9\uB85D \uBCF4\uAE30",listTitle:"\uCE21 \uAE30\uAE30 \uBAA9\uB85D",historyEmpty:"\uB4F1\uB85D\uB41C \uAE30\uAE30 \uC774\uB825\uC774 \uC5C6\uC2B5\uB2C8\uB2E4.",wearing:"\uCE21 \uCC29\uC6A9\uC911",notRegistered:"\uBBF8\uB4F1\uB85D",unit:"\uAC1C",wearingNow:"\uCC29\uC6A9",wear:"\uCC29\uC6A9",unwear:"\uCC29\uC6A9 \uD574\uC81C",wornSince:"{{date}}\uBD80\uD130",release:"\uD574\uC81C",historyTitle:"\uCCAD\uAC01\uC7AC\uD65C\uAE30\uAE30 \uC774\uB825"},schedule:{title:"\uBC29\uBB38 \uC608\uC815",addTooltip:"\uC608\uC815 \uB4F1\uB85D",listTooltip:"\uC804\uCCB4 \uBCF4\uAE30",empty:"\uC608\uC815\uB41C \uBC29\uBB38\uC774 \uC5C6\uC2B5\uB2C8\uB2E4.",registerTitle:" \uACE0\uAC1D\uB2D8 \uBC29\uBB38 \uC608\uC815 \uB4F1\uB85D",memoPlaceholder:"\uBC29\uBB38 \uC608\uC815 \uAD00\uB828 \uBA54\uBAA8\uB97C \uC785\uB825\uD574 \uC8FC\uC138\uC694."},visitHistory:{title:"\uBC29\uBB38 \uC774\uB825",addTooltip:"\uC2E0\uADDC \uB4F1\uB85D",empty:"\uC544\uC9C1 \uBC29\uBB38 \uAE30\uB85D\uC774 \uC5C6\uC2B5\uB2C8\uB2E4.",popupTitle:" \uACE0\uAC1D\uB2D8 \uBC29\uBB38 \uC774\uB825",registerTitle:" \uACE0\uAC1D\uB2D8 \uC2E0\uADDC \uBC29\uBB38 \uB4F1\uB85D"},homework:{title:"\uC219\uC81C \uC9C4\uD589\uC0C1\uD669",active:"\uD65C\uC131",inactive:"\uBE44\uD65C\uC131",copy:"\uB9C1\uD06C \uBCF5\uC0AC",copied:"\uB9C1\uD06C\uAC00 \uBCF5\uC0AC\uB418\uC5C8\uC2B5\uB2C8\uB2E4."},moreItems:"\uB354 \uC788\uC74C",viewAll:"\uC804\uCCB4 \uBCF4\uAE30",visits:{title:"\uBC29\uBB38"},trainingRecord:{title:"\uACE0\uAC1D \uD6C8\uB828 \uAE30\uB85D"},status:{trainingSubtitle:"\uD6C8\uB828 \uD604\uD669"},detail:{session:{completedFmt:"\uC644\uB8CC {{done}}/{{total}} \xB7 {{duration}}"},visitSuffix:"\uC758 \uBC29\uBB38"},duration:{minSec:"{{m}}\uBD84 {{s}}\uCD08",min:"{{m}}\uBD84",sec:"{{s}}\uCD08"}},u2={plan:{recommendedFor:"\uC774\uB7F0 \uBD84\uAED8 \uCD94\uCC9C\uD569\uB2C8\uB2E4.",features:"\uD575\uC2EC \uAE30\uB2A5",freePrice:"\uBB34\uB8CC",contact:"\uBB38\uC758\uD558\uAE30",tierFallback:"\uC774\uC6A9\uAD8C",openPromo:"\uC624\uD508 \uD2B9\uAC00"},products:{mgrEnterprise:{tier:{price:"\uBB38\uC758"}}}},d2={title:"\uCFE0\uD3F0",subtitle:"\uCFE0\uD3F0 \uCF54\uB4DC\uB97C \uC785\uB825\uD558\uAC70\uB098 \uBCF4\uC720 \uCFE0\uD3F0\uC744 \uD655\uC778\uD558\uC138\uC694.",input:{label:"\uCFE0\uD3F0 \uCF54\uB4DC",placeholder:"\uCFE0\uD3F0 \uCF54\uB4DC \uC785\uB825"},applyButton:"\uC801\uC6A9",error:{invalid:"\uC720\uD6A8\uD558\uC9C0 \uC54A\uC740 \uCFE0\uD3F0 \uCF54\uB4DC\uC785\uB2C8\uB2E4.",alreadyUsed:"\uC774\uBBF8 \uC0AC\uC6A9\uB41C \uCFE0\uD3F0\uC785\uB2C8\uB2E4."},success:{applied:'"{{name}}" \uCFE0\uD3F0\uC774 \uC801\uC6A9\uB418\uC5C8\uC2B5\uB2C8\uB2E4.'},section:{owned:"\uBCF4\uC720 \uCFE0\uD3F0"},status:{used:"\uC0AC\uC6A9 \uC644\uB8CC",available:"\uC0AC\uC6A9 \uAC00\uB2A5"}},p2={unitVisit:"\uAC74",periodAll:"\uC804\uCCB4",showN:"{{n}}\uAC1C\uC529"},h2={subtitle:"\uC5C5\uCCB4 \uBC0F \uBC95\uC778 \uC815\uBCF4\uB97C \uAD00\uB9AC\uD558\uC138\uC694.",editButton:"\uC815\uBCF4 \uC218\uC815",basicInfo:{title:"\uAE30\uBCF8 \uC815\uBCF4"},contactInfo:{title:"\uC5F0\uB77D\uCC98 \uC815\uBCF4"}},m2={title:"\uD6C8\uB828\uBCC4 \uB4E3\uAE30",subtitle:"\uC6D0\uD558\uB294 \uD6C8\uB828 \uC720\uD615\uC744 \uC120\uD0DD\uD558\uC138\uC694.",listenInNoise:{title:"\uC18C\uC74C \uD558 \uBB38\uC7A5 \uB4E3\uAE30",desc:"\uB2E4\uC591\uD55C \uC18C\uC74C \uD658\uACBD\uC5D0\uC11C \uBB38\uC7A5 \uCCAD\uB825\uC744 \uD6C8\uB828\uD569\uB2C8\uB2E4."},shortStory:{title:"\uC9E7\uC740 \uC774\uC57C\uAE30 \uB4E3\uAE30",desc:"\uC9E7\uC740 \uC774\uC57C\uAE30\uB97C \uB4E3\uACE0 \uB0B4\uC6A9\uC744 \uC774\uD574\uD569\uB2C8\uB2E4."},longStory:{title:"\uAE34 \uC774\uC57C\uAE30 \uB4E3\uAE30",desc:"\uAE34 \uC774\uC57C\uAE30\uB97C \uC9D1\uC911\uD574\uC11C \uB4E3\uACE0 \uB0B4\uC6A9\uC744 \uD30C\uC545\uD569\uB2C8\uB2E4."},orderingSentence:{title:"\uBB38\uC7A5 \uC21C\uC11C\uD654",desc:"\uB4E4\uC740 \uBB38\uC7A5\uB4E4\uC744 \uC62C\uBC14\uB978 \uC21C\uC11C\uB85C \uBC30\uC5F4\uD569\uB2C8\uB2E4."},SAME_SOUND_PICK:{label:"\uAC19\uC740 \uC18C\uB9AC \uACE0\uB974\uAE30",sub:"\uB4E4\uC740 \uC18C\uB9AC\uC640 \uAC19\uC740 \uB2E8\uC5B4 \uCE74\uB4DC\uB97C \uACE0\uB974\uC138\uC694."},SAME_OR_DIFF:{label:"\uAC19\uC740\uC9C0 \uB2E4\uB978\uC9C0 \uB9DE\uD788\uAE30",sub:"\uB450 \uC18C\uB9AC\uAC00 \uAC19\uC740\uC9C0, \uB2E4\uB978\uC9C0 \uAD6C\uBD84\uD558\uC138\uC694."},HEAR_AND_PICK_SAME:{label:"\uC77C\uCE58\uD558\uB294 \uB2E8\uC5B4 \uB9DE\uD788\uAE30",sub:"\uB4E4\uC740 \uC18C\uB9AC\uC758 \uB2E8\uC5B4 \uCE74\uB4DC\uB97C \uACE0\uB974\uC138\uC694."},HEAR_AND_PICK_INCLUDED:{label:"\uD55C \uC74C\uC808 \uD3EC\uD568 \uB2E8\uC5B4 \uB9DE\uD788\uAE30",sub:"\uB4E4\uC740 \uC74C\uC808\uC774 \uD3EC\uD568\uB41C \uB2E8\uC5B4 \uCE74\uB4DC\uB97C \uACE0\uB974\uC138\uC694."},STARTS_WITH_SAME_SOUND:{label:"\uCCAB \uC74C\uC808\uC774 \uAC19\uC740 \uB2E8\uC5B4 \uB9DE\uD788\uAE30",sub:"\uB4E4\uC740 \uB2E8\uC5B4\uC640 \uAC19\uC740 \uC18C\uB9AC\uB85C \uC2DC\uC791\uD558\uB294 \uB2E8\uC5B4\uB97C \uACE0\uB974\uC138\uC694."},LISTEN_AND_REMEMBER_ORDER:{label:"\uB4E3\uACE0 \uC21C\uC11C\uB300\uB85C \uAE30\uC5B5\uD558\uAE30",sub:"\uC138 \uB2E8\uC5B4\uB97C \uB4E4\uC740 \uC21C\uC11C\uB300\uB85C \uCE74\uB4DC\uB97C \uC120\uD0DD\uD558\uC138\uC694."},MERGE_2_SYLLABLES:{label:"\uC74C\uC808 2\uAC1C \uD569\uCE58\uAE30",sub:"\uB450 \uC74C\uC808\uC744 \uD569\uCE58\uBA74 \uC5B4\uB5A4 \uB2E8\uC5B4\uAC00 \uB420\uAE4C\uC694?"},MERGE_3_SYLLABLES:{label:"\uC74C\uC808 3\uAC1C \uD569\uCE58\uAE30",sub:"\uC138 \uC74C\uC808\uC744 \uD569\uCE58\uBA74 \uC5B4\uB5A4 \uB2E8\uC5B4\uAC00 \uB420\uAE4C\uC694?"},MERGE_2_PHONEMES:{label:"\uC74C\uC18C 2\uAC1C \uD569\uCE58\uAE30",sub:"\uB450 \uC74C\uC18C\uB97C \uD569\uCE58\uBA74 \uC5B4\uB5A4 \uC18C\uB9AC\uAC00 \uB420\uAE4C\uC694?"},MERGE_3_PHONEMES:{label:"\uC74C\uC18C 3\uAC1C \uD569\uCE58\uAE30",sub:"\uC138 \uC74C\uC18C\uB97C \uD569\uCE58\uBA74 \uC5B4\uB5A4 \uC18C\uB9AC\uAC00 \uB420\uAE4C\uC694?"},DROP_1_FROM_2SYLL:{label:"2\uC74C\uC808\uC5D0\uC11C \uD55C \uC74C\uC808 \uD0C8\uB77D",sub:"2\uC74C\uC808 \uB2E8\uC5B4\uC5D0\uC11C \uD55C \uC74C\uC808\uC744 \uBE7C\uBA74 \uC5B4\uB5A4 \uC18C\uB9AC\uAC00 \uB420\uAE4C\uC694?"},DROP_1_FROM_3SYLL:{label:"3\uC74C\uC808\uC5D0\uC11C \uD55C \uC74C\uC808 \uD0C8\uB77D",sub:"3\uC74C\uC808 \uB2E8\uC5B4\uC5D0\uC11C \uD55C \uC74C\uC808\uC744 \uBE7C\uBA74 \uC5B4\uB5A4 \uC18C\uB9AC\uAC00 \uB420\uAE4C\uC694?"},DROP_PART_FROM_COMPOUND:{label:"\uD569\uC131\uC5B4\uC5D0\uC11C \uBD80\uBD84 \uD0C8\uB77D",sub:"\uD569\uC131\uC5B4\uC758 \uC77C\uBD80\uB97C \uBE7C\uBA74 \uC5B4\uB5A4 \uB2E8\uC5B4\uAC00 \uB420\uAE4C\uC694?"},DROP_FINAL_CONSONANT_FROM_1SYLL:{label:"1\uC74C\uC808\uC5D0\uC11C \uBC1B\uCE68 \uD0C8\uB77D",sub:"\uBC1B\uCE68\uC744 \uBE7C\uBA74 \uC5B4\uB5A4 \uC18C\uB9AC\uAC00 \uB420\uAE4C\uC694?"},REMOVE_CONSONANT_AND_IDENTIFY_PHONEME:{label:"1\uC74C\uC808\uC5D0\uC11C \uC790\uC74C \uD0C8\uB77D",sub:"\uC790\uC74C\uC744 \uBE7C\uBA74 \uC5B4\uB5A4 \uC18C\uB9AC\uAC00 \uB0A8\uC744\uAE4C\uC694?"},CHANGE_1_SYLL_IN_2SYLL:{label:"2\uC74C\uC808\uC5D0\uC11C \uD55C \uC74C\uC808 \uBC14\uAFB8\uAE30",sub:"2\uC74C\uC808 \uB2E8\uC5B4\uC758 \uD55C \uC74C\uC808\uC744 \uBC14\uAFD4 \uC0C8 \uB2E8\uC5B4\uB97C \uB9CC\uB4DC\uC138\uC694."},CHANGE_1_SYLL_IN_3SYLL:{label:"3\uC74C\uC808\uC5D0\uC11C \uD55C \uC74C\uC808 \uBC14\uAFB8\uAE30",sub:"3\uC74C\uC808 \uB2E8\uC5B4\uC758 \uD55C \uC74C\uC808\uC744 \uBC14\uAFD4 \uC0C8 \uB2E8\uC5B4\uB97C \uB9CC\uB4DC\uC138\uC694."},CHANGE_1_PHONEME_IN_1SYLL:{label:"1\uC74C\uC808 \uB2E8\uC5B4 \uC911 1\uAC1C \uC74C\uC18C \uBC14\uAFB8\uAE30",sub:"1\uC74C\uC808 \uB2E8\uC5B4\uC758 \uD55C \uC74C\uC18C\uB97C \uBC14\uAFD4 \uC0C8 \uC18C\uB9AC\uB97C \uB9CC\uB4DC\uC138\uC694."},CHANGE_1_PHONEME_IN_2SYLL:{label:"2\uC74C\uC808 \uB2E8\uC5B4 \uC911 1\uAC1C \uC74C\uC18C \uBC14\uAFB8\uAE30",sub:"2\uC74C\uC808 \uB2E8\uC5B4\uC758 \uD55C \uC74C\uC18C\uB97C \uBC14\uAFD4 \uC0C8 \uB2E8\uC5B4\uB97C \uB9CC\uB4DC\uC138\uC694."}},f2={comingSoon:"\uB2E8\uC5B4\uD6C8\uB828 \uAE30\uB2A5\uC744 \uC900\uBE44 \uC911\uC785\uB2C8\uB2E4."},C2={colName:"\uB2E8\uC5B4\uD45C \uC774\uB984",open:"\uC5F4\uAE30",countSuffix:"\uAC1C\uC758 \uB2E8\uC5B4\uD45C",tab:{cards:"\uB2E8\uC5B4\uD45C \uCE74\uB4DC",tables:"\uB2E8\uC5B4\uD45C"},cardsEmpty:"\uC544\uC9C1 \uB9CC\uB4E0 \uB2E8\uC5B4\uD45C \uCE74\uB4DC\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4.",addCard:"\uB2E8\uC5B4\uD45C \uCE74\uB4DC \uCD94\uAC00",menu:{publishStore:"\uB9D0\uADC0\uC790\uB8CC\uC2E4\uC5D0 \uC62C\uB9AC\uAE30",unpublishStore:"\uB9D0\uADC0\uC790\uB8CC\uC2E4\uC5D0\uC11C \uB0B4\uB9AC\uAE30"},newBadge:"\uC0C8\uB85C \uB9CC\uB4E0 \uD45C",publishedBadge:"\uBC1C\uD589\uB428",sharedBadge:"\uACF5\uC720 \uC911"},g2={title:"\uC8FC\uC694 \uB2E8\uC5B4",empty:"\uCD94\uCD9C\uB41C \uC8FC\uC694 \uB2E8\uC5B4\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4."},b2={defaultName:"\uB2E8\uC5B4 \uD45C",title:"\uB2E8\uC5B4 \uD45C \uB9CC\uB4E4\uAE30",subtitle:"\uCE78\uC744 \uC124\uC815\uD558\uACE0 \uB2E8\uC5B4\uB97C \uCD94\uAC00\uD558\uC5EC \uD45C\uB97C \uB9CC\uB4ED\uB2C8\uB2E4.",filterTitle:"\uD45C \uC124\uC815",filter:{composition:"\uAD6C\uC131",image:"\uC774\uBBF8\uC9C0",word:"\uB2E8\uC5B4",standardPron:"\uD45C\uC900 \uBC1C\uC74C",colloquialPron:"\uAD6C\uC5B4\uCCB4 \uBC1C\uC74C",paperOrientation:"\uC6A9\uC9C0 \uBC29\uD5A5",landscape:"\uAC00\uB85C",portrait:"\uC138\uB85C",columns:"\uCE78 \uC218",column:"{{count}}\uCE78",itemsPerPageWord:"\uD398\uC774\uC9C0\uB2F9 \uB2E8\uC5B4 \uC218",itemsPerPagePair:"\uD398\uC774\uC9C0\uB2F9 \uB300\uB9BD\uC30D \uC218",itemsPerPageOption:"{{count}}\uAC1C",pageIndicator:"{{current}} / {{total}}",pageNumber:"\uD398\uC774\uC9C0 \uBC88\uD638",pageNumberLeft:"\uC67C\uCABD",pageNumberCenter:"\uC911\uC559",pageNumberRight:"\uC624\uB978\uCABD",border:"\uC678\uACFD\uC120",cutLine:"\uC808\uCDE8\uC120",show:"\uD45C\uC2DC",hide:"\uBBF8\uD45C\uC2DC",dotted:"\uC810\uC120",corner:"\uCF54\uB108"},addWord:"\uCD94\uAC00\uD558\uAE30",wordInfo:"{{word}} \uB0B1\uB9D0 \uC815\uBCF4",emptyItems:"\uB2E8\uC5B4\uB97C 1\uAC1C \uC774\uC0C1 \uCD94\uAC00\uD574\uC8FC\uC138\uC694.",load:"\uBD88\uB7EC\uC624\uAE30",openNewWindow:"\uC0C8 \uCC3D\uC73C\uB85C \uBCF4\uAE30",saveButton:"\uC800\uC7A5\uD558\uAE30",saveAsNewButton:"\uB2E4\uB978 \uC774\uB984\uC73C\uB85C \uC800\uC7A5",print:"\uC778\uC1C4\uD558\uAE30",popupBlocked:"\uD31D\uC5C5\uC774 \uCC28\uB2E8\uB418\uC5C8\uC2B5\uB2C8\uB2E4. \uBE0C\uB77C\uC6B0\uC800 \uC124\uC815\uC5D0\uC11C \uD31D\uC5C5\uC744 \uD5C8\uC6A9\uD574 \uC8FC\uC138\uC694.",printFileNameSingle:"\uB2E8\uC5B4\uD45C",printFileNamePair:"\uB300\uB9BD\uC30D\uD45C",save:{title:"\uB2E8\uC5B4\uD45C \uC800\uC7A5\uD558\uAE30",nameLabel:"\uC774\uB984",desc:"\uC800\uC7A5\uD560 \uB2E8\uC5B4 \uD45C\uC758 \uC774\uB984\uC744 \uC785\uB825\uD558\uC138\uC694.",placeholder:"\uC774 \uB2E8\uC5B4\uD45C\uC5D0 \uB300\uD55C \uC81C\uBAA9\uC744 \uC785\uB825\uD558\uC138\uC694.",descriptionLabel:"\uC124\uBA85",descriptionPlaceholder:"\uC774 \uB2E8\uC5B4\uD45C\uC5D0 \uB300\uD55C \uC124\uBA85\uC744 \uC785\uB825\uD558\uC138\uC694.",duplicateName:"\uC774\uBBF8 \uC0AC\uC6A9 \uC911\uC778 \uC774\uB984\uC785\uB2C8\uB2E4.",nameRequired:"\uD45C \uC774\uB984\uC744 \uC785\uB825\uD574 \uC8FC\uC138\uC694.",autoFillHint:" (Tab \uB610\uB294 space \uC785\uB825\uC2DC \uC790\uB3D9 \uC785\uB825)"},loadTable:{title:"\uC800\uC7A5\uB41C \uB2E8\uC5B4 \uD45C \uBD88\uB7EC\uC624\uAE30",empty:"\uC800\uC7A5\uB41C \uB2E8\uC5B4 \uD45C\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4.",loadButton:"\uBD88\uB7EC\uC624\uAE30",itemCount:"{{count}}\uAC1C",deleteAriaLabel:"\uC0AD\uC81C",sort:{newest:"\uCD5C\uC2E0\uC21C",oldest:"\uC624\uB798\uB41C\uC21C",name:"\uC774\uB984\uC21C",count:"\uB2E8\uC5B4 \uC218"},view:{grid:"\uD45C\uB85C \uBCF4\uAE30",list:"\uB9AC\uC2A4\uD2B8\uB85C \uBCF4\uAE30"}},groupDeleteMessage:"\uADF8\uB8F9 \uB0B4 \uB2E8\uC5B4\uD45C\uB294 '\uADF8\uB8F9 \uC5C6\uC74C'\uC73C\uB85C \uC774\uB3D9\uD569\uB2C8\uB2E4.",groupNamePlaceholder:"\uADF8\uB8F9 \uC774\uB984",store:{badge:"\uB9D0\uADC0\uC790\uB8CC\uC2E4"},card:{sub:"\uB2E8\uC5B4\uD45C \uCE74\uB4DC",empty:"\uC774 \uCE74\uB4DC\uC5D0 \uB2E8\uC5B4\uD45C\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4."},toast:{renameError:"\uC774\uB984 \uBCC0\uACBD\uC5D0 \uC2E4\uD328\uD588\uC2B5\uB2C8\uB2E4",saveError:"\uC800\uC7A5\uC5D0 \uC2E4\uD328\uD588\uC2B5\uB2C8\uB2E4",deleteError:"\uC0AD\uC81C\uC5D0 \uC2E4\uD328\uD588\uC2B5\uB2C8\uB2E4",duplicateError:"\uBCF5\uC81C\uC5D0 \uC2E4\uD328\uD588\uC2B5\uB2C8\uB2E4",saveSuccess:"\uB2E8\uC5B4\uD45C\uAC00 \uC800\uC7A5\uB418\uC5C8\uC2B5\uB2C8\uB2E4."},scoring:{o:"{{word}} \uB9DE\uC74C",triangle:"{{word}} \uC560\uB9E4",x:"{{word}} \uD2C0\uB9BC",button:"\uCC44\uC810\uD558\uAE30",pickTitle:"\uB204\uAD6C\uB97C \uCC44\uC810\uD560\uAE4C\uC694?",pickSubtitle:"\u2018{{name}}\u2019 \uD45C\uB85C \uD6C8\uB828\uD55C \uACE0\uAC1D\uC744 \uACE0\uB974\uC138\uC694.",pickSearch:"\uC774\uB984 \uB610\uB294 \uC804\uD654\uBC88\uD638\uB85C \uCC3E\uAE30",pickEmpty:"\uB4F1\uB85D\uB41C \uACE0\uAC1D\uC774 \uC5C6\uC2B5\uB2C8\uB2E4.",pickNoMatch:"\uCC3E\uB294 \uACE0\uAC1D\uC774 \uC5C6\uC2B5\uB2C8\uB2E4.",pickAgain:"\uACE0\uAC1D \uB2E4\uC2DC \uACE0\uB974\uAE30",scoringFor:"{{name}} \uB2D8 \uCC44\uC810 \uC911",none:"\uCE78\uC744 \uB20C\uB7EC \u25CB \xB7 \u25B3 \xB7 \u2715 \uB97C \uB9E4\uAE30\uC138\uC694.",tally:"{{marked}}\uCE78 \uCC44\uC810 \xB7 \u25CB {{o}} \xB7 \u25B3 {{triangle}} \xB7 \u2715 {{x}} \xB7 \uC815\uB2F5\uB960 {{rate}}%",save:"\uCC44\uC810 \uC800\uC7A5",saved:"{{name}} \uB2D8\uC758 \uCC44\uC810 {{count}}\uCE78\uC744 \uC800\uC7A5\uD588\uC2B5\uB2C8\uB2E4.",reviewTitle:"\uBCF5\uC2B5\uD45C\uB97C \uB9CC\uB4E4\uAE4C\uC694?",reviewMessage:"{{name}} \uB2D8\uC774 \uD2C0\uB9AC\uAC70\uB098 \uC560\uB9E4\uD588\uB358 {{count}}\uCE78\uC73C\uB85C \uC0C8 \uD45C\uB97C \uB9CC\uB4ED\uB2C8\uB2E4. \uB9DE\uD78C \uCE78\uC740 \uBE60\uC9D1\uB2C8\uB2E4.",reviewConfirm:"\uBCF5\uC2B5\uD45C \uB9CC\uB4E4\uAE30",reviewDescription:"\u2018{{name}}\u2019 \uCC44\uC810\uC5D0\uC11C \uD2C0\uB9AC\uAC70\uB098 \uC560\uB9E4\uD588\uB358 {{count}}\uCE78\uC744 \uBAA8\uC740 \uD45C\uC785\uB2C8\uB2E4.",reviewCreated:"\u2018{{name}}\u2019\uC744(\uB97C) \uB9CC\uB4E4\uC5C8\uC2B5\uB2C8\uB2E4 \u2014 {{count}}\uCE78.",discardTitle:"\uB9E4\uAE34 \uCC44\uC810\uC744 \uBC84\uB9B4\uAE4C\uC694?",discardMessage:"{{count}}\uCE78\uC744 \uB9E4\uACBC\uC9C0\uB9CC \uC544\uC9C1 \uC800\uC7A5\uD558\uC9C0 \uC54A\uC558\uC2B5\uB2C8\uB2E4. \uB098\uAC00\uBA74 \uC0AC\uB77C\uC9D1\uB2C8\uB2E4.",discardConfirm:"\uBC84\uB9AC\uACE0 \uB098\uAC00\uAE30"}},y2={editBanner:{message:"\uC800\uC7A5\uD558\uBA74 \uC9C0\uAE08 \uC218\uC815 \uC911\uC778 \uB2E8\uC5B4\uD45C\uAC00 \uAC31\uC2E0\uB429\uB2C8\uB2E4."},filterTitle:"\uB2E8\uC5B4 \uAC80\uC0C9 \uC124\uC815",filter:{positionAny:"\uBB34\uAD00",positionHead:"\uC5B4\uB450",positionMid:"\uC5B4\uC911",positionTail:"\uC5B4\uB9D0",difficulty:"\uB4F1\uAE09",grade:"{{n}}\uB4F1\uAE09",syllables:"\uC74C\uC808 \uC218",syllable:"{{n}}\uC74C\uC808",syllable5plus:"5\uC74C\uC808 \uC774\uC0C1",partOfSpeech:"\uD488\uC0AC",pos:{noun:"\uCCB4\uC5B8(\uBA85\uC0AC, \uC218\uC0AC)",verb:"\uC6A9\uC5B8(\uB3D9\uC0AC, \uD615\uC6A9\uC0AC)",modifier:"\uC218\uC2DD\uC5B8(\uBD80\uC0AC, \uAD00\uD615\uC0AC)"},wordType:"\uC720\uD615",type:{native:"\uACE0\uC720\uC5B4",sino:"\uD55C\uC790\uC5B4",foreign:"\uC678\uB798\uC5B4",mixed:"\uD63C\uC885\uC5B4"},exclude:"\uC81C\uC678",excludeNoImage:"\uC774\uBBF8\uC9C0 \uC5C6\uC74C"},searchButton:"\uAC80\uC0C9\uD558\uAE30",resultUnit:"\uB2E8\uC5B4",remaining:"{{count}}\uAC1C \uB0A8\uC74C",resultDisc:"\uC6D0\uD558\uB294 {{unit}} \uC120\uD0DD\uD558\uC138\uC694. {{max}}\uAC1C\uAE4C\uC9C0 \uC120\uD0DD\uD560 \uC218 \uC788\uC2B5\uB2C8\uB2E4. ({{selected}}/{{max}})",resultTitlePrefix:"\uCD1D ",resultTitleSuffix:"\uAC1C\uC758 {{unit}} \uAC80\uC0C9\uB418\uC5C8\uC2B5\uB2C8\uB2E4.",emptyResult:"\uAC80\uC0C9 \uACB0\uACFC\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4.",groupCount:"{{count}}\uAC1C",sort:{aria:"\uC815\uB82C",match:"\uC2DC\uC791 \uC6B0\uC120",ganada:"\uAC00\uB098\uB2E4\uC21C \u2191",ganadaDesc:"\uAC00\uB098\uB2E4\uC21C \u2193",syllable:"\uC74C\uC808 \uC218 \u2191",syllableDesc:"\uC74C\uC808 \uC218 \u2193",grade:"\uB4F1\uAE09\uC21C \u2191",gradeDesc:"\uB4F1\uAE09\uC21C \u2193"},pageSize:"{{count}}\uAC1C\uC529 \uBCF4\uAE30",pageSizeAria:"\uD398\uC774\uC9C0 \uD06C\uAE30",popup:{title:"{{n}}\uBC88 \uCE78\uC5D0 \uB123\uC744 \uB2E8\uC5B4\uB97C \uC120\uD0DD\uD558\uC138\uC694"}},v2={clearAllSelection:"\uBAA8\uB450 \uC120\uD0DD \uD574\uC81C",divLine:"\uB300\uB9BD\uC120",removePair:"\uB300\uB9BD\uC30D \uBE7C\uAE30",removeWord:"\uB2E8\uC5B4 \uBE7C\uAE30"},x2={title:"\uC8FC\uC81C\uBCC4 \uB4E3\uAE30",subtitle:"\uC8FC\uC81C\uB97C \uC120\uD0DD\uD558\uACE0 \uB4E3\uAE30 \uD6C8\uB828\uC744 \uC2DC\uC791\uD558\uC138\uC694.",noiseTitle:"\uC18C\uC74C \uD558 \uBB38\uC7A5\uB4E3\uAE30",shortStoryTitle:"\uC9E7\uC740 \uC774\uC57C\uAE30 \uB4E3\uAE30",FOOD:"\uC74C\uC2DD",HLTH:"\uAC74\uAC15",WETH:"\uB0A0\uC528",PRSN:"\uC778\uBB3C",KRCT:"\uD55C\uAD6D\uBB38\uD654",STRY:"\uC774\uC57C\uAE30",LOCA:"\uC9C0\uC5ED",SOAR:"\uC0AC\uD68C\uC640 \uC608\uC220",NTSC:"\uC790\uC5F0\uACFC \uACFC\uD559",SPRT:"\uC2A4\uD3EC\uCE20",sub:{TRKRFD:"\uD55C\uAD6D \uC804\uD1B5\uC74C\uC2DD",MDKRFD:"\uD55C\uAD6D \uD604\uB300\uC74C\uC2DD",WRLDFD:"\uC138\uACC4\uC758 \uC74C\uC2DD",MTRFRT:"\uC2DD\uC7AC\uB8CC\uC640 \uACFC\uC77C",GEFDKL:"\uC74C\uC2DD \uC0C1\uC2DD",HTETHB:"\uAC74\uAC15\uD55C \uC2DD\uC2B5\uAD00",DISILL:"\uBCD1\uACFC \uC9C8\uD658",EXCISE:"\uC6B4\uB3D9",GEHTKL:"\uAC74\uAC15\uC0C1\uC2DD",GESSKL:"\uACC4\uC808\uC0C1\uC2DD",SNWRAN:"\uB208\uACFC \uBE44",WTHFCT:"\uC77C\uAE30\uC608\uBCF4",GEWTKL:"\uB0A0\uC528\uC0C1\uC2DD",JODYPS:"\uC870\uC120\uC2DC\uB300",MDKRPS:"\uD55C\uAD6D \uADFC\uD604\uB300",THKDPS:"\uC0BC\uAD6D\uC2DC\uB300",WRLART:"\uC138\uACC4\uC758 \uC608\uC220\uAC00",WRLPSN:"\uC138\uACC4\uC758 \uC778\uBB3C",KRLANG:"\uC6B0\uB9AC\uB9D0",TRPLCT:"\uC804\uD1B5\uB180\uC774",HERITG:"\uBB38\uD654\uC7AC",EVTFES:"\uD589\uC0AC\uC640 \uCD95\uC81C",GECTKL:"\uC0C1\uC2DD",FRYTAL:"\uB3D9\uD654",AMZING:"\uC2E0\uAE30\uD55C \uC774\uC57C\uAE30",DAYSTR:"\uC77C\uC0C1 \uC18D \uC774\uC57C\uAE30",KRLDMK:"\uD55C\uAD6D\uC758 \uBA85\uC18C",SELNMK:"\uC11C\uC6B8\uC758 \uBA85\uC18C",WRDTRB:"\uC138\uACC4\uC5EC\uD589",NAVIGT:"\uAE38 \uCC3E\uAE30",KRSOCI:"\uD55C\uAD6D",ECONEW:"\uACBD\uC81C\uC640 \uB274\uC2A4",GENART:"\uC608\uC220",GELFKL:"\uC0DD\uD65C \uC0C1\uC2DD",ANIMAL:"\uB3D9\uBB3C",PLANTS:"\uC2DD\uBB3C",ETHPLT:"\uC9C0\uAD6C",TOLELC:"\uB3C4\uAD6C\uC640 \uC804\uC790\uC81C\uD488",GESCKL:"\uACFC\uD559\uC0C1\uC2DD",INVDSP:"\uAC1C\uC778\uACBD\uAE30",MARART:"\uACA9\uD22C\uAE30",TEAMSP:"\uB2E8\uCCB4\uACBD\uAE30",FOOTBL:"\uCD95\uAD6C",GESPKL:"\uC2A4\uD3EC\uCE20 \uC0C1\uC2DD"}},_2={maxUses:"\uCD5C\uB300 \uC0AC\uC6A9 \uD69F\uC218 (\uBE44\uC6CC\uB450\uBA74 \uBB34\uC81C\uD55C)",redirect:"\uC774\uB3D9\uD560 \uD398\uC774\uC9C0 URL (\uBE44\uC6CC\uB450\uBA74 \uC571 \uBA54\uC778)",creating:"\uC0DD\uC131 \uC911\u2026",create:"\uB9C1\uD06C \uC0DD\uC131",created:"\u2713 \uB9C1\uD06C\uAC00 \uC0DD\uC131\uB418\uC5C8\uC2B5\uB2C8\uB2E4",copied:"\uBCF5\uC0AC\uB428!",copy:"\uBCF5\uC0AC",loading:"\uBD88\uB7EC\uC624\uB294 \uC911\u2026",empty:"\uC0DD\uC131\uB41C \uB9C1\uD06C\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4.",uses:"{{count}}\uD68C \uC0AC\uC6A9",expiresAt:"\uB9CC\uB8CC: {{date}}",createdAt:"\uC0DD\uC131: {{date}}",confirmDelete:"\uC0AD\uC81C\uD560\uAE4C\uC694?",deactivate:"\uBE44\uD65C\uC131\uD654",delete:"\uC0AD\uC81C",status:{active:"\uC720\uD6A8",expired:"\uB9CC\uB8CC",inactive:"\uBE44\uD65C\uC131"}},w2={passwordPlaceholder:"\uBE44\uBC00\uBC88\uD638 \uC785\uB825"},k2={subtitle:"\uC8FC\uC81C\uB97C \uC120\uD0DD\uD558\uC5EC \uB4E3\uAE30 \uC5F0\uC2B5\uC744 \uC9C4\uD589\uD558\uC138\uC694."},A2={direction:{left:"\uC88C",right:"\uC6B0",label:"\uBC29\uD5A5"},wornDate:"\uCC29\uC6A9\uC77C",deviceType:"\uC885\uB958",brand:"\uBE0C\uB79C\uB4DC",fitType:"\uCC29\uC6A9\uD615\uD0DC",productName:"\uC81C\uD488\uBA85",validationError:{brandAndProduct:"\uBE0C\uB79C\uB4DC\uC640 \uC81C\uD488\uBA85\uC744 \uC785\uB825\uD574 \uC8FC\uC138\uC694."},addNew:"\uC0C8 \uAE30\uAE30 \uCD94\uAC00",selectFromList:"\uBAA9\uB85D\uC5D0\uC11C \uC120\uD0DD",removeDevice:"\uCC29\uC6A9 \uD574\uC81C"},N2={stat:{totalCustomers:"\uCD1D \uACE0\uAC1D",monthlyVisits:"\uC774\uB2EC \uCD1D \uBC29\uBB38"},chart:{visitDetail:"\uC0C1\uC138 \uBC29\uBB38 \uD604\uD669",trainingDetail:"\uC0C1\uC138 \uD6C8\uB828 \uD604\uD669",weekly:"\uC8FC\uBCC4",daily:"\uC77C\uBCC4",periodMonth:"\uC6D4",periodWeek:"\uC8FC",weeklyPrefix:"\uC8FC\uAC04",monthlyPrefix:"\uC6D4\uAC04",visit:"\uBC29\uBB38",reservation:"\uC608\uC57D",trainingDone:"\uD6C8\uB828 \uC644\uB8CC",trainingInProgress:"\uD6C8\uB828 \uC911",weekRange:"{{start}}~{{end}}",week:"{{n}}\uC8FC"},subscriptionStatus:{active:"{{pct}}% \uD65C\uC131",expired:"{{pct}}% \uB9CC\uB8CC",unused:"{{pct}}% \uBBF8\uC0AC\uC6A9"}},B2={editBanner:{message:"\uC800\uC7A5\uD558\uBA74 \uC9C0\uAE08 \uC218\uC815 \uC911\uC778 \uB300\uB9BD\uC30D\uD45C\uAC00 \uAC31\uC2E0\uB429\uB2C8\uB2E4."},phonemeSelect:{title:"\uC74C\uC18C \uC120\uD0DD",vs:"\uB300"},caution:"\uC720\uC758\uC0AC\uD56D",mode:{include:"\uC74C\uC18C \uD3EC\uD568",pick:"\uC74C\uC18C \uB300\uB9BD",contrast:"\uC74C\uC18C \uB300\uB9BD \uC9C0\uC815",infoTitle:"\uB300\uB9BD \uBC29\uC2DD",infoInclude:"\uC74C\uC18C \uD3EC\uD568 \u2014 \uC120\uD0DD\uD55C \uC74C\uC18C\uAC00 \uBAA8\uB450 \uB4E4\uC5B4\uAC04 \uB2E8\uC5B4\uC640 \uADF8 \uB300\uB9BD\uC30D\uC744 \uCC3E\uC544\uC694.",infoPick:"\uC74C\uC18C \uB300\uB9BD \u2014 \uC120\uD0DD\uD55C \uC74C\uC18C\uAC00 \uB300\uB9BD\uC30D \uB450 \uB2E8\uC5B4\uC758 \uC2E4\uC81C \uCC28\uC774\uC810\uC77C \uB54C\uB9CC \uB9E4\uCE6D\uB3FC\uC694.",infoContrast:"\uC74C\uC18C \uB300\uB9BD \uC9C0\uC815 \u2014 \uAE30\uC900 \uB2E8\uC5B4\uC640 \uB300\uB9BD \uB2E8\uC5B4\uC758 \uC74C\uC18C\uB97C \uAC01\uAC01 \uC9C1\uC811 \uC120\uD0DD\uD574 \uB300\uB9BD\uC30D\uC744 \uCC3E\uC544\uC694."},count:"{{n}}\uAC1C",input:{char:"\uAE00\uC790 \uC120\uD0DD",pron:"\uBC1C\uC74C \uC120\uD0DD",infoTitle:"\uC785\uB825 \uBC29\uC2DD",infoChar:"\uAE00\uC790 \uC120\uD0DD \u2014 \uC120\uD0DD\uD55C \uC74C\uC18C\uB85C \uB2E8\uC5B4(\uAE00\uC790 \uAE30\uC900)\uB97C \uCC3E\uC740 \uD6C4, \uB2E8\uC5B4\uC758 \uD45C\uC900 \uBC1C\uC74C \uB300\uB9BD\uC30D\uC744 \uCC3E\uC2B5\uB2C8\uB2E4.",infoPron:"\uBC1C\uC74C \uC120\uD0DD \u2014 \uC120\uD0DD\uD55C \uC74C\uC18C\uB85C \uD45C\uC900 \uBC1C\uC74C \uB300\uB9BD\uC30D\uC744 \uCC3E\uC2B5\uB2C8\uB2E4."},phonemeN:"{{n}}\uBC88 \uC74C\uC808",phonemeSingleLabel:"\uC74C\uC808",phonemeContrastSingleLabel:"\uB300\uB9BD \uC74C\uC808",ordinals:["\uCCAB\uBC88\uC9F8","\uB450\uBC88\uC9F8","\uC138\uBC88\uC9F8","\uB124\uBC88\uC9F8"],phonemeOrdinalLabel:"{{ordinal}} \uC74C\uC808",phonemeContrastOrdinalLabel:"\uB300\uB9BD {{ordinal}} \uC74C\uC808",composition:"\uC815\uB2F5 \uB2E8\uC5B4 \uAD6C\uC131",syllableCount:"\uC74C\uC808 \uC218",syllableN:"{{n}}\uC74C\uC808",syllableNPlus:"{{n}}\uC74C\uC808 \uC774\uC0C1",onset:"\uCD08\uC131",vowel:"\uBAA8\uC74C",coda:"\uC885\uC131",filter:{searchOptionsTitle:"\uB300\uB9BD \uC124\uC815",searchModeLabel:"\uB300\uB9BD \uBC29\uC2DD",countLabel:"\uC785\uB825 \uC74C\uC808 \uAC2F\uC218",inputModeLabel:"\uC785\uB825 \uBC29\uC2DD",phonemeOrder:"\uC785\uB825 \uC74C\uC808 \uC704\uCE58",phonemeOrderInfo:["\uC77C\uCE58: \uB300\uB9BD\uC30D\uC774 \uC815\uD655\uD788 \uAC19\uC740 \uC704\uCE58(\uC74C\uC808)\uC5D0\uC11C\uB9CC \uCC28\uC774 \uB098\uC57C \uB9E4\uCE6D\uB3FC\uC694.","\uBB34\uAD00: \uCC28\uC774 \uB098\uB294 \uC704\uCE58\uB294 \uC0C1\uAD00\uC5C6\uC774 \uB9E4\uCE6D\uB3FC\uC694."],orderAny:"\uBB34\uAD00",orderMatch:"\uC77C\uCE58",difficultyInfo:"\uAD6D\uB9BD\uAD6D\uC5B4\uC6D0\uC758 \uAE30\uCD08 \uC5B4\uD718 \uB4F1\uAE09\uC774 \uACB0\uACFC\uC5D0 \uBC18\uC601\uB429\uB2C8\uB2E4.",selectLabel:"\uC120\uD0DD",onlyHasImage:"\uC774\uBBF8\uC9C0 \uC788\uB294 \uB2E8\uC5B4\uB9CC",onlySameStructure:"\uC74C\uC18C \uAD6C\uC870 \uAC19\uC740 \uB2E8\uC5B4\uB9CC"},searchLabel:{error:"\uB370\uC774\uD130 \uBD88\uB7EC\uC624\uAE30 \uC2E4\uD328",loading:"\uBD88\uB7EC\uC624\uB294 \uC911\u2026"},confirmMessage:"\uC120\uD0DD\uD55C {{unit}} {{count}}\uAC1C\uB97C \uD3EC\uD568\uD55C \uB2E8\uC5B4 \uD45C \uC815\uBCF4\uAC00 \uC0AC\uB77C\uC9D1\uB2C8\uB2E4.",resetOptions:"\uAC80\uC0C9 \uC635\uC158 \uCD08\uAE30\uD654",phonemeContrast:"\uB300\uB9BD {{n}}\uBC88 \uC74C\uC808",infoNotes:["\uBBF8\uB9AC\uBCF4\uAE30 \uAE00\uC790\uB294 \uC120\uD0DD\uD55C \uC74C\uC18C\uC758 \uC870\uD569 \uC608\uC2DC\uC785\uB2C8\uB2E4. \uC2E4\uC81C \uAC80\uC0C9\uC740 \uD574\uB2F9 \uC74C\uC18C\uAC00 \uD3EC\uD568\uB41C \uBAA8\uB4E0 \uB2E8\uC5B4\uB97C \uB300\uC0C1\uC73C\uB85C \uD569\uB2C8\uB2E4.","\uCD08\uC131 '\u3147'\uC740 \uC120\uD0DD\uD560 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4. \uB2E8\uC5B4 \uC55E\uC5D0 \uC624\uB294 \u3147\uC740 \uC2E4\uC9C8\uC801\uC73C\uB85C \uBB34\uC74C\uC774\uC5B4\uC11C \uB300\uB9BD\uC30D \uC131\uB9BD\uC5D0 \uC601\uD5A5\uC744 \uC8FC\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4.","\uCD08\uC131\uACFC \uC885\uC131\uB9CC \uC120\uD0DD\uD558\uBA74 \uBAA8\uC74C\uC740 '\u314F'\uB85C \uC790\uB3D9 \uD45C\uC2DC\uB429\uB2C8\uB2E4.","\uC74C\uC18C \uAC1C\uC218\uB97C \uB298\uB9AC\uBA74 \uAC01 \uC74C\uC18C \uC0AC\uC774\uC758 \uB300\uB9BD\uC30D\uC744 \uAC80\uC0C9\uD569\uB2C8\uB2E4."]},S2={sentenceTyping:{roundCount:"{{rounds}}\uBB38\uC81C \xB7 \uBB38\uC81C\uB2F9 {{timeLimit}}\uCD08"},wordDefense:{me:"\uB098"},dictation:{title:"\uBC1B\uC544\uC4F0\uAE30",desc:"\uBB38\uC7A5\uC744 \uB4E3\uACE0 \uC815\uD655\uD788 \uBC1B\uC544\uC801\uB294 \uC5F0\uC2B5\uC785\uB2C8\uB2E4.",comingSoon:"\uAD6C\uD604 \uC608\uC815: \uC74C\uC131 \uC7AC\uC0DD, \uC785\uB825 \uD544\uB4DC, \uC815\uB2F5 \uBE44\uAD50"},result:{heading:"{{number}}\uB2E8\uACC4 \uD574\uB2F5",retry:"\uB2E4\uC2DC \uD480\uAE30"},common:{accuracy:"{{pct}}% \uC815\uD655\uB3C4"},soundMatch:{title:"\uC18C\uB9AC \uB9E4\uCE6D",desc:"\uAC19\uC740 \uC18C\uB9AC\uB97C \uAC00\uC9C4 \uB2E8\uC5B4 \uB610\uB294 \uBB38\uC7A5\uC744 \uBE60\uB974\uAC8C \uB9E4\uCE6D\uD558\uB294 \uAC8C\uC784\uC785\uB2C8\uB2E4.",comingSoon:"\uAD6C\uD604 \uC608\uC815: \uD50C\uB808\uC774 \uBC84\uD2BC, \uD0C0\uC774\uBA38, \uC810\uC218 \uC9D1\uACC4"},orderSequence:{title:"\uBB38\uC7A5 \uC21C\uC11C\uD654",desc:"\uD769\uC5B4\uC9C4 \uBB38\uC7A5 \uC870\uAC01\uC744 \uC62C\uBC14\uB978 \uC21C\uC11C\uB85C \uBC30\uC5F4\uD558\uB294 \uD6C8\uB828\uC785\uB2C8\uB2E4.",comingSoon:"\uAD6C\uD604 \uC608\uC815: \uBB38\uC7A5 \uC138\uD2B8, \uC21C\uC11C \uD655\uC778 \uC778\uD130\uD398\uC774\uC2A4"},speedListen:{title:"\uC18D\uB3C4 \uB4E3\uAE30",desc:"\uC2DC\uAC04 \uC81C\uD55C \uB0B4\uC5D0 \uBB38\uC7A5\uC758 \uB2E8\uC5B4 \uC218\uB97C \uB9DE\uCD94\uB294 \uB3C4\uC804\uD615 \uAC8C\uC784\uC785\uB2C8\uB2E4.",comingSoon:"\uAD6C\uD604 \uC608\uC815: \uC81C\uD55C\uC2DC\uAC04, \uC810\uC218\uD310"},noiseChallenge:{title:"\uC18C\uC74C \uCC4C\uB9B0\uC9C0",desc:"\uBC30\uACBD \uC18C\uC74C \uC18D\uC5D0\uC11C \uBB38\uC7A5\uC744 \uBD84\uBCC4\uD558\uB294 \uC5F0\uC2B5\uC785\uB2C8\uB2E4.",comingSoon:"\uAD6C\uD604 \uC608\uC815: \uB2E4\uC591\uD55C \uC18C\uC74C \uB808\uBCA8, \uC810\uC218 \uC9D1\uACC4"},fastListen:{title:"\uBE60\uB978 \uB4E3\uAE30",desc:"\uC9E7\uC740 \uBB38\uC7A5\uC744 \uBE60\uB974\uAC8C \uB4E4\uB824\uC8FC\uACE0 \uD575\uC2EC \uB2E8\uC5B4\uB97C \uC120\uD0DD\uD558\uB294 \uAC8C\uC784\uC785\uB2C8\uB2E4.",comingSoon:"\uAD6C\uD604 \uC608\uC815: \uB09C\uC774\uB3C4\uBCC4 \uC18D\uB3C4, \uD0C0\uC774\uBA38"},shadowing:{title:"\uC250\uB3C4\uC789",desc:"\uBB38\uC7A5\uC744 \uB530\uB77C \uB9D0\uD558\uBA70 \uBC1C\uC74C\uACFC \uC5B5\uC591\uC744 \uC5F0\uC2B5\uD558\uB294 \uBAA8\uB4DC\uC785\uB2C8\uB2E4.",comingSoon:"\uAD6C\uD604 \uC608\uC815: \uC7AC\uC0DD, \uB179\uC74C, \uBE44\uAD50 \uD53C\uB4DC\uBC31"},phonemeHunt:{title:"\uC74C\uC6B4 \uCC3E\uAE30",desc:"\uD2B9\uC815 \uC74C\uC6B4(\uBC1C\uC74C)\uC744 \uD3EC\uD568\uD55C \uB2E8\uC5B4\uB97C \uCC3E\uC544\uB0B4\uB294 \uAC8C\uC784\uC785\uB2C8\uB2E4.",comingSoon:"\uAD6C\uD604 \uC608\uC815: \uC74C\uC6B4 \uD544\uD130, \uD78C\uD2B8 \uAE30\uB2A5"}},D2={lead:`\uC544\uC774\uD574\uBE0C\uB294 \uC18C\uB9AC\uB97C \uD1B5\uD574
|
|
827
|
+
`),this.name="StorageNotConfiguredError"}};function vm(e){ym(e)}function Go(e,n){if(!e)return null;const a=Wn();return a?.resolvePath?a.resolvePath(e,n):n?`${n}/${e}.mp3`:null}async function Ko(e){if(!e)return null;const n=Wn();if(!n)throw new Uo("getSignedOrPublicUrl");try{return await n.resolveUrl(e)}catch{return null}}async function Zo(e){const n=Wn();if(!n)throw new Uo("downloadSound");return n.download(e)}function xm(){return Wn()?.noiseBaseUrl??"/sounds/noise"}function Yo(){const e=Number(Wn()?.noiseFileGain);return Number.isFinite(e)&&e>0?e:1}const Xo="__ihab_core_tts_config__";function Wa(){return globalThis[Xo]?.urlResolver??null}function _m(){return globalThis[Xo]?.fallbackUrlResolver??null}const wm="__ihab_core_pronunciation_resolver__";function km(){return globalThis[wm]??null}let ln=null;const qn=new WeakMap,qa=new WeakMap,Ua=new WeakMap;let Jo=!1;const Qo=e=>Math.max(0,Math.min(1,Number.isFinite(e)?e:0));function Am(){if(Jo||typeof document>"u")return;Jo=!0;const e=()=>{try{ln&&ln.state!=="running"&&ln.resume()}catch{}};for(const n of["pointerdown","touchend","keydown"])document.addEventListener(n,e,{capture:!0,passive:!0})}function es(){if(ln)return ln;try{const e=window.AudioContext||window.webkitAudioContext;return e?(ln=new e,Am(),ln):null}catch{return null}}function Ga(){try{ln?.resume()}catch{}}function Ka(e,n){const a=qn.get(n);if(a)return a;try{const r=e.createMediaElementSource(n),o=e.createGain(),s=e.createAnalyser();s.fftSize=1024,s.smoothingTimeConstant=.6,o.gain.value=Qo(qa.get(n)??n.volume),r.connect(o),o.connect(s),o.connect(e.destination);try{n.volume=1}catch{}const l={gain:o,analyser:s};return qn.set(n,l),l}catch{return null}}function ca(e){if(!e)return Promise.resolve(null);const n=qn.get(e);if(n)return Promise.resolve(n.analyser);const a=es();if(!a)return Promise.resolve(null);if(a.state==="running")return Promise.resolve(Ka(a,e)?.analyser??null);const r=Ua.get(e);if(r)return r;const o=Promise.resolve().then(()=>a.resume()).then(()=>a.state==="running"?Ka(a,e)?.analyser??null:null).catch(()=>null).finally(()=>{Ua.delete(e)});return Ua.set(e,o),o}function Nm(e){if(!e)return null;const n=qn.get(e);if(n)return n.analyser;const a=es();return a?a.state==="running"?Ka(a,e)?.analyser??null:(ca(e),null):null}function cn(e,n){const a=Qo(n);qa.set(e,a);const r=qn.get(e);if(r){try{e.volume!==1&&(e.volume=1)}catch{}const o=r.gain.gain;try{const s=r.gain.context.currentTime;o.cancelScheduledValues(s),o.setTargetAtTime(a,s,.01)}catch{try{o.value=a}catch{}}return"gain"}try{e.volume=a}catch{}return"element"}function ua(e){return qa.get(e)??e.volume}function Bm(e,n){e.getFloatTimeDomainData(n);let a=0;for(let r=0;r<n.length;r++){const o=n[r];a+=o*o}return Math.sqrt(a/n.length)}const Dm="__ihab_core_image_config__";function Sn(){return globalThis[Dm]??null}const ts="word_image_existence_map_v1";let xn=null;const da=new Map;function Sm(){if(xn)return xn;try{const e=typeof localStorage<"u"?localStorage.getItem(ts):null;xn=e?JSON.parse(e):{}}catch{xn={}}return xn}let Za=null;function jm(){Za||(Za=setTimeout(()=>{Za=null;try{typeof localStorage<"u"&&xn&&localStorage.setItem(ts,JSON.stringify(xn))}catch{}},200))}function Em(e,n){return`${e}_${n??1}`}async function ns(e,n){const a=Sm(),r=Em(e,n);if(r in a)return a[r];if(da.has(r))return da.get(r);const o=Sn();if(!o)return!1;const s=o(e,n);if(!s)return!1;const l=fetch(s,{method:"HEAD",signal:AbortSignal.timeout(8e3)}).then(c=>c.ok).catch(()=>!1).then(c=>(a[r]=c,jm(),da.delete(r),c));return da.set(r,l),l}const as=["\u3131","\u3132","\u3134","\u3137","\u3138","\u3139","\u3141","\u3142","\u3143","\u3145","\u3146","\u3147","\u3148","\u3149","\u314A","\u314B","\u314C","\u314D","\u314E"],rs=["\u314F","\u3150","\u3151","\u3152","\u3153","\u3154","\u3155","\u3156","\u3157","\u3158","\u3159","\u315A","\u315B","\u315C","\u315D","\u315E","\u315F","\u3160","\u3161","\u3162","\u3163"],Tm=["","\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 Un(e){if(!e)return null;const n=e.charCodeAt(0)-44032;return n<0||n>=11172?null:{cho:Math.floor(n/588),jung:Math.floor(n%588/28),jong:n%28}}function Mm(e){const n=Un(e[0]||"");return n?as[n.cho]:""}function Lm(e,n){if(!n)return!0;const a=[...n],r=c=>as.includes(c),o=c=>rs.includes(c),s=a.map(c=>r(c)?"cho":o(c)?"jung":Un(c)?"syl":"other");if(s.includes("other"))return e.includes(n);const l=[...e];for(let c=0;c+a.length<=l.length;c++){let u=!0;for(let d=0;d<a.length;d++){const p=l[c+d],h=s[d];if(h==="cho"){if(Mm(p)!==a[d]){u=!1;break}}else if(h==="jung"){const m=Un(p);if(!m||rs[m.jung]!==a[d]){u=!1;break}}else{const m=Un(a[d]);if(m&&m.jong===0){const f=Un(p);if(!f||f.cho!==m.cho||f.jung!==m.jung){u=!1;break}}else if(p!==a[d]){u=!1;break}}}if(u)return!0}return!1}const $m={3:["\u3131","\u3145"],5:["\u3134","\u3148"],6:["\u3134","\u314E"],9:["\u3139","\u3131"],10:["\u3139","\u3141"],11:["\u3139","\u3142"],12:["\u3139","\u3145"],13:["\u3139","\u314C"],14:["\u3139","\u314D"],15:["\u3139","\u314E"],18:["\u3142","\u3145"]};Object.fromEntries(Object.entries($m).map(([e,n])=>[n.join(""),Tm[Number(e)]]));const Rm="word_pair_index_v2",Pm="word_pair_index_sig_v2";let pa=null;function Im(){try{if(typeof localStorage>"u")return null;const e=localStorage.getItem(Rm),n=localStorage.getItem(Pm);return!e||!n?null:{index:JSON.parse(e),sig:n}}catch{return null}}function Fm(){if(pa)return pa;const e=Im();return e?(pa=e.index,e.sig,pa):null}const Om={\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"}},Ya=/[ㄱ-ㅎ]/,Hm=/[ㅏ-ㅣ]/;function os(e){for(let n=e.length-1;n>=0;n--){const a=e[n],r=a.charCodeAt(0);if(r>=44032&&r<=55203||Ya.test(a)||Hm.test(a))return a}return null}function Vm(e){const n=os(e);if(!n)return"\uAC00";const a=n.charCodeAt(0);return a>=44032&&a<=55203?(a-44032)%28!==0?"\uC774":"\uAC00":Ya.test(n)?"\uC774":"\uAC00"}function zm(e){return`${e}${Vm(e)}`}function Wm(e){const n=os(e);if(!n)return"\uB97C";const a=n.charCodeAt(0);return a>=44032&&a<=55203?(a-44032)%28!==0?"\uC744":"\uB97C":Ya.test(n)?"\uC744":"\uB97C"}function qm(e){return`${e}${Wm(e)}`}function Um(e,n,a){const r=e.slice(),[o]=r.splice(n,1);return r.splice(a,0,o),r}function Gn(e,n=Math.random){const a=e.slice();for(let r=a.length-1;r>0;r--){const o=Math.floor(n()*(r+1));[a[r],a[o]]=[a[o],a[r]]}return a}const Gm=()=>{const e="\uC54C \uC218 \uC5C6\uB294 \uC624\uB958",n=typeof Pt?.t=="function"?Pt.t("common.unknownError",{defaultValue:e}):void 0;return typeof n=="string"&&n?n:e};function ss(e,n){if(n===void 0&&(n=Gm()),e instanceof Error)return e.message||n;if(typeof e=="string")return e||n;if(e&&typeof e=="object"){const a=e;for(const r of[a.message,a.error_description,a.error])if(typeof r=="string"&&r)return r}return n}const Km="__ihab_core_word_pool__";function Zm(){return globalThis[Km]??null}const is=globalThis;function ls(e,n){const a=r=>{};try{const r=n();r&&typeof r.catch=="function"&&r.catch(a)}catch(r){a(r)}}function Ym(e){ls("time",()=>is.__ihabTrainingTimeLogger?.(e))}function Xm(e){ls("completion",()=>is.__ihabTrainingCompletionLogger?.(e))}function Vt(e){return typeof e=="string"?e.trim()||null:typeof e=="number"?String(e):null}function Jm(e){for(const n of["correct","isCorrect","heard","judgement"])if(typeof e[n]=="boolean")return e[n];return e.score===1?!0:e.score===0?!1:null}function Qm(e){return Array.isArray(e)?e.map((n,a)=>{const r=n??{};return{index:a,itemId:Vt(r.contextCode)??Vt(r.itemId)??Vt(r.itemCode)??Vt(r.id),question:Vt(r.question)??Vt(r.sentence)??Vt(r.word)??Vt(r.targetSyllable),answer:Vt(r.answer),selected:Vt(r.selectedText)??Vt(r.selected),correct:Jm(r)}}):[]}const Xa=globalThis;async function e0(){try{return await Xa.__ihabNoiseSettingsStore?.load()??null}catch{return null}}function t0(e){const n=a=>{};try{const a=Xa.__ihabNoiseSettingsStore?.save(e);a&&typeof a.catch=="function"&&a.catch(n)}catch(a){n(a)}}function Ja(e){try{Xa.__ihabNoiseSettingsStore?.applied?.(e)}catch{}}async function n0(e){if(typeof document<"u"){const n=document.activeElement;let a=null;try{if(a=document.createElement("textarea"),a.value=e,a.setAttribute("readonly",""),a.style.position="fixed",a.style.top="0",a.style.left="0",a.style.opacity="0",a.style.pointerEvents="none",document.body.appendChild(a),a.focus(),a.select(),a.setSelectionRange(0,e.length),document.execCommand("copy"))return!0}catch{}finally{if(a?.parentNode&&a.parentNode.removeChild(a),n&&n!==document.activeElement&&typeof n.focus=="function"&&n.isConnected)try{n.focus({preventScroll:!0})}catch{}}}try{if(typeof navigator<"u"&&navigator.clipboard&&typeof navigator.clipboard.writeText=="function")return await navigator.clipboard.writeText(e),!0}catch{}return!1}function a0(){return Qa(new Date)}function Qa(e){if(e==null||e==="")return"";const n=e instanceof Date?e:new Date(e);return isNaN(n.getTime())?"":new Intl.DateTimeFormat("fr-CA",{timeZone:"Asia/Seoul"}).format(n)}function cs(e,n){if(!e)return"";const a=new Date(e).getTime();if(Number.isNaN(a))return"";const r=Math.max(0,Math.floor((Date.now()-a)/1e3)),o=Math.floor(r/60),s=Math.floor(o/60),l=Math.floor(s/24),c=Math.floor(l/7),u=Math.floor(l/30),d=Math.floor(l/365);return o<1?n("store.time.justNow","\uBC29\uAE08 \uC804"):o<60?n("store.time.minutesAgo",{n:o}):s<24?n("store.time.hoursAgo",{n:s}):l<7?n("store.time.daysAgo",{n:l}):c<5?n("store.time.weeksAgo",{n:c}):l<365?n("store.time.monthsAgo",{n:Math.min(u,11)}):n("store.time.yearsAgo",{n:d})}function us(e,n={}){const{sep:a=".",pad:r=!0,trailingDot:o=!1,fallback:s="\u2014"}=n;if(!e)return s;const l=Qa(e instanceof Date?e:String(e));if(!l)return s;const[c,u,d]=l.split("-"),p=r?u:String(Number(u)),h=r?d:String(Number(d));return`${c}${a}${p}${a}${h}${o?".":""}`}function Kn(e){if(!e)return e;const n=e.trim();return/^[₩$]/.test(n)?n:/원\s*$/.test(n)?"\u20A9"+n.replace(/\s*원\s*$/,"").trim():n}function ds(e,n){if(!e)return"-";const a=/^(\d{1,2}):(\d{2})$/.exec(e.trim());if(!a)return e;const r=Number(a[1]),o=Number(a[2]),s=a[1].padStart(2,"0");return o===0?n("date.timeH",{h:r,hh:s,mm:a[2]}):n("date.timeHM",{h:r,hh:s,m:o,mm:a[2]})}function er(e){return(e??0).toLocaleString("ko-KR")}const r0=[{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"}]}],o0=[{key:"LISTEN_IN_NOISE",label:"\uC18C\uC74C \uD558 \uBB38\uC7A5 \uB4E3\uAE30",icon:"party-popper",desc:"\uC18C\uC74C \uD658\uACBD \uC18D \uBB38\uC7A5 \uC774\uD574 \uD6C8\uB828"},{key:"SHORT_STORY",label:"\uC9E7\uC740 \uC774\uC57C\uAE30 \uB4E3\uAE30",icon:"message-square",desc:"\uC9E7\uC740 \uC774\uC57C\uAE30 + 4\uBB38\uC81C"},{key:"LONG_STORY",label:"\uAE34 \uC774\uC57C\uAE30 \uB4E3\uAE30",icon:"message-square-text",desc:"\uAE34 \uC774\uC57C\uAE30 \uC2EC\uD654 \uD6C8\uB828"},{key:"ORDERING_SENTENCE",label:"\uBB38\uC7A5 \uC21C\uC11C\uD654 \uD558\uAE30",icon:"align-start-vertical",desc:"\uC21C\uC11C \uBC30\uC5F4 \uD6C8\uB828"}];function ps(){return r0}function s0(){return o0}const i0=[],l0=[],c0=[],u0=[];function d0(){return{LISTEN_IN_NOISE:i0,SHORT_STORY:l0,LONG_STORY:c0,ORDERING_SENTENCE:u0}}const p0=[{key:"LISTEN_IN_NOISE",label:"\uC18C\uC74C \uD558 \uBB38\uC7A5 \uB4E3\uAE30",icon:"party-popper",desc:"\uB2E4\uC591\uD55C \uC18C\uC74C \uD658\uACBD\uC5D0\uC11C \uBB38\uC7A5 \uCCAD\uB825\uC744 \uD6C8\uB828\uD569\uB2C8\uB2E4."},{key:"SHORT_STORY",label:"\uC9E7\uC740 \uC774\uC57C\uAE30 \uB4E3\uAE30",icon:"message-square",desc:"\uC9E7\uC740 \uC774\uC57C\uAE30\uB97C \uB4E3\uACE0 \uAE30\uC5B5\uD558\uC5EC \uBB38\uC81C\uB97C \uD480\uC5B4\uBD05\uB2C8\uB2E4."},{key:"LONG_STORY",label:"\uAE34 \uC774\uC57C\uAE30 \uB4E3\uAE30",icon:"message-square-text",desc:"\uAE34 \uC774\uC57C\uAE30\uB97C \uB4E3\uACE0 \uAE30\uC5B5\uD558\uC5EC \uB2E4\uC218\uC758 \uBB38\uC81C\uB97C \uD480\uC5B4\uBD05\uB2C8\uB2E4."},{key:"ORDERING_SENTENCE",label:"\uBB38\uC7A5 \uC21C\uC11C\uD654 \uD558\uAE30",icon:"align-start-vertical",desc:"\uC5EC\uB7EC\uAC1C\uC758 \uC9E7\uC740 \uBB38\uC7A5\uC744 \uB4E3\uACE0 \uAE30\uC5B5\uD558\uC5EC \uADF8 \uC21C\uC11C\uC5D0 \uB9DE\uAC8C \uBC30\uC5F4\uD569\uB2C8\uB2E4."}];let ha=null,hs=null,ms=null;function h0(){const e=Zm();if(e&&e.entries.length>0){const n=Fm();if(ha&&hs===e&&ms===n)return ha;const a=new Set,r=[];for(const o of e.entries)!o.word||a.has(o.word)||(a.add(o.word),r.push({w:o.word,s:o.syllables,p:n?.[o.word]?[...n[o.word].cho??[],...n[o.word].jung??[],...n[o.word].jong??[]]:[],pron:o.pronunciation||o.word,grade:o.grade}));return ha=r,hs=e,ms=n,ha}return[]}new Proxy([],{get(e,n){const a=h0(),r=a[n];return typeof r=="function"?r.bind(a):r}});const m0="0.131.0";function C0(e){return typeof window>"u"?"":Cm.sanitize(e,{USE_PROFILES:{svg:!0,svgFilters:!0},FORBID_TAGS:["script","use"],FORBID_ATTR:["xlink:href","href"]})}function f0(e){const[n,a]=i.useState(null),[r,o]=i.useState(null),[s,l]=i.useState(null),[c,u]=i.useState(null);return i.useEffect(()=>{if(!e||typeof e!="string"||!e.endsWith(".svg")){a(null),o(null),l(null);return}const d=e.split("/").pop();let p=e;d&&(e.startsWith("/")?p=za(e):/^(Logo|Symbol)/i.test(d)?p=za(`logo/${d}`):(/^https?:\/\//i.test(e)||e.startsWith("data:"),p=e)),a(p)},[e]),i.useEffect(()=>{if(!n)return;let d=!1;async function p(){try{let h=await fetch(n);h.ok||(h=await fetch(n));const m=h.headers.get("content-type")||"";if(d)return;if(m.includes("svg")){o("mask");return}if(m.startsWith("image/")){o("img");return}const f=await fetch(n);if(!f.ok)throw new Error("not ok");const C=await f.text();if(d)return;if(/^\s*<svg[\s>]/i.test(C)){const b=C0(C);if(!b){o("none");return}l(b),o("inline");return}o("none")}catch{d||o("none")}}return p(),()=>{d=!0}},[n]),i.useEffect(()=>{let d=!1,p=null;return r==="mask"&&n&&fetch(n).then(h=>{if(!h.ok)throw new Error("fetch failed");return h.blob()}).then(h=>{d||(p=URL.createObjectURL(h),u(p))}).catch(()=>{d||o("img")}),()=>{d=!0,p&&URL.revokeObjectURL(p),u(null)}},[r,n]),{iconToUse:n,mode:r,svgText:s,blobUrl:c}}function Oe(e){const{icon:n,label:a,className:r,imgClassName:o,maskClassName:s,svgClassName:l,wrapperStyle:c,size:u}=e||{},d=r??"iconRenderer-icon",p=o??"iconRenderer-icon-image",h=s??"iconRenderer-icon-mask",m=l??"iconRenderer-icon-svg",f=typeof n=="string"?n:null,C=Lh(f),{iconToUse:b,mode:g,svgText:y,blobUrl:w}=f0(f),_=(k,T={})=>t.jsx("span",{className:d,style:c,...T,children:k}),v=(k,T={})=>t.jsx("img",{src:k,alt:typeof a=="string"?a:a?String(a):"",className:p,...T});if(!n)return null;if(typeof n!="string")return _(n);if(n==="none")return _(t.jsx("span",{className:m,dangerouslySetInnerHTML:{__html:'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" aria-hidden="true"></svg>'}}),{"aria-hidden":"true"});if(C)try{return _(i.createElement(C,{className:m,size:typeof u=="number"?u:20}),{"aria-hidden":"true"})}catch{}if(b&&b.endsWith(".svg")){if(g==="mask"){const k={"--icon-url":w?`url(${w})`:`url(${b})`,...typeof u=="number"?{"--icon-size":`${u}px`}:null};return _(t.jsx("span",{className:h,style:k}),{"aria-hidden":"true"})}return g==="img"?_(v(b,{onError:k=>{k.currentTarget.onerror=null,k.currentTarget.style.display="none"}}),{"aria-hidden":"true"}):g==="inline"?_(t.jsx("span",{className:m,dangerouslySetInnerHTML:y?{__html:y}:void 0}),{"aria-hidden":"true"}):_(null,{"aria-hidden":"true"})}if(n.startsWith("/")||n.includes("/assets/")||n.match(/\.(png|jpg|jpeg|webp|gif)$/i))return v(za(n),{style:c,onError:k=>{k.currentTarget.onerror=null,k.currentTarget.style.display="none"}});const A=typeof u=="number"?u:20,x=`<svg width="${A}" height="${A}" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><rect x="3" y="3" width="18" height="18" rx="2" ry="2" style="fill:none;stroke:currentColor;stroke-width:2"/></svg>`;return _(t.jsx("span",{className:m,dangerouslySetInnerHTML:{__html:x}}),{"aria-hidden":"true"})}function g0({icon:e,emoji:n,title:a,message:r,hint:o,action:s,compact:l,className:c}){return t.jsxs("div",{className:ye("empty-state",l&&"empty-state--compact",c),children:[n&&t.jsx("span",{className:"empty-state__emoji",children:n}),e&&t.jsx(Oe,{icon:e,className:"empty-state__icon"}),a&&t.jsx("p",{className:"empty-state__title body-2",children:a}),r&&t.jsx("p",{className:"empty-state__message body-3",children:r}),o&&t.jsx("p",{className:"empty-state__hint caption-1",children:o}),s&&t.jsxs("button",{type:"button",className:"empty-state__action button button40 button40--bar button--variant-main button--align-center button--shape-rounded",onClick:s.onClick,children:[s.icon&&t.jsx(Oe,{icon:s.icon,className:"button__icon"}),t.jsx("span",{className:"button__label button-1",children:s.label})]})]})}function b0({message:e,hint:n,icon:a="triangle-alert",onRetry:r,retryLabel:o,className:s}){const{t:l}=de.useTranslation();return t.jsxs("div",{className:ye("empty-state","error-state",s),role:"alert",children:[t.jsx(Oe,{icon:a,className:"empty-state__icon error-state__icon"}),t.jsx("p",{className:"empty-state__message body-3",children:e??l("common.errorState.message",{defaultValue:"\uBD88\uB7EC\uC624\uC9C0 \uBABB\uD588\uC2B5\uB2C8\uB2E4."})}),n&&t.jsx("p",{className:"empty-state__hint caption-1",children:n}),r&&t.jsxs("button",{type:"button",className:"empty-state__action button button40 button40--bar button--variant-main button--align-center button--shape-rounded",onClick:r,children:[t.jsx(Oe,{icon:"rotate-cw",className:"button__icon"}),t.jsx("span",{className:"button__label button-1",children:o??l("common.errorState.retry",{defaultValue:"\uB2E4\uC2DC \uC2DC\uB3C4"})})]})]})}function y0({icon:e,title:n,description:a,cta:r,tone:o="main",disabled:s=!1,onClick:l,className:c=""}){const u=()=>{s||l?.()};return t.jsx("section",{role:"button",tabIndex:s?-1:0,"aria-disabled":s||void 0,"aria-label":n,onClick:u,onKeyDown:d=>{(d.key==="Enter"||d.key===" ")&&(d.preventDefault(),u())},className:ye("action-card",`action-card--${o}`,s&&"action-card--disabled",c),children:t.jsxs("div",{className:"action-card__body",children:[t.jsx("span",{"aria-hidden":!0,className:"action-card__chip",children:t.jsx(Oe,{icon:e,size:34})}),t.jsxs("div",{className:"action-card__text",children:[t.jsx("h2",{className:"action-card__title",children:n}),t.jsx("p",{className:"action-card__desc",children:a})]}),t.jsxs("div",{className:"action-card__cta",children:[t.jsx("span",{children:r}),t.jsx("span",{"aria-hidden":!0,className:"action-card__arrow",children:t.jsx(Oe,{icon:"arrow-right",size:18})})]})]})})}function v0({as:e="div",className:n="",children:a,storage:r,...o}){r&&vm({resolveUrl:r.resolveUrl,download:r.download??(()=>Promise.reject(new Error("[ihabdevteam-core] CoreScope: download resolver\uAC00 \uC124\uC815\uB418\uC9C0 \uC54A\uC558\uC2B5\uB2C8\uB2E4."))),exists:r.exists,resolvePath:r.resolvePath,noiseBaseUrl:r.noiseBaseUrl,noiseFileGain:r.noiseFileGain});const s=ye("ihabdevteam-core-scope",n);return t.jsx(e,{className:s,...o,children:a})}function x0({title:e="",lines:n=[],notices:a=null,children:r,variant:o="default",dismissible:s=!1,className:l=""}){const{t:c}=de.useTranslation(),[u,d]=i.useState(!1),p=i.useCallback(()=>d(!0),[]);if(u)return null;const h=`notice-box notice-box--${o} body-2 ${l}`.trim();if(a&&Array.isArray(a)&&a.length)return t.jsx("div",{className:h,role:"note",children:a.map((f,C)=>t.jsxs("div",{className:"notice-box__inner",children:[f.title?t.jsx("span",{className:"notice-box__title body-3",children:f.title}):null,t.jsx("div",{className:"notice-box__body",children:f.lines&&f.lines.length?t.jsx("div",{children:f.lines.map((b,g)=>t.jsx("span",{className:"notice-box__line body-3",children:b},g))}):f.children??null})]},C))});const m=e||n.length?t.jsxs("div",{className:"notice-box__inner",children:[e?t.jsx("span",{className:"notice-box__title body-1",children:e}):null,t.jsx("div",{className:"notice-box__body",children:n.length?t.jsx("ul",{children:n.map((f,C)=>t.jsx("li",{className:"notice-box__line",children:f},C))}):r})]}):t.jsx("div",{className:"notice-box__inner",children:r});return t.jsxs("div",{className:h,role:"note",children:[m,s&&t.jsx("button",{type:"button",className:"notice-box__dismiss",onClick:p,"aria-label":c("common.close","\uB2EB\uAE30"),children:"\xD7"})]})}function tr(e,n=!0){i.useEffect(()=>{if(!n)return;const a=e.current;if(!a)return;const r=o=>{if(o.key!=="Tab")return;const s=Array.from(a.querySelectorAll(Zn)).filter(u=>!u.closest('[aria-hidden="true"]'));if(!s.length){o.preventDefault();return}const l=s[0],c=s[s.length-1];o.shiftKey&&document.activeElement===l?(o.preventDefault(),c.focus()):!o.shiftKey&&document.activeElement===c&&(o.preventDefault(),l.focus())};return a.addEventListener("keydown",r),()=>a.removeEventListener("keydown",r)},[e,n])}const Zn='a[href], button:not([disabled]), input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex="-1"])';function un(e){const{anchorRect:n,anchorEl:a,offset:r=20,edgeMargin:o=20,onClose:s,closeOnOutsideClick:l=!0,className:c="",role:u="dialog",ariaLabel:d="",children:p,backdrop:h=!1,isMobilePopup:m=!1,useBorder:f=!0,header:C}=e||{},b=i.useRef(null),[g,y]=i.useState({position:"fixed",left:0,top:-9999}),[w,_]=i.useState(!1),[v,A]=i.useState("bottom"),[x,k]=i.useState(!1),[T,N]=i.useState(!1),D=!n&&!a,P=i.useCallback((M=!1)=>{if(T&&m)return;const z=a?a.getBoundingClientRect():n;if(!z||!b.current)return;const H=b.current,{offsetWidth:Z,offsetHeight:J}=H,O=window.innerWidth,S=window.innerHeight,$=O-z.right,F=z.left,V=z.top,X=S-z.bottom;let I=0,q=0,G="top";if(V>=J+r)G="top",q=z.top-r-J,I=z.left+z.width/2-Z/2;else if(X>=J+r)G="bottom",q=z.bottom+r,I=z.left+z.width/2-Z/2;else if($>=Z+r)G="right",I=z.right+r,q=z.top+z.height/2-J/2;else if(F>=Z+r)G="left",I=z.left-r-Z,q=z.top+z.height/2-J/2;else{const ve=Math.max(V,X,$,F);ve===V?(G="top",q=z.top-r-J,I=z.left+z.width/2-Z/2):ve===X?(G="bottom",q=z.bottom+r,I=z.left+z.width/2-Z/2):ve===$?(G="right",I=z.right+r,q=z.top+z.height/2-J/2):(G="left",I=z.left-r-Z,q=z.top+z.height/2-J/2)}const le=Number(o)||8;I=Math.min(Math.max(I,le),O-Z-le),q=Math.min(Math.max(q,le),S-J-le);const pe=Math.round(I),fe=Math.round(q);M&&b.current?(b.current.style.left=`${pe}px`,b.current.style.top=`${fe}px`,b.current.dataset.placement=G):(A(G||v),y({position:"fixed",left:pe,top:fe}),k(!0))},[T,m,a,n,r,o,v]);i.useLayoutEffect(()=>{if(D)return;if(T&&m){y({position:"fixed",left:"50%",top:"50%",transform:"translate(-50%, -50%)",width:"calc(100% - 40px)",maxWidth:"calc(100% - 40px)"}),k(!0);return}P();const M=requestAnimationFrame(()=>P());return()=>cancelAnimationFrame(M)},[n,a,r,p,o,D,T,m,P]),i.useEffect(()=>{if(D||T&&m||!b.current||typeof ResizeObserver>"u")return;const M=new ResizeObserver(()=>{n&&P()});return M.observe(b.current),()=>M.disconnect()},[n,p,o,D,T,m,P]),i.useEffect(()=>{if(D||T&&m)return;const M=()=>P(!0);return window.addEventListener("resize",M),document.addEventListener("scroll",M,{passive:!0,capture:!0}),()=>{window.removeEventListener("resize",M),document.removeEventListener("scroll",M,{capture:!0})}},[n,r,p,o,D,T,m,P]),i.useEffect(()=>{if(typeof window>"u"||!window.matchMedia)return;const M=window.matchMedia("(max-width: 768px)"),z=()=>N(!!M.matches);z();try{M.addEventListener?M.addEventListener("change",z):M.addListener(z)}catch{try{M.addListener(z)}catch{}}return()=>{try{M.removeEventListener?M.removeEventListener("change",z):M.removeListener(z)}catch{}}},[]);const L=i.useRef(!1),j=i.useCallback((M=!1)=>{if(s&&!(w||L.current)){if(L.current=!0,M){_(!0);try{s&&s()}catch{}return}_(!0),setTimeout(()=>{s&&s()},200)}},[w,s,_]);i.useEffect(()=>{if(D)return;const M=Z=>{const J=b.current;if(!J)return;const O=Z.target;if(O&&!J.contains(O)){try{if(O.closest&&O.closest("[data-tooltip-ignore]"))return}catch{}l&&j(!0)}},z=Z=>{const J=b.current;if(!J)return;const O=Z.target;if(O&&!J.contains(O)){try{if(O.closest&&O.closest("[data-tooltip-ignore]"))return}catch{}l&&j(!0)}},H=Z=>{if(Z.key==="Escape"){Z.stopPropagation(),j();return}if(Z.key==="Tab"){const J=b.current;if(!J)return;const O=J.querySelectorAll(Zn);if(!O||O.length===0)return;const S=O[0],$=O[O.length-1],F=document.activeElement;Z.shiftKey?F===S&&(Z.preventDefault(),$.focus()):F===$&&(Z.preventDefault(),S.focus())}};return document.addEventListener("pointerdown",M,!0),document.addEventListener("click",z,!0),document.addEventListener("keydown",H),()=>{document.removeEventListener("pointerdown",M,!0),document.removeEventListener("click",z,!0),document.removeEventListener("keydown",H)}},[s,l,j,D]),i.useEffect(()=>{const M=()=>{j(!0)};return typeof document<"u"&&document.addEventListener("speechear-close-tooltips",M),()=>{typeof document<"u"&&document.removeEventListener("speechear-close-tooltips",M)}},[j]);const R=t.jsxs("div",{ref:b,className:`tooltip-content ${D?"tooltip-content--inline":""} ${f?"tooltip-content--bordered":""} ${w?"is-closing":""} ${c} ${T&&m?"is-mobile":""}`,role:u,"aria-label":d||void 0,style:D?{}:{...g,visibility:x?"visible":"hidden"},tabIndex:-1,"data-placement":v,"data-left":D?"":g.left,"data-top":D?"":g.top,"data-anchor-left":n?Math.round(n.left):"","data-anchor-top":n?Math.round(n.top):"","data-anchor-width":n?Math.round(n.width):"","data-anchor-height":n?Math.round(n.height):"",children:[C!=null&&t.jsx("div",{className:"tooltip-content__header h5",children:C}),p]});if(D||typeof document>"u")return R;if(h||T&&m){const M=t.jsxs("div",{className:"tooltip-portal",children:[t.jsx("div",{className:"tooltip-backdrop",onClick:()=>{l&&j(!0)}}),R]});return It.createPortal(M,document.body)}return It.createPortal(R,document.body)}function dn(e){const{anchorRect:n,text:a,offset:r=8,onClose:o,className:s="",ariaLabel:l}=e||{};return a?t.jsx(un,{anchorRect:n,offset:r,onClose:o,closeOnOutsideClick:!1,className:`tooltip-info ${s}`,ariaLabel:l||a,children:t.jsx("div",{className:"tooltip-info__content body-3",children:a})}):null}function _n(e){const{t:n}=de.useTranslation(),{anchorRect:a,title:r,items:o,activeIndex:s=-1,showIndex:l=!0,onClose:c,offset:u=12,closeOnOutsideClick:d=!0}=e||{},p=(Array.isArray(o)?o:o?[o]:[]).map(h=>typeof h=="string"?{text:h}:h);return!p.length&&!r?null:t.jsx(un,{anchorRect:a,offset:u,onClose:c,closeOnOutsideClick:d,useBorder:!1,className:"tooltip-description",ariaLabel:r||n("tooltip.description","\uC124\uBA85"),children:t.jsxs("div",{className:"tooltip-description__box",children:[r&&t.jsx("span",{className:"tooltip-description__title body-2",children:r}),t.jsx("ol",{className:"tooltip-description__items",children:p.map((h,m)=>t.jsxs("li",{className:`tooltip-description__item body-3${m===s?" tooltip-description__item--active":""}`,children:[l&&p.length>1&&t.jsxs("span",{className:"tooltip-description__index button-1",children:[m+1,"."]}),h.color&&t.jsx("span",{className:"tooltip-description__dot",style:{background:h.color},"aria-hidden":"true"}),t.jsx("span",{children:h.text})]},m))})]})})}function ae(e){const{size:n=48,type:a,htmlType:r,href:o,target:s,rel:l,icon:c,rightIcon:u,label:d,count:p,subLabel:h,children:m,ariaLabel:f,variant:C="default",align:b="center",selected:g,toggleable:y=!1,disabled:w=!1,useLabel:_=!0,useBorder:v=!0,useBG:A=!0,useDisabledCovered:x=!1,useDisabledInvisible:k=!1,width:T,minWidth:N,onClick:D,onDisabledClick:P,showTooltipInfo:L=!1,tooltipInfoText:j=null,tooltipDescription:R=null,iconSize:M="medium",iconColor:z,shape:H="rounded",color:Z,className:J,...O}=e,S=typeof n=="string"&&isNaN(Number(n))?n.toLowerCase():String(Number(n)||48),$=S.match(/^\d+$/)?`button${S}`:`button-${S}`,F=Number(n),V=!isNaN(F)&&F<40?"button-2":"button-1",X=d??m,I=w||!!O.disabled,q=I?x?"disabled-covered":k?"disabled-invisibled":"disabled":C,G=q?`button--variant-${q}`:"",le=b?`button--align-${b}`:"",pe=H?`button--shape-${H}`:"",fe=typeof z=="string"&&z.startsWith("--")?`var(${z})`:z,ve={...T?{width:typeof T=="number"?`${T}px`:T}:{},...N?{minWidth:typeof N=="number"?`${N}px`:N}:{},...v?{}:{"--button-border":I?"0":"1px solid transparent"},...fe?{"--button-icon-color":fe}:{},...Z?{"--color-main":Z}:{}},he=_===!1?"":X,E=Array.isArray(he)?he.length>0:!!he,U=!!u,ee=a??(E||c||U?"bar":"dot"),_e=`${$}--${ee}`,ue=i.useRef(null),ie=i.useRef(I),[te,se]=i.useState(!!g),[De,He]=i.useState(!1),[Ve,Re]=i.useState(null),Ee=i.useCallback(()=>He(!1),[]);i.useEffect(()=>{typeof g=="boolean"&&se(g)},[g]),i.useEffect(()=>{if(ie.current&&!I&&ue.current){const Me=ue.current;Me.blur(),Me.style.pointerEvents="none";const tt=requestAnimationFrame(()=>{requestAnimationFrame(()=>{ue.current&&(ue.current.style.pointerEvents="")})});return()=>cancelAnimationFrame(tt)}ie.current=I},[I]);const je=typeof g=="boolean"?!!g:te,Ae=y||typeof g=="boolean"?je?"true":"false":void 0,ze=ye("button",$,_e,G,le,pe,je?"is-selected":null,A?null:"button--no-bg",J),at=`button__icon button__icon--${M}`,ge=Array.isArray(h)?h:h!==void 0?[h]:[],Pe=()=>{if(Array.isArray(he))return he.map((tt,Ct)=>{const Ye=ge[Ct];return t.jsxs("span",{className:`button__label-text${Ye!==void 0?" button__label-text--has-sub":""}`,children:[tt,Ye!==void 0&&t.jsx("span",{className:"button__sub-label-text caption-1",children:Ye})]},Ct)});const Me=h!==void 0;return t.jsxs("span",{className:`button__label-text${Me?" button__label-text--has-sub":""}`,children:[he,p!=null&&t.jsx("span",{className:"button__count",children:p}),Me&&t.jsx("span",{className:"button__sub-label-text caption-1",children:h})]})},$e=Me=>{I||(typeof O.onMouseLeave=="function"&&O.onMouseLeave(Me),typeof g!="boolean"&&se(!1),Me.currentTarget.blur())},Ke=Me=>{if(I){P?.(Me);return}typeof g!="boolean"&&y&&se(tt=>!tt),D?.(Me)},Ze=i.useCallback(()=>{(L||R)&&(He(!0),Re(ue.current?.getBoundingClientRect()??null))},[L,R]),Ue=i.useCallback(()=>{(L||R)&&(He(!1),Re(null))},[L,R]),Ie={...O};delete Ie.disabled,delete Ie.className,delete Ie.faded,delete Ie.useFaded,delete Ie.loading,delete Ie.onMouseLeave,delete Ie.onPointerEnter,delete Ie.onPointerLeave,delete Ie.onFocus,delete Ie.onBlur,I&&(Object.keys(Ie).forEach(Me=>{/^on[A-Z]/.test(Me)&&typeof Ie[Me]=="function"&&delete Ie[Me]}),Ie["aria-disabled"]="true");const dt=(typeof L=="string"?L:null)??(typeof j=="string"?j:null)??(typeof f=="string"?f:null)??(typeof X=="string"?X:null)??void 0,ct=typeof f=="string"?f:typeof X=="string"?X:dt,qe=(Me,tt)=>t.jsx(Oe,{icon:Me,label:tt??ct,className:at,imgClassName:"button__icon-img",maskClassName:"button__icon-mask",svgClassName:"button__icon-svg"}),st=()=>ee==="dot"?t.jsxs(t.Fragment,{children:[qe(c),E&&t.jsx("span",{className:`button__label ${V}`,children:Pe()})]}):b==="center"&&c?t.jsxs(t.Fragment,{children:[t.jsxs("span",{className:"button__center-group",children:[t.jsx("span",{className:"button__left",children:qe(c)}),E&&t.jsx("span",{className:`button__label ${V}`,children:Pe()})]}),U&&t.jsx("span",{className:"button__right",children:qe(u)})]}):t.jsxs(t.Fragment,{children:[c&&t.jsx("span",{className:"button__left",children:qe(c,f??X)}),E&&t.jsx("span",{className:`button__label ${V}`,children:Pe()}),U&&t.jsx("span",{className:"button__right",children:qe(u)})]}),Te=!!o&&!I;return t.jsxs(t.Fragment,{children:[t.jsx(Te?"a":"button",{...Ie,ref:ue,...Te?{href:o,target:s,rel:l??(s==="_blank"?"noreferrer":void 0)}:{type:r,disabled:I&&!P},className:ze,"aria-pressed":Ae,"aria-label":ct,"aria-disabled":Te&&I?!0:void 0,style:ve,onClick:Ke,onMouseLeave:$e,onPointerEnter:Me=>{Ze(),!I&&typeof O.onPointerEnter=="function"&&O.onPointerEnter(Me)},onPointerLeave:Me=>{Ue(),!I&&typeof O.onPointerLeave=="function"&&O.onPointerLeave(Me)},onFocus:Me=>{Ze(),!I&&typeof O.onFocus=="function"&&O.onFocus(Me)},onBlur:Me=>{$e(Me),Ue(),!I&&typeof O.onBlur=="function"&&O.onBlur(Me)},children:st()}),De&&R?t.jsx(_n,{anchorRect:Ve,title:R.title,items:R.items,onClose:Ee}):De&&dt?t.jsx(dn,{anchorRect:Ve,text:dt,onClose:Ee}):null]})}function rt(e,n,a){const r=i.useRef(null);return i.useLayoutEffect(()=>{const o=r.current?.parentElement??null;return n(o,e),()=>a(o)},[e,n,a]),r}const Yn={title:"--promo-banner-bg-title",description:"--promo-banner-bg-description"},nr=new WeakMap;function ar(e){if(e)return nr.get(e)}function bt(e,n){e&&(e.style.setProperty(Yn.title,n.title),e.style.setProperty(Yn.description,n.description),nr.set(e,n))}function yt(e){e&&(e.style.removeProperty(Yn.title),e.style.removeProperty(Yn.description),nr.delete(e))}const Cs={title:"#ffffff",description:"rgba(255, 255, 255, 0.85)",actionVariant:"default"};function fs(){const e=rt(Cs,bt,yt);return t.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-main","aria-hidden":"true"})}const gs={title:"var(--color-main)",description:"var(--color-gray)",actionVariant:"main"};function bs(){const e=rt(gs,bt,yt);return t.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-soft","aria-hidden":"true"})}const ys={title:"#ffffff",description:"rgba(255, 255, 255, 0.85)",actionVariant:"main"};function vs(){const e=rt(ys,bt,yt);return t.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-sub","aria-hidden":"true"})}const xs={title:"#ffffff",description:"rgba(255, 255, 255, 0.85)",actionVariant:"main"};function _s(){const e=rt(xs,bt,yt);return t.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-deep","aria-hidden":"true"})}const ws={title:"var(--color-darkSub)",description:"var(--color-gray)",actionVariant:"main"};function ks(){const e=rt(ws,bt,yt);return t.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-soft-sub","aria-hidden":"true"})}const As={title:"var(--color-black)",description:"var(--color-darkGray)",actionVariant:"main"};function Ns(){const e=rt(As,bt,yt);return t.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-warm","aria-hidden":"true"})}const Bs={title:"var(--color-white)",description:"var(--color-lightGray)",actionVariant:"main"};function Ds(){const e=rt(Bs,bt,yt);return t.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-dark","aria-hidden":"true"})}const Ss={title:"#ffffff",description:"rgba(255, 255, 255, 0.85)",actionVariant:"main"};function js(){const e=rt(Ss,bt,yt);return t.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-radial","aria-hidden":"true"})}const Es={title:"var(--color-darkMain)",description:"var(--color-gray)",actionVariant:"main"};function Ts(){const e=rt(Es,bt,yt);return t.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-diagonal","aria-hidden":"true"})}const Ms={title:"var(--color-darkSub)",description:"var(--color-gray)",actionVariant:"main"};function Ls(){const e=rt(Ms,bt,yt);return t.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-dots","aria-hidden":"true"})}const $s={title:"var(--color-black)",description:"var(--color-gray)",actionVariant:"main"};function Rs(){const e=rt($s,bt,yt);return t.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-outline","aria-hidden":"true",children:t.jsx("span",{className:"promo-banner-bg-outline__dot"})})}const Ps={title:"#ffffff",description:"rgba(255, 255, 255, 0.85)",actionVariant:"main"};function Is(){const e=rt(Ps,bt,yt);return t.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-success","aria-hidden":"true"})}const Fs={title:"#ffffff",description:"rgba(255, 255, 255, 0.85)",actionVariant:"sub"};function Os(){const e=rt(Fs,bt,yt);return t.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-naver","aria-hidden":"true"})}const Hs={title:"#ffffff",description:"rgba(255, 255, 255, 0.85)",actionVariant:"transparent-white"};function Vs(){const e=rt(Hs,bt,yt);return t.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-instagram","aria-hidden":"true"})}const _0=[{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"}],zs={main:fs,soft:bs,sub:vs,deep:_s,softSub:ks,warm:Ns,dark:Ds,radial:js,diagonal:Ts,dots:Ls,outline:Rs,success:Is,naver:Os,instagram:Vs};function Ws({storageKey:e="fontScale",baseFont:n=20,minScale:a=.8,maxScale:r=1.4,step:o=.1,lineHeightRatio:s=1.4}={}){const l=g=>Math.max(a,Math.min(r,Number(g))),[c,u]=i.useState(()=>{try{const g=localStorage.getItem(e),y=g?Number(g):1;return Number.isFinite(y)?l(y):l(1)}catch{return 1}});i.useEffect(()=>{try{localStorage.setItem(e,String(c))}catch{}},[e,c]);const d=g=>{u(typeof g=="function"?y=>l(g(y)):l(g))},p=()=>d(g=>+(g+o).toFixed(6)),h=()=>d(g=>+(g-o).toFixed(6)),m=c<r-Number.EPSILON,f=c>a+Number.EPSILON,C=Math.round(n*c),b=Math.round(C*s);return{scale:c,setScale:d,increase:p,decrease:h,canIncrease:m,canDecrease:f,fontSize:C,lineHeight:b}}const qs=i.createContext(null);function w0(e){return/max-width:\s*7[0-9][0-9]px/.test(e)}function Qt(e){const n=i.useContext(qs),a=s=>typeof window>"u"||!window.matchMedia?!1:window.matchMedia(s).matches,[r,o]=i.useState(a(e));return i.useEffect(()=>{if(typeof window>"u"||!window.matchMedia)return;const s=window.matchMedia(e),l=u=>o(u.matches),c=s;return c.addEventListener?c.addEventListener("change",l):c.addListener&&c.addListener(l),o(s.matches),()=>{c.removeEventListener?c.removeEventListener("change",l):c.removeListener&&c.removeListener(l)}},[e]),n&&typeof n.mobile=="boolean"&&w0(e)?n.mobile:r}function rr(e){const n=i.useRef(e);return i.useEffect(()=>{n.current=e}),n}function Us(e,n){const a=rr(n);i.useEffect(()=>{const r=()=>a.current();try{window.addEventListener(e,r)}catch{}return()=>{try{window.removeEventListener(e,r)}catch{}}},[e,a])}const or=" \xB7 ",Gs=(()=>{if(typeof document>"u")return"";const e=document.title;return e.includes(or)?e.split(or).pop()??e:e})(),k0=i.createContext(!1);function A0(e){const n=i.useContext(k0);i.useEffect(()=>{if(n||typeof e!="string"||!e)return;const a=document.title;return document.title=Gs?`${e}${or}${Gs}`:e,()=>{document.title=a}},[e,n])}const Ks=[{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 N0(e,n,a){const{t:r}=de.useTranslation(),[o,s]=i.useState(()=>{const C=a?.initialPageSize;return C&&Ks.some(b=>b.value===C)?C:"25"}),[l,c]=i.useState(1),[u,d]=i.useState(n);u!==n&&(d(n),l!==1&&c(1));const p=i.useMemo(()=>Ks.map(C=>({...C,label:r("visits.showN",{n:C.value})})),[r]),h=i.useCallback(C=>{s(C),c(1)},[]),m=Math.max(1,Math.ceil(e.length/Number(o))),f=Math.min(l,m);return{pageRows:i.useMemo(()=>e.slice((f-1)*Number(o),f*Number(o)),[e,f,o]),pageSizeProps:{options:p,value:o,onChange:h},paginationProps:{page:f,total:m,onChange:c},setPage:c}}function B0(){const[e,n]=i.useState(null),a=i.useCallback(o=>{n(s=>s?.key===o?{key:o,asc:!s.asc}:{key:o,asc:!0})},[]),r=i.useCallback((o,s)=>({label:o,sortDir:e?.key===s?e.asc?"asc":"desc":null,onClick:()=>a(s)}),[e,a]);return{\uC815\uB82C:e,\uCE78:r}}const Kt="\uC804\uCCB4";Object.fromEntries(Object.entries(Om).map(([e,{nucleus:n}])=>[e,n]));const D0={labial:e=>e("common.phonetics.place.labial",{defaultValue:"\uC591\uC21C\uC74C"}),alveolar:e=>e("common.phonetics.place.alveolar",{defaultValue:"\uCE58\uC870\uC74C"}),palatal:e=>e("common.phonetics.place.palatal",{defaultValue:"\uACBD\uAD6C\uAC1C\uC74C"}),velar:e=>e("common.phonetics.place.velar",{defaultValue:"\uC5F0\uAD6C\uAC1C\uC74C"}),glottal:e=>e("common.phonetics.place.glottal",{defaultValue:"\uC131\uBB38\uC74C"})},S0={frontHigh:e=>e("common.phonetics.vowel.frontHigh",{defaultValue:"\uC804\uC124 \uACE0\uBAA8\uC74C"}),backHighUnrounded:e=>e("common.phonetics.vowel.backHighUnrounded",{defaultValue:"\uD6C4\uC124 \uACE0\uBAA8\uC74C \uD3C9\uC21C"}),backHighRounded:e=>e("common.phonetics.vowel.backHighRounded",{defaultValue:"\uD6C4\uC124 \uACE0\uBAA8\uC74C \uC6D0\uC21C"}),frontMid:e=>e("common.phonetics.vowel.frontMid",{defaultValue:"\uC804\uC124 \uC911\uBAA8\uC74C"}),backMidUnrounded:e=>e("common.phonetics.vowel.backMidUnrounded",{defaultValue:"\uD6C4\uC124 \uC911\uBAA8\uC74C \uD3C9\uC21C"}),backMidRounded:e=>e("common.phonetics.vowel.backMidRounded",{defaultValue:"\uD6C4\uC124 \uC911\uBAA8\uC74C \uC6D0\uC21C"}),low:e=>e("common.phonetics.vowel.low",{defaultValue:"\uC800\uBAA8\uC74C"})},j0={j:e=>e("common.phonetics.glide.j",{defaultValue:"j\uD65C\uC74C"}),w:e=>e("common.phonetics.glide.w",{defaultValue:"w\uD65C\uC74C"}),velar:e=>e("common.phonetics.glide.velar",{defaultValue:"\u0270\uD65C\uC74C"})};function E0(e,n){if("place"in n)return D0[n.place](e);const a=S0[n.vowel](e);return n.glide?`${a} \xB7 ${j0[n.glide](e)}`:a}const T0=(e,{defaultValue:n})=>n,Zs=(e,n)=>({jamos:e,phonetic:n,tooltip:E0(T0,n)}),en=(e,n)=>n.map(a=>Zs([a],{place:e})),pt=(e,n,a)=>Zs([...e],a?{vowel:n,glide:a}:{vowel:n}),sr={cho:[en("labial",["\u3142","\u3143","\u314D","\u3141"]),en("alveolar",["\u3137","\u3138","\u314C","\u3134","\u3139"]),en("alveolar",["\u3145","\u3146"]),en("palatal",["\u3148","\u3149","\u314A"]),en("velar",["\u3131","\u3132","\u314B"]),en("glottal",["\u314E"])],jung:[[pt("\u3163","frontHigh"),pt("\u315F","frontHigh","w"),pt("\u3162","frontHigh","velar")],[pt("\u3161","backHighUnrounded")],[pt("\u315C","backHighRounded"),pt("\u3160","backHighRounded","j")],[pt("\u3154\u3150","frontMid"),pt("\u3156\u3152","frontMid","j"),pt("\u3159\u315A\u315E","frontMid","w")],[pt("\u3153","backMidUnrounded"),pt("\u3155","backMidUnrounded","j"),pt("\u315D","backMidUnrounded","w")],[pt("\u3157","backMidRounded"),pt("\u315B","backMidRounded","j")],[pt("\u314F","low"),pt("\u3151","low","j"),pt("\u3158","low","w")]],jong:[en("labial",["\u3142","\u3141"]),en("alveolar",["\u3137","\u3134","\u3139"]),en("velar",["\u3131","\u3147"])]},M0=e=>e===L0?[]:Array.from(e),L0="__NO_CODA__",ir=e=>e.map(n=>n.map(({jamos:a,phonetic:r,tooltip:o})=>({v:a.join(""),phonetic:r,tooltip:o}))),Ys={cho:ir(sr.cho),jung:ir(sr.jung),jong:ir(sr.jong)};Ys.jung.flat().forEach(({v:e})=>{for(const n of M0(e));}),new Set(Ys.cho.flat().map(e=>e.v));const jn=[];let ma=!1;function Xs(e){if(e.key!=="Escape"||e.defaultPrevented)return;const n=jn[jn.length-1];n&&(e.stopPropagation(),n())}function lr(e){return jn.push(e),!ma&&typeof document<"u"&&(document.addEventListener("keydown",Xs),ma=!0),()=>{const n=jn.lastIndexOf(e);n>=0&&jn.splice(n,1),jn.length===0&&ma&&typeof document<"u"&&(document.removeEventListener("keydown",Xs),ma=!1)}}function $0(e,n=!0){const a=rr(e);i.useEffect(()=>{if(n)return lr(()=>{a.current?.()})},[n,a])}function Ca(){const[e,n]=i.useState(null),a=i.useCallback(s=>n(s.getBoundingClientRect()),[]),r=i.useCallback(()=>n(null),[]),o=i.useCallback(s=>{const l=s.getBoundingClientRect();n(c=>c?null:l)},[]);return{anchorRect:e,isOpen:e!=null,openAt:a,close:r,toggleAt:o}}function Js(e="warning"){const[n,a]=i.useState(""),[r,o]=i.useState(e),[s,l]=i.useState(0),c=i.useCallback((h,m)=>{o(m),a(h),l(f=>f+1)},[]),u=i.useCallback(h=>c(h,"warning"),[c]),d=i.useCallback(h=>c(h,"normal"),[c]),p=i.useCallback(()=>a(""),[]);return{toastMessage:n,toastType:r,toastKey:s,showToast:c,showWarning:u,showNormal:d,clearToast:p}}function Xn({computeStyle:e,onScroll:n="close",onResize:a="close",ignoreOutsideClickSelector:r}){const[o,s]=i.useState(!1),[l,c]=i.useState({}),u=i.useRef(null),d=i.useRef(null),p=i.useCallback(()=>{u.current&&c(e(u.current.getBoundingClientRect()))},[e]);i.useEffect(()=>{if(!o)return;p();const f=y=>{const w=y.target;r&&w.closest?.(r)||u.current?.contains(w)||d.current?.contains(w)||s(!1)};document.addEventListener("mousedown",f);const C=y=>{d.current?.contains(y.target)||(n==="reposition"?p():n==="close"&&s(!1))};n!=="ignore"&&window.addEventListener("scroll",C,!0);const b=()=>{a==="reposition"?p():a==="close"&&s(!1)};a!=="ignore"&&window.addEventListener("resize",b);const g=y=>{y.key==="Escape"&&s(!1)};return document.addEventListener("keydown",g),()=>{document.removeEventListener("mousedown",f),n!=="ignore"&&window.removeEventListener("scroll",C,!0),a!=="ignore"&&window.removeEventListener("resize",b),document.removeEventListener("keydown",g)}},[o,p,n,a,r]);const h=i.useCallback(()=>s(f=>!f),[]),m=i.useCallback(()=>s(!1),[]);return{open:o,setOpen:s,toggle:h,close:m,style:l,triggerRef:u,menuRef:d}}function R0(e,{mode:n="playback",autoStart:a=!1,onPlaySpeaker:r,onComplete:o,playMs:s=1100,feedbackMs:l=1500}={}){const[c,u]=i.useState([]),[d,p]=i.useState(0),[h,m]=i.useState("idle"),[f,C]=i.useState(null),[b,g]=i.useState([]),[y,w]=i.useState(null),[_,v]=i.useState(0),A=i.useRef(0),x=i.useCallback(O=>{A.current=typeof O=="function"?O(A.current):O,v(A.current)},[]),k=i.useRef(r),T=i.useRef(o);i.useEffect(()=>{k.current=r,T.current=o},[r,o]);const N=i.useRef([]),D=()=>{N.current.forEach(clearTimeout),N.current=[]},P=(O,S)=>{N.current.push(setTimeout(S,O))};i.useEffect(()=>()=>D(),[]);const L=c[d]?.id??null,j=i.useCallback(()=>{D(),m("playing"),g([]),w(null),x(0);let O=0;e.forEach((S,$)=>{P(O,()=>{p($),C(S.id),k.current?.(S)}),P(O+1e3,()=>{C(null),g(F=>[...F,S.id])}),O+=1300}),P(O,()=>{m("done"),T.current?.({score:0,total:e.length})})},[e,x]),R=i.useCallback((O,S)=>{if(S>=O.length){m("done"),T.current?.({score:A.current,total:O.length});return}p(S),w(null),m("playing"),C(O[S].id),k.current?.(O[S]),P(s,()=>{C(null),m("waiting")})},[s]),M=i.useCallback(()=>{D();const O=Gn(e);u(O),x(0),g([]),R(O,0)},[e,R,x]),z=i.useCallback(()=>{n==="playback"?(u(e),j()):M()},[n,e,j,M]),H=i.useCallback(()=>{D(),m("idle"),C(null),g([]),w(null),p(0),x(0),u([])},[x]);i.useEffect(()=>{a?z():H()},[n,e.length,a]);const Z=i.useCallback(O=>{h!=="waiting"||n==="playback"||(w(O),O===c[d]?.id&&x(S=>S+1),n==="exam"?(m("playing"),P(400,()=>R(c,d+1))):(m("feedback"),P(l,()=>R(c,d+1))))},[h,n,c,d,R,l,x]),J=n==="playback"?e.length:c.length;return{bind:{activeSpeakerId:f,playedIds:b,selectedId:y,answerId:L,showFeedback:h==="feedback",clickable:h==="waiting",onSelectSpeaker:Z},index:d,total:J,score:_,phase:h,done:h==="done",start:z,reset:H}}function P0({title:e,description:n,actionLabel:a,onAction:r,bg:o,color:s,size:l="medium",actionVariant:c,titleColor:u,descriptionColor:d,className:p=""}){const h=o??s??"main",m=i.useRef(null),[f,C]=i.useState("main"),b=Qt("(max-width: 767px)"),g=i.useRef({title:!1,description:!1});i.useLayoutEffect(()=>{const _=m.current;if(!_)return;const v=ar(_),A=(x,k,T)=>{if(T!==void 0)_.style.setProperty(k,T),g.current[x]=!0;else if(g.current[x]){const N=v?.[x];N?_.style.setProperty(k,N):_.style.removeProperty(k),g.current[x]=!1}};A("title","--promo-banner-bg-title",u),A("description","--promo-banner-bg-description",d)},[u,d,h]),i.useLayoutEffect(()=>{const _=m.current;if(!_)return;const v=ar(_);C(v?.actionVariant??"main")},[h]);const y=ye("promo-banner",`promo-banner--${l}`,p),w=zs[h];return t.jsxs("div",{ref:m,className:y,role:"note",children:[t.jsx(w,{}),t.jsxs("div",{className:"promo-banner__text",children:[t.jsx("span",{className:`promo-banner__title ${l==="small"?"body-2":"h2"}`,children:e}),n&&t.jsx("span",{className:"promo-banner__description body-3",children:n})]}),a&&r&&t.jsx(ae,{size:40,variant:c??f,shape:"pill",useBorder:!0,onClick:r,ariaLabel:a,...b?{type:"dot",icon:"arrow-right"}:{rightIcon:"arrow-right",label:a,minWidth:140}})]})}function I0({children:e,interval:n=5e3,dotTone:a,className:r="","aria-label":o}){const{t:s}=de.useTranslation(),l=o??s("topBanner.ariaLabel","\uBC30\uB108"),c=i.Children.toArray(e),u=c.length,[d,p]=i.useState(0),[h,m]=i.useState(!1),f=u>0?d%u:0;return i.useEffect(()=>{if(u<2||n<=0||h)return;const C=window.setInterval(()=>p(b=>(b+1)%u),n);return()=>window.clearInterval(C)},[u,n,h]),u===0?null:t.jsxs("section",{className:ye("top-banner",r),"aria-label":l,"aria-roledescription":"carousel",onMouseEnter:()=>m(!0),onMouseLeave:()=>m(!1),onFocus:()=>m(!0),onBlur:()=>m(!1),children:[t.jsx("div",{className:"top-banner__viewport",children:t.jsx("div",{className:"top-banner__track",style:{transform:`translateX(-${f*100}%)`},children:c.map((C,b)=>t.jsx("div",{className:"top-banner__slide","aria-hidden":b!==f,...b!==f?{inert:!0}:{},children:C},b))})}),u>1&&t.jsx("div",{className:`top-banner__dots${(a?.[f]??"light")==="dark"?" top-banner__dots--dark":""}`,children:c.map((C,b)=>t.jsx("button",{type:"button",className:`top-banner__dot${b===f?" top-banner__dot--active":""}`,"aria-label":s("topBanner.dotAriaLabel",{count:u,index:b+1,defaultValue:`${u}\uAC1C \uC911 ${b+1}\uBC88\uC9F8 \uBC30\uB108`}),"aria-current":b===f,onClick:()=>p(b)},b))})]})}function F0({title:e,body:n,open:a=!1,onToggle:r,avatar:o,titleClassName:s="body-2",bodyClassName:l="body-2",className:c=""}){const{t:u}=de.useTranslation();return t.jsxs("div",{className:`accordion-item ${a?"accordion-item--open":""} ${c}`.trim(),children:[t.jsxs("div",{className:"accordion-item__header",role:"button",tabIndex:0,"aria-expanded":a,"data-accordion-header":!0,onClick:r,onKeyDown:d=>{if(d.key==="Enter"||d.key===" ")d.preventDefault(),r?.();else if(d.key==="ArrowDown"||d.key==="ArrowUp"){d.preventDefault();const p=d.currentTarget.closest('[role="list"]');if(!p)return;const h=Array.from(p.querySelectorAll("[data-accordion-header]")),m=h.indexOf(d.currentTarget);(d.key==="ArrowDown"?h[m+1]:h[m-1])?.focus()}},children:[o&&t.jsx("div",{className:"accordion-item__avatar",children:o}),t.jsx("div",{className:`accordion-item__title ${s}`,children:e}),t.jsx("div",{className:"accordion-item__chevron",children:t.jsx(Oe,{icon:a?"chevron-up":"chevron-down",label:a?u("accordion.collapse","\uC811\uAE30"):u("accordion.expand","\uD3BC\uCE58\uAE30"),className:"accordion-item__chevron-icon",imgClassName:"accordion-item__chevron-image"})})]}),a&&t.jsx("div",{className:`accordion-item__body ${l}`,children:typeof n=="string"?t.jsx("p",{children:n}):n})]})}function O0({items:e=[],defaultOpenIndex:n=0,size:a=72,className:r="",bodyClassName:o}){const[s,l]=i.useState(n);return t.jsx("div",{className:`accordion-group accordion-group--s${a} ${r}`.trim(),role:"list",children:e.map((c,u)=>t.jsx(F0,{title:c.title,body:c.body,avatar:c.avatar,open:u===s,onToggle:()=>l(u===s?-1:u),bodyClassName:o},u))})}function H0(){return t.jsx("svg",{viewBox:"0 0 12 12",fill:"none",stroke:"currentColor",strokeWidth:2.2,strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:t.jsx("polyline",{points:"2,6 5,9 10,3"})})}function V0(){return t.jsxs("svg",{viewBox:"0 0 12 12",fill:"none",stroke:"currentColor",strokeWidth:2.2,strokeLinecap:"round","aria-hidden":"true",children:[t.jsx("line",{x1:"3",y1:"3",x2:"9",y2:"9"}),t.jsx("line",{x1:"9",y1:"3",x2:"3",y2:"9"})]})}function z0(){return t.jsx("svg",{viewBox:"0 0 12 12",fill:"none",stroke:"currentColor",strokeWidth:2.2,strokeLinecap:"round","aria-hidden":"true",children:t.jsx("line",{x1:"2.5",y1:"6",x2:"9.5",y2:"6"})})}function ot(e){const{t:n}=de.useTranslation(),{type:a="bar",size:r,className:o="","aria-label":s}=e;if(a==="dot"){const{icon:v,number:A,position:x="top-right",onClick:k,animate:T=!1}=e,N=v??"check",D=A!==void 0?"number":N,P=typeof r=="number"?r:32,L=ye("circle-badge",`circle-badge--${D}`,`circle-badge--${x}`,`circle-badge--${P}`,T?"circle-badge--animate":"",k?"circle-badge--clickable":"",o),j=A!==void 0?n("badge.nthSelected",{n:A,defaultValue:"{{n}}\uBC88\uC9F8 \uC120\uD0DD"}):{check:n("badge.selected","\uC120\uD0DD\uB428"),remove:n("badge.remove","\uC81C\uAC70"),minus:n("badge.exclude","\uC81C\uC678")}[N];return t.jsxs("span",{className:L,onClick:k,onKeyDown:k?R=>{R.key!=="Enter"&&R.key!==" "||(R.preventDefault(),R.currentTarget.click())}:void 0,"aria-label":s??j,role:k?"button":void 0,tabIndex:k?0:void 0,children:[A!==void 0&&A,A===void 0&&N==="check"&&t.jsx(H0,{}),A===void 0&&N==="remove"&&t.jsx(V0,{}),A===void 0&&N==="minus"&&t.jsx(z0,{})]})}const{label:l,children:c,variant:u="default",fill:d="filled",minWidth:p,iconLeft:h,iconRight:m,color:f}=e,C=typeof r=="number"?"medium":r??"medium",b={small:"caption-2b",medium:"body-3b",large:"body-2b"}[C]??"body-2b",g={small:12,medium:14,large:16}[C]??14,y=ye("badge",`badge--${u}`,`badge--${C}`,d!=="filled"?`badge--${d}`:"",b,o),w=f?.startsWith("--")?`var(${f})`:f,_=p!==void 0||w?{...p!==void 0?{minWidth:typeof p=="number"?`${p}px`:p}:{},...w?{"--badge-color":w}:{}}:void 0;return t.jsxs("span",{className:y,style:_,"aria-label":s,role:s?"img":void 0,children:[h&&t.jsx(Oe,{icon:h,size:g,className:"badge__icon"}),l??c,m&&t.jsx(Oe,{icon:m,size:g,className:"badge__icon"})]})}function fa({columns:e=[],onClose:n,className:a="",size:r="medium"}){const{t:o}=de.useTranslation(),s=r==="small"?40:48,[l,c]=i.useState([{title:null,columns:e}]),u=l[l.length-1];i.useEffect(()=>{c(C=>{try{if(!Array.isArray(C)||C.length===0)return[{title:null,columns:e}];const b=C.slice(),g=b[0]&&typeof b[0].title<"u"?b[0].title:null;return b[0]={title:g,columns:e},b}catch{return[{title:null,columns:e}]}})},[e]);const d=i.useCallback(()=>c(C=>C.length>1?C.slice(0,C.length-1):C),[]),p=i.useRef(null),h=i.useRef(null),m=l.length;i.useEffect(()=>{h.current||(h.current=document.activeElement);let C=0,b=0;const g=()=>{const y=p.current?.querySelector("button:not([disabled])");if(y&&y.offsetParent){y.focus({preventScroll:!0});return}b++<20&&(C=requestAnimationFrame(g))};return C=requestAnimationFrame(g),()=>cancelAnimationFrame(C)},[m]),i.useEffect(()=>()=>{h.current?.focus?.({preventScroll:!0})},[]);const f=i.useCallback(C=>{if(C){if(Array.isArray(C.children)&&C.children.length){c(b=>[...b,{title:C.label||null,columns:[{title:null,items:C.children||[]}]}]);return}try{typeof C.onClick=="function"&&C.onClick()}catch{}try{C&&C.closeOnSelect&&typeof n=="function"&&n()}catch{}}},[n]);return t.jsxs("div",{className:`tooltip-menu tooltip-menu--${r} ${a}`,children:[(l.length>1||u.title)&&t.jsxs("div",{className:"tooltip-menu__header",children:[l.length>1?t.jsx(ae,{size:s,type:"dot",icon:"chevron-left",ariaLabel:o("common.back","\uB4A4\uB85C"),onClick:d,variant:"transparent-gray",useBorder:!1}):null,t.jsx("div",{className:"tooltip-menu__title button-1",children:u.title})]}),t.jsx("div",{className:"tooltip-menu__columns",ref:p,children:u.columns&&u.columns.map((C,b)=>t.jsxs("div",{className:"tooltip-menu__column",children:[C.title?t.jsx("div",{className:"tooltip-menu__column-title body-3",children:C.title}):null,t.jsx("div",{className:"tooltip-menu__items",children:(C.items||[]).map((g,y)=>t.jsx(ae,{className:"tooltip-menu__item",size:s,type:g.label?"bar":"dot",icon:g.selected?"check":g.icon||"none",rightIcon:Array.isArray(g.children)&&g.children.length?"chevron-right":g.badgeCount?t.jsx(ot,{type:"dot",position:"inline",number:Math.min(g.badgeCount,99),size:24,"aria-label":`${g.badgeCount}`}):void 0,label:g.label,ariaLabel:g.label,onClick:()=>f(g),selected:g.selected,disabled:g.disabled,showTooltipInfo:g.tooltip||!1,useBorder:!1,align:"left"},y))})]},b))})]})}const W0=52,Qs=10,ei=e=>e&&e>0?e:0;function ti({items:e=[],activeKey:n,onChange:a,appMode:r,onAppModeChange:o,moreItems:s=[]}){const{t:l}=de.useTranslation(),c=r==="manager"?"malgwi":"manager",u=r==="manager"?"arrow-left":"arrow-right",d=r==="manager"?l("nav.modeLabelMalgwi","\uB9D0\uADC0"):l("nav.modeLabelManager","\uB9D0\uADC0 \uB9E4\uB2C8\uC800"),p=i.useRef(null),[h,m]=i.useState(0),f=e.length;i.useEffect(()=>{const H=p.current;if(!H||(m(H.clientWidth),typeof ResizeObserver>"u"))return;const Z=new ResizeObserver(J=>m(J[0].contentRect.width));return Z.observe(H),()=>Z.disconnect()},[]);const C=h>0?Math.floor((h+Qs)/(W0+Qs)):f,b=h>0&&C<f,g=b?C:f,y=e.slice(0,g),w=e.slice(g),_=b||s.length>0,v=i.useCallback(H=>({position:"fixed",bottom:window.innerHeight-H.top+8,right:window.innerWidth-H.right,zIndex:1e4}),[]),A=i.useId(),{open:x,toggle:k,close:T,style:N,triggerRef:D,menuRef:P}=Xn({computeStyle:v,onScroll:"ignore",onResize:"ignore"}),L=i.useCallback((H,Z)=>Z>0?l("nav.badgeLabel",{label:H,count:Z,defaultValue:"{{label}}, {{count}}\uAC1C"}):H,[l]),j=i.useCallback(()=>o?.(c),[o,c]),R=i.useMemo(()=>w.find(H=>H.key===n)??s.find(H=>H.selected||H.key&&H.key===n),[w,n,s]),M=i.useMemo(()=>[{items:[...w.map(H=>({label:H.label,icon:H.icon,badgeCount:H.badgeCount,selected:H.key===n,closeOnSelect:!0,onClick:()=>{H.key&&a&&a(H.key),T()}})),...s.map(H=>({label:H.label,icon:H.icon,badgeCount:H.badgeCount,selected:H.selected??(!!H.key&&H.key===n),closeOnSelect:!0,onClick:()=>{H.onClick?.(),T()}}))]}],[w,s,n,a,T]),z=[...w,...s].reduce((H,Z)=>H+ei(Z.badgeCount),0);return t.jsxs("nav",{className:"bottom-nav","aria-label":l("nav.bottomNav","\uD558\uB2E8 \uB124\uBE44\uAC8C\uC774\uC158"),children:[o&&t.jsxs(t.Fragment,{children:[t.jsx("div",{className:"bottom-nav__left",children:t.jsx(ae,{size:52,type:"dot",icon:u,ariaLabel:d,className:"bottom-nav-item",onClick:j})}),t.jsx("div",{className:"bottom-nav__divider","aria-hidden":"true"})]}),t.jsx("div",{className:"bottom-nav__items",ref:p,children:y.map(H=>{const Z=ei(H.badgeCount);return t.jsxs("span",{className:"bottom-nav__slot",children:[t.jsx(ae,{size:52,type:"dot",icon:H.icon,ariaLabel:L(H.label,Z),selected:H.key===n,disabled:H.state==="disabled",className:"bottom-nav-item",onClick:()=>H.key&&a?.(H.key)}),Z>0&&t.jsx("span",{"aria-hidden":"true",children:t.jsx(ot,{type:"dot",position:"top-right",number:Math.min(Z,99),size:24})})]},H.key)})}),_&&t.jsxs(t.Fragment,{children:[t.jsx("div",{className:"bottom-nav__divider","aria-hidden":"true"}),t.jsx("div",{className:"bottom-nav__right",children:t.jsxs("div",{ref:D,className:"bottom-nav__slot",children:[t.jsx(ae,{size:52,type:"dot",icon:R?.icon??"ellipsis",ariaLabel:L(R?.label??l("nav.more","\uB354\uBCF4\uAE30"),z),selected:!!R,className:"bottom-nav-item",onClick:k,"aria-expanded":x,"aria-controls":x?A:void 0}),z>0&&t.jsx("span",{"aria-hidden":"true",children:t.jsx(ot,{type:"dot",position:"top-right",number:Math.min(z,99),size:24})}),x&&It.createPortal(t.jsx("div",{id:A,role:"group","aria-label":l("nav.moreMenu","\uB354\uBCF4\uAE30 \uBA54\uB274"),className:"tooltip-content",style:N,ref:P,children:t.jsx(fa,{columns:M,onClose:T})}),document.body)]})})]})]})}function q0(e){const{t:n}=de.useTranslation(),{activeKey:a,unreadCount:r,onDebug:o,onNotification:s,onSetting:l,onHelp:c,onAccount:u}=e||{},d="default";return o||s||l||c||u?t.jsxs("div",{className:"side-nav__footer",children:[o&&t.jsx(ae,{size:48,showTooltipInfo:!0,type:"dot",shape:"pill",variant:d,icon:"terminal",ariaLabel:n("nav.debug","\uB514\uBC84\uADF8"),onClick:o,selected:a==="debug"}),s&&t.jsxs("span",{className:"side-nav__notification-wrap",children:[t.jsx(ae,{size:48,showTooltipInfo:!0,type:"dot",shape:"pill",variant:d,icon:"bell",ariaLabel:n("nav.notifications","\uC54C\uB9BC"),onClick:s,selected:a==="notifications"}),!!r&&t.jsx(ot,{type:"dot",number:Math.min(r,99),size:24})]}),l&&t.jsx(ae,{size:48,showTooltipInfo:!0,type:"dot",shape:"pill",variant:d,icon:"settings",ariaLabel:n("nav.settings","\uC124\uC815"),onClick:l,selected:a==="settings"}),c&&t.jsx(ae,{size:48,showTooltipInfo:!0,type:"dot",shape:"pill",variant:d,icon:"message-circle-question-mark",ariaLabel:n("nav.help","\uB3C4\uC6C0\uB9D0"),onClick:c,selected:a==="help"}),u&&t.jsx(ae,{size:48,showTooltipInfo:!0,type:"dot",shape:"pill",variant:d,icon:"user-round",ariaLabel:n("nav.account","\uACC4\uC815"),onClick:u,selected:a==="account"})]}):null}function ni(e){const{item:n,itemKey:a,label:r,icon:o,active:s,onClick:l,style:c,state:u,labelStyle:d}=e||{},p=n?.key??a??"",h=n?.label??r??"",m=n?.icon??o??"",f=n?.badge??0,C=t.jsx("span",{className:"side-nav__icon-wrap",children:t.jsx(Oe,{icon:m,label:typeof h=="string"?h:void 0,className:"side-nav__icon",maskClassName:"side-nav__icon-image",imgClassName:void 0,svgClassName:void 0})}),b=u==="disabled",g=`side-nav__item ${s?"active":""} ${u||""} ${b?"disabled":""} ${n?.child?"side-nav__item--child":""}`,y=i.useCallback(w=>{if(!b){try{w.currentTarget.blur()}catch{}l?.(p,w.currentTarget)}},[b,p,l]);return t.jsxs("button",{className:g,onClick:y,"aria-label":typeof h=="string"?h:void 0,style:c,"aria-disabled":b,children:[C,t.jsx("span",{className:"side-nav__label button-1 f",style:d,children:h}),f>0&&t.jsx(ot,{type:"dot",position:"inline",number:Math.min(f,99),size:24,"aria-label":`${f}`}),u==="loading"&&t.jsx("span",{className:"side-nav__spinner","aria-label":"loading"})]})}function ai(e){const{t:n}=de.useTranslation(),{items:a=[],activeKey:r,onChange:o,unreadCount:s,onDebug:l,onNotification:c,onAccount:u,onSetting:d,onHelp:p,appMode:h,onAppModeChange:m}=e||{},f=i.useCallback(()=>m?.(h==="malgwi"?"manager":"malgwi"),[m,h]);return t.jsxs("nav",{"aria-label":n("nav.mainMenu","\uBA54\uC778 \uBA54\uB274"),className:"side-nav__menu",children:[t.jsxs("div",{className:"side-nav__menu-list",children:[(a||[]).filter(C=>!C.section&&(C.key||C.label)).map((C,b)=>t.jsxs(i.Fragment,{children:[C.divider&&t.jsx("div",{className:"side-nav__separator"}),t.jsx(ni,{item:C,active:C.key===r,state:C.disabled?"disabled":void 0,onClick:(g,y)=>{if(C.disabled)return;if(C.href){window.open(C.href,"_blank","noopener,noreferrer");try{y?.blur()}catch{}return}o?.(C.key);try{const _=document.querySelector(".content-area");_?_.scrollTop=0:window.scrollTo({top:0})}catch{}try{y?.blur()}catch{}if(typeof window<"u"&&window.matchMedia){if(!window.matchMedia("(min-width: 768px) and (max-width: 1023px)").matches)return}else return;const w=document.querySelector(".header");if(w&&!(typeof w.matches=="function"&&w.matches(":hover"))){w.classList.add("header--force-collapsed");const _=()=>{w.classList.remove("header--force-collapsed"),w.removeEventListener("mouseenter",_)};w.addEventListener("mouseenter",_)}}})]},C.key??`side-nav__item-${b}`)),m&&t.jsx("div",{className:"side-nav__separator side-nav__separator--short"}),m&&t.jsx(ni,{item:{key:"__mode-switch__",label:h==="malgwi"?n("nav.goToManager","\uB9D0\uADC0\uB9E4\uB2C8\uC800\uB85C \uC774\uB3D9"):n("nav.goToMalgwi","\uB9D0\uADC0\uB85C \uC774\uB3D9"),icon:h==="malgwi"?"arrow-right":"arrow-left"},onClick:f})]}),t.jsx(q0,{activeKey:r,unreadCount:s,onDebug:l,onNotification:c,onAccount:u,onSetting:d,onHelp:p})]})}var cr='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',ur='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',U0='data:image/svg+xml,<svg width="100" height="100" viewBox="0 0 100 100" fill="none" xmlns="http://www.w3.org/2000/svg">%0A<g clip-path="url(%23clip0_2175_65214)">%0A<path d="M57.1427 17.8571H35.7141C25.8518 17.8571 17.8569 25.852 17.8569 35.7143V57.1428C17.8569 67.0051 25.8518 75 35.7141 75H57.1427C67.0049 75 74.9998 67.0051 74.9998 57.1428V35.7143C74.9998 25.852 67.0049 17.8571 57.1427 17.8571Z" fill="%234DCDC0"/>%0A<path d="M45.575 50.7393C36.5429 60.6821 21.3286 61.6678 11.1 53.1643C10.6322 52.775 10.5822 52.0678 10.9929 51.6178L27.0679 33.925L45.575 50.7393Z" fill="%234DCDC0"/>%0A<path d="M64.2857 25H42.8571C32.9964 25 25 32.9964 25 42.8571V64.2857C25 74.1464 32.9964 82.1429 42.8571 82.1429H58.9679C59.9321 82.1429 60.7143 82.925 60.7143 83.8893C60.7143 84.9107 61.5893 85.7214 62.6071 85.6321C73.5536 84.675 82.1429 75.4821 82.1429 64.2857V42.8571C82.1429 32.9964 74.1464 25 64.2857 25Z" fill="%234DCDC0"/>%0A<path d="M35.7143 25C29.7964 25 25 29.7964 25 35.7143V64.2857C25 67.3786 25.7893 70.2893 27.1714 72.8286C29.7071 74.2143 32.6179 75 35.7143 75H64.2857C70.2036 75 75 70.2036 75 64.2857V35.7143C75 32.6214 74.2107 29.7107 72.8286 27.1714C70.2929 25.7857 67.3821 25 64.2857 25H35.7143Z" fill="%23499CDF"/>%0A<path d="M36.0714 40.7143C36.0714 39.5308 35.112 38.5714 33.9285 38.5714C32.745 38.5714 31.7856 39.5308 31.7856 40.7143V45C31.7856 46.1834 32.745 47.1428 33.9285 47.1428C35.112 47.1428 36.0714 46.1834 36.0714 45V40.7143Z" fill="white"/>%0A<path d="M46.7859 57.1429C45.743 57.1429 44.6966 56.875 43.7502 56.3286C42.8966 55.8357 42.6037 54.7429 43.1002 53.8893C43.593 53.0357 44.6859 52.7429 45.5395 53.2393C46.518 53.8036 47.7573 53.6429 48.5537 52.8464C48.9395 52.4607 49.1823 51.9714 49.2573 51.4357C49.5787 49.1607 50.5823 47 52.1645 45.1857C53.1073 44.1071 53.6037 42.7214 53.568 41.2857C53.493 38.3536 51.1466 35.9107 48.2216 35.7286C47.2359 35.6679 46.2859 35.8464 45.4073 36.2679C44.5145 36.6929 43.4502 36.3107 43.0287 35.4214C42.6037 34.5321 42.9859 33.4643 43.8752 33.0429C45.2895 32.3714 46.868 32.0679 48.4466 32.1643C53.2002 32.4607 57.0216 36.4286 57.1395 41.1964C57.1966 43.5286 56.3859 45.7786 54.8573 47.5357C53.7323 48.825 53.018 50.3464 52.7966 51.9357C52.6109 53.2464 52.018 54.4357 51.0823 55.375C49.9145 56.5429 48.3609 57.15 46.7895 57.15L46.7859 57.1429Z" fill="white"/>%0A</g>%0A<defs>%0A<clipPath id="clip0_2175_65214">%0A<rect width="100" height="100" fill="white"/>%0A</clipPath>%0A</defs>%0A</svg>%0A';function ri({appMode:e}){const{t:n}=de.useTranslation(),a=e==="manager",r=a?ur:cr,o=U0,s=Qt("(min-width: 768px) and (max-width: 1023px)");return t.jsx("div",{className:"brand-identity__root","aria-label":n("header.biArea","BI \uC601\uC5ED"),children:s?t.jsx("img",{src:o,alt:n("header.biSymbol","BI \uC2EC\uBCFC"),className:"brand-identity__image"}):t.jsx("img",{src:r,alt:a?n("header.logoManager","\uB9D0\uADC0\uB9E4\uB2C8\uC800 \uB85C\uACE0"):n("header.logoMalgwi","\uB9D0\uADC0 \uB85C\uACE0"),className:"brand-identity__image"})})}function oi({activeKey:e,onChange:n,items:a,malgwiItems:r,managerItems:o,unreadCount:s,onDebug:l,onNotification:c,onAccount:u,onSetting:d,onHelp:p,appMode:h,onAppModeChange:m}){const{t:f}=de.useTranslation(),C=Qt("(max-width: 767px)"),b=i.useMemo(()=>(a??[]).filter(P=>!P.section&&(P.key||P.label)).map(P=>({key:P.key,label:typeof P.label=="string"?P.label:void 0,icon:P.icon,state:P.disabled?"disabled":void 0,badgeCount:P.badge})),[a]),g=i.useCallback(P=>{const L=a?.find(j=>j.key===P);if(!L?.disabled){if(L?.href){window.open(L.href,"_blank","noopener,noreferrer");return}n?.(P)}},[a,n]),y=i.useMemo(()=>{const P=[];return l&&P.push({key:"debug",icon:"terminal",label:f("nav.debug","\uB514\uBC84\uADF8"),onClick:l}),c&&P.push({key:"notifications",icon:"bell",label:f("nav.notifications","\uC54C\uB9BC"),badgeCount:s,onClick:c}),d&&P.push({key:"settings",icon:"settings",label:f("nav.settings","\uC124\uC815"),onClick:d}),p&&P.push({key:"help",icon:"message-circle-question-mark",label:f("nav.help","\uB3C4\uC6C0\uB9D0"),onClick:p}),u&&P.push({key:"account",icon:"user-round",label:f("nav.account","\uACC4\uC815"),onClick:u}),P},[f,l,c,d,p,u,s]),w=i.useCallback(P=>({position:"fixed",top:P.bottom+8,right:Math.max(8,window.innerWidth-P.right),zIndex:1e4}),[]),_=i.useId(),{open:v,toggle:A,close:x,style:k,triggerRef:T,menuRef:N}=Xn({computeStyle:w,onScroll:"ignore",onResize:"ignore"}),D=i.useMemo(()=>[{items:y.map(P=>({label:P.label,icon:P.icon,badgeCount:P.badgeCount,selected:P.selected??(!!P.key&&P.key===e),closeOnSelect:!0,onClick:()=>{P.onClick?.(),x()}}))}],[y,e,x]);return t.jsxs("aside",{className:`header${h==="manager"?" header--manager":""}`,children:[t.jsxs("div",{className:"header__bi",children:[t.jsx(ri,{appMode:h}),t.jsxs("div",{className:"header__menu-button",ref:T,children:[t.jsx(ae,{size:48,type:"dot",shape:"pill",variant:"default",icon:"menu",ariaLabel:f("header.menuOpen","\uBA54\uB274 \uC5F4\uAE30"),onClick:A,"aria-expanded":v,"aria-controls":v?_:void 0}),v&&It.createPortal(t.jsx("div",{id:_,role:"group","aria-label":f("header.utilMenu","\uC720\uD2F8\uB9AC\uD2F0 \uBA54\uB274"),className:"tooltip-content",style:k,ref:N,children:t.jsx(fa,{columns:D,onClose:x})}),document.body)]})]}),t.jsx(ai,{items:a,activeKey:e??void 0,onChange:n,unreadCount:s,onDebug:l,onNotification:c,onAccount:u,onSetting:d,onHelp:p,appMode:h,onAppModeChange:m}),C&&t.jsx(ti,{items:b,activeKey:e??void 0,onChange:g,appMode:h,onAppModeChange:m})]})}const G0=oi;var K0={statusFilter:"\uC0C1\uD0DC \uD544\uD130",pageSizeSelect:"\uD398\uC774\uC9C0\uB2F9 \uD45C\uC2DC \uAC1C\uC218",selectedCount:"{{count}}\uAC1C \uC120\uD0DD\uB428",cancel:"\uCDE8\uC18C",info:"\uC124\uBA85",errorState:{message:"\uBD88\uB7EC\uC624\uC9C0 \uBABB\uD588\uC2B5\uB2C8\uB2E4.",retry:"\uB2E4\uC2DC \uC2DC\uB3C4"},save:"\uC800\uC7A5",confirm:"\uD655\uC778",close:"\uB2EB\uAE30",back:"\uB4A4\uB85C",emptyTrainingName:"\uD6C8\uB828 \uC774\uB984\uC774 \uBE44\uC5B4 \uC788\uC2B5\uB2C8\uB2E4.",remove:"\uC81C\uAC70",image:"\uC774\uBBF8\uC9C0",delete:"\uC0AD\uC81C",reset:"\uCD08\uAE30\uD654",update:"\uC5C5\uB370\uC774\uD2B8",download:"\uB2E4\uC6B4\uB85C\uB4DC",search:"\uAC80\uC0C9",empty:"\uB370\uC774\uD130\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4.",yes:"\uC608",no:"\uC544\uB2C8\uC624",all:"\uC804\uCCB4",none:"\uC5C6\uC74C",days:"{{count}}\uC77C",loadMore:"\uB354\uBCF4\uAE30",more:"\uB354\uBCF4\uAE30",moreFor:"{{name}} \uB354\uBCF4\uAE30",retry:"\uB2E4\uC2DC \uC2DC\uB3C4",prevPage:"\uC774\uC804 \uD398\uC774\uC9C0",nextPage:"\uB2E4\uC74C \uD398\uC774\uC9C0",play:"\uC7AC\uC0DD",pause:"\uBA48\uCDA4",playPause:"\uC7AC\uC0DD / \uBA48\uCDA4",replay:"\uB2E4\uC2DC\uB4E3\uAE30",subscription:"\uC774\uC6A9\uAD8C",done:"\uC644\uB8CC",failed:"\uC2E4\uD328",continue:"\uACC4\uC18D",notification:"\uC54C\uB9BC",emptyList:"\uD56D\uBAA9\uC774 \uC5C6\uC2B5\uB2C8\uB2E4.",menu:"\uBA54\uB274",resetSelection:"\uC120\uD0DD \uCD08\uAE30\uD654",pageSizeLabel:"{{n}}\uAC1C\uC529 \uBCF4\uAE30",totalCountPrefix:"\uCD1D ",totalCountSuffix:"\uAC1C",expand:"\uD3BC\uCE58\uAE30",collapse:"\uC811\uAE30",popup:"\uD31D\uC5C5",codeBlock:"\uCF54\uB4DC \uBE14\uB85D",totalPrefix:"\uCD1D ",copyCode:"\uCF54\uB4DC \uBCF5\uC0AC",copied:"\uBCF5\uC0AC\uB428",col:{problem:"\uBB38\uC81C"},phonetics:{place:{labial:"\uC591\uC21C\uC74C",alveolar:"\uCE58\uC870\uC74C",palatal:"\uACBD\uAD6C\uAC1C\uC74C",velar:"\uC5F0\uAD6C\uAC1C\uC74C",glottal:"\uC131\uBB38\uC74C"},vowel:{frontHigh:"\uC804\uC124 \uACE0\uBAA8\uC74C",backHighUnrounded:"\uD6C4\uC124 \uACE0\uBAA8\uC74C \uD3C9\uC21C",backHighRounded:"\uD6C4\uC124 \uACE0\uBAA8\uC74C \uC6D0\uC21C",frontMid:"\uC804\uC124 \uC911\uBAA8\uC74C",backMidUnrounded:"\uD6C4\uC124 \uC911\uBAA8\uC74C \uD3C9\uC21C",backMidRounded:"\uD6C4\uC124 \uC911\uBAA8\uC74C \uC6D0\uC21C",low:"\uC800\uBAA8\uC74C"},glide:{j:"j\uD65C\uC74C",w:"w\uD65C\uC74C",velar:"\u0270\uD65C\uC74C"}},unknownError:"\uC54C \uC218 \uC5C6\uB294 \uC624\uB958"},Z0={rangeSelect:"\uAE30\uAC04 \uC120\uD0DD",dow:["\uC77C","\uC6D4","\uD654","\uC218","\uBAA9","\uAE08","\uD1A0"],yearMonth:"{{year}}\uB144 {{month}}\uC6D4",prevMonth:"\uC774\uC804 \uB2EC",addOnDate:"{{date}}\uC5D0 \uBC29\uBB38 \uB4F1\uB85D",nextMonth:"\uB2E4\uC74C \uB2EC",prevWeek:"\uC774\uC804 \uC8FC",nextWeek:"\uB2E4\uC74C \uC8FC",legend:{visited:"\uBC29\uBB38",scheduled:"\uC608\uC57D",noVisit:"\uBBF8\uBC29\uBB38"},periodSelect:"\uAE30\uAC04 \uB2E8\uC704"},Y0={planSuffix:"\uC774\uC6A9\uAD8C",labeledPlan:"{{label}} \uC774\uC6A9\uAD8C",couponCode:"\uC774\uC6A9\uAD8C \uCF54\uB4DC",specialLabel:"\uC624\uD508\uD2B9\uAC00",unitDay:"\uC77C",unitYear:"\uB144",remainingDay:"{{n}}\uC77C \uB0A8\uC74C",remainingHour:"{{n}}\uC2DC\uAC04 \uB0A8\uC74C",remainingMinute:"{{n}}\uBD84 \uB0A8\uC74C",remainingSecond:"{{n}}\uCD08 \uB0A8\uC74C",menu:{use:"\uC0AC\uC6A9\uD558\uAE30",refund:"\uD658\uBD88\uD558\uAE30",delete:"\uC0AD\uC81C\uD558\uAE30"}},X0={clearAriaLabel:"\uAC80\uC0C9\uC5B4 \uC9C0\uC6B0\uAE30"},J0={starLabel:"{{n}}\uBC88\uC9F8 \uBCC4 \uC120\uD0DD",valueLabel:"{{max}}\uC810 \uB9CC\uC810\uC5D0 {{value}}\uC810",groupLabel:"\uBCC4\uC810"},Q0={selected:"\uC120\uD0DD\uB428"},e2={placeholder:"\uC120\uD0DD"},t2={collapse:"\uC811\uAE30",expand:"\uD3BC\uCE58\uAE30"},n2={biArea:"BI \uC601\uC5ED",biSymbol:"BI \uC2EC\uBCFC",logoMalgwi:"\uB9D0\uADC0 \uB85C\uACE0",logoManager:"\uB9D0\uADC0\uB9E4\uB2C8\uC800 \uB85C\uACE0",menuOpen:"\uBA54\uB274 \uC5F4\uAE30",utilMenu:"\uC720\uD2F8\uB9AC\uD2F0 \uBA54\uB274"},a2={mainMenu:"\uBA54\uC778 \uBA54\uB274",bottomNav:"\uD558\uB2E8 \uB124\uBE44\uAC8C\uC774\uC158",goToManager:"\uB9D0\uADC0\uB9E4\uB2C8\uC800\uB85C \uC774\uB3D9",goToMalgwi:"\uB9D0\uADC0\uB85C \uC774\uB3D9",modeLabelManager:"\uB9D0\uADC0 \uB9E4\uB2C8\uC800",modeLabelMalgwi:"\uB9D0\uADC0",training:"\uD6C8\uB828",settings:"\uC124\uC815",notifications:"\uC54C\uB9BC",account:"\uACC4\uC815",help:"\uB3C4\uC6C0\uB9D0",debug:"\uB514\uBC84\uADF8",coupons:"\uCFE0\uD3F0",topic:"\uC8FC\uC81C\uBCC4 \uB4E3\uAE30",trainingType:"\uD6C8\uB828\uBCC4 \uB4E3\uAE30",wordPairs:"\uB300\uB9BD\uC30D \uCC3E\uAE30",wordSearch:"\uB2E8\uC5B4 \uCC3E\uAE30",wordTable:"\uB2E8\uC5B4\uD45C \uB9CC\uB4E4\uAE30",company:"\uC5C5\uCCB4\uC815\uBCF4",more:"\uB354\uBCF4\uAE30",moreMenu:"\uB354\uBCF4\uAE30 \uBA54\uB274",badgeLabel:"{{label}}, {{count}}\uAC1C"},r2={language:{training:{label:"\uD6C8\uB828 \uC5B8\uC5B4",sub:"\uD6C8\uB828\uC5D0 \uC0AC\uC6A9\uB418\uB294 \uB2E8\uC5B4\uC640 \uC74C\uC131 \uC5B8\uC5B4"}},notifications:{title:"\uC54C\uB9BC"},display:{fontSize:{small:"\uC791\uAC8C",large:"\uD06C\uAC8C"}},cache:{title:"\uCE90\uC2DC \uAD00\uB9AC",confirmMessage:"\uCE90\uC2DC({{size}})\uB97C \uC0AD\uC81C\uD569\uB2C8\uB2E4. \uACC4\uC18D\uD558\uC2DC\uACA0\uC2B5\uB2C8\uAE4C?",delete:"\uC0AD\uC81C",deleting:"\uC0AD\uC81C \uC911",cleared:"\uCE90\uC2DC\uAC00 \uC0AD\uC81C\uB418\uC5C8\uC2B5\uB2C8\uB2E4.",group:{wordData:{label:"\uB2E8\uC5B4 \uB370\uC774\uD130",sub:"\uB2E8\uC5B4 \uBAA9\uB85D \uBC0F \uBC84\uC804 \uC815\uBCF4"},pairIndex:{label:"\uB2E8\uC5B4\uC30D \uC778\uB371\uC2A4",sub:"\uCD08\uC131\xB7\uC911\uC131\xB7\uC885\uC131 \uB300\uB9BD\uC30D \uBD84\uC11D \uCE90\uC2DC"},imageCache:{label:"\uC774\uBBF8\uC9C0 \uCE90\uC2DC",sub:"\uB2E8\uC5B4\uBCC4 \uC774\uBBF8\uC9C0 \uC874\uC7AC \uC5EC\uBD80 \uD655\uC778 \uACB0\uACFC"},trainingRecord:{label:"\uD6C8\uB828 \uAE30\uB85D",sub:"\uC624\uB298\uC758 \uD6C8\uB828 \uC9C4\uD589\uB960 \uBC0F \uD559\uC2B5 \uC77C\uC218"}}},button:{save:"\uC124\uC815 \uC800\uC7A5"},popup:{clear:{confirm:"\uCD08\uAE30\uD654"},update:{confirm:"\uC5C5\uB370\uC774\uD2B8"},cache:{title:"{{label}} \uC0AD\uC81C",message:"{{label}}({{size}})\uB97C \uC0AD\uC81C\uD569\uB2C8\uB2E4. \uACC4\uC18D\uD558\uC2DC\uACA0\uC2B5\uB2C8\uAE4C?"}},saved:"\u2713 \uC800\uC7A5\uB428",account:{title:"\uACC4\uC815",delete:{sub:"\uD0C8\uD1F4 \uD6C4 30\uC77C \uC774\uB0B4 \uC7AC\uAC00\uC785 \uC2DC \uBCF5\uAD6C \uAC00\uB2A5\uD569\uB2C8\uB2E4."}}},o2={addButton:"\uC774\uC6A9\uAD8C \uCD94\uAC00\uD558\uAE30",couponButton:"\uCFE0\uD3F0 \uC785\uB825",loading:"\uBD88\uB7EC\uC624\uB294 \uC911\u2026",segment:{personal:"\uB9D0\uADC0",org:"\uB9D0\uADC0\uB9E4\uB2C8\uC800"},org:{title:"\uD604\uC7AC \uC774\uC6A9\uAD8C",disc:"\uAE30\uAD00\uC5D0\uC11C \uC0AC\uC6A9 \uC911\uC778 \uC774\uC6A9\uAD8C \uC815\uBCF4\uC785\uB2C8\uB2E4.",empty:"\uB4F1\uB85D\uB41C \uAE30\uAD00 \uC774\uC6A9\uAD8C\uC774 \uC5C6\uC2B5\uB2C8\uB2E4.",fallbackTitle:"\uAE30\uAD00 \uC774\uC6A9\uAD8C",startDate:"\uC2DC\uC791\uC77C",endDate:"\uB9CC\uB8CC\uC77C",remaining:"\uB0A8\uC740 \uAE30\uAC04",duration:"\uC774\uC6A9 \uAE30\uAC04"},active:{infoTitle:"\uC774\uC6A9 \uC815\uBCF4",refund:"\uD658\uBD88 \uC694\uCCAD",startDate:"\uC0AC\uC6A9 \uC2DC\uC791\uC77C",endDate:"\uC885\uB8CC\uC77C",remaining:"\uB0A8\uC740 \uAE30\uAC04"},pending:{title:"\uBCF4\uC720",empty:"\uB300\uAE30 \uC911\uC778 \uC774\uC6A9\uAD8C\uC774 \uC5C6\uC2B5\uB2C8\uB2E4."}},s2={profile:{planSuffix:"\uD50C\uB79C",plan:"\uD50C\uB79C"},basicInfo:{name:{placeholder:"\uD64D\uAE38\uB3D9"}},security:{title:"\uBCF4\uC548",password:{label:"\uBE44\uBC00\uBC88\uD638",currentRequired:"\uD604\uC7AC \uBE44\uBC00\uBC88\uD638\uB97C \uC785\uB825\uD558\uC138\uC694.",newRequired:"\uC0C8 \uBE44\uBC00\uBC88\uD638\uB97C \uC785\uB825\uD558\uC138\uC694.",mismatch:"\uC0C8 \uBE44\uBC00\uBC88\uD638\uAC00 \uC77C\uCE58\uD558\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4.",changed:"\uBE44\uBC00\uBC88\uD638\uAC00 \uBCC0\uACBD\uB418\uC5C8\uC2B5\uB2C8\uB2E4."},twoFactor:{label:"2\uB2E8\uACC4 \uC778\uC99D",sub:"\uACC4\uC815 \uBCF4\uC548\uC744 \uAC15\uD654\uD558\uC138\uC694"}}},i2={guide:{faq:{title:"\uC790\uC8FC \uBB3B\uB294 \uC9C8\uBB38",desc:"FAQ \uBAA8\uC544\uBCF4\uAE30"}}},l2={settings:"\uC124\uC815",start:{title:"\uB2E8\uC5B4\uD6C8\uB828 \uC2DC\uC791",description:"\uC544\uB798 \uD6C8\uB828 \uC720\uD615\uC744 \uC120\uD0DD\uD574 \uC2DC\uC791\uD558\uC138\uC694"},difficulty:{tooltip:"\uAC00\uC7A5 \uC26C\uC6B4 \uB09C\uC774\uB3C4\uB294 '\uBB34\uC791\uC704', \uAC00\uC7A5 \uC5B4\uB824\uC6B4 \uB09C\uC774\uB3C4\uB294 '\uCD08\uC131\uCC28\uC774' \uC785\uB2C8\uB2E4."},contrast:{label:"\uB300\uB9BD",type:"\uB300\uB9BD \uC885\uB958",count:"\uB300\uB9BD \uAC2F\uC218",n:"{{n}}\uAC1C"},filter:{random:"\uBB34\uC791\uC704",trainOnset:"\uCD08\uC131",trainVowel:"\uBAA8\uC74C",trainCoda:"\uC885\uC131",phonemeGroup:"\uD6C8\uB828 \uC74C\uC808",noLimit:"\uBB34\uAD00",codaExclude:"\uC81C\uC678",gradeLabel:"\uB4F1\uAE09",excludeImageInfo:"\uC774\uBBF8\uC9C0 \uC788\uB294 \uB2E8\uC5B4\uB9CC: \uB2E8\uC5B4 \uC911\uC5D0 \uC774\uBBF8\uC9C0\uAC00 \uC788\uB294 \uB2E8\uC5B4\uB9CC \uACB0\uACFC\uC5D0 \uBCF4\uC5EC\uC90D\uB2C8\uB2E4.",sameStructureInfo:"\uC74C\uC18C \uAD6C\uC870 \uAC19\uC740 \uB2E8\uC5B4\uB9CC: \uC815\uB2F5\uACFC \uC624\uB2F5\uC758 \uC74C\uC808 \uAD6C\uC870(\uAE00\uC790 \uC218\xB7\uBC1B\uCE68 \uC720\uBB34 \uB4F1)\uAC00 \uAC19\uC740 \uACB0\uACFC\uB9CC \uB0A8\uACA8\uC694.",selectSection:"\uC120\uD0DD",excludeImage:"\uC774\uBBF8\uC9C0 \uC788\uB294 \uB2E8\uC5B4\uB9CC",sameStructure:"\uC74C\uC18C \uAD6C\uC870 \uAC19\uC740 \uB2E8\uC5B4\uB9CC"},noQuestions:"\uBB38\uC81C\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4.",countQuestions:"{{n}}\uBB38\uC81C",countSentences:"{{n}}\uBB38\uC7A5",comingSoon:"\uC900\uBE44 \uC911",nextQuestion:"\uB2E4\uC74C \uBB38\uC81C",noiseRatioTitle:"\uC18C\uC74C \uBE44\uC728",noiseRatioValue:"{{ratio}}\uBC30",noiseTypeTitle:"\uC18C\uC74C \uC885\uB958",playVolumeTitle:"\uC804\uCCB4 \uC18C\uB9AC",playSpeedTitle:"\uC7AC\uC0DD \uC18D\uB3C4",meter:{sentence:"\uC7AC\uC0DD",noise:"\uC18C\uC74C",toggle:"\uC624\uB514\uC624 \uBBF8\uD130 \uD45C\uC2DC"},viewResult:"\uACB0\uACFC\uBCF4\uAE30",problemNotice:"{{n}}\uBC88 \uBB38\uC81C \uC785\uB2C8\uB2E4.",trainingSettingsTitle:"\uD6C8\uB828 \uC124\uC815",sentencePreview:"\uBB38\uC7A5 \uBBF8\uB9AC\uBCF4\uAE30",notHeard:"\uC548 \uB4E4\uB838\uC5B4\uC694.",heardWell:"\uC798 \uB4E4\uB838\uC5B4\uC694.",confirmTitle:"\uBB38\uC7A5\uC744 \uD655\uC778\uD558\uACE0 \uC798 \uB4E4\uB838\uB294\uC9C0 \uC120\uD0DD\uD558\uC138\uC694.",noSoundWaveform:"\uC18C\uB9AC \uBE44\uAD50 \uBB38\uC81C\uB294 \uC6E8\uC774\uBE0C\uD3FC\uC744 \uD45C\uD604\uD558\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4.",noise:{level:{none:"\uC5C6\uC74C",weak:"\uC57D\uD568",medium:"\uBCF4\uD1B5",strong:"\uAC15\uD568",veryStrong:"\uB9E4\uC6B0 \uAC15\uD568"},type:{none:"\uC5C6\uC74C",default:"\uAE30\uBCF8",street:"\uAE38\uAC70\uB9AC",buzz:"\uC640\uAE00\uC640\uAE00",restaurant:"\uC2DD\uB2F9"}},listenTitle:"\uC81C\uC2DC\uD558\uB294 \uBB38\uC7A5\uC744 \uB4E4\uC5B4\uC8FC\uC138\uC694.",listenButton:"\uBB38\uC7A5 \uB4E3\uAE30",playSound:"\uC18C\uB9AC \uB4E3\uAE30",playAll:"\uBAA8\uB450 \uB4E3\uAE30",stop:"\uC815\uC9C0",preview:"\uBBF8\uB9AC \uB4E3\uAE30",next:"\uB2E4\uC74C",completed:"\uD6C8\uB828 \uC644\uB8CC",selected:"\uC120\uD0DD\uB428",nthSelected:"{{n}}\uBC88\uC9F8 \uC120\uD0DD",fontSizeMin:"\uAE00\uC528 \uD06C\uAE30\uAC00 \uCD5C\uC18C\uC785\uB2C8\uB2E4.",fontSizeMax:"\uAE00\uC528 \uD06C\uAE30\uAC00 \uCD5C\uB300\uC785\uB2C8\uB2E4.",fontSizeDecrease:"\uAE00\uC790 \uD06C\uAE30 \uAC10\uC18C",fontSizeIncrease:"\uAE00\uC790 \uD06C\uAE30 \uC99D\uAC00",toggleBackground:"\uBC30\uACBD \uC804\uD658",cardInstructions:"\uB0B1\uB9D0 \uCE74\uB4DC\uB97C \uBCF4\uACE0 \uC18C\uB9AC\uB97C \uB4E3\uACE0 \uD655\uC778\uD558\uC138\uC694.",noCards:"\uCE74\uB4DC\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4.",audioFetchError:"\uC0AC\uC6B4\uB4DC \uC18C\uC2A4\uB97C \uAC00\uC838\uC624\uC9C0 \uBABB\uD588\uC2B5\uB2C8\uB2E4.",selectConfirm:"\uBB38\uC81C\uB97C \uBCF4\uACE0 \uD574\uB2F9\uD558\uB294 \uB0B4\uC6A9\uC744 \uC120\uD0DD\uD558\uC138\uC694.",orderListDefault:"\uBB38\uC7A5\uC744 \uB4E4\uC740 \uC21C\uC11C\uB300\uB85C \uBC30\uCE58\uD558\uC138\uC694.",result:{eyebrow:"\uD6C8\uB828 \uC644\uB8CC",title:"\uD6C8\uB828\uC744 \uBAA8\uB450 \uB9C8\uCCE4\uC2B5\uB2C8\uB2E4.",scoreAria:"{{correct}} / {{total}} \uBB38\uD56D",elapsed:"\uC18C\uC694 \uC2DC\uAC04",summary:"{{correct}}\uAC1C\uC758 \uBB38\uD56D\uC744 \uC798 \uB4E4\uC5C8\uC2B5\uB2C8\uB2E4.",tableAriaLabel:"\uBB38\uD56D\uBCC4 \uD310\uC815",colJudge:"\uD310\uC815",colAnswerSelected:"\uC815\uB2F5 \xB7 \uC120\uD0DD",colAnswer:"\uC815\uB2F5",colSelected:"\uC120\uD0DD",heardWell:"\uC798 \uB4E4\uC5C8\uC5B4\uC694",notHeard:"\uBABB \uB4E4\uC5C8\uC5B4\uC694",notJudged:"\uBBF8\uD310\uC815",replay:"\uB2E4\uC2DC\uD558\uAE30",done:"\uC644\uB8CC",viewResult:"\uACB0\uACFC \uD655\uC778",noContent:"(\uB0B4\uC6A9\uC5C6\uC74C)"},up:"\uC704\uB85C",down:"\uC544\uB798\uB85C",prev:"\uC774\uC804",listenLabel:"\uBB38\uC7A5 \uB4E3\uAE30",sourcePlay:"\uC18C\uC2A4 {{n}} \uC7AC\uC0DD",listen:"\uB4E3\uAE30"},c2={totalCount:"\uAC1C\uC758 \uD6C8\uB828 \uBB36\uC74C",renameGroup:"\uADF8\uB8F9 \uC774\uB984 \uBC14\uAFB8\uAE30",itemCount:"\uD6C8\uB828 \uAC1C\uC218",menu:{edit:"\uD6C8\uB828 \uBB36\uC74C \uC218\uC815",rename:"\uC774\uB984 \uBC14\uAFB8\uAE30",move:"\uADF8\uB8F9 \uC774\uB3D9",duplicate:"\uD6C8\uB828 \uBB36\uC74C \uBCF5\uC0AC",publish:"\uB9D0\uADC0\uC790\uB8CC\uC2E4\uC5D0 \uC62C\uB9AC\uAE30"},sort:{customers:"\uD6C8\uB828 \uACE0\uAC1D"},copyLink:"\uB9C1\uD06C \uBCF5\uC0AC",removeLink:"\uB9C1\uD06C \uC81C\uAC70",linkRemoved:"\uB9C1\uD06C\uAC00 \uC81C\uAC70\uB418\uC5C8\uC2B5\uB2C8\uB2E4.",linkSaveFirst:"\uBA3C\uC800 \uD6C8\uB828 \uBB36\uC74C\uC744 \uC800\uC7A5\uD574\uC8FC\uC138\uC694.",linkSaveFirstHint:"\uC800\uC7A5\uB41C \uD6C8\uB828 \uBB36\uC74C\uC5D0\uC11C\uB9CC \uACF5\uC720 \uB9C1\uD06C\uB97C \uC0DD\uC131\uD560 \uC218 \uC788\uC2B5\uB2C8\uB2E4.",linkCopySelect:"\uBCF5\uC0AC\uAC00 \uB9C9\uD600 \uB9C1\uD06C\uB97C \uC120\uD0DD\uD588\uC2B5\uB2C8\uB2E4. Ctrl/\u2318+C\uB85C \uBCF5\uC0AC\uD558\uC138\uC694.",nameRequired:"\uD6C8\uB828 \uBB36\uC74C \uC774\uB984\uC744 \uC785\uB825\uD574\uC8FC\uC138\uC694.",itemRequired:"\uD6C8\uB828\uC744 1\uAC1C \uC774\uC0C1 \uB2F4\uC544\uC8FC\uC138\uC694.",randomAdd:"\uBB34\uC791\uC704 \uCD94\uAC00"},u2={totalCount:"\uBA85\uC758 \uACE0\uAC1D",loadError:"\uBAA9\uB85D\uC744 \uBD88\uB7EC\uC624\uC9C0 \uBABB\uD588\uC2B5\uB2C8\uB2E4.",basicInfo:{editTooltip:"\uC218\uC815\uD558\uAE30"},member:{placeholder:"\uC774\uBA54\uC77C \uB610\uB294 \uC804\uD654",link:"\uC5F0\uACB0",linking:"\uC5F0\uACB0 \uC911\u2026"},device:{title:"\uCCAD\uAC01\uC7AC\uD65C\uAE30\uAE30",addTooltip:"\uC0C8\uB85C \uC0DD\uC131",addButton:"\uAE30\uAE30 \uCD94\uAC00",listTooltip:"\uBAA9\uB85D \uBCF4\uAE30",listTitle:"\uCE21 \uAE30\uAE30 \uBAA9\uB85D",historyEmpty:"\uB4F1\uB85D\uB41C \uAE30\uAE30 \uC774\uB825\uC774 \uC5C6\uC2B5\uB2C8\uB2E4.",wearing:"\uCE21 \uCC29\uC6A9\uC911",notRegistered:"\uBBF8\uB4F1\uB85D",unit:"\uAC1C",wearingNow:"\uCC29\uC6A9",wear:"\uCC29\uC6A9",unwear:"\uCC29\uC6A9 \uD574\uC81C",wornSince:"{{date}}\uBD80\uD130",release:"\uD574\uC81C",historyTitle:"\uCCAD\uAC01\uC7AC\uD65C\uAE30\uAE30 \uC774\uB825"},schedule:{title:"\uBC29\uBB38 \uC608\uC815",addTooltip:"\uC608\uC815 \uB4F1\uB85D",listTooltip:"\uC804\uCCB4 \uBCF4\uAE30",empty:"\uC608\uC815\uB41C \uBC29\uBB38\uC774 \uC5C6\uC2B5\uB2C8\uB2E4.",registerTitle:" \uACE0\uAC1D\uB2D8 \uBC29\uBB38 \uC608\uC815 \uB4F1\uB85D",memoPlaceholder:"\uBC29\uBB38 \uC608\uC815 \uAD00\uB828 \uBA54\uBAA8\uB97C \uC785\uB825\uD574 \uC8FC\uC138\uC694."},visitHistory:{title:"\uBC29\uBB38 \uC774\uB825",addTooltip:"\uC2E0\uADDC \uB4F1\uB85D",empty:"\uC544\uC9C1 \uBC29\uBB38 \uAE30\uB85D\uC774 \uC5C6\uC2B5\uB2C8\uB2E4.",popupTitle:" \uACE0\uAC1D\uB2D8 \uBC29\uBB38 \uC774\uB825",registerTitle:" \uACE0\uAC1D\uB2D8 \uC2E0\uADDC \uBC29\uBB38 \uB4F1\uB85D"},homework:{title:"\uC219\uC81C \uC9C4\uD589\uC0C1\uD669",active:"\uD65C\uC131",inactive:"\uBE44\uD65C\uC131",copy:"\uB9C1\uD06C \uBCF5\uC0AC",copied:"\uB9C1\uD06C\uAC00 \uBCF5\uC0AC\uB418\uC5C8\uC2B5\uB2C8\uB2E4."},moreItems:"\uB354 \uC788\uC74C",viewAll:"\uC804\uCCB4 \uBCF4\uAE30",visits:{title:"\uBC29\uBB38"},trainingRecord:{title:"\uACE0\uAC1D \uD6C8\uB828 \uAE30\uB85D"},status:{trainingSubtitle:"\uD6C8\uB828 \uD604\uD669"},detail:{session:{completedFmt:"\uC644\uB8CC {{done}}/{{total}} \xB7 {{duration}}"},visitSuffix:"\uC758 \uBC29\uBB38"},duration:{minSec:"{{m}}\uBD84 {{s}}\uCD08",min:"{{m}}\uBD84",sec:"{{s}}\uCD08"}},d2={plan:{recommendedFor:"\uC774\uB7F0 \uBD84\uAED8 \uCD94\uCC9C\uD569\uB2C8\uB2E4.",features:"\uD575\uC2EC \uAE30\uB2A5",freePrice:"\uBB34\uB8CC",contact:"\uBB38\uC758\uD558\uAE30",tierFallback:"\uC774\uC6A9\uAD8C",openPromo:"\uC624\uD508 \uD2B9\uAC00"},products:{mgrEnterprise:{tier:{price:"\uBB38\uC758"}}}},p2={title:"\uCFE0\uD3F0",subtitle:"\uCFE0\uD3F0 \uCF54\uB4DC\uB97C \uC785\uB825\uD558\uAC70\uB098 \uBCF4\uC720 \uCFE0\uD3F0\uC744 \uD655\uC778\uD558\uC138\uC694.",input:{label:"\uCFE0\uD3F0 \uCF54\uB4DC",placeholder:"\uCFE0\uD3F0 \uCF54\uB4DC \uC785\uB825"},applyButton:"\uC801\uC6A9",error:{invalid:"\uC720\uD6A8\uD558\uC9C0 \uC54A\uC740 \uCFE0\uD3F0 \uCF54\uB4DC\uC785\uB2C8\uB2E4.",alreadyUsed:"\uC774\uBBF8 \uC0AC\uC6A9\uB41C \uCFE0\uD3F0\uC785\uB2C8\uB2E4."},success:{applied:'"{{name}}" \uCFE0\uD3F0\uC774 \uC801\uC6A9\uB418\uC5C8\uC2B5\uB2C8\uB2E4.'},section:{owned:"\uBCF4\uC720 \uCFE0\uD3F0"},status:{used:"\uC0AC\uC6A9 \uC644\uB8CC",available:"\uC0AC\uC6A9 \uAC00\uB2A5"}},h2={unitVisit:"\uAC74",periodAll:"\uC804\uCCB4",showN:"{{n}}\uAC1C\uC529"},m2={subtitle:"\uC5C5\uCCB4 \uBC0F \uBC95\uC778 \uC815\uBCF4\uB97C \uAD00\uB9AC\uD558\uC138\uC694.",editButton:"\uC815\uBCF4 \uC218\uC815",basicInfo:{title:"\uAE30\uBCF8 \uC815\uBCF4"},contactInfo:{title:"\uC5F0\uB77D\uCC98 \uC815\uBCF4"}},C2={title:"\uD6C8\uB828\uBCC4 \uB4E3\uAE30",subtitle:"\uC6D0\uD558\uB294 \uD6C8\uB828 \uC720\uD615\uC744 \uC120\uD0DD\uD558\uC138\uC694.",listenInNoise:{title:"\uC18C\uC74C \uD558 \uBB38\uC7A5 \uB4E3\uAE30",desc:"\uB2E4\uC591\uD55C \uC18C\uC74C \uD658\uACBD\uC5D0\uC11C \uBB38\uC7A5 \uCCAD\uB825\uC744 \uD6C8\uB828\uD569\uB2C8\uB2E4."},shortStory:{title:"\uC9E7\uC740 \uC774\uC57C\uAE30 \uB4E3\uAE30",desc:"\uC9E7\uC740 \uC774\uC57C\uAE30\uB97C \uB4E3\uACE0 \uB0B4\uC6A9\uC744 \uC774\uD574\uD569\uB2C8\uB2E4."},longStory:{title:"\uAE34 \uC774\uC57C\uAE30 \uB4E3\uAE30",desc:"\uAE34 \uC774\uC57C\uAE30\uB97C \uC9D1\uC911\uD574\uC11C \uB4E3\uACE0 \uB0B4\uC6A9\uC744 \uD30C\uC545\uD569\uB2C8\uB2E4."},orderingSentence:{title:"\uBB38\uC7A5 \uC21C\uC11C\uD654",desc:"\uB4E4\uC740 \uBB38\uC7A5\uB4E4\uC744 \uC62C\uBC14\uB978 \uC21C\uC11C\uB85C \uBC30\uC5F4\uD569\uB2C8\uB2E4."},SAME_SOUND_PICK:{label:"\uAC19\uC740 \uC18C\uB9AC \uACE0\uB974\uAE30",sub:"\uB4E4\uC740 \uC18C\uB9AC\uC640 \uAC19\uC740 \uB2E8\uC5B4 \uCE74\uB4DC\uB97C \uACE0\uB974\uC138\uC694."},SAME_OR_DIFF:{label:"\uAC19\uC740\uC9C0 \uB2E4\uB978\uC9C0 \uB9DE\uD788\uAE30",sub:"\uB450 \uC18C\uB9AC\uAC00 \uAC19\uC740\uC9C0, \uB2E4\uB978\uC9C0 \uAD6C\uBD84\uD558\uC138\uC694."},HEAR_AND_PICK_SAME:{label:"\uC77C\uCE58\uD558\uB294 \uB2E8\uC5B4 \uB9DE\uD788\uAE30",sub:"\uB4E4\uC740 \uC18C\uB9AC\uC758 \uB2E8\uC5B4 \uCE74\uB4DC\uB97C \uACE0\uB974\uC138\uC694."},HEAR_AND_PICK_INCLUDED:{label:"\uD55C \uC74C\uC808 \uD3EC\uD568 \uB2E8\uC5B4 \uB9DE\uD788\uAE30",sub:"\uB4E4\uC740 \uC74C\uC808\uC774 \uD3EC\uD568\uB41C \uB2E8\uC5B4 \uCE74\uB4DC\uB97C \uACE0\uB974\uC138\uC694."},STARTS_WITH_SAME_SOUND:{label:"\uCCAB \uC74C\uC808\uC774 \uAC19\uC740 \uB2E8\uC5B4 \uB9DE\uD788\uAE30",sub:"\uB4E4\uC740 \uB2E8\uC5B4\uC640 \uAC19\uC740 \uC18C\uB9AC\uB85C \uC2DC\uC791\uD558\uB294 \uB2E8\uC5B4\uB97C \uACE0\uB974\uC138\uC694."},LISTEN_AND_REMEMBER_ORDER:{label:"\uB4E3\uACE0 \uC21C\uC11C\uB300\uB85C \uAE30\uC5B5\uD558\uAE30",sub:"\uC138 \uB2E8\uC5B4\uB97C \uB4E4\uC740 \uC21C\uC11C\uB300\uB85C \uCE74\uB4DC\uB97C \uC120\uD0DD\uD558\uC138\uC694."},MERGE_2_SYLLABLES:{label:"\uC74C\uC808 2\uAC1C \uD569\uCE58\uAE30",sub:"\uB450 \uC74C\uC808\uC744 \uD569\uCE58\uBA74 \uC5B4\uB5A4 \uB2E8\uC5B4\uAC00 \uB420\uAE4C\uC694?"},MERGE_3_SYLLABLES:{label:"\uC74C\uC808 3\uAC1C \uD569\uCE58\uAE30",sub:"\uC138 \uC74C\uC808\uC744 \uD569\uCE58\uBA74 \uC5B4\uB5A4 \uB2E8\uC5B4\uAC00 \uB420\uAE4C\uC694?"},MERGE_2_PHONEMES:{label:"\uC74C\uC18C 2\uAC1C \uD569\uCE58\uAE30",sub:"\uB450 \uC74C\uC18C\uB97C \uD569\uCE58\uBA74 \uC5B4\uB5A4 \uC18C\uB9AC\uAC00 \uB420\uAE4C\uC694?"},MERGE_3_PHONEMES:{label:"\uC74C\uC18C 3\uAC1C \uD569\uCE58\uAE30",sub:"\uC138 \uC74C\uC18C\uB97C \uD569\uCE58\uBA74 \uC5B4\uB5A4 \uC18C\uB9AC\uAC00 \uB420\uAE4C\uC694?"},DROP_1_FROM_2SYLL:{label:"2\uC74C\uC808\uC5D0\uC11C \uD55C \uC74C\uC808 \uD0C8\uB77D",sub:"2\uC74C\uC808 \uB2E8\uC5B4\uC5D0\uC11C \uD55C \uC74C\uC808\uC744 \uBE7C\uBA74 \uC5B4\uB5A4 \uC18C\uB9AC\uAC00 \uB420\uAE4C\uC694?"},DROP_1_FROM_3SYLL:{label:"3\uC74C\uC808\uC5D0\uC11C \uD55C \uC74C\uC808 \uD0C8\uB77D",sub:"3\uC74C\uC808 \uB2E8\uC5B4\uC5D0\uC11C \uD55C \uC74C\uC808\uC744 \uBE7C\uBA74 \uC5B4\uB5A4 \uC18C\uB9AC\uAC00 \uB420\uAE4C\uC694?"},DROP_PART_FROM_COMPOUND:{label:"\uD569\uC131\uC5B4\uC5D0\uC11C \uBD80\uBD84 \uD0C8\uB77D",sub:"\uD569\uC131\uC5B4\uC758 \uC77C\uBD80\uB97C \uBE7C\uBA74 \uC5B4\uB5A4 \uB2E8\uC5B4\uAC00 \uB420\uAE4C\uC694?"},DROP_FINAL_CONSONANT_FROM_1SYLL:{label:"1\uC74C\uC808\uC5D0\uC11C \uBC1B\uCE68 \uD0C8\uB77D",sub:"\uBC1B\uCE68\uC744 \uBE7C\uBA74 \uC5B4\uB5A4 \uC18C\uB9AC\uAC00 \uB420\uAE4C\uC694?"},REMOVE_CONSONANT_AND_IDENTIFY_PHONEME:{label:"1\uC74C\uC808\uC5D0\uC11C \uC790\uC74C \uD0C8\uB77D",sub:"\uC790\uC74C\uC744 \uBE7C\uBA74 \uC5B4\uB5A4 \uC18C\uB9AC\uAC00 \uB0A8\uC744\uAE4C\uC694?"},CHANGE_1_SYLL_IN_2SYLL:{label:"2\uC74C\uC808\uC5D0\uC11C \uD55C \uC74C\uC808 \uBC14\uAFB8\uAE30",sub:"2\uC74C\uC808 \uB2E8\uC5B4\uC758 \uD55C \uC74C\uC808\uC744 \uBC14\uAFD4 \uC0C8 \uB2E8\uC5B4\uB97C \uB9CC\uB4DC\uC138\uC694."},CHANGE_1_SYLL_IN_3SYLL:{label:"3\uC74C\uC808\uC5D0\uC11C \uD55C \uC74C\uC808 \uBC14\uAFB8\uAE30",sub:"3\uC74C\uC808 \uB2E8\uC5B4\uC758 \uD55C \uC74C\uC808\uC744 \uBC14\uAFD4 \uC0C8 \uB2E8\uC5B4\uB97C \uB9CC\uB4DC\uC138\uC694."},CHANGE_1_PHONEME_IN_1SYLL:{label:"1\uC74C\uC808 \uB2E8\uC5B4 \uC911 1\uAC1C \uC74C\uC18C \uBC14\uAFB8\uAE30",sub:"1\uC74C\uC808 \uB2E8\uC5B4\uC758 \uD55C \uC74C\uC18C\uB97C \uBC14\uAFD4 \uC0C8 \uC18C\uB9AC\uB97C \uB9CC\uB4DC\uC138\uC694."},CHANGE_1_PHONEME_IN_2SYLL:{label:"2\uC74C\uC808 \uB2E8\uC5B4 \uC911 1\uAC1C \uC74C\uC18C \uBC14\uAFB8\uAE30",sub:"2\uC74C\uC808 \uB2E8\uC5B4\uC758 \uD55C \uC74C\uC18C\uB97C \uBC14\uAFD4 \uC0C8 \uB2E8\uC5B4\uB97C \uB9CC\uB4DC\uC138\uC694."}},f2={comingSoon:"\uB2E8\uC5B4\uD6C8\uB828 \uAE30\uB2A5\uC744 \uC900\uBE44 \uC911\uC785\uB2C8\uB2E4."},g2={colName:"\uB2E8\uC5B4\uD45C \uC774\uB984",open:"\uC5F4\uAE30",countSuffix:"\uAC1C\uC758 \uB2E8\uC5B4\uD45C",tab:{cards:"\uB2E8\uC5B4\uD45C \uCE74\uB4DC",tables:"\uB2E8\uC5B4\uD45C"},cardsEmpty:"\uC544\uC9C1 \uB9CC\uB4E0 \uB2E8\uC5B4\uD45C \uCE74\uB4DC\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4.",addCard:"\uB2E8\uC5B4\uD45C \uCE74\uB4DC \uCD94\uAC00",menu:{publishStore:"\uB9D0\uADC0\uC790\uB8CC\uC2E4\uC5D0 \uC62C\uB9AC\uAE30",unpublishStore:"\uB9D0\uADC0\uC790\uB8CC\uC2E4\uC5D0\uC11C \uB0B4\uB9AC\uAE30"},newBadge:"\uC0C8\uB85C \uB9CC\uB4E0 \uD45C",publishedBadge:"\uBC1C\uD589\uB428",sharedBadge:"\uACF5\uC720 \uC911"},b2={title:"\uC8FC\uC694 \uB2E8\uC5B4",empty:"\uCD94\uCD9C\uB41C \uC8FC\uC694 \uB2E8\uC5B4\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4."},y2={defaultName:"\uB2E8\uC5B4 \uD45C",title:"\uB2E8\uC5B4 \uD45C \uB9CC\uB4E4\uAE30",subtitle:"\uCE78\uC744 \uC124\uC815\uD558\uACE0 \uB2E8\uC5B4\uB97C \uCD94\uAC00\uD558\uC5EC \uD45C\uB97C \uB9CC\uB4ED\uB2C8\uB2E4.",filterTitle:"\uD45C \uC124\uC815",filter:{composition:"\uAD6C\uC131",image:"\uC774\uBBF8\uC9C0",word:"\uB2E8\uC5B4",standardPron:"\uD45C\uC900 \uBC1C\uC74C",colloquialPron:"\uAD6C\uC5B4\uCCB4 \uBC1C\uC74C",paperOrientation:"\uC6A9\uC9C0 \uBC29\uD5A5",landscape:"\uAC00\uB85C",portrait:"\uC138\uB85C",columns:"\uCE78 \uC218",column:"{{count}}\uCE78",itemsPerPageWord:"\uD398\uC774\uC9C0\uB2F9 \uB2E8\uC5B4 \uC218",itemsPerPagePair:"\uD398\uC774\uC9C0\uB2F9 \uB300\uB9BD\uC30D \uC218",itemsPerPageOption:"{{count}}\uAC1C",pageIndicator:"{{current}} / {{total}}",pageNumber:"\uD398\uC774\uC9C0 \uBC88\uD638",pageNumberLeft:"\uC67C\uCABD",pageNumberCenter:"\uC911\uC559",pageNumberRight:"\uC624\uB978\uCABD",border:"\uC678\uACFD\uC120",cutLine:"\uC808\uCDE8\uC120",show:"\uD45C\uC2DC",hide:"\uBBF8\uD45C\uC2DC",dotted:"\uC810\uC120",corner:"\uCF54\uB108"},addWord:"\uCD94\uAC00\uD558\uAE30",wordInfo:"{{word}} \uB0B1\uB9D0 \uC815\uBCF4",emptyItems:"\uB2E8\uC5B4\uB97C 1\uAC1C \uC774\uC0C1 \uCD94\uAC00\uD574\uC8FC\uC138\uC694.",load:"\uBD88\uB7EC\uC624\uAE30",openNewWindow:"\uC0C8 \uCC3D\uC73C\uB85C \uBCF4\uAE30",saveButton:"\uC800\uC7A5\uD558\uAE30",saveAsNewButton:"\uB2E4\uB978 \uC774\uB984\uC73C\uB85C \uC800\uC7A5",print:"\uC778\uC1C4\uD558\uAE30",popupBlocked:"\uD31D\uC5C5\uC774 \uCC28\uB2E8\uB418\uC5C8\uC2B5\uB2C8\uB2E4. \uBE0C\uB77C\uC6B0\uC800 \uC124\uC815\uC5D0\uC11C \uD31D\uC5C5\uC744 \uD5C8\uC6A9\uD574 \uC8FC\uC138\uC694.",printFileNameSingle:"\uB2E8\uC5B4\uD45C",printFileNamePair:"\uB300\uB9BD\uC30D\uD45C",save:{title:"\uB2E8\uC5B4\uD45C \uC800\uC7A5\uD558\uAE30",nameLabel:"\uC774\uB984",desc:"\uC800\uC7A5\uD560 \uB2E8\uC5B4 \uD45C\uC758 \uC774\uB984\uC744 \uC785\uB825\uD558\uC138\uC694.",placeholder:"\uC774 \uB2E8\uC5B4\uD45C\uC5D0 \uB300\uD55C \uC81C\uBAA9\uC744 \uC785\uB825\uD558\uC138\uC694.",descriptionLabel:"\uC124\uBA85",descriptionPlaceholder:"\uC774 \uB2E8\uC5B4\uD45C\uC5D0 \uB300\uD55C \uC124\uBA85\uC744 \uC785\uB825\uD558\uC138\uC694.",duplicateName:"\uC774\uBBF8 \uC0AC\uC6A9 \uC911\uC778 \uC774\uB984\uC785\uB2C8\uB2E4.",nameRequired:"\uD45C \uC774\uB984\uC744 \uC785\uB825\uD574 \uC8FC\uC138\uC694.",autoFillHint:" (Tab \uB610\uB294 space \uC785\uB825\uC2DC \uC790\uB3D9 \uC785\uB825)"},loadTable:{title:"\uC800\uC7A5\uB41C \uB2E8\uC5B4 \uD45C \uBD88\uB7EC\uC624\uAE30",empty:"\uC800\uC7A5\uB41C \uB2E8\uC5B4 \uD45C\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4.",loadButton:"\uBD88\uB7EC\uC624\uAE30",itemCount:"{{count}}\uAC1C",deleteAriaLabel:"\uC0AD\uC81C",sort:{newest:"\uCD5C\uC2E0\uC21C",oldest:"\uC624\uB798\uB41C\uC21C",name:"\uC774\uB984\uC21C",count:"\uB2E8\uC5B4 \uC218"},view:{grid:"\uD45C\uB85C \uBCF4\uAE30",list:"\uB9AC\uC2A4\uD2B8\uB85C \uBCF4\uAE30"}},groupDeleteMessage:"\uADF8\uB8F9 \uB0B4 \uB2E8\uC5B4\uD45C\uB294 '\uADF8\uB8F9 \uC5C6\uC74C'\uC73C\uB85C \uC774\uB3D9\uD569\uB2C8\uB2E4.",groupNamePlaceholder:"\uADF8\uB8F9 \uC774\uB984",store:{badge:"\uB9D0\uADC0\uC790\uB8CC\uC2E4"},card:{sub:"\uB2E8\uC5B4\uD45C \uCE74\uB4DC",empty:"\uC774 \uCE74\uB4DC\uC5D0 \uB2E8\uC5B4\uD45C\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4."},toast:{renameError:"\uC774\uB984 \uBCC0\uACBD\uC5D0 \uC2E4\uD328\uD588\uC2B5\uB2C8\uB2E4",saveError:"\uC800\uC7A5\uC5D0 \uC2E4\uD328\uD588\uC2B5\uB2C8\uB2E4",deleteError:"\uC0AD\uC81C\uC5D0 \uC2E4\uD328\uD588\uC2B5\uB2C8\uB2E4",duplicateError:"\uBCF5\uC81C\uC5D0 \uC2E4\uD328\uD588\uC2B5\uB2C8\uB2E4",saveSuccess:"\uB2E8\uC5B4\uD45C\uAC00 \uC800\uC7A5\uB418\uC5C8\uC2B5\uB2C8\uB2E4."},scoring:{o:"{{word}} \uB9DE\uC74C",triangle:"{{word}} \uC560\uB9E4",x:"{{word}} \uD2C0\uB9BC",button:"\uCC44\uC810\uD558\uAE30",pickTitle:"\uB204\uAD6C\uB97C \uCC44\uC810\uD560\uAE4C\uC694?",pickSubtitle:"\u2018{{name}}\u2019 \uD45C\uB85C \uD6C8\uB828\uD55C \uACE0\uAC1D\uC744 \uACE0\uB974\uC138\uC694.",pickSearch:"\uC774\uB984 \uB610\uB294 \uC804\uD654\uBC88\uD638\uB85C \uCC3E\uAE30",pickEmpty:"\uB4F1\uB85D\uB41C \uACE0\uAC1D\uC774 \uC5C6\uC2B5\uB2C8\uB2E4.",pickNoMatch:"\uCC3E\uB294 \uACE0\uAC1D\uC774 \uC5C6\uC2B5\uB2C8\uB2E4.",pickAgain:"\uACE0\uAC1D \uB2E4\uC2DC \uACE0\uB974\uAE30",scoringFor:"{{name}} \uB2D8 \uCC44\uC810 \uC911",none:"\uCE78\uC744 \uB20C\uB7EC \u25CB \xB7 \u25B3 \xB7 \u2715 \uB97C \uB9E4\uAE30\uC138\uC694.",tally:"{{marked}}\uCE78 \uCC44\uC810 \xB7 \u25CB {{o}} \xB7 \u25B3 {{triangle}} \xB7 \u2715 {{x}} \xB7 \uC815\uB2F5\uB960 {{rate}}%",save:"\uCC44\uC810 \uC800\uC7A5",saved:"{{name}} \uB2D8\uC758 \uCC44\uC810 {{count}}\uCE78\uC744 \uC800\uC7A5\uD588\uC2B5\uB2C8\uB2E4.",reviewTitle:"\uBCF5\uC2B5\uD45C\uB97C \uB9CC\uB4E4\uAE4C\uC694?",reviewMessage:"{{name}} \uB2D8\uC774 \uD2C0\uB9AC\uAC70\uB098 \uC560\uB9E4\uD588\uB358 {{count}}\uCE78\uC73C\uB85C \uC0C8 \uD45C\uB97C \uB9CC\uB4ED\uB2C8\uB2E4. \uB9DE\uD78C \uCE78\uC740 \uBE60\uC9D1\uB2C8\uB2E4.",reviewConfirm:"\uBCF5\uC2B5\uD45C \uB9CC\uB4E4\uAE30",reviewDescription:"\u2018{{name}}\u2019 \uCC44\uC810\uC5D0\uC11C \uD2C0\uB9AC\uAC70\uB098 \uC560\uB9E4\uD588\uB358 {{count}}\uCE78\uC744 \uBAA8\uC740 \uD45C\uC785\uB2C8\uB2E4.",reviewCreated:"\u2018{{name}}\u2019\uC744(\uB97C) \uB9CC\uB4E4\uC5C8\uC2B5\uB2C8\uB2E4 \u2014 {{count}}\uCE78.",discardTitle:"\uB9E4\uAE34 \uCC44\uC810\uC744 \uBC84\uB9B4\uAE4C\uC694?",discardMessage:"{{count}}\uCE78\uC744 \uB9E4\uACBC\uC9C0\uB9CC \uC544\uC9C1 \uC800\uC7A5\uD558\uC9C0 \uC54A\uC558\uC2B5\uB2C8\uB2E4. \uB098\uAC00\uBA74 \uC0AC\uB77C\uC9D1\uB2C8\uB2E4.",discardConfirm:"\uBC84\uB9AC\uACE0 \uB098\uAC00\uAE30"}},v2={editBanner:{message:"\uC800\uC7A5\uD558\uBA74 \uC9C0\uAE08 \uC218\uC815 \uC911\uC778 \uB2E8\uC5B4\uD45C\uAC00 \uAC31\uC2E0\uB429\uB2C8\uB2E4."},filterTitle:"\uB2E8\uC5B4 \uAC80\uC0C9 \uC124\uC815",filter:{positionAny:"\uBB34\uAD00",positionHead:"\uC5B4\uB450",positionMid:"\uC5B4\uC911",positionTail:"\uC5B4\uB9D0",difficulty:"\uB4F1\uAE09",grade:"{{n}}\uB4F1\uAE09",syllables:"\uC74C\uC808 \uC218",syllable:"{{n}}\uC74C\uC808",syllable5plus:"5\uC74C\uC808 \uC774\uC0C1",partOfSpeech:"\uD488\uC0AC",pos:{noun:"\uCCB4\uC5B8(\uBA85\uC0AC, \uC218\uC0AC)",verb:"\uC6A9\uC5B8(\uB3D9\uC0AC, \uD615\uC6A9\uC0AC)",modifier:"\uC218\uC2DD\uC5B8(\uBD80\uC0AC, \uAD00\uD615\uC0AC)"},wordType:"\uC720\uD615",type:{native:"\uACE0\uC720\uC5B4",sino:"\uD55C\uC790\uC5B4",foreign:"\uC678\uB798\uC5B4",mixed:"\uD63C\uC885\uC5B4"},exclude:"\uC81C\uC678",excludeNoImage:"\uC774\uBBF8\uC9C0 \uC5C6\uC74C"},searchButton:"\uAC80\uC0C9\uD558\uAE30",resultUnit:"\uB2E8\uC5B4",remaining:"{{count}}\uAC1C \uB0A8\uC74C",resultDisc:"\uC6D0\uD558\uB294 {{unit}} \uC120\uD0DD\uD558\uC138\uC694. {{max}}\uAC1C\uAE4C\uC9C0 \uC120\uD0DD\uD560 \uC218 \uC788\uC2B5\uB2C8\uB2E4. ({{selected}}/{{max}})",resultTitlePrefix:"\uCD1D ",resultTitleSuffix:"\uAC1C\uC758 {{unit}} \uAC80\uC0C9\uB418\uC5C8\uC2B5\uB2C8\uB2E4.",emptyResult:"\uAC80\uC0C9 \uACB0\uACFC\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4.",groupCount:"{{count}}\uAC1C",sort:{aria:"\uC815\uB82C",match:"\uC2DC\uC791 \uC6B0\uC120",ganada:"\uAC00\uB098\uB2E4\uC21C \u2191",ganadaDesc:"\uAC00\uB098\uB2E4\uC21C \u2193",syllable:"\uC74C\uC808 \uC218 \u2191",syllableDesc:"\uC74C\uC808 \uC218 \u2193",grade:"\uB4F1\uAE09\uC21C \u2191",gradeDesc:"\uB4F1\uAE09\uC21C \u2193"},pageSize:"{{count}}\uAC1C\uC529 \uBCF4\uAE30",pageSizeAria:"\uD398\uC774\uC9C0 \uD06C\uAE30",popup:{title:"{{n}}\uBC88 \uCE78\uC5D0 \uB123\uC744 \uB2E8\uC5B4\uB97C \uC120\uD0DD\uD558\uC138\uC694"}},x2={clearAllSelection:"\uBAA8\uB450 \uC120\uD0DD \uD574\uC81C",divLine:"\uB300\uB9BD\uC120",removePair:"\uB300\uB9BD\uC30D \uBE7C\uAE30",removeWord:"\uB2E8\uC5B4 \uBE7C\uAE30"},_2={title:"\uC8FC\uC81C\uBCC4 \uB4E3\uAE30",subtitle:"\uC8FC\uC81C\uB97C \uC120\uD0DD\uD558\uACE0 \uB4E3\uAE30 \uD6C8\uB828\uC744 \uC2DC\uC791\uD558\uC138\uC694.",noiseTitle:"\uC18C\uC74C \uD558 \uBB38\uC7A5\uB4E3\uAE30",shortStoryTitle:"\uC9E7\uC740 \uC774\uC57C\uAE30 \uB4E3\uAE30",FOOD:"\uC74C\uC2DD",HLTH:"\uAC74\uAC15",WETH:"\uB0A0\uC528",PRSN:"\uC778\uBB3C",KRCT:"\uD55C\uAD6D\uBB38\uD654",STRY:"\uC774\uC57C\uAE30",LOCA:"\uC9C0\uC5ED",SOAR:"\uC0AC\uD68C\uC640 \uC608\uC220",NTSC:"\uC790\uC5F0\uACFC \uACFC\uD559",SPRT:"\uC2A4\uD3EC\uCE20",sub:{TRKRFD:"\uD55C\uAD6D \uC804\uD1B5\uC74C\uC2DD",MDKRFD:"\uD55C\uAD6D \uD604\uB300\uC74C\uC2DD",WRLDFD:"\uC138\uACC4\uC758 \uC74C\uC2DD",MTRFRT:"\uC2DD\uC7AC\uB8CC\uC640 \uACFC\uC77C",GEFDKL:"\uC74C\uC2DD \uC0C1\uC2DD",HTETHB:"\uAC74\uAC15\uD55C \uC2DD\uC2B5\uAD00",DISILL:"\uBCD1\uACFC \uC9C8\uD658",EXCISE:"\uC6B4\uB3D9",GEHTKL:"\uAC74\uAC15\uC0C1\uC2DD",GESSKL:"\uACC4\uC808\uC0C1\uC2DD",SNWRAN:"\uB208\uACFC \uBE44",WTHFCT:"\uC77C\uAE30\uC608\uBCF4",GEWTKL:"\uB0A0\uC528\uC0C1\uC2DD",JODYPS:"\uC870\uC120\uC2DC\uB300",MDKRPS:"\uD55C\uAD6D \uADFC\uD604\uB300",THKDPS:"\uC0BC\uAD6D\uC2DC\uB300",WRLART:"\uC138\uACC4\uC758 \uC608\uC220\uAC00",WRLPSN:"\uC138\uACC4\uC758 \uC778\uBB3C",KRLANG:"\uC6B0\uB9AC\uB9D0",TRPLCT:"\uC804\uD1B5\uB180\uC774",HERITG:"\uBB38\uD654\uC7AC",EVTFES:"\uD589\uC0AC\uC640 \uCD95\uC81C",GECTKL:"\uC0C1\uC2DD",FRYTAL:"\uB3D9\uD654",AMZING:"\uC2E0\uAE30\uD55C \uC774\uC57C\uAE30",DAYSTR:"\uC77C\uC0C1 \uC18D \uC774\uC57C\uAE30",KRLDMK:"\uD55C\uAD6D\uC758 \uBA85\uC18C",SELNMK:"\uC11C\uC6B8\uC758 \uBA85\uC18C",WRDTRB:"\uC138\uACC4\uC5EC\uD589",NAVIGT:"\uAE38 \uCC3E\uAE30",KRSOCI:"\uD55C\uAD6D",ECONEW:"\uACBD\uC81C\uC640 \uB274\uC2A4",GENART:"\uC608\uC220",GELFKL:"\uC0DD\uD65C \uC0C1\uC2DD",ANIMAL:"\uB3D9\uBB3C",PLANTS:"\uC2DD\uBB3C",ETHPLT:"\uC9C0\uAD6C",TOLELC:"\uB3C4\uAD6C\uC640 \uC804\uC790\uC81C\uD488",GESCKL:"\uACFC\uD559\uC0C1\uC2DD",INVDSP:"\uAC1C\uC778\uACBD\uAE30",MARART:"\uACA9\uD22C\uAE30",TEAMSP:"\uB2E8\uCCB4\uACBD\uAE30",FOOTBL:"\uCD95\uAD6C",GESPKL:"\uC2A4\uD3EC\uCE20 \uC0C1\uC2DD"}},w2={maxUses:"\uCD5C\uB300 \uC0AC\uC6A9 \uD69F\uC218 (\uBE44\uC6CC\uB450\uBA74 \uBB34\uC81C\uD55C)",redirect:"\uC774\uB3D9\uD560 \uD398\uC774\uC9C0 URL (\uBE44\uC6CC\uB450\uBA74 \uC571 \uBA54\uC778)",creating:"\uC0DD\uC131 \uC911\u2026",create:"\uB9C1\uD06C \uC0DD\uC131",created:"\u2713 \uB9C1\uD06C\uAC00 \uC0DD\uC131\uB418\uC5C8\uC2B5\uB2C8\uB2E4",copied:"\uBCF5\uC0AC\uB428!",copy:"\uBCF5\uC0AC",loading:"\uBD88\uB7EC\uC624\uB294 \uC911\u2026",empty:"\uC0DD\uC131\uB41C \uB9C1\uD06C\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4.",uses:"{{count}}\uD68C \uC0AC\uC6A9",expiresAt:"\uB9CC\uB8CC: {{date}}",createdAt:"\uC0DD\uC131: {{date}}",confirmDelete:"\uC0AD\uC81C\uD560\uAE4C\uC694?",deactivate:"\uBE44\uD65C\uC131\uD654",delete:"\uC0AD\uC81C",status:{active:"\uC720\uD6A8",expired:"\uB9CC\uB8CC",inactive:"\uBE44\uD65C\uC131"}},k2={passwordPlaceholder:"\uBE44\uBC00\uBC88\uD638 \uC785\uB825"},A2={subtitle:"\uC8FC\uC81C\uB97C \uC120\uD0DD\uD558\uC5EC \uB4E3\uAE30 \uC5F0\uC2B5\uC744 \uC9C4\uD589\uD558\uC138\uC694."},N2={direction:{left:"\uC88C",right:"\uC6B0",label:"\uBC29\uD5A5"},wornDate:"\uCC29\uC6A9\uC77C",deviceType:"\uC885\uB958",brand:"\uBE0C\uB79C\uB4DC",fitType:"\uCC29\uC6A9\uD615\uD0DC",productName:"\uC81C\uD488\uBA85",validationError:{brandAndProduct:"\uBE0C\uB79C\uB4DC\uC640 \uC81C\uD488\uBA85\uC744 \uC785\uB825\uD574 \uC8FC\uC138\uC694."},addNew:"\uC0C8 \uAE30\uAE30 \uCD94\uAC00",selectFromList:"\uBAA9\uB85D\uC5D0\uC11C \uC120\uD0DD",removeDevice:"\uCC29\uC6A9 \uD574\uC81C"},B2={stat:{totalCustomers:"\uCD1D \uACE0\uAC1D",monthlyVisits:"\uC774\uB2EC \uCD1D \uBC29\uBB38"},chart:{visitDetail:"\uC0C1\uC138 \uBC29\uBB38 \uD604\uD669",trainingDetail:"\uC0C1\uC138 \uD6C8\uB828 \uD604\uD669",weekly:"\uC8FC\uBCC4",daily:"\uC77C\uBCC4",periodMonth:"\uC6D4",periodWeek:"\uC8FC",weeklyPrefix:"\uC8FC\uAC04",monthlyPrefix:"\uC6D4\uAC04",visit:"\uBC29\uBB38",reservation:"\uC608\uC57D",trainingDone:"\uD6C8\uB828 \uC644\uB8CC",trainingInProgress:"\uD6C8\uB828 \uC911",weekRange:"{{start}}~{{end}}",week:"{{n}}\uC8FC"},subscriptionStatus:{active:"{{pct}}% \uD65C\uC131",expired:"{{pct}}% \uB9CC\uB8CC",unused:"{{pct}}% \uBBF8\uC0AC\uC6A9"}},D2={editBanner:{message:"\uC800\uC7A5\uD558\uBA74 \uC9C0\uAE08 \uC218\uC815 \uC911\uC778 \uB300\uB9BD\uC30D\uD45C\uAC00 \uAC31\uC2E0\uB429\uB2C8\uB2E4."},phonemeSelect:{title:"\uC74C\uC18C \uC120\uD0DD",vs:"\uB300"},caution:"\uC720\uC758\uC0AC\uD56D",mode:{include:"\uC74C\uC18C \uD3EC\uD568",pick:"\uC74C\uC18C \uB300\uB9BD",contrast:"\uC74C\uC18C \uB300\uB9BD \uC9C0\uC815",infoTitle:"\uB300\uB9BD \uBC29\uC2DD",infoInclude:"\uC74C\uC18C \uD3EC\uD568 \u2014 \uC120\uD0DD\uD55C \uC74C\uC18C\uAC00 \uBAA8\uB450 \uB4E4\uC5B4\uAC04 \uB2E8\uC5B4\uC640 \uADF8 \uB300\uB9BD\uC30D\uC744 \uCC3E\uC544\uC694.",infoPick:"\uC74C\uC18C \uB300\uB9BD \u2014 \uC120\uD0DD\uD55C \uC74C\uC18C\uAC00 \uB300\uB9BD\uC30D \uB450 \uB2E8\uC5B4\uC758 \uC2E4\uC81C \uCC28\uC774\uC810\uC77C \uB54C\uB9CC \uB9E4\uCE6D\uB3FC\uC694.",infoContrast:"\uC74C\uC18C \uB300\uB9BD \uC9C0\uC815 \u2014 \uAE30\uC900 \uB2E8\uC5B4\uC640 \uB300\uB9BD \uB2E8\uC5B4\uC758 \uC74C\uC18C\uB97C \uAC01\uAC01 \uC9C1\uC811 \uC120\uD0DD\uD574 \uB300\uB9BD\uC30D\uC744 \uCC3E\uC544\uC694."},count:"{{n}}\uAC1C",input:{char:"\uAE00\uC790 \uC120\uD0DD",pron:"\uBC1C\uC74C \uC120\uD0DD",infoTitle:"\uC785\uB825 \uBC29\uC2DD",infoChar:"\uAE00\uC790 \uC120\uD0DD \u2014 \uC120\uD0DD\uD55C \uC74C\uC18C\uB85C \uB2E8\uC5B4(\uAE00\uC790 \uAE30\uC900)\uB97C \uCC3E\uC740 \uD6C4, \uB2E8\uC5B4\uC758 \uD45C\uC900 \uBC1C\uC74C \uB300\uB9BD\uC30D\uC744 \uCC3E\uC2B5\uB2C8\uB2E4.",infoPron:"\uBC1C\uC74C \uC120\uD0DD \u2014 \uC120\uD0DD\uD55C \uC74C\uC18C\uB85C \uD45C\uC900 \uBC1C\uC74C \uB300\uB9BD\uC30D\uC744 \uCC3E\uC2B5\uB2C8\uB2E4."},phonemeN:"{{n}}\uBC88 \uC74C\uC808",phonemeSingleLabel:"\uC74C\uC808",phonemeContrastSingleLabel:"\uB300\uB9BD \uC74C\uC808",ordinals:["\uCCAB\uBC88\uC9F8","\uB450\uBC88\uC9F8","\uC138\uBC88\uC9F8","\uB124\uBC88\uC9F8"],phonemeOrdinalLabel:"{{ordinal}} \uC74C\uC808",phonemeContrastOrdinalLabel:"\uB300\uB9BD {{ordinal}} \uC74C\uC808",composition:"\uC815\uB2F5 \uB2E8\uC5B4 \uAD6C\uC131",syllableCount:"\uC74C\uC808 \uC218",syllableN:"{{n}}\uC74C\uC808",syllableNPlus:"{{n}}\uC74C\uC808 \uC774\uC0C1",onset:"\uCD08\uC131",vowel:"\uBAA8\uC74C",coda:"\uC885\uC131",filter:{searchOptionsTitle:"\uB300\uB9BD \uC124\uC815",searchModeLabel:"\uB300\uB9BD \uBC29\uC2DD",countLabel:"\uC785\uB825 \uC74C\uC808 \uAC2F\uC218",inputModeLabel:"\uC785\uB825 \uBC29\uC2DD",phonemeOrder:"\uC785\uB825 \uC74C\uC808 \uC704\uCE58",phonemeOrderInfo:["\uC77C\uCE58: \uB300\uB9BD\uC30D\uC774 \uC815\uD655\uD788 \uAC19\uC740 \uC704\uCE58(\uC74C\uC808)\uC5D0\uC11C\uB9CC \uCC28\uC774 \uB098\uC57C \uB9E4\uCE6D\uB3FC\uC694.","\uBB34\uAD00: \uCC28\uC774 \uB098\uB294 \uC704\uCE58\uB294 \uC0C1\uAD00\uC5C6\uC774 \uB9E4\uCE6D\uB3FC\uC694."],orderAny:"\uBB34\uAD00",orderMatch:"\uC77C\uCE58",difficultyInfo:"\uAD6D\uB9BD\uAD6D\uC5B4\uC6D0\uC758 \uAE30\uCD08 \uC5B4\uD718 \uB4F1\uAE09\uC774 \uACB0\uACFC\uC5D0 \uBC18\uC601\uB429\uB2C8\uB2E4.",selectLabel:"\uC120\uD0DD",onlyHasImage:"\uC774\uBBF8\uC9C0 \uC788\uB294 \uB2E8\uC5B4\uB9CC",onlySameStructure:"\uC74C\uC18C \uAD6C\uC870 \uAC19\uC740 \uB2E8\uC5B4\uB9CC"},searchLabel:{error:"\uB370\uC774\uD130 \uBD88\uB7EC\uC624\uAE30 \uC2E4\uD328",loading:"\uBD88\uB7EC\uC624\uB294 \uC911\u2026"},confirmMessage:"\uC120\uD0DD\uD55C {{unit}} {{count}}\uAC1C\uB97C \uD3EC\uD568\uD55C \uB2E8\uC5B4 \uD45C \uC815\uBCF4\uAC00 \uC0AC\uB77C\uC9D1\uB2C8\uB2E4.",resetOptions:"\uAC80\uC0C9 \uC635\uC158 \uCD08\uAE30\uD654",phonemeContrast:"\uB300\uB9BD {{n}}\uBC88 \uC74C\uC808",infoNotes:["\uBBF8\uB9AC\uBCF4\uAE30 \uAE00\uC790\uB294 \uC120\uD0DD\uD55C \uC74C\uC18C\uC758 \uC870\uD569 \uC608\uC2DC\uC785\uB2C8\uB2E4. \uC2E4\uC81C \uAC80\uC0C9\uC740 \uD574\uB2F9 \uC74C\uC18C\uAC00 \uD3EC\uD568\uB41C \uBAA8\uB4E0 \uB2E8\uC5B4\uB97C \uB300\uC0C1\uC73C\uB85C \uD569\uB2C8\uB2E4.","\uCD08\uC131 '\u3147'\uC740 \uC120\uD0DD\uD560 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4. \uB2E8\uC5B4 \uC55E\uC5D0 \uC624\uB294 \u3147\uC740 \uC2E4\uC9C8\uC801\uC73C\uB85C \uBB34\uC74C\uC774\uC5B4\uC11C \uB300\uB9BD\uC30D \uC131\uB9BD\uC5D0 \uC601\uD5A5\uC744 \uC8FC\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4.","\uCD08\uC131\uACFC \uC885\uC131\uB9CC \uC120\uD0DD\uD558\uBA74 \uBAA8\uC74C\uC740 '\u314F'\uB85C \uC790\uB3D9 \uD45C\uC2DC\uB429\uB2C8\uB2E4.","\uC74C\uC18C \uAC1C\uC218\uB97C \uB298\uB9AC\uBA74 \uAC01 \uC74C\uC18C \uC0AC\uC774\uC758 \uB300\uB9BD\uC30D\uC744 \uAC80\uC0C9\uD569\uB2C8\uB2E4."]},S2={sentenceTyping:{roundCount:"{{rounds}}\uBB38\uC81C \xB7 \uBB38\uC81C\uB2F9 {{timeLimit}}\uCD08"},wordDefense:{me:"\uB098"},dictation:{title:"\uBC1B\uC544\uC4F0\uAE30",desc:"\uBB38\uC7A5\uC744 \uB4E3\uACE0 \uC815\uD655\uD788 \uBC1B\uC544\uC801\uB294 \uC5F0\uC2B5\uC785\uB2C8\uB2E4.",comingSoon:"\uAD6C\uD604 \uC608\uC815: \uC74C\uC131 \uC7AC\uC0DD, \uC785\uB825 \uD544\uB4DC, \uC815\uB2F5 \uBE44\uAD50"},result:{heading:"{{number}}\uB2E8\uACC4 \uD574\uB2F5",retry:"\uB2E4\uC2DC \uD480\uAE30"},common:{accuracy:"{{pct}}% \uC815\uD655\uB3C4"},soundMatch:{title:"\uC18C\uB9AC \uB9E4\uCE6D",desc:"\uAC19\uC740 \uC18C\uB9AC\uB97C \uAC00\uC9C4 \uB2E8\uC5B4 \uB610\uB294 \uBB38\uC7A5\uC744 \uBE60\uB974\uAC8C \uB9E4\uCE6D\uD558\uB294 \uAC8C\uC784\uC785\uB2C8\uB2E4.",comingSoon:"\uAD6C\uD604 \uC608\uC815: \uD50C\uB808\uC774 \uBC84\uD2BC, \uD0C0\uC774\uBA38, \uC810\uC218 \uC9D1\uACC4"},orderSequence:{title:"\uBB38\uC7A5 \uC21C\uC11C\uD654",desc:"\uD769\uC5B4\uC9C4 \uBB38\uC7A5 \uC870\uAC01\uC744 \uC62C\uBC14\uB978 \uC21C\uC11C\uB85C \uBC30\uC5F4\uD558\uB294 \uD6C8\uB828\uC785\uB2C8\uB2E4.",comingSoon:"\uAD6C\uD604 \uC608\uC815: \uBB38\uC7A5 \uC138\uD2B8, \uC21C\uC11C \uD655\uC778 \uC778\uD130\uD398\uC774\uC2A4"},speedListen:{title:"\uC18D\uB3C4 \uB4E3\uAE30",desc:"\uC2DC\uAC04 \uC81C\uD55C \uB0B4\uC5D0 \uBB38\uC7A5\uC758 \uB2E8\uC5B4 \uC218\uB97C \uB9DE\uCD94\uB294 \uB3C4\uC804\uD615 \uAC8C\uC784\uC785\uB2C8\uB2E4.",comingSoon:"\uAD6C\uD604 \uC608\uC815: \uC81C\uD55C\uC2DC\uAC04, \uC810\uC218\uD310"},noiseChallenge:{title:"\uC18C\uC74C \uCC4C\uB9B0\uC9C0",desc:"\uBC30\uACBD \uC18C\uC74C \uC18D\uC5D0\uC11C \uBB38\uC7A5\uC744 \uBD84\uBCC4\uD558\uB294 \uC5F0\uC2B5\uC785\uB2C8\uB2E4.",comingSoon:"\uAD6C\uD604 \uC608\uC815: \uB2E4\uC591\uD55C \uC18C\uC74C \uB808\uBCA8, \uC810\uC218 \uC9D1\uACC4"},fastListen:{title:"\uBE60\uB978 \uB4E3\uAE30",desc:"\uC9E7\uC740 \uBB38\uC7A5\uC744 \uBE60\uB974\uAC8C \uB4E4\uB824\uC8FC\uACE0 \uD575\uC2EC \uB2E8\uC5B4\uB97C \uC120\uD0DD\uD558\uB294 \uAC8C\uC784\uC785\uB2C8\uB2E4.",comingSoon:"\uAD6C\uD604 \uC608\uC815: \uB09C\uC774\uB3C4\uBCC4 \uC18D\uB3C4, \uD0C0\uC774\uBA38"},shadowing:{title:"\uC250\uB3C4\uC789",desc:"\uBB38\uC7A5\uC744 \uB530\uB77C \uB9D0\uD558\uBA70 \uBC1C\uC74C\uACFC \uC5B5\uC591\uC744 \uC5F0\uC2B5\uD558\uB294 \uBAA8\uB4DC\uC785\uB2C8\uB2E4.",comingSoon:"\uAD6C\uD604 \uC608\uC815: \uC7AC\uC0DD, \uB179\uC74C, \uBE44\uAD50 \uD53C\uB4DC\uBC31"},phonemeHunt:{title:"\uC74C\uC6B4 \uCC3E\uAE30",desc:"\uD2B9\uC815 \uC74C\uC6B4(\uBC1C\uC74C)\uC744 \uD3EC\uD568\uD55C \uB2E8\uC5B4\uB97C \uCC3E\uC544\uB0B4\uB294 \uAC8C\uC784\uC785\uB2C8\uB2E4.",comingSoon:"\uAD6C\uD604 \uC608\uC815: \uC74C\uC6B4 \uD544\uD130, \uD78C\uD2B8 \uAE30\uB2A5"}},j2={lead:`\uC544\uC774\uD574\uBE0C\uB294 \uC18C\uB9AC\uB97C \uD1B5\uD574
|
|
828
828
|
\uC2E0\uB8B0\uB97C \uC313\uACE0
|
|
829
|
-
\uD68C\uBCF5\uC744 \uB3D5\uC2B5\uB2C8\uB2E4.`,site:{title:"\uC0AC\uC774\uD2B8",malgwi:"\uB9D0\uADC0",soundDirection:"\uC18C\uB9AC\uBC29\uD5A5\uC131\uC2DC\uC2A4\uD15C",vrSoundDirection:"VR\uC18C\uB9AC\uBC29\uD5A5\uC131\uC2DC\uC2A4\uD15C",hearingTest:"\uCCAD\uB825\uD14C\uC2A4\uD2B8 \uD504\uB85C"},sns:{title:"SNS",naverBlog:"\uB124\uC774\uBC84 \uBE14\uB85C\uADF8",kakao:"KAKAO Talk \uC624\uD508\uCC44\uD305"},policy:{title:"\uC815\uCC45",terms:"\uC774\uC6A9\uC57D\uAD00",privacy:"\uAC1C\uC778\uC815\uBCF4 \uCC98\uB9AC\uBC29\uCE68"},ceo:"\uB300\uD45C",address:"\uC8FC\uC18C",support:"\uACE0\uAC1D\uC13C\uD130",ceoName:"\uD55C\uC9C0\uD61C",addressValue:"\uAC15\uC6D0\uB3C4 \uCD98\uCC9C\uC2DC \uC2DC\uCCAD\uAE38 32 \uD574\uCC2C\uBE4C\uB529 3\uCE35 302\uD638"},j2={trainingPhone:{topic:"\uD143\uBC2D\uAC00\uAFB8\uAE30",prev:"\uC774\uC804",next:"\uB2E4\uC74C",speed:"\uBE60\uB974\uAE30 3",noiseType:"\uC640\uAE00\uC640\uAE00",settings:"\uC124\uC815",start:{caption:"\uC544\uB798 \uD50C\uB808\uC774(\u25B6) \uBC84\uD2BC\uC744 \uB20C\uB7EC \uBB38\uC7A5\uC744 \uC798 \uB4E4\uC5B4\uBCF4\uC138\uC694. \uC798 \uB4E4\uC73C\uC2E0 \uB4A4 \uBB38\uC7A5\uC744 \uD655\uC778\uD558\uC138\uC694."},feedback:{caption:"\uC798 \uD0A4\uC6B4 \uBAA8\uC885\uC744 \uD143\uBC2D\uC5D0 \uC2EC\uACE0 \uBE44\uB2D0\uC744 \uC798 \uB36E\uC5B4 \uC90D\uB2C8\uB2E4."},done:{heardWell:"\uC798 \uB4E4\uB9B0 \uBB38\uC7A5",listenAgain:"\uD55C \uBC88 \uB354 \uB4E3\uAE30"}}},E2={timeHM:"{{h}}\uC2DC {{m}}\uBD84",timeH:"{{h}}\uC2DC"},T2={options:"\uD6C8\uB828 \uC635\uC158",difficulty:"\uB09C\uC774\uB3C4",exclude:"\uC81C\uC678",chosung:"\uCD08\uC131",excludeOptions:{none:"\uC5C6\uC74C",noImage:"\uC774\uBBF8\uC9C0 \uC5C6\uC74C"}},M2={answer:"\uC815\uB2F5",distractor:"\uC624\uB2F5"},L2={phaseWordDownload:"\uB2E8\uC5B4 \uB370\uC774\uD130 \uB2E4\uC6B4\uB85C\uB4DC",phaseImageCheck:"\uC774\uBBF8\uC9C0 \uD655\uC778",phasePairAnalysis:"\uB2E8\uC5B4\uC30D \uBD84\uC11D",downloadingCount:"{{n}}\uAC1C \uB2E4\uC6B4\uB85C\uB4DC \uC911",checkingPage:"{{page}}\uD398\uC774\uC9C0 \uBAA9\uB85D \uD655\uC778 \uC911",imageCount:"{{done}} / {{total}}\uAC1C"},$2={clearAriaLabel:"\uC785\uB825\uAC12 \uC9C0\uC6B0\uAE30"},R2={ariaLabel:"\uC120\uD0DD \uD0ED"},P2={ariaLabel:"\uD0ED"},I2={dragPrompt:"\uD30C\uC77C\uC744 \uC774\uACF3\uC5D0 \uB4DC\uB798\uADF8\uD558\uC5EC \uC5C5\uB85C\uB4DC",browseButton:"\uD30C\uC77C \uC120\uD0DD",removeAriaLabel:"{{name}} \uC81C\uAC70"},F2={ariaLabel:"\uC0AC\uC6A9\uC790 \uC544\uBC14\uD0C0"},O2={relativeDay:{today:"\uC624\uB298",yesterday:"\uC5B4\uC81C",daysAgo:"{{n}}\uC77C \uC804"},reason:{notLoggedIn:"\uB85C\uADF8\uC778\uC774 \uD544\uC694\uD569\uB2C8\uB2E4."},list:{title:"\uBC1B\uC740 \uC219\uC81C"},status:{expired:"\uB9CC\uB8CC\uB428",done:"\uC644\uB8CC {{count}}\uD68C \xB7 {{date}}",notDone:"\uBBF8\uC644\uB8CC"}},H2={weekly:{title:"\uC8FC\uAC04 \uD6C8\uB828 \uD604\uD669",daily:"\uC624\uB298\uC758 \uB4E3\uAE30",crossword:"\uAC00\uB85C\uC138\uB85C"},homework:{title:"\uC219\uC81C \uC9C4\uD589\uD604\uD669",totalRate:"\uC804\uCCB4 \uC644\uB8CC\uC728",count:"\uC804\uCCB4",done:"\uC644\uB8CC",remaining:"\uBBF8\uC644\uB8CC"},today:{tooltipTotal:"\uC804\uCCB4",tooltipDone:"\uC644\uB8CC"},filter:{countSuffix:" \uD6C8\uB828"},time:{countLabel:"{{n}}\uD68C \uD6C8\uB828",empty:"\uD6C8\uB828 \uAE30\uB85D\uC774 \uC5C6\uC2B5\uB2C8\uB2E4."},daily:{title:"\uC624\uB298\uC758 \uB4E3\uAE30 \uAE30\uB85D",empty:"\uC644\uB8CC\uD55C \uD68C\uCC28\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4."},crossword:{title:"\uAC00\uB85C\uC138\uB85C\uD034\uC988",empty:"\uC644\uB8CC\uD55C \uB808\uBCA8\uC774 \uC5C6\uC2B5\uB2C8\uB2E4"},visit:{title:"\uBC29\uBB38 \uC5F0\uB3D9 \uAE30\uB85D"},detail:"\uC0C1\uC138\uBCF4\uAE30",trainingType:{LISTEN_IN_NOISE:"\uC18C\uC74C \uD558 \uBB38\uC7A5",SHORT_STORY:"\uC9E7\uC740 \uC774\uC57C\uAE30",LONG_STORY:"\uAE34 \uC774\uC57C\uAE30",ORDERING_SENTENCE:"\uBB38\uC7A5 \uC21C\uC11C\uD654"}},V2={publish:{descPlaceholder:"\uB9D0\uADC0\uC790\uB8CC\uC2E4\uC5D0 \uD45C\uC2DC\uD560 \uD55C \uC904 \uC124\uBA85 (\uC120\uD0DD)"},import:"\uB0B4 \uD6C8\uB828\uC5D0 \uAC00\uC838\uC624\uAE30",publisher:"\uAC8C\uC2DC\uC790",time:{justNow:"\uBC29\uAE08 \uC804",minutesAgo:"{{n}}\uBD84 \uC804",hoursAgo:"{{n}}\uC2DC\uAC04 \uC804",daysAgo:"{{n}}\uC77C \uC804",weeksAgo:"{{n}}\uC8FC \uC804",monthsAgo:"{{n}}\uAC1C\uC6D4 \uC804",yearsAgo:"{{n}}\uB144 \uC804"},badge:{shared:"\uB9D0\uADC0\uC790\uB8CC\uC2E4"}},z2={manage:{unit:"\uAC74"}},W2={cancelLabel:"\uCDE8\uC18C"},q2={steps:"\uC9C4\uD589 \uB2E8\uACC4 {{current}} / {{total}}"},U2={panelTitle:"\uD6C8\uB828 \uC624\uB2F5",viewItems:"\uBB38\uD56D",viewTypes:"\uC720\uD615",colPending:"\uB0A8\uC740 \uAC83",colTrend:"\uBCC0\uD654",colRuns:"\uD310",unitItem:"\uAC1C",skippedOnly:"\uC61B \uAE30\uB85D {{n}}\uAC74\uC740 \uBB34\uC5C7\uC744 \uD47C \uAC83\uC778\uC9C0 \uC548 \uB0A8\uC544 \uC788\uC5B4 \uC148\uC5D0\uC11C \uBE90\uC2B5\uB2C8\uB2E4.",summaryLabel:"\uC313\uC778 \uAE30\uB85D",summaryValue:"{{items}}\uBB38\uD56D \xB7 \uC544\uC9C1 \uBABB \uC7A1\uC740 \uAC83 {{pending}}\uAC1C",nextLabel:"\uB2E4\uC74C\uC5D0 \uBCFC \uAC83",nextCount:"{{count}}\uAC1C",nextCountCapped:"{{total}}\uAC1C \uC911 {{shown}}\uAC1C",picked:"\u2192 {{what}}",typeClear:"\uB2E4 \uC7A1\uC558\uC5B4\uC694",typePending:"{{total}}\uAC1C \uC911 {{pending}}\uAC1C \uB0A8\uC74C",flat:"\uBCC0\uD654 \uC5C6\uC74C",runs:"{{count}}\uD310",avgDuration:"\uD3C9\uADE0 {{sec}}\uCD08"},G2={resetColumns:"\uCE78 \uB108\uBE44 \uCD08\uAE30\uD654"},K2={panelTitle:"\uB2E8\uC5B4\uD45C \uCC44\uC810",viewWords:"\uB0B1\uB9D0",viewTables:"\uD45C",colLatest:"\uB9C8\uC9C0\uB9C9",colTrend:"\uBCC0\uD654",unitTime:"\uD68C",summaryLabel:"\uC313\uC778 \uCC44\uC810",summaryValue:"{{times}}\uD68C \xB7 \uB0B1\uB9D0 {{words}}\uAC1C",nextLabel:"\uB2E4\uC74C\uC5D0 \uBCFC \uAC83",nextCount:"{{count}}\uAC1C",allClear:"\uC9C0\uB09C\uBC88\uC5D0 \uBAA8\uB450 \uB9DE\uD614\uC2B5\uB2C8\uB2E4.",times:"{{count}}\uD68C",flat:"\uBCC0\uD654 \uC5C6\uC74C",recentLabel:"\uCD5C\uADFC \uCC44\uC810",nextCountCapped:"{{total}}\uAC1C \uC911 {{shown}}\uAC1C"},Z2={ariaLabel:"\uBC30\uB108",dotAriaLabel:"{{count}}\uAC1C \uC911 {{index}}\uBC88\uC9F8 \uBC30\uB108"},Y2={selectYearMonth:"\uC5F0\uC6D4 \uC120\uD0DD",chooseDate:"\uB0A0\uC9DC \uC120\uD0DD"},X2={previewRegion:"\uBCF4\uACE0\uC11C \uBBF8\uB9AC\uBCF4\uAE30 \u2014 \uC88C\uC6B0\uB85C \uAD74\uB824 \uBCFC \uC218 \uC788\uC2B5\uB2C8\uB2E4"},J2={description:"\uC124\uBA85",textbox:"\uBCF8\uBB38",training:"\uD6C8\uB828 \uC548\uB0B4",menu:"\uBA54\uB274"},Q2={devNone:"\uBC1C\uB2EC \uC790\uB8CC \uC5C6\uC74C",place:{labial:"\uC591\uC21C\uC74C",alveolar:"\uCE58\uC870\uC74C",palatal:"\uACBD\uAD6C\uAC1C\uC74C",velar:"\uC5F0\uAD6C\uAC1C\uC74C",glottal:"\uC131\uBB38\uC74C"}},ef={clearSelection:"\uC120\uD0DD \uD574\uC81C"},tf={showResult:"{{type}} \uACB0\uACFC\uBCF4\uAE30"},nf={selected:"\uC120\uD0DD\uB428",remove:"\uC81C\uAC70",exclude:"\uC81C\uC678",nthSelected:"{{n}}\uBC88\uC9F8 \uC120\uD0DD"},af={loading:"\uBD88\uB7EC\uC624\uB294 \uC911\u2026"},rf={common:G0,calendar:K0,passCard:Z0,searchField:Y0,rating:X0,colorPicker:J0,dropdown:Q0,accordion:e2,header:t2,nav:n2,settings:a2,usage:r2,account:o2,help:s2,training:i2,trainingSettings:l2,customers:c2,payment:u2,coupons:d2,visits:p2,company:h2,trainingType:m2,myWordTraining:f2,myWordTable:C2,keyWords:g2,wordTable:b2,wordSearch:y2,wordPrint:v2,topic:x2,accessLinkManager:_2,login:w2,trainingPlanRun:k2,device:A2,manager:N2,wordPairs:B2,game:S2,footer:D2,landing:j2,date:E2,trainingSetPage:T2,wordTrainingPreview:M2,wordData:L2,textField:$2,segmentedControl:R2,tabs:P2,fileUpload:I2,avatar:F2,myHomework:O2,trainingStatus:H2,store:V2,homework:z2,inquiry:W2,progress:q2,trainingMiss:U2,table:G2,wordScore:K2,topBanner:Z2,datePicker:Y2,report:X2,tooltip:J2,phonemeProfile:Q2,bulkBar:ef,debug:tf,badge:nf,loader:af},of={statusFilter:"Filter by status",pageSizeSelect:"Items per page",selectedCount_one:"{{count}} selected",selectedCount_other:"{{count}} selected",moreFor:"More options for {{name}}",cancel:"Cancel",info:"Info",errorState:{message:"Couldn't load this.",retry:"Try again"},save:"Save",confirm:"Confirm",close:"Close",back:"Back",emptyTrainingName:"Training name is empty.",remove:"Remove",image:"Image",delete:"Delete",reset:"Reset",update:"Update",download:"Download",search:"Search",empty:"No data.",yes:"Yes",no:"No",all:"All",none:"None",days_one:"{{count}} day",days_other:"{{count}} days",loadMore:"Load More",retry:"Try Again",prevPage:"Previous page",nextPage:"Next page",play:"Play",pause:"Pause",playPause:"Play / Pause",replay:"Replay",subscription:"Subscription",done:"Done",failed:"Failed",continue:"Continue",notification:"Notice",emptyList:"No items",menu:"Menu",resetSelection:"Reset Selection",pageSizeLabel:"Show {{n}}",totalCountPrefix:"Total: ",totalCountSuffix:"",expand:"Expand",collapse:"Collapse",popup:"Popup",more:"More",codeBlock:"Code block",totalPrefix:"",copyCode:"Copy code",copied:"Copied",col:{problem:"Question"},phonetics:{place:{labial:"Bilabial",alveolar:"Alveolar",palatal:"Palatal",velar:"Velar",glottal:"Glottal"},vowel:{frontHigh:"Front high vowel",backHighUnrounded:"Back high unrounded vowel",backHighRounded:"Back high rounded vowel",frontMid:"Front mid vowel",backMidUnrounded:"Back mid unrounded vowel",backMidRounded:"Back mid rounded vowel",low:"Low vowel"},glide:{j:"j-glide",w:"w-glide",velar:"\u0270-glide"}},unknownError:"Unknown error"},sf={rangeSelect:"Select period",dow:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],yearMonth:"{{month}}/{{year}}",prevMonth:"Previous month",addOnDate:"Add a visit on {{date}}",nextMonth:"Next month",prevWeek:"Previous week",nextWeek:"Next week",legend:{visited:"Visited",scheduled:"Scheduled",noVisit:"No Show"},periodSelect:"Period unit"},lf={planSuffix:"Plan",labeledPlan:"{{label}} Plan",couponCode:"Pass Code",specialLabel:"Open Special",unitDay:"d",unitYear:"yr",remainingDay:"{{n}}d left",remainingHour:"{{n}}h left",remainingMinute:"{{n}}m left",remainingSecond:"{{n}}s left",menu:{use:"Activate",refund:"Refund",delete:"Delete"}},cf={clearAriaLabel:"Clear search"},uf={starLabel:"Select star {{n}}",valueLabel:"{{value}} out of {{max}}",groupLabel:"Rating"},df={selected:"selected"},pf={placeholder:"Select"},hf={collapse:"Collapse",expand:"Expand"},mf={biArea:"BI area",biSymbol:"BI symbol",logoMalgwi:"Malgwi logo",logoManager:"Malgwi Manager logo",menuOpen:"Open menu",utilMenu:"Utility menu"},ff={mainMenu:"Main menu",bottomNav:"Bottom navigation",goToManager:"Go to Malgwi Manager",goToMalgwi:"Go to Malgwi",modeLabelManager:"Malgwi Manager",modeLabelMalgwi:"Malgwi",training:"Training",settings:"Settings",notifications:"Notifications",account:"Account",help:"Help",debug:"Debug",coupons:"Coupons",topic:"By Topic",trainingType:"By Training Type",wordPairs:"Word Pairs",wordSearch:"Word Search",wordTable:"Word Table Creator",company:"Company Info",more:"More",moreMenu:"More menu"},Cf={language:{training:{label:"Training Language",sub:"Language used for training words and speech"}},notifications:{title:"Notifications"},display:{fontSize:{small:"Small",large:"Large"}},cache:{title:"Cache Management",confirmMessage:"Delete cache ({{size}}). Do you want to continue?",delete:"Delete",deleting:"Deleting",cleared:"Cache cleared successfully.",group:{wordData:{label:"Word Data",sub:"Word list and version info"},pairIndex:{label:"Pair Index",sub:"Onset\xB7vowel\xB7coda minimal pair analysis cache"},imageCache:{label:"Image Cache",sub:"Word image existence check results"},trainingRecord:{label:"Training Record",sub:"Daily training progress and streak"}}},button:{save:"Save Settings"},popup:{clear:{confirm:"Reset"},update:{confirm:"Update"},cache:{title:"Delete {{label}}",message:"Delete {{label}} ({{size}}). Do you want to continue?"}},saved:"\u2713 Saved",account:{title:"Account",delete:{sub:"You can restore your account within 30 days of withdrawal."}}},gf={addButton:"Add Subscription",couponButton:"Enter Coupon",active:{infoTitle:"Subscription Info",refund:"Request Refund",startDate:"Start Date",endDate:"End Date",remaining:"Remaining"},pending:{title:"Pending",empty:"No pending subscriptions."},loading:"Loading\u2026",segment:{personal:"Malgwi",org:"Malgwi Manager"},org:{title:"Current Plan",disc:"Subscription plan in use by your organization.",empty:"No organization plan registered.",fallbackTitle:"Organization Plan",startDate:"Start Date",endDate:"End Date",remaining:"Remaining",duration:"Duration"}},bf={profile:{planSuffix:"",plan:"Plan"},basicInfo:{name:{placeholder:"John Doe"}},security:{title:"Security",password:{label:"Password",currentRequired:"Enter your current password.",newRequired:"Enter a new password.",mismatch:"The new passwords do not match.",changed:"Your password has been changed."},twoFactor:{label:"Two-Factor Authentication",sub:"Strengthen your account security"}}},yf={guide:{faq:{title:"FAQ",desc:"View all frequently asked questions"}}},vf={settings:"Settings",start:{title:"Start Word Training",description:"Select a training type below to begin"},difficulty:{tooltip:"The easiest difficulty is 'Random', the hardest is 'Initial Consonant Difference'."},contrast:{label:"Contrast",type:"Contrast Type",count:"Contrast Count",n:"{{n}}"},filter:{random:"Random",trainOnset:"Onset",trainVowel:"Vowel",trainCoda:"Coda",phonemeGroup:"Training phonemes",noLimit:"Any",codaExclude:"Exclude",gradeLabel:"Grade",excludeImageInfo:"Only words with images: keeps only results with a registered word image.",sameStructureInfo:"Only same phoneme structure: keeps only pairs where the correct and wrong answers share the same syllable structure (length, batchim, etc.).",selectSection:"Select",excludeImage:"Only words with images",sameStructure:"Only same phoneme structure"},noQuestions:"No questions available.",countQuestions:"{{n}} questions",countSentences:"{{n}} sentences",comingSoon:"Coming Soon",nextQuestion:"Next",noiseRatioTitle:"Noise Ratio",noiseRatioValue:"{{ratio}}\xD7",noiseTypeTitle:"Noise Type",playVolumeTitle:"Volume",playSpeedTitle:"Speed",meter:{sentence:"Playback",noise:"Noise",toggle:"Show Audio Meter"},viewResult:"View Results",problemNotice:"Problem {{n}}.",trainingSettingsTitle:"Training Settings",sentencePreview:"Sentence Preview",notHeard:"Didn't hear it.",heardWell:"Heard it well.",confirmTitle:"Check the sentence and select whether you heard it.",noSoundWaveform:"Waveform is not shown for sound-comparison questions.",noise:{level:{none:"None",weak:"Weak",medium:"Medium",strong:"Strong",veryStrong:"Very Strong"},type:{none:"None",default:"Default",street:"Street",buzz:"Buzzing",restaurant:"Restaurant"}},listenTitle:"Please listen to the sentence.",listenButton:"Listen",playSound:"Play Sound",playAll:"Play All",stop:"Stop",preview:"Preview",next:"Next",completed:"Completed",selected:"Selected",nthSelected:"Selection {{n}}",fontSizeMin:"Font size is at the minimum.",fontSizeMax:"Font size is at the maximum.",fontSizeDecrease:"Decrease font size",fontSizeIncrease:"Increase font size",toggleBackground:"Toggle background",cardInstructions:"Look at the word card, listen to the sound, and check it.",noCards:"No cards.",audioFetchError:"Failed to load the sound source.",selectConfirm:"Look at the question and select the answer.",orderListDefault:"Arrange the sentences in the order you heard.",result:{eyebrow:"Training Complete",title:"You've finished all the training!",scoreAria:"{{correct}} / {{total}} questions",elapsed:"Time Elapsed",summary:"You heard {{correct}} item(s) correctly.",tableAriaLabel:"Per-question judgement",colJudge:"Judgement",colAnswerSelected:"Answer \xB7 Selected",colAnswer:"Answer",colSelected:"Selected",heardWell:"Heard well",notHeard:"Didn't hear",notJudged:"Not judged",replay:"Replay",done:"Done",viewResult:"View Results",noContent:"(No content)"},up:"Move up",down:"Move down",prev:"Previous",listenLabel:"Listen",sourcePlay:"Play source {{n}}",listen:"Listen"},xf={totalCount:" training bundles",sort:{customers:"Customers"},copyLink:"Copy Link",removeLink:"Remove Link",linkRemoved:"Link removed.",linkSaveFirst:"Please save the training bundle first.",linkSaveFirstHint:"You can only create a shared link from a saved training bundle.",linkCopySelect:"Copy blocked \u2014 link selected. Press Ctrl/\u2318+C to copy.",nameRequired:"Please enter a training bundle name.",itemRequired:"Please add at least one training item.",randomAdd:"Random Add",menu:{publish:"Post to Store",duplicate:"Duplicate Training Bundle",edit:"Edit Training Bundle",move:"Move Group",rename:"Rename"},itemCount:"Number of Items",renameGroup:"Rename Group"},_f={totalCount:" customers",loadError:"Failed to load list",basicInfo:{editTooltip:"Edit"},member:{placeholder:"Email or phone",link:"Link",linking:"Linking\u2026"},device:{title:"Hearing Devices",addTooltip:"Add New",addButton:"Add device",listTooltip:"View List",listTitle:" Device List",historyEmpty:"No device history registered",wearing:" in use",notRegistered:"Not registered",unit:"",wearingNow:"In use",wear:"Wear",unwear:"Remove",wornSince:"Since {{date}}",release:"Release",historyTitle:"Hearing device history"},schedule:{title:"Upcoming Visits",addTooltip:"Add Schedule",listTooltip:"View All",empty:"No upcoming visits",registerTitle:" Register Schedule",memoPlaceholder:"Enter a memo for this visit."},visitHistory:{title:"Visit History",addTooltip:"Add Visit",empty:"No visit history yet",popupTitle:" Visit History",registerTitle:" Register Visit"},moreItems:"more",viewAll:"View All",visits:{title:"Visits"},trainingRecord:{title:"Customer Training Records"},status:{trainingSubtitle:"Training Status"},detail:{session:{completedFmt:"Done {{done}}/{{total}} \xB7 {{duration}}"},visitSuffix:" visits"},homework:{active:"Active",copied:"Link copied.",copy:"Copy Link",inactive:"Inactive",title:"Homework Progress"},duration:{minSec:"{{m}}m {{s}}s",min:"{{m}}m",sec:"{{s}}s"}},wf={plan:{recommendedFor:"Recommended for",features:"Key Features",freePrice:"Free",contact:"Contact Us",tierFallback:"Plan",openPromo:"Launch offer"},products:{mgrEnterprise:{tier:{price:"Contact us"}}}},kf={title:"Coupons",subtitle:"Enter a coupon code or view your coupons",input:{label:"Coupon code",placeholder:"Enter coupon code"},applyButton:"Apply",error:{invalid:"Invalid coupon code.",alreadyUsed:"This coupon has already been used."},success:{applied:'"{{name}}" coupon applied.'},section:{owned:"My Coupons"},status:{used:"Used",available:"Available"}},Af={unitVisit:"",periodAll:"All",showN:"Show {{n}}"},Nf={subtitle:"Manage company and business information",editButton:"Edit Info",basicInfo:{title:"Basic Info"},contactInfo:{title:"Contact Info"}},Bf={title:"Training by Type",subtitle:"Select the training type you want",listenInNoise:{title:"Sentence Listening in Noise",desc:"Train sentence comprehension in various noise environments."},shortStory:{title:"Short Story Listening",desc:"Listen to short stories and understand the content."},longStory:{title:"Long Story Listening",desc:"Focus on listening to long stories and grasp the content."},orderingSentence:{title:"Sentence Ordering",desc:"Arrange heard sentences in the correct order."},SAME_SOUND_PICK:{label:"Listen & Pick Same Sound",sub:"Pick the word card that matches what you heard."},SAME_OR_DIFF:{label:"Same or Different?",sub:"Decide whether the two sounds are the same or different."},HEAR_AND_PICK_SAME:{label:"Hear & Match Word",sub:"Pick the word card that matches the sound you heard."},HEAR_AND_PICK_INCLUDED:{label:"Find Word Containing Sound",sub:"Pick the word card that contains the syllable you heard."},STARTS_WITH_SAME_SOUND:{label:"Find Word Starting with Same Sound",sub:"Pick a word that starts with the same sound as what you heard."},LISTEN_AND_REMEMBER_ORDER:{label:"Listen & Recall Order",sub:"Select the cards in the order you heard the three words."},MERGE_2_SYLLABLES:{label:"Combine 2 Syllables",sub:"What word do two syllables make?"},MERGE_3_SYLLABLES:{label:"Combine 3 Syllables",sub:"What word do three syllables make?"},MERGE_2_PHONEMES:{label:"Combine 2 Phonemes",sub:"What sound do two phonemes make?"},MERGE_3_PHONEMES:{label:"Combine 3 Phonemes",sub:"What sound do three phonemes make?"},DROP_1_FROM_2SYLL:{label:"Drop 1 Syllable from 2-Syllable",sub:"What sound remains when you remove a syllable from a 2-syllable word?"},DROP_1_FROM_3SYLL:{label:"Drop 1 Syllable from 3-Syllable",sub:"What sound remains when you remove a syllable from a 3-syllable word?"},DROP_PART_FROM_COMPOUND:{label:"Drop Part of Compound Word",sub:"What word remains when you remove part of a compound word?"},DROP_FINAL_CONSONANT_FROM_1SYLL:{label:"Drop Final Consonant",sub:"What sound remains when you remove the final consonant?"},REMOVE_CONSONANT_AND_IDENTIFY_PHONEME:{label:"Drop Consonant",sub:"What sound remains when you remove the consonant?"},CHANGE_1_SYLL_IN_2SYLL:{label:"Change 1 Syllable (2-Syllable)",sub:"Change one syllable in a 2-syllable word to make a new word."},CHANGE_1_SYLL_IN_3SYLL:{label:"Change 1 Syllable (3-Syllable)",sub:"Change one syllable in a 3-syllable word to make a new word."},CHANGE_1_PHONEME_IN_1SYLL:{label:"Change 1 Phoneme (1-Syllable)",sub:"Change one phoneme in a 1-syllable word to make a new sound."},CHANGE_1_PHONEME_IN_2SYLL:{label:"Change 1 Phoneme (2-Syllable)",sub:"Change one phoneme in a 2-syllable word to make a new word."}},Sf={comingSoon:"Word training is coming soon."},Df={colName:"Table Name",open:"Open",countSuffix:" tables",addCard:"Add Word Table Card",cardsEmpty:"No word table cards created yet.",menu:{publishStore:"Post to Training Store",unpublishStore:"Remove from Training Store"},newBadge:"Newly created",tab:{cards:"Word Table Cards",tables:"Word Tables"},publishedBadge:"Published",sharedBadge:"Shared"},jf={title:"Key Words",empty:"No key words available."},Ef={defaultName:"Word Table",title:"Word Table Builder",subtitle:"Set columns and add words to build a table.",filterTitle:"Table Settings",filter:{composition:"Composition",image:"Image",word:"Word",standardPron:"Standard Pronunciation",colloquialPron:"Colloquial Pronunciation",paperOrientation:"Paper Orientation",landscape:"Landscape",portrait:"Portrait",columns:"Columns",column:"{{count}} col",itemsPerPageWord:"Words per page",itemsPerPagePair:"Pairs per page",itemsPerPageOption:"{{count}}",pageIndicator:"{{current}} / {{total}}",pageNumber:"Page Number",pageNumberLeft:"Left",pageNumberCenter:"Center",pageNumberRight:"Right",border:"Border",cutLine:"Cut Line",show:"Show",hide:"Hide",dotted:"Dotted",corner:"Corner"},addWord:"Add",wordInfo:"Info for {{word}}",emptyItems:"Please add at least one word.",load:"Load",openNewWindow:"Open in New Window",saveButton:"Save",saveAsNewButton:"Save as New",print:"Print",popupBlocked:"Popup was blocked. Please allow popups in your browser settings.",printFileNameSingle:"Word Table",printFileNamePair:"Contrast Pair Table",save:{title:"Save Word Table",nameLabel:"Name",desc:"Enter a name for the word table.",placeholder:"Enter a title for this word table.",descriptionLabel:"Description",descriptionPlaceholder:"Enter a description for this word table.",duplicateName:"This name is already in use.",nameRequired:"Please enter a table name.",autoFillHint:" (Press Tab or Space to autofill)"},loadTable:{title:"Load Saved Word Table",empty:"No saved word tables.",loadButton:"Load",itemCount:"{{count}} words",deleteAriaLabel:"Delete",sort:{newest:"Newest",oldest:"Oldest",name:"Name",count:"Word Count"},view:{grid:"Grid View",list:"List View"}},groupDeleteMessage:"Word tables in this group will be moved to 'No Group'.",groupNamePlaceholder:"Group name",store:{badge:"Training Store"},card:{sub:"Word Table Card",empty:"No word tables in this card."},toast:{renameError:"Failed to rename",saveError:"Failed to save",deleteError:"Failed to delete",duplicateError:"Failed to duplicate",saveSuccess:"Word table saved."},scoring:{o:"{{word}} correct",triangle:"{{word}} partial",x:"{{word}} incorrect",button:"Score",pickTitle:"Who are you scoring?",pickSubtitle:"Choose the customer who trained with \u201C{{name}}\u201D.",pickSearch:"Search by name or phone",pickEmpty:"No customers registered.",pickNoMatch:"No matching customer.",pickAgain:"Choose another",scoringFor:"Scoring {{name}}",none:"Tap a cell to mark \u25CB \xB7 \u25B3 \xB7 \u2715.",tally:"{{marked}} scored \xB7 \u25CB {{o}} \xB7 \u25B3 {{triangle}} \xB7 \u2715 {{x}} \xB7 {{rate}}%",save:"Save score",saved:"Saved {{count}} marks for {{name}}.",reviewTitle:"Create a review table?",reviewMessage:"Builds a new table from the {{count}} cells {{name}} got wrong or partial. Correct ones are left out.",reviewConfirm:"Create review table",reviewDescription:"Cells marked wrong or partial in \u201C{{name}}\u201D \u2014 {{count}} of them.",reviewCreated:"Created \u201C{{name}}\u201D \u2014 {{count}} cells.",discardTitle:"Discard this scoring?",discardMessage:"You marked {{count}} cells but have not saved. Leaving discards them.",discardConfirm:"Discard and leave"}},Tf={editBanner:{message:"Saving will update the word table you're editing."},filterTitle:"Word Search Settings",filter:{positionAny:"Any",positionHead:"Start",positionMid:"Middle",positionTail:"End",difficulty:"Grade",grade:"Grade {{n}}",syllables:"Syllables",syllable:"{{n}} Syll.",syllable5plus:"5+ Syllables",partOfSpeech:"Part of Speech",pos:{noun:"Noun/Numeral",verb:"Verb/Adjective",modifier:"Adverb/Determiner"},wordType:"Word Type",type:{native:"Native Korean",sino:"Sino-Korean",foreign:"Loanword",mixed:"Hybrid"},exclude:"Exclude",excludeNoImage:"No Image"},searchButton:"Search",resultUnit:"words",remaining:"{{count}} remaining",resultDisc:"Select {{unit}}. Up to {{max}} items. ({{selected}}/{{max}})",resultTitlePrefix:"",resultTitleSuffix:" {{unit}} found.",emptyResult:"No results found.",groupCount:"{{count}}",sort:{aria:"Sort",match:"Best Match",ganada:"A\u2013Z \u2191",ganadaDesc:"A\u2013Z \u2193",syllable:"Syllables \u2191",syllableDesc:"Syllables \u2193",grade:"Grade \u2191",gradeDesc:"Grade \u2193"},pageSize:"Show {{count}}",pageSizeAria:"Page size",popup:{title:"Select a word for cell {{n}}"}},Mf={clearAllSelection:"Clear All Selections",divLine:"Contrast Line",removePair:"Remove pair",removeWord:"Remove word"},Lf={title:"By Topic",subtitle:"Select a topic to start listening training",noiseTitle:"Sentence Listening in Noise",shortStoryTitle:"Short Story Listening",FOOD:"Food",HLTH:"Health",WETH:"Weather",PRSN:"People",KRCT:"Korean Culture",STRY:"Stories",LOCA:"Locations",SOAR:"Society & Arts",NTSC:"Nature & Science",SPRT:"Sports",sub:{TRKRFD:"Traditional Korean Food",MDKRFD:"Modern Korean Food",WRLDFD:"World Cuisine",MTRFRT:"Ingredients & Fruits",GEFDKL:"Food Facts",HTETHB:"Healthy Eating",DISILL:"Diseases",EXCISE:"Exercise",GEHTKL:"Health Facts",GESSKL:"Seasons",SNWRAN:"Snow & Rain",WTHFCT:"Weather Forecast",GEWTKL:"Weather Facts",JODYPS:"Joseon Dynasty",MDKRPS:"Modern Korea",THKDPS:"Three Kingdoms",WRLART:"World Artists",WRLPSN:"World Figures",KRLANG:"Korean Language",TRPLCT:"Traditional Games",HERITG:"Heritage",EVTFES:"Events & Festivals",GECTKL:"General Knowledge",FRYTAL:"Fairy Tales",AMZING:"Amazing Stories",DAYSTR:"Everyday Stories",KRLDMK:"Korean Landmarks",SELNMK:"Seoul Landmarks",WRDTRB:"World Travel",NAVIGT:"Navigation",KRSOCI:"Korea",ECONEW:"Economy & News",GENART:"Arts",GELFKL:"Life Tips",ANIMAL:"Animals",PLANTS:"Plants",ETHPLT:"Earth",TOLELC:"Tools & Electronics",GESCKL:"Science Facts",INVDSP:"Individual Sports",MARART:"Martial Arts",TEAMSP:"Team Sports",FOOTBL:"Soccer",GESPKL:"Sports Facts"}},$f={maxUses:"Max uses (leave blank for unlimited)",redirect:"Redirect URL (leave blank for app home)",creating:"Creating\u2026",create:"Create link",created:"\u2713 Link created",copied:"Copied!",copy:"Copy",loading:"Loading\u2026",empty:"No links created yet.",uses:"Used {{count}} times",expiresAt:"Expires: {{date}}",createdAt:"Created: {{date}}",confirmDelete:"Delete this link?",deactivate:"Deactivate",delete:"Delete",status:{active:"Active",expired:"Expired",inactive:"Inactive"}},Rf={passwordPlaceholder:"Enter password"},Pf={direction:{left:"L",right:"R",label:"Side"},wornDate:"Date Worn",deviceType:"Device Type",brand:"Brand",fitType:"Fit Type",productName:"Product Name",validationError:{brandAndProduct:"Please enter brand and product name."},addNew:"Add New Device",selectFromList:"Select from List",removeDevice:"Remove"},If={stat:{totalCustomers:"Total Customers",monthlyVisits:"This Month's Visits"},chart:{visitDetail:"Visit Details",trainingDetail:"Training Details",weekly:"Weekly",daily:"Daily",periodMonth:"Month",periodWeek:"Week",weeklyPrefix:"Weekly",monthlyPrefix:"Monthly",visit:"Visits",reservation:"Reservations",trainingDone:"Completed",trainingInProgress:"In Progress",weekRange:"{{start}}\u2013{{end}}",week:"W{{n}}"},subscriptionStatus:{active:"{{pct}}% Active",expired:"{{pct}}% Expired",unused:"{{pct}}% Unused"}},Ff={editBanner:{message:"Saving will update the contrast pair table you're editing."},phonemeSelect:{title:"Phoneme Selection",vs:"vs"},caution:"Caution",mode:{include:"Phoneme Include",pick:"Phoneme Contrast",contrast:"Specify Contrast",infoTitle:"Contrast Mode",infoInclude:"Include \u2014 finds words containing all selected phonemes, plus their minimal pair.",infoPick:"Contrast \u2014 matches only if the selected phoneme is the actual point of difference in the pair.",infoContrast:"Specify Contrast \u2014 directly choose phonemes for the base word and the contrasting word to find pairs."},count:"{{n}}",input:{char:"Choose Letters",pron:"Choose Sound",infoTitle:"Input mode",infoChar:"Choose Letters \u2014 finds words by the selected phonemes (spelling), then finds their standard-pronunciation contrast pairs.",infoPron:"Choose Sound \u2014 finds standard-pronunciation contrast pairs directly from the selected phonemes."},phonemeN:"Syllable {{n}}",phonemeSingleLabel:"Syllable",phonemeContrastSingleLabel:"Contrast Syllable",ordinals:["First","Second","Third","Fourth"],phonemeOrdinalLabel:"{{ordinal}} Syllable",phonemeContrastOrdinalLabel:"Contrast {{ordinal}} Syllable",composition:"Answer Word Composition",syllableCount:"Syllables",syllableN:"{{n}} syll.",syllableNPlus:"{{n}}+ syll.",onset:"Onset",vowel:"Vowel",coda:"Coda",filter:{searchOptionsTitle:"Contrast Settings",searchModeLabel:"Contrast Mode",countLabel:"Input Syllable Count",inputModeLabel:"Input mode",phonemeOrder:"Input Syllable Position",phonemeOrderInfo:["Match: the pair must differ at exactly the same position (syllable).","Any: the differing position doesn't matter."],orderAny:"Any",orderMatch:"Match",difficultyInfo:"Reflects the National Institute of Korean Language's basic vocabulary grade.",selectLabel:"Select",onlyHasImage:"Only words with images",onlySameStructure:"Only same phoneme structure"},searchLabel:{error:"Failed to load data",loading:"Loading\u2026"},confirmMessage:"The word table with {{count}} selected {{unit}} will be lost.",resetOptions:"Reset Options",phonemeContrast:"Contrast Syllable {{n}}",infoNotes:["The preview character is an example of the selected phoneme combination. The actual search covers all words containing the phoneme.","Initial consonant '\u3147' cannot be selected. \u3147 at the start of a word is effectively silent.","If only onset and coda are selected, the vowel is automatically displayed as '\u314F'.","Increasing the phoneme count searches for minimal pairs between each phoneme."]},Of={sentenceTyping:{roundCount:"{{rounds}} rounds \xB7 {{timeLimit}}s each"},wordDefense:{me:"Me"},dictation:{title:"Dictation",desc:"Practice writing down exactly what you hear.",comingSoon:"Coming soon: audio playback, input field, answer comparison"},result:{heading:"Level {{number}} Answer",retry:"Try Again"},common:{accuracy:"{{pct}}% accuracy"},soundMatch:{title:"Sound Match",desc:"Quickly match words or sentences that share the same sound.",comingSoon:"Coming soon: play button, timer, score tracking"},orderSequence:{title:"Sentence Ordering",desc:"Arrange scattered sentence fragments in the correct order.",comingSoon:"Coming soon: sentence sets, ordering interface"},speedListen:{title:"Speed Listen",desc:"A challenge game to count the number of words in a sentence within a time limit.",comingSoon:"Coming soon: time limit, scoreboard"},noiseChallenge:{title:"Noise Challenge",desc:"Practice distinguishing sentences amid background noise.",comingSoon:"Coming soon: various noise levels, score tracking"},fastListen:{title:"Fast Listen",desc:"Listen to short sentences at speed and select the key word.",comingSoon:"Coming soon: speed by difficulty, timer"},shadowing:{title:"Shadowing",desc:"Practice pronunciation and intonation by repeating sentences aloud.",comingSoon:"Coming soon: playback, recording, comparison feedback"},phonemeHunt:{title:"Phoneme Hunt",desc:"Find words that contain a specific phoneme (sound).",comingSoon:"Coming soon: phoneme filter, hint feature"}},Hf={lead:`IHAB builds trust
|
|
829
|
+
\uD68C\uBCF5\uC744 \uB3D5\uC2B5\uB2C8\uB2E4.`,site:{title:"\uC0AC\uC774\uD2B8",malgwi:"\uB9D0\uADC0",soundDirection:"\uC18C\uB9AC\uBC29\uD5A5\uC131\uC2DC\uC2A4\uD15C",vrSoundDirection:"VR\uC18C\uB9AC\uBC29\uD5A5\uC131\uC2DC\uC2A4\uD15C",hearingTest:"\uCCAD\uB825\uD14C\uC2A4\uD2B8 \uD504\uB85C"},sns:{title:"SNS",naverBlog:"\uB124\uC774\uBC84 \uBE14\uB85C\uADF8",kakao:"KAKAO Talk \uC624\uD508\uCC44\uD305"},policy:{title:"\uC815\uCC45",terms:"\uC774\uC6A9\uC57D\uAD00",privacy:"\uAC1C\uC778\uC815\uBCF4 \uCC98\uB9AC\uBC29\uCE68"},ceo:"\uB300\uD45C",address:"\uC8FC\uC18C",support:"\uACE0\uAC1D\uC13C\uD130",ceoName:"\uD55C\uC9C0\uD61C",addressValue:"\uAC15\uC6D0\uB3C4 \uCD98\uCC9C\uC2DC \uC2DC\uCCAD\uAE38 32 \uD574\uCC2C\uBE4C\uB529 3\uCE35 302\uD638"},E2={trainingPhone:{topic:"\uD143\uBC2D\uAC00\uAFB8\uAE30",prev:"\uC774\uC804",next:"\uB2E4\uC74C",speed:"\uBE60\uB974\uAE30 3",noiseType:"\uC640\uAE00\uC640\uAE00",settings:"\uC124\uC815",start:{caption:"\uC544\uB798 \uD50C\uB808\uC774(\u25B6) \uBC84\uD2BC\uC744 \uB20C\uB7EC \uBB38\uC7A5\uC744 \uC798 \uB4E4\uC5B4\uBCF4\uC138\uC694. \uC798 \uB4E4\uC73C\uC2E0 \uB4A4 \uBB38\uC7A5\uC744 \uD655\uC778\uD558\uC138\uC694."},feedback:{caption:"\uC798 \uD0A4\uC6B4 \uBAA8\uC885\uC744 \uD143\uBC2D\uC5D0 \uC2EC\uACE0 \uBE44\uB2D0\uC744 \uC798 \uB36E\uC5B4 \uC90D\uB2C8\uB2E4."},done:{heardWell:"\uC798 \uB4E4\uB9B0 \uBB38\uC7A5",listenAgain:"\uD55C \uBC88 \uB354 \uB4E3\uAE30"}}},T2={timeHM:"{{h}}\uC2DC {{m}}\uBD84",timeH:"{{h}}\uC2DC"},M2={options:"\uD6C8\uB828 \uC635\uC158",difficulty:"\uB09C\uC774\uB3C4",exclude:"\uC81C\uC678",chosung:"\uCD08\uC131",excludeOptions:{none:"\uC5C6\uC74C",noImage:"\uC774\uBBF8\uC9C0 \uC5C6\uC74C"}},L2={answer:"\uC815\uB2F5",distractor:"\uC624\uB2F5"},$2={phaseWordDownload:"\uB2E8\uC5B4 \uB370\uC774\uD130 \uB2E4\uC6B4\uB85C\uB4DC",phaseImageCheck:"\uC774\uBBF8\uC9C0 \uD655\uC778",phasePairAnalysis:"\uB2E8\uC5B4\uC30D \uBD84\uC11D",downloadingCount:"{{n}}\uAC1C \uB2E4\uC6B4\uB85C\uB4DC \uC911",checkingPage:"{{page}}\uD398\uC774\uC9C0 \uBAA9\uB85D \uD655\uC778 \uC911",imageCount:"{{done}} / {{total}}\uAC1C"},R2={clearAriaLabel:"\uC785\uB825\uAC12 \uC9C0\uC6B0\uAE30"},P2={ariaLabel:"\uC120\uD0DD \uD0ED"},I2={ariaLabel:"\uD0ED"},F2={dragPrompt:"\uD30C\uC77C\uC744 \uC774\uACF3\uC5D0 \uB4DC\uB798\uADF8\uD558\uC5EC \uC5C5\uB85C\uB4DC",browseButton:"\uD30C\uC77C \uC120\uD0DD",removeAriaLabel:"{{name}} \uC81C\uAC70"},O2={ariaLabel:"\uC0AC\uC6A9\uC790 \uC544\uBC14\uD0C0"},H2={relativeDay:{today:"\uC624\uB298",yesterday:"\uC5B4\uC81C",daysAgo:"{{n}}\uC77C \uC804"},reason:{notLoggedIn:"\uB85C\uADF8\uC778\uC774 \uD544\uC694\uD569\uB2C8\uB2E4."},list:{title:"\uBC1B\uC740 \uC219\uC81C"},status:{expired:"\uB9CC\uB8CC\uB428",done:"\uC644\uB8CC {{count}}\uD68C \xB7 {{date}}",notDone:"\uBBF8\uC644\uB8CC"}},V2={weekly:{title:"\uC8FC\uAC04 \uD6C8\uB828 \uD604\uD669",daily:"\uC624\uB298\uC758 \uB4E3\uAE30",crossword:"\uAC00\uB85C\uC138\uB85C"},homework:{title:"\uC219\uC81C \uC9C4\uD589\uD604\uD669",totalRate:"\uC804\uCCB4 \uC644\uB8CC\uC728",count:"\uC804\uCCB4",done:"\uC644\uB8CC",remaining:"\uBBF8\uC644\uB8CC"},today:{tooltipTotal:"\uC804\uCCB4",tooltipDone:"\uC644\uB8CC"},filter:{countSuffix:" \uD6C8\uB828"},time:{countLabel:"{{n}}\uD68C \uD6C8\uB828",empty:"\uD6C8\uB828 \uAE30\uB85D\uC774 \uC5C6\uC2B5\uB2C8\uB2E4."},daily:{title:"\uC624\uB298\uC758 \uB4E3\uAE30 \uAE30\uB85D",empty:"\uC644\uB8CC\uD55C \uD68C\uCC28\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4."},crossword:{title:"\uAC00\uB85C\uC138\uB85C\uD034\uC988",empty:"\uC644\uB8CC\uD55C \uB808\uBCA8\uC774 \uC5C6\uC2B5\uB2C8\uB2E4"},visit:{title:"\uBC29\uBB38 \uC5F0\uB3D9 \uAE30\uB85D"},detail:"\uC0C1\uC138\uBCF4\uAE30",trainingType:{LISTEN_IN_NOISE:"\uC18C\uC74C \uD558 \uBB38\uC7A5",SHORT_STORY:"\uC9E7\uC740 \uC774\uC57C\uAE30",LONG_STORY:"\uAE34 \uC774\uC57C\uAE30",ORDERING_SENTENCE:"\uBB38\uC7A5 \uC21C\uC11C\uD654"}},z2={publish:{descPlaceholder:"\uB9D0\uADC0\uC790\uB8CC\uC2E4\uC5D0 \uD45C\uC2DC\uD560 \uD55C \uC904 \uC124\uBA85 (\uC120\uD0DD)"},import:"\uB0B4 \uD6C8\uB828\uC5D0 \uAC00\uC838\uC624\uAE30",publisher:"\uAC8C\uC2DC\uC790",time:{justNow:"\uBC29\uAE08 \uC804",minutesAgo:"{{n}}\uBD84 \uC804",hoursAgo:"{{n}}\uC2DC\uAC04 \uC804",daysAgo:"{{n}}\uC77C \uC804",weeksAgo:"{{n}}\uC8FC \uC804",monthsAgo:"{{n}}\uAC1C\uC6D4 \uC804",yearsAgo:"{{n}}\uB144 \uC804"},badge:{shared:"\uB9D0\uADC0\uC790\uB8CC\uC2E4"}},W2={manage:{unit:"\uAC74"}},q2={cancelLabel:"\uCDE8\uC18C"},U2={steps:"\uC9C4\uD589 \uB2E8\uACC4 {{current}} / {{total}}"},G2={panelTitle:"\uD6C8\uB828 \uC624\uB2F5",viewItems:"\uBB38\uD56D",viewTypes:"\uC720\uD615",colPending:"\uB0A8\uC740 \uAC83",colTrend:"\uBCC0\uD654",colRuns:"\uD310",unitItem:"\uAC1C",skippedOnly:"\uC61B \uAE30\uB85D {{n}}\uAC74\uC740 \uBB34\uC5C7\uC744 \uD47C \uAC83\uC778\uC9C0 \uC548 \uB0A8\uC544 \uC788\uC5B4 \uC148\uC5D0\uC11C \uBE90\uC2B5\uB2C8\uB2E4.",summaryLabel:"\uC313\uC778 \uAE30\uB85D",summaryValue:"{{items}}\uBB38\uD56D \xB7 \uC544\uC9C1 \uBABB \uC7A1\uC740 \uAC83 {{pending}}\uAC1C",nextLabel:"\uB2E4\uC74C\uC5D0 \uBCFC \uAC83",nextCount:"{{count}}\uAC1C",nextCountCapped:"{{total}}\uAC1C \uC911 {{shown}}\uAC1C",picked:"\u2192 {{what}}",typeClear:"\uB2E4 \uC7A1\uC558\uC5B4\uC694",typePending:"{{total}}\uAC1C \uC911 {{pending}}\uAC1C \uB0A8\uC74C",flat:"\uBCC0\uD654 \uC5C6\uC74C",runs:"{{count}}\uD310",avgDuration:"\uD3C9\uADE0 {{sec}}\uCD08"},K2={resetColumns:"\uCE78 \uB108\uBE44 \uCD08\uAE30\uD654"},Z2={panelTitle:"\uB2E8\uC5B4\uD45C \uCC44\uC810",viewWords:"\uB0B1\uB9D0",viewTables:"\uD45C",colLatest:"\uB9C8\uC9C0\uB9C9",colTrend:"\uBCC0\uD654",unitTime:"\uD68C",summaryLabel:"\uC313\uC778 \uCC44\uC810",summaryValue:"{{times}}\uD68C \xB7 \uB0B1\uB9D0 {{words}}\uAC1C",nextLabel:"\uB2E4\uC74C\uC5D0 \uBCFC \uAC83",nextCount:"{{count}}\uAC1C",allClear:"\uC9C0\uB09C\uBC88\uC5D0 \uBAA8\uB450 \uB9DE\uD614\uC2B5\uB2C8\uB2E4.",times:"{{count}}\uD68C",flat:"\uBCC0\uD654 \uC5C6\uC74C",recentLabel:"\uCD5C\uADFC \uCC44\uC810",nextCountCapped:"{{total}}\uAC1C \uC911 {{shown}}\uAC1C"},Y2={ariaLabel:"\uBC30\uB108",dotAriaLabel:"{{count}}\uAC1C \uC911 {{index}}\uBC88\uC9F8 \uBC30\uB108"},X2={selectYearMonth:"\uC5F0\uC6D4 \uC120\uD0DD",chooseDate:"\uB0A0\uC9DC \uC120\uD0DD"},J2={previewRegion:"\uBCF4\uACE0\uC11C \uBBF8\uB9AC\uBCF4\uAE30 \u2014 \uC88C\uC6B0\uB85C \uAD74\uB824 \uBCFC \uC218 \uC788\uC2B5\uB2C8\uB2E4"},Q2={description:"\uC124\uBA85",textbox:"\uBCF8\uBB38",training:"\uD6C8\uB828 \uC548\uB0B4",menu:"\uBA54\uB274"},eC={devNone:"\uBC1C\uB2EC \uC790\uB8CC \uC5C6\uC74C",place:{labial:"\uC591\uC21C\uC74C",alveolar:"\uCE58\uC870\uC74C",palatal:"\uACBD\uAD6C\uAC1C\uC74C",velar:"\uC5F0\uAD6C\uAC1C\uC74C",glottal:"\uC131\uBB38\uC74C"}},tC={clearSelection:"\uC120\uD0DD \uD574\uC81C"},nC={showResult:"{{type}} \uACB0\uACFC\uBCF4\uAE30"},aC={selected:"\uC120\uD0DD\uB428",remove:"\uC81C\uAC70",exclude:"\uC81C\uC678",nthSelected:"{{n}}\uBC88\uC9F8 \uC120\uD0DD"},rC={loading:"\uBD88\uB7EC\uC624\uB294 \uC911\u2026"},oC={common:K0,calendar:Z0,passCard:Y0,searchField:X0,rating:J0,colorPicker:Q0,dropdown:e2,accordion:t2,header:n2,nav:a2,settings:r2,usage:o2,account:s2,help:i2,training:l2,trainingSettings:c2,customers:u2,payment:d2,coupons:p2,visits:h2,company:m2,trainingType:C2,myWordTraining:f2,myWordTable:g2,keyWords:b2,wordTable:y2,wordSearch:v2,wordPrint:x2,topic:_2,accessLinkManager:w2,login:k2,trainingPlanRun:A2,device:N2,manager:B2,wordPairs:D2,game:S2,footer:j2,landing:E2,date:T2,trainingSetPage:M2,wordTrainingPreview:L2,wordData:$2,textField:R2,segmentedControl:P2,tabs:I2,fileUpload:F2,avatar:O2,myHomework:H2,trainingStatus:V2,store:z2,homework:W2,inquiry:q2,progress:U2,trainingMiss:G2,table:K2,wordScore:Z2,topBanner:Y2,datePicker:X2,report:J2,tooltip:Q2,phonemeProfile:eC,bulkBar:tC,debug:nC,badge:aC,loader:rC},sC={statusFilter:"Filter by status",pageSizeSelect:"Items per page",selectedCount_one:"{{count}} selected",selectedCount_other:"{{count}} selected",moreFor:"More options for {{name}}",cancel:"Cancel",info:"Info",errorState:{message:"Couldn't load this.",retry:"Try again"},save:"Save",confirm:"Confirm",close:"Close",back:"Back",emptyTrainingName:"Training name is empty.",remove:"Remove",image:"Image",delete:"Delete",reset:"Reset",update:"Update",download:"Download",search:"Search",empty:"No data.",yes:"Yes",no:"No",all:"All",none:"None",days_one:"{{count}} day",days_other:"{{count}} days",loadMore:"Load More",retry:"Try Again",prevPage:"Previous page",nextPage:"Next page",play:"Play",pause:"Pause",playPause:"Play / Pause",replay:"Replay",subscription:"Subscription",done:"Done",failed:"Failed",continue:"Continue",notification:"Notice",emptyList:"No items",menu:"Menu",resetSelection:"Reset Selection",pageSizeLabel:"Show {{n}}",totalCountPrefix:"Total: ",totalCountSuffix:"",expand:"Expand",collapse:"Collapse",popup:"Popup",more:"More",codeBlock:"Code block",totalPrefix:"",copyCode:"Copy code",copied:"Copied",col:{problem:"Question"},phonetics:{place:{labial:"Bilabial",alveolar:"Alveolar",palatal:"Palatal",velar:"Velar",glottal:"Glottal"},vowel:{frontHigh:"Front high vowel",backHighUnrounded:"Back high unrounded vowel",backHighRounded:"Back high rounded vowel",frontMid:"Front mid vowel",backMidUnrounded:"Back mid unrounded vowel",backMidRounded:"Back mid rounded vowel",low:"Low vowel"},glide:{j:"j-glide",w:"w-glide",velar:"\u0270-glide"}},unknownError:"Unknown error"},iC={rangeSelect:"Select period",dow:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],yearMonth:"{{month}}/{{year}}",prevMonth:"Previous month",addOnDate:"Add a visit on {{date}}",nextMonth:"Next month",prevWeek:"Previous week",nextWeek:"Next week",legend:{visited:"Visited",scheduled:"Scheduled",noVisit:"No Show"},periodSelect:"Period unit"},lC={planSuffix:"Plan",labeledPlan:"{{label}} Plan",couponCode:"Pass Code",specialLabel:"Open Special",unitDay:"d",unitYear:"yr",remainingDay:"{{n}}d left",remainingHour:"{{n}}h left",remainingMinute:"{{n}}m left",remainingSecond:"{{n}}s left",menu:{use:"Activate",refund:"Refund",delete:"Delete"}},cC={clearAriaLabel:"Clear search"},uC={starLabel:"Select star {{n}}",valueLabel:"{{value}} out of {{max}}",groupLabel:"Rating"},dC={selected:"selected"},pC={placeholder:"Select"},hC={collapse:"Collapse",expand:"Expand"},mC={biArea:"BI area",biSymbol:"BI symbol",logoMalgwi:"Malgwi logo",logoManager:"Malgwi Manager logo",menuOpen:"Open menu",utilMenu:"Utility menu"},CC={mainMenu:"Main menu",bottomNav:"Bottom navigation",goToManager:"Go to Malgwi Manager",goToMalgwi:"Go to Malgwi",modeLabelManager:"Malgwi Manager",modeLabelMalgwi:"Malgwi",training:"Training",settings:"Settings",notifications:"Notifications",account:"Account",help:"Help",debug:"Debug",coupons:"Coupons",topic:"By Topic",trainingType:"By Training Type",wordPairs:"Word Pairs",wordSearch:"Word Search",wordTable:"Word Table Creator",company:"Company Info",more:"More",moreMenu:"More menu",badgeLabel:"{{label}}, {{count}}"},fC={language:{training:{label:"Training Language",sub:"Language used for training words and speech"}},notifications:{title:"Notifications"},display:{fontSize:{small:"Small",large:"Large"}},cache:{title:"Cache Management",confirmMessage:"Delete cache ({{size}}). Do you want to continue?",delete:"Delete",deleting:"Deleting",cleared:"Cache cleared successfully.",group:{wordData:{label:"Word Data",sub:"Word list and version info"},pairIndex:{label:"Pair Index",sub:"Onset\xB7vowel\xB7coda minimal pair analysis cache"},imageCache:{label:"Image Cache",sub:"Word image existence check results"},trainingRecord:{label:"Training Record",sub:"Daily training progress and streak"}}},button:{save:"Save Settings"},popup:{clear:{confirm:"Reset"},update:{confirm:"Update"},cache:{title:"Delete {{label}}",message:"Delete {{label}} ({{size}}). Do you want to continue?"}},saved:"\u2713 Saved",account:{title:"Account",delete:{sub:"You can restore your account within 30 days of withdrawal."}}},gC={addButton:"Add Subscription",couponButton:"Enter Coupon",active:{infoTitle:"Subscription Info",refund:"Request Refund",startDate:"Start Date",endDate:"End Date",remaining:"Remaining"},pending:{title:"Pending",empty:"No pending subscriptions."},loading:"Loading\u2026",segment:{personal:"Malgwi",org:"Malgwi Manager"},org:{title:"Current Plan",disc:"Subscription plan in use by your organization.",empty:"No organization plan registered.",fallbackTitle:"Organization Plan",startDate:"Start Date",endDate:"End Date",remaining:"Remaining",duration:"Duration"}},bC={profile:{planSuffix:"",plan:"Plan"},basicInfo:{name:{placeholder:"John Doe"}},security:{title:"Security",password:{label:"Password",currentRequired:"Enter your current password.",newRequired:"Enter a new password.",mismatch:"The new passwords do not match.",changed:"Your password has been changed."},twoFactor:{label:"Two-Factor Authentication",sub:"Strengthen your account security"}}},yC={guide:{faq:{title:"FAQ",desc:"View all frequently asked questions"}}},vC={settings:"Settings",start:{title:"Start Word Training",description:"Select a training type below to begin"},difficulty:{tooltip:"The easiest difficulty is 'Random', the hardest is 'Initial Consonant Difference'."},contrast:{label:"Contrast",type:"Contrast Type",count:"Contrast Count",n:"{{n}}"},filter:{random:"Random",trainOnset:"Onset",trainVowel:"Vowel",trainCoda:"Coda",phonemeGroup:"Training phonemes",noLimit:"Any",codaExclude:"Exclude",gradeLabel:"Grade",excludeImageInfo:"Only words with images: keeps only results with a registered word image.",sameStructureInfo:"Only same phoneme structure: keeps only pairs where the correct and wrong answers share the same syllable structure (length, batchim, etc.).",selectSection:"Select",excludeImage:"Only words with images",sameStructure:"Only same phoneme structure"},noQuestions:"No questions available.",countQuestions:"{{n}} questions",countSentences:"{{n}} sentences",comingSoon:"Coming Soon",nextQuestion:"Next",noiseRatioTitle:"Noise Ratio",noiseRatioValue:"{{ratio}}\xD7",noiseTypeTitle:"Noise Type",playVolumeTitle:"Volume",playSpeedTitle:"Speed",meter:{sentence:"Playback",noise:"Noise",toggle:"Show Audio Meter"},viewResult:"View Results",problemNotice:"Problem {{n}}.",trainingSettingsTitle:"Training Settings",sentencePreview:"Sentence Preview",notHeard:"Didn't hear it.",heardWell:"Heard it well.",confirmTitle:"Check the sentence and select whether you heard it.",noSoundWaveform:"Waveform is not shown for sound-comparison questions.",noise:{level:{none:"None",weak:"Weak",medium:"Medium",strong:"Strong",veryStrong:"Very Strong"},type:{none:"None",default:"Default",street:"Street",buzz:"Buzzing",restaurant:"Restaurant"}},listenTitle:"Please listen to the sentence.",listenButton:"Listen",playSound:"Play Sound",playAll:"Play All",stop:"Stop",preview:"Preview",next:"Next",completed:"Completed",selected:"Selected",nthSelected:"Selection {{n}}",fontSizeMin:"Font size is at the minimum.",fontSizeMax:"Font size is at the maximum.",fontSizeDecrease:"Decrease font size",fontSizeIncrease:"Increase font size",toggleBackground:"Toggle background",cardInstructions:"Look at the word card, listen to the sound, and check it.",noCards:"No cards.",audioFetchError:"Failed to load the sound source.",selectConfirm:"Look at the question and select the answer.",orderListDefault:"Arrange the sentences in the order you heard.",result:{eyebrow:"Training Complete",title:"You've finished all the training!",scoreAria:"{{correct}} / {{total}} questions",elapsed:"Time Elapsed",summary:"You heard {{correct}} item(s) correctly.",tableAriaLabel:"Per-question judgement",colJudge:"Judgement",colAnswerSelected:"Answer \xB7 Selected",colAnswer:"Answer",colSelected:"Selected",heardWell:"Heard well",notHeard:"Didn't hear",notJudged:"Not judged",replay:"Replay",done:"Done",viewResult:"View Results",noContent:"(No content)"},up:"Move up",down:"Move down",prev:"Previous",listenLabel:"Listen",sourcePlay:"Play source {{n}}",listen:"Listen"},xC={totalCount:" training bundles",sort:{customers:"Customers"},copyLink:"Copy Link",removeLink:"Remove Link",linkRemoved:"Link removed.",linkSaveFirst:"Please save the training bundle first.",linkSaveFirstHint:"You can only create a shared link from a saved training bundle.",linkCopySelect:"Copy blocked \u2014 link selected. Press Ctrl/\u2318+C to copy.",nameRequired:"Please enter a training bundle name.",itemRequired:"Please add at least one training item.",randomAdd:"Random Add",menu:{publish:"Post to Store",duplicate:"Duplicate Training Bundle",edit:"Edit Training Bundle",move:"Move Group",rename:"Rename"},itemCount:"Number of Items",renameGroup:"Rename Group"},_C={totalCount:" customers",loadError:"Failed to load list",basicInfo:{editTooltip:"Edit"},member:{placeholder:"Email or phone",link:"Link",linking:"Linking\u2026"},device:{title:"Hearing Devices",addTooltip:"Add New",addButton:"Add device",listTooltip:"View List",listTitle:" Device List",historyEmpty:"No device history registered",wearing:" in use",notRegistered:"Not registered",unit:"",wearingNow:"In use",wear:"Wear",unwear:"Remove",wornSince:"Since {{date}}",release:"Release",historyTitle:"Hearing device history"},schedule:{title:"Upcoming Visits",addTooltip:"Add Schedule",listTooltip:"View All",empty:"No upcoming visits",registerTitle:" Register Schedule",memoPlaceholder:"Enter a memo for this visit."},visitHistory:{title:"Visit History",addTooltip:"Add Visit",empty:"No visit history yet",popupTitle:" Visit History",registerTitle:" Register Visit"},moreItems:"more",viewAll:"View All",visits:{title:"Visits"},trainingRecord:{title:"Customer Training Records"},status:{trainingSubtitle:"Training Status"},detail:{session:{completedFmt:"Done {{done}}/{{total}} \xB7 {{duration}}"},visitSuffix:" visits"},homework:{active:"Active",copied:"Link copied.",copy:"Copy Link",inactive:"Inactive",title:"Homework Progress"},duration:{minSec:"{{m}}m {{s}}s",min:"{{m}}m",sec:"{{s}}s"}},wC={plan:{recommendedFor:"Recommended for",features:"Key Features",freePrice:"Free",contact:"Contact Us",tierFallback:"Plan",openPromo:"Launch offer"},products:{mgrEnterprise:{tier:{price:"Contact us"}}}},kC={title:"Coupons",subtitle:"Enter a coupon code or view your coupons",input:{label:"Coupon code",placeholder:"Enter coupon code"},applyButton:"Apply",error:{invalid:"Invalid coupon code.",alreadyUsed:"This coupon has already been used."},success:{applied:'"{{name}}" coupon applied.'},section:{owned:"My Coupons"},status:{used:"Used",available:"Available"}},AC={unitVisit:"",periodAll:"All",showN:"Show {{n}}"},NC={subtitle:"Manage company and business information",editButton:"Edit Info",basicInfo:{title:"Basic Info"},contactInfo:{title:"Contact Info"}},BC={title:"Training by Type",subtitle:"Select the training type you want",listenInNoise:{title:"Sentence Listening in Noise",desc:"Train sentence comprehension in various noise environments."},shortStory:{title:"Short Story Listening",desc:"Listen to short stories and understand the content."},longStory:{title:"Long Story Listening",desc:"Focus on listening to long stories and grasp the content."},orderingSentence:{title:"Sentence Ordering",desc:"Arrange heard sentences in the correct order."},SAME_SOUND_PICK:{label:"Listen & Pick Same Sound",sub:"Pick the word card that matches what you heard."},SAME_OR_DIFF:{label:"Same or Different?",sub:"Decide whether the two sounds are the same or different."},HEAR_AND_PICK_SAME:{label:"Hear & Match Word",sub:"Pick the word card that matches the sound you heard."},HEAR_AND_PICK_INCLUDED:{label:"Find Word Containing Sound",sub:"Pick the word card that contains the syllable you heard."},STARTS_WITH_SAME_SOUND:{label:"Find Word Starting with Same Sound",sub:"Pick a word that starts with the same sound as what you heard."},LISTEN_AND_REMEMBER_ORDER:{label:"Listen & Recall Order",sub:"Select the cards in the order you heard the three words."},MERGE_2_SYLLABLES:{label:"Combine 2 Syllables",sub:"What word do two syllables make?"},MERGE_3_SYLLABLES:{label:"Combine 3 Syllables",sub:"What word do three syllables make?"},MERGE_2_PHONEMES:{label:"Combine 2 Phonemes",sub:"What sound do two phonemes make?"},MERGE_3_PHONEMES:{label:"Combine 3 Phonemes",sub:"What sound do three phonemes make?"},DROP_1_FROM_2SYLL:{label:"Drop 1 Syllable from 2-Syllable",sub:"What sound remains when you remove a syllable from a 2-syllable word?"},DROP_1_FROM_3SYLL:{label:"Drop 1 Syllable from 3-Syllable",sub:"What sound remains when you remove a syllable from a 3-syllable word?"},DROP_PART_FROM_COMPOUND:{label:"Drop Part of Compound Word",sub:"What word remains when you remove part of a compound word?"},DROP_FINAL_CONSONANT_FROM_1SYLL:{label:"Drop Final Consonant",sub:"What sound remains when you remove the final consonant?"},REMOVE_CONSONANT_AND_IDENTIFY_PHONEME:{label:"Drop Consonant",sub:"What sound remains when you remove the consonant?"},CHANGE_1_SYLL_IN_2SYLL:{label:"Change 1 Syllable (2-Syllable)",sub:"Change one syllable in a 2-syllable word to make a new word."},CHANGE_1_SYLL_IN_3SYLL:{label:"Change 1 Syllable (3-Syllable)",sub:"Change one syllable in a 3-syllable word to make a new word."},CHANGE_1_PHONEME_IN_1SYLL:{label:"Change 1 Phoneme (1-Syllable)",sub:"Change one phoneme in a 1-syllable word to make a new sound."},CHANGE_1_PHONEME_IN_2SYLL:{label:"Change 1 Phoneme (2-Syllable)",sub:"Change one phoneme in a 2-syllable word to make a new word."}},DC={comingSoon:"Word training is coming soon."},SC={colName:"Table Name",open:"Open",countSuffix:" tables",addCard:"Add Word Table Card",cardsEmpty:"No word table cards created yet.",menu:{publishStore:"Post to Training Store",unpublishStore:"Remove from Training Store"},newBadge:"Newly created",tab:{cards:"Word Table Cards",tables:"Word Tables"},publishedBadge:"Published",sharedBadge:"Shared"},jC={title:"Key Words",empty:"No key words available."},EC={defaultName:"Word Table",title:"Word Table Builder",subtitle:"Set columns and add words to build a table.",filterTitle:"Table Settings",filter:{composition:"Composition",image:"Image",word:"Word",standardPron:"Standard Pronunciation",colloquialPron:"Colloquial Pronunciation",paperOrientation:"Paper Orientation",landscape:"Landscape",portrait:"Portrait",columns:"Columns",column:"{{count}} col",itemsPerPageWord:"Words per page",itemsPerPagePair:"Pairs per page",itemsPerPageOption:"{{count}}",pageIndicator:"{{current}} / {{total}}",pageNumber:"Page Number",pageNumberLeft:"Left",pageNumberCenter:"Center",pageNumberRight:"Right",border:"Border",cutLine:"Cut Line",show:"Show",hide:"Hide",dotted:"Dotted",corner:"Corner"},addWord:"Add",wordInfo:"Info for {{word}}",emptyItems:"Please add at least one word.",load:"Load",openNewWindow:"Open in New Window",saveButton:"Save",saveAsNewButton:"Save as New",print:"Print",popupBlocked:"Popup was blocked. Please allow popups in your browser settings.",printFileNameSingle:"Word Table",printFileNamePair:"Contrast Pair Table",save:{title:"Save Word Table",nameLabel:"Name",desc:"Enter a name for the word table.",placeholder:"Enter a title for this word table.",descriptionLabel:"Description",descriptionPlaceholder:"Enter a description for this word table.",duplicateName:"This name is already in use.",nameRequired:"Please enter a table name.",autoFillHint:" (Press Tab or Space to autofill)"},loadTable:{title:"Load Saved Word Table",empty:"No saved word tables.",loadButton:"Load",itemCount:"{{count}} words",deleteAriaLabel:"Delete",sort:{newest:"Newest",oldest:"Oldest",name:"Name",count:"Word Count"},view:{grid:"Grid View",list:"List View"}},groupDeleteMessage:"Word tables in this group will be moved to 'No Group'.",groupNamePlaceholder:"Group name",store:{badge:"Training Store"},card:{sub:"Word Table Card",empty:"No word tables in this card."},toast:{renameError:"Failed to rename",saveError:"Failed to save",deleteError:"Failed to delete",duplicateError:"Failed to duplicate",saveSuccess:"Word table saved."},scoring:{o:"{{word}} correct",triangle:"{{word}} partial",x:"{{word}} incorrect",button:"Score",pickTitle:"Who are you scoring?",pickSubtitle:"Choose the customer who trained with \u201C{{name}}\u201D.",pickSearch:"Search by name or phone",pickEmpty:"No customers registered.",pickNoMatch:"No matching customer.",pickAgain:"Choose another",scoringFor:"Scoring {{name}}",none:"Tap a cell to mark \u25CB \xB7 \u25B3 \xB7 \u2715.",tally:"{{marked}} scored \xB7 \u25CB {{o}} \xB7 \u25B3 {{triangle}} \xB7 \u2715 {{x}} \xB7 {{rate}}%",save:"Save score",saved:"Saved {{count}} marks for {{name}}.",reviewTitle:"Create a review table?",reviewMessage:"Builds a new table from the {{count}} cells {{name}} got wrong or partial. Correct ones are left out.",reviewConfirm:"Create review table",reviewDescription:"Cells marked wrong or partial in \u201C{{name}}\u201D \u2014 {{count}} of them.",reviewCreated:"Created \u201C{{name}}\u201D \u2014 {{count}} cells.",discardTitle:"Discard this scoring?",discardMessage:"You marked {{count}} cells but have not saved. Leaving discards them.",discardConfirm:"Discard and leave"}},TC={editBanner:{message:"Saving will update the word table you're editing."},filterTitle:"Word Search Settings",filter:{positionAny:"Any",positionHead:"Start",positionMid:"Middle",positionTail:"End",difficulty:"Grade",grade:"Grade {{n}}",syllables:"Syllables",syllable:"{{n}} Syll.",syllable5plus:"5+ Syllables",partOfSpeech:"Part of Speech",pos:{noun:"Noun/Numeral",verb:"Verb/Adjective",modifier:"Adverb/Determiner"},wordType:"Word Type",type:{native:"Native Korean",sino:"Sino-Korean",foreign:"Loanword",mixed:"Hybrid"},exclude:"Exclude",excludeNoImage:"No Image"},searchButton:"Search",resultUnit:"words",remaining:"{{count}} remaining",resultDisc:"Select {{unit}}. Up to {{max}} items. ({{selected}}/{{max}})",resultTitlePrefix:"",resultTitleSuffix:" {{unit}} found.",emptyResult:"No results found.",groupCount:"{{count}}",sort:{aria:"Sort",match:"Best Match",ganada:"A\u2013Z \u2191",ganadaDesc:"A\u2013Z \u2193",syllable:"Syllables \u2191",syllableDesc:"Syllables \u2193",grade:"Grade \u2191",gradeDesc:"Grade \u2193"},pageSize:"Show {{count}}",pageSizeAria:"Page size",popup:{title:"Select a word for cell {{n}}"}},MC={clearAllSelection:"Clear All Selections",divLine:"Contrast Line",removePair:"Remove pair",removeWord:"Remove word"},LC={title:"By Topic",subtitle:"Select a topic to start listening training",noiseTitle:"Sentence Listening in Noise",shortStoryTitle:"Short Story Listening",FOOD:"Food",HLTH:"Health",WETH:"Weather",PRSN:"People",KRCT:"Korean Culture",STRY:"Stories",LOCA:"Locations",SOAR:"Society & Arts",NTSC:"Nature & Science",SPRT:"Sports",sub:{TRKRFD:"Traditional Korean Food",MDKRFD:"Modern Korean Food",WRLDFD:"World Cuisine",MTRFRT:"Ingredients & Fruits",GEFDKL:"Food Facts",HTETHB:"Healthy Eating",DISILL:"Diseases",EXCISE:"Exercise",GEHTKL:"Health Facts",GESSKL:"Seasons",SNWRAN:"Snow & Rain",WTHFCT:"Weather Forecast",GEWTKL:"Weather Facts",JODYPS:"Joseon Dynasty",MDKRPS:"Modern Korea",THKDPS:"Three Kingdoms",WRLART:"World Artists",WRLPSN:"World Figures",KRLANG:"Korean Language",TRPLCT:"Traditional Games",HERITG:"Heritage",EVTFES:"Events & Festivals",GECTKL:"General Knowledge",FRYTAL:"Fairy Tales",AMZING:"Amazing Stories",DAYSTR:"Everyday Stories",KRLDMK:"Korean Landmarks",SELNMK:"Seoul Landmarks",WRDTRB:"World Travel",NAVIGT:"Navigation",KRSOCI:"Korea",ECONEW:"Economy & News",GENART:"Arts",GELFKL:"Life Tips",ANIMAL:"Animals",PLANTS:"Plants",ETHPLT:"Earth",TOLELC:"Tools & Electronics",GESCKL:"Science Facts",INVDSP:"Individual Sports",MARART:"Martial Arts",TEAMSP:"Team Sports",FOOTBL:"Soccer",GESPKL:"Sports Facts"}},$C={maxUses:"Max uses (leave blank for unlimited)",redirect:"Redirect URL (leave blank for app home)",creating:"Creating\u2026",create:"Create link",created:"\u2713 Link created",copied:"Copied!",copy:"Copy",loading:"Loading\u2026",empty:"No links created yet.",uses:"Used {{count}} times",expiresAt:"Expires: {{date}}",createdAt:"Created: {{date}}",confirmDelete:"Delete this link?",deactivate:"Deactivate",delete:"Delete",status:{active:"Active",expired:"Expired",inactive:"Inactive"}},RC={passwordPlaceholder:"Enter password"},PC={direction:{left:"L",right:"R",label:"Side"},wornDate:"Date Worn",deviceType:"Device Type",brand:"Brand",fitType:"Fit Type",productName:"Product Name",validationError:{brandAndProduct:"Please enter brand and product name."},addNew:"Add New Device",selectFromList:"Select from List",removeDevice:"Remove"},IC={stat:{totalCustomers:"Total Customers",monthlyVisits:"This Month's Visits"},chart:{visitDetail:"Visit Details",trainingDetail:"Training Details",weekly:"Weekly",daily:"Daily",periodMonth:"Month",periodWeek:"Week",weeklyPrefix:"Weekly",monthlyPrefix:"Monthly",visit:"Visits",reservation:"Reservations",trainingDone:"Completed",trainingInProgress:"In Progress",weekRange:"{{start}}\u2013{{end}}",week:"W{{n}}"},subscriptionStatus:{active:"{{pct}}% Active",expired:"{{pct}}% Expired",unused:"{{pct}}% Unused"}},FC={editBanner:{message:"Saving will update the contrast pair table you're editing."},phonemeSelect:{title:"Phoneme Selection",vs:"vs"},caution:"Caution",mode:{include:"Phoneme Include",pick:"Phoneme Contrast",contrast:"Specify Contrast",infoTitle:"Contrast Mode",infoInclude:"Include \u2014 finds words containing all selected phonemes, plus their minimal pair.",infoPick:"Contrast \u2014 matches only if the selected phoneme is the actual point of difference in the pair.",infoContrast:"Specify Contrast \u2014 directly choose phonemes for the base word and the contrasting word to find pairs."},count:"{{n}}",input:{char:"Choose Letters",pron:"Choose Sound",infoTitle:"Input mode",infoChar:"Choose Letters \u2014 finds words by the selected phonemes (spelling), then finds their standard-pronunciation contrast pairs.",infoPron:"Choose Sound \u2014 finds standard-pronunciation contrast pairs directly from the selected phonemes."},phonemeN:"Syllable {{n}}",phonemeSingleLabel:"Syllable",phonemeContrastSingleLabel:"Contrast Syllable",ordinals:["First","Second","Third","Fourth"],phonemeOrdinalLabel:"{{ordinal}} Syllable",phonemeContrastOrdinalLabel:"Contrast {{ordinal}} Syllable",composition:"Answer Word Composition",syllableCount:"Syllables",syllableN:"{{n}} syll.",syllableNPlus:"{{n}}+ syll.",onset:"Onset",vowel:"Vowel",coda:"Coda",filter:{searchOptionsTitle:"Contrast Settings",searchModeLabel:"Contrast Mode",countLabel:"Input Syllable Count",inputModeLabel:"Input mode",phonemeOrder:"Input Syllable Position",phonemeOrderInfo:["Match: the pair must differ at exactly the same position (syllable).","Any: the differing position doesn't matter."],orderAny:"Any",orderMatch:"Match",difficultyInfo:"Reflects the National Institute of Korean Language's basic vocabulary grade.",selectLabel:"Select",onlyHasImage:"Only words with images",onlySameStructure:"Only same phoneme structure"},searchLabel:{error:"Failed to load data",loading:"Loading\u2026"},confirmMessage:"The word table with {{count}} selected {{unit}} will be lost.",resetOptions:"Reset Options",phonemeContrast:"Contrast Syllable {{n}}",infoNotes:["The preview character is an example of the selected phoneme combination. The actual search covers all words containing the phoneme.","Initial consonant '\u3147' cannot be selected. \u3147 at the start of a word is effectively silent.","If only onset and coda are selected, the vowel is automatically displayed as '\u314F'.","Increasing the phoneme count searches for minimal pairs between each phoneme."]},OC={sentenceTyping:{roundCount:"{{rounds}} rounds \xB7 {{timeLimit}}s each"},wordDefense:{me:"Me"},dictation:{title:"Dictation",desc:"Practice writing down exactly what you hear.",comingSoon:"Coming soon: audio playback, input field, answer comparison"},result:{heading:"Level {{number}} Answer",retry:"Try Again"},common:{accuracy:"{{pct}}% accuracy"},soundMatch:{title:"Sound Match",desc:"Quickly match words or sentences that share the same sound.",comingSoon:"Coming soon: play button, timer, score tracking"},orderSequence:{title:"Sentence Ordering",desc:"Arrange scattered sentence fragments in the correct order.",comingSoon:"Coming soon: sentence sets, ordering interface"},speedListen:{title:"Speed Listen",desc:"A challenge game to count the number of words in a sentence within a time limit.",comingSoon:"Coming soon: time limit, scoreboard"},noiseChallenge:{title:"Noise Challenge",desc:"Practice distinguishing sentences amid background noise.",comingSoon:"Coming soon: various noise levels, score tracking"},fastListen:{title:"Fast Listen",desc:"Listen to short sentences at speed and select the key word.",comingSoon:"Coming soon: speed by difficulty, timer"},shadowing:{title:"Shadowing",desc:"Practice pronunciation and intonation by repeating sentences aloud.",comingSoon:"Coming soon: playback, recording, comparison feedback"},phonemeHunt:{title:"Phoneme Hunt",desc:"Find words that contain a specific phoneme (sound).",comingSoon:"Coming soon: phoneme filter, hint feature"}},HC={lead:`IHAB builds trust
|
|
830
830
|
through sound
|
|
831
|
-
and aids recovery.`,site:{title:"Site",malgwi:"Malgwi",soundDirection:"Sound Direction System",vrSoundDirection:"VR Sound Direction System",hearingTest:"Hearing Test Pro"},sns:{title:"SNS",naverBlog:"Naver Blog",kakao:"KAKAO Talk Open Chat"},policy:{title:"Policy",terms:"Terms of Service",privacy:"Privacy Policy"},ceo:"CEO",address:"Address",support:"Support",ceoName:"Ji-hye Han",addressValue:"302, 3F, Haechan Bldg, 32 Siocheong-gil, Chuncheon, Gangwon, Korea"},Vf={trainingPhone:{topic:"Gardening",prev:"Prev",next:"Next",speed:"Speed 3",noiseType:"Crowd noise",settings:"Settings",start:{caption:"Press the play (\u25B6) button below and listen carefully. After listening, check the sentence."},feedback:{caption:"Plant the well-grown seedlings in the garden bed and cover them carefully with plastic film."},done:{heardWell:"Heard clearly",listenAgain:"Listen again"}}},zf={timeHM:"{{hh}}:{{mm}}",timeH:"{{hh}}:{{mm}}"},Wf={options:"Training Options",difficulty:"Difficulty",exclude:"Exclude",chosung:"Initial Consonant",excludeOptions:{none:"None",noImage:"No Image"}},qf={answer:"Answer",distractor:"Distractor"},Uf={phaseWordDownload:"Download Word Data",phaseImageCheck:"Check Images",phasePairAnalysis:"Analyze Word Pairs",downloadingCount:"Downloading {{n}} words",checkingPage:"Checking page {{page}} list",imageCount:"{{done}} / {{total}} items"},Gf={clearAriaLabel:"Clear input"},Kf={ariaLabel:"Select tab"},Zf={ariaLabel:"Tabs"},Yf={dragPrompt:"Drag and drop files here",browseButton:"Choose Files",removeAriaLabel:"Remove {{name}}"},Xf={ariaLabel:"User avatar"},Jf={relativeDay:{today:"Today",yesterday:"Yesterday",daysAgo:"{{n}}d ago"},reason:{notLoggedIn:"Login required."},list:{title:"Received Homework"},status:{expired:"Expired",done:"Done {{count}}\xD7 \xB7 {{date}}",notDone:"Not done"}},Qf={weekly:{title:"Weekly Training",daily:"Daily Listening",crossword:"Crossword"},homework:{title:"Homework Progress",totalRate:"Overall rate",count:"Total",done:"Done",remaining:"Remaining"},today:{tooltipTotal:"Total",tooltipDone:"Done"},filter:{countSuffix:" sessions"},time:{countLabel:"{{n}} sessions",empty:"No training records"},daily:{title:"Today's Listening Record",empty:"No completed sessions"},crossword:{title:"Crossword Quiz",empty:"No completed levels"},visit:{title:"Linked Visit Records"},detail:"Details",trainingType:{LISTEN_IN_NOISE:"Sentence in Noise",SHORT_STORY:"Short Story",LONG_STORY:"Long Story",ORDERING_SENTENCE:"Sentence Ordering"}},eC={import:"Add to my trainings",publisher:"Publisher",time:{justNow:"just now",minutesAgo:"{{n}}m ago",hoursAgo:"{{n}}h ago",daysAgo:"{{n}}d ago",weeksAgo:"{{n}}w ago",monthsAgo:"{{n}}mo ago",yearsAgo:"{{n}}y ago"},badge:{shared:"Store"},publish:{descPlaceholder:"One-line description for the Training Store (optional)"}},tC={manage:{unit:"item(s)"}},nC={cancelLabel:"Cancel"},aC={subtitle:"Select a topic to start listening practice."},rC={steps:"Step {{current}} of {{total}}"},oC={panelTitle:"Training misses",viewItems:"Items",viewTypes:"Types",colPending:"Left",colTrend:"Change",colRuns:"Runs",unitItem:" items",skippedOnly:"{{n}} older record(s) were excluded \u2014 they do not say what was answered.",summaryLabel:"Recorded",summaryValue:"{{items}} items \xB7 {{pending}} still missed",nextLabel:"Next to work on",nextCount:"{{count}}",nextCountCapped:"{{shown}} of {{total}}",picked:"\u2192 {{what}}",typeClear:"All caught up",typePending:"{{pending}} of {{total}} left",flat:"no change",runs:"{{count}} run(s)",avgDuration:"{{sec}}s avg"},sC={resetColumns:"Reset column widths"},iC={panelTitle:"Word table scores",viewWords:"Words",viewTables:"Tables",colLatest:"When",colTrend:"Change",unitTime:" times",summaryLabel:"Scored",summaryValue:"{{times}} times \xB7 {{words}} words",nextLabel:"Focus next",nextCount:"{{count}}",allClear:"All correct last time.",times:"{{count}}x",flat:"no change",recentLabel:"Recent scorings",nextCountCapped:"{{shown}} of {{total}}"},lC={ariaLabel:"Banner",dotAriaLabel:"Banner {{index}} of {{count}}"},cC={selectYearMonth:"Select year and month",chooseDate:"Choose a date"},uC={previewRegion:"Report preview \u2014 scrollable sideways"},dC={description:"Description",textbox:"Text",training:"Training guide",menu:"Menu"},pC={devNone:"No acquisition data",place:{labial:"Bilabial",alveolar:"Alveolar",palatal:"Palatal",velar:"Velar",glottal:"Glottal"}},hC={clearSelection:"Clear selection"},mC={showResult:"Show {{type}} result"},fC={selected:"Selected",remove:"Remove",exclude:"Excluded",nthSelected:"Selection {{n}}"},CC={loading:"Loading"},gC={common:of,calendar:sf,passCard:lf,searchField:cf,rating:uf,colorPicker:df,dropdown:pf,accordion:hf,header:mf,nav:ff,settings:Cf,usage:gf,account:bf,help:yf,training:vf,trainingSettings:xf,customers:_f,payment:wf,coupons:kf,visits:Af,company:Nf,trainingType:Bf,myWordTraining:Sf,myWordTable:Df,keyWords:jf,wordTable:Ef,wordSearch:Tf,wordPrint:Mf,topic:Lf,accessLinkManager:$f,login:Rf,device:Pf,manager:If,wordPairs:Ff,game:Of,footer:Hf,landing:Vf,date:zf,trainingSetPage:Wf,wordTrainingPreview:qf,wordData:Uf,textField:Gf,segmentedControl:Kf,tabs:Zf,fileUpload:Yf,avatar:Xf,myHomework:Jf,trainingStatus:Qf,store:eC,homework:tC,inquiry:nC,trainingPlanRun:aC,progress:rC,trainingMiss:oC,table:sC,wordScore:iC,topBanner:lC,datePicker:cC,report:uC,tooltip:dC,phonemeProfile:pC,bulkBar:hC,debug:mC,badge:fC,loader:CC};const bC=[{code:"ko",label:"\uD55C\uAD6D\uC5B4"},{code:"en",label:"English"}],oi="ko",yC="ihab_display_language";function si(){try{const e=localStorage.getItem(yC);if(e&&bC.some(n=>n.code===e))return e}catch{}return oi}function ii(e){try{document.documentElement.lang=e}catch{}}Pt.on("languageChanged",ii),ii(si()),Pt.use(de.initReactI18next).init({resources:{ko:{translation:rf},en:{translation:gC}},lng:si(),fallbackLng:oi,interpolation:{escapeValue:!1},react:{useSuspense:!1}});function li(e){if(!(e==null||e===""))return Kn(typeof e=="number"?`${e.toLocaleString("ko-KR")}\uC6D0`:e)}function vC(e){const n=`${e.code??""} ${e.name??""}`.toLowerCase();return/manager|매니저/.test(n)?"manager":"speechear"}function xC(e){if(e.durationDays&&e.durationDays>0){const o=e.durationDays;return o%365===0?`${o/365}\uB144`:`${o}\uC77C`}const n=(e.code??"").match(/(\d+)(d|y)\b/i);if(n)return n[2].toLowerCase()==="y"?`${n[1]}\uB144`:`${n[1]}\uC77C`;const a=e.name??"",r=a.match(/(\d+\s*(?:년|개월|주|일))\s*(?:이용권)?\s*$/);return r?r[1].replace(/\s+/g,""):a||"\uC774\uC6A9\uAD8C"}function _C(e){const n=(e??"").match(/(\d+)(d|y)\b/i);if(!n)return null;const a=Number(n[1]);return n[2].toLowerCase()==="y"?a*365:a}function ci(e){return{type:e.type??vC(e),plan:xC(e),label:e.label,price:li(e.price),originalPrice:li(e.originalPrice),discountLabel:e.discountLabel}}var wC='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',kC='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>',AC='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',NC='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',BC='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>',SC='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',ui='data:image/svg+xml,<svg width="100" height="100" viewBox="0 0 100 100" fill="none" xmlns="http://www.w3.org/2000/svg">%0A<g clip-path="url(%23clip0_2255_7305)">%0A<path d="M75.2535 24.7464C68.7892 18.2821 59.8606 14.2857 49.9999 14.2857C40.1392 14.2857 37.5214 24.5964 31.0606 31.0607C24.5964 37.525 14.2856 40.1893 14.2856 50C14.2856 59.8107 18.2821 68.7893 24.7464 75.2536C31.2106 81.7179 40.1392 85.7143 49.9999 85.7143C59.8606 85.7143 68.7892 81.7179 75.2535 75.2536C81.7178 68.7893 85.7142 59.8607 85.7142 50C85.7142 40.1393 81.7178 31.2107 75.2535 24.7464ZM62.6285 62.6286C59.3964 65.8607 54.9321 67.8571 49.9999 67.8571C45.0678 67.8571 40.6035 65.8571 37.3714 62.6286C34.1392 59.3964 32.1428 54.9321 32.1428 50C32.1428 45.0678 34.1428 40.6036 37.3714 37.3714C40.6035 34.1393 45.0678 32.1428 49.9999 32.1428C54.9321 32.1428 59.3964 34.1428 62.6285 37.3714C65.8606 40.6036 67.8571 45.0678 67.8571 50C67.8571 54.9321 65.8571 59.3964 62.6285 62.6286Z" fill="%23FAFAFA"/>%0A</g>%0A<defs>%0A<clipPath id="clip0_2255_7305">%0A<rect width="100" height="100" fill="white"/>%0A</clipPath>%0A</defs>%0A</svg>%0A';const wn={text:"--pass-card-text",sub:"--pass-card-sub",copyright:"--pass-card-copyright"},dr=new WeakMap;function DC(e){if(e)return dr.get(e)}function tn(e,n){e&&(e.style.setProperty(wn.text,n.text),e.style.setProperty(wn.sub,n.sub),n.copyrightColor&&e.style.setProperty(wn.copyright,n.copyrightColor),dr.set(e,n))}function nn(e){e&&(e.style.removeProperty(wn.text),e.style.removeProperty(wn.sub),e.style.removeProperty(wn.copyright),dr.delete(e))}const di={text:"var(--color-pureBlack)",sub:"var(--color-lightGray)",logoBase:"Logo_speechear_kr",copyrightColor:"#1a1a1a"};function pi(e={}){const n=rt(di,tn,nn);return t.jsxs("div",{ref:n,className:"pass-card-bg pass-card-bg-two-circle","aria-hidden":"true",children:[t.jsx("div",{className:"pass-card-bg-two-circle__c1"}),t.jsx("div",{className:"pass-card-bg-two-circle__c3"}),t.jsx("span",{className:"pass-card-bg__symbol pass-card-bg-two-circle__symbol",style:{"--symbol-url":`url("${ui}")`}})]})}const hi="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 Jn='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 jC={text:"#1a1a1a",sub:"var(--color-lightGray)",logoBase:"Logo_speechear_kr",copyrightColor:"var(--color-main)"},EC=[{scale:1,opacity:.55},{scale:2,opacity:.4},{scale:3.1,opacity:.28},{scale:4.5,opacity:.18},{scale:6,opacity:.1}];function mi(e={}){const n=rt(jC,tn,nn),a="var(--color-main)",r=270,o=170;return t.jsxs("div",{ref:n,className:"pass-card-bg pass-card-bg-sound-move","aria-hidden":"true",children:[t.jsx("svg",{className:"pass-card-bg-sound-move__svg",viewBox:"0 0 300 189",preserveAspectRatio:"xMidYMid meet",xmlns:"http://www.w3.org/2000/svg",children:EC.map(({scale:s,opacity:l},c)=>t.jsx("g",{transform:`translate(${r} ${o}) scale(${s}) translate(-50 -50)`,opacity:l,children:t.jsx("path",{d:hi,fill:"none",stroke:a,strokeWidth:"1.5",vectorEffect:"non-scaling-stroke"})},c))}),t.jsx("span",{className:"pass-card-bg__symbol pass-card-bg-sound-move__symbol",style:{"--symbol-url":`url("${Jn}")`}})]})}const TC={text:"#ffffff",sub:"var(--color-lightGray)",logoBase:"Logo_speechear_kr",logoColor:"_white",copyrightColor:"#ffffff"},MC=[{scale:1,opacity:.55},{scale:2,opacity:.4},{scale:3.1,opacity:.28},{scale:4.5,opacity:.18},{scale:6,opacity:.1}];function LC(e={}){const n=rt(TC,tn,nn),a="#ffffff",r=270,o=170;return t.jsxs("div",{ref:n,className:"pass-card-bg pass-card-bg-sound-move-v1","aria-hidden":"true",children:[t.jsx("svg",{className:"pass-card-bg-sound-move-v1__svg",viewBox:"0 0 300 189",preserveAspectRatio:"xMidYMid meet",xmlns:"http://www.w3.org/2000/svg",children:MC.map(({scale:s,opacity:l},c)=>t.jsx("g",{transform:`translate(${r} ${o}) scale(${s}) translate(-50 -50)`,opacity:l,children:t.jsx("path",{d:hi,fill:"none",stroke:a,strokeWidth:"1.5",vectorEffect:"non-scaling-stroke"})},c))}),t.jsx("span",{className:"pass-card-bg__symbol pass-card-bg-sound-move-v1__symbol",style:{"--symbol-url":`url("${ui}")`}})]})}const $C={text:"#1a1a1a",sub:"var(--color-lightGray)",logoBase:"Logo_speechear_kr",copyrightColor:"var(--color-main)"};function RC(e={}){const n=rt($C,tn,nn);return t.jsxs("div",{ref:n,className:"pass-card-bg pass-card-bg-talk","aria-hidden":"true",children:[t.jsx("div",{className:"pass-card-bg-talk__shape pass-card-bg-talk__shape--left"}),t.jsx("div",{className:"pass-card-bg-talk__shape pass-card-bg-talk__shape--right"}),t.jsx("span",{className:"pass-card-bg__symbol pass-card-bg-talk__symbol",style:{"--symbol-url":`url("${Jn}")`}})]})}const PC={Logo_speechear_kr:{"":cr,_white:wC,_textWhite:kC,_black:AC},Logo_speechearManager_kr:{"":ur,_white:NC,_textWhite:BC,_black:SC}};function IC(e,n){if(e)return PC[e]?.[n??""]??void 0}const FC={speechear:cr,manager:ur},OC={speechear:"Logo_speechear_kr",manager:"Logo_speechearManager_kr"},fi=10;function HC(e,n){if(e<=0)return n("passCard.remainingSecond",{n:0});const a=Math.floor(e/86400);if(a>0)return n("passCard.remainingDay",{n:a});const r=Math.floor(e/3600);if(r>0)return n("passCard.remainingHour",{n:r});const o=Math.floor(e/60);return o>0?n("passCard.remainingMinute",{n:o}):n("passCard.remainingSecond",{n:Math.floor(e)})}function VC(e,n,a){if(e==="manager"){const r=/년/.test(n)||/yr|year/i.test(n)||/1년|365/.test(n),o=a==="\uC624\uD508\uD2B9\uAC00"||a===Pt.t("passCard.specialLabel");return r?t.jsx(RC,{}):o?t.jsx(LC,{}):t.jsx(mi,{})}return t.jsx(pi,{})}function Ci({product:e,showPrice:n=!1,plan:a,type:r,endDate:o,remainingSeconds:s,state:l="active",bg:c,bgOnly:u=!1,textColor:d,subColor:p,copyrightColor:h,logoSrc:m,label:C,price:f,originalPrice:b,discountLabel:g,onUse:y,onRefund:w,onDelete:_}){const{t:v}=de.useTranslation(),A=e?ci(e):void 0,x=r??A?.type??"speechear",k=a??A?.plan??"\uC774\uC6A9\uAD8C",M=C??A?.label,N=f??(n?A?.price:void 0),D=b??(n?A?.originalPrice:void 0),P=g??A?.discountLabel,L=i.useMemo(()=>{if(N)return null;const T=e?.durationDays??_C(e?.code);if(!T||T<=0)return null;const q=T*86400;let ee;if(s!=null)ee=s;else if((l==="active"||l==="expired")&&o){const ue=new Date(o).getTime();if(Number.isNaN(ue))return null;const ie=new Date;ie.setHours(0,0,0,0);const te=new Date(ue);te.setHours(0,0,0,0);const se=Math.round((te.getTime()-ie.getTime())/864e5);ee=Math.max(0,se)*86400}else l==="expired"?ee=0:ee=q;const _e=Math.max(0,Math.min(100,Math.floor(Math.min(ee,q)/q*100)));return l==="pending"&&_e>=100?null:{percent:_e,remainingLabel:HC(ee,v)}},[N,l,o,s,e?.durationDays,e?.code,v]),E=i.useRef(null),[R,S]=i.useState({}),[V,Y]=i.useState(null),X=!!(y||w||_),J=i.useRef(!1),O=i.useRef(void 0),[j,$]=i.useState(m);i.useLayoutEffect(()=>{$(m)},[m]),i.useLayoutEffect(()=>{const T=E.current;T&&(d!==void 0&&T.style.setProperty("--pass-card-text",d),p!==void 0&&T.style.setProperty("--pass-card-sub",p),h!==void 0&&T.style.setProperty("--pass-card-copyright",h))},[d,p,h]),i.useLayoutEffect(()=>{const T=E.current;if(!T)return;const q=DC(T);if(!m){const ee=OC[x],_e=l==="expired"?"_black":q?.logoColor??"",ue=IC(ee,_e);$(ue)}},[c,m,x,l]);const F=T=>{const q=E.current;if(!q)return null;const{left:ee,top:_e,width:ue,height:ie}=q.getBoundingClientRect(),te=(T.clientX-ee)/ue-.5;return{rotateX:-((T.clientY-_e)/ie-.5)*fi,rotateY:te*fi}},H=(T,q)=>{const ee=q*-.7,_e=T*.7+10,ue=20+(Math.abs(T)+Math.abs(q))*.4;return`${ee}px ${_e}px ${ue}px rgba(0, 0, 0, 0.18)`},Z=i.useCallback(T=>{J.current=!0,clearTimeout(O.current),O.current=setTimeout(()=>{J.current=!1},200);const q=F(T);q&&S({transform:`perspective(800px) rotateX(${q.rotateX}deg) rotateY(${q.rotateY}deg) scale3d(1.03, 1.03, 1.03)`,boxShadow:H(q.rotateX,q.rotateY),transition:"transform 0.25s cubic-bezier(0.23, 1, 0.32, 1), box-shadow 0.25s cubic-bezier(0.23, 1, 0.32, 1)"})},[]),I=i.useCallback(T=>{const q=F(T);if(!q)return;const ee=J.current?"transform 0.2s ease, box-shadow 0.2s ease":"none";S({transform:`perspective(800px) rotateX(${q.rotateX}deg) rotateY(${q.rotateY}deg) scale3d(1.03, 1.03, 1.03)`,boxShadow:H(q.rotateX,q.rotateY),transition:ee})},[]),W=i.useCallback(()=>{clearTimeout(O.current),J.current=!1,S({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)"})},[]),U=i.useCallback(()=>Y(null),[]),le=i.useMemo(()=>{const T=k.replace("\uC774\uC6A9\uAD8C","").trim(),q=T.match(/^(.*?)(일|년)$/);return q?t.jsxs(t.Fragment,{children:[t.jsx("span",{className:"h0 pass-card__plan-number",children:q[1]}),t.jsx("span",{className:"h5b pass-card__plan-unit",children:q[2]==="\uB144"?v("passCard.unitYear","\uB144"):v("passCard.unitDay","\uC77C")})]}):t.jsx("span",{className:"h0",children:T})},[k,v]),pe=i.useMemo(()=>{const T=Kn(N);if(!T)return null;const q=T.match(/^([^\d]*)([\d.,]+)(.*)$/);if(!q)return t.jsx("span",{className:"h1",children:T});const[,ee,_e,ue]=q;return t.jsxs(t.Fragment,{children:[ee&&t.jsx("span",{className:"h5 pass-card__price-symbol",children:ee}),t.jsx("span",{className:"h1 pass-card__price-amount",children:_e}),ue.trim()&&t.jsx("span",{className:"h5 pass-card__price-symbol",children:ue.trim()})]})},[N]),Ce=i.useCallback(()=>{X&&Y(T=>{if(T)return null;const q=E.current?.getBoundingClientRect();if(!q)return null;const ee=50;return{left:q.left,right:q.right,width:q.width,height:q.height,x:q.x,y:q.y+ee,top:q.top+ee,bottom:q.bottom+ee}})},[X]),ve=i.useCallback(T=>{X&&(T.key==="Enter"||T.key===" ")&&(T.preventDefault(),Ce())},[X,Ce]),he=[{items:[...y?[{label:v("passCard.menu.use","\uC0AC\uC6A9\uD558\uAE30"),icon:"play",onClick:()=>{y(),Y(null)},closeOnSelect:!0}]:[],...w?[{label:v("passCard.menu.refund","\uD658\uBD88\uD558\uAE30"),icon:"rotate-ccw",onClick:()=>{w(),Y(null)},closeOnSelect:!0}]:[],..._?[{label:v("passCard.menu.delete","\uC0AD\uC81C\uD558\uAE30"),icon:"trash-2",onClick:()=>{_(),Y(null)},closeOnSelect:!0}]:[]]}];return t.jsxs(t.Fragment,{children:[t.jsx("div",{className:"pass-card-frame",children:t.jsxs("div",{ref:E,className:`pass-card pass-card--${l}${X?" pass-card--clickable":""}`,style:R,onMouseEnter:Z,onMouseMove:I,onMouseLeave:W,onClick:Ce,onKeyDown:X?ve:void 0,role:X?"button":void 0,tabIndex:X?0:void 0,children:[c??VC(x,k,M),!u&&t.jsxs(t.Fragment,{children:[t.jsx("div",{className:"pass-card__top",children:t.jsxs("div",{className:"pass-card__top-left",children:[t.jsx("img",{src:j??FC[x],className:"pass-card__logo",alt:x==="manager"?v("header.logoManager","\uB9D0\uADC0\uB9E4\uB2C8\uC800 \uB85C\uACE0"):v("header.logoMalgwi","\uB9D0\uADC0 \uB85C\uACE0")}),t.jsxs("div",{className:"pass-card__plan",children:[t.jsx("div",{children:le}),t.jsx("span",{className:"h5b pass-card__plan-suffix",children:M?v("passCard.labeledPlan",{label:M}):v("passCard.planSuffix","\uC774\uC6A9\uAD8C")})]})]})}),N?t.jsxs("div",{className:"pass-card__price-area",children:[P&&t.jsx("span",{className:"pass-card__discount body-3",children:P}),t.jsxs("div",{className:"pass-card__price",children:[D&&t.jsx("span",{className:"pass-card__price-original body-3",children:Kn(D)}),pe]})]}):L?t.jsxs("div",{className:"pass-card__usage",children:[t.jsx("span",{className:"h5b pass-card__usage-remaining",children:L.remainingLabel}),t.jsxs("span",{className:"pass-card__usage-percent",children:[t.jsx("span",{className:"h1 pass-card__usage-value",children:L.percent}),t.jsx("span",{className:"h5b pass-card__usage-symbol",children:"%"})]})]}):t.jsx("div",{className:"pass-card__copyright caption-2",children:"\xA9 IHAB Corp. All rights reserved."})]})]})}),V&&t.jsx(un,{anchorRect:V,onClose:U,ariaLabel:v("tooltip.menu","\uBA54\uB274"),children:t.jsx(Ca,{columns:he,onClose:U,size:"small"})})]})}const zC={text:"#1a1a1a",sub:"var(--color-lightGray)",logoBase:"Logo_speechear_kr",copyrightColor:"#1a1a1a"};function WC(e={}){const n=`passcard-sound-line-grad-${i.useId()}`,a=rt(zC,tn,nn);return t.jsxs("div",{ref:a,className:"pass-card-bg pass-card-bg-sound-line","aria-hidden":"true",children:[t.jsxs("svg",{className:"pass-card-bg-sound-line__svg",viewBox:"0 0 500 300",preserveAspectRatio:"xMidYMid slice",xmlns:"http://www.w3.org/2000/svg",children:[t.jsx("defs",{children:t.jsxs("linearGradient",{id:n,x1:"0",y1:"0",x2:"1",y2:"0",children:[t.jsx("stop",{offset:"20%",stopColor:"var(--color-main)"}),t.jsx("stop",{offset:"80%",stopColor:"var(--color-sub)"})]})}),t.jsx("g",{transform:"translate(25, 45)",children:t.jsx("path",{d:"M -30 150 C 40 80, 100 220, 160 150 S 280 80, 340 150 S 460 220, 510 150",fill:"none",stroke:`url(#${n})`,strokeWidth:"50",strokeLinecap:"round"})})]}),t.jsx("span",{className:"pass-card-bg__symbol pass-card-bg-sound-line__symbol",style:{"--symbol-url":`url("${Jn}")`}})]})}const qC={text:"#1a1a1a",sub:"var(--color-lightGray)",logoBase:"Logo_speechear_kr",copyrightColor:"var(--color-main)"};function UC(e={}){const n=rt(qC,tn,nn);return t.jsxs("div",{ref:n,className:"pass-card-bg pass-card-bg-talk-v1","aria-hidden":"true",children:[t.jsx("div",{className:"pass-card-bg-talk-v1__shape pass-card-bg-talk-v1__shape--left"}),t.jsx("div",{className:"pass-card-bg-talk-v1__shape pass-card-bg-talk-v1__shape--right"}),t.jsx("span",{className:"pass-card-bg__symbol pass-card-bg-talk-v1__symbol",style:{"--symbol-url":`url("${Jn}")`}})]})}function GC(e,n){if(e){if(n==="manager_pro")return t.jsx(UC,{});if(n==="manager_standard")return t.jsx(WC,{});if(n==="manager_lite")return t.jsx(mi,{})}}function KC(e){const n=Kn(e);if(!n)return null;const a=n.match(/^([^\d]*)([\d.,]+)(.*)$/);if(!a)return n;const[,r,o,s]=a;return t.jsxs(t.Fragment,{children:[r&&t.jsx("span",{className:"payment-plan__pricing-symbol h4",children:r}),o,s.trim()&&t.jsx("span",{className:"payment-plan__pricing-symbol h4",children:s.trim()})]})}function ZC(e){const{t:n}=de.useTranslation(),a=n("payment.plan.tierFallback",{defaultValue:"\uC774\uC6A9\uAD8C"}),r=n("payment.plan.openPromo",{defaultValue:"\uC624\uD508 \uD2B9\uAC00"}),{plan:o,onSelect:s,period:l="monthly",ownedCodes:c}=e||{},u=_=>!!_&&!!c?.includes(_),d=(o.tiers||[]).some(_=>/오픈\s*특가/.test(_.label??"")&&u(_.code)),p=_=>{const v=_.prices?_.prices[l]:_.price;return v?(o.tiers||[]).some(A=>!!A.badge&&A.originals?.[l]===v):!1},h=o.colorToken?`var(--color-${o.colorToken})`:"var(--color-gray)",m=n("payment.plan.freePrice","\uBB34\uB8CC"),C=n("payment.products.mgrEnterprise.tier.price","\uBB38\uC758"),f=_=>_.prices?_.prices[l]:_.price,b=(o.tiers||[]).length>0&&(o.tiers||[]).every(_=>{const v=f(_);return v==="\uBB34\uB8CC"||v===m||v==="0\uC6D0"}),g=(o.tiers||[]).length>0&&(o.tiers||[]).every(_=>{const v=f(_);return v==="\uBB38\uC758"||v===C}),y=o.group==="org",w=y?"manager":"speechear";return t.jsxs("div",{className:"payment-plan__card",style:{borderColor:h,"--plan-color":h},children:[o.cardBadge&&t.jsx("div",{className:"payment-plan__card-badge",children:t.jsx(lt,{label:o.cardBadge,variant:"main",size:"medium",fill:"soft"})}),t.jsxs("div",{className:"payment-plan__title",children:[t.jsx("p",{className:"payment-plan__quote body-3b",style:{color:h},children:o.quote||"\xA0"}),t.jsx("h3",{className:"payment-plan__title-heading h1",children:o.tier??o.title}),t.jsx("p",{className:"payment-plan__subtitle body-3",children:o.subtitle})]}),t.jsxs("div",{className:"payment-plan__box",children:[t.jsx("span",{className:"payment-plan__box-title body-3b",children:n("payment.plan.recommendedFor","\uC774\uB7F0 \uBD84\uAED8 \uCD94\uCC9C\uD569\uB2C8\uB2E4.")}),t.jsx("ul",{className:"payment-plan__feature-list",children:(o.recommendedFor||[]).map((_,v)=>t.jsxs("li",{className:"payment-plan__feature-item body-3",children:[t.jsx(Oe,{icon:"check",size:18,className:"payment-plan__feature-check",wrapperStyle:{color:h}}),_]},v))})]}),t.jsxs("div",{className:"payment-plan__box",children:[t.jsx("span",{className:"payment-plan__box-title body-3b",children:n("payment.plan.features","\uD575\uC2EC \uAE30\uB2A5")}),t.jsx("ul",{className:"payment-plan__feature-list",children:(o.features||[]).map((_,v)=>t.jsxs("li",{className:"payment-plan__feature-item body-3",children:[t.jsx(Oe,{icon:"check",size:18,className:"payment-plan__feature-check",wrapperStyle:{color:h}}),_]},v))})]}),t.jsx("div",{className:"payment-plan__card-pricing",children:b?null:g?t.jsx(ae,{className:"payment-plan__contact-button",label:n("payment.plan.contact",{defaultValue:"\uBB38\uC758\uD558\uAE30"}),variant:"main",size:56,onClick:()=>o.tiers?.[0]&&s?.({...o.tiers[0],productId:o.id,productTitle:o.title})}):t.jsx(t.Fragment,{children:t.jsx("div",{className:"payment-plan__pricing-list",children:(o.tiers||[]).map(_=>{const v=_.label||a,A=/오픈\s*특가/.test(v),x=A||_.openPromo===!0,k=v.replace(/^오픈\s*특가\s*/,"")||a,M=_.prices?_.prices[l]:_.price,N=_.badge?x?`${r}
|
|
832
|
-
${_.badge}`:_.badge:void 0;if(A&&u(_.code))return null;if(!_.badge&&!d)return p(_)?null:t.jsxs("div",{className:`payment-plan__pricing-row payment-plan__pricing-row--static${_.highlight?" payment-plan__pricing-row--highlight":""}`,children:[t.jsx("div",{className:"payment-plan__pricing-row-title",children:t.jsx("div",{className:"payment-plan__pricing-row-label h5b",children:_.label})}),t.jsx("div",{className:"payment-plan__pricing-row-price",children:t.jsx("span",{className:"payment-plan__pricing-current h1",children:KC(M)})})]},_.id);const D=o.tier??(y?o.title:void 0),P=t.jsx(Ci,{showPrice:!0,product:{type:w,code:_.code,name:k,label:D,price:M,originalPrice:_.originals?.[l]??void 0,discountLabel:N},bg:GC(y,o.id)}),L=()=>s?.({..._,productId:o.id,productTitle:o.title,preview:P});return t.jsx("div",{className:"payment-plan__pricing-card",onClick:L,onKeyDown:s?E=>{E.target===E.currentTarget&&(E.key==="Enter"||E.key===" ")&&(E.preventDefault(),L())}:void 0,role:s?"button":void 0,tabIndex:s?0:void 0,children:P},_.id)})})})})]})}function YC({variant:e="default"}){return t.jsxs("div",{className:`pass-card-bg pass-card-bg--${e}`,"aria-hidden":"true",children:[t.jsx("div",{className:"pass-card-bg__circle pass-card-bg__circle--1"}),t.jsx("div",{className:"pass-card-bg__circle pass-card-bg__circle--2"}),t.jsx("div",{className:"pass-card-bg__circle pass-card-bg__circle--3"})]})}var pr='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 gi={text:"#1a1a1a",sub:"var(--color-lightGray)",logoBase:"Logo_speechear_kr",copyrightColor:"#c9c9c9"};function XC(){const e=rt(gi,tn,nn);return t.jsx("div",{ref:e,className:"pass-card-bg pass-card-bg-ihab","aria-hidden":"true",children:t.jsx("span",{className:"pass-card-bg__symbol pass-card-bg-ihab__symbol-top",style:{"--symbol-url":`url("${pr}")`}})})}const bi={text:"#ffffff",sub:"var(--color-lightGray)",logoBase:"Logo_speechearManager_kr",logoColor:"_white",copyrightColor:"#ffffff"};function JC(e={}){const n=rt(bi,tn,nn);return t.jsxs("div",{ref:n,className:"pass-card-bg pass-card-bg-left-color-grid","aria-hidden":"true",children:[t.jsx("div",{className:"pass-card-bg-left-color-grid__bar"}),t.jsx("div",{className:"pass-card-bg-left-color-grid__grid"}),t.jsx("span",{className:"pass-card-bg__symbol pass-card-bg-left-color-grid__symbol",style:{"--symbol-url":`url("${Jn}")`}})]})}function yi({keys:e,anchor:n="top-right",scale:a,className:r=""}){const o=Array.isArray(e)?e:[e];return t.jsx("span",{className:ye("shortcut-badge",`shortcut-badge--${n}`,r),style:a===void 0?void 0:{"--shortcut-badge-scale":String(a)},children:o.map((s,l)=>t.jsxs("span",{className:"shortcut-badge__group",children:[l>0&&t.jsx("span",{className:"shortcut-badge__plus",children:"+"}),t.jsx("kbd",{className:"shortcut-badge__key",children:s})]},`${s}-${l}`))})}const Qn=(e,n,a)=>e+(n-e)*a;function QC({speakers:e,size:n=300,viewT:a=0,activeSpeakerId:r=null,playedIds:o,selectedId:s=null,answerId:l=null,showFeedback:c=!1,pulseSelected:u=!1,pulseSelectedDuration:d,pulseScale:p,clickable:h=!1,onSelectSpeaker:m,buttonSize:C=40,showIcon:f=!0,onCenterClick:b,centerLabel:g,centerDisabled:y=!1,centerAttention:w=!1,shortcutAnchor:_="top-right",shortcutScale:v,scaleShortcut:A=!1}){const x=Math.max(0,Math.min(1,a)),k=n/2,M=110/300,N=.18,D=T=>n*(M+(T-1)*N),P=T=>{const q=D(T.row??1),ee=T.angleDeg*Math.PI/180;return{x:k+q*Math.cos(ee),y:k+q*Math.sin(ee)}},L=Math.max(...e.map(T=>T.row??1),1),E=n*.08,R=n*.1,S=n*.24,V=n-2*E,Y=n-R-S,X=n-S/2,J=i.useMemo(()=>[...new Set(e.map(T=>T.deg))].sort((T,q)=>T-q),[e]),O=J.length,j=Math.max(68,O>1?V/(O-1):0),$=i.useMemo(()=>new Map(J.map((T,q)=>[T,q])),[J]),F=T=>{const q=$.get(T.deg)??0,ee=k+(q-(O-1)/2)*j,_e=L>1?Math.min(68,Y/(L-1)):0,ue=_e*(L-1),ie=R+(Y-ue)/2,te=L===1?R+Y*.4:ie+(L-(T.row??1))*_e;return{x:ee,y:te}},H=T=>{const q=P(T),ee=F(T);return{x:Qn(q.x,ee.x,x),y:Qn(q.y,ee.y,x)}},Z={x:k,y:Qn(k,X,x)},I=Math.round(C*1.2),W=Math.round(Math.max(16,Math.min(80,C*.7))),U=[],le=new Map;for(const T of e){const q=T.row??1;le.has(q)||le.set(q,[]),le.get(q).push(T)}for(const[T,q]of le.entries()){if(q.length<2)continue;const ee=[...q].sort((Ae,ze)=>Ae.deg-ze.deg),_e=ee.map(Ae=>H(Ae)),ue=ee.map(Ae=>Ae.deg),ie=ue[ue.length-1]-ue[0],te=ie/(ue.length-1),se=360-ie,Se=ee.length>=3&&te>0&&se<=te*1.5,He=Math.round(D(T)*1e3)/1e3,Ve=(Ae,ze,at,ge)=>{const Pe=(ze.angleDeg-Ae.angleDeg+540)%360-180;if(Pe===0)return`L ${ge.x} ${ge.y}`;if(x===0)return`A ${He} ${He} 0 0 ${Pe>0?1:0} ${ge.x} ${ge.y}`;const $e=(Ae.angleDeg+Pe/2)*Math.PI/180,Ke={x:k+He*Math.cos($e),y:k+He*Math.sin($e)},Ze={x:(at.x+ge.x)/2,y:(at.y+ge.y)/2},Ue={x:Qn(Ke.x,Ze.x,x),y:Qn(Ke.y,Ze.y,x)},Ie={x:2*Ue.x-Ze.x,y:2*Ue.y-Ze.y};return`Q ${Ie.x} ${Ie.y} ${ge.x} ${ge.y}`},Re=Se?[...ee,ee[0]]:ee,Ee=Se?[..._e,_e[0]]:_e;let je=`M ${Ee[0].x} ${Ee[0].y}`;for(let Ae=1;Ae<Ee.length;Ae++)je+=" "+Ve(Re[Ae-1],Re[Ae],Ee[Ae-1],Ee[Ae]);U.push({key:`arc-${T}`,d:je})}const pe=i.useMemo(()=>new Set(o??[]),[o]),Ce=T=>{if(r===T.id)return"active";if(c){if(T.id===l)return"correct";if(T.id===s&&s!==l)return"wrong"}return pe.has(T.id)?"played":"idle"},ve=T=>r===T.id?"loop":c?T.id===l?"loop":null:u&&T.id===s?"once":null,he=(T,q)=>{switch(T){case"played":case"correct":return t.jsx(lo,{size:q});case"wrong":return t.jsx(yo,{size:q});default:return t.jsx(bo,{size:q})}};return t.jsx("div",{className:"sound-compass",children:t.jsxs("div",{className:"sound-compass__compass-wrap",style:{width:n,height:n},children:[t.jsxs("svg",{width:n,height:n,viewBox:`0 0 ${n} ${n}`,className:"sound-compass__svg",children:[x===0&&e.map(T=>{const{x:q,y:ee}=H(T);return t.jsx("line",{x1:Z.x,y1:Z.y,x2:q,y2:ee,stroke:"#dde3ec",strokeWidth:"1"},T.id)}),U.map(T=>t.jsx("path",{d:T.d,fill:"none",stroke:"#dde3ec",strokeWidth:"1"},T.key))]}),w&&!y&&t.jsx("div",{className:"sound-compass__pulse sound-compass__pulse--active sound-compass__pulse--center",style:{width:I,height:I,left:Z.x-I/2,top:Z.y-I/2}}),b?t.jsx("button",{type:"button",className:`sound-compass__center sound-compass__center--button${y?" sound-compass__center--disabled":""}`,style:{width:I,height:I,left:Z.x,top:Z.y},"aria-label":g,"aria-disabled":y||void 0,tabIndex:y?-1:0,onClick:y?void 0:b,children:t.jsx(La,{size:W,color:"currentColor",strokeWidth:1.5})}):t.jsx("div",{className:"sound-compass__center",style:{width:I,height:I,left:Z.x,top:Z.y},children:t.jsx(La,{size:W,color:"currentColor",strokeWidth:1.5})}),e.map((T,q)=>{const{x:ee,y:_e}=H(T),ue=Ce(T),ie=ve(T),te={...v!==void 0||A?{"--shortcut-badge-scale":String(v??Math.max(.75,Math.min(3,C/56)))}:null,pointerEvents:h?"auto":"none",cursor:h?"pointer":"default",zIndex:ue!=="idle"?10:1},se=C,Se=Math.round(Math.max(10,Math.min(56,se*.38))),He=Math.round(Math.max(7,Math.min(18,se*.2))),Ve=Math.round(Math.max(10,Math.min(56,se*.4))),Re=f==="answered"&&(ue==="played"||ue==="correct"||ue==="wrong"),Ee=f===!0||Re,je=!Re;return t.jsxs("div",{className:"sound-compass__speaker-pos",style:{...te,left:ee-se/2,top:_e-se/2},children:[ie&&t.jsx("div",{className:`sound-compass__pulse sound-compass__pulse--${ue}`+(ie==="once"?" sound-compass__pulse--once":""),style:{width:se,height:se,...ie==="once"&&d!==void 0?{"--sc-pulse-duration-once":`${d}ms`}:null,...p!==void 0?{"--sc-pulse-scale":String(p)}:null}}),t.jsxs("button",{type:"button",tabIndex:h?0:-1,"aria-disabled":h?void 0:!0,onClick:h?()=>m?.(T.id):void 0,className:`sound-compass__speaker-btn sound-compass__speaker-btn--${ue}`,style:{width:se,height:se},"aria-label":T.label,children:[Ee&&he(ue,Se),je&&t.jsx("span",{className:"sound-compass__speaker-number",style:{fontSize:f===!0?He:Ve},children:q+1})]}),T.shortcut&&t.jsx(yi,{keys:T.shortcut,anchor:_,className:"sound-compass__speaker-shortcut"})]},T.id)})]})})}function eg({children:e,position:n="top-left",size:a=24,className:r=""}){return t.jsx("span",{className:ye("circle-badge","circle-badge--number",`circle-badge--${a}`,`circle-badge--${n}`,r),children:e})}function tg({orientation:e="horizontal",label:n,className:a=""}){const r=ye("divider",`divider--${e}`,n&&e==="horizontal"?"divider--labeled":"",a);return e==="vertical"?t.jsx("div",{className:r,role:"separator","aria-orientation":"vertical"}):n?t.jsxs("div",{className:r,role:"separator","aria-orientation":"horizontal",children:[t.jsx("span",{className:"divider__line"}),t.jsx("span",{className:"divider__label caption-1",children:n}),t.jsx("span",{className:"divider__line"})]}):t.jsx("div",{className:r,role:"separator","aria-orientation":"horizontal"})}function vi({checked:e,onChange:n,name:a,value:r,disabled:o=!1,label:s,className:l=""}){const c=i.useId();return t.jsxs("label",{className:`radio${o?" radio--disabled":""} ${l}`.trim(),htmlFor:c,children:[t.jsx("input",{id:c,type:"radio",name:a,value:r,checked:e,disabled:o,onChange:u=>n?.(u.target.checked)}),t.jsx("span",{className:"radio__dot"}),s&&t.jsx("span",{className:"radio__label body-2",children:s})]})}function ng({options:e,value:n,onChange:a,name:r,disabled:o=!1,direction:s="vertical",className:l="",ariaLabel:c}){const u=i.useId(),d=r??`radio-group-${u}`;return t.jsx("div",{className:`radio-group radio-group--${s} ${l}`.trim(),role:"radiogroup","aria-label":c,children:e.map(p=>t.jsx(vi,{name:d,value:p.value,checked:n===p.value,disabled:o||p.disabled,label:p.label,onChange:h=>{h&&a?.(p.value)}},p.value))})}const ag={info:"info",success:"check-circle",warning:"alert-triangle",danger:"alert-circle"};function rg({tone:e="info",title:n,message:a,children:r,dismissible:o=!1,onDismiss:s,className:l=""}){const{t:c}=de.useTranslation(),[u,d]=i.useState(!1),p=i.useCallback(()=>{d(!0),s?.()},[s]);if(u)return null;const h=ye("alert",`alert--${e}`,l),m=!!n,C=!!(a||r);return t.jsxs("div",{className:h,role:"alert",children:[t.jsxs("div",{className:"alert__body",children:[t.jsxs("div",{className:"alert__header",children:[t.jsx(Oe,{icon:ag[e],size:20,className:"alert__icon"}),m&&t.jsx("span",{className:"alert__title body-2",children:n}),!m&&C&&t.jsx("div",{className:"alert__message body-3",children:a??r})]}),m&&C&&t.jsx("div",{className:"alert__message alert__message--indented body-3",children:a??r})]}),o&&t.jsx("button",{type:"button",className:"alert__dismiss",onClick:p,"aria-label":c("common.close","\uB2EB\uAE30"),children:"\xD7"})]})}const og={ready:"search",guide:"info",error:"circle-alert"};function sg(e,n){const a=n.filter(Boolean);if(a.length===0)return e;const r=[];let o=0,s=0;for(const l of a){const c=e.indexOf(l,o);c<0||(c>o&&r.push(e.slice(o,c)),r.push(t.jsx("strong",{className:"search-summary__em body-2",children:l},s++)),o=c+l.length)}return o<e.length&&r.push(e.slice(o)),r}function ig({status:e="guide",label:n,children:a,emphasis:r,icon:o,className:s=""}){const l=o===!1?null:o??og[e],c=ye("search-summary",`search-summary--${e}`,s),u=n??a,d=typeof u=="string"&&r&&r.length>0?sg(u,r):u;return t.jsxs("div",{className:c,role:"status","aria-live":"polite",children:[l!=null&&t.jsx(Oe,{icon:l,size:18,className:"search-summary__icon"}),t.jsx("span",{className:"search-summary__text body-2",children:d})]})}function ea({title:e,items:n}){const{t:a}=de.useTranslation(),{anchorRect:r,openAt:o,close:s}=fa();return t.jsxs(t.Fragment,{children:[t.jsx(ae,{size:24,type:"dot",icon:"info",variant:"transparent-gray",useBorder:!1,selected:!!r,ariaLabel:a("common.info","\uC124\uBA85"),onPointerEnter:l=>o(l.currentTarget),onPointerLeave:s,onFocus:l=>o(l.currentTarget),onBlur:s}),r&&t.jsx(_n,{title:e,items:n,showIndex:n.length>1,anchorRect:r,onClose:s})]})}function lg({items:e=[],value:n,onChange:a,className:r="",size:o=40}){const s=i.useId(),{t:l}=de.useTranslation(),c=i.useRef(null),u=n??e[0]?.key,d=()=>Array.from(c.current?.querySelectorAll('[role="tab"]:not(:disabled)')??[]),p=(C,f=d())=>{if(f.length===0)return;const b=(C%f.length+f.length)%f.length;f[b]?.focus(),f[b]?.click()},h=C=>{if(!["ArrowRight","ArrowDown","ArrowLeft","ArrowUp","Home","End"].includes(C.key))return;C.preventDefault();const f=d(),b=f.indexOf(C.currentTarget);C.key==="ArrowRight"||C.key==="ArrowDown"?p(b+1,f):C.key==="ArrowLeft"||C.key==="ArrowUp"?p(b-1,f):C.key==="Home"?p(0,f):p(f.length-1,f)},m=e.find(C=>C.key===u);return t.jsxs("div",{className:`tabs ${r}`.trim(),children:[t.jsx("div",{ref:c,className:`tabs__list tabs__list--${o}`,role:"tablist","aria-label":l("tabs.ariaLabel","\uD0ED"),children:e.map(C=>t.jsx("button",{id:`tabs__tab-${s}-${C.key}`,type:"button",role:"tab","aria-selected":C.key===u,"aria-controls":`tabs__panel-${s}-${C.key}`,disabled:C.disabled,tabIndex:C.key===u?0:-1,className:`tabs__tab body-2${C.key===u?" tabs__tab--active":""}`,onClick:()=>a?.(C.key),onKeyDown:h,children:C.label},C.key))}),m&&t.jsx("div",{id:`tabs__panel-${s}-${m.key}`,role:"tabpanel","aria-labelledby":`tabs__tab-${s}-${m.key}`,tabIndex:0,className:"tabs__panel",children:m.panel},m.key)]})}const cg={xs:12,sm:16,md:20,lg:28,xl:36};function ug(e){const n=e.trim().split(/\s+/).filter(Boolean);return n.length===0?"":n.length===1?[...n[0]].slice(0,2).join("").toUpperCase():([...n[0]][0]+[...n[n.length-1]][0]).toUpperCase()}function dg({src:e,name:n,size:a="md",shape:r="circle",className:o=""}){const{t:s}=de.useTranslation(),[l,c]=i.useState(null),u=!!e&&l===e,d=n?ug(n):"",p=!!e&&!u,h=!p&&!!d,m=n||s("avatar.ariaLabel","\uC0AC\uC6A9\uC790 \uC544\uBC14\uD0C0");return t.jsxs("span",{className:`avatar avatar--${a} avatar--${r} ${o}`.trim(),role:"img","aria-label":m,children:[p&&t.jsx("img",{className:"avatar__image",src:e,alt:m,onError:()=>c(e??null)}),!p&&h&&t.jsx("span",{className:"avatar__initials","aria-hidden":"true",children:d}),!p&&!h&&t.jsx(Oe,{icon:"user-round",size:cg[a],className:"avatar__icon"})]})}function pg(e,n){if(!n)return!0;const a=n.split(",").map(s=>s.trim()).filter(Boolean);if(a.length===0)return!0;const r=e.name.toLowerCase(),o=e.type.toLowerCase();return a.some(s=>{const l=s.toLowerCase();return l.startsWith(".")?r.endsWith(l):l.endsWith("/*")?o.startsWith(l.slice(0,-1)):o===l})}function hg({onFilesSelected:e,accept:n,multiple:a=!1,disabled:r=!1,showFileList:o=!0,files:s,onRemove:l,className:c=""}){const{t:u}=de.useTranslation(),d=i.useRef(null),[p,h]=i.useState(!1),[m,C]=i.useState([]),f=s??m,b=x=>{if(!x||x.length===0)return;const k=Array.from(x).filter(N=>pg(N,n));if(k.length===0)return;const M=a?k:k.slice(0,1);if(s===void 0){const N=a?[...f,...M]:M;C(N),e?.(N)}else e?.(M)},g=x=>{x.preventDefault(),!r&&h(!0)},y=x=>{x.preventDefault(),h(!1)},w=x=>{x.preventDefault(),h(!1),!r&&b(x.dataTransfer.files)},_=x=>{b(x.target.files),x.target.value=""},v=()=>{r||d.current?.click()},A=x=>{if(l){l(x);return}if(s===void 0){const k=f.filter((M,N)=>N!==x);C(k),e?.(k)}};return t.jsxs("div",{className:`file-upload ${c}`.trim(),children:[t.jsxs("div",{className:ye("file-upload__dropzone",p&&"file-upload__dropzone--dragging",r&&"file-upload__dropzone--disabled"),role:"button",tabIndex:r?-1:0,"aria-disabled":r,onClick:v,onKeyDown:x=>{(x.key==="Enter"||x.key===" ")&&(x.preventDefault(),v())},onDragOver:g,onDragLeave:y,onDrop:w,children:[t.jsx(Oe,{icon:"upload",size:24,className:"file-upload__icon"}),t.jsx("span",{className:"file-upload__prompt body-2",children:u("fileUpload.dragPrompt","\uD30C\uC77C\uC744 \uC774\uACF3\uC5D0 \uB4DC\uB798\uADF8\uD558\uC5EC \uC5C5\uB85C\uB4DC")}),t.jsx("button",{type:"button",className:"file-upload__browse-button body-3",disabled:r,onClick:x=>{x.stopPropagation(),v()},children:u("fileUpload.browseButton","\uD30C\uC77C \uC120\uD0DD")}),t.jsx("input",{ref:d,type:"file",className:"file-upload__input",accept:n,multiple:a,disabled:r,onChange:_,tabIndex:-1})]}),o&&f.length>0&&t.jsx("ul",{className:"file-upload__list",children:f.map((x,k)=>t.jsxs("li",{className:"file-upload__list-item body-3",children:[t.jsx("span",{className:"file-upload__file-name body-3",children:x.name}),t.jsx("button",{type:"button",className:"file-upload__remove-button","aria-label":u("fileUpload.removeAriaLabel",{name:x.name}),onClick:()=>A(k),children:t.jsx(Oe,{icon:"x",size:14})})]},`${x.name}-${k}`))})]})}function mg({items:e,className:n=""}){return t.jsx("nav",{className:`breadcrumb ${n}`.trim(),"aria-label":"breadcrumb",children:t.jsx("ol",{className:"breadcrumb__list",children:e.map((a,r)=>{const o=r===e.length-1;return t.jsxs("li",{className:"breadcrumb__item",children:[o?t.jsx("span",{className:"breadcrumb__current body-3","aria-current":"page",children:a.label}):t.jsx("button",{type:"button",className:"breadcrumb__link body-3",onClick:a.onClick,children:a.label}),!o&&t.jsx(Oe,{icon:"chevron-right",size:14,className:"breadcrumb__separator"})]},r)})})})}const fg={small:14,medium:20,large:28};function Cg({value:e,onChange:n,max:a=5,readOnly:r=!1,size:o="medium",ariaLabel:s,className:l=""}){const{t:c}=de.useTranslation(),u=r||!n,[d,p]=i.useState(null),h=d??e,m=fg[o],C=v=>{u||n?.(v)},f=v=>{u||p(v)},b=i.useRef(null),g=v=>{const A=Math.min(a,Math.max(1,v));n?.(A),Array.from(b.current?.querySelectorAll("[data-star]")??[]).find(x=>x.dataset.star===String(A))?.focus()},y=v=>{if(!u){switch(v.key){case"ArrowRight":case"ArrowUp":g((e||0)+1);break;case"ArrowLeft":case"ArrowDown":g((e||1)-1);break;case"Home":g(1);break;case"End":g(a);break;default:return}v.preventDefault()}},w=e>=1&&e<=a?Math.round(e):1,_=()=>{u||p(null)};return t.jsx("div",{className:`rating rating--${o}${u?" rating--readOnly":""} ${l}`.trim(),ref:b,onKeyDown:y,role:u?"img":"radiogroup","aria-label":u?c("rating.valueLabel",{value:e,max:a}):s??c("rating.groupLabel","\uBCC4\uC810"),onMouseLeave:_,children:Array.from({length:a},(v,A)=>{const x=A+1,k=Math.max(0,Math.min(1,h-A)),M=k>0&&k<1,N=t.jsxs("span",{className:"rating__star-wrap",children:[t.jsx(Oe,{icon:"star",size:m,className:"rating__star rating__star--empty"}),k>0&&t.jsx("span",{className:`rating__star-fill${M?" rating__star-fill--half":""}`,children:t.jsx(Oe,{icon:"star",size:m,className:"rating__star rating__star--filled"})})]});return u?t.jsx("span",{className:"rating__item","aria-hidden":"true",children:N},x):t.jsx("button",{type:"button",className:"rating__item rating__item--interactive",role:"radio","aria-checked":e===x,"aria-label":c("rating.starLabel",{n:x}),"data-star":x,tabIndex:x===w?0:-1,onClick:()=>C(x),onMouseEnter:()=>f(x),children:N},x)})})}const gg=20,bg=["#499cdf","#4dcdc0","#2fae9e","#e6b94e","#d9534f","#e06b68","#bfc7d1"];function yg({value:e,onChange:n,palette:a=bg,size:r=40,className:o="",ariaLabel:s}){const{t:l}=de.useTranslation();return t.jsx("div",{className:`color-picker ${o}`.trim(),role:"group","aria-label":s,children:a.map(c=>{const u=e?.toLowerCase()===c.toLowerCase();return t.jsx("button",{type:"button",className:`color-picker__swatch color-picker__swatch--${r}`,style:{backgroundColor:c},onClick:()=>n(c),"aria-pressed":u,"aria-label":u?`${c} ${l("colorPicker.selected","\uC120\uD0DD\uB428")}`:c,children:u&&t.jsx(Oe,{icon:"check",size:gg,className:"color-picker__check"})},c)})})}function vg({icon:e,count:n,title:a,className:r="",onClick:o,onMouseEnter:s,onMouseLeave:l}){const c=ye("count-tile",o&&"count-tile--clickable",r);return t.jsxs("div",{className:c,onClick:o,onKeyDown:o?u=>{u.key!=="Enter"&&u.key!==" "||(u.preventDefault(),u.currentTarget.click())}:void 0,onMouseEnter:s,onMouseLeave:l,role:o?"button":"img",tabIndex:o?0:void 0,"aria-label":a?`${a} ${n}`:String(n),children:[t.jsx(Oe,{icon:e,size:20,className:"count-tile__icon"}),t.jsx("span",{className:"count-tile__count h5","aria-hidden":"true",children:n})]})}function xg(){return t.jsx("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round","aria-hidden":!0,children:t.jsx("path",{d:"M6 6l12 12M18 6 6 18"})})}function _g({open:e,onClose:n,ariaLabel:a,title:r,children:o,size:s="md",closeOnBackdrop:l=!0,closeOnEscape:c=!0,showClose:u=!0,className:d,contentClassName:p}){const{t:h}=de.useTranslation(),m=i.useId(),C=i.useRef(null),f=i.useCallback(()=>n(),[n]);return i.useEffect(()=>{if(!e)return;const b=document.activeElement,{overflow:g}=document.body.style;return document.body.style.overflow="hidden",C.current?.focus(),()=>{document.body.style.overflow=g,b?.focus?.()}},[e]),i.useEffect(()=>{if(!(!e||!c))return lr(f)},[e,c,f]),tr(C,e),!e||typeof document>"u"?null:It.createPortal(t.jsx("div",{className:ye("dialog",d),onClick:l?f:void 0,children:t.jsxs("div",{ref:C,role:"dialog","aria-modal":"true","aria-label":r?void 0:a,"aria-labelledby":r?m:void 0,tabIndex:-1,className:ye("dialog__surface",`dialog__surface--${s}`,p),onClick:b=>b.stopPropagation(),children:[r?t.jsx("div",{className:"dialog__header",children:t.jsx("h2",{id:m,className:"dialog__title h4b",children:r})}):null,u?t.jsx("button",{type:"button",className:"dialog__close","aria-label":h("common.close","\uB2EB\uAE30"),onClick:f,children:t.jsx(xg,{})}):null,t.jsx("div",{className:"dialog__body",children:o})]})}),document.body)}function wg({columns:e,rows:n,rowKey:a,title:r,toolbar:o,empty:s="\uB4F1\uB85D\uB41C \uD56D\uBAA9\uC774 \uC5C6\uC2B5\uB2C8\uB2E4.",loading:l,caption:c,className:u=""}){const d=!l&&n.length===0;return t.jsxs("div",{className:ye("board",u),children:[r||o?t.jsxs("div",{className:"board__head",children:[r?t.jsx("h2",{className:"board__title",children:r}):t.jsx("span",{}),o?t.jsx("div",{className:"board__toolbar",children:o}):null]}):null,t.jsxs("table",{className:"board__table",children:[c?t.jsx("caption",{className:"board__caption",children:c}):null,t.jsx("thead",{children:t.jsx("tr",{children:e.map(p=>t.jsx("th",{scope:"col",className:ye("board__th",`board__cell--${p.headerAlign??p.align??"left"}`),style:p.width?{width:p.width}:void 0,children:p.header},p.key))})}),t.jsx("tbody",{children:l?t.jsx("tr",{children:t.jsx("td",{className:"board__state",colSpan:e.length,children:l})}):d?t.jsx("tr",{children:t.jsx("td",{className:"board__state",colSpan:e.length,children:s})}):n.map((p,h)=>t.jsx("tr",{className:"board__row",children:e.map(m=>t.jsx("td",{className:ye("board__td",`board__cell--${m.align??"left"}`),children:m.render(p,h)},m.key))},a(p,h)))})]})]})}function kg({name:e,role:n,photo:a,media:r,credentials:o,size:s=190,className:l=""}){return t.jsxs("div",{className:ye("person-card",l),children:[t.jsx("div",{className:"person-card__photo",style:{width:s,height:s},children:r??(a?t.jsx("img",{src:a,alt:n?`${e} ${n}`:e}):null)}),t.jsx("h3",{className:"person-card__name",children:e}),n?t.jsx("p",{className:"person-card__role",children:n}):null,o?.length?t.jsx("ul",{className:"person-card__credentials",children:o.map(c=>t.jsx("li",{children:c},c))}):null]})}function Ag({groups:e,className:n=""}){return t.jsx("div",{className:ye("timeline",n),children:e.map(a=>t.jsxs("section",{className:"timeline__group",children:[t.jsx("h3",{className:"timeline__title",children:a.title}),t.jsx("ul",{className:"timeline__rows",children:a.entries.map((r,o)=>t.jsxs("li",{className:"timeline__row",children:[r.label?t.jsx("span",{className:"timeline__label",children:r.label}):null,t.jsx("div",{className:"timeline__items",children:r.items.map((s,l)=>t.jsx("p",{children:s},l))})]},`${r.label??""}-${o}`))})]},a.title))})}function Ng({title:e,kind:n,body:a,badge:r,badgeSrc:o,footer:s,width:l,className:c=""}){const u=r??(o?t.jsx("img",{src:o,alt:""}):null);return t.jsxs("div",{className:ye("publication-card",c),style:l?{width:l,flexShrink:0}:void 0,children:[u?t.jsx("div",{className:"publication-card__badge","aria-hidden":"true",children:u}):null,t.jsx("h3",{className:"publication-card__title",children:e}),n?t.jsx("p",{className:"publication-card__kind",children:n}):null,t.jsx("p",{className:"publication-card__body",children:a}),s?t.jsx("div",{className:"publication-card__footer",children:s}):null]})}function Bg({logo:e,alt:n,onDone:a,durationMs:r=3e3}){const o=rr(a);return i.useEffect(()=>{if(!o.current)return;const s=setTimeout(()=>o.current?.(),r);return()=>clearTimeout(s)},[r,o]),t.jsx("div",{className:"splash-logo",style:{"--splash-logo-duration":`${r}ms`},"aria-hidden":"true",children:t.jsx("img",{src:e,alt:n,className:"splash-logo__image"})})}function Sg({eyebrow:e,eyebrowIndex:n,title:a,description:r,level:o=2,tone:s="dark",className:l=""}){const c=o===1?"h1":"h2";return t.jsxs("div",{className:ye("section-header",`section-header--${s}`,l),children:[e?t.jsxs("p",{className:"section-header__eyebrow",children:[n?t.jsxs(t.Fragment,{children:[t.jsx("span",{className:"section-header__index",children:n}),t.jsx("span",{"aria-hidden":!0,className:"section-header__rule"})]}):null,e]}):null,a?t.jsx(c,{className:"section-header__title",children:a}):null,r?t.jsx("div",{className:"section-header__description",children:r}):null]})}function Dg({items:e,className:n=""}){return t.jsx("ul",{className:ye("company-meta",n),children:e.map((a,r)=>t.jsxs("li",{className:"company-meta__item",children:[r>0?t.jsx("span",{"aria-hidden":!0,className:"company-meta__divider",children:"|"}):null,a]},a))})}function xi({value:e,onChange:n,suggestions:a,openOnFocus:r=!1}){const o=i.useId(),[s,l]=i.useState(!1),[c,u]=i.useState(-1),d=i.useRef(null),p=i.useMemo(()=>{if(!a.length)return[];const b=e??"";return b?a.filter(g=>g.toLowerCase().includes(b.toLowerCase())):r?a:[]},[a,e,r]);i.useEffect(()=>{s||u(-1)},[s]),i.useEffect(()=>()=>{d.current&&clearTimeout(d.current)},[]);const h=i.useCallback(b=>{n?.(b),l(!1)},[n]),m=i.useCallback(()=>l(!0),[]),C=i.useCallback(()=>{d.current=setTimeout(()=>l(!1),120)},[]),f=i.useCallback(b=>{b.key==="ArrowDown"?(b.preventDefault(),l(!0),u(g=>Math.min(p.length-1,g+1))):b.key==="ArrowUp"?(b.preventDefault(),u(g=>Math.max(-1,g-1))):b.key==="Enter"?c>=0&&!b.nativeEvent.isComposing&&h(p[c]):b.key==="Escape"&&s&&(b.preventDefault(),l(!1))},[p,c,s,h]);return{listId:o,open:s,activeIdx:c,filtered:p,handleFocus:m,handleBlur:C,handleKeyDown:f,handleSelect:h}}function kn(e){const{value:n,defaultValue:a,name:r,inputRef:o,onChange:s,label:l,ariaLabel:c,required:u,placeholder:d,type:p="text",disabled:h=!1,readOnly:m=!1,error:C,helperText:f,maxLength:b,size:g=48,variant:y="input",fullWidth:w=!1,newline:_=!1,multiline:v=!1,rows:A=3,leftIcon:x,rightIcon:k,clearable:M=!1,list:N,showCount:D=!0,className:P="",onFocus:L,onBlur:E,onKeyDown:R,onEnter:S,inputMode:V,autoComplete:Y,autoFocus:X,suggestions:J,openOnFocus:O=!1}=e,{t:j}=de.useTranslation(),$=i.useId();!l&&!c&&Fn(`TextField:unnamed:${$}`,"[ihab/TextField] \uC774\uB984\uC774 \uC5C6\uC2B5\uB2C8\uB2E4 \u2014 label \uC774\uB098 ariaLabel \uC911 \uD558\uB098\uB97C \uC8FC\uC138\uC694. placeholder \uB294 \uC774\uB984\uC744 \uB300\uC2E0\uD558\uC9C0 \uBABB\uD569\uB2C8\uB2E4.");const F=`tf-${$}`,H=`tf-helper-${$}`,Z=i.useRef(null),I=xi({value:n??"",onChange:s,suggestions:J??[],openOnFocus:O}),W=!!J&&I.open&&I.filtered.length>0,U=i.useCallback(te=>{Z.current=te,typeof o=="function"?o(te):o&&(o.current=te)},[o]),le=n!==void 0,pe=le&&p==="password",Ce=(n??"").length;i.useEffect(()=>{const te=Z.current;if(!pe||!te)return;const se=n??"";te.value!==se&&(te.value=se)},[pe,n]),i.useEffect(()=>{if(!_||!Z.current)return;const te=Z.current;te.style.height="",te.scrollHeight>te.clientHeight&&(te.style.height=`${te.scrollHeight}px`)},[n,_]);const ve=b!=null&&Ce>b,he=g===32?16:20,T=ye("text-field",`text-field--s${g}`,y==="display"?"text-field--display":"",w?"text-field--full-width":"",h?"text-field--disabled":"",m?"text-field--readonly":"",C?"text-field--error":"",x?"text-field--has-left-icon":"",k||M?"text-field--has-right-icon":"",P),q={id:F,...pe?{}:le?{value:n}:{defaultValue:a},ref:U,placeholder:d,name:r,disabled:h,readOnly:m,autoFocus:X,maxLength:b,list:N,inputMode:V,autoComplete:Y,"aria-label":!l&&c?c:void 0,"aria-required":u,"aria-invalid":!!C,"aria-describedby":f||C?H:void 0,role:J?"combobox":void 0,"aria-autocomplete":J?"list":void 0,"aria-haspopup":J?"listbox":void 0,"aria-expanded":J?I.open:void 0,"aria-controls":W?I.listId:void 0,"aria-activedescendant":W&&I.activeIdx>=0?`${I.listId}-option-${I.activeIdx}`:void 0,onChange:te=>s?.(te.target.value),onFocus:(te=>{L?.(te),J&&I.handleFocus()}),onBlur:(te=>{E?.(te),J&&I.handleBlur()}),onKeyDown:(te=>{J&&te.key==="Enter"&&!te.nativeEvent.isComposing&&I.activeIdx>=0?te.preventDefault():S&&te.key==="Enter"&&!te.nativeEvent.isComposing&&(te.preventDefault(),S()),R?.(te),J&&I.handleKeyDown(te)})},ee=M&&!h&&!m&&Ce>0,_e=()=>_?t.jsx("textarea",{...q,className:"text-field__input text-field__input--auto body-2",rows:1}):v?t.jsx("textarea",{...q,className:"text-field__input text-field__input--textarea body-2",rows:A}):t.jsx("input",{...q,type:p,className:"text-field__input body-2"}),ue=y==="display"&&!_&&!v&&!!d,ie=()=>t.jsxs(t.Fragment,{children:[_e(),ue&&t.jsx("span",{className:"text-field__placeholder","aria-hidden":"true",children:d})]});return t.jsxs("div",{className:T,children:[l&&t.jsxs("label",{htmlFor:F,className:"text-field__label caption-1",children:[l,u&&t.jsx("span",{className:"text-field__required",children:"*"})]}),t.jsxs("div",{className:"text-field__wrap",children:[x&&t.jsx("span",{className:"text-field__icon text-field__icon--left",children:t.jsx(Oe,{icon:x,label:"",className:"",svgClassName:"text-field__icon-svg",size:he})}),ie(),b!=null&&D&&t.jsxs("span",{className:`text-field__count caption-2${ve?" text-field__count--over":""}`,children:[Ce,"/",b]}),ee&&t.jsx(ae,{size:24,type:"dot",icon:"x",variant:"transparent-gray",useBorder:!1,className:"text-field__clear",ariaLabel:j("textField.clearAriaLabel","\uC785\uB825\uAC12 \uC9C0\uC6B0\uAE30"),htmlType:"button",onMouseDown:te=>{te.preventDefault()},onClick:()=>s?.(""),tabIndex:-1}),k&&!ee&&t.jsx("span",{className:"text-field__icon text-field__icon--right",children:t.jsx(Oe,{icon:k,label:"",className:"",svgClassName:"text-field__icon-svg",size:he})})]}),J&&I.open&&I.filtered.length>0&&t.jsx("ul",{id:I.listId,className:"text-field__suggestions",role:"listbox",children:I.filtered.map((te,se)=>t.jsx("li",{id:`${I.listId}-option-${se}`,role:"option","aria-selected":se===I.activeIdx,className:`text-field__suggestion body-2${se===I.activeIdx?" is-active":""}`,onMouseDown:Se=>Se.preventDefault(),onClick:()=>{I.handleSelect(te),Z.current?.focus()},children:te},`${te}-${se}`))}),(f||C)&&t.jsx("div",{className:"text-field__footer",children:t.jsx("span",{id:H,className:"text-field__helper caption-1",role:C?"alert":void 0,children:C||f})})]})}function zt({options:e,value:n,onChange:a,placeholder:r,disabled:o=!1,block:s=!1,size:l=48,error:c=!1,className:u="",ariaLabel:d}){const{t:p}=de.useTranslation(),h=r??p("dropdown.placeholder","\uC120\uD0DD"),m=i.useId(),C=i.useRef(null),f=i.useCallback(E=>{const R=window.innerHeight-E.bottom<260&&E.top>260;return{position:"fixed",left:E.left,minWidth:E.width,...R?{bottom:window.innerHeight-E.top+6}:{top:E.bottom+6},zIndex:9999}},[]),{open:b,setOpen:g,toggle:y,style:w,triggerRef:_,menuRef:v}=Xn({computeStyle:f}),[A,x]=i.useState(-1),k=i.useCallback(()=>x(-1),[]),M=e.find(E=>E.value===n);i.useEffect(()=>{if(b){const E=e.findIndex(R=>R.value===n);x(E>=0?E:0),requestAnimationFrame(()=>{const R=v.current;if(!R)return;const S=R.querySelectorAll(".dropdown__option")[E];S&&(R.scrollTop=Math.max(0,S.offsetTop-R.clientHeight/2+S.clientHeight/2))})}},[b,e,n,v]);const N=i.useCallback(()=>{o||y()},[o,y]),D=i.useCallback(E=>{E.disabled||(a?.(E.value),g(!1))},[a,g]),P=i.useCallback(E=>{if(!o){if(!b){(E.key==="Enter"||E.key===" "||E.key==="ArrowDown")&&(E.preventDefault(),g(!0));return}if(E.key==="Escape"){E.preventDefault(),g(!1);return}E.key==="ArrowDown"?(E.preventDefault(),x(R=>{let S=R+1;for(;S<e.length&&e[S].disabled;)S++;return S<e.length?S:R})):E.key==="ArrowUp"?(E.preventDefault(),x(R=>{let S=R-1;for(;S>=0&&e[S].disabled;)S--;return S>=0?S:R})):E.key==="Enter"&&A>=0&&(E.preventDefault(),D(e[A]))}},[o,b,e,A,D,g]),L=b?t.jsx("div",{ref:v,id:m,className:"dropdown__menu",role:"listbox",style:w,onMouseLeave:k,children:e.map((E,R)=>t.jsxs("button",{id:`${m}-option-${R}`,type:"button",role:"option","aria-selected":E.value===n,className:ye("dropdown__option body-2",E.value===n?"dropdown__option--active":"",R===A?"dropdown__option--active":"",E.disabled?"dropdown__option--disabled":""),onMouseDown:S=>S.preventDefault(),onClick:()=>D(E),onMouseEnter:()=>x(R),disabled:E.disabled,children:[t.jsx("span",{className:"dropdown__option-check",children:E.value===n&&t.jsx("svg",{viewBox:"0 0 14 14",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",children:t.jsx("polyline",{points:"2 7 5.5 10.5 12 3.5"})})}),E.label]},E.value))}):null;return t.jsxs("div",{ref:C,className:ye("dropdown",`dropdown--s${l}`,b?"dropdown--open":"",s?"dropdown--block":"",c?"dropdown--error":"",u),onKeyDown:P,children:[t.jsxs("button",{ref:_,type:"button",className:"dropdown__trigger","aria-haspopup":"listbox","aria-expanded":b,"aria-controls":b?m:void 0,"aria-activedescendant":b&&A>=0?`${m}-option-${A}`:void 0,"aria-label":d,"aria-invalid":c||void 0,disabled:o,onClick:N,children:[t.jsx("span",{className:`dropdown__trigger-label body-2${M?"":" dropdown__trigger-label--placeholder"}`,children:M?M.label:h}),t.jsx("svg",{className:"dropdown__chevron",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:t.jsx("polyline",{points:"4 6 8 10 12 6"})})]}),typeof document<"u"&&It.createPortal(L,C.current?.closest(".ihabdevteam-core-scope")??document.body)]})}function ga({page:e,totalPages:n,onChange:a,prevLabel:r,nextLabel:o,className:s=""}){const{t:l}=de.useTranslation(),c=r??l("common.prevPage","\uC774\uC804 \uD398\uC774\uC9C0"),u=o??l("common.nextPage","\uB2E4\uC74C \uD398\uC774\uC9C0"),d=()=>a(Math.max(1,e-1)),p=()=>a(Math.min(n,e+1));return t.jsxs("div",{className:ye("pagination",s),children:[t.jsx(ae,{size:32,type:"dot",shape:"rounded",icon:"chevron-left",ariaLabel:c,disabled:e<=1,onClick:d}),t.jsxs("span",{className:"pagination__info body-3",children:[e," / ",n]}),t.jsx(ae,{size:32,type:"dot",shape:"rounded",icon:"chevron-right",ariaLabel:u,disabled:e>=n,onClick:p})]})}function An(e){const{t:n}=de.useTranslation(),{options:a=[],value:r=a[0]?.key,onChange:o=g=>{},className:s="",size:l=48,shape:c="pill",useBG:u=!0,fullWidth:d=!1,ariaLabel:p}=e||{},h=i.useRef(null),m=a.filter(g=>!g.disabled),C=g=>{if(!m.length)return;const y=Math.max(0,m.findIndex(_=>_.key===r)),w=g==="first"?m[0]:g==="last"?m[m.length-1]:m[(y+g+m.length)%m.length];w&&(o(w.key),Array.from(h.current?.querySelectorAll("[data-segkey]")??[]).find(_=>_.dataset.segkey===w.key)?.focus())},f=g=>{switch(g.key){case"ArrowRight":case"ArrowDown":C(1);break;case"ArrowLeft":case"ArrowUp":C(-1);break;case"Home":C("first");break;case"End":C("last");break;default:return}g.preventDefault()},b=m.some(g=>g.key===r)?r:m[0]?.key;return t.jsx("div",{ref:h,onKeyDown:f,className:ye("segmented-control",`segmented-control--${c}`,`segmented-control--${l}`,d&&"segmented-control--full",!u&&"segmented-control--no-bg",s),role:"radiogroup","aria-label":p??n("segmentedControl.ariaLabel","\uC120\uD0DD \uD0ED"),children:a.map(g=>t.jsx(ae,{role:"radio","aria-checked":g.key===r,"data-segkey":g.key,tabIndex:g.key===b?0:-1,label:g.label,count:g.count,disabled:g.disabled,className:g.key===r?"is-selected":"",onClick:()=>{g.disabled||o(g.key)},size:l,shape:c,useBorder:!1,useBG:!1},g.key))})}function hr({count:e,search:n,segment:a,filters:r,pageSize:o,pagination:s,actions:l,className:c}){const{t:u}=de.useTranslation(),d=e!=null&&t.jsxs("p",{className:"toolbar__count body-1",children:[e.prefix??u("common.totalPrefix","\uCD1D "),t.jsx("span",{className:"toolbar__count-highlight",children:e.value}),e.unit,e.suffix]}),p=!!(n||r?.length||o||s||l);return t.jsxs("div",{className:ye("toolbar",c),children:[t.jsxs("div",{className:"toolbar__row",children:[d,a&&(Array.isArray(a)?a:[a]).map((h,m)=>t.jsx(An,{size:40,...h},h.ariaLabel??m))]}),p&&t.jsx("div",{className:"toolbar__row",children:t.jsxs("div",{className:"toolbar__row-end",children:[n&&t.jsx(kn,{className:"toolbar__search",size:40,value:n.value,onChange:n.onChange,placeholder:n.placeholder??u("common.search","\uAC80\uC0C9"),ariaLabel:n.placeholder??u("common.search","\uAC80\uC0C9"),clearable:!0}),r?.map((h,m)=>t.jsx(zt,{size:40,options:h.options,value:h.value,onChange:h.onChange,ariaLabel:h.ariaLabel},m)),o&&t.jsx(zt,{size:40,options:o.options,value:o.value,onChange:o.onChange,ariaLabel:o.ariaLabel??u("common.pageSizeSelect","\uD398\uC774\uC9C0\uB2F9 \uD45C\uC2DC \uAC1C\uC218")}),s&&t.jsx(ga,{page:s.page,totalPages:s.total,onChange:s.onChange,prevLabel:s.prevLabel,nextLabel:s.nextLabel}),l]})})]})}function _i(e){return typeof e=="string"?e:typeof e=="number"?String(e):Array.isArray(e)?e.map(_i).join(""):""}function jg(e){let n=e.replace(/\r\n/g,`
|
|
831
|
+
and aids recovery.`,site:{title:"Site",malgwi:"Malgwi",soundDirection:"Sound Direction System",vrSoundDirection:"VR Sound Direction System",hearingTest:"Hearing Test Pro"},sns:{title:"SNS",naverBlog:"Naver Blog",kakao:"KAKAO Talk Open Chat"},policy:{title:"Policy",terms:"Terms of Service",privacy:"Privacy Policy"},ceo:"CEO",address:"Address",support:"Support",ceoName:"Ji-hye Han",addressValue:"302, 3F, Haechan Bldg, 32 Siocheong-gil, Chuncheon, Gangwon, Korea"},VC={trainingPhone:{topic:"Gardening",prev:"Prev",next:"Next",speed:"Speed 3",noiseType:"Crowd noise",settings:"Settings",start:{caption:"Press the play (\u25B6) button below and listen carefully. After listening, check the sentence."},feedback:{caption:"Plant the well-grown seedlings in the garden bed and cover them carefully with plastic film."},done:{heardWell:"Heard clearly",listenAgain:"Listen again"}}},zC={timeHM:"{{hh}}:{{mm}}",timeH:"{{hh}}:{{mm}}"},WC={options:"Training Options",difficulty:"Difficulty",exclude:"Exclude",chosung:"Initial Consonant",excludeOptions:{none:"None",noImage:"No Image"}},qC={answer:"Answer",distractor:"Distractor"},UC={phaseWordDownload:"Download Word Data",phaseImageCheck:"Check Images",phasePairAnalysis:"Analyze Word Pairs",downloadingCount:"Downloading {{n}} words",checkingPage:"Checking page {{page}} list",imageCount:"{{done}} / {{total}} items"},GC={clearAriaLabel:"Clear input"},KC={ariaLabel:"Select tab"},ZC={ariaLabel:"Tabs"},YC={dragPrompt:"Drag and drop files here",browseButton:"Choose Files",removeAriaLabel:"Remove {{name}}"},XC={ariaLabel:"User avatar"},JC={relativeDay:{today:"Today",yesterday:"Yesterday",daysAgo:"{{n}}d ago"},reason:{notLoggedIn:"Login required."},list:{title:"Received Homework"},status:{expired:"Expired",done:"Done {{count}}\xD7 \xB7 {{date}}",notDone:"Not done"}},QC={weekly:{title:"Weekly Training",daily:"Daily Listening",crossword:"Crossword"},homework:{title:"Homework Progress",totalRate:"Overall rate",count:"Total",done:"Done",remaining:"Remaining"},today:{tooltipTotal:"Total",tooltipDone:"Done"},filter:{countSuffix:" sessions"},time:{countLabel:"{{n}} sessions",empty:"No training records"},daily:{title:"Today's Listening Record",empty:"No completed sessions"},crossword:{title:"Crossword Quiz",empty:"No completed levels"},visit:{title:"Linked Visit Records"},detail:"Details",trainingType:{LISTEN_IN_NOISE:"Sentence in Noise",SHORT_STORY:"Short Story",LONG_STORY:"Long Story",ORDERING_SENTENCE:"Sentence Ordering"}},ef={import:"Add to my trainings",publisher:"Publisher",time:{justNow:"just now",minutesAgo:"{{n}}m ago",hoursAgo:"{{n}}h ago",daysAgo:"{{n}}d ago",weeksAgo:"{{n}}w ago",monthsAgo:"{{n}}mo ago",yearsAgo:"{{n}}y ago"},badge:{shared:"Store"},publish:{descPlaceholder:"One-line description for the Training Store (optional)"}},tf={manage:{unit:"item(s)"}},nf={cancelLabel:"Cancel"},af={subtitle:"Select a topic to start listening practice."},rf={steps:"Step {{current}} of {{total}}"},of={panelTitle:"Training misses",viewItems:"Items",viewTypes:"Types",colPending:"Left",colTrend:"Change",colRuns:"Runs",unitItem:" items",skippedOnly:"{{n}} older record(s) were excluded \u2014 they do not say what was answered.",summaryLabel:"Recorded",summaryValue:"{{items}} items \xB7 {{pending}} still missed",nextLabel:"Next to work on",nextCount:"{{count}}",nextCountCapped:"{{shown}} of {{total}}",picked:"\u2192 {{what}}",typeClear:"All caught up",typePending:"{{pending}} of {{total}} left",flat:"no change",runs:"{{count}} run(s)",avgDuration:"{{sec}}s avg"},sf={resetColumns:"Reset column widths"},lf={panelTitle:"Word table scores",viewWords:"Words",viewTables:"Tables",colLatest:"When",colTrend:"Change",unitTime:" times",summaryLabel:"Scored",summaryValue:"{{times}} times \xB7 {{words}} words",nextLabel:"Focus next",nextCount:"{{count}}",allClear:"All correct last time.",times:"{{count}}x",flat:"no change",recentLabel:"Recent scorings",nextCountCapped:"{{shown}} of {{total}}"},cf={ariaLabel:"Banner",dotAriaLabel:"Banner {{index}} of {{count}}"},uf={selectYearMonth:"Select year and month",chooseDate:"Choose a date"},df={previewRegion:"Report preview \u2014 scrollable sideways"},pf={description:"Description",textbox:"Text",training:"Training guide",menu:"Menu"},hf={devNone:"No acquisition data",place:{labial:"Bilabial",alveolar:"Alveolar",palatal:"Palatal",velar:"Velar",glottal:"Glottal"}},mf={clearSelection:"Clear selection"},Cf={showResult:"Show {{type}} result"},ff={selected:"Selected",remove:"Remove",exclude:"Excluded",nthSelected:"Selection {{n}}"},gf={loading:"Loading"},bf={common:sC,calendar:iC,passCard:lC,searchField:cC,rating:uC,colorPicker:dC,dropdown:pC,accordion:hC,header:mC,nav:CC,settings:fC,usage:gC,account:bC,help:yC,training:vC,trainingSettings:xC,customers:_C,payment:wC,coupons:kC,visits:AC,company:NC,trainingType:BC,myWordTraining:DC,myWordTable:SC,keyWords:jC,wordTable:EC,wordSearch:TC,wordPrint:MC,topic:LC,accessLinkManager:$C,login:RC,device:PC,manager:IC,wordPairs:FC,game:OC,footer:HC,landing:VC,date:zC,trainingSetPage:WC,wordTrainingPreview:qC,wordData:UC,textField:GC,segmentedControl:KC,tabs:ZC,fileUpload:YC,avatar:XC,myHomework:JC,trainingStatus:QC,store:ef,homework:tf,inquiry:nf,trainingPlanRun:af,progress:rf,trainingMiss:of,table:sf,wordScore:lf,topBanner:cf,datePicker:uf,report:df,tooltip:pf,phonemeProfile:hf,bulkBar:mf,debug:Cf,badge:ff,loader:gf};const yf=[{code:"ko",label:"\uD55C\uAD6D\uC5B4"},{code:"en",label:"English"}],si="ko",vf="ihab_display_language";function ii(){try{const e=localStorage.getItem(vf);if(e&&yf.some(n=>n.code===e))return e}catch{}return si}function li(e){try{document.documentElement.lang=e}catch{}}Pt.on("languageChanged",li),li(ii()),Pt.use(de.initReactI18next).init({resources:{ko:{translation:oC},en:{translation:bf}},lng:ii(),fallbackLng:si,interpolation:{escapeValue:!1},react:{useSuspense:!1}});function ci(e){if(!(e==null||e===""))return Kn(typeof e=="number"?`${e.toLocaleString("ko-KR")}\uC6D0`:e)}function xf(e){const n=`${e.code??""} ${e.name??""}`.toLowerCase();return/manager|매니저/.test(n)?"manager":"speechear"}function _f(e){if(e.durationDays&&e.durationDays>0){const o=e.durationDays;return o%365===0?`${o/365}\uB144`:`${o}\uC77C`}const n=(e.code??"").match(/(\d+)(d|y)\b/i);if(n)return n[2].toLowerCase()==="y"?`${n[1]}\uB144`:`${n[1]}\uC77C`;const a=e.name??"",r=a.match(/(\d+\s*(?:년|개월|주|일))\s*(?:이용권)?\s*$/);return r?r[1].replace(/\s+/g,""):a||"\uC774\uC6A9\uAD8C"}function wf(e){const n=(e??"").match(/(\d+)(d|y)\b/i);if(!n)return null;const a=Number(n[1]);return n[2].toLowerCase()==="y"?a*365:a}function ui(e){return{type:e.type??xf(e),plan:_f(e),label:e.label,price:ci(e.price),originalPrice:ci(e.originalPrice),discountLabel:e.discountLabel}}var kf='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',Af='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>',Nf='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',Bf='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',Df='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>',Sf='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',di='data:image/svg+xml,<svg width="100" height="100" viewBox="0 0 100 100" fill="none" xmlns="http://www.w3.org/2000/svg">%0A<g clip-path="url(%23clip0_2255_7305)">%0A<path d="M75.2535 24.7464C68.7892 18.2821 59.8606 14.2857 49.9999 14.2857C40.1392 14.2857 37.5214 24.5964 31.0606 31.0607C24.5964 37.525 14.2856 40.1893 14.2856 50C14.2856 59.8107 18.2821 68.7893 24.7464 75.2536C31.2106 81.7179 40.1392 85.7143 49.9999 85.7143C59.8606 85.7143 68.7892 81.7179 75.2535 75.2536C81.7178 68.7893 85.7142 59.8607 85.7142 50C85.7142 40.1393 81.7178 31.2107 75.2535 24.7464ZM62.6285 62.6286C59.3964 65.8607 54.9321 67.8571 49.9999 67.8571C45.0678 67.8571 40.6035 65.8571 37.3714 62.6286C34.1392 59.3964 32.1428 54.9321 32.1428 50C32.1428 45.0678 34.1428 40.6036 37.3714 37.3714C40.6035 34.1393 45.0678 32.1428 49.9999 32.1428C54.9321 32.1428 59.3964 34.1428 62.6285 37.3714C65.8606 40.6036 67.8571 45.0678 67.8571 50C67.8571 54.9321 65.8571 59.3964 62.6285 62.6286Z" fill="%23FAFAFA"/>%0A</g>%0A<defs>%0A<clipPath id="clip0_2255_7305">%0A<rect width="100" height="100" fill="white"/>%0A</clipPath>%0A</defs>%0A</svg>%0A';const wn={text:"--pass-card-text",sub:"--pass-card-sub",copyright:"--pass-card-copyright"},dr=new WeakMap;function jf(e){if(e)return dr.get(e)}function tn(e,n){e&&(e.style.setProperty(wn.text,n.text),e.style.setProperty(wn.sub,n.sub),n.copyrightColor&&e.style.setProperty(wn.copyright,n.copyrightColor),dr.set(e,n))}function nn(e){e&&(e.style.removeProperty(wn.text),e.style.removeProperty(wn.sub),e.style.removeProperty(wn.copyright),dr.delete(e))}const pi={text:"var(--color-pureBlack)",sub:"var(--color-lightGray)",logoBase:"Logo_speechear_kr",copyrightColor:"#1a1a1a"};function hi(e={}){const n=rt(pi,tn,nn);return t.jsxs("div",{ref:n,className:"pass-card-bg pass-card-bg-two-circle","aria-hidden":"true",children:[t.jsx("div",{className:"pass-card-bg-two-circle__c1"}),t.jsx("div",{className:"pass-card-bg-two-circle__c3"}),t.jsx("span",{className:"pass-card-bg__symbol pass-card-bg-two-circle__symbol",style:{"--symbol-url":`url("${di}")`}})]})}const mi="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 Jn='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 Ef={text:"#1a1a1a",sub:"var(--color-lightGray)",logoBase:"Logo_speechear_kr",copyrightColor:"var(--color-main)"},Tf=[{scale:1,opacity:.55},{scale:2,opacity:.4},{scale:3.1,opacity:.28},{scale:4.5,opacity:.18},{scale:6,opacity:.1}];function Ci(e={}){const n=rt(Ef,tn,nn),a="var(--color-main)",r=270,o=170;return t.jsxs("div",{ref:n,className:"pass-card-bg pass-card-bg-sound-move","aria-hidden":"true",children:[t.jsx("svg",{className:"pass-card-bg-sound-move__svg",viewBox:"0 0 300 189",preserveAspectRatio:"xMidYMid meet",xmlns:"http://www.w3.org/2000/svg",children:Tf.map(({scale:s,opacity:l},c)=>t.jsx("g",{transform:`translate(${r} ${o}) scale(${s}) translate(-50 -50)`,opacity:l,children:t.jsx("path",{d:mi,fill:"none",stroke:a,strokeWidth:"1.5",vectorEffect:"non-scaling-stroke"})},c))}),t.jsx("span",{className:"pass-card-bg__symbol pass-card-bg-sound-move__symbol",style:{"--symbol-url":`url("${Jn}")`}})]})}const Mf={text:"#ffffff",sub:"var(--color-lightGray)",logoBase:"Logo_speechear_kr",logoColor:"_white",copyrightColor:"#ffffff"},Lf=[{scale:1,opacity:.55},{scale:2,opacity:.4},{scale:3.1,opacity:.28},{scale:4.5,opacity:.18},{scale:6,opacity:.1}];function $f(e={}){const n=rt(Mf,tn,nn),a="#ffffff",r=270,o=170;return t.jsxs("div",{ref:n,className:"pass-card-bg pass-card-bg-sound-move-v1","aria-hidden":"true",children:[t.jsx("svg",{className:"pass-card-bg-sound-move-v1__svg",viewBox:"0 0 300 189",preserveAspectRatio:"xMidYMid meet",xmlns:"http://www.w3.org/2000/svg",children:Lf.map(({scale:s,opacity:l},c)=>t.jsx("g",{transform:`translate(${r} ${o}) scale(${s}) translate(-50 -50)`,opacity:l,children:t.jsx("path",{d:mi,fill:"none",stroke:a,strokeWidth:"1.5",vectorEffect:"non-scaling-stroke"})},c))}),t.jsx("span",{className:"pass-card-bg__symbol pass-card-bg-sound-move-v1__symbol",style:{"--symbol-url":`url("${di}")`}})]})}const Rf={text:"#1a1a1a",sub:"var(--color-lightGray)",logoBase:"Logo_speechear_kr",copyrightColor:"var(--color-main)"};function Pf(e={}){const n=rt(Rf,tn,nn);return t.jsxs("div",{ref:n,className:"pass-card-bg pass-card-bg-talk","aria-hidden":"true",children:[t.jsx("div",{className:"pass-card-bg-talk__shape pass-card-bg-talk__shape--left"}),t.jsx("div",{className:"pass-card-bg-talk__shape pass-card-bg-talk__shape--right"}),t.jsx("span",{className:"pass-card-bg__symbol pass-card-bg-talk__symbol",style:{"--symbol-url":`url("${Jn}")`}})]})}const If={Logo_speechear_kr:{"":cr,_white:kf,_textWhite:Af,_black:Nf},Logo_speechearManager_kr:{"":ur,_white:Bf,_textWhite:Df,_black:Sf}};function Ff(e,n){if(e)return If[e]?.[n??""]??void 0}const Of={speechear:cr,manager:ur},Hf={speechear:"Logo_speechear_kr",manager:"Logo_speechearManager_kr"},fi=10;function Vf(e,n){if(e<=0)return n("passCard.remainingSecond",{n:0});const a=Math.floor(e/86400);if(a>0)return n("passCard.remainingDay",{n:a});const r=Math.floor(e/3600);if(r>0)return n("passCard.remainingHour",{n:r});const o=Math.floor(e/60);return o>0?n("passCard.remainingMinute",{n:o}):n("passCard.remainingSecond",{n:Math.floor(e)})}function zf(e,n,a){if(e==="manager"){const r=/년/.test(n)||/yr|year/i.test(n)||/1년|365/.test(n),o=a==="\uC624\uD508\uD2B9\uAC00"||a===Pt.t("passCard.specialLabel");return r?t.jsx(Pf,{}):o?t.jsx($f,{}):t.jsx(Ci,{})}return t.jsx(hi,{})}function gi({product:e,showPrice:n=!1,plan:a,type:r,endDate:o,remainingSeconds:s,state:l="active",bg:c,bgOnly:u=!1,textColor:d,subColor:p,copyrightColor:h,logoSrc:m,label:f,price:C,originalPrice:b,discountLabel:g,onUse:y,onRefund:w,onDelete:_}){const{t:v}=de.useTranslation(),A=e?ui(e):void 0,x=r??A?.type??"speechear",k=a??A?.plan??"\uC774\uC6A9\uAD8C",T=f??A?.label,N=C??(n?A?.price:void 0),D=b??(n?A?.originalPrice:void 0),P=g??A?.discountLabel,L=i.useMemo(()=>{if(N)return null;const E=e?.durationDays??wf(e?.code);if(!E||E<=0)return null;const U=E*86400;let ee;if(s!=null)ee=s;else if((l==="active"||l==="expired")&&o){const ue=new Date(o).getTime();if(Number.isNaN(ue))return null;const ie=new Date;ie.setHours(0,0,0,0);const te=new Date(ue);te.setHours(0,0,0,0);const se=Math.round((te.getTime()-ie.getTime())/864e5);ee=Math.max(0,se)*86400}else l==="expired"?ee=0:ee=U;const _e=Math.max(0,Math.min(100,Math.floor(Math.min(ee,U)/U*100)));return l==="pending"&&_e>=100?null:{percent:_e,remainingLabel:Vf(ee,v)}},[N,l,o,s,e?.durationDays,e?.code,v]),j=i.useRef(null),[R,M]=i.useState({}),[z,H]=i.useState(null),Z=!!(y||w||_),J=i.useRef(!1),O=i.useRef(void 0),[S,$]=i.useState(m);i.useLayoutEffect(()=>{$(m)},[m]),i.useLayoutEffect(()=>{const E=j.current;E&&(d!==void 0&&E.style.setProperty("--pass-card-text",d),p!==void 0&&E.style.setProperty("--pass-card-sub",p),h!==void 0&&E.style.setProperty("--pass-card-copyright",h))},[d,p,h]),i.useLayoutEffect(()=>{const E=j.current;if(!E)return;const U=jf(E);if(!m){const ee=Hf[x],_e=l==="expired"?"_black":U?.logoColor??"",ue=Ff(ee,_e);$(ue)}},[c,m,x,l]);const F=E=>{const U=j.current;if(!U)return null;const{left:ee,top:_e,width:ue,height:ie}=U.getBoundingClientRect(),te=(E.clientX-ee)/ue-.5;return{rotateX:-((E.clientY-_e)/ie-.5)*fi,rotateY:te*fi}},V=(E,U)=>{const ee=U*-.7,_e=E*.7+10,ue=20+(Math.abs(E)+Math.abs(U))*.4;return`${ee}px ${_e}px ${ue}px rgba(0, 0, 0, 0.18)`},X=i.useCallback(E=>{J.current=!0,clearTimeout(O.current),O.current=setTimeout(()=>{J.current=!1},200);const U=F(E);U&&M({transform:`perspective(800px) rotateX(${U.rotateX}deg) rotateY(${U.rotateY}deg) scale3d(1.03, 1.03, 1.03)`,boxShadow:V(U.rotateX,U.rotateY),transition:"transform 0.25s cubic-bezier(0.23, 1, 0.32, 1), box-shadow 0.25s cubic-bezier(0.23, 1, 0.32, 1)"})},[]),I=i.useCallback(E=>{const U=F(E);if(!U)return;const ee=J.current?"transform 0.2s ease, box-shadow 0.2s ease":"none";M({transform:`perspective(800px) rotateX(${U.rotateX}deg) rotateY(${U.rotateY}deg) scale3d(1.03, 1.03, 1.03)`,boxShadow:V(U.rotateX,U.rotateY),transition:ee})},[]),q=i.useCallback(()=>{clearTimeout(O.current),J.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)"})},[]),G=i.useCallback(()=>H(null),[]),le=i.useMemo(()=>{const E=k.replace("\uC774\uC6A9\uAD8C","").trim(),U=E.match(/^(.*?)(일|년)$/);return U?t.jsxs(t.Fragment,{children:[t.jsx("span",{className:"h0 pass-card__plan-number",children:U[1]}),t.jsx("span",{className:"h5b pass-card__plan-unit",children:U[2]==="\uB144"?v("passCard.unitYear","\uB144"):v("passCard.unitDay","\uC77C")})]}):t.jsx("span",{className:"h0",children:E})},[k,v]),pe=i.useMemo(()=>{const E=Kn(N);if(!E)return null;const U=E.match(/^([^\d]*)([\d.,]+)(.*)$/);if(!U)return t.jsx("span",{className:"h1",children:E});const[,ee,_e,ue]=U;return t.jsxs(t.Fragment,{children:[ee&&t.jsx("span",{className:"h5 pass-card__price-symbol",children:ee}),t.jsx("span",{className:"h1 pass-card__price-amount",children:_e}),ue.trim()&&t.jsx("span",{className:"h5 pass-card__price-symbol",children:ue.trim()})]})},[N]),fe=i.useCallback(()=>{Z&&H(E=>{if(E)return null;const U=j.current?.getBoundingClientRect();if(!U)return null;const ee=50;return{left:U.left,right:U.right,width:U.width,height:U.height,x:U.x,y:U.y+ee,top:U.top+ee,bottom:U.bottom+ee}})},[Z]),ve=i.useCallback(E=>{Z&&(E.key==="Enter"||E.key===" ")&&(E.preventDefault(),fe())},[Z,fe]),he=[{items:[...y?[{label:v("passCard.menu.use","\uC0AC\uC6A9\uD558\uAE30"),icon:"play",onClick:()=>{y(),H(null)},closeOnSelect:!0}]:[],...w?[{label:v("passCard.menu.refund","\uD658\uBD88\uD558\uAE30"),icon:"rotate-ccw",onClick:()=>{w(),H(null)},closeOnSelect:!0}]:[],..._?[{label:v("passCard.menu.delete","\uC0AD\uC81C\uD558\uAE30"),icon:"trash-2",onClick:()=>{_(),H(null)},closeOnSelect:!0}]:[]]}];return t.jsxs(t.Fragment,{children:[t.jsx("div",{className:"pass-card-frame",children:t.jsxs("div",{ref:j,className:`pass-card pass-card--${l}${Z?" pass-card--clickable":""}`,style:R,onMouseEnter:X,onMouseMove:I,onMouseLeave:q,onClick:fe,onKeyDown:Z?ve:void 0,role:Z?"button":void 0,tabIndex:Z?0:void 0,children:[c??zf(x,k,T),!u&&t.jsxs(t.Fragment,{children:[t.jsx("div",{className:"pass-card__top",children:t.jsxs("div",{className:"pass-card__top-left",children:[t.jsx("img",{src:S??Of[x],className:"pass-card__logo",alt:x==="manager"?v("header.logoManager","\uB9D0\uADC0\uB9E4\uB2C8\uC800 \uB85C\uACE0"):v("header.logoMalgwi","\uB9D0\uADC0 \uB85C\uACE0")}),t.jsxs("div",{className:"pass-card__plan",children:[t.jsx("div",{children:le}),t.jsx("span",{className:"h5b pass-card__plan-suffix",children:T?v("passCard.labeledPlan",{label:T}):v("passCard.planSuffix","\uC774\uC6A9\uAD8C")})]})]})}),N?t.jsxs("div",{className:"pass-card__price-area",children:[P&&t.jsx("span",{className:"pass-card__discount body-3",children:P}),t.jsxs("div",{className:"pass-card__price",children:[D&&t.jsx("span",{className:"pass-card__price-original body-3",children:Kn(D)}),pe]})]}):L?t.jsxs("div",{className:"pass-card__usage",children:[t.jsx("span",{className:"h5b pass-card__usage-remaining",children:L.remainingLabel}),t.jsxs("span",{className:"pass-card__usage-percent",children:[t.jsx("span",{className:"h1 pass-card__usage-value",children:L.percent}),t.jsx("span",{className:"h5b pass-card__usage-symbol",children:"%"})]})]}):t.jsx("div",{className:"pass-card__copyright caption-2",children:"\xA9 IHAB Corp. All rights reserved."})]})]})}),z&&t.jsx(un,{anchorRect:z,onClose:G,ariaLabel:v("tooltip.menu","\uBA54\uB274"),children:t.jsx(fa,{columns:he,onClose:G,size:"small"})})]})}const Wf={text:"#1a1a1a",sub:"var(--color-lightGray)",logoBase:"Logo_speechear_kr",copyrightColor:"#1a1a1a"};function qf(e={}){const n=`passcard-sound-line-grad-${i.useId()}`,a=rt(Wf,tn,nn);return t.jsxs("div",{ref:a,className:"pass-card-bg pass-card-bg-sound-line","aria-hidden":"true",children:[t.jsxs("svg",{className:"pass-card-bg-sound-line__svg",viewBox:"0 0 500 300",preserveAspectRatio:"xMidYMid slice",xmlns:"http://www.w3.org/2000/svg",children:[t.jsx("defs",{children:t.jsxs("linearGradient",{id:n,x1:"0",y1:"0",x2:"1",y2:"0",children:[t.jsx("stop",{offset:"20%",stopColor:"var(--color-main)"}),t.jsx("stop",{offset:"80%",stopColor:"var(--color-sub)"})]})}),t.jsx("g",{transform:"translate(25, 45)",children:t.jsx("path",{d:"M -30 150 C 40 80, 100 220, 160 150 S 280 80, 340 150 S 460 220, 510 150",fill:"none",stroke:`url(#${n})`,strokeWidth:"50",strokeLinecap:"round"})})]}),t.jsx("span",{className:"pass-card-bg__symbol pass-card-bg-sound-line__symbol",style:{"--symbol-url":`url("${Jn}")`}})]})}const Uf={text:"#1a1a1a",sub:"var(--color-lightGray)",logoBase:"Logo_speechear_kr",copyrightColor:"var(--color-main)"};function Gf(e={}){const n=rt(Uf,tn,nn);return t.jsxs("div",{ref:n,className:"pass-card-bg pass-card-bg-talk-v1","aria-hidden":"true",children:[t.jsx("div",{className:"pass-card-bg-talk-v1__shape pass-card-bg-talk-v1__shape--left"}),t.jsx("div",{className:"pass-card-bg-talk-v1__shape pass-card-bg-talk-v1__shape--right"}),t.jsx("span",{className:"pass-card-bg__symbol pass-card-bg-talk-v1__symbol",style:{"--symbol-url":`url("${Jn}")`}})]})}function Kf(e,n){if(e){if(n==="manager_pro")return t.jsx(Gf,{});if(n==="manager_standard")return t.jsx(qf,{});if(n==="manager_lite")return t.jsx(Ci,{})}}function Zf(e){const n=Kn(e);if(!n)return null;const a=n.match(/^([^\d]*)([\d.,]+)(.*)$/);if(!a)return n;const[,r,o,s]=a;return t.jsxs(t.Fragment,{children:[r&&t.jsx("span",{className:"payment-plan__pricing-symbol h4",children:r}),o,s.trim()&&t.jsx("span",{className:"payment-plan__pricing-symbol h4",children:s.trim()})]})}function Yf(e){const{t:n}=de.useTranslation(),a=n("payment.plan.tierFallback",{defaultValue:"\uC774\uC6A9\uAD8C"}),r=n("payment.plan.openPromo",{defaultValue:"\uC624\uD508 \uD2B9\uAC00"}),{plan:o,onSelect:s,period:l="monthly",ownedCodes:c}=e||{},u=_=>!!_&&!!c?.includes(_),d=(o.tiers||[]).some(_=>/오픈\s*특가/.test(_.label??"")&&u(_.code)),p=_=>{const v=_.prices?_.prices[l]:_.price;return v?(o.tiers||[]).some(A=>!!A.badge&&A.originals?.[l]===v):!1},h=o.colorToken?`var(--color-${o.colorToken})`:"var(--color-gray)",m=n("payment.plan.freePrice","\uBB34\uB8CC"),f=n("payment.products.mgrEnterprise.tier.price","\uBB38\uC758"),C=_=>_.prices?_.prices[l]:_.price,b=(o.tiers||[]).length>0&&(o.tiers||[]).every(_=>{const v=C(_);return v==="\uBB34\uB8CC"||v===m||v==="0\uC6D0"}),g=(o.tiers||[]).length>0&&(o.tiers||[]).every(_=>{const v=C(_);return v==="\uBB38\uC758"||v===f}),y=o.group==="org",w=y?"manager":"speechear";return t.jsxs("div",{className:"payment-plan__card",style:{borderColor:h,"--plan-color":h},children:[o.cardBadge&&t.jsx("div",{className:"payment-plan__card-badge",children:t.jsx(ot,{label:o.cardBadge,variant:"main",size:"medium",fill:"soft"})}),t.jsxs("div",{className:"payment-plan__title",children:[t.jsx("p",{className:"payment-plan__quote body-3b",style:{color:h},children:o.quote||"\xA0"}),t.jsx("h3",{className:"payment-plan__title-heading h1",children:o.tier??o.title}),t.jsx("p",{className:"payment-plan__subtitle body-3",children:o.subtitle})]}),t.jsxs("div",{className:"payment-plan__box",children:[t.jsx("span",{className:"payment-plan__box-title body-3b",children:n("payment.plan.recommendedFor","\uC774\uB7F0 \uBD84\uAED8 \uCD94\uCC9C\uD569\uB2C8\uB2E4.")}),t.jsx("ul",{className:"payment-plan__feature-list",children:(o.recommendedFor||[]).map((_,v)=>t.jsxs("li",{className:"payment-plan__feature-item body-3",children:[t.jsx(Oe,{icon:"check",size:18,className:"payment-plan__feature-check",wrapperStyle:{color:h}}),_]},v))})]}),t.jsxs("div",{className:"payment-plan__box",children:[t.jsx("span",{className:"payment-plan__box-title body-3b",children:n("payment.plan.features","\uD575\uC2EC \uAE30\uB2A5")}),t.jsx("ul",{className:"payment-plan__feature-list",children:(o.features||[]).map((_,v)=>t.jsxs("li",{className:"payment-plan__feature-item body-3",children:[t.jsx(Oe,{icon:"check",size:18,className:"payment-plan__feature-check",wrapperStyle:{color:h}}),_]},v))})]}),t.jsx("div",{className:"payment-plan__card-pricing",children:b?null:g?t.jsx(ae,{className:"payment-plan__contact-button",label:n("payment.plan.contact",{defaultValue:"\uBB38\uC758\uD558\uAE30"}),variant:"main",size:56,onClick:()=>o.tiers?.[0]&&s?.({...o.tiers[0],productId:o.id,productTitle:o.title})}):t.jsx(t.Fragment,{children:t.jsx("div",{className:"payment-plan__pricing-list",children:(o.tiers||[]).map(_=>{const v=_.label||a,A=/오픈\s*특가/.test(v),x=A||_.openPromo===!0,k=v.replace(/^오픈\s*특가\s*/,"")||a,T=_.prices?_.prices[l]:_.price,N=_.badge?x?`${r}
|
|
832
|
+
${_.badge}`:_.badge:void 0;if(A&&u(_.code))return null;if(!_.badge&&!d)return p(_)?null:t.jsxs("div",{className:`payment-plan__pricing-row payment-plan__pricing-row--static${_.highlight?" payment-plan__pricing-row--highlight":""}`,children:[t.jsx("div",{className:"payment-plan__pricing-row-title",children:t.jsx("div",{className:"payment-plan__pricing-row-label h5b",children:_.label})}),t.jsx("div",{className:"payment-plan__pricing-row-price",children:t.jsx("span",{className:"payment-plan__pricing-current h1",children:Zf(T)})})]},_.id);const D=o.tier??(y?o.title:void 0),P=t.jsx(gi,{showPrice:!0,product:{type:w,code:_.code,name:k,label:D,price:T,originalPrice:_.originals?.[l]??void 0,discountLabel:N},bg:Kf(y,o.id)}),L=()=>s?.({..._,productId:o.id,productTitle:o.title,preview:P});return t.jsx("div",{className:"payment-plan__pricing-card",onClick:L,onKeyDown:s?j=>{j.target===j.currentTarget&&(j.key==="Enter"||j.key===" ")&&(j.preventDefault(),L())}:void 0,role:s?"button":void 0,tabIndex:s?0:void 0,children:P},_.id)})})})})]})}function Xf({variant:e="default"}){return t.jsxs("div",{className:`pass-card-bg pass-card-bg--${e}`,"aria-hidden":"true",children:[t.jsx("div",{className:"pass-card-bg__circle pass-card-bg__circle--1"}),t.jsx("div",{className:"pass-card-bg__circle pass-card-bg__circle--2"}),t.jsx("div",{className:"pass-card-bg__circle pass-card-bg__circle--3"})]})}var pr='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 bi={text:"#1a1a1a",sub:"var(--color-lightGray)",logoBase:"Logo_speechear_kr",copyrightColor:"#c9c9c9"};function Jf(){const e=rt(bi,tn,nn);return t.jsx("div",{ref:e,className:"pass-card-bg pass-card-bg-ihab","aria-hidden":"true",children:t.jsx("span",{className:"pass-card-bg__symbol pass-card-bg-ihab__symbol-top",style:{"--symbol-url":`url("${pr}")`}})})}const yi={text:"#ffffff",sub:"var(--color-lightGray)",logoBase:"Logo_speechearManager_kr",logoColor:"_white",copyrightColor:"#ffffff"};function Qf(e={}){const n=rt(yi,tn,nn);return t.jsxs("div",{ref:n,className:"pass-card-bg pass-card-bg-left-color-grid","aria-hidden":"true",children:[t.jsx("div",{className:"pass-card-bg-left-color-grid__bar"}),t.jsx("div",{className:"pass-card-bg-left-color-grid__grid"}),t.jsx("span",{className:"pass-card-bg__symbol pass-card-bg-left-color-grid__symbol",style:{"--symbol-url":`url("${Jn}")`}})]})}function vi({keys:e,anchor:n="top-right",scale:a,className:r=""}){const o=Array.isArray(e)?e:[e];return t.jsx("span",{className:ye("shortcut-badge",`shortcut-badge--${n}`,r),style:a===void 0?void 0:{"--shortcut-badge-scale":String(a)},children:o.map((s,l)=>t.jsxs("span",{className:"shortcut-badge__group",children:[l>0&&t.jsx("span",{className:"shortcut-badge__plus",children:"+"}),t.jsx("kbd",{className:"shortcut-badge__key",children:s})]},`${s}-${l}`))})}const Qn=(e,n,a)=>e+(n-e)*a;function eg({speakers:e,size:n=300,viewT:a=0,activeSpeakerId:r=null,playedIds:o,selectedId:s=null,answerId:l=null,showFeedback:c=!1,pulseSelected:u=!1,pulseSelectedDuration:d,pulseScale:p,clickable:h=!1,onSelectSpeaker:m,buttonSize:f=40,showIcon:C=!0,onCenterClick:b,centerLabel:g,centerDisabled:y=!1,centerAttention:w=!1,shortcutAnchor:_="top-right",shortcutScale:v,scaleShortcut:A=!1}){const x=Math.max(0,Math.min(1,a)),k=n/2,T=110/300,N=.18,D=E=>n*(T+(E-1)*N),P=E=>{const U=D(E.row??1),ee=E.angleDeg*Math.PI/180;return{x:k+U*Math.cos(ee),y:k+U*Math.sin(ee)}},L=Math.max(...e.map(E=>E.row??1),1),j=n*.08,R=n*.1,M=n*.24,z=n-2*j,H=n-R-M,Z=n-M/2,J=i.useMemo(()=>[...new Set(e.map(E=>E.deg))].sort((E,U)=>E-U),[e]),O=J.length,S=Math.max(68,O>1?z/(O-1):0),$=i.useMemo(()=>new Map(J.map((E,U)=>[E,U])),[J]),F=E=>{const U=$.get(E.deg)??0,ee=k+(U-(O-1)/2)*S,_e=L>1?Math.min(68,H/(L-1)):0,ue=_e*(L-1),ie=R+(H-ue)/2,te=L===1?R+H*.4:ie+(L-(E.row??1))*_e;return{x:ee,y:te}},V=E=>{const U=P(E),ee=F(E);return{x:Qn(U.x,ee.x,x),y:Qn(U.y,ee.y,x)}},X={x:k,y:Qn(k,Z,x)},I=Math.round(f*1.2),q=Math.round(Math.max(16,Math.min(80,f*.7))),G=[],le=new Map;for(const E of e){const U=E.row??1;le.has(U)||le.set(U,[]),le.get(U).push(E)}for(const[E,U]of le.entries()){if(U.length<2)continue;const ee=[...U].sort((Ae,ze)=>Ae.deg-ze.deg),_e=ee.map(Ae=>V(Ae)),ue=ee.map(Ae=>Ae.deg),ie=ue[ue.length-1]-ue[0],te=ie/(ue.length-1),se=360-ie,De=ee.length>=3&&te>0&&se<=te*1.5,He=Math.round(D(E)*1e3)/1e3,Ve=(Ae,ze,at,ge)=>{const Pe=(ze.angleDeg-Ae.angleDeg+540)%360-180;if(Pe===0)return`L ${ge.x} ${ge.y}`;if(x===0)return`A ${He} ${He} 0 0 ${Pe>0?1:0} ${ge.x} ${ge.y}`;const $e=(Ae.angleDeg+Pe/2)*Math.PI/180,Ke={x:k+He*Math.cos($e),y:k+He*Math.sin($e)},Ze={x:(at.x+ge.x)/2,y:(at.y+ge.y)/2},Ue={x:Qn(Ke.x,Ze.x,x),y:Qn(Ke.y,Ze.y,x)},Ie={x:2*Ue.x-Ze.x,y:2*Ue.y-Ze.y};return`Q ${Ie.x} ${Ie.y} ${ge.x} ${ge.y}`},Re=De?[...ee,ee[0]]:ee,Ee=De?[..._e,_e[0]]:_e;let je=`M ${Ee[0].x} ${Ee[0].y}`;for(let Ae=1;Ae<Ee.length;Ae++)je+=" "+Ve(Re[Ae-1],Re[Ae],Ee[Ae-1],Ee[Ae]);G.push({key:`arc-${E}`,d:je})}const pe=i.useMemo(()=>new Set(o??[]),[o]),fe=E=>{if(r===E.id)return"active";if(c){if(E.id===l)return"correct";if(E.id===s&&s!==l)return"wrong"}return pe.has(E.id)?"played":"idle"},ve=E=>r===E.id?"loop":c?E.id===l?"loop":null:u&&E.id===s?"once":null,he=(E,U)=>{switch(E){case"played":case"correct":return t.jsx(lo,{size:U});case"wrong":return t.jsx(yo,{size:U});default:return t.jsx(bo,{size:U})}};return t.jsx("div",{className:"sound-compass",children:t.jsxs("div",{className:"sound-compass__compass-wrap",style:{width:n,height:n},children:[t.jsxs("svg",{width:n,height:n,viewBox:`0 0 ${n} ${n}`,className:"sound-compass__svg",children:[x===0&&e.map(E=>{const{x:U,y:ee}=V(E);return t.jsx("line",{x1:X.x,y1:X.y,x2:U,y2:ee,stroke:"#dde3ec",strokeWidth:"1"},E.id)}),G.map(E=>t.jsx("path",{d:E.d,fill:"none",stroke:"#dde3ec",strokeWidth:"1"},E.key))]}),w&&!y&&t.jsx("div",{className:"sound-compass__pulse sound-compass__pulse--active sound-compass__pulse--center",style:{width:I,height:I,left:X.x-I/2,top:X.y-I/2}}),b?t.jsx("button",{type:"button",className:`sound-compass__center sound-compass__center--button${y?" sound-compass__center--disabled":""}`,style:{width:I,height:I,left:X.x,top:X.y},"aria-label":g,"aria-disabled":y||void 0,tabIndex:y?-1:0,onClick:y?void 0:b,children:t.jsx(La,{size:q,color:"currentColor",strokeWidth:1.5})}):t.jsx("div",{className:"sound-compass__center",style:{width:I,height:I,left:X.x,top:X.y},children:t.jsx(La,{size:q,color:"currentColor",strokeWidth:1.5})}),e.map((E,U)=>{const{x:ee,y:_e}=V(E),ue=fe(E),ie=ve(E),te={...v!==void 0||A?{"--shortcut-badge-scale":String(v??Math.max(.75,Math.min(3,f/56)))}:null,pointerEvents:h?"auto":"none",cursor:h?"pointer":"default",zIndex:ue!=="idle"?10:1},se=f,De=Math.round(Math.max(10,Math.min(56,se*.38))),He=Math.round(Math.max(7,Math.min(18,se*.2))),Ve=Math.round(Math.max(10,Math.min(56,se*.4))),Re=C==="answered"&&(ue==="played"||ue==="correct"||ue==="wrong"),Ee=C===!0||Re,je=!Re;return t.jsxs("div",{className:"sound-compass__speaker-pos",style:{...te,left:ee-se/2,top:_e-se/2},children:[ie&&t.jsx("div",{className:`sound-compass__pulse sound-compass__pulse--${ue}`+(ie==="once"?" sound-compass__pulse--once":""),style:{width:se,height:se,...ie==="once"&&d!==void 0?{"--sc-pulse-duration-once":`${d}ms`}:null,...p!==void 0?{"--sc-pulse-scale":String(p)}:null}}),t.jsxs("button",{type:"button",tabIndex:h?0:-1,"aria-disabled":h?void 0:!0,onClick:h?()=>m?.(E.id):void 0,className:`sound-compass__speaker-btn sound-compass__speaker-btn--${ue}`,style:{width:se,height:se},"aria-label":E.label,children:[Ee&&he(ue,De),je&&t.jsx("span",{className:"sound-compass__speaker-number",style:{fontSize:C===!0?He:Ve},children:U+1})]}),E.shortcut&&t.jsx(vi,{keys:E.shortcut,anchor:_,className:"sound-compass__speaker-shortcut"})]},E.id)})]})})}function tg({children:e,position:n="top-left",size:a=24,className:r=""}){return t.jsx("span",{className:ye("circle-badge","circle-badge--number",`circle-badge--${a}`,`circle-badge--${n}`,r),children:e})}function ng({orientation:e="horizontal",label:n,className:a=""}){const r=ye("divider",`divider--${e}`,n&&e==="horizontal"?"divider--labeled":"",a);return e==="vertical"?t.jsx("div",{className:r,role:"separator","aria-orientation":"vertical"}):n?t.jsxs("div",{className:r,role:"separator","aria-orientation":"horizontal",children:[t.jsx("span",{className:"divider__line"}),t.jsx("span",{className:"divider__label caption-1",children:n}),t.jsx("span",{className:"divider__line"})]}):t.jsx("div",{className:r,role:"separator","aria-orientation":"horizontal"})}function xi({checked:e,onChange:n,name:a,value:r,disabled:o=!1,label:s,className:l=""}){const c=i.useId();return t.jsxs("label",{className:`radio${o?" radio--disabled":""} ${l}`.trim(),htmlFor:c,children:[t.jsx("input",{id:c,type:"radio",name:a,value:r,checked:e,disabled:o,onChange:u=>n?.(u.target.checked)}),t.jsx("span",{className:"radio__dot"}),s&&t.jsx("span",{className:"radio__label body-2",children:s})]})}function ag({options:e,value:n,onChange:a,name:r,disabled:o=!1,direction:s="vertical",className:l="",ariaLabel:c}){const u=i.useId(),d=r??`radio-group-${u}`;return t.jsx("div",{className:`radio-group radio-group--${s} ${l}`.trim(),role:"radiogroup","aria-label":c,children:e.map(p=>t.jsx(xi,{name:d,value:p.value,checked:n===p.value,disabled:o||p.disabled,label:p.label,onChange:h=>{h&&a?.(p.value)}},p.value))})}const rg={info:"info",success:"check-circle",warning:"alert-triangle",danger:"alert-circle"};function og({tone:e="info",title:n,message:a,children:r,dismissible:o=!1,onDismiss:s,className:l=""}){const{t:c}=de.useTranslation(),[u,d]=i.useState(!1),p=i.useCallback(()=>{d(!0),s?.()},[s]);if(u)return null;const h=ye("alert",`alert--${e}`,l),m=!!n,f=!!(a||r);return t.jsxs("div",{className:h,role:"alert",children:[t.jsxs("div",{className:"alert__body",children:[t.jsxs("div",{className:"alert__header",children:[t.jsx(Oe,{icon:rg[e],size:20,className:"alert__icon"}),m&&t.jsx("span",{className:"alert__title body-2",children:n}),!m&&f&&t.jsx("div",{className:"alert__message body-3",children:a??r})]}),m&&f&&t.jsx("div",{className:"alert__message alert__message--indented body-3",children:a??r})]}),o&&t.jsx("button",{type:"button",className:"alert__dismiss",onClick:p,"aria-label":c("common.close","\uB2EB\uAE30"),children:"\xD7"})]})}const sg={ready:"search",guide:"info",error:"circle-alert"};function ig(e,n){const a=n.filter(Boolean);if(a.length===0)return e;const r=[];let o=0,s=0;for(const l of a){const c=e.indexOf(l,o);c<0||(c>o&&r.push(e.slice(o,c)),r.push(t.jsx("strong",{className:"search-summary__em body-2",children:l},s++)),o=c+l.length)}return o<e.length&&r.push(e.slice(o)),r}function lg({status:e="guide",label:n,children:a,emphasis:r,icon:o,className:s=""}){const l=o===!1?null:o??sg[e],c=ye("search-summary",`search-summary--${e}`,s),u=n??a,d=typeof u=="string"&&r&&r.length>0?ig(u,r):u;return t.jsxs("div",{className:c,role:"status","aria-live":"polite",children:[l!=null&&t.jsx(Oe,{icon:l,size:18,className:"search-summary__icon"}),t.jsx("span",{className:"search-summary__text body-2",children:d})]})}function ea({title:e,items:n}){const{t:a}=de.useTranslation(),{anchorRect:r,openAt:o,close:s}=Ca();return t.jsxs(t.Fragment,{children:[t.jsx(ae,{size:24,type:"dot",icon:"info",variant:"transparent-gray",useBorder:!1,selected:!!r,ariaLabel:a("common.info","\uC124\uBA85"),onPointerEnter:l=>o(l.currentTarget),onPointerLeave:s,onFocus:l=>o(l.currentTarget),onBlur:s}),r&&t.jsx(_n,{title:e,items:n,showIndex:n.length>1,anchorRect:r,onClose:s})]})}function cg({items:e=[],value:n,onChange:a,className:r="",size:o=40}){const s=i.useId(),{t:l}=de.useTranslation(),c=i.useRef(null),u=n??e[0]?.key,d=()=>Array.from(c.current?.querySelectorAll('[role="tab"]:not(:disabled)')??[]),p=(f,C=d())=>{if(C.length===0)return;const b=(f%C.length+C.length)%C.length;C[b]?.focus(),C[b]?.click()},h=f=>{if(!["ArrowRight","ArrowDown","ArrowLeft","ArrowUp","Home","End"].includes(f.key))return;f.preventDefault();const C=d(),b=C.indexOf(f.currentTarget);f.key==="ArrowRight"||f.key==="ArrowDown"?p(b+1,C):f.key==="ArrowLeft"||f.key==="ArrowUp"?p(b-1,C):f.key==="Home"?p(0,C):p(C.length-1,C)},m=e.find(f=>f.key===u);return t.jsxs("div",{className:`tabs ${r}`.trim(),children:[t.jsx("div",{ref:c,className:`tabs__list tabs__list--${o}`,role:"tablist","aria-label":l("tabs.ariaLabel","\uD0ED"),children:e.map(f=>t.jsx("button",{id:`tabs__tab-${s}-${f.key}`,type:"button",role:"tab","aria-selected":f.key===u,"aria-controls":`tabs__panel-${s}-${f.key}`,disabled:f.disabled,tabIndex:f.key===u?0:-1,className:`tabs__tab body-2${f.key===u?" tabs__tab--active":""}`,onClick:()=>a?.(f.key),onKeyDown:h,children:f.label},f.key))}),m&&t.jsx("div",{id:`tabs__panel-${s}-${m.key}`,role:"tabpanel","aria-labelledby":`tabs__tab-${s}-${m.key}`,tabIndex:0,className:"tabs__panel",children:m.panel},m.key)]})}const ug={xs:12,sm:16,md:20,lg:28,xl:36};function dg(e){const n=e.trim().split(/\s+/).filter(Boolean);return n.length===0?"":n.length===1?[...n[0]].slice(0,2).join("").toUpperCase():([...n[0]][0]+[...n[n.length-1]][0]).toUpperCase()}function pg({src:e,name:n,size:a="md",shape:r="circle",className:o=""}){const{t:s}=de.useTranslation(),[l,c]=i.useState(null),u=!!e&&l===e,d=n?dg(n):"",p=!!e&&!u,h=!p&&!!d,m=n||s("avatar.ariaLabel","\uC0AC\uC6A9\uC790 \uC544\uBC14\uD0C0");return t.jsxs("span",{className:`avatar avatar--${a} avatar--${r} ${o}`.trim(),role:"img","aria-label":m,children:[p&&t.jsx("img",{className:"avatar__image",src:e,alt:m,onError:()=>c(e??null)}),!p&&h&&t.jsx("span",{className:"avatar__initials","aria-hidden":"true",children:d}),!p&&!h&&t.jsx(Oe,{icon:"user-round",size:ug[a],className:"avatar__icon"})]})}function hg(e,n){if(!n)return!0;const a=n.split(",").map(s=>s.trim()).filter(Boolean);if(a.length===0)return!0;const r=e.name.toLowerCase(),o=e.type.toLowerCase();return a.some(s=>{const l=s.toLowerCase();return l.startsWith(".")?r.endsWith(l):l.endsWith("/*")?o.startsWith(l.slice(0,-1)):o===l})}function mg({onFilesSelected:e,accept:n,multiple:a=!1,disabled:r=!1,showFileList:o=!0,files:s,onRemove:l,className:c=""}){const{t:u}=de.useTranslation(),d=i.useRef(null),[p,h]=i.useState(!1),[m,f]=i.useState([]),C=s??m,b=x=>{if(!x||x.length===0)return;const k=Array.from(x).filter(N=>hg(N,n));if(k.length===0)return;const T=a?k:k.slice(0,1);if(s===void 0){const N=a?[...C,...T]:T;f(N),e?.(N)}else e?.(T)},g=x=>{x.preventDefault(),!r&&h(!0)},y=x=>{x.preventDefault(),h(!1)},w=x=>{x.preventDefault(),h(!1),!r&&b(x.dataTransfer.files)},_=x=>{b(x.target.files),x.target.value=""},v=()=>{r||d.current?.click()},A=x=>{if(l){l(x);return}if(s===void 0){const k=C.filter((T,N)=>N!==x);f(k),e?.(k)}};return t.jsxs("div",{className:`file-upload ${c}`.trim(),children:[t.jsxs("div",{className:ye("file-upload__dropzone",p&&"file-upload__dropzone--dragging",r&&"file-upload__dropzone--disabled"),role:"button",tabIndex:r?-1:0,"aria-disabled":r,onClick:v,onKeyDown:x=>{(x.key==="Enter"||x.key===" ")&&(x.preventDefault(),v())},onDragOver:g,onDragLeave:y,onDrop:w,children:[t.jsx(Oe,{icon:"upload",size:24,className:"file-upload__icon"}),t.jsx("span",{className:"file-upload__prompt body-2",children:u("fileUpload.dragPrompt","\uD30C\uC77C\uC744 \uC774\uACF3\uC5D0 \uB4DC\uB798\uADF8\uD558\uC5EC \uC5C5\uB85C\uB4DC")}),t.jsx("button",{type:"button",className:"file-upload__browse-button body-3",disabled:r,onClick:x=>{x.stopPropagation(),v()},children:u("fileUpload.browseButton","\uD30C\uC77C \uC120\uD0DD")}),t.jsx("input",{ref:d,type:"file",className:"file-upload__input",accept:n,multiple:a,disabled:r,onChange:_,tabIndex:-1})]}),o&&C.length>0&&t.jsx("ul",{className:"file-upload__list",children:C.map((x,k)=>t.jsxs("li",{className:"file-upload__list-item body-3",children:[t.jsx("span",{className:"file-upload__file-name body-3",children:x.name}),t.jsx("button",{type:"button",className:"file-upload__remove-button","aria-label":u("fileUpload.removeAriaLabel",{name:x.name}),onClick:()=>A(k),children:t.jsx(Oe,{icon:"x",size:14})})]},`${x.name}-${k}`))})]})}function Cg({items:e,className:n=""}){return t.jsx("nav",{className:`breadcrumb ${n}`.trim(),"aria-label":"breadcrumb",children:t.jsx("ol",{className:"breadcrumb__list",children:e.map((a,r)=>{const o=r===e.length-1;return t.jsxs("li",{className:"breadcrumb__item",children:[o?t.jsx("span",{className:"breadcrumb__current body-3","aria-current":"page",children:a.label}):t.jsx("button",{type:"button",className:"breadcrumb__link body-3",onClick:a.onClick,children:a.label}),!o&&t.jsx(Oe,{icon:"chevron-right",size:14,className:"breadcrumb__separator"})]},r)})})})}const fg={small:14,medium:20,large:28};function gg({value:e,onChange:n,max:a=5,readOnly:r=!1,size:o="medium",ariaLabel:s,className:l=""}){const{t:c}=de.useTranslation(),u=r||!n,[d,p]=i.useState(null),h=d??e,m=fg[o],f=v=>{u||n?.(v)},C=v=>{u||p(v)},b=i.useRef(null),g=v=>{const A=Math.min(a,Math.max(1,v));n?.(A),Array.from(b.current?.querySelectorAll("[data-star]")??[]).find(x=>x.dataset.star===String(A))?.focus()},y=v=>{if(!u){switch(v.key){case"ArrowRight":case"ArrowUp":g((e||0)+1);break;case"ArrowLeft":case"ArrowDown":g((e||1)-1);break;case"Home":g(1);break;case"End":g(a);break;default:return}v.preventDefault()}},w=e>=1&&e<=a?Math.round(e):1,_=()=>{u||p(null)};return t.jsx("div",{className:`rating rating--${o}${u?" rating--readOnly":""} ${l}`.trim(),ref:b,onKeyDown:y,role:u?"img":"radiogroup","aria-label":u?c("rating.valueLabel",{value:e,max:a}):s??c("rating.groupLabel","\uBCC4\uC810"),onMouseLeave:_,children:Array.from({length:a},(v,A)=>{const x=A+1,k=Math.max(0,Math.min(1,h-A)),T=k>0&&k<1,N=t.jsxs("span",{className:"rating__star-wrap",children:[t.jsx(Oe,{icon:"star",size:m,className:"rating__star rating__star--empty"}),k>0&&t.jsx("span",{className:`rating__star-fill${T?" rating__star-fill--half":""}`,children:t.jsx(Oe,{icon:"star",size:m,className:"rating__star rating__star--filled"})})]});return u?t.jsx("span",{className:"rating__item","aria-hidden":"true",children:N},x):t.jsx("button",{type:"button",className:"rating__item rating__item--interactive",role:"radio","aria-checked":e===x,"aria-label":c("rating.starLabel",{n:x}),"data-star":x,tabIndex:x===w?0:-1,onClick:()=>f(x),onMouseEnter:()=>C(x),children:N},x)})})}const bg=20,yg=["#499cdf","#4dcdc0","#2fae9e","#e6b94e","#d9534f","#e06b68","#bfc7d1"];function vg({value:e,onChange:n,palette:a=yg,size:r=40,className:o="",ariaLabel:s}){const{t:l}=de.useTranslation();return t.jsx("div",{className:`color-picker ${o}`.trim(),role:"group","aria-label":s,children:a.map(c=>{const u=e?.toLowerCase()===c.toLowerCase();return t.jsx("button",{type:"button",className:`color-picker__swatch color-picker__swatch--${r}`,style:{backgroundColor:c},onClick:()=>n(c),"aria-pressed":u,"aria-label":u?`${c} ${l("colorPicker.selected","\uC120\uD0DD\uB428")}`:c,children:u&&t.jsx(Oe,{icon:"check",size:bg,className:"color-picker__check"})},c)})})}function xg({icon:e,count:n,title:a,className:r="",onClick:o,onMouseEnter:s,onMouseLeave:l}){const c=ye("count-tile",o&&"count-tile--clickable",r);return t.jsxs("div",{className:c,onClick:o,onKeyDown:o?u=>{u.key!=="Enter"&&u.key!==" "||(u.preventDefault(),u.currentTarget.click())}:void 0,onMouseEnter:s,onMouseLeave:l,role:o?"button":"img",tabIndex:o?0:void 0,"aria-label":a?`${a} ${n}`:String(n),children:[t.jsx(Oe,{icon:e,size:20,className:"count-tile__icon"}),t.jsx("span",{className:"count-tile__count h5","aria-hidden":"true",children:n})]})}function _g(){return t.jsx("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round","aria-hidden":!0,children:t.jsx("path",{d:"M6 6l12 12M18 6 6 18"})})}function wg({open:e,onClose:n,ariaLabel:a,title:r,children:o,size:s="md",closeOnBackdrop:l=!0,closeOnEscape:c=!0,showClose:u=!0,className:d,contentClassName:p}){const{t:h}=de.useTranslation(),m=i.useId(),f=i.useRef(null),C=i.useCallback(()=>n(),[n]);return i.useEffect(()=>{if(!e)return;const b=document.activeElement,{overflow:g}=document.body.style;return document.body.style.overflow="hidden",f.current?.focus(),()=>{document.body.style.overflow=g,b?.focus?.()}},[e]),i.useEffect(()=>{if(!(!e||!c))return lr(C)},[e,c,C]),tr(f,e),!e||typeof document>"u"?null:It.createPortal(t.jsx("div",{className:ye("dialog",d),onClick:l?C:void 0,children:t.jsxs("div",{ref:f,role:"dialog","aria-modal":"true","aria-label":r?void 0:a,"aria-labelledby":r?m:void 0,tabIndex:-1,className:ye("dialog__surface",`dialog__surface--${s}`,p),onClick:b=>b.stopPropagation(),children:[r?t.jsx("div",{className:"dialog__header",children:t.jsx("h2",{id:m,className:"dialog__title h4b",children:r})}):null,u?t.jsx("button",{type:"button",className:"dialog__close","aria-label":h("common.close","\uB2EB\uAE30"),onClick:C,children:t.jsx(_g,{})}):null,t.jsx("div",{className:"dialog__body",children:o})]})}),document.body)}function kg({columns:e,rows:n,rowKey:a,title:r,toolbar:o,empty:s="\uB4F1\uB85D\uB41C \uD56D\uBAA9\uC774 \uC5C6\uC2B5\uB2C8\uB2E4.",loading:l,caption:c,className:u=""}){const d=!l&&n.length===0;return t.jsxs("div",{className:ye("board",u),children:[r||o?t.jsxs("div",{className:"board__head",children:[r?t.jsx("h2",{className:"board__title",children:r}):t.jsx("span",{}),o?t.jsx("div",{className:"board__toolbar",children:o}):null]}):null,t.jsxs("table",{className:"board__table",children:[c?t.jsx("caption",{className:"board__caption",children:c}):null,t.jsx("thead",{children:t.jsx("tr",{children:e.map(p=>t.jsx("th",{scope:"col",className:ye("board__th",`board__cell--${p.headerAlign??p.align??"left"}`),style:p.width?{width:p.width}:void 0,children:p.header},p.key))})}),t.jsx("tbody",{children:l?t.jsx("tr",{children:t.jsx("td",{className:"board__state",colSpan:e.length,children:l})}):d?t.jsx("tr",{children:t.jsx("td",{className:"board__state",colSpan:e.length,children:s})}):n.map((p,h)=>t.jsx("tr",{className:"board__row",children:e.map(m=>t.jsx("td",{className:ye("board__td",`board__cell--${m.align??"left"}`),children:m.render(p,h)},m.key))},a(p,h)))})]})]})}function Ag({name:e,role:n,photo:a,media:r,credentials:o,size:s=190,className:l=""}){return t.jsxs("div",{className:ye("person-card",l),children:[t.jsx("div",{className:"person-card__photo",style:{width:s,height:s},children:r??(a?t.jsx("img",{src:a,alt:n?`${e} ${n}`:e}):null)}),t.jsx("h3",{className:"person-card__name",children:e}),n?t.jsx("p",{className:"person-card__role",children:n}):null,o?.length?t.jsx("ul",{className:"person-card__credentials",children:o.map(c=>t.jsx("li",{children:c},c))}):null]})}function Ng({groups:e,className:n=""}){return t.jsx("div",{className:ye("timeline",n),children:e.map(a=>t.jsxs("section",{className:"timeline__group",children:[t.jsx("h3",{className:"timeline__title",children:a.title}),t.jsx("ul",{className:"timeline__rows",children:a.entries.map((r,o)=>t.jsxs("li",{className:"timeline__row",children:[r.label?t.jsx("span",{className:"timeline__label",children:r.label}):null,t.jsx("div",{className:"timeline__items",children:r.items.map((s,l)=>t.jsx("p",{children:s},l))})]},`${r.label??""}-${o}`))})]},a.title))})}function Bg({title:e,kind:n,body:a,badge:r,badgeSrc:o,footer:s,width:l,className:c=""}){const u=r??(o?t.jsx("img",{src:o,alt:""}):null);return t.jsxs("div",{className:ye("publication-card",c),style:l?{width:l,flexShrink:0}:void 0,children:[u?t.jsx("div",{className:"publication-card__badge","aria-hidden":"true",children:u}):null,t.jsx("h3",{className:"publication-card__title",children:e}),n?t.jsx("p",{className:"publication-card__kind",children:n}):null,t.jsx("p",{className:"publication-card__body",children:a}),s?t.jsx("div",{className:"publication-card__footer",children:s}):null]})}function Dg({logo:e,alt:n,onDone:a,durationMs:r=3e3}){const o=rr(a);return i.useEffect(()=>{if(!o.current)return;const s=setTimeout(()=>o.current?.(),r);return()=>clearTimeout(s)},[r,o]),t.jsx("div",{className:"splash-logo",style:{"--splash-logo-duration":`${r}ms`},"aria-hidden":"true",children:t.jsx("img",{src:e,alt:n,className:"splash-logo__image"})})}function Sg({eyebrow:e,eyebrowIndex:n,title:a,description:r,level:o=2,tone:s="dark",className:l=""}){const c=o===1?"h1":"h2";return t.jsxs("div",{className:ye("section-header",`section-header--${s}`,l),children:[e?t.jsxs("p",{className:"section-header__eyebrow",children:[n?t.jsxs(t.Fragment,{children:[t.jsx("span",{className:"section-header__index",children:n}),t.jsx("span",{"aria-hidden":!0,className:"section-header__rule"})]}):null,e]}):null,a?t.jsx(c,{className:"section-header__title",children:a}):null,r?t.jsx("div",{className:"section-header__description",children:r}):null]})}function jg({items:e,className:n=""}){return t.jsx("ul",{className:ye("company-meta",n),children:e.map((a,r)=>t.jsxs("li",{className:"company-meta__item",children:[r>0?t.jsx("span",{"aria-hidden":!0,className:"company-meta__divider",children:"|"}):null,a]},a))})}function _i({value:e,onChange:n,suggestions:a,openOnFocus:r=!1}){const o=i.useId(),[s,l]=i.useState(!1),[c,u]=i.useState(-1),d=i.useRef(null),p=i.useMemo(()=>{if(!a.length)return[];const b=e??"";return b?a.filter(g=>g.toLowerCase().includes(b.toLowerCase())):r?a:[]},[a,e,r]);i.useEffect(()=>{s||u(-1)},[s]),i.useEffect(()=>()=>{d.current&&clearTimeout(d.current)},[]);const h=i.useCallback(b=>{n?.(b),l(!1)},[n]),m=i.useCallback(()=>l(!0),[]),f=i.useCallback(()=>{d.current=setTimeout(()=>l(!1),120)},[]),C=i.useCallback(b=>{b.key==="ArrowDown"?(b.preventDefault(),l(!0),u(g=>Math.min(p.length-1,g+1))):b.key==="ArrowUp"?(b.preventDefault(),u(g=>Math.max(-1,g-1))):b.key==="Enter"?c>=0&&!b.nativeEvent.isComposing&&h(p[c]):b.key==="Escape"&&s&&(b.preventDefault(),l(!1))},[p,c,s,h]);return{listId:o,open:s,activeIdx:c,filtered:p,handleFocus:m,handleBlur:f,handleKeyDown:C,handleSelect:h}}function kn(e){const{value:n,defaultValue:a,name:r,inputRef:o,onChange:s,label:l,ariaLabel:c,required:u,placeholder:d,type:p="text",disabled:h=!1,readOnly:m=!1,error:f,helperText:C,maxLength:b,size:g=48,variant:y="input",fullWidth:w=!1,newline:_=!1,multiline:v=!1,rows:A=3,leftIcon:x,rightIcon:k,clearable:T=!1,list:N,showCount:D=!0,className:P="",onFocus:L,onBlur:j,onKeyDown:R,onEnter:M,inputMode:z,autoComplete:H,autoFocus:Z,suggestions:J,openOnFocus:O=!1}=e,{t:S}=de.useTranslation(),$=i.useId();!l&&!c&&Fn(`TextField:unnamed:${$}`,"[ihab/TextField] \uC774\uB984\uC774 \uC5C6\uC2B5\uB2C8\uB2E4 \u2014 label \uC774\uB098 ariaLabel \uC911 \uD558\uB098\uB97C \uC8FC\uC138\uC694. placeholder \uB294 \uC774\uB984\uC744 \uB300\uC2E0\uD558\uC9C0 \uBABB\uD569\uB2C8\uB2E4.");const F=`tf-${$}`,V=`tf-helper-${$}`,X=i.useRef(null),I=_i({value:n??"",onChange:s,suggestions:J??[],openOnFocus:O}),q=!!J&&I.open&&I.filtered.length>0,G=i.useCallback(te=>{X.current=te,typeof o=="function"?o(te):o&&(o.current=te)},[o]),le=n!==void 0,pe=le&&p==="password",fe=(n??"").length;i.useEffect(()=>{const te=X.current;if(!pe||!te)return;const se=n??"";te.value!==se&&(te.value=se)},[pe,n]),i.useEffect(()=>{if(!_||!X.current)return;const te=X.current;te.style.height="",te.scrollHeight>te.clientHeight&&(te.style.height=`${te.scrollHeight}px`)},[n,_]);const ve=b!=null&&fe>b,he=g===32?16:20,E=ye("text-field",`text-field--s${g}`,y==="display"?"text-field--display":"",w?"text-field--full-width":"",h?"text-field--disabled":"",m?"text-field--readonly":"",f?"text-field--error":"",x?"text-field--has-left-icon":"",k||T?"text-field--has-right-icon":"",P),U={id:F,...pe?{}:le?{value:n}:{defaultValue:a},ref:G,placeholder:d,name:r,disabled:h,readOnly:m,autoFocus:Z,maxLength:b,list:N,inputMode:z,autoComplete:H,"aria-label":!l&&c?c:void 0,"aria-required":u,"aria-invalid":!!f,"aria-describedby":C||f?V:void 0,role:J?"combobox":void 0,"aria-autocomplete":J?"list":void 0,"aria-haspopup":J?"listbox":void 0,"aria-expanded":J?I.open:void 0,"aria-controls":q?I.listId:void 0,"aria-activedescendant":q&&I.activeIdx>=0?`${I.listId}-option-${I.activeIdx}`:void 0,onChange:te=>s?.(te.target.value),onFocus:(te=>{L?.(te),J&&I.handleFocus()}),onBlur:(te=>{j?.(te),J&&I.handleBlur()}),onKeyDown:(te=>{J&&te.key==="Enter"&&!te.nativeEvent.isComposing&&I.activeIdx>=0?te.preventDefault():M&&te.key==="Enter"&&!te.nativeEvent.isComposing&&(te.preventDefault(),M()),R?.(te),J&&I.handleKeyDown(te)})},ee=T&&!h&&!m&&fe>0,_e=()=>_?t.jsx("textarea",{...U,className:"text-field__input text-field__input--auto body-2",rows:1}):v?t.jsx("textarea",{...U,className:"text-field__input text-field__input--textarea body-2",rows:A}):t.jsx("input",{...U,type:p,className:"text-field__input body-2"}),ue=y==="display"&&!_&&!v&&!!d,ie=()=>t.jsxs(t.Fragment,{children:[_e(),ue&&t.jsx("span",{className:"text-field__placeholder","aria-hidden":"true",children:d})]});return t.jsxs("div",{className:E,children:[l&&t.jsxs("label",{htmlFor:F,className:"text-field__label caption-1",children:[l,u&&t.jsx("span",{className:"text-field__required",children:"*"})]}),t.jsxs("div",{className:"text-field__wrap",children:[x&&t.jsx("span",{className:"text-field__icon text-field__icon--left",children:t.jsx(Oe,{icon:x,label:"",className:"",svgClassName:"text-field__icon-svg",size:he})}),ie(),b!=null&&D&&t.jsxs("span",{className:`text-field__count caption-2${ve?" text-field__count--over":""}`,children:[fe,"/",b]}),ee&&t.jsx(ae,{size:24,type:"dot",icon:"x",variant:"transparent-gray",useBorder:!1,className:"text-field__clear",ariaLabel:S("textField.clearAriaLabel","\uC785\uB825\uAC12 \uC9C0\uC6B0\uAE30"),htmlType:"button",onMouseDown:te=>{te.preventDefault()},onClick:()=>s?.(""),tabIndex:-1}),k&&!ee&&t.jsx("span",{className:"text-field__icon text-field__icon--right",children:t.jsx(Oe,{icon:k,label:"",className:"",svgClassName:"text-field__icon-svg",size:he})})]}),J&&I.open&&I.filtered.length>0&&t.jsx("ul",{id:I.listId,className:"text-field__suggestions",role:"listbox",children:I.filtered.map((te,se)=>t.jsx("li",{id:`${I.listId}-option-${se}`,role:"option","aria-selected":se===I.activeIdx,className:`text-field__suggestion body-2${se===I.activeIdx?" is-active":""}`,onMouseDown:De=>De.preventDefault(),onClick:()=>{I.handleSelect(te),X.current?.focus()},children:te},`${te}-${se}`))}),(C||f)&&t.jsx("div",{className:"text-field__footer",children:t.jsx("span",{id:V,className:"text-field__helper caption-1",role:f?"alert":void 0,children:f||C})})]})}function zt({options:e,value:n,onChange:a,placeholder:r,disabled:o=!1,block:s=!1,size:l=48,error:c=!1,className:u="",ariaLabel:d}){const{t:p}=de.useTranslation(),h=r??p("dropdown.placeholder","\uC120\uD0DD"),m=i.useId(),f=i.useRef(null),C=i.useCallback(j=>{const R=window.innerHeight-j.bottom<260&&j.top>260;return{position:"fixed",left:j.left,minWidth:j.width,...R?{bottom:window.innerHeight-j.top+6}:{top:j.bottom+6},zIndex:9999}},[]),{open:b,setOpen:g,toggle:y,style:w,triggerRef:_,menuRef:v}=Xn({computeStyle:C}),[A,x]=i.useState(-1),k=i.useCallback(()=>x(-1),[]),T=e.find(j=>j.value===n);i.useEffect(()=>{if(b){const j=e.findIndex(R=>R.value===n);x(j>=0?j:0),requestAnimationFrame(()=>{const R=v.current;if(!R)return;const M=R.querySelectorAll(".dropdown__option")[j];M&&(R.scrollTop=Math.max(0,M.offsetTop-R.clientHeight/2+M.clientHeight/2))})}},[b,e,n,v]);const N=i.useCallback(()=>{o||y()},[o,y]),D=i.useCallback(j=>{j.disabled||(a?.(j.value),g(!1))},[a,g]),P=i.useCallback(j=>{if(!o){if(!b){(j.key==="Enter"||j.key===" "||j.key==="ArrowDown")&&(j.preventDefault(),g(!0));return}if(j.key==="Escape"){j.preventDefault(),g(!1);return}j.key==="ArrowDown"?(j.preventDefault(),x(R=>{let M=R+1;for(;M<e.length&&e[M].disabled;)M++;return M<e.length?M:R})):j.key==="ArrowUp"?(j.preventDefault(),x(R=>{let M=R-1;for(;M>=0&&e[M].disabled;)M--;return M>=0?M:R})):j.key==="Enter"&&A>=0&&(j.preventDefault(),D(e[A]))}},[o,b,e,A,D,g]),L=b?t.jsx("div",{ref:v,id:m,className:"dropdown__menu",role:"listbox",style:w,onMouseLeave:k,children:e.map((j,R)=>t.jsxs("button",{id:`${m}-option-${R}`,type:"button",role:"option","aria-selected":j.value===n,className:ye("dropdown__option body-2",j.value===n?"dropdown__option--active":"",R===A?"dropdown__option--active":"",j.disabled?"dropdown__option--disabled":""),onMouseDown:M=>M.preventDefault(),onClick:()=>D(j),onMouseEnter:()=>x(R),disabled:j.disabled,children:[t.jsx("span",{className:"dropdown__option-check",children:j.value===n&&t.jsx("svg",{viewBox:"0 0 14 14",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",children:t.jsx("polyline",{points:"2 7 5.5 10.5 12 3.5"})})}),j.label]},j.value))}):null;return t.jsxs("div",{ref:f,className:ye("dropdown",`dropdown--s${l}`,b?"dropdown--open":"",s?"dropdown--block":"",c?"dropdown--error":"",u),onKeyDown:P,children:[t.jsxs("button",{ref:_,type:"button",className:"dropdown__trigger","aria-haspopup":"listbox","aria-expanded":b,"aria-controls":b?m:void 0,"aria-activedescendant":b&&A>=0?`${m}-option-${A}`:void 0,"aria-label":d,"aria-invalid":c||void 0,disabled:o,onClick:N,children:[t.jsx("span",{className:`dropdown__trigger-label body-2${T?"":" dropdown__trigger-label--placeholder"}`,children:T?T.label:h}),t.jsx("svg",{className:"dropdown__chevron",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:t.jsx("polyline",{points:"4 6 8 10 12 6"})})]}),typeof document<"u"&&It.createPortal(L,f.current?.closest(".ihabdevteam-core-scope")??document.body)]})}function ga({page:e,totalPages:n,onChange:a,prevLabel:r,nextLabel:o,className:s=""}){const{t:l}=de.useTranslation(),c=r??l("common.prevPage","\uC774\uC804 \uD398\uC774\uC9C0"),u=o??l("common.nextPage","\uB2E4\uC74C \uD398\uC774\uC9C0"),d=()=>a(Math.max(1,e-1)),p=()=>a(Math.min(n,e+1));return t.jsxs("div",{className:ye("pagination",s),children:[t.jsx(ae,{size:32,type:"dot",shape:"rounded",icon:"chevron-left",ariaLabel:c,disabled:e<=1,onClick:d}),t.jsxs("span",{className:"pagination__info body-3",children:[e," / ",n]}),t.jsx(ae,{size:32,type:"dot",shape:"rounded",icon:"chevron-right",ariaLabel:u,disabled:e>=n,onClick:p})]})}function An(e){const{t:n}=de.useTranslation(),{options:a=[],value:r=a[0]?.key,onChange:o=g=>{},className:s="",size:l=48,shape:c="pill",useBG:u=!0,fullWidth:d=!1,ariaLabel:p}=e||{},h=i.useRef(null),m=a.filter(g=>!g.disabled),f=g=>{if(!m.length)return;const y=Math.max(0,m.findIndex(_=>_.key===r)),w=g==="first"?m[0]:g==="last"?m[m.length-1]:m[(y+g+m.length)%m.length];w&&(o(w.key),Array.from(h.current?.querySelectorAll("[data-segkey]")??[]).find(_=>_.dataset.segkey===w.key)?.focus())},C=g=>{switch(g.key){case"ArrowRight":case"ArrowDown":f(1);break;case"ArrowLeft":case"ArrowUp":f(-1);break;case"Home":f("first");break;case"End":f("last");break;default:return}g.preventDefault()},b=m.some(g=>g.key===r)?r:m[0]?.key;return t.jsx("div",{ref:h,onKeyDown:C,className:ye("segmented-control",`segmented-control--${c}`,`segmented-control--${l}`,d&&"segmented-control--full",!u&&"segmented-control--no-bg",s),role:"radiogroup","aria-label":p??n("segmentedControl.ariaLabel","\uC120\uD0DD \uD0ED"),children:a.map(g=>t.jsx(ae,{role:"radio","aria-checked":g.key===r,"data-segkey":g.key,tabIndex:g.key===b?0:-1,label:g.label,count:g.count,disabled:g.disabled,className:g.key===r?"is-selected":"",onClick:()=>{g.disabled||o(g.key)},size:l,shape:c,useBorder:!1,useBG:!1},g.key))})}function hr({count:e,search:n,segment:a,filters:r,pageSize:o,pagination:s,actions:l,className:c}){const{t:u}=de.useTranslation(),d=e!=null&&t.jsxs("p",{className:"toolbar__count body-1",children:[e.prefix??u("common.totalPrefix","\uCD1D "),t.jsx("span",{className:"toolbar__count-highlight",children:e.value}),e.unit,e.suffix]}),p=!!(n||r?.length||o||s||l);return t.jsxs("div",{className:ye("toolbar",c),children:[t.jsxs("div",{className:"toolbar__row",children:[d,a&&(Array.isArray(a)?a:[a]).map((h,m)=>t.jsx(An,{size:40,...h},h.ariaLabel??m))]}),p&&t.jsx("div",{className:"toolbar__row",children:t.jsxs("div",{className:"toolbar__row-end",children:[n&&t.jsx(kn,{className:"toolbar__search",size:40,value:n.value,onChange:n.onChange,placeholder:n.placeholder??u("common.search","\uAC80\uC0C9"),ariaLabel:n.placeholder??u("common.search","\uAC80\uC0C9"),clearable:!0}),r?.map((h,m)=>t.jsx(zt,{size:40,options:h.options,value:h.value,onChange:h.onChange,ariaLabel:h.ariaLabel},m)),o&&t.jsx(zt,{size:40,options:o.options,value:o.value,onChange:o.onChange,ariaLabel:o.ariaLabel??u("common.pageSizeSelect","\uD398\uC774\uC9C0\uB2F9 \uD45C\uC2DC \uAC1C\uC218")}),s&&t.jsx(ga,{page:s.page,totalPages:s.total,onChange:s.onChange,prevLabel:s.prevLabel,nextLabel:s.nextLabel}),l]})})]})}function wi(e){return typeof e=="string"?e:typeof e=="number"?String(e):Array.isArray(e)?e.map(wi).join(""):""}function Eg(e){let n=e.replace(/\r\n/g,`
|
|
833
833
|
`).replace(/\r/g,`
|
|
834
834
|
`);n=n.replace(/^\n+/,"").replace(/\n+$/,"");const a=n.split(`
|
|
835
835
|
`).map(s=>s.replace(/\t/g," ")),r=a.filter(s=>s.trim().length>0),o=r.length>0?Math.min(...r.map(s=>s.match(/^ */)?.[0].length??0)):0;return a.map(s=>s.slice(o)).join(`
|
|
836
|
-
`)}const
|
|
837
|
-
`),b=
|
|
838
|
-
`),b=f===-1?a:a.slice(0,f);s("comment",b),a=a.slice(b.length);continue}const c=a.match(/^\/\*[\s\S]*?\*\//);if(c){s("comment",c[0]),a=a.slice(c[0].length);continue}const u=a.match(/^(`(?:\\.|[^`])*`|"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*')/);if(u){s("string",u[0]),a=a.slice(u[0].length);continue}const d=a.match(/^\d+(?:\.\d+)?/);if(d){s("number",d[0]),a=a.slice(d[0].length);continue}const p=a.match(Tg);if(p){s("keyword",p[0]),a=a.slice(p[0].length);continue}const h=a.match(/^[A-Za-z_$][A-Za-z0-9_$-]*/);if(h){const f=h[0];s(o&&Eg.has(f)?"command":"identifier",f),a=a.slice(f.length);continue}const m=a.match(/^[=+\-*/%<>!&|^~?:]+/);if(m){s("operator",m[0]),a=a.slice(m[0].length);continue}const C=a.match(/^[()[\]{};.,]/);if(C){s("punctuation",C[0]),a=a.slice(1);continue}s("other",a[0]),a=a.slice(1)}return r}function Lg({children:e,language:n="bash",title:a="",showCopy:r=!0,size:o="default",className:s=""}){const{t:l}=de.useTranslation(),[c,u]=i.useState(!1),d=jg(_i(e)),p=i.useRef(null);i.useEffect(()=>()=>{p.current&&clearTimeout(p.current)},[]);const h=async()=>{try{if(!await t0(d))return;u(!0),p.current&&clearTimeout(p.current),p.current=setTimeout(()=>u(!1),2e3)}catch{}},m=Mg(d,n),C=o==="small"?"caption-1":"body-3";return t.jsxs("div",{className:ye("code-box",o==="small"?"code-box--small":"",s),children:[(a||r)&&t.jsxs("div",{className:"code-box__header",role:"toolbar","aria-label":l("common.codeBlock","\uCF54\uB4DC \uBE14\uB85D"),children:[t.jsx("div",{className:"code-box__title caption-1",children:a}),r&&t.jsx(ae,{className:"code-box__copy",size:40,type:"dot",variant:"transparent-gray",useBorder:!1,icon:c?"check":"copy",onClick:h,ariaLabel:c?l("common.copied","\uBCF5\uC0AC\uB428"):l("common.copyCode","\uCF54\uB4DC \uBCF5\uC0AC")})]}),t.jsx("pre",{className:"code-box__inner","data-lang":n,children:t.jsx("code",{children:m.map((f,b)=>t.jsx("span",{className:`code-token ${f.type} ${C}`,children:f.content},b))})})]})}function ta(e){const{t:n}=de.useTranslation(),{variant:a="spinner",size:r=24,progress:o=null,label:s}=e||{},l=s||n("loader.loading","Loading");if(a==="bar"){const u=Math.max(0,Math.min(100,Number(o)||0));return t.jsx("div",{className:"loader-bar",role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":u,"aria-label":l,children:t.jsx("div",{className:"loader-bar__inner",style:{width:`${u}%`}})})}const c=typeof r=="number"?`${r}px`:r;return t.jsx("div",{className:"loader-spinner",style:{width:c,height:c},role:"status","aria-label":l,children:t.jsxs("svg",{className:"loader-spinner__svg",viewBox:"0 0 50 50",width:r,height:r,children:[t.jsx("circle",{className:"loader-spinner__bg",cx:"25",cy:"25",r:"20",fill:"none",strokeWidth:"4"}),t.jsx("circle",{className:"loader-spinner__fg",cx:"25",cy:"25",r:"20",fill:"none",strokeWidth:"4",strokeLinecap:"round"})]})})}function wi({checked:e,onChange:n,disabled:a=!1,label:r,ariaLabel:o,labelPosition:s="right",className:l="",id:c}){const u=r&&t.jsx("span",{className:"toggle__label body-3",children:r});return t.jsxs("label",{className:`toggle${a?" toggle--disabled":""} ${l}`.trim(),children:[s==="left"&&u,t.jsx("input",{id:c,type:"checkbox",role:"switch",checked:e,disabled:a,onChange:d=>n?.(d.target.checked),"aria-label":!r&&o?o:void 0}),t.jsx("span",{className:"toggle__slider"}),s==="right"&&u]})}function ki({checked:e=!1,onChange:n,disabled:a,indeterminate:r,label:o,size:s="medium",className:l,title:c,ariaLabel:u}){const d=i.useRef(null),p=i.useId();return i.useEffect(()=>{d.current&&(d.current.indeterminate=!!r)},[r]),t.jsxs("label",{className:ye("checkbox",s==="small"&&"checkbox--small",s==="large"&&"checkbox--large",a&&"checkbox--disabled",l),htmlFor:p,title:c,children:[t.jsx("input",{ref:d,id:p,type:"checkbox",className:"checkbox__input",checked:e,onChange:h=>n?.(h.target.checked),disabled:a,"aria-label":!o&&u?u:void 0}),t.jsx("span",{className:"checkbox__box"}),o&&t.jsx("span",{className:"checkbox__label body-3",children:o})]})}function $g({count:e,actions:n,onClear:a,clearLabel:r,visible:o,content:s,max:l}){const{t:c}=de.useTranslation(),u=o!==void 0?o:e>0,d=r??c("bulkBar.clearSelection","\uC120\uD0DD \uD574\uC81C"),p=i.useRef(null),[h,m]=i.useState(!1);return i.useEffect(()=>{const C=p.current;if(!C)return;const f=()=>{const g=C.firstElementChild??C,y=Array.from(g.children);if(y.length<2){m(!1);return}const w=y[0].offsetTop;m(y.some(_=>_.offsetTop!==w))};if(f(),typeof ResizeObserver>"u")return;const b=new ResizeObserver(f);return b.observe(C),()=>b.disconnect()},[s,e]),t.jsxs("div",{className:`bulk-bar ${u?"bulk-bar--visible":""}`,inert:!u||void 0,"aria-hidden":u?void 0:!0,children:[t.jsx("span",{ref:p,className:"bulk-bar__count body-2",children:s??t.jsx("b",{children:c("common.selectedCount",{count:e})})}),l!==void 0&&t.jsx(lt,{size:"small",fill:"soft",variant:"main",label:`${e} / ${l}`}),t.jsxs("div",{className:`bulk-bar__actions${h?" bulk-bar__actions--stacked":""}`,children:[t.jsx(ae,{size:40,label:d,onClick:a}),n.map((C,f)=>t.jsx(ae,{size:40,variant:C.variant??"default",icon:C.icon,label:C.label,onClick:C.onClick},f))]})]})}function Ai(e){const n=()=>{if(e){const[h,m]=e.split("-");return{y:+h,m:+m-1}}const p=new Date;return{y:p.getFullYear(),m:p.getMonth()}},[a,r]=i.useState(()=>n().y),[o,s]=i.useState(()=>n().m),l=i.useRef(e);i.useEffect(()=>{if(e===l.current)return;l.current=e;const p=n();r(p.y),s(p.m)},[e]);const c=i.useCallback(()=>{o===0?(r(p=>p-1),s(11)):s(p=>p-1)},[o]),u=i.useCallback(()=>{o===11?(r(p=>p+1),s(0)):s(p=>p+1)},[o]),d=i.useCallback((p,h)=>{r(p),s(h)},[]);return{viewY:a,viewM:o,prevMonth:c,nextMonth:u,setViewYM:d}}function Ni(e,n){return new Date(e,n+1,0).getDate()}function Rg(e,n){return new Date(e,n,1).getDay()}function En(e,n,a){return`${e}-${String(n+1).padStart(2,"0")}-${String(a).padStart(2,"0")}`}function Pg(e){if(!e)return"";const[n,a,r]=e.split("-");return`${n}. ${a}. ${r}.`}function Ig(e,n,a,r){const o=a?+a.split("-")[0]:e-10,s=r?+r.split("-")[0]:e+10,l=[];for(let c=o;c<=s;c++)for(let u=0;u<12;u++){const d=`${c}-${String(u+1).padStart(2,"0")}`;a&&d<a.slice(0,7)||r&&d>r.slice(0,7)||l.push({value:d,label:n(c,u+1)})}return l}function Fg({value:e,onChange:n,size:a=48,min:r,max:o,disabled:s,placeholder:l,className:c}){const{t:u}=de.useTranslation(),d=l??u("datePicker.chooseDate","\uB0A0\uC9DC \uC120\uD0DD"),p=i.useMemo(()=>u("calendar.dow",{returnObjects:!0}),[u]),h=new Date,{viewY:m,viewM:C,prevMonth:f,nextMonth:b,setViewYM:g}=Ai(e),y=i.useCallback(j=>{const $=window.innerHeight-j.bottom,F=300,H=$<F&&j.top>F;return{position:"fixed",left:j.left,width:j.width,minWidth:260,...H?{bottom:window.innerHeight-j.top+6}:{top:j.bottom+6},zIndex:9999}},[]),{open:w,setOpen:_,toggle:v,style:A,triggerRef:x,menuRef:k}=Xn({computeStyle:y,onScroll:"reposition",onResize:"reposition",ignoreOutsideClickSelector:".dropdown__menu"});i.useEffect(()=>{if(!w)return;const j=k.current;return(j?.querySelector(".date-picker__day--selected")??j?.querySelector(".date-picker__day--today")??j?.querySelector(Zn)??j)?.focus?.(),()=>{const $=document.activeElement;(!$||$===document.body)&&x.current?.focus?.()}},[w,k,x]);const[M,N]=i.useState(1),D=i.useRef(null),P=i.useRef(null);i.useEffect(()=>{if(!w)return;const j=En(h.getFullYear(),h.getMonth(),h.getDate()),$=e&&e.slice(0,7)===`${m}-${String(C+1).padStart(2,"0")}`?+e.slice(8):j.slice(0,7)===`${m}-${String(C+1).padStart(2,"0")}`?+j.slice(8):1;N($)},[w]),i.useEffect(()=>{if(P.current==null)return;const j=P.current;P.current=null,D.current?.querySelector(`[data-day="${j}"]`)?.focus()}),i.useEffect(()=>{N(j=>Math.min(j,Ni(m,C)))},[m,C]);const L=i.useCallback(j=>{let $=En(j.getFullYear(),j.getMonth(),j.getDate());r&&$<r&&($=r),o&&$>o&&($=o);const[F,H,Z]=$.split("-").map(Number);(F!==m||H-1!==C)&&g(F,H-1),N(Z),P.current=Z},[r,o,m,C,g]),E=i.useCallback(j=>{const $=new Date(m,C,M),F=Z=>{$.setDate($.getDate()+Z),L($)},H=Z=>{$.setMonth($.getMonth()+Z),L($)};switch(j.key){case"ArrowLeft":F(-1);break;case"ArrowRight":F(1);break;case"ArrowUp":F(-7);break;case"ArrowDown":F(7);break;case"Home":F(-$.getDay());break;case"End":F(6-$.getDay());break;case"PageUp":j.shiftKey?H(-12):H(-1);break;case"PageDown":j.shiftKey?H(12):H(1);break;default:return}j.preventDefault()},[m,C,M,L]),R=i.useCallback(j=>{n(En(m,C,j)),_(!1)},[m,C,n,_]),S=j=>{const $=En(m,C,j);return!!(r&&$<r||o&&$>o)},V=[];for(let j=0;j<Rg(m,C);j++)V.push(null);for(let j=1;j<=Ni(m,C);j++)V.push(j);const Y=a===64?20:a===40?16:18,X=Ig(m,(j,$)=>u("calendar.yearMonth",{year:j,month:$,defaultValue:"{{year}}\uB144 {{month}}\uC6D4"}),r,o),J=`${m}-${String(C+1).padStart(2,"0")}`,O=w?It.createPortal(t.jsxs("div",{ref:k,className:"date-picker__dropdown",style:A,role:"dialog","aria-label":u("datePicker.chooseDate","\uB0A0\uC9DC \uC120\uD0DD"),tabIndex:-1,children:[t.jsxs("div",{className:"date-picker__nav",children:[t.jsx("button",{type:"button",className:"date-picker__nav-btn",onClick:f,"aria-label":u("calendar.prevMonth","\uC774\uC804 \uB2EC"),children:t.jsx(co,{size:16,strokeWidth:2})}),t.jsx(zt,{className:"date-picker__nav-dropdown",ariaLabel:u("datePicker.selectYearMonth","\uC5F0\uC6D4 \uC120\uD0DD"),options:X,value:J,onChange:j=>{const[$,F]=j.split("-");g(+$,+F-1)},block:!0,size:40}),t.jsx("button",{type:"button",className:"date-picker__nav-btn",onClick:b,"aria-label":u("calendar.nextMonth","\uB2E4\uC74C \uB2EC"),children:t.jsx(uo,{size:16,strokeWidth:2})})]}),t.jsxs("div",{className:"date-picker__grid",ref:D,onKeyDown:E,children:[p.map(j=>t.jsx("div",{className:"date-picker__dow caption-1",children:j},j)),V.map((j,$)=>{if(j===null)return t.jsx("div",{},`e${$}`);const F=En(m,C,j),H=F===e,Z=F===En(h.getFullYear(),h.getMonth(),h.getDate()),I=S(j),W=$%7;return t.jsx("button",{type:"button",disabled:I,"data-day":j,tabIndex:j===M?0:-1,"aria-current":Z?"date":void 0,onClick:()=>!I&&R(j),className:ye("date-picker__day caption-1",H&&"date-picker__day--selected",Z&&!H&&"date-picker__day--today",I&&"date-picker__day--disabled",W===0&&"date-picker__day--sun",W===6&&"date-picker__day--sat"),children:j},j)})]})]}),document.body):null;return t.jsxs("div",{className:ye("date-picker",`date-picker--s${a}`,w&&"date-picker--open",c),children:[t.jsxs("button",{ref:x,type:"button",className:"date-picker__trigger body-2",onClick:()=>!s&&v(),disabled:s,"aria-haspopup":"true","aria-expanded":w,children:[t.jsx("span",{className:e?"date-picker__value":"date-picker__placeholder",children:e?Pg(e):d}),t.jsx(vo,{size:Y,className:"date-picker__icon",strokeWidth:1.5})]}),O]})}function mr({items:e,className:n}){return t.jsx("div",{className:n?`manager-bar-chart-legend ${n}`:"manager-bar-chart-legend",children:e.map((a,r)=>t.jsxs("span",{className:"manager-bar-chart-legend-item",children:[t.jsx("span",{className:"manager-bar-chart-legend-dot",style:{background:a.color}}),a.label]},r))})}function ba({label:e,children:n}){return e?t.jsxs("div",{className:"barchart-total barchart-total--stacked",children:[t.jsx("span",{className:"barchart-total__label body-3",children:e}),t.jsx("span",{className:"barchart-total__value",children:n})]}):t.jsx("div",{className:"barchart-total",children:n})}function fr({title:e,titleClassName:n="h3",headRight:a,subRow:r,className:o,children:s}){return t.jsxs("section",{className:o?`manager-section ${o}`:"manager-section",children:[t.jsxs("div",{className:"manager-section__head",children:[t.jsx("div",{className:n,children:e}),a]}),r&&t.jsx("div",{className:"barchart-sub-row",children:r}),s]})}function pn(e,n){const a=new Date(e,n,1).getDay();return 1+(8-(a===0?7:a))%7}function Og(){const e=new Date;let n=e.getFullYear(),a=e.getMonth(),r=e.getDate();if(r<pn(n,a)){const l=new Date(n,a,0);n=l.getFullYear(),a=l.getMonth(),r=l.getDate()}const o=Math.floor((r-pn(n,a))/7),s=`${n}\uB144 ${a+1}\uC6D4`;return{monthKey:s,value:`${s}#${o}`}}function Hg(e){const n=new Date,a=`${n.getFullYear()}\uB144 ${n.getMonth()+1}\uC6D4`,r=(u,d)=>`${u}\uB144 ${d+1}\uC6D4`,o=new Map;o.set(a,[]);for(const u of e){if(isNaN(u.date.getTime()))continue;const d=r(u.date.getFullYear(),u.date.getMonth());o.has(d)||o.set(d,[]),o.get(d).push(u)}const s=new Map;for(const[u,d]of o){const p=u.match(/^(\d+)년 (\d+)월$/);if(!p)continue;const h=Number(p[1]),m=Number(p[2])-1,C=new Date(h,m+1,0).getDate(),f=d.reduce((w,_)=>Math.max(w,_.parts?.length??0),0),b=new Array(C+1).fill(0),g=new Array(C+1).fill(0),y=Array.from({length:C+1},()=>new Array(f).fill(0));for(const w of d){const _=w.date.getDate();if(b[_]+=w.a,g[_]+=w.b,w.parts)for(let v=0;v<f;v++)y[_][v]+=w.parts[v]??0}s.set(u,{year:h,month:m,daysInMonth:C,partsLen:f,dayA:b,dayB:g,dayParts:y})}const l=(u,d,p)=>new Date(u,d,p).getTime()>new Date(n.getFullYear(),n.getMonth(),n.getDate()).getTime(),c={};for(const[u,d]of s){const{year:p,month:h,daysInMonth:m,dayA:C,dayB:f,dayParts:b}=d,g=p===n.getFullYear()&&h===n.getMonth(),y=n.getDate(),w=s.get(r(h===11?p+1:p,(h+1)%12)),_=d.partsLen,v=[];for(let x=1;x<=m;x++){const k=g&&x>y;v.push({label:String(x),a:k&&C[x]===0&&f[x]===0?-1:C[x],b:f[x],..._?{parts:b[x]}:{}})}const A=[];for(let x=pn(p,h);x<=m;x+=7){const k=Math.max(0,x+6-m),M=k&&w?Math.max(_,w.partsLen):_;let N=0,D=0;const P=new Array(M).fill(0);for(let E=x;E<=Math.min(x+6,m);E++){N+=C[E],D+=f[E];for(let R=0;R<_;R++)P[R]+=b[E][R]}if(k&&w)for(let E=1;E<=k&&!l(w.year,w.month,E);E++){N+=w.dayA[E],D+=w.dayB[E];for(let R=0;R<w.partsLen;R++)P[R]+=w.dayParts[E][R]}const L=k?`${(h+1)%12+1}/${k}`:`${x+6}`;A.push({label:`${A.length+1}\uC8FC`,sublabel:`[${x}\uC77C~${L}\uC77C]`,a:N,b:D,...M?{parts:P}:{}})}c[u]={weekly:A,daily:v}}return c}function Vg(){const e=new Date,n=e.getFullYear(),a=e.getMonth()+1,r=[];for(let o=2024;o<=n;o++){const s=o===n?a:12;for(let l=1;l<=s;l++){const c=`${o}\uB144 ${l}\uC6D4`;r.push({value:c,label:c,year:o,month:l})}}return r.reverse()}const zg=Vg(),Bi=["\uCCAB\uC9F8","\uB458\uC9F8","\uC14B\uC9F8","\uB137\uC9F8","\uB2E4\uC12F\uC9F8","\uC5EC\uC12F\uC9F8","\uC77C\uACF1\uC9F8"];function Si(e){const{t:n,i18n:a}=de.useTranslation(),[r,o]=i.useState("week"),s=i.useMemo(()=>zg.filter(N=>N.value in e),[e]),l=i.useMemo(()=>{const N=[];for(const D of s){const P=new Date(D.year,D.month,0).getDate(),L=pn(D.year,D.month-1),E=Math.ceil((P-L+1)/7);for(let R=E-1;R>=0;R--)N.push({value:`${D.value}#${R}`,monthKey:D.value,year:D.year,month:D.month,week:R})}return N},[s]),c=i.useCallback(N=>{const D=n("calendar.yearMonth",{year:N.year,month:N.month});return a.language?.startsWith("ko")?`${D} ${Bi[N.week]??`${N.week+1}`}\uC8FC`:`${D} Week ${N.week+1}`},[n,a.language]),u=i.useMemo(()=>s.map(N=>({value:N.value,label:n("calendar.yearMonth",{year:N.year,month:N.month})})),[n,s]),d=i.useMemo(()=>l.map(N=>({value:N.value,label:c(N)})),[l,c]),p=i.useMemo(()=>Og(),[]),h=i.useMemo(()=>s.find(N=>N.value===p.monthKey)?.value??s[0]?.value??"",[s,p]),m=i.useMemo(()=>l.find(N=>N.value===p.value)?.value??l[0]?.value??"",[l,p]),[C,f]=i.useState(""),[b,g]=i.useState("");i.useEffect(()=>{s.find(N=>N.value===C)||f(h)},[s,C,h]),i.useEffect(()=>{l.find(N=>N.value===b)||g(m)},[l,b,m]);const y=r==="month"?u:d,w=r==="month"?C:b,_=r==="month"?f:g,v=i.useMemo(()=>{const N=n("calendar.dow",{returnObjects:!0});return Array.isArray(N)?N:["\uC77C","\uC6D4","\uD654","\uC218","\uBAA9","\uAE08","\uD1A0"]},[n]),A=y.findIndex(N=>N.value===w),x=i.useCallback(()=>{const N=y.findIndex(D=>D.value===w);N<y.length-1&&_(y[N+1].value)},[y,w,_]),k=i.useCallback(()=>{const N=y.findIndex(D=>D.value===w);N>0&&_(y[N-1].value)},[y,w,_]),M=i.useMemo(()=>[{key:"week",label:n("manager.chart.periodWeek","\uC8FC")},{key:"month",label:n("manager.chart.periodMonth","\uC6D4")}],[n]);return{period:r,setPeriod:o,range:w,setRange:_,activeOptions:y,activeIdx:A,handlePrev:x,handleNext:k,periodOptions:M,monthRange:C,weekRange:b,weekRanges:l,DOW:v}}function Wg({data:e,colorA:n,colorB:a,labelA:r,labelB:o,barWidth:s=10,height:l=140,maxOverride:c,tightMax:u,seriesColors:d,seriesLabels:p,rateLabels:h}){const m=!a,C=!!(d&&d.length>0),f=i.useMemo(()=>C?Math.max(0,...e.filter(k=>k.a!==-1).map(k=>(k.parts??[]).reduce((M,N)=>M+Math.max(0,N),0))):Math.max(0,...e.filter(k=>k.a!==-1).flatMap(k=>m?[k.a]:[k.a,k.b])),[e,m,C]),b=i.useMemo(()=>c??(u?f>0?f:10:Math.ceil(f/10)*10||10),[f,c,u]),g=l,y=C||m?1:2,w={"--bar-width":`${i.useMemo(()=>{const k=Math.max(1,e.length);return Math.max(8,Math.min(s,Math.round(120/(k*y)+6)))},[e.length,y,s])}px`},_=i.useMemo(()=>{const k=Math.round(b/2);return k!==b?[b,k,0]:[b,0]},[b]),[v,A]=i.useState(null),x=i.useCallback(()=>A(null),[]);return t.jsxs("div",{className:"manager-bar-chart-wrap",children:[t.jsx("div",{className:"manager-bar-chart-inner",children:t.jsx("div",{className:"manager-bar-chart-scroll",children:t.jsxs("div",{className:"manager-bar-chart-area",children:[t.jsxs("div",{className:"manager-bar-chart-plot",style:{height:g},children:[_.slice(0,-1).map((k,M)=>t.jsx("div",{className:"manager-bar-chart-gridline",style:{top:M*(g/(_.length-1))},children:t.jsx("span",{className:"manager-bar-chart-gridline__label caption-1",children:k})},M)),e.map((k,M)=>{const N=k.a===-1,D=N?0:k.a/b*g,P=N?0:k.b/b*g,L=k.parts??[];return t.jsx("div",{className:"manager-bar-chart-col",style:{cursor:N?"default":"pointer"},onMouseEnter:N?void 0:E=>{const R=E.currentTarget.getBoundingClientRect(),S=[k.label,k.sublabel].filter(Boolean).join(" ");let V;if(C){const Y=(p??[]).map((J,O)=>({text:`${J}: ${L[O]??0}`,color:(d??[])[O]})),X=Y.filter((J,O)=>(L[O]??0)>0);V=X.length?X:Y}else h&&!m?V=[{text:`${r} ${k.a}%`,color:n},{text:`${o} ${k.b}%`,color:a}]:h&&k.rawB!==void 0?V=[{text:`${h.total} ${k.rawB}`},{text:`${h.done} ${k.rawA??0}`,color:n}]:m?V=[{text:`${r}: ${k.a}`,color:n}]:V=[{text:`${r}: ${k.a}`,color:n},{text:`${o}: ${k.b}`,color:a}];A({rect:{left:R.left,top:R.top,right:R.right,bottom:R.bottom,width:R.width,height:R.height},title:S,items:V})},onMouseLeave:x,children:!N&&(C?t.jsx("div",{className:"manager-bar-chart-stack",style:w,children:(()=>{const E=L.reduce((R,S,V)=>S>0?V:R,-1);return L.map((R,S)=>R>0?t.jsx("div",{className:"manager-bar-chart-stack-segment",style:{height:R/b*g,background:(d??[])[S],borderRadius:S===E?"6px 6px 0 0":void 0}},S):null)})()}):t.jsxs(t.Fragment,{children:[t.jsx("div",{className:"manager-bar-chart-bar",style:{...w,height:D,background:n}}),!m&&t.jsx("div",{className:"manager-bar-chart-bar",style:{...w,height:P,background:a}})]}))},M)})]}),t.jsx("div",{className:"manager-bar-chart-x-axis",children:e.map((k,M)=>{const N=k.a===-1;return t.jsxs("span",{className:`manager-bar-chart-x-axis__label${N?" manager-bar-chart-x-axis__label--future":""}`,children:[t.jsxs("span",{className:"caption-1 manager-bar-chart-x-axis__main",children:[k.isToday&&t.jsx("span",{className:"manager-bar-chart-x-axis__today-dot",style:{background:n}}),k.label]}),k.sublabel&&t.jsx("span",{className:"caption-1",children:k.sublabel})]},M)})})]})})}),v&&t.jsx(_n,{anchorRect:v.rect,title:v.title,items:v.items,showIndex:!1,closeOnOutsideClick:!1})]})}function Di({control:e}){const{t:n}=de.useTranslation(),{activeOptions:a,activeIdx:r,range:o,setRange:s,handlePrev:l,handleNext:c,periodOptions:u,period:d,setPeriod:p}=e,h=d==="week"?n("calendar.prevWeek","\uC774\uC804 \uC8FC"):n("calendar.prevMonth","\uC774\uC804 \uB2EC"),m=d==="week"?n("calendar.nextWeek","\uB2E4\uC74C \uC8FC"):n("calendar.nextMonth","\uB2E4\uC74C \uB2EC");return t.jsxs("div",{className:"manager-section-controls",children:[t.jsx(ae,{size:32,type:"dot",icon:"chevron-left",ariaLabel:h,showTooltipInfo:h,disabled:r===a.length-1,onClick:l}),t.jsx(zt,{value:o,onChange:s,options:a,size:40,className:"month-dropdown",ariaLabel:n("calendar.rangeSelect","\uAE30\uAC04 \uC120\uD0DD")}),t.jsx(ae,{size:32,type:"dot",icon:"chevron-right",ariaLabel:m,showTooltipInfo:m,disabled:r<=0,onClick:c}),t.jsx(An,{ariaLabel:n("calendar.periodSelect","\uAE30\uAC04 \uB2E8\uC704"),options:u,value:d,onChange:C=>p(C),size:32})]})}function ji(e,n,a){const r=new Date(a.getFullYear(),a.getMonth(),a.getDate());return Array.from({length:7},(o,s)=>{const l=new Date(n);l.setDate(n.getDate()+s);const c=(e[`${l.getFullYear()}\uB144 ${l.getMonth()+1}\uC6D4`]?.daily??[])[l.getDate()-1],u=c?.a===-1||l>r;return{dt:l,entry:c,isFuture:u}})}function qg(e,n,a,r){const{period:o,monthRange:s,weekRange:l,weekRanges:c,DOW:u}=n,d=r?.startsWith("ko"),p=new Date,h=p.getFullYear(),m=p.getMonth()+1,C=p.getDate();if(o==="month"){const g=e[s]??{weekly:[],daily:[]},y=s.match(/^(\d+)년 (\d+)월$/),w=y?Number(y[1]):null,_=y?Number(y[2]):null,v=w&&_?pn(w,_-1):1;return g.weekly.map((A,x)=>{const k=x+1;let M=A.label,N=!1,D=!1;if(w&&_){const P=v+x*7,L=new Date(w,_-1,P+6),E=L.getMonth()+1,R=L.getDate(),S=E===_?`${R}`:`${E}/${R}`;M=a("manager.chart.weekRange",{start:P,end:S});const V=new Date(h,m-1,C).getTime();N=V>=new Date(w,_-1,P).getTime()&&V<=L.getTime(),D=w>h||w===h&&(_>m||_===m&&P>C)}return{...A,label:M,sublabel:d?`${Bi[k-1]??k}\uC8FC`:`Week ${k}`,isToday:N,a:D?-1:A.a,b:D?0:A.b}})}const f=c.find(g=>g.value===l);if(!f)return[];const b=new Date(f.year,f.month-1,pn(f.year,f.month-1)+f.week*7);return ji(e,b,p).map(({dt:g,entry:y,isFuture:w})=>{const _=g.getMonth()+1,v=g.getDate(),A=g.getFullYear();return{label:_===f.month&&A===f.year?`${v}`:`${_}/${v}`,sublabel:u[g.getDay()]??"",a:w?-1:y&&y.a>0?y.a:0,b:w?0:y&&y.b>0?y.b:0,isToday:A===h&&_===m&&v===C,...y?.parts?{parts:w?y.parts.map(()=>0):y.parts}:{}}})}const Ug={small:{height:100,barWidth:16},medium:{height:140,barWidth:20},large:{height:180,barWidth:24}};function Gg({size:e="medium",barWidth:n,titleKey:a,data:r,colorA:o,colorB:s,labelAKey:l,labelBKey:c,showTotal:u=!1,totalUnitKey:d,totalLabelKey:p,control:h,hideControls:m=!1,rate:C=!1,tightMax:f=!1,avgMode:b=!1,totalFormat:g,series:y,loading:w=!1,onDetail:_}){const{t:v,i18n:A}=de.useTranslation(),x=Ug[e],k=Si(r),M=h??k,N=i.useMemo(()=>qg(r,M,v,A.language),[r,M,v,A.language]),D=i.useMemo(()=>{if(!C)return N;const R=M.period==="month"?M.monthRange.match(/^(\d+)년 (\d+)월$/):null,S=new Date;return N.map((V,Y)=>{let X=V.a===-1?-1:V.b>0?Math.round(V.a/V.b*100):0;if(R&&V.a!==-1){const J=Number(R[1]),O=Number(R[2])-1,j=ji(r,new Date(J,O,pn(J,O)+Y*7),S).filter($=>!$.isFuture);X=j.length?Math.round(j.reduce(($,{entry:F})=>$+(F&&F.b>0?F.a/F.b*100:0),0)/j.length):0}return{...V,a:X,b:V.a===-1?0:c&&V.parts&&V.parts[1]>0?Math.round(V.parts[0]/V.parts[1]*100):0,rawA:V.a===-1?-1:V.a,rawB:V.b}})},[N,C,c,M.period,M.monthRange,r]),P=i.useMemo(()=>{if(C||b){const R=(M.period==="week"?N:r[M.monthRange]?.daily??[]).filter(V=>V.a!==-1);if(R.length===0)return 0;const S=C?R.reduce((V,Y)=>V+(Y.b>0?Y.a/Y.b*100:0),0):R.reduce((V,Y)=>V+(Y.a>0?Y.a:0),0);return Math.round(S/R.length)}return D.reduce((R,S)=>R+(S.a>0?S.a:0)+(c&&S.b>0?S.b:0),0)},[D,N,C,b,c,M.period,M.monthRange,r]),L=y&&y.length>0?y.map(R=>({color:R.color,label:R.label})):[{color:o,label:v(l)},...c?[{color:s,label:v(c)}]:[]],E=e==="small";return t.jsx(fr,{className:E?"manager-section--compact":e==="large"?"manager-section--full":void 0,title:v(a),titleClassName:E?"h5 chart-section-title--small":void 0,headRight:E?void 0:t.jsxs(t.Fragment,{children:[!m&&t.jsx(Di,{control:M}),_&&t.jsx("span",{className:"manager-bar-chart-detail-btn",children:t.jsx(ae,{size:32,type:"dot",icon:"list",ariaLabel:v("trainingStatus.detail","\uC0C1\uC138\uBCF4\uAE30"),onClick:_})})]}),subRow:t.jsxs(t.Fragment,{children:[u?C||b||p&&g?t.jsx(ba,{label:E?void 0:`${v(M.period==="week"?"manager.chart.weeklyPrefix":"manager.chart.monthlyPrefix")} ${v(p??l)}`,children:g?(g(P).match(/(\d+|[^\d]+)/g)??[]).map((R,S)=>/\d/.test(R)?t.jsx("span",{className:"barchart-total__num h0",children:R},S):t.jsx("span",{className:"barchart-total__unit h5",children:R},S)):t.jsxs(t.Fragment,{children:[t.jsx("span",{className:"barchart-total__num h0",children:P}),d&&t.jsx("span",{className:"barchart-total__unit h5",children:v(d)})]})}):t.jsxs(ba,{children:[t.jsx("span",{className:"barchart-total__num h0",children:P}),t.jsx("span",{className:"barchart-total__unit h5",children:v(l)}),d&&t.jsx("span",{className:"barchart-total__unit h5",children:v(d)})]}):t.jsx("span",{}),t.jsx(mr,{items:L,className:"caption-1"})]}),children:w?t.jsx("div",{className:"manager-bar-chart-loading",children:t.jsx(ta,{size:32})}):t.jsx(Wg,{data:D,colorA:o,colorB:c?s:void 0,labelA:v(l),labelB:c?v(c):void 0,barWidth:n??x.barWidth,height:x.height,maxOverride:C?100:void 0,tightMax:f,seriesColors:y?.map(R=>R.color),seriesLabels:y?.map(R=>R.label),rateLabels:C?{total:v("trainingStatus.today.tooltipTotal","\uC804\uCCB4"),done:v("trainingStatus.today.tooltipDone","\uC644\uB8CC")}:void 0})})}function Kg(e){if(e.period==="month"){const s=e.monthRange.match(/^(\d+)년 (\d+)월$/),l=new Date,c=s?Number(s[1]):l.getFullYear(),u=s?Number(s[2]):l.getMonth()+1;return{from:new Date(c,u-1,1,0,0,0),to:new Date(c,u,0,23,59,59)}}const n=e.weekRanges.find(s=>s.value===e.weekRange);if(!n){const s=new Date;return{from:s,to:s}}const a=pn(n.year,n.month-1),r=new Date(n.year,n.month-1,a+n.week*7,0,0,0),o=new Date(r);return o.setDate(r.getDate()+6),o.setHours(23,59,59),{from:r,to:o}}const Ei={small:{diameter:96,strokeWidth:16},medium:{diameter:120,strokeWidth:18},large:{diameter:160,strokeWidth:22}};function Ti({done:e,total:n,segments:a,color:r="var(--color-main)",size:o="medium",strokeWidth:s,label:l="%",hideCenter:c=!1,hideLabel:u=!1}){const d=typeof o=="number"?o:Ei[o].diameter,p=s??(typeof o=="number"?12:Ei[o].strokeWidth),h=d/2,m=(d-p)/2,C=2*Math.PI*m;if(a&&a.length>0){const y=a.reduce((w,_)=>{const v=w.length>0?w[w.length-1].acc:0,A=Math.max(0,Math.min(_.ratio,1-v));return w.push({color:_.color,rotate:-90+v*360,dash:C*A,acc:v+A}),w},[]);return t.jsx("div",{className:"ring-chart",style:{width:d,height:d},children:t.jsxs("svg",{width:d,height:d,viewBox:`0 0 ${d} ${d}`,"aria-hidden":"true",children:[t.jsx("circle",{cx:h,cy:h,r:m,fill:"none",stroke:"var(--color-whiteLine)",strokeWidth:p}),y.map((w,_)=>w.dash>0&&t.jsx("circle",{cx:h,cy:h,r:m,fill:"none",stroke:w.color,strokeWidth:p,strokeDasharray:`${w.dash} ${C}`,strokeLinecap:"round",transform:`rotate(${w.rotate} ${h} ${h})`},_))]})})}const f=(n??0)>0?Math.min((e??0)/n,1):0,b=C*f,g=C-b;return t.jsxs("div",{className:"ring-chart",style:{width:d,height:d},children:[t.jsxs("svg",{width:d,height:d,viewBox:`0 0 ${d} ${d}`,"aria-hidden":"true",children:[t.jsx("circle",{cx:h,cy:h,r:m,fill:"none",stroke:"var(--color-whiteLine)",strokeWidth:p}),f>0&&t.jsx("circle",{cx:h,cy:h,r:m,fill:"none",stroke:r,strokeWidth:p,strokeDasharray:`${b} ${g}`,strokeLinecap:f<.02||f>.98?"butt":"round",transform:`rotate(-90 ${h} ${h})`})]}),!c&&t.jsxs("div",{className:`ring-chart__center${u?"":` ${d<=96?"ring-chart__center--small":o==="medium"?"ring-chart__center--medium":"ring-chart__center--large"}`}`,children:[t.jsx("span",{className:`ring-chart__pct ${d<=96?"h2":"h1"}`,children:Math.round(f*100)}),!u&&t.jsx("span",{className:`ring-chart__label ${d<=96?"caption-2":"caption-1"}${d<=96||o==="medium"?" ring-chart__label--tight":""}`,children:l})]})]})}function Zg({titleKey:e,headRight:n,icon:a,showTotal:r,totalLabelKey:o,legend:s,loading:l,className:c,...u}){const{t:d}=de.useTranslation();if(!e)return t.jsx(Ti,{...u});const p=(u.total??0)>0?Math.round(Math.min((u.done??0)/u.total,1)*100):0,h=u.size==="small",m=u.size==="large",C=[c,h?"manager-section--compact":m?"manager-section--full":""].filter(Boolean).join(" ")||void 0,f=a&&t.jsx("span",{className:"chart-section-icon",children:t.jsx(Oe,{icon:a,className:"chart-section-icon-inner"})});return t.jsx(fr,{className:C,title:d(e),titleClassName:h?"h5 chart-section-title--small":void 0,headRight:f||(h?void 0:n),subRow:(r||s)&&t.jsxs(t.Fragment,{children:[r?t.jsxs(ba,{label:!h&&o?d(o):void 0,children:[t.jsx("span",{className:"barchart-total__num h0",children:p}),t.jsx("span",{className:"barchart-total__unit h5",children:"%"})]}):t.jsx("span",{}),s&&t.jsx(mr,{items:s})]}),children:l?t.jsx("div",{className:"manager-bar-chart-loading",children:t.jsx(ta,{size:32})}):t.jsx("div",{className:"ring-chart-section-body ring-chart-section-body--offset",children:t.jsx(Ti,{...u,hideCenter:h||u.hideCenter})})})}function Yg({label:e,value:n,change:a,changeType:r,icon:o,tooltip:s,onClick:l}){const c=i.useRef(null),{anchorRect:u,openAt:d,close:p}=fa(),h=i.useCallback(()=>{s&&c.current&&d(c.current)},[s,d]),m=r??(a===void 0?void 0:a>0?"up":a<0?"down":"neutral"),C=a===void 0?void 0:a>0?`+${a}`:`${a}`,f=i.useCallback(b=>{l&&(b.key==="Enter"||b.key===" ")&&(b.preventDefault(),l())},[l]);return t.jsxs("div",{ref:c,className:`manager-stat-card${l?" manager-stat-card--clickable":""}`,onClick:l,onKeyDown:l?f:void 0,onPointerEnter:h,onPointerLeave:p,onFocus:h,onBlur:p,role:l?"button":void 0,tabIndex:l?0:void 0,"aria-label":l?`${e} ${n}`:void 0,children:[s&&u&&t.jsx(dn,{anchorRect:{left:u.left,top:u.top+21,right:u.right,bottom:u.bottom,width:u.width,height:u.height},text:s}),t.jsxs("div",{className:"manager-stat-card__label-row",children:[t.jsx("span",{className:"manager-stat-card__label h5",children:e}),o&&t.jsx("span",{className:"manager-stat-card__icon",children:t.jsx(Oe,{icon:o,className:"manager-stat-card__icon-inner"})})]}),t.jsx("div",{className:"manager-stat-card__content",children:t.jsxs("div",{className:"manager-stat-card__left",children:[t.jsx("div",{className:"manager-stat-card__value h2",children:n}),C&&t.jsx("div",{className:`manager-stat-card__change manager-stat-card__change--${m??"neutral"} caption-1`,children:C})]})})]})}function Mi({value:e,onChange:n,min:a=0,max:r=100,step:o=1,orientation:s="horizontal",size:l=24,disabled:c=!1,ariaLabel:u,length:d,className:p,label:h,formatValue:m,labelPos:C,labelAlign:f="right",showMinMax:b=!1,minLabel:g,maxLabel:y,showBgTick:w=!1,showFillTick:_=!1,tickStep:v,tickShape:A="dot"}){n&&!u&&Fn("Slider:unnamed","[ihab/Slider] \uC774\uB984\uC774 \uC5C6\uC2B5\uB2C8\uB2E4 \u2014 ariaLabel \uC744 \uC8FC\uC138\uC694. label prop \uC740 \uAC12 \uD45C\uAE30 \uBC29\uC2DD\uC774\uC9C0 \uC774\uB984\uC774 \uC544\uB2D9\uB2C8\uB2E4.");const x=Math.min(r,Math.max(a,e)),k=r>a?(x-a)/(r-a):0,M=s==="vertical",N=!n,D=F=>n?.(Number(F.target.value)),P=typeof d=="number"?`${d}px`:d,L={"--slider-ratio":String(k),"--slider-thumb":`${l}px`,...P?M?{height:P}:{width:P}:{}},E=v??o,R=(w||_)&&E>0&&r>a?Math.floor((r-a)/E+1e-6):0;if(R>0&&R<=100){const F=A!=="dash",H=le=>F?`radial-gradient(circle, ${le} 0.5px, transparent 1px)`:M?`linear-gradient(to bottom, transparent calc(50% - 2px), ${le} calc(50% - 2px), ${le} calc(50% + 2px), transparent calc(50% + 2px))`:`linear-gradient(to right, transparent calc(50% - 2px), ${le} calc(50% - 2px), ${le} calc(50% + 2px), transparent calc(50% + 2px))`,Z=F?"2px":"4px",I=[],W=[],U=[];for(let le=0;le<=R;le++){const pe=le*E/(r-a);if(pe>1+1e-6)break;const Ce=`${((M?1-pe:pe)*100).toFixed(4)}%`,ve=pe<=k+1e-6;if(ve?!_:!w)continue;const he=ve?"var(--slider-tick-color-on-fill, var(--color-deepWhite))":"var(--slider-tick-color, var(--color-lightGray))";I.push(H(he)),W.push(M?`${Z} var(--slider-thumb)`:`var(--slider-thumb) ${Z}`),U.push(M?`center ${Ce}`:`${Ce} center`)}I.push(M?"linear-gradient(to top, var(--slider-fill-color) var(--slider-fill), var(--color-darkWhite) var(--slider-fill))":"linear-gradient(to right, var(--slider-fill-color) var(--slider-fill), var(--color-darkWhite) var(--slider-fill))"),W.push("100% 100%"),U.push("0 0"),L.backgroundImage=I.join(", "),L.backgroundSize=W.join(", "),L.backgroundPosition=U.join(", "),L.backgroundRepeat="no-repeat"}const S=t.jsx("input",{type:"range",className:ye("slider",`slider--${s}`,N&&"slider--static",!h&&!b&&p),min:a,max:r,step:o,value:x,disabled:c,readOnly:N,tabIndex:N?-1:void 0,"aria-label":u,"aria-orientation":s,onChange:D,style:L});if(!h&&!b)return S;const V=t.jsx("span",{className:"slider-wrap__minmax caption-1",children:g??a}),Y=t.jsx("span",{className:"slider-wrap__minmax caption-1",children:y??r}),X=b?t.jsxs("div",{className:ye("slider-track-group",`slider-track-group--${s}`,!h&&p),children:[M?Y:V,S,M?V:Y]}):S;if(!h)return X;const J=C??(M?"bottom":"right"),O=`${Math.round(r>a?(x-a)/(r-a)*100:0)}%`,j=m?m(x):h==="percent"?O:h==="count"?`${x} / ${r}`:String(x),$=t.jsx("span",{className:"slider-wrap__value body-3b",children:j});return t.jsxs("div",{className:ye("slider-wrap",`slider-wrap--${s}`,`slider-wrap--label-${J}`,`slider-wrap--align-${f}`,p),children:[X,$]})}const Xg=.86,Jg=250,Cr=(e,n,a,r)=>Math.round(Math.min(r,Math.max(a,e-n))),gr=(e,n,a,r)=>{const o=Cr(e,n,a,r);return`${o<0?"-":"+"}${Math.abs(o)} dB`};function br({analyser:e,audioElement:n,orientation:a="horizontal",length:r,label:o,labelPos:s,labelAlign:l="right",floorDb:c=-60,refDb:u=-35,displayMin:d=-5,displayMax:p=25,className:h,ariaLabel:m}){const C=i.useRef(null),f=i.useRef(null),b=i.useRef(null),g=i.useRef(null),[y,w]=i.useState(null);i.useEffect(()=>{const x=V=>{const Y=gr(V,u,d,p);b.current&&(b.current.textContent=Y);const X=C.current;X&&(X.setAttribute("aria-valuenow",String(Cr(V,u,d,p))),X.setAttribute("aria-valuetext",Y))},k=e??Am(n)??(y&&y.el===n?y.node:null),M=f.current;if(!k||!M){M?.style.setProperty("--meter-level","0"),x(c);let V=!1;return!e&&n&&ca(n).then(Y=>{!V&&Y&&w({el:n,node:Y})}),()=>{V=!0}}Ga();const N=new Float32Array(k.fftSize);let D=0,P=0,L=0,E=0,R=null;const S=V=>{const Y=Nm(k,N);D=Y>D?Y:D*Xg;const X=D>1e-5?20*Math.log10(D):-1/0,J=Math.max(c,X),O=J-u,j=Math.min(1,Math.max(0,(O-d)/(p-d)));if(M.style.setProperty("--meter-level",j.toFixed(3)),P+=J,L+=1,V-E>=Jg){const $=P/L;R=R==null?$:R*.6+$*.4,x(R),P=0,L=0,E=V}g.current=requestAnimationFrame(S)};return g.current=requestAnimationFrame(S),()=>{g.current!=null&&cancelAnimationFrame(g.current),g.current=null}},[e,n,y,c,u,d,p]);const _=typeof r=="number"?`${r}px`:r,v=t.jsx("div",{className:"audio-meter__track",style:_?a==="vertical"?{height:_}:{width:_}:{},children:t.jsx("div",{ref:f,className:"audio-meter__fill"})}),A=s??(a==="vertical"?"bottom":"right");return t.jsxs("div",{ref:C,className:ye("audio-meter",`audio-meter--${a}`,o&&`audio-meter--label-${A}`,o&&`audio-meter--align-${l}`,h),role:"meter","aria-label":m,"aria-valuemin":d,"aria-valuemax":p,"aria-valuenow":Cr(c,u,d,p),"aria-valuetext":gr(c,u,d,p),children:[v,o&&t.jsx("span",{ref:b,className:"audio-meter__value caption-2",children:gr(c,u,d,p)})]})}const Li=500;function $i({message:e,position:n,duration:a,onClose:r}){const[o,s]=i.useState(!1),[l,c]=i.useState(!1),u=i.useRef(l),d=i.useRef(o);i.useEffect(()=>{u.current=l},[l]),i.useEffect(()=>{d.current=o},[o]);const p=i.useRef(null),h=i.useRef(""),m=i.useRef(r);i.useEffect(()=>{m.current=r});const C=a,f=i.useRef(null),b=i.useRef(0),g=i.useRef(0),y=i.useRef(!1),w=i.useRef(null),_=i.useRef(null),v=i.useRef(null),A=i.useRef(null),x=i.useRef(()=>{});x.current=N=>{N<0||(b.current=Date.now(),g.current=N,f.current=setTimeout(()=>{f.current=null,s(!1),w.current=setTimeout(()=>{c(!1);try{m.current()}catch{}},Li)},N))};const k=i.useCallback(()=>{y.current||!f.current||(y.current=!0,clearTimeout(f.current),f.current=null,g.current=Math.max(0,g.current-(Date.now()-b.current)))},[]),M=i.useCallback(()=>{y.current&&(y.current=!1,x.current(g.current))},[]);return i.useEffect(()=>{if(e!==h.current&&(f.current&&(clearTimeout(f.current),f.current=null),w.current&&(clearTimeout(w.current),w.current=null)),e){if(d.current)return C>0&&!f.current&&(y.current=!1,x.current(C)),h.current=e,()=>{};const N=()=>{const D=p.current;if(D)try{D.classList.remove("is-visible"),D.style.transition="none",n==="top"?D.style.transform="translateX(-50%) translateY(-16px)":D.style.transform="translateX(-50%) translateY(16px)",D.style.opacity="0",D.offsetWidth,D.style.transition="",D.classList.add("is-visible"),A.current&&clearTimeout(A.current),A.current=setTimeout(()=>{A.current=null;try{D.style.opacity="",D.style.transform="",D.style.transition=""}catch{}},60)}catch{}};u.current?(N(),s(!0)):(c(!0),_.current=requestAnimationFrame(()=>{v.current=requestAnimationFrame(()=>{N(),s(!0)})})),C>0&&(y.current=!1,x.current(C))}else s(!1),w.current=setTimeout(()=>c(!1),Li);return h.current=e,()=>{f.current&&clearTimeout(f.current),w.current&&clearTimeout(w.current),_.current&&cancelAnimationFrame(_.current),v.current&&cancelAnimationFrame(v.current),A.current&&clearTimeout(A.current),f.current=null,w.current=null,_.current=null,v.current=null,A.current=null}},[e,C,n]),{mounted:l,showing:o,popupRef:p,pause:k,resume:M}}function Tn({message:e="",position:n="top",type:a="normal",onClose:r=()=>{},duration:o=2e3}){const{mounted:s,showing:l,popupRef:c,pause:u,resume:d}=$i({message:e,position:n,duration:o,onClose:r});if(!s)return null;const p=a==="notice"||a==="warning"?a:"normal",h=t.jsx("div",{ref:c,className:`toast toast--${n} ${l?"is-visible":""}`,role:"status","aria-live":"polite",onMouseEnter:u,onMouseLeave:d,onFocusCapture:u,onBlurCapture:d,children:t.jsx("div",{className:`toast__inner toast__inner--${p} body-2`,children:e})});return typeof document<"u"?It.createPortal(h,document.body):h}const Qg=24;function e4({value:e,max:n=100,size:a=8,color:r,trackColor:o,label:s,formatValue:l,labelPos:c,labelAlign:u="right",ariaLabel:d,className:p}){const h=Number.isFinite(n)&&n>0?n:1,m=Math.max(0,Math.min(Number.isFinite(e)?e:0,h)),C=m/h*100,f=c??(a>=Qg?"inside":"bottom"),b=f==="center"?"inside":f,g=b==="inside"&&(u==="left"?C>=15:u==="center"?C>=50:C>=85),y={};return r&&(y["--progress-bar-fill"]=r),o&&(y["--progress-bar-track"]=o),t.jsxs("div",{className:ye("progress-bar",`progress-bar--${a}`,`progress-bar--label-${b}`,s&&`progress-bar--align-${u}`,s&&g&&"progress-bar--label-on-fill",p),style:y,children:[t.jsx("div",{className:"progress-bar__track",role:"progressbar","aria-valuenow":m,"aria-valuemin":0,"aria-valuemax":h,"aria-label":d,children:t.jsx("div",{className:"progress-bar__fill",style:{width:`${C}%`}})}),s&&t.jsx("span",{className:"progress-bar__label caption-1b",children:l?l(m):s==="percent"?`${Math.round(C)}%`:s==="raw"?String(m):`${m} / ${h}`})]})}const t4="rgba(255, 255, 255, 0.16)";function Ri({max:e,index:n,inactiveBg:a,inactiveColor:r,transparent:o,variant:s="numbered",announce:l=!1,ariaLabel:c}){const{t:u}=de.useTranslation(),d=Qt("(max-width: 767px)");if(!Number.isInteger(e)||e<=0)return null;const p=Number.isInteger(n)?Math.max(0,Math.min(n,e-1)):0,h=c??u("progress.steps",{current:p+1,total:e,defaultValue:"\uC9C4\uD589 \uB2E8\uACC4 {{current}} / {{total}}"}),m={};return a&&(m["--pi-inactive-bg"]=a),r&&(m["--pi-inactive-color"]=r),o&&(a||(m["--pi-inactive-bg"]=t4),r||(m["--pi-inactive-color"]="var(--color-white)")),s==="dot"?t.jsx("div",{className:"progress-indicator progress-indicator--dot",style:m,role:l?"status":"img","aria-label":h,children:Array.from({length:e}).map((C,f)=>t.jsx("span",{"aria-hidden":"true",className:`progress-indicator-dot--dot${f<p?" done":f===p?" active":""}`},f))}):d?t.jsx("div",{className:"progress-indicator progress-indicator--mobile",style:m,role:"list","aria-label":h,children:t.jsxs("span",{role:"listitem",className:"progress-indicator-dot active body-3",children:[p+1," / ",e]})}):t.jsx("div",{className:"progress-indicator",style:m,role:"list","aria-label":h,children:Array.from({length:e}).map((C,f)=>t.jsx("span",{role:"listitem","aria-current":f===p?"step":void 0,className:`progress-indicator-dot ${f<p?" done":f===p?" active":""} body-3`,children:f+1},f))})}function n4(e){if(!e)return[];const n=[];let a=0,r="";for(const o of e.trim()){if(o==="("?a++:o===")"&&a--,/\s/.test(o)&&a===0){r&&(n.push(r),r="");continue}r+=o}return r&&n.push(r),n}function a4({children:e,className:n,style:a}){return t.jsx("div",{className:n?`table-cell ${n}`:"table-cell",style:a,children:e})}function yr({variant:e="default",children:n,className:a,draggable:r,onClick:o,onMouseEnter:s,onMouseLeave:l,onDragStart:c,onDragEnd:u,expandedContent:d}){const p=i.useCallback(h=>{o&&h.target===h.currentTarget&&(h.key==="Enter"||h.key===" ")&&(h.preventDefault(),o())},[o]);return e==="loading"?t.jsx("div",{className:"table-row-wrap",children:t.jsx("div",{className:"table-row table-row--loading",children:t.jsx(ta,{size:28})})}):e==="empty"?t.jsx("div",{className:"table-row-wrap",children:t.jsx("div",{className:"table-row table-row--empty body-3",children:n})}):t.jsxs("div",{className:"table-row-wrap",children:[t.jsx("div",{className:a?`table-row ${a}`:"table-row",draggable:r,onClick:o,onKeyDown:o?p:void 0,onMouseEnter:s,onMouseLeave:l,onDragStart:c,onDragEnd:u,role:o?"button":void 0,tabIndex:o?0:void 0,children:n}),d&&t.jsx("div",{className:"table-row-expand",children:d})]})}function r4({dir:e}){return t.jsx(e==="asc"?_o:xo,{className:"table-field__sort-arrow",size:16,strokeWidth:2})}function o4({children:e,onClick:n,className:a,sortDir:r,onResizeStart:o}){const s=i.useCallback(l=>{n&&l.target===l.currentTarget&&(l.key==="Enter"||l.key===" ")&&(l.preventDefault(),n())},[n]);return t.jsxs("div",{onClick:n,onKeyDown:n?s:void 0,role:n?"button":void 0,tabIndex:n?0:void 0,"aria-sort":r?r==="asc"?"ascending":"descending":void 0,className:ye("table-field body-3",a,r?"table-field--sorted":"",o?"table-field--resizable":""),children:[e,r&&t.jsx(r4,{dir:r}),o&&t.jsx("span",{className:"table-field__resizer",onPointerDown:o,onClick:l=>l.stopPropagation(),"aria-hidden":"true"})]})}function vr({fields:e=[],headerGroups:n,items:a=[],renderRow:r,onRowClick:o,onRowMouseEnter:s,onRowMouseLeave:l,onRowDragStart:c,onRowDragEnd:u,draggingId:d,gridTemplateColumns:p,resizable:h=!1,resizeMode:m="grow",resizeStorageKey:C,size:f="small",title:b,icon:g,count:y,collapsed:w=!1,onToggleCollapse:_,headerActions:v,empty:A,loading:x,dragOver:k=!1,onDragOver:M,onDragLeave:N,onDrop:D,renderExpandedRow:P,expandedId:L}){const{t:E}=de.useTranslation(),R=48,S=C?`table-cols:${C}`:null,V=i.useRef(null),Y=i.useRef(()=>!1),X=i.useRef([]),J=i.useRef(null),[O,j]=i.useState(()=>{if(!S||typeof window>"u")return null;try{const T=JSON.parse(window.localStorage.getItem(S)??"null");return Array.isArray(T)&&T.every(q=>typeof q=="number")?T:null}catch{return null}}),$=i.useRef(O);i.useEffect(()=>{$.current=O},[O]);const F=i.useCallback(T=>{const q=J.current;q&&j(ee=>{if(!ee)return ee;const _e=[...ee];if(q.next!=null&&q.startWNext!=null){const ue=T.clientX-q.startX,ie=Math.max(R-q.startW,Math.min(q.startWNext-R,ue));_e[q.index]=q.startW+ie,_e[q.next]=q.startWNext-ie}else _e[q.index]=Math.max(R,q.startW+(T.clientX-q.startX));return _e})},[]),H=i.useCallback(()=>{if(J.current=null,window.removeEventListener("pointermove",F),window.removeEventListener("pointerup",H),document.body.style.cursor="",document.body.style.userSelect="",S&&$.current)try{window.localStorage.setItem(S,JSON.stringify($.current))}catch{}},[F,S]),Z=i.useCallback((T,q)=>{q.preventDefault(),q.stopPropagation();const ee=V.current;if(!ee)return;const _e=Array.from(ee.children).map(ie=>ie.getBoundingClientRect().width),ue=m==="fit"?e.findIndex((ie,te)=>te>T&&ie.resizable!==!1):-1;J.current=ue>=0?{index:T,startX:q.clientX,startW:_e[T],next:ue,startWNext:_e[ue]}:{index:T,startX:q.clientX,startW:_e[T]},j(_e),window.addEventListener("pointermove",F),window.addEventListener("pointerup",H),document.body.style.cursor="col-resize",document.body.style.userSelect="none"},[F,H,m,e]),I=i.useCallback(()=>{const T=V.current,q=T?.closest(".table-wrap");if(!T||!q)return;const ee=q.style.getPropertyValue("--table-grid-cols");q.style.setProperty("--table-grid-cols",e.map((Re,Ee)=>Y.current(Ee)?X.current[Ee]:"max-content").join(" "));const _e=Array.from(q.querySelectorAll(".table-row")).filter(Re=>!Re.classList.contains("table-row--loading")&&!Re.classList.contains("table-row--empty")),ue=e.map((Re,Ee)=>{let je=T.children[Ee]?.getBoundingClientRect().width??0;for(const Ae of _e){const ze=Ae.children[Ee];ze&&(je=Math.max(je,ze.getBoundingClientRect().width))}return Math.max(R,Math.ceil(je))}),ie=window.getComputedStyle(T),te=T.clientWidth-(parseFloat(ie.paddingLeft)||0)-(parseFloat(ie.paddingRight)||0);ee?q.style.setProperty("--table-grid-cols",ee):q.style.removeProperty("--table-grid-cols");let se=ue;const Se=ue.reduce((Re,Ee,je)=>Re+(Y.current(je)?Ee:0),0),He=ue.reduce((Re,Ee,je)=>Re+(Y.current(je)?0:Ee),0),Ve=te-Se;if(te>0&&He>0&&Ve>0){const Re=Ve/He;se=ue.map((je,Ae)=>Y.current(Ae)?je:Math.max(R,Math.round(je*Re)));const Ee=Math.round(Ve-se.reduce((je,Ae,ze)=>je+(Y.current(ze)?0:Ae),0));if(Ee!==0){let je=-1;se.forEach((Ae,ze)=>{!Y.current(ze)&&(je<0||Ae>se[je])&&(je=ze)}),je>=0&&(se[je]=Math.max(R,se[je]+Ee))}}if(j(se),S)try{window.localStorage.setItem(S,JSON.stringify(se))}catch{}},[e,m,S]);i.useEffect(()=>()=>{J.current&&(window.removeEventListener("pointermove",F),window.removeEventListener("pointerup",H),document.body.style.cursor="",document.body.style.userSelect="")},[F,H]);const W=n4(p),U=W.filter(T=>/\b(auto|min-content|max-content)\b|fit-content\(/.test(T));U.length>0&&Fn(`table-content-track:${p}`,`[ihabdevteam-core] Table \uC758 gridTemplateColumns \uC5D0 \uB0B4\uC6A9\uC73C\uB85C \uD06C\uAE30\uAC00 \uC815\uD574\uC9C0\uB294 \uD2B8\uB799(${U.join(", ")})\uC774 \uC788\uC2B5\uB2C8\uB2E4. \uBA38\uB9AC\uC640 \uBAB8\uD1B5\uC740 \uC11C\uB85C \uB2E4\uB978 \uACA9\uC790\uB77C \uADF8 \uD2B8\uB799\uC774 \uAC01\uC790 \uB2E4\uB974\uAC8C \uD480\uB824 \uC5F4\uC774 \uC5B4\uAE0B\uB0A9\uB2C8\uB2E4. px \uC774\uB098 fr \uC744 \uC4F0\uC138\uC694. (\uBC1B\uC740 \uAC12: ${p})`);const le=T=>/^\d+(\.\d+)?px$/.test(W[T]??"");Y.current=le,X.current=W;const pe=T=>m==="fit"&&!le(T)?"fr":"px",Ce=O&&O.length===e.length&&(m==="fit"||a.length>0)?e.map((T,q)=>T.resizable===!1&&W[q]?W[q]:`${O[q]}${pe(q)}`).join(" "):p,ve=Ce?{"--table-grid-cols":Ce}:void 0,he=b!==void 0;return t.jsx("div",{className:`table-wrap table-wrap--${f}${h?" table-wrap--resizable":""}${k?" table-wrap--dragover":""}${w?" table-wrap--collapsed":""}`,style:ve,onDragOver:M,onDragLeave:N,onDrop:D,children:t.jsxs("div",{className:"table body-2",children:[he&&t.jsxs("div",{className:"table-header",onClick:_,role:_?"button":void 0,tabIndex:_?0:void 0,"aria-expanded":_?!w:void 0,onKeyDown:_?T=>{(T.key==="Enter"||T.key===" ")&&(T.preventDefault(),_())}:void 0,children:[_&&t.jsx(ae,{size:40,type:"dot",variant:"transparent-gray",useBorder:!1,icon:w?"chevron-right":"chevron-down",ariaLabel:w?E("common.expand","\uD3BC\uCE58\uAE30"):E("common.collapse","\uC811\uAE30"),className:"table-header__chevron"}),g&&t.jsx(Oe,{icon:g,label:typeof b=="string"?b:void 0,className:"table-header__icon"}),t.jsx("span",{className:"table-header__title h5b",children:b}),y!==void 0&&t.jsx("span",{className:"table-header__count body-3b",children:y}),v&&t.jsx("span",{className:"table-header__actions",onClick:T=>T.stopPropagation(),children:v})]}),!w&&t.jsxs(t.Fragment,{children:[n&&n.length>0&&t.jsx("div",{className:"table-fields table-fields--groups",children:n.map((T,q)=>t.jsx("div",{className:ye("table-field body-3",T.className),style:{gridColumn:`span ${T.span}`},children:T.label},q))}),t.jsxs("div",{className:ye("table-fields-strip",h&&"table-fields-strip--resizable"),children:[t.jsx("div",{className:"table-fields",ref:V,children:e.map((T,q)=>t.jsx(o4,{onClick:T.onClick,className:T.className,sortDir:T.sortDir,onResizeStart:h&&q<e.length-1&&T.resizable!==!1&&(m!=="fit"||e.some((ee,_e)=>_e>q&&ee.resizable!==!1))?ee=>Z(q,ee):void 0,children:T.label},q))}),h&&t.jsx(ae,{size:40,type:"dot",variant:"transparent-gray",useBorder:!1,icon:"chevrons-left-right-ellipsis",ariaLabel:E("table.resetColumns","\uCE78 \uB108\uBE44 \uCD08\uAE30\uD654"),showTooltipInfo:E("table.resetColumns","\uCE78 \uB108\uBE44 \uCD08\uAE30\uD654"),className:"table-fields__reset",onClick:I})]}),t.jsx("div",{className:"table-body",children:x?t.jsx(yr,{variant:"loading"}):a.length===0&&A?t.jsx(yr,{variant:"empty",children:A}):a.map((T,q)=>{const ee=d!=null&&T.id===d,_e=L!=null&&(L instanceof Set?L.has(T.id):T.id===L);return t.jsx(yr,{className:`${o?" table-row--clickable":""}${c?" table-row--draggable":""}${ee?" table-row--dragging":""}`.trim(),draggable:!!c,onClick:o?()=>o(T):void 0,onMouseEnter:s?ue=>s(T,ue):void 0,onMouseLeave:l?ue=>l(T,ue):void 0,onDragStart:c?ue=>c(T,ue):void 0,onDragEnd:u?ue=>u(T,ue):void 0,expandedContent:_e&&P?P(T):void 0,children:r(T).map((ue,ie)=>t.jsx(a4,{className:ue.className,style:ue.style,children:ue.content},ie))},String(T.id??q))})})]})]})})}function Pi(e){switch(e){case"\uBCF4\uCCAD\uAE30":return"main";case"\uC778\uACF5\uC640\uC6B0":return"sub";default:return"default"}}function Ii(e,n){return n!=="wornAt"?String(e[n]??""):e.wornYear?`${e.wornYear}-${e.wornMonth.padStart(2,"0")}-${e.wornDay.padStart(2,"0")}`:""}function s4({rows:e,onSelect:n,onDelete:a,onWear:r,onRelease:o,onAdd:s}){const{t:l}=de.useTranslation(),c=f=>f==="\uC88C"?l("device.direction.left","\uC88C"):l("device.direction.right","\uC6B0"),{\uC815\uB82C:u,\uCE78:d}=N0(),p=i.useMemo(()=>{if(!u)return e;const{key:f,asc:b}=u;return[...e].sort((g,y)=>{const w=f==="worn"?Number(y.worn)-Number(g.worn):Ii(g,f).localeCompare(Ii(y,f),"ko");return b?w:-w})},[e,u]),{pageRows:h,pageSizeProps:m,paginationProps:C}=A0(p,u);return t.jsxs("div",{className:"dlp-side-table",children:[t.jsx(hr,{count:{value:e.length,unit:l("customers.device.unit","\uAC1C")},pageSize:m,pagination:C,actions:s&&t.jsx(ae,{size:40,type:"bar",variant:"main",icon:"plus",label:l("customers.device.addButton","\uAE30\uAE30 \uCD94\uAC00"),onClick:s})}),t.jsx(vr,{resizable:!0,resizeMode:"fit",resizeStorageKey:"customer-device-history-v2",fields:[{...d(l("customers.device.wearingNow","\uCC29\uC6A9"),"worn"),resizable:!1},d(l("device.direction.label","\uBC29\uD5A5"),"side"),d(l("device.deviceType","\uC885\uB958"),"device"),d(l("device.brand","\uBE0C\uB79C\uB4DC"),"brand"),d(l("device.fitType","\uCC29\uC6A9\uD615\uD0DC"),"fitType"),d(l("device.productName","\uC81C\uD488\uBA85"),"productName"),d(l("device.wornDate","\uCC29\uC6A9\uC77C"),"wornAt"),...a?[{label:"",resizable:!1}]:[]],items:h.map((f,b)=>({id:f.id??`${f.side}-${b}`,row:f})),gridTemplateColumns:`56px 110px 110px minmax(120px, 1fr) 100px minmax(120px, 1fr) 110px${a?" 80px":""}`,renderRow:({row:f})=>[{content:t.jsx("span",{className:"dlp-worn-check",onClick:b=>b.stopPropagation(),children:t.jsx(ki,{checked:f.worn,disabled:!r||!o,ariaLabel:f.worn?l("customers.device.unwear","\uCC29\uC6A9 \uD574\uC81C"):l("customers.device.wear","\uCC29\uC6A9"),onChange:b=>{b?r?.(f):o?.(f)}})})},{content:t.jsx("span",{children:c(f.side)})},{content:f.device?t.jsx(lt,{size:"small",variant:Pi(f.device),fill:"soft",label:f.device}):t.jsx("span",{})},{content:t.jsx("span",{children:f.brand})},{content:t.jsx("span",{children:f.fitType||"-"})},{content:t.jsx("span",{children:f.productName||"-"})},{content:t.jsx("span",{className:"dlp-date",children:f.wornYear?`${f.wornYear}.${f.wornMonth}.${f.wornDay}`:"-"})},...a?[{content:t.jsx("span",{className:"dlp-row-actions",children:t.jsx(ae,{size:28,type:"bar",variant:"transparent-gray",label:l("common.delete","\uC0AD\uC81C"),onClick:b=>{b?.stopPropagation(),a(f)}})})}]:[]],onRowClick:({row:f})=>n(f),empty:l("customers.device.historyEmpty","\uB4F1\uB85D\uB41C \uAE30\uAE30 \uC774\uB825\uC774 \uC5C6\uC2B5\uB2C8\uB2E4.")})]})}function Fi(e,n){return e?{role:n?.role??"button",tabIndex:0,...n?.selected===void 0?{}:{"aria-selected":n.selected},onKeyDown:a=>{a.key!=="Enter"&&a.key!==" "||(a.preventDefault(),e(a))}}:{}}function i4(e,n){return new Date(e,n+1,0).getDate()}function l4(e,n){return new Date(e,n,1).getDay()}function c4({visits:e=[],onVisitClick:n,onVisitMove:a,onDayClick:r}){const{t:o}=de.useTranslation(),s=i.useMemo(()=>o("calendar.dow",{returnObjects:!0}),[o]),[l,c]=i.useState(new Date().getFullYear()),[u,d]=i.useState(new Date().getMonth()),[p,h]=i.useState(null),m=i.useRef(null),C=new Date,f=i.useMemo(()=>{const v={};return e.forEach(A=>{v[A.date]||(v[A.date]=[]),v[A.date].push(A)}),v},[e]),b=i.useMemo(()=>{const v=i4(l,u),A=l4(l,u),x=[];for(let k=0;k<A;k++)x.push(null);for(let k=1;k<=v;k++)x.push(k);for(;x.length<35;)x.push(null);return x},[l,u]),g=i.useCallback(()=>{u===0?(c(v=>v-1),d(11)):d(v=>v-1)},[u]),y=i.useCallback(()=>{u===11?(c(v=>v+1),d(0)):d(v=>v+1)},[u]),w=v=>`${l}-${String(u+1).padStart(2,"0")}-${String(v).padStart(2,"0")}`,_=v=>C.getFullYear()===l&&C.getMonth()===u&&C.getDate()===v;return t.jsxs("div",{children:[t.jsxs("div",{className:"calendar-nav",children:[t.jsx("button",{type:"button",className:"calendar-nav__button",onClick:g,"aria-label":o("calendar.prevMonth","\uC774\uC804 \uB2EC"),children:t.jsx(Oe,{icon:"chevron-left",label:"",className:"",svgClassName:"calendar-nav__button-icon",size:18})}),t.jsx("span",{className:"calendar-nav__title h5",children:o("calendar.yearMonth",{year:l,month:u+1})}),t.jsx("button",{type:"button",className:"calendar-nav__button",onClick:y,"aria-label":o("calendar.nextMonth","\uB2E4\uC74C \uB2EC"),children:t.jsx(Oe,{icon:"chevron-right",label:"",className:"",svgClassName:"calendar-nav__button-icon",size:18})}),t.jsxs("div",{className:"calendar-nav__legend",children:[t.jsx("span",{className:"calendar-nav__legend-dot calendar-nav__legend-dot--main"}),t.jsx("span",{className:"caption-1",children:o("calendar.legend.visited","\uBC29\uBB38")}),t.jsx("span",{className:"calendar-nav__legend-dot calendar-nav__legend-dot--sub"}),t.jsx("span",{className:"caption-1",children:o("calendar.legend.scheduled","\uC608\uC57D")}),t.jsx("span",{className:"calendar-nav__legend-dot calendar-nav__legend-dot--disabled"}),t.jsx("span",{className:"caption-1",children:o("calendar.legend.noVisit","\uBBF8\uBC29\uBB38")})]})]}),t.jsxs("div",{className:"calendar-grid",children:[s.map(v=>t.jsx("div",{className:"calendar-day-header body-3",children:v},v)),b.map((v,A)=>{if(v===null)return t.jsx("div",{className:"calendar-cell empty"},`empty-${A}`);const x=v,k=w(x),M=f[k]??[],N=p===k;return t.jsxs("div",{className:`calendar-cell${_(x)?" today":""}${N?" drag-over":""}${r?" calendar-cell--clickable":""}`,role:r?"button":void 0,tabIndex:r?0:void 0,"aria-label":r?o("calendar.addOnDate",{date:k}):void 0,onClick:r?()=>r(k):void 0,onKeyDown:r?D=>{D.key!=="Enter"&&D.key!==" "||(D.preventDefault(),r(k))}:void 0,onDragOver:a?D=>{D.preventDefault(),h(k)}:void 0,onDragLeave:a?D=>{D.currentTarget.contains(D.relatedTarget)||h(null)}:void 0,onDrop:a?D=>{D.preventDefault(),m.current!=null&&(a(m.current,k),m.current=null),h(null)}:void 0,children:[t.jsx("div",{className:"calendar-cell__number body-3",children:x}),t.jsx("div",{className:"calendar-cell__badges",children:M.map((D,P)=>t.jsxs("div",{draggable:!!a,className:`calendar-visit-badge${D.status==="noVisit"?" calendar-visit-badge--no-visit":D.status==="scheduled"?" calendar-visit-badge--scheduled":""}${n?" calendar-visit-badge--clickable":""}${a?" calendar-visit-badge--draggable":""}`,onDragStart:a?L=>{m.current=D.id,L.dataTransfer.effectAllowed="move"}:void 0,onDragEnd:a?()=>{m.current=null,h(null)}:void 0,onClick:n?L=>{L.stopPropagation(),n(D)}:void 0,...Fi(n?()=>n(D):void 0),"aria-label":[D.time?ds(D.time,o):null,D.customer,o(D.status==="noVisit"?"calendar.legend.noVisit":D.status==="scheduled"?"calendar.legend.scheduled":"calendar.legend.visited")].filter(Boolean).join(" "),children:[D.time&&t.jsx("span",{className:"calendar-visit-badge__time body-3",children:ds(D.time,o)}),t.jsx("span",{className:"calendar-visit-badge__name body-3",children:D.customer}),D.status==="noVisit"&&t.jsx("span",{className:"calendar-visit-badge__no-visit caption-1",children:o("calendar.legend.noVisit","\uBBF8\uBC29\uBB38")})]},D.id??P))})]},x)})]})]})}const u4={page:"h3",pagePopup:"h4",popup:"h5"};function Mn({type:e="page",title:n,headingLevel:a,icon:r,action:o,disc:s,children:l,className:c,style:u}){const d=u4[e],p=n||s,h=a?`h${a}`:"div";return t.jsxs("div",{className:ye("section",`section--${e}`,c),style:u,children:[p&&t.jsxs("div",{className:"section__header",children:[t.jsxs("div",{className:"section__title-row",children:[r&&t.jsx(Oe,{icon:r,label:typeof n=="string"?n:void 0,className:"section__icon"}),t.jsxs("div",{className:"section__title-group",children:[n&&t.jsx(h,{className:`section__title ${d}`,children:n}),s&&t.jsx("div",{className:"section__disc body-3",children:s})]})]}),o&&t.jsx("div",{className:"section__action",children:o})]}),l]})}function Oi({icon:e,label:n,tooltip:a,wrapperStyle:r,color:o,bgColor:s,useHover:l=!0,iconSize:c="medium"}){const u=c==="small",d=ye("category-icon",u?"category-icon--small":""),p=u?16:20,h=i.useRef(null),[m,C]=i.useState(!1),f=i.useMemo(()=>{const x=r&&typeof r=="object"?{...r}:{};return!o&&!s?x:{...x,...o?{color:o,"--t-item-fg":o}:{},...s?{"--t-item-bg":s}:{}}},[r,o,s]),b=a||n,[g,y]=i.useState(null);i.useLayoutEffect(()=>{m&&y(h.current?.getBoundingClientRect()??null)},[m]),i.useEffect(()=>{if(!l&&m)try{C(!1)}catch{}},[l,m]),i.useEffect(()=>{if(!m)return;const x=k=>{const M=h.current;if(!M)return;const N=k.target;N&&!M.contains(N)&&C(!1)};return document.addEventListener("pointerdown",x,!0),()=>document.removeEventListener("pointerdown",x,!0)},[m]);const w=i.useCallback(()=>{l&&C(!0)},[l]),_=i.useCallback(()=>{l&&C(!1)},[l]),v=i.useCallback(()=>C(!1),[]),A=i.useCallback(x=>{if(x.key==="Escape"){C(!1);return}(x.key==="Enter"||x.key===" ")&&(x.preventDefault(),C(k=>!k))},[]);return t.jsxs("span",{ref:h,className:"category-icon__wrap",onPointerEnter:w,onPointerLeave:_,onFocus:w,onBlur:_,onKeyDown:A,role:"button",tabIndex:0,"aria-label":typeof b=="string"?b:void 0,"aria-haspopup":!!b,"aria-expanded":m,"data-tooltip-ignore":!0,children:[t.jsx(Oe,{icon:e,label:n,className:d,imgClassName:"category-icon__image",maskClassName:"category-icon__mask",svgClassName:"category-icon__svg",wrapperStyle:f,size:p}),m&&b&&t.jsx(dn,{anchorRect:g,text:typeof b=="string"?b:void 0,offset:8,onClose:v,className:"category-icon__tooltip",ariaLabel:typeof b=="string"?b:void 0})]})}function d4(e,n){if(!e)return{previewCodes:[],previewBucket:null};const a=e,r=l=>l.map(c=>c?.contextCode||c?.context_code).filter(Boolean).map(String);if(n==="LISTEN_IN_NOISE"){const l=a.sentences||a.items||[],c=Array.isArray(l)&&l.length>0?r(l):[];return c.length===0&&(a.contextCode||a.context_code)&&c.push(String(a.contextCode||a.context_code)),{previewCodes:c,previewBucket:"LIN_D"}}if(n==="SHORT_STORY"){const l=a.items||a.sentences||[],c=Array.isArray(l)&&l.length>0?r(l):[];return c.length===0&&(a.contextCode||a.context_code)&&c.push(String(a.contextCode||a.context_code)),{previewCodes:c,previewBucket:"SHORT_S"}}if(n==="LONG_STORY"){const l=a.items||a.sentences||[],c=Array.isArray(l)&&l.length>0?r(l):[];return c.length===0&&(a.contextCode||a.context_code)&&c.push(String(a.contextCode||a.context_code)),{previewCodes:c,previewBucket:"LONG"}}if(n==="ORDERING_SENTENCE"){const l=a.sentences||a.items||[],c=Array.isArray(l)&&l.length>0?r(l):[];return c.length===0&&(a.contextCode||a.context_code)&&c.push(String(a.contextCode||a.context_code)),{previewCodes:c,previewBucket:"LIN_D"}}const o=a.sentences||a.items||[],s=r(Array.isArray(o)?o:[]);return s.length===0&&(a.contextCode||a.context_code)&&s.push(String(a.contextCode||a.context_code)),{previewCodes:s,previewBucket:null}}function p4(e,n){const[a,r]=i.useState(!1),[o,s]=i.useState(-1),[l,c]=i.useState([]),u=i.useRef(null),d=i.useRef(!1),p=i.useRef(null),[h,m]=i.useState(!1),C=i.useRef([]),{previewCodes:f,previewBucket:b}=d4(e,n);i.useEffect(()=>{if(!f.length)return;let y=!1;return(async()=>{const w=[],_=[];for(const v of f)try{const A=Go(v,b);if(!A){w.push("");continue}let x=null;try{x=await Ko(A)}catch{}if(!x)try{const k=await Zo(A);k&&(x=URL.createObjectURL(k),_.push(x))}catch{}w.push(x??"")}catch{w.push("")}y?_.forEach(v=>{try{URL.revokeObjectURL(v)}catch{}}):(C.current.forEach(v=>{try{URL.revokeObjectURL(v)}catch{}}),C.current=_,c(w))})(),()=>{y=!0}},[f.join(","),b]),i.useEffect(()=>()=>{C.current.forEach(y=>{try{URL.revokeObjectURL(y)}catch{}}),C.current=[]},[]);const g=i.useCallback(async y=>{if(y.stopPropagation(),y.preventDefault(),d.current){d.current=!1;try{u.current?.pause()}catch{}r(!1),s(-1);return}if(l.filter(Boolean).length){d.current=!0,r(!0);for(let w=0;w<l.length&&d.current;w++){const _=l[w];if(_){s(w);try{await new Promise((v,A)=>{const x=new Audio(_);u.current=x,x.onended=()=>v(),x.onerror=()=>A(),x.play().catch(A)})}catch{break}}}d.current=!1,r(!1),s(-1)}},[l]);return i.useEffect(()=>()=>{d.current=!1;try{u.current?.pause()}catch{}u.current=null},[]),{playing:a,playingIndex:o,previewUrls:l,previewHover:h,setPreviewHover:m,previewBtnRef:p,handlePreview:g}}const h4=e=>{if(!e)return[];const n=typeof e.context=="string"&&e.context.trim()||typeof e.sentence=="string"&&e.sentence.trim()||typeof e.text=="string"&&e.text.trim()||"";if(n)return[String(n)];const a=e.sentences||e.items||e.questions||[];return Array.isArray(a)&&a.length>0?a.map(r=>{if(typeof r=="string")return r;if(r&&typeof r=="object"){const o=r;return o.sentence||o.text||o.context||o.question||o.title||""}return""}).filter(r=>typeof r=="string"&&r.trim().length>0).map(r=>r.trim()):[]};function xr(e){const{index:n,type:a,trainingData:r,ariaLabel:o,depth:s,renderPopup:l,completed:c,completedIds:u,selectedIds:d,tooltipText:p,useDescriptionTooltip:h=!1,onRemove:m,hideCheckBadge:C=!1,showTypeLabel:f=!1,onComplete:b,onSelect:g,onMore:y,countLabelOverride:w,size:_="square"}=e||{},{t:v}=de.useTranslation(),[A,x]=i.useState(!1),k=i.useRef(null),[M,N]=i.useState(!1);i.useEffect(()=>{k.current?.matches(":hover")&&N(!0)},[]);const{playing:D,playingIndex:P,previewUrls:L,previewHover:E,setPreviewHover:R,previewBtnRef:S,handlePreview:V}=p4(r,a?.key),Y=i.useCallback(()=>{g?g():x(!0)},[g]),X=i.useCallback(()=>x(!1),[]),J=i.useCallback(()=>N(!0),[]),O=i.useCallback(()=>N(!1),[]),j=i.useCallback(()=>R(!0),[R]),$=i.useCallback(()=>R(!1),[R]),[F,H]=i.useState(null);i.useLayoutEffect(()=>{E&&H(S.current?.getBoundingClientRect()??null)},[E,S]);const[Z,I]=i.useState(null);i.useLayoutEffect(()=>{M&&!A&&h&&I(k.current?.getBoundingClientRect()??null)},[M,A,h]);const W=i.useCallback(ge=>{(ge.key==="Enter"||ge.key===" ")&&(ge.preventDefault(),Y())},[Y]),U=r||null,le=i.useMemo(()=>{if(!h)return null;const ge=p?(Array.isArray(p)?p:[p]).filter(Boolean):null,Pe=ge&&ge.length>0?ge:h4(U);return Pe&&Pe.length>0?Pe:null},[h,p,U]),pe=i.useCallback(ge=>{ge.stopPropagation(),m?.()},[m]),Ce=i.useCallback(ge=>ge.stopPropagation(),[]),ve=i.useCallback(ge=>{typeof b=="function"&&b(ge)},[b]),he=c||(u&&r?.id!=null?u.has(String(r.id)):!1),T=!he&&(d!=null&&r?.id!=null?d.has(String(r.id)):!1);Us("speechear.popup.close",X);const q=ps(),ee=`${a?.label||""} ${n+1}`,_e=U?.title||U?.name||ee;let ue=a?.icon,ie,te="",se="";try{const ge=U?.category_0||U?.category_main_code||U?.category_main,Pe=U?.category_1||U?.category_sub_code||U?.category_sub,$e=q.find(Ke=>Ke.key===ge);$e?.icon&&(ue=$e.icon),!ie&&$e?.color&&(ie={"--t-item-fg":$e.color}),!ie&&U?.iconColor&&(ie={"--t-item-fg":U.iconColor}),te=$e?.label||"";try{se=$e?.subs?.find(Ke=>Ke.key===Pe)?.label||""}catch{}}catch{}const Se=se?`${te} / ${se}`:te||a?.label||_e,He=ge=>v("training.countQuestions",{n:ge}),Ve=ge=>v("training.countSentences",{n:ge});let Re="";try{if(U)if(a?.key==="LISTEN_IN_NOISE"){let ge=0;Array.isArray(U.items)&&U.items.length>0?ge=U.items.length:Array.isArray(U.sentences)&&U.sentences.length>0?ge=U.sentences.length:U.sentences&&(ge=1),Re=Ve(ge)}else if(a?.key==="SHORT_STORY"){let ge=1;Array.isArray(r?.items)?ge=r.items.length:Array.isArray(r?.raw&&r.raw?.items)?ge=r.raw.items.length:Array.isArray(U?.questions)?ge=U.questions.length:Array.isArray(U?.sentences)&&(ge=U.sentences.length),Re=He(ge)}else if(a?.key==="LONG_STORY"){let ge=1;if(Array.isArray(U.items)&&U.items.length>0){const Pe=U.items.reduce(($e,Ke)=>{const Ze=Ke.questionItems;return Array.isArray(Ze)?$e+Ze.length:Array.isArray(Ke.questions)?$e+Ke.questions.length:$e},0);ge=Pe>0?Pe:U.items.length}else Array.isArray(U.questions)&&U.questions.length>0?ge=U.questions.length:Array.isArray(U.sentences)&&U.sentences.length>0&&(ge=U.sentences.length);Re=He(ge)}else if(a?.key==="ORDERING_SENTENCE"){let ge=1;Array.isArray(U.items)&&U.items.length>0?ge=U.items.length:Array.isArray(U.sentences)&&U.sentences.length>0&&(ge=U.sentences.length),Re=Ve(ge)}else Array.isArray(U.items)&&(Re=U.items.length>0?He(U.items.length):"")}catch{}const Ee=_==="list",je=_==="compact",Ae=_==="small",ze=Ae&&a?.key?o0().find(ge=>ge.key===a.key)?.label??"":"",at=!!f&&!!a?.label&&a.label!==String(_e)||Ae&&!!ze&&ze!==String(_e);return t.jsxs(t.Fragment,{children:[t.jsxs("div",{ref:k,className:`training-block-button${Ee?" training-block-button--list":""}${je?" training-block-button--compact":""}${Ae?" training-block-button--small":""}${he?" training-block-button--completed":""}${T?" training-block-button--selected":""}${at&&!Ae?" training-block-button--withType":""}${Ae&&!at?" training-block-button--no-type-label":""}`,onClick:Y,onPointerEnter:J,onPointerLeave:O,role:"button",tabIndex:0,onKeyDown:W,"aria-label":typeof o=="string"?o:typeof _e=="string"?_e:void 0,children:[t.jsxs("div",{className:"training-block-button__left",children:[f&&a?.label&&a.label!==String(_e)&&t.jsx("span",{className:"training-block-button__type-label caption-1",children:a.label}),Ae&&ze&&ze!==String(_e)&&t.jsx("span",{className:"training-block-button__type-label caption-2",children:ze}),t.jsx(Oi,{icon:ue,label:_e,tooltip:Se,wrapperStyle:ie,iconSize:Ae||je?"small":"medium"}),!C&&(he||T)&&!(m&&M)&&t.jsx(lt,{type:"dot",icon:"check",position:"top-left",size:"medium","aria-label":he?v("training.completed","\uD6C8\uB828 \uC644\uB8CC"):v("training.selected","\uC120\uD0DD\uB428")}),m&&M&&t.jsx(lt,{type:"dot",icon:"remove",position:"top-left",size:"medium","aria-label":v("common.remove","\uC81C\uAC70"),onClick:pe}),t.jsx("div",{className:`training-block-button__title ${je?"body-3":Ae?"body-3b":"h3"}`,children:String(_e)}),t.jsxs("div",{className:"training-block-button__description",children:[(()=>{const ge=w!==void 0?w:Re;return ge?t.jsx("div",{className:`training-block-button__count ${Ae?"caption-2":"caption-1"}`,children:ge}):null})(),t.jsx("div",{className:"training-block-button__chevron",children:t.jsx(Oe,{icon:"chevron-right",label:v("training.next","\uB2E4\uC74C"),className:"training-block-button__chevron-icon",imgClassName:"training-block-button__chevron-icon-image",maskClassName:"training-block-button__chevron-icon-mask",svgClassName:"training-block-button__chevron-icon-svg",size:Ae?12:20})})]}),(Ee||Ae)&&L.length>0&&t.jsx("div",{ref:S,className:"training-block-button__preview","data-tooltip-ignore":!0,onClick:Ce,onPointerEnter:j,onPointerLeave:$,children:t.jsx(ae,{size:Ae?28:32,type:"dot",icon:D?"pause":"play",variant:Ae?"transparent-lightGray":"default",useBorder:!1,selected:D,ariaLabel:D?v("training.stop","\uC815\uC9C0"):v("training.preview","\uBBF8\uB9AC \uB4E3\uAE30"),onClick:V})})]}),y&&t.jsx("div",{className:"training-block-button__more","data-tooltip-ignore":!0,onClick:ge=>{ge.stopPropagation(),y(ge)},children:t.jsx(ae,{size:40,type:"dot",icon:"more-horizontal",variant:"transparent-lightGray",useBorder:!1,ariaLabel:v("common.more","\uB354\uBCF4\uAE30")})})]}),E&&t.jsx(dn,{anchorRect:F,text:D?v("training.stop","\uC815\uC9C0"):v("training.preview","\uBBF8\uB9AC \uB4E3\uAE30"),offset:8,onClose:$}),M&&!A&&h&&(le?t.jsx(_n,{anchorRect:Z,items:le,activeIndex:P,onClose:O}):U?.subTitle?t.jsx(dn,{anchorRect:Z,text:U.subTitle,offset:8,onClose:O}):null),A&&l&&l({trainingData:U,typeKey:a?.key??"",onClose:X,onComplete:ve,popupTitle:String(_e),popupSubTitle:a?.subTitle,depth:s!=null?String(s):void 0,popupIcon:ue,popupIconTooltip:String(Se),popupWrapperStyle:ie})]})}const ya=20;function m4(e){const{t:n}=de.useTranslation(),{type:a,trainingDatas:r,depth:o,renderPopup:s,completedIds:l,selectedIds:c,onItemComplete:u,size:d,useDescriptionTooltip:p,onRemove:h,onMore:m,sectionType:C="page"}=e||{},[,f]=i.useState(0),b=typeof r<"u"?Array.isArray(r)?r:[]:[],g=b.length,[y,w]=i.useState(Math.min(g,ya)),_=i.useMemo(()=>Array.isArray(o)?[...o,a?.label].filter(Boolean).join(" \xB7 "):[o||"",a?.label].filter(Boolean).join(" \xB7 "),[o,a?.label]);i.useEffect(()=>{w(Math.min(g,ya))},[g]),Us("speechear.data.updated",()=>f(A=>A+1));function v(){w(A=>Math.min(g,A+ya))}return t.jsxs(Mn,{type:C,title:a?.label,icon:a?.icon,disc:a?.desc,className:"training-block",children:[t.jsx("div",{className:"training-list",children:(b||[]).slice(0,y).map((A,x)=>{const k=A;return t.jsx(xr,{index:x,type:a,trainingData:k,depth:_,renderPopup:s,completedIds:l,selectedIds:c,size:d,useDescriptionTooltip:p,onRemove:typeof h=="function"&&c!=null&&k?.id!=null&&c.has(String(k.id))?()=>h(k):void 0,onComplete:typeof u=="function"&&k?.id!=null?()=>u(String(k.id)):void 0,onMore:typeof m=="function"?M=>m(k,M):void 0},k?.id!=null?`${a?.key||"t"}-${String(k.id)}`:`${a?.key||"t"}-${x}`)})}),g>ya&&y<g&&t.jsx("div",{className:"training-block__more",children:t.jsx(ae,{size:48,type:"bar",icon:"plus",onClick:v,ariaLabel:n("common.loadMore","\uB354\uBCF4\uAE30"),label:n("common.loadMore","\uB354\uBCF4\uAE30"),variant:"main"})})]})}function _r(e){const n=i.useRef(null),[a,r]=i.useState(!!e),[o,s]=i.useState(!1);i.useEffect(()=>{s(!1);const u=n.current;r(!!e&&!(u?.complete&&u.naturalWidth>0))},[e]);const l=i.useCallback(()=>r(!1),[]),c=i.useCallback(()=>{r(!1),s(!0)},[]);return{imgRef:n,loading:a,failed:o,hasImage:!!e&&!o,onLoad:l,onError:c}}let Ln=null;function f4(e){if(Ln&&Ln!==e)try{Ln()}catch{}return Ln=e,()=>{Ln===e&&(Ln=null)}}var C4='data:image/svg+xml,<svg width="100" height="100" viewBox="0 0 100 100" fill="none" xmlns="http://www.w3.org/2000/svg">%0A<g clip-path="url(%23clip0_2256_7437)">%0A<g opacity="0.1">%0A<path d="M35.7143 25C29.7964 25 25 29.7964 25 35.7143V64.2857C25 67.3786 25.7893 70.2893 27.1714 72.8286C29.7071 74.2143 32.6179 75 35.7143 75H64.2857C70.2036 75 75 70.2036 75 64.2857V35.7143C75 32.6214 74.2107 29.7107 72.8286 27.1714C70.2929 25.7857 67.3821 25 64.2857 25H35.7143Z" fill="%23111111"/>%0A</g>%0A<path d="M57.1426 17.8571H35.7141C25.8533 17.8571 17.8569 25.8536 17.8569 35.7143V44.0643L10.9926 51.6179C10.5819 52.0679 10.6283 52.775 11.0998 53.1643C13.1783 54.8929 15.4641 56.2214 17.8569 57.1679C17.8676 63.925 21.6283 69.8 27.1712 72.825C25.7855 70.2893 24.9998 67.3786 24.9998 64.2821V35.7107C24.9998 29.7929 29.7962 24.9964 35.7141 24.9964H64.2855C67.3783 24.9964 70.2891 25.7857 72.8283 27.1679C69.7998 21.6179 63.9105 17.8536 57.1426 17.8536V17.8571Z" fill="%23111111"/>%0A<path d="M72.8285 27.1714C74.2142 29.7072 75 32.6179 75 35.7143V64.2857C75 70.2036 70.2035 75 64.2857 75H35.7142C32.6214 75 29.7107 74.2107 27.1714 72.8286C30.2 78.3786 36.0892 82.1429 42.8571 82.1429H58.9678C59.9321 82.1429 60.7142 82.925 60.7142 83.8893C60.7142 84.9107 61.5892 85.7215 62.6071 85.6322C73.5535 84.675 82.1428 75.4822 82.1428 64.2857V42.8572C82.1428 36.0893 78.3785 30.2 72.8285 27.1714Z" fill="%23111111"/>%0A<path d="M36.0714 40.7143C36.0714 39.5308 35.112 38.5714 33.9285 38.5714C32.745 38.5714 31.7856 39.5308 31.7856 40.7143V45C31.7856 46.1834 32.745 47.1428 33.9285 47.1428C35.112 47.1428 36.0714 46.1834 36.0714 45V40.7143Z" fill="%23111111"/>%0A<path d="M46.7859 57.1429C45.743 57.1429 44.6966 56.875 43.7502 56.3286C42.8966 55.8357 42.6037 54.7429 43.1002 53.8893C43.593 53.0357 44.6859 52.7429 45.5395 53.2393C46.518 53.8036 47.7573 53.6429 48.5537 52.8464C48.9395 52.4607 49.1823 51.9714 49.2573 51.4357C49.5787 49.1607 50.5823 47 52.1645 45.1857C53.1073 44.1071 53.6037 42.7214 53.568 41.2857C53.493 38.3536 51.1466 35.9107 48.2216 35.7286C47.2323 35.6679 46.2859 35.8464 45.4073 36.2679C44.518 36.6929 43.4502 36.3107 43.0287 35.4214C42.6037 34.5321 42.9859 33.4643 43.8752 33.0429C45.2895 32.3714 46.868 32.0679 48.4466 32.1643C53.2037 32.4607 57.0216 36.4286 57.1395 41.1964C57.1966 43.5286 56.3859 45.7786 54.8573 47.5357C53.7323 48.825 53.018 50.3464 52.7966 51.9357C52.6109 53.2464 52.018 54.4357 51.0823 55.375C49.9145 56.5429 48.3609 57.15 46.7895 57.15L46.7859 57.1429Z" fill="%23111111"/>%0A</g>%0A<defs>%0A<clipPath id="clip0_2256_7437">%0A<rect width="100" height="100" fill="white"/>%0A</clipPath>%0A</defs>%0A</svg>%0A';const g4=C4,wr=i.forwardRef(function({item:e,disabled:n=!1,onPlayDone:a,selectable:r=!1,selected:o=!1,onSelect:s,flipDelay:l=0,hideLabel:c=!1,hideAudio:u=!1,orderRank:d=null},p){const{t:h}=de.useTranslation(),m=e.word||e.title||"",C=n||!m,f=e.audio??e.sound??e.audioKey,b=e.subLabel||e.pronunciation||"",g=e.colloquialLabel||"",[y,w]=i.useState({label:m,subLabel:b,colloquialLabel:g,homonum:e.homonum});m&&y.label!==m&&w({label:m,subLabel:b,colloquialLabel:g,homonum:e.homonum});const _=i.useRef(null),v=Qt("(max-width: 767px)"),[A,x]=i.useState(!1),[k,M]=i.useState(""),N=Dn()?.(y.label,y.homonum)??e.image??"",{imgRef:D,loading:P,hasImage:L,onLoad:E,onError:R}=_r(N);i.useEffect(()=>{let j=!1;return(async()=>{if(f){if(typeof f=="string"){if(f.startsWith("http")||f.includes("/")){M(f);return}}else if(typeof f=="object"&&!Array.isArray(f)){const F=f.src;if(F){M(F);return}}}const $=Wa();if($&&m)try{const F=await Promise.resolve($(m));!j&&F&&M(F)}catch{}})(),()=>{j=!0}},[f,m]),i.useEffect(()=>()=>{try{_.current?.pause()}catch{}_.current=null},[]);const S=i.useCallback(()=>new Promise(j=>{if(typeof window<"u"&&window.speechSynthesis&&m){x(!0),window.speechSynthesis.cancel();const $=new SpeechSynthesisUtterance(m);$.lang="ko-KR",$.onend=()=>{x(!1);try{a?.()}catch{}j()},$.onerror=()=>{x(!1),j()},window.speechSynthesis.speak($)}else j()}),[m,a]),V=i.useCallback(j=>new Promise($=>{let F=!1;const H=()=>{F||(F=!0,x(!1),$(!1))};try{const Z=new Audio(j);_.current=Z,Z.onended=()=>{if(!F){F=!0,x(!1);try{a?.()}catch{}$(!0)}},Z.onerror=H,Z.play().catch(H)}catch{H()}}),[a]),Y=i.useCallback(async()=>{if(n)return;const j=f4(()=>{try{_.current?.pause()}catch{}try{window.speechSynthesis?.cancel()}catch{}x(!1)});try{window.speechSynthesis?.cancel()}catch{}try{if(k&&(x(!0),await V(k)))return;const $=xm();if($&&m)try{const F=await Promise.resolve($(m));if(F&&(x(!0),await V(F)))return}catch{}await S()}finally{j()}},[n,k,m,V,S]);i.useImperativeHandle(p,()=>({play:()=>Y()}),[Y]);const X=j=>j.stopPropagation(),J=i.useCallback(j=>{if(j.stopPropagation(),!n){if(A){try{_.current?.pause()}catch{}try{window.speechSynthesis?.cancel()}catch{}x(!1);return}Y()}},[n,A,Y]),O=ye("training-word-card",n?"training-word-card--disabled":"",C?"training-word-card--flipped":"",r?"training-word-card--selectable":"",o?"training-word-card--selected":"");return t.jsx("div",{className:O,onClick:r&&!n?s:void 0,role:r?"button":void 0,"aria-pressed":r?o:void 0,tabIndex:r&&!n?0:void 0,"aria-disabled":r&&n?!0:void 0,onKeyDown:r&&!n?j=>{(j.key==="Enter"||j.key===" "||j.key==="Spacebar")&&(j.preventDefault(),s?.())}:void 0,children:t.jsxs("div",{className:"training-word-card__flipper",style:{transitionDelay:C?"0ms":`${l}ms`},children:[t.jsxs("div",{className:"training-word-card__front",children:[o&&t.jsx("div",{className:"training-word-card__selected-badge",onClick:X,children:t.jsx(lt,{type:"dot",size:40,position:"inline",animate:!0,icon:d!=null?void 0:"check",number:d??void 0,"aria-label":d!=null?h("training.nthSelected",{n:d}):h("training.selected","\uC120\uD0DD\uB428")})}),t.jsx("div",{className:"training-word-card__image-wrap",children:L?t.jsxs(t.Fragment,{children:[P&&t.jsx("div",{className:"training-word-card__spinner"}),t.jsx("img",{ref:D,className:"training-word-card__image",src:N,alt:y.label||h("common.image","\uC774\uBBF8\uC9C0"),style:{opacity:P?0:1},onLoad:E,onError:R})]}):t.jsx("div",{className:"training-word-card__placeholder"})}),!c&&t.jsxs("div",{className:"training-word-card__body",children:[t.jsx("div",{className:"training-word-card__word",children:y.label}),y.subLabel&&t.jsxs("div",{className:"training-word-card__pronunciation",children:["[",y.subLabel,"]"]}),y.colloquialLabel&&t.jsxs("div",{className:"training-word-card__colloquial caption-1",children:["[",y.colloquialLabel,"]"]})]}),!u&&t.jsx("div",{className:"training-word-card__bottom",onClick:r?X:void 0,children:t.jsx(ae,{size:v?40:48,type:v?"dot":"bar",icon:A?"pause":"play",label:v?void 0:h("training.playSound","\uC18C\uB9AC \uB4E3\uAE30"),selected:A,onClick:J,disabled:n,ariaLabel:h("training.playSound","\uC18C\uB9AC \uB4E3\uAE30")})})]}),t.jsx("div",{className:"training-word-card__back","aria-hidden":"true",children:t.jsx("img",{src:g4,className:"training-word-card__disabled-symbol",alt:"",draggable:!1})})]})})});let na=0,Hi="",Vi="",aa=0;function b4(){return zi(!1)}function y4(){return zi(!0)}function zi(e){const n=typeof document<"u";na===0&&n&&(Hi=document.body.style.overflow,document.body.style.overflow="hidden"),e&&n&&(aa===0&&(Vi=document.body.style.paddingRight),aa++,document.body.style.paddingRight="0px"),na++;let a=!1;return()=>{a||(a=!0,na=Math.max(0,na-1),e&&n&&(aa=Math.max(0,aa-1),aa===0&&(document.body.style.paddingRight=Vi)),na===0&&n&&(document.body.style.overflow=Hi))}}const v4=260;function hn(e){const{t:n}=de.useTranslation(),{title:a,subtitle:r,headerActions:o,children:s,buttons:l,footer:c,footerClassName:u="",onClose:d,closeDisabled:p=!1,beforeClose:h,closeOnBackdrop:m=!0,className:C="",ariaLabel:f,useTitle:b=!0,inline:g=!1,size:y,resetScrollKey:w}=e||{},[_,v]=i.useState(!1),A=i.useRef(!1),x=i.useRef(null),k=i.useId(),M=i.useRef(null);i.useEffect(()=>{},[g,a,f,C]),i.useEffect(()=>{w!==void 0&&M.current&&(M.current.scrollTop=0)},[w]);const[N,D]=i.useState(!1);i.useEffect(()=>{const O=M.current;if(!O)return;const j=()=>D(O.scrollHeight>O.clientHeight+1);if(j(),typeof ResizeObserver>"u")return;const $=new ResizeObserver(j);$.observe(O);const F=O.firstElementChild;return F&&$.observe(F),()=>$.disconnect()},[s,w]),i.useEffect(()=>{if(!g)return b4()},[g]),i.useEffect(()=>{if(g)return;const O=document.activeElement,j=x.current;return j&&!j.contains(document.activeElement)&&(j.querySelector(Zn)??j).focus(),()=>{O?.focus?.()}},[g]),tr(x,!g);const P=i.useCallback(O=>{A.current||(A.current=!0,v(!0),setTimeout(()=>{try{O&&O()}catch{}},v4))},[]),L=i.useCallback(()=>{p||h&&h()===!1||P(d)},[P,d,p,h]),E=i.useRef(L);i.useEffect(()=>{E.current=L});const R=!g&&!!d;i.useEffect(()=>{if(R)return lr(()=>E.current())},[R]);const S=R&&m,V=i.useRef(!1),Y=O=>{V.current=O.target===O.currentTarget},X=O=>{const j=V.current;V.current=!1,j&&O.target===O.currentTarget&&L()},J=t.jsx("div",{className:`popup ${g?"popup--inline":""} ${_?"popup--closing":""} ${C}`,onPointerDown:S?Y:void 0,onClick:S?X:void 0,children:t.jsxs("div",{ref:x,className:`popup-panel${y?` popup-panel--${y}`:""}`,tabIndex:-1,role:g?void 0:"dialog","aria-modal":g?void 0:!0,"aria-labelledby":!g&&a?k:void 0,"aria-label":!g&&!a&&f?f:void 0,children:[!b&&(o||d)?t.jsxs("div",{className:"popup-close-float",children:[o,d&&t.jsx(ae,{size:40,type:"dot",icon:"x",variant:"transparent-gray",useBorder:!1,onClick:L,disabled:p,ariaLabel:n("common.close","\uB2EB\uAE30")})]}):a||o||d?t.jsxs("div",{className:`popup-header${r?" popup-header--with-subtitle":""}`,children:[t.jsxs("div",{className:"popup-header-main",children:[t.jsx("span",{id:k,className:"popup-title popup-title--left h2",children:a}),r&&t.jsx("span",{className:"popup-subtitle body-3",children:r})]}),t.jsxs("div",{className:"popup-header-actions",children:[o,d&&t.jsx(ae,{size:40,type:"dot",icon:"x",variant:"transparent-gray",useBorder:!1,onClick:L,disabled:p,ariaLabel:n("common.close","\uB2EB\uAE30")})]})]}):null,t.jsx("div",{className:"popup-content",ref:M,tabIndex:N?0:void 0,children:t.jsx("div",{className:"popup-content__inner",children:typeof s=="function"?s({animateThen:P,closeWithAnimation:L}):s})}),l?.length?t.jsx("div",{className:"popup-footer popup-footer--buttons",children:l.map((O,j)=>t.jsx(ae,{size:48,variant:O.variant??"default",label:O.label,disabled:O.disabled,onClick:()=>O.onClick?.({animateThen:P,closeWithAnimation:L})},j))}):c?t.jsx("div",{className:`popup-footer${u?` ${u}`:""}`,children:typeof c=="function"?c({animateThen:P,closeWithAnimation:L}):c}):null]})});return g||typeof document>"u"?J:It.createPortal(J,document.body)}function va(e){return String(e)}const Wi=["o","triangle","x"];function qi(e,n){return e===n?null:n}const Ui={o:"circle",triangle:"triangle",x:"x"},Gi={o:"main",triangle:"warn",x:"danger"};function x4(e){let n=0,a=0,r=0;for(const s of Object.values(e))s==="o"?n++:s==="triangle"?a++:s==="x"&&r++;const o=n+a+r;return{marked:o,o:n,triangle:a,x:r,rate:o===0?null:(n+a*.5)/o}}function kr(e){const n={};for(const[a,r]of Object.entries(e))(r==="o"||r==="triangle"||r==="x")&&(n[a]=r);return n}function Ki(e){const n=[];let a=0;for(const r of e)n.push(a),a+=r;return n}function _4(e,n){return!n&&e>0}const $n={landscape:{width:1123,height:794,printSize:"A4 landscape",printW:"297mm",printH:"210mm"},portrait:{width:794,height:1123,printSize:"A4 portrait",printW:"210mm",printH:"297mm"}};function w4(e="landscape"){const{printSize:n,printW:a,printH:r}=$n[e],o=document.createElement("style");o.textContent=`@page { size: ${n}; margin: 0; } .word-table { width: ${a} !important; height: ${r} !important; }`,document.head.appendChild(o);const s=()=>{document.head.removeChild(o),window.removeEventListener("afterprint",s)};window.addEventListener("afterprint",s),window.print()}function Zi(e,n){if(e.length===0)return[[]];const a=Math.max(1,Math.floor(n)),r=[];for(let o=0;o<e.length;o+=a)r.push(e.slice(o,o+a));return r}const k4={landscape:{1:{cols:1,rows:1},2:{cols:2,rows:1},3:{cols:3,rows:1},4:{cols:2,rows:2},5:{cols:3,rows:2},6:{cols:3,rows:2},7:{cols:4,rows:2},8:{cols:4,rows:2},9:{cols:5,rows:2},10:{cols:5,rows:2},11:{cols:4,rows:3},12:{cols:4,rows:3}},portrait:{1:{cols:1,rows:1},2:{cols:1,rows:2},3:{cols:1,rows:3},4:{cols:1,rows:4},5:{cols:1,rows:5},6:{cols:2,rows:3},7:{cols:2,rows:4},8:{cols:2,rows:4},9:{cols:2,rows:5},10:{cols:2,rows:5},11:{cols:3,rows:4},12:{cols:3,rows:4}}};function A4(e,n){const a=k4[e][n];if(a)return a;const r=Math.max(1,Math.ceil(n)),o=Math.max(1,Math.ceil(Math.sqrt(r*.707)));let s,l;return e==="landscape"?(l=o,s=Math.ceil(r/l)):(s=o,l=Math.ceil(r/s)),(e==="landscape"?s<l:l<s)&&([s,l]=[l,s]),{cols:s,rows:l}}const N4={\uD45C\uC2DC:"word-table-block__content--cut-show",\uC810\uC120:"",\uCF54\uB108:"word-table-block__content--cut-corner",\uBBF8\uD45C\uC2DC:""},Yi={\uBA85:"\uBA85\uC0AC",\uB3D9:"\uB3D9\uC0AC",\uD615:"\uD615\uC6A9\uC0AC",\uBD80:"\uBD80\uC0AC",\uC218:"\uC218\uC0AC",\uAD00:"\uAD00\uD615\uC0AC",\uAC10:"\uAC10\uD0C4\uC0AC",\uC870:"\uC870\uC0AC",\uC811:"\uC811\uC0AC",\uC758:"\uC758\uC874\uBA85\uC0AC",\uB300:"\uB300\uBA85\uC0AC",\uBCF4\uB3D9:"\uBCF4\uC870\uB3D9\uC0AC",\uBCF4\uD615:"\uBCF4\uC870\uD615\uC6A9\uC0AC"},Xi={\uACE0\uC720:"\uACE0\uC720\uC5B4",\uD55C\uC790:"\uD55C\uC790\uC5B4",\uC678\uB798:"\uC678\uB798\uC5B4",\uD63C\uC885:"\uD63C\uC885\uC5B4"};function Ar(e,n){return e?e.split("/").map(a=>n[a]??a).join("/"):""}function Ji(e,n,a,r){if(r!=="\uC810\uC120")return{};const o=e%n,s=Math.floor(e/n),l=o<n-1,c=s<a-1;if(!l&&!c)return{};const u="#ddd",d=C=>`repeating-linear-gradient(to ${C}, ${u} 0, ${u} 5px, transparent 5px, transparent 10px)`,p=[],h=[],m=[];return l&&(p.push(d("bottom")),h.push("1px 100%"),m.push("right center")),c&&(p.push(d("right")),h.push("100% 1px"),m.push("center bottom")),{backgroundImage:p.join(", "),backgroundSize:h.join(", "),backgroundPosition:m.join(", "),backgroundRepeat:"no-repeat",printColorAdjust:"exact",WebkitPrintColorAdjust:"exact"}}const B4=280,S4=240,D4=280,j4=400,E4=120,T4=280;function Qi(e,n){const a=i.useRef(null),[r,o]=i.useState(1),[s,l]=i.useState(0),c=i.useCallback((u,d)=>{const p=u/e,h=n?d/n:1/0,m=Math.min(1,p,h);o(m),l(Math.max(0,(u-e*m)/2))},[e,n]);return i.useEffect(()=>{const u=a.current;if(!u)return;const d=n?u.parentElement??u:u;if(c(d.clientWidth,d.clientHeight),typeof ResizeObserver>"u")return;const p=new ResizeObserver(([h])=>c(h.contentRect.width,h.contentRect.height));return p.observe(d),()=>p.disconnect()},[c,n]),{scalerRef:a,scale:r,offset:s}}let an=null;function el({label:e,subLabel:n,colloquialLabel:a,homonum:r,showWord:o=!0,showImage:s=!0,showPronunciation:l=!0,showColloquial:c=!0,buttonSize:u=40,wordInfo:d}){const{t:p}=de.useTranslation(),h=i.useRef(null),m=i.useRef(null),C=i.useRef(null),[f,b]=i.useState(1),[g,y]=i.useState(!1),[w,_]=i.useState(""),[v,A]=i.useState(null),x=n&&n.length>0?n:wm()?.(e,r)??"",k=Dn()?.(e,r)??"",{imgRef:M,loading:N,failed:D,onLoad:P,onError:L}=_r(k),E=i.useCallback(()=>A(m.current?.getBoundingClientRect()??null),[]),R=i.useCallback(()=>A(null),[]),S=i.useMemo(()=>{if(!d)return null;const O=[];return d.grade&&O.push(`\uB09C\uC774\uB3C4: ${d.grade}\uB4F1\uAE09`),d.syllables&&O.push(`\uC74C\uC808 \uC218: ${d.syllables}\uC74C\uC808`),d.pos&&O.push(`\uD488\uC0AC: ${Ar(d.pos,Yi)}`),d.wordType&&O.push(`\uC720\uD615: ${Ar(d.wordType,Xi)}`),O.length?O:null},[d]);i.useEffect(()=>{const O=Wa(),j=x||e;if(!O||!j)return;let $=!1;return Promise.resolve(O(j)).then(F=>{!$&&F&&_(F)}),()=>{$=!0}},[x,e]),i.useEffect(()=>()=>{C.current?.pause(),an?.audio===C.current&&(an=null)},[]);const V=i.useCallback(async O=>{if(O.stopPropagation(),g){C.current?.pause(),y(!1),an=null;return}if(w){an?.stop(),y(!0);try{const j=new Audio(w);C.current=j;const $=()=>{y(!1),an?.audio===j&&(an=null)};an={audio:j,stop:()=>{j.pause(),$()}},j.onended=$,j.onerror=$,await j.play()}catch{y(!1),an?.audio===C.current&&(an=null)}}},[g,w]),Y=s&&!!k&&!D,X=Y&&o?B4:Y?D4:S4,J=Y&&o?j4:Y?T4:E4;return i.useEffect(()=>{const O=h.current;if(!O||typeof ResizeObserver>"u")return;const j=new ResizeObserver(([$])=>{const{width:F,height:H}=$.contentRect;b(Math.min(F/X,H/J))});return j.observe(O),()=>j.disconnect()},[X,J]),t.jsxs("div",{ref:h,className:"word-table-cell",children:[t.jsxs("div",{className:"word-table-cell__inner",style:{transform:`scale(${f})`},children:[Y&&t.jsxs("div",{className:"word-table-cell__image-wrap",children:[N&&t.jsx("div",{className:"word-table-cell__spinner"}),t.jsx("img",{ref:M,className:"word-table-cell__image",src:k,alt:e,draggable:!1,style:{opacity:N?0:1},onLoad:P,onError:L})]}),o&&t.jsx("span",{className:"word-table-cell__word h0",children:e}),l&&x&&t.jsxs("span",{className:"word-table-cell__sub h3",children:["[",x,"]"]}),c&&a&&t.jsxs("span",{className:"word-table-cell__colloquial h5",children:["[",a,"]"]})]}),t.jsxs("div",{className:"word-table-cell__play-button","data-audio-src":w,children:[t.jsx("span",{"data-play-state":"play",style:{display:g?"none":void 0},children:t.jsx(ae,{size:u,type:"dot",icon:"play",variant:"transparent-lightGray",useBorder:!1,showTooltipInfo:p("common.play","\uC7AC\uC0DD"),onClick:V})}),t.jsx("span",{"data-play-state":"pause",style:{display:g?void 0:"none"},children:t.jsx(ae,{size:u,type:"dot",icon:"pause",useBorder:!1,selected:!0,showTooltipInfo:p("common.pause","\uBA48\uCDA4"),onClick:V})})]}),d&&t.jsxs("div",{ref:m,className:"word-table-cell__info-button",onPointerEnter:E,onPointerLeave:R,onFocus:E,onBlur:R,children:[t.jsx(ae,{size:u,type:"dot",icon:"info",variant:"transparent-lightGray",useBorder:!1,showTooltipInfo:!1,ariaLabel:p("wordTable.wordInfo","{{word}} \uB0B1\uB9D0 \uC815\uBCF4",{word:e}),onClick:O=>O.stopPropagation()}),v&&S&&t.jsx(_n,{anchorRect:v,items:S,showIndex:!1})]})]})}function Rn({title:e,titleIcon:n,disc:a,className:r,orientation:o="landscape",contentTypes:s=["\uC774\uBBF8\uC9C0","\uB2E8\uC5B4","\uD45C\uC900 \uBC1C\uC74C"],cutLine:l="\uD45C\uC2DC",showOutline:c=!0,showDivLine:u=!0,items:d,editCells:p,count:h,activeCell:m=null,onActivateCell:C,onRemoveCell:f,onRemoveItem:b,onReorder:g,showFillerAdd:y=!1,contentRef:w,buttonSize:_=40,pageNumber:v,pageNumberPosition:A="right",fitHeight:x=!1,scoring:k=!1,marks:M,onMarkClick:N,scoreIndexOffset:D=0}){const P=i.useCallback((ve,he)=>{N?.(D+ve,he)},[N,D]),L=(ve,he)=>{const T=M?.[va(D+ve)]??null;return t.jsx("div",{className:ye("word-table-cell__score",T?"word-table-cell__score--marked":""),children:Wi.map(q=>t.jsx("span",{className:ye("word-table-cell__score-slot",T===q?"word-table-cell__score-slot--on":""),children:t.jsx(ae,{size:_,type:"dot",icon:Ui[q],variant:T===q?Gi[q]:"default",selected:T===q,useBorder:!1,showTooltipInfo:!1,ariaLabel:E(`wordTable.scoring.${q}`,{word:he,defaultValue:`${he} ${q}`}),onClick:ee=>{ee.stopPropagation(),P(ve,q)}})},q))})},{t:E}=de.useTranslation(),R=p!==void 0,S=i.useRef(null),[V,Y]=i.useState(null),{width:X,height:J}=$n[o],{scalerRef:O,scale:j,offset:$}=Qi(X,x?J:void 0),F=R?p?.length??0:d?.length??0,H=Math.max(h??F,1),{cols:Z,rows:I}=A4(o,H),W={word:s.length===0||s.includes("\uB2E8\uC5B4"),image:s.length===0||s.includes("\uC774\uBBF8\uC9C0"),pron:s.length===0||s.includes("\uD45C\uC900 \uBC1C\uC74C"),colloq:s.length===0||s.includes("\uAD6C\uC5B4\uCCB4 \uBC1C\uC74C")},U=R?(p??[]).some(ve=>ve!==null&&ve.length>1):(d??[]).some(ve=>ve.words.length>1),le=ye("word-table-block__content",N4[l],c&&"word-table-block__content--outline",u&&U&&"word-table-block__content--div-line"),pe={transform:`scale(${1/j})`,transformOrigin:"center center"},Ce=t.jsx("div",{ref:O,className:"word-table__scaler",style:{height:J*j},children:t.jsx("div",{className:ye("word-table",r),style:{width:X,height:J,transform:`scale(${j})`,transformOrigin:"top left",marginLeft:$},children:t.jsxs("div",{ref:w,className:le,style:{gridTemplateColumns:`repeat(${Z}, 1fr)`,gridTemplateRows:`repeat(${I}, 1fr)`},children:[R?t.jsx(t.Fragment,{children:(p??[]).map((ve,he)=>t.jsx("div",{className:ye("word-table-block__edit-cell",ve?"word-table-block__edit-cell--filled":"word-table-block__edit-cell--empty",m===he?"word-table-block__edit-cell--active":""),style:Ji(he,Z,I,l),children:ve?t.jsxs(t.Fragment,{children:[ve.map((T,q)=>t.jsxs(i.Fragment,{children:[q>0&&t.jsx("div",{className:"word-table-block__pair-divider"}),t.jsx(el,{label:T.word,subLabel:T.pronunciation,colloquialLabel:T.colloquialPronunciation,homonum:T.homonum,showWord:W.word,showImage:W.image,showPronunciation:W.pron,showColloquial:W.colloq,buttonSize:_})]},q)),k&&L(he,ve.map(T=>T.word).join(" / ")),f&&t.jsx("div",{className:"word-table-block__card-close",children:t.jsx(ae,{size:_,type:"dot",icon:"x",variant:"transparent-lightGray",useBorder:!1,showTooltipInfo:ve.length>1?E("wordPrint.removePair","\uB300\uB9BD\uC30D \uBE7C\uAE30"):E("wordPrint.removeWord","\uB2E8\uC5B4 \uBE7C\uAE30"),ariaLabel:ve.length>1?E("wordPrint.removePair","\uB300\uB9BD\uC30D \uBE7C\uAE30"):E("wordPrint.removeWord","\uB2E8\uC5B4 \uBE7C\uAE30"),onClick:()=>f(he)})})]}):C&&t.jsx("div",{style:pe,children:t.jsx(ae,{size:"48",type:"bar",icon:"plus",label:E("wordTable.addWord","\uCD94\uAC00\uD558\uAE30"),onClick:()=>C(he)})})},he))}):t.jsxs(t.Fragment,{children:[(d??[]).map((ve,he)=>t.jsxs("div",{className:`word-table-block__card${g?" word-table-block__card--draggable":""}${V===he?" word-table-block__card--drag-over":""}`,style:Ji(he,Z,I,l),draggable:!!g,onDragStart:g?()=>{S.current=he}:void 0,onDragOver:g?T=>{T.preventDefault(),Y(he)}:void 0,onDragLeave:g?()=>Y(null):void 0,onDrop:g?T=>{T.preventDefault(),S.current!==null&&S.current!==he&&g(S.current,he),S.current=null,Y(null)}:void 0,onDragEnd:g?()=>{S.current=null,Y(null)}:void 0,children:[ve.words.map((T,q)=>t.jsxs(i.Fragment,{children:[q>0&&t.jsx("div",{className:"word-table-block__pair-divider"}),t.jsx(el,{label:T.label,subLabel:T.subLabel,colloquialLabel:T.colloquialLabel,homonum:T.homonum,showWord:W.word,showImage:W.image,showPronunciation:W.pron,showColloquial:W.colloq,buttonSize:_,wordInfo:T.grade||T.syllables!=null||T.pos||T.wordType?{grade:T.grade,syllables:T.syllables,pos:T.pos,wordType:T.wordType}:void 0})]},q)),k&&L(he,ve.words.map(T=>T.label).join(" / ")),b&&t.jsx("div",{className:"word-table-block__card-close",children:t.jsx(ae,{size:_,type:"dot",icon:"x",variant:"transparent-lightGray",useBorder:!1,showTooltipInfo:ve.words.length>1?E("wordPrint.removePair","\uB300\uB9BD\uC30D \uBE7C\uAE30"):E("wordPrint.removeWord","\uB2E8\uC5B4 \uBE7C\uAE30"),ariaLabel:ve.words.length>1?E("wordPrint.removePair","\uB300\uB9BD\uC30D \uBE7C\uAE30"):E("wordPrint.removeWord","\uB2E8\uC5B4 \uBE7C\uAE30"),onClick:()=>b(ve.id)})})]},ve.id)),Array.from({length:Math.max(0,Z*I-(d?.length??0))}).map((ve,he)=>{const T=(d?.length??0)+he<H;return t.jsx("div",{className:"word-table-block__card word-table-block__card--filler",children:y&&C&&T&&t.jsx("div",{style:pe,children:t.jsx(ae,{size:_,type:"bar",icon:"plus",label:E("wordTable.addWord","\uCD94\uAC00\uD558\uAE30"),onClick:()=>C((d?.length??0)+he)})})},`filler-${he}`)})]}),v&&A!=="none"&&t.jsx("span",{className:`word-table__page-number body-3 word-table__page-number--${A}`,children:E("wordTable.filter.pageIndicator",{current:v.current,total:v.total})})]})})});return e!=null||n||a?t.jsx(Mn,{type:"page",icon:n,title:e,disc:a,className:ye("word-table-block",r),children:Ce}):Ce}function rn({title:e,headerAction:n,collapsible:a=!1,defaultCollapsed:r=!1,collapsed:o,onCollapsedChange:s,footer:l,sections:c,selected:u={},onSelect:d,align:p,sectionAlign:h,className:m}){const C=(p??(h==="vertical"?"newline":"inline"))==="inline",{t:f}=de.useTranslation(),[b,g]=i.useState(r),y=o??b,w=()=>{const v=!y;g(v),s?.(v)},_=e||n||a;return t.jsxs("div",{className:ye("filter-panel",a?"filter-panel--collapsible":"",y?"filter-panel--collapsed":"",m),children:[_&&t.jsxs("div",{className:"filter-panel__header",children:[t.jsxs("div",{className:"filter-panel__title-row",children:[a&&t.jsx(ae,{size:40,type:"dot",variant:"transparent-gray",useBorder:!1,icon:y?"chevron-down":"chevron-up",ariaLabel:y?f("common.expand","\uD3BC\uCE58\uAE30"):f("common.collapse","\uC811\uAE30"),"aria-expanded":!y,onClick:w}),e&&t.jsx("span",{className:"filter-panel__title h4",children:e})]}),t.jsx("div",{className:"filter-panel__header-actions",children:!y&&n})]}),!y&&t.jsxs(t.Fragment,{children:[t.jsx("div",{className:ye("filter-panel__sections",C?"filter-panel__sections--row":""),children:c.map(v=>{const A=u[v.label],x=A===void 0||(Array.isArray(A)?A.length===0:!1),k=(v.items??[]).filter(N=>N!=null);v.allOption&&k.some(N=>(typeof N=="string"?N:N.value)===Kt)&&Fn(`filter-panel-all-value:${v.label}`,`[FilterPanel] '${v.label}' \uC808\uC5D0 allOption \uACFC \uAC12 '${Kt}' \uC778 \uBCF4\uAE30\uAC00 \uD568\uAED8 \uC788\uB2E4 \u2014 \uB450 \uC120\uD0DD\uC774 \uAD6C\uBCC4\uB418\uC9C0 \uC54A\uB294\uB2E4. \uBCF4\uAE30 \uAC12\uC744 \uBC14\uAFD4\uB77C.`);const M=N=>{const D=typeof N=="string"?N:N.value,P=typeof N!="string"&&!!N.disabled,L=typeof N!="string"?N.labels:void 0,E=typeof N!="string"?N.displayLabel:void 0,R=typeof N!="string"?N.tooltip:void 0,S=typeof N!="string"?N.descriptionTooltip:void 0,V=typeof N!="string"?N.shape:void 0,Y=Array.isArray(A)?A.includes(D):A===D;return t.jsx(ae,{size:"keyboard",label:L??E??D,type:v.itemType??(L?"bar":D.length===1?"dot":void 0),selected:Y,disabled:P,shape:V,showTooltipInfo:!!R,tooltipInfoText:R,tooltipDescription:S,onClick:()=>d?.(D,v.label)},D)};return t.jsxs(i.Fragment,{children:[v.groupLabel&&t.jsxs("div",{className:"filter-panel__group-label-row",children:[t.jsx("div",{className:"filter-panel__group-label body-2",children:v.groupLabel}),v.groupAction]}),t.jsxs("div",{className:ye("filter-panel__section",v.layout==="row"?"filter-panel__section--row":"",v.block?"filter-panel__section--block":""),children:[t.jsxs("div",{className:"filter-panel__section-label-row",children:[t.jsx("span",{className:"filter-panel__section-label body-3",children:v.displayLabel??v.label}),v.labelAction??(v.labelInfo?t.jsx(ea,{...v.labelInfo}):null)]}),v.type==="note"?t.jsx("div",{className:"filter-panel__note body-3",children:v.content}):v.type==="input"?t.jsx(kn,{className:"filter-panel__textfield",placeholder:v.placeholder,ariaLabel:v.displayLabel??v.label,value:u[v.label]??"",onChange:N=>d?.(N,v.label),error:v.error}):!v.multiple&&v.display==="segmented"?t.jsx(An,{ariaLabel:v.displayLabel??v.label,options:[...v.allOption?[{key:Kt,label:v.allLabel??f("common.all","\uC804\uCCB4")}]:[],...k.map(N=>{const D=typeof N=="string"?N:N.value,P=typeof N!="string"?N.displayLabel:void 0,L=typeof N!="string"?N.disabled:void 0;return{key:D,label:P??D,disabled:L}})],value:x&&v.allOption?Kt:u[v.label],onChange:N=>d?.(N,v.label),size:32}):!v.multiple&&v.display==="dropdown"?t.jsx(zt,{className:"filter-panel__dropdown",size:40,options:[...v.allOption?[{value:Kt,label:v.allLabel??f("common.all","\uC804\uCCB4")}]:[],...k.map(N=>{const D=typeof N=="string"?N:N.value,P=typeof N!="string"?N.displayLabel:void 0,L=typeof N!="string"?N.disabled:void 0;return{value:D,label:P??D,disabled:L}})],value:x&&v.allOption?Kt:u[v.label],onChange:N=>d?.(N,v.label)}):t.jsxs("div",{className:v.groups?"filter-panel__item-groups":"filter-panel__items",children:[v.allOption&&!v.groups&&t.jsx(ae,{size:"keyboard",label:v.allLabel??f("common.all","\uC804\uCCB4"),selected:x,disabled:v.allOptionDisabled,onClick:()=>d?.(Kt,v.label)}),v.groups?v.groups.map((N,D)=>t.jsxs("div",{className:"filter-panel__item-group",children:[D===0&&v.allOption&&t.jsx(ae,{size:"keyboard",label:v.allLabel??f("common.all","\uC804\uCCB4"),selected:x,disabled:v.allOptionDisabled,onClick:()=>d?.(Kt,v.label)}),N.filter(P=>P!=null).map(M)]},D)):k.map(M)]})]})]},v.label)})}),l!=null&&l!==!1&&t.jsx("div",{className:"filter-panel__footer body-3",children:l})]})]})}const M4=[1,2,3,4,5,6,7,8,9,10,11,12],L4=[8,4,2,1];function tl(e,n){return{label:e("wordTable.filter.composition","\uAD6C\uC131"),items:[{value:"\uC774\uBBF8\uC9C0",disabled:!n.hasImage,displayLabel:e("wordTable.filter.image","\uC774\uBBF8\uC9C0")},{value:"\uB2E8\uC5B4",displayLabel:e("wordTable.filter.word","\uB2E8\uC5B4")},{value:"\uD45C\uC900 \uBC1C\uC74C",displayLabel:e("wordTable.filter.standardPron","\uD45C\uC900 \uBC1C\uC74C")},{value:"\uAD6C\uC5B4\uCCB4 \uBC1C\uC74C",disabled:!n.hasColloquial,displayLabel:e("wordTable.filter.colloquialPron","\uAD6C\uC5B4\uCCB4 \uBC1C\uC74C")}],multiple:!0,allOption:!0}}function nl(e){return{label:e("wordTable.filter.paperOrientation","\uC6A9\uC9C0 \uBC29\uD5A5"),items:[{value:"\uAC00\uB85C",displayLabel:e("wordTable.filter.landscape","\uAC00\uB85C")},{value:"\uC138\uB85C",displayLabel:e("wordTable.filter.portrait","\uC138\uB85C")}],display:"segmented"}}function al(e){return{label:e("wordTable.filter.border","\uC678\uACFD\uC120"),items:[{value:"\uD45C\uC2DC",displayLabel:e("wordTable.filter.show","\uD45C\uC2DC")},{value:"\uBBF8\uD45C\uC2DC",displayLabel:e("wordTable.filter.hide","\uBBF8\uD45C\uC2DC")}],display:"segmented"}}function rl(e){return{label:e("wordTable.filter.cutLine","\uC808\uCDE8\uC120"),items:[{value:"\uD45C\uC2DC",displayLabel:e("wordTable.filter.show","\uD45C\uC2DC")},{value:"\uC810\uC120",displayLabel:e("wordTable.filter.dotted","\uC810\uC120")},{value:"\uCF54\uB108",displayLabel:e("wordTable.filter.corner","\uCF54\uB108")},{value:"\uBBF8\uD45C\uC2DC",displayLabel:e("wordTable.filter.hide","\uBBF8\uD45C\uC2DC")}],display:"segmented"}}function ol(e){return{label:e("wordPrint.divLine","\uB300\uB9BD\uC120"),items:[{value:"\uD45C\uC2DC",displayLabel:e("wordTable.filter.show","\uD45C\uC2DC")},{value:"\uBBF8\uD45C\uC2DC",displayLabel:e("wordTable.filter.hide","\uBBF8\uD45C\uC2DC")}],display:"segmented"}}function sl(e,n){return{label:e(n.hasPairs?"wordTable.filter.itemsPerPagePair":"wordTable.filter.itemsPerPageWord"),items:[n.itemCount,...L4.filter(a=>a<n.itemCount)].map(a=>({value:`${a}\uAC1C`,displayLabel:e("wordTable.filter.itemsPerPageOption",{count:a})})),display:"segmented"}}function il(e){return{label:e("wordTable.filter.pageNumber","\uD398\uC774\uC9C0 \uBC88\uD638"),items:[{value:"\uC67C\uCABD",displayLabel:e("wordTable.filter.pageNumberLeft","\uC67C\uCABD")},{value:"\uC911\uC559",displayLabel:e("wordTable.filter.pageNumberCenter","\uC911\uC559")},{value:"\uC624\uB978\uCABD",displayLabel:e("wordTable.filter.pageNumberRight","\uC624\uB978\uCABD")},{value:"\uBBF8\uD45C\uC2DC",displayLabel:e("wordTable.filter.hide","\uBBF8\uD45C\uC2DC")}],display:"segmented"}}const ll={left:"\uC67C\uCABD",center:"\uC911\uC559",right:"\uC624\uB978\uCABD",none:"\uBBF8\uD45C\uC2DC"};function cl(e){return e==="\uC67C\uCABD"?"left":e==="\uC911\uC559"?"center":e==="\uC624\uB978\uCABD"?"right":"none"}function ul(e,n){return{[e("wordTable.filter.composition","\uAD6C\uC131")]:n.contentTypes,[e("wordTable.filter.paperOrientation","\uC6A9\uC9C0 \uBC29\uD5A5")]:n.orientation==="landscape"?"\uAC00\uB85C":"\uC138\uB85C",[e("wordTable.filter.border","\uC678\uACFD\uC120")]:n.showOutline?"\uD45C\uC2DC":"\uBBF8\uD45C\uC2DC",[e("wordTable.filter.cutLine","\uC808\uCDE8\uC120")]:n.cutLine,[e("wordPrint.divLine","\uB300\uB9BD\uC120")]:n.showDivLine?"\uD45C\uC2DC":"\uBBF8\uD45C\uC2DC"}}function dl(e,n,a,r){return a===e("wordTable.filter.composition","\uAD6C\uC131")?n===Kt?(r.setContentTypes(()=>[]),!0):(r.setContentTypes(o=>o.includes(n)?o.filter(s=>s!==n):[...o,n]),!0):a===e("wordTable.filter.paperOrientation","\uC6A9\uC9C0 \uBC29\uD5A5")?(r.setOrientation(n==="\uAC00\uB85C"?"landscape":"portrait"),!0):a===e("wordTable.filter.border","\uC678\uACFD\uC120")?(r.setShowOutline(n==="\uD45C\uC2DC"),!0):a===e("wordTable.filter.cutLine","\uC808\uCDE8\uC120")?(r.setCutLine(n),!0):a===e("wordPrint.divLine","\uB300\uB9BD\uC120")?(r.setShowDivLine(n==="\uD45C\uC2DC"),!0):!1}function $4(e){return"sections"in e}function Nr(e){const{t:n}=de.useTranslation(),{title:a,className:r}=e;if($4(e))return t.jsx(rn,{className:r,title:a??n("wordTable.filterTitle","\uD45C \uC124\uC815"),sections:e.sections,selected:e.selected,onSelect:e.onSelect,align:"inline"});const{hasImage:o,hasColloquial:s,contentTypes:l,orientation:c,showOutline:u,cutLine:d,showDivLine:p,setters:h,showCutLine:m=!1,showDivLine2:C=!1,middleSections:f=[],extraSelected:b={},onExtraSelect:g}=e,y=[tl(n,{hasImage:o,hasColloquial:s}),nl(n),...f,al(n),...m?[rl(n)]:[],...C?[ol(n)]:[]],w={...ul(n,{contentTypes:l,orientation:c,showOutline:u,cutLine:d,showDivLine:p}),...b},_=(v,A)=>{dl(n,v,A,h)||g?.(v,A)};return t.jsx(rn,{className:r,title:a??n("wordTable.filterTitle","\uD45C \uC124\uC815"),sections:y,selected:w,onSelect:_,sectionAlign:"horizontal"})}function pl(e){return e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">")}function Br(e){return e.replace(/[\\/:*?"<>|]/g,"_").trim()}function R4(e,n,a,r="",o=""){if(e.length===0)return;const s=r?Br(r):"";if(s){const u=document.title;document.title=s;const d=()=>{document.title=u,window.removeEventListener("afterprint",d)};window.addEventListener("afterprint",d)}const l=document.createElement("iframe");l.style.cssText="position:fixed;left:-10000px;top:0;width:1200px;height:900px;border:0;",document.body.appendChild(l);const c=l.contentDocument;if(!c){l.remove();return}c.open(),c.write(Sr(e,n,a,!0,s,o)),c.close(),l.contentWindow?.addEventListener("afterprint",()=>setTimeout(()=>l.remove(),0))}function Sr(e,n,a,r=!1,o="",s=""){o=o?Br(o):"";const l=Array.from(document.styleSheets).flatMap(p=>{try{return Array.from(p.cssRules).map(h=>h.cssText)}catch{return[]}}).join(`
|
|
839
|
-
`),c=document.documentElement.getAttribute("data-theme")||"light",u=s?`<div class="paper-head">${
|
|
836
|
+
`)}const Tg=new Set(["pnpm","npm","yarn","node","git","curl","docker","cat","ls","cd","rm","mv","cp","echo","export"]),Mg=/^(?:const|let|var|function|return|if|else|for|while|switch|case|break|import|from|export|class|new|try|catch|finally|throw|await|async|null|true|false|this|typeof|instanceof)\b/;function Lg(e,n){let a=e;const r=[],o=/sh|bash/.test(n.toLowerCase()),s=(l,c)=>r.push({type:l,content:c});for(;a.length>0;){const l=a.match(/^\s+/);if(l){s("whitespace",l[0]),a=a.slice(l[0].length);continue}if(!o&&a.startsWith("//")){const C=a.indexOf(`
|
|
837
|
+
`),b=C===-1?a:a.slice(0,C);s("comment",b),a=a.slice(b.length);continue}if(o&&a.startsWith("#")){const C=a.indexOf(`
|
|
838
|
+
`),b=C===-1?a:a.slice(0,C);s("comment",b),a=a.slice(b.length);continue}const c=a.match(/^\/\*[\s\S]*?\*\//);if(c){s("comment",c[0]),a=a.slice(c[0].length);continue}const u=a.match(/^(`(?:\\.|[^`])*`|"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*')/);if(u){s("string",u[0]),a=a.slice(u[0].length);continue}const d=a.match(/^\d+(?:\.\d+)?/);if(d){s("number",d[0]),a=a.slice(d[0].length);continue}const p=a.match(Mg);if(p){s("keyword",p[0]),a=a.slice(p[0].length);continue}const h=a.match(/^[A-Za-z_$][A-Za-z0-9_$-]*/);if(h){const C=h[0];s(o&&Tg.has(C)?"command":"identifier",C),a=a.slice(C.length);continue}const m=a.match(/^[=+\-*/%<>!&|^~?:]+/);if(m){s("operator",m[0]),a=a.slice(m[0].length);continue}const f=a.match(/^[()[\]{};.,]/);if(f){s("punctuation",f[0]),a=a.slice(1);continue}s("other",a[0]),a=a.slice(1)}return r}function $g({children:e,language:n="bash",title:a="",showCopy:r=!0,size:o="default",className:s=""}){const{t:l}=de.useTranslation(),[c,u]=i.useState(!1),d=Eg(wi(e)),p=i.useRef(null);i.useEffect(()=>()=>{p.current&&clearTimeout(p.current)},[]);const h=async()=>{try{if(!await n0(d))return;u(!0),p.current&&clearTimeout(p.current),p.current=setTimeout(()=>u(!1),2e3)}catch{}},m=Lg(d,n),f=o==="small"?"caption-1":"body-3";return t.jsxs("div",{className:ye("code-box",o==="small"?"code-box--small":"",s),children:[(a||r)&&t.jsxs("div",{className:"code-box__header",role:"toolbar","aria-label":l("common.codeBlock","\uCF54\uB4DC \uBE14\uB85D"),children:[t.jsx("div",{className:"code-box__title caption-1",children:a}),r&&t.jsx(ae,{className:"code-box__copy",size:40,type:"dot",variant:"transparent-gray",useBorder:!1,icon:c?"check":"copy",onClick:h,ariaLabel:c?l("common.copied","\uBCF5\uC0AC\uB428"):l("common.copyCode","\uCF54\uB4DC \uBCF5\uC0AC")})]}),t.jsx("pre",{className:"code-box__inner","data-lang":n,children:t.jsx("code",{children:m.map((C,b)=>t.jsx("span",{className:`code-token ${C.type} ${f}`,children:C.content},b))})})]})}function ta(e){const{t:n}=de.useTranslation(),{variant:a="spinner",size:r=24,progress:o=null,label:s}=e||{},l=s||n("loader.loading","Loading");if(a==="bar"){const u=Math.max(0,Math.min(100,Number(o)||0));return t.jsx("div",{className:"loader-bar",role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":u,"aria-label":l,children:t.jsx("div",{className:"loader-bar__inner",style:{width:`${u}%`}})})}const c=typeof r=="number"?`${r}px`:r;return t.jsx("div",{className:"loader-spinner",style:{width:c,height:c},role:"status","aria-label":l,children:t.jsxs("svg",{className:"loader-spinner__svg",viewBox:"0 0 50 50",width:r,height:r,children:[t.jsx("circle",{className:"loader-spinner__bg",cx:"25",cy:"25",r:"20",fill:"none",strokeWidth:"4"}),t.jsx("circle",{className:"loader-spinner__fg",cx:"25",cy:"25",r:"20",fill:"none",strokeWidth:"4",strokeLinecap:"round"})]})})}function ki({checked:e,onChange:n,disabled:a=!1,label:r,ariaLabel:o,labelPosition:s="right",className:l="",id:c}){const u=r&&t.jsx("span",{className:"toggle__label body-3",children:r});return t.jsxs("label",{className:`toggle${a?" toggle--disabled":""} ${l}`.trim(),children:[s==="left"&&u,t.jsx("input",{id:c,type:"checkbox",role:"switch",checked:e,disabled:a,onChange:d=>n?.(d.target.checked),"aria-label":!r&&o?o:void 0}),t.jsx("span",{className:"toggle__slider"}),s==="right"&&u]})}function Ai({checked:e=!1,onChange:n,disabled:a,indeterminate:r,label:o,size:s="medium",className:l,title:c,ariaLabel:u}){const d=i.useRef(null),p=i.useId();return i.useEffect(()=>{d.current&&(d.current.indeterminate=!!r)},[r]),t.jsxs("label",{className:ye("checkbox",s==="small"&&"checkbox--small",s==="large"&&"checkbox--large",a&&"checkbox--disabled",l),htmlFor:p,title:c,children:[t.jsx("input",{ref:d,id:p,type:"checkbox",className:"checkbox__input",checked:e,onChange:h=>n?.(h.target.checked),disabled:a,"aria-label":!o&&u?u:void 0}),t.jsx("span",{className:"checkbox__box"}),o&&t.jsx("span",{className:"checkbox__label body-3",children:o})]})}function Rg({count:e,actions:n,onClear:a,clearLabel:r,visible:o,content:s,max:l}){const{t:c}=de.useTranslation(),u=o!==void 0?o:e>0,d=r??c("bulkBar.clearSelection","\uC120\uD0DD \uD574\uC81C"),p=i.useRef(null),[h,m]=i.useState(!1);return i.useEffect(()=>{const f=p.current;if(!f)return;const C=()=>{const g=f.firstElementChild??f,y=Array.from(g.children);if(y.length<2){m(!1);return}const w=y[0].offsetTop;m(y.some(_=>_.offsetTop!==w))};if(C(),typeof ResizeObserver>"u")return;const b=new ResizeObserver(C);return b.observe(f),()=>b.disconnect()},[s,e]),t.jsxs("div",{className:`bulk-bar ${u?"bulk-bar--visible":""}`,inert:!u||void 0,"aria-hidden":u?void 0:!0,children:[t.jsx("span",{ref:p,className:"bulk-bar__count body-2",children:s??t.jsx("b",{children:c("common.selectedCount",{count:e})})}),l!==void 0&&t.jsx(ot,{size:"small",fill:"soft",variant:"main",label:`${e} / ${l}`}),t.jsxs("div",{className:`bulk-bar__actions${h?" bulk-bar__actions--stacked":""}`,children:[t.jsx(ae,{size:40,label:d,onClick:a}),n.map((f,C)=>t.jsx(ae,{size:40,variant:f.variant??"default",icon:f.icon,label:f.label,onClick:f.onClick},C))]})]})}function Ni(e){const n=()=>{if(e){const[h,m]=e.split("-");return{y:+h,m:+m-1}}const p=new Date;return{y:p.getFullYear(),m:p.getMonth()}},[a,r]=i.useState(()=>n().y),[o,s]=i.useState(()=>n().m),l=i.useRef(e);i.useEffect(()=>{if(e===l.current)return;l.current=e;const p=n();r(p.y),s(p.m)},[e]);const c=i.useCallback(()=>{o===0?(r(p=>p-1),s(11)):s(p=>p-1)},[o]),u=i.useCallback(()=>{o===11?(r(p=>p+1),s(0)):s(p=>p+1)},[o]),d=i.useCallback((p,h)=>{r(p),s(h)},[]);return{viewY:a,viewM:o,prevMonth:c,nextMonth:u,setViewYM:d}}function Bi(e,n){return new Date(e,n+1,0).getDate()}function Pg(e,n){return new Date(e,n,1).getDay()}function En(e,n,a){return`${e}-${String(n+1).padStart(2,"0")}-${String(a).padStart(2,"0")}`}function Ig(e){if(!e)return"";const[n,a,r]=e.split("-");return`${n}. ${a}. ${r}.`}function Fg(e,n,a,r){const o=a?+a.split("-")[0]:e-10,s=r?+r.split("-")[0]:e+10,l=[];for(let c=o;c<=s;c++)for(let u=0;u<12;u++){const d=`${c}-${String(u+1).padStart(2,"0")}`;a&&d<a.slice(0,7)||r&&d>r.slice(0,7)||l.push({value:d,label:n(c,u+1)})}return l}function Og({value:e,onChange:n,size:a=48,min:r,max:o,disabled:s,placeholder:l,className:c}){const{t:u}=de.useTranslation(),d=l??u("datePicker.chooseDate","\uB0A0\uC9DC \uC120\uD0DD"),p=i.useMemo(()=>u("calendar.dow",{returnObjects:!0}),[u]),h=new Date,{viewY:m,viewM:f,prevMonth:C,nextMonth:b,setViewYM:g}=Ni(e),y=i.useCallback(S=>{const $=window.innerHeight-S.bottom,F=300,V=$<F&&S.top>F;return{position:"fixed",left:S.left,width:S.width,minWidth:260,...V?{bottom:window.innerHeight-S.top+6}:{top:S.bottom+6},zIndex:9999}},[]),{open:w,setOpen:_,toggle:v,style:A,triggerRef:x,menuRef:k}=Xn({computeStyle:y,onScroll:"reposition",onResize:"reposition",ignoreOutsideClickSelector:".dropdown__menu"});i.useEffect(()=>{if(!w)return;const S=k.current;return(S?.querySelector(".date-picker__day--selected")??S?.querySelector(".date-picker__day--today")??S?.querySelector(Zn)??S)?.focus?.(),()=>{const $=document.activeElement;(!$||$===document.body)&&x.current?.focus?.()}},[w,k,x]);const[T,N]=i.useState(1),D=i.useRef(null),P=i.useRef(null);i.useEffect(()=>{if(!w)return;const S=En(h.getFullYear(),h.getMonth(),h.getDate()),$=e&&e.slice(0,7)===`${m}-${String(f+1).padStart(2,"0")}`?+e.slice(8):S.slice(0,7)===`${m}-${String(f+1).padStart(2,"0")}`?+S.slice(8):1;N($)},[w]),i.useEffect(()=>{if(P.current==null)return;const S=P.current;P.current=null,D.current?.querySelector(`[data-day="${S}"]`)?.focus()}),i.useEffect(()=>{N(S=>Math.min(S,Bi(m,f)))},[m,f]);const L=i.useCallback(S=>{let $=En(S.getFullYear(),S.getMonth(),S.getDate());r&&$<r&&($=r),o&&$>o&&($=o);const[F,V,X]=$.split("-").map(Number);(F!==m||V-1!==f)&&g(F,V-1),N(X),P.current=X},[r,o,m,f,g]),j=i.useCallback(S=>{const $=new Date(m,f,T),F=X=>{$.setDate($.getDate()+X),L($)},V=X=>{$.setMonth($.getMonth()+X),L($)};switch(S.key){case"ArrowLeft":F(-1);break;case"ArrowRight":F(1);break;case"ArrowUp":F(-7);break;case"ArrowDown":F(7);break;case"Home":F(-$.getDay());break;case"End":F(6-$.getDay());break;case"PageUp":S.shiftKey?V(-12):V(-1);break;case"PageDown":S.shiftKey?V(12):V(1);break;default:return}S.preventDefault()},[m,f,T,L]),R=i.useCallback(S=>{n(En(m,f,S)),_(!1)},[m,f,n,_]),M=S=>{const $=En(m,f,S);return!!(r&&$<r||o&&$>o)},z=[];for(let S=0;S<Pg(m,f);S++)z.push(null);for(let S=1;S<=Bi(m,f);S++)z.push(S);const H=a===64?20:a===40?16:18,Z=Fg(m,(S,$)=>u("calendar.yearMonth",{year:S,month:$,defaultValue:"{{year}}\uB144 {{month}}\uC6D4"}),r,o),J=`${m}-${String(f+1).padStart(2,"0")}`,O=w?It.createPortal(t.jsxs("div",{ref:k,className:"date-picker__dropdown",style:A,role:"dialog","aria-label":u("datePicker.chooseDate","\uB0A0\uC9DC \uC120\uD0DD"),tabIndex:-1,children:[t.jsxs("div",{className:"date-picker__nav",children:[t.jsx("button",{type:"button",className:"date-picker__nav-btn",onClick:C,"aria-label":u("calendar.prevMonth","\uC774\uC804 \uB2EC"),children:t.jsx(co,{size:16,strokeWidth:2})}),t.jsx(zt,{className:"date-picker__nav-dropdown",ariaLabel:u("datePicker.selectYearMonth","\uC5F0\uC6D4 \uC120\uD0DD"),options:Z,value:J,onChange:S=>{const[$,F]=S.split("-");g(+$,+F-1)},block:!0,size:40}),t.jsx("button",{type:"button",className:"date-picker__nav-btn",onClick:b,"aria-label":u("calendar.nextMonth","\uB2E4\uC74C \uB2EC"),children:t.jsx(uo,{size:16,strokeWidth:2})})]}),t.jsxs("div",{className:"date-picker__grid",ref:D,onKeyDown:j,children:[p.map(S=>t.jsx("div",{className:"date-picker__dow caption-1",children:S},S)),z.map((S,$)=>{if(S===null)return t.jsx("div",{},`e${$}`);const F=En(m,f,S),V=F===e,X=F===En(h.getFullYear(),h.getMonth(),h.getDate()),I=M(S),q=$%7;return t.jsx("button",{type:"button",disabled:I,"data-day":S,tabIndex:S===T?0:-1,"aria-current":X?"date":void 0,onClick:()=>!I&&R(S),className:ye("date-picker__day caption-1",V&&"date-picker__day--selected",X&&!V&&"date-picker__day--today",I&&"date-picker__day--disabled",q===0&&"date-picker__day--sun",q===6&&"date-picker__day--sat"),children:S},S)})]})]}),document.body):null;return t.jsxs("div",{className:ye("date-picker",`date-picker--s${a}`,w&&"date-picker--open",c),children:[t.jsxs("button",{ref:x,type:"button",className:"date-picker__trigger body-2",onClick:()=>!s&&v(),disabled:s,"aria-haspopup":"true","aria-expanded":w,children:[t.jsx("span",{className:e?"date-picker__value":"date-picker__placeholder",children:e?Ig(e):d}),t.jsx(vo,{size:H,className:"date-picker__icon",strokeWidth:1.5})]}),O]})}function mr({items:e,className:n}){return t.jsx("div",{className:n?`manager-bar-chart-legend ${n}`:"manager-bar-chart-legend",children:e.map((a,r)=>t.jsxs("span",{className:"manager-bar-chart-legend-item",children:[t.jsx("span",{className:"manager-bar-chart-legend-dot",style:{background:a.color}}),a.label]},r))})}function ba({label:e,children:n}){return e?t.jsxs("div",{className:"barchart-total barchart-total--stacked",children:[t.jsx("span",{className:"barchart-total__label body-3",children:e}),t.jsx("span",{className:"barchart-total__value",children:n})]}):t.jsx("div",{className:"barchart-total",children:n})}function Cr({title:e,titleClassName:n="h3",headRight:a,subRow:r,className:o,children:s}){return t.jsxs("section",{className:o?`manager-section ${o}`:"manager-section",children:[t.jsxs("div",{className:"manager-section__head",children:[t.jsx("div",{className:n,children:e}),a]}),r&&t.jsx("div",{className:"barchart-sub-row",children:r}),s]})}function pn(e,n){const a=new Date(e,n,1).getDay();return 1+(8-(a===0?7:a))%7}function Hg(){const e=new Date;let n=e.getFullYear(),a=e.getMonth(),r=e.getDate();if(r<pn(n,a)){const l=new Date(n,a,0);n=l.getFullYear(),a=l.getMonth(),r=l.getDate()}const o=Math.floor((r-pn(n,a))/7),s=`${n}\uB144 ${a+1}\uC6D4`;return{monthKey:s,value:`${s}#${o}`}}function Vg(e){const n=new Date,a=`${n.getFullYear()}\uB144 ${n.getMonth()+1}\uC6D4`,r=(u,d)=>`${u}\uB144 ${d+1}\uC6D4`,o=new Map;o.set(a,[]);for(const u of e){if(isNaN(u.date.getTime()))continue;const d=r(u.date.getFullYear(),u.date.getMonth());o.has(d)||o.set(d,[]),o.get(d).push(u)}const s=new Map;for(const[u,d]of o){const p=u.match(/^(\d+)년 (\d+)월$/);if(!p)continue;const h=Number(p[1]),m=Number(p[2])-1,f=new Date(h,m+1,0).getDate(),C=d.reduce((w,_)=>Math.max(w,_.parts?.length??0),0),b=new Array(f+1).fill(0),g=new Array(f+1).fill(0),y=Array.from({length:f+1},()=>new Array(C).fill(0));for(const w of d){const _=w.date.getDate();if(b[_]+=w.a,g[_]+=w.b,w.parts)for(let v=0;v<C;v++)y[_][v]+=w.parts[v]??0}s.set(u,{year:h,month:m,daysInMonth:f,partsLen:C,dayA:b,dayB:g,dayParts:y})}const l=(u,d,p)=>new Date(u,d,p).getTime()>new Date(n.getFullYear(),n.getMonth(),n.getDate()).getTime(),c={};for(const[u,d]of s){const{year:p,month:h,daysInMonth:m,dayA:f,dayB:C,dayParts:b}=d,g=p===n.getFullYear()&&h===n.getMonth(),y=n.getDate(),w=s.get(r(h===11?p+1:p,(h+1)%12)),_=d.partsLen,v=[];for(let x=1;x<=m;x++){const k=g&&x>y;v.push({label:String(x),a:k&&f[x]===0&&C[x]===0?-1:f[x],b:C[x],..._?{parts:b[x]}:{}})}const A=[];for(let x=pn(p,h);x<=m;x+=7){const k=Math.max(0,x+6-m),T=k&&w?Math.max(_,w.partsLen):_;let N=0,D=0;const P=new Array(T).fill(0);for(let j=x;j<=Math.min(x+6,m);j++){N+=f[j],D+=C[j];for(let R=0;R<_;R++)P[R]+=b[j][R]}if(k&&w)for(let j=1;j<=k&&!l(w.year,w.month,j);j++){N+=w.dayA[j],D+=w.dayB[j];for(let R=0;R<w.partsLen;R++)P[R]+=w.dayParts[j][R]}const L=k?`${(h+1)%12+1}/${k}`:`${x+6}`;A.push({label:`${A.length+1}\uC8FC`,sublabel:`[${x}\uC77C~${L}\uC77C]`,a:N,b:D,...T?{parts:P}:{}})}c[u]={weekly:A,daily:v}}return c}function zg(){const e=new Date,n=e.getFullYear(),a=e.getMonth()+1,r=[];for(let o=2024;o<=n;o++){const s=o===n?a:12;for(let l=1;l<=s;l++){const c=`${o}\uB144 ${l}\uC6D4`;r.push({value:c,label:c,year:o,month:l})}}return r.reverse()}const Wg=zg(),Di=["\uCCAB\uC9F8","\uB458\uC9F8","\uC14B\uC9F8","\uB137\uC9F8","\uB2E4\uC12F\uC9F8","\uC5EC\uC12F\uC9F8","\uC77C\uACF1\uC9F8"];function Si(e){const{t:n,i18n:a}=de.useTranslation(),[r,o]=i.useState("week"),s=i.useMemo(()=>Wg.filter(N=>N.value in e),[e]),l=i.useMemo(()=>{const N=[];for(const D of s){const P=new Date(D.year,D.month,0).getDate(),L=pn(D.year,D.month-1),j=Math.ceil((P-L+1)/7);for(let R=j-1;R>=0;R--)N.push({value:`${D.value}#${R}`,monthKey:D.value,year:D.year,month:D.month,week:R})}return N},[s]),c=i.useCallback(N=>{const D=n("calendar.yearMonth",{year:N.year,month:N.month});return a.language?.startsWith("ko")?`${D} ${Di[N.week]??`${N.week+1}`}\uC8FC`:`${D} Week ${N.week+1}`},[n,a.language]),u=i.useMemo(()=>s.map(N=>({value:N.value,label:n("calendar.yearMonth",{year:N.year,month:N.month})})),[n,s]),d=i.useMemo(()=>l.map(N=>({value:N.value,label:c(N)})),[l,c]),p=i.useMemo(()=>Hg(),[]),h=i.useMemo(()=>s.find(N=>N.value===p.monthKey)?.value??s[0]?.value??"",[s,p]),m=i.useMemo(()=>l.find(N=>N.value===p.value)?.value??l[0]?.value??"",[l,p]),[f,C]=i.useState(""),[b,g]=i.useState("");i.useEffect(()=>{s.find(N=>N.value===f)||C(h)},[s,f,h]),i.useEffect(()=>{l.find(N=>N.value===b)||g(m)},[l,b,m]);const y=r==="month"?u:d,w=r==="month"?f:b,_=r==="month"?C:g,v=i.useMemo(()=>{const N=n("calendar.dow",{returnObjects:!0});return Array.isArray(N)?N:["\uC77C","\uC6D4","\uD654","\uC218","\uBAA9","\uAE08","\uD1A0"]},[n]),A=y.findIndex(N=>N.value===w),x=i.useCallback(()=>{const N=y.findIndex(D=>D.value===w);N<y.length-1&&_(y[N+1].value)},[y,w,_]),k=i.useCallback(()=>{const N=y.findIndex(D=>D.value===w);N>0&&_(y[N-1].value)},[y,w,_]),T=i.useMemo(()=>[{key:"week",label:n("manager.chart.periodWeek","\uC8FC")},{key:"month",label:n("manager.chart.periodMonth","\uC6D4")}],[n]);return{period:r,setPeriod:o,range:w,setRange:_,activeOptions:y,activeIdx:A,handlePrev:x,handleNext:k,periodOptions:T,monthRange:f,weekRange:b,weekRanges:l,DOW:v}}function qg({data:e,colorA:n,colorB:a,labelA:r,labelB:o,barWidth:s=10,height:l=140,maxOverride:c,tightMax:u,seriesColors:d,seriesLabels:p,rateLabels:h}){const m=!a,f=!!(d&&d.length>0),C=i.useMemo(()=>f?Math.max(0,...e.filter(k=>k.a!==-1).map(k=>(k.parts??[]).reduce((T,N)=>T+Math.max(0,N),0))):Math.max(0,...e.filter(k=>k.a!==-1).flatMap(k=>m?[k.a]:[k.a,k.b])),[e,m,f]),b=i.useMemo(()=>c??(u?C>0?C:10:Math.ceil(C/10)*10||10),[C,c,u]),g=l,y=f||m?1:2,w={"--bar-width":`${i.useMemo(()=>{const k=Math.max(1,e.length);return Math.max(8,Math.min(s,Math.round(120/(k*y)+6)))},[e.length,y,s])}px`},_=i.useMemo(()=>{const k=Math.round(b/2);return k!==b?[b,k,0]:[b,0]},[b]),[v,A]=i.useState(null),x=i.useCallback(()=>A(null),[]);return t.jsxs("div",{className:"manager-bar-chart-wrap",children:[t.jsx("div",{className:"manager-bar-chart-inner",children:t.jsx("div",{className:"manager-bar-chart-scroll",children:t.jsxs("div",{className:"manager-bar-chart-area",children:[t.jsxs("div",{className:"manager-bar-chart-plot",style:{height:g},children:[_.slice(0,-1).map((k,T)=>t.jsx("div",{className:"manager-bar-chart-gridline",style:{top:T*(g/(_.length-1))},children:t.jsx("span",{className:"manager-bar-chart-gridline__label caption-1",children:k})},T)),e.map((k,T)=>{const N=k.a===-1,D=N?0:k.a/b*g,P=N?0:k.b/b*g,L=k.parts??[];return t.jsx("div",{className:"manager-bar-chart-col",style:{cursor:N?"default":"pointer"},onMouseEnter:N?void 0:j=>{const R=j.currentTarget.getBoundingClientRect(),M=[k.label,k.sublabel].filter(Boolean).join(" ");let z;if(f){const H=(p??[]).map((J,O)=>({text:`${J}: ${L[O]??0}`,color:(d??[])[O]})),Z=H.filter((J,O)=>(L[O]??0)>0);z=Z.length?Z:H}else h&&!m?z=[{text:`${r} ${k.a}%`,color:n},{text:`${o} ${k.b}%`,color:a}]:h&&k.rawB!==void 0?z=[{text:`${h.total} ${k.rawB}`},{text:`${h.done} ${k.rawA??0}`,color:n}]:m?z=[{text:`${r}: ${k.a}`,color:n}]:z=[{text:`${r}: ${k.a}`,color:n},{text:`${o}: ${k.b}`,color:a}];A({rect:{left:R.left,top:R.top,right:R.right,bottom:R.bottom,width:R.width,height:R.height},title:M,items:z})},onMouseLeave:x,children:!N&&(f?t.jsx("div",{className:"manager-bar-chart-stack",style:w,children:(()=>{const j=L.reduce((R,M,z)=>M>0?z:R,-1);return L.map((R,M)=>R>0?t.jsx("div",{className:"manager-bar-chart-stack-segment",style:{height:R/b*g,background:(d??[])[M],borderRadius:M===j?"6px 6px 0 0":void 0}},M):null)})()}):t.jsxs(t.Fragment,{children:[t.jsx("div",{className:"manager-bar-chart-bar",style:{...w,height:D,background:n}}),!m&&t.jsx("div",{className:"manager-bar-chart-bar",style:{...w,height:P,background:a}})]}))},T)})]}),t.jsx("div",{className:"manager-bar-chart-x-axis",children:e.map((k,T)=>{const N=k.a===-1;return t.jsxs("span",{className:`manager-bar-chart-x-axis__label${N?" manager-bar-chart-x-axis__label--future":""}`,children:[t.jsxs("span",{className:"caption-1 manager-bar-chart-x-axis__main",children:[k.isToday&&t.jsx("span",{className:"manager-bar-chart-x-axis__today-dot",style:{background:n}}),k.label]}),k.sublabel&&t.jsx("span",{className:"caption-1",children:k.sublabel})]},T)})})]})})}),v&&t.jsx(_n,{anchorRect:v.rect,title:v.title,items:v.items,showIndex:!1,closeOnOutsideClick:!1})]})}function ji({control:e}){const{t:n}=de.useTranslation(),{activeOptions:a,activeIdx:r,range:o,setRange:s,handlePrev:l,handleNext:c,periodOptions:u,period:d,setPeriod:p}=e,h=d==="week"?n("calendar.prevWeek","\uC774\uC804 \uC8FC"):n("calendar.prevMonth","\uC774\uC804 \uB2EC"),m=d==="week"?n("calendar.nextWeek","\uB2E4\uC74C \uC8FC"):n("calendar.nextMonth","\uB2E4\uC74C \uB2EC");return t.jsxs("div",{className:"manager-section-controls",children:[t.jsx(ae,{size:32,type:"dot",icon:"chevron-left",ariaLabel:h,showTooltipInfo:h,disabled:r===a.length-1,onClick:l}),t.jsx(zt,{value:o,onChange:s,options:a,size:40,className:"month-dropdown",ariaLabel:n("calendar.rangeSelect","\uAE30\uAC04 \uC120\uD0DD")}),t.jsx(ae,{size:32,type:"dot",icon:"chevron-right",ariaLabel:m,showTooltipInfo:m,disabled:r<=0,onClick:c}),t.jsx(An,{ariaLabel:n("calendar.periodSelect","\uAE30\uAC04 \uB2E8\uC704"),options:u,value:d,onChange:f=>p(f),size:32})]})}function Ei(e,n,a){const r=new Date(a.getFullYear(),a.getMonth(),a.getDate());return Array.from({length:7},(o,s)=>{const l=new Date(n);l.setDate(n.getDate()+s);const c=(e[`${l.getFullYear()}\uB144 ${l.getMonth()+1}\uC6D4`]?.daily??[])[l.getDate()-1],u=c?.a===-1||l>r;return{dt:l,entry:c,isFuture:u}})}function Ug(e,n,a,r){const{period:o,monthRange:s,weekRange:l,weekRanges:c,DOW:u}=n,d=r?.startsWith("ko"),p=new Date,h=p.getFullYear(),m=p.getMonth()+1,f=p.getDate();if(o==="month"){const g=e[s]??{weekly:[],daily:[]},y=s.match(/^(\d+)년 (\d+)월$/),w=y?Number(y[1]):null,_=y?Number(y[2]):null,v=w&&_?pn(w,_-1):1;return g.weekly.map((A,x)=>{const k=x+1;let T=A.label,N=!1,D=!1;if(w&&_){const P=v+x*7,L=new Date(w,_-1,P+6),j=L.getMonth()+1,R=L.getDate(),M=j===_?`${R}`:`${j}/${R}`;T=a("manager.chart.weekRange",{start:P,end:M});const z=new Date(h,m-1,f).getTime();N=z>=new Date(w,_-1,P).getTime()&&z<=L.getTime(),D=w>h||w===h&&(_>m||_===m&&P>f)}return{...A,label:T,sublabel:d?`${Di[k-1]??k}\uC8FC`:`Week ${k}`,isToday:N,a:D?-1:A.a,b:D?0:A.b}})}const C=c.find(g=>g.value===l);if(!C)return[];const b=new Date(C.year,C.month-1,pn(C.year,C.month-1)+C.week*7);return Ei(e,b,p).map(({dt:g,entry:y,isFuture:w})=>{const _=g.getMonth()+1,v=g.getDate(),A=g.getFullYear();return{label:_===C.month&&A===C.year?`${v}`:`${_}/${v}`,sublabel:u[g.getDay()]??"",a:w?-1:y&&y.a>0?y.a:0,b:w?0:y&&y.b>0?y.b:0,isToday:A===h&&_===m&&v===f,...y?.parts?{parts:w?y.parts.map(()=>0):y.parts}:{}}})}const Gg={small:{height:100,barWidth:16},medium:{height:140,barWidth:20},large:{height:180,barWidth:24}};function Kg({size:e="medium",barWidth:n,titleKey:a,data:r,colorA:o,colorB:s,labelAKey:l,labelBKey:c,showTotal:u=!1,totalUnitKey:d,totalLabelKey:p,control:h,hideControls:m=!1,rate:f=!1,tightMax:C=!1,avgMode:b=!1,totalFormat:g,series:y,loading:w=!1,onDetail:_}){const{t:v,i18n:A}=de.useTranslation(),x=Gg[e],k=Si(r),T=h??k,N=i.useMemo(()=>Ug(r,T,v,A.language),[r,T,v,A.language]),D=i.useMemo(()=>{if(!f)return N;const R=T.period==="month"?T.monthRange.match(/^(\d+)년 (\d+)월$/):null,M=new Date;return N.map((z,H)=>{let Z=z.a===-1?-1:z.b>0?Math.round(z.a/z.b*100):0;if(R&&z.a!==-1){const J=Number(R[1]),O=Number(R[2])-1,S=Ei(r,new Date(J,O,pn(J,O)+H*7),M).filter($=>!$.isFuture);Z=S.length?Math.round(S.reduce(($,{entry:F})=>$+(F&&F.b>0?F.a/F.b*100:0),0)/S.length):0}return{...z,a:Z,b:z.a===-1?0:c&&z.parts&&z.parts[1]>0?Math.round(z.parts[0]/z.parts[1]*100):0,rawA:z.a===-1?-1:z.a,rawB:z.b}})},[N,f,c,T.period,T.monthRange,r]),P=i.useMemo(()=>{if(f||b){const R=(T.period==="week"?N:r[T.monthRange]?.daily??[]).filter(z=>z.a!==-1);if(R.length===0)return 0;const M=f?R.reduce((z,H)=>z+(H.b>0?H.a/H.b*100:0),0):R.reduce((z,H)=>z+(H.a>0?H.a:0),0);return Math.round(M/R.length)}return D.reduce((R,M)=>R+(M.a>0?M.a:0)+(c&&M.b>0?M.b:0),0)},[D,N,f,b,c,T.period,T.monthRange,r]),L=y&&y.length>0?y.map(R=>({color:R.color,label:R.label})):[{color:o,label:v(l)},...c?[{color:s,label:v(c)}]:[]],j=e==="small";return t.jsx(Cr,{className:j?"manager-section--compact":e==="large"?"manager-section--full":void 0,title:v(a),titleClassName:j?"h5 chart-section-title--small":void 0,headRight:j?void 0:t.jsxs(t.Fragment,{children:[!m&&t.jsx(ji,{control:T}),_&&t.jsx("span",{className:"manager-bar-chart-detail-btn",children:t.jsx(ae,{size:32,type:"dot",icon:"list",ariaLabel:v("trainingStatus.detail","\uC0C1\uC138\uBCF4\uAE30"),onClick:_})})]}),subRow:t.jsxs(t.Fragment,{children:[u?f||b||p&&g?t.jsx(ba,{label:j?void 0:`${v(T.period==="week"?"manager.chart.weeklyPrefix":"manager.chart.monthlyPrefix")} ${v(p??l)}`,children:g?(g(P).match(/(\d+|[^\d]+)/g)??[]).map((R,M)=>/\d/.test(R)?t.jsx("span",{className:"barchart-total__num h0",children:R},M):t.jsx("span",{className:"barchart-total__unit h5",children:R},M)):t.jsxs(t.Fragment,{children:[t.jsx("span",{className:"barchart-total__num h0",children:P}),d&&t.jsx("span",{className:"barchart-total__unit h5",children:v(d)})]})}):t.jsxs(ba,{children:[t.jsx("span",{className:"barchart-total__num h0",children:P}),t.jsx("span",{className:"barchart-total__unit h5",children:v(l)}),d&&t.jsx("span",{className:"barchart-total__unit h5",children:v(d)})]}):t.jsx("span",{}),t.jsx(mr,{items:L,className:"caption-1"})]}),children:w?t.jsx("div",{className:"manager-bar-chart-loading",children:t.jsx(ta,{size:32})}):t.jsx(qg,{data:D,colorA:o,colorB:c?s:void 0,labelA:v(l),labelB:c?v(c):void 0,barWidth:n??x.barWidth,height:x.height,maxOverride:f?100:void 0,tightMax:C,seriesColors:y?.map(R=>R.color),seriesLabels:y?.map(R=>R.label),rateLabels:f?{total:v("trainingStatus.today.tooltipTotal","\uC804\uCCB4"),done:v("trainingStatus.today.tooltipDone","\uC644\uB8CC")}:void 0})})}function Zg(e){if(e.period==="month"){const s=e.monthRange.match(/^(\d+)년 (\d+)월$/),l=new Date,c=s?Number(s[1]):l.getFullYear(),u=s?Number(s[2]):l.getMonth()+1;return{from:new Date(c,u-1,1,0,0,0),to:new Date(c,u,0,23,59,59)}}const n=e.weekRanges.find(s=>s.value===e.weekRange);if(!n){const s=new Date;return{from:s,to:s}}const a=pn(n.year,n.month-1),r=new Date(n.year,n.month-1,a+n.week*7,0,0,0),o=new Date(r);return o.setDate(r.getDate()+6),o.setHours(23,59,59),{from:r,to:o}}const Ti={small:{diameter:96,strokeWidth:16},medium:{diameter:120,strokeWidth:18},large:{diameter:160,strokeWidth:22}};function Mi({done:e,total:n,segments:a,color:r="var(--color-main)",size:o="medium",strokeWidth:s,label:l="%",hideCenter:c=!1,hideLabel:u=!1}){const d=typeof o=="number"?o:Ti[o].diameter,p=s??(typeof o=="number"?12:Ti[o].strokeWidth),h=d/2,m=(d-p)/2,f=2*Math.PI*m;if(a&&a.length>0){const y=a.reduce((w,_)=>{const v=w.length>0?w[w.length-1].acc:0,A=Math.max(0,Math.min(_.ratio,1-v));return w.push({color:_.color,rotate:-90+v*360,dash:f*A,acc:v+A}),w},[]);return t.jsx("div",{className:"ring-chart",style:{width:d,height:d},children:t.jsxs("svg",{width:d,height:d,viewBox:`0 0 ${d} ${d}`,"aria-hidden":"true",children:[t.jsx("circle",{cx:h,cy:h,r:m,fill:"none",stroke:"var(--color-whiteLine)",strokeWidth:p}),y.map((w,_)=>w.dash>0&&t.jsx("circle",{cx:h,cy:h,r:m,fill:"none",stroke:w.color,strokeWidth:p,strokeDasharray:`${w.dash} ${f}`,strokeLinecap:"round",transform:`rotate(${w.rotate} ${h} ${h})`},_))]})})}const C=(n??0)>0?Math.min((e??0)/n,1):0,b=f*C,g=f-b;return t.jsxs("div",{className:"ring-chart",style:{width:d,height:d},children:[t.jsxs("svg",{width:d,height:d,viewBox:`0 0 ${d} ${d}`,"aria-hidden":"true",children:[t.jsx("circle",{cx:h,cy:h,r:m,fill:"none",stroke:"var(--color-whiteLine)",strokeWidth:p}),C>0&&t.jsx("circle",{cx:h,cy:h,r:m,fill:"none",stroke:r,strokeWidth:p,strokeDasharray:`${b} ${g}`,strokeLinecap:C<.02||C>.98?"butt":"round",transform:`rotate(-90 ${h} ${h})`})]}),!c&&t.jsxs("div",{className:`ring-chart__center${u?"":` ${d<=96?"ring-chart__center--small":o==="medium"?"ring-chart__center--medium":"ring-chart__center--large"}`}`,children:[t.jsx("span",{className:`ring-chart__pct ${d<=96?"h2":"h1"}`,children:Math.round(C*100)}),!u&&t.jsx("span",{className:`ring-chart__label ${d<=96?"caption-2":"caption-1"}${d<=96||o==="medium"?" ring-chart__label--tight":""}`,children:l})]})]})}function Yg({titleKey:e,headRight:n,icon:a,showTotal:r,totalLabelKey:o,legend:s,loading:l,className:c,...u}){const{t:d}=de.useTranslation();if(!e)return t.jsx(Mi,{...u});const p=(u.total??0)>0?Math.round(Math.min((u.done??0)/u.total,1)*100):0,h=u.size==="small",m=u.size==="large",f=[c,h?"manager-section--compact":m?"manager-section--full":""].filter(Boolean).join(" ")||void 0,C=a&&t.jsx("span",{className:"chart-section-icon",children:t.jsx(Oe,{icon:a,className:"chart-section-icon-inner"})});return t.jsx(Cr,{className:f,title:d(e),titleClassName:h?"h5 chart-section-title--small":void 0,headRight:C||(h?void 0:n),subRow:(r||s)&&t.jsxs(t.Fragment,{children:[r?t.jsxs(ba,{label:!h&&o?d(o):void 0,children:[t.jsx("span",{className:"barchart-total__num h0",children:p}),t.jsx("span",{className:"barchart-total__unit h5",children:"%"})]}):t.jsx("span",{}),s&&t.jsx(mr,{items:s})]}),children:l?t.jsx("div",{className:"manager-bar-chart-loading",children:t.jsx(ta,{size:32})}):t.jsx("div",{className:"ring-chart-section-body ring-chart-section-body--offset",children:t.jsx(Mi,{...u,hideCenter:h||u.hideCenter})})})}function Xg({label:e,value:n,change:a,changeType:r,icon:o,tooltip:s,onClick:l}){const c=i.useRef(null),{anchorRect:u,openAt:d,close:p}=Ca(),h=i.useCallback(()=>{s&&c.current&&d(c.current)},[s,d]),m=r??(a===void 0?void 0:a>0?"up":a<0?"down":"neutral"),f=a===void 0?void 0:a>0?`+${a}`:`${a}`,C=i.useCallback(b=>{l&&(b.key==="Enter"||b.key===" ")&&(b.preventDefault(),l())},[l]);return t.jsxs("div",{ref:c,className:`manager-stat-card${l?" manager-stat-card--clickable":""}`,onClick:l,onKeyDown:l?C:void 0,onPointerEnter:h,onPointerLeave:p,onFocus:h,onBlur:p,role:l?"button":void 0,tabIndex:l?0:void 0,"aria-label":l?`${e} ${n}`:void 0,children:[s&&u&&t.jsx(dn,{anchorRect:{left:u.left,top:u.top+21,right:u.right,bottom:u.bottom,width:u.width,height:u.height},text:s}),t.jsxs("div",{className:"manager-stat-card__label-row",children:[t.jsx("span",{className:"manager-stat-card__label h5",children:e}),o&&t.jsx("span",{className:"manager-stat-card__icon",children:t.jsx(Oe,{icon:o,className:"manager-stat-card__icon-inner"})})]}),t.jsx("div",{className:"manager-stat-card__content",children:t.jsxs("div",{className:"manager-stat-card__left",children:[t.jsx("div",{className:"manager-stat-card__value h2",children:n}),f&&t.jsx("div",{className:`manager-stat-card__change manager-stat-card__change--${m??"neutral"} caption-1`,children:f})]})})]})}function Li({value:e,onChange:n,min:a=0,max:r=100,step:o=1,orientation:s="horizontal",size:l=24,disabled:c=!1,ariaLabel:u,length:d,className:p,label:h,formatValue:m,labelPos:f,labelAlign:C="right",showMinMax:b=!1,minLabel:g,maxLabel:y,showBgTick:w=!1,showFillTick:_=!1,tickStep:v,tickShape:A="dot"}){n&&!u&&Fn("Slider:unnamed","[ihab/Slider] \uC774\uB984\uC774 \uC5C6\uC2B5\uB2C8\uB2E4 \u2014 ariaLabel \uC744 \uC8FC\uC138\uC694. label prop \uC740 \uAC12 \uD45C\uAE30 \uBC29\uC2DD\uC774\uC9C0 \uC774\uB984\uC774 \uC544\uB2D9\uB2C8\uB2E4.");const x=Math.min(r,Math.max(a,e)),k=r>a?(x-a)/(r-a):0,T=s==="vertical",N=!n,D=F=>n?.(Number(F.target.value)),P=typeof d=="number"?`${d}px`:d,L={"--slider-ratio":String(k),"--slider-thumb":`${l}px`,...P?T?{height:P}:{width:P}:{}},j=v??o,R=(w||_)&&j>0&&r>a?Math.floor((r-a)/j+1e-6):0;if(R>0&&R<=100){const F=A!=="dash",V=le=>F?`radial-gradient(circle, ${le} 0.5px, transparent 1px)`:T?`linear-gradient(to bottom, transparent calc(50% - 2px), ${le} calc(50% - 2px), ${le} calc(50% + 2px), transparent calc(50% + 2px))`:`linear-gradient(to right, transparent calc(50% - 2px), ${le} calc(50% - 2px), ${le} calc(50% + 2px), transparent calc(50% + 2px))`,X=F?"2px":"4px",I=[],q=[],G=[];for(let le=0;le<=R;le++){const pe=le*j/(r-a);if(pe>1+1e-6)break;const fe=`${((T?1-pe:pe)*100).toFixed(4)}%`,ve=pe<=k+1e-6;if(ve?!_:!w)continue;const he=ve?"var(--slider-tick-color-on-fill, var(--color-deepWhite))":"var(--slider-tick-color, var(--color-lightGray))";I.push(V(he)),q.push(T?`${X} var(--slider-thumb)`:`var(--slider-thumb) ${X}`),G.push(T?`center ${fe}`:`${fe} center`)}I.push(T?"linear-gradient(to top, var(--slider-fill-color) var(--slider-fill), var(--color-darkWhite) var(--slider-fill))":"linear-gradient(to right, var(--slider-fill-color) var(--slider-fill), var(--color-darkWhite) var(--slider-fill))"),q.push("100% 100%"),G.push("0 0"),L.backgroundImage=I.join(", "),L.backgroundSize=q.join(", "),L.backgroundPosition=G.join(", "),L.backgroundRepeat="no-repeat"}const M=t.jsx("input",{type:"range",className:ye("slider",`slider--${s}`,N&&"slider--static",!h&&!b&&p),min:a,max:r,step:o,value:x,disabled:c,readOnly:N,tabIndex:N?-1:void 0,"aria-label":u,"aria-orientation":s,onChange:D,style:L});if(!h&&!b)return M;const z=t.jsx("span",{className:"slider-wrap__minmax caption-1",children:g??a}),H=t.jsx("span",{className:"slider-wrap__minmax caption-1",children:y??r}),Z=b?t.jsxs("div",{className:ye("slider-track-group",`slider-track-group--${s}`,!h&&p),children:[T?H:z,M,T?z:H]}):M;if(!h)return Z;const J=f??(T?"bottom":"right"),O=`${Math.round(r>a?(x-a)/(r-a)*100:0)}%`,S=m?m(x):h==="percent"?O:h==="count"?`${x} / ${r}`:String(x),$=t.jsx("span",{className:"slider-wrap__value body-3b",children:S});return t.jsxs("div",{className:ye("slider-wrap",`slider-wrap--${s}`,`slider-wrap--label-${J}`,`slider-wrap--align-${C}`,p),children:[Z,$]})}const Jg=.86,Qg=250,fr=(e,n,a,r)=>Math.round(Math.min(r,Math.max(a,e-n))),gr=(e,n,a,r)=>{const o=fr(e,n,a,r);return`${o<0?"-":"+"}${Math.abs(o)} dB`};function br({analyser:e,audioElement:n,orientation:a="horizontal",length:r,label:o,labelPos:s,labelAlign:l="right",floorDb:c=-60,refDb:u=-35,displayMin:d=-5,displayMax:p=25,className:h,ariaLabel:m}){const f=i.useRef(null),C=i.useRef(null),b=i.useRef(null),g=i.useRef(null),[y,w]=i.useState(null);i.useEffect(()=>{const x=z=>{const H=gr(z,u,d,p);b.current&&(b.current.textContent=H);const Z=f.current;Z&&(Z.setAttribute("aria-valuenow",String(fr(z,u,d,p))),Z.setAttribute("aria-valuetext",H))},k=e??Nm(n)??(y&&y.el===n?y.node:null),T=C.current;if(!k||!T){T?.style.setProperty("--meter-level","0"),x(c);let z=!1;return!e&&n&&ca(n).then(H=>{!z&&H&&w({el:n,node:H})}),()=>{z=!0}}Ga();const N=new Float32Array(k.fftSize);let D=0,P=0,L=0,j=0,R=null;const M=z=>{const H=Bm(k,N);D=H>D?H:D*Jg;const Z=D>1e-5?20*Math.log10(D):-1/0,J=Math.max(c,Z),O=J-u,S=Math.min(1,Math.max(0,(O-d)/(p-d)));if(T.style.setProperty("--meter-level",S.toFixed(3)),P+=J,L+=1,z-j>=Qg){const $=P/L;R=R==null?$:R*.6+$*.4,x(R),P=0,L=0,j=z}g.current=requestAnimationFrame(M)};return g.current=requestAnimationFrame(M),()=>{g.current!=null&&cancelAnimationFrame(g.current),g.current=null}},[e,n,y,c,u,d,p]);const _=typeof r=="number"?`${r}px`:r,v=t.jsx("div",{className:"audio-meter__track",style:_?a==="vertical"?{height:_}:{width:_}:{},children:t.jsx("div",{ref:C,className:"audio-meter__fill"})}),A=s??(a==="vertical"?"bottom":"right");return t.jsxs("div",{ref:f,className:ye("audio-meter",`audio-meter--${a}`,o&&`audio-meter--label-${A}`,o&&`audio-meter--align-${l}`,h),role:"meter","aria-label":m,"aria-valuemin":d,"aria-valuemax":p,"aria-valuenow":fr(c,u,d,p),"aria-valuetext":gr(c,u,d,p),children:[v,o&&t.jsx("span",{ref:b,className:"audio-meter__value caption-2",children:gr(c,u,d,p)})]})}const $i=500;function Ri({message:e,position:n,duration:a,onClose:r}){const[o,s]=i.useState(!1),[l,c]=i.useState(!1),u=i.useRef(l),d=i.useRef(o);i.useEffect(()=>{u.current=l},[l]),i.useEffect(()=>{d.current=o},[o]);const p=i.useRef(null),h=i.useRef(""),m=i.useRef(r);i.useEffect(()=>{m.current=r});const f=a,C=i.useRef(null),b=i.useRef(0),g=i.useRef(0),y=i.useRef(!1),w=i.useRef(null),_=i.useRef(null),v=i.useRef(null),A=i.useRef(null),x=i.useRef(()=>{});x.current=N=>{N<0||(b.current=Date.now(),g.current=N,C.current=setTimeout(()=>{C.current=null,s(!1),w.current=setTimeout(()=>{c(!1);try{m.current()}catch{}},$i)},N))};const k=i.useCallback(()=>{y.current||!C.current||(y.current=!0,clearTimeout(C.current),C.current=null,g.current=Math.max(0,g.current-(Date.now()-b.current)))},[]),T=i.useCallback(()=>{y.current&&(y.current=!1,x.current(g.current))},[]);return i.useEffect(()=>{if(e!==h.current&&(C.current&&(clearTimeout(C.current),C.current=null),w.current&&(clearTimeout(w.current),w.current=null)),e){if(d.current)return f>0&&!C.current&&(y.current=!1,x.current(f)),h.current=e,()=>{};const N=()=>{const D=p.current;if(D)try{D.classList.remove("is-visible"),D.style.transition="none",n==="top"?D.style.transform="translateX(-50%) translateY(-16px)":D.style.transform="translateX(-50%) translateY(16px)",D.style.opacity="0",D.offsetWidth,D.style.transition="",D.classList.add("is-visible"),A.current&&clearTimeout(A.current),A.current=setTimeout(()=>{A.current=null;try{D.style.opacity="",D.style.transform="",D.style.transition=""}catch{}},60)}catch{}};u.current?(N(),s(!0)):(c(!0),_.current=requestAnimationFrame(()=>{v.current=requestAnimationFrame(()=>{N(),s(!0)})})),f>0&&(y.current=!1,x.current(f))}else s(!1),w.current=setTimeout(()=>c(!1),$i);return h.current=e,()=>{C.current&&clearTimeout(C.current),w.current&&clearTimeout(w.current),_.current&&cancelAnimationFrame(_.current),v.current&&cancelAnimationFrame(v.current),A.current&&clearTimeout(A.current),C.current=null,w.current=null,_.current=null,v.current=null,A.current=null}},[e,f,n]),{mounted:l,showing:o,popupRef:p,pause:k,resume:T}}function Tn({message:e="",position:n="top",type:a="normal",onClose:r=()=>{},duration:o=2e3}){const{mounted:s,showing:l,popupRef:c,pause:u,resume:d}=Ri({message:e,position:n,duration:o,onClose:r});if(!s)return null;const p=a==="notice"||a==="warning"?a:"normal",h=t.jsx("div",{ref:c,className:`toast toast--${n} ${l?"is-visible":""}`,role:"status","aria-live":"polite",onMouseEnter:u,onMouseLeave:d,onFocusCapture:u,onBlurCapture:d,children:t.jsx("div",{className:`toast__inner toast__inner--${p} body-2`,children:e})});return typeof document<"u"?It.createPortal(h,document.body):h}const e4=24;function t4({value:e,max:n=100,size:a=8,color:r,trackColor:o,label:s,formatValue:l,labelPos:c,labelAlign:u="right",ariaLabel:d,className:p}){const h=Number.isFinite(n)&&n>0?n:1,m=Math.max(0,Math.min(Number.isFinite(e)?e:0,h)),f=m/h*100,C=c??(a>=e4?"inside":"bottom"),b=C==="center"?"inside":C,g=b==="inside"&&(u==="left"?f>=15:u==="center"?f>=50:f>=85),y={};return r&&(y["--progress-bar-fill"]=r),o&&(y["--progress-bar-track"]=o),t.jsxs("div",{className:ye("progress-bar",`progress-bar--${a}`,`progress-bar--label-${b}`,s&&`progress-bar--align-${u}`,s&&g&&"progress-bar--label-on-fill",p),style:y,children:[t.jsx("div",{className:"progress-bar__track",role:"progressbar","aria-valuenow":m,"aria-valuemin":0,"aria-valuemax":h,"aria-label":d,children:t.jsx("div",{className:"progress-bar__fill",style:{width:`${f}%`}})}),s&&t.jsx("span",{className:"progress-bar__label caption-1b",children:l?l(m):s==="percent"?`${Math.round(f)}%`:s==="raw"?String(m):`${m} / ${h}`})]})}const n4="rgba(255, 255, 255, 0.16)";function Pi({max:e,index:n,inactiveBg:a,inactiveColor:r,transparent:o,variant:s="numbered",announce:l=!1,ariaLabel:c}){const{t:u}=de.useTranslation(),d=Qt("(max-width: 767px)");if(!Number.isInteger(e)||e<=0)return null;const p=Number.isInteger(n)?Math.max(0,Math.min(n,e-1)):0,h=c??u("progress.steps",{current:p+1,total:e,defaultValue:"\uC9C4\uD589 \uB2E8\uACC4 {{current}} / {{total}}"}),m={};return a&&(m["--pi-inactive-bg"]=a),r&&(m["--pi-inactive-color"]=r),o&&(a||(m["--pi-inactive-bg"]=n4),r||(m["--pi-inactive-color"]="var(--color-white)")),s==="dot"?t.jsx("div",{className:"progress-indicator progress-indicator--dot",style:m,role:l?"status":"img","aria-label":h,children:Array.from({length:e}).map((f,C)=>t.jsx("span",{"aria-hidden":"true",className:`progress-indicator-dot--dot${C<p?" done":C===p?" active":""}`},C))}):d?t.jsx("div",{className:"progress-indicator progress-indicator--mobile",style:m,role:"list","aria-label":h,children:t.jsxs("span",{role:"listitem",className:"progress-indicator-dot active body-3",children:[p+1," / ",e]})}):t.jsx("div",{className:"progress-indicator",style:m,role:"list","aria-label":h,children:Array.from({length:e}).map((f,C)=>t.jsx("span",{role:"listitem","aria-current":C===p?"step":void 0,className:`progress-indicator-dot ${C<p?" done":C===p?" active":""} body-3`,children:C+1},C))})}function a4(e){if(!e)return[];const n=[];let a=0,r="";for(const o of e.trim()){if(o==="("?a++:o===")"&&a--,/\s/.test(o)&&a===0){r&&(n.push(r),r="");continue}r+=o}return r&&n.push(r),n}function r4({children:e,className:n,style:a}){return t.jsx("div",{className:n?`table-cell ${n}`:"table-cell",style:a,children:e})}function yr({variant:e="default",children:n,className:a,draggable:r,onClick:o,onMouseEnter:s,onMouseLeave:l,onDragStart:c,onDragEnd:u,expandedContent:d}){const p=i.useCallback(h=>{o&&h.target===h.currentTarget&&(h.key==="Enter"||h.key===" ")&&(h.preventDefault(),o())},[o]);return e==="loading"?t.jsx("div",{className:"table-row-wrap",children:t.jsx("div",{className:"table-row table-row--loading",children:t.jsx(ta,{size:28})})}):e==="empty"?t.jsx("div",{className:"table-row-wrap",children:t.jsx("div",{className:"table-row table-row--empty body-3",children:n})}):t.jsxs("div",{className:"table-row-wrap",children:[t.jsx("div",{className:a?`table-row ${a}`:"table-row",draggable:r,onClick:o,onKeyDown:o?p:void 0,onMouseEnter:s,onMouseLeave:l,onDragStart:c,onDragEnd:u,role:o?"button":void 0,tabIndex:o?0:void 0,children:n}),d&&t.jsx("div",{className:"table-row-expand",children:d})]})}function o4({dir:e}){return t.jsx(e==="asc"?_o:xo,{className:"table-field__sort-arrow",size:16,strokeWidth:2})}function s4({children:e,onClick:n,className:a,sortDir:r,onResizeStart:o}){const s=i.useCallback(l=>{n&&l.target===l.currentTarget&&(l.key==="Enter"||l.key===" ")&&(l.preventDefault(),n())},[n]);return t.jsxs("div",{onClick:n,onKeyDown:n?s:void 0,role:n?"button":void 0,tabIndex:n?0:void 0,"aria-sort":r?r==="asc"?"ascending":"descending":void 0,className:ye("table-field body-3",a,r?"table-field--sorted":"",o?"table-field--resizable":""),children:[e,r&&t.jsx(o4,{dir:r}),o&&t.jsx("span",{className:"table-field__resizer",onPointerDown:o,onClick:l=>l.stopPropagation(),"aria-hidden":"true"})]})}function vr({fields:e=[],headerGroups:n,items:a=[],renderRow:r,onRowClick:o,onRowMouseEnter:s,onRowMouseLeave:l,onRowDragStart:c,onRowDragEnd:u,draggingId:d,gridTemplateColumns:p,resizable:h=!1,resizeMode:m="grow",resizeStorageKey:f,size:C="small",title:b,icon:g,count:y,collapsed:w=!1,onToggleCollapse:_,headerActions:v,empty:A,loading:x,dragOver:k=!1,onDragOver:T,onDragLeave:N,onDrop:D,renderExpandedRow:P,expandedId:L}){const{t:j}=de.useTranslation(),R=48,M=f?`table-cols:${f}`:null,z=i.useRef(null),H=i.useRef(()=>!1),Z=i.useRef([]),J=i.useRef(null),[O,S]=i.useState(()=>{if(!M||typeof window>"u")return null;try{const E=JSON.parse(window.localStorage.getItem(M)??"null");return Array.isArray(E)&&E.every(U=>typeof U=="number")?E:null}catch{return null}}),$=i.useRef(O);i.useEffect(()=>{$.current=O},[O]);const F=i.useCallback(E=>{const U=J.current;U&&S(ee=>{if(!ee)return ee;const _e=[...ee];if(U.next!=null&&U.startWNext!=null){const ue=E.clientX-U.startX,ie=Math.max(R-U.startW,Math.min(U.startWNext-R,ue));_e[U.index]=U.startW+ie,_e[U.next]=U.startWNext-ie}else _e[U.index]=Math.max(R,U.startW+(E.clientX-U.startX));return _e})},[]),V=i.useCallback(()=>{if(J.current=null,window.removeEventListener("pointermove",F),window.removeEventListener("pointerup",V),document.body.style.cursor="",document.body.style.userSelect="",M&&$.current)try{window.localStorage.setItem(M,JSON.stringify($.current))}catch{}},[F,M]),X=i.useCallback((E,U)=>{U.preventDefault(),U.stopPropagation();const ee=z.current;if(!ee)return;const _e=Array.from(ee.children).map(ie=>ie.getBoundingClientRect().width),ue=m==="fit"?e.findIndex((ie,te)=>te>E&&ie.resizable!==!1):-1;J.current=ue>=0?{index:E,startX:U.clientX,startW:_e[E],next:ue,startWNext:_e[ue]}:{index:E,startX:U.clientX,startW:_e[E]},S(_e),window.addEventListener("pointermove",F),window.addEventListener("pointerup",V),document.body.style.cursor="col-resize",document.body.style.userSelect="none"},[F,V,m,e]),I=i.useCallback(()=>{const E=z.current,U=E?.closest(".table-wrap");if(!E||!U)return;const ee=U.style.getPropertyValue("--table-grid-cols");U.style.setProperty("--table-grid-cols",e.map((Re,Ee)=>H.current(Ee)?Z.current[Ee]:"max-content").join(" "));const _e=Array.from(U.querySelectorAll(".table-row")).filter(Re=>!Re.classList.contains("table-row--loading")&&!Re.classList.contains("table-row--empty")),ue=e.map((Re,Ee)=>{let je=E.children[Ee]?.getBoundingClientRect().width??0;for(const Ae of _e){const ze=Ae.children[Ee];ze&&(je=Math.max(je,ze.getBoundingClientRect().width))}return Math.max(R,Math.ceil(je))}),ie=window.getComputedStyle(E),te=E.clientWidth-(parseFloat(ie.paddingLeft)||0)-(parseFloat(ie.paddingRight)||0);ee?U.style.setProperty("--table-grid-cols",ee):U.style.removeProperty("--table-grid-cols");let se=ue;const De=ue.reduce((Re,Ee,je)=>Re+(H.current(je)?Ee:0),0),He=ue.reduce((Re,Ee,je)=>Re+(H.current(je)?0:Ee),0),Ve=te-De;if(te>0&&He>0&&Ve>0){const Re=Ve/He;se=ue.map((je,Ae)=>H.current(Ae)?je:Math.max(R,Math.round(je*Re)));const Ee=Math.round(Ve-se.reduce((je,Ae,ze)=>je+(H.current(ze)?0:Ae),0));if(Ee!==0){let je=-1;se.forEach((Ae,ze)=>{!H.current(ze)&&(je<0||Ae>se[je])&&(je=ze)}),je>=0&&(se[je]=Math.max(R,se[je]+Ee))}}if(S(se),M)try{window.localStorage.setItem(M,JSON.stringify(se))}catch{}},[e,m,M]);i.useEffect(()=>()=>{J.current&&(window.removeEventListener("pointermove",F),window.removeEventListener("pointerup",V),document.body.style.cursor="",document.body.style.userSelect="")},[F,V]);const q=a4(p),G=q.filter(E=>/\b(auto|min-content|max-content)\b|fit-content\(/.test(E));G.length>0&&Fn(`table-content-track:${p}`,`[ihabdevteam-core] Table \uC758 gridTemplateColumns \uC5D0 \uB0B4\uC6A9\uC73C\uB85C \uD06C\uAE30\uAC00 \uC815\uD574\uC9C0\uB294 \uD2B8\uB799(${G.join(", ")})\uC774 \uC788\uC2B5\uB2C8\uB2E4. \uBA38\uB9AC\uC640 \uBAB8\uD1B5\uC740 \uC11C\uB85C \uB2E4\uB978 \uACA9\uC790\uB77C \uADF8 \uD2B8\uB799\uC774 \uAC01\uC790 \uB2E4\uB974\uAC8C \uD480\uB824 \uC5F4\uC774 \uC5B4\uAE0B\uB0A9\uB2C8\uB2E4. px \uC774\uB098 fr \uC744 \uC4F0\uC138\uC694. (\uBC1B\uC740 \uAC12: ${p})`);const le=E=>/^\d+(\.\d+)?px$/.test(q[E]??"");H.current=le,Z.current=q;const pe=E=>m==="fit"&&!le(E)?"fr":"px",fe=O&&O.length===e.length&&(m==="fit"||a.length>0)?e.map((E,U)=>E.resizable===!1&&q[U]?q[U]:`${O[U]}${pe(U)}`).join(" "):p,ve=fe?{"--table-grid-cols":fe}:void 0,he=b!==void 0;return t.jsx("div",{className:`table-wrap table-wrap--${C}${h?" table-wrap--resizable":""}${k?" table-wrap--dragover":""}${w?" table-wrap--collapsed":""}`,style:ve,onDragOver:T,onDragLeave:N,onDrop:D,children:t.jsxs("div",{className:"table body-2",children:[he&&t.jsxs("div",{className:"table-header",onClick:_,role:_?"button":void 0,tabIndex:_?0:void 0,"aria-expanded":_?!w:void 0,onKeyDown:_?E=>{(E.key==="Enter"||E.key===" ")&&(E.preventDefault(),_())}:void 0,children:[_&&t.jsx(ae,{size:40,type:"dot",variant:"transparent-gray",useBorder:!1,icon:w?"chevron-right":"chevron-down",ariaLabel:w?j("common.expand","\uD3BC\uCE58\uAE30"):j("common.collapse","\uC811\uAE30"),className:"table-header__chevron"}),g&&t.jsx(Oe,{icon:g,label:typeof b=="string"?b:void 0,className:"table-header__icon"}),t.jsx("span",{className:"table-header__title h5b",children:b}),y!==void 0&&t.jsx("span",{className:"table-header__count body-3b",children:y}),v&&t.jsx("span",{className:"table-header__actions",onClick:E=>E.stopPropagation(),children:v})]}),!w&&t.jsxs(t.Fragment,{children:[n&&n.length>0&&t.jsx("div",{className:"table-fields table-fields--groups",children:n.map((E,U)=>t.jsx("div",{className:ye("table-field body-3",E.className),style:{gridColumn:`span ${E.span}`},children:E.label},U))}),t.jsxs("div",{className:ye("table-fields-strip",h&&"table-fields-strip--resizable"),children:[t.jsx("div",{className:"table-fields",ref:z,children:e.map((E,U)=>t.jsx(s4,{onClick:E.onClick,className:E.className,sortDir:E.sortDir,onResizeStart:h&&U<e.length-1&&E.resizable!==!1&&(m!=="fit"||e.some((ee,_e)=>_e>U&&ee.resizable!==!1))?ee=>X(U,ee):void 0,children:E.label},U))}),h&&t.jsx(ae,{size:40,type:"dot",variant:"transparent-gray",useBorder:!1,icon:"chevrons-left-right-ellipsis",ariaLabel:j("table.resetColumns","\uCE78 \uB108\uBE44 \uCD08\uAE30\uD654"),showTooltipInfo:j("table.resetColumns","\uCE78 \uB108\uBE44 \uCD08\uAE30\uD654"),className:"table-fields__reset",onClick:I})]}),t.jsx("div",{className:"table-body",children:x?t.jsx(yr,{variant:"loading"}):a.length===0&&A?t.jsx(yr,{variant:"empty",children:A}):a.map((E,U)=>{const ee=d!=null&&E.id===d,_e=L!=null&&(L instanceof Set?L.has(E.id):E.id===L);return t.jsx(yr,{className:`${o?" table-row--clickable":""}${c?" table-row--draggable":""}${ee?" table-row--dragging":""}`.trim(),draggable:!!c,onClick:o?()=>o(E):void 0,onMouseEnter:s?ue=>s(E,ue):void 0,onMouseLeave:l?ue=>l(E,ue):void 0,onDragStart:c?ue=>c(E,ue):void 0,onDragEnd:u?ue=>u(E,ue):void 0,expandedContent:_e&&P?P(E):void 0,children:r(E).map((ue,ie)=>t.jsx(r4,{className:ue.className,style:ue.style,children:ue.content},ie))},String(E.id??U))})})]})]})})}function Ii(e){switch(e){case"\uBCF4\uCCAD\uAE30":return"main";case"\uC778\uACF5\uC640\uC6B0":return"sub";default:return"default"}}function Fi(e,n){return n!=="wornAt"?String(e[n]??""):e.wornYear?`${e.wornYear}-${e.wornMonth.padStart(2,"0")}-${e.wornDay.padStart(2,"0")}`:""}function i4({rows:e,onSelect:n,onDelete:a,onWear:r,onRelease:o,onAdd:s}){const{t:l}=de.useTranslation(),c=C=>C==="\uC88C"?l("device.direction.left","\uC88C"):l("device.direction.right","\uC6B0"),{\uC815\uB82C:u,\uCE78:d}=B0(),p=i.useMemo(()=>{if(!u)return e;const{key:C,asc:b}=u;return[...e].sort((g,y)=>{const w=C==="worn"?Number(y.worn)-Number(g.worn):Fi(g,C).localeCompare(Fi(y,C),"ko");return b?w:-w})},[e,u]),{pageRows:h,pageSizeProps:m,paginationProps:f}=N0(p,u);return t.jsxs("div",{className:"dlp-side-table",children:[t.jsx(hr,{count:{value:e.length,unit:l("customers.device.unit","\uAC1C")},pageSize:m,pagination:f,actions:s&&t.jsx(ae,{size:40,type:"bar",variant:"main",icon:"plus",label:l("customers.device.addButton","\uAE30\uAE30 \uCD94\uAC00"),onClick:s})}),t.jsx(vr,{resizable:!0,resizeMode:"fit",resizeStorageKey:"customer-device-history-v2",fields:[{...d(l("customers.device.wearingNow","\uCC29\uC6A9"),"worn"),resizable:!1},d(l("device.direction.label","\uBC29\uD5A5"),"side"),d(l("device.deviceType","\uC885\uB958"),"device"),d(l("device.brand","\uBE0C\uB79C\uB4DC"),"brand"),d(l("device.fitType","\uCC29\uC6A9\uD615\uD0DC"),"fitType"),d(l("device.productName","\uC81C\uD488\uBA85"),"productName"),d(l("device.wornDate","\uCC29\uC6A9\uC77C"),"wornAt"),...a?[{label:"",resizable:!1}]:[]],items:h.map((C,b)=>({id:C.id??`${C.side}-${b}`,row:C})),gridTemplateColumns:`56px 110px 110px minmax(120px, 1fr) 100px minmax(120px, 1fr) 110px${a?" 80px":""}`,renderRow:({row:C})=>[{content:t.jsx("span",{className:"dlp-worn-check",onClick:b=>b.stopPropagation(),children:t.jsx(Ai,{checked:C.worn,disabled:!r||!o,ariaLabel:C.worn?l("customers.device.unwear","\uCC29\uC6A9 \uD574\uC81C"):l("customers.device.wear","\uCC29\uC6A9"),onChange:b=>{b?r?.(C):o?.(C)}})})},{content:t.jsx("span",{children:c(C.side)})},{content:C.device?t.jsx(ot,{size:"small",variant:Ii(C.device),fill:"soft",label:C.device}):t.jsx("span",{})},{content:t.jsx("span",{children:C.brand})},{content:t.jsx("span",{children:C.fitType||"-"})},{content:t.jsx("span",{children:C.productName||"-"})},{content:t.jsx("span",{className:"dlp-date",children:C.wornYear?`${C.wornYear}.${C.wornMonth}.${C.wornDay}`:"-"})},...a?[{content:t.jsx("span",{className:"dlp-row-actions",children:t.jsx(ae,{size:28,type:"bar",variant:"transparent-gray",label:l("common.delete","\uC0AD\uC81C"),onClick:b=>{b?.stopPropagation(),a(C)}})})}]:[]],onRowClick:({row:C})=>n(C),empty:l("customers.device.historyEmpty","\uB4F1\uB85D\uB41C \uAE30\uAE30 \uC774\uB825\uC774 \uC5C6\uC2B5\uB2C8\uB2E4.")})]})}function Oi(e,n){return e?{role:n?.role??"button",tabIndex:0,...n?.selected===void 0?{}:{"aria-selected":n.selected},onKeyDown:a=>{a.key!=="Enter"&&a.key!==" "||(a.preventDefault(),e(a))}}:{}}function l4(e,n){return new Date(e,n+1,0).getDate()}function c4(e,n){return new Date(e,n,1).getDay()}function u4({visits:e=[],onVisitClick:n,onVisitMove:a,onDayClick:r}){const{t:o}=de.useTranslation(),s=i.useMemo(()=>o("calendar.dow",{returnObjects:!0}),[o]),[l,c]=i.useState(new Date().getFullYear()),[u,d]=i.useState(new Date().getMonth()),[p,h]=i.useState(null),m=i.useRef(null),f=new Date,C=i.useMemo(()=>{const v={};return e.forEach(A=>{v[A.date]||(v[A.date]=[]),v[A.date].push(A)}),v},[e]),b=i.useMemo(()=>{const v=l4(l,u),A=c4(l,u),x=[];for(let k=0;k<A;k++)x.push(null);for(let k=1;k<=v;k++)x.push(k);for(;x.length<35;)x.push(null);return x},[l,u]),g=i.useCallback(()=>{u===0?(c(v=>v-1),d(11)):d(v=>v-1)},[u]),y=i.useCallback(()=>{u===11?(c(v=>v+1),d(0)):d(v=>v+1)},[u]),w=v=>`${l}-${String(u+1).padStart(2,"0")}-${String(v).padStart(2,"0")}`,_=v=>f.getFullYear()===l&&f.getMonth()===u&&f.getDate()===v;return t.jsxs("div",{children:[t.jsxs("div",{className:"calendar-nav",children:[t.jsx("button",{type:"button",className:"calendar-nav__button",onClick:g,"aria-label":o("calendar.prevMonth","\uC774\uC804 \uB2EC"),children:t.jsx(Oe,{icon:"chevron-left",label:"",className:"",svgClassName:"calendar-nav__button-icon",size:18})}),t.jsx("span",{className:"calendar-nav__title h5",children:o("calendar.yearMonth",{year:l,month:u+1})}),t.jsx("button",{type:"button",className:"calendar-nav__button",onClick:y,"aria-label":o("calendar.nextMonth","\uB2E4\uC74C \uB2EC"),children:t.jsx(Oe,{icon:"chevron-right",label:"",className:"",svgClassName:"calendar-nav__button-icon",size:18})}),t.jsxs("div",{className:"calendar-nav__legend",children:[t.jsx("span",{className:"calendar-nav__legend-dot calendar-nav__legend-dot--main"}),t.jsx("span",{className:"caption-1",children:o("calendar.legend.visited","\uBC29\uBB38")}),t.jsx("span",{className:"calendar-nav__legend-dot calendar-nav__legend-dot--sub"}),t.jsx("span",{className:"caption-1",children:o("calendar.legend.scheduled","\uC608\uC57D")}),t.jsx("span",{className:"calendar-nav__legend-dot calendar-nav__legend-dot--disabled"}),t.jsx("span",{className:"caption-1",children:o("calendar.legend.noVisit","\uBBF8\uBC29\uBB38")})]})]}),t.jsxs("div",{className:"calendar-grid",children:[s.map(v=>t.jsx("div",{className:"calendar-day-header body-3",children:v},v)),b.map((v,A)=>{if(v===null)return t.jsx("div",{className:"calendar-cell empty"},`empty-${A}`);const x=v,k=w(x),T=C[k]??[],N=p===k;return t.jsxs("div",{className:`calendar-cell${_(x)?" today":""}${N?" drag-over":""}${r?" calendar-cell--clickable":""}`,role:r?"button":void 0,tabIndex:r?0:void 0,"aria-label":r?o("calendar.addOnDate",{date:k}):void 0,onClick:r?()=>r(k):void 0,onKeyDown:r?D=>{D.key!=="Enter"&&D.key!==" "||(D.preventDefault(),r(k))}:void 0,onDragOver:a?D=>{D.preventDefault(),h(k)}:void 0,onDragLeave:a?D=>{D.currentTarget.contains(D.relatedTarget)||h(null)}:void 0,onDrop:a?D=>{D.preventDefault(),m.current!=null&&(a(m.current,k),m.current=null),h(null)}:void 0,children:[t.jsx("div",{className:"calendar-cell__number body-3",children:x}),t.jsx("div",{className:"calendar-cell__badges",children:T.map((D,P)=>t.jsxs("div",{draggable:!!a,className:`calendar-visit-badge${D.status==="noVisit"?" calendar-visit-badge--no-visit":D.status==="scheduled"?" calendar-visit-badge--scheduled":""}${n?" calendar-visit-badge--clickable":""}${a?" calendar-visit-badge--draggable":""}`,onDragStart:a?L=>{m.current=D.id,L.dataTransfer.effectAllowed="move"}:void 0,onDragEnd:a?()=>{m.current=null,h(null)}:void 0,onClick:n?L=>{L.stopPropagation(),n(D)}:void 0,...Oi(n?()=>n(D):void 0),"aria-label":[D.time?ds(D.time,o):null,D.customer,o(D.status==="noVisit"?"calendar.legend.noVisit":D.status==="scheduled"?"calendar.legend.scheduled":"calendar.legend.visited")].filter(Boolean).join(" "),children:[D.time&&t.jsx("span",{className:"calendar-visit-badge__time body-3",children:ds(D.time,o)}),t.jsx("span",{className:"calendar-visit-badge__name body-3",children:D.customer}),D.status==="noVisit"&&t.jsx("span",{className:"calendar-visit-badge__no-visit caption-1",children:o("calendar.legend.noVisit","\uBBF8\uBC29\uBB38")})]},D.id??P))})]},x)})]})]})}const d4={page:"h3",pagePopup:"h4",popup:"h5"};function Mn({type:e="page",title:n,headingLevel:a,icon:r,action:o,disc:s,children:l,className:c,style:u}){const d=d4[e],p=n||s,h=a?`h${a}`:"div";return t.jsxs("div",{className:ye("section",`section--${e}`,c),style:u,children:[p&&t.jsxs("div",{className:"section__header",children:[t.jsxs("div",{className:"section__title-row",children:[r&&t.jsx(Oe,{icon:r,label:typeof n=="string"?n:void 0,className:"section__icon"}),t.jsxs("div",{className:"section__title-group",children:[n&&t.jsx(h,{className:`section__title ${d}`,children:n}),s&&t.jsx("div",{className:"section__disc body-3",children:s})]})]}),o&&t.jsx("div",{className:"section__action",children:o})]}),l]})}function Hi({icon:e,label:n,tooltip:a,wrapperStyle:r,color:o,bgColor:s,useHover:l=!0,iconSize:c="medium"}){const u=c==="small",d=ye("category-icon",u?"category-icon--small":""),p=u?16:20,h=i.useRef(null),[m,f]=i.useState(!1),C=i.useMemo(()=>{const x=r&&typeof r=="object"?{...r}:{};return!o&&!s?x:{...x,...o?{color:o,"--t-item-fg":o}:{},...s?{"--t-item-bg":s}:{}}},[r,o,s]),b=a||n,[g,y]=i.useState(null);i.useLayoutEffect(()=>{m&&y(h.current?.getBoundingClientRect()??null)},[m]),i.useEffect(()=>{if(!l&&m)try{f(!1)}catch{}},[l,m]),i.useEffect(()=>{if(!m)return;const x=k=>{const T=h.current;if(!T)return;const N=k.target;N&&!T.contains(N)&&f(!1)};return document.addEventListener("pointerdown",x,!0),()=>document.removeEventListener("pointerdown",x,!0)},[m]);const w=i.useCallback(()=>{l&&f(!0)},[l]),_=i.useCallback(()=>{l&&f(!1)},[l]),v=i.useCallback(()=>f(!1),[]),A=i.useCallback(x=>{if(x.key==="Escape"){f(!1);return}(x.key==="Enter"||x.key===" ")&&(x.preventDefault(),f(k=>!k))},[]);return t.jsxs("span",{ref:h,className:"category-icon__wrap",onPointerEnter:w,onPointerLeave:_,onFocus:w,onBlur:_,onKeyDown:A,role:"button",tabIndex:0,"aria-label":typeof b=="string"?b:void 0,"aria-haspopup":!!b,"aria-expanded":m,"data-tooltip-ignore":!0,children:[t.jsx(Oe,{icon:e,label:n,className:d,imgClassName:"category-icon__image",maskClassName:"category-icon__mask",svgClassName:"category-icon__svg",wrapperStyle:C,size:p}),m&&b&&t.jsx(dn,{anchorRect:g,text:typeof b=="string"?b:void 0,offset:8,onClose:v,className:"category-icon__tooltip",ariaLabel:typeof b=="string"?b:void 0})]})}function p4(e,n){if(!e)return{previewCodes:[],previewBucket:null};const a=e,r=l=>l.map(c=>c?.contextCode||c?.context_code).filter(Boolean).map(String);if(n==="LISTEN_IN_NOISE"){const l=a.sentences||a.items||[],c=Array.isArray(l)&&l.length>0?r(l):[];return c.length===0&&(a.contextCode||a.context_code)&&c.push(String(a.contextCode||a.context_code)),{previewCodes:c,previewBucket:"LIN_D"}}if(n==="SHORT_STORY"){const l=a.items||a.sentences||[],c=Array.isArray(l)&&l.length>0?r(l):[];return c.length===0&&(a.contextCode||a.context_code)&&c.push(String(a.contextCode||a.context_code)),{previewCodes:c,previewBucket:"SHORT_S"}}if(n==="LONG_STORY"){const l=a.items||a.sentences||[],c=Array.isArray(l)&&l.length>0?r(l):[];return c.length===0&&(a.contextCode||a.context_code)&&c.push(String(a.contextCode||a.context_code)),{previewCodes:c,previewBucket:"LONG"}}if(n==="ORDERING_SENTENCE"){const l=a.sentences||a.items||[],c=Array.isArray(l)&&l.length>0?r(l):[];return c.length===0&&(a.contextCode||a.context_code)&&c.push(String(a.contextCode||a.context_code)),{previewCodes:c,previewBucket:"LIN_D"}}const o=a.sentences||a.items||[],s=r(Array.isArray(o)?o:[]);return s.length===0&&(a.contextCode||a.context_code)&&s.push(String(a.contextCode||a.context_code)),{previewCodes:s,previewBucket:null}}function h4(e,n){const[a,r]=i.useState(!1),[o,s]=i.useState(-1),[l,c]=i.useState([]),u=i.useRef(null),d=i.useRef(!1),p=i.useRef(null),[h,m]=i.useState(!1),f=i.useRef([]),{previewCodes:C,previewBucket:b}=p4(e,n);i.useEffect(()=>{if(!C.length)return;let y=!1;return(async()=>{const w=[],_=[];for(const v of C)try{const A=Go(v,b);if(!A){w.push("");continue}let x=null;try{x=await Ko(A)}catch{}if(!x)try{const k=await Zo(A);k&&(x=URL.createObjectURL(k),_.push(x))}catch{}w.push(x??"")}catch{w.push("")}y?_.forEach(v=>{try{URL.revokeObjectURL(v)}catch{}}):(f.current.forEach(v=>{try{URL.revokeObjectURL(v)}catch{}}),f.current=_,c(w))})(),()=>{y=!0}},[C.join(","),b]),i.useEffect(()=>()=>{f.current.forEach(y=>{try{URL.revokeObjectURL(y)}catch{}}),f.current=[]},[]);const g=i.useCallback(async y=>{if(y.stopPropagation(),y.preventDefault(),d.current){d.current=!1;try{u.current?.pause()}catch{}r(!1),s(-1);return}if(l.filter(Boolean).length){d.current=!0,r(!0);for(let w=0;w<l.length&&d.current;w++){const _=l[w];if(_){s(w);try{await new Promise((v,A)=>{const x=new Audio(_);u.current=x,x.onended=()=>v(),x.onerror=()=>A(),x.play().catch(A)})}catch{break}}}d.current=!1,r(!1),s(-1)}},[l]);return i.useEffect(()=>()=>{d.current=!1;try{u.current?.pause()}catch{}u.current=null},[]),{playing:a,playingIndex:o,previewUrls:l,previewHover:h,setPreviewHover:m,previewBtnRef:p,handlePreview:g}}const m4=e=>{if(!e)return[];const n=typeof e.context=="string"&&e.context.trim()||typeof e.sentence=="string"&&e.sentence.trim()||typeof e.text=="string"&&e.text.trim()||"";if(n)return[String(n)];const a=e.sentences||e.items||e.questions||[];return Array.isArray(a)&&a.length>0?a.map(r=>{if(typeof r=="string")return r;if(r&&typeof r=="object"){const o=r;return o.sentence||o.text||o.context||o.question||o.title||""}return""}).filter(r=>typeof r=="string"&&r.trim().length>0).map(r=>r.trim()):[]};function xr(e){const{index:n,type:a,trainingData:r,ariaLabel:o,depth:s,renderPopup:l,completed:c,completedIds:u,selectedIds:d,tooltipText:p,useDescriptionTooltip:h=!1,onRemove:m,hideCheckBadge:f=!1,showTypeLabel:C=!1,onComplete:b,onSelect:g,onMore:y,countLabelOverride:w,size:_="square"}=e||{},{t:v}=de.useTranslation(),[A,x]=i.useState(!1),k=i.useRef(null),[T,N]=i.useState(!1);i.useEffect(()=>{k.current?.matches(":hover")&&N(!0)},[]);const{playing:D,playingIndex:P,previewUrls:L,previewHover:j,setPreviewHover:R,previewBtnRef:M,handlePreview:z}=h4(r,a?.key),H=i.useCallback(()=>{g?g():x(!0)},[g]),Z=i.useCallback(()=>x(!1),[]),J=i.useCallback(()=>N(!0),[]),O=i.useCallback(()=>N(!1),[]),S=i.useCallback(()=>R(!0),[R]),$=i.useCallback(()=>R(!1),[R]),[F,V]=i.useState(null);i.useLayoutEffect(()=>{j&&V(M.current?.getBoundingClientRect()??null)},[j,M]);const[X,I]=i.useState(null);i.useLayoutEffect(()=>{T&&!A&&h&&I(k.current?.getBoundingClientRect()??null)},[T,A,h]);const q=i.useCallback(ge=>{(ge.key==="Enter"||ge.key===" ")&&(ge.preventDefault(),H())},[H]),G=r||null,le=i.useMemo(()=>{if(!h)return null;const ge=p?(Array.isArray(p)?p:[p]).filter(Boolean):null,Pe=ge&&ge.length>0?ge:m4(G);return Pe&&Pe.length>0?Pe:null},[h,p,G]),pe=i.useCallback(ge=>{ge.stopPropagation(),m?.()},[m]),fe=i.useCallback(ge=>ge.stopPropagation(),[]),ve=i.useCallback(ge=>{typeof b=="function"&&b(ge)},[b]),he=c||(u&&r?.id!=null?u.has(String(r.id)):!1),E=!he&&(d!=null&&r?.id!=null?d.has(String(r.id)):!1);Us("speechear.popup.close",Z);const U=ps(),ee=`${a?.label||""} ${n+1}`,_e=G?.title||G?.name||ee;let ue=a?.icon,ie,te="",se="";try{const ge=G?.category_0||G?.category_main_code||G?.category_main,Pe=G?.category_1||G?.category_sub_code||G?.category_sub,$e=U.find(Ke=>Ke.key===ge);$e?.icon&&(ue=$e.icon),!ie&&$e?.color&&(ie={"--t-item-fg":$e.color}),!ie&&G?.iconColor&&(ie={"--t-item-fg":G.iconColor}),te=$e?.label||"";try{se=$e?.subs?.find(Ke=>Ke.key===Pe)?.label||""}catch{}}catch{}const De=se?`${te} / ${se}`:te||a?.label||_e,He=ge=>v("training.countQuestions",{n:ge}),Ve=ge=>v("training.countSentences",{n:ge});let Re="";try{if(G)if(a?.key==="LISTEN_IN_NOISE"){let ge=0;Array.isArray(G.items)&&G.items.length>0?ge=G.items.length:Array.isArray(G.sentences)&&G.sentences.length>0?ge=G.sentences.length:G.sentences&&(ge=1),Re=Ve(ge)}else if(a?.key==="SHORT_STORY"){let ge=1;Array.isArray(r?.items)?ge=r.items.length:Array.isArray(r?.raw&&r.raw?.items)?ge=r.raw.items.length:Array.isArray(G?.questions)?ge=G.questions.length:Array.isArray(G?.sentences)&&(ge=G.sentences.length),Re=He(ge)}else if(a?.key==="LONG_STORY"){let ge=1;if(Array.isArray(G.items)&&G.items.length>0){const Pe=G.items.reduce(($e,Ke)=>{const Ze=Ke.questionItems;return Array.isArray(Ze)?$e+Ze.length:Array.isArray(Ke.questions)?$e+Ke.questions.length:$e},0);ge=Pe>0?Pe:G.items.length}else Array.isArray(G.questions)&&G.questions.length>0?ge=G.questions.length:Array.isArray(G.sentences)&&G.sentences.length>0&&(ge=G.sentences.length);Re=He(ge)}else if(a?.key==="ORDERING_SENTENCE"){let ge=1;Array.isArray(G.items)&&G.items.length>0?ge=G.items.length:Array.isArray(G.sentences)&&G.sentences.length>0&&(ge=G.sentences.length),Re=Ve(ge)}else Array.isArray(G.items)&&(Re=G.items.length>0?He(G.items.length):"")}catch{}const Ee=_==="list",je=_==="compact",Ae=_==="small",ze=Ae&&a?.key?s0().find(ge=>ge.key===a.key)?.label??"":"",at=!!C&&!!a?.label&&a.label!==String(_e)||Ae&&!!ze&&ze!==String(_e);return t.jsxs(t.Fragment,{children:[t.jsxs("div",{ref:k,className:`training-block-button${Ee?" training-block-button--list":""}${je?" training-block-button--compact":""}${Ae?" training-block-button--small":""}${he?" training-block-button--completed":""}${E?" training-block-button--selected":""}${at&&!Ae?" training-block-button--withType":""}${Ae&&!at?" training-block-button--no-type-label":""}`,onClick:H,onPointerEnter:J,onPointerLeave:O,role:"button",tabIndex:0,onKeyDown:q,"aria-label":typeof o=="string"?o:typeof _e=="string"?_e:void 0,children:[t.jsxs("div",{className:"training-block-button__left",children:[C&&a?.label&&a.label!==String(_e)&&t.jsx("span",{className:"training-block-button__type-label caption-1",children:a.label}),Ae&&ze&&ze!==String(_e)&&t.jsx("span",{className:"training-block-button__type-label caption-2",children:ze}),t.jsx(Hi,{icon:ue,label:_e,tooltip:De,wrapperStyle:ie,iconSize:Ae||je?"small":"medium"}),!f&&(he||E)&&!(m&&T)&&t.jsx(ot,{type:"dot",icon:"check",position:"top-left",size:"medium","aria-label":he?v("training.completed","\uD6C8\uB828 \uC644\uB8CC"):v("training.selected","\uC120\uD0DD\uB428")}),m&&T&&t.jsx(ot,{type:"dot",icon:"remove",position:"top-left",size:"medium","aria-label":v("common.remove","\uC81C\uAC70"),onClick:pe}),t.jsx("div",{className:`training-block-button__title ${je?"body-3":Ae?"body-3b":"h3"}`,children:String(_e)}),t.jsxs("div",{className:"training-block-button__description",children:[(()=>{const ge=w!==void 0?w:Re;return ge?t.jsx("div",{className:`training-block-button__count ${Ae?"caption-2":"caption-1"}`,children:ge}):null})(),t.jsx("div",{className:"training-block-button__chevron",children:t.jsx(Oe,{icon:"chevron-right",label:v("training.next","\uB2E4\uC74C"),className:"training-block-button__chevron-icon",imgClassName:"training-block-button__chevron-icon-image",maskClassName:"training-block-button__chevron-icon-mask",svgClassName:"training-block-button__chevron-icon-svg",size:Ae?12:20})})]}),(Ee||Ae)&&L.length>0&&t.jsx("div",{ref:M,className:"training-block-button__preview","data-tooltip-ignore":!0,onClick:fe,onPointerEnter:S,onPointerLeave:$,children:t.jsx(ae,{size:Ae?28:32,type:"dot",icon:D?"pause":"play",variant:Ae?"transparent-lightGray":"default",useBorder:!1,selected:D,ariaLabel:D?v("training.stop","\uC815\uC9C0"):v("training.preview","\uBBF8\uB9AC \uB4E3\uAE30"),onClick:z})})]}),y&&t.jsx("div",{className:"training-block-button__more","data-tooltip-ignore":!0,onClick:ge=>{ge.stopPropagation(),y(ge)},children:t.jsx(ae,{size:40,type:"dot",icon:"more-horizontal",variant:"transparent-lightGray",useBorder:!1,ariaLabel:v("common.more","\uB354\uBCF4\uAE30")})})]}),j&&t.jsx(dn,{anchorRect:F,text:D?v("training.stop","\uC815\uC9C0"):v("training.preview","\uBBF8\uB9AC \uB4E3\uAE30"),offset:8,onClose:$}),T&&!A&&h&&(le?t.jsx(_n,{anchorRect:X,items:le,activeIndex:P,onClose:O}):G?.subTitle?t.jsx(dn,{anchorRect:X,text:G.subTitle,offset:8,onClose:O}):null),A&&l&&l({trainingData:G,typeKey:a?.key??"",onClose:Z,onComplete:ve,popupTitle:String(_e),popupSubTitle:a?.subTitle,depth:s!=null?String(s):void 0,popupIcon:ue,popupIconTooltip:String(De),popupWrapperStyle:ie})]})}const ya=20;function C4(e){const{t:n}=de.useTranslation(),{type:a,trainingDatas:r,depth:o,renderPopup:s,completedIds:l,selectedIds:c,onItemComplete:u,size:d,useDescriptionTooltip:p,onRemove:h,onMore:m,sectionType:f="page"}=e||{},[,C]=i.useState(0),b=typeof r<"u"?Array.isArray(r)?r:[]:[],g=b.length,[y,w]=i.useState(Math.min(g,ya)),_=i.useMemo(()=>Array.isArray(o)?[...o,a?.label].filter(Boolean).join(" \xB7 "):[o||"",a?.label].filter(Boolean).join(" \xB7 "),[o,a?.label]);i.useEffect(()=>{w(Math.min(g,ya))},[g]),Us("speechear.data.updated",()=>C(A=>A+1));function v(){w(A=>Math.min(g,A+ya))}return t.jsxs(Mn,{type:f,title:a?.label,icon:a?.icon,disc:a?.desc,className:"training-block",children:[t.jsx("div",{className:"training-list",children:(b||[]).slice(0,y).map((A,x)=>{const k=A;return t.jsx(xr,{index:x,type:a,trainingData:k,depth:_,renderPopup:s,completedIds:l,selectedIds:c,size:d,useDescriptionTooltip:p,onRemove:typeof h=="function"&&c!=null&&k?.id!=null&&c.has(String(k.id))?()=>h(k):void 0,onComplete:typeof u=="function"&&k?.id!=null?()=>u(String(k.id)):void 0,onMore:typeof m=="function"?T=>m(k,T):void 0},k?.id!=null?`${a?.key||"t"}-${String(k.id)}`:`${a?.key||"t"}-${x}`)})}),g>ya&&y<g&&t.jsx("div",{className:"training-block__more",children:t.jsx(ae,{size:48,type:"bar",icon:"plus",onClick:v,ariaLabel:n("common.loadMore","\uB354\uBCF4\uAE30"),label:n("common.loadMore","\uB354\uBCF4\uAE30"),variant:"main"})})]})}function _r(e){const n=i.useRef(null),[a,r]=i.useState(!!e),[o,s]=i.useState(!1);i.useEffect(()=>{s(!1);const u=n.current;r(!!e&&!(u?.complete&&u.naturalWidth>0))},[e]);const l=i.useCallback(()=>r(!1),[]),c=i.useCallback(()=>{r(!1),s(!0)},[]);return{imgRef:n,loading:a,failed:o,hasImage:!!e&&!o,onLoad:l,onError:c}}let Ln=null;function f4(e){if(Ln&&Ln!==e)try{Ln()}catch{}return Ln=e,()=>{Ln===e&&(Ln=null)}}var g4='data:image/svg+xml,<svg width="100" height="100" viewBox="0 0 100 100" fill="none" xmlns="http://www.w3.org/2000/svg">%0A<g clip-path="url(%23clip0_2256_7437)">%0A<g opacity="0.1">%0A<path d="M35.7143 25C29.7964 25 25 29.7964 25 35.7143V64.2857C25 67.3786 25.7893 70.2893 27.1714 72.8286C29.7071 74.2143 32.6179 75 35.7143 75H64.2857C70.2036 75 75 70.2036 75 64.2857V35.7143C75 32.6214 74.2107 29.7107 72.8286 27.1714C70.2929 25.7857 67.3821 25 64.2857 25H35.7143Z" fill="%23111111"/>%0A</g>%0A<path d="M57.1426 17.8571H35.7141C25.8533 17.8571 17.8569 25.8536 17.8569 35.7143V44.0643L10.9926 51.6179C10.5819 52.0679 10.6283 52.775 11.0998 53.1643C13.1783 54.8929 15.4641 56.2214 17.8569 57.1679C17.8676 63.925 21.6283 69.8 27.1712 72.825C25.7855 70.2893 24.9998 67.3786 24.9998 64.2821V35.7107C24.9998 29.7929 29.7962 24.9964 35.7141 24.9964H64.2855C67.3783 24.9964 70.2891 25.7857 72.8283 27.1679C69.7998 21.6179 63.9105 17.8536 57.1426 17.8536V17.8571Z" fill="%23111111"/>%0A<path d="M72.8285 27.1714C74.2142 29.7072 75 32.6179 75 35.7143V64.2857C75 70.2036 70.2035 75 64.2857 75H35.7142C32.6214 75 29.7107 74.2107 27.1714 72.8286C30.2 78.3786 36.0892 82.1429 42.8571 82.1429H58.9678C59.9321 82.1429 60.7142 82.925 60.7142 83.8893C60.7142 84.9107 61.5892 85.7215 62.6071 85.6322C73.5535 84.675 82.1428 75.4822 82.1428 64.2857V42.8572C82.1428 36.0893 78.3785 30.2 72.8285 27.1714Z" fill="%23111111"/>%0A<path d="M36.0714 40.7143C36.0714 39.5308 35.112 38.5714 33.9285 38.5714C32.745 38.5714 31.7856 39.5308 31.7856 40.7143V45C31.7856 46.1834 32.745 47.1428 33.9285 47.1428C35.112 47.1428 36.0714 46.1834 36.0714 45V40.7143Z" fill="%23111111"/>%0A<path d="M46.7859 57.1429C45.743 57.1429 44.6966 56.875 43.7502 56.3286C42.8966 55.8357 42.6037 54.7429 43.1002 53.8893C43.593 53.0357 44.6859 52.7429 45.5395 53.2393C46.518 53.8036 47.7573 53.6429 48.5537 52.8464C48.9395 52.4607 49.1823 51.9714 49.2573 51.4357C49.5787 49.1607 50.5823 47 52.1645 45.1857C53.1073 44.1071 53.6037 42.7214 53.568 41.2857C53.493 38.3536 51.1466 35.9107 48.2216 35.7286C47.2323 35.6679 46.2859 35.8464 45.4073 36.2679C44.518 36.6929 43.4502 36.3107 43.0287 35.4214C42.6037 34.5321 42.9859 33.4643 43.8752 33.0429C45.2895 32.3714 46.868 32.0679 48.4466 32.1643C53.2037 32.4607 57.0216 36.4286 57.1395 41.1964C57.1966 43.5286 56.3859 45.7786 54.8573 47.5357C53.7323 48.825 53.018 50.3464 52.7966 51.9357C52.6109 53.2464 52.018 54.4357 51.0823 55.375C49.9145 56.5429 48.3609 57.15 46.7895 57.15L46.7859 57.1429Z" fill="%23111111"/>%0A</g>%0A<defs>%0A<clipPath id="clip0_2256_7437">%0A<rect width="100" height="100" fill="white"/>%0A</clipPath>%0A</defs>%0A</svg>%0A';const b4=g4,wr=i.forwardRef(function({item:e,disabled:n=!1,onPlayDone:a,selectable:r=!1,selected:o=!1,onSelect:s,flipDelay:l=0,hideLabel:c=!1,hideAudio:u=!1,orderRank:d=null},p){const{t:h}=de.useTranslation(),m=e.word||e.title||"",f=n||!m,C=e.audio??e.sound??e.audioKey,b=e.subLabel||e.pronunciation||"",g=e.colloquialLabel||"",[y,w]=i.useState({label:m,subLabel:b,colloquialLabel:g,homonum:e.homonum});m&&y.label!==m&&w({label:m,subLabel:b,colloquialLabel:g,homonum:e.homonum});const _=i.useRef(null),v=Qt("(max-width: 767px)"),[A,x]=i.useState(!1),[k,T]=i.useState(""),N=Sn()?.(y.label,y.homonum)??e.image??"",{imgRef:D,loading:P,hasImage:L,onLoad:j,onError:R}=_r(N);i.useEffect(()=>{let S=!1;return(async()=>{if(C){if(typeof C=="string"){if(C.startsWith("http")||C.includes("/")){T(C);return}}else if(typeof C=="object"&&!Array.isArray(C)){const F=C.src;if(F){T(F);return}}}const $=Wa();if($&&m)try{const F=await Promise.resolve($(m));!S&&F&&T(F)}catch{}})(),()=>{S=!0}},[C,m]),i.useEffect(()=>()=>{try{_.current?.pause()}catch{}_.current=null},[]);const M=i.useCallback(()=>new Promise(S=>{if(typeof window<"u"&&window.speechSynthesis&&m){x(!0),window.speechSynthesis.cancel();const $=new SpeechSynthesisUtterance(m);$.lang="ko-KR",$.onend=()=>{x(!1);try{a?.()}catch{}S()},$.onerror=()=>{x(!1),S()},window.speechSynthesis.speak($)}else S()}),[m,a]),z=i.useCallback(S=>new Promise($=>{let F=!1;const V=()=>{F||(F=!0,x(!1),$(!1))};try{const X=new Audio(S);_.current=X,X.onended=()=>{if(!F){F=!0,x(!1);try{a?.()}catch{}$(!0)}},X.onerror=V,X.play().catch(V)}catch{V()}}),[a]),H=i.useCallback(async()=>{if(n)return;const S=f4(()=>{try{_.current?.pause()}catch{}try{window.speechSynthesis?.cancel()}catch{}x(!1)});try{window.speechSynthesis?.cancel()}catch{}try{if(k&&(x(!0),await z(k)))return;const $=_m();if($&&m)try{const F=await Promise.resolve($(m));if(F&&(x(!0),await z(F)))return}catch{}await M()}finally{S()}},[n,k,m,z,M]);i.useImperativeHandle(p,()=>({play:()=>H()}),[H]);const Z=S=>S.stopPropagation(),J=i.useCallback(S=>{if(S.stopPropagation(),!n){if(A){try{_.current?.pause()}catch{}try{window.speechSynthesis?.cancel()}catch{}x(!1);return}H()}},[n,A,H]),O=ye("training-word-card",n?"training-word-card--disabled":"",f?"training-word-card--flipped":"",r?"training-word-card--selectable":"",o?"training-word-card--selected":"");return t.jsx("div",{className:O,onClick:r&&!n?s:void 0,role:r?"button":void 0,"aria-pressed":r?o:void 0,tabIndex:r&&!n?0:void 0,"aria-disabled":r&&n?!0:void 0,onKeyDown:r&&!n?S=>{(S.key==="Enter"||S.key===" "||S.key==="Spacebar")&&(S.preventDefault(),s?.())}:void 0,children:t.jsxs("div",{className:"training-word-card__flipper",style:{transitionDelay:f?"0ms":`${l}ms`},children:[t.jsxs("div",{className:"training-word-card__front",children:[o&&t.jsx("div",{className:"training-word-card__selected-badge",onClick:Z,children:t.jsx(ot,{type:"dot",size:40,position:"inline",animate:!0,icon:d!=null?void 0:"check",number:d??void 0,"aria-label":d!=null?h("training.nthSelected",{n:d}):h("training.selected","\uC120\uD0DD\uB428")})}),t.jsx("div",{className:"training-word-card__image-wrap",children:L?t.jsxs(t.Fragment,{children:[P&&t.jsx("div",{className:"training-word-card__spinner"}),t.jsx("img",{ref:D,className:"training-word-card__image",src:N,alt:y.label||h("common.image","\uC774\uBBF8\uC9C0"),style:{opacity:P?0:1},onLoad:j,onError:R})]}):t.jsx("div",{className:"training-word-card__placeholder"})}),!c&&t.jsxs("div",{className:"training-word-card__body",children:[t.jsx("div",{className:"training-word-card__word",children:y.label}),y.subLabel&&t.jsxs("div",{className:"training-word-card__pronunciation",children:["[",y.subLabel,"]"]}),y.colloquialLabel&&t.jsxs("div",{className:"training-word-card__colloquial caption-1",children:["[",y.colloquialLabel,"]"]})]}),!u&&t.jsx("div",{className:"training-word-card__bottom",onClick:r?Z:void 0,children:t.jsx(ae,{size:v?40:48,type:v?"dot":"bar",icon:A?"pause":"play",label:v?void 0:h("training.playSound","\uC18C\uB9AC \uB4E3\uAE30"),selected:A,onClick:J,disabled:n,ariaLabel:h("training.playSound","\uC18C\uB9AC \uB4E3\uAE30")})})]}),t.jsx("div",{className:"training-word-card__back","aria-hidden":"true",children:t.jsx("img",{src:b4,className:"training-word-card__disabled-symbol",alt:"",draggable:!1})})]})})});let na=0,Vi="",zi="",aa=0;function y4(){return Wi(!1)}function v4(){return Wi(!0)}function Wi(e){const n=typeof document<"u";na===0&&n&&(Vi=document.body.style.overflow,document.body.style.overflow="hidden"),e&&n&&(aa===0&&(zi=document.body.style.paddingRight),aa++,document.body.style.paddingRight="0px"),na++;let a=!1;return()=>{a||(a=!0,na=Math.max(0,na-1),e&&n&&(aa=Math.max(0,aa-1),aa===0&&(document.body.style.paddingRight=zi)),na===0&&n&&(document.body.style.overflow=Vi))}}const x4=260;function hn(e){const{t:n}=de.useTranslation(),{title:a,subtitle:r,headerActions:o,children:s,buttons:l,footer:c,footerClassName:u="",onClose:d,closeDisabled:p=!1,beforeClose:h,closeOnBackdrop:m=!0,className:f="",ariaLabel:C,useTitle:b=!0,inline:g=!1,size:y,resetScrollKey:w}=e||{},[_,v]=i.useState(!1),A=i.useRef(!1),x=i.useRef(null),k=i.useId(),T=i.useRef(null);i.useEffect(()=>{},[g,a,C,f]),i.useEffect(()=>{w!==void 0&&T.current&&(T.current.scrollTop=0)},[w]);const[N,D]=i.useState(!1);i.useEffect(()=>{const O=T.current;if(!O)return;const S=()=>D(O.scrollHeight>O.clientHeight+1);if(S(),typeof ResizeObserver>"u")return;const $=new ResizeObserver(S);$.observe(O);const F=O.firstElementChild;return F&&$.observe(F),()=>$.disconnect()},[s,w]),i.useEffect(()=>{if(!g)return y4()},[g]),i.useEffect(()=>{if(g)return;const O=document.activeElement,S=x.current;return S&&!S.contains(document.activeElement)&&(S.querySelector(Zn)??S).focus(),()=>{O?.focus?.()}},[g]),tr(x,!g);const P=i.useCallback(O=>{A.current||(A.current=!0,v(!0),setTimeout(()=>{try{O&&O()}catch{}},x4))},[]),L=i.useCallback(()=>{p||h&&h()===!1||P(d)},[P,d,p,h]),j=i.useRef(L);i.useEffect(()=>{j.current=L});const R=!g&&!!d;i.useEffect(()=>{if(R)return lr(()=>j.current())},[R]);const M=R&&m,z=i.useRef(!1),H=O=>{z.current=O.target===O.currentTarget},Z=O=>{const S=z.current;z.current=!1,S&&O.target===O.currentTarget&&L()},J=t.jsx("div",{className:`popup ${g?"popup--inline":""} ${_?"popup--closing":""} ${f}`,onPointerDown:M?H:void 0,onClick:M?Z:void 0,children:t.jsxs("div",{ref:x,className:`popup-panel${y?` popup-panel--${y}`:""}`,tabIndex:-1,role:g?void 0:"dialog","aria-modal":g?void 0:!0,"aria-labelledby":!g&&a?k:void 0,"aria-label":!g&&!a&&C?C:void 0,children:[!b&&(o||d)?t.jsxs("div",{className:"popup-close-float",children:[o,d&&t.jsx(ae,{size:40,type:"dot",icon:"x",variant:"transparent-gray",useBorder:!1,onClick:L,disabled:p,ariaLabel:n("common.close","\uB2EB\uAE30")})]}):a||o||d?t.jsxs("div",{className:`popup-header${r?" popup-header--with-subtitle":""}`,children:[t.jsxs("div",{className:"popup-header-main",children:[t.jsx("span",{id:k,className:"popup-title popup-title--left h2",children:a}),r&&t.jsx("span",{className:"popup-subtitle body-3",children:r})]}),t.jsxs("div",{className:"popup-header-actions",children:[o,d&&t.jsx(ae,{size:40,type:"dot",icon:"x",variant:"transparent-gray",useBorder:!1,onClick:L,disabled:p,ariaLabel:n("common.close","\uB2EB\uAE30")})]})]}):null,t.jsx("div",{className:"popup-content",ref:T,tabIndex:N?0:void 0,children:t.jsx("div",{className:"popup-content__inner",children:typeof s=="function"?s({animateThen:P,closeWithAnimation:L}):s})}),l?.length?t.jsx("div",{className:"popup-footer popup-footer--buttons",children:l.map((O,S)=>t.jsx(ae,{size:48,variant:O.variant??"default",label:O.label,disabled:O.disabled,onClick:()=>O.onClick?.({animateThen:P,closeWithAnimation:L})},S))}):c?t.jsx("div",{className:`popup-footer${u?` ${u}`:""}`,children:typeof c=="function"?c({animateThen:P,closeWithAnimation:L}):c}):null]})});return g||typeof document>"u"?J:It.createPortal(J,document.body)}function va(e){return String(e)}const qi=["o","triangle","x"];function Ui(e,n){return e===n?null:n}const Gi={o:"circle",triangle:"triangle",x:"x"},Ki={o:"main",triangle:"warn",x:"danger"};function _4(e){let n=0,a=0,r=0;for(const s of Object.values(e))s==="o"?n++:s==="triangle"?a++:s==="x"&&r++;const o=n+a+r;return{marked:o,o:n,triangle:a,x:r,rate:o===0?null:(n+a*.5)/o}}function kr(e){const n={};for(const[a,r]of Object.entries(e))(r==="o"||r==="triangle"||r==="x")&&(n[a]=r);return n}function Zi(e){const n=[];let a=0;for(const r of e)n.push(a),a+=r;return n}function w4(e,n){return!n&&e>0}const $n={landscape:{width:1123,height:794,printSize:"A4 landscape",printW:"297mm",printH:"210mm"},portrait:{width:794,height:1123,printSize:"A4 portrait",printW:"210mm",printH:"297mm"}};function k4(e="landscape"){const{printSize:n,printW:a,printH:r}=$n[e],o=document.createElement("style");o.textContent=`@page { size: ${n}; margin: 0; } .word-table { width: ${a} !important; height: ${r} !important; }`,document.head.appendChild(o);const s=()=>{document.head.removeChild(o),window.removeEventListener("afterprint",s)};window.addEventListener("afterprint",s),window.print()}function Yi(e,n){if(e.length===0)return[[]];const a=Math.max(1,Math.floor(n)),r=[];for(let o=0;o<e.length;o+=a)r.push(e.slice(o,o+a));return r}const A4={landscape:{1:{cols:1,rows:1},2:{cols:2,rows:1},3:{cols:3,rows:1},4:{cols:2,rows:2},5:{cols:3,rows:2},6:{cols:3,rows:2},7:{cols:4,rows:2},8:{cols:4,rows:2},9:{cols:5,rows:2},10:{cols:5,rows:2},11:{cols:4,rows:3},12:{cols:4,rows:3}},portrait:{1:{cols:1,rows:1},2:{cols:1,rows:2},3:{cols:1,rows:3},4:{cols:1,rows:4},5:{cols:1,rows:5},6:{cols:2,rows:3},7:{cols:2,rows:4},8:{cols:2,rows:4},9:{cols:2,rows:5},10:{cols:2,rows:5},11:{cols:3,rows:4},12:{cols:3,rows:4}}};function N4(e,n){const a=A4[e][n];if(a)return a;const r=Math.max(1,Math.ceil(n)),o=Math.max(1,Math.ceil(Math.sqrt(r*.707)));let s,l;return e==="landscape"?(l=o,s=Math.ceil(r/l)):(s=o,l=Math.ceil(r/s)),(e==="landscape"?s<l:l<s)&&([s,l]=[l,s]),{cols:s,rows:l}}const B4={\uD45C\uC2DC:"word-table-block__content--cut-show",\uC810\uC120:"",\uCF54\uB108:"word-table-block__content--cut-corner",\uBBF8\uD45C\uC2DC:""},Xi={\uBA85:"\uBA85\uC0AC",\uB3D9:"\uB3D9\uC0AC",\uD615:"\uD615\uC6A9\uC0AC",\uBD80:"\uBD80\uC0AC",\uC218:"\uC218\uC0AC",\uAD00:"\uAD00\uD615\uC0AC",\uAC10:"\uAC10\uD0C4\uC0AC",\uC870:"\uC870\uC0AC",\uC811:"\uC811\uC0AC",\uC758:"\uC758\uC874\uBA85\uC0AC",\uB300:"\uB300\uBA85\uC0AC",\uBCF4\uB3D9:"\uBCF4\uC870\uB3D9\uC0AC",\uBCF4\uD615:"\uBCF4\uC870\uD615\uC6A9\uC0AC"},Ji={\uACE0\uC720:"\uACE0\uC720\uC5B4",\uD55C\uC790:"\uD55C\uC790\uC5B4",\uC678\uB798:"\uC678\uB798\uC5B4",\uD63C\uC885:"\uD63C\uC885\uC5B4"};function Ar(e,n){return e?e.split("/").map(a=>n[a]??a).join("/"):""}function Qi(e,n,a,r){if(r!=="\uC810\uC120")return{};const o=e%n,s=Math.floor(e/n),l=o<n-1,c=s<a-1;if(!l&&!c)return{};const u="#ddd",d=f=>`repeating-linear-gradient(to ${f}, ${u} 0, ${u} 5px, transparent 5px, transparent 10px)`,p=[],h=[],m=[];return l&&(p.push(d("bottom")),h.push("1px 100%"),m.push("right center")),c&&(p.push(d("right")),h.push("100% 1px"),m.push("center bottom")),{backgroundImage:p.join(", "),backgroundSize:h.join(", "),backgroundPosition:m.join(", "),backgroundRepeat:"no-repeat",printColorAdjust:"exact",WebkitPrintColorAdjust:"exact"}}const D4=280,S4=240,j4=280,E4=400,T4=120,M4=280;function el(e,n){const a=i.useRef(null),[r,o]=i.useState(1),[s,l]=i.useState(0),c=i.useCallback((u,d)=>{const p=u/e,h=n?d/n:1/0,m=Math.min(1,p,h);o(m),l(Math.max(0,(u-e*m)/2))},[e,n]);return i.useEffect(()=>{const u=a.current;if(!u)return;const d=n?u.parentElement??u:u;if(c(d.clientWidth,d.clientHeight),typeof ResizeObserver>"u")return;const p=new ResizeObserver(([h])=>c(h.contentRect.width,h.contentRect.height));return p.observe(d),()=>p.disconnect()},[c,n]),{scalerRef:a,scale:r,offset:s}}let an=null;function tl({label:e,subLabel:n,colloquialLabel:a,homonum:r,showWord:o=!0,showImage:s=!0,showPronunciation:l=!0,showColloquial:c=!0,buttonSize:u=40,wordInfo:d}){const{t:p}=de.useTranslation(),h=i.useRef(null),m=i.useRef(null),f=i.useRef(null),[C,b]=i.useState(1),[g,y]=i.useState(!1),[w,_]=i.useState(""),[v,A]=i.useState(null),x=n&&n.length>0?n:km()?.(e,r)??"",k=Sn()?.(e,r)??"",{imgRef:T,loading:N,failed:D,onLoad:P,onError:L}=_r(k),j=i.useCallback(()=>A(m.current?.getBoundingClientRect()??null),[]),R=i.useCallback(()=>A(null),[]),M=i.useMemo(()=>{if(!d)return null;const O=[];return d.grade&&O.push(`\uB09C\uC774\uB3C4: ${d.grade}\uB4F1\uAE09`),d.syllables&&O.push(`\uC74C\uC808 \uC218: ${d.syllables}\uC74C\uC808`),d.pos&&O.push(`\uD488\uC0AC: ${Ar(d.pos,Xi)}`),d.wordType&&O.push(`\uC720\uD615: ${Ar(d.wordType,Ji)}`),O.length?O:null},[d]);i.useEffect(()=>{const O=Wa(),S=x||e;if(!O||!S)return;let $=!1;return Promise.resolve(O(S)).then(F=>{!$&&F&&_(F)}),()=>{$=!0}},[x,e]),i.useEffect(()=>()=>{f.current?.pause(),an?.audio===f.current&&(an=null)},[]);const z=i.useCallback(async O=>{if(O.stopPropagation(),g){f.current?.pause(),y(!1),an=null;return}if(w){an?.stop(),y(!0);try{const S=new Audio(w);f.current=S;const $=()=>{y(!1),an?.audio===S&&(an=null)};an={audio:S,stop:()=>{S.pause(),$()}},S.onended=$,S.onerror=$,await S.play()}catch{y(!1),an?.audio===f.current&&(an=null)}}},[g,w]),H=s&&!!k&&!D,Z=H&&o?D4:H?j4:S4,J=H&&o?E4:H?M4:T4;return i.useEffect(()=>{const O=h.current;if(!O||typeof ResizeObserver>"u")return;const S=new ResizeObserver(([$])=>{const{width:F,height:V}=$.contentRect;b(Math.min(F/Z,V/J))});return S.observe(O),()=>S.disconnect()},[Z,J]),t.jsxs("div",{ref:h,className:"word-table-cell",children:[t.jsxs("div",{className:"word-table-cell__inner",style:{transform:`scale(${C})`},children:[H&&t.jsxs("div",{className:"word-table-cell__image-wrap",children:[N&&t.jsx("div",{className:"word-table-cell__spinner"}),t.jsx("img",{ref:T,className:"word-table-cell__image",src:k,alt:e,draggable:!1,style:{opacity:N?0:1},onLoad:P,onError:L})]}),o&&t.jsx("span",{className:"word-table-cell__word h0",children:e}),l&&x&&t.jsxs("span",{className:"word-table-cell__sub h3",children:["[",x,"]"]}),c&&a&&t.jsxs("span",{className:"word-table-cell__colloquial h5",children:["[",a,"]"]})]}),t.jsxs("div",{className:"word-table-cell__play-button","data-audio-src":w,children:[t.jsx("span",{"data-play-state":"play",style:{display:g?"none":void 0},children:t.jsx(ae,{size:u,type:"dot",icon:"play",variant:"transparent-lightGray",useBorder:!1,showTooltipInfo:p("common.play","\uC7AC\uC0DD"),onClick:z})}),t.jsx("span",{"data-play-state":"pause",style:{display:g?void 0:"none"},children:t.jsx(ae,{size:u,type:"dot",icon:"pause",useBorder:!1,selected:!0,showTooltipInfo:p("common.pause","\uBA48\uCDA4"),onClick:z})})]}),d&&t.jsxs("div",{ref:m,className:"word-table-cell__info-button",onPointerEnter:j,onPointerLeave:R,onFocus:j,onBlur:R,children:[t.jsx(ae,{size:u,type:"dot",icon:"info",variant:"transparent-lightGray",useBorder:!1,showTooltipInfo:!1,ariaLabel:p("wordTable.wordInfo","{{word}} \uB0B1\uB9D0 \uC815\uBCF4",{word:e}),onClick:O=>O.stopPropagation()}),v&&M&&t.jsx(_n,{anchorRect:v,items:M,showIndex:!1})]})]})}function Rn({title:e,titleIcon:n,disc:a,className:r,orientation:o="landscape",contentTypes:s=["\uC774\uBBF8\uC9C0","\uB2E8\uC5B4","\uD45C\uC900 \uBC1C\uC74C"],cutLine:l="\uD45C\uC2DC",showOutline:c=!0,showDivLine:u=!0,items:d,editCells:p,count:h,activeCell:m=null,onActivateCell:f,onRemoveCell:C,onRemoveItem:b,onReorder:g,showFillerAdd:y=!1,contentRef:w,buttonSize:_=40,pageNumber:v,pageNumberPosition:A="right",fitHeight:x=!1,scoring:k=!1,marks:T,onMarkClick:N,scoreIndexOffset:D=0}){const P=i.useCallback((ve,he)=>{N?.(D+ve,he)},[N,D]),L=(ve,he)=>{const E=T?.[va(D+ve)]??null;return t.jsx("div",{className:ye("word-table-cell__score",E?"word-table-cell__score--marked":""),children:qi.map(U=>t.jsx("span",{className:ye("word-table-cell__score-slot",E===U?"word-table-cell__score-slot--on":""),children:t.jsx(ae,{size:_,type:"dot",icon:Gi[U],variant:E===U?Ki[U]:"default",selected:E===U,useBorder:!1,showTooltipInfo:!1,ariaLabel:j(`wordTable.scoring.${U}`,{word:he,defaultValue:`${he} ${U}`}),onClick:ee=>{ee.stopPropagation(),P(ve,U)}})},U))})},{t:j}=de.useTranslation(),R=p!==void 0,M=i.useRef(null),[z,H]=i.useState(null),{width:Z,height:J}=$n[o],{scalerRef:O,scale:S,offset:$}=el(Z,x?J:void 0),F=R?p?.length??0:d?.length??0,V=Math.max(h??F,1),{cols:X,rows:I}=N4(o,V),q={word:s.length===0||s.includes("\uB2E8\uC5B4"),image:s.length===0||s.includes("\uC774\uBBF8\uC9C0"),pron:s.length===0||s.includes("\uD45C\uC900 \uBC1C\uC74C"),colloq:s.length===0||s.includes("\uAD6C\uC5B4\uCCB4 \uBC1C\uC74C")},G=R?(p??[]).some(ve=>ve!==null&&ve.length>1):(d??[]).some(ve=>ve.words.length>1),le=ye("word-table-block__content",B4[l],c&&"word-table-block__content--outline",u&&G&&"word-table-block__content--div-line"),pe={transform:`scale(${1/S})`,transformOrigin:"center center"},fe=t.jsx("div",{ref:O,className:"word-table__scaler",style:{height:J*S},children:t.jsx("div",{className:ye("word-table",r),style:{width:Z,height:J,transform:`scale(${S})`,transformOrigin:"top left",marginLeft:$},children:t.jsxs("div",{ref:w,className:le,style:{gridTemplateColumns:`repeat(${X}, 1fr)`,gridTemplateRows:`repeat(${I}, 1fr)`},children:[R?t.jsx(t.Fragment,{children:(p??[]).map((ve,he)=>t.jsx("div",{className:ye("word-table-block__edit-cell",ve?"word-table-block__edit-cell--filled":"word-table-block__edit-cell--empty",m===he?"word-table-block__edit-cell--active":""),style:Qi(he,X,I,l),children:ve?t.jsxs(t.Fragment,{children:[ve.map((E,U)=>t.jsxs(i.Fragment,{children:[U>0&&t.jsx("div",{className:"word-table-block__pair-divider"}),t.jsx(tl,{label:E.word,subLabel:E.pronunciation,colloquialLabel:E.colloquialPronunciation,homonum:E.homonum,showWord:q.word,showImage:q.image,showPronunciation:q.pron,showColloquial:q.colloq,buttonSize:_})]},U)),k&&L(he,ve.map(E=>E.word).join(" / ")),C&&t.jsx("div",{className:"word-table-block__card-close",children:t.jsx(ae,{size:_,type:"dot",icon:"x",variant:"transparent-lightGray",useBorder:!1,showTooltipInfo:ve.length>1?j("wordPrint.removePair","\uB300\uB9BD\uC30D \uBE7C\uAE30"):j("wordPrint.removeWord","\uB2E8\uC5B4 \uBE7C\uAE30"),ariaLabel:ve.length>1?j("wordPrint.removePair","\uB300\uB9BD\uC30D \uBE7C\uAE30"):j("wordPrint.removeWord","\uB2E8\uC5B4 \uBE7C\uAE30"),onClick:()=>C(he)})})]}):f&&t.jsx("div",{style:pe,children:t.jsx(ae,{size:"48",type:"bar",icon:"plus",label:j("wordTable.addWord","\uCD94\uAC00\uD558\uAE30"),onClick:()=>f(he)})})},he))}):t.jsxs(t.Fragment,{children:[(d??[]).map((ve,he)=>t.jsxs("div",{className:`word-table-block__card${g?" word-table-block__card--draggable":""}${z===he?" word-table-block__card--drag-over":""}`,style:Qi(he,X,I,l),draggable:!!g,onDragStart:g?()=>{M.current=he}:void 0,onDragOver:g?E=>{E.preventDefault(),H(he)}:void 0,onDragLeave:g?()=>H(null):void 0,onDrop:g?E=>{E.preventDefault(),M.current!==null&&M.current!==he&&g(M.current,he),M.current=null,H(null)}:void 0,onDragEnd:g?()=>{M.current=null,H(null)}:void 0,children:[ve.words.map((E,U)=>t.jsxs(i.Fragment,{children:[U>0&&t.jsx("div",{className:"word-table-block__pair-divider"}),t.jsx(tl,{label:E.label,subLabel:E.subLabel,colloquialLabel:E.colloquialLabel,homonum:E.homonum,showWord:q.word,showImage:q.image,showPronunciation:q.pron,showColloquial:q.colloq,buttonSize:_,wordInfo:E.grade||E.syllables!=null||E.pos||E.wordType?{grade:E.grade,syllables:E.syllables,pos:E.pos,wordType:E.wordType}:void 0})]},U)),k&&L(he,ve.words.map(E=>E.label).join(" / ")),b&&t.jsx("div",{className:"word-table-block__card-close",children:t.jsx(ae,{size:_,type:"dot",icon:"x",variant:"transparent-lightGray",useBorder:!1,showTooltipInfo:ve.words.length>1?j("wordPrint.removePair","\uB300\uB9BD\uC30D \uBE7C\uAE30"):j("wordPrint.removeWord","\uB2E8\uC5B4 \uBE7C\uAE30"),ariaLabel:ve.words.length>1?j("wordPrint.removePair","\uB300\uB9BD\uC30D \uBE7C\uAE30"):j("wordPrint.removeWord","\uB2E8\uC5B4 \uBE7C\uAE30"),onClick:()=>b(ve.id)})})]},ve.id)),Array.from({length:Math.max(0,X*I-(d?.length??0))}).map((ve,he)=>{const E=(d?.length??0)+he<V;return t.jsx("div",{className:"word-table-block__card word-table-block__card--filler",children:y&&f&&E&&t.jsx("div",{style:pe,children:t.jsx(ae,{size:_,type:"bar",icon:"plus",label:j("wordTable.addWord","\uCD94\uAC00\uD558\uAE30"),onClick:()=>f((d?.length??0)+he)})})},`filler-${he}`)})]}),v&&A!=="none"&&t.jsx("span",{className:`word-table__page-number body-3 word-table__page-number--${A}`,children:j("wordTable.filter.pageIndicator",{current:v.current,total:v.total})})]})})});return e!=null||n||a?t.jsx(Mn,{type:"page",icon:n,title:e,disc:a,className:ye("word-table-block",r),children:fe}):fe}function rn({title:e,headerAction:n,collapsible:a=!1,defaultCollapsed:r=!1,collapsed:o,onCollapsedChange:s,footer:l,sections:c,selected:u={},onSelect:d,align:p,sectionAlign:h,className:m}){const f=(p??(h==="vertical"?"newline":"inline"))==="inline",{t:C}=de.useTranslation(),[b,g]=i.useState(r),y=o??b,w=()=>{const v=!y;g(v),s?.(v)},_=e||n||a;return t.jsxs("div",{className:ye("filter-panel",a?"filter-panel--collapsible":"",y?"filter-panel--collapsed":"",m),children:[_&&t.jsxs("div",{className:"filter-panel__header",children:[t.jsxs("div",{className:"filter-panel__title-row",children:[a&&t.jsx(ae,{size:40,type:"dot",variant:"transparent-gray",useBorder:!1,icon:y?"chevron-down":"chevron-up",ariaLabel:y?C("common.expand","\uD3BC\uCE58\uAE30"):C("common.collapse","\uC811\uAE30"),"aria-expanded":!y,onClick:w}),e&&t.jsx("span",{className:"filter-panel__title h4",children:e})]}),t.jsx("div",{className:"filter-panel__header-actions",children:!y&&n})]}),!y&&t.jsxs(t.Fragment,{children:[t.jsx("div",{className:ye("filter-panel__sections",f?"filter-panel__sections--row":""),children:c.map(v=>{const A=u[v.label],x=A===void 0||(Array.isArray(A)?A.length===0:!1),k=(v.items??[]).filter(N=>N!=null);v.allOption&&k.some(N=>(typeof N=="string"?N:N.value)===Kt)&&Fn(`filter-panel-all-value:${v.label}`,`[FilterPanel] '${v.label}' \uC808\uC5D0 allOption \uACFC \uAC12 '${Kt}' \uC778 \uBCF4\uAE30\uAC00 \uD568\uAED8 \uC788\uB2E4 \u2014 \uB450 \uC120\uD0DD\uC774 \uAD6C\uBCC4\uB418\uC9C0 \uC54A\uB294\uB2E4. \uBCF4\uAE30 \uAC12\uC744 \uBC14\uAFD4\uB77C.`);const T=N=>{const D=typeof N=="string"?N:N.value,P=typeof N!="string"&&!!N.disabled,L=typeof N!="string"?N.labels:void 0,j=typeof N!="string"?N.displayLabel:void 0,R=typeof N!="string"?N.tooltip:void 0,M=typeof N!="string"?N.descriptionTooltip:void 0,z=typeof N!="string"?N.shape:void 0,H=Array.isArray(A)?A.includes(D):A===D;return t.jsx(ae,{size:"keyboard",label:L??j??D,type:v.itemType??(L?"bar":D.length===1?"dot":void 0),selected:H,disabled:P,shape:z,showTooltipInfo:!!R,tooltipInfoText:R,tooltipDescription:M,onClick:()=>d?.(D,v.label)},D)};return t.jsxs(i.Fragment,{children:[v.groupLabel&&t.jsxs("div",{className:"filter-panel__group-label-row",children:[t.jsx("div",{className:"filter-panel__group-label body-2",children:v.groupLabel}),v.groupAction]}),t.jsxs("div",{className:ye("filter-panel__section",v.layout==="row"?"filter-panel__section--row":"",v.block?"filter-panel__section--block":""),children:[t.jsxs("div",{className:"filter-panel__section-label-row",children:[t.jsx("span",{className:"filter-panel__section-label body-3",children:v.displayLabel??v.label}),v.labelAction??(v.labelInfo?t.jsx(ea,{...v.labelInfo}):null)]}),v.type==="note"?t.jsx("div",{className:"filter-panel__note body-3",children:v.content}):v.type==="input"?t.jsx(kn,{className:"filter-panel__textfield",placeholder:v.placeholder,ariaLabel:v.displayLabel??v.label,value:u[v.label]??"",onChange:N=>d?.(N,v.label),error:v.error}):!v.multiple&&v.display==="segmented"?t.jsx(An,{ariaLabel:v.displayLabel??v.label,options:[...v.allOption?[{key:Kt,label:v.allLabel??C("common.all","\uC804\uCCB4")}]:[],...k.map(N=>{const D=typeof N=="string"?N:N.value,P=typeof N!="string"?N.displayLabel:void 0,L=typeof N!="string"?N.disabled:void 0;return{key:D,label:P??D,disabled:L}})],value:x&&v.allOption?Kt:u[v.label],onChange:N=>d?.(N,v.label),size:32}):!v.multiple&&v.display==="dropdown"?t.jsx(zt,{className:"filter-panel__dropdown",size:40,options:[...v.allOption?[{value:Kt,label:v.allLabel??C("common.all","\uC804\uCCB4")}]:[],...k.map(N=>{const D=typeof N=="string"?N:N.value,P=typeof N!="string"?N.displayLabel:void 0,L=typeof N!="string"?N.disabled:void 0;return{value:D,label:P??D,disabled:L}})],value:x&&v.allOption?Kt:u[v.label],onChange:N=>d?.(N,v.label)}):t.jsxs("div",{className:v.groups?"filter-panel__item-groups":"filter-panel__items",children:[v.allOption&&!v.groups&&t.jsx(ae,{size:"keyboard",label:v.allLabel??C("common.all","\uC804\uCCB4"),selected:x,disabled:v.allOptionDisabled,onClick:()=>d?.(Kt,v.label)}),v.groups?v.groups.map((N,D)=>t.jsxs("div",{className:"filter-panel__item-group",children:[D===0&&v.allOption&&t.jsx(ae,{size:"keyboard",label:v.allLabel??C("common.all","\uC804\uCCB4"),selected:x,disabled:v.allOptionDisabled,onClick:()=>d?.(Kt,v.label)}),N.filter(P=>P!=null).map(T)]},D)):k.map(T)]})]})]},v.label)})}),l!=null&&l!==!1&&t.jsx("div",{className:"filter-panel__footer body-3",children:l})]})]})}const L4=[1,2,3,4,5,6,7,8,9,10,11,12],$4=[8,4,2,1];function nl(e,n){return{label:e("wordTable.filter.composition","\uAD6C\uC131"),items:[{value:"\uC774\uBBF8\uC9C0",disabled:!n.hasImage,displayLabel:e("wordTable.filter.image","\uC774\uBBF8\uC9C0")},{value:"\uB2E8\uC5B4",displayLabel:e("wordTable.filter.word","\uB2E8\uC5B4")},{value:"\uD45C\uC900 \uBC1C\uC74C",displayLabel:e("wordTable.filter.standardPron","\uD45C\uC900 \uBC1C\uC74C")},{value:"\uAD6C\uC5B4\uCCB4 \uBC1C\uC74C",disabled:!n.hasColloquial,displayLabel:e("wordTable.filter.colloquialPron","\uAD6C\uC5B4\uCCB4 \uBC1C\uC74C")}],multiple:!0,allOption:!0}}function al(e){return{label:e("wordTable.filter.paperOrientation","\uC6A9\uC9C0 \uBC29\uD5A5"),items:[{value:"\uAC00\uB85C",displayLabel:e("wordTable.filter.landscape","\uAC00\uB85C")},{value:"\uC138\uB85C",displayLabel:e("wordTable.filter.portrait","\uC138\uB85C")}],display:"segmented"}}function rl(e){return{label:e("wordTable.filter.border","\uC678\uACFD\uC120"),items:[{value:"\uD45C\uC2DC",displayLabel:e("wordTable.filter.show","\uD45C\uC2DC")},{value:"\uBBF8\uD45C\uC2DC",displayLabel:e("wordTable.filter.hide","\uBBF8\uD45C\uC2DC")}],display:"segmented"}}function ol(e){return{label:e("wordTable.filter.cutLine","\uC808\uCDE8\uC120"),items:[{value:"\uD45C\uC2DC",displayLabel:e("wordTable.filter.show","\uD45C\uC2DC")},{value:"\uC810\uC120",displayLabel:e("wordTable.filter.dotted","\uC810\uC120")},{value:"\uCF54\uB108",displayLabel:e("wordTable.filter.corner","\uCF54\uB108")},{value:"\uBBF8\uD45C\uC2DC",displayLabel:e("wordTable.filter.hide","\uBBF8\uD45C\uC2DC")}],display:"segmented"}}function sl(e){return{label:e("wordPrint.divLine","\uB300\uB9BD\uC120"),items:[{value:"\uD45C\uC2DC",displayLabel:e("wordTable.filter.show","\uD45C\uC2DC")},{value:"\uBBF8\uD45C\uC2DC",displayLabel:e("wordTable.filter.hide","\uBBF8\uD45C\uC2DC")}],display:"segmented"}}function il(e,n){return{label:e(n.hasPairs?"wordTable.filter.itemsPerPagePair":"wordTable.filter.itemsPerPageWord"),items:[n.itemCount,...$4.filter(a=>a<n.itemCount)].map(a=>({value:`${a}\uAC1C`,displayLabel:e("wordTable.filter.itemsPerPageOption",{count:a})})),display:"segmented"}}function ll(e){return{label:e("wordTable.filter.pageNumber","\uD398\uC774\uC9C0 \uBC88\uD638"),items:[{value:"\uC67C\uCABD",displayLabel:e("wordTable.filter.pageNumberLeft","\uC67C\uCABD")},{value:"\uC911\uC559",displayLabel:e("wordTable.filter.pageNumberCenter","\uC911\uC559")},{value:"\uC624\uB978\uCABD",displayLabel:e("wordTable.filter.pageNumberRight","\uC624\uB978\uCABD")},{value:"\uBBF8\uD45C\uC2DC",displayLabel:e("wordTable.filter.hide","\uBBF8\uD45C\uC2DC")}],display:"segmented"}}const cl={left:"\uC67C\uCABD",center:"\uC911\uC559",right:"\uC624\uB978\uCABD",none:"\uBBF8\uD45C\uC2DC"};function ul(e){return e==="\uC67C\uCABD"?"left":e==="\uC911\uC559"?"center":e==="\uC624\uB978\uCABD"?"right":"none"}function dl(e,n){return{[e("wordTable.filter.composition","\uAD6C\uC131")]:n.contentTypes,[e("wordTable.filter.paperOrientation","\uC6A9\uC9C0 \uBC29\uD5A5")]:n.orientation==="landscape"?"\uAC00\uB85C":"\uC138\uB85C",[e("wordTable.filter.border","\uC678\uACFD\uC120")]:n.showOutline?"\uD45C\uC2DC":"\uBBF8\uD45C\uC2DC",[e("wordTable.filter.cutLine","\uC808\uCDE8\uC120")]:n.cutLine,[e("wordPrint.divLine","\uB300\uB9BD\uC120")]:n.showDivLine?"\uD45C\uC2DC":"\uBBF8\uD45C\uC2DC"}}function pl(e,n,a,r){return a===e("wordTable.filter.composition","\uAD6C\uC131")?n===Kt?(r.setContentTypes(()=>[]),!0):(r.setContentTypes(o=>o.includes(n)?o.filter(s=>s!==n):[...o,n]),!0):a===e("wordTable.filter.paperOrientation","\uC6A9\uC9C0 \uBC29\uD5A5")?(r.setOrientation(n==="\uAC00\uB85C"?"landscape":"portrait"),!0):a===e("wordTable.filter.border","\uC678\uACFD\uC120")?(r.setShowOutline(n==="\uD45C\uC2DC"),!0):a===e("wordTable.filter.cutLine","\uC808\uCDE8\uC120")?(r.setCutLine(n),!0):a===e("wordPrint.divLine","\uB300\uB9BD\uC120")?(r.setShowDivLine(n==="\uD45C\uC2DC"),!0):!1}function R4(e){return"sections"in e}function Nr(e){const{t:n}=de.useTranslation(),{title:a,className:r}=e;if(R4(e))return t.jsx(rn,{className:r,title:a??n("wordTable.filterTitle","\uD45C \uC124\uC815"),sections:e.sections,selected:e.selected,onSelect:e.onSelect,align:"inline"});const{hasImage:o,hasColloquial:s,contentTypes:l,orientation:c,showOutline:u,cutLine:d,showDivLine:p,setters:h,showCutLine:m=!1,showDivLine2:f=!1,middleSections:C=[],extraSelected:b={},onExtraSelect:g}=e,y=[nl(n,{hasImage:o,hasColloquial:s}),al(n),...C,rl(n),...m?[ol(n)]:[],...f?[sl(n)]:[]],w={...dl(n,{contentTypes:l,orientation:c,showOutline:u,cutLine:d,showDivLine:p}),...b},_=(v,A)=>{pl(n,v,A,h)||g?.(v,A)};return t.jsx(rn,{className:r,title:a??n("wordTable.filterTitle","\uD45C \uC124\uC815"),sections:y,selected:w,onSelect:_,sectionAlign:"horizontal"})}function hl(e){return e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">")}function Br(e){return e.replace(/[\\/:*?"<>|]/g,"_").trim()}function P4(e,n,a,r="",o=""){if(e.length===0)return;const s=r?Br(r):"";if(s){const u=document.title;document.title=s;const d=()=>{document.title=u,window.removeEventListener("afterprint",d)};window.addEventListener("afterprint",d)}const l=document.createElement("iframe");l.style.cssText="position:fixed;left:-10000px;top:0;width:1200px;height:900px;border:0;",document.body.appendChild(l);const c=l.contentDocument;if(!c){l.remove();return}c.open(),c.write(Dr(e,n,a,!0,s,o)),c.close(),l.contentWindow?.addEventListener("afterprint",()=>setTimeout(()=>l.remove(),0))}function Dr(e,n,a,r=!1,o="",s=""){o=o?Br(o):"";const l=Array.from(document.styleSheets).flatMap(p=>{try{return Array.from(p.cssRules).map(h=>h.cssText)}catch{return[]}}).join(`
|
|
839
|
+
`),c=document.documentElement.getAttribute("data-theme")||"light",u=s?`<div class="paper-head">${hl(s)}</div>`:"",d=e.map(p=>{const h=p.cloneNode(!0);return h.querySelectorAll('[data-play-state="play"]').forEach(m=>m.style.display=""),h.querySelectorAll('[data-play-state="pause"]').forEach(m=>m.style.display="none"),h.querySelectorAll(".word-table-cell__score-slot:not(.word-table-cell__score-slot--on)").forEach(m=>m.remove()),`<div class="paper-wrap">${u}${h.outerHTML}</div>`}).join(`
|
|
840
840
|
`);return`<!DOCTYPE html>
|
|
841
841
|
<html data-theme="${c}">
|
|
842
842
|
<head>
|
|
843
843
|
<meta charset="utf-8">
|
|
844
|
-
${o?`<title>${
|
|
844
|
+
${o?`<title>${hl(o)}</title>`:""}
|
|
845
845
|
<style>${l}</style>
|
|
846
846
|
<style>
|
|
847
847
|
* { box-sizing: border-box; }
|
|
@@ -962,17 +962,17 @@ ${_.badge}`:_.badge:void 0;if(A&&u(_.code))return null;if(!_.badge&&!d)return p(
|
|
|
962
962
|
`:""}
|
|
963
963
|
<\/script>
|
|
964
964
|
</body>
|
|
965
|
-
</html>`}function Dr({getElements:e,paperW:n,paperH:a,fileName:r="",onPopupBlocked:o,header:s=""}){const l=i.useCallback(()=>{R4(e(),n,a,r,s)},[e,n,a,r,s]),c=i.useCallback(()=>{const d=e();if(d.length===0)return;const p=window.open("","_blank");if(!p){o?.();return}p.document.write(Sr(d,n,a,!1,r,s)),p.document.close()},[e,n,a,r,o,s]),u=i.useCallback(()=>{const d=e();if(d.length===0)return;const p=Sr(d,n,a,!1,r,s),h=new Blob([p],{type:"text/html;charset=utf-8"}),m=URL.createObjectURL(h),C=r&&Br(r),f=Object.assign(document.createElement("a"),{href:m,download:`${C}.html`});document.body.appendChild(f),f.click(),document.body.removeChild(f),URL.revokeObjectURL(m)},[e,n,a,r,s]);return{print:l,openNewWindow:c,downloadHtml:u}}function hl(e){const{t:n}=de.useTranslation(),[a,r]=i.useState("landscape"),[o,s]=i.useState(["\uC774\uBBF8\uC9C0","\uB2E8\uC5B4","\uD45C\uC900 \uBC1C\uC74C"]),[l,c]=i.useState("\uD45C\uC2DC"),[u,d]=i.useState(!0),[p,h]=i.useState(!0),[m,C]=i.useState(8),[f,b]=i.useState("right"),g=e.length,y=e.some(L=>L.words.length>1),w=e.some(L=>L.words.some(E=>!!E.colloquialLabel)),_=Math.min(m,Math.max(g,1)),v=i.useMemo(()=>Zi(e,_),[e,_]),A=v.length>1,x=_,[k,M]=i.useState(!1);i.useEffect(()=>{let L=!1;if(!Dn()){M(!1);return}return Promise.all(e.flatMap(E=>E.words.map(R=>ns(R.label,R.homonum)))).then(E=>{L||M(E.some(Boolean))}),()=>{L=!0}},[e]);const N=i.useMemo(()=>[tl(n,{hasImage:k,hasColloquial:w}),nl(n),...g>0?[sl(n,{hasPairs:y,itemCount:g})]:[],...A?[il(n)]:[],al(n),...x>1?[rl(n)]:[],...y?[ol(n)]:[]],[n,k,w,g,y,A,x]),D={...ul(n,{contentTypes:o,orientation:a,showOutline:u,cutLine:l,showDivLine:p}),...g>0?{[n(y?"wordTable.filter.itemsPerPagePair":"wordTable.filter.itemsPerPageWord")]:`${_}\uAC1C`}:{},...A?{[n("wordTable.filter.pageNumber","\uD398\uC774\uC9C0 \uBC88\uD638")]:ll[f]}:{}},P=i.useCallback((L,E)=>{dl(n,L,E,{setContentTypes:s,setOrientation:r,setShowOutline:d,setCutLine:c,setShowDivLine:h})||(E===n("wordTable.filter.itemsPerPagePair","\uD398\uC774\uC9C0\uB2F9 \uB300\uB9BD\uC30D \uC218")||E===n("wordTable.filter.itemsPerPageWord","\uD398\uC774\uC9C0\uB2F9 \uB2E8\uC5B4 \uC218")?C(parseInt(L)):E===n("wordTable.filter.pageNumber","\uD398\uC774\uC9C0 \uBC88\uD638")&&b(cl(L)))},[n]);return{settings:{orientation:a,contentTypes:o,cutLine:l,showOutline:u,showDivLine:p,count:x},filterSections:N,filterSelected:D,handleSelect:P,pages:v,isPaginated:A,pageNumberPosition:f}}function P4({items:e,words:n,title:a,subtitle:r,emptyText:o,buttons:s,renderButtons:l,renderFooter:c,footerClassName:u,printFileName:d,showSettings:p,autoPrint:h,className:m,onClose:C,scoring:f=!1,onScoreChange:b,printHeader:g,beforeClose:y}){const{t:w}=de.useTranslation(),_=i.useMemo(()=>Array.isArray(e)?e:(Array.isArray(n)?n:[]).filter(le=>typeof le=="string"&&le.length>0).map((le,pe)=>({id:`${le}-${pe}`,words:[{label:le}]})),[e,n]),{settings:v,filterSections:A,filterSelected:x,handleSelect:k,pages:M,isPaginated:N,pageNumberPosition:D}=hl(_),P=i.useMemo(()=>Ki(M.map(le=>le.length)),[M]),[L,E]=i.useState({}),R=i.useCallback((le,pe)=>{E(Ce=>({...Ce,[va(le)]:qi(Ce[va(le)]??null,pe)}))},[]),S=i.useRef(b);i.useEffect(()=>{S.current=b}),i.useEffect(()=>{S.current?.(kr(L))},[L]);const V=i.useMemo(()=>kr(L),[L]),Y=i.useRef(null),{toastMessage:X,toastKey:J,showWarning:O,clearToast:j}=Js("warning"),$=i.useRef([]),F=i.useCallback(()=>N?$.current.filter(le=>le!==null):Y.current?[Y.current]:[],[N]),{print:H,openNewWindow:Z}=Dr({getElements:F,paperW:$n[v.orientation].width,paperH:$n[v.orientation].height,fileName:d??"",header:g??"",onPopupBlocked:()=>O(w("wordTable.popupBlocked","\uD31D\uC5C5\uC774 \uCC28\uB2E8\uB418\uC5C8\uC2B5\uB2C8\uB2E4. \uBE0C\uB77C\uC6B0\uC800 \uC124\uC815\uC5D0\uC11C \uD31D\uC5C5\uC744 \uD5C8\uC6A9\uD574 \uC8FC\uC138\uC694."))}),I=i.useMemo(()=>c?void 0:l?l({print:H,openNewWindow:Z}):d?[{label:w("wordTable.openNewWindow","\uC0C8 \uCC3D\uC73C\uB85C \uBCF4\uAE30"),variant:"default",onClick:()=>Z()},{label:w("wordTable.print","\uC778\uC1C4\uD558\uAE30"),variant:"default",onClick:()=>H()},...s??[]]:s,[c,l,d,s,w,H,Z]),W=i.useMemo(()=>c?c({print:H,openNewWindow:Z}):void 0,[c,H,Z]),U=i.useRef(!1);return i.useEffect(()=>{if(!h||U.current)return;U.current=!0;const le=window.setTimeout(()=>H(),100);return()=>window.clearTimeout(le)},[h,H]),t.jsxs(hn,{title:a??w("keyWords.title","\uC8FC\uC694 \uB2E8\uC5B4"),subtitle:r,size:"large",className:ye("word-table-popup",m),buttons:I,footer:W,footerClassName:u,beforeClose:y,onClose:C,children:[_.length>0?t.jsxs("div",{className:"word-table-popup__body",children:[p&&t.jsx(Nr,{sections:A,selected:x,onSelect:k}),N?t.jsx("div",{className:"word-table-popup__pages",children:M.map((le,pe)=>t.jsx(Rn,{items:le,orientation:v.orientation,contentTypes:v.contentTypes,cutLine:v.cutLine,showOutline:v.showOutline,showDivLine:v.showDivLine,count:v.count,contentRef:Ce=>{$.current[pe]=Ce},pageNumber:{current:pe+1,total:M.length},pageNumberPosition:D,scoring:f,scoreIndexOffset:P[pe],marks:V,onMarkClick:R},pe))}):t.jsx("div",{className:"word-table-popup__table",children:t.jsx(Rn,{items:_,orientation:v.orientation,contentTypes:v.contentTypes,cutLine:v.cutLine,showOutline:v.showOutline,showDivLine:v.showDivLine,count:v.count,contentRef:Y,fitHeight:!0,scoring:f,marks:V,onMarkClick:R})})]}):t.jsx("p",{className:"word-table-popup__empty body-3",children:o??w("keyWords.empty","\uCD94\uCD9C\uB41C \uC8FC\uC694 \uB2E8\uC5B4\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4.")}),t.jsx(Tn,{message:X,position:"top",onClose:j},J)]})}const I4=new Set(["x","triangle"]);function F4(e,n){const a=[];for(let r=0;r<e.length;r++){const o=n[String(r)];o&&I4.has(o)&&a.push(e[r])}return a}function O4(e,n){const[,a,r]=Qa(n).split("-"),o=`${a}.${r}`,s=/\s*(?:(\d+)차\s*)?복습\s*\d{2}\.\d{2}$/;let l=e.trim(),c=1;for(;;){const d=s.exec(l);if(!d)break;c=Math.max(c,(d[1]?Number(d[1]):1)+1),l=l.slice(0,d.index).trim()}const u=c>=2?`${c}\uCC28 `:"";return`${l||"\uB2E8\uC5B4\uD45C"} ${u}\uBCF5\uC2B5 ${o}`}function H4(e,n){const a={};for(const[r,o]of Object.entries(n)){if(o!=="o"&&o!=="triangle"&&o!=="x")continue;const s=Number(r),l=e[s];l&&(a[r]=l)}return a}function V4(e){return e.map(n=>n.label).join(" / ")}function z4(e,n,a){const r=us(a);return[e.trim(),r,n.trim()].filter(Boolean).join(" \xB7 ")}const W4=(()=>{let e=null;return()=>(e||(e=new Intl.Collator("ko")),e)})();function xa(e,n){return W4().compare(e,n)}function q4(e,n){return typeof e=="number"&&typeof n=="number"?e-n:xa(e==null?"":String(e),n==null?"":String(n))}function ml(e,n,a){return a===0?0:(e+n*.5)/a}function U4(e){const n=new Map,a=[...e].sort((o,s)=>o.scoredAt.localeCompare(s.scoredAt));for(const o of a)for(const[s,l]of Object.entries(o.marks)){const c=o.labels?.[s];if(!c)continue;const u=n.get(c)??{o:0,triangle:0,x:0,latest:l,latestAt:o.scoredAt};if(l==="o")u.o++;else if(l==="triangle")u.triangle++;else if(l==="x")u.x++;else continue;u.latest=l,u.latestAt=o.scoredAt,n.set(c,u)}const r=[];for(const[o,s]of n){const l=s.o+s.triangle+s.x;r.push({label:o,tried:l,o:s.o,triangle:s.triangle,x:s.x,rate:ml(s.o,s.triangle,l),latest:s.latest,latestAt:s.latestAt})}return r.sort((o,s)=>o.rate-s.rate||s.tried-o.tried||xa(o.label,s.label)),r}function G4(e){const n=new Map;for(const r of e){const o=r.tableId??`name:${r.tableName}`,s=n.get(o)??{tableName:r.tableName,tableId:r.tableId,rows:[]};s.rows.push(r),n.set(o,s)}const a=[];for(const r of n.values()){const o=[...r.rows].sort((l,c)=>l.scoredAt.localeCompare(c.scoredAt)),s=o.map(l=>{const c=Object.values(l.marks),u=c.filter(p=>p==="o").length,d=c.filter(p=>p==="triangle").length;return ml(u,d,c.filter(p=>p==="o"||p==="triangle"||p==="x").length)});a.push({tableName:r.tableName,tableId:r.tableId,rates:s,times:o.map(l=>l.scoredAt),delta:s.length>=2?s[s.length-1]-s[0]:null})}return a.sort((r,o)=>(o.times[o.times.length-1]??"").localeCompare(r.times[r.times.length-1]??"")),a}function K4(e,n=8){return e.filter(a=>a.latest!=="o").slice(0,n)}function Z4(e){const n=new Map;let a=0,r=0;const o=[...e].sort((l,c)=>l.answeredAt.localeCompare(c.answeredAt));for(const l of o){if(l.isCorrect==null)continue;const c=l.itemTitle?.trim();if(!c){r++;continue}a++;const u=l.itemId?.trim()||c,d=`${l.trainingType}|${u}`,p=n.get(d)??{trainingType:l.trainingType,itemId:u,title:c,tried:0,wrong:0,latestCorrect:l.isCorrect,latestAt:l.answeredAt,lastSelected:l.selected,setIds:[]};p.tried++,l.isCorrect||p.wrong++,p.title=c,p.latestCorrect=l.isCorrect,p.latestAt=l.answeredAt,p.lastSelected=l.selected,l.setId&&!p.setIds.includes(l.setId)&&p.setIds.unshift(l.setId),n.set(d,p)}const s=[...n.entries()].map(([l,c])=>({key:l,trainingType:c.trainingType,itemId:c.itemId,title:c.title,tried:c.tried,wrong:c.wrong,rate:c.tried===0?0:(c.tried-c.wrong)/c.tried,latestCorrect:c.latestCorrect,latestAt:c.latestAt,lastSelected:c.lastSelected,setIds:c.setIds}));return s.sort((l,c)=>l.rate-c.rate||c.tried-l.tried||xa(l.title,c.title)),{items:s,counted:a,skippedNoTitle:r}}function Y4(e,n=8){return e.filter(a=>!a.latestCorrect).slice(0,n)}function X4(e){const n=new Map;for(const r of e){const o=n.get(r.trainingType)??[];o.push(r),n.set(r.trainingType,o)}const a=[...n.entries()].map(([r,o])=>({trainingType:r,items:o,pending:o.filter(s=>!s.latestCorrect).length}));return a.sort((r,o)=>o.pending-r.pending||r.trainingType.localeCompare(o.trainingType)),a}const jr=["LISTEN_IN_NOISE","SHORT_STORY","LONG_STORY","ORDERING_SENTENCE"];function J4(e){const n=new Map;let a=0;for(const s of e){if(s.latestCorrect)continue;const l=s.setIds[0];if(!l){a++;continue}const c=`${s.trainingType}|${l}`,u=n.get(c)??{setId:l,trainingType:s.trainingType,pending:0};u.pending++,n.set(c,u)}const r=(s,l)=>l.pending-s.pending||s.trainingType.localeCompare(l.trainingType)||s.setId.localeCompare(l.setId),o=[...n.values()];return{sentence:o.filter(s=>jr.includes(s.trainingType)).sort(r),word:o.filter(s=>!jr.includes(s.trainingType)).sort(r),noSet:a}}function Q4(e,n,a=5){const r=new Set(n);if(r.size===0)return[];const o=[];for(const s of e){const l=new Set,c=[];for(const u of s.cellLabels)r.has(u)&&!l.has(u)&&(l.add(u),c.push(u));c.length!==0&&o.push({id:s.id,name:s.name,kind:s.kind,covered:c,totalCells:s.cellLabels.length})}return o.sort((s,l)=>l.covered.length-s.covered.length||s.totalCells-l.totalCells||xa(s.name,l.name)),o.slice(0,Math.max(0,a))}function eb(e,n){const a=new Set(e.flatMap(r=>r.covered));return n.filter(r=>!a.has(r))}function tb(e,n){const a=new Map;for(const o of e)for(const s of o.cells){const l=o.labelOf(s);a.has(l)||a.set(l,s)}const r=[];for(const o of n){const s=a.get(o);s!==void 0&&r.push(s)}return r}function Er(e,n,a){return typeof e=="string"&&e?e:n.replace(/\{\{(\w+)\}\}/g,(r,o)=>String(a[o]))}function nb(e,n){if(!e||e<=0)return"-";const a=Math.floor(e/60),r=e%60;return n?n(a,r):a>0&&r>0?Er(Pt.t("customers.duration.minSec",{m:a,s:r,defaultValue:"{{m}}\uBD84 {{s}}\uCD08"}),"{{m}}\uBD84 {{s}}\uCD08",{m:a,s:r}):a>0?Er(Pt.t("customers.duration.min",{m:a,defaultValue:"{{m}}\uBD84"}),"{{m}}\uBD84",{m:a}):Er(Pt.t("customers.duration.sec",{s:r,defaultValue:"{{s}}\uCD08"}),"{{s}}\uCD08",{s:r})}function ab(e,n){const a=[],r=new Set;for(const o of e){const s=n(o);r.has(s)||(r.add(s),a.push({key:s,value:o,pinned:!1}))}return a}function rb(e,n){return e.map(a=>a.key===n?{...a,pinned:!a.pinned}:a)}function ob(e,n){return e.filter(a=>a.key!==n)}function sb(e,n,a){const r=e.filter(d=>d.pinned),o=new Set(r.map(d=>d.key)),s=e.length-r.length,l=[],c=new Set(o);for(const d of n){if(l.length>=s)break;const p=a(d);c.has(p)||(c.add(p),l.push({key:p,value:d,pinned:!1}))}const u=[...l];return e.map(d=>d.pinned?d:u.shift()).filter(d=>d!==void 0)}function ib(e){return e.map(n=>n.value)}function lb(e){const{category:n={},isSelected:a=!1,onClick:r}=e||{},o=n?.key?` icon-grid-menu__button--${n.key}`:"",s=i.useId();return t.jsxs("div",{className:`icon-grid-menu__button-wrapper${o}`,children:[t.jsx("button",{className:`icon-grid-menu__button${a?" icon-grid-menu__button--selected":""}`,"data-key":n?.key,type:"button",onClick:a?void 0:r,"aria-pressed":a,"aria-labelledby":s,children:t.jsx(Oe,{icon:n.icon,label:n.label,className:"icon-grid-menu__button-icon",imgClassName:"icon-grid-menu__button-icon-image",maskClassName:"icon-grid-menu__button-icon-mask",svgClassName:"icon-grid-menu__button-icon-svg"})}),t.jsx("span",{id:s,className:"icon-grid-menu__button-label button-1",children:n.label})]})}function cb(e){const{categories:n=[],selected:a,onSelect:r,size:o="medium"}=e||{},s=a!==void 0?a:(n&&n[0]?.key)??null,[l,c]=i.useState(s??null);i.useEffect(()=>{a!==void 0&&c(a)},[a]);const u=i.useRef(r),d=i.useRef(l),p=i.useRef(a!==void 0);i.useEffect(()=>{!p.current&&d.current&&typeof u.current=="function"&&u.current(d.current)},[]);const h=i.useCallback(m=>{const C=l===m?null:m;c(C),r?.(C)},[l,r]);return t.jsx("div",{className:`icon-grid-menu icon-grid-menu--${o}`,children:(n||[]).map(m=>t.jsx(lb,{category:m,isSelected:l===m.key,onClick:()=>h(m.key)},m.key))})}function ub({subs:e=[],selected:n,onSelect:a,size:r="medium"}){const o=r==="small"?32:40;return t.jsx("div",{className:`choice-chips choice-chips--${r}`,children:t.jsx("div",{className:"choice-chips__list",children:e.map(s=>t.jsx(ae,{size:o,type:"bar",label:s.label,selected:n===s.key,className:"choice-chips__button",onClick:()=>a?.(s.key)},s.key))})})}function db({onTermsClick:e,onPrivacyClick:n,contact:a}={}){const r=a?.email??"support@ihab.co.kr",o=a?.tel??"031-380-3724",{t:s}=de.useTranslation();return t.jsx("footer",{className:"site-footer",children:t.jsxs("div",{className:"safearea",children:[t.jsxs("div",{className:"site-footer__top",children:[t.jsx("div",{className:"site-footer__brand",children:t.jsx("div",{className:"site-footer__lead h3",children:s("footer.lead",`\uC544\uC774\uD574\uBE0C\uB294 \uC18C\uB9AC\uB97C \uD1B5\uD574
|
|
965
|
+
</html>`}function Sr({getElements:e,paperW:n,paperH:a,fileName:r="",onPopupBlocked:o,header:s=""}){const l=i.useCallback(()=>{P4(e(),n,a,r,s)},[e,n,a,r,s]),c=i.useCallback(()=>{const d=e();if(d.length===0)return;const p=window.open("","_blank");if(!p){o?.();return}p.document.write(Dr(d,n,a,!1,r,s)),p.document.close()},[e,n,a,r,o,s]),u=i.useCallback(()=>{const d=e();if(d.length===0)return;const p=Dr(d,n,a,!1,r,s),h=new Blob([p],{type:"text/html;charset=utf-8"}),m=URL.createObjectURL(h),f=r&&Br(r),C=Object.assign(document.createElement("a"),{href:m,download:`${f}.html`});document.body.appendChild(C),C.click(),document.body.removeChild(C),URL.revokeObjectURL(m)},[e,n,a,r,s]);return{print:l,openNewWindow:c,downloadHtml:u}}function ml(e){const{t:n}=de.useTranslation(),[a,r]=i.useState("landscape"),[o,s]=i.useState(["\uC774\uBBF8\uC9C0","\uB2E8\uC5B4","\uD45C\uC900 \uBC1C\uC74C"]),[l,c]=i.useState("\uD45C\uC2DC"),[u,d]=i.useState(!0),[p,h]=i.useState(!0),[m,f]=i.useState(8),[C,b]=i.useState("right"),g=e.length,y=e.some(L=>L.words.length>1),w=e.some(L=>L.words.some(j=>!!j.colloquialLabel)),_=Math.min(m,Math.max(g,1)),v=i.useMemo(()=>Yi(e,_),[e,_]),A=v.length>1,x=_,[k,T]=i.useState(!1);i.useEffect(()=>{let L=!1;if(!Sn()){T(!1);return}return Promise.all(e.flatMap(j=>j.words.map(R=>ns(R.label,R.homonum)))).then(j=>{L||T(j.some(Boolean))}),()=>{L=!0}},[e]);const N=i.useMemo(()=>[nl(n,{hasImage:k,hasColloquial:w}),al(n),...g>0?[il(n,{hasPairs:y,itemCount:g})]:[],...A?[ll(n)]:[],rl(n),...x>1?[ol(n)]:[],...y?[sl(n)]:[]],[n,k,w,g,y,A,x]),D={...dl(n,{contentTypes:o,orientation:a,showOutline:u,cutLine:l,showDivLine:p}),...g>0?{[n(y?"wordTable.filter.itemsPerPagePair":"wordTable.filter.itemsPerPageWord")]:`${_}\uAC1C`}:{},...A?{[n("wordTable.filter.pageNumber","\uD398\uC774\uC9C0 \uBC88\uD638")]:cl[C]}:{}},P=i.useCallback((L,j)=>{pl(n,L,j,{setContentTypes:s,setOrientation:r,setShowOutline:d,setCutLine:c,setShowDivLine:h})||(j===n("wordTable.filter.itemsPerPagePair","\uD398\uC774\uC9C0\uB2F9 \uB300\uB9BD\uC30D \uC218")||j===n("wordTable.filter.itemsPerPageWord","\uD398\uC774\uC9C0\uB2F9 \uB2E8\uC5B4 \uC218")?f(parseInt(L)):j===n("wordTable.filter.pageNumber","\uD398\uC774\uC9C0 \uBC88\uD638")&&b(ul(L)))},[n]);return{settings:{orientation:a,contentTypes:o,cutLine:l,showOutline:u,showDivLine:p,count:x},filterSections:N,filterSelected:D,handleSelect:P,pages:v,isPaginated:A,pageNumberPosition:C}}function I4({items:e,words:n,title:a,subtitle:r,emptyText:o,buttons:s,renderButtons:l,renderFooter:c,footerClassName:u,printFileName:d,showSettings:p,autoPrint:h,className:m,onClose:f,scoring:C=!1,onScoreChange:b,printHeader:g,beforeClose:y}){const{t:w}=de.useTranslation(),_=i.useMemo(()=>Array.isArray(e)?e:(Array.isArray(n)?n:[]).filter(le=>typeof le=="string"&&le.length>0).map((le,pe)=>({id:`${le}-${pe}`,words:[{label:le}]})),[e,n]),{settings:v,filterSections:A,filterSelected:x,handleSelect:k,pages:T,isPaginated:N,pageNumberPosition:D}=ml(_),P=i.useMemo(()=>Zi(T.map(le=>le.length)),[T]),[L,j]=i.useState({}),R=i.useCallback((le,pe)=>{j(fe=>({...fe,[va(le)]:Ui(fe[va(le)]??null,pe)}))},[]),M=i.useRef(b);i.useEffect(()=>{M.current=b}),i.useEffect(()=>{M.current?.(kr(L))},[L]);const z=i.useMemo(()=>kr(L),[L]),H=i.useRef(null),{toastMessage:Z,toastKey:J,showWarning:O,clearToast:S}=Js("warning"),$=i.useRef([]),F=i.useCallback(()=>N?$.current.filter(le=>le!==null):H.current?[H.current]:[],[N]),{print:V,openNewWindow:X}=Sr({getElements:F,paperW:$n[v.orientation].width,paperH:$n[v.orientation].height,fileName:d??"",header:g??"",onPopupBlocked:()=>O(w("wordTable.popupBlocked","\uD31D\uC5C5\uC774 \uCC28\uB2E8\uB418\uC5C8\uC2B5\uB2C8\uB2E4. \uBE0C\uB77C\uC6B0\uC800 \uC124\uC815\uC5D0\uC11C \uD31D\uC5C5\uC744 \uD5C8\uC6A9\uD574 \uC8FC\uC138\uC694."))}),I=i.useMemo(()=>c?void 0:l?l({print:V,openNewWindow:X}):d?[{label:w("wordTable.openNewWindow","\uC0C8 \uCC3D\uC73C\uB85C \uBCF4\uAE30"),variant:"default",onClick:()=>X()},{label:w("wordTable.print","\uC778\uC1C4\uD558\uAE30"),variant:"default",onClick:()=>V()},...s??[]]:s,[c,l,d,s,w,V,X]),q=i.useMemo(()=>c?c({print:V,openNewWindow:X}):void 0,[c,V,X]),G=i.useRef(!1);return i.useEffect(()=>{if(!h||G.current)return;G.current=!0;const le=window.setTimeout(()=>V(),100);return()=>window.clearTimeout(le)},[h,V]),t.jsxs(hn,{title:a??w("keyWords.title","\uC8FC\uC694 \uB2E8\uC5B4"),subtitle:r,size:"large",className:ye("word-table-popup",m),buttons:I,footer:q,footerClassName:u,beforeClose:y,onClose:f,children:[_.length>0?t.jsxs("div",{className:"word-table-popup__body",children:[p&&t.jsx(Nr,{sections:A,selected:x,onSelect:k}),N?t.jsx("div",{className:"word-table-popup__pages",children:T.map((le,pe)=>t.jsx(Rn,{items:le,orientation:v.orientation,contentTypes:v.contentTypes,cutLine:v.cutLine,showOutline:v.showOutline,showDivLine:v.showDivLine,count:v.count,contentRef:fe=>{$.current[pe]=fe},pageNumber:{current:pe+1,total:T.length},pageNumberPosition:D,scoring:C,scoreIndexOffset:P[pe],marks:z,onMarkClick:R},pe))}):t.jsx("div",{className:"word-table-popup__table",children:t.jsx(Rn,{items:_,orientation:v.orientation,contentTypes:v.contentTypes,cutLine:v.cutLine,showOutline:v.showOutline,showDivLine:v.showDivLine,count:v.count,contentRef:H,fitHeight:!0,scoring:C,marks:z,onMarkClick:R})})]}):t.jsx("p",{className:"word-table-popup__empty body-3",children:o??w("keyWords.empty","\uCD94\uCD9C\uB41C \uC8FC\uC694 \uB2E8\uC5B4\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4.")}),t.jsx(Tn,{message:Z,position:"top",onClose:S},J)]})}const F4=new Set(["x","triangle"]);function O4(e,n){const a=[];for(let r=0;r<e.length;r++){const o=n[String(r)];o&&F4.has(o)&&a.push(e[r])}return a}function H4(e,n){const[,a,r]=Qa(n).split("-"),o=`${a}.${r}`,s=/\s*(?:(\d+)차\s*)?복습\s*\d{2}\.\d{2}$/;let l=e.trim(),c=1;for(;;){const d=s.exec(l);if(!d)break;c=Math.max(c,(d[1]?Number(d[1]):1)+1),l=l.slice(0,d.index).trim()}const u=c>=2?`${c}\uCC28 `:"";return`${l||"\uB2E8\uC5B4\uD45C"} ${u}\uBCF5\uC2B5 ${o}`}function V4(e,n){const a={};for(const[r,o]of Object.entries(n)){if(o!=="o"&&o!=="triangle"&&o!=="x")continue;const s=Number(r),l=e[s];l&&(a[r]=l)}return a}function z4(e){return e.map(n=>n.label).join(" / ")}function W4(e,n,a){const r=us(a);return[e.trim(),r,n.trim()].filter(Boolean).join(" \xB7 ")}const q4=(()=>{let e=null;return()=>(e||(e=new Intl.Collator("ko")),e)})();function xa(e,n){return q4().compare(e,n)}function U4(e,n){return typeof e=="number"&&typeof n=="number"?e-n:xa(e==null?"":String(e),n==null?"":String(n))}function Cl(e,n,a){return a===0?0:(e+n*.5)/a}function G4(e){const n=new Map,a=[...e].sort((o,s)=>o.scoredAt.localeCompare(s.scoredAt));for(const o of a)for(const[s,l]of Object.entries(o.marks)){const c=o.labels?.[s];if(!c)continue;const u=n.get(c)??{o:0,triangle:0,x:0,latest:l,latestAt:o.scoredAt};if(l==="o")u.o++;else if(l==="triangle")u.triangle++;else if(l==="x")u.x++;else continue;u.latest=l,u.latestAt=o.scoredAt,n.set(c,u)}const r=[];for(const[o,s]of n){const l=s.o+s.triangle+s.x;r.push({label:o,tried:l,o:s.o,triangle:s.triangle,x:s.x,rate:Cl(s.o,s.triangle,l),latest:s.latest,latestAt:s.latestAt})}return r.sort((o,s)=>o.rate-s.rate||s.tried-o.tried||xa(o.label,s.label)),r}function K4(e){const n=new Map;for(const r of e){const o=r.tableId??`name:${r.tableName}`,s=n.get(o)??{tableName:r.tableName,tableId:r.tableId,rows:[]};s.rows.push(r),n.set(o,s)}const a=[];for(const r of n.values()){const o=[...r.rows].sort((l,c)=>l.scoredAt.localeCompare(c.scoredAt)),s=o.map(l=>{const c=Object.values(l.marks),u=c.filter(p=>p==="o").length,d=c.filter(p=>p==="triangle").length;return Cl(u,d,c.filter(p=>p==="o"||p==="triangle"||p==="x").length)});a.push({tableName:r.tableName,tableId:r.tableId,rates:s,times:o.map(l=>l.scoredAt),delta:s.length>=2?s[s.length-1]-s[0]:null})}return a.sort((r,o)=>(o.times[o.times.length-1]??"").localeCompare(r.times[r.times.length-1]??"")),a}function Z4(e,n=8){return e.filter(a=>a.latest!=="o").slice(0,n)}function Y4(e){const n=new Map;let a=0,r=0;const o=[...e].sort((l,c)=>l.answeredAt.localeCompare(c.answeredAt));for(const l of o){if(l.isCorrect==null)continue;const c=l.itemTitle?.trim();if(!c){r++;continue}a++;const u=l.itemId?.trim()||c,d=`${l.trainingType}|${u}`,p=n.get(d)??{trainingType:l.trainingType,itemId:u,title:c,tried:0,wrong:0,latestCorrect:l.isCorrect,latestAt:l.answeredAt,lastSelected:l.selected,setIds:[]};p.tried++,l.isCorrect||p.wrong++,p.title=c,p.latestCorrect=l.isCorrect,p.latestAt=l.answeredAt,p.lastSelected=l.selected,l.setId&&!p.setIds.includes(l.setId)&&p.setIds.unshift(l.setId),n.set(d,p)}const s=[...n.entries()].map(([l,c])=>({key:l,trainingType:c.trainingType,itemId:c.itemId,title:c.title,tried:c.tried,wrong:c.wrong,rate:c.tried===0?0:(c.tried-c.wrong)/c.tried,latestCorrect:c.latestCorrect,latestAt:c.latestAt,lastSelected:c.lastSelected,setIds:c.setIds}));return s.sort((l,c)=>l.rate-c.rate||c.tried-l.tried||xa(l.title,c.title)),{items:s,counted:a,skippedNoTitle:r}}function X4(e,n=8){return e.filter(a=>!a.latestCorrect).slice(0,n)}function J4(e){const n=new Map;for(const r of e){const o=n.get(r.trainingType)??[];o.push(r),n.set(r.trainingType,o)}const a=[...n.entries()].map(([r,o])=>({trainingType:r,items:o,pending:o.filter(s=>!s.latestCorrect).length}));return a.sort((r,o)=>o.pending-r.pending||r.trainingType.localeCompare(o.trainingType)),a}const jr=["LISTEN_IN_NOISE","SHORT_STORY","LONG_STORY","ORDERING_SENTENCE"];function Q4(e){const n=new Map;let a=0;for(const s of e){if(s.latestCorrect)continue;const l=s.setIds[0];if(!l){a++;continue}const c=`${s.trainingType}|${l}`,u=n.get(c)??{setId:l,trainingType:s.trainingType,pending:0};u.pending++,n.set(c,u)}const r=(s,l)=>l.pending-s.pending||s.trainingType.localeCompare(l.trainingType)||s.setId.localeCompare(l.setId),o=[...n.values()];return{sentence:o.filter(s=>jr.includes(s.trainingType)).sort(r),word:o.filter(s=>!jr.includes(s.trainingType)).sort(r),noSet:a}}function eb(e,n,a=5){const r=new Set(n);if(r.size===0)return[];const o=[];for(const s of e){const l=new Set,c=[];for(const u of s.cellLabels)r.has(u)&&!l.has(u)&&(l.add(u),c.push(u));c.length!==0&&o.push({id:s.id,name:s.name,kind:s.kind,covered:c,totalCells:s.cellLabels.length})}return o.sort((s,l)=>l.covered.length-s.covered.length||s.totalCells-l.totalCells||xa(s.name,l.name)),o.slice(0,Math.max(0,a))}function tb(e,n){const a=new Set(e.flatMap(r=>r.covered));return n.filter(r=>!a.has(r))}function nb(e,n){const a=new Map;for(const o of e)for(const s of o.cells){const l=o.labelOf(s);a.has(l)||a.set(l,s)}const r=[];for(const o of n){const s=a.get(o);s!==void 0&&r.push(s)}return r}function Er(e,n,a){return typeof e=="string"&&e?e:n.replace(/\{\{(\w+)\}\}/g,(r,o)=>String(a[o]))}function ab(e,n){if(!e||e<=0)return"-";const a=Math.floor(e/60),r=e%60;return n?n(a,r):a>0&&r>0?Er(Pt.t("customers.duration.minSec",{m:a,s:r,defaultValue:"{{m}}\uBD84 {{s}}\uCD08"}),"{{m}}\uBD84 {{s}}\uCD08",{m:a,s:r}):a>0?Er(Pt.t("customers.duration.min",{m:a,defaultValue:"{{m}}\uBD84"}),"{{m}}\uBD84",{m:a}):Er(Pt.t("customers.duration.sec",{s:r,defaultValue:"{{s}}\uCD08"}),"{{s}}\uCD08",{s:r})}function rb(e,n){const a=[],r=new Set;for(const o of e){const s=n(o);r.has(s)||(r.add(s),a.push({key:s,value:o,pinned:!1}))}return a}function ob(e,n){return e.map(a=>a.key===n?{...a,pinned:!a.pinned}:a)}function sb(e,n){return e.filter(a=>a.key!==n)}function ib(e,n,a){const r=e.filter(d=>d.pinned),o=new Set(r.map(d=>d.key)),s=e.length-r.length,l=[],c=new Set(o);for(const d of n){if(l.length>=s)break;const p=a(d);c.has(p)||(c.add(p),l.push({key:p,value:d,pinned:!1}))}const u=[...l];return e.map(d=>d.pinned?d:u.shift()).filter(d=>d!==void 0)}function lb(e){return e.map(n=>n.value)}function cb(e){const{category:n={},isSelected:a=!1,onClick:r}=e||{},o=n?.key?` icon-grid-menu__button--${n.key}`:"",s=i.useId();return t.jsxs("div",{className:`icon-grid-menu__button-wrapper${o}`,children:[t.jsx("button",{className:`icon-grid-menu__button${a?" icon-grid-menu__button--selected":""}`,"data-key":n?.key,type:"button",onClick:a?void 0:r,"aria-pressed":a,"aria-labelledby":s,children:t.jsx(Oe,{icon:n.icon,label:n.label,className:"icon-grid-menu__button-icon",imgClassName:"icon-grid-menu__button-icon-image",maskClassName:"icon-grid-menu__button-icon-mask",svgClassName:"icon-grid-menu__button-icon-svg"})}),t.jsx("span",{id:s,className:"icon-grid-menu__button-label button-1",children:n.label})]})}function ub(e){const{categories:n=[],selected:a,onSelect:r,size:o="medium"}=e||{},s=a!==void 0?a:(n&&n[0]?.key)??null,[l,c]=i.useState(s??null);i.useEffect(()=>{a!==void 0&&c(a)},[a]);const u=i.useRef(r),d=i.useRef(l),p=i.useRef(a!==void 0);i.useEffect(()=>{!p.current&&d.current&&typeof u.current=="function"&&u.current(d.current)},[]);const h=i.useCallback(m=>{const f=l===m?null:m;c(f),r?.(f)},[l,r]);return t.jsx("div",{className:`icon-grid-menu icon-grid-menu--${o}`,children:(n||[]).map(m=>t.jsx(cb,{category:m,isSelected:l===m.key,onClick:()=>h(m.key)},m.key))})}function db({subs:e=[],selected:n,onSelect:a,size:r="medium"}){const o=r==="small"?32:40;return t.jsx("div",{className:`choice-chips choice-chips--${r}`,children:t.jsx("div",{className:"choice-chips__list",children:e.map(s=>t.jsx(ae,{size:o,type:"bar",label:s.label,selected:n===s.key,className:"choice-chips__button",onClick:()=>a?.(s.key)},s.key))})})}function pb({onTermsClick:e,onPrivacyClick:n,contact:a}={}){const r=a?.email??"support@ihab.co.kr",o=a?.tel??"031-380-3724",{t:s}=de.useTranslation();return t.jsx("footer",{className:"site-footer",children:t.jsxs("div",{className:"safearea",children:[t.jsxs("div",{className:"site-footer__top",children:[t.jsx("div",{className:"site-footer__brand",children:t.jsx("div",{className:"site-footer__lead h3",children:s("footer.lead",`\uC544\uC774\uD574\uBE0C\uB294 \uC18C\uB9AC\uB97C \uD1B5\uD574
|
|
966
966
|
\uC2E0\uB8B0\uB97C \uC313\uACE0
|
|
967
967
|
\uD68C\uBCF5\uC744 \uB3D5\uC2B5\uB2C8\uB2E4.`).split(`
|
|
968
|
-
`).map((l,c,u)=>t.jsxs(i.Fragment,{children:[l,c<u.length-1&&t.jsx("br",{})]},c))})}),t.jsxs("div",{className:"site-footer__links",children:[t.jsxs("div",{className:"site-footer__column",children:[t.jsx("div",{className:"site-footer__column-title footer-title",children:s("footer.site.title","\uC0AC\uC774\uD2B8")}),t.jsxs("ul",{children:[t.jsx("li",{children:t.jsx("a",{className:"footer-link",href:"https://www.ihab.co.kr/",target:"_blank",rel:"noopener noreferrer",children:"IHAB"})}),t.jsx("li",{children:t.jsx("a",{className:"footer-link",href:"https://speechear.ihab.co.kr/",target:"_blank",rel:"noopener noreferrer",children:s("footer.site.malgwi","\uB9D0\uADC0")})}),t.jsx("li",{children:t.jsx("a",{className:"footer-link",href:"https://ihab-offcial-web.vercel.app/product/sound-localization",target:"_blank",rel:"noopener noreferrer",children:s("footer.site.soundDirection","\uC18C\uB9AC\uBC29\uD5A5\uC131\uC2DC\uC2A4\uD15C")})}),t.jsx("li",{children:t.jsx("a",{className:"footer-link",href:"https://ihab-offcial-web.vercel.app/product/vr-sound-localization",target:"_blank",rel:"noopener noreferrer",children:s("footer.site.vrSoundDirection","VR\uC18C\uB9AC\uBC29\uD5A5\uC131\uC2DC\uC2A4\uD15C")})}),t.jsx("li",{children:t.jsx("a",{className:"footer-link",href:"https://ihab-offcial-web.vercel.app/product/hearing-test-pro",target:"_blank",rel:"noopener noreferrer",children:s("footer.site.hearingTest","\uCCAD\uB825\uD14C\uC2A4\uD2B8 \uD504\uB85C")})})]})]}),t.jsxs("div",{className:"site-footer__column",children:[t.jsx("div",{className:"site-footer__column-title footer-title",children:s("footer.sns.title","SNS")}),t.jsxs("ul",{children:[t.jsx("li",{children:t.jsx("a",{className:"footer-link",href:"https://blog.naver.com/ihab_official",target:"_blank",rel:"noopener noreferrer",children:s("footer.sns.naverBlog","\uB124\uC774\uBC84 \uBE14\uB85C\uADF8")})}),t.jsx("li",{children:t.jsx("a",{className:"footer-link",href:"https://www.instagram.com/ihab.official.yt/",target:"_blank",rel:"noopener noreferrer",children:"Instagram"})}),t.jsx("li",{children:t.jsx("a",{className:"footer-link",href:"https://www.youtube.com/@%EC%95%84%EC%9D%B4%ED%95%B4%EB%B8%8C-%EA%B3%B5%EC%8B%9D%EC%B1%84%EB%84%90",target:"_blank",rel:"noopener noreferrer",children:"Youtube"})})]})]}),t.jsxs("div",{className:"site-footer__column",children:[t.jsx("div",{className:"site-footer__column-title footer-title",children:s("footer.policy.title","\uC815\uCC45")}),t.jsxs("ul",{children:[t.jsx("li",{children:t.jsx("a",{className:"footer-link",href:"#",onClick:l=>{e&&(l.preventDefault(),e())},children:s("footer.policy.terms","\uC774\uC6A9\uC57D\uAD00")})}),t.jsx("li",{children:t.jsx("a",{className:"footer-link",href:"#",onClick:l=>{n&&(l.preventDefault(),n())},children:s("footer.policy.privacy","\uAC1C\uC778\uC815\uBCF4 \uCC98\uB9AC\uBC29\uCE68")})})]})]})]})]}),t.jsx("hr",{className:"site-footer__rule"}),t.jsxs("div",{className:"site-footer__bottom",children:[t.jsx("div",{className:"site-footer__brand",children:t.jsx("img",{src:pr,alt:"IHAB",className:"site-footer__logo"})}),t.jsxs("div",{className:"site-footer__meta",children:[t.jsxs("div",{children:[t.jsx("span",{className:"footer-title",children:s("footer.ceo","\uB300\uD45C")}),t.jsx("span",{className:"footer-meta caption-1",children:s("footer.ceoName","\uD55C\uC9C0\uD61C")})]}),t.jsxs("div",{children:[t.jsx("span",{className:"footer-title",children:s("footer.address","\uC8FC\uC18C")}),t.jsx("span",{className:"footer-meta caption-1",children:s("footer.addressValue","\uAC15\uC6D0\uB3C4 \uCD98\uCC9C\uC2DC \uC2DC\uCCAD\uAE38 32 \uD574\uCC2C\uBE4C\uB529 3\uCE35 302\uD638")})]}),t.jsxs("div",{children:[t.jsx("span",{className:"footer-title",children:s("footer.support","\uACE0\uAC1D\uC13C\uD130")}),t.jsxs("span",{className:"footer-meta caption-1",children:[r," \xA0 ",o]})]})]})]}),t.jsx("div",{className:"site-footer__copyright footer-copyright caption-1",children:"\xA9 IHAB, Inc. All rights reserved."})]})})}function pb({logo:e,logoAlt:n="",logoHref:a,links:r=[],actions:o,className:s,containerClassName:l,renderLink:c,menuLabel:u={open:"\uBA54\uB274 \uC5F4\uAE30",close:"\uBA54\uB274 \uB2EB\uAE30"}}){const[d,p]=i.useState(!1),h=i.useId(),m=l?`${l} landing-header__inner`:"landing-header__inner",C=(f,b)=>c?c(f,{onClick:b}):t.jsx("a",{href:f.href,onClick:b,"aria-current":f.current?"page":void 0,children:f.label});return t.jsxs("header",{className:s?`landing-header ${s}`:"landing-header",children:[t.jsxs("div",{className:m,children:[e!=null&&(()=>{const f=typeof e=="string"?t.jsx("img",{src:e,alt:n,className:"landing-header__logo"}):e;return a?t.jsx("a",{href:a,className:"landing-header__brand",children:f}):t.jsx("div",{className:"landing-header__brand",children:f})})(),r.length>0&&t.jsx("nav",{className:"landing-header__links",children:r.map(f=>t.jsx("span",{children:C(f)},f.href))}),t.jsxs("div",{className:"landing-header__actions",children:[o,r.length>0&&t.jsx("button",{type:"button",onClick:()=>p(f=>!f),"aria-expanded":d,"aria-controls":h,"aria-label":d?u.close:u.open,className:d?"landing-header__toggle landing-header__toggle--open":"landing-header__toggle",children:t.jsxs("span",{className:"landing-header__burger",children:[t.jsx("span",{}),t.jsx("span",{}),t.jsx("span",{})]})})]})]}),r.length>0&&t.jsx("nav",{id:h,hidden:!d,className:"landing-header__drawer",children:t.jsx("div",{className:l??void 0,children:r.map(f=>t.jsx("span",{className:"landing-header__drawer-item",children:C(f,()=>p(!1))},f.href))})})]})}function hb({children:e,action:n,onClick:a,className:r}){const o=a?"bottom-sticky__inner bottom-sticky__inner--clickable":"bottom-sticky__inner";return t.jsx("div",{className:r?`bottom-sticky ${r}`:"bottom-sticky",children:t.jsxs("div",{className:o,onClick:a,...Fi(a),children:[t.jsx("div",{className:"bottom-sticky__content",children:e}),n]})})}const Pn=9,mb=e=>Math.round(Math.min(Pn,Math.max(0,e))/Pn*100),fb=e=>e/100*Pn,_a=2,fl=.1,Cl=e=>Math.min(_a,Math.max(0,e)),Cb=e=>Math.round(e*10)/10;function ra(e){const{noiseRatio:n}=e;if(typeof n=="number"&&Number.isFinite(n))return Cl(n);const a=Math.min(Pn,Math.max(0,Number(e.level)||0))/Pn,r=Number(e.mainVolume);return r>0?Cb(Cl(a/r)):1}const gl=e=>Math.min(1,Math.max(0,Number(e.mainVolume)||0));function bl(e){return gl(e)}function Tr(e){return gl(e)*ra(e)}function Mr(e,n=Yo()){const a=Number.isFinite(n)&&n>0?n:1;return Math.min(1,Tr(e)/a)}function wa(e,n){const a={...e,...n??{}};return n&&"level"in n&&typeof n.noiseRatio!="number"&&(a.noiseRatio=ra({level:a.level,mainVolume:a.mainVolume})),a}const ka={enabled:!0,type:"defaultNoise",level:4.5,noiseRatio:1,speed:1,mainVolume:1,mainSpeed:1},Lr=i.createContext(null);function Aa(){return i.useContext(Lr)}const $r=e=>`${vm()}/${e}`,yl=e=>Array.from({length:10},(n,a)=>$r(`${e}-${String(a+1).padStart(2,"0")}.mp3`)),Na={get defaultNoise(){return $r("noise1.mp3")},get street(){return yl("noise2")},get restaurant(){return yl("noise3")},get buzz(){return $r("noise4.mp3")}};function gb(e){const n=Math.floor(Math.random()*10);switch(e){case"defaultNoise":return Na.defaultNoise;case"street":return Na.street[n];case"restaurant":return Na.restaurant[n];case"buzz":return Na.buzz;default:return null}}function bb({noisePlayer:e,audioRef:n,playbackStateRef:a}){const r=i.useRef(e?.registerAnalyser);r.current=e?.registerAnalyser;const o=i.useRef(null),[s,l]=i.useState(null),c=i.useRef(null),u=i.useRef(null),d=i.useRef(null),p=i.useRef(0),h=i.useRef(null),m=i.useCallback(()=>{d.current!==null&&(cancelAnimationFrame(d.current),d.current=null),h.current!==null&&(clearTimeout(h.current),h.current=null)},[]),C=i.useCallback((y,w=250)=>{const _=o.current;if(!_||!_.src)return;p.current+=1,m();try{Ga(),ca(_).then(k=>{try{r.current?.("noise",k)}catch{}})}catch{}const v=_.paused?0:ua(_);_.paused&&cn(_,0),_.play().catch(()=>{});const A=performance.now(),x=()=>{const k=Math.min(1,(performance.now()-A)/w);try{cn(_,v+(y-v)*k)}catch{}k<1?d.current=requestAnimationFrame(x):d.current=null};d.current=requestAnimationFrame(x)},[m]),f=i.useCallback((y=250,w)=>{const _=o.current;if(!_||_.paused){w?.();return}const v=++p.current;m();const A=performance.now(),x=ua(_),k=()=>{const M=Math.min(1,(performance.now()-A)/y);try{cn(_,x*(1-M))}catch{}if(M<1)d.current=requestAnimationFrame(k);else{d.current=null,h.current!==null&&(clearTimeout(h.current),h.current=null);try{_.pause()}catch{}w?.()}};d.current=requestAnimationFrame(k),h.current=setTimeout(()=>{if(h.current=null,p.current===v){d.current!==null&&(cancelAnimationFrame(d.current),d.current=null);try{_.paused||(cn(_,0),_.pause(),w?.())}catch{}}},y+150)},[m]);i.useEffect(()=>{const y=document.createElement("audio");return y.loop=!0,y.crossOrigin="anonymous",o.current=y,()=>{m();try{y.pause(),y.src=""}catch{}o.current=null}},[m]);const b=e?Mr(e.settings):0,g=!!e?.settings.enabled&&b>0;return i.useEffect(()=>{if(!g)return;let y=0;const w=setInterval(()=>{const _=o.current;if(!_||_.paused){y=0;return}const v=n.current;if(v&&!v.paused&&!v.ended||a.current==="playing"){y=0;return}y+=1,y>=2&&(y=0,f())},400);return()=>clearInterval(w)},[f,g,n,a]),i.useEffect(()=>{const y=()=>{if(!document.hidden)return;const w=o.current;if(w&&!w.paused){m();try{w.pause()}catch{}}};return document.addEventListener("visibilitychange",y),()=>document.removeEventListener("visibilitychange",y)},[m]),i.useEffect(()=>{u.current=e?{enabled:e.settings.enabled,volume:b,type:e.settings.type}:null},[e,e?.settings.enabled,b,e?.settings.type]),i.useEffect(()=>{const y=e?.settings,w=o.current;if(!w)return;const _=y?Mr(y):0;if(!y||!y.enabled||_===0){f();return}if(c.current!==y.type){const v=gb(y.type);v&&(c.current=y.type,l(v),f(150,()=>{w.src=v,w.load();const A=n.current;A&&!A.paused&&w.addEventListener("canplay",function x(){w.removeEventListener("canplay",x);const k=n.current;k&&!k.paused&&!k.ended&&C(_)})}))}else{const v=n.current,A=!!v&&!v.paused&&!v.ended;if(A&&w.paused&&w.src)C(_);else if(!w.paused)if(!A)f();else{m();const x=ua(w),k=performance.now(),M=()=>{const N=Math.min(1,(performance.now()-k)/150);try{cn(w,x+(_-x)*N)}catch{}N<1?d.current=requestAnimationFrame(M):d.current=null};d.current=requestAnimationFrame(M)}}},[e?.settings,e?.settings.enabled,b,e?.settings.type,m,C,f,n]),i.useEffect(()=>{const y=o.current;if(y)try{y.playbackRate=Math.min(1.25,Math.max(.75,e?.settings.speed??1))}catch{}},[e?.settings.speed]),{noiseAudioRef:o,activeNoiseUrl:s,noiseSettingsRef:u,cancelNoiseFade:m,fadeInNoise:C,fadeOutNoise:f}}function yb({ttsText:e,playbackRate:n,mainVolume:a,fillRef:r,waveProgressRef:o,setProgress:s,setPlaybackState:l,setStateLocal:c,fadeInNoise:u,fadeOutNoise:d,noiseSettingsRef:p,onDoneRef:h,handleEndRef:m}){const C=i.useRef(null),f=i.useRef(0),b=i.useRef(null);i.useEffect(()=>()=>{try{if(b.current&&(cancelAnimationFrame(b.current),b.current=null),window.speechSynthesis)try{window.speechSynthesis.cancel()}catch{}}catch{}},[]);const g=(_,v=1)=>{try{const A=(_||"").trim().split(/\s+/).filter(Boolean).length||Math.max(1,(_||"").length);return Math.max(700,Math.round(A*300/Math.max(.25,v)))}catch{return 1200}},y=i.useCallback(_=>{if(typeof window>"u"||!window.speechSynthesis){try{typeof h.current=="function"&&h.current(!0)}catch{}return}const v=window.speechSynthesis;try{try{v.cancel()}catch{}const A=_??e,x=(Array.isArray(A)?A[0]??"":A)||"",k=new SpeechSynthesisUtterance(x);try{k.rate=Math.max(.3,Math.min(3,n))}catch{}try{k.volume=Math.max(0,Math.min(1,a))}catch{}f.current=g(x,k.rate||1),C.current=performance.now(),s(0),l("playing"),c("playMode");const M=p.current;M?.enabled&&(M?.volume??0)>0&&u(M.volume);const N=()=>{try{const D=C.current||performance.now(),P=performance.now()-D,L=f.current||1200,E=Math.min(1,P/L);s(E);try{r.current&&(r.current.style.left=`${E*100}%`),o.current&&o.current.style.setProperty("--progress",String(E))}catch{}E<1&&(b.current=requestAnimationFrame(N))}catch{}};k.onend=()=>{try{b.current&&(cancelAnimationFrame(b.current),b.current=null),s(1),l("stopped");try{m.current?.()}catch{try{typeof h.current=="function"&&h.current(!0)}catch{}}}catch{}},k.onstart=()=>{try{b.current&&(cancelAnimationFrame(b.current),b.current=null),b.current=requestAnimationFrame(N)}catch{}};try{v.speak(k)}catch{try{typeof h.current=="function"&&h.current(!0)}catch{}}}catch{try{typeof h.current=="function"&&h.current(!0)}catch{}}},[e,n,a,u,r,o,s,l,c,p,h,m]),w=i.useCallback(()=>{try{if(window.speechSynthesis)try{window.speechSynthesis.cancel()}catch{}b.current&&(cancelAnimationFrame(b.current),b.current=null),d(),C.current=null}catch{}l("stopped"),c("active"),s(0)},[d,l,c,s]);return{startTTS:y,stopTTS:w}}async function vb(e,n,a){try{const r=window.AudioContext||window.webkitAudioContext,o=new r,s=await o.decodeAudioData(e.slice(0)),l=s.numberOfChannels>0?s.getChannelData(0):null;if(!l)return null;const c=a&&a>0?Math.min(l.length,Math.floor(a*s.sampleRate)):l.length,u=Math.max(n,c),d=Math.floor(u/n)||1,p=new Array(n).fill(0).map((h,m)=>{const C=m*d,f=Math.min(C+d,u);let b=0;for(let g=C;g<f;g++){const y=Math.abs(l[g]);y>b&&(b=y)}return b});try{o.close&&o.close()}catch{}return p}catch{return null}}async function vl(e,n,a){try{const r=await(await fetch(e)).arrayBuffer();return await vb(r,n,a)}catch(r){try{const o=ss(r)}catch{}return null}}const xl=45,xb=74,_b=2;function oa(e){const n=Math.min(2,Math.max(0,Number(e)||0));return n<=1?n*45:45+(n-1)*29}function Rr(e){return oa(e)/45}const _l=4;function wb(e){const{src:n,segments:a,progress:r=0,waveProgressRef:o,noiseSrc:s,noiseRatio:l=0,noiseSpeed:c=1,totalDuration:u=0,mainVolume:d=1,onReadyChange:p,showSoundWaveForm:h=!0}=e,m=i.useRef(null),C=i.useRef(null),[f,b]=i.useState(null),[g,y]=i.useState(!1),[w,_]=i.useState(null),[v,A]=i.useState(2),[x,k]=i.useState(0),[M,N]=i.useState(null),[D,P]=i.useState(!1),L=3,E=3,R=1,S=300,V=i.useRef(0),Y=i.useCallback(async(pe,Ce)=>{const ve=++V.current,he=()=>V.current===ve;try{if(y(!1),!pe){he()&&b(null);return}let T=Ce;if(!T)try{for(let Ve=0;Ve<4&&!(m.current||C.current);Ve++)await new Promise(Re=>requestAnimationFrame(Re));await new Promise(Ve=>requestAnimationFrame(Ve));const ee=m.current,_e=C&&C.current?C.current:ee?ee.closest(".audio-player__wave"):null,ue=_e?_e.getBoundingClientRect():ee?ee.getBoundingClientRect():null,ie=ue?Math.max(100,ue.width):320,te=ue?ue.height:0;te>0&&k(te),T=Math.max(R,Math.min(S,Math.floor((ie+E)/(L+E))));const se=T*L,Se=Math.max(0,T-1),He=Se>0?(ie-se)/Se:E;A(Math.max(0,He))}catch{T=120}const q=await vl(pe,T);if(!he())return;if(!q){b(null),y(!1);return}b(q),_(T),y(!0)}catch{if(!he())return;b(null),y(!1)}},[y,b,k,A,_]);i.useEffect(()=>{const pe=a&&a[0]&&a[0].src||n||a&&a.length===1&&a[0]&&a[0].src;Y(typeof pe=="string"?pe:void 0).catch(()=>{}),P(!1)},[n,a,Y]),i.useEffect(()=>{let pe=!1;if(!s||!w){N(null);return}const Ce=u>0?u*(c||1):void 0;return vl(s,w,Ce).then(ve=>{pe||N(ve)}).catch(()=>{pe||N(null)}),()=>{pe=!0}},[s,w,u,c]);const X=Math.max(0,Math.min(1,d)),J=i.useMemo(()=>f&&f.length&&Math.max(...f)||1,[f]),O=w||40,j=i.useMemo(()=>Array.from({length:O}).map((pe,Ce)=>{const ve=f&&f[Ce]!=null?f[Ce]:null,he=ve==null?null:Math.min(1,ve/J*X),T=he!=null&&x>0&&oa(he)<=_l,q=he==null?.15:T?0:Rr(he),ee=O>1?Ce/(O-1):0;return t.jsx("div",{className:T?"audio-player__bar audio-player__bar--hidden":"audio-player__bar",style:{"--val":q,"--i":Ce,"--mix":ee}},Ce)}),[O,f,J,X,x]),$={"--progress":String(Math.max(0,Math.min(1,r)))},F=s?Math.max(1,l):1,H={"--bar-gap":`${v}px`,"--wave-h":`${oa(F)}px`,"--wave-h1":`${xl}px`},Z=X*Math.max(0,l)/Yo(),I=g&&(s?!!M:!0);i.useEffect(()=>{I&&P(!0)},[I]);const W=D?g:I;i.useEffect(()=>{p?.(W)},[W,p]);const U=w||40,le=i.useMemo(()=>Array.from({length:U}).map((pe,Ce)=>{const ve=M&&M[Ce]!=null?M[Ce]:null,he=ve==null?0:ve/J*Z,T=x>0&&oa(he)<=_l,q=T?0:Rr(he),ee=U>1?Ce/(U-1):0;return t.jsx("div",{className:T?"audio-player__bar audio-player__bar--hidden":"audio-player__bar",style:{"--val":q,"--i":Ce,"--mix":ee}},Ce)}),[U,M,J,Z,x]);return t.jsxs("div",{className:"audio-player__wave",ref:C,style:H,children:[s&&t.jsx("div",{className:`audio-player__wave-noise ${I?"is-ready":""}`,"aria-hidden":"true",children:le}),h&&t.jsxs(t.Fragment,{children:[t.jsx("div",{className:`audio-player__wave-inner audio-player__wave-unplayed ${W?"is-ready":""}`,ref:m,children:j}),t.jsx("div",{className:`audio-player__wave-inner audio-player__wave-played ${W?"is-ready":""}`,ref:o,style:$,children:j})]})]})}const kb={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 Pr(e,n){return new Promise((a,r)=>{const o=document.createElement("audio");let s=!1;const l=()=>{try{o.src=""}catch{}},c=()=>{if(s)return;s=!0;const d=isFinite(o.duration)&&o.duration||0;l(),a(d)},u=d=>{s||(s=!0,l(),n.rejectOnError?r(new Error(d)):a(0))};o.addEventListener("loadedmetadata",c),o.addEventListener("error",()=>u("audio load failed")),setTimeout(()=>u("audio load timeout"),n.timeoutMs),o.src=e})}const Ab=2e3;function wl(e,n=Ab){return new Promise(a=>{let r=!1;const o=()=>{r||(r=!0,a())};e.addEventListener("canplay",o,{once:!0}),e.addEventListener("error",o,{once:!0}),setTimeout(o,n)})}function Nb({showSoundWaveForm:e,showNoiseWaveForm:n,timeoutMs:a=2500}){const r=i.useRef(!1),o=i.useRef([]),s=i.useCallback(u=>{if(r.current=u,!u||!o.current.length)return;const d=o.current;o.current=[];for(const p of d)p()},[]),l=i.useCallback(()=>{r.current=!1},[]),c=i.useCallback(()=>!e&&!n||r.current?Promise.resolve():new Promise(u=>{const d=setTimeout(u,a);o.current.push(()=>{clearTimeout(d),u()})}),[e,n,a]);return i.useEffect(()=>()=>{const u=o.current;o.current=[];for(const d of u)d()},[]),{onReadyChange:s,waitForReady:c,markNotReady:l}}function Bb(){const e=i.useRef([]),n=i.useCallback(o=>(e.current.push(o),o),[]),a=i.useCallback(o=>{const s=new Set([...o].filter(Boolean));e.current=e.current.filter(l=>{if(s.has(l))return!0;try{URL.revokeObjectURL(l)}catch{}return!1})},[]),r=i.useCallback(()=>{a([])},[a]);return i.useEffect(()=>()=>{for(const o of e.current)try{URL.revokeObjectURL(o)}catch{}e.current=[]},[]),{track:n,keepOnly:a,revokeAll:r}}function Sb({offsetY:e=8}={}){const n=i.useRef(null),[a,r]=i.useState(null),o=i.useCallback(()=>r(null),[]),s=i.useCallback(()=>{try{const l=n.current?.getBoundingClientRect();if(!l)return;r({left:l.left,right:l.right,width:l.width,height:l.height,x:l.x,top:l.top+e,bottom:l.bottom+e,y:l.y+e,toJSON:l.toJSON.bind(l)})}catch{}},[e]);return i.useEffect(()=>{if(a)return document.addEventListener("mousedown",o),()=>document.removeEventListener("mousedown",o)},[a,o]),{ref:n,rect:a,show:s,hide:o}}function Db({currentTime:e,sources:n,index:a,audioDuration:r}){const o=a||0,s=Array.isArray(n)&&n.length>0?n[o]:void 0,l=s?s.duration||r||0:r||0;if(!(l>0))return 0;const c=Number.isFinite(e)?e:0;return Math.max(0,Math.min(1,c/l))}function jb(e,n){if(!Array.isArray(e))return null;const a=n||0;return a<e.length-1?a+1:null}function Eb({ended:e,completedByEnd:n}){return!!e||!!n}function Tb(e){return e.map((n,a)=>({src:n.src,label:String(a+1),color:void 0,duration:n.duration||0}))}function Mb(e){return e.reduce((n,a)=>n+(a.duration||0),0)}function Lb(e,n,a){const r=Array.isArray(e)?e:e?[e]:[],o=[];for(const s of r)if(s){if(typeof s=="object"&&s!==null&&"src"in s&&s.src){const l=s;o.push({code:l.code??null,src:l.src});continue}if(typeof s=="string"&&(s.startsWith("http")||s.includes("/"))){o.push({code:null,src:s});continue}if(typeof s=="string"||typeof s=="number"){const l=String(s),c=a(l,n);c&&o.push({code:l,resolvedPath:c})}}return o}function $b({audioRef:e,fillRef:n,waveProgressRef:a,sourcesRef:r,currentIndexRef:o}){const s=i.useRef(null),l=i.useCallback(()=>{s.current!==null&&(cancelAnimationFrame(s.current),s.current=null)},[]),c=i.useCallback(()=>{if(s.current!==null)return;const d=()=>{try{const p=e.current,h=Db({currentTime:p&&typeof p.currentTime=="number"?p.currentTime:0,sources:r.current,index:o.current,audioDuration:p&&p.duration?p.duration:0});try{n.current&&(n.current.style.left=`${h*100}%`)}catch{}try{a.current?.style.setProperty("--progress",String(h))}catch{}}catch{}s.current=requestAnimationFrame(d)};s.current=requestAnimationFrame(d)},[e,n,a,r,o]),u=i.useCallback(d=>{l();try{n.current&&(n.current.style.left=`${d*100}%`)}catch{}try{a.current?.style.setProperty("--progress",String(d))}catch{}},[l,n,a]);return i.useEffect(()=>l,[l]),{start:c,stop:l,settleTo:u}}function Ir({btnLabel:e,soundSrc:n,bucketPath:a,onDone:r,disabled:o=!1,ttsText:s=null,className:l,showSoundWaveForm:c=!0,showNoiseWaveForm:u=!0}){const{t:d}=de.useTranslation(),p=e,h=Aa(),m=i.useRef(h?.registerAnalyser);i.useEffect(()=>{m.current=h?.registerAnalyser});const C=i.useRef(null),f=i.useRef(null),b=i.useRef(null),g=Bb(),y=i.useRef(null),w=i.useRef(!1),_=i.useRef(0),v=i.useRef(null),{ref:A,rect:x,show:k,hide:M}=Sb();i.useEffect(()=>()=>{m.current?.("main",null),m.current?.("noise",null)},[]);const[N,D]=i.useState(!1),[P,L]=i.useState("idle"),[E,R]=i.useState("stopped"),S=i.useRef("stopped");i.useEffect(()=>{S.current=E},[E]);const[V,Y]=i.useState(0),[X,J]=i.useState("active"),[O,j]=i.useState(null),[$,F]=i.useState(null),[H,Z]=i.useState(0),[I,W]=i.useState(!1),[U,le]=i.useState(0),pe=h?.playbackRate??1,Ce=h?.mainVolume??1,ve=h?Tr(h.settings):0,he=h?bl(h.settings):Ce,[T,q]=i.useState("idle"),[ee,_e]=i.useState(""),[ue]=i.useState("top"),ie=i.useRef(null),te=i.useRef(0),se=i.useRef(null),{start:Se,stop:He,settleTo:Ve}=$b({audioRef:C,fillRef:f,waveProgressRef:se,sourcesRef:ie,currentIndexRef:te}),{onReadyChange:Re,waitForReady:Ee,markNotReady:je}=Nb({showSoundWaveForm:c,showNoiseWaveForm:u}),Ae=i.useRef(null),ze=i.useRef(o),at=i.useRef(r),ge=i.useRef(null),Pe=i.useRef(!1),[$e,Ke]=i.useState(!1),Ze=i.useCallback(K=>{Pe.current=K,Ke(K)},[]),Ue=i.useRef(null),{activeNoiseUrl:Ie,noiseSettingsRef:dt,fadeInNoise:ct,fadeOutNoise:qe}=bb({noisePlayer:h,audioRef:C,playbackStateRef:S}),{startTTS:ot,stopTTS:Te}=yb({ttsText:s,playbackRate:pe,mainVolume:he,fillRef:f,waveProgressRef:se,setProgress:Y,setPlaybackState:R,setStateLocal:J,fadeInNoise:ct,fadeOutNoise:qe,noiseSettingsRef:dt,onDoneRef:at,handleEndRef:Ue}),Me=Array.isArray(n)?n.filter(Boolean):n?[n]:[],tt=(!Me||Me.length===0)&&!!s,ft=Array.isArray(O)&&O.length>0?O:Array.isArray($)&&$.length>0?$:null,Ye=Math.max(Array.isArray(ft)?ft.length:0,Me.length),Xe=i.useCallback(async(K,ne=3,be=50)=>{for(let xe=0;xe<ne;xe++)try{return await K.play(),!0}catch(De){if((De instanceof Error||typeof De=="object"&&De&&"name"in De?De.name:void 0)==="AbortError"){await new Promise(Q=>setTimeout(Q,be));continue}try{_e(d("training.audioFetchError","\uC0AC\uC6B4\uB4DC \uC18C\uC2A4\uB97C \uAC00\uC838\uC624\uC9C0 \uBABB\uD588\uC2B5\uB2C8\uB2E4."))}catch{}return!1}try{_e(d("training.audioFetchError","\uC0AC\uC6B4\uB4DC \uC18C\uC2A4\uB97C \uAC00\uC838\uC624\uC9C0 \uBABB\uD588\uC2B5\uB2C8\uB2E4."))}catch{}return!1},[d]),ht=i.useCallback(()=>{const K=C.current;if(!K)return;const ne=()=>{R("playing"),J("playMode"),W(!0),Se();try{Ga(),ca(K).then(Q=>{try{m.current?.("main",Q)}catch{}})}catch{}const De=dt.current;De?.enabled&&(De?.volume??0)>0&&ct(De.volume)},be=()=>{Eb({ended:!!K?.ended,completedByEnd:Pe.current})||(R("paused"),He(),qe())},xe=()=>{try{const De=ie.current,Q=jb(De,te.current);if(Q!==null){te.current=Q,Z(Q),W(!0);const ke=De?.[Q]&&De[Q].src;if(ke&&K){K.src=ke,K.load(),Xe(K).catch(()=>{});return}}}catch{}R("stopped"),Y(1);try{if(K)try{K.currentTime=0}catch{}}catch{}He(),W(!1),qe();try{!ze.current&&Ue.current&&Ue.current()}catch{}};return K.addEventListener("play",ne),K.addEventListener("pause",be),K.addEventListener("ended",xe),()=>{try{K.removeEventListener("play",ne),K.removeEventListener("pause",be),K.removeEventListener("ended",xe),He()}catch{}}},[ct,qe,Xe,dt,Se,He]);i.useEffect(()=>ht(),[ht]),i.useEffect(()=>{ze.current=o},[o]),i.useEffect(()=>{at.current=r},[r]),i.useEffect(()=>{if(o||X!=="active")return;const K=v.current;if(!K)return;let ne=null;const be=requestAnimationFrame(()=>{try{const xe=K.getTotalLength();if(!xe)return;const De=xe*.2;K.style.strokeDasharray=`${xe-De} ${De}`;const Q="triFlow_"+Math.random().toString(36).slice(2);ne=document.createElement("style"),ne.textContent=`@keyframes ${Q}{from{stroke-dashoffset:0}to{stroke-dashoffset:-${xe}}}`,document.head.appendChild(ne),K.style.animation=`${Q} 2.4s linear infinite`}catch{}});return()=>{cancelAnimationFrame(be),ne?.remove()}},[X,o]),i.useEffect(()=>{ie.current=O},[O]),i.useEffect(()=>{te.current=H},[H]),i.useEffect(()=>{const K=b.current,ne=y.current;if(!K||!ne)return;let be=null;const xe=32,De=60,Q=()=>{try{const Fe=Array.from(K.querySelectorAll(":scope > .button"));let et=0;Fe.forEach(St=>{if(St===ne)return;const bn=St.getBoundingClientRect();et+=bn.width});const Ct=K.getBoundingClientRect().width,Bt=Math.max(0,Math.floor(Ct-et-8)),$t=Ye;if(!$t||Bt<=0){Array.from(ne.children).forEach(St=>{try{St.style.width=""}catch{}});return}let Rt=Math.floor(Bt/$t);Rt>De&&(Rt=De),Rt<xe&&(Rt=Math.max(xe,Math.floor(Bt/$t))),Array.from(ne.querySelectorAll(".button")).forEach(St=>{try{St.style.width=`${Rt}px`}catch{}})}catch{}},ke=requestAnimationFrame(Q);try{be=new ResizeObserver(()=>{requestAnimationFrame(Q)}),be.observe(K),be.observe(ne),window.addEventListener("resize",Q)}catch{}return()=>{try{cancelAnimationFrame(ke)}catch{}try{be&&(be.disconnect(),be=null)}catch{}try{window.removeEventListener("resize",Q)}catch{}}},[O,$,Ye]),i.useEffect(()=>()=>{try{Ae.current&&(clearTimeout(Ae.current),Ae.current=null),ge.current&&(clearTimeout(ge.current),ge.current=null)}catch{}},[]);const Et=(K,ne)=>{j(K),le(ne),je(),F(Tb(K)),ie.current=K},Qe=async(K,ne)=>{Ze(!1),w.current=!1,K.src=ne,K.load(),await wl(K),await Ee(),D(!1),await Xe(K),J("playMode"),Z(0),W(!0)},vt=async(K,ne=!1)=>{const be=C.current;D(!0),L("measuring_duration");try{const xe=await Pr(K,{timeoutMs:1e4,rejectOnError:!0});Et([{src:K,objectUrl:null,duration:xe}],xe),L("ready"),ne&&be&&await Qe(be,K)}finally{w.current=!1,D(!1)}},Tt=async(K,ne=!1)=>{const be=C.current;D(!0),L("measuring_duration");try{const xe=await Promise.all(K.map(Q=>Pr(Q,{timeoutMs:1e4}))),De=K.map((Q,ke)=>({src:Q,objectUrl:null,duration:xe[ke]||0}));Et(De,Mb(De)),L("ready"),ne&&be&&De.length>0&&await Qe(be,De[0].src)}finally{w.current=!1,D(!1)}},Zt=async(K=!1,ne=!0)=>{const be=C.current,xe=n?Array.isArray(n)?n:[n]:[];if(!(!xe||xe.length===0||!xe.some(Boolean))&&!w.current){w.current=!0,ne&&D(!0),L("resolving");try{const De=Lb(n,a,Go),Q=[];let ke=0;for(const Fe of De){let et=Fe.src??null,Ct=null;if(!et&&Fe.resolvedPath){try{L("getting_signed_url"),et=await Ko(Fe.resolvedPath)}catch{et=null}if(!et)try{L("downloading");const $t=await Zo(Fe.resolvedPath);if($t){const Rt=$t instanceof Blob?$t:new Blob([$t]);Ct=g.track(URL.createObjectURL(Rt)),et=Ct}}catch{L("error");try{_e(d("training.audioFetchError","\uC0AC\uC6B4\uB4DC \uC18C\uC2A4\uB97C \uAC00\uC838\uC624\uC9C0 \uBABB\uD588\uC2B5\uB2C8\uB2E4.")),J("active")}catch{}}}if(!et)continue;let Bt=0;try{L("measuring_duration"),Bt=await Pr(et,{timeoutMs:3e3})}catch{Bt=0}ke+=Bt||0,Q.push({...Fe,src:et,objectUrl:Ct,duration:Bt})}if(Et(Q,ke),Q.length>0&&K&&be){const Fe=Q[0];Ze(!1);try{g.keepOnly(Q.map(et=>et.objectUrl))}catch{}if(L("ready"),w.current=!1,Fe.src&&be)try{be.src=Fe.src,be.load(),await wl(be),await Ee(),ne&&D(!1),be&&await Xe(be)}catch{ne&&D(!1)}else ne&&D(!1);J("playMode"),Z(0),W(!0)}}finally{w.current=!1,ne&&D(!1),L(De=>De==="ready"?"ready":"idle")}}},on=async()=>{const K=C.current;if(!(!K&&!tt)){if(tt){const ne=window.speechSynthesis;if(X==="active"){const be=Wa(),xe=Array.isArray(s)?s.filter(Boolean):s?[s]:[];if(be&&xe.length>0){J("load"),D(!0),L("resolving"),w.current=!0;try{const De=await Promise.all(xe.map(Q=>Promise.resolve(be(Q))));De.length>1?await Tt(De,!0):await vt(De[0],!0)}catch{w.current=!1,D(!1),J("active"),ot(xe[0]||void 0)}return}ot(xe[0]||void 0);return}if(X==="playMode"){if(K){if(K.paused){if(Pe.current){await Ft();return}await Xe(K),R("playing")}else K.pause(),R("paused");return}try{if(ne&&ne.paused)try{ne.resume(),R("playing")}catch{}else try{ne.pause(),R("paused")}catch{}}catch{}}return}if(X==="active"){if(o&&Array.isArray(ie.current)&&ie.current.length>0){const ne=ie.current[0];try{if(ne.src&&K)try{K.src=ne.src,K.load(),K&&await Xe(K)}catch{}J("playMode"),Z(0),W(!0);return}catch{}}J("load"),await Zt(!0);return}if(X!=="load"&&(X==="playMode"||X==="active"))try{if(K&&K.paused){if(Pe.current){await Ft();return}K&&await Xe(K),R("playing")}else K&&(K.pause(),R("paused"))}catch(ne){(ne instanceof Error||typeof ne=="object"&&ne&&"name"in ne)&&ne.name}}},Ft=async()=>{const K=C.current;if(K)try{const ne=ie.current;if(Array.isArray(ne)&&ne.length>1){await Yt(0);return}Ze(!1);try{K.currentTime=0}catch{}K&&await Xe(K),R("playing"),J("playMode")}catch{}},Wt=()=>{if(tt){Te();return}const K=C.current;try{if(K){try{K.pause()}catch{}try{K.currentTime=0}catch{}}}catch{}qe(),R("stopped"),J("active"),Y(0),W(!1)},qt=async(K,{sameSegment:ne=!1}={})=>{const be=++_.current,xe=C.current,De=ie.current?.[K]?.src;try{if(Ze(!1),Z(K),W(!0),te.current=K,!De||!xe||(ne||je(),xe.src=De,xe.load(),ne||await Ee(),be!==_.current)||(await Xe(xe),be!==_.current))return;R("playing"),J("playMode")}catch{}},xt=async()=>{const K=ie.current,ne=te.current||0;if(!K||ne<=0){await Ft();return}await qt(ne-1)},Cn=async()=>{const K=ie.current,ne=te.current||0;if(!K||ne>=K.length-1){Wt();return}await qt(ne+1)},_t=()=>{if(Pe.current)return;const K=200,ne=340;Ze(!0);try{Y(1)}catch{}Ve(1);try{q("hold")}catch{}try{const be=C.current,xe=tt&&!!be?.src;if(!tt||xe){if(be){be.pause();try{be.currentTime=0}catch{}}}else Te();qe()}catch{}try{R("stopped")}catch{}if(W(!1),!ze.current)try{ge.current&&(clearTimeout(ge.current),ge.current=null),ge.current=setTimeout(()=>{try{q("out")}catch{}ge.current=setTimeout(()=>{try{typeof at.current=="function"&&at.current(!0)}catch{}try{q("idle")}catch{}ge.current=null},ne)},K)}catch{}};i.useEffect(()=>{Ue.current=_t});const gn=i.useCallback(()=>_e(""),[]),Yt=async K=>{(ie.current||[])[K]&&await qt(K,{sameSegment:K===te.current})},Ge=E==="playing",Mt=i.useMemo(()=>{if(!$||$.length<=1)return $;const K=$[H];return K?[K]:$},[$,H]),wt=o===!0;i.useEffect(()=>{try{const K=C.current;K&&typeof K.playbackRate=="number"&&(K.playbackRate=pe||1)}catch{}},[pe]);const Xt=i.useRef({raf:null,timer:null});i.useEffect(()=>{const K=C.current;if(!K)return;const ne=Math.max(0,Math.min(1,he)),be=Xt.current,xe=()=>{be.raf!==null&&(cancelAnimationFrame(be.raf),be.raf=null),be.timer!==null&&(clearTimeout(be.timer),be.timer=null)};xe();const De=ua(K);if(K.paused||Math.abs(De-ne)<.001||typeof requestAnimationFrame!="function"){try{cn(K,ne)}catch{}return}const Q=performance.now(),ke=()=>{const Fe=Math.min(1,(performance.now()-Q)/150);try{cn(K,De+(ne-De)*Fe)}catch{}be.raf=Fe<1?requestAnimationFrame(ke):null};return be.raf=requestAnimationFrame(ke),be.timer=setTimeout(()=>{xe();try{cn(K,ne)}catch{}},200),xe},[he]);const Ot=T==="hold",Lt=T==="out",Ut=X==="playMode"&&!N&&!$e||Ot||Lt,oe=E!=="stopped"||Ot||Lt,me=E==="paused",fe=Math.max(0,Math.min(100,(V||0)*100)),Ne=ye("audio-player__fill",Ut?"is-visible":"",oe?"is-expanded":"",me?"is-paused":"",Lt?"is-out":"");return t.jsxs("div",{className:`audio-player ${wt?"is-disabled":""}${l?` ${l}`:""}`,role:"group","aria-label":typeof p=="string"?p:void 0,children:[t.jsxs("div",{className:`audio-player__panel ${Ge?"is-playing":""} ${N?"is-loading":""} ${X!=="default"?"is-revealed":""}`,children:[N?t.jsxs("div",{className:"audio-player__loading",role:"status","aria-live":"polite",children:[t.jsx("span",{className:"audio-player__loading-spinner","aria-hidden":"true"}),t.jsx("span",{className:"audio-player__loading-text",children:kb[P]})]}):null,X==="active"?t.jsx("button",{className:"audio-player__button",type:"button",onClick:()=>{M(),on()},"aria-label":typeof p=="string"?p:d("training.listen","\uB4E3\uAE30"),onMouseEnter:k,onMouseLeave:M,onFocus:k,onBlur:M,children:t.jsx("span",{ref:A,className:"audio-player__button-triangle-wrap",children:t.jsx("svg",{className:"audio-player__button-triangle",viewBox:"0 0 24 24","aria-hidden":"true",children:t.jsx("path",{ref:v,d:"M13.2 7.7 L16.5 9.85 Q20.2 12 16.5 14.15 L10 18.3 Q7 19.7 7 16.3 L7 7.7 Q7 4.3 10 5.7 L13.2 7.7"})})})}):null,x&&t.jsx(dn,{anchorRect:x,text:typeof p=="string"&&p?p:d("training.listenLabel","\uBB38\uC7A5 \uB4E3\uAE30"),offset:8}),t.jsxs("div",{className:`audio-player__play ${X==="playMode"||Ge?"is-visible":""}`,children:[t.jsxs("div",{ref:b,className:"audio-player__buttons",children:[t.jsx(ae,{size:32,showTooltipInfo:!0,type:"dot",shape:"pill",useBorder:!1,icon:"skip-back",onClick:xt,ariaLabel:d("training.prev","\uC774\uC804"),width:"60px",variant:"transparent-white","aria-hidden":"true",tabIndex:-1,disabled:X!=="playMode"}),t.jsx(ae,{size:32,showTooltipInfo:!0,type:"dot",shape:"pill",useBorder:!1,icon:Ge?"pause":"play",onClick:on,ariaLabel:d("common.playPause","\uC7AC\uC0DD / \uBA48\uCDA4"),width:"60px",variant:"transparent-white",disabled:X!=="playMode"}),t.jsx(ae,{size:32,showTooltipInfo:!0,type:"dot",shape:"pill",useBorder:!1,icon:"square",onClick:Wt,ariaLabel:d("training.stop","\uC815\uC9C0"),width:"60px",variant:"transparent-white","aria-hidden":"true",tabIndex:-1,disabled:X!=="playMode"}),Ye>1?t.jsx("div",{ref:y,className:"audio-player__source-buttons",children:Array.from({length:Ye}).map((K,ne)=>t.jsx(ae,{size:32,type:"dot",shape:"pill",useBorder:!1,label:String(ne+1),onClick:()=>{try{Yt(ne)}catch{}},ariaLabel:d("training.sourcePlay",{n:ne+1}),variant:"transparent-white",selected:I&&H===ne,disabled:X!=="playMode"||!(Array.isArray(O)&&O[ne]),showTooltipInfo:!0},ne))}):null,!Array.isArray(O)||O.length<=1?t.jsx(ae,{size:32,showTooltipInfo:!0,type:"dot",shape:"pill",useBorder:!1,icon:"repeat",onClick:Ft,ariaLabel:d("common.replay","\uB2E4\uC2DC\uB4E3\uAE30"),width:"60px",variant:"transparent-white",disabled:X!=="playMode"}):null,t.jsx(ae,{size:32,showTooltipInfo:!0,type:"dot",shape:"pill",useBorder:!1,icon:"skip-forward",onClick:Cn,ariaLabel:d("training.next","\uB2E4\uC74C"),width:"60px",variant:"transparent-white","aria-hidden":!0,tabIndex:-1,disabled:X!=="playMode"}),t.jsx(ae,{size:32,showTooltipInfo:!0,type:"dot",shape:"pill",useBorder:!1,icon:"check",onClick:_t,ariaLabel:d("common.done","\uC644\uB8CC"),width:"60px",variant:"transparent-white",disabled:X!=="playMode"})]}),t.jsxs("div",{className:"audio-player__slider",children:[t.jsx("div",{className:Ne,ref:f,style:{left:`${fe}%`},"aria-hidden":"true"}),(c||u)&&t.jsx(wb,{segments:Mt,progress:V,totalDuration:U,onSegmentClick:Yt,waveProgressRef:se,showSoundWaveForm:c,noiseSrc:u&&h?.settings.enabled&&ve>0?Ie:null,noiseRatio:h?ra(h.settings):0,noiseSpeed:h?.settings.speed??1,mainVolume:Ce,onReadyChange:Re})]})]}),t.jsx("audio",{ref:C,crossOrigin:"anonymous",preload:"auto"})]}),!c&&t.jsxs("p",{className:"audio-player__no-waveform caption-1",children:[t.jsx(Oe,{icon:"triangle-alert",size:14}),d("training.noSoundWaveform","\uC18C\uB9AC \uBE44\uAD50 \uBB38\uC81C\uB294 \uC6E8\uC774\uBE0C\uD3FC\uC744 \uD45C\uD604\uD558\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4.")]}),t.jsx(Tn,{message:ee,position:ue,onClose:gn})]})}function Ba(e){const{t:n}=de.useTranslation(),{text:a,label:r,anchorRect:o=null,onClose:s,closeOnOutsideClick:l=!0,isMobilePopup:c=!1}=e||{},[u,d]=i.useState(()=>{try{return localStorage.getItem("tooltip-theme")||"light"}catch{return"light"}});i.useEffect(()=>{try{localStorage.setItem("tooltip-theme",u)}catch{}},[u]);const{increase:p,decrease:h,canIncrease:m,canDecrease:C,fontSize:f,lineHeight:b}=Ws({storageKey:"tooltip-fontScale"}),g=i.useCallback(()=>d(A=>A==="dark"?"light":"dark"),[]),y=i.useCallback(A=>{try{A.stopPropagation()}catch{}try{typeof s=="function"&&s()}catch{}},[s]),w=Array.isArray(a)?a:typeof a>"u"||a===null?[]:[a],_={fontSize:`${f}px`,lineHeight:`${b}px`,"--tt-line-height":`${b}px`,"--tt-marker-size":"28px"},v=t.jsxs("div",{className:`tooltip-textbox__root ${u==="dark"?"is-dark":""}`,children:[t.jsxs("div",{className:"tooltip-textbox__box",children:[r&&t.jsx("div",{className:"tooltip-textbox__label body-2b",children:r}),t.jsx("div",{className:"tooltip-textbox__text body-1",style:_,children:w.map((A,x)=>t.jsxs("div",{className:"tooltip-textbox__line",children:[w.length>1?t.jsx("div",{className:"tooltip-textbox__marker",children:t.jsx("span",{className:"tooltip-textbox__line-number button-1",children:x+1})}):null,t.jsx("span",{className:"tooltip-textbox__line-text",children:A})]},x))})]}),t.jsxs("div",{className:"tooltip-textbox__buttons",children:[t.jsx(ae,{size:32,showTooltipInfo:!0,type:"dot",useBorder:!1,width:48,icon:"minus",onClick:h,ariaLabel:n("training.fontSizeDecrease","\uAE00\uC790 \uD06C\uAE30 \uAC10\uC18C"),variant:u==="dark"?"transparent-white":"transparent-gray",disabled:!C}),t.jsx(ae,{size:32,showTooltipInfo:!0,type:"dot",useBorder:!1,width:48,icon:"plus",onClick:p,ariaLabel:n("training.fontSizeIncrease","\uAE00\uC790 \uD06C\uAE30 \uC99D\uAC00"),variant:u==="dark"?"transparent-white":"transparent-gray",disabled:!m}),t.jsx(ae,{size:32,showTooltipInfo:!0,type:"dot",useBorder:!1,width:48,icon:u==="dark"?"moon":"sun-medium",onClick:g,ariaLabel:n("training.toggleBackground","\uBC30\uACBD \uC804\uD658"),variant:u==="dark"?"transparent-white":"transparent-gray"}),t.jsx(ae,{size:32,showTooltipInfo:!0,type:"dot",useBorder:!1,width:48,icon:"x",onClick:y,ariaLabel:n("common.close","\uB2EB\uAE30"),variant:u==="dark"?"transparent-white":"transparent-gray"})]})]});return o?t.jsx(un,{anchorRect:o,className:`tooltip-textbox ${u==="dark"?"is-dark":""}`,onClose:s,closeOnOutsideClick:l,isMobilePopup:c,ariaLabel:r||n("tooltip.textbox","\uBCF8\uBB38"),children:v}):t.jsx("div",{className:`tooltip-textbox ${u==="dark"?"is-dark":""}`,children:v})}function kl({state:e="disabled"}){const{t:n}=de.useTranslation();return t.jsxs("div",{className:`ts-bullet ts-bullet--${e}`,"aria-hidden":!0,children:[t.jsx("div",{className:"bullet__dot",children:t.jsx(Oe,{icon:"chevron-right",label:n("training.next","\uB2E4\uC74C"),className:"bullet__icon",imgClassName:"bullet__icon-img",maskClassName:"bullet__icon-mask",svgClassName:"bullet__icon-svg",wrapperStyle:{},size:20})}),t.jsx("div",{className:"ts-bullet__line"})]})}function Al({title:e,children:n,className:a="",state:r="disabled",usePreviewTextBtn:o=!1,onPreviewTextBtn:s,previewText:l=null,useFaded:c,usePlayAllBtn:u=!1,onPlayAll:d,playAllActive:p=!1}){const{t:h}=de.useTranslation(),m=Qt("(max-width: 767px)"),C=`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=i.useRef(null),[g,y]=i.useState(!1),[w,_]=i.useState(null),[v,A]=i.useState(null),x=i.useRef(s);i.useEffect(()=>{x.current=s});const k=i.useMemo(()=>l==null?"":typeof l=="string"||typeof l=="number"?String(l):Array.isArray(l)&&l.every(D=>typeof D=="string"||typeof D=="number")?l.join(""):"",[l]),M=i.useCallback(()=>{y(!1),_(null),A(null)},[]);i.useEffect(()=>{if(!g)return;let D;try{typeof x.current=="function"&&(D=x.current())}catch{}if(D===!1){M();return}A(typeof D<"u"&&D!==null?D:null)},[k]);const N=i.useCallback(()=>{let D;try{typeof s=="function"&&(D=s())}catch{}if(D!==!1){if(A(typeof D<"u"&&D!==null?D:l),!b.current){y(P=>!P);return}if(g)y(!1),_(null),A(null);else{const P=b.current.getBoundingClientRect();_(P),y(!0)}}},[s,l,g]);return t.jsxs("div",{className:f,children:[t.jsx("p",{className:C,children:t.jsx("span",{className:"training-step__title-text",children:e??n})}),o||u?t.jsxs("div",{className:"title-controls",children:[t.jsxs("div",{className:"title-buttons",children:[u&&t.jsx(ae,{size:32,type:m?"dot":"bar",icon:"play-circle",label:m?void 0:h("training.playAll","\uBAA8\uB450 \uB4E3\uAE30"),ariaLabel:h("training.playAll","\uBAA8\uB450 \uB4E3\uAE30"),selected:p,onClick:d,variant:r==="disabled"?"disabled":"default",disabled:r==="disabled"||p}),o&&t.jsx("div",{ref:b,children:t.jsx(ae,{size:32,type:m?"dot":"bar",icon:"eye",label:m?void 0:h("training.sentencePreview","\uBB38\uC7A5 \uBBF8\uB9AC\uBCF4\uAE30"),ariaLabel:h("training.sentencePreview","\uBB38\uC7A5 \uBBF8\uB9AC\uBCF4\uAE30"),selected:g,onClick:N,variant:r==="disabled"?"disabled":"default",disabled:!l&&typeof s!="function"})})]}),g&&t.jsx(Ba,{text:v??l,label:h("training.sentencePreview","\uBB38\uC7A5 \uBBF8\uB9AC\uBCF4\uAE30"),anchorRect:w,onClose:M,closeOnOutsideClick:!1,isMobilePopup:!0})]}):null]})}function Fr(e,n){return typeof n!="number"||typeof e!="number"?"disabled":e<n?"done":e===n?"active":"disabled"}function Nn({index:e,stepIndex:n,isLast:a=!1,title:r="",titleProps:o={},children:s,className:l="",onDone:c=void 0,useTitleFaded:u=void 0}){const{t:d}=de.useTranslation(),[p,h]=i.useState(()=>Fr(e,n));i.useEffect(()=>{const A=Fr(e,n);if(A!==p){const x=setTimeout(()=>h(A),0);return()=>clearTimeout(x)}},[e,n,p]);const m=i.useCallback((...A)=>{Fr(e,n)==="done"||p==="done"||typeof c=="function"&&c(...A)},[e,n,p,c]),[C,f]=i.useState(!1),[b,g]=i.useState({text:"",label:"\uBB38\uC7A5 \uB4E3\uAE30",anchorRect:null,backdrop:!1,alignX:null,alignY:null}),y=i.useCallback(A=>{if(!A)return null;try{const x=A;if(typeof A=="object"&&(x.currentTarget||x.target)&&(x.nativeEvent||x.type)){const N=x.currentTarget??x.target;if(N&&typeof N.getBoundingClientRect=="function")return N.getBoundingClientRect()}if(A instanceof DOMRect)return A;const k=A;if(k&&typeof k.getBoundingClientRect=="function")return k.getBoundingClientRect();const M=A?.current;return M&&typeof M.getBoundingClientRect=="function"?M.getBoundingClientRect():null}catch{return null}},[]),w=i.useCallback((A,{text:x="",label:k="\uBB38\uC7A5 \uB4E3\uAE30",backdrop:M=!1,alignX:N="center",alignY:D="top"}={})=>{const P=y(A);g({text:x,label:k,anchorRect:P,backdrop:M,alignX:N,alignY:D}),f(!0)},[y]),_=i.useCallback(()=>{f(!1),g(A=>({...A,anchorRect:null}))},[]),v=i.Children.map(s,A=>{if(i.isValidElement(A)){const x=A;if(typeof x.type=="string")return x;const k=x.props??{},M=typeof k.onDone=="function"?k.onDone:m,N=typeof k.disabled=="boolean";let D=p==="disabled";return N&&(D=!!k.disabled),i.cloneElement(x,{onDone:M,disabled:D,showTooltip:w,hideTooltip:_})}return A});return t.jsxs("div",{className:`training-step training-step--${p} ${a?"training-step--last":""} ${l}`,"aria-current":p==="active",children:[t.jsx(kl,{state:p}),t.jsxs("div",{className:"training-step__content",children:[t.jsx(Al,{state:p,title:r,...o,useFaded:u}),v]}),C?t.jsx(un,{anchorRect:b.anchorRect,backdrop:b.backdrop,onClose:_,ariaLabel:d("tooltip.textbox","\uBCF8\uBB38"),children:t.jsx(Ba,{text:b.text,onClose:_})}):null]})}function Nl({context:e,state:n="disabled",theme:a="light"}){const{t:r}=de.useTranslation(),[o,s]=i.useState("disabled"),[l,c]=i.useState(()=>{try{return localStorage.getItem("tooltip-theme")||a}catch{return a}});i.useEffect(()=>{try{localStorage.setItem("tooltip-theme",l)}catch{}},[l]);const u=()=>c(N=>N==="dark"?"light":"dark"),{increase:d,decrease:p,canIncrease:h,canDecrease:m,fontSize:C,lineHeight:f}=Ws({storageKey:"textbox_fontScale"}),[b,g]=i.useState(""),y=i.useCallback(()=>s("active"),[]),w=i.useCallback(()=>g(""),[]),_=N=>{try{g(N)}catch{}},v=typeof navigator<"u"&&/Mobi|Android/i.test(navigator.userAgent||"");i.useEffect(()=>{if(n!=="disabled"){const N=setTimeout(()=>s(n),0);return()=>clearTimeout(N)}},[n]);const A=i.useMemo(()=>e&&typeof e=="object"?String(e.sentence??e.text??""):typeof e=="string"?e:"",[e]);i.useEffect(()=>{const N=setTimeout(()=>s("disabled"),0);return()=>clearTimeout(N)},[A]);const x=n==="disabled"?o:n,k=x==="disabled"?"training-text-box--disabled":x==="active"?"training-text-box--active":x==="done"?"training-text-box--done":"",M=i.useMemo(()=>({fontSize:`${C}px`,lineHeight:`${f}px`}),[C,f]);return t.jsxs("div",{className:`training-text-box ${k} ${x!=="disabled"&&l==="dark"?"is-dark":""}`,children:[x==="disabled"&&t.jsx("div",{className:"training-text-box__preview",children:t.jsx(ae,{size:48,type:"bar",onClick:y,icon:"eye",ariaLabel:r("training.sentencePreview","\uBB38\uC7A5 \uBBF8\uB9AC\uBCF4\uAE30"),label:r("training.sentencePreview","\uBB38\uC7A5 \uBBF8\uB9AC\uBCF4\uAE30"),useBorder:!1})}),t.jsx("div",{className:"training-text-box__area","aria-hidden":x==="disabled",children:t.jsx("span",{className:"training-text-box__inner h3",style:M,children:A})}),x!=="disabled"&&t.jsxs("div",{className:"training-text-box__buttons","aria-hidden":x==="disabled",children:[t.jsx(ae,{size:32,type:"dot",onClick:p,onDisabledClick:()=>_(r("training.fontSizeMin","\uAE00\uC528 \uD06C\uAE30\uAC00 \uCD5C\uC18C\uC785\uB2C8\uB2E4.")),ariaLabel:r("training.fontSizeDecrease","\uAE00\uC790 \uD06C\uAE30 \uAC10\uC18C"),icon:"minus",variant:l==="dark"?"transparent-white":"transparent-gray",disabled:!m,useBorder:!1,showTooltipInfo:!0,...!v&&{width:"60px"}}),t.jsx(ae,{size:32,type:"dot",onClick:d,onDisabledClick:()=>_(r("training.fontSizeMax","\uAE00\uC528 \uD06C\uAE30\uAC00 \uCD5C\uB300\uC785\uB2C8\uB2E4.")),ariaLabel:r("training.fontSizeIncrease","\uAE00\uC790 \uD06C\uAE30 \uC99D\uAC00"),icon:"plus",variant:l==="dark"?"transparent-white":"transparent-gray",disabled:!h,useBorder:!1,showTooltipInfo:!0,...!v&&{width:"60px"}}),t.jsx(ae,{size:32,showTooltipInfo:!0,type:"dot",useBorder:!1,width:48,icon:l==="dark"?"moon":"sun-medium",onClick:u,ariaLabel:r("training.toggleBackground","\uBC30\uACBD \uC804\uD658"),variant:l==="dark"?"transparent-white":"transparent-gray"})]}),t.jsx(Tn,{message:b,position:"top",onClose:w})]})}function Or({index:e,stepIndex:n,isLast:a=!1,title:r,useTitleFaded:o,onDone:s,onChange:l,answer:c,wrongAnswers:u,choices:d,multiSelect:p=!1,correctCount:h=0,useDisabledCovered:m=!1,choiceIcons:C,shuffleChoices:f=!0}){const{t:b}=de.useTranslation(),g=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,w=typeof n!="number"?"disabled":y<n?"done":y===n?"active":"disabled",_=Array.isArray(d)&&d.length?d:typeof c<"u"?[c].concat(Array.isArray(u)?u:[]):void 0,v=u?u.join("||"):"",A=d?d.join("||"):"",[x,k]=i.useState(()=>Array.isArray(_)?f?Gn(_):_.slice():void 0);i.useEffect(()=>{Array.isArray(_)&&_.length?k(f?Gn(_):_.slice()):k(void 0)},[c,v,A,f]);const[M,N]=i.useState(null),[D,P]=i.useState(()=>new Set);i.useEffect(()=>{N(null),P(new Set)},[A]);const L=i.useRef(void 0);i.useEffect(()=>{const S=L.current;typeof S=="number"&&typeof n=="number"&&typeof e=="number"&&S>=e&&n<e&&(N(null),P(new Set)),L.current=n},[n,e]);const E=i.useCallback(S=>{if(w!=="active")return;const V=x?.[S];if(V==null)return;const Y=V,X=w==="active"||w==="done";if(p){const J=new Set(D),O=J.has(Y);O?J.delete(Y):J.add(Y),P(J),typeof l=="function"&&l({selectedValues:[...J],__ts:Date.now()}),X&&(typeof h=="number"&&h>0?J.size>=h:!O)&&typeof s=="function"&&w==="active"&&s({selectedValues:[...J],__ts:Date.now()})}else N(Y),typeof l=="function"&&l({selectedIndex:S,selectedValue:Y,__ts:Date.now()}),X&&typeof s=="function"&&w==="active"&&s({selectedIndex:S,selectedValue:Y,__ts:Date.now()})},[x,w,p,l,s,h,D]),R=`training-step__buttons${Array.isArray(x)&&x.length>3?" training-step__buttons--wrap-3":""}`;return t.jsx(Nn,{index:e,stepIndex:n,isLast:a,title:g,useTitleFaded:o,children:t.jsx("div",{className:R,children:Array.isArray(x)&&x.length>0?x.map((S,V)=>t.jsx(ae,{size:56,type:"bar",onClick:()=>E(V),ariaLabel:String(S),label:S,useLabel:!0,icon:C?C[String(S)]:void 0,variant:"default",disabled:w==="disabled",selected:p?D.has(S):M===S,useDisabledCovered:m,minWidth:0},String(S))):null})})}function Hr({index:e,stepIndex:n,isLast:a=!1,title:r,onDone:o,onChange:s,context:l,demoSelected:c}){const{t:u}=de.useTranslation(),d=r??u("training.confirmTitle","\uBB38\uC7A5\uC744 \uD655\uC778\uD558\uACE0 \uC798 \uB4E4\uB838\uB294\uC9C0 \uC120\uD0DD\uD558\uC138\uC694."),p=typeof e=="number"?e:-1,h=typeof n!="number"?"disabled":p<n?"done":p===n?"active":"disabled",m=l&&typeof l=="object"?l.sentence||"":typeof l=="string"?l:"",C=l&&typeof l=="object"?l.choices:void 0,[f,b]=i.useState(c??null),[g,y]=i.useState(m);g!==m&&(y(m),c==null&&b(null));const w=i.useCallback(A=>{const x=typeof A=="object"&&A!==null?Object.assign({},A,{__ts:Date.now()}):{value:A,__ts:Date.now()};typeof s=="function"&&s(x),h==="active"&&typeof o=="function"&&o(x)},[s,h,o]),_=i.useCallback(()=>{h==="active"&&(b(!1),w(!1))},[w,h]),v=i.useCallback(()=>{h==="active"&&(b(!0),w(!0))},[w,h]);return t.jsxs(Nn,{index:e,stepIndex:n,isLast:a,title:d,onDone:o,useTitleFaded:!1,children:[t.jsx(Nl,{context:l,state:h}),t.jsx("div",{className:"training-step__buttons",children:Array.isArray(C)&&C.length>0?C.slice(0,6).map((A,x)=>t.jsx(ae,{size:56,type:"bar",onClick:()=>{h==="active"&&(b(x),w&&w(x))},disabled:h==="disabled",ariaLabel:String(A),label:A,variant:h,selected:f===x},x)):t.jsxs(t.Fragment,{children:[t.jsx(ae,{size:56,type:"bar",onClick:_,disabled:h==="disabled",icon:"x",ariaLabel:u("training.notHeard","\uC548 \uB4E4\uB838\uC5B4\uC694."),label:u("training.notHeard","\uC548 \uB4E4\uB838\uC5B4\uC694."),variant:"default",selected:f===!1}),t.jsx(ae,{size:56,type:"bar",onClick:v,disabled:h==="disabled",icon:"circle",ariaLabel:u("training.heardWell","\uC798 \uB4E4\uB838\uC5B4\uC694."),label:u("training.heardWell","\uC798 \uB4E4\uB838\uC5B4\uC694."),variant:"default",selected:f===!0})]})})]})}function Vr({index:e,stepIndex:n,isLast:a=!1,title:r,onDone:o,btnLabel:s,soundSrc:l,bucketPath:c,usePreviewTextBtn:u,previewText:d=null,onPreviewTextBtn:p,disabled:h,_pageIndex:m,showSoundWaveForm:C,showNoiseWaveForm:f}){const{t:b}=de.useTranslation(),g=r??b("training.listenTitle","\uC81C\uC2DC\uD558\uB294 \uBB38\uC7A5\uC744 \uB4E4\uC5B4\uC8FC\uC138\uC694."),y=h??(typeof n=="number"&&typeof e=="number"?e>n:!1);return t.jsx(Nn,{index:e,stepIndex:n,isLast:a,title:g,onDone:o,titleProps:{usePreviewTextBtn:u,previewText:d,onPreviewTextBtn:p},children:t.jsx(Ir,{soundSrc:l,ttsText:l?null:d??g,bucketPath:c,btnLabel:s||b("training.listenButton","\uBB38\uC7A5 \uB4E3\uAE30"),disabled:y,className:"training-step__listen-sticky",showSoundWaveForm:C,showNoiseWaveForm:f},`audio-p${m??0}-s${e}`)})}function zr({index:e,stepIndex:n,isLast:a=!1,title:r,onDone:o,onChange:s,context:l=[]}){const{t:c}=de.useTranslation(),u=r??c("training.orderListDefault","\uBB38\uC7A5\uC744 \uB4E4\uC740 \uC21C\uC11C\uB300\uB85C \uBC30\uCE58\uD558\uC138\uC694."),d=j=>typeof j=="string"?j:j&&(j.context||j.sentence||j.question||"")||"",[p,h]=i.useState(Array.isArray(l)?l:[]),[m,C]=i.useState(()=>(p||[]).map((j,$)=>({id:$,text:d(j)}))),f=i.useMemo(()=>typeof n!="number"||typeof e!="number"?"disabled":e<n?"done":e===n?"active":"disabled",[n,e]);i.useEffect(()=>{const j=Array.isArray(l)?l:[];h(j);const $=(F=>{const H=(F||[]).map((U,le)=>({id:le,text:d(U)}));if(H.length<=1)return H;const Z=(U,le)=>{if(U.length!==le.length)return!1;for(let pe=0;pe<U.length;pe++)if(U[pe].text!==le[pe].text)return!1;return!0};let I=Gn(H),W=0;for(;Z(I,H)&&W<20;)I=Gn(H),W+=1;return I})(j);C($);try{if(typeof s=="function"){const F=$.filter((H,Z)=>H.text===d(j[Z])).length;s({shuffled:$,score:F,total:(j||[]).length,initial:!0,__ts:Date.now()})}if(typeof o=="function"&&f==="active"){const F=$.filter((H,Z)=>H.text===d(j[Z])).length;o({shuffled:$,score:F,total:(j||[]).length,initial:!0,__ts:Date.now()})}}catch{}},[l]);const b=(j,$)=>{const F=[...m],H=j+$;if(H<0||H>=F.length)return;const Z=F[H];F[H]=F[j],F[j]=Z,R(F);try{if(typeof o=="function"&&f==="active"){const I=F.filter((W,U)=>W.text===d(p[U])).length;o({shuffled:F,score:I,total:(p||[]).length,__ts:Date.now()})}}catch{}},[g,y]=i.useState(null),w=i.useRef(null),_=i.useRef(null),v=i.useRef(null),A=i.useRef(null),x=i.useRef(null),k=i.useRef({x:0,y:0}),M=i.useRef(null),N=i.useRef({dx:0,dy:0}),D=()=>{if(M.current!==null)return;const j=()=>{M.current=requestAnimationFrame(j);const $=k.current,F=N.current||{dx:0,dy:0};w.current&&(w.current.style.transform=`translate3d(${$.x-F.dx}px, ${$.y-F.dy}px, 0)`)};M.current=requestAnimationFrame(j)},P=i.useRef(new Map),L=i.useRef(new Map),E=()=>{const j=new Map;return P.current.forEach(($,F)=>{$&&$.getBoundingClientRect&&j.set(F,$.getBoundingClientRect())}),j},R=j=>{const $=E();C(j);try{if(typeof s=="function"){const F=j.filter((H,Z)=>H.text===d(p[Z])).length;s({shuffled:j,score:F,total:(p||[]).length,__ts:Date.now()})}}catch{}requestAnimationFrame(()=>{const F=E();j.forEach(H=>{const Z=$.get(H.id),I=F.get(H.id),W=P.current.get(H.id);if(!W||!Z||!I)return;const U=Z.top-I.top;U&&(W.style.transition="none",W.style.transform=`translateY(${U}px)`,requestAnimationFrame(()=>{W.style.transition="transform 420ms cubic-bezier(.22,.9,.39,1)",W.style.transform="";const le=()=>{W.style.transition="",W.removeEventListener("transitionend",le)};W.addEventListener("transitionend",le)}))})})},S=(j,$)=>{try{try{$.dataTransfer?.setData("text/plain",String(j))}catch{}try{$.dataTransfer&&($.dataTransfer.effectAllowed="move")}catch{}try{const F=document.createElement("div");F.style.cssText="position:absolute;top:-9999px;left:-9999px;width:1px;height:1px;opacity:0;pointer-events:none;",document.body.appendChild(F),$.dataTransfer?.setDragImage(F,0,0),requestAnimationFrame(()=>{try{document.body.removeChild(F)}catch{}})}catch{}}catch{}y(j);try{const F=m[j],H=document.createElement("div");H.className="order-list__dragging-object order-list__dragging-object--visible",H.textContent=F&&F.text?F.text:"",document.body.appendChild(H),w.current=H;const Z=P.current.get(F.id);let I=$.clientX||0,W=$.clientY||0;try{if(Z&&Z.getBoundingClientRect){const he=Z.getBoundingClientRect();I=he.left+he.width/2,W=he.top+he.height/2}}catch{}const U=H.getBoundingClientRect(),le=U.width/2,pe=U.height/2;N.current={dx:le,dy:pe},H.style.transition="none",k.current={x:I,y:W},H.style.transform=`translate3d(${I-le}px, ${W-pe}px, 0)`,requestAnimationFrame(()=>{try{H.style.transition=""}catch{}D()});const Ce=he=>{const T=he;k.current={x:T.clientX,y:T.clientY},D()};v.current=Ce,document.addEventListener("mousemove",Ce);const ve=he=>{const T=he;k.current={x:T.clientX,y:T.clientY},D()};_.current=ve,document.addEventListener("dragover",ve);try{$.dataTransfer?.setData("text/plain",String(j));try{$.dataTransfer?.setData("application/json",JSON.stringify({idx:j}))}catch{}}catch{}}catch{}},V=(j,$)=>{$.preventDefault();try{$.dataTransfer&&($.dataTransfer.dropEffect="move")}catch{}try{x.current!==null&&(clearTimeout(x.current),x.current=null);const F=$.currentTarget&&$.currentTarget.closest?$.currentTarget.closest(".order-list__item"):null;if(F&&A.current!==F){if(A.current)try{A.current.classList.remove("drag-over")}catch{}try{F.classList.add("drag-over")}catch{}A.current=F}}catch{}},Y=(j,$)=>{$.preventDefault();const F=$.dataTransfer?.getData("text/plain")||"",H=F?parseInt(F,10):g,Z=j;if(typeof H!="number"||isNaN(H)||H===Z){y(null),O(),X();return}const I=qm(m,H,Z);R(I),y(null),X();try{if(typeof o=="function"&&f==="active"){const W=I.filter((U,le)=>U.text===d(p[le])).length;o({shuffled:I,score:W,total:(p||[]).length,__ts:Date.now()})}}catch{}try{requestAnimationFrame(()=>{const W=document.querySelectorAll(".order-list .order-list__item")[Z];if(!W)return;const U=W.querySelector(".order-list__slot")||W;try{U.classList.add("pulse"),U.offsetHeight,U.classList.add("to-dark");const le=()=>{U.classList.remove("pulse","to-dark"),U.removeEventListener("transitionend",le)};U.addEventListener("transitionend",le)}catch{}})}catch{}O()},X=()=>{if(w.current){try{document.body.removeChild(w.current)}catch{}w.current=null}_.current&&(document.removeEventListener("dragover",_.current),_.current=null),v.current&&(document.removeEventListener("mousemove",v.current),v.current=null),M.current!==null&&(cancelAnimationFrame(M.current),M.current=null)},J=()=>{y(null),O(),X()};i.useEffect(()=>()=>X(),[]);const O=()=>{try{if(x.current!==null&&(clearTimeout(x.current),x.current=null),A.current){try{A.current.classList.remove("drag-over")}catch{}A.current=null}document.querySelectorAll(".order-list .order-list__item").forEach(j=>j.classList.remove("drag-over"))}catch{}};return i.useEffect(()=>{try{const j=Math.max(1,(m||[]).length);m.forEach(($,F)=>{const H=L.current.get($.id);if(!H)return;let Z=50;j>1&&(Z=Math.round(F/(j-1)*100));try{H.style.setProperty("--marker-pos",Z+"%")}catch{}})}catch{}},[m]),i.useEffect(()=>()=>{X(),x.current!==null&&(clearTimeout(x.current),x.current=null)},[]),t.jsx(Nn,{index:e,stepIndex:n,isLast:a,title:u,children:t.jsx("div",{className:"order-list",children:m.map((j,$)=>{const F=Math.max(1,(m||[]).length),H=F>1?Math.round($/(F-1)*100):50;return t.jsx("div",{className:"order-list__item",children:t.jsxs("div",{className:"order-list__slot","data-disabled":f==="disabled","aria-disabled":f==="disabled",children:[f!=="disabled"?t.jsx("div",{className:"order-list__marker caption-1",style:{"--marker-pos":H+"%"},ref:Z=>{const I=L.current;Z?I.set(j.id,Z):I.delete(j.id)},children:t.jsx("span",{className:"order-list__slot-number button-1",children:$+1})}):null,t.jsxs("div",{ref:Z=>{const I=P.current;Z?I.set(j.id,Z):I.delete(j.id)},className:`order-list__draggable ${g===$?"dragging":""}`,"data-disabled":f==="disabled","aria-disabled":f==="disabled",tabIndex:f==="disabled"?-1:0,draggable:f==="active",onDragStart:f==="active"?Z=>S($,Z):void 0,onDragEnter:f==="active"?Z=>V($,Z):void 0,onDragOver:f==="active"?Z=>V($,Z):void 0,onDragLeave:f==="active"?()=>{try{x.current!==null&&clearTimeout(x.current),x.current=setTimeout(()=>{try{const Z=document.querySelectorAll(".order-list .order-list__item");Z&&Z[$]&&(Z[$].classList.remove("drag-over"),A.current===Z[$]&&(A.current=null))}catch{}},80)}catch{}}:void 0,onDrop:f==="active"?Z=>Y($,Z):void 0,onDragEnd:f==="active"?J:void 0,children:[t.jsx("span",{className:"order-list__item-text body-2",children:j.text}),f==="active"?t.jsxs("span",{className:"order-list__item-buttons",children:[t.jsx(ae,{size:32,type:"dot",onClick:()=>b($,-1),ariaLabel:c("training.up"),icon:"chevron-up",variant:"transparent-gray",width:48,useFaded:"true",disabled:$===0,useBorder:!1,useDisabledInvisible:!0}),t.jsx(ae,{size:32,type:"dot",onClick:()=>b($,1),ariaLabel:c("training.down"),icon:"chevron-down",variant:"transparent-gray",width:48,useFaded:"true",disabled:$===m.length-1,useBorder:!1,useDisabledInvisible:!0})]}):null]})]})},j.id)})})})}const Rb=8e3;function Pb(e,n){return new Promise(a=>{let r=!1;const o=()=>{r||(r=!0,a())};e.then(o,o),setTimeout(o,n)})}function Bl({index:e,stepIndex:n,isLast:a=!1,title:r,onDone:o,onChange:s,context:l=[],selectable:c=!1,hideLabel:u=!1,hideAudio:d=!1,maxCards:p}){const{t:h}=de.useTranslation(),m=r??h("training.cardInstructions","\uB0B1\uB9D0 \uCE74\uB4DC\uB97C \uBCF4\uACE0 \uC18C\uB9AC\uB97C \uB4E3\uACE0 \uD655\uC778\uD558\uC138\uC694."),C=i.useMemo(()=>Array.isArray(l)?l:l&&l.items||[],[l]),f=p??3,b=(C||[]).slice(0,f);(C||[]).length>f&&console.warn(`TrainingStepCard: ${C.length} items passed but only ${f} shown`);const g=typeof e=="number"?e:-1,y=typeof n!="number"?"disabled":g<n?"done":g===n?"active":"disabled",[w,_]=i.useState(null),v=i.useRef([]),[A,x]=i.useState(!1),k=i.useMemo(()=>C.map(P=>P?.id??P?.word??"").join("|"),[C]);i.useEffect(()=>{_(null),v.current=[]},[k]);const M=i.useCallback((P,L)=>{if(c)return;const E={item:P,index:L,__ts:Date.now()};try{typeof s=="function"&&s(E)}catch{}if(y==="active"&&typeof o=="function")try{o(E)}catch{}},[c,s,y,o]),N=i.useCallback(async()=>{if(!(A||y==="disabled")){x(!0);try{for(const P of v.current)P&&await Pb(P.play(),Rb)}finally{x(!1)}}},[A,y]),D=i.useCallback((P,L)=>{if(y!=="active")return;_(L);const E={selectedValue:P.word||P.title||"",selectedIndex:L,item:P,__ts:Date.now()};try{typeof s=="function"&&s(E)}catch{}if(y==="active"&&typeof o=="function")try{o(E)}catch{}},[s,y,o]);return t.jsx(Nn,{index:e,stepIndex:n,isLast:a,title:m,onDone:o,titleProps:{usePlayAllBtn:!d&&b.length>0,onPlayAll:N,playAllActive:A},children:t.jsx("div",{className:"training-step__cards",children:b.length===0?t.jsx("div",{className:"training-step__empty",children:h("training.noCards","\uCE74\uB4DC\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4.")}):b.map((P,L)=>t.jsx(wr,{ref:E=>{v.current[L]=E},item:P,disabled:y==="disabled",onPlayDone:()=>M(P,L),selectable:c,selected:c&&w===L,onSelect:c?()=>D(P,L):void 0,flipDelay:L*120,hideLabel:u,hideAudio:d},P&&P.id||L))})})}const Ib=160,Sl=()=>{};function mn(e){const n=i.useId();if(!("variant"in e)){const{label:g,sub:y,onClick:w,children:_,align:v="horizontal",icon:A}=e,x=k=>{w&&k.target===k.currentTarget&&(k.key==="Enter"||k.key===" ")&&(k.preventDefault(),w())};return t.jsxs("div",{className:ye("panel-row",v==="vertical"?"panel-row--vertical":"",w?"panel-row--clickable":""),onClick:w,onKeyDown:w?x:void 0,role:w?"button":void 0,tabIndex:w?0:void 0,children:[A!=null&&t.jsx("div",{className:"panel-row__icon",children:A}),g!=null&&t.jsxs("div",{className:"panel-row__left",children:[t.jsx("div",{className:"panel-row__label body-3",children:g}),y&&t.jsx("div",{className:"panel-row__sub caption-1",children:y})]}),t.jsx("div",{className:"panel-row__right",children:_})]})}if(e.variant==="description")return t.jsx("div",{className:"panel-row panel-row--block",children:t.jsx("p",{className:"panel-row__description body-3",children:e.children})});if(e.variant==="empty")return t.jsx("div",{className:"panel-row panel-row--empty body-3",children:e.children});if(e.variant==="loading")return t.jsx("div",{className:"panel-row panel-row--loading",children:t.jsx(ta,{size:28})});if(e.variant==="custom"&&!e.label)return t.jsx("div",{className:"panel-row panel-row--block",children:e.children});const{variant:a,label:r,sub:o,onClick:s,required:l,error:c,align:u="horizontal",useFullWidth:d=!1,icon:p}=e,h=a==="button"?void 0:s;let m=null;const C=a==="toggle"?`panel-toggle-${n}`:void 0;if(a==="toggle"){const g=e;m=t.jsx(wi,{checked:g.checked,onChange:g.onChange,id:C})}else if(a==="segmented"){const g=e;m=t.jsx(An,{options:g.options,value:g.value,onChange:g.onChange,size:g.size??40,ariaLabel:r})}else if(a==="dropdown"){const g=e,y=g.dropdowns?.length?t.jsx("div",{className:`panel-row__dropdown-group${d?" panel-row__dropdown-group--full":""}`,children:g.dropdowns.map((w,_)=>t.jsx("div",{className:d?"panel-row__dropdown-item--full":void 0,children:t.jsx(zt,{options:w.options,value:w.value,onChange:w.onChange,placeholder:w.placeholder,block:d,error:!!c,ariaLabel:w.ariaLabel??([r,w.placeholder].filter(Boolean).join(" ")||void 0)})},_))}):t.jsx(zt,{options:g.options??[],value:g.value??"",onChange:g.onChange??Sl,block:d,error:!!c,ariaLabel:r});m=c?t.jsxs("div",{className:`panel-row__dropdown-error-wrap${d?" panel-row__dropdown-error-wrap--full":""}`,children:[y,t.jsx("span",{className:"caption-1 panel-row__error",role:"alert",children:c})]}):y}else if(a==="button"){const g=e;g.buttons?.length?m=t.jsx("div",{className:"panel-row__button-group",children:g.buttons.map((y,w)=>t.jsx(ae,{size:y.btnSize??40,variant:y.btnVariant??"default",disabled:y.disabled,onClick:y.onClick,children:y.label},w))}):m=t.jsx(ae,{size:g.btnSize??40,variant:g.btnVariant??"default",disabled:g.disabled,onClick:g.onClick,children:g.buttonLabel})}else if(a==="text"){const g=e;m=t.jsx("span",{className:`panel-row__text body-2${d?" panel-row__text--full":""}`,style:g.valueColor?{color:g.valueColor}:void 0,children:g.value})}else if(a==="input"){const g=e;m=t.jsxs("div",{className:`panel-row__input-wrap${d?" panel-row__input-wrap--full":""}`,children:[t.jsx(kn,{value:g.value,onChange:g.onChange??Sl,onKeyDown:g.onKeyDown,onEnter:g.onEnter,placeholder:g.placeholder,inputMode:g.inputMode,readOnly:g.readOnly,disabled:g.disabled,type:g.type,autoComplete:g.autoComplete,maxLength:g.maxLength,showCount:g.showCount,multiline:g.multiline,rows:g.rows,fullWidth:d,error:c,ariaLabel:r,required:l}),g.helperText&&t.jsx("div",{className:"panel-row__helper caption-1",children:g.helperText})]})}else a==="custom"&&(m=e.children);const f=a==="input"||a==="dropdown"||(a==="text"||a==="custom")&&d,b=g=>{h&&g.target===g.currentTarget&&(g.key==="Enter"||g.key===" ")&&(g.preventDefault(),h())};return t.jsxs("div",{className:ye("panel-row",u==="vertical"?"panel-row--vertical":"",f?"panel-row--label-fixed":"",a==="text"?"panel-row--text":"",h?"panel-row--clickable":""),onClick:h,onKeyDown:h?b:void 0,role:h?"button":void 0,tabIndex:h?0:void 0,children:[p!=null&&t.jsx("div",{className:"panel-row__icon",children:p}),t.jsxs("div",{className:"panel-row__left",children:[C?t.jsxs("label",{htmlFor:C,className:"panel-row__label body-3",children:[r,l&&t.jsx("span",{className:"required-mark",children:"*"})]}):t.jsxs("div",{className:"panel-row__label body-3",children:[r,l&&t.jsx("span",{className:"required-mark",children:"*"})]}),o&&t.jsx("div",{className:"panel-row__sub caption-1",children:o})]}),t.jsx("div",{className:"panel-row__right",children:m})]})}function Dl(e){const n=e.productName||e.brand,a=[e.brand,e.fitType].filter(r=>!!r&&r!==n);return[...new Set(a)].join(" \xB7 ")}function Fb({devices:e,onRelease:n,emptyLabel:a}){const{t:r}=de.useTranslation();return t.jsx("div",{className:"panel-row panel-row--device",children:["\uC88C","\uC6B0"].map(o=>{const s=e[o],l=o==="\uC88C"?r("device.direction.left","\uC88C"):r("device.direction.right","\uC6B0");return t.jsxs("div",{className:"panel-row__device-column",children:[t.jsxs("div",{className:"panel-row__device-head",children:[t.jsx("span",{className:"panel-row__device-side body-2b",children:l}),s&&n&&t.jsx(ae,{size:32,type:"dot",icon:"x",ariaLabel:r("customers.device.unwear","\uCC29\uC6A9 \uD574\uC81C"),showTooltipInfo:r("customers.device.unwear","\uCC29\uC6A9 \uD574\uC81C"),onClick:()=>n(o)})]}),s?t.jsxs("div",{className:"panel-row__device-info",children:[t.jsxs("span",{className:"panel-row__device-kind",children:[s.device&&t.jsx(lt,{size:"small",variant:Pi(s.device),fill:"soft",label:s.device}),Dl(s)&&t.jsx("span",{className:"panel-row__device-detail body-3",children:Dl(s)})]}),t.jsx("span",{className:"panel-row__device-name body-2b",children:s.productName||s.brand}),t.jsx("span",{className:"panel-row__device-date caption-1",children:r("customers.device.wornSince",{date:`${s.wornYear}.${s.wornMonth}.${s.wornDay}`})})]}):t.jsx("span",{className:"panel-row__device-empty body-3",children:a??r("customers.device.notRegistered","\uBBF8\uB4F1\uB85D")})]},o)})})}function Sa({title:e,icon:n,disc:a,actions:r,size:o="medium",minHeight:s,maxWidth:l,className:c,scrollable:u,useBorder:d=!0,useBg:p=!0,useRowBorder:h=!0,labelWidth:m,form:C=!1,loading:f,empty:b,children:g}){const y=ye("panel",`panel--${o}`,C?"panel--form":"",s!==void 0?"panel--fill":"",d?"":"panel--no-border",p?"":"panel--no-bg",h?"":"panel--no-row-border",c),w={};return s!==void 0&&(w.minHeight=s),l!==void 0&&(w.maxWidth=typeof l=="number"?`${l}px`:l),m!==void 0&&(w["--panel-label-width"]=typeof m=="number"?`${m}px`:m),t.jsxs("div",{className:y,style:Object.keys(w).length?w:void 0,children:[(e!=null||a!=null)&&t.jsxs("div",{className:ye("panel__header",a!=null?"panel__header--with-disc":""),children:[n&&t.jsx(Oe,{icon:n,label:typeof e=="string"?e:void 0,className:"panel__icon"}),t.jsxs("div",{className:"panel__title-group",children:[e!=null&&t.jsx("h2",{className:`panel__title ${a!=null?"body-3b":"h5b"}`,children:e}),a!=null&&t.jsx("p",{className:"panel__disc caption-1",children:a})]}),r&&t.jsx("div",{className:"panel__actions",children:r})]}),f?t.jsx(mn,{variant:"loading"}):b!=null&&(g==null||Array.isArray(g)&&g.length===0)?t.jsx(mn,{variant:"empty",children:b}):u?t.jsx("div",{className:"panel__body--scroll",children:g}):g]})}function Ob({cols:e=2,children:n}){return t.jsx("div",{className:"panel-grid",style:{"--panel-grid-cols":e},children:n})}function Hb(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 jl(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"}]}Hb(Pt.t.bind(Pt)),jl(Pt.t.bind(Pt));const Wr="none",Vb=.5,zb=1.5,Wb=.25;function qr({title:e,valueLabel:n,value:a,min:r,max:o,step:s,tickStep:l,size:c,onChange:u}){return t.jsxs(mn,{variant:"custom",label:e,useFullWidth:!0,children:[t.jsx(Mi,{value:a,onChange:u,min:r,max:o,step:s,size:c,showBgTick:!0,tickStep:l,ariaLabel:e,className:"noise-settings__slider-input"}),t.jsx("div",{className:"noise-settings__value button-1",children:n})]})}function El({anchorRect:e,onClose:n}){const{t:a}=de.useTranslation(),r=Qt("(max-width: 767px)")?40:24,o=Aa(),s=ra(o?.settings??ka),l=o?.settings.type??"defaultNoise",c=o?.settings.enabled??!0,u=o?.playbackRate??1,d=o?.mainVolume??1,p=Math.round(d*100),h=i.useCallback(b=>{try{o?.setMainVolume(Math.max(0,Math.min(1,b/100)))}catch{}},[o]),m=i.useCallback(b=>{try{o?.setPlaybackRate(b)}catch{}},[o]),C=i.useCallback(b=>{const g=Math.min(_a,Math.max(0,Math.round(b*10)/10));try{o?.setSettings({noiseRatio:g})}catch{}},[o]),f=i.useCallback(b=>{try{b===Wr?o?.setSettings({enabled:!1}):o?.setSettings({type:b,enabled:!0})}catch{}},[o]);return t.jsx(un,{anchorRect:e,offset:12,onClose:n,ariaLabel:a("training.trainingSettingsTitle","\uD6C8\uB828 \uC124\uC815"),isMobilePopup:!1,closeOnOutsideClick:!1,header:t.jsxs("div",{className:"noise-settings__header",children:[t.jsx("span",{children:a("training.trainingSettingsTitle","\uD6C8\uB828 \uC124\uC815")}),t.jsx(ae,{size:40,type:"dot",icon:"x",variant:"transparent-gray",useBorder:!1,ariaLabel:a("common.close","\uB2EB\uAE30"),onClick:n})]}),children:t.jsxs(Sa,{className:"noise-settings",useBorder:!1,labelWidth:72,children:[t.jsx(qr,{title:a("training.playVolumeTitle","\uC804\uCCB4 \uC18C\uB9AC"),valueLabel:`${p}%`,value:p,min:0,max:100,step:10,size:r,onChange:h}),t.jsx(qr,{title:a("training.playSpeedTitle","\uC7AC\uC0DD \uC18D\uB3C4"),valueLabel:`${u.toFixed(2)}x`,value:u,min:Vb,max:zb,step:Wb,size:r,onChange:m}),t.jsx(mn,{variant:"custom",label:a("training.noiseTypeTitle","\uC18C\uC74C \uC885\uB958"),useFullWidth:!0,children:t.jsx(An,{ariaLabel:a("training.noiseTypeTitle","\uC18C\uC74C \uC885\uB958"),size:40,shape:"rounded",options:[{key:Wr,label:a("training.noise.type.none","\uC5C6\uC74C")},...jl(a).map(b=>({key:b.value,label:b.label}))],value:c?l:Wr,onChange:f})}),t.jsx(qr,{title:a("training.noiseRatioTitle","\uC18C\uC74C \uBE44\uC728"),valueLabel:a("training.noiseRatioValue","{{ratio}}\uBC30",{ratio:s.toFixed(1)}),value:s,min:0,max:_a,step:fl,size:r,onChange:C})]})})}function Tl({useNoiseSettingBtn:e=!1,onSettings:n,onNext:a,onResult:r,stepIndex:o=0,stepCount:s=0,pageIndex:l=0,pageCount:c=1}){const{t:u}=de.useTranslation(),[d,p]=i.useState(!1),[h,m]=i.useState(null),[C,f]=i.useState(!1),b=i.useRef(null),g=i.useRef(null),y=Aa(),w=l<c-1,_=l===c-1,v=o===Math.max(0,s);i.useEffect(()=>{e||(p(!1),m(null))},[e]);const A=i.useCallback(()=>{p(!1),m(null)},[]),x=i.useCallback(()=>{if(d){p(!1),m(null);return}const N=b?.current?.getBoundingClientRect();N&&m(N),n?.(),p(!0)},[d,n]),k=i.useCallback(()=>{if(d){p(!1),m(null);return}const N=g?.current?.getBoundingClientRect();N&&m(N),n?.(),p(!0)},[d,n]),M=i.useCallback(()=>f(N=>!N),[]);return t.jsxs("div",{className:"pp-bottom",children:[t.jsxs("div",{className:"pp-bottom__left",children:[e?t.jsxs(t.Fragment,{children:[t.jsx("div",{className:"pp-bottom__settings--desktop",children:t.jsx("div",{ref:b,className:"pp-bottom__tooltip-trigger","data-tooltip-ignore":!0,children:t.jsx(ae,{size:56,type:"bar",icon:"settings",onClick:x,selected:d,ariaLabel:u("training.trainingSettingsTitle","\uD6C8\uB828 \uC124\uC815"),label:u("training.trainingSettingsTitle","\uD6C8\uB828 \uC124\uC815"),minWidth:140})})}),t.jsx("div",{className:"pp-bottom__settings--mobile",children:t.jsx("div",{ref:g,className:"pp-bottom__tooltip-trigger","data-tooltip-ignore":!0,children:t.jsx(ae,{size:56,type:"dot",icon:"settings",onClick:k,selected:d,ariaLabel:u("training.settings","\uC124\uC815"),minWidth:52})})})]}):null,e&&t.jsx(ae,{size:40,type:"dot",shape:"pill",icon:"audio-lines",onClick:M,selected:C,ariaLabel:u("training.meter.toggle","\uC624\uB514\uC624 \uBBF8\uD130 \uD45C\uC2DC")}),e&&C&&t.jsxs("div",{className:"pp-bottom__meters",children:[t.jsxs("div",{className:"pp-bottom__meter",children:[t.jsx("span",{className:"pp-bottom__meter-label caption-1",children:u("training.meter.sentence","\uC7AC\uC0DD")}),t.jsx(br,{analyser:y?.mainAnalyser??null,orientation:"horizontal",length:112,label:"db",labelPos:"left",ariaLabel:u("training.meter.sentence","\uC7AC\uC0DD")})]}),t.jsxs("div",{className:"pp-bottom__meter",children:[t.jsx("span",{className:"pp-bottom__meter-label caption-1",children:u("training.meter.noise","\uC18C\uC74C")}),t.jsx(br,{analyser:y?.noiseAnalyser??null,orientation:"horizontal",length:112,label:"db",labelPos:"left",ariaLabel:u("training.meter.noise","\uC18C\uC74C")})]})]})]}),t.jsxs("div",{className:"pp-bottom__right",children:[_&&t.jsx(ae,{size:56,type:"bar",icon:"check",onClick:typeof r=="function"?r:a,ariaLabel:u("training.viewResult","\uACB0\uACFC\uBCF4\uAE30"),label:u("training.viewResult","\uACB0\uACFC\uBCF4\uAE30"),variant:"main",disabled:!v}),w&&t.jsx(ae,{size:56,type:"bar",rightIcon:"chevron-right",align:"right",onClick:a,ariaLabel:u("training.nextQuestion","\uB2E4\uC74C \uBB38\uC81C"),label:u("training.nextQuestion","\uB2E4\uC74C \uBB38\uC81C"),variant:"main",disabled:!v})]}),e&&d&&t.jsx(El,{anchorRect:h,onClose:A})]})}function Ml({title:e,subtitle:n,desc:a,depth:r,icon:o,wrapperStyle:s,iconTooltip:l,pageIndex:c,pageCount:u,progressMax:d,progressIndex:p,onBack:h,onClose:m}){const{t:C}=de.useTranslation(),f=Qt("(max-width: 767px)"),b=Number.isInteger(p)?p:c||0,g=Number.isInteger(d)?d:u||0,y=h||m,w=Array.isArray(r)?f?r[r.length-1]:r.join(" / "):r,_=typeof e=="string"?e.trim():e,v=typeof n=="string"?n.trim():n,A=!!(_||v),x=A?_||v:C("common.emptyTrainingName","\uD6C8\uB828 \uC774\uB984\uC774 \uBE44\uC5B4 \uC788\uC2B5\uB2C8\uB2E4."),k=w||n,M=f&&typeof k=="string"&&(k.includes(" \xB7 ")||k.includes(" / "))?k.split(/\s[·/]\s/).pop():k,N=i.useMemo(()=>{const D=s&&typeof s=="object"?{...s}:{};return!("width"in D)&&!("height"in D)&&(D.width="40px",D.height="40px"),D},[s]);return t.jsxs("header",{className:"pp-title training-popup-title",children:[t.jsxs("div",{className:"pp-title__left",children:[y?t.jsx(ae,{size:48,type:"dot",icon:"chevron-left",ariaLabel:C("common.back","\uB4A4\uB85C"),onClick:y,useBorder:!1,iconSize:"large",iconColor:"--color-black",variant:"transparent-gray"}):null,t.jsx("div",{children:o?t.jsx(Oi,{icon:o,label:e,tooltip:l,wrapperStyle:N}):null}),t.jsxs("div",{className:"pp-title__text",children:[M?t.jsx("span",{className:"pp-title__depth caption-1",children:M}):null,t.jsx("span",{className:`pp-title__title h2${A?"":" pp-title__title--empty"}`,children:x}),a?t.jsx("span",{className:"pp-title__description caption-1",children:a}):null]})]}),t.jsx(Ri,{max:Math.max(0,g??0),index:Math.max(0,b??0)})]})}function qb(){typeof window<"u"&&window.dispatchEvent(new CustomEvent("speechear.popup.close"))}function Ub(e){return!e&&e!==0?[]:Array.isArray(e)?e.flatMap(n=>typeof n=="string"?n.split("|").map(a=>a.trim()).filter(Boolean):n||n===0?[String(n)]:[]):typeof e=="string"?e.split("|").map(n=>n.trim()).filter(Boolean):[String(e)]}function Ll(e,n,a){const r=e,o=r?.title||r?.name||(Array.isArray(n)?n[n.length-1]:void 0)||a||"\uD6C8\uB828",s=ps().find(c=>c.key===(r?.category_0||r?.category_main_code)),l=s?.subs?.find(c=>c.key===(r?.category_1||r?.category_sub_code));return{title:o,label:r?.title||o,depth:n,icon:s?.icon,wrapperStyle:s?.color?{"--t-item-fg":s.color}:void 0,iconTooltip:[s?.label,l?.label].filter(Boolean).join(" / ")||void 0}}function Ur(e){return e&&typeof e=="object"&&typeof e.__ts=="number"?e.__ts:0}function Gb(e){const n=e;return Array.isArray(n?.items)?n.items:Array.isArray(e)?e:e?[e]:[]}function Kb({idPrefix:e,trainingData:n,depth:a,fallbackTitle:r="\uD6C8\uB828",pages:o=[],emptyMessage:s,buildResults:l,metaPatch:c}){const u=Ll(n,a,r),d=typeof c=="function"?c(u)||{}:c||{},p=n?.id||n?.title||o.length;return{id:`${e}:${p}`,meta:{...u,...d},pages:o,emptyMessage:s,buildResults:l}}function Zb(e){if(typeof e=="string")return e;if(e&&typeof e=="object"){const n=e;return n.context||n.sentence||n.question||""||""}return""}function Yb(e){if(e&&typeof e=="object"){const n=e;if(Array.isArray(n.selectedValues))return n.selectedValues;if(n.selectedValue!==void 0)return n.selectedValue;if(n.selectedIndex!==void 0)return n.selectedIndex;if(n.value!==void 0)return n.value}return e}function Xb(e,n=[]){if(Array.isArray(e))return e.join(", ");if(typeof e=="number"&&Array.isArray(n))return String(n[e]??"");if(typeof e=="string")return e}function $l(e,n){if(!(!e||typeof e!="object"))return e[`step-${n}`]}function Jb(e,n,a,r){return $l(e,n*a+r)}function Qb({payload:e,selected:n,choices:a=[],correctAnswers:r=[]}){if(e&&typeof e=="object"){const o=e;if(Array.isArray(o.selectedValues))return r.every(s=>o.selectedValues.includes(s))&&o.selectedValues.every(s=>r.includes(s));if(typeof o.correct=="boolean")return o.correct}if(r.length){if(typeof n=="number"&&Array.isArray(a)&&a.length)return r.some(o=>String(o)===String(a[n]));if(typeof n<"u")return r.some(o=>String(o)===String(n))}}function e5(e){return e?Array.isArray(e.items)?e.items.map(n=>{const a=n;return typeof n=="string"?{sentence:n}:{sentence:a.context||a.sentence||"",contextCode:a.contextCode||a.context_code}}):Array.isArray(e.sentences)?e.sentences.map(n=>{const a=n;return typeof n=="string"?{sentence:n}:{sentence:a.sentence||a.context||"",contextCode:a.contextCode}}):Array.isArray(e.contexts)?e.contexts:e.contextCode?[{contextCode:e.contextCode}]:[]:[]}const Rl=i.createContext(null);function t5(){const e=i.useContext(Rl);if(!e)throw new Error("useTrainingPagePopupContext must be used inside TrainingPagePopup");return e}function n5({index:e,stepIndex:n,isLast:a=!1,title:r="\uB4E4\uC740 \uC21C\uC11C\uB300\uB85C \uCE74\uB4DC\uB97C \uC120\uD0DD\uD558\uC138\uC694.",choices:o=[],onDone:s,onChange:l}){const c=typeof e=="number"?e:-1,u=typeof n!="number"?"disabled":c<n?"done":c===n?"active":"disabled",[d,p]=i.useState(()=>o.map(()=>null)),h=o.join("|");i.useEffect(()=>{p(h?h.split("|").map(()=>null):[])},[h]);const m=i.useMemo(()=>d.filter(f=>f!==null).length+1,[d]),C=i.useCallback(f=>{u==="active"&&p(b=>{const g=[...b];if(g[f]!==null){const w=g[f];return g.map(_=>_!==null&&_>=w?null:_)}g[f]=m;const y={selectedOrder:g,words:o,__ts:Date.now()};try{typeof l=="function"&&l(y)}catch{}if(g.every(w=>w!==null))try{typeof s=="function"&&s(y)}catch{}return g})},[u,m,l,s,o]);return t.jsx(Nn,{index:e,stepIndex:n,isLast:a,title:r,onDone:s,children:t.jsx("div",{className:"training-step__cards",children:o.map((f,b)=>t.jsx(wr,{item:{word:f},disabled:u==="disabled",selectable:!0,selected:d[b]!==null,orderRank:d[b],onSelect:()=>C(b),flipDelay:b*120,hideLabel:!1,hideAudio:!0},`${f}-${b}`))})})}function Da(e){return null}Da.__isTrainingPage=!0;function In(e,n){const a=t5();return{ctx:a,index:e,stepIndex:a.currentStepIndex,isLast:typeof e=="number"&&typeof n=="number"?e===n-1:!1,onDone:r=>a.handleStepDone(r,e),onChange:r=>a.handleStepChange(r,e)}}function Pl({_stepIndex:e,_totalSteps:n,...a}){const{index:r,stepIndex:o,isLast:s,onDone:l}=In(e,n);return t.jsx(Vr,{...a,index:r,stepIndex:o,isLast:s,onDone:l})}function Il({_stepIndex:e,_totalSteps:n,...a}){const{index:r,stepIndex:o,isLast:s,onDone:l,onChange:c}=In(e,n);return t.jsx(Or,{...a,index:r,stepIndex:o,isLast:s,onDone:l,onChange:c})}function Fl({_stepIndex:e,_totalSteps:n,...a}){const{index:r,stepIndex:o,isLast:s,onDone:l,onChange:c}=In(e,n);return t.jsx(Hr,{...a,index:r,stepIndex:o,isLast:s,onDone:l,onChange:c})}function Ol({_stepIndex:e,_totalSteps:n,...a}){const{index:r,stepIndex:o,isLast:s,onDone:l,onChange:c}=In(e,n);return t.jsx(zr,{...a,index:r,stepIndex:o,isLast:s,onDone:l,onChange:c})}function Hl({_stepIndex:e,_totalSteps:n,...a}){const{index:r,stepIndex:o,isLast:s,onDone:l,onChange:c}=In(e,n);return t.jsx(Bl,{...a,index:r,stepIndex:o,isLast:s,onDone:l,onChange:c})}function a5({_stepIndex:e,_totalSteps:n,...a}){const{index:r,stepIndex:o,isLast:s,onDone:l,onChange:c}=In(e,n);return t.jsx(n5,{...a,index:r,stepIndex:o,isLast:s,onDone:l,onChange:c})}function Gr(...e){for(const n of e)if(typeof n=="string"){const a=n.trim();if(a.length)return a}else{if(typeof n=="number"||typeof n=="boolean")return String(n);if(Array.isArray(n)&&n.length)return n.join(", ");if(n&&typeof n=="object"){const a=n,r=[a.text,a.label,a.value];for(const o of r){if(typeof o=="string"&&o.trim().length)return o.trim();if(typeof o=="number"||typeof o=="boolean")return String(o)}}}return null}function r5(e){return Gr(e?.question,e?.q,e?.sentence,e?.text,e?.prompt,e?.wording)}function Vl(e){if(!e)return;if(typeof e.decision=="boolean")return e.decision;if(typeof e.correct=="boolean")return e.correct;if(typeof e.heard=="boolean")return e.heard;if(typeof e.judgement=="boolean")return e.judgement;const n=Gr(e?.status,e?.result,e?.judge,e?.note);if(n){const a=n.toLowerCase();if(["ok","true","\uB9DE\uC74C","\uC815\uB2F5"].some(r=>a.includes(r)))return!0;if(["ng","false","\uD2C0\uB9BC","\uC624\uB2F5"].some(r=>a.includes(r)))return!1}}function zl(e){const{score:n,contextsLength:a,results:r=[],subtitle:o,onReplay:s,onClose:l,inline:c=!1}=e||{},{t:u}=de.useTranslation();i.useEffect(()=>{const b=a??0;n!=null&&b>0&&n/b>.5&&window.dispatchEvent(new CustomEvent("party:trigger",{detail:{count:140,strength:1.6,duration:2200}}))},[n,a]);const d=i.useCallback(b=>{const g=Vl(b),y=Gr(b?.wording,b?.label);return g===!0?{variant:"main",label:y??u("training.result.heardWell","\uC798 \uB4E4\uC5C8\uC5B4\uC694")}:g===!1?{variant:"danger",label:y??u("training.result.notHeard","\uBABB \uB4E4\uC5C8\uC5B4\uC694")}:{variant:"disabled",label:y??u("training.result.notJudged","\uBBF8\uD310\uC815")}},[u]),p=a??0,h=n??0,m=i.useMemo(()=>Array.isArray(r)?r:[],[r]),C=i.useMemo(()=>m.map(b=>{const g=b??{},y=r5(g)||u("training.result.noContent","(\uB0B4\uC6A9\uC5C6\uC74C)"),{variant:w,label:_}=d(g),v=Array.isArray(g.corrects)?g.corrects:[],A=v.length?v.join(", "):g.answer!=null&&g.answer!==""?String(g.answer):null,x=typeof g.selectedText=="string"?g.selectedText:null,k=Vl(g)===!0;return{problem:y,variant:w,label:_,answer:A,selectedText:x,isCorrect:k}}),[m,d,u]),f=i.useMemo(()=>C.some(b=>b.answer!==null||b.selectedText!==null),[C]);return t.jsx(hn,{onClose:l,inline:c,ariaLabel:u("training.result.title","\uD6C8\uB828\uC744 \uBAA8\uB450 \uB9C8\uCCE4\uC2B5\uB2C8\uB2E4."),className:"popup--training-result",footerClassName:"trp-result__foot",footer:({animateThen:b,closeWithAnimation:g})=>t.jsxs("div",{className:"trp-actions",children:[t.jsx(ae,{size:56,type:"bar",label:u("training.result.replay","\uB2E4\uC2DC\uD558\uAE30"),onClick:()=>b(s)}),t.jsx(ae,{size:56,type:"bar",label:u("training.result.done","\uC644\uB8CC"),variant:"main",onClick:g})]}),children:()=>t.jsxs("div",{className:"trp-result is-on",children:[t.jsxs("header",{className:"trp-result__head",children:[t.jsx("p",{className:"trp-result__eyebrow caption-1",children:u("training.result.eyebrow","\uD6C8\uB828 \uC644\uB8CC")}),t.jsx("h1",{className:"trp-result__title h2",children:u("training.result.title","\uD6C8\uB828\uC744 \uBAA8\uB450 \uB9C8\uCCE4\uC2B5\uB2C8\uB2E4.")}),o&&t.jsx("p",{className:"trp-result__subtitle body-3",children:o}),t.jsx("div",{className:"trp-score",children:t.jsxs("div",{className:"trp-score__figure","aria-label":u("training.result.scoreAria",{correct:h,total:p}),children:[t.jsx("span",{className:"trp-score__big",children:h}),t.jsx("span",{className:"trp-score__sep",children:"/"}),t.jsx("span",{className:"trp-score__total",children:p})]})})]}),C.length>0&&t.jsx("section",{className:"trp-result__body",children:t.jsxs("div",{className:`result-table${f?" result-table--answer":""}`,role:"table","aria-label":u("training.result.tableAriaLabel","\uBB38\uD56D\uBCC4 \uD310\uC815"),children:[t.jsxs("div",{className:"result-table__head caption-1",role:"row",children:[t.jsx("span",{role:"columnheader",children:u("common.col.problem","\uBB38\uC81C")}),f&&t.jsx("span",{role:"columnheader",children:u("training.result.colAnswerSelected","\uC815\uB2F5 \xB7 \uC120\uD0DD")}),t.jsx("span",{className:"col-right",role:"columnheader",children:u("training.result.colJudge","\uD310\uC815")})]}),C.map((b,g)=>t.jsxs("div",{className:"result-table__row",role:"row",children:[t.jsxs("div",{className:"trp-row__problem",children:[t.jsx("span",{className:"trp-row__no caption-1",children:String(g+1).padStart(2,"0")}),t.jsx("div",{className:"trp-row__q body-2",children:b.problem})]}),f&&t.jsxs("div",{className:"trp-row__answers",children:[b.answer!==null&&t.jsxs("div",{className:"trp-row__answer-line",children:[t.jsx("span",{className:"trp-row__answer-label answer-correct caption-1",children:u("training.result.colAnswer","\uC815\uB2F5")}),t.jsx("span",{className:"trp-row__answer-value body-2",children:b.answer})]}),t.jsxs("div",{className:"trp-row__answer-line",children:[t.jsx("span",{className:`trp-row__answer-label answer-selected caption-1 ${b.isCorrect?"is-correct":"is-wrong"}`,children:u("training.result.colSelected","\uC120\uD0DD")}),t.jsx("span",{className:`trp-row__answer-value body-2 ${b.isCorrect?"is-correct":"is-wrong"}`,children:b.selectedText??"\u2014"})]})]}),t.jsx("div",{className:"trp-row__judge",children:t.jsx(lt,{variant:b.variant,label:b.label,fill:"soft",minWidth:80})})]},g))]})})]})})}function o5(e){i.useEffect(()=>{if(!e)return;const n=new Date;return()=>{const a=new Date;a.getTime()-n.getTime()<5e3||Zm({trainingType:e,startedAt:n.toISOString(),endedAt:a.toISOString()})}},[e])}function Kr(e,n){return e&&e.id||`page-${n??0}`}function Zr(e,n){return e&&e.key||`step-${n??0}`}function ja(){return{pageIndex:0,stepIndex:0,answersByPage:{}}}function s5(e,n){return typeof e?.props=="function"?e.props(n)||{}:e?.props||{}}const Wl=new Set(["LISTEN_IN_NOISE","SHORT_STORY","LONG_STORY","ORDERING_SENTENCE"]),i5=e=>t.jsx(zl,{score:e.score,contextsLength:e.contextsLength,results:e.results,onReplay:e.onReplay,onClose:e.onClose});function l5(e){const{scenario:n,title:a,subTitle:r,depth:o,icon:s,wrapperStyle:l,iconTooltip:c,pageIndex:u,pageCount:d,stepIndex:p,stepCount:h,onBack:m,onComplete:C,onNext:f,onSettings:b,useNoiseSetting:g=!0,children:y,ariaLabel:w,label:_,buildResults:v,onResult:A,typeKey:x,entryPoint:k,dailyTotal:M,itemRef:N,renderResultPopup:D,noiseOverride:P}=e;o5(x&&!Wl.has(x)?x:"");const L=i.useRef(0);i.useEffect(()=>{L.current=Date.now()},[]);const{t:E}=de.useTranslation(),R=A,S=!!n,V=n?.id||null,Y=n?.meta||{},X=Array.isArray(n?.pages)?n.pages:[],J=Array.isArray(y)||i.isValidElement(y)&&typeof y!="function"?i.Children.toArray(y).filter(i.isValidElement):[],O=J.length>0,j=oe=>oe===Da||oe?.__isTrainingPage===!0,$=O&&J.some(oe=>j(oe.type)),F=$?J.filter(oe=>j(oe.type)).map((oe,me)=>{const fe=oe.props||{};return{id:`children-page-${me}`,steps:i.Children.toArray(fe.children).filter(i.isValidElement),pageTop:fe.pageTop||fe.top||null,pageBottom:fe.pageBottom||fe.bottom||null}}):[{id:"children-page-0",steps:J}],H=O&&!S&&typeof y!="function",Z=H?Math.max(1,F.length):0;i.useEffect(()=>{if(!(typeof document>"u"||!document.body)&&!document.body.classList.contains("ihabdevteam-core-scope"))return document.body.classList.add("ihabdevteam-core-scope"),()=>{document.body.classList.remove("ihabdevteam-core-scope")}},[]),i.useEffect(()=>{if(typeof document>"u"||!document.body)return;const oe=document.body;return oe.dataset.ihabTrainingPopupCount=String(Number(oe.dataset.ihabTrainingPopupCount||"0")+1),oe.classList.add("ihab-training-popup-open"),()=>{const me=Number(oe.dataset.ihabTrainingPopupCount||"1")-1;me>0?oe.dataset.ihabTrainingPopupCount=String(me):(delete oe.dataset.ihabTrainingPopupCount,oe.classList.remove("ihab-training-popup-open"))}},[]),i.useEffect(()=>{if(!(typeof document>"u"||!document.body))return y4()},[]);const[I,W]=i.useState({...ka,enabled:!1}),U=i.useRef(I);i.useEffect(()=>{U.current=I},[I]);const le=i.useRef(P);i.useEffect(()=>{let oe=!1;return Qm().then(me=>{if(oe)return;const fe=me?wa(U.current,me):{...ka};U.current=fe,W(fe),Ja(fe);const Ne=le.current;if(Ne){const K=typeof Ne=="function"?Ne(fe):Ne,ne=wa(fe,K);U.current=ne,W(ne),Ja(ne)}}),()=>{oe=!0}},[]);const[pe,Ce]=i.useState(null),[ve,he]=i.useState(null),T=i.useCallback((oe,me)=>{oe==="main"?Ce(me):he(me)},[]),q=i.useCallback(oe=>{const me=wa(U.current,oe);U.current=me,W(me),le.current||e0(me),Ja(me)},[]),ee=I.mainSpeed,_e=I.mainVolume,ue=i.useCallback(oe=>q({mainSpeed:oe}),[q]),ie=i.useCallback(oe=>q({mainVolume:oe}),[q]),te=i.useMemo(()=>({settings:I,setSettings:q,registerAnalyser:T,mainAnalyser:pe,noiseAnalyser:ve,playbackRate:ee,setPlaybackRate:ue,mainVolume:_e,setMainVolume:ie}),[I,q,T,pe,ve,ee,ue,_e,ie]),se=i.useRef(null),[Se,He]=i.useState("center"),[Ve,Re]=i.useState(!1),Ee=i.useRef(!1),je=i.useRef(null),Ae=i.useCallback(oe=>{Ee.current||(Ee.current=!0,Re(!0),je.current=setTimeout(oe,Ib))},[]);i.useEffect(()=>()=>{je.current&&clearTimeout(je.current)},[]),i.useEffect(()=>{const oe=se.current;if(!oe)return;const me=Array.from(oe.querySelectorAll(Zn)).filter(Ne=>!Ne.closest('[aria-hidden="true"]'))[0];if(me)try{me.focus()}catch{}const fe=Ne=>{if(Ne.key==="Escape"){Ne.preventDefault(),Ae(()=>{typeof m=="function"&&m()});return}};return oe.addEventListener("keydown",fe),()=>oe.removeEventListener("keydown",fe)},[m,Ae]),tr(se,!0);const[ze,at]=i.useState(!1),ge=i.useRef(!1),[Pe,$e]=i.useState(null),[Ke,Ze]=i.useState(""),[Ue,Ie]=i.useState(()=>ja()),dt=i.useRef(typeof u=="number"?u:null);i.useEffect(()=>{!S&&!H||(Ie(ja()),$e(null))},[S,V,H]),i.useEffect(()=>{H&&Ie(oe=>{const me=Math.max(0,Math.min(oe.pageIndex,Math.max(0,Z-1)));return me!==oe.pageIndex?{...oe,pageIndex:me,stepIndex:0}:oe})},[H,Z]);const ct=H?Math.max(0,Math.min(Ue.pageIndex,Z-1)):0,qe=H?F[ct]:null,ot=H&&qe&&Array.isArray(qe.steps)?qe.steps:[],Te=S?Ue.pageIndex:H?ct:typeof u=="number"?u:0,Me=S?X[Math.max(0,Math.min(Ue.pageIndex,Math.max(0,X.length-1)))]:null,tt=S&&Me&&Array.isArray(Me.steps)?Me.steps:[],ft=S?tt.length:H?ot.length:typeof h=="number"?h:0,Ye=S||H?Math.max(0,Math.min(Ue.stepIndex,Math.max(0,ft))):typeof p=="number"?p:0,Xe=S?X.length:H?Z:typeof d=="number"?d:0;i.useLayoutEffect(()=>{const oe=dt.current;if(typeof Te=="number"&&oe!==null&&Te!==oe&&Te>oe)try{Ze(E("training.problemNotice",{n:Te+1}))}catch{}dt.current=typeof Te=="number"?Te:dt.current},[Te,u,E]),i.useLayoutEffect(()=>{const oe=se.current;if(!oe)return;const me=()=>oe.querySelector(".page-popup__scroll");let fe=null,Ne=null,K=null;const ne=ke=>{const Fe=me();if(!Fe)return;const et=Fe.scrollHeight<=Fe.clientHeight;if(He(et?"center":"top"),ke&&!ge.current){ge.current=!0;try{at(!0)}catch{}try{De.disconnect()}catch{}}},be=()=>{fe!==null&&cancelAnimationFrame(fe),fe=requestAnimationFrame(()=>{Ne!==null&&clearTimeout(Ne),Ne=setTimeout(()=>ne(!0),60)})},xe=()=>{K!==null&&cancelAnimationFrame(K),K=requestAnimationFrame(()=>ne(!1))};be(),window.addEventListener("resize",xe);const De=new MutationObserver(be);De.observe(oe,{childList:!0,subtree:!0,attributes:!0});const Q=setTimeout(()=>{ge.current||ne(!0)},400);return()=>{window.removeEventListener("resize",xe),fe!==null&&cancelAnimationFrame(fe),Ne!==null&&clearTimeout(Ne),K!==null&&cancelAnimationFrame(K),clearTimeout(Q);try{De.disconnect()}catch{}}},[se]);const ht=i.useCallback(oe=>{se.current&&(se.current._childOnNext=oe)},[]),Et=i.useCallback(oe=>{se.current&&(se.current._childOnResult=oe)},[]),Qe=i.useCallback((oe,me,fe)=>{Ie(Ne=>{const K=Ne.answersByPage[oe]||{},ne=K[me],be=Ur(fe),xe=Ur(ne);return ne&&xe>be?Ne:{...Ne,answersByPage:{...Ne.answersByPage,[oe]:{...K,[me]:fe}}}})},[Ie]),vt=i.useCallback((oe,me,fe)=>{const Ne=Kr(Me,Te),K=Zr(oe,me);Qe(Ne,K,fe)},[Me,Te,Qe]),Tt=i.useCallback((oe,me,fe)=>{const Ne=Kr(Me,Te),K=Zr(oe,me);Qe(Ne,K,fe),!fe?.allowChange&&oe?.autoAdvance!==!1&&Ie(ne=>({...ne,stepIndex:Math.max(ne.stepIndex,me+1)}))},[Me,Te,Qe,Ie]),Zt=i.useCallback((oe,me)=>{const fe=qe?.id||`children-page-${Te??0}`,Ne=typeof me=="number"?me:Ye??0,K=`step-${Ne}`;Qe(fe,K,oe),oe?.allowChange||Ie(ne=>({...ne,stepIndex:Math.max(ne.stepIndex,Ne+1)}))},[qe,Te,Ye,Qe,Ie]),on=i.useCallback((oe,me)=>{const fe=qe?.id||`children-page-${Te??0}`,Ne=`step-${typeof me=="number"?me:Ye??0}`;Qe(fe,Ne,oe)},[qe,Te,Ye,Qe]),Ft=H?{currentPageIndex:Te??0,currentStepIndex:Ye??0,totalStepsInPage:ot.length,handleStepDone:Zt,handleStepChange:on}:null,Wt=async()=>{const oe=typeof n?.buildResults=="function"?await Promise.resolve(n.buildResults({scenario:n,pages:X,flowState:Ue,answersByPage:Ue.answersByPage})):null;return typeof R=="function"&&await Promise.resolve(R(oe))||oe},qt=async()=>{const oe=qe?.id||`children-page-${Ue.pageIndex}`,me=Ue.answersByPage[oe]||{},fe=$?(()=>{const ne={};let be=0;return F.forEach(xe=>{const De=Ue.answersByPage[xe.id]||{},Q=Array.isArray(xe.steps)?xe.steps.length:0;for(let ke=0;ke<Q;ke+=1){const Fe=De[`step-${ke}`];typeof Fe<"u"&&(ne[`step-${be+ke}`]=Fe)}be+=Q}),ne})():me;if(typeof v=="function"){const ne=await Promise.resolve(v(fe,{pageAnswers:me,answersByPage:Ue.answersByPage,pages:F,currentPageId:oe}));return typeof R=="function"&&await Promise.resolve(R(ne))||ne}const Ne=Object.entries(me).map(([ne,be],xe)=>({index:xe,key:ne,payload:be})),K={results:Ne,answers:Ne,score:0};return typeof R=="function"&&await Promise.resolve(R(K))||K},xt=()=>{try{if(typeof document<"u"&&document.body){try{document.dispatchEvent(new CustomEvent("speechear-close-tooltips"))}catch{}document.dispatchEvent(new PointerEvent("pointerdown",{bubbles:!0,cancelable:!0})),document.dispatchEvent(new MouseEvent("click",{bubbles:!0,cancelable:!0}))}}catch{}if(S){const fe=Wt();$e({});const Ne=fe;Promise.resolve(Ne).then(K=>{$e(K||{isEmpty:!0})}).catch(K=>{$e({isEmpty:!0})});return}if(H){const fe=qt();$e({});const Ne=fe;Promise.resolve(Ne).then(K=>{$e(K||{isEmpty:!0})}).catch(K=>{$e({isEmpty:!0})});return}const oe=se.current&&se.current._childOnResult,me=fe=>{try{return fe?fe():void 0}catch{return}};if(typeof oe=="function"){const fe=me(oe);try{typeof document>"u"?require("url").pathToFileURL(__filename).href:Jt&&Jt.tagName.toUpperCase()==="SCRIPT"&&Jt.src||new URL("components.cjs.js",document.baseURI).href}catch{}fe&&typeof fe.then!="function"?$e(fe):$e(fe&&typeof fe.then=="function"?{}:{}),Promise.resolve(fe).then(Ne=>{Ne&&$e(Ne)}).catch(Ne=>{});return}if(typeof R=="function"){const fe=me(R);try{typeof document>"u"?require("url").pathToFileURL(__filename).href:Jt&&Jt.tagName.toUpperCase()==="SCRIPT"&&Jt.src||new URL("components.cjs.js",document.baseURI).href}catch{}fe&&typeof fe.then!="function"?$e(fe):$e(fe&&typeof fe.then=="function"?{}:{}),Promise.resolve(fe).then(Ne=>{try{typeof document>"u"?require("url").pathToFileURL(__filename).href:Jt&&Jt.tagName.toUpperCase()==="SCRIPT"&&Jt.src||new URL("components.cjs.js",document.baseURI).href}catch{}Ne&&$e(Ne)}).catch(Ne=>{console.error("viewResults external handler failed",Ne)});return}},Cn=()=>{if(S){if(typeof Te=="number"&&typeof Xe=="number"&&Te<Xe-1){Ie(me=>({...me,pageIndex:me.pageIndex+1,stepIndex:0}));return}return xt()}if(H){const me=ot.length;if(typeof Ye=="number"&&Ye<me-1){Ie(fe=>({...fe,stepIndex:fe.stepIndex+1}));return}if(typeof Te=="number"&&typeof Xe=="number"&&Te<Xe-1){Ie(fe=>({...fe,pageIndex:fe.pageIndex+1,stepIndex:0}));return}return xt()}if(typeof f=="function"){try{f()}catch{}return}const oe=se.current&&se.current._childOnNext;if(typeof oe=="function"){try{oe()}catch{}return}},_t=S?Y.title||Y.label||w||E("common.popup","\uD31D\uC5C5"):a||_||(Array.isArray(o)?o[o.length-1]:void 0)||w||E("common.popup","\uD31D\uC5C5"),gn=S?Y.title??Y.label??_t:a??_??_t,Yt=(oe,me)=>{const fe=Kr(Me,Te),Ne=Zr(oe,me),K=Ue.answersByPage[fe]?.[Ne],ne=s5(oe,{page:Me,pageIndex:Te,step:oe,stepIndex:me,storedPayload:K,answersByPage:Ue.answersByPage,flowState:Ue}),be={key:Ne,index:me,stepIndex:Ye,isLast:me===tt.length-1};switch(oe?.type){case"listen":return t.jsx(Vr,{...be,...ne,onDone:xe=>Tt(oe,me,xe)});case"confirm":return t.jsx(Or,{...be,...ne,onDone:xe=>Tt(oe,me,xe),onChange:xe=>vt(oe,me,xe)});case"confirmWithText":return t.jsx(Hr,{...be,...ne,onDone:xe=>Tt(oe,me,xe),onChange:xe=>vt(oe,me,xe)});case"orderList":return t.jsx(zr,{...be,...ne,onDone:xe=>Tt(oe,me,xe),onChange:xe=>vt(oe,me,xe)});default:return null}},Ge=S?X.length>0?t.jsx("div",{className:"training-steps",children:tt.map((oe,me)=>Yt(oe,me))}):t.jsx("div",{className:"page-popup__content page-popup__content--center",children:t.jsx("div",{className:"pp-empty",children:n?.emptyMessage||E("training.noQuestions","\uBB38\uC81C\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4.")})}):null,Mt=H?t.jsxs(Rl.Provider,{value:Ft,children:[qe?.pageTop?t.jsx("div",{className:"training-page-top",children:qe.pageTop}):null,t.jsx("div",{className:"training-steps",children:ot.map((oe,me)=>{const fe=oe;return i.cloneElement(fe,{...fe.props,_stepIndex:me,_totalSteps:ot.length,_stepKey:`step-${me}`,_pageIndex:Te})})}),qe?.pageBottom?t.jsx("div",{className:"training-page-bottom",children:qe.pageBottom}):null]}):null,wt=i.useCallback(()=>{let oe;if(x){const me=Pe,fe=me?.results||me?.answers||[],Ne=Array.isArray(fe)&&fe.length>0?fe.length:null,K=Array.isArray(fe)?fe.filter(be=>be?.correct===!0||be?.isCorrect===!0||be?.score===1||be?.heard===!0||be?.judgement===!0).length:null,ne=Ne!=null?K:null;Ym({items:Jm(fe),category:Wl.has(x)?"sentence":"word",trainingType:x,entryPoint:k??"sentence",itemRef:N??null,correct:ne,total:Ne,score:typeof me?.score=="number"?me.score:null,durationSeconds:Math.max(0,Math.round((Date.now()-L.current)/1e3)),dailyTotal:M??null}),oe={correct:ne,total:Ne}}$e(null),Ae(()=>{typeof C=="function"&&C(oe),typeof m=="function"&&m()})},[C,m,x,k,M,N,Pe,$e,Ae]),Xt=i.useCallback(()=>Ze(""),[Ze]),Ot=i.useCallback(()=>{Ae(()=>{typeof m=="function"&&m()})},[m,Ae]),Lt=t.jsxs("div",{className:`page-popup${Ve?" page-popup--closing":""}`,role:"dialog","aria-modal":"true","aria-label":_t,children:[t.jsxs("div",{ref:se,className:`page-popup__panel ${ze?"":"page-popup__panel--measuring"} ${Se==="center"?"page-popup__panel--center":Se==="top"?"page-popup__panel--top":""}`,children:[t.jsx(Ml,{title:gn,subtitle:S?Y.subtitle||Y.label:Array.isArray(o)?o.join(" / "):void 0,desc:S?void 0:r,depth:S?Y.depth:o,icon:S?Y.icon:s,wrapperStyle:S?Y.wrapperStyle:l,iconTooltip:S?Y.iconTooltip:c,progressMax:Xe,progressIndex:Te,pageIndex:Te,pageCount:Xe,onBack:Ot,onClose:Ot}),t.jsx("div",{className:"page-popup__scroll",children:t.jsx("div",{className:`page-popup__content ${Se==="center"?"page-popup__content--center":"page-popup__content--top"}`,children:H?Mt:S?Ge:typeof y=="function"?y({registerOnNext:ht,registerOnResult:Et,panelRef:se,setResultOverlay:$e}):y})}),t.jsx(Tl,{onSettings:b,onNext:Cn,onResult:xt,useNoiseSettingBtn:!!(S?Y.useNoiseSetting??!0:g),stepIndex:Ye,stepCount:ft,pageIndex:Te,pageCount:Xe})]}),Pe&&!Pe.isEmpty&&(D??i5)({score:Pe.score,results:Pe.results||Pe.answers||[],contextsLength:Pe.results?Pe.results.length:Pe.answers?Pe.answers.length:0,onReplay:()=>{if($e(null),S){if(Ie(ja()),typeof n?.onReplay=="function")try{n.onReplay()}catch{}return}if(H){Ie(ja());return}try{const oe=se.current&&se.current._childOnResult;typeof oe=="function"&&oe({replay:!0})}catch{}},onClose:wt}),Pe?.isEmpty&&t.jsx("div",{className:"page-popup page-popup--result-empty",role:"dialog","aria-modal":"true","aria-label":E("training.result.eyebrow","\uD6C8\uB828 \uC644\uB8CC"),children:t.jsxs("div",{className:"page-popup__panel page-popup__panel--center",children:[t.jsx("div",{className:"page-popup__scroll",children:t.jsx("div",{className:"page-popup__content page-popup__content--center",children:t.jsx("div",{className:"page-popup__empty",children:E("training.result.eyebrow","\uD6C8\uB828 \uC644\uB8CC")})})}),t.jsx("div",{className:"page-popup__bottom",children:t.jsx(ae,{variant:"main",size:48,onClick:wt,label:E("training.result.done","\uC644\uB8CC")})})]})}),t.jsx(Tn,{message:Ke,position:"top",onClose:Xt})]}),Ut=t.jsx(Lr.Provider,{value:te,children:Lt});return typeof document<"u"&&document.body?It.createPortal(Ut,document.body):Ut}const fn=l5;fn.Page=Da,fn.ListenStep=Pl,fn.ConfirmStep=Il,fn.ConfirmWithTextStep=Fl,fn.OrderListStep=Ol,fn.CardStep=Hl,fn.CardOrderStep=a5;function c5({label:e,homonum:n}){const a=Dn()?.(e,n)??"",{imgRef:r,loading:o,hasImage:s,onLoad:l,onError:c}=_r(a);return s?t.jsxs("div",{className:"tooltip-word-image__cell",children:[o&&t.jsx("div",{className:"tooltip-word-image__spinner"}),t.jsx("img",{ref:r,src:a,alt:e,draggable:!1,style:{opacity:o?0:1},onLoad:l,onError:c})]}):t.jsx("div",{className:"tooltip-word-image__cell tooltip-word-image__cell--text h3",children:t.jsx("span",{children:e})})}function ql({words:e,anchorRect:n}){const a=i.useRef(null),[r,o]=i.useState(null);return i.useLayoutEffect(()=>{if(!n||!a.current)return;const{offsetWidth:s,offsetHeight:l}=a.current,c=window.innerWidth;let u=n.left+n.width/2-s/2,d=n.top-l-8;d<8&&(d=n.bottom+8),u=Math.max(8,Math.min(u,c-s-8)),o({left:u,top:d})},[n]),!n||e.length===0?null:It.createPortal(t.jsx("div",{ref:a,className:"tooltip-word-image",style:{visibility:r?"visible":"hidden",left:r?.left??0,top:r?.top??-9999},children:t.jsx("div",{className:"tooltip-word-image__cells",children:e.map(s=>t.jsx(c5,{label:s.label,homonum:s.homonum},`${s.label}_${s.homonum??1}`))})}),document.body)}function u5({titleIcon:e,resultCount:n,resultUnit:a,searchQuery:r,items:o,groups:s,selected:l=[],onSelect:c,maxSelect:u,onClearSelection:d,onPrint:p,onPrintEmpty:h,className:m,emptyHint:C,sectionType:f="page",disc:b,notice:g}){const{t:y,i18n:w}=de.useTranslation(),_=w.language?.startsWith("ko")??!1,{anchorRect:v,openAt:A,close:x}=fa(),[k,M]=i.useState(null),N=i.useCallback(()=>{x(),M(null)},[x]);L0(N,!!k);const D=(r??"").trim(),P=/^[^,[\]\s]+$/.test(D)?D:"",L=P.length>0,[E,R]=i.useState(()=>L?"match":"ganada"),[S,V]=i.useState("50"),[Y,X]=i.useState(1),[J,O]=i.useState(L);J!==L&&(O(L),R(L?"match":"ganada"));const j=E==="match"&&!L?"ganada":E,$=i.useMemo(()=>[...L?[{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,L]),F=i.useMemo(()=>["10","25","50","100"].map(ie=>({value:ie,label:y("wordSearch.pageSize",{count:Number(ie),defaultValue:`${ie}\uAC1C\uC529 \uBCF4\uAE30`})})),[y]),H=ie=>ie.words[0],Z=i.useCallback((ie,te)=>{const se=Ve=>H(Ve)?.label??"",Se=Ve=>H(Ve)?.syllables??[...se(Ve)].length,He=Ve=>{const Re=parseInt(H(Ve)?.grade??"",10);return Number.isFinite(Re)?Re:999};switch(j){case"match":{const Ve=[...P].length,Re=Ee=>Mm(se(Ee).slice(0,Ve),P)?0:1;return Re(ie)-Re(te)||se(ie).localeCompare(se(te),"ko")}case"ganada":return se(ie).localeCompare(se(te),"ko");case"ganada_desc":return se(te).localeCompare(se(ie),"ko");case"syllable":return Se(ie)-Se(te)||se(ie).localeCompare(se(te),"ko");case"syllable_desc":return Se(te)-Se(ie)||se(ie).localeCompare(se(te),"ko");case"grade":return He(ie)-He(te)||se(ie).localeCompare(se(te),"ko");case"grade_desc":return He(te)-He(ie)||se(ie).localeCompare(se(te),"ko");default:return 0}},[j,P]),I=i.useMemo(()=>o.slice().sort(Z),[o,Z]),W=Number(S)||10,U=i.useMemo(()=>(s??[]).flatMap(ie=>ie.items.slice().sort(Z).map(te=>({item:te,label:ie.label}))),[s,Z]),le=s?U.length:I.length,pe=Math.max(1,Math.ceil(le/W)),Ce=Math.min(Y,pe),ve=i.useMemo(()=>I.slice((Ce-1)*W,Ce*W),[I,Ce,W]),he=i.useMemo(()=>{if(!s)return null;const ie=U.slice((Ce-1)*W,Ce*W),te=new Map;for(const{item:se,label:Se}of ie)te.has(Se)||te.set(Se,[]),te.get(Se).push(se);return[...te.entries()].map(([se,Se])=>({label:se,items:Se}))},[s,U,Ce,W]);i.useEffect(()=>{X(1)},[E,S,le]);const T=le>0?t.jsxs("div",{className:"word-search-result-block__toolbar",children:[t.jsx(zt,{size:40,options:$,value:j,onChange:R,ariaLabel:y("wordSearch.sort.aria",{defaultValue:"\uC815\uB82C"})}),t.jsx(zt,{size:40,options:F,value:S,onChange:V,ariaLabel:y("wordSearch.pageSizeAria",{defaultValue:"\uD398\uC774\uC9C0 \uD06C\uAE30"})}),t.jsx(ga,{page:Ce,totalPages:pe,onChange:X})]}):void 0,q=ie=>{c&&c(ie)},ee=n!==void 0&&a?t.jsxs(t.Fragment,{children:[y("wordSearch.resultTitlePrefix","\uCD1D "),t.jsx("span",{style:{color:"var(--color-main)"},children:n}),y("wordSearch.resultTitleSuffix",{unit:_?Vm(a):a})]}):void 0,_e=n!==void 0&&n>0&&u!==void 0&&a?y("wordSearch.resultDisc",{unit:_?Wm(a):a,max:u,selected:l.length}):void 0,ue=b??(g?t.jsxs(t.Fragment,{children:[t.jsx("span",{className:"word-search-result-block__notice",children:g}),_e?t.jsx("span",{className:"word-search-result-block__disc",children:_e}):null]}):_e);return t.jsxs(Mn,{type:f,icon:e,title:ee,action:T,disc:ue,className:ye("word-search-result-block",m),children:[t.jsxs("div",{className:"word-search-result-block__inner",children:[(s?s.length===0:o.length===0)&&t.jsxs("div",{className:"word-search-result-block__empty-wrap",children:[t.jsx("p",{className:"word-search-result-block__empty body-3",children:y("wordSearch.emptyResult","\uAC80\uC0C9 \uACB0\uACFC\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4.")}),C&&t.jsx("p",{className:"word-search-result-block__empty-hint body-3",children:C})]}),s?(he??[]).map(ie=>t.jsx("div",{className:"word-search-result-block__group",children:t.jsx("div",{className:"word-search-result-block__items",children:ie.items.map(te=>{const se=l.includes(te.id);return t.jsx("div",{onMouseEnter:Se=>{A(Se.currentTarget),M(te.words)},onMouseLeave:N,children:t.jsx(ae,{size:"word",align:"grid",label:te.words.map(Se=>Se.label),subLabel:te.words.map(Se=>Se.subLabel).filter(Boolean).length>0?te.words.map(Se=>Se.subLabel):void 0,selected:se,onClick:()=>q(te.id),minWidth:200})},te.id)})})},ie.label)):t.jsx("div",{className:"word-search-result-block__items",children:ve.map(ie=>{const te=l.includes(ie.id);return t.jsx("div",{onMouseEnter:se=>{A(se.currentTarget),M(ie.words)},onMouseLeave:N,children:t.jsx(ae,{size:"word",align:"grid",label:ie.words.map(se=>se.label),subLabel:ie.words.map(se=>se.subLabel).filter(Boolean).length>0?ie.words.map(se=>se.subLabel):void 0,selected:te,onClick:()=>q(ie.id),minWidth:200})},ie.id)})}),k&&v&&t.jsx(ql,{words:k,anchorRect:v})]}),pe>1&&t.jsx("div",{className:"word-search-result-block__pagination-bottom",children:t.jsx(ga,{page:Ce,totalPages:pe,onChange:X})}),(d||p)&&t.jsxs("div",{className:"word-search-result-block__actions",children:[d&&t.jsx(ae,{size:"56",type:"bar",label:y("common.resetSelection","\uC120\uD0DD \uCD08\uAE30\uD654"),selected:!1,disabled:l.length===0,onClick:l.length===0?void 0:d}),p&&t.jsx("div",{onClick:l.length===0?h:void 0,children:t.jsx(ae,{size:"56",type:"bar",variant:"main",label:y("wordTable.title","\uB2E8\uC5B4 \uD45C \uB9CC\uB4E4\uAE30"),disabled:l.length===0,onClick:l.length===0?void 0:p})})]})]})}function d5(e,n){return n.map(a=>{const r=typeof a=="string"?a:a.label,o=typeof a=="string"?void 0:a.displayLabel;return{label:r,value:e[r]??"",displayLabel:o}})}function p5({sections:e,selectedList:n,count:a,onCountChange:r,maxCount:o=4,minCount:s=1,combinationSections:l,combinationSectionsForSlot:c,onSelect:u,placeholder:d="-",className:p,title:h,titleIcon:m,disc:C,showInfoButton:f=!1,onClearPhoneme:b,onSearch:g,onSearchEmpty:y,searchDisabled:w=!1,searchLabel:_,searchChecking:v=!1,pairMode:A=!1,sectionType:x="page",beforeSearchContent:k,beforeContent:M,afterContent:N,hideCountControl:D=!1,ordinal:P=!1}){const{t:L}=de.useTranslation(),E=i.useMemo(()=>L("wordPairs.infoNotes",{returnObjects:!0}),[L]),R=i.useMemo(()=>Array.from({length:o-s+1},(I,W)=>{const U=s+W;return{key:String(U),label:L("wordPairs.count",{n:U})}}),[L,o,s]),S=i.useMemo(()=>L("wordPairs.ordinals",{returnObjects:!0}),[L]),V=i.useCallback(I=>P?L("wordPairs.phonemeOrdinalLabel",{ordinal:S[I-1]??I}):a===1?L("wordPairs.phonemeSingleLabel","\uC74C\uC808"):L("wordPairs.phonemeN",{n:I}),[P,S,a,L]),Y=i.useCallback(I=>P?L("wordPairs.phonemeContrastOrdinalLabel",{ordinal:S[I-1]??I}):a===1?L("wordPairs.phonemeContrastSingleLabel","\uB300\uB9BD \uC74C\uC808"):L("wordPairs.phonemeContrast",{n:I}),[P,S,a,L]),X=i.useCallback((I,W)=>W?t.jsxs(t.Fragment,{children:[I,t.jsx("span",{className:"phoneme-select-block__required",children:"*"})]}):I,[]),{anchorRect:J,toggleAt:O,close:j}=fa(),$=i.useCallback(I=>r(Number(I)),[r]),F=Qt("(max-width: 767px)"),H=i.useCallback(I=>d5(I,e).map(({label:W,value:U,displayLabel:le})=>{const pe=!!U&&U!=="\uC5C6\uC74C";return t.jsxs("span",{className:ye("phoneme-select-block__cell-jamo-part",U?"":"phoneme-select-block__cell-jamo-part--empty",pe?"":"phoneme-select-block__cell-jamo-part--no-label"),children:[t.jsx("span",{className:`phoneme-select-block__cell-jamo-char h1${U==="\uC5C6\uC74C"?" phoneme-select-block__cell-jamo-char--excluded":""}`,children:U==="\uC5C6\uC74C"?"x":U||d}),pe&&t.jsx("span",{className:"phoneme-select-block__cell-jamo-label caption-2",children:le??W})]},W)}),[e,d]),Z=t.jsxs(t.Fragment,{children:[t.jsx("div",{"data-tooltip-ignore":!0,children:t.jsx(ae,{size:40,type:F?"dot":void 0,icon:"info",label:F?void 0:L("wordPairs.caution","\uC720\uC758\uC0AC\uD56D"),selected:!!J,onClick:I=>O(I.currentTarget)})}),J&&t.jsx(_n,{title:L("wordPairs.caution","\uC720\uC758\uC0AC\uD56D"),items:E,anchorRect:J,onClose:j})]});return t.jsxs(Mn,{type:x,title:h,icon:m,disc:C,action:Z,className:ye("phoneme-select-block",p),children:[M,(!D||f&&!(h||C))&&t.jsxs("div",{className:"phoneme-select-block__controls",children:[!D&&t.jsx(An,{options:R,value:String(a),onChange:$,size:40,className:"phoneme-select-block__count-control"}),f&&!(h||C)&&Z]}),t.jsx("div",{className:"phoneme-select-block__cells",children:A?t.jsxs(t.Fragment,{children:[t.jsx("div",{className:"phoneme-select-block__cell-group",children:Array.from({length:a}).map((I,W)=>{const U=n[W*2]??{};return t.jsxs("div",{className:"phoneme-select-block__cell",children:[t.jsx("div",{className:"phoneme-select-block__cell-circle",children:t.jsx("div",{className:"phoneme-select-block__cell-jamo",children:H(U)})}),t.jsx("span",{className:"phoneme-select-block__cell-index caption-1",children:V(W+1)})]},W)})}),t.jsx("span",{className:"phoneme-select-block__cell-vs h3",children:L("wordPairs.phonemeSelect.vs","\uB300")}),t.jsx("div",{className:"phoneme-select-block__cell-group",children:Array.from({length:a}).map((I,W)=>{const U=n[W*2+1]??{};return t.jsxs("div",{className:"phoneme-select-block__cell",children:[t.jsx("div",{className:"phoneme-select-block__cell-circle",children:t.jsx("div",{className:"phoneme-select-block__cell-jamo",children:H(U)})}),t.jsx("span",{className:"phoneme-select-block__cell-index caption-1",children:Y(W+1)})]},W)})})]}):n.map((I,W)=>t.jsxs("div",{className:"phoneme-select-block__cell",children:[t.jsx("div",{className:"phoneme-select-block__cell-circle",children:t.jsx("div",{className:"phoneme-select-block__cell-jamo",children:H(I)})}),t.jsx("span",{className:"phoneme-select-block__cell-index caption-1",children:V(W+1)})]},W))}),(l||c)&&t.jsx("div",{className:"phoneme-select-block__panels",children:t.jsx("div",{className:"phoneme-select-block__detail",children:A?t.jsxs("div",{className:"phoneme-select-block__pair-panels",children:[t.jsx("div",{className:"phoneme-select-block__panel-group",children:Array.from({length:a}).map((I,W)=>{const U=n[W*2]??{};return t.jsx(rn,{title:X(V(W+1),W===0),sections:c?c(U,W*2):l,selected:U,onSelect:u?.(W*2),align:"newline"},W)})}),t.jsx("div",{className:"phoneme-select-block__panel-group",children:Array.from({length:a}).map((I,W)=>{const U=n[W*2+1]??{};return t.jsx(rn,{title:Y(W+1),sections:c?c(U,W*2+1):l,selected:U,onSelect:u?.(W*2+1),align:"newline"},W)})})]}):n.map((I,W)=>t.jsx(rn,{title:X(V(W+1),W===0),sections:c?c(I,W):l,selected:I,onSelect:u?.(W),align:"newline"},W))})}),k&&t.jsx("div",{className:"phoneme-select-block__before-search",children:k}),(b||g||v)&&(()=>{const I=n.every(W=>Object.entries(W).every(([U,le])=>!le||U==="\uC885\uC131"&&le==="\uC5C6\uC74C"));return t.jsxs("div",{className:"phoneme-select-block__search-row",onClick:I?y:void 0,children:[b&&t.jsx(ae,{size:"56",type:"bar",label:L("wordPairs.resetOptions","\uAC80\uC0C9 \uC635\uC158 \uCD08\uAE30\uD654"),selected:!1,disabled:I,onClick:I?void 0:b}),v?t.jsxs("div",{className:"phoneme-select-block__checking",children:[t.jsx("div",{className:"phoneme-select-block__spinner"}),t.jsx("span",{className:"button-1 phoneme-select-block__checking-label",children:_??L("wordSearch.searchButton","\uAC80\uC0C9\uD558\uAE30")})]}):g&&t.jsx(ae,{size:"56",type:"bar",variant:"main",label:_??L("wordSearch.searchButton","\uAC80\uC0C9\uD558\uAE30"),disabled:I||w,onClick:I||w?void 0:g})]})})(),N]})}function h5({title:e,sections:n,selected:a,onSelect:r,className:o}){const{t:s}=de.useTranslation();return t.jsx(rn,{className:o,title:e??s("wordSearch.filterTitle","\uB2E8\uC5B4 \uAC80\uC0C9 \uC124\uC815"),sections:n,selected:a,onSelect:r,align:"inline"})}function m5({title:e,headerAction:n,sections:a,selected:r,onSelect:o,className:s}){const{t:l}=de.useTranslation();return a.length===0?null:t.jsx(rn,{className:s,title:e??l("training.filter.phonemeGroup",{defaultValue:"\uD6C8\uB828 \uC74C\uC808"}),headerAction:n,sections:a,selected:r,onSelect:o,align:"newline"})}function f5({title:e,mode:n,onModeChange:a,matchMode:r,onMatchModeChange:o,positionCount:s,onPositionCountChange:l,inputMode:c,onInputModeChange:u,className:d}){const{t:p}=de.useTranslation(),h={searchMode:p("wordPairs.filter.searchModeLabel","\uB300\uB9BD \uBC29\uC2DD"),phonemeOrder:p("wordPairs.filter.phonemeOrder","\uC785\uB825 \uC74C\uC808 \uC704\uCE58"),count:p("wordPairs.filter.countLabel","\uC785\uB825 \uC74C\uC808 \uAC2F\uC218"),inputMode:p("wordPairs.filter.inputModeLabel","\uC785\uB825 \uBC29\uC2DD"),orderAny:p("wordPairs.filter.orderAny","\uBB34\uAD00"),orderMatch:p("wordPairs.filter.orderMatch","\uC77C\uCE58"),include:p("wordPairs.mode.include","\uC74C\uC18C \uD3EC\uD568"),pick:p("wordPairs.mode.pick","\uC74C\uC18C \uB300\uB9BD"),explicit:p("wordPairs.mode.contrast","\uC74C\uC18C \uB300\uB9BD \uC9C0\uC815"),charInput:p("wordPairs.input.char","\uAE00\uC790 \uC120\uD0DD"),pronInput:p("wordPairs.input.pron","\uBC1C\uC74C \uC120\uD0DD")},m=g=>p("wordPairs.count",{n:g}),C=[{label:h.searchMode,items:[h.include,h.pick,h.explicit],display:"segmented",labelAction:t.jsx(ea,{title:p("wordPairs.mode.infoTitle","\uB300\uB9BD \uBC29\uC2DD"),items:[p("wordPairs.mode.infoInclude","\uC74C\uC18C \uD3EC\uD568 \u2014 \uC120\uD0DD\uD55C \uC74C\uC18C\uAC00 \uBAA8\uB450 \uB4E4\uC5B4\uAC04 \uB2E8\uC5B4\uC640 \uADF8 \uB300\uB9BD\uC30D\uC744 \uCC3E\uC544\uC694."),p("wordPairs.mode.infoPick","\uC74C\uC18C \uB300\uB9BD \u2014 \uC120\uD0DD\uD55C \uC74C\uC18C\uAC00 \uB300\uB9BD\uC30D \uB450 \uB2E8\uC5B4\uC758 \uC2E4\uC81C \uCC28\uC774\uC810\uC77C \uB54C\uB9CC \uB9E4\uCE6D\uB3FC\uC694."),p("wordPairs.mode.infoContrast","\uC74C\uC18C \uB300\uB9BD \uC9C0\uC815 \u2014 \uAE30\uC900 \uB2E8\uC5B4\uC640 \uB300\uB9BD \uB2E8\uC5B4\uC758 \uC74C\uC18C\uB97C \uAC01\uAC01 \uC9C1\uC811 \uC120\uD0DD\uD574 \uB300\uB9BD\uC30D\uC744 \uCC3E\uC544\uC694.")]})},{label:h.phonemeOrder,items:[h.orderAny,h.orderMatch],display:"segmented",labelAction:t.jsx(ea,{items:p("wordPairs.filter.phonemeOrderInfo",{returnObjects:!0})})},{label:h.count,items:[m(1),m(2)],display:"segmented"},{label:h.inputMode,items:[h.charInput,h.pronInput],display:"segmented",labelAction:t.jsx(ea,{title:p("wordPairs.input.infoTitle","\uC785\uB825 \uBC29\uC2DD"),items:[p("wordPairs.input.infoChar","\uAE00\uC790 \uC120\uD0DD \u2014 \uC120\uD0DD\uD55C \uC74C\uC18C\uB85C \uB2E8\uC5B4(\uAE00\uC790 \uAE30\uC900)\uB97C \uCC3E\uC740 \uD6C4, \uB2E8\uC5B4\uC758 \uD45C\uC900 \uBC1C\uC74C \uB300\uB9BD\uC30D\uC744 \uCC3E\uC2B5\uB2C8\uB2E4."),p("wordPairs.input.infoPron","\uBC1C\uC74C \uC120\uD0DD \u2014 \uC120\uD0DD\uD55C \uC74C\uC18C\uB85C \uD45C\uC900 \uBC1C\uC74C \uB300\uB9BD\uC30D\uC744 \uCC3E\uC2B5\uB2C8\uB2E4.")]})}],f={[h.searchMode]:n==="explicit"?h.explicit:n==="pick"?h.pick:h.include,[h.phonemeOrder]:r==="ordered"?h.orderMatch:h.orderAny,[h.count]:m(s),[h.inputMode]:c==="phoneme"?h.pronInput:h.charInput},b=(g,y)=>{y===h.searchMode?a(g===h.explicit?"explicit":g===h.pick?"pick":"include"):y===h.phonemeOrder?o(g===h.orderMatch?"ordered":"unordered"):y===h.count?l(g===m(2)?2:1):y===h.inputMode&&u(g===h.pronInput?"phoneme":"word")};return t.jsx(rn,{className:d,title:e??p("wordPairs.filter.searchOptionsTitle","\uB300\uB9BD \uC124\uC815"),sections:C,selected:f,onSelect:b,align:"inline"})}function C5(e){const{title:n,items:a,columns:r,gridTemplateColumns:o,searchPlaceholder:s,searchFn:l,defaultSortKey:c,defaultSortAsc:u=!0,selectedId:d,selectedIds:p,onSelect:h,onClose:m,pageSizeOptions:C=[10,25,50,100],initialPageSize:f,emptyText:b,countLabel:g,topContent:y,className:w=""}=e,{t:_}=de.useTranslation(),v=s??_("common.search","\uAC80\uC0C9"),A=b??_("common.emptyList","\uD56D\uBAA9\uC774 \uC5C6\uC2B5\uB2C8\uB2E4."),[x,k]=i.useState(""),[M,N]=i.useState(c??r[0]?.key??""),[D,P]=i.useState(u),[L,E]=i.useState(String(f??C[0]??10)),[R,S]=i.useState(1);i.useEffect(()=>{S(1)},[x,L]);const V=l!==null,Y=i.useCallback((I,W)=>{if(!W)return!0;const U=W.toLowerCase();return r.some(le=>{const pe=I[le.key];return pe==null?!1:String(pe).toLowerCase().includes(U)})},[r]),X=l??Y,J=i.useMemo(()=>{const I=V?a.filter(W=>X(W,x)):a;return M?[...I].sort((W,U)=>{const le=W[M]??"",pe=U[M]??"";if(le===pe)return 0;const Ce=q4(le,pe);return D?Ce:-Ce}):I},[a,x,M,D,V,X]),O=Math.max(1,Math.ceil(J.length/Number(L))),j=J.slice((R-1)*Number(L),R*Number(L)),$=i.useCallback(I=>{M===I?P(W=>!W):(N(I),P(!0))},[M]),F=i.useMemo(()=>{if(typeof g=="function"){const I=J.length,W=g(I);if(typeof W=="string"){const U=W.lastIndexOf(String(I));if(U>=0)return{prefix:W.slice(0,U),suffix:W.slice(U+String(I).length)}}return{label:W}}if(typeof g=="string"&&g.includes("{n}")){const[I,W]=g.split("{n}");return{prefix:I,suffix:W}}return{prefix:_("common.totalCountPrefix","\uCD1D "),suffix:_("common.totalCountSuffix","\uAC1C")}},[g,J.length,_]),H=i.useMemo(()=>r.map(I=>({label:I.label,onClick:I.sortable!==!1?()=>$(I.key):void 0,className:I.className,sortDir:I.sortable!==!1&&M===I.key?D?"asc":"desc":null})),[r,M,D,$]),Z=i.useMemo(()=>C.map(I=>({value:String(I),label:_("common.pageSizeLabel",{n:I})})),[C,_]);return t.jsxs(hn,{className:`popup-list ${w}`,title:n,onClose:m,children:[y,"label"in F&&t.jsx("p",{className:"toolbar__count body-1",children:F.label}),t.jsx(hr,{count:"label"in F?void 0:{value:J.length,prefix:F.prefix,suffix:F.suffix},search:V?{value:x,onChange:k,placeholder:v}:void 0,pageSize:{options:Z,value:L,onChange:E},pagination:{page:R,total:O,onChange:S}}),t.jsx(vr,{size:"medium",gridTemplateColumns:o,resizable:!0,fields:H,items:j,onRowClick:h,renderRow:I=>{const W=p!=null?I.id!=null&&p.has(I.id):d!=null&&I.id===d;return r.map(U=>({content:U.render?U.render(I):I[U.key]??"",className:W?"popup-list__row--selected":U.className}))},empty:A})]})}function g5(e){const{title:n,message:a,topContent:r,details:o,children:s,confirmLabel:l,cancelLabel:c,hideCancel:u=!1,extraAction:d,confirmVariant:p="main",confirmDisabled:h=!1,onConfirm:m,closeOnConfirm:C=!0,onClose:f,inline:b,size:g="small",className:y}=e,{t:w}=de.useTranslation(),_=i.useRef(!1),[v,A]=i.useState(!1);return t.jsxs(hn,{title:n,onClose:f,closeDisabled:v,inline:b,size:g,className:ye("confirm-popup",y),buttons:[...d?[{label:d.label,variant:d.variant??"default",disabled:d.disabled||v,onClick:async({closeWithAnimation:x})=>{if(!_.current){_.current=!0,A(!0);try{await d.onClick(x),(d.closeOnClick??!0)&&x()}finally{_.current=!1,A(!1)}}}}]:[],...u?[]:[{label:c??w("common.cancel","\uCDE8\uC18C"),variant:"default",disabled:v,onClick:({closeWithAnimation:x})=>x()}],{label:l??w("common.confirm","\uD655\uC778"),variant:p,disabled:h||v,onClick:async({closeWithAnimation:x})=>{if(!_.current){_.current=!0,A(!0);try{await m(x),C&&x()}finally{_.current=!1,A(!1)}}}}],children:[r!=null&&t.jsx("div",{className:"confirm-popup__top",children:r}),o&&o.length>0&&t.jsx(Sa,{children:o.map((x,k)=>t.jsx(mn,{label:x.label,children:t.jsx("span",{className:"panel-row__text body-2",children:x.value})},k))}),t.jsx("p",{className:"body-2 confirm-popup__message",children:a}),s]})}function b5({onApply:e,onCancel:n}){const{t:a}=de.useTranslation(),[r,o]=i.useState(""),[s,l]=i.useState(!1),[c,u]=i.useState(null),d=i.useRef(null);i.useEffect(()=>{d.current?.focus()},[]);const p=i.useCallback(async C=>{const f=r.trim();if(f){l(!0),u(null);try{await e(f),C()}catch(b){u(ss(b)),l(!1)}}},[r,e]),h=i.useCallback((C,f)=>{C.key==="Enter"&&p(f)},[p]),m=C=>{o(C.target.value),u(null)};return t.jsx(hn,{className:"coupon-input-popup",title:a("usage.couponButton","\uCFE0\uD3F0 \uC785\uB825"),size:"small",onClose:n,closeDisabled:s,buttons:[{label:a("common.cancel","\uCDE8\uC18C"),variant:"default",disabled:s,onClick:({closeWithAnimation:C})=>C()},{label:a("coupons.applyButton","\uC801\uC6A9"),variant:"main",disabled:!r.trim()||s,onClick:({closeWithAnimation:C})=>{p(C)}}],children:({closeWithAnimation:C})=>t.jsxs(t.Fragment,{children:[t.jsx("input",{ref:d,className:"coupon-input-popup__input body-2","aria-label":a("coupons.input.label","\uCFE0\uD3F0 \uCF54\uB4DC"),placeholder:a("coupons.input.placeholder","\uCFE0\uD3F0 \uCF54\uB4DC \uC785\uB825"),value:r,onChange:m,onKeyDown:f=>h(f,C),disabled:s,autoComplete:"off",spellCheck:!1}),c&&t.jsx("p",{className:"coupon-input-popup__error caption-1",role:"alert",children:c})]})})}const y5=200;function v5(e){return e.itemId?(u0()[e.trainingType]??[]).find(n=>n?.id!=null&&String(n.id)===String(e.itemId))??null:null}function x5({plan:e,anchorRect:n,offset:a=12,onClose:r}){const{t:o}=de.useTranslation(),s=i.useMemo(()=>d0.map(c=>({type:c,items:(e.items??[]).filter(u=>u.trainingType===c.key)})).filter(c=>c.items.length>0),[e.items]);if(s.length===0)return null;const l=t.jsx("div",{className:"tooltip-training__box",children:t.jsx("div",{className:"tooltip-training__groups",children:s.flatMap(({type:c,items:u},d)=>[d>0?t.jsx("div",{className:"tooltip-training__divider"},`div-${c.key}`):null,t.jsxs("div",{className:"tooltip-training__section",children:[t.jsx("div",{className:"tooltip-training__section-header",children:t.jsx("span",{className:"tooltip-training__type-label body-3b",children:c.label})}),t.jsx("div",{className:"tooltip-training__items",children:u.map((p,h)=>{const m=v5(p);return m?t.jsx(xr,{index:h,type:c,trainingData:m,size:"compact",hideCheckBadge:!0},p.itemId??h):null})})]},c.key)])})});return n?t.jsx(un,{anchorRect:n,offset:a,onClose:r,closeOnOutsideClick:!1,className:"tooltip-training",ariaLabel:o("tooltip.training","\uD6C8\uB828 \uC548\uB0B4"),children:l}):l}const Ul=["var(--color-main)","var(--color-sub)"],_5=2e3;function w5(e,n){if(!n.startsWith("var("))return n;try{const a=n.slice(4,-1).trim();return getComputedStyle(e).getPropertyValue(a).trim()||null}catch{return null}}function Gl({active:e=!1,count:n=40,duration:a=2e3,strength:r=1,onComplete:o,trigger:s=0}){const l=i.useMemo(()=>{const b=Math.floor(n/2),g=n-b,y=(w,_)=>Array.from({length:w}).map((v,A)=>{const x=6+Math.random()*12,k=Math.round(Math.min(18,x*Math.min(1.5,1+r*.4))),M=Ul[Math.floor(Math.random()*Ul.length)],N=Math.random()*300,D=(360+Math.random()*260)*r*1.2,P=(_==="left"?-95+Math.random()*40:-85-Math.random()*40)*Math.PI/180,L=Math.cos(P)*D,E=Math.sin(P)*D*1.35,R=Math.random()*720-360,S=(1200+Math.random()*3e3)*Math.min(1.6,1+r*.3),V=Math.random()>.7?"50%":"3px";return{id:`${_}-${A}`,side:_,size:k,color:M,delay:N,vx:L,vy:E,angularVel:R,life:S,borderRadius:V}});return[...y(b,"left"),...y(g,"right")]},[n,r]),c=i.useRef(null),u=i.useRef({}),d=i.useRef(null),p=i.useRef(o);i.useEffect(()=>{p.current=o},[o]);const h=i.useRef(null),m=i.useRef(null),C=()=>{if(typeof document>"u")return null;let b=document.querySelector("[data-ihab-effect-root]");return b||(b=document.createElement("div"),b.className="app-effect",b.dataset.ihabEffectRoot="",b.style.position="fixed",b.style.inset="0",b.style.pointerEvents="none",b.style.zIndex="99998",document.body.appendChild(b)),b};if(typeof document<"u"&&m.current==null&&(m.current=C()),i.useEffect(()=>{if(!e)return;if(typeof window<"u"&&window.matchMedia?.("(prefers-reduced-motion: reduce)").matches){p.current?.();return}const b=1200,g=performance.now(),y=m.current&&m.current!==document.body?m.current.getBoundingClientRect():null,w=Math.max(60,(window.innerHeight||800)*.05),_=j=>Math.max(40,(j||window.innerWidth)*.02),v=y?.width||window.innerWidth||375,A=y?.height||window.innerHeight||812,x=j=>{const $=[...j].sort((F,H)=>F-H);return $[Math.floor($.length/2)]||1},k=x(l.map(j=>Math.abs(j.vy))),M=x(l.map(j=>Math.abs(j.vx))),N=Math.sqrt(2*b*(A*.72+w))/k,D=k*N/b,P=v*.5/(M*D),L=(j,$,F)=>Math.min(F,Math.max($,j)),E=L(N,.8,2.4),R=L(P,.7,2.2),S=a>0?a/_5:1,V=l.map(j=>({...j,life:j.life*S,vx:j.vx*R,vy:j.vy*E,startTime:g+j.delay,ended:!1})),Y=y?{x:y.left-_(y.width),y:y.top+y.height+w}:{x:-_(window.innerWidth),y:window.innerHeight+w},X=y?{x:y.left+y.width+_(y.width),y:y.top+y.height+w}:{x:window.innerWidth+_(window.innerWidth),y:window.innerHeight+w},J=j=>{let $=!1;for(const F of V){const H=u.current[F.id];if(!H||!H)continue;if(j<F.startTime){H.style.display="none";continue}if(!F._inited){const T=F.side==="left"?Y.x:X.x,q=F.side==="left"?Y.y:X.y;H.style.left=`${T}px`,H.style.top=`${q}px`,H.style.transform="translate3d(0px, 0px, 0)",H.style.display="block",H.style.zIndex="100000",typeof F.color=="string"&&F.color.startsWith("var(")&&(H.style.background=w5(H,F.color)??"#FF0060"),F._inited=!0}const Z=(j-F.startTime)/1e3;if(Z<0)continue;const I=F.life/1e3;if(Z>=I){H.style.opacity="0",H.style.display="none",F.ended=!0;continue}$=!0;const W=F.side==="left"?Y.x:X.x,U=F.side==="left"?Y.y:X.y,le=W+F.vx*Z,pe=U+F.vy*Z+.5*b*Z*Z,Ce=(F.angularVel||0)*Z,ve=le-W,he=pe-U;H.style.transform=`translate3d(${ve}px, ${he}px, 0) rotate(${Ce}deg)`,H.style.opacity=`${Math.max(0,1-Z/I)}`}$?d.current=requestAnimationFrame(J):p.current?.()};d.current=requestAnimationFrame(J);const O=setTimeout(()=>{try{if((m.current?m.current.querySelectorAll(".confetti"):document.querySelectorAll(".confetti")).length===0&&!document.querySelector(".party-container")){const j=document.createElement("div");j.className="party-container",j.style.position="fixed",j.style.inset="0",j.style.pointerEvents="none",j.style.overflow="visible",j.style.zIndex="2147483647";for(const $ of l){const F=document.createElement("span");F.className=`confetti confetti--${$.side}`,F.setAttribute("aria-hidden","true"),F.style.display="none",F.style.position="fixed",F.style.left="0px",F.style.top="0px",F.style.width=`${$.size}px`,F.style.height=`${Math.max(4,$.size*.6)}px`,F.style.background=$.color,F.style.borderRadius=$.borderRadius,F.style.transform="translate3d(0,0,0)",F.style.opacity="0",j.appendChild(F),u.current[$.id]=F}(document.body||m.current).appendChild(j),h.current=j}}catch{}},300);return()=>{if(d.current&&cancelAnimationFrame(d.current),clearTimeout(O),h.current){try{h.current.remove()}catch{}h.current=null}}},[e,a,s,l]),!e)return null;const f=t.jsx("div",{className:"party-container",ref:c,children:l.map(b=>t.jsx("span",{"aria-hidden":!0,ref:g=>{u.current[b.id]=g},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}-${s}`))});return typeof document<"u"?It.createPortal(f,m.current||document.body):f}function k5({trigger:e=0,active:n=!1}){const a=i.useRef(0);return i.useEffect(()=>{a.current=e},[e]),t.jsx(Gl,{active:n,trigger:e})}function A5({title:e,sub:n,rightAction:a,titleAction:r,badge:o,badgeVariant:s="default",documentTitle:l,onBack:c,backLabel:u}){const{t:d}=de.useTranslation();k0(typeof e=="string"?e:l??null);const p=u??d("common.back","\uB4A4\uB85C");return t.jsxs("div",{className:"page-title",children:[t.jsxs("div",{className:"page-title__main",children:[t.jsxs("div",{className:"page-title__title-row",children:[c&&t.jsx(ae,{className:"page-title__back",size:48,type:"dot",icon:"chevron-left",iconSize:"large",useBorder:!1,iconColor:"var(--color-text-primary)",ariaLabel:p,showTooltipInfo:p,onClick:c}),t.jsx("h1",{className:"page-title__title h1",children:e}),o&&t.jsx("div",{className:"page-title__badge",children:t.jsx(lt,{label:o,size:"small",variant:s,fill:"outline"})}),r?t.jsx("div",{className:"page-title__title-action",children:r}):null]}),n&&t.jsx("p",{className:"page-title__sub body-2",children:n})]}),a?t.jsx("div",{className:"page-title__action",children:a}):null]})}function N5(e){return e??""}const Kl=i.createContext({words:[],loading:!1});function B5(){return i.useContext(Kl)}function S5({words:e,loading:n,error:a,statusMessage:r,localVersion:o,remoteVersion:s,progress:l,clearAndRefetch:c,checkRemoteVersion:u,children:d}){return t.jsx(Kl.Provider,{value:{words:e,loading:n,error:a,statusMessage:r,localVersion:o,remoteVersion:s,progress:l,clearAndRefetch:c,checkRemoteVersion:u},children:d})}function D5({items:e,actions:n,columns:a,flat:r=!1,className:o,style:s}){const l=a??e.length;return t.jsx("section",{className:ye("summary-strip",r&&"summary-strip--flat",o),style:{"--summary-strip-cols":String(l),...s},children:t.jsxs("div",{className:"summary-strip__row",children:[t.jsx("div",{className:"summary-strip__items",children:e.map((c,u)=>t.jsxs("div",{className:"summary-strip__item",children:[t.jsx("p",{className:"summary-strip__label caption-1",children:c.label}),t.jsx("p",{className:"summary-strip__value body-3b",children:c.value})]},u))}),n&&t.jsx("div",{className:"summary-strip__actions",children:n})]})})}const j5=(e,n)=>`${e} / ${n}`;function E5({blocks:e,sectionTitles:n,logo:a,footer:r,pageLabel:o=j5,pageWidth:s,pageHeight:l,margin:c,className:u,style:d}){const{t:p}=de.useTranslation(),h=i.useRef(null),m=i.useRef(null),C=i.useRef(null),f=i.useRef(null),[b,g]=i.useState(null),[y,w]=i.useState(!1);i.useEffect(()=>{const D=h.current;if(!D)return;const P=()=>w(D.scrollWidth>D.clientWidth+1);if(P(),typeof ResizeObserver>"u")return;const L=new ResizeObserver(P);return L.observe(D),()=>L.disconnect()},[b]);const _=e.map(D=>`${D.id}\0${D.section??""}\0${D.group??""}`).join("");i.useLayoutEffect(()=>{const D=m.current,P=f.current;if(!D||!P)return;const L=C.current?.offsetHeight??0,E=P.offsetHeight-L,R=Array.from(D.children).map(O=>O.offsetHeight),S=[];e.forEach((O,j)=>{const $=S[S.length-1],F=$?e[$[0]]:void 0;F&&O.group!=null&&F.group===O.group?$.push(j):S.push([j])});const V=[];let Y=[],X=0;const J=()=>{Y.length&&V.push(Y),Y=[],X=0};S.forEach(O=>{const j=O.reduce(($,F)=>$+R[F],0);Y.length&&e[Y[0]].section!==e[O[0]].section&&J(),Y.length&&X+j>E&&J(),j>E?O.forEach($=>{Y.length&&X+R[$]>E&&J(),Y.push($),X+=R[$]}):(O.forEach($=>Y.push($)),X+=j)}),J(),g(V)},[_]);const v=pr,A=v,x=r??t.jsxs(t.Fragment,{children:[t.jsx("img",{src:A,alt:"IHAB",className:"report-doc__logo"}),"\xA9 IHAB, Inc. All rights reserved."]}),k=(D,P,L)=>({header:t.jsxs("div",{className:"report-doc__header",children:[t.jsx("h2",{className:"report-doc__title h3b",children:L!=null&&n?.[L]||null}),a]}),footer:t.jsxs("div",{className:"report-doc__footer caption-1",children:[t.jsx("span",{className:"report-doc__footer-left",children:x}),t.jsx("span",{className:"report-doc__page-no",children:o(D,P)})]})}),M=k(1,1,e[0]?.section),N={...s?{"--report-page-w":s}:null,...l?{"--report-page-h":l}:null,...c?{"--report-margin":c}:null,...d};return t.jsxs("div",{ref:h,className:ye("report-doc",u),style:N,tabIndex:y?0:void 0,role:y?"group":void 0,"aria-label":y?p("report.previewRegion","\uBCF4\uACE0\uC11C \uBBF8\uB9AC\uBCF4\uAE30"):void 0,children:[t.jsxs("div",{className:"report-doc__measure","aria-hidden":!0,children:[t.jsx("div",{ref:f,className:"report-doc__ruler"}),t.jsxs("div",{ref:C,children:[M.header,M.footer]}),t.jsx("div",{ref:m,className:"report-doc__measure-blocks",children:e.map(D=>t.jsx("div",{children:D.content},D.id))})]}),b&&t.jsx("div",{className:"report-doc__pages",children:b.map((D,P)=>{const{header:L,footer:E}=k(P+1,b.length,e[D[0]].section);return t.jsxs("section",{className:"report-doc__page",children:[L,D.map(R=>t.jsx("div",{children:e[R].content},e[R].id)),E]},P)})})]})}function T5({title:e,fields:n,columns:a=4,className:r,style:o}){return t.jsxs("div",{className:ye("report-info",r),style:{"--report-info-cols":String(a),...o},children:[e&&t.jsx("p",{className:"report-info__title h5b",children:e}),t.jsx("div",{className:"report-info__grid",children:n.map((s,l)=>t.jsxs("div",{className:"report-info__field body-2",children:[t.jsx("span",{className:"report-info__label body-3",children:s.label}),t.jsx("span",{className:"report-info__value",children:s.value})]},l))})]})}function M5({title:e,message:n,actionLabel:a,onAction:r,icon:o,onClose:s,className:l=""}){const{t:c}=de.useTranslation(),u=a??c("common.update","\uC5C5\uB370\uC774\uD2B8");return t.jsxs("div",{className:ye("update-alert",l),role:"alert",children:[s&&t.jsx("button",{type:"button",className:"update-alert__close",onClick:s,"aria-label":c("common.close","\uB2EB\uAE30"),children:"\xD7"}),t.jsxs("div",{className:"update-alert__top",children:[t.jsx("div",{className:"update-alert__icon",children:o??t.jsx(ho,{size:20,strokeWidth:2})}),t.jsxs("div",{className:"update-alert__body",children:[t.jsx("div",{className:"update-alert__title h4",children:e}),t.jsx("div",{className:"update-alert__message body-3",children:n})]})]}),r&&t.jsx(ae,{size:32,variant:"main",shape:"pill",className:"update-alert__action",onClick:r,children:u})]})}function L5({title:e,description:n,topActions:a,children:r,footerLeft:o,footerRight:s,onClick:l,draggable:c,onDragStart:u,onDragEnd:d,className:p}){const h=o!=null||s!=null,m=r!=null&&r!==!1,C=i.useCallback(f=>{l&&f.target===f.currentTarget&&(f.key==="Enter"||f.key===" ")&&(f.preventDefault(),l())},[l]);return t.jsxs("div",{className:ye("training-card",l?"training-card--clickable":"",p),onClick:l,onKeyDown:l?C:void 0,role:l?"button":void 0,tabIndex:l?0:void 0,draggable:c,onDragStart:u,onDragEnd:d,children:[t.jsxs("div",{className:"training-card__header",children:[t.jsxs("div",{className:"training-card__title-row",children:[typeof e=="string"?t.jsx("h3",{className:"training-card__title h4",children:e}):e,a!=null&&t.jsx("div",{className:"training-card__top-actions",onClick:f=>f.stopPropagation(),children:a})]}),n!=null?typeof n=="string"?t.jsx("p",{className:"training-card__description body-3",children:n}):n:t.jsx("p",{className:"training-card__description body-3","aria-hidden":"true",children:" "})]}),m&&t.jsx("div",{className:"training-card__body",children:r}),h&&t.jsxs("div",{className:"training-card__footer",children:[o!=null&&t.jsx("div",{className:"training-card__footer-left",children:o}),s!=null&&t.jsx("div",{className:"training-card__meta",children:s})]})]})}function $5({title:e,count:n,collapsed:a=!1,onToggle:r,sort:o,actions:s,empty:l=!1,emptyContent:c,dragOver:u=!1,onDragOver:d,onDragLeave:p,onDrop:h,children:m,className:C}){const{t:f}=de.useTranslation(),b=r!=null,g=ye("training-card-group",u&&"training-card-group--dragover",a&&"training-card-group--collapsed",b&&"training-card-group--collapsible",C);return t.jsxs("div",{className:g,onDragOver:d,onDragLeave:p,onDrop:h,children:[t.jsxs("header",{className:"training-card-group__header",children:[b&&t.jsx(ae,{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"?t.jsx("span",{className:"training-card-group__title h5b",children:e}):e,n!==void 0&&t.jsx("span",{className:"training-card-group__count body-3b",children:n}),(o||s!=null)&&t.jsxs("span",{className:"training-card-group__actions",onClick:y=>y.stopPropagation(),children:[o&&t.jsx(zt,{size:40,options:o.options,value:o.value,placeholder:o.placeholder,onChange:o.onChange}),s]})]}),!a&&(l?t.jsx("div",{className:"training-card-group__empty body-3",children:c}):t.jsx("div",{className:"training-card-group__grid",children:m}))]})}const R5="speechear:saved_word_tables";function P5(e){if(typeof e!="object"||e===null)return!1;const n=e;return typeof n.id=="string"&&typeof n.name=="string"&&Array.isArray(n.items)}function I5(){try{const e=localStorage.getItem(R5);if(!e)return[];const n=JSON.parse(e);return Array.isArray(n)?n.filter(P5):[]}catch{return[]}}function F5({title:e,titleIcon:n,disc:a,items:r,onSaveComplete:o,onLoad:s,onRemoveItem:l,onReset:c,resetLabel:u,saveButtonLabel:d,secondarySaveButtonLabel:p,onReorder:h,showCellCount:m,onAddItem:C,className:f,renderSavePopup:b,renderWordSearch:g,hideControls:y,saveOnly:w,tableName:_,nameValue:v,onNameChange:A,descriptionValue:x,onDescriptionChange:k,namePlaceholder:M,descriptionPlaceholder:N,existingNames:D,editingName:P,onCancel:L}){const{t:E}=de.useTranslation(),R=u??E("wordPrint.clearAllSelection","\uBAA8\uB450 \uC120\uD0DD \uD574\uC81C"),S=r===void 0,V=!!A,[Y,X]=i.useState([]),J=(v??"").trim(),O=J||(M??"").trim(),j=(x??"").trim()||(N??"").trim(),$=(D??[]).map(Q=>Q.trim().toLowerCase()),F=[P?.trim().toLowerCase(),...Y].filter(Q=>!!Q),H=[...$];for(const Q of F){const ke=H.indexOf(Q);ke!==-1&&H.splice(ke,1)}const Z=J!==""&&H.includes(J.toLowerCase()),[I,W]=i.useState(Array(4).fill(null)),[U,le]=i.useState(4),[pe,Ce]=i.useState(null),[ve,he]=i.useState("landscape"),[T,q]=i.useState(["\uC774\uBBF8\uC9C0","\uB2E8\uC5B4","\uD45C\uC900 \uBC1C\uC74C"]),[ee,_e]=i.useState("\uD45C\uC2DC"),[ue,ie]=i.useState(!0),[te,se]=i.useState(!0),Se=i.useRef(null),He=i.useRef([]),[Ve,Re]=i.useState(8),[Ee,je]=i.useState("right"),[Ae,ze]=i.useState(!1),[at,ge]=i.useState(!1),{toastMessage:Pe,toastType:$e,showWarning:Ke,clearToast:Ze}=Js("warning"),Ue=i.useCallback(()=>Ce(null),[Ce]);C&&!S&&!m&&Fn("word-table-block-add-without-cell-count",'[WordTableBlock] \uD45C\uC2DC \uBAA8\uB4DC\uC5D0\uC11C onAddItem \uC740 showCellCount \uC640 \uD568\uAED8 \uC918\uC57C "\uCD94\uAC00\uD558\uAE30" \uCE78\uC774 \uC0DD\uAE34\uB2E4.');const[Ie,dt]=i.useState(()=>Math.max(r?.length??1,1));i.useEffect(()=>{S||dt(Q=>Math.max(Q,r?.length??1))},[r?.length,S]);const ct=S?U:m?Math.max(Ie,r?.length??1):Math.max(r?.length??0,1),{width:qe,height:ot}=$n[ve],Te=!S&&!m,Me=r?.length??0,tt=Math.min(Ve,Math.max(Me,1)),ft=Te?tt:ct,Ye=Te?Zi(r??[],ft):null,Xe=!!Ye&&Ye.length>1,ht=S?I.some(Q=>Q!==null&&Q.length>1):(r??[]).some(Q=>Q.words.length>1),Et=_?.trim()||`${us(n0())} ${ht?E("wordTable.printFileNamePair","\uB300\uB9BD\uC30D\uD45C"):E("wordTable.printFileNameSingle","\uB2E8\uC5B4\uD45C")}`,Qe=i.useCallback(()=>Xe?He.current.filter(Q=>Q!==null):Se.current?[Se.current]:[],[Xe]),{print:vt,openNewWindow:Tt,downloadHtml:Zt}=Dr({getElements:Qe,paperW:qe,paperH:ot,fileName:Et,onPopupBlocked:()=>{Ke(E("wordTable.popupBlocked","\uD31D\uC5C5\uC774 \uCC28\uB2E8\uB418\uC5C8\uC2B5\uB2C8\uB2E4. \uBE0C\uB77C\uC6B0\uC800 \uC124\uC815\uC5D0\uC11C \uD31D\uC5C5\uC744 \uD5C8\uC6A9\uD574 \uC8FC\uC138\uC694."))}}),on=Q=>{le(Q),W(ke=>{const Fe=Array(Q).fill(null);return ke.slice(0,Q).forEach((et,Ct)=>{Fe[Ct]=et}),Fe}),Ce(null)},Ft=Q=>{W(ke=>{const Fe=[...ke];return Fe[Q]=null,Fe}),pe===Q&&Ce(null)},Wt=Q=>{if(pe===null)return;const ke=pe;W(et=>{const Ct=[...et];return Ct[ke]=Q,Ct});const Fe=I.findIndex((et,Ct)=>Ct>ke&&et===null);Ce(Fe!==-1?Fe:null)},qt=S?I.some(Q=>Q?.some(ke=>!!ke.colloquialPronunciation)):(r??[]).some(Q=>Q.words.some(ke=>!!ke.colloquialLabel)),xt=i.useMemo(()=>Dn()?S?I.flatMap(Q=>(Q??[]).map(ke=>[ke.word,ke.homonum])):(r??[]).flatMap(Q=>Q.words.map(ke=>[ke.label,ke.homonum])):[],[S,I,r]),[Cn,_t]=i.useState(!1);i.useEffect(()=>{if(xt.length===0)return;let Q=!1;return Promise.all(xt.map(([ke,Fe])=>ns(ke,Fe))).then(ke=>{Q||_t(ke.some(Boolean))}),()=>{Q=!0}},[xt]);const gn=xt.length>0&&Cn,Yt=i.useMemo(()=>[...S||m?[{label:E("wordTable.filter.columns","\uCE78 \uC218"),items:M4.map(Q=>({value:`${Q}\uCE78`,displayLabel:E("wordTable.filter.column",{count:Q})})),display:"segmented"}]:[],...Te&&(r?.length??0)>0?[sl(E,{hasPairs:ht,itemCount:Me})]:[],...Xe?[il(E)]:[]],[E,S,m,Te,r?.length,ht,Me,Xe]),Ge={...S||m?{[E("wordTable.filter.columns","\uCE78 \uC218")]:`${S?U:Ie}\uCE78`}:{},...Te&&(r?.length??0)>0?{[E(ht?"wordTable.filter.itemsPerPagePair":"wordTable.filter.itemsPerPageWord")]:`${tt}\uAC1C`}:{},...Xe?{[E("wordTable.filter.pageNumber","\uD398\uC774\uC9C0 \uBC88\uD638")]:ll[Ee]}:{}},Mt=(Q,ke)=>{ke===E("wordTable.filter.columns","\uCE78 \uC218")?S?on(parseInt(Q)):dt(parseInt(Q)):ke===E(ht?"wordTable.filter.itemsPerPagePair":"wordTable.filter.itemsPerPageWord")?Re(parseInt(Q)):ke===E("wordTable.filter.pageNumber","\uD398\uC774\uC9C0 \uBC88\uD638")&&je(cl(Q))},wt=S?I.filter(Q=>Q!==null).map(Q=>({id:Q[0].word,words:Q.map(ke=>({label:ke.word,subLabel:ke.pronunciation,homonum:ke.homonum}))})):r??[],Xt=(Q=!1)=>{if(ge(Q),V&&o){const ke=O.trim().toLowerCase();ke&&X(Fe=>Fe.includes(ke)?Fe:[...Fe,ke]),o(O,wt,j||void 0,Q);return}if(w&&o){o("",wt,void 0,Q);return}if(o){ze(!0);return}Zt()},[Ot,Lt]=i.useState(!1),[Ut,oe]=i.useState(""),me=Ut.trim(),fe=me!==""&&$.includes(me.toLowerCase()),Ne=()=>{oe(O?`${O} (\uBCF5\uC0AC)`:""),Lt(!0)},K=()=>{!me||fe||!o||(o(me,wt,j||void 0,!0),Lt(!1))},ne=wt.length===0,be=ne||V&&(O===""||Z),xe=()=>{if(ne){Ke(E("wordTable.emptyItems","\uB2E8\uC5B4\uB97C 1\uAC1C \uC774\uC0C1 \uCD94\uAC00\uD574\uC8FC\uC138\uC694."));return}if(V&&O===""){Ke(E("wordTable.save.nameRequired","\uD45C \uC774\uB984\uC744 \uC785\uB825\uD574 \uC8FC\uC138\uC694."));return}V&&Z&&Ke(E("wordTable.save.duplicateName","\uC774\uBBF8 \uC0AC\uC6A9 \uC911\uC778 \uC774\uB984\uC785\uB2C8\uB2E4."))},De=t.jsx(Rn,{items:wt,orientation:ve,contentTypes:T,cutLine:ee,showOutline:ue,showDivLine:te,count:ct});return t.jsxs(t.Fragment,{children:[t.jsxs(Mn,{type:"page",icon:n,title:e,disc:a,className:ye("word-table-block",f),children:[Ot&&t.jsx(hn,{size:"small",title:p??E("wordTable.saveAsNewButton","\uB2E4\uB978 \uC774\uB984\uC73C\uB85C \uC800\uC7A5"),onClose:()=>Lt(!1),footer:({closeWithAnimation:Q})=>t.jsxs(t.Fragment,{children:[t.jsx(ae,{size:48,type:"bar",label:E("common.cancel","\uCDE8\uC18C"),onClick:Q}),t.jsx(ae,{size:48,type:"bar",variant:"main",label:E("common.save","\uC800\uC7A5"),disabled:!me||fe,onClick:K})]}),children:t.jsx(kn,{label:E("wordTable.save.nameLabel","\uC774\uB984"),value:Ut,onChange:oe,placeholder:E("wordTable.save.placeholder","\uC774 \uB2E8\uC5B4\uD45C\uC5D0 \uB300\uD55C \uC81C\uBAA9\uC744 \uC785\uB825\uD558\uC138\uC694."),maxLength:40,size:48,fullWidth:!0,autoFocus:!0,onEnter:K,error:fe?E("wordTable.save.duplicateName","\uC774\uBBF8 \uC0AC\uC6A9 \uC911\uC778 \uC774\uB984\uC785\uB2C8\uB2E4."):void 0})}),Ae&&o&&b?.({defaultName:typeof e=="string"?e:E("wordTable.defaultName","\uB2E8\uC5B4 \uD45C"),preview:De,previewW:qe,previewH:ot,items:wt,existingNames:I5().map(Q=>Q.name),saveAsNew:at,onSave:(Q,ke)=>{o(Q,wt,ke,at),ze(!1)},onCancel:()=>ze(!1)}),(S||C)&&pe!==null&&g?.({cellIndex:pe,onConfirm:S?Wt:Q=>{if(C){const ke=Q[0];ke&&C({id:ke.word,words:[{label:ke.word,subLabel:ke.pronunciation,homonum:ke.homonum}]})}Ce(null)},onClose:Ue}),!y&&t.jsx(Nr,{hasImage:gn,hasColloquial:qt,contentTypes:T,orientation:ve,showOutline:ue,cutLine:ee,showDivLine:te,setters:{setContentTypes:q,setOrientation:he,setShowOutline:ie,setCutLine:_e,setShowDivLine:se},showCutLine:(Te?ft:ct)>1,showDivLine2:ht,middleSections:Yt,extraSelected:Ge,onExtraSelect:Mt}),Xe&&Ye?t.jsx("div",{className:"word-table-block__pages",children:Ye.map((Q,ke)=>t.jsx(Rn,{orientation:ve,contentTypes:T,cutLine:ee,showOutline:ue,showDivLine:te,count:ft,items:Q,onRemoveItem:l,contentRef:Fe=>{He.current[ke]=Fe},pageNumber:{current:ke+1,total:Ye.length},pageNumberPosition:Ee},ke))}):t.jsx(Rn,{orientation:ve,contentTypes:T,cutLine:ee,showOutline:ue,showDivLine:te,count:ct,items:S?void 0:r??[],editCells:S?I:void 0,activeCell:pe,onActivateCell:S||C?Ce:void 0,onRemoveCell:S?Ft:void 0,onRemoveItem:S?void 0:l,onReorder:S?void 0:h,showFillerAdd:!!C,contentRef:Se}),V&&!y&&t.jsxs(Sa,{size:"medium",labelWidth:64,useBorder:!1,useRowBorder:!1,className:"word-table-block__meta",children:[t.jsx(mn,{variant:"custom",label:E("wordTable.save.nameLabel","\uC774\uB984"),required:!0,align:"vertical",useFullWidth:!0,children:t.jsx(kn,{required:!0,value:v??"",onChange:A,placeholder:M?M+E("wordTable.save.autoFillHint"," (Tab \uB610\uB294 space \uC785\uB825\uC2DC \uC790\uB3D9 \uC785\uB825)"):E("wordTable.save.placeholder","\uC774 \uB2E8\uC5B4\uD45C\uC5D0 \uB300\uD55C \uC81C\uBAA9\uC744 \uC785\uB825\uD558\uC138\uC694."),ariaLabel:E("wordTable.save.nameLabel","\uC774\uB984"),maxLength:40,size:48,fullWidth:!0,error:Z?E("wordTable.save.duplicateName","\uC774\uBBF8 \uC0AC\uC6A9 \uC911\uC778 \uC774\uB984\uC785\uB2C8\uB2E4."):void 0,onKeyDown:Q=>{(Q.key==="Tab"&&!Q.shiftKey||Q.key===" ")&&!(v??"").trim()&&(M??"").trim()&&(Q.preventDefault(),A?.(M??""))}})}),t.jsx(mn,{variant:"custom",label:E("wordTable.save.descriptionLabel","\uC124\uBA85"),align:"vertical",useFullWidth:!0,children:t.jsx(kn,{value:x??"",onChange:k,placeholder:N?N+E("wordTable.save.autoFillHint"," (Tab \uB610\uB294 space \uC785\uB825\uC2DC \uC790\uB3D9 \uC785\uB825)"):E("wordTable.save.descriptionPlaceholder","\uC774 \uB2E8\uC5B4\uD45C\uC5D0 \uB300\uD55C \uC124\uBA85\uC744 \uC785\uB825\uD558\uC138\uC694."),ariaLabel:E("wordTable.save.descriptionLabel","\uC124\uBA85"),maxLength:200,multiline:!0,rows:2,fullWidth:!0,onKeyDown:Q=>{(Q.key==="Tab"&&!Q.shiftKey||Q.key===" ")&&!(x??"").trim()&&(N??"").trim()&&(Q.preventDefault(),k?.(N??""))}})})]})]}),!y&&t.jsxs("div",{className:"word-table-block__actions",children:[t.jsxs("div",{className:"word-table-block__actions-left",children:[!w&&c&&t.jsx(ae,{size:40,type:"bar",label:R,onClick:c}),!w&&s&&t.jsx(ae,{size:40,type:"bar",label:E("wordTable.load","\uBD88\uB7EC\uC624\uAE30"),onClick:s}),!w&&t.jsx(ae,{size:40,type:"bar",label:E("wordTable.openNewWindow","\uC0C8 \uCC3D\uC73C\uB85C \uBCF4\uAE30"),onClick:Tt})]}),t.jsxs("div",{className:"word-table-block__actions-right",children:[L&&t.jsx(ae,{size:"56",type:"bar",label:E("common.cancel","\uCDE8\uC18C"),onClick:L}),!w&&t.jsx(ae,{size:"56",type:"bar",label:E("wordTable.print","\uC778\uC1C4\uD558\uAE30"),onClick:vt}),p&&t.jsx(ae,{size:"56",type:"bar",label:p,onClick:()=>V?Ne():Xt(!0),disabled:ne,onDisabledClick:()=>{Ke(E("wordTable.emptyItems","\uB2E8\uC5B4\uB97C 1\uAC1C \uC774\uC0C1 \uCD94\uAC00\uD574\uC8FC\uC138\uC694."))}}),t.jsx(ae,{size:"56",type:"bar",variant:"main",label:d??E("wordTable.saveButton","\uC800\uC7A5\uD558\uAE30"),onClick:()=>Xt(!1),disabled:be,onDisabledClick:xe})]})]}),t.jsx(Tn,{message:Pe,type:$e,onClose:Ze})]})}function Zl({items:e,className:n}){const a=e.length,r=a<=3?1:2,o=Math.ceil(a/r)||1,s=r*o;return t.jsx("div",{className:ye("word-table-thumb",n),style:{gridTemplateColumns:`repeat(${r}, 1fr)`},children:Array.from({length:s},(l,c)=>{const u=e[c];return u?t.jsx("div",{className:"word-table-thumb__cell",children:(u.words.length?u.words:[{label:u.id}]).map((d,p)=>t.jsxs(i.Fragment,{children:[p>0&&t.jsx("span",{className:"word-table-thumb__divider"}),t.jsx("span",{className:"word-table-thumb__word body-3",children:d.label})]},p))},c):t.jsx("div",{className:"word-table-thumb__cell word-table-thumb__cell--empty"},c)})})}function O5({items:e,name:n,description:a,createdAt:r,published:o,publishedLabel:s,shared:l,sharedLabel:c,isNew:u,publisherName:d,publishedAt:p,likeCount:h,downloadCount:m,onPublisherClick:C,selected:f,onClick:b,onMore:g,titleNode:y,className:w}){const{t:_}=de.useTranslation(),v=y!=null,A=d!=null||p!=null||h!=null||m!=null,x=k=>{!v&&(k.key==="Enter"||k.key===" ")&&(k.preventDefault(),b?.())};return t.jsxs("div",{className:ye("word-table-button",f?"word-table-button--selected":"",A?"":"word-table-button--no-footer",w),role:"button",tabIndex:0,"aria-label":n,onClick:v?void 0:b,onKeyDown:x,children:[u&&t.jsx("span",{className:"word-table-button__new-dot","aria-label":_("myWordTable.newBadge","\uC0C8\uB85C \uB9CC\uB4E0 \uD45C")}),t.jsx(Zl,{items:e,className:"word-table-button__thumb"}),t.jsxs("div",{className:"word-table-button__info",children:[t.jsxs("div",{className:"word-table-button__info-text",children:[y??t.jsx("div",{className:"word-table-button__title h4",children:n}),a&&t.jsx("div",{className:"word-table-button__desc body-3",children:a})]}),g&&!v&&t.jsx(ae,{className:"word-table-button__more",size:32,type:"dot",variant:"transparent-gray",useBorder:!1,icon:"ellipsis",ariaLabel:_("common.moreFor",{name:n}),onClick:k=>{k.stopPropagation(),g(k)}})]}),(r||o||l)&&t.jsxs("div",{className:"word-table-button__meta-row",children:[t.jsx("span",{className:"word-table-button__meta caption-1",children:r?cs(r,_):""}),t.jsxs("span",{className:"word-table-button__badges",children:[o&&t.jsx(lt,{className:"word-table-button__badge",size:"small",variant:"main",fill:"soft",iconLeft:"book-marked",label:s??_("myWordTable.publishedBadge","\uBC1C\uD589\uB428")}),l&&t.jsx(lt,{className:"word-table-button__badge",size:"small",fill:"soft",iconLeft:"link",label:c??_("myWordTable.sharedBadge","\uACF5\uC720 \uC911")})]})]}),A&&t.jsxs("div",{className:"word-table-button__footer",children:[t.jsxs("span",{className:"word-table-button__store-by",children:[d&&t.jsx("button",{className:"training-card__publisher body-4",type:"button",onClick:k=>{k.stopPropagation(),C?.()},children:d}),p&&t.jsx("span",{className:"training-card__date body-4",children:cs(p,_)})]}),t.jsxs("span",{className:"word-table-button__store-stats",children:[h!=null&&t.jsx(lt,{size:"small",fill:"soft",variant:"like",iconLeft:"heart",label:String(h)}),m!=null&&t.jsx(lt,{size:"small",fill:"soft",variant:"main",iconLeft:"download",label:String(m)})]})]})]})}/**
|
|
968
|
+
`).map((l,c,u)=>t.jsxs(i.Fragment,{children:[l,c<u.length-1&&t.jsx("br",{})]},c))})}),t.jsxs("div",{className:"site-footer__links",children:[t.jsxs("div",{className:"site-footer__column",children:[t.jsx("div",{className:"site-footer__column-title footer-title",children:s("footer.site.title","\uC0AC\uC774\uD2B8")}),t.jsxs("ul",{children:[t.jsx("li",{children:t.jsx("a",{className:"footer-link",href:"https://www.ihab.co.kr/",target:"_blank",rel:"noopener noreferrer",children:"IHAB"})}),t.jsx("li",{children:t.jsx("a",{className:"footer-link",href:"https://speechear.ihab.co.kr/",target:"_blank",rel:"noopener noreferrer",children:s("footer.site.malgwi","\uB9D0\uADC0")})}),t.jsx("li",{children:t.jsx("a",{className:"footer-link",href:"https://ihab-offcial-web.vercel.app/product/sound-localization",target:"_blank",rel:"noopener noreferrer",children:s("footer.site.soundDirection","\uC18C\uB9AC\uBC29\uD5A5\uC131\uC2DC\uC2A4\uD15C")})}),t.jsx("li",{children:t.jsx("a",{className:"footer-link",href:"https://ihab-offcial-web.vercel.app/product/vr-sound-localization",target:"_blank",rel:"noopener noreferrer",children:s("footer.site.vrSoundDirection","VR\uC18C\uB9AC\uBC29\uD5A5\uC131\uC2DC\uC2A4\uD15C")})}),t.jsx("li",{children:t.jsx("a",{className:"footer-link",href:"https://ihab-offcial-web.vercel.app/product/hearing-test-pro",target:"_blank",rel:"noopener noreferrer",children:s("footer.site.hearingTest","\uCCAD\uB825\uD14C\uC2A4\uD2B8 \uD504\uB85C")})})]})]}),t.jsxs("div",{className:"site-footer__column",children:[t.jsx("div",{className:"site-footer__column-title footer-title",children:s("footer.sns.title","SNS")}),t.jsxs("ul",{children:[t.jsx("li",{children:t.jsx("a",{className:"footer-link",href:"https://blog.naver.com/ihab_official",target:"_blank",rel:"noopener noreferrer",children:s("footer.sns.naverBlog","\uB124\uC774\uBC84 \uBE14\uB85C\uADF8")})}),t.jsx("li",{children:t.jsx("a",{className:"footer-link",href:"https://www.instagram.com/ihab.official.yt/",target:"_blank",rel:"noopener noreferrer",children:"Instagram"})}),t.jsx("li",{children:t.jsx("a",{className:"footer-link",href:"https://www.youtube.com/@%EC%95%84%EC%9D%B4%ED%95%B4%EB%B8%8C-%EA%B3%B5%EC%8B%9D%EC%B1%84%EB%84%90",target:"_blank",rel:"noopener noreferrer",children:"Youtube"})})]})]}),t.jsxs("div",{className:"site-footer__column",children:[t.jsx("div",{className:"site-footer__column-title footer-title",children:s("footer.policy.title","\uC815\uCC45")}),t.jsxs("ul",{children:[t.jsx("li",{children:t.jsx("a",{className:"footer-link",href:"#",onClick:l=>{e&&(l.preventDefault(),e())},children:s("footer.policy.terms","\uC774\uC6A9\uC57D\uAD00")})}),t.jsx("li",{children:t.jsx("a",{className:"footer-link",href:"#",onClick:l=>{n&&(l.preventDefault(),n())},children:s("footer.policy.privacy","\uAC1C\uC778\uC815\uBCF4 \uCC98\uB9AC\uBC29\uCE68")})})]})]})]})]}),t.jsx("hr",{className:"site-footer__rule"}),t.jsxs("div",{className:"site-footer__bottom",children:[t.jsx("div",{className:"site-footer__brand",children:t.jsx("img",{src:pr,alt:"IHAB",className:"site-footer__logo"})}),t.jsxs("div",{className:"site-footer__meta",children:[t.jsxs("div",{children:[t.jsx("span",{className:"footer-title",children:s("footer.ceo","\uB300\uD45C")}),t.jsx("span",{className:"footer-meta caption-1",children:s("footer.ceoName","\uD55C\uC9C0\uD61C")})]}),t.jsxs("div",{children:[t.jsx("span",{className:"footer-title",children:s("footer.address","\uC8FC\uC18C")}),t.jsx("span",{className:"footer-meta caption-1",children:s("footer.addressValue","\uAC15\uC6D0\uB3C4 \uCD98\uCC9C\uC2DC \uC2DC\uCCAD\uAE38 32 \uD574\uCC2C\uBE4C\uB529 3\uCE35 302\uD638")})]}),t.jsxs("div",{children:[t.jsx("span",{className:"footer-title",children:s("footer.support","\uACE0\uAC1D\uC13C\uD130")}),t.jsxs("span",{className:"footer-meta caption-1",children:[r," \xA0 ",o]})]})]})]}),t.jsx("div",{className:"site-footer__copyright footer-copyright caption-1",children:"\xA9 IHAB, Inc. All rights reserved."})]})})}function hb({logo:e,logoAlt:n="",logoHref:a,links:r=[],actions:o,className:s,containerClassName:l,renderLink:c,menuLabel:u={open:"\uBA54\uB274 \uC5F4\uAE30",close:"\uBA54\uB274 \uB2EB\uAE30"}}){const[d,p]=i.useState(!1),h=i.useId(),m=l?`${l} landing-header__inner`:"landing-header__inner",f=(C,b)=>c?c(C,{onClick:b}):t.jsx("a",{href:C.href,onClick:b,"aria-current":C.current?"page":void 0,children:C.label});return t.jsxs("header",{className:s?`landing-header ${s}`:"landing-header",children:[t.jsxs("div",{className:m,children:[e!=null&&(()=>{const C=typeof e=="string"?t.jsx("img",{src:e,alt:n,className:"landing-header__logo"}):e;return a?t.jsx("a",{href:a,className:"landing-header__brand",children:C}):t.jsx("div",{className:"landing-header__brand",children:C})})(),r.length>0&&t.jsx("nav",{className:"landing-header__links",children:r.map(C=>t.jsx("span",{children:f(C)},C.href))}),t.jsxs("div",{className:"landing-header__actions",children:[o,r.length>0&&t.jsx("button",{type:"button",onClick:()=>p(C=>!C),"aria-expanded":d,"aria-controls":h,"aria-label":d?u.close:u.open,className:d?"landing-header__toggle landing-header__toggle--open":"landing-header__toggle",children:t.jsxs("span",{className:"landing-header__burger",children:[t.jsx("span",{}),t.jsx("span",{}),t.jsx("span",{})]})})]})]}),r.length>0&&t.jsx("nav",{id:h,hidden:!d,className:"landing-header__drawer",children:t.jsx("div",{className:l??void 0,children:r.map(C=>t.jsx("span",{className:"landing-header__drawer-item",children:f(C,()=>p(!1))},C.href))})})]})}function mb({children:e,action:n,onClick:a,className:r}){const o=a?"bottom-sticky__inner bottom-sticky__inner--clickable":"bottom-sticky__inner";return t.jsx("div",{className:r?`bottom-sticky ${r}`:"bottom-sticky",children:t.jsxs("div",{className:o,onClick:a,...Oi(a),children:[t.jsx("div",{className:"bottom-sticky__content",children:e}),n]})})}const Pn=9,Cb=e=>Math.round(Math.min(Pn,Math.max(0,e))/Pn*100),fb=e=>e/100*Pn,_a=2,fl=.1,gl=e=>Math.min(_a,Math.max(0,e)),gb=e=>Math.round(e*10)/10;function ra(e){const{noiseRatio:n}=e;if(typeof n=="number"&&Number.isFinite(n))return gl(n);const a=Math.min(Pn,Math.max(0,Number(e.level)||0))/Pn,r=Number(e.mainVolume);return r>0?gb(gl(a/r)):1}const bl=e=>Math.min(1,Math.max(0,Number(e.mainVolume)||0));function yl(e){return bl(e)}function Tr(e){return bl(e)*ra(e)}function Mr(e,n=Yo()){const a=Number.isFinite(n)&&n>0?n:1;return Math.min(1,Tr(e)/a)}function wa(e,n){const a={...e,...n??{}};return n&&"level"in n&&typeof n.noiseRatio!="number"&&(a.noiseRatio=ra({level:a.level,mainVolume:a.mainVolume})),a}const ka={enabled:!0,type:"defaultNoise",level:4.5,noiseRatio:1,speed:1,mainVolume:1,mainSpeed:1},Lr=i.createContext(null);function Aa(){return i.useContext(Lr)}const $r=e=>`${xm()}/${e}`,vl=e=>Array.from({length:10},(n,a)=>$r(`${e}-${String(a+1).padStart(2,"0")}.mp3`)),Na={get defaultNoise(){return $r("noise1.mp3")},get street(){return vl("noise2")},get restaurant(){return vl("noise3")},get buzz(){return $r("noise4.mp3")}};function bb(e){const n=Math.floor(Math.random()*10);switch(e){case"defaultNoise":return Na.defaultNoise;case"street":return Na.street[n];case"restaurant":return Na.restaurant[n];case"buzz":return Na.buzz;default:return null}}function yb({noisePlayer:e,audioRef:n,playbackStateRef:a}){const r=i.useRef(e?.registerAnalyser);r.current=e?.registerAnalyser;const o=i.useRef(null),[s,l]=i.useState(null),c=i.useRef(null),u=i.useRef(null),d=i.useRef(null),p=i.useRef(0),h=i.useRef(null),m=i.useCallback(()=>{d.current!==null&&(cancelAnimationFrame(d.current),d.current=null),h.current!==null&&(clearTimeout(h.current),h.current=null)},[]),f=i.useCallback((y,w=250)=>{const _=o.current;if(!_||!_.src)return;p.current+=1,m();try{Ga(),ca(_).then(k=>{try{r.current?.("noise",k)}catch{}})}catch{}const v=_.paused?0:ua(_);_.paused&&cn(_,0),_.play().catch(()=>{});const A=performance.now(),x=()=>{const k=Math.min(1,(performance.now()-A)/w);try{cn(_,v+(y-v)*k)}catch{}k<1?d.current=requestAnimationFrame(x):d.current=null};d.current=requestAnimationFrame(x)},[m]),C=i.useCallback((y=250,w)=>{const _=o.current;if(!_||_.paused){w?.();return}const v=++p.current;m();const A=performance.now(),x=ua(_),k=()=>{const T=Math.min(1,(performance.now()-A)/y);try{cn(_,x*(1-T))}catch{}if(T<1)d.current=requestAnimationFrame(k);else{d.current=null,h.current!==null&&(clearTimeout(h.current),h.current=null);try{_.pause()}catch{}w?.()}};d.current=requestAnimationFrame(k),h.current=setTimeout(()=>{if(h.current=null,p.current===v){d.current!==null&&(cancelAnimationFrame(d.current),d.current=null);try{_.paused||(cn(_,0),_.pause(),w?.())}catch{}}},y+150)},[m]);i.useEffect(()=>{const y=document.createElement("audio");return y.loop=!0,y.crossOrigin="anonymous",o.current=y,()=>{m();try{y.pause(),y.src=""}catch{}o.current=null}},[m]);const b=e?Mr(e.settings):0,g=!!e?.settings.enabled&&b>0;return i.useEffect(()=>{if(!g)return;let y=0;const w=setInterval(()=>{const _=o.current;if(!_||_.paused){y=0;return}const v=n.current;if(v&&!v.paused&&!v.ended||a.current==="playing"){y=0;return}y+=1,y>=2&&(y=0,C())},400);return()=>clearInterval(w)},[C,g,n,a]),i.useEffect(()=>{const y=()=>{if(!document.hidden)return;const w=o.current;if(w&&!w.paused){m();try{w.pause()}catch{}}};return document.addEventListener("visibilitychange",y),()=>document.removeEventListener("visibilitychange",y)},[m]),i.useEffect(()=>{u.current=e?{enabled:e.settings.enabled,volume:b,type:e.settings.type}:null},[e,e?.settings.enabled,b,e?.settings.type]),i.useEffect(()=>{const y=e?.settings,w=o.current;if(!w)return;const _=y?Mr(y):0;if(!y||!y.enabled||_===0){C();return}if(c.current!==y.type){const v=bb(y.type);v&&(c.current=y.type,l(v),C(150,()=>{w.src=v,w.load();const A=n.current;A&&!A.paused&&w.addEventListener("canplay",function x(){w.removeEventListener("canplay",x);const k=n.current;k&&!k.paused&&!k.ended&&f(_)})}))}else{const v=n.current,A=!!v&&!v.paused&&!v.ended;if(A&&w.paused&&w.src)f(_);else if(!w.paused)if(!A)C();else{m();const x=ua(w),k=performance.now(),T=()=>{const N=Math.min(1,(performance.now()-k)/150);try{cn(w,x+(_-x)*N)}catch{}N<1?d.current=requestAnimationFrame(T):d.current=null};d.current=requestAnimationFrame(T)}}},[e?.settings,e?.settings.enabled,b,e?.settings.type,m,f,C,n]),i.useEffect(()=>{const y=o.current;if(y)try{y.playbackRate=Math.min(1.25,Math.max(.75,e?.settings.speed??1))}catch{}},[e?.settings.speed]),{noiseAudioRef:o,activeNoiseUrl:s,noiseSettingsRef:u,cancelNoiseFade:m,fadeInNoise:f,fadeOutNoise:C}}function vb({ttsText:e,playbackRate:n,mainVolume:a,fillRef:r,waveProgressRef:o,setProgress:s,setPlaybackState:l,setStateLocal:c,fadeInNoise:u,fadeOutNoise:d,noiseSettingsRef:p,onDoneRef:h,handleEndRef:m}){const f=i.useRef(null),C=i.useRef(0),b=i.useRef(null);i.useEffect(()=>()=>{try{if(b.current&&(cancelAnimationFrame(b.current),b.current=null),window.speechSynthesis)try{window.speechSynthesis.cancel()}catch{}}catch{}},[]);const g=(_,v=1)=>{try{const A=(_||"").trim().split(/\s+/).filter(Boolean).length||Math.max(1,(_||"").length);return Math.max(700,Math.round(A*300/Math.max(.25,v)))}catch{return 1200}},y=i.useCallback(_=>{if(typeof window>"u"||!window.speechSynthesis){try{typeof h.current=="function"&&h.current(!0)}catch{}return}const v=window.speechSynthesis;try{try{v.cancel()}catch{}const A=_??e,x=(Array.isArray(A)?A[0]??"":A)||"",k=new SpeechSynthesisUtterance(x);try{k.rate=Math.max(.3,Math.min(3,n))}catch{}try{k.volume=Math.max(0,Math.min(1,a))}catch{}C.current=g(x,k.rate||1),f.current=performance.now(),s(0),l("playing"),c("playMode");const T=p.current;T?.enabled&&(T?.volume??0)>0&&u(T.volume);const N=()=>{try{const D=f.current||performance.now(),P=performance.now()-D,L=C.current||1200,j=Math.min(1,P/L);s(j);try{r.current&&(r.current.style.left=`${j*100}%`),o.current&&o.current.style.setProperty("--progress",String(j))}catch{}j<1&&(b.current=requestAnimationFrame(N))}catch{}};k.onend=()=>{try{b.current&&(cancelAnimationFrame(b.current),b.current=null),s(1),l("stopped");try{m.current?.()}catch{try{typeof h.current=="function"&&h.current(!0)}catch{}}}catch{}},k.onstart=()=>{try{b.current&&(cancelAnimationFrame(b.current),b.current=null),b.current=requestAnimationFrame(N)}catch{}};try{v.speak(k)}catch{try{typeof h.current=="function"&&h.current(!0)}catch{}}}catch{try{typeof h.current=="function"&&h.current(!0)}catch{}}},[e,n,a,u,r,o,s,l,c,p,h,m]),w=i.useCallback(()=>{try{if(window.speechSynthesis)try{window.speechSynthesis.cancel()}catch{}b.current&&(cancelAnimationFrame(b.current),b.current=null),d(),f.current=null}catch{}l("stopped"),c("active"),s(0)},[d,l,c,s]);return{startTTS:y,stopTTS:w}}async function xb(e,n,a){try{const r=window.AudioContext||window.webkitAudioContext,o=new r,s=await o.decodeAudioData(e.slice(0)),l=s.numberOfChannels>0?s.getChannelData(0):null;if(!l)return null;const c=a&&a>0?Math.min(l.length,Math.floor(a*s.sampleRate)):l.length,u=Math.max(n,c),d=Math.floor(u/n)||1,p=new Array(n).fill(0).map((h,m)=>{const f=m*d,C=Math.min(f+d,u);let b=0;for(let g=f;g<C;g++){const y=Math.abs(l[g]);y>b&&(b=y)}return b});try{o.close&&o.close()}catch{}return p}catch{return null}}async function xl(e,n,a){try{const r=await(await fetch(e)).arrayBuffer();return await xb(r,n,a)}catch(r){try{const o=ss(r)}catch{}return null}}const _l=45,_b=74,wb=2;function oa(e){const n=Math.min(2,Math.max(0,Number(e)||0));return n<=1?n*45:45+(n-1)*29}function Rr(e){return oa(e)/45}const wl=4;function kb(e){const{src:n,segments:a,progress:r=0,waveProgressRef:o,noiseSrc:s,noiseRatio:l=0,noiseSpeed:c=1,totalDuration:u=0,mainVolume:d=1,onReadyChange:p,showSoundWaveForm:h=!0}=e,m=i.useRef(null),f=i.useRef(null),[C,b]=i.useState(null),[g,y]=i.useState(!1),[w,_]=i.useState(null),[v,A]=i.useState(2),[x,k]=i.useState(0),[T,N]=i.useState(null),[D,P]=i.useState(!1),L=3,j=3,R=1,M=300,z=i.useRef(0),H=i.useCallback(async(pe,fe)=>{const ve=++z.current,he=()=>z.current===ve;try{if(y(!1),!pe){he()&&b(null);return}let E=fe;if(!E)try{for(let Ve=0;Ve<4&&!(m.current||f.current);Ve++)await new Promise(Re=>requestAnimationFrame(Re));await new Promise(Ve=>requestAnimationFrame(Ve));const ee=m.current,_e=f&&f.current?f.current:ee?ee.closest(".audio-player__wave"):null,ue=_e?_e.getBoundingClientRect():ee?ee.getBoundingClientRect():null,ie=ue?Math.max(100,ue.width):320,te=ue?ue.height:0;te>0&&k(te),E=Math.max(R,Math.min(M,Math.floor((ie+j)/(L+j))));const se=E*L,De=Math.max(0,E-1),He=De>0?(ie-se)/De:j;A(Math.max(0,He))}catch{E=120}const U=await xl(pe,E);if(!he())return;if(!U){b(null),y(!1);return}b(U),_(E),y(!0)}catch{if(!he())return;b(null),y(!1)}},[y,b,k,A,_]);i.useEffect(()=>{const pe=a&&a[0]&&a[0].src||n||a&&a.length===1&&a[0]&&a[0].src;H(typeof pe=="string"?pe:void 0).catch(()=>{}),P(!1)},[n,a,H]),i.useEffect(()=>{let pe=!1;if(!s||!w){N(null);return}const fe=u>0?u*(c||1):void 0;return xl(s,w,fe).then(ve=>{pe||N(ve)}).catch(()=>{pe||N(null)}),()=>{pe=!0}},[s,w,u,c]);const Z=Math.max(0,Math.min(1,d)),J=i.useMemo(()=>C&&C.length&&Math.max(...C)||1,[C]),O=w||40,S=i.useMemo(()=>Array.from({length:O}).map((pe,fe)=>{const ve=C&&C[fe]!=null?C[fe]:null,he=ve==null?null:Math.min(1,ve/J*Z),E=he!=null&&x>0&&oa(he)<=wl,U=he==null?.15:E?0:Rr(he),ee=O>1?fe/(O-1):0;return t.jsx("div",{className:E?"audio-player__bar audio-player__bar--hidden":"audio-player__bar",style:{"--val":U,"--i":fe,"--mix":ee}},fe)}),[O,C,J,Z,x]),$={"--progress":String(Math.max(0,Math.min(1,r)))},F=s?Math.max(1,l):1,V={"--bar-gap":`${v}px`,"--wave-h":`${oa(F)}px`,"--wave-h1":`${_l}px`},X=Z*Math.max(0,l)/Yo(),I=g&&(s?!!T:!0);i.useEffect(()=>{I&&P(!0)},[I]);const q=D?g:I;i.useEffect(()=>{p?.(q)},[q,p]);const G=w||40,le=i.useMemo(()=>Array.from({length:G}).map((pe,fe)=>{const ve=T&&T[fe]!=null?T[fe]:null,he=ve==null?0:ve/J*X,E=x>0&&oa(he)<=wl,U=E?0:Rr(he),ee=G>1?fe/(G-1):0;return t.jsx("div",{className:E?"audio-player__bar audio-player__bar--hidden":"audio-player__bar",style:{"--val":U,"--i":fe,"--mix":ee}},fe)}),[G,T,J,X,x]);return t.jsxs("div",{className:"audio-player__wave",ref:f,style:V,children:[s&&t.jsx("div",{className:`audio-player__wave-noise ${I?"is-ready":""}`,"aria-hidden":"true",children:le}),h&&t.jsxs(t.Fragment,{children:[t.jsx("div",{className:`audio-player__wave-inner audio-player__wave-unplayed ${q?"is-ready":""}`,ref:m,children:S}),t.jsx("div",{className:`audio-player__wave-inner audio-player__wave-played ${q?"is-ready":""}`,ref:o,style:$,children:S})]})]})}const Ab={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 Pr(e,n){return new Promise((a,r)=>{const o=document.createElement("audio");let s=!1;const l=()=>{try{o.src=""}catch{}},c=()=>{if(s)return;s=!0;const d=isFinite(o.duration)&&o.duration||0;l(),a(d)},u=d=>{s||(s=!0,l(),n.rejectOnError?r(new Error(d)):a(0))};o.addEventListener("loadedmetadata",c),o.addEventListener("error",()=>u("audio load failed")),setTimeout(()=>u("audio load timeout"),n.timeoutMs),o.src=e})}const Nb=2e3;function kl(e,n=Nb){return new Promise(a=>{let r=!1;const o=()=>{r||(r=!0,a())};e.addEventListener("canplay",o,{once:!0}),e.addEventListener("error",o,{once:!0}),setTimeout(o,n)})}function Bb({showSoundWaveForm:e,showNoiseWaveForm:n,timeoutMs:a=2500}){const r=i.useRef(!1),o=i.useRef([]),s=i.useCallback(u=>{if(r.current=u,!u||!o.current.length)return;const d=o.current;o.current=[];for(const p of d)p()},[]),l=i.useCallback(()=>{r.current=!1},[]),c=i.useCallback(()=>!e&&!n||r.current?Promise.resolve():new Promise(u=>{const d=setTimeout(u,a);o.current.push(()=>{clearTimeout(d),u()})}),[e,n,a]);return i.useEffect(()=>()=>{const u=o.current;o.current=[];for(const d of u)d()},[]),{onReadyChange:s,waitForReady:c,markNotReady:l}}function Db(){const e=i.useRef([]),n=i.useCallback(o=>(e.current.push(o),o),[]),a=i.useCallback(o=>{const s=new Set([...o].filter(Boolean));e.current=e.current.filter(l=>{if(s.has(l))return!0;try{URL.revokeObjectURL(l)}catch{}return!1})},[]),r=i.useCallback(()=>{a([])},[a]);return i.useEffect(()=>()=>{for(const o of e.current)try{URL.revokeObjectURL(o)}catch{}e.current=[]},[]),{track:n,keepOnly:a,revokeAll:r}}function Sb({offsetY:e=8}={}){const n=i.useRef(null),[a,r]=i.useState(null),o=i.useCallback(()=>r(null),[]),s=i.useCallback(()=>{try{const l=n.current?.getBoundingClientRect();if(!l)return;r({left:l.left,right:l.right,width:l.width,height:l.height,x:l.x,top:l.top+e,bottom:l.bottom+e,y:l.y+e,toJSON:l.toJSON.bind(l)})}catch{}},[e]);return i.useEffect(()=>{if(a)return document.addEventListener("mousedown",o),()=>document.removeEventListener("mousedown",o)},[a,o]),{ref:n,rect:a,show:s,hide:o}}function jb({currentTime:e,sources:n,index:a,audioDuration:r}){const o=a||0,s=Array.isArray(n)&&n.length>0?n[o]:void 0,l=s?s.duration||r||0:r||0;if(!(l>0))return 0;const c=Number.isFinite(e)?e:0;return Math.max(0,Math.min(1,c/l))}function Eb(e,n){if(!Array.isArray(e))return null;const a=n||0;return a<e.length-1?a+1:null}function Tb({ended:e,completedByEnd:n}){return!!e||!!n}function Mb(e){return e.map((n,a)=>({src:n.src,label:String(a+1),color:void 0,duration:n.duration||0}))}function Lb(e){return e.reduce((n,a)=>n+(a.duration||0),0)}function $b(e,n,a){const r=Array.isArray(e)?e:e?[e]:[],o=[];for(const s of r)if(s){if(typeof s=="object"&&s!==null&&"src"in s&&s.src){const l=s;o.push({code:l.code??null,src:l.src});continue}if(typeof s=="string"&&(s.startsWith("http")||s.includes("/"))){o.push({code:null,src:s});continue}if(typeof s=="string"||typeof s=="number"){const l=String(s),c=a(l,n);c&&o.push({code:l,resolvedPath:c})}}return o}function Rb({audioRef:e,fillRef:n,waveProgressRef:a,sourcesRef:r,currentIndexRef:o}){const s=i.useRef(null),l=i.useCallback(()=>{s.current!==null&&(cancelAnimationFrame(s.current),s.current=null)},[]),c=i.useCallback(()=>{if(s.current!==null)return;const d=()=>{try{const p=e.current,h=jb({currentTime:p&&typeof p.currentTime=="number"?p.currentTime:0,sources:r.current,index:o.current,audioDuration:p&&p.duration?p.duration:0});try{n.current&&(n.current.style.left=`${h*100}%`)}catch{}try{a.current?.style.setProperty("--progress",String(h))}catch{}}catch{}s.current=requestAnimationFrame(d)};s.current=requestAnimationFrame(d)},[e,n,a,r,o]),u=i.useCallback(d=>{l();try{n.current&&(n.current.style.left=`${d*100}%`)}catch{}try{a.current?.style.setProperty("--progress",String(d))}catch{}},[l,n,a]);return i.useEffect(()=>l,[l]),{start:c,stop:l,settleTo:u}}function Ir({btnLabel:e,soundSrc:n,bucketPath:a,onDone:r,disabled:o=!1,ttsText:s=null,className:l,showSoundWaveForm:c=!0,showNoiseWaveForm:u=!0}){const{t:d}=de.useTranslation(),p=e,h=Aa(),m=i.useRef(h?.registerAnalyser);i.useEffect(()=>{m.current=h?.registerAnalyser});const f=i.useRef(null),C=i.useRef(null),b=i.useRef(null),g=Db(),y=i.useRef(null),w=i.useRef(!1),_=i.useRef(0),v=i.useRef(null),{ref:A,rect:x,show:k,hide:T}=Sb();i.useEffect(()=>()=>{m.current?.("main",null),m.current?.("noise",null)},[]);const[N,D]=i.useState(!1),[P,L]=i.useState("idle"),[j,R]=i.useState("stopped"),M=i.useRef("stopped");i.useEffect(()=>{M.current=j},[j]);const[z,H]=i.useState(0),[Z,J]=i.useState("active"),[O,S]=i.useState(null),[$,F]=i.useState(null),[V,X]=i.useState(0),[I,q]=i.useState(!1),[G,le]=i.useState(0),pe=h?.playbackRate??1,fe=h?.mainVolume??1,ve=h?Tr(h.settings):0,he=h?yl(h.settings):fe,[E,U]=i.useState("idle"),[ee,_e]=i.useState(""),[ue]=i.useState("top"),ie=i.useRef(null),te=i.useRef(0),se=i.useRef(null),{start:De,stop:He,settleTo:Ve}=Rb({audioRef:f,fillRef:C,waveProgressRef:se,sourcesRef:ie,currentIndexRef:te}),{onReadyChange:Re,waitForReady:Ee,markNotReady:je}=Bb({showSoundWaveForm:c,showNoiseWaveForm:u}),Ae=i.useRef(null),ze=i.useRef(o),at=i.useRef(r),ge=i.useRef(null),Pe=i.useRef(!1),[$e,Ke]=i.useState(!1),Ze=i.useCallback(Y=>{Pe.current=Y,Ke(Y)},[]),Ue=i.useRef(null),{activeNoiseUrl:Ie,noiseSettingsRef:dt,fadeInNoise:ct,fadeOutNoise:qe}=yb({noisePlayer:h,audioRef:f,playbackStateRef:M}),{startTTS:st,stopTTS:Te}=vb({ttsText:s,playbackRate:pe,mainVolume:he,fillRef:C,waveProgressRef:se,setProgress:H,setPlaybackState:R,setStateLocal:J,fadeInNoise:ct,fadeOutNoise:qe,noiseSettingsRef:dt,onDoneRef:at,handleEndRef:Ue}),Me=Array.isArray(n)?n.filter(Boolean):n?[n]:[],tt=(!Me||Me.length===0)&&!!s,Ct=Array.isArray(O)&&O.length>0?O:Array.isArray($)&&$.length>0?$:null,Ye=Math.max(Array.isArray(Ct)?Ct.length:0,Me.length),Xe=i.useCallback(async(Y,ne=3,be=50)=>{for(let xe=0;xe<ne;xe++)try{return await Y.play(),!0}catch(Se){if((Se instanceof Error||typeof Se=="object"&&Se&&"name"in Se?Se.name:void 0)==="AbortError"){await new Promise(Q=>setTimeout(Q,be));continue}try{_e(d("training.audioFetchError","\uC0AC\uC6B4\uB4DC \uC18C\uC2A4\uB97C \uAC00\uC838\uC624\uC9C0 \uBABB\uD588\uC2B5\uB2C8\uB2E4."))}catch{}return!1}try{_e(d("training.audioFetchError","\uC0AC\uC6B4\uB4DC \uC18C\uC2A4\uB97C \uAC00\uC838\uC624\uC9C0 \uBABB\uD588\uC2B5\uB2C8\uB2E4."))}catch{}return!1},[d]),ht=i.useCallback(()=>{const Y=f.current;if(!Y)return;const ne=()=>{R("playing"),J("playMode"),q(!0),De();try{Ga(),ca(Y).then(Q=>{try{m.current?.("main",Q)}catch{}})}catch{}const Se=dt.current;Se?.enabled&&(Se?.volume??0)>0&&ct(Se.volume)},be=()=>{Tb({ended:!!Y?.ended,completedByEnd:Pe.current})||(R("paused"),He(),qe())},xe=()=>{try{const Se=ie.current,Q=Eb(Se,te.current);if(Q!==null){te.current=Q,X(Q),q(!0);const ke=Se?.[Q]&&Se[Q].src;if(ke&&Y){Y.src=ke,Y.load(),Xe(Y).catch(()=>{});return}}}catch{}R("stopped"),H(1);try{if(Y)try{Y.currentTime=0}catch{}}catch{}He(),q(!1),qe();try{!ze.current&&Ue.current&&Ue.current()}catch{}};return Y.addEventListener("play",ne),Y.addEventListener("pause",be),Y.addEventListener("ended",xe),()=>{try{Y.removeEventListener("play",ne),Y.removeEventListener("pause",be),Y.removeEventListener("ended",xe),He()}catch{}}},[ct,qe,Xe,dt,De,He]);i.useEffect(()=>ht(),[ht]),i.useEffect(()=>{ze.current=o},[o]),i.useEffect(()=>{at.current=r},[r]),i.useEffect(()=>{if(o||Z!=="active")return;const Y=v.current;if(!Y)return;let ne=null;const be=requestAnimationFrame(()=>{try{const xe=Y.getTotalLength();if(!xe)return;const Se=xe*.2;Y.style.strokeDasharray=`${xe-Se} ${Se}`;const Q="triFlow_"+Math.random().toString(36).slice(2);ne=document.createElement("style"),ne.textContent=`@keyframes ${Q}{from{stroke-dashoffset:0}to{stroke-dashoffset:-${xe}}}`,document.head.appendChild(ne),Y.style.animation=`${Q} 2.4s linear infinite`}catch{}});return()=>{cancelAnimationFrame(be),ne?.remove()}},[Z,o]),i.useEffect(()=>{ie.current=O},[O]),i.useEffect(()=>{te.current=V},[V]),i.useEffect(()=>{const Y=b.current,ne=y.current;if(!Y||!ne)return;let be=null;const xe=32,Se=60,Q=()=>{try{const Fe=Array.from(Y.querySelectorAll(":scope > .button"));let et=0;Fe.forEach(Dt=>{if(Dt===ne)return;const bn=Dt.getBoundingClientRect();et+=bn.width});const ft=Y.getBoundingClientRect().width,Bt=Math.max(0,Math.floor(ft-et-8)),$t=Ye;if(!$t||Bt<=0){Array.from(ne.children).forEach(Dt=>{try{Dt.style.width=""}catch{}});return}let Rt=Math.floor(Bt/$t);Rt>Se&&(Rt=Se),Rt<xe&&(Rt=Math.max(xe,Math.floor(Bt/$t))),Array.from(ne.querySelectorAll(".button")).forEach(Dt=>{try{Dt.style.width=`${Rt}px`}catch{}})}catch{}},ke=requestAnimationFrame(Q);try{be=new ResizeObserver(()=>{requestAnimationFrame(Q)}),be.observe(Y),be.observe(ne),window.addEventListener("resize",Q)}catch{}return()=>{try{cancelAnimationFrame(ke)}catch{}try{be&&(be.disconnect(),be=null)}catch{}try{window.removeEventListener("resize",Q)}catch{}}},[O,$,Ye]),i.useEffect(()=>()=>{try{Ae.current&&(clearTimeout(Ae.current),Ae.current=null),ge.current&&(clearTimeout(ge.current),ge.current=null)}catch{}},[]);const Et=(Y,ne)=>{S(Y),le(ne),je(),F(Mb(Y)),ie.current=Y},Qe=async(Y,ne)=>{Ze(!1),w.current=!1,Y.src=ne,Y.load(),await kl(Y),await Ee(),D(!1),await Xe(Y),J("playMode"),X(0),q(!0)},vt=async(Y,ne=!1)=>{const be=f.current;D(!0),L("measuring_duration");try{const xe=await Pr(Y,{timeoutMs:1e4,rejectOnError:!0});Et([{src:Y,objectUrl:null,duration:xe}],xe),L("ready"),ne&&be&&await Qe(be,Y)}finally{w.current=!1,D(!1)}},Tt=async(Y,ne=!1)=>{const be=f.current;D(!0),L("measuring_duration");try{const xe=await Promise.all(Y.map(Q=>Pr(Q,{timeoutMs:1e4}))),Se=Y.map((Q,ke)=>({src:Q,objectUrl:null,duration:xe[ke]||0}));Et(Se,Lb(Se)),L("ready"),ne&&be&&Se.length>0&&await Qe(be,Se[0].src)}finally{w.current=!1,D(!1)}},Zt=async(Y=!1,ne=!0)=>{const be=f.current,xe=n?Array.isArray(n)?n:[n]:[];if(!(!xe||xe.length===0||!xe.some(Boolean))&&!w.current){w.current=!0,ne&&D(!0),L("resolving");try{const Se=$b(n,a,Go),Q=[];let ke=0;for(const Fe of Se){let et=Fe.src??null,ft=null;if(!et&&Fe.resolvedPath){try{L("getting_signed_url"),et=await Ko(Fe.resolvedPath)}catch{et=null}if(!et)try{L("downloading");const $t=await Zo(Fe.resolvedPath);if($t){const Rt=$t instanceof Blob?$t:new Blob([$t]);ft=g.track(URL.createObjectURL(Rt)),et=ft}}catch{L("error");try{_e(d("training.audioFetchError","\uC0AC\uC6B4\uB4DC \uC18C\uC2A4\uB97C \uAC00\uC838\uC624\uC9C0 \uBABB\uD588\uC2B5\uB2C8\uB2E4.")),J("active")}catch{}}}if(!et)continue;let Bt=0;try{L("measuring_duration"),Bt=await Pr(et,{timeoutMs:3e3})}catch{Bt=0}ke+=Bt||0,Q.push({...Fe,src:et,objectUrl:ft,duration:Bt})}if(Et(Q,ke),Q.length>0&&Y&&be){const Fe=Q[0];Ze(!1);try{g.keepOnly(Q.map(et=>et.objectUrl))}catch{}if(L("ready"),w.current=!1,Fe.src&&be)try{be.src=Fe.src,be.load(),await kl(be),await Ee(),ne&&D(!1),be&&await Xe(be)}catch{ne&&D(!1)}else ne&&D(!1);J("playMode"),X(0),q(!0)}}finally{w.current=!1,ne&&D(!1),L(Se=>Se==="ready"?"ready":"idle")}}},on=async()=>{const Y=f.current;if(!(!Y&&!tt)){if(tt){const ne=window.speechSynthesis;if(Z==="active"){const be=Wa(),xe=Array.isArray(s)?s.filter(Boolean):s?[s]:[];if(be&&xe.length>0){J("load"),D(!0),L("resolving"),w.current=!0;try{const Se=await Promise.all(xe.map(Q=>Promise.resolve(be(Q))));Se.length>1?await Tt(Se,!0):await vt(Se[0],!0)}catch{w.current=!1,D(!1),J("active"),st(xe[0]||void 0)}return}st(xe[0]||void 0);return}if(Z==="playMode"){if(Y){if(Y.paused){if(Pe.current){await Ft();return}await Xe(Y),R("playing")}else Y.pause(),R("paused");return}try{if(ne&&ne.paused)try{ne.resume(),R("playing")}catch{}else try{ne.pause(),R("paused")}catch{}}catch{}}return}if(Z==="active"){if(o&&Array.isArray(ie.current)&&ie.current.length>0){const ne=ie.current[0];try{if(ne.src&&Y)try{Y.src=ne.src,Y.load(),Y&&await Xe(Y)}catch{}J("playMode"),X(0),q(!0);return}catch{}}J("load"),await Zt(!0);return}if(Z!=="load"&&(Z==="playMode"||Z==="active"))try{if(Y&&Y.paused){if(Pe.current){await Ft();return}Y&&await Xe(Y),R("playing")}else Y&&(Y.pause(),R("paused"))}catch(ne){(ne instanceof Error||typeof ne=="object"&&ne&&"name"in ne)&&ne.name}}},Ft=async()=>{const Y=f.current;if(Y)try{const ne=ie.current;if(Array.isArray(ne)&&ne.length>1){await Yt(0);return}Ze(!1);try{Y.currentTime=0}catch{}Y&&await Xe(Y),R("playing"),J("playMode")}catch{}},Wt=()=>{if(tt){Te();return}const Y=f.current;try{if(Y){try{Y.pause()}catch{}try{Y.currentTime=0}catch{}}}catch{}qe(),R("stopped"),J("active"),H(0),q(!1)},qt=async(Y,{sameSegment:ne=!1}={})=>{const be=++_.current,xe=f.current,Se=ie.current?.[Y]?.src;try{if(Ze(!1),X(Y),q(!0),te.current=Y,!Se||!xe||(ne||je(),xe.src=Se,xe.load(),ne||await Ee(),be!==_.current)||(await Xe(xe),be!==_.current))return;R("playing"),J("playMode")}catch{}},xt=async()=>{const Y=ie.current,ne=te.current||0;if(!Y||ne<=0){await Ft();return}await qt(ne-1)},fn=async()=>{const Y=ie.current,ne=te.current||0;if(!Y||ne>=Y.length-1){Wt();return}await qt(ne+1)},_t=()=>{if(Pe.current)return;const Y=200,ne=340;Ze(!0);try{H(1)}catch{}Ve(1);try{U("hold")}catch{}try{const be=f.current,xe=tt&&!!be?.src;if(!tt||xe){if(be){be.pause();try{be.currentTime=0}catch{}}}else Te();qe()}catch{}try{R("stopped")}catch{}if(q(!1),!ze.current)try{ge.current&&(clearTimeout(ge.current),ge.current=null),ge.current=setTimeout(()=>{try{U("out")}catch{}ge.current=setTimeout(()=>{try{typeof at.current=="function"&&at.current(!0)}catch{}try{U("idle")}catch{}ge.current=null},ne)},Y)}catch{}};i.useEffect(()=>{Ue.current=_t});const gn=i.useCallback(()=>_e(""),[]),Yt=async Y=>{(ie.current||[])[Y]&&await qt(Y,{sameSegment:Y===te.current})},Ge=j==="playing",Mt=i.useMemo(()=>{if(!$||$.length<=1)return $;const Y=$[V];return Y?[Y]:$},[$,V]),wt=o===!0;i.useEffect(()=>{try{const Y=f.current;Y&&typeof Y.playbackRate=="number"&&(Y.playbackRate=pe||1)}catch{}},[pe]);const Xt=i.useRef({raf:null,timer:null});i.useEffect(()=>{const Y=f.current;if(!Y)return;const ne=Math.max(0,Math.min(1,he)),be=Xt.current,xe=()=>{be.raf!==null&&(cancelAnimationFrame(be.raf),be.raf=null),be.timer!==null&&(clearTimeout(be.timer),be.timer=null)};xe();const Se=ua(Y);if(Y.paused||Math.abs(Se-ne)<.001||typeof requestAnimationFrame!="function"){try{cn(Y,ne)}catch{}return}const Q=performance.now(),ke=()=>{const Fe=Math.min(1,(performance.now()-Q)/150);try{cn(Y,Se+(ne-Se)*Fe)}catch{}be.raf=Fe<1?requestAnimationFrame(ke):null};return be.raf=requestAnimationFrame(ke),be.timer=setTimeout(()=>{xe();try{cn(Y,ne)}catch{}},200),xe},[he]);const Ot=E==="hold",Lt=E==="out",Ut=Z==="playMode"&&!N&&!$e||Ot||Lt,oe=j!=="stopped"||Ot||Lt,me=j==="paused",Ce=Math.max(0,Math.min(100,(z||0)*100)),Ne=ye("audio-player__fill",Ut?"is-visible":"",oe?"is-expanded":"",me?"is-paused":"",Lt?"is-out":"");return t.jsxs("div",{className:`audio-player ${wt?"is-disabled":""}${l?` ${l}`:""}`,role:"group","aria-label":typeof p=="string"?p:void 0,children:[t.jsxs("div",{className:`audio-player__panel ${Ge?"is-playing":""} ${N?"is-loading":""} ${Z!=="default"?"is-revealed":""}`,children:[N?t.jsxs("div",{className:"audio-player__loading",role:"status","aria-live":"polite",children:[t.jsx("span",{className:"audio-player__loading-spinner","aria-hidden":"true"}),t.jsx("span",{className:"audio-player__loading-text",children:Ab[P]})]}):null,Z==="active"?t.jsx("button",{className:"audio-player__button",type:"button",onClick:()=>{T(),on()},"aria-label":typeof p=="string"?p:d("training.listen","\uB4E3\uAE30"),onMouseEnter:k,onMouseLeave:T,onFocus:k,onBlur:T,children:t.jsx("span",{ref:A,className:"audio-player__button-triangle-wrap",children:t.jsx("svg",{className:"audio-player__button-triangle",viewBox:"0 0 24 24","aria-hidden":"true",children:t.jsx("path",{ref:v,d:"M13.2 7.7 L16.5 9.85 Q20.2 12 16.5 14.15 L10 18.3 Q7 19.7 7 16.3 L7 7.7 Q7 4.3 10 5.7 L13.2 7.7"})})})}):null,x&&t.jsx(dn,{anchorRect:x,text:typeof p=="string"&&p?p:d("training.listenLabel","\uBB38\uC7A5 \uB4E3\uAE30"),offset:8}),t.jsxs("div",{className:`audio-player__play ${Z==="playMode"||Ge?"is-visible":""}`,children:[t.jsxs("div",{ref:b,className:"audio-player__buttons",children:[t.jsx(ae,{size:32,showTooltipInfo:!0,type:"dot",shape:"pill",useBorder:!1,icon:"skip-back",onClick:xt,ariaLabel:d("training.prev","\uC774\uC804"),width:"60px",variant:"transparent-white","aria-hidden":"true",tabIndex:-1,disabled:Z!=="playMode"}),t.jsx(ae,{size:32,showTooltipInfo:!0,type:"dot",shape:"pill",useBorder:!1,icon:Ge?"pause":"play",onClick:on,ariaLabel:d("common.playPause","\uC7AC\uC0DD / \uBA48\uCDA4"),width:"60px",variant:"transparent-white",disabled:Z!=="playMode"}),t.jsx(ae,{size:32,showTooltipInfo:!0,type:"dot",shape:"pill",useBorder:!1,icon:"square",onClick:Wt,ariaLabel:d("training.stop","\uC815\uC9C0"),width:"60px",variant:"transparent-white","aria-hidden":"true",tabIndex:-1,disabled:Z!=="playMode"}),Ye>1?t.jsx("div",{ref:y,className:"audio-player__source-buttons",children:Array.from({length:Ye}).map((Y,ne)=>t.jsx(ae,{size:32,type:"dot",shape:"pill",useBorder:!1,label:String(ne+1),onClick:()=>{try{Yt(ne)}catch{}},ariaLabel:d("training.sourcePlay",{n:ne+1}),variant:"transparent-white",selected:I&&V===ne,disabled:Z!=="playMode"||!(Array.isArray(O)&&O[ne]),showTooltipInfo:!0},ne))}):null,!Array.isArray(O)||O.length<=1?t.jsx(ae,{size:32,showTooltipInfo:!0,type:"dot",shape:"pill",useBorder:!1,icon:"repeat",onClick:Ft,ariaLabel:d("common.replay","\uB2E4\uC2DC\uB4E3\uAE30"),width:"60px",variant:"transparent-white",disabled:Z!=="playMode"}):null,t.jsx(ae,{size:32,showTooltipInfo:!0,type:"dot",shape:"pill",useBorder:!1,icon:"skip-forward",onClick:fn,ariaLabel:d("training.next","\uB2E4\uC74C"),width:"60px",variant:"transparent-white","aria-hidden":!0,tabIndex:-1,disabled:Z!=="playMode"}),t.jsx(ae,{size:32,showTooltipInfo:!0,type:"dot",shape:"pill",useBorder:!1,icon:"check",onClick:_t,ariaLabel:d("common.done","\uC644\uB8CC"),width:"60px",variant:"transparent-white",disabled:Z!=="playMode"})]}),t.jsxs("div",{className:"audio-player__slider",children:[t.jsx("div",{className:Ne,ref:C,style:{left:`${Ce}%`},"aria-hidden":"true"}),(c||u)&&t.jsx(kb,{segments:Mt,progress:z,totalDuration:G,onSegmentClick:Yt,waveProgressRef:se,showSoundWaveForm:c,noiseSrc:u&&h?.settings.enabled&&ve>0?Ie:null,noiseRatio:h?ra(h.settings):0,noiseSpeed:h?.settings.speed??1,mainVolume:fe,onReadyChange:Re})]})]}),t.jsx("audio",{ref:f,crossOrigin:"anonymous",preload:"auto"})]}),!c&&t.jsxs("p",{className:"audio-player__no-waveform caption-1",children:[t.jsx(Oe,{icon:"triangle-alert",size:14}),d("training.noSoundWaveform","\uC18C\uB9AC \uBE44\uAD50 \uBB38\uC81C\uB294 \uC6E8\uC774\uBE0C\uD3FC\uC744 \uD45C\uD604\uD558\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4.")]}),t.jsx(Tn,{message:ee,position:ue,onClose:gn})]})}function Ba(e){const{t:n}=de.useTranslation(),{text:a,label:r,anchorRect:o=null,onClose:s,closeOnOutsideClick:l=!0,isMobilePopup:c=!1}=e||{},[u,d]=i.useState(()=>{try{return localStorage.getItem("tooltip-theme")||"light"}catch{return"light"}});i.useEffect(()=>{try{localStorage.setItem("tooltip-theme",u)}catch{}},[u]);const{increase:p,decrease:h,canIncrease:m,canDecrease:f,fontSize:C,lineHeight:b}=Ws({storageKey:"tooltip-fontScale"}),g=i.useCallback(()=>d(A=>A==="dark"?"light":"dark"),[]),y=i.useCallback(A=>{try{A.stopPropagation()}catch{}try{typeof s=="function"&&s()}catch{}},[s]),w=Array.isArray(a)?a:typeof a>"u"||a===null?[]:[a],_={fontSize:`${C}px`,lineHeight:`${b}px`,"--tt-line-height":`${b}px`,"--tt-marker-size":"28px"},v=t.jsxs("div",{className:`tooltip-textbox__root ${u==="dark"?"is-dark":""}`,children:[t.jsxs("div",{className:"tooltip-textbox__box",children:[r&&t.jsx("div",{className:"tooltip-textbox__label body-2b",children:r}),t.jsx("div",{className:"tooltip-textbox__text body-1",style:_,children:w.map((A,x)=>t.jsxs("div",{className:"tooltip-textbox__line",children:[w.length>1?t.jsx("div",{className:"tooltip-textbox__marker",children:t.jsx("span",{className:"tooltip-textbox__line-number button-1",children:x+1})}):null,t.jsx("span",{className:"tooltip-textbox__line-text",children:A})]},x))})]}),t.jsxs("div",{className:"tooltip-textbox__buttons",children:[t.jsx(ae,{size:32,showTooltipInfo:!0,type:"dot",useBorder:!1,width:48,icon:"minus",onClick:h,ariaLabel:n("training.fontSizeDecrease","\uAE00\uC790 \uD06C\uAE30 \uAC10\uC18C"),variant:u==="dark"?"transparent-white":"transparent-gray",disabled:!f}),t.jsx(ae,{size:32,showTooltipInfo:!0,type:"dot",useBorder:!1,width:48,icon:"plus",onClick:p,ariaLabel:n("training.fontSizeIncrease","\uAE00\uC790 \uD06C\uAE30 \uC99D\uAC00"),variant:u==="dark"?"transparent-white":"transparent-gray",disabled:!m}),t.jsx(ae,{size:32,showTooltipInfo:!0,type:"dot",useBorder:!1,width:48,icon:u==="dark"?"moon":"sun-medium",onClick:g,ariaLabel:n("training.toggleBackground","\uBC30\uACBD \uC804\uD658"),variant:u==="dark"?"transparent-white":"transparent-gray"}),t.jsx(ae,{size:32,showTooltipInfo:!0,type:"dot",useBorder:!1,width:48,icon:"x",onClick:y,ariaLabel:n("common.close","\uB2EB\uAE30"),variant:u==="dark"?"transparent-white":"transparent-gray"})]})]});return o?t.jsx(un,{anchorRect:o,className:`tooltip-textbox ${u==="dark"?"is-dark":""}`,onClose:s,closeOnOutsideClick:l,isMobilePopup:c,ariaLabel:r||n("tooltip.textbox","\uBCF8\uBB38"),children:v}):t.jsx("div",{className:`tooltip-textbox ${u==="dark"?"is-dark":""}`,children:v})}function Al({state:e="disabled"}){const{t:n}=de.useTranslation();return t.jsxs("div",{className:`ts-bullet ts-bullet--${e}`,"aria-hidden":!0,children:[t.jsx("div",{className:"bullet__dot",children:t.jsx(Oe,{icon:"chevron-right",label:n("training.next","\uB2E4\uC74C"),className:"bullet__icon",imgClassName:"bullet__icon-img",maskClassName:"bullet__icon-mask",svgClassName:"bullet__icon-svg",wrapperStyle:{},size:20})}),t.jsx("div",{className:"ts-bullet__line"})]})}function Nl({title:e,children:n,className:a="",state:r="disabled",usePreviewTextBtn:o=!1,onPreviewTextBtn:s,previewText:l=null,useFaded:c,usePlayAllBtn:u=!1,onPlayAll:d,playAllActive:p=!1}){const{t:h}=de.useTranslation(),m=Qt("(max-width: 767px)"),f=`training-step__title h4 ${c&&r==="disabled"?"training-step__title--faded":""} ${a}`.trim(),C=`training-step__title-row training-step__title-row--${r}`.trim(),b=i.useRef(null),[g,y]=i.useState(!1),[w,_]=i.useState(null),[v,A]=i.useState(null),x=i.useRef(s);i.useEffect(()=>{x.current=s});const k=i.useMemo(()=>l==null?"":typeof l=="string"||typeof l=="number"?String(l):Array.isArray(l)&&l.every(D=>typeof D=="string"||typeof D=="number")?l.join(""):"",[l]),T=i.useCallback(()=>{y(!1),_(null),A(null)},[]);i.useEffect(()=>{if(!g)return;let D;try{typeof x.current=="function"&&(D=x.current())}catch{}if(D===!1){T();return}A(typeof D<"u"&&D!==null?D:null)},[k]);const N=i.useCallback(()=>{let D;try{typeof s=="function"&&(D=s())}catch{}if(D!==!1){if(A(typeof D<"u"&&D!==null?D:l),!b.current){y(P=>!P);return}if(g)y(!1),_(null),A(null);else{const P=b.current.getBoundingClientRect();_(P),y(!0)}}},[s,l,g]);return t.jsxs("div",{className:C,children:[t.jsx("p",{className:f,children:t.jsx("span",{className:"training-step__title-text",children:e??n})}),o||u?t.jsxs("div",{className:"title-controls",children:[t.jsxs("div",{className:"title-buttons",children:[u&&t.jsx(ae,{size:32,type:m?"dot":"bar",icon:"play-circle",label:m?void 0:h("training.playAll","\uBAA8\uB450 \uB4E3\uAE30"),ariaLabel:h("training.playAll","\uBAA8\uB450 \uB4E3\uAE30"),selected:p,onClick:d,variant:r==="disabled"?"disabled":"default",disabled:r==="disabled"||p}),o&&t.jsx("div",{ref:b,children:t.jsx(ae,{size:32,type:m?"dot":"bar",icon:"eye",label:m?void 0:h("training.sentencePreview","\uBB38\uC7A5 \uBBF8\uB9AC\uBCF4\uAE30"),ariaLabel:h("training.sentencePreview","\uBB38\uC7A5 \uBBF8\uB9AC\uBCF4\uAE30"),selected:g,onClick:N,variant:r==="disabled"?"disabled":"default",disabled:!l&&typeof s!="function"})})]}),g&&t.jsx(Ba,{text:v??l,label:h("training.sentencePreview","\uBB38\uC7A5 \uBBF8\uB9AC\uBCF4\uAE30"),anchorRect:w,onClose:T,closeOnOutsideClick:!1,isMobilePopup:!0})]}):null]})}function Fr(e,n){return typeof n!="number"||typeof e!="number"?"disabled":e<n?"done":e===n?"active":"disabled"}function Nn({index:e,stepIndex:n,isLast:a=!1,title:r="",titleProps:o={},children:s,className:l="",onDone:c=void 0,useTitleFaded:u=void 0}){const{t:d}=de.useTranslation(),[p,h]=i.useState(()=>Fr(e,n));i.useEffect(()=>{const A=Fr(e,n);if(A!==p){const x=setTimeout(()=>h(A),0);return()=>clearTimeout(x)}},[e,n,p]);const m=i.useCallback((...A)=>{Fr(e,n)==="done"||p==="done"||typeof c=="function"&&c(...A)},[e,n,p,c]),[f,C]=i.useState(!1),[b,g]=i.useState({text:"",label:"\uBB38\uC7A5 \uB4E3\uAE30",anchorRect:null,backdrop:!1,alignX:null,alignY:null}),y=i.useCallback(A=>{if(!A)return null;try{const x=A;if(typeof A=="object"&&(x.currentTarget||x.target)&&(x.nativeEvent||x.type)){const N=x.currentTarget??x.target;if(N&&typeof N.getBoundingClientRect=="function")return N.getBoundingClientRect()}if(A instanceof DOMRect)return A;const k=A;if(k&&typeof k.getBoundingClientRect=="function")return k.getBoundingClientRect();const T=A?.current;return T&&typeof T.getBoundingClientRect=="function"?T.getBoundingClientRect():null}catch{return null}},[]),w=i.useCallback((A,{text:x="",label:k="\uBB38\uC7A5 \uB4E3\uAE30",backdrop:T=!1,alignX:N="center",alignY:D="top"}={})=>{const P=y(A);g({text:x,label:k,anchorRect:P,backdrop:T,alignX:N,alignY:D}),C(!0)},[y]),_=i.useCallback(()=>{C(!1),g(A=>({...A,anchorRect:null}))},[]),v=i.Children.map(s,A=>{if(i.isValidElement(A)){const x=A;if(typeof x.type=="string")return x;const k=x.props??{},T=typeof k.onDone=="function"?k.onDone:m,N=typeof k.disabled=="boolean";let D=p==="disabled";return N&&(D=!!k.disabled),i.cloneElement(x,{onDone:T,disabled:D,showTooltip:w,hideTooltip:_})}return A});return t.jsxs("div",{className:`training-step training-step--${p} ${a?"training-step--last":""} ${l}`,"aria-current":p==="active",children:[t.jsx(Al,{state:p}),t.jsxs("div",{className:"training-step__content",children:[t.jsx(Nl,{state:p,title:r,...o,useFaded:u}),v]}),f?t.jsx(un,{anchorRect:b.anchorRect,backdrop:b.backdrop,onClose:_,ariaLabel:d("tooltip.textbox","\uBCF8\uBB38"),children:t.jsx(Ba,{text:b.text,onClose:_})}):null]})}function Bl({context:e,state:n="disabled",theme:a="light"}){const{t:r}=de.useTranslation(),[o,s]=i.useState("disabled"),[l,c]=i.useState(()=>{try{return localStorage.getItem("tooltip-theme")||a}catch{return a}});i.useEffect(()=>{try{localStorage.setItem("tooltip-theme",l)}catch{}},[l]);const u=()=>c(N=>N==="dark"?"light":"dark"),{increase:d,decrease:p,canIncrease:h,canDecrease:m,fontSize:f,lineHeight:C}=Ws({storageKey:"textbox_fontScale"}),[b,g]=i.useState(""),y=i.useCallback(()=>s("active"),[]),w=i.useCallback(()=>g(""),[]),_=N=>{try{g(N)}catch{}},v=typeof navigator<"u"&&/Mobi|Android/i.test(navigator.userAgent||"");i.useEffect(()=>{if(n!=="disabled"){const N=setTimeout(()=>s(n),0);return()=>clearTimeout(N)}},[n]);const A=i.useMemo(()=>e&&typeof e=="object"?String(e.sentence??e.text??""):typeof e=="string"?e:"",[e]);i.useEffect(()=>{const N=setTimeout(()=>s("disabled"),0);return()=>clearTimeout(N)},[A]);const x=n==="disabled"?o:n,k=x==="disabled"?"training-text-box--disabled":x==="active"?"training-text-box--active":x==="done"?"training-text-box--done":"",T=i.useMemo(()=>({fontSize:`${f}px`,lineHeight:`${C}px`}),[f,C]);return t.jsxs("div",{className:`training-text-box ${k} ${x!=="disabled"&&l==="dark"?"is-dark":""}`,children:[x==="disabled"&&t.jsx("div",{className:"training-text-box__preview",children:t.jsx(ae,{size:48,type:"bar",onClick:y,icon:"eye",ariaLabel:r("training.sentencePreview","\uBB38\uC7A5 \uBBF8\uB9AC\uBCF4\uAE30"),label:r("training.sentencePreview","\uBB38\uC7A5 \uBBF8\uB9AC\uBCF4\uAE30"),useBorder:!1})}),t.jsx("div",{className:"training-text-box__area","aria-hidden":x==="disabled",children:t.jsx("span",{className:"training-text-box__inner h3",style:T,children:A})}),x!=="disabled"&&t.jsxs("div",{className:"training-text-box__buttons","aria-hidden":x==="disabled",children:[t.jsx(ae,{size:32,type:"dot",onClick:p,onDisabledClick:()=>_(r("training.fontSizeMin","\uAE00\uC528 \uD06C\uAE30\uAC00 \uCD5C\uC18C\uC785\uB2C8\uB2E4.")),ariaLabel:r("training.fontSizeDecrease","\uAE00\uC790 \uD06C\uAE30 \uAC10\uC18C"),icon:"minus",variant:l==="dark"?"transparent-white":"transparent-gray",disabled:!m,useBorder:!1,showTooltipInfo:!0,...!v&&{width:"60px"}}),t.jsx(ae,{size:32,type:"dot",onClick:d,onDisabledClick:()=>_(r("training.fontSizeMax","\uAE00\uC528 \uD06C\uAE30\uAC00 \uCD5C\uB300\uC785\uB2C8\uB2E4.")),ariaLabel:r("training.fontSizeIncrease","\uAE00\uC790 \uD06C\uAE30 \uC99D\uAC00"),icon:"plus",variant:l==="dark"?"transparent-white":"transparent-gray",disabled:!h,useBorder:!1,showTooltipInfo:!0,...!v&&{width:"60px"}}),t.jsx(ae,{size:32,showTooltipInfo:!0,type:"dot",useBorder:!1,width:48,icon:l==="dark"?"moon":"sun-medium",onClick:u,ariaLabel:r("training.toggleBackground","\uBC30\uACBD \uC804\uD658"),variant:l==="dark"?"transparent-white":"transparent-gray"})]}),t.jsx(Tn,{message:b,position:"top",onClose:w})]})}function Or({index:e,stepIndex:n,isLast:a=!1,title:r,useTitleFaded:o,onDone:s,onChange:l,answer:c,wrongAnswers:u,choices:d,multiSelect:p=!1,correctCount:h=0,useDisabledCovered:m=!1,choiceIcons:f,shuffleChoices:C=!0}){const{t:b}=de.useTranslation(),g=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,w=typeof n!="number"?"disabled":y<n?"done":y===n?"active":"disabled",_=Array.isArray(d)&&d.length?d:typeof c<"u"?[c].concat(Array.isArray(u)?u:[]):void 0,v=u?u.join("||"):"",A=d?d.join("||"):"",[x,k]=i.useState(()=>Array.isArray(_)?C?Gn(_):_.slice():void 0);i.useEffect(()=>{Array.isArray(_)&&_.length?k(C?Gn(_):_.slice()):k(void 0)},[c,v,A,C]);const[T,N]=i.useState(null),[D,P]=i.useState(()=>new Set);i.useEffect(()=>{N(null),P(new Set)},[A]);const L=i.useRef(void 0);i.useEffect(()=>{const M=L.current;typeof M=="number"&&typeof n=="number"&&typeof e=="number"&&M>=e&&n<e&&(N(null),P(new Set)),L.current=n},[n,e]);const j=i.useCallback(M=>{if(w!=="active")return;const z=x?.[M];if(z==null)return;const H=z,Z=w==="active"||w==="done";if(p){const J=new Set(D),O=J.has(H);O?J.delete(H):J.add(H),P(J),typeof l=="function"&&l({selectedValues:[...J],__ts:Date.now()}),Z&&(typeof h=="number"&&h>0?J.size>=h:!O)&&typeof s=="function"&&w==="active"&&s({selectedValues:[...J],__ts:Date.now()})}else N(H),typeof l=="function"&&l({selectedIndex:M,selectedValue:H,__ts:Date.now()}),Z&&typeof s=="function"&&w==="active"&&s({selectedIndex:M,selectedValue:H,__ts:Date.now()})},[x,w,p,l,s,h,D]),R=`training-step__buttons${Array.isArray(x)&&x.length>3?" training-step__buttons--wrap-3":""}`;return t.jsx(Nn,{index:e,stepIndex:n,isLast:a,title:g,useTitleFaded:o,children:t.jsx("div",{className:R,children:Array.isArray(x)&&x.length>0?x.map((M,z)=>t.jsx(ae,{size:56,type:"bar",onClick:()=>j(z),ariaLabel:String(M),label:M,useLabel:!0,icon:f?f[String(M)]:void 0,variant:"default",disabled:w==="disabled",selected:p?D.has(M):T===M,useDisabledCovered:m,minWidth:0},String(M))):null})})}function Hr({index:e,stepIndex:n,isLast:a=!1,title:r,onDone:o,onChange:s,context:l,demoSelected:c}){const{t:u}=de.useTranslation(),d=r??u("training.confirmTitle","\uBB38\uC7A5\uC744 \uD655\uC778\uD558\uACE0 \uC798 \uB4E4\uB838\uB294\uC9C0 \uC120\uD0DD\uD558\uC138\uC694."),p=typeof e=="number"?e:-1,h=typeof n!="number"?"disabled":p<n?"done":p===n?"active":"disabled",m=l&&typeof l=="object"?l.sentence||"":typeof l=="string"?l:"",f=l&&typeof l=="object"?l.choices:void 0,[C,b]=i.useState(c??null),[g,y]=i.useState(m);g!==m&&(y(m),c==null&&b(null));const w=i.useCallback(A=>{const x=typeof A=="object"&&A!==null?Object.assign({},A,{__ts:Date.now()}):{value:A,__ts:Date.now()};typeof s=="function"&&s(x),h==="active"&&typeof o=="function"&&o(x)},[s,h,o]),_=i.useCallback(()=>{h==="active"&&(b(!1),w(!1))},[w,h]),v=i.useCallback(()=>{h==="active"&&(b(!0),w(!0))},[w,h]);return t.jsxs(Nn,{index:e,stepIndex:n,isLast:a,title:d,onDone:o,useTitleFaded:!1,children:[t.jsx(Bl,{context:l,state:h}),t.jsx("div",{className:"training-step__buttons",children:Array.isArray(f)&&f.length>0?f.slice(0,6).map((A,x)=>t.jsx(ae,{size:56,type:"bar",onClick:()=>{h==="active"&&(b(x),w&&w(x))},disabled:h==="disabled",ariaLabel:String(A),label:A,variant:h,selected:C===x},x)):t.jsxs(t.Fragment,{children:[t.jsx(ae,{size:56,type:"bar",onClick:_,disabled:h==="disabled",icon:"x",ariaLabel:u("training.notHeard","\uC548 \uB4E4\uB838\uC5B4\uC694."),label:u("training.notHeard","\uC548 \uB4E4\uB838\uC5B4\uC694."),variant:"default",selected:C===!1}),t.jsx(ae,{size:56,type:"bar",onClick:v,disabled:h==="disabled",icon:"circle",ariaLabel:u("training.heardWell","\uC798 \uB4E4\uB838\uC5B4\uC694."),label:u("training.heardWell","\uC798 \uB4E4\uB838\uC5B4\uC694."),variant:"default",selected:C===!0})]})})]})}function Vr({index:e,stepIndex:n,isLast:a=!1,title:r,onDone:o,btnLabel:s,soundSrc:l,bucketPath:c,usePreviewTextBtn:u,previewText:d=null,onPreviewTextBtn:p,disabled:h,_pageIndex:m,showSoundWaveForm:f,showNoiseWaveForm:C}){const{t:b}=de.useTranslation(),g=r??b("training.listenTitle","\uC81C\uC2DC\uD558\uB294 \uBB38\uC7A5\uC744 \uB4E4\uC5B4\uC8FC\uC138\uC694."),y=h??(typeof n=="number"&&typeof e=="number"?e>n:!1);return t.jsx(Nn,{index:e,stepIndex:n,isLast:a,title:g,onDone:o,titleProps:{usePreviewTextBtn:u,previewText:d,onPreviewTextBtn:p},children:t.jsx(Ir,{soundSrc:l,ttsText:l?null:d??g,bucketPath:c,btnLabel:s||b("training.listenButton","\uBB38\uC7A5 \uB4E3\uAE30"),disabled:y,className:"training-step__listen-sticky",showSoundWaveForm:f,showNoiseWaveForm:C},`audio-p${m??0}-s${e}`)})}function zr({index:e,stepIndex:n,isLast:a=!1,title:r,onDone:o,onChange:s,context:l=[]}){const{t:c}=de.useTranslation(),u=r??c("training.orderListDefault","\uBB38\uC7A5\uC744 \uB4E4\uC740 \uC21C\uC11C\uB300\uB85C \uBC30\uCE58\uD558\uC138\uC694."),d=S=>typeof S=="string"?S:S&&(S.context||S.sentence||S.question||"")||"",[p,h]=i.useState(Array.isArray(l)?l:[]),[m,f]=i.useState(()=>(p||[]).map((S,$)=>({id:$,text:d(S)}))),C=i.useMemo(()=>typeof n!="number"||typeof e!="number"?"disabled":e<n?"done":e===n?"active":"disabled",[n,e]);i.useEffect(()=>{const S=Array.isArray(l)?l:[];h(S);const $=(F=>{const V=(F||[]).map((G,le)=>({id:le,text:d(G)}));if(V.length<=1)return V;const X=(G,le)=>{if(G.length!==le.length)return!1;for(let pe=0;pe<G.length;pe++)if(G[pe].text!==le[pe].text)return!1;return!0};let I=Gn(V),q=0;for(;X(I,V)&&q<20;)I=Gn(V),q+=1;return I})(S);f($);try{if(typeof s=="function"){const F=$.filter((V,X)=>V.text===d(S[X])).length;s({shuffled:$,score:F,total:(S||[]).length,initial:!0,__ts:Date.now()})}if(typeof o=="function"&&C==="active"){const F=$.filter((V,X)=>V.text===d(S[X])).length;o({shuffled:$,score:F,total:(S||[]).length,initial:!0,__ts:Date.now()})}}catch{}},[l]);const b=(S,$)=>{const F=[...m],V=S+$;if(V<0||V>=F.length)return;const X=F[V];F[V]=F[S],F[S]=X,R(F);try{if(typeof o=="function"&&C==="active"){const I=F.filter((q,G)=>q.text===d(p[G])).length;o({shuffled:F,score:I,total:(p||[]).length,__ts:Date.now()})}}catch{}},[g,y]=i.useState(null),w=i.useRef(null),_=i.useRef(null),v=i.useRef(null),A=i.useRef(null),x=i.useRef(null),k=i.useRef({x:0,y:0}),T=i.useRef(null),N=i.useRef({dx:0,dy:0}),D=()=>{if(T.current!==null)return;const S=()=>{T.current=requestAnimationFrame(S);const $=k.current,F=N.current||{dx:0,dy:0};w.current&&(w.current.style.transform=`translate3d(${$.x-F.dx}px, ${$.y-F.dy}px, 0)`)};T.current=requestAnimationFrame(S)},P=i.useRef(new Map),L=i.useRef(new Map),j=()=>{const S=new Map;return P.current.forEach(($,F)=>{$&&$.getBoundingClientRect&&S.set(F,$.getBoundingClientRect())}),S},R=S=>{const $=j();f(S);try{if(typeof s=="function"){const F=S.filter((V,X)=>V.text===d(p[X])).length;s({shuffled:S,score:F,total:(p||[]).length,__ts:Date.now()})}}catch{}requestAnimationFrame(()=>{const F=j();S.forEach(V=>{const X=$.get(V.id),I=F.get(V.id),q=P.current.get(V.id);if(!q||!X||!I)return;const G=X.top-I.top;G&&(q.style.transition="none",q.style.transform=`translateY(${G}px)`,requestAnimationFrame(()=>{q.style.transition="transform 420ms cubic-bezier(.22,.9,.39,1)",q.style.transform="";const le=()=>{q.style.transition="",q.removeEventListener("transitionend",le)};q.addEventListener("transitionend",le)}))})})},M=(S,$)=>{try{try{$.dataTransfer?.setData("text/plain",String(S))}catch{}try{$.dataTransfer&&($.dataTransfer.effectAllowed="move")}catch{}try{const F=document.createElement("div");F.style.cssText="position:absolute;top:-9999px;left:-9999px;width:1px;height:1px;opacity:0;pointer-events:none;",document.body.appendChild(F),$.dataTransfer?.setDragImage(F,0,0),requestAnimationFrame(()=>{try{document.body.removeChild(F)}catch{}})}catch{}}catch{}y(S);try{const F=m[S],V=document.createElement("div");V.className="order-list__dragging-object order-list__dragging-object--visible",V.textContent=F&&F.text?F.text:"",document.body.appendChild(V),w.current=V;const X=P.current.get(F.id);let I=$.clientX||0,q=$.clientY||0;try{if(X&&X.getBoundingClientRect){const he=X.getBoundingClientRect();I=he.left+he.width/2,q=he.top+he.height/2}}catch{}const G=V.getBoundingClientRect(),le=G.width/2,pe=G.height/2;N.current={dx:le,dy:pe},V.style.transition="none",k.current={x:I,y:q},V.style.transform=`translate3d(${I-le}px, ${q-pe}px, 0)`,requestAnimationFrame(()=>{try{V.style.transition=""}catch{}D()});const fe=he=>{const E=he;k.current={x:E.clientX,y:E.clientY},D()};v.current=fe,document.addEventListener("mousemove",fe);const ve=he=>{const E=he;k.current={x:E.clientX,y:E.clientY},D()};_.current=ve,document.addEventListener("dragover",ve);try{$.dataTransfer?.setData("text/plain",String(S));try{$.dataTransfer?.setData("application/json",JSON.stringify({idx:S}))}catch{}}catch{}}catch{}},z=(S,$)=>{$.preventDefault();try{$.dataTransfer&&($.dataTransfer.dropEffect="move")}catch{}try{x.current!==null&&(clearTimeout(x.current),x.current=null);const F=$.currentTarget&&$.currentTarget.closest?$.currentTarget.closest(".order-list__item"):null;if(F&&A.current!==F){if(A.current)try{A.current.classList.remove("drag-over")}catch{}try{F.classList.add("drag-over")}catch{}A.current=F}}catch{}},H=(S,$)=>{$.preventDefault();const F=$.dataTransfer?.getData("text/plain")||"",V=F?parseInt(F,10):g,X=S;if(typeof V!="number"||isNaN(V)||V===X){y(null),O(),Z();return}const I=Um(m,V,X);R(I),y(null),Z();try{if(typeof o=="function"&&C==="active"){const q=I.filter((G,le)=>G.text===d(p[le])).length;o({shuffled:I,score:q,total:(p||[]).length,__ts:Date.now()})}}catch{}try{requestAnimationFrame(()=>{const q=document.querySelectorAll(".order-list .order-list__item")[X];if(!q)return;const G=q.querySelector(".order-list__slot")||q;try{G.classList.add("pulse"),G.offsetHeight,G.classList.add("to-dark");const le=()=>{G.classList.remove("pulse","to-dark"),G.removeEventListener("transitionend",le)};G.addEventListener("transitionend",le)}catch{}})}catch{}O()},Z=()=>{if(w.current){try{document.body.removeChild(w.current)}catch{}w.current=null}_.current&&(document.removeEventListener("dragover",_.current),_.current=null),v.current&&(document.removeEventListener("mousemove",v.current),v.current=null),T.current!==null&&(cancelAnimationFrame(T.current),T.current=null)},J=()=>{y(null),O(),Z()};i.useEffect(()=>()=>Z(),[]);const O=()=>{try{if(x.current!==null&&(clearTimeout(x.current),x.current=null),A.current){try{A.current.classList.remove("drag-over")}catch{}A.current=null}document.querySelectorAll(".order-list .order-list__item").forEach(S=>S.classList.remove("drag-over"))}catch{}};return i.useEffect(()=>{try{const S=Math.max(1,(m||[]).length);m.forEach(($,F)=>{const V=L.current.get($.id);if(!V)return;let X=50;S>1&&(X=Math.round(F/(S-1)*100));try{V.style.setProperty("--marker-pos",X+"%")}catch{}})}catch{}},[m]),i.useEffect(()=>()=>{Z(),x.current!==null&&(clearTimeout(x.current),x.current=null)},[]),t.jsx(Nn,{index:e,stepIndex:n,isLast:a,title:u,children:t.jsx("div",{className:"order-list",children:m.map((S,$)=>{const F=Math.max(1,(m||[]).length),V=F>1?Math.round($/(F-1)*100):50;return t.jsx("div",{className:"order-list__item",children:t.jsxs("div",{className:"order-list__slot","data-disabled":C==="disabled","aria-disabled":C==="disabled",children:[C!=="disabled"?t.jsx("div",{className:"order-list__marker caption-1",style:{"--marker-pos":V+"%"},ref:X=>{const I=L.current;X?I.set(S.id,X):I.delete(S.id)},children:t.jsx("span",{className:"order-list__slot-number button-1",children:$+1})}):null,t.jsxs("div",{ref:X=>{const I=P.current;X?I.set(S.id,X):I.delete(S.id)},className:`order-list__draggable ${g===$?"dragging":""}`,"data-disabled":C==="disabled","aria-disabled":C==="disabled",tabIndex:C==="disabled"?-1:0,draggable:C==="active",onDragStart:C==="active"?X=>M($,X):void 0,onDragEnter:C==="active"?X=>z($,X):void 0,onDragOver:C==="active"?X=>z($,X):void 0,onDragLeave:C==="active"?()=>{try{x.current!==null&&clearTimeout(x.current),x.current=setTimeout(()=>{try{const X=document.querySelectorAll(".order-list .order-list__item");X&&X[$]&&(X[$].classList.remove("drag-over"),A.current===X[$]&&(A.current=null))}catch{}},80)}catch{}}:void 0,onDrop:C==="active"?X=>H($,X):void 0,onDragEnd:C==="active"?J:void 0,children:[t.jsx("span",{className:"order-list__item-text body-2",children:S.text}),C==="active"?t.jsxs("span",{className:"order-list__item-buttons",children:[t.jsx(ae,{size:32,type:"dot",onClick:()=>b($,-1),ariaLabel:c("training.up"),icon:"chevron-up",variant:"transparent-gray",width:48,useFaded:"true",disabled:$===0,useBorder:!1,useDisabledInvisible:!0}),t.jsx(ae,{size:32,type:"dot",onClick:()=>b($,1),ariaLabel:c("training.down"),icon:"chevron-down",variant:"transparent-gray",width:48,useFaded:"true",disabled:$===m.length-1,useBorder:!1,useDisabledInvisible:!0})]}):null]})]})},S.id)})})})}const Pb=8e3;function Ib(e,n){return new Promise(a=>{let r=!1;const o=()=>{r||(r=!0,a())};e.then(o,o),setTimeout(o,n)})}function Dl({index:e,stepIndex:n,isLast:a=!1,title:r,onDone:o,onChange:s,context:l=[],selectable:c=!1,hideLabel:u=!1,hideAudio:d=!1,maxCards:p}){const{t:h}=de.useTranslation(),m=r??h("training.cardInstructions","\uB0B1\uB9D0 \uCE74\uB4DC\uB97C \uBCF4\uACE0 \uC18C\uB9AC\uB97C \uB4E3\uACE0 \uD655\uC778\uD558\uC138\uC694."),f=i.useMemo(()=>Array.isArray(l)?l:l&&l.items||[],[l]),C=p??3,b=(f||[]).slice(0,C);(f||[]).length>C&&console.warn(`TrainingStepCard: ${f.length} items passed but only ${C} shown`);const g=typeof e=="number"?e:-1,y=typeof n!="number"?"disabled":g<n?"done":g===n?"active":"disabled",[w,_]=i.useState(null),v=i.useRef([]),[A,x]=i.useState(!1),k=i.useMemo(()=>f.map(P=>P?.id??P?.word??"").join("|"),[f]);i.useEffect(()=>{_(null),v.current=[]},[k]);const T=i.useCallback((P,L)=>{if(c)return;const j={item:P,index:L,__ts:Date.now()};try{typeof s=="function"&&s(j)}catch{}if(y==="active"&&typeof o=="function")try{o(j)}catch{}},[c,s,y,o]),N=i.useCallback(async()=>{if(!(A||y==="disabled")){x(!0);try{for(const P of v.current)P&&await Ib(P.play(),Pb)}finally{x(!1)}}},[A,y]),D=i.useCallback((P,L)=>{if(y!=="active")return;_(L);const j={selectedValue:P.word||P.title||"",selectedIndex:L,item:P,__ts:Date.now()};try{typeof s=="function"&&s(j)}catch{}if(y==="active"&&typeof o=="function")try{o(j)}catch{}},[s,y,o]);return t.jsx(Nn,{index:e,stepIndex:n,isLast:a,title:m,onDone:o,titleProps:{usePlayAllBtn:!d&&b.length>0,onPlayAll:N,playAllActive:A},children:t.jsx("div",{className:"training-step__cards",children:b.length===0?t.jsx("div",{className:"training-step__empty",children:h("training.noCards","\uCE74\uB4DC\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4.")}):b.map((P,L)=>t.jsx(wr,{ref:j=>{v.current[L]=j},item:P,disabled:y==="disabled",onPlayDone:()=>T(P,L),selectable:c,selected:c&&w===L,onSelect:c?()=>D(P,L):void 0,flipDelay:L*120,hideLabel:u,hideAudio:d},P&&P.id||L))})})}const Fb=160,Sl=()=>{};function mn(e){const n=i.useId();if(!("variant"in e)){const{label:g,sub:y,onClick:w,children:_,align:v="horizontal",icon:A}=e,x=k=>{w&&k.target===k.currentTarget&&(k.key==="Enter"||k.key===" ")&&(k.preventDefault(),w())};return t.jsxs("div",{className:ye("panel-row",v==="vertical"?"panel-row--vertical":"",w?"panel-row--clickable":""),onClick:w,onKeyDown:w?x:void 0,role:w?"button":void 0,tabIndex:w?0:void 0,children:[A!=null&&t.jsx("div",{className:"panel-row__icon",children:A}),g!=null&&t.jsxs("div",{className:"panel-row__left",children:[t.jsx("div",{className:"panel-row__label body-3",children:g}),y&&t.jsx("div",{className:"panel-row__sub caption-1",children:y})]}),t.jsx("div",{className:"panel-row__right",children:_})]})}if(e.variant==="description")return t.jsx("div",{className:"panel-row panel-row--block",children:t.jsx("p",{className:"panel-row__description body-3",children:e.children})});if(e.variant==="empty")return t.jsx("div",{className:"panel-row panel-row--empty body-3",children:e.children});if(e.variant==="loading")return t.jsx("div",{className:"panel-row panel-row--loading",children:t.jsx(ta,{size:28})});if(e.variant==="custom"&&!e.label)return t.jsx("div",{className:"panel-row panel-row--block",children:e.children});const{variant:a,label:r,sub:o,onClick:s,required:l,error:c,align:u="horizontal",useFullWidth:d=!1,icon:p}=e,h=a==="button"?void 0:s;let m=null;const f=a==="toggle"?`panel-toggle-${n}`:void 0;if(a==="toggle"){const g=e;m=t.jsx(ki,{checked:g.checked,onChange:g.onChange,id:f})}else if(a==="segmented"){const g=e;m=t.jsx(An,{options:g.options,value:g.value,onChange:g.onChange,size:g.size??40,ariaLabel:r})}else if(a==="dropdown"){const g=e,y=g.dropdowns?.length?t.jsx("div",{className:`panel-row__dropdown-group${d?" panel-row__dropdown-group--full":""}`,children:g.dropdowns.map((w,_)=>t.jsx("div",{className:d?"panel-row__dropdown-item--full":void 0,children:t.jsx(zt,{options:w.options,value:w.value,onChange:w.onChange,placeholder:w.placeholder,block:d,error:!!c,ariaLabel:w.ariaLabel??([r,w.placeholder].filter(Boolean).join(" ")||void 0)})},_))}):t.jsx(zt,{options:g.options??[],value:g.value??"",onChange:g.onChange??Sl,block:d,error:!!c,ariaLabel:r});m=c?t.jsxs("div",{className:`panel-row__dropdown-error-wrap${d?" panel-row__dropdown-error-wrap--full":""}`,children:[y,t.jsx("span",{className:"caption-1 panel-row__error",role:"alert",children:c})]}):y}else if(a==="button"){const g=e;g.buttons?.length?m=t.jsx("div",{className:"panel-row__button-group",children:g.buttons.map((y,w)=>t.jsx(ae,{size:y.btnSize??40,variant:y.btnVariant??"default",disabled:y.disabled,onClick:y.onClick,children:y.label},w))}):m=t.jsx(ae,{size:g.btnSize??40,variant:g.btnVariant??"default",disabled:g.disabled,onClick:g.onClick,children:g.buttonLabel})}else if(a==="text"){const g=e;m=t.jsx("span",{className:`panel-row__text body-2${d?" panel-row__text--full":""}`,style:g.valueColor?{color:g.valueColor}:void 0,children:g.value})}else if(a==="input"){const g=e;m=t.jsxs("div",{className:`panel-row__input-wrap${d?" panel-row__input-wrap--full":""}`,children:[t.jsx(kn,{value:g.value,onChange:g.onChange??Sl,onKeyDown:g.onKeyDown,onEnter:g.onEnter,placeholder:g.placeholder,inputMode:g.inputMode,readOnly:g.readOnly,disabled:g.disabled,type:g.type,autoComplete:g.autoComplete,maxLength:g.maxLength,showCount:g.showCount,multiline:g.multiline,rows:g.rows,fullWidth:d,error:c,ariaLabel:r,required:l}),g.helperText&&t.jsx("div",{className:"panel-row__helper caption-1",children:g.helperText})]})}else a==="custom"&&(m=e.children);const C=a==="input"||a==="dropdown"||(a==="text"||a==="custom")&&d,b=g=>{h&&g.target===g.currentTarget&&(g.key==="Enter"||g.key===" ")&&(g.preventDefault(),h())};return t.jsxs("div",{className:ye("panel-row",u==="vertical"?"panel-row--vertical":"",C?"panel-row--label-fixed":"",a==="text"?"panel-row--text":"",h?"panel-row--clickable":""),onClick:h,onKeyDown:h?b:void 0,role:h?"button":void 0,tabIndex:h?0:void 0,children:[p!=null&&t.jsx("div",{className:"panel-row__icon",children:p}),t.jsxs("div",{className:"panel-row__left",children:[f?t.jsxs("label",{htmlFor:f,className:"panel-row__label body-3",children:[r,l&&t.jsx("span",{className:"required-mark",children:"*"})]}):t.jsxs("div",{className:"panel-row__label body-3",children:[r,l&&t.jsx("span",{className:"required-mark",children:"*"})]}),o&&t.jsx("div",{className:"panel-row__sub caption-1",children:o})]}),t.jsx("div",{className:"panel-row__right",children:m})]})}function jl(e){const n=e.productName||e.brand,a=[e.brand,e.fitType].filter(r=>!!r&&r!==n);return[...new Set(a)].join(" \xB7 ")}function Ob({devices:e,onRelease:n,emptyLabel:a}){const{t:r}=de.useTranslation();return t.jsx("div",{className:"panel-row panel-row--device",children:["\uC88C","\uC6B0"].map(o=>{const s=e[o],l=o==="\uC88C"?r("device.direction.left","\uC88C"):r("device.direction.right","\uC6B0");return t.jsxs("div",{className:"panel-row__device-column",children:[t.jsxs("div",{className:"panel-row__device-head",children:[t.jsx("span",{className:"panel-row__device-side body-2b",children:l}),s&&n&&t.jsx(ae,{size:32,type:"dot",icon:"x",ariaLabel:r("customers.device.unwear","\uCC29\uC6A9 \uD574\uC81C"),showTooltipInfo:r("customers.device.unwear","\uCC29\uC6A9 \uD574\uC81C"),onClick:()=>n(o)})]}),s?t.jsxs("div",{className:"panel-row__device-info",children:[t.jsxs("span",{className:"panel-row__device-kind",children:[s.device&&t.jsx(ot,{size:"small",variant:Ii(s.device),fill:"soft",label:s.device}),jl(s)&&t.jsx("span",{className:"panel-row__device-detail body-3",children:jl(s)})]}),t.jsx("span",{className:"panel-row__device-name body-2b",children:s.productName||s.brand}),t.jsx("span",{className:"panel-row__device-date caption-1",children:r("customers.device.wornSince",{date:`${s.wornYear}.${s.wornMonth}.${s.wornDay}`})})]}):t.jsx("span",{className:"panel-row__device-empty body-3",children:a??r("customers.device.notRegistered","\uBBF8\uB4F1\uB85D")})]},o)})})}function Da({title:e,icon:n,disc:a,actions:r,size:o="medium",minHeight:s,maxWidth:l,className:c,scrollable:u,useBorder:d=!0,useBg:p=!0,useRowBorder:h=!0,labelWidth:m,form:f=!1,loading:C,empty:b,children:g}){const y=ye("panel",`panel--${o}`,f?"panel--form":"",s!==void 0?"panel--fill":"",d?"":"panel--no-border",p?"":"panel--no-bg",h?"":"panel--no-row-border",c),w={};return s!==void 0&&(w.minHeight=s),l!==void 0&&(w.maxWidth=typeof l=="number"?`${l}px`:l),m!==void 0&&(w["--panel-label-width"]=typeof m=="number"?`${m}px`:m),t.jsxs("div",{className:y,style:Object.keys(w).length?w:void 0,children:[(e!=null||a!=null)&&t.jsxs("div",{className:ye("panel__header",a!=null?"panel__header--with-disc":""),children:[n&&t.jsx(Oe,{icon:n,label:typeof e=="string"?e:void 0,className:"panel__icon"}),t.jsxs("div",{className:"panel__title-group",children:[e!=null&&t.jsx("h2",{className:`panel__title ${a!=null?"body-3b":"h5b"}`,children:e}),a!=null&&t.jsx("p",{className:"panel__disc caption-1",children:a})]}),r&&t.jsx("div",{className:"panel__actions",children:r})]}),C?t.jsx(mn,{variant:"loading"}):b!=null&&(g==null||Array.isArray(g)&&g.length===0)?t.jsx(mn,{variant:"empty",children:b}):u?t.jsx("div",{className:"panel__body--scroll",children:g}):g]})}function Hb({cols:e=2,children:n}){return t.jsx("div",{className:"panel-grid",style:{"--panel-grid-cols":e},children:n})}function Vb(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 El(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"}]}Vb(Pt.t.bind(Pt)),El(Pt.t.bind(Pt));const Wr="none",zb=.5,Wb=1.5,qb=.25;function qr({title:e,valueLabel:n,value:a,min:r,max:o,step:s,tickStep:l,size:c,onChange:u}){return t.jsxs(mn,{variant:"custom",label:e,useFullWidth:!0,children:[t.jsx(Li,{value:a,onChange:u,min:r,max:o,step:s,size:c,showBgTick:!0,tickStep:l,ariaLabel:e,className:"noise-settings__slider-input"}),t.jsx("div",{className:"noise-settings__value button-1",children:n})]})}function Tl({anchorRect:e,onClose:n}){const{t:a}=de.useTranslation(),r=Qt("(max-width: 767px)")?40:24,o=Aa(),s=ra(o?.settings??ka),l=o?.settings.type??"defaultNoise",c=o?.settings.enabled??!0,u=o?.playbackRate??1,d=o?.mainVolume??1,p=Math.round(d*100),h=i.useCallback(b=>{try{o?.setMainVolume(Math.max(0,Math.min(1,b/100)))}catch{}},[o]),m=i.useCallback(b=>{try{o?.setPlaybackRate(b)}catch{}},[o]),f=i.useCallback(b=>{const g=Math.min(_a,Math.max(0,Math.round(b*10)/10));try{o?.setSettings({noiseRatio:g})}catch{}},[o]),C=i.useCallback(b=>{try{b===Wr?o?.setSettings({enabled:!1}):o?.setSettings({type:b,enabled:!0})}catch{}},[o]);return t.jsx(un,{anchorRect:e,offset:12,onClose:n,ariaLabel:a("training.trainingSettingsTitle","\uD6C8\uB828 \uC124\uC815"),isMobilePopup:!1,closeOnOutsideClick:!1,header:t.jsxs("div",{className:"noise-settings__header",children:[t.jsx("span",{children:a("training.trainingSettingsTitle","\uD6C8\uB828 \uC124\uC815")}),t.jsx(ae,{size:40,type:"dot",icon:"x",variant:"transparent-gray",useBorder:!1,ariaLabel:a("common.close","\uB2EB\uAE30"),onClick:n})]}),children:t.jsxs(Da,{className:"noise-settings",useBorder:!1,labelWidth:72,children:[t.jsx(qr,{title:a("training.playVolumeTitle","\uC804\uCCB4 \uC18C\uB9AC"),valueLabel:`${p}%`,value:p,min:0,max:100,step:10,size:r,onChange:h}),t.jsx(qr,{title:a("training.playSpeedTitle","\uC7AC\uC0DD \uC18D\uB3C4"),valueLabel:`${u.toFixed(2)}x`,value:u,min:zb,max:Wb,step:qb,size:r,onChange:m}),t.jsx(mn,{variant:"custom",label:a("training.noiseTypeTitle","\uC18C\uC74C \uC885\uB958"),useFullWidth:!0,children:t.jsx(An,{ariaLabel:a("training.noiseTypeTitle","\uC18C\uC74C \uC885\uB958"),size:40,shape:"rounded",options:[{key:Wr,label:a("training.noise.type.none","\uC5C6\uC74C")},...El(a).map(b=>({key:b.value,label:b.label}))],value:c?l:Wr,onChange:C})}),t.jsx(qr,{title:a("training.noiseRatioTitle","\uC18C\uC74C \uBE44\uC728"),valueLabel:a("training.noiseRatioValue","{{ratio}}\uBC30",{ratio:s.toFixed(1)}),value:s,min:0,max:_a,step:fl,size:r,onChange:f})]})})}function Ml({useNoiseSettingBtn:e=!1,onSettings:n,onNext:a,onResult:r,stepIndex:o=0,stepCount:s=0,pageIndex:l=0,pageCount:c=1}){const{t:u}=de.useTranslation(),[d,p]=i.useState(!1),[h,m]=i.useState(null),[f,C]=i.useState(!1),b=i.useRef(null),g=i.useRef(null),y=Aa(),w=l<c-1,_=l===c-1,v=o===Math.max(0,s);i.useEffect(()=>{e||(p(!1),m(null))},[e]);const A=i.useCallback(()=>{p(!1),m(null)},[]),x=i.useCallback(()=>{if(d){p(!1),m(null);return}const N=b?.current?.getBoundingClientRect();N&&m(N),n?.(),p(!0)},[d,n]),k=i.useCallback(()=>{if(d){p(!1),m(null);return}const N=g?.current?.getBoundingClientRect();N&&m(N),n?.(),p(!0)},[d,n]),T=i.useCallback(()=>C(N=>!N),[]);return t.jsxs("div",{className:"pp-bottom",children:[t.jsxs("div",{className:"pp-bottom__left",children:[e?t.jsxs(t.Fragment,{children:[t.jsx("div",{className:"pp-bottom__settings--desktop",children:t.jsx("div",{ref:b,className:"pp-bottom__tooltip-trigger","data-tooltip-ignore":!0,children:t.jsx(ae,{size:56,type:"bar",icon:"settings",onClick:x,selected:d,ariaLabel:u("training.trainingSettingsTitle","\uD6C8\uB828 \uC124\uC815"),label:u("training.trainingSettingsTitle","\uD6C8\uB828 \uC124\uC815"),minWidth:140})})}),t.jsx("div",{className:"pp-bottom__settings--mobile",children:t.jsx("div",{ref:g,className:"pp-bottom__tooltip-trigger","data-tooltip-ignore":!0,children:t.jsx(ae,{size:56,type:"dot",icon:"settings",onClick:k,selected:d,ariaLabel:u("training.settings","\uC124\uC815"),minWidth:52})})})]}):null,e&&t.jsx(ae,{size:40,type:"dot",shape:"pill",icon:"audio-lines",onClick:T,selected:f,ariaLabel:u("training.meter.toggle","\uC624\uB514\uC624 \uBBF8\uD130 \uD45C\uC2DC")}),e&&f&&t.jsxs("div",{className:"pp-bottom__meters",children:[t.jsxs("div",{className:"pp-bottom__meter",children:[t.jsx("span",{className:"pp-bottom__meter-label caption-1",children:u("training.meter.sentence","\uC7AC\uC0DD")}),t.jsx(br,{analyser:y?.mainAnalyser??null,orientation:"horizontal",length:112,label:"db",labelPos:"left",ariaLabel:u("training.meter.sentence","\uC7AC\uC0DD")})]}),t.jsxs("div",{className:"pp-bottom__meter",children:[t.jsx("span",{className:"pp-bottom__meter-label caption-1",children:u("training.meter.noise","\uC18C\uC74C")}),t.jsx(br,{analyser:y?.noiseAnalyser??null,orientation:"horizontal",length:112,label:"db",labelPos:"left",ariaLabel:u("training.meter.noise","\uC18C\uC74C")})]})]})]}),t.jsxs("div",{className:"pp-bottom__right",children:[_&&t.jsx(ae,{size:56,type:"bar",icon:"check",onClick:typeof r=="function"?r:a,ariaLabel:u("training.viewResult","\uACB0\uACFC\uBCF4\uAE30"),label:u("training.viewResult","\uACB0\uACFC\uBCF4\uAE30"),variant:"main",disabled:!v}),w&&t.jsx(ae,{size:56,type:"bar",rightIcon:"chevron-right",align:"right",onClick:a,ariaLabel:u("training.nextQuestion","\uB2E4\uC74C \uBB38\uC81C"),label:u("training.nextQuestion","\uB2E4\uC74C \uBB38\uC81C"),variant:"main",disabled:!v})]}),e&&d&&t.jsx(Tl,{anchorRect:h,onClose:A})]})}function Ll({title:e,subtitle:n,desc:a,depth:r,icon:o,wrapperStyle:s,iconTooltip:l,pageIndex:c,pageCount:u,progressMax:d,progressIndex:p,onBack:h,onClose:m}){const{t:f}=de.useTranslation(),C=Qt("(max-width: 767px)"),b=Number.isInteger(p)?p:c||0,g=Number.isInteger(d)?d:u||0,y=h||m,w=Array.isArray(r)?C?r[r.length-1]:r.join(" / "):r,_=typeof e=="string"?e.trim():e,v=typeof n=="string"?n.trim():n,A=!!(_||v),x=A?_||v:f("common.emptyTrainingName","\uD6C8\uB828 \uC774\uB984\uC774 \uBE44\uC5B4 \uC788\uC2B5\uB2C8\uB2E4."),k=w||n,T=C&&typeof k=="string"&&(k.includes(" \xB7 ")||k.includes(" / "))?k.split(/\s[·/]\s/).pop():k,N=i.useMemo(()=>{const D=s&&typeof s=="object"?{...s}:{};return!("width"in D)&&!("height"in D)&&(D.width="40px",D.height="40px"),D},[s]);return t.jsxs("header",{className:"pp-title training-popup-title",children:[t.jsxs("div",{className:"pp-title__left",children:[y?t.jsx(ae,{size:48,type:"dot",icon:"chevron-left",ariaLabel:f("common.back","\uB4A4\uB85C"),onClick:y,useBorder:!1,iconSize:"large",iconColor:"--color-black",variant:"transparent-gray"}):null,t.jsx("div",{children:o?t.jsx(Hi,{icon:o,label:e,tooltip:l,wrapperStyle:N}):null}),t.jsxs("div",{className:"pp-title__text",children:[T?t.jsx("span",{className:"pp-title__depth caption-1",children:T}):null,t.jsx("span",{className:`pp-title__title h2${A?"":" pp-title__title--empty"}`,children:x}),a?t.jsx("span",{className:"pp-title__description caption-1",children:a}):null]})]}),t.jsx(Pi,{max:Math.max(0,g??0),index:Math.max(0,b??0)})]})}function Ub(){typeof window<"u"&&window.dispatchEvent(new CustomEvent("speechear.popup.close"))}function Gb(e){return!e&&e!==0?[]:Array.isArray(e)?e.flatMap(n=>typeof n=="string"?n.split("|").map(a=>a.trim()).filter(Boolean):n||n===0?[String(n)]:[]):typeof e=="string"?e.split("|").map(n=>n.trim()).filter(Boolean):[String(e)]}function $l(e,n,a){const r=e,o=r?.title||r?.name||(Array.isArray(n)?n[n.length-1]:void 0)||a||"\uD6C8\uB828",s=ps().find(c=>c.key===(r?.category_0||r?.category_main_code)),l=s?.subs?.find(c=>c.key===(r?.category_1||r?.category_sub_code));return{title:o,label:r?.title||o,depth:n,icon:s?.icon,wrapperStyle:s?.color?{"--t-item-fg":s.color}:void 0,iconTooltip:[s?.label,l?.label].filter(Boolean).join(" / ")||void 0}}function Ur(e){return e&&typeof e=="object"&&typeof e.__ts=="number"?e.__ts:0}function Kb(e){const n=e;return Array.isArray(n?.items)?n.items:Array.isArray(e)?e:e?[e]:[]}function Zb({idPrefix:e,trainingData:n,depth:a,fallbackTitle:r="\uD6C8\uB828",pages:o=[],emptyMessage:s,buildResults:l,metaPatch:c}){const u=$l(n,a,r),d=typeof c=="function"?c(u)||{}:c||{},p=n?.id||n?.title||o.length;return{id:`${e}:${p}`,meta:{...u,...d},pages:o,emptyMessage:s,buildResults:l}}function Yb(e){if(typeof e=="string")return e;if(e&&typeof e=="object"){const n=e;return n.context||n.sentence||n.question||""||""}return""}function Xb(e){if(e&&typeof e=="object"){const n=e;if(Array.isArray(n.selectedValues))return n.selectedValues;if(n.selectedValue!==void 0)return n.selectedValue;if(n.selectedIndex!==void 0)return n.selectedIndex;if(n.value!==void 0)return n.value}return e}function Jb(e,n=[]){if(Array.isArray(e))return e.join(", ");if(typeof e=="number"&&Array.isArray(n))return String(n[e]??"");if(typeof e=="string")return e}function Rl(e,n){if(!(!e||typeof e!="object"))return e[`step-${n}`]}function Qb(e,n,a,r){return Rl(e,n*a+r)}function e5({payload:e,selected:n,choices:a=[],correctAnswers:r=[]}){if(e&&typeof e=="object"){const o=e;if(Array.isArray(o.selectedValues))return r.every(s=>o.selectedValues.includes(s))&&o.selectedValues.every(s=>r.includes(s));if(typeof o.correct=="boolean")return o.correct}if(r.length){if(typeof n=="number"&&Array.isArray(a)&&a.length)return r.some(o=>String(o)===String(a[n]));if(typeof n<"u")return r.some(o=>String(o)===String(n))}}function t5(e){return e?Array.isArray(e.items)?e.items.map(n=>{const a=n;return typeof n=="string"?{sentence:n}:{sentence:a.context||a.sentence||"",contextCode:a.contextCode||a.context_code}}):Array.isArray(e.sentences)?e.sentences.map(n=>{const a=n;return typeof n=="string"?{sentence:n}:{sentence:a.sentence||a.context||"",contextCode:a.contextCode}}):Array.isArray(e.contexts)?e.contexts:e.contextCode?[{contextCode:e.contextCode}]:[]:[]}const Pl=i.createContext(null);function n5(){const e=i.useContext(Pl);if(!e)throw new Error("useTrainingPagePopupContext must be used inside TrainingPagePopup");return e}function a5({index:e,stepIndex:n,isLast:a=!1,title:r="\uB4E4\uC740 \uC21C\uC11C\uB300\uB85C \uCE74\uB4DC\uB97C \uC120\uD0DD\uD558\uC138\uC694.",choices:o=[],onDone:s,onChange:l}){const c=typeof e=="number"?e:-1,u=typeof n!="number"?"disabled":c<n?"done":c===n?"active":"disabled",[d,p]=i.useState(()=>o.map(()=>null)),h=o.join("|");i.useEffect(()=>{p(h?h.split("|").map(()=>null):[])},[h]);const m=i.useMemo(()=>d.filter(C=>C!==null).length+1,[d]),f=i.useCallback(C=>{u==="active"&&p(b=>{const g=[...b];if(g[C]!==null){const w=g[C];return g.map(_=>_!==null&&_>=w?null:_)}g[C]=m;const y={selectedOrder:g,words:o,__ts:Date.now()};try{typeof l=="function"&&l(y)}catch{}if(g.every(w=>w!==null))try{typeof s=="function"&&s(y)}catch{}return g})},[u,m,l,s,o]);return t.jsx(Nn,{index:e,stepIndex:n,isLast:a,title:r,onDone:s,children:t.jsx("div",{className:"training-step__cards",children:o.map((C,b)=>t.jsx(wr,{item:{word:C},disabled:u==="disabled",selectable:!0,selected:d[b]!==null,orderRank:d[b],onSelect:()=>f(b),flipDelay:b*120,hideLabel:!1,hideAudio:!0},`${C}-${b}`))})})}function Sa(e){return null}Sa.__isTrainingPage=!0;function In(e,n){const a=n5();return{ctx:a,index:e,stepIndex:a.currentStepIndex,isLast:typeof e=="number"&&typeof n=="number"?e===n-1:!1,onDone:r=>a.handleStepDone(r,e),onChange:r=>a.handleStepChange(r,e)}}function Il({_stepIndex:e,_totalSteps:n,...a}){const{index:r,stepIndex:o,isLast:s,onDone:l}=In(e,n);return t.jsx(Vr,{...a,index:r,stepIndex:o,isLast:s,onDone:l})}function Fl({_stepIndex:e,_totalSteps:n,...a}){const{index:r,stepIndex:o,isLast:s,onDone:l,onChange:c}=In(e,n);return t.jsx(Or,{...a,index:r,stepIndex:o,isLast:s,onDone:l,onChange:c})}function Ol({_stepIndex:e,_totalSteps:n,...a}){const{index:r,stepIndex:o,isLast:s,onDone:l,onChange:c}=In(e,n);return t.jsx(Hr,{...a,index:r,stepIndex:o,isLast:s,onDone:l,onChange:c})}function Hl({_stepIndex:e,_totalSteps:n,...a}){const{index:r,stepIndex:o,isLast:s,onDone:l,onChange:c}=In(e,n);return t.jsx(zr,{...a,index:r,stepIndex:o,isLast:s,onDone:l,onChange:c})}function Vl({_stepIndex:e,_totalSteps:n,...a}){const{index:r,stepIndex:o,isLast:s,onDone:l,onChange:c}=In(e,n);return t.jsx(Dl,{...a,index:r,stepIndex:o,isLast:s,onDone:l,onChange:c})}function r5({_stepIndex:e,_totalSteps:n,...a}){const{index:r,stepIndex:o,isLast:s,onDone:l,onChange:c}=In(e,n);return t.jsx(a5,{...a,index:r,stepIndex:o,isLast:s,onDone:l,onChange:c})}function Gr(...e){for(const n of e)if(typeof n=="string"){const a=n.trim();if(a.length)return a}else{if(typeof n=="number"||typeof n=="boolean")return String(n);if(Array.isArray(n)&&n.length)return n.join(", ");if(n&&typeof n=="object"){const a=n,r=[a.text,a.label,a.value];for(const o of r){if(typeof o=="string"&&o.trim().length)return o.trim();if(typeof o=="number"||typeof o=="boolean")return String(o)}}}return null}function o5(e){return Gr(e?.question,e?.q,e?.sentence,e?.text,e?.prompt,e?.wording)}function zl(e){if(!e)return;if(typeof e.decision=="boolean")return e.decision;if(typeof e.correct=="boolean")return e.correct;if(typeof e.heard=="boolean")return e.heard;if(typeof e.judgement=="boolean")return e.judgement;const n=Gr(e?.status,e?.result,e?.judge,e?.note);if(n){const a=n.toLowerCase();if(["ok","true","\uB9DE\uC74C","\uC815\uB2F5"].some(r=>a.includes(r)))return!0;if(["ng","false","\uD2C0\uB9BC","\uC624\uB2F5"].some(r=>a.includes(r)))return!1}}function Wl(e){const{score:n,contextsLength:a,results:r=[],subtitle:o,onReplay:s,onClose:l,inline:c=!1}=e||{},{t:u}=de.useTranslation();i.useEffect(()=>{const b=a??0;n!=null&&b>0&&n/b>.5&&window.dispatchEvent(new CustomEvent("party:trigger",{detail:{count:140,strength:1.6,duration:2200}}))},[n,a]);const d=i.useCallback(b=>{const g=zl(b),y=Gr(b?.wording,b?.label);return g===!0?{variant:"main",label:y??u("training.result.heardWell","\uC798 \uB4E4\uC5C8\uC5B4\uC694")}:g===!1?{variant:"danger",label:y??u("training.result.notHeard","\uBABB \uB4E4\uC5C8\uC5B4\uC694")}:{variant:"disabled",label:y??u("training.result.notJudged","\uBBF8\uD310\uC815")}},[u]),p=a??0,h=n??0,m=i.useMemo(()=>Array.isArray(r)?r:[],[r]),f=i.useMemo(()=>m.map(b=>{const g=b??{},y=o5(g)||u("training.result.noContent","(\uB0B4\uC6A9\uC5C6\uC74C)"),{variant:w,label:_}=d(g),v=Array.isArray(g.corrects)?g.corrects:[],A=v.length?v.join(", "):g.answer!=null&&g.answer!==""?String(g.answer):null,x=typeof g.selectedText=="string"?g.selectedText:null,k=zl(g)===!0;return{problem:y,variant:w,label:_,answer:A,selectedText:x,isCorrect:k}}),[m,d,u]),C=i.useMemo(()=>f.some(b=>b.answer!==null||b.selectedText!==null),[f]);return t.jsx(hn,{onClose:l,inline:c,ariaLabel:u("training.result.title","\uD6C8\uB828\uC744 \uBAA8\uB450 \uB9C8\uCCE4\uC2B5\uB2C8\uB2E4."),className:"popup--training-result",footerClassName:"trp-result__foot",footer:({animateThen:b,closeWithAnimation:g})=>t.jsxs("div",{className:"trp-actions",children:[t.jsx(ae,{size:56,type:"bar",label:u("training.result.replay","\uB2E4\uC2DC\uD558\uAE30"),onClick:()=>b(s)}),t.jsx(ae,{size:56,type:"bar",label:u("training.result.done","\uC644\uB8CC"),variant:"main",onClick:g})]}),children:()=>t.jsxs("div",{className:"trp-result is-on",children:[t.jsxs("header",{className:"trp-result__head",children:[t.jsx("p",{className:"trp-result__eyebrow caption-1",children:u("training.result.eyebrow","\uD6C8\uB828 \uC644\uB8CC")}),t.jsx("h1",{className:"trp-result__title h2",children:u("training.result.title","\uD6C8\uB828\uC744 \uBAA8\uB450 \uB9C8\uCCE4\uC2B5\uB2C8\uB2E4.")}),o&&t.jsx("p",{className:"trp-result__subtitle body-3",children:o}),t.jsx("div",{className:"trp-score",children:t.jsxs("div",{className:"trp-score__figure","aria-label":u("training.result.scoreAria",{correct:h,total:p}),children:[t.jsx("span",{className:"trp-score__big",children:h}),t.jsx("span",{className:"trp-score__sep",children:"/"}),t.jsx("span",{className:"trp-score__total",children:p})]})})]}),f.length>0&&t.jsx("section",{className:"trp-result__body",children:t.jsxs("div",{className:`result-table${C?" result-table--answer":""}`,role:"table","aria-label":u("training.result.tableAriaLabel","\uBB38\uD56D\uBCC4 \uD310\uC815"),children:[t.jsxs("div",{className:"result-table__head caption-1",role:"row",children:[t.jsx("span",{role:"columnheader",children:u("common.col.problem","\uBB38\uC81C")}),C&&t.jsx("span",{role:"columnheader",children:u("training.result.colAnswerSelected","\uC815\uB2F5 \xB7 \uC120\uD0DD")}),t.jsx("span",{className:"col-right",role:"columnheader",children:u("training.result.colJudge","\uD310\uC815")})]}),f.map((b,g)=>t.jsxs("div",{className:"result-table__row",role:"row",children:[t.jsxs("div",{className:"trp-row__problem",children:[t.jsx("span",{className:"trp-row__no caption-1",children:String(g+1).padStart(2,"0")}),t.jsx("div",{className:"trp-row__q body-2",children:b.problem})]}),C&&t.jsxs("div",{className:"trp-row__answers",children:[b.answer!==null&&t.jsxs("div",{className:"trp-row__answer-line",children:[t.jsx("span",{className:"trp-row__answer-label answer-correct caption-1",children:u("training.result.colAnswer","\uC815\uB2F5")}),t.jsx("span",{className:"trp-row__answer-value body-2",children:b.answer})]}),t.jsxs("div",{className:"trp-row__answer-line",children:[t.jsx("span",{className:`trp-row__answer-label answer-selected caption-1 ${b.isCorrect?"is-correct":"is-wrong"}`,children:u("training.result.colSelected","\uC120\uD0DD")}),t.jsx("span",{className:`trp-row__answer-value body-2 ${b.isCorrect?"is-correct":"is-wrong"}`,children:b.selectedText??"\u2014"})]})]}),t.jsx("div",{className:"trp-row__judge",children:t.jsx(ot,{variant:b.variant,label:b.label,fill:"soft",minWidth:80})})]},g))]})})]})})}function s5(e){i.useEffect(()=>{if(!e)return;const n=new Date;return()=>{const a=new Date;a.getTime()-n.getTime()<5e3||Ym({trainingType:e,startedAt:n.toISOString(),endedAt:a.toISOString()})}},[e])}function Kr(e,n){return e&&e.id||`page-${n??0}`}function Zr(e,n){return e&&e.key||`step-${n??0}`}function ja(){return{pageIndex:0,stepIndex:0,answersByPage:{}}}function i5(e,n){return typeof e?.props=="function"?e.props(n)||{}:e?.props||{}}const ql=new Set(["LISTEN_IN_NOISE","SHORT_STORY","LONG_STORY","ORDERING_SENTENCE"]),l5=e=>t.jsx(Wl,{score:e.score,contextsLength:e.contextsLength,results:e.results,onReplay:e.onReplay,onClose:e.onClose});function c5(e){const{scenario:n,title:a,subTitle:r,depth:o,icon:s,wrapperStyle:l,iconTooltip:c,pageIndex:u,pageCount:d,stepIndex:p,stepCount:h,onBack:m,onComplete:f,onNext:C,onSettings:b,useNoiseSetting:g=!0,children:y,ariaLabel:w,label:_,buildResults:v,onResult:A,typeKey:x,entryPoint:k,dailyTotal:T,itemRef:N,renderResultPopup:D,noiseOverride:P}=e;s5(x&&!ql.has(x)?x:"");const L=i.useRef(0);i.useEffect(()=>{L.current=Date.now()},[]);const{t:j}=de.useTranslation(),R=A,M=!!n,z=n?.id||null,H=n?.meta||{},Z=Array.isArray(n?.pages)?n.pages:[],J=Array.isArray(y)||i.isValidElement(y)&&typeof y!="function"?i.Children.toArray(y).filter(i.isValidElement):[],O=J.length>0,S=oe=>oe===Sa||oe?.__isTrainingPage===!0,$=O&&J.some(oe=>S(oe.type)),F=$?J.filter(oe=>S(oe.type)).map((oe,me)=>{const Ce=oe.props||{};return{id:`children-page-${me}`,steps:i.Children.toArray(Ce.children).filter(i.isValidElement),pageTop:Ce.pageTop||Ce.top||null,pageBottom:Ce.pageBottom||Ce.bottom||null}}):[{id:"children-page-0",steps:J}],V=O&&!M&&typeof y!="function",X=V?Math.max(1,F.length):0;i.useEffect(()=>{if(!(typeof document>"u"||!document.body)&&!document.body.classList.contains("ihabdevteam-core-scope"))return document.body.classList.add("ihabdevteam-core-scope"),()=>{document.body.classList.remove("ihabdevteam-core-scope")}},[]),i.useEffect(()=>{if(typeof document>"u"||!document.body)return;const oe=document.body;return oe.dataset.ihabTrainingPopupCount=String(Number(oe.dataset.ihabTrainingPopupCount||"0")+1),oe.classList.add("ihab-training-popup-open"),()=>{const me=Number(oe.dataset.ihabTrainingPopupCount||"1")-1;me>0?oe.dataset.ihabTrainingPopupCount=String(me):(delete oe.dataset.ihabTrainingPopupCount,oe.classList.remove("ihab-training-popup-open"))}},[]),i.useEffect(()=>{if(!(typeof document>"u"||!document.body))return v4()},[]);const[I,q]=i.useState({...ka,enabled:!1}),G=i.useRef(I);i.useEffect(()=>{G.current=I},[I]);const le=i.useRef(P);i.useEffect(()=>{let oe=!1;return e0().then(me=>{if(oe)return;const Ce=me?wa(G.current,me):{...ka};G.current=Ce,q(Ce),Ja(Ce);const Ne=le.current;if(Ne){const Y=typeof Ne=="function"?Ne(Ce):Ne,ne=wa(Ce,Y);G.current=ne,q(ne),Ja(ne)}}),()=>{oe=!0}},[]);const[pe,fe]=i.useState(null),[ve,he]=i.useState(null),E=i.useCallback((oe,me)=>{oe==="main"?fe(me):he(me)},[]),U=i.useCallback(oe=>{const me=wa(G.current,oe);G.current=me,q(me),le.current||t0(me),Ja(me)},[]),ee=I.mainSpeed,_e=I.mainVolume,ue=i.useCallback(oe=>U({mainSpeed:oe}),[U]),ie=i.useCallback(oe=>U({mainVolume:oe}),[U]),te=i.useMemo(()=>({settings:I,setSettings:U,registerAnalyser:E,mainAnalyser:pe,noiseAnalyser:ve,playbackRate:ee,setPlaybackRate:ue,mainVolume:_e,setMainVolume:ie}),[I,U,E,pe,ve,ee,ue,_e,ie]),se=i.useRef(null),[De,He]=i.useState("center"),[Ve,Re]=i.useState(!1),Ee=i.useRef(!1),je=i.useRef(null),Ae=i.useCallback(oe=>{Ee.current||(Ee.current=!0,Re(!0),je.current=setTimeout(oe,Fb))},[]);i.useEffect(()=>()=>{je.current&&clearTimeout(je.current)},[]),i.useEffect(()=>{const oe=se.current;if(!oe)return;const me=Array.from(oe.querySelectorAll(Zn)).filter(Ne=>!Ne.closest('[aria-hidden="true"]'))[0];if(me)try{me.focus()}catch{}const Ce=Ne=>{if(Ne.key==="Escape"){Ne.preventDefault(),Ae(()=>{typeof m=="function"&&m()});return}};return oe.addEventListener("keydown",Ce),()=>oe.removeEventListener("keydown",Ce)},[m,Ae]),tr(se,!0);const[ze,at]=i.useState(!1),ge=i.useRef(!1),[Pe,$e]=i.useState(null),[Ke,Ze]=i.useState(""),[Ue,Ie]=i.useState(()=>ja()),dt=i.useRef(typeof u=="number"?u:null);i.useEffect(()=>{!M&&!V||(Ie(ja()),$e(null))},[M,z,V]),i.useEffect(()=>{V&&Ie(oe=>{const me=Math.max(0,Math.min(oe.pageIndex,Math.max(0,X-1)));return me!==oe.pageIndex?{...oe,pageIndex:me,stepIndex:0}:oe})},[V,X]);const ct=V?Math.max(0,Math.min(Ue.pageIndex,X-1)):0,qe=V?F[ct]:null,st=V&&qe&&Array.isArray(qe.steps)?qe.steps:[],Te=M?Ue.pageIndex:V?ct:typeof u=="number"?u:0,Me=M?Z[Math.max(0,Math.min(Ue.pageIndex,Math.max(0,Z.length-1)))]:null,tt=M&&Me&&Array.isArray(Me.steps)?Me.steps:[],Ct=M?tt.length:V?st.length:typeof h=="number"?h:0,Ye=M||V?Math.max(0,Math.min(Ue.stepIndex,Math.max(0,Ct))):typeof p=="number"?p:0,Xe=M?Z.length:V?X:typeof d=="number"?d:0;i.useLayoutEffect(()=>{const oe=dt.current;if(typeof Te=="number"&&oe!==null&&Te!==oe&&Te>oe)try{Ze(j("training.problemNotice",{n:Te+1}))}catch{}dt.current=typeof Te=="number"?Te:dt.current},[Te,u,j]),i.useLayoutEffect(()=>{const oe=se.current;if(!oe)return;const me=()=>oe.querySelector(".page-popup__scroll");let Ce=null,Ne=null,Y=null;const ne=ke=>{const Fe=me();if(!Fe)return;const et=Fe.scrollHeight<=Fe.clientHeight;if(He(et?"center":"top"),ke&&!ge.current){ge.current=!0;try{at(!0)}catch{}try{Se.disconnect()}catch{}}},be=()=>{Ce!==null&&cancelAnimationFrame(Ce),Ce=requestAnimationFrame(()=>{Ne!==null&&clearTimeout(Ne),Ne=setTimeout(()=>ne(!0),60)})},xe=()=>{Y!==null&&cancelAnimationFrame(Y),Y=requestAnimationFrame(()=>ne(!1))};be(),window.addEventListener("resize",xe);const Se=new MutationObserver(be);Se.observe(oe,{childList:!0,subtree:!0,attributes:!0});const Q=setTimeout(()=>{ge.current||ne(!0)},400);return()=>{window.removeEventListener("resize",xe),Ce!==null&&cancelAnimationFrame(Ce),Ne!==null&&clearTimeout(Ne),Y!==null&&cancelAnimationFrame(Y),clearTimeout(Q);try{Se.disconnect()}catch{}}},[se]);const ht=i.useCallback(oe=>{se.current&&(se.current._childOnNext=oe)},[]),Et=i.useCallback(oe=>{se.current&&(se.current._childOnResult=oe)},[]),Qe=i.useCallback((oe,me,Ce)=>{Ie(Ne=>{const Y=Ne.answersByPage[oe]||{},ne=Y[me],be=Ur(Ce),xe=Ur(ne);return ne&&xe>be?Ne:{...Ne,answersByPage:{...Ne.answersByPage,[oe]:{...Y,[me]:Ce}}}})},[Ie]),vt=i.useCallback((oe,me,Ce)=>{const Ne=Kr(Me,Te),Y=Zr(oe,me);Qe(Ne,Y,Ce)},[Me,Te,Qe]),Tt=i.useCallback((oe,me,Ce)=>{const Ne=Kr(Me,Te),Y=Zr(oe,me);Qe(Ne,Y,Ce),!Ce?.allowChange&&oe?.autoAdvance!==!1&&Ie(ne=>({...ne,stepIndex:Math.max(ne.stepIndex,me+1)}))},[Me,Te,Qe,Ie]),Zt=i.useCallback((oe,me)=>{const Ce=qe?.id||`children-page-${Te??0}`,Ne=typeof me=="number"?me:Ye??0,Y=`step-${Ne}`;Qe(Ce,Y,oe),oe?.allowChange||Ie(ne=>({...ne,stepIndex:Math.max(ne.stepIndex,Ne+1)}))},[qe,Te,Ye,Qe,Ie]),on=i.useCallback((oe,me)=>{const Ce=qe?.id||`children-page-${Te??0}`,Ne=`step-${typeof me=="number"?me:Ye??0}`;Qe(Ce,Ne,oe)},[qe,Te,Ye,Qe]),Ft=V?{currentPageIndex:Te??0,currentStepIndex:Ye??0,totalStepsInPage:st.length,handleStepDone:Zt,handleStepChange:on}:null,Wt=async()=>{const oe=typeof n?.buildResults=="function"?await Promise.resolve(n.buildResults({scenario:n,pages:Z,flowState:Ue,answersByPage:Ue.answersByPage})):null;return typeof R=="function"&&await Promise.resolve(R(oe))||oe},qt=async()=>{const oe=qe?.id||`children-page-${Ue.pageIndex}`,me=Ue.answersByPage[oe]||{},Ce=$?(()=>{const ne={};let be=0;return F.forEach(xe=>{const Se=Ue.answersByPage[xe.id]||{},Q=Array.isArray(xe.steps)?xe.steps.length:0;for(let ke=0;ke<Q;ke+=1){const Fe=Se[`step-${ke}`];typeof Fe<"u"&&(ne[`step-${be+ke}`]=Fe)}be+=Q}),ne})():me;if(typeof v=="function"){const ne=await Promise.resolve(v(Ce,{pageAnswers:me,answersByPage:Ue.answersByPage,pages:F,currentPageId:oe}));return typeof R=="function"&&await Promise.resolve(R(ne))||ne}const Ne=Object.entries(me).map(([ne,be],xe)=>({index:xe,key:ne,payload:be})),Y={results:Ne,answers:Ne,score:0};return typeof R=="function"&&await Promise.resolve(R(Y))||Y},xt=()=>{try{if(typeof document<"u"&&document.body){try{document.dispatchEvent(new CustomEvent("speechear-close-tooltips"))}catch{}document.dispatchEvent(new PointerEvent("pointerdown",{bubbles:!0,cancelable:!0})),document.dispatchEvent(new MouseEvent("click",{bubbles:!0,cancelable:!0}))}}catch{}if(M){const Ce=Wt();$e({});const Ne=Ce;Promise.resolve(Ne).then(Y=>{$e(Y||{isEmpty:!0})}).catch(Y=>{$e({isEmpty:!0})});return}if(V){const Ce=qt();$e({});const Ne=Ce;Promise.resolve(Ne).then(Y=>{$e(Y||{isEmpty:!0})}).catch(Y=>{$e({isEmpty:!0})});return}const oe=se.current&&se.current._childOnResult,me=Ce=>{try{return Ce?Ce():void 0}catch{return}};if(typeof oe=="function"){const Ce=me(oe);try{typeof document>"u"?require("url").pathToFileURL(__filename).href:Jt&&Jt.tagName.toUpperCase()==="SCRIPT"&&Jt.src||new URL("components.cjs.js",document.baseURI).href}catch{}Ce&&typeof Ce.then!="function"?$e(Ce):$e(Ce&&typeof Ce.then=="function"?{}:{}),Promise.resolve(Ce).then(Ne=>{Ne&&$e(Ne)}).catch(Ne=>{});return}if(typeof R=="function"){const Ce=me(R);try{typeof document>"u"?require("url").pathToFileURL(__filename).href:Jt&&Jt.tagName.toUpperCase()==="SCRIPT"&&Jt.src||new URL("components.cjs.js",document.baseURI).href}catch{}Ce&&typeof Ce.then!="function"?$e(Ce):$e(Ce&&typeof Ce.then=="function"?{}:{}),Promise.resolve(Ce).then(Ne=>{try{typeof document>"u"?require("url").pathToFileURL(__filename).href:Jt&&Jt.tagName.toUpperCase()==="SCRIPT"&&Jt.src||new URL("components.cjs.js",document.baseURI).href}catch{}Ne&&$e(Ne)}).catch(Ne=>{console.error("viewResults external handler failed",Ne)});return}},fn=()=>{if(M){if(typeof Te=="number"&&typeof Xe=="number"&&Te<Xe-1){Ie(me=>({...me,pageIndex:me.pageIndex+1,stepIndex:0}));return}return xt()}if(V){const me=st.length;if(typeof Ye=="number"&&Ye<me-1){Ie(Ce=>({...Ce,stepIndex:Ce.stepIndex+1}));return}if(typeof Te=="number"&&typeof Xe=="number"&&Te<Xe-1){Ie(Ce=>({...Ce,pageIndex:Ce.pageIndex+1,stepIndex:0}));return}return xt()}if(typeof C=="function"){try{C()}catch{}return}const oe=se.current&&se.current._childOnNext;if(typeof oe=="function"){try{oe()}catch{}return}},_t=M?H.title||H.label||w||j("common.popup","\uD31D\uC5C5"):a||_||(Array.isArray(o)?o[o.length-1]:void 0)||w||j("common.popup","\uD31D\uC5C5"),gn=M?H.title??H.label??_t:a??_??_t,Yt=(oe,me)=>{const Ce=Kr(Me,Te),Ne=Zr(oe,me),Y=Ue.answersByPage[Ce]?.[Ne],ne=i5(oe,{page:Me,pageIndex:Te,step:oe,stepIndex:me,storedPayload:Y,answersByPage:Ue.answersByPage,flowState:Ue}),be={key:Ne,index:me,stepIndex:Ye,isLast:me===tt.length-1};switch(oe?.type){case"listen":return t.jsx(Vr,{...be,...ne,onDone:xe=>Tt(oe,me,xe)});case"confirm":return t.jsx(Or,{...be,...ne,onDone:xe=>Tt(oe,me,xe),onChange:xe=>vt(oe,me,xe)});case"confirmWithText":return t.jsx(Hr,{...be,...ne,onDone:xe=>Tt(oe,me,xe),onChange:xe=>vt(oe,me,xe)});case"orderList":return t.jsx(zr,{...be,...ne,onDone:xe=>Tt(oe,me,xe),onChange:xe=>vt(oe,me,xe)});default:return null}},Ge=M?Z.length>0?t.jsx("div",{className:"training-steps",children:tt.map((oe,me)=>Yt(oe,me))}):t.jsx("div",{className:"page-popup__content page-popup__content--center",children:t.jsx("div",{className:"pp-empty",children:n?.emptyMessage||j("training.noQuestions","\uBB38\uC81C\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4.")})}):null,Mt=V?t.jsxs(Pl.Provider,{value:Ft,children:[qe?.pageTop?t.jsx("div",{className:"training-page-top",children:qe.pageTop}):null,t.jsx("div",{className:"training-steps",children:st.map((oe,me)=>{const Ce=oe;return i.cloneElement(Ce,{...Ce.props,_stepIndex:me,_totalSteps:st.length,_stepKey:`step-${me}`,_pageIndex:Te})})}),qe?.pageBottom?t.jsx("div",{className:"training-page-bottom",children:qe.pageBottom}):null]}):null,wt=i.useCallback(()=>{let oe;if(x){const me=Pe,Ce=me?.results||me?.answers||[],Ne=Array.isArray(Ce)&&Ce.length>0?Ce.length:null,Y=Array.isArray(Ce)?Ce.filter(be=>be?.correct===!0||be?.isCorrect===!0||be?.score===1||be?.heard===!0||be?.judgement===!0).length:null,ne=Ne!=null?Y:null;Xm({items:Qm(Ce),category:ql.has(x)?"sentence":"word",trainingType:x,entryPoint:k??"sentence",itemRef:N??null,correct:ne,total:Ne,score:typeof me?.score=="number"?me.score:null,durationSeconds:Math.max(0,Math.round((Date.now()-L.current)/1e3)),dailyTotal:T??null}),oe={correct:ne,total:Ne}}$e(null),Ae(()=>{typeof f=="function"&&f(oe),typeof m=="function"&&m()})},[f,m,x,k,T,N,Pe,$e,Ae]),Xt=i.useCallback(()=>Ze(""),[Ze]),Ot=i.useCallback(()=>{Ae(()=>{typeof m=="function"&&m()})},[m,Ae]),Lt=t.jsxs("div",{className:`page-popup${Ve?" page-popup--closing":""}`,role:"dialog","aria-modal":"true","aria-label":_t,children:[t.jsxs("div",{ref:se,className:`page-popup__panel ${ze?"":"page-popup__panel--measuring"} ${De==="center"?"page-popup__panel--center":De==="top"?"page-popup__panel--top":""}`,children:[t.jsx(Ll,{title:gn,subtitle:M?H.subtitle||H.label:Array.isArray(o)?o.join(" / "):void 0,desc:M?void 0:r,depth:M?H.depth:o,icon:M?H.icon:s,wrapperStyle:M?H.wrapperStyle:l,iconTooltip:M?H.iconTooltip:c,progressMax:Xe,progressIndex:Te,pageIndex:Te,pageCount:Xe,onBack:Ot,onClose:Ot}),t.jsx("div",{className:"page-popup__scroll",children:t.jsx("div",{className:`page-popup__content ${De==="center"?"page-popup__content--center":"page-popup__content--top"}`,children:V?Mt:M?Ge:typeof y=="function"?y({registerOnNext:ht,registerOnResult:Et,panelRef:se,setResultOverlay:$e}):y})}),t.jsx(Ml,{onSettings:b,onNext:fn,onResult:xt,useNoiseSettingBtn:!!(M?H.useNoiseSetting??!0:g),stepIndex:Ye,stepCount:Ct,pageIndex:Te,pageCount:Xe})]}),Pe&&!Pe.isEmpty&&(D??l5)({score:Pe.score,results:Pe.results||Pe.answers||[],contextsLength:Pe.results?Pe.results.length:Pe.answers?Pe.answers.length:0,onReplay:()=>{if($e(null),M){if(Ie(ja()),typeof n?.onReplay=="function")try{n.onReplay()}catch{}return}if(V){Ie(ja());return}try{const oe=se.current&&se.current._childOnResult;typeof oe=="function"&&oe({replay:!0})}catch{}},onClose:wt}),Pe?.isEmpty&&t.jsx("div",{className:"page-popup page-popup--result-empty",role:"dialog","aria-modal":"true","aria-label":j("training.result.eyebrow","\uD6C8\uB828 \uC644\uB8CC"),children:t.jsxs("div",{className:"page-popup__panel page-popup__panel--center",children:[t.jsx("div",{className:"page-popup__scroll",children:t.jsx("div",{className:"page-popup__content page-popup__content--center",children:t.jsx("div",{className:"page-popup__empty",children:j("training.result.eyebrow","\uD6C8\uB828 \uC644\uB8CC")})})}),t.jsx("div",{className:"page-popup__bottom",children:t.jsx(ae,{variant:"main",size:48,onClick:wt,label:j("training.result.done","\uC644\uB8CC")})})]})}),t.jsx(Tn,{message:Ke,position:"top",onClose:Xt})]}),Ut=t.jsx(Lr.Provider,{value:te,children:Lt});return typeof document<"u"&&document.body?It.createPortal(Ut,document.body):Ut}const Cn=c5;Cn.Page=Sa,Cn.ListenStep=Il,Cn.ConfirmStep=Fl,Cn.ConfirmWithTextStep=Ol,Cn.OrderListStep=Hl,Cn.CardStep=Vl,Cn.CardOrderStep=r5;function u5({label:e,homonum:n}){const a=Sn()?.(e,n)??"",{imgRef:r,loading:o,hasImage:s,onLoad:l,onError:c}=_r(a);return s?t.jsxs("div",{className:"tooltip-word-image__cell",children:[o&&t.jsx("div",{className:"tooltip-word-image__spinner"}),t.jsx("img",{ref:r,src:a,alt:e,draggable:!1,style:{opacity:o?0:1},onLoad:l,onError:c})]}):t.jsx("div",{className:"tooltip-word-image__cell tooltip-word-image__cell--text h3",children:t.jsx("span",{children:e})})}function Ul({words:e,anchorRect:n}){const a=i.useRef(null),[r,o]=i.useState(null);return i.useLayoutEffect(()=>{if(!n||!a.current)return;const{offsetWidth:s,offsetHeight:l}=a.current,c=window.innerWidth;let u=n.left+n.width/2-s/2,d=n.top-l-8;d<8&&(d=n.bottom+8),u=Math.max(8,Math.min(u,c-s-8)),o({left:u,top:d})},[n]),!n||e.length===0?null:It.createPortal(t.jsx("div",{ref:a,className:"tooltip-word-image",style:{visibility:r?"visible":"hidden",left:r?.left??0,top:r?.top??-9999},children:t.jsx("div",{className:"tooltip-word-image__cells",children:e.map(s=>t.jsx(u5,{label:s.label,homonum:s.homonum},`${s.label}_${s.homonum??1}`))})}),document.body)}function d5({titleIcon:e,resultCount:n,resultUnit:a,searchQuery:r,items:o,groups:s,selected:l=[],onSelect:c,maxSelect:u,onClearSelection:d,onPrint:p,onPrintEmpty:h,className:m,emptyHint:f,sectionType:C="page",disc:b,notice:g}){const{t:y,i18n:w}=de.useTranslation(),_=w.language?.startsWith("ko")??!1,{anchorRect:v,openAt:A,close:x}=Ca(),[k,T]=i.useState(null),N=i.useCallback(()=>{x(),T(null)},[x]);$0(N,!!k);const D=(r??"").trim(),P=/^[^,[\]\s]+$/.test(D)?D:"",L=P.length>0,[j,R]=i.useState(()=>L?"match":"ganada"),[M,z]=i.useState("50"),[H,Z]=i.useState(1),[J,O]=i.useState(L);J!==L&&(O(L),R(L?"match":"ganada"));const S=j==="match"&&!L?"ganada":j,$=i.useMemo(()=>[...L?[{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,L]),F=i.useMemo(()=>["10","25","50","100"].map(ie=>({value:ie,label:y("wordSearch.pageSize",{count:Number(ie),defaultValue:`${ie}\uAC1C\uC529 \uBCF4\uAE30`})})),[y]),V=ie=>ie.words[0],X=i.useCallback((ie,te)=>{const se=Ve=>V(Ve)?.label??"",De=Ve=>V(Ve)?.syllables??[...se(Ve)].length,He=Ve=>{const Re=parseInt(V(Ve)?.grade??"",10);return Number.isFinite(Re)?Re:999};switch(S){case"match":{const Ve=[...P].length,Re=Ee=>Lm(se(Ee).slice(0,Ve),P)?0:1;return Re(ie)-Re(te)||se(ie).localeCompare(se(te),"ko")}case"ganada":return se(ie).localeCompare(se(te),"ko");case"ganada_desc":return se(te).localeCompare(se(ie),"ko");case"syllable":return De(ie)-De(te)||se(ie).localeCompare(se(te),"ko");case"syllable_desc":return De(te)-De(ie)||se(ie).localeCompare(se(te),"ko");case"grade":return He(ie)-He(te)||se(ie).localeCompare(se(te),"ko");case"grade_desc":return He(te)-He(ie)||se(ie).localeCompare(se(te),"ko");default:return 0}},[S,P]),I=i.useMemo(()=>o.slice().sort(X),[o,X]),q=Number(M)||10,G=i.useMemo(()=>(s??[]).flatMap(ie=>ie.items.slice().sort(X).map(te=>({item:te,label:ie.label}))),[s,X]),le=s?G.length:I.length,pe=Math.max(1,Math.ceil(le/q)),fe=Math.min(H,pe),ve=i.useMemo(()=>I.slice((fe-1)*q,fe*q),[I,fe,q]),he=i.useMemo(()=>{if(!s)return null;const ie=G.slice((fe-1)*q,fe*q),te=new Map;for(const{item:se,label:De}of ie)te.has(De)||te.set(De,[]),te.get(De).push(se);return[...te.entries()].map(([se,De])=>({label:se,items:De}))},[s,G,fe,q]);i.useEffect(()=>{Z(1)},[j,M,le]);const E=le>0?t.jsxs("div",{className:"word-search-result-block__toolbar",children:[t.jsx(zt,{size:40,options:$,value:S,onChange:R,ariaLabel:y("wordSearch.sort.aria",{defaultValue:"\uC815\uB82C"})}),t.jsx(zt,{size:40,options:F,value:M,onChange:z,ariaLabel:y("wordSearch.pageSizeAria",{defaultValue:"\uD398\uC774\uC9C0 \uD06C\uAE30"})}),t.jsx(ga,{page:fe,totalPages:pe,onChange:Z})]}):void 0,U=ie=>{c&&c(ie)},ee=n!==void 0&&a?t.jsxs(t.Fragment,{children:[y("wordSearch.resultTitlePrefix","\uCD1D "),t.jsx("span",{style:{color:"var(--color-main)"},children:n}),y("wordSearch.resultTitleSuffix",{unit:_?zm(a):a})]}):void 0,_e=n!==void 0&&n>0&&u!==void 0&&a?y("wordSearch.resultDisc",{unit:_?qm(a):a,max:u,selected:l.length}):void 0,ue=b??(g?t.jsxs(t.Fragment,{children:[t.jsx("span",{className:"word-search-result-block__notice",children:g}),_e?t.jsx("span",{className:"word-search-result-block__disc",children:_e}):null]}):_e);return t.jsxs(Mn,{type:C,icon:e,title:ee,action:E,disc:ue,className:ye("word-search-result-block",m),children:[t.jsxs("div",{className:"word-search-result-block__inner",children:[(s?s.length===0:o.length===0)&&t.jsxs("div",{className:"word-search-result-block__empty-wrap",children:[t.jsx("p",{className:"word-search-result-block__empty body-3",children:y("wordSearch.emptyResult","\uAC80\uC0C9 \uACB0\uACFC\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4.")}),f&&t.jsx("p",{className:"word-search-result-block__empty-hint body-3",children:f})]}),s?(he??[]).map(ie=>t.jsx("div",{className:"word-search-result-block__group",children:t.jsx("div",{className:"word-search-result-block__items",children:ie.items.map(te=>{const se=l.includes(te.id);return t.jsx("div",{onMouseEnter:De=>{A(De.currentTarget),T(te.words)},onMouseLeave:N,children:t.jsx(ae,{size:"word",align:"grid",label:te.words.map(De=>De.label),subLabel:te.words.map(De=>De.subLabel).filter(Boolean).length>0?te.words.map(De=>De.subLabel):void 0,selected:se,onClick:()=>U(te.id),minWidth:200})},te.id)})})},ie.label)):t.jsx("div",{className:"word-search-result-block__items",children:ve.map(ie=>{const te=l.includes(ie.id);return t.jsx("div",{onMouseEnter:se=>{A(se.currentTarget),T(ie.words)},onMouseLeave:N,children:t.jsx(ae,{size:"word",align:"grid",label:ie.words.map(se=>se.label),subLabel:ie.words.map(se=>se.subLabel).filter(Boolean).length>0?ie.words.map(se=>se.subLabel):void 0,selected:te,onClick:()=>U(ie.id),minWidth:200})},ie.id)})}),k&&v&&t.jsx(Ul,{words:k,anchorRect:v})]}),pe>1&&t.jsx("div",{className:"word-search-result-block__pagination-bottom",children:t.jsx(ga,{page:fe,totalPages:pe,onChange:Z})}),(d||p)&&t.jsxs("div",{className:"word-search-result-block__actions",children:[d&&t.jsx(ae,{size:"56",type:"bar",label:y("common.resetSelection","\uC120\uD0DD \uCD08\uAE30\uD654"),selected:!1,disabled:l.length===0,onClick:l.length===0?void 0:d}),p&&t.jsx("div",{onClick:l.length===0?h:void 0,children:t.jsx(ae,{size:"56",type:"bar",variant:"main",label:y("wordTable.title","\uB2E8\uC5B4 \uD45C \uB9CC\uB4E4\uAE30"),disabled:l.length===0,onClick:l.length===0?void 0:p})})]})]})}function p5(e,n){return n.map(a=>{const r=typeof a=="string"?a:a.label,o=typeof a=="string"?void 0:a.displayLabel;return{label:r,value:e[r]??"",displayLabel:o}})}function h5({sections:e,selectedList:n,count:a,onCountChange:r,maxCount:o=4,minCount:s=1,combinationSections:l,combinationSectionsForSlot:c,onSelect:u,placeholder:d="-",className:p,title:h,titleIcon:m,disc:f,showInfoButton:C=!1,onClearPhoneme:b,onSearch:g,onSearchEmpty:y,searchDisabled:w=!1,searchLabel:_,searchChecking:v=!1,pairMode:A=!1,sectionType:x="page",beforeSearchContent:k,beforeContent:T,afterContent:N,hideCountControl:D=!1,ordinal:P=!1}){const{t:L}=de.useTranslation(),j=i.useMemo(()=>L("wordPairs.infoNotes",{returnObjects:!0}),[L]),R=i.useMemo(()=>Array.from({length:o-s+1},(I,q)=>{const G=s+q;return{key:String(G),label:L("wordPairs.count",{n:G})}}),[L,o,s]),M=i.useMemo(()=>L("wordPairs.ordinals",{returnObjects:!0}),[L]),z=i.useCallback(I=>P?L("wordPairs.phonemeOrdinalLabel",{ordinal:M[I-1]??I}):a===1?L("wordPairs.phonemeSingleLabel","\uC74C\uC808"):L("wordPairs.phonemeN",{n:I}),[P,M,a,L]),H=i.useCallback(I=>P?L("wordPairs.phonemeContrastOrdinalLabel",{ordinal:M[I-1]??I}):a===1?L("wordPairs.phonemeContrastSingleLabel","\uB300\uB9BD \uC74C\uC808"):L("wordPairs.phonemeContrast",{n:I}),[P,M,a,L]),Z=i.useCallback((I,q)=>q?t.jsxs(t.Fragment,{children:[I,t.jsx("span",{className:"phoneme-select-block__required",children:"*"})]}):I,[]),{anchorRect:J,toggleAt:O,close:S}=Ca(),$=i.useCallback(I=>r(Number(I)),[r]),F=Qt("(max-width: 767px)"),V=i.useCallback(I=>p5(I,e).map(({label:q,value:G,displayLabel:le})=>{const pe=!!G&&G!=="\uC5C6\uC74C";return t.jsxs("span",{className:ye("phoneme-select-block__cell-jamo-part",G?"":"phoneme-select-block__cell-jamo-part--empty",pe?"":"phoneme-select-block__cell-jamo-part--no-label"),children:[t.jsx("span",{className:`phoneme-select-block__cell-jamo-char h1${G==="\uC5C6\uC74C"?" phoneme-select-block__cell-jamo-char--excluded":""}`,children:G==="\uC5C6\uC74C"?"x":G||d}),pe&&t.jsx("span",{className:"phoneme-select-block__cell-jamo-label caption-2",children:le??q})]},q)}),[e,d]),X=t.jsxs(t.Fragment,{children:[t.jsx("div",{"data-tooltip-ignore":!0,children:t.jsx(ae,{size:40,type:F?"dot":void 0,icon:"info",label:F?void 0:L("wordPairs.caution","\uC720\uC758\uC0AC\uD56D"),selected:!!J,onClick:I=>O(I.currentTarget)})}),J&&t.jsx(_n,{title:L("wordPairs.caution","\uC720\uC758\uC0AC\uD56D"),items:j,anchorRect:J,onClose:S})]});return t.jsxs(Mn,{type:x,title:h,icon:m,disc:f,action:X,className:ye("phoneme-select-block",p),children:[T,(!D||C&&!(h||f))&&t.jsxs("div",{className:"phoneme-select-block__controls",children:[!D&&t.jsx(An,{options:R,value:String(a),onChange:$,size:40,className:"phoneme-select-block__count-control"}),C&&!(h||f)&&X]}),t.jsx("div",{className:"phoneme-select-block__cells",children:A?t.jsxs(t.Fragment,{children:[t.jsx("div",{className:"phoneme-select-block__cell-group",children:Array.from({length:a}).map((I,q)=>{const G=n[q*2]??{};return t.jsxs("div",{className:"phoneme-select-block__cell",children:[t.jsx("div",{className:"phoneme-select-block__cell-circle",children:t.jsx("div",{className:"phoneme-select-block__cell-jamo",children:V(G)})}),t.jsx("span",{className:"phoneme-select-block__cell-index caption-1",children:z(q+1)})]},q)})}),t.jsx("span",{className:"phoneme-select-block__cell-vs h3",children:L("wordPairs.phonemeSelect.vs","\uB300")}),t.jsx("div",{className:"phoneme-select-block__cell-group",children:Array.from({length:a}).map((I,q)=>{const G=n[q*2+1]??{};return t.jsxs("div",{className:"phoneme-select-block__cell",children:[t.jsx("div",{className:"phoneme-select-block__cell-circle",children:t.jsx("div",{className:"phoneme-select-block__cell-jamo",children:V(G)})}),t.jsx("span",{className:"phoneme-select-block__cell-index caption-1",children:H(q+1)})]},q)})})]}):n.map((I,q)=>t.jsxs("div",{className:"phoneme-select-block__cell",children:[t.jsx("div",{className:"phoneme-select-block__cell-circle",children:t.jsx("div",{className:"phoneme-select-block__cell-jamo",children:V(I)})}),t.jsx("span",{className:"phoneme-select-block__cell-index caption-1",children:z(q+1)})]},q))}),(l||c)&&t.jsx("div",{className:"phoneme-select-block__panels",children:t.jsx("div",{className:"phoneme-select-block__detail",children:A?t.jsxs("div",{className:"phoneme-select-block__pair-panels",children:[t.jsx("div",{className:"phoneme-select-block__panel-group",children:Array.from({length:a}).map((I,q)=>{const G=n[q*2]??{};return t.jsx(rn,{title:Z(z(q+1),q===0),sections:c?c(G,q*2):l,selected:G,onSelect:u?.(q*2),align:"newline"},q)})}),t.jsx("div",{className:"phoneme-select-block__panel-group",children:Array.from({length:a}).map((I,q)=>{const G=n[q*2+1]??{};return t.jsx(rn,{title:H(q+1),sections:c?c(G,q*2+1):l,selected:G,onSelect:u?.(q*2+1),align:"newline"},q)})})]}):n.map((I,q)=>t.jsx(rn,{title:Z(z(q+1),q===0),sections:c?c(I,q):l,selected:I,onSelect:u?.(q),align:"newline"},q))})}),k&&t.jsx("div",{className:"phoneme-select-block__before-search",children:k}),(b||g||v)&&(()=>{const I=n.every(q=>Object.entries(q).every(([G,le])=>!le||G==="\uC885\uC131"&&le==="\uC5C6\uC74C"));return t.jsxs("div",{className:"phoneme-select-block__search-row",onClick:I?y:void 0,children:[b&&t.jsx(ae,{size:"56",type:"bar",label:L("wordPairs.resetOptions","\uAC80\uC0C9 \uC635\uC158 \uCD08\uAE30\uD654"),selected:!1,disabled:I,onClick:I?void 0:b}),v?t.jsxs("div",{className:"phoneme-select-block__checking",children:[t.jsx("div",{className:"phoneme-select-block__spinner"}),t.jsx("span",{className:"button-1 phoneme-select-block__checking-label",children:_??L("wordSearch.searchButton","\uAC80\uC0C9\uD558\uAE30")})]}):g&&t.jsx(ae,{size:"56",type:"bar",variant:"main",label:_??L("wordSearch.searchButton","\uAC80\uC0C9\uD558\uAE30"),disabled:I||w,onClick:I||w?void 0:g})]})})(),N]})}function m5({title:e,sections:n,selected:a,onSelect:r,className:o}){const{t:s}=de.useTranslation();return t.jsx(rn,{className:o,title:e??s("wordSearch.filterTitle","\uB2E8\uC5B4 \uAC80\uC0C9 \uC124\uC815"),sections:n,selected:a,onSelect:r,align:"inline"})}function C5({title:e,headerAction:n,sections:a,selected:r,onSelect:o,className:s}){const{t:l}=de.useTranslation();return a.length===0?null:t.jsx(rn,{className:s,title:e??l("training.filter.phonemeGroup",{defaultValue:"\uD6C8\uB828 \uC74C\uC808"}),headerAction:n,sections:a,selected:r,onSelect:o,align:"newline"})}function f5({title:e,mode:n,onModeChange:a,matchMode:r,onMatchModeChange:o,positionCount:s,onPositionCountChange:l,inputMode:c,onInputModeChange:u,className:d}){const{t:p}=de.useTranslation(),h={searchMode:p("wordPairs.filter.searchModeLabel","\uB300\uB9BD \uBC29\uC2DD"),phonemeOrder:p("wordPairs.filter.phonemeOrder","\uC785\uB825 \uC74C\uC808 \uC704\uCE58"),count:p("wordPairs.filter.countLabel","\uC785\uB825 \uC74C\uC808 \uAC2F\uC218"),inputMode:p("wordPairs.filter.inputModeLabel","\uC785\uB825 \uBC29\uC2DD"),orderAny:p("wordPairs.filter.orderAny","\uBB34\uAD00"),orderMatch:p("wordPairs.filter.orderMatch","\uC77C\uCE58"),include:p("wordPairs.mode.include","\uC74C\uC18C \uD3EC\uD568"),pick:p("wordPairs.mode.pick","\uC74C\uC18C \uB300\uB9BD"),explicit:p("wordPairs.mode.contrast","\uC74C\uC18C \uB300\uB9BD \uC9C0\uC815"),charInput:p("wordPairs.input.char","\uAE00\uC790 \uC120\uD0DD"),pronInput:p("wordPairs.input.pron","\uBC1C\uC74C \uC120\uD0DD")},m=g=>p("wordPairs.count",{n:g}),f=[{label:h.searchMode,items:[h.include,h.pick,h.explicit],display:"segmented",labelAction:t.jsx(ea,{title:p("wordPairs.mode.infoTitle","\uB300\uB9BD \uBC29\uC2DD"),items:[p("wordPairs.mode.infoInclude","\uC74C\uC18C \uD3EC\uD568 \u2014 \uC120\uD0DD\uD55C \uC74C\uC18C\uAC00 \uBAA8\uB450 \uB4E4\uC5B4\uAC04 \uB2E8\uC5B4\uC640 \uADF8 \uB300\uB9BD\uC30D\uC744 \uCC3E\uC544\uC694."),p("wordPairs.mode.infoPick","\uC74C\uC18C \uB300\uB9BD \u2014 \uC120\uD0DD\uD55C \uC74C\uC18C\uAC00 \uB300\uB9BD\uC30D \uB450 \uB2E8\uC5B4\uC758 \uC2E4\uC81C \uCC28\uC774\uC810\uC77C \uB54C\uB9CC \uB9E4\uCE6D\uB3FC\uC694."),p("wordPairs.mode.infoContrast","\uC74C\uC18C \uB300\uB9BD \uC9C0\uC815 \u2014 \uAE30\uC900 \uB2E8\uC5B4\uC640 \uB300\uB9BD \uB2E8\uC5B4\uC758 \uC74C\uC18C\uB97C \uAC01\uAC01 \uC9C1\uC811 \uC120\uD0DD\uD574 \uB300\uB9BD\uC30D\uC744 \uCC3E\uC544\uC694.")]})},{label:h.phonemeOrder,items:[h.orderAny,h.orderMatch],display:"segmented",labelAction:t.jsx(ea,{items:p("wordPairs.filter.phonemeOrderInfo",{returnObjects:!0})})},{label:h.count,items:[m(1),m(2)],display:"segmented"},{label:h.inputMode,items:[h.charInput,h.pronInput],display:"segmented",labelAction:t.jsx(ea,{title:p("wordPairs.input.infoTitle","\uC785\uB825 \uBC29\uC2DD"),items:[p("wordPairs.input.infoChar","\uAE00\uC790 \uC120\uD0DD \u2014 \uC120\uD0DD\uD55C \uC74C\uC18C\uB85C \uB2E8\uC5B4(\uAE00\uC790 \uAE30\uC900)\uB97C \uCC3E\uC740 \uD6C4, \uB2E8\uC5B4\uC758 \uD45C\uC900 \uBC1C\uC74C \uB300\uB9BD\uC30D\uC744 \uCC3E\uC2B5\uB2C8\uB2E4."),p("wordPairs.input.infoPron","\uBC1C\uC74C \uC120\uD0DD \u2014 \uC120\uD0DD\uD55C \uC74C\uC18C\uB85C \uD45C\uC900 \uBC1C\uC74C \uB300\uB9BD\uC30D\uC744 \uCC3E\uC2B5\uB2C8\uB2E4.")]})}],C={[h.searchMode]:n==="explicit"?h.explicit:n==="pick"?h.pick:h.include,[h.phonemeOrder]:r==="ordered"?h.orderMatch:h.orderAny,[h.count]:m(s),[h.inputMode]:c==="phoneme"?h.pronInput:h.charInput},b=(g,y)=>{y===h.searchMode?a(g===h.explicit?"explicit":g===h.pick?"pick":"include"):y===h.phonemeOrder?o(g===h.orderMatch?"ordered":"unordered"):y===h.count?l(g===m(2)?2:1):y===h.inputMode&&u(g===h.pronInput?"phoneme":"word")};return t.jsx(rn,{className:d,title:e??p("wordPairs.filter.searchOptionsTitle","\uB300\uB9BD \uC124\uC815"),sections:f,selected:C,onSelect:b,align:"inline"})}function g5(e){const{title:n,items:a,columns:r,gridTemplateColumns:o,searchPlaceholder:s,searchFn:l,defaultSortKey:c,defaultSortAsc:u=!0,selectedId:d,selectedIds:p,onSelect:h,onClose:m,pageSizeOptions:f=[10,25,50,100],initialPageSize:C,emptyText:b,countLabel:g,topContent:y,className:w=""}=e,{t:_}=de.useTranslation(),v=s??_("common.search","\uAC80\uC0C9"),A=b??_("common.emptyList","\uD56D\uBAA9\uC774 \uC5C6\uC2B5\uB2C8\uB2E4."),[x,k]=i.useState(""),[T,N]=i.useState(c??r[0]?.key??""),[D,P]=i.useState(u),[L,j]=i.useState(String(C??f[0]??10)),[R,M]=i.useState(1);i.useEffect(()=>{M(1)},[x,L]);const z=l!==null,H=i.useCallback((I,q)=>{if(!q)return!0;const G=q.toLowerCase();return r.some(le=>{const pe=I[le.key];return pe==null?!1:String(pe).toLowerCase().includes(G)})},[r]),Z=l??H,J=i.useMemo(()=>{const I=z?a.filter(q=>Z(q,x)):a;return T?[...I].sort((q,G)=>{const le=q[T]??"",pe=G[T]??"";if(le===pe)return 0;const fe=U4(le,pe);return D?fe:-fe}):I},[a,x,T,D,z,Z]),O=Math.max(1,Math.ceil(J.length/Number(L))),S=J.slice((R-1)*Number(L),R*Number(L)),$=i.useCallback(I=>{T===I?P(q=>!q):(N(I),P(!0))},[T]),F=i.useMemo(()=>{if(typeof g=="function"){const I=J.length,q=g(I);if(typeof q=="string"){const G=q.lastIndexOf(String(I));if(G>=0)return{prefix:q.slice(0,G),suffix:q.slice(G+String(I).length)}}return{label:q}}if(typeof g=="string"&&g.includes("{n}")){const[I,q]=g.split("{n}");return{prefix:I,suffix:q}}return{prefix:_("common.totalCountPrefix","\uCD1D "),suffix:_("common.totalCountSuffix","\uAC1C")}},[g,J.length,_]),V=i.useMemo(()=>r.map(I=>({label:I.label,onClick:I.sortable!==!1?()=>$(I.key):void 0,className:I.className,sortDir:I.sortable!==!1&&T===I.key?D?"asc":"desc":null})),[r,T,D,$]),X=i.useMemo(()=>f.map(I=>({value:String(I),label:_("common.pageSizeLabel",{n:I})})),[f,_]);return t.jsxs(hn,{className:`popup-list ${w}`,title:n,onClose:m,children:[y,"label"in F&&t.jsx("p",{className:"toolbar__count body-1",children:F.label}),t.jsx(hr,{count:"label"in F?void 0:{value:J.length,prefix:F.prefix,suffix:F.suffix},search:z?{value:x,onChange:k,placeholder:v}:void 0,pageSize:{options:X,value:L,onChange:j},pagination:{page:R,total:O,onChange:M}}),t.jsx(vr,{size:"medium",gridTemplateColumns:o,resizable:!0,fields:V,items:S,onRowClick:h,renderRow:I=>{const q=p!=null?I.id!=null&&p.has(I.id):d!=null&&I.id===d;return r.map(G=>({content:G.render?G.render(I):I[G.key]??"",className:q?"popup-list__row--selected":G.className}))},empty:A})]})}function b5(e){const{title:n,message:a,topContent:r,details:o,children:s,confirmLabel:l,cancelLabel:c,hideCancel:u=!1,extraAction:d,confirmVariant:p="main",confirmDisabled:h=!1,onConfirm:m,closeOnConfirm:f=!0,onClose:C,inline:b,size:g="small",className:y}=e,{t:w}=de.useTranslation(),_=i.useRef(!1),[v,A]=i.useState(!1);return t.jsxs(hn,{title:n,onClose:C,closeDisabled:v,inline:b,size:g,className:ye("confirm-popup",y),buttons:[...d?[{label:d.label,variant:d.variant??"default",disabled:d.disabled||v,onClick:async({closeWithAnimation:x})=>{if(!_.current){_.current=!0,A(!0);try{await d.onClick(x),(d.closeOnClick??!0)&&x()}finally{_.current=!1,A(!1)}}}}]:[],...u?[]:[{label:c??w("common.cancel","\uCDE8\uC18C"),variant:"default",disabled:v,onClick:({closeWithAnimation:x})=>x()}],{label:l??w("common.confirm","\uD655\uC778"),variant:p,disabled:h||v,onClick:async({closeWithAnimation:x})=>{if(!_.current){_.current=!0,A(!0);try{await m(x),f&&x()}finally{_.current=!1,A(!1)}}}}],children:[r!=null&&t.jsx("div",{className:"confirm-popup__top",children:r}),o&&o.length>0&&t.jsx(Da,{children:o.map((x,k)=>t.jsx(mn,{label:x.label,children:t.jsx("span",{className:"panel-row__text body-2",children:x.value})},k))}),t.jsx("p",{className:"body-2 confirm-popup__message",children:a}),s]})}function y5({onApply:e,onCancel:n}){const{t:a}=de.useTranslation(),[r,o]=i.useState(""),[s,l]=i.useState(!1),[c,u]=i.useState(null),d=i.useRef(null);i.useEffect(()=>{d.current?.focus()},[]);const p=i.useCallback(async f=>{const C=r.trim();if(C){l(!0),u(null);try{await e(C),f()}catch(b){u(ss(b)),l(!1)}}},[r,e]),h=i.useCallback((f,C)=>{f.key==="Enter"&&p(C)},[p]),m=f=>{o(f.target.value),u(null)};return t.jsx(hn,{className:"coupon-input-popup",title:a("usage.couponButton","\uCFE0\uD3F0 \uC785\uB825"),size:"small",onClose:n,closeDisabled:s,buttons:[{label:a("common.cancel","\uCDE8\uC18C"),variant:"default",disabled:s,onClick:({closeWithAnimation:f})=>f()},{label:a("coupons.applyButton","\uC801\uC6A9"),variant:"main",disabled:!r.trim()||s,onClick:({closeWithAnimation:f})=>{p(f)}}],children:({closeWithAnimation:f})=>t.jsxs(t.Fragment,{children:[t.jsx("input",{ref:d,className:"coupon-input-popup__input body-2","aria-label":a("coupons.input.label","\uCFE0\uD3F0 \uCF54\uB4DC"),placeholder:a("coupons.input.placeholder","\uCFE0\uD3F0 \uCF54\uB4DC \uC785\uB825"),value:r,onChange:m,onKeyDown:C=>h(C,f),disabled:s,autoComplete:"off",spellCheck:!1}),c&&t.jsx("p",{className:"coupon-input-popup__error caption-1",role:"alert",children:c})]})})}const v5=200;function x5(e){return e.itemId?(d0()[e.trainingType]??[]).find(n=>n?.id!=null&&String(n.id)===String(e.itemId))??null:null}function _5({plan:e,anchorRect:n,offset:a=12,onClose:r}){const{t:o}=de.useTranslation(),s=i.useMemo(()=>p0.map(c=>({type:c,items:(e.items??[]).filter(u=>u.trainingType===c.key)})).filter(c=>c.items.length>0),[e.items]);if(s.length===0)return null;const l=t.jsx("div",{className:"tooltip-training__box",children:t.jsx("div",{className:"tooltip-training__groups",children:s.flatMap(({type:c,items:u},d)=>[d>0?t.jsx("div",{className:"tooltip-training__divider"},`div-${c.key}`):null,t.jsxs("div",{className:"tooltip-training__section",children:[t.jsx("div",{className:"tooltip-training__section-header",children:t.jsx("span",{className:"tooltip-training__type-label body-3b",children:c.label})}),t.jsx("div",{className:"tooltip-training__items",children:u.map((p,h)=>{const m=x5(p);return m?t.jsx(xr,{index:h,type:c,trainingData:m,size:"compact",hideCheckBadge:!0},p.itemId??h):null})})]},c.key)])})});return n?t.jsx(un,{anchorRect:n,offset:a,onClose:r,closeOnOutsideClick:!1,className:"tooltip-training",ariaLabel:o("tooltip.training","\uD6C8\uB828 \uC548\uB0B4"),children:l}):l}const Gl=["var(--color-main)","var(--color-sub)"],w5=2e3;function k5(e,n){if(!n.startsWith("var("))return n;try{const a=n.slice(4,-1).trim();return getComputedStyle(e).getPropertyValue(a).trim()||null}catch{return null}}function Kl({active:e=!1,count:n=40,duration:a=2e3,strength:r=1,onComplete:o,trigger:s=0}){const l=i.useMemo(()=>{const b=Math.floor(n/2),g=n-b,y=(w,_)=>Array.from({length:w}).map((v,A)=>{const x=6+Math.random()*12,k=Math.round(Math.min(18,x*Math.min(1.5,1+r*.4))),T=Gl[Math.floor(Math.random()*Gl.length)],N=Math.random()*300,D=(360+Math.random()*260)*r*1.2,P=(_==="left"?-95+Math.random()*40:-85-Math.random()*40)*Math.PI/180,L=Math.cos(P)*D,j=Math.sin(P)*D*1.35,R=Math.random()*720-360,M=(1200+Math.random()*3e3)*Math.min(1.6,1+r*.3),z=Math.random()>.7?"50%":"3px";return{id:`${_}-${A}`,side:_,size:k,color:T,delay:N,vx:L,vy:j,angularVel:R,life:M,borderRadius:z}});return[...y(b,"left"),...y(g,"right")]},[n,r]),c=i.useRef(null),u=i.useRef({}),d=i.useRef(null),p=i.useRef(o);i.useEffect(()=>{p.current=o},[o]);const h=i.useRef(null),m=i.useRef(null),f=()=>{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"&&m.current==null&&(m.current=f()),i.useEffect(()=>{if(!e)return;if(typeof window<"u"&&window.matchMedia?.("(prefers-reduced-motion: reduce)").matches){p.current?.();return}const b=1200,g=performance.now(),y=m.current&&m.current!==document.body?m.current.getBoundingClientRect():null,w=Math.max(60,(window.innerHeight||800)*.05),_=S=>Math.max(40,(S||window.innerWidth)*.02),v=y?.width||window.innerWidth||375,A=y?.height||window.innerHeight||812,x=S=>{const $=[...S].sort((F,V)=>F-V);return $[Math.floor($.length/2)]||1},k=x(l.map(S=>Math.abs(S.vy))),T=x(l.map(S=>Math.abs(S.vx))),N=Math.sqrt(2*b*(A*.72+w))/k,D=k*N/b,P=v*.5/(T*D),L=(S,$,F)=>Math.min(F,Math.max($,S)),j=L(N,.8,2.4),R=L(P,.7,2.2),M=a>0?a/w5:1,z=l.map(S=>({...S,life:S.life*M,vx:S.vx*R,vy:S.vy*j,startTime:g+S.delay,ended:!1})),H=y?{x:y.left-_(y.width),y:y.top+y.height+w}:{x:-_(window.innerWidth),y:window.innerHeight+w},Z=y?{x:y.left+y.width+_(y.width),y:y.top+y.height+w}:{x:window.innerWidth+_(window.innerWidth),y:window.innerHeight+w},J=S=>{let $=!1;for(const F of z){const V=u.current[F.id];if(!V||!V)continue;if(S<F.startTime){V.style.display="none";continue}if(!F._inited){const E=F.side==="left"?H.x:Z.x,U=F.side==="left"?H.y:Z.y;V.style.left=`${E}px`,V.style.top=`${U}px`,V.style.transform="translate3d(0px, 0px, 0)",V.style.display="block",V.style.zIndex="100000",typeof F.color=="string"&&F.color.startsWith("var(")&&(V.style.background=k5(V,F.color)??"#FF0060"),F._inited=!0}const X=(S-F.startTime)/1e3;if(X<0)continue;const I=F.life/1e3;if(X>=I){V.style.opacity="0",V.style.display="none",F.ended=!0;continue}$=!0;const q=F.side==="left"?H.x:Z.x,G=F.side==="left"?H.y:Z.y,le=q+F.vx*X,pe=G+F.vy*X+.5*b*X*X,fe=(F.angularVel||0)*X,ve=le-q,he=pe-G;V.style.transform=`translate3d(${ve}px, ${he}px, 0) rotate(${fe}deg)`,V.style.opacity=`${Math.max(0,1-X/I)}`}$?d.current=requestAnimationFrame(J):p.current?.()};d.current=requestAnimationFrame(J);const O=setTimeout(()=>{try{if((m.current?m.current.querySelectorAll(".confetti"):document.querySelectorAll(".confetti")).length===0&&!document.querySelector(".party-container")){const S=document.createElement("div");S.className="party-container",S.style.position="fixed",S.style.inset="0",S.style.pointerEvents="none",S.style.overflow="visible",S.style.zIndex="2147483647";for(const $ of l){const F=document.createElement("span");F.className=`confetti confetti--${$.side}`,F.setAttribute("aria-hidden","true"),F.style.display="none",F.style.position="fixed",F.style.left="0px",F.style.top="0px",F.style.width=`${$.size}px`,F.style.height=`${Math.max(4,$.size*.6)}px`,F.style.background=$.color,F.style.borderRadius=$.borderRadius,F.style.transform="translate3d(0,0,0)",F.style.opacity="0",S.appendChild(F),u.current[$.id]=F}(document.body||m.current).appendChild(S),h.current=S}}catch{}},300);return()=>{if(d.current&&cancelAnimationFrame(d.current),clearTimeout(O),h.current){try{h.current.remove()}catch{}h.current=null}}},[e,a,s,l]),!e)return null;const C=t.jsx("div",{className:"party-container",ref:c,children:l.map(b=>t.jsx("span",{"aria-hidden":!0,ref:g=>{u.current[b.id]=g},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}-${s}`))});return typeof document<"u"?It.createPortal(C,m.current||document.body):C}function A5({trigger:e=0,active:n=!1}){const a=i.useRef(0);return i.useEffect(()=>{a.current=e},[e]),t.jsx(Kl,{active:n,trigger:e})}function N5({title:e,sub:n,rightAction:a,titleAction:r,badge:o,badgeVariant:s="default",documentTitle:l,onBack:c,backLabel:u}){const{t:d}=de.useTranslation();A0(typeof e=="string"?e:l??null);const p=u??d("common.back","\uB4A4\uB85C");return t.jsxs("div",{className:"page-title",children:[t.jsxs("div",{className:"page-title__main",children:[t.jsxs("div",{className:"page-title__title-row",children:[c&&t.jsx(ae,{className:"page-title__back",size:48,type:"dot",icon:"chevron-left",iconSize:"large",useBorder:!1,iconColor:"var(--color-text-primary)",ariaLabel:p,showTooltipInfo:p,onClick:c}),t.jsx("h1",{className:"page-title__title h1",children:e}),o&&t.jsx("div",{className:"page-title__badge",children:t.jsx(ot,{label:o,size:"small",variant:s,fill:"outline"})}),r?t.jsx("div",{className:"page-title__title-action",children:r}):null]}),n&&t.jsx("p",{className:"page-title__sub body-2",children:n})]}),a?t.jsx("div",{className:"page-title__action",children:a}):null]})}function B5(e){return e??""}const Zl=i.createContext({words:[],loading:!1});function D5(){return i.useContext(Zl)}function S5({words:e,loading:n,error:a,statusMessage:r,localVersion:o,remoteVersion:s,progress:l,clearAndRefetch:c,checkRemoteVersion:u,children:d}){return t.jsx(Zl.Provider,{value:{words:e,loading:n,error:a,statusMessage:r,localVersion:o,remoteVersion:s,progress:l,clearAndRefetch:c,checkRemoteVersion:u},children:d})}function j5({items:e,actions:n,columns:a,flat:r=!1,className:o,style:s}){const l=a??e.length;return t.jsx("section",{className:ye("summary-strip",r&&"summary-strip--flat",o),style:{"--summary-strip-cols":String(l),...s},children:t.jsxs("div",{className:"summary-strip__row",children:[t.jsx("div",{className:"summary-strip__items",children:e.map((c,u)=>t.jsxs("div",{className:"summary-strip__item",children:[t.jsx("p",{className:"summary-strip__label caption-1",children:c.label}),t.jsx("p",{className:"summary-strip__value body-3b",children:c.value})]},u))}),n&&t.jsx("div",{className:"summary-strip__actions",children:n})]})})}const E5=(e,n)=>`${e} / ${n}`;function T5({blocks:e,sectionTitles:n,logo:a,footer:r,pageLabel:o=E5,pageWidth:s,pageHeight:l,margin:c,className:u,style:d}){const{t:p}=de.useTranslation(),h=i.useRef(null),m=i.useRef(null),f=i.useRef(null),C=i.useRef(null),[b,g]=i.useState(null),[y,w]=i.useState(!1);i.useEffect(()=>{const D=h.current;if(!D)return;const P=()=>w(D.scrollWidth>D.clientWidth+1);if(P(),typeof ResizeObserver>"u")return;const L=new ResizeObserver(P);return L.observe(D),()=>L.disconnect()},[b]);const _=e.map(D=>`${D.id}\0${D.section??""}\0${D.group??""}`).join("");i.useLayoutEffect(()=>{const D=m.current,P=C.current;if(!D||!P)return;const L=f.current?.offsetHeight??0,j=P.offsetHeight-L,R=Array.from(D.children).map(O=>O.offsetHeight),M=[];e.forEach((O,S)=>{const $=M[M.length-1],F=$?e[$[0]]:void 0;F&&O.group!=null&&F.group===O.group?$.push(S):M.push([S])});const z=[];let H=[],Z=0;const J=()=>{H.length&&z.push(H),H=[],Z=0};M.forEach(O=>{const S=O.reduce(($,F)=>$+R[F],0);H.length&&e[H[0]].section!==e[O[0]].section&&J(),H.length&&Z+S>j&&J(),S>j?O.forEach($=>{H.length&&Z+R[$]>j&&J(),H.push($),Z+=R[$]}):(O.forEach($=>H.push($)),Z+=S)}),J(),g(z)},[_]);const v=pr,A=v,x=r??t.jsxs(t.Fragment,{children:[t.jsx("img",{src:A,alt:"IHAB",className:"report-doc__logo"}),"\xA9 IHAB, Inc. All rights reserved."]}),k=(D,P,L)=>({header:t.jsxs("div",{className:"report-doc__header",children:[t.jsx("h2",{className:"report-doc__title h3b",children:L!=null&&n?.[L]||null}),a]}),footer:t.jsxs("div",{className:"report-doc__footer caption-1",children:[t.jsx("span",{className:"report-doc__footer-left",children:x}),t.jsx("span",{className:"report-doc__page-no",children:o(D,P)})]})}),T=k(1,1,e[0]?.section),N={...s?{"--report-page-w":s}:null,...l?{"--report-page-h":l}:null,...c?{"--report-margin":c}:null,...d};return t.jsxs("div",{ref:h,className:ye("report-doc",u),style:N,tabIndex:y?0:void 0,role:y?"group":void 0,"aria-label":y?p("report.previewRegion","\uBCF4\uACE0\uC11C \uBBF8\uB9AC\uBCF4\uAE30"):void 0,children:[t.jsxs("div",{className:"report-doc__measure","aria-hidden":!0,children:[t.jsx("div",{ref:C,className:"report-doc__ruler"}),t.jsxs("div",{ref:f,children:[T.header,T.footer]}),t.jsx("div",{ref:m,className:"report-doc__measure-blocks",children:e.map(D=>t.jsx("div",{children:D.content},D.id))})]}),b&&t.jsx("div",{className:"report-doc__pages",children:b.map((D,P)=>{const{header:L,footer:j}=k(P+1,b.length,e[D[0]].section);return t.jsxs("section",{className:"report-doc__page",children:[L,D.map(R=>t.jsx("div",{children:e[R].content},e[R].id)),j]},P)})})]})}function M5({title:e,fields:n,columns:a=4,className:r,style:o}){return t.jsxs("div",{className:ye("report-info",r),style:{"--report-info-cols":String(a),...o},children:[e&&t.jsx("p",{className:"report-info__title h5b",children:e}),t.jsx("div",{className:"report-info__grid",children:n.map((s,l)=>t.jsxs("div",{className:"report-info__field body-2",children:[t.jsx("span",{className:"report-info__label body-3",children:s.label}),t.jsx("span",{className:"report-info__value",children:s.value})]},l))})]})}function L5({title:e,message:n,actionLabel:a,onAction:r,icon:o,onClose:s,className:l=""}){const{t:c}=de.useTranslation(),u=a??c("common.update","\uC5C5\uB370\uC774\uD2B8");return t.jsxs("div",{className:ye("update-alert",l),role:"alert",children:[s&&t.jsx("button",{type:"button",className:"update-alert__close",onClick:s,"aria-label":c("common.close","\uB2EB\uAE30"),children:"\xD7"}),t.jsxs("div",{className:"update-alert__top",children:[t.jsx("div",{className:"update-alert__icon",children:o??t.jsx(ho,{size:20,strokeWidth:2})}),t.jsxs("div",{className:"update-alert__body",children:[t.jsx("div",{className:"update-alert__title h4",children:e}),t.jsx("div",{className:"update-alert__message body-3",children:n})]})]}),r&&t.jsx(ae,{size:32,variant:"main",shape:"pill",className:"update-alert__action",onClick:r,children:u})]})}function $5({title:e,description:n,topActions:a,children:r,footerLeft:o,footerRight:s,onClick:l,draggable:c,onDragStart:u,onDragEnd:d,className:p}){const h=o!=null||s!=null,m=r!=null&&r!==!1,f=i.useCallback(C=>{l&&C.target===C.currentTarget&&(C.key==="Enter"||C.key===" ")&&(C.preventDefault(),l())},[l]);return t.jsxs("div",{className:ye("training-card",l?"training-card--clickable":"",p),onClick:l,onKeyDown:l?f:void 0,role:l?"button":void 0,tabIndex:l?0:void 0,draggable:c,onDragStart:u,onDragEnd:d,children:[t.jsxs("div",{className:"training-card__header",children:[t.jsxs("div",{className:"training-card__title-row",children:[typeof e=="string"?t.jsx("h3",{className:"training-card__title h4",children:e}):e,a!=null&&t.jsx("div",{className:"training-card__top-actions",onClick:C=>C.stopPropagation(),children:a})]}),n!=null?typeof n=="string"?t.jsx("p",{className:"training-card__description body-3",children:n}):n:t.jsx("p",{className:"training-card__description body-3","aria-hidden":"true",children:" "})]}),m&&t.jsx("div",{className:"training-card__body",children:r}),h&&t.jsxs("div",{className:"training-card__footer",children:[o!=null&&t.jsx("div",{className:"training-card__footer-left",children:o}),s!=null&&t.jsx("div",{className:"training-card__meta",children:s})]})]})}function R5({title:e,count:n,collapsed:a=!1,onToggle:r,sort:o,actions:s,empty:l=!1,emptyContent:c,dragOver:u=!1,onDragOver:d,onDragLeave:p,onDrop:h,children:m,className:f}){const{t:C}=de.useTranslation(),b=r!=null,g=ye("training-card-group",u&&"training-card-group--dragover",a&&"training-card-group--collapsed",b&&"training-card-group--collapsible",f);return t.jsxs("div",{className:g,onDragOver:d,onDragLeave:p,onDrop:h,children:[t.jsxs("header",{className:"training-card-group__header",children:[b&&t.jsx(ae,{size:40,type:"dot",variant:"transparent-gray",useBorder:!1,icon:a?"chevron-right":"chevron-down",ariaLabel:a?C("common.expand","\uD3BC\uCE58\uAE30"):C("common.collapse","\uC811\uAE30"),className:"training-card-group__chevron",onClick:r}),typeof e=="string"?t.jsx("span",{className:"training-card-group__title h5b",children:e}):e,n!==void 0&&t.jsx("span",{className:"training-card-group__count body-3b",children:n}),(o||s!=null)&&t.jsxs("span",{className:"training-card-group__actions",onClick:y=>y.stopPropagation(),children:[o&&t.jsx(zt,{size:40,options:o.options,value:o.value,placeholder:o.placeholder,onChange:o.onChange}),s]})]}),!a&&(l?t.jsx("div",{className:"training-card-group__empty body-3",children:c}):t.jsx("div",{className:"training-card-group__grid",children:m}))]})}const P5="speechear:saved_word_tables";function I5(e){if(typeof e!="object"||e===null)return!1;const n=e;return typeof n.id=="string"&&typeof n.name=="string"&&Array.isArray(n.items)}function F5(){try{const e=localStorage.getItem(P5);if(!e)return[];const n=JSON.parse(e);return Array.isArray(n)?n.filter(I5):[]}catch{return[]}}function O5({title:e,titleIcon:n,disc:a,items:r,onSaveComplete:o,onLoad:s,onRemoveItem:l,onReset:c,resetLabel:u,saveButtonLabel:d,secondarySaveButtonLabel:p,onReorder:h,showCellCount:m,onAddItem:f,className:C,renderSavePopup:b,renderWordSearch:g,hideControls:y,saveOnly:w,tableName:_,nameValue:v,onNameChange:A,descriptionValue:x,onDescriptionChange:k,namePlaceholder:T,descriptionPlaceholder:N,existingNames:D,editingName:P,onCancel:L}){const{t:j}=de.useTranslation(),R=u??j("wordPrint.clearAllSelection","\uBAA8\uB450 \uC120\uD0DD \uD574\uC81C"),M=r===void 0,z=!!A,[H,Z]=i.useState([]),J=(v??"").trim(),O=J||(T??"").trim(),S=(x??"").trim()||(N??"").trim(),$=(D??[]).map(Q=>Q.trim().toLowerCase()),F=[P?.trim().toLowerCase(),...H].filter(Q=>!!Q),V=[...$];for(const Q of F){const ke=V.indexOf(Q);ke!==-1&&V.splice(ke,1)}const X=J!==""&&V.includes(J.toLowerCase()),[I,q]=i.useState(Array(4).fill(null)),[G,le]=i.useState(4),[pe,fe]=i.useState(null),[ve,he]=i.useState("landscape"),[E,U]=i.useState(["\uC774\uBBF8\uC9C0","\uB2E8\uC5B4","\uD45C\uC900 \uBC1C\uC74C"]),[ee,_e]=i.useState("\uD45C\uC2DC"),[ue,ie]=i.useState(!0),[te,se]=i.useState(!0),De=i.useRef(null),He=i.useRef([]),[Ve,Re]=i.useState(8),[Ee,je]=i.useState("right"),[Ae,ze]=i.useState(!1),[at,ge]=i.useState(!1),{toastMessage:Pe,toastType:$e,showWarning:Ke,clearToast:Ze}=Js("warning"),Ue=i.useCallback(()=>fe(null),[fe]);f&&!M&&!m&&Fn("word-table-block-add-without-cell-count",'[WordTableBlock] \uD45C\uC2DC \uBAA8\uB4DC\uC5D0\uC11C onAddItem \uC740 showCellCount \uC640 \uD568\uAED8 \uC918\uC57C "\uCD94\uAC00\uD558\uAE30" \uCE78\uC774 \uC0DD\uAE34\uB2E4.');const[Ie,dt]=i.useState(()=>Math.max(r?.length??1,1));i.useEffect(()=>{M||dt(Q=>Math.max(Q,r?.length??1))},[r?.length,M]);const ct=M?G:m?Math.max(Ie,r?.length??1):Math.max(r?.length??0,1),{width:qe,height:st}=$n[ve],Te=!M&&!m,Me=r?.length??0,tt=Math.min(Ve,Math.max(Me,1)),Ct=Te?tt:ct,Ye=Te?Yi(r??[],Ct):null,Xe=!!Ye&&Ye.length>1,ht=M?I.some(Q=>Q!==null&&Q.length>1):(r??[]).some(Q=>Q.words.length>1),Et=_?.trim()||`${us(a0())} ${ht?j("wordTable.printFileNamePair","\uB300\uB9BD\uC30D\uD45C"):j("wordTable.printFileNameSingle","\uB2E8\uC5B4\uD45C")}`,Qe=i.useCallback(()=>Xe?He.current.filter(Q=>Q!==null):De.current?[De.current]:[],[Xe]),{print:vt,openNewWindow:Tt,downloadHtml:Zt}=Sr({getElements:Qe,paperW:qe,paperH:st,fileName:Et,onPopupBlocked:()=>{Ke(j("wordTable.popupBlocked","\uD31D\uC5C5\uC774 \uCC28\uB2E8\uB418\uC5C8\uC2B5\uB2C8\uB2E4. \uBE0C\uB77C\uC6B0\uC800 \uC124\uC815\uC5D0\uC11C \uD31D\uC5C5\uC744 \uD5C8\uC6A9\uD574 \uC8FC\uC138\uC694."))}}),on=Q=>{le(Q),q(ke=>{const Fe=Array(Q).fill(null);return ke.slice(0,Q).forEach((et,ft)=>{Fe[ft]=et}),Fe}),fe(null)},Ft=Q=>{q(ke=>{const Fe=[...ke];return Fe[Q]=null,Fe}),pe===Q&&fe(null)},Wt=Q=>{if(pe===null)return;const ke=pe;q(et=>{const ft=[...et];return ft[ke]=Q,ft});const Fe=I.findIndex((et,ft)=>ft>ke&&et===null);fe(Fe!==-1?Fe:null)},qt=M?I.some(Q=>Q?.some(ke=>!!ke.colloquialPronunciation)):(r??[]).some(Q=>Q.words.some(ke=>!!ke.colloquialLabel)),xt=i.useMemo(()=>Sn()?M?I.flatMap(Q=>(Q??[]).map(ke=>[ke.word,ke.homonum])):(r??[]).flatMap(Q=>Q.words.map(ke=>[ke.label,ke.homonum])):[],[M,I,r]),[fn,_t]=i.useState(!1);i.useEffect(()=>{if(xt.length===0)return;let Q=!1;return Promise.all(xt.map(([ke,Fe])=>ns(ke,Fe))).then(ke=>{Q||_t(ke.some(Boolean))}),()=>{Q=!0}},[xt]);const gn=xt.length>0&&fn,Yt=i.useMemo(()=>[...M||m?[{label:j("wordTable.filter.columns","\uCE78 \uC218"),items:L4.map(Q=>({value:`${Q}\uCE78`,displayLabel:j("wordTable.filter.column",{count:Q})})),display:"segmented"}]:[],...Te&&(r?.length??0)>0?[il(j,{hasPairs:ht,itemCount:Me})]:[],...Xe?[ll(j)]:[]],[j,M,m,Te,r?.length,ht,Me,Xe]),Ge={...M||m?{[j("wordTable.filter.columns","\uCE78 \uC218")]:`${M?G:Ie}\uCE78`}:{},...Te&&(r?.length??0)>0?{[j(ht?"wordTable.filter.itemsPerPagePair":"wordTable.filter.itemsPerPageWord")]:`${tt}\uAC1C`}:{},...Xe?{[j("wordTable.filter.pageNumber","\uD398\uC774\uC9C0 \uBC88\uD638")]:cl[Ee]}:{}},Mt=(Q,ke)=>{ke===j("wordTable.filter.columns","\uCE78 \uC218")?M?on(parseInt(Q)):dt(parseInt(Q)):ke===j(ht?"wordTable.filter.itemsPerPagePair":"wordTable.filter.itemsPerPageWord")?Re(parseInt(Q)):ke===j("wordTable.filter.pageNumber","\uD398\uC774\uC9C0 \uBC88\uD638")&&je(ul(Q))},wt=M?I.filter(Q=>Q!==null).map(Q=>({id:Q[0].word,words:Q.map(ke=>({label:ke.word,subLabel:ke.pronunciation,homonum:ke.homonum}))})):r??[],Xt=(Q=!1)=>{if(ge(Q),z&&o){const ke=O.trim().toLowerCase();ke&&Z(Fe=>Fe.includes(ke)?Fe:[...Fe,ke]),o(O,wt,S||void 0,Q);return}if(w&&o){o("",wt,void 0,Q);return}if(o){ze(!0);return}Zt()},[Ot,Lt]=i.useState(!1),[Ut,oe]=i.useState(""),me=Ut.trim(),Ce=me!==""&&$.includes(me.toLowerCase()),Ne=()=>{oe(O?`${O} (\uBCF5\uC0AC)`:""),Lt(!0)},Y=()=>{!me||Ce||!o||(o(me,wt,S||void 0,!0),Lt(!1))},ne=wt.length===0,be=ne||z&&(O===""||X),xe=()=>{if(ne){Ke(j("wordTable.emptyItems","\uB2E8\uC5B4\uB97C 1\uAC1C \uC774\uC0C1 \uCD94\uAC00\uD574\uC8FC\uC138\uC694."));return}if(z&&O===""){Ke(j("wordTable.save.nameRequired","\uD45C \uC774\uB984\uC744 \uC785\uB825\uD574 \uC8FC\uC138\uC694."));return}z&&X&&Ke(j("wordTable.save.duplicateName","\uC774\uBBF8 \uC0AC\uC6A9 \uC911\uC778 \uC774\uB984\uC785\uB2C8\uB2E4."))},Se=t.jsx(Rn,{items:wt,orientation:ve,contentTypes:E,cutLine:ee,showOutline:ue,showDivLine:te,count:ct});return t.jsxs(t.Fragment,{children:[t.jsxs(Mn,{type:"page",icon:n,title:e,disc:a,className:ye("word-table-block",C),children:[Ot&&t.jsx(hn,{size:"small",title:p??j("wordTable.saveAsNewButton","\uB2E4\uB978 \uC774\uB984\uC73C\uB85C \uC800\uC7A5"),onClose:()=>Lt(!1),footer:({closeWithAnimation:Q})=>t.jsxs(t.Fragment,{children:[t.jsx(ae,{size:48,type:"bar",label:j("common.cancel","\uCDE8\uC18C"),onClick:Q}),t.jsx(ae,{size:48,type:"bar",variant:"main",label:j("common.save","\uC800\uC7A5"),disabled:!me||Ce,onClick:Y})]}),children:t.jsx(kn,{label:j("wordTable.save.nameLabel","\uC774\uB984"),value:Ut,onChange:oe,placeholder:j("wordTable.save.placeholder","\uC774 \uB2E8\uC5B4\uD45C\uC5D0 \uB300\uD55C \uC81C\uBAA9\uC744 \uC785\uB825\uD558\uC138\uC694."),maxLength:40,size:48,fullWidth:!0,autoFocus:!0,onEnter:Y,error:Ce?j("wordTable.save.duplicateName","\uC774\uBBF8 \uC0AC\uC6A9 \uC911\uC778 \uC774\uB984\uC785\uB2C8\uB2E4."):void 0})}),Ae&&o&&b?.({defaultName:typeof e=="string"?e:j("wordTable.defaultName","\uB2E8\uC5B4 \uD45C"),preview:Se,previewW:qe,previewH:st,items:wt,existingNames:F5().map(Q=>Q.name),saveAsNew:at,onSave:(Q,ke)=>{o(Q,wt,ke,at),ze(!1)},onCancel:()=>ze(!1)}),(M||f)&&pe!==null&&g?.({cellIndex:pe,onConfirm:M?Wt:Q=>{if(f){const ke=Q[0];ke&&f({id:ke.word,words:[{label:ke.word,subLabel:ke.pronunciation,homonum:ke.homonum}]})}fe(null)},onClose:Ue}),!y&&t.jsx(Nr,{hasImage:gn,hasColloquial:qt,contentTypes:E,orientation:ve,showOutline:ue,cutLine:ee,showDivLine:te,setters:{setContentTypes:U,setOrientation:he,setShowOutline:ie,setCutLine:_e,setShowDivLine:se},showCutLine:(Te?Ct:ct)>1,showDivLine2:ht,middleSections:Yt,extraSelected:Ge,onExtraSelect:Mt}),Xe&&Ye?t.jsx("div",{className:"word-table-block__pages",children:Ye.map((Q,ke)=>t.jsx(Rn,{orientation:ve,contentTypes:E,cutLine:ee,showOutline:ue,showDivLine:te,count:Ct,items:Q,onRemoveItem:l,contentRef:Fe=>{He.current[ke]=Fe},pageNumber:{current:ke+1,total:Ye.length},pageNumberPosition:Ee},ke))}):t.jsx(Rn,{orientation:ve,contentTypes:E,cutLine:ee,showOutline:ue,showDivLine:te,count:ct,items:M?void 0:r??[],editCells:M?I:void 0,activeCell:pe,onActivateCell:M||f?fe:void 0,onRemoveCell:M?Ft:void 0,onRemoveItem:M?void 0:l,onReorder:M?void 0:h,showFillerAdd:!!f,contentRef:De}),z&&!y&&t.jsxs(Da,{size:"medium",labelWidth:64,useBorder:!1,useRowBorder:!1,className:"word-table-block__meta",children:[t.jsx(mn,{variant:"custom",label:j("wordTable.save.nameLabel","\uC774\uB984"),required:!0,align:"vertical",useFullWidth:!0,children:t.jsx(kn,{required:!0,value:v??"",onChange:A,placeholder:T?T+j("wordTable.save.autoFillHint"," (Tab \uB610\uB294 space \uC785\uB825\uC2DC \uC790\uB3D9 \uC785\uB825)"):j("wordTable.save.placeholder","\uC774 \uB2E8\uC5B4\uD45C\uC5D0 \uB300\uD55C \uC81C\uBAA9\uC744 \uC785\uB825\uD558\uC138\uC694."),ariaLabel:j("wordTable.save.nameLabel","\uC774\uB984"),maxLength:40,size:48,fullWidth:!0,error:X?j("wordTable.save.duplicateName","\uC774\uBBF8 \uC0AC\uC6A9 \uC911\uC778 \uC774\uB984\uC785\uB2C8\uB2E4."):void 0,onKeyDown:Q=>{(Q.key==="Tab"&&!Q.shiftKey||Q.key===" ")&&!(v??"").trim()&&(T??"").trim()&&(Q.preventDefault(),A?.(T??""))}})}),t.jsx(mn,{variant:"custom",label:j("wordTable.save.descriptionLabel","\uC124\uBA85"),align:"vertical",useFullWidth:!0,children:t.jsx(kn,{value:x??"",onChange:k,placeholder:N?N+j("wordTable.save.autoFillHint"," (Tab \uB610\uB294 space \uC785\uB825\uC2DC \uC790\uB3D9 \uC785\uB825)"):j("wordTable.save.descriptionPlaceholder","\uC774 \uB2E8\uC5B4\uD45C\uC5D0 \uB300\uD55C \uC124\uBA85\uC744 \uC785\uB825\uD558\uC138\uC694."),ariaLabel:j("wordTable.save.descriptionLabel","\uC124\uBA85"),maxLength:200,multiline:!0,rows:2,fullWidth:!0,onKeyDown:Q=>{(Q.key==="Tab"&&!Q.shiftKey||Q.key===" ")&&!(x??"").trim()&&(N??"").trim()&&(Q.preventDefault(),k?.(N??""))}})})]})]}),!y&&t.jsxs("div",{className:"word-table-block__actions",children:[t.jsxs("div",{className:"word-table-block__actions-left",children:[!w&&c&&t.jsx(ae,{size:40,type:"bar",label:R,onClick:c}),!w&&s&&t.jsx(ae,{size:40,type:"bar",label:j("wordTable.load","\uBD88\uB7EC\uC624\uAE30"),onClick:s}),!w&&t.jsx(ae,{size:40,type:"bar",label:j("wordTable.openNewWindow","\uC0C8 \uCC3D\uC73C\uB85C \uBCF4\uAE30"),onClick:Tt})]}),t.jsxs("div",{className:"word-table-block__actions-right",children:[L&&t.jsx(ae,{size:"56",type:"bar",label:j("common.cancel","\uCDE8\uC18C"),onClick:L}),!w&&t.jsx(ae,{size:"56",type:"bar",label:j("wordTable.print","\uC778\uC1C4\uD558\uAE30"),onClick:vt}),p&&t.jsx(ae,{size:"56",type:"bar",label:p,onClick:()=>z?Ne():Xt(!0),disabled:ne,onDisabledClick:()=>{Ke(j("wordTable.emptyItems","\uB2E8\uC5B4\uB97C 1\uAC1C \uC774\uC0C1 \uCD94\uAC00\uD574\uC8FC\uC138\uC694."))}}),t.jsx(ae,{size:"56",type:"bar",variant:"main",label:d??j("wordTable.saveButton","\uC800\uC7A5\uD558\uAE30"),onClick:()=>Xt(!1),disabled:be,onDisabledClick:xe})]})]}),t.jsx(Tn,{message:Pe,type:$e,onClose:Ze})]})}function Yl({items:e,className:n}){const a=e.length,r=a<=3?1:2,o=Math.ceil(a/r)||1,s=r*o;return t.jsx("div",{className:ye("word-table-thumb",n),style:{gridTemplateColumns:`repeat(${r}, 1fr)`},children:Array.from({length:s},(l,c)=>{const u=e[c];return u?t.jsx("div",{className:"word-table-thumb__cell",children:(u.words.length?u.words:[{label:u.id}]).map((d,p)=>t.jsxs(i.Fragment,{children:[p>0&&t.jsx("span",{className:"word-table-thumb__divider"}),t.jsx("span",{className:"word-table-thumb__word body-3",children:d.label})]},p))},c):t.jsx("div",{className:"word-table-thumb__cell word-table-thumb__cell--empty"},c)})})}function H5({items:e,name:n,description:a,createdAt:r,published:o,publishedLabel:s,shared:l,sharedLabel:c,isNew:u,publisherName:d,publishedAt:p,likeCount:h,downloadCount:m,onPublisherClick:f,selected:C,onClick:b,onMore:g,titleNode:y,className:w}){const{t:_}=de.useTranslation(),v=y!=null,A=d!=null||p!=null||h!=null||m!=null,x=k=>{!v&&(k.key==="Enter"||k.key===" ")&&(k.preventDefault(),b?.())};return t.jsxs("div",{className:ye("word-table-button",C?"word-table-button--selected":"",A?"":"word-table-button--no-footer",w),role:"button",tabIndex:0,"aria-label":n,onClick:v?void 0:b,onKeyDown:x,children:[u&&t.jsx("span",{className:"word-table-button__new-dot","aria-label":_("myWordTable.newBadge","\uC0C8\uB85C \uB9CC\uB4E0 \uD45C")}),t.jsx(Yl,{items:e,className:"word-table-button__thumb"}),t.jsxs("div",{className:"word-table-button__info",children:[t.jsxs("div",{className:"word-table-button__info-text",children:[y??t.jsx("div",{className:"word-table-button__title h4",children:n}),a&&t.jsx("div",{className:"word-table-button__desc body-3",children:a})]}),g&&!v&&t.jsx(ae,{className:"word-table-button__more",size:32,type:"dot",variant:"transparent-gray",useBorder:!1,icon:"ellipsis",ariaLabel:_("common.moreFor",{name:n}),onClick:k=>{k.stopPropagation(),g(k)}})]}),(r||o||l)&&t.jsxs("div",{className:"word-table-button__meta-row",children:[t.jsx("span",{className:"word-table-button__meta caption-1",children:r?cs(r,_):""}),t.jsxs("span",{className:"word-table-button__badges",children:[o&&t.jsx(ot,{className:"word-table-button__badge",size:"small",variant:"main",fill:"soft",iconLeft:"book-marked",label:s??_("myWordTable.publishedBadge","\uBC1C\uD589\uB428")}),l&&t.jsx(ot,{className:"word-table-button__badge",size:"small",fill:"soft",iconLeft:"link",label:c??_("myWordTable.sharedBadge","\uACF5\uC720 \uC911")})]})]}),A&&t.jsxs("div",{className:"word-table-button__footer",children:[t.jsxs("span",{className:"word-table-button__store-by",children:[d&&t.jsx("button",{className:"training-card__publisher body-4",type:"button",onClick:k=>{k.stopPropagation(),f?.()},children:d}),p&&t.jsx("span",{className:"training-card__date body-4",children:cs(p,_)})]}),t.jsxs("span",{className:"word-table-button__store-stats",children:[h!=null&&t.jsx(ot,{size:"small",fill:"soft",variant:"like",iconLeft:"heart",label:String(h)}),m!=null&&t.jsx(ot,{size:"small",fill:"soft",variant:"main",iconLeft:"download",label:String(m)})]})]})]})}/**
|
|
969
969
|
* @license lucide-react v1.38.0 - ISC
|
|
970
970
|
*
|
|
971
971
|
* This source code is licensed under the ISC license.
|
|
972
972
|
* See the LICENSE file in the root directory of this source tree.
|
|
973
|
-
*/const
|
|
973
|
+
*/const V5=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",key:"1xmnt7"}]],z5=K("image",V5);/**
|
|
974
974
|
* @license lucide-react v1.38.0 - ISC
|
|
975
975
|
*
|
|
976
976
|
* This source code is licensed under the ISC license.
|
|
977
977
|
* See the LICENSE file in the root directory of this source tree.
|
|
978
|
-
*/const z5=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]],W5=G("circle-x",z5);function q5(e){return{idle:0,"word-download":1,"image-list":2,"image-match":2,"pair-build":3,done:4}[e]??0}function Yr({icon:e,label:n,state:a,pct:r,subText:o}){const{t:s}=de.useTranslation(),l=a==="done",c=a==="pending",u=a==="error",d=l?100:r??0;return t.jsxs("div",{className:"wdup-phase-card",children:[t.jsx("div",{className:`wdup-phase-card__icon${l?" wdup-phase-card__icon--done":u?" wdup-phase-card__icon--error":""}`,children:l?t.jsx(go,{size:22,color:"white",strokeWidth:2.5}):u?t.jsx(W5,{size:22,color:"white",strokeWidth:2.5}):t.jsx("span",{className:`wdup-phase-card__icon-inner${c?" wdup-phase-card__icon-inner--pending":""}`,children:e})}),t.jsxs("div",{className:"wdup-phase-card__body",children:[t.jsxs("div",{className:"wdup-phase-card__top",children:[t.jsx("span",{className:`wdup-phase-card__label body-2${c?" wdup-phase-card__label--pending":""}`,children:n}),l?t.jsx(lt,{variant:"sub",fill:"soft",size:"small",label:s("common.done","\uC644\uB8CC")}):u?t.jsx(lt,{variant:"danger",fill:"soft",size:"small",label:s("common.failed","\uC2E4\uD328")}):(o||r!==void 0)&&t.jsxs("span",{className:"wdup-phase-card__sub body-3",children:[o,o&&r!==void 0?` \xB7 ${r}%`:r!==void 0?`${r}%`:""]})]}),!c&&t.jsx("div",{className:"wdup-bar",children:t.jsx("div",{className:`wdup-bar__fill${l?" wdup-bar__fill--done":u?" wdup-bar__fill--error":""}${a==="active"&&r===void 0?" wdup-bar__fill--indeterminate":""}`,style:{width:r!==void 0||l||u?`${u?100:d}%`:void 0}})})]})]})}function U5({title:e,progress:n,onDone:a,onRetry:r,onClose:o,inline:s}){const{t:l}=de.useTranslation(),{phase:c,error:u,wordCount:d,imagePage:p,imageDone:h,imageTotal:m,pairPercent:C}=n,f=q5(c),b=c==="done",g=!!u;function y(k){return g&&f===k?"error":f>k?"done":f===k?"active":"pending"}const w=y(1),_=y(2),v=y(3),A=c==="image-match"&&m?Math.round((h??0)/m*100):void 0,x=i.useMemo(()=>{if(_!=="done"){if(c==="image-list")return l("wordData.checkingPage",{page:p??1});if(c==="image-match"&&m)return l("wordData.imageCount",{done:er(h),total:er(m)})}},[_,c,p,m,h,l]);return t.jsx(hn,{inline:s,className:"popup--word-data-update",title:e,footer:g&&r?t.jsx(ae,{size:56,variant:"main",onClick:r,children:l("common.retry","\uB2E4\uC2DC \uC2DC\uB3C4")}):g?t.jsx(ae,{size:56,variant:"main",onClick:o??a,children:l("common.close","\uB2EB\uAE30")}):t.jsx(ae,{size:56,variant:"main",disabled:!b,onClick:a,children:l("common.done","\uC644\uB8CC")}),children:t.jsxs("div",{className:"wdup-cards",children:[t.jsx(Yr,{icon:t.jsx(po,{size:22,color:"var(--color-main, #29b6c8)",strokeWidth:1.8}),label:l("wordData.phaseWordDownload","\uB2E8\uC5B4 \uB370\uC774\uD130 \uB2E4\uC6B4\uB85C\uB4DC"),state:w,subText:w==="active"?l("wordData.downloadingCount",{n:er(d)}):void 0}),t.jsx(Yr,{icon:t.jsx(V5,{size:22,color:"var(--color-main, #29b6c8)",strokeWidth:1.8}),label:l("wordData.phaseImageCheck","\uC774\uBBF8\uC9C0 \uD655\uC778"),state:_,pct:A,subText:x}),t.jsx(Yr,{icon:t.jsx(fo,{size:22,color:"var(--color-main, #29b6c8)",strokeWidth:1.8}),label:l("wordData.phasePairAnalysis","\uB2E8\uC5B4\uC30D \uBD84\uC11D"),state:v,pct:v==="active"?C??0:void 0,subText:void 0})]})})}function G5({enabled:e=!1,renderResultPopup:n}={}){const{t:a}=de.useTranslation(),[r,o]=i.useState(null),[s,l]=i.useState(null),c=C=>{let f=null;C==="noise"?f={score:3,contextsLength:5,results:[{sentence:"\uBB38\uC7A5 A",judgement:!0,wording:"\uC798 \uB4E4\uB9BC",useAnswer:!1},{sentence:"\uBB38\uC7A5 B",judgement:!1,wording:"\uC548 \uB4E4\uB9BC",useAnswer:!1},{sentence:"\uBB38\uC7A5 C",judgement:!0,wording:"\uC798 \uB4E4\uB9BC",useAnswer:!1},{sentence:"\uBB38\uC7A5 D",judgement:null,wording:"\uC548 \uD568",useAnswer:!1},{sentence:"\uBB38\uC7A5 E",judgement:!1,wording:"\uC548 \uB4E4\uB9BC",useAnswer:!1}]}:C==="short"?f={score:2,contextsLength:3,results:[{sentence:"\uBE44\uBE54\uBC25 \uC124\uBA85",answer:"\uBE44\uBE54\uBC25",selected:"\uBE44\uBE54\uBC25",selectedText:"\uBE44\uBE54\uBC25",correct:!0},{sentence:"\uBCF4\uC308 \uC124\uBA85",answer:"\uBCF4\uC308",selected:"\uC871\uBC1C",selectedText:"\uC871\uBC1C",correct:!1},{sentence:"\uCE7C\uAD6D\uC218 \uC124\uBA85",answer:"\uCE7C\uAD6D\uC218",selected:void 0,selectedText:void 0,correct:void 0}]}:C==="long"?f={score:4,contextsLength:4,results:[{sentence:"\uAE34 \uC774\uC57C\uAE30 1",answer:"\uC815\uB2F5 \uD14D\uC2A4\uD2B8 1",selectedText:"\uC815\uB2F5 \uD14D\uC2A4\uD2B8 1",correct:!0},{sentence:"\uAE34 \uC774\uC57C\uAE30 2",answer:"\uC815\uB2F5 \uD14D\uC2A4\uD2B8 2",selectedText:"\uC120\uD0DD \uD14D\uC2A4\uD2B8 2",correct:!1},{sentence:"\uAE34 \uC774\uC57C\uAE30 3",answer:"\uC815\uB2F5 \uD14D\uC2A4\uD2B8 3",selectedText:void 0,correct:void 0},{sentence:"\uAE34 \uC774\uC57C\uAE30 4",answer:"\uC815\uB2F5 \uD14D\uC2A4\uD2B8 4",selectedText:"\uC815\uB2F5 \uD14D\uC2A4\uD2B8 4",correct:!0}]}:C==="order"&&(f={score:1,contextsLength:2,results:[{sentence:"\uC21C\uC11C \uBB38\uC81C 1",answer:"1,2,3",selectedText:"1,2,3",correct:!0},{sentence:"\uC21C\uC11C \uBB38\uC81C 2",answer:"A,B,C",selectedText:"B,A,C",correct:!1}]}),l(f),o(C)},u=i.useCallback(()=>{o(null),l(null)},[]),d=i.useCallback(()=>c("noise"),[]),p=i.useCallback(()=>c("short"),[]),h=i.useCallback(()=>c("long"),[]),m=i.useCallback(()=>c("order"),[]);return e?t.jsxs("div",{className:"debug-result-launcher",children:[t.jsxs("div",{className:"debug-buttons",children:[t.jsx("button",{type:"button",className:"debug-button",onClick:d,children:a("debug.showResult",{type:"Noise",defaultValue:"{{type}} \uACB0\uACFC\uBCF4\uAE30"})}),t.jsx("button",{type:"button",className:"debug-button",onClick:p,children:a("debug.showResult",{type:"ShortStory",defaultValue:"{{type}} \uACB0\uACFC\uBCF4\uAE30"})}),t.jsx("button",{type:"button",className:"debug-button",onClick:h,children:a("debug.showResult",{type:"LongStory",defaultValue:"{{type}} \uACB0\uACFC\uBCF4\uAE30"})}),t.jsx("button",{type:"button",className:"debug-button",onClick:m,children:a("debug.showResult",{type:"Order",defaultValue:"{{type}} \uACB0\uACFC\uBCF4\uAE30"})})]}),r&&s?n?.({score:s.score,contextsLength:s.contextsLength,results:s.results,onReplay:u,onClose:u}):null]}):null}exports.Accordion=F0,exports.ActionCard=b0,exports.Alert=rg,exports.AppHeader=U0,exports.AudioMeter=br,exports.AudioPlayer=Ir,exports.Avatar=dg,exports.Badge=lt,exports.BarChart=Gg,exports.BarChartControls=Di,exports.Board=wg,exports.BottomNav=ei,exports.BrandIdentity=ai,exports.Breadcrumb=mg,exports.BulkBar=$g,exports.Button=ae,exports.CORE_VERSION=h0,exports.Calendar=c4,exports.CardStep=Hl,exports.ChartLegend=mr,exports.ChartSection=fr,exports.ChartTotal=ba,exports.Checkbox=ki,exports.ChoiceChips=ub,exports.CircleBadge=eg,exports.CodeBox=Lg,exports.ColorPicker=yg,exports.CompanyMeta=Dg,exports.ConfirmPopup=g5,exports.ConfirmStep=Il,exports.ConfirmWithTextStep=Fl,exports.ContrastFilterPanel=f5,exports.CoreScope=y0,exports.CountTile=vg,exports.CouponInputPopup=b5,exports.DEFAULT_NOISE_SETTINGS=ka,exports.DatePicker=Fg,exports.DebugResultLauncher=G5,exports.DescriptionTooltip=_n,exports.DeviceSideTable=s4,exports.Dialog=_g,exports.Divider=tg,exports.Dropdown=zt,exports.EffectPartyPopper=Gl,exports.EffectPartyPopperHost=k5,exports.EmptyState=C0,exports.ErrorState=g0,exports.FILTER_ALL_VALUE=Kt,exports.FileUpload=hg,exports.FilterPanel=rn,exports.FilterSectionInfo=ea,exports.Footer=db,exports.Header=ri,exports.Icon=Oe,exports.IconGridMenu=cb,exports.IconRenderer=Oe,exports.InfoTooltip=dn,exports.LEVEL_MAX=Pn,exports.LandingBottomSticky=hb,exports.LandingHeader=pb,exports.ListPopup=C5,exports.ListenStep=Pl,exports.Loader=ta,exports.MARKS=Wi,exports.MARK_ICON=Ui,exports.MARK_VARIANT=Gi,exports.MediaQueryOverrideContext=qs,exports.MenuTooltip=Ca,exports.NOISE_RATIO_MAX=_a,exports.NOISE_RATIO_STEP=fl,exports.NoisePlayerContext=Lr,exports.NoiseSettingsTooltip=El,exports.NoticeBox=v0,exports.OrderListStep=Ol,exports.PASS_CARD_BG_VARS=wn,exports.POS_LABEL=Yi,exports.PROMO_BANNER_BG_COMPONENTS=zs,exports.PROMO_BANNER_BG_OPTIONS=x0,exports.PROMO_BANNER_BG_VARS=Yn,exports.Page=Da,exports.PageTitle=A5,exports.Pagination=ga,exports.Panel=Sa,exports.PanelGrid=Ob,exports.PanelRow=mn,exports.PanelRowDevice=Fb,exports.PassCard=Ci,exports.PassCardBg=YC,exports.PassCardBgIHAB=XC,exports.PassCardBgLeftColorGrid=JC,exports.PassCardBgTwoCircle=pi,exports.PaymentPlan=ZC,exports.PersonCard=kg,exports.PhonemeFilterPanel=m5,exports.PhonemeSelectBlock=p5,exports.Popup=hn,exports.ProgressBar=e4,exports.ProgressIndicator=Ri,exports.PromoBanner=R0,exports.PromoBannerBgDark=Ss,exports.PromoBannerBgDeep=_s,exports.PromoBannerBgDiagonal=Ts,exports.PromoBannerBgDots=Ls,exports.PromoBannerBgInstagram=Vs,exports.PromoBannerBgMain=Cs,exports.PromoBannerBgNaver=Os,exports.PromoBannerBgOutline=Rs,exports.PromoBannerBgRadial=js,exports.PromoBannerBgSoft=bs,exports.PromoBannerBgSoftSub=ks,exports.PromoBannerBgSub=vs,exports.PromoBannerBgSuccess=Is,exports.PromoBannerBgWarm=Ns,exports.PublicationCard=Ng,exports.Radio=vi,exports.RadioGroup=ng,exports.Rating=Cg,exports.ReportDocument=E5,exports.ReportInfoPanel=T5,exports.RingChart=Zg,exports.SENTENCE_TRAINING_TYPES=jr,exports.SearchSummary=ig,exports.Section=Mn,exports.SectionHeader=Sg,exports.SegmentedControl=An,exports.ShortcutBadge=yi,exports.SideNav=ni,exports.Slider=Mi,exports.SoundCompass=QC,exports.SplashLogo=Bg,exports.StatChart=Yg,exports.SummaryStrip=D5,exports.TRAINING_TOOLTIP_HOVER_DELAY_MS=y5,exports.Table=vr,exports.TableFilterPanel=Nr,exports.Tabs=lg,exports.TextBoxTooltip=Ba,exports.TextField=kn,exports.Timeline=Ag,exports.Toast=Tn,exports.Toggle=wi,exports.Toolbar=hr,exports.Tooltip=un,exports.TooltipInfo=dn,exports.TooltipTextBox=Ba,exports.TopBanner=P0,exports.TrainingBlock=m4,exports.TrainingBlockButton=xr,exports.TrainingCard=L5,exports.TrainingCardGroup=$5,exports.TrainingPagePopup=fn,exports.TrainingPagePopupBottom=Tl,exports.TrainingPagePopupTitle=Ml,exports.TrainingResultPopup=zl,exports.TrainingStep=Nn,exports.TrainingStepAudioPlayer=Ir,exports.TrainingStepBullet=kl,exports.TrainingStepCard=Bl,exports.TrainingStepConfirm=Or,exports.TrainingStepConfirmWithText=Hr,exports.TrainingStepListen=Vr,exports.TrainingStepOrderList=zr,exports.TrainingStepTextBox=Nl,exports.TrainingStepTitle=Al,exports.TrainingTooltip=x5,exports.TrainingWordCard=wr,exports.UpdateAlert=M5,exports.WAVE_A_MAX=_b,exports.WAVE_H1_PX=xl,exports.WAVE_HMAX_PX=xb,exports.WORD_TABLE_PAPER=$n,exports.WORD_TYPE_LABEL=Xi,exports.WordDataProvider=S5,exports.WordDataUpdatePopup=U5,exports.WordImageTooltip=ql,exports.WordSearchFilterPanel=h5,exports.WordSearchResultBlock=u5,exports.WordTable=Rn,exports.WordTableBlock=F5,exports.WordTableButton=O5,exports.WordTablePopup=P4,exports.WordTableThumbnail=Zl,exports.buildMonthChartData=Hg,exports.cellLabel=V4,exports.cellsForLabels=tb,exports.clearPassCardBgTheme=nn,exports.clearPromoBannerBgTheme=yt,exports.closeTrainingPopup=qb,exports.companyTypeLabel=N5,exports.createTrainingScenario=Kb,exports.cx=ye,exports.deriveNoiseContexts=e5,exports.derivePassCard=ci,exports.draftValues=ib,exports.effectiveNoiseVolume=Tr,exports.effectiveSpeechVolume=bl,exports.expandSlashLabel=Ar,exports.formatDuration=nb,exports.getControlDateRange=Kg,exports.getPayloadTimestamp=Ur,exports.getPromoBannerBgTheme=ar,exports.getSelectedFromPayload=Yb,exports.getSelectedText=Xb,exports.getStepPayload=$l,exports.getSteppedPayload=Jb,exports.injectPassCardBgTheme=tn,exports.injectPromoBannerBgTheme=bt,exports.isSelectionCorrect=Qb,exports.labelsForSave=H4,exports.levelToPct=mb,exports.markAfterClick=qi,exports.marksForSave=kr,exports.mergeNoiseSettings=wa,exports.missesByType=X4,exports.nextFocus=K4,exports.nextMisses=Y4,exports.noiseElementVolume=Mr,exports.noiseRatioOf=ra,exports.pageStartIndexes=Ki,exports.passCardBgIhabTheme=gi,exports.passCardBgLeftColorGridTheme=bi,exports.passCardBgTwoCircleTheme=di,exports.pctToLevel=fb,exports.printWordTable=w4,exports.promoBannerBgDarkTheme=Bs,exports.promoBannerBgDeepTheme=xs,exports.promoBannerBgDiagonalTheme=Es,exports.promoBannerBgDotsTheme=Ms,exports.promoBannerBgInstagramTheme=Hs,exports.promoBannerBgMainTheme=fs,exports.promoBannerBgNaverTheme=Fs,exports.promoBannerBgOutlineTheme=$s,exports.promoBannerBgRadialTheme=Ds,exports.promoBannerBgSoftSubTheme=ws,exports.promoBannerBgSoftTheme=gs,exports.promoBannerBgSubTheme=ys,exports.promoBannerBgSuccessTheme=Ps,exports.promoBannerBgWarmTheme=As,exports.recommendTables=Q4,exports.regenerateUnpinned=sb,exports.removeItem=ob,exports.resolveTrainingItems=Gb,exports.resolveTrainingPopupMeta=Ll,exports.reviewCells=F4,exports.reviewSetPlan=J4,exports.reviewTableName=O4,exports.scoreKey=va,exports.scoreSheetHeader=z4,exports.shouldConfirmDiscard=_4,exports.splitTrainingVariants=Ub,exports.summarize=x4,exports.summarizeMisses=Z4,exports.tableTrends=G4,exports.toDraft=ab,exports.toTrainingText=Zb,exports.togglePin=rb,exports.uncoveredLabels=eb,exports.useAnchoredMenu=Xn,exports.useBarChartControl=Si,exports.useCalendarMonth=Ai,exports.useComboboxSuggestions=xi,exports.useFitScale=Qi,exports.useNoisePlayer=Aa,exports.useSoundCompassExam=$0,exports.useToastLifecycle=$i,exports.useWordData=B5,exports.useWordTableDisplaySettings=hl,exports.useWordTablePrint=Dr,exports.waveBarPx=oa,exports.waveBarVal=Rr,exports.weakItems=U4;
|
|
978
|
+
*/const W5=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]],q5=K("circle-x",W5);function U5(e){return{idle:0,"word-download":1,"image-list":2,"image-match":2,"pair-build":3,done:4}[e]??0}function Yr({icon:e,label:n,state:a,pct:r,subText:o}){const{t:s}=de.useTranslation(),l=a==="done",c=a==="pending",u=a==="error",d=l?100:r??0;return t.jsxs("div",{className:"wdup-phase-card",children:[t.jsx("div",{className:`wdup-phase-card__icon${l?" wdup-phase-card__icon--done":u?" wdup-phase-card__icon--error":""}`,children:l?t.jsx(go,{size:22,color:"white",strokeWidth:2.5}):u?t.jsx(q5,{size:22,color:"white",strokeWidth:2.5}):t.jsx("span",{className:`wdup-phase-card__icon-inner${c?" wdup-phase-card__icon-inner--pending":""}`,children:e})}),t.jsxs("div",{className:"wdup-phase-card__body",children:[t.jsxs("div",{className:"wdup-phase-card__top",children:[t.jsx("span",{className:`wdup-phase-card__label body-2${c?" wdup-phase-card__label--pending":""}`,children:n}),l?t.jsx(ot,{variant:"sub",fill:"soft",size:"small",label:s("common.done","\uC644\uB8CC")}):u?t.jsx(ot,{variant:"danger",fill:"soft",size:"small",label:s("common.failed","\uC2E4\uD328")}):(o||r!==void 0)&&t.jsxs("span",{className:"wdup-phase-card__sub body-3",children:[o,o&&r!==void 0?` \xB7 ${r}%`:r!==void 0?`${r}%`:""]})]}),!c&&t.jsx("div",{className:"wdup-bar",children:t.jsx("div",{className:`wdup-bar__fill${l?" wdup-bar__fill--done":u?" wdup-bar__fill--error":""}${a==="active"&&r===void 0?" wdup-bar__fill--indeterminate":""}`,style:{width:r!==void 0||l||u?`${u?100:d}%`:void 0}})})]})]})}function G5({title:e,progress:n,onDone:a,onRetry:r,onClose:o,inline:s}){const{t:l}=de.useTranslation(),{phase:c,error:u,wordCount:d,imagePage:p,imageDone:h,imageTotal:m,pairPercent:f}=n,C=U5(c),b=c==="done",g=!!u;function y(k){return g&&C===k?"error":C>k?"done":C===k?"active":"pending"}const w=y(1),_=y(2),v=y(3),A=c==="image-match"&&m?Math.round((h??0)/m*100):void 0,x=i.useMemo(()=>{if(_!=="done"){if(c==="image-list")return l("wordData.checkingPage",{page:p??1});if(c==="image-match"&&m)return l("wordData.imageCount",{done:er(h),total:er(m)})}},[_,c,p,m,h,l]);return t.jsx(hn,{inline:s,className:"popup--word-data-update",title:e,footer:g&&r?t.jsx(ae,{size:56,variant:"main",onClick:r,children:l("common.retry","\uB2E4\uC2DC \uC2DC\uB3C4")}):g?t.jsx(ae,{size:56,variant:"main",onClick:o??a,children:l("common.close","\uB2EB\uAE30")}):t.jsx(ae,{size:56,variant:"main",disabled:!b,onClick:a,children:l("common.done","\uC644\uB8CC")}),children:t.jsxs("div",{className:"wdup-cards",children:[t.jsx(Yr,{icon:t.jsx(po,{size:22,color:"var(--color-main, #29b6c8)",strokeWidth:1.8}),label:l("wordData.phaseWordDownload","\uB2E8\uC5B4 \uB370\uC774\uD130 \uB2E4\uC6B4\uB85C\uB4DC"),state:w,subText:w==="active"?l("wordData.downloadingCount",{n:er(d)}):void 0}),t.jsx(Yr,{icon:t.jsx(z5,{size:22,color:"var(--color-main, #29b6c8)",strokeWidth:1.8}),label:l("wordData.phaseImageCheck","\uC774\uBBF8\uC9C0 \uD655\uC778"),state:_,pct:A,subText:x}),t.jsx(Yr,{icon:t.jsx(Co,{size:22,color:"var(--color-main, #29b6c8)",strokeWidth:1.8}),label:l("wordData.phasePairAnalysis","\uB2E8\uC5B4\uC30D \uBD84\uC11D"),state:v,pct:v==="active"?f??0:void 0,subText:void 0})]})})}function K5({enabled:e=!1,renderResultPopup:n}={}){const{t:a}=de.useTranslation(),[r,o]=i.useState(null),[s,l]=i.useState(null),c=f=>{let C=null;f==="noise"?C={score:3,contextsLength:5,results:[{sentence:"\uBB38\uC7A5 A",judgement:!0,wording:"\uC798 \uB4E4\uB9BC",useAnswer:!1},{sentence:"\uBB38\uC7A5 B",judgement:!1,wording:"\uC548 \uB4E4\uB9BC",useAnswer:!1},{sentence:"\uBB38\uC7A5 C",judgement:!0,wording:"\uC798 \uB4E4\uB9BC",useAnswer:!1},{sentence:"\uBB38\uC7A5 D",judgement:null,wording:"\uC548 \uD568",useAnswer:!1},{sentence:"\uBB38\uC7A5 E",judgement:!1,wording:"\uC548 \uB4E4\uB9BC",useAnswer:!1}]}:f==="short"?C={score:2,contextsLength:3,results:[{sentence:"\uBE44\uBE54\uBC25 \uC124\uBA85",answer:"\uBE44\uBE54\uBC25",selected:"\uBE44\uBE54\uBC25",selectedText:"\uBE44\uBE54\uBC25",correct:!0},{sentence:"\uBCF4\uC308 \uC124\uBA85",answer:"\uBCF4\uC308",selected:"\uC871\uBC1C",selectedText:"\uC871\uBC1C",correct:!1},{sentence:"\uCE7C\uAD6D\uC218 \uC124\uBA85",answer:"\uCE7C\uAD6D\uC218",selected:void 0,selectedText:void 0,correct:void 0}]}:f==="long"?C={score:4,contextsLength:4,results:[{sentence:"\uAE34 \uC774\uC57C\uAE30 1",answer:"\uC815\uB2F5 \uD14D\uC2A4\uD2B8 1",selectedText:"\uC815\uB2F5 \uD14D\uC2A4\uD2B8 1",correct:!0},{sentence:"\uAE34 \uC774\uC57C\uAE30 2",answer:"\uC815\uB2F5 \uD14D\uC2A4\uD2B8 2",selectedText:"\uC120\uD0DD \uD14D\uC2A4\uD2B8 2",correct:!1},{sentence:"\uAE34 \uC774\uC57C\uAE30 3",answer:"\uC815\uB2F5 \uD14D\uC2A4\uD2B8 3",selectedText:void 0,correct:void 0},{sentence:"\uAE34 \uC774\uC57C\uAE30 4",answer:"\uC815\uB2F5 \uD14D\uC2A4\uD2B8 4",selectedText:"\uC815\uB2F5 \uD14D\uC2A4\uD2B8 4",correct:!0}]}:f==="order"&&(C={score:1,contextsLength:2,results:[{sentence:"\uC21C\uC11C \uBB38\uC81C 1",answer:"1,2,3",selectedText:"1,2,3",correct:!0},{sentence:"\uC21C\uC11C \uBB38\uC81C 2",answer:"A,B,C",selectedText:"B,A,C",correct:!1}]}),l(C),o(f)},u=i.useCallback(()=>{o(null),l(null)},[]),d=i.useCallback(()=>c("noise"),[]),p=i.useCallback(()=>c("short"),[]),h=i.useCallback(()=>c("long"),[]),m=i.useCallback(()=>c("order"),[]);return e?t.jsxs("div",{className:"debug-result-launcher",children:[t.jsxs("div",{className:"debug-buttons",children:[t.jsx("button",{type:"button",className:"debug-button",onClick:d,children:a("debug.showResult",{type:"Noise",defaultValue:"{{type}} \uACB0\uACFC\uBCF4\uAE30"})}),t.jsx("button",{type:"button",className:"debug-button",onClick:p,children:a("debug.showResult",{type:"ShortStory",defaultValue:"{{type}} \uACB0\uACFC\uBCF4\uAE30"})}),t.jsx("button",{type:"button",className:"debug-button",onClick:h,children:a("debug.showResult",{type:"LongStory",defaultValue:"{{type}} \uACB0\uACFC\uBCF4\uAE30"})}),t.jsx("button",{type:"button",className:"debug-button",onClick:m,children:a("debug.showResult",{type:"Order",defaultValue:"{{type}} \uACB0\uACFC\uBCF4\uAE30"})})]}),r&&s?n?.({score:s.score,contextsLength:s.contextsLength,results:s.results,onReplay:u,onClose:u}):null]}):null}exports.Accordion=O0,exports.ActionCard=y0,exports.Alert=og,exports.AppHeader=G0,exports.AudioMeter=br,exports.AudioPlayer=Ir,exports.Avatar=pg,exports.Badge=ot,exports.BarChart=Kg,exports.BarChartControls=ji,exports.Board=kg,exports.BottomNav=ti,exports.BrandIdentity=ri,exports.Breadcrumb=Cg,exports.BulkBar=Rg,exports.Button=ae,exports.CORE_VERSION=m0,exports.Calendar=u4,exports.CardStep=Vl,exports.ChartLegend=mr,exports.ChartSection=Cr,exports.ChartTotal=ba,exports.Checkbox=Ai,exports.ChoiceChips=db,exports.CircleBadge=tg,exports.CodeBox=$g,exports.ColorPicker=vg,exports.CompanyMeta=jg,exports.ConfirmPopup=b5,exports.ConfirmStep=Fl,exports.ConfirmWithTextStep=Ol,exports.ContrastFilterPanel=f5,exports.CoreScope=v0,exports.CountTile=xg,exports.CouponInputPopup=y5,exports.DEFAULT_NOISE_SETTINGS=ka,exports.DatePicker=Og,exports.DebugResultLauncher=K5,exports.DescriptionTooltip=_n,exports.DeviceSideTable=i4,exports.Dialog=wg,exports.Divider=ng,exports.Dropdown=zt,exports.EffectPartyPopper=Kl,exports.EffectPartyPopperHost=A5,exports.EmptyState=g0,exports.ErrorState=b0,exports.FILTER_ALL_VALUE=Kt,exports.FileUpload=mg,exports.FilterPanel=rn,exports.FilterSectionInfo=ea,exports.Footer=pb,exports.Header=oi,exports.Icon=Oe,exports.IconGridMenu=ub,exports.IconRenderer=Oe,exports.InfoTooltip=dn,exports.LEVEL_MAX=Pn,exports.LandingBottomSticky=mb,exports.LandingHeader=hb,exports.ListPopup=g5,exports.ListenStep=Il,exports.Loader=ta,exports.MARKS=qi,exports.MARK_ICON=Gi,exports.MARK_VARIANT=Ki,exports.MediaQueryOverrideContext=qs,exports.MenuTooltip=fa,exports.NOISE_RATIO_MAX=_a,exports.NOISE_RATIO_STEP=fl,exports.NoisePlayerContext=Lr,exports.NoiseSettingsTooltip=Tl,exports.NoticeBox=x0,exports.OrderListStep=Hl,exports.PASS_CARD_BG_VARS=wn,exports.POS_LABEL=Xi,exports.PROMO_BANNER_BG_COMPONENTS=zs,exports.PROMO_BANNER_BG_OPTIONS=_0,exports.PROMO_BANNER_BG_VARS=Yn,exports.Page=Sa,exports.PageTitle=N5,exports.Pagination=ga,exports.Panel=Da,exports.PanelGrid=Hb,exports.PanelRow=mn,exports.PanelRowDevice=Ob,exports.PassCard=gi,exports.PassCardBg=Xf,exports.PassCardBgIHAB=Jf,exports.PassCardBgLeftColorGrid=Qf,exports.PassCardBgTwoCircle=hi,exports.PaymentPlan=Yf,exports.PersonCard=Ag,exports.PhonemeFilterPanel=C5,exports.PhonemeSelectBlock=h5,exports.Popup=hn,exports.ProgressBar=t4,exports.ProgressIndicator=Pi,exports.PromoBanner=P0,exports.PromoBannerBgDark=Ds,exports.PromoBannerBgDeep=_s,exports.PromoBannerBgDiagonal=Ts,exports.PromoBannerBgDots=Ls,exports.PromoBannerBgInstagram=Vs,exports.PromoBannerBgMain=fs,exports.PromoBannerBgNaver=Os,exports.PromoBannerBgOutline=Rs,exports.PromoBannerBgRadial=js,exports.PromoBannerBgSoft=bs,exports.PromoBannerBgSoftSub=ks,exports.PromoBannerBgSub=vs,exports.PromoBannerBgSuccess=Is,exports.PromoBannerBgWarm=Ns,exports.PublicationCard=Bg,exports.Radio=xi,exports.RadioGroup=ag,exports.Rating=gg,exports.ReportDocument=T5,exports.ReportInfoPanel=M5,exports.RingChart=Yg,exports.SENTENCE_TRAINING_TYPES=jr,exports.SearchSummary=lg,exports.Section=Mn,exports.SectionHeader=Sg,exports.SegmentedControl=An,exports.ShortcutBadge=vi,exports.SideNav=ai,exports.Slider=Li,exports.SoundCompass=eg,exports.SplashLogo=Dg,exports.StatChart=Xg,exports.SummaryStrip=j5,exports.TRAINING_TOOLTIP_HOVER_DELAY_MS=v5,exports.Table=vr,exports.TableFilterPanel=Nr,exports.Tabs=cg,exports.TextBoxTooltip=Ba,exports.TextField=kn,exports.Timeline=Ng,exports.Toast=Tn,exports.Toggle=ki,exports.Toolbar=hr,exports.Tooltip=un,exports.TooltipInfo=dn,exports.TooltipTextBox=Ba,exports.TopBanner=I0,exports.TrainingBlock=C4,exports.TrainingBlockButton=xr,exports.TrainingCard=$5,exports.TrainingCardGroup=R5,exports.TrainingPagePopup=Cn,exports.TrainingPagePopupBottom=Ml,exports.TrainingPagePopupTitle=Ll,exports.TrainingResultPopup=Wl,exports.TrainingStep=Nn,exports.TrainingStepAudioPlayer=Ir,exports.TrainingStepBullet=Al,exports.TrainingStepCard=Dl,exports.TrainingStepConfirm=Or,exports.TrainingStepConfirmWithText=Hr,exports.TrainingStepListen=Vr,exports.TrainingStepOrderList=zr,exports.TrainingStepTextBox=Bl,exports.TrainingStepTitle=Nl,exports.TrainingTooltip=_5,exports.TrainingWordCard=wr,exports.UpdateAlert=L5,exports.WAVE_A_MAX=wb,exports.WAVE_H1_PX=_l,exports.WAVE_HMAX_PX=_b,exports.WORD_TABLE_PAPER=$n,exports.WORD_TYPE_LABEL=Ji,exports.WordDataProvider=S5,exports.WordDataUpdatePopup=G5,exports.WordImageTooltip=Ul,exports.WordSearchFilterPanel=m5,exports.WordSearchResultBlock=d5,exports.WordTable=Rn,exports.WordTableBlock=O5,exports.WordTableButton=H5,exports.WordTablePopup=I4,exports.WordTableThumbnail=Yl,exports.buildMonthChartData=Vg,exports.cellLabel=z4,exports.cellsForLabels=nb,exports.clearPassCardBgTheme=nn,exports.clearPromoBannerBgTheme=yt,exports.closeTrainingPopup=Ub,exports.companyTypeLabel=B5,exports.createTrainingScenario=Zb,exports.cx=ye,exports.deriveNoiseContexts=t5,exports.derivePassCard=ui,exports.draftValues=lb,exports.effectiveNoiseVolume=Tr,exports.effectiveSpeechVolume=yl,exports.expandSlashLabel=Ar,exports.formatDuration=ab,exports.getControlDateRange=Zg,exports.getPayloadTimestamp=Ur,exports.getPromoBannerBgTheme=ar,exports.getSelectedFromPayload=Xb,exports.getSelectedText=Jb,exports.getStepPayload=Rl,exports.getSteppedPayload=Qb,exports.injectPassCardBgTheme=tn,exports.injectPromoBannerBgTheme=bt,exports.isSelectionCorrect=e5,exports.labelsForSave=V4,exports.levelToPct=Cb,exports.markAfterClick=Ui,exports.marksForSave=kr,exports.mergeNoiseSettings=wa,exports.missesByType=J4,exports.nextFocus=Z4,exports.nextMisses=X4,exports.noiseElementVolume=Mr,exports.noiseRatioOf=ra,exports.pageStartIndexes=Zi,exports.passCardBgIhabTheme=bi,exports.passCardBgLeftColorGridTheme=yi,exports.passCardBgTwoCircleTheme=pi,exports.pctToLevel=fb,exports.printWordTable=k4,exports.promoBannerBgDarkTheme=Bs,exports.promoBannerBgDeepTheme=xs,exports.promoBannerBgDiagonalTheme=Es,exports.promoBannerBgDotsTheme=Ms,exports.promoBannerBgInstagramTheme=Hs,exports.promoBannerBgMainTheme=Cs,exports.promoBannerBgNaverTheme=Fs,exports.promoBannerBgOutlineTheme=$s,exports.promoBannerBgRadialTheme=Ss,exports.promoBannerBgSoftSubTheme=ws,exports.promoBannerBgSoftTheme=gs,exports.promoBannerBgSubTheme=ys,exports.promoBannerBgSuccessTheme=Ps,exports.promoBannerBgWarmTheme=As,exports.recommendTables=eb,exports.regenerateUnpinned=ib,exports.removeItem=sb,exports.resolveTrainingItems=Kb,exports.resolveTrainingPopupMeta=$l,exports.reviewCells=O4,exports.reviewSetPlan=Q4,exports.reviewTableName=H4,exports.scoreKey=va,exports.scoreSheetHeader=W4,exports.shouldConfirmDiscard=w4,exports.splitTrainingVariants=Gb,exports.summarize=_4,exports.summarizeMisses=Y4,exports.tableTrends=K4,exports.toDraft=rb,exports.toTrainingText=Yb,exports.togglePin=ob,exports.uncoveredLabels=tb,exports.useAnchoredMenu=Xn,exports.useBarChartControl=Si,exports.useCalendarMonth=Ni,exports.useComboboxSuggestions=_i,exports.useFitScale=el,exports.useNoisePlayer=Aa,exports.useSoundCompassExam=R0,exports.useToastLifecycle=Ri,exports.useWordData=D5,exports.useWordTableDisplaySettings=ml,exports.useWordTablePrint=Sr,exports.waveBarPx=oa,exports.waveBarVal=Rr,exports.weakItems=G4;
|