@ihabdevteam/core 0.224.0 → 0.225.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 +43 -0
- package/dist/components.cjs.js +46 -46
- package/dist/components.esm.css +1 -1
- package/dist/hooks.cjs.js +3 -3
- package/dist/i18n.cjs.js +3 -3
- package/dist/ihabdevteam-core.cjs.js +16 -16
- package/dist/ihabdevteam-core.d.ts +1 -1
- package/dist/packages/core/src/components/DatePicker.js +7 -1
- package/dist/packages/core/src/components/Word/WordTableButton.css +8 -4
- package/dist/packages/core/src/components/Word/WordTableButton.js +1 -1
- package/dist/packages/core/src/components/WordTable.js +9 -1
- package/dist/packages/core/src/hooks/useAnchoredMenu.js +24 -0
- package/dist/packages/core/src/i18n/locales/en.json +5 -0
- package/dist/packages/core/src/i18n/locales/ko.json +5 -0
- 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
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";var t=require("react/jsx-runtime"),o=require("react"),Dt=require("i18next"),Ce=require("react-i18next"),Xt=require("react-dom"),gn=typeof document<"u"?document.currentScript:null;function
|
|
1
|
+
"use strict";var t=require("react/jsx-runtime"),o=require("react"),Dt=require("i18next"),Ce=require("react-i18next"),Xt=require("react-dom"),gn=typeof document<"u"?document.currentScript:null;function kc(e){var n=Object.create(null);return e&&Object.keys(e).forEach(function(a){if(a!=="default"){var r=Object.getOwnPropertyDescriptor(e,a);Object.defineProperty(n,a,r.get?r:{enumerable:!0,get:function(){return e[a]}})}}),n.default=e,Object.freeze(n)}var Qo=kc(o);function Ee(...e){return e.filter(Boolean).join(" ")}const es=new Set,ts=(()=>{try{const e=globalThis;return e.process!=null&&e.process.env?.NODE_ENV!=="production"}catch{return!1}})();function bn(e,...n){!ts||es.has(e)||(es.add(e),console.warn(...n))}/**
|
|
2
2
|
* @license lucide-react v1.38.0 - ISC
|
|
3
3
|
*
|
|
4
4
|
* This source code is licensed under the ISC license.
|
|
@@ -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 Bc=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 Nc=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 as=e=>{const n=
|
|
21
|
+
*/const as=e=>{const n=Nc(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,72 +28,72 @@
|
|
|
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 Ec=e=>{for(const n in e)if(n.startsWith("aria-")||n==="role"||n==="title")return!0;return!1},Dc=o.createContext({}),Sc=()=>o.useContext(Dc),jc=o.forwardRef(({color:e,size:n,strokeWidth:a,absoluteStrokeWidth:r,className:s="",children:i,iconNode:l,...u},d)=>{const{size:c=24,strokeWidth:p=2,absoluteStrokeWidth:m=!1,color:h="currentColor",className:g=""}=Sc()??{},y=r??m?Number(a??p)*24/Number(n??c):a??p;return o.createElement("svg",{ref:d,...gr,width:n??c??gr.width,height:n??c??gr.height,stroke:e??h,strokeWidth:y,className:ns("lucide",g,s),...!i&&!Ec(u)&&{"aria-hidden":"true"},...u},[...l.map(([C,w])=>o.createElement(C,w)),...Array.isArray(i)?i:[i]])});/**
|
|
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 ee=(e,n)=>{const a=o.forwardRef(({className:r,...s},i)=>o.createElement(
|
|
36
|
+
*/const ee=(e,n)=>{const a=o.forwardRef(({className:r,...s},i)=>o.createElement(jc,{ref:i,iconNode:n,className:ns(`lucide-${Bc(as(e))}`,`lucide-${e}`,r),...s}));return a.displayName=as(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 Tc=[["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"}]],rs=ee("triangle-alert",Tc);/**
|
|
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 Mc=[["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"}]],Lc=ee("align-start-vertical",Mc);/**
|
|
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 $c=[["path",{d:"M12 5v14",key:"s699le"}],["path",{d:"m19 12-7 7-7-7",key:"1idqje"}]],Rc=ee("arrow-down",$c);/**
|
|
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 Pc=[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]],Ic=ee("arrow-left",Pc);/**
|
|
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 Fc=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]],Oc=ee("arrow-right",Fc);/**
|
|
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 Hc=[["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"}]],zc=ee("arrow-right-left",Hc);/**
|
|
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 Vc=[["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"}]],Wc=ee("audio-lines",Vc);/**
|
|
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 qc=[["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"}]],Uc=ee("baby",qc);/**
|
|
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 Gc=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M4.929 4.929 19.07 19.071",key:"196cmz"}]],Kc=ee("ban",Gc);/**
|
|
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 Yc=[["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"}]],Zc=ee("bell",Yc);/**
|
|
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 Xc=[["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"}]],Jc=ee("book-marked",Xc);/**
|
|
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
|
|
96
|
+
*/const Qc=[["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"}]],ed=ee("book-open",Qc);/**
|
|
97
97
|
* @license lucide-react v1.38.0 - ISC
|
|
98
98
|
*
|
|
99
99
|
* This source code is licensed under the ISC license.
|
|
@@ -118,7 +118,7 @@
|
|
|
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 ud=[["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"}]],cd=ee("calendar-days",ud);/**
|
|
122
122
|
* @license lucide-react v1.38.0 - ISC
|
|
123
123
|
*
|
|
124
124
|
* This source code is licensed under the ISC license.
|
|
@@ -193,7 +193,7 @@
|
|
|
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 $d=[["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"}]],
|
|
196
|
+
*/const $d=[["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"}]],us=ee("download",$d);/**
|
|
197
197
|
* @license lucide-react v1.38.0 - ISC
|
|
198
198
|
*
|
|
199
199
|
* This source code is licensed under the ISC license.
|
|
@@ -218,7 +218,7 @@
|
|
|
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 Wd=[["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"}]],
|
|
221
|
+
*/const Wd=[["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"}]],cs=ee("ellipsis",Wd);/**
|
|
222
222
|
* @license lucide-react v1.38.0 - ISC
|
|
223
223
|
*
|
|
224
224
|
* This source code is licensed under the ISC license.
|
|
@@ -268,12 +268,12 @@
|
|
|
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 up=[["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"}]],ds=ee("git-merge",up);/**
|
|
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 cp=[["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"}]],dp=ee("globe",cp);/**
|
|
277
277
|
* @license lucide-react v1.38.0 - ISC
|
|
278
278
|
*
|
|
279
279
|
* This source code is licensed under the ISC license.
|
|
@@ -403,12 +403,12 @@
|
|
|
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 l1=[["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"}]],
|
|
406
|
+
*/const l1=[["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"}]],u1=ee("message-square-text",l1);/**
|
|
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 c1=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M8 12h8",key:"1wcyev"}]],d1=ee("circle-minus",c1);/**
|
|
412
412
|
* @license lucide-react v1.38.0 - ISC
|
|
413
413
|
*
|
|
414
414
|
* This source code is licensed under the ISC license.
|
|
@@ -543,12 +543,12 @@
|
|
|
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 lm=[["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"}]],
|
|
546
|
+
*/const lm=[["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"}]],um=ee("shopping-cart",lm);/**
|
|
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 cm=[["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"}]],dm=ee("shuffle",cm);/**
|
|
552
552
|
* @license lucide-react v1.38.0 - ISC
|
|
553
553
|
*
|
|
554
554
|
* This source code is licensed under the ISC license.
|
|
@@ -683,12 +683,12 @@
|
|
|
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 lh=[["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"}]],
|
|
686
|
+
*/const lh=[["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"}]],uh=ee("wrench",lh);/**
|
|
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 ch=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],Cs=ee("x",ch);/**
|
|
692
692
|
* @license lucide-react v1.38.0 - ISC
|
|
693
693
|
*
|
|
694
694
|
* This source code is licensed under the ISC license.
|
|
@@ -823,9 +823,9 @@
|
|
|
823
823
|
*
|
|
824
824
|
* This source code is licensed under the ISC license.
|
|
825
825
|
* See the LICENSE file in the root directory of this source tree.
|
|
826
|
-
*/const s0=[["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"}]],i0=ee("thumbs-up",s0),ys={"alert-triangle":rs,"align-start-vertical":
|
|
827
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function f0(e,n){return m0(e)||h0(e,n)||g0(e,n)||C0()}function g0(e,n){if(e){if(typeof e=="string")return _s(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)?_s(e,n):void 0}}const ws=Object.entries,As=Object.setPrototypeOf,b0=Object.isFrozen,y0=Object.getPrototypeOf,v0=Object.getOwnPropertyDescriptor;let _t=Object.freeze,Nt=Object.seal,Yn=Object.create,ks=typeof Reflect<"u"&&Reflect,yr=ks.apply,vr=ks.construct;_t||(_t=function(n){return n}),Nt||(Nt=function(n){return n}),yr||(yr=function(n,a){for(var r=arguments.length,s=new Array(r>2?r-2:0),i=2;i<r;i++)s[i-2]=arguments[i];return n.apply(a,s)}),vr||(vr=function(n){for(var a=arguments.length,r=new Array(a>1?a-1:0),s=1;s<a;s++)r[s-1]=arguments[s];return new n(...r)});const Fn=xt(Array.prototype.forEach),x0=xt(Array.prototype.lastIndexOf),Bs=xt(Array.prototype.pop),pa=xt(Array.prototype.push),_0=xt(Array.prototype.splice),Zn=Array.isArray,ma=xt(String.prototype.toLowerCase),xr=xt(String.prototype.toString),Ns=xt(String.prototype.match),ha=xt(String.prototype.replace),Es=xt(String.prototype.indexOf),w0=xt(String.prototype.trim),A0=xt(Number.prototype.toString),k0=xt(Boolean.prototype.toString),Ds=typeof BigInt>"u"?null:xt(BigInt.prototype.toString),Ss=typeof Symbol>"u"?null:xt(Symbol.prototype.toString),Ut=xt(Object.prototype.hasOwnProperty),Ca=xt(Object.prototype.toString),$t=xt(RegExp.prototype.test),On=B0(TypeError);function xt(e){return function(n){n instanceof RegExp&&(n.lastIndex=0);for(var a=arguments.length,r=new Array(a>1?a-1:0),s=1;s<a;s++)r[s-1]=arguments[s];return yr(e,n,r)}}function B0(e){return function(){for(var n=arguments.length,a=new Array(n),r=0;r<n;r++)a[r]=arguments[r];return vr(e,a)}}function tt(e,n){let a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:ma;if(As&&As(e,null),!Zn(n))return e;let r=n.length;for(;r--;){let s=n[r];if(typeof s=="string"){const i=a(s);i!==s&&(b0(n)||(n[r]=i),s=i)}e[s]=!0}return e}function N0(e){for(let n=0;n<e.length;n++)Ut(e,n)||(e[n]=null);return e}function Jt(e){const n=Yn(null);for(const r of ws(e)){var a=f0(r,2);const s=a[0],i=a[1];Ut(e,s)&&(Zn(i)?n[s]=N0(i):i&&typeof i=="object"&&i.constructor===Object?n[s]=Jt(i):n[s]=i)}return n}function E0(e){switch(typeof e){case"string":return e;case"number":return A0(e);case"boolean":return k0(e);case"bigint":return Ds?Ds(e):"0";case"symbol":return Ss?Ss(e):"Symbol()";case"undefined":return Ca(e);case"function":case"object":{if(e===null)return Ca(e);const n=e,a=an(n,"toString");if(typeof a=="function"){const r=a(n);return typeof r=="string"?r:Ca(r)}return Ca(e)}default:return Ca(e)}}function an(e,n){for(;e!==null;){const r=v0(e,n);if(r){if(r.get)return xt(r.get);if(typeof r.value=="function")return xt(r.value)}e=y0(e)}function a(){return null}return a}function D0(e){try{return $t(e,""),!0}catch{return!1}}const js=_t(["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"]),_r=_t(["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"]),wr=_t(["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"]),S0=_t(["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"]),Ar=_t(["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"]),j0=_t(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Ts=_t(["#text"]),Ms=_t(["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"]),kr=_t(["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"]),Ls=_t(["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"]),Fa=_t(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),T0=Nt(/{{[\w\W]*|^[\w\W]*}}/g),M0=Nt(/<%[\w\W]*|^[\w\W]*%>/g),L0=Nt(/\${[\w\W]*/g),$0=Nt(/^data-[\-\w.\u00B7-\uFFFF]+$/),R0=Nt(/^aria-[\-\w]+$/),$s=Nt(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),P0=Nt(/^(?:\w+script|data):/i),I0=Nt(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),F0=Nt(/^html$/i),O0=Nt(/^[a-z][.\w]*(-[.\w]+)+$/i),Rs=Nt(/<[/\w!]/g),Ps=Nt(/<[/\w]/g),H0=Nt(/<\/no(script|embed|frames)/i),z0=Nt(/\/>/i),Qt={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,processingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},Is=["style","script","xmp","iframe","noembed","noframes","plaintext","noscript"],V0=_t(tt({},Is)),W0=(function(){const e={};return Fn(Is,n=>{e[n]=Nt(new RegExp("</"+n+"(?=[\\t\\n\\f\\r />])","i"))}),_t(e)})(),q0=function(){return typeof window>"u"?null:window},U0=function(n,a){if(typeof n!="object"||typeof n.createPolicy!="function")return null;let r=null;const s="data-tt-policy-suffix";a&&a.hasAttribute(s)&&(r=a.getAttribute(s));const i="dompurify"+(r?"#"+r:"");try{return n.createPolicy(i,{createHTML(l){return l},createScriptURL(l){return l}})}catch{return console.warn("TrustedTypes policy "+i+" could not be created."),null}},Fs=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},En=function(n,a,r,s){return Ut(n,a)&&Zn(n[a])?tt(s.base?Jt(s.base):{},n[a],s.transform):r},Br=function(n,a,r){const s=Ut(n,a)?n[a]:void 0;return s&&typeof s=="object"?Jt(s):r()};function Os(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:q0();const n=xe=>Os(xe);if(n.version="3.4.14",n.removed=[],!e||!e.document||e.document.nodeType!==Qt.document||!e.Element)return n.isSupported=!1,n;let a=e.document;const r=a,s=r.currentScript;e.DocumentFragment;const i=e.HTMLTemplateElement,l=e.Node,c=e.Element,d=e.NodeFilter,u=e.NamedNodeMap;u===void 0&&(e.NamedNodeMap||e.MozNamedAttrMap),e.HTMLFormElement;const p=e.DOMParser,m=e.trustedTypes,h=c.prototype,f=an(h,"cloneNode"),y=an(h,"remove"),C=an(h,"nextSibling"),w=an(h,"childNodes"),b=an(h,"parentNode"),g=an(h,"shadowRoot"),_=an(h,"attributes"),v=l&&l.prototype?an(l.prototype,"nodeType"):null,k=l&&l.prototype?an(l.prototype,"nodeName"):null,A=l&&l.prototype?an(l.prototype,"ownerDocument"):null,B=function(T){return v?v(T):T.nodeType},x=function(T){return k?k(T):T.nodeName};if(typeof i=="function"){const xe=a.createElement("template");xe.content&&xe.content.ownerDocument&&(a=xe.content.ownerDocument)}let N,D="",P,H=!1,M=0;const z=function(){if(M>0)throw On('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.')},j=function(T){z(),M++;try{return N.createHTML(T)}finally{M--}},S=function(T){z(),M++;try{return N.createScriptURL(T)}finally{M--}},I=function(){return H||(P=U0(m,s),H=!0),P},W=a,Z=W.implementation,U=W.createNodeIterator,q=W.createDocumentFragment,K=W.getElementsByTagName,L=r.importNode;let E=Fs();n.isSupported=typeof ws=="function"&&typeof b=="function"&&Z&&Z.createHTMLDocument!==void 0;const F=T0,R=M0,O=L0,$=$0,Y=R0,Q=P0,X=I0,ie=O0;let be=$s,ne=null;const oe=tt({},[...js,..._r,...wr,...Ar,...Ts]);let V=null;const ae=tt({},[...Ms,...kr,...Ls,...Fa]);let ue=Object.seal(Yn(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}})),ge=null,me=null;const re=Object.seal(Yn(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let he=!0,_e=!0,Me=!1,Ue=!0,Ie=!1,de=!0,Ae=!1,Re=!1,Pe=null,we=null,Se=!1,Oe=!1,Be=!1,nt=!1,Ge=!0,Xe=!1;const De="user-content-";let je=!0,ke=!1,$e={},We=null;const ht=tt({},["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 wt=null;const Et=tt({},["audio","video","img","source","image","track"]);let At=null;const rt=tt({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Ye="http://www.w3.org/1998/Math/MathML",at="http://www.w3.org/2000/svg",ot="http://www.w3.org/1999/xhtml";let qe=ot,ct=!1,Ke=null;const Ct=tt({},[Ye,at,ot],xr),jt=_t(["mi","mo","mn","ms","mtext"]);let kt=tt({},jt);const dt=_t(["annotation-xml"]);let st=tt({},dt);const He=tt({},["title","style","font","a","script"]);let Qe=null;const pt=["application/xhtml+xml","text/html"],Ot="text/html";let Je=null,Tt=null;const Yt=a.createElement("form"),Mt=function(T){return T instanceof RegExp||T instanceof Function},ln=function(){let T=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(Tt&&Tt===T)return;(!T||typeof T!="object")&&(T={}),T=Jt(T),Qe=pt.indexOf(T.PARSER_MEDIA_TYPE)===-1?Ot:T.PARSER_MEDIA_TYPE,Je=Qe==="application/xhtml+xml"?xr:ma,ne=En(T,"ALLOWED_TAGS",oe,{transform:Je}),V=En(T,"ALLOWED_ATTR",ae,{transform:Je}),Ke=En(T,"ALLOWED_NAMESPACES",Ct,{transform:xr}),At=En(T,"ADD_URI_SAFE_ATTR",rt,{transform:Je,base:rt}),wt=En(T,"ADD_DATA_URI_TAGS",Et,{transform:Je,base:Et}),We=En(T,"FORBID_CONTENTS",ht,{transform:Je}),ge=En(T,"FORBID_TAGS",Jt({}),{transform:Je}),me=En(T,"FORBID_ATTR",Jt({}),{transform:Je}),$e=Ut(T,"USE_PROFILES")?T.USE_PROFILES&&typeof T.USE_PROFILES=="object"?Jt(T.USE_PROFILES):T.USE_PROFILES:!1,he=T.ALLOW_ARIA_ATTR!==!1,_e=T.ALLOW_DATA_ATTR!==!1,Me=T.ALLOW_UNKNOWN_PROTOCOLS||!1,Ue=T.ALLOW_SELF_CLOSE_IN_ATTR!==!1,Ie=T.SAFE_FOR_TEMPLATES||!1,de=T.SAFE_FOR_XML!==!1,Ae=T.WHOLE_DOCUMENT||!1,Oe=T.RETURN_DOM||!1,Be=T.RETURN_DOM_FRAGMENT||!1,nt=T.RETURN_TRUSTED_TYPE||!1,Se=T.FORCE_BODY||!1,Ge=T.SANITIZE_DOM!==!1,Xe=T.SANITIZE_NAMED_PROPS||!1,je=T.KEEP_CONTENT!==!1,ke=T.IN_PLACE||!1,be=D0(T.ALLOWED_URI_REGEXP)?T.ALLOWED_URI_REGEXP:$s,qe=typeof T.NAMESPACE=="string"?T.NAMESPACE:ot,kt=Br(T,"MATHML_TEXT_INTEGRATION_POINTS",()=>tt({},jt)),st=Br(T,"HTML_INTEGRATION_POINTS",()=>tt({},dt));const J=Br(T,"CUSTOM_ELEMENT_HANDLING",()=>Yn(null));if(ue=Yn(null),Ut(J,"tagNameCheck")&&Mt(J.tagNameCheck)&&(ue.tagNameCheck=J.tagNameCheck),Ut(J,"attributeNameCheck")&&Mt(J.attributeNameCheck)&&(ue.attributeNameCheck=J.attributeNameCheck),Ut(J,"allowCustomizedBuiltInElements")&&typeof J.allowCustomizedBuiltInElements=="boolean"&&(ue.allowCustomizedBuiltInElements=J.allowCustomizedBuiltInElements),Nt(ue),Ie&&(_e=!1),Be&&(Oe=!0),$e&&(ne=tt({},Ts),V=Yn(null),$e.html===!0&&(tt(ne,js),tt(V,Ms)),$e.svg===!0&&(tt(ne,_r),tt(V,kr),tt(V,Fa)),$e.svgFilters===!0&&(tt(ne,wr),tt(V,kr),tt(V,Fa)),$e.mathMl===!0&&(tt(ne,Ar),tt(V,Ls),tt(V,Fa))),re.tagCheck=null,re.attributeCheck=null,Ut(T,"ADD_TAGS")&&(typeof T.ADD_TAGS=="function"?re.tagCheck=T.ADD_TAGS:Zn(T.ADD_TAGS)&&(ne===oe&&(ne=Jt(ne)),tt(ne,T.ADD_TAGS,Je))),Ut(T,"ADD_ATTR")&&(typeof T.ADD_ATTR=="function"?re.attributeCheck=T.ADD_ATTR:Zn(T.ADD_ATTR)&&(V===ae&&(V=Jt(V)),tt(V,T.ADD_ATTR,Je))),Ut(T,"ADD_FORBID_CONTENTS")&&Zn(T.ADD_FORBID_CONTENTS)&&(We===ht&&(We=Jt(We)),tt(We,T.ADD_FORBID_CONTENTS,Je)),je&&(ne["#text"]=!0),Ae&&tt(ne,["html","head","body"]),ne.table&&(tt(ne,["tbody"]),delete ge.tbody),T.TRUSTED_TYPES_POLICY){if(typeof T.TRUSTED_TYPES_POLICY.createHTML!="function")throw On('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof T.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw On('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');const pe=N;N=T.TRUSTED_TYPES_POLICY;try{D=j("")}catch(Le){throw N=pe,Le}}else T.TRUSTED_TYPES_POLICY===null?(N=void 0,D=""):(N===void 0&&(N=I()),N&&typeof D=="string"&&(D=j("")));_t&&_t(T),Tt=T},cn=tt({},[..._r,...wr,...S0]),un=tt({},[...Ar,...j0]),Rn=function(T,J,pe){return J.namespaceURI===ot?T==="svg":J.namespaceURI===Ye?T==="svg"&&(pe==="annotation-xml"||kt[pe]):!!cn[T]},dn=function(T,J,pe){return J.namespaceURI===ot?T==="math":J.namespaceURI===at?T==="math"&&st[pe]:!!un[T]},Pn=function(T,J,pe){return J.namespaceURI===at&&!st[pe]||J.namespaceURI===Ye&&!kt[pe]?!1:!un[T]&&(He[T]||!cn[T])},Nn=function(T){let J=b(T);(!J||!J.tagName)&&(J={namespaceURI:qe,tagName:"template"});const pe=ma(T.tagName),Le=ma(J.tagName);return Ke[T.namespaceURI]?T.namespaceURI===at?Rn(pe,J,Le):T.namespaceURI===Ye?dn(pe,J,Le):T.namespaceURI===ot?Pn(pe,J,Le):!!(Qe==="application/xhtml+xml"&&Ke[T.namespaceURI]):!1},Bt=function(T){pa(n.removed,{element:T});try{b(T).removeChild(T)}catch{if(y(T),!b(T))throw On("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place")}},mn=function(T,J,pe){try{T.removeAttributeNode(J)}catch{try{T.removeAttribute(pe)}catch{}}},Ht=function(T){en(T);const J=w(T);if(J){const Le=[];Fn(J,Fe=>{pa(Le,Fe)}),Fn(Le,Fe=>{try{y(Fe)}catch{}})}const pe=_(T);if(pe)for(let Le=pe.length-1;Le>=0;--Le){const Fe=pe[Le],Ve=Fe&&Fe.name;typeof Ve=="string"&&mn(T,Fe,Ve)}},Zt=function(T,J,pe){if(!pe)try{pe=J.getAttributeNode(T)}catch{pe=null}pa(n.removed,{attribute:pe||null,from:J});try{pe?J.removeAttributeNode(pe):J.removeAttribute(T)}catch{try{J.removeAttribute(T)}catch{}}if(T==="is")if(Oe||Be)try{Bt(J)}catch{}else try{J.setAttribute(T,"")}catch{}},hn=function(T){const J=_(T);if(J)for(let pe=J.length-1;pe>=0;--pe){const Le=J[pe],Fe=Le&&Le.name;typeof Fe!="string"||V[Je(Fe)]||mn(T,Le,Fe)}},en=function(T){const J=[T];for(;J.length>0;){const pe=J.pop();B(pe)===Qt.element&&hn(pe);const Fe=w(pe);if(Fe)for(let Ve=Fe.length-1;Ve>=0;--Ve)J.push(Fe[Ve])}},Cn=function(T,J){return de?T==="patchsrc"?!0:T==="for"&&J!=="label"&&J!=="output":!1},In=function(T){if(!de)return;const J=[T];for(;J.length>0;){const pe=J.pop(),Le=B(pe);if(Le===Qt.processingInstruction||Le===Qt.comment&&$t(Ps,pe.data)){try{y(pe)}catch{}continue}if(Le===Qt.element){const Ve=pe,lt=Je(x(pe));try{Ve.hasAttribute&&Ve.hasAttribute("patchsrc")&&Ve.removeAttribute("patchsrc"),Ve.hasAttribute&&Ve.hasAttribute("for")&&Cn("for",lt)&&Ve.removeAttribute("for")}catch{}}const Fe=w(pe);if(Fe)for(let Ve=Fe.length-1;Ve>=0;--Ve)J.push(Fe[Ve])}},fn=function(T){let J=null,pe=null;if(Se)T="<remove></remove>"+T;else{const Ve=Ns(T,/^[\r\n\t ]+/);pe=Ve&&Ve[0]}Qe==="application/xhtml+xml"&&qe===ot&&(T='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+T+"</body></html>");const Le=N?j(T):T;if(qe===ot)try{J=new p().parseFromString(Le,Qe)}catch{}if(!J||!J.documentElement){J=Z.createDocument(qe,"template",null);try{J.documentElement.innerHTML=ct?D:Le}catch{}}const Fe=J.body||J.documentElement;return T&&pe&&Fe.insertBefore(a.createTextNode(pe),Fe.childNodes[0]||null),qe===ot?K.call(J,Ae?"html":"body")[0]:Ae?J.documentElement:Fe},te=function(T){const J=A?A(T):T.ownerDocument;return U.call(J||T,T,d.SHOW_ELEMENT|d.SHOW_COMMENT|d.SHOW_TEXT|d.SHOW_PROCESSING_INSTRUCTION|d.SHOW_CDATA_SECTION,null)},fe=function(T){return T=ha(T,F," "),T=ha(T,R," "),T=ha(T,O," "),T},G=function(T){var J;T.normalize();const pe=A?A(T):T.ownerDocument,Le=U.call(pe||T,T,d.SHOW_TEXT|d.SHOW_COMMENT|d.SHOW_CDATA_SECTION|d.SHOW_PROCESSING_INSTRUCTION,null);let Fe=Le.nextNode();for(;Fe;)Fe.data=fe(Fe.data),Fe=Le.nextNode();const Ve=(J=T.querySelectorAll)===null||J===void 0?void 0:J.call(T,"template");Ve&&Fn(Ve,lt=>{le(lt.content)&&G(lt.content)})},se=function(T){const J=k?k(T):null;return typeof J!="string"||Je(J)!=="form"?!1:typeof T.nodeName!="string"||typeof T.textContent!="string"||typeof T.removeChild!="function"||T.attributes!==_(T)||typeof T.removeAttribute!="function"||typeof T.setAttribute!="function"||typeof T.namespaceURI!="string"||typeof T.insertBefore!="function"||typeof T.hasChildNodes!="function"||T.nodeType!==v(T)||T.childNodes!==w(T)},le=function(T){if(!v||typeof T!="object"||T===null)return!1;try{return v(T)===Qt.documentFragment}catch{return!1}},ye=function(T){if(!v||typeof T!="object"||T===null)return!1;try{return typeof v(T)=="number"}catch{return!1}};function ve(xe,T,J){xe.length!==0&&Fn(xe,pe=>{pe.call(n,T,J,Tt)})}const Te=function(T,J){return!!(de&&T.hasChildNodes()&&!ye(T.firstElementChild)&&$t(Rs,T.textContent)&&$t(Rs,T.innerHTML)||de&&T.namespaceURI===ot&&V0[J]&&(ye(T.firstElementChild)||typeof T.textContent=="string"&&$t(W0[J],T.textContent))||T.nodeType===Qt.processingInstruction||de&&T.nodeType===Qt.comment&&$t(Ps,T.data))},et=function(T,J){if(T instanceof RegExp)return $t(T,J);if(T instanceof Function){for(var pe=arguments.length,Le=new Array(pe>2?pe-2:0),Fe=2;Fe<pe;Fe++)Le[Fe-2]=arguments[Fe];return!!T(J,...Le)}return!1},ft=function(T,J,pe){if(!ge[J]&&Ne(J)&&et(ue.tagNameCheck,J))return!1;if(je&&!We[J]){const Le=b(T),Fe=w(T);if(Fe&&Le){const Ve=Fe.length;for(let lt=Ve-1;lt>=0;--lt){const mt=T===pe?f(Fe[lt],!0):Fe[lt];Le.insertBefore(mt,C(T))}}}return Bt(T),!0},it=function(T,J,pe,Le){return T.length===0?J:J===pe||J===Le?Jt(J):J},yt=function(T,J){return T===J||b(T)!==null?!1:(ke&&en(T),!0)},Rt=function(T,J){if(ve(E.beforeSanitizeElements,T,null),yt(T,J))return!0;if(se(T))return Bt(T),!0;const pe=Je(x(T));if(ne=it(E.uponSanitizeElement,ne,oe,Pe),ve(E.uponSanitizeElement,T,{tagName:pe,allowedTags:ne}),yt(T,J))return!0;if(Te(T,pe))return Bt(T),!0;if(ge[pe]||!(re.tagCheck instanceof Function&&re.tagCheck(pe))&&!ne[pe]){const Fe=ft(T,pe,J);return Fe===!1&&ve(E.afterSanitizeElements,T,null),Fe}if(B(T)===Qt.element&&!Nn(T)||(pe==="noscript"||pe==="noembed"||pe==="noframes")&&$t(H0,T.innerHTML))return Bt(T),!0;if(Ie&&T.nodeType===Qt.text){const Fe=fe(T.textContent);T.textContent!==Fe&&(pa(n.removed,{element:T.cloneNode()}),T.textContent=Fe)}return ve(E.afterSanitizeElements,T,null),!1},Lt=function(T,J,pe){if(me[J]||Cn(J,T)||Ge&&(J==="id"||J==="name")&&(pe in a||pe in Yt))return!1;const Le=V[J]||re.attributeCheck instanceof Function&&re.attributeCheck(J,T);return _e&&$t($,J)||he&&$t(Y,J)?!0:Le?At[J]||$t(be,ha(pe,X,""))||(J==="src"||J==="xlink:href"||J==="href")&&T!=="script"&&Es(pe,"data:")===0&&wt[T]||Me&&!$t(Q,ha(pe,X,""))?!0:!pe:Ne(T)&&et(ue.tagNameCheck,T)&&et(ue.attributeNameCheck,J,T)||J==="is"&&ue.allowCustomizedBuiltInElements&&et(ue.tagNameCheck,pe)},nn=tt({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),Ne=function(T){return!nn[ma(T)]&&$t(ie,T)},ze=function(T,J,pe,Le){if(N&&typeof m=="object"&&typeof m.getAttributeType=="function"&&!pe)switch(m.getAttributeType(T,J)){case"TrustedHTML":return j(Le);case"TrustedScriptURL":return S(Le)}return Le},vt=function(T,J,pe,Le){try{pe?T.setAttributeNS(pe,J,Le):T.setAttribute(J,Le),se(T)?Bt(T):Bs(n.removed)}catch{Zt(J,T)}},zt=function(T){ve(E.beforeSanitizeAttributes,T,null);const J=T.attributes;if(!J||se(T))return;V=it(E.uponSanitizeAttribute,V,ae,we);const pe={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:V,forceKeepAttr:void 0};let Le=J.length;const Fe=Je(T.nodeName);for(;Le--;){const Ve=J[Le],lt=Ve.name,mt=Ve.namespaceURI,Wt=Ve.value,qt=Je(lt),fr=Wt;let Pt=lt==="value"?fr:w0(fr);if(pe.attrName=qt,pe.attrValue=Pt,pe.keepAttr=!0,pe.forceKeepAttr=void 0,ve(E.uponSanitizeAttribute,T,pe),Pt=pe.attrValue,Xe&&(qt==="id"||qt==="name")&&Es(Pt,De)!==0&&(Zt(lt,T,Ve),Pt=De+Pt),de&&$t(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,Pt)){Zt(lt,T,Ve);continue}if(qt==="attributename"&&Ns(Pt,"href")){Zt(lt,T,Ve);continue}if(!pe.forceKeepAttr){if(!pe.keepAttr){Zt(lt,T,Ve);continue}if(!Ue&&$t(z0,Pt)){Zt(lt,T,Ve);continue}if(Ie&&(Pt=fe(Pt)),!Lt(Fe,qt,Pt)){Zt(lt,T,Ve);continue}Pt=ze(Fe,qt,mt,Pt),Pt!==fr&&vt(T,lt,mt,Pt)}}ve(E.afterSanitizeAttributes,T,null)},Vt=function(T){let J=null;const pe=te(T);for(ve(E.beforeSanitizeShadowDOM,T,null);J=pe.nextNode();)if(ve(E.uponSanitizeShadowNode,J,null),Rt(J,T),zt(J),le(J.content)&&Vt(J.content),B(J)===Qt.element){const Le=g(J);le(Le)&&(Cr(Le),Vt(Le))}ve(E.afterSanitizeShadowDOM,T,null)},Cr=function(T){const J=[{node:T,shadow:null}];for(;J.length>0;){const pe=J.pop();if(pe.shadow){Vt(pe.shadow);continue}const Le=pe.node,Ve=B(Le)===Qt.element,lt=w(Le);if(lt)for(let mt=lt.length-1;mt>=0;--mt)J.push({node:lt[mt],shadow:null});if(Ve){const mt=k?k(Le):null;if(typeof mt=="string"&&Je(mt)==="template"){const Wt=Le.content;le(Wt)&&J.push({node:Wt,shadow:null})}}if(Ve){const mt=g(Le);le(mt)&&J.push({node:null,shadow:mt},{node:mt,shadow:null})}}};return n.sanitize=function(xe){let T=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},J=null,pe=null,Le=null,Fe=null;if(ct=!xe,ct&&(xe="<!-->"),typeof xe!="string"&&!ye(xe)&&(xe=E0(xe),typeof xe!="string"))throw On("dirty is not a string, aborting");if(!n.isSupported)return xe;Re?(ne=Pe,V=we):ln(T),(E.uponSanitizeElement.length>0||E.uponSanitizeAttribute.length>0)&&(ne=Jt(ne)),E.uponSanitizeAttribute.length>0&&(V=Jt(V)),n.removed=[];const Ve=ke&&typeof xe!="string"&&ye(xe);if(Ve){In(xe);const Wt=x(xe);if(typeof Wt=="string"){const qt=Je(Wt);if(!ne[qt]||ge[qt])throw Ht(xe),On("root node is forbidden and cannot be sanitized in-place")}if(se(xe))throw Ht(xe),On("root node is clobbered and cannot be sanitized in-place");try{Cr(xe)}catch(qt){throw Ht(xe),qt}}else if(ye(xe))J=fn("<!---->"),pe=J.ownerDocument.importNode(xe,!0),pe.nodeType===Qt.element&&pe.nodeName==="BODY"||pe.nodeName==="HTML"?J=pe:J.appendChild(pe),Cr(pe);else{if(!Oe&&!Ie&&!Ae&&xe.indexOf("<")===-1)return N&&nt?j(xe):xe;if(J=fn(xe),!J)return Oe?null:nt?D:""}J&&Se&&Bt(J.firstChild);const lt=Ve?xe:J;try{const Wt=te(lt);for(;Le=Wt.nextNode();)Rt(Le,lt),zt(Le),le(Le.content)&&Vt(Le.content)}catch(Wt){throw Ve&&(Ht(xe),Fn(n.removed,qt=>{qt.element&&en(qt.element)})),Wt}if(Ve)return Fn(n.removed,Wt=>{Wt.element&&en(Wt.element)}),Ie&&G(xe),xe;if(Oe){if(Ie&&G(J),Be)for(Fe=q.call(J.ownerDocument);J.firstChild;)Fe.appendChild(J.firstChild);else Fe=J;return(V.shadowroot||V.shadowrootmode)&&(Fe=L.call(r,Fe,!0)),Fe}let mt=Ae?J.outerHTML:J.innerHTML;return Ae&&ne["!doctype"]&&J.ownerDocument&&J.ownerDocument.doctype&&J.ownerDocument.doctype.name&&$t(F0,J.ownerDocument.doctype.name)&&(mt="<!DOCTYPE "+J.ownerDocument.doctype.name+`>
|
|
828
|
-
`+mt),Ie&&(mt=fe(mt)),N&&nt?j(mt):mt},n.setConfig=function(){let
|
|
826
|
+
*/const s0=[["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"}]],i0=ee("thumbs-up",s0),ys={"alert-triangle":rs,"align-start-vertical":Lc,anchor:hh,armchair:fh,"arrow-down":Rc,"arrow-left":Ic,"arrow-right":Oc,"arrow-right-left":zc,"arrow-up-a-z":bh,"audio-lines":Wc,baby:Uc,ban:Kc,"bar-chart-2":vh,bell:Zc,"book-marked":Jc,"book-open":ed,"bow-arrow":nd,braces:rd,bug:sd,calendar:fs,"calendar-check":ld,"calendar-days":cd,camera:pd,car:wh,"chart-column":hd,"chart-line":fd,"chart-pie":bd,check:os,"chevron-down":gs,"chevron-left":ss,"chevron-right":is,"chevron-up":bs,circle:Qh,"clipboard-list":wd,coffee:kh,combine:kd,copy:Nd,"chevrons-left-right-ellipsis":Dd,"credit-card":jd,database:ls,diff:Ld,download:us,ear:Pd,edit:Fd,"edit-2":Hd,"edit-3":Vd,ellipsis:cs,eraser:Ud,"external-link":Kd,eye:Zd,"file-text":Jd,"flip-horizontal":ep,"folder-open":np,"folder-plus":rp,gamepad:sp,"gamepad-2":Nh,clock:Dh,target:jh,percent:Mh,gavel:lp,"git-merge":ds,globe:dp,"grip-vertical":mp,headphones:Cp,heart:gp,home:yp,inbox:$h,info:xp,"key-round":wp,landmark:kp,layers:Np,"layout-dashboard":Dp,leaf:jp,lightbulb:Mp,link:$p,"link-2":Pp,"link-2-off":Fp,list:Hp,"list-checks":Vp,"list-ordered":qp,"list-tree":Ph,loader:Gp,lock:Yp,"log-out":Xp,mail:Qp,"map-pin":t1,menu:a0,"message-circle":a1,"message-circle-question-mark":o1,"message-square":i1,"message-square-more":Fh,"message-square-text":u1,minus:Hh,"minus-circle":d1,moon:o0,"more-horizontal":cs,package:m1,palette:C1,"party-popper":g1,pause:y1,pencil:x1,phone:w1,play:k1,"play-circle":N1,plus:D1,printer:j1,"refresh-cw":M1,repeat:$1,replace:P1,rocket:F1,"rotate-ccw":H1,"rotate-cw":V1,salad:q1,"scan-search":G1,search:X1,"circle-alert":ps,"alert-circle":ps,"check-circle":ms,scissors:Q1,"search-x":tm,send:am,settings:om,"share-2":Vh,"shield-check":im,"shopping-cart":um,shuffle:dm,"skip-back":mm,"skip-forward":Cm,sparkles:qh,square:gm,star:ym,store:xm,"sun-medium":wm,table:km,"table-2":Nm,tag:Dm,terminal:jm,"text-cursor-input":Mm,"text-initial":$m,"thumbs-up":i0,ticket:Pm,trash:Hm,triangle:t0,"trash-2":Fm,"trending-up":Vm,"triangle-alert":rs,trophy:qm,type:Gh,unlink:Gm,upload:Ym,user:br,"user-plus":Jm,"user-round":eh,"user-round-check":nh,users:rh,"users-round":sh,volume:Yh,"volume-2":hs,wrench:uh,x:Cs,zap:ph};function l0(e){return ys[e]??null}const vs=new Set;function u0(e){return ts&&!(e in ys)&&!vs.has(e)&&(vs.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 c0=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 d0(e){const n=e.toLowerCase();if(n.startsWith("http://")||n.startsWith("https://")||n.startsWith("data:")||e.includes("/assets/")||/\.(png|jpe?g|gif|webp|avif|bmp|ico)$/i.test(n))return null;const a=(e.split("/").pop()||"").replace(/\.svg$/,"");return a?c0(a):null}const xs=new Map;function p0(e){const n=typeof e=="string"?d0(e):null,a=n?l0(n)??xs.get(n)??null:null,[r,s]=o.useState(null);return o.useEffect(()=>{if(!n||a)return;let i=!1;return u0(n).then(l=>{xs.set(n,l),i||s(l)}),()=>{i=!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 _s(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 m0(e){if(Array.isArray(e))return e}function h0(e,n){var a=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(a!=null){var r,s,i,l,u=[],d=!0,c=!1;try{if(i=(a=a.call(e)).next,n!==0)for(;!(d=(r=i.call(a)).done)&&(u.push(r.value),u.length!==n);d=!0);}catch(p){c=!0,s=p}finally{try{if(!d&&a.return!=null&&(l=a.return(),Object(l)!==l))return}finally{if(c)throw s}}return u}}function C0(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
827
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function f0(e,n){return m0(e)||h0(e,n)||g0(e,n)||C0()}function g0(e,n){if(e){if(typeof e=="string")return _s(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)?_s(e,n):void 0}}const ws=Object.entries,As=Object.setPrototypeOf,b0=Object.isFrozen,y0=Object.getPrototypeOf,v0=Object.getOwnPropertyDescriptor;let _t=Object.freeze,Nt=Object.seal,Yn=Object.create,ks=typeof Reflect<"u"&&Reflect,yr=ks.apply,vr=ks.construct;_t||(_t=function(n){return n}),Nt||(Nt=function(n){return n}),yr||(yr=function(n,a){for(var r=arguments.length,s=new Array(r>2?r-2:0),i=2;i<r;i++)s[i-2]=arguments[i];return n.apply(a,s)}),vr||(vr=function(n){for(var a=arguments.length,r=new Array(a>1?a-1:0),s=1;s<a;s++)r[s-1]=arguments[s];return new n(...r)});const Fn=xt(Array.prototype.forEach),x0=xt(Array.prototype.lastIndexOf),Bs=xt(Array.prototype.pop),pa=xt(Array.prototype.push),_0=xt(Array.prototype.splice),Zn=Array.isArray,ma=xt(String.prototype.toLowerCase),xr=xt(String.prototype.toString),Ns=xt(String.prototype.match),ha=xt(String.prototype.replace),Es=xt(String.prototype.indexOf),w0=xt(String.prototype.trim),A0=xt(Number.prototype.toString),k0=xt(Boolean.prototype.toString),Ds=typeof BigInt>"u"?null:xt(BigInt.prototype.toString),Ss=typeof Symbol>"u"?null:xt(Symbol.prototype.toString),Ut=xt(Object.prototype.hasOwnProperty),Ca=xt(Object.prototype.toString),$t=xt(RegExp.prototype.test),On=B0(TypeError);function xt(e){return function(n){n instanceof RegExp&&(n.lastIndex=0);for(var a=arguments.length,r=new Array(a>1?a-1:0),s=1;s<a;s++)r[s-1]=arguments[s];return yr(e,n,r)}}function B0(e){return function(){for(var n=arguments.length,a=new Array(n),r=0;r<n;r++)a[r]=arguments[r];return vr(e,a)}}function tt(e,n){let a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:ma;if(As&&As(e,null),!Zn(n))return e;let r=n.length;for(;r--;){let s=n[r];if(typeof s=="string"){const i=a(s);i!==s&&(b0(n)||(n[r]=i),s=i)}e[s]=!0}return e}function N0(e){for(let n=0;n<e.length;n++)Ut(e,n)||(e[n]=null);return e}function Jt(e){const n=Yn(null);for(const r of ws(e)){var a=f0(r,2);const s=a[0],i=a[1];Ut(e,s)&&(Zn(i)?n[s]=N0(i):i&&typeof i=="object"&&i.constructor===Object?n[s]=Jt(i):n[s]=i)}return n}function E0(e){switch(typeof e){case"string":return e;case"number":return A0(e);case"boolean":return k0(e);case"bigint":return Ds?Ds(e):"0";case"symbol":return Ss?Ss(e):"Symbol()";case"undefined":return Ca(e);case"function":case"object":{if(e===null)return Ca(e);const n=e,a=an(n,"toString");if(typeof a=="function"){const r=a(n);return typeof r=="string"?r:Ca(r)}return Ca(e)}default:return Ca(e)}}function an(e,n){for(;e!==null;){const r=v0(e,n);if(r){if(r.get)return xt(r.get);if(typeof r.value=="function")return xt(r.value)}e=y0(e)}function a(){return null}return a}function D0(e){try{return $t(e,""),!0}catch{return!1}}const js=_t(["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"]),_r=_t(["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"]),wr=_t(["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"]),S0=_t(["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"]),Ar=_t(["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"]),j0=_t(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Ts=_t(["#text"]),Ms=_t(["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"]),kr=_t(["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"]),Ls=_t(["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"]),Fa=_t(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),T0=Nt(/{{[\w\W]*|^[\w\W]*}}/g),M0=Nt(/<%[\w\W]*|^[\w\W]*%>/g),L0=Nt(/\${[\w\W]*/g),$0=Nt(/^data-[\-\w.\u00B7-\uFFFF]+$/),R0=Nt(/^aria-[\-\w]+$/),$s=Nt(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),P0=Nt(/^(?:\w+script|data):/i),I0=Nt(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),F0=Nt(/^html$/i),O0=Nt(/^[a-z][.\w]*(-[.\w]+)+$/i),Rs=Nt(/<[/\w!]/g),Ps=Nt(/<[/\w]/g),H0=Nt(/<\/no(script|embed|frames)/i),z0=Nt(/\/>/i),Qt={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,processingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},Is=["style","script","xmp","iframe","noembed","noframes","plaintext","noscript"],V0=_t(tt({},Is)),W0=(function(){const e={};return Fn(Is,n=>{e[n]=Nt(new RegExp("</"+n+"(?=[\\t\\n\\f\\r />])","i"))}),_t(e)})(),q0=function(){return typeof window>"u"?null:window},U0=function(n,a){if(typeof n!="object"||typeof n.createPolicy!="function")return null;let r=null;const s="data-tt-policy-suffix";a&&a.hasAttribute(s)&&(r=a.getAttribute(s));const i="dompurify"+(r?"#"+r:"");try{return n.createPolicy(i,{createHTML(l){return l},createScriptURL(l){return l}})}catch{return console.warn("TrustedTypes policy "+i+" could not be created."),null}},Fs=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},En=function(n,a,r,s){return Ut(n,a)&&Zn(n[a])?tt(s.base?Jt(s.base):{},n[a],s.transform):r},Br=function(n,a,r){const s=Ut(n,a)?n[a]:void 0;return s&&typeof s=="object"?Jt(s):r()};function Os(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:q0();const n=ve=>Os(ve);if(n.version="3.4.14",n.removed=[],!e||!e.document||e.document.nodeType!==Qt.document||!e.Element)return n.isSupported=!1,n;let a=e.document;const r=a,s=r.currentScript;e.DocumentFragment;const i=e.HTMLTemplateElement,l=e.Node,u=e.Element,d=e.NodeFilter,c=e.NamedNodeMap;c===void 0&&(e.NamedNodeMap||e.MozNamedAttrMap),e.HTMLFormElement;const p=e.DOMParser,m=e.trustedTypes,h=u.prototype,g=an(h,"cloneNode"),y=an(h,"remove"),C=an(h,"nextSibling"),w=an(h,"childNodes"),b=an(h,"parentNode"),f=an(h,"shadowRoot"),_=an(h,"attributes"),v=l&&l.prototype?an(l.prototype,"nodeType"):null,k=l&&l.prototype?an(l.prototype,"nodeName"):null,A=l&&l.prototype?an(l.prototype,"ownerDocument"):null,B=function(T){return v?v(T):T.nodeType},x=function(T){return k?k(T):T.nodeName};if(typeof i=="function"){const ve=a.createElement("template");ve.content&&ve.content.ownerDocument&&(a=ve.content.ownerDocument)}let N,D="",P,H=!1,M=0;const z=function(){if(M>0)throw On('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.')},j=function(T){z(),M++;try{return N.createHTML(T)}finally{M--}},S=function(T){z(),M++;try{return N.createScriptURL(T)}finally{M--}},I=function(){return H||(P=U0(m,s),H=!0),P},W=a,Z=W.implementation,U=W.createNodeIterator,q=W.createDocumentFragment,K=W.getElementsByTagName,L=r.importNode;let E=Fs();n.isSupported=typeof ws=="function"&&typeof b=="function"&&Z&&Z.createHTMLDocument!==void 0;const F=T0,R=M0,O=L0,$=$0,Y=R0,Q=P0,X=I0,ce=O0;let xe=$s,te=null;const re=tt({},[...js,..._r,...wr,...Ar,...Ts]);let V=null;const ae=tt({},[...Ms,...kr,...Ls,...Fa]);let ue=Object.seal(Yn(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}})),ge=null,me=null;const oe=Object.seal(Yn(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let he=!0,_e=!0,Le=!1,Ue=!0,Ie=!1,de=!0,Ae=!1,Re=!1,Pe=null,we=null,Se=!1,Oe=!1,Be=!1,nt=!1,Ge=!0,Xe=!1;const De="user-content-";let je=!0,ke=!1,Me={},We=null;const ht=tt({},["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 wt=null;const Et=tt({},["audio","video","img","source","image","track"]);let At=null;const rt=tt({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Ye="http://www.w3.org/1998/Math/MathML",at="http://www.w3.org/2000/svg",ot="http://www.w3.org/1999/xhtml";let qe=ot,ut=!1,Ke=null;const Ct=tt({},[Ye,at,ot],xr),jt=_t(["mi","mo","mn","ms","mtext"]);let kt=tt({},jt);const dt=_t(["annotation-xml"]);let st=tt({},dt);const He=tt({},["title","style","font","a","script"]);let Qe=null;const pt=["application/xhtml+xml","text/html"],Ot="text/html";let Je=null,Tt=null;const Yt=a.createElement("form"),Mt=function(T){return T instanceof RegExp||T instanceof Function},ln=function(){let T=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(Tt&&Tt===T)return;(!T||typeof T!="object")&&(T={}),T=Jt(T),Qe=pt.indexOf(T.PARSER_MEDIA_TYPE)===-1?Ot:T.PARSER_MEDIA_TYPE,Je=Qe==="application/xhtml+xml"?xr:ma,te=En(T,"ALLOWED_TAGS",re,{transform:Je}),V=En(T,"ALLOWED_ATTR",ae,{transform:Je}),Ke=En(T,"ALLOWED_NAMESPACES",Ct,{transform:xr}),At=En(T,"ADD_URI_SAFE_ATTR",rt,{transform:Je,base:rt}),wt=En(T,"ADD_DATA_URI_TAGS",Et,{transform:Je,base:Et}),We=En(T,"FORBID_CONTENTS",ht,{transform:Je}),ge=En(T,"FORBID_TAGS",Jt({}),{transform:Je}),me=En(T,"FORBID_ATTR",Jt({}),{transform:Je}),Me=Ut(T,"USE_PROFILES")?T.USE_PROFILES&&typeof T.USE_PROFILES=="object"?Jt(T.USE_PROFILES):T.USE_PROFILES:!1,he=T.ALLOW_ARIA_ATTR!==!1,_e=T.ALLOW_DATA_ATTR!==!1,Le=T.ALLOW_UNKNOWN_PROTOCOLS||!1,Ue=T.ALLOW_SELF_CLOSE_IN_ATTR!==!1,Ie=T.SAFE_FOR_TEMPLATES||!1,de=T.SAFE_FOR_XML!==!1,Ae=T.WHOLE_DOCUMENT||!1,Oe=T.RETURN_DOM||!1,Be=T.RETURN_DOM_FRAGMENT||!1,nt=T.RETURN_TRUSTED_TYPE||!1,Se=T.FORCE_BODY||!1,Ge=T.SANITIZE_DOM!==!1,Xe=T.SANITIZE_NAMED_PROPS||!1,je=T.KEEP_CONTENT!==!1,ke=T.IN_PLACE||!1,xe=D0(T.ALLOWED_URI_REGEXP)?T.ALLOWED_URI_REGEXP:$s,qe=typeof T.NAMESPACE=="string"?T.NAMESPACE:ot,kt=Br(T,"MATHML_TEXT_INTEGRATION_POINTS",()=>tt({},jt)),st=Br(T,"HTML_INTEGRATION_POINTS",()=>tt({},dt));const J=Br(T,"CUSTOM_ELEMENT_HANDLING",()=>Yn(null));if(ue=Yn(null),Ut(J,"tagNameCheck")&&Mt(J.tagNameCheck)&&(ue.tagNameCheck=J.tagNameCheck),Ut(J,"attributeNameCheck")&&Mt(J.attributeNameCheck)&&(ue.attributeNameCheck=J.attributeNameCheck),Ut(J,"allowCustomizedBuiltInElements")&&typeof J.allowCustomizedBuiltInElements=="boolean"&&(ue.allowCustomizedBuiltInElements=J.allowCustomizedBuiltInElements),Nt(ue),Ie&&(_e=!1),Be&&(Oe=!0),Me&&(te=tt({},Ts),V=Yn(null),Me.html===!0&&(tt(te,js),tt(V,Ms)),Me.svg===!0&&(tt(te,_r),tt(V,kr),tt(V,Fa)),Me.svgFilters===!0&&(tt(te,wr),tt(V,kr),tt(V,Fa)),Me.mathMl===!0&&(tt(te,Ar),tt(V,Ls),tt(V,Fa))),oe.tagCheck=null,oe.attributeCheck=null,Ut(T,"ADD_TAGS")&&(typeof T.ADD_TAGS=="function"?oe.tagCheck=T.ADD_TAGS:Zn(T.ADD_TAGS)&&(te===re&&(te=Jt(te)),tt(te,T.ADD_TAGS,Je))),Ut(T,"ADD_ATTR")&&(typeof T.ADD_ATTR=="function"?oe.attributeCheck=T.ADD_ATTR:Zn(T.ADD_ATTR)&&(V===ae&&(V=Jt(V)),tt(V,T.ADD_ATTR,Je))),Ut(T,"ADD_FORBID_CONTENTS")&&Zn(T.ADD_FORBID_CONTENTS)&&(We===ht&&(We=Jt(We)),tt(We,T.ADD_FORBID_CONTENTS,Je)),je&&(te["#text"]=!0),Ae&&tt(te,["html","head","body"]),te.table&&(tt(te,["tbody"]),delete ge.tbody),T.TRUSTED_TYPES_POLICY){if(typeof T.TRUSTED_TYPES_POLICY.createHTML!="function")throw On('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof T.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw On('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');const pe=N;N=T.TRUSTED_TYPES_POLICY;try{D=j("")}catch($e){throw N=pe,$e}}else T.TRUSTED_TYPES_POLICY===null?(N=void 0,D=""):(N===void 0&&(N=I()),N&&typeof D=="string"&&(D=j("")));_t&&_t(T),Tt=T},un=tt({},[..._r,...wr,...S0]),cn=tt({},[...Ar,...j0]),Rn=function(T,J,pe){return J.namespaceURI===ot?T==="svg":J.namespaceURI===Ye?T==="svg"&&(pe==="annotation-xml"||kt[pe]):!!un[T]},dn=function(T,J,pe){return J.namespaceURI===ot?T==="math":J.namespaceURI===at?T==="math"&&st[pe]:!!cn[T]},Pn=function(T,J,pe){return J.namespaceURI===at&&!st[pe]||J.namespaceURI===Ye&&!kt[pe]?!1:!cn[T]&&(He[T]||!un[T])},Nn=function(T){let J=b(T);(!J||!J.tagName)&&(J={namespaceURI:qe,tagName:"template"});const pe=ma(T.tagName),$e=ma(J.tagName);return Ke[T.namespaceURI]?T.namespaceURI===at?Rn(pe,J,$e):T.namespaceURI===Ye?dn(pe,J,$e):T.namespaceURI===ot?Pn(pe,J,$e):!!(Qe==="application/xhtml+xml"&&Ke[T.namespaceURI]):!1},Bt=function(T){pa(n.removed,{element:T});try{b(T).removeChild(T)}catch{if(y(T),!b(T))throw On("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place")}},mn=function(T,J,pe){try{T.removeAttributeNode(J)}catch{try{T.removeAttribute(pe)}catch{}}},Ht=function(T){en(T);const J=w(T);if(J){const $e=[];Fn(J,Fe=>{pa($e,Fe)}),Fn($e,Fe=>{try{y(Fe)}catch{}})}const pe=_(T);if(pe)for(let $e=pe.length-1;$e>=0;--$e){const Fe=pe[$e],Ve=Fe&&Fe.name;typeof Ve=="string"&&mn(T,Fe,Ve)}},Zt=function(T,J,pe){if(!pe)try{pe=J.getAttributeNode(T)}catch{pe=null}pa(n.removed,{attribute:pe||null,from:J});try{pe?J.removeAttributeNode(pe):J.removeAttribute(T)}catch{try{J.removeAttribute(T)}catch{}}if(T==="is")if(Oe||Be)try{Bt(J)}catch{}else try{J.setAttribute(T,"")}catch{}},hn=function(T){const J=_(T);if(J)for(let pe=J.length-1;pe>=0;--pe){const $e=J[pe],Fe=$e&&$e.name;typeof Fe!="string"||V[Je(Fe)]||mn(T,$e,Fe)}},en=function(T){const J=[T];for(;J.length>0;){const pe=J.pop();B(pe)===Qt.element&&hn(pe);const Fe=w(pe);if(Fe)for(let Ve=Fe.length-1;Ve>=0;--Ve)J.push(Fe[Ve])}},Cn=function(T,J){return de?T==="patchsrc"?!0:T==="for"&&J!=="label"&&J!=="output":!1},In=function(T){if(!de)return;const J=[T];for(;J.length>0;){const pe=J.pop(),$e=B(pe);if($e===Qt.processingInstruction||$e===Qt.comment&&$t(Ps,pe.data)){try{y(pe)}catch{}continue}if($e===Qt.element){const Ve=pe,lt=Je(x(pe));try{Ve.hasAttribute&&Ve.hasAttribute("patchsrc")&&Ve.removeAttribute("patchsrc"),Ve.hasAttribute&&Ve.hasAttribute("for")&&Cn("for",lt)&&Ve.removeAttribute("for")}catch{}}const Fe=w(pe);if(Fe)for(let Ve=Fe.length-1;Ve>=0;--Ve)J.push(Fe[Ve])}},fn=function(T){let J=null,pe=null;if(Se)T="<remove></remove>"+T;else{const Ve=Ns(T,/^[\r\n\t ]+/);pe=Ve&&Ve[0]}Qe==="application/xhtml+xml"&&qe===ot&&(T='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+T+"</body></html>");const $e=N?j(T):T;if(qe===ot)try{J=new p().parseFromString($e,Qe)}catch{}if(!J||!J.documentElement){J=Z.createDocument(qe,"template",null);try{J.documentElement.innerHTML=ut?D:$e}catch{}}const Fe=J.body||J.documentElement;return T&&pe&&Fe.insertBefore(a.createTextNode(pe),Fe.childNodes[0]||null),qe===ot?K.call(J,Ae?"html":"body")[0]:Ae?J.documentElement:Fe},ne=function(T){const J=A?A(T):T.ownerDocument;return U.call(J||T,T,d.SHOW_ELEMENT|d.SHOW_COMMENT|d.SHOW_TEXT|d.SHOW_PROCESSING_INSTRUCTION|d.SHOW_CDATA_SECTION,null)},fe=function(T){return T=ha(T,F," "),T=ha(T,R," "),T=ha(T,O," "),T},G=function(T){var J;T.normalize();const pe=A?A(T):T.ownerDocument,$e=U.call(pe||T,T,d.SHOW_TEXT|d.SHOW_COMMENT|d.SHOW_CDATA_SECTION|d.SHOW_PROCESSING_INSTRUCTION,null);let Fe=$e.nextNode();for(;Fe;)Fe.data=fe(Fe.data),Fe=$e.nextNode();const Ve=(J=T.querySelectorAll)===null||J===void 0?void 0:J.call(T,"template");Ve&&Fn(Ve,lt=>{ie(lt.content)&&G(lt.content)})},se=function(T){const J=k?k(T):null;return typeof J!="string"||Je(J)!=="form"?!1:typeof T.nodeName!="string"||typeof T.textContent!="string"||typeof T.removeChild!="function"||T.attributes!==_(T)||typeof T.removeAttribute!="function"||typeof T.setAttribute!="function"||typeof T.namespaceURI!="string"||typeof T.insertBefore!="function"||typeof T.hasChildNodes!="function"||T.nodeType!==v(T)||T.childNodes!==w(T)},ie=function(T){if(!v||typeof T!="object"||T===null)return!1;try{return v(T)===Qt.documentFragment}catch{return!1}},be=function(T){if(!v||typeof T!="object"||T===null)return!1;try{return typeof v(T)=="number"}catch{return!1}};function ye(ve,T,J){ve.length!==0&&Fn(ve,pe=>{pe.call(n,T,J,Tt)})}const Te=function(T,J){return!!(de&&T.hasChildNodes()&&!be(T.firstElementChild)&&$t(Rs,T.textContent)&&$t(Rs,T.innerHTML)||de&&T.namespaceURI===ot&&V0[J]&&(be(T.firstElementChild)||typeof T.textContent=="string"&&$t(W0[J],T.textContent))||T.nodeType===Qt.processingInstruction||de&&T.nodeType===Qt.comment&&$t(Ps,T.data))},et=function(T,J){if(T instanceof RegExp)return $t(T,J);if(T instanceof Function){for(var pe=arguments.length,$e=new Array(pe>2?pe-2:0),Fe=2;Fe<pe;Fe++)$e[Fe-2]=arguments[Fe];return!!T(J,...$e)}return!1},ft=function(T,J,pe){if(!ge[J]&&Ne(J)&&et(ue.tagNameCheck,J))return!1;if(je&&!We[J]){const $e=b(T),Fe=w(T);if(Fe&&$e){const Ve=Fe.length;for(let lt=Ve-1;lt>=0;--lt){const mt=T===pe?g(Fe[lt],!0):Fe[lt];$e.insertBefore(mt,C(T))}}}return Bt(T),!0},it=function(T,J,pe,$e){return T.length===0?J:J===pe||J===$e?Jt(J):J},yt=function(T,J){return T===J||b(T)!==null?!1:(ke&&en(T),!0)},Rt=function(T,J){if(ye(E.beforeSanitizeElements,T,null),yt(T,J))return!0;if(se(T))return Bt(T),!0;const pe=Je(x(T));if(te=it(E.uponSanitizeElement,te,re,Pe),ye(E.uponSanitizeElement,T,{tagName:pe,allowedTags:te}),yt(T,J))return!0;if(Te(T,pe))return Bt(T),!0;if(ge[pe]||!(oe.tagCheck instanceof Function&&oe.tagCheck(pe))&&!te[pe]){const Fe=ft(T,pe,J);return Fe===!1&&ye(E.afterSanitizeElements,T,null),Fe}if(B(T)===Qt.element&&!Nn(T)||(pe==="noscript"||pe==="noembed"||pe==="noframes")&&$t(H0,T.innerHTML))return Bt(T),!0;if(Ie&&T.nodeType===Qt.text){const Fe=fe(T.textContent);T.textContent!==Fe&&(pa(n.removed,{element:T.cloneNode()}),T.textContent=Fe)}return ye(E.afterSanitizeElements,T,null),!1},Lt=function(T,J,pe){if(me[J]||Cn(J,T)||Ge&&(J==="id"||J==="name")&&(pe in a||pe in Yt))return!1;const $e=V[J]||oe.attributeCheck instanceof Function&&oe.attributeCheck(J,T);return _e&&$t($,J)||he&&$t(Y,J)?!0:$e?At[J]||$t(xe,ha(pe,X,""))||(J==="src"||J==="xlink:href"||J==="href")&&T!=="script"&&Es(pe,"data:")===0&&wt[T]||Le&&!$t(Q,ha(pe,X,""))?!0:!pe:Ne(T)&&et(ue.tagNameCheck,T)&&et(ue.attributeNameCheck,J,T)||J==="is"&&ue.allowCustomizedBuiltInElements&&et(ue.tagNameCheck,pe)},nn=tt({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),Ne=function(T){return!nn[ma(T)]&&$t(ce,T)},ze=function(T,J,pe,$e){if(N&&typeof m=="object"&&typeof m.getAttributeType=="function"&&!pe)switch(m.getAttributeType(T,J)){case"TrustedHTML":return j($e);case"TrustedScriptURL":return S($e)}return $e},vt=function(T,J,pe,$e){try{pe?T.setAttributeNS(pe,J,$e):T.setAttribute(J,$e),se(T)?Bt(T):Bs(n.removed)}catch{Zt(J,T)}},zt=function(T){ye(E.beforeSanitizeAttributes,T,null);const J=T.attributes;if(!J||se(T))return;V=it(E.uponSanitizeAttribute,V,ae,we);const pe={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:V,forceKeepAttr:void 0};let $e=J.length;const Fe=Je(T.nodeName);for(;$e--;){const Ve=J[$e],lt=Ve.name,mt=Ve.namespaceURI,Wt=Ve.value,qt=Je(lt),fr=Wt;let Pt=lt==="value"?fr:w0(fr);if(pe.attrName=qt,pe.attrValue=Pt,pe.keepAttr=!0,pe.forceKeepAttr=void 0,ye(E.uponSanitizeAttribute,T,pe),Pt=pe.attrValue,Xe&&(qt==="id"||qt==="name")&&Es(Pt,De)!==0&&(Zt(lt,T,Ve),Pt=De+Pt),de&&$t(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,Pt)){Zt(lt,T,Ve);continue}if(qt==="attributename"&&Ns(Pt,"href")){Zt(lt,T,Ve);continue}if(!pe.forceKeepAttr){if(!pe.keepAttr){Zt(lt,T,Ve);continue}if(!Ue&&$t(z0,Pt)){Zt(lt,T,Ve);continue}if(Ie&&(Pt=fe(Pt)),!Lt(Fe,qt,Pt)){Zt(lt,T,Ve);continue}Pt=ze(Fe,qt,mt,Pt),Pt!==fr&&vt(T,lt,mt,Pt)}}ye(E.afterSanitizeAttributes,T,null)},Vt=function(T){let J=null;const pe=ne(T);for(ye(E.beforeSanitizeShadowDOM,T,null);J=pe.nextNode();)if(ye(E.uponSanitizeShadowNode,J,null),Rt(J,T),zt(J),ie(J.content)&&Vt(J.content),B(J)===Qt.element){const $e=f(J);ie($e)&&(Cr($e),Vt($e))}ye(E.afterSanitizeShadowDOM,T,null)},Cr=function(T){const J=[{node:T,shadow:null}];for(;J.length>0;){const pe=J.pop();if(pe.shadow){Vt(pe.shadow);continue}const $e=pe.node,Ve=B($e)===Qt.element,lt=w($e);if(lt)for(let mt=lt.length-1;mt>=0;--mt)J.push({node:lt[mt],shadow:null});if(Ve){const mt=k?k($e):null;if(typeof mt=="string"&&Je(mt)==="template"){const Wt=$e.content;ie(Wt)&&J.push({node:Wt,shadow:null})}}if(Ve){const mt=f($e);ie(mt)&&J.push({node:null,shadow:mt},{node:mt,shadow:null})}}};return n.sanitize=function(ve){let T=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},J=null,pe=null,$e=null,Fe=null;if(ut=!ve,ut&&(ve="<!-->"),typeof ve!="string"&&!be(ve)&&(ve=E0(ve),typeof ve!="string"))throw On("dirty is not a string, aborting");if(!n.isSupported)return ve;Re?(te=Pe,V=we):ln(T),(E.uponSanitizeElement.length>0||E.uponSanitizeAttribute.length>0)&&(te=Jt(te)),E.uponSanitizeAttribute.length>0&&(V=Jt(V)),n.removed=[];const Ve=ke&&typeof ve!="string"&&be(ve);if(Ve){In(ve);const Wt=x(ve);if(typeof Wt=="string"){const qt=Je(Wt);if(!te[qt]||ge[qt])throw Ht(ve),On("root node is forbidden and cannot be sanitized in-place")}if(se(ve))throw Ht(ve),On("root node is clobbered and cannot be sanitized in-place");try{Cr(ve)}catch(qt){throw Ht(ve),qt}}else if(be(ve))J=fn("<!---->"),pe=J.ownerDocument.importNode(ve,!0),pe.nodeType===Qt.element&&pe.nodeName==="BODY"||pe.nodeName==="HTML"?J=pe:J.appendChild(pe),Cr(pe);else{if(!Oe&&!Ie&&!Ae&&ve.indexOf("<")===-1)return N&&nt?j(ve):ve;if(J=fn(ve),!J)return Oe?null:nt?D:""}J&&Se&&Bt(J.firstChild);const lt=Ve?ve:J;try{const Wt=ne(lt);for(;$e=Wt.nextNode();)Rt($e,lt),zt($e),ie($e.content)&&Vt($e.content)}catch(Wt){throw Ve&&(Ht(ve),Fn(n.removed,qt=>{qt.element&&en(qt.element)})),Wt}if(Ve)return Fn(n.removed,Wt=>{Wt.element&&en(Wt.element)}),Ie&&G(ve),ve;if(Oe){if(Ie&&G(J),Be)for(Fe=q.call(J.ownerDocument);J.firstChild;)Fe.appendChild(J.firstChild);else Fe=J;return(V.shadowroot||V.shadowrootmode)&&(Fe=L.call(r,Fe,!0)),Fe}let mt=Ae?J.outerHTML:J.innerHTML;return Ae&&te["!doctype"]&&J.ownerDocument&&J.ownerDocument.doctype&&J.ownerDocument.doctype.name&&$t(F0,J.ownerDocument.doctype.name)&&(mt="<!DOCTYPE "+J.ownerDocument.doctype.name+`>
|
|
828
|
+
`+mt),Ie&&(mt=fe(mt)),N&&nt?j(mt):mt},n.setConfig=function(){let ve=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};ln(ve),Re=!0,Pe=te,we=V},n.clearConfig=function(){Tt=null,Re=!1,Pe=null,we=null,N=P,D=""},n.isValidAttribute=function(ve,T,J){Tt||ln({});const pe=Je(ve),$e=Je(T);return Lt(pe,$e,J)},n.addHook=function(ve,T){typeof T=="function"&&Ut(E,ve)&&pa(E[ve],T)},n.removeHook=function(ve,T){if(Ut(E,ve)){if(T!==void 0){const J=x0(E[ve],T);return J===-1?void 0:_0(E[ve],J,1)[0]}return Bs(E[ve])}},n.removeHooks=function(ve){Ut(E,ve)&&(E[ve]=[])},n.removeAllHooks=function(){E=Fs()},n}var Nr=Os();const G0=/^(?:[a-z]+:)?\/\//i,K0="__ihab_core_asset_base_url__";function Y0(){return globalThis[K0]??""}function Er(e){const n=String(e||"").trim();if(!n)return"";if(G0.test(n)||n.startsWith("data:")||n.startsWith("blob:"))return n;const a=n.startsWith("/")?n:`/${n}`,r=Y0();return r?`${r}${a}`:a}const Hs="__ihab_core_storage_resolvers__";function fa(){return globalThis[Hs]??null}function Z0(e){globalThis[Hs]=e}let zs=class extends Error{constructor(n){super(`
|
|
829
829
|
[ihabdevteam-core] ${n}() \uD638\uCD9C \uC2E4\uD328 \u2014 configureStorage()\uAC00 \uC124\uC815\uB418\uC9C0 \uC54A\uC558\uC2B5\uB2C8\uB2E4.
|
|
830
830
|
|
|
831
831
|
\uC571 \uCD08\uAE30\uD654 \uC2DC\uC810(main.tsx \uB4F1)\uC5D0 \uC544\uB798\uC640 \uAC19\uC774 \uD55C \uBC88 \uD638\uCD9C\uD558\uC138\uC694:
|
|
@@ -844,25 +844,25 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
844
844
|
\uC124\uCE58 \uBA85\uB839\uC5B4 (\uC2A4\uD1A0\uB9AC\uC9C0 SDK \uBBF8\uC124\uCE58 \uC2DC):
|
|
845
845
|
npm install @supabase/supabase-js
|
|
846
846
|
pnpm add @supabase/supabase-js
|
|
847
|
-
`),this.name="StorageNotConfiguredError"}};function X0(e){Z0(e)}function Vs(e,n){if(!e)return null;const a=fa();return a?.resolvePath?a.resolvePath(e,n):n?`${n}/${e}.mp3`:null}async function Ws(e){if(!e)return null;const n=fa();if(!n)throw new zs("getSignedOrPublicUrl");try{return await n.resolveUrl(e)}catch{return null}}async function qs(e){const n=fa();if(!n)throw new zs("downloadSound");return n.download(e)}function J0(){return fa()?.noiseBaseUrl??"/sounds/noise"}function Us(){const e=Number(fa()?.noiseFileGain);return Number.isFinite(e)&&e>0?e:1}function Q0(e){const n=AbortSignal.timeout;if(typeof n=="function")return n.call(AbortSignal,e);const a=new AbortController;return setTimeout(()=>a.abort(),e),a.signal}const Gs="__ihab_core_tts_config__";function Dr(){return globalThis[Gs]?.urlResolver??null}function eC(){return globalThis[Gs]?.fallbackUrlResolver??null}const tC="__ihab_core_pronunciation_resolver__";function nC(){return globalThis[tC]??null}let Dn=null;const ga=new WeakMap,Sr=new WeakMap,jr=new WeakMap;let Ks=!1;const Ys=e=>Math.max(0,Math.min(1,Number.isFinite(e)?e:0));function aC(){if(Ks||typeof document>"u")return;Ks=!0;const e=()=>{try{Dn&&Dn.state!=="running"&&Dn.resume()}catch{}};for(const n of["pointerdown","touchend","keydown"])document.addEventListener(n,e,{capture:!0,passive:!0})}function Zs(){if(Dn)return Dn;try{const e=window.AudioContext||window.webkitAudioContext;return e?(Dn=new e,aC(),Dn):null}catch{return null}}function Tr(){try{Dn?.resume()}catch{}}function Mr(e,n){const a=ga.get(n);if(a)return a;try{const r=e.createMediaElementSource(n),s=e.createGain(),i=e.createAnalyser();i.fftSize=1024,i.smoothingTimeConstant=.6,s.gain.value=Ys(Sr.get(n)??n.volume),r.connect(s),s.connect(i),s.connect(e.destination);try{n.volume=1}catch{}const l={gain:s,analyser:i};return ga.set(n,l),l}catch{return null}}function Oa(e){if(!e)return Promise.resolve(null);const n=ga.get(e);if(n)return Promise.resolve(n.analyser);const a=Zs();if(!a)return Promise.resolve(null);if(a.state==="running")return Promise.resolve(Mr(a,e)?.analyser??null);const r=jr.get(e);if(r)return r;const s=Promise.resolve().then(()=>a.resume()).then(()=>a.state==="running"?Mr(a,e)?.analyser??null:null).catch(()=>null).finally(()=>{jr.delete(e)});return jr.set(e,s),s}function rC(e){if(!e)return null;const n=ga.get(e);if(n)return n.analyser;const a=Zs();return a?a.state==="running"?Mr(a,e)?.analyser??null:(Oa(e),null):null}function Sn(e,n){const a=Ys(n);Sr.set(e,a);const r=ga.get(e);if(r){try{e.volume!==1&&(e.volume=1)}catch{}const s=r.gain.gain;try{const i=r.gain.context.currentTime;s.cancelScheduledValues(i),s.setTargetAtTime(a,i,.01)}catch{try{s.value=a}catch{}}return"gain"}try{e.volume=a}catch{}return"element"}function Ha(e){return Sr.get(e)??e.volume}function oC(e,n){e.getFloatTimeDomainData(n);let a=0;for(let r=0;r<n.length;r++){const s=n[r];a+=s*s}return Math.sqrt(a/n.length)}const sC="__ihab_core_image_config__";function Xn(){return globalThis[sC]??null}const Xs="word_image_existence_map_v1";let Hn=null;const za=new Map;function iC(){if(Hn)return Hn;try{const e=typeof localStorage<"u"?localStorage.getItem(Xs):null,n=e?JSON.parse(e):null;Hn=n&&typeof n=="object"&&!Array.isArray(n)?n:{}}catch{Hn={}}return Hn}let Lr=null;function lC(){Lr||(Lr=setTimeout(()=>{Lr=null;try{typeof localStorage<"u"&&Hn&&localStorage.setItem(Xs,JSON.stringify(Hn))}catch{}},200))}function cC(e,n){return`${e}_${n??1}`}async function Js(e,n){const a=iC(),r=cC(e,n);if(r in a)return a[r];if(za.has(r))return za.get(r);const s=Xn();if(!s)return!1;const i=s(e,n);if(!i)return!1;const l=fetch(i,{method:"HEAD",signal:Q0(8e3)}).then(c=>c.status>=500?null:c.ok,()=>null).then(c=>(za.delete(r),c===null?!1:(a[r]=c,lC(),c)));return za.set(r,l),l}const uC={\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"}},Qs=["\u3131","\u3132","\u3134","\u3137","\u3138","\u3139","\u3141","\u3142","\u3143","\u3145","\u3146","\u3147","\u3148","\u3149","\u314A","\u314B","\u314C","\u314D","\u314E"],ei=["\u314F","\u3150","\u3151","\u3152","\u3153","\u3154","\u3155","\u3156","\u3157","\u3158","\u3159","\u315A","\u315B","\u315C","\u315D","\u315E","\u315F","\u3160","\u3161","\u3162","\u3163"],dC=["","\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 ba(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 pC(e){const n=ba(e[0]||"");return n?Qs[n.cho]:""}function mC(e){if(!e)return()=>!0;e=e.normalize("NFC");const n=[...e],a=l=>Qs.includes(l),r=l=>ei.includes(l),s=n.map(l=>a(l)?"cho":r(l)?"jung":ba(l)?"syl":"other"),i=n.map(l=>ba(l));if(s.includes("other")){const l=e.toLowerCase();return c=>c.normalize("NFC").toLowerCase().includes(l)}return l=>{const c=[...l.normalize("NFC")];for(let d=0;d+n.length<=c.length;d++){let u=!0;for(let p=0;p<n.length;p++){const m=c[d+p],h=s[p];if(h==="cho"){if(pC(m)!==n[p]){u=!1;break}}else if(h==="jung"){const f=ba(m);if(!f||ei[f.jung]!==n[p]){u=!1;break}}else{const f=i[p];if(f&&f.jong===0){const y=ba(m);if(!y||y.cho!==f.cho||y.jung!==f.jung){u=!1;break}}else if(m!==n[p]){u=!1;break}}}if(u)return!0}return!1}}const hC={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(hC).map(([e,n])=>[n.join(""),dC[Number(e)]]));const CC="word_pair_index_v2",fC="word_pair_index_sig_v2";let Va=null;function gC(){try{if(typeof localStorage>"u")return null;const e=localStorage.getItem(CC),n=localStorage.getItem(fC);return!e||!n?null:{index:JSON.parse(e),sig:n}}catch{return null}}function bC(){if(Va)return Va;const e=gC();return e?(Va=e.index,e.sig,Va):null}const $r=/[ㄱ-ㅎ]/,yC=/[ㅏ-ㅣ]/;function ti(e){e=e.normalize("NFC");for(let n=e.length-1;n>=0;n--){const a=e[n],r=a.charCodeAt(0);if(r>=44032&&r<=55203||$r.test(a)||yC.test(a))return a}return null}function vC(e){const n=ti(e);if(!n)return"\uAC00";const a=n.charCodeAt(0);return a>=44032&&a<=55203?(a-44032)%28!==0?"\uC774":"\uAC00":$r.test(n)?"\uC774":"\uAC00"}function xC(e){return`${e}${vC(e)}`}function _C(e){const n=ti(e);if(!n)return"\uB97C";const a=n.charCodeAt(0);return a>=44032&&a<=55203?(a-44032)%28!==0?"\uC744":"\uB97C":$r.test(n)?"\uC744":"\uB97C"}function wC(e){return`${e}${_C(e)}`}function AC(e,n,a){const r=e.slice(),[s]=r.splice(n,1);return r.splice(a,0,s),r}function ya(e,n=Math.random){const a=e.slice();for(let r=a.length-1;r>0;r--){const s=Math.floor(n()*(r+1));[a[r],a[s]]=[a[s],a[r]]}return a}const kC=()=>{const e="\uC54C \uC218 \uC5C6\uB294 \uC624\uB958",n=typeof Dt?.t=="function"?Dt.t("common.unknownError",{defaultValue:e}):void 0;return typeof n=="string"&&n?n:e};function ni(e,n){if(n===void 0&&(n=kC()),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 BC="__ihab_core_word_pool__";function ai(){return globalThis[BC]??null}const ri=globalThis;function oi(e,n){const a=r=>{};try{const r=n();r&&typeof r.catch=="function"&&r.catch(a)}catch(r){a(r)}}function NC(e){oi("time",()=>ri.__ihabTrainingTimeLogger?.(e))}function EC(e){oi("completion",()=>ri.__ihabTrainingCompletionLogger?.(e))}function Gt(e){return typeof e=="string"?e.trim()||null:typeof e=="number"?String(e):null}function DC(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 SC(e){return Array.isArray(e)?e.map((n,a)=>{const r=n??{};return{index:a,itemId:Gt(r.contextCode)??Gt(r.itemId)??Gt(r.itemCode)??Gt(r.id),question:Gt(r.question)??Gt(r.q)??Gt(r.sentence)??Gt(r.text)??Gt(r.prompt)??Gt(r.word)??Gt(r.targetSyllable),answer:Gt(r.answer),selected:Gt(r.selectedText)??Gt(r.selected),correct:DC(r)}}):[]}const Rr=globalThis;async function jC(){try{return await Rr.__ihabNoiseSettingsStore?.load()??null}catch{return null}}function si(e){const n=a=>{};try{const a=Rr.__ihabNoiseSettingsStore?.save(e);a&&typeof a.catch=="function"&&a.catch(n)}catch(a){n(a)}}function Wa(e){try{Rr.__ihabNoiseSettingsStore?.applied?.(e)}catch{}}async function TC(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}const MC=/^(\d{4}-\d{2}-\d{2})[T ](\d{2}:\d{2})(?::(\d{2})(?:\.(\d+))?)?$/;function ii(e){let n;if(e instanceof Date)n=e;else if(typeof e=="string"){const a=e.trim(),r=MC.exec(a);n=new Date(r?`${r[1]}T${r[2]}:${r[3]??"00"}${r[4]?`.${r[4].slice(0,3).padEnd(3,"0")}`:""}+09:00`:a)}else n=new Date(e);return Number.isNaN(n.getTime())?null:n}function va(){return Ir(new Date)}function Pr(e){return e&&/^\d{4}-\d{2}-\d{2}$/.test(e)?e:va()}function Jn(){return $C(va())}const LC=540*60*1e3;function li(e,n,a){return new Date(Date.UTC(e,n,a)-LC)}function $C(e){const[n,a,r]=e.split("-").map(Number);return new Date(n,(a||1)-1,r||1)}function Ir(e){if(e==null||e==="")return"";const n=ii(e);return n?new Intl.DateTimeFormat("fr-CA",{timeZone:"Asia/Seoul"}).format(n):""}function ci(e,n){if(!e)return"";const a=ii(e);if(!a)return"";const r=a.getTime(),s=Math.max(0,Math.floor((Date.now()-r)/1e3)),i=Math.floor(s/60),l=Math.floor(i/60),c=Math.floor(l/24),d=Math.floor(c/7),u=Math.floor(c/30),p=Math.floor(c/365);return i<1?n("store.time.justNow","\uBC29\uAE08 \uC804"):i<60?n("store.time.minutesAgo",{n:i}):l<24?n("store.time.hoursAgo",{n:l}):c<7?n("store.time.daysAgo",{n:c}):d<5?n("store.time.weeksAgo",{n:d}):c<365?n("store.time.monthsAgo",{n:Math.min(u,11)}):n("store.time.yearsAgo",{n:p})}function ui(e,n={}){const{sep:a=".",pad:r=!0,trailingDot:s=!1,fallback:i="\u2014"}=n;if(!e)return i;const l=Ir(e instanceof Date?e:String(e));if(!l)return i;const[c,d,u]=l.split("-"),p=r?d:String(Number(d)),m=r?u:String(Number(u));return`${c}${a}${p}${a}${m}${s?".":""}`}function Qn(e){if(!e)return e;const n=e.trim();return/^[₩$]/.test(n)?n:/원\s*$/.test(n)?"\u20A9"+n.replace(/\s*원\s*$/,"").trim():n}function di(e,n){if(!e)return"-";const a=/^(\d{1,2}):(\d{2})$/.exec(e.trim());if(!a)return e;const r=Number(a[1]),s=Number(a[2]),i=a[1].padStart(2,"0");return s===0?n("date.timeH",{h:r,hh:i,mm:a[2]}):n("date.timeHM",{h:r,hh:i,m:s,mm:a[2]})}function Fr(e){return(e??0).toLocaleString("ko-KR")}const RC=[{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"}]}],PC=[{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 pi(){return RC}function IC(){return PC}const FC=[],OC=[],HC=[],zC=[];function VC(){return{LISTEN_IN_NOISE:FC,SHORT_STORY:OC,LONG_STORY:HC,ORDERING_SENTENCE:zC}}const WC=[{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."}],mi={LISTEN_IN_NOISE:"listenInNoise",SHORT_STORY:"shortStory",LONG_STORY:"longStory",ORDERING_SENTENCE:"orderingSentence"};function qC(e){return WC.map(n=>{const a=mi[n.key];return a?{...n,label:e(`trainingType.${a}.title`),desc:e(`trainingType.${a}.desc`)}:n})}let qa=null,hi=null,Ci=null;function UC(){const e=ai();if(e&&e.entries.length>0){const n=bC();if(qa&&hi===e&&Ci===n)return qa;const a=new Set,r=[];for(const s of e.entries)!s.word||a.has(s.word)||(a.add(s.word),r.push({w:s.word,s:s.syllables,p:n?.[s.word]?[...n[s.word].cho??[],...n[s.word].jung??[],...n[s.word].jong??[]]:[],pron:s.pronunciation||s.word,grade:s.grade}));return qa=r,hi=e,Ci=n,qa}return[]}new Proxy([],{get(e,n){const a=UC(),r=a[n];return typeof r=="function"?r.bind(a):r}});const GC="0.224.0";function KC(e){if(e.includes("\\")&&e.includes("("))return!0;if(!/url\s*\(/i.test(e))return!1;const n=e.replace(/url\(\s*(['"]?)#[^)'"]*\1\s*\)/gi,"");return/url\s*\(/i.test(n)}function YC(e){if(typeof window>"u")return"";const n=(a,r)=>{typeof r.attrValue=="string"&&KC(r.attrValue)&&(r.keepAttr=!1)};Nr.addHook("uponSanitizeAttribute",n);try{return Nr.sanitize(e,{USE_PROFILES:{svg:!0,svgFilters:!0},FORBID_TAGS:["script","use","style"],FORBID_ATTR:["xlink:href","href"]})}finally{Nr.removeHook("uponSanitizeAttribute",n)}}function ZC(e){const[n,a]=o.useState(null),[r,s]=o.useState(null),[i,l]=o.useState(null),[c,d]=o.useState(null);return o.useEffect(()=>{if(!e||typeof e!="string"||!e.endsWith(".svg")){a(null),s(null),l(null);return}const u=e.split("/").pop();let p=e;u&&(e.startsWith("/")?p=Er(e):/^(Logo|Symbol)/i.test(u)?p=Er(`logo/${u}`):(/^https?:\/\//i.test(e)||e.startsWith("data:"),p=e)),s(null),l(null),a(p)},[e]),o.useEffect(()=>{if(!n)return;let u=!1;async function p(){try{let m=await fetch(n);m.ok||(m=await fetch(n));const h=m.headers.get("content-type")||"";if(u)return;if(h.includes("svg")){s("mask");return}if(h.startsWith("image/")){s("img");return}const f=await fetch(n);if(!f.ok)throw new Error("not ok");const y=await f.text();if(u)return;if(/^\s*<svg[\s>]/i.test(y)){const C=YC(y);if(!C){s("none");return}l(C),s("inline");return}s("none")}catch{u||s("none")}}return p(),()=>{u=!0}},[n]),o.useEffect(()=>{let u=!1,p=null;return r==="mask"&&n&&fetch(n).then(m=>{if(!m.ok)throw new Error("fetch failed");return m.blob()}).then(m=>{u||(p=URL.createObjectURL(m),d(p))}).catch(()=>{u||s("img")}),()=>{u=!0,p&&URL.revokeObjectURL(p),d(null)}},[r,n]),{iconToUse:n,mode:r,svgText:i,blobUrl:c}}function Ze(e){const{icon:n,label:a,className:r,imgClassName:s,maskClassName:i,svgClassName:l,wrapperStyle:c,size:d}=e||{},u=r??"iconRenderer-icon",p=s??"iconRenderer-icon-image",m=i??"iconRenderer-icon-mask",h=l??"iconRenderer-icon-svg",f=typeof n=="string"?n:null,y=p0(f),{iconToUse:C,mode:w,svgText:b,blobUrl:g}=ZC(f),_=(x,N={})=>t.jsx("span",{className:u,style:c,...N,children:x}),v=typeof d=="number"?{width:d,height:d,objectFit:"contain"}:null,k=(x,N={})=>t.jsx("img",{src:x,alt:typeof a=="string"?a:typeof a=="number"?String(a):"",className:p,...N,style:v?{...N.style,...v}:N.style});if(!n)return null;if(typeof n!="string")return _(n);if(n==="none")return _(t.jsx("span",{className:h,dangerouslySetInnerHTML:{__html:'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" aria-hidden="true"></svg>'}}),{"aria-hidden":"true"});if(y)try{return _(o.createElement(y,{className:h,size:typeof d=="number"?d:20}),{"aria-hidden":"true"})}catch{}if(C&&C.endsWith(".svg")){if(w==="mask"){const x={"--icon-url":g?`url(${g})`:`url(${C})`,...typeof d=="number"?{"--icon-size":`${d}px`}:null};return _(t.jsx("span",{className:m,style:x}),{"aria-hidden":"true"})}return w==="img"?_(k(C,{onError:x=>{x.currentTarget.onerror=null,x.currentTarget.style.display="none"}}),{"aria-hidden":"true"}):w==="inline"?_(t.jsx("span",{className:h,dangerouslySetInnerHTML:b?{__html:b}:void 0}),{"aria-hidden":"true"}):_(null,{"aria-hidden":"true"})}if(n.startsWith("/")||n.includes("/assets/")||n.match(/\.(png|jpg|jpeg|webp|gif)$/i))return k(Er(n),{style:c,onError:x=>{x.currentTarget.onerror=null,x.currentTarget.style.display="none"}});const A=typeof d=="number"?d:20,B=`<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:h,dangerouslySetInnerHTML:{__html:B}}),{"aria-hidden":"true"})}function fi(e){const[n,a]=o.useState(!1),r=o.useRef(!1),s=o.useRef(!0);o.useEffect(()=>(s.current=!0,()=>{s.current=!1}),[]);const i=o.useCallback(()=>{if(!e||r.current)return;const l=e();if(l&&typeof l.then=="function"){r.current=!0,a(!0);const c=()=>{r.current=!1,s.current&&a(!1)};l.then(c,c)}},[e]);return{pending:n,press:i}}function XC({icon:e,title:n,message:a,action:r,className:s}){const{pending:i,press:l}=fi(r?.onClick);return t.jsxs("div",{className:Ee("empty-state",s),children:[e&&t.jsx(Ze,{icon:e,size:48,className:"empty-state__icon"}),n&&t.jsx("p",{className:"empty-state__title h4",children:n}),a&&t.jsx("p",{className:"empty-state__message body-3",children:a}),r&&t.jsxs("button",{type:"button",className:"empty-state__action button button40 button40--bar button--variant-main button--align-center button--shape-rounded",onClick:l,disabled:i,"aria-busy":i||void 0,children:[r.icon&&t.jsx(Ze,{icon:r.icon,className:"button__icon"}),t.jsx("span",{className:"button__label button-1",children:r.label})]})]})}function JC({message:e,hint:n,icon:a="triangle-alert",onRetry:r,retryLabel:s,className:i}){const{t:l}=Ce.useTranslation(),{pending:c,press:d}=fi(r);return t.jsxs("div",{className:Ee("empty-state","error-state",i),role:"alert",children:[t.jsx(Ze,{icon:a,size:48,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:"error-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:d,disabled:c,"aria-busy":c||void 0,children:[t.jsx(Ze,{icon:"rotate-cw",className:"button__icon"}),t.jsx("span",{className:"button__label button-1",children:s??l("common.errorState.retry",{defaultValue:"\uB2E4\uC2DC \uC2DC\uB3C4"})})]})]})}function QC({icon:e,title:n,description:a,cta:r,tone:s="main",disabled:i=!1,onClick:l,className:c=""}){const d=o.useId(),u=`${d}-title`,p=`${d}-desc`,m=`${d}-cta`,h=()=>{i||l?.()};return t.jsx("section",{role:"button",tabIndex:i?-1:0,"aria-disabled":i||void 0,"aria-labelledby":u,"aria-describedby":`${p} ${m}`,onClick:h,onKeyDown:f=>{(f.key==="Enter"||f.key===" ")&&(f.preventDefault(),h())},className:Ee("action-card",`action-card--${s}`,i&&"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(Ze,{icon:e,size:34})}),t.jsxs("div",{className:"action-card__text",children:[t.jsx("h2",{id:u,className:"action-card__title",children:n}),t.jsx("p",{id:p,className:"action-card__desc",children:a})]}),t.jsxs("div",{className:"action-card__cta",children:[t.jsx("span",{id:m,children:r}),t.jsx("span",{"aria-hidden":!0,className:"action-card__arrow",children:t.jsx(Ze,{icon:"arrow-right",size:18})})]})]})})}function e2({as:e="div",className:n="",children:a,storage:r,...s}){r&&X0({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 i=Ee("ihabdevteam-core-scope",n);return t.jsx(e,{className:i,...s,children:a})}function Or(e,n=!0){o.useEffect(()=>{if(!n)return;const a=e.current;if(!a)return;const r=s=>{if(s.key!=="Tab")return;const i=Array.from(a.querySelectorAll(yn)).filter(p=>!p.closest('[aria-hidden="true"]'));if(!i.length){s.preventDefault();return}const l=i[0],c=i[i.length-1],d=document.activeElement,u=d===a;s.shiftKey&&(d===l||u)?(s.preventDefault(),c.focus()):!s.shiftKey&&d===c&&(s.preventDefault(),l.focus())};return a.addEventListener("keydown",r),()=>a.removeEventListener("keydown",r)},[e,n])}const yn='a[href], button:not([disabled]), input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex="-1"])',Hr=new WeakMap;function zr(e,n){e&&Hr.set(e,n)}function Vr(e){let n=e;for(let a=0;n&&!n.isConnected&&a<10;a++){let r=n;for(;r&&!Hr.has(r);)r=r.parentElement;if(!r)return n;n=Hr.get(r)??null}return n}function gi(e){return!(!e||!e.isConnected||e===document.body||typeof e.focus!="function"||e.disabled||e instanceof HTMLInputElement&&e.type==="hidden"||e.closest('[inert],[aria-hidden="true"],[hidden]'))}function Ua(e,n,a){const r=e?.isConnected?e:a?.isConnected?a:null;if(gi(n)&&!(e&&e.contains(n)))return n.focus(),n;if(!r)return null;const s=Array.from(document.querySelectorAll(yn)).filter(d=>!(e&&e.contains(d))&&gi(d));let i=null,l=null;for(const d of s)r.compareDocumentPosition(d)&Node.DOCUMENT_POSITION_PRECEDING?i=d:l||(l=d);const c=i??l;return c?.focus(),c}function t2({title:e="",lines:n=[],notices:a=null,children:r,variant:s="default",dismissible:i=!1,className:l=""}){const{t:c}=Ce.useTranslation(),[d,u]=o.useState(!1),p=o.useRef(null),m=o.useCallback(()=>{const C=p.current;C&&C.contains(document.activeElement)&&Ua(C),u(!0)},[]);if(d)return null;const h=`notice-box notice-box--${s} body-2 ${l}`.trim(),f=i&&t.jsx("button",{type:"button",className:"notice-box__dismiss",onClick:m,"aria-label":c("common.close","\uB2EB\uAE30"),children:"\xD7"});if(a&&Array.isArray(a)&&a.length)return t.jsxs("div",{className:h,role:"note",children:[a.map((C,w)=>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})]},w)),f]});const y=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,w)=>t.jsx("li",{className:"notice-box__line",children:C},w))}):r})]}):t.jsx("div",{className:"notice-box__inner",children:r});return t.jsxs("div",{ref:p,className:h,role:"note",children:[y,f]})}const ea=[];let Ga=!1;function bi(e){if(e.key!=="Escape"||e.defaultPrevented||e.isComposing||e.keyCode===229)return;const n=ea[ea.length-1];n&&(e.stopPropagation(),n())}function zn(e){return ea.push(e),!Ga&&typeof document<"u"&&(document.addEventListener("keydown",bi),Ga=!0),()=>{const n=ea.lastIndexOf(e);n>=0&&ea.splice(n,1),ea.length===0&&Ga&&typeof document<"u"&&(document.removeEventListener("keydown",bi),Ga=!1)}}const yi=o.createContext(null);function n2(e){return/max-width:\s*7[0-9][0-9]px/.test(e)}const vi=e=>typeof window>"u"||!window.matchMedia?!1:window.matchMedia(e).matches;function a2(e){const n=o.useCallback(a=>{if(typeof window>"u"||!window.matchMedia)return()=>{};const r=window.matchMedia(e);return r.addEventListener?r.addEventListener("change",a):r.addListener&&r.addListener(a),()=>{r.removeEventListener?r.removeEventListener("change",a):r.removeListener&&r.removeListener(a)}},[e]);return Qo.useSyncExternalStore(n,()=>vi(e),()=>!1)}function r2(e){const[n,a]=o.useState(vi(e));return o.useEffect(()=>{if(typeof window>"u"||!window.matchMedia)return;const r=window.matchMedia(e),s=l=>a(l.matches),i=r;return i.addEventListener?i.addEventListener("change",s):i.addListener&&i.addListener(s),a(r.matches),()=>{i.removeEventListener?i.removeEventListener("change",s):i.removeListener&&i.removeListener(s)}},[e]),n}const o2=typeof Qo.useSyncExternalStore=="function"?a2:r2;function tn(e){const n=o.useContext(yi),a=o2(e);return n&&typeof n.mobile=="boolean"&&n2(e)?n.mobile:a}const s2="(prefers-reduced-motion: reduce)";function Wr(){return tn(s2)}function rn(e){const{anchorRect:n,anchorEl:a,offset:r=20,edgeMargin:s=20,onClose:i,closeOnOutsideClick:l=!0,className:c="",role:d="dialog",ariaLabel:u="",children:p,backdrop:m=!1,isMobilePopup:h=!1,useBorder:f=!0,header:y}=e||{},C=o.useRef(null),[w,b]=o.useState({position:"fixed",left:0,top:-9999}),[g,_]=o.useState(!1),[v,k]=o.useState("bottom"),[A,B]=o.useState(!1),[x,N]=o.useState(!1),D=!n&&!a,P=o.useCallback((Z=!1)=>{if(x&&h)return;const U=a?a.getBoundingClientRect():n;if(!U||!C.current)return;const q=C.current,{offsetWidth:K,offsetHeight:L}=q,E=window.innerWidth,F=window.innerHeight,R=E-U.right,O=U.left,$=U.top,Y=F-U.bottom;let Q=0,X=0,ie="top";if($>=L+r)ie="top",X=U.top-r-L,Q=U.left+U.width/2-K/2;else if(Y>=L+r)ie="bottom",X=U.bottom+r,Q=U.left+U.width/2-K/2;else if(R>=K+r)ie="right",Q=U.right+r,X=U.top+U.height/2-L/2;else if(O>=K+r)ie="left",Q=U.left-r-K,X=U.top+U.height/2-L/2;else{const V=Math.max($,Y,R,O);V===$?(ie="top",X=U.top-r-L,Q=U.left+U.width/2-K/2):V===Y?(ie="bottom",X=U.bottom+r,Q=U.left+U.width/2-K/2):V===R?(ie="right",Q=U.right+r,X=U.top+U.height/2-L/2):(ie="left",Q=U.left-r-K,X=U.top+U.height/2-L/2)}const be=Number.isFinite(Number(s))?Number(s):8;Q=Math.min(Math.max(Q,be),E-K-be),X=Math.min(Math.max(X,be),F-L-be);const ne=Math.round(Q),oe=Math.round(X);Z&&C.current?(C.current.style.left=`${ne}px`,C.current.style.top=`${oe}px`,C.current.dataset.placement=ie):(k(ie||v),b({position:"fixed",left:ne,top:oe}),B(!0))},[x,h,a,n,r,s,v]);o.useLayoutEffect(()=>{if(D)return;if(x&&h){b({position:"fixed",left:"50%",top:"50%",transform:"translate(-50%, -50%)",width:"calc(100% - 40px)",maxWidth:"calc(100% - 40px)"}),B(!0);return}P();const Z=requestAnimationFrame(()=>P());return()=>cancelAnimationFrame(Z)},[n,a,r,p,s,D,x,h,P]),o.useEffect(()=>{if(D||x&&h||!C.current||typeof ResizeObserver>"u")return;const Z=new ResizeObserver(()=>{n&&P()});return Z.observe(C.current),()=>Z.disconnect()},[n,p,s,D,x,h,P]),o.useEffect(()=>{if(D||x&&h)return;const Z=()=>P(!0),U=q=>{if(!a&&i){const K=q.target;if(K&&C.current&&C.current.contains(K))return;try{if(K&&K.closest&&K.closest("[data-tooltip-ignore]"))return}catch{}S.current(!0);return}Z()};return window.addEventListener("resize",Z),document.addEventListener("scroll",U,{passive:!0,capture:!0}),()=>{window.removeEventListener("resize",Z),document.removeEventListener("scroll",U,{capture:!0})}},[n,a,i,r,p,s,D,x,h,P]),o.useEffect(()=>{if(typeof window>"u"||!window.matchMedia)return;const Z=window.matchMedia("(max-width: 768px)"),U=()=>N(!!Z.matches);U();try{Z.addEventListener?Z.addEventListener("change",U):Z.addListener(U)}catch{try{Z.addListener(U)}catch{}}return()=>{try{Z.removeEventListener?Z.removeEventListener("change",U):Z.removeListener(U)}catch{}}},[]);const H=o.useRef(!1),M=o.useRef(null),z=Wr(),j=o.useCallback((Z=!1)=>{if(i&&!(g||H.current)){if(H.current=!0,Z){_(!0);try{i&&i()}catch{H.current=!1,_(!1)}return}_(!0),M.current=setTimeout(()=>{M.current=null;try{i&&i()}catch{H.current=!1,_(!1)}},z?0:200)}},[g,i,_,z]);o.useEffect(()=>()=>{M.current&&clearTimeout(M.current)},[]),o.useEffect(()=>{if(D)return;const Z=K=>{const L=C.current;if(!L)return;const E=K.target;if(E&&!L.contains(E)){try{if(E.closest&&E.closest("[data-tooltip-ignore]"))return}catch{}l&&j(!0)}},U=K=>{const L=C.current;if(!L)return;const E=K.target;if(E&&!L.contains(E)){try{if(E.closest&&E.closest("[data-tooltip-ignore]"))return}catch{}l&&j(!0)}},q=K=>{if(K.key==="Tab"){const L=C.current;if(!L)return;const E=L.querySelectorAll(yn);if(!E||E.length===0)return;const F=E[0],R=E[E.length-1],O=document.activeElement;K.shiftKey?O===F&&(K.preventDefault(),R.focus()):O===R&&(K.preventDefault(),F.focus())}};return document.addEventListener("pointerdown",Z,!0),document.addEventListener("click",U,!0),document.addEventListener("keydown",q),()=>{document.removeEventListener("pointerdown",Z,!0),document.removeEventListener("click",U,!0),document.removeEventListener("keydown",q)}},[i,l,j,D]);const S=o.useRef(j);o.useEffect(()=>{S.current=j});const I=!!i;o.useEffect(()=>{if(!(D||!I))return zn(()=>S.current())},[D,I]),o.useEffect(()=>{const Z=()=>{j(!0)};return typeof document<"u"&&document.addEventListener("speechear-close-tooltips",Z),()=>{typeof document<"u"&&document.removeEventListener("speechear-close-tooltips",Z)}},[j]);const W=t.jsxs("div",{ref:C,className:`tooltip-content ${D?"tooltip-content--inline":""} ${f?"tooltip-content--bordered":""} ${g?"is-closing":""} ${c} ${x&&h?"is-mobile":""}`,role:d,"aria-label":u||void 0,style:D?{}:{...w,visibility:A?"visible":"hidden"},tabIndex:-1,"data-placement":v,"data-left":D?"":w.left,"data-top":D?"":w.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:[y!=null&&t.jsx("div",{className:"tooltip-content__header h5",children:y}),p]});if(D||typeof document>"u")return W;if(m||x&&h){const Z=t.jsxs("div",{className:"tooltip-portal",children:[t.jsx("div",{className:"tooltip-backdrop",onClick:()=>{l&&j(!0)}}),W]});return Xt.createPortal(Z,document.body)}return Xt.createPortal(W,document.body)}function vn(e){const{anchorRect:n,text:a,offset:r=8,onClose:s,className:i="",ariaLabel:l}=e||{};return a?t.jsx(rn,{anchorRect:n,offset:r,onClose:s,closeOnOutsideClick:!1,className:`tooltip-info ${i}`,ariaLabel:l||a,children:t.jsx("div",{className:"tooltip-info__content body-3",children:a})}):null}function Vn(e){const{t:n}=Ce.useTranslation(),{anchorRect:a,title:r,items:s,activeIndex:i=-1,showIndex:l=!0,onClose:c,offset:d=12,closeOnOutsideClick:u=!0}=e||{},p=(Array.isArray(s)?s:s?[s]:[]).map(m=>typeof m=="string"?{text:m}:m);return!p.length&&!r?null:t.jsx(rn,{anchorRect:a,offset:d,onClose:c,closeOnOutsideClick:u,useBorder:!1,className:"tooltip-description",ariaLabel:r||n("tooltip.description","\uC124\uBA85"),children:t.jsxs("div",{className:"tooltip-description__box",children:[r&&t.jsx("span",{className:"tooltip-description__title body-2",children:r}),t.jsx("ol",{className:"tooltip-description__items",children:p.map((m,h)=>t.jsxs("li",{className:`tooltip-description__item body-3${h===i?" tooltip-description__item--active":""}`,children:[l&&p.length>1&&t.jsxs("span",{className:"tooltip-description__index button-1",children:[h+1,"."]}),m.color&&t.jsx("span",{className:"tooltip-description__dot",style:{background:m.color},"aria-hidden":"true"}),t.jsx("span",{children:m.text})]},h))})]})})}function xa(e){const n=o.useRef(e);return o.useEffect(()=>{n.current=e}),n}let qr=0,xi=!1;function _i(){xi||typeof document>"u"||(xi=!0,document.addEventListener("pointerdown",e=>{e.pointerType==="touch"&&(qr=Date.now())},!0),document.addEventListener("touchstart",()=>{qr=Date.now()},{capture:!0,passive:!0}))}_i();function ta(e){return!!e&&e.pointerType==="touch"}function na(e=1e3){return _i(),Date.now()-qr<e}function Ur(e,n,a,{enabled:r=!0,fallbackOnParent:s=!1}={}){const i=xa(e),l=xa(n),c=o.useRef(null),d=o.useRef(0);o.useEffect(()=>{if(!r||typeof document>"u")return;const p=m=>{const h=m,f=m.target,y=a.current,C=!!(f&&y&&y.contains(f));if(h.pointerType!=="touch"){C&&(c.current=null);return}if(C){c.current=i.current;return}c.current=null,i.current&&!(f&&f.closest?.(".tooltip-content"))&&l.current(!1,y)};return document.addEventListener("pointerdown",p,!0),()=>document.removeEventListener("pointerdown",p,!0)},[r,a,i,l]);const u=o.useCallback(p=>{const m=c.current;return m===null?!1:(c.current=null,d.current=Date.now(),l.current(!m,p??a.current),!0)},[a,l]);return o.useEffect(()=>{if(!r||!s)return;const p=a.current,m=p?.parentElement;if(!p||!m)return;let h=null;const f=w=>{const b=w.changedTouches?.[0];if(!b)return!1;const g=p.getBoundingClientRect();return b.clientX>=g.left&&b.clientX<=g.right&&b.clientY>=g.top&&b.clientY<=g.bottom},y=w=>{h=f(w)?i.current:null},C=w=>{const b=h;h=null,!(b===null||Date.now()-d.current<700||!f(w))&&(c.current=null,d.current=Date.now(),l.current(!b,p))};return m.addEventListener("touchstart",y,{passive:!0}),m.addEventListener("touchend",C),()=>{m.removeEventListener("touchstart",y),m.removeEventListener("touchend",C)}},[r,s,a,i,l]),{touchPress:u}}function i2(e,n){const{size:a=48,type:r,htmlType:s,href:i,target:l,rel:c,icon:d,rightIcon:u,label:p,count:m,subLabel:h,children:f,ariaLabel:y,variant:C="default",align:w="center",nowrap:b=!1,selected:g,toggleable:_=!1,ariaExpanded:v,ariaControls:k,disabled:A=!1,useLabel:B=!0,useBorder:x=!0,useBG:N=!0,useDisabledCovered:D=!1,useDisabledInvisible:P=!1,width:H,minWidth:M,onClick:z,onDisabledClick:j,showTooltipInfo:S=!1,tooltipInfoText:I=null,tooltipDescription:W=null,tooltipOnly:Z=!1,iconSize:U="medium",iconColor:q,shape:K="rounded",color:L,className:E,...F}=e,R=typeof a=="string"&&isNaN(Number(a))?a.toLowerCase():String(Number(a)||48),O=R.match(/^\d+$/)?`button${R}`:`button-${R}`,$=Number(a),Y=!isNaN($)&&$<40?"button-2":"button-1",Q=p??f,X=A||!!F.disabled,ie=X?D?"disabled-covered":P?"disabled-invisibled":"disabled":C,be=ie?`button--variant-${ie}`:"",ne=w?`button--align-${w}`:"",oe=b?"button--nowrap":"",V=K?`button--shape-${K}`:"",ae=typeof q=="string"&&q.startsWith("--")?`var(${q})`:q,ue={...H?{width:typeof H=="number"?`${H}px`:H}:{},...M?{minWidth:typeof M=="number"?`${M}px`:M}:{},...x?{}:{"--button-border":X?"0":"1px solid transparent"},...ae?{"--button-icon-color":ae}:{},...L?{"--color-main":L}:{}},ge=B===!1?"":Q,me=Array.isArray(ge)?ge.length>0:!!ge,re=!!u,he=r??(me||d||re?"bar":"dot"),_e=`${O}--${he}`,Me=o.useRef(null),Ue=o.useRef(n);Ue.current=n;const Ie=o.useCallback(He=>{Me.current=He;const Qe=Ue.current;typeof Qe=="function"?Qe(He):Qe&&(Qe.current=He)},[]),de=o.useRef(X),[Ae,Re]=o.useState(!!g),[Pe,we]=o.useState(!1),[Se,Oe]=o.useState(null),Be=o.useCallback(()=>we(!1),[]),[nt,Ge]=o.useState(!1),Xe=o.useId();o.useEffect(()=>{typeof g=="boolean"&&Re(g)},[g]),o.useEffect(()=>{if(de.current&&!X&&Me.current){const He=Me.current;let Qe=!1;try{Qe=He.matches(":focus:not(:focus-visible)")}catch{Qe=!1}Qe&&He.blur(),He.style.pointerEvents="none";const pt=requestAnimationFrame(()=>{requestAnimationFrame(()=>{Me.current&&(Me.current.style.pointerEvents="")})});return()=>cancelAnimationFrame(pt)}de.current=X},[X]);const De=typeof g=="boolean"?!!g:Ae,je=typeof v=="boolean"?void 0:_||typeof g=="boolean"?De?"true":"false":F["aria-pressed"],ke=Ee("button",O,_e,be,ne,oe,V,De?"is-selected":null,N?null:"button--no-bg",Z?"button--tooltip-only":null,E),$e=`button__icon button__icon--${U}`,We=Array.isArray(h)?h:h!==void 0?[h]:[],ht=()=>{if(Array.isArray(ge))return ge.map((Qe,pt)=>{const Ot=We[pt];return t.jsxs("span",{className:`button__label-text${Ot!==void 0?" button__label-text--has-sub":""}`,children:[Qe,Ot!==void 0&&t.jsx("span",{className:"button__sub-label-text caption-1",children:Ot})]},pt)});const He=h!==void 0;return t.jsxs("span",{className:`button__label-text${He?" button__label-text--has-sub":""}`,children:[ge,m!=null&&t.jsx("span",{className:"button__count",children:m}),He&&t.jsx("span",{className:"button__sub-label-text caption-1",children:h})]})},wt=He=>{typeof g!="boolean"&&!_&&Re(!1),He.currentTarget.blur()},Et=He=>{X||(typeof F.onMouseLeave=="function"&&F.onMouseLeave(He),wt(He))},At=He=>{if(Z&&at&&ot.touchPress(He.currentTarget),X){at&&ot.touchPress(He.currentTarget),He.preventDefault(),j?.(He);return}typeof g!="boolean"&&_&&Re(Qe=>!Qe),z?.(He)},rt=o.useCallback(()=>{(S||W)&&(we(!0),Oe(Me.current?.getBoundingClientRect()??null))},[S,W]),Ye=o.useCallback(()=>{(S||W)&&(we(!1),Oe(null))},[S,W]),at=!!(S||W),ot=Ur(Pe,He=>{He?rt():Ye()},Me,{enabled:at&&(X||Z),fallbackOnParent:at&&X}),qe={...F};delete qe.disabled,delete qe.className,delete qe.faded,delete qe.useFaded,delete qe.loading,delete qe.onMouseLeave,delete qe.onPointerEnter,delete qe.onPointerLeave,delete qe.onPointerUp,delete qe.onFocus,delete qe.onBlur,X&&(Object.keys(qe).forEach(He=>{/^on[A-Z]/.test(He)&&typeof qe[He]=="function"&&delete qe[He]}),qe["aria-disabled"]="true");const ct=(typeof S=="string"?S:null)??(typeof I=="string"?I:null)??(typeof y=="string"?y:null)??(typeof Q=="string"?Q:null)??void 0,Ke=typeof y=="string"?y:typeof Q=="string"?Q:ct,Ct=W?[W.title,...W.items??[]].filter(Boolean).join(". "):S&&ct&&ct!==Ke?ct:"",jt=[typeof F["aria-describedby"]=="string"?F["aria-describedby"]:void 0,Ct?Xe:null].filter(Boolean).join(" ")||void 0,kt=(He,Qe)=>t.jsx(Ze,{icon:He,label:Qe??Ke,className:$e,imgClassName:"button__icon-img",maskClassName:"button__icon-mask",svgClassName:"button__icon-svg"}),dt=()=>he==="dot"?t.jsxs(t.Fragment,{children:[kt(d),me&&t.jsx("span",{className:`button__label ${Y}`,children:ht()})]}):w==="center"&&d?t.jsxs(t.Fragment,{children:[t.jsxs("span",{className:"button__center-group",children:[t.jsx("span",{className:"button__left",children:kt(d)}),me&&t.jsx("span",{className:`button__label ${Y}`,children:ht()})]}),re&&t.jsx("span",{className:"button__right",children:kt(u)})]}):t.jsxs(t.Fragment,{children:[d&&t.jsx("span",{className:"button__left",children:kt(d,y??Q)}),me&&t.jsx("span",{className:`button__label ${Y}`,children:ht()}),re&&t.jsx("span",{className:"button__right",children:kt(u)})]}),st=!!i&&!X;return t.jsxs(t.Fragment,{children:[t.jsxs(st?"a":"button",{...qe,ref:Ie,...st?{href:i,target:l,rel:c??(l==="_blank"?"noreferrer":void 0)}:{type:s,disabled:X&&!j&&!nt},className:ke,"aria-pressed":je,"aria-expanded":typeof v=="boolean"?v:F["aria-expanded"],"aria-controls":k??F["aria-controls"],"aria-label":Ke,"aria-disabled":X&&(st||j||nt)?!0:void 0,"aria-describedby":jt,style:ue,onClick:At,onMouseLeave:Et,onPointerEnter:He=>{ta(He)||rt(),!X&&typeof F.onPointerEnter=="function"&&F.onPointerEnter(He)},onPointerLeave:He=>{ta(He)||Ye(),!X&&typeof F.onPointerLeave=="function"&&F.onPointerLeave(He)},onPointerUp:He=>{X&&at&&ot.touchPress(He.currentTarget),!X&&typeof F.onPointerUp=="function"&&F.onPointerUp(He)},onFocus:He=>{Ge(!0),na()||rt(),!X&&typeof F.onFocus=="function"&&F.onFocus(He)},onBlur:He=>{Ge(!1),X||wt(He),Ye(),!X&&typeof F.onBlur=="function"&&F.onBlur(He)},children:[dt(),Ct?t.jsx("span",{id:Xe,hidden:!0,"aria-label":Ct}):null]}),Pe&&W?t.jsx(Vn,{anchorRect:Se,title:W.title,items:W.items,onClose:Be}):Pe&&ct?t.jsx(vn,{anchorRect:Se,text:ct,onClose:Be}):null]})}const ce=o.forwardRef(i2);ce.displayName="Button";var l2={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",discardConfirm:{title:"\uC785\uB825\uC744 \uCDE8\uC18C\uD560\uAE4C\uC694?",body:"\uC800\uC7A5\uD558\uC9C0 \uC54A\uC73C\uBA74 \uC9C0\uAE08\uAE4C\uC9C0 \uC785\uB825\uD55C \uB0B4\uC6A9\uC774 \uC0AC\uB77C\uC9D1\uB2C8\uB2E4.",confirm:"\uC785\uB825 \uCDE8\uC18C"},close:"\uB2EB\uAE30",back:"\uB4A4\uB85C",emptyTrainingName:"\uD6C8\uB828 \uC774\uB984\uC774 \uBE44\uC5B4 \uC788\uC2B5\uB2C8\uB2E4.",remove:"\uC81C\uAC70",image:"\uC774\uBBF8\uC9C0",delete:"\uC0AD\uC81C",reset:"\uCD08\uAE30\uD654",update:"\uC5C5\uB370\uC774\uD2B8",download:"\uB2E4\uC6B4\uB85C\uB4DC",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",networkError:"\uB124\uD2B8\uC6CC\uD06C \uC5F0\uACB0\uC774 \uBD88\uC548\uC815\uD569\uB2C8\uB2E4. \uC5F0\uACB0 \uC0C1\uD0DC\uB97C \uD655\uC778\uD55C \uB4A4 \uB2E4\uC2DC \uC2DC\uB3C4\uD574 \uC8FC\uC138\uC694."},c2={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",visitCount:"\uBC29\uBB38 {{count}}\uAC74"},u2={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"}},d2={clearAriaLabel:"\uAC80\uC0C9\uC5B4 \uC9C0\uC6B0\uAE30"},p2={starLabel:"{{n}}\uBC88\uC9F8 \uBCC4 \uC120\uD0DD",valueLabel:"{{max}}\uC810 \uB9CC\uC810\uC5D0 {{value}}\uC810",groupLabel:"\uBCC4\uC810"},m2={selected:"\uC120\uD0DD\uB428"},h2={placeholder:"\uC120\uD0DD"},C2={collapse:"\uC811\uAE30",expand:"\uD3BC\uCE58\uAE30"},f2={biArea:"BI \uC601\uC5ED",biSymbol:"BI \uC2EC\uBCFC",logoMalgwi:"\uB9D0\uADC0 \uB85C\uACE0",logoManager:"\uB9D0\uADC0\uB9E4\uB2C8\uC800 \uB85C\uACE0",menuOpen:"\uBA54\uB274 \uC5F4\uAE30",utilMenu:"\uC720\uD2F8\uB9AC\uD2F0 \uBA54\uB274",menuClose:"\uBA54\uB274 \uB2EB\uAE30"},g2={mainMenu:"\uBA54\uC778 \uBA54\uB274",bottomNav:"\uD558\uB2E8 \uB124\uBE44\uAC8C\uC774\uC158",goToManager:"\uB9D0\uADC0\uB9E4\uB2C8\uC800\uB85C \uC774\uB3D9",goToMalgwi:"\uB9D0\uADC0\uB85C \uC774\uB3D9",modeLabelManager:"\uB9D0\uADC0 \uB9E4\uB2C8\uC800",modeLabelMalgwi:"\uB9D0\uADC0",training:"\uD6C8\uB828",settings:"\uC124\uC815",notifications:"\uC54C\uB9BC",account:"\uACC4\uC815",help:"\uB3C4\uC6C0\uB9D0",feedback:"\uBC84\uADF8\uC2E0\uACE0",debug:"\uB514\uBC84\uADF8",coupons:"\uCFE0\uD3F0",topic:"\uC8FC\uC81C\uBCC4 \uB4E3\uAE30",trainingType:"\uD6C8\uB828\uBCC4 \uB4E3\uAE30",wordPairs:"\uB300\uB9BD\uC30D \uCC3E\uAE30",wordSearch:"\uB2E8\uC5B4 \uCC3E\uAE30",wordTable:"\uB2E8\uC5B4\uD45C \uB9CC\uB4E4\uAE30",company:"\uC5C5\uCCB4\uC815\uBCF4",more:"\uB354\uBCF4\uAE30",moreMenu:"\uB354\uBCF4\uAE30 \uBA54\uB274",badgeLabel:"{{label}}, {{count}}\uAC1C"},b2={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."}}},y2={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."}},v2={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"}}},x2={guide:{faq:{title:"\uC790\uC8FC \uBB3B\uB294 \uC9C8\uBB38",desc:"FAQ \uBAA8\uC544\uBCF4\uAE30"}}},_2={settings:"\uC124\uC815",start:{title:"\uB2E8\uC5B4\uD6C8\uB828 \uC2DC\uC791",description:"\uC544\uB798 \uD6C8\uB828 \uC720\uD615\uC744 \uC120\uD0DD\uD574 \uC2DC\uC791\uD558\uC138\uC694"},difficulty:{tooltip:"\uAC00\uC7A5 \uC26C\uC6B4 \uB09C\uC774\uB3C4\uB294 '\uBB34\uC791\uC704', \uAC00\uC7A5 \uC5B4\uB824\uC6B4 \uB09C\uC774\uB3C4\uB294 '\uCD08\uC131\uCC28\uC774' \uC785\uB2C8\uB2E4."},contrast:{label:"\uB300\uB9BD",type:"\uB300\uB9BD \uC885\uB958",count:"\uB300\uB9BD \uAC2F\uC218",n:"{{n}}\uAC1C"},filter:{random:"\uBB34\uC791\uC704",trainOnset:"\uCD08\uC131",trainVowel:"\uBAA8\uC74C",trainCoda:"\uC885\uC131",phonemeGroup:"\uD6C8\uB828 \uC74C\uC808",noLimit:"\uBB34\uAD00",codaExclude:"\uC81C\uC678",gradeLabel:"\uB4F1\uAE09",excludeImageInfo:"\uC774\uBBF8\uC9C0 \uC788\uB294 \uB2E8\uC5B4\uB9CC: \uB2E8\uC5B4 \uC911\uC5D0 \uC774\uBBF8\uC9C0\uAC00 \uC788\uB294 \uB2E8\uC5B4\uB9CC \uACB0\uACFC\uC5D0 \uBCF4\uC5EC\uC90D\uB2C8\uB2E4.",sameStructureInfo:"\uC74C\uC18C \uAD6C\uC870 \uAC19\uC740 \uB2E8\uC5B4\uB9CC: \uC815\uB2F5\uACFC \uC624\uB2F5\uC758 \uC74C\uC808 \uAD6C\uC870(\uAE00\uC790 \uC218\xB7\uBC1B\uCE68 \uC720\uBB34 \uB4F1)\uAC00 \uAC19\uC740 \uACB0\uACFC\uB9CC \uB0A8\uACA8\uC694.",selectSection:"\uC120\uD0DD",excludeImage:"\uC774\uBBF8\uC9C0 \uC788\uB294 \uB2E8\uC5B4\uB9CC",sameStructure:"\uC74C\uC18C \uAD6C\uC870 \uAC19\uC740 \uB2E8\uC5B4\uB9CC"},noQuestions:"\uBB38\uC81C\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4.",countQuestions:"{{n}}\uBB38\uC81C",countSentences:"{{n}}\uBB38\uC7A5",comingSoon:"\uC900\uBE44 \uC911",nextQuestion:"\uB2E4\uC74C \uBB38\uC81C",noiseRatioTitle:"\uC18C\uC74C \uBE44\uC728",noiseRatioValue:"{{ratio}}\uBC30",noiseTypeTitle:"\uC18C\uC74C \uC885\uB958",playVolumeTitle:"\uC804\uCCB4 \uC18C\uB9AC",playSpeedTitle:"\uC7AC\uC0DD \uC18D\uB3C4",meter:{sentence:"\uC7AC\uC0DD",noise:"\uC18C\uC74C",toggle:"\uC624\uB514\uC624 \uBBF8\uD130 \uD45C\uC2DC"},viewResult:"\uACB0\uACFC\uBCF4\uAE30",problemNotice:"{{n}}\uBC88 \uBB38\uC81C \uC785\uB2C8\uB2E4.",trainingSettingsTitle:"\uD6C8\uB828 \uC124\uC815",sentencePreview:"\uBB38\uC7A5 \uBBF8\uB9AC\uBCF4\uAE30",notHeard:"\uC548 \uB4E4\uB838\uC5B4\uC694.",heardWell:"\uC798 \uB4E4\uB838\uC5B4\uC694.",confirmTitle:"\uBB38\uC7A5\uC744 \uD655\uC778\uD558\uACE0 \uC798 \uB4E4\uB838\uB294\uC9C0 \uC120\uD0DD\uD558\uC138\uC694.",noSoundWaveform:"\uC18C\uB9AC \uBE44\uAD50 \uBB38\uC81C\uB294 \uC6E8\uC774\uBE0C\uD3FC\uC744 \uD45C\uD604\uD558\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4.",noise:{level:{none:"\uC5C6\uC74C",weak:"\uC57D\uD568",medium:"\uBCF4\uD1B5",strong:"\uAC15\uD568",veryStrong:"\uB9E4\uC6B0 \uAC15\uD568"},type:{none:"\uC5C6\uC74C",default:"\uAE30\uBCF8",street:"\uAE38\uAC70\uB9AC",buzz:"\uC640\uAE00\uC640\uAE00",restaurant:"\uC2DD\uB2F9"}},listenTitle:"\uC81C\uC2DC\uD558\uB294 \uBB38\uC7A5\uC744 \uB4E4\uC5B4\uC8FC\uC138\uC694.",listenButton:"\uBB38\uC7A5 \uB4E3\uAE30",playSound:"\uC18C\uB9AC \uB4E3\uAE30",playAll:"\uBAA8\uB450 \uB4E3\uAE30",selectInOrder:"\uB4E4\uC740 \uC21C\uC11C\uB300\uB85C \uCE74\uB4DC\uB97C \uC120\uD0DD\uD558\uC138\uC694.",stop:"\uC815\uC9C0",preview:"\uBBF8\uB9AC \uB4E3\uAE30",next:"\uB2E4\uC74C",completed:"\uD6C8\uB828 \uC644\uB8CC",selected:"\uC120\uD0DD\uB428",nthSelected:"{{n}}\uBC88\uC9F8 \uC120\uD0DD",fontSizeMin:"\uAE00\uC528 \uD06C\uAE30\uAC00 \uCD5C\uC18C\uC785\uB2C8\uB2E4.",fontSizeMax:"\uAE00\uC528 \uD06C\uAE30\uAC00 \uCD5C\uB300\uC785\uB2C8\uB2E4.",fontSizeDecrease:"\uAE00\uC790 \uD06C\uAE30 \uAC10\uC18C",fontSizeIncrease:"\uAE00\uC790 \uD06C\uAE30 \uC99D\uAC00",toggleBackground:"\uBC30\uACBD \uC804\uD658",cardInstructions:"\uB0B1\uB9D0 \uCE74\uB4DC\uB97C \uBCF4\uACE0 \uC18C\uB9AC\uB97C \uB4E3\uACE0 \uD655\uC778\uD558\uC138\uC694.",noCards:"\uCE74\uB4DC\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4.",audioFetchError:"\uC0AC\uC6B4\uB4DC \uC18C\uC2A4\uB97C \uAC00\uC838\uC624\uC9C0 \uBABB\uD588\uC2B5\uB2C8\uB2E4.",ttsUnavailable:"\uC774 \uAE30\uAE30\uC5D0\uC11C\uB294 \uC74C\uC131\uC744 \uB4E4\uB824\uC904 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4.",selectConfirm:"\uBB38\uC81C\uB97C \uBCF4\uACE0 \uD574\uB2F9\uD558\uB294 \uB0B4\uC6A9\uC744 \uC120\uD0DD\uD558\uC138\uC694.",orderListDefault:"\uBB38\uC7A5\uC744 \uB4E4\uC740 \uC21C\uC11C\uB300\uB85C \uBC30\uCE58\uD558\uC138\uC694.",result:{pendingDone:"\uACB0\uACFC\uB97C \uACC4\uC0B0\uD558\uB294 \uC911\uC774\uB77C \uC544\uC9C1 \uC644\uB8CC\uD560 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4.",eyebrow:"\uD6C8\uB828 \uC644\uB8CC",title:"\uD6C8\uB828\uC744 \uBAA8\uB450 \uB9C8\uCCE4\uC2B5\uB2C8\uB2E4.",scoreAria:"{{correct}} / {{total}} \uBB38\uD56D",elapsed:"\uC18C\uC694 \uC2DC\uAC04",summary:"{{correct}}\uAC1C\uC758 \uBB38\uD56D\uC744 \uC798 \uB4E4\uC5C8\uC2B5\uB2C8\uB2E4.",tableAriaLabel:"\uBB38\uD56D\uBCC4 \uD310\uC815",colJudge:"\uD310\uC815",colAnswerSelected:"\uC815\uB2F5 \xB7 \uC120\uD0DD",colAnswer:"\uC815\uB2F5",colSelected:"\uC120\uD0DD",heardWell:"\uC798 \uB4E4\uC5C8\uC5B4\uC694",notHeard:"\uBABB \uB4E4\uC5C8\uC5B4\uC694",notJudged:"\uBBF8\uD310\uC815",replay:"\uB2E4\uC2DC\uD558\uAE30",done:"\uC644\uB8CC",viewResult:"\uACB0\uACFC \uD655\uC778",noContent:"(\uB0B4\uC6A9\uC5C6\uC74C)"},up:"\uC704\uB85C",down:"\uC544\uB798\uB85C",prev:"\uC774\uC804",listenLabel:"\uBB38\uC7A5 \uB4E3\uAE30",sourcePlay:"\uC18C\uC2A4 {{n}} \uC7AC\uC0DD",listen:"\uB4E3\uAE30",audioStatus:{idle:"\uB300\uAE30",resolving:"\uB9AC\uC18C\uC2A4 \uB9E4\uD551 \uC911\u2026",checking_exists:"\uD30C\uC77C \uC874\uC7AC \uD655\uC778\u2026",getting_signed_url:"\uC11C\uBA85 URL \uC870\uD68C\u2026",downloading:"\uB2E4\uC6B4\uB85C\uB4DC \uC911\u2026",measuring_duration:"\uC624\uB514\uC624 \uAE38\uC774 \uCE21\uC815\u2026",ready:"\uC900\uBE44 \uC644\uB8CC",error:"\uC624\uB958 \uBC1C\uC0DD"}},w2={totalCount:"\uAC1C\uC758 \uD6C8\uB828 \uBB36\uC74C",renameGroup:"\uADF8\uB8F9 \uC774\uB984 \uBC14\uAFB8\uAE30",itemCount:"\uD6C8\uB828 \uAC1C\uC218",menu:{edit:"\uD6C8\uB828 \uBB36\uC74C \uC218\uC815",rename:"\uC774\uB984 \uBC14\uAFB8\uAE30",move:"\uADF8\uB8F9 \uC774\uB3D9",duplicate:"\uD6C8\uB828 \uBB36\uC74C \uBCF5\uC0AC",publish:"\uB9D0\uADC0\uC790\uB8CC\uC2E4\uC5D0 \uC62C\uB9AC\uAE30"},sort:{customers:"\uD6C8\uB828 \uACE0\uAC1D"},copyLink:"\uB9C1\uD06C \uBCF5\uC0AC",removeLink:"\uB9C1\uD06C \uC81C\uAC70",linkRemoved:"\uB9C1\uD06C\uAC00 \uC81C\uAC70\uB418\uC5C8\uC2B5\uB2C8\uB2E4.",linkSaveFirst:"\uBA3C\uC800 \uD6C8\uB828 \uBB36\uC74C\uC744 \uC800\uC7A5\uD574\uC8FC\uC138\uC694.",linkSaveFirstHint:"\uC800\uC7A5\uB41C \uD6C8\uB828 \uBB36\uC74C\uC5D0\uC11C\uB9CC \uACF5\uC720 \uB9C1\uD06C\uB97C \uC0DD\uC131\uD560 \uC218 \uC788\uC2B5\uB2C8\uB2E4.",linkCopySelect:"\uBCF5\uC0AC\uAC00 \uB9C9\uD600 \uB9C1\uD06C\uB97C \uC120\uD0DD\uD588\uC2B5\uB2C8\uB2E4. Ctrl/\u2318+C\uB85C \uBCF5\uC0AC\uD558\uC138\uC694.",nameRequired:"\uD6C8\uB828 \uBB36\uC74C \uC774\uB984\uC744 \uC785\uB825\uD574\uC8FC\uC138\uC694.",itemRequired:"\uD6C8\uB828\uC744 1\uAC1C \uC774\uC0C1 \uB2F4\uC544\uC8FC\uC138\uC694.",randomAdd:"\uBB34\uC791\uC704 \uCD94\uAC00"},A2={totalCount:"\uBA85\uC758 \uACE0\uAC1D",loadError:"\uBAA9\uB85D\uC744 \uBD88\uB7EC\uC624\uC9C0 \uBABB\uD588\uC2B5\uB2C8\uB2E4.",basicInfo:{editTooltip:"\uC218\uC815\uD558\uAE30"},member:{placeholder:"\uC774\uBA54\uC77C \uB610\uB294 \uC804\uD654",link:"\uC5F0\uACB0",linking:"\uC5F0\uACB0 \uC911\u2026"},device:{title:"\uCCAD\uAC01\uC7AC\uD65C\uAE30\uAE30",addTooltip:"\uC0C8\uB85C \uC0DD\uC131",addButton:"\uAE30\uAE30 \uCD94\uAC00",listTooltip:"\uBAA9\uB85D \uBCF4\uAE30",listTitle:"\uCE21 \uAE30\uAE30 \uBAA9\uB85D",historyEmpty:"\uB4F1\uB85D\uB41C \uAE30\uAE30 \uC774\uB825\uC774 \uC5C6\uC2B5\uB2C8\uB2E4.",wearing:"\uCE21 \uCC29\uC6A9\uC911",notRegistered:"\uBBF8\uB4F1\uB85D",unit:"\uAC1C",wearingNow:"\uCC29\uC6A9",wear:"\uCC29\uC6A9",unwear:"\uCC29\uC6A9 \uD574\uC81C",wornSince:"{{date}}\uBD80\uD130",release:"\uD574\uC81C",historyTitle:"\uCCAD\uAC01\uC7AC\uD65C\uAE30\uAE30 \uC774\uB825"},schedule:{title:"\uBC29\uBB38 \uC608\uC815",addTooltip:"\uC608\uC815 \uB4F1\uB85D",listTooltip:"\uC804\uCCB4 \uBCF4\uAE30",empty:"\uC608\uC815\uB41C \uBC29\uBB38\uC774 \uC5C6\uC2B5\uB2C8\uB2E4.",registerTitle:" \uACE0\uAC1D\uB2D8 \uBC29\uBB38 \uC608\uC815 \uB4F1\uB85D",memoPlaceholder:"\uBC29\uBB38 \uC608\uC815 \uAD00\uB828 \uBA54\uBAA8\uB97C \uC785\uB825\uD574 \uC8FC\uC138\uC694."},visitHistory:{title:"\uBC29\uBB38 \uC774\uB825",addTooltip:"\uC2E0\uADDC \uB4F1\uB85D",empty:"\uC544\uC9C1 \uBC29\uBB38 \uAE30\uB85D\uC774 \uC5C6\uC2B5\uB2C8\uB2E4.",popupTitle:" \uACE0\uAC1D\uB2D8 \uBC29\uBB38 \uC774\uB825",registerTitle:" \uACE0\uAC1D\uB2D8 \uC2E0\uADDC \uBC29\uBB38 \uB4F1\uB85D"},homework:{title:"\uC219\uC81C \uC9C4\uD589\uC0C1\uD669",active:"\uD65C\uC131",inactive:"\uBE44\uD65C\uC131",copy:"\uB9C1\uD06C \uBCF5\uC0AC",copied:"\uB9C1\uD06C\uAC00 \uBCF5\uC0AC\uB418\uC5C8\uC2B5\uB2C8\uB2E4."},moreItems:"\uB354 \uC788\uC74C",viewAll:"\uC804\uCCB4 \uBCF4\uAE30",visits:{title:"\uBC29\uBB38"},trainingRecord:{title:"\uACE0\uAC1D \uD6C8\uB828 \uAE30\uB85D"},status:{trainingSubtitle:"\uD6C8\uB828 \uD604\uD669"},detail:{session:{completedFmt:"\uC644\uB8CC {{done}}/{{total}} \xB7 {{duration}}"},visitSuffix:"\uC758 \uBC29\uBB38"},duration:{minSec:"{{m}}\uBD84 {{s}}\uCD08",min:"{{m}}\uBD84",sec:"{{s}}\uCD08"}},k2={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"}}}},B2={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"}},N2={unitVisit:"\uAC74",periodAll:"\uC804\uCCB4",showN:"{{n}}\uAC1C\uC529"},E2={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"}},D2={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."}},S2={comingSoon:"\uB2E8\uC5B4\uD6C8\uB828 \uAE30\uB2A5\uC744 \uC900\uBE44 \uC911\uC785\uB2C8\uB2E4."},j2={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"},T2={title:"\uC8FC\uC694 \uB2E8\uC5B4",empty:"\uCD94\uCD9C\uB41C \uC8FC\uC694 \uB2E8\uC5B4\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4."},M2={defaultName:"\uB2E8\uC5B4 \uD45C",title:"\uB2E8\uC5B4 \uD45C \uB9CC\uB4E4\uAE30",subtitle:"\uCE78\uC744 \uC124\uC815\uD558\uACE0 \uB2E8\uC5B4\uB97C \uCD94\uAC00\uD558\uC5EC \uD45C\uB97C \uB9CC\uB4ED\uB2C8\uB2E4.",filterTitle:"\uD45C \uC124\uC815",filter:{composition:"\uAD6C\uC131",image:"\uC774\uBBF8\uC9C0",word:"\uB2E8\uC5B4",standardPron:"\uD45C\uC900 \uBC1C\uC74C",colloquialPron:"\uAD6C\uC5B4\uCCB4 \uBC1C\uC74C",paperOrientation:"\uC6A9\uC9C0 \uBC29\uD5A5",landscape:"\uAC00\uB85C",portrait:"\uC138\uB85C",columns:"\uCE78 \uC218",column:"{{count}}\uCE78",itemsPerPageWord:"\uD398\uC774\uC9C0\uB2F9 \uB2E8\uC5B4 \uC218",itemsPerPagePair:"\uD398\uC774\uC9C0\uB2F9 \uB300\uB9BD\uC30D \uC218",itemsPerPageOption:"{{count}}\uAC1C",pageIndicator:"{{current}} / {{total}}",pageNumber:"\uD398\uC774\uC9C0 \uBC88\uD638",pageNumberLeft:"\uC67C\uCABD",pageNumberCenter:"\uC911\uC559",pageNumberRight:"\uC624\uB978\uCABD",border:"\uC678\uACFD\uC120",topInfo:"\uC0C1\uB2E8 \uC815\uBCF4",bottomInfo:"\uD558\uB2E8 \uC815\uBCF4",cutLine:"\uC808\uCDE8\uC120",show:"\uD45C\uC2DC",hide:"\uBBF8\uD45C\uC2DC",dotted:"\uC810\uC120",corner:"\uCF54\uB108"},addWord:"\uCD94\uAC00\uD558\uAE30",wordInfo:"{{word}} \uB0B1\uB9D0 \uC815\uBCF4",emptyItems:"\uB2E8\uC5B4\uB97C 1\uAC1C \uC774\uC0C1 \uCD94\uAC00\uD574\uC8FC\uC138\uC694.",load:"\uBD88\uB7EC\uC624\uAE30",openNewWindow:"\uC0C8 \uCC3D\uC73C\uB85C \uBCF4\uAE30",saveButton:"\uC800\uC7A5\uD558\uAE30",saveAsNewButton:"\uB2E4\uB978 \uC774\uB984\uC73C\uB85C \uC800\uC7A5",print:"\uC778\uC1C4\uD558\uAE30",popupBlocked:"\uD31D\uC5C5\uC774 \uCC28\uB2E8\uB418\uC5C8\uC2B5\uB2C8\uB2E4. \uBE0C\uB77C\uC6B0\uC800 \uC124\uC815\uC5D0\uC11C \uD31D\uC5C5\uC744 \uD5C8\uC6A9\uD574 \uC8FC\uC138\uC694.",printFileNameSingle:"\uB2E8\uC5B4\uD45C",printFileNamePair:"\uB300\uB9BD\uC30D\uD45C",save:{title:"\uB2E8\uC5B4\uD45C \uC800\uC7A5\uD558\uAE30",nameLabel:"\uC774\uB984",desc:"\uC800\uC7A5\uD560 \uB2E8\uC5B4 \uD45C\uC758 \uC774\uB984\uC744 \uC785\uB825\uD558\uC138\uC694.",placeholder:"\uC774 \uB2E8\uC5B4\uD45C\uC5D0 \uB300\uD55C \uC81C\uBAA9\uC744 \uC785\uB825\uD558\uC138\uC694.",descriptionLabel:"\uC124\uBA85",descriptionPlaceholder:"\uC774 \uB2E8\uC5B4\uD45C\uC5D0 \uB300\uD55C \uC124\uBA85\uC744 \uC785\uB825\uD558\uC138\uC694.",duplicateName:"\uC774\uBBF8 \uC0AC\uC6A9 \uC911\uC778 \uC774\uB984\uC785\uB2C8\uB2E4.",nameRequired:"\uD45C \uC774\uB984\uC744 \uC785\uB825\uD574 \uC8FC\uC138\uC694.",autoFillHint:" (Tab \uB610\uB294 space \uC785\uB825\uC2DC \uC790\uB3D9 \uC785\uB825)",copyName:"{{name}} (\uBCF5\uC0AC)"},loadTable:{title:"\uC800\uC7A5\uB41C \uB2E8\uC5B4 \uD45C \uBD88\uB7EC\uC624\uAE30",empty:"\uC800\uC7A5\uB41C \uB2E8\uC5B4 \uD45C\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4.",loadButton:"\uBD88\uB7EC\uC624\uAE30",itemCount:"{{count}}\uAC1C",deleteAriaLabel:"{{name}} \uC0AD\uC81C",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 \uC544\uB798 \u25CB \xB7 \u25B3 \xB7 \u2715 \uB97C \uB20C\uB7EC \uB9E4\uAE30\uC138\uC694. \uB9C8\uC6B0\uC2A4\uB85C\uB294 \uCE78\uC5D0 \uC190\uC744 \uC5B9\uC73C\uBA74 \uB098\uD0C0\uB0A9\uB2C8\uB2E4.",tally:"{{marked}}\uCE78 \uCC44\uC810 \xB7 \u25CB {{o}} \xB7 \u25B3 {{triangle}} \xB7 \u2715 {{x}} \xB7 \uC815\uB2F5\uB960 {{rate}}%",save:"\uCC44\uC810 \uC800\uC7A5",saved:"{{name}} \uB2D8\uC758 \uCC44\uC810 {{count}}\uCE78\uC744 \uC800\uC7A5\uD588\uC2B5\uB2C8\uB2E4.",reviewTitle:"\uBCF5\uC2B5\uD45C\uB97C \uB9CC\uB4E4\uAE4C\uC694?",reviewMessage:"{{name}} \uB2D8\uC774 \uD2C0\uB9AC\uAC70\uB098 \uC560\uB9E4\uD588\uB358 {{count}}\uCE78\uC73C\uB85C \uC0C8 \uD45C\uB97C \uB9CC\uB4ED\uB2C8\uB2E4. \uB9DE\uD78C \uCE78\uC740 \uBE60\uC9D1\uB2C8\uB2E4.",reviewConfirm:"\uBCF5\uC2B5\uD45C \uB9CC\uB4E4\uAE30",reviewDescription:"\u2018{{name}}\u2019 \uCC44\uC810\uC5D0\uC11C \uD2C0\uB9AC\uAC70\uB098 \uC560\uB9E4\uD588\uB358 {{count}}\uCE78\uC744 \uBAA8\uC740 \uD45C\uC785\uB2C8\uB2E4.",reviewCreated:"\u2018{{name}}\u2019\uC744(\uB97C) \uB9CC\uB4E4\uC5C8\uC2B5\uB2C8\uB2E4 \u2014 {{count}}\uCE78.",discardTitle:"\uB9E4\uAE34 \uCC44\uC810\uC744 \uBC84\uB9B4\uAE4C\uC694?",discardMessage:"{{count}}\uCE78\uC744 \uB9E4\uACBC\uC9C0\uB9CC \uC544\uC9C1 \uC800\uC7A5\uD558\uC9C0 \uC54A\uC558\uC2B5\uB2C8\uB2E4. \uB098\uAC00\uBA74 \uC0AC\uB77C\uC9D1\uB2C8\uB2E4.",discardConfirm:"\uBC84\uB9AC\uACE0 \uB098\uAC00\uAE30"},info:{grade:"\uB09C\uC774\uB3C4: {{n}}\uB4F1\uAE09",syllables:"\uC74C\uC808 \uC218: {{n}}\uC74C\uC808",pos:"\uD488\uC0AC: {{v}}",wordType:"\uC720\uD615: {{v}}"},pos:{noun:"\uBA85\uC0AC",verb:"\uB3D9\uC0AC",adjective:"\uD615\uC6A9\uC0AC",adverb:"\uBD80\uC0AC",numeral:"\uC218\uC0AC",determiner:"\uAD00\uD615\uC0AC",interjection:"\uAC10\uD0C4\uC0AC",particle:"\uC870\uC0AC",affix:"\uC811\uC0AC",dependentNoun:"\uC758\uC874\uBA85\uC0AC",pronoun:"\uB300\uBA85\uC0AC",auxVerb:"\uBCF4\uC870\uB3D9\uC0AC",auxAdjective:"\uBCF4\uC870\uD615\uC6A9\uC0AC"},reorder:{moved:"{{total}}\uCE78 \uAC00\uC6B4\uB370 {{n}}\uBC88\uC9F8\uB85C \uC62E\uAE40",handle:"{{word}} \uC21C\uC11C \uBC14\uAFB8\uAE30 (Alt + \uD654\uC0B4\uD45C)",hint:"Alt + \u2190 \u2192 \uB85C \uC21C\uC11C \uBC14\uAFB8\uAE30"}},L2={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",original:"\uBC1B\uC740 \uC21C\uC11C"},pageSize:"{{count}}\uAC1C\uC529 \uBCF4\uAE30",pageSizeAria:"\uD398\uC774\uC9C0 \uD06C\uAE30",popup:{title:"{{n}}\uBC88 \uCE78\uC5D0 \uB123\uC744 \uB2E8\uC5B4\uB97C \uC120\uD0DD\uD558\uC138\uC694"}},$2={clearAllSelection:"\uBAA8\uB450 \uC120\uD0DD \uD574\uC81C",divLine:"\uB300\uB9BD\uC120",removePair:"\uB300\uB9BD\uC30D \uBE7C\uAE30",removeWord:"\uB2E8\uC5B4 \uBE7C\uAE30"},R2={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"}},P2={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"}},I2={passwordPlaceholder:"\uBE44\uBC00\uBC88\uD638 \uC785\uB825"},F2={subtitle:"\uC8FC\uC81C\uB97C \uC120\uD0DD\uD558\uC5EC \uB4E3\uAE30 \uC5F0\uC2B5\uC744 \uC9C4\uD589\uD558\uC138\uC694."},O2={direction:{left:"\uC88C",right:"\uC6B0",label:"\uBC29\uD5A5"},wornDate:"\uCC29\uC6A9\uC77C",deviceType:"\uC885\uB958",brand:"\uBE0C\uB79C\uB4DC",fitType:"\uCC29\uC6A9\uD615\uD0DC",productName:"\uC81C\uD488\uBA85",validationError:{brandAndProduct:"\uBE0C\uB79C\uB4DC\uC640 \uC81C\uD488\uBA85\uC744 \uC785\uB825\uD574 \uC8FC\uC138\uC694."},addNew:"\uC0C8 \uAE30\uAE30 \uCD94\uAC00",selectFromList:"\uBAA9\uB85D\uC5D0\uC11C \uC120\uD0DD",removeDevice:"\uCC29\uC6A9 \uD574\uC81C",type:{hearingAid:"\uBCF4\uCCAD\uAE30",cochlearImplant:"\uC778\uACF5\uC640\uC6B0"}},H2={stat:{totalCustomers:"\uCD1D \uACE0\uAC1D",monthlyVisits:"\uC774\uB2EC \uCD1D \uBC29\uBB38"},chart:{visitDetail:"\uC0C1\uC138 \uBC29\uBB38 \uD604\uD669",trainingDetail:"\uC0C1\uC138 \uD6C8\uB828 \uD604\uD669",weekly:"\uC8FC\uBCC4",daily:"\uC77C\uBCC4",periodMonth:"\uC6D4",periodWeek:"\uC8FC",weeklyPrefix:"\uC8FC\uAC04",monthlyPrefix:"\uC6D4\uAC04",visit:"\uBC29\uBB38",reservation:"\uC608\uC57D",trainingDone:"\uD6C8\uB828 \uC644\uB8CC",trainingInProgress:"\uD6C8\uB828 \uC911",weekRange:"{{start}}~{{end}}",week:"{{n}}\uC8FC"},subscriptionStatus:{active:"{{pct}}% \uD65C\uC131",expired:"{{pct}}% \uB9CC\uB8CC",unused:"{{pct}}% \uBBF8\uC0AC\uC6A9"}},z2={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."]},V2={sentenceTyping:{roundCount:"{{rounds}}\uBB38\uC81C \xB7 \uBB38\uC81C\uB2F9 {{timeLimit}}\uCD08"},wordDefense:{me:"\uB098"},dictation:{title:"\uBC1B\uC544\uC4F0\uAE30",desc:"\uBB38\uC7A5\uC744 \uB4E3\uACE0 \uC815\uD655\uD788 \uBC1B\uC544\uC801\uB294 \uC5F0\uC2B5\uC785\uB2C8\uB2E4.",comingSoon:"\uAD6C\uD604 \uC608\uC815: \uC74C\uC131 \uC7AC\uC0DD, \uC785\uB825 \uD544\uB4DC, \uC815\uB2F5 \uBE44\uAD50"},result:{heading:"{{number}}\uB2E8\uACC4 \uD574\uB2F5",retry:"\uB2E4\uC2DC \uD480\uAE30"},common:{accuracy:"{{pct}}% \uC815\uD655\uB3C4"},soundMatch:{title:"\uC18C\uB9AC \uB9E4\uCE6D",desc:"\uAC19\uC740 \uC18C\uB9AC\uB97C \uAC00\uC9C4 \uB2E8\uC5B4 \uB610\uB294 \uBB38\uC7A5\uC744 \uBE60\uB974\uAC8C \uB9E4\uCE6D\uD558\uB294 \uAC8C\uC784\uC785\uB2C8\uB2E4.",comingSoon:"\uAD6C\uD604 \uC608\uC815: \uD50C\uB808\uC774 \uBC84\uD2BC, \uD0C0\uC774\uBA38, \uC810\uC218 \uC9D1\uACC4"},orderSequence:{title:"\uBB38\uC7A5 \uC21C\uC11C\uD654",desc:"\uD769\uC5B4\uC9C4 \uBB38\uC7A5 \uC870\uAC01\uC744 \uC62C\uBC14\uB978 \uC21C\uC11C\uB85C \uBC30\uC5F4\uD558\uB294 \uD6C8\uB828\uC785\uB2C8\uB2E4.",comingSoon:"\uAD6C\uD604 \uC608\uC815: \uBB38\uC7A5 \uC138\uD2B8, \uC21C\uC11C \uD655\uC778 \uC778\uD130\uD398\uC774\uC2A4"},speedListen:{title:"\uC18D\uB3C4 \uB4E3\uAE30",desc:"\uC2DC\uAC04 \uC81C\uD55C \uB0B4\uC5D0 \uBB38\uC7A5\uC758 \uB2E8\uC5B4 \uC218\uB97C \uB9DE\uCD94\uB294 \uB3C4\uC804\uD615 \uAC8C\uC784\uC785\uB2C8\uB2E4.",comingSoon:"\uAD6C\uD604 \uC608\uC815: \uC81C\uD55C\uC2DC\uAC04, \uC810\uC218\uD310"},noiseChallenge:{title:"\uC18C\uC74C \uCC4C\uB9B0\uC9C0",desc:"\uBC30\uACBD \uC18C\uC74C \uC18D\uC5D0\uC11C \uBB38\uC7A5\uC744 \uBD84\uBCC4\uD558\uB294 \uC5F0\uC2B5\uC785\uB2C8\uB2E4.",comingSoon:"\uAD6C\uD604 \uC608\uC815: \uB2E4\uC591\uD55C \uC18C\uC74C \uB808\uBCA8, \uC810\uC218 \uC9D1\uACC4"},fastListen:{title:"\uBE60\uB978 \uB4E3\uAE30",desc:"\uC9E7\uC740 \uBB38\uC7A5\uC744 \uBE60\uB974\uAC8C \uB4E4\uB824\uC8FC\uACE0 \uD575\uC2EC \uB2E8\uC5B4\uB97C \uC120\uD0DD\uD558\uB294 \uAC8C\uC784\uC785\uB2C8\uB2E4.",comingSoon:"\uAD6C\uD604 \uC608\uC815: \uB09C\uC774\uB3C4\uBCC4 \uC18D\uB3C4, \uD0C0\uC774\uBA38"},shadowing:{title:"\uC250\uB3C4\uC789",desc:"\uBB38\uC7A5\uC744 \uB530\uB77C \uB9D0\uD558\uBA70 \uBC1C\uC74C\uACFC \uC5B5\uC591\uC744 \uC5F0\uC2B5\uD558\uB294 \uBAA8\uB4DC\uC785\uB2C8\uB2E4.",comingSoon:"\uAD6C\uD604 \uC608\uC815: \uC7AC\uC0DD, \uB179\uC74C, \uBE44\uAD50 \uD53C\uB4DC\uBC31"},phonemeHunt:{title:"\uC74C\uC6B4 \uCC3E\uAE30",desc:"\uD2B9\uC815 \uC74C\uC6B4(\uBC1C\uC74C)\uC744 \uD3EC\uD568\uD55C \uB2E8\uC5B4\uB97C \uCC3E\uC544\uB0B4\uB294 \uAC8C\uC784\uC785\uB2C8\uB2E4.",comingSoon:"\uAD6C\uD604 \uC608\uC815: \uC74C\uC6B4 \uD544\uD130, \uD78C\uD2B8 \uAE30\uB2A5"}},W2={lead:`\uC544\uC774\uD574\uBE0C\uB294 \uC18C\uB9AC\uB97C \uD1B5\uD574
|
|
847
|
+
`),this.name="StorageNotConfiguredError"}};function X0(e){Z0(e)}function Vs(e,n){if(!e)return null;const a=fa();return a?.resolvePath?a.resolvePath(e,n):n?`${n}/${e}.mp3`:null}async function Ws(e){if(!e)return null;const n=fa();if(!n)throw new zs("getSignedOrPublicUrl");try{return await n.resolveUrl(e)}catch{return null}}async function qs(e){const n=fa();if(!n)throw new zs("downloadSound");return n.download(e)}function J0(){return fa()?.noiseBaseUrl??"/sounds/noise"}function Us(){const e=Number(fa()?.noiseFileGain);return Number.isFinite(e)&&e>0?e:1}function Q0(e){const n=AbortSignal.timeout;if(typeof n=="function")return n.call(AbortSignal,e);const a=new AbortController;return setTimeout(()=>a.abort(),e),a.signal}const Gs="__ihab_core_tts_config__";function Dr(){return globalThis[Gs]?.urlResolver??null}function eC(){return globalThis[Gs]?.fallbackUrlResolver??null}const tC="__ihab_core_pronunciation_resolver__";function nC(){return globalThis[tC]??null}let Dn=null;const ga=new WeakMap,Sr=new WeakMap,jr=new WeakMap;let Ks=!1;const Ys=e=>Math.max(0,Math.min(1,Number.isFinite(e)?e:0));function aC(){if(Ks||typeof document>"u")return;Ks=!0;const e=()=>{try{Dn&&Dn.state!=="running"&&Dn.resume()}catch{}};for(const n of["pointerdown","touchend","keydown"])document.addEventListener(n,e,{capture:!0,passive:!0})}function Zs(){if(Dn)return Dn;try{const e=window.AudioContext||window.webkitAudioContext;return e?(Dn=new e,aC(),Dn):null}catch{return null}}function Tr(){try{Dn?.resume()}catch{}}function Mr(e,n){const a=ga.get(n);if(a)return a;try{const r=e.createMediaElementSource(n),s=e.createGain(),i=e.createAnalyser();i.fftSize=1024,i.smoothingTimeConstant=.6,s.gain.value=Ys(Sr.get(n)??n.volume),r.connect(s),s.connect(i),s.connect(e.destination);try{n.volume=1}catch{}const l={gain:s,analyser:i};return ga.set(n,l),l}catch{return null}}function Oa(e){if(!e)return Promise.resolve(null);const n=ga.get(e);if(n)return Promise.resolve(n.analyser);const a=Zs();if(!a)return Promise.resolve(null);if(a.state==="running")return Promise.resolve(Mr(a,e)?.analyser??null);const r=jr.get(e);if(r)return r;const s=Promise.resolve().then(()=>a.resume()).then(()=>a.state==="running"?Mr(a,e)?.analyser??null:null).catch(()=>null).finally(()=>{jr.delete(e)});return jr.set(e,s),s}function rC(e){if(!e)return null;const n=ga.get(e);if(n)return n.analyser;const a=Zs();return a?a.state==="running"?Mr(a,e)?.analyser??null:(Oa(e),null):null}function Sn(e,n){const a=Ys(n);Sr.set(e,a);const r=ga.get(e);if(r){try{e.volume!==1&&(e.volume=1)}catch{}const s=r.gain.gain;try{const i=r.gain.context.currentTime;s.cancelScheduledValues(i),s.setTargetAtTime(a,i,.01)}catch{try{s.value=a}catch{}}return"gain"}try{e.volume=a}catch{}return"element"}function Ha(e){return Sr.get(e)??e.volume}function oC(e,n){e.getFloatTimeDomainData(n);let a=0;for(let r=0;r<n.length;r++){const s=n[r];a+=s*s}return Math.sqrt(a/n.length)}const sC="__ihab_core_image_config__";function Xn(){return globalThis[sC]??null}const Xs="word_image_existence_map_v1";let Hn=null;const za=new Map;function iC(){if(Hn)return Hn;try{const e=typeof localStorage<"u"?localStorage.getItem(Xs):null,n=e?JSON.parse(e):null;Hn=n&&typeof n=="object"&&!Array.isArray(n)?n:{}}catch{Hn={}}return Hn}let Lr=null;function lC(){Lr||(Lr=setTimeout(()=>{Lr=null;try{typeof localStorage<"u"&&Hn&&localStorage.setItem(Xs,JSON.stringify(Hn))}catch{}},200))}function uC(e,n){return`${e}_${n??1}`}async function Js(e,n){const a=iC(),r=uC(e,n);if(r in a)return a[r];if(za.has(r))return za.get(r);const s=Xn();if(!s)return!1;const i=s(e,n);if(!i)return!1;const l=fetch(i,{method:"HEAD",signal:Q0(8e3)}).then(u=>u.status>=500?null:u.ok,()=>null).then(u=>(za.delete(r),u===null?!1:(a[r]=u,lC(),u)));return za.set(r,l),l}const cC={\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"}},Qs=["\u3131","\u3132","\u3134","\u3137","\u3138","\u3139","\u3141","\u3142","\u3143","\u3145","\u3146","\u3147","\u3148","\u3149","\u314A","\u314B","\u314C","\u314D","\u314E"],ei=["\u314F","\u3150","\u3151","\u3152","\u3153","\u3154","\u3155","\u3156","\u3157","\u3158","\u3159","\u315A","\u315B","\u315C","\u315D","\u315E","\u315F","\u3160","\u3161","\u3162","\u3163"],dC=["","\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 ba(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 pC(e){const n=ba(e[0]||"");return n?Qs[n.cho]:""}function mC(e){if(!e)return()=>!0;e=e.normalize("NFC");const n=[...e],a=l=>Qs.includes(l),r=l=>ei.includes(l),s=n.map(l=>a(l)?"cho":r(l)?"jung":ba(l)?"syl":"other"),i=n.map(l=>ba(l));if(s.includes("other")){const l=e.toLowerCase();return u=>u.normalize("NFC").toLowerCase().includes(l)}return l=>{const u=[...l.normalize("NFC")];for(let d=0;d+n.length<=u.length;d++){let c=!0;for(let p=0;p<n.length;p++){const m=u[d+p],h=s[p];if(h==="cho"){if(pC(m)!==n[p]){c=!1;break}}else if(h==="jung"){const g=ba(m);if(!g||ei[g.jung]!==n[p]){c=!1;break}}else{const g=i[p];if(g&&g.jong===0){const y=ba(m);if(!y||y.cho!==g.cho||y.jung!==g.jung){c=!1;break}}else if(m!==n[p]){c=!1;break}}}if(c)return!0}return!1}}const hC={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(hC).map(([e,n])=>[n.join(""),dC[Number(e)]]));const CC="word_pair_index_v2",fC="word_pair_index_sig_v2";let Va=null;function gC(){try{if(typeof localStorage>"u")return null;const e=localStorage.getItem(CC),n=localStorage.getItem(fC);return!e||!n?null:{index:JSON.parse(e),sig:n}}catch{return null}}function bC(){if(Va)return Va;const e=gC();return e?(Va=e.index,e.sig,Va):null}const $r=/[ㄱ-ㅎ]/,yC=/[ㅏ-ㅣ]/;function ti(e){e=e.normalize("NFC");for(let n=e.length-1;n>=0;n--){const a=e[n],r=a.charCodeAt(0);if(r>=44032&&r<=55203||$r.test(a)||yC.test(a))return a}return null}function vC(e){const n=ti(e);if(!n)return"\uAC00";const a=n.charCodeAt(0);return a>=44032&&a<=55203?(a-44032)%28!==0?"\uC774":"\uAC00":$r.test(n)?"\uC774":"\uAC00"}function xC(e){return`${e}${vC(e)}`}function _C(e){const n=ti(e);if(!n)return"\uB97C";const a=n.charCodeAt(0);return a>=44032&&a<=55203?(a-44032)%28!==0?"\uC744":"\uB97C":$r.test(n)?"\uC744":"\uB97C"}function wC(e){return`${e}${_C(e)}`}function AC(e,n,a){const r=e.slice(),[s]=r.splice(n,1);return r.splice(a,0,s),r}function ya(e,n=Math.random){const a=e.slice();for(let r=a.length-1;r>0;r--){const s=Math.floor(n()*(r+1));[a[r],a[s]]=[a[s],a[r]]}return a}const kC=()=>{const e="\uC54C \uC218 \uC5C6\uB294 \uC624\uB958",n=typeof Dt?.t=="function"?Dt.t("common.unknownError",{defaultValue:e}):void 0;return typeof n=="string"&&n?n:e};function ni(e,n){if(n===void 0&&(n=kC()),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 BC="__ihab_core_word_pool__";function ai(){return globalThis[BC]??null}const ri=globalThis;function oi(e,n){const a=r=>{};try{const r=n();r&&typeof r.catch=="function"&&r.catch(a)}catch(r){a(r)}}function NC(e){oi("time",()=>ri.__ihabTrainingTimeLogger?.(e))}function EC(e){oi("completion",()=>ri.__ihabTrainingCompletionLogger?.(e))}function Gt(e){return typeof e=="string"?e.trim()||null:typeof e=="number"?String(e):null}function DC(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 SC(e){return Array.isArray(e)?e.map((n,a)=>{const r=n??{};return{index:a,itemId:Gt(r.contextCode)??Gt(r.itemId)??Gt(r.itemCode)??Gt(r.id),question:Gt(r.question)??Gt(r.q)??Gt(r.sentence)??Gt(r.text)??Gt(r.prompt)??Gt(r.word)??Gt(r.targetSyllable),answer:Gt(r.answer),selected:Gt(r.selectedText)??Gt(r.selected),correct:DC(r)}}):[]}const Rr=globalThis;async function jC(){try{return await Rr.__ihabNoiseSettingsStore?.load()??null}catch{return null}}function si(e){const n=a=>{};try{const a=Rr.__ihabNoiseSettingsStore?.save(e);a&&typeof a.catch=="function"&&a.catch(n)}catch(a){n(a)}}function Wa(e){try{Rr.__ihabNoiseSettingsStore?.applied?.(e)}catch{}}async function TC(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}const MC=/^(\d{4}-\d{2}-\d{2})[T ](\d{2}:\d{2})(?::(\d{2})(?:\.(\d+))?)?$/;function ii(e){let n;if(e instanceof Date)n=e;else if(typeof e=="string"){const a=e.trim(),r=MC.exec(a);n=new Date(r?`${r[1]}T${r[2]}:${r[3]??"00"}${r[4]?`.${r[4].slice(0,3).padEnd(3,"0")}`:""}+09:00`:a)}else n=new Date(e);return Number.isNaN(n.getTime())?null:n}function va(){return Ir(new Date)}function Pr(e){return e&&/^\d{4}-\d{2}-\d{2}$/.test(e)?e:va()}function Jn(){return $C(va())}const LC=540*60*1e3;function li(e,n,a){return new Date(Date.UTC(e,n,a)-LC)}function $C(e){const[n,a,r]=e.split("-").map(Number);return new Date(n,(a||1)-1,r||1)}function Ir(e){if(e==null||e==="")return"";const n=ii(e);return n?new Intl.DateTimeFormat("fr-CA",{timeZone:"Asia/Seoul"}).format(n):""}function ui(e,n){if(!e)return"";const a=ii(e);if(!a)return"";const r=a.getTime(),s=Math.max(0,Math.floor((Date.now()-r)/1e3)),i=Math.floor(s/60),l=Math.floor(i/60),u=Math.floor(l/24),d=Math.floor(u/7),c=Math.floor(u/30),p=Math.floor(u/365);return i<1?n("store.time.justNow","\uBC29\uAE08 \uC804"):i<60?n("store.time.minutesAgo",{n:i}):l<24?n("store.time.hoursAgo",{n:l}):u<7?n("store.time.daysAgo",{n:u}):d<5?n("store.time.weeksAgo",{n:d}):u<365?n("store.time.monthsAgo",{n:Math.min(c,11)}):n("store.time.yearsAgo",{n:p})}function ci(e,n={}){const{sep:a=".",pad:r=!0,trailingDot:s=!1,fallback:i="\u2014"}=n;if(!e)return i;const l=Ir(e instanceof Date?e:String(e));if(!l)return i;const[u,d,c]=l.split("-"),p=r?d:String(Number(d)),m=r?c:String(Number(c));return`${u}${a}${p}${a}${m}${s?".":""}`}function Qn(e){if(!e)return e;const n=e.trim();return/^[₩$]/.test(n)?n:/원\s*$/.test(n)?"\u20A9"+n.replace(/\s*원\s*$/,"").trim():n}function di(e,n){if(!e)return"-";const a=/^(\d{1,2}):(\d{2})$/.exec(e.trim());if(!a)return e;const r=Number(a[1]),s=Number(a[2]),i=a[1].padStart(2,"0");return s===0?n("date.timeH",{h:r,hh:i,mm:a[2]}):n("date.timeHM",{h:r,hh:i,m:s,mm:a[2]})}function Fr(e){return(e??0).toLocaleString("ko-KR")}const RC=[{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"}]}],PC=[{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 pi(){return RC}function IC(){return PC}const FC=[],OC=[],HC=[],zC=[];function VC(){return{LISTEN_IN_NOISE:FC,SHORT_STORY:OC,LONG_STORY:HC,ORDERING_SENTENCE:zC}}const WC=[{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."}],mi={LISTEN_IN_NOISE:"listenInNoise",SHORT_STORY:"shortStory",LONG_STORY:"longStory",ORDERING_SENTENCE:"orderingSentence"};function qC(e){return WC.map(n=>{const a=mi[n.key];return a?{...n,label:e(`trainingType.${a}.title`),desc:e(`trainingType.${a}.desc`)}:n})}let qa=null,hi=null,Ci=null;function UC(){const e=ai();if(e&&e.entries.length>0){const n=bC();if(qa&&hi===e&&Ci===n)return qa;const a=new Set,r=[];for(const s of e.entries)!s.word||a.has(s.word)||(a.add(s.word),r.push({w:s.word,s:s.syllables,p:n?.[s.word]?[...n[s.word].cho??[],...n[s.word].jung??[],...n[s.word].jong??[]]:[],pron:s.pronunciation||s.word,grade:s.grade}));return qa=r,hi=e,Ci=n,qa}return[]}new Proxy([],{get(e,n){const a=UC(),r=a[n];return typeof r=="function"?r.bind(a):r}});const GC="0.225.0";function KC(e){if(e.includes("\\")&&e.includes("("))return!0;if(!/url\s*\(/i.test(e))return!1;const n=e.replace(/url\(\s*(['"]?)#[^)'"]*\1\s*\)/gi,"");return/url\s*\(/i.test(n)}function YC(e){if(typeof window>"u")return"";const n=(a,r)=>{typeof r.attrValue=="string"&&KC(r.attrValue)&&(r.keepAttr=!1)};Nr.addHook("uponSanitizeAttribute",n);try{return Nr.sanitize(e,{USE_PROFILES:{svg:!0,svgFilters:!0},FORBID_TAGS:["script","use","style"],FORBID_ATTR:["xlink:href","href"]})}finally{Nr.removeHook("uponSanitizeAttribute",n)}}function ZC(e){const[n,a]=o.useState(null),[r,s]=o.useState(null),[i,l]=o.useState(null),[u,d]=o.useState(null);return o.useEffect(()=>{if(!e||typeof e!="string"||!e.endsWith(".svg")){a(null),s(null),l(null);return}const c=e.split("/").pop();let p=e;c&&(e.startsWith("/")?p=Er(e):/^(Logo|Symbol)/i.test(c)?p=Er(`logo/${c}`):(/^https?:\/\//i.test(e)||e.startsWith("data:"),p=e)),s(null),l(null),a(p)},[e]),o.useEffect(()=>{if(!n)return;let c=!1;async function p(){try{let m=await fetch(n);m.ok||(m=await fetch(n));const h=m.headers.get("content-type")||"";if(c)return;if(h.includes("svg")){s("mask");return}if(h.startsWith("image/")){s("img");return}const g=await fetch(n);if(!g.ok)throw new Error("not ok");const y=await g.text();if(c)return;if(/^\s*<svg[\s>]/i.test(y)){const C=YC(y);if(!C){s("none");return}l(C),s("inline");return}s("none")}catch{c||s("none")}}return p(),()=>{c=!0}},[n]),o.useEffect(()=>{let c=!1,p=null;return r==="mask"&&n&&fetch(n).then(m=>{if(!m.ok)throw new Error("fetch failed");return m.blob()}).then(m=>{c||(p=URL.createObjectURL(m),d(p))}).catch(()=>{c||s("img")}),()=>{c=!0,p&&URL.revokeObjectURL(p),d(null)}},[r,n]),{iconToUse:n,mode:r,svgText:i,blobUrl:u}}function Ze(e){const{icon:n,label:a,className:r,imgClassName:s,maskClassName:i,svgClassName:l,wrapperStyle:u,size:d}=e||{},c=r??"iconRenderer-icon",p=s??"iconRenderer-icon-image",m=i??"iconRenderer-icon-mask",h=l??"iconRenderer-icon-svg",g=typeof n=="string"?n:null,y=p0(g),{iconToUse:C,mode:w,svgText:b,blobUrl:f}=ZC(g),_=(x,N={})=>t.jsx("span",{className:c,style:u,...N,children:x}),v=typeof d=="number"?{width:d,height:d,objectFit:"contain"}:null,k=(x,N={})=>t.jsx("img",{src:x,alt:typeof a=="string"?a:typeof a=="number"?String(a):"",className:p,...N,style:v?{...N.style,...v}:N.style});if(!n)return null;if(typeof n!="string")return _(n);if(n==="none")return _(t.jsx("span",{className:h,dangerouslySetInnerHTML:{__html:'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" aria-hidden="true"></svg>'}}),{"aria-hidden":"true"});if(y)try{return _(o.createElement(y,{className:h,size:typeof d=="number"?d:20}),{"aria-hidden":"true"})}catch{}if(C&&C.endsWith(".svg")){if(w==="mask"){const x={"--icon-url":f?`url(${f})`:`url(${C})`,...typeof d=="number"?{"--icon-size":`${d}px`}:null};return _(t.jsx("span",{className:m,style:x}),{"aria-hidden":"true"})}return w==="img"?_(k(C,{onError:x=>{x.currentTarget.onerror=null,x.currentTarget.style.display="none"}}),{"aria-hidden":"true"}):w==="inline"?_(t.jsx("span",{className:h,dangerouslySetInnerHTML:b?{__html:b}:void 0}),{"aria-hidden":"true"}):_(null,{"aria-hidden":"true"})}if(n.startsWith("/")||n.includes("/assets/")||n.match(/\.(png|jpg|jpeg|webp|gif)$/i))return k(Er(n),{style:u,onError:x=>{x.currentTarget.onerror=null,x.currentTarget.style.display="none"}});const A=typeof d=="number"?d:20,B=`<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:h,dangerouslySetInnerHTML:{__html:B}}),{"aria-hidden":"true"})}function fi(e){const[n,a]=o.useState(!1),r=o.useRef(!1),s=o.useRef(!0);o.useEffect(()=>(s.current=!0,()=>{s.current=!1}),[]);const i=o.useCallback(()=>{if(!e||r.current)return;const l=e();if(l&&typeof l.then=="function"){r.current=!0,a(!0);const u=()=>{r.current=!1,s.current&&a(!1)};l.then(u,u)}},[e]);return{pending:n,press:i}}function XC({icon:e,title:n,message:a,action:r,className:s}){const{pending:i,press:l}=fi(r?.onClick);return t.jsxs("div",{className:Ee("empty-state",s),children:[e&&t.jsx(Ze,{icon:e,size:48,className:"empty-state__icon"}),n&&t.jsx("p",{className:"empty-state__title h4",children:n}),a&&t.jsx("p",{className:"empty-state__message body-3",children:a}),r&&t.jsxs("button",{type:"button",className:"empty-state__action button button40 button40--bar button--variant-main button--align-center button--shape-rounded",onClick:l,disabled:i,"aria-busy":i||void 0,children:[r.icon&&t.jsx(Ze,{icon:r.icon,className:"button__icon"}),t.jsx("span",{className:"button__label button-1",children:r.label})]})]})}function JC({message:e,hint:n,icon:a="triangle-alert",onRetry:r,retryLabel:s,className:i}){const{t:l}=Ce.useTranslation(),{pending:u,press:d}=fi(r);return t.jsxs("div",{className:Ee("empty-state","error-state",i),role:"alert",children:[t.jsx(Ze,{icon:a,size:48,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:"error-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:d,disabled:u,"aria-busy":u||void 0,children:[t.jsx(Ze,{icon:"rotate-cw",className:"button__icon"}),t.jsx("span",{className:"button__label button-1",children:s??l("common.errorState.retry",{defaultValue:"\uB2E4\uC2DC \uC2DC\uB3C4"})})]})]})}function QC({icon:e,title:n,description:a,cta:r,tone:s="main",disabled:i=!1,onClick:l,className:u=""}){const d=o.useId(),c=`${d}-title`,p=`${d}-desc`,m=`${d}-cta`,h=()=>{i||l?.()};return t.jsx("section",{role:"button",tabIndex:i?-1:0,"aria-disabled":i||void 0,"aria-labelledby":c,"aria-describedby":`${p} ${m}`,onClick:h,onKeyDown:g=>{(g.key==="Enter"||g.key===" ")&&(g.preventDefault(),h())},className:Ee("action-card",`action-card--${s}`,i&&"action-card--disabled",u),children:t.jsxs("div",{className:"action-card__body",children:[t.jsx("span",{"aria-hidden":!0,className:"action-card__chip",children:t.jsx(Ze,{icon:e,size:34})}),t.jsxs("div",{className:"action-card__text",children:[t.jsx("h2",{id:c,className:"action-card__title",children:n}),t.jsx("p",{id:p,className:"action-card__desc",children:a})]}),t.jsxs("div",{className:"action-card__cta",children:[t.jsx("span",{id:m,children:r}),t.jsx("span",{"aria-hidden":!0,className:"action-card__arrow",children:t.jsx(Ze,{icon:"arrow-right",size:18})})]})]})})}function e2({as:e="div",className:n="",children:a,storage:r,...s}){r&&X0({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 i=Ee("ihabdevteam-core-scope",n);return t.jsx(e,{className:i,...s,children:a})}function Or(e,n=!0){o.useEffect(()=>{if(!n)return;const a=e.current;if(!a)return;const r=s=>{if(s.key!=="Tab")return;const i=Array.from(a.querySelectorAll(yn)).filter(p=>!p.closest('[aria-hidden="true"]'));if(!i.length){s.preventDefault();return}const l=i[0],u=i[i.length-1],d=document.activeElement,c=d===a;s.shiftKey&&(d===l||c)?(s.preventDefault(),u.focus()):!s.shiftKey&&d===u&&(s.preventDefault(),l.focus())};return a.addEventListener("keydown",r),()=>a.removeEventListener("keydown",r)},[e,n])}const yn='a[href], button:not([disabled]), input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex="-1"])',Hr=new WeakMap;function zr(e,n){e&&Hr.set(e,n)}function Vr(e){let n=e;for(let a=0;n&&!n.isConnected&&a<10;a++){let r=n;for(;r&&!Hr.has(r);)r=r.parentElement;if(!r)return n;n=Hr.get(r)??null}return n}function gi(e){return!(!e||!e.isConnected||e===document.body||typeof e.focus!="function"||e.disabled||e instanceof HTMLInputElement&&e.type==="hidden"||e.closest('[inert],[aria-hidden="true"],[hidden]'))}function Ua(e,n,a){const r=e?.isConnected?e:a?.isConnected?a:null;if(gi(n)&&!(e&&e.contains(n)))return n.focus(),n;if(!r)return null;const s=Array.from(document.querySelectorAll(yn)).filter(d=>!(e&&e.contains(d))&&gi(d));let i=null,l=null;for(const d of s)r.compareDocumentPosition(d)&Node.DOCUMENT_POSITION_PRECEDING?i=d:l||(l=d);const u=i??l;return u?.focus(),u}function t2({title:e="",lines:n=[],notices:a=null,children:r,variant:s="default",dismissible:i=!1,className:l=""}){const{t:u}=Ce.useTranslation(),[d,c]=o.useState(!1),p=o.useRef(null),m=o.useCallback(()=>{const C=p.current;C&&C.contains(document.activeElement)&&Ua(C),c(!0)},[]);if(d)return null;const h=`notice-box notice-box--${s} body-2 ${l}`.trim(),g=i&&t.jsx("button",{type:"button",className:"notice-box__dismiss",onClick:m,"aria-label":u("common.close","\uB2EB\uAE30"),children:"\xD7"});if(a&&Array.isArray(a)&&a.length)return t.jsxs("div",{className:h,role:"note",children:[a.map((C,w)=>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,f)=>t.jsx("span",{className:"notice-box__line body-3",children:b},f))}):C.children??null})]},w)),g]});const y=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,w)=>t.jsx("li",{className:"notice-box__line",children:C},w))}):r})]}):t.jsx("div",{className:"notice-box__inner",children:r});return t.jsxs("div",{ref:p,className:h,role:"note",children:[y,g]})}const ea=[];let Ga=!1;function bi(e){if(e.key!=="Escape"||e.defaultPrevented||e.isComposing||e.keyCode===229)return;const n=ea[ea.length-1];n&&(e.stopPropagation(),n())}function zn(e){return ea.push(e),!Ga&&typeof document<"u"&&(document.addEventListener("keydown",bi),Ga=!0),()=>{const n=ea.lastIndexOf(e);n>=0&&ea.splice(n,1),ea.length===0&&Ga&&typeof document<"u"&&(document.removeEventListener("keydown",bi),Ga=!1)}}const yi=o.createContext(null);function n2(e){return/max-width:\s*7[0-9][0-9]px/.test(e)}const vi=e=>typeof window>"u"||!window.matchMedia?!1:window.matchMedia(e).matches;function a2(e){const n=o.useCallback(a=>{if(typeof window>"u"||!window.matchMedia)return()=>{};const r=window.matchMedia(e);return r.addEventListener?r.addEventListener("change",a):r.addListener&&r.addListener(a),()=>{r.removeEventListener?r.removeEventListener("change",a):r.removeListener&&r.removeListener(a)}},[e]);return Qo.useSyncExternalStore(n,()=>vi(e),()=>!1)}function r2(e){const[n,a]=o.useState(vi(e));return o.useEffect(()=>{if(typeof window>"u"||!window.matchMedia)return;const r=window.matchMedia(e),s=l=>a(l.matches),i=r;return i.addEventListener?i.addEventListener("change",s):i.addListener&&i.addListener(s),a(r.matches),()=>{i.removeEventListener?i.removeEventListener("change",s):i.removeListener&&i.removeListener(s)}},[e]),n}const o2=typeof Qo.useSyncExternalStore=="function"?a2:r2;function tn(e){const n=o.useContext(yi),a=o2(e);return n&&typeof n.mobile=="boolean"&&n2(e)?n.mobile:a}const s2="(prefers-reduced-motion: reduce)";function Wr(){return tn(s2)}function rn(e){const{anchorRect:n,anchorEl:a,offset:r=20,edgeMargin:s=20,onClose:i,closeOnOutsideClick:l=!0,className:u="",role:d="dialog",ariaLabel:c="",children:p,backdrop:m=!1,isMobilePopup:h=!1,useBorder:g=!0,header:y}=e||{},C=o.useRef(null),[w,b]=o.useState({position:"fixed",left:0,top:-9999}),[f,_]=o.useState(!1),[v,k]=o.useState("bottom"),[A,B]=o.useState(!1),[x,N]=o.useState(!1),D=!n&&!a,P=o.useCallback((Z=!1)=>{if(x&&h)return;const U=a?a.getBoundingClientRect():n;if(!U||!C.current)return;const q=C.current,{offsetWidth:K,offsetHeight:L}=q,E=window.innerWidth,F=window.innerHeight,R=E-U.right,O=U.left,$=U.top,Y=F-U.bottom;let Q=0,X=0,ce="top";if($>=L+r)ce="top",X=U.top-r-L,Q=U.left+U.width/2-K/2;else if(Y>=L+r)ce="bottom",X=U.bottom+r,Q=U.left+U.width/2-K/2;else if(R>=K+r)ce="right",Q=U.right+r,X=U.top+U.height/2-L/2;else if(O>=K+r)ce="left",Q=U.left-r-K,X=U.top+U.height/2-L/2;else{const V=Math.max($,Y,R,O);V===$?(ce="top",X=U.top-r-L,Q=U.left+U.width/2-K/2):V===Y?(ce="bottom",X=U.bottom+r,Q=U.left+U.width/2-K/2):V===R?(ce="right",Q=U.right+r,X=U.top+U.height/2-L/2):(ce="left",Q=U.left-r-K,X=U.top+U.height/2-L/2)}const xe=Number.isFinite(Number(s))?Number(s):8;Q=Math.min(Math.max(Q,xe),E-K-xe),X=Math.min(Math.max(X,xe),F-L-xe);const te=Math.round(Q),re=Math.round(X);Z&&C.current?(C.current.style.left=`${te}px`,C.current.style.top=`${re}px`,C.current.dataset.placement=ce):(k(ce||v),b({position:"fixed",left:te,top:re}),B(!0))},[x,h,a,n,r,s,v]);o.useLayoutEffect(()=>{if(D)return;if(x&&h){b({position:"fixed",left:"50%",top:"50%",transform:"translate(-50%, -50%)",width:"calc(100% - 40px)",maxWidth:"calc(100% - 40px)"}),B(!0);return}P();const Z=requestAnimationFrame(()=>P());return()=>cancelAnimationFrame(Z)},[n,a,r,p,s,D,x,h,P]),o.useEffect(()=>{if(D||x&&h||!C.current||typeof ResizeObserver>"u")return;const Z=new ResizeObserver(()=>{n&&P()});return Z.observe(C.current),()=>Z.disconnect()},[n,p,s,D,x,h,P]),o.useEffect(()=>{if(D||x&&h)return;const Z=()=>P(!0),U=q=>{if(!a&&i){const K=q.target;if(K&&C.current&&C.current.contains(K))return;try{if(K&&K.closest&&K.closest("[data-tooltip-ignore]"))return}catch{}S.current(!0);return}Z()};return window.addEventListener("resize",Z),document.addEventListener("scroll",U,{passive:!0,capture:!0}),()=>{window.removeEventListener("resize",Z),document.removeEventListener("scroll",U,{capture:!0})}},[n,a,i,r,p,s,D,x,h,P]),o.useEffect(()=>{if(typeof window>"u"||!window.matchMedia)return;const Z=window.matchMedia("(max-width: 768px)"),U=()=>N(!!Z.matches);U();try{Z.addEventListener?Z.addEventListener("change",U):Z.addListener(U)}catch{try{Z.addListener(U)}catch{}}return()=>{try{Z.removeEventListener?Z.removeEventListener("change",U):Z.removeListener(U)}catch{}}},[]);const H=o.useRef(!1),M=o.useRef(null),z=Wr(),j=o.useCallback((Z=!1)=>{if(i&&!(f||H.current)){if(H.current=!0,Z){_(!0);try{i&&i()}catch{H.current=!1,_(!1)}return}_(!0),M.current=setTimeout(()=>{M.current=null;try{i&&i()}catch{H.current=!1,_(!1)}},z?0:200)}},[f,i,_,z]);o.useEffect(()=>()=>{M.current&&clearTimeout(M.current)},[]),o.useEffect(()=>{if(D)return;const Z=K=>{const L=C.current;if(!L)return;const E=K.target;if(E&&!L.contains(E)){try{if(E.closest&&E.closest("[data-tooltip-ignore]"))return}catch{}l&&j(!0)}},U=K=>{const L=C.current;if(!L)return;const E=K.target;if(E&&!L.contains(E)){try{if(E.closest&&E.closest("[data-tooltip-ignore]"))return}catch{}l&&j(!0)}},q=K=>{if(K.key==="Tab"){const L=C.current;if(!L)return;const E=L.querySelectorAll(yn);if(!E||E.length===0)return;const F=E[0],R=E[E.length-1],O=document.activeElement;K.shiftKey?O===F&&(K.preventDefault(),R.focus()):O===R&&(K.preventDefault(),F.focus())}};return document.addEventListener("pointerdown",Z,!0),document.addEventListener("click",U,!0),document.addEventListener("keydown",q),()=>{document.removeEventListener("pointerdown",Z,!0),document.removeEventListener("click",U,!0),document.removeEventListener("keydown",q)}},[i,l,j,D]);const S=o.useRef(j);o.useEffect(()=>{S.current=j});const I=!!i;o.useEffect(()=>{if(!(D||!I))return zn(()=>S.current())},[D,I]),o.useEffect(()=>{const Z=()=>{j(!0)};return typeof document<"u"&&document.addEventListener("speechear-close-tooltips",Z),()=>{typeof document<"u"&&document.removeEventListener("speechear-close-tooltips",Z)}},[j]);const W=t.jsxs("div",{ref:C,className:`tooltip-content ${D?"tooltip-content--inline":""} ${g?"tooltip-content--bordered":""} ${f?"is-closing":""} ${u} ${x&&h?"is-mobile":""}`,role:d,"aria-label":c||void 0,style:D?{}:{...w,visibility:A?"visible":"hidden"},tabIndex:-1,"data-placement":v,"data-left":D?"":w.left,"data-top":D?"":w.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:[y!=null&&t.jsx("div",{className:"tooltip-content__header h5",children:y}),p]});if(D||typeof document>"u")return W;if(m||x&&h){const Z=t.jsxs("div",{className:"tooltip-portal",children:[t.jsx("div",{className:"tooltip-backdrop",onClick:()=>{l&&j(!0)}}),W]});return Xt.createPortal(Z,document.body)}return Xt.createPortal(W,document.body)}function vn(e){const{anchorRect:n,text:a,offset:r=8,onClose:s,className:i="",ariaLabel:l}=e||{};return a?t.jsx(rn,{anchorRect:n,offset:r,onClose:s,closeOnOutsideClick:!1,className:`tooltip-info ${i}`,ariaLabel:l||a,children:t.jsx("div",{className:"tooltip-info__content body-3",children:a})}):null}function Vn(e){const{t:n}=Ce.useTranslation(),{anchorRect:a,title:r,items:s,activeIndex:i=-1,showIndex:l=!0,onClose:u,offset:d=12,closeOnOutsideClick:c=!0}=e||{},p=(Array.isArray(s)?s:s?[s]:[]).map(m=>typeof m=="string"?{text:m}:m);return!p.length&&!r?null:t.jsx(rn,{anchorRect:a,offset:d,onClose:u,closeOnOutsideClick:c,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((m,h)=>t.jsxs("li",{className:`tooltip-description__item body-3${h===i?" tooltip-description__item--active":""}`,children:[l&&p.length>1&&t.jsxs("span",{className:"tooltip-description__index button-1",children:[h+1,"."]}),m.color&&t.jsx("span",{className:"tooltip-description__dot",style:{background:m.color},"aria-hidden":"true"}),t.jsx("span",{children:m.text})]},h))})]})})}function xa(e){const n=o.useRef(e);return o.useEffect(()=>{n.current=e}),n}let qr=0,xi=!1;function _i(){xi||typeof document>"u"||(xi=!0,document.addEventListener("pointerdown",e=>{e.pointerType==="touch"&&(qr=Date.now())},!0),document.addEventListener("touchstart",()=>{qr=Date.now()},{capture:!0,passive:!0}))}_i();function ta(e){return!!e&&e.pointerType==="touch"}function na(e=1e3){return _i(),Date.now()-qr<e}function Ur(e,n,a,{enabled:r=!0,fallbackOnParent:s=!1}={}){const i=xa(e),l=xa(n),u=o.useRef(null),d=o.useRef(0);o.useEffect(()=>{if(!r||typeof document>"u")return;const p=m=>{const h=m,g=m.target,y=a.current,C=!!(g&&y&&y.contains(g));if(h.pointerType!=="touch"){C&&(u.current=null);return}if(C){u.current=i.current;return}u.current=null,i.current&&!(g&&g.closest?.(".tooltip-content"))&&l.current(!1,y)};return document.addEventListener("pointerdown",p,!0),()=>document.removeEventListener("pointerdown",p,!0)},[r,a,i,l]);const c=o.useCallback(p=>{const m=u.current;return m===null?!1:(u.current=null,d.current=Date.now(),l.current(!m,p??a.current),!0)},[a,l]);return o.useEffect(()=>{if(!r||!s)return;const p=a.current,m=p?.parentElement;if(!p||!m)return;let h=null;const g=w=>{const b=w.changedTouches?.[0];if(!b)return!1;const f=p.getBoundingClientRect();return b.clientX>=f.left&&b.clientX<=f.right&&b.clientY>=f.top&&b.clientY<=f.bottom},y=w=>{h=g(w)?i.current:null},C=w=>{const b=h;h=null,!(b===null||Date.now()-d.current<700||!g(w))&&(u.current=null,d.current=Date.now(),l.current(!b,p))};return m.addEventListener("touchstart",y,{passive:!0}),m.addEventListener("touchend",C),()=>{m.removeEventListener("touchstart",y),m.removeEventListener("touchend",C)}},[r,s,a,i,l]),{touchPress:c}}function i2(e,n){const{size:a=48,type:r,htmlType:s,href:i,target:l,rel:u,icon:d,rightIcon:c,label:p,count:m,subLabel:h,children:g,ariaLabel:y,variant:C="default",align:w="center",nowrap:b=!1,selected:f,toggleable:_=!1,ariaExpanded:v,ariaControls:k,disabled:A=!1,useLabel:B=!0,useBorder:x=!0,useBG:N=!0,useDisabledCovered:D=!1,useDisabledInvisible:P=!1,width:H,minWidth:M,onClick:z,onDisabledClick:j,showTooltipInfo:S=!1,tooltipInfoText:I=null,tooltipDescription:W=null,tooltipOnly:Z=!1,iconSize:U="medium",iconColor:q,shape:K="rounded",color:L,className:E,...F}=e,R=typeof a=="string"&&isNaN(Number(a))?a.toLowerCase():String(Number(a)||48),O=R.match(/^\d+$/)?`button${R}`:`button-${R}`,$=Number(a),Y=!isNaN($)&&$<40?"button-2":"button-1",Q=p??g,X=A||!!F.disabled,ce=X?D?"disabled-covered":P?"disabled-invisibled":"disabled":C,xe=ce?`button--variant-${ce}`:"",te=w?`button--align-${w}`:"",re=b?"button--nowrap":"",V=K?`button--shape-${K}`:"",ae=typeof q=="string"&&q.startsWith("--")?`var(${q})`:q,ue={...H?{width:typeof H=="number"?`${H}px`:H}:{},...M?{minWidth:typeof M=="number"?`${M}px`:M}:{},...x?{}:{"--button-border":X?"0":"1px solid transparent"},...ae?{"--button-icon-color":ae}:{},...L?{"--color-main":L}:{}},ge=B===!1?"":Q,me=Array.isArray(ge)?ge.length>0:!!ge,oe=!!c,he=r??(me||d||oe?"bar":"dot"),_e=`${O}--${he}`,Le=o.useRef(null),Ue=o.useRef(n);Ue.current=n;const Ie=o.useCallback(He=>{Le.current=He;const Qe=Ue.current;typeof Qe=="function"?Qe(He):Qe&&(Qe.current=He)},[]),de=o.useRef(X),[Ae,Re]=o.useState(!!f),[Pe,we]=o.useState(!1),[Se,Oe]=o.useState(null),Be=o.useCallback(()=>we(!1),[]),[nt,Ge]=o.useState(!1),Xe=o.useId();o.useEffect(()=>{typeof f=="boolean"&&Re(f)},[f]),o.useEffect(()=>{if(de.current&&!X&&Le.current){const He=Le.current;let Qe=!1;try{Qe=He.matches(":focus:not(:focus-visible)")}catch{Qe=!1}Qe&&He.blur(),He.style.pointerEvents="none";const pt=requestAnimationFrame(()=>{requestAnimationFrame(()=>{Le.current&&(Le.current.style.pointerEvents="")})});return()=>cancelAnimationFrame(pt)}de.current=X},[X]);const De=typeof f=="boolean"?!!f:Ae,je=typeof v=="boolean"?void 0:_||typeof f=="boolean"?De?"true":"false":F["aria-pressed"],ke=Ee("button",O,_e,xe,te,re,V,De?"is-selected":null,N?null:"button--no-bg",Z?"button--tooltip-only":null,E),Me=`button__icon button__icon--${U}`,We=Array.isArray(h)?h:h!==void 0?[h]:[],ht=()=>{if(Array.isArray(ge))return ge.map((Qe,pt)=>{const Ot=We[pt];return t.jsxs("span",{className:`button__label-text${Ot!==void 0?" button__label-text--has-sub":""}`,children:[Qe,Ot!==void 0&&t.jsx("span",{className:"button__sub-label-text caption-1",children:Ot})]},pt)});const He=h!==void 0;return t.jsxs("span",{className:`button__label-text${He?" button__label-text--has-sub":""}`,children:[ge,m!=null&&t.jsx("span",{className:"button__count",children:m}),He&&t.jsx("span",{className:"button__sub-label-text caption-1",children:h})]})},wt=He=>{typeof f!="boolean"&&!_&&Re(!1),He.currentTarget.blur()},Et=He=>{X||(typeof F.onMouseLeave=="function"&&F.onMouseLeave(He),wt(He))},At=He=>{if(Z&&at&&ot.touchPress(He.currentTarget),X){at&&ot.touchPress(He.currentTarget),He.preventDefault(),j?.(He);return}typeof f!="boolean"&&_&&Re(Qe=>!Qe),z?.(He)},rt=o.useCallback(()=>{(S||W)&&(we(!0),Oe(Le.current?.getBoundingClientRect()??null))},[S,W]),Ye=o.useCallback(()=>{(S||W)&&(we(!1),Oe(null))},[S,W]),at=!!(S||W),ot=Ur(Pe,He=>{He?rt():Ye()},Le,{enabled:at&&(X||Z),fallbackOnParent:at&&X}),qe={...F};delete qe.disabled,delete qe.className,delete qe.faded,delete qe.useFaded,delete qe.loading,delete qe.onMouseLeave,delete qe.onPointerEnter,delete qe.onPointerLeave,delete qe.onPointerUp,delete qe.onFocus,delete qe.onBlur,X&&(Object.keys(qe).forEach(He=>{/^on[A-Z]/.test(He)&&typeof qe[He]=="function"&&delete qe[He]}),qe["aria-disabled"]="true");const ut=(typeof S=="string"?S:null)??(typeof I=="string"?I:null)??(typeof y=="string"?y:null)??(typeof Q=="string"?Q:null)??void 0,Ke=typeof y=="string"?y:typeof Q=="string"?Q:ut,Ct=W?[W.title,...W.items??[]].filter(Boolean).join(". "):S&&ut&&ut!==Ke?ut:"",jt=[typeof F["aria-describedby"]=="string"?F["aria-describedby"]:void 0,Ct?Xe:null].filter(Boolean).join(" ")||void 0,kt=(He,Qe)=>t.jsx(Ze,{icon:He,label:Qe??Ke,className:Me,imgClassName:"button__icon-img",maskClassName:"button__icon-mask",svgClassName:"button__icon-svg"}),dt=()=>he==="dot"?t.jsxs(t.Fragment,{children:[kt(d),me&&t.jsx("span",{className:`button__label ${Y}`,children:ht()})]}):w==="center"&&d?t.jsxs(t.Fragment,{children:[t.jsxs("span",{className:"button__center-group",children:[t.jsx("span",{className:"button__left",children:kt(d)}),me&&t.jsx("span",{className:`button__label ${Y}`,children:ht()})]}),oe&&t.jsx("span",{className:"button__right",children:kt(c)})]}):t.jsxs(t.Fragment,{children:[d&&t.jsx("span",{className:"button__left",children:kt(d,y??Q)}),me&&t.jsx("span",{className:`button__label ${Y}`,children:ht()}),oe&&t.jsx("span",{className:"button__right",children:kt(c)})]}),st=!!i&&!X;return t.jsxs(t.Fragment,{children:[t.jsxs(st?"a":"button",{...qe,ref:Ie,...st?{href:i,target:l,rel:u??(l==="_blank"?"noreferrer":void 0)}:{type:s,disabled:X&&!j&&!nt},className:ke,"aria-pressed":je,"aria-expanded":typeof v=="boolean"?v:F["aria-expanded"],"aria-controls":k??F["aria-controls"],"aria-label":Ke,"aria-disabled":X&&(st||j||nt)?!0:void 0,"aria-describedby":jt,style:ue,onClick:At,onMouseLeave:Et,onPointerEnter:He=>{ta(He)||rt(),!X&&typeof F.onPointerEnter=="function"&&F.onPointerEnter(He)},onPointerLeave:He=>{ta(He)||Ye(),!X&&typeof F.onPointerLeave=="function"&&F.onPointerLeave(He)},onPointerUp:He=>{X&&at&&ot.touchPress(He.currentTarget),!X&&typeof F.onPointerUp=="function"&&F.onPointerUp(He)},onFocus:He=>{Ge(!0),na()||rt(),!X&&typeof F.onFocus=="function"&&F.onFocus(He)},onBlur:He=>{Ge(!1),X||wt(He),Ye(),!X&&typeof F.onBlur=="function"&&F.onBlur(He)},children:[dt(),Ct?t.jsx("span",{id:Xe,hidden:!0,"aria-label":Ct}):null]}),Pe&&W?t.jsx(Vn,{anchorRect:Se,title:W.title,items:W.items,onClose:Be}):Pe&&ut?t.jsx(vn,{anchorRect:Se,text:ut,onClose:Be}):null]})}const le=o.forwardRef(i2);le.displayName="Button";var l2={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",discardConfirm:{title:"\uC785\uB825\uC744 \uCDE8\uC18C\uD560\uAE4C\uC694?",body:"\uC800\uC7A5\uD558\uC9C0 \uC54A\uC73C\uBA74 \uC9C0\uAE08\uAE4C\uC9C0 \uC785\uB825\uD55C \uB0B4\uC6A9\uC774 \uC0AC\uB77C\uC9D1\uB2C8\uB2E4.",confirm:"\uC785\uB825 \uCDE8\uC18C"},close:"\uB2EB\uAE30",back:"\uB4A4\uB85C",emptyTrainingName:"\uD6C8\uB828 \uC774\uB984\uC774 \uBE44\uC5B4 \uC788\uC2B5\uB2C8\uB2E4.",remove:"\uC81C\uAC70",image:"\uC774\uBBF8\uC9C0",delete:"\uC0AD\uC81C",reset:"\uCD08\uAE30\uD654",update:"\uC5C5\uB370\uC774\uD2B8",download:"\uB2E4\uC6B4\uB85C\uB4DC",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",networkError:"\uB124\uD2B8\uC6CC\uD06C \uC5F0\uACB0\uC774 \uBD88\uC548\uC815\uD569\uB2C8\uB2E4. \uC5F0\uACB0 \uC0C1\uD0DC\uB97C \uD655\uC778\uD55C \uB4A4 \uB2E4\uC2DC \uC2DC\uB3C4\uD574 \uC8FC\uC138\uC694."},u2={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",visitCount:"\uBC29\uBB38 {{count}}\uAC74"},c2={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"}},d2={clearAriaLabel:"\uAC80\uC0C9\uC5B4 \uC9C0\uC6B0\uAE30"},p2={starLabel:"{{n}}\uBC88\uC9F8 \uBCC4 \uC120\uD0DD",valueLabel:"{{max}}\uC810 \uB9CC\uC810\uC5D0 {{value}}\uC810",groupLabel:"\uBCC4\uC810"},m2={selected:"\uC120\uD0DD\uB428"},h2={placeholder:"\uC120\uD0DD"},C2={collapse:"\uC811\uAE30",expand:"\uD3BC\uCE58\uAE30"},f2={biArea:"BI \uC601\uC5ED",biSymbol:"BI \uC2EC\uBCFC",logoMalgwi:"\uB9D0\uADC0 \uB85C\uACE0",logoManager:"\uB9D0\uADC0\uB9E4\uB2C8\uC800 \uB85C\uACE0",menuOpen:"\uBA54\uB274 \uC5F4\uAE30",utilMenu:"\uC720\uD2F8\uB9AC\uD2F0 \uBA54\uB274",menuClose:"\uBA54\uB274 \uB2EB\uAE30"},g2={mainMenu:"\uBA54\uC778 \uBA54\uB274",bottomNav:"\uD558\uB2E8 \uB124\uBE44\uAC8C\uC774\uC158",goToManager:"\uB9D0\uADC0\uB9E4\uB2C8\uC800\uB85C \uC774\uB3D9",goToMalgwi:"\uB9D0\uADC0\uB85C \uC774\uB3D9",modeLabelManager:"\uB9D0\uADC0 \uB9E4\uB2C8\uC800",modeLabelMalgwi:"\uB9D0\uADC0",training:"\uD6C8\uB828",settings:"\uC124\uC815",notifications:"\uC54C\uB9BC",account:"\uACC4\uC815",help:"\uB3C4\uC6C0\uB9D0",feedback:"\uBC84\uADF8\uC2E0\uACE0",debug:"\uB514\uBC84\uADF8",coupons:"\uCFE0\uD3F0",topic:"\uC8FC\uC81C\uBCC4 \uB4E3\uAE30",trainingType:"\uD6C8\uB828\uBCC4 \uB4E3\uAE30",wordPairs:"\uB300\uB9BD\uC30D \uCC3E\uAE30",wordSearch:"\uB2E8\uC5B4 \uCC3E\uAE30",wordTable:"\uB2E8\uC5B4\uD45C \uB9CC\uB4E4\uAE30",company:"\uC5C5\uCCB4\uC815\uBCF4",more:"\uB354\uBCF4\uAE30",moreMenu:"\uB354\uBCF4\uAE30 \uBA54\uB274",badgeLabel:"{{label}}, {{count}}\uAC1C"},b2={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."}}},y2={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."}},v2={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"}}},x2={guide:{faq:{title:"\uC790\uC8FC \uBB3B\uB294 \uC9C8\uBB38",desc:"FAQ \uBAA8\uC544\uBCF4\uAE30"}}},_2={settings:"\uC124\uC815",start:{title:"\uB2E8\uC5B4\uD6C8\uB828 \uC2DC\uC791",description:"\uC544\uB798 \uD6C8\uB828 \uC720\uD615\uC744 \uC120\uD0DD\uD574 \uC2DC\uC791\uD558\uC138\uC694"},difficulty:{tooltip:"\uAC00\uC7A5 \uC26C\uC6B4 \uB09C\uC774\uB3C4\uB294 '\uBB34\uC791\uC704', \uAC00\uC7A5 \uC5B4\uB824\uC6B4 \uB09C\uC774\uB3C4\uB294 '\uCD08\uC131\uCC28\uC774' \uC785\uB2C8\uB2E4."},contrast:{label:"\uB300\uB9BD",type:"\uB300\uB9BD \uC885\uB958",count:"\uB300\uB9BD \uAC2F\uC218",n:"{{n}}\uAC1C"},filter:{random:"\uBB34\uC791\uC704",trainOnset:"\uCD08\uC131",trainVowel:"\uBAA8\uC74C",trainCoda:"\uC885\uC131",phonemeGroup:"\uD6C8\uB828 \uC74C\uC808",noLimit:"\uBB34\uAD00",codaExclude:"\uC81C\uC678",gradeLabel:"\uB4F1\uAE09",excludeImageInfo:"\uC774\uBBF8\uC9C0 \uC788\uB294 \uB2E8\uC5B4\uB9CC: \uB2E8\uC5B4 \uC911\uC5D0 \uC774\uBBF8\uC9C0\uAC00 \uC788\uB294 \uB2E8\uC5B4\uB9CC \uACB0\uACFC\uC5D0 \uBCF4\uC5EC\uC90D\uB2C8\uB2E4.",sameStructureInfo:"\uC74C\uC18C \uAD6C\uC870 \uAC19\uC740 \uB2E8\uC5B4\uB9CC: \uC815\uB2F5\uACFC \uC624\uB2F5\uC758 \uC74C\uC808 \uAD6C\uC870(\uAE00\uC790 \uC218\xB7\uBC1B\uCE68 \uC720\uBB34 \uB4F1)\uAC00 \uAC19\uC740 \uACB0\uACFC\uB9CC \uB0A8\uACA8\uC694.",selectSection:"\uC120\uD0DD",excludeImage:"\uC774\uBBF8\uC9C0 \uC788\uB294 \uB2E8\uC5B4\uB9CC",sameStructure:"\uC74C\uC18C \uAD6C\uC870 \uAC19\uC740 \uB2E8\uC5B4\uB9CC"},noQuestions:"\uBB38\uC81C\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4.",countQuestions:"{{n}}\uBB38\uC81C",countSentences:"{{n}}\uBB38\uC7A5",comingSoon:"\uC900\uBE44 \uC911",nextQuestion:"\uB2E4\uC74C \uBB38\uC81C",noiseRatioTitle:"\uC18C\uC74C \uBE44\uC728",noiseRatioValue:"{{ratio}}\uBC30",noiseTypeTitle:"\uC18C\uC74C \uC885\uB958",playVolumeTitle:"\uC804\uCCB4 \uC18C\uB9AC",playSpeedTitle:"\uC7AC\uC0DD \uC18D\uB3C4",meter:{sentence:"\uC7AC\uC0DD",noise:"\uC18C\uC74C",toggle:"\uC624\uB514\uC624 \uBBF8\uD130 \uD45C\uC2DC"},viewResult:"\uACB0\uACFC\uBCF4\uAE30",problemNotice:"{{n}}\uBC88 \uBB38\uC81C \uC785\uB2C8\uB2E4.",trainingSettingsTitle:"\uD6C8\uB828 \uC124\uC815",sentencePreview:"\uBB38\uC7A5 \uBBF8\uB9AC\uBCF4\uAE30",notHeard:"\uC548 \uB4E4\uB838\uC5B4\uC694.",heardWell:"\uC798 \uB4E4\uB838\uC5B4\uC694.",confirmTitle:"\uBB38\uC7A5\uC744 \uD655\uC778\uD558\uACE0 \uC798 \uB4E4\uB838\uB294\uC9C0 \uC120\uD0DD\uD558\uC138\uC694.",noSoundWaveform:"\uC18C\uB9AC \uBE44\uAD50 \uBB38\uC81C\uB294 \uC6E8\uC774\uBE0C\uD3FC\uC744 \uD45C\uD604\uD558\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4.",noise:{level:{none:"\uC5C6\uC74C",weak:"\uC57D\uD568",medium:"\uBCF4\uD1B5",strong:"\uAC15\uD568",veryStrong:"\uB9E4\uC6B0 \uAC15\uD568"},type:{none:"\uC5C6\uC74C",default:"\uAE30\uBCF8",street:"\uAE38\uAC70\uB9AC",buzz:"\uC640\uAE00\uC640\uAE00",restaurant:"\uC2DD\uB2F9"}},listenTitle:"\uC81C\uC2DC\uD558\uB294 \uBB38\uC7A5\uC744 \uB4E4\uC5B4\uC8FC\uC138\uC694.",listenButton:"\uBB38\uC7A5 \uB4E3\uAE30",playSound:"\uC18C\uB9AC \uB4E3\uAE30",playAll:"\uBAA8\uB450 \uB4E3\uAE30",selectInOrder:"\uB4E4\uC740 \uC21C\uC11C\uB300\uB85C \uCE74\uB4DC\uB97C \uC120\uD0DD\uD558\uC138\uC694.",stop:"\uC815\uC9C0",preview:"\uBBF8\uB9AC \uB4E3\uAE30",next:"\uB2E4\uC74C",completed:"\uD6C8\uB828 \uC644\uB8CC",selected:"\uC120\uD0DD\uB428",nthSelected:"{{n}}\uBC88\uC9F8 \uC120\uD0DD",fontSizeMin:"\uAE00\uC528 \uD06C\uAE30\uAC00 \uCD5C\uC18C\uC785\uB2C8\uB2E4.",fontSizeMax:"\uAE00\uC528 \uD06C\uAE30\uAC00 \uCD5C\uB300\uC785\uB2C8\uB2E4.",fontSizeDecrease:"\uAE00\uC790 \uD06C\uAE30 \uAC10\uC18C",fontSizeIncrease:"\uAE00\uC790 \uD06C\uAE30 \uC99D\uAC00",toggleBackground:"\uBC30\uACBD \uC804\uD658",cardInstructions:"\uB0B1\uB9D0 \uCE74\uB4DC\uB97C \uBCF4\uACE0 \uC18C\uB9AC\uB97C \uB4E3\uACE0 \uD655\uC778\uD558\uC138\uC694.",noCards:"\uCE74\uB4DC\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4.",audioFetchError:"\uC0AC\uC6B4\uB4DC \uC18C\uC2A4\uB97C \uAC00\uC838\uC624\uC9C0 \uBABB\uD588\uC2B5\uB2C8\uB2E4.",ttsUnavailable:"\uC774 \uAE30\uAE30\uC5D0\uC11C\uB294 \uC74C\uC131\uC744 \uB4E4\uB824\uC904 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4.",selectConfirm:"\uBB38\uC81C\uB97C \uBCF4\uACE0 \uD574\uB2F9\uD558\uB294 \uB0B4\uC6A9\uC744 \uC120\uD0DD\uD558\uC138\uC694.",orderListDefault:"\uBB38\uC7A5\uC744 \uB4E4\uC740 \uC21C\uC11C\uB300\uB85C \uBC30\uCE58\uD558\uC138\uC694.",result:{pendingDone:"\uACB0\uACFC\uB97C \uACC4\uC0B0\uD558\uB294 \uC911\uC774\uB77C \uC544\uC9C1 \uC644\uB8CC\uD560 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4.",eyebrow:"\uD6C8\uB828 \uC644\uB8CC",title:"\uD6C8\uB828\uC744 \uBAA8\uB450 \uB9C8\uCCE4\uC2B5\uB2C8\uB2E4.",scoreAria:"{{correct}} / {{total}} \uBB38\uD56D",elapsed:"\uC18C\uC694 \uC2DC\uAC04",summary:"{{correct}}\uAC1C\uC758 \uBB38\uD56D\uC744 \uC798 \uB4E4\uC5C8\uC2B5\uB2C8\uB2E4.",tableAriaLabel:"\uBB38\uD56D\uBCC4 \uD310\uC815",colJudge:"\uD310\uC815",colAnswerSelected:"\uC815\uB2F5 \xB7 \uC120\uD0DD",colAnswer:"\uC815\uB2F5",colSelected:"\uC120\uD0DD",heardWell:"\uC798 \uB4E4\uC5C8\uC5B4\uC694",notHeard:"\uBABB \uB4E4\uC5C8\uC5B4\uC694",notJudged:"\uBBF8\uD310\uC815",replay:"\uB2E4\uC2DC\uD558\uAE30",done:"\uC644\uB8CC",viewResult:"\uACB0\uACFC \uD655\uC778",noContent:"(\uB0B4\uC6A9\uC5C6\uC74C)"},up:"\uC704\uB85C",down:"\uC544\uB798\uB85C",prev:"\uC774\uC804",listenLabel:"\uBB38\uC7A5 \uB4E3\uAE30",sourcePlay:"\uC18C\uC2A4 {{n}} \uC7AC\uC0DD",listen:"\uB4E3\uAE30",audioStatus:{idle:"\uB300\uAE30",resolving:"\uB9AC\uC18C\uC2A4 \uB9E4\uD551 \uC911\u2026",checking_exists:"\uD30C\uC77C \uC874\uC7AC \uD655\uC778\u2026",getting_signed_url:"\uC11C\uBA85 URL \uC870\uD68C\u2026",downloading:"\uB2E4\uC6B4\uB85C\uB4DC \uC911\u2026",measuring_duration:"\uC624\uB514\uC624 \uAE38\uC774 \uCE21\uC815\u2026",ready:"\uC900\uBE44 \uC644\uB8CC",error:"\uC624\uB958 \uBC1C\uC0DD"}},w2={totalCount:"\uAC1C\uC758 \uD6C8\uB828 \uBB36\uC74C",renameGroup:"\uADF8\uB8F9 \uC774\uB984 \uBC14\uAFB8\uAE30",itemCount:"\uD6C8\uB828 \uAC1C\uC218",menu:{edit:"\uD6C8\uB828 \uBB36\uC74C \uC218\uC815",rename:"\uC774\uB984 \uBC14\uAFB8\uAE30",move:"\uADF8\uB8F9 \uC774\uB3D9",duplicate:"\uD6C8\uB828 \uBB36\uC74C \uBCF5\uC0AC",publish:"\uB9D0\uADC0\uC790\uB8CC\uC2E4\uC5D0 \uC62C\uB9AC\uAE30"},sort:{customers:"\uD6C8\uB828 \uACE0\uAC1D"},copyLink:"\uB9C1\uD06C \uBCF5\uC0AC",removeLink:"\uB9C1\uD06C \uC81C\uAC70",linkRemoved:"\uB9C1\uD06C\uAC00 \uC81C\uAC70\uB418\uC5C8\uC2B5\uB2C8\uB2E4.",linkSaveFirst:"\uBA3C\uC800 \uD6C8\uB828 \uBB36\uC74C\uC744 \uC800\uC7A5\uD574\uC8FC\uC138\uC694.",linkSaveFirstHint:"\uC800\uC7A5\uB41C \uD6C8\uB828 \uBB36\uC74C\uC5D0\uC11C\uB9CC \uACF5\uC720 \uB9C1\uD06C\uB97C \uC0DD\uC131\uD560 \uC218 \uC788\uC2B5\uB2C8\uB2E4.",linkCopySelect:"\uBCF5\uC0AC\uAC00 \uB9C9\uD600 \uB9C1\uD06C\uB97C \uC120\uD0DD\uD588\uC2B5\uB2C8\uB2E4. Ctrl/\u2318+C\uB85C \uBCF5\uC0AC\uD558\uC138\uC694.",nameRequired:"\uD6C8\uB828 \uBB36\uC74C \uC774\uB984\uC744 \uC785\uB825\uD574\uC8FC\uC138\uC694.",itemRequired:"\uD6C8\uB828\uC744 1\uAC1C \uC774\uC0C1 \uB2F4\uC544\uC8FC\uC138\uC694.",randomAdd:"\uBB34\uC791\uC704 \uCD94\uAC00"},A2={totalCount:"\uBA85\uC758 \uACE0\uAC1D",loadError:"\uBAA9\uB85D\uC744 \uBD88\uB7EC\uC624\uC9C0 \uBABB\uD588\uC2B5\uB2C8\uB2E4.",basicInfo:{editTooltip:"\uC218\uC815\uD558\uAE30"},member:{placeholder:"\uC774\uBA54\uC77C \uB610\uB294 \uC804\uD654",link:"\uC5F0\uACB0",linking:"\uC5F0\uACB0 \uC911\u2026"},device:{title:"\uCCAD\uAC01\uC7AC\uD65C\uAE30\uAE30",addTooltip:"\uC0C8\uB85C \uC0DD\uC131",addButton:"\uAE30\uAE30 \uCD94\uAC00",listTooltip:"\uBAA9\uB85D \uBCF4\uAE30",listTitle:"\uCE21 \uAE30\uAE30 \uBAA9\uB85D",historyEmpty:"\uB4F1\uB85D\uB41C \uAE30\uAE30 \uC774\uB825\uC774 \uC5C6\uC2B5\uB2C8\uB2E4.",wearing:"\uCE21 \uCC29\uC6A9\uC911",notRegistered:"\uBBF8\uB4F1\uB85D",unit:"\uAC1C",wearingNow:"\uCC29\uC6A9",wear:"\uCC29\uC6A9",unwear:"\uCC29\uC6A9 \uD574\uC81C",wornSince:"{{date}}\uBD80\uD130",release:"\uD574\uC81C",historyTitle:"\uCCAD\uAC01\uC7AC\uD65C\uAE30\uAE30 \uC774\uB825"},schedule:{title:"\uBC29\uBB38 \uC608\uC815",addTooltip:"\uC608\uC815 \uB4F1\uB85D",listTooltip:"\uC804\uCCB4 \uBCF4\uAE30",empty:"\uC608\uC815\uB41C \uBC29\uBB38\uC774 \uC5C6\uC2B5\uB2C8\uB2E4.",registerTitle:" \uACE0\uAC1D\uB2D8 \uBC29\uBB38 \uC608\uC815 \uB4F1\uB85D",memoPlaceholder:"\uBC29\uBB38 \uC608\uC815 \uAD00\uB828 \uBA54\uBAA8\uB97C \uC785\uB825\uD574 \uC8FC\uC138\uC694."},visitHistory:{title:"\uBC29\uBB38 \uC774\uB825",addTooltip:"\uC2E0\uADDC \uB4F1\uB85D",empty:"\uC544\uC9C1 \uBC29\uBB38 \uAE30\uB85D\uC774 \uC5C6\uC2B5\uB2C8\uB2E4.",popupTitle:" \uACE0\uAC1D\uB2D8 \uBC29\uBB38 \uC774\uB825",registerTitle:" \uACE0\uAC1D\uB2D8 \uC2E0\uADDC \uBC29\uBB38 \uB4F1\uB85D"},homework:{title:"\uC219\uC81C \uC9C4\uD589\uC0C1\uD669",active:"\uD65C\uC131",inactive:"\uBE44\uD65C\uC131",copy:"\uB9C1\uD06C \uBCF5\uC0AC",copied:"\uB9C1\uD06C\uAC00 \uBCF5\uC0AC\uB418\uC5C8\uC2B5\uB2C8\uB2E4."},moreItems:"\uB354 \uC788\uC74C",viewAll:"\uC804\uCCB4 \uBCF4\uAE30",visits:{title:"\uBC29\uBB38"},trainingRecord:{title:"\uACE0\uAC1D \uD6C8\uB828 \uAE30\uB85D"},status:{trainingSubtitle:"\uD6C8\uB828 \uD604\uD669"},detail:{session:{completedFmt:"\uC644\uB8CC {{done}}/{{total}} \xB7 {{duration}}"},visitSuffix:"\uC758 \uBC29\uBB38"},duration:{minSec:"{{m}}\uBD84 {{s}}\uCD08",min:"{{m}}\uBD84",sec:"{{s}}\uCD08"}},k2={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"}}}},B2={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"}},N2={unitVisit:"\uAC74",periodAll:"\uC804\uCCB4",showN:"{{n}}\uAC1C\uC529"},E2={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"}},D2={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."}},S2={comingSoon:"\uB2E8\uC5B4\uD6C8\uB828 \uAE30\uB2A5\uC744 \uC900\uBE44 \uC911\uC785\uB2C8\uB2E4."},j2={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"},T2={title:"\uC8FC\uC694 \uB2E8\uC5B4",empty:"\uCD94\uCD9C\uB41C \uC8FC\uC694 \uB2E8\uC5B4\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4."},M2={defaultName:"\uB2E8\uC5B4 \uD45C",title:"\uB2E8\uC5B4 \uD45C \uB9CC\uB4E4\uAE30",subtitle:"\uCE78\uC744 \uC124\uC815\uD558\uACE0 \uB2E8\uC5B4\uB97C \uCD94\uAC00\uD558\uC5EC \uD45C\uB97C \uB9CC\uB4ED\uB2C8\uB2E4.",filterTitle:"\uD45C \uC124\uC815",filter:{composition:"\uAD6C\uC131",image:"\uC774\uBBF8\uC9C0",word:"\uB2E8\uC5B4",standardPron:"\uD45C\uC900 \uBC1C\uC74C",colloquialPron:"\uAD6C\uC5B4\uCCB4 \uBC1C\uC74C",paperOrientation:"\uC6A9\uC9C0 \uBC29\uD5A5",landscape:"\uAC00\uB85C",portrait:"\uC138\uB85C",columns:"\uCE78 \uC218",column:"{{count}}\uCE78",itemsPerPageWord:"\uD398\uC774\uC9C0\uB2F9 \uB2E8\uC5B4 \uC218",itemsPerPagePair:"\uD398\uC774\uC9C0\uB2F9 \uB300\uB9BD\uC30D \uC218",itemsPerPageOption:"{{count}}\uAC1C",pageIndicator:"{{current}} / {{total}}",pageNumber:"\uD398\uC774\uC9C0 \uBC88\uD638",pageNumberLeft:"\uC67C\uCABD",pageNumberCenter:"\uC911\uC559",pageNumberRight:"\uC624\uB978\uCABD",border:"\uC678\uACFD\uC120",topInfo:"\uC0C1\uB2E8 \uC815\uBCF4",bottomInfo:"\uD558\uB2E8 \uC815\uBCF4",cutLine:"\uC808\uCDE8\uC120",show:"\uD45C\uC2DC",hide:"\uBBF8\uD45C\uC2DC",dotted:"\uC810\uC120",corner:"\uCF54\uB108"},addWord:"\uCD94\uAC00\uD558\uAE30",wordInfo:"{{word}} \uB0B1\uB9D0 \uC815\uBCF4",emptyItems:"\uB2E8\uC5B4\uB97C 1\uAC1C \uC774\uC0C1 \uCD94\uAC00\uD574\uC8FC\uC138\uC694.",load:"\uBD88\uB7EC\uC624\uAE30",openNewWindow:"\uC0C8 \uCC3D\uC73C\uB85C \uBCF4\uAE30",saveButton:"\uC800\uC7A5\uD558\uAE30",saveAsNewButton:"\uB2E4\uB978 \uC774\uB984\uC73C\uB85C \uC800\uC7A5",print:"\uC778\uC1C4\uD558\uAE30",popupBlocked:"\uD31D\uC5C5\uC774 \uCC28\uB2E8\uB418\uC5C8\uC2B5\uB2C8\uB2E4. \uBE0C\uB77C\uC6B0\uC800 \uC124\uC815\uC5D0\uC11C \uD31D\uC5C5\uC744 \uD5C8\uC6A9\uD574 \uC8FC\uC138\uC694.",printFileNameSingle:"\uB2E8\uC5B4\uD45C",printFileNamePair:"\uB300\uB9BD\uC30D\uD45C",save:{title:"\uB2E8\uC5B4\uD45C \uC800\uC7A5\uD558\uAE30",nameLabel:"\uC774\uB984",desc:"\uC800\uC7A5\uD560 \uB2E8\uC5B4 \uD45C\uC758 \uC774\uB984\uC744 \uC785\uB825\uD558\uC138\uC694.",placeholder:"\uC774 \uB2E8\uC5B4\uD45C\uC5D0 \uB300\uD55C \uC81C\uBAA9\uC744 \uC785\uB825\uD558\uC138\uC694.",descriptionLabel:"\uC124\uBA85",descriptionPlaceholder:"\uC774 \uB2E8\uC5B4\uD45C\uC5D0 \uB300\uD55C \uC124\uBA85\uC744 \uC785\uB825\uD558\uC138\uC694.",duplicateName:"\uC774\uBBF8 \uC0AC\uC6A9 \uC911\uC778 \uC774\uB984\uC785\uB2C8\uB2E4.",nameRequired:"\uD45C \uC774\uB984\uC744 \uC785\uB825\uD574 \uC8FC\uC138\uC694.",autoFillHint:" (Tab \uB610\uB294 space \uC785\uB825\uC2DC \uC790\uB3D9 \uC785\uB825)",copyName:"{{name}} (\uBCF5\uC0AC)"},loadTable:{title:"\uC800\uC7A5\uB41C \uB2E8\uC5B4 \uD45C \uBD88\uB7EC\uC624\uAE30",empty:"\uC800\uC7A5\uB41C \uB2E8\uC5B4 \uD45C\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4.",loadButton:"\uBD88\uB7EC\uC624\uAE30",itemCount:"{{count}}\uAC1C",deleteAriaLabel:"{{name}} \uC0AD\uC81C",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",markName:{o:"\uB9DE\uC74C",triangle:"\uC560\uB9E4",x:"\uD2C0\uB9BC"},button:"\uCC44\uC810\uD558\uAE30",pickTitle:"\uB204\uAD6C\uB97C \uCC44\uC810\uD560\uAE4C\uC694?",pickSubtitle:"\u2018{{name}}\u2019 \uD45C\uB85C \uD6C8\uB828\uD55C \uACE0\uAC1D\uC744 \uACE0\uB974\uC138\uC694.",pickSearch:"\uC774\uB984 \uB610\uB294 \uC804\uD654\uBC88\uD638\uB85C \uCC3E\uAE30",pickEmpty:"\uB4F1\uB85D\uB41C \uACE0\uAC1D\uC774 \uC5C6\uC2B5\uB2C8\uB2E4.",pickNoMatch:"\uCC3E\uB294 \uACE0\uAC1D\uC774 \uC5C6\uC2B5\uB2C8\uB2E4.",pickAgain:"\uACE0\uAC1D \uB2E4\uC2DC \uACE0\uB974\uAE30",scoringFor:"{{name}} \uB2D8 \uCC44\uC810 \uC911",none:"\uCE78 \uC544\uB798 \u25CB \xB7 \u25B3 \xB7 \u2715 \uB97C \uB20C\uB7EC \uB9E4\uAE30\uC138\uC694. \uB9C8\uC6B0\uC2A4\uB85C\uB294 \uCE78\uC5D0 \uC190\uC744 \uC5B9\uC73C\uBA74 \uB098\uD0C0\uB0A9\uB2C8\uB2E4.",tally:"{{marked}}\uCE78 \uCC44\uC810 \xB7 \u25CB {{o}} \xB7 \u25B3 {{triangle}} \xB7 \u2715 {{x}} \xB7 \uC815\uB2F5\uB960 {{rate}}%",save:"\uCC44\uC810 \uC800\uC7A5",saved:"{{name}} \uB2D8\uC758 \uCC44\uC810 {{count}}\uCE78\uC744 \uC800\uC7A5\uD588\uC2B5\uB2C8\uB2E4.",reviewTitle:"\uBCF5\uC2B5\uD45C\uB97C \uB9CC\uB4E4\uAE4C\uC694?",reviewMessage:"{{name}} \uB2D8\uC774 \uD2C0\uB9AC\uAC70\uB098 \uC560\uB9E4\uD588\uB358 {{count}}\uCE78\uC73C\uB85C \uC0C8 \uD45C\uB97C \uB9CC\uB4ED\uB2C8\uB2E4. \uB9DE\uD78C \uCE78\uC740 \uBE60\uC9D1\uB2C8\uB2E4.",reviewConfirm:"\uBCF5\uC2B5\uD45C \uB9CC\uB4E4\uAE30",reviewDescription:"\u2018{{name}}\u2019 \uCC44\uC810\uC5D0\uC11C \uD2C0\uB9AC\uAC70\uB098 \uC560\uB9E4\uD588\uB358 {{count}}\uCE78\uC744 \uBAA8\uC740 \uD45C\uC785\uB2C8\uB2E4.",reviewCreated:"\u2018{{name}}\u2019\uC744(\uB97C) \uB9CC\uB4E4\uC5C8\uC2B5\uB2C8\uB2E4 \u2014 {{count}}\uCE78.",discardTitle:"\uB9E4\uAE34 \uCC44\uC810\uC744 \uBC84\uB9B4\uAE4C\uC694?",discardMessage:"{{count}}\uCE78\uC744 \uB9E4\uACBC\uC9C0\uB9CC \uC544\uC9C1 \uC800\uC7A5\uD558\uC9C0 \uC54A\uC558\uC2B5\uB2C8\uB2E4. \uB098\uAC00\uBA74 \uC0AC\uB77C\uC9D1\uB2C8\uB2E4.",discardConfirm:"\uBC84\uB9AC\uACE0 \uB098\uAC00\uAE30"},info:{grade:"\uB09C\uC774\uB3C4: {{n}}\uB4F1\uAE09",syllables:"\uC74C\uC808 \uC218: {{n}}\uC74C\uC808",pos:"\uD488\uC0AC: {{v}}",wordType:"\uC720\uD615: {{v}}"},pos:{noun:"\uBA85\uC0AC",verb:"\uB3D9\uC0AC",adjective:"\uD615\uC6A9\uC0AC",adverb:"\uBD80\uC0AC",numeral:"\uC218\uC0AC",determiner:"\uAD00\uD615\uC0AC",interjection:"\uAC10\uD0C4\uC0AC",particle:"\uC870\uC0AC",affix:"\uC811\uC0AC",dependentNoun:"\uC758\uC874\uBA85\uC0AC",pronoun:"\uB300\uBA85\uC0AC",auxVerb:"\uBCF4\uC870\uB3D9\uC0AC",auxAdjective:"\uBCF4\uC870\uD615\uC6A9\uC0AC"},reorder:{moved:"{{total}}\uCE78 \uAC00\uC6B4\uB370 {{n}}\uBC88\uC9F8\uB85C \uC62E\uAE40",handle:"{{word}} \uC21C\uC11C \uBC14\uAFB8\uAE30 (Alt + \uD654\uC0B4\uD45C)",hint:"Alt + \u2190 \u2192 \uB85C \uC21C\uC11C \uBC14\uAFB8\uAE30"}},L2={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",original:"\uBC1B\uC740 \uC21C\uC11C"},pageSize:"{{count}}\uAC1C\uC529 \uBCF4\uAE30",pageSizeAria:"\uD398\uC774\uC9C0 \uD06C\uAE30",popup:{title:"{{n}}\uBC88 \uCE78\uC5D0 \uB123\uC744 \uB2E8\uC5B4\uB97C \uC120\uD0DD\uD558\uC138\uC694"}},$2={clearAllSelection:"\uBAA8\uB450 \uC120\uD0DD \uD574\uC81C",divLine:"\uB300\uB9BD\uC120",removePair:"\uB300\uB9BD\uC30D \uBE7C\uAE30",removeWord:"\uB2E8\uC5B4 \uBE7C\uAE30"},R2={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"}},P2={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"}},I2={passwordPlaceholder:"\uBE44\uBC00\uBC88\uD638 \uC785\uB825"},F2={subtitle:"\uC8FC\uC81C\uB97C \uC120\uD0DD\uD558\uC5EC \uB4E3\uAE30 \uC5F0\uC2B5\uC744 \uC9C4\uD589\uD558\uC138\uC694."},O2={direction:{left:"\uC88C",right:"\uC6B0",label:"\uBC29\uD5A5"},wornDate:"\uCC29\uC6A9\uC77C",deviceType:"\uC885\uB958",brand:"\uBE0C\uB79C\uB4DC",fitType:"\uCC29\uC6A9\uD615\uD0DC",productName:"\uC81C\uD488\uBA85",validationError:{brandAndProduct:"\uBE0C\uB79C\uB4DC\uC640 \uC81C\uD488\uBA85\uC744 \uC785\uB825\uD574 \uC8FC\uC138\uC694."},addNew:"\uC0C8 \uAE30\uAE30 \uCD94\uAC00",selectFromList:"\uBAA9\uB85D\uC5D0\uC11C \uC120\uD0DD",removeDevice:"\uCC29\uC6A9 \uD574\uC81C",type:{hearingAid:"\uBCF4\uCCAD\uAE30",cochlearImplant:"\uC778\uACF5\uC640\uC6B0"}},H2={stat:{totalCustomers:"\uCD1D \uACE0\uAC1D",monthlyVisits:"\uC774\uB2EC \uCD1D \uBC29\uBB38"},chart:{visitDetail:"\uC0C1\uC138 \uBC29\uBB38 \uD604\uD669",trainingDetail:"\uC0C1\uC138 \uD6C8\uB828 \uD604\uD669",weekly:"\uC8FC\uBCC4",daily:"\uC77C\uBCC4",periodMonth:"\uC6D4",periodWeek:"\uC8FC",weeklyPrefix:"\uC8FC\uAC04",monthlyPrefix:"\uC6D4\uAC04",visit:"\uBC29\uBB38",reservation:"\uC608\uC57D",trainingDone:"\uD6C8\uB828 \uC644\uB8CC",trainingInProgress:"\uD6C8\uB828 \uC911",weekRange:"{{start}}~{{end}}",week:"{{n}}\uC8FC"},subscriptionStatus:{active:"{{pct}}% \uD65C\uC131",expired:"{{pct}}% \uB9CC\uB8CC",unused:"{{pct}}% \uBBF8\uC0AC\uC6A9"}},z2={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."]},V2={sentenceTyping:{roundCount:"{{rounds}}\uBB38\uC81C \xB7 \uBB38\uC81C\uB2F9 {{timeLimit}}\uCD08"},wordDefense:{me:"\uB098"},dictation:{title:"\uBC1B\uC544\uC4F0\uAE30",desc:"\uBB38\uC7A5\uC744 \uB4E3\uACE0 \uC815\uD655\uD788 \uBC1B\uC544\uC801\uB294 \uC5F0\uC2B5\uC785\uB2C8\uB2E4.",comingSoon:"\uAD6C\uD604 \uC608\uC815: \uC74C\uC131 \uC7AC\uC0DD, \uC785\uB825 \uD544\uB4DC, \uC815\uB2F5 \uBE44\uAD50"},result:{heading:"{{number}}\uB2E8\uACC4 \uD574\uB2F5",retry:"\uB2E4\uC2DC \uD480\uAE30"},common:{accuracy:"{{pct}}% \uC815\uD655\uB3C4"},soundMatch:{title:"\uC18C\uB9AC \uB9E4\uCE6D",desc:"\uAC19\uC740 \uC18C\uB9AC\uB97C \uAC00\uC9C4 \uB2E8\uC5B4 \uB610\uB294 \uBB38\uC7A5\uC744 \uBE60\uB974\uAC8C \uB9E4\uCE6D\uD558\uB294 \uAC8C\uC784\uC785\uB2C8\uB2E4.",comingSoon:"\uAD6C\uD604 \uC608\uC815: \uD50C\uB808\uC774 \uBC84\uD2BC, \uD0C0\uC774\uBA38, \uC810\uC218 \uC9D1\uACC4"},orderSequence:{title:"\uBB38\uC7A5 \uC21C\uC11C\uD654",desc:"\uD769\uC5B4\uC9C4 \uBB38\uC7A5 \uC870\uAC01\uC744 \uC62C\uBC14\uB978 \uC21C\uC11C\uB85C \uBC30\uC5F4\uD558\uB294 \uD6C8\uB828\uC785\uB2C8\uB2E4.",comingSoon:"\uAD6C\uD604 \uC608\uC815: \uBB38\uC7A5 \uC138\uD2B8, \uC21C\uC11C \uD655\uC778 \uC778\uD130\uD398\uC774\uC2A4"},speedListen:{title:"\uC18D\uB3C4 \uB4E3\uAE30",desc:"\uC2DC\uAC04 \uC81C\uD55C \uB0B4\uC5D0 \uBB38\uC7A5\uC758 \uB2E8\uC5B4 \uC218\uB97C \uB9DE\uCD94\uB294 \uB3C4\uC804\uD615 \uAC8C\uC784\uC785\uB2C8\uB2E4.",comingSoon:"\uAD6C\uD604 \uC608\uC815: \uC81C\uD55C\uC2DC\uAC04, \uC810\uC218\uD310"},noiseChallenge:{title:"\uC18C\uC74C \uCC4C\uB9B0\uC9C0",desc:"\uBC30\uACBD \uC18C\uC74C \uC18D\uC5D0\uC11C \uBB38\uC7A5\uC744 \uBD84\uBCC4\uD558\uB294 \uC5F0\uC2B5\uC785\uB2C8\uB2E4.",comingSoon:"\uAD6C\uD604 \uC608\uC815: \uB2E4\uC591\uD55C \uC18C\uC74C \uB808\uBCA8, \uC810\uC218 \uC9D1\uACC4"},fastListen:{title:"\uBE60\uB978 \uB4E3\uAE30",desc:"\uC9E7\uC740 \uBB38\uC7A5\uC744 \uBE60\uB974\uAC8C \uB4E4\uB824\uC8FC\uACE0 \uD575\uC2EC \uB2E8\uC5B4\uB97C \uC120\uD0DD\uD558\uB294 \uAC8C\uC784\uC785\uB2C8\uB2E4.",comingSoon:"\uAD6C\uD604 \uC608\uC815: \uB09C\uC774\uB3C4\uBCC4 \uC18D\uB3C4, \uD0C0\uC774\uBA38"},shadowing:{title:"\uC250\uB3C4\uC789",desc:"\uBB38\uC7A5\uC744 \uB530\uB77C \uB9D0\uD558\uBA70 \uBC1C\uC74C\uACFC \uC5B5\uC591\uC744 \uC5F0\uC2B5\uD558\uB294 \uBAA8\uB4DC\uC785\uB2C8\uB2E4.",comingSoon:"\uAD6C\uD604 \uC608\uC815: \uC7AC\uC0DD, \uB179\uC74C, \uBE44\uAD50 \uD53C\uB4DC\uBC31"},phonemeHunt:{title:"\uC74C\uC6B4 \uCC3E\uAE30",desc:"\uD2B9\uC815 \uC74C\uC6B4(\uBC1C\uC74C)\uC744 \uD3EC\uD568\uD55C \uB2E8\uC5B4\uB97C \uCC3E\uC544\uB0B4\uB294 \uAC8C\uC784\uC785\uB2C8\uB2E4.",comingSoon:"\uAD6C\uD604 \uC608\uC815: \uC74C\uC6B4 \uD544\uD130, \uD78C\uD2B8 \uAE30\uB2A5"}},W2={lead:`\uC544\uC774\uD574\uBE0C\uB294 \uC18C\uB9AC\uB97C \uD1B5\uD574
|
|
848
848
|
\uC2E0\uB8B0\uB97C \uC313\uACE0
|
|
849
|
-
\uD68C\uBCF5\uC744 \uB3D5\uC2B5\uB2C8\uB2E4.`,site:{title:"\uC0AC\uC774\uD2B8",malgwi:"\uB9D0\uADC0",soundDirection:"\uC18C\uB9AC\uBC29\uD5A5\uC131\uC2DC\uC2A4\uD15C",vrSoundDirection:"VR\uC18C\uB9AC\uBC29\uD5A5\uC131\uC2DC\uC2A4\uD15C",hearingTest:"\uCCAD\uB825\uD14C\uC2A4\uD2B8 \uD504\uB85C"},sns:{title:"SNS",naverBlog:"\uB124\uC774\uBC84 \uBE14\uB85C\uADF8",kakao:"KAKAO Talk \uC624\uD508\uCC44\uD305"},policy:{title:"\uC815\uCC45",terms:"\uC774\uC6A9\uC57D\uAD00",privacy:"\uAC1C\uC778\uC815\uBCF4 \uCC98\uB9AC\uBC29\uCE68"},ceo:"\uB300\uD45C",address:"\uC8FC\uC18C",support:"\uACE0\uAC1D\uC13C\uD130",ceoName:"\uD55C\uC9C0\uD61C",addressValue:"\uAC15\uC6D0\uB3C4 \uCD98\uCC9C\uC2DC \uC2DC\uCCAD\uAE38 32 \uD574\uCC2C\uBE4C\uB529 3\uCE35 302\uD638"},q2={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"}}},U2={timeHM:"{{h}}\uC2DC {{m}}\uBD84",timeH:"{{h}}\uC2DC"},G2={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"}},K2={answer:"\uC815\uB2F5",distractor:"\uC624\uB2F5"},Y2={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"},Z2={clearAriaLabel:"\uC785\uB825\uAC12 \uC9C0\uC6B0\uAE30"},X2={ariaLabel:"\uC120\uD0DD \uD0ED"},J2={ariaLabel:"\uD0ED"},Q2={dragPrompt:"\uD30C\uC77C\uC744 \uC774\uACF3\uC5D0 \uB4DC\uB798\uADF8\uD558\uC5EC \uC5C5\uB85C\uB4DC",browseButton:"\uD30C\uC77C \uC120\uD0DD",removeAriaLabel:"{{name}} \uC81C\uAC70"},ef={ariaLabel:"\uC0AC\uC6A9\uC790 \uC544\uBC14\uD0C0"},tf={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"}},nf={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"}},af={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"}},rf={manage:{unit:"\uAC74"}},of={cancelLabel:"\uCDE8\uC18C"},sf={steps:"\uC9C4\uD589 \uB2E8\uACC4 {{current}} / {{total}}"},lf={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"},cf={resetColumns:"\uCE78 \uB108\uBE44 \uCD08\uAE30\uD654"},uf={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"},df={ariaLabel:"\uBC30\uB108",dotAriaLabel:"{{count}}\uAC1C \uC911 {{index}}\uBC88\uC9F8 \uBC30\uB108"},pf={selectYearMonth:"\uC5F0\uC6D4 \uC120\uD0DD",chooseDate:"\uB0A0\uC9DC \uC120\uD0DD"},mf={previewRegion:"\uBCF4\uACE0\uC11C \uBBF8\uB9AC\uBCF4\uAE30 \u2014 \uC88C\uC6B0\uB85C \uAD74\uB824 \uBCFC \uC218 \uC788\uC2B5\uB2C8\uB2E4"},hf={description:"\uC124\uBA85",textbox:"\uBCF8\uBB38",training:"\uD6C8\uB828 \uC548\uB0B4",menu:"\uBA54\uB274"},Cf={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"}},ff={clearSelection:"\uC120\uD0DD \uD574\uC81C"},gf={showResult:"{{type}} \uACB0\uACFC\uBCF4\uAE30"},bf={selected:"\uC120\uD0DD\uB428",remove:"\uC81C\uAC70",exclude:"\uC81C\uC678",nthSelected:"{{n}}\uBC88\uC9F8 \uC120\uD0DD"},yf={loading:"\uBD88\uB7EC\uC624\uB294 \uC911\u2026"},vf={state:{active:"\uC18C\uB9AC \uB098\uB294 \uC911",played:"\uB4E4\uC74C",correct:"\uC815\uB2F5",wrong:"\uC624\uB2F5"}},xf={ariaLabel:"\uC774\uB3D9 \uACBD\uB85C"},_f={empty:"\uB4F1\uB85D\uB41C \uD56D\uBAA9\uC774 \uC5C6\uC2B5\uB2C8\uB2E4."},wf={main:"\uBA54\uC778 \uADF8\uB77C\uB514\uC5B8\uD2B8",soft:"\uC18C\uD504\uD2B8",sub:"\uC11C\uBE0C \uCEEC\uB7EC",deep:"\uB525 \uADF8\uB77C\uB514\uC5B8\uD2B8",softSub:"\uC18C\uD504\uD2B8 \uC11C\uBE0C",warm:"\uC6DC(\uAC15\uC870)",dark:"\uB2E4\uD06C",radial:"\uBC29\uC0AC\uD615 \uADF8\uB77C\uB514\uC5B8\uD2B8",diagonal:"\uB300\uAC01\uC120 \uD328\uD134",dots:"\uB3C4\uD2B8 \uD328\uD134",outline:"\uC544\uC6C3\uB77C\uC778",success:"\uC131\uACF5/\uC644\uB8CC",naver:"\uB124\uC774\uBC84 \uBE14\uB85C\uADF8 \uC548\uB0B4",instagram:"\uC778\uC2A4\uD0C0\uADF8\uB7A8 \uC548\uB0B4"},Af={common:l2,calendar:c2,passCard:u2,searchField:d2,rating:p2,colorPicker:m2,dropdown:h2,accordion:C2,header:f2,nav:g2,settings:b2,usage:y2,account:v2,help:x2,training:_2,trainingSettings:w2,customers:A2,payment:k2,coupons:B2,visits:N2,company:E2,trainingType:D2,myWordTraining:S2,myWordTable:j2,keyWords:T2,wordTable:M2,wordSearch:L2,wordPrint:$2,topic:R2,accessLinkManager:P2,login:I2,trainingPlanRun:F2,device:O2,manager:H2,wordPairs:z2,game:V2,footer:W2,landing:q2,date:U2,trainingSetPage:G2,wordTrainingPreview:K2,wordData:Y2,textField:Z2,segmentedControl:X2,tabs:J2,fileUpload:Q2,avatar:ef,myHomework:tf,trainingStatus:nf,store:af,homework:rf,inquiry:of,progress:sf,trainingMiss:lf,table:cf,wordScore:uf,topBanner:df,datePicker:pf,report:mf,tooltip:hf,phonemeProfile:Cf,bulkBar:ff,debug:gf,badge:bf,loader:yf,soundCompass:vf,breadcrumb:xf,board:_f,promoBannerBg:wf},kf={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",discardConfirm:{title:"Discard your changes?",body:"If you do not save, everything you have entered will be lost.",confirm:"Discard"},close:"Close",back:"Back",emptyTrainingName:"Training name is empty.",remove:"Remove",image:"Image",delete:"Delete",reset:"Reset",update:"Update",download:"Download",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",networkError:"The network connection is unstable. Check your connection and try again."},Bf={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",visitCount:"{{count}} visit(s)"},Nf={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"}},Ef={clearAriaLabel:"Clear search"},Df={starLabel:"Select star {{n}}",valueLabel:"{{value}} out of {{max}}",groupLabel:"Rating"},Sf={selected:"selected"},jf={placeholder:"Select"},Tf={collapse:"Collapse",expand:"Expand"},Mf={biArea:"BI area",biSymbol:"BI symbol",logoMalgwi:"Malgwi logo",logoManager:"Malgwi Manager logo",menuOpen:"Open menu",utilMenu:"Utility menu",menuClose:"Close menu"},Lf={mainMenu:"Main menu",bottomNav:"Bottom navigation",goToManager:"Go to Malgwi Manager",goToMalgwi:"Go to Malgwi",modeLabelManager:"Malgwi Manager",modeLabelMalgwi:"Malgwi",training:"Training",settings:"Settings",notifications:"Notifications",account:"Account",help:"Help",feedback:"Report a bug",debug:"Debug",coupons:"Coupons",topic:"By Topic",trainingType:"By Training Type",wordPairs:"Word Pairs",wordSearch:"Word Search",wordTable:"Word Table Creator",company:"Company Info",more:"More",moreMenu:"More menu",badgeLabel:"{{label}}, {{count}}"},$f={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."}}},Rf={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"}},Pf={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"}}},If={guide:{faq:{title:"FAQ",desc:"View all frequently asked questions"}}},Ff={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",selectInOrder:"Select the cards in the order you heard.",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.",ttsUnavailable:"Speech playback isn't available on this device.",selectConfirm:"Look at the question and select the answer.",orderListDefault:"Arrange the sentences in the order you heard.",result:{pendingDone:"Results are still being calculated, so you can't finish yet.",eyebrow:"Training Complete",title:"You've finished all the training!",scoreAria:"{{correct}} / {{total}} questions",elapsed:"Time Elapsed",summary:"You heard {{correct}} item(s) correctly.",tableAriaLabel:"Per-question judgement",colJudge:"Judgement",colAnswerSelected:"Answer \xB7 Selected",colAnswer:"Answer",colSelected:"Selected",heardWell:"Heard well",notHeard:"Didn't hear",notJudged:"Not judged",replay:"Replay",done:"Done",viewResult:"View Results",noContent:"(No content)"},up:"Move up",down:"Move down",prev:"Previous",listenLabel:"Listen",sourcePlay:"Play source {{n}}",listen:"Listen",audioStatus:{idle:"Idle",resolving:"Resolving\u2026",checking_exists:"Checking file\u2026",getting_signed_url:"Getting URL\u2026",downloading:"Downloading\u2026",measuring_duration:"Measuring length\u2026",ready:"Ready",error:"Error"}},Of={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"},Hf={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"}},zf={plan:{recommendedFor:"Recommended for",features:"Key Features",freePrice:"Free",contact:"Contact Us",tierFallback:"Plan",openPromo:"Launch offer"},products:{mgrEnterprise:{tier:{price:"Contact us"}}}},Vf={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"}},Wf={unitVisit:"",periodAll:"All",showN:"Show {{n}}"},qf={subtitle:"Manage company and business information",editButton:"Edit Info",basicInfo:{title:"Basic Info"},contactInfo:{title:"Contact Info"}},Uf={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."}},Gf={comingSoon:"Word training is coming soon."},Kf={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"},Yf={title:"Key Words",empty:"No key words available."},Zf={defaultName:"Word Table",title:"Word Table Builder",subtitle:"Set columns and add words to build a table.",filterTitle:"Table Settings",filter:{composition:"Composition",image:"Image",word:"Word",standardPron:"Standard Pronunciation",colloquialPron:"Colloquial Pronunciation",paperOrientation:"Paper Orientation",landscape:"Landscape",portrait:"Portrait",columns:"Columns",column:"{{count}} col",itemsPerPageWord:"Words per page",itemsPerPagePair:"Pairs per page",itemsPerPageOption:"{{count}}",pageIndicator:"{{current}} / {{total}}",pageNumber:"Page Number",pageNumberLeft:"Left",pageNumberCenter:"Center",pageNumberRight:"Right",border:"Border",topInfo:"Header",bottomInfo:"Footer",cutLine:"Cut Line",show:"Show",hide:"Hide",dotted:"Dotted",corner:"Corner"},addWord:"Add",wordInfo:"Info for {{word}}",emptyItems:"Please add at least one word.",load:"Load",openNewWindow:"Open in New Window",saveButton:"Save",saveAsNewButton:"Save as New",print:"Print",popupBlocked:"Popup was blocked. Please allow popups in your browser settings.",printFileNameSingle:"Word Table",printFileNamePair:"Contrast Pair Table",save:{title:"Save Word Table",nameLabel:"Name",desc:"Enter a name for the word table.",placeholder:"Enter a title for this word table.",descriptionLabel:"Description",descriptionPlaceholder:"Enter a description for this word table.",duplicateName:"This name is already in use.",nameRequired:"Please enter a table name.",autoFillHint:" (Press Tab or Space to autofill)",copyName:"{{name}} (copy)"},loadTable:{title:"Load Saved Word Table",empty:"No saved word tables.",loadButton:"Load",itemCount:"{{count}} words",deleteAriaLabel:"Delete {{name}}",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 \u25CB \xB7 \u25B3 \xB7 \u2715 under a cell to mark it. With a mouse, hover the cell to reveal them.",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"},info:{grade:"Grade: {{n}}",syllables:"Syllables: {{n}}",pos:"Part of speech: {{v}}",wordType:"Type: {{v}}"},pos:{noun:"Noun",verb:"Verb",adjective:"Adjective",adverb:"Adverb",numeral:"Numeral",determiner:"Determiner",interjection:"Interjection",particle:"Particle",affix:"Affix",dependentNoun:"Dependent noun",pronoun:"Pronoun",auxVerb:"Auxiliary verb",auxAdjective:"Auxiliary adjective"},reorder:{moved:"Moved to position {{n}} of {{total}}",handle:"Reorder {{word}} (Alt + arrow keys)",hint:"Alt + \u2190 \u2192 to reorder"}},Xf={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",original:"Original order"},pageSize:"Show {{count}}",pageSizeAria:"Page size",popup:{title:"Select a word for cell {{n}}"}},Jf={clearAllSelection:"Clear All Selections",divLine:"Contrast Line",removePair:"Remove pair",removeWord:"Remove word"},Qf={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"}},eg={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"}},tg={passwordPlaceholder:"Enter password"},ng={direction:{left:"L",right:"R",label:"Side"},wornDate:"Date Worn",deviceType:"Device Type",brand:"Brand",fitType:"Fit Type",productName:"Product Name",validationError:{brandAndProduct:"Please enter brand and product name."},addNew:"Add New Device",selectFromList:"Select from List",removeDevice:"Remove",type:{hearingAid:"Hearing Aid",cochlearImplant:"Cochlear Implant"}},ag={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"}},rg={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."]},og={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"}},sg={lead:`IHAB builds trust
|
|
849
|
+
\uD68C\uBCF5\uC744 \uB3D5\uC2B5\uB2C8\uB2E4.`,site:{title:"\uC0AC\uC774\uD2B8",malgwi:"\uB9D0\uADC0",soundDirection:"\uC18C\uB9AC\uBC29\uD5A5\uC131\uC2DC\uC2A4\uD15C",vrSoundDirection:"VR\uC18C\uB9AC\uBC29\uD5A5\uC131\uC2DC\uC2A4\uD15C",hearingTest:"\uCCAD\uB825\uD14C\uC2A4\uD2B8 \uD504\uB85C"},sns:{title:"SNS",naverBlog:"\uB124\uC774\uBC84 \uBE14\uB85C\uADF8",kakao:"KAKAO Talk \uC624\uD508\uCC44\uD305"},policy:{title:"\uC815\uCC45",terms:"\uC774\uC6A9\uC57D\uAD00",privacy:"\uAC1C\uC778\uC815\uBCF4 \uCC98\uB9AC\uBC29\uCE68"},ceo:"\uB300\uD45C",address:"\uC8FC\uC18C",support:"\uACE0\uAC1D\uC13C\uD130",ceoName:"\uD55C\uC9C0\uD61C",addressValue:"\uAC15\uC6D0\uB3C4 \uCD98\uCC9C\uC2DC \uC2DC\uCCAD\uAE38 32 \uD574\uCC2C\uBE4C\uB529 3\uCE35 302\uD638"},q2={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"}}},U2={timeHM:"{{h}}\uC2DC {{m}}\uBD84",timeH:"{{h}}\uC2DC"},G2={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"}},K2={answer:"\uC815\uB2F5",distractor:"\uC624\uB2F5"},Y2={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"},Z2={clearAriaLabel:"\uC785\uB825\uAC12 \uC9C0\uC6B0\uAE30"},X2={ariaLabel:"\uC120\uD0DD \uD0ED"},J2={ariaLabel:"\uD0ED"},Q2={dragPrompt:"\uD30C\uC77C\uC744 \uC774\uACF3\uC5D0 \uB4DC\uB798\uADF8\uD558\uC5EC \uC5C5\uB85C\uB4DC",browseButton:"\uD30C\uC77C \uC120\uD0DD",removeAriaLabel:"{{name}} \uC81C\uAC70"},ef={ariaLabel:"\uC0AC\uC6A9\uC790 \uC544\uBC14\uD0C0"},tf={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"}},nf={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"}},af={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"}},rf={manage:{unit:"\uAC74"}},of={cancelLabel:"\uCDE8\uC18C"},sf={steps:"\uC9C4\uD589 \uB2E8\uACC4 {{current}} / {{total}}"},lf={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"},uf={resetColumns:"\uCE78 \uB108\uBE44 \uCD08\uAE30\uD654"},cf={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"},df={ariaLabel:"\uBC30\uB108",dotAriaLabel:"{{count}}\uAC1C \uC911 {{index}}\uBC88\uC9F8 \uBC30\uB108"},pf={selectYearMonth:"\uC5F0\uC6D4 \uC120\uD0DD",chooseDate:"\uB0A0\uC9DC \uC120\uD0DD"},mf={previewRegion:"\uBCF4\uACE0\uC11C \uBBF8\uB9AC\uBCF4\uAE30 \u2014 \uC88C\uC6B0\uB85C \uAD74\uB824 \uBCFC \uC218 \uC788\uC2B5\uB2C8\uB2E4"},hf={description:"\uC124\uBA85",textbox:"\uBCF8\uBB38",training:"\uD6C8\uB828 \uC548\uB0B4",menu:"\uBA54\uB274"},Cf={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"}},ff={clearSelection:"\uC120\uD0DD \uD574\uC81C"},gf={showResult:"{{type}} \uACB0\uACFC\uBCF4\uAE30"},bf={selected:"\uC120\uD0DD\uB428",remove:"\uC81C\uAC70",exclude:"\uC81C\uC678",nthSelected:"{{n}}\uBC88\uC9F8 \uC120\uD0DD"},yf={loading:"\uBD88\uB7EC\uC624\uB294 \uC911\u2026"},vf={state:{active:"\uC18C\uB9AC \uB098\uB294 \uC911",played:"\uB4E4\uC74C",correct:"\uC815\uB2F5",wrong:"\uC624\uB2F5"}},xf={ariaLabel:"\uC774\uB3D9 \uACBD\uB85C"},_f={empty:"\uB4F1\uB85D\uB41C \uD56D\uBAA9\uC774 \uC5C6\uC2B5\uB2C8\uB2E4."},wf={main:"\uBA54\uC778 \uADF8\uB77C\uB514\uC5B8\uD2B8",soft:"\uC18C\uD504\uD2B8",sub:"\uC11C\uBE0C \uCEEC\uB7EC",deep:"\uB525 \uADF8\uB77C\uB514\uC5B8\uD2B8",softSub:"\uC18C\uD504\uD2B8 \uC11C\uBE0C",warm:"\uC6DC(\uAC15\uC870)",dark:"\uB2E4\uD06C",radial:"\uBC29\uC0AC\uD615 \uADF8\uB77C\uB514\uC5B8\uD2B8",diagonal:"\uB300\uAC01\uC120 \uD328\uD134",dots:"\uB3C4\uD2B8 \uD328\uD134",outline:"\uC544\uC6C3\uB77C\uC778",success:"\uC131\uACF5/\uC644\uB8CC",naver:"\uB124\uC774\uBC84 \uBE14\uB85C\uADF8 \uC548\uB0B4",instagram:"\uC778\uC2A4\uD0C0\uADF8\uB7A8 \uC548\uB0B4"},Af={common:l2,calendar:u2,passCard:c2,searchField:d2,rating:p2,colorPicker:m2,dropdown:h2,accordion:C2,header:f2,nav:g2,settings:b2,usage:y2,account:v2,help:x2,training:_2,trainingSettings:w2,customers:A2,payment:k2,coupons:B2,visits:N2,company:E2,trainingType:D2,myWordTraining:S2,myWordTable:j2,keyWords:T2,wordTable:M2,wordSearch:L2,wordPrint:$2,topic:R2,accessLinkManager:P2,login:I2,trainingPlanRun:F2,device:O2,manager:H2,wordPairs:z2,game:V2,footer:W2,landing:q2,date:U2,trainingSetPage:G2,wordTrainingPreview:K2,wordData:Y2,textField:Z2,segmentedControl:X2,tabs:J2,fileUpload:Q2,avatar:ef,myHomework:tf,trainingStatus:nf,store:af,homework:rf,inquiry:of,progress:sf,trainingMiss:lf,table:uf,wordScore:cf,topBanner:df,datePicker:pf,report:mf,tooltip:hf,phonemeProfile:Cf,bulkBar:ff,debug:gf,badge:bf,loader:yf,soundCompass:vf,breadcrumb:xf,board:_f,promoBannerBg:wf},kf={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",discardConfirm:{title:"Discard your changes?",body:"If you do not save, everything you have entered will be lost.",confirm:"Discard"},close:"Close",back:"Back",emptyTrainingName:"Training name is empty.",remove:"Remove",image:"Image",delete:"Delete",reset:"Reset",update:"Update",download:"Download",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",networkError:"The network connection is unstable. Check your connection and try again."},Bf={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",visitCount:"{{count}} visit(s)"},Nf={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"}},Ef={clearAriaLabel:"Clear search"},Df={starLabel:"Select star {{n}}",valueLabel:"{{value}} out of {{max}}",groupLabel:"Rating"},Sf={selected:"selected"},jf={placeholder:"Select"},Tf={collapse:"Collapse",expand:"Expand"},Mf={biArea:"BI area",biSymbol:"BI symbol",logoMalgwi:"Malgwi logo",logoManager:"Malgwi Manager logo",menuOpen:"Open menu",utilMenu:"Utility menu",menuClose:"Close menu"},Lf={mainMenu:"Main menu",bottomNav:"Bottom navigation",goToManager:"Go to Malgwi Manager",goToMalgwi:"Go to Malgwi",modeLabelManager:"Malgwi Manager",modeLabelMalgwi:"Malgwi",training:"Training",settings:"Settings",notifications:"Notifications",account:"Account",help:"Help",feedback:"Report a bug",debug:"Debug",coupons:"Coupons",topic:"By Topic",trainingType:"By Training Type",wordPairs:"Word Pairs",wordSearch:"Word Search",wordTable:"Word Table Creator",company:"Company Info",more:"More",moreMenu:"More menu",badgeLabel:"{{label}}, {{count}}"},$f={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."}}},Rf={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"}},Pf={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"}}},If={guide:{faq:{title:"FAQ",desc:"View all frequently asked questions"}}},Ff={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",selectInOrder:"Select the cards in the order you heard.",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.",ttsUnavailable:"Speech playback isn't available on this device.",selectConfirm:"Look at the question and select the answer.",orderListDefault:"Arrange the sentences in the order you heard.",result:{pendingDone:"Results are still being calculated, so you can't finish yet.",eyebrow:"Training Complete",title:"You've finished all the training!",scoreAria:"{{correct}} / {{total}} questions",elapsed:"Time Elapsed",summary:"You heard {{correct}} item(s) correctly.",tableAriaLabel:"Per-question judgement",colJudge:"Judgement",colAnswerSelected:"Answer \xB7 Selected",colAnswer:"Answer",colSelected:"Selected",heardWell:"Heard well",notHeard:"Didn't hear",notJudged:"Not judged",replay:"Replay",done:"Done",viewResult:"View Results",noContent:"(No content)"},up:"Move up",down:"Move down",prev:"Previous",listenLabel:"Listen",sourcePlay:"Play source {{n}}",listen:"Listen",audioStatus:{idle:"Idle",resolving:"Resolving\u2026",checking_exists:"Checking file\u2026",getting_signed_url:"Getting URL\u2026",downloading:"Downloading\u2026",measuring_duration:"Measuring length\u2026",ready:"Ready",error:"Error"}},Of={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"},Hf={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"}},zf={plan:{recommendedFor:"Recommended for",features:"Key Features",freePrice:"Free",contact:"Contact Us",tierFallback:"Plan",openPromo:"Launch offer"},products:{mgrEnterprise:{tier:{price:"Contact us"}}}},Vf={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"}},Wf={unitVisit:"",periodAll:"All",showN:"Show {{n}}"},qf={subtitle:"Manage company and business information",editButton:"Edit Info",basicInfo:{title:"Basic Info"},contactInfo:{title:"Contact Info"}},Uf={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."}},Gf={comingSoon:"Word training is coming soon."},Kf={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"},Yf={title:"Key Words",empty:"No key words available."},Zf={defaultName:"Word Table",title:"Word Table Builder",subtitle:"Set columns and add words to build a table.",filterTitle:"Table Settings",filter:{composition:"Composition",image:"Image",word:"Word",standardPron:"Standard Pronunciation",colloquialPron:"Colloquial Pronunciation",paperOrientation:"Paper Orientation",landscape:"Landscape",portrait:"Portrait",columns:"Columns",column:"{{count}} col",itemsPerPageWord:"Words per page",itemsPerPagePair:"Pairs per page",itemsPerPageOption:"{{count}}",pageIndicator:"{{current}} / {{total}}",pageNumber:"Page Number",pageNumberLeft:"Left",pageNumberCenter:"Center",pageNumberRight:"Right",border:"Border",topInfo:"Header",bottomInfo:"Footer",cutLine:"Cut Line",show:"Show",hide:"Hide",dotted:"Dotted",corner:"Corner"},addWord:"Add",wordInfo:"Info for {{word}}",emptyItems:"Please add at least one word.",load:"Load",openNewWindow:"Open in New Window",saveButton:"Save",saveAsNewButton:"Save as New",print:"Print",popupBlocked:"Popup was blocked. Please allow popups in your browser settings.",printFileNameSingle:"Word Table",printFileNamePair:"Contrast Pair Table",save:{title:"Save Word Table",nameLabel:"Name",desc:"Enter a name for the word table.",placeholder:"Enter a title for this word table.",descriptionLabel:"Description",descriptionPlaceholder:"Enter a description for this word table.",duplicateName:"This name is already in use.",nameRequired:"Please enter a table name.",autoFillHint:" (Press Tab or Space to autofill)",copyName:"{{name}} (copy)"},loadTable:{title:"Load Saved Word Table",empty:"No saved word tables.",loadButton:"Load",itemCount:"{{count}} words",deleteAriaLabel:"Delete {{name}}",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",markName:{o:"Correct",triangle:"Partial",x:"Incorrect"},button:"Score",pickTitle:"Who are you scoring?",pickSubtitle:"Choose the customer who trained with \u201C{{name}}\u201D.",pickSearch:"Search by name or phone",pickEmpty:"No customers registered.",pickNoMatch:"No matching customer.",pickAgain:"Choose another",scoringFor:"Scoring {{name}}",none:"Tap \u25CB \xB7 \u25B3 \xB7 \u2715 under a cell to mark it. With a mouse, hover the cell to reveal them.",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"},info:{grade:"Grade: {{n}}",syllables:"Syllables: {{n}}",pos:"Part of speech: {{v}}",wordType:"Type: {{v}}"},pos:{noun:"Noun",verb:"Verb",adjective:"Adjective",adverb:"Adverb",numeral:"Numeral",determiner:"Determiner",interjection:"Interjection",particle:"Particle",affix:"Affix",dependentNoun:"Dependent noun",pronoun:"Pronoun",auxVerb:"Auxiliary verb",auxAdjective:"Auxiliary adjective"},reorder:{moved:"Moved to position {{n}} of {{total}}",handle:"Reorder {{word}} (Alt + arrow keys)",hint:"Alt + \u2190 \u2192 to reorder"}},Xf={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",original:"Original order"},pageSize:"Show {{count}}",pageSizeAria:"Page size",popup:{title:"Select a word for cell {{n}}"}},Jf={clearAllSelection:"Clear All Selections",divLine:"Contrast Line",removePair:"Remove pair",removeWord:"Remove word"},Qf={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"}},eg={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"}},tg={passwordPlaceholder:"Enter password"},ng={direction:{left:"L",right:"R",label:"Side"},wornDate:"Date Worn",deviceType:"Device Type",brand:"Brand",fitType:"Fit Type",productName:"Product Name",validationError:{brandAndProduct:"Please enter brand and product name."},addNew:"Add New Device",selectFromList:"Select from List",removeDevice:"Remove",type:{hearingAid:"Hearing Aid",cochlearImplant:"Cochlear Implant"}},ag={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"}},rg={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."]},og={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"}},sg={lead:`IHAB builds trust
|
|
850
850
|
through sound
|
|
851
|
-
and aids recovery.`,site:{title:"Site",malgwi:"Malgwi",soundDirection:"Sound Direction System",vrSoundDirection:"VR Sound Direction System",hearingTest:"Hearing Test Pro"},sns:{title:"SNS",naverBlog:"Naver Blog",kakao:"KAKAO Talk Open Chat"},policy:{title:"Policy",terms:"Terms of Service",privacy:"Privacy Policy"},ceo:"CEO",address:"Address",support:"Support",ceoName:"Ji-hye Han",addressValue:"302, 3F, Haechan Bldg, 32 Siocheong-gil, Chuncheon, Gangwon, Korea"},ig={trainingPhone:{topic:"Gardening",prev:"Prev",next:"Next",speed:"Speed 3",noiseType:"Crowd noise",settings:"Settings",start:{caption:"Press the play (\u25B6) button below and listen carefully. After listening, check the sentence."},feedback:{caption:"Plant the well-grown seedlings in the garden bed and cover them carefully with plastic film."},done:{heardWell:"Heard clearly",listenAgain:"Listen again"}}},lg={timeHM:"{{hh}}:{{mm}}",timeH:"{{hh}}:{{mm}}"},cg={options:"Training Options",difficulty:"Difficulty",exclude:"Exclude",chosung:"Initial Consonant",excludeOptions:{none:"None",noImage:"No Image"}},ug={answer:"Answer",distractor:"Distractor"},dg={phaseWordDownload:"Download Word Data",phaseImageCheck:"Check Images",phasePairAnalysis:"Analyze Word Pairs",downloadingCount:"Downloading {{n}} words",checkingPage:"Checking page {{page}} list",imageCount:"{{done}} / {{total}} items"},pg={clearAriaLabel:"Clear input"},mg={ariaLabel:"Select tab"},hg={ariaLabel:"Tabs"},Cg={dragPrompt:"Drag and drop files here",browseButton:"Choose Files",removeAriaLabel:"Remove {{name}}"},fg={ariaLabel:"User avatar"},gg={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"}},bg={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"}},yg={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)"}},vg={manage:{unit:"item(s)"}},xg={cancelLabel:"Cancel"},_g={subtitle:"Select a topic to start listening practice."},wg={steps:"Step {{current}} of {{total}}"},Ag={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"},kg={resetColumns:"Reset column widths"},Bg={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}}"},Ng={ariaLabel:"Banner",dotAriaLabel:"Banner {{index}} of {{count}}"},Eg={selectYearMonth:"Select year and month",chooseDate:"Choose a date"},Dg={previewRegion:"Report preview \u2014 scrollable sideways"},Sg={description:"Description",textbox:"Text",training:"Training guide",menu:"Menu"},jg={devNone:"No acquisition data",place:{labial:"Bilabial",alveolar:"Alveolar",palatal:"Palatal",velar:"Velar",glottal:"Glottal"}},Tg={clearSelection:"Clear selection"},Mg={showResult:"Show {{type}} result"},Lg={selected:"Selected",remove:"Remove",exclude:"Excluded",nthSelected:"Selection {{n}}"},$g={loading:"Loading"},Rg={state:{active:"playing",played:"heard",correct:"correct",wrong:"wrong"}},Pg={ariaLabel:"Breadcrumb"},Ig={empty:"No items yet."},Fg={main:"Main gradient",soft:"Soft",sub:"Sub color",deep:"Deep gradient",softSub:"Soft sub",warm:"Warm (accent)",dark:"Dark",radial:"Radial gradient",diagonal:"Diagonal pattern",dots:"Dot pattern",outline:"Outline",success:"Success / done",naver:"Naver blog notice",instagram:"Instagram notice"},Og={common:kf,calendar:Bf,passCard:Nf,searchField:Ef,rating:Df,colorPicker:Sf,dropdown:jf,accordion:Tf,header:Mf,nav:Lf,settings:$f,usage:Rf,account:Pf,help:If,training:Ff,trainingSettings:Of,customers:Hf,payment:zf,coupons:Vf,visits:Wf,company:qf,trainingType:Uf,myWordTraining:Gf,myWordTable:Kf,keyWords:Yf,wordTable:Zf,wordSearch:Xf,wordPrint:Jf,topic:Qf,accessLinkManager:eg,login:tg,device:ng,manager:ag,wordPairs:rg,game:og,footer:sg,landing:ig,date:lg,trainingSetPage:cg,wordTrainingPreview:ug,wordData:dg,textField:pg,segmentedControl:mg,tabs:hg,fileUpload:Cg,avatar:fg,myHomework:gg,trainingStatus:bg,store:yg,homework:vg,inquiry:xg,trainingPlanRun:_g,progress:wg,trainingMiss:Ag,table:kg,wordScore:Bg,topBanner:Ng,datePicker:Eg,report:Dg,tooltip:Sg,phonemeProfile:jg,bulkBar:Tg,debug:Mg,badge:Lg,loader:$g,soundCompass:Rg,breadcrumb:Pg,board:Ig,promoBannerBg:Fg};const Hg=[{code:"ko",label:"\uD55C\uAD6D\uC5B4"},{code:"en",label:"English"}],Gr="ko",zg="ihab_display_language";function wi(){if(typeof window>"u")return Gr;try{const e=localStorage.getItem(zg);if(e&&Hg.some(n=>n.code===e))return e}catch{}return Gr}function Ai(e){try{document.documentElement.lang=e}catch{}}Dt.on("languageChanged",Ai),Ai(wi()),Dt.use(Ce.initReactI18next).init({resources:{ko:{translation:Af},en:{translation:Og}},lng:wi(),fallbackLng:Gr,interpolation:{escapeValue:!1},react:{useSuspense:!1}});function gt(e,n,a){const r=o.useRef(null);return o.useLayoutEffect(()=>{const s=r.current?.parentElement??null;return n(s,e),()=>a(s)},[e,n,a]),r}const _a={title:"--promo-banner-bg-title",description:"--promo-banner-bg-description"},Kr=new WeakMap;function Yr(e){if(e)return Kr.get(e)}function It(e,n){e&&(e.style.setProperty(_a.title,n.title),e.style.setProperty(_a.description,n.description),Kr.set(e,n))}function Ft(e){e&&(e.style.removeProperty(_a.title),e.style.removeProperty(_a.description),Kr.delete(e))}const ki={title:"#ffffff",description:"rgba(255, 255, 255, 0.85)",actionVariant:"default"};function Bi(){const e=gt(ki,It,Ft);return t.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-main","aria-hidden":"true"})}const Ni={title:"var(--color-main)",description:"var(--color-gray)",actionVariant:"main"};function Ei(){const e=gt(Ni,It,Ft);return t.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-soft","aria-hidden":"true"})}const Di={title:"#ffffff",description:"rgba(255, 255, 255, 0.85)",actionVariant:"main"};function Si(){const e=gt(Di,It,Ft);return t.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-sub","aria-hidden":"true"})}const ji={title:"#ffffff",description:"rgba(255, 255, 255, 0.85)",actionVariant:"main"};function Ti(){const e=gt(ji,It,Ft);return t.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-deep","aria-hidden":"true"})}const Mi={title:"var(--color-darkSub)",description:"var(--color-gray)",actionVariant:"main"};function Li(){const e=gt(Mi,It,Ft);return t.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-soft-sub","aria-hidden":"true"})}const $i={title:"var(--color-black)",description:"var(--color-darkGray)",actionVariant:"main"};function Ri(){const e=gt($i,It,Ft);return t.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-warm","aria-hidden":"true"})}const Pi={title:"var(--color-white)",description:"var(--color-lightGray)",actionVariant:"main"};function Ii(){const e=gt(Pi,It,Ft);return t.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-dark","aria-hidden":"true"})}const Fi={title:"#ffffff",description:"rgba(255, 255, 255, 0.85)",actionVariant:"main"};function Oi(){const e=gt(Fi,It,Ft);return t.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-radial","aria-hidden":"true"})}const Hi={title:"var(--color-darkMain)",description:"var(--color-gray)",actionVariant:"main"};function zi(){const e=gt(Hi,It,Ft);return t.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-diagonal","aria-hidden":"true"})}const Vi={title:"var(--color-darkSub)",description:"var(--color-gray)",actionVariant:"main"};function Wi(){const e=gt(Vi,It,Ft);return t.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-dots","aria-hidden":"true"})}const qi={title:"var(--color-black)",description:"var(--color-gray)",actionVariant:"main"};function Ui(){const e=gt(qi,It,Ft);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 Gi={title:"#ffffff",description:"rgba(255, 255, 255, 0.85)",actionVariant:"main"};function Ki(){const e=gt(Gi,It,Ft);return t.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-success","aria-hidden":"true"})}const Yi={title:"#ffffff",description:"rgba(255, 255, 255, 0.85)",actionVariant:"sub"};function Zi(){const e=gt(Yi,It,Ft);return t.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-naver","aria-hidden":"true"})}const Xi={title:"#ffffff",description:"rgba(255, 255, 255, 0.85)",actionVariant:"transparent-white"};function Ji(){const e=gt(Xi,It,Ft);return t.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-instagram","aria-hidden":"true"})}const Kt=(e,n,a)=>({key:e,get label(){return Dt.t(`promoBannerBg.${e}`,n)},textTone:a}),Vg=[Kt("main","\uBA54\uC778 \uADF8\uB77C\uB514\uC5B8\uD2B8","light"),Kt("soft","\uC18C\uD504\uD2B8","dark"),Kt("sub","\uC11C\uBE0C \uCEEC\uB7EC","light"),Kt("deep","\uB525 \uADF8\uB77C\uB514\uC5B8\uD2B8","light"),Kt("softSub","\uC18C\uD504\uD2B8 \uC11C\uBE0C","dark"),Kt("warm","\uC6DC(\uAC15\uC870)","dark"),Kt("dark","\uB2E4\uD06C","light"),Kt("radial","\uBC29\uC0AC\uD615 \uADF8\uB77C\uB514\uC5B8\uD2B8","light"),Kt("diagonal","\uB300\uAC01\uC120 \uD328\uD134","dark"),Kt("dots","\uB3C4\uD2B8 \uD328\uD134","dark"),Kt("outline","\uC544\uC6C3\uB77C\uC778","dark"),Kt("success","\uC131\uACF5/\uC644\uB8CC","light"),Kt("naver","\uB124\uC774\uBC84 \uBE14\uB85C\uADF8 \uC548\uB0B4","light"),Kt("instagram","\uC778\uC2A4\uD0C0\uADF8\uB7A8 \uC548\uB0B4","light")],Qi={main:Bi,soft:Ei,sub:Si,deep:Ti,softSub:Li,warm:Ri,dark:Ii,radial:Oi,diagonal:zi,dots:Wi,outline:Ui,success:Ki,naver:Zi,instagram:Ji};function el({storageKey:e="fontScale",baseFont:n=20,minScale:a=.8,maxScale:r=1.4,step:s=.1,lineHeightRatio:i=1.4}={}){const l=_=>Math.max(a,Math.min(r,Number(_))),c=_=>{try{const v=localStorage.getItem(_),k=v?Number(v):1;return Number.isFinite(k)?l(k):l(1)}catch{return l(1)}},[d,u]=o.useState(()=>c(e)),[p,m]=o.useState(e);p!==e&&(m(e),u(c(e))),o.useEffect(()=>{try{localStorage.setItem(e,String(d))}catch{}},[e,d]);const h=_=>{u(typeof _=="function"?v=>l(_(v)):l(_))},f=()=>h(_=>+(_+s).toFixed(6)),y=()=>h(_=>+(_-s).toFixed(6)),C=d<r-Number.EPSILON,w=d>a+Number.EPSILON,b=Math.round(n*d),g=Math.round(b*i);return{scale:d,setScale:h,increase:f,decrease:y,canIncrease:C,canDecrease:w,fontSize:b,lineHeight:g}}function tl(e,n){const a=xa(n);o.useEffect(()=>{const r=()=>a.current();try{window.addEventListener(e,r)}catch{}return()=>{try{window.removeEventListener(e,r)}catch{}}},[e,a])}const Zr=" \xB7 ",nl=(()=>{if(typeof document>"u")return"";const e=document.title;return e.includes(Zr)?e.split(Zr).pop()??e:e})(),Wg=o.createContext(!1),Wn=[];let al=null;function qg(e){const n=o.useContext(Wg);o.useEffect(()=>{if(n||typeof e!="string"||!e)return;Wn.length===0&&(al=document.title);const a={text:nl?`${e}${Zr}${nl}`:e};return Wn.push(a),document.title=a.text,()=>{const r=Wn.lastIndexOf(a);r>=0&&Wn.splice(r,1),document.title=Wn.length?Wn[Wn.length-1].text:al??document.title}},[e,n])}const rl=[{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"}],Ug=(()=>{let e=null;return()=>(e||(e=new Intl.Collator("ko")),e)})();function aa(e,n){return Ug().compare(e,n)}const Ka=new Map;function Gg(e){const n=Ka.get(e);if(n)return n;const a=[],r=/-?\d+(?:\.\d+)?/g;let s=0;for(let i=r.exec(e);i;i=r.exec(e)){let l=i.index,c=i[0];c[0]==="-"&&l>0&&!/\s/.test(e[l-1])&&(l+=1,c=c.slice(1)),l>s&&a.push(e.slice(s,l)),a.push(Number(c)),s=i.index+i[0].length}return s<e.length&&a.push(e.slice(s)),Ka.size>5e3&&Ka.clear(),Ka.set(e,a),a}function Kg(e){if(!/^[\d\s-]+$/.test(e))return null;const n=e.replace(/\D/g,"");return n.length<9||n.length>11?null:n[0]==="0"||n[0]==="1"&&e!==n?n:null}function Yg(e,n){const a=u=>u==null||typeof u=="number"&&Number.isNaN(u)?"":String(u).trim(),r=a(e),s=a(n);if(r===s)return 0;const i=(u,p)=>{if(typeof u=="number"&&!Number.isNaN(u))return[u];const m=Kg(p);return m!==null?[m]:Gg(p)},l=i(e,r),c=i(n,s),d=Math.min(l.length,c.length);for(let u=0;u<d;u++){const p=l[u],m=c[u];if(typeof p=="number"&&typeof m=="number"){if(p!==m)return p-m;continue}if(typeof p=="number")return-1;if(typeof m=="number")return 1;const h=aa(p,m);if(h!==0)return h}return l.length!==c.length?l.length-c.length:aa(r,s)}const ol=e=>e==null||typeof e=="number"&&Number.isNaN(e)||typeof e=="string"&&e.trim()==="";function Xr(e,n,a){const r=ol(e),s=ol(n);if(r||s)return r===s?0:r?1:-1;const i=Yg(e,n);return a?i:-i}function Zg(e,n,a){const{t:r}=Ce.useTranslation(),[s,i]=o.useState(()=>{const y=a?.initialPageSize;return y&&rl.some(C=>C.value===y)?y:"25"}),[l,c]=o.useState(1),[d,u]=o.useState(n);Object.is(d,n)||(u(n),l!==1&&c(1));const p=o.useMemo(()=>rl.map(y=>({...y,label:r("visits.showN",{n:y.value})})),[r]),m=o.useCallback(y=>{i(y),c(1)},[]),h=Math.max(1,Math.ceil(e.length/Number(s)));(l>h||l<1||!Number.isFinite(l))&&c(Math.min(Math.max(1,Number.isFinite(l)?l:1),h));const f=Math.min(Math.max(1,Number.isFinite(l)?l:1),h);return{pageRows:o.useMemo(()=>e.slice((f-1)*Number(s),f*Number(s)),[e,f,s]),pageSizeProps:{options:p,value:s,onChange:m},paginationProps:{page:f,total:h,onChange:c},setPage:c}}function Xg(e){const[n,a]=o.useState(null),r=o.useRef(n),s=o.useRef(e?.onSortChange);s.current=e?.onSortChange;const i=o.useCallback(d=>{const u=r.current,p=u?.key===d?{key:d,asc:!u.asc}:{key:d,asc:!0};r.current=p,a(p),s.current?.(p)},[]),l=o.useCallback((d,u)=>({label:d,sortDir:n?.key===u?n.asc?"asc":"desc":null,onClick:()=>i(u)}),[n,i]),c=o.useCallback((d,u)=>{if(!n)return d;const{key:p,asc:m}=n;return[...d].sort((h,f)=>Xr(u(h,p),u(f,p),m))},[n]);return{\uC815\uB82C:n,\uCE78:l,sortRows:c}}const on="\uC804\uCCB4",Jg=new Map;try{Dt.store?.on?.("added",()=>Jg.clear())}catch{}Object.fromEntries(Object.entries(uC).map(([e,{nucleus:n}])=>[e,n]));const Qg={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"})},eb={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"})},tb={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 nb(e,n){if("place"in n)return Qg[n.place](e);const a=eb[n.vowel](e);return n.glide?`${a} \xB7 ${tb[n.glide](e)}`:a}const ab=(e,{defaultValue:n})=>n,sl=(e,n)=>({jamos:e,phonetic:n,tooltip:nb(ab,n)}),xn=(e,n)=>n.map(a=>sl([a],{place:e})),St=(e,n,a)=>sl([...e],a?{vowel:n,glide:a}:{vowel:n}),Jr={cho:[xn("labial",["\u3142","\u3143","\u314D","\u3141"]),xn("alveolar",["\u3137","\u3138","\u314C","\u3134","\u3139"]),xn("alveolar",["\u3145","\u3146"]),xn("palatal",["\u3148","\u3149","\u314A"]),xn("velar",["\u3131","\u3132","\u314B"]),xn("glottal",["\u314E"])],jung:[[St("\u3163","frontHigh"),St("\u315F","frontHigh","w"),St("\u3162","frontHigh","velar")],[St("\u3161","backHighUnrounded")],[St("\u315C","backHighRounded"),St("\u3160","backHighRounded","j")],[St("\u3154\u3150","frontMid"),St("\u3156\u3152","frontMid","j"),St("\u3159\u315A\u315E","frontMid","w")],[St("\u3153","backMidUnrounded"),St("\u3155","backMidUnrounded","j"),St("\u315D","backMidUnrounded","w")],[St("\u3157","backMidRounded"),St("\u315B","backMidRounded","j")],[St("\u314F","low"),St("\u3151","low","j"),St("\u3158","low","w")]],jong:[xn("labial",["\u3142","\u3141"]),xn("alveolar",["\u3137","\u3134","\u3139"]),xn("velar",["\u3131","\u3147"])]},rb=e=>e===ob?[]:Array.from(e),ob="__NO_CODA__",Qr=e=>e.map(n=>n.map(({jamos:a,phonetic:r,tooltip:s})=>({v:a.join(""),phonetic:r,tooltip:s}))),il={cho:Qr(Jr.cho),jung:Qr(Jr.jung),jong:Qr(Jr.jong)};il.jung.flat().forEach(({v:e})=>{for(const n of rb(e));}),new Set(il.cho.flat().map(e=>e.v));function sb(e,n=!0){const a=xa(e);o.useEffect(()=>{if(n)return zn(()=>{a.current?.()})},[n,a])}function wa(){const[e,n]=o.useState(null),a=o.useCallback(i=>n(i.getBoundingClientRect()),[]),r=o.useCallback(()=>n(null),[]),s=o.useCallback(i=>{const l=i.getBoundingClientRect();n(c=>c?null:l)},[]);return{anchorRect:e,isOpen:e!=null,openAt:a,close:r,toggleAt:s}}function ib(e){const[n,a]=o.useState(null),[r,s]=o.useState(null),i=o.useRef(null);o.useEffect(()=>()=>{i.current&&clearTimeout(i.current)},[]);const l=o.useCallback((d,u)=>{i.current&&clearTimeout(i.current),i.current=setTimeout(()=>{a(d),s(u)},e)},[e]),c=o.useCallback(()=>{i.current&&clearTimeout(i.current),a(null),s(null)},[]);return{payload:n,anchorRect:r,openAfterDelay:l,close:c}}function ll(e="warning"){const[n,a]=o.useState(""),[r,s]=o.useState(e),[i,l]=o.useState(0),c=o.useCallback((m,h)=>{s(h),a(m),l(f=>f+1)},[]),d=o.useCallback(m=>c(m,"warning"),[c]),u=o.useCallback(m=>c(m,"normal"),[c]),p=o.useCallback(()=>a(""),[]);return{toastMessage:n,toastType:r,toastKey:i,showToast:c,showWarning:d,showNormal:u,clearToast:p}}function Aa(e){let n=0;if(e&&typeof window<"u"&&typeof window.getComputedStyle=="function")for(let a=e;a&&a!==document.body&&a!==document.documentElement;a=a.parentElement){const r=parseInt(window.getComputedStyle(a).zIndex,10);!Number.isNaN(r)&&r>n&&(n=r)}return n>0?`max(var(--z-menu, 1500), ${n+1})`:"var(--z-menu, 1500)"}function ka({computeStyle:e,onScroll:n="close",onResize:a="close",ignoreOutsideClickSelector:r}){const[s,i]=o.useState(!1),[l,c]=o.useState({}),d=o.useRef(null),u=o.useRef(null),p=o.useCallback(()=>{d.current&&c(e(d.current.getBoundingClientRect(),d.current))},[e]);o.useEffect(()=>{if(!s)return;p();const f=g=>{const _=g.target;r&&_.closest?.(r)||d.current?.contains(_)||u.current?.contains(_)||i(!1)};document.addEventListener("mousedown",f),document.addEventListener("pointerdown",f);const y=g=>{u.current?.contains(g.target)||(n==="reposition"?p():n==="close"&&i(!1))};n!=="ignore"&&window.addEventListener("scroll",y,!0);const C=()=>{a==="reposition"?p():a==="close"&&i(!1)};let w=null;const b=()=>{C(),w&&clearTimeout(w),w=setTimeout(()=>{w=null,a==="reposition"&&p()},250)};return a!=="ignore"&&(window.addEventListener("resize",C),window.addEventListener("orientationchange",b)),()=>{document.removeEventListener("mousedown",f),document.removeEventListener("pointerdown",f),n!=="ignore"&&window.removeEventListener("scroll",y,!0),a!=="ignore"&&(window.removeEventListener("resize",C),window.removeEventListener("orientationchange",b)),w&&clearTimeout(w)}},[s,p,n,a,r]),o.useEffect(()=>{if(s)return zn(()=>i(!1))},[s]);const m=o.useCallback(()=>i(f=>!f),[]),h=o.useCallback(()=>i(!1),[]);return{open:s,setOpen:i,toggle:m,close:h,style:l,triggerRef:d,menuRef:u}}function lb(e,{mode:n="playback",autoStart:a=!1,onPlaySpeaker:r,onComplete:s,playMs:i=1100,feedbackMs:l=1500}={}){const[c,d]=o.useState([]),[u,p]=o.useState(0),[m,h]=o.useState("idle"),[f,y]=o.useState(null),[C,w]=o.useState([]),[b,g]=o.useState(null),[_,v]=o.useState(0),k=o.useRef(0),A=o.useCallback(K=>{k.current=typeof K=="function"?K(k.current):K,v(k.current)},[]),B=o.useRef(r),x=o.useRef(s);o.useEffect(()=>{B.current=r,x.current=s},[r,s]);const N=o.useRef([]),D=()=>{N.current.forEach(clearTimeout),N.current=[]},P=(K,L)=>{N.current.push(setTimeout(L,K))};o.useEffect(()=>()=>D(),[]);const H=c[u]?.id??null,M=o.useRef(null),z=o.useCallback(()=>{D(),h("playing"),w([]),g(null),A(0);let K=0;e.forEach((L,E)=>{P(K,()=>{p(E),y(L.id),B.current?.(L)}),P(K+1e3,()=>{y(null),w(F=>[...F,L.id])}),K+=1300}),P(K,()=>{h("done"),x.current?.({score:0,total:e.length})})},[e,A]),j=o.useCallback((K,L)=>{if(L>=K.length){h("done"),x.current?.({score:k.current,total:K.length});return}M.current=null,p(L),g(null),h("playing"),y(K[L].id),B.current?.(K[L]),P(i,()=>{y(null),h("waiting")})},[i]),S=o.useCallback(()=>{D();const K=ya(e);d(K),A(0),w([]),j(K,0)},[e,j,A]),I=o.useCallback(()=>{n==="playback"?(d(e),z()):S()},[n,e,z,S]),W=o.useCallback(()=>{D(),h("idle"),y(null),w([]),g(null),p(0),A(0),d([])},[A]),Z=e.map(K=>K.id).join("|");o.useEffect(()=>(a?I():W(),()=>D()),[n,Z,a]);const U=o.useCallback(K=>{m!=="waiting"||n==="playback"||M.current===u||(M.current=u,g(K),K===c[u]?.id&&A(L=>L+1),n==="exam"?(h("playing"),P(400,()=>j(c,u+1))):(h("feedback"),P(l,()=>j(c,u+1))))},[m,n,c,u,j,l,A]),q=n==="playback"?e.length:c.length;return{bind:{activeSpeakerId:f,playedIds:C,selectedId:b,answerId:H,showFeedback:m==="feedback",clickable:m==="waiting",onSelectSpeaker:U},index:u,total:q,score:_,phase:m,done:m==="done",start:I,reset:W}}function cb({title:e,description:n,actionLabel:a,onAction:r,bg:s,color:i,size:l="medium",actionVariant:c,titleColor:d,descriptionColor:u,className:p=""}){const m=s??i??"main",h=o.useRef(null),[f,y]=o.useState("main"),C=tn("(max-width: 767px)"),w=o.useRef({title:!1,description:!1});o.useLayoutEffect(()=>{const _=h.current;if(!_)return;const v=Yr(_),k=(A,B,x)=>{if(x!==void 0)_.style.setProperty(B,x),w.current[A]=!0;else if(w.current[A]){const N=v?.[A];N?_.style.setProperty(B,N):_.style.removeProperty(B),w.current[A]=!1}};k("title","--promo-banner-bg-title",d),k("description","--promo-banner-bg-description",u)},[d,u,m]),o.useLayoutEffect(()=>{const _=h.current;if(!_)return;const v=Yr(_);y(v?.actionVariant??"main")},[m]);const b=Ee("promo-banner",`promo-banner--${l}`,p),g=Qi[m];return t.jsxs("div",{ref:h,className:b,role:"note",children:[t.jsx(g,{}),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(ce,{htmlType:"button",size:40,variant:c??f,shape:"pill",useBorder:!0,onClick:r,ariaLabel:a,...C?{type:"dot",icon:"arrow-right"}:{rightIcon:"arrow-right",label:a,minWidth:140}})]})}function ub({children:e,interval:n=5e3,dotTone:a,className:r="","aria-label":s}){const{t:i}=Ce.useTranslation(),l=s??i("topBanner.ariaLabel","\uBC30\uB108"),c=o.Children.toArray(e),d=c.length,[u,p]=o.useState(0),[m,h]=o.useState(!1),[f,y]=o.useState(!1),[C,w]=o.useState(!1),b=o.useRef(null),g=o.useRef(null),_=o.useRef(null),v=Wr(),k=m||f||C,A=d>0?Math.min(u,d-1):0;o.useEffect(()=>{if(d<2||n<=0||k||v)return;const x=window.setInterval(()=>p(N=>(Math.min(N,d-1)+1)%d),n);return()=>window.clearInterval(x)},[d,n,k,v]);const B=x=>{g.current!=null&&window.clearTimeout(g.current),g.current=window.setTimeout(()=>{g.current=null,w(!1)},x)};return o.useEffect(()=>()=>{g.current!=null&&window.clearTimeout(g.current)},[]),o.useEffect(()=>{if(!C)return;const x=N=>{N.pointerType==="touch"&&(_.current&&_.current.contains(N.target)||(g.current!=null&&(window.clearTimeout(g.current),g.current=null),w(!1)))};return document.addEventListener("pointerdown",x,!0),()=>document.removeEventListener("pointerdown",x,!0)},[C]),d===0?null:t.jsxs("section",{ref:_,className:Ee("top-banner",r),"aria-label":l,"aria-roledescription":"carousel",onPointerEnter:x=>{b.current=x.pointerType},onPointerDown:x=>{b.current=x.pointerType,x.pointerType==="touch"&&(g.current!=null&&(window.clearTimeout(g.current),g.current=null),w(!0))},onPointerUp:x=>{x.pointerType==="touch"&&B(5e3)},onPointerCancel:x=>{x.pointerType==="touch"&&B(5e3)},onMouseEnter:()=>{b.current!=="touch"&&h(!0)},onMouseLeave:()=>h(!1),onFocus:x=>{let N=!0;try{N=x.target.matches(":focus-visible")}catch{N=!0}y(N)},onBlur:x=>{x.currentTarget.contains(x.relatedTarget)||y(!1)},children:[t.jsx("div",{className:"top-banner__viewport",children:t.jsx("div",{className:"top-banner__track",style:{transform:`translateX(-${A*100}%)`},children:c.map((x,N)=>t.jsx("div",{className:"top-banner__slide","aria-hidden":N!==A,...N!==A?{inert:!0}:{},children:x},N))})}),d>1&&t.jsx("div",{className:`top-banner__dots${(a?.[A]??"light")==="dark"?" top-banner__dots--dark":""}`,children:c.map((x,N)=>t.jsx("button",{type:"button",className:`top-banner__dot${N===A?" top-banner__dot--active":""}`,"aria-label":i("topBanner.dotAriaLabel",{count:d,index:N+1,defaultValue:`${d}\uAC1C \uC911 ${N+1}\uBC88\uC9F8 \uBC30\uB108`}),"aria-current":N===A,onClick:()=>p(N)},N))})]})}function db({title:e,body:n,open:a=!1,onToggle:r,avatar:s,titleClassName:i="body-2",bodyClassName:l="body-2",className:c=""}){const{t:d}=Ce.useTranslation();return t.jsxs("div",{className:`accordion-item ${a?"accordion-item--open":""} ${c}`.trim(),role:"listitem",children:[t.jsxs("div",{className:"accordion-item__header",role:"button",tabIndex:0,"aria-expanded":a,"data-accordion-header":!0,onClick:r,onKeyDown:u=>{if(u.key==="Enter"||u.key===" ")u.preventDefault(),r?.();else if(u.key==="ArrowDown"||u.key==="ArrowUp"){u.preventDefault();const p=u.currentTarget.closest('[role="list"]');if(!p)return;const m=Array.from(p.querySelectorAll("[data-accordion-header]")),h=m.indexOf(u.currentTarget);(u.key==="ArrowDown"?m[h+1]:m[h-1])?.focus()}},children:[s&&t.jsx("div",{className:"accordion-item__avatar",children:s}),t.jsx("div",{className:`accordion-item__title ${i}`,children:e}),t.jsx("div",{className:"accordion-item__chevron",children:t.jsx(Ze,{icon:a?"chevron-up":"chevron-down",label:a?d("accordion.collapse","\uC811\uAE30"):d("accordion.expand","\uD3BC\uCE58\uAE30"),className:"accordion-item__chevron-icon",imgClassName:"accordion-item__chevron-image"})})]}),a&&t.jsx("div",{className:`accordion-item__body ${l}`,children:typeof n=="string"?t.jsx("p",{children:n}):n})]})}function pb({items:e=[],defaultOpenIndex:n=0,size:a=72,className:r="",bodyClassName:s}){const[i,l]=o.useState({index:n}),c=(d,u)=>i.id!=null&&d.id!=null?d.id===i.id:i.id==null&&u===i.index;return t.jsx("div",{className:`accordion-group accordion-group--s${a} ${r}`.trim(),role:"list",children:e.map((d,u)=>t.jsx(db,{title:d.title,body:d.body,avatar:d.avatar,open:c(d,u),onToggle:()=>l(c(d,u)?{index:-1}:{index:u,id:d.id}),bodyClassName:s},d.id??u))})}function mb(){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 hb(){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 Cb(){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 bt(e){const{t:n}=Ce.useTranslation(),{type:a="bar",size:r,className:s="","aria-label":i,"aria-hidden":l}=e;if(a==="dot"){const{icon:k,number:A,position:B="top-right",onClick:x,animate:N=!1}=e,D=k??"check",P=A!==void 0?"number":D,H=typeof r=="number"?r:32,M=Ee("circle-badge",`circle-badge--${P}`,`circle-badge--${B}`,`circle-badge--${H}`,N?"circle-badge--animate":"",x?"circle-badge--clickable":"",s),z=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")}[D];return t.jsxs("span",{className:M,onClick:x,onKeyDown:x?j=>{j.key!=="Enter"&&j.key!==" "||(j.preventDefault(),j.currentTarget.click())}:void 0,"aria-label":l?void 0:i??z,"aria-hidden":l||void 0,role:x?"button":l?void 0:"img",tabIndex:x?0:void 0,children:[A!==void 0&&A,A===void 0&&D==="check"&&t.jsx(mb,{}),A===void 0&&D==="remove"&&t.jsx(hb,{}),A===void 0&&D==="minus"&&t.jsx(Cb,{})]})}const{label:c,children:d,variant:u="default",fill:p="filled",minWidth:m,iconLeft:h,iconRight:f,color:y}=e,C=typeof r=="number"?"medium":r??"medium",w={small:"caption-2b",medium:"body-3b",large:"body-2b"}[C]??"body-2b",b={small:12,medium:14,large:16}[C]??14,g=Ee("badge",`badge--${u}`,`badge--${C}`,p!=="filled"?`badge--${p}`:"",w,s),_=y?.startsWith("--")?`var(${y})`:y,v=m!==void 0||_?{...m!==void 0?{minWidth:typeof m=="number"?`${m}px`:m}:{},..._?{"--badge-color":_}:{}}:void 0;return t.jsxs("span",{className:g,style:v,"aria-label":l?void 0:i,role:i&&!l?"img":void 0,"aria-hidden":l||void 0,children:[h&&t.jsx(Ze,{icon:h,size:b,className:"badge__icon"}),c??d,f&&t.jsx(Ze,{icon:f,size:b,className:"badge__icon"})]})}function Ba({columns:e=[],onClose:n,className:a="",size:r="medium"}){const{t:s}=Ce.useTranslation(),i=r==="small"?40:48,[l,c]=o.useState([]),d=o.useMemo(()=>{const w=[{title:null,columns:e}];let b=e;for(const g of l){const _=b?.[g.ci]?.items?.[g.ii];if(!_||!Array.isArray(_.children)||!_.children.length)break;b=[{title:null,items:_.children}],w.push({title:_.label||null,columns:b})}return w},[e,l]),u=d[d.length-1],p=d.length-1,m=o.useCallback(()=>c(w=>w.slice(0,Math.max(0,Math.min(w.length,p)-1))),[p]),h=o.useRef(null),f=o.useRef(null),y=d.length;o.useEffect(()=>{f.current||(f.current=document.activeElement);let w=0,b=0;const g=()=>{const _=h.current?.querySelector("button:not([disabled])");if(_&&_.offsetParent){_.focus({preventScroll:!0});return}b++<20&&(w=requestAnimationFrame(g))};return w=requestAnimationFrame(g),()=>cancelAnimationFrame(w)},[y]),o.useEffect(()=>()=>{f.current?.focus?.({preventScroll:!0})},[]);const C=o.useCallback((w,b,g)=>{if(w){if(Array.isArray(w.children)&&w.children.length){c(_=>[..._.slice(0,p),{ci:b,ii:g}]);return}try{typeof w.onClick=="function"&&w.onClick()}catch{}try{w&&w.closeOnSelect&&typeof n=="function"&&n()}catch{}}},[n,p]);return t.jsxs("div",{className:`tooltip-menu tooltip-menu--${r} ${a}`,children:[(d.length>1||u.title)&&t.jsxs("div",{className:"tooltip-menu__header",children:[d.length>1?t.jsx(ce,{htmlType:"button",size:i,type:"dot",icon:"chevron-left",ariaLabel:s("common.back","\uB4A4\uB85C"),onClick:m,variant:"transparent-gray",useBorder:!1}):null,t.jsx("div",{className:"tooltip-menu__title button-1",children:u.title})]}),t.jsx("div",{className:"tooltip-menu__columns",ref:h,children:u.columns&&u.columns.map((w,b)=>t.jsxs("div",{className:"tooltip-menu__column",children:[w.title?t.jsx("div",{className:"tooltip-menu__column-title body-3",children:w.title}):null,t.jsx("div",{className:"tooltip-menu__items",children:(w.items||[]).map((g,_)=>t.jsxs(o.Fragment,{children:[g.separatorBefore&&_>0&&t.jsx("div",{className:"tooltip-menu__separator",role:"separator"}),t.jsx(ce,{htmlType:"button",className:"tooltip-menu__item",size:i,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(bt,{type:"dot",position:"inline",number:Math.min(g.badgeCount,99),size:24,"aria-hidden":!0}):void 0,label:g.label,ariaLabel:g.label&&g.badgeCount&&g.badgeCount>0?s("nav.badgeLabel",{label:g.label,count:g.badgeCount,defaultValue:"{{label}}, {{count}}\uAC1C"}):g.label,onClick:()=>C(g,b,_),selected:g.selected,disabled:g.disabled,showTooltipInfo:g.tooltip||!1,useBorder:!1,align:"left"})]},_))})]},b))})]})}const cl=".content-area";function eo(e,n="Nav"){try{const a=typeof e=="string"?document.querySelector(e):e?.current??document.querySelector(cl);if(a){a.scrollTop=0;return}const r=document.scrollingElement??document.documentElement;r&&r.scrollHeight<=r.clientHeight&&bn("nav-scroll-container",`[${n}] \uBCF8\uBB38\uC744 \uB9E8 \uC704\uB85C \uB418\uB3CC\uB9B4 \uD1B5\uC744 \uBABB \uCC3E\uC558\uB2E4(\uAE30\uBCF8 ${cl}) \u2014 \uCC3D\uB3C4 \uAD6C\uB97C \uC218 \uC5C6\uC5B4 \uC544\uBB34 \uC77C\uB3C4 \uD558\uC9C0 \uC54A\uB294\uB2E4. scrollContainer \uB85C \uD1B5\uC744 \uC54C\uB824 \uC900\uB2E4.`),window.scrollTo({top:0})}catch{}}const to=52,Ya=10,ul=e=>e&&e>0?e:0;function dl({items:e=[],activeKey:n,onChange:a,appMode:r,onAppModeChange:s,moreItems:i=[],scrollContainer:l}){const{t:c}=Ce.useTranslation(),d=r==="manager"?"malgwi":"manager",u=r==="manager"?"arrow-left":"arrow-right",p=r==="manager"?c("nav.modeLabelMalgwi","\uB9D0\uADC0"):c("nav.modeLabelManager","\uB9D0\uADC0 \uB9E4\uB2C8\uC800"),m=o.useRef(null),[h,f]=o.useState(0),y=e.length;o.useEffect(()=>{const q=m.current;if(!q)return;const K=()=>{const E=typeof getComputedStyle=="function"?getComputedStyle(q):null,F=q.clientWidth-(parseFloat(E?.paddingLeft??"")||0)-(parseFloat(E?.paddingRight??"")||0),R=q.querySelector(".bottom-nav__left"),O=R?.nextElementSibling,$=(R?.offsetWidth??0)+(R&&O?.classList.contains("bottom-nav__divider")?O.offsetWidth:0);f(Math.max(0,F-$))};if(K(),typeof ResizeObserver>"u")return;const L=new ResizeObserver(K);return L.observe(q),()=>L.disconnect()},[]);const C=to+1,w=q=>Math.max(0,Math.floor((q+Ya)/(to+Ya))),b=y*(to+Ya)-Ya<=h,g=h<=0||i.length===0&&b?y:Math.min(y,w(h-C)),_=h>0&&g<y,v=_?g:y,k=e.slice(0,v),A=e.slice(v),B=_||i.length>0,x=o.useCallback((q,K)=>({position:"fixed",bottom:window.innerHeight-q.top+8,right:window.innerWidth-q.right,zIndex:Aa(K)}),[]),N=o.useId(),{open:D,toggle:P,close:H,style:M,triggerRef:z,menuRef:j}=ka({computeStyle:x,onScroll:"ignore",onResize:"reposition"}),S=o.useCallback((q,K)=>K>0?c("nav.badgeLabel",{label:q,count:K,defaultValue:"{{label}}, {{count}}\uAC1C"}):q,[c]),I=o.useCallback(()=>s?.(d),[s,d]),W=o.useMemo(()=>A.find(q=>!!q.key&&q.key===n)??i.find(q=>q.selected||q.key&&q.key===n),[A,n,i]),Z=o.useMemo(()=>[{items:[...A.map(q=>({label:q.label,icon:q.icon,badgeCount:q.badgeCount,selected:!!q.key&&q.key===n,closeOnSelect:!0,disabled:q.state==="disabled",onClick:()=>{q.state!=="disabled"&&(q.key&&a&&(a(q.key),eo(l,"BottomNav")),H())}})),...i.map(q=>({label:q.label,icon:q.icon,badgeCount:q.badgeCount,selected:q.selected??(!!q.key&&q.key===n),closeOnSelect:!0,onClick:()=>{q.onClick?.(),H()}}))]}],[A,i,n,a,H]),U=[...A,...i].reduce((q,K)=>q+ul(K.badgeCount),0);return t.jsxs("nav",{className:"bottom-nav",ref:m,"aria-label":c("nav.bottomNav","\uD558\uB2E8 \uB124\uBE44\uAC8C\uC774\uC158"),children:[s&&t.jsxs(t.Fragment,{children:[t.jsx("div",{className:"bottom-nav__left",children:t.jsx(ce,{htmlType:"button",size:52,type:"dot",icon:u,ariaLabel:p,className:"bottom-nav-item",onClick:I})}),t.jsx("div",{className:"bottom-nav__divider","aria-hidden":"true"})]}),t.jsx("div",{className:"bottom-nav__items",children:k.map((q,K)=>{const L=ul(q.badgeCount);return t.jsxs("span",{className:"bottom-nav__slot",children:[t.jsx(ce,{htmlType:"button",size:52,type:"dot",icon:q.icon,ariaLabel:S(q.label,L),selected:!!q.key&&q.key===n,disabled:q.state==="disabled",className:"bottom-nav-item",onClick:()=>{q.key&&(a?.(q.key),eo(l,"BottomNav"))}}),L>0&&t.jsx("span",{"aria-hidden":"true",children:t.jsx(bt,{type:"dot",position:"top-right",number:Math.min(L,99),size:24})})]},q.key??`__slot-${K}`)})}),B&&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:z,className:"bottom-nav__slot",children:[t.jsx(ce,{htmlType:"button",size:52,type:"dot",icon:W?.icon??"ellipsis",ariaLabel:S(W?.label??c("nav.more","\uB354\uBCF4\uAE30"),U),selected:!!W,className:"bottom-nav-item",onClick:P,"aria-expanded":D,"aria-controls":D?N:void 0}),U>0&&t.jsx("span",{"aria-hidden":"true",children:t.jsx(bt,{type:"dot",position:"top-right",number:Math.min(U,99),size:24})}),D&&Xt.createPortal(t.jsx("div",{id:N,role:"group","aria-label":c("nav.moreMenu","\uB354\uBCF4\uAE30 \uBA54\uB274"),className:"tooltip-content",style:M,ref:j,children:t.jsx(Ba,{columns:Z,onClose:H})}),document.body)]})})]})]})}function pl(e){if(typeof e!="string")return!1;let n="";for(const r of e){const s=r.charCodeAt(0);s<=32||s>=127&&s<=159||(n+=r)}if(!n)return!1;const a=/^([a-zA-Z][a-zA-Z0-9+.-]*):/.exec(n);return a?["http","https","mailto","tel"].includes(a[1].toLowerCase()):!0}function ml(e,n,a){return a&&a>0?e("nav.badgeLabel",{label:n,count:a,defaultValue:"{{label}}, {{count}}\uAC1C"}):n}function fb(e){const{t:n}=Ce.useTranslation(),{activeKey:a,unreadCount:r,onDebug:s,onNotification:i,onSetting:l,onHelp:c,onFeedback:d,onAccount:u}=e||{},p="default";return s||i||l||c||d||u?t.jsxs("div",{className:"side-nav__footer",children:[s&&t.jsx(ce,{htmlType:"button",size:48,showTooltipInfo:!0,type:"dot",shape:"pill",variant:p,icon:"terminal",ariaLabel:n("nav.debug","\uB514\uBC84\uADF8"),onClick:s,selected:a==="debug"}),i&&t.jsxs("span",{className:"side-nav__notification-wrap",children:[t.jsx(ce,{htmlType:"button",size:48,showTooltipInfo:!0,type:"dot",shape:"pill",variant:p,icon:"bell",ariaLabel:ml(n,n("nav.notifications","\uC54C\uB9BC"),r),onClick:i,selected:a==="notifications"}),!!r&&r>0&&t.jsx(bt,{type:"dot",number:Math.min(r,99),size:24,"aria-hidden":!0})]}),l&&t.jsx(ce,{htmlType:"button",size:48,showTooltipInfo:!0,type:"dot",shape:"pill",variant:p,icon:"settings",ariaLabel:n("nav.settings","\uC124\uC815"),onClick:l,selected:a==="settings"}),c&&t.jsx(ce,{htmlType:"button",size:48,showTooltipInfo:!0,type:"dot",shape:"pill",variant:p,icon:"message-circle-question-mark",ariaLabel:n("nav.help","\uB3C4\uC6C0\uB9D0"),onClick:c,selected:a==="help"}),d&&t.jsx(ce,{htmlType:"button",size:48,showTooltipInfo:!0,type:"dot",shape:"pill",variant:p,icon:"bug",ariaLabel:n("nav.feedback","\uBC84\uADF8\uC2E0\uACE0"),onClick:d,selected:a==="feedback"}),u&&t.jsx(ce,{htmlType:"button",size:48,showTooltipInfo:!0,type:"dot",shape:"pill",variant:p,icon:"user-round",ariaLabel:n("nav.account","\uACC4\uC815"),onClick:u,selected:a==="account"})]}):null}function hl(e){const{t:n}=Ce.useTranslation(),{item:a,itemKey:r,label:s,icon:i,active:l,onClick:c,style:d,state:u,labelStyle:p}=e||{},m=a?.key??r??"",h=a?.label??s??"",f=a?.icon??i??"",y=a?.badge??0,C=t.jsx("span",{className:"side-nav__icon-wrap",children:t.jsx(Ze,{icon:f,label:typeof h=="string"?h:void 0,className:"side-nav__icon",maskClassName:"side-nav__icon-image",imgClassName:void 0,svgClassName:void 0})}),w=u==="disabled",b=`side-nav__item ${l?"active":""} ${u||""} ${w?"disabled":""} ${a?.child?"side-nav__item--child":""}`,g=o.useCallback(_=>{if(w)return;const v=_.detail>0;if(v)try{_.currentTarget.blur()}catch{}c?.(m,_.currentTarget,v)},[w,m,c]);return t.jsxs("button",{type:"button",className:b,onClick:g,"aria-label":typeof h=="string"?ml(n,h,y):void 0,"aria-current":l?"page":void 0,style:d,"aria-disabled":w,children:[C,t.jsx("span",{className:"side-nav__label button-1 f",style:p,children:h}),y>0&&t.jsx(bt,{type:"dot",position:"inline",number:Math.min(y,99),size:24,"aria-hidden":!0}),u==="loading"&&t.jsx("span",{className:"side-nav__spinner",role:"img","aria-label":n("loader.loading","\uBD88\uB7EC\uC624\uB294 \uC911\u2026")})]})}function Cl(e){const{t:n}=Ce.useTranslation(),{items:a=[],activeKey:r,onChange:s,unreadCount:i,onDebug:l,onNotification:c,onAccount:d,onSetting:u,onHelp:p,onFeedback:m,appMode:h,onAppModeChange:f,scrollContainer:y}=e||{},C=h==="manager",w=o.useCallback(()=>f?.(C?"malgwi":"manager"),[f,C]),b=o.useRef(null),[g,_]=o.useState(null);o.useEffect(()=>{const x=b.current;if(!x)return;const N=()=>{const{scrollHeight:P,clientHeight:H,scrollTop:M}=x;if(P<=H+1){_(null);return}const z=Math.max(24,H/P*H),j=H-z,S=P-H;_({top:Math.round(M/S*j),height:Math.round(z)})};N(),x.addEventListener("scroll",N,{passive:!0});const D=typeof ResizeObserver<"u"?new ResizeObserver(N):null;D?.observe(x);for(const P of Array.from(x.children))D?.observe(P);return()=>{x.removeEventListener("scroll",N),D?.disconnect()}},[a]);const v=o.useRef(null),k=o.useCallback(x=>{const N=b.current;N&&(x.preventDefault(),v.current={y:x.clientY,top:N.scrollTop},x.currentTarget.setPointerCapture(x.pointerId))},[]),A=o.useCallback(x=>{const N=b.current,D=v.current;!N||!D||(N.scrollTop=D.top+(x.clientY-D.y)*(N.scrollHeight/N.clientHeight))},[]),B=o.useCallback(x=>{v.current=null,x.currentTarget.hasPointerCapture(x.pointerId)&&x.currentTarget.releasePointerCapture(x.pointerId)},[]);return t.jsxs("nav",{ref:b,"aria-label":n("nav.mainMenu","\uBA54\uC778 \uBA54\uB274"),className:"side-nav__menu",children:[g&&t.jsx("div",{className:"side-nav__scroll","aria-hidden":"true",children:t.jsx("div",{className:"side-nav__scroll-thumb",style:{top:g.top,height:g.height},onPointerDown:k,onPointerMove:A,onPointerUp:B,onPointerCancel:B})}),t.jsxs("div",{className:"side-nav__menu-list",children:[(a||[]).filter(x=>!x.section&&(x.key||x.label)).map((x,N)=>t.jsxs(o.Fragment,{children:[x.divider&&t.jsx("div",{className:"side-nav__separator"}),t.jsx(hl,{item:x,active:!!x.key&&x.key===r,state:x.disabled?"disabled":void 0,onClick:(D,P,H)=>{if(x.disabled)return;if(x.href){if(pl(x.href)&&window.open(x.href,"_blank","noopener,noreferrer"),H)try{P?.blur()}catch{}return}if(s?.(x.key),eo(y,"SideNav"),!H)return;try{P?.blur()}catch{}if(typeof window<"u"&&window.matchMedia){if(!window.matchMedia("(min-width: 768px) and (max-width: 1023px)").matches)return}else return;const M=document.querySelector(".header");if(M){const z=typeof M.matches=="function";if(!(window.matchMedia("(hover: hover)").matches&&z&&M.matches(":hover"))){M.classList.add("header--force-collapsed");const j=()=>{M.classList.remove("header--force-collapsed"),M.removeEventListener("mouseenter",j)};M.addEventListener("mouseenter",j)}}}})]},x.key??`side-nav__item-${N}`)),f&&t.jsx("div",{className:"side-nav__separator side-nav__separator--short"}),f&&t.jsx(hl,{item:{key:"__mode-switch__",label:C?n("nav.goToMalgwi","\uB9D0\uADC0\uB85C \uC774\uB3D9"):n("nav.goToManager","\uB9D0\uADC0\uB9E4\uB2C8\uC800\uB85C \uC774\uB3D9"),icon:C?"arrow-left":"arrow-right"},onClick:w})]}),t.jsx(fb,{activeKey:r,unreadCount:i,onDebug:l,onNotification:c,onAccount:d,onSetting:u,onHelp:p,onFeedback:m})]})}var Za='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',no='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',gb='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 fl({appMode:e}){const{t:n}=Ce.useTranslation(),a=e==="manager",r=a?no:Za,s=gb;return t.jsxs("div",{className:"brand-identity__root","aria-label":n("header.biArea","BI \uC601\uC5ED"),children:[t.jsx("img",{src:s,alt:n("header.biSymbol","BI \uC2EC\uBCFC"),className:"brand-identity__image brand-identity__image--symbol"}),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 brand-identity__image--logo"})]})}function gl({activeKey:e,onChange:n,items:a,malgwiItems:r,managerItems:s,unreadCount:i,onDebug:l,onNotification:c,onAccount:d,onSetting:u,onHelp:p,onFeedback:m,appMode:h,onAppModeChange:f,scrollContainer:y}){const{t:C}=Ce.useTranslation(),w=tn("(max-width: 767px)"),b=o.useMemo(()=>(a??[]).filter(M=>!M.section&&(M.key||M.label)).map(M=>({key:M.key,label:typeof M.label=="string"?M.label:void 0,icon:M.icon,state:M.disabled?"disabled":void 0,badgeCount:M.badge})),[a]),g=o.useCallback(M=>{const z=a?.find(j=>j.key===M);if(!z?.disabled){if(z?.href){pl(z.href)&&window.open(z.href,"_blank","noopener,noreferrer");return}n?.(M)}},[a,n]),_=o.useMemo(()=>{const M=[];return l&&M.push({key:"debug",icon:"terminal",label:C("nav.debug","\uB514\uBC84\uADF8"),onClick:l}),c&&M.push({key:"notifications",icon:"bell",label:C("nav.notifications","\uC54C\uB9BC"),badgeCount:i,onClick:c}),u&&M.push({key:"settings",icon:"settings",label:C("nav.settings","\uC124\uC815"),onClick:u}),p&&M.push({key:"help",icon:"message-circle-question-mark",label:C("nav.help","\uB3C4\uC6C0\uB9D0"),onClick:p}),m&&M.push({key:"feedback",icon:"bug",label:C("nav.feedback","\uBC84\uADF8\uC2E0\uACE0"),onClick:m}),d&&M.push({key:"account",icon:"user-round",label:C("nav.account","\uACC4\uC815"),onClick:d}),M},[C,l,c,u,p,m,d,i]),v=o.useCallback((M,z)=>({position:"fixed",top:M.bottom+8,right:Math.max(8,window.innerWidth-M.right),zIndex:Aa(z)}),[]),k=o.useId(),{open:A,toggle:B,close:x,style:N,triggerRef:D,menuRef:P}=ka({computeStyle:v,onScroll:"ignore",onResize:"reposition"}),H=o.useMemo(()=>[{items:_.map(M=>({label:M.label,icon:M.icon,badgeCount:M.badgeCount,selected:M.selected??(!!M.key&&M.key===e),closeOnSelect:!0,onClick:()=>{M.onClick?.(),x()}}))}],[_,e,x]);return t.jsxs("aside",{className:`header${h==="manager"?" header--manager":""}`,children:[t.jsxs("div",{className:"header__bi",children:[t.jsx(fl,{appMode:h}),t.jsxs("div",{className:"header__menu-button",ref:D,children:[t.jsx(ce,{htmlType:"button",size:48,type:"dot",shape:"pill",variant:"default",useBorder:!1,icon:"menu",ariaLabel:c&&i&&i>0?C("nav.badgeLabel",{label:C("header.menuOpen","\uBA54\uB274 \uC5F4\uAE30"),count:i,defaultValue:"{{label}}, {{count}}\uAC1C"}):C("header.menuOpen","\uBA54\uB274 \uC5F4\uAE30"),onClick:B,"aria-expanded":A,"aria-controls":A?k:void 0}),!!c&&!!i&&i>0&&t.jsx(bt,{type:"dot",number:Math.min(i,99),size:24,"aria-hidden":!0}),A&&Xt.createPortal(t.jsx("div",{id:k,role:"group","aria-label":C("header.utilMenu","\uC720\uD2F8\uB9AC\uD2F0 \uBA54\uB274"),className:"tooltip-content",style:N,ref:P,children:t.jsx(Ba,{columns:H,onClose:x})}),document.body)]})]}),t.jsx(Cl,{scrollContainer:y,items:a,activeKey:e??void 0,onChange:n,unreadCount:i,onDebug:l,onNotification:c,onAccount:d,onSetting:u,onHelp:p,onFeedback:m,appMode:h,onAppModeChange:f}),w&&t.jsx(dl,{items:b,activeKey:e??void 0,onChange:g,scrollContainer:y,appMode:h,onAppModeChange:f})]})}const bb=gl,yb=()=>Dt.t("passCard.planSuffix","\uC774\uC6A9\uAD8C");function bl(e){if(!(e==null||e==="")){if(typeof e=="string"&&/^\s*\d[\d,]*\s*$/.test(e)){const n=Number(e.replace(/[,\s]/g,""));if(Number.isFinite(n))return Qn(`${n.toLocaleString("ko-KR")}\uC6D0`)}return Qn(typeof e=="number"?`${e.toLocaleString("ko-KR")}\uC6D0`:e)}}function vb(e){const n=`${e.code??""} ${e.name??""}`.toLowerCase();return/manager|매니저/.test(n)?"manager":"speechear"}function xb(e){if(e.durationDays&&e.durationDays>0){const i=e.durationDays;return i%365===0?`${i/365}\uB144`:`${i}\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*$/);if(r)return r[1].replace(/\s+/g,"");const s=a.match(/(\d+)\s*-?\s*(day|year)s?\b/i);return s?s[2].toLowerCase()==="year"?`${s[1]}\uB144`:`${s[1]}\uC77C`:a||yb()}function _b(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 yl(e){return{type:e.type??vb(e),plan:xb(e),label:e.label,price:bl(e.price),originalPrice:bl(e.originalPrice),discountLabel:e.discountLabel}}var wb='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',Ab='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>',kb='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',Bb='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',Nb='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>',Eb='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',vl='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 qn={text:"--pass-card-text",sub:"--pass-card-sub",copyright:"--pass-card-copyright"},ao=new WeakMap;function Db(e){if(e)return ao.get(e)}function _n(e,n){e&&(e.style.setProperty(qn.text,n.text),e.style.setProperty(qn.sub,n.sub),n.copyrightColor&&e.style.setProperty(qn.copyright,n.copyrightColor),ao.set(e,n))}function wn(e){e&&(e.style.removeProperty(qn.text),e.style.removeProperty(qn.sub),e.style.removeProperty(qn.copyright),ao.delete(e))}const xl={text:"var(--color-pureBlack)",sub:"var(--color-lightGray)",logoBase:"Logo_speechear_kr",copyrightColor:"#1a1a1a"};function _l(e={}){const n=gt(xl,_n,wn);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("${vl}")`}})]})}const wl="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 Na='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 Sb={text:"#1a1a1a",sub:"var(--color-lightGray)",logoBase:"Logo_speechear_kr",copyrightColor:"var(--color-main)"},jb=[{scale:1,opacity:.55},{scale:2,opacity:.4},{scale:3.1,opacity:.28},{scale:4.5,opacity:.18},{scale:6,opacity:.1}];function Al(e={}){const n=gt(Sb,_n,wn),a="var(--color-main)",r=270,s=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:jb.map(({scale:i,opacity:l},c)=>t.jsx("g",{transform:`translate(${r} ${s}) scale(${i}) translate(-50 -50)`,opacity:l,children:t.jsx("path",{d:wl,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("${Na}")`}})]})}const Tb={text:"#ffffff",sub:"var(--color-lightGray)",logoBase:"Logo_speechear_kr",logoColor:"_white",copyrightColor:"#ffffff"},Mb=[{scale:1,opacity:.55},{scale:2,opacity:.4},{scale:3.1,opacity:.28},{scale:4.5,opacity:.18},{scale:6,opacity:.1}];function Lb(e={}){const n=gt(Tb,_n,wn),a="#ffffff",r=270,s=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:Mb.map(({scale:i,opacity:l},c)=>t.jsx("g",{transform:`translate(${r} ${s}) scale(${i}) translate(-50 -50)`,opacity:l,children:t.jsx("path",{d:wl,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("${vl}")`}})]})}const $b={text:"#1a1a1a",sub:"var(--color-lightGray)",logoBase:"Logo_speechear_kr",copyrightColor:"var(--color-main)"};function Rb(e={}){const n=gt($b,_n,wn);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("${Na}")`}})]})}const Pb={Logo_speechear_kr:{"":Za,_white:wb,_textWhite:Ab,_black:kb},Logo_speechearManager_kr:{"":no,_white:Bb,_textWhite:Nb,_black:Eb}};function Ib(e,n){if(e)return Pb[e]?.[n??""]??void 0}const Fb={speechear:Za,manager:no},Ob={speechear:"Logo_speechear_kr",manager:"Logo_speechearManager_kr"},kl=10;function Bl(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 s=Math.floor(e/60);return s>0?n("passCard.remainingMinute",{n:s}):n("passCard.remainingSecond",{n:Math.floor(e)})}function Hb(e,n,a){if(e==="manager"){const r=/년/.test(n)||/yr|year/i.test(n)||/1년|365/.test(n),s=a==="\uC624\uD508\uD2B9\uAC00"||a===Dt.t("passCard.specialLabel");return r?t.jsx(Rb,{}):s?t.jsx(Lb,{}):t.jsx(Al,{})}return t.jsx(_l,{})}function Nl({product:e,showPrice:n=!1,plan:a,type:r,endDate:s,remainingSeconds:i,endInclusive:l=!1,state:c="active",bg:d,bgOnly:u=!1,textColor:p,subColor:m,copyrightColor:h,logoSrc:f,label:y,price:C,originalPrice:w,discountLabel:b,onUse:g,onRefund:_,onDelete:v}){const{t:k}=Ce.useTranslation(),A=e?yl(e):void 0,B=r??A?.type??"speechear",x=a??A?.plan??k("passCard.planSuffix","\uC774\uC6A9\uAD8C"),N=y??A?.label,D=C??(n?A?.price:void 0),P=w??(n?A?.originalPrice:void 0),H=b??A?.discountLabel,M=o.useMemo(()=>{if(D)return null;const oe=e?.durationDays??_b(e?.code);if(!oe||oe<=0)return i!=null?{percent:null,remainingLabel:Bl(i,k)}:null;const V=oe*86400;let ae;if(i!=null)ae=i;else if((c==="active"||c==="expired")&&s){const ge=new Date(s).getTime();if(Number.isNaN(ge))return null;const me=/^(\d{4})-(\d{2})-(\d{2})/.exec(String(s)),re=/^(\d{4})-(\d{2})-(\d{2})/.exec(va()),he=Math.round(me&&re?(Date.UTC(+me[1],+me[2]-1,+me[3])-Date.UTC(+re[1],+re[2]-1,+re[3]))/864e5:(ge-Date.now())/864e5);ae=Math.max(0,l?he+1:he)*86400}else c==="expired"?ae=0:ae=V;const ue=Math.max(0,Math.min(100,Math.floor(Math.min(ae,V)/V*100)));return c==="pending"&&ue>=100?null:{percent:ue,remainingLabel:Bl(ae,k)}},[D,c,s,i,l,e?.durationDays,e?.code,k]),z=o.useRef(null),[j,S]=o.useState({}),[I,W]=o.useState(null),Z=!!(g||_||v),U=o.useRef(!1),q=o.useRef(void 0),[K,L]=o.useState(f);o.useLayoutEffect(()=>{L(f)},[f]),o.useLayoutEffect(()=>{const oe=z.current;oe&&(p!==void 0&&oe.style.setProperty("--pass-card-text",p),m!==void 0&&oe.style.setProperty("--pass-card-sub",m),h!==void 0&&oe.style.setProperty("--pass-card-copyright",h))},[p,m,h]),o.useLayoutEffect(()=>{const oe=z.current;if(!oe)return;const V=Db(oe);if(!f){const ae=Ob[B],ue=c==="expired"?"_black":V?.logoColor??"",ge=Ib(ae,ue);L(ge)}},[d,f,B,c]);const E=oe=>{const V=z.current;if(!V)return null;const{left:ae,top:ue,width:ge,height:me}=V.getBoundingClientRect(),re=(oe.clientX-ae)/ge-.5;return{rotateX:-((oe.clientY-ue)/me-.5)*kl,rotateY:re*kl}},F=(oe,V)=>{const ae=V*-.7,ue=oe*.7+10,ge=20+(Math.abs(oe)+Math.abs(V))*.4;return`${ae}px ${ue}px ${ge}px rgba(0, 0, 0, 0.18)`},R=o.useCallback(oe=>{if(na())return;U.current=!0,clearTimeout(q.current),q.current=setTimeout(()=>{U.current=!1},200);const V=E(oe);V&&S({transform:`perspective(800px) rotateX(${V.rotateX}deg) rotateY(${V.rotateY}deg) scale3d(1.03, 1.03, 1.03)`,boxShadow:F(V.rotateX,V.rotateY),transition:"transform 0.25s cubic-bezier(0.23, 1, 0.32, 1), box-shadow 0.25s cubic-bezier(0.23, 1, 0.32, 1)"})},[]),O=o.useCallback(oe=>{if(na())return;const V=E(oe);if(!V)return;const ae=U.current?"transform 0.2s ease, box-shadow 0.2s ease":"none";S({transform:`perspective(800px) rotateX(${V.rotateX}deg) rotateY(${V.rotateY}deg) scale3d(1.03, 1.03, 1.03)`,boxShadow:F(V.rotateX,V.rotateY),transition:ae})},[]),$=o.useCallback(()=>{clearTimeout(q.current),U.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)"})},[]),Y=o.useCallback(()=>W(null),[]),Q=o.useMemo(()=>{const oe=k("passCard.planSuffix","\uC774\uC6A9\uAD8C"),V=x.replace("\uC774\uC6A9\uAD8C","").replace(oe==="\uC774\uC6A9\uAD8C"?"":oe,"").trim(),ae=V.match(/^(.*?)(일|년)$/);return ae?t.jsxs(t.Fragment,{children:[t.jsx("span",{className:"h0 pass-card__plan-number",children:ae[1]}),t.jsx("span",{className:"h5b pass-card__plan-unit",children:ae[2]==="\uB144"?k("passCard.unitYear","\uB144"):k("passCard.unitDay","\uC77C")})]}):t.jsx("span",{className:"h0",children:V})},[x,k]),X=o.useMemo(()=>{const oe=Qn(D);if(!oe)return null;const V=oe.match(/^([^\d]*)([\d.,]+)(.*)$/);if(!V)return t.jsx("span",{className:"h1",children:oe});const[,ae,ue,ge]=V;return t.jsxs(t.Fragment,{children:[ae&&t.jsx("span",{className:"h5 pass-card__price-symbol",children:ae}),t.jsx("span",{className:"h1 pass-card__price-amount",children:ue}),ge.trim()&&t.jsx("span",{className:"h5 pass-card__price-symbol",children:ge.trim()})]})},[D]),ie=o.useCallback(()=>{Z&&W(oe=>{if(oe)return null;const V=z.current?.getBoundingClientRect();if(!V)return null;const ae=50;return{left:V.left,right:V.right,width:V.width,height:V.height,x:V.x,y:V.y+ae,top:V.top+ae,bottom:V.bottom+ae}})},[Z]),be=o.useCallback(oe=>{Z&&(oe.key==="Enter"||oe.key===" ")&&(oe.preventDefault(),ie())},[Z,ie]),ne=[{items:[...g?[{label:k("passCard.menu.use","\uC0AC\uC6A9\uD558\uAE30"),icon:"play",onClick:()=>{g(),W(null)},closeOnSelect:!0}]:[],..._?[{label:k("passCard.menu.refund","\uD658\uBD88\uD558\uAE30"),icon:"rotate-ccw",onClick:()=>{_(),W(null)},closeOnSelect:!0}]:[],...v?[{label:k("passCard.menu.delete","\uC0AD\uC81C\uD558\uAE30"),icon:"trash-2",onClick:()=>{v(),W(null)},closeOnSelect:!0}]:[]]}];return t.jsxs(t.Fragment,{children:[t.jsx("div",{className:"pass-card-frame",children:t.jsxs("div",{ref:z,className:`pass-card pass-card--${c}${Z?" pass-card--clickable":""}`,style:j,onMouseEnter:R,onMouseMove:O,onMouseLeave:$,onPointerUp:oe=>{oe.pointerType==="touch"&&$()},onPointerCancel:oe=>{oe.pointerType==="touch"&&$()},onClick:ie,onKeyDown:Z?be:void 0,role:Z?"button":void 0,tabIndex:Z?0:void 0,"aria-haspopup":Z?"menu":void 0,"aria-expanded":Z?!!I:void 0,children:[d??Hb(B,x,N),!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:K??Fb[B],className:"pass-card__logo",alt:B==="manager"?k("header.logoManager","\uB9D0\uADC0\uB9E4\uB2C8\uC800 \uB85C\uACE0"):k("header.logoMalgwi","\uB9D0\uADC0 \uB85C\uACE0")}),t.jsxs("div",{className:"pass-card__plan",children:[t.jsx("div",{children:Q}),t.jsx("span",{className:"h5b pass-card__plan-suffix",children:N?k("passCard.labeledPlan",{label:N}):k("passCard.planSuffix","\uC774\uC6A9\uAD8C")})]})]})}),D?t.jsxs("div",{className:"pass-card__price-area",children:[H&&t.jsx("span",{className:"pass-card__discount body-3",children:H}),t.jsxs("div",{className:"pass-card__price",children:[P&&t.jsx("span",{className:"pass-card__price-original body-3",children:Qn(P)}),X]})]}):M?t.jsxs("div",{className:"pass-card__usage",children:[t.jsx("span",{className:"h5b pass-card__usage-remaining",children:M.remainingLabel}),M.percent!=null&&t.jsxs("span",{className:"pass-card__usage-percent",children:[t.jsx("span",{className:"h1 pass-card__usage-value",children:M.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."})]})]})}),I&&t.jsx(rn,{anchorRect:I,onClose:Y,ariaLabel:k("tooltip.menu","\uBA54\uB274"),children:t.jsx(Ba,{columns:ne,onClose:Y,size:"small"})})]})}const zb={text:"#1a1a1a",sub:"var(--color-lightGray)",logoBase:"Logo_speechear_kr",copyrightColor:"#1a1a1a"};function Vb(e={}){const n=`passcard-sound-line-grad-${o.useId()}`,a=gt(zb,_n,wn);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("${Na}")`}})]})}const Wb={text:"#1a1a1a",sub:"var(--color-lightGray)",logoBase:"Logo_speechear_kr",copyrightColor:"var(--color-main)"};function qb(e={}){const n=gt(Wb,_n,wn);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("${Na}")`}})]})}function Ub(e,n){if(e){if(n==="manager_pro")return t.jsx(qb,{});if(n==="manager_standard")return t.jsx(Vb,{});if(n==="manager_lite")return t.jsx(Al,{})}}function Gb(e){const n=Qn(e);if(!n)return null;const a=n.match(/^([^\d]*)([\d.,]+)(.*)$/);if(!a)return n;const[,r,s,i]=a;return t.jsxs(t.Fragment,{children:[r&&t.jsx("span",{className:"payment-plan__pricing-symbol h4",children:r}),s,i.trim()&&t.jsx("span",{className:"payment-plan__pricing-symbol h4",children:i.trim()})]})}function Kb(e){const{t:n}=Ce.useTranslation(),a=n("payment.plan.tierFallback",{defaultValue:"\uC774\uC6A9\uAD8C"}),r=n("payment.plan.openPromo",{defaultValue:"\uC624\uD508 \uD2B9\uAC00"}),{plan:s,onSelect:i,period:l="monthly",ownedCodes:c}=e||{},d=v=>!!v&&!!c?.includes(v),u=v=>v.onceOnly??/오픈\s*특가/.test(v.label??""),p=(s.tiers||[]).some(v=>u(v)&&d(v.code)),m=v=>{const k=v.prices?v.prices[l]:v.price;return k?(s.tiers||[]).some(A=>!!A.badge&&A.originals?.[l]===k):!1},h=s.colorToken?`var(--color-${s.colorToken})`:"var(--color-gray)",f=n("payment.plan.freePrice","\uBB34\uB8CC"),y=n("payment.products.mgrEnterprise.tier.price","\uBB38\uC758"),C=v=>v.prices?v.prices[l]:v.price,w=(s.tiers||[]).length>0&&(s.tiers||[]).every(v=>{const k=C(v);return k==="\uBB34\uB8CC"||k===f||k==="0\uC6D0"||typeof k=="string"&&/\d/.test(k)&&!/[1-9]/.test(k)}),b=(s.tiers||[]).length>0&&(s.tiers||[]).every(v=>{const k=C(v);return k==="\uBB38\uC758"||k===y}),g=s.group==="org",_=g?"manager":"speechear";return t.jsxs("div",{className:"payment-plan__card",style:{borderColor:h,"--plan-color":h},children:[s.cardBadge&&t.jsx("div",{className:"payment-plan__card-badge",children:t.jsx(bt,{label:s.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:s.quote||"\xA0"}),t.jsx("h3",{className:"payment-plan__title-heading h1",children:s.tier??s.title}),t.jsx("p",{className:"payment-plan__subtitle body-3",children:s.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:(s.recommendedFor||[]).map((v,k)=>t.jsxs("li",{className:"payment-plan__feature-item body-3",children:[t.jsx(Ze,{icon:"check",size:18,className:"payment-plan__feature-check",wrapperStyle:{color:h}}),v]},k))})]}),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:(s.features||[]).map((v,k)=>t.jsxs("li",{className:"payment-plan__feature-item body-3",children:[t.jsx(Ze,{icon:"check",size:18,className:"payment-plan__feature-check",wrapperStyle:{color:h}}),v]},k))})]}),t.jsx("div",{className:"payment-plan__card-pricing",children:w?null:b?t.jsx(ce,{htmlType:"button",className:"payment-plan__contact-button",label:n("payment.plan.contact",{defaultValue:"\uBB38\uC758\uD558\uAE30"}),variant:"main",size:56,onClick:()=>s.tiers?.[0]&&i?.({...s.tiers[0],productId:s.id,productTitle:s.title})}):t.jsx(t.Fragment,{children:t.jsx("div",{className:"payment-plan__pricing-list",children:(s.tiers||[]).map(v=>{const k=v.label||a,A=u(v),B=A||v.openPromo===!0,x=k.replace(/^오픈\s*특가\s*/,"")||a,N=v.prices?v.prices[l]:v.price,D=v.badge?B?`${r}
|
|
852
|
-
${v.badge}`:v.badge:void 0;if(A&&d(v.code))return null;if(!v.badge&&!p)return m(v)?null:t.jsxs("div",{className:`payment-plan__pricing-row payment-plan__pricing-row--static${v.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:v.label})}),t.jsx("div",{className:"payment-plan__pricing-row-price",children:t.jsx("span",{className:"payment-plan__pricing-current h1",children:Gb(N)})})]},v.id);const P=s.tier??(g?s.title:void 0),H=t.jsx(Nl,{showPrice:!0,product:{type:_,code:v.code,name:x,label:P,price:N,originalPrice:v.originals?.[l]??void 0,discountLabel:D},bg:Ub(g,s.id)}),M=()=>i?.({...v,productId:s.id,productTitle:s.title,preview:H});return t.jsx("div",{className:"payment-plan__pricing-card",onClick:M,onKeyDown:i?z=>{z.target===z.currentTarget&&(z.key==="Enter"||z.key===" ")&&(z.preventDefault(),M())}:void 0,role:i?"button":void 0,tabIndex:i?0:void 0,children:H},v.id)})})})})]})}function Yb({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 ro='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 El={text:"#1a1a1a",sub:"var(--color-lightGray)",logoBase:"Logo_speechear_kr",copyrightColor:"#c9c9c9"};function Zb(){const e=gt(El,_n,wn);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("${ro}")`}})})}const Dl={text:"#ffffff",sub:"var(--color-lightGray)",logoBase:"Logo_speechearManager_kr",logoColor:"_white",copyrightColor:"#ffffff"};function Xb(e={}){const n=gt(Dl,_n,wn);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("${Na}")`}})]})}function Sl({keys:e,anchor:n="top-right",scale:a,className:r=""}){const s=Array.isArray(e)?e:[e];return t.jsx("span",{className:Ee("shortcut-badge",`shortcut-badge--${n}`,r),style:a===void 0?void 0:{"--shortcut-badge-scale":String(a)},children:s.map((i,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:i})]},`${i}-${l}`))})}const Ea=(e,n,a)=>e+(n-e)*a;function Jb({speakers:e,size:n=300,viewT:a=0,activeSpeakerId:r=null,playedIds:s,selectedId:i=null,answerId:l=null,showFeedback:c=!1,pulseSelected:d=!1,pulseSelectedDuration:u,pulseScale:p,clickable:m=!1,onSelectSpeaker:h,buttonSize:f=40,showIcon:y=!0,onCenterClick:C,centerLabel:w,centerDisabled:b=!1,centerAttention:g=!1,shortcutAnchor:_="top-right",shortcutScale:v,scaleShortcut:k=!1}){const{t:A}=Ce.useTranslation(),B=Math.max(0,Math.min(1,a)),x=n/2,N=110/300,D=.18,P=V=>n*(N+(V-1)*D),H=V=>{const ae=P(V.row??1),ue=V.angleDeg*Math.PI/180;return{x:x+ae*Math.cos(ue),y:x+ae*Math.sin(ue)}},M=Math.max(...e.map(V=>V.row??1),1),z=n*.08,j=n*.1,S=n*.24,I=n-2*z,W=n-j-S,Z=n-S/2,U=o.useMemo(()=>[...new Set(e.map(V=>V.deg))].sort((V,ae)=>V-ae),[e]),q=U.length,K=Math.max(68,q>1?I/(q-1):0),L=o.useMemo(()=>new Map(U.map((V,ae)=>[V,ae])),[U]),E=V=>{const ae=L.get(V.deg)??0,ue=x+(ae-(q-1)/2)*K,ge=M>1?Math.min(68,W/(M-1)):0,me=ge*(M-1),re=j+(W-me)/2,he=M===1?j+W*.4:re+(M-(V.row??1))*ge;return{x:ue,y:he}},F=V=>{const ae=H(V),ue=E(V);return{x:Ea(ae.x,ue.x,B),y:Ea(ae.y,ue.y,B)}},R={x,y:Ea(x,Z,B)},O=Math.round(f*1.2),$=Math.round(Math.max(16,Math.min(80,f*.7))),Y=[],Q=new Map;for(const V of e){const ae=V.row??1;Q.has(ae)||Q.set(ae,[]),Q.get(ae).push(V)}for(const[V,ae]of Q.entries()){if(ae.length<2)continue;const ue=[...ae].sort((Pe,we)=>Pe.deg-we.deg),ge=ue.map(Pe=>F(Pe)),me=ue.map(Pe=>Pe.deg),re=me[me.length-1]-me[0],he=re/(me.length-1),_e=360-re,Me=ue.length>=3&&he>0&&_e<=he*1.5,Ue=Math.round(P(V)*1e3)/1e3,Ie=(Pe,we,Se,Oe)=>{const Be=(we.angleDeg-Pe.angleDeg+540)%360-180;if(Be===0)return`L ${Oe.x} ${Oe.y}`;if(B===0)return`A ${Ue} ${Ue} 0 0 ${Be>0?1:0} ${Oe.x} ${Oe.y}`;const nt=(Pe.angleDeg+Be/2)*Math.PI/180,Ge={x:x+Ue*Math.cos(nt),y:x+Ue*Math.sin(nt)},Xe={x:(Se.x+Oe.x)/2,y:(Se.y+Oe.y)/2},De={x:Ea(Ge.x,Xe.x,B),y:Ea(Ge.y,Xe.y,B)},je={x:2*De.x-Xe.x,y:2*De.y-Xe.y};return`Q ${je.x} ${je.y} ${Oe.x} ${Oe.y}`},de=Me?[...ue,ue[0]]:ue,Ae=Me?[...ge,ge[0]]:ge;let Re=`M ${Ae[0].x} ${Ae[0].y}`;for(let Pe=1;Pe<Ae.length;Pe++)Re+=" "+Ie(de[Pe-1],de[Pe],Ae[Pe-1],Ae[Pe]);Y.push({key:`arc-${V}`,d:Re})}const X=o.useMemo(()=>new Set(s??[]),[s]),ie=V=>({idle:"",active:A("soundCompass.state.active","\uC18C\uB9AC \uB098\uB294 \uC911"),played:A("soundCompass.state.played","\uB4E4\uC74C"),correct:A("soundCompass.state.correct","\uC815\uB2F5"),wrong:A("soundCompass.state.wrong","\uC624\uB2F5")})[V],be=V=>{if(r===V.id)return"active";if(c){if(V.id===l)return"correct";if(V.id===i&&i!==l)return"wrong"}return X.has(V.id)?"played":"idle"},ne=V=>r===V.id?"loop":c?V.id===l?"loop":null:d&&V.id===i?"once":null,oe=(V,ae)=>{switch(V){case"played":case"correct":return t.jsx(os,{size:ae});case"wrong":return t.jsx(Cs,{size:ae});default:return t.jsx(hs,{size:ae})}};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:[B===0&&e.map(V=>{const{x:ae,y:ue}=F(V);return t.jsx("line",{x1:R.x,y1:R.y,x2:ae,y2:ue,stroke:"#dde3ec",strokeWidth:"1"},V.id)}),Y.map(V=>t.jsx("path",{d:V.d,fill:"none",stroke:"#dde3ec",strokeWidth:"1"},V.key))]}),g&&!b&&t.jsx("div",{className:"sound-compass__pulse sound-compass__pulse--active sound-compass__pulse--center",style:{width:O,height:O,left:R.x-O/2,top:R.y-O/2}}),C?t.jsx("button",{type:"button",className:`sound-compass__center sound-compass__center--button${b?" sound-compass__center--disabled":""}`,style:{width:O,height:O,left:R.x,top:R.y},"aria-label":w,"aria-disabled":b||void 0,tabIndex:b?-1:0,onClick:b?void 0:C,children:t.jsx(br,{size:$,color:"currentColor",strokeWidth:1.5})}):t.jsx("div",{className:"sound-compass__center",style:{width:O,height:O,left:R.x,top:R.y},children:t.jsx(br,{size:$,color:"currentColor",strokeWidth:1.5})}),e.map((V,ae)=>{const{x:ue,y:ge}=F(V),me=be(V),re=ne(V),he={...v!==void 0||k?{"--shortcut-badge-scale":String(v??Math.max(.75,Math.min(3,f/56)))}:null,pointerEvents:m?"auto":"none",cursor:m?"pointer":"default",zIndex:me!=="idle"?10:1},_e=f,Me=Math.round(Math.max(10,Math.min(56,_e*.38))),Ue=Math.round(Math.max(7,Math.min(18,_e*.2))),Ie=Math.round(Math.max(10,Math.min(56,_e*.4))),de=y==="answered"&&(me==="played"||me==="correct"||me==="wrong"),Ae=y===!0||de,Re=!de;return t.jsxs("div",{className:"sound-compass__speaker-pos",style:{...he,left:ue-_e/2,top:ge-_e/2},children:[re&&t.jsx("div",{className:`sound-compass__pulse sound-compass__pulse--${me}`+(re==="once"?" sound-compass__pulse--once":""),style:{width:_e,height:_e,...re==="once"&&u!==void 0?{"--sc-pulse-duration-once":`${u}ms`}:null,...p!==void 0?{"--sc-pulse-scale":String(p)}:null}}),t.jsxs("button",{type:"button",tabIndex:m?0:-1,"aria-disabled":m?void 0:!0,onClick:m?()=>h?.(V.id):void 0,className:`sound-compass__speaker-btn sound-compass__speaker-btn--${me}`,style:{width:_e,height:_e},"aria-label":ie(me)?`${V.label}, ${ie(me)}`:V.label,"aria-pressed":i!=null?V.id===i:void 0,children:[Ae&&oe(me,Me),Re&&t.jsx("span",{className:"sound-compass__speaker-number",style:{fontSize:y===!0?Ue:Ie},children:ae+1})]}),V.shortcut&&t.jsx(Sl,{keys:V.shortcut,anchor:_,className:"sound-compass__speaker-shortcut"})]},V.id)})]})})}function Qb({children:e,position:n="top-left",size:a=24,className:r=""}){return t.jsx("span",{className:Ee("circle-badge","circle-badge--number",`circle-badge--${a}`,`circle-badge--${n}`,r),children:e})}function e4({orientation:e="horizontal",label:n,className:a=""}){const r=Ee("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 jl({checked:e,onChange:n,name:a,value:r,disabled:s=!1,label:i,className:l=""}){const c=o.useId();return t.jsxs("label",{className:`radio${s?" radio--disabled":""} ${l}`.trim(),htmlFor:c,children:[t.jsx("input",{id:c,type:"radio",name:a,value:r,checked:e,disabled:s,onChange:d=>n?.(d.target.checked)}),t.jsx("span",{className:"radio__dot"}),i&&t.jsx("span",{className:"radio__label body-2",children:i})]})}function t4({options:e,value:n,onChange:a,name:r,disabled:s=!1,direction:i="vertical",className:l="",ariaLabel:c}){const d=o.useId(),u=r??`radio-group-${d}`;return t.jsx("div",{className:`radio-group radio-group--${i} ${l}`.trim(),role:"radiogroup","aria-label":c,children:e.map(p=>t.jsx(jl,{name:u,value:p.value,checked:n===p.value,disabled:s||p.disabled,label:p.label,onChange:m=>{m&&a?.(p.value)}},p.value))})}const n4={info:"info",success:"check-circle",warning:"alert-triangle",danger:"alert-circle"};function a4({tone:e="info",title:n,message:a,children:r,dismissible:s=!1,onDismiss:i,live:l,className:c=""}){const{t:d}=Ce.useTranslation(),[u,p]=o.useState(!1),m=o.useRef(null),h=o.useCallback(()=>{const g=m.current;g&&g.contains(document.activeElement)&&Ua(g),p(!0),i?.()},[i]);if(u)return null;const f=Ee("alert",`alert--${e}`,c),y=l??(e==="danger"||e==="warning"?"assertive":"polite"),C=y==="assertive"?"alert":y==="polite"?"status":void 0,w=!!n,b=!!(a||r);return t.jsxs("div",{ref:m,className:f,role:C,children:[t.jsxs("div",{className:"alert__body",children:[t.jsxs("div",{className:"alert__header",children:[t.jsx(Ze,{icon:n4[e],size:20,className:"alert__icon"}),w&&t.jsx("span",{className:"alert__title body-2",children:n}),!w&&b&&t.jsx("div",{className:"alert__message body-3",children:a||r})]}),w&&b&&t.jsx("div",{className:"alert__message alert__message--indented body-3",children:a||r})]}),s&&t.jsx("button",{type:"button",className:"alert__dismiss",onClick:h,"aria-label":d("common.close","\uB2EB\uAE30"),children:"\xD7"})]})}const r4={ready:"search",guide:"info",error:"circle-alert"};function o4(e,n){const a=n.filter(Boolean);if(a.length===0)return e;const r=[];let s=0,i=0;for(const l of a){const c=e.indexOf(l,s);c<0||(c>s&&r.push(e.slice(s,c)),r.push(t.jsx("strong",{className:"search-summary__em body-2",children:l},i++)),s=c+l.length)}return s<e.length&&r.push(e.slice(s)),r}function s4({status:e="guide",label:n,children:a,emphasis:r,icon:s,className:i=""}){const l=s===!1?null:s??r4[e],c=Ee("search-summary",`search-summary--${e}`,i),d=n??a,u=typeof d=="string"&&r&&r.length>0?o4(d,r):d;return t.jsxs("div",{className:c,role:"status","aria-live":"polite",children:[l!=null&&t.jsx(Ze,{icon:l,size:18,className:"search-summary__icon"}),t.jsx("span",{className:"search-summary__text body-2",children:u})]})}function Da({title:e,items:n}){const{t:a}=Ce.useTranslation(),{anchorRect:r,openAt:s,close:i}=wa(),l=o.useRef(null),c=Ur(!!r,(d,u)=>{d&&u?s(l.current?.querySelector("button")??u):i()},l);return t.jsxs("span",{ref:l,style:{display:"contents"},children:[t.jsx(ce,{htmlType:"button",size:24,type:"dot",icon:"info",variant:"transparent-gray",useBorder:!1,selected:!!r,ariaLabel:a("common.info","\uC124\uBA85"),onPointerEnter:d=>{ta(d)||s(d.currentTarget)},onPointerLeave:d=>{ta(d)||i()},onClick:d=>{c.touchPress(d.currentTarget)},onFocus:d=>{na()||s(d.currentTarget)},onBlur:i}),r&&t.jsx(Vn,{title:e,items:n,showIndex:n.length>1,anchorRect:r,onClose:i})]})}function i4({items:e=[],value:n,onChange:a,className:r="",size:s=40}){const i=o.useId(),{t:l}=Ce.useTranslation(),c=o.useRef(null),d=e.find(C=>!C.disabled)?.key,u=e.some(C=>C.key===n)?n:d??e[0]?.key,p=e.find(C=>C.key===u&&!C.disabled)?.key??d,m=()=>Array.from(c.current?.querySelectorAll('[role="tab"]:not(:disabled)')??[]),h=(C,w=m())=>{if(w.length===0)return;const b=(C%w.length+w.length)%w.length;w[b]?.focus(),w[b]?.click()},f=C=>{if(!["ArrowRight","ArrowDown","ArrowLeft","ArrowUp","Home","End"].includes(C.key))return;C.preventDefault();const w=m(),b=w.indexOf(C.currentTarget);C.key==="ArrowRight"||C.key==="ArrowDown"?h(b+1,w):C.key==="ArrowLeft"||C.key==="ArrowUp"?h(b-1,w):C.key==="Home"?h(0,w):h(w.length-1,w)},y=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--${s}`,role:"tablist","aria-label":l("tabs.ariaLabel","\uD0ED"),children:e.map(C=>t.jsx("button",{id:`tabs__tab-${i}-${C.key}`,type:"button",role:"tab","aria-selected":C.key===u,"aria-controls":`tabs__panel-${i}-${C.key}`,disabled:C.disabled,tabIndex:C.key===p?0:-1,className:`tabs__tab body-2${C.key===u?" tabs__tab--active":""}`,onClick:()=>{C.key!==n&&a?.(C.key)},onKeyDown:f,children:C.label},C.key))}),y&&t.jsx("div",{id:`tabs__panel-${i}-${y.key}`,role:"tabpanel","aria-labelledby":`tabs__tab-${i}-${y.key}`,tabIndex:0,className:"tabs__panel",children:y.panel},y.key)]})}const l4={xs:12,sm:16,md:20,lg:28,xl:36};function c4(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 u4({src:e,name:n,size:a="md",shape:r="circle",className:s=""}){const{t:i}=Ce.useTranslation(),[l,c]=o.useState(null),d=!!e&&l===e,u=n?c4(n):"",p=!!e&&!d,m=!p&&!!u,h=n||i("avatar.ariaLabel","\uC0AC\uC6A9\uC790 \uC544\uBC14\uD0C0");return t.jsxs("span",{className:`avatar avatar--${a} avatar--${r} ${s}`.trim(),role:"img","aria-label":h,children:[p&&t.jsx("img",{className:"avatar__image",src:e,alt:h,onError:()=>c(e??null)}),!p&&m&&t.jsx("span",{className:"avatar__initials","aria-hidden":"true",children:u}),!p&&!m&&t.jsx(Ze,{icon:"user-round",size:l4[a],className:"avatar__icon"})]})}function d4(e,n){if(!n)return!0;const a=n.split(",").map(i=>i.trim()).filter(Boolean);if(a.length===0)return!0;const r=e.name.toLowerCase(),s=e.type.toLowerCase();return a.some(i=>{const l=i.toLowerCase();return l.startsWith(".")?r.endsWith(l):l.endsWith("/*")?s.startsWith(l.slice(0,-1)):s===l})}function p4({onFilesSelected:e,accept:n,multiple:a=!1,disabled:r=!1,showFileList:s=!0,files:i,onRemove:l,className:c=""}){const{t:d}=Ce.useTranslation(),u=o.useRef(null),[p,m]=o.useState(!1),[h,f]=o.useState([]),y=i??h,C=A=>{if(!A||A.length===0)return;const B=Array.from(A).filter(N=>d4(N,n));if(B.length===0)return;const x=a?B:B.slice(0,1);if(i===void 0){const N=a?[...y,...x]:x;f(N),e?.(N)}else e?.(x)},w=A=>{A.preventDefault(),!r&&m(!0)},b=A=>{A.preventDefault(),m(!1)},g=A=>{A.preventDefault(),m(!1),!r&&C(A.dataTransfer.files)},_=A=>{const B=A.target;try{C(B.files)}finally{B.value=""}},v=()=>{r||u.current?.click()},k=A=>{if(!r&&(l?.(A),i===void 0)){const B=y.filter((x,N)=>N!==A);f(B),l||e?.(B)}};return t.jsxs("div",{className:`file-upload ${c}`.trim(),children:[t.jsxs("div",{className:Ee("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:A=>{(A.key==="Enter"||A.key===" ")&&(A.preventDefault(),v())},onDragOver:w,onDragLeave:b,onDrop:g,children:[t.jsx(Ze,{icon:"upload",size:24,className:"file-upload__icon"}),t.jsx("span",{className:"file-upload__prompt body-2",children:d("fileUpload.dragPrompt","\uD30C\uC77C\uC744 \uC774\uACF3\uC5D0 \uB4DC\uB798\uADF8\uD558\uC5EC \uC5C5\uB85C\uB4DC")}),t.jsx("button",{type:"button",className:"file-upload__browse-button body-3",disabled:r,onClick:A=>{A.stopPropagation(),v()},children:d("fileUpload.browseButton","\uD30C\uC77C \uC120\uD0DD")}),t.jsx("input",{ref:u,type:"file",className:"file-upload__input",accept:n,multiple:a,disabled:r,onChange:_,tabIndex:-1})]}),s&&y.length>0&&t.jsx("ul",{className:"file-upload__list",children:y.map((A,B)=>t.jsxs("li",{className:"file-upload__list-item body-3",children:[t.jsx("span",{className:"file-upload__file-name body-3",children:A.name}),t.jsx("button",{type:"button",className:"file-upload__remove-button","aria-label":d("fileUpload.removeAriaLabel",{name:A.name}),disabled:r,onClick:()=>k(B),children:t.jsx(Ze,{icon:"x",size:14})})]},`${A.name}-${B}`))})]})}function m4({items:e,className:n=""}){const{t:a}=Ce.useTranslation();return t.jsx("nav",{className:`breadcrumb ${n}`.trim(),"aria-label":a("breadcrumb.ariaLabel","\uC774\uB3D9 \uACBD\uB85C"),children:t.jsx("ol",{className:"breadcrumb__list",children:e.map((r,s)=>{const i=s===e.length-1;return t.jsxs("li",{className:"breadcrumb__item",children:[i?t.jsx("span",{className:"breadcrumb__current body-3","aria-current":"page",children:r.label}):r.href?t.jsx("a",{className:"breadcrumb__link body-3",href:r.href,target:r.target,rel:r.rel??(r.target==="_blank"?"noopener noreferrer":void 0),onClick:r.onClick,children:r.label}):r.onClick?t.jsx("button",{type:"button",className:"breadcrumb__link body-3",onClick:r.onClick,children:r.label}):t.jsx("span",{className:"breadcrumb__text body-3",children:r.label}),!i&&t.jsx(Ze,{icon:"chevron-right",size:14,className:"breadcrumb__separator"})]},s)})})})}const h4={small:14,medium:20,large:28};function C4({value:e,onChange:n,max:a=5,readOnly:r=!1,size:s="medium",ariaLabel:i,className:l=""}){const{t:c}=Ce.useTranslation(),d=r||!n,[u,p]=o.useState(null),m=d?e:Number.isFinite(e)?Math.round(e):0,h=u??m,f=h4[s],y=A=>{A!==e&&n?.(A)},C=A=>{d||y(A)},w=A=>{d||na()||p(A)},b=o.useRef(null),g=A=>{const B=Math.min(a,Math.max(1,A));y(B),Array.from(b.current?.querySelectorAll("[data-star]")??[]).find(x=>x.dataset.star===String(B))?.focus()},_=A=>{if(!d){switch(A.key){case"ArrowRight":case"ArrowUp":g((m||0)+1);break;case"ArrowLeft":case"ArrowDown":g((m||1)-1);break;case"Home":g(1);break;case"End":g(a);break;default:return}A.preventDefault()}},v=m>=1&&m<=a?Math.round(m):1,k=()=>{d||p(null)};return t.jsx("div",{className:`rating rating--${s}${d?" rating--readOnly":""} ${l}`.trim(),ref:b,onKeyDown:_,role:d?"img":"radiogroup","aria-label":d?c("rating.valueLabel",{value:e,max:a}):i??c("rating.groupLabel","\uBCC4\uC810"),onMouseLeave:k,onPointerUp:A=>{A.pointerType==="touch"&&k()},onPointerCancel:A=>{A.pointerType==="touch"&&k()},children:Array.from({length:a},(A,B)=>{const x=B+1,N=Math.max(0,Math.min(1,h-B)),D=N>0&&N<1,P=t.jsxs("span",{className:"rating__star-wrap",children:[t.jsx(Ze,{icon:"star",size:f,className:"rating__star rating__star--empty"}),N>0&&t.jsx("span",{className:`rating__star-fill${D?" rating__star-fill--half":""}`,style:D?{width:`${N*100}%`}:void 0,children:t.jsx(Ze,{icon:"star",size:f,className:"rating__star rating__star--filled"})})]});return d?t.jsx("span",{className:"rating__item","aria-hidden":"true",children:P},x):t.jsx("button",{type:"button",className:"rating__item rating__item--interactive",role:"radio","aria-checked":m===x,"aria-label":c("rating.starLabel",{n:x}),"data-star":x,tabIndex:x===v?0:-1,onClick:()=>C(x),onMouseEnter:()=>w(x),children:P},x)})})}const f4=20,g4=["#499cdf","#4dcdc0","#2fae9e","#e6b94e","#d9534f","#e06b68","#bfc7d1"];function b4({value:e,onChange:n,palette:a=g4,size:r=40,className:s="",ariaLabel:i}){const{t:l}=Ce.useTranslation();return t.jsx("div",{className:`color-picker ${s}`.trim(),role:"group","aria-label":i,children:a.map(c=>{const d=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":d,"aria-label":d?`${c} ${l("colorPicker.selected","\uC120\uD0DD\uB428")}`:c,children:d&&t.jsx(Ze,{icon:"check",size:f4,className:"color-picker__check"})},c)})})}function Tl({icon:e,label:n,tooltip:a,wrapperStyle:r,color:s,bgColor:i,useHover:l=!0,iconSize:c="medium"}){const d=c==="small",u=Ee("category-icon",d?"category-icon--small":""),p=d?16:20,m=o.useRef(null),[h,f]=o.useState(!1),y=o.useMemo(()=>{const A=r&&typeof r=="object"?{...r}:{};return!s&&!i?A:{...A,...s?{color:s,"--t-item-fg":s}:{},...i?{"--t-item-bg":i}:{}}},[r,s,i]),C=a||n,[w,b]=o.useState(null);o.useLayoutEffect(()=>{h&&b(m.current?.getBoundingClientRect()??null)},[h]),o.useEffect(()=>{if(!l&&h)try{f(!1)}catch{}},[l,h]),o.useEffect(()=>{if(!h)return;const A=B=>{const x=m.current;if(!x)return;const N=B.target;N&&!x.contains(N)&&f(!1)};return document.addEventListener("pointerdown",A,!0),()=>document.removeEventListener("pointerdown",A,!0)},[h]);const g=o.useCallback(()=>{l&&f(!0)},[l]),_=o.useCallback(()=>{l&&f(!1)},[l]),v=o.useCallback(()=>f(!1),[]),k=o.useCallback(A=>{if(A.key==="Escape"){f(!1);return}(A.key==="Enter"||A.key===" ")&&(A.preventDefault(),f(B=>!B))},[]);return t.jsxs("span",{ref:m,className:"category-icon__wrap",onPointerEnter:g,onPointerLeave:_,onFocus:g,onBlur:_,onKeyDown:k,role:"button",tabIndex:0,"aria-label":typeof C=="string"?C:void 0,"aria-haspopup":!!C,"aria-expanded":h,"data-tooltip-ignore":!0,children:[t.jsx(Ze,{icon:e,label:n,className:u,imgClassName:"category-icon__image",maskClassName:"category-icon__mask",svgClassName:"category-icon__svg",wrapperStyle:y,size:p}),h&&C&&t.jsx(vn,{anchorRect:w,text:typeof C=="string"?C:void 0,offset:8,onClose:v,className:"category-icon__tooltip",ariaLabel:typeof C=="string"?C:void 0})]})}let jn=null;function Xa(e){if(jn&&jn!==e)try{jn()}catch{}return jn=e,()=>{jn===e&&(jn=null)}}function Ja(e){if(jn===e){jn=null;try{e()}catch{}}}function y4(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 s=a.sentences||a.items||[],i=r(Array.isArray(s)?s:[]);return i.length===0&&(a.contextCode||a.context_code)&&i.push(String(a.contextCode||a.context_code)),{previewCodes:i,previewBucket:null}}function v4(e,n){const[a,r]=o.useState(!1),[s,i]=o.useState(-1),[l,c]=o.useState({key:"",urls:[]}),d=o.useRef(null),u=o.useRef(!1),p=o.useRef(null),m=o.useRef(null),[h,f]=o.useState(!1),y=o.useRef([]),{previewCodes:C,previewBucket:w}=y4(e,n),b=`${C.join(",")}|${w??""}`,g=o.useMemo(()=>l.key===b?l.urls:[],[l,b]);o.useEffect(()=>{if(!C.length)return;let v=!1;return(async()=>{const k=[],A=[];for(const B of C)try{const x=Vs(B,w);if(!x){k.push("");continue}let N=null;try{N=await Ws(x)}catch{}if(!N)try{const D=await qs(x);D&&(N=URL.createObjectURL(D),A.push(N))}catch{}k.push(N??"")}catch{k.push("")}v?A.forEach(B=>{try{URL.revokeObjectURL(B)}catch{}}):(y.current.forEach(B=>{try{URL.revokeObjectURL(B)}catch{}}),y.current=A,c({key:b,urls:k}))})(),()=>{v=!0}},[C.join(","),w]),o.useEffect(()=>()=>{y.current.forEach(v=>{try{URL.revokeObjectURL(v)}catch{}}),y.current=[]},[]);const _=o.useCallback(async v=>{if(v.stopPropagation(),v.preventDefault(),u.current){p.current&&Ja(p.current),u.current=!1;try{d.current?.pause()}catch{}r(!1),i(-1);return}if(!g.filter(Boolean).length)return;let k=null;const A=()=>{u.current=!1;try{d.current?.pause()}catch{}k?.()};p.current=A;const B=Xa(A);u.current=!0,r(!0);for(let x=0;x<g.length&&u.current;x++){const N=g[x];if(N){i(x);try{await new Promise((D,P)=>{k=D;const H=new Audio(N);d.current=H,H.onended=()=>D(),H.onerror=()=>P(),H.play().catch(P)})}catch{break}}}B(),p.current===A&&(p.current=null,u.current=!1,r(!1),i(-1))},[g]);return o.useEffect(()=>()=>{p.current&&Ja(p.current),u.current=!1;try{d.current?.pause()}catch{}d.current=null},[]),{playing:a,playingIndex:s,previewUrls:g,previewHover:h,setPreviewHover:f,previewBtnRef:m,handlePreview:_}}const x4=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 s=r;return s.sentence||s.text||s.context||s.question||s.title||""}return""}).filter(r=>typeof r=="string"&&r.trim().length>0).map(r=>r.trim()):[]};function oo(e){const{index:n,type:a,trainingData:r,ariaLabel:s,depth:i,renderPopup:l,completed:c,completedIds:d,selectedIds:u,tooltipText:p,useDescriptionTooltip:m=!1,onRemove:h,hideCheckBadge:f=!1,showTypeLabel:y=!1,onComplete:C,onSelect:w,onMore:b,countLabelOverride:g,size:_="square"}=e||{},{t:v}=Ce.useTranslation(),[k,A]=o.useState(!1),B=o.useRef(null),[x,N]=o.useState(!1);o.useEffect(()=>{B.current?.matches(":hover")&&N(!0)},[]);const{playing:D,playingIndex:P,previewUrls:H,previewHover:M,setPreviewHover:z,previewBtnRef:j,handlePreview:S}=v4(r,a?.key),I=o.useCallback(()=>{w?w():A(!0)},[w]),W=o.useCallback(()=>A(!1),[]),Z=o.useCallback(()=>N(!0),[]),U=o.useCallback(()=>N(!1),[]),q=o.useCallback(()=>z(!0),[z]),K=o.useCallback(()=>z(!1),[z]),[L,E]=o.useState(null);o.useLayoutEffect(()=>{M&&E(j.current?.getBoundingClientRect()??null)},[M,j]);const[F,R]=o.useState(null);o.useLayoutEffect(()=>{x&&!k&&m&&R(B.current?.getBoundingClientRect()??null)},[x,k,m]);const O=o.useCallback(Be=>{Be.target===Be.currentTarget&&(Be.key==="Enter"||Be.key===" ")&&(Be.preventDefault(),I())},[I]),$=r||null,Y=o.useMemo(()=>{if(!m)return null;const Be=p?(Array.isArray(p)?p:[p]).filter(Boolean):null,nt=Be&&Be.length>0?Be:x4($);return nt&&nt.length>0?nt:null},[m,p,$]),Q=o.useCallback(Be=>{Be.stopPropagation(),h?.()},[h]),X=o.useCallback(Be=>Be.stopPropagation(),[]),ie=o.useCallback(Be=>{typeof C=="function"&&C(Be)},[C]),be=c||(d&&r?.id!=null?d.has(String(r.id)):!1),ne=!be&&(u!=null&&r?.id!=null?u.has(String(r.id)):!1);tl("speechear.popup.close",W);const oe=pi(),V=`${a?.label||""} ${n+1}`,ae=$?.title||$?.name||V;let ue=a?.icon,ge,me="",re="";try{const Be=$?.category_0||$?.category_main_code||$?.category_main,nt=$?.category_1||$?.category_sub_code||$?.category_sub,Ge=oe.find(Xe=>Xe.key===Be);Ge?.icon&&(ue=Ge.icon),!ge&&Ge?.color&&(ge={"--t-item-fg":Ge.color}),!ge&&$?.iconColor&&(ge={"--t-item-fg":$.iconColor}),me=Ge?v(`topic.${Ge.key}`,{defaultValue:Ge.label||""}):"";try{const Xe=Ge?.subs?.find(De=>De.key===nt);re=Xe?v(`topic.sub.${Xe.key}`,{defaultValue:Xe.label||""}):""}catch{}}catch{}const he=re?`${me} / ${re}`:me||a?.label||ae,_e=Be=>v("training.countQuestions",{n:Be}),Me=Be=>v("training.countSentences",{n:Be});let Ue="";try{if($)if(a?.key==="LISTEN_IN_NOISE"){let Be=0;Array.isArray($.items)&&$.items.length>0?Be=$.items.length:Array.isArray($.sentences)&&$.sentences.length>0?Be=$.sentences.length:$.sentences&&(Be=1),Ue=Me(Be)}else if(a?.key==="SHORT_STORY"){let Be=1;Array.isArray(r?.items)?Be=r.items.length:Array.isArray(r?.raw&&r.raw?.items)?Be=r.raw.items.length:Array.isArray($?.questions)?Be=$.questions.length:Array.isArray($?.sentences)&&(Be=$.sentences.length),Ue=_e(Be)}else if(a?.key==="LONG_STORY"){let Be=1;if(Array.isArray($.items)&&$.items.length>0){const nt=$.items.reduce((Ge,Xe)=>{const De=Xe.questionItems;return Array.isArray(De)?Ge+De.length:Array.isArray(Xe.questions)?Ge+Xe.questions.length:Ge},0);Be=nt>0?nt:$.items.length}else Array.isArray($.questions)&&$.questions.length>0?Be=$.questions.length:Array.isArray($.sentences)&&$.sentences.length>0&&(Be=$.sentences.length);Ue=_e(Be)}else if(a?.key==="ORDERING_SENTENCE"){let Be=1;Array.isArray($.items)&&$.items.length>0?Be=$.items.length:Array.isArray($.sentences)&&$.sentences.length>0&&(Be=$.sentences.length),Ue=Me(Be)}else Array.isArray($.items)&&(Ue=$.items.length>0?_e($.items.length):"")}catch{}const Ie=_==="row",de=_==="list"||Ie,Ae=_==="compact",Re=_==="small",Pe=Re&&a?.key?IC().find(Be=>Be.key===a.key):void 0,we=Pe?mi[Pe.key]:void 0,Se=Pe?we?v(`trainingType.${we}.title`,{defaultValue:Pe.label}):Pe.label??"":"",Oe=!!y&&!!a?.label&&a.label!==String(ae)||Re&&!!Se&&Se!==String(ae);return t.jsxs(t.Fragment,{children:[t.jsxs("div",{ref:B,className:`training-block-button${de?" training-block-button--list":""}${Ie?" training-block-button--row":""}${Ae?" training-block-button--compact":""}${Re?" training-block-button--small":""}${be?" training-block-button--completed":""}${ne?" training-block-button--selected":""}${Oe&&!Re?" training-block-button--withType":""}${Re&&!Oe?" training-block-button--no-type-label":""}`,onClick:I,onPointerEnter:Z,onPointerLeave:U,role:"button",tabIndex:0,onKeyDown:O,"aria-label":typeof s=="string"?s:typeof ae=="string"?ae:void 0,title:!m&&p&&(Array.isArray(p)?p.filter(Boolean).join(`
|
|
853
|
-
`):p)||void 0,children:[t.jsxs("div",{className:"training-block-button__left",children:[y&&a?.label&&a.label!==String(ae)&&t.jsx("span",{className:"training-block-button__type-label caption-1",children:a.label}),Re&&Se&&Se!==String(ae)&&t.jsx("span",{className:"training-block-button__type-label caption-2",children:Se}),t.jsx(Tl,{icon:ue,label:ae,tooltip:he,wrapperStyle:ge,iconSize:Re||Ae?"small":"medium"}),!f&&(be||ne)&&!(h&&x)&&t.jsx(bt,{className:h?"training-block-button__check--removable":void 0,type:"dot",icon:"check",position:"top-left",size:"medium","aria-label":be?v("training.completed","\uD6C8\uB828 \uC644\uB8CC"):v("training.selected","\uC120\uD0DD\uB428")}),h&&t.jsx(bt,{className:`training-block-button__remove${x?" is-hover":""}`,type:"dot",icon:"remove",position:"top-left",size:"medium","aria-label":v("common.remove","\uC81C\uAC70"),onClick:Q}),t.jsx("div",{className:`training-block-button__title ${Ae?"body-3":Re?"body-3b":"h3"}`,children:String(ae)}),t.jsxs("div",{className:"training-block-button__description",children:[(()=>{const Be=g!==void 0?g:Ue;return Be?t.jsx("div",{className:`training-block-button__count ${Re?"caption-2":"caption-1"}`,children:Be}):null})(),t.jsx("div",{className:"training-block-button__chevron",children:t.jsx(Ze,{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:Re?12:20})})]}),(de&&!Ie||Re)&&H.length>0&&t.jsx("div",{ref:j,className:"training-block-button__preview","data-tooltip-ignore":!0,onClick:X,onPointerEnter:q,onPointerLeave:K,children:t.jsx(ce,{htmlType:"button",size:Re?28:32,type:"dot",icon:D?"pause":"play",variant:Re?"transparent-lightGray":"default",useBorder:!1,selected:D,ariaLabel:D?v("training.stop","\uC815\uC9C0"):v("training.preview","\uBBF8\uB9AC \uB4E3\uAE30"),onClick:S})})]}),b&&t.jsx("div",{className:"training-block-button__more","data-tooltip-ignore":!0,onClick:Be=>{Be.stopPropagation(),b(Be)},children:t.jsx(ce,{htmlType:"button",size:40,type:"dot",icon:"more-horizontal",variant:"transparent-lightGray",useBorder:!1,ariaLabel:v("common.more","\uB354\uBCF4\uAE30")})})]}),M&&t.jsx(vn,{anchorRect:L,text:D?v("training.stop","\uC815\uC9C0"):v("training.preview","\uBBF8\uB9AC \uB4E3\uAE30"),offset:8,onClose:K}),x&&!k&&m&&(Y?t.jsx(Vn,{anchorRect:F,items:Y,activeIndex:P,onClose:U}):$?.subTitle?t.jsx(vn,{anchorRect:F,text:$.subTitle,offset:8,onClose:U}):null),k&&l&&l({trainingData:$,typeKey:a?.key??"",onClose:W,onComplete:ie,popupTitle:String(ae),popupSubTitle:a?.subTitle,depth:i!=null?String(i):void 0,popupIcon:ue,popupIconTooltip:String(he),popupWrapperStyle:ge})]})}const Ml=200;function _4(e){return e.itemId?(VC()[e.trainingType]??[]).find(n=>n?.id!=null&&String(n.id)===String(e.itemId))??null:null}function Ll({plan:e,anchorRect:n,offset:a=12,onClose:r}){const{t:s}=Ce.useTranslation(),i=o.useMemo(()=>qC(s).map(c=>({type:c,items:(e.items??[]).filter(d=>d.trainingType===c.key)})).filter(c=>c.items.length>0),[e.items,s]);if(i.length===0)return null;const l=t.jsx("div",{className:"tooltip-training__box",children:t.jsx("div",{className:"tooltip-training__groups",children:i.flatMap(({type:c,items:d},u)=>[u>0?t.jsx("div",{className:"tooltip-training__divider"},`div-${c.key}`):null,t.jsxs("div",{className:"tooltip-training__section",children:[t.jsx("div",{className:"tooltip-training__section-header",children:t.jsx("span",{className:"tooltip-training__type-label body-3b",children:c.label})}),t.jsx("div",{className:"tooltip-training__items",children:d.map((p,m)=>{const h=_4(p);return h?t.jsx(oo,{index:m,type:c,trainingData:h,size:"compact",hideCheckBadge:!0},p.itemId??m):null})})]},c.key)])})});return n?t.jsx(rn,{anchorRect:n,offset:a,onClose:r,closeOnOutsideClick:!1,className:"tooltip-training",ariaLabel:s("tooltip.training","\uD6C8\uB828 \uC548\uB0B4"),children:l}):l}const w4=200;function A4({icon:e,count:n,title:a,plan:r,tooltip:s=!0,className:i="",onClick:l,onMouseEnter:c,onMouseLeave:d}){const u=Ee("count-tile",l&&"count-tile--clickable",i),p=o.useRef(null),[m,h]=o.useState(null),f=o.useRef(null),y=o.useRef(null),C=!!(m&&r&&s),w=o.useCallback(()=>{f.current&&(clearTimeout(f.current),f.current=null),y.current&&(clearTimeout(y.current),y.current=null)},[]),b=o.useCallback(()=>{w(),h(null)},[w]),g=o.useCallback(()=>{!s||!r||(w(),f.current=setTimeout(()=>{f.current=null,h(p.current?.getBoundingClientRect()??null)},Ml))},[s,r,w]),_=o.useCallback(()=>{f.current&&(clearTimeout(f.current),f.current=null),!y.current&&(y.current=setTimeout(()=>{y.current=null,h(null)},w4))},[]);return o.useEffect(()=>()=>{w()},[w]),o.useEffect(()=>{(!s||!r)&&b()},[s,r,b]),o.useEffect(()=>{if(!C)return;const v=A=>A instanceof Element&&(p.current?.contains(A)||!!A.closest(".tooltip-training")),k=A=>{v(A.target)?w():_()};return document.addEventListener("pointerover",k,!0),()=>document.removeEventListener("pointerover",k,!0)},[C,w,_]),t.jsxs(t.Fragment,{children:[t.jsxs("div",{ref:p,className:u,onClick:l?v=>{b(),l(v)}:void 0,onKeyDown:l?v=>{v.key!=="Enter"&&v.key!==" "||(v.preventDefault(),v.currentTarget.click())}:void 0,onPointerEnter:v=>{v.pointerType==="touch"||v.pointerType==="pen"?b():g()},onMouseEnter:c,onMouseLeave:v=>{_(),d?.(v)},role:l?"button":"img",tabIndex:l?0:void 0,"aria-label":`${a} ${n}`,children:[t.jsx(Ze,{icon:e,size:20,className:"count-tile__icon"}),t.jsx("span",{className:"count-tile__count h5","aria-hidden":"true",children:n})]}),m&&r&&t.jsx(Ll,{plan:r,anchorRect:m,onClose:b})]})}let Sa=0,$l="",so="",ja=0;function Rl(){return Pl(!1)}function k4(){return Pl(!0)}function Pl(e){const n=typeof document<"u";Sa===0&&n&&($l=document.body.style.overflow,document.body.style.overflow="hidden"),e&&n&&(ja===0&&(so=document.body.style.paddingRight),ja++,document.body.style.paddingRight="0px"),Sa++;let a=!1;return()=>{a||(a=!0,Sa=Math.max(0,Sa-1),e&&n&&(ja=Math.max(0,ja-1),ja===0&&(so?document.body.style.paddingRight=so:document.body.style.removeProperty("padding-right"))),Sa===0&&n&&(document.body.style.overflow=$l))}}function B4(){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 N4({open:e,onClose:n,ariaLabel:a,title:r,children:s,size:i="md",closeOnBackdrop:l=!0,closeOnEscape:c=!0,showClose:d=!0,className:u,contentClassName:p}){const{t:m}=Ce.useTranslation(),h=o.useId(),f=o.useRef(null),y=o.useCallback(()=>n(),[n]);o.useEffect(()=>{if(!e)return;const g=document.activeElement,_=Rl(),v=f.current;return zr(v,g),v?.focus(),()=>{_();const k=document.activeElement;(!k||k===document.body||v&&v.contains(k))&&Vr(g)?.focus?.()}},[e]);const C=o.useRef(y),w=o.useRef(c);o.useEffect(()=>{C.current=y,w.current=c}),o.useEffect(()=>{if(e)return zn(()=>{w.current&&C.current()})},[e]);const b=o.useRef(!1);return Or(f,e),!e||typeof document>"u"?null:Xt.createPortal(t.jsx("div",{className:Ee("dialog",u),onPointerDown:l?g=>{b.current=g.target===g.currentTarget}:void 0,onMouseDown:g=>{g.target===g.currentTarget&&g.preventDefault()},onClick:l?g=>{const _=b.current;b.current=!1,_&&g.target===g.currentTarget&&y()}:void 0,children:t.jsxs("div",{ref:f,role:"dialog","aria-modal":"true","aria-label":r?void 0:a,"aria-labelledby":r?h:void 0,tabIndex:-1,className:Ee("dialog__surface",`dialog__surface--${i}`,p),onClick:g=>g.stopPropagation(),children:[r?t.jsx("div",{className:"dialog__header",children:t.jsx("h2",{id:h,className:"dialog__title h4b",children:r})}):null,d?t.jsx("button",{type:"button",className:"dialog__close","aria-label":m("common.close","\uB2EB\uAE30"),onClick:y,children:t.jsx(B4,{})}):null,t.jsx("div",{className:"dialog__body",children:s})]})}),document.body)}function E4({columns:e,rows:n,rowKey:a,title:r,toolbar:s,empty:i,loading:l,caption:c,className:d=""}){const{t:u}=Ce.useTranslation(),p=!l&&n.length===0;return t.jsxs("div",{className:Ee("board",d),children:[r||s?t.jsxs("div",{className:"board__head",children:[r?t.jsx("h2",{className:"board__title",children:r}):t.jsx("span",{}),s?t.jsx("div",{className:"board__toolbar",children:s}):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(m=>t.jsx("th",{scope:"col",className:Ee("board__th",`board__cell--${m.headerAlign??m.align??"left"}`),style:m.width?{width:m.width}:void 0,children:m.header},m.key))})}),t.jsx("tbody",{children:l?t.jsx("tr",{children:t.jsx("td",{className:"board__state",colSpan:e.length,children:l})}):p?t.jsx("tr",{children:t.jsx("td",{className:"board__state",colSpan:e.length,children:i??u("board.empty","\uB4F1\uB85D\uB41C \uD56D\uBAA9\uC774 \uC5C6\uC2B5\uB2C8\uB2E4.")})}):n.map((m,h)=>t.jsx("tr",{className:"board__row",children:e.map(f=>t.jsx("td",{className:Ee("board__td",`board__cell--${f.align??"left"}`),children:f.render(m,h)},f.key))},a(m,h)))})]})]})}function D4({name:e,role:n,photo:a,media:r,credentials:s,size:i=190,className:l=""}){return t.jsxs("div",{className:Ee("person-card",l),children:[t.jsx("div",{className:"person-card__photo",style:{width:i,height:i},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,s?.length?t.jsx("ul",{className:"person-card__credentials",children:s.map(c=>t.jsx("li",{children:c},c))}):null]})}function S4({groups:e,className:n=""}){return t.jsx("div",{className:Ee("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,s)=>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((i,l)=>t.jsx("p",{children:i},l))})]},`${r.label??""}-${s}`))})]},a.title))})}function j4({title:e,kind:n,body:a,badge:r,badgeSrc:s,footer:i,width:l,className:c=""}){const d=r??(s?t.jsx("img",{src:s,alt:""}):null);return t.jsxs("div",{className:Ee("publication-card",c),style:l?{width:l,flexShrink:0}:void 0,children:[d?t.jsx("div",{className:"publication-card__badge","aria-hidden":"true",children:d}):null,t.jsx("h3",{className:"publication-card__title",children:e}),n?t.jsx("p",{className:"publication-card__kind",children:n}):null,t.jsx("p",{className:"publication-card__body",children:a}),i?t.jsx("div",{className:"publication-card__footer",children:i}):null]})}function T4({logo:e,alt:n,onDone:a,durationMs:r=3e3}){const s=xa(a);return o.useEffect(()=>{const i=setTimeout(()=>s.current?.(),r);return()=>clearTimeout(i)},[r,s]),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 M4({eyebrow:e,eyebrowIndex:n,title:a,description:r,level:s=2,tone:i="dark",className:l=""}){const c=s===1?"h1":"h2";return t.jsxs("div",{className:Ee("section-header",`section-header--${i}`,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 L4({items:e,className:n=""}){return t.jsx("ul",{className:Ee("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 Il({value:e,onChange:n,suggestions:a,openOnFocus:r=!1}){const s=o.useId(),[i,l]=o.useState(!1),[c,d]=o.useState(-1),u=o.useRef(null),p=o.useMemo(()=>{if(!a.length)return[];const B=e??"";return B?a.filter(x=>x.toLowerCase().includes(B.toLowerCase())):r?a:[]},[a,e,r]),[m,h]=o.useState(!1),f=o.useRef([]),y=m&&p.length===0?f.current:p;o.useEffect(()=>{y.length&&(f.current=y)},[y]);const C=o.useCallback(()=>h(!0),[]),w=o.useCallback(()=>h(!1),[]);o.useEffect(()=>{i||d(-1)},[i]),o.useEffect(()=>()=>{u.current&&clearTimeout(u.current)},[]);const b=c<y.length?c:-1,g=o.useCallback(B=>{n?.(B),l(!1)},[n]),_=o.useCallback(()=>l(!0),[]),v=o.useCallback(()=>{l(!0),d(-1)},[]),k=o.useCallback(()=>{u.current=setTimeout(()=>l(!1),120)},[]),A=o.useCallback(B=>{B.nativeEvent.isComposing||B.keyCode===229||(B.key==="ArrowDown"?(B.preventDefault(),l(!0),d(x=>Math.min(y.length-1,(x<y.length?x:-1)+1))):B.key==="ArrowUp"?(B.preventDefault(),d(x=>Math.max(-1,(x<y.length?x:y.length)-1))):B.key==="Enter"?b>=0&&g(y[b]):B.key==="Escape"&&i&&(B.preventDefault(),l(!1)))},[y,b,i,g]);return{listId:s,open:i,activeIdx:b,filtered:y,handleFocus:_,handleBlur:k,handleInput:v,handleKeyDown:A,handleSelect:g,handleCompositionStart:C,handleCompositionEnd:w}}const io=typeof window<"u"?o.useLayoutEffect:o.useEffect;function Un(e){const{value:n,defaultValue:a,name:r,inputRef:s,onChange:i,label:l,ariaLabel:c,required:d,placeholder:u,ghostText:p,ghostHint:m,type:h="text",disabled:f=!1,readOnly:y=!1,error:C,helperText:w,maxLength:b,size:g=48,variant:_="input",fullWidth:v=!1,newline:k=!1,multiline:A=!1,rows:B=3,leftIcon:x,rightIcon:N,clearable:D=!1,list:P,showCount:H=!0,className:M="",onFocus:z,onBlur:j,onKeyDown:S,onEnter:I,inputMode:W,autoComplete:Z,autoFocus:U,suggestions:q,openOnFocus:K=!1}=e,L=y||f?void 0:q,{t:E}=Ce.useTranslation(),F=o.useId();!l&&!c&&bn(`TextField:unnamed:${F}`,"[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 R=`tf-${F}`,O=`tf-helper-${F}`,$=o.useRef(null),Y=Il({value:n??"",onChange:i,suggestions:L??[],openOnFocus:K}),Q=!!L&&Y.open&&Y.filtered.length>0,X=o.useRef(null),[ie,be]=o.useState(null),ne=o.useCallback(()=>{const we=X.current;if(!we||typeof window>"u")return;const Se=we.getBoundingClientRect(),Oe=230,Be=window.innerHeight-Se.bottom<Oe+8&&Se.top>Oe+8;be({position:"fixed",left:Se.left,width:Se.width,...Be?{bottom:window.innerHeight-Se.top+8}:{top:Se.bottom+8},zIndex:Aa(we)})},[]);io(()=>{if(!Q)return;ne();const we=Se=>{const Oe=Se.target;Oe&&Oe.nodeType===1&&Oe.closest?.(".text-field__suggestions")||ne()};return window.addEventListener("scroll",we,!0),window.addEventListener("resize",ne),()=>{window.removeEventListener("scroll",we,!0),window.removeEventListener("resize",ne)}},[Q,ne]);const oe=o.useCallback(we=>{$.current=we,typeof s=="function"?s(we):s&&(s.current=we)},[s]),V=p?`${p}${m??E("wordTable.save.autoFillHint"," (Tab \uB610\uB294 space \uC785\uB825\uC2DC \uC790\uB3D9 \uC785\uB825)")}`:u,ae=n!==void 0,ue=ae&&h==="password",[ge,me]=o.useState((a??"").length),re=ae?(n??"").length:ge,he=o.useRef(n);io(()=>{he.current=n}),o.useEffect(()=>{const we=$.current;if(!ue||!we)return;const Se=n??"";we.value!==Se&&(we.value=Se)},[ue,n]),o.useEffect(()=>{if(!k||!$.current)return;const we=$.current;we.style.height="",we.scrollHeight>we.clientHeight&&(we.style.height=`${we.scrollHeight}px`)},[n,ge,k]);const _e=b!=null&&re>b,Me=g===32?16:20,Ue=Ee("text-field",`text-field--s${g}`,_==="display"?"text-field--display":"",v?"text-field--full-width":"",f?"text-field--disabled":"",y?"text-field--readonly":"",C?"text-field--error":"",x?"text-field--has-left-icon":"",N||D?"text-field--has-right-icon":"",M),Ie={id:R,...ue?{}:ae?{value:n}:{defaultValue:a},ref:oe,placeholder:V,name:r,disabled:f,readOnly:y,autoFocus:U,maxLength:b,list:P,inputMode:W,autoComplete:Z,"aria-label":!l&&c?c:void 0,"aria-required":d,"aria-invalid":!!C,"aria-describedby":w||C?O:void 0,role:L?"combobox":void 0,"aria-autocomplete":L?"list":void 0,"aria-haspopup":L?"listbox":void 0,"aria-expanded":L?Y.open:void 0,"aria-controls":Q?Y.listId:void 0,"aria-activedescendant":Q&&Y.activeIdx>=0?`${Y.listId}-option-${Y.activeIdx}`:void 0,onChange:we=>{const Se=we.target;ae||me(Se.value.length),i?.(Se.value),L&&Y.handleInput(),ue&&queueMicrotask(()=>{const Oe=he.current??"";Se.value!==Oe&&(Se.value=Oe)})},onCompositionStart:L?Y.handleCompositionStart:void 0,onCompositionEnd:L?Y.handleCompositionEnd:void 0,onFocus:(we=>{z?.(we),L&&Y.handleFocus()}),onBlur:(we=>{j?.(we),L&&Y.handleBlur()}),onKeyDown:(we=>{const Se=(we.key==="Tab"&&!we.shiftKey||we.key===" ")&&!we.nativeEvent.isComposing;if(p&&Se&&!y&&!f&&!(we.currentTarget.value??"").trim()){we.preventDefault();const Oe=we.currentTarget;ae||(Oe.value=p,me(p.length)),i?.(p);return}L&&we.key==="Enter"&&!we.nativeEvent.isComposing&&Y.activeIdx>=0?we.preventDefault():I&&we.key==="Enter"&&!we.nativeEvent.isComposing&&(we.preventDefault(),I()),S?.(we),L&&Y.handleKeyDown(we)})},de=D&&!f&&!y&&re>0,Ae=()=>k?t.jsx("textarea",{...Ie,className:"text-field__input text-field__input--auto body-2",rows:1}):A?t.jsx("textarea",{...Ie,className:"text-field__input text-field__input--textarea body-2",rows:B}):t.jsx("input",{...Ie,type:h,className:"text-field__input body-2"}),Re=_==="display"&&!k&&!A&&!!V,Pe=()=>t.jsxs(t.Fragment,{children:[Ae(),Re&&t.jsx("span",{className:"text-field__placeholder","aria-hidden":"true",children:V})]});return t.jsxs("div",{ref:X,className:Ue,children:[l&&t.jsxs("label",{htmlFor:R,className:"text-field__label caption-1",children:[l,d&&t.jsx("span",{className:"text-field__required",children:"*"})]}),t.jsxs("div",{className:"text-field__wrap",children:[x&&t.jsx("span",{className:"text-field__icon text-field__icon--left",children:t.jsx(Ze,{icon:x,label:"",className:"",svgClassName:"text-field__icon-svg",size:Me})}),Pe(),b!=null&&H&&t.jsxs("span",{className:`text-field__count caption-2${_e?" text-field__count--over":""}`,children:[re,"/",b]}),de&&t.jsx(ce,{size:24,type:"dot",icon:"x",variant:"transparent-gray",useBorder:!1,className:"text-field__clear",ariaLabel:E("textField.clearAriaLabel","\uC785\uB825\uAC12 \uC9C0\uC6B0\uAE30"),htmlType:"button",onMouseDown:we=>{we.preventDefault()},onClick:()=>{!ae&&$.current&&($.current.value="",me(0)),i?.("")},tabIndex:-1}),N&&!de&&t.jsx("span",{className:"text-field__icon text-field__icon--right",children:t.jsx(Ze,{icon:N,label:"",className:"",svgClassName:"text-field__icon-svg",size:Me})})]}),Q&&(typeof document>"u"?null:Xt.createPortal(t.jsx("ul",{id:Y.listId,className:"text-field__suggestions",role:"listbox",style:ie??{position:"fixed",visibility:"hidden"},"data-tooltip-ignore":!0,children:Y.filtered.map((we,Se)=>t.jsx("li",{id:`${Y.listId}-option-${Se}`,role:"option","aria-selected":Se===Y.activeIdx,className:`text-field__suggestion body-2${Se===Y.activeIdx?" is-active":""}`,onMouseDown:Oe=>Oe.preventDefault(),onClick:()=>{Y.handleSelect(we),$.current?.focus()},children:we},`${we}-${Se}`))}),document.body)),(w||C)&&t.jsx("div",{className:"text-field__footer",children:t.jsx("span",{id:O,className:"text-field__helper caption-1",role:C?"alert":void 0,children:C||w})})]})}function sn({options:e,value:n,onChange:a,placeholder:r,disabled:s=!1,block:i=!1,size:l=48,error:c=!1,className:d="",ariaLabel:u,ariaDescribedBy:p}){const{t:m}=Ce.useTranslation(),h=r??m("dropdown.placeholder","\uC120\uD0DD"),f=o.useId(),y=o.useId(),C=o.useRef(null),w=o.useCallback((j,S)=>{const I=window.innerHeight-j.bottom<260&&j.top>260;return{position:"fixed",left:j.left,minWidth:j.width,...I?{bottom:window.innerHeight-j.top+6}:{top:j.bottom+6},zIndex:Aa(S)}},[]),{open:b,setOpen:g,toggle:_,style:v,triggerRef:k,menuRef:A}=ka({computeStyle:w}),[B,x]=o.useState(-1),N=o.useCallback(()=>x(-1),[]),D=e.find(j=>j.value===n);o.useEffect(()=>{if(b){const j=e.findIndex(S=>S.value===n);x(j>=0?j:e.length?0:-1),requestAnimationFrame(()=>{const S=A.current;if(!S)return;const I=S.querySelectorAll(".dropdown__option")[j];I&&(S.scrollTop=Math.max(0,I.offsetTop-S.clientHeight/2+I.clientHeight/2))})}},[b]),o.useEffect(()=>{b&&x(j=>{if(j>=0&&j<e.length)return j;const S=e.findIndex(I=>I.value===n);return S>=0?S:e.length?0:-1})},[b,e.length]);const P=o.useCallback(()=>{s||_()},[s,_]),H=o.useCallback(j=>{j.disabled||s||(j.value!==n&&a?.(j.value),g(!1))},[a,g,s,n]);o.useEffect(()=>{s&&g(!1)},[s,g]);const M=o.useCallback(j=>{if(!s){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(S=>{let I=S+1;for(;I<e.length&&e[I].disabled;)I++;return I<e.length?I:S})):j.key==="ArrowUp"?(j.preventDefault(),x(S=>{let I=S-1;for(;I>=0&&e[I].disabled;)I--;return I>=0?I:S})):(j.key==="Enter"||j.key===" ")&&(j.preventDefault(),e[B]?H(e[B]):g(!1))}},[s,b,e,B,H,g]),z=b?t.jsx("div",{ref:A,id:f,className:"dropdown__menu","data-tooltip-ignore":!0,role:"listbox",style:v,onMouseLeave:N,onMouseDown:j=>j.preventDefault(),children:e.map((j,S)=>t.jsxs("button",{id:`${f}-option-${S}`,type:"button",role:"option","aria-selected":j.value===n,className:Ee("dropdown__option body-2",j.value===n?"dropdown__option--active":"",S===B?"dropdown__option--active":"",j.disabled?"dropdown__option--disabled":""),onMouseDown:I=>I.preventDefault(),onClick:()=>H(j),onMouseEnter:()=>x(S),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:C,className:Ee("dropdown",`dropdown--s${l}`,b?"dropdown--open":"",i?"dropdown--block":"",c?"dropdown--error":"",d),onKeyDown:M,children:[t.jsxs("button",{ref:k,type:"button",className:"dropdown__trigger","aria-haspopup":"listbox","aria-expanded":b,"aria-controls":b?f:void 0,"aria-activedescendant":b&&B>=0?`${f}-option-${B}`:void 0,"aria-label":u,"aria-describedby":[u&&D?y:"",p??""].filter(Boolean).join(" ")||void 0,"aria-invalid":c||void 0,disabled:s,onClick:P,onBlur:j=>{b&&!A.current?.contains(j.relatedTarget)&&g(!1)},children:[t.jsx("span",{id:y,className:`dropdown__trigger-label body-2${D?"":" dropdown__trigger-label--placeholder"}`,children:D?D.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"&&Xt.createPortal(z,C.current?.closest(".ihabdevteam-core-scope")??document.body)]})}function Qa({page:e,totalPages:n,onChange:a,prevLabel:r,nextLabel:s,className:i=""}){const{t:l}=Ce.useTranslation(),c=r??l("common.prevPage","\uC774\uC804 \uD398\uC774\uC9C0"),d=s??l("common.nextPage","\uB2E4\uC74C \uD398\uC774\uC9C0"),u=Math.max(1,n),p=()=>a(Math.max(1,Math.min(u,e-1))),m=()=>a(Math.min(u,e+1));return t.jsxs("div",{className:Ee("pagination",i),children:[t.jsx(ce,{htmlType:"button",size:32,type:"dot",shape:"rounded",icon:"chevron-left",ariaLabel:c,disabled:e<=1,onClick:p}),t.jsxs("span",{className:"pagination__info body-3","aria-live":"polite","aria-atomic":"true",children:[Math.min(Math.max(1,e),u)," / ",u]}),t.jsx(ce,{htmlType:"button",size:32,type:"dot",shape:"rounded",icon:"chevron-right",ariaLabel:d,disabled:e>=n,onClick:m})]})}function An(e){const{t:n}=Ce.useTranslation(),{options:a=[],value:r=a.find(g=>!g.disabled)?.key??a[0]?.key,onChange:s=g=>{},className:i="",size:l=40,shape:c="pill",useBG:d=!0,fullWidth:u=!1,minButtonWidth:p,ariaLabel:m}=e||{},h=o.useRef(null),f=a.filter(g=>!g.disabled),y=g=>{if(!f.length)return;const _=Math.max(0,f.findIndex(k=>k.key===r)),v=g==="first"?f[0]:g==="last"?f[f.length-1]:f[(_+g+f.length)%f.length];v&&(s(v.key),Array.from(h.current?.querySelectorAll("[data-segkey]")??[]).find(k=>k.dataset.segkey===v.key)?.focus())},C=g=>{switch(g.key){case"ArrowRight":case"ArrowDown":y(1);break;case"ArrowLeft":case"ArrowUp":y(-1);break;case"Home":y("first");break;case"End":y("last");break;default:return}g.preventDefault()},w=g=>{const _=v=>typeof v=="string"||typeof v=="number";if(!(!_(g.label)||g.count==null||g.count===!1||!_(g.count)))return`${g.label}, ${g.count}`},b=f.some(g=>g.key===r)?r:f[0]?.key;return t.jsx("div",{ref:h,onKeyDown:C,className:Ee("segmented-control",`segmented-control--${c}`,`segmented-control--${l}`,u&&"segmented-control--full",!d&&"segmented-control--no-bg",p!=null&&"segmented-control--min",i),style:p!=null?{"--segmented-min-button-w":`${p}px`}:void 0,role:"radiogroup","aria-label":m??n("segmentedControl.ariaLabel","\uC120\uD0DD \uD0ED"),children:a.map(g=>t.jsx(ce,{htmlType:"button",role:"radio","aria-checked":g.key===r,"data-segkey":g.key,tabIndex:g.key===b?0:-1,label:g.label,count:g.count,ariaLabel:w(g),disabled:g.disabled,className:g.key===r?"is-selected":"",onClick:()=>{g.disabled||s(g.key)},size:l,shape:c,useBorder:!1,useBG:!1},g.key))})}function lo({count:e,search:n,segment:a,filters:r,pageSize:s,pagination:i,actions:l,className:c}){const{t:d}=Ce.useTranslation(),u=e!=null&&t.jsxs("p",{className:"toolbar__count body-1",role:"status","aria-atomic":"true",children:[e.prefix??d("common.totalPrefix","\uCD1D "),t.jsx("span",{className:"toolbar__count-highlight",children:e.value}),e.unit,e.suffix]}),p=!!(n||r?.length||s||i||l);return t.jsxs("div",{className:Ee("toolbar",c),children:[t.jsxs("div",{className:"toolbar__row",children:[u,a&&(Array.isArray(a)?a:[a]).map((m,h)=>t.jsx(An,{size:40,...m},m.ariaLabel??h))]}),p&&t.jsx("div",{className:"toolbar__row",children:t.jsxs("div",{className:"toolbar__row-end",children:[n&&t.jsx(Un,{className:"toolbar__search",size:40,value:n.value,onChange:n.onChange,placeholder:n.placeholder??d("common.search","\uAC80\uC0C9"),ariaLabel:n.placeholder??d("common.search","\uAC80\uC0C9"),autoFocus:n.autoFocus,clearable:!0}),r?.map((m,h)=>t.jsx(sn,{size:40,options:m.options,value:m.value,onChange:m.onChange,ariaLabel:m.ariaLabel},h)),(s||i)&&t.jsxs("div",{className:"toolbar__pager",children:[s&&t.jsx(sn,{size:40,options:s.options,value:s.value,onChange:s.onChange,ariaLabel:s.ariaLabel??d("common.pageSizeSelect","\uD398\uC774\uC9C0\uB2F9 \uD45C\uC2DC \uAC1C\uC218")}),i&&t.jsx(Qa,{page:i.page,totalPages:i.total,onChange:i.onChange,prevLabel:i.prevLabel,nextLabel:i.nextLabel})]}),l]})})]})}function Fl(e){return typeof e=="string"?e:typeof e=="number"?String(e):Array.isArray(e)?e.map(Fl).join(""):""}function $4(e){let n=e.replace(/\r\n/g,`
|
|
851
|
+
and aids recovery.`,site:{title:"Site",malgwi:"Malgwi",soundDirection:"Sound Direction System",vrSoundDirection:"VR Sound Direction System",hearingTest:"Hearing Test Pro"},sns:{title:"SNS",naverBlog:"Naver Blog",kakao:"KAKAO Talk Open Chat"},policy:{title:"Policy",terms:"Terms of Service",privacy:"Privacy Policy"},ceo:"CEO",address:"Address",support:"Support",ceoName:"Ji-hye Han",addressValue:"302, 3F, Haechan Bldg, 32 Siocheong-gil, Chuncheon, Gangwon, Korea"},ig={trainingPhone:{topic:"Gardening",prev:"Prev",next:"Next",speed:"Speed 3",noiseType:"Crowd noise",settings:"Settings",start:{caption:"Press the play (\u25B6) button below and listen carefully. After listening, check the sentence."},feedback:{caption:"Plant the well-grown seedlings in the garden bed and cover them carefully with plastic film."},done:{heardWell:"Heard clearly",listenAgain:"Listen again"}}},lg={timeHM:"{{hh}}:{{mm}}",timeH:"{{hh}}:{{mm}}"},ug={options:"Training Options",difficulty:"Difficulty",exclude:"Exclude",chosung:"Initial Consonant",excludeOptions:{none:"None",noImage:"No Image"}},cg={answer:"Answer",distractor:"Distractor"},dg={phaseWordDownload:"Download Word Data",phaseImageCheck:"Check Images",phasePairAnalysis:"Analyze Word Pairs",downloadingCount:"Downloading {{n}} words",checkingPage:"Checking page {{page}} list",imageCount:"{{done}} / {{total}} items"},pg={clearAriaLabel:"Clear input"},mg={ariaLabel:"Select tab"},hg={ariaLabel:"Tabs"},Cg={dragPrompt:"Drag and drop files here",browseButton:"Choose Files",removeAriaLabel:"Remove {{name}}"},fg={ariaLabel:"User avatar"},gg={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"}},bg={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"}},yg={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)"}},vg={manage:{unit:"item(s)"}},xg={cancelLabel:"Cancel"},_g={subtitle:"Select a topic to start listening practice."},wg={steps:"Step {{current}} of {{total}}"},Ag={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"},kg={resetColumns:"Reset column widths"},Bg={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}}"},Ng={ariaLabel:"Banner",dotAriaLabel:"Banner {{index}} of {{count}}"},Eg={selectYearMonth:"Select year and month",chooseDate:"Choose a date"},Dg={previewRegion:"Report preview \u2014 scrollable sideways"},Sg={description:"Description",textbox:"Text",training:"Training guide",menu:"Menu"},jg={devNone:"No acquisition data",place:{labial:"Bilabial",alveolar:"Alveolar",palatal:"Palatal",velar:"Velar",glottal:"Glottal"}},Tg={clearSelection:"Clear selection"},Mg={showResult:"Show {{type}} result"},Lg={selected:"Selected",remove:"Remove",exclude:"Excluded",nthSelected:"Selection {{n}}"},$g={loading:"Loading"},Rg={state:{active:"playing",played:"heard",correct:"correct",wrong:"wrong"}},Pg={ariaLabel:"Breadcrumb"},Ig={empty:"No items yet."},Fg={main:"Main gradient",soft:"Soft",sub:"Sub color",deep:"Deep gradient",softSub:"Soft sub",warm:"Warm (accent)",dark:"Dark",radial:"Radial gradient",diagonal:"Diagonal pattern",dots:"Dot pattern",outline:"Outline",success:"Success / done",naver:"Naver blog notice",instagram:"Instagram notice"},Og={common:kf,calendar:Bf,passCard:Nf,searchField:Ef,rating:Df,colorPicker:Sf,dropdown:jf,accordion:Tf,header:Mf,nav:Lf,settings:$f,usage:Rf,account:Pf,help:If,training:Ff,trainingSettings:Of,customers:Hf,payment:zf,coupons:Vf,visits:Wf,company:qf,trainingType:Uf,myWordTraining:Gf,myWordTable:Kf,keyWords:Yf,wordTable:Zf,wordSearch:Xf,wordPrint:Jf,topic:Qf,accessLinkManager:eg,login:tg,device:ng,manager:ag,wordPairs:rg,game:og,footer:sg,landing:ig,date:lg,trainingSetPage:ug,wordTrainingPreview:cg,wordData:dg,textField:pg,segmentedControl:mg,tabs:hg,fileUpload:Cg,avatar:fg,myHomework:gg,trainingStatus:bg,store:yg,homework:vg,inquiry:xg,trainingPlanRun:_g,progress:wg,trainingMiss:Ag,table:kg,wordScore:Bg,topBanner:Ng,datePicker:Eg,report:Dg,tooltip:Sg,phonemeProfile:jg,bulkBar:Tg,debug:Mg,badge:Lg,loader:$g,soundCompass:Rg,breadcrumb:Pg,board:Ig,promoBannerBg:Fg};const Hg=[{code:"ko",label:"\uD55C\uAD6D\uC5B4"},{code:"en",label:"English"}],Gr="ko",zg="ihab_display_language";function wi(){if(typeof window>"u")return Gr;try{const e=localStorage.getItem(zg);if(e&&Hg.some(n=>n.code===e))return e}catch{}return Gr}function Ai(e){try{document.documentElement.lang=e}catch{}}Dt.on("languageChanged",Ai),Ai(wi()),Dt.use(Ce.initReactI18next).init({resources:{ko:{translation:Af},en:{translation:Og}},lng:wi(),fallbackLng:Gr,interpolation:{escapeValue:!1},react:{useSuspense:!1}});function gt(e,n,a){const r=o.useRef(null);return o.useLayoutEffect(()=>{const s=r.current?.parentElement??null;return n(s,e),()=>a(s)},[e,n,a]),r}const _a={title:"--promo-banner-bg-title",description:"--promo-banner-bg-description"},Kr=new WeakMap;function Yr(e){if(e)return Kr.get(e)}function It(e,n){e&&(e.style.setProperty(_a.title,n.title),e.style.setProperty(_a.description,n.description),Kr.set(e,n))}function Ft(e){e&&(e.style.removeProperty(_a.title),e.style.removeProperty(_a.description),Kr.delete(e))}const ki={title:"#ffffff",description:"rgba(255, 255, 255, 0.85)",actionVariant:"default"};function Bi(){const e=gt(ki,It,Ft);return t.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-main","aria-hidden":"true"})}const Ni={title:"var(--color-main)",description:"var(--color-gray)",actionVariant:"main"};function Ei(){const e=gt(Ni,It,Ft);return t.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-soft","aria-hidden":"true"})}const Di={title:"#ffffff",description:"rgba(255, 255, 255, 0.85)",actionVariant:"main"};function Si(){const e=gt(Di,It,Ft);return t.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-sub","aria-hidden":"true"})}const ji={title:"#ffffff",description:"rgba(255, 255, 255, 0.85)",actionVariant:"main"};function Ti(){const e=gt(ji,It,Ft);return t.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-deep","aria-hidden":"true"})}const Mi={title:"var(--color-darkSub)",description:"var(--color-gray)",actionVariant:"main"};function Li(){const e=gt(Mi,It,Ft);return t.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-soft-sub","aria-hidden":"true"})}const $i={title:"var(--color-black)",description:"var(--color-darkGray)",actionVariant:"main"};function Ri(){const e=gt($i,It,Ft);return t.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-warm","aria-hidden":"true"})}const Pi={title:"var(--color-white)",description:"var(--color-lightGray)",actionVariant:"main"};function Ii(){const e=gt(Pi,It,Ft);return t.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-dark","aria-hidden":"true"})}const Fi={title:"#ffffff",description:"rgba(255, 255, 255, 0.85)",actionVariant:"main"};function Oi(){const e=gt(Fi,It,Ft);return t.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-radial","aria-hidden":"true"})}const Hi={title:"var(--color-darkMain)",description:"var(--color-gray)",actionVariant:"main"};function zi(){const e=gt(Hi,It,Ft);return t.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-diagonal","aria-hidden":"true"})}const Vi={title:"var(--color-darkSub)",description:"var(--color-gray)",actionVariant:"main"};function Wi(){const e=gt(Vi,It,Ft);return t.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-dots","aria-hidden":"true"})}const qi={title:"var(--color-black)",description:"var(--color-gray)",actionVariant:"main"};function Ui(){const e=gt(qi,It,Ft);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 Gi={title:"#ffffff",description:"rgba(255, 255, 255, 0.85)",actionVariant:"main"};function Ki(){const e=gt(Gi,It,Ft);return t.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-success","aria-hidden":"true"})}const Yi={title:"#ffffff",description:"rgba(255, 255, 255, 0.85)",actionVariant:"sub"};function Zi(){const e=gt(Yi,It,Ft);return t.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-naver","aria-hidden":"true"})}const Xi={title:"#ffffff",description:"rgba(255, 255, 255, 0.85)",actionVariant:"transparent-white"};function Ji(){const e=gt(Xi,It,Ft);return t.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-instagram","aria-hidden":"true"})}const Kt=(e,n,a)=>({key:e,get label(){return Dt.t(`promoBannerBg.${e}`,n)},textTone:a}),Vg=[Kt("main","\uBA54\uC778 \uADF8\uB77C\uB514\uC5B8\uD2B8","light"),Kt("soft","\uC18C\uD504\uD2B8","dark"),Kt("sub","\uC11C\uBE0C \uCEEC\uB7EC","light"),Kt("deep","\uB525 \uADF8\uB77C\uB514\uC5B8\uD2B8","light"),Kt("softSub","\uC18C\uD504\uD2B8 \uC11C\uBE0C","dark"),Kt("warm","\uC6DC(\uAC15\uC870)","dark"),Kt("dark","\uB2E4\uD06C","light"),Kt("radial","\uBC29\uC0AC\uD615 \uADF8\uB77C\uB514\uC5B8\uD2B8","light"),Kt("diagonal","\uB300\uAC01\uC120 \uD328\uD134","dark"),Kt("dots","\uB3C4\uD2B8 \uD328\uD134","dark"),Kt("outline","\uC544\uC6C3\uB77C\uC778","dark"),Kt("success","\uC131\uACF5/\uC644\uB8CC","light"),Kt("naver","\uB124\uC774\uBC84 \uBE14\uB85C\uADF8 \uC548\uB0B4","light"),Kt("instagram","\uC778\uC2A4\uD0C0\uADF8\uB7A8 \uC548\uB0B4","light")],Qi={main:Bi,soft:Ei,sub:Si,deep:Ti,softSub:Li,warm:Ri,dark:Ii,radial:Oi,diagonal:zi,dots:Wi,outline:Ui,success:Ki,naver:Zi,instagram:Ji};function el({storageKey:e="fontScale",baseFont:n=20,minScale:a=.8,maxScale:r=1.4,step:s=.1,lineHeightRatio:i=1.4}={}){const l=_=>Math.max(a,Math.min(r,Number(_))),u=_=>{try{const v=localStorage.getItem(_),k=v?Number(v):1;return Number.isFinite(k)?l(k):l(1)}catch{return l(1)}},[d,c]=o.useState(()=>u(e)),[p,m]=o.useState(e);p!==e&&(m(e),c(u(e))),o.useEffect(()=>{try{localStorage.setItem(e,String(d))}catch{}},[e,d]);const h=_=>{c(typeof _=="function"?v=>l(_(v)):l(_))},g=()=>h(_=>+(_+s).toFixed(6)),y=()=>h(_=>+(_-s).toFixed(6)),C=d<r-Number.EPSILON,w=d>a+Number.EPSILON,b=Math.round(n*d),f=Math.round(b*i);return{scale:d,setScale:h,increase:g,decrease:y,canIncrease:C,canDecrease:w,fontSize:b,lineHeight:f}}function tl(e,n){const a=xa(n);o.useEffect(()=>{const r=()=>a.current();try{window.addEventListener(e,r)}catch{}return()=>{try{window.removeEventListener(e,r)}catch{}}},[e,a])}const Zr=" \xB7 ",nl=(()=>{if(typeof document>"u")return"";const e=document.title;return e.includes(Zr)?e.split(Zr).pop()??e:e})(),Wg=o.createContext(!1),Wn=[];let al=null;function qg(e){const n=o.useContext(Wg);o.useEffect(()=>{if(n||typeof e!="string"||!e)return;Wn.length===0&&(al=document.title);const a={text:nl?`${e}${Zr}${nl}`:e};return Wn.push(a),document.title=a.text,()=>{const r=Wn.lastIndexOf(a);r>=0&&Wn.splice(r,1),document.title=Wn.length?Wn[Wn.length-1].text:al??document.title}},[e,n])}const rl=[{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"}],Ug=(()=>{let e=null;return()=>(e||(e=new Intl.Collator("ko")),e)})();function aa(e,n){return Ug().compare(e,n)}const Ka=new Map;function Gg(e){const n=Ka.get(e);if(n)return n;const a=[],r=/-?\d+(?:\.\d+)?/g;let s=0;for(let i=r.exec(e);i;i=r.exec(e)){let l=i.index,u=i[0];u[0]==="-"&&l>0&&!/\s/.test(e[l-1])&&(l+=1,u=u.slice(1)),l>s&&a.push(e.slice(s,l)),a.push(Number(u)),s=i.index+i[0].length}return s<e.length&&a.push(e.slice(s)),Ka.size>5e3&&Ka.clear(),Ka.set(e,a),a}function Kg(e){if(!/^[\d\s-]+$/.test(e))return null;const n=e.replace(/\D/g,"");return n.length<9||n.length>11?null:n[0]==="0"||n[0]==="1"&&e!==n?n:null}function Yg(e,n){const a=c=>c==null||typeof c=="number"&&Number.isNaN(c)?"":String(c).trim(),r=a(e),s=a(n);if(r===s)return 0;const i=(c,p)=>{if(typeof c=="number"&&!Number.isNaN(c))return[c];const m=Kg(p);return m!==null?[m]:Gg(p)},l=i(e,r),u=i(n,s),d=Math.min(l.length,u.length);for(let c=0;c<d;c++){const p=l[c],m=u[c];if(typeof p=="number"&&typeof m=="number"){if(p!==m)return p-m;continue}if(typeof p=="number")return-1;if(typeof m=="number")return 1;const h=aa(p,m);if(h!==0)return h}return l.length!==u.length?l.length-u.length:aa(r,s)}const ol=e=>e==null||typeof e=="number"&&Number.isNaN(e)||typeof e=="string"&&e.trim()==="";function Xr(e,n,a){const r=ol(e),s=ol(n);if(r||s)return r===s?0:r?1:-1;const i=Yg(e,n);return a?i:-i}function Zg(e,n,a){const{t:r}=Ce.useTranslation(),[s,i]=o.useState(()=>{const y=a?.initialPageSize;return y&&rl.some(C=>C.value===y)?y:"25"}),[l,u]=o.useState(1),[d,c]=o.useState(n);Object.is(d,n)||(c(n),l!==1&&u(1));const p=o.useMemo(()=>rl.map(y=>({...y,label:r("visits.showN",{n:y.value})})),[r]),m=o.useCallback(y=>{i(y),u(1)},[]),h=Math.max(1,Math.ceil(e.length/Number(s)));(l>h||l<1||!Number.isFinite(l))&&u(Math.min(Math.max(1,Number.isFinite(l)?l:1),h));const g=Math.min(Math.max(1,Number.isFinite(l)?l:1),h);return{pageRows:o.useMemo(()=>e.slice((g-1)*Number(s),g*Number(s)),[e,g,s]),pageSizeProps:{options:p,value:s,onChange:m},paginationProps:{page:g,total:h,onChange:u},setPage:u}}function Xg(e){const[n,a]=o.useState(null),r=o.useRef(n),s=o.useRef(e?.onSortChange);s.current=e?.onSortChange;const i=o.useCallback(d=>{const c=r.current,p=c?.key===d?{key:d,asc:!c.asc}:{key:d,asc:!0};r.current=p,a(p),s.current?.(p)},[]),l=o.useCallback((d,c)=>({label:d,sortDir:n?.key===c?n.asc?"asc":"desc":null,onClick:()=>i(c)}),[n,i]),u=o.useCallback((d,c)=>{if(!n)return d;const{key:p,asc:m}=n;return[...d].sort((h,g)=>Xr(c(h,p),c(g,p),m))},[n]);return{\uC815\uB82C:n,\uCE78:l,sortRows:u}}const on="\uC804\uCCB4",Jg=new Map;try{Dt.store?.on?.("added",()=>Jg.clear())}catch{}Object.fromEntries(Object.entries(cC).map(([e,{nucleus:n}])=>[e,n]));const Qg={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"})},eb={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"})},tb={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 nb(e,n){if("place"in n)return Qg[n.place](e);const a=eb[n.vowel](e);return n.glide?`${a} \xB7 ${tb[n.glide](e)}`:a}const ab=(e,{defaultValue:n})=>n,sl=(e,n)=>({jamos:e,phonetic:n,tooltip:nb(ab,n)}),xn=(e,n)=>n.map(a=>sl([a],{place:e})),St=(e,n,a)=>sl([...e],a?{vowel:n,glide:a}:{vowel:n}),Jr={cho:[xn("labial",["\u3142","\u3143","\u314D","\u3141"]),xn("alveolar",["\u3137","\u3138","\u314C","\u3134","\u3139"]),xn("alveolar",["\u3145","\u3146"]),xn("palatal",["\u3148","\u3149","\u314A"]),xn("velar",["\u3131","\u3132","\u314B"]),xn("glottal",["\u314E"])],jung:[[St("\u3163","frontHigh"),St("\u315F","frontHigh","w"),St("\u3162","frontHigh","velar")],[St("\u3161","backHighUnrounded")],[St("\u315C","backHighRounded"),St("\u3160","backHighRounded","j")],[St("\u3154\u3150","frontMid"),St("\u3156\u3152","frontMid","j"),St("\u3159\u315A\u315E","frontMid","w")],[St("\u3153","backMidUnrounded"),St("\u3155","backMidUnrounded","j"),St("\u315D","backMidUnrounded","w")],[St("\u3157","backMidRounded"),St("\u315B","backMidRounded","j")],[St("\u314F","low"),St("\u3151","low","j"),St("\u3158","low","w")]],jong:[xn("labial",["\u3142","\u3141"]),xn("alveolar",["\u3137","\u3134","\u3139"]),xn("velar",["\u3131","\u3147"])]},rb=e=>e===ob?[]:Array.from(e),ob="__NO_CODA__",Qr=e=>e.map(n=>n.map(({jamos:a,phonetic:r,tooltip:s})=>({v:a.join(""),phonetic:r,tooltip:s}))),il={cho:Qr(Jr.cho),jung:Qr(Jr.jung),jong:Qr(Jr.jong)};il.jung.flat().forEach(({v:e})=>{for(const n of rb(e));}),new Set(il.cho.flat().map(e=>e.v));function sb(e,n=!0){const a=xa(e);o.useEffect(()=>{if(n)return zn(()=>{a.current?.()})},[n,a])}function wa(){const[e,n]=o.useState(null),a=o.useCallback(i=>n(i.getBoundingClientRect()),[]),r=o.useCallback(()=>n(null),[]),s=o.useCallback(i=>{const l=i.getBoundingClientRect();n(u=>u?null:l)},[]);return{anchorRect:e,isOpen:e!=null,openAt:a,close:r,toggleAt:s}}function ib(e){const[n,a]=o.useState(null),[r,s]=o.useState(null),i=o.useRef(null);o.useEffect(()=>()=>{i.current&&clearTimeout(i.current)},[]);const l=o.useCallback((d,c)=>{i.current&&clearTimeout(i.current),i.current=setTimeout(()=>{a(d),s(c)},e)},[e]),u=o.useCallback(()=>{i.current&&clearTimeout(i.current),a(null),s(null)},[]);return{payload:n,anchorRect:r,openAfterDelay:l,close:u}}function ll(e="warning"){const[n,a]=o.useState(""),[r,s]=o.useState(e),[i,l]=o.useState(0),u=o.useCallback((m,h)=>{s(h),a(m),l(g=>g+1)},[]),d=o.useCallback(m=>u(m,"warning"),[u]),c=o.useCallback(m=>u(m,"normal"),[u]),p=o.useCallback(()=>a(""),[]);return{toastMessage:n,toastType:r,toastKey:i,showToast:u,showWarning:d,showNormal:c,clearToast:p}}function Aa(e){let n=0;if(e&&typeof window<"u"&&typeof window.getComputedStyle=="function")for(let a=e;a&&a!==document.body&&a!==document.documentElement;a=a.parentElement){const r=parseInt(window.getComputedStyle(a).zIndex,10);!Number.isNaN(r)&&r>n&&(n=r)}return n>0?`max(var(--z-menu, 1500), ${n+1})`:"var(--z-menu, 1500)"}function ka({computeStyle:e,onScroll:n="close",onResize:a="close",ignoreOutsideClickSelector:r}){const[s,i]=o.useState(!1),[l,u]=o.useState({}),d=o.useRef(null),c=o.useRef(null),p=o.useCallback(()=>{d.current&&u(e(d.current.getBoundingClientRect(),d.current))},[e]);o.useEffect(()=>{if(!s)return;p();let g=c.current?.offsetHeight??0;g>0&&p();let y=null;typeof ResizeObserver<"u"&&c.current&&(y=new ResizeObserver(()=>{const v=c.current?.offsetHeight??0;v!==g&&(g=v,p())}),y.observe(c.current));const C=v=>{const k=v.target;r&&k.closest?.(r)||d.current?.contains(k)||c.current?.contains(k)||i(!1)};document.addEventListener("mousedown",C),document.addEventListener("pointerdown",C);const w=v=>{c.current?.contains(v.target)||(n==="reposition"?p():n==="close"&&i(!1))};n!=="ignore"&&window.addEventListener("scroll",w,!0);const b=()=>{a==="reposition"?p():a==="close"&&i(!1)};let f=null;const _=()=>{b(),f&&clearTimeout(f),f=setTimeout(()=>{f=null,a==="reposition"&&p()},250)};return a!=="ignore"&&(window.addEventListener("resize",b),window.addEventListener("orientationchange",_)),()=>{y?.disconnect(),document.removeEventListener("mousedown",C),document.removeEventListener("pointerdown",C),n!=="ignore"&&window.removeEventListener("scroll",w,!0),a!=="ignore"&&(window.removeEventListener("resize",b),window.removeEventListener("orientationchange",_)),f&&clearTimeout(f)}},[s,p,n,a,r]),o.useEffect(()=>{if(s)return zn(()=>i(!1))},[s]);const m=o.useCallback(()=>i(g=>!g),[]),h=o.useCallback(()=>i(!1),[]);return{open:s,setOpen:i,toggle:m,close:h,style:l,triggerRef:d,menuRef:c}}function lb(e,{mode:n="playback",autoStart:a=!1,onPlaySpeaker:r,onComplete:s,playMs:i=1100,feedbackMs:l=1500}={}){const[u,d]=o.useState([]),[c,p]=o.useState(0),[m,h]=o.useState("idle"),[g,y]=o.useState(null),[C,w]=o.useState([]),[b,f]=o.useState(null),[_,v]=o.useState(0),k=o.useRef(0),A=o.useCallback(K=>{k.current=typeof K=="function"?K(k.current):K,v(k.current)},[]),B=o.useRef(r),x=o.useRef(s);o.useEffect(()=>{B.current=r,x.current=s},[r,s]);const N=o.useRef([]),D=()=>{N.current.forEach(clearTimeout),N.current=[]},P=(K,L)=>{N.current.push(setTimeout(L,K))};o.useEffect(()=>()=>D(),[]);const H=u[c]?.id??null,M=o.useRef(null),z=o.useCallback(()=>{D(),h("playing"),w([]),f(null),A(0);let K=0;e.forEach((L,E)=>{P(K,()=>{p(E),y(L.id),B.current?.(L)}),P(K+1e3,()=>{y(null),w(F=>[...F,L.id])}),K+=1300}),P(K,()=>{h("done"),x.current?.({score:0,total:e.length})})},[e,A]),j=o.useCallback((K,L)=>{if(L>=K.length){h("done"),x.current?.({score:k.current,total:K.length});return}M.current=null,p(L),f(null),h("playing"),y(K[L].id),B.current?.(K[L]),P(i,()=>{y(null),h("waiting")})},[i]),S=o.useCallback(()=>{D();const K=ya(e);d(K),A(0),w([]),j(K,0)},[e,j,A]),I=o.useCallback(()=>{n==="playback"?(d(e),z()):S()},[n,e,z,S]),W=o.useCallback(()=>{D(),h("idle"),y(null),w([]),f(null),p(0),A(0),d([])},[A]),Z=e.map(K=>K.id).join("|");o.useEffect(()=>(a?I():W(),()=>D()),[n,Z,a]);const U=o.useCallback(K=>{m!=="waiting"||n==="playback"||M.current===c||(M.current=c,f(K),K===u[c]?.id&&A(L=>L+1),n==="exam"?(h("playing"),P(400,()=>j(u,c+1))):(h("feedback"),P(l,()=>j(u,c+1))))},[m,n,u,c,j,l,A]),q=n==="playback"?e.length:u.length;return{bind:{activeSpeakerId:g,playedIds:C,selectedId:b,answerId:H,showFeedback:m==="feedback",clickable:m==="waiting",onSelectSpeaker:U},index:c,total:q,score:_,phase:m,done:m==="done",start:I,reset:W}}function ub({title:e,description:n,actionLabel:a,onAction:r,bg:s,color:i,size:l="medium",actionVariant:u,titleColor:d,descriptionColor:c,className:p=""}){const m=s??i??"main",h=o.useRef(null),[g,y]=o.useState("main"),C=tn("(max-width: 767px)"),w=o.useRef({title:!1,description:!1});o.useLayoutEffect(()=>{const _=h.current;if(!_)return;const v=Yr(_),k=(A,B,x)=>{if(x!==void 0)_.style.setProperty(B,x),w.current[A]=!0;else if(w.current[A]){const N=v?.[A];N?_.style.setProperty(B,N):_.style.removeProperty(B),w.current[A]=!1}};k("title","--promo-banner-bg-title",d),k("description","--promo-banner-bg-description",c)},[d,c,m]),o.useLayoutEffect(()=>{const _=h.current;if(!_)return;const v=Yr(_);y(v?.actionVariant??"main")},[m]);const b=Ee("promo-banner",`promo-banner--${l}`,p),f=Qi[m];return t.jsxs("div",{ref:h,className:b,role:"note",children:[t.jsx(f,{}),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(le,{htmlType:"button",size:40,variant:u??g,shape:"pill",useBorder:!0,onClick:r,ariaLabel:a,...C?{type:"dot",icon:"arrow-right"}:{rightIcon:"arrow-right",label:a,minWidth:140}})]})}function cb({children:e,interval:n=5e3,dotTone:a,className:r="","aria-label":s}){const{t:i}=Ce.useTranslation(),l=s??i("topBanner.ariaLabel","\uBC30\uB108"),u=o.Children.toArray(e),d=u.length,[c,p]=o.useState(0),[m,h]=o.useState(!1),[g,y]=o.useState(!1),[C,w]=o.useState(!1),b=o.useRef(null),f=o.useRef(null),_=o.useRef(null),v=Wr(),k=m||g||C,A=d>0?Math.min(c,d-1):0;o.useEffect(()=>{if(d<2||n<=0||k||v)return;const x=window.setInterval(()=>p(N=>(Math.min(N,d-1)+1)%d),n);return()=>window.clearInterval(x)},[d,n,k,v]);const B=x=>{f.current!=null&&window.clearTimeout(f.current),f.current=window.setTimeout(()=>{f.current=null,w(!1)},x)};return o.useEffect(()=>()=>{f.current!=null&&window.clearTimeout(f.current)},[]),o.useEffect(()=>{if(!C)return;const x=N=>{N.pointerType==="touch"&&(_.current&&_.current.contains(N.target)||(f.current!=null&&(window.clearTimeout(f.current),f.current=null),w(!1)))};return document.addEventListener("pointerdown",x,!0),()=>document.removeEventListener("pointerdown",x,!0)},[C]),d===0?null:t.jsxs("section",{ref:_,className:Ee("top-banner",r),"aria-label":l,"aria-roledescription":"carousel",onPointerEnter:x=>{b.current=x.pointerType},onPointerDown:x=>{b.current=x.pointerType,x.pointerType==="touch"&&(f.current!=null&&(window.clearTimeout(f.current),f.current=null),w(!0))},onPointerUp:x=>{x.pointerType==="touch"&&B(5e3)},onPointerCancel:x=>{x.pointerType==="touch"&&B(5e3)},onMouseEnter:()=>{b.current!=="touch"&&h(!0)},onMouseLeave:()=>h(!1),onFocus:x=>{let N=!0;try{N=x.target.matches(":focus-visible")}catch{N=!0}y(N)},onBlur:x=>{x.currentTarget.contains(x.relatedTarget)||y(!1)},children:[t.jsx("div",{className:"top-banner__viewport",children:t.jsx("div",{className:"top-banner__track",style:{transform:`translateX(-${A*100}%)`},children:u.map((x,N)=>t.jsx("div",{className:"top-banner__slide","aria-hidden":N!==A,...N!==A?{inert:!0}:{},children:x},N))})}),d>1&&t.jsx("div",{className:`top-banner__dots${(a?.[A]??"light")==="dark"?" top-banner__dots--dark":""}`,children:u.map((x,N)=>t.jsx("button",{type:"button",className:`top-banner__dot${N===A?" top-banner__dot--active":""}`,"aria-label":i("topBanner.dotAriaLabel",{count:d,index:N+1,defaultValue:`${d}\uAC1C \uC911 ${N+1}\uBC88\uC9F8 \uBC30\uB108`}),"aria-current":N===A,onClick:()=>p(N)},N))})]})}function db({title:e,body:n,open:a=!1,onToggle:r,avatar:s,titleClassName:i="body-2",bodyClassName:l="body-2",className:u=""}){const{t:d}=Ce.useTranslation();return t.jsxs("div",{className:`accordion-item ${a?"accordion-item--open":""} ${u}`.trim(),role:"listitem",children:[t.jsxs("div",{className:"accordion-item__header",role:"button",tabIndex:0,"aria-expanded":a,"data-accordion-header":!0,onClick:r,onKeyDown:c=>{if(c.key==="Enter"||c.key===" ")c.preventDefault(),r?.();else if(c.key==="ArrowDown"||c.key==="ArrowUp"){c.preventDefault();const p=c.currentTarget.closest('[role="list"]');if(!p)return;const m=Array.from(p.querySelectorAll("[data-accordion-header]")),h=m.indexOf(c.currentTarget);(c.key==="ArrowDown"?m[h+1]:m[h-1])?.focus()}},children:[s&&t.jsx("div",{className:"accordion-item__avatar",children:s}),t.jsx("div",{className:`accordion-item__title ${i}`,children:e}),t.jsx("div",{className:"accordion-item__chevron",children:t.jsx(Ze,{icon:a?"chevron-up":"chevron-down",label:a?d("accordion.collapse","\uC811\uAE30"):d("accordion.expand","\uD3BC\uCE58\uAE30"),className:"accordion-item__chevron-icon",imgClassName:"accordion-item__chevron-image"})})]}),a&&t.jsx("div",{className:`accordion-item__body ${l}`,children:typeof n=="string"?t.jsx("p",{children:n}):n})]})}function pb({items:e=[],defaultOpenIndex:n=0,size:a=72,className:r="",bodyClassName:s}){const[i,l]=o.useState({index:n}),u=(d,c)=>i.id!=null&&d.id!=null?d.id===i.id:i.id==null&&c===i.index;return t.jsx("div",{className:`accordion-group accordion-group--s${a} ${r}`.trim(),role:"list",children:e.map((d,c)=>t.jsx(db,{title:d.title,body:d.body,avatar:d.avatar,open:u(d,c),onToggle:()=>l(u(d,c)?{index:-1}:{index:c,id:d.id}),bodyClassName:s},d.id??c))})}function mb(){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 hb(){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 Cb(){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 bt(e){const{t:n}=Ce.useTranslation(),{type:a="bar",size:r,className:s="","aria-label":i,"aria-hidden":l}=e;if(a==="dot"){const{icon:k,number:A,position:B="top-right",onClick:x,animate:N=!1}=e,D=k??"check",P=A!==void 0?"number":D,H=typeof r=="number"?r:32,M=Ee("circle-badge",`circle-badge--${P}`,`circle-badge--${B}`,`circle-badge--${H}`,N?"circle-badge--animate":"",x?"circle-badge--clickable":"",s),z=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")}[D];return t.jsxs("span",{className:M,onClick:x,onKeyDown:x?j=>{j.key!=="Enter"&&j.key!==" "||(j.preventDefault(),j.currentTarget.click())}:void 0,"aria-label":l?void 0:i??z,"aria-hidden":l||void 0,role:x?"button":l?void 0:"img",tabIndex:x?0:void 0,children:[A!==void 0&&A,A===void 0&&D==="check"&&t.jsx(mb,{}),A===void 0&&D==="remove"&&t.jsx(hb,{}),A===void 0&&D==="minus"&&t.jsx(Cb,{})]})}const{label:u,children:d,variant:c="default",fill:p="filled",minWidth:m,iconLeft:h,iconRight:g,color:y}=e,C=typeof r=="number"?"medium":r??"medium",w={small:"caption-2b",medium:"body-3b",large:"body-2b"}[C]??"body-2b",b={small:12,medium:14,large:16}[C]??14,f=Ee("badge",`badge--${c}`,`badge--${C}`,p!=="filled"?`badge--${p}`:"",w,s),_=y?.startsWith("--")?`var(${y})`:y,v=m!==void 0||_?{...m!==void 0?{minWidth:typeof m=="number"?`${m}px`:m}:{},..._?{"--badge-color":_}:{}}:void 0;return t.jsxs("span",{className:f,style:v,"aria-label":l?void 0:i,role:i&&!l?"img":void 0,"aria-hidden":l||void 0,children:[h&&t.jsx(Ze,{icon:h,size:b,className:"badge__icon"}),u??d,g&&t.jsx(Ze,{icon:g,size:b,className:"badge__icon"})]})}function Ba({columns:e=[],onClose:n,className:a="",size:r="medium"}){const{t:s}=Ce.useTranslation(),i=r==="small"?40:48,[l,u]=o.useState([]),d=o.useMemo(()=>{const w=[{title:null,columns:e}];let b=e;for(const f of l){const _=b?.[f.ci]?.items?.[f.ii];if(!_||!Array.isArray(_.children)||!_.children.length)break;b=[{title:null,items:_.children}],w.push({title:_.label||null,columns:b})}return w},[e,l]),c=d[d.length-1],p=d.length-1,m=o.useCallback(()=>u(w=>w.slice(0,Math.max(0,Math.min(w.length,p)-1))),[p]),h=o.useRef(null),g=o.useRef(null),y=d.length;o.useEffect(()=>{g.current||(g.current=document.activeElement);let w=0,b=0;const f=()=>{const _=h.current?.querySelector("button:not([disabled])");if(_&&_.offsetParent){_.focus({preventScroll:!0});return}b++<20&&(w=requestAnimationFrame(f))};return w=requestAnimationFrame(f),()=>cancelAnimationFrame(w)},[y]),o.useEffect(()=>()=>{g.current?.focus?.({preventScroll:!0})},[]);const C=o.useCallback((w,b,f)=>{if(w){if(Array.isArray(w.children)&&w.children.length){u(_=>[..._.slice(0,p),{ci:b,ii:f}]);return}try{typeof w.onClick=="function"&&w.onClick()}catch{}try{w&&w.closeOnSelect&&typeof n=="function"&&n()}catch{}}},[n,p]);return t.jsxs("div",{className:`tooltip-menu tooltip-menu--${r} ${a}`,children:[(d.length>1||c.title)&&t.jsxs("div",{className:"tooltip-menu__header",children:[d.length>1?t.jsx(le,{htmlType:"button",size:i,type:"dot",icon:"chevron-left",ariaLabel:s("common.back","\uB4A4\uB85C"),onClick:m,variant:"transparent-gray",useBorder:!1}):null,t.jsx("div",{className:"tooltip-menu__title button-1",children:c.title})]}),t.jsx("div",{className:"tooltip-menu__columns",ref:h,children:c.columns&&c.columns.map((w,b)=>t.jsxs("div",{className:"tooltip-menu__column",children:[w.title?t.jsx("div",{className:"tooltip-menu__column-title body-3",children:w.title}):null,t.jsx("div",{className:"tooltip-menu__items",children:(w.items||[]).map((f,_)=>t.jsxs(o.Fragment,{children:[f.separatorBefore&&_>0&&t.jsx("div",{className:"tooltip-menu__separator",role:"separator"}),t.jsx(le,{htmlType:"button",className:"tooltip-menu__item",size:i,type:f.label?"bar":"dot",icon:f.selected?"check":f.icon||"none",rightIcon:Array.isArray(f.children)&&f.children.length?"chevron-right":f.badgeCount?t.jsx(bt,{type:"dot",position:"inline",number:Math.min(f.badgeCount,99),size:24,"aria-hidden":!0}):void 0,label:f.label,ariaLabel:f.label&&f.badgeCount&&f.badgeCount>0?s("nav.badgeLabel",{label:f.label,count:f.badgeCount,defaultValue:"{{label}}, {{count}}\uAC1C"}):f.label,onClick:()=>C(f,b,_),selected:f.selected,disabled:f.disabled,showTooltipInfo:f.tooltip||!1,useBorder:!1,align:"left"})]},_))})]},b))})]})}const ul=".content-area";function eo(e,n="Nav"){try{const a=typeof e=="string"?document.querySelector(e):e?.current??document.querySelector(ul);if(a){a.scrollTop=0;return}const r=document.scrollingElement??document.documentElement;r&&r.scrollHeight<=r.clientHeight&&bn("nav-scroll-container",`[${n}] \uBCF8\uBB38\uC744 \uB9E8 \uC704\uB85C \uB418\uB3CC\uB9B4 \uD1B5\uC744 \uBABB \uCC3E\uC558\uB2E4(\uAE30\uBCF8 ${ul}) \u2014 \uCC3D\uB3C4 \uAD6C\uB97C \uC218 \uC5C6\uC5B4 \uC544\uBB34 \uC77C\uB3C4 \uD558\uC9C0 \uC54A\uB294\uB2E4. scrollContainer \uB85C \uD1B5\uC744 \uC54C\uB824 \uC900\uB2E4.`),window.scrollTo({top:0})}catch{}}const to=52,Ya=10,cl=e=>e&&e>0?e:0;function dl({items:e=[],activeKey:n,onChange:a,appMode:r,onAppModeChange:s,moreItems:i=[],scrollContainer:l}){const{t:u}=Ce.useTranslation(),d=r==="manager"?"malgwi":"manager",c=r==="manager"?"arrow-left":"arrow-right",p=r==="manager"?u("nav.modeLabelMalgwi","\uB9D0\uADC0"):u("nav.modeLabelManager","\uB9D0\uADC0 \uB9E4\uB2C8\uC800"),m=o.useRef(null),[h,g]=o.useState(0),y=e.length;o.useEffect(()=>{const q=m.current;if(!q)return;const K=()=>{const E=typeof getComputedStyle=="function"?getComputedStyle(q):null,F=q.clientWidth-(parseFloat(E?.paddingLeft??"")||0)-(parseFloat(E?.paddingRight??"")||0),R=q.querySelector(".bottom-nav__left"),O=R?.nextElementSibling,$=(R?.offsetWidth??0)+(R&&O?.classList.contains("bottom-nav__divider")?O.offsetWidth:0);g(Math.max(0,F-$))};if(K(),typeof ResizeObserver>"u")return;const L=new ResizeObserver(K);return L.observe(q),()=>L.disconnect()},[]);const C=to+1,w=q=>Math.max(0,Math.floor((q+Ya)/(to+Ya))),b=y*(to+Ya)-Ya<=h,f=h<=0||i.length===0&&b?y:Math.min(y,w(h-C)),_=h>0&&f<y,v=_?f:y,k=e.slice(0,v),A=e.slice(v),B=_||i.length>0,x=o.useCallback((q,K)=>({position:"fixed",bottom:window.innerHeight-q.top+8,right:window.innerWidth-q.right,zIndex:Aa(K)}),[]),N=o.useId(),{open:D,toggle:P,close:H,style:M,triggerRef:z,menuRef:j}=ka({computeStyle:x,onScroll:"ignore",onResize:"reposition"}),S=o.useCallback((q,K)=>K>0?u("nav.badgeLabel",{label:q,count:K,defaultValue:"{{label}}, {{count}}\uAC1C"}):q,[u]),I=o.useCallback(()=>s?.(d),[s,d]),W=o.useMemo(()=>A.find(q=>!!q.key&&q.key===n)??i.find(q=>q.selected||q.key&&q.key===n),[A,n,i]),Z=o.useMemo(()=>[{items:[...A.map(q=>({label:q.label,icon:q.icon,badgeCount:q.badgeCount,selected:!!q.key&&q.key===n,closeOnSelect:!0,disabled:q.state==="disabled",onClick:()=>{q.state!=="disabled"&&(q.key&&a&&(a(q.key),eo(l,"BottomNav")),H())}})),...i.map(q=>({label:q.label,icon:q.icon,badgeCount:q.badgeCount,selected:q.selected??(!!q.key&&q.key===n),closeOnSelect:!0,onClick:()=>{q.onClick?.(),H()}}))]}],[A,i,n,a,H]),U=[...A,...i].reduce((q,K)=>q+cl(K.badgeCount),0);return t.jsxs("nav",{className:"bottom-nav",ref:m,"aria-label":u("nav.bottomNav","\uD558\uB2E8 \uB124\uBE44\uAC8C\uC774\uC158"),children:[s&&t.jsxs(t.Fragment,{children:[t.jsx("div",{className:"bottom-nav__left",children:t.jsx(le,{htmlType:"button",size:52,type:"dot",icon:c,ariaLabel:p,className:"bottom-nav-item",onClick:I})}),t.jsx("div",{className:"bottom-nav__divider","aria-hidden":"true"})]}),t.jsx("div",{className:"bottom-nav__items",children:k.map((q,K)=>{const L=cl(q.badgeCount);return t.jsxs("span",{className:"bottom-nav__slot",children:[t.jsx(le,{htmlType:"button",size:52,type:"dot",icon:q.icon,ariaLabel:S(q.label,L),selected:!!q.key&&q.key===n,disabled:q.state==="disabled",className:"bottom-nav-item",onClick:()=>{q.key&&(a?.(q.key),eo(l,"BottomNav"))}}),L>0&&t.jsx("span",{"aria-hidden":"true",children:t.jsx(bt,{type:"dot",position:"top-right",number:Math.min(L,99),size:24})})]},q.key??`__slot-${K}`)})}),B&&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:z,className:"bottom-nav__slot",children:[t.jsx(le,{htmlType:"button",size:52,type:"dot",icon:W?.icon??"ellipsis",ariaLabel:S(W?.label??u("nav.more","\uB354\uBCF4\uAE30"),U),selected:!!W,className:"bottom-nav-item",onClick:P,"aria-expanded":D,"aria-controls":D?N:void 0}),U>0&&t.jsx("span",{"aria-hidden":"true",children:t.jsx(bt,{type:"dot",position:"top-right",number:Math.min(U,99),size:24})}),D&&Xt.createPortal(t.jsx("div",{id:N,role:"group","aria-label":u("nav.moreMenu","\uB354\uBCF4\uAE30 \uBA54\uB274"),className:"tooltip-content",style:M,ref:j,children:t.jsx(Ba,{columns:Z,onClose:H})}),document.body)]})})]})]})}function pl(e){if(typeof e!="string")return!1;let n="";for(const r of e){const s=r.charCodeAt(0);s<=32||s>=127&&s<=159||(n+=r)}if(!n)return!1;const a=/^([a-zA-Z][a-zA-Z0-9+.-]*):/.exec(n);return a?["http","https","mailto","tel"].includes(a[1].toLowerCase()):!0}function ml(e,n,a){return a&&a>0?e("nav.badgeLabel",{label:n,count:a,defaultValue:"{{label}}, {{count}}\uAC1C"}):n}function fb(e){const{t:n}=Ce.useTranslation(),{activeKey:a,unreadCount:r,onDebug:s,onNotification:i,onSetting:l,onHelp:u,onFeedback:d,onAccount:c}=e||{},p="default";return s||i||l||u||d||c?t.jsxs("div",{className:"side-nav__footer",children:[s&&t.jsx(le,{htmlType:"button",size:48,showTooltipInfo:!0,type:"dot",shape:"pill",variant:p,icon:"terminal",ariaLabel:n("nav.debug","\uB514\uBC84\uADF8"),onClick:s,selected:a==="debug"}),i&&t.jsxs("span",{className:"side-nav__notification-wrap",children:[t.jsx(le,{htmlType:"button",size:48,showTooltipInfo:!0,type:"dot",shape:"pill",variant:p,icon:"bell",ariaLabel:ml(n,n("nav.notifications","\uC54C\uB9BC"),r),onClick:i,selected:a==="notifications"}),!!r&&r>0&&t.jsx(bt,{type:"dot",number:Math.min(r,99),size:24,"aria-hidden":!0})]}),l&&t.jsx(le,{htmlType:"button",size:48,showTooltipInfo:!0,type:"dot",shape:"pill",variant:p,icon:"settings",ariaLabel:n("nav.settings","\uC124\uC815"),onClick:l,selected:a==="settings"}),u&&t.jsx(le,{htmlType:"button",size:48,showTooltipInfo:!0,type:"dot",shape:"pill",variant:p,icon:"message-circle-question-mark",ariaLabel:n("nav.help","\uB3C4\uC6C0\uB9D0"),onClick:u,selected:a==="help"}),d&&t.jsx(le,{htmlType:"button",size:48,showTooltipInfo:!0,type:"dot",shape:"pill",variant:p,icon:"bug",ariaLabel:n("nav.feedback","\uBC84\uADF8\uC2E0\uACE0"),onClick:d,selected:a==="feedback"}),c&&t.jsx(le,{htmlType:"button",size:48,showTooltipInfo:!0,type:"dot",shape:"pill",variant:p,icon:"user-round",ariaLabel:n("nav.account","\uACC4\uC815"),onClick:c,selected:a==="account"})]}):null}function hl(e){const{t:n}=Ce.useTranslation(),{item:a,itemKey:r,label:s,icon:i,active:l,onClick:u,style:d,state:c,labelStyle:p}=e||{},m=a?.key??r??"",h=a?.label??s??"",g=a?.icon??i??"",y=a?.badge??0,C=t.jsx("span",{className:"side-nav__icon-wrap",children:t.jsx(Ze,{icon:g,label:typeof h=="string"?h:void 0,className:"side-nav__icon",maskClassName:"side-nav__icon-image",imgClassName:void 0,svgClassName:void 0})}),w=c==="disabled",b=`side-nav__item ${l?"active":""} ${c||""} ${w?"disabled":""} ${a?.child?"side-nav__item--child":""}`,f=o.useCallback(_=>{if(w)return;const v=_.detail>0;if(v)try{_.currentTarget.blur()}catch{}u?.(m,_.currentTarget,v)},[w,m,u]);return t.jsxs("button",{type:"button",className:b,onClick:f,"aria-label":typeof h=="string"?ml(n,h,y):void 0,"aria-current":l?"page":void 0,style:d,"aria-disabled":w,children:[C,t.jsx("span",{className:"side-nav__label button-1 f",style:p,children:h}),y>0&&t.jsx(bt,{type:"dot",position:"inline",number:Math.min(y,99),size:24,"aria-hidden":!0}),c==="loading"&&t.jsx("span",{className:"side-nav__spinner",role:"img","aria-label":n("loader.loading","\uBD88\uB7EC\uC624\uB294 \uC911\u2026")})]})}function Cl(e){const{t:n}=Ce.useTranslation(),{items:a=[],activeKey:r,onChange:s,unreadCount:i,onDebug:l,onNotification:u,onAccount:d,onSetting:c,onHelp:p,onFeedback:m,appMode:h,onAppModeChange:g,scrollContainer:y}=e||{},C=h==="manager",w=o.useCallback(()=>g?.(C?"malgwi":"manager"),[g,C]),b=o.useRef(null),[f,_]=o.useState(null);o.useEffect(()=>{const x=b.current;if(!x)return;const N=()=>{const{scrollHeight:P,clientHeight:H,scrollTop:M}=x;if(P<=H+1){_(null);return}const z=Math.max(24,H/P*H),j=H-z,S=P-H;_({top:Math.round(M/S*j),height:Math.round(z)})};N(),x.addEventListener("scroll",N,{passive:!0});const D=typeof ResizeObserver<"u"?new ResizeObserver(N):null;D?.observe(x);for(const P of Array.from(x.children))D?.observe(P);return()=>{x.removeEventListener("scroll",N),D?.disconnect()}},[a]);const v=o.useRef(null),k=o.useCallback(x=>{const N=b.current;N&&(x.preventDefault(),v.current={y:x.clientY,top:N.scrollTop},x.currentTarget.setPointerCapture(x.pointerId))},[]),A=o.useCallback(x=>{const N=b.current,D=v.current;!N||!D||(N.scrollTop=D.top+(x.clientY-D.y)*(N.scrollHeight/N.clientHeight))},[]),B=o.useCallback(x=>{v.current=null,x.currentTarget.hasPointerCapture(x.pointerId)&&x.currentTarget.releasePointerCapture(x.pointerId)},[]);return t.jsxs("nav",{ref:b,"aria-label":n("nav.mainMenu","\uBA54\uC778 \uBA54\uB274"),className:"side-nav__menu",children:[f&&t.jsx("div",{className:"side-nav__scroll","aria-hidden":"true",children:t.jsx("div",{className:"side-nav__scroll-thumb",style:{top:f.top,height:f.height},onPointerDown:k,onPointerMove:A,onPointerUp:B,onPointerCancel:B})}),t.jsxs("div",{className:"side-nav__menu-list",children:[(a||[]).filter(x=>!x.section&&(x.key||x.label)).map((x,N)=>t.jsxs(o.Fragment,{children:[x.divider&&t.jsx("div",{className:"side-nav__separator"}),t.jsx(hl,{item:x,active:!!x.key&&x.key===r,state:x.disabled?"disabled":void 0,onClick:(D,P,H)=>{if(x.disabled)return;if(x.href){if(pl(x.href)&&window.open(x.href,"_blank","noopener,noreferrer"),H)try{P?.blur()}catch{}return}if(s?.(x.key),eo(y,"SideNav"),!H)return;try{P?.blur()}catch{}if(typeof window<"u"&&window.matchMedia){if(!window.matchMedia("(min-width: 768px) and (max-width: 1023px)").matches)return}else return;const M=document.querySelector(".header");if(M){const z=typeof M.matches=="function";if(!(window.matchMedia("(hover: hover)").matches&&z&&M.matches(":hover"))){M.classList.add("header--force-collapsed");const j=()=>{M.classList.remove("header--force-collapsed"),M.removeEventListener("mouseenter",j)};M.addEventListener("mouseenter",j)}}}})]},x.key??`side-nav__item-${N}`)),g&&t.jsx("div",{className:"side-nav__separator side-nav__separator--short"}),g&&t.jsx(hl,{item:{key:"__mode-switch__",label:C?n("nav.goToMalgwi","\uB9D0\uADC0\uB85C \uC774\uB3D9"):n("nav.goToManager","\uB9D0\uADC0\uB9E4\uB2C8\uC800\uB85C \uC774\uB3D9"),icon:C?"arrow-left":"arrow-right"},onClick:w})]}),t.jsx(fb,{activeKey:r,unreadCount:i,onDebug:l,onNotification:u,onAccount:d,onSetting:c,onHelp:p,onFeedback:m})]})}var Za='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',no='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',gb='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 fl({appMode:e}){const{t:n}=Ce.useTranslation(),a=e==="manager",r=a?no:Za,s=gb;return t.jsxs("div",{className:"brand-identity__root","aria-label":n("header.biArea","BI \uC601\uC5ED"),children:[t.jsx("img",{src:s,alt:n("header.biSymbol","BI \uC2EC\uBCFC"),className:"brand-identity__image brand-identity__image--symbol"}),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 brand-identity__image--logo"})]})}function gl({activeKey:e,onChange:n,items:a,malgwiItems:r,managerItems:s,unreadCount:i,onDebug:l,onNotification:u,onAccount:d,onSetting:c,onHelp:p,onFeedback:m,appMode:h,onAppModeChange:g,scrollContainer:y}){const{t:C}=Ce.useTranslation(),w=tn("(max-width: 767px)"),b=o.useMemo(()=>(a??[]).filter(M=>!M.section&&(M.key||M.label)).map(M=>({key:M.key,label:typeof M.label=="string"?M.label:void 0,icon:M.icon,state:M.disabled?"disabled":void 0,badgeCount:M.badge})),[a]),f=o.useCallback(M=>{const z=a?.find(j=>j.key===M);if(!z?.disabled){if(z?.href){pl(z.href)&&window.open(z.href,"_blank","noopener,noreferrer");return}n?.(M)}},[a,n]),_=o.useMemo(()=>{const M=[];return l&&M.push({key:"debug",icon:"terminal",label:C("nav.debug","\uB514\uBC84\uADF8"),onClick:l}),u&&M.push({key:"notifications",icon:"bell",label:C("nav.notifications","\uC54C\uB9BC"),badgeCount:i,onClick:u}),c&&M.push({key:"settings",icon:"settings",label:C("nav.settings","\uC124\uC815"),onClick:c}),p&&M.push({key:"help",icon:"message-circle-question-mark",label:C("nav.help","\uB3C4\uC6C0\uB9D0"),onClick:p}),m&&M.push({key:"feedback",icon:"bug",label:C("nav.feedback","\uBC84\uADF8\uC2E0\uACE0"),onClick:m}),d&&M.push({key:"account",icon:"user-round",label:C("nav.account","\uACC4\uC815"),onClick:d}),M},[C,l,u,c,p,m,d,i]),v=o.useCallback((M,z)=>({position:"fixed",top:M.bottom+8,right:Math.max(8,window.innerWidth-M.right),zIndex:Aa(z)}),[]),k=o.useId(),{open:A,toggle:B,close:x,style:N,triggerRef:D,menuRef:P}=ka({computeStyle:v,onScroll:"ignore",onResize:"reposition"}),H=o.useMemo(()=>[{items:_.map(M=>({label:M.label,icon:M.icon,badgeCount:M.badgeCount,selected:M.selected??(!!M.key&&M.key===e),closeOnSelect:!0,onClick:()=>{M.onClick?.(),x()}}))}],[_,e,x]);return t.jsxs("aside",{className:`header${h==="manager"?" header--manager":""}`,children:[t.jsxs("div",{className:"header__bi",children:[t.jsx(fl,{appMode:h}),t.jsxs("div",{className:"header__menu-button",ref:D,children:[t.jsx(le,{htmlType:"button",size:48,type:"dot",shape:"pill",variant:"default",useBorder:!1,icon:"menu",ariaLabel:u&&i&&i>0?C("nav.badgeLabel",{label:C("header.menuOpen","\uBA54\uB274 \uC5F4\uAE30"),count:i,defaultValue:"{{label}}, {{count}}\uAC1C"}):C("header.menuOpen","\uBA54\uB274 \uC5F4\uAE30"),onClick:B,"aria-expanded":A,"aria-controls":A?k:void 0}),!!u&&!!i&&i>0&&t.jsx(bt,{type:"dot",number:Math.min(i,99),size:24,"aria-hidden":!0}),A&&Xt.createPortal(t.jsx("div",{id:k,role:"group","aria-label":C("header.utilMenu","\uC720\uD2F8\uB9AC\uD2F0 \uBA54\uB274"),className:"tooltip-content",style:N,ref:P,children:t.jsx(Ba,{columns:H,onClose:x})}),document.body)]})]}),t.jsx(Cl,{scrollContainer:y,items:a,activeKey:e??void 0,onChange:n,unreadCount:i,onDebug:l,onNotification:u,onAccount:d,onSetting:c,onHelp:p,onFeedback:m,appMode:h,onAppModeChange:g}),w&&t.jsx(dl,{items:b,activeKey:e??void 0,onChange:f,scrollContainer:y,appMode:h,onAppModeChange:g})]})}const bb=gl,yb=()=>Dt.t("passCard.planSuffix","\uC774\uC6A9\uAD8C");function bl(e){if(!(e==null||e==="")){if(typeof e=="string"&&/^\s*\d[\d,]*\s*$/.test(e)){const n=Number(e.replace(/[,\s]/g,""));if(Number.isFinite(n))return Qn(`${n.toLocaleString("ko-KR")}\uC6D0`)}return Qn(typeof e=="number"?`${e.toLocaleString("ko-KR")}\uC6D0`:e)}}function vb(e){const n=`${e.code??""} ${e.name??""}`.toLowerCase();return/manager|매니저/.test(n)?"manager":"speechear"}function xb(e){if(e.durationDays&&e.durationDays>0){const i=e.durationDays;return i%365===0?`${i/365}\uB144`:`${i}\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*$/);if(r)return r[1].replace(/\s+/g,"");const s=a.match(/(\d+)\s*-?\s*(day|year)s?\b/i);return s?s[2].toLowerCase()==="year"?`${s[1]}\uB144`:`${s[1]}\uC77C`:a||yb()}function _b(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 yl(e){return{type:e.type??vb(e),plan:xb(e),label:e.label,price:bl(e.price),originalPrice:bl(e.originalPrice),discountLabel:e.discountLabel}}var wb='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',Ab='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>',kb='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',Bb='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',Nb='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>',Eb='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',vl='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 qn={text:"--pass-card-text",sub:"--pass-card-sub",copyright:"--pass-card-copyright"},ao=new WeakMap;function Db(e){if(e)return ao.get(e)}function _n(e,n){e&&(e.style.setProperty(qn.text,n.text),e.style.setProperty(qn.sub,n.sub),n.copyrightColor&&e.style.setProperty(qn.copyright,n.copyrightColor),ao.set(e,n))}function wn(e){e&&(e.style.removeProperty(qn.text),e.style.removeProperty(qn.sub),e.style.removeProperty(qn.copyright),ao.delete(e))}const xl={text:"var(--color-pureBlack)",sub:"var(--color-lightGray)",logoBase:"Logo_speechear_kr",copyrightColor:"#1a1a1a"};function _l(e={}){const n=gt(xl,_n,wn);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("${vl}")`}})]})}const wl="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 Na='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 Sb={text:"#1a1a1a",sub:"var(--color-lightGray)",logoBase:"Logo_speechear_kr",copyrightColor:"var(--color-main)"},jb=[{scale:1,opacity:.55},{scale:2,opacity:.4},{scale:3.1,opacity:.28},{scale:4.5,opacity:.18},{scale:6,opacity:.1}];function Al(e={}){const n=gt(Sb,_n,wn),a="var(--color-main)",r=270,s=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:jb.map(({scale:i,opacity:l},u)=>t.jsx("g",{transform:`translate(${r} ${s}) scale(${i}) translate(-50 -50)`,opacity:l,children:t.jsx("path",{d:wl,fill:"none",stroke:a,strokeWidth:"1.5",vectorEffect:"non-scaling-stroke"})},u))}),t.jsx("span",{className:"pass-card-bg__symbol pass-card-bg-sound-move__symbol",style:{"--symbol-url":`url("${Na}")`}})]})}const Tb={text:"#ffffff",sub:"var(--color-lightGray)",logoBase:"Logo_speechear_kr",logoColor:"_white",copyrightColor:"#ffffff"},Mb=[{scale:1,opacity:.55},{scale:2,opacity:.4},{scale:3.1,opacity:.28},{scale:4.5,opacity:.18},{scale:6,opacity:.1}];function Lb(e={}){const n=gt(Tb,_n,wn),a="#ffffff",r=270,s=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:Mb.map(({scale:i,opacity:l},u)=>t.jsx("g",{transform:`translate(${r} ${s}) scale(${i}) translate(-50 -50)`,opacity:l,children:t.jsx("path",{d:wl,fill:"none",stroke:a,strokeWidth:"1.5",vectorEffect:"non-scaling-stroke"})},u))}),t.jsx("span",{className:"pass-card-bg__symbol pass-card-bg-sound-move-v1__symbol",style:{"--symbol-url":`url("${vl}")`}})]})}const $b={text:"#1a1a1a",sub:"var(--color-lightGray)",logoBase:"Logo_speechear_kr",copyrightColor:"var(--color-main)"};function Rb(e={}){const n=gt($b,_n,wn);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("${Na}")`}})]})}const Pb={Logo_speechear_kr:{"":Za,_white:wb,_textWhite:Ab,_black:kb},Logo_speechearManager_kr:{"":no,_white:Bb,_textWhite:Nb,_black:Eb}};function Ib(e,n){if(e)return Pb[e]?.[n??""]??void 0}const Fb={speechear:Za,manager:no},Ob={speechear:"Logo_speechear_kr",manager:"Logo_speechearManager_kr"},kl=10;function Bl(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 s=Math.floor(e/60);return s>0?n("passCard.remainingMinute",{n:s}):n("passCard.remainingSecond",{n:Math.floor(e)})}function Hb(e,n,a){if(e==="manager"){const r=/년/.test(n)||/yr|year/i.test(n)||/1년|365/.test(n),s=a==="\uC624\uD508\uD2B9\uAC00"||a===Dt.t("passCard.specialLabel");return r?t.jsx(Rb,{}):s?t.jsx(Lb,{}):t.jsx(Al,{})}return t.jsx(_l,{})}function Nl({product:e,showPrice:n=!1,plan:a,type:r,endDate:s,remainingSeconds:i,endInclusive:l=!1,state:u="active",bg:d,bgOnly:c=!1,textColor:p,subColor:m,copyrightColor:h,logoSrc:g,label:y,price:C,originalPrice:w,discountLabel:b,onUse:f,onRefund:_,onDelete:v}){const{t:k}=Ce.useTranslation(),A=e?yl(e):void 0,B=r??A?.type??"speechear",x=a??A?.plan??k("passCard.planSuffix","\uC774\uC6A9\uAD8C"),N=y??A?.label,D=C??(n?A?.price:void 0),P=w??(n?A?.originalPrice:void 0),H=b??A?.discountLabel,M=o.useMemo(()=>{if(D)return null;const re=e?.durationDays??_b(e?.code);if(!re||re<=0)return i!=null?{percent:null,remainingLabel:Bl(i,k)}:null;const V=re*86400;let ae;if(i!=null)ae=i;else if((u==="active"||u==="expired")&&s){const ge=new Date(s).getTime();if(Number.isNaN(ge))return null;const me=/^(\d{4})-(\d{2})-(\d{2})/.exec(String(s)),oe=/^(\d{4})-(\d{2})-(\d{2})/.exec(va()),he=Math.round(me&&oe?(Date.UTC(+me[1],+me[2]-1,+me[3])-Date.UTC(+oe[1],+oe[2]-1,+oe[3]))/864e5:(ge-Date.now())/864e5);ae=Math.max(0,l?he+1:he)*86400}else u==="expired"?ae=0:ae=V;const ue=Math.max(0,Math.min(100,Math.floor(Math.min(ae,V)/V*100)));return u==="pending"&&ue>=100?null:{percent:ue,remainingLabel:Bl(ae,k)}},[D,u,s,i,l,e?.durationDays,e?.code,k]),z=o.useRef(null),[j,S]=o.useState({}),[I,W]=o.useState(null),Z=!!(f||_||v),U=o.useRef(!1),q=o.useRef(void 0),[K,L]=o.useState(g);o.useLayoutEffect(()=>{L(g)},[g]),o.useLayoutEffect(()=>{const re=z.current;re&&(p!==void 0&&re.style.setProperty("--pass-card-text",p),m!==void 0&&re.style.setProperty("--pass-card-sub",m),h!==void 0&&re.style.setProperty("--pass-card-copyright",h))},[p,m,h]),o.useLayoutEffect(()=>{const re=z.current;if(!re)return;const V=Db(re);if(!g){const ae=Ob[B],ue=u==="expired"?"_black":V?.logoColor??"",ge=Ib(ae,ue);L(ge)}},[d,g,B,u]);const E=re=>{const V=z.current;if(!V)return null;const{left:ae,top:ue,width:ge,height:me}=V.getBoundingClientRect(),oe=(re.clientX-ae)/ge-.5;return{rotateX:-((re.clientY-ue)/me-.5)*kl,rotateY:oe*kl}},F=(re,V)=>{const ae=V*-.7,ue=re*.7+10,ge=20+(Math.abs(re)+Math.abs(V))*.4;return`${ae}px ${ue}px ${ge}px rgba(0, 0, 0, 0.18)`},R=o.useCallback(re=>{if(na())return;U.current=!0,clearTimeout(q.current),q.current=setTimeout(()=>{U.current=!1},200);const V=E(re);V&&S({transform:`perspective(800px) rotateX(${V.rotateX}deg) rotateY(${V.rotateY}deg) scale3d(1.03, 1.03, 1.03)`,boxShadow:F(V.rotateX,V.rotateY),transition:"transform 0.25s cubic-bezier(0.23, 1, 0.32, 1), box-shadow 0.25s cubic-bezier(0.23, 1, 0.32, 1)"})},[]),O=o.useCallback(re=>{if(na())return;const V=E(re);if(!V)return;const ae=U.current?"transform 0.2s ease, box-shadow 0.2s ease":"none";S({transform:`perspective(800px) rotateX(${V.rotateX}deg) rotateY(${V.rotateY}deg) scale3d(1.03, 1.03, 1.03)`,boxShadow:F(V.rotateX,V.rotateY),transition:ae})},[]),$=o.useCallback(()=>{clearTimeout(q.current),U.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)"})},[]),Y=o.useCallback(()=>W(null),[]),Q=o.useMemo(()=>{const re=k("passCard.planSuffix","\uC774\uC6A9\uAD8C"),V=x.replace("\uC774\uC6A9\uAD8C","").replace(re==="\uC774\uC6A9\uAD8C"?"":re,"").trim(),ae=V.match(/^(.*?)(일|년)$/);return ae?t.jsxs(t.Fragment,{children:[t.jsx("span",{className:"h0 pass-card__plan-number",children:ae[1]}),t.jsx("span",{className:"h5b pass-card__plan-unit",children:ae[2]==="\uB144"?k("passCard.unitYear","\uB144"):k("passCard.unitDay","\uC77C")})]}):t.jsx("span",{className:"h0",children:V})},[x,k]),X=o.useMemo(()=>{const re=Qn(D);if(!re)return null;const V=re.match(/^([^\d]*)([\d.,]+)(.*)$/);if(!V)return t.jsx("span",{className:"h1",children:re});const[,ae,ue,ge]=V;return t.jsxs(t.Fragment,{children:[ae&&t.jsx("span",{className:"h5 pass-card__price-symbol",children:ae}),t.jsx("span",{className:"h1 pass-card__price-amount",children:ue}),ge.trim()&&t.jsx("span",{className:"h5 pass-card__price-symbol",children:ge.trim()})]})},[D]),ce=o.useCallback(()=>{Z&&W(re=>{if(re)return null;const V=z.current?.getBoundingClientRect();if(!V)return null;const ae=50;return{left:V.left,right:V.right,width:V.width,height:V.height,x:V.x,y:V.y+ae,top:V.top+ae,bottom:V.bottom+ae}})},[Z]),xe=o.useCallback(re=>{Z&&(re.key==="Enter"||re.key===" ")&&(re.preventDefault(),ce())},[Z,ce]),te=[{items:[...f?[{label:k("passCard.menu.use","\uC0AC\uC6A9\uD558\uAE30"),icon:"play",onClick:()=>{f(),W(null)},closeOnSelect:!0}]:[],..._?[{label:k("passCard.menu.refund","\uD658\uBD88\uD558\uAE30"),icon:"rotate-ccw",onClick:()=>{_(),W(null)},closeOnSelect:!0}]:[],...v?[{label:k("passCard.menu.delete","\uC0AD\uC81C\uD558\uAE30"),icon:"trash-2",onClick:()=>{v(),W(null)},closeOnSelect:!0}]:[]]}];return t.jsxs(t.Fragment,{children:[t.jsx("div",{className:"pass-card-frame",children:t.jsxs("div",{ref:z,className:`pass-card pass-card--${u}${Z?" pass-card--clickable":""}`,style:j,onMouseEnter:R,onMouseMove:O,onMouseLeave:$,onPointerUp:re=>{re.pointerType==="touch"&&$()},onPointerCancel:re=>{re.pointerType==="touch"&&$()},onClick:ce,onKeyDown:Z?xe:void 0,role:Z?"button":void 0,tabIndex:Z?0:void 0,"aria-haspopup":Z?"menu":void 0,"aria-expanded":Z?!!I:void 0,children:[d??Hb(B,x,N),!c&&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:K??Fb[B],className:"pass-card__logo",alt:B==="manager"?k("header.logoManager","\uB9D0\uADC0\uB9E4\uB2C8\uC800 \uB85C\uACE0"):k("header.logoMalgwi","\uB9D0\uADC0 \uB85C\uACE0")}),t.jsxs("div",{className:"pass-card__plan",children:[t.jsx("div",{children:Q}),t.jsx("span",{className:"h5b pass-card__plan-suffix",children:N?k("passCard.labeledPlan",{label:N}):k("passCard.planSuffix","\uC774\uC6A9\uAD8C")})]})]})}),D?t.jsxs("div",{className:"pass-card__price-area",children:[H&&t.jsx("span",{className:"pass-card__discount body-3",children:H}),t.jsxs("div",{className:"pass-card__price",children:[P&&t.jsx("span",{className:"pass-card__price-original body-3",children:Qn(P)}),X]})]}):M?t.jsxs("div",{className:"pass-card__usage",children:[t.jsx("span",{className:"h5b pass-card__usage-remaining",children:M.remainingLabel}),M.percent!=null&&t.jsxs("span",{className:"pass-card__usage-percent",children:[t.jsx("span",{className:"h1 pass-card__usage-value",children:M.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."})]})]})}),I&&t.jsx(rn,{anchorRect:I,onClose:Y,ariaLabel:k("tooltip.menu","\uBA54\uB274"),children:t.jsx(Ba,{columns:te,onClose:Y,size:"small"})})]})}const zb={text:"#1a1a1a",sub:"var(--color-lightGray)",logoBase:"Logo_speechear_kr",copyrightColor:"#1a1a1a"};function Vb(e={}){const n=`passcard-sound-line-grad-${o.useId()}`,a=gt(zb,_n,wn);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("${Na}")`}})]})}const Wb={text:"#1a1a1a",sub:"var(--color-lightGray)",logoBase:"Logo_speechear_kr",copyrightColor:"var(--color-main)"};function qb(e={}){const n=gt(Wb,_n,wn);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("${Na}")`}})]})}function Ub(e,n){if(e){if(n==="manager_pro")return t.jsx(qb,{});if(n==="manager_standard")return t.jsx(Vb,{});if(n==="manager_lite")return t.jsx(Al,{})}}function Gb(e){const n=Qn(e);if(!n)return null;const a=n.match(/^([^\d]*)([\d.,]+)(.*)$/);if(!a)return n;const[,r,s,i]=a;return t.jsxs(t.Fragment,{children:[r&&t.jsx("span",{className:"payment-plan__pricing-symbol h4",children:r}),s,i.trim()&&t.jsx("span",{className:"payment-plan__pricing-symbol h4",children:i.trim()})]})}function Kb(e){const{t:n}=Ce.useTranslation(),a=n("payment.plan.tierFallback",{defaultValue:"\uC774\uC6A9\uAD8C"}),r=n("payment.plan.openPromo",{defaultValue:"\uC624\uD508 \uD2B9\uAC00"}),{plan:s,onSelect:i,period:l="monthly",ownedCodes:u}=e||{},d=v=>!!v&&!!u?.includes(v),c=v=>v.onceOnly??/오픈\s*특가/.test(v.label??""),p=(s.tiers||[]).some(v=>c(v)&&d(v.code)),m=v=>{const k=v.prices?v.prices[l]:v.price;return k?(s.tiers||[]).some(A=>!!A.badge&&A.originals?.[l]===k):!1},h=s.colorToken?`var(--color-${s.colorToken})`:"var(--color-gray)",g=n("payment.plan.freePrice","\uBB34\uB8CC"),y=n("payment.products.mgrEnterprise.tier.price","\uBB38\uC758"),C=v=>v.prices?v.prices[l]:v.price,w=(s.tiers||[]).length>0&&(s.tiers||[]).every(v=>{const k=C(v);return k==="\uBB34\uB8CC"||k===g||k==="0\uC6D0"||typeof k=="string"&&/\d/.test(k)&&!/[1-9]/.test(k)}),b=(s.tiers||[]).length>0&&(s.tiers||[]).every(v=>{const k=C(v);return k==="\uBB38\uC758"||k===y}),f=s.group==="org",_=f?"manager":"speechear";return t.jsxs("div",{className:"payment-plan__card",style:{borderColor:h,"--plan-color":h},children:[s.cardBadge&&t.jsx("div",{className:"payment-plan__card-badge",children:t.jsx(bt,{label:s.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:s.quote||"\xA0"}),t.jsx("h3",{className:"payment-plan__title-heading h1",children:s.tier??s.title}),t.jsx("p",{className:"payment-plan__subtitle body-3",children:s.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:(s.recommendedFor||[]).map((v,k)=>t.jsxs("li",{className:"payment-plan__feature-item body-3",children:[t.jsx(Ze,{icon:"check",size:18,className:"payment-plan__feature-check",wrapperStyle:{color:h}}),v]},k))})]}),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:(s.features||[]).map((v,k)=>t.jsxs("li",{className:"payment-plan__feature-item body-3",children:[t.jsx(Ze,{icon:"check",size:18,className:"payment-plan__feature-check",wrapperStyle:{color:h}}),v]},k))})]}),t.jsx("div",{className:"payment-plan__card-pricing",children:w?null:b?t.jsx(le,{htmlType:"button",className:"payment-plan__contact-button",label:n("payment.plan.contact",{defaultValue:"\uBB38\uC758\uD558\uAE30"}),variant:"main",size:56,onClick:()=>s.tiers?.[0]&&i?.({...s.tiers[0],productId:s.id,productTitle:s.title})}):t.jsx(t.Fragment,{children:t.jsx("div",{className:"payment-plan__pricing-list",children:(s.tiers||[]).map(v=>{const k=v.label||a,A=c(v),B=A||v.openPromo===!0,x=k.replace(/^오픈\s*특가\s*/,"")||a,N=v.prices?v.prices[l]:v.price,D=v.badge?B?`${r}
|
|
852
|
+
${v.badge}`:v.badge:void 0;if(A&&d(v.code))return null;if(!v.badge&&!p)return m(v)?null:t.jsxs("div",{className:`payment-plan__pricing-row payment-plan__pricing-row--static${v.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:v.label})}),t.jsx("div",{className:"payment-plan__pricing-row-price",children:t.jsx("span",{className:"payment-plan__pricing-current h1",children:Gb(N)})})]},v.id);const P=s.tier??(f?s.title:void 0),H=t.jsx(Nl,{showPrice:!0,product:{type:_,code:v.code,name:x,label:P,price:N,originalPrice:v.originals?.[l]??void 0,discountLabel:D},bg:Ub(f,s.id)}),M=()=>i?.({...v,productId:s.id,productTitle:s.title,preview:H});return t.jsx("div",{className:"payment-plan__pricing-card",onClick:M,onKeyDown:i?z=>{z.target===z.currentTarget&&(z.key==="Enter"||z.key===" ")&&(z.preventDefault(),M())}:void 0,role:i?"button":void 0,tabIndex:i?0:void 0,children:H},v.id)})})})})]})}function Yb({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 ro='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 El={text:"#1a1a1a",sub:"var(--color-lightGray)",logoBase:"Logo_speechear_kr",copyrightColor:"#c9c9c9"};function Zb(){const e=gt(El,_n,wn);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("${ro}")`}})})}const Dl={text:"#ffffff",sub:"var(--color-lightGray)",logoBase:"Logo_speechearManager_kr",logoColor:"_white",copyrightColor:"#ffffff"};function Xb(e={}){const n=gt(Dl,_n,wn);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("${Na}")`}})]})}function Sl({keys:e,anchor:n="top-right",scale:a,className:r=""}){const s=Array.isArray(e)?e:[e];return t.jsx("span",{className:Ee("shortcut-badge",`shortcut-badge--${n}`,r),style:a===void 0?void 0:{"--shortcut-badge-scale":String(a)},children:s.map((i,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:i})]},`${i}-${l}`))})}const Ea=(e,n,a)=>e+(n-e)*a;function Jb({speakers:e,size:n=300,viewT:a=0,activeSpeakerId:r=null,playedIds:s,selectedId:i=null,answerId:l=null,showFeedback:u=!1,pulseSelected:d=!1,pulseSelectedDuration:c,pulseScale:p,clickable:m=!1,onSelectSpeaker:h,buttonSize:g=40,showIcon:y=!0,onCenterClick:C,centerLabel:w,centerDisabled:b=!1,centerAttention:f=!1,shortcutAnchor:_="top-right",shortcutScale:v,scaleShortcut:k=!1}){const{t:A}=Ce.useTranslation(),B=Math.max(0,Math.min(1,a)),x=n/2,N=110/300,D=.18,P=V=>n*(N+(V-1)*D),H=V=>{const ae=P(V.row??1),ue=V.angleDeg*Math.PI/180;return{x:x+ae*Math.cos(ue),y:x+ae*Math.sin(ue)}},M=Math.max(...e.map(V=>V.row??1),1),z=n*.08,j=n*.1,S=n*.24,I=n-2*z,W=n-j-S,Z=n-S/2,U=o.useMemo(()=>[...new Set(e.map(V=>V.deg))].sort((V,ae)=>V-ae),[e]),q=U.length,K=Math.max(68,q>1?I/(q-1):0),L=o.useMemo(()=>new Map(U.map((V,ae)=>[V,ae])),[U]),E=V=>{const ae=L.get(V.deg)??0,ue=x+(ae-(q-1)/2)*K,ge=M>1?Math.min(68,W/(M-1)):0,me=ge*(M-1),oe=j+(W-me)/2,he=M===1?j+W*.4:oe+(M-(V.row??1))*ge;return{x:ue,y:he}},F=V=>{const ae=H(V),ue=E(V);return{x:Ea(ae.x,ue.x,B),y:Ea(ae.y,ue.y,B)}},R={x,y:Ea(x,Z,B)},O=Math.round(g*1.2),$=Math.round(Math.max(16,Math.min(80,g*.7))),Y=[],Q=new Map;for(const V of e){const ae=V.row??1;Q.has(ae)||Q.set(ae,[]),Q.get(ae).push(V)}for(const[V,ae]of Q.entries()){if(ae.length<2)continue;const ue=[...ae].sort((Pe,we)=>Pe.deg-we.deg),ge=ue.map(Pe=>F(Pe)),me=ue.map(Pe=>Pe.deg),oe=me[me.length-1]-me[0],he=oe/(me.length-1),_e=360-oe,Le=ue.length>=3&&he>0&&_e<=he*1.5,Ue=Math.round(P(V)*1e3)/1e3,Ie=(Pe,we,Se,Oe)=>{const Be=(we.angleDeg-Pe.angleDeg+540)%360-180;if(Be===0)return`L ${Oe.x} ${Oe.y}`;if(B===0)return`A ${Ue} ${Ue} 0 0 ${Be>0?1:0} ${Oe.x} ${Oe.y}`;const nt=(Pe.angleDeg+Be/2)*Math.PI/180,Ge={x:x+Ue*Math.cos(nt),y:x+Ue*Math.sin(nt)},Xe={x:(Se.x+Oe.x)/2,y:(Se.y+Oe.y)/2},De={x:Ea(Ge.x,Xe.x,B),y:Ea(Ge.y,Xe.y,B)},je={x:2*De.x-Xe.x,y:2*De.y-Xe.y};return`Q ${je.x} ${je.y} ${Oe.x} ${Oe.y}`},de=Le?[...ue,ue[0]]:ue,Ae=Le?[...ge,ge[0]]:ge;let Re=`M ${Ae[0].x} ${Ae[0].y}`;for(let Pe=1;Pe<Ae.length;Pe++)Re+=" "+Ie(de[Pe-1],de[Pe],Ae[Pe-1],Ae[Pe]);Y.push({key:`arc-${V}`,d:Re})}const X=o.useMemo(()=>new Set(s??[]),[s]),ce=V=>({idle:"",active:A("soundCompass.state.active","\uC18C\uB9AC \uB098\uB294 \uC911"),played:A("soundCompass.state.played","\uB4E4\uC74C"),correct:A("soundCompass.state.correct","\uC815\uB2F5"),wrong:A("soundCompass.state.wrong","\uC624\uB2F5")})[V],xe=V=>{if(r===V.id)return"active";if(u){if(V.id===l)return"correct";if(V.id===i&&i!==l)return"wrong"}return X.has(V.id)?"played":"idle"},te=V=>r===V.id?"loop":u?V.id===l?"loop":null:d&&V.id===i?"once":null,re=(V,ae)=>{switch(V){case"played":case"correct":return t.jsx(os,{size:ae});case"wrong":return t.jsx(Cs,{size:ae});default:return t.jsx(hs,{size:ae})}};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:[B===0&&e.map(V=>{const{x:ae,y:ue}=F(V);return t.jsx("line",{x1:R.x,y1:R.y,x2:ae,y2:ue,stroke:"#dde3ec",strokeWidth:"1"},V.id)}),Y.map(V=>t.jsx("path",{d:V.d,fill:"none",stroke:"#dde3ec",strokeWidth:"1"},V.key))]}),f&&!b&&t.jsx("div",{className:"sound-compass__pulse sound-compass__pulse--active sound-compass__pulse--center",style:{width:O,height:O,left:R.x-O/2,top:R.y-O/2}}),C?t.jsx("button",{type:"button",className:`sound-compass__center sound-compass__center--button${b?" sound-compass__center--disabled":""}`,style:{width:O,height:O,left:R.x,top:R.y},"aria-label":w,"aria-disabled":b||void 0,tabIndex:b?-1:0,onClick:b?void 0:C,children:t.jsx(br,{size:$,color:"currentColor",strokeWidth:1.5})}):t.jsx("div",{className:"sound-compass__center",style:{width:O,height:O,left:R.x,top:R.y},children:t.jsx(br,{size:$,color:"currentColor",strokeWidth:1.5})}),e.map((V,ae)=>{const{x:ue,y:ge}=F(V),me=xe(V),oe=te(V),he={...v!==void 0||k?{"--shortcut-badge-scale":String(v??Math.max(.75,Math.min(3,g/56)))}:null,pointerEvents:m?"auto":"none",cursor:m?"pointer":"default",zIndex:me!=="idle"?10:1},_e=g,Le=Math.round(Math.max(10,Math.min(56,_e*.38))),Ue=Math.round(Math.max(7,Math.min(18,_e*.2))),Ie=Math.round(Math.max(10,Math.min(56,_e*.4))),de=y==="answered"&&(me==="played"||me==="correct"||me==="wrong"),Ae=y===!0||de,Re=!de;return t.jsxs("div",{className:"sound-compass__speaker-pos",style:{...he,left:ue-_e/2,top:ge-_e/2},children:[oe&&t.jsx("div",{className:`sound-compass__pulse sound-compass__pulse--${me}`+(oe==="once"?" sound-compass__pulse--once":""),style:{width:_e,height:_e,...oe==="once"&&c!==void 0?{"--sc-pulse-duration-once":`${c}ms`}:null,...p!==void 0?{"--sc-pulse-scale":String(p)}:null}}),t.jsxs("button",{type:"button",tabIndex:m?0:-1,"aria-disabled":m?void 0:!0,onClick:m?()=>h?.(V.id):void 0,className:`sound-compass__speaker-btn sound-compass__speaker-btn--${me}`,style:{width:_e,height:_e},"aria-label":ce(me)?`${V.label}, ${ce(me)}`:V.label,"aria-pressed":i!=null?V.id===i:void 0,children:[Ae&&re(me,Le),Re&&t.jsx("span",{className:"sound-compass__speaker-number",style:{fontSize:y===!0?Ue:Ie},children:ae+1})]}),V.shortcut&&t.jsx(Sl,{keys:V.shortcut,anchor:_,className:"sound-compass__speaker-shortcut"})]},V.id)})]})})}function Qb({children:e,position:n="top-left",size:a=24,className:r=""}){return t.jsx("span",{className:Ee("circle-badge","circle-badge--number",`circle-badge--${a}`,`circle-badge--${n}`,r),children:e})}function e4({orientation:e="horizontal",label:n,className:a=""}){const r=Ee("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 jl({checked:e,onChange:n,name:a,value:r,disabled:s=!1,label:i,className:l=""}){const u=o.useId();return t.jsxs("label",{className:`radio${s?" radio--disabled":""} ${l}`.trim(),htmlFor:u,children:[t.jsx("input",{id:u,type:"radio",name:a,value:r,checked:e,disabled:s,onChange:d=>n?.(d.target.checked)}),t.jsx("span",{className:"radio__dot"}),i&&t.jsx("span",{className:"radio__label body-2",children:i})]})}function t4({options:e,value:n,onChange:a,name:r,disabled:s=!1,direction:i="vertical",className:l="",ariaLabel:u}){const d=o.useId(),c=r??`radio-group-${d}`;return t.jsx("div",{className:`radio-group radio-group--${i} ${l}`.trim(),role:"radiogroup","aria-label":u,children:e.map(p=>t.jsx(jl,{name:c,value:p.value,checked:n===p.value,disabled:s||p.disabled,label:p.label,onChange:m=>{m&&a?.(p.value)}},p.value))})}const n4={info:"info",success:"check-circle",warning:"alert-triangle",danger:"alert-circle"};function a4({tone:e="info",title:n,message:a,children:r,dismissible:s=!1,onDismiss:i,live:l,className:u=""}){const{t:d}=Ce.useTranslation(),[c,p]=o.useState(!1),m=o.useRef(null),h=o.useCallback(()=>{const f=m.current;f&&f.contains(document.activeElement)&&Ua(f),p(!0),i?.()},[i]);if(c)return null;const g=Ee("alert",`alert--${e}`,u),y=l??(e==="danger"||e==="warning"?"assertive":"polite"),C=y==="assertive"?"alert":y==="polite"?"status":void 0,w=!!n,b=!!(a||r);return t.jsxs("div",{ref:m,className:g,role:C,children:[t.jsxs("div",{className:"alert__body",children:[t.jsxs("div",{className:"alert__header",children:[t.jsx(Ze,{icon:n4[e],size:20,className:"alert__icon"}),w&&t.jsx("span",{className:"alert__title body-2",children:n}),!w&&b&&t.jsx("div",{className:"alert__message body-3",children:a||r})]}),w&&b&&t.jsx("div",{className:"alert__message alert__message--indented body-3",children:a||r})]}),s&&t.jsx("button",{type:"button",className:"alert__dismiss",onClick:h,"aria-label":d("common.close","\uB2EB\uAE30"),children:"\xD7"})]})}const r4={ready:"search",guide:"info",error:"circle-alert"};function o4(e,n){const a=n.filter(Boolean);if(a.length===0)return e;const r=[];let s=0,i=0;for(const l of a){const u=e.indexOf(l,s);u<0||(u>s&&r.push(e.slice(s,u)),r.push(t.jsx("strong",{className:"search-summary__em body-2",children:l},i++)),s=u+l.length)}return s<e.length&&r.push(e.slice(s)),r}function s4({status:e="guide",label:n,children:a,emphasis:r,icon:s,className:i=""}){const l=s===!1?null:s??r4[e],u=Ee("search-summary",`search-summary--${e}`,i),d=n??a,c=typeof d=="string"&&r&&r.length>0?o4(d,r):d;return t.jsxs("div",{className:u,role:"status","aria-live":"polite",children:[l!=null&&t.jsx(Ze,{icon:l,size:18,className:"search-summary__icon"}),t.jsx("span",{className:"search-summary__text body-2",children:c})]})}function Da({title:e,items:n}){const{t:a}=Ce.useTranslation(),{anchorRect:r,openAt:s,close:i}=wa(),l=o.useRef(null),u=Ur(!!r,(d,c)=>{d&&c?s(l.current?.querySelector("button")??c):i()},l);return t.jsxs("span",{ref:l,style:{display:"contents"},children:[t.jsx(le,{htmlType:"button",size:24,type:"dot",icon:"info",variant:"transparent-gray",useBorder:!1,selected:!!r,ariaLabel:a("common.info","\uC124\uBA85"),onPointerEnter:d=>{ta(d)||s(d.currentTarget)},onPointerLeave:d=>{ta(d)||i()},onClick:d=>{u.touchPress(d.currentTarget)},onFocus:d=>{na()||s(d.currentTarget)},onBlur:i}),r&&t.jsx(Vn,{title:e,items:n,showIndex:n.length>1,anchorRect:r,onClose:i})]})}function i4({items:e=[],value:n,onChange:a,className:r="",size:s=40}){const i=o.useId(),{t:l}=Ce.useTranslation(),u=o.useRef(null),d=e.find(C=>!C.disabled)?.key,c=e.some(C=>C.key===n)?n:d??e[0]?.key,p=e.find(C=>C.key===c&&!C.disabled)?.key??d,m=()=>Array.from(u.current?.querySelectorAll('[role="tab"]:not(:disabled)')??[]),h=(C,w=m())=>{if(w.length===0)return;const b=(C%w.length+w.length)%w.length;w[b]?.focus(),w[b]?.click()},g=C=>{if(!["ArrowRight","ArrowDown","ArrowLeft","ArrowUp","Home","End"].includes(C.key))return;C.preventDefault();const w=m(),b=w.indexOf(C.currentTarget);C.key==="ArrowRight"||C.key==="ArrowDown"?h(b+1,w):C.key==="ArrowLeft"||C.key==="ArrowUp"?h(b-1,w):C.key==="Home"?h(0,w):h(w.length-1,w)},y=e.find(C=>C.key===c);return t.jsxs("div",{className:`tabs ${r}`.trim(),children:[t.jsx("div",{ref:u,className:`tabs__list tabs__list--${s}`,role:"tablist","aria-label":l("tabs.ariaLabel","\uD0ED"),children:e.map(C=>t.jsx("button",{id:`tabs__tab-${i}-${C.key}`,type:"button",role:"tab","aria-selected":C.key===c,"aria-controls":`tabs__panel-${i}-${C.key}`,disabled:C.disabled,tabIndex:C.key===p?0:-1,className:`tabs__tab body-2${C.key===c?" tabs__tab--active":""}`,onClick:()=>{C.key!==n&&a?.(C.key)},onKeyDown:g,children:C.label},C.key))}),y&&t.jsx("div",{id:`tabs__panel-${i}-${y.key}`,role:"tabpanel","aria-labelledby":`tabs__tab-${i}-${y.key}`,tabIndex:0,className:"tabs__panel",children:y.panel},y.key)]})}const l4={xs:12,sm:16,md:20,lg:28,xl:36};function u4(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 c4({src:e,name:n,size:a="md",shape:r="circle",className:s=""}){const{t:i}=Ce.useTranslation(),[l,u]=o.useState(null),d=!!e&&l===e,c=n?u4(n):"",p=!!e&&!d,m=!p&&!!c,h=n||i("avatar.ariaLabel","\uC0AC\uC6A9\uC790 \uC544\uBC14\uD0C0");return t.jsxs("span",{className:`avatar avatar--${a} avatar--${r} ${s}`.trim(),role:"img","aria-label":h,children:[p&&t.jsx("img",{className:"avatar__image",src:e,alt:h,onError:()=>u(e??null)}),!p&&m&&t.jsx("span",{className:"avatar__initials","aria-hidden":"true",children:c}),!p&&!m&&t.jsx(Ze,{icon:"user-round",size:l4[a],className:"avatar__icon"})]})}function d4(e,n){if(!n)return!0;const a=n.split(",").map(i=>i.trim()).filter(Boolean);if(a.length===0)return!0;const r=e.name.toLowerCase(),s=e.type.toLowerCase();return a.some(i=>{const l=i.toLowerCase();return l.startsWith(".")?r.endsWith(l):l.endsWith("/*")?s.startsWith(l.slice(0,-1)):s===l})}function p4({onFilesSelected:e,accept:n,multiple:a=!1,disabled:r=!1,showFileList:s=!0,files:i,onRemove:l,className:u=""}){const{t:d}=Ce.useTranslation(),c=o.useRef(null),[p,m]=o.useState(!1),[h,g]=o.useState([]),y=i??h,C=A=>{if(!A||A.length===0)return;const B=Array.from(A).filter(N=>d4(N,n));if(B.length===0)return;const x=a?B:B.slice(0,1);if(i===void 0){const N=a?[...y,...x]:x;g(N),e?.(N)}else e?.(x)},w=A=>{A.preventDefault(),!r&&m(!0)},b=A=>{A.preventDefault(),m(!1)},f=A=>{A.preventDefault(),m(!1),!r&&C(A.dataTransfer.files)},_=A=>{const B=A.target;try{C(B.files)}finally{B.value=""}},v=()=>{r||c.current?.click()},k=A=>{if(!r&&(l?.(A),i===void 0)){const B=y.filter((x,N)=>N!==A);g(B),l||e?.(B)}};return t.jsxs("div",{className:`file-upload ${u}`.trim(),children:[t.jsxs("div",{className:Ee("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:A=>{(A.key==="Enter"||A.key===" ")&&(A.preventDefault(),v())},onDragOver:w,onDragLeave:b,onDrop:f,children:[t.jsx(Ze,{icon:"upload",size:24,className:"file-upload__icon"}),t.jsx("span",{className:"file-upload__prompt body-2",children:d("fileUpload.dragPrompt","\uD30C\uC77C\uC744 \uC774\uACF3\uC5D0 \uB4DC\uB798\uADF8\uD558\uC5EC \uC5C5\uB85C\uB4DC")}),t.jsx("button",{type:"button",className:"file-upload__browse-button body-3",disabled:r,onClick:A=>{A.stopPropagation(),v()},children:d("fileUpload.browseButton","\uD30C\uC77C \uC120\uD0DD")}),t.jsx("input",{ref:c,type:"file",className:"file-upload__input",accept:n,multiple:a,disabled:r,onChange:_,tabIndex:-1})]}),s&&y.length>0&&t.jsx("ul",{className:"file-upload__list",children:y.map((A,B)=>t.jsxs("li",{className:"file-upload__list-item body-3",children:[t.jsx("span",{className:"file-upload__file-name body-3",children:A.name}),t.jsx("button",{type:"button",className:"file-upload__remove-button","aria-label":d("fileUpload.removeAriaLabel",{name:A.name}),disabled:r,onClick:()=>k(B),children:t.jsx(Ze,{icon:"x",size:14})})]},`${A.name}-${B}`))})]})}function m4({items:e,className:n=""}){const{t:a}=Ce.useTranslation();return t.jsx("nav",{className:`breadcrumb ${n}`.trim(),"aria-label":a("breadcrumb.ariaLabel","\uC774\uB3D9 \uACBD\uB85C"),children:t.jsx("ol",{className:"breadcrumb__list",children:e.map((r,s)=>{const i=s===e.length-1;return t.jsxs("li",{className:"breadcrumb__item",children:[i?t.jsx("span",{className:"breadcrumb__current body-3","aria-current":"page",children:r.label}):r.href?t.jsx("a",{className:"breadcrumb__link body-3",href:r.href,target:r.target,rel:r.rel??(r.target==="_blank"?"noopener noreferrer":void 0),onClick:r.onClick,children:r.label}):r.onClick?t.jsx("button",{type:"button",className:"breadcrumb__link body-3",onClick:r.onClick,children:r.label}):t.jsx("span",{className:"breadcrumb__text body-3",children:r.label}),!i&&t.jsx(Ze,{icon:"chevron-right",size:14,className:"breadcrumb__separator"})]},s)})})})}const h4={small:14,medium:20,large:28};function C4({value:e,onChange:n,max:a=5,readOnly:r=!1,size:s="medium",ariaLabel:i,className:l=""}){const{t:u}=Ce.useTranslation(),d=r||!n,[c,p]=o.useState(null),m=d?e:Number.isFinite(e)?Math.round(e):0,h=c??m,g=h4[s],y=A=>{A!==e&&n?.(A)},C=A=>{d||y(A)},w=A=>{d||na()||p(A)},b=o.useRef(null),f=A=>{const B=Math.min(a,Math.max(1,A));y(B),Array.from(b.current?.querySelectorAll("[data-star]")??[]).find(x=>x.dataset.star===String(B))?.focus()},_=A=>{if(!d){switch(A.key){case"ArrowRight":case"ArrowUp":f((m||0)+1);break;case"ArrowLeft":case"ArrowDown":f((m||1)-1);break;case"Home":f(1);break;case"End":f(a);break;default:return}A.preventDefault()}},v=m>=1&&m<=a?Math.round(m):1,k=()=>{d||p(null)};return t.jsx("div",{className:`rating rating--${s}${d?" rating--readOnly":""} ${l}`.trim(),ref:b,onKeyDown:_,role:d?"img":"radiogroup","aria-label":d?u("rating.valueLabel",{value:e,max:a}):i??u("rating.groupLabel","\uBCC4\uC810"),onMouseLeave:k,onPointerUp:A=>{A.pointerType==="touch"&&k()},onPointerCancel:A=>{A.pointerType==="touch"&&k()},children:Array.from({length:a},(A,B)=>{const x=B+1,N=Math.max(0,Math.min(1,h-B)),D=N>0&&N<1,P=t.jsxs("span",{className:"rating__star-wrap",children:[t.jsx(Ze,{icon:"star",size:g,className:"rating__star rating__star--empty"}),N>0&&t.jsx("span",{className:`rating__star-fill${D?" rating__star-fill--half":""}`,style:D?{width:`${N*100}%`}:void 0,children:t.jsx(Ze,{icon:"star",size:g,className:"rating__star rating__star--filled"})})]});return d?t.jsx("span",{className:"rating__item","aria-hidden":"true",children:P},x):t.jsx("button",{type:"button",className:"rating__item rating__item--interactive",role:"radio","aria-checked":m===x,"aria-label":u("rating.starLabel",{n:x}),"data-star":x,tabIndex:x===v?0:-1,onClick:()=>C(x),onMouseEnter:()=>w(x),children:P},x)})})}const f4=20,g4=["#499cdf","#4dcdc0","#2fae9e","#e6b94e","#d9534f","#e06b68","#bfc7d1"];function b4({value:e,onChange:n,palette:a=g4,size:r=40,className:s="",ariaLabel:i}){const{t:l}=Ce.useTranslation();return t.jsx("div",{className:`color-picker ${s}`.trim(),role:"group","aria-label":i,children:a.map(u=>{const d=e?.toLowerCase()===u.toLowerCase();return t.jsx("button",{type:"button",className:`color-picker__swatch color-picker__swatch--${r}`,style:{backgroundColor:u},onClick:()=>n(u),"aria-pressed":d,"aria-label":d?`${u} ${l("colorPicker.selected","\uC120\uD0DD\uB428")}`:u,children:d&&t.jsx(Ze,{icon:"check",size:f4,className:"color-picker__check"})},u)})})}function Tl({icon:e,label:n,tooltip:a,wrapperStyle:r,color:s,bgColor:i,useHover:l=!0,iconSize:u="medium"}){const d=u==="small",c=Ee("category-icon",d?"category-icon--small":""),p=d?16:20,m=o.useRef(null),[h,g]=o.useState(!1),y=o.useMemo(()=>{const A=r&&typeof r=="object"?{...r}:{};return!s&&!i?A:{...A,...s?{color:s,"--t-item-fg":s}:{},...i?{"--t-item-bg":i}:{}}},[r,s,i]),C=a||n,[w,b]=o.useState(null);o.useLayoutEffect(()=>{h&&b(m.current?.getBoundingClientRect()??null)},[h]),o.useEffect(()=>{if(!l&&h)try{g(!1)}catch{}},[l,h]),o.useEffect(()=>{if(!h)return;const A=B=>{const x=m.current;if(!x)return;const N=B.target;N&&!x.contains(N)&&g(!1)};return document.addEventListener("pointerdown",A,!0),()=>document.removeEventListener("pointerdown",A,!0)},[h]);const f=o.useCallback(()=>{l&&g(!0)},[l]),_=o.useCallback(()=>{l&&g(!1)},[l]),v=o.useCallback(()=>g(!1),[]),k=o.useCallback(A=>{if(A.key==="Escape"){g(!1);return}(A.key==="Enter"||A.key===" ")&&(A.preventDefault(),g(B=>!B))},[]);return t.jsxs("span",{ref:m,className:"category-icon__wrap",onPointerEnter:f,onPointerLeave:_,onFocus:f,onBlur:_,onKeyDown:k,role:"button",tabIndex:0,"aria-label":typeof C=="string"?C:void 0,"aria-haspopup":!!C,"aria-expanded":h,"data-tooltip-ignore":!0,children:[t.jsx(Ze,{icon:e,label:n,className:c,imgClassName:"category-icon__image",maskClassName:"category-icon__mask",svgClassName:"category-icon__svg",wrapperStyle:y,size:p}),h&&C&&t.jsx(vn,{anchorRect:w,text:typeof C=="string"?C:void 0,offset:8,onClose:v,className:"category-icon__tooltip",ariaLabel:typeof C=="string"?C:void 0})]})}let jn=null;function Xa(e){if(jn&&jn!==e)try{jn()}catch{}return jn=e,()=>{jn===e&&(jn=null)}}function Ja(e){if(jn===e){jn=null;try{e()}catch{}}}function y4(e,n){if(!e)return{previewCodes:[],previewBucket:null};const a=e,r=l=>l.map(u=>u?.contextCode||u?.context_code).filter(Boolean).map(String);if(n==="LISTEN_IN_NOISE"){const l=a.sentences||a.items||[],u=Array.isArray(l)&&l.length>0?r(l):[];return u.length===0&&(a.contextCode||a.context_code)&&u.push(String(a.contextCode||a.context_code)),{previewCodes:u,previewBucket:"LIN_D"}}if(n==="SHORT_STORY"){const l=a.items||a.sentences||[],u=Array.isArray(l)&&l.length>0?r(l):[];return u.length===0&&(a.contextCode||a.context_code)&&u.push(String(a.contextCode||a.context_code)),{previewCodes:u,previewBucket:"SHORT_S"}}if(n==="LONG_STORY"){const l=a.items||a.sentences||[],u=Array.isArray(l)&&l.length>0?r(l):[];return u.length===0&&(a.contextCode||a.context_code)&&u.push(String(a.contextCode||a.context_code)),{previewCodes:u,previewBucket:"LONG"}}if(n==="ORDERING_SENTENCE"){const l=a.sentences||a.items||[],u=Array.isArray(l)&&l.length>0?r(l):[];return u.length===0&&(a.contextCode||a.context_code)&&u.push(String(a.contextCode||a.context_code)),{previewCodes:u,previewBucket:"LIN_D"}}const s=a.sentences||a.items||[],i=r(Array.isArray(s)?s:[]);return i.length===0&&(a.contextCode||a.context_code)&&i.push(String(a.contextCode||a.context_code)),{previewCodes:i,previewBucket:null}}function v4(e,n){const[a,r]=o.useState(!1),[s,i]=o.useState(-1),[l,u]=o.useState({key:"",urls:[]}),d=o.useRef(null),c=o.useRef(!1),p=o.useRef(null),m=o.useRef(null),[h,g]=o.useState(!1),y=o.useRef([]),{previewCodes:C,previewBucket:w}=y4(e,n),b=`${C.join(",")}|${w??""}`,f=o.useMemo(()=>l.key===b?l.urls:[],[l,b]);o.useEffect(()=>{if(!C.length)return;let v=!1;return(async()=>{const k=[],A=[];for(const B of C)try{const x=Vs(B,w);if(!x){k.push("");continue}let N=null;try{N=await Ws(x)}catch{}if(!N)try{const D=await qs(x);D&&(N=URL.createObjectURL(D),A.push(N))}catch{}k.push(N??"")}catch{k.push("")}v?A.forEach(B=>{try{URL.revokeObjectURL(B)}catch{}}):(y.current.forEach(B=>{try{URL.revokeObjectURL(B)}catch{}}),y.current=A,u({key:b,urls:k}))})(),()=>{v=!0}},[C.join(","),w]),o.useEffect(()=>()=>{y.current.forEach(v=>{try{URL.revokeObjectURL(v)}catch{}}),y.current=[]},[]);const _=o.useCallback(async v=>{if(v.stopPropagation(),v.preventDefault(),c.current){p.current&&Ja(p.current),c.current=!1;try{d.current?.pause()}catch{}r(!1),i(-1);return}if(!f.filter(Boolean).length)return;let k=null;const A=()=>{c.current=!1;try{d.current?.pause()}catch{}k?.()};p.current=A;const B=Xa(A);c.current=!0,r(!0);for(let x=0;x<f.length&&c.current;x++){const N=f[x];if(N){i(x);try{await new Promise((D,P)=>{k=D;const H=new Audio(N);d.current=H,H.onended=()=>D(),H.onerror=()=>P(),H.play().catch(P)})}catch{break}}}B(),p.current===A&&(p.current=null,c.current=!1,r(!1),i(-1))},[f]);return o.useEffect(()=>()=>{p.current&&Ja(p.current),c.current=!1;try{d.current?.pause()}catch{}d.current=null},[]),{playing:a,playingIndex:s,previewUrls:f,previewHover:h,setPreviewHover:g,previewBtnRef:m,handlePreview:_}}const x4=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 s=r;return s.sentence||s.text||s.context||s.question||s.title||""}return""}).filter(r=>typeof r=="string"&&r.trim().length>0).map(r=>r.trim()):[]};function oo(e){const{index:n,type:a,trainingData:r,ariaLabel:s,depth:i,renderPopup:l,completed:u,completedIds:d,selectedIds:c,tooltipText:p,useDescriptionTooltip:m=!1,onRemove:h,hideCheckBadge:g=!1,showTypeLabel:y=!1,onComplete:C,onSelect:w,onMore:b,countLabelOverride:f,size:_="square"}=e||{},{t:v}=Ce.useTranslation(),[k,A]=o.useState(!1),B=o.useRef(null),[x,N]=o.useState(!1);o.useEffect(()=>{B.current?.matches(":hover")&&N(!0)},[]);const{playing:D,playingIndex:P,previewUrls:H,previewHover:M,setPreviewHover:z,previewBtnRef:j,handlePreview:S}=v4(r,a?.key),I=o.useCallback(()=>{w?w():A(!0)},[w]),W=o.useCallback(()=>A(!1),[]),Z=o.useCallback(()=>N(!0),[]),U=o.useCallback(()=>N(!1),[]),q=o.useCallback(()=>z(!0),[z]),K=o.useCallback(()=>z(!1),[z]),[L,E]=o.useState(null);o.useLayoutEffect(()=>{M&&E(j.current?.getBoundingClientRect()??null)},[M,j]);const[F,R]=o.useState(null);o.useLayoutEffect(()=>{x&&!k&&m&&R(B.current?.getBoundingClientRect()??null)},[x,k,m]);const O=o.useCallback(Be=>{Be.target===Be.currentTarget&&(Be.key==="Enter"||Be.key===" ")&&(Be.preventDefault(),I())},[I]),$=r||null,Y=o.useMemo(()=>{if(!m)return null;const Be=p?(Array.isArray(p)?p:[p]).filter(Boolean):null,nt=Be&&Be.length>0?Be:x4($);return nt&&nt.length>0?nt:null},[m,p,$]),Q=o.useCallback(Be=>{Be.stopPropagation(),h?.()},[h]),X=o.useCallback(Be=>Be.stopPropagation(),[]),ce=o.useCallback(Be=>{typeof C=="function"&&C(Be)},[C]),xe=u||(d&&r?.id!=null?d.has(String(r.id)):!1),te=!xe&&(c!=null&&r?.id!=null?c.has(String(r.id)):!1);tl("speechear.popup.close",W);const re=pi(),V=`${a?.label||""} ${n+1}`,ae=$?.title||$?.name||V;let ue=a?.icon,ge,me="",oe="";try{const Be=$?.category_0||$?.category_main_code||$?.category_main,nt=$?.category_1||$?.category_sub_code||$?.category_sub,Ge=re.find(Xe=>Xe.key===Be);Ge?.icon&&(ue=Ge.icon),!ge&&Ge?.color&&(ge={"--t-item-fg":Ge.color}),!ge&&$?.iconColor&&(ge={"--t-item-fg":$.iconColor}),me=Ge?v(`topic.${Ge.key}`,{defaultValue:Ge.label||""}):"";try{const Xe=Ge?.subs?.find(De=>De.key===nt);oe=Xe?v(`topic.sub.${Xe.key}`,{defaultValue:Xe.label||""}):""}catch{}}catch{}const he=oe?`${me} / ${oe}`:me||a?.label||ae,_e=Be=>v("training.countQuestions",{n:Be}),Le=Be=>v("training.countSentences",{n:Be});let Ue="";try{if($)if(a?.key==="LISTEN_IN_NOISE"){let Be=0;Array.isArray($.items)&&$.items.length>0?Be=$.items.length:Array.isArray($.sentences)&&$.sentences.length>0?Be=$.sentences.length:$.sentences&&(Be=1),Ue=Le(Be)}else if(a?.key==="SHORT_STORY"){let Be=1;Array.isArray(r?.items)?Be=r.items.length:Array.isArray(r?.raw&&r.raw?.items)?Be=r.raw.items.length:Array.isArray($?.questions)?Be=$.questions.length:Array.isArray($?.sentences)&&(Be=$.sentences.length),Ue=_e(Be)}else if(a?.key==="LONG_STORY"){let Be=1;if(Array.isArray($.items)&&$.items.length>0){const nt=$.items.reduce((Ge,Xe)=>{const De=Xe.questionItems;return Array.isArray(De)?Ge+De.length:Array.isArray(Xe.questions)?Ge+Xe.questions.length:Ge},0);Be=nt>0?nt:$.items.length}else Array.isArray($.questions)&&$.questions.length>0?Be=$.questions.length:Array.isArray($.sentences)&&$.sentences.length>0&&(Be=$.sentences.length);Ue=_e(Be)}else if(a?.key==="ORDERING_SENTENCE"){let Be=1;Array.isArray($.items)&&$.items.length>0?Be=$.items.length:Array.isArray($.sentences)&&$.sentences.length>0&&(Be=$.sentences.length),Ue=Le(Be)}else Array.isArray($.items)&&(Ue=$.items.length>0?_e($.items.length):"")}catch{}const Ie=_==="row",de=_==="list"||Ie,Ae=_==="compact",Re=_==="small",Pe=Re&&a?.key?IC().find(Be=>Be.key===a.key):void 0,we=Pe?mi[Pe.key]:void 0,Se=Pe?we?v(`trainingType.${we}.title`,{defaultValue:Pe.label}):Pe.label??"":"",Oe=!!y&&!!a?.label&&a.label!==String(ae)||Re&&!!Se&&Se!==String(ae);return t.jsxs(t.Fragment,{children:[t.jsxs("div",{ref:B,className:`training-block-button${de?" training-block-button--list":""}${Ie?" training-block-button--row":""}${Ae?" training-block-button--compact":""}${Re?" training-block-button--small":""}${xe?" training-block-button--completed":""}${te?" training-block-button--selected":""}${Oe&&!Re?" training-block-button--withType":""}${Re&&!Oe?" training-block-button--no-type-label":""}`,onClick:I,onPointerEnter:Z,onPointerLeave:U,role:"button",tabIndex:0,onKeyDown:O,"aria-label":typeof s=="string"?s:typeof ae=="string"?ae:void 0,title:!m&&p&&(Array.isArray(p)?p.filter(Boolean).join(`
|
|
853
|
+
`):p)||void 0,children:[t.jsxs("div",{className:"training-block-button__left",children:[y&&a?.label&&a.label!==String(ae)&&t.jsx("span",{className:"training-block-button__type-label caption-1",children:a.label}),Re&&Se&&Se!==String(ae)&&t.jsx("span",{className:"training-block-button__type-label caption-2",children:Se}),t.jsx(Tl,{icon:ue,label:ae,tooltip:he,wrapperStyle:ge,iconSize:Re||Ae?"small":"medium"}),!g&&(xe||te)&&!(h&&x)&&t.jsx(bt,{className:h?"training-block-button__check--removable":void 0,type:"dot",icon:"check",position:"top-left",size:"medium","aria-label":xe?v("training.completed","\uD6C8\uB828 \uC644\uB8CC"):v("training.selected","\uC120\uD0DD\uB428")}),h&&t.jsx(bt,{className:`training-block-button__remove${x?" is-hover":""}`,type:"dot",icon:"remove",position:"top-left",size:"medium","aria-label":v("common.remove","\uC81C\uAC70"),onClick:Q}),t.jsx("div",{className:`training-block-button__title ${Ae?"body-3":Re?"body-3b":"h3"}`,children:String(ae)}),t.jsxs("div",{className:"training-block-button__description",children:[(()=>{const Be=f!==void 0?f:Ue;return Be?t.jsx("div",{className:`training-block-button__count ${Re?"caption-2":"caption-1"}`,children:Be}):null})(),t.jsx("div",{className:"training-block-button__chevron",children:t.jsx(Ze,{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:Re?12:20})})]}),(de&&!Ie||Re)&&H.length>0&&t.jsx("div",{ref:j,className:"training-block-button__preview","data-tooltip-ignore":!0,onClick:X,onPointerEnter:q,onPointerLeave:K,children:t.jsx(le,{htmlType:"button",size:Re?28:32,type:"dot",icon:D?"pause":"play",variant:Re?"transparent-lightGray":"default",useBorder:!1,selected:D,ariaLabel:D?v("training.stop","\uC815\uC9C0"):v("training.preview","\uBBF8\uB9AC \uB4E3\uAE30"),onClick:S})})]}),b&&t.jsx("div",{className:"training-block-button__more","data-tooltip-ignore":!0,onClick:Be=>{Be.stopPropagation(),b(Be)},children:t.jsx(le,{htmlType:"button",size:40,type:"dot",icon:"more-horizontal",variant:"transparent-lightGray",useBorder:!1,ariaLabel:v("common.more","\uB354\uBCF4\uAE30")})})]}),M&&t.jsx(vn,{anchorRect:L,text:D?v("training.stop","\uC815\uC9C0"):v("training.preview","\uBBF8\uB9AC \uB4E3\uAE30"),offset:8,onClose:K}),x&&!k&&m&&(Y?t.jsx(Vn,{anchorRect:F,items:Y,activeIndex:P,onClose:U}):$?.subTitle?t.jsx(vn,{anchorRect:F,text:$.subTitle,offset:8,onClose:U}):null),k&&l&&l({trainingData:$,typeKey:a?.key??"",onClose:W,onComplete:ce,popupTitle:String(ae),popupSubTitle:a?.subTitle,depth:i!=null?String(i):void 0,popupIcon:ue,popupIconTooltip:String(he),popupWrapperStyle:ge})]})}const Ml=200;function _4(e){return e.itemId?(VC()[e.trainingType]??[]).find(n=>n?.id!=null&&String(n.id)===String(e.itemId))??null:null}function Ll({plan:e,anchorRect:n,offset:a=12,onClose:r}){const{t:s}=Ce.useTranslation(),i=o.useMemo(()=>qC(s).map(u=>({type:u,items:(e.items??[]).filter(d=>d.trainingType===u.key)})).filter(u=>u.items.length>0),[e.items,s]);if(i.length===0)return null;const l=t.jsx("div",{className:"tooltip-training__box",children:t.jsx("div",{className:"tooltip-training__groups",children:i.flatMap(({type:u,items:d},c)=>[c>0?t.jsx("div",{className:"tooltip-training__divider"},`div-${u.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:u.label})}),t.jsx("div",{className:"tooltip-training__items",children:d.map((p,m)=>{const h=_4(p);return h?t.jsx(oo,{index:m,type:u,trainingData:h,size:"compact",hideCheckBadge:!0},p.itemId??m):null})})]},u.key)])})});return n?t.jsx(rn,{anchorRect:n,offset:a,onClose:r,closeOnOutsideClick:!1,className:"tooltip-training",ariaLabel:s("tooltip.training","\uD6C8\uB828 \uC548\uB0B4"),children:l}):l}const w4=200;function A4({icon:e,count:n,title:a,plan:r,tooltip:s=!0,className:i="",onClick:l,onMouseEnter:u,onMouseLeave:d}){const c=Ee("count-tile",l&&"count-tile--clickable",i),p=o.useRef(null),[m,h]=o.useState(null),g=o.useRef(null),y=o.useRef(null),C=!!(m&&r&&s),w=o.useCallback(()=>{g.current&&(clearTimeout(g.current),g.current=null),y.current&&(clearTimeout(y.current),y.current=null)},[]),b=o.useCallback(()=>{w(),h(null)},[w]),f=o.useCallback(()=>{!s||!r||(w(),g.current=setTimeout(()=>{g.current=null,h(p.current?.getBoundingClientRect()??null)},Ml))},[s,r,w]),_=o.useCallback(()=>{g.current&&(clearTimeout(g.current),g.current=null),!y.current&&(y.current=setTimeout(()=>{y.current=null,h(null)},w4))},[]);return o.useEffect(()=>()=>{w()},[w]),o.useEffect(()=>{(!s||!r)&&b()},[s,r,b]),o.useEffect(()=>{if(!C)return;const v=A=>A instanceof Element&&(p.current?.contains(A)||!!A.closest(".tooltip-training")),k=A=>{v(A.target)?w():_()};return document.addEventListener("pointerover",k,!0),()=>document.removeEventListener("pointerover",k,!0)},[C,w,_]),t.jsxs(t.Fragment,{children:[t.jsxs("div",{ref:p,className:c,onClick:l?v=>{b(),l(v)}:void 0,onKeyDown:l?v=>{v.key!=="Enter"&&v.key!==" "||(v.preventDefault(),v.currentTarget.click())}:void 0,onPointerEnter:v=>{v.pointerType==="touch"||v.pointerType==="pen"?b():f()},onMouseEnter:u,onMouseLeave:v=>{_(),d?.(v)},role:l?"button":"img",tabIndex:l?0:void 0,"aria-label":`${a} ${n}`,children:[t.jsx(Ze,{icon:e,size:20,className:"count-tile__icon"}),t.jsx("span",{className:"count-tile__count h5","aria-hidden":"true",children:n})]}),m&&r&&t.jsx(Ll,{plan:r,anchorRect:m,onClose:b})]})}let Sa=0,$l="",so="",ja=0;function Rl(){return Pl(!1)}function k4(){return Pl(!0)}function Pl(e){const n=typeof document<"u";Sa===0&&n&&($l=document.body.style.overflow,document.body.style.overflow="hidden"),e&&n&&(ja===0&&(so=document.body.style.paddingRight),ja++,document.body.style.paddingRight="0px"),Sa++;let a=!1;return()=>{a||(a=!0,Sa=Math.max(0,Sa-1),e&&n&&(ja=Math.max(0,ja-1),ja===0&&(so?document.body.style.paddingRight=so:document.body.style.removeProperty("padding-right"))),Sa===0&&n&&(document.body.style.overflow=$l))}}function B4(){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 N4({open:e,onClose:n,ariaLabel:a,title:r,children:s,size:i="md",closeOnBackdrop:l=!0,closeOnEscape:u=!0,showClose:d=!0,className:c,contentClassName:p}){const{t:m}=Ce.useTranslation(),h=o.useId(),g=o.useRef(null),y=o.useCallback(()=>n(),[n]);o.useEffect(()=>{if(!e)return;const f=document.activeElement,_=Rl(),v=g.current;return zr(v,f),v?.focus(),()=>{_();const k=document.activeElement;(!k||k===document.body||v&&v.contains(k))&&Vr(f)?.focus?.()}},[e]);const C=o.useRef(y),w=o.useRef(u);o.useEffect(()=>{C.current=y,w.current=u}),o.useEffect(()=>{if(e)return zn(()=>{w.current&&C.current()})},[e]);const b=o.useRef(!1);return Or(g,e),!e||typeof document>"u"?null:Xt.createPortal(t.jsx("div",{className:Ee("dialog",c),onPointerDown:l?f=>{b.current=f.target===f.currentTarget}:void 0,onMouseDown:f=>{f.target===f.currentTarget&&f.preventDefault()},onClick:l?f=>{const _=b.current;b.current=!1,_&&f.target===f.currentTarget&&y()}:void 0,children:t.jsxs("div",{ref:g,role:"dialog","aria-modal":"true","aria-label":r?void 0:a,"aria-labelledby":r?h:void 0,tabIndex:-1,className:Ee("dialog__surface",`dialog__surface--${i}`,p),onClick:f=>f.stopPropagation(),children:[r?t.jsx("div",{className:"dialog__header",children:t.jsx("h2",{id:h,className:"dialog__title h4b",children:r})}):null,d?t.jsx("button",{type:"button",className:"dialog__close","aria-label":m("common.close","\uB2EB\uAE30"),onClick:y,children:t.jsx(B4,{})}):null,t.jsx("div",{className:"dialog__body",children:s})]})}),document.body)}function E4({columns:e,rows:n,rowKey:a,title:r,toolbar:s,empty:i,loading:l,caption:u,className:d=""}){const{t:c}=Ce.useTranslation(),p=!l&&n.length===0;return t.jsxs("div",{className:Ee("board",d),children:[r||s?t.jsxs("div",{className:"board__head",children:[r?t.jsx("h2",{className:"board__title",children:r}):t.jsx("span",{}),s?t.jsx("div",{className:"board__toolbar",children:s}):null]}):null,t.jsxs("table",{className:"board__table",children:[u?t.jsx("caption",{className:"board__caption",children:u}):null,t.jsx("thead",{children:t.jsx("tr",{children:e.map(m=>t.jsx("th",{scope:"col",className:Ee("board__th",`board__cell--${m.headerAlign??m.align??"left"}`),style:m.width?{width:m.width}:void 0,children:m.header},m.key))})}),t.jsx("tbody",{children:l?t.jsx("tr",{children:t.jsx("td",{className:"board__state",colSpan:e.length,children:l})}):p?t.jsx("tr",{children:t.jsx("td",{className:"board__state",colSpan:e.length,children:i??c("board.empty","\uB4F1\uB85D\uB41C \uD56D\uBAA9\uC774 \uC5C6\uC2B5\uB2C8\uB2E4.")})}):n.map((m,h)=>t.jsx("tr",{className:"board__row",children:e.map(g=>t.jsx("td",{className:Ee("board__td",`board__cell--${g.align??"left"}`),children:g.render(m,h)},g.key))},a(m,h)))})]})]})}function D4({name:e,role:n,photo:a,media:r,credentials:s,size:i=190,className:l=""}){return t.jsxs("div",{className:Ee("person-card",l),children:[t.jsx("div",{className:"person-card__photo",style:{width:i,height:i},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,s?.length?t.jsx("ul",{className:"person-card__credentials",children:s.map(u=>t.jsx("li",{children:u},u))}):null]})}function S4({groups:e,className:n=""}){return t.jsx("div",{className:Ee("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,s)=>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((i,l)=>t.jsx("p",{children:i},l))})]},`${r.label??""}-${s}`))})]},a.title))})}function j4({title:e,kind:n,body:a,badge:r,badgeSrc:s,footer:i,width:l,className:u=""}){const d=r??(s?t.jsx("img",{src:s,alt:""}):null);return t.jsxs("div",{className:Ee("publication-card",u),style:l?{width:l,flexShrink:0}:void 0,children:[d?t.jsx("div",{className:"publication-card__badge","aria-hidden":"true",children:d}):null,t.jsx("h3",{className:"publication-card__title",children:e}),n?t.jsx("p",{className:"publication-card__kind",children:n}):null,t.jsx("p",{className:"publication-card__body",children:a}),i?t.jsx("div",{className:"publication-card__footer",children:i}):null]})}function T4({logo:e,alt:n,onDone:a,durationMs:r=3e3}){const s=xa(a);return o.useEffect(()=>{const i=setTimeout(()=>s.current?.(),r);return()=>clearTimeout(i)},[r,s]),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 M4({eyebrow:e,eyebrowIndex:n,title:a,description:r,level:s=2,tone:i="dark",className:l=""}){const u=s===1?"h1":"h2";return t.jsxs("div",{className:Ee("section-header",`section-header--${i}`,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(u,{className:"section-header__title",children:a}):null,r?t.jsx("div",{className:"section-header__description",children:r}):null]})}function L4({items:e,className:n=""}){return t.jsx("ul",{className:Ee("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 Il({value:e,onChange:n,suggestions:a,openOnFocus:r=!1}){const s=o.useId(),[i,l]=o.useState(!1),[u,d]=o.useState(-1),c=o.useRef(null),p=o.useMemo(()=>{if(!a.length)return[];const B=e??"";return B?a.filter(x=>x.toLowerCase().includes(B.toLowerCase())):r?a:[]},[a,e,r]),[m,h]=o.useState(!1),g=o.useRef([]),y=m&&p.length===0?g.current:p;o.useEffect(()=>{y.length&&(g.current=y)},[y]);const C=o.useCallback(()=>h(!0),[]),w=o.useCallback(()=>h(!1),[]);o.useEffect(()=>{i||d(-1)},[i]),o.useEffect(()=>()=>{c.current&&clearTimeout(c.current)},[]);const b=u<y.length?u:-1,f=o.useCallback(B=>{n?.(B),l(!1)},[n]),_=o.useCallback(()=>l(!0),[]),v=o.useCallback(()=>{l(!0),d(-1)},[]),k=o.useCallback(()=>{c.current=setTimeout(()=>l(!1),120)},[]),A=o.useCallback(B=>{B.nativeEvent.isComposing||B.keyCode===229||(B.key==="ArrowDown"?(B.preventDefault(),l(!0),d(x=>Math.min(y.length-1,(x<y.length?x:-1)+1))):B.key==="ArrowUp"?(B.preventDefault(),d(x=>Math.max(-1,(x<y.length?x:y.length)-1))):B.key==="Enter"?b>=0&&f(y[b]):B.key==="Escape"&&i&&(B.preventDefault(),l(!1)))},[y,b,i,f]);return{listId:s,open:i,activeIdx:b,filtered:y,handleFocus:_,handleBlur:k,handleInput:v,handleKeyDown:A,handleSelect:f,handleCompositionStart:C,handleCompositionEnd:w}}const io=typeof window<"u"?o.useLayoutEffect:o.useEffect;function Un(e){const{value:n,defaultValue:a,name:r,inputRef:s,onChange:i,label:l,ariaLabel:u,required:d,placeholder:c,ghostText:p,ghostHint:m,type:h="text",disabled:g=!1,readOnly:y=!1,error:C,helperText:w,maxLength:b,size:f=48,variant:_="input",fullWidth:v=!1,newline:k=!1,multiline:A=!1,rows:B=3,leftIcon:x,rightIcon:N,clearable:D=!1,list:P,showCount:H=!0,className:M="",onFocus:z,onBlur:j,onKeyDown:S,onEnter:I,inputMode:W,autoComplete:Z,autoFocus:U,suggestions:q,openOnFocus:K=!1}=e,L=y||g?void 0:q,{t:E}=Ce.useTranslation(),F=o.useId();!l&&!u&&bn(`TextField:unnamed:${F}`,"[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 R=`tf-${F}`,O=`tf-helper-${F}`,$=o.useRef(null),Y=Il({value:n??"",onChange:i,suggestions:L??[],openOnFocus:K}),Q=!!L&&Y.open&&Y.filtered.length>0,X=o.useRef(null),[ce,xe]=o.useState(null),te=o.useCallback(()=>{const we=X.current;if(!we||typeof window>"u")return;const Se=we.getBoundingClientRect(),Oe=230,Be=window.innerHeight-Se.bottom<Oe+8&&Se.top>Oe+8;xe({position:"fixed",left:Se.left,width:Se.width,...Be?{bottom:window.innerHeight-Se.top+8}:{top:Se.bottom+8},zIndex:Aa(we)})},[]);io(()=>{if(!Q)return;te();const we=Se=>{const Oe=Se.target;Oe&&Oe.nodeType===1&&Oe.closest?.(".text-field__suggestions")||te()};return window.addEventListener("scroll",we,!0),window.addEventListener("resize",te),()=>{window.removeEventListener("scroll",we,!0),window.removeEventListener("resize",te)}},[Q,te]);const re=o.useCallback(we=>{$.current=we,typeof s=="function"?s(we):s&&(s.current=we)},[s]),V=p?`${p}${m??E("wordTable.save.autoFillHint"," (Tab \uB610\uB294 space \uC785\uB825\uC2DC \uC790\uB3D9 \uC785\uB825)")}`:c,ae=n!==void 0,ue=ae&&h==="password",[ge,me]=o.useState((a??"").length),oe=ae?(n??"").length:ge,he=o.useRef(n);io(()=>{he.current=n}),o.useEffect(()=>{const we=$.current;if(!ue||!we)return;const Se=n??"";we.value!==Se&&(we.value=Se)},[ue,n]),o.useEffect(()=>{if(!k||!$.current)return;const we=$.current;we.style.height="",we.scrollHeight>we.clientHeight&&(we.style.height=`${we.scrollHeight}px`)},[n,ge,k]);const _e=b!=null&&oe>b,Le=f===32?16:20,Ue=Ee("text-field",`text-field--s${f}`,_==="display"?"text-field--display":"",v?"text-field--full-width":"",g?"text-field--disabled":"",y?"text-field--readonly":"",C?"text-field--error":"",x?"text-field--has-left-icon":"",N||D?"text-field--has-right-icon":"",M),Ie={id:R,...ue?{}:ae?{value:n}:{defaultValue:a},ref:re,placeholder:V,name:r,disabled:g,readOnly:y,autoFocus:U,maxLength:b,list:P,inputMode:W,autoComplete:Z,"aria-label":!l&&u?u:void 0,"aria-required":d,"aria-invalid":!!C,"aria-describedby":w||C?O:void 0,role:L?"combobox":void 0,"aria-autocomplete":L?"list":void 0,"aria-haspopup":L?"listbox":void 0,"aria-expanded":L?Y.open:void 0,"aria-controls":Q?Y.listId:void 0,"aria-activedescendant":Q&&Y.activeIdx>=0?`${Y.listId}-option-${Y.activeIdx}`:void 0,onChange:we=>{const Se=we.target;ae||me(Se.value.length),i?.(Se.value),L&&Y.handleInput(),ue&&queueMicrotask(()=>{const Oe=he.current??"";Se.value!==Oe&&(Se.value=Oe)})},onCompositionStart:L?Y.handleCompositionStart:void 0,onCompositionEnd:L?Y.handleCompositionEnd:void 0,onFocus:(we=>{z?.(we),L&&Y.handleFocus()}),onBlur:(we=>{j?.(we),L&&Y.handleBlur()}),onKeyDown:(we=>{const Se=(we.key==="Tab"&&!we.shiftKey||we.key===" ")&&!we.nativeEvent.isComposing;if(p&&Se&&!y&&!g&&!(we.currentTarget.value??"").trim()){we.preventDefault();const Oe=we.currentTarget;ae||(Oe.value=p,me(p.length)),i?.(p);return}L&&we.key==="Enter"&&!we.nativeEvent.isComposing&&Y.activeIdx>=0?we.preventDefault():I&&we.key==="Enter"&&!we.nativeEvent.isComposing&&(we.preventDefault(),I()),S?.(we),L&&Y.handleKeyDown(we)})},de=D&&!g&&!y&&oe>0,Ae=()=>k?t.jsx("textarea",{...Ie,className:"text-field__input text-field__input--auto body-2",rows:1}):A?t.jsx("textarea",{...Ie,className:"text-field__input text-field__input--textarea body-2",rows:B}):t.jsx("input",{...Ie,type:h,className:"text-field__input body-2"}),Re=_==="display"&&!k&&!A&&!!V,Pe=()=>t.jsxs(t.Fragment,{children:[Ae(),Re&&t.jsx("span",{className:"text-field__placeholder","aria-hidden":"true",children:V})]});return t.jsxs("div",{ref:X,className:Ue,children:[l&&t.jsxs("label",{htmlFor:R,className:"text-field__label caption-1",children:[l,d&&t.jsx("span",{className:"text-field__required",children:"*"})]}),t.jsxs("div",{className:"text-field__wrap",children:[x&&t.jsx("span",{className:"text-field__icon text-field__icon--left",children:t.jsx(Ze,{icon:x,label:"",className:"",svgClassName:"text-field__icon-svg",size:Le})}),Pe(),b!=null&&H&&t.jsxs("span",{className:`text-field__count caption-2${_e?" text-field__count--over":""}`,children:[oe,"/",b]}),de&&t.jsx(le,{size:24,type:"dot",icon:"x",variant:"transparent-gray",useBorder:!1,className:"text-field__clear",ariaLabel:E("textField.clearAriaLabel","\uC785\uB825\uAC12 \uC9C0\uC6B0\uAE30"),htmlType:"button",onMouseDown:we=>{we.preventDefault()},onClick:()=>{!ae&&$.current&&($.current.value="",me(0)),i?.("")},tabIndex:-1}),N&&!de&&t.jsx("span",{className:"text-field__icon text-field__icon--right",children:t.jsx(Ze,{icon:N,label:"",className:"",svgClassName:"text-field__icon-svg",size:Le})})]}),Q&&(typeof document>"u"?null:Xt.createPortal(t.jsx("ul",{id:Y.listId,className:"text-field__suggestions",role:"listbox",style:ce??{position:"fixed",visibility:"hidden"},"data-tooltip-ignore":!0,children:Y.filtered.map((we,Se)=>t.jsx("li",{id:`${Y.listId}-option-${Se}`,role:"option","aria-selected":Se===Y.activeIdx,className:`text-field__suggestion body-2${Se===Y.activeIdx?" is-active":""}`,onMouseDown:Oe=>Oe.preventDefault(),onClick:()=>{Y.handleSelect(we),$.current?.focus()},children:we},`${we}-${Se}`))}),document.body)),(w||C)&&t.jsx("div",{className:"text-field__footer",children:t.jsx("span",{id:O,className:"text-field__helper caption-1",role:C?"alert":void 0,children:C||w})})]})}function sn({options:e,value:n,onChange:a,placeholder:r,disabled:s=!1,block:i=!1,size:l=48,error:u=!1,className:d="",ariaLabel:c,ariaDescribedBy:p}){const{t:m}=Ce.useTranslation(),h=r??m("dropdown.placeholder","\uC120\uD0DD"),g=o.useId(),y=o.useId(),C=o.useRef(null),w=o.useCallback((j,S)=>{const I=window.innerHeight-j.bottom<260&&j.top>260;return{position:"fixed",left:j.left,minWidth:j.width,...I?{bottom:window.innerHeight-j.top+6}:{top:j.bottom+6},zIndex:Aa(S)}},[]),{open:b,setOpen:f,toggle:_,style:v,triggerRef:k,menuRef:A}=ka({computeStyle:w}),[B,x]=o.useState(-1),N=o.useCallback(()=>x(-1),[]),D=e.find(j=>j.value===n);o.useEffect(()=>{if(b){const j=e.findIndex(S=>S.value===n);x(j>=0?j:e.length?0:-1),requestAnimationFrame(()=>{const S=A.current;if(!S)return;const I=S.querySelectorAll(".dropdown__option")[j];I&&(S.scrollTop=Math.max(0,I.offsetTop-S.clientHeight/2+I.clientHeight/2))})}},[b]),o.useEffect(()=>{b&&x(j=>{if(j>=0&&j<e.length)return j;const S=e.findIndex(I=>I.value===n);return S>=0?S:e.length?0:-1})},[b,e.length]);const P=o.useCallback(()=>{s||_()},[s,_]),H=o.useCallback(j=>{j.disabled||s||(j.value!==n&&a?.(j.value),f(!1))},[a,f,s,n]);o.useEffect(()=>{s&&f(!1)},[s,f]);const M=o.useCallback(j=>{if(!s){if(!b){(j.key==="Enter"||j.key===" "||j.key==="ArrowDown")&&(j.preventDefault(),f(!0));return}if(j.key==="Escape"){j.preventDefault(),f(!1);return}j.key==="ArrowDown"?(j.preventDefault(),x(S=>{let I=S+1;for(;I<e.length&&e[I].disabled;)I++;return I<e.length?I:S})):j.key==="ArrowUp"?(j.preventDefault(),x(S=>{let I=S-1;for(;I>=0&&e[I].disabled;)I--;return I>=0?I:S})):(j.key==="Enter"||j.key===" ")&&(j.preventDefault(),e[B]?H(e[B]):f(!1))}},[s,b,e,B,H,f]),z=b?t.jsx("div",{ref:A,id:g,className:"dropdown__menu","data-tooltip-ignore":!0,role:"listbox",style:v,onMouseLeave:N,onMouseDown:j=>j.preventDefault(),children:e.map((j,S)=>t.jsxs("button",{id:`${g}-option-${S}`,type:"button",role:"option","aria-selected":j.value===n,className:Ee("dropdown__option body-2",j.value===n?"dropdown__option--active":"",S===B?"dropdown__option--active":"",j.disabled?"dropdown__option--disabled":""),onMouseDown:I=>I.preventDefault(),onClick:()=>H(j),onMouseEnter:()=>x(S),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:C,className:Ee("dropdown",`dropdown--s${l}`,b?"dropdown--open":"",i?"dropdown--block":"",u?"dropdown--error":"",d),onKeyDown:M,children:[t.jsxs("button",{ref:k,type:"button",className:"dropdown__trigger","aria-haspopup":"listbox","aria-expanded":b,"aria-controls":b?g:void 0,"aria-activedescendant":b&&B>=0?`${g}-option-${B}`:void 0,"aria-label":c,"aria-describedby":[c&&D?y:"",p??""].filter(Boolean).join(" ")||void 0,"aria-invalid":u||void 0,disabled:s,onClick:P,onBlur:j=>{b&&!A.current?.contains(j.relatedTarget)&&f(!1)},children:[t.jsx("span",{id:y,className:`dropdown__trigger-label body-2${D?"":" dropdown__trigger-label--placeholder"}`,children:D?D.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"&&Xt.createPortal(z,C.current?.closest(".ihabdevteam-core-scope")??document.body)]})}function Qa({page:e,totalPages:n,onChange:a,prevLabel:r,nextLabel:s,className:i=""}){const{t:l}=Ce.useTranslation(),u=r??l("common.prevPage","\uC774\uC804 \uD398\uC774\uC9C0"),d=s??l("common.nextPage","\uB2E4\uC74C \uD398\uC774\uC9C0"),c=Math.max(1,n),p=()=>a(Math.max(1,Math.min(c,e-1))),m=()=>a(Math.min(c,e+1));return t.jsxs("div",{className:Ee("pagination",i),children:[t.jsx(le,{htmlType:"button",size:32,type:"dot",shape:"rounded",icon:"chevron-left",ariaLabel:u,disabled:e<=1,onClick:p}),t.jsxs("span",{className:"pagination__info body-3","aria-live":"polite","aria-atomic":"true",children:[Math.min(Math.max(1,e),c)," / ",c]}),t.jsx(le,{htmlType:"button",size:32,type:"dot",shape:"rounded",icon:"chevron-right",ariaLabel:d,disabled:e>=n,onClick:m})]})}function An(e){const{t:n}=Ce.useTranslation(),{options:a=[],value:r=a.find(f=>!f.disabled)?.key??a[0]?.key,onChange:s=f=>{},className:i="",size:l=40,shape:u="pill",useBG:d=!0,fullWidth:c=!1,minButtonWidth:p,ariaLabel:m}=e||{},h=o.useRef(null),g=a.filter(f=>!f.disabled),y=f=>{if(!g.length)return;const _=Math.max(0,g.findIndex(k=>k.key===r)),v=f==="first"?g[0]:f==="last"?g[g.length-1]:g[(_+f+g.length)%g.length];v&&(s(v.key),Array.from(h.current?.querySelectorAll("[data-segkey]")??[]).find(k=>k.dataset.segkey===v.key)?.focus())},C=f=>{switch(f.key){case"ArrowRight":case"ArrowDown":y(1);break;case"ArrowLeft":case"ArrowUp":y(-1);break;case"Home":y("first");break;case"End":y("last");break;default:return}f.preventDefault()},w=f=>{const _=v=>typeof v=="string"||typeof v=="number";if(!(!_(f.label)||f.count==null||f.count===!1||!_(f.count)))return`${f.label}, ${f.count}`},b=g.some(f=>f.key===r)?r:g[0]?.key;return t.jsx("div",{ref:h,onKeyDown:C,className:Ee("segmented-control",`segmented-control--${u}`,`segmented-control--${l}`,c&&"segmented-control--full",!d&&"segmented-control--no-bg",p!=null&&"segmented-control--min",i),style:p!=null?{"--segmented-min-button-w":`${p}px`}:void 0,role:"radiogroup","aria-label":m??n("segmentedControl.ariaLabel","\uC120\uD0DD \uD0ED"),children:a.map(f=>t.jsx(le,{htmlType:"button",role:"radio","aria-checked":f.key===r,"data-segkey":f.key,tabIndex:f.key===b?0:-1,label:f.label,count:f.count,ariaLabel:w(f),disabled:f.disabled,className:f.key===r?"is-selected":"",onClick:()=>{f.disabled||s(f.key)},size:l,shape:u,useBorder:!1,useBG:!1},f.key))})}function lo({count:e,search:n,segment:a,filters:r,pageSize:s,pagination:i,actions:l,className:u}){const{t:d}=Ce.useTranslation(),c=e!=null&&t.jsxs("p",{className:"toolbar__count body-1",role:"status","aria-atomic":"true",children:[e.prefix??d("common.totalPrefix","\uCD1D "),t.jsx("span",{className:"toolbar__count-highlight",children:e.value}),e.unit,e.suffix]}),p=!!(n||r?.length||s||i||l);return t.jsxs("div",{className:Ee("toolbar",u),children:[t.jsxs("div",{className:"toolbar__row",children:[c,a&&(Array.isArray(a)?a:[a]).map((m,h)=>t.jsx(An,{size:40,...m},m.ariaLabel??h))]}),p&&t.jsx("div",{className:"toolbar__row",children:t.jsxs("div",{className:"toolbar__row-end",children:[n&&t.jsx(Un,{className:"toolbar__search",size:40,value:n.value,onChange:n.onChange,placeholder:n.placeholder??d("common.search","\uAC80\uC0C9"),ariaLabel:n.placeholder??d("common.search","\uAC80\uC0C9"),autoFocus:n.autoFocus,clearable:!0}),r?.map((m,h)=>t.jsx(sn,{size:40,options:m.options,value:m.value,onChange:m.onChange,ariaLabel:m.ariaLabel},h)),(s||i)&&t.jsxs("div",{className:"toolbar__pager",children:[s&&t.jsx(sn,{size:40,options:s.options,value:s.value,onChange:s.onChange,ariaLabel:s.ariaLabel??d("common.pageSizeSelect","\uD398\uC774\uC9C0\uB2F9 \uD45C\uC2DC \uAC1C\uC218")}),i&&t.jsx(Qa,{page:i.page,totalPages:i.total,onChange:i.onChange,prevLabel:i.prevLabel,nextLabel:i.nextLabel})]}),l]})})]})}function Fl(e){return typeof e=="string"?e:typeof e=="number"?String(e):Array.isArray(e)?e.map(Fl).join(""):""}function $4(e){let n=e.replace(/\r\n/g,`
|
|
854
854
|
`).replace(/\r/g,`
|
|
855
855
|
`);n=n.replace(/^\n+/,"").replace(/\n+$/,"");const a=n.split(`
|
|
856
856
|
`).map(i=>i.replace(/\t/g," ")),r=a.filter(i=>i.trim().length>0),s=r.length>0?Math.min(...r.map(i=>i.match(/^ */)?.[0].length??0)):0;return a.map(i=>i.slice(s)).join(`
|
|
857
|
-
`)}const R4=new Set(["pnpm","npm","yarn","node","git","curl","docker","cat","ls","cd","rm","mv","cp","echo","export"]),P4=/^(?: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 I4(e,n){let a=e;const r=[],s=/^(?:sh|bash|zsh|shell|console)$/.test(n.toLowerCase()),i=(l,
|
|
857
|
+
`)}const R4=new Set(["pnpm","npm","yarn","node","git","curl","docker","cat","ls","cd","rm","mv","cp","echo","export"]),P4=/^(?: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 I4(e,n){let a=e;const r=[],s=/^(?:sh|bash|zsh|shell|console)$/.test(n.toLowerCase()),i=(l,u)=>r.push({type:l,content:u});for(;a.length>0;){const l=a.match(/^\s+/);if(l){i("whitespace",l[0]),a=a.slice(l[0].length);continue}if(!s&&a.startsWith("//")){const y=a.indexOf(`
|
|
858
858
|
`),C=y===-1?a:a.slice(0,y);i("comment",C),a=a.slice(C.length);continue}if(s&&a.startsWith("#")){const y=a.indexOf(`
|
|
859
|
-
`),C=y===-1?a:a.slice(0,y);i("comment",C),a=a.slice(C.length);continue}const c=a.match(/^\/\*[\s\S]*?\*\//);if(c){i("comment",c[0]),a=a.slice(c[0].length);continue}const d=a.match(/^(`(?:\\.|[^`])*`|"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*')/);if(d){i("string",d[0]),a=a.slice(d[0].length);continue}const u=a.match(/^\d+(?:\.\d+)?/);if(u){i("number",u[0]),a=a.slice(u[0].length);continue}const p=a.match(P4);if(p){i("keyword",p[0]),a=a.slice(p[0].length);continue}const m=a.match(/^[A-Za-z_$][A-Za-z0-9_$-]*/);if(m){const y=m[0];i(s&&R4.has(y)?"command":"identifier",y),a=a.slice(y.length);continue}const h=a.match(/^[=+\-*/%<>!&|^~?:]+/);if(h){i("operator",h[0]),a=a.slice(h[0].length);continue}const f=a.match(/^[()[\]{};.,]/);if(f){i("punctuation",f[0]),a=a.slice(1);continue}i("other",a[0]),a=a.slice(1)}return r}function F4({children:e,language:n="bash",title:a="",showCopy:r=!0,size:s="default",className:i=""}){const{t:l}=Ce.useTranslation(),[c,d]=o.useState(!1),u=$4(Fl(e)),p=o.useRef(null);o.useEffect(()=>()=>{p.current&&clearTimeout(p.current)},[]);const m=async()=>{try{if(!await TC(u))return;d(!0),p.current&&clearTimeout(p.current),p.current=setTimeout(()=>d(!1),2e3)}catch{}},h=I4(u,n),f=s==="small"?"caption-1":"body-3";return t.jsxs("div",{className:Ee("code-box",s==="small"?"code-box--small":"",i),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(ce,{htmlType:"button",className:"code-box__copy",size:40,type:"dot",variant:"transparent-gray",useBorder:!1,icon:c?"check":"copy",onClick:m,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:h.map((y,C)=>t.jsx("span",{className:`code-token ${y.type} ${f}`,children:y.content},C))})})]})}const O4={position:"absolute",width:1,height:1,margin:-1,padding:0,overflow:"hidden",clipPath:"inset(50%)",whiteSpace:"nowrap",border:0};function Ta(e){const{t:n}=Ce.useTranslation(),{variant:a="spinner",size:r=24,progress:s=null,label:i}=e||{},l=i||n("loader.loading","Loading");if(a==="bar"){const d=s==null||!Number.isFinite(Number(s)),u=d?0:Math.max(0,Math.min(100,Number(s)));return t.jsx("div",{className:`loader-bar${d?" loader-bar--indeterminate":""}`,role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":d?void 0:u,"aria-label":l,children:t.jsx("div",{className:"loader-bar__inner",style:d?void 0:{width:`${u}%`}})})}const c=typeof r=="number"?`${r}px`:r;return t.jsxs("div",{className:"loader-spinner",style:{width:c,height:c},role:"status","aria-label":l,children:[t.jsx("span",{style:O4,children:l}),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 Ol({checked:e,onChange:n,disabled:a=!1,label:r,ariaLabel:s,labelPosition:i="right",className:l="",id:c}){const d=r&&t.jsx("span",{className:"toggle__label body-3",children:r});return t.jsxs("label",{className:`toggle${a?" toggle--disabled":""} ${l}`.trim(),children:[i==="left"&&d,t.jsx("input",{id:c,type:"checkbox",role:"switch",checked:e,disabled:a,onChange:u=>n?.(u.target.checked),"aria-label":!r&&s?s:void 0}),t.jsx("span",{className:"toggle__slider"}),i==="right"&&d]})}function Hl({checked:e=!1,onChange:n,disabled:a,indeterminate:r,label:s,size:i="medium",className:l,title:c,ariaLabel:d}){const u=o.useRef(null),p=o.useId(),m=o.useRef(!!r);return m.current=!!r,o.useEffect(()=>{u.current&&(u.current.indeterminate=!!r)}),t.jsxs("label",{className:Ee("checkbox",i==="small"&&"checkbox--small",i==="large"&&"checkbox--large",a&&"checkbox--disabled",l),htmlFor:p,title:c,children:[t.jsx("input",{ref:u,id:p,type:"checkbox",className:"checkbox__input",checked:e,onChange:h=>{n?.(h.target.checked),u.current&&(u.current.indeterminate=m.current)},disabled:a,"aria-label":!s&&d?d:void 0}),t.jsx("span",{className:"checkbox__box"}),s&&t.jsx("span",{className:"checkbox__label body-3",children:s})]})}function H4({count:e,actions:n,onClear:a,clearLabel:r,visible:s,content:i,max:l}){const{t:c}=Ce.useTranslation(),d=s!==void 0?s:e>0,u=r??c("bulkBar.clearSelection","\uC120\uD0DD \uD574\uC81C"),p=o.useRef(null),m=o.useRef(null),h=o.useRef(null),f=o.useRef(d);o.useLayoutEffect(()=>{const g=m.current,_=f.current;if(f.current=d,d&&!_){const v=typeof document<"u"?document.activeElement:null;h.current=v&&v!==document.body&&!g?.contains(v)?v:null}else!d&&_&&g&&g.contains(document.activeElement)&&Ua(g,h.current)},[d]);const[y,C]=o.useState(!1),w=o.useRef(!1),b=o.useRef(null);return o.useEffect(()=>{const g=p.current;if(!g)return;const _=N=>{w.current=N,C(N)},v=()=>{const N=g.firstElementChild??g,D=Array.from(N.children);if(D.length<2){_(!1);return}const P=D[0].offsetTop,H=D.some(I=>I.offsetTop!==P);if(!w.current){b.current=g.clientWidth,H&&_(!0);return}if(H)return;const M=D[0],z=D[D.length-1],j=z.offsetLeft+z.offsetWidth-M.offsetLeft,S=b.current;(S==null||j<=S)&&_(!1)};if(v(),typeof ResizeObserver>"u")return;const k=new ResizeObserver(v);k.observe(g);const A=g.parentElement;let B=A?.clientWidth??0;const x=new ResizeObserver(()=>{const N=A?.clientWidth??0;N!==B&&(B=N,b.current=null,v())});return A&&x.observe(A),()=>{k.disconnect(),x.disconnect()}},[i,e]),t.jsxs("div",{ref:m,className:`bulk-bar ${d?"bulk-bar--visible":""}`,inert:!d||void 0,"aria-hidden":d?void 0:!0,children:[t.jsx("span",{ref:p,className:"bulk-bar__count body-2",role:"status",children:i??t.jsx("b",{children:c("common.selectedCount",{count:e})})}),l!==void 0&&t.jsx(bt,{size:"small",fill:"soft",variant:"main",label:`${e} / ${l}`}),t.jsxs("div",{className:`bulk-bar__actions${y?" bulk-bar__actions--stacked":""}`,children:[t.jsx(ce,{htmlType:"button",size:40,label:u,onClick:a}),n.map((g,_)=>t.jsx(ce,{htmlType:"button",size:40,variant:g.variant??"default",icon:g.icon,label:g.label,onClick:g.onClick},_))]})]})}const z4=[{\uC5F4\uC1E0:"edit",icon:"edit-2",\uB2EB\uACE0\uD560\uAE4C:!0},{\uC5F4\uC1E0:"duplicate",icon:"copy",\uB2EB\uACE0\uD560\uAE4C:!1},{\uC5F4\uC1E0:"publish",icon:"book-marked",\uB2EB\uACE0\uD560\uAE4C:!1},{\uC5F4\uC1E0:"copyLink",icon:"link",\uB2EB\uACE0\uD560\uAE4C:!1},{\uC5F4\uC1E0:"remove",icon:"trash-2",\uB2EB\uACE0\uD560\uAE4C:!0}];function V4(e){const{onClose:n,className:a}=e;return t.jsx("div",{className:Ee("item-actions",a),children:z4.map(({\uC5F4\uC1E0:r,icon:s,\uB2EB\uACE0\uD560\uAE4C:i})=>{const l=e[r];if(!l)return null;const c=r==="publish"?l.published?l.unpublish:l.publish:l;return t.jsx(ce,{htmlType:"button",size:40,type:"dot",icon:s,ariaLabel:c.label,showTooltipInfo:c.label,onClick:()=>{i&&n(),c.onClick()}},r)})})}function zl(e,n){const a=()=>{if(e){const[C,w]=e.split("-");return{y:+C,m:+w-1}}const[f,y]=Pr(n).split("-");return{y:+f,m:+y-1}},[r,s]=o.useState(()=>a().y),[i,l]=o.useState(()=>a().m),c=o.useRef(e);o.useEffect(()=>{if(e===c.current)return;c.current=e;const f=a();s(f.y),l(f.m)},[e]);const d=o.useRef({y:r,m:i});o.useEffect(()=>{d.current={y:r,m:i}},[r,i]);const u=o.useCallback(f=>{const y=d.current.y*12+d.current.m+f,C=Math.floor(y/12),w=y-C*12;d.current={y:C,m:w},s(C),l(w)},[]),p=o.useCallback(()=>u(-1),[u]),m=o.useCallback(()=>u(1),[u]),h=o.useCallback((f,y)=>{d.current={y:f,m:y},s(f),l(y)},[]);return{viewY:r,viewM:i,prevMonth:p,nextMonth:m,setViewYM:h}}function er(e,n){return new Date(e,n+1,0).getDate()}function W4(e,n){return new Date(e,n,1).getDay()}function tr(e,n,a){return`${e}-${String(n+1).padStart(2,"0")}-${String(a).padStart(2,"0")}`}function q4(e){if(!e)return"";const[n,a,r]=e.split("-");return`${n}. ${a}. ${r}.`}function U4(e,n,a,r){const s=a?+a.split("-")[0]:e-10,i=r?+r.split("-")[0]:e+10,l=[];for(let c=s;c<=i;c++)for(let d=0;d<12;d++){const u=`${c}-${String(d+1).padStart(2,"0")}`;a&&u<a.slice(0,7)||r&&u>r.slice(0,7)||l.push({value:u,label:n(c,d+1)})}return l}function G4({value:e,onChange:n,size:a=48,min:r,max:s,disabled:i,placeholder:l,className:c,today:d}){const{t:u}=Ce.useTranslation(),p=l??u("datePicker.chooseDate","\uB0A0\uC9DC \uC120\uD0DD"),m=o.useMemo(()=>u("calendar.dow",{returnObjects:!0}),[u]),h=Pr(d),{viewY:f,viewM:y,prevMonth:C,nextMonth:w,setViewYM:b}=zl(e,d),g=o.useId(),_=o.useCallback((E,F)=>{const R=window.innerHeight,O=window.innerWidth,$=typeof document<"u"?document.getElementById(g):null,Y=$?.offsetHeight||300,Q=Math.max(E.width,$?.offsetWidth||0,260),X=R-E.bottom<Y&&E.top>Y,ie=8,be=(ne,oe)=>Math.min(Math.max(ie,ne),Math.max(ie,oe));return{position:"fixed",left:be(E.left,O-Q-ie),width:E.width,minWidth:260,...X?{bottom:be(R-E.top+6,R-Y-ie)}:{top:be(E.bottom+6,R-Y-ie)},zIndex:Aa(F)}},[g]),{open:v,setOpen:k,toggle:A,style:B,triggerRef:x,menuRef:N}=ka({computeStyle:_,onScroll:"reposition",onResize:"reposition",ignoreOutsideClickSelector:".dropdown__menu"});o.useEffect(()=>{if(!v)return;const E=N.current;return(E?.querySelector(".date-picker__day--selected:not(:disabled)")??E?.querySelector(".date-picker__day--today:not(:disabled)")??E?.querySelector(".date-picker__day:not(:disabled)")??E?.querySelector(yn)??E)?.focus?.(),()=>{const F=document.activeElement;(!F||F===document.body)&&x.current?.focus?.()}},[v,N,x]);const[D,P]=o.useState(1),H=o.useRef(null),M=o.useRef(null);o.useEffect(()=>{if(!v)return;const E=e&&e.slice(0,7)===`${f}-${String(y+1).padStart(2,"0")}`?+e.slice(8):h.slice(0,7)===`${f}-${String(y+1).padStart(2,"0")}`?+h.slice(8):1;P(E)},[v]),o.useEffect(()=>{if(M.current==null)return;const E=M.current;M.current=null,H.current?.querySelector(`[data-day="${E}"]`)?.focus()}),o.useEffect(()=>{P(E=>Math.min(E,er(f,y)))},[f,y]);const z=o.useCallback(E=>{let F=tr(E.getFullYear(),E.getMonth(),E.getDate());r&&F<r&&(F=r),s&&F>s&&(F=s);const[R,O,$]=F.split("-").map(Number);(R!==f||O-1!==y)&&b(R,O-1),P($),M.current=$},[r,s,f,y,b]),j=o.useCallback(E=>{const F=new Date(f,y,D),R=$=>{F.setDate(F.getDate()+$),z(F)},O=$=>{const Y=F.getFullYear()*12+F.getMonth()+$,Q=Math.floor(Y/12),X=Y-Q*12;z(new Date(Q,X,Math.min(F.getDate(),er(Q,X))))};switch(E.key){case"ArrowLeft":R(-1);break;case"ArrowRight":R(1);break;case"ArrowUp":R(-7);break;case"ArrowDown":R(7);break;case"Home":R(-F.getDay());break;case"End":R(6-F.getDay());break;case"PageUp":E.shiftKey?O(-12):O(-1);break;case"PageDown":E.shiftKey?O(12):O(1);break;default:return}E.preventDefault()},[f,y,D,z]),S=o.useCallback(E=>{i||(n(tr(f,y,E)),k(!1))},[f,y,n,k,i]);o.useEffect(()=>{i&&k(!1)},[i,k]);const I=E=>{const F=tr(f,y,E);return!!(r&&F<r||s&&F>s)},W=(()=>{const E=er(f,y);if(D>=1&&D<=E&&!I(D))return D;for(let F=1;F<=E;F++)if(!I(F))return F;return-1})(),Z=[];for(let E=0;E<W4(f,y);E++)Z.push(null);for(let E=1;E<=er(f,y);E++)Z.push(E);const U=a===64?20:a===40?16:18,q=U4(f,(E,F)=>u("calendar.yearMonth",{year:E,month:F,defaultValue:"{{year}}\uB144 {{month}}\uC6D4"}),r,s),K=`${f}-${String(y+1).padStart(2,"0")}`,L=v?Xt.createPortal(t.jsxs("div",{ref:N,id:g,className:"date-picker__dropdown",style:B,"data-tooltip-ignore":!0,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(ss,{size:16,strokeWidth:2})}),t.jsx(sn,{className:"date-picker__nav-dropdown",ariaLabel:u("datePicker.selectYearMonth","\uC5F0\uC6D4 \uC120\uD0DD"),options:q,value:K,onChange:E=>{const[F,R]=E.split("-");b(+F,+R-1)},block:!0,size:40}),t.jsx("button",{type:"button",className:"date-picker__nav-btn",onClick:w,"aria-label":u("calendar.nextMonth","\uB2E4\uC74C \uB2EC"),children:t.jsx(is,{size:16,strokeWidth:2})})]}),t.jsxs("div",{className:"date-picker__grid",ref:H,onKeyDown:j,children:[m.map(E=>t.jsx("div",{className:"date-picker__dow caption-1",children:E},E)),Z.map((E,F)=>{if(E===null)return t.jsx("div",{},`e${F}`);const R=tr(f,y,E),O=R===e,$=R===h,Y=I(E),Q=F%7;return t.jsx("button",{type:"button",disabled:Y,"data-day":E,tabIndex:E===W?0:-1,"aria-current":$?"date":void 0,onClick:()=>!Y&&S(E),className:Ee("date-picker__day caption-1",O&&"date-picker__day--selected",$&&!O&&"date-picker__day--today",Y&&"date-picker__day--disabled",Q===0&&"date-picker__day--sun",Q===6&&"date-picker__day--sat"),children:E},E)})]})]}),document.body):null;return t.jsxs("div",{className:Ee("date-picker",`date-picker--s${a}`,v&&"date-picker--open",c),children:[t.jsxs("button",{ref:x,type:"button",className:"date-picker__trigger body-2",onClick:()=>!i&&A(),disabled:i,"aria-haspopup":"true","aria-expanded":v,children:[t.jsx("span",{className:e?"date-picker__value":"date-picker__placeholder",children:e?q4(e):p}),t.jsx(fs,{size:U,className:"date-picker__icon",strokeWidth:1.5})]}),L]})}function Vl({children:e,className:n}){const a=o.useRef(null),[r,s]=o.useState(null);return o.useEffect(()=>{s(a.current?.parentElement??null)},[]),o.useEffect(()=>{const i=a.current;if(!i||!r)return;const l=()=>{const d=typeof window<"u"&&window.getComputedStyle(i).position==="absolute"?Math.ceil(i.getBoundingClientRect().width):0;d>0?r.style.setProperty("--section-head-float-w",`${d}px`):r.style.removeProperty("--section-head-float-w")};if(l(),typeof ResizeObserver>"u")return()=>{r.style.removeProperty("--section-head-float-w")};const c=new ResizeObserver(()=>l());return c.observe(i),c.observe(r),()=>{c.disconnect(),r.style.removeProperty("--section-head-float-w")}},[r,e]),t.jsx("div",{ref:a,className:Ee("section-head-float",n),children:e})}function co({items:e,className:n}){return t.jsx("div",{className:n?`manager-bar-chart-legend ${n}`:"manager-bar-chart-legend",children:e.map((a,r)=>t.jsxs("span",{className:"manager-bar-chart-legend-item",children:[t.jsx("span",{className:"manager-bar-chart-legend-dot",style:{background:a.color}}),a.label]},r))})}function Ma({label:e,children:n}){return e?t.jsxs("div",{className:"barchart-total barchart-total--stacked",children:[t.jsx("span",{className:"barchart-total__label body-3",children:e}),t.jsx("span",{className:"barchart-total__value",children:n})]}):t.jsx("div",{className:"barchart-total",children:n})}function uo({title:e,titleClassName:n="h3",icon:a,disc:r,headRight:s,headFloat:i,headSegment:l,headMenuItems:c,collapseBelow:d=420,onClick:u,ariaLabel:p,tooltip:m,totalNum:h,totalUnit:f,totalLabel:y,subRow:C,subRowAlign:w="start",className:b,inGrid:g=!1,children:_}){const{t:v}=Ce.useTranslation(),k=o.useRef(null),{anchorRect:A,openAt:B,close:x}=wa(),N=o.useCallback(()=>{m&&k.current&&B(k.current)},[m,B]),[D,P]=o.useState(!1);io(()=>{const L=k.current;if(!L||!l)return;const E=R=>P(R>0&&R<d);if(E(L.clientWidth),typeof ResizeObserver>"u")return;const F=new ResizeObserver(R=>E(R[0].contentRect.width));return F.observe(L),()=>F.disconnect()},[l,d]);const[H,M]=o.useState(null),z=o.useCallback(()=>M(null),[]),j=o.useCallback(L=>{const E=L.currentTarget.getBoundingClientRect();M(F=>F?null:{left:E.left,right:E.right,top:E.top,bottom:E.bottom,width:E.width,height:E.height,x:E.x,y:E.y})},[]),S=!!l&&D;o.useEffect(()=>{S||M(null)},[S]);const I=l?[...l.options.map(L=>({label:L.label,icon:L.icon,selected:L.key===l.value,disabled:L.disabled,onClick:()=>l.onChange(L.key),closeOnSelect:!0})),...(c??[]).map((L,E)=>E===0?{...L,separatorBefore:!0}:L)]:[],W=o.useCallback(L=>{if(!u)return;const E=L.target;E&&typeof E.closest=="function"&&E.closest('button, a, input, select, textarea, [role="radiogroup"]')||u()},[u]),Z=o.useCallback(L=>{u&&L.target===L.currentTarget&&(L.key==="Enter"||L.key===" ")&&(L.preventDefault(),u())},[u]),U=typeof s=="function"?s({collapsed:S}):s,q=h!=null||y?t.jsxs(Ma,{label:y,children:[h!=null&&t.jsx("span",{className:"barchart-total__num h0",children:h}),f&&t.jsx("span",{className:"barchart-total__unit h5",children:f})]}):null,K=U||l?t.jsxs("div",{className:"manager-section__head-right",children:[l&&(S?t.jsx(ce,{htmlType:"button",size:32,type:"dot",icon:"ellipsis",ariaLabel:l.ariaLabel??v("common.more","\uB354\uBCF4\uAE30"),showTooltipInfo:l.ariaLabel??v("common.more","\uB354\uBCF4\uAE30"),"aria-haspopup":"menu","aria-expanded":!!H,onClick:j}):t.jsx(An,{size:32,ariaLabel:l.ariaLabel,options:l.options.map(L=>({key:L.key,label:L.label,disabled:L.disabled})),value:l.value,onChange:l.onChange})),U]}):null;return t.jsxs("section",{ref:k,className:["manager-section",g&&"manager-section--grid",u&&"manager-section--clickable",b].filter(Boolean).join(" "),onClick:u?W:void 0,onKeyDown:u?Z:void 0,onPointerEnter:m?N:void 0,onPointerLeave:m?x:void 0,onFocus:m?N:void 0,onBlur:m?x:void 0,role:u?"button":void 0,tabIndex:u?0:void 0,"aria-label":u?p??(typeof e=="string"?e:void 0):void 0,children:[m&&A&&t.jsx(vn,{anchorRect:{left:A.left,top:A.top+21,right:A.right,bottom:A.bottom,width:A.width,height:A.height},text:m}),i&&t.jsx(Vl,{children:i}),t.jsxs("div",{className:"manager-section__head",children:[t.jsxs("div",{className:"manager-section__title-row",children:[a&&t.jsx(Ze,{icon:a,label:typeof e=="string"?e:void 0,className:"manager-section__icon"}),t.jsx("div",{className:["manager-section__title",n].filter(Boolean).join(" "),children:e})]}),K,r&&t.jsx("div",{className:"manager-section__disc body-3",children:r})]}),(q||C)&&t.jsxs("div",{className:["barchart-sub-row",w!=="start"&&`barchart-sub-row--${w}`].filter(Boolean).join(" "),children:[q,C]}),_,H&&t.jsx(rn,{anchorRect:H,onClose:z,ariaLabel:l?.ariaLabel??v("tooltip.menu","\uBA54\uB274"),children:t.jsx(Ba,{columns:[{items:I}],onClose:z,size:"small"})})]})}function pn(e,n){const a=new Date(e,n,1).getDay();return 1+(8-(a===0?7:a))%7}function K4(){const e=Jn();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 s=Math.floor((r-pn(n,a))/7),i=`${n}\uB144 ${a+1}\uC6D4`;return{monthKey:i,value:`${i}#${s}`}}function Y4(e){const n=Jn(),a=`${n.getFullYear()}\uB144 ${n.getMonth()+1}\uC6D4`,r=(d,u)=>`${d}\uB144 ${u+1}\uC6D4`,s=new Map;s.set(a,[]);for(const d of e){if(isNaN(d.date.getTime()))continue;const u=r(d.date.getFullYear(),d.date.getMonth());s.has(u)||s.set(u,[]),s.get(u).push(d)}for(const[d,u]of[...s.entries()]){const p=d.match(/^(\d+)년 (\d+)월$/);if(!p)continue;const m=Number(p[1]),h=Number(p[2])-1,f=pn(m,h);if(!(d===a&&n.getDate()<f)&&!u.some(w=>w.date.getDate()<f))continue;const y=new Date(m,h,0),C=r(y.getFullYear(),y.getMonth());s.has(C)||s.set(C,[])}const i=new Map;for(const[d,u]of s){const p=d.match(/^(\d+)년 (\d+)월$/);if(!p)continue;const m=Number(p[1]),h=Number(p[2])-1,f=new Date(m,h+1,0).getDate(),y=u.reduce((v,k)=>Math.max(v,k.parts?.length??0,k.partsB?.length??0),0),C=u.some(v=>v.partsB),w=new Array(f+1).fill(0),b=new Array(f+1).fill(0),g=Array.from({length:f+1},()=>new Array(y).fill(0)),_=Array.from({length:f+1},()=>new Array(y).fill(0));for(const v of u){const k=v.date.getDate();if(w[k]+=v.a,b[k]+=v.b,v.parts)for(let A=0;A<y;A++)g[k][A]+=v.parts[A]??0;if(v.partsB)for(let A=0;A<y;A++)_[k][A]+=v.partsB[A]??0}i.set(d,{year:m,month:h,daysInMonth:f,partsLen:y,hasPartsB:C,dayA:w,dayB:b,dayParts:g,dayPartsB:_})}const l=(d,u,p)=>new Date(d,u,p).getTime()>new Date(n.getFullYear(),n.getMonth(),n.getDate()).getTime(),c={};for(const[d,u]of i){const{year:p,month:m,daysInMonth:h,dayA:f,dayB:y,dayParts:C,dayPartsB:w}=u,b=p===n.getFullYear()&&m===n.getMonth(),g=n.getDate(),_=i.get(r(m===11?p+1:p,(m+1)%12)),v=u.partsLen,k=[];for(let B=1;B<=h;B++){const x=b&&B>g;k.push({label:String(B),...x&&f[B]===0&&y[B]===0?{future:!0}:{},a:x&&f[B]===0&&y[B]===0?-1:f[B],b:y[B],...v?{parts:C[B]}:{},...v&&u.hasPartsB?{partsB:w[B]}:{}})}const A=[];for(let B=pn(p,m);B<=h;B+=7){const x=Math.max(0,B+6-h),N=x&&_?Math.max(v,_.partsLen):v,D=u.hasPartsB||!!(x&&_?.hasPartsB);let P=0,H=0;const M=new Array(N).fill(0),z=new Array(N).fill(0);for(let S=B;S<=Math.min(B+6,h);S++){P+=f[S],H+=y[S];for(let I=0;I<v;I++)M[I]+=C[S][I],z[I]+=w[S][I]}if(x&&_)for(let S=1;S<=x&&!l(_.year,_.month,S);S++){P+=_.dayA[S],H+=_.dayB[S];for(let I=0;I<_.partsLen;I++)M[I]+=_.dayParts[S][I],z[I]+=_.dayPartsB[S][I]}const j=x?`${(m+1)%12+1}/${x}`:`${B+6}`;A.push({label:`${A.length+1}\uC8FC`,sublabel:`[${B}\uC77C~${j}\uC77C]`,a:P,b:H,...N?{parts:M}:{},...N&&D?{partsB:z}:{}})}c[d]={weekly:A,daily:k}}return c}function Wl(){const e=Jn(),n=e.getFullYear(),a=e.getMonth()+1,r=[];for(let s=2024;s<=n;s++){const i=s===n?a:12;for(let l=1;l<=i;l++){const c=`${s}\uB144 ${l}\uC6D4`;r.push({value:c,label:c,year:s,month:l})}}return r.reverse()}Wl();function Z4(){return Wl()}const ql=["\uCCAB\uC9F8","\uB458\uC9F8","\uC14B\uC9F8","\uB137\uC9F8","\uB2E4\uC12F\uC9F8","\uC5EC\uC12F\uC9F8","\uC77C\uACF1\uC9F8"];function Ul(e){const{t:n,i18n:a}=Ce.useTranslation(),[r,s]=o.useState("week"),i=o.useMemo(()=>Z4().filter(N=>N.value in e),[e]),l=o.useMemo(()=>{const N=[];for(const D of i){const P=new Date(D.year,D.month,0).getDate(),H=pn(D.year,D.month-1),M=Math.ceil((P-H+1)/7);for(let z=M-1;z>=0;z--)N.push({value:`${D.value}#${z}`,monthKey:D.value,year:D.year,month:D.month,week:z})}return N},[i]),c=o.useCallback(N=>{const D=n("calendar.yearMonth",{year:N.year,month:N.month});return a.language?.startsWith("ko")?`${D} ${ql[N.week]??`${N.week+1}`}\uC8FC`:`${D} Week ${N.week+1}`},[n,a.language]),d=o.useMemo(()=>i.map(N=>({value:N.value,label:n("calendar.yearMonth",{year:N.year,month:N.month})})),[n,i]),u=o.useMemo(()=>l.map(N=>({value:N.value,label:c(N)})),[l,c]),p=o.useMemo(()=>K4(),[e]),m=o.useMemo(()=>i.find(N=>N.value===p.monthKey)?.value??i[0]?.value??"",[i,p]),h=o.useMemo(()=>l.find(N=>N.value===p.value)?.value??l[0]?.value??"",[l,p]),[f,y]=o.useState(""),[C,w]=o.useState("");o.useEffect(()=>{i.find(N=>N.value===f)||y(m)},[i,f,m]),o.useEffect(()=>{l.find(N=>N.value===C)||w(h)},[l,C,h]);const b=r==="month"?d:u,g=r==="month"?f:C,_=r==="month"?y:w,v=o.useMemo(()=>{const N=n("calendar.dow",{returnObjects:!0});return Array.isArray(N)?N:["\uC77C","\uC6D4","\uD654","\uC218","\uBAA9","\uAE08","\uD1A0"]},[n]),k=b.findIndex(N=>N.value===g),A=o.useCallback(()=>{const N=b.findIndex(D=>D.value===g);N<b.length-1&&_(b[N+1].value)},[b,g,_]),B=o.useCallback(()=>{const N=b.findIndex(D=>D.value===g);N>0&&_(b[N-1].value)},[b,g,_]),x=o.useMemo(()=>[{key:"week",label:n("manager.chart.periodWeek","\uC8FC")},{key:"month",label:n("manager.chart.periodMonth","\uC6D4")}],[n]);return{period:r,setPeriod:s,range:g,setRange:_,activeOptions:b,activeIdx:k,handlePrev:A,handleNext:B,periodOptions:x,monthRange:f,weekRange:C,weekRanges:l,DOW:v}}const ut=e=>typeof e=="number"&&Number.isFinite(e)?e:0;function kn(e,n=!0){return e.future===!0||n&&e.a===-1}function X4({data:e,colorA:n,colorB:a,labelA:r,labelB:s,barWidth:i=10,barGap:l=1,height:c=140,maxOverride:d,tightMax:u,seriesColors:p,seriesLabels:m,rateLabels:h,grouped:f=!1,baseline:y}){const C=!a,w=!!(p&&p.length>0),b=y,g=o.useMemo(()=>w?Math.max(0,...e.filter(S=>!kn(S,b==null)).map(S=>f?Math.max(0,...(S.parts??[]).map(ut)):(S.parts??[]).reduce((I,W)=>I+Math.max(0,ut(W)),0))):Math.max(0,...e.filter(S=>!kn(S,b==null)).flatMap(S=>C?[ut(S.a)]:[ut(S.a),ut(S.b)])),[e,C,w,f]),_=o.useMemo(()=>{if(b==null)return 0;const S=e.filter(I=>!kn(I,b==null)).flatMap(I=>w?(I.parts??[]).map(ut):C?[ut(I.a)]:[ut(I.a),ut(I.b)]);return Math.max(0,...S.map(I=>Math.abs(I-b)))},[e,b,w,C]),v=o.useMemo(()=>{const S=b!=null?_:g;return d??(u?S>0?S:10:Math.ceil(S/10)*10||10)},[g,_,b,d,u]),k=c,A=w?f?Math.max(1,p.length):1:C?1:2,B={"--bar-width":`${o.useMemo(()=>{const S=Math.max(1,e.length);return Math.max(2,Math.min(i,Math.round(120/(S*A)+6)))},[e.length,A,i])}px`},x={"--bar-group-gap":`${Math.max(0,l)}px`},N=o.useMemo(()=>{const S=Math.round(v/2);return b!=null?[b+v,...S!==v?[b+S]:[],b,...S!==v?[b-S]:[],b-v]:S!==v?[v,S,0]:[v,0]},[v,b]),D=S=>b!=null?1-(S-(b-v))/(2*v):1-S/v,[P,H]=o.useState(null),M=o.useCallback(()=>H(null),[]),z=S=>b!=null&&S>b?`+${S}`:`${S}`,j=P!=null;return o.useEffect(()=>{if(!j)return;const S=()=>H(null),I=W=>{const Z=W.target;Z&&typeof Z.closest=="function"&&Z.closest(".manager-bar-chart-col")||H(null)};return window.addEventListener("scroll",S,!0),document.addEventListener("pointerdown",I,!0),()=>{window.removeEventListener("scroll",S,!0),document.removeEventListener("pointerdown",I,!0)}},[j]),t.jsxs("div",{className:"manager-bar-chart-wrap",style:x,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:k},children:[N.slice(0,-1).map((S,I)=>t.jsx("div",{className:`manager-bar-chart-gridline${b!=null&&S===b?" manager-bar-chart-gridline--baseline":""}`,style:{top:D(S)*k},children:t.jsx("span",{className:"manager-bar-chart-gridline__label caption-1",children:S})},I)),e.map((S,I)=>{const W=kn(S,b==null),Z=k/2,U=E=>b!=null?Math.min(Z,Math.abs(ut(E)-b)/v*Z):Math.min(k,Math.max(0,ut(E)/v*k)),q=W?0:U(S.a),K=W?0:U(S.b),L=(S.parts??[]).map(ut);return t.jsx("div",{className:`manager-bar-chart-col${f&&w?" manager-bar-chart-col--group":""}`,style:{cursor:W?"default":"pointer"},onMouseEnter:W?void 0:E=>{const F=E.currentTarget.getBoundingClientRect(),R=[S.label,S.sublabel].filter(Boolean).join(" ");let O;if(w&&f&&S.rawPartsB)O=(m??[]).map(($,Y)=>{const Q=S.rawPartsB[Y]??0;return{text:Q>0?`${$}: ${L[Y]??0}% (${S.rawParts?.[Y]??0}/${Q})`:`${$}: -`,color:(p??[])[Y]}});else if(w&&f)O=(m??[]).map(($,Y)=>({text:`${$}: ${z(L[Y]??0)}`,color:(p??[])[Y]}));else if(w){const $=(m??[]).map((Q,X)=>({text:`${Q}: ${L[X]??0}`,color:(p??[])[X]})),Y=$.filter((Q,X)=>(L[X]??0)>0);O=Y.length?Y:$}else h&&!C?O=[{text:`${r} ${ut(S.a)}%`,color:n},{text:`${s} ${ut(S.b)}%`,color:a}]:h&&S.rawB!==void 0?O=[{text:`${h.total} ${S.rawB}`},{text:`${h.done} ${S.rawA??0}`,color:n}]:C?O=[{text:`${r}: ${ut(S.a)}`,color:n}]:O=[{text:`${r}: ${ut(S.a)}`,color:n},{text:`${s}: ${ut(S.b)}`,color:a}];H({rect:{left:F.left,top:F.top,right:F.right,bottom:F.bottom,width:F.width,height:F.height},title:R,items:O})},onMouseLeave:M,children:!W&&(w&&f?(p??[]).map((E,F)=>{const R=L[F]??0;if(b==null)return t.jsx("div",{className:"manager-bar-chart-bar",style:{...B,height:U(R),background:E}},F);const O=ut(R)<b;return t.jsxs("div",{className:"manager-bar-chart-slot",style:B,children:[t.jsx("div",{className:"manager-bar-chart-slot__half manager-bar-chart-slot__half--up",children:!O&&t.jsx("div",{className:"manager-bar-chart-bar manager-bar-chart-bar--full",style:{height:U(R),background:E}})}),t.jsx("div",{className:"manager-bar-chart-slot__half manager-bar-chart-slot__half--down",children:O&&t.jsx("div",{className:"manager-bar-chart-bar manager-bar-chart-bar--full manager-bar-chart-bar--down",style:{height:U(R),background:E}})})]},F)}):w?t.jsx("div",{className:"manager-bar-chart-stack",style:B,children:(()=>{const E=L.reduce((R,O,$)=>O>0?$:R,-1);let F=k;return L.map((R,O)=>{if(R<=0)return null;const $=Math.min(F,R/v*k);return F-=$,t.jsx("div",{className:"manager-bar-chart-stack-segment",style:{height:$,background:(p??[])[O],borderRadius:O===E?"6px 6px 0 0":void 0}},O)})})()}):b!=null?t.jsx(t.Fragment,{children:[{v:ut(S.a),c:n},...C?[]:[{v:ut(S.b),c:a}]].map(({v:E,c:F},R)=>t.jsxs("div",{className:"manager-bar-chart-slot",style:B,children:[t.jsx("div",{className:"manager-bar-chart-slot__half manager-bar-chart-slot__half--up",children:E>=b&&t.jsx("div",{className:"manager-bar-chart-bar manager-bar-chart-bar--full",style:{height:U(E),background:F}})}),t.jsx("div",{className:"manager-bar-chart-slot__half manager-bar-chart-slot__half--down",children:E<b&&t.jsx("div",{className:"manager-bar-chart-bar manager-bar-chart-bar--full manager-bar-chart-bar--down",style:{height:U(E),background:F}})})]},R))}):t.jsxs(t.Fragment,{children:[t.jsx("div",{className:"manager-bar-chart-bar",style:{...B,height:q,background:n}}),!C&&t.jsx("div",{className:"manager-bar-chart-bar",style:{...B,height:K,background:a}})]}))},I)})]}),t.jsx("div",{className:"manager-bar-chart-x-axis",children:e.map((S,I)=>{const W=kn(S,b==null);return t.jsxs("span",{className:`manager-bar-chart-x-axis__label${W?" manager-bar-chart-x-axis__label--future":""}`,children:[t.jsxs("span",{className:"caption-1 manager-bar-chart-x-axis__main",children:[S.isToday&&t.jsx("span",{className:"manager-bar-chart-x-axis__today-dot",style:{background:n}}),S.label]}),S.sublabel&&t.jsx("span",{className:"caption-1",children:S.sublabel})]},I)})})]})})}),P&&t.jsx(Vn,{anchorRect:P.rect,title:P.title,items:P.items,showIndex:!1,closeOnOutsideClick:!1})]})}function Gl({control:e}){const{t:n}=Ce.useTranslation(),{activeOptions:a,activeIdx:r,range:s,setRange:i,handlePrev:l,handleNext:c,periodOptions:d,period:u,setPeriod:p}=e,m=u==="week"?n("calendar.prevWeek","\uC774\uC804 \uC8FC"):n("calendar.prevMonth","\uC774\uC804 \uB2EC"),h=u==="week"?n("calendar.nextWeek","\uB2E4\uC74C \uC8FC"):n("calendar.nextMonth","\uB2E4\uC74C \uB2EC");return t.jsxs("div",{className:"manager-section-controls",children:[t.jsx(ce,{htmlType:"button",size:32,type:"dot",icon:"chevron-left",ariaLabel:m,showTooltipInfo:m,disabled:r===a.length-1,onClick:l}),t.jsx(sn,{value:s,onChange:i,options:a,size:40,className:"month-dropdown",ariaLabel:n("calendar.rangeSelect","\uAE30\uAC04 \uC120\uD0DD")}),t.jsx(ce,{htmlType:"button",size:32,type:"dot",icon:"chevron-right",ariaLabel:h,showTooltipInfo:h,disabled:r<=0,onClick:c}),t.jsx(An,{ariaLabel:n("calendar.periodSelect","\uAE30\uAC04 \uB2E8\uC704"),options:d,value:u,onChange:f=>p(f),size:40})]})}function po(e,n,a,r=!0){const s=new Date(a.getFullYear(),a.getMonth(),a.getDate());return Array.from({length:7},(i,l)=>{const c=new Date(n);c.setDate(n.getDate()+l);const d=(e[`${c.getFullYear()}\uB144 ${c.getMonth()+1}\uC6D4`]?.daily??[])[c.getDate()-1],u=d!=null&&kn(d,r)||c>s;return{dt:c,entry:d,isFuture:u}})}function J4(e,n,a,r,s=!0){const{period:i,monthRange:l,weekRange:c,weekRanges:d,DOW:u}=n,p=r?.startsWith("ko"),m=Jn(),h=m.getFullYear(),f=m.getMonth()+1,y=m.getDate();if(i==="month"){const b=e[l]??{weekly:[],daily:[]},g=l.match(/^(\d+)년 (\d+)월$/),_=g?Number(g[1]):null,v=g?Number(g[2]):null,k=_&&v?pn(_,v-1):1;return b.weekly.map((A,B)=>{const x=B+1;let N=A.label,D=!1,P=!1;if(_&&v){const H=k+B*7,M=new Date(_,v-1,H+6),z=M.getMonth()+1,j=M.getDate(),S=z===v?`${j}`:`${z}/${j}`;N=a("manager.chart.weekRange",{start:H,end:S});const I=new Date(h,f-1,y).getTime();D=I>=new Date(_,v-1,H).getTime()&&I<=M.getTime(),P=_>h||_===h&&(v>f||v===f&&H>y)}return{...A,label:N,sublabel:p?`${ql[x-1]??x}\uC8FC`:`Week ${x}`,isToday:D,future:A.future===!0||P||void 0,a:P?-1:A.a,b:P?0:A.b}})}const C=d.find(b=>b.value===c);if(!C)return[];const w=new Date(C.year,C.month-1,pn(C.year,C.month-1)+C.week*7);return po(e,w,m,s).map(({dt:b,entry:g,isFuture:_})=>{const v=b.getMonth()+1,k=b.getDate(),A=b.getFullYear();return{label:v===C.month&&A===C.year?`${k}`:`${v}/${k}`,sublabel:u[b.getDay()]??"",future:_||void 0,a:_?-1:g&&g.a>0?g.a:0,b:_?0:g&&g.b>0?g.b:0,isToday:A===h&&v===f&&k===y,...g?.parts?{parts:_?g.parts.map(()=>0):g.parts}:{},...g?.partsB?{partsB:_?g.partsB.map(()=>0):g.partsB}:{}}})}const Q4={small:{height:100,barWidth:16},medium:{height:140,barWidth:20},large:{height:180,barWidth:24}};function ey({size:e="medium",barWidth:n,titleKey:a,data:r,colorA:s,colorB:i,labelAKey:l,labelBKey:c,showTotal:d=!1,totalUnitKey:u,totalLabelKey:p,control:m,hideControls:h=!1,rate:f=!1,rateAgg:y="dayMean",tightMax:C=!1,avgMode:w=!1,totalFormat:b,series:g,seriesMode:_="stack",loading:v=!1,onDetail:k,headExtra:A,headSegment:B,icon:x,disc:N,onClick:D,cardAriaLabel:P,cardTooltip:H,detailSize:M=32,barGap:z,baseline:j,className:S,inGrid:I=!1}){const{t:W,i18n:Z}=Ce.useTranslation(),U=Q4[e],q=Ul(r),K=m??q,L=o.useMemo(()=>J4(r,K,W,Z.language,j==null),[r,K,W,Z.language,j]),E=_==="group"&&!!g&&g.length>0;z!=null&&!E&&bn("bar-chart-bargap-without-group","[BarChart] barGap \uC740 seriesMode='group' + series \uC5D0\uC11C\uB9CC \uC4F0\uC778\uB2E4 \u2014 \uADF8 \uBC16\uC5D0\uC11C\uB294 \uC544\uBB34 \uC77C\uB3C4 \uD558\uC9C0 \uC54A\uB294\uB2E4.");const F=o.useMemo(()=>{if(!f)return L;const Q=K.period==="month"?K.monthRange.match(/^(\d+)년 (\d+)월$/):null,X=Jn(),ie=g?.length??0,be=ne=>{const oe=[],V=[],ae=[];for(let ue=0;ue<ie;ue++){let ge=0,me=0,re=0;for(const he of ne){const _e=ut(he.a[ue]),Me=ut(he.b[ue]);Me<=0||(ge+=_e,me+=Me,re+=_e/Me*100)}oe.push(y==="weighted"?me>0?Math.round(ge/me*100):0:ne.length?Math.round(re/ne.length):0),V.push(ge),ae.push(me)}return{pct:oe,ra:V,rb:ae}};return L.map((ne,oe)=>{let V=ne.a===-1?-1:ne.b>0?Math.round(ne.a/ne.b*100):0;if(Q&&!kn(ne)){const ue=Number(Q[1]),ge=Number(Q[2])-1,me=po(r,new Date(ue,ge,pn(ue,ge)+oe*7),X).filter(re=>!re.isFuture);if(y==="weighted"){let re=0,he=0;for(const{entry:_e}of me)_e&&_e.b>0&&(re+=_e.a,he+=_e.b);V=he>0?Math.round(re/he*100):0}else V=me.length?Math.round(me.reduce((re,{entry:he})=>re+(he&&he.b>0?he.a/he.b*100:0),0)/me.length):0}let ae=null;if(E&&!kn(ne)){let ue;if(Q){const me=Number(Q[1]),re=Number(Q[2])-1;ue=po(r,new Date(me,re,pn(me,re)+oe*7),X).filter(he=>!he.isFuture).map(({entry:he})=>({a:he?.parts??[],b:he?.partsB??[]}))}else ue=[{a:ne.parts??[],b:ne.partsB??[]}];const ge=be(ue);ae={parts:ge.pct,rawParts:ge.ra,rawPartsB:ge.rb}}return{...ne,a:V,b:ne.a===-1?0:c&&ne.parts&&ne.parts[1]>0?Math.round(ne.parts[0]/ne.parts[1]*100):0,rawA:ne.a===-1?-1:ne.a,rawB:ne.b,...ae??{}}})},[L,f,y,c,K.period,K.monthRange,r,E,g?.length]),R=o.useMemo(()=>{if(f||w){const X=(K.period==="week"?L:r[K.monthRange]?.daily??[]).filter(be=>be.a!==-1);if(X.length===0)return 0;if(f&&y==="weighted"){let be=0,ne=0;for(const oe of X)oe.b>0&&(be+=oe.a,ne+=oe.b);return ne>0?Math.round(be/ne*100):0}const ie=f?X.reduce((be,ne)=>be+(ne.b>0?ne.a/ne.b*100:0),0):X.reduce((be,ne)=>be+(ne.a>0?ne.a:0),0);return Math.round(ie/X.length)}const Q=K.period==="month"?r[K.monthRange]?.daily??[]:F;return j!=null?Q.reduce((X,ie)=>X+(kn(ie,!1)?0:ut(ie.a)+(c?ut(ie.b):0)),0):Q.reduce((X,ie)=>X+(ie.a>0?ie.a:0)+(c&&ie.b>0?ie.b:0),0)},[F,L,f,y,w,j,c,K.period,K.monthRange,r]),O=g&&g.length>0?g.map(Q=>({color:Q.color,label:Q.label})):[{color:s,label:W(l)},...c?[{color:i,label:W(c)}]:[]],$=e==="small",Y=[$?"manager-section--compact":e==="large"?"manager-section--full":void 0,S].filter(Boolean).join(" ")||void 0;return t.jsx(uo,{className:Y,inGrid:I,icon:x,disc:N,onClick:D,ariaLabel:P,tooltip:H,headSegment:B,headMenuItems:k?[{label:W("trainingStatus.detail","\uC0C1\uC138\uBCF4\uAE30"),icon:"list",onClick:k,closeOnSelect:!0}]:void 0,title:W(a),titleClassName:$?"h5 chart-section-title--small":void 0,headRight:$?A??void 0:({collapsed:Q})=>t.jsxs(t.Fragment,{children:[!h&&t.jsx(Gl,{control:K}),A,k&&!Q&&t.jsx("span",{className:"manager-bar-chart-detail-btn",children:t.jsx(ce,{htmlType:"button",size:M,type:"dot",icon:"list",ariaLabel:W("trainingStatus.detail","\uC0C1\uC138\uBCF4\uAE30"),showTooltipInfo:W("trainingStatus.detail","\uC0C1\uC138\uBCF4\uAE30"),onClick:k})})]}),subRow:t.jsxs(t.Fragment,{children:[d?f||w||p&&b?t.jsx(Ma,{label:$?void 0:`${W(K.period==="week"?"manager.chart.weeklyPrefix":"manager.chart.monthlyPrefix")} ${W(p??l)}`,children:b?(b(R).match(/([+-]?\d[\d.,]*|[^\d]+)/g)??[]).map((Q,X)=>/\d/.test(Q)?t.jsx("span",{className:"barchart-total__num h0",children:Q},X):t.jsx("span",{className:"barchart-total__unit h5",children:Q},X)):t.jsxs(t.Fragment,{children:[t.jsx("span",{className:"barchart-total__num h0",children:R}),u&&t.jsx("span",{className:"barchart-total__unit h5",children:W(u)})]})}):t.jsxs(Ma,{children:[t.jsx("span",{className:"barchart-total__num h0",children:R}),t.jsx("span",{className:"barchart-total__unit h5",children:W(l)}),u&&t.jsx("span",{className:"barchart-total__unit h5",children:W(u)})]}):t.jsx("span",{}),t.jsx(co,{items:O,className:"caption-1"})]}),children:v?t.jsx("div",{className:"manager-bar-chart-wrap manager-bar-chart-loading","aria-busy":"true",children:t.jsx("div",{className:"manager-bar-chart-inner",children:t.jsxs("div",{className:"manager-bar-chart-area manager-bar-chart-area--loading",children:[t.jsx("div",{className:"manager-bar-chart-plot manager-bar-chart-plot--loading",style:{height:U.height},children:t.jsx(Ta,{size:32})}),t.jsx("div",{className:"manager-bar-chart-x-axis","aria-hidden":"true",children:t.jsxs("span",{className:"manager-bar-chart-x-axis__label",children:[t.jsx("span",{className:"caption-1 manager-bar-chart-x-axis__main",children:"\xA0"}),F.some(Q=>!!Q.sublabel)&&t.jsx("span",{className:"caption-1",children:"\xA0"})]})})]})})}):t.jsx(X4,{data:F,colorA:s,colorB:c?i:void 0,labelA:W(l),labelB:c?W(c):void 0,barWidth:n??U.barWidth,barGap:z,baseline:j,height:U.height,maxOverride:f?100:void 0,tightMax:C,seriesColors:g?.map(Q=>Q.color),seriesLabels:g?.map(Q=>Q.label),rateLabels:f?{total:W("trainingStatus.today.tooltipTotal","\uC804\uCCB4"),done:W("trainingStatus.today.tooltipDone","\uC644\uB8CC")}:void 0,grouped:E})})}const Kl=120,ty={left:38,right:16,top:26,bottom:24};function ny({points:e=[],range:n,ticks:a=[],axisTitle:r,color:s,height:i=156,fallbackWidth:l=320,insets:c,overlay:d,ariaLabel:u,className:p}){const[m,h]=o.useState(null),[f,y]=o.useState(null);o.useEffect(()=>{if(!f)return;const I=Z=>h(Math.round(Z)||null);if(I(f.getBoundingClientRect().width),typeof ResizeObserver>"u")return;const W=new ResizeObserver(([Z])=>I(Z.contentRect.width));return W.observe(f),()=>{W.disconnect()}},[f]);const{payload:C,anchorRect:w,openAfterDelay:b,close:g}=ib(Kl),_=o.useCallback((I,W)=>{I&&b(I,W.getBoundingClientRect())},[b]),v=m??l,k=i,{left:A,right:B,top:x,bottom:N}={...ty,...c},[D,P]=n,H=I=>P===D?A:A+(v-A-B)*(I-D)/(P-D),M=I=>x+(k-x-N)*(100-I)/100,z={x:H,y:M,plot:{left:A,right:v-B,top:x,bottom:k-N,width:Math.max(0,v-A-B),height:Math.max(0,k-x-N)}},j=e.filter(I=>!I.hollow),S=s??"var(--color-main)";return t.jsxs(t.Fragment,{children:[t.jsxs("svg",{ref:y,className:Ee("line-chart",p),viewBox:`0 0 ${v} ${k}`,role:"img","aria-label":u??e.map(I=>I.description).filter(Boolean).join(", "),children:[r&&t.jsx("text",{className:"line-chart__axis-title",x:0,y:12,children:r}),[0,100].map(I=>t.jsxs("g",{children:[t.jsx("line",{className:"line-chart__grid",x1:A,x2:v-B,y1:M(I),y2:M(I)}),t.jsxs("text",{className:"line-chart__tick",x:A-6,y:M(I)+4,textAnchor:"end",children:[I,"%"]})]},I)),d?.(z),a.map(I=>t.jsx("text",{className:"line-chart__tick",x:H(I.x),y:k-5,textAnchor:"middle",children:I.label},I.x)),j.length>1&&t.jsx("polyline",{className:"line-chart__line",fill:"none",stroke:S,points:j.map(I=>`${H(I.x)},${M(I.pct)}`).join(" ")}),e.map(I=>t.jsxs("g",{className:"line-chart__dot",onPointerEnter:W=>_(I.description,W.currentTarget),onPointerLeave:g,children:[t.jsx("circle",{className:"line-chart__dot-hit",cx:H(I.x),cy:M(I.pct),r:12}),t.jsx("circle",{className:Ee("line-chart__dot-main",I.hollow&&"is-hollow"),cx:H(I.x),cy:M(I.pct),r:4,stroke:S,fill:I.hollow?void 0:S})]},I.x))]}),C!=null&&t.jsx(rn,{anchorRect:w,offset:10,closeOnOutsideClick:!1,className:"line-chart__tip",role:"tooltip",ariaLabel:C,children:C})]})}function ay({icon:e,iconSize:n=56,title:a,titleClass:r="h2",description:s,tipGroups:i,start:l,className:c}){return t.jsxs("div",{className:Ee("game-intro",c),children:[e!=null&&t.jsx("span",{className:"game-intro__icon","aria-hidden":"true",style:{"--game-intro-icon":`${n}px`},children:e}),t.jsx("h2",{className:Ee("game-intro__title",r),children:a}),s!=null&&t.jsx("p",{className:"game-intro__description body-3",children:s}),i?.map((d,u)=>t.jsxs("div",{className:"game-intro__tips",children:[d.title!=null&&t.jsx("span",{className:"game-intro__tips-title body-3",children:d.title}),d.tips.map((p,m)=>t.jsxs("span",{className:"game-intro__tip body-3",children:[p.icon!=null&&t.jsx("span",{"aria-hidden":"true",children:p.icon}),t.jsx("span",{children:p.text})]},m))]},u)),l&&t.jsx(ce,{htmlType:"button",className:l.className,variant:"main",color:l.color,size:48,width:"100%",disabled:l.disabled,onClick:l.onClick,children:l.label})]})}const Yl=(e,n,a)=>{const r=new Date(Date.UTC(e,n,a));return`${r.getUTCFullYear()}-${String(r.getUTCMonth()+1).padStart(2,"0")}-${String(r.getUTCDate()).padStart(2,"0")}`},Zl=(e,n,a,r)=>({from:li(e,n,a),to:new Date(li(e,n,a+r).getTime()-1),fromYmd:Yl(e,n,a),toYmd:Yl(e,n,a+r-1)});function ry(e,n=0){if(e.period==="month"){const s=e.monthRange.match(/^(\d+)년 (\d+)월$/),i=Jn(),l=s?Number(s[1]):i.getFullYear(),c=(s?Number(s[2]):i.getMonth()+1)-1+n,d=new Date(Date.UTC(l,c+1,0)).getUTCDate();return Zl(l,c,1,d)}const a=e.weekRanges.find(s=>s.value===e.weekRange);if(!a){const s=new Date,i=va();return{from:s,to:s,fromYmd:i,toYmd:i}}const r=pn(a.year,a.month-1);return Zl(a.year,a.month-1,r+(a.week+n)*7,7)}const mo={small:{diameter:96,strokeWidth:16},medium:{diameter:120,strokeWidth:18},large:{diameter:160,strokeWidth:22}};function Xl(e){return!Number.isFinite(e)||e<=0?0:e>=1?100:Math.min(99,Math.max(1,Math.round(e*100)))}function Jl({done:e,total:n,segments:a,color:r="var(--color-main)",size:s="medium",strokeWidth:i,label:l="%",hideCenter:c=!1,hideLabel:d=!1}){const u=typeof s=="number"?s:mo[s].diameter,p=i??(typeof s=="number"?12:mo[s].strokeWidth),m=u/2,h=(u-p)/2,f=2*Math.PI*h;if(a&&a.length>0){const b=a.reduce((g,_)=>{const v=g.length>0?g[g.length-1].acc:0,k=Number.isFinite(_.ratio)?_.ratio:0,A=Math.max(0,Math.min(k,1-v));return g.push({color:_.color,rotate:-90+v*360,dash:f*A,acc:v+A}),g},[]);return t.jsx("div",{className:"ring-chart",style:{width:u,height:u},children:t.jsxs("svg",{width:u,height:u,viewBox:`0 0 ${u} ${u}`,"aria-hidden":"true",children:[t.jsx("circle",{cx:m,cy:m,r:h,fill:"none",stroke:"var(--color-whiteLine)",strokeWidth:p}),b.map((g,_)=>g.dash>0&&t.jsx("circle",{cx:m,cy:m,r:h,fill:"none",stroke:g.color,strokeWidth:p,strokeDasharray:`${g.dash} ${f}`,strokeLinecap:"round",transform:`rotate(${g.rotate} ${m} ${m})`},_))]})})}const y=(n??0)>0?Math.min((e??0)/n,1):0,C=f*y,w=f-C;return t.jsxs("div",{className:"ring-chart",style:{width:u,height:u},children:[t.jsxs("svg",{width:u,height:u,viewBox:`0 0 ${u} ${u}`,"aria-hidden":"true",children:[t.jsx("circle",{cx:m,cy:m,r:h,fill:"none",stroke:"var(--color-whiteLine)",strokeWidth:p}),y>0&&t.jsx("circle",{cx:m,cy:m,r:h,fill:"none",stroke:r,strokeWidth:p,strokeDasharray:`${C} ${w}`,strokeLinecap:y<.02||y>.98?"butt":"round",transform:`rotate(-90 ${m} ${m})`})]}),!c&&t.jsxs("div",{className:`ring-chart__center${d?"":` ${u<=96?"ring-chart__center--small":s==="medium"?"ring-chart__center--medium":"ring-chart__center--large"}`}`,children:[t.jsx("span",{className:`ring-chart__pct ${u<=96?"h2":"h1"}`,children:Xl(y)}),!d&&t.jsx("span",{className:`ring-chart__label ${u<=96?"caption-2":"caption-1"}${u<=96||s==="medium"?" ring-chart__label--tight":""}`,children:l})]})]})}function oy({titleKey:e,headRight:n,icon:a,showTotal:r,totalLabelKey:s,legend:i,loading:l,className:c,inGrid:d=!1,onClick:u,ariaLabel:p,tooltip:m,...h}){const{t:f}=Ce.useTranslation();if(!e)return t.jsx(Jl,{...h});const y=(h.total??0)>0?Xl(Math.min((h.done??0)/h.total,1)):0,C=h.size==="small",w=typeof h.size=="number"?h.size:mo[h.size??"medium"].diameter,b=h.size==="large",g=[c,C?"manager-section--compact":b?"manager-section--full":""].filter(Boolean).join(" ")||void 0,_=a&&t.jsx("span",{className:"chart-section-icon",children:t.jsx(Ze,{icon:a,className:"chart-section-icon-inner"})});return t.jsx(uo,{className:g,inGrid:d,onClick:u,ariaLabel:p,tooltip:m,title:f(e),titleClassName:C?"h5 chart-section-title--small":void 0,headRight:_||(C?void 0:n),subRow:(r||i)&&t.jsxs(t.Fragment,{children:[r?t.jsxs(Ma,{label:!C&&s?f(s):void 0,children:[t.jsx("span",{className:"barchart-total__num h0",children:y}),t.jsx("span",{className:"barchart-total__unit h5",children:"%"})]}):t.jsx("span",{}),i&&t.jsx(co,{items:i})]}),children:l?t.jsx("div",{className:"ring-chart-section-body ring-chart-section-body--offset",children:t.jsx("div",{className:"ring-chart ring-chart--loading",style:{width:w,height:w},"aria-busy":"true",children:t.jsx(Ta,{size:32})})}):t.jsx("div",{className:"ring-chart-section-body ring-chart-section-body--offset",children:t.jsx(Jl,{...h,hideCenter:h.hideCenter??C})})})}function sy({label:e,value:n,change:a,changeType:r,icon:s,tooltip:i,onClick:l,children:c}){const d=o.useRef(null),{anchorRect:u,openAt:p,close:m}=wa(),h=o.useCallback(()=>{i&&d.current&&p(d.current)},[i,p]),f=r??(a===void 0?void 0:a>0?"up":a<0?"down":"neutral"),y=a===void 0?void 0:a>0?`+${a}`:`${a}`,C=o.useCallback(w=>{l&&(w.key==="Enter"||w.key===" ")&&(w.preventDefault(),l())},[l]);return t.jsxs("div",{ref:d,className:`manager-stat-card${l?" manager-stat-card--clickable":""}`,onClick:l,onKeyDown:l?C:void 0,onPointerEnter:h,onPointerLeave:m,onFocus:h,onBlur:m,role:l?"button":void 0,tabIndex:l?0:void 0,"aria-label":l?[e,n,y].filter(w=>w!==void 0&&w!=="").join(" "):void 0,children:[i&&u&&t.jsx(vn,{anchorRect:{left:u.left,top:u.top+21,right:u.right,bottom:u.bottom,width:u.width,height:u.height},text:i}),t.jsxs("div",{className:"manager-stat-card__label-row",children:[t.jsx("span",{className:"manager-stat-card__label h5",children:e}),s&&t.jsx("span",{className:"manager-stat-card__icon",children:t.jsx(Ze,{icon:s,className:"manager-stat-card__icon-inner"})})]}),t.jsxs("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}),y&&t.jsx("div",{className:`manager-stat-card__change manager-stat-card__change--${f??"neutral"} caption-1`,children:y})]}),c&&t.jsx("div",{className:"manager-stat-card__body",children:c})]})]})}function Ql({value:e,onChange:n,min:a=0,max:r=100,step:s=1,orientation:i="horizontal",size:l=24,disabled:c=!1,ariaLabel:d,length:u,className:p,label:m,formatValue:h,labelPos:f,labelAlign:y="right",showMinMax:C=!1,minLabel:w,maxLabel:b,showBgTick:g=!1,showFillTick:_=!1,tickStep:v,tickShape:k="dot"}){n&&!d&&bn("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 A=Math.min(r,Math.max(a,e)),B=r>a?(A-a)/(r-a):0,x=i==="vertical",N=!n,D=E=>n?.(Number(E.target.value)),P=typeof u=="number"?`${u}px`:u,H={"--slider-ratio":String(B),"--slider-thumb":`${l}px`,...P?x?{height:P}:{width:P}:{}},M=v??s,z=(g||_)&&M>0&&r>a?Math.floor((r-a)/M+1e-6):0;if(z>0&&z<=100){const E=k!=="dash",F=Q=>E?`radial-gradient(circle, ${Q} 0.5px, transparent 1px)`:x?`linear-gradient(to bottom, transparent calc(50% - 2px), ${Q} calc(50% - 2px), ${Q} calc(50% + 2px), transparent calc(50% + 2px))`:`linear-gradient(to right, transparent calc(50% - 2px), ${Q} calc(50% - 2px), ${Q} calc(50% + 2px), transparent calc(50% + 2px))`,R=E?"2px":"4px",O=[],$=[],Y=[];for(let Q=0;Q<=z;Q++){const X=Q*M/(r-a);if(X>1+1e-6)break;const ie=`${((x?1-X:X)*100).toFixed(4)}%`,be=X<=B+1e-6;if(be?!_:!g)continue;const ne=be?"var(--slider-tick-color-on-fill, var(--color-deepWhite))":"var(--slider-tick-color, var(--color-lightGray))";O.push(F(ne)),$.push(x?`${R} var(--slider-thumb)`:`var(--slider-thumb) ${R}`),Y.push(x?`center ${ie}`:`${ie} center`)}O.push(x?"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))"),$.push("100% 100%"),Y.push("0 0"),H.backgroundImage=O.join(", "),H.backgroundSize=$.join(", "),H.backgroundPosition=Y.join(", "),H.backgroundRepeat="no-repeat"}const j=h?h(A):m==="percent"?`${Math.round(r>a?(A-a)/(r-a)*100:0)}%`:m==="count"?`${A} / ${r}`:A===a&&w?w:A===r&&b?b:void 0,S=t.jsx("input",{type:"range",className:Ee("slider",`slider--${i}`,N&&"slider--static",!m&&!C&&p),min:a,max:r,step:s,value:A,disabled:c,readOnly:N,tabIndex:N?-1:void 0,"aria-label":d,"aria-valuetext":j,"aria-orientation":i,onChange:D,style:H});if(!m&&!C)return S;const I=t.jsx("span",{className:"slider-wrap__minmax caption-1",children:w??a}),W=t.jsx("span",{className:"slider-wrap__minmax caption-1",children:b??r}),Z=C?t.jsxs("div",{className:Ee("slider-track-group",`slider-track-group--${i}`,!m&&p),children:[x?W:I,S,x?I:W]}):S;if(!m)return Z;const U=f??(x?"bottom":"right"),q=`${Math.round(r>a?(A-a)/(r-a)*100:0)}%`,K=h?h(A):m==="percent"?q:m==="count"?`${A} / ${r}`:String(A),L=t.jsx("span",{className:"slider-wrap__value body-3b",children:K});return t.jsxs("div",{className:Ee("slider-wrap",`slider-wrap--${i}`,`slider-wrap--label-${U}`,`slider-wrap--align-${y}`,p),children:[Z,L]})}const iy=.86,ly=250,ho=(e,n,a,r)=>Math.round(Math.min(r,Math.max(a,e-n))),Co=(e,n,a,r)=>{const s=ho(e,n,a,r);return`${s<0?"-":"+"}${Math.abs(s)} dB`};function fo({analyser:e,audioElement:n,orientation:a="horizontal",length:r,label:s,labelPos:i,labelAlign:l="right",floorDb:c=-60,refDb:d=-35,displayMin:u=-5,displayMax:p=25,className:m,ariaLabel:h}){const f=o.useRef(null),y=o.useRef(null),C=o.useRef(null),w=o.useRef(null),[b,g]=o.useState(null);o.useEffect(()=>{const A=S=>{const I=Co(S,d,u,p);C.current&&(C.current.textContent=I);const W=f.current;W&&(W.setAttribute("aria-valuenow",String(ho(S,d,u,p))),W.setAttribute("aria-valuetext",I))},B=e??rC(n)??(b&&b.el===n?b.node:null),x=y.current;if(!B||!x){x?.style.setProperty("--meter-level","0"),A(c);let S=!1;return!e&&n&&Oa(n).then(I=>{!S&&I&&g({el:n,node:I})}),()=>{S=!0}}Tr();const N=new Float32Array(B.fftSize);let D=0,P=0,H=0,M=0,z=null;const j=S=>{const I=oC(B,N);D=I>D?I:D*iy;const W=D>1e-5?20*Math.log10(D):-1/0,Z=Math.max(c,W),U=Z-d,q=Math.min(1,Math.max(0,(U-u)/(p-u)));if(x.style.setProperty("--meter-level",q.toFixed(3)),P+=Z,H+=1,S-M>=ly){const K=P/H;z=z==null?K:z*.6+K*.4,A(z),P=0,H=0,M=S}w.current=requestAnimationFrame(j)};return w.current=requestAnimationFrame(j),()=>{w.current!=null&&cancelAnimationFrame(w.current),w.current=null}},[e,n,b,c,d,u,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:y,className:"audio-meter__fill"})}),k=i??(a==="vertical"?"bottom":"right");return t.jsxs("div",{ref:f,className:Ee("audio-meter",`audio-meter--${a}`,s&&`audio-meter--label-${k}`,s&&`audio-meter--align-${l}`,m),role:"meter","aria-label":h,"aria-valuemin":u,"aria-valuemax":p,"aria-valuenow":ho(c,d,u,p),"aria-valuetext":Co(c,d,u,p),children:[v,s&&t.jsx("span",{ref:C,className:"audio-meter__value caption-2",children:Co(c,d,u,p)})]})}const ec=260;function tc({message:e,position:n,duration:a,onClose:r}){const[s,i]=o.useState(!1),[l,c]=o.useState(!1),d=o.useRef(l),u=o.useRef(s);o.useEffect(()=>{d.current=l},[l]),o.useEffect(()=>{u.current=s},[s]);const p=o.useRef(null),m=o.useRef(""),h=o.useRef(r);o.useEffect(()=>{h.current=r});const f=a,y=o.useRef(null),C=o.useRef(0),w=o.useRef(0),b=o.useRef(!1),g=o.useRef(null),_=o.useRef(null),v=o.useRef(null),k=o.useRef(null),A=o.useRef(()=>{});A.current=N=>{N<0||(C.current=Date.now(),w.current=N,y.current=setTimeout(()=>{y.current=null,i(!1),g.current=setTimeout(()=>{c(!1);try{h.current()}catch{}},ec)},N))};const B=o.useCallback(()=>{b.current||!y.current||(b.current=!0,clearTimeout(y.current),y.current=null,w.current=Math.max(0,w.current-(Date.now()-C.current)))},[]),x=o.useCallback(()=>{b.current&&(b.current=!1,A.current(w.current))},[]);return o.useEffect(()=>{if(e!==m.current&&(y.current&&(clearTimeout(y.current),y.current=null),g.current&&(clearTimeout(g.current),g.current=null)),e){if(u.current)return f>0&&!y.current&&(b.current?w.current=f:A.current(f)),m.current=e,()=>{y.current&&(clearTimeout(y.current),y.current=null),g.current&&(clearTimeout(g.current),g.current=null)};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"),k.current&&clearTimeout(k.current),k.current=setTimeout(()=>{k.current=null;try{D.style.opacity="",D.style.transform="",D.style.transition=""}catch{}},60)}catch{}};d.current?(N(),i(!0)):(c(!0),_.current=requestAnimationFrame(()=>{v.current=requestAnimationFrame(()=>{N(),i(!0)})})),f>0&&(b.current=!1,A.current(f))}else i(!1),g.current=setTimeout(()=>c(!1),ec);return m.current=e,()=>{y.current&&clearTimeout(y.current),g.current&&clearTimeout(g.current),_.current&&cancelAnimationFrame(_.current),v.current&&cancelAnimationFrame(v.current),k.current&&clearTimeout(k.current),y.current=null,g.current=null,_.current=null,v.current=null,k.current=null}},[e,f,n]),{mounted:l,showing:s,popupRef:p,pause:B,resume:x}}function ra({message:e="",position:n="top",type:a="normal",onClose:r=()=>{},duration:s=2e3}){const{mounted:i,showing:l,popupRef:c,pause:d,resume:u}=tc({message:e,position:n,duration:s,onClose:r}),p=o.useRef(null),[m,h]=o.useState(!1);if(o.useEffect(()=>{l?h(!0):i||h(!1)},[l,i]),!i)return null;const f=a==="notice"||a==="warning"?a:"normal",y=t.jsx("div",{ref:c,className:`toast toast--${n} ${l?"is-visible":""}`,role:"status","aria-live":"polite",onPointerEnter:C=>{p.current=C.pointerType},onMouseEnter:()=>{p.current!=="touch"&&d()},onMouseLeave:u,onFocusCapture:d,onBlurCapture:u,children:t.jsx("div",{className:`toast__inner toast__inner--${f} body-2`,"aria-hidden":m||l?void 0:!0,children:e})});return typeof document<"u"?Xt.createPortal(y,document.body):y}const cy=24;function uy({value:e,max:n=100,size:a=8,color:r,trackColor:s,label:i,formatValue:l,labelPos:c,labelAlign:d="right",ariaLabel:u,className:p}){const m=Number.isFinite(n)&&n>0?n:1,h=Math.max(0,Math.min(Number.isFinite(e)?e:0,m)),f=h/m*100,y=Number.isFinite(n)&&n>0?n:0,C=c??(a>=cy?"inside":"bottom"),w=C==="center"?"inside":C,b=w==="inside"&&(d==="left"?f>=15:d==="center"?f>=50:f>=85),g={};return r&&(g["--progress-bar-fill"]=r),s&&(g["--progress-bar-track"]=s),t.jsxs("div",{className:Ee("progress-bar",`progress-bar--${a}`,`progress-bar--label-${w}`,i&&`progress-bar--align-${d}`,i&&b&&"progress-bar--label-on-fill",p),style:g,children:[t.jsx("div",{className:"progress-bar__track",role:"progressbar","aria-valuenow":h,"aria-valuemin":0,"aria-valuemax":y,"aria-valuetext":i?l?l(h):i==="percent"?void 0:i==="raw"?String(h):`${h} / ${y}`:void 0,"aria-label":u,children:t.jsx("div",{className:"progress-bar__fill",style:{width:`${f}%`}})}),i&&t.jsx("span",{className:"progress-bar__label caption-1b",children:l?l(h):i==="percent"?`${Math.round(f)}%`:i==="raw"?String(h):`${h} / ${y}`})]})}const nc={position:"absolute",width:1,height:1,margin:-1,padding:0,overflow:"hidden",clipPath:"inset(50%)",whiteSpace:"nowrap",border:0},dy="rgba(255, 255, 255, 0.16)";function ac({max:e,index:n,inactiveBg:a,inactiveColor:r,transparent:s,variant:i="numbered",announce:l=!1,ariaLabel:c}){const{t:d}=Ce.useTranslation(),u=tn("(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,m=c??d("progress.steps",{current:p+1,total:e,defaultValue:"\uC9C4\uD589 \uB2E8\uACC4 {{current}} / {{total}}"}),h={};if(a&&(h["--pi-inactive-bg"]=a),r&&(h["--pi-inactive-color"]=r),s&&(a||(h["--pi-inactive-bg"]=dy),r||(h["--pi-inactive-color"]="var(--color-white)")),i==="dot")return t.jsxs("div",{className:"progress-indicator progress-indicator--dot",style:h,role:l?"status":"img","aria-label":l?void 0:m,children:[l&&t.jsx("span",{style:nc,children:m}),Array.from({length:e}).map((y,C)=>t.jsx("span",{"aria-hidden":"true",className:`progress-indicator-dot--dot${C<p?" done":C===p?" active":""}`},C))]});const f=l?t.jsx("span",{role:"status",style:nc,children:m}):null;return u?t.jsxs(t.Fragment,{children:[t.jsx("div",{className:"progress-indicator progress-indicator--mobile",style:h,role:"list","aria-label":m,children:t.jsxs("span",{role:"listitem",className:"progress-indicator-dot active body-3",children:[p+1," / ",e]})}),f]}):t.jsxs(t.Fragment,{children:[f,t.jsx("div",{className:"progress-indicator",style:h,role:"list","aria-label":m,children:Array.from({length:e}).map((y,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 py(e){if(!e)return[];const n=[];let a=0,r="";for(const s of e.trim()){if(s==="("?a++:s===")"&&a--,/\s/.test(s)&&a===0){r&&(n.push(r),r="");continue}r+=s}return r&&n.push(r),n}function my({children:e,className:n,style:a}){return t.jsx("div",{className:n?`table-cell ${n}`:"table-cell",style:a,children:e})}function go({variant:e="default",children:n,className:a,draggable:r,onClick:s,onMouseEnter:i,onMouseLeave:l,onDragStart:c,onDragEnd:d,expandedContent:u}){const p=o.useCallback(m=>{s&&m.target===m.currentTarget&&(m.key==="Enter"||m.key===" ")&&(m.preventDefault(),s())},[s]);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:s,onKeyDown:s?p:void 0,onMouseEnter:i,onMouseLeave:l,onDragStart:c,onDragEnd:d,role:s?"button":void 0,tabIndex:s?0:void 0,children:n}),u&&t.jsx("div",{className:"table-row-expand",children:u})]})}function hy({dir:e}){return t.jsx(e==="asc"?bs:gs,{className:"table-field__sort-arrow",size:16,strokeWidth:2})}function Cy({children:e,onClick:n,className:a,sortDir:r,ariaSort:s,onResizeStart:i}){const l=t.jsxs(t.Fragment,{children:[e,r&&t.jsx(hy,{dir:r})]});return t.jsxs("div",{onClick:n,role:"columnheader","aria-sort":s,className:Ee("table-field body-3",a,r?"table-field--sorted":"",i?"table-field--resizable":""),children:[n?t.jsx("button",{type:"button",className:"table-field__button",children:l}):l,i&&t.jsx("span",{className:"table-field__resizer",onPointerDown:i,onClick:c=>c.stopPropagation(),"aria-hidden":"true"})]})}function bo({fields:e=[],headerGroups:n,items:a=[],renderRow:r,onRowClick:s,isRowClickable:i,onRowMouseEnter:l,onRowMouseLeave:c,onRowDragStart:d,onRowDragEnd:u,draggingId:p,gridTemplateColumns:m,mobileGridTemplateColumns:h,resizable:f=!1,resizeMode:y="grow",resizeStorageKey:C,size:w="small",title:b,icon:g,count:_,collapsed:v=!1,onToggleCollapse:k,headerActions:A,empty:B,loading:x,dragOver:N=!1,onDragOver:D,onDragLeave:P,onDrop:H,renderExpandedRow:M,expandedId:z}){const{t:j}=Ce.useTranslation(),S=tn("(max-width: 767px)"),I=h&&S?h:null,W=f&&!S,Z=48,U=o.useRef(()=>Z),q=C?`table-cols:${C}`:null,K=o.useRef(null),L=o.useRef(()=>!1),E=o.useRef([]),F=o.useRef(null),R=de=>{if(!de||typeof window>"u")return null;try{const Ae=JSON.parse(window.localStorage.getItem(de)??"null");return Array.isArray(Ae)&&Ae.length>0&&Ae.every(Re=>typeof Re=="number"&&Number.isFinite(Re)&&Re>0)?Ae:null}catch{return null}},[O,$]=o.useState(()=>R(q)),[Y,Q]=o.useState(q);Y!==q&&(Q(q),$(R(q)));const X=o.useRef(O);o.useEffect(()=>{X.current=O},[O]);const ie=o.useCallback(de=>{const Ae=F.current;if(!Ae)return;const Re=X.current;if(Re){const Pe=[...Re];if(Ae.next!=null&&Ae.startWNext!=null){const we=de.clientX-Ae.startX,Se=Math.max(U.current(Ae.index)-Ae.startW,Math.min(Ae.startWNext-U.current(Ae.next),we));Pe[Ae.index]=Ae.startW+Se,Pe[Ae.next]=Ae.startWNext-Se}else Pe[Ae.index]=Math.max(U.current(Ae.index),Ae.startW+(de.clientX-Ae.startX));X.current=Pe,$(Pe)}},[]),be=o.useCallback(()=>{if(F.current=null,window.removeEventListener("pointermove",ie),window.removeEventListener("pointerup",be),window.removeEventListener("pointercancel",be),document.body.style.cursor="",document.body.style.userSelect="",q&&X.current)try{window.localStorage.setItem(q,JSON.stringify(X.current))}catch{}},[ie,q]),ne=o.useCallback((de,Ae)=>{Ae.preventDefault(),Ae.stopPropagation();const Re=K.current;if(!Re)return;const Pe=Array.from(Re.children).map(Se=>Se.getBoundingClientRect().width),we=y==="fit"?e.findIndex((Se,Oe)=>Oe>de&&Se.resizable!==!1):-1;F.current=we>=0?{index:de,startX:Ae.clientX,startW:Pe[de],next:we,startWNext:Pe[we]}:{index:de,startX:Ae.clientX,startW:Pe[de]},X.current=Pe,$(Pe),window.addEventListener("pointermove",ie),window.addEventListener("pointerup",be),window.addEventListener("pointercancel",be),document.body.style.cursor="col-resize",document.body.style.userSelect="none"},[ie,be,y,e]),oe=o.useCallback(()=>{const de=K.current,Ae=de?.closest(".table-wrap");if(!de||!Ae)return;const Re=Ae.style.getPropertyValue("--table-grid-cols");Ae.style.setProperty("--table-grid-cols",e.map((De,je)=>L.current(je)?E.current[je]:"max-content").join(" "));const Pe=Array.from(Ae.querySelectorAll(".table-row")).filter(De=>!De.classList.contains("table-row--loading")&&!De.classList.contains("table-row--empty")),we=e.map((De,je)=>{let ke=de.children[je]?.getBoundingClientRect().width??0;for(const We of Pe){const ht=We.children[je];ht&&(ke=Math.max(ke,ht.getBoundingClientRect().width))}const $e=L.current(je)?parseFloat(E.current[je]):NaN;return Number.isFinite($e)?$e:Math.max(U.current(je),Math.ceil(ke))}),Se=window.getComputedStyle(de),Oe=de.clientWidth-(parseFloat(Se.paddingLeft)||0)-(parseFloat(Se.paddingRight)||0);Re?Ae.style.setProperty("--table-grid-cols",Re):Ae.style.removeProperty("--table-grid-cols");let Be=we;const nt=we.reduce((De,je,ke)=>De+(L.current(ke)?je:0),0),Ge=we.reduce((De,je,ke)=>De+(L.current(ke)?0:je),0),Xe=Oe-nt;if(Oe>0&&Ge>0&&Xe>0){const De=Xe/Ge;Be=we.map((ke,$e)=>L.current($e)?ke:Math.max(U.current($e),Math.round(ke*De)));const je=Math.round(Xe-Be.reduce((ke,$e,We)=>ke+(L.current(We)?0:$e),0));if(je!==0){let ke=-1;Be.forEach(($e,We)=>{!L.current(We)&&(ke<0||$e>Be[ke])&&(ke=We)}),ke>=0&&(Be[ke]=Math.max(U.current(ke),Be[ke]+je))}}if($(Be),q)try{window.localStorage.setItem(q,JSON.stringify(Be))}catch{}},[e,y,q]);o.useEffect(()=>()=>{F.current&&(window.removeEventListener("pointermove",ie),window.removeEventListener("pointerup",be),window.removeEventListener("pointercancel",be),document.body.style.cursor="",document.body.style.userSelect="")},[ie,be]);const V=py(m),ae=V.filter(de=>/\b(auto|min-content|max-content)\b|fit-content\(/.test(de));ae.length>0&&bn(`table-content-track:${m}`,`[ihabdevteam-core] Table \uC758 gridTemplateColumns \uC5D0 \uB0B4\uC6A9\uC73C\uB85C \uD06C\uAE30\uAC00 \uC815\uD574\uC9C0\uB294 \uD2B8\uB799(${ae.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: ${m})`);const ue=e.findIndex(de=>!!de.sortDir);e.filter(de=>!!de.sortDir).length>1&&bn("table-multi-sort","[ihabdevteam-core] Table \uC758 fields \uC5D0 sortDir \uC774 \uB458 \uC774\uC0C1 \uC788\uC2B5\uB2C8\uB2E4. aria-sort \uB294 \uD45C \uD558\uB098\uC5D0 \uD55C \uCE78\uB9CC \uAC00\uC9C8 \uC218 \uC788\uC5B4 \uCCAB \uCE78\uB9CC \uBC29\uD5A5\uC73C\uB85C \uC54C\uB9AC\uACE0 \uB098\uBA38\uC9C0\uB294 none \uC73C\uB85C \uB461\uB2C8\uB2E4.");const ge=de=>de===ue?e[de].sortDir==="asc"?"ascending":"descending":e[de].onClick?"none":void 0,me=de=>/^\d+(\.\d+)?px$/.test(V[de]??""),re=de=>{const Ae=V[de]??"",Re=/^minmax\(\s*(\d+(?:\.\d+)?)px\s*,/.exec(Ae)??/^(\d+(?:\.\d+)?)px$/.exec(Ae);return Re?parseFloat(Re[1]):Z};L.current=me,U.current=re,E.current=V;const he=de=>y==="fit"&&!me(de)?"fr":"px",_e=O&&O.length===e.length&&!S&&(y==="fit"||a.length>0),Me=I??(_e?e.map((de,Ae)=>de.resizable===!1&&V[Ae]?V[Ae]:`${O[Ae]}${he(Ae)}`).join(" "):m),Ue=Me?{"--table-grid-cols":Me}:void 0,Ie=b!==void 0;return t.jsx("div",{className:`table-wrap table-wrap--${w}${W?" table-wrap--resizable":""}${N?" table-wrap--dragover":""}${v?" table-wrap--collapsed":""}`,style:Ue,onDragOver:D,onDragLeave:P,onDrop:H,children:t.jsxs("div",{className:"table body-2",children:[Ie&&t.jsxs("div",{className:"table-header",onClick:k,role:k?"button":void 0,tabIndex:k?0:void 0,"aria-expanded":k?!v:void 0,onKeyDown:k?de=>{de.target===de.currentTarget&&(de.key==="Enter"||de.key===" ")&&(de.preventDefault(),k())}:void 0,children:[k&&t.jsx(ce,{htmlType:"button",size:40,type:"dot",variant:"transparent-gray",useBorder:!1,icon:v?"chevron-right":"chevron-down",ariaLabel:v?j("common.expand","\uD3BC\uCE58\uAE30"):j("common.collapse","\uC811\uAE30"),className:"table-header__chevron"}),g&&t.jsx(Ze,{icon:g,label:typeof b=="string"?b:void 0,className:"table-header__icon"}),t.jsx("span",{className:"table-header__title h5b",children:b}),_!==void 0&&t.jsx("span",{className:"table-header__count body-3b",children:_}),A&&t.jsx("span",{className:"table-header__actions",onClick:de=>de.stopPropagation(),children:A})]}),!v&&t.jsxs(t.Fragment,{children:[n&&n.length>0&&t.jsx("div",{className:"table-fields table-fields--groups",children:n.map((de,Ae)=>t.jsx("div",{className:Ee("table-field body-3",de.className),style:{gridColumn:`span ${de.span}`},children:de.label},Ae))}),t.jsxs("div",{className:Ee("table-fields-strip",W&&"table-fields-strip--resizable"),children:[t.jsx("div",{className:"table-fields",ref:K,children:e.map((de,Ae)=>t.jsx(Cy,{onClick:de.onClick,className:de.className,sortDir:de.sortDir,ariaSort:ge(Ae),onResizeStart:W&&Ae<e.length-1&&de.resizable!==!1&&(y!=="fit"||e.some((Re,Pe)=>Pe>Ae&&Re.resizable!==!1))?Re=>ne(Ae,Re):void 0,children:de.label},Ae))}),W&&t.jsx(ce,{htmlType:"button",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:oe})]}),t.jsx("div",{className:"table-body",children:x?t.jsx(go,{variant:"loading"}):a.length===0&&B?t.jsx(go,{variant:"empty",children:B}):a.map((de,Ae)=>{const Re=p!=null&&de.id===p,Pe=!!s&&(i?i(de):!0),we=z!=null&&de.id!=null&&(z instanceof Set?z.has(de.id)||[...z].some(Se=>String(Se)===String(de.id)):String(de.id)===String(z));return t.jsx(go,{className:`${Pe?" table-row--clickable":""}${d?" table-row--draggable":""}${Re?" table-row--dragging":""}`.trim(),draggable:!!d,onClick:Pe?()=>s(de):void 0,onMouseEnter:l?Se=>l(de,Se):void 0,onMouseLeave:c?Se=>c(de,Se):void 0,onDragStart:d?Se=>d(de,Se):void 0,onDragEnd:u?Se=>u(de,Se):void 0,expandedContent:we&&M?M(de):void 0,children:r(de).map((Se,Oe)=>t.jsx(my,{className:Se.className,style:Se.style,children:Se.content},Oe))},de.id!=null?`${typeof de.id}:${de.id}`:`__idx:${Ae}`)})})]})]})})}function rc(e){switch(e){case"\uBCF4\uCCAD\uAE30":return"main";case"\uC778\uACF5\uC640\uC6B0":return"sub";default:return"default"}}const oa=e=>e==null?"":String(e).trim();function yo(e,n,a){const r=[oa(e),oa(n),oa(a)];for(;r.length>0&&r[r.length-1]==="";)r.pop();return r.join(".")}function fy(e,n,a){const r=oa(e);return r?`${r}-${oa(n).padStart(2,"0")}-${oa(a).padStart(2,"0")}`:""}const gy={\uBCF4\uCCAD\uAE30:"hearingAid",\uC778\uACF5\uC640\uC6B0:"cochlearImplant"};function by(e,n){const a=gy[e];return a?n(`device.type.${a}`,{defaultValue:e}):e}function oc(e,n){return n!=="wornAt"?String(e[n]??""):fy(e.wornYear,e.wornMonth,e.wornDay)}function yy({rows:e,loading:n,onSelect:a,onDelete:r,onWear:s,onRelease:i,onAdd:l}){const{t:c}=Ce.useTranslation(),d=C=>C==="\uC88C"?c("device.direction.left","\uC88C"):c("device.direction.right","\uC6B0"),{\uC815\uB82C:u,\uCE78:p}=Xg(),m=o.useMemo(()=>{if(!u)return e;const{key:C,asc:w}=u;return[...e].sort((b,g)=>{if(C==="worn"){const _=Number(g.worn)-Number(b.worn);return w?_:-_}return Xr(oc(b,C),oc(g,C),w)})},[e,u]),{pageRows:h,pageSizeProps:f,paginationProps:y}=Zg(m,u);return t.jsxs("div",{className:"dlp-side-table",children:[t.jsx(lo,{count:{value:e.length,unit:c("customers.device.unit","\uAC1C")},pageSize:f,pagination:y,actions:l&&t.jsx(ce,{htmlType:"button",size:40,type:"bar",variant:"main",icon:"plus",label:c("customers.device.addButton","\uAE30\uAE30 \uCD94\uAC00"),onClick:l})}),t.jsx(bo,{loading:n,resizable:!0,resizeMode:"fit",resizeStorageKey:"customer-device-history-v2",fields:[{...p(c("customers.device.wearingNow","\uCC29\uC6A9"),"worn"),resizable:!1},p(c("device.direction.label","\uBC29\uD5A5"),"side"),p(c("device.deviceType","\uC885\uB958"),"device"),p(c("device.brand","\uBE0C\uB79C\uB4DC"),"brand"),p(c("device.fitType","\uCC29\uC6A9\uD615\uD0DC"),"fitType"),p(c("device.productName","\uC81C\uD488\uBA85"),"productName"),p(c("device.wornDate","\uCC29\uC6A9\uC77C"),"wornAt"),...r?[{label:"",resizable:!1}]:[]],items:h.map((C,w)=>({id:C.id??`${C.side}-${w}`,row:C})),gridTemplateColumns:`56px 110px 110px minmax(120px, 1fr) 100px minmax(120px, 1fr) 110px${r?" 80px":""}`,renderRow:({row:C})=>[{content:t.jsx("span",{className:"dlp-worn-check",onClick:w=>w.stopPropagation(),children:t.jsx(Hl,{checked:C.worn,disabled:C.worn?!i:!s,ariaLabel:C.worn?c("customers.device.unwear","\uCC29\uC6A9 \uD574\uC81C"):c("customers.device.wear","\uCC29\uC6A9"),onChange:w=>{w?s?.(C):i?.(C)}})})},{content:t.jsx("span",{children:d(C.side)})},{content:C.device?t.jsx(bt,{size:"small",variant:rc(C.device),fill:"soft",label:by(C.device,c)}):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:yo(C.wornYear,C.wornMonth,C.wornDay)||"-"})},...r?[{content:t.jsx("span",{className:"dlp-row-actions",children:t.jsx(ce,{htmlType:"button",size:28,type:"bar",variant:"transparent-gray",label:c("common.delete","\uC0AD\uC81C"),onClick:w=>{w?.stopPropagation(),r(C)}})})}]:[]],onRowClick:({row:C})=>a(C),empty:c("customers.device.historyEmpty","\uB4F1\uB85D\uB41C \uAE30\uAE30 \uC774\uB825\uC774 \uC5C6\uC2B5\uB2C8\uB2E4.")})]})}function sc(e,n){return e?{role:n?.role??"button",tabIndex:0,...n?.selected===void 0?{}:{"aria-selected":n.selected},onKeyDown:a=>{a.target===a.currentTarget&&(a.key!=="Enter"&&a.key!==" "||(a.preventDefault(),e(a)))}}:{}}function vy(e,n){return new Date(e,n+1,0).getDate()}function xy(e,n){return new Date(e,n,1).getDay()}function _y({visits:e=[],onVisitClick:n,onVisitMove:a,onDayClick:r,today:s}){const{t:i}=Ce.useTranslation(),l=o.useMemo(()=>i("calendar.dow",{returnObjects:!0}),[i]),c=Pr(s),[d,u]=o.useState(()=>Number(c.slice(0,4))),[p,m]=o.useState(()=>Number(c.slice(5,7))-1),[h,f]=o.useState(null),y=o.useRef(null),C=o.useMemo(()=>{const k={};return e.forEach(A=>{k[A.date]||(k[A.date]=[]),k[A.date].push(A)}),k},[e]),w=o.useMemo(()=>{const k=vy(d,p),A=xy(d,p),B=[];for(let x=0;x<A;x++)B.push(null);for(let x=1;x<=k;x++)B.push(x);for(;B.length<35;)B.push(null);return B},[d,p]),b=o.useCallback(()=>{p===0?(u(k=>k-1),m(11)):m(k=>k-1)},[p]),g=o.useCallback(()=>{p===11?(u(k=>k+1),m(0)):m(k=>k+1)},[p]),_=k=>`${d}-${String(p+1).padStart(2,"0")}-${String(k).padStart(2,"0")}`,v=k=>_(k)===c;return t.jsxs("div",{children:[t.jsxs("div",{className:"calendar-nav",children:[t.jsx("button",{type:"button",className:"calendar-nav__button",onClick:b,"aria-label":i("calendar.prevMonth","\uC774\uC804 \uB2EC"),children:t.jsx(Ze,{icon:"chevron-left",label:"",className:"",svgClassName:"calendar-nav__button-icon",size:18})}),t.jsx("span",{className:"calendar-nav__title h5","aria-live":"polite",children:i("calendar.yearMonth",{year:d,month:p+1})}),t.jsx("button",{type:"button",className:"calendar-nav__button",onClick:g,"aria-label":i("calendar.nextMonth","\uB2E4\uC74C \uB2EC"),children:t.jsx(Ze,{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:i("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:i("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:i("calendar.legend.noVisit","\uBBF8\uBC29\uBB38")})]})]}),t.jsxs("div",{className:"calendar-grid",children:[l.map(k=>t.jsx("div",{className:"calendar-day-header body-3",children:k},k)),w.map((k,A)=>{if(k===null)return t.jsx("div",{className:"calendar-cell empty"},`empty-${A}`);const B=k,x=_(B),N=C[x]??[],D=h===x;return t.jsxs("div",{className:`calendar-cell${v(B)?" today":""}${D?" drag-over":""}${r?" calendar-cell--clickable":""}`,role:r?"button":void 0,tabIndex:r?0:void 0,"aria-label":r?i("calendar.addOnDate",{date:x}):void 0,"aria-current":v(B)?"date":void 0,onClick:r?()=>r(x):void 0,onKeyDown:r?P=>{P.target===P.currentTarget&&(P.key!=="Enter"&&P.key!==" "||(P.preventDefault(),r(x)))}:void 0,onDragOver:a?P=>{P.preventDefault(),f(x)}:void 0,onDragLeave:a?P=>{P.currentTarget.contains(P.relatedTarget)||f(null)}:void 0,onDrop:a?P=>{P.preventDefault(),y.current!=null&&(a(y.current,x),y.current=null),f(null)}:void 0,children:[t.jsx("div",{className:"calendar-cell__number body-3",children:B}),N.length>0&&t.jsxs("span",{className:"calendar-cell__visit-count caption-1","aria-label":i("calendar.visitCount",{count:N.length,defaultValue:"\uBC29\uBB38 {{count}}\uAC74"}),children:[t.jsx("span",{className:"calendar-cell__visit-dot","aria-hidden":"true"}),N.length]}),t.jsx("div",{className:"calendar-cell__badges",children:N.map((P,H)=>t.jsxs("div",{draggable:!!a,className:`calendar-visit-badge${P.status==="noVisit"?" calendar-visit-badge--no-visit":P.status==="scheduled"?" calendar-visit-badge--scheduled":""}${n?" calendar-visit-badge--clickable":""}${a?" calendar-visit-badge--draggable":""}`,onDragStart:a?M=>{y.current=P.id,M.dataTransfer.effectAllowed="move"}:void 0,onDragEnd:a?()=>{y.current=null,f(null)}:void 0,onClick:n?M=>{M.stopPropagation(),n(P)}:void 0,...sc(n?()=>n(P):void 0),"aria-label":[P.time?di(P.time,i):null,P.customer,i(P.status==="noVisit"?"calendar.legend.noVisit":P.status==="scheduled"?"calendar.legend.scheduled":"calendar.legend.visited")].filter(Boolean).join(" "),children:[P.time&&t.jsx("span",{className:"calendar-visit-badge__time body-3",children:di(P.time,i)}),t.jsx("span",{className:"calendar-visit-badge__name body-3",children:P.customer}),P.status==="noVisit"&&t.jsx("span",{className:"calendar-visit-badge__no-visit caption-1",children:i("calendar.legend.noVisit","\uBBF8\uBC29\uBB38")})]},P.id??H))})]},B)})]})]})}const wy={page:"h3",pagePopup:"h4",popup:"h5"};function sa({type:e="page",title:n,headingLevel:a,icon:r,action:s,disc:i,children:l,inGrid:c=!1,className:d,style:u}){const p=wy[e],m=n||i||s||r,h=a?`h${a}`:"div";return t.jsxs("div",{className:Ee("section",`section--${e}`,c&&"section--in-grid",d),style:u,children:[m&&t.jsxs("div",{className:"section__header",children:[t.jsxs("div",{className:"section__title-row",children:[r&&t.jsx(Ze,{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 ${p}`,children:n}),i&&t.jsx("div",{className:"section__disc body-3",children:i})]})]}),s&&t.jsx("div",{className:"section__action",children:s})]}),l]})}let vo=null,ic=!1;function lc(){if(ic||typeof document>"u")return;ic=!0,document.addEventListener("keydown",n=>{n.metaKey||n.ctrlKey||n.altKey||(vo="keyboard")},!0);const e=()=>{vo="pointer"};document.addEventListener("pointerdown",e,!0),document.addEventListener("mousedown",e,!0),document.addEventListener("touchstart",e,{capture:!0,passive:!0})}lc();function nr(){return lc(),vo==="keyboard"}const ar=20;function Ay(e){const{t:n}=Ce.useTranslation(),{type:a,trainingDatas:r,depth:s,renderPopup:i,completedIds:l,selectedIds:c,onItemComplete:d,size:u,useDescriptionTooltip:p,onRemove:m,onMore:h,sectionType:f="page"}=e||{},[,y]=o.useState(0),C=typeof r<"u"?Array.isArray(r)?r:[]:[],w=C.length,[b,g]=o.useState(Math.min(w,ar)),_=o.useMemo(()=>Array.isArray(s)?[...s,a?.label].filter(Boolean).join(" \xB7 "):[s||"",a?.label].filter(Boolean).join(" \xB7 "),[s,a?.label]);o.useEffect(()=>{g(Math.min(w,ar))},[w]),tl("speechear.data.updated",()=>y(B=>B+1));const v=o.useRef(null),k=o.useRef(null);function A(){const B=document.activeElement;k.current=nr()&&B&&B.closest?.(".training-block__more")?b:null,g(x=>Math.min(w,x+ar))}return o.useEffect(()=>{const B=k.current;if(B==null)return;k.current=null;const x=document.activeElement;x&&x!==document.body||v.current?.querySelectorAll(".training-block-button")[B]?.focus()},[b]),t.jsxs(sa,{type:f,title:a?.label,icon:a?.icon,disc:a?.desc,className:"training-block",children:[t.jsx("div",{className:"training-list",ref:v,children:(C||[]).slice(0,b).map((B,x)=>{const N=B;return t.jsx(oo,{index:x,type:a,trainingData:N,depth:_,renderPopup:i,completedIds:l,selectedIds:c,size:u,useDescriptionTooltip:p,onRemove:typeof m=="function"&&c!=null&&N?.id!=null&&c.has(String(N.id))?()=>m(N):void 0,onComplete:typeof d=="function"&&N?.id!=null?()=>d(String(N.id)):void 0,onMore:typeof h=="function"?D=>h(N,D):void 0},N?.id!=null?`${a?.key||"t"}-${String(N.id)}`:`${a?.key||"t"}-${x}`)})}),w>ar&&b<w&&t.jsx("div",{className:"training-block__more",children:t.jsx(ce,{htmlType:"button",size:48,type:"bar",icon:"plus",onClick:A,ariaLabel:n("common.loadMore","\uB354\uBCF4\uAE30"),label:n("common.loadMore","\uB354\uBCF4\uAE30"),variant:"main"})})]})}function xo(e){const n=o.useRef(null),[a,r]=o.useState(!!e),[s,i]=o.useState(!1);o.useEffect(()=>{i(!1);const d=n.current;r(!!e&&!(d?.complete&&d.naturalWidth>0))},[e]);const l=o.useCallback(()=>r(!1),[]),c=o.useCallback(()=>{r(!1),i(!0)},[]);return{imgRef:n,loading:a,failed:s,hasImage:!!e&&!s,onLoad:l,onError:c}}var ky='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 By=ky,_o=o.forwardRef(function({item:e,disabled:n=!1,onPlayDone:a,selectable:r=!1,selected:s=!1,onSelect:i,flipDelay:l=0,hideLabel:c=!1,hideAudio:d=!1,orderRank:u=null},p){const{t:m}=Ce.useTranslation(),h=e.word||e.title||"",f=n||!h,y=e.audio??e.sound??e.audioKey,C=e.subLabel||e.pronunciation||"",w=e.colloquialLabel||"",[b,g]=o.useState({label:h,subLabel:C,colloquialLabel:w,homonum:e.homonum});h&&(b.label!==h||b.subLabel!==C||b.colloquialLabel!==w||!Object.is(b.homonum,e.homonum))&&g({label:h,subLabel:C,colloquialLabel:w,homonum:e.homonum});const _=o.useRef(null),v=tn("(max-width: 767px)"),[k,A]=o.useState(!1),B=`${typeof y=="string"?y:y?.src??""}\0${h}`,[x,N]=o.useState({for:"",url:""}),D=x.for===B?x.url:"",P=ai(),H=e.textOnly??(!e.image&&!!b.label&&!!P&&P.entries.length>0&&!P.byWord.has(b.label)),M=H?"":Xn()?.(b.label,b.homonum)??e.image??"",{imgRef:z,loading:j,hasImage:S,onLoad:I,onError:W}=xo(M);o.useEffect(()=>{let O=!1;return(async()=>{if(y){if(typeof y=="string"){if(y.startsWith("http")||y.includes("/")){N({for:B,url:y});return}}else if(typeof y=="object"&&!Array.isArray(y)){const Y=y.src;if(Y){N({for:B,url:Y});return}}}const $=Dr();if($&&h)try{const Y=await Promise.resolve($(h));!O&&Y&&N({for:B,url:Y})}catch{}})(),()=>{O=!0}},[y,h,B]);const Z=o.useRef(!0),U=o.useRef(null);o.useEffect(()=>(Z.current=!0,()=>{Z.current=!1,U.current&&Ja(U.current),U.current=null;try{_.current?.pause()}catch{}_.current=null}),[]);const q=o.useCallback(()=>new Promise(O=>{if(typeof window<"u"&&window.speechSynthesis&&h){A(!0),window.speechSynthesis.cancel();const $=new SpeechSynthesisUtterance(h);$.lang="ko-KR",$.onend=()=>{A(!1);try{a?.()}catch{}O()},$.onerror=()=>{A(!1),O()},window.speechSynthesis.speak($)}else O()}),[h,a]),K=o.useCallback(O=>new Promise($=>{let Y=!1;const Q=()=>{Y||(Y=!0,A(!1),$(!1))};try{const X=new Audio(O);_.current=X,X.onended=()=>{if(!Y){Y=!0,A(!1);try{a?.()}catch{}$(!0)}},X.onerror=Q,X.play().catch(Q)}catch{Q()}}),[a]),L=o.useCallback(async()=>{if(n||!Z.current)return;const O=()=>{U.current===O&&(U.current=null);try{_.current?.pause()}catch{}try{window.speechSynthesis?.cancel()}catch{}A(!1)},$=Xa(O);U.current=O;try{window.speechSynthesis?.cancel()}catch{}try{if(D&&(A(!0),await K(D)))return;const Y=eC();if(Y&&h)try{const Q=await Promise.resolve(Y(h));if(!Z.current||U.current!==O||Q&&(A(!0),await K(Q)))return}catch{}if(!Z.current||U.current!==O)return;await q()}finally{$(),U.current===O&&(U.current=null)}},[n,D,h,K,q]);o.useImperativeHandle(p,()=>({play:()=>L()}),[L]);const E=O=>O.stopPropagation(),F=o.useCallback(O=>{if(O.stopPropagation(),!n){if(k){try{_.current?.pause()}catch{}try{window.speechSynthesis?.cancel()}catch{}A(!1);return}L()}},[n,k,L]),R=Ee("training-word-card",n?"training-word-card--disabled":"",f?"training-word-card--flipped":"",r?"training-word-card--selectable":"",s?"training-word-card--selected":"");return t.jsx("div",{className:R,onClick:r&&!n?i:void 0,role:r?"button":void 0,"aria-pressed":r?s:void 0,tabIndex:r&&!n?0:void 0,"aria-disabled":r&&n?!0:void 0,onKeyDown:r&&!n?O=>{O.target===O.currentTarget&&(O.key==="Enter"||O.key===" "||O.key==="Spacebar")&&(O.preventDefault(),i?.())}: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:[s&&t.jsx("div",{className:"training-word-card__selected-badge",onClick:E,children:t.jsx(bt,{type:"dot",size:40,position:"inline",animate:!0,icon:u!=null?void 0:"check",number:u??void 0,"aria-label":u!=null?m("training.nthSelected",{n:u}):m("training.selected","\uC120\uD0DD\uB428")})}),t.jsx("div",{className:"training-word-card__image-wrap",children:H?t.jsx("div",{className:"training-word-card__text-face",children:b.label}):S?t.jsxs(t.Fragment,{children:[j&&t.jsx("div",{className:"training-word-card__spinner"}),t.jsx("img",{ref:z,className:"training-word-card__image",src:M,alt:b.label||m("common.image","\uC774\uBBF8\uC9C0"),style:{opacity:j?0:1},onLoad:I,onError:W})]}):t.jsx("div",{className:"training-word-card__placeholder"})}),!c&&t.jsxs("div",{className:"training-word-card__body",children:[!H&&t.jsx("div",{className:"training-word-card__word",children:b.label}),b.subLabel&&t.jsxs("div",{className:"training-word-card__pronunciation",children:["[",b.subLabel,"]"]}),b.colloquialLabel&&t.jsxs("div",{className:"training-word-card__colloquial caption-1",children:["[",b.colloquialLabel,"]"]})]}),!d&&t.jsx("div",{className:"training-word-card__bottom",onClick:r?E:void 0,children:t.jsx(ce,{htmlType:"button",size:v?40:48,type:v?"dot":"bar",icon:k?"pause":"play",label:v?void 0:m("training.playSound","\uC18C\uB9AC \uB4E3\uAE30"),selected:k,onClick:F,disabled:n,ariaLabel:m("training.playSound","\uC18C\uB9AC \uB4E3\uAE30")})})]}),t.jsx("div",{className:"training-word-card__back","aria-hidden":"true",children:t.jsx("img",{src:By,className:"training-word-card__disabled-symbol",alt:"",draggable:!1})})]})})}),Ny=260;function Tn(e){const{t:n}=Ce.useTranslation(),{title:a,subtitle:r,headerActions:s,headerSegment:i,children:l,buttons:c,footer:d,footerStart:u,footerEnd:p,footerClassName:m="",footerLayout:h="center",onClose:f,closeDisabled:y=!1,beforeClose:C,closeOnBackdrop:w=!0,className:b="",ariaLabel:g,useTitle:_=!0,inline:v=!1,size:k,layer:A="modal",height:B,fillBody:x=!1,resetScrollKey:N}=e||{},[D,P]=o.useState(!1),H=o.useRef(!1),M=o.useRef(null),z=o.useId(),j=o.useRef(null);o.useEffect(()=>{},[v,a,g,b]),o.useEffect(()=>{N!==void 0&&j.current&&(j.current.scrollTop=0)},[N]);const[S,I]=o.useState(!1);o.useEffect(()=>{const X=j.current;if(!X)return;const ie=()=>I(X.scrollHeight>X.clientHeight+1);if(ie(),typeof ResizeObserver>"u")return;const be=new ResizeObserver(ie);be.observe(X);const ne=X.firstElementChild;return ne&&be.observe(ne),()=>be.disconnect()},[l,N]),o.useEffect(()=>{if(!v)return Rl()},[v]),o.useEffect(()=>{if(v)return;const X=document.activeElement,ie=M.current;return zr(ie,X),ie&&!ie.contains(document.activeElement)&&(ie.querySelector(yn)??ie).focus(),()=>{const be=document.activeElement;(!be||be===document.body||ie&&ie.contains(be))&&Vr(X)?.focus?.()}},[v]),Or(M,!v);const W=o.useRef(!0),Z=Wr(),U=o.useRef(null);o.useEffect(()=>(W.current=!0,()=>{W.current=!1,U.current&&(clearTimeout(U.current),U.current=null)}),[]);const q=o.useCallback(()=>{!W.current||!H.current||(H.current=!1,P(!1))},[]),K=o.useCallback((X,ie=!1)=>{if(ie&&!W.current||H.current)return;H.current=!0,P(!0);const be=setTimeout(()=>{U.current===be&&(U.current=null);let ne;try{ne=X?X():void 0}catch{q();return}ne&&typeof ne.then=="function"&&ne.then(()=>{setTimeout(q,120)},q)},Z?0:Ny);ie&&(U.current=be)},[q,Z]),L=o.useCallback(()=>{y||C&&C()===!1||K(f,!0)},[K,f,y,C]),E=o.useRef(L);o.useEffect(()=>{E.current=L});const F=!v&&!!f;o.useEffect(()=>{if(F)return zn(()=>E.current())},[F]);const R=F&&w,O=o.useRef(!1),$=X=>{O.current=X.target===X.currentTarget},Y=X=>{const ie=O.current;O.current=!1,ie&&X.target===X.currentTarget&&L()},Q=t.jsx("div",{className:`popup ${v?"popup--inline":""} ${A==="belowPagePopup"?"popup--below-page-popup":""} ${D?"popup--closing":""} ${b}`,onPointerDown:R?$:void 0,onClick:R?Y:void 0,onMouseDown:v?void 0:X=>{X.target===X.currentTarget&&X.preventDefault()},children:t.jsxs("div",{ref:M,className:`popup-panel${k?` popup-panel--${k}`:""}${B!=null?" popup-panel--has-height":""}${x?" popup-panel--fill-body":""}`,style:B!=null?{"--popup-height":typeof B=="number"?`${B}px`:B}:void 0,tabIndex:-1,role:v?void 0:"dialog","aria-modal":v?void 0:!0,"aria-labelledby":!v&&_&&a?z:void 0,"aria-label":!v&&!(_&&a)?g??(typeof a=="string"?a:void 0):void 0,children:[!_&&(s||f)?t.jsxs("div",{className:"popup-close-float",children:[s,f&&t.jsx(ce,{htmlType:"button",size:40,type:"dot",icon:"x",variant:"transparent-gray",useBorder:!1,onClick:L,disabled:y,ariaLabel:n("common.close","\uB2EB\uAE30")})]}):a||s||f?t.jsxs("div",{className:`popup-header${r?" popup-header--with-subtitle":""}`,children:[t.jsxs("div",{className:"popup-header-main",children:[t.jsx("span",{id:z,className:"popup-title popup-title--left h2",children:a}),r&&t.jsx("span",{className:"popup-subtitle body-3",children:r})]}),i&&t.jsx("div",{className:"popup-header-segment",children:t.jsx(An,{size:40,ariaLabel:i.ariaLabel,options:i.options.map(X=>({key:X.key,label:X.label,disabled:X.disabled})),value:i.value,onChange:i.onChange})}),t.jsxs("div",{className:"popup-header-actions",children:[s,f&&t.jsx(ce,{htmlType:"button",size:40,type:"dot",icon:"x",variant:"transparent-gray",useBorder:!1,onClick:L,disabled:y,ariaLabel:n("common.close","\uB2EB\uAE30")})]})]}):null,t.jsx("div",{className:"popup-content",ref:j,tabIndex:S?0:void 0,children:t.jsx("div",{className:"popup-content__inner",children:typeof l=="function"?l({animateThen:K,closeWithAnimation:L}):l})}),u||p?t.jsxs("div",{className:`popup-footer popup-footer--bar${m?` ${m}`:""}`,children:[t.jsx("div",{className:"popup-footer__start",children:typeof u=="function"?u({animateThen:K,closeWithAnimation:L}):u}),t.jsx("div",{className:"popup-footer__end",children:typeof p=="function"?p({animateThen:K,closeWithAnimation:L}):p})]}):c?.length?t.jsx("div",{className:`popup-footer popup-footer--buttons${h!=="center"?` popup-footer--${h}`:""}`,children:c.map((X,ie)=>t.jsx(ce,{htmlType:"button",size:48,variant:X.variant??"default",label:X.label,disabled:X.disabled,onClick:()=>X.onClick?.({animateThen:K,closeWithAnimation:L})},ie))}):d?t.jsx("div",{className:`popup-footer${h!=="center"?` popup-footer--${h}`:""}${m?` ${m}`:""}`,children:typeof d=="function"?d({animateThen:K,closeWithAnimation:L}):d}):null]})});return v||typeof document>"u"?Q:Xt.createPortal(Q,document.body)}function rr(e){return String(e)}const or=["o","triangle","x"];function cc(e,n){return e===n?null:n}const uc={o:"circle",triangle:"triangle",x:"x"},dc={o:"main",triangle:"warn",x:"danger"};function Ey(e){let n=0,a=0,r=0;for(const i of Object.values(e))i==="o"?n++:i==="triangle"?a++:i==="x"&&r++;const s=n+a+r;return{marked:s,o:n,triangle:a,x:r,rate:s===0?null:(n+a*.5)/s}}function wo(e){const n={};for(const[a,r]of Object.entries(e))(r==="o"||r==="triangle"||r==="x")&&(n[a]=r);return n}function pc(e){const n=[];let a=0;for(const r of e)n.push(a),a+=r;return n}function Dy(e,n){return!n&&e>0}const ia={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 Sy(e="landscape"){bn("print-word-table-deprecated","[printWordTable] @deprecated \u2014 WordTablePopup renderButtons \uC758 print(\uB610\uB294 useWordTablePrint().print)\uB97C \uC4F0\uC138\uC694. \uC804\uC5ED \uC778\uC1C4\uB294 \uD654\uBA74\uC758 \uBAA8\uB4E0 \uB2E8\uC5B4\uD45C\uB97C \uD568\uAED8 \uCC0D\uC2B5\uB2C8\uB2E4.");const{printSize:n,printW:a,printH:r}=ia[e],s=document.createElement("style");s.textContent=`@page { size: ${n}; margin: 0; } .word-table { width: ${a} !important; height: ${r} !important; }`,document.head.appendChild(s);const i=()=>{document.head.removeChild(s),window.removeEventListener("afterprint",i)};window.addEventListener("afterprint",i),window.print()}function mc(e,n){if(e.length===0)return[[]];const a=Math.max(1,Math.floor(n)),r=[];for(let s=0;s<e.length;s+=a)r.push(e.slice(s,s+a));return r}const jy={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 Ty(e,n){const a=jy[e][n];if(a)return a;const r=Math.max(1,Math.ceil(n)),s=Math.max(1,Math.ceil(Math.sqrt(r*.707)));let i,l;return e==="landscape"?(l=s,i=Math.ceil(r/l)):(i=s,l=Math.ceil(r/i)),(e==="landscape"?i<l:l<i)&&([i,l]=[l,i]),{cols:i,rows:l}}const My={\uD45C\uC2DC:"word-table-block__content--cut-show",\uC810\uC120:"",\uCF54\uB108:"word-table-block__content--cut-corner",\uBBF8\uD45C\uC2DC:""},hc={\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"},Cc={\uACE0\uC720:"\uACE0\uC720\uC5B4",\uD55C\uC790:"\uD55C\uC790\uC5B4",\uC678\uB798:"\uC678\uB798\uC5B4",\uD63C\uC885:"\uD63C\uC885\uC5B4"};function Ao(e,n){return e?e.split("/").map(a=>n[a]??a).join("/"):""}function fc(e,n,a,r){if(r!=="\uC810\uC120")return{};const s=e%n,i=Math.floor(e/n),l=s<n-1,c=i<a-1;if(!l&&!c)return{};const d="#ddd",u=f=>`repeating-linear-gradient(to ${f}, ${d} 0, ${d} 5px, transparent 5px, transparent 10px)`,p=[],m=[],h=[];return l&&(p.push(u("bottom")),m.push("1px 100%"),h.push("right center")),c&&(p.push(u("right")),m.push("100% 1px"),h.push("center bottom")),{backgroundImage:p.join(", "),backgroundSize:m.join(", "),backgroundPosition:h.join(", "),backgroundRepeat:"no-repeat",printColorAdjust:"exact",WebkitPrintColorAdjust:"exact"}}const Ly=280,$y=240,Ry=280,Py=400,Iy=120,Fy=280;function gc(e,n){const a=o.useRef(null),[r,s]=o.useState(1),[i,l]=o.useState(0),c=o.useCallback((d,u)=>{if(!(d>0))return;const p=d/e,m=n&&u>0?u/n:1/0,h=Math.min(1,p,m);s(h),l(Math.max(0,(d-e*h)/2))},[e,n]);return o.useEffect(()=>{const d=a.current;if(!d)return;const u=n?d.parentElement??d:d;if(c(u.clientWidth,u.clientHeight),typeof ResizeObserver>"u")return;const p=new ResizeObserver(([m])=>c(m.contentRect.width,m.contentRect.height));return p.observe(u),()=>p.disconnect()},[c,n]),{scalerRef:a,scale:r,offset:i}}const Oy={position:"absolute",width:1,height:1,margin:-1,padding:0,overflow:"hidden",clipPath:"inset(50%)",whiteSpace:"nowrap",border:0},Hy=400,bc=8;function yc({label:e,subLabel:n,colloquialLabel:a,homonum:r,showWord:s=!0,showImage:i=!0,showPronunciation:l=!0,showColloquial:c=!0,buttonSize:d=40,wordInfo:u}){const{t:p}=Ce.useTranslation(),m=o.useRef(null),h=o.useRef(null),f=o.useRef(null),[y,C]=o.useState(1),[w,b]=o.useState(!1),[g,_]=o.useState({for:"",url:""}),[v,k]=o.useState(null),A=n&&n.length>0?n:nC()?.(e,r)??"",B=Xn()?.(e,r)??"",{imgRef:x,loading:N,failed:D,onLoad:P,onError:H}=xo(B),M=o.useCallback(()=>k(h.current?.getBoundingClientRect()??null),[]),z=o.useCallback(()=>k(null),[]),j=Ur(!!v,F=>{F?M():z()},h),S=o.useMemo(()=>{if(!u)return null;const F=[];return u.grade&&F.push(p("wordTable.info.grade",{n:u.grade,defaultValue:"\uB09C\uC774\uB3C4: {{n}}\uB4F1\uAE09"})),u.syllables&&F.push(p("wordTable.info.syllables",{n:u.syllables,defaultValue:"\uC74C\uC808 \uC218: {{n}}\uC74C\uC808"})),u.pos&&F.push(p("wordTable.info.pos",{v:Ao(u.pos,zy(p)),defaultValue:"\uD488\uC0AC: {{v}}"})),u.wordType&&F.push(p("wordTable.info.wordType",{v:Ao(u.wordType,Vy(p)),defaultValue:"\uC720\uD615: {{v}}"})),F.length?F:null},[u,p]),I=A||e,W=g.for===I?g.url:"";o.useEffect(()=>{const F=Dr(),R=A||e;if(!F||!R)return;let O=!1;return Promise.resolve(F(R)).then($=>{!O&&$&&_({for:R,url:$})}),()=>{O=!0}},[A,e]);const Z=o.useRef(null),U=o.useRef(null);o.useEffect(()=>()=>{f.current?.pause(),U.current?.()},[]);const q=o.useCallback(async F=>{if(F.stopPropagation(),w){Z.current?.();return}if(W){b(!0);try{const R=new Audio(W);f.current=R;const O=()=>{b(!1),U.current?.()},$=()=>{R.pause(),O()};Z.current=$;const Y=Xa($);U.current=Y,R.onended=O,R.onerror=O,await R.play()}catch{b(!1),U.current?.()}}},[w,W]),K=i&&!!B&&!D,L=K&&s?Ly:K?Ry:$y,E=K&&s?Py:K?Fy:Iy;return o.useEffect(()=>{const F=m.current;if(!F||typeof ResizeObserver>"u")return;const R=new ResizeObserver(([O])=>{const{width:$,height:Y}=O.contentRect;C(Math.min($/L,Y/E))});return R.observe(F),()=>R.disconnect()},[L,E]),t.jsxs("div",{ref:m,className:Ee("word-table-cell",K?"word-table-cell--with-image":""),"data-ref-w":L,"data-ref-h":E,children:[t.jsxs("div",{className:"word-table-cell__inner",style:{transform:`scale(${y})`},children:[K&&t.jsxs("div",{className:"word-table-cell__image-wrap",children:[N&&t.jsx("div",{className:"word-table-cell__spinner"}),t.jsx("img",{ref:x,className:"word-table-cell__image",src:B,alt:e,draggable:!1,style:{opacity:N?0:1},onLoad:P,onError:H})]}),s&&t.jsx("span",{className:"word-table-cell__word h0",children:e}),l&&A&&t.jsxs("span",{className:"word-table-cell__sub h3",children:["[",A,"]"]}),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:w?"none":void 0},children:t.jsx(ce,{htmlType:"button",size:d,type:"dot",icon:"play",variant:"transparent-lightGray",useBorder:!1,showTooltipInfo:p("common.play","\uC7AC\uC0DD"),onClick:q})}),t.jsx("span",{"data-play-state":"pause",style:{display:w?void 0:"none"},children:t.jsx(ce,{htmlType:"button",size:d,type:"dot",icon:"pause",useBorder:!1,selected:!0,showTooltipInfo:p("common.pause","\uBA48\uCDA4"),onClick:q})})]}),u&&t.jsxs("div",{ref:h,className:"word-table-cell__info-button",onPointerEnter:F=>{ta(F)||M()},onPointerLeave:F=>{ta(F)||z()},onFocus:()=>{na()||M()},onBlur:z,children:[t.jsx(ce,{htmlType:"button",size:d,type:"dot",icon:"info",variant:"transparent-lightGray",useBorder:!1,showTooltipInfo:!1,ariaLabel:p("wordTable.wordInfo","{{word}} \uB0B1\uB9D0 \uC815\uBCF4",{word:e}),onClick:F=>{F.stopPropagation(),j.touchPress()}}),v&&S&&t.jsx(Vn,{anchorRect:v,items:S,showIndex:!1})]})]})}const vc={\uBA85:"noun",\uB3D9:"verb",\uD615:"adjective",\uBD80:"adverb",\uC218:"numeral",\uAD00:"determiner",\uAC10:"interjection",\uC870:"particle",\uC811:"affix",\uC758:"dependentNoun",\uB300:"pronoun",\uBCF4\uB3D9:"auxVerb",\uBCF4\uD615:"auxAdjective"},xc={\uACE0\uC720:"native",\uD55C\uC790:"sino",\uC678\uB798:"foreign",\uD63C\uC885:"mixed"};function zy(e){return Object.fromEntries(Object.entries(hc).map(([n,a])=>[n,vc[n]?e(`wordTable.pos.${vc[n]}`,{defaultValue:a}):a]))}function Vy(e){return Object.fromEntries(Object.entries(Cc).map(([n,a])=>[n,xc[n]?e(`wordSearch.filter.type.${xc[n]}`,{defaultValue:a}):a]))}function la({title:e,titleIcon:n,disc:a,className:r,orientation:s="landscape",contentTypes:i=["\uC774\uBBF8\uC9C0","\uB2E8\uC5B4","\uD45C\uC900 \uBC1C\uC74C"],cutLine:l="\uD45C\uC2DC",showOutline:c=!0,showDivLine:d=!0,items:u,editCells:p,count:m,activeCell:h=null,onActivateCell:f,onRemoveCell:y,onRemoveItem:C,onReorder:w,renderCellAction:b,showFillerAdd:g=!1,contentRef:_,buttonSize:v=40,brand:k,code:A,pageNumber:B,pageNumberPosition:x="right",fitHeight:N=!1,scoring:D=!1,marks:P,onMarkClick:H,scoreIndexOffset:M=0}){const z=o.useCallback((De,je)=>{H?.(M+De,je)},[H,M]),j=(De,je)=>{const ke=P?.[rr(M+De)]??null;return t.jsx("div",{className:Ee("word-table-cell__score",ke?"word-table-cell__score--marked":""),style:nt>1?{transform:`translateX(-50%) scale(${nt})`,transformOrigin:"bottom center"}:void 0,children:or.map($e=>t.jsx("span",{className:Ee("word-table-cell__score-slot",ke===$e?"word-table-cell__score-slot--on":""),children:t.jsx(ce,{htmlType:"button",size:v,type:"dot",icon:uc[$e],variant:ke===$e?dc[$e]:"default",selected:ke===$e,useBorder:!1,showTooltipInfo:!1,ariaLabel:S(`wordTable.scoring.${$e}`,{word:je,defaultValue:`${je} ${$e}`}),onClick:We=>{We.stopPropagation(),z(De,$e)}})},$e))})},{t:S}=Ce.useTranslation(),I=p!==void 0,W=e!=null||!!n||!!a,Z=tn("(max-width: 767px)"),U=o.useRef(null),[q,K]=o.useState(null),L=u?.length??0,[E,F]=o.useState(null),[R,O]=o.useState(""),$=o.useRef(null),Y=o.useRef(null),Q=o.useRef(null),X=o.useRef(null),ie=o.useCallback(De=>{Y.current=De,typeof _=="function"?_(De):_&&(_.current=De)},[_]),be=o.useCallback((De,je)=>{$.current=je,w?.(De,je),O(S("wordTable.reorder.moved",{n:je+1,total:L,defaultValue:"{{total}}\uCE78 \uAC00\uC6B4\uB370 {{n}}\uBC88\uC9F8\uB85C \uC62E\uAE40"}))},[w,S,L]);o.useEffect(()=>{const De=$.current;De!=null&&($.current=null,Y.current?.querySelectorAll(".word-table-block__card:not(.word-table-block__card--filler)")?.[De]?.querySelector(".word-table-block__card-handle button")?.focus())}),o.useEffect(()=>()=>{X.current?.()},[]);const ne=o.useCallback((De,je)=>{if(!w||!De.altKey||De.ctrlKey||De.metaKey)return;const ke=De.key==="ArrowRight";if(!ke&&De.key!=="ArrowLeft")return;De.preventDefault();const $e=je+(ke?1:-1);$e<0||$e>=L||be(je,$e)},[w,L,be]),oe=o.useCallback((De,je)=>{if(!w||De.pointerType==="mouse")return;const ke=De.target.closest?.("button");if(ke&&!ke.closest(".word-table-block__card-handle"))return;X.current?.();const $e={x:De.clientX,y:De.clientY};let We=!1;const ht=Ye=>{We&&Ye.cancelable&&Ye.preventDefault()},wt=Ye=>{if(!We){(Math.abs(Ye.clientX-$e.x)>bc||Math.abs(Ye.clientY-$e.y)>bc)&&rt();return}const at=document.elementFromPoint?.(Ye.clientX,Ye.clientY)?.closest?.("[data-wordtable-cell]"),ot=at?Number(at.dataset.wordtableCell):NaN,qe=Number.isInteger(ot)?ot:null;Q.current=qe,K(qe)},Et=()=>{const Ye=Q.current,at=We;rt(),at&&Ye!=null&&Ye!==je&&be(je,Ye)},At=setTimeout(()=>{We=!0,F(je),Q.current=je,K(je),window.addEventListener("touchmove",ht,{passive:!1})},Hy);function rt(){clearTimeout(At),window.removeEventListener("pointermove",wt),window.removeEventListener("pointerup",Et),window.removeEventListener("pointercancel",Et),window.removeEventListener("touchmove",ht),We=!1,Q.current=null,X.current=null,F(null),K(null)}X.current=rt,window.addEventListener("pointermove",wt),window.addEventListener("pointerup",Et),window.addEventListener("pointercancel",Et)},[w,be]),{width:V,height:ae}=ia[s],ue=typeof N=="number"?N:N&&typeof N=="object"?Z?N.narrow:N.wide:null,{scalerRef:ge,scale:me,offset:re}=gc(V,N?ae:void 0),he=I?p?.length??0:u?.length??0,_e=Math.max(m??he,1),{cols:Me,rows:Ue}=Ty(s,_e),Ie={word:i.length===0||i.includes("\uB2E8\uC5B4"),image:i.length===0||i.includes("\uC774\uBBF8\uC9C0"),pron:i.length===0||i.includes("\uD45C\uC900 \uBC1C\uC74C"),colloq:i.length===0||i.includes("\uAD6C\uC5B4\uCCB4 \uBC1C\uC74C")},de=I?(p??[]).some(De=>De!==null&&De.length>1):(u??[]).some(De=>(De.words??[]).length>1),Ae=!!k?.show,Re=!!k?.show&&k?.top!==!1,Pe=!!k?.show&&k?.bottom!==!1,we=k?.copyright??"\xA9 IHAB, Inc. All rights reserved.",Se=Ee("word-table-block__content",My[l],c&&"word-table-block__content--outline",d&&de&&"word-table-block__content--div-line",!Ae&&B&&x!=="none"&&"word-table-block__content--page-number",Re&&"word-table-block__content--brand-top",Pe&&"word-table-block__content--brand-bottom"),Oe={transform:`scale(${1/me})`,transformOrigin:"center center"},Be=v*or.length+4*(or.length-1),nt=Math.max(1,Math.min(1/me,V/Me/Be)),Ge=t.jsxs("div",{ref:ge,className:"word-table__scaler",style:{height:ae*me},children:[t.jsx("div",{className:Ee("word-table",!W&&r),style:{width:V,height:ae,transform:`scale(${me})`,transformOrigin:"top left",marginLeft:re},children:t.jsxs("div",{ref:ie,className:Se,style:{gridTemplateColumns:`repeat(${Me}, 1fr)`,gridTemplateRows:`repeat(${Ue}, 1fr)`},children:[I?t.jsx(t.Fragment,{children:(p??[]).map((De,je)=>t.jsx("div",{className:Ee("word-table-block__edit-cell",De?"word-table-block__edit-cell--filled":"word-table-block__edit-cell--empty",h===je?"word-table-block__edit-cell--active":""),style:fc(je,Me,Ue,l),children:De?t.jsxs(t.Fragment,{children:[De.map((ke,$e)=>t.jsxs(o.Fragment,{children:[$e>0&&t.jsx("div",{className:"word-table-block__pair-divider"}),t.jsx(yc,{label:ke.word,subLabel:ke.pronunciation,colloquialLabel:ke.colloquialPronunciation,homonum:ke.homonum,showWord:Ie.word,showImage:Ie.image,showPronunciation:Ie.pron,showColloquial:Ie.colloq,buttonSize:v})]},$e)),D&&j(je,De.map(ke=>ke.word).join(" / ")),y&&t.jsx("div",{className:"word-table-block__card-close",children:t.jsx(ce,{htmlType:"button",size:v,type:"dot",icon:"x",variant:"transparent-lightGray",useBorder:!1,showTooltipInfo:De.length>1?S("wordPrint.removePair","\uB300\uB9BD\uC30D \uBE7C\uAE30"):S("wordPrint.removeWord","\uB2E8\uC5B4 \uBE7C\uAE30"),ariaLabel:De.length>1?S("wordPrint.removePair","\uB300\uB9BD\uC30D \uBE7C\uAE30"):S("wordPrint.removeWord","\uB2E8\uC5B4 \uBE7C\uAE30"),onClick:()=>y(je)})})]}):f&&t.jsx("div",{style:Oe,children:t.jsx(ce,{htmlType:"button",size:"48",type:"bar",icon:"plus",label:S("wordTable.addWord","\uCD94\uAC00\uD558\uAE30"),onClick:()=>f(je)})})},je))}):t.jsxs(t.Fragment,{children:[(u??[]).map((De,je)=>t.jsxs("div",{"data-wordtable-cell":w?je:void 0,className:`word-table-block__card${w?" word-table-block__card--draggable":""}${q===je?" word-table-block__card--drag-over":""}${E===je?" word-table-block__card--dragging":""}`,style:fc(je,Me,Ue,l),draggable:!!w,onPointerDown:w?ke=>oe(ke,je):void 0,onKeyDown:w?ke=>ne(ke,je):void 0,onDragStart:w?()=>{U.current=je}:void 0,onDragOver:w?ke=>{ke.preventDefault(),K(je)}:void 0,onDragLeave:w?()=>K(null):void 0,onDrop:w?ke=>{ke.preventDefault(),U.current!==null&&U.current!==je&&w(U.current,je),U.current=null,K(null)}:void 0,onDragEnd:w?()=>{U.current=null,K(null)}:void 0,children:[(De.words??[]).map((ke,$e)=>t.jsxs(o.Fragment,{children:[$e>0&&t.jsx("div",{className:"word-table-block__pair-divider"}),t.jsx(yc,{label:ke.label,subLabel:ke.subLabel,colloquialLabel:ke.colloquialLabel,homonum:ke.homonum,showWord:Ie.word,showImage:Ie.image,showPronunciation:Ie.pron,showColloquial:Ie.colloq,buttonSize:v,wordInfo:ke.grade||ke.syllables!=null||ke.pos||ke.wordType?{grade:ke.grade,syllables:ke.syllables,pos:ke.pos,wordType:ke.wordType}:void 0})]},$e)),D&&j(je,(De.words??[]).map(ke=>ke.label).join(" / ")),w&&t.jsx("div",{className:"word-table-block__card-handle",children:t.jsx(ce,{htmlType:"button",size:v,type:"dot",icon:"grip-vertical",variant:"transparent-lightGray",useBorder:!1,showTooltipInfo:S("wordTable.reorder.hint","Alt + \u2190 \u2192 \uB85C \uC21C\uC11C \uBC14\uAFB8\uAE30"),ariaLabel:S("wordTable.reorder.handle",{word:(De.words??[]).map(ke=>ke.label).join(" / "),defaultValue:"{{word}} \uC21C\uC11C \uBC14\uAFB8\uAE30 (Alt + \uD654\uC0B4\uD45C)"})})}),(b||C)&&t.jsxs("div",{className:"word-table-block__card-actions",children:[b?.(je,De),C&&t.jsx("div",{className:"word-table-block__card-close",children:t.jsx(ce,{htmlType:"button",size:v,type:"dot",icon:"x",variant:"transparent-lightGray",useBorder:!1,showTooltipInfo:(De.words??[]).length>1?S("wordPrint.removePair","\uB300\uB9BD\uC30D \uBE7C\uAE30"):S("wordPrint.removeWord","\uB2E8\uC5B4 \uBE7C\uAE30"),ariaLabel:(De.words??[]).length>1?S("wordPrint.removePair","\uB300\uB9BD\uC30D \uBE7C\uAE30"):S("wordPrint.removeWord","\uB2E8\uC5B4 \uBE7C\uAE30"),onClick:()=>C(De.id)})})]})]},De.id)),Array.from({length:Math.max(0,Me*Ue-(u?.length??0))}).map((De,je)=>{const ke=(u?.length??0)+je<_e;return t.jsx("div",{className:"word-table-block__card word-table-block__card--filler",children:g&&f&&ke&&t.jsx("div",{style:Oe,children:t.jsx(ce,{htmlType:"button",size:v,type:"bar",icon:"plus",label:S("wordTable.addWord","\uCD94\uAC00\uD558\uAE30"),onClick:()=>f((u?.length??0)+je)})})},`filler-${je}`)})]}),Re&&t.jsx(t.Fragment,{children:t.jsxs("div",{className:"word-table__band word-table__band--top",children:[t.jsx("img",{className:"word-table__brand-logo",src:k?.topLogo?.src??Za,alt:k?.topLogo?.alt??"\uB9D0\uADC0"}),(()=>{const De=[k?.title&&t.jsx("span",{className:"word-table__paper-title",children:k.title},"t"),k?.owner&&t.jsx("span",{className:"word-table__owner",children:k.owner},"o"),A&&t.jsx("span",{className:"word-table__code",children:A},"c")].filter(Boolean);return De.length===0?null:t.jsx("span",{className:"word-table__ident",children:De.map((je,ke)=>t.jsxs(o.Fragment,{children:[ke>0&&t.jsx("span",{className:"word-table__ident-dot","aria-hidden":"true",children:"\xB7"}),je]},ke))})})()]})}),Pe&&t.jsx(t.Fragment,{children:t.jsxs("div",{className:"word-table__band word-table__band--bottom",children:[t.jsxs("span",{className:"word-table__brand-by",children:[k?.bottomLogo?t.jsx("img",{className:"word-table__brand-logo--ihab word-table__brand-logo--given",src:k.bottomLogo.src,alt:k.bottomLogo.alt}):t.jsx("span",{className:"word-table__brand-logo--ihab",role:"img","aria-label":"IHAB"}),t.jsx("span",{className:"word-table__copyright",children:we})]}),t.jsxs("span",{className:"word-table__band-end",children:[k?.link&&t.jsx("span",{className:"word-table__link",children:k.link}),B&&x!=="none"&&t.jsx("span",{className:"word-table__page-count",children:S("wordTable.filter.pageIndicator",{current:B.current,total:B.total})})]})]})}),!Ae&&B&&x!=="none"&&t.jsx("span",{className:`word-table__page-number body-3 word-table__page-number--${x}`,children:S("wordTable.filter.pageIndicator",{current:B.current,total:B.total})})]})}),w&&t.jsx("span",{role:"status",style:Oy,children:R})]}),Xe=ue==null?Ge:t.jsx("div",{className:"word-table__frame",style:{height:ue},children:Ge});return W?t.jsx(sa,{type:"page",icon:n,title:e,disc:a,className:Ee("word-table-block",r),children:Xe}):Xe}function Wy(e,n,a){const r=[];for(const s of e??[]){if(s.type==="note"||s.type==="input")continue;const i=s.displayLabel??s.label,l=qy(s,n?.[s.label],a);l!==null&&r.push(`${i} ${l}`)}return r.join(" \xB7 ")}function qy(e,n,a){const r=(Array.isArray(n)?n:n===void 0?[]:[n]).filter(s=>s!==on);return r.length===0?e.allOption?e.allLabel??a:null:r.map(s=>Uy(e,s)).join(", ")}function Uy(e,n){const a=[...e.items??[],...(e.groups??[]).flat()];for(const r of a)if(r!=null){if(typeof r=="string"){if(r===n)return r;continue}if(r.value===n)return r.displayLabel??r.labels?.join(" ")??r.value}return n}function Bn({title:e,headerAction:n,headerSummary:a,collapsible:r=!1,defaultCollapsed:s=!1,collapsed:i,onCollapsedChange:l,footer:c,sections:d,selected:u={},onSelect:p,align:m,sectionAlign:h,className:f}){const y=(m??(h==="vertical"?"newline":"inline"))==="inline",{t:C}=Ce.useTranslation(),[w,b]=o.useState(s),g=i??w,_=()=>{const x=!g;b(x),l?.(x)},v=x=>{if(!r)return;const N=x.target;!N||typeof N.closest!="function"||N.closest(".filter-panel__collapse-toggle")||N.closest('button, a, input, select, textarea, label, [role="radiogroup"], [role="button"], [role="menu"]')||_()},k=o.useMemo(()=>a!==void 0||!g?"":Wy(d,u,C("common.all","\uC804\uCCB4")),[a,g,d,u,C]),A=a??(k?t.jsx("span",{className:"filter-panel__header-summary body-3",children:k}):null),B=e||n||a||r;return t.jsxs("div",{className:Ee("filter-panel",r?"filter-panel--collapsible":"",g?"filter-panel--collapsed":"",f),children:[B&&t.jsxs("div",{className:"filter-panel__header",onClick:r?v:void 0,children:[t.jsx("div",{className:"filter-panel__title-row",children:e&&t.jsx("span",{className:"filter-panel__title h4",children:e})}),t.jsxs("div",{className:"filter-panel__header-actions",children:[g?A:n,r&&t.jsx(ce,{htmlType:"button",size:40,type:"dot",variant:"transparent-gray",useBorder:!1,icon:g?"chevron-down":"chevron-up",className:"filter-panel__collapse-toggle",ariaLabel:g?C("common.expand","\uD3BC\uCE58\uAE30"):C("common.collapse","\uC811\uAE30"),"aria-expanded":!g,onClick:_})]})]}),!g&&t.jsxs(t.Fragment,{children:[t.jsx("div",{className:Ee("filter-panel__sections",y?"filter-panel__sections--row":""),children:d.map(x=>{const N=u[x.label],D=N===void 0||(Array.isArray(N)?N.length===0:!1),P=(x.items??[]).filter(M=>M!=null);x.allOption&&P.some(M=>(typeof M=="string"?M:M.value)===on)&&bn(`filter-panel-all-value:${x.label}`,`[FilterPanel] '${x.label}' \uC808\uC5D0 allOption \uACFC \uAC12 '${on}' \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 H=M=>{const z=typeof M=="string"?M:M.value,j=typeof M!="string"&&!!M.disabled,S=typeof M!="string"?M.labels:void 0,I=typeof M!="string"?M.displayLabel:void 0,W=typeof M!="string"?M.tooltip:void 0,Z=typeof M!="string"?M.descriptionTooltip:void 0,U=typeof M!="string"?M.shape:void 0,q=Array.isArray(N)?N.includes(z):N===z;return t.jsx(ce,{htmlType:"button",size:"keyboard",label:S??I??z,type:x.itemType??(S?"bar":z.length===1?"dot":void 0),selected:q,disabled:j,shape:U,showTooltipInfo:!!W,tooltipInfoText:W,tooltipDescription:Z,onClick:()=>p?.(z,x.label)},z)};return t.jsxs(o.Fragment,{children:[x.groupLabel&&t.jsxs("div",{className:"filter-panel__group-label-row",children:[t.jsx("div",{className:"filter-panel__group-label body-2",children:x.groupLabel}),x.groupAction]}),t.jsxs("div",{className:Ee("filter-panel__section",x.layout==="row"?"filter-panel__section--row":"",x.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:x.displayLabel??x.label}),x.labelAction??(x.labelInfo?t.jsx(Da,{...x.labelInfo}):null)]}),x.type==="note"?t.jsx("div",{className:"filter-panel__note body-3",children:x.content}):x.type==="input"?t.jsx(Un,{className:"filter-panel__textfield",placeholder:x.placeholder,ariaLabel:x.displayLabel??x.label,value:u[x.label]??"",onChange:M=>p?.(M,x.label),error:x.error}):!x.multiple&&x.display==="segmented"?t.jsx(An,{ariaLabel:x.displayLabel??x.label,options:[...x.allOption?[{key:on,label:x.allLabel??C("common.all","\uC804\uCCB4"),disabled:x.allOptionDisabled}]:[],...P.map(M=>{const z=typeof M=="string"?M:M.value,j=typeof M!="string"?M.displayLabel:void 0,S=typeof M!="string"?M.disabled:void 0;return{key:z,label:j??z,disabled:S}})],value:D&&x.allOption?on:u[x.label]??"",onChange:M=>p?.(M,x.label),size:32}):!x.multiple&&x.display==="dropdown"?t.jsx(sn,{className:"filter-panel__dropdown",size:40,options:[...x.allOption?[{value:on,label:x.allLabel??C("common.all","\uC804\uCCB4"),disabled:x.allOptionDisabled}]:[],...P.map(M=>{const z=typeof M=="string"?M:M.value,j=typeof M!="string"?M.displayLabel:void 0,S=typeof M!="string"?M.disabled:void 0;return{value:z,label:j??z,disabled:S}})],value:D&&x.allOption?on:u[x.label],onChange:M=>p?.(M,x.label)}):t.jsxs("div",{className:x.groups?"filter-panel__item-groups":"filter-panel__items",children:[x.allOption&&!x.groups&&t.jsx(ce,{htmlType:"button",size:"keyboard",label:x.allLabel??C("common.all","\uC804\uCCB4"),selected:D,disabled:x.allOptionDisabled,onClick:()=>p?.(on,x.label)}),x.groups?x.groups.map((M,z)=>t.jsxs("div",{className:"filter-panel__item-group",children:[z===0&&x.allOption&&t.jsx(ce,{htmlType:"button",size:"keyboard",label:x.allLabel??C("common.all","\uC804\uCCB4"),selected:D,disabled:x.allOptionDisabled,onClick:()=>p?.(on,x.label)}),M.filter(j=>j!=null).map(H)]},z)):P.map(H)]})]})]},x.label)})}),c!=null&&c!==!1&&t.jsx("div",{className:"filter-panel__footer body-3",children:c})]})]})}const Gy=[1,2,3,4,5,6,7,8,9,10,11,12],_c=[8,4,2,1];function wc(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 Ac(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 kc(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 Bc(e){return{label:e("wordTable.filter.topInfo","\uC0C1\uB2E8 \uC815\uBCF4"),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 Nc(e){return{label:e("wordTable.filter.bottomInfo","\uD558\uB2E8 \uC815\uBCF4"),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 Ec(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 Dc(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 Sc(e,n){return{label:e(n.hasPairs?"wordTable.filter.itemsPerPagePair":"wordTable.filter.itemsPerPageWord"),items:[n.itemCount,..._c.filter(a=>a<n.itemCount)].map(a=>({value:`${a}\uAC1C`,displayLabel:e("wordTable.filter.itemsPerPageOption",{count:a})})),display:"segmented"}}function jc(e,n){return e===n||!_c.includes(e)?Number.POSITIVE_INFINITY:e}function Ky(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 Tc={left:"\uC67C\uCABD",center:"\uC911\uC559",right:"\uC624\uB978\uCABD",none:"\uBBF8\uD45C\uC2DC"};function Mc(e){return e==="\uC67C\uCABD"?"left":e==="\uC911\uC559"?"center":e==="\uC624\uB978\uCABD"?"right":"none"}function Lc(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",...n.showTopInfo!=null?{[e("wordTable.filter.topInfo","\uC0C1\uB2E8 \uC815\uBCF4")]:n.showTopInfo?"\uD45C\uC2DC":"\uBBF8\uD45C\uC2DC"}:{},...n.showBottomInfo!=null?{[e("wordTable.filter.bottomInfo","\uD558\uB2E8 \uC815\uBCF4")]:n.showBottomInfo?"\uD45C\uC2DC":"\uBBF8\uD45C\uC2DC"}:{}}}function $c(e,n,a,r){return a===e("wordTable.filter.composition","\uAD6C\uC131")?n===on?(r.setContentTypes(()=>[]),!0):(r.setContentTypes(s=>s.includes(n)?s.filter(i=>i!==n):[...s,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):a===e("wordTable.filter.topInfo","\uC0C1\uB2E8 \uC815\uBCF4")?(r.setShowTopInfo?.(n==="\uD45C\uC2DC"),!0):a===e("wordTable.filter.bottomInfo","\uD558\uB2E8 \uC815\uBCF4")?(r.setShowBottomInfo?.(n==="\uD45C\uC2DC"),!0):!1}function Yy(e){return"sections"in e}function ko(e){const{t:n}=Ce.useTranslation(),{title:a,className:r,collapsible:s,defaultCollapsed:i,collapsed:l,onCollapsedChange:c,headerSummary:d}=e,u={collapsible:s,defaultCollapsed:i,collapsed:l,onCollapsedChange:c,headerSummary:d};if(Yy(e))return t.jsx(Bn,{className:r,title:a??n("wordTable.filterTitle","\uD45C \uC124\uC815"),sections:e.sections,selected:e.selected,onSelect:e.onSelect,...u,align:"inline"});const{hasImage:p,hasColloquial:m,contentTypes:h,orientation:f,showOutline:y,cutLine:C,showDivLine:w,setters:b,showCutLine:g=!1,showDivLine2:_=!1,middleSections:v=[],extraSelected:k={},onExtraSelect:A,showPaperBands:B=!1,showTopInfo:x=!0,showBottomInfo:N=!0}=e,D=[wc(n,{hasImage:p,hasColloquial:m}),Ac(n),...v,kc(n),...g?[Ec(n)]:[],..._?[Dc(n)]:[],...B?[Bc(n),Nc(n)]:[]],P={...Lc(n,{contentTypes:h,orientation:f,showOutline:y,cutLine:C,showDivLine:w,showTopInfo:x,showBottomInfo:N}),...k},H=(M,z)=>{$c(n,M,z,b)||A?.(M,z)};return t.jsx(Bn,{className:r,title:a??n("wordTable.filterTitle","\uD45C \uC124\uC815"),sections:D,selected:P,onSelect:H,...u,sectionAlign:"horizontal"})}function Rc(e){return e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">")}function Bo(e){return e.replace(/[\\/:*?"<>|]/g,"_").trim()}let sr=null,ca=null;function Zy(e,n,a,r="",s=""){if(e.length===0||ca&&ca.iframe.isConnected&&Date.now()-ca.at<1e4)return;const i=r?Bo(r):"";sr?.();let l=null;if(i){const u=document.title;document.title=i,l=()=>{document.title=u,window.removeEventListener("afterprint",l),sr===l&&(sr=null)},sr=l,window.addEventListener("afterprint",l)}const c=document.createElement("iframe");c.style.cssText="position:fixed;left:-10000px;top:0;width:1200px;height:900px;border:0;",document.body.appendChild(c);const d=c.contentDocument;if(!d){c.remove();return}ca={iframe:c,at:Date.now()},d.open(),d.write(No(e,n,a,!0,i,s)),d.close(),c.contentWindow?.addEventListener("afterprint",()=>{l?.(),setTimeout(()=>{c.remove(),ca?.iframe===c&&(ca=null)},0)})}function No(e,n,a,r=!1,s="",i=""){s=s?Bo(s):"";const l=Array.from(document.styleSheets).flatMap(p=>{try{return Array.from(p.cssRules).map(m=>m.cssText)}catch{return[]}}).join(`
|
|
860
|
-
`),
|
|
859
|
+
`),C=y===-1?a:a.slice(0,y);i("comment",C),a=a.slice(C.length);continue}const u=a.match(/^\/\*[\s\S]*?\*\//);if(u){i("comment",u[0]),a=a.slice(u[0].length);continue}const d=a.match(/^(`(?:\\.|[^`])*`|"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*')/);if(d){i("string",d[0]),a=a.slice(d[0].length);continue}const c=a.match(/^\d+(?:\.\d+)?/);if(c){i("number",c[0]),a=a.slice(c[0].length);continue}const p=a.match(P4);if(p){i("keyword",p[0]),a=a.slice(p[0].length);continue}const m=a.match(/^[A-Za-z_$][A-Za-z0-9_$-]*/);if(m){const y=m[0];i(s&&R4.has(y)?"command":"identifier",y),a=a.slice(y.length);continue}const h=a.match(/^[=+\-*/%<>!&|^~?:]+/);if(h){i("operator",h[0]),a=a.slice(h[0].length);continue}const g=a.match(/^[()[\]{};.,]/);if(g){i("punctuation",g[0]),a=a.slice(1);continue}i("other",a[0]),a=a.slice(1)}return r}function F4({children:e,language:n="bash",title:a="",showCopy:r=!0,size:s="default",className:i=""}){const{t:l}=Ce.useTranslation(),[u,d]=o.useState(!1),c=$4(Fl(e)),p=o.useRef(null);o.useEffect(()=>()=>{p.current&&clearTimeout(p.current)},[]);const m=async()=>{try{if(!await TC(c))return;d(!0),p.current&&clearTimeout(p.current),p.current=setTimeout(()=>d(!1),2e3)}catch{}},h=I4(c,n),g=s==="small"?"caption-1":"body-3";return t.jsxs("div",{className:Ee("code-box",s==="small"?"code-box--small":"",i),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(le,{htmlType:"button",className:"code-box__copy",size:40,type:"dot",variant:"transparent-gray",useBorder:!1,icon:u?"check":"copy",onClick:m,ariaLabel:u?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:h.map((y,C)=>t.jsx("span",{className:`code-token ${y.type} ${g}`,children:y.content},C))})})]})}const O4={position:"absolute",width:1,height:1,margin:-1,padding:0,overflow:"hidden",clipPath:"inset(50%)",whiteSpace:"nowrap",border:0};function Ta(e){const{t:n}=Ce.useTranslation(),{variant:a="spinner",size:r=24,progress:s=null,label:i}=e||{},l=i||n("loader.loading","Loading");if(a==="bar"){const d=s==null||!Number.isFinite(Number(s)),c=d?0:Math.max(0,Math.min(100,Number(s)));return t.jsx("div",{className:`loader-bar${d?" loader-bar--indeterminate":""}`,role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":d?void 0:c,"aria-label":l,children:t.jsx("div",{className:"loader-bar__inner",style:d?void 0:{width:`${c}%`}})})}const u=typeof r=="number"?`${r}px`:r;return t.jsxs("div",{className:"loader-spinner",style:{width:u,height:u},role:"status","aria-label":l,children:[t.jsx("span",{style:O4,children:l}),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 Ol({checked:e,onChange:n,disabled:a=!1,label:r,ariaLabel:s,labelPosition:i="right",className:l="",id:u}){const d=r&&t.jsx("span",{className:"toggle__label body-3",children:r});return t.jsxs("label",{className:`toggle${a?" toggle--disabled":""} ${l}`.trim(),children:[i==="left"&&d,t.jsx("input",{id:u,type:"checkbox",role:"switch",checked:e,disabled:a,onChange:c=>n?.(c.target.checked),"aria-label":!r&&s?s:void 0}),t.jsx("span",{className:"toggle__slider"}),i==="right"&&d]})}function Hl({checked:e=!1,onChange:n,disabled:a,indeterminate:r,label:s,size:i="medium",className:l,title:u,ariaLabel:d}){const c=o.useRef(null),p=o.useId(),m=o.useRef(!!r);return m.current=!!r,o.useEffect(()=>{c.current&&(c.current.indeterminate=!!r)}),t.jsxs("label",{className:Ee("checkbox",i==="small"&&"checkbox--small",i==="large"&&"checkbox--large",a&&"checkbox--disabled",l),htmlFor:p,title:u,children:[t.jsx("input",{ref:c,id:p,type:"checkbox",className:"checkbox__input",checked:e,onChange:h=>{n?.(h.target.checked),c.current&&(c.current.indeterminate=m.current)},disabled:a,"aria-label":!s&&d?d:void 0}),t.jsx("span",{className:"checkbox__box"}),s&&t.jsx("span",{className:"checkbox__label body-3",children:s})]})}function H4({count:e,actions:n,onClear:a,clearLabel:r,visible:s,content:i,max:l}){const{t:u}=Ce.useTranslation(),d=s!==void 0?s:e>0,c=r??u("bulkBar.clearSelection","\uC120\uD0DD \uD574\uC81C"),p=o.useRef(null),m=o.useRef(null),h=o.useRef(null),g=o.useRef(d);o.useLayoutEffect(()=>{const f=m.current,_=g.current;if(g.current=d,d&&!_){const v=typeof document<"u"?document.activeElement:null;h.current=v&&v!==document.body&&!f?.contains(v)?v:null}else!d&&_&&f&&f.contains(document.activeElement)&&Ua(f,h.current)},[d]);const[y,C]=o.useState(!1),w=o.useRef(!1),b=o.useRef(null);return o.useEffect(()=>{const f=p.current;if(!f)return;const _=N=>{w.current=N,C(N)},v=()=>{const N=f.firstElementChild??f,D=Array.from(N.children);if(D.length<2){_(!1);return}const P=D[0].offsetTop,H=D.some(I=>I.offsetTop!==P);if(!w.current){b.current=f.clientWidth,H&&_(!0);return}if(H)return;const M=D[0],z=D[D.length-1],j=z.offsetLeft+z.offsetWidth-M.offsetLeft,S=b.current;(S==null||j<=S)&&_(!1)};if(v(),typeof ResizeObserver>"u")return;const k=new ResizeObserver(v);k.observe(f);const A=f.parentElement;let B=A?.clientWidth??0;const x=new ResizeObserver(()=>{const N=A?.clientWidth??0;N!==B&&(B=N,b.current=null,v())});return A&&x.observe(A),()=>{k.disconnect(),x.disconnect()}},[i,e]),t.jsxs("div",{ref:m,className:`bulk-bar ${d?"bulk-bar--visible":""}`,inert:!d||void 0,"aria-hidden":d?void 0:!0,children:[t.jsx("span",{ref:p,className:"bulk-bar__count body-2",role:"status",children:i??t.jsx("b",{children:u("common.selectedCount",{count:e})})}),l!==void 0&&t.jsx(bt,{size:"small",fill:"soft",variant:"main",label:`${e} / ${l}`}),t.jsxs("div",{className:`bulk-bar__actions${y?" bulk-bar__actions--stacked":""}`,children:[t.jsx(le,{htmlType:"button",size:40,label:c,onClick:a}),n.map((f,_)=>t.jsx(le,{htmlType:"button",size:40,variant:f.variant??"default",icon:f.icon,label:f.label,onClick:f.onClick},_))]})]})}const z4=[{\uC5F4\uC1E0:"edit",icon:"edit-2",\uB2EB\uACE0\uD560\uAE4C:!0},{\uC5F4\uC1E0:"duplicate",icon:"copy",\uB2EB\uACE0\uD560\uAE4C:!1},{\uC5F4\uC1E0:"publish",icon:"book-marked",\uB2EB\uACE0\uD560\uAE4C:!1},{\uC5F4\uC1E0:"copyLink",icon:"link",\uB2EB\uACE0\uD560\uAE4C:!1},{\uC5F4\uC1E0:"remove",icon:"trash-2",\uB2EB\uACE0\uD560\uAE4C:!0}];function V4(e){const{onClose:n,className:a}=e;return t.jsx("div",{className:Ee("item-actions",a),children:z4.map(({\uC5F4\uC1E0:r,icon:s,\uB2EB\uACE0\uD560\uAE4C:i})=>{const l=e[r];if(!l)return null;const u=r==="publish"?l.published?l.unpublish:l.publish:l;return t.jsx(le,{htmlType:"button",size:40,type:"dot",icon:s,ariaLabel:u.label,showTooltipInfo:u.label,onClick:()=>{i&&n(),u.onClick()}},r)})})}function zl(e,n){const a=()=>{if(e){const[C,w]=e.split("-");return{y:+C,m:+w-1}}const[g,y]=Pr(n).split("-");return{y:+g,m:+y-1}},[r,s]=o.useState(()=>a().y),[i,l]=o.useState(()=>a().m),u=o.useRef(e);o.useEffect(()=>{if(e===u.current)return;u.current=e;const g=a();s(g.y),l(g.m)},[e]);const d=o.useRef({y:r,m:i});o.useEffect(()=>{d.current={y:r,m:i}},[r,i]);const c=o.useCallback(g=>{const y=d.current.y*12+d.current.m+g,C=Math.floor(y/12),w=y-C*12;d.current={y:C,m:w},s(C),l(w)},[]),p=o.useCallback(()=>c(-1),[c]),m=o.useCallback(()=>c(1),[c]),h=o.useCallback((g,y)=>{d.current={y:g,m:y},s(g),l(y)},[]);return{viewY:r,viewM:i,prevMonth:p,nextMonth:m,setViewYM:h}}function er(e,n){return new Date(e,n+1,0).getDate()}function W4(e,n){return new Date(e,n,1).getDay()}function tr(e,n,a){return`${e}-${String(n+1).padStart(2,"0")}-${String(a).padStart(2,"0")}`}function q4(e){if(!e)return"";const[n,a,r]=e.split("-");return`${n}. ${a}. ${r}.`}function U4(e,n,a,r){const s=a?+a.split("-")[0]:e-10,i=r?+r.split("-")[0]:e+10,l=[];for(let u=s;u<=i;u++)for(let d=0;d<12;d++){const c=`${u}-${String(d+1).padStart(2,"0")}`;a&&c<a.slice(0,7)||r&&c>r.slice(0,7)||l.push({value:c,label:n(u,d+1)})}return l}function G4({value:e,onChange:n,size:a=48,min:r,max:s,disabled:i,placeholder:l,className:u,today:d}){const{t:c}=Ce.useTranslation(),p=l??c("datePicker.chooseDate","\uB0A0\uC9DC \uC120\uD0DD"),m=o.useMemo(()=>c("calendar.dow",{returnObjects:!0}),[c]),h=Pr(d),{viewY:g,viewM:y,prevMonth:C,nextMonth:w,setViewYM:b}=zl(e,d),f=o.useId(),_=o.useCallback((E,F)=>{const R=window.innerHeight,O=window.innerWidth,$=typeof document<"u"?document.getElementById(f):null,Y=$?.offsetHeight||300,Q=Math.max(E.width,$?.offsetWidth||0,260),X=R-E.bottom,ce=E.top,xe=X<Y&&ce>X,te=8,re=(V,ae)=>Math.min(Math.max(te,V),Math.max(te,ae));return{position:"fixed",left:re(E.left,O-Q-te),width:E.width,minWidth:260,...xe?{bottom:re(R-E.top+6,R-Y-te)}:{top:re(E.bottom+6,R-Y-te)},zIndex:Aa(F)}},[f]),{open:v,setOpen:k,toggle:A,style:B,triggerRef:x,menuRef:N}=ka({computeStyle:_,onScroll:"reposition",onResize:"reposition",ignoreOutsideClickSelector:".dropdown__menu"});o.useEffect(()=>{if(!v)return;const E=N.current;return(E?.querySelector(".date-picker__day--selected:not(:disabled)")??E?.querySelector(".date-picker__day--today:not(:disabled)")??E?.querySelector(".date-picker__day:not(:disabled)")??E?.querySelector(yn)??E)?.focus?.(),()=>{const F=document.activeElement;(!F||F===document.body)&&x.current?.focus?.()}},[v,N,x]);const[D,P]=o.useState(1),H=o.useRef(null),M=o.useRef(null);o.useEffect(()=>{if(!v)return;const E=e&&e.slice(0,7)===`${g}-${String(y+1).padStart(2,"0")}`?+e.slice(8):h.slice(0,7)===`${g}-${String(y+1).padStart(2,"0")}`?+h.slice(8):1;P(E)},[v]),o.useEffect(()=>{if(M.current==null)return;const E=M.current;M.current=null,H.current?.querySelector(`[data-day="${E}"]`)?.focus()}),o.useEffect(()=>{P(E=>Math.min(E,er(g,y)))},[g,y]);const z=o.useCallback(E=>{let F=tr(E.getFullYear(),E.getMonth(),E.getDate());r&&F<r&&(F=r),s&&F>s&&(F=s);const[R,O,$]=F.split("-").map(Number);(R!==g||O-1!==y)&&b(R,O-1),P($),M.current=$},[r,s,g,y,b]),j=o.useCallback(E=>{const F=new Date(g,y,D),R=$=>{F.setDate(F.getDate()+$),z(F)},O=$=>{const Y=F.getFullYear()*12+F.getMonth()+$,Q=Math.floor(Y/12),X=Y-Q*12;z(new Date(Q,X,Math.min(F.getDate(),er(Q,X))))};switch(E.key){case"ArrowLeft":R(-1);break;case"ArrowRight":R(1);break;case"ArrowUp":R(-7);break;case"ArrowDown":R(7);break;case"Home":R(-F.getDay());break;case"End":R(6-F.getDay());break;case"PageUp":E.shiftKey?O(-12):O(-1);break;case"PageDown":E.shiftKey?O(12):O(1);break;default:return}E.preventDefault()},[g,y,D,z]),S=o.useCallback(E=>{i||(n(tr(g,y,E)),k(!1))},[g,y,n,k,i]);o.useEffect(()=>{i&&k(!1)},[i,k]);const I=E=>{const F=tr(g,y,E);return!!(r&&F<r||s&&F>s)},W=(()=>{const E=er(g,y);if(D>=1&&D<=E&&!I(D))return D;for(let F=1;F<=E;F++)if(!I(F))return F;return-1})(),Z=[];for(let E=0;E<W4(g,y);E++)Z.push(null);for(let E=1;E<=er(g,y);E++)Z.push(E);const U=a===64?20:a===40?16:18,q=U4(g,(E,F)=>c("calendar.yearMonth",{year:E,month:F,defaultValue:"{{year}}\uB144 {{month}}\uC6D4"}),r,s),K=`${g}-${String(y+1).padStart(2,"0")}`,L=v?Xt.createPortal(t.jsxs("div",{ref:N,id:f,className:"date-picker__dropdown",style:B,"data-tooltip-ignore":!0,role:"dialog","aria-label":c("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":c("calendar.prevMonth","\uC774\uC804 \uB2EC"),children:t.jsx(ss,{size:16,strokeWidth:2})}),t.jsx(sn,{className:"date-picker__nav-dropdown",ariaLabel:c("datePicker.selectYearMonth","\uC5F0\uC6D4 \uC120\uD0DD"),options:q,value:K,onChange:E=>{const[F,R]=E.split("-");b(+F,+R-1)},block:!0,size:40}),t.jsx("button",{type:"button",className:"date-picker__nav-btn",onClick:w,"aria-label":c("calendar.nextMonth","\uB2E4\uC74C \uB2EC"),children:t.jsx(is,{size:16,strokeWidth:2})})]}),t.jsxs("div",{className:"date-picker__grid",ref:H,onKeyDown:j,children:[m.map(E=>t.jsx("div",{className:"date-picker__dow caption-1",children:E},E)),Z.map((E,F)=>{if(E===null)return t.jsx("div",{},`e${F}`);const R=tr(g,y,E),O=R===e,$=R===h,Y=I(E),Q=F%7;return t.jsx("button",{type:"button",disabled:Y,"data-day":E,tabIndex:E===W?0:-1,"aria-current":$?"date":void 0,onClick:()=>!Y&&S(E),className:Ee("date-picker__day caption-1",O&&"date-picker__day--selected",$&&!O&&"date-picker__day--today",Y&&"date-picker__day--disabled",Q===0&&"date-picker__day--sun",Q===6&&"date-picker__day--sat"),children:E},E)})]})]}),document.body):null;return t.jsxs("div",{className:Ee("date-picker",`date-picker--s${a}`,v&&"date-picker--open",u),children:[t.jsxs("button",{ref:x,type:"button",className:"date-picker__trigger body-2",onClick:()=>!i&&A(),disabled:i,"aria-haspopup":"true","aria-expanded":v,children:[t.jsx("span",{className:e?"date-picker__value":"date-picker__placeholder",children:e?q4(e):p}),t.jsx(fs,{size:U,className:"date-picker__icon",strokeWidth:1.5})]}),L]})}function Vl({children:e,className:n}){const a=o.useRef(null),[r,s]=o.useState(null);return o.useEffect(()=>{s(a.current?.parentElement??null)},[]),o.useEffect(()=>{const i=a.current;if(!i||!r)return;const l=()=>{const d=typeof window<"u"&&window.getComputedStyle(i).position==="absolute"?Math.ceil(i.getBoundingClientRect().width):0;d>0?r.style.setProperty("--section-head-float-w",`${d}px`):r.style.removeProperty("--section-head-float-w")};if(l(),typeof ResizeObserver>"u")return()=>{r.style.removeProperty("--section-head-float-w")};const u=new ResizeObserver(()=>l());return u.observe(i),u.observe(r),()=>{u.disconnect(),r.style.removeProperty("--section-head-float-w")}},[r,e]),t.jsx("div",{ref:a,className:Ee("section-head-float",n),children:e})}function uo({items:e,className:n}){return t.jsx("div",{className:n?`manager-bar-chart-legend ${n}`:"manager-bar-chart-legend",children:e.map((a,r)=>t.jsxs("span",{className:"manager-bar-chart-legend-item",children:[t.jsx("span",{className:"manager-bar-chart-legend-dot",style:{background:a.color}}),a.label]},r))})}function Ma({label:e,children:n}){return e?t.jsxs("div",{className:"barchart-total barchart-total--stacked",children:[t.jsx("span",{className:"barchart-total__label body-3",children:e}),t.jsx("span",{className:"barchart-total__value",children:n})]}):t.jsx("div",{className:"barchart-total",children:n})}function co({title:e,titleClassName:n="h3",icon:a,disc:r,headRight:s,headFloat:i,headSegment:l,headMenuItems:u,collapseBelow:d=420,onClick:c,ariaLabel:p,tooltip:m,totalNum:h,totalUnit:g,totalLabel:y,subRow:C,subRowAlign:w="start",className:b,inGrid:f=!1,children:_}){const{t:v}=Ce.useTranslation(),k=o.useRef(null),{anchorRect:A,openAt:B,close:x}=wa(),N=o.useCallback(()=>{m&&k.current&&B(k.current)},[m,B]),[D,P]=o.useState(!1);io(()=>{const L=k.current;if(!L||!l)return;const E=R=>P(R>0&&R<d);if(E(L.clientWidth),typeof ResizeObserver>"u")return;const F=new ResizeObserver(R=>E(R[0].contentRect.width));return F.observe(L),()=>F.disconnect()},[l,d]);const[H,M]=o.useState(null),z=o.useCallback(()=>M(null),[]),j=o.useCallback(L=>{const E=L.currentTarget.getBoundingClientRect();M(F=>F?null:{left:E.left,right:E.right,top:E.top,bottom:E.bottom,width:E.width,height:E.height,x:E.x,y:E.y})},[]),S=!!l&&D;o.useEffect(()=>{S||M(null)},[S]);const I=l?[...l.options.map(L=>({label:L.label,icon:L.icon,selected:L.key===l.value,disabled:L.disabled,onClick:()=>l.onChange(L.key),closeOnSelect:!0})),...(u??[]).map((L,E)=>E===0?{...L,separatorBefore:!0}:L)]:[],W=o.useCallback(L=>{if(!c)return;const E=L.target;E&&typeof E.closest=="function"&&E.closest('button, a, input, select, textarea, [role="radiogroup"]')||c()},[c]),Z=o.useCallback(L=>{c&&L.target===L.currentTarget&&(L.key==="Enter"||L.key===" ")&&(L.preventDefault(),c())},[c]),U=typeof s=="function"?s({collapsed:S}):s,q=h!=null||y?t.jsxs(Ma,{label:y,children:[h!=null&&t.jsx("span",{className:"barchart-total__num h0",children:h}),g&&t.jsx("span",{className:"barchart-total__unit h5",children:g})]}):null,K=U||l?t.jsxs("div",{className:"manager-section__head-right",children:[l&&(S?t.jsx(le,{htmlType:"button",size:32,type:"dot",icon:"ellipsis",ariaLabel:l.ariaLabel??v("common.more","\uB354\uBCF4\uAE30"),showTooltipInfo:l.ariaLabel??v("common.more","\uB354\uBCF4\uAE30"),"aria-haspopup":"menu","aria-expanded":!!H,onClick:j}):t.jsx(An,{size:32,ariaLabel:l.ariaLabel,options:l.options.map(L=>({key:L.key,label:L.label,disabled:L.disabled})),value:l.value,onChange:l.onChange})),U]}):null;return t.jsxs("section",{ref:k,className:["manager-section",f&&"manager-section--grid",c&&"manager-section--clickable",b].filter(Boolean).join(" "),onClick:c?W:void 0,onKeyDown:c?Z:void 0,onPointerEnter:m?N:void 0,onPointerLeave:m?x:void 0,onFocus:m?N:void 0,onBlur:m?x:void 0,role:c?"button":void 0,tabIndex:c?0:void 0,"aria-label":c?p??(typeof e=="string"?e:void 0):void 0,children:[m&&A&&t.jsx(vn,{anchorRect:{left:A.left,top:A.top+21,right:A.right,bottom:A.bottom,width:A.width,height:A.height},text:m}),i&&t.jsx(Vl,{children:i}),t.jsxs("div",{className:"manager-section__head",children:[t.jsxs("div",{className:"manager-section__title-row",children:[a&&t.jsx(Ze,{icon:a,label:typeof e=="string"?e:void 0,className:"manager-section__icon"}),t.jsx("div",{className:["manager-section__title",n].filter(Boolean).join(" "),children:e})]}),K,r&&t.jsx("div",{className:"manager-section__disc body-3",children:r})]}),(q||C)&&t.jsxs("div",{className:["barchart-sub-row",w!=="start"&&`barchart-sub-row--${w}`].filter(Boolean).join(" "),children:[q,C]}),_,H&&t.jsx(rn,{anchorRect:H,onClose:z,ariaLabel:l?.ariaLabel??v("tooltip.menu","\uBA54\uB274"),children:t.jsx(Ba,{columns:[{items:I}],onClose:z,size:"small"})})]})}function pn(e,n){const a=new Date(e,n,1).getDay();return 1+(8-(a===0?7:a))%7}function K4(){const e=Jn();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 s=Math.floor((r-pn(n,a))/7),i=`${n}\uB144 ${a+1}\uC6D4`;return{monthKey:i,value:`${i}#${s}`}}function Y4(e){const n=Jn(),a=`${n.getFullYear()}\uB144 ${n.getMonth()+1}\uC6D4`,r=(d,c)=>`${d}\uB144 ${c+1}\uC6D4`,s=new Map;s.set(a,[]);for(const d of e){if(isNaN(d.date.getTime()))continue;const c=r(d.date.getFullYear(),d.date.getMonth());s.has(c)||s.set(c,[]),s.get(c).push(d)}for(const[d,c]of[...s.entries()]){const p=d.match(/^(\d+)년 (\d+)월$/);if(!p)continue;const m=Number(p[1]),h=Number(p[2])-1,g=pn(m,h);if(!(d===a&&n.getDate()<g)&&!c.some(w=>w.date.getDate()<g))continue;const y=new Date(m,h,0),C=r(y.getFullYear(),y.getMonth());s.has(C)||s.set(C,[])}const i=new Map;for(const[d,c]of s){const p=d.match(/^(\d+)년 (\d+)월$/);if(!p)continue;const m=Number(p[1]),h=Number(p[2])-1,g=new Date(m,h+1,0).getDate(),y=c.reduce((v,k)=>Math.max(v,k.parts?.length??0,k.partsB?.length??0),0),C=c.some(v=>v.partsB),w=new Array(g+1).fill(0),b=new Array(g+1).fill(0),f=Array.from({length:g+1},()=>new Array(y).fill(0)),_=Array.from({length:g+1},()=>new Array(y).fill(0));for(const v of c){const k=v.date.getDate();if(w[k]+=v.a,b[k]+=v.b,v.parts)for(let A=0;A<y;A++)f[k][A]+=v.parts[A]??0;if(v.partsB)for(let A=0;A<y;A++)_[k][A]+=v.partsB[A]??0}i.set(d,{year:m,month:h,daysInMonth:g,partsLen:y,hasPartsB:C,dayA:w,dayB:b,dayParts:f,dayPartsB:_})}const l=(d,c,p)=>new Date(d,c,p).getTime()>new Date(n.getFullYear(),n.getMonth(),n.getDate()).getTime(),u={};for(const[d,c]of i){const{year:p,month:m,daysInMonth:h,dayA:g,dayB:y,dayParts:C,dayPartsB:w}=c,b=p===n.getFullYear()&&m===n.getMonth(),f=n.getDate(),_=i.get(r(m===11?p+1:p,(m+1)%12)),v=c.partsLen,k=[];for(let B=1;B<=h;B++){const x=b&&B>f;k.push({label:String(B),...x&&g[B]===0&&y[B]===0?{future:!0}:{},a:x&&g[B]===0&&y[B]===0?-1:g[B],b:y[B],...v?{parts:C[B]}:{},...v&&c.hasPartsB?{partsB:w[B]}:{}})}const A=[];for(let B=pn(p,m);B<=h;B+=7){const x=Math.max(0,B+6-h),N=x&&_?Math.max(v,_.partsLen):v,D=c.hasPartsB||!!(x&&_?.hasPartsB);let P=0,H=0;const M=new Array(N).fill(0),z=new Array(N).fill(0);for(let S=B;S<=Math.min(B+6,h);S++){P+=g[S],H+=y[S];for(let I=0;I<v;I++)M[I]+=C[S][I],z[I]+=w[S][I]}if(x&&_)for(let S=1;S<=x&&!l(_.year,_.month,S);S++){P+=_.dayA[S],H+=_.dayB[S];for(let I=0;I<_.partsLen;I++)M[I]+=_.dayParts[S][I],z[I]+=_.dayPartsB[S][I]}const j=x?`${(m+1)%12+1}/${x}`:`${B+6}`;A.push({label:`${A.length+1}\uC8FC`,sublabel:`[${B}\uC77C~${j}\uC77C]`,a:P,b:H,...N?{parts:M}:{},...N&&D?{partsB:z}:{}})}u[d]={weekly:A,daily:k}}return u}function Wl(){const e=Jn(),n=e.getFullYear(),a=e.getMonth()+1,r=[];for(let s=2024;s<=n;s++){const i=s===n?a:12;for(let l=1;l<=i;l++){const u=`${s}\uB144 ${l}\uC6D4`;r.push({value:u,label:u,year:s,month:l})}}return r.reverse()}Wl();function Z4(){return Wl()}const ql=["\uCCAB\uC9F8","\uB458\uC9F8","\uC14B\uC9F8","\uB137\uC9F8","\uB2E4\uC12F\uC9F8","\uC5EC\uC12F\uC9F8","\uC77C\uACF1\uC9F8"];function Ul(e){const{t:n,i18n:a}=Ce.useTranslation(),[r,s]=o.useState("week"),i=o.useMemo(()=>Z4().filter(N=>N.value in e),[e]),l=o.useMemo(()=>{const N=[];for(const D of i){const P=new Date(D.year,D.month,0).getDate(),H=pn(D.year,D.month-1),M=Math.ceil((P-H+1)/7);for(let z=M-1;z>=0;z--)N.push({value:`${D.value}#${z}`,monthKey:D.value,year:D.year,month:D.month,week:z})}return N},[i]),u=o.useCallback(N=>{const D=n("calendar.yearMonth",{year:N.year,month:N.month});return a.language?.startsWith("ko")?`${D} ${ql[N.week]??`${N.week+1}`}\uC8FC`:`${D} Week ${N.week+1}`},[n,a.language]),d=o.useMemo(()=>i.map(N=>({value:N.value,label:n("calendar.yearMonth",{year:N.year,month:N.month})})),[n,i]),c=o.useMemo(()=>l.map(N=>({value:N.value,label:u(N)})),[l,u]),p=o.useMemo(()=>K4(),[e]),m=o.useMemo(()=>i.find(N=>N.value===p.monthKey)?.value??i[0]?.value??"",[i,p]),h=o.useMemo(()=>l.find(N=>N.value===p.value)?.value??l[0]?.value??"",[l,p]),[g,y]=o.useState(""),[C,w]=o.useState("");o.useEffect(()=>{i.find(N=>N.value===g)||y(m)},[i,g,m]),o.useEffect(()=>{l.find(N=>N.value===C)||w(h)},[l,C,h]);const b=r==="month"?d:c,f=r==="month"?g:C,_=r==="month"?y:w,v=o.useMemo(()=>{const N=n("calendar.dow",{returnObjects:!0});return Array.isArray(N)?N:["\uC77C","\uC6D4","\uD654","\uC218","\uBAA9","\uAE08","\uD1A0"]},[n]),k=b.findIndex(N=>N.value===f),A=o.useCallback(()=>{const N=b.findIndex(D=>D.value===f);N<b.length-1&&_(b[N+1].value)},[b,f,_]),B=o.useCallback(()=>{const N=b.findIndex(D=>D.value===f);N>0&&_(b[N-1].value)},[b,f,_]),x=o.useMemo(()=>[{key:"week",label:n("manager.chart.periodWeek","\uC8FC")},{key:"month",label:n("manager.chart.periodMonth","\uC6D4")}],[n]);return{period:r,setPeriod:s,range:f,setRange:_,activeOptions:b,activeIdx:k,handlePrev:A,handleNext:B,periodOptions:x,monthRange:g,weekRange:C,weekRanges:l,DOW:v}}const ct=e=>typeof e=="number"&&Number.isFinite(e)?e:0;function kn(e,n=!0){return e.future===!0||n&&e.a===-1}function X4({data:e,colorA:n,colorB:a,labelA:r,labelB:s,barWidth:i=10,barGap:l=1,height:u=140,maxOverride:d,tightMax:c,seriesColors:p,seriesLabels:m,rateLabels:h,grouped:g=!1,baseline:y}){const C=!a,w=!!(p&&p.length>0),b=y,f=o.useMemo(()=>w?Math.max(0,...e.filter(S=>!kn(S,b==null)).map(S=>g?Math.max(0,...(S.parts??[]).map(ct)):(S.parts??[]).reduce((I,W)=>I+Math.max(0,ct(W)),0))):Math.max(0,...e.filter(S=>!kn(S,b==null)).flatMap(S=>C?[ct(S.a)]:[ct(S.a),ct(S.b)])),[e,C,w,g]),_=o.useMemo(()=>{if(b==null)return 0;const S=e.filter(I=>!kn(I,b==null)).flatMap(I=>w?(I.parts??[]).map(ct):C?[ct(I.a)]:[ct(I.a),ct(I.b)]);return Math.max(0,...S.map(I=>Math.abs(I-b)))},[e,b,w,C]),v=o.useMemo(()=>{const S=b!=null?_:f;return d??(c?S>0?S:10:Math.ceil(S/10)*10||10)},[f,_,b,d,c]),k=u,A=w?g?Math.max(1,p.length):1:C?1:2,B={"--bar-width":`${o.useMemo(()=>{const S=Math.max(1,e.length);return Math.max(2,Math.min(i,Math.round(120/(S*A)+6)))},[e.length,A,i])}px`},x={"--bar-group-gap":`${Math.max(0,l)}px`},N=o.useMemo(()=>{const S=Math.round(v/2);return b!=null?[b+v,...S!==v?[b+S]:[],b,...S!==v?[b-S]:[],b-v]:S!==v?[v,S,0]:[v,0]},[v,b]),D=S=>b!=null?1-(S-(b-v))/(2*v):1-S/v,[P,H]=o.useState(null),M=o.useCallback(()=>H(null),[]),z=S=>b!=null&&S>b?`+${S}`:`${S}`,j=P!=null;return o.useEffect(()=>{if(!j)return;const S=()=>H(null),I=W=>{const Z=W.target;Z&&typeof Z.closest=="function"&&Z.closest(".manager-bar-chart-col")||H(null)};return window.addEventListener("scroll",S,!0),document.addEventListener("pointerdown",I,!0),()=>{window.removeEventListener("scroll",S,!0),document.removeEventListener("pointerdown",I,!0)}},[j]),t.jsxs("div",{className:"manager-bar-chart-wrap",style:x,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:k},children:[N.slice(0,-1).map((S,I)=>t.jsx("div",{className:`manager-bar-chart-gridline${b!=null&&S===b?" manager-bar-chart-gridline--baseline":""}`,style:{top:D(S)*k},children:t.jsx("span",{className:"manager-bar-chart-gridline__label caption-1",children:S})},I)),e.map((S,I)=>{const W=kn(S,b==null),Z=k/2,U=E=>b!=null?Math.min(Z,Math.abs(ct(E)-b)/v*Z):Math.min(k,Math.max(0,ct(E)/v*k)),q=W?0:U(S.a),K=W?0:U(S.b),L=(S.parts??[]).map(ct);return t.jsx("div",{className:`manager-bar-chart-col${g&&w?" manager-bar-chart-col--group":""}`,style:{cursor:W?"default":"pointer"},onMouseEnter:W?void 0:E=>{const F=E.currentTarget.getBoundingClientRect(),R=[S.label,S.sublabel].filter(Boolean).join(" ");let O;if(w&&g&&S.rawPartsB)O=(m??[]).map(($,Y)=>{const Q=S.rawPartsB[Y]??0;return{text:Q>0?`${$}: ${L[Y]??0}% (${S.rawParts?.[Y]??0}/${Q})`:`${$}: -`,color:(p??[])[Y]}});else if(w&&g)O=(m??[]).map(($,Y)=>({text:`${$}: ${z(L[Y]??0)}`,color:(p??[])[Y]}));else if(w){const $=(m??[]).map((Q,X)=>({text:`${Q}: ${L[X]??0}`,color:(p??[])[X]})),Y=$.filter((Q,X)=>(L[X]??0)>0);O=Y.length?Y:$}else h&&!C?O=[{text:`${r} ${ct(S.a)}%`,color:n},{text:`${s} ${ct(S.b)}%`,color:a}]:h&&S.rawB!==void 0?O=[{text:`${h.total} ${S.rawB}`},{text:`${h.done} ${S.rawA??0}`,color:n}]:C?O=[{text:`${r}: ${ct(S.a)}`,color:n}]:O=[{text:`${r}: ${ct(S.a)}`,color:n},{text:`${s}: ${ct(S.b)}`,color:a}];H({rect:{left:F.left,top:F.top,right:F.right,bottom:F.bottom,width:F.width,height:F.height},title:R,items:O})},onMouseLeave:M,children:!W&&(w&&g?(p??[]).map((E,F)=>{const R=L[F]??0;if(b==null)return t.jsx("div",{className:"manager-bar-chart-bar",style:{...B,height:U(R),background:E}},F);const O=ct(R)<b;return t.jsxs("div",{className:"manager-bar-chart-slot",style:B,children:[t.jsx("div",{className:"manager-bar-chart-slot__half manager-bar-chart-slot__half--up",children:!O&&t.jsx("div",{className:"manager-bar-chart-bar manager-bar-chart-bar--full",style:{height:U(R),background:E}})}),t.jsx("div",{className:"manager-bar-chart-slot__half manager-bar-chart-slot__half--down",children:O&&t.jsx("div",{className:"manager-bar-chart-bar manager-bar-chart-bar--full manager-bar-chart-bar--down",style:{height:U(R),background:E}})})]},F)}):w?t.jsx("div",{className:"manager-bar-chart-stack",style:B,children:(()=>{const E=L.reduce((R,O,$)=>O>0?$:R,-1);let F=k;return L.map((R,O)=>{if(R<=0)return null;const $=Math.min(F,R/v*k);return F-=$,t.jsx("div",{className:"manager-bar-chart-stack-segment",style:{height:$,background:(p??[])[O],borderRadius:O===E?"6px 6px 0 0":void 0}},O)})})()}):b!=null?t.jsx(t.Fragment,{children:[{v:ct(S.a),c:n},...C?[]:[{v:ct(S.b),c:a}]].map(({v:E,c:F},R)=>t.jsxs("div",{className:"manager-bar-chart-slot",style:B,children:[t.jsx("div",{className:"manager-bar-chart-slot__half manager-bar-chart-slot__half--up",children:E>=b&&t.jsx("div",{className:"manager-bar-chart-bar manager-bar-chart-bar--full",style:{height:U(E),background:F}})}),t.jsx("div",{className:"manager-bar-chart-slot__half manager-bar-chart-slot__half--down",children:E<b&&t.jsx("div",{className:"manager-bar-chart-bar manager-bar-chart-bar--full manager-bar-chart-bar--down",style:{height:U(E),background:F}})})]},R))}):t.jsxs(t.Fragment,{children:[t.jsx("div",{className:"manager-bar-chart-bar",style:{...B,height:q,background:n}}),!C&&t.jsx("div",{className:"manager-bar-chart-bar",style:{...B,height:K,background:a}})]}))},I)})]}),t.jsx("div",{className:"manager-bar-chart-x-axis",children:e.map((S,I)=>{const W=kn(S,b==null);return t.jsxs("span",{className:`manager-bar-chart-x-axis__label${W?" manager-bar-chart-x-axis__label--future":""}`,children:[t.jsxs("span",{className:"caption-1 manager-bar-chart-x-axis__main",children:[S.isToday&&t.jsx("span",{className:"manager-bar-chart-x-axis__today-dot",style:{background:n}}),S.label]}),S.sublabel&&t.jsx("span",{className:"caption-1",children:S.sublabel})]},I)})})]})})}),P&&t.jsx(Vn,{anchorRect:P.rect,title:P.title,items:P.items,showIndex:!1,closeOnOutsideClick:!1})]})}function Gl({control:e}){const{t:n}=Ce.useTranslation(),{activeOptions:a,activeIdx:r,range:s,setRange:i,handlePrev:l,handleNext:u,periodOptions:d,period:c,setPeriod:p}=e,m=c==="week"?n("calendar.prevWeek","\uC774\uC804 \uC8FC"):n("calendar.prevMonth","\uC774\uC804 \uB2EC"),h=c==="week"?n("calendar.nextWeek","\uB2E4\uC74C \uC8FC"):n("calendar.nextMonth","\uB2E4\uC74C \uB2EC");return t.jsxs("div",{className:"manager-section-controls",children:[t.jsx(le,{htmlType:"button",size:32,type:"dot",icon:"chevron-left",ariaLabel:m,showTooltipInfo:m,disabled:r===a.length-1,onClick:l}),t.jsx(sn,{value:s,onChange:i,options:a,size:40,className:"month-dropdown",ariaLabel:n("calendar.rangeSelect","\uAE30\uAC04 \uC120\uD0DD")}),t.jsx(le,{htmlType:"button",size:32,type:"dot",icon:"chevron-right",ariaLabel:h,showTooltipInfo:h,disabled:r<=0,onClick:u}),t.jsx(An,{ariaLabel:n("calendar.periodSelect","\uAE30\uAC04 \uB2E8\uC704"),options:d,value:c,onChange:g=>p(g),size:40})]})}function po(e,n,a,r=!0){const s=new Date(a.getFullYear(),a.getMonth(),a.getDate());return Array.from({length:7},(i,l)=>{const u=new Date(n);u.setDate(n.getDate()+l);const d=(e[`${u.getFullYear()}\uB144 ${u.getMonth()+1}\uC6D4`]?.daily??[])[u.getDate()-1],c=d!=null&&kn(d,r)||u>s;return{dt:u,entry:d,isFuture:c}})}function J4(e,n,a,r,s=!0){const{period:i,monthRange:l,weekRange:u,weekRanges:d,DOW:c}=n,p=r?.startsWith("ko"),m=Jn(),h=m.getFullYear(),g=m.getMonth()+1,y=m.getDate();if(i==="month"){const b=e[l]??{weekly:[],daily:[]},f=l.match(/^(\d+)년 (\d+)월$/),_=f?Number(f[1]):null,v=f?Number(f[2]):null,k=_&&v?pn(_,v-1):1;return b.weekly.map((A,B)=>{const x=B+1;let N=A.label,D=!1,P=!1;if(_&&v){const H=k+B*7,M=new Date(_,v-1,H+6),z=M.getMonth()+1,j=M.getDate(),S=z===v?`${j}`:`${z}/${j}`;N=a("manager.chart.weekRange",{start:H,end:S});const I=new Date(h,g-1,y).getTime();D=I>=new Date(_,v-1,H).getTime()&&I<=M.getTime(),P=_>h||_===h&&(v>g||v===g&&H>y)}return{...A,label:N,sublabel:p?`${ql[x-1]??x}\uC8FC`:`Week ${x}`,isToday:D,future:A.future===!0||P||void 0,a:P?-1:A.a,b:P?0:A.b}})}const C=d.find(b=>b.value===u);if(!C)return[];const w=new Date(C.year,C.month-1,pn(C.year,C.month-1)+C.week*7);return po(e,w,m,s).map(({dt:b,entry:f,isFuture:_})=>{const v=b.getMonth()+1,k=b.getDate(),A=b.getFullYear();return{label:v===C.month&&A===C.year?`${k}`:`${v}/${k}`,sublabel:c[b.getDay()]??"",future:_||void 0,a:_?-1:f&&f.a>0?f.a:0,b:_?0:f&&f.b>0?f.b:0,isToday:A===h&&v===g&&k===y,...f?.parts?{parts:_?f.parts.map(()=>0):f.parts}:{},...f?.partsB?{partsB:_?f.partsB.map(()=>0):f.partsB}:{}}})}const Q4={small:{height:100,barWidth:16},medium:{height:140,barWidth:20},large:{height:180,barWidth:24}};function ey({size:e="medium",barWidth:n,titleKey:a,data:r,colorA:s,colorB:i,labelAKey:l,labelBKey:u,showTotal:d=!1,totalUnitKey:c,totalLabelKey:p,control:m,hideControls:h=!1,rate:g=!1,rateAgg:y="dayMean",tightMax:C=!1,avgMode:w=!1,totalFormat:b,series:f,seriesMode:_="stack",loading:v=!1,onDetail:k,headExtra:A,headSegment:B,icon:x,disc:N,onClick:D,cardAriaLabel:P,cardTooltip:H,detailSize:M=32,barGap:z,baseline:j,className:S,inGrid:I=!1}){const{t:W,i18n:Z}=Ce.useTranslation(),U=Q4[e],q=Ul(r),K=m??q,L=o.useMemo(()=>J4(r,K,W,Z.language,j==null),[r,K,W,Z.language,j]),E=_==="group"&&!!f&&f.length>0;z!=null&&!E&&bn("bar-chart-bargap-without-group","[BarChart] barGap \uC740 seriesMode='group' + series \uC5D0\uC11C\uB9CC \uC4F0\uC778\uB2E4 \u2014 \uADF8 \uBC16\uC5D0\uC11C\uB294 \uC544\uBB34 \uC77C\uB3C4 \uD558\uC9C0 \uC54A\uB294\uB2E4.");const F=o.useMemo(()=>{if(!g)return L;const Q=K.period==="month"?K.monthRange.match(/^(\d+)년 (\d+)월$/):null,X=Jn(),ce=f?.length??0,xe=te=>{const re=[],V=[],ae=[];for(let ue=0;ue<ce;ue++){let ge=0,me=0,oe=0;for(const he of te){const _e=ct(he.a[ue]),Le=ct(he.b[ue]);Le<=0||(ge+=_e,me+=Le,oe+=_e/Le*100)}re.push(y==="weighted"?me>0?Math.round(ge/me*100):0:te.length?Math.round(oe/te.length):0),V.push(ge),ae.push(me)}return{pct:re,ra:V,rb:ae}};return L.map((te,re)=>{let V=te.a===-1?-1:te.b>0?Math.round(te.a/te.b*100):0;if(Q&&!kn(te)){const ue=Number(Q[1]),ge=Number(Q[2])-1,me=po(r,new Date(ue,ge,pn(ue,ge)+re*7),X).filter(oe=>!oe.isFuture);if(y==="weighted"){let oe=0,he=0;for(const{entry:_e}of me)_e&&_e.b>0&&(oe+=_e.a,he+=_e.b);V=he>0?Math.round(oe/he*100):0}else V=me.length?Math.round(me.reduce((oe,{entry:he})=>oe+(he&&he.b>0?he.a/he.b*100:0),0)/me.length):0}let ae=null;if(E&&!kn(te)){let ue;if(Q){const me=Number(Q[1]),oe=Number(Q[2])-1;ue=po(r,new Date(me,oe,pn(me,oe)+re*7),X).filter(he=>!he.isFuture).map(({entry:he})=>({a:he?.parts??[],b:he?.partsB??[]}))}else ue=[{a:te.parts??[],b:te.partsB??[]}];const ge=xe(ue);ae={parts:ge.pct,rawParts:ge.ra,rawPartsB:ge.rb}}return{...te,a:V,b:te.a===-1?0:u&&te.parts&&te.parts[1]>0?Math.round(te.parts[0]/te.parts[1]*100):0,rawA:te.a===-1?-1:te.a,rawB:te.b,...ae??{}}})},[L,g,y,u,K.period,K.monthRange,r,E,f?.length]),R=o.useMemo(()=>{if(g||w){const X=(K.period==="week"?L:r[K.monthRange]?.daily??[]).filter(xe=>xe.a!==-1);if(X.length===0)return 0;if(g&&y==="weighted"){let xe=0,te=0;for(const re of X)re.b>0&&(xe+=re.a,te+=re.b);return te>0?Math.round(xe/te*100):0}const ce=g?X.reduce((xe,te)=>xe+(te.b>0?te.a/te.b*100:0),0):X.reduce((xe,te)=>xe+(te.a>0?te.a:0),0);return Math.round(ce/X.length)}const Q=K.period==="month"?r[K.monthRange]?.daily??[]:F;return j!=null?Q.reduce((X,ce)=>X+(kn(ce,!1)?0:ct(ce.a)+(u?ct(ce.b):0)),0):Q.reduce((X,ce)=>X+(ce.a>0?ce.a:0)+(u&&ce.b>0?ce.b:0),0)},[F,L,g,y,w,j,u,K.period,K.monthRange,r]),O=f&&f.length>0?f.map(Q=>({color:Q.color,label:Q.label})):[{color:s,label:W(l)},...u?[{color:i,label:W(u)}]:[]],$=e==="small",Y=[$?"manager-section--compact":e==="large"?"manager-section--full":void 0,S].filter(Boolean).join(" ")||void 0;return t.jsx(co,{className:Y,inGrid:I,icon:x,disc:N,onClick:D,ariaLabel:P,tooltip:H,headSegment:B,headMenuItems:k?[{label:W("trainingStatus.detail","\uC0C1\uC138\uBCF4\uAE30"),icon:"list",onClick:k,closeOnSelect:!0}]:void 0,title:W(a),titleClassName:$?"h5 chart-section-title--small":void 0,headRight:$?A??void 0:({collapsed:Q})=>t.jsxs(t.Fragment,{children:[!h&&t.jsx(Gl,{control:K}),A,k&&!Q&&t.jsx("span",{className:"manager-bar-chart-detail-btn",children:t.jsx(le,{htmlType:"button",size:M,type:"dot",icon:"list",ariaLabel:W("trainingStatus.detail","\uC0C1\uC138\uBCF4\uAE30"),showTooltipInfo:W("trainingStatus.detail","\uC0C1\uC138\uBCF4\uAE30"),onClick:k})})]}),subRow:t.jsxs(t.Fragment,{children:[d?g||w||p&&b?t.jsx(Ma,{label:$?void 0:`${W(K.period==="week"?"manager.chart.weeklyPrefix":"manager.chart.monthlyPrefix")} ${W(p??l)}`,children:b?(b(R).match(/([+-]?\d[\d.,]*|[^\d]+)/g)??[]).map((Q,X)=>/\d/.test(Q)?t.jsx("span",{className:"barchart-total__num h0",children:Q},X):t.jsx("span",{className:"barchart-total__unit h5",children:Q},X)):t.jsxs(t.Fragment,{children:[t.jsx("span",{className:"barchart-total__num h0",children:R}),c&&t.jsx("span",{className:"barchart-total__unit h5",children:W(c)})]})}):t.jsxs(Ma,{children:[t.jsx("span",{className:"barchart-total__num h0",children:R}),t.jsx("span",{className:"barchart-total__unit h5",children:W(l)}),c&&t.jsx("span",{className:"barchart-total__unit h5",children:W(c)})]}):t.jsx("span",{}),t.jsx(uo,{items:O,className:"caption-1"})]}),children:v?t.jsx("div",{className:"manager-bar-chart-wrap manager-bar-chart-loading","aria-busy":"true",children:t.jsx("div",{className:"manager-bar-chart-inner",children:t.jsxs("div",{className:"manager-bar-chart-area manager-bar-chart-area--loading",children:[t.jsx("div",{className:"manager-bar-chart-plot manager-bar-chart-plot--loading",style:{height:U.height},children:t.jsx(Ta,{size:32})}),t.jsx("div",{className:"manager-bar-chart-x-axis","aria-hidden":"true",children:t.jsxs("span",{className:"manager-bar-chart-x-axis__label",children:[t.jsx("span",{className:"caption-1 manager-bar-chart-x-axis__main",children:"\xA0"}),F.some(Q=>!!Q.sublabel)&&t.jsx("span",{className:"caption-1",children:"\xA0"})]})})]})})}):t.jsx(X4,{data:F,colorA:s,colorB:u?i:void 0,labelA:W(l),labelB:u?W(u):void 0,barWidth:n??U.barWidth,barGap:z,baseline:j,height:U.height,maxOverride:g?100:void 0,tightMax:C,seriesColors:f?.map(Q=>Q.color),seriesLabels:f?.map(Q=>Q.label),rateLabels:g?{total:W("trainingStatus.today.tooltipTotal","\uC804\uCCB4"),done:W("trainingStatus.today.tooltipDone","\uC644\uB8CC")}:void 0,grouped:E})})}const Kl=120,ty={left:38,right:16,top:26,bottom:24};function ny({points:e=[],range:n,ticks:a=[],axisTitle:r,color:s,height:i=156,fallbackWidth:l=320,insets:u,overlay:d,ariaLabel:c,className:p}){const[m,h]=o.useState(null),[g,y]=o.useState(null);o.useEffect(()=>{if(!g)return;const I=Z=>h(Math.round(Z)||null);if(I(g.getBoundingClientRect().width),typeof ResizeObserver>"u")return;const W=new ResizeObserver(([Z])=>I(Z.contentRect.width));return W.observe(g),()=>{W.disconnect()}},[g]);const{payload:C,anchorRect:w,openAfterDelay:b,close:f}=ib(Kl),_=o.useCallback((I,W)=>{I&&b(I,W.getBoundingClientRect())},[b]),v=m??l,k=i,{left:A,right:B,top:x,bottom:N}={...ty,...u},[D,P]=n,H=I=>P===D?A:A+(v-A-B)*(I-D)/(P-D),M=I=>x+(k-x-N)*(100-I)/100,z={x:H,y:M,plot:{left:A,right:v-B,top:x,bottom:k-N,width:Math.max(0,v-A-B),height:Math.max(0,k-x-N)}},j=e.filter(I=>!I.hollow),S=s??"var(--color-main)";return t.jsxs(t.Fragment,{children:[t.jsxs("svg",{ref:y,className:Ee("line-chart",p),viewBox:`0 0 ${v} ${k}`,role:"img","aria-label":c??e.map(I=>I.description).filter(Boolean).join(", "),children:[r&&t.jsx("text",{className:"line-chart__axis-title",x:0,y:12,children:r}),[0,100].map(I=>t.jsxs("g",{children:[t.jsx("line",{className:"line-chart__grid",x1:A,x2:v-B,y1:M(I),y2:M(I)}),t.jsxs("text",{className:"line-chart__tick",x:A-6,y:M(I)+4,textAnchor:"end",children:[I,"%"]})]},I)),d?.(z),a.map(I=>t.jsx("text",{className:"line-chart__tick",x:H(I.x),y:k-5,textAnchor:"middle",children:I.label},I.x)),j.length>1&&t.jsx("polyline",{className:"line-chart__line",fill:"none",stroke:S,points:j.map(I=>`${H(I.x)},${M(I.pct)}`).join(" ")}),e.map(I=>t.jsxs("g",{className:"line-chart__dot",onPointerEnter:W=>_(I.description,W.currentTarget),onPointerLeave:f,children:[t.jsx("circle",{className:"line-chart__dot-hit",cx:H(I.x),cy:M(I.pct),r:12}),t.jsx("circle",{className:Ee("line-chart__dot-main",I.hollow&&"is-hollow"),cx:H(I.x),cy:M(I.pct),r:4,stroke:S,fill:I.hollow?void 0:S})]},I.x))]}),C!=null&&t.jsx(rn,{anchorRect:w,offset:10,closeOnOutsideClick:!1,className:"line-chart__tip",role:"tooltip",ariaLabel:C,children:C})]})}function ay({icon:e,iconSize:n=56,title:a,titleClass:r="h2",description:s,tipGroups:i,start:l,className:u}){return t.jsxs("div",{className:Ee("game-intro",u),children:[e!=null&&t.jsx("span",{className:"game-intro__icon","aria-hidden":"true",style:{"--game-intro-icon":`${n}px`},children:e}),t.jsx("h2",{className:Ee("game-intro__title",r),children:a}),s!=null&&t.jsx("p",{className:"game-intro__description body-3",children:s}),i?.map((d,c)=>t.jsxs("div",{className:"game-intro__tips",children:[d.title!=null&&t.jsx("span",{className:"game-intro__tips-title body-3",children:d.title}),d.tips.map((p,m)=>t.jsxs("span",{className:"game-intro__tip body-3",children:[p.icon!=null&&t.jsx("span",{"aria-hidden":"true",children:p.icon}),t.jsx("span",{children:p.text})]},m))]},c)),l&&t.jsx(le,{htmlType:"button",className:l.className,variant:"main",color:l.color,size:48,width:"100%",disabled:l.disabled,onClick:l.onClick,children:l.label})]})}const Yl=(e,n,a)=>{const r=new Date(Date.UTC(e,n,a));return`${r.getUTCFullYear()}-${String(r.getUTCMonth()+1).padStart(2,"0")}-${String(r.getUTCDate()).padStart(2,"0")}`},Zl=(e,n,a,r)=>({from:li(e,n,a),to:new Date(li(e,n,a+r).getTime()-1),fromYmd:Yl(e,n,a),toYmd:Yl(e,n,a+r-1)});function ry(e,n=0){if(e.period==="month"){const s=e.monthRange.match(/^(\d+)년 (\d+)월$/),i=Jn(),l=s?Number(s[1]):i.getFullYear(),u=(s?Number(s[2]):i.getMonth()+1)-1+n,d=new Date(Date.UTC(l,u+1,0)).getUTCDate();return Zl(l,u,1,d)}const a=e.weekRanges.find(s=>s.value===e.weekRange);if(!a){const s=new Date,i=va();return{from:s,to:s,fromYmd:i,toYmd:i}}const r=pn(a.year,a.month-1);return Zl(a.year,a.month-1,r+(a.week+n)*7,7)}const mo={small:{diameter:96,strokeWidth:16},medium:{diameter:120,strokeWidth:18},large:{diameter:160,strokeWidth:22}};function Xl(e){return!Number.isFinite(e)||e<=0?0:e>=1?100:Math.min(99,Math.max(1,Math.round(e*100)))}function Jl({done:e,total:n,segments:a,color:r="var(--color-main)",size:s="medium",strokeWidth:i,label:l="%",hideCenter:u=!1,hideLabel:d=!1}){const c=typeof s=="number"?s:mo[s].diameter,p=i??(typeof s=="number"?12:mo[s].strokeWidth),m=c/2,h=(c-p)/2,g=2*Math.PI*h;if(a&&a.length>0){const b=a.reduce((f,_)=>{const v=f.length>0?f[f.length-1].acc:0,k=Number.isFinite(_.ratio)?_.ratio:0,A=Math.max(0,Math.min(k,1-v));return f.push({color:_.color,rotate:-90+v*360,dash:g*A,acc:v+A}),f},[]);return t.jsx("div",{className:"ring-chart",style:{width:c,height:c},children:t.jsxs("svg",{width:c,height:c,viewBox:`0 0 ${c} ${c}`,"aria-hidden":"true",children:[t.jsx("circle",{cx:m,cy:m,r:h,fill:"none",stroke:"var(--color-whiteLine)",strokeWidth:p}),b.map((f,_)=>f.dash>0&&t.jsx("circle",{cx:m,cy:m,r:h,fill:"none",stroke:f.color,strokeWidth:p,strokeDasharray:`${f.dash} ${g}`,strokeLinecap:"round",transform:`rotate(${f.rotate} ${m} ${m})`},_))]})})}const y=(n??0)>0?Math.min((e??0)/n,1):0,C=g*y,w=g-C;return t.jsxs("div",{className:"ring-chart",style:{width:c,height:c},children:[t.jsxs("svg",{width:c,height:c,viewBox:`0 0 ${c} ${c}`,"aria-hidden":"true",children:[t.jsx("circle",{cx:m,cy:m,r:h,fill:"none",stroke:"var(--color-whiteLine)",strokeWidth:p}),y>0&&t.jsx("circle",{cx:m,cy:m,r:h,fill:"none",stroke:r,strokeWidth:p,strokeDasharray:`${C} ${w}`,strokeLinecap:y<.02||y>.98?"butt":"round",transform:`rotate(-90 ${m} ${m})`})]}),!u&&t.jsxs("div",{className:`ring-chart__center${d?"":` ${c<=96?"ring-chart__center--small":s==="medium"?"ring-chart__center--medium":"ring-chart__center--large"}`}`,children:[t.jsx("span",{className:`ring-chart__pct ${c<=96?"h2":"h1"}`,children:Xl(y)}),!d&&t.jsx("span",{className:`ring-chart__label ${c<=96?"caption-2":"caption-1"}${c<=96||s==="medium"?" ring-chart__label--tight":""}`,children:l})]})]})}function oy({titleKey:e,headRight:n,icon:a,showTotal:r,totalLabelKey:s,legend:i,loading:l,className:u,inGrid:d=!1,onClick:c,ariaLabel:p,tooltip:m,...h}){const{t:g}=Ce.useTranslation();if(!e)return t.jsx(Jl,{...h});const y=(h.total??0)>0?Xl(Math.min((h.done??0)/h.total,1)):0,C=h.size==="small",w=typeof h.size=="number"?h.size:mo[h.size??"medium"].diameter,b=h.size==="large",f=[u,C?"manager-section--compact":b?"manager-section--full":""].filter(Boolean).join(" ")||void 0,_=a&&t.jsx("span",{className:"chart-section-icon",children:t.jsx(Ze,{icon:a,className:"chart-section-icon-inner"})});return t.jsx(co,{className:f,inGrid:d,onClick:c,ariaLabel:p,tooltip:m,title:g(e),titleClassName:C?"h5 chart-section-title--small":void 0,headRight:_||(C?void 0:n),subRow:(r||i)&&t.jsxs(t.Fragment,{children:[r?t.jsxs(Ma,{label:!C&&s?g(s):void 0,children:[t.jsx("span",{className:"barchart-total__num h0",children:y}),t.jsx("span",{className:"barchart-total__unit h5",children:"%"})]}):t.jsx("span",{}),i&&t.jsx(uo,{items:i})]}),children:l?t.jsx("div",{className:"ring-chart-section-body ring-chart-section-body--offset",children:t.jsx("div",{className:"ring-chart ring-chart--loading",style:{width:w,height:w},"aria-busy":"true",children:t.jsx(Ta,{size:32})})}):t.jsx("div",{className:"ring-chart-section-body ring-chart-section-body--offset",children:t.jsx(Jl,{...h,hideCenter:h.hideCenter??C})})})}function sy({label:e,value:n,change:a,changeType:r,icon:s,tooltip:i,onClick:l,children:u}){const d=o.useRef(null),{anchorRect:c,openAt:p,close:m}=wa(),h=o.useCallback(()=>{i&&d.current&&p(d.current)},[i,p]),g=r??(a===void 0?void 0:a>0?"up":a<0?"down":"neutral"),y=a===void 0?void 0:a>0?`+${a}`:`${a}`,C=o.useCallback(w=>{l&&(w.key==="Enter"||w.key===" ")&&(w.preventDefault(),l())},[l]);return t.jsxs("div",{ref:d,className:`manager-stat-card${l?" manager-stat-card--clickable":""}`,onClick:l,onKeyDown:l?C:void 0,onPointerEnter:h,onPointerLeave:m,onFocus:h,onBlur:m,role:l?"button":void 0,tabIndex:l?0:void 0,"aria-label":l?[e,n,y].filter(w=>w!==void 0&&w!=="").join(" "):void 0,children:[i&&c&&t.jsx(vn,{anchorRect:{left:c.left,top:c.top+21,right:c.right,bottom:c.bottom,width:c.width,height:c.height},text:i}),t.jsxs("div",{className:"manager-stat-card__label-row",children:[t.jsx("span",{className:"manager-stat-card__label h5",children:e}),s&&t.jsx("span",{className:"manager-stat-card__icon",children:t.jsx(Ze,{icon:s,className:"manager-stat-card__icon-inner"})})]}),t.jsxs("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}),y&&t.jsx("div",{className:`manager-stat-card__change manager-stat-card__change--${g??"neutral"} caption-1`,children:y})]}),u&&t.jsx("div",{className:"manager-stat-card__body",children:u})]})]})}function Ql({value:e,onChange:n,min:a=0,max:r=100,step:s=1,orientation:i="horizontal",size:l=24,disabled:u=!1,ariaLabel:d,length:c,className:p,label:m,formatValue:h,labelPos:g,labelAlign:y="right",showMinMax:C=!1,minLabel:w,maxLabel:b,showBgTick:f=!1,showFillTick:_=!1,tickStep:v,tickShape:k="dot"}){n&&!d&&bn("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 A=Math.min(r,Math.max(a,e)),B=r>a?(A-a)/(r-a):0,x=i==="vertical",N=!n,D=E=>n?.(Number(E.target.value)),P=typeof c=="number"?`${c}px`:c,H={"--slider-ratio":String(B),"--slider-thumb":`${l}px`,...P?x?{height:P}:{width:P}:{}},M=v??s,z=(f||_)&&M>0&&r>a?Math.floor((r-a)/M+1e-6):0;if(z>0&&z<=100){const E=k!=="dash",F=Q=>E?`radial-gradient(circle, ${Q} 0.5px, transparent 1px)`:x?`linear-gradient(to bottom, transparent calc(50% - 2px), ${Q} calc(50% - 2px), ${Q} calc(50% + 2px), transparent calc(50% + 2px))`:`linear-gradient(to right, transparent calc(50% - 2px), ${Q} calc(50% - 2px), ${Q} calc(50% + 2px), transparent calc(50% + 2px))`,R=E?"2px":"4px",O=[],$=[],Y=[];for(let Q=0;Q<=z;Q++){const X=Q*M/(r-a);if(X>1+1e-6)break;const ce=`${((x?1-X:X)*100).toFixed(4)}%`,xe=X<=B+1e-6;if(xe?!_:!f)continue;const te=xe?"var(--slider-tick-color-on-fill, var(--color-deepWhite))":"var(--slider-tick-color, var(--color-lightGray))";O.push(F(te)),$.push(x?`${R} var(--slider-thumb)`:`var(--slider-thumb) ${R}`),Y.push(x?`center ${ce}`:`${ce} center`)}O.push(x?"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))"),$.push("100% 100%"),Y.push("0 0"),H.backgroundImage=O.join(", "),H.backgroundSize=$.join(", "),H.backgroundPosition=Y.join(", "),H.backgroundRepeat="no-repeat"}const j=h?h(A):m==="percent"?`${Math.round(r>a?(A-a)/(r-a)*100:0)}%`:m==="count"?`${A} / ${r}`:A===a&&w?w:A===r&&b?b:void 0,S=t.jsx("input",{type:"range",className:Ee("slider",`slider--${i}`,N&&"slider--static",!m&&!C&&p),min:a,max:r,step:s,value:A,disabled:u,readOnly:N,tabIndex:N?-1:void 0,"aria-label":d,"aria-valuetext":j,"aria-orientation":i,onChange:D,style:H});if(!m&&!C)return S;const I=t.jsx("span",{className:"slider-wrap__minmax caption-1",children:w??a}),W=t.jsx("span",{className:"slider-wrap__minmax caption-1",children:b??r}),Z=C?t.jsxs("div",{className:Ee("slider-track-group",`slider-track-group--${i}`,!m&&p),children:[x?W:I,S,x?I:W]}):S;if(!m)return Z;const U=g??(x?"bottom":"right"),q=`${Math.round(r>a?(A-a)/(r-a)*100:0)}%`,K=h?h(A):m==="percent"?q:m==="count"?`${A} / ${r}`:String(A),L=t.jsx("span",{className:"slider-wrap__value body-3b",children:K});return t.jsxs("div",{className:Ee("slider-wrap",`slider-wrap--${i}`,`slider-wrap--label-${U}`,`slider-wrap--align-${y}`,p),children:[Z,L]})}const iy=.86,ly=250,ho=(e,n,a,r)=>Math.round(Math.min(r,Math.max(a,e-n))),Co=(e,n,a,r)=>{const s=ho(e,n,a,r);return`${s<0?"-":"+"}${Math.abs(s)} dB`};function fo({analyser:e,audioElement:n,orientation:a="horizontal",length:r,label:s,labelPos:i,labelAlign:l="right",floorDb:u=-60,refDb:d=-35,displayMin:c=-5,displayMax:p=25,className:m,ariaLabel:h}){const g=o.useRef(null),y=o.useRef(null),C=o.useRef(null),w=o.useRef(null),[b,f]=o.useState(null);o.useEffect(()=>{const A=S=>{const I=Co(S,d,c,p);C.current&&(C.current.textContent=I);const W=g.current;W&&(W.setAttribute("aria-valuenow",String(ho(S,d,c,p))),W.setAttribute("aria-valuetext",I))},B=e??rC(n)??(b&&b.el===n?b.node:null),x=y.current;if(!B||!x){x?.style.setProperty("--meter-level","0"),A(u);let S=!1;return!e&&n&&Oa(n).then(I=>{!S&&I&&f({el:n,node:I})}),()=>{S=!0}}Tr();const N=new Float32Array(B.fftSize);let D=0,P=0,H=0,M=0,z=null;const j=S=>{const I=oC(B,N);D=I>D?I:D*iy;const W=D>1e-5?20*Math.log10(D):-1/0,Z=Math.max(u,W),U=Z-d,q=Math.min(1,Math.max(0,(U-c)/(p-c)));if(x.style.setProperty("--meter-level",q.toFixed(3)),P+=Z,H+=1,S-M>=ly){const K=P/H;z=z==null?K:z*.6+K*.4,A(z),P=0,H=0,M=S}w.current=requestAnimationFrame(j)};return w.current=requestAnimationFrame(j),()=>{w.current!=null&&cancelAnimationFrame(w.current),w.current=null}},[e,n,b,u,d,c,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:y,className:"audio-meter__fill"})}),k=i??(a==="vertical"?"bottom":"right");return t.jsxs("div",{ref:g,className:Ee("audio-meter",`audio-meter--${a}`,s&&`audio-meter--label-${k}`,s&&`audio-meter--align-${l}`,m),role:"meter","aria-label":h,"aria-valuemin":c,"aria-valuemax":p,"aria-valuenow":ho(u,d,c,p),"aria-valuetext":Co(u,d,c,p),children:[v,s&&t.jsx("span",{ref:C,className:"audio-meter__value caption-2",children:Co(u,d,c,p)})]})}const eu=260;function tu({message:e,position:n,duration:a,onClose:r}){const[s,i]=o.useState(!1),[l,u]=o.useState(!1),d=o.useRef(l),c=o.useRef(s);o.useEffect(()=>{d.current=l},[l]),o.useEffect(()=>{c.current=s},[s]);const p=o.useRef(null),m=o.useRef(""),h=o.useRef(r);o.useEffect(()=>{h.current=r});const g=a,y=o.useRef(null),C=o.useRef(0),w=o.useRef(0),b=o.useRef(!1),f=o.useRef(null),_=o.useRef(null),v=o.useRef(null),k=o.useRef(null),A=o.useRef(()=>{});A.current=N=>{N<0||(C.current=Date.now(),w.current=N,y.current=setTimeout(()=>{y.current=null,i(!1),f.current=setTimeout(()=>{u(!1);try{h.current()}catch{}},eu)},N))};const B=o.useCallback(()=>{b.current||!y.current||(b.current=!0,clearTimeout(y.current),y.current=null,w.current=Math.max(0,w.current-(Date.now()-C.current)))},[]),x=o.useCallback(()=>{b.current&&(b.current=!1,A.current(w.current))},[]);return o.useEffect(()=>{if(e!==m.current&&(y.current&&(clearTimeout(y.current),y.current=null),f.current&&(clearTimeout(f.current),f.current=null)),e){if(c.current)return g>0&&!y.current&&(b.current?w.current=g:A.current(g)),m.current=e,()=>{y.current&&(clearTimeout(y.current),y.current=null),f.current&&(clearTimeout(f.current),f.current=null)};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"),k.current&&clearTimeout(k.current),k.current=setTimeout(()=>{k.current=null;try{D.style.opacity="",D.style.transform="",D.style.transition=""}catch{}},60)}catch{}};d.current?(N(),i(!0)):(u(!0),_.current=requestAnimationFrame(()=>{v.current=requestAnimationFrame(()=>{N(),i(!0)})})),g>0&&(b.current=!1,A.current(g))}else i(!1),f.current=setTimeout(()=>u(!1),eu);return m.current=e,()=>{y.current&&clearTimeout(y.current),f.current&&clearTimeout(f.current),_.current&&cancelAnimationFrame(_.current),v.current&&cancelAnimationFrame(v.current),k.current&&clearTimeout(k.current),y.current=null,f.current=null,_.current=null,v.current=null,k.current=null}},[e,g,n]),{mounted:l,showing:s,popupRef:p,pause:B,resume:x}}function ra({message:e="",position:n="top",type:a="normal",onClose:r=()=>{},duration:s=2e3}){const{mounted:i,showing:l,popupRef:u,pause:d,resume:c}=tu({message:e,position:n,duration:s,onClose:r}),p=o.useRef(null),[m,h]=o.useState(!1);if(o.useEffect(()=>{l?h(!0):i||h(!1)},[l,i]),!i)return null;const g=a==="notice"||a==="warning"?a:"normal",y=t.jsx("div",{ref:u,className:`toast toast--${n} ${l?"is-visible":""}`,role:"status","aria-live":"polite",onPointerEnter:C=>{p.current=C.pointerType},onMouseEnter:()=>{p.current!=="touch"&&d()},onMouseLeave:c,onFocusCapture:d,onBlurCapture:c,children:t.jsx("div",{className:`toast__inner toast__inner--${g} body-2`,"aria-hidden":m||l?void 0:!0,children:e})});return typeof document<"u"?Xt.createPortal(y,document.body):y}const uy=24;function cy({value:e,max:n=100,size:a=8,color:r,trackColor:s,label:i,formatValue:l,labelPos:u,labelAlign:d="right",ariaLabel:c,className:p}){const m=Number.isFinite(n)&&n>0?n:1,h=Math.max(0,Math.min(Number.isFinite(e)?e:0,m)),g=h/m*100,y=Number.isFinite(n)&&n>0?n:0,C=u??(a>=uy?"inside":"bottom"),w=C==="center"?"inside":C,b=w==="inside"&&(d==="left"?g>=15:d==="center"?g>=50:g>=85),f={};return r&&(f["--progress-bar-fill"]=r),s&&(f["--progress-bar-track"]=s),t.jsxs("div",{className:Ee("progress-bar",`progress-bar--${a}`,`progress-bar--label-${w}`,i&&`progress-bar--align-${d}`,i&&b&&"progress-bar--label-on-fill",p),style:f,children:[t.jsx("div",{className:"progress-bar__track",role:"progressbar","aria-valuenow":h,"aria-valuemin":0,"aria-valuemax":y,"aria-valuetext":i?l?l(h):i==="percent"?void 0:i==="raw"?String(h):`${h} / ${y}`:void 0,"aria-label":c,children:t.jsx("div",{className:"progress-bar__fill",style:{width:`${g}%`}})}),i&&t.jsx("span",{className:"progress-bar__label caption-1b",children:l?l(h):i==="percent"?`${Math.round(g)}%`:i==="raw"?String(h):`${h} / ${y}`})]})}const nu={position:"absolute",width:1,height:1,margin:-1,padding:0,overflow:"hidden",clipPath:"inset(50%)",whiteSpace:"nowrap",border:0},dy="rgba(255, 255, 255, 0.16)";function au({max:e,index:n,inactiveBg:a,inactiveColor:r,transparent:s,variant:i="numbered",announce:l=!1,ariaLabel:u}){const{t:d}=Ce.useTranslation(),c=tn("(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,m=u??d("progress.steps",{current:p+1,total:e,defaultValue:"\uC9C4\uD589 \uB2E8\uACC4 {{current}} / {{total}}"}),h={};if(a&&(h["--pi-inactive-bg"]=a),r&&(h["--pi-inactive-color"]=r),s&&(a||(h["--pi-inactive-bg"]=dy),r||(h["--pi-inactive-color"]="var(--color-white)")),i==="dot")return t.jsxs("div",{className:"progress-indicator progress-indicator--dot",style:h,role:l?"status":"img","aria-label":l?void 0:m,children:[l&&t.jsx("span",{style:nu,children:m}),Array.from({length:e}).map((y,C)=>t.jsx("span",{"aria-hidden":"true",className:`progress-indicator-dot--dot${C<p?" done":C===p?" active":""}`},C))]});const g=l?t.jsx("span",{role:"status",style:nu,children:m}):null;return c?t.jsxs(t.Fragment,{children:[t.jsx("div",{className:"progress-indicator progress-indicator--mobile",style:h,role:"list","aria-label":m,children:t.jsxs("span",{role:"listitem",className:"progress-indicator-dot active body-3",children:[p+1," / ",e]})}),g]}):t.jsxs(t.Fragment,{children:[g,t.jsx("div",{className:"progress-indicator",style:h,role:"list","aria-label":m,children:Array.from({length:e}).map((y,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 py(e){if(!e)return[];const n=[];let a=0,r="";for(const s of e.trim()){if(s==="("?a++:s===")"&&a--,/\s/.test(s)&&a===0){r&&(n.push(r),r="");continue}r+=s}return r&&n.push(r),n}function my({children:e,className:n,style:a}){return t.jsx("div",{className:n?`table-cell ${n}`:"table-cell",style:a,children:e})}function go({variant:e="default",children:n,className:a,draggable:r,onClick:s,onMouseEnter:i,onMouseLeave:l,onDragStart:u,onDragEnd:d,expandedContent:c}){const p=o.useCallback(m=>{s&&m.target===m.currentTarget&&(m.key==="Enter"||m.key===" ")&&(m.preventDefault(),s())},[s]);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:s,onKeyDown:s?p:void 0,onMouseEnter:i,onMouseLeave:l,onDragStart:u,onDragEnd:d,role:s?"button":void 0,tabIndex:s?0:void 0,children:n}),c&&t.jsx("div",{className:"table-row-expand",children:c})]})}function hy({dir:e}){return t.jsx(e==="asc"?bs:gs,{className:"table-field__sort-arrow",size:16,strokeWidth:2})}function Cy({children:e,onClick:n,className:a,sortDir:r,ariaSort:s,onResizeStart:i}){const l=t.jsxs(t.Fragment,{children:[e,r&&t.jsx(hy,{dir:r})]});return t.jsxs("div",{onClick:n,role:"columnheader","aria-sort":s,className:Ee("table-field body-3",a,r?"table-field--sorted":"",i?"table-field--resizable":""),children:[n?t.jsx("button",{type:"button",className:"table-field__button",children:l}):l,i&&t.jsx("span",{className:"table-field__resizer",onPointerDown:i,onClick:u=>u.stopPropagation(),"aria-hidden":"true"})]})}function bo({fields:e=[],headerGroups:n,items:a=[],renderRow:r,onRowClick:s,isRowClickable:i,onRowMouseEnter:l,onRowMouseLeave:u,onRowDragStart:d,onRowDragEnd:c,draggingId:p,gridTemplateColumns:m,mobileGridTemplateColumns:h,resizable:g=!1,resizeMode:y="grow",resizeStorageKey:C,size:w="small",title:b,icon:f,count:_,collapsed:v=!1,onToggleCollapse:k,headerActions:A,empty:B,loading:x,dragOver:N=!1,onDragOver:D,onDragLeave:P,onDrop:H,renderExpandedRow:M,expandedId:z}){const{t:j}=Ce.useTranslation(),S=tn("(max-width: 767px)"),I=h&&S?h:null,W=g&&!S,Z=48,U=o.useRef(()=>Z),q=C?`table-cols:${C}`:null,K=o.useRef(null),L=o.useRef(()=>!1),E=o.useRef([]),F=o.useRef(null),R=de=>{if(!de||typeof window>"u")return null;try{const Ae=JSON.parse(window.localStorage.getItem(de)??"null");return Array.isArray(Ae)&&Ae.length>0&&Ae.every(Re=>typeof Re=="number"&&Number.isFinite(Re)&&Re>0)?Ae:null}catch{return null}},[O,$]=o.useState(()=>R(q)),[Y,Q]=o.useState(q);Y!==q&&(Q(q),$(R(q)));const X=o.useRef(O);o.useEffect(()=>{X.current=O},[O]);const ce=o.useCallback(de=>{const Ae=F.current;if(!Ae)return;const Re=X.current;if(Re){const Pe=[...Re];if(Ae.next!=null&&Ae.startWNext!=null){const we=de.clientX-Ae.startX,Se=Math.max(U.current(Ae.index)-Ae.startW,Math.min(Ae.startWNext-U.current(Ae.next),we));Pe[Ae.index]=Ae.startW+Se,Pe[Ae.next]=Ae.startWNext-Se}else Pe[Ae.index]=Math.max(U.current(Ae.index),Ae.startW+(de.clientX-Ae.startX));X.current=Pe,$(Pe)}},[]),xe=o.useCallback(()=>{if(F.current=null,window.removeEventListener("pointermove",ce),window.removeEventListener("pointerup",xe),window.removeEventListener("pointercancel",xe),document.body.style.cursor="",document.body.style.userSelect="",q&&X.current)try{window.localStorage.setItem(q,JSON.stringify(X.current))}catch{}},[ce,q]),te=o.useCallback((de,Ae)=>{Ae.preventDefault(),Ae.stopPropagation();const Re=K.current;if(!Re)return;const Pe=Array.from(Re.children).map(Se=>Se.getBoundingClientRect().width),we=y==="fit"?e.findIndex((Se,Oe)=>Oe>de&&Se.resizable!==!1):-1;F.current=we>=0?{index:de,startX:Ae.clientX,startW:Pe[de],next:we,startWNext:Pe[we]}:{index:de,startX:Ae.clientX,startW:Pe[de]},X.current=Pe,$(Pe),window.addEventListener("pointermove",ce),window.addEventListener("pointerup",xe),window.addEventListener("pointercancel",xe),document.body.style.cursor="col-resize",document.body.style.userSelect="none"},[ce,xe,y,e]),re=o.useCallback(()=>{const de=K.current,Ae=de?.closest(".table-wrap");if(!de||!Ae)return;const Re=Ae.style.getPropertyValue("--table-grid-cols");Ae.style.setProperty("--table-grid-cols",e.map((De,je)=>L.current(je)?E.current[je]:"max-content").join(" "));const Pe=Array.from(Ae.querySelectorAll(".table-row")).filter(De=>!De.classList.contains("table-row--loading")&&!De.classList.contains("table-row--empty")),we=e.map((De,je)=>{let ke=de.children[je]?.getBoundingClientRect().width??0;for(const We of Pe){const ht=We.children[je];ht&&(ke=Math.max(ke,ht.getBoundingClientRect().width))}const Me=L.current(je)?parseFloat(E.current[je]):NaN;return Number.isFinite(Me)?Me:Math.max(U.current(je),Math.ceil(ke))}),Se=window.getComputedStyle(de),Oe=de.clientWidth-(parseFloat(Se.paddingLeft)||0)-(parseFloat(Se.paddingRight)||0);Re?Ae.style.setProperty("--table-grid-cols",Re):Ae.style.removeProperty("--table-grid-cols");let Be=we;const nt=we.reduce((De,je,ke)=>De+(L.current(ke)?je:0),0),Ge=we.reduce((De,je,ke)=>De+(L.current(ke)?0:je),0),Xe=Oe-nt;if(Oe>0&&Ge>0&&Xe>0){const De=Xe/Ge;Be=we.map((ke,Me)=>L.current(Me)?ke:Math.max(U.current(Me),Math.round(ke*De)));const je=Math.round(Xe-Be.reduce((ke,Me,We)=>ke+(L.current(We)?0:Me),0));if(je!==0){let ke=-1;Be.forEach((Me,We)=>{!L.current(We)&&(ke<0||Me>Be[ke])&&(ke=We)}),ke>=0&&(Be[ke]=Math.max(U.current(ke),Be[ke]+je))}}if($(Be),q)try{window.localStorage.setItem(q,JSON.stringify(Be))}catch{}},[e,y,q]);o.useEffect(()=>()=>{F.current&&(window.removeEventListener("pointermove",ce),window.removeEventListener("pointerup",xe),window.removeEventListener("pointercancel",xe),document.body.style.cursor="",document.body.style.userSelect="")},[ce,xe]);const V=py(m),ae=V.filter(de=>/\b(auto|min-content|max-content)\b|fit-content\(/.test(de));ae.length>0&&bn(`table-content-track:${m}`,`[ihabdevteam-core] Table \uC758 gridTemplateColumns \uC5D0 \uB0B4\uC6A9\uC73C\uB85C \uD06C\uAE30\uAC00 \uC815\uD574\uC9C0\uB294 \uD2B8\uB799(${ae.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: ${m})`);const ue=e.findIndex(de=>!!de.sortDir);e.filter(de=>!!de.sortDir).length>1&&bn("table-multi-sort","[ihabdevteam-core] Table \uC758 fields \uC5D0 sortDir \uC774 \uB458 \uC774\uC0C1 \uC788\uC2B5\uB2C8\uB2E4. aria-sort \uB294 \uD45C \uD558\uB098\uC5D0 \uD55C \uCE78\uB9CC \uAC00\uC9C8 \uC218 \uC788\uC5B4 \uCCAB \uCE78\uB9CC \uBC29\uD5A5\uC73C\uB85C \uC54C\uB9AC\uACE0 \uB098\uBA38\uC9C0\uB294 none \uC73C\uB85C \uB461\uB2C8\uB2E4.");const ge=de=>de===ue?e[de].sortDir==="asc"?"ascending":"descending":e[de].onClick?"none":void 0,me=de=>/^\d+(\.\d+)?px$/.test(V[de]??""),oe=de=>{const Ae=V[de]??"",Re=/^minmax\(\s*(\d+(?:\.\d+)?)px\s*,/.exec(Ae)??/^(\d+(?:\.\d+)?)px$/.exec(Ae);return Re?parseFloat(Re[1]):Z};L.current=me,U.current=oe,E.current=V;const he=de=>y==="fit"&&!me(de)?"fr":"px",_e=O&&O.length===e.length&&!S&&(y==="fit"||a.length>0),Le=I??(_e?e.map((de,Ae)=>de.resizable===!1&&V[Ae]?V[Ae]:`${O[Ae]}${he(Ae)}`).join(" "):m),Ue=Le?{"--table-grid-cols":Le}:void 0,Ie=b!==void 0;return t.jsx("div",{className:`table-wrap table-wrap--${w}${W?" table-wrap--resizable":""}${N?" table-wrap--dragover":""}${v?" table-wrap--collapsed":""}`,style:Ue,onDragOver:D,onDragLeave:P,onDrop:H,children:t.jsxs("div",{className:"table body-2",children:[Ie&&t.jsxs("div",{className:"table-header",onClick:k,role:k?"button":void 0,tabIndex:k?0:void 0,"aria-expanded":k?!v:void 0,onKeyDown:k?de=>{de.target===de.currentTarget&&(de.key==="Enter"||de.key===" ")&&(de.preventDefault(),k())}:void 0,children:[k&&t.jsx(le,{htmlType:"button",size:40,type:"dot",variant:"transparent-gray",useBorder:!1,icon:v?"chevron-right":"chevron-down",ariaLabel:v?j("common.expand","\uD3BC\uCE58\uAE30"):j("common.collapse","\uC811\uAE30"),className:"table-header__chevron"}),f&&t.jsx(Ze,{icon:f,label:typeof b=="string"?b:void 0,className:"table-header__icon"}),t.jsx("span",{className:"table-header__title h5b",children:b}),_!==void 0&&t.jsx("span",{className:"table-header__count body-3b",children:_}),A&&t.jsx("span",{className:"table-header__actions",onClick:de=>de.stopPropagation(),children:A})]}),!v&&t.jsxs(t.Fragment,{children:[n&&n.length>0&&t.jsx("div",{className:"table-fields table-fields--groups",children:n.map((de,Ae)=>t.jsx("div",{className:Ee("table-field body-3",de.className),style:{gridColumn:`span ${de.span}`},children:de.label},Ae))}),t.jsxs("div",{className:Ee("table-fields-strip",W&&"table-fields-strip--resizable"),children:[t.jsx("div",{className:"table-fields",ref:K,children:e.map((de,Ae)=>t.jsx(Cy,{onClick:de.onClick,className:de.className,sortDir:de.sortDir,ariaSort:ge(Ae),onResizeStart:W&&Ae<e.length-1&&de.resizable!==!1&&(y!=="fit"||e.some((Re,Pe)=>Pe>Ae&&Re.resizable!==!1))?Re=>te(Ae,Re):void 0,children:de.label},Ae))}),W&&t.jsx(le,{htmlType:"button",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:re})]}),t.jsx("div",{className:"table-body",children:x?t.jsx(go,{variant:"loading"}):a.length===0&&B?t.jsx(go,{variant:"empty",children:B}):a.map((de,Ae)=>{const Re=p!=null&&de.id===p,Pe=!!s&&(i?i(de):!0),we=z!=null&&de.id!=null&&(z instanceof Set?z.has(de.id)||[...z].some(Se=>String(Se)===String(de.id)):String(de.id)===String(z));return t.jsx(go,{className:`${Pe?" table-row--clickable":""}${d?" table-row--draggable":""}${Re?" table-row--dragging":""}`.trim(),draggable:!!d,onClick:Pe?()=>s(de):void 0,onMouseEnter:l?Se=>l(de,Se):void 0,onMouseLeave:u?Se=>u(de,Se):void 0,onDragStart:d?Se=>d(de,Se):void 0,onDragEnd:c?Se=>c(de,Se):void 0,expandedContent:we&&M?M(de):void 0,children:r(de).map((Se,Oe)=>t.jsx(my,{className:Se.className,style:Se.style,children:Se.content},Oe))},de.id!=null?`${typeof de.id}:${de.id}`:`__idx:${Ae}`)})})]})]})})}function ru(e){switch(e){case"\uBCF4\uCCAD\uAE30":return"main";case"\uC778\uACF5\uC640\uC6B0":return"sub";default:return"default"}}const oa=e=>e==null?"":String(e).trim();function yo(e,n,a){const r=[oa(e),oa(n),oa(a)];for(;r.length>0&&r[r.length-1]==="";)r.pop();return r.join(".")}function fy(e,n,a){const r=oa(e);return r?`${r}-${oa(n).padStart(2,"0")}-${oa(a).padStart(2,"0")}`:""}const gy={\uBCF4\uCCAD\uAE30:"hearingAid",\uC778\uACF5\uC640\uC6B0:"cochlearImplant"};function by(e,n){const a=gy[e];return a?n(`device.type.${a}`,{defaultValue:e}):e}function ou(e,n){return n!=="wornAt"?String(e[n]??""):fy(e.wornYear,e.wornMonth,e.wornDay)}function yy({rows:e,loading:n,onSelect:a,onDelete:r,onWear:s,onRelease:i,onAdd:l}){const{t:u}=Ce.useTranslation(),d=C=>C==="\uC88C"?u("device.direction.left","\uC88C"):u("device.direction.right","\uC6B0"),{\uC815\uB82C:c,\uCE78:p}=Xg(),m=o.useMemo(()=>{if(!c)return e;const{key:C,asc:w}=c;return[...e].sort((b,f)=>{if(C==="worn"){const _=Number(f.worn)-Number(b.worn);return w?_:-_}return Xr(ou(b,C),ou(f,C),w)})},[e,c]),{pageRows:h,pageSizeProps:g,paginationProps:y}=Zg(m,c);return t.jsxs("div",{className:"dlp-side-table",children:[t.jsx(lo,{count:{value:e.length,unit:u("customers.device.unit","\uAC1C")},pageSize:g,pagination:y,actions:l&&t.jsx(le,{htmlType:"button",size:40,type:"bar",variant:"main",icon:"plus",label:u("customers.device.addButton","\uAE30\uAE30 \uCD94\uAC00"),onClick:l})}),t.jsx(bo,{loading:n,resizable:!0,resizeMode:"fit",resizeStorageKey:"customer-device-history-v2",fields:[{...p(u("customers.device.wearingNow","\uCC29\uC6A9"),"worn"),resizable:!1},p(u("device.direction.label","\uBC29\uD5A5"),"side"),p(u("device.deviceType","\uC885\uB958"),"device"),p(u("device.brand","\uBE0C\uB79C\uB4DC"),"brand"),p(u("device.fitType","\uCC29\uC6A9\uD615\uD0DC"),"fitType"),p(u("device.productName","\uC81C\uD488\uBA85"),"productName"),p(u("device.wornDate","\uCC29\uC6A9\uC77C"),"wornAt"),...r?[{label:"",resizable:!1}]:[]],items:h.map((C,w)=>({id:C.id??`${C.side}-${w}`,row:C})),gridTemplateColumns:`56px 110px 110px minmax(120px, 1fr) 100px minmax(120px, 1fr) 110px${r?" 80px":""}`,renderRow:({row:C})=>[{content:t.jsx("span",{className:"dlp-worn-check",onClick:w=>w.stopPropagation(),children:t.jsx(Hl,{checked:C.worn,disabled:C.worn?!i:!s,ariaLabel:C.worn?u("customers.device.unwear","\uCC29\uC6A9 \uD574\uC81C"):u("customers.device.wear","\uCC29\uC6A9"),onChange:w=>{w?s?.(C):i?.(C)}})})},{content:t.jsx("span",{children:d(C.side)})},{content:C.device?t.jsx(bt,{size:"small",variant:ru(C.device),fill:"soft",label:by(C.device,u)}):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:yo(C.wornYear,C.wornMonth,C.wornDay)||"-"})},...r?[{content:t.jsx("span",{className:"dlp-row-actions",children:t.jsx(le,{htmlType:"button",size:28,type:"bar",variant:"transparent-gray",label:u("common.delete","\uC0AD\uC81C"),onClick:w=>{w?.stopPropagation(),r(C)}})})}]:[]],onRowClick:({row:C})=>a(C),empty:u("customers.device.historyEmpty","\uB4F1\uB85D\uB41C \uAE30\uAE30 \uC774\uB825\uC774 \uC5C6\uC2B5\uB2C8\uB2E4.")})]})}function su(e,n){return e?{role:n?.role??"button",tabIndex:0,...n?.selected===void 0?{}:{"aria-selected":n.selected},onKeyDown:a=>{a.target===a.currentTarget&&(a.key!=="Enter"&&a.key!==" "||(a.preventDefault(),e(a)))}}:{}}function vy(e,n){return new Date(e,n+1,0).getDate()}function xy(e,n){return new Date(e,n,1).getDay()}function _y({visits:e=[],onVisitClick:n,onVisitMove:a,onDayClick:r,today:s}){const{t:i}=Ce.useTranslation(),l=o.useMemo(()=>i("calendar.dow",{returnObjects:!0}),[i]),u=Pr(s),[d,c]=o.useState(()=>Number(u.slice(0,4))),[p,m]=o.useState(()=>Number(u.slice(5,7))-1),[h,g]=o.useState(null),y=o.useRef(null),C=o.useMemo(()=>{const k={};return e.forEach(A=>{k[A.date]||(k[A.date]=[]),k[A.date].push(A)}),k},[e]),w=o.useMemo(()=>{const k=vy(d,p),A=xy(d,p),B=[];for(let x=0;x<A;x++)B.push(null);for(let x=1;x<=k;x++)B.push(x);for(;B.length<35;)B.push(null);return B},[d,p]),b=o.useCallback(()=>{p===0?(c(k=>k-1),m(11)):m(k=>k-1)},[p]),f=o.useCallback(()=>{p===11?(c(k=>k+1),m(0)):m(k=>k+1)},[p]),_=k=>`${d}-${String(p+1).padStart(2,"0")}-${String(k).padStart(2,"0")}`,v=k=>_(k)===u;return t.jsxs("div",{children:[t.jsxs("div",{className:"calendar-nav",children:[t.jsx("button",{type:"button",className:"calendar-nav__button",onClick:b,"aria-label":i("calendar.prevMonth","\uC774\uC804 \uB2EC"),children:t.jsx(Ze,{icon:"chevron-left",label:"",className:"",svgClassName:"calendar-nav__button-icon",size:18})}),t.jsx("span",{className:"calendar-nav__title h5","aria-live":"polite",children:i("calendar.yearMonth",{year:d,month:p+1})}),t.jsx("button",{type:"button",className:"calendar-nav__button",onClick:f,"aria-label":i("calendar.nextMonth","\uB2E4\uC74C \uB2EC"),children:t.jsx(Ze,{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:i("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:i("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:i("calendar.legend.noVisit","\uBBF8\uBC29\uBB38")})]})]}),t.jsxs("div",{className:"calendar-grid",children:[l.map(k=>t.jsx("div",{className:"calendar-day-header body-3",children:k},k)),w.map((k,A)=>{if(k===null)return t.jsx("div",{className:"calendar-cell empty"},`empty-${A}`);const B=k,x=_(B),N=C[x]??[],D=h===x;return t.jsxs("div",{className:`calendar-cell${v(B)?" today":""}${D?" drag-over":""}${r?" calendar-cell--clickable":""}`,role:r?"button":void 0,tabIndex:r?0:void 0,"aria-label":r?i("calendar.addOnDate",{date:x}):void 0,"aria-current":v(B)?"date":void 0,onClick:r?()=>r(x):void 0,onKeyDown:r?P=>{P.target===P.currentTarget&&(P.key!=="Enter"&&P.key!==" "||(P.preventDefault(),r(x)))}:void 0,onDragOver:a?P=>{P.preventDefault(),g(x)}:void 0,onDragLeave:a?P=>{P.currentTarget.contains(P.relatedTarget)||g(null)}:void 0,onDrop:a?P=>{P.preventDefault(),y.current!=null&&(a(y.current,x),y.current=null),g(null)}:void 0,children:[t.jsx("div",{className:"calendar-cell__number body-3",children:B}),N.length>0&&t.jsxs("span",{className:"calendar-cell__visit-count caption-1","aria-label":i("calendar.visitCount",{count:N.length,defaultValue:"\uBC29\uBB38 {{count}}\uAC74"}),children:[t.jsx("span",{className:"calendar-cell__visit-dot","aria-hidden":"true"}),N.length]}),t.jsx("div",{className:"calendar-cell__badges",children:N.map((P,H)=>t.jsxs("div",{draggable:!!a,className:`calendar-visit-badge${P.status==="noVisit"?" calendar-visit-badge--no-visit":P.status==="scheduled"?" calendar-visit-badge--scheduled":""}${n?" calendar-visit-badge--clickable":""}${a?" calendar-visit-badge--draggable":""}`,onDragStart:a?M=>{y.current=P.id,M.dataTransfer.effectAllowed="move"}:void 0,onDragEnd:a?()=>{y.current=null,g(null)}:void 0,onClick:n?M=>{M.stopPropagation(),n(P)}:void 0,...su(n?()=>n(P):void 0),"aria-label":[P.time?di(P.time,i):null,P.customer,i(P.status==="noVisit"?"calendar.legend.noVisit":P.status==="scheduled"?"calendar.legend.scheduled":"calendar.legend.visited")].filter(Boolean).join(" "),children:[P.time&&t.jsx("span",{className:"calendar-visit-badge__time body-3",children:di(P.time,i)}),t.jsx("span",{className:"calendar-visit-badge__name body-3",children:P.customer}),P.status==="noVisit"&&t.jsx("span",{className:"calendar-visit-badge__no-visit caption-1",children:i("calendar.legend.noVisit","\uBBF8\uBC29\uBB38")})]},P.id??H))})]},B)})]})]})}const wy={page:"h3",pagePopup:"h4",popup:"h5"};function sa({type:e="page",title:n,headingLevel:a,icon:r,action:s,disc:i,children:l,inGrid:u=!1,className:d,style:c}){const p=wy[e],m=n||i||s||r,h=a?`h${a}`:"div";return t.jsxs("div",{className:Ee("section",`section--${e}`,u&&"section--in-grid",d),style:c,children:[m&&t.jsxs("div",{className:"section__header",children:[t.jsxs("div",{className:"section__title-row",children:[r&&t.jsx(Ze,{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 ${p}`,children:n}),i&&t.jsx("div",{className:"section__disc body-3",children:i})]})]}),s&&t.jsx("div",{className:"section__action",children:s})]}),l]})}let vo=null,iu=!1;function lu(){if(iu||typeof document>"u")return;iu=!0,document.addEventListener("keydown",n=>{n.metaKey||n.ctrlKey||n.altKey||(vo="keyboard")},!0);const e=()=>{vo="pointer"};document.addEventListener("pointerdown",e,!0),document.addEventListener("mousedown",e,!0),document.addEventListener("touchstart",e,{capture:!0,passive:!0})}lu();function nr(){return lu(),vo==="keyboard"}const ar=20;function Ay(e){const{t:n}=Ce.useTranslation(),{type:a,trainingDatas:r,depth:s,renderPopup:i,completedIds:l,selectedIds:u,onItemComplete:d,size:c,useDescriptionTooltip:p,onRemove:m,onMore:h,sectionType:g="page"}=e||{},[,y]=o.useState(0),C=typeof r<"u"?Array.isArray(r)?r:[]:[],w=C.length,[b,f]=o.useState(Math.min(w,ar)),_=o.useMemo(()=>Array.isArray(s)?[...s,a?.label].filter(Boolean).join(" \xB7 "):[s||"",a?.label].filter(Boolean).join(" \xB7 "),[s,a?.label]);o.useEffect(()=>{f(Math.min(w,ar))},[w]),tl("speechear.data.updated",()=>y(B=>B+1));const v=o.useRef(null),k=o.useRef(null);function A(){const B=document.activeElement;k.current=nr()&&B&&B.closest?.(".training-block__more")?b:null,f(x=>Math.min(w,x+ar))}return o.useEffect(()=>{const B=k.current;if(B==null)return;k.current=null;const x=document.activeElement;x&&x!==document.body||v.current?.querySelectorAll(".training-block-button")[B]?.focus()},[b]),t.jsxs(sa,{type:g,title:a?.label,icon:a?.icon,disc:a?.desc,className:"training-block",children:[t.jsx("div",{className:"training-list",ref:v,children:(C||[]).slice(0,b).map((B,x)=>{const N=B;return t.jsx(oo,{index:x,type:a,trainingData:N,depth:_,renderPopup:i,completedIds:l,selectedIds:u,size:c,useDescriptionTooltip:p,onRemove:typeof m=="function"&&u!=null&&N?.id!=null&&u.has(String(N.id))?()=>m(N):void 0,onComplete:typeof d=="function"&&N?.id!=null?()=>d(String(N.id)):void 0,onMore:typeof h=="function"?D=>h(N,D):void 0},N?.id!=null?`${a?.key||"t"}-${String(N.id)}`:`${a?.key||"t"}-${x}`)})}),w>ar&&b<w&&t.jsx("div",{className:"training-block__more",children:t.jsx(le,{htmlType:"button",size:48,type:"bar",icon:"plus",onClick:A,ariaLabel:n("common.loadMore","\uB354\uBCF4\uAE30"),label:n("common.loadMore","\uB354\uBCF4\uAE30"),variant:"main"})})]})}function xo(e){const n=o.useRef(null),[a,r]=o.useState(!!e),[s,i]=o.useState(!1);o.useEffect(()=>{i(!1);const d=n.current;r(!!e&&!(d?.complete&&d.naturalWidth>0))},[e]);const l=o.useCallback(()=>r(!1),[]),u=o.useCallback(()=>{r(!1),i(!0)},[]);return{imgRef:n,loading:a,failed:s,hasImage:!!e&&!s,onLoad:l,onError:u}}var ky='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 By=ky,_o=o.forwardRef(function({item:e,disabled:n=!1,onPlayDone:a,selectable:r=!1,selected:s=!1,onSelect:i,flipDelay:l=0,hideLabel:u=!1,hideAudio:d=!1,orderRank:c=null},p){const{t:m}=Ce.useTranslation(),h=e.word||e.title||"",g=n||!h,y=e.audio??e.sound??e.audioKey,C=e.subLabel||e.pronunciation||"",w=e.colloquialLabel||"",[b,f]=o.useState({label:h,subLabel:C,colloquialLabel:w,homonum:e.homonum});h&&(b.label!==h||b.subLabel!==C||b.colloquialLabel!==w||!Object.is(b.homonum,e.homonum))&&f({label:h,subLabel:C,colloquialLabel:w,homonum:e.homonum});const _=o.useRef(null),v=tn("(max-width: 767px)"),[k,A]=o.useState(!1),B=`${typeof y=="string"?y:y?.src??""}\0${h}`,[x,N]=o.useState({for:"",url:""}),D=x.for===B?x.url:"",P=ai(),H=e.textOnly??(!e.image&&!!b.label&&!!P&&P.entries.length>0&&!P.byWord.has(b.label)),M=H?"":Xn()?.(b.label,b.homonum)??e.image??"",{imgRef:z,loading:j,hasImage:S,onLoad:I,onError:W}=xo(M);o.useEffect(()=>{let O=!1;return(async()=>{if(y){if(typeof y=="string"){if(y.startsWith("http")||y.includes("/")){N({for:B,url:y});return}}else if(typeof y=="object"&&!Array.isArray(y)){const Y=y.src;if(Y){N({for:B,url:Y});return}}}const $=Dr();if($&&h)try{const Y=await Promise.resolve($(h));!O&&Y&&N({for:B,url:Y})}catch{}})(),()=>{O=!0}},[y,h,B]);const Z=o.useRef(!0),U=o.useRef(null);o.useEffect(()=>(Z.current=!0,()=>{Z.current=!1,U.current&&Ja(U.current),U.current=null;try{_.current?.pause()}catch{}_.current=null}),[]);const q=o.useCallback(()=>new Promise(O=>{if(typeof window<"u"&&window.speechSynthesis&&h){A(!0),window.speechSynthesis.cancel();const $=new SpeechSynthesisUtterance(h);$.lang="ko-KR",$.onend=()=>{A(!1);try{a?.()}catch{}O()},$.onerror=()=>{A(!1),O()},window.speechSynthesis.speak($)}else O()}),[h,a]),K=o.useCallback(O=>new Promise($=>{let Y=!1;const Q=()=>{Y||(Y=!0,A(!1),$(!1))};try{const X=new Audio(O);_.current=X,X.onended=()=>{if(!Y){Y=!0,A(!1);try{a?.()}catch{}$(!0)}},X.onerror=Q,X.play().catch(Q)}catch{Q()}}),[a]),L=o.useCallback(async()=>{if(n||!Z.current)return;const O=()=>{U.current===O&&(U.current=null);try{_.current?.pause()}catch{}try{window.speechSynthesis?.cancel()}catch{}A(!1)},$=Xa(O);U.current=O;try{window.speechSynthesis?.cancel()}catch{}try{if(D&&(A(!0),await K(D)))return;const Y=eC();if(Y&&h)try{const Q=await Promise.resolve(Y(h));if(!Z.current||U.current!==O||Q&&(A(!0),await K(Q)))return}catch{}if(!Z.current||U.current!==O)return;await q()}finally{$(),U.current===O&&(U.current=null)}},[n,D,h,K,q]);o.useImperativeHandle(p,()=>({play:()=>L()}),[L]);const E=O=>O.stopPropagation(),F=o.useCallback(O=>{if(O.stopPropagation(),!n){if(k){try{_.current?.pause()}catch{}try{window.speechSynthesis?.cancel()}catch{}A(!1);return}L()}},[n,k,L]),R=Ee("training-word-card",n?"training-word-card--disabled":"",g?"training-word-card--flipped":"",r?"training-word-card--selectable":"",s?"training-word-card--selected":"");return t.jsx("div",{className:R,onClick:r&&!n?i:void 0,role:r?"button":void 0,"aria-pressed":r?s:void 0,tabIndex:r&&!n?0:void 0,"aria-disabled":r&&n?!0:void 0,onKeyDown:r&&!n?O=>{O.target===O.currentTarget&&(O.key==="Enter"||O.key===" "||O.key==="Spacebar")&&(O.preventDefault(),i?.())}:void 0,children:t.jsxs("div",{className:"training-word-card__flipper",style:{transitionDelay:g?"0ms":`${l}ms`},children:[t.jsxs("div",{className:"training-word-card__front",children:[s&&t.jsx("div",{className:"training-word-card__selected-badge",onClick:E,children:t.jsx(bt,{type:"dot",size:40,position:"inline",animate:!0,icon:c!=null?void 0:"check",number:c??void 0,"aria-label":c!=null?m("training.nthSelected",{n:c}):m("training.selected","\uC120\uD0DD\uB428")})}),t.jsx("div",{className:"training-word-card__image-wrap",children:H?t.jsx("div",{className:"training-word-card__text-face",children:b.label}):S?t.jsxs(t.Fragment,{children:[j&&t.jsx("div",{className:"training-word-card__spinner"}),t.jsx("img",{ref:z,className:"training-word-card__image",src:M,alt:b.label||m("common.image","\uC774\uBBF8\uC9C0"),style:{opacity:j?0:1},onLoad:I,onError:W})]}):t.jsx("div",{className:"training-word-card__placeholder"})}),!u&&t.jsxs("div",{className:"training-word-card__body",children:[!H&&t.jsx("div",{className:"training-word-card__word",children:b.label}),b.subLabel&&t.jsxs("div",{className:"training-word-card__pronunciation",children:["[",b.subLabel,"]"]}),b.colloquialLabel&&t.jsxs("div",{className:"training-word-card__colloquial caption-1",children:["[",b.colloquialLabel,"]"]})]}),!d&&t.jsx("div",{className:"training-word-card__bottom",onClick:r?E:void 0,children:t.jsx(le,{htmlType:"button",size:v?40:48,type:v?"dot":"bar",icon:k?"pause":"play",label:v?void 0:m("training.playSound","\uC18C\uB9AC \uB4E3\uAE30"),selected:k,onClick:F,disabled:n,ariaLabel:m("training.playSound","\uC18C\uB9AC \uB4E3\uAE30")})})]}),t.jsx("div",{className:"training-word-card__back","aria-hidden":"true",children:t.jsx("img",{src:By,className:"training-word-card__disabled-symbol",alt:"",draggable:!1})})]})})}),Ny=260;function Tn(e){const{t:n}=Ce.useTranslation(),{title:a,subtitle:r,headerActions:s,headerSegment:i,children:l,buttons:u,footer:d,footerStart:c,footerEnd:p,footerClassName:m="",footerLayout:h="center",onClose:g,closeDisabled:y=!1,beforeClose:C,closeOnBackdrop:w=!0,className:b="",ariaLabel:f,useTitle:_=!0,inline:v=!1,size:k,layer:A="modal",height:B,fillBody:x=!1,resetScrollKey:N}=e||{},[D,P]=o.useState(!1),H=o.useRef(!1),M=o.useRef(null),z=o.useId(),j=o.useRef(null);o.useEffect(()=>{},[v,a,f,b]),o.useEffect(()=>{N!==void 0&&j.current&&(j.current.scrollTop=0)},[N]);const[S,I]=o.useState(!1);o.useEffect(()=>{const X=j.current;if(!X)return;const ce=()=>I(X.scrollHeight>X.clientHeight+1);if(ce(),typeof ResizeObserver>"u")return;const xe=new ResizeObserver(ce);xe.observe(X);const te=X.firstElementChild;return te&&xe.observe(te),()=>xe.disconnect()},[l,N]),o.useEffect(()=>{if(!v)return Rl()},[v]),o.useEffect(()=>{if(v)return;const X=document.activeElement,ce=M.current;return zr(ce,X),ce&&!ce.contains(document.activeElement)&&(ce.querySelector(yn)??ce).focus(),()=>{const xe=document.activeElement;(!xe||xe===document.body||ce&&ce.contains(xe))&&Vr(X)?.focus?.()}},[v]),Or(M,!v);const W=o.useRef(!0),Z=Wr(),U=o.useRef(null);o.useEffect(()=>(W.current=!0,()=>{W.current=!1,U.current&&(clearTimeout(U.current),U.current=null)}),[]);const q=o.useCallback(()=>{!W.current||!H.current||(H.current=!1,P(!1))},[]),K=o.useCallback((X,ce=!1)=>{if(ce&&!W.current||H.current)return;H.current=!0,P(!0);const xe=setTimeout(()=>{U.current===xe&&(U.current=null);let te;try{te=X?X():void 0}catch{q();return}te&&typeof te.then=="function"&&te.then(()=>{setTimeout(q,120)},q)},Z?0:Ny);ce&&(U.current=xe)},[q,Z]),L=o.useCallback(()=>{y||C&&C()===!1||K(g,!0)},[K,g,y,C]),E=o.useRef(L);o.useEffect(()=>{E.current=L});const F=!v&&!!g;o.useEffect(()=>{if(F)return zn(()=>E.current())},[F]);const R=F&&w,O=o.useRef(!1),$=X=>{O.current=X.target===X.currentTarget},Y=X=>{const ce=O.current;O.current=!1,ce&&X.target===X.currentTarget&&L()},Q=t.jsx("div",{className:`popup ${v?"popup--inline":""} ${A==="belowPagePopup"?"popup--below-page-popup":""} ${D?"popup--closing":""} ${b}`,onPointerDown:R?$:void 0,onClick:R?Y:void 0,onMouseDown:v?void 0:X=>{X.target===X.currentTarget&&X.preventDefault()},children:t.jsxs("div",{ref:M,className:`popup-panel${k?` popup-panel--${k}`:""}${B!=null?" popup-panel--has-height":""}${x?" popup-panel--fill-body":""}`,style:B!=null?{"--popup-height":typeof B=="number"?`${B}px`:B}:void 0,tabIndex:-1,role:v?void 0:"dialog","aria-modal":v?void 0:!0,"aria-labelledby":!v&&_&&a?z:void 0,"aria-label":!v&&!(_&&a)?f??(typeof a=="string"?a:void 0):void 0,children:[!_&&(s||g)?t.jsxs("div",{className:"popup-close-float",children:[s,g&&t.jsx(le,{htmlType:"button",size:40,type:"dot",icon:"x",variant:"transparent-gray",useBorder:!1,onClick:L,disabled:y,ariaLabel:n("common.close","\uB2EB\uAE30")})]}):a||s||g?t.jsxs("div",{className:`popup-header${r?" popup-header--with-subtitle":""}`,children:[t.jsxs("div",{className:"popup-header-main",children:[t.jsx("span",{id:z,className:"popup-title popup-title--left h2",children:a}),r&&t.jsx("span",{className:"popup-subtitle body-3",children:r})]}),i&&t.jsx("div",{className:"popup-header-segment",children:t.jsx(An,{size:40,ariaLabel:i.ariaLabel,options:i.options.map(X=>({key:X.key,label:X.label,disabled:X.disabled})),value:i.value,onChange:i.onChange})}),t.jsxs("div",{className:"popup-header-actions",children:[s,g&&t.jsx(le,{htmlType:"button",size:40,type:"dot",icon:"x",variant:"transparent-gray",useBorder:!1,onClick:L,disabled:y,ariaLabel:n("common.close","\uB2EB\uAE30")})]})]}):null,t.jsx("div",{className:"popup-content",ref:j,tabIndex:S?0:void 0,children:t.jsx("div",{className:"popup-content__inner",children:typeof l=="function"?l({animateThen:K,closeWithAnimation:L}):l})}),c||p?t.jsxs("div",{className:`popup-footer popup-footer--bar${m?` ${m}`:""}`,children:[t.jsx("div",{className:"popup-footer__start",children:typeof c=="function"?c({animateThen:K,closeWithAnimation:L}):c}),t.jsx("div",{className:"popup-footer__end",children:typeof p=="function"?p({animateThen:K,closeWithAnimation:L}):p})]}):u?.length?t.jsx("div",{className:`popup-footer popup-footer--buttons${h!=="center"?` popup-footer--${h}`:""}`,children:u.map((X,ce)=>t.jsx(le,{htmlType:"button",size:48,variant:X.variant??"default",label:X.label,disabled:X.disabled,onClick:()=>X.onClick?.({animateThen:K,closeWithAnimation:L})},ce))}):d?t.jsx("div",{className:`popup-footer${h!=="center"?` popup-footer--${h}`:""}${m?` ${m}`:""}`,children:typeof d=="function"?d({animateThen:K,closeWithAnimation:L}):d}):null]})});return v||typeof document>"u"?Q:Xt.createPortal(Q,document.body)}function rr(e){return String(e)}const or=["o","triangle","x"];function uu(e,n){return e===n?null:n}const cu={o:"circle",triangle:"triangle",x:"x"},du={o:"main",triangle:"warn",x:"danger"};function Ey(e){let n=0,a=0,r=0;for(const i of Object.values(e))i==="o"?n++:i==="triangle"?a++:i==="x"&&r++;const s=n+a+r;return{marked:s,o:n,triangle:a,x:r,rate:s===0?null:(n+a*.5)/s}}function wo(e){const n={};for(const[a,r]of Object.entries(e))(r==="o"||r==="triangle"||r==="x")&&(n[a]=r);return n}function pu(e){const n=[];let a=0;for(const r of e)n.push(a),a+=r;return n}function Dy(e,n){return!n&&e>0}const ia={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 Sy(e="landscape"){bn("print-word-table-deprecated","[printWordTable] @deprecated \u2014 WordTablePopup renderButtons \uC758 print(\uB610\uB294 useWordTablePrint().print)\uB97C \uC4F0\uC138\uC694. \uC804\uC5ED \uC778\uC1C4\uB294 \uD654\uBA74\uC758 \uBAA8\uB4E0 \uB2E8\uC5B4\uD45C\uB97C \uD568\uAED8 \uCC0D\uC2B5\uB2C8\uB2E4.");const{printSize:n,printW:a,printH:r}=ia[e],s=document.createElement("style");s.textContent=`@page { size: ${n}; margin: 0; } .word-table { width: ${a} !important; height: ${r} !important; }`,document.head.appendChild(s);const i=()=>{document.head.removeChild(s),window.removeEventListener("afterprint",i)};window.addEventListener("afterprint",i),window.print()}function mu(e,n){if(e.length===0)return[[]];const a=Math.max(1,Math.floor(n)),r=[];for(let s=0;s<e.length;s+=a)r.push(e.slice(s,s+a));return r}const jy={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 Ty(e,n){const a=jy[e][n];if(a)return a;const r=Math.max(1,Math.ceil(n)),s=Math.max(1,Math.ceil(Math.sqrt(r*.707)));let i,l;return e==="landscape"?(l=s,i=Math.ceil(r/l)):(i=s,l=Math.ceil(r/i)),(e==="landscape"?i<l:l<i)&&([i,l]=[l,i]),{cols:i,rows:l}}const My={\uD45C\uC2DC:"word-table-block__content--cut-show",\uC810\uC120:"",\uCF54\uB108:"word-table-block__content--cut-corner",\uBBF8\uD45C\uC2DC:""},hu={\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"},Cu={\uACE0\uC720:"\uACE0\uC720\uC5B4",\uD55C\uC790:"\uD55C\uC790\uC5B4",\uC678\uB798:"\uC678\uB798\uC5B4",\uD63C\uC885:"\uD63C\uC885\uC5B4"};function Ao(e,n){return e?e.split("/").map(a=>n[a]??a).join("/"):""}function fu(e,n,a,r){if(r!=="\uC810\uC120")return{};const s=e%n,i=Math.floor(e/n),l=s<n-1,u=i<a-1;if(!l&&!u)return{};const d="#ddd",c=g=>`repeating-linear-gradient(to ${g}, ${d} 0, ${d} 5px, transparent 5px, transparent 10px)`,p=[],m=[],h=[];return l&&(p.push(c("bottom")),m.push("1px 100%"),h.push("right center")),u&&(p.push(c("right")),m.push("100% 1px"),h.push("center bottom")),{backgroundImage:p.join(", "),backgroundSize:m.join(", "),backgroundPosition:h.join(", "),backgroundRepeat:"no-repeat",printColorAdjust:"exact",WebkitPrintColorAdjust:"exact"}}const Ly=280,$y=240,Ry=280,Py=400,Iy=120,Fy=280;function gu(e,n){const a=o.useRef(null),[r,s]=o.useState(1),[i,l]=o.useState(0),u=o.useCallback((d,c)=>{if(!(d>0))return;const p=d/e,m=n&&c>0?c/n:1/0,h=Math.min(1,p,m);s(h),l(Math.max(0,(d-e*h)/2))},[e,n]);return o.useEffect(()=>{const d=a.current;if(!d)return;const c=n?d.parentElement??d:d;if(u(c.clientWidth,c.clientHeight),typeof ResizeObserver>"u")return;const p=new ResizeObserver(([m])=>u(m.contentRect.width,m.contentRect.height));return p.observe(c),()=>p.disconnect()},[u,n]),{scalerRef:a,scale:r,offset:i}}const Oy={position:"absolute",width:1,height:1,margin:-1,padding:0,overflow:"hidden",clipPath:"inset(50%)",whiteSpace:"nowrap",border:0},Hy=400,bu=8;function yu({label:e,subLabel:n,colloquialLabel:a,homonum:r,showWord:s=!0,showImage:i=!0,showPronunciation:l=!0,showColloquial:u=!0,buttonSize:d=40,wordInfo:c}){const{t:p}=Ce.useTranslation(),m=o.useRef(null),h=o.useRef(null),g=o.useRef(null),[y,C]=o.useState(1),[w,b]=o.useState(!1),[f,_]=o.useState({for:"",url:""}),[v,k]=o.useState(null),A=n&&n.length>0?n:nC()?.(e,r)??"",B=Xn()?.(e,r)??"",{imgRef:x,loading:N,failed:D,onLoad:P,onError:H}=xo(B),M=o.useCallback(()=>k(h.current?.getBoundingClientRect()??null),[]),z=o.useCallback(()=>k(null),[]),j=Ur(!!v,F=>{F?M():z()},h),S=o.useMemo(()=>{if(!c)return null;const F=[];return c.grade&&F.push(p("wordTable.info.grade",{n:c.grade,defaultValue:"\uB09C\uC774\uB3C4: {{n}}\uB4F1\uAE09"})),c.syllables&&F.push(p("wordTable.info.syllables",{n:c.syllables,defaultValue:"\uC74C\uC808 \uC218: {{n}}\uC74C\uC808"})),c.pos&&F.push(p("wordTable.info.pos",{v:Ao(c.pos,zy(p)),defaultValue:"\uD488\uC0AC: {{v}}"})),c.wordType&&F.push(p("wordTable.info.wordType",{v:Ao(c.wordType,Vy(p)),defaultValue:"\uC720\uD615: {{v}}"})),F.length?F:null},[c,p]),I=A||e,W=f.for===I?f.url:"";o.useEffect(()=>{const F=Dr(),R=A||e;if(!F||!R)return;let O=!1;return Promise.resolve(F(R)).then($=>{!O&&$&&_({for:R,url:$})}),()=>{O=!0}},[A,e]);const Z=o.useRef(null),U=o.useRef(null);o.useEffect(()=>()=>{g.current?.pause(),U.current?.()},[]);const q=o.useCallback(async F=>{if(F.stopPropagation(),w){Z.current?.();return}if(W){b(!0);try{const R=new Audio(W);g.current=R;const O=()=>{b(!1),U.current?.()},$=()=>{R.pause(),O()};Z.current=$;const Y=Xa($);U.current=Y,R.onended=O,R.onerror=O,await R.play()}catch{b(!1),U.current?.()}}},[w,W]),K=i&&!!B&&!D,L=K&&s?Ly:K?Ry:$y,E=K&&s?Py:K?Fy:Iy;return o.useEffect(()=>{const F=m.current;if(!F||typeof ResizeObserver>"u")return;const R=new ResizeObserver(([O])=>{const{width:$,height:Y}=O.contentRect;C(Math.min($/L,Y/E))});return R.observe(F),()=>R.disconnect()},[L,E]),t.jsxs("div",{ref:m,className:Ee("word-table-cell",K?"word-table-cell--with-image":""),"data-ref-w":L,"data-ref-h":E,children:[t.jsxs("div",{className:"word-table-cell__inner",style:{transform:`scale(${y})`},children:[K&&t.jsxs("div",{className:"word-table-cell__image-wrap",children:[N&&t.jsx("div",{className:"word-table-cell__spinner"}),t.jsx("img",{ref:x,className:"word-table-cell__image",src:B,alt:e,draggable:!1,style:{opacity:N?0:1},onLoad:P,onError:H})]}),s&&t.jsx("span",{className:"word-table-cell__word h0",children:e}),l&&A&&t.jsxs("span",{className:"word-table-cell__sub h3",children:["[",A,"]"]}),u&&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:w?"none":void 0},children:t.jsx(le,{htmlType:"button",size:d,type:"dot",icon:"play",variant:"transparent-lightGray",useBorder:!1,showTooltipInfo:p("common.play","\uC7AC\uC0DD"),onClick:q})}),t.jsx("span",{"data-play-state":"pause",style:{display:w?void 0:"none"},children:t.jsx(le,{htmlType:"button",size:d,type:"dot",icon:"pause",useBorder:!1,selected:!0,showTooltipInfo:p("common.pause","\uBA48\uCDA4"),onClick:q})})]}),c&&t.jsxs("div",{ref:h,className:"word-table-cell__info-button",onPointerEnter:F=>{ta(F)||M()},onPointerLeave:F=>{ta(F)||z()},onFocus:()=>{na()||M()},onBlur:z,children:[t.jsx(le,{htmlType:"button",size:d,type:"dot",icon:"info",variant:"transparent-lightGray",useBorder:!1,showTooltipInfo:!1,ariaLabel:p("wordTable.wordInfo","{{word}} \uB0B1\uB9D0 \uC815\uBCF4",{word:e}),onClick:F=>{F.stopPropagation(),j.touchPress()}}),v&&S&&t.jsx(Vn,{anchorRect:v,items:S,showIndex:!1})]})]})}const vu={\uBA85:"noun",\uB3D9:"verb",\uD615:"adjective",\uBD80:"adverb",\uC218:"numeral",\uAD00:"determiner",\uAC10:"interjection",\uC870:"particle",\uC811:"affix",\uC758:"dependentNoun",\uB300:"pronoun",\uBCF4\uB3D9:"auxVerb",\uBCF4\uD615:"auxAdjective"},xu={\uACE0\uC720:"native",\uD55C\uC790:"sino",\uC678\uB798:"foreign",\uD63C\uC885:"mixed"};function zy(e){return Object.fromEntries(Object.entries(hu).map(([n,a])=>[n,vu[n]?e(`wordTable.pos.${vu[n]}`,{defaultValue:a}):a]))}function Vy(e){return Object.fromEntries(Object.entries(Cu).map(([n,a])=>[n,xu[n]?e(`wordSearch.filter.type.${xu[n]}`,{defaultValue:a}):a]))}function la({title:e,titleIcon:n,disc:a,className:r,orientation:s="landscape",contentTypes:i=["\uC774\uBBF8\uC9C0","\uB2E8\uC5B4","\uD45C\uC900 \uBC1C\uC74C"],cutLine:l="\uD45C\uC2DC",showOutline:u=!0,showDivLine:d=!0,items:c,editCells:p,count:m,activeCell:h=null,onActivateCell:g,onRemoveCell:y,onRemoveItem:C,onReorder:w,renderCellAction:b,showFillerAdd:f=!1,contentRef:_,buttonSize:v=40,brand:k,code:A,pageNumber:B,pageNumberPosition:x="right",fitHeight:N=!1,scoring:D=!1,marks:P,onMarkClick:H,scoreIndexOffset:M=0}){const z=o.useCallback((De,je)=>{H?.(M+De,je)},[H,M]),j=(De,je)=>{const ke=P?.[rr(M+De)]??null;return t.jsx("div",{className:Ee("word-table-cell__score",ke?"word-table-cell__score--marked":""),style:nt>1?{transform:`translateX(-50%) scale(${nt})`,transformOrigin:"bottom center"}:void 0,children:or.map(Me=>t.jsx("span",{className:Ee("word-table-cell__score-slot",ke===Me?"word-table-cell__score-slot--on":""),children:t.jsx(le,{htmlType:"button",size:v,type:"dot",icon:cu[Me],variant:ke===Me?du[Me]:"default",selected:ke===Me,useBorder:!1,showTooltipInfo:S(`wordTable.scoring.markName.${Me}`,{defaultValue:Me}),ariaLabel:S(`wordTable.scoring.${Me}`,{word:je,defaultValue:`${je} ${Me}`}),onClick:We=>{We.stopPropagation(),z(De,Me)}})},Me))})},{t:S}=Ce.useTranslation(),I=p!==void 0,W=e!=null||!!n||!!a,Z=tn("(max-width: 767px)"),U=o.useRef(null),[q,K]=o.useState(null),L=c?.length??0,[E,F]=o.useState(null),[R,O]=o.useState(""),$=o.useRef(null),Y=o.useRef(null),Q=o.useRef(null),X=o.useRef(null),ce=o.useCallback(De=>{Y.current=De,typeof _=="function"?_(De):_&&(_.current=De)},[_]),xe=o.useCallback((De,je)=>{$.current=je,w?.(De,je),O(S("wordTable.reorder.moved",{n:je+1,total:L,defaultValue:"{{total}}\uCE78 \uAC00\uC6B4\uB370 {{n}}\uBC88\uC9F8\uB85C \uC62E\uAE40"}))},[w,S,L]);o.useEffect(()=>{const De=$.current;De!=null&&($.current=null,Y.current?.querySelectorAll(".word-table-block__card:not(.word-table-block__card--filler)")?.[De]?.querySelector(".word-table-block__card-handle button")?.focus())}),o.useEffect(()=>()=>{X.current?.()},[]);const te=o.useCallback((De,je)=>{if(!w||!De.altKey||De.ctrlKey||De.metaKey)return;const ke=De.key==="ArrowRight";if(!ke&&De.key!=="ArrowLeft")return;De.preventDefault();const Me=je+(ke?1:-1);Me<0||Me>=L||xe(je,Me)},[w,L,xe]),re=o.useCallback((De,je)=>{if(!w||De.pointerType==="mouse")return;const ke=De.target.closest?.("button");if(ke&&!ke.closest(".word-table-block__card-handle"))return;X.current?.();const Me={x:De.clientX,y:De.clientY};let We=!1;const ht=Ye=>{We&&Ye.cancelable&&Ye.preventDefault()},wt=Ye=>{if(!We){(Math.abs(Ye.clientX-Me.x)>bu||Math.abs(Ye.clientY-Me.y)>bu)&&rt();return}const at=document.elementFromPoint?.(Ye.clientX,Ye.clientY)?.closest?.("[data-wordtable-cell]"),ot=at?Number(at.dataset.wordtableCell):NaN,qe=Number.isInteger(ot)?ot:null;Q.current=qe,K(qe)},Et=()=>{const Ye=Q.current,at=We;rt(),at&&Ye!=null&&Ye!==je&&xe(je,Ye)},At=setTimeout(()=>{We=!0,F(je),Q.current=je,K(je),window.addEventListener("touchmove",ht,{passive:!1})},Hy);function rt(){clearTimeout(At),window.removeEventListener("pointermove",wt),window.removeEventListener("pointerup",Et),window.removeEventListener("pointercancel",Et),window.removeEventListener("touchmove",ht),We=!1,Q.current=null,X.current=null,F(null),K(null)}X.current=rt,window.addEventListener("pointermove",wt),window.addEventListener("pointerup",Et),window.addEventListener("pointercancel",Et)},[w,xe]),{width:V,height:ae}=ia[s],ue=typeof N=="number"?N:N&&typeof N=="object"?Z?N.narrow:N.wide:null,{scalerRef:ge,scale:me,offset:oe}=gu(V,N?ae:void 0),he=I?p?.length??0:c?.length??0,_e=Math.max(m??he,1),{cols:Le,rows:Ue}=Ty(s,_e),Ie={word:i.length===0||i.includes("\uB2E8\uC5B4"),image:i.length===0||i.includes("\uC774\uBBF8\uC9C0"),pron:i.length===0||i.includes("\uD45C\uC900 \uBC1C\uC74C"),colloq:i.length===0||i.includes("\uAD6C\uC5B4\uCCB4 \uBC1C\uC74C")},de=I?(p??[]).some(De=>De!==null&&De.length>1):(c??[]).some(De=>(De.words??[]).length>1),Ae=!!k?.show,Re=!!k?.show&&k?.top!==!1,Pe=!!k?.show&&k?.bottom!==!1,we=k?.copyright??"\xA9 IHAB, Inc. All rights reserved.",Se=Ee("word-table-block__content",My[l],u&&"word-table-block__content--outline",d&&de&&"word-table-block__content--div-line",!Ae&&B&&x!=="none"&&"word-table-block__content--page-number",Re&&"word-table-block__content--brand-top",Pe&&"word-table-block__content--brand-bottom"),Oe={transform:`scale(${1/me})`,transformOrigin:"center center"},Be=v*or.length+4*(or.length-1),nt=Math.max(1,Math.min(1/me,V/Le/Be)),Ge=t.jsxs("div",{ref:ge,className:"word-table__scaler",style:{height:ae*me},children:[t.jsx("div",{className:Ee("word-table",!W&&r),style:{width:V,height:ae,transform:`scale(${me})`,transformOrigin:"top left",marginLeft:oe},children:t.jsxs("div",{ref:ce,className:Se,style:{gridTemplateColumns:`repeat(${Le}, 1fr)`,gridTemplateRows:`repeat(${Ue}, 1fr)`},children:[I?t.jsx(t.Fragment,{children:(p??[]).map((De,je)=>t.jsx("div",{className:Ee("word-table-block__edit-cell",De?"word-table-block__edit-cell--filled":"word-table-block__edit-cell--empty",h===je?"word-table-block__edit-cell--active":""),style:fu(je,Le,Ue,l),children:De?t.jsxs(t.Fragment,{children:[De.map((ke,Me)=>t.jsxs(o.Fragment,{children:[Me>0&&t.jsx("div",{className:"word-table-block__pair-divider"}),t.jsx(yu,{label:ke.word,subLabel:ke.pronunciation,colloquialLabel:ke.colloquialPronunciation,homonum:ke.homonum,showWord:Ie.word,showImage:Ie.image,showPronunciation:Ie.pron,showColloquial:Ie.colloq,buttonSize:v})]},Me)),D&&j(je,De.map(ke=>ke.word).join(" / ")),y&&t.jsx("div",{className:"word-table-block__card-close",children:t.jsx(le,{htmlType:"button",size:v,type:"dot",icon:"x",variant:"transparent-lightGray",useBorder:!1,showTooltipInfo:De.length>1?S("wordPrint.removePair","\uB300\uB9BD\uC30D \uBE7C\uAE30"):S("wordPrint.removeWord","\uB2E8\uC5B4 \uBE7C\uAE30"),ariaLabel:De.length>1?S("wordPrint.removePair","\uB300\uB9BD\uC30D \uBE7C\uAE30"):S("wordPrint.removeWord","\uB2E8\uC5B4 \uBE7C\uAE30"),onClick:()=>y(je)})})]}):g&&t.jsx("div",{style:Oe,children:t.jsx(le,{htmlType:"button",size:"48",type:"bar",icon:"plus",label:S("wordTable.addWord","\uCD94\uAC00\uD558\uAE30"),onClick:()=>g(je)})})},je))}):t.jsxs(t.Fragment,{children:[(c??[]).map((De,je)=>t.jsxs("div",{"data-wordtable-cell":w?je:void 0,className:`word-table-block__card${w?" word-table-block__card--draggable":""}${q===je?" word-table-block__card--drag-over":""}${E===je?" word-table-block__card--dragging":""}`,style:fu(je,Le,Ue,l),draggable:!!w,onPointerDown:w?ke=>re(ke,je):void 0,onKeyDown:w?ke=>te(ke,je):void 0,onDragStart:w?()=>{U.current=je}:void 0,onDragOver:w?ke=>{ke.preventDefault(),K(je)}:void 0,onDragLeave:w?()=>K(null):void 0,onDrop:w?ke=>{ke.preventDefault(),U.current!==null&&U.current!==je&&w(U.current,je),U.current=null,K(null)}:void 0,onDragEnd:w?()=>{U.current=null,K(null)}:void 0,children:[(De.words??[]).map((ke,Me)=>t.jsxs(o.Fragment,{children:[Me>0&&t.jsx("div",{className:"word-table-block__pair-divider"}),t.jsx(yu,{label:ke.label,subLabel:ke.subLabel,colloquialLabel:ke.colloquialLabel,homonum:ke.homonum,showWord:Ie.word,showImage:Ie.image,showPronunciation:Ie.pron,showColloquial:Ie.colloq,buttonSize:v,wordInfo:ke.grade||ke.syllables!=null||ke.pos||ke.wordType?{grade:ke.grade,syllables:ke.syllables,pos:ke.pos,wordType:ke.wordType}:void 0})]},Me)),D&&j(je,(De.words??[]).map(ke=>ke.label).join(" / ")),w&&t.jsx("div",{className:"word-table-block__card-handle",children:t.jsx(le,{htmlType:"button",size:v,type:"dot",icon:"grip-vertical",variant:"transparent-lightGray",useBorder:!1,showTooltipInfo:S("wordTable.reorder.hint","Alt + \u2190 \u2192 \uB85C \uC21C\uC11C \uBC14\uAFB8\uAE30"),ariaLabel:S("wordTable.reorder.handle",{word:(De.words??[]).map(ke=>ke.label).join(" / "),defaultValue:"{{word}} \uC21C\uC11C \uBC14\uAFB8\uAE30 (Alt + \uD654\uC0B4\uD45C)"})})}),(b||C)&&t.jsxs("div",{className:"word-table-block__card-actions",children:[b?.(je,De),C&&t.jsx("div",{className:"word-table-block__card-close",children:t.jsx(le,{htmlType:"button",size:v,type:"dot",icon:"x",variant:"transparent-lightGray",useBorder:!1,showTooltipInfo:(De.words??[]).length>1?S("wordPrint.removePair","\uB300\uB9BD\uC30D \uBE7C\uAE30"):S("wordPrint.removeWord","\uB2E8\uC5B4 \uBE7C\uAE30"),ariaLabel:(De.words??[]).length>1?S("wordPrint.removePair","\uB300\uB9BD\uC30D \uBE7C\uAE30"):S("wordPrint.removeWord","\uB2E8\uC5B4 \uBE7C\uAE30"),onClick:()=>C(De.id)})})]})]},De.id)),Array.from({length:Math.max(0,Le*Ue-(c?.length??0))}).map((De,je)=>{const ke=(c?.length??0)+je<_e;return t.jsx("div",{className:"word-table-block__card word-table-block__card--filler",children:f&&g&&ke&&t.jsx("div",{style:Oe,children:t.jsx(le,{htmlType:"button",size:v,type:"bar",icon:"plus",label:S("wordTable.addWord","\uCD94\uAC00\uD558\uAE30"),onClick:()=>g((c?.length??0)+je)})})},`filler-${je}`)})]}),Re&&t.jsx(t.Fragment,{children:t.jsxs("div",{className:"word-table__band word-table__band--top",children:[t.jsx("img",{className:"word-table__brand-logo",src:k?.topLogo?.src??Za,alt:k?.topLogo?.alt??"\uB9D0\uADC0"}),(()=>{const De=[k?.title&&t.jsx("span",{className:"word-table__paper-title",children:k.title},"t"),k?.owner&&t.jsx("span",{className:"word-table__owner",children:k.owner},"o"),A&&t.jsx("span",{className:"word-table__code",children:A},"c")].filter(Boolean);return De.length===0?null:t.jsx("span",{className:"word-table__ident",children:De.map((je,ke)=>t.jsxs(o.Fragment,{children:[ke>0&&t.jsx("span",{className:"word-table__ident-dot","aria-hidden":"true",children:"\xB7"}),je]},ke))})})()]})}),Pe&&t.jsx(t.Fragment,{children:t.jsxs("div",{className:"word-table__band word-table__band--bottom",children:[t.jsxs("span",{className:"word-table__brand-by",children:[k?.bottomLogo?t.jsx("img",{className:"word-table__brand-logo--ihab word-table__brand-logo--given",src:k.bottomLogo.src,alt:k.bottomLogo.alt}):t.jsx("span",{className:"word-table__brand-logo--ihab",role:"img","aria-label":"IHAB"}),t.jsx("span",{className:"word-table__copyright",children:we})]}),t.jsxs("span",{className:"word-table__band-end",children:[k?.link&&t.jsx("span",{className:"word-table__link",children:k.link}),B&&x!=="none"&&t.jsx("span",{className:"word-table__page-count",children:S("wordTable.filter.pageIndicator",{current:B.current,total:B.total})})]})]})}),!Ae&&B&&x!=="none"&&t.jsx("span",{className:`word-table__page-number body-3 word-table__page-number--${x}`,children:S("wordTable.filter.pageIndicator",{current:B.current,total:B.total})})]})}),w&&t.jsx("span",{role:"status",style:Oy,children:R})]}),Xe=ue==null?Ge:t.jsx("div",{className:"word-table__frame",style:{height:ue},children:Ge});return W?t.jsx(sa,{type:"page",icon:n,title:e,disc:a,className:Ee("word-table-block",r),children:Xe}):Xe}function Wy(e,n,a){const r=[];for(const s of e??[]){if(s.type==="note"||s.type==="input")continue;const i=s.displayLabel??s.label,l=qy(s,n?.[s.label],a);l!==null&&r.push(`${i} ${l}`)}return r.join(" \xB7 ")}function qy(e,n,a){const r=(Array.isArray(n)?n:n===void 0?[]:[n]).filter(s=>s!==on);return r.length===0?e.allOption?e.allLabel??a:null:r.map(s=>Uy(e,s)).join(", ")}function Uy(e,n){const a=[...e.items??[],...(e.groups??[]).flat()];for(const r of a)if(r!=null){if(typeof r=="string"){if(r===n)return r;continue}if(r.value===n)return r.displayLabel??r.labels?.join(" ")??r.value}return n}function Bn({title:e,headerAction:n,headerSummary:a,collapsible:r=!1,defaultCollapsed:s=!1,collapsed:i,onCollapsedChange:l,footer:u,sections:d,selected:c={},onSelect:p,align:m,sectionAlign:h,className:g}){const y=(m??(h==="vertical"?"newline":"inline"))==="inline",{t:C}=Ce.useTranslation(),[w,b]=o.useState(s),f=i??w,_=()=>{const x=!f;b(x),l?.(x)},v=x=>{if(!r)return;const N=x.target;!N||typeof N.closest!="function"||N.closest(".filter-panel__collapse-toggle")||N.closest('button, a, input, select, textarea, label, [role="radiogroup"], [role="button"], [role="menu"]')||_()},k=o.useMemo(()=>a!==void 0||!f?"":Wy(d,c,C("common.all","\uC804\uCCB4")),[a,f,d,c,C]),A=a??(k?t.jsx("span",{className:"filter-panel__header-summary body-3",children:k}):null),B=e||n||a||r;return t.jsxs("div",{className:Ee("filter-panel",r?"filter-panel--collapsible":"",f?"filter-panel--collapsed":"",g),children:[B&&t.jsxs("div",{className:"filter-panel__header",onClick:r?v:void 0,children:[t.jsx("div",{className:"filter-panel__title-row",children:e&&t.jsx("span",{className:"filter-panel__title h4",children:e})}),t.jsxs("div",{className:"filter-panel__header-actions",children:[f?A:n,r&&t.jsx(le,{htmlType:"button",size:40,type:"dot",variant:"transparent-gray",useBorder:!1,icon:f?"chevron-down":"chevron-up",className:"filter-panel__collapse-toggle",ariaLabel:f?C("common.expand","\uD3BC\uCE58\uAE30"):C("common.collapse","\uC811\uAE30"),"aria-expanded":!f,onClick:_})]})]}),!f&&t.jsxs(t.Fragment,{children:[t.jsx("div",{className:Ee("filter-panel__sections",y?"filter-panel__sections--row":""),children:d.map(x=>{const N=c[x.label],D=N===void 0||(Array.isArray(N)?N.length===0:!1),P=(x.items??[]).filter(M=>M!=null);x.allOption&&P.some(M=>(typeof M=="string"?M:M.value)===on)&&bn(`filter-panel-all-value:${x.label}`,`[FilterPanel] '${x.label}' \uC808\uC5D0 allOption \uACFC \uAC12 '${on}' \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 H=M=>{const z=typeof M=="string"?M:M.value,j=typeof M!="string"&&!!M.disabled,S=typeof M!="string"?M.labels:void 0,I=typeof M!="string"?M.displayLabel:void 0,W=typeof M!="string"?M.tooltip:void 0,Z=typeof M!="string"?M.descriptionTooltip:void 0,U=typeof M!="string"?M.shape:void 0,q=Array.isArray(N)?N.includes(z):N===z;return t.jsx(le,{htmlType:"button",size:"keyboard",label:S??I??z,type:x.itemType??(S?"bar":z.length===1?"dot":void 0),selected:q,disabled:j,shape:U,showTooltipInfo:!!W,tooltipInfoText:W,tooltipDescription:Z,onClick:()=>p?.(z,x.label)},z)};return t.jsxs(o.Fragment,{children:[x.groupLabel&&t.jsxs("div",{className:"filter-panel__group-label-row",children:[t.jsx("div",{className:"filter-panel__group-label body-2",children:x.groupLabel}),x.groupAction]}),t.jsxs("div",{className:Ee("filter-panel__section",x.layout==="row"?"filter-panel__section--row":"",x.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:x.displayLabel??x.label}),x.labelAction??(x.labelInfo?t.jsx(Da,{...x.labelInfo}):null)]}),x.type==="note"?t.jsx("div",{className:"filter-panel__note body-3",children:x.content}):x.type==="input"?t.jsx(Un,{className:"filter-panel__textfield",placeholder:x.placeholder,ariaLabel:x.displayLabel??x.label,value:c[x.label]??"",onChange:M=>p?.(M,x.label),error:x.error}):!x.multiple&&x.display==="segmented"?t.jsx(An,{ariaLabel:x.displayLabel??x.label,options:[...x.allOption?[{key:on,label:x.allLabel??C("common.all","\uC804\uCCB4"),disabled:x.allOptionDisabled}]:[],...P.map(M=>{const z=typeof M=="string"?M:M.value,j=typeof M!="string"?M.displayLabel:void 0,S=typeof M!="string"?M.disabled:void 0;return{key:z,label:j??z,disabled:S}})],value:D&&x.allOption?on:c[x.label]??"",onChange:M=>p?.(M,x.label),size:32}):!x.multiple&&x.display==="dropdown"?t.jsx(sn,{className:"filter-panel__dropdown",size:40,options:[...x.allOption?[{value:on,label:x.allLabel??C("common.all","\uC804\uCCB4"),disabled:x.allOptionDisabled}]:[],...P.map(M=>{const z=typeof M=="string"?M:M.value,j=typeof M!="string"?M.displayLabel:void 0,S=typeof M!="string"?M.disabled:void 0;return{value:z,label:j??z,disabled:S}})],value:D&&x.allOption?on:c[x.label],onChange:M=>p?.(M,x.label)}):t.jsxs("div",{className:x.groups?"filter-panel__item-groups":"filter-panel__items",children:[x.allOption&&!x.groups&&t.jsx(le,{htmlType:"button",size:"keyboard",label:x.allLabel??C("common.all","\uC804\uCCB4"),selected:D,disabled:x.allOptionDisabled,onClick:()=>p?.(on,x.label)}),x.groups?x.groups.map((M,z)=>t.jsxs("div",{className:"filter-panel__item-group",children:[z===0&&x.allOption&&t.jsx(le,{htmlType:"button",size:"keyboard",label:x.allLabel??C("common.all","\uC804\uCCB4"),selected:D,disabled:x.allOptionDisabled,onClick:()=>p?.(on,x.label)}),M.filter(j=>j!=null).map(H)]},z)):P.map(H)]})]})]},x.label)})}),u!=null&&u!==!1&&t.jsx("div",{className:"filter-panel__footer body-3",children:u})]})]})}const Gy=[1,2,3,4,5,6,7,8,9,10,11,12],_u=[8,4,2,1];function wu(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 Au(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 ku(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 Bu(e){return{label:e("wordTable.filter.topInfo","\uC0C1\uB2E8 \uC815\uBCF4"),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 Nu(e){return{label:e("wordTable.filter.bottomInfo","\uD558\uB2E8 \uC815\uBCF4"),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 Eu(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 Du(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 Su(e,n){return{label:e(n.hasPairs?"wordTable.filter.itemsPerPagePair":"wordTable.filter.itemsPerPageWord"),items:[n.itemCount,..._u.filter(a=>a<n.itemCount)].map(a=>({value:`${a}\uAC1C`,displayLabel:e("wordTable.filter.itemsPerPageOption",{count:a})})),display:"segmented"}}function ju(e,n){return e===n||!_u.includes(e)?Number.POSITIVE_INFINITY:e}function Ky(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 Tu={left:"\uC67C\uCABD",center:"\uC911\uC559",right:"\uC624\uB978\uCABD",none:"\uBBF8\uD45C\uC2DC"};function Mu(e){return e==="\uC67C\uCABD"?"left":e==="\uC911\uC559"?"center":e==="\uC624\uB978\uCABD"?"right":"none"}function Lu(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",...n.showTopInfo!=null?{[e("wordTable.filter.topInfo","\uC0C1\uB2E8 \uC815\uBCF4")]:n.showTopInfo?"\uD45C\uC2DC":"\uBBF8\uD45C\uC2DC"}:{},...n.showBottomInfo!=null?{[e("wordTable.filter.bottomInfo","\uD558\uB2E8 \uC815\uBCF4")]:n.showBottomInfo?"\uD45C\uC2DC":"\uBBF8\uD45C\uC2DC"}:{}}}function $u(e,n,a,r){return a===e("wordTable.filter.composition","\uAD6C\uC131")?n===on?(r.setContentTypes(()=>[]),!0):(r.setContentTypes(s=>s.includes(n)?s.filter(i=>i!==n):[...s,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):a===e("wordTable.filter.topInfo","\uC0C1\uB2E8 \uC815\uBCF4")?(r.setShowTopInfo?.(n==="\uD45C\uC2DC"),!0):a===e("wordTable.filter.bottomInfo","\uD558\uB2E8 \uC815\uBCF4")?(r.setShowBottomInfo?.(n==="\uD45C\uC2DC"),!0):!1}function Yy(e){return"sections"in e}function ko(e){const{t:n}=Ce.useTranslation(),{title:a,className:r,collapsible:s,defaultCollapsed:i,collapsed:l,onCollapsedChange:u,headerSummary:d}=e,c={collapsible:s,defaultCollapsed:i,collapsed:l,onCollapsedChange:u,headerSummary:d};if(Yy(e))return t.jsx(Bn,{className:r,title:a??n("wordTable.filterTitle","\uD45C \uC124\uC815"),sections:e.sections,selected:e.selected,onSelect:e.onSelect,...c,align:"inline"});const{hasImage:p,hasColloquial:m,contentTypes:h,orientation:g,showOutline:y,cutLine:C,showDivLine:w,setters:b,showCutLine:f=!1,showDivLine2:_=!1,middleSections:v=[],extraSelected:k={},onExtraSelect:A,showPaperBands:B=!1,showTopInfo:x=!0,showBottomInfo:N=!0}=e,D=[wu(n,{hasImage:p,hasColloquial:m}),Au(n),...v,ku(n),...f?[Eu(n)]:[],..._?[Du(n)]:[],...B?[Bu(n),Nu(n)]:[]],P={...Lu(n,{contentTypes:h,orientation:g,showOutline:y,cutLine:C,showDivLine:w,showTopInfo:x,showBottomInfo:N}),...k},H=(M,z)=>{$u(n,M,z,b)||A?.(M,z)};return t.jsx(Bn,{className:r,title:a??n("wordTable.filterTitle","\uD45C \uC124\uC815"),sections:D,selected:P,onSelect:H,...c,sectionAlign:"horizontal"})}function Ru(e){return e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">")}function Bo(e){return e.replace(/[\\/:*?"<>|]/g,"_").trim()}let sr=null,ua=null;function Zy(e,n,a,r="",s=""){if(e.length===0||ua&&ua.iframe.isConnected&&Date.now()-ua.at<1e4)return;const i=r?Bo(r):"";sr?.();let l=null;if(i){const c=document.title;document.title=i,l=()=>{document.title=c,window.removeEventListener("afterprint",l),sr===l&&(sr=null)},sr=l,window.addEventListener("afterprint",l)}const u=document.createElement("iframe");u.style.cssText="position:fixed;left:-10000px;top:0;width:1200px;height:900px;border:0;",document.body.appendChild(u);const d=u.contentDocument;if(!d){u.remove();return}ua={iframe:u,at:Date.now()},d.open(),d.write(No(e,n,a,!0,i,s)),d.close(),u.contentWindow?.addEventListener("afterprint",()=>{l?.(),setTimeout(()=>{u.remove(),ua?.iframe===u&&(ua=null)},0)})}function No(e,n,a,r=!1,s="",i=""){s=s?Bo(s):"";const l=Array.from(document.styleSheets).flatMap(p=>{try{return Array.from(p.cssRules).map(m=>m.cssText)}catch{return[]}}).join(`
|
|
860
|
+
`),u="light",d=i?`<div class="paper-head">${Ru(i)}</div>`:"",c=e.map(p=>{const m=p.cloneNode(!0);return m.querySelectorAll('[data-play-state="play"]').forEach(h=>h.style.display=""),m.querySelectorAll('[data-play-state="pause"]').forEach(h=>h.style.display="none"),m.querySelectorAll(".word-table-cell__score-slot:not(.word-table-cell__score-slot--on)").forEach(h=>h.remove()),m.querySelectorAll(".word-table-cell__spinner").forEach(h=>h.remove()),m.querySelectorAll("img").forEach(h=>{h.style.opacity==="0"&&(h.setAttribute("onload","this.style.opacity=''"),h.setAttribute("onerror","this.style.visibility='hidden'"))}),`<div class="paper-wrap">${d}${m.outerHTML}</div>`}).join(`
|
|
861
861
|
`);return`<!DOCTYPE html>
|
|
862
|
-
<html data-theme="${
|
|
862
|
+
<html data-theme="${u}">
|
|
863
863
|
<head>
|
|
864
864
|
<meta charset="utf-8">
|
|
865
|
-
${s?`<title>${
|
|
865
|
+
${s?`<title>${Ru(s)}</title>`:""}
|
|
866
866
|
<style>${l}</style>
|
|
867
867
|
<style>
|
|
868
868
|
* { box-sizing: border-box; }
|
|
@@ -920,7 +920,7 @@ ${v.badge}`:v.badge:void 0;if(A&&d(v.code))return null;if(!v.badge&&!p)return m(
|
|
|
920
920
|
</style>
|
|
921
921
|
</head>
|
|
922
922
|
<body class="ihabdevteam-core-scope">
|
|
923
|
-
${
|
|
923
|
+
${c}
|
|
924
924
|
<button class="button button48 button48--dot button--variant-default button--align-center new-window-close" onclick="window.close()"><span class="button__icon button__icon--medium"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="button__icon-svg"><path d="M18 6 6 18"/><path d="m6 6 12 12"/></svg></span></button>
|
|
925
925
|
<script>
|
|
926
926
|
function scale() {
|
|
@@ -1042,10 +1042,10 @@ ${v.badge}`:v.badge:void 0;if(A&&d(v.code))return null;if(!v.badge&&!p)return m(
|
|
|
1042
1042
|
`:""}
|
|
1043
1043
|
<\/script>
|
|
1044
1044
|
</body>
|
|
1045
|
-
</html>`}const Xy=1e3;function Eo({getElements:e,paperW:n,paperH:a,fileName:r="",onPopupBlocked:s,header:i=""}){const{t:l}=Ce.useTranslation(),c=o.useCallback(()=>{Zy(e(),n,a,r,i)},[e,n,a,r,i]),d=o.useCallback(()=>{const p=e();if(p.length===0)return;const m=window.open("","_blank");if(!m){s?.();return}m.document.write(No(p,n,a,!1,r,i)),m.document.close()},[e,n,a,r,s,i]),u=o.useCallback(()=>{const p=e();if(p.length===0)return;const m=No(p,n,a,!1,r,i),h=new Blob([m],{type:"text/html;charset=utf-8"}),f=URL.createObjectURL(h),y=(r?Bo(r):"")||l("wordTable.printFileNameSingle","\uB2E8\uC5B4\uD45C"),C=Object.assign(document.createElement("a"),{href:f,download:`${y}.html`});document.body.appendChild(C),C.click(),document.body.removeChild(C),setTimeout(()=>URL.revokeObjectURL(f),Xy)},[e,n,a,r,i,l]);return{print:c,openNewWindow:d,downloadHtml:u}}function Pc(e,n){const{t:a}=Ce.useTranslation(),r=n?.paperBands===!0,[s,i]=o.useState("landscape"),[l,c]=o.useState(["\uC774\uBBF8\uC9C0","\uB2E8\uC5B4","\uD45C\uC900 \uBC1C\uC74C"]),[d,u]=o.useState("\uD45C\uC2DC"),[p,m]=o.useState(!0),[h,f]=o.useState(!0),[y,C]=o.useState(!0),[w,b]=o.useState(!0),[g,_]=o.useState(8),[v,k]=o.useState("right"),A=e.length,B=e.some(W=>(W.words??[]).length>1),x=e.some(W=>(W.words??[]).some(Z=>!!Z.colloquialLabel)),N=Math.min(g,Math.max(A,1)),D=o.useMemo(()=>mc(e,N),[e,N]),P=D.length>1,H=N,[M,z]=o.useState(!1);o.useEffect(()=>{let W=!1;if(!Xn()){z(!1);return}return Promise.all(e.flatMap(Z=>(Z.words??[]).map(U=>Js(U.label,U.homonum)))).then(Z=>{W||z(Z.some(Boolean))},()=>{}),()=>{W=!0}},[e]);const j=o.useMemo(()=>[wc(a,{hasImage:M,hasColloquial:x}),Ac(a),...A>0?[Sc(a,{hasPairs:B,itemCount:A})]:[],kc(a),...H>1?[Ec(a)]:[],...B?[Dc(a)]:[],...r?[Bc(a),Nc(a)]:[]],[a,M,x,A,B,P,H,r]),S={...Lc(a,{contentTypes:l,orientation:s,showOutline:p,cutLine:d,showDivLine:w,showTopInfo:h,showBottomInfo:y}),...A>0?{[a(B?"wordTable.filter.itemsPerPagePair":"wordTable.filter.itemsPerPageWord")]:`${N}\uAC1C`}:{},...P?{[a("wordTable.filter.pageNumber","\uD398\uC774\uC9C0 \uBC88\uD638")]:Tc[v]}:{}},I=o.useCallback((W,Z)=>{$c(a,W,Z,{setContentTypes:c,setOrientation:i,setShowOutline:m,setCutLine:u,setShowDivLine:b,setShowTopInfo:f,setShowBottomInfo:C})||(Z===a("wordTable.filter.itemsPerPagePair","\uD398\uC774\uC9C0\uB2F9 \uB300\uB9BD\uC30D \uC218")||Z===a("wordTable.filter.itemsPerPageWord","\uD398\uC774\uC9C0\uB2F9 \uB2E8\uC5B4 \uC218")?_(jc(parseInt(W),A)):Z===a("wordTable.filter.pageNumber","\uD398\uC774\uC9C0 \uBC88\uD638")&&k(Mc(W)))},[a,A]);return{settings:{orientation:s,contentTypes:l,cutLine:d,showOutline:p,showDivLine:w,count:H,showTopInfo:h,showBottomInfo:y},filterSections:j,filterSelected:S,handleSelect:I,pages:D,isPaginated:P,pageNumberPosition:v}}function Jy({items:e,words:n,title:a,subtitle:r,emptyText:s,buttons:i,renderButtons:l,renderFooter:c,footerClassName:d,footerLayout:u,printFileName:p,showSettings:m,autoPrint:h,className:f,onClose:y,scoring:C=!1,onScoreChange:w,printHeader:b,brand:g,code:_,beforeClose:v}){const{t:k}=Ce.useTranslation(),A=o.useMemo(()=>Array.isArray(e)?e:(Array.isArray(n)?n:[]).filter(ne=>typeof ne=="string"&&ne.length>0).map((ne,oe)=>({id:`${ne}-${oe}`,words:[{label:ne}]})),[e,n]),{settings:B,filterSections:x,filterSelected:N,handleSelect:D,pages:P,isPaginated:H,pageNumberPosition:M}=Pc(A,{paperBands:!!g?.show}),z=o.useMemo(()=>pc(P.map(ne=>ne.length)),[P]),[j,S]=o.useState({}),I=o.useCallback((ne,oe)=>{S(V=>({...V,[rr(ne)]:cc(V[rr(ne)]??null,oe)}))},[]),W=o.useRef(w);o.useEffect(()=>{W.current=w});const Z=o.useRef(j);o.useEffect(()=>{Z.current!==j&&(Z.current=j,W.current?.(wo(j)))},[j]);const U=o.useMemo(()=>wo(j),[j]),q=o.useRef(null),{toastMessage:K,toastKey:L,showWarning:E,clearToast:F}=ll("warning"),R=o.useRef([]),O=o.useCallback(()=>H?R.current.filter(ne=>ne!==null):q.current?[q.current]:[],[H]),{print:$,openNewWindow:Y}=Eo({getElements:O,paperW:ia[B.orientation].width,paperH:ia[B.orientation].height,fileName:p??"",header:b??"",onPopupBlocked:()=>E(k("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."))}),Q=o.useMemo(()=>c?void 0:l?l({print:$,openNewWindow:Y}):p?[{label:k("wordTable.openNewWindow","\uC0C8 \uCC3D\uC73C\uB85C \uBCF4\uAE30"),variant:"default",onClick:()=>Y()},{label:k("wordTable.print","\uC778\uC1C4\uD558\uAE30"),variant:"default",onClick:()=>$()},...i??[]]:i,[c,l,p,i,k,$,Y]),X=o.useMemo(()=>c?c({print:$,openNewWindow:Y}):void 0,[c,$,Y]),ie=o.useRef(!1),be=o.useRef($);return o.useEffect(()=>{be.current=$},[$]),o.useEffect(()=>{if(!h||ie.current)return;const ne=window.setTimeout(()=>{ie.current=!0,be.current()},100);return()=>window.clearTimeout(ne)},[h]),t.jsxs(Tn,{title:a??k("keyWords.title","\uC8FC\uC694 \uB2E8\uC5B4"),subtitle:r,size:"large",className:Ee("word-table-popup",f),buttons:Q,footer:X,footerClassName:d,footerLayout:u,beforeClose:v,onClose:y,children:[A.length>0?t.jsxs("div",{className:"word-table-popup__body",children:[m&&t.jsx(ko,{sections:x,selected:N,onSelect:D}),H?t.jsx("div",{className:"word-table-popup__pages",children:P.map((ne,oe)=>t.jsx(la,{items:ne,orientation:B.orientation,contentTypes:B.contentTypes,cutLine:B.cutLine,showOutline:B.showOutline,showDivLine:B.showDivLine,count:B.count,contentRef:V=>{R.current[oe]=V},pageNumber:{current:oe+1,total:P.length},pageNumberPosition:M,brand:g&&{...g,top:B.showTopInfo,bottom:B.showBottomInfo},code:_,scoring:C,scoreIndexOffset:z[oe],marks:U,onMarkClick:I},oe))}):t.jsx("div",{className:"word-table-popup__table",children:t.jsx(la,{items:A,orientation:B.orientation,contentTypes:B.contentTypes,cutLine:B.cutLine,showOutline:B.showOutline,showDivLine:B.showDivLine,count:B.count,contentRef:q,fitHeight:!0,scoring:C,marks:U,onMarkClick:I,brand:g&&{...g,top:B.showTopInfo,bottom:B.showBottomInfo},code:_})})]}):t.jsx("p",{className:"word-table-popup__empty body-3",children:s??k("keyWords.empty","\uCD94\uCD9C\uB41C \uC8FC\uC694 \uB2E8\uC5B4\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4.")}),t.jsx(ra,{message:K,position:"top",onClose:F},L)]})}const Qy=new Set(["x","triangle"]);function e5(e,n){const a=[];for(let r=0;r<e.length;r++){const s=n[String(r)];s&&Qy.has(s)&&a.push(e[r])}return a}const t5=/\s*(?:(\d+)차\s*)?복습\s*\d{2}\.\d{2}$/;function Ic(e){const n=e.name.trim(),a=e.reviewRound;if(typeof a=="number"&&Number.isFinite(a)&&a>=0){const i=Math.floor(a);if(i===0)return{\uBC14\uD0D5:n,\uD68C\uCC28:1};const l=(i===1?/\s*복습\s*\d{2}\.\d{2}$/:new RegExp(`(?:^|\\s)${i}\uCC28\\s*\uBCF5\uC2B5\\s*\\d{2}\\.\\d{2}$`)).exec(n);return{\uBC14\uD0D5:l?n.slice(0,l.index).trim():n,\uD68C\uCC28:i+1}}let r=n,s=1;for(;;){const i=t5.exec(r);if(!i)break;s=Math.max(s,(i[1]?Number(i[1]):1)+1),r=r.slice(0,i.index).trim()}return{\uBC14\uD0D5:r,\uD68C\uCC28:s}}function n5(e,n){const[,a,r]=Ir(n).split("-"),s=`${a}.${r}`,{\uBC14\uD0D5:i,\uD68C\uCC28:l}=Ic(typeof e=="string"?{name:e}:e),c=l>=2?`${l}\uCC28 `:"";return`${i||"\uB2E8\uC5B4\uD45C"} ${c}\uBCF5\uC2B5 ${s}`}function a5(e){return{reviewOf:e.reviewOf??e.id??void 0,reviewRound:Ic(e).\uD68C\uCC28}}function r5(e,n){const a={};for(const[r,s]of Object.entries(n)){if(s!=="o"&&s!=="triangle"&&s!=="x")continue;const i=Number(r),l=e[i];l&&(a[r]=l)}return a}function o5(e){return e.map(n=>n.label).join(" / ")}function s5(e){return e.map(n=>n.homonum!=null?`${n.label}#${n.homonum}`:n.label).join(" / ")}function Fc(e){return e.split(" / ").map(n=>n.replace(/#\d+$/,"")).join(" / ")}function i5(e,n,a){const r=ui(a);return[e.trim(),r,n.trim()].filter(Boolean).join(" \xB7 ")}function Oc(e,n,a){return a===0?0:(e+n*.5)/a}function l5(e){const n=new Map,a=[...e].sort((s,i)=>s.scoredAt.localeCompare(i.scoredAt));for(const s of a)for(const[i,l]of Object.entries(s.marks)){const c=s.labels?.[i];if(!c)continue;const d=n.get(c)??{o:0,triangle:0,x:0,latest:l,latestAt:s.scoredAt};if(l==="o")d.o++;else if(l==="triangle")d.triangle++;else if(l==="x")d.x++;else continue;d.latest=l,d.latestAt=s.scoredAt,n.set(c,d)}const r=[];for(const[s,i]of n){const l=i.o+i.triangle+i.x;r.push({label:Fc(s),key:s,tried:l,o:i.o,triangle:i.triangle,x:i.x,rate:Oc(i.o,i.triangle,l),latest:i.latest,latestAt:i.latestAt})}return r.sort((s,i)=>s.rate-i.rate||i.tried-s.tried||aa(s.label,i.label)||aa(s.key??s.label,i.key??i.label)),r}function c5(e){const n=new Map;for(const r of e){const s=r.tableId??`name:${r.tableName}`,i=n.get(s)??{tableName:r.tableName,tableId:r.tableId,rows:[]};i.rows.push(r),n.set(s,i)}const a=[];for(const r of n.values()){const s=c=>Object.values(c.marks).filter(d=>d==="o"||d==="triangle"||d==="x").length,i=r.rows.filter(c=>s(c)>0).sort((c,d)=>c.scoredAt.localeCompare(d.scoredAt));if(i.length===0)continue;const l=i.map(c=>{const d=Object.values(c.marks),u=d.filter(m=>m==="o").length,p=d.filter(m=>m==="triangle").length;return Oc(u,p,s(c))});a.push({tableName:r.tableName,tableId:r.tableId,rates:l,times:i.map(c=>c.scoredAt),delta:l.length>=2?l[l.length-1]-l[0]:null})}return a.sort((r,s)=>(s.times[s.times.length-1]??"").localeCompare(r.times[r.times.length-1]??"")),a}function u5(e,n=8){return e.filter(a=>a.latest!=="o").slice(0,n)}function d5(e,n){if(e==null||n==null||e===""||n==="")return 0;if(typeof e=="number"&&typeof n=="number")return e-n;const a=String(e),r=String(n);return+(a>r)-+(a<r)}function p5(e){const n=new Map;let a=0,r=0;const s=e.map((l,c)=>({r:l,\uC790\uB9AC:c})).sort((l,c)=>l.r.answeredAt.localeCompare(c.r.answeredAt)||d5(l.r.id,c.r.id)||l.\uC790\uB9AC-c.\uC790\uB9AC).map(l=>l.r);for(const l of s){if(l.isCorrect==null)continue;const c=l.itemTitle?.trim();if(!c){r++;continue}a++;const d=l.itemId?.trim()||c,u=`${l.trainingType}|${d}`,p=n.get(u)??{trainingType:l.trainingType,itemId:d,title:c,tried:0,wrong:0,latestCorrect:l.isCorrect,latestAt:l.answeredAt,lastSelected:l.selected,setIds:[]};if(p.tried++,l.isCorrect||p.wrong++,p.title=c,p.latestCorrect=l.isCorrect,p.latestAt=l.answeredAt,p.lastSelected=l.selected,l.setId){const m=p.setIds.indexOf(l.setId);m>0&&p.setIds.splice(m,1),m!==0&&p.setIds.unshift(l.setId)}n.set(u,p)}const i=[...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 i.sort((l,c)=>l.rate-c.rate||c.tried-l.tried||aa(l.title,c.title)),{items:i,counted:a,skippedNoTitle:r}}function m5(e,n=8){return e.filter(a=>!a.latestCorrect).slice(0,n)}function h5(e){const n=new Map;for(const r of e){const s=n.get(r.trainingType)??[];s.push(r),n.set(r.trainingType,s)}const a=[...n.entries()].map(([r,s])=>({trainingType:r,items:s,pending:s.filter(i=>!i.latestCorrect).length}));return a.sort((r,s)=>s.pending-r.pending||r.trainingType.localeCompare(s.trainingType)),a}const Do=["LISTEN_IN_NOISE","SHORT_STORY","LONG_STORY","ORDERING_SENTENCE"];function C5(e){const n=new Map;let a=0;for(const i of e){if(i.latestCorrect)continue;const l=i.setIds[0];if(!l){a++;continue}const c=`${i.trainingType}|${l}`,d=n.get(c)??{setId:l,trainingType:i.trainingType,pending:0};d.pending++,n.set(c,d)}const r=(i,l)=>l.pending-i.pending||i.trainingType.localeCompare(l.trainingType)||i.setId.localeCompare(l.setId),s=[...n.values()];return{sentence:s.filter(i=>Do.includes(i.trainingType)).sort(r),word:s.filter(i=>!Do.includes(i.trainingType)).sort(r),noSet:a}}function f5(e,n,a=5){const r=new Set(n);if(r.size===0)return[];const s=[];for(const i of e){const l=new Set,c=[];for(const d of i.cellLabels)r.has(d)&&!l.has(d)&&(l.add(d),c.push(d));c.length!==0&&s.push({id:i.id,name:i.name,kind:i.kind,covered:c,totalCells:i.cellLabels.length})}return s.sort((i,l)=>l.covered.length-i.covered.length||i.totalCells-l.totalCells||aa(i.name,l.name)),s.slice(0,Math.max(0,a))}function g5(e,n){const a=new Set(e.flatMap(r=>r.covered));return n.filter(r=>!a.has(r))}function b5(e,n){const a=new Map;for(const s of e)for(const i of s.cells){const l=s.labelOf(i);a.has(l)||a.set(l,i)}const r=[];for(const s of n){const i=a.get(s);i!==void 0&&r.push(i)}return r}function So(e,n,a){return typeof e=="string"&&e?e:n.replace(/\{\{(\w+)\}\}/g,(r,s)=>String(a[s]))}function y5(e,n){const a=Number.isFinite(e)?Math.round(e):0;if(!a||a<=0)return"-";const r=Math.floor(a/60),s=a%60;return n?n(r,s):r>0&&s>0?So(Dt.t("customers.duration.minSec",{m:r,s,defaultValue:"{{m}}\uBD84 {{s}}\uCD08"}),"{{m}}\uBD84 {{s}}\uCD08",{m:r,s}):r>0?So(Dt.t("customers.duration.min",{m:r,defaultValue:"{{m}}\uBD84"}),"{{m}}\uBD84",{m:r}):So(Dt.t("customers.duration.sec",{s,defaultValue:"{{s}}\uCD08"}),"{{s}}\uCD08",{s})}function v5(e,n){const a=[],r=new Set;for(const s of e){const i=n(s);r.has(i)||(r.add(i),a.push({key:i,value:s,pinned:!1}))}return a}function x5(e,n){return e.map(a=>a.key===n?{...a,pinned:!a.pinned}:a)}function _5(e,n){return e.filter(a=>a.key!==n)}function w5(e,n,a){const r=e.filter(u=>u.pinned),s=new Set(r.map(u=>u.key)),i=e.length-r.length,l=[],c=new Set(s);for(const u of n){if(l.length>=i)break;const p=a(u);c.has(p)||(c.add(p),l.push({key:p,value:u,pinned:!1}))}const d=[...l];return e.map(u=>u.pinned?u:d.shift()).filter(u=>u!==void 0)}function A5(e){return e.map(n=>n.value)}function k5(e){const{category:n={},isSelected:a=!1,onClick:r}=e||{},s=n?.key?` icon-grid-menu__button--${n.key}`:"",i=o.useId();return t.jsxs("div",{className:`icon-grid-menu__button-wrapper${s}`,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":i,children:t.jsx(Ze,{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:i,className:"icon-grid-menu__button-label button-1",children:n.label})]})}function B5(e){const{categories:n=[],selected:a,onSelect:r,size:s="medium"}=e||{},i=a!==void 0,[l,c]=o.useState(()=>i?null:(n&&n[0]?.key)??null),d=i?a:l,u=o.useRef(r);o.useEffect(()=>{u.current=r});const p=o.useRef(!1),m=(n&&n[0]?.key)??null;o.useEffect(()=>{if(i||p.current||!m)return;p.current=!0;const f=l??m;l==null&&c(f),u.current?.(f)},[i,m]);const h=o.useCallback(f=>{const y=d===f?null:f;p.current=!0,i||c(y),r?.(y)},[d,i,r]);return t.jsx("div",{className:`icon-grid-menu icon-grid-menu--${s}`,children:(n||[]).map(f=>t.jsx(k5,{category:f,isSelected:d===f.key,onClick:()=>h(f.key)},f.key))})}function N5({subs:e=[],selected:n,onSelect:a,size:r="medium"}){const s=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(i=>t.jsx(ce,{htmlType:"button",size:s,type:"bar",label:i.label,selected:n===i.key,className:"choice-chips__button",onClick:()=>a?.(i.key)},i.key))})})}function E5({onTermsClick:e,onPrivacyClick:n,contact:a}={}){const r=a?.email??"support@ihab.co.kr",s=a?.tel??"031-380-3724",{t:i}=Ce.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:i("footer.lead",`\uC544\uC774\uD574\uBE0C\uB294 \uC18C\uB9AC\uB97C \uD1B5\uD574
|
|
1045
|
+
</html>`}const Xy=1e3;function Eo({getElements:e,paperW:n,paperH:a,fileName:r="",onPopupBlocked:s,header:i=""}){const{t:l}=Ce.useTranslation(),u=o.useCallback(()=>{Zy(e(),n,a,r,i)},[e,n,a,r,i]),d=o.useCallback(()=>{const p=e();if(p.length===0)return;const m=window.open("","_blank");if(!m){s?.();return}m.document.write(No(p,n,a,!1,r,i)),m.document.close()},[e,n,a,r,s,i]),c=o.useCallback(()=>{const p=e();if(p.length===0)return;const m=No(p,n,a,!1,r,i),h=new Blob([m],{type:"text/html;charset=utf-8"}),g=URL.createObjectURL(h),y=(r?Bo(r):"")||l("wordTable.printFileNameSingle","\uB2E8\uC5B4\uD45C"),C=Object.assign(document.createElement("a"),{href:g,download:`${y}.html`});document.body.appendChild(C),C.click(),document.body.removeChild(C),setTimeout(()=>URL.revokeObjectURL(g),Xy)},[e,n,a,r,i,l]);return{print:u,openNewWindow:d,downloadHtml:c}}function Pu(e,n){const{t:a}=Ce.useTranslation(),r=n?.paperBands===!0,[s,i]=o.useState("landscape"),[l,u]=o.useState(["\uC774\uBBF8\uC9C0","\uB2E8\uC5B4","\uD45C\uC900 \uBC1C\uC74C"]),[d,c]=o.useState("\uD45C\uC2DC"),[p,m]=o.useState(!0),[h,g]=o.useState(!0),[y,C]=o.useState(!0),[w,b]=o.useState(!0),[f,_]=o.useState(8),[v,k]=o.useState("right"),A=e.length,B=e.some(W=>(W.words??[]).length>1),x=e.some(W=>(W.words??[]).some(Z=>!!Z.colloquialLabel)),N=Math.min(f,Math.max(A,1)),D=o.useMemo(()=>mu(e,N),[e,N]),P=D.length>1,H=N,[M,z]=o.useState(!1);o.useEffect(()=>{let W=!1;if(!Xn()){z(!1);return}return Promise.all(e.flatMap(Z=>(Z.words??[]).map(U=>Js(U.label,U.homonum)))).then(Z=>{W||z(Z.some(Boolean))},()=>{}),()=>{W=!0}},[e]);const j=o.useMemo(()=>[wu(a,{hasImage:M,hasColloquial:x}),Au(a),...A>0?[Su(a,{hasPairs:B,itemCount:A})]:[],ku(a),...H>1?[Eu(a)]:[],...B?[Du(a)]:[],...r?[Bu(a),Nu(a)]:[]],[a,M,x,A,B,P,H,r]),S={...Lu(a,{contentTypes:l,orientation:s,showOutline:p,cutLine:d,showDivLine:w,showTopInfo:h,showBottomInfo:y}),...A>0?{[a(B?"wordTable.filter.itemsPerPagePair":"wordTable.filter.itemsPerPageWord")]:`${N}\uAC1C`}:{},...P?{[a("wordTable.filter.pageNumber","\uD398\uC774\uC9C0 \uBC88\uD638")]:Tu[v]}:{}},I=o.useCallback((W,Z)=>{$u(a,W,Z,{setContentTypes:u,setOrientation:i,setShowOutline:m,setCutLine:c,setShowDivLine:b,setShowTopInfo:g,setShowBottomInfo:C})||(Z===a("wordTable.filter.itemsPerPagePair","\uD398\uC774\uC9C0\uB2F9 \uB300\uB9BD\uC30D \uC218")||Z===a("wordTable.filter.itemsPerPageWord","\uD398\uC774\uC9C0\uB2F9 \uB2E8\uC5B4 \uC218")?_(ju(parseInt(W),A)):Z===a("wordTable.filter.pageNumber","\uD398\uC774\uC9C0 \uBC88\uD638")&&k(Mu(W)))},[a,A]);return{settings:{orientation:s,contentTypes:l,cutLine:d,showOutline:p,showDivLine:w,count:H,showTopInfo:h,showBottomInfo:y},filterSections:j,filterSelected:S,handleSelect:I,pages:D,isPaginated:P,pageNumberPosition:v}}function Jy({items:e,words:n,title:a,subtitle:r,emptyText:s,buttons:i,renderButtons:l,renderFooter:u,footerClassName:d,footerLayout:c,printFileName:p,showSettings:m,autoPrint:h,className:g,onClose:y,scoring:C=!1,onScoreChange:w,printHeader:b,brand:f,code:_,beforeClose:v}){const{t:k}=Ce.useTranslation(),A=o.useMemo(()=>Array.isArray(e)?e:(Array.isArray(n)?n:[]).filter(te=>typeof te=="string"&&te.length>0).map((te,re)=>({id:`${te}-${re}`,words:[{label:te}]})),[e,n]),{settings:B,filterSections:x,filterSelected:N,handleSelect:D,pages:P,isPaginated:H,pageNumberPosition:M}=Pu(A,{paperBands:!!f?.show}),z=o.useMemo(()=>pu(P.map(te=>te.length)),[P]),[j,S]=o.useState({}),I=o.useCallback((te,re)=>{S(V=>({...V,[rr(te)]:uu(V[rr(te)]??null,re)}))},[]),W=o.useRef(w);o.useEffect(()=>{W.current=w});const Z=o.useRef(j);o.useEffect(()=>{Z.current!==j&&(Z.current=j,W.current?.(wo(j)))},[j]);const U=o.useMemo(()=>wo(j),[j]),q=o.useRef(null),{toastMessage:K,toastKey:L,showWarning:E,clearToast:F}=ll("warning"),R=o.useRef([]),O=o.useCallback(()=>H?R.current.filter(te=>te!==null):q.current?[q.current]:[],[H]),{print:$,openNewWindow:Y}=Eo({getElements:O,paperW:ia[B.orientation].width,paperH:ia[B.orientation].height,fileName:p??"",header:b??"",onPopupBlocked:()=>E(k("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."))}),Q=o.useMemo(()=>u?void 0:l?l({print:$,openNewWindow:Y}):p?[{label:k("wordTable.openNewWindow","\uC0C8 \uCC3D\uC73C\uB85C \uBCF4\uAE30"),variant:"default",onClick:()=>Y()},{label:k("wordTable.print","\uC778\uC1C4\uD558\uAE30"),variant:"default",onClick:()=>$()},...i??[]]:i,[u,l,p,i,k,$,Y]),X=o.useMemo(()=>u?u({print:$,openNewWindow:Y}):void 0,[u,$,Y]),ce=o.useRef(!1),xe=o.useRef($);return o.useEffect(()=>{xe.current=$},[$]),o.useEffect(()=>{if(!h||ce.current)return;const te=window.setTimeout(()=>{ce.current=!0,xe.current()},100);return()=>window.clearTimeout(te)},[h]),t.jsxs(Tn,{title:a??k("keyWords.title","\uC8FC\uC694 \uB2E8\uC5B4"),subtitle:r,size:"large",className:Ee("word-table-popup",g),buttons:Q,footer:X,footerClassName:d,footerLayout:c,beforeClose:v,onClose:y,children:[A.length>0?t.jsxs("div",{className:"word-table-popup__body",children:[m&&t.jsx(ko,{sections:x,selected:N,onSelect:D}),H?t.jsx("div",{className:"word-table-popup__pages",children:P.map((te,re)=>t.jsx(la,{items:te,orientation:B.orientation,contentTypes:B.contentTypes,cutLine:B.cutLine,showOutline:B.showOutline,showDivLine:B.showDivLine,count:B.count,contentRef:V=>{R.current[re]=V},pageNumber:{current:re+1,total:P.length},pageNumberPosition:M,brand:f&&{...f,top:B.showTopInfo,bottom:B.showBottomInfo},code:_,scoring:C,scoreIndexOffset:z[re],marks:U,onMarkClick:I},re))}):t.jsx("div",{className:"word-table-popup__table",children:t.jsx(la,{items:A,orientation:B.orientation,contentTypes:B.contentTypes,cutLine:B.cutLine,showOutline:B.showOutline,showDivLine:B.showDivLine,count:B.count,contentRef:q,fitHeight:!0,scoring:C,marks:U,onMarkClick:I,brand:f&&{...f,top:B.showTopInfo,bottom:B.showBottomInfo},code:_})})]}):t.jsx("p",{className:"word-table-popup__empty body-3",children:s??k("keyWords.empty","\uCD94\uCD9C\uB41C \uC8FC\uC694 \uB2E8\uC5B4\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4.")}),t.jsx(ra,{message:K,position:"top",onClose:F},L)]})}const Qy=new Set(["x","triangle"]);function e5(e,n){const a=[];for(let r=0;r<e.length;r++){const s=n[String(r)];s&&Qy.has(s)&&a.push(e[r])}return a}const t5=/\s*(?:(\d+)차\s*)?복습\s*\d{2}\.\d{2}$/;function Iu(e){const n=e.name.trim(),a=e.reviewRound;if(typeof a=="number"&&Number.isFinite(a)&&a>=0){const i=Math.floor(a);if(i===0)return{\uBC14\uD0D5:n,\uD68C\uCC28:1};const l=(i===1?/\s*복습\s*\d{2}\.\d{2}$/:new RegExp(`(?:^|\\s)${i}\uCC28\\s*\uBCF5\uC2B5\\s*\\d{2}\\.\\d{2}$`)).exec(n);return{\uBC14\uD0D5:l?n.slice(0,l.index).trim():n,\uD68C\uCC28:i+1}}let r=n,s=1;for(;;){const i=t5.exec(r);if(!i)break;s=Math.max(s,(i[1]?Number(i[1]):1)+1),r=r.slice(0,i.index).trim()}return{\uBC14\uD0D5:r,\uD68C\uCC28:s}}function n5(e,n){const[,a,r]=Ir(n).split("-"),s=`${a}.${r}`,{\uBC14\uD0D5:i,\uD68C\uCC28:l}=Iu(typeof e=="string"?{name:e}:e),u=l>=2?`${l}\uCC28 `:"";return`${i||"\uB2E8\uC5B4\uD45C"} ${u}\uBCF5\uC2B5 ${s}`}function a5(e){return{reviewOf:e.reviewOf??e.id??void 0,reviewRound:Iu(e).\uD68C\uCC28}}function r5(e,n){const a={};for(const[r,s]of Object.entries(n)){if(s!=="o"&&s!=="triangle"&&s!=="x")continue;const i=Number(r),l=e[i];l&&(a[r]=l)}return a}function o5(e){return e.map(n=>n.label).join(" / ")}function s5(e){return e.map(n=>n.homonum!=null?`${n.label}#${n.homonum}`:n.label).join(" / ")}function Fu(e){return e.split(" / ").map(n=>n.replace(/#\d+$/,"")).join(" / ")}function i5(e,n,a){const r=ci(a);return[e.trim(),r,n.trim()].filter(Boolean).join(" \xB7 ")}function Ou(e,n,a){return a===0?0:(e+n*.5)/a}function l5(e){const n=new Map,a=[...e].sort((s,i)=>s.scoredAt.localeCompare(i.scoredAt));for(const s of a)for(const[i,l]of Object.entries(s.marks)){const u=s.labels?.[i];if(!u)continue;const d=n.get(u)??{o:0,triangle:0,x:0,latest:l,latestAt:s.scoredAt};if(l==="o")d.o++;else if(l==="triangle")d.triangle++;else if(l==="x")d.x++;else continue;d.latest=l,d.latestAt=s.scoredAt,n.set(u,d)}const r=[];for(const[s,i]of n){const l=i.o+i.triangle+i.x;r.push({label:Fu(s),key:s,tried:l,o:i.o,triangle:i.triangle,x:i.x,rate:Ou(i.o,i.triangle,l),latest:i.latest,latestAt:i.latestAt})}return r.sort((s,i)=>s.rate-i.rate||i.tried-s.tried||aa(s.label,i.label)||aa(s.key??s.label,i.key??i.label)),r}function u5(e){const n=new Map;for(const r of e){const s=r.tableId??`name:${r.tableName}`,i=n.get(s)??{tableName:r.tableName,tableId:r.tableId,rows:[]};i.rows.push(r),n.set(s,i)}const a=[];for(const r of n.values()){const s=u=>Object.values(u.marks).filter(d=>d==="o"||d==="triangle"||d==="x").length,i=r.rows.filter(u=>s(u)>0).sort((u,d)=>u.scoredAt.localeCompare(d.scoredAt));if(i.length===0)continue;const l=i.map(u=>{const d=Object.values(u.marks),c=d.filter(m=>m==="o").length,p=d.filter(m=>m==="triangle").length;return Ou(c,p,s(u))});a.push({tableName:r.tableName,tableId:r.tableId,rates:l,times:i.map(u=>u.scoredAt),delta:l.length>=2?l[l.length-1]-l[0]:null})}return a.sort((r,s)=>(s.times[s.times.length-1]??"").localeCompare(r.times[r.times.length-1]??"")),a}function c5(e,n=8){return e.filter(a=>a.latest!=="o").slice(0,n)}function d5(e,n){if(e==null||n==null||e===""||n==="")return 0;if(typeof e=="number"&&typeof n=="number")return e-n;const a=String(e),r=String(n);return+(a>r)-+(a<r)}function p5(e){const n=new Map;let a=0,r=0;const s=e.map((l,u)=>({r:l,\uC790\uB9AC:u})).sort((l,u)=>l.r.answeredAt.localeCompare(u.r.answeredAt)||d5(l.r.id,u.r.id)||l.\uC790\uB9AC-u.\uC790\uB9AC).map(l=>l.r);for(const l of s){if(l.isCorrect==null)continue;const u=l.itemTitle?.trim();if(!u){r++;continue}a++;const d=l.itemId?.trim()||u,c=`${l.trainingType}|${d}`,p=n.get(c)??{trainingType:l.trainingType,itemId:d,title:u,tried:0,wrong:0,latestCorrect:l.isCorrect,latestAt:l.answeredAt,lastSelected:l.selected,setIds:[]};if(p.tried++,l.isCorrect||p.wrong++,p.title=u,p.latestCorrect=l.isCorrect,p.latestAt=l.answeredAt,p.lastSelected=l.selected,l.setId){const m=p.setIds.indexOf(l.setId);m>0&&p.setIds.splice(m,1),m!==0&&p.setIds.unshift(l.setId)}n.set(c,p)}const i=[...n.entries()].map(([l,u])=>({key:l,trainingType:u.trainingType,itemId:u.itemId,title:u.title,tried:u.tried,wrong:u.wrong,rate:u.tried===0?0:(u.tried-u.wrong)/u.tried,latestCorrect:u.latestCorrect,latestAt:u.latestAt,lastSelected:u.lastSelected,setIds:u.setIds}));return i.sort((l,u)=>l.rate-u.rate||u.tried-l.tried||aa(l.title,u.title)),{items:i,counted:a,skippedNoTitle:r}}function m5(e,n=8){return e.filter(a=>!a.latestCorrect).slice(0,n)}function h5(e){const n=new Map;for(const r of e){const s=n.get(r.trainingType)??[];s.push(r),n.set(r.trainingType,s)}const a=[...n.entries()].map(([r,s])=>({trainingType:r,items:s,pending:s.filter(i=>!i.latestCorrect).length}));return a.sort((r,s)=>s.pending-r.pending||r.trainingType.localeCompare(s.trainingType)),a}const Do=["LISTEN_IN_NOISE","SHORT_STORY","LONG_STORY","ORDERING_SENTENCE"];function C5(e){const n=new Map;let a=0;for(const i of e){if(i.latestCorrect)continue;const l=i.setIds[0];if(!l){a++;continue}const u=`${i.trainingType}|${l}`,d=n.get(u)??{setId:l,trainingType:i.trainingType,pending:0};d.pending++,n.set(u,d)}const r=(i,l)=>l.pending-i.pending||i.trainingType.localeCompare(l.trainingType)||i.setId.localeCompare(l.setId),s=[...n.values()];return{sentence:s.filter(i=>Do.includes(i.trainingType)).sort(r),word:s.filter(i=>!Do.includes(i.trainingType)).sort(r),noSet:a}}function f5(e,n,a=5){const r=new Set(n);if(r.size===0)return[];const s=[];for(const i of e){const l=new Set,u=[];for(const d of i.cellLabels)r.has(d)&&!l.has(d)&&(l.add(d),u.push(d));u.length!==0&&s.push({id:i.id,name:i.name,kind:i.kind,covered:u,totalCells:i.cellLabels.length})}return s.sort((i,l)=>l.covered.length-i.covered.length||i.totalCells-l.totalCells||aa(i.name,l.name)),s.slice(0,Math.max(0,a))}function g5(e,n){const a=new Set(e.flatMap(r=>r.covered));return n.filter(r=>!a.has(r))}function b5(e,n){const a=new Map;for(const s of e)for(const i of s.cells){const l=s.labelOf(i);a.has(l)||a.set(l,i)}const r=[];for(const s of n){const i=a.get(s);i!==void 0&&r.push(i)}return r}function So(e,n,a){return typeof e=="string"&&e?e:n.replace(/\{\{(\w+)\}\}/g,(r,s)=>String(a[s]))}function y5(e,n){const a=Number.isFinite(e)?Math.round(e):0;if(!a||a<=0)return"-";const r=Math.floor(a/60),s=a%60;return n?n(r,s):r>0&&s>0?So(Dt.t("customers.duration.minSec",{m:r,s,defaultValue:"{{m}}\uBD84 {{s}}\uCD08"}),"{{m}}\uBD84 {{s}}\uCD08",{m:r,s}):r>0?So(Dt.t("customers.duration.min",{m:r,defaultValue:"{{m}}\uBD84"}),"{{m}}\uBD84",{m:r}):So(Dt.t("customers.duration.sec",{s,defaultValue:"{{s}}\uCD08"}),"{{s}}\uCD08",{s})}function v5(e,n){const a=[],r=new Set;for(const s of e){const i=n(s);r.has(i)||(r.add(i),a.push({key:i,value:s,pinned:!1}))}return a}function x5(e,n){return e.map(a=>a.key===n?{...a,pinned:!a.pinned}:a)}function _5(e,n){return e.filter(a=>a.key!==n)}function w5(e,n,a){const r=e.filter(c=>c.pinned),s=new Set(r.map(c=>c.key)),i=e.length-r.length,l=[],u=new Set(s);for(const c of n){if(l.length>=i)break;const p=a(c);u.has(p)||(u.add(p),l.push({key:p,value:c,pinned:!1}))}const d=[...l];return e.map(c=>c.pinned?c:d.shift()).filter(c=>c!==void 0)}function A5(e){return e.map(n=>n.value)}function k5(e){const{category:n={},isSelected:a=!1,onClick:r}=e||{},s=n?.key?` icon-grid-menu__button--${n.key}`:"",i=o.useId();return t.jsxs("div",{className:`icon-grid-menu__button-wrapper${s}`,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":i,children:t.jsx(Ze,{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:i,className:"icon-grid-menu__button-label button-1",children:n.label})]})}function B5(e){const{categories:n=[],selected:a,onSelect:r,size:s="medium"}=e||{},i=a!==void 0,[l,u]=o.useState(()=>i?null:(n&&n[0]?.key)??null),d=i?a:l,c=o.useRef(r);o.useEffect(()=>{c.current=r});const p=o.useRef(!1),m=(n&&n[0]?.key)??null;o.useEffect(()=>{if(i||p.current||!m)return;p.current=!0;const g=l??m;l==null&&u(g),c.current?.(g)},[i,m]);const h=o.useCallback(g=>{const y=d===g?null:g;p.current=!0,i||u(y),r?.(y)},[d,i,r]);return t.jsx("div",{className:`icon-grid-menu icon-grid-menu--${s}`,children:(n||[]).map(g=>t.jsx(k5,{category:g,isSelected:d===g.key,onClick:()=>h(g.key)},g.key))})}function N5({subs:e=[],selected:n,onSelect:a,size:r="medium"}){const s=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(i=>t.jsx(le,{htmlType:"button",size:s,type:"bar",label:i.label,selected:n===i.key,className:"choice-chips__button",onClick:()=>a?.(i.key)},i.key))})})}function E5({onTermsClick:e,onPrivacyClick:n,contact:a}={}){const r=a?.email??"support@ihab.co.kr",s=a?.tel??"031-380-3724",{t:i}=Ce.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:i("footer.lead",`\uC544\uC774\uD574\uBE0C\uB294 \uC18C\uB9AC\uB97C \uD1B5\uD574
|
|
1046
1046
|
\uC2E0\uB8B0\uB97C \uC313\uACE0
|
|
1047
1047
|
\uD68C\uBCF5\uC744 \uB3D5\uC2B5\uB2C8\uB2E4.`).split(`
|
|
1048
|
-
`).map((l,c,d)=>t.jsxs(o.Fragment,{children:[l,c<d.length-1&&t.jsx("br",{})]},c))})}),t.jsxs("div",{className:"site-footer__links",children:[t.jsxs("div",{className:"site-footer__column",children:[t.jsx("div",{className:"site-footer__column-title footer-title",children:i("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:i("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:i("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:i("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:i("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:i("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:i("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:i("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:i("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:i("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:ro,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:i("footer.ceo","\uB300\uD45C")}),t.jsx("span",{className:"footer-meta caption-1",children:i("footer.ceoName","\uD55C\uC9C0\uD61C")})]}),t.jsxs("div",{children:[t.jsx("span",{className:"footer-title",children:i("footer.address","\uC8FC\uC18C")}),t.jsx("span",{className:"footer-meta caption-1",children:i("footer.addressValue","\uAC15\uC6D0\uB3C4 \uCD98\uCC9C\uC2DC \uC2DC\uCCAD\uAE38 32 \uD574\uCC2C\uBE4C\uB529 3\uCE35 302\uD638")})]}),t.jsxs("div",{children:[t.jsx("span",{className:"footer-title",children:i("footer.support","\uACE0\uAC1D\uC13C\uD130")}),t.jsxs("span",{className:"footer-meta caption-1",children:[r," \xA0 ",s]})]})]})]}),t.jsx("div",{className:"site-footer__copyright footer-copyright caption-1",children:"\xA9 IHAB, Inc. All rights reserved."})]})})}function D5({logo:e,logoAlt:n="",logoHref:a,links:r=[],actions:s,className:i,containerClassName:l,renderLink:c,menuLabel:d}){const{t:u}=Ce.useTranslation(),p=d??{open:u("header.menuOpen","\uBA54\uB274 \uC5F4\uAE30"),close:u("header.menuClose","\uBA54\uB274 \uB2EB\uAE30")},[m,h]=o.useState(!1),f=o.useId(),y=o.useRef(null);o.useEffect(()=>{if(!m)return;const b=zn(()=>{const v=document.getElementById(f);v&&v.contains(document.activeElement)&&y.current?.focus(),h(!1)}),g=typeof window<"u"&&window.matchMedia?window.matchMedia("(min-width: 961px)"):null,_=v=>{v.matches&&h(!1)};return g&&(g.matches&&h(!1),g.addEventListener?.("change",_)),()=>{b(),g?.removeEventListener?.("change",_)}},[m,f]);const C=l?`${l} landing-header__inner`:"landing-header__inner",w=(b,g)=>c?c(b,{onClick:g}):t.jsx("a",{href:b.href,onClick:g,"aria-current":b.current?"page":void 0,children:b.label});return t.jsxs("header",{className:i?`landing-header ${i}`:"landing-header",children:[t.jsxs("div",{className:C,children:[e!=null&&(()=>{const b=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:b}):t.jsx("div",{className:"landing-header__brand",children:b})})(),r.length>0&&t.jsx("nav",{className:"landing-header__links",children:r.map((b,g)=>t.jsx("span",{children:w(b)},`${g}:${b.href}`))}),t.jsxs("div",{className:"landing-header__actions",children:[s,r.length>0&&t.jsx("button",{ref:y,type:"button",onClick:()=>h(b=>!b),"aria-expanded":m,"aria-controls":f,"aria-label":m?p.close:p.open,className:m?"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:f,hidden:!m,className:"landing-header__drawer",children:t.jsx("div",{className:l??void 0,children:r.map((b,g)=>t.jsx("span",{className:"landing-header__drawer-item",children:w(b,()=>h(!1))},`${g}:${b.href}`))})})]})}function S5({children:e,action:n,onClick:a,className:r}){const s=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:s,onClick:a,...sc(a),children:[t.jsx("div",{className:"bottom-sticky__content",children:e}),n]})})}const ua=9,j5=e=>Math.round(Math.min(ua,Math.max(0,e))/ua*100),T5=e=>e/100*ua,La=2,Hc=.1,M5=e=>Math.min(La,Math.max(0,e)),L5=.1,$5=e=>Math.round(e*1e6)/1e6;function $a(e){const{noiseRatio:n}=e;if(typeof n=="number"&&Number.isFinite(n))return M5(n);const a=Math.min(ua,Math.max(0,Number(e.level)||0))/ua,r=Number(e.mainVolume);return r>0?a>0?$5(Math.min(La,Math.max(L5,a/r))):0:1}const zc=e=>Math.min(1,Math.max(0,Number(e.mainVolume)||0));function Vc(e){return zc(e)}function jo(e){return zc(e)*$a(e)}function To(e,n=Us()){const a=Number.isFinite(n)&&n>0?n:1;return Math.min(1,jo(e)/a)}function Ra(e,n){const a={...e,...n??{}};return n&&"level"in n&&typeof n.noiseRatio!="number"&&(a.noiseRatio=$a({level:a.level,mainVolume:a.mainVolume})),a}const Pa={enabled:!0,type:"defaultNoise",level:4.5,noiseRatio:1,speed:1,mainVolume:1,mainSpeed:1},Mo=o.createContext(null);function ir(){return o.useContext(Mo)}const Lo=e=>`${J0()}/${e}`,Wc=e=>Array.from({length:10},(n,a)=>Lo(`${e}-${String(a+1).padStart(2,"0")}.mp3`)),lr={get defaultNoise(){return Lo("noise1.mp3")},get street(){return Wc("noise2")},get restaurant(){return Wc("noise3")},get buzz(){return Lo("noise4.mp3")}};function R5(e){const n=Math.floor(Math.random()*10);switch(e){case"defaultNoise":return lr.defaultNoise;case"street":return lr.street[n];case"restaurant":return lr.restaurant[n];case"buzz":return lr.buzz;default:return null}}function P5({noisePlayer:e,audioRef:n,playbackStateRef:a}){const r=o.useRef(e?.registerAnalyser);r.current=e?.registerAnalyser;const s=o.useRef(null),[i,l]=o.useState(null),c=o.useRef(null),d=o.useRef(null),u=o.useRef(null),p=o.useRef(null),m=o.useRef(0),h=o.useRef(null),f=o.useCallback(()=>{p.current!==null&&(cancelAnimationFrame(p.current),p.current=null),h.current!==null&&(clearTimeout(h.current),h.current=null)},[]),y=o.useCallback((_,v=250)=>{const k=s.current;if(!k)return;const A=d.current;if(A){d.current=null;try{k.pause()}catch{}k.src=A,k.load()}if(!k.src)return;m.current+=1,f();try{Tr(),Oa(k).then(D=>{if(s.current===k)try{r.current?.("noise",D)}catch{}})}catch{}const B=k.paused?0:Ha(k);k.paused&&Sn(k,0),k.play().catch(()=>{});const x=performance.now(),N=()=>{const D=Math.min(1,(performance.now()-x)/v);try{Sn(k,B+(_-B)*D)}catch{}D<1?p.current=requestAnimationFrame(N):p.current=null};p.current=requestAnimationFrame(N)},[f]),C=o.useCallback((_=250,v)=>{const k=s.current;if(!k||k.paused){v?.();return}const A=++m.current;f();const B=performance.now(),x=Ha(k),N=()=>{const D=Math.min(1,(performance.now()-B)/_);try{Sn(k,x*(1-D))}catch{}if(D<1)p.current=requestAnimationFrame(N);else{p.current=null,h.current!==null&&(clearTimeout(h.current),h.current=null);try{k.pause()}catch{}v?.()}};p.current=requestAnimationFrame(N),h.current=setTimeout(()=>{if(h.current=null,m.current===A){p.current!==null&&(cancelAnimationFrame(p.current),p.current=null);try{k.paused||(Sn(k,0),k.pause(),v?.())}catch{}}},_+150)},[f]);o.useEffect(()=>{const _=document.createElement("audio");return _.loop=!0,_.crossOrigin="anonymous",s.current=_,()=>{f();try{_.pause(),_.src=""}catch{}s.current=null,c.current=null,d.current=null}},[f]);const w=e?To(e.settings):0,b=!!e?.settings.enabled&&w>0;o.useEffect(()=>{if(!b)return;let _=0;const v=setInterval(()=>{const k=s.current;if(!k||k.paused){_=0;return}const A=n.current;if(A&&!A.paused&&!A.ended||a.current==="playing"){_=0;return}_+=1,_>=2&&(_=0,C())},400);return()=>clearInterval(v)},[C,b,n,a]),o.useEffect(()=>{const _=()=>{const v=s.current;if(document.hidden){if(v&&!v.paused){f();try{v.pause()}catch{}}return}if(!v||!v.paused)return;const k=n.current,A=!!k&&!k.paused&&!k.ended||a.current==="playing",B=u.current;A&&B?.enabled&&B.volume>0&&y(B.volume)};return document.addEventListener("visibilitychange",_),()=>document.removeEventListener("visibilitychange",_)},[f,y,n,a]),o.useEffect(()=>{u.current=e?{enabled:e.settings.enabled,volume:w,type:e.settings.type}:null},[e,e?.settings.enabled,w,e?.settings.type]);const g=o.useRef(null);return o.useEffect(()=>()=>{g.current?.(),g.current=null},[]),o.useEffect(()=>{const _=e?.settings,v=s.current;if(!v)return;const k=_?To(_):0;if(!_||!_.enabled||k===0){C();return}if(c.current!==_.type){const A=R5(_.type);A&&(c.current=_.type,l(A),d.current=A,C(150,()=>{if(d.current!==A)return;d.current=null,v.src=A,v.load();const B=n.current;if(B&&!B.paused){g.current?.();const x=()=>{v.removeEventListener("canplay",x),g.current===N&&(g.current=null);const D=n.current,P=u.current;D&&!D.paused&&!D.ended&&P?.enabled&&P.volume>0&&y(P.volume)},N=()=>v.removeEventListener("canplay",x);g.current=N,v.addEventListener("canplay",x)}}))}else{const A=n.current,B=!!A&&!A.paused&&!A.ended||a.current==="playing";if(B&&d.current)y(k);else if(B&&v.paused&&v.src)y(k);else if(!v.paused)if(!B)C();else{f();const x=Ha(v),N=performance.now(),D=()=>{const P=Math.min(1,(performance.now()-N)/150);try{Sn(v,x+(k-x)*P)}catch{}P<1?p.current=requestAnimationFrame(D):p.current=null};p.current=requestAnimationFrame(D)}}},[e?.settings,e?.settings.enabled,w,e?.settings.type,f,y,C,n,a,u]),o.useEffect(()=>{const _=s.current;if(_)try{_.playbackRate=Math.min(1.25,Math.max(.75,e?.settings.speed??1))}catch{}},[e?.settings.speed]),{noiseAudioRef:s,activeNoiseUrl:i,noiseSettingsRef:u,cancelNoiseFade:f,fadeInNoise:y,fadeOutNoise:C}}function I5({ttsText:e,playbackRate:n,mainVolume:a,fillRef:r,waveProgressRef:s,setProgress:i,setPlaybackState:l,setStateLocal:c,fadeInNoise:d,fadeOutNoise:u,noiseSettingsRef:p,onDoneRef:m,handleEndRef:h}){const f=o.useRef(null),y=o.useRef(0),C=o.useRef(null),w=o.useRef(0),b=o.useRef(!1);o.useEffect(()=>()=>{w.current++;try{if(C.current&&(cancelAnimationFrame(C.current),C.current=null),b.current&&window.speechSynthesis){try{window.speechSynthesis.cancel()}catch{}b.current=!1}}catch{}},[]);const g=(k,A=1)=>{try{const B=(k||"").trim().split(/\s+/).filter(Boolean).length||Math.max(1,(k||"").length);return Math.max(700,Math.round(B*300/Math.max(.25,A)))}catch{return 1200}},_=o.useCallback(k=>{if(typeof window>"u"||!window.speechSynthesis){try{typeof m.current=="function"&&m.current(!1)}catch{}return}const A=window.speechSynthesis,B=++w.current;try{try{A.cancel()}catch{}const x=k??e,N=Array.isArray(x)?x.filter(j=>!!j):[x||""];N.length===0&&N.push("");const D=Math.max(.3,Math.min(3,n));y.current=N.reduce((j,S)=>j+g(S,D||1),0),f.current=performance.now(),i(0),l("playing"),c("playMode");const P=p.current;P?.enabled&&(P?.volume??0)>0&&d(P.volume);const H=()=>{try{const j=f.current||performance.now(),S=performance.now()-j,I=y.current||1200,W=Math.min(1,S/I);try{r.current&&(r.current.style.left=`${W*100}%`),s.current&&s.current.style.setProperty("--progress",String(W))}catch{}W<1&&(C.current=requestAnimationFrame(H))}catch{}},M=()=>{if(B===w.current)try{C.current&&(cancelAnimationFrame(C.current),C.current=null),i(1),l("stopped");try{h.current?.()}catch{try{typeof m.current=="function"&&m.current(!0)}catch{}}}catch{}},z=j=>{const S=new SpeechSynthesisUtterance(N[j]);try{S.rate=D}catch{}try{S.volume=Math.max(0,Math.min(1,a))}catch{}S.onend=()=>{if(B===w.current){if(j<N.length-1){try{z(j+1)}catch{M()}return}M()}},S.onerror=()=>{M()},S.onstart=()=>{if(!(j>0))try{C.current&&(cancelAnimationFrame(C.current),C.current=null),C.current=requestAnimationFrame(H)}catch{}},b.current=!0,A.speak(S)};try{z(0)}catch{try{typeof m.current=="function"&&m.current(!0)}catch{}}}catch{try{typeof m.current=="function"&&m.current(!0)}catch{}}},[e,n,a,d,r,s,i,l,c,p,m,h]),v=o.useCallback(()=>{w.current++;try{if(window.speechSynthesis)try{window.speechSynthesis.cancel()}catch{}C.current&&(cancelAnimationFrame(C.current),C.current=null),u(),f.current=null}catch{}l("stopped"),c("active"),i(0)},[u,l,c,i]);return{startTTS:_,stopTTS:v}}async function F5(e,n,a){let r=null;try{const s=window.AudioContext||window.webkitAudioContext;r=new s;const i=await r.decodeAudioData(e.slice(0)),l=i.numberOfChannels>0?i.getChannelData(0):null;if(!l)return null;const c=a&&a>0?Math.min(l.length,Math.floor(a*i.sampleRate)):l.length,d=Math.max(n,c),u=Math.floor(d/n)||1;return new Array(n).fill(0).map((p,m)=>{const h=m*u,f=Math.min(h+u,d);let y=0;for(let C=h;C<f;C++){const w=Math.abs(l[C]);w>y&&(y=w)}return y})}catch{return null}finally{try{r?.close?.()}catch{}}}async function qc(e,n,a){try{const r=await fetch(e);if(r.ok===!1)return null;const s=await r.arrayBuffer();return await F5(s,n,a)}catch(r){try{const s=ni(r)}catch{}return null}}const Uc=45,O5=74,H5=2;function Ia(e){const n=Math.min(2,Math.max(0,Number(e)||0));return n<=1?n*45:45+(n-1)*29}function $o(e){return Ia(e)/45}const Gc=4;function z5(e){const{src:n,segments:a,progress:r=0,waveProgressRef:s,noiseSrc:i,noiseRatio:l=0,noiseSpeed:c=1,totalDuration:d=0,mainVolume:u=1,onReadyChange:p,showSoundWaveForm:m=!0}=e,h=o.useRef(null),f=o.useRef(null),[y,C]=o.useState(null),[w,b]=o.useState(!1),[g,_]=o.useState(null),[v,k]=o.useState(2),[A,B]=o.useState(0),[x,N]=o.useState(null),[D,P]=o.useState(!1),[H,M]=o.useState(!1),z=3,j=3,S=1,I=300,W=o.useRef(0),Z=o.useCallback(()=>{const oe=h.current,V=f&&f.current?f.current:oe?oe.closest(".audio-player__wave"):null,ae=V?V.getBoundingClientRect():oe?oe.getBoundingClientRect():null,ue=ae?ae.width:0,ge=ae?Math.max(100,ae.width):320,me=ae?ae.height:0,re=Math.max(S,Math.min(I,Math.floor((ge+j)/(z+j)))),he=re*z,_e=Math.max(0,re-1),Me=Math.max(0,_e>0?(ge-he)/_e:j);return{bars:re,gap:Me,height:me,width:ue}},[]),U=o.useRef(void 0),q=o.useRef(null),K=o.useCallback(async(oe,V,{quiet:ae=!1}={})=>{const ue=++W.current,ge=()=>W.current===ue;try{if(ae||b(!1),U.current=oe,!oe){ge()&&C(null);return}let me=V;if(!me)try{for(let _e=0;_e<4&&!(h.current||f.current);_e++)await new Promise(Me=>requestAnimationFrame(Me));await new Promise(_e=>requestAnimationFrame(_e));const he=Z();he.height>0&&B(he.height),me=he.bars,k(he.gap)}catch{me=120}q.current=me;const re=await qc(oe,me);if(!ge())return;if(!re){C(null),b(!1);return}C(re),_(me),b(!0)}catch{if(!ge())return;C(null),b(!1)}},[b,C,B,k,_,Z]);o.useEffect(()=>{const oe=f.current;if(!oe||typeof ResizeObserver>"u")return;let V=null;const ae=new ResizeObserver(()=>{V!==null&&cancelAnimationFrame(V),V=requestAnimationFrame(()=>{V=null;try{const ue=Z();if(ue.width<=0||(ue.height>0&&B(ue.height),q.current===null||ue.bars===q.current))return;const ge=U.current;k(ue.gap),ge?K(ge,ue.bars,{quiet:!0}).catch(()=>{}):q.current=ue.bars}catch{}})});return ae.observe(oe),()=>{ae.disconnect(),V!==null&&cancelAnimationFrame(V)}},[Z,K]),o.useEffect(()=>{const oe=a&&a[0]&&a[0].src||n||a&&a.length===1&&a[0]&&a[0].src;K(typeof oe=="string"?oe:void 0).catch(()=>{}),M(!1)},[n,a,K]),o.useEffect(()=>{let oe=!1;if(P(!1),!i||!g){N(null);return}const V=d>0?d*(c||1):void 0;return qc(i,g,V).then(ae=>{oe||(N(ae),ae||P(!0))}).catch(()=>{oe||(N(null),P(!0))}),()=>{oe=!0}},[i,g,d,c]);const L=Math.max(0,Math.min(1,u)),E=o.useMemo(()=>y&&y.length&&Math.max(...y)||1,[y]),F=g||40,R=o.useMemo(()=>Array.from({length:F}).map((oe,V)=>{const ae=y&&y[V]!=null?y[V]:null,ue=ae==null?null:Math.min(1,ae/E*L),ge=ue!=null&&A>0&&Ia(ue)<=Gc,me=ue==null?.15:ge?0:$o(ue),re=F>1?V/(F-1):0;return t.jsx("div",{className:ge?"audio-player__bar audio-player__bar--hidden":"audio-player__bar",style:{"--val":me,"--i":V,"--mix":re}},V)}),[F,y,E,L,A]),O={"--progress":String(Math.max(0,Math.min(1,r)))},$=i?Math.max(1,l):1,Y={"--bar-gap":`${v}px`,"--wave-h":`${Ia($)}px`,"--wave-h1":`${Uc}px`},Q=L*Math.max(0,l)/Us(),X=w&&(i?!!x||D:!0);o.useEffect(()=>{X&&M(!0)},[X]);const ie=H?w:X;o.useEffect(()=>{p?.(ie)},[ie,p]);const be=g||40,ne=o.useMemo(()=>Array.from({length:be}).map((oe,V)=>{const ae=x&&x[V]!=null?x[V]:null,ue=ae==null?0:ae/E*Q,ge=A>0&&Ia(ue)<=Gc,me=ge?0:$o(ue),re=be>1?V/(be-1):0;return t.jsx("div",{className:ge?"audio-player__bar audio-player__bar--hidden":"audio-player__bar",style:{"--val":me,"--i":V,"--mix":re}},V)}),[be,x,E,Q,A]);return t.jsxs("div",{className:"audio-player__wave",ref:f,style:Y,children:[i&&t.jsx("div",{className:`audio-player__wave-noise ${X?"is-ready":""}`,"aria-hidden":"true",children:ne}),m&&t.jsxs(t.Fragment,{children:[t.jsx("div",{className:`audio-player__wave-inner audio-player__wave-unplayed ${ie?"is-ready":""}`,ref:h,children:R}),t.jsx("div",{className:`audio-player__wave-inner audio-player__wave-played ${ie?"is-ready":""}`,ref:s,style:O,children:R})]})]})}const V5={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 Ro(e,n){return new Promise((a,r)=>{const s=document.createElement("audio");let i=!1;const l=()=>{try{s.src=""}catch{}},c=()=>{if(i)return;i=!0;const u=isFinite(s.duration)&&s.duration||0;l(),a(u)},d=u=>{i||(i=!0,l(),n.rejectOnError?r(new Error(u)):a(0))};s.addEventListener("loadedmetadata",c),s.addEventListener("error",()=>d("audio load failed")),setTimeout(()=>d("audio load timeout"),n.timeoutMs),s.src=e})}const W5=2e3;function Kc(e,n=W5){return new Promise(a=>{let r=!1;const s=()=>{r||(r=!0,a())};e.addEventListener("canplay",s,{once:!0}),e.addEventListener("error",s,{once:!0}),setTimeout(s,n)})}function q5({showSoundWaveForm:e,showNoiseWaveForm:n,timeoutMs:a=2500}){const r=o.useRef(!1),s=o.useRef([]),i=o.useCallback(d=>{if(r.current=d,!d||!s.current.length)return;const u=s.current;s.current=[];for(const p of u)p(!0)},[]),l=o.useCallback(()=>{r.current=!1},[]),c=o.useCallback(()=>!e&&!n||r.current?Promise.resolve(!0):new Promise(d=>{const u=m=>{clearTimeout(p),s.current=s.current.filter(h=>h!==u),d(m)},p=setTimeout(()=>u(!0),a);s.current.push(u)}),[e,n,a]);return o.useEffect(()=>()=>{const d=s.current;s.current=[];for(const u of d)u(!1)},[]),{onReadyChange:i,waitForReady:c,markNotReady:l}}function U5(){const e=o.useRef([]),n=o.useCallback(s=>(e.current.push(s),s),[]),a=o.useCallback(s=>{const i=new Set([...s].filter(Boolean));e.current=e.current.filter(l=>{if(i.has(l))return!0;try{URL.revokeObjectURL(l)}catch{}return!1})},[]),r=o.useCallback(()=>{a([])},[a]);return o.useEffect(()=>()=>{for(const s of e.current)try{URL.revokeObjectURL(s)}catch{}e.current=[]},[]),{track:n,keepOnly:a,revokeAll:r}}function G5({offsetY:e=8}={}){const n=o.useRef(null),[a,r]=o.useState(null),s=o.useCallback(()=>r(null),[]),i=o.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 o.useEffect(()=>{if(a)return document.addEventListener("mousedown",s),()=>document.removeEventListener("mousedown",s)},[a,s]),{ref:n,rect:a,show:i,hide:s}}function K5({currentTime:e,sources:n,index:a,audioDuration:r}){const s=a||0,i=Array.isArray(n)&&n.length>0?n[s]:void 0,l=i?i.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 Y5(e,n){if(!Array.isArray(e))return null;const a=n||0;return a<e.length-1?a+1:null}function Z5({ended:e,completedByEnd:n}){return!!e||!!n}function X5(e){return e.map((n,a)=>({src:n.src,label:String(a+1),color:void 0,duration:n.duration||0}))}function J5(e){return e.reduce((n,a)=>n+(a.duration||0),0)}function Q5(e,n,a){const r=Array.isArray(e)?e:e?[e]:[],s=[];for(const i of r)if(i){if(typeof i=="object"&&i!==null&&"src"in i&&i.src){const l=i;s.push({code:l.code??null,src:l.src});continue}if(typeof i=="string"&&(i.startsWith("http")||i.includes("/"))){s.push({code:null,src:i});continue}if(typeof i=="string"||typeof i=="number"){const l=String(i),c=a(l,n);c&&s.push({code:l,resolvedPath:c})}}return s}function e3(e){if(!e)return 0;const n=e.duration;if(Number.isFinite(n)&&n>0)return n;if(n===0)return 0;try{const a=e.seekable;if(a&&a.length>0){const r=a.end(a.length-1);if(Number.isFinite(r)&&r>0)return r}}catch{}return null}function t3({audioRef:e,fillRef:n,waveProgressRef:a,sourcesRef:r,currentIndexRef:s}){const i=o.useRef(null),l=o.useCallback(()=>{i.current!==null&&(cancelAnimationFrame(i.current),i.current=null)},[]),c=o.useCallback(()=>{if(i.current!==null)return;const u=()=>{try{const p=e.current,m=Array.isArray(r.current)?r.current[s.current||0]:void 0,h=m&&Number.isFinite(m.duration)&&(m.duration??0)>0?0:e3(p),f=n.current;if(h===null)try{f&&f.style.visibility!=="hidden"&&(f.style.visibility="hidden")}catch{}else{const y=K5({currentTime:p&&typeof p.currentTime=="number"?p.currentTime:0,sources:r.current,index:s.current,audioDuration:h});try{f&&(f.style.visibility&&(f.style.visibility=""),f.style.left=`${y*100}%`)}catch{}try{a.current?.style.setProperty("--progress",String(y))}catch{}}}catch{}i.current=requestAnimationFrame(u)};i.current=requestAnimationFrame(u)},[e,n,a,r,s]),d=o.useCallback(u=>{l();try{n.current&&(n.current.style.visibility="",n.current.style.left=`${u*100}%`)}catch{}try{a.current?.style.setProperty("--progress",String(u))}catch{}},[l,n,a]);return o.useEffect(()=>l,[l]),{start:c,stop:l,settleTo:d}}function Po({btnLabel:e,soundSrc:n,bucketPath:a,onDone:r,disabled:s=!1,ttsText:i=null,className:l,showSoundWaveForm:c=!0,showNoiseWaveForm:d=!0}){const{t:u}=Ce.useTranslation(),p=e,m=ir(),h=o.useRef(m?.registerAnalyser);o.useEffect(()=>{h.current=m?.registerAnalyser});const f=o.useRef(null),y=o.useRef(null),C=o.useRef(null),w=U5(),b=o.useRef(null),g=o.useRef(!1),_=o.useRef(0),v=o.useRef(null),{ref:k,rect:A,show:B,hide:x}=G5();o.useEffect(()=>()=>{h.current?.("main",null),h.current?.("noise",null)},[]);const[N,D]=o.useState(!1),[P,H]=o.useState("idle"),[M,z]=o.useState("stopped"),j=o.useRef("stopped");o.useEffect(()=>{j.current=M},[M]);const[S,I]=o.useState(0),[W,Z]=o.useState("active"),U=o.useRef(!1);o.useEffect(()=>{if(W!=="playMode"||!U.current)return;U.current=!1;const G=typeof document<"u"?document.activeElement:null;if(G&&G!==document.body)return;const se=C.current?.querySelectorAll("button")[1];try{se?.focus()}catch{}},[W]);const[q,K]=o.useState(null),[L,E]=o.useState(null),[F,R]=o.useState(0),[O,$]=o.useState(!1),[Y,Q]=o.useState(0),X=m?.playbackRate??1,ie=m?.mainVolume??1,be=m?jo(m.settings):0,ne=m?Vc(m.settings):ie,[oe,V]=o.useState("idle"),[ae,ue]=o.useState(""),[ge]=o.useState("top"),me=o.useRef(null),re=o.useRef(0),he=o.useRef(null),{start:_e,stop:Me,settleTo:Ue}=t3({audioRef:f,fillRef:y,waveProgressRef:he,sourcesRef:me,currentIndexRef:re}),{onReadyChange:Ie,waitForReady:de,markNotReady:Ae}=q5({showSoundWaveForm:c,showNoiseWaveForm:d}),Re=o.useRef(null),Pe=o.useRef(s),we=o.useRef(r),Se=o.useRef(null),Oe=o.useRef(!1),[Be,nt]=o.useState(!1),Ge=o.useCallback(G=>{Oe.current=G,nt(G)},[]),Xe=o.useRef(null),{activeNoiseUrl:De,noiseSettingsRef:je,fadeInNoise:ke,fadeOutNoise:$e}=P5({noisePlayer:m,audioRef:f,playbackStateRef:j}),{startTTS:We,stopTTS:ht}=I5({ttsText:i,playbackRate:X,mainVolume:ne,fillRef:y,waveProgressRef:he,setProgress:I,setPlaybackState:z,setStateLocal:Z,fadeInNoise:ke,fadeOutNoise:$e,noiseSettingsRef:je,onDoneRef:we,handleEndRef:Xe});o.useEffect(()=>{ct.current=ht});const wt=G=>{if(typeof window>"u"||!window.speechSynthesis){try{ue(u("training.ttsUnavailable","\uC774 \uAE30\uAE30\uC5D0\uC11C\uB294 \uC74C\uC131\uC744 \uB4E4\uB824\uC904 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4."))}catch{}We(G);return}kt("tts"),We(G)},Et=Array.isArray(n)?n.filter(Boolean):n?[n]:[],At=(!Et||Et.length===0)&&!!i,rt=Array.isArray(q)&&q.length>0?q:Array.isArray(L)&&L.length>0?L:null,Ye=Math.max(Array.isArray(rt)?rt.length:0,Et.length),at=o.useRef(!0);o.useEffect(()=>(at.current=!0,()=>{at.current=!1}),[]);const ot=o.useRef(0),qe=()=>{ot.current+=1,_.current+=1},ct=o.useRef(null),Ke=o.useRef(null),Ct=o.useRef(null),jt=o.useRef(null);jt.current||(jt.current=()=>{Ct.current=null;const G=f.current;if(Ke.current==="audio"&&G&&!G.paused){ot.current+=1,_.current+=1;try{G.pause()}catch{}at.current&&z("paused")}else if(Ke.current==="tts")try{ct.current?.()}catch{}});const kt=G=>{Ke.current=G,Ct.current=Xa(jt.current)},dt=()=>{Ct.current?.(),Ct.current=null};o.useEffect(()=>()=>{jt.current&&Ja(jt.current)},[]);const st=o.useCallback(async(G,se=3,le=50)=>{const ye=ot.current;for(let ve=0;ve<se;ve++){if(!at.current||ye!==ot.current)return!1;try{return kt("audio"),await G.play(),!0}catch(Te){if((Te instanceof Error||typeof Te=="object"&&Te&&"name"in Te?Te.name:void 0)==="AbortError"){if(ye!==ot.current)return!1;await new Promise(et=>setTimeout(et,le));continue}try{ue(u("training.audioFetchError","\uC0AC\uC6B4\uB4DC \uC18C\uC2A4\uB97C \uAC00\uC838\uC624\uC9C0 \uBABB\uD588\uC2B5\uB2C8\uB2E4."))}catch{}return!1}}try{ue(u("training.audioFetchError","\uC0AC\uC6B4\uB4DC \uC18C\uC2A4\uB97C \uAC00\uC838\uC624\uC9C0 \uBABB\uD588\uC2B5\uB2C8\uB2E4."))}catch{}return!1},[u]),He=o.useCallback(()=>{const G=f.current;if(!G)return;const se=()=>{z("playing"),Z("playMode"),$(!0),_e();try{Tr(),Oa(G).then(Te=>{if(at.current)try{h.current?.("main",Te)}catch{}})}catch{}const ve=je.current;ve?.enabled&&(ve?.volume??0)>0&&ke(ve.volume)},le=()=>{Z5({ended:!!G?.ended,completedByEnd:Oe.current})||(z("paused"),Me(),$e())},ye=()=>{try{const ve=me.current,Te=Y5(ve,re.current);if(Te!==null){re.current=Te,R(Te),$(!0);const et=ve?.[Te]&&ve[Te].src;if(et&&G){G.src=et,G.load(),st(G).catch(()=>{});return}}}catch{}z("stopped"),I(1);try{if(G)try{G.currentTime=0}catch{}}catch{}Me(),$(!1),$e();try{!Pe.current&&Xe.current&&Xe.current()}catch{}};return G.addEventListener("play",se),G.addEventListener("pause",le),G.addEventListener("ended",ye),()=>{try{G.removeEventListener("play",se),G.removeEventListener("pause",le),G.removeEventListener("ended",ye),Me()}catch{}}},[ke,$e,st,je,_e,Me]);o.useEffect(()=>He(),[He]),o.useEffect(()=>{Pe.current=s},[s]),o.useEffect(()=>{we.current=r},[r]),o.useEffect(()=>{if(s||W!=="active")return;const G=v.current;if(!G)return;let se=null;const le=requestAnimationFrame(()=>{try{const ye=G.getTotalLength();if(!ye)return;const ve=ye*.2;G.style.strokeDasharray=`${ye-ve} ${ve}`;const Te="triFlow_"+Math.random().toString(36).slice(2);se=document.createElement("style"),se.textContent=`@keyframes ${Te}{from{stroke-dashoffset:0}to{stroke-dashoffset:-${ye}}}`,document.head.appendChild(se),G.style.animation=`${Te} 2.4s linear infinite`}catch{}});return()=>{cancelAnimationFrame(le),se?.remove()}},[W,s]),o.useEffect(()=>{me.current=q},[q]),o.useEffect(()=>{re.current=F},[F]),o.useEffect(()=>{const G=C.current,se=b.current;if(!G||!se)return;let le=null;const ye=32,ve=60,Te=()=>{try{const ft=Array.from(G.querySelectorAll(":scope > .button"));let it=0;ft.forEach(Ne=>{if(Ne===se)return;const ze=Ne.getBoundingClientRect();it+=ze.width});const yt=G.getBoundingClientRect().width,Rt=Math.max(0,Math.floor(yt-it-8)),Lt=Ye;if(!Lt||Rt<=0){Array.from(se.children).forEach(Ne=>{try{Ne.style.width=""}catch{}});return}let nn=Math.floor(Rt/Lt);nn>ve&&(nn=ve),nn<ye&&(nn=Math.max(ye,Math.floor(Rt/Lt))),Array.from(se.querySelectorAll(".button")).forEach(Ne=>{try{Ne.style.width=`${nn}px`}catch{}})}catch{}},et=requestAnimationFrame(Te);try{le=new ResizeObserver(()=>{requestAnimationFrame(Te)}),le.observe(G),le.observe(se),window.addEventListener("resize",Te)}catch{}return()=>{try{cancelAnimationFrame(et)}catch{}try{le&&(le.disconnect(),le=null)}catch{}try{window.removeEventListener("resize",Te)}catch{}}},[q,L,Ye]),o.useEffect(()=>()=>{try{Re.current&&(clearTimeout(Re.current),Re.current=null),Se.current&&(clearTimeout(Se.current),Se.current=null)}catch{}},[]);const Qe=(G,se)=>{K(G),Q(se),Ae(),E(X5(G)),me.current=G},pt=async(G,se)=>{Ge(!1),g.current=!1,G.src=se,G.load(),await Kc(G),await de()!==!1&&(D(!1),await st(G),Z("playMode"),R(0),$(!0))},Ot=async(G,se=!1)=>{const le=f.current;D(!0),H("measuring_duration");try{const ye=await Ro(G,{timeoutMs:1e4,rejectOnError:!0});Qe([{src:G,objectUrl:null,duration:ye}],ye),H("ready"),se&&le&&await pt(le,G)}finally{g.current=!1,D(!1)}},Je=async(G,se=!1)=>{const le=f.current;D(!0),H("measuring_duration");try{const ye=await Promise.all(G.map(Te=>Ro(Te,{timeoutMs:1e4})));if(!at.current)return;const ve=G.map((Te,et)=>({src:Te,objectUrl:null,duration:ye[et]||0}));Qe(ve,J5(ve)),H("ready"),se&&le&&ve.length>0&&await pt(le,ve[0].src)}finally{g.current=!1,D(!1)}},Tt=async(G=!1,se=!0)=>{const le=f.current,ye=n?Array.isArray(n)?n:[n]:[];if(!ye||ye.length===0||!ye.some(Boolean))return!1;if(g.current)return null;g.current=!0,se&&D(!0),H("resolving");try{const ve=Q5(n,a,Vs),Te=[];let et=0;for(const ft of ve){let it=ft.src??null,yt=null;if(!it&&ft.resolvedPath){try{H("getting_signed_url"),it=await Ws(ft.resolvedPath)}catch{it=null}if(!at.current)return!1;if(!it)try{H("downloading");const Lt=await qs(ft.resolvedPath);if(!at.current)return!1;if(Lt){const nn=Lt instanceof Blob?Lt:new Blob([Lt]);yt=w.track(URL.createObjectURL(nn)),it=yt}}catch{H("error");try{ue(u("training.audioFetchError","\uC0AC\uC6B4\uB4DC \uC18C\uC2A4\uB97C \uAC00\uC838\uC624\uC9C0 \uBABB\uD588\uC2B5\uB2C8\uB2E4.")),Z("active")}catch{}}}if(!it)continue;let Rt=0;try{H("measuring_duration"),Rt=await Ro(it,{timeoutMs:3e3})}catch{Rt=0}if(!at.current){if(yt)try{URL.revokeObjectURL(yt)}catch{}for(const Lt of Te)if(Lt.objectUrl)try{URL.revokeObjectURL(Lt.objectUrl)}catch{}return!1}et+=Rt||0,Te.push({...ft,src:it,objectUrl:yt,duration:Rt})}if(Qe(Te,et),Te.length>0&&G&&le){const ft=Te[0];Ge(!1);try{w.keepOnly(Te.map(it=>it.objectUrl))}catch{}if(H("ready"),g.current=!1,ft.src&&le)try{if(le.src=ft.src,le.load(),await Kc(le),await de()===!1)return!1;se&&D(!1),le&&await st(le)}catch{se&&D(!1)}else se&&D(!1);Z("playMode"),R(0),$(!0)}return Te.length>0}finally{g.current=!1,se&&D(!1),H(ve=>ve==="ready"?"ready":"idle")}},Yt=async()=>{const G=f.current;if(!(!G&&!At)){if(At){const se=window.speechSynthesis;if(W==="active"){const le=Dr(),ye=Array.isArray(i)?i.filter(Boolean):i?[i]:[];if(le&&ye.length>0){Z("load"),D(!0),H("resolving"),g.current=!0;try{const ve=await Promise.all(ye.map(Te=>Promise.resolve(le(Te))));ve.length>1?await Je(ve,!0):await Ot(ve[0],!0)}catch{g.current=!1,D(!1),Z("active"),wt(ye.length>0?ye:void 0)}return}wt(ye.length>0?ye:void 0);return}if(W==="playMode"){const le=!!se&&(se.speaking||se.paused)&&!(G&&(G.currentSrc||G.getAttribute("src")));if(G&&!le){if(G.paused){if(Oe.current){await Mt();return}await st(G),z("playing")}else qe(),G.pause(),z("paused");return}try{if(se&&se.paused)try{kt("tts"),se.resume(),z("playing")}catch{}else try{se.pause(),z("paused")}catch{}}catch{}}return}if(W==="active"){if(s&&Array.isArray(me.current)&&me.current.length>0){const le=me.current[0];try{if(le.src&&G)try{G.src=le.src,G.load(),G&&await st(G)}catch{}Z("playMode"),R(0),$(!0);return}catch{}}Z("load");let se;try{se=await Tt(!0)}catch{se=!1}if(se===!1&&at.current){try{ue(u("training.audioFetchError","\uC0AC\uC6B4\uB4DC \uC18C\uC2A4\uB97C \uAC00\uC838\uC624\uC9C0 \uBABB\uD588\uC2B5\uB2C8\uB2E4."))}catch{}Z("active")}return}if(W!=="load"&&(W==="playMode"||W==="active"))try{if(G&&G.paused){if(Oe.current){await Mt();return}G&&await st(G),z("playing")}else G&&(qe(),G.pause(),z("paused"))}catch(se){(se instanceof Error||typeof se=="object"&&se&&"name"in se)&&se.name}}},Mt=async()=>{const G=f.current;if(G)try{const se=me.current;if(Array.isArray(se)&&se.length>1){await Nn(0);return}Ge(!1);try{G.currentTime=0}catch{}G&&await st(G),z("playing"),Z("playMode")}catch{}},ln=()=>{if(qe(),dt(),At){ht();return}const G=f.current;try{if(G){try{G.pause()}catch{}try{G.currentTime=0}catch{}}}catch{}$e(),z("stopped"),Z("active"),I(0),$(!1)},cn=async(G,{sameSegment:se=!1}={})=>{const le=++_.current,ye=f.current,ve=me.current?.[G]?.src;try{if(Ge(!1),R(G),$(!0),re.current=G,!ve||!ye||(se||Ae(),ye.src=ve,ye.load(),!se&&await de()===!1)||le!==_.current||(await st(ye),le!==_.current))return;z("playing"),Z("playMode")}catch{}},un=async()=>{const G=me.current,se=re.current||0;if(!G||se<=0){await Mt();return}await cn(se-1)},Rn=async()=>{const G=me.current,se=re.current||0;if(!G||se>=G.length-1){ln();return}await cn(se+1)},dn=()=>{if(Oe.current)return;const G=200,se=340;Ge(!0),qe(),dt();try{I(1)}catch{}Ue(1);try{V("hold")}catch{}try{const le=f.current,ye=At&&!!le?.src;if(!At||ye){if(le){le.pause();try{le.currentTime=0}catch{}}}else ht();$e()}catch{}try{z("stopped")}catch{}if($(!1),!Pe.current)try{Se.current&&(clearTimeout(Se.current),Se.current=null),Se.current=setTimeout(()=>{try{V("out")}catch{}Se.current=setTimeout(()=>{try{typeof we.current=="function"&&we.current(!0)}catch{}try{V("idle")}catch{}Se.current=null},se)},G)}catch{}};o.useEffect(()=>{Xe.current=dn});const Pn=o.useCallback(()=>ue(""),[]),Nn=async G=>{(me.current||[])[G]&&await cn(G,{sameSegment:G===re.current})},Bt=M==="playing",mn=o.useMemo(()=>{if(!L||L.length<=1)return L;const G=L[F];return G?[G]:L},[L,F]),Ht=s===!0;o.useEffect(()=>{try{const G=f.current;G&&typeof G.playbackRate=="number"&&(G.playbackRate=X||1)}catch{}},[X]);const Zt=o.useRef({raf:null,timer:null});o.useEffect(()=>{const G=f.current;if(!G)return;const se=Math.max(0,Math.min(1,ne)),le=Zt.current,ye=()=>{le.raf!==null&&(cancelAnimationFrame(le.raf),le.raf=null),le.timer!==null&&(clearTimeout(le.timer),le.timer=null)};ye();const ve=Ha(G);if(G.paused||Math.abs(ve-se)<.001||typeof requestAnimationFrame!="function"){try{Sn(G,se)}catch{}return}const Te=performance.now(),et=()=>{const ft=Math.min(1,(performance.now()-Te)/150);try{Sn(G,ve+(se-ve)*ft)}catch{}le.raf=ft<1?requestAnimationFrame(et):null};return le.raf=requestAnimationFrame(et),le.timer=setTimeout(()=>{ye();try{Sn(G,se)}catch{}},200),ye},[ne]);const hn=oe==="hold",en=oe==="out",Cn=W==="playMode"&&!N&&!Be||hn||en,In=M!=="stopped"||hn||en,fn=M==="paused",te=Math.max(0,Math.min(100,(S||0)*100)),fe=Ee("audio-player__fill",Cn?"is-visible":"",In?"is-expanded":"",fn?"is-paused":"",en?"is-out":"");return t.jsxs("div",{className:`audio-player ${Ht?"is-disabled":""}${l?` ${l}`:""}`,role:"group","aria-label":typeof p=="string"?p:void 0,children:[t.jsxs("div",{className:`audio-player__panel ${Bt?"is-playing":""} ${N?"is-loading":""} ${W!=="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:u(`training.audioStatus.${P}`,{defaultValue:V5[P]})})]}):null,W==="active"?t.jsx("button",{className:"audio-player__button",type:"button",disabled:Ht,onClick:()=>{U.current=nr(),x(),Yt()},"aria-label":typeof p=="string"?p:u("training.listen","\uB4E3\uAE30"),onMouseEnter:B,onMouseLeave:x,onFocus:B,onBlur:x,children:t.jsx("span",{ref:k,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,A&&t.jsx(vn,{anchorRect:A,text:typeof p=="string"&&p?p:u("training.listenLabel","\uBB38\uC7A5 \uB4E3\uAE30"),offset:8}),t.jsxs("div",{className:`audio-player__play ${W==="playMode"||Bt?"is-visible":""}`,inert:!(W==="playMode"||Bt)||void 0,children:[t.jsxs("div",{ref:C,className:"audio-player__buttons",children:[t.jsx(ce,{htmlType:"button",size:32,showTooltipInfo:!0,type:"dot",shape:"pill",useBorder:!1,icon:"skip-back",onClick:un,ariaLabel:u("training.prev","\uC774\uC804"),width:"60px",variant:"transparent-white","aria-hidden":"true",tabIndex:-1,disabled:W!=="playMode"}),t.jsx(ce,{htmlType:"button",size:32,showTooltipInfo:!0,type:"dot",shape:"pill",useBorder:!1,icon:Bt?"pause":"play",onClick:Yt,ariaLabel:u("common.playPause","\uC7AC\uC0DD / \uBA48\uCDA4"),"aria-pressed":Bt,width:"60px",variant:"transparent-white",disabled:W!=="playMode"}),t.jsx(ce,{htmlType:"button",size:32,showTooltipInfo:!0,type:"dot",shape:"pill",useBorder:!1,icon:"square",onClick:ln,ariaLabel:u("training.stop","\uC815\uC9C0"),width:"60px",variant:"transparent-white","aria-hidden":"true",tabIndex:-1,disabled:W!=="playMode"}),Ye>1?t.jsx("div",{ref:b,className:"audio-player__source-buttons",children:Array.from({length:Ye}).map((G,se)=>t.jsx(ce,{htmlType:"button",size:32,type:"dot",shape:"pill",useBorder:!1,label:String(se+1),onClick:()=>{try{Nn(se)}catch{}},ariaLabel:u("training.sourcePlay",{n:se+1}),variant:"transparent-white",selected:O&&F===se,disabled:W!=="playMode"||!(Array.isArray(q)&&q[se]),showTooltipInfo:!0},se))}):null,!Array.isArray(q)||q.length<=1?t.jsx(ce,{htmlType:"button",size:32,showTooltipInfo:!0,type:"dot",shape:"pill",useBorder:!1,icon:"repeat",onClick:Mt,ariaLabel:u("common.replay","\uB2E4\uC2DC\uB4E3\uAE30"),width:"60px",variant:"transparent-white",disabled:W!=="playMode"}):null,t.jsx(ce,{htmlType:"button",size:32,showTooltipInfo:!0,type:"dot",shape:"pill",useBorder:!1,icon:"skip-forward",onClick:Rn,ariaLabel:u("training.next","\uB2E4\uC74C"),width:"60px",variant:"transparent-white","aria-hidden":!0,tabIndex:-1,disabled:W!=="playMode"}),t.jsx(ce,{htmlType:"button",size:32,showTooltipInfo:!0,type:"dot",shape:"pill",useBorder:!1,icon:"check",onClick:dn,ariaLabel:u("common.done","\uC644\uB8CC"),width:"60px",variant:"transparent-white",disabled:W!=="playMode"})]}),t.jsxs("div",{className:"audio-player__slider",children:[t.jsx("div",{className:fe,ref:y,style:{left:`${te}%`},"aria-hidden":"true"}),(c||d)&&t.jsx(z5,{segments:mn,progress:S,totalDuration:Y,waveProgressRef:he,showSoundWaveForm:c,noiseSrc:d&&m?.settings.enabled&&be>0?De:null,noiseRatio:m?$a(m.settings):0,noiseSpeed:m?.settings.speed??1,mainVolume:ie,onReadyChange:Ie})]})]}),t.jsx("audio",{ref:f,crossOrigin:"anonymous",preload:"auto"})]}),!c&&t.jsxs("p",{className:"audio-player__no-waveform caption-1",children:[t.jsx(Ze,{icon:"triangle-alert",size:14}),u("training.noSoundWaveform","\uC18C\uB9AC \uBE44\uAD50 \uBB38\uC81C\uB294 \uC6E8\uC774\uBE0C\uD3FC\uC744 \uD45C\uD604\uD558\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4.")]}),t.jsx(ra,{message:ae,position:ge,onClose:Pn})]})}function cr(e){const{t:n}=Ce.useTranslation(),{text:a,label:r,anchorRect:s=null,onClose:i,closeOnOutsideClick:l=!0,isMobilePopup:c=!1}=e||{},[d,u]=o.useState(()=>{try{return localStorage.getItem("tooltip-theme")||"light"}catch{return"light"}});o.useEffect(()=>{try{localStorage.setItem("tooltip-theme",d)}catch{}},[d]);const{increase:p,decrease:m,canIncrease:h,canDecrease:f,fontSize:y,lineHeight:C}=el({storageKey:"tooltip-fontScale"}),w=o.useCallback(()=>u(k=>k==="dark"?"light":"dark"),[]),b=o.useCallback(k=>{try{k.stopPropagation()}catch{}try{typeof i=="function"&&i()}catch{}},[i]),g=Array.isArray(a)?a:typeof a>"u"||a===null?[]:[a],_={fontSize:`${y}px`,lineHeight:`${C}px`,"--tt-line-height":`${C}px`,"--tt-marker-size":"28px"},v=t.jsxs("div",{className:`tooltip-textbox__root ${d==="dark"?"is-dark":""}`,children:[t.jsxs("div",{className:"tooltip-textbox__box",children:[r&&t.jsx("div",{className:"tooltip-textbox__label body-2b",children:r}),t.jsx("div",{className:"tooltip-textbox__text body-1",style:_,children:g.map((k,A)=>t.jsxs("div",{className:"tooltip-textbox__line",children:[g.length>1?t.jsx("div",{className:"tooltip-textbox__marker",children:t.jsx("span",{className:"tooltip-textbox__line-number button-1",children:A+1})}):null,t.jsx("span",{className:"tooltip-textbox__line-text",children:k})]},A))})]}),t.jsxs("div",{className:"tooltip-textbox__buttons",children:[t.jsx(ce,{htmlType:"button",size:32,showTooltipInfo:!0,type:"dot",useBorder:!1,width:48,icon:"minus",onClick:m,ariaLabel:n("training.fontSizeDecrease","\uAE00\uC790 \uD06C\uAE30 \uAC10\uC18C"),variant:d==="dark"?"transparent-white":"transparent-gray",disabled:!f}),t.jsx(ce,{htmlType:"button",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:d==="dark"?"transparent-white":"transparent-gray",disabled:!h}),t.jsx(ce,{htmlType:"button",size:32,showTooltipInfo:!0,type:"dot",useBorder:!1,width:48,icon:d==="dark"?"moon":"sun-medium",onClick:w,ariaLabel:n("training.toggleBackground","\uBC30\uACBD \uC804\uD658"),variant:d==="dark"?"transparent-white":"transparent-gray"}),t.jsx(ce,{htmlType:"button",size:32,showTooltipInfo:!0,type:"dot",useBorder:!1,width:48,icon:"x",onClick:b,ariaLabel:n("common.close","\uB2EB\uAE30"),variant:d==="dark"?"transparent-white":"transparent-gray"})]})]});return s?t.jsx(rn,{anchorRect:s,className:`tooltip-textbox ${d==="dark"?"is-dark":""}`,onClose:i,closeOnOutsideClick:l,isMobilePopup:c,ariaLabel:r||n("tooltip.textbox","\uBCF8\uBB38"),children:v}):t.jsx("div",{className:`tooltip-textbox ${d==="dark"?"is-dark":""}`,children:v})}function Yc({state:e="disabled"}){const{t:n}=Ce.useTranslation();return t.jsxs("div",{className:`ts-bullet ts-bullet--${e}`,"aria-hidden":!0,children:[t.jsx("div",{className:"bullet__dot",children:t.jsx(Ze,{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 Zc(e,n,a){const r=o.useRef(n),s=o.useRef(a);o.useEffect(()=>{r.current=n,s.current=a}),o.useEffect(()=>{if(!e||typeof document>"u")return;let i=null,l=10;const c=()=>{i=null;const d=r.current(),u=d?Array.from(d.querySelectorAll(yn)).find(p=>!p.closest('[aria-hidden="true"]')):void 0;if(u){try{u.focus()}catch{}if(document.activeElement===u)return}--l>0&&(i=requestAnimationFrame(c))};return i=requestAnimationFrame(c),()=>{i!==null&&cancelAnimationFrame(i);const d=document.activeElement;if(!d||d===document.body||!document.contains(d)||d.closest(".tooltip-content")){const u=s.current();if(u)try{u.focus()}catch{}}}},[e])}function Xc({title:e,children:n,className:a="",state:r="disabled",usePreviewTextBtn:s=!1,onPreviewTextBtn:i,previewText:l=null,useFaded:c,usePlayAllBtn:d=!1,onPlayAll:u,playAllActive:p=!1}){const{t:m}=Ce.useTranslation(),h=tn("(max-width: 767px)"),f=`training-step__title h4 ${c&&r==="disabled"?"training-step__title--faded":""} ${a}`.trim(),y=`training-step__title-row training-step__title-row--${r}`.trim(),C=o.useRef(null),[w,b]=o.useState(!1),[g,_]=o.useState(null),[v,k]=o.useState(null);Zc(w&&!!g,()=>{if(typeof document>"u")return null;const D=Array.from(document.querySelectorAll(".tooltip-content"));for(let P=D.length-1;P>=0;P--)if(D[P].querySelector(".tooltip-textbox__root"))return D[P];return null},()=>C.current?.querySelector("button")??null);const A=o.useRef(i);o.useEffect(()=>{A.current=i});const B=o.useMemo(()=>l==null?"":typeof l=="string"||typeof l=="number"?String(l):Array.isArray(l)&&l.every(D=>typeof D=="string"||typeof D=="number")?l.join(""):"",[l]),x=o.useCallback(()=>{b(!1),_(null),k(null)},[]);o.useEffect(()=>{if(!w)return;let D;try{typeof A.current=="function"&&(D=A.current())}catch{}if(D===!1){x();return}k(typeof D<"u"&&D!==null?D:null)},[B]);const N=o.useCallback(()=>{let D;try{typeof i=="function"&&(D=i())}catch{}if(D!==!1){if(k(typeof D<"u"&&D!==null?D:l),!C.current){b(P=>!P);return}if(w)b(!1),_(null),k(null);else{const P=C.current.getBoundingClientRect();_(P),b(!0)}}},[i,l,w]);return t.jsxs("div",{className:y,children:[t.jsx("p",{className:f,children:t.jsx("span",{className:"training-step__title-text",children:e??n})}),s||d?t.jsxs("div",{className:"title-controls",children:[t.jsxs("div",{className:"title-buttons",children:[d&&t.jsx(ce,{htmlType:"button",size:32,type:h?"dot":"bar",icon:"play-circle",label:h?void 0:m("training.playAll","\uBAA8\uB450 \uB4E3\uAE30"),ariaLabel:m("training.playAll","\uBAA8\uB450 \uB4E3\uAE30"),selected:p,onClick:u,variant:r==="disabled"?"disabled":"default",disabled:r==="disabled"||p,onDisabledClick:p&&r!=="disabled"?()=>{}:void 0}),s&&t.jsx("div",{ref:C,children:t.jsx(ce,{htmlType:"button",size:32,type:h?"dot":"bar",icon:"eye",label:h?void 0:m("training.sentencePreview","\uBB38\uC7A5 \uBBF8\uB9AC\uBCF4\uAE30"),ariaLabel:m("training.sentencePreview","\uBB38\uC7A5 \uBBF8\uB9AC\uBCF4\uAE30"),onClick:N,className:w?"is-selected":void 0,"aria-expanded":w,"aria-haspopup":"dialog",variant:r==="disabled"?"disabled":"default",disabled:!l&&typeof i!="function"})})]}),w&&t.jsx(cr,{text:v??l,label:m("training.sentencePreview","\uBB38\uC7A5 \uBBF8\uB9AC\uBCF4\uAE30"),anchorRect:g,onClose:x,closeOnOutsideClick:!1,isMobilePopup:!0})]}):null]})}function Io(e,n){return typeof n!="number"||typeof e!="number"?"disabled":e<n?"done":e===n?"active":"disabled"}function Gn({index:e,stepIndex:n,isLast:a=!1,title:r="",titleProps:s={},children:i,className:l="",onDone:c=void 0,useTitleFaded:d=void 0}){const{t:u}=Ce.useTranslation(),[p,m]=o.useState(()=>Io(e,n));o.useEffect(()=>{const k=Io(e,n);if(k!==p){const A=setTimeout(()=>m(k),0);return()=>clearTimeout(A)}},[e,n,p]);const h=o.useCallback((...k)=>{Io(e,n)==="done"||p==="done"||typeof c=="function"&&c(...k)},[e,n,p,c]),[f,y]=o.useState(!1),[C,w]=o.useState({text:"",label:"\uBB38\uC7A5 \uB4E3\uAE30",anchorRect:null,backdrop:!1,alignX:null,alignY:null}),b=o.useCallback(k=>{if(!k)return null;try{const A=k;if(typeof k=="object"&&(A.currentTarget||A.target)&&(A.nativeEvent||A.type)){const N=A.currentTarget??A.target;if(N&&typeof N.getBoundingClientRect=="function")return N.getBoundingClientRect()}if(k instanceof DOMRect)return k;const B=k;if(B&&typeof B.getBoundingClientRect=="function")return B.getBoundingClientRect();const x=k?.current;return x&&typeof x.getBoundingClientRect=="function"?x.getBoundingClientRect():null}catch{return null}},[]),g=o.useCallback((k,{text:A="",label:B="\uBB38\uC7A5 \uB4E3\uAE30",backdrop:x=!1,alignX:N="center",alignY:D="top"}={})=>{const P=b(k);w({text:A,label:B,anchorRect:P,backdrop:x,alignX:N,alignY:D}),y(!0)},[b]),_=o.useCallback(()=>{y(!1),w(k=>({...k,anchorRect:null}))},[]),v=o.Children.map(i,k=>{if(o.isValidElement(k)){const A=k;if(typeof A.type=="string")return A;const B=A.props??{},x=typeof B.onDone=="function"?B.onDone:h,N=typeof B.disabled=="boolean";let D=p==="disabled";return N&&(D=!!B.disabled),o.cloneElement(A,{onDone:x,disabled:D,showTooltip:g,hideTooltip:_})}return k});return t.jsxs("div",{className:`training-step training-step--${p} ${a?"training-step--last":""} ${l}`,"aria-current":p==="active",children:[t.jsx(Yc,{state:p}),t.jsxs("div",{className:"training-step__content",children:[t.jsx(Xc,{state:p,title:r,...s,useFaded:d}),v]}),f?t.jsx(rn,{anchorRect:C.anchorRect,backdrop:C.backdrop,onClose:_,ariaLabel:u("tooltip.textbox","\uBCF8\uBB38"),children:t.jsx(cr,{text:C.text,onClose:_})}):null]})}function Jc({context:e,state:n="disabled",theme:a="light"}){const{t:r}=Ce.useTranslation(),[s,i]=o.useState("disabled"),[l,c]=o.useState(()=>{try{return localStorage.getItem("tooltip-theme")||a}catch{return a}});o.useEffect(()=>{try{localStorage.setItem("tooltip-theme",l)}catch{}},[l]);const d=()=>c(M=>M==="dark"?"light":"dark"),{increase:u,decrease:p,canIncrease:m,canDecrease:h,fontSize:f,lineHeight:y}=el({storageKey:"textbox_fontScale"}),[C,w]=o.useState(""),b=o.useRef(null),g=o.useRef(!1),_=o.useCallback(()=>{g.current=nr()&&!!b.current&&b.current.contains(document.activeElement),i("active")},[]),v=o.useCallback(()=>w(""),[]),k=M=>{try{w(M)}catch{}},A=typeof navigator<"u"&&/Mobi|Android/i.test(navigator.userAgent||"");o.useEffect(()=>{if(n!=="disabled"){const M=setTimeout(()=>i(n),0);return()=>clearTimeout(M)}},[n]);const B=o.useMemo(()=>e&&typeof e=="object"?String(e.sentence??e.text??""):typeof e=="string"?e:"",[e]),[x,N]=o.useState(B);x!==B&&(N(B),i("disabled"));const D=n==="disabled"?s:n,P=D==="disabled"?"training-text-box--disabled":D==="active"?"training-text-box--active":D==="done"?"training-text-box--done":"",H=o.useMemo(()=>({fontSize:`${f}px`,lineHeight:`${y}px`}),[f,y]);return o.useEffect(()=>{if(D==="disabled"||!g.current)return;g.current=!1;const M=document.activeElement;M&&M!==document.body||b.current?.querySelector(".training-text-box__buttons button")?.focus()},[D]),t.jsxs("div",{ref:b,className:`training-text-box ${P} ${D!=="disabled"&&l==="dark"?"is-dark":""}`,children:[D==="disabled"&&t.jsx("div",{className:"training-text-box__preview",children:t.jsx(ce,{htmlType:"button",size:48,type:"bar",onClick:_,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":D==="disabled",children:t.jsx("span",{className:"training-text-box__inner h3",style:H,children:B})}),D!=="disabled"&&t.jsxs("div",{className:"training-text-box__buttons","aria-hidden":D==="disabled",children:[t.jsx(ce,{htmlType:"button",size:32,type:"dot",onClick:p,onDisabledClick:()=>k(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:!h,useBorder:!1,showTooltipInfo:!0,...!A&&{width:"60px"}}),t.jsx(ce,{htmlType:"button",size:32,type:"dot",onClick:u,onDisabledClick:()=>k(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:!m,useBorder:!1,showTooltipInfo:!0,...!A&&{width:"60px"}}),t.jsx(ce,{htmlType:"button",size:32,showTooltipInfo:!0,type:"dot",useBorder:!1,width:48,icon:l==="dark"?"moon":"sun-medium",onClick:d,ariaLabel:r("training.toggleBackground","\uBC30\uACBD \uC804\uD658"),variant:l==="dark"?"transparent-white":"transparent-gray"})]}),t.jsx(ra,{message:C,position:"top",onClose:v})]})}function Fo({index:e,stepIndex:n,isLast:a=!1,title:r,useTitleFaded:s,onDone:i,onChange:l,answer:c,wrongAnswers:d,choices:u,multiSelect:p=!1,correctCount:m=0,useDisabledCovered:h=!1,choiceIcons:f,shuffleChoices:y=!0}){const{t:C}=Ce.useTranslation(),w=r??C("training.selectConfirm","\uBB38\uC81C\uB97C \uBCF4\uACE0 \uD574\uB2F9\uD558\uB294 \uB0B4\uC6A9\uC744 \uC120\uD0DD\uD558\uC138\uC694."),b=typeof e=="number"?e:-1,g=typeof n!="number"?"disabled":b<n?"done":b===n?"active":"disabled",_=Array.isArray(u)&&u.length?u:typeof c<"u"?[c].concat(Array.isArray(d)?d:[]):void 0,v=d?d.join("||"):"",k=u?u.join("||"):"",[A,B]=o.useState(()=>Array.isArray(_)?y?ya(_):_.slice():void 0);o.useEffect(()=>{Array.isArray(_)&&_.length?B(y?ya(_):_.slice()):B(void 0)},[c,v,k,y]);const[x,N]=o.useState(null),[D,P]=o.useState(()=>new Set);o.useEffect(()=>{N(null),P(new Set)},[k,c,v]);const H=o.useRef(void 0);o.useEffect(()=>{const j=H.current;typeof j=="number"&&typeof n=="number"&&typeof e=="number"&&j>=e&&n<e&&(N(null),P(new Set)),H.current=n},[n,e]);const M=o.useCallback(j=>{if(g!=="active")return;const S=A?.[j];if(S==null)return;const I=S,W=g==="active"||g==="done";if(p){const Z=new Set(D),U=Z.has(I);U?Z.delete(I):Z.add(I),P(Z),typeof l=="function"&&l({selectedValues:[...Z],__ts:Date.now()}),W&&(typeof m=="number"&&m>0?Z.size>=m:!U)&&typeof i=="function"&&g==="active"&&i({selectedValues:[...Z],__ts:Date.now()})}else N(I),typeof l=="function"&&l({selectedIndex:j,selectedValue:I,__ts:Date.now()}),W&&typeof i=="function"&&g==="active"&&i({selectedIndex:j,selectedValue:I,__ts:Date.now()})},[A,g,p,l,i,m,D]),z=`training-step__buttons${Array.isArray(A)&&A.length>3?" training-step__buttons--wrap-3":""}`;return t.jsx(Gn,{index:e,stepIndex:n,isLast:a,title:w,useTitleFaded:s,children:t.jsx("div",{className:z,children:Array.isArray(A)&&A.length>0?A.map((j,S)=>t.jsx(ce,{htmlType:"button",size:56,type:"bar",onClick:()=>M(S),ariaLabel:String(j),label:j,useLabel:!0,icon:f?f[String(j)]:void 0,variant:"default",disabled:g==="disabled",selected:p?D.has(j):x===j,useDisabledCovered:h,minWidth:0},String(j))):null})})}function Oo({index:e,stepIndex:n,isLast:a=!1,title:r,onDone:s,onChange:i,context:l,demoSelected:c}){const{t:d}=Ce.useTranslation(),u=r??d("training.confirmTitle","\uBB38\uC7A5\uC744 \uD655\uC778\uD558\uACE0 \uC798 \uB4E4\uB838\uB294\uC9C0 \uC120\uD0DD\uD558\uC138\uC694."),p=typeof e=="number"?e:-1,m=typeof n!="number"?"disabled":p<n?"done":p===n?"active":"disabled",h=l&&typeof l=="object"?l.sentence||"":typeof l=="string"?l:"",f=l&&typeof l=="object"?l.choices:void 0,[y,C]=o.useState(c??null),w=`${String(h)}\0${JSON.stringify(f??null)}`,[b,g]=o.useState(w);b!==w&&(g(w),c==null&&C(null));const[_,v]=o.useState(c);Object.is(_,c)||(v(c),C(c??null));const k=o.useRef(void 0);o.useEffect(()=>{const N=k.current;typeof N=="number"&&typeof n=="number"&&typeof e=="number"&&N>=e&&n<e&&c==null&&C(null),k.current=n},[n,e,c]);const A=o.useCallback(N=>{const D=typeof N=="object"&&N!==null?Object.assign({},N,{__ts:Date.now()}):{value:N,__ts:Date.now()};typeof i=="function"&&i(D),m==="active"&&typeof s=="function"&&s(D)},[i,m,s]),B=o.useCallback(()=>{m==="active"&&(C(!1),A(!1))},[A,m]),x=o.useCallback(()=>{m==="active"&&(C(!0),A(!0))},[A,m]);return t.jsxs(Gn,{index:e,stepIndex:n,isLast:a,title:u,onDone:s,useTitleFaded:!1,children:[t.jsx(Jc,{context:l,state:m}),t.jsx("div",{className:"training-step__buttons",children:Array.isArray(f)&&f.length>0?f.slice(0,6).map((N,D)=>t.jsx(ce,{htmlType:"button",size:56,type:"bar",onClick:()=>{m==="active"&&(C(D),A&&A(D))},disabled:m==="disabled",ariaLabel:String(N),label:N,variant:m,selected:y===D},D)):t.jsxs(t.Fragment,{children:[t.jsx(ce,{htmlType:"button",size:56,type:"bar",onClick:B,disabled:m==="disabled",icon:"x",ariaLabel:d("training.notHeard","\uC548 \uB4E4\uB838\uC5B4\uC694."),label:d("training.notHeard","\uC548 \uB4E4\uB838\uC5B4\uC694."),variant:"default",selected:y===!1}),t.jsx(ce,{htmlType:"button",size:56,type:"bar",onClick:x,disabled:m==="disabled",icon:"circle",ariaLabel:d("training.heardWell","\uC798 \uB4E4\uB838\uC5B4\uC694."),label:d("training.heardWell","\uC798 \uB4E4\uB838\uC5B4\uC694."),variant:"default",selected:y===!0})]})})]})}function Ho({index:e,stepIndex:n,isLast:a=!1,title:r,onDone:s,btnLabel:i,soundSrc:l,bucketPath:c,usePreviewTextBtn:d,previewText:u=null,onPreviewTextBtn:p,disabled:m,_pageIndex:h,showSoundWaveForm:f,showNoiseWaveForm:y}){const{t:C}=Ce.useTranslation(),w=r??C("training.listenTitle","\uC81C\uC2DC\uD558\uB294 \uBB38\uC7A5\uC744 \uB4E4\uC5B4\uC8FC\uC138\uC694."),b=m??(typeof n=="number"&&typeof e=="number"?e>n:!1);return t.jsx(Gn,{index:e,stepIndex:n,isLast:a,title:w,onDone:s,titleProps:{usePreviewTextBtn:d,previewText:u,onPreviewTextBtn:p},children:t.jsx(Po,{soundSrc:l,ttsText:l?null:u??w,bucketPath:c,btnLabel:i||C("training.listenButton","\uBB38\uC7A5 \uB4E3\uAE30"),disabled:b,className:"training-step__listen-sticky",showSoundWaveForm:f,showNoiseWaveForm:y},`audio-p${h??0}-s${e}`)})}const n3=[];function zo({index:e,stepIndex:n,isLast:a=!1,title:r,onDone:s,onChange:i,context:l=n3}){const{t:c}=Ce.useTranslation(),d=r??c("training.orderListDefault","\uBB38\uC7A5\uC744 \uB4E4\uC740 \uC21C\uC11C\uB300\uB85C \uBC30\uCE58\uD558\uC138\uC694."),u=L=>typeof L=="string"?L:L&&(L.context||L.sentence||L.question||"")||"",[p,m]=o.useState(Array.isArray(l)?l:[]),[h,f]=o.useState(()=>(p||[]).map((L,E)=>({id:E,text:u(L)}))),y=o.useMemo(()=>typeof n!="number"||typeof e!="number"?"disabled":e<n?"done":e===n?"active":"disabled",[n,e]),C=y!=="disabled",w=o.useRef(void 0);o.useEffect(()=>{if(w.current===l)return;w.current=l;const L=Array.isArray(l)?l:[];m(L);const E=(F=>{const R=(F||[]).map((Q,X)=>({id:X,text:u(Q)}));if(R.length<=1)return R;const O=(Q,X)=>{if(Q.length!==X.length)return!1;for(let ie=0;ie<Q.length;ie++)if(Q[ie].text!==X[ie].text)return!1;return!0};let $=ya(R),Y=0;for(;O($,R)&&Y<20;)$=ya(R),Y+=1;return $})(L);f(E);try{if(typeof i=="function"){const F=E.filter((R,O)=>R.text===u(L[O])).length;i({shuffled:E,score:F,total:(L||[]).length,initial:!0,__ts:Date.now()})}if(typeof s=="function"&&y==="active"){const F=E.filter((R,O)=>R.text===u(L[O])).length;s({shuffled:E,score:F,total:(L||[]).length,initial:!0,__ts:Date.now()})}}catch{}},[l]);const b=(L,E)=>{const F=[...h],R=L+E;if(R<0||R>=F.length)return;const O=F[R];F[R]=F[L],F[L]=O,S(F);try{if(typeof s=="function"&&y==="active"){const $=F.filter((Y,Q)=>Y.text===u(p[Q])).length;s({shuffled:F,score:$,total:(p||[]).length,__ts:Date.now()})}}catch{}},[g,_]=o.useState(null),v=o.useRef(null),k=o.useRef(null),A=o.useRef(null),B=o.useRef(null),x=o.useRef(null),N=o.useRef({x:0,y:0}),D=o.useRef(null),P=o.useRef({dx:0,dy:0}),H=()=>{if(D.current!==null)return;const L=()=>{if(!v.current){D.current=null;return}D.current=requestAnimationFrame(L);const E=N.current,F=P.current||{dx:0,dy:0};v.current&&(v.current.style.transform=`translate3d(${E.x-F.dx}px, ${E.y-F.dy}px, 0)`)};D.current=requestAnimationFrame(L)},M=o.useRef(new Map),z=o.useRef(new Map),j=()=>{const L=new Map;return M.current.forEach((E,F)=>{E&&E.getBoundingClientRect&&L.set(F,E.getBoundingClientRect())}),L},S=L=>{const E=j();f(L);try{if(typeof i=="function"){const F=L.filter((R,O)=>R.text===u(p[O])).length;i({shuffled:L,score:F,total:(p||[]).length,__ts:Date.now()})}}catch{}requestAnimationFrame(()=>{const F=j();L.forEach(R=>{const O=E.get(R.id),$=F.get(R.id),Y=M.current.get(R.id);if(!Y||!O||!$)return;const Q=O.top-$.top;Q&&(Y.style.transition="none",Y.style.transform=`translateY(${Q}px)`,requestAnimationFrame(()=>{Y.style.transition="transform 420ms cubic-bezier(.22,.9,.39,1)",Y.style.transform="";const X=()=>{Y.style.transition="",Y.removeEventListener("transitionend",X)};Y.addEventListener("transitionend",X)}))})})},I=(L,E)=>{try{try{E.dataTransfer?.setData("text/plain",String(L))}catch{}try{E.dataTransfer&&(E.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),E.dataTransfer?.setDragImage(F,0,0),requestAnimationFrame(()=>{try{document.body.removeChild(F)}catch{}})}catch{}}catch{}_(L);try{const F=h[L],R=document.createElement("div");R.className="order-list__dragging-object order-list__dragging-object--visible",R.textContent=F&&F.text?F.text:"",document.body.appendChild(R),v.current=R;const O=M.current.get(F.id);let $=E.clientX||0,Y=E.clientY||0;try{if(O&&O.getBoundingClientRect){const oe=O.getBoundingClientRect();$=oe.left+oe.width/2,Y=oe.top+oe.height/2}}catch{}const Q=R.getBoundingClientRect(),X=Q.width/2,ie=Q.height/2;P.current={dx:X,dy:ie},R.style.transition="none",N.current={x:$,y:Y},R.style.transform=`translate3d(${$-X}px, ${Y-ie}px, 0)`,requestAnimationFrame(()=>{try{R.style.transition=""}catch{}H()});const be=oe=>{const V=oe;N.current={x:V.clientX,y:V.clientY},H()};A.current=be,document.addEventListener("mousemove",be);const ne=oe=>{const V=oe;N.current={x:V.clientX,y:V.clientY},H()};k.current=ne,document.addEventListener("dragover",ne);try{E.dataTransfer?.setData("text/plain",String(L));try{E.dataTransfer?.setData("application/json",JSON.stringify({idx:L}))}catch{}}catch{}}catch{}},W=(L,E)=>{E.preventDefault();try{E.dataTransfer&&(E.dataTransfer.dropEffect="move")}catch{}try{x.current!==null&&(clearTimeout(x.current),x.current=null);const F=E.currentTarget&&E.currentTarget.closest?E.currentTarget.closest(".order-list__item"):null;if(F&&B.current!==F){if(B.current)try{B.current.classList.remove("drag-over")}catch{}try{F.classList.add("drag-over")}catch{}B.current=F}}catch{}},Z=(L,E)=>{E.preventDefault();const F=E.dataTransfer?.getData("text/plain")||"",R=F?parseInt(F,10):g,O=L;if(typeof R!="number"||isNaN(R)||R===O){_(null),K(),U();return}const $=AC(h,R,O);S($),_(null),U();try{if(typeof s=="function"&&y==="active"){const Y=$.filter((Q,X)=>Q.text===u(p[X])).length;s({shuffled:$,score:Y,total:(p||[]).length,__ts:Date.now()})}}catch{}try{requestAnimationFrame(()=>{const Y=document.querySelectorAll(".order-list .order-list__item")[O];if(!Y)return;const Q=Y.querySelector(".order-list__slot")||Y;try{Q.classList.add("pulse"),Q.offsetHeight,Q.classList.add("to-dark");const X=()=>{Q.classList.remove("pulse","to-dark"),Q.removeEventListener("transitionend",X)};Q.addEventListener("transitionend",X)}catch{}})}catch{}K()},U=()=>{if(v.current){try{document.body.removeChild(v.current)}catch{}v.current=null}k.current&&(document.removeEventListener("dragover",k.current),k.current=null),A.current&&(document.removeEventListener("mousemove",A.current),A.current=null),D.current!==null&&(cancelAnimationFrame(D.current),D.current=null)},q=()=>{_(null),K(),U()};o.useEffect(()=>()=>U(),[]);const K=()=>{try{if(x.current!==null&&(clearTimeout(x.current),x.current=null),B.current){try{B.current.classList.remove("drag-over")}catch{}B.current=null}document.querySelectorAll(".order-list .order-list__item").forEach(L=>L.classList.remove("drag-over"))}catch{}};return o.useEffect(()=>{try{const L=Math.max(1,(h||[]).length);h.forEach((E,F)=>{const R=z.current.get(E.id);if(!R)return;let O=50;L>1&&(O=Math.round(F/(L-1)*100));try{R.style.setProperty("--marker-pos",O+"%")}catch{}})}catch{}},[h]),o.useEffect(()=>()=>{U(),x.current!==null&&(clearTimeout(x.current),x.current=null)},[]),t.jsx(Gn,{index:e,stepIndex:n,isLast:a,title:d,children:t.jsx("div",{className:"order-list",children:h.map((L,E)=>{const F=Math.max(1,(h||[]).length),R=F>1?Math.round(E/(F-1)*100):50;return t.jsx("div",{className:"order-list__item",children:t.jsxs("div",{className:"order-list__slot","data-disabled":y==="disabled","aria-disabled":y==="disabled",children:[y!=="disabled"?t.jsx("div",{className:"order-list__marker caption-1",style:{"--marker-pos":R+"%"},ref:O=>{const $=z.current;O?$.set(L.id,O):$.delete(L.id)},children:t.jsx("span",{className:"order-list__slot-number button-1",children:E+1})}):null,t.jsxs("div",{ref:O=>{const $=M.current;O?$.set(L.id,O):$.delete(L.id)},className:`order-list__draggable ${g===E?"dragging":""}`,"data-disabled":y==="disabled","aria-disabled":y==="disabled",tabIndex:y==="disabled"?-1:0,draggable:C,onDragStart:C?O=>I(E,O):void 0,onDragEnter:C?O=>W(E,O):void 0,onDragOver:C?O=>W(E,O):void 0,onDragLeave:C?()=>{try{x.current!==null&&clearTimeout(x.current),x.current=setTimeout(()=>{try{const O=document.querySelectorAll(".order-list .order-list__item");O&&O[E]&&(O[E].classList.remove("drag-over"),B.current===O[E]&&(B.current=null))}catch{}},80)}catch{}}:void 0,onDrop:C?O=>Z(E,O):void 0,onDragEnd:C?q:void 0,children:[t.jsx("span",{className:"order-list__item-text body-2",children:L.text}),C?t.jsxs("span",{className:"order-list__item-buttons",children:[t.jsx(ce,{htmlType:"button",size:32,type:"dot",onClick:()=>b(E,-1),ariaLabel:c("training.up"),icon:"chevron-up",variant:"transparent-gray",width:48,useFaded:"true",disabled:E===0,useBorder:!1,useDisabledInvisible:!0}),t.jsx(ce,{htmlType:"button",size:32,type:"dot",onClick:()=>b(E,1),ariaLabel:c("training.down"),icon:"chevron-down",variant:"transparent-gray",width:48,useFaded:"true",disabled:E===h.length-1,useBorder:!1,useDisabledInvisible:!0})]}):null]})]})},L.id)})})})}const a3=8e3;function r3(e,n){return new Promise(a=>{let r=!1;const s=()=>{r||(r=!0,a())};e.then(s,s),setTimeout(s,n)})}function Qc({index:e,stepIndex:n,isLast:a=!1,title:r,onDone:s,onChange:i,context:l=[],selectable:c=!1,hideLabel:d=!1,hideAudio:u=!1,maxCards:p}){const{t:m}=Ce.useTranslation(),h=r??m("training.cardInstructions","\uB0B1\uB9D0 \uCE74\uB4DC\uB97C \uBCF4\uACE0 \uC18C\uB9AC\uB97C \uB4E3\uACE0 \uD655\uC778\uD558\uC138\uC694."),f=o.useMemo(()=>Array.isArray(l)?l:l&&l.items||[],[l]),y=p??3,C=(f||[]).slice(0,y);(f||[]).length>y&&console.warn(`TrainingStepCard: ${f.length} items passed but only ${y} shown`);const w=typeof e=="number"?e:-1,b=typeof n!="number"?"disabled":w<n?"done":w===n?"active":"disabled",[g,_]=o.useState(null),v=o.useRef([]),[k,A]=o.useState(!1),B=o.useRef(null),x=o.useRef(!0);o.useEffect(()=>(x.current=!0,()=>{x.current=!1}),[]);const N=o.useMemo(()=>f.map(z=>z?.id??z?.word??"").join("|"),[f]);o.useEffect(()=>{_(null)},[N]);const D=o.useRef(void 0);o.useEffect(()=>{const z=D.current;typeof z=="number"&&typeof n=="number"&&typeof e=="number"&&z>=e&&n<e&&_(null),D.current=n},[n,e]);const P=o.useCallback((z,j)=>{if(c)return;const S={item:z,index:j,__ts:Date.now()};try{typeof i=="function"&&i(S)}catch{}if(b==="active"&&typeof s=="function")try{s(S)}catch{}},[c,i,b,s]),H=o.useCallback(async()=>{if(k||b==="disabled")return;A(!0);let z=!1;const j=new Promise(S=>{B.current=()=>{z=!0,S()}});try{for(let S=0;S<C.length&&!(!x.current||z);S++){const I=v.current[S];I&&await Promise.race([r3(I.play(),a3),j])}}finally{B.current=null,A(!1)}},[k,b,C.length]),M=o.useCallback((z,j)=>{if(b!=="active")return;_(j);const S={selectedValue:z.word||z.title||"",selectedIndex:j,item:z,__ts:Date.now()};try{typeof i=="function"&&i(S)}catch{}if(b==="active"&&typeof s=="function")try{s(S)}catch{}},[i,b,s]);return t.jsx(Gn,{index:e,stepIndex:n,isLast:a,title:h,onDone:s,titleProps:{usePlayAllBtn:!u&&C.length>0,onPlayAll:H,playAllActive:k},children:t.jsx("div",{className:"training-step__cards",onClickCapture:z=>{const j=B.current;if(!j)return;const S=z.target;S&&typeof S.closest=="function"&&S.closest(".training-word-card__bottom")&&j()},children:C.length===0?t.jsx("div",{className:"training-step__empty",children:m("training.noCards","\uCE74\uB4DC\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4.")}):C.map((z,j)=>t.jsx(_o,{ref:S=>{v.current[j]=S},item:z,disabled:b==="disabled",onPlayDone:()=>P(z,j),selectable:c,selected:c&&g===j,onSelect:c?()=>M(z,j):void 0,flipDelay:j*120,hideLabel:d,hideAudio:u},z&&z.id||j))})})}const o3=160,s3={\uBCF4\uCCAD\uAE30:"hearingAid",\uC778\uACF5\uC640\uC6B0:"cochlearImplant"};function i3(e,n){const a=s3[e];return a?n(`device.type.${a}`,{defaultValue:e}):e}const eu=()=>{};function Mn(e){const n=o.useId();if(!("variant"in e)){const{label:b,sub:g,onClick:_,children:v,align:k="horizontal",icon:A,useFullWidth:B=!1}=e,x=N=>{_&&N.target===N.currentTarget&&(N.key==="Enter"||N.key===" ")&&(N.preventDefault(),_())};return t.jsxs("div",{className:Ee("panel-row",k==="vertical"?"panel-row--vertical":"",B?"panel-row--label-fixed panel-row--fill":"",_?"panel-row--clickable":""),onClick:_,onKeyDown:_?x:void 0,role:_?"button":void 0,tabIndex:_?0:void 0,children:[A!=null&&t.jsx("div",{className:"panel-row__icon",children:A}),b!=null&&t.jsxs("div",{className:"panel-row__left",children:[t.jsx("div",{className:"panel-row__label body-3",children:b}),g&&t.jsx("div",{className:"panel-row__sub caption-1",children:g})]}),t.jsx("div",{className:"panel-row__right",children:v})]})}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:s,onClick:i,required:l,error:c,align:d="horizontal",useFullWidth:u=!1,icon:p}=e,m=a==="button"?void 0:i;let h=null;const f=a==="toggle"?`panel-toggle-${n}`:void 0,y=c?`panel-error-${n}`:void 0;if(a==="toggle"){const b=e;h=t.jsx(Ol,{checked:b.checked,onChange:b.onChange,id:f})}else if(a==="segmented"){const b=e;h=t.jsx(An,{options:b.options,value:b.value,onChange:b.onChange,size:b.size??40,ariaLabel:r})}else if(a==="dropdown"){const b=e,g=b.dropdowns?.length?t.jsx("div",{className:`panel-row__dropdown-group${u?" panel-row__dropdown-group--full":""}`,children:b.dropdowns.map((_,v)=>t.jsx("div",{className:u?"panel-row__dropdown-item--full":void 0,children:t.jsx(sn,{options:_.options,value:_.value,onChange:_.onChange,placeholder:_.placeholder,block:u,error:!!c,ariaDescribedBy:y,ariaLabel:_.ariaLabel??([r,_.placeholder].filter(Boolean).join(" ")||void 0)})},v))}):t.jsx(sn,{options:b.options??[],value:b.value??"",onChange:b.onChange??eu,block:u,error:!!c,ariaLabel:r,ariaDescribedBy:y});h=c?t.jsxs("div",{className:`panel-row__dropdown-error-wrap${u?" panel-row__dropdown-error-wrap--full":""}`,children:[g,t.jsx("span",{id:y,className:"caption-1 panel-row__error",role:"alert",children:c})]}):g}else if(a==="button"){const b=e;b.buttons?.length?h=t.jsx("div",{className:"panel-row__button-group",children:b.buttons.map((g,_)=>t.jsx(ce,{htmlType:"button",size:g.btnSize??40,variant:g.btnVariant??"default",disabled:g.disabled,onClick:g.onClick,children:g.label},_))}):h=t.jsx(ce,{htmlType:"button",size:b.btnSize??40,variant:b.btnVariant??"default",disabled:b.disabled,onClick:b.onClick,children:b.buttonLabel})}else if(a==="text"){const b=e;h=t.jsx("span",{className:`panel-row__text body-2${u?" panel-row__text--full":""}`,style:b.valueColor?{color:b.valueColor}:void 0,children:b.value})}else if(a==="input"){const b=e;h=t.jsxs("div",{className:`panel-row__input-wrap${u?" panel-row__input-wrap--full":""}`,children:[t.jsx(Un,{value:b.value,onChange:b.onChange??eu,onKeyDown:b.onKeyDown,onEnter:b.onEnter,placeholder:b.placeholder,ghostText:b.ghostText,ghostHint:b.ghostHint,inputMode:b.inputMode,readOnly:b.readOnly,disabled:b.disabled,type:b.type,autoComplete:b.autoComplete,maxLength:b.maxLength,showCount:b.showCount,multiline:b.multiline,rows:b.rows,fullWidth:u,error:c,ariaLabel:r,required:l}),b.helperText&&t.jsx("div",{className:"panel-row__helper caption-1",children:b.helperText})]})}else a==="custom"&&(h=e.children);c&&a!=="input"&&a!=="dropdown"&&(h=t.jsxs("div",{className:`panel-row__dropdown-error-wrap${u?" panel-row__dropdown-error-wrap--full":""}`,children:[h,t.jsx("span",{id:y,className:"caption-1 panel-row__error",role:"alert",children:c})]}));const C=a==="input"||a==="dropdown"||(a==="text"||a==="custom")&&u,w=b=>{m&&b.target===b.currentTarget&&(b.key==="Enter"||b.key===" ")&&(b.preventDefault(),m())};return t.jsxs("div",{className:Ee("panel-row",d==="vertical"?"panel-row--vertical":"",C?"panel-row--label-fixed":"",a==="text"?"panel-row--text":"",m?"panel-row--clickable":""),onClick:m,onKeyDown:m?w:void 0,role:m?"button":void 0,tabIndex:m?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:"*"})]}),s&&t.jsx("div",{className:"panel-row__sub caption-1",children:s})]}),t.jsx("div",{className:"panel-row__right",children:h})]})}function tu(e){const n=e.productName||e.brand,a=[e.brand,e.fitType].filter(r=>!!r&&r!==n);return[...new Set(a)].join(" \xB7 ")}function l3({devices:e,onRelease:n,emptyLabel:a}){const{t:r}=Ce.useTranslation();return t.jsx("div",{className:"panel-row panel-row--device",children:["\uC88C","\uC6B0"].map(s=>{const i=e[s],l=s==="\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}),i&&n&&t.jsx(ce,{htmlType:"button",size:32,type:"dot",icon:"x",ariaLabel:`${l} ${r("customers.device.unwear","\uCC29\uC6A9 \uD574\uC81C")}`,showTooltipInfo:r("customers.device.unwear","\uCC29\uC6A9 \uD574\uC81C"),onClick:()=>n(s)})]}),i?t.jsxs("div",{className:"panel-row__device-info",children:[t.jsxs("span",{className:"panel-row__device-kind",children:[i.device&&t.jsx(bt,{size:"small",variant:rc(i.device),fill:"soft",label:i3(i.device,r)}),tu(i)&&t.jsx("span",{className:"panel-row__device-detail body-3",children:tu(i)})]}),t.jsx("span",{className:"panel-row__device-name body-2b",children:i.productName||i.brand}),yo(i.wornYear,i.wornMonth,i.wornDay)&&t.jsx("span",{className:"panel-row__device-date caption-1",children:r("customers.device.wornSince",{date:yo(i.wornYear,i.wornMonth,i.wornDay)})})]}):t.jsx("span",{className:"panel-row__device-empty body-3",children:a??r("customers.device.notRegistered","\uBBF8\uB4F1\uB85D")})]},s)})})}function ur({title:e,icon:n,disc:a,actions:r,size:s="medium",minHeight:i,maxWidth:l,className:c,scrollable:d,scrollbarGutter:u="auto",compactRows:p=!1,useBorder:m=!0,useBg:h=!0,useRowBorder:f=!0,labelWidth:y,form:C=!1,loading:w,empty:b,children:g}){const _=Ee("panel",`panel--${s}`,C?"panel--form":"",i!==void 0?"panel--fill":"",m?"":"panel--no-border",h?"":"panel--no-bg",f?"":"panel--no-row-border",p?"panel--compact-rows":"",c),v={};return i!==void 0&&(v.minHeight=i),l!==void 0&&(v.maxWidth=typeof l=="number"?`${l}px`:l),y!==void 0&&(v["--panel-label-width"]=typeof y=="number"?`${y}px`:y),t.jsxs("div",{className:_,style:Object.keys(v).length?v:void 0,children:[(e!=null||a!=null)&&t.jsxs("div",{className:Ee("panel__header",a!=null?"panel__header--with-disc":""),children:[n&&t.jsx(Ze,{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})]}),w?t.jsx(Mn,{variant:"loading"}):b!=null&&o.Children.toArray(g).length===0?t.jsx(Mn,{variant:"empty",children:b}):d?t.jsx("div",{className:Ee("panel__body--scroll",u==="stable"&&"panel__body--gutter-stable"),children:g}):g]})}function c3({cols:e=2,children:n}){return t.jsx("div",{className:"panel-grid",style:{"--panel-grid-cols":e},children:n})}function u3(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 nu(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"}]}u3(Dt.t.bind(Dt)),nu(Dt.t.bind(Dt));const Vo="none",d3=.5,p3=1.5,m3=.25;function Wo({title:e,valueLabel:n,value:a,min:r,max:s,step:i,tickStep:l,size:c,onChange:d}){return t.jsxs(Mn,{variant:"custom",label:e,useFullWidth:!0,children:[t.jsx(Ql,{value:a,onChange:d,min:r,max:s,step:i,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 au({anchorRect:e,onClose:n}){const{t:a}=Ce.useTranslation(),r=tn("(max-width: 767px)")?40:24,s=ir(),i=$a(s?.settings??Pa),l=s?.settings.type??"defaultNoise",c=s?.settings.enabled??!0,d=s?.playbackRate??1,u=s?.mainVolume??1,p=Math.round(u*100),m=o.useCallback(C=>{try{s?.setMainVolume(Math.max(0,Math.min(1,C/100)))}catch{}},[s]),h=o.useCallback(C=>{try{s?.setPlaybackRate(C)}catch{}},[s]),f=o.useCallback(C=>{const w=Math.min(La,Math.max(0,Math.round(C*10)/10));try{s?.setSettings({noiseRatio:w})}catch{}},[s]),y=o.useCallback(C=>{try{C===Vo?s?.setSettings({enabled:!1}):s?.setSettings({type:C,enabled:!0})}catch{}},[s]);return t.jsx(rn,{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(ce,{htmlType:"button",size:40,type:"dot",icon:"x",variant:"transparent-gray",useBorder:!1,ariaLabel:a("common.close","\uB2EB\uAE30"),onClick:n})]}),children:t.jsxs(ur,{className:"noise-settings",useBorder:!1,labelWidth:72,children:[t.jsx(Wo,{title:a("training.playVolumeTitle","\uC804\uCCB4 \uC18C\uB9AC"),valueLabel:`${p}%`,value:p,min:0,max:100,step:10,size:r,onChange:m}),t.jsx(Wo,{title:a("training.playSpeedTitle","\uC7AC\uC0DD \uC18D\uB3C4"),valueLabel:`${d.toFixed(2)}x`,value:d,min:d3,max:p3,step:m3,size:r,onChange:h}),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:Vo,label:a("training.noise.type.none","\uC5C6\uC74C")},...nu(a).map(C=>({key:C.value,label:C.label}))],value:c?l:Vo,onChange:y})}),t.jsx(Wo,{title:a("training.noiseRatioTitle","\uC18C\uC74C \uBE44\uC728"),valueLabel:a("training.noiseRatioValue","{{ratio}}\uBC30",{ratio:i.toFixed(1)}),value:i,min:0,max:La,step:Hc,size:r,onChange:f})]})})}function ru({useNoiseSettingBtn:e=!1,onSettings:n,onNext:a,onResult:r,stepIndex:s=0,stepCount:i=0,pageIndex:l=0,pageCount:c=1,resultOpen:d=!1}){const{t:u}=Ce.useTranslation(),[p,m]=o.useState(!1),[h,f]=o.useState(null),[y,C]=o.useState(!1),w=o.useRef(null),b=o.useRef(null),g=ir(),_=c>0,v=_&&l<c-1,k=!_||l>=c-1,A=s===Math.max(0,i);o.useEffect(()=>{e||(m(!1),f(null))},[e]);const B=o.useCallback(()=>{m(!1),f(null)},[]),x=o.useCallback(()=>{if(p){m(!1),f(null);return}const I=w?.current?.getBoundingClientRect();I&&f(I),n?.(),m(!0)},[p,n]),N=o.useCallback(()=>{if(p){m(!1),f(null);return}const I=b?.current?.getBoundingClientRect();I&&f(I),n?.(),m(!0)},[p,n]),D=tn("(max-width: 767px)"),P=o.useRef(null),[H,M]=o.useState(null),z=o.useCallback(()=>{C(I=>{const W=!I;return M(W?P.current?.getBoundingClientRect()??null:null),W})},[]),j=o.useCallback(()=>{C(!1),M(null)},[]);o.useEffect(()=>{d&&(C(!1),M(null))},[d]);const S=t.jsxs(t.Fragment,{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(fo,{analyser:g?.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(fo,{analyser:g?.noiseAnalyser??null,orientation:"horizontal",length:112,label:"db",labelPos:"left",ariaLabel:u("training.meter.noise","\uC18C\uC74C")})]})]});return Zc(e&&p,()=>typeof document<"u"?document.querySelector(".noise-settings__header")?.closest(".tooltip-content")??null:null,()=>[w.current,b.current].map(I=>I?.querySelector("button")??null).find(I=>!!I&&I.getClientRects().length>0)??w.current?.querySelector("button")??null),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:w,className:"pp-bottom__tooltip-trigger","data-tooltip-ignore":!0,children:t.jsx(ce,{htmlType:"button",size:56,type:"bar",icon:"settings",onClick:x,className:p?"is-selected":void 0,"aria-expanded":p,"aria-haspopup":"dialog",ariaLabel:u("training.trainingSettingsTitle","\uD6C8\uB828 \uC124\uC815"),label:u("training.trainingSettingsTitle","\uD6C8\uB828 \uC124\uC815"),minWidth:140})})}),t.jsx("div",{className:"pp-bottom__settings--mobile",children:t.jsx("div",{ref:b,className:"pp-bottom__tooltip-trigger","data-tooltip-ignore":!0,children:t.jsx(ce,{htmlType:"button",size:56,type:"dot",shape:"pill",icon:"settings",onClick:N,className:p?"is-selected":void 0,"aria-expanded":p,"aria-haspopup":"dialog",ariaLabel:u("training.settings","\uC124\uC815")})})})]}):null,e&&t.jsx("div",{ref:P,className:"pp-bottom__meter-trigger","data-tooltip-ignore":!0,children:t.jsx(ce,{htmlType:"button",size:40,type:"dot",shape:"pill",icon:"audio-lines",onClick:z,selected:y,"aria-expanded":D?y:void 0,ariaLabel:u("training.meter.toggle","\uC624\uB514\uC624 \uBBF8\uD130 \uD45C\uC2DC")})}),e&&y&&!D&&t.jsx("div",{className:"pp-bottom__meters",children:S})]}),e&&y&&D&&H&&t.jsx(rn,{anchorRect:H,onClose:j,ariaLabel:u("training.meter.toggle","\uC624\uB514\uC624 \uBBF8\uD130 \uD45C\uC2DC"),children:t.jsx("div",{className:"pp-bottom__meters pp-bottom__meters--floating",children:S})}),t.jsxs("div",{className:"pp-bottom__right",children:[k&&t.jsx(ce,{htmlType:"button",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:!A}),v&&t.jsx(ce,{htmlType:"button",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:!A})]}),e&&p&&t.jsx(au,{anchorRect:h,onClose:B})]})}function ou({title:e,subtitle:n,desc:a,depth:r,icon:s,wrapperStyle:i,iconTooltip:l,pageIndex:c,pageCount:d,progressMax:u,progressIndex:p,onBack:m,onClose:h}){const{t:f}=Ce.useTranslation(),y=tn("(max-width: 767px)"),C=Number.isInteger(p)?p:c||0,w=Number.isInteger(u)?u:d||0,b=m||h,g=Array.isArray(r)?y?r[r.length-1]:r.join(" / "):r,_=typeof e=="string"?e.trim():e,v=typeof n=="string"?n.trim():n,k=!!(_||v),A=k?_||v:f("common.emptyTrainingName","\uD6C8\uB828 \uC774\uB984\uC774 \uBE44\uC5B4 \uC788\uC2B5\uB2C8\uB2E4."),B=g||(_?n:void 0),x=y&&typeof B=="string"&&(B.includes(" \xB7 ")||B.includes(" / "))?B.split(/\s[·/]\s/).pop():B,N=o.useMemo(()=>{const D=i&&typeof i=="object"?{...i}:{};return!("width"in D)&&!("height"in D)&&(D.width="40px",D.height="40px"),D},[i]);return t.jsxs("header",{className:"pp-title training-popup-title",children:[t.jsxs("div",{className:"pp-title__left",children:[b?t.jsx(ce,{htmlType:"button",size:48,type:"dot",icon:"chevron-left",ariaLabel:f("common.back","\uB4A4\uB85C"),onClick:b,useBorder:!1,iconSize:"large",iconColor:"--color-black",variant:"transparent-gray"}):null,t.jsx("div",{children:s?t.jsx(Tl,{icon:s,label:e,tooltip:l,wrapperStyle:N}):null}),t.jsxs("div",{className:"pp-title__text",children:[x?t.jsx("span",{className:"pp-title__depth caption-1",children:x}):null,t.jsx("span",{className:`pp-title__title h2${k?"":" pp-title__title--empty"}`,children:A}),a?t.jsx("span",{className:"pp-title__description caption-1",children:a}):null]})]}),t.jsx(ac,{max:Math.max(0,w??0),index:Math.max(0,C??0)})]})}function h3(){typeof window<"u"&&window.dispatchEvent(new CustomEvent("speechear.popup.close"))}function C3(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)]}const su=(e,n)=>{if(!n)return n;const a=typeof Dt?.t=="function"?Dt.t(e,{defaultValue:n}):void 0;return typeof a=="string"&&a?a:n};function iu(e,n,a){const r=e,s=r?.title||r?.name||(Array.isArray(n)?n[n.length-1]:void 0)||a||"\uD6C8\uB828",i=pi().find(c=>c.key===(r?.category_0||r?.category_main_code)),l=i?.subs?.find(c=>c.key===(r?.category_1||r?.category_sub_code));return{title:s,label:r?.title||s,depth:n,icon:i?.icon,wrapperStyle:i?.color?{"--t-item-fg":i.color}:void 0,iconTooltip:[i?su(`topic.${i.key}`,i.label):void 0,l?su(`topic.sub.${l.key}`,l.label):void 0].filter(Boolean).join(" / ")||void 0}}function qo(e){return e&&typeof e=="object"&&typeof e.__ts=="number"?e.__ts:0}function f3(e){const n=e;return Array.isArray(n?.items)?n.items:Array.isArray(e)?e:e?[e]:[]}function g3({idPrefix:e,trainingData:n,depth:a,fallbackTitle:r="\uD6C8\uB828",pages:s=[],emptyMessage:i,buildResults:l,metaPatch:c}){const d=iu(n,a,r),u=typeof c=="function"?c(d)||{}:c||{},p=n?.id||n?.title||s.length;return{id:`${e}:${p}`,meta:{...d,...u},pages:s,emptyMessage:i,buildResults:l}}function b3(e){if(typeof e=="string")return e;if(e&&typeof e=="object"){const n=e;return n.context||n.sentence||n.question||""||""}return""}function y3(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 v3(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 lu(e,n){if(!(!e||typeof e!="object"))return e[`step-${n}`]}function x3(e,n,a,r){return lu(e,n*a+r)}function _3({payload:e,selected:n,choices:a=[],correctAnswers:r=[]}){if(e&&typeof e=="object"){const s=e;if(Array.isArray(s.selectedValues))return r.every(i=>s.selectedValues.includes(i))&&s.selectedValues.every(i=>r.includes(i));if(typeof s.correct=="boolean")return s.correct}if(r.length){if(typeof n=="number"&&Array.isArray(a)&&a.length)return r.some(s=>String(s)===String(a[n]));if(typeof n<"u")return r.some(s=>String(s)===String(n))}}function w3(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 cu=o.createContext(null);function A3(){const e=o.useContext(cu);if(!e)throw new Error("useTrainingPagePopupContext must be used inside TrainingPagePopup");return e}function k3({index:e,stepIndex:n,isLast:a=!1,title:r,choices:s=[],onDone:i,onChange:l}){const{t:c}=Ce.useTranslation(),d=typeof e=="number"?e:-1,u=typeof n!="number"?"disabled":d<n?"done":d===n?"active":"disabled",[p,m]=o.useState(()=>s.map(()=>null)),h=JSON.stringify(s),f=s.length;o.useEffect(()=>{m(Array.from({length:f},()=>null))},[h]);const y=o.useRef(void 0);o.useEffect(()=>{const g=y.current;typeof g=="number"&&typeof n=="number"&&typeof e=="number"&&g>=e&&n<e&&m(Array.from({length:f},()=>null)),y.current=n},[n,e,f]);const C=o.useMemo(()=>p.filter(g=>g!==null).length+1,[p]),w=o.useCallback(g=>{if(u!=="active")return;const _=p;let v;if(_[g]!=null){const A=_[g];v=_.map(B=>B!==null&&B>=A?null:B)}else v=[..._],v[g]=C;m(v);const k={selectedOrder:v,words:s,__ts:Date.now()};try{typeof l=="function"&&l(k)}catch{}if(_[g]==null&&v.length>0&&v.every(A=>A!==null))try{typeof i=="function"&&i(k)}catch{}},[u,p,C,l,i,s]),b=r??c("training.selectInOrder","\uB4E4\uC740 \uC21C\uC11C\uB300\uB85C \uCE74\uB4DC\uB97C \uC120\uD0DD\uD558\uC138\uC694.");return t.jsx(Gn,{index:e,stepIndex:n,isLast:a,title:b,onDone:i,children:t.jsx("div",{className:"training-step__cards",children:s.map((g,_)=>t.jsx(_o,{item:{word:g},disabled:u==="disabled",selectable:!0,selected:p[_]!==null,orderRank:p[_],onSelect:()=>w(_),flipDelay:_*120,hideLabel:!1,hideAudio:!0},`${g}-${_}`))})})}function dr(e){return null}dr.__isTrainingPage=!0;function da(e,n){const a=A3();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 uu({_stepIndex:e,_totalSteps:n,...a}){const{index:r,stepIndex:s,isLast:i,onDone:l}=da(e,n);return t.jsx(Ho,{...a,index:r,stepIndex:s,isLast:i,onDone:l})}function du({_stepIndex:e,_totalSteps:n,...a}){const{index:r,stepIndex:s,isLast:i,onDone:l,onChange:c}=da(e,n);return t.jsx(Fo,{...a,index:r,stepIndex:s,isLast:i,onDone:l,onChange:c})}function pu({_stepIndex:e,_totalSteps:n,...a}){const{index:r,stepIndex:s,isLast:i,onDone:l,onChange:c}=da(e,n);return t.jsx(Oo,{...a,index:r,stepIndex:s,isLast:i,onDone:l,onChange:c})}function mu({_stepIndex:e,_totalSteps:n,...a}){const{index:r,stepIndex:s,isLast:i,onDone:l,onChange:c}=da(e,n);return t.jsx(zo,{...a,index:r,stepIndex:s,isLast:i,onDone:l,onChange:c})}function hu({_stepIndex:e,_totalSteps:n,...a}){const{index:r,stepIndex:s,isLast:i,onDone:l,onChange:c}=da(e,n);return t.jsx(Qc,{...a,index:r,stepIndex:s,isLast:i,onDone:l,onChange:c})}function B3({_stepIndex:e,_totalSteps:n,...a}){const{index:r,stepIndex:s,isLast:i,onDone:l,onChange:c}=da(e,n);return t.jsx(k3,{...a,index:r,stepIndex:s,isLast:i,onDone:l,onChange:c})}function Uo(...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 s of r){if(typeof s=="string"&&s.trim().length)return s.trim();if(typeof s=="number"||typeof s=="boolean")return String(s)}}}return null}function N3(e){return Uo(e?.question,e?.q,e?.sentence,e?.text,e?.prompt,e?.wording)}function Cu(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=Uo(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 fu(e){const{score:n,contextsLength:a,results:r=[],subtitle:s,onReplay:i,onClose:l,inline:c=!1,pending:d=!1}=e||{},{t:u}=Ce.useTranslation(),p=o.useId(),m=o.useCallback(()=>!d,[d]);o.useEffect(()=>{const g=a??0;if(n!=null&&g>0&&n/g>.5){const _=window.setTimeout(()=>{window.dispatchEvent(new CustomEvent("party:trigger",{detail:{count:140,strength:1.6,duration:2200}}))},0);return()=>window.clearTimeout(_)}},[n,a]);const h=o.useCallback(g=>{const _=Cu(g),v=Uo(g?.wording,g?.label);return _===!0?{variant:"main",label:v??u("training.result.heardWell","\uC798 \uB4E4\uC5C8\uC5B4\uC694")}:_===!1?{variant:"danger",label:v??u("training.result.notHeard","\uBABB \uB4E4\uC5C8\uC5B4\uC694")}:{variant:"disabled",label:v??u("training.result.notJudged","\uBBF8\uD310\uC815")}},[u]),f=a??0,y=n??0,C=o.useMemo(()=>Array.isArray(r)?r:[],[r]),w=o.useMemo(()=>C.map(g=>{const _=g??{},v=N3(_)||u("training.result.noContent","(\uB0B4\uC6A9\uC5C6\uC74C)"),{variant:k,label:A}=h(_),B=Array.isArray(_.corrects)?_.corrects:[],x=B.length?B.join(", "):_.answer!=null&&_.answer!==""?String(_.answer):null,N=typeof _.selectedText=="string"?_.selectedText:null,D=Cu(_)===!0;return{problem:v,variant:k,label:A,answer:x,selectedText:N,isCorrect:D}}),[C,h,u]),b=o.useMemo(()=>w.some(g=>g.answer!==null||g.selectedText!==null),[w]);return t.jsx(Tn,{onClose:l,closeOnBackdrop:!1,inline:c,ariaLabel:u("training.result.title","\uD6C8\uB828\uC744 \uBAA8\uB450 \uB9C8\uCCE4\uC2B5\uB2C8\uB2E4."),className:"popup--training-result",beforeClose:m,footerClassName:"trp-result__foot",footer:({animateThen:g,closeWithAnimation:_})=>t.jsxs(t.Fragment,{children:[d&&t.jsx("p",{id:p,className:"trp-actions__reason caption-1",role:"status",children:u("training.result.pendingDone","\uACB0\uACFC\uB97C \uACC4\uC0B0\uD558\uB294 \uC911\uC774\uB77C \uC544\uC9C1 \uC644\uB8CC\uD560 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4.")}),t.jsxs("div",{className:"trp-actions",children:[t.jsx(ce,{htmlType:"button",size:56,type:"bar",label:u("training.result.replay","\uB2E4\uC2DC\uD558\uAE30"),onClick:()=>g(i)}),t.jsx(ce,{htmlType:"button",size:56,type:"bar",label:u("training.result.done","\uC644\uB8CC"),variant:"main",onClick:_,disabled:d,onDisabledClick:d?()=>{}:void 0,"aria-describedby":d?p:void 0})]})]}),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.")}),s&&t.jsx("p",{className:"trp-result__subtitle body-3",children:s}),t.jsx("div",{className:"trp-score",children:t.jsxs("div",{className:"trp-score__figure","aria-label":u("training.result.scoreAria",{correct:y,total:f}),children:[t.jsx("span",{className:"trp-score__big",children:y}),t.jsx("span",{className:"trp-score__sep",children:"/"}),t.jsx("span",{className:"trp-score__total",children:f})]})})]}),w.length>0&&t.jsx("section",{className:"trp-result__body",children:t.jsxs("div",{className:`result-table${b?" 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")}),b&&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")})]}),w.map((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(_+1).padStart(2,"0")}),t.jsx("div",{className:"trp-row__q body-2",children:g.problem})]}),b&&t.jsxs("div",{className:"trp-row__answers",children:[g.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:g.answer})]}),t.jsxs("div",{className:"trp-row__answer-line",children:[t.jsx("span",{className:`trp-row__answer-label answer-selected caption-1 ${g.isCorrect?"is-correct":"is-wrong"}`,children:u("training.result.colSelected","\uC120\uD0DD")}),t.jsx("span",{className:`trp-row__answer-value body-2 ${g.isCorrect?"is-correct":"is-wrong"}`,children:g.selectedText??"\u2014"})]})]}),t.jsx("div",{className:"trp-row__judge",children:t.jsx(bt,{variant:g.variant,label:g.label,fill:"soft",minWidth:80})})]},_))]})})]})})}function E3(e){o.useEffect(()=>{if(!e)return;const n=()=>typeof document>"u"||document.visibilityState!=="hidden";let a=null,r=null,s=0,i=0;const l=()=>{const p=Date.now();a==null&&(a=p),r==null&&(r=p)},c=()=>{r!=null&&(s+=Date.now()-r,r=null)};n()&&l();const d=()=>{if(c(),a==null||s-i<1e3||i===0&&s<5e3)return;const p=a+i;i=s,NC({trainingType:e,startedAt:new Date(p).toISOString(),endedAt:new Date(a+s).toISOString()})},u=()=>{n()?l():d()};return typeof document<"u"&&document.addEventListener("visibilitychange",u),typeof window<"u"&&window.addEventListener("pagehide",d),()=>{typeof document<"u"&&document.removeEventListener("visibilitychange",u),typeof window<"u"&&window.removeEventListener("pagehide",d),d()}},[e])}function Go(e,n){return e&&e.id||`page-${n??0}`}function Ko(e,n){return e&&e.key||`step-${n??0}`}function pr(){return{pageIndex:0,stepIndex:0,answersByPage:{}}}function D3(e,n){return typeof e?.props=="function"?e.props(n)||{}:e?.props||{}}const S3=300,j3=()=>{try{return typeof window<"u"&&!!window.matchMedia?.("(prefers-reduced-motion: reduce)").matches}catch{return!1}},Ln=Object.freeze({}),gu=new Set(["LISTEN_IN_NOISE","SHORT_STORY","LONG_STORY","ORDERING_SENTENCE"]);function bu(e){const n=e,a=n?.results||n?.answers||[],r=Array.isArray(a)&&a.length>0?a.length:null,s=Array.isArray(a)?a.filter(i=>i?.correct===!0||i?.isCorrect===!0||i?.score===1||i?.heard===!0||i?.judgement===!0).length:null;return{results:a,correct:r!=null?s:null,total:r}}const T3=e=>t.jsx(fu,{score:e.score,contextsLength:e.contextsLength,results:e.results,onReplay:e.onReplay,onClose:e.onClose,pending:e.pending});function M3(e){const{scenario:n,title:a,subTitle:r,depth:s,icon:i,wrapperStyle:l,iconTooltip:c,pageIndex:d,pageCount:u,stepIndex:p,stepCount:m,onBack:h,onComplete:f,onNext:y,onSettings:C,useNoiseSetting:w=!0,children:b,ariaLabel:g,label:_,buildResults:v,onResult:k,typeKey:A,entryPoint:B,dailyTotal:x,itemRef:N,renderResultPopup:D,noiseOverride:P}=e;E3(A&&!gu.has(A)?A:"");const H=o.useRef(0);o.useEffect(()=>{H.current=Date.now()},[]);const{t:M}=Ce.useTranslation(),z=k,j=!!n,S=n?.id||null,I=n?.meta||{},W=Array.isArray(n?.pages)?n.pages:[],Z=Array.isArray(b)||o.isValidElement(b)&&typeof b!="function"?o.Children.toArray(b).filter(o.isValidElement):[],U=Z.length>0,q=te=>te===dr||te?.__isTrainingPage===!0,K=U&&Z.some(te=>q(te.type)),L=K?Z.filter(te=>q(te.type)).map((te,fe)=>{const G=te.props||{};return{id:`children-page-${fe}`,steps:o.Children.toArray(G.children).filter(o.isValidElement),pageTop:G.pageTop||G.top||null,pageBottom:G.pageBottom||G.bottom||null}}):[{id:"children-page-0",steps:Z}],E=U&&!j&&typeof b!="function",F=E?Math.max(1,L.length):0;o.useEffect(()=>{if(!(typeof document>"u"||!document.body)&&!document.body.classList.contains("ihabdevteam-core-scope"))return document.body.classList.add("ihabdevteam-core-scope"),()=>{document.body.classList.remove("ihabdevteam-core-scope")}},[]),o.useEffect(()=>{if(typeof document>"u"||!document.body)return;const te=document.body;return te.dataset.ihabTrainingPopupCount=String(Number(te.dataset.ihabTrainingPopupCount||"0")+1),te.classList.add("ihab-training-popup-open"),()=>{const fe=Number(te.dataset.ihabTrainingPopupCount||"1")-1;fe>0?te.dataset.ihabTrainingPopupCount=String(fe):(delete te.dataset.ihabTrainingPopupCount,te.classList.remove("ihab-training-popup-open"))}},[]),o.useEffect(()=>{if(!(typeof document>"u"||!document.body))return k4()},[]);const[R,O]=o.useState({...Pa,enabled:!1}),$=o.useRef(R);o.useEffect(()=>{$.current=R},[R]);const Y=o.useRef(P),Q=o.useRef(!1),X=o.useRef(null);o.useEffect(()=>{let te=!1;const fe=G=>{if(te)return;Q.current=!0;const se=G?Ra({...Pa,enabled:!1},G):{...Pa},le=X.current;X.current=null;const ye=le?Ra(se,le):se;$.current=ye,O(ye),le&&!Y.current&&si(ye),Wa(ye);const ve=Y.current;if(ve){const Te=typeof ve=="function"?ve(ye):ve,et=Ra(ye,Te);$.current=et,O(et),Wa(et)}};return jC().then(fe),()=>{te=!0}},[]);const[ie,be]=o.useState(null),[ne,oe]=o.useState(null),V=o.useCallback((te,fe)=>{te==="main"?be(fe):oe(fe)},[]),ae=o.useRef(null),ue=o.useRef(null),ge=o.useCallback(()=>{ue.current!==null&&(clearTimeout(ue.current),ue.current=null);const te=ae.current;ae.current=null,te&&si(te)},[]);o.useEffect(()=>{if(typeof window>"u")return;const te=()=>{document.visibilityState==="hidden"&&ge()};return window.addEventListener("pagehide",ge),document.addEventListener("visibilitychange",te),()=>{window.removeEventListener("pagehide",ge),document.removeEventListener("visibilitychange",te),ge()}},[ge]);const me=o.useCallback(te=>{const fe=Ra($.current,te);if($.current=fe,O(fe),!Q.current){X.current={...X.current??{},...te},Wa(fe);return}Y.current||(ae.current=fe,ue.current!==null&&clearTimeout(ue.current),ue.current=setTimeout(ge,S3)),Wa(fe)},[ge]),re=R.mainSpeed,he=R.mainVolume,_e=o.useCallback(te=>me({mainSpeed:te}),[me]),Me=o.useCallback(te=>me({mainVolume:te}),[me]),Ue=o.useMemo(()=>({settings:R,setSettings:me,registerAnalyser:V,mainAnalyser:ie,noiseAnalyser:ne,playbackRate:re,setPlaybackRate:_e,mainVolume:he,setMainVolume:Me}),[R,me,V,ie,ne,re,_e,he,Me]),Ie=o.useRef(null),[de,Ae]=o.useState(0),Re=o.useRef([]),[Pe,we]=o.useState("center"),[Se,Oe]=o.useState(!1),Be=o.useRef(!1),nt=o.useRef(null),Ge=o.useCallback(te=>{Be.current||(Be.current=!0,Oe(!0),nt.current=setTimeout(()=>{try{te()}catch{Be.current=!1,Oe(!1)}},j3()?0:o3))},[]);o.useEffect(()=>()=>{nt.current&&clearTimeout(nt.current)},[]);const Xe=o.useRef(h);o.useEffect(()=>{Xe.current=h}),o.useEffect(()=>{const te=Ie.current,fe=document.activeElement;if(zr(te,fe),te){const G=Array.from(te.querySelectorAll(yn)).filter(se=>!se.closest('[aria-hidden="true"]'))[0];if(G)try{G.focus()}catch{}}return()=>{const G=document.activeElement;if(!G||G===document.body||te&&te.contains(G))try{Vr(fe)?.focus?.()}catch{}}},[]),o.useEffect(()=>zn(()=>Ge(()=>{const te=Xe.current;typeof te=="function"&&te()})),[Ge]),Or(Ie,!0);const[De,je]=o.useState(!1),ke=o.useRef(!1),[$e,We]=o.useState(null),ht=o.useRef(0),wt=()=>{ht.current+=1,We(null)},[Et,At]=o.useState(""),[rt,Ye]=o.useState(()=>pr()),at=o.useRef(typeof d=="number"?d:null);o.useEffect(()=>{!j&&!E||(Ye(pr()),wt())},[j,S,E]),o.useEffect(()=>{E&&Ye(te=>{const fe=Math.max(0,Math.min(te.pageIndex,Math.max(0,F-1)));return fe!==te.pageIndex?{...te,pageIndex:fe,stepIndex:0}:te})},[E,F]);const ot=E?Math.max(0,Math.min(rt.pageIndex,F-1)):0,qe=E?L[ot]:null,ct=E&&qe&&Array.isArray(qe.steps)?qe.steps:[],Ke=j?rt.pageIndex:E?ot:typeof d=="number"?d:0,Ct=j?W[Math.max(0,Math.min(rt.pageIndex,Math.max(0,W.length-1)))]:null,jt=j&&Ct&&Array.isArray(Ct.steps)?Ct.steps:[],kt=j?jt.length:E?ct.length:typeof m=="number"?m:0,dt=j||E?Math.max(0,Math.min(rt.stepIndex,Math.max(0,kt))):typeof p=="number"?p:0,st=j?W.length:E?F:typeof u=="number"?u:0;o.useLayoutEffect(()=>{const te=at.current;if(typeof Ke=="number"&&te!==null&&Ke!==te&&Ke>te)try{At(M("training.problemNotice",{n:Ke+1}))}catch{}at.current=typeof Ke=="number"?Ke:at.current},[Ke,d,M]),o.useLayoutEffect(()=>{const te=Ie.current;if(!te)return;const fe=()=>te.querySelector(".page-popup__scroll");let G=null,se=null,le=null;const ye=it=>{const yt=fe();if(!yt)return;const Rt=yt.scrollHeight<=yt.clientHeight;if(we(Rt?"center":"top"),it&&!ke.current){ke.current=!0;try{je(!0)}catch{}try{et.disconnect()}catch{}}},ve=()=>{G!==null&&cancelAnimationFrame(G),G=requestAnimationFrame(()=>{se!==null&&clearTimeout(se),se=setTimeout(()=>ye(!0),60)})},Te=()=>{le!==null&&cancelAnimationFrame(le),le=requestAnimationFrame(()=>ye(!1))};ve(),window.addEventListener("resize",Te);const et=new MutationObserver(ve);et.observe(te,{childList:!0,subtree:!0,attributes:!0});const ft=setTimeout(()=>{ke.current||ye(!0)},400);return()=>{window.removeEventListener("resize",Te),G!==null&&cancelAnimationFrame(G),se!==null&&clearTimeout(se),le!==null&&cancelAnimationFrame(le),clearTimeout(ft);try{et.disconnect()}catch{}}},[Ie]);const He=o.useCallback(te=>{Ie.current&&(Ie.current._childOnNext=te)},[]),Qe=o.useCallback(te=>{Ie.current&&(Ie.current._childOnResult=te)},[]),pt=o.useCallback((te,fe,G)=>{Ye(se=>{const le=se.answersByPage[te]||{},ye=le[fe],ve=qo(G),Te=qo(ye);return ye&&Te>ve?se:{...se,answersByPage:{...se.answersByPage,[te]:{...le,[fe]:G}}}})},[Ye]),Ot=o.useCallback((te,fe,G)=>{const se=Go(Ct,Ke),le=Ko(te,fe);pt(se,le,G)},[Ct,Ke,pt]),Je=o.useCallback((te,fe,G)=>{const se=Go(Ct,Ke),le=Ko(te,fe);pt(se,le,G),!G?.allowChange&&te?.autoAdvance!==!1&&Ye(ye=>({...ye,stepIndex:Math.max(ye.stepIndex,fe+1)}))},[Ct,Ke,pt,Ye]),Tt=o.useCallback((te,fe)=>{const G=qe?.id||`children-page-${Ke??0}`,se=typeof fe=="number"?fe:dt??0,le=`step-${se}`;pt(G,le,te),te?.allowChange||Ye(ye=>({...ye,stepIndex:Math.max(ye.stepIndex,se+1)}))},[qe,Ke,dt,pt,Ye]),Yt=o.useCallback((te,fe)=>{const G=qe?.id||`children-page-${Ke??0}`,se=`step-${typeof fe=="number"?fe:dt??0}`;pt(G,se,te)},[qe,Ke,dt,pt]),Mt=E?{currentPageIndex:Ke??0,currentStepIndex:dt??0,totalStepsInPage:ct.length,handleStepDone:Tt,handleStepChange:Yt}:null,ln=async()=>{const te=typeof n?.buildResults=="function"?await Promise.resolve(n.buildResults({scenario:n,pages:W,flowState:rt,answersByPage:rt.answersByPage})):null;return typeof z=="function"&&await Promise.resolve(z(te))||te},cn=async()=>{const te=qe?.id||`children-page-${rt.pageIndex}`,fe=rt.answersByPage[te]||{},G=K?(()=>{const ye={};let ve=0;return L.forEach(Te=>{const et=rt.answersByPage[Te.id]||{},ft=Array.isArray(Te.steps)?Te.steps.length:0;for(let it=0;it<ft;it+=1){const yt=et[`step-${it}`];typeof yt<"u"&&(ye[`step-${ve+it}`]=yt)}ve+=ft}),ye})():fe;if(typeof v=="function"){const ye=await Promise.resolve(v(G,{pageAnswers:fe,answersByPage:rt.answersByPage,pages:L,currentPageId:te}));return typeof z=="function"&&await Promise.resolve(z(ye))||ye}const se=Object.entries(fe).map(([ye,ve],Te)=>({index:Te,key:ye,payload:ve})),le={results:se,answers:se,score:0};return typeof z=="function"&&await Promise.resolve(z(le))||le},un=()=>{const te=++ht.current,fe=()=>te!==ht.current;try{if(typeof document<"u"&&document.body){try{document.dispatchEvent(new CustomEvent("speechear-close-tooltips"))}catch{}document.dispatchEvent(new PointerEvent("pointerdown",{bubbles:!0,cancelable:!0})),document.dispatchEvent(new MouseEvent("click",{bubbles:!0,cancelable:!0}))}}catch{}if(j){const le=ln();We(Ln);const ye=le;Promise.resolve(ye).then(ve=>{fe()||We(ve||{isEmpty:!0})}).catch(ve=>{!fe()&&We({isEmpty:!0})});return}if(E){const le=cn();We(Ln);const ye=le;Promise.resolve(ye).then(ve=>{fe()||We(ve||{isEmpty:!0})}).catch(ve=>{!fe()&&We({isEmpty:!0})});return}const G=Ie.current&&Ie.current._childOnResult,se=le=>{try{return le?le():void 0}catch{return}};if(typeof G=="function"){const le=se(G);try{typeof document>"u"?require("url").pathToFileURL(__filename).href:gn&&gn.tagName.toUpperCase()==="SCRIPT"&&gn.src||new URL("components.cjs.js",document.baseURI).href}catch{}le&&typeof le.then!="function"?We(le):We(le&&typeof le.then=="function"?Ln:{});const ye=()=>{fe()||We(ve=>ve===Ln?{}:ve)};Promise.resolve(le).then(ve=>{ve&&!fe()?We(ve):ye()}).catch(ve=>{ye()});return}if(typeof z=="function"){const le=se(z);try{typeof document>"u"?require("url").pathToFileURL(__filename).href:gn&&gn.tagName.toUpperCase()==="SCRIPT"&&gn.src||new URL("components.cjs.js",document.baseURI).href}catch{}le&&typeof le.then!="function"?We(le):We(le&&typeof le.then=="function"?Ln:{});const ye=()=>{fe()||We(ve=>ve===Ln?{}:ve)};Promise.resolve(le).then(ve=>{try{typeof document>"u"?require("url").pathToFileURL(__filename).href:gn&&gn.tagName.toUpperCase()==="SCRIPT"&&gn.src||new URL("components.cjs.js",document.baseURI).href}catch{}ve&&!fe()?We(ve):ye()}).catch(ve=>{console.error("viewResults external handler failed",ve),ye()});return}},Rn=()=>{if(j){if(typeof Ke=="number"&&typeof st=="number"&&Ke<st-1){Ye(fe=>({...fe,pageIndex:fe.pageIndex+1,stepIndex:0}));return}return un()}if(E){const fe=ct.length;if(typeof dt=="number"&&dt<fe-1){Ye(G=>({...G,stepIndex:G.stepIndex+1}));return}if(typeof Ke=="number"&&typeof st=="number"&&Ke<st-1){Ye(G=>({...G,pageIndex:G.pageIndex+1,stepIndex:0}));return}return un()}if(typeof y=="function"){try{y()}catch{}return}const te=Ie.current&&Ie.current._childOnNext;if(typeof te=="function"){try{te()}catch{}return}},dn=j?I.title||I.label||g||M("common.popup","\uD31D\uC5C5"):a||_||(Array.isArray(s)?s[s.length-1]:void 0)||g||M("common.popup","\uD31D\uC5C5"),Pn=g||dn,Nn=j?I.title??I.label??dn:a??_??dn,Bt=(te,fe)=>{const G=Go(Ct,Ke),se=Ko(te,fe),le=rt.answersByPage[G]?.[se],ye=D3(te,{page:Ct,pageIndex:Ke,step:te,stepIndex:fe,storedPayload:le,answersByPage:rt.answersByPage,flowState:rt}),ve={key:se,index:fe,stepIndex:dt,isLast:fe===jt.length-1};switch(te?.type){case"listen":return t.jsx(Ho,{...ve,...ye,onDone:Te=>Je(te,fe,Te)});case"confirm":return t.jsx(Fo,{...ve,...ye,onDone:Te=>Je(te,fe,Te),onChange:Te=>Ot(te,fe,Te)});case"confirmWithText":return t.jsx(Oo,{...ve,...ye,onDone:Te=>Je(te,fe,Te),onChange:Te=>Ot(te,fe,Te)});case"orderList":return t.jsx(zo,{...ve,...ye,onDone:Te=>Je(te,fe,Te),onChange:Te=>Ot(te,fe,Te)});default:return null}},mn=o.useRef(void 0);o.useEffect(()=>{const te=mn.current;if(mn.current=Ke,te===void 0||te===Ke||!nr())return;const fe=Ie.current;if(!fe)return;const G=document.activeElement;if(!(!G||G===document.body||!fe.contains(G)||G.disabled===!0))return;const se=fe.querySelector(`.training-steps ${yn.split(", ").join(", .training-steps ")}`)??Array.from(fe.querySelectorAll(yn)).find(le=>!le.closest('[aria-hidden="true"]'));try{se?.focus()}catch{}},[Ke]);const Ht=j?W.length>0?t.jsx("div",{className:"training-steps",children:jt.map((te,fe)=>Bt(te,fe))},`replay-${de}`):t.jsx("div",{className:`page-popup__content page-popup__content--center${e.contentFull?" page-popup__content--full":""}`,children:t.jsx("div",{className:"pp-empty",children:n?.emptyMessage||M("training.noQuestions","\uBB38\uC81C\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4.")})}):null,Zt=E?t.jsxs(cu.Provider,{value:Mt,children:[qe?.pageTop?t.jsx("div",{className:"training-page-top",children:qe.pageTop}):null,t.jsx("div",{className:"training-steps",children:ct.map((te,fe)=>{const G=te;return o.cloneElement(G,{...G.props,_stepIndex:fe,_totalSteps:ct.length,_stepKey:`step-${fe}`,_pageIndex:Ke})})},`replay-${de}`),qe?.pageBottom?t.jsx("div",{className:"training-page-bottom",children:qe.pageBottom}):null]}):null,hn=o.useCallback(()=>{let te;if(A){const fe=$e,{results:G,correct:se,total:le}=bu($e);EC({items:SC(G),category:gu.has(A)?"sentence":"word",trainingType:A,entryPoint:B??"sentence",itemRef:N??null,correct:se,total:le,score:typeof fe?.score=="number"?fe.score:null,durationSeconds:Math.max(0,Math.round((Date.now()-H.current)/1e3)),dailyTotal:x??null}),te={correct:se,total:le,attempt:Re.current.length+1,previousAttempts:[...Re.current]}}wt(),Ge(()=>{typeof f=="function"&&f(te),typeof h=="function"&&h()})},[f,h,A,B,x,N,$e,We,Ge]),en=o.useCallback(()=>At(""),[At]),Cn=o.useCallback(()=>{Ge(()=>{typeof h=="function"&&h()})},[h,Ge]),In=t.jsxs("div",{className:`page-popup${Se?" page-popup--closing":""}`,role:"dialog","aria-modal":"true","aria-label":Pn,children:[t.jsxs("div",{ref:Ie,className:`page-popup__panel ${De?"":"page-popup__panel--measuring"} ${Pe==="center"?"page-popup__panel--center":Pe==="top"?"page-popup__panel--top":""}`,children:[t.jsx(ou,{title:Nn,subtitle:j?I.subtitle||I.label:Array.isArray(s)?s.join(" / "):void 0,desc:j?void 0:r,depth:j?I.depth:s,icon:j?I.icon:i,wrapperStyle:j?I.wrapperStyle:l,iconTooltip:j?I.iconTooltip:c,progressMax:st,progressIndex:Ke,pageIndex:Ke,pageCount:st,onBack:Cn,onClose:Cn}),t.jsx("div",{className:"page-popup__scroll",children:t.jsx("div",{className:`page-popup__content ${Pe==="center"?"page-popup__content--center":"page-popup__content--top"}${e.contentFull?" page-popup__content--full":""}`,children:E?Zt:j?Ht:typeof b=="function"?b({registerOnNext:He,registerOnResult:Qe,panelRef:Ie,setResultOverlay:We}):b})}),t.jsx(ru,{onSettings:C,onNext:Rn,onResult:un,useNoiseSettingBtn:!!(j?I.useNoiseSetting??!0:w),stepIndex:dt,stepCount:kt,pageIndex:Ke,pageCount:st,resultOpen:!!($e&&!$e.isEmpty)})]}),$e&&!$e.isEmpty&&(D??T3)({score:$e.score,results:$e.results||$e.answers||[],contextsLength:$e.results?$e.results.length:$e.answers?$e.answers.length:0,onReplay:()=>{if(H.current=Date.now(),$e!==Ln){const{correct:te,total:fe}=bu($e);Re.current.push({correct:te,total:fe})}if(wt(),Ae(te=>te+1),j){if(Ye(pr()),typeof n?.onReplay=="function")try{n.onReplay()}catch{}return}if(E){Ye(pr());return}try{const te=Ie.current&&Ie.current._childOnResult;typeof te=="function"&&te({replay:!0})}catch{}},onClose:hn,pending:$e===Ln}),$e?.isEmpty&&t.jsx("div",{className:"page-popup page-popup--result-empty",role:"dialog","aria-modal":"true","aria-label":M("training.result.eyebrow","\uD6C8\uB828 \uC644\uB8CC"),children: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${e.contentFull?" page-popup__content--full":""}`,children:t.jsx("div",{className:"page-popup__empty",children:M("training.result.eyebrow","\uD6C8\uB828 \uC644\uB8CC")})})}),t.jsx("div",{className:"page-popup__bottom",children:t.jsx(ce,{htmlType:"button",variant:"main",size:48,onClick:hn,label:M("training.result.done","\uC644\uB8CC")})})]})}),t.jsx(ra,{message:Et,position:"top",onClose:en})]}),fn=t.jsx(Mo.Provider,{value:Ue,children:In});return typeof document<"u"&&document.body?Xt.createPortal(fn,document.body):fn}const $n=M3;$n.Page=dr,$n.ListenStep=uu,$n.ConfirmStep=du,$n.ConfirmWithTextStep=pu,$n.OrderListStep=mu,$n.CardStep=hu,$n.CardOrderStep=B3;function L3({label:e,homonum:n}){const a=Xn()?.(e,n)??"",{imgRef:r,loading:s,hasImage:i,onLoad:l,onError:c}=xo(a);return i?t.jsxs("div",{className:"tooltip-word-image__cell",children:[s&&t.jsx("div",{className:"tooltip-word-image__spinner"}),t.jsx("img",{ref:r,src:a,alt:e,draggable:!1,style:{opacity:s?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 yu({words:e,anchorRect:n}){const a=o.useRef(null),[r,s]=o.useState(null);return o.useLayoutEffect(()=>{if(!n||!a.current)return;const{offsetWidth:i,offsetHeight:l}=a.current,c=window.innerWidth;let d=n.left+n.width/2-i/2,u=n.top-l-8;u<8&&(u=n.bottom+8),d=Math.max(8,Math.min(d,c-i-8)),s({left:d,top:u})},[n]),!n||e.length===0?null:Xt.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(i=>t.jsx(L3,{label:i.label,homonum:i.homonum},`${i.label}_${i.homonum??1}`))})}),document.body)}const $3=new Intl.Collator("ko");function R3({titleIcon:e,resultCount:n,resultUnit:a,searchQuery:r,items:s,groups:i,selected:l=[],onSelect:c,maxSelect:d,onClearSelection:u,onPrint:p,onPrintEmpty:m,className:h,emptyHint:f,sectionType:y="page",disc:C}){const{t:w,i18n:b}=Ce.useTranslation(),g=b.language?.startsWith("ko")??!1,{anchorRect:_,openAt:v,close:k}=wa(),[A,B]=o.useState(null),x=o.useCallback(()=>{k(),B(null)},[k]);sb(x,!!A);const N=(r??"").trim(),D=/^[^,[\]\s]+$/.test(N)?N:"",P=D.length>0,H=r===void 0&&n===void 0,M=P?"match":H?"original":"ganada",[z,j]=o.useState(()=>M),[S,I]=o.useState("50"),[W,Z]=o.useState(1),[U,q]=o.useState(P);U!==P&&(q(P),j(M));const K=z==="match"&&!P||z==="original"&&!H?M:z,L=o.useMemo(()=>[...P?[{value:"match",label:w("wordSearch.sort.match",{defaultValue:"\uC2DC\uC791 \uC6B0\uC120"})}]:[],...H?[{value:"original",label:w("wordSearch.sort.original",{defaultValue:"\uBC1B\uC740 \uC21C\uC11C"})}]:[],{value:"ganada",label:w("wordSearch.sort.ganada",{defaultValue:"\uAC00\uB098\uB2E4\uC21C \u2191"})},{value:"ganada_desc",label:w("wordSearch.sort.ganadaDesc",{defaultValue:"\uAC00\uB098\uB2E4\uC21C \u2193"})},{value:"syllable",label:w("wordSearch.sort.syllable",{defaultValue:"\uC74C\uC808 \uC218 \u2191"})},{value:"syllable_desc",label:w("wordSearch.sort.syllableDesc",{defaultValue:"\uC74C\uC808 \uC218 \u2193"})},{value:"grade",label:w("wordSearch.sort.grade",{defaultValue:"\uB4F1\uAE09\uC21C \u2191"})},{value:"grade_desc",label:w("wordSearch.sort.gradeDesc",{defaultValue:"\uB4F1\uAE09\uC21C \u2193"})}],[w,P,H]),E=o.useMemo(()=>["10","25","50","100"].map(re=>({value:re,label:w("wordSearch.pageSize",{count:Number(re),defaultValue:`${re}\uAC1C\uC529 \uBCF4\uAE30`})})),[w]),F=re=>re.words?.[0],R=o.useMemo(()=>{const re=[...D].length,he=mC(D),_e=new Map;return Me=>{let Ue=_e.get(Me);return Ue===void 0&&(Ue=he((Me.words?.[0]?.label??"").slice(0,re))?0:1,_e.set(Me,Ue)),Ue}},[D]),O=o.useCallback((re,he)=>{const _e=Ie=>F(Ie)?.label??"",Me=Ie=>F(Ie)?.syllables??[..._e(Ie)].length,Ue=Ie=>(Ie.words??[]).reduce((de,Ae)=>{const Re=parseInt(Ae.grade??"",10);return Number.isFinite(Re)&&Re<de?Re:de},999);switch(K){case"match":return R(re)-R(he)||$3.compare(_e(re),_e(he));case"ganada":return _e(re).localeCompare(_e(he),"ko");case"ganada_desc":return _e(he).localeCompare(_e(re),"ko");case"syllable":return Me(re)-Me(he)||_e(re).localeCompare(_e(he),"ko");case"syllable_desc":return Me(he)-Me(re)||_e(re).localeCompare(_e(he),"ko");case"grade":return Ue(re)-Ue(he)||_e(re).localeCompare(_e(he),"ko");case"grade_desc":return Ue(he)-Ue(re)||_e(re).localeCompare(_e(he),"ko");default:return 0}},[K,R]),$=o.useMemo(()=>s.slice().sort(O),[s,O]),Y=Number(S)||10,Q=o.useMemo(()=>(i??[]).flatMap(re=>re.items.slice().sort(O).map(he=>({item:he,label:re.label}))),[i,O]),X=i?Q.length:$.length,ie=Math.max(1,Math.ceil(X/Y)),be=Math.min(W,ie),ne=o.useMemo(()=>$.slice((be-1)*Y,be*Y),[$,be,Y]),oe=o.useMemo(()=>{if(!i)return null;const re=Q.slice((be-1)*Y,be*Y),he=new Map;for(const{item:_e,label:Me}of re)he.has(Me)||he.set(Me,[]),he.get(Me).push(_e);return[...he.entries()].map(([_e,Me])=>({label:_e,items:Me}))},[i,Q,be,Y]);o.useEffect(()=>{Z(1)},[z,S,X,r]);const V=X>0?t.jsxs("div",{className:"word-search-result-block__toolbar",children:[t.jsx(sn,{size:40,options:L,value:K,onChange:j,ariaLabel:w("wordSearch.sort.aria",{defaultValue:"\uC815\uB82C"})}),t.jsx(sn,{size:40,options:E,value:S,onChange:I,ariaLabel:w("wordSearch.pageSizeAria",{defaultValue:"\uD398\uC774\uC9C0 \uD06C\uAE30"})}),t.jsx(Qa,{page:be,totalPages:ie,onChange:Z})]}):void 0,ae=re=>{c&&c(re)},ue=n!==void 0&&a?t.jsxs(t.Fragment,{children:[w("wordSearch.resultTitlePrefix","\uCD1D "),t.jsx("span",{style:{color:"var(--color-main)"},children:n}),w("wordSearch.resultTitleSuffix",{unit:g?xC(a):a})]}):void 0,ge=n!==void 0&&n>0&&d!==void 0&&a?w("wordSearch.resultDisc",{unit:g?wC(a):a,max:d,selected:l.length}):void 0,me=C??ge;return t.jsxs(sa,{type:y,className:Ee("word-search-result-block",h),children:[t.jsxs("div",{className:"word-search-result-block__inner",children:[(ue||V||me)&&t.jsxs("div",{className:"word-search-result-block__head",children:[t.jsxs("div",{className:"word-search-result-block__head-main",children:[e&&t.jsx(Ze,{icon:e,className:"word-search-result-block__head-icon"}),ue&&t.jsx("span",{className:"word-search-result-block__title h3",children:ue})]}),V&&t.jsx("div",{className:"word-search-result-block__head-actions",children:V}),me&&t.jsx("div",{className:"word-search-result-block__head-disc body-3",children:me})]}),(i?i.length===0:s.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:w("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})]}),i?(oe??[]).map(re=>t.jsx("div",{className:"word-search-result-block__group",children:t.jsx("div",{className:"word-search-result-block__items",children:re.items.map(he=>{const _e=l.includes(he.id);return t.jsx("div",{onMouseEnter:Me=>{v(Me.currentTarget),B(he.words??[])},onMouseLeave:x,children:t.jsx(ce,{htmlType:"button",size:"word",align:"grid",label:(he.words??[]).map(Me=>Me.label),subLabel:(he.words??[]).some(Me=>Me.subLabel)?(he.words??[]).map(Me=>Me.subLabel):void 0,selected:_e,onClick:()=>ae(he.id),minWidth:200})},he.id)})})},re.label)):t.jsx("div",{className:"word-search-result-block__items",children:ne.map(re=>{const he=l.includes(re.id);return t.jsx("div",{onMouseEnter:_e=>{v(_e.currentTarget),B(re.words??[])},onMouseLeave:x,children:t.jsx(ce,{htmlType:"button",size:"word",align:"grid",label:(re.words??[]).map(_e=>_e.label),subLabel:(re.words??[]).some(_e=>_e.subLabel)?(re.words??[]).map(_e=>_e.subLabel):void 0,selected:he,onClick:()=>ae(re.id),minWidth:200})},re.id)})}),A&&_&&t.jsx(yu,{words:A,anchorRect:_})]}),ie>1&&t.jsx("div",{className:"word-search-result-block__pagination-bottom",children:t.jsx(Qa,{page:be,totalPages:ie,onChange:Z})}),(u||p)&&t.jsxs("div",{className:"word-search-result-block__actions",children:[u&&t.jsx(ce,{htmlType:"button",size:"56",type:"bar",label:w("common.resetSelection","\uC120\uD0DD \uCD08\uAE30\uD654"),selected:!1,disabled:l.length===0,onClick:l.length===0?void 0:u}),p&&t.jsx("div",{onClick:l.length===0?m:void 0,children:t.jsx(ce,{htmlType:"button",size:"56",type:"bar",variant:"main",label:w("wordTable.title","\uB2E8\uC5B4 \uD45C \uB9CC\uB4E4\uAE30"),disabled:l.length===0,onClick:l.length===0?void 0:p})})]})]})}function P3(e,n){return n.map(a=>{const r=typeof a=="string"?a:a.label,s=typeof a=="string"?void 0:a.displayLabel;return{label:r,value:e[r]??"",displayLabel:s}})}function I3({sections:e,selectedList:n,count:a,onCountChange:r,maxCount:s=4,minCount:i=1,combinationSections:l,combinationSectionsForSlot:c,onSelect:d,placeholder:u="-",className:p,title:m,titleIcon:h,disc:f,showInfoButton:y=!0,onClearPhoneme:C,onSearch:w,onSearchEmpty:b,searchDisabled:g=!1,searchLabel:_,searchChecking:v=!1,pairMode:k=!1,sectionType:A="page",beforeSearchContent:B,beforeContent:x,afterContent:N,hideCountControl:D=!1,ordinal:P=!1}){const{t:H}=Ce.useTranslation(),M=o.useMemo(()=>H("wordPairs.infoNotes",{returnObjects:!0}),[H]),z=o.useMemo(()=>Array.from({length:s-i+1},(R,O)=>{const $=i+O;return{key:String($),label:H("wordPairs.count",{n:$})}}),[H,s,i]),j=o.useMemo(()=>H("wordPairs.ordinals",{returnObjects:!0}),[H]),S=o.useCallback(R=>P?H("wordPairs.phonemeOrdinalLabel",{ordinal:j[R-1]??R}):a===1?H("wordPairs.phonemeSingleLabel","\uC74C\uC808"):H("wordPairs.phonemeN",{n:R}),[P,j,a,H]),I=o.useCallback(R=>P?H("wordPairs.phonemeContrastOrdinalLabel",{ordinal:j[R-1]??R}):a===1?H("wordPairs.phonemeContrastSingleLabel","\uB300\uB9BD \uC74C\uC808"):H("wordPairs.phonemeContrast",{n:R}),[P,j,a,H]),W=o.useCallback((R,O)=>O?t.jsxs(t.Fragment,{children:[R,t.jsx("span",{className:"phoneme-select-block__required",children:"*"})]}):R,[]),{anchorRect:Z,toggleAt:U,close:q}=wa(),K=o.useCallback(R=>r(Number(R)),[r]),L=tn("(max-width: 767px)"),E=o.useCallback(R=>P3(R,e).map(({label:O,value:$,displayLabel:Y})=>{const Q=!!$&&$!=="\uC5C6\uC74C";return t.jsxs("span",{className:Ee("phoneme-select-block__cell-jamo-part",$?"":"phoneme-select-block__cell-jamo-part--empty",Q?"":"phoneme-select-block__cell-jamo-part--no-label"),children:[t.jsx("span",{className:`phoneme-select-block__cell-jamo-char h1${$==="\uC5C6\uC74C"?" phoneme-select-block__cell-jamo-char--excluded":""}`,children:$==="\uC5C6\uC74C"?"x":$||u}),Q&&t.jsx("span",{className:"phoneme-select-block__cell-jamo-label caption-2",children:Y??O})]},O)}),[e,u]),F=t.jsxs(t.Fragment,{children:[t.jsx("div",{"data-tooltip-ignore":!0,children:t.jsx(ce,{htmlType:"button",size:40,type:L?"dot":void 0,icon:"info",label:L?void 0:H("wordPairs.caution","\uC720\uC758\uC0AC\uD56D"),ariaLabel:H("wordPairs.caution","\uC720\uC758\uC0AC\uD56D"),className:Z?"is-selected":void 0,"aria-expanded":!!Z,"aria-haspopup":"dialog",onClick:R=>U(R.currentTarget)})}),Z&&t.jsx(Vn,{title:H("wordPairs.caution","\uC720\uC758\uC0AC\uD56D"),items:M,anchorRect:Z,onClose:q})]});return t.jsxs(sa,{type:A,title:m,icon:h,disc:f,action:y?F:void 0,className:Ee("phoneme-select-block",p),children:[x,!D&&t.jsx("div",{className:"phoneme-select-block__controls",children:t.jsx(An,{options:z,value:String(a),onChange:K,size:40,className:"phoneme-select-block__count-control"})}),t.jsx("div",{className:"phoneme-select-block__cells",children:k?t.jsxs(t.Fragment,{children:[t.jsx("div",{className:"phoneme-select-block__cell-group",children:Array.from({length:a}).map((R,O)=>{const $=n[O*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:E($)})}),t.jsx("span",{className:"phoneme-select-block__cell-index caption-1",children:S(O+1)})]},O)})}),t.jsx("span",{className:"phoneme-select-block__cell-vs h3",children:H("wordPairs.phonemeSelect.vs","\uB300")}),t.jsx("div",{className:"phoneme-select-block__cell-group",children:Array.from({length:a}).map((R,O)=>{const $=n[O*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:E($)})}),t.jsx("span",{className:"phoneme-select-block__cell-index caption-1",children:I(O+1)})]},O)})})]}):n.map((R,O)=>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:E(R)})}),t.jsx("span",{className:"phoneme-select-block__cell-index caption-1",children:S(O+1)})]},O))}),(l||c)&&t.jsx("div",{className:"phoneme-select-block__panels",children:t.jsx("div",{className:"phoneme-select-block__detail",children:k?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((R,O)=>{const $=n[O*2]??{};return t.jsx(Bn,{title:W(S(O+1),O===0),sections:c?c($,O*2):l,selected:$,onSelect:d?.(O*2),align:"newline"},O)})}),t.jsx("div",{className:"phoneme-select-block__panel-group",children:Array.from({length:a}).map((R,O)=>{const $=n[O*2+1]??{};return t.jsx(Bn,{title:I(O+1),sections:c?c($,O*2+1):l,selected:$,onSelect:d?.(O*2+1),align:"newline"},O)})})]}):n.map((R,O)=>t.jsx(Bn,{title:W(S(O+1),O===0),sections:c?c(R,O):l,selected:R,onSelect:d?.(O),align:"newline"},O))})}),B&&t.jsx("div",{className:"phoneme-select-block__before-search",children:B}),(C||w||v)&&(()=>{const R=n.every(O=>Object.entries(O).every(([$,Y])=>!Y||$==="\uC885\uC131"&&Y==="\uC5C6\uC74C"));return t.jsxs("div",{className:"phoneme-select-block__search-row",onClick:R?b:void 0,children:[C&&t.jsx(ce,{htmlType:"button",size:"56",type:"bar",label:H("wordPairs.resetOptions","\uAC80\uC0C9 \uC635\uC158 \uCD08\uAE30\uD654"),selected:!1,disabled:R,onClick:R?void 0:C}),w?t.jsx(ce,{htmlType:"button",size:"56",type:"bar",variant:"main",icon:v?t.jsx("span",{className:"phoneme-select-block__spinner","aria-hidden":"true"}):void 0,label:_??H("wordSearch.searchButton","\uAC80\uC0C9\uD558\uAE30"),disabled:R||g||v,onDisabledClick:v?()=>{}:void 0,"aria-busy":v||void 0,onClick:w}):v?t.jsxs("div",{className:"phoneme-select-block__checking","aria-busy":"true",children:[t.jsx("div",{className:"phoneme-select-block__spinner"}),t.jsx("span",{className:"button-1 phoneme-select-block__checking-label",children:_??H("wordSearch.searchButton","\uAC80\uC0C9\uD558\uAE30")})]}):null]})})(),N]})}function F3({title:e,sections:n,selected:a,onSelect:r,collapsible:s,defaultCollapsed:i,collapsed:l,onCollapsedChange:c,headerSummary:d,headerAction:u,className:p}){const{t:m}=Ce.useTranslation();return t.jsx(Bn,{className:p,title:e??m("wordSearch.filterTitle","\uB2E8\uC5B4 \uAC80\uC0C9 \uC124\uC815"),sections:n,selected:a,onSelect:r,collapsible:s,defaultCollapsed:i,collapsed:l,onCollapsedChange:c,headerSummary:d,headerAction:u,align:"inline"})}function O3({title:e,headerAction:n,sections:a,selected:r,onSelect:s,className:i}){const{t:l}=Ce.useTranslation();return a.length===0?null:t.jsx(Bn,{className:i,title:e??l("training.filter.phonemeGroup",{defaultValue:"\uD6C8\uB828 \uC74C\uC808"}),headerAction:n,sections:a,selected:r,onSelect:s,align:"newline"})}function H3({title:e,mode:n,onModeChange:a,matchMode:r,onMatchModeChange:s,positionCount:i,onPositionCountChange:l,inputMode:c,onInputModeChange:d,className:u}){const{t:p}=Ce.useTranslation(),m={searchMode:p("wordPairs.filter.searchModeLabel","\uB300\uB9BD \uBC29\uC2DD"),phonemeOrder:p("wordPairs.filter.phonemeOrder","\uC785\uB825 \uC74C\uC808 \uC704\uCE58"),count:p("wordPairs.filter.countLabel","\uC785\uB825 \uC74C\uC808 \uAC2F\uC218"),inputMode:p("wordPairs.filter.inputModeLabel","\uC785\uB825 \uBC29\uC2DD"),orderAny:p("wordPairs.filter.orderAny","\uBB34\uAD00"),orderMatch:p("wordPairs.filter.orderMatch","\uC77C\uCE58"),include:p("wordPairs.mode.include","\uC74C\uC18C \uD3EC\uD568"),pick:p("wordPairs.mode.pick","\uC74C\uC18C \uB300\uB9BD"),explicit:p("wordPairs.mode.contrast","\uC74C\uC18C \uB300\uB9BD \uC9C0\uC815"),charInput:p("wordPairs.input.char","\uAE00\uC790 \uC120\uD0DD"),pronInput:p("wordPairs.input.pron","\uBC1C\uC74C \uC120\uD0DD")},h=w=>p("wordPairs.count",{n:w}),f=[{label:m.searchMode,items:[m.include,m.pick,m.explicit],display:"segmented",labelAction:t.jsx(Da,{title:p("wordPairs.mode.infoTitle","\uB300\uB9BD \uBC29\uC2DD"),items:[p("wordPairs.mode.infoInclude","\uC74C\uC18C \uD3EC\uD568 \u2014 \uC120\uD0DD\uD55C \uC74C\uC18C\uAC00 \uBAA8\uB450 \uB4E4\uC5B4\uAC04 \uB2E8\uC5B4\uC640 \uADF8 \uB300\uB9BD\uC30D\uC744 \uCC3E\uC544\uC694."),p("wordPairs.mode.infoPick","\uC74C\uC18C \uB300\uB9BD \u2014 \uC120\uD0DD\uD55C \uC74C\uC18C\uAC00 \uB300\uB9BD\uC30D \uB450 \uB2E8\uC5B4\uC758 \uC2E4\uC81C \uCC28\uC774\uC810\uC77C \uB54C\uB9CC \uB9E4\uCE6D\uB3FC\uC694."),p("wordPairs.mode.infoContrast","\uC74C\uC18C \uB300\uB9BD \uC9C0\uC815 \u2014 \uAE30\uC900 \uB2E8\uC5B4\uC640 \uB300\uB9BD \uB2E8\uC5B4\uC758 \uC74C\uC18C\uB97C \uAC01\uAC01 \uC9C1\uC811 \uC120\uD0DD\uD574 \uB300\uB9BD\uC30D\uC744 \uCC3E\uC544\uC694.")]})},{label:m.phonemeOrder,items:[m.orderAny,m.orderMatch],display:"segmented",labelAction:t.jsx(Da,{items:p("wordPairs.filter.phonemeOrderInfo",{returnObjects:!0})})},{label:m.count,items:[h(1),h(2)],display:"segmented"},{label:m.inputMode,items:[m.charInput,m.pronInput],display:"segmented",labelAction:t.jsx(Da,{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.")]})}],y={[m.searchMode]:n==="explicit"?m.explicit:n==="pick"?m.pick:m.include,[m.phonemeOrder]:r==="ordered"?m.orderMatch:m.orderAny,[m.count]:h(i),[m.inputMode]:c==="phoneme"?m.pronInput:m.charInput},C=(w,b)=>{b===m.searchMode?a(w===m.explicit?"explicit":w===m.pick?"pick":"include"):b===m.phonemeOrder?s(w===m.orderMatch?"ordered":"unordered"):b===m.count?l(w===h(2)?2:1):b===m.inputMode&&d(w===m.pronInput?"phoneme":"word")};return t.jsx(Bn,{className:u,title:e??p("wordPairs.filter.searchOptionsTitle","\uB300\uB9BD \uC124\uC815"),sections:f,selected:y,onSelect:C,align:"inline"})}function z3(e){const{title:n,items:a,columns:r,gridTemplateColumns:s,mobileGridTemplateColumns:i,searchPlaceholder:l,searchFn:c,defaultSortKey:d,defaultSortAsc:u=!0,selectedId:p,selectedIds:m,onSelect:h,onClose:f,pageSizeOptions:y=[10,25,50,100],initialPageSize:C,emptyText:w,countLabel:b,topContent:g,className:_=""}=e,{t:v}=Ce.useTranslation(),k=l??v("common.search","\uAC80\uC0C9"),A=w??v("common.emptyList","\uD56D\uBAA9\uC774 \uC5C6\uC2B5\uB2C8\uB2E4."),[B,x]=o.useState(""),[N,D]=o.useState(d??r[0]?.key??""),[P,H]=o.useState(u),[M,z]=o.useState(String(C??y[0]??10)),[j,S]=o.useState(1);o.useEffect(()=>{S(1)},[B,M]);const I=c!==null,W=o.useCallback(($,Y)=>{if(!Y)return!0;const Q=Y.toLowerCase();return r.some(X=>{const ie=$[X.key];return ie==null?!1:String(ie).toLowerCase().includes(Q)})},[r]),Z=c??W,U=o.useMemo(()=>{const $=I?a.filter(Y=>Z(Y,B)):a;return N?[...$].sort((Y,Q)=>{const X=Y[N],ie=Q[N];return X===ie?0:Xr(X,ie,P)}):$},[a,B,N,P,I,Z]),q=Math.max(1,Math.ceil(U.length/Number(M)));j>q&&S(q);const K=Math.min(j,q),L=U.slice((K-1)*Number(M),K*Number(M)),E=o.useCallback($=>{N===$?H(Y=>!Y):(D($),H(!0)),S(1)},[N]),F=o.useMemo(()=>{if(typeof b=="function"){const $=U.length,Y=b($);if(typeof Y=="string"){const Q=Y.lastIndexOf(String($));if(Q>=0)return{prefix:Y.slice(0,Q),suffix:Y.slice(Q+String($).length)}}return{label:Y}}if(typeof b=="string"&&b.includes("{n}")){const[$,Y]=b.split("{n}");return{prefix:$,suffix:Y}}return{prefix:v("common.totalCountPrefix","\uCD1D "),suffix:v("common.totalCountSuffix","\uAC1C")}},[b,U.length,v]),R=o.useMemo(()=>r.map($=>({label:$.label,onClick:$.sortable!==!1?()=>E($.key):void 0,className:$.className,sortDir:$.sortable!==!1&&N===$.key?P?"asc":"desc":null})),[r,N,P,E]),O=o.useMemo(()=>y.map($=>({value:String($),label:v("common.pageSizeLabel",{n:$})})),[y,v]);return t.jsxs(Tn,{className:`popup-list ${_}`,title:n,onClose:f,children:[g,"label"in F&&t.jsx("p",{className:"toolbar__count body-1",children:F.label}),t.jsx(lo,{count:"label"in F?void 0:{value:U.length,prefix:F.prefix,suffix:F.suffix},search:I?{value:B,onChange:x,placeholder:k}:void 0,pageSize:{options:O,value:M,onChange:z},pagination:{page:K,total:q,onChange:S}}),t.jsx(bo,{size:"medium",gridTemplateColumns:s,mobileGridTemplateColumns:i,resizable:!0,fields:R,items:L,onRowClick:h,renderRow:$=>{const Y=m!=null?$.id!=null&&m.has($.id):p!=null&&$.id===p;return r.map(Q=>({content:Q.render?Q.render($):$[Q.key]??"",className:Ee(Q.className,Y&&"popup-list__row--selected")}))},empty:A})]})}function vu(e){const{title:n,message:a,topContent:r,details:s,children:i,confirmLabel:l,cancelLabel:c,hideCancel:d=!1,extraAction:u,confirmVariant:p="main",confirmDisabled:m=!1,onConfirm:h,closeOnConfirm:f=!0,onClose:y,inline:C,size:w="small",className:b,initialFocus:g="close"}=e,{t:_}=Ce.useTranslation(),v=o.useRef(null);o.useEffect(()=>{if(C||g==="close")return;const D=v.current?.closest(".popup-panel"),P=Array.from(D?.querySelectorAll(".popup-footer--buttons button")??[]),H=g==="confirm"?P[P.length-1]:d?void 0:P[u?1:0];H&&!H.disabled&&H.focus()},[]);const k=o.useRef(!1),[A,B]=o.useState(!1),x=D=>{let P=!1;return{close:()=>{P=!0,D()},\uB2EB\uC558\uB098:()=>P}},N=async D=>{if(k.current)return;k.current=!0;const P=typeof document<"u"?document.activeElement:null;B(!0);let H=!1;try{H=await D()}catch(M){typeof console<"u"&&console.error(M)}finally{H||(k.current=!1,B(!1),requestAnimationFrame(()=>{const M=document.activeElement;(!M||M===document.body)&&P?.isConnected&&P.focus()}))}};return t.jsxs(Tn,{title:n,onClose:y,closeDisabled:A,inline:C,size:w,className:Ee("confirm-popup",r!=null&&"confirm-popup--has-top",b),buttons:[...u?[{label:u.label,variant:u.variant??"default",disabled:u.disabled||A,onClick:async({closeWithAnimation:D})=>{await N(async()=>{const P=x(D);await u.onClick(P.close);const H=u.closeOnClick??!0;return H&&D(),H||P.\uB2EB\uC558\uB098()})}}]:[],...d?[]:[{label:c??_("common.cancel","\uCDE8\uC18C"),variant:"default",disabled:A,onClick:({closeWithAnimation:D})=>D()}],{label:l??_("common.confirm","\uD655\uC778"),variant:p,disabled:m||A,onClick:async({closeWithAnimation:D})=>{await N(async()=>{const P=x(D);return await h(P.close),f&&D(),f||P.\uB2EB\uC558\uB098()})}}],children:[r!=null&&t.jsx("div",{className:"confirm-popup__top",children:r}),s&&s.length>0&&t.jsx(ur,{children:s.map((D,P)=>t.jsx(Mn,{label:D.label,children:t.jsx("span",{className:"panel-row__text body-2",children:D.value})},P))}),t.jsx("p",{ref:v,className:"body-2 confirm-popup__message",children:a}),i]})}function V3(e,n,a={}){const{t:r}=Ce.useTranslation(),[s,i]=o.useState(!1),l=o.useRef(!1),c=o.useCallback(()=>{l.current=!0},[]),d=o.useCallback(()=>l.current?(l.current=!1,!0):e?(i(!0),!1):!0,[e]),u=s?t.jsx(vu,{title:a.title??r("common.discardConfirm.title","\uC785\uB825\uC744 \uCDE8\uC18C\uD560\uAE4C\uC694?"),message:a.message??r("common.discardConfirm.body","\uC800\uC7A5\uD558\uC9C0 \uC54A\uC73C\uBA74 \uC9C0\uAE08\uAE4C\uC9C0 \uC785\uB825\uD55C \uB0B4\uC6A9\uC774 \uC0AC\uB77C\uC9D1\uB2C8\uB2E4."),confirmLabel:a.confirmLabel??r("common.discardConfirm.confirm","\uC785\uB825 \uCDE8\uC18C"),confirmVariant:"danger",onConfirm:()=>{i(!1),n()},onClose:()=>i(!1)}):null;return{beforeClose:d,discardPopup:u,allowClose:c}}function W3({onApply:e,onCancel:n}){const{t:a}=Ce.useTranslation(),[r,s]=o.useState(""),[i,l]=o.useState(!1),[c,d]=o.useState(null),u=o.useRef(null);o.useEffect(()=>{u.current?.focus()},[]);const p=o.useCallback(async f=>{const y=r.trim();if(y){l(!0),d(null);try{await e(y),f()}catch(C){d(ni(C)),l(!1),requestAnimationFrame(()=>u.current?.focus())}}},[r,e]),m=o.useCallback((f,y)=>{f.key==="Enter"&&!f.nativeEvent.isComposing&&p(y)},[p]),h=f=>{s(f.target.value),d(null)};return t.jsx(Tn,{className:"coupon-input-popup",title:a("usage.couponButton","\uCFE0\uD3F0 \uC785\uB825"),size:"small",onClose:n,closeDisabled:i,buttons:[{label:a("common.cancel","\uCDE8\uC18C"),variant:"default",disabled:i,onClick:({closeWithAnimation:f})=>f()},{label:a("coupons.applyButton","\uC801\uC6A9"),variant:"main",disabled:!r.trim()||i,onClick:({closeWithAnimation:f})=>{p(f)}}],children:({closeWithAnimation:f})=>t.jsxs(t.Fragment,{children:[t.jsx("input",{ref:u,className:"coupon-input-popup__input body-2","aria-label":a("coupons.input.label","\uCFE0\uD3F0 \uCF54\uB4DC"),placeholder:a("coupons.input.placeholder","\uCFE0\uD3F0 \uCF54\uB4DC \uC785\uB825"),value:r,onChange:h,onKeyDown:y=>m(y,f),disabled:i,autoComplete:"off",spellCheck:!1}),c&&t.jsx("p",{className:"coupon-input-popup__error caption-1",role:"alert",children:c})]})})}const xu=["var(--color-main)","var(--color-sub)"],q3=2e3;function U3(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 Yo({active:e=!1,count:n=40,duration:a=2e3,strength:r=1,onComplete:s,trigger:i=0}){const l=o.useMemo(()=>{const C=Math.floor(n/2),w=n-C,b=(g,_)=>Array.from({length:g}).map((v,k)=>{const A=6+Math.random()*12,B=Math.round(Math.min(18,A*Math.min(1.5,1+r*.4))),x=xu[Math.floor(Math.random()*xu.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,H=Math.cos(P)*D,M=Math.sin(P)*D*1.35,z=Math.random()*720-360,j=(1200+Math.random()*3e3)*Math.min(1.6,1+r*.3),S=Math.random()>.7?"50%":"3px";return{id:`${_}-${k}`,side:_,size:B,color:x,delay:N,vx:H,vy:M,angularVel:z,life:j,borderRadius:S}});return[...b(C,"left"),...b(w,"right")]},[n,r]),c=o.useRef(null),d=o.useRef({}),u=o.useRef(null),p=o.useRef(s);o.useEffect(()=>{p.current=s},[s]);const m=o.useRef(null),h=o.useRef(null),f=()=>{if(typeof document>"u")return null;let C=document.querySelector("[data-ihab-effect-root]");return C||(C=document.createElement("div"),C.className="app-effect",C.dataset.ihabEffectRoot="",C.style.position="fixed",C.style.inset="0",C.style.pointerEvents="none",C.style.zIndex="99998",document.body.appendChild(C)),C};if(typeof document<"u"&&h.current==null&&(h.current=f()),o.useEffect(()=>{if(!e)return;if(typeof window<"u"&&window.matchMedia?.("(prefers-reduced-motion: reduce)").matches){const q=setTimeout(()=>p.current?.(),0);return()=>clearTimeout(q)}const C=1200,w=performance.now(),b=h.current&&h.current!==document.body?h.current.getBoundingClientRect():null,g=Math.max(60,(window.innerHeight||800)*.05),_=q=>Math.max(40,(q||window.innerWidth)*.02),v=b?.width||window.innerWidth||375,k=b?.height||window.innerHeight||812,A=q=>{const K=[...q].sort((L,E)=>L-E);return K[Math.floor(K.length/2)]||1},B=A(l.map(q=>Math.abs(q.vy))),x=A(l.map(q=>Math.abs(q.vx))),N=Math.sqrt(2*C*(k*.72+g))/B,D=B*N/C,P=v*.5/(x*D),H=(q,K,L)=>Math.min(L,Math.max(K,q)),M=H(N,.8,2.4),z=H(P,.7,2.2),j=a>0?a/q3:1,S=l.map(q=>({...q,life:q.life*j,vx:q.vx*z,vy:q.vy*M,startTime:w+q.delay,ended:!1})),I=b?{x:b.left-_(b.width),y:b.top+b.height+g}:{x:-_(window.innerWidth),y:window.innerHeight+g},W=b?{x:b.left+b.width+_(b.width),y:b.top+b.height+g}:{x:window.innerWidth+_(window.innerWidth),y:window.innerHeight+g},Z=q=>{let K=!1;for(const L of S){const E=d.current[L.id];if(!E||!E)continue;if(q<L.startTime){E.style.display="none",K=!0;continue}if(!L._inited){const ne=L.side==="left"?I.x:W.x,oe=L.side==="left"?I.y:W.y;E.style.left=`${ne}px`,E.style.top=`${oe}px`,E.style.transform="translate3d(0px, 0px, 0)",E.style.display="block",E.style.zIndex="100000",typeof L.color=="string"&&L.color.startsWith("var(")&&(E.style.background=U3(E,L.color)??"#FF0060"),L._inited=!0}const F=(q-L.startTime)/1e3;if(F<0)continue;const R=L.life/1e3;if(F>=R){E.style.opacity="0",E.style.display="none",L.ended=!0;continue}K=!0;const O=L.side==="left"?I.x:W.x,$=L.side==="left"?I.y:W.y,Y=O+L.vx*F,Q=$+L.vy*F+.5*C*F*F,X=(L.angularVel||0)*F,ie=Y-O,be=Q-$;E.style.transform=`translate3d(${ie}px, ${be}px, 0) rotate(${X}deg)`,E.style.opacity=`${Math.max(0,1-F/R)}`}K?u.current=requestAnimationFrame(Z):p.current?.()};u.current=requestAnimationFrame(Z);const U=setTimeout(()=>{try{if((h.current?h.current.querySelectorAll(".confetti"):document.querySelectorAll(".confetti")).length===0&&!document.querySelector(".party-container")){const q=document.createElement("div");q.className="party-container",q.style.position="fixed",q.style.inset="0",q.style.pointerEvents="none",q.style.overflow="visible",q.style.zIndex="2147483647";for(const K of l){const L=document.createElement("span");L.className=`confetti confetti--${K.side}`,L.setAttribute("aria-hidden","true"),L.style.display="none",L.style.position="fixed",L.style.left="0px",L.style.top="0px",L.style.width=`${K.size}px`,L.style.height=`${Math.max(4,K.size*.6)}px`,L.style.background=K.color,L.style.borderRadius=K.borderRadius,L.style.transform="translate3d(0,0,0)",L.style.opacity="0",q.appendChild(L),d.current[K.id]=L}(document.body||h.current).appendChild(q),m.current=q}}catch{}},300);return()=>{if(u.current&&cancelAnimationFrame(u.current),clearTimeout(U),m.current){try{m.current.remove()}catch{}m.current=null}}},[e,a,i,l]),!e)return null;const y=t.jsx("div",{className:"party-container",ref:c,children:l.map(C=>t.jsx("span",{"aria-hidden":!0,ref:w=>{d.current[C.id]=w},className:`confetti confetti--${C.side}`,style:{width:`${C.size}px`,height:`${Math.max(4,C.size*.6)}px`,background:C.color,borderRadius:C.borderRadius}},`${C.id}-${i}`))});return typeof document<"u"?Xt.createPortal(y,h.current||document.body):y}const Zo=e=>typeof e=="number"&&Number.isFinite(e)&&e>0?e:void 0;function G3({trigger:e=0,active:n=!1}){const[a,r]=o.useState(null);o.useEffect(()=>{if(typeof window>"u")return;const i=l=>{const c=l.detail??{};r(d=>({n:(d?.n??0)+1,count:Zo(c.count),strength:Zo(c.strength),duration:Zo(c.duration)}))};return window.addEventListener("party:trigger",i),()=>window.removeEventListener("party:trigger",i)},[]);const s=o.useCallback(()=>r(null),[]);return t.jsxs(t.Fragment,{children:[t.jsx(Yo,{active:n,trigger:e}),a&&t.jsx(Yo,{active:!0,trigger:a.n,count:a.count,strength:a.strength,duration:a.duration,onComplete:s})]})}function K3({title:e,sub:n,rightAction:a,titleAction:r,badge:s,badgeVariant:i="default",documentTitle:l,onBack:c,backLabel:d,wrap:u=!1}){const{t:p}=Ce.useTranslation();qg(typeof e=="string"?e:l??null);const m=d??p("common.back","\uB4A4\uB85C");return t.jsxs("div",{className:u?"page-title page-title--wrap":"page-title",children:[t.jsxs("div",{className:"page-title__main",children:[t.jsxs("div",{className:"page-title__title-row",children:[c&&t.jsx(ce,{htmlType:"button",className:"page-title__back",size:48,type:"dot",icon:"chevron-left",iconSize:"large",useBorder:!1,iconColor:"var(--color-text-primary)",ariaLabel:m,showTooltipInfo:m,onClick:c}),t.jsx("h1",{className:"page-title__title h1",children:e}),s&&t.jsx("div",{className:"page-title__badge",children:t.jsx(bt,{label:s,size:"small",variant:i,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 Y3(e){return e??""}const _u=o.createContext({words:[],loading:!1});function Z3(){return o.useContext(_u)}function X3({words:e,loading:n,error:a,statusMessage:r,localVersion:s,remoteVersion:i,progress:l,clearAndRefetch:c,checkRemoteVersion:d,children:u}){return t.jsx(_u.Provider,{value:{words:e,loading:n,error:a,statusMessage:r,localVersion:s,remoteVersion:i,progress:l,clearAndRefetch:c,checkRemoteVersion:d},children:u})}function J3({items:e,actions:n,columns:a,flat:r=!1,className:s,style:i}){const l=a??e.length;return t.jsx("section",{className:Ee("summary-strip",r&&"summary-strip--flat",s),style:{"--summary-strip-cols":String(l),...i},children:t.jsxs("div",{className:"summary-strip__row",children:[t.jsx("div",{className:"summary-strip__items",children:e.map((c,d)=>t.jsxs("div",{className:"summary-strip__item",children:[t.jsx("p",{className:"summary-strip__label caption-1",children:c.label}),t.jsx("p",{className:"summary-strip__value body-3b",title:typeof c.value=="string"||typeof c.value=="number"?String(c.value):void 0,children:c.value})]},d))}),n&&t.jsx("div",{className:"summary-strip__actions",children:n})]})})}const Q3=(e,n)=>`${e} / ${n}`;function e7({blocks:e,sectionTitles:n,logo:a,footer:r,pageLabel:s=Q3,pageWidth:i,pageHeight:l,margin:c,className:d,style:u}){const{t:p}=Ce.useTranslation(),m=o.useRef(null),h=o.useRef(null),f=o.useRef(null),y=o.useRef(null),[C,w]=o.useState(null),[b,g]=o.useState(!1);o.useEffect(()=>{const j=m.current;if(!j)return;const S=()=>g(j.scrollWidth>j.clientWidth+1);if(S(),typeof ResizeObserver>"u")return;const I=new ResizeObserver(S);return I.observe(j),()=>I.disconnect()},[C]);const _=e.map(j=>`${j.id}\0${j.section??""}\0${j.group??""}`).join(""),v=C&&C.shape===_?C.pages:null,[k,A]=o.useState(0);o.useEffect(()=>{const j=y.current;if(!j||typeof ResizeObserver>"u")return;const S=new ResizeObserver(()=>A(j.offsetHeight));return S.observe(j),()=>S.disconnect()},[]);const[B,x]=o.useState(0);o.useEffect(()=>{const j=h.current;if(!j||typeof ResizeObserver>"u")return;let S=null;const I=typeof requestAnimationFrame=="function"?U=>requestAnimationFrame(U):U=>setTimeout(U,16),W=typeof cancelAnimationFrame=="function"?cancelAnimationFrame:U=>clearTimeout(U),Z=new ResizeObserver(()=>{S==null&&(S=I(()=>{S=null,x(U=>U+1)}))});return Array.from(j.children).forEach(U=>Z.observe(U)),()=>{Z.disconnect(),S!=null&&W(S)}},[_]),o.useLayoutEffect(()=>{const j=h.current,S=y.current;if(!j||!S)return;const I=R=>R.getBoundingClientRect().height||R.offsetHeight,W=new Map;f.current?.querySelectorAll("[data-chrome-section]").forEach(R=>{W.set(R.dataset.chromeSection??"",I(R))});const Z=R=>I(S)-(W.get(R??"")??0),U=Array.from(j.children).map(R=>I(R)),q=[];e.forEach((R,O)=>{const $=q[q.length-1],Y=$?e[$[0]]:void 0;Y&&R.group!=null&&Y.group===R.group&&Y.section===R.section?$.push(O):q.push([O])});const K=[];let L=[],E=0;const F=()=>{L.length&&K.push(L),L=[],E=0};q.forEach(R=>{const O=R.reduce((Y,Q)=>Y+U[Q],0),$=Z(e[R[0]].section);L.length&&e[L[0]].section!==e[R[0]].section&&F(),O>$?R.forEach(Y=>{L.length&&E+U[Y]>$+.01&&F(),L.push(Y),E+=U[Y]}):(L.length&&E+O>$+.01&&F(),R.forEach(Y=>L.push(Y)),E+=O)}),F(),w(R=>R&&R.shape===_&&JSON.stringify(R.pages)===JSON.stringify(K)?R:{shape:_,pages:K})},[_,k,i,l,c,B]);const N=ro,D=N,P=r??t.jsxs(t.Fragment,{children:[t.jsx("img",{src:D,alt:"IHAB",className:"report-doc__logo"}),"\xA9 IHAB, Inc. All rights reserved."]}),H=(j,S,I)=>({header:t.jsxs("div",{className:"report-doc__header",children:[t.jsx("h2",{className:"report-doc__title h3b",children:I!=null&&n?.[I]||null}),a]}),footer:t.jsxs("div",{className:"report-doc__footer caption-1",children:[t.jsx("span",{className:"report-doc__footer-left",children:P}),t.jsx("span",{className:"report-doc__page-no",children:s(j,S)})]})}),M=Array.from(new Set(e.map(j=>j.section??""))),z={...i?{"--report-page-w":i}:null,...l?{"--report-page-h":l}:null,...c?{"--report-margin":c}:null,...u};return t.jsxs("div",{ref:m,className:Ee("report-doc",d),style:z,tabIndex:b?0:void 0,role:b?"group":void 0,"aria-label":b?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:y,className:"report-doc__ruler"}),t.jsx("div",{ref:f,children:M.map(j=>{const S=H(1,1,j||void 0);return t.jsxs("div",{"data-chrome-section":j,children:[S.header,S.footer]},j)})}),t.jsx("div",{ref:h,className:"report-doc__measure-blocks",children:e.map(j=>t.jsx("div",{children:j.content},j.id))})]}),v&&t.jsx("div",{className:"report-doc__pages",children:v.map((j,S)=>{const{header:I,footer:W}=H(S+1,v.length,e[j[0]].section);return t.jsxs("section",{className:"report-doc__page",children:[I,j.map(Z=>t.jsx("div",{children:e[Z].content},e[Z].id)),W]},S)})})]})}function t7({title:e,fields:n,columns:a=4,className:r,style:s}){return t.jsxs("div",{className:Ee("report-info",r),style:{"--report-info-cols":String(a),...s},children:[e&&t.jsx("p",{className:"report-info__title h5b",children:e}),t.jsx("div",{className:"report-info__grid",children:n.map((i,l)=>t.jsxs("div",{className:"report-info__field body-2",children:[t.jsx("span",{className:"report-info__label body-3",children:i.label}),t.jsx("span",{className:"report-info__value",children:i.value})]},l))})]})}const Kn=new Map;let mr=null;const n7=12;function a7(e){for(let n=e.parentElement;n&&n!==document.body;n=n.parentElement){const a=window.getComputedStyle(n);if(a.transform&&a.transform!=="none"||a.filter&&a.filter!=="none"||a.perspective&&a.perspective!=="none"||/paint|layout|strict|content/.test(a.contain||""))return n}return document}function hr(){const e=new Map;for(const n of Kn.keys()){if(!n.isConnected)continue;const a=a7(n),r=e.get(a)??[];r.push(n),e.set(a,r)}for(const n of e.values()){n.sort((r,s)=>r.compareDocumentPosition(s)&Node.DOCUMENT_POSITION_FOLLOWING?-1:1);let a=0;for(const r of n){a>0?r.style.setProperty("--update-alert-stack-offset",`${a}px`):r.style.removeProperty("--update-alert-stack-offset");const s=r.getBoundingClientRect().height;s>0&&(a+=s+n7)}}}function r7(e){return typeof window>"u"?()=>{}:(Kn.set(e,(Kn.get(e)??0)+1),Kn.get(e)===1&&typeof ResizeObserver<"u"&&(mr??(mr=new ResizeObserver(()=>hr())),mr.observe(e)),hr(),()=>{const n=(Kn.get(e)??1)-1;if(n>0){Kn.set(e,n),hr();return}Kn.delete(e),mr?.unobserve(e),e.style.removeProperty("--update-alert-stack-offset"),hr()})}function o7({title:e,message:n,actionLabel:a,onAction:r,icon:s,onClose:i,className:l=""}){const{t:c}=Ce.useTranslation(),d=a??c("common.update","\uC5C5\uB370\uC774\uD2B8"),u=o.useRef(null),p=o.useRef(!1);return o.useLayoutEffect(()=>{const m=u.current,h=m?.parentElement?.closest(".update-alert-stack")??m,f=h?r7(h):null;return()=>{f?.(),p.current&&m&&m.contains(document.activeElement)&&Ua(m)}},[]),t.jsxs("div",{ref:u,className:Ee("update-alert",l),role:"alert",children:[i&&t.jsx("button",{type:"button",className:"update-alert__close",onClick:()=>{p.current=!0,i()},"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:s??t.jsx(cs,{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(ce,{htmlType:"button",size:32,variant:"main",shape:"pill",className:"update-alert__action",onClick:r,children:d})]})}function s7({title:e,description:n,topActions:a,children:r,footerLeft:s,footerRight:i,onClick:l,draggable:c,onDragStart:d,onDragEnd:u,className:p}){const m=s!=null||i!=null,h=r!=null&&r!==!1,f=o.useCallback(y=>{l&&y.target===y.currentTarget&&(y.key==="Enter"||y.key===" ")&&(y.preventDefault(),l())},[l]);return t.jsxs("div",{className:Ee("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:d,onDragEnd:u,children:[t.jsxs("div",{className:"training-card__header",children:[t.jsxs("div",{className:"training-card__title-row",children:[typeof e=="string"?t.jsx("h3",{className:"training-card__title h4",children:e}):e,a!=null&&t.jsx("div",{className:"training-card__top-actions",onClick:y=>y.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:" "})]}),h&&t.jsx("div",{className:"training-card__body",children:r}),m&&t.jsxs("div",{className:"training-card__footer",children:[s!=null&&t.jsx("div",{className:"training-card__footer-left",children:s}),i!=null&&t.jsx("div",{className:"training-card__meta",children:i})]})]})}function i7({title:e,count:n,collapsed:a=!1,onToggle:r,sort:s,actions:i,empty:l=!1,emptyContent:c,dragOver:d=!1,onDragOver:u,onDragLeave:p,onDrop:m,children:h,className:f}){const{t:y}=Ce.useTranslation(),C=r!=null,w=Ee("training-card-group",d&&"training-card-group--dragover",a&&"training-card-group--collapsed",C&&"training-card-group--collapsible",f);return t.jsxs("div",{className:w,onDragOver:u,onDragLeave:p,onDrop:m,children:[t.jsxs("header",{className:"training-card-group__header",children:[C&&t.jsx(ce,{htmlType:"button",size:40,type:"dot",variant:"transparent-gray",useBorder:!1,icon:a?"chevron-right":"chevron-down",ariaLabel:a?y("common.expand","\uD3BC\uCE58\uAE30"):y("common.collapse","\uC811\uAE30"),className:"training-card-group__chevron","aria-expanded":!a,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}),(s||i!=null)&&t.jsxs("span",{className:"training-card-group__actions",onClick:b=>b.stopPropagation(),children:[s&&t.jsx(sn,{size:40,options:s.options,value:s.value,placeholder:s.placeholder,onChange:s.onChange}),i]})]}),!a&&(l?t.jsx("div",{className:"training-card-group__empty body-3",children:c}):t.jsx("div",{className:"training-card-group__grid",children:h}))]})}const l7="speechear:saved_word_tables";function c7(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 u7(){try{const e=localStorage.getItem(l7);if(!e)return[];const n=JSON.parse(e);return Array.isArray(n)?n.filter(c7):[]}catch{return[]}}function wu(e){return{label:e.word,subLabel:e.pronunciation,colloquialLabel:e.colloquialPronunciation,homonum:e.homonum,grade:e.grade,syllables:[...e.word].length,pos:e.pos,wordType:e.wordType}}function Xo(e){return e.map(n=>n.homonum!=null?`${n.word}#${n.homonum}`:n.word).join("|")}function d7(e){const n=new Set;return e.map(a=>{let r=a.id;for(let s=2;n.has(r);s++)r=`${a.id}~${s}`;return n.add(r),r===a.id?a:{...a,id:r}})}function p7({title:e,titleIcon:n,disc:a,filterTitle:r,filterCollapsible:s,filterDefaultCollapsed:i,filterCollapsed:l,onFilterCollapsedChange:c,filterHeaderSummary:d,brand:u,code:p,items:m,onSaveComplete:h,onLoad:f,onRemoveItem:y,onReset:C,resetLabel:w,saveButtonLabel:b,secondarySaveButtonLabel:g,onReorder:_,showCellCount:v,onAddItem:k,className:A,renderSavePopup:B,renderWordSearch:x,hideControls:N,saveOnly:D,tableName:P,nameValue:H,onNameChange:M,descriptionValue:z,onDescriptionChange:j,namePlaceholder:S,descriptionPlaceholder:I,existingNames:W,editingName:Z,onCancel:U,initialItemsPerPage:q,renderCellAction:K,actionsLeftExtra:L}){const{t:E}=Ce.useTranslation(),F=w??E("wordPrint.clearAllSelection","\uBAA8\uB450 \uC120\uD0DD \uD574\uC81C"),R=m===void 0,O=!!M,[$,Y]=o.useState([]),Q=(H??"").trim(),X=Q||(S??"").trim(),ie=(z??"").trim()||(I??"").trim(),be=(W??[]).map(Ne=>Ne.trim().toLowerCase()),ne=[Z?.trim().toLowerCase(),...$].filter(Ne=>!!Ne),oe=[...be];for(const Ne of ne){const ze=oe.indexOf(Ne);ze!==-1&&oe.splice(ze,1)}const V=Q!==""&&oe.includes(Q.toLowerCase()),[ae,ue]=o.useState(Array(4).fill(null)),[ge,me]=o.useState(4),[re,he]=o.useState(null),_e=ae.slice(0,ge),Me=!!u?.show,[Ue,Ie]=o.useState(!0),[de,Ae]=o.useState(!0),Re=u&&{...u,top:Ue,bottom:de},[Pe,we]=o.useState("landscape"),[Se,Oe]=o.useState(["\uC774\uBBF8\uC9C0","\uB2E8\uC5B4","\uD45C\uC900 \uBC1C\uC74C"]),[Be,nt]=o.useState("\uD45C\uC2DC"),[Ge,Xe]=o.useState(!0),[De,je]=o.useState(!0),ke=o.useRef(null),$e=o.useRef([]),[We,ht]=o.useState(q==="all"?Number.POSITIVE_INFINITY:q??8),[wt,Et]=o.useState("right"),[At,rt]=o.useState(!1),[Ye,at]=o.useState(!1),{toastMessage:ot,toastType:qe,showWarning:ct,clearToast:Ke}=ll("warning"),Ct=o.useCallback(()=>he(null),[he]);k&&!R&&!v&&bn("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[jt,kt]=o.useState(()=>Math.max(m?.length??1,1)),dt=R?ge:v?Math.max(jt,m?.length??1,1):Math.max(m?.length??0,1),{width:st,height:He}=ia[Pe],Qe=!R&&!v,pt=m?.length??0,Ot=Math.min(We,Math.max(pt,1)),Je=Qe?Ot:dt,Tt=Qe?mc(m??[],Je):null,Yt=!!Tt&&Tt.length>1,Mt=R?_e.some(Ne=>Ne!==null&&Ne.length>1):(m??[]).some(Ne=>(Ne.words??[]).length>1),ln=P?.trim()||`${ui(va())} ${Mt?E("wordTable.printFileNamePair","\uB300\uB9BD\uC30D\uD45C"):E("wordTable.printFileNameSingle","\uB2E8\uC5B4\uD45C")}`,cn=o.useCallback(()=>Yt?$e.current.filter(Ne=>Ne!==null):ke.current?[ke.current]:[],[Yt]),{print:un,openNewWindow:Rn,downloadHtml:dn}=Eo({getElements:cn,paperW:st,paperH:He,fileName:ln,onPopupBlocked:()=>{ct(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."))}}),Pn=Ne=>{me(Ne),ue(ze=>ze.length>=Ne?ze:[...ze,...Array(Ne-ze.length).fill(null)]),he(null)},Nn=Ne=>{ue(ze=>{const vt=[...ze];return vt[Ne]=null,vt}),re===Ne&&he(null)},Bt=Ne=>{if(re===null)return;const ze=re;ue(zt=>{const Vt=[...zt];return Vt[ze]=Ne.length>0?Ne:null,Vt});const vt=_e.findIndex((zt,Vt)=>Vt>ze&&zt===null);he(vt!==-1?vt:null)},mn=R?_e.some(Ne=>Ne?.some(ze=>!!ze.colloquialPronunciation)):(m??[]).some(Ne=>(Ne.words??[]).some(ze=>!!ze.colloquialLabel)),Ht=o.useMemo(()=>Xn()?R?ae.slice(0,ge).flatMap(Ne=>(Ne??[]).map(ze=>[ze.word,ze.homonum])):(m??[]).flatMap(Ne=>(Ne.words??[]).map(ze=>[ze.label,ze.homonum])):[],[R,ae,ge,m]),[Zt,hn]=o.useState(!1);o.useEffect(()=>{if(Ht.length===0)return;let Ne=!1;return Promise.all(Ht.map(([ze,vt])=>Js(ze,vt))).then(ze=>{Ne||hn(ze.some(Boolean))},()=>{}),()=>{Ne=!0}},[Ht]);const en=Ht.length>0&&Zt,Cn=o.useMemo(()=>[...R||v?[{label:E("wordTable.filter.columns","\uCE78 \uC218"),items:Gy.map(Ne=>({value:`${Ne}\uCE78`,displayLabel:E("wordTable.filter.column",{count:Ne})})),display:"segmented"}]:[],...Qe&&(m?.length??0)>0?[Sc(E,{hasPairs:Mt,itemCount:pt})]:[],...Yt?[Ky(E)]:[]],[E,R,v,Qe,m?.length,Mt,pt,Yt]),In={...R||v?{[E("wordTable.filter.columns","\uCE78 \uC218")]:`${dt}\uCE78`}:{},...Qe&&(m?.length??0)>0?{[E(Mt?"wordTable.filter.itemsPerPagePair":"wordTable.filter.itemsPerPageWord")]:`${Ot}\uAC1C`}:{},...Yt?{[E("wordTable.filter.pageNumber","\uD398\uC774\uC9C0 \uBC88\uD638")]:Tc[wt]}:{}},fn=(Ne,ze)=>{ze===E("wordTable.filter.columns","\uCE78 \uC218")?R?Pn(parseInt(Ne)):kt(parseInt(Ne)):ze===E(Mt?"wordTable.filter.itemsPerPagePair":"wordTable.filter.itemsPerPageWord")?ht(jc(parseInt(Ne),pt)):ze===E("wordTable.filter.pageNumber","\uD398\uC774\uC9C0 \uBC88\uD638")&&Et(Mc(Ne))},te=R?d7(_e.filter(Ne=>Ne!==null&&Ne.length>0).map(Ne=>({id:Xo(Ne),words:Ne.map(wu)}))):m??[],fe=()=>{R&&ue(Ne=>Ne.length>ge?Ne.slice(0,ge):Ne)},G=(Ne=!1)=>{if(at(Ne),O&&h){const ze=X.trim().toLowerCase();ze&&Y(vt=>vt.includes(ze)?vt:[...vt,ze]),h(X,te,ie||void 0,Ne),fe();return}if(D&&h){h("",te,void 0,Ne),fe();return}if(h){rt(!0);return}dn()},[se,le]=o.useState(!1),[ye,ve]=o.useState(""),Te=ye.trim(),et=Te!==""&&be.includes(Te.toLowerCase()),ft=()=>{ve(X?E("wordTable.save.copyName",{name:X,defaultValue:"{{name}} (\uBCF5\uC0AC)"}):""),le(!0)},it=()=>{!Te||et||!h||(h(Te,te,ie||void 0,!0),fe(),le(!1))},yt=te.length===0,Rt=yt||O&&(X===""||V),Lt=()=>{if(yt){ct(E("wordTable.emptyItems","\uB2E8\uC5B4\uB97C 1\uAC1C \uC774\uC0C1 \uCD94\uAC00\uD574\uC8FC\uC138\uC694."));return}if(O&&X===""){ct(E("wordTable.save.nameRequired","\uD45C \uC774\uB984\uC744 \uC785\uB825\uD574 \uC8FC\uC138\uC694."));return}O&&V&&ct(E("wordTable.save.duplicateName","\uC774\uBBF8 \uC0AC\uC6A9 \uC911\uC778 \uC774\uB984\uC785\uB2C8\uB2E4."))},nn=t.jsx(la,{items:te,orientation:Pe,contentTypes:Se,cutLine:Be,showOutline:Ge,showDivLine:De,count:dt});return t.jsxs(t.Fragment,{children:[t.jsxs(sa,{type:"page",icon:n,title:e,disc:a,className:Ee("word-table-block",A),children:[se&&t.jsx(Tn,{size:"small",title:g??E("wordTable.saveAsNewButton","\uB2E4\uB978 \uC774\uB984\uC73C\uB85C \uC800\uC7A5"),onClose:()=>le(!1),footer:({closeWithAnimation:Ne})=>t.jsxs(t.Fragment,{children:[t.jsx(ce,{htmlType:"button",size:48,type:"bar",label:E("common.cancel","\uCDE8\uC18C"),onClick:Ne}),t.jsx(ce,{htmlType:"button",size:48,type:"bar",variant:"main",label:E("common.save","\uC800\uC7A5"),disabled:!Te||et,onClick:it})]}),children:t.jsx(Un,{label:E("wordTable.save.nameLabel","\uC774\uB984"),value:ye,onChange:ve,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:it,error:et?E("wordTable.save.duplicateName","\uC774\uBBF8 \uC0AC\uC6A9 \uC911\uC778 \uC774\uB984\uC785\uB2C8\uB2E4."):void 0})}),At&&h&&B?.({defaultName:typeof e=="string"?e:E("wordTable.defaultName","\uB2E8\uC5B4 \uD45C"),preview:nn,previewW:st,previewH:He,items:te,existingNames:u7().map(Ne=>Ne.name),saveAsNew:Ye,onSave:(Ne,ze)=>{h(Ne,te,ze,Ye),fe(),rt(!1)},onCancel:()=>rt(!1)}),(R||k)&&re!==null&&x?.({cellIndex:re,onConfirm:R?Bt:Ne=>{if(k){const ze=Ne[0];if(ze){const vt=new Set((m??[]).map(Vt=>Vt.id));let zt=Xo([ze]);for(let Vt=2;vt.has(zt);Vt++)zt=`${Xo([ze])}~${Vt}`;k({id:zt,words:[wu(ze)]})}}he(null)},onClose:Ct}),!N&&t.jsx(ko,{title:r,collapsible:s,defaultCollapsed:i,collapsed:l,onCollapsedChange:c,headerSummary:d,hasImage:en,hasColloquial:mn,contentTypes:Se,orientation:Pe,showOutline:Ge,cutLine:Be,showDivLine:De,setters:{setContentTypes:Oe,setOrientation:we,setShowOutline:Xe,setCutLine:nt,setShowDivLine:je,setShowTopInfo:Ie,setShowBottomInfo:Ae},showCutLine:(Qe?Je:dt)>1,showDivLine2:Mt,middleSections:Cn,extraSelected:In,onExtraSelect:fn,showPaperBands:Me,showTopInfo:Ue,showBottomInfo:de}),Yt&&Tt?t.jsx("div",{className:"word-table-block__pages",children:Tt.map((Ne,ze)=>t.jsx(la,{orientation:Pe,contentTypes:Se,cutLine:Be,showOutline:Ge,showDivLine:De,count:Je,items:Ne,onRemoveItem:y,onReorder:_&&((vt,zt)=>_(vt+ze*Je,zt+ze*Je)),renderCellAction:K&&((vt,zt)=>K(vt+ze*Je,zt)),brand:Re,code:p,contentRef:vt=>{$e.current[ze]=vt},pageNumber:{current:ze+1,total:Tt.length},pageNumberPosition:wt},ze))}):t.jsx(la,{orientation:Pe,contentTypes:Se,cutLine:Be,showOutline:Ge,showDivLine:De,count:dt,items:R?void 0:m??[],editCells:R?_e:void 0,activeCell:re,onActivateCell:R||k?he:void 0,onRemoveCell:R?Nn:void 0,onRemoveItem:R?void 0:y,onReorder:R?void 0:_,renderCellAction:R?void 0:K,brand:Re,code:p,showFillerAdd:!!k,contentRef:ke}),O&&!N&&t.jsxs(ur,{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(Un,{required:!0,value:H??"",onChange:M,placeholder:S?S+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:V?E("wordTable.save.duplicateName","\uC774\uBBF8 \uC0AC\uC6A9 \uC911\uC778 \uC774\uB984\uC785\uB2C8\uB2E4."):void 0,onKeyDown:Ne=>{(Ne.key==="Tab"&&!Ne.shiftKey||Ne.key===" ")&&!(H??"").trim()&&(S??"").trim()&&(Ne.preventDefault(),M?.(S??""))}})}),t.jsx(Mn,{variant:"custom",label:E("wordTable.save.descriptionLabel","\uC124\uBA85"),align:"vertical",useFullWidth:!0,children:t.jsx(Un,{value:z??"",onChange:j,placeholder:I?I+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:Ne=>{(Ne.key==="Tab"&&!Ne.shiftKey||Ne.key===" ")&&!(z??"").trim()&&(I??"").trim()&&(Ne.preventDefault(),j?.(I??""))}})})]})]}),!N&&t.jsxs("div",{className:"word-table-block__actions",children:[t.jsxs("div",{className:"word-table-block__actions-left",children:[!D&&C&&t.jsx(ce,{htmlType:"button",size:40,type:"bar",label:F,onClick:C}),!D&&L,!D&&f&&t.jsx(ce,{htmlType:"button",size:40,type:"bar",label:E("wordTable.load","\uBD88\uB7EC\uC624\uAE30"),onClick:f}),!D&&t.jsx(ce,{htmlType:"button",size:40,type:"bar",label:E("wordTable.openNewWindow","\uC0C8 \uCC3D\uC73C\uB85C \uBCF4\uAE30"),onClick:Rn})]}),t.jsxs("div",{className:"word-table-block__actions-right",children:[U&&t.jsx(ce,{htmlType:"button",size:"56",type:"bar",label:E("common.cancel","\uCDE8\uC18C"),onClick:U}),!D&&t.jsx(ce,{htmlType:"button",size:"56",type:"bar",label:E("wordTable.print","\uC778\uC1C4\uD558\uAE30"),onClick:un}),g&&t.jsx(ce,{htmlType:"button",size:"56",type:"bar",label:g,onClick:()=>O?ft():G(!0),disabled:yt,onDisabledClick:()=>{ct(E("wordTable.emptyItems","\uB2E8\uC5B4\uB97C 1\uAC1C \uC774\uC0C1 \uCD94\uAC00\uD574\uC8FC\uC138\uC694."))}}),t.jsx(ce,{htmlType:"button",size:"56",type:"bar",variant:"main",label:b??E("wordTable.saveButton","\uC800\uC7A5\uD558\uAE30"),onClick:()=>G(!1),disabled:Rt,onDisabledClick:Lt})]})]}),t.jsx(ra,{message:ot,type:qe,onClose:Ke})]})}function Au({items:e,className:n}){const a=e.length,r=a<=3?1:2,s=Math.ceil(a/r)||1,i=r*s;return t.jsx("div",{className:Ee("word-table-thumb",n),style:{gridTemplateColumns:`repeat(${r}, 1fr)`},children:Array.from({length:i},(l,c)=>{const d=e[c];return d?t.jsx("div",{className:"word-table-thumb__cell",children:(d.words?.length?d.words:[{label:d.id}]).map((u,p)=>t.jsxs(o.Fragment,{children:[p>0&&t.jsx("span",{className:"word-table-thumb__divider"}),t.jsx("span",{className:"word-table-thumb__word body-3",children:u.label})]},p))},c):t.jsx("div",{className:"word-table-thumb__cell word-table-thumb__cell--empty"},c)})})}function m7({items:e,name:n,description:a,createdAt:r,code:s,published:i,publishedLabel:l,shared:c,sharedLabel:d,isNew:u,publisherName:p,publishedAt:m,likeCount:h,downloadCount:f,onPublisherClick:y,selected:C,onClick:w,onMore:b,titleNode:g,className:_}){const{t:v}=Ce.useTranslation(),k=g!=null,A=p!=null||m!=null||h!=null||f!=null,B=x=>{x.target===x.currentTarget&&!k&&(x.key==="Enter"||x.key===" ")&&(x.preventDefault(),w?.())};return t.jsxs("div",{className:Ee("word-table-button",C?"word-table-button--selected":"",A?"":"word-table-button--no-footer",_),role:"button",tabIndex:0,"aria-label":s?`${n} (${s})`:n,onClick:k?void 0:w,onKeyDown:B,children:[u&&t.jsx("span",{className:"word-table-button__new-dot","aria-label":v("myWordTable.newBadge","\uC0C8\uB85C \uB9CC\uB4E0 \uD45C")}),t.jsx(Au,{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:[g??t.jsx("div",{className:"word-table-button__title h4",children:n}),a&&t.jsx("div",{className:"word-table-button__desc body-3",children:a})]}),b&&!k&&t.jsx(ce,{htmlType:"button",className:"word-table-button__more",size:32,type:"dot",variant:"transparent-gray",useBorder:!1,icon:"ellipsis",ariaLabel:v("common.moreFor",{name:n}),onClick:x=>{x.stopPropagation(),b(x)}})]}),(s||r||i||c)&&t.jsxs("div",{className:"word-table-button__meta-row",children:[t.jsx("span",{className:"word-table-button__meta-left",children:t.jsx("span",{className:"word-table-button__meta caption-1",children:r?ci(r,v):""})}),t.jsxs("span",{className:"word-table-button__meta-right",children:[s&&t.jsx("span",{className:"word-table-button__code caption-1",children:s}),(i||c)&&t.jsxs("span",{className:"word-table-button__badges",children:[i&&t.jsx(bt,{className:"word-table-button__badge",size:"small",variant:"main",fill:"soft",iconLeft:"book-marked",label:l??v("myWordTable.publishedBadge","\uBC1C\uD589\uB428")}),c&&t.jsx(bt,{className:"word-table-button__badge",size:"small",fill:"soft",iconLeft:"link",label:d??v("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:[p&&t.jsx("button",{className:"training-card__publisher body-4",type:"button",onClick:x=>{x.stopPropagation(),y?.()},children:p}),m&&t.jsx("span",{className:"training-card__date body-4",children:ci(m,v)})]}),t.jsxs("span",{className:"word-table-button__store-stats",children:[h!=null&&t.jsx(bt,{size:"small",fill:"soft",variant:"like",iconLeft:"heart",label:String(h)}),f!=null&&t.jsx(bt,{size:"small",fill:"soft",variant:"main",iconLeft:"download",label:String(f)})]})]})]})}/**
|
|
1048
|
+
`).map((l,u,d)=>t.jsxs(o.Fragment,{children:[l,u<d.length-1&&t.jsx("br",{})]},u))})}),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:i("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:i("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:i("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:i("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:i("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:i("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:i("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:i("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:i("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:i("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:ro,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:i("footer.ceo","\uB300\uD45C")}),t.jsx("span",{className:"footer-meta caption-1",children:i("footer.ceoName","\uD55C\uC9C0\uD61C")})]}),t.jsxs("div",{children:[t.jsx("span",{className:"footer-title",children:i("footer.address","\uC8FC\uC18C")}),t.jsx("span",{className:"footer-meta caption-1",children:i("footer.addressValue","\uAC15\uC6D0\uB3C4 \uCD98\uCC9C\uC2DC \uC2DC\uCCAD\uAE38 32 \uD574\uCC2C\uBE4C\uB529 3\uCE35 302\uD638")})]}),t.jsxs("div",{children:[t.jsx("span",{className:"footer-title",children:i("footer.support","\uACE0\uAC1D\uC13C\uD130")}),t.jsxs("span",{className:"footer-meta caption-1",children:[r," \xA0 ",s]})]})]})]}),t.jsx("div",{className:"site-footer__copyright footer-copyright caption-1",children:"\xA9 IHAB, Inc. All rights reserved."})]})})}function D5({logo:e,logoAlt:n="",logoHref:a,links:r=[],actions:s,className:i,containerClassName:l,renderLink:u,menuLabel:d}){const{t:c}=Ce.useTranslation(),p=d??{open:c("header.menuOpen","\uBA54\uB274 \uC5F4\uAE30"),close:c("header.menuClose","\uBA54\uB274 \uB2EB\uAE30")},[m,h]=o.useState(!1),g=o.useId(),y=o.useRef(null);o.useEffect(()=>{if(!m)return;const b=zn(()=>{const v=document.getElementById(g);v&&v.contains(document.activeElement)&&y.current?.focus(),h(!1)}),f=typeof window<"u"&&window.matchMedia?window.matchMedia("(min-width: 961px)"):null,_=v=>{v.matches&&h(!1)};return f&&(f.matches&&h(!1),f.addEventListener?.("change",_)),()=>{b(),f?.removeEventListener?.("change",_)}},[m,g]);const C=l?`${l} landing-header__inner`:"landing-header__inner",w=(b,f)=>u?u(b,{onClick:f}):t.jsx("a",{href:b.href,onClick:f,"aria-current":b.current?"page":void 0,children:b.label});return t.jsxs("header",{className:i?`landing-header ${i}`:"landing-header",children:[t.jsxs("div",{className:C,children:[e!=null&&(()=>{const b=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:b}):t.jsx("div",{className:"landing-header__brand",children:b})})(),r.length>0&&t.jsx("nav",{className:"landing-header__links",children:r.map((b,f)=>t.jsx("span",{children:w(b)},`${f}:${b.href}`))}),t.jsxs("div",{className:"landing-header__actions",children:[s,r.length>0&&t.jsx("button",{ref:y,type:"button",onClick:()=>h(b=>!b),"aria-expanded":m,"aria-controls":g,"aria-label":m?p.close:p.open,className:m?"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:g,hidden:!m,className:"landing-header__drawer",children:t.jsx("div",{className:l??void 0,children:r.map((b,f)=>t.jsx("span",{className:"landing-header__drawer-item",children:w(b,()=>h(!1))},`${f}:${b.href}`))})})]})}function S5({children:e,action:n,onClick:a,className:r}){const s=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:s,onClick:a,...su(a),children:[t.jsx("div",{className:"bottom-sticky__content",children:e}),n]})})}const ca=9,j5=e=>Math.round(Math.min(ca,Math.max(0,e))/ca*100),T5=e=>e/100*ca,La=2,Hu=.1,M5=e=>Math.min(La,Math.max(0,e)),L5=.1,$5=e=>Math.round(e*1e6)/1e6;function $a(e){const{noiseRatio:n}=e;if(typeof n=="number"&&Number.isFinite(n))return M5(n);const a=Math.min(ca,Math.max(0,Number(e.level)||0))/ca,r=Number(e.mainVolume);return r>0?a>0?$5(Math.min(La,Math.max(L5,a/r))):0:1}const zu=e=>Math.min(1,Math.max(0,Number(e.mainVolume)||0));function Vu(e){return zu(e)}function jo(e){return zu(e)*$a(e)}function To(e,n=Us()){const a=Number.isFinite(n)&&n>0?n:1;return Math.min(1,jo(e)/a)}function Ra(e,n){const a={...e,...n??{}};return n&&"level"in n&&typeof n.noiseRatio!="number"&&(a.noiseRatio=$a({level:a.level,mainVolume:a.mainVolume})),a}const Pa={enabled:!0,type:"defaultNoise",level:4.5,noiseRatio:1,speed:1,mainVolume:1,mainSpeed:1},Mo=o.createContext(null);function ir(){return o.useContext(Mo)}const Lo=e=>`${J0()}/${e}`,Wu=e=>Array.from({length:10},(n,a)=>Lo(`${e}-${String(a+1).padStart(2,"0")}.mp3`)),lr={get defaultNoise(){return Lo("noise1.mp3")},get street(){return Wu("noise2")},get restaurant(){return Wu("noise3")},get buzz(){return Lo("noise4.mp3")}};function R5(e){const n=Math.floor(Math.random()*10);switch(e){case"defaultNoise":return lr.defaultNoise;case"street":return lr.street[n];case"restaurant":return lr.restaurant[n];case"buzz":return lr.buzz;default:return null}}function P5({noisePlayer:e,audioRef:n,playbackStateRef:a}){const r=o.useRef(e?.registerAnalyser);r.current=e?.registerAnalyser;const s=o.useRef(null),[i,l]=o.useState(null),u=o.useRef(null),d=o.useRef(null),c=o.useRef(null),p=o.useRef(null),m=o.useRef(0),h=o.useRef(null),g=o.useCallback(()=>{p.current!==null&&(cancelAnimationFrame(p.current),p.current=null),h.current!==null&&(clearTimeout(h.current),h.current=null)},[]),y=o.useCallback((_,v=250)=>{const k=s.current;if(!k)return;const A=d.current;if(A){d.current=null;try{k.pause()}catch{}k.src=A,k.load()}if(!k.src)return;m.current+=1,g();try{Tr(),Oa(k).then(D=>{if(s.current===k)try{r.current?.("noise",D)}catch{}})}catch{}const B=k.paused?0:Ha(k);k.paused&&Sn(k,0),k.play().catch(()=>{});const x=performance.now(),N=()=>{const D=Math.min(1,(performance.now()-x)/v);try{Sn(k,B+(_-B)*D)}catch{}D<1?p.current=requestAnimationFrame(N):p.current=null};p.current=requestAnimationFrame(N)},[g]),C=o.useCallback((_=250,v)=>{const k=s.current;if(!k||k.paused){v?.();return}const A=++m.current;g();const B=performance.now(),x=Ha(k),N=()=>{const D=Math.min(1,(performance.now()-B)/_);try{Sn(k,x*(1-D))}catch{}if(D<1)p.current=requestAnimationFrame(N);else{p.current=null,h.current!==null&&(clearTimeout(h.current),h.current=null);try{k.pause()}catch{}v?.()}};p.current=requestAnimationFrame(N),h.current=setTimeout(()=>{if(h.current=null,m.current===A){p.current!==null&&(cancelAnimationFrame(p.current),p.current=null);try{k.paused||(Sn(k,0),k.pause(),v?.())}catch{}}},_+150)},[g]);o.useEffect(()=>{const _=document.createElement("audio");return _.loop=!0,_.crossOrigin="anonymous",s.current=_,()=>{g();try{_.pause(),_.src=""}catch{}s.current=null,u.current=null,d.current=null}},[g]);const w=e?To(e.settings):0,b=!!e?.settings.enabled&&w>0;o.useEffect(()=>{if(!b)return;let _=0;const v=setInterval(()=>{const k=s.current;if(!k||k.paused){_=0;return}const A=n.current;if(A&&!A.paused&&!A.ended||a.current==="playing"){_=0;return}_+=1,_>=2&&(_=0,C())},400);return()=>clearInterval(v)},[C,b,n,a]),o.useEffect(()=>{const _=()=>{const v=s.current;if(document.hidden){if(v&&!v.paused){g();try{v.pause()}catch{}}return}if(!v||!v.paused)return;const k=n.current,A=!!k&&!k.paused&&!k.ended||a.current==="playing",B=c.current;A&&B?.enabled&&B.volume>0&&y(B.volume)};return document.addEventListener("visibilitychange",_),()=>document.removeEventListener("visibilitychange",_)},[g,y,n,a]),o.useEffect(()=>{c.current=e?{enabled:e.settings.enabled,volume:w,type:e.settings.type}:null},[e,e?.settings.enabled,w,e?.settings.type]);const f=o.useRef(null);return o.useEffect(()=>()=>{f.current?.(),f.current=null},[]),o.useEffect(()=>{const _=e?.settings,v=s.current;if(!v)return;const k=_?To(_):0;if(!_||!_.enabled||k===0){C();return}if(u.current!==_.type){const A=R5(_.type);A&&(u.current=_.type,l(A),d.current=A,C(150,()=>{if(d.current!==A)return;d.current=null,v.src=A,v.load();const B=n.current;if(B&&!B.paused){f.current?.();const x=()=>{v.removeEventListener("canplay",x),f.current===N&&(f.current=null);const D=n.current,P=c.current;D&&!D.paused&&!D.ended&&P?.enabled&&P.volume>0&&y(P.volume)},N=()=>v.removeEventListener("canplay",x);f.current=N,v.addEventListener("canplay",x)}}))}else{const A=n.current,B=!!A&&!A.paused&&!A.ended||a.current==="playing";if(B&&d.current)y(k);else if(B&&v.paused&&v.src)y(k);else if(!v.paused)if(!B)C();else{g();const x=Ha(v),N=performance.now(),D=()=>{const P=Math.min(1,(performance.now()-N)/150);try{Sn(v,x+(k-x)*P)}catch{}P<1?p.current=requestAnimationFrame(D):p.current=null};p.current=requestAnimationFrame(D)}}},[e?.settings,e?.settings.enabled,w,e?.settings.type,g,y,C,n,a,c]),o.useEffect(()=>{const _=s.current;if(_)try{_.playbackRate=Math.min(1.25,Math.max(.75,e?.settings.speed??1))}catch{}},[e?.settings.speed]),{noiseAudioRef:s,activeNoiseUrl:i,noiseSettingsRef:c,cancelNoiseFade:g,fadeInNoise:y,fadeOutNoise:C}}function I5({ttsText:e,playbackRate:n,mainVolume:a,fillRef:r,waveProgressRef:s,setProgress:i,setPlaybackState:l,setStateLocal:u,fadeInNoise:d,fadeOutNoise:c,noiseSettingsRef:p,onDoneRef:m,handleEndRef:h}){const g=o.useRef(null),y=o.useRef(0),C=o.useRef(null),w=o.useRef(0),b=o.useRef(!1);o.useEffect(()=>()=>{w.current++;try{if(C.current&&(cancelAnimationFrame(C.current),C.current=null),b.current&&window.speechSynthesis){try{window.speechSynthesis.cancel()}catch{}b.current=!1}}catch{}},[]);const f=(k,A=1)=>{try{const B=(k||"").trim().split(/\s+/).filter(Boolean).length||Math.max(1,(k||"").length);return Math.max(700,Math.round(B*300/Math.max(.25,A)))}catch{return 1200}},_=o.useCallback(k=>{if(typeof window>"u"||!window.speechSynthesis){try{typeof m.current=="function"&&m.current(!1)}catch{}return}const A=window.speechSynthesis,B=++w.current;try{try{A.cancel()}catch{}const x=k??e,N=Array.isArray(x)?x.filter(j=>!!j):[x||""];N.length===0&&N.push("");const D=Math.max(.3,Math.min(3,n));y.current=N.reduce((j,S)=>j+f(S,D||1),0),g.current=performance.now(),i(0),l("playing"),u("playMode");const P=p.current;P?.enabled&&(P?.volume??0)>0&&d(P.volume);const H=()=>{try{const j=g.current||performance.now(),S=performance.now()-j,I=y.current||1200,W=Math.min(1,S/I);try{r.current&&(r.current.style.left=`${W*100}%`),s.current&&s.current.style.setProperty("--progress",String(W))}catch{}W<1&&(C.current=requestAnimationFrame(H))}catch{}},M=()=>{if(B===w.current)try{C.current&&(cancelAnimationFrame(C.current),C.current=null),i(1),l("stopped");try{h.current?.()}catch{try{typeof m.current=="function"&&m.current(!0)}catch{}}}catch{}},z=j=>{const S=new SpeechSynthesisUtterance(N[j]);try{S.rate=D}catch{}try{S.volume=Math.max(0,Math.min(1,a))}catch{}S.onend=()=>{if(B===w.current){if(j<N.length-1){try{z(j+1)}catch{M()}return}M()}},S.onerror=()=>{M()},S.onstart=()=>{if(!(j>0))try{C.current&&(cancelAnimationFrame(C.current),C.current=null),C.current=requestAnimationFrame(H)}catch{}},b.current=!0,A.speak(S)};try{z(0)}catch{try{typeof m.current=="function"&&m.current(!0)}catch{}}}catch{try{typeof m.current=="function"&&m.current(!0)}catch{}}},[e,n,a,d,r,s,i,l,u,p,m,h]),v=o.useCallback(()=>{w.current++;try{if(window.speechSynthesis)try{window.speechSynthesis.cancel()}catch{}C.current&&(cancelAnimationFrame(C.current),C.current=null),c(),g.current=null}catch{}l("stopped"),u("active"),i(0)},[c,l,u,i]);return{startTTS:_,stopTTS:v}}async function F5(e,n,a){let r=null;try{const s=window.AudioContext||window.webkitAudioContext;r=new s;const i=await r.decodeAudioData(e.slice(0)),l=i.numberOfChannels>0?i.getChannelData(0):null;if(!l)return null;const u=a&&a>0?Math.min(l.length,Math.floor(a*i.sampleRate)):l.length,d=Math.max(n,u),c=Math.floor(d/n)||1;return new Array(n).fill(0).map((p,m)=>{const h=m*c,g=Math.min(h+c,d);let y=0;for(let C=h;C<g;C++){const w=Math.abs(l[C]);w>y&&(y=w)}return y})}catch{return null}finally{try{r?.close?.()}catch{}}}async function qu(e,n,a){try{const r=await fetch(e);if(r.ok===!1)return null;const s=await r.arrayBuffer();return await F5(s,n,a)}catch(r){try{const s=ni(r)}catch{}return null}}const Uu=45,O5=74,H5=2;function Ia(e){const n=Math.min(2,Math.max(0,Number(e)||0));return n<=1?n*45:45+(n-1)*29}function $o(e){return Ia(e)/45}const Gu=4;function z5(e){const{src:n,segments:a,progress:r=0,waveProgressRef:s,noiseSrc:i,noiseRatio:l=0,noiseSpeed:u=1,totalDuration:d=0,mainVolume:c=1,onReadyChange:p,showSoundWaveForm:m=!0}=e,h=o.useRef(null),g=o.useRef(null),[y,C]=o.useState(null),[w,b]=o.useState(!1),[f,_]=o.useState(null),[v,k]=o.useState(2),[A,B]=o.useState(0),[x,N]=o.useState(null),[D,P]=o.useState(!1),[H,M]=o.useState(!1),z=3,j=3,S=1,I=300,W=o.useRef(0),Z=o.useCallback(()=>{const re=h.current,V=g&&g.current?g.current:re?re.closest(".audio-player__wave"):null,ae=V?V.getBoundingClientRect():re?re.getBoundingClientRect():null,ue=ae?ae.width:0,ge=ae?Math.max(100,ae.width):320,me=ae?ae.height:0,oe=Math.max(S,Math.min(I,Math.floor((ge+j)/(z+j)))),he=oe*z,_e=Math.max(0,oe-1),Le=Math.max(0,_e>0?(ge-he)/_e:j);return{bars:oe,gap:Le,height:me,width:ue}},[]),U=o.useRef(void 0),q=o.useRef(null),K=o.useCallback(async(re,V,{quiet:ae=!1}={})=>{const ue=++W.current,ge=()=>W.current===ue;try{if(ae||b(!1),U.current=re,!re){ge()&&C(null);return}let me=V;if(!me)try{for(let _e=0;_e<4&&!(h.current||g.current);_e++)await new Promise(Le=>requestAnimationFrame(Le));await new Promise(_e=>requestAnimationFrame(_e));const he=Z();he.height>0&&B(he.height),me=he.bars,k(he.gap)}catch{me=120}q.current=me;const oe=await qu(re,me);if(!ge())return;if(!oe){C(null),b(!1);return}C(oe),_(me),b(!0)}catch{if(!ge())return;C(null),b(!1)}},[b,C,B,k,_,Z]);o.useEffect(()=>{const re=g.current;if(!re||typeof ResizeObserver>"u")return;let V=null;const ae=new ResizeObserver(()=>{V!==null&&cancelAnimationFrame(V),V=requestAnimationFrame(()=>{V=null;try{const ue=Z();if(ue.width<=0||(ue.height>0&&B(ue.height),q.current===null||ue.bars===q.current))return;const ge=U.current;k(ue.gap),ge?K(ge,ue.bars,{quiet:!0}).catch(()=>{}):q.current=ue.bars}catch{}})});return ae.observe(re),()=>{ae.disconnect(),V!==null&&cancelAnimationFrame(V)}},[Z,K]),o.useEffect(()=>{const re=a&&a[0]&&a[0].src||n||a&&a.length===1&&a[0]&&a[0].src;K(typeof re=="string"?re:void 0).catch(()=>{}),M(!1)},[n,a,K]),o.useEffect(()=>{let re=!1;if(P(!1),!i||!f){N(null);return}const V=d>0?d*(u||1):void 0;return qu(i,f,V).then(ae=>{re||(N(ae),ae||P(!0))}).catch(()=>{re||(N(null),P(!0))}),()=>{re=!0}},[i,f,d,u]);const L=Math.max(0,Math.min(1,c)),E=o.useMemo(()=>y&&y.length&&Math.max(...y)||1,[y]),F=f||40,R=o.useMemo(()=>Array.from({length:F}).map((re,V)=>{const ae=y&&y[V]!=null?y[V]:null,ue=ae==null?null:Math.min(1,ae/E*L),ge=ue!=null&&A>0&&Ia(ue)<=Gu,me=ue==null?.15:ge?0:$o(ue),oe=F>1?V/(F-1):0;return t.jsx("div",{className:ge?"audio-player__bar audio-player__bar--hidden":"audio-player__bar",style:{"--val":me,"--i":V,"--mix":oe}},V)}),[F,y,E,L,A]),O={"--progress":String(Math.max(0,Math.min(1,r)))},$=i?Math.max(1,l):1,Y={"--bar-gap":`${v}px`,"--wave-h":`${Ia($)}px`,"--wave-h1":`${Uu}px`},Q=L*Math.max(0,l)/Us(),X=w&&(i?!!x||D:!0);o.useEffect(()=>{X&&M(!0)},[X]);const ce=H?w:X;o.useEffect(()=>{p?.(ce)},[ce,p]);const xe=f||40,te=o.useMemo(()=>Array.from({length:xe}).map((re,V)=>{const ae=x&&x[V]!=null?x[V]:null,ue=ae==null?0:ae/E*Q,ge=A>0&&Ia(ue)<=Gu,me=ge?0:$o(ue),oe=xe>1?V/(xe-1):0;return t.jsx("div",{className:ge?"audio-player__bar audio-player__bar--hidden":"audio-player__bar",style:{"--val":me,"--i":V,"--mix":oe}},V)}),[xe,x,E,Q,A]);return t.jsxs("div",{className:"audio-player__wave",ref:g,style:Y,children:[i&&t.jsx("div",{className:`audio-player__wave-noise ${X?"is-ready":""}`,"aria-hidden":"true",children:te}),m&&t.jsxs(t.Fragment,{children:[t.jsx("div",{className:`audio-player__wave-inner audio-player__wave-unplayed ${ce?"is-ready":""}`,ref:h,children:R}),t.jsx("div",{className:`audio-player__wave-inner audio-player__wave-played ${ce?"is-ready":""}`,ref:s,style:O,children:R})]})]})}const V5={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 Ro(e,n){return new Promise((a,r)=>{const s=document.createElement("audio");let i=!1;const l=()=>{try{s.src=""}catch{}},u=()=>{if(i)return;i=!0;const c=isFinite(s.duration)&&s.duration||0;l(),a(c)},d=c=>{i||(i=!0,l(),n.rejectOnError?r(new Error(c)):a(0))};s.addEventListener("loadedmetadata",u),s.addEventListener("error",()=>d("audio load failed")),setTimeout(()=>d("audio load timeout"),n.timeoutMs),s.src=e})}const W5=2e3;function Ku(e,n=W5){return new Promise(a=>{let r=!1;const s=()=>{r||(r=!0,a())};e.addEventListener("canplay",s,{once:!0}),e.addEventListener("error",s,{once:!0}),setTimeout(s,n)})}function q5({showSoundWaveForm:e,showNoiseWaveForm:n,timeoutMs:a=2500}){const r=o.useRef(!1),s=o.useRef([]),i=o.useCallback(d=>{if(r.current=d,!d||!s.current.length)return;const c=s.current;s.current=[];for(const p of c)p(!0)},[]),l=o.useCallback(()=>{r.current=!1},[]),u=o.useCallback(()=>!e&&!n||r.current?Promise.resolve(!0):new Promise(d=>{const c=m=>{clearTimeout(p),s.current=s.current.filter(h=>h!==c),d(m)},p=setTimeout(()=>c(!0),a);s.current.push(c)}),[e,n,a]);return o.useEffect(()=>()=>{const d=s.current;s.current=[];for(const c of d)c(!1)},[]),{onReadyChange:i,waitForReady:u,markNotReady:l}}function U5(){const e=o.useRef([]),n=o.useCallback(s=>(e.current.push(s),s),[]),a=o.useCallback(s=>{const i=new Set([...s].filter(Boolean));e.current=e.current.filter(l=>{if(i.has(l))return!0;try{URL.revokeObjectURL(l)}catch{}return!1})},[]),r=o.useCallback(()=>{a([])},[a]);return o.useEffect(()=>()=>{for(const s of e.current)try{URL.revokeObjectURL(s)}catch{}e.current=[]},[]),{track:n,keepOnly:a,revokeAll:r}}function G5({offsetY:e=8}={}){const n=o.useRef(null),[a,r]=o.useState(null),s=o.useCallback(()=>r(null),[]),i=o.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 o.useEffect(()=>{if(a)return document.addEventListener("mousedown",s),()=>document.removeEventListener("mousedown",s)},[a,s]),{ref:n,rect:a,show:i,hide:s}}function K5({currentTime:e,sources:n,index:a,audioDuration:r}){const s=a||0,i=Array.isArray(n)&&n.length>0?n[s]:void 0,l=i?i.duration||r||0:r||0;if(!(l>0))return 0;const u=Number.isFinite(e)?e:0;return Math.max(0,Math.min(1,u/l))}function Y5(e,n){if(!Array.isArray(e))return null;const a=n||0;return a<e.length-1?a+1:null}function Z5({ended:e,completedByEnd:n}){return!!e||!!n}function X5(e){return e.map((n,a)=>({src:n.src,label:String(a+1),color:void 0,duration:n.duration||0}))}function J5(e){return e.reduce((n,a)=>n+(a.duration||0),0)}function Q5(e,n,a){const r=Array.isArray(e)?e:e?[e]:[],s=[];for(const i of r)if(i){if(typeof i=="object"&&i!==null&&"src"in i&&i.src){const l=i;s.push({code:l.code??null,src:l.src});continue}if(typeof i=="string"&&(i.startsWith("http")||i.includes("/"))){s.push({code:null,src:i});continue}if(typeof i=="string"||typeof i=="number"){const l=String(i),u=a(l,n);u&&s.push({code:l,resolvedPath:u})}}return s}function e3(e){if(!e)return 0;const n=e.duration;if(Number.isFinite(n)&&n>0)return n;if(n===0)return 0;try{const a=e.seekable;if(a&&a.length>0){const r=a.end(a.length-1);if(Number.isFinite(r)&&r>0)return r}}catch{}return null}function t3({audioRef:e,fillRef:n,waveProgressRef:a,sourcesRef:r,currentIndexRef:s}){const i=o.useRef(null),l=o.useCallback(()=>{i.current!==null&&(cancelAnimationFrame(i.current),i.current=null)},[]),u=o.useCallback(()=>{if(i.current!==null)return;const c=()=>{try{const p=e.current,m=Array.isArray(r.current)?r.current[s.current||0]:void 0,h=m&&Number.isFinite(m.duration)&&(m.duration??0)>0?0:e3(p),g=n.current;if(h===null)try{g&&g.style.visibility!=="hidden"&&(g.style.visibility="hidden")}catch{}else{const y=K5({currentTime:p&&typeof p.currentTime=="number"?p.currentTime:0,sources:r.current,index:s.current,audioDuration:h});try{g&&(g.style.visibility&&(g.style.visibility=""),g.style.left=`${y*100}%`)}catch{}try{a.current?.style.setProperty("--progress",String(y))}catch{}}}catch{}i.current=requestAnimationFrame(c)};i.current=requestAnimationFrame(c)},[e,n,a,r,s]),d=o.useCallback(c=>{l();try{n.current&&(n.current.style.visibility="",n.current.style.left=`${c*100}%`)}catch{}try{a.current?.style.setProperty("--progress",String(c))}catch{}},[l,n,a]);return o.useEffect(()=>l,[l]),{start:u,stop:l,settleTo:d}}function Po({btnLabel:e,soundSrc:n,bucketPath:a,onDone:r,disabled:s=!1,ttsText:i=null,className:l,showSoundWaveForm:u=!0,showNoiseWaveForm:d=!0}){const{t:c}=Ce.useTranslation(),p=e,m=ir(),h=o.useRef(m?.registerAnalyser);o.useEffect(()=>{h.current=m?.registerAnalyser});const g=o.useRef(null),y=o.useRef(null),C=o.useRef(null),w=U5(),b=o.useRef(null),f=o.useRef(!1),_=o.useRef(0),v=o.useRef(null),{ref:k,rect:A,show:B,hide:x}=G5();o.useEffect(()=>()=>{h.current?.("main",null),h.current?.("noise",null)},[]);const[N,D]=o.useState(!1),[P,H]=o.useState("idle"),[M,z]=o.useState("stopped"),j=o.useRef("stopped");o.useEffect(()=>{j.current=M},[M]);const[S,I]=o.useState(0),[W,Z]=o.useState("active"),U=o.useRef(!1);o.useEffect(()=>{if(W!=="playMode"||!U.current)return;U.current=!1;const G=typeof document<"u"?document.activeElement:null;if(G&&G!==document.body)return;const se=C.current?.querySelectorAll("button")[1];try{se?.focus()}catch{}},[W]);const[q,K]=o.useState(null),[L,E]=o.useState(null),[F,R]=o.useState(0),[O,$]=o.useState(!1),[Y,Q]=o.useState(0),X=m?.playbackRate??1,ce=m?.mainVolume??1,xe=m?jo(m.settings):0,te=m?Vu(m.settings):ce,[re,V]=o.useState("idle"),[ae,ue]=o.useState(""),[ge]=o.useState("top"),me=o.useRef(null),oe=o.useRef(0),he=o.useRef(null),{start:_e,stop:Le,settleTo:Ue}=t3({audioRef:g,fillRef:y,waveProgressRef:he,sourcesRef:me,currentIndexRef:oe}),{onReadyChange:Ie,waitForReady:de,markNotReady:Ae}=q5({showSoundWaveForm:u,showNoiseWaveForm:d}),Re=o.useRef(null),Pe=o.useRef(s),we=o.useRef(r),Se=o.useRef(null),Oe=o.useRef(!1),[Be,nt]=o.useState(!1),Ge=o.useCallback(G=>{Oe.current=G,nt(G)},[]),Xe=o.useRef(null),{activeNoiseUrl:De,noiseSettingsRef:je,fadeInNoise:ke,fadeOutNoise:Me}=P5({noisePlayer:m,audioRef:g,playbackStateRef:j}),{startTTS:We,stopTTS:ht}=I5({ttsText:i,playbackRate:X,mainVolume:te,fillRef:y,waveProgressRef:he,setProgress:I,setPlaybackState:z,setStateLocal:Z,fadeInNoise:ke,fadeOutNoise:Me,noiseSettingsRef:je,onDoneRef:we,handleEndRef:Xe});o.useEffect(()=>{ut.current=ht});const wt=G=>{if(typeof window>"u"||!window.speechSynthesis){try{ue(c("training.ttsUnavailable","\uC774 \uAE30\uAE30\uC5D0\uC11C\uB294 \uC74C\uC131\uC744 \uB4E4\uB824\uC904 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4."))}catch{}We(G);return}kt("tts"),We(G)},Et=Array.isArray(n)?n.filter(Boolean):n?[n]:[],At=(!Et||Et.length===0)&&!!i,rt=Array.isArray(q)&&q.length>0?q:Array.isArray(L)&&L.length>0?L:null,Ye=Math.max(Array.isArray(rt)?rt.length:0,Et.length),at=o.useRef(!0);o.useEffect(()=>(at.current=!0,()=>{at.current=!1}),[]);const ot=o.useRef(0),qe=()=>{ot.current+=1,_.current+=1},ut=o.useRef(null),Ke=o.useRef(null),Ct=o.useRef(null),jt=o.useRef(null);jt.current||(jt.current=()=>{Ct.current=null;const G=g.current;if(Ke.current==="audio"&&G&&!G.paused){ot.current+=1,_.current+=1;try{G.pause()}catch{}at.current&&z("paused")}else if(Ke.current==="tts")try{ut.current?.()}catch{}});const kt=G=>{Ke.current=G,Ct.current=Xa(jt.current)},dt=()=>{Ct.current?.(),Ct.current=null};o.useEffect(()=>()=>{jt.current&&Ja(jt.current)},[]);const st=o.useCallback(async(G,se=3,ie=50)=>{const be=ot.current;for(let ye=0;ye<se;ye++){if(!at.current||be!==ot.current)return!1;try{return kt("audio"),await G.play(),!0}catch(Te){if((Te instanceof Error||typeof Te=="object"&&Te&&"name"in Te?Te.name:void 0)==="AbortError"){if(be!==ot.current)return!1;await new Promise(et=>setTimeout(et,ie));continue}try{ue(c("training.audioFetchError","\uC0AC\uC6B4\uB4DC \uC18C\uC2A4\uB97C \uAC00\uC838\uC624\uC9C0 \uBABB\uD588\uC2B5\uB2C8\uB2E4."))}catch{}return!1}}try{ue(c("training.audioFetchError","\uC0AC\uC6B4\uB4DC \uC18C\uC2A4\uB97C \uAC00\uC838\uC624\uC9C0 \uBABB\uD588\uC2B5\uB2C8\uB2E4."))}catch{}return!1},[c]),He=o.useCallback(()=>{const G=g.current;if(!G)return;const se=()=>{z("playing"),Z("playMode"),$(!0),_e();try{Tr(),Oa(G).then(Te=>{if(at.current)try{h.current?.("main",Te)}catch{}})}catch{}const ye=je.current;ye?.enabled&&(ye?.volume??0)>0&&ke(ye.volume)},ie=()=>{Z5({ended:!!G?.ended,completedByEnd:Oe.current})||(z("paused"),Le(),Me())},be=()=>{try{const ye=me.current,Te=Y5(ye,oe.current);if(Te!==null){oe.current=Te,R(Te),$(!0);const et=ye?.[Te]&&ye[Te].src;if(et&&G){G.src=et,G.load(),st(G).catch(()=>{});return}}}catch{}z("stopped"),I(1);try{if(G)try{G.currentTime=0}catch{}}catch{}Le(),$(!1),Me();try{!Pe.current&&Xe.current&&Xe.current()}catch{}};return G.addEventListener("play",se),G.addEventListener("pause",ie),G.addEventListener("ended",be),()=>{try{G.removeEventListener("play",se),G.removeEventListener("pause",ie),G.removeEventListener("ended",be),Le()}catch{}}},[ke,Me,st,je,_e,Le]);o.useEffect(()=>He(),[He]),o.useEffect(()=>{Pe.current=s},[s]),o.useEffect(()=>{we.current=r},[r]),o.useEffect(()=>{if(s||W!=="active")return;const G=v.current;if(!G)return;let se=null;const ie=requestAnimationFrame(()=>{try{const be=G.getTotalLength();if(!be)return;const ye=be*.2;G.style.strokeDasharray=`${be-ye} ${ye}`;const Te="triFlow_"+Math.random().toString(36).slice(2);se=document.createElement("style"),se.textContent=`@keyframes ${Te}{from{stroke-dashoffset:0}to{stroke-dashoffset:-${be}}}`,document.head.appendChild(se),G.style.animation=`${Te} 2.4s linear infinite`}catch{}});return()=>{cancelAnimationFrame(ie),se?.remove()}},[W,s]),o.useEffect(()=>{me.current=q},[q]),o.useEffect(()=>{oe.current=F},[F]),o.useEffect(()=>{const G=C.current,se=b.current;if(!G||!se)return;let ie=null;const be=32,ye=60,Te=()=>{try{const ft=Array.from(G.querySelectorAll(":scope > .button"));let it=0;ft.forEach(Ne=>{if(Ne===se)return;const ze=Ne.getBoundingClientRect();it+=ze.width});const yt=G.getBoundingClientRect().width,Rt=Math.max(0,Math.floor(yt-it-8)),Lt=Ye;if(!Lt||Rt<=0){Array.from(se.children).forEach(Ne=>{try{Ne.style.width=""}catch{}});return}let nn=Math.floor(Rt/Lt);nn>ye&&(nn=ye),nn<be&&(nn=Math.max(be,Math.floor(Rt/Lt))),Array.from(se.querySelectorAll(".button")).forEach(Ne=>{try{Ne.style.width=`${nn}px`}catch{}})}catch{}},et=requestAnimationFrame(Te);try{ie=new ResizeObserver(()=>{requestAnimationFrame(Te)}),ie.observe(G),ie.observe(se),window.addEventListener("resize",Te)}catch{}return()=>{try{cancelAnimationFrame(et)}catch{}try{ie&&(ie.disconnect(),ie=null)}catch{}try{window.removeEventListener("resize",Te)}catch{}}},[q,L,Ye]),o.useEffect(()=>()=>{try{Re.current&&(clearTimeout(Re.current),Re.current=null),Se.current&&(clearTimeout(Se.current),Se.current=null)}catch{}},[]);const Qe=(G,se)=>{K(G),Q(se),Ae(),E(X5(G)),me.current=G},pt=async(G,se)=>{Ge(!1),f.current=!1,G.src=se,G.load(),await Ku(G),await de()!==!1&&(D(!1),await st(G),Z("playMode"),R(0),$(!0))},Ot=async(G,se=!1)=>{const ie=g.current;D(!0),H("measuring_duration");try{const be=await Ro(G,{timeoutMs:1e4,rejectOnError:!0});Qe([{src:G,objectUrl:null,duration:be}],be),H("ready"),se&&ie&&await pt(ie,G)}finally{f.current=!1,D(!1)}},Je=async(G,se=!1)=>{const ie=g.current;D(!0),H("measuring_duration");try{const be=await Promise.all(G.map(Te=>Ro(Te,{timeoutMs:1e4})));if(!at.current)return;const ye=G.map((Te,et)=>({src:Te,objectUrl:null,duration:be[et]||0}));Qe(ye,J5(ye)),H("ready"),se&&ie&&ye.length>0&&await pt(ie,ye[0].src)}finally{f.current=!1,D(!1)}},Tt=async(G=!1,se=!0)=>{const ie=g.current,be=n?Array.isArray(n)?n:[n]:[];if(!be||be.length===0||!be.some(Boolean))return!1;if(f.current)return null;f.current=!0,se&&D(!0),H("resolving");try{const ye=Q5(n,a,Vs),Te=[];let et=0;for(const ft of ye){let it=ft.src??null,yt=null;if(!it&&ft.resolvedPath){try{H("getting_signed_url"),it=await Ws(ft.resolvedPath)}catch{it=null}if(!at.current)return!1;if(!it)try{H("downloading");const Lt=await qs(ft.resolvedPath);if(!at.current)return!1;if(Lt){const nn=Lt instanceof Blob?Lt:new Blob([Lt]);yt=w.track(URL.createObjectURL(nn)),it=yt}}catch{H("error");try{ue(c("training.audioFetchError","\uC0AC\uC6B4\uB4DC \uC18C\uC2A4\uB97C \uAC00\uC838\uC624\uC9C0 \uBABB\uD588\uC2B5\uB2C8\uB2E4.")),Z("active")}catch{}}}if(!it)continue;let Rt=0;try{H("measuring_duration"),Rt=await Ro(it,{timeoutMs:3e3})}catch{Rt=0}if(!at.current){if(yt)try{URL.revokeObjectURL(yt)}catch{}for(const Lt of Te)if(Lt.objectUrl)try{URL.revokeObjectURL(Lt.objectUrl)}catch{}return!1}et+=Rt||0,Te.push({...ft,src:it,objectUrl:yt,duration:Rt})}if(Qe(Te,et),Te.length>0&&G&&ie){const ft=Te[0];Ge(!1);try{w.keepOnly(Te.map(it=>it.objectUrl))}catch{}if(H("ready"),f.current=!1,ft.src&&ie)try{if(ie.src=ft.src,ie.load(),await Ku(ie),await de()===!1)return!1;se&&D(!1),ie&&await st(ie)}catch{se&&D(!1)}else se&&D(!1);Z("playMode"),R(0),$(!0)}return Te.length>0}finally{f.current=!1,se&&D(!1),H(ye=>ye==="ready"?"ready":"idle")}},Yt=async()=>{const G=g.current;if(!(!G&&!At)){if(At){const se=window.speechSynthesis;if(W==="active"){const ie=Dr(),be=Array.isArray(i)?i.filter(Boolean):i?[i]:[];if(ie&&be.length>0){Z("load"),D(!0),H("resolving"),f.current=!0;try{const ye=await Promise.all(be.map(Te=>Promise.resolve(ie(Te))));ye.length>1?await Je(ye,!0):await Ot(ye[0],!0)}catch{f.current=!1,D(!1),Z("active"),wt(be.length>0?be:void 0)}return}wt(be.length>0?be:void 0);return}if(W==="playMode"){const ie=!!se&&(se.speaking||se.paused)&&!(G&&(G.currentSrc||G.getAttribute("src")));if(G&&!ie){if(G.paused){if(Oe.current){await Mt();return}await st(G),z("playing")}else qe(),G.pause(),z("paused");return}try{if(se&&se.paused)try{kt("tts"),se.resume(),z("playing")}catch{}else try{se.pause(),z("paused")}catch{}}catch{}}return}if(W==="active"){if(s&&Array.isArray(me.current)&&me.current.length>0){const ie=me.current[0];try{if(ie.src&&G)try{G.src=ie.src,G.load(),G&&await st(G)}catch{}Z("playMode"),R(0),$(!0);return}catch{}}Z("load");let se;try{se=await Tt(!0)}catch{se=!1}if(se===!1&&at.current){try{ue(c("training.audioFetchError","\uC0AC\uC6B4\uB4DC \uC18C\uC2A4\uB97C \uAC00\uC838\uC624\uC9C0 \uBABB\uD588\uC2B5\uB2C8\uB2E4."))}catch{}Z("active")}return}if(W!=="load"&&(W==="playMode"||W==="active"))try{if(G&&G.paused){if(Oe.current){await Mt();return}G&&await st(G),z("playing")}else G&&(qe(),G.pause(),z("paused"))}catch(se){(se instanceof Error||typeof se=="object"&&se&&"name"in se)&&se.name}}},Mt=async()=>{const G=g.current;if(G)try{const se=me.current;if(Array.isArray(se)&&se.length>1){await Nn(0);return}Ge(!1);try{G.currentTime=0}catch{}G&&await st(G),z("playing"),Z("playMode")}catch{}},ln=()=>{if(qe(),dt(),At){ht();return}const G=g.current;try{if(G){try{G.pause()}catch{}try{G.currentTime=0}catch{}}}catch{}Me(),z("stopped"),Z("active"),I(0),$(!1)},un=async(G,{sameSegment:se=!1}={})=>{const ie=++_.current,be=g.current,ye=me.current?.[G]?.src;try{if(Ge(!1),R(G),$(!0),oe.current=G,!ye||!be||(se||Ae(),be.src=ye,be.load(),!se&&await de()===!1)||ie!==_.current||(await st(be),ie!==_.current))return;z("playing"),Z("playMode")}catch{}},cn=async()=>{const G=me.current,se=oe.current||0;if(!G||se<=0){await Mt();return}await un(se-1)},Rn=async()=>{const G=me.current,se=oe.current||0;if(!G||se>=G.length-1){ln();return}await un(se+1)},dn=()=>{if(Oe.current)return;const G=200,se=340;Ge(!0),qe(),dt();try{I(1)}catch{}Ue(1);try{V("hold")}catch{}try{const ie=g.current,be=At&&!!ie?.src;if(!At||be){if(ie){ie.pause();try{ie.currentTime=0}catch{}}}else ht();Me()}catch{}try{z("stopped")}catch{}if($(!1),!Pe.current)try{Se.current&&(clearTimeout(Se.current),Se.current=null),Se.current=setTimeout(()=>{try{V("out")}catch{}Se.current=setTimeout(()=>{try{typeof we.current=="function"&&we.current(!0)}catch{}try{V("idle")}catch{}Se.current=null},se)},G)}catch{}};o.useEffect(()=>{Xe.current=dn});const Pn=o.useCallback(()=>ue(""),[]),Nn=async G=>{(me.current||[])[G]&&await un(G,{sameSegment:G===oe.current})},Bt=M==="playing",mn=o.useMemo(()=>{if(!L||L.length<=1)return L;const G=L[F];return G?[G]:L},[L,F]),Ht=s===!0;o.useEffect(()=>{try{const G=g.current;G&&typeof G.playbackRate=="number"&&(G.playbackRate=X||1)}catch{}},[X]);const Zt=o.useRef({raf:null,timer:null});o.useEffect(()=>{const G=g.current;if(!G)return;const se=Math.max(0,Math.min(1,te)),ie=Zt.current,be=()=>{ie.raf!==null&&(cancelAnimationFrame(ie.raf),ie.raf=null),ie.timer!==null&&(clearTimeout(ie.timer),ie.timer=null)};be();const ye=Ha(G);if(G.paused||Math.abs(ye-se)<.001||typeof requestAnimationFrame!="function"){try{Sn(G,se)}catch{}return}const Te=performance.now(),et=()=>{const ft=Math.min(1,(performance.now()-Te)/150);try{Sn(G,ye+(se-ye)*ft)}catch{}ie.raf=ft<1?requestAnimationFrame(et):null};return ie.raf=requestAnimationFrame(et),ie.timer=setTimeout(()=>{be();try{Sn(G,se)}catch{}},200),be},[te]);const hn=re==="hold",en=re==="out",Cn=W==="playMode"&&!N&&!Be||hn||en,In=M!=="stopped"||hn||en,fn=M==="paused",ne=Math.max(0,Math.min(100,(S||0)*100)),fe=Ee("audio-player__fill",Cn?"is-visible":"",In?"is-expanded":"",fn?"is-paused":"",en?"is-out":"");return t.jsxs("div",{className:`audio-player ${Ht?"is-disabled":""}${l?` ${l}`:""}`,role:"group","aria-label":typeof p=="string"?p:void 0,children:[t.jsxs("div",{className:`audio-player__panel ${Bt?"is-playing":""} ${N?"is-loading":""} ${W!=="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:c(`training.audioStatus.${P}`,{defaultValue:V5[P]})})]}):null,W==="active"?t.jsx("button",{className:"audio-player__button",type:"button",disabled:Ht,onClick:()=>{U.current=nr(),x(),Yt()},"aria-label":typeof p=="string"?p:c("training.listen","\uB4E3\uAE30"),onMouseEnter:B,onMouseLeave:x,onFocus:B,onBlur:x,children:t.jsx("span",{ref:k,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,A&&t.jsx(vn,{anchorRect:A,text:typeof p=="string"&&p?p:c("training.listenLabel","\uBB38\uC7A5 \uB4E3\uAE30"),offset:8}),t.jsxs("div",{className:`audio-player__play ${W==="playMode"||Bt?"is-visible":""}`,inert:!(W==="playMode"||Bt)||void 0,children:[t.jsxs("div",{ref:C,className:"audio-player__buttons",children:[t.jsx(le,{htmlType:"button",size:32,showTooltipInfo:!0,type:"dot",shape:"pill",useBorder:!1,icon:"skip-back",onClick:cn,ariaLabel:c("training.prev","\uC774\uC804"),width:"60px",variant:"transparent-white","aria-hidden":"true",tabIndex:-1,disabled:W!=="playMode"}),t.jsx(le,{htmlType:"button",size:32,showTooltipInfo:!0,type:"dot",shape:"pill",useBorder:!1,icon:Bt?"pause":"play",onClick:Yt,ariaLabel:c("common.playPause","\uC7AC\uC0DD / \uBA48\uCDA4"),"aria-pressed":Bt,width:"60px",variant:"transparent-white",disabled:W!=="playMode"}),t.jsx(le,{htmlType:"button",size:32,showTooltipInfo:!0,type:"dot",shape:"pill",useBorder:!1,icon:"square",onClick:ln,ariaLabel:c("training.stop","\uC815\uC9C0"),width:"60px",variant:"transparent-white","aria-hidden":"true",tabIndex:-1,disabled:W!=="playMode"}),Ye>1?t.jsx("div",{ref:b,className:"audio-player__source-buttons",children:Array.from({length:Ye}).map((G,se)=>t.jsx(le,{htmlType:"button",size:32,type:"dot",shape:"pill",useBorder:!1,label:String(se+1),onClick:()=>{try{Nn(se)}catch{}},ariaLabel:c("training.sourcePlay",{n:se+1}),variant:"transparent-white",selected:O&&F===se,disabled:W!=="playMode"||!(Array.isArray(q)&&q[se]),showTooltipInfo:!0},se))}):null,!Array.isArray(q)||q.length<=1?t.jsx(le,{htmlType:"button",size:32,showTooltipInfo:!0,type:"dot",shape:"pill",useBorder:!1,icon:"repeat",onClick:Mt,ariaLabel:c("common.replay","\uB2E4\uC2DC\uB4E3\uAE30"),width:"60px",variant:"transparent-white",disabled:W!=="playMode"}):null,t.jsx(le,{htmlType:"button",size:32,showTooltipInfo:!0,type:"dot",shape:"pill",useBorder:!1,icon:"skip-forward",onClick:Rn,ariaLabel:c("training.next","\uB2E4\uC74C"),width:"60px",variant:"transparent-white","aria-hidden":!0,tabIndex:-1,disabled:W!=="playMode"}),t.jsx(le,{htmlType:"button",size:32,showTooltipInfo:!0,type:"dot",shape:"pill",useBorder:!1,icon:"check",onClick:dn,ariaLabel:c("common.done","\uC644\uB8CC"),width:"60px",variant:"transparent-white",disabled:W!=="playMode"})]}),t.jsxs("div",{className:"audio-player__slider",children:[t.jsx("div",{className:fe,ref:y,style:{left:`${ne}%`},"aria-hidden":"true"}),(u||d)&&t.jsx(z5,{segments:mn,progress:S,totalDuration:Y,waveProgressRef:he,showSoundWaveForm:u,noiseSrc:d&&m?.settings.enabled&&xe>0?De:null,noiseRatio:m?$a(m.settings):0,noiseSpeed:m?.settings.speed??1,mainVolume:ce,onReadyChange:Ie})]})]}),t.jsx("audio",{ref:g,crossOrigin:"anonymous",preload:"auto"})]}),!u&&t.jsxs("p",{className:"audio-player__no-waveform caption-1",children:[t.jsx(Ze,{icon:"triangle-alert",size:14}),c("training.noSoundWaveform","\uC18C\uB9AC \uBE44\uAD50 \uBB38\uC81C\uB294 \uC6E8\uC774\uBE0C\uD3FC\uC744 \uD45C\uD604\uD558\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4.")]}),t.jsx(ra,{message:ae,position:ge,onClose:Pn})]})}function ur(e){const{t:n}=Ce.useTranslation(),{text:a,label:r,anchorRect:s=null,onClose:i,closeOnOutsideClick:l=!0,isMobilePopup:u=!1}=e||{},[d,c]=o.useState(()=>{try{return localStorage.getItem("tooltip-theme")||"light"}catch{return"light"}});o.useEffect(()=>{try{localStorage.setItem("tooltip-theme",d)}catch{}},[d]);const{increase:p,decrease:m,canIncrease:h,canDecrease:g,fontSize:y,lineHeight:C}=el({storageKey:"tooltip-fontScale"}),w=o.useCallback(()=>c(k=>k==="dark"?"light":"dark"),[]),b=o.useCallback(k=>{try{k.stopPropagation()}catch{}try{typeof i=="function"&&i()}catch{}},[i]),f=Array.isArray(a)?a:typeof a>"u"||a===null?[]:[a],_={fontSize:`${y}px`,lineHeight:`${C}px`,"--tt-line-height":`${C}px`,"--tt-marker-size":"28px"},v=t.jsxs("div",{className:`tooltip-textbox__root ${d==="dark"?"is-dark":""}`,children:[t.jsxs("div",{className:"tooltip-textbox__box",children:[r&&t.jsx("div",{className:"tooltip-textbox__label body-2b",children:r}),t.jsx("div",{className:"tooltip-textbox__text body-1",style:_,children:f.map((k,A)=>t.jsxs("div",{className:"tooltip-textbox__line",children:[f.length>1?t.jsx("div",{className:"tooltip-textbox__marker",children:t.jsx("span",{className:"tooltip-textbox__line-number button-1",children:A+1})}):null,t.jsx("span",{className:"tooltip-textbox__line-text",children:k})]},A))})]}),t.jsxs("div",{className:"tooltip-textbox__buttons",children:[t.jsx(le,{htmlType:"button",size:32,showTooltipInfo:!0,type:"dot",useBorder:!1,width:48,icon:"minus",onClick:m,ariaLabel:n("training.fontSizeDecrease","\uAE00\uC790 \uD06C\uAE30 \uAC10\uC18C"),variant:d==="dark"?"transparent-white":"transparent-gray",disabled:!g}),t.jsx(le,{htmlType:"button",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:d==="dark"?"transparent-white":"transparent-gray",disabled:!h}),t.jsx(le,{htmlType:"button",size:32,showTooltipInfo:!0,type:"dot",useBorder:!1,width:48,icon:d==="dark"?"moon":"sun-medium",onClick:w,ariaLabel:n("training.toggleBackground","\uBC30\uACBD \uC804\uD658"),variant:d==="dark"?"transparent-white":"transparent-gray"}),t.jsx(le,{htmlType:"button",size:32,showTooltipInfo:!0,type:"dot",useBorder:!1,width:48,icon:"x",onClick:b,ariaLabel:n("common.close","\uB2EB\uAE30"),variant:d==="dark"?"transparent-white":"transparent-gray"})]})]});return s?t.jsx(rn,{anchorRect:s,className:`tooltip-textbox ${d==="dark"?"is-dark":""}`,onClose:i,closeOnOutsideClick:l,isMobilePopup:u,ariaLabel:r||n("tooltip.textbox","\uBCF8\uBB38"),children:v}):t.jsx("div",{className:`tooltip-textbox ${d==="dark"?"is-dark":""}`,children:v})}function Yu({state:e="disabled"}){const{t:n}=Ce.useTranslation();return t.jsxs("div",{className:`ts-bullet ts-bullet--${e}`,"aria-hidden":!0,children:[t.jsx("div",{className:"bullet__dot",children:t.jsx(Ze,{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 Zu(e,n,a){const r=o.useRef(n),s=o.useRef(a);o.useEffect(()=>{r.current=n,s.current=a}),o.useEffect(()=>{if(!e||typeof document>"u")return;let i=null,l=10;const u=()=>{i=null;const d=r.current(),c=d?Array.from(d.querySelectorAll(yn)).find(p=>!p.closest('[aria-hidden="true"]')):void 0;if(c){try{c.focus()}catch{}if(document.activeElement===c)return}--l>0&&(i=requestAnimationFrame(u))};return i=requestAnimationFrame(u),()=>{i!==null&&cancelAnimationFrame(i);const d=document.activeElement;if(!d||d===document.body||!document.contains(d)||d.closest(".tooltip-content")){const c=s.current();if(c)try{c.focus()}catch{}}}},[e])}function Xu({title:e,children:n,className:a="",state:r="disabled",usePreviewTextBtn:s=!1,onPreviewTextBtn:i,previewText:l=null,useFaded:u,usePlayAllBtn:d=!1,onPlayAll:c,playAllActive:p=!1}){const{t:m}=Ce.useTranslation(),h=tn("(max-width: 767px)"),g=`training-step__title h4 ${u&&r==="disabled"?"training-step__title--faded":""} ${a}`.trim(),y=`training-step__title-row training-step__title-row--${r}`.trim(),C=o.useRef(null),[w,b]=o.useState(!1),[f,_]=o.useState(null),[v,k]=o.useState(null);Zu(w&&!!f,()=>{if(typeof document>"u")return null;const D=Array.from(document.querySelectorAll(".tooltip-content"));for(let P=D.length-1;P>=0;P--)if(D[P].querySelector(".tooltip-textbox__root"))return D[P];return null},()=>C.current?.querySelector("button")??null);const A=o.useRef(i);o.useEffect(()=>{A.current=i});const B=o.useMemo(()=>l==null?"":typeof l=="string"||typeof l=="number"?String(l):Array.isArray(l)&&l.every(D=>typeof D=="string"||typeof D=="number")?l.join(""):"",[l]),x=o.useCallback(()=>{b(!1),_(null),k(null)},[]);o.useEffect(()=>{if(!w)return;let D;try{typeof A.current=="function"&&(D=A.current())}catch{}if(D===!1){x();return}k(typeof D<"u"&&D!==null?D:null)},[B]);const N=o.useCallback(()=>{let D;try{typeof i=="function"&&(D=i())}catch{}if(D!==!1){if(k(typeof D<"u"&&D!==null?D:l),!C.current){b(P=>!P);return}if(w)b(!1),_(null),k(null);else{const P=C.current.getBoundingClientRect();_(P),b(!0)}}},[i,l,w]);return t.jsxs("div",{className:y,children:[t.jsx("p",{className:g,children:t.jsx("span",{className:"training-step__title-text",children:e??n})}),s||d?t.jsxs("div",{className:"title-controls",children:[t.jsxs("div",{className:"title-buttons",children:[d&&t.jsx(le,{htmlType:"button",size:32,type:h?"dot":"bar",icon:"play-circle",label:h?void 0:m("training.playAll","\uBAA8\uB450 \uB4E3\uAE30"),ariaLabel:m("training.playAll","\uBAA8\uB450 \uB4E3\uAE30"),selected:p,onClick:c,variant:r==="disabled"?"disabled":"default",disabled:r==="disabled"||p,onDisabledClick:p&&r!=="disabled"?()=>{}:void 0}),s&&t.jsx("div",{ref:C,children:t.jsx(le,{htmlType:"button",size:32,type:h?"dot":"bar",icon:"eye",label:h?void 0:m("training.sentencePreview","\uBB38\uC7A5 \uBBF8\uB9AC\uBCF4\uAE30"),ariaLabel:m("training.sentencePreview","\uBB38\uC7A5 \uBBF8\uB9AC\uBCF4\uAE30"),onClick:N,className:w?"is-selected":void 0,"aria-expanded":w,"aria-haspopup":"dialog",variant:r==="disabled"?"disabled":"default",disabled:!l&&typeof i!="function"})})]}),w&&t.jsx(ur,{text:v??l,label:m("training.sentencePreview","\uBB38\uC7A5 \uBBF8\uB9AC\uBCF4\uAE30"),anchorRect:f,onClose:x,closeOnOutsideClick:!1,isMobilePopup:!0})]}):null]})}function Io(e,n){return typeof n!="number"||typeof e!="number"?"disabled":e<n?"done":e===n?"active":"disabled"}function Gn({index:e,stepIndex:n,isLast:a=!1,title:r="",titleProps:s={},children:i,className:l="",onDone:u=void 0,useTitleFaded:d=void 0}){const{t:c}=Ce.useTranslation(),[p,m]=o.useState(()=>Io(e,n));o.useEffect(()=>{const k=Io(e,n);if(k!==p){const A=setTimeout(()=>m(k),0);return()=>clearTimeout(A)}},[e,n,p]);const h=o.useCallback((...k)=>{Io(e,n)==="done"||p==="done"||typeof u=="function"&&u(...k)},[e,n,p,u]),[g,y]=o.useState(!1),[C,w]=o.useState({text:"",label:"\uBB38\uC7A5 \uB4E3\uAE30",anchorRect:null,backdrop:!1,alignX:null,alignY:null}),b=o.useCallback(k=>{if(!k)return null;try{const A=k;if(typeof k=="object"&&(A.currentTarget||A.target)&&(A.nativeEvent||A.type)){const N=A.currentTarget??A.target;if(N&&typeof N.getBoundingClientRect=="function")return N.getBoundingClientRect()}if(k instanceof DOMRect)return k;const B=k;if(B&&typeof B.getBoundingClientRect=="function")return B.getBoundingClientRect();const x=k?.current;return x&&typeof x.getBoundingClientRect=="function"?x.getBoundingClientRect():null}catch{return null}},[]),f=o.useCallback((k,{text:A="",label:B="\uBB38\uC7A5 \uB4E3\uAE30",backdrop:x=!1,alignX:N="center",alignY:D="top"}={})=>{const P=b(k);w({text:A,label:B,anchorRect:P,backdrop:x,alignX:N,alignY:D}),y(!0)},[b]),_=o.useCallback(()=>{y(!1),w(k=>({...k,anchorRect:null}))},[]),v=o.Children.map(i,k=>{if(o.isValidElement(k)){const A=k;if(typeof A.type=="string")return A;const B=A.props??{},x=typeof B.onDone=="function"?B.onDone:h,N=typeof B.disabled=="boolean";let D=p==="disabled";return N&&(D=!!B.disabled),o.cloneElement(A,{onDone:x,disabled:D,showTooltip:f,hideTooltip:_})}return k});return t.jsxs("div",{className:`training-step training-step--${p} ${a?"training-step--last":""} ${l}`,"aria-current":p==="active",children:[t.jsx(Yu,{state:p}),t.jsxs("div",{className:"training-step__content",children:[t.jsx(Xu,{state:p,title:r,...s,useFaded:d}),v]}),g?t.jsx(rn,{anchorRect:C.anchorRect,backdrop:C.backdrop,onClose:_,ariaLabel:c("tooltip.textbox","\uBCF8\uBB38"),children:t.jsx(ur,{text:C.text,onClose:_})}):null]})}function Ju({context:e,state:n="disabled",theme:a="light"}){const{t:r}=Ce.useTranslation(),[s,i]=o.useState("disabled"),[l,u]=o.useState(()=>{try{return localStorage.getItem("tooltip-theme")||a}catch{return a}});o.useEffect(()=>{try{localStorage.setItem("tooltip-theme",l)}catch{}},[l]);const d=()=>u(M=>M==="dark"?"light":"dark"),{increase:c,decrease:p,canIncrease:m,canDecrease:h,fontSize:g,lineHeight:y}=el({storageKey:"textbox_fontScale"}),[C,w]=o.useState(""),b=o.useRef(null),f=o.useRef(!1),_=o.useCallback(()=>{f.current=nr()&&!!b.current&&b.current.contains(document.activeElement),i("active")},[]),v=o.useCallback(()=>w(""),[]),k=M=>{try{w(M)}catch{}},A=typeof navigator<"u"&&/Mobi|Android/i.test(navigator.userAgent||"");o.useEffect(()=>{if(n!=="disabled"){const M=setTimeout(()=>i(n),0);return()=>clearTimeout(M)}},[n]);const B=o.useMemo(()=>e&&typeof e=="object"?String(e.sentence??e.text??""):typeof e=="string"?e:"",[e]),[x,N]=o.useState(B);x!==B&&(N(B),i("disabled"));const D=n==="disabled"?s:n,P=D==="disabled"?"training-text-box--disabled":D==="active"?"training-text-box--active":D==="done"?"training-text-box--done":"",H=o.useMemo(()=>({fontSize:`${g}px`,lineHeight:`${y}px`}),[g,y]);return o.useEffect(()=>{if(D==="disabled"||!f.current)return;f.current=!1;const M=document.activeElement;M&&M!==document.body||b.current?.querySelector(".training-text-box__buttons button")?.focus()},[D]),t.jsxs("div",{ref:b,className:`training-text-box ${P} ${D!=="disabled"&&l==="dark"?"is-dark":""}`,children:[D==="disabled"&&t.jsx("div",{className:"training-text-box__preview",children:t.jsx(le,{htmlType:"button",size:48,type:"bar",onClick:_,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":D==="disabled",children:t.jsx("span",{className:"training-text-box__inner h3",style:H,children:B})}),D!=="disabled"&&t.jsxs("div",{className:"training-text-box__buttons","aria-hidden":D==="disabled",children:[t.jsx(le,{htmlType:"button",size:32,type:"dot",onClick:p,onDisabledClick:()=>k(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:!h,useBorder:!1,showTooltipInfo:!0,...!A&&{width:"60px"}}),t.jsx(le,{htmlType:"button",size:32,type:"dot",onClick:c,onDisabledClick:()=>k(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:!m,useBorder:!1,showTooltipInfo:!0,...!A&&{width:"60px"}}),t.jsx(le,{htmlType:"button",size:32,showTooltipInfo:!0,type:"dot",useBorder:!1,width:48,icon:l==="dark"?"moon":"sun-medium",onClick:d,ariaLabel:r("training.toggleBackground","\uBC30\uACBD \uC804\uD658"),variant:l==="dark"?"transparent-white":"transparent-gray"})]}),t.jsx(ra,{message:C,position:"top",onClose:v})]})}function Fo({index:e,stepIndex:n,isLast:a=!1,title:r,useTitleFaded:s,onDone:i,onChange:l,answer:u,wrongAnswers:d,choices:c,multiSelect:p=!1,correctCount:m=0,useDisabledCovered:h=!1,choiceIcons:g,shuffleChoices:y=!0}){const{t:C}=Ce.useTranslation(),w=r??C("training.selectConfirm","\uBB38\uC81C\uB97C \uBCF4\uACE0 \uD574\uB2F9\uD558\uB294 \uB0B4\uC6A9\uC744 \uC120\uD0DD\uD558\uC138\uC694."),b=typeof e=="number"?e:-1,f=typeof n!="number"?"disabled":b<n?"done":b===n?"active":"disabled",_=Array.isArray(c)&&c.length?c:typeof u<"u"?[u].concat(Array.isArray(d)?d:[]):void 0,v=d?d.join("||"):"",k=c?c.join("||"):"",[A,B]=o.useState(()=>Array.isArray(_)?y?ya(_):_.slice():void 0);o.useEffect(()=>{Array.isArray(_)&&_.length?B(y?ya(_):_.slice()):B(void 0)},[u,v,k,y]);const[x,N]=o.useState(null),[D,P]=o.useState(()=>new Set);o.useEffect(()=>{N(null),P(new Set)},[k,u,v]);const H=o.useRef(void 0);o.useEffect(()=>{const j=H.current;typeof j=="number"&&typeof n=="number"&&typeof e=="number"&&j>=e&&n<e&&(N(null),P(new Set)),H.current=n},[n,e]);const M=o.useCallback(j=>{if(f!=="active")return;const S=A?.[j];if(S==null)return;const I=S,W=f==="active"||f==="done";if(p){const Z=new Set(D),U=Z.has(I);U?Z.delete(I):Z.add(I),P(Z),typeof l=="function"&&l({selectedValues:[...Z],__ts:Date.now()}),W&&(typeof m=="number"&&m>0?Z.size>=m:!U)&&typeof i=="function"&&f==="active"&&i({selectedValues:[...Z],__ts:Date.now()})}else N(I),typeof l=="function"&&l({selectedIndex:j,selectedValue:I,__ts:Date.now()}),W&&typeof i=="function"&&f==="active"&&i({selectedIndex:j,selectedValue:I,__ts:Date.now()})},[A,f,p,l,i,m,D]),z=`training-step__buttons${Array.isArray(A)&&A.length>3?" training-step__buttons--wrap-3":""}`;return t.jsx(Gn,{index:e,stepIndex:n,isLast:a,title:w,useTitleFaded:s,children:t.jsx("div",{className:z,children:Array.isArray(A)&&A.length>0?A.map((j,S)=>t.jsx(le,{htmlType:"button",size:56,type:"bar",onClick:()=>M(S),ariaLabel:String(j),label:j,useLabel:!0,icon:g?g[String(j)]:void 0,variant:"default",disabled:f==="disabled",selected:p?D.has(j):x===j,useDisabledCovered:h,minWidth:0},String(j))):null})})}function Oo({index:e,stepIndex:n,isLast:a=!1,title:r,onDone:s,onChange:i,context:l,demoSelected:u}){const{t:d}=Ce.useTranslation(),c=r??d("training.confirmTitle","\uBB38\uC7A5\uC744 \uD655\uC778\uD558\uACE0 \uC798 \uB4E4\uB838\uB294\uC9C0 \uC120\uD0DD\uD558\uC138\uC694."),p=typeof e=="number"?e:-1,m=typeof n!="number"?"disabled":p<n?"done":p===n?"active":"disabled",h=l&&typeof l=="object"?l.sentence||"":typeof l=="string"?l:"",g=l&&typeof l=="object"?l.choices:void 0,[y,C]=o.useState(u??null),w=`${String(h)}\0${JSON.stringify(g??null)}`,[b,f]=o.useState(w);b!==w&&(f(w),u==null&&C(null));const[_,v]=o.useState(u);Object.is(_,u)||(v(u),C(u??null));const k=o.useRef(void 0);o.useEffect(()=>{const N=k.current;typeof N=="number"&&typeof n=="number"&&typeof e=="number"&&N>=e&&n<e&&u==null&&C(null),k.current=n},[n,e,u]);const A=o.useCallback(N=>{const D=typeof N=="object"&&N!==null?Object.assign({},N,{__ts:Date.now()}):{value:N,__ts:Date.now()};typeof i=="function"&&i(D),m==="active"&&typeof s=="function"&&s(D)},[i,m,s]),B=o.useCallback(()=>{m==="active"&&(C(!1),A(!1))},[A,m]),x=o.useCallback(()=>{m==="active"&&(C(!0),A(!0))},[A,m]);return t.jsxs(Gn,{index:e,stepIndex:n,isLast:a,title:c,onDone:s,useTitleFaded:!1,children:[t.jsx(Ju,{context:l,state:m}),t.jsx("div",{className:"training-step__buttons",children:Array.isArray(g)&&g.length>0?g.slice(0,6).map((N,D)=>t.jsx(le,{htmlType:"button",size:56,type:"bar",onClick:()=>{m==="active"&&(C(D),A&&A(D))},disabled:m==="disabled",ariaLabel:String(N),label:N,variant:m,selected:y===D},D)):t.jsxs(t.Fragment,{children:[t.jsx(le,{htmlType:"button",size:56,type:"bar",onClick:B,disabled:m==="disabled",icon:"x",ariaLabel:d("training.notHeard","\uC548 \uB4E4\uB838\uC5B4\uC694."),label:d("training.notHeard","\uC548 \uB4E4\uB838\uC5B4\uC694."),variant:"default",selected:y===!1}),t.jsx(le,{htmlType:"button",size:56,type:"bar",onClick:x,disabled:m==="disabled",icon:"circle",ariaLabel:d("training.heardWell","\uC798 \uB4E4\uB838\uC5B4\uC694."),label:d("training.heardWell","\uC798 \uB4E4\uB838\uC5B4\uC694."),variant:"default",selected:y===!0})]})})]})}function Ho({index:e,stepIndex:n,isLast:a=!1,title:r,onDone:s,btnLabel:i,soundSrc:l,bucketPath:u,usePreviewTextBtn:d,previewText:c=null,onPreviewTextBtn:p,disabled:m,_pageIndex:h,showSoundWaveForm:g,showNoiseWaveForm:y}){const{t:C}=Ce.useTranslation(),w=r??C("training.listenTitle","\uC81C\uC2DC\uD558\uB294 \uBB38\uC7A5\uC744 \uB4E4\uC5B4\uC8FC\uC138\uC694."),b=m??(typeof n=="number"&&typeof e=="number"?e>n:!1);return t.jsx(Gn,{index:e,stepIndex:n,isLast:a,title:w,onDone:s,titleProps:{usePreviewTextBtn:d,previewText:c,onPreviewTextBtn:p},children:t.jsx(Po,{soundSrc:l,ttsText:l?null:c??w,bucketPath:u,btnLabel:i||C("training.listenButton","\uBB38\uC7A5 \uB4E3\uAE30"),disabled:b,className:"training-step__listen-sticky",showSoundWaveForm:g,showNoiseWaveForm:y},`audio-p${h??0}-s${e}`)})}const n3=[];function zo({index:e,stepIndex:n,isLast:a=!1,title:r,onDone:s,onChange:i,context:l=n3}){const{t:u}=Ce.useTranslation(),d=r??u("training.orderListDefault","\uBB38\uC7A5\uC744 \uB4E4\uC740 \uC21C\uC11C\uB300\uB85C \uBC30\uCE58\uD558\uC138\uC694."),c=L=>typeof L=="string"?L:L&&(L.context||L.sentence||L.question||"")||"",[p,m]=o.useState(Array.isArray(l)?l:[]),[h,g]=o.useState(()=>(p||[]).map((L,E)=>({id:E,text:c(L)}))),y=o.useMemo(()=>typeof n!="number"||typeof e!="number"?"disabled":e<n?"done":e===n?"active":"disabled",[n,e]),C=y!=="disabled",w=o.useRef(void 0);o.useEffect(()=>{if(w.current===l)return;w.current=l;const L=Array.isArray(l)?l:[];m(L);const E=(F=>{const R=(F||[]).map((Q,X)=>({id:X,text:c(Q)}));if(R.length<=1)return R;const O=(Q,X)=>{if(Q.length!==X.length)return!1;for(let ce=0;ce<Q.length;ce++)if(Q[ce].text!==X[ce].text)return!1;return!0};let $=ya(R),Y=0;for(;O($,R)&&Y<20;)$=ya(R),Y+=1;return $})(L);g(E);try{if(typeof i=="function"){const F=E.filter((R,O)=>R.text===c(L[O])).length;i({shuffled:E,score:F,total:(L||[]).length,initial:!0,__ts:Date.now()})}if(typeof s=="function"&&y==="active"){const F=E.filter((R,O)=>R.text===c(L[O])).length;s({shuffled:E,score:F,total:(L||[]).length,initial:!0,__ts:Date.now()})}}catch{}},[l]);const b=(L,E)=>{const F=[...h],R=L+E;if(R<0||R>=F.length)return;const O=F[R];F[R]=F[L],F[L]=O,S(F);try{if(typeof s=="function"&&y==="active"){const $=F.filter((Y,Q)=>Y.text===c(p[Q])).length;s({shuffled:F,score:$,total:(p||[]).length,__ts:Date.now()})}}catch{}},[f,_]=o.useState(null),v=o.useRef(null),k=o.useRef(null),A=o.useRef(null),B=o.useRef(null),x=o.useRef(null),N=o.useRef({x:0,y:0}),D=o.useRef(null),P=o.useRef({dx:0,dy:0}),H=()=>{if(D.current!==null)return;const L=()=>{if(!v.current){D.current=null;return}D.current=requestAnimationFrame(L);const E=N.current,F=P.current||{dx:0,dy:0};v.current&&(v.current.style.transform=`translate3d(${E.x-F.dx}px, ${E.y-F.dy}px, 0)`)};D.current=requestAnimationFrame(L)},M=o.useRef(new Map),z=o.useRef(new Map),j=()=>{const L=new Map;return M.current.forEach((E,F)=>{E&&E.getBoundingClientRect&&L.set(F,E.getBoundingClientRect())}),L},S=L=>{const E=j();g(L);try{if(typeof i=="function"){const F=L.filter((R,O)=>R.text===c(p[O])).length;i({shuffled:L,score:F,total:(p||[]).length,__ts:Date.now()})}}catch{}requestAnimationFrame(()=>{const F=j();L.forEach(R=>{const O=E.get(R.id),$=F.get(R.id),Y=M.current.get(R.id);if(!Y||!O||!$)return;const Q=O.top-$.top;Q&&(Y.style.transition="none",Y.style.transform=`translateY(${Q}px)`,requestAnimationFrame(()=>{Y.style.transition="transform 420ms cubic-bezier(.22,.9,.39,1)",Y.style.transform="";const X=()=>{Y.style.transition="",Y.removeEventListener("transitionend",X)};Y.addEventListener("transitionend",X)}))})})},I=(L,E)=>{try{try{E.dataTransfer?.setData("text/plain",String(L))}catch{}try{E.dataTransfer&&(E.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),E.dataTransfer?.setDragImage(F,0,0),requestAnimationFrame(()=>{try{document.body.removeChild(F)}catch{}})}catch{}}catch{}_(L);try{const F=h[L],R=document.createElement("div");R.className="order-list__dragging-object order-list__dragging-object--visible",R.textContent=F&&F.text?F.text:"",document.body.appendChild(R),v.current=R;const O=M.current.get(F.id);let $=E.clientX||0,Y=E.clientY||0;try{if(O&&O.getBoundingClientRect){const re=O.getBoundingClientRect();$=re.left+re.width/2,Y=re.top+re.height/2}}catch{}const Q=R.getBoundingClientRect(),X=Q.width/2,ce=Q.height/2;P.current={dx:X,dy:ce},R.style.transition="none",N.current={x:$,y:Y},R.style.transform=`translate3d(${$-X}px, ${Y-ce}px, 0)`,requestAnimationFrame(()=>{try{R.style.transition=""}catch{}H()});const xe=re=>{const V=re;N.current={x:V.clientX,y:V.clientY},H()};A.current=xe,document.addEventListener("mousemove",xe);const te=re=>{const V=re;N.current={x:V.clientX,y:V.clientY},H()};k.current=te,document.addEventListener("dragover",te);try{E.dataTransfer?.setData("text/plain",String(L));try{E.dataTransfer?.setData("application/json",JSON.stringify({idx:L}))}catch{}}catch{}}catch{}},W=(L,E)=>{E.preventDefault();try{E.dataTransfer&&(E.dataTransfer.dropEffect="move")}catch{}try{x.current!==null&&(clearTimeout(x.current),x.current=null);const F=E.currentTarget&&E.currentTarget.closest?E.currentTarget.closest(".order-list__item"):null;if(F&&B.current!==F){if(B.current)try{B.current.classList.remove("drag-over")}catch{}try{F.classList.add("drag-over")}catch{}B.current=F}}catch{}},Z=(L,E)=>{E.preventDefault();const F=E.dataTransfer?.getData("text/plain")||"",R=F?parseInt(F,10):f,O=L;if(typeof R!="number"||isNaN(R)||R===O){_(null),K(),U();return}const $=AC(h,R,O);S($),_(null),U();try{if(typeof s=="function"&&y==="active"){const Y=$.filter((Q,X)=>Q.text===c(p[X])).length;s({shuffled:$,score:Y,total:(p||[]).length,__ts:Date.now()})}}catch{}try{requestAnimationFrame(()=>{const Y=document.querySelectorAll(".order-list .order-list__item")[O];if(!Y)return;const Q=Y.querySelector(".order-list__slot")||Y;try{Q.classList.add("pulse"),Q.offsetHeight,Q.classList.add("to-dark");const X=()=>{Q.classList.remove("pulse","to-dark"),Q.removeEventListener("transitionend",X)};Q.addEventListener("transitionend",X)}catch{}})}catch{}K()},U=()=>{if(v.current){try{document.body.removeChild(v.current)}catch{}v.current=null}k.current&&(document.removeEventListener("dragover",k.current),k.current=null),A.current&&(document.removeEventListener("mousemove",A.current),A.current=null),D.current!==null&&(cancelAnimationFrame(D.current),D.current=null)},q=()=>{_(null),K(),U()};o.useEffect(()=>()=>U(),[]);const K=()=>{try{if(x.current!==null&&(clearTimeout(x.current),x.current=null),B.current){try{B.current.classList.remove("drag-over")}catch{}B.current=null}document.querySelectorAll(".order-list .order-list__item").forEach(L=>L.classList.remove("drag-over"))}catch{}};return o.useEffect(()=>{try{const L=Math.max(1,(h||[]).length);h.forEach((E,F)=>{const R=z.current.get(E.id);if(!R)return;let O=50;L>1&&(O=Math.round(F/(L-1)*100));try{R.style.setProperty("--marker-pos",O+"%")}catch{}})}catch{}},[h]),o.useEffect(()=>()=>{U(),x.current!==null&&(clearTimeout(x.current),x.current=null)},[]),t.jsx(Gn,{index:e,stepIndex:n,isLast:a,title:d,children:t.jsx("div",{className:"order-list",children:h.map((L,E)=>{const F=Math.max(1,(h||[]).length),R=F>1?Math.round(E/(F-1)*100):50;return t.jsx("div",{className:"order-list__item",children:t.jsxs("div",{className:"order-list__slot","data-disabled":y==="disabled","aria-disabled":y==="disabled",children:[y!=="disabled"?t.jsx("div",{className:"order-list__marker caption-1",style:{"--marker-pos":R+"%"},ref:O=>{const $=z.current;O?$.set(L.id,O):$.delete(L.id)},children:t.jsx("span",{className:"order-list__slot-number button-1",children:E+1})}):null,t.jsxs("div",{ref:O=>{const $=M.current;O?$.set(L.id,O):$.delete(L.id)},className:`order-list__draggable ${f===E?"dragging":""}`,"data-disabled":y==="disabled","aria-disabled":y==="disabled",tabIndex:y==="disabled"?-1:0,draggable:C,onDragStart:C?O=>I(E,O):void 0,onDragEnter:C?O=>W(E,O):void 0,onDragOver:C?O=>W(E,O):void 0,onDragLeave:C?()=>{try{x.current!==null&&clearTimeout(x.current),x.current=setTimeout(()=>{try{const O=document.querySelectorAll(".order-list .order-list__item");O&&O[E]&&(O[E].classList.remove("drag-over"),B.current===O[E]&&(B.current=null))}catch{}},80)}catch{}}:void 0,onDrop:C?O=>Z(E,O):void 0,onDragEnd:C?q:void 0,children:[t.jsx("span",{className:"order-list__item-text body-2",children:L.text}),C?t.jsxs("span",{className:"order-list__item-buttons",children:[t.jsx(le,{htmlType:"button",size:32,type:"dot",onClick:()=>b(E,-1),ariaLabel:u("training.up"),icon:"chevron-up",variant:"transparent-gray",width:48,useFaded:"true",disabled:E===0,useBorder:!1,useDisabledInvisible:!0}),t.jsx(le,{htmlType:"button",size:32,type:"dot",onClick:()=>b(E,1),ariaLabel:u("training.down"),icon:"chevron-down",variant:"transparent-gray",width:48,useFaded:"true",disabled:E===h.length-1,useBorder:!1,useDisabledInvisible:!0})]}):null]})]})},L.id)})})})}const a3=8e3;function r3(e,n){return new Promise(a=>{let r=!1;const s=()=>{r||(r=!0,a())};e.then(s,s),setTimeout(s,n)})}function Qu({index:e,stepIndex:n,isLast:a=!1,title:r,onDone:s,onChange:i,context:l=[],selectable:u=!1,hideLabel:d=!1,hideAudio:c=!1,maxCards:p}){const{t:m}=Ce.useTranslation(),h=r??m("training.cardInstructions","\uB0B1\uB9D0 \uCE74\uB4DC\uB97C \uBCF4\uACE0 \uC18C\uB9AC\uB97C \uB4E3\uACE0 \uD655\uC778\uD558\uC138\uC694."),g=o.useMemo(()=>Array.isArray(l)?l:l&&l.items||[],[l]),y=p??3,C=(g||[]).slice(0,y);(g||[]).length>y&&console.warn(`TrainingStepCard: ${g.length} items passed but only ${y} shown`);const w=typeof e=="number"?e:-1,b=typeof n!="number"?"disabled":w<n?"done":w===n?"active":"disabled",[f,_]=o.useState(null),v=o.useRef([]),[k,A]=o.useState(!1),B=o.useRef(null),x=o.useRef(!0);o.useEffect(()=>(x.current=!0,()=>{x.current=!1}),[]);const N=o.useMemo(()=>g.map(z=>z?.id??z?.word??"").join("|"),[g]);o.useEffect(()=>{_(null)},[N]);const D=o.useRef(void 0);o.useEffect(()=>{const z=D.current;typeof z=="number"&&typeof n=="number"&&typeof e=="number"&&z>=e&&n<e&&_(null),D.current=n},[n,e]);const P=o.useCallback((z,j)=>{if(u)return;const S={item:z,index:j,__ts:Date.now()};try{typeof i=="function"&&i(S)}catch{}if(b==="active"&&typeof s=="function")try{s(S)}catch{}},[u,i,b,s]),H=o.useCallback(async()=>{if(k||b==="disabled")return;A(!0);let z=!1;const j=new Promise(S=>{B.current=()=>{z=!0,S()}});try{for(let S=0;S<C.length&&!(!x.current||z);S++){const I=v.current[S];I&&await Promise.race([r3(I.play(),a3),j])}}finally{B.current=null,A(!1)}},[k,b,C.length]),M=o.useCallback((z,j)=>{if(b!=="active")return;_(j);const S={selectedValue:z.word||z.title||"",selectedIndex:j,item:z,__ts:Date.now()};try{typeof i=="function"&&i(S)}catch{}if(b==="active"&&typeof s=="function")try{s(S)}catch{}},[i,b,s]);return t.jsx(Gn,{index:e,stepIndex:n,isLast:a,title:h,onDone:s,titleProps:{usePlayAllBtn:!c&&C.length>0,onPlayAll:H,playAllActive:k},children:t.jsx("div",{className:"training-step__cards",onClickCapture:z=>{const j=B.current;if(!j)return;const S=z.target;S&&typeof S.closest=="function"&&S.closest(".training-word-card__bottom")&&j()},children:C.length===0?t.jsx("div",{className:"training-step__empty",children:m("training.noCards","\uCE74\uB4DC\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4.")}):C.map((z,j)=>t.jsx(_o,{ref:S=>{v.current[j]=S},item:z,disabled:b==="disabled",onPlayDone:()=>P(z,j),selectable:u,selected:u&&f===j,onSelect:u?()=>M(z,j):void 0,flipDelay:j*120,hideLabel:d,hideAudio:c},z&&z.id||j))})})}const o3=160,s3={\uBCF4\uCCAD\uAE30:"hearingAid",\uC778\uACF5\uC640\uC6B0:"cochlearImplant"};function i3(e,n){const a=s3[e];return a?n(`device.type.${a}`,{defaultValue:e}):e}const ec=()=>{};function Mn(e){const n=o.useId();if(!("variant"in e)){const{label:b,sub:f,onClick:_,children:v,align:k="horizontal",icon:A,useFullWidth:B=!1}=e,x=N=>{_&&N.target===N.currentTarget&&(N.key==="Enter"||N.key===" ")&&(N.preventDefault(),_())};return t.jsxs("div",{className:Ee("panel-row",k==="vertical"?"panel-row--vertical":"",B?"panel-row--label-fixed panel-row--fill":"",_?"panel-row--clickable":""),onClick:_,onKeyDown:_?x:void 0,role:_?"button":void 0,tabIndex:_?0:void 0,children:[A!=null&&t.jsx("div",{className:"panel-row__icon",children:A}),b!=null&&t.jsxs("div",{className:"panel-row__left",children:[t.jsx("div",{className:"panel-row__label body-3",children:b}),f&&t.jsx("div",{className:"panel-row__sub caption-1",children:f})]}),t.jsx("div",{className:"panel-row__right",children:v})]})}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:s,onClick:i,required:l,error:u,align:d="horizontal",useFullWidth:c=!1,icon:p}=e,m=a==="button"?void 0:i;let h=null;const g=a==="toggle"?`panel-toggle-${n}`:void 0,y=u?`panel-error-${n}`:void 0;if(a==="toggle"){const b=e;h=t.jsx(Ol,{checked:b.checked,onChange:b.onChange,id:g})}else if(a==="segmented"){const b=e;h=t.jsx(An,{options:b.options,value:b.value,onChange:b.onChange,size:b.size??40,ariaLabel:r})}else if(a==="dropdown"){const b=e,f=b.dropdowns?.length?t.jsx("div",{className:`panel-row__dropdown-group${c?" panel-row__dropdown-group--full":""}`,children:b.dropdowns.map((_,v)=>t.jsx("div",{className:c?"panel-row__dropdown-item--full":void 0,children:t.jsx(sn,{options:_.options,value:_.value,onChange:_.onChange,placeholder:_.placeholder,block:c,error:!!u,ariaDescribedBy:y,ariaLabel:_.ariaLabel??([r,_.placeholder].filter(Boolean).join(" ")||void 0)})},v))}):t.jsx(sn,{options:b.options??[],value:b.value??"",onChange:b.onChange??ec,block:c,error:!!u,ariaLabel:r,ariaDescribedBy:y});h=u?t.jsxs("div",{className:`panel-row__dropdown-error-wrap${c?" panel-row__dropdown-error-wrap--full":""}`,children:[f,t.jsx("span",{id:y,className:"caption-1 panel-row__error",role:"alert",children:u})]}):f}else if(a==="button"){const b=e;b.buttons?.length?h=t.jsx("div",{className:"panel-row__button-group",children:b.buttons.map((f,_)=>t.jsx(le,{htmlType:"button",size:f.btnSize??40,variant:f.btnVariant??"default",disabled:f.disabled,onClick:f.onClick,children:f.label},_))}):h=t.jsx(le,{htmlType:"button",size:b.btnSize??40,variant:b.btnVariant??"default",disabled:b.disabled,onClick:b.onClick,children:b.buttonLabel})}else if(a==="text"){const b=e;h=t.jsx("span",{className:`panel-row__text body-2${c?" panel-row__text--full":""}`,style:b.valueColor?{color:b.valueColor}:void 0,children:b.value})}else if(a==="input"){const b=e;h=t.jsxs("div",{className:`panel-row__input-wrap${c?" panel-row__input-wrap--full":""}`,children:[t.jsx(Un,{value:b.value,onChange:b.onChange??ec,onKeyDown:b.onKeyDown,onEnter:b.onEnter,placeholder:b.placeholder,ghostText:b.ghostText,ghostHint:b.ghostHint,inputMode:b.inputMode,readOnly:b.readOnly,disabled:b.disabled,type:b.type,autoComplete:b.autoComplete,maxLength:b.maxLength,showCount:b.showCount,multiline:b.multiline,rows:b.rows,fullWidth:c,error:u,ariaLabel:r,required:l}),b.helperText&&t.jsx("div",{className:"panel-row__helper caption-1",children:b.helperText})]})}else a==="custom"&&(h=e.children);u&&a!=="input"&&a!=="dropdown"&&(h=t.jsxs("div",{className:`panel-row__dropdown-error-wrap${c?" panel-row__dropdown-error-wrap--full":""}`,children:[h,t.jsx("span",{id:y,className:"caption-1 panel-row__error",role:"alert",children:u})]}));const C=a==="input"||a==="dropdown"||(a==="text"||a==="custom")&&c,w=b=>{m&&b.target===b.currentTarget&&(b.key==="Enter"||b.key===" ")&&(b.preventDefault(),m())};return t.jsxs("div",{className:Ee("panel-row",d==="vertical"?"panel-row--vertical":"",C?"panel-row--label-fixed":"",a==="text"?"panel-row--text":"",m?"panel-row--clickable":""),onClick:m,onKeyDown:m?w:void 0,role:m?"button":void 0,tabIndex:m?0:void 0,children:[p!=null&&t.jsx("div",{className:"panel-row__icon",children:p}),t.jsxs("div",{className:"panel-row__left",children:[g?t.jsxs("label",{htmlFor:g,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:"*"})]}),s&&t.jsx("div",{className:"panel-row__sub caption-1",children:s})]}),t.jsx("div",{className:"panel-row__right",children:h})]})}function tc(e){const n=e.productName||e.brand,a=[e.brand,e.fitType].filter(r=>!!r&&r!==n);return[...new Set(a)].join(" \xB7 ")}function l3({devices:e,onRelease:n,emptyLabel:a}){const{t:r}=Ce.useTranslation();return t.jsx("div",{className:"panel-row panel-row--device",children:["\uC88C","\uC6B0"].map(s=>{const i=e[s],l=s==="\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}),i&&n&&t.jsx(le,{htmlType:"button",size:32,type:"dot",icon:"x",ariaLabel:`${l} ${r("customers.device.unwear","\uCC29\uC6A9 \uD574\uC81C")}`,showTooltipInfo:r("customers.device.unwear","\uCC29\uC6A9 \uD574\uC81C"),onClick:()=>n(s)})]}),i?t.jsxs("div",{className:"panel-row__device-info",children:[t.jsxs("span",{className:"panel-row__device-kind",children:[i.device&&t.jsx(bt,{size:"small",variant:ru(i.device),fill:"soft",label:i3(i.device,r)}),tc(i)&&t.jsx("span",{className:"panel-row__device-detail body-3",children:tc(i)})]}),t.jsx("span",{className:"panel-row__device-name body-2b",children:i.productName||i.brand}),yo(i.wornYear,i.wornMonth,i.wornDay)&&t.jsx("span",{className:"panel-row__device-date caption-1",children:r("customers.device.wornSince",{date:yo(i.wornYear,i.wornMonth,i.wornDay)})})]}):t.jsx("span",{className:"panel-row__device-empty body-3",children:a??r("customers.device.notRegistered","\uBBF8\uB4F1\uB85D")})]},s)})})}function cr({title:e,icon:n,disc:a,actions:r,size:s="medium",minHeight:i,maxWidth:l,className:u,scrollable:d,scrollbarGutter:c="auto",compactRows:p=!1,useBorder:m=!0,useBg:h=!0,useRowBorder:g=!0,labelWidth:y,form:C=!1,loading:w,empty:b,children:f}){const _=Ee("panel",`panel--${s}`,C?"panel--form":"",i!==void 0?"panel--fill":"",m?"":"panel--no-border",h?"":"panel--no-bg",g?"":"panel--no-row-border",p?"panel--compact-rows":"",u),v={};return i!==void 0&&(v.minHeight=i),l!==void 0&&(v.maxWidth=typeof l=="number"?`${l}px`:l),y!==void 0&&(v["--panel-label-width"]=typeof y=="number"?`${y}px`:y),t.jsxs("div",{className:_,style:Object.keys(v).length?v:void 0,children:[(e!=null||a!=null)&&t.jsxs("div",{className:Ee("panel__header",a!=null?"panel__header--with-disc":""),children:[n&&t.jsx(Ze,{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})]}),w?t.jsx(Mn,{variant:"loading"}):b!=null&&o.Children.toArray(f).length===0?t.jsx(Mn,{variant:"empty",children:b}):d?t.jsx("div",{className:Ee("panel__body--scroll",c==="stable"&&"panel__body--gutter-stable"),children:f}):f]})}function u3({cols:e=2,children:n}){return t.jsx("div",{className:"panel-grid",style:{"--panel-grid-cols":e},children:n})}function c3(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 nc(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"}]}c3(Dt.t.bind(Dt)),nc(Dt.t.bind(Dt));const Vo="none",d3=.5,p3=1.5,m3=.25;function Wo({title:e,valueLabel:n,value:a,min:r,max:s,step:i,tickStep:l,size:u,onChange:d}){return t.jsxs(Mn,{variant:"custom",label:e,useFullWidth:!0,children:[t.jsx(Ql,{value:a,onChange:d,min:r,max:s,step:i,size:u,showBgTick:!0,tickStep:l,ariaLabel:e,className:"noise-settings__slider-input"}),t.jsx("div",{className:"noise-settings__value button-1",children:n})]})}function ac({anchorRect:e,onClose:n}){const{t:a}=Ce.useTranslation(),r=tn("(max-width: 767px)")?40:24,s=ir(),i=$a(s?.settings??Pa),l=s?.settings.type??"defaultNoise",u=s?.settings.enabled??!0,d=s?.playbackRate??1,c=s?.mainVolume??1,p=Math.round(c*100),m=o.useCallback(C=>{try{s?.setMainVolume(Math.max(0,Math.min(1,C/100)))}catch{}},[s]),h=o.useCallback(C=>{try{s?.setPlaybackRate(C)}catch{}},[s]),g=o.useCallback(C=>{const w=Math.min(La,Math.max(0,Math.round(C*10)/10));try{s?.setSettings({noiseRatio:w})}catch{}},[s]),y=o.useCallback(C=>{try{C===Vo?s?.setSettings({enabled:!1}):s?.setSettings({type:C,enabled:!0})}catch{}},[s]);return t.jsx(rn,{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(le,{htmlType:"button",size:40,type:"dot",icon:"x",variant:"transparent-gray",useBorder:!1,ariaLabel:a("common.close","\uB2EB\uAE30"),onClick:n})]}),children:t.jsxs(cr,{className:"noise-settings",useBorder:!1,labelWidth:72,children:[t.jsx(Wo,{title:a("training.playVolumeTitle","\uC804\uCCB4 \uC18C\uB9AC"),valueLabel:`${p}%`,value:p,min:0,max:100,step:10,size:r,onChange:m}),t.jsx(Wo,{title:a("training.playSpeedTitle","\uC7AC\uC0DD \uC18D\uB3C4"),valueLabel:`${d.toFixed(2)}x`,value:d,min:d3,max:p3,step:m3,size:r,onChange:h}),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:Vo,label:a("training.noise.type.none","\uC5C6\uC74C")},...nc(a).map(C=>({key:C.value,label:C.label}))],value:u?l:Vo,onChange:y})}),t.jsx(Wo,{title:a("training.noiseRatioTitle","\uC18C\uC74C \uBE44\uC728"),valueLabel:a("training.noiseRatioValue","{{ratio}}\uBC30",{ratio:i.toFixed(1)}),value:i,min:0,max:La,step:Hu,size:r,onChange:g})]})})}function rc({useNoiseSettingBtn:e=!1,onSettings:n,onNext:a,onResult:r,stepIndex:s=0,stepCount:i=0,pageIndex:l=0,pageCount:u=1,resultOpen:d=!1}){const{t:c}=Ce.useTranslation(),[p,m]=o.useState(!1),[h,g]=o.useState(null),[y,C]=o.useState(!1),w=o.useRef(null),b=o.useRef(null),f=ir(),_=u>0,v=_&&l<u-1,k=!_||l>=u-1,A=s===Math.max(0,i);o.useEffect(()=>{e||(m(!1),g(null))},[e]);const B=o.useCallback(()=>{m(!1),g(null)},[]),x=o.useCallback(()=>{if(p){m(!1),g(null);return}const I=w?.current?.getBoundingClientRect();I&&g(I),n?.(),m(!0)},[p,n]),N=o.useCallback(()=>{if(p){m(!1),g(null);return}const I=b?.current?.getBoundingClientRect();I&&g(I),n?.(),m(!0)},[p,n]),D=tn("(max-width: 767px)"),P=o.useRef(null),[H,M]=o.useState(null),z=o.useCallback(()=>{C(I=>{const W=!I;return M(W?P.current?.getBoundingClientRect()??null:null),W})},[]),j=o.useCallback(()=>{C(!1),M(null)},[]);o.useEffect(()=>{d&&(C(!1),M(null))},[d]);const S=t.jsxs(t.Fragment,{children:[t.jsxs("div",{className:"pp-bottom__meter",children:[t.jsx("span",{className:"pp-bottom__meter-label caption-1",children:c("training.meter.sentence","\uC7AC\uC0DD")}),t.jsx(fo,{analyser:f?.mainAnalyser??null,orientation:"horizontal",length:112,label:"db",labelPos:"left",ariaLabel:c("training.meter.sentence","\uC7AC\uC0DD")})]}),t.jsxs("div",{className:"pp-bottom__meter",children:[t.jsx("span",{className:"pp-bottom__meter-label caption-1",children:c("training.meter.noise","\uC18C\uC74C")}),t.jsx(fo,{analyser:f?.noiseAnalyser??null,orientation:"horizontal",length:112,label:"db",labelPos:"left",ariaLabel:c("training.meter.noise","\uC18C\uC74C")})]})]});return Zu(e&&p,()=>typeof document<"u"?document.querySelector(".noise-settings__header")?.closest(".tooltip-content")??null:null,()=>[w.current,b.current].map(I=>I?.querySelector("button")??null).find(I=>!!I&&I.getClientRects().length>0)??w.current?.querySelector("button")??null),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:w,className:"pp-bottom__tooltip-trigger","data-tooltip-ignore":!0,children:t.jsx(le,{htmlType:"button",size:56,type:"bar",icon:"settings",onClick:x,className:p?"is-selected":void 0,"aria-expanded":p,"aria-haspopup":"dialog",ariaLabel:c("training.trainingSettingsTitle","\uD6C8\uB828 \uC124\uC815"),label:c("training.trainingSettingsTitle","\uD6C8\uB828 \uC124\uC815"),minWidth:140})})}),t.jsx("div",{className:"pp-bottom__settings--mobile",children:t.jsx("div",{ref:b,className:"pp-bottom__tooltip-trigger","data-tooltip-ignore":!0,children:t.jsx(le,{htmlType:"button",size:56,type:"dot",shape:"pill",icon:"settings",onClick:N,className:p?"is-selected":void 0,"aria-expanded":p,"aria-haspopup":"dialog",ariaLabel:c("training.settings","\uC124\uC815")})})})]}):null,e&&t.jsx("div",{ref:P,className:"pp-bottom__meter-trigger","data-tooltip-ignore":!0,children:t.jsx(le,{htmlType:"button",size:40,type:"dot",shape:"pill",icon:"audio-lines",onClick:z,selected:y,"aria-expanded":D?y:void 0,ariaLabel:c("training.meter.toggle","\uC624\uB514\uC624 \uBBF8\uD130 \uD45C\uC2DC")})}),e&&y&&!D&&t.jsx("div",{className:"pp-bottom__meters",children:S})]}),e&&y&&D&&H&&t.jsx(rn,{anchorRect:H,onClose:j,ariaLabel:c("training.meter.toggle","\uC624\uB514\uC624 \uBBF8\uD130 \uD45C\uC2DC"),children:t.jsx("div",{className:"pp-bottom__meters pp-bottom__meters--floating",children:S})}),t.jsxs("div",{className:"pp-bottom__right",children:[k&&t.jsx(le,{htmlType:"button",size:56,type:"bar",icon:"check",onClick:typeof r=="function"?r:a,ariaLabel:c("training.viewResult","\uACB0\uACFC\uBCF4\uAE30"),label:c("training.viewResult","\uACB0\uACFC\uBCF4\uAE30"),variant:"main",disabled:!A}),v&&t.jsx(le,{htmlType:"button",size:56,type:"bar",rightIcon:"chevron-right",align:"right",onClick:a,ariaLabel:c("training.nextQuestion","\uB2E4\uC74C \uBB38\uC81C"),label:c("training.nextQuestion","\uB2E4\uC74C \uBB38\uC81C"),variant:"main",disabled:!A})]}),e&&p&&t.jsx(ac,{anchorRect:h,onClose:B})]})}function oc({title:e,subtitle:n,desc:a,depth:r,icon:s,wrapperStyle:i,iconTooltip:l,pageIndex:u,pageCount:d,progressMax:c,progressIndex:p,onBack:m,onClose:h}){const{t:g}=Ce.useTranslation(),y=tn("(max-width: 767px)"),C=Number.isInteger(p)?p:u||0,w=Number.isInteger(c)?c:d||0,b=m||h,f=Array.isArray(r)?y?r[r.length-1]:r.join(" / "):r,_=typeof e=="string"?e.trim():e,v=typeof n=="string"?n.trim():n,k=!!(_||v),A=k?_||v:g("common.emptyTrainingName","\uD6C8\uB828 \uC774\uB984\uC774 \uBE44\uC5B4 \uC788\uC2B5\uB2C8\uB2E4."),B=f||(_?n:void 0),x=y&&typeof B=="string"&&(B.includes(" \xB7 ")||B.includes(" / "))?B.split(/\s[·/]\s/).pop():B,N=o.useMemo(()=>{const D=i&&typeof i=="object"?{...i}:{};return!("width"in D)&&!("height"in D)&&(D.width="40px",D.height="40px"),D},[i]);return t.jsxs("header",{className:"pp-title training-popup-title",children:[t.jsxs("div",{className:"pp-title__left",children:[b?t.jsx(le,{htmlType:"button",size:48,type:"dot",icon:"chevron-left",ariaLabel:g("common.back","\uB4A4\uB85C"),onClick:b,useBorder:!1,iconSize:"large",iconColor:"--color-black",variant:"transparent-gray"}):null,t.jsx("div",{children:s?t.jsx(Tl,{icon:s,label:e,tooltip:l,wrapperStyle:N}):null}),t.jsxs("div",{className:"pp-title__text",children:[x?t.jsx("span",{className:"pp-title__depth caption-1",children:x}):null,t.jsx("span",{className:`pp-title__title h2${k?"":" pp-title__title--empty"}`,children:A}),a?t.jsx("span",{className:"pp-title__description caption-1",children:a}):null]})]}),t.jsx(au,{max:Math.max(0,w??0),index:Math.max(0,C??0)})]})}function h3(){typeof window<"u"&&window.dispatchEvent(new CustomEvent("speechear.popup.close"))}function C3(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)]}const sc=(e,n)=>{if(!n)return n;const a=typeof Dt?.t=="function"?Dt.t(e,{defaultValue:n}):void 0;return typeof a=="string"&&a?a:n};function ic(e,n,a){const r=e,s=r?.title||r?.name||(Array.isArray(n)?n[n.length-1]:void 0)||a||"\uD6C8\uB828",i=pi().find(u=>u.key===(r?.category_0||r?.category_main_code)),l=i?.subs?.find(u=>u.key===(r?.category_1||r?.category_sub_code));return{title:s,label:r?.title||s,depth:n,icon:i?.icon,wrapperStyle:i?.color?{"--t-item-fg":i.color}:void 0,iconTooltip:[i?sc(`topic.${i.key}`,i.label):void 0,l?sc(`topic.sub.${l.key}`,l.label):void 0].filter(Boolean).join(" / ")||void 0}}function qo(e){return e&&typeof e=="object"&&typeof e.__ts=="number"?e.__ts:0}function f3(e){const n=e;return Array.isArray(n?.items)?n.items:Array.isArray(e)?e:e?[e]:[]}function g3({idPrefix:e,trainingData:n,depth:a,fallbackTitle:r="\uD6C8\uB828",pages:s=[],emptyMessage:i,buildResults:l,metaPatch:u}){const d=ic(n,a,r),c=typeof u=="function"?u(d)||{}:u||{},p=n?.id||n?.title||s.length;return{id:`${e}:${p}`,meta:{...d,...c},pages:s,emptyMessage:i,buildResults:l}}function b3(e){if(typeof e=="string")return e;if(e&&typeof e=="object"){const n=e;return n.context||n.sentence||n.question||""||""}return""}function y3(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 v3(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 lc(e,n){if(!(!e||typeof e!="object"))return e[`step-${n}`]}function x3(e,n,a,r){return lc(e,n*a+r)}function _3({payload:e,selected:n,choices:a=[],correctAnswers:r=[]}){if(e&&typeof e=="object"){const s=e;if(Array.isArray(s.selectedValues))return r.every(i=>s.selectedValues.includes(i))&&s.selectedValues.every(i=>r.includes(i));if(typeof s.correct=="boolean")return s.correct}if(r.length){if(typeof n=="number"&&Array.isArray(a)&&a.length)return r.some(s=>String(s)===String(a[n]));if(typeof n<"u")return r.some(s=>String(s)===String(n))}}function w3(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 uc=o.createContext(null);function A3(){const e=o.useContext(uc);if(!e)throw new Error("useTrainingPagePopupContext must be used inside TrainingPagePopup");return e}function k3({index:e,stepIndex:n,isLast:a=!1,title:r,choices:s=[],onDone:i,onChange:l}){const{t:u}=Ce.useTranslation(),d=typeof e=="number"?e:-1,c=typeof n!="number"?"disabled":d<n?"done":d===n?"active":"disabled",[p,m]=o.useState(()=>s.map(()=>null)),h=JSON.stringify(s),g=s.length;o.useEffect(()=>{m(Array.from({length:g},()=>null))},[h]);const y=o.useRef(void 0);o.useEffect(()=>{const f=y.current;typeof f=="number"&&typeof n=="number"&&typeof e=="number"&&f>=e&&n<e&&m(Array.from({length:g},()=>null)),y.current=n},[n,e,g]);const C=o.useMemo(()=>p.filter(f=>f!==null).length+1,[p]),w=o.useCallback(f=>{if(c!=="active")return;const _=p;let v;if(_[f]!=null){const A=_[f];v=_.map(B=>B!==null&&B>=A?null:B)}else v=[..._],v[f]=C;m(v);const k={selectedOrder:v,words:s,__ts:Date.now()};try{typeof l=="function"&&l(k)}catch{}if(_[f]==null&&v.length>0&&v.every(A=>A!==null))try{typeof i=="function"&&i(k)}catch{}},[c,p,C,l,i,s]),b=r??u("training.selectInOrder","\uB4E4\uC740 \uC21C\uC11C\uB300\uB85C \uCE74\uB4DC\uB97C \uC120\uD0DD\uD558\uC138\uC694.");return t.jsx(Gn,{index:e,stepIndex:n,isLast:a,title:b,onDone:i,children:t.jsx("div",{className:"training-step__cards",children:s.map((f,_)=>t.jsx(_o,{item:{word:f},disabled:c==="disabled",selectable:!0,selected:p[_]!==null,orderRank:p[_],onSelect:()=>w(_),flipDelay:_*120,hideLabel:!1,hideAudio:!0},`${f}-${_}`))})})}function dr(e){return null}dr.__isTrainingPage=!0;function da(e,n){const a=A3();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 cc({_stepIndex:e,_totalSteps:n,...a}){const{index:r,stepIndex:s,isLast:i,onDone:l}=da(e,n);return t.jsx(Ho,{...a,index:r,stepIndex:s,isLast:i,onDone:l})}function dc({_stepIndex:e,_totalSteps:n,...a}){const{index:r,stepIndex:s,isLast:i,onDone:l,onChange:u}=da(e,n);return t.jsx(Fo,{...a,index:r,stepIndex:s,isLast:i,onDone:l,onChange:u})}function pc({_stepIndex:e,_totalSteps:n,...a}){const{index:r,stepIndex:s,isLast:i,onDone:l,onChange:u}=da(e,n);return t.jsx(Oo,{...a,index:r,stepIndex:s,isLast:i,onDone:l,onChange:u})}function mc({_stepIndex:e,_totalSteps:n,...a}){const{index:r,stepIndex:s,isLast:i,onDone:l,onChange:u}=da(e,n);return t.jsx(zo,{...a,index:r,stepIndex:s,isLast:i,onDone:l,onChange:u})}function hc({_stepIndex:e,_totalSteps:n,...a}){const{index:r,stepIndex:s,isLast:i,onDone:l,onChange:u}=da(e,n);return t.jsx(Qu,{...a,index:r,stepIndex:s,isLast:i,onDone:l,onChange:u})}function B3({_stepIndex:e,_totalSteps:n,...a}){const{index:r,stepIndex:s,isLast:i,onDone:l,onChange:u}=da(e,n);return t.jsx(k3,{...a,index:r,stepIndex:s,isLast:i,onDone:l,onChange:u})}function Uo(...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 s of r){if(typeof s=="string"&&s.trim().length)return s.trim();if(typeof s=="number"||typeof s=="boolean")return String(s)}}}return null}function N3(e){return Uo(e?.question,e?.q,e?.sentence,e?.text,e?.prompt,e?.wording)}function Cc(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=Uo(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 fc(e){const{score:n,contextsLength:a,results:r=[],subtitle:s,onReplay:i,onClose:l,inline:u=!1,pending:d=!1}=e||{},{t:c}=Ce.useTranslation(),p=o.useId(),m=o.useCallback(()=>!d,[d]);o.useEffect(()=>{const f=a??0;if(n!=null&&f>0&&n/f>.5){const _=window.setTimeout(()=>{window.dispatchEvent(new CustomEvent("party:trigger",{detail:{count:140,strength:1.6,duration:2200}}))},0);return()=>window.clearTimeout(_)}},[n,a]);const h=o.useCallback(f=>{const _=Cc(f),v=Uo(f?.wording,f?.label);return _===!0?{variant:"main",label:v??c("training.result.heardWell","\uC798 \uB4E4\uC5C8\uC5B4\uC694")}:_===!1?{variant:"danger",label:v??c("training.result.notHeard","\uBABB \uB4E4\uC5C8\uC5B4\uC694")}:{variant:"disabled",label:v??c("training.result.notJudged","\uBBF8\uD310\uC815")}},[c]),g=a??0,y=n??0,C=o.useMemo(()=>Array.isArray(r)?r:[],[r]),w=o.useMemo(()=>C.map(f=>{const _=f??{},v=N3(_)||c("training.result.noContent","(\uB0B4\uC6A9\uC5C6\uC74C)"),{variant:k,label:A}=h(_),B=Array.isArray(_.corrects)?_.corrects:[],x=B.length?B.join(", "):_.answer!=null&&_.answer!==""?String(_.answer):null,N=typeof _.selectedText=="string"?_.selectedText:null,D=Cc(_)===!0;return{problem:v,variant:k,label:A,answer:x,selectedText:N,isCorrect:D}}),[C,h,c]),b=o.useMemo(()=>w.some(f=>f.answer!==null||f.selectedText!==null),[w]);return t.jsx(Tn,{onClose:l,closeOnBackdrop:!1,inline:u,ariaLabel:c("training.result.title","\uD6C8\uB828\uC744 \uBAA8\uB450 \uB9C8\uCCE4\uC2B5\uB2C8\uB2E4."),className:"popup--training-result",beforeClose:m,footerClassName:"trp-result__foot",footer:({animateThen:f,closeWithAnimation:_})=>t.jsxs(t.Fragment,{children:[d&&t.jsx("p",{id:p,className:"trp-actions__reason caption-1",role:"status",children:c("training.result.pendingDone","\uACB0\uACFC\uB97C \uACC4\uC0B0\uD558\uB294 \uC911\uC774\uB77C \uC544\uC9C1 \uC644\uB8CC\uD560 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4.")}),t.jsxs("div",{className:"trp-actions",children:[t.jsx(le,{htmlType:"button",size:56,type:"bar",label:c("training.result.replay","\uB2E4\uC2DC\uD558\uAE30"),onClick:()=>f(i)}),t.jsx(le,{htmlType:"button",size:56,type:"bar",label:c("training.result.done","\uC644\uB8CC"),variant:"main",onClick:_,disabled:d,onDisabledClick:d?()=>{}:void 0,"aria-describedby":d?p:void 0})]})]}),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:c("training.result.eyebrow","\uD6C8\uB828 \uC644\uB8CC")}),t.jsx("h1",{className:"trp-result__title h2",children:c("training.result.title","\uD6C8\uB828\uC744 \uBAA8\uB450 \uB9C8\uCCE4\uC2B5\uB2C8\uB2E4.")}),s&&t.jsx("p",{className:"trp-result__subtitle body-3",children:s}),t.jsx("div",{className:"trp-score",children:t.jsxs("div",{className:"trp-score__figure","aria-label":c("training.result.scoreAria",{correct:y,total:g}),children:[t.jsx("span",{className:"trp-score__big",children:y}),t.jsx("span",{className:"trp-score__sep",children:"/"}),t.jsx("span",{className:"trp-score__total",children:g})]})})]}),w.length>0&&t.jsx("section",{className:"trp-result__body",children:t.jsxs("div",{className:`result-table${b?" result-table--answer":""}`,role:"table","aria-label":c("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:c("common.col.problem","\uBB38\uC81C")}),b&&t.jsx("span",{role:"columnheader",children:c("training.result.colAnswerSelected","\uC815\uB2F5 \xB7 \uC120\uD0DD")}),t.jsx("span",{className:"col-right",role:"columnheader",children:c("training.result.colJudge","\uD310\uC815")})]}),w.map((f,_)=>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(_+1).padStart(2,"0")}),t.jsx("div",{className:"trp-row__q body-2",children:f.problem})]}),b&&t.jsxs("div",{className:"trp-row__answers",children:[f.answer!==null&&t.jsxs("div",{className:"trp-row__answer-line",children:[t.jsx("span",{className:"trp-row__answer-label answer-correct caption-1",children:c("training.result.colAnswer","\uC815\uB2F5")}),t.jsx("span",{className:"trp-row__answer-value body-2",children:f.answer})]}),t.jsxs("div",{className:"trp-row__answer-line",children:[t.jsx("span",{className:`trp-row__answer-label answer-selected caption-1 ${f.isCorrect?"is-correct":"is-wrong"}`,children:c("training.result.colSelected","\uC120\uD0DD")}),t.jsx("span",{className:`trp-row__answer-value body-2 ${f.isCorrect?"is-correct":"is-wrong"}`,children:f.selectedText??"\u2014"})]})]}),t.jsx("div",{className:"trp-row__judge",children:t.jsx(bt,{variant:f.variant,label:f.label,fill:"soft",minWidth:80})})]},_))]})})]})})}function E3(e){o.useEffect(()=>{if(!e)return;const n=()=>typeof document>"u"||document.visibilityState!=="hidden";let a=null,r=null,s=0,i=0;const l=()=>{const p=Date.now();a==null&&(a=p),r==null&&(r=p)},u=()=>{r!=null&&(s+=Date.now()-r,r=null)};n()&&l();const d=()=>{if(u(),a==null||s-i<1e3||i===0&&s<5e3)return;const p=a+i;i=s,NC({trainingType:e,startedAt:new Date(p).toISOString(),endedAt:new Date(a+s).toISOString()})},c=()=>{n()?l():d()};return typeof document<"u"&&document.addEventListener("visibilitychange",c),typeof window<"u"&&window.addEventListener("pagehide",d),()=>{typeof document<"u"&&document.removeEventListener("visibilitychange",c),typeof window<"u"&&window.removeEventListener("pagehide",d),d()}},[e])}function Go(e,n){return e&&e.id||`page-${n??0}`}function Ko(e,n){return e&&e.key||`step-${n??0}`}function pr(){return{pageIndex:0,stepIndex:0,answersByPage:{}}}function D3(e,n){return typeof e?.props=="function"?e.props(n)||{}:e?.props||{}}const S3=300,j3=()=>{try{return typeof window<"u"&&!!window.matchMedia?.("(prefers-reduced-motion: reduce)").matches}catch{return!1}},Ln=Object.freeze({}),gc=new Set(["LISTEN_IN_NOISE","SHORT_STORY","LONG_STORY","ORDERING_SENTENCE"]);function bc(e){const n=e,a=n?.results||n?.answers||[],r=Array.isArray(a)&&a.length>0?a.length:null,s=Array.isArray(a)?a.filter(i=>i?.correct===!0||i?.isCorrect===!0||i?.score===1||i?.heard===!0||i?.judgement===!0).length:null;return{results:a,correct:r!=null?s:null,total:r}}const T3=e=>t.jsx(fc,{score:e.score,contextsLength:e.contextsLength,results:e.results,onReplay:e.onReplay,onClose:e.onClose,pending:e.pending});function M3(e){const{scenario:n,title:a,subTitle:r,depth:s,icon:i,wrapperStyle:l,iconTooltip:u,pageIndex:d,pageCount:c,stepIndex:p,stepCount:m,onBack:h,onComplete:g,onNext:y,onSettings:C,useNoiseSetting:w=!0,children:b,ariaLabel:f,label:_,buildResults:v,onResult:k,typeKey:A,entryPoint:B,dailyTotal:x,itemRef:N,renderResultPopup:D,noiseOverride:P}=e;E3(A&&!gc.has(A)?A:"");const H=o.useRef(0);o.useEffect(()=>{H.current=Date.now()},[]);const{t:M}=Ce.useTranslation(),z=k,j=!!n,S=n?.id||null,I=n?.meta||{},W=Array.isArray(n?.pages)?n.pages:[],Z=Array.isArray(b)||o.isValidElement(b)&&typeof b!="function"?o.Children.toArray(b).filter(o.isValidElement):[],U=Z.length>0,q=ne=>ne===dr||ne?.__isTrainingPage===!0,K=U&&Z.some(ne=>q(ne.type)),L=K?Z.filter(ne=>q(ne.type)).map((ne,fe)=>{const G=ne.props||{};return{id:`children-page-${fe}`,steps:o.Children.toArray(G.children).filter(o.isValidElement),pageTop:G.pageTop||G.top||null,pageBottom:G.pageBottom||G.bottom||null}}):[{id:"children-page-0",steps:Z}],E=U&&!j&&typeof b!="function",F=E?Math.max(1,L.length):0;o.useEffect(()=>{if(!(typeof document>"u"||!document.body)&&!document.body.classList.contains("ihabdevteam-core-scope"))return document.body.classList.add("ihabdevteam-core-scope"),()=>{document.body.classList.remove("ihabdevteam-core-scope")}},[]),o.useEffect(()=>{if(typeof document>"u"||!document.body)return;const ne=document.body;return ne.dataset.ihabTrainingPopupCount=String(Number(ne.dataset.ihabTrainingPopupCount||"0")+1),ne.classList.add("ihab-training-popup-open"),()=>{const fe=Number(ne.dataset.ihabTrainingPopupCount||"1")-1;fe>0?ne.dataset.ihabTrainingPopupCount=String(fe):(delete ne.dataset.ihabTrainingPopupCount,ne.classList.remove("ihab-training-popup-open"))}},[]),o.useEffect(()=>{if(!(typeof document>"u"||!document.body))return k4()},[]);const[R,O]=o.useState({...Pa,enabled:!1}),$=o.useRef(R);o.useEffect(()=>{$.current=R},[R]);const Y=o.useRef(P),Q=o.useRef(!1),X=o.useRef(null);o.useEffect(()=>{let ne=!1;const fe=G=>{if(ne)return;Q.current=!0;const se=G?Ra({...Pa,enabled:!1},G):{...Pa},ie=X.current;X.current=null;const be=ie?Ra(se,ie):se;$.current=be,O(be),ie&&!Y.current&&si(be),Wa(be);const ye=Y.current;if(ye){const Te=typeof ye=="function"?ye(be):ye,et=Ra(be,Te);$.current=et,O(et),Wa(et)}};return jC().then(fe),()=>{ne=!0}},[]);const[ce,xe]=o.useState(null),[te,re]=o.useState(null),V=o.useCallback((ne,fe)=>{ne==="main"?xe(fe):re(fe)},[]),ae=o.useRef(null),ue=o.useRef(null),ge=o.useCallback(()=>{ue.current!==null&&(clearTimeout(ue.current),ue.current=null);const ne=ae.current;ae.current=null,ne&&si(ne)},[]);o.useEffect(()=>{if(typeof window>"u")return;const ne=()=>{document.visibilityState==="hidden"&&ge()};return window.addEventListener("pagehide",ge),document.addEventListener("visibilitychange",ne),()=>{window.removeEventListener("pagehide",ge),document.removeEventListener("visibilitychange",ne),ge()}},[ge]);const me=o.useCallback(ne=>{const fe=Ra($.current,ne);if($.current=fe,O(fe),!Q.current){X.current={...X.current??{},...ne},Wa(fe);return}Y.current||(ae.current=fe,ue.current!==null&&clearTimeout(ue.current),ue.current=setTimeout(ge,S3)),Wa(fe)},[ge]),oe=R.mainSpeed,he=R.mainVolume,_e=o.useCallback(ne=>me({mainSpeed:ne}),[me]),Le=o.useCallback(ne=>me({mainVolume:ne}),[me]),Ue=o.useMemo(()=>({settings:R,setSettings:me,registerAnalyser:V,mainAnalyser:ce,noiseAnalyser:te,playbackRate:oe,setPlaybackRate:_e,mainVolume:he,setMainVolume:Le}),[R,me,V,ce,te,oe,_e,he,Le]),Ie=o.useRef(null),[de,Ae]=o.useState(0),Re=o.useRef([]),[Pe,we]=o.useState("center"),[Se,Oe]=o.useState(!1),Be=o.useRef(!1),nt=o.useRef(null),Ge=o.useCallback(ne=>{Be.current||(Be.current=!0,Oe(!0),nt.current=setTimeout(()=>{try{ne()}catch{Be.current=!1,Oe(!1)}},j3()?0:o3))},[]);o.useEffect(()=>()=>{nt.current&&clearTimeout(nt.current)},[]);const Xe=o.useRef(h);o.useEffect(()=>{Xe.current=h}),o.useEffect(()=>{const ne=Ie.current,fe=document.activeElement;if(zr(ne,fe),ne){const G=Array.from(ne.querySelectorAll(yn)).filter(se=>!se.closest('[aria-hidden="true"]'))[0];if(G)try{G.focus()}catch{}}return()=>{const G=document.activeElement;if(!G||G===document.body||ne&&ne.contains(G))try{Vr(fe)?.focus?.()}catch{}}},[]),o.useEffect(()=>zn(()=>Ge(()=>{const ne=Xe.current;typeof ne=="function"&&ne()})),[Ge]),Or(Ie,!0);const[De,je]=o.useState(!1),ke=o.useRef(!1),[Me,We]=o.useState(null),ht=o.useRef(0),wt=()=>{ht.current+=1,We(null)},[Et,At]=o.useState(""),[rt,Ye]=o.useState(()=>pr()),at=o.useRef(typeof d=="number"?d:null);o.useEffect(()=>{!j&&!E||(Ye(pr()),wt())},[j,S,E]),o.useEffect(()=>{E&&Ye(ne=>{const fe=Math.max(0,Math.min(ne.pageIndex,Math.max(0,F-1)));return fe!==ne.pageIndex?{...ne,pageIndex:fe,stepIndex:0}:ne})},[E,F]);const ot=E?Math.max(0,Math.min(rt.pageIndex,F-1)):0,qe=E?L[ot]:null,ut=E&&qe&&Array.isArray(qe.steps)?qe.steps:[],Ke=j?rt.pageIndex:E?ot:typeof d=="number"?d:0,Ct=j?W[Math.max(0,Math.min(rt.pageIndex,Math.max(0,W.length-1)))]:null,jt=j&&Ct&&Array.isArray(Ct.steps)?Ct.steps:[],kt=j?jt.length:E?ut.length:typeof m=="number"?m:0,dt=j||E?Math.max(0,Math.min(rt.stepIndex,Math.max(0,kt))):typeof p=="number"?p:0,st=j?W.length:E?F:typeof c=="number"?c:0;o.useLayoutEffect(()=>{const ne=at.current;if(typeof Ke=="number"&&ne!==null&&Ke!==ne&&Ke>ne)try{At(M("training.problemNotice",{n:Ke+1}))}catch{}at.current=typeof Ke=="number"?Ke:at.current},[Ke,d,M]),o.useLayoutEffect(()=>{const ne=Ie.current;if(!ne)return;const fe=()=>ne.querySelector(".page-popup__scroll");let G=null,se=null,ie=null;const be=it=>{const yt=fe();if(!yt)return;const Rt=yt.scrollHeight<=yt.clientHeight;if(we(Rt?"center":"top"),it&&!ke.current){ke.current=!0;try{je(!0)}catch{}try{et.disconnect()}catch{}}},ye=()=>{G!==null&&cancelAnimationFrame(G),G=requestAnimationFrame(()=>{se!==null&&clearTimeout(se),se=setTimeout(()=>be(!0),60)})},Te=()=>{ie!==null&&cancelAnimationFrame(ie),ie=requestAnimationFrame(()=>be(!1))};ye(),window.addEventListener("resize",Te);const et=new MutationObserver(ye);et.observe(ne,{childList:!0,subtree:!0,attributes:!0});const ft=setTimeout(()=>{ke.current||be(!0)},400);return()=>{window.removeEventListener("resize",Te),G!==null&&cancelAnimationFrame(G),se!==null&&clearTimeout(se),ie!==null&&cancelAnimationFrame(ie),clearTimeout(ft);try{et.disconnect()}catch{}}},[Ie]);const He=o.useCallback(ne=>{Ie.current&&(Ie.current._childOnNext=ne)},[]),Qe=o.useCallback(ne=>{Ie.current&&(Ie.current._childOnResult=ne)},[]),pt=o.useCallback((ne,fe,G)=>{Ye(se=>{const ie=se.answersByPage[ne]||{},be=ie[fe],ye=qo(G),Te=qo(be);return be&&Te>ye?se:{...se,answersByPage:{...se.answersByPage,[ne]:{...ie,[fe]:G}}}})},[Ye]),Ot=o.useCallback((ne,fe,G)=>{const se=Go(Ct,Ke),ie=Ko(ne,fe);pt(se,ie,G)},[Ct,Ke,pt]),Je=o.useCallback((ne,fe,G)=>{const se=Go(Ct,Ke),ie=Ko(ne,fe);pt(se,ie,G),!G?.allowChange&&ne?.autoAdvance!==!1&&Ye(be=>({...be,stepIndex:Math.max(be.stepIndex,fe+1)}))},[Ct,Ke,pt,Ye]),Tt=o.useCallback((ne,fe)=>{const G=qe?.id||`children-page-${Ke??0}`,se=typeof fe=="number"?fe:dt??0,ie=`step-${se}`;pt(G,ie,ne),ne?.allowChange||Ye(be=>({...be,stepIndex:Math.max(be.stepIndex,se+1)}))},[qe,Ke,dt,pt,Ye]),Yt=o.useCallback((ne,fe)=>{const G=qe?.id||`children-page-${Ke??0}`,se=`step-${typeof fe=="number"?fe:dt??0}`;pt(G,se,ne)},[qe,Ke,dt,pt]),Mt=E?{currentPageIndex:Ke??0,currentStepIndex:dt??0,totalStepsInPage:ut.length,handleStepDone:Tt,handleStepChange:Yt}:null,ln=async()=>{const ne=typeof n?.buildResults=="function"?await Promise.resolve(n.buildResults({scenario:n,pages:W,flowState:rt,answersByPage:rt.answersByPage})):null;return typeof z=="function"&&await Promise.resolve(z(ne))||ne},un=async()=>{const ne=qe?.id||`children-page-${rt.pageIndex}`,fe=rt.answersByPage[ne]||{},G=K?(()=>{const be={};let ye=0;return L.forEach(Te=>{const et=rt.answersByPage[Te.id]||{},ft=Array.isArray(Te.steps)?Te.steps.length:0;for(let it=0;it<ft;it+=1){const yt=et[`step-${it}`];typeof yt<"u"&&(be[`step-${ye+it}`]=yt)}ye+=ft}),be})():fe;if(typeof v=="function"){const be=await Promise.resolve(v(G,{pageAnswers:fe,answersByPage:rt.answersByPage,pages:L,currentPageId:ne}));return typeof z=="function"&&await Promise.resolve(z(be))||be}const se=Object.entries(fe).map(([be,ye],Te)=>({index:Te,key:be,payload:ye})),ie={results:se,answers:se,score:0};return typeof z=="function"&&await Promise.resolve(z(ie))||ie},cn=()=>{const ne=++ht.current,fe=()=>ne!==ht.current;try{if(typeof document<"u"&&document.body){try{document.dispatchEvent(new CustomEvent("speechear-close-tooltips"))}catch{}document.dispatchEvent(new PointerEvent("pointerdown",{bubbles:!0,cancelable:!0})),document.dispatchEvent(new MouseEvent("click",{bubbles:!0,cancelable:!0}))}}catch{}if(j){const ie=ln();We(Ln);const be=ie;Promise.resolve(be).then(ye=>{fe()||We(ye||{isEmpty:!0})}).catch(ye=>{!fe()&&We({isEmpty:!0})});return}if(E){const ie=un();We(Ln);const be=ie;Promise.resolve(be).then(ye=>{fe()||We(ye||{isEmpty:!0})}).catch(ye=>{!fe()&&We({isEmpty:!0})});return}const G=Ie.current&&Ie.current._childOnResult,se=ie=>{try{return ie?ie():void 0}catch{return}};if(typeof G=="function"){const ie=se(G);try{typeof document>"u"?require("url").pathToFileURL(__filename).href:gn&&gn.tagName.toUpperCase()==="SCRIPT"&&gn.src||new URL("components.cjs.js",document.baseURI).href}catch{}ie&&typeof ie.then!="function"?We(ie):We(ie&&typeof ie.then=="function"?Ln:{});const be=()=>{fe()||We(ye=>ye===Ln?{}:ye)};Promise.resolve(ie).then(ye=>{ye&&!fe()?We(ye):be()}).catch(ye=>{be()});return}if(typeof z=="function"){const ie=se(z);try{typeof document>"u"?require("url").pathToFileURL(__filename).href:gn&&gn.tagName.toUpperCase()==="SCRIPT"&&gn.src||new URL("components.cjs.js",document.baseURI).href}catch{}ie&&typeof ie.then!="function"?We(ie):We(ie&&typeof ie.then=="function"?Ln:{});const be=()=>{fe()||We(ye=>ye===Ln?{}:ye)};Promise.resolve(ie).then(ye=>{try{typeof document>"u"?require("url").pathToFileURL(__filename).href:gn&&gn.tagName.toUpperCase()==="SCRIPT"&&gn.src||new URL("components.cjs.js",document.baseURI).href}catch{}ye&&!fe()?We(ye):be()}).catch(ye=>{console.error("viewResults external handler failed",ye),be()});return}},Rn=()=>{if(j){if(typeof Ke=="number"&&typeof st=="number"&&Ke<st-1){Ye(fe=>({...fe,pageIndex:fe.pageIndex+1,stepIndex:0}));return}return cn()}if(E){const fe=ut.length;if(typeof dt=="number"&&dt<fe-1){Ye(G=>({...G,stepIndex:G.stepIndex+1}));return}if(typeof Ke=="number"&&typeof st=="number"&&Ke<st-1){Ye(G=>({...G,pageIndex:G.pageIndex+1,stepIndex:0}));return}return cn()}if(typeof y=="function"){try{y()}catch{}return}const ne=Ie.current&&Ie.current._childOnNext;if(typeof ne=="function"){try{ne()}catch{}return}},dn=j?I.title||I.label||f||M("common.popup","\uD31D\uC5C5"):a||_||(Array.isArray(s)?s[s.length-1]:void 0)||f||M("common.popup","\uD31D\uC5C5"),Pn=f||dn,Nn=j?I.title??I.label??dn:a??_??dn,Bt=(ne,fe)=>{const G=Go(Ct,Ke),se=Ko(ne,fe),ie=rt.answersByPage[G]?.[se],be=D3(ne,{page:Ct,pageIndex:Ke,step:ne,stepIndex:fe,storedPayload:ie,answersByPage:rt.answersByPage,flowState:rt}),ye={key:se,index:fe,stepIndex:dt,isLast:fe===jt.length-1};switch(ne?.type){case"listen":return t.jsx(Ho,{...ye,...be,onDone:Te=>Je(ne,fe,Te)});case"confirm":return t.jsx(Fo,{...ye,...be,onDone:Te=>Je(ne,fe,Te),onChange:Te=>Ot(ne,fe,Te)});case"confirmWithText":return t.jsx(Oo,{...ye,...be,onDone:Te=>Je(ne,fe,Te),onChange:Te=>Ot(ne,fe,Te)});case"orderList":return t.jsx(zo,{...ye,...be,onDone:Te=>Je(ne,fe,Te),onChange:Te=>Ot(ne,fe,Te)});default:return null}},mn=o.useRef(void 0);o.useEffect(()=>{const ne=mn.current;if(mn.current=Ke,ne===void 0||ne===Ke||!nr())return;const fe=Ie.current;if(!fe)return;const G=document.activeElement;if(!(!G||G===document.body||!fe.contains(G)||G.disabled===!0))return;const se=fe.querySelector(`.training-steps ${yn.split(", ").join(", .training-steps ")}`)??Array.from(fe.querySelectorAll(yn)).find(ie=>!ie.closest('[aria-hidden="true"]'));try{se?.focus()}catch{}},[Ke]);const Ht=j?W.length>0?t.jsx("div",{className:"training-steps",children:jt.map((ne,fe)=>Bt(ne,fe))},`replay-${de}`):t.jsx("div",{className:`page-popup__content page-popup__content--center${e.contentFull?" page-popup__content--full":""}`,children:t.jsx("div",{className:"pp-empty",children:n?.emptyMessage||M("training.noQuestions","\uBB38\uC81C\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4.")})}):null,Zt=E?t.jsxs(uc.Provider,{value:Mt,children:[qe?.pageTop?t.jsx("div",{className:"training-page-top",children:qe.pageTop}):null,t.jsx("div",{className:"training-steps",children:ut.map((ne,fe)=>{const G=ne;return o.cloneElement(G,{...G.props,_stepIndex:fe,_totalSteps:ut.length,_stepKey:`step-${fe}`,_pageIndex:Ke})})},`replay-${de}`),qe?.pageBottom?t.jsx("div",{className:"training-page-bottom",children:qe.pageBottom}):null]}):null,hn=o.useCallback(()=>{let ne;if(A){const fe=Me,{results:G,correct:se,total:ie}=bc(Me);EC({items:SC(G),category:gc.has(A)?"sentence":"word",trainingType:A,entryPoint:B??"sentence",itemRef:N??null,correct:se,total:ie,score:typeof fe?.score=="number"?fe.score:null,durationSeconds:Math.max(0,Math.round((Date.now()-H.current)/1e3)),dailyTotal:x??null}),ne={correct:se,total:ie,attempt:Re.current.length+1,previousAttempts:[...Re.current]}}wt(),Ge(()=>{typeof g=="function"&&g(ne),typeof h=="function"&&h()})},[g,h,A,B,x,N,Me,We,Ge]),en=o.useCallback(()=>At(""),[At]),Cn=o.useCallback(()=>{Ge(()=>{typeof h=="function"&&h()})},[h,Ge]),In=t.jsxs("div",{className:`page-popup${Se?" page-popup--closing":""}`,role:"dialog","aria-modal":"true","aria-label":Pn,children:[t.jsxs("div",{ref:Ie,className:`page-popup__panel ${De?"":"page-popup__panel--measuring"} ${Pe==="center"?"page-popup__panel--center":Pe==="top"?"page-popup__panel--top":""}`,children:[t.jsx(oc,{title:Nn,subtitle:j?I.subtitle||I.label:Array.isArray(s)?s.join(" / "):void 0,desc:j?void 0:r,depth:j?I.depth:s,icon:j?I.icon:i,wrapperStyle:j?I.wrapperStyle:l,iconTooltip:j?I.iconTooltip:u,progressMax:st,progressIndex:Ke,pageIndex:Ke,pageCount:st,onBack:Cn,onClose:Cn}),t.jsx("div",{className:"page-popup__scroll",children:t.jsx("div",{className:`page-popup__content ${Pe==="center"?"page-popup__content--center":"page-popup__content--top"}${e.contentFull?" page-popup__content--full":""}`,children:E?Zt:j?Ht:typeof b=="function"?b({registerOnNext:He,registerOnResult:Qe,panelRef:Ie,setResultOverlay:We}):b})}),t.jsx(rc,{onSettings:C,onNext:Rn,onResult:cn,useNoiseSettingBtn:!!(j?I.useNoiseSetting??!0:w),stepIndex:dt,stepCount:kt,pageIndex:Ke,pageCount:st,resultOpen:!!(Me&&!Me.isEmpty)})]}),Me&&!Me.isEmpty&&(D??T3)({score:Me.score,results:Me.results||Me.answers||[],contextsLength:Me.results?Me.results.length:Me.answers?Me.answers.length:0,onReplay:()=>{if(H.current=Date.now(),Me!==Ln){const{correct:ne,total:fe}=bc(Me);Re.current.push({correct:ne,total:fe})}if(wt(),Ae(ne=>ne+1),j){if(Ye(pr()),typeof n?.onReplay=="function")try{n.onReplay()}catch{}return}if(E){Ye(pr());return}try{const ne=Ie.current&&Ie.current._childOnResult;typeof ne=="function"&&ne({replay:!0})}catch{}},onClose:hn,pending:Me===Ln}),Me?.isEmpty&&t.jsx("div",{className:"page-popup page-popup--result-empty",role:"dialog","aria-modal":"true","aria-label":M("training.result.eyebrow","\uD6C8\uB828 \uC644\uB8CC"),children: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${e.contentFull?" page-popup__content--full":""}`,children:t.jsx("div",{className:"page-popup__empty",children:M("training.result.eyebrow","\uD6C8\uB828 \uC644\uB8CC")})})}),t.jsx("div",{className:"page-popup__bottom",children:t.jsx(le,{htmlType:"button",variant:"main",size:48,onClick:hn,label:M("training.result.done","\uC644\uB8CC")})})]})}),t.jsx(ra,{message:Et,position:"top",onClose:en})]}),fn=t.jsx(Mo.Provider,{value:Ue,children:In});return typeof document<"u"&&document.body?Xt.createPortal(fn,document.body):fn}const $n=M3;$n.Page=dr,$n.ListenStep=cc,$n.ConfirmStep=dc,$n.ConfirmWithTextStep=pc,$n.OrderListStep=mc,$n.CardStep=hc,$n.CardOrderStep=B3;function L3({label:e,homonum:n}){const a=Xn()?.(e,n)??"",{imgRef:r,loading:s,hasImage:i,onLoad:l,onError:u}=xo(a);return i?t.jsxs("div",{className:"tooltip-word-image__cell",children:[s&&t.jsx("div",{className:"tooltip-word-image__spinner"}),t.jsx("img",{ref:r,src:a,alt:e,draggable:!1,style:{opacity:s?0:1},onLoad:l,onError:u})]}):t.jsx("div",{className:"tooltip-word-image__cell tooltip-word-image__cell--text h3",children:t.jsx("span",{children:e})})}function yc({words:e,anchorRect:n}){const a=o.useRef(null),[r,s]=o.useState(null);return o.useLayoutEffect(()=>{if(!n||!a.current)return;const{offsetWidth:i,offsetHeight:l}=a.current,u=window.innerWidth;let d=n.left+n.width/2-i/2,c=n.top-l-8;c<8&&(c=n.bottom+8),d=Math.max(8,Math.min(d,u-i-8)),s({left:d,top:c})},[n]),!n||e.length===0?null:Xt.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(i=>t.jsx(L3,{label:i.label,homonum:i.homonum},`${i.label}_${i.homonum??1}`))})}),document.body)}const $3=new Intl.Collator("ko");function R3({titleIcon:e,resultCount:n,resultUnit:a,searchQuery:r,items:s,groups:i,selected:l=[],onSelect:u,maxSelect:d,onClearSelection:c,onPrint:p,onPrintEmpty:m,className:h,emptyHint:g,sectionType:y="page",disc:C}){const{t:w,i18n:b}=Ce.useTranslation(),f=b.language?.startsWith("ko")??!1,{anchorRect:_,openAt:v,close:k}=wa(),[A,B]=o.useState(null),x=o.useCallback(()=>{k(),B(null)},[k]);sb(x,!!A);const N=(r??"").trim(),D=/^[^,[\]\s]+$/.test(N)?N:"",P=D.length>0,H=r===void 0&&n===void 0,M=P?"match":H?"original":"ganada",[z,j]=o.useState(()=>M),[S,I]=o.useState("50"),[W,Z]=o.useState(1),[U,q]=o.useState(P);U!==P&&(q(P),j(M));const K=z==="match"&&!P||z==="original"&&!H?M:z,L=o.useMemo(()=>[...P?[{value:"match",label:w("wordSearch.sort.match",{defaultValue:"\uC2DC\uC791 \uC6B0\uC120"})}]:[],...H?[{value:"original",label:w("wordSearch.sort.original",{defaultValue:"\uBC1B\uC740 \uC21C\uC11C"})}]:[],{value:"ganada",label:w("wordSearch.sort.ganada",{defaultValue:"\uAC00\uB098\uB2E4\uC21C \u2191"})},{value:"ganada_desc",label:w("wordSearch.sort.ganadaDesc",{defaultValue:"\uAC00\uB098\uB2E4\uC21C \u2193"})},{value:"syllable",label:w("wordSearch.sort.syllable",{defaultValue:"\uC74C\uC808 \uC218 \u2191"})},{value:"syllable_desc",label:w("wordSearch.sort.syllableDesc",{defaultValue:"\uC74C\uC808 \uC218 \u2193"})},{value:"grade",label:w("wordSearch.sort.grade",{defaultValue:"\uB4F1\uAE09\uC21C \u2191"})},{value:"grade_desc",label:w("wordSearch.sort.gradeDesc",{defaultValue:"\uB4F1\uAE09\uC21C \u2193"})}],[w,P,H]),E=o.useMemo(()=>["10","25","50","100"].map(oe=>({value:oe,label:w("wordSearch.pageSize",{count:Number(oe),defaultValue:`${oe}\uAC1C\uC529 \uBCF4\uAE30`})})),[w]),F=oe=>oe.words?.[0],R=o.useMemo(()=>{const oe=[...D].length,he=mC(D),_e=new Map;return Le=>{let Ue=_e.get(Le);return Ue===void 0&&(Ue=he((Le.words?.[0]?.label??"").slice(0,oe))?0:1,_e.set(Le,Ue)),Ue}},[D]),O=o.useCallback((oe,he)=>{const _e=Ie=>F(Ie)?.label??"",Le=Ie=>F(Ie)?.syllables??[..._e(Ie)].length,Ue=Ie=>(Ie.words??[]).reduce((de,Ae)=>{const Re=parseInt(Ae.grade??"",10);return Number.isFinite(Re)&&Re<de?Re:de},999);switch(K){case"match":return R(oe)-R(he)||$3.compare(_e(oe),_e(he));case"ganada":return _e(oe).localeCompare(_e(he),"ko");case"ganada_desc":return _e(he).localeCompare(_e(oe),"ko");case"syllable":return Le(oe)-Le(he)||_e(oe).localeCompare(_e(he),"ko");case"syllable_desc":return Le(he)-Le(oe)||_e(oe).localeCompare(_e(he),"ko");case"grade":return Ue(oe)-Ue(he)||_e(oe).localeCompare(_e(he),"ko");case"grade_desc":return Ue(he)-Ue(oe)||_e(oe).localeCompare(_e(he),"ko");default:return 0}},[K,R]),$=o.useMemo(()=>s.slice().sort(O),[s,O]),Y=Number(S)||10,Q=o.useMemo(()=>(i??[]).flatMap(oe=>oe.items.slice().sort(O).map(he=>({item:he,label:oe.label}))),[i,O]),X=i?Q.length:$.length,ce=Math.max(1,Math.ceil(X/Y)),xe=Math.min(W,ce),te=o.useMemo(()=>$.slice((xe-1)*Y,xe*Y),[$,xe,Y]),re=o.useMemo(()=>{if(!i)return null;const oe=Q.slice((xe-1)*Y,xe*Y),he=new Map;for(const{item:_e,label:Le}of oe)he.has(Le)||he.set(Le,[]),he.get(Le).push(_e);return[...he.entries()].map(([_e,Le])=>({label:_e,items:Le}))},[i,Q,xe,Y]);o.useEffect(()=>{Z(1)},[z,S,X,r]);const V=X>0?t.jsxs("div",{className:"word-search-result-block__toolbar",children:[t.jsx(sn,{size:40,options:L,value:K,onChange:j,ariaLabel:w("wordSearch.sort.aria",{defaultValue:"\uC815\uB82C"})}),t.jsx(sn,{size:40,options:E,value:S,onChange:I,ariaLabel:w("wordSearch.pageSizeAria",{defaultValue:"\uD398\uC774\uC9C0 \uD06C\uAE30"})}),t.jsx(Qa,{page:xe,totalPages:ce,onChange:Z})]}):void 0,ae=oe=>{u&&u(oe)},ue=n!==void 0&&a?t.jsxs(t.Fragment,{children:[w("wordSearch.resultTitlePrefix","\uCD1D "),t.jsx("span",{style:{color:"var(--color-main)"},children:n}),w("wordSearch.resultTitleSuffix",{unit:f?xC(a):a})]}):void 0,ge=n!==void 0&&n>0&&d!==void 0&&a?w("wordSearch.resultDisc",{unit:f?wC(a):a,max:d,selected:l.length}):void 0,me=C??ge;return t.jsxs(sa,{type:y,className:Ee("word-search-result-block",h),children:[t.jsxs("div",{className:"word-search-result-block__inner",children:[(ue||V||me)&&t.jsxs("div",{className:"word-search-result-block__head",children:[t.jsxs("div",{className:"word-search-result-block__head-main",children:[e&&t.jsx(Ze,{icon:e,className:"word-search-result-block__head-icon"}),ue&&t.jsx("span",{className:"word-search-result-block__title h3",children:ue})]}),V&&t.jsx("div",{className:"word-search-result-block__head-actions",children:V}),me&&t.jsx("div",{className:"word-search-result-block__head-disc body-3",children:me})]}),(i?i.length===0:s.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:w("wordSearch.emptyResult","\uAC80\uC0C9 \uACB0\uACFC\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4.")}),g&&t.jsx("p",{className:"word-search-result-block__empty-hint body-3",children:g})]}),i?(re??[]).map(oe=>t.jsx("div",{className:"word-search-result-block__group",children:t.jsx("div",{className:"word-search-result-block__items",children:oe.items.map(he=>{const _e=l.includes(he.id);return t.jsx("div",{onMouseEnter:Le=>{v(Le.currentTarget),B(he.words??[])},onMouseLeave:x,children:t.jsx(le,{htmlType:"button",size:"word",align:"grid",label:(he.words??[]).map(Le=>Le.label),subLabel:(he.words??[]).some(Le=>Le.subLabel)?(he.words??[]).map(Le=>Le.subLabel):void 0,selected:_e,onClick:()=>ae(he.id),minWidth:200})},he.id)})})},oe.label)):t.jsx("div",{className:"word-search-result-block__items",children:te.map(oe=>{const he=l.includes(oe.id);return t.jsx("div",{onMouseEnter:_e=>{v(_e.currentTarget),B(oe.words??[])},onMouseLeave:x,children:t.jsx(le,{htmlType:"button",size:"word",align:"grid",label:(oe.words??[]).map(_e=>_e.label),subLabel:(oe.words??[]).some(_e=>_e.subLabel)?(oe.words??[]).map(_e=>_e.subLabel):void 0,selected:he,onClick:()=>ae(oe.id),minWidth:200})},oe.id)})}),A&&_&&t.jsx(yc,{words:A,anchorRect:_})]}),ce>1&&t.jsx("div",{className:"word-search-result-block__pagination-bottom",children:t.jsx(Qa,{page:xe,totalPages:ce,onChange:Z})}),(c||p)&&t.jsxs("div",{className:"word-search-result-block__actions",children:[c&&t.jsx(le,{htmlType:"button",size:"56",type:"bar",label:w("common.resetSelection","\uC120\uD0DD \uCD08\uAE30\uD654"),selected:!1,disabled:l.length===0,onClick:l.length===0?void 0:c}),p&&t.jsx("div",{onClick:l.length===0?m:void 0,children:t.jsx(le,{htmlType:"button",size:"56",type:"bar",variant:"main",label:w("wordTable.title","\uB2E8\uC5B4 \uD45C \uB9CC\uB4E4\uAE30"),disabled:l.length===0,onClick:l.length===0?void 0:p})})]})]})}function P3(e,n){return n.map(a=>{const r=typeof a=="string"?a:a.label,s=typeof a=="string"?void 0:a.displayLabel;return{label:r,value:e[r]??"",displayLabel:s}})}function I3({sections:e,selectedList:n,count:a,onCountChange:r,maxCount:s=4,minCount:i=1,combinationSections:l,combinationSectionsForSlot:u,onSelect:d,placeholder:c="-",className:p,title:m,titleIcon:h,disc:g,showInfoButton:y=!0,onClearPhoneme:C,onSearch:w,onSearchEmpty:b,searchDisabled:f=!1,searchLabel:_,searchChecking:v=!1,pairMode:k=!1,sectionType:A="page",beforeSearchContent:B,beforeContent:x,afterContent:N,hideCountControl:D=!1,ordinal:P=!1}){const{t:H}=Ce.useTranslation(),M=o.useMemo(()=>H("wordPairs.infoNotes",{returnObjects:!0}),[H]),z=o.useMemo(()=>Array.from({length:s-i+1},(R,O)=>{const $=i+O;return{key:String($),label:H("wordPairs.count",{n:$})}}),[H,s,i]),j=o.useMemo(()=>H("wordPairs.ordinals",{returnObjects:!0}),[H]),S=o.useCallback(R=>P?H("wordPairs.phonemeOrdinalLabel",{ordinal:j[R-1]??R}):a===1?H("wordPairs.phonemeSingleLabel","\uC74C\uC808"):H("wordPairs.phonemeN",{n:R}),[P,j,a,H]),I=o.useCallback(R=>P?H("wordPairs.phonemeContrastOrdinalLabel",{ordinal:j[R-1]??R}):a===1?H("wordPairs.phonemeContrastSingleLabel","\uB300\uB9BD \uC74C\uC808"):H("wordPairs.phonemeContrast",{n:R}),[P,j,a,H]),W=o.useCallback((R,O)=>O?t.jsxs(t.Fragment,{children:[R,t.jsx("span",{className:"phoneme-select-block__required",children:"*"})]}):R,[]),{anchorRect:Z,toggleAt:U,close:q}=wa(),K=o.useCallback(R=>r(Number(R)),[r]),L=tn("(max-width: 767px)"),E=o.useCallback(R=>P3(R,e).map(({label:O,value:$,displayLabel:Y})=>{const Q=!!$&&$!=="\uC5C6\uC74C";return t.jsxs("span",{className:Ee("phoneme-select-block__cell-jamo-part",$?"":"phoneme-select-block__cell-jamo-part--empty",Q?"":"phoneme-select-block__cell-jamo-part--no-label"),children:[t.jsx("span",{className:`phoneme-select-block__cell-jamo-char h1${$==="\uC5C6\uC74C"?" phoneme-select-block__cell-jamo-char--excluded":""}`,children:$==="\uC5C6\uC74C"?"x":$||c}),Q&&t.jsx("span",{className:"phoneme-select-block__cell-jamo-label caption-2",children:Y??O})]},O)}),[e,c]),F=t.jsxs(t.Fragment,{children:[t.jsx("div",{"data-tooltip-ignore":!0,children:t.jsx(le,{htmlType:"button",size:40,type:L?"dot":void 0,icon:"info",label:L?void 0:H("wordPairs.caution","\uC720\uC758\uC0AC\uD56D"),ariaLabel:H("wordPairs.caution","\uC720\uC758\uC0AC\uD56D"),className:Z?"is-selected":void 0,"aria-expanded":!!Z,"aria-haspopup":"dialog",onClick:R=>U(R.currentTarget)})}),Z&&t.jsx(Vn,{title:H("wordPairs.caution","\uC720\uC758\uC0AC\uD56D"),items:M,anchorRect:Z,onClose:q})]});return t.jsxs(sa,{type:A,title:m,icon:h,disc:g,action:y?F:void 0,className:Ee("phoneme-select-block",p),children:[x,!D&&t.jsx("div",{className:"phoneme-select-block__controls",children:t.jsx(An,{options:z,value:String(a),onChange:K,size:40,className:"phoneme-select-block__count-control"})}),t.jsx("div",{className:"phoneme-select-block__cells",children:k?t.jsxs(t.Fragment,{children:[t.jsx("div",{className:"phoneme-select-block__cell-group",children:Array.from({length:a}).map((R,O)=>{const $=n[O*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:E($)})}),t.jsx("span",{className:"phoneme-select-block__cell-index caption-1",children:S(O+1)})]},O)})}),t.jsx("span",{className:"phoneme-select-block__cell-vs h3",children:H("wordPairs.phonemeSelect.vs","\uB300")}),t.jsx("div",{className:"phoneme-select-block__cell-group",children:Array.from({length:a}).map((R,O)=>{const $=n[O*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:E($)})}),t.jsx("span",{className:"phoneme-select-block__cell-index caption-1",children:I(O+1)})]},O)})})]}):n.map((R,O)=>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:E(R)})}),t.jsx("span",{className:"phoneme-select-block__cell-index caption-1",children:S(O+1)})]},O))}),(l||u)&&t.jsx("div",{className:"phoneme-select-block__panels",children:t.jsx("div",{className:"phoneme-select-block__detail",children:k?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((R,O)=>{const $=n[O*2]??{};return t.jsx(Bn,{title:W(S(O+1),O===0),sections:u?u($,O*2):l,selected:$,onSelect:d?.(O*2),align:"newline"},O)})}),t.jsx("div",{className:"phoneme-select-block__panel-group",children:Array.from({length:a}).map((R,O)=>{const $=n[O*2+1]??{};return t.jsx(Bn,{title:I(O+1),sections:u?u($,O*2+1):l,selected:$,onSelect:d?.(O*2+1),align:"newline"},O)})})]}):n.map((R,O)=>t.jsx(Bn,{title:W(S(O+1),O===0),sections:u?u(R,O):l,selected:R,onSelect:d?.(O),align:"newline"},O))})}),B&&t.jsx("div",{className:"phoneme-select-block__before-search",children:B}),(C||w||v)&&(()=>{const R=n.every(O=>Object.entries(O).every(([$,Y])=>!Y||$==="\uC885\uC131"&&Y==="\uC5C6\uC74C"));return t.jsxs("div",{className:"phoneme-select-block__search-row",onClick:R?b:void 0,children:[C&&t.jsx(le,{htmlType:"button",size:"56",type:"bar",label:H("wordPairs.resetOptions","\uAC80\uC0C9 \uC635\uC158 \uCD08\uAE30\uD654"),selected:!1,disabled:R,onClick:R?void 0:C}),w?t.jsx(le,{htmlType:"button",size:"56",type:"bar",variant:"main",icon:v?t.jsx("span",{className:"phoneme-select-block__spinner","aria-hidden":"true"}):void 0,label:_??H("wordSearch.searchButton","\uAC80\uC0C9\uD558\uAE30"),disabled:R||f||v,onDisabledClick:v?()=>{}:void 0,"aria-busy":v||void 0,onClick:w}):v?t.jsxs("div",{className:"phoneme-select-block__checking","aria-busy":"true",children:[t.jsx("div",{className:"phoneme-select-block__spinner"}),t.jsx("span",{className:"button-1 phoneme-select-block__checking-label",children:_??H("wordSearch.searchButton","\uAC80\uC0C9\uD558\uAE30")})]}):null]})})(),N]})}function F3({title:e,sections:n,selected:a,onSelect:r,collapsible:s,defaultCollapsed:i,collapsed:l,onCollapsedChange:u,headerSummary:d,headerAction:c,className:p}){const{t:m}=Ce.useTranslation();return t.jsx(Bn,{className:p,title:e??m("wordSearch.filterTitle","\uB2E8\uC5B4 \uAC80\uC0C9 \uC124\uC815"),sections:n,selected:a,onSelect:r,collapsible:s,defaultCollapsed:i,collapsed:l,onCollapsedChange:u,headerSummary:d,headerAction:c,align:"inline"})}function O3({title:e,headerAction:n,sections:a,selected:r,onSelect:s,className:i}){const{t:l}=Ce.useTranslation();return a.length===0?null:t.jsx(Bn,{className:i,title:e??l("training.filter.phonemeGroup",{defaultValue:"\uD6C8\uB828 \uC74C\uC808"}),headerAction:n,sections:a,selected:r,onSelect:s,align:"newline"})}function H3({title:e,mode:n,onModeChange:a,matchMode:r,onMatchModeChange:s,positionCount:i,onPositionCountChange:l,inputMode:u,onInputModeChange:d,className:c}){const{t:p}=Ce.useTranslation(),m={searchMode:p("wordPairs.filter.searchModeLabel","\uB300\uB9BD \uBC29\uC2DD"),phonemeOrder:p("wordPairs.filter.phonemeOrder","\uC785\uB825 \uC74C\uC808 \uC704\uCE58"),count:p("wordPairs.filter.countLabel","\uC785\uB825 \uC74C\uC808 \uAC2F\uC218"),inputMode:p("wordPairs.filter.inputModeLabel","\uC785\uB825 \uBC29\uC2DD"),orderAny:p("wordPairs.filter.orderAny","\uBB34\uAD00"),orderMatch:p("wordPairs.filter.orderMatch","\uC77C\uCE58"),include:p("wordPairs.mode.include","\uC74C\uC18C \uD3EC\uD568"),pick:p("wordPairs.mode.pick","\uC74C\uC18C \uB300\uB9BD"),explicit:p("wordPairs.mode.contrast","\uC74C\uC18C \uB300\uB9BD \uC9C0\uC815"),charInput:p("wordPairs.input.char","\uAE00\uC790 \uC120\uD0DD"),pronInput:p("wordPairs.input.pron","\uBC1C\uC74C \uC120\uD0DD")},h=w=>p("wordPairs.count",{n:w}),g=[{label:m.searchMode,items:[m.include,m.pick,m.explicit],display:"segmented",labelAction:t.jsx(Da,{title:p("wordPairs.mode.infoTitle","\uB300\uB9BD \uBC29\uC2DD"),items:[p("wordPairs.mode.infoInclude","\uC74C\uC18C \uD3EC\uD568 \u2014 \uC120\uD0DD\uD55C \uC74C\uC18C\uAC00 \uBAA8\uB450 \uB4E4\uC5B4\uAC04 \uB2E8\uC5B4\uC640 \uADF8 \uB300\uB9BD\uC30D\uC744 \uCC3E\uC544\uC694."),p("wordPairs.mode.infoPick","\uC74C\uC18C \uB300\uB9BD \u2014 \uC120\uD0DD\uD55C \uC74C\uC18C\uAC00 \uB300\uB9BD\uC30D \uB450 \uB2E8\uC5B4\uC758 \uC2E4\uC81C \uCC28\uC774\uC810\uC77C \uB54C\uB9CC \uB9E4\uCE6D\uB3FC\uC694."),p("wordPairs.mode.infoContrast","\uC74C\uC18C \uB300\uB9BD \uC9C0\uC815 \u2014 \uAE30\uC900 \uB2E8\uC5B4\uC640 \uB300\uB9BD \uB2E8\uC5B4\uC758 \uC74C\uC18C\uB97C \uAC01\uAC01 \uC9C1\uC811 \uC120\uD0DD\uD574 \uB300\uB9BD\uC30D\uC744 \uCC3E\uC544\uC694.")]})},{label:m.phonemeOrder,items:[m.orderAny,m.orderMatch],display:"segmented",labelAction:t.jsx(Da,{items:p("wordPairs.filter.phonemeOrderInfo",{returnObjects:!0})})},{label:m.count,items:[h(1),h(2)],display:"segmented"},{label:m.inputMode,items:[m.charInput,m.pronInput],display:"segmented",labelAction:t.jsx(Da,{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.")]})}],y={[m.searchMode]:n==="explicit"?m.explicit:n==="pick"?m.pick:m.include,[m.phonemeOrder]:r==="ordered"?m.orderMatch:m.orderAny,[m.count]:h(i),[m.inputMode]:u==="phoneme"?m.pronInput:m.charInput},C=(w,b)=>{b===m.searchMode?a(w===m.explicit?"explicit":w===m.pick?"pick":"include"):b===m.phonemeOrder?s(w===m.orderMatch?"ordered":"unordered"):b===m.count?l(w===h(2)?2:1):b===m.inputMode&&d(w===m.pronInput?"phoneme":"word")};return t.jsx(Bn,{className:c,title:e??p("wordPairs.filter.searchOptionsTitle","\uB300\uB9BD \uC124\uC815"),sections:g,selected:y,onSelect:C,align:"inline"})}function z3(e){const{title:n,items:a,columns:r,gridTemplateColumns:s,mobileGridTemplateColumns:i,searchPlaceholder:l,searchFn:u,defaultSortKey:d,defaultSortAsc:c=!0,selectedId:p,selectedIds:m,onSelect:h,onClose:g,pageSizeOptions:y=[10,25,50,100],initialPageSize:C,emptyText:w,countLabel:b,topContent:f,className:_=""}=e,{t:v}=Ce.useTranslation(),k=l??v("common.search","\uAC80\uC0C9"),A=w??v("common.emptyList","\uD56D\uBAA9\uC774 \uC5C6\uC2B5\uB2C8\uB2E4."),[B,x]=o.useState(""),[N,D]=o.useState(d??r[0]?.key??""),[P,H]=o.useState(c),[M,z]=o.useState(String(C??y[0]??10)),[j,S]=o.useState(1);o.useEffect(()=>{S(1)},[B,M]);const I=u!==null,W=o.useCallback(($,Y)=>{if(!Y)return!0;const Q=Y.toLowerCase();return r.some(X=>{const ce=$[X.key];return ce==null?!1:String(ce).toLowerCase().includes(Q)})},[r]),Z=u??W,U=o.useMemo(()=>{const $=I?a.filter(Y=>Z(Y,B)):a;return N?[...$].sort((Y,Q)=>{const X=Y[N],ce=Q[N];return X===ce?0:Xr(X,ce,P)}):$},[a,B,N,P,I,Z]),q=Math.max(1,Math.ceil(U.length/Number(M)));j>q&&S(q);const K=Math.min(j,q),L=U.slice((K-1)*Number(M),K*Number(M)),E=o.useCallback($=>{N===$?H(Y=>!Y):(D($),H(!0)),S(1)},[N]),F=o.useMemo(()=>{if(typeof b=="function"){const $=U.length,Y=b($);if(typeof Y=="string"){const Q=Y.lastIndexOf(String($));if(Q>=0)return{prefix:Y.slice(0,Q),suffix:Y.slice(Q+String($).length)}}return{label:Y}}if(typeof b=="string"&&b.includes("{n}")){const[$,Y]=b.split("{n}");return{prefix:$,suffix:Y}}return{prefix:v("common.totalCountPrefix","\uCD1D "),suffix:v("common.totalCountSuffix","\uAC1C")}},[b,U.length,v]),R=o.useMemo(()=>r.map($=>({label:$.label,onClick:$.sortable!==!1?()=>E($.key):void 0,className:$.className,sortDir:$.sortable!==!1&&N===$.key?P?"asc":"desc":null})),[r,N,P,E]),O=o.useMemo(()=>y.map($=>({value:String($),label:v("common.pageSizeLabel",{n:$})})),[y,v]);return t.jsxs(Tn,{className:`popup-list ${_}`,title:n,onClose:g,children:[f,"label"in F&&t.jsx("p",{className:"toolbar__count body-1",children:F.label}),t.jsx(lo,{count:"label"in F?void 0:{value:U.length,prefix:F.prefix,suffix:F.suffix},search:I?{value:B,onChange:x,placeholder:k}:void 0,pageSize:{options:O,value:M,onChange:z},pagination:{page:K,total:q,onChange:S}}),t.jsx(bo,{size:"medium",gridTemplateColumns:s,mobileGridTemplateColumns:i,resizable:!0,fields:R,items:L,onRowClick:h,renderRow:$=>{const Y=m!=null?$.id!=null&&m.has($.id):p!=null&&$.id===p;return r.map(Q=>({content:Q.render?Q.render($):$[Q.key]??"",className:Ee(Q.className,Y&&"popup-list__row--selected")}))},empty:A})]})}function vc(e){const{title:n,message:a,topContent:r,details:s,children:i,confirmLabel:l,cancelLabel:u,hideCancel:d=!1,extraAction:c,confirmVariant:p="main",confirmDisabled:m=!1,onConfirm:h,closeOnConfirm:g=!0,onClose:y,inline:C,size:w="small",className:b,initialFocus:f="close"}=e,{t:_}=Ce.useTranslation(),v=o.useRef(null);o.useEffect(()=>{if(C||f==="close")return;const D=v.current?.closest(".popup-panel"),P=Array.from(D?.querySelectorAll(".popup-footer--buttons button")??[]),H=f==="confirm"?P[P.length-1]:d?void 0:P[c?1:0];H&&!H.disabled&&H.focus()},[]);const k=o.useRef(!1),[A,B]=o.useState(!1),x=D=>{let P=!1;return{close:()=>{P=!0,D()},\uB2EB\uC558\uB098:()=>P}},N=async D=>{if(k.current)return;k.current=!0;const P=typeof document<"u"?document.activeElement:null;B(!0);let H=!1;try{H=await D()}catch(M){typeof console<"u"&&console.error(M)}finally{H||(k.current=!1,B(!1),requestAnimationFrame(()=>{const M=document.activeElement;(!M||M===document.body)&&P?.isConnected&&P.focus()}))}};return t.jsxs(Tn,{title:n,onClose:y,closeDisabled:A,inline:C,size:w,className:Ee("confirm-popup",r!=null&&"confirm-popup--has-top",b),buttons:[...c?[{label:c.label,variant:c.variant??"default",disabled:c.disabled||A,onClick:async({closeWithAnimation:D})=>{await N(async()=>{const P=x(D);await c.onClick(P.close);const H=c.closeOnClick??!0;return H&&D(),H||P.\uB2EB\uC558\uB098()})}}]:[],...d?[]:[{label:u??_("common.cancel","\uCDE8\uC18C"),variant:"default",disabled:A,onClick:({closeWithAnimation:D})=>D()}],{label:l??_("common.confirm","\uD655\uC778"),variant:p,disabled:m||A,onClick:async({closeWithAnimation:D})=>{await N(async()=>{const P=x(D);return await h(P.close),g&&D(),g||P.\uB2EB\uC558\uB098()})}}],children:[r!=null&&t.jsx("div",{className:"confirm-popup__top",children:r}),s&&s.length>0&&t.jsx(cr,{children:s.map((D,P)=>t.jsx(Mn,{label:D.label,children:t.jsx("span",{className:"panel-row__text body-2",children:D.value})},P))}),t.jsx("p",{ref:v,className:"body-2 confirm-popup__message",children:a}),i]})}function V3(e,n,a={}){const{t:r}=Ce.useTranslation(),[s,i]=o.useState(!1),l=o.useRef(!1),u=o.useCallback(()=>{l.current=!0},[]),d=o.useCallback(()=>l.current?(l.current=!1,!0):e?(i(!0),!1):!0,[e]),c=s?t.jsx(vc,{title:a.title??r("common.discardConfirm.title","\uC785\uB825\uC744 \uCDE8\uC18C\uD560\uAE4C\uC694?"),message:a.message??r("common.discardConfirm.body","\uC800\uC7A5\uD558\uC9C0 \uC54A\uC73C\uBA74 \uC9C0\uAE08\uAE4C\uC9C0 \uC785\uB825\uD55C \uB0B4\uC6A9\uC774 \uC0AC\uB77C\uC9D1\uB2C8\uB2E4."),confirmLabel:a.confirmLabel??r("common.discardConfirm.confirm","\uC785\uB825 \uCDE8\uC18C"),confirmVariant:"danger",onConfirm:()=>{i(!1),n()},onClose:()=>i(!1)}):null;return{beforeClose:d,discardPopup:c,allowClose:u}}function W3({onApply:e,onCancel:n}){const{t:a}=Ce.useTranslation(),[r,s]=o.useState(""),[i,l]=o.useState(!1),[u,d]=o.useState(null),c=o.useRef(null);o.useEffect(()=>{c.current?.focus()},[]);const p=o.useCallback(async g=>{const y=r.trim();if(y){l(!0),d(null);try{await e(y),g()}catch(C){d(ni(C)),l(!1),requestAnimationFrame(()=>c.current?.focus())}}},[r,e]),m=o.useCallback((g,y)=>{g.key==="Enter"&&!g.nativeEvent.isComposing&&p(y)},[p]),h=g=>{s(g.target.value),d(null)};return t.jsx(Tn,{className:"coupon-input-popup",title:a("usage.couponButton","\uCFE0\uD3F0 \uC785\uB825"),size:"small",onClose:n,closeDisabled:i,buttons:[{label:a("common.cancel","\uCDE8\uC18C"),variant:"default",disabled:i,onClick:({closeWithAnimation:g})=>g()},{label:a("coupons.applyButton","\uC801\uC6A9"),variant:"main",disabled:!r.trim()||i,onClick:({closeWithAnimation:g})=>{p(g)}}],children:({closeWithAnimation:g})=>t.jsxs(t.Fragment,{children:[t.jsx("input",{ref:c,className:"coupon-input-popup__input body-2","aria-label":a("coupons.input.label","\uCFE0\uD3F0 \uCF54\uB4DC"),placeholder:a("coupons.input.placeholder","\uCFE0\uD3F0 \uCF54\uB4DC \uC785\uB825"),value:r,onChange:h,onKeyDown:y=>m(y,g),disabled:i,autoComplete:"off",spellCheck:!1}),u&&t.jsx("p",{className:"coupon-input-popup__error caption-1",role:"alert",children:u})]})})}const xc=["var(--color-main)","var(--color-sub)"],q3=2e3;function U3(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 Yo({active:e=!1,count:n=40,duration:a=2e3,strength:r=1,onComplete:s,trigger:i=0}){const l=o.useMemo(()=>{const C=Math.floor(n/2),w=n-C,b=(f,_)=>Array.from({length:f}).map((v,k)=>{const A=6+Math.random()*12,B=Math.round(Math.min(18,A*Math.min(1.5,1+r*.4))),x=xc[Math.floor(Math.random()*xc.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,H=Math.cos(P)*D,M=Math.sin(P)*D*1.35,z=Math.random()*720-360,j=(1200+Math.random()*3e3)*Math.min(1.6,1+r*.3),S=Math.random()>.7?"50%":"3px";return{id:`${_}-${k}`,side:_,size:B,color:x,delay:N,vx:H,vy:M,angularVel:z,life:j,borderRadius:S}});return[...b(C,"left"),...b(w,"right")]},[n,r]),u=o.useRef(null),d=o.useRef({}),c=o.useRef(null),p=o.useRef(s);o.useEffect(()=>{p.current=s},[s]);const m=o.useRef(null),h=o.useRef(null),g=()=>{if(typeof document>"u")return null;let C=document.querySelector("[data-ihab-effect-root]");return C||(C=document.createElement("div"),C.className="app-effect",C.dataset.ihabEffectRoot="",C.style.position="fixed",C.style.inset="0",C.style.pointerEvents="none",C.style.zIndex="99998",document.body.appendChild(C)),C};if(typeof document<"u"&&h.current==null&&(h.current=g()),o.useEffect(()=>{if(!e)return;if(typeof window<"u"&&window.matchMedia?.("(prefers-reduced-motion: reduce)").matches){const q=setTimeout(()=>p.current?.(),0);return()=>clearTimeout(q)}const C=1200,w=performance.now(),b=h.current&&h.current!==document.body?h.current.getBoundingClientRect():null,f=Math.max(60,(window.innerHeight||800)*.05),_=q=>Math.max(40,(q||window.innerWidth)*.02),v=b?.width||window.innerWidth||375,k=b?.height||window.innerHeight||812,A=q=>{const K=[...q].sort((L,E)=>L-E);return K[Math.floor(K.length/2)]||1},B=A(l.map(q=>Math.abs(q.vy))),x=A(l.map(q=>Math.abs(q.vx))),N=Math.sqrt(2*C*(k*.72+f))/B,D=B*N/C,P=v*.5/(x*D),H=(q,K,L)=>Math.min(L,Math.max(K,q)),M=H(N,.8,2.4),z=H(P,.7,2.2),j=a>0?a/q3:1,S=l.map(q=>({...q,life:q.life*j,vx:q.vx*z,vy:q.vy*M,startTime:w+q.delay,ended:!1})),I=b?{x:b.left-_(b.width),y:b.top+b.height+f}:{x:-_(window.innerWidth),y:window.innerHeight+f},W=b?{x:b.left+b.width+_(b.width),y:b.top+b.height+f}:{x:window.innerWidth+_(window.innerWidth),y:window.innerHeight+f},Z=q=>{let K=!1;for(const L of S){const E=d.current[L.id];if(!E||!E)continue;if(q<L.startTime){E.style.display="none",K=!0;continue}if(!L._inited){const te=L.side==="left"?I.x:W.x,re=L.side==="left"?I.y:W.y;E.style.left=`${te}px`,E.style.top=`${re}px`,E.style.transform="translate3d(0px, 0px, 0)",E.style.display="block",E.style.zIndex="100000",typeof L.color=="string"&&L.color.startsWith("var(")&&(E.style.background=U3(E,L.color)??"#FF0060"),L._inited=!0}const F=(q-L.startTime)/1e3;if(F<0)continue;const R=L.life/1e3;if(F>=R){E.style.opacity="0",E.style.display="none",L.ended=!0;continue}K=!0;const O=L.side==="left"?I.x:W.x,$=L.side==="left"?I.y:W.y,Y=O+L.vx*F,Q=$+L.vy*F+.5*C*F*F,X=(L.angularVel||0)*F,ce=Y-O,xe=Q-$;E.style.transform=`translate3d(${ce}px, ${xe}px, 0) rotate(${X}deg)`,E.style.opacity=`${Math.max(0,1-F/R)}`}K?c.current=requestAnimationFrame(Z):p.current?.()};c.current=requestAnimationFrame(Z);const U=setTimeout(()=>{try{if((h.current?h.current.querySelectorAll(".confetti"):document.querySelectorAll(".confetti")).length===0&&!document.querySelector(".party-container")){const q=document.createElement("div");q.className="party-container",q.style.position="fixed",q.style.inset="0",q.style.pointerEvents="none",q.style.overflow="visible",q.style.zIndex="2147483647";for(const K of l){const L=document.createElement("span");L.className=`confetti confetti--${K.side}`,L.setAttribute("aria-hidden","true"),L.style.display="none",L.style.position="fixed",L.style.left="0px",L.style.top="0px",L.style.width=`${K.size}px`,L.style.height=`${Math.max(4,K.size*.6)}px`,L.style.background=K.color,L.style.borderRadius=K.borderRadius,L.style.transform="translate3d(0,0,0)",L.style.opacity="0",q.appendChild(L),d.current[K.id]=L}(document.body||h.current).appendChild(q),m.current=q}}catch{}},300);return()=>{if(c.current&&cancelAnimationFrame(c.current),clearTimeout(U),m.current){try{m.current.remove()}catch{}m.current=null}}},[e,a,i,l]),!e)return null;const y=t.jsx("div",{className:"party-container",ref:u,children:l.map(C=>t.jsx("span",{"aria-hidden":!0,ref:w=>{d.current[C.id]=w},className:`confetti confetti--${C.side}`,style:{width:`${C.size}px`,height:`${Math.max(4,C.size*.6)}px`,background:C.color,borderRadius:C.borderRadius}},`${C.id}-${i}`))});return typeof document<"u"?Xt.createPortal(y,h.current||document.body):y}const Zo=e=>typeof e=="number"&&Number.isFinite(e)&&e>0?e:void 0;function G3({trigger:e=0,active:n=!1}){const[a,r]=o.useState(null);o.useEffect(()=>{if(typeof window>"u")return;const i=l=>{const u=l.detail??{};r(d=>({n:(d?.n??0)+1,count:Zo(u.count),strength:Zo(u.strength),duration:Zo(u.duration)}))};return window.addEventListener("party:trigger",i),()=>window.removeEventListener("party:trigger",i)},[]);const s=o.useCallback(()=>r(null),[]);return t.jsxs(t.Fragment,{children:[t.jsx(Yo,{active:n,trigger:e}),a&&t.jsx(Yo,{active:!0,trigger:a.n,count:a.count,strength:a.strength,duration:a.duration,onComplete:s})]})}function K3({title:e,sub:n,rightAction:a,titleAction:r,badge:s,badgeVariant:i="default",documentTitle:l,onBack:u,backLabel:d,wrap:c=!1}){const{t:p}=Ce.useTranslation();qg(typeof e=="string"?e:l??null);const m=d??p("common.back","\uB4A4\uB85C");return t.jsxs("div",{className:c?"page-title page-title--wrap":"page-title",children:[t.jsxs("div",{className:"page-title__main",children:[t.jsxs("div",{className:"page-title__title-row",children:[u&&t.jsx(le,{htmlType:"button",className:"page-title__back",size:48,type:"dot",icon:"chevron-left",iconSize:"large",useBorder:!1,iconColor:"var(--color-text-primary)",ariaLabel:m,showTooltipInfo:m,onClick:u}),t.jsx("h1",{className:"page-title__title h1",children:e}),s&&t.jsx("div",{className:"page-title__badge",children:t.jsx(bt,{label:s,size:"small",variant:i,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 Y3(e){return e??""}const _c=o.createContext({words:[],loading:!1});function Z3(){return o.useContext(_c)}function X3({words:e,loading:n,error:a,statusMessage:r,localVersion:s,remoteVersion:i,progress:l,clearAndRefetch:u,checkRemoteVersion:d,children:c}){return t.jsx(_c.Provider,{value:{words:e,loading:n,error:a,statusMessage:r,localVersion:s,remoteVersion:i,progress:l,clearAndRefetch:u,checkRemoteVersion:d},children:c})}function J3({items:e,actions:n,columns:a,flat:r=!1,className:s,style:i}){const l=a??e.length;return t.jsx("section",{className:Ee("summary-strip",r&&"summary-strip--flat",s),style:{"--summary-strip-cols":String(l),...i},children:t.jsxs("div",{className:"summary-strip__row",children:[t.jsx("div",{className:"summary-strip__items",children:e.map((u,d)=>t.jsxs("div",{className:"summary-strip__item",children:[t.jsx("p",{className:"summary-strip__label caption-1",children:u.label}),t.jsx("p",{className:"summary-strip__value body-3b",title:typeof u.value=="string"||typeof u.value=="number"?String(u.value):void 0,children:u.value})]},d))}),n&&t.jsx("div",{className:"summary-strip__actions",children:n})]})})}const Q3=(e,n)=>`${e} / ${n}`;function e7({blocks:e,sectionTitles:n,logo:a,footer:r,pageLabel:s=Q3,pageWidth:i,pageHeight:l,margin:u,className:d,style:c}){const{t:p}=Ce.useTranslation(),m=o.useRef(null),h=o.useRef(null),g=o.useRef(null),y=o.useRef(null),[C,w]=o.useState(null),[b,f]=o.useState(!1);o.useEffect(()=>{const j=m.current;if(!j)return;const S=()=>f(j.scrollWidth>j.clientWidth+1);if(S(),typeof ResizeObserver>"u")return;const I=new ResizeObserver(S);return I.observe(j),()=>I.disconnect()},[C]);const _=e.map(j=>`${j.id}\0${j.section??""}\0${j.group??""}`).join(""),v=C&&C.shape===_?C.pages:null,[k,A]=o.useState(0);o.useEffect(()=>{const j=y.current;if(!j||typeof ResizeObserver>"u")return;const S=new ResizeObserver(()=>A(j.offsetHeight));return S.observe(j),()=>S.disconnect()},[]);const[B,x]=o.useState(0);o.useEffect(()=>{const j=h.current;if(!j||typeof ResizeObserver>"u")return;let S=null;const I=typeof requestAnimationFrame=="function"?U=>requestAnimationFrame(U):U=>setTimeout(U,16),W=typeof cancelAnimationFrame=="function"?cancelAnimationFrame:U=>clearTimeout(U),Z=new ResizeObserver(()=>{S==null&&(S=I(()=>{S=null,x(U=>U+1)}))});return Array.from(j.children).forEach(U=>Z.observe(U)),()=>{Z.disconnect(),S!=null&&W(S)}},[_]),o.useLayoutEffect(()=>{const j=h.current,S=y.current;if(!j||!S)return;const I=R=>R.getBoundingClientRect().height||R.offsetHeight,W=new Map;g.current?.querySelectorAll("[data-chrome-section]").forEach(R=>{W.set(R.dataset.chromeSection??"",I(R))});const Z=R=>I(S)-(W.get(R??"")??0),U=Array.from(j.children).map(R=>I(R)),q=[];e.forEach((R,O)=>{const $=q[q.length-1],Y=$?e[$[0]]:void 0;Y&&R.group!=null&&Y.group===R.group&&Y.section===R.section?$.push(O):q.push([O])});const K=[];let L=[],E=0;const F=()=>{L.length&&K.push(L),L=[],E=0};q.forEach(R=>{const O=R.reduce((Y,Q)=>Y+U[Q],0),$=Z(e[R[0]].section);L.length&&e[L[0]].section!==e[R[0]].section&&F(),O>$?R.forEach(Y=>{L.length&&E+U[Y]>$+.01&&F(),L.push(Y),E+=U[Y]}):(L.length&&E+O>$+.01&&F(),R.forEach(Y=>L.push(Y)),E+=O)}),F(),w(R=>R&&R.shape===_&&JSON.stringify(R.pages)===JSON.stringify(K)?R:{shape:_,pages:K})},[_,k,i,l,u,B]);const N=ro,D=N,P=r??t.jsxs(t.Fragment,{children:[t.jsx("img",{src:D,alt:"IHAB",className:"report-doc__logo"}),"\xA9 IHAB, Inc. All rights reserved."]}),H=(j,S,I)=>({header:t.jsxs("div",{className:"report-doc__header",children:[t.jsx("h2",{className:"report-doc__title h3b",children:I!=null&&n?.[I]||null}),a]}),footer:t.jsxs("div",{className:"report-doc__footer caption-1",children:[t.jsx("span",{className:"report-doc__footer-left",children:P}),t.jsx("span",{className:"report-doc__page-no",children:s(j,S)})]})}),M=Array.from(new Set(e.map(j=>j.section??""))),z={...i?{"--report-page-w":i}:null,...l?{"--report-page-h":l}:null,...u?{"--report-margin":u}:null,...c};return t.jsxs("div",{ref:m,className:Ee("report-doc",d),style:z,tabIndex:b?0:void 0,role:b?"group":void 0,"aria-label":b?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:y,className:"report-doc__ruler"}),t.jsx("div",{ref:g,children:M.map(j=>{const S=H(1,1,j||void 0);return t.jsxs("div",{"data-chrome-section":j,children:[S.header,S.footer]},j)})}),t.jsx("div",{ref:h,className:"report-doc__measure-blocks",children:e.map(j=>t.jsx("div",{children:j.content},j.id))})]}),v&&t.jsx("div",{className:"report-doc__pages",children:v.map((j,S)=>{const{header:I,footer:W}=H(S+1,v.length,e[j[0]].section);return t.jsxs("section",{className:"report-doc__page",children:[I,j.map(Z=>t.jsx("div",{children:e[Z].content},e[Z].id)),W]},S)})})]})}function t7({title:e,fields:n,columns:a=4,className:r,style:s}){return t.jsxs("div",{className:Ee("report-info",r),style:{"--report-info-cols":String(a),...s},children:[e&&t.jsx("p",{className:"report-info__title h5b",children:e}),t.jsx("div",{className:"report-info__grid",children:n.map((i,l)=>t.jsxs("div",{className:"report-info__field body-2",children:[t.jsx("span",{className:"report-info__label body-3",children:i.label}),t.jsx("span",{className:"report-info__value",children:i.value})]},l))})]})}const Kn=new Map;let mr=null;const n7=12;function a7(e){for(let n=e.parentElement;n&&n!==document.body;n=n.parentElement){const a=window.getComputedStyle(n);if(a.transform&&a.transform!=="none"||a.filter&&a.filter!=="none"||a.perspective&&a.perspective!=="none"||/paint|layout|strict|content/.test(a.contain||""))return n}return document}function hr(){const e=new Map;for(const n of Kn.keys()){if(!n.isConnected)continue;const a=a7(n),r=e.get(a)??[];r.push(n),e.set(a,r)}for(const n of e.values()){n.sort((r,s)=>r.compareDocumentPosition(s)&Node.DOCUMENT_POSITION_FOLLOWING?-1:1);let a=0;for(const r of n){a>0?r.style.setProperty("--update-alert-stack-offset",`${a}px`):r.style.removeProperty("--update-alert-stack-offset");const s=r.getBoundingClientRect().height;s>0&&(a+=s+n7)}}}function r7(e){return typeof window>"u"?()=>{}:(Kn.set(e,(Kn.get(e)??0)+1),Kn.get(e)===1&&typeof ResizeObserver<"u"&&(mr??(mr=new ResizeObserver(()=>hr())),mr.observe(e)),hr(),()=>{const n=(Kn.get(e)??1)-1;if(n>0){Kn.set(e,n),hr();return}Kn.delete(e),mr?.unobserve(e),e.style.removeProperty("--update-alert-stack-offset"),hr()})}function o7({title:e,message:n,actionLabel:a,onAction:r,icon:s,onClose:i,className:l=""}){const{t:u}=Ce.useTranslation(),d=a??u("common.update","\uC5C5\uB370\uC774\uD2B8"),c=o.useRef(null),p=o.useRef(!1);return o.useLayoutEffect(()=>{const m=c.current,h=m?.parentElement?.closest(".update-alert-stack")??m,g=h?r7(h):null;return()=>{g?.(),p.current&&m&&m.contains(document.activeElement)&&Ua(m)}},[]),t.jsxs("div",{ref:c,className:Ee("update-alert",l),role:"alert",children:[i&&t.jsx("button",{type:"button",className:"update-alert__close",onClick:()=>{p.current=!0,i()},"aria-label":u("common.close","\uB2EB\uAE30"),children:"\xD7"}),t.jsxs("div",{className:"update-alert__top",children:[t.jsx("div",{className:"update-alert__icon",children:s??t.jsx(us,{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(le,{htmlType:"button",size:32,variant:"main",shape:"pill",className:"update-alert__action",onClick:r,children:d})]})}function s7({title:e,description:n,topActions:a,children:r,footerLeft:s,footerRight:i,onClick:l,draggable:u,onDragStart:d,onDragEnd:c,className:p}){const m=s!=null||i!=null,h=r!=null&&r!==!1,g=o.useCallback(y=>{l&&y.target===y.currentTarget&&(y.key==="Enter"||y.key===" ")&&(y.preventDefault(),l())},[l]);return t.jsxs("div",{className:Ee("training-card",l?"training-card--clickable":"",p),onClick:l,onKeyDown:l?g:void 0,role:l?"button":void 0,tabIndex:l?0:void 0,draggable:u,onDragStart:d,onDragEnd:c,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:y=>y.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:" "})]}),h&&t.jsx("div",{className:"training-card__body",children:r}),m&&t.jsxs("div",{className:"training-card__footer",children:[s!=null&&t.jsx("div",{className:"training-card__footer-left",children:s}),i!=null&&t.jsx("div",{className:"training-card__meta",children:i})]})]})}function i7({title:e,count:n,collapsed:a=!1,onToggle:r,sort:s,actions:i,empty:l=!1,emptyContent:u,dragOver:d=!1,onDragOver:c,onDragLeave:p,onDrop:m,children:h,className:g}){const{t:y}=Ce.useTranslation(),C=r!=null,w=Ee("training-card-group",d&&"training-card-group--dragover",a&&"training-card-group--collapsed",C&&"training-card-group--collapsible",g);return t.jsxs("div",{className:w,onDragOver:c,onDragLeave:p,onDrop:m,children:[t.jsxs("header",{className:"training-card-group__header",children:[C&&t.jsx(le,{htmlType:"button",size:40,type:"dot",variant:"transparent-gray",useBorder:!1,icon:a?"chevron-right":"chevron-down",ariaLabel:a?y("common.expand","\uD3BC\uCE58\uAE30"):y("common.collapse","\uC811\uAE30"),className:"training-card-group__chevron","aria-expanded":!a,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}),(s||i!=null)&&t.jsxs("span",{className:"training-card-group__actions",onClick:b=>b.stopPropagation(),children:[s&&t.jsx(sn,{size:40,options:s.options,value:s.value,placeholder:s.placeholder,onChange:s.onChange}),i]})]}),!a&&(l?t.jsx("div",{className:"training-card-group__empty body-3",children:u}):t.jsx("div",{className:"training-card-group__grid",children:h}))]})}const l7="speechear:saved_word_tables";function u7(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 c7(){try{const e=localStorage.getItem(l7);if(!e)return[];const n=JSON.parse(e);return Array.isArray(n)?n.filter(u7):[]}catch{return[]}}function wc(e){return{label:e.word,subLabel:e.pronunciation,colloquialLabel:e.colloquialPronunciation,homonum:e.homonum,grade:e.grade,syllables:[...e.word].length,pos:e.pos,wordType:e.wordType}}function Xo(e){return e.map(n=>n.homonum!=null?`${n.word}#${n.homonum}`:n.word).join("|")}function d7(e){const n=new Set;return e.map(a=>{let r=a.id;for(let s=2;n.has(r);s++)r=`${a.id}~${s}`;return n.add(r),r===a.id?a:{...a,id:r}})}function p7({title:e,titleIcon:n,disc:a,filterTitle:r,filterCollapsible:s,filterDefaultCollapsed:i,filterCollapsed:l,onFilterCollapsedChange:u,filterHeaderSummary:d,brand:c,code:p,items:m,onSaveComplete:h,onLoad:g,onRemoveItem:y,onReset:C,resetLabel:w,saveButtonLabel:b,secondarySaveButtonLabel:f,onReorder:_,showCellCount:v,onAddItem:k,className:A,renderSavePopup:B,renderWordSearch:x,hideControls:N,saveOnly:D,tableName:P,nameValue:H,onNameChange:M,descriptionValue:z,onDescriptionChange:j,namePlaceholder:S,descriptionPlaceholder:I,existingNames:W,editingName:Z,onCancel:U,initialItemsPerPage:q,renderCellAction:K,actionsLeftExtra:L}){const{t:E}=Ce.useTranslation(),F=w??E("wordPrint.clearAllSelection","\uBAA8\uB450 \uC120\uD0DD \uD574\uC81C"),R=m===void 0,O=!!M,[$,Y]=o.useState([]),Q=(H??"").trim(),X=Q||(S??"").trim(),ce=(z??"").trim()||(I??"").trim(),xe=(W??[]).map(Ne=>Ne.trim().toLowerCase()),te=[Z?.trim().toLowerCase(),...$].filter(Ne=>!!Ne),re=[...xe];for(const Ne of te){const ze=re.indexOf(Ne);ze!==-1&&re.splice(ze,1)}const V=Q!==""&&re.includes(Q.toLowerCase()),[ae,ue]=o.useState(Array(4).fill(null)),[ge,me]=o.useState(4),[oe,he]=o.useState(null),_e=ae.slice(0,ge),Le=!!c?.show,[Ue,Ie]=o.useState(!0),[de,Ae]=o.useState(!0),Re=c&&{...c,top:Ue,bottom:de},[Pe,we]=o.useState("landscape"),[Se,Oe]=o.useState(["\uC774\uBBF8\uC9C0","\uB2E8\uC5B4","\uD45C\uC900 \uBC1C\uC74C"]),[Be,nt]=o.useState("\uD45C\uC2DC"),[Ge,Xe]=o.useState(!0),[De,je]=o.useState(!0),ke=o.useRef(null),Me=o.useRef([]),[We,ht]=o.useState(q==="all"?Number.POSITIVE_INFINITY:q??8),[wt,Et]=o.useState("right"),[At,rt]=o.useState(!1),[Ye,at]=o.useState(!1),{toastMessage:ot,toastType:qe,showWarning:ut,clearToast:Ke}=ll("warning"),Ct=o.useCallback(()=>he(null),[he]);k&&!R&&!v&&bn("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[jt,kt]=o.useState(()=>Math.max(m?.length??1,1)),dt=R?ge:v?Math.max(jt,m?.length??1,1):Math.max(m?.length??0,1),{width:st,height:He}=ia[Pe],Qe=!R&&!v,pt=m?.length??0,Ot=Math.min(We,Math.max(pt,1)),Je=Qe?Ot:dt,Tt=Qe?mu(m??[],Je):null,Yt=!!Tt&&Tt.length>1,Mt=R?_e.some(Ne=>Ne!==null&&Ne.length>1):(m??[]).some(Ne=>(Ne.words??[]).length>1),ln=P?.trim()||`${ci(va())} ${Mt?E("wordTable.printFileNamePair","\uB300\uB9BD\uC30D\uD45C"):E("wordTable.printFileNameSingle","\uB2E8\uC5B4\uD45C")}`,un=o.useCallback(()=>Yt?Me.current.filter(Ne=>Ne!==null):ke.current?[ke.current]:[],[Yt]),{print:cn,openNewWindow:Rn,downloadHtml:dn}=Eo({getElements:un,paperW:st,paperH:He,fileName:ln,onPopupBlocked:()=>{ut(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."))}}),Pn=Ne=>{me(Ne),ue(ze=>ze.length>=Ne?ze:[...ze,...Array(Ne-ze.length).fill(null)]),he(null)},Nn=Ne=>{ue(ze=>{const vt=[...ze];return vt[Ne]=null,vt}),oe===Ne&&he(null)},Bt=Ne=>{if(oe===null)return;const ze=oe;ue(zt=>{const Vt=[...zt];return Vt[ze]=Ne.length>0?Ne:null,Vt});const vt=_e.findIndex((zt,Vt)=>Vt>ze&&zt===null);he(vt!==-1?vt:null)},mn=R?_e.some(Ne=>Ne?.some(ze=>!!ze.colloquialPronunciation)):(m??[]).some(Ne=>(Ne.words??[]).some(ze=>!!ze.colloquialLabel)),Ht=o.useMemo(()=>Xn()?R?ae.slice(0,ge).flatMap(Ne=>(Ne??[]).map(ze=>[ze.word,ze.homonum])):(m??[]).flatMap(Ne=>(Ne.words??[]).map(ze=>[ze.label,ze.homonum])):[],[R,ae,ge,m]),[Zt,hn]=o.useState(!1);o.useEffect(()=>{if(Ht.length===0)return;let Ne=!1;return Promise.all(Ht.map(([ze,vt])=>Js(ze,vt))).then(ze=>{Ne||hn(ze.some(Boolean))},()=>{}),()=>{Ne=!0}},[Ht]);const en=Ht.length>0&&Zt,Cn=o.useMemo(()=>[...R||v?[{label:E("wordTable.filter.columns","\uCE78 \uC218"),items:Gy.map(Ne=>({value:`${Ne}\uCE78`,displayLabel:E("wordTable.filter.column",{count:Ne})})),display:"segmented"}]:[],...Qe&&(m?.length??0)>0?[Su(E,{hasPairs:Mt,itemCount:pt})]:[],...Yt?[Ky(E)]:[]],[E,R,v,Qe,m?.length,Mt,pt,Yt]),In={...R||v?{[E("wordTable.filter.columns","\uCE78 \uC218")]:`${dt}\uCE78`}:{},...Qe&&(m?.length??0)>0?{[E(Mt?"wordTable.filter.itemsPerPagePair":"wordTable.filter.itemsPerPageWord")]:`${Ot}\uAC1C`}:{},...Yt?{[E("wordTable.filter.pageNumber","\uD398\uC774\uC9C0 \uBC88\uD638")]:Tu[wt]}:{}},fn=(Ne,ze)=>{ze===E("wordTable.filter.columns","\uCE78 \uC218")?R?Pn(parseInt(Ne)):kt(parseInt(Ne)):ze===E(Mt?"wordTable.filter.itemsPerPagePair":"wordTable.filter.itemsPerPageWord")?ht(ju(parseInt(Ne),pt)):ze===E("wordTable.filter.pageNumber","\uD398\uC774\uC9C0 \uBC88\uD638")&&Et(Mu(Ne))},ne=R?d7(_e.filter(Ne=>Ne!==null&&Ne.length>0).map(Ne=>({id:Xo(Ne),words:Ne.map(wc)}))):m??[],fe=()=>{R&&ue(Ne=>Ne.length>ge?Ne.slice(0,ge):Ne)},G=(Ne=!1)=>{if(at(Ne),O&&h){const ze=X.trim().toLowerCase();ze&&Y(vt=>vt.includes(ze)?vt:[...vt,ze]),h(X,ne,ce||void 0,Ne),fe();return}if(D&&h){h("",ne,void 0,Ne),fe();return}if(h){rt(!0);return}dn()},[se,ie]=o.useState(!1),[be,ye]=o.useState(""),Te=be.trim(),et=Te!==""&&xe.includes(Te.toLowerCase()),ft=()=>{ye(X?E("wordTable.save.copyName",{name:X,defaultValue:"{{name}} (\uBCF5\uC0AC)"}):""),ie(!0)},it=()=>{!Te||et||!h||(h(Te,ne,ce||void 0,!0),fe(),ie(!1))},yt=ne.length===0,Rt=yt||O&&(X===""||V),Lt=()=>{if(yt){ut(E("wordTable.emptyItems","\uB2E8\uC5B4\uB97C 1\uAC1C \uC774\uC0C1 \uCD94\uAC00\uD574\uC8FC\uC138\uC694."));return}if(O&&X===""){ut(E("wordTable.save.nameRequired","\uD45C \uC774\uB984\uC744 \uC785\uB825\uD574 \uC8FC\uC138\uC694."));return}O&&V&&ut(E("wordTable.save.duplicateName","\uC774\uBBF8 \uC0AC\uC6A9 \uC911\uC778 \uC774\uB984\uC785\uB2C8\uB2E4."))},nn=t.jsx(la,{items:ne,orientation:Pe,contentTypes:Se,cutLine:Be,showOutline:Ge,showDivLine:De,count:dt});return t.jsxs(t.Fragment,{children:[t.jsxs(sa,{type:"page",icon:n,title:e,disc:a,className:Ee("word-table-block",A),children:[se&&t.jsx(Tn,{size:"small",title:f??E("wordTable.saveAsNewButton","\uB2E4\uB978 \uC774\uB984\uC73C\uB85C \uC800\uC7A5"),onClose:()=>ie(!1),footer:({closeWithAnimation:Ne})=>t.jsxs(t.Fragment,{children:[t.jsx(le,{htmlType:"button",size:48,type:"bar",label:E("common.cancel","\uCDE8\uC18C"),onClick:Ne}),t.jsx(le,{htmlType:"button",size:48,type:"bar",variant:"main",label:E("common.save","\uC800\uC7A5"),disabled:!Te||et,onClick:it})]}),children:t.jsx(Un,{label:E("wordTable.save.nameLabel","\uC774\uB984"),value:be,onChange:ye,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:it,error:et?E("wordTable.save.duplicateName","\uC774\uBBF8 \uC0AC\uC6A9 \uC911\uC778 \uC774\uB984\uC785\uB2C8\uB2E4."):void 0})}),At&&h&&B?.({defaultName:typeof e=="string"?e:E("wordTable.defaultName","\uB2E8\uC5B4 \uD45C"),preview:nn,previewW:st,previewH:He,items:ne,existingNames:c7().map(Ne=>Ne.name),saveAsNew:Ye,onSave:(Ne,ze)=>{h(Ne,ne,ze,Ye),fe(),rt(!1)},onCancel:()=>rt(!1)}),(R||k)&&oe!==null&&x?.({cellIndex:oe,onConfirm:R?Bt:Ne=>{if(k){const ze=Ne[0];if(ze){const vt=new Set((m??[]).map(Vt=>Vt.id));let zt=Xo([ze]);for(let Vt=2;vt.has(zt);Vt++)zt=`${Xo([ze])}~${Vt}`;k({id:zt,words:[wc(ze)]})}}he(null)},onClose:Ct}),!N&&t.jsx(ko,{title:r,collapsible:s,defaultCollapsed:i,collapsed:l,onCollapsedChange:u,headerSummary:d,hasImage:en,hasColloquial:mn,contentTypes:Se,orientation:Pe,showOutline:Ge,cutLine:Be,showDivLine:De,setters:{setContentTypes:Oe,setOrientation:we,setShowOutline:Xe,setCutLine:nt,setShowDivLine:je,setShowTopInfo:Ie,setShowBottomInfo:Ae},showCutLine:(Qe?Je:dt)>1,showDivLine2:Mt,middleSections:Cn,extraSelected:In,onExtraSelect:fn,showPaperBands:Le,showTopInfo:Ue,showBottomInfo:de}),Yt&&Tt?t.jsx("div",{className:"word-table-block__pages",children:Tt.map((Ne,ze)=>t.jsx(la,{orientation:Pe,contentTypes:Se,cutLine:Be,showOutline:Ge,showDivLine:De,count:Je,items:Ne,onRemoveItem:y,onReorder:_&&((vt,zt)=>_(vt+ze*Je,zt+ze*Je)),renderCellAction:K&&((vt,zt)=>K(vt+ze*Je,zt)),brand:Re,code:p,contentRef:vt=>{Me.current[ze]=vt},pageNumber:{current:ze+1,total:Tt.length},pageNumberPosition:wt},ze))}):t.jsx(la,{orientation:Pe,contentTypes:Se,cutLine:Be,showOutline:Ge,showDivLine:De,count:dt,items:R?void 0:m??[],editCells:R?_e:void 0,activeCell:oe,onActivateCell:R||k?he:void 0,onRemoveCell:R?Nn:void 0,onRemoveItem:R?void 0:y,onReorder:R?void 0:_,renderCellAction:R?void 0:K,brand:Re,code:p,showFillerAdd:!!k,contentRef:ke}),O&&!N&&t.jsxs(cr,{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(Un,{required:!0,value:H??"",onChange:M,placeholder:S?S+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:V?E("wordTable.save.duplicateName","\uC774\uBBF8 \uC0AC\uC6A9 \uC911\uC778 \uC774\uB984\uC785\uB2C8\uB2E4."):void 0,onKeyDown:Ne=>{(Ne.key==="Tab"&&!Ne.shiftKey||Ne.key===" ")&&!(H??"").trim()&&(S??"").trim()&&(Ne.preventDefault(),M?.(S??""))}})}),t.jsx(Mn,{variant:"custom",label:E("wordTable.save.descriptionLabel","\uC124\uBA85"),align:"vertical",useFullWidth:!0,children:t.jsx(Un,{value:z??"",onChange:j,placeholder:I?I+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:Ne=>{(Ne.key==="Tab"&&!Ne.shiftKey||Ne.key===" ")&&!(z??"").trim()&&(I??"").trim()&&(Ne.preventDefault(),j?.(I??""))}})})]})]}),!N&&t.jsxs("div",{className:"word-table-block__actions",children:[t.jsxs("div",{className:"word-table-block__actions-left",children:[!D&&C&&t.jsx(le,{htmlType:"button",size:40,type:"bar",label:F,onClick:C}),!D&&L,!D&&g&&t.jsx(le,{htmlType:"button",size:40,type:"bar",label:E("wordTable.load","\uBD88\uB7EC\uC624\uAE30"),onClick:g}),!D&&t.jsx(le,{htmlType:"button",size:40,type:"bar",label:E("wordTable.openNewWindow","\uC0C8 \uCC3D\uC73C\uB85C \uBCF4\uAE30"),onClick:Rn})]}),t.jsxs("div",{className:"word-table-block__actions-right",children:[U&&t.jsx(le,{htmlType:"button",size:"56",type:"bar",label:E("common.cancel","\uCDE8\uC18C"),onClick:U}),!D&&t.jsx(le,{htmlType:"button",size:"56",type:"bar",label:E("wordTable.print","\uC778\uC1C4\uD558\uAE30"),onClick:cn}),f&&t.jsx(le,{htmlType:"button",size:"56",type:"bar",label:f,onClick:()=>O?ft():G(!0),disabled:yt,onDisabledClick:()=>{ut(E("wordTable.emptyItems","\uB2E8\uC5B4\uB97C 1\uAC1C \uC774\uC0C1 \uCD94\uAC00\uD574\uC8FC\uC138\uC694."))}}),t.jsx(le,{htmlType:"button",size:"56",type:"bar",variant:"main",label:b??E("wordTable.saveButton","\uC800\uC7A5\uD558\uAE30"),onClick:()=>G(!1),disabled:Rt,onDisabledClick:Lt})]})]}),t.jsx(ra,{message:ot,type:qe,onClose:Ke})]})}function Ac({items:e,className:n}){const a=e.length,r=a<=3?1:2,s=Math.ceil(a/r)||1,i=r*s;return t.jsx("div",{className:Ee("word-table-thumb",n),style:{gridTemplateColumns:`repeat(${r}, 1fr)`},children:Array.from({length:i},(l,u)=>{const d=e[u];return d?t.jsx("div",{className:"word-table-thumb__cell",children:(d.words?.length?d.words:[{label:d.id}]).map((c,p)=>t.jsxs(o.Fragment,{children:[p>0&&t.jsx("span",{className:"word-table-thumb__divider"}),t.jsx("span",{className:"word-table-thumb__word body-3",children:c.label})]},p))},u):t.jsx("div",{className:"word-table-thumb__cell word-table-thumb__cell--empty"},u)})})}function m7({items:e,name:n,description:a,createdAt:r,code:s,published:i,publishedLabel:l,shared:u,sharedLabel:d,isNew:c,publisherName:p,publishedAt:m,likeCount:h,downloadCount:g,onPublisherClick:y,selected:C,onClick:w,onMore:b,titleNode:f,className:_}){const{t:v}=Ce.useTranslation(),k=f!=null,A=p!=null||m!=null||h!=null||g!=null,B=x=>{x.target===x.currentTarget&&!k&&(x.key==="Enter"||x.key===" ")&&(x.preventDefault(),w?.())};return t.jsxs("div",{className:Ee("word-table-button",C?"word-table-button--selected":"",A?"":"word-table-button--no-footer",_),role:"button",tabIndex:0,"aria-label":s?`${n} (${s})`:n,onClick:k?void 0:w,onKeyDown:B,children:[c&&t.jsx("span",{className:"word-table-button__new-dot","aria-label":v("myWordTable.newBadge","\uC0C8\uB85C \uB9CC\uB4E0 \uD45C")}),t.jsx(Ac,{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:[f??t.jsx("div",{className:"word-table-button__title h4",children:n}),a&&t.jsx("div",{className:"word-table-button__desc body-3",children:a})]}),b&&!k&&t.jsx(le,{htmlType:"button",className:"word-table-button__more",size:32,type:"dot",variant:"transparent-gray",useBorder:!1,icon:"ellipsis",ariaLabel:v("common.moreFor",{name:n}),onClick:x=>{x.stopPropagation(),b(x)}})]}),(s||r||i||u)&&t.jsxs("div",{className:"word-table-button__meta-row",children:[t.jsx("span",{className:"word-table-button__meta-left",children:t.jsx("span",{className:"word-table-button__meta caption-1",children:r?ui(r,v):""})}),t.jsxs("span",{className:"word-table-button__meta-right",children:[(i||u)&&t.jsxs("span",{className:"word-table-button__badges",children:[i&&t.jsx(bt,{className:"word-table-button__badge",size:"small",variant:"main",fill:"soft",iconLeft:"book-marked",label:l??v("myWordTable.publishedBadge","\uBC1C\uD589\uB428")}),u&&t.jsx(bt,{className:"word-table-button__badge",size:"small",fill:"soft",iconLeft:"link",label:d??v("myWordTable.sharedBadge","\uACF5\uC720 \uC911")})]}),s&&t.jsx("span",{className:"word-table-button__code caption-1",children:s})]})]}),A&&t.jsxs("div",{className:"word-table-button__footer",children:[t.jsxs("span",{className:"word-table-button__store-by",children:[p&&t.jsx("button",{className:"training-card__publisher body-4",type:"button",onClick:x=>{x.stopPropagation(),y?.()},children:p}),m&&t.jsx("span",{className:"training-card__date body-4",children:ui(m,v)})]}),t.jsxs("span",{className:"word-table-button__store-stats",children:[h!=null&&t.jsx(bt,{size:"small",fill:"soft",variant:"like",iconLeft:"heart",label:String(h)}),g!=null&&t.jsx(bt,{size:"small",fill:"soft",variant:"main",iconLeft:"download",label:String(g)})]})]})]})}/**
|
|
1049
1049
|
* @license lucide-react v1.38.0 - ISC
|
|
1050
1050
|
*
|
|
1051
1051
|
* This source code is licensed under the ISC license.
|
|
@@ -1055,4 +1055,4 @@ ${v.badge}`:v.badge:void 0;if(A&&d(v.code))return null;if(!v.badge&&!p)return m(
|
|
|
1055
1055
|
*
|
|
1056
1056
|
* This source code is licensed under the ISC license.
|
|
1057
1057
|
* See the LICENSE file in the root directory of this source tree.
|
|
1058
|
-
*/const f7=[["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"}]],g7=ee("circle-x",f7);function b7(e){return{idle:0,"word-download":1,"image-list":2,"image-match":2,"pair-build":3,done:4}[e]??0}function Jo({icon:e,label:n,state:a,pct:r,subText:s}){const{t:i}=Ce.useTranslation(),l=a==="done",c=a==="pending",d=a==="error",u=l?100:r??0;return t.jsxs("div",{className:"wdup-phase-card",children:[t.jsx("div",{className:`wdup-phase-card__icon${l?" wdup-phase-card__icon--done":d?" wdup-phase-card__icon--error":""}`,children:l?t.jsx(ms,{size:22,color:"white",strokeWidth:2.5}):d?t.jsx(g7,{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(bt,{variant:"sub",fill:"soft",size:"small",label:i("common.done","\uC644\uB8CC")}):d?t.jsx(bt,{variant:"danger",fill:"soft",size:"small",label:i("common.failed","\uC2E4\uD328")}):(s||r!==void 0)&&t.jsxs("span",{className:"wdup-phase-card__sub body-3",children:[s,s&&r!==void 0?` \xB7 ${r}%`:r!==void 0?`${r}%`:""]})]}),!c&&t.jsx("div",{className:"wdup-bar",children:t.jsx("div",{className:`wdup-bar__fill${l?" wdup-bar__fill--done":d?" wdup-bar__fill--error":""}${a==="active"&&r===void 0?" wdup-bar__fill--indeterminate":""}`,style:{width:r!==void 0||l||d?`${d?100:u}%`:void 0}})})]})]})}function y7({title:e,progress:n,onDone:a,onRetry:r,onClose:s,inline:i}){const{t:l}=Ce.useTranslation(),{phase:c,error:d,wordCount:u,imagePage:p,imageDone:m,imageTotal:h,pairPercent:f}=n,y=b7(c),C=c==="done",w=!!d;function b(B){return w&&y===B?"error":y>B?"done":y===B?"active":"pending"}const g=b(1),_=b(2),v=b(3),k=c==="image-match"&&h?Math.round((m??0)/h*100):void 0,A=o.useMemo(()=>{if(_!=="done"){if(c==="image-list")return l("wordData.checkingPage",{page:p??1});if(c==="image-match"&&h)return l("wordData.imageCount",{done:Fr(m),total:Fr(h)})}},[_,c,p,h,m,l]);return t.jsx(Tn,{inline:i,className:"popup--word-data-update",title:e,footer:w&&r?t.jsx(ce,{htmlType:"button",size:56,variant:"main",onClick:r,children:l("common.retry","\uB2E4\uC2DC \uC2DC\uB3C4")}):w?t.jsx(ce,{htmlType:"button",size:56,variant:"main",onClick:s??a,children:l("common.close","\uB2EB\uAE30")}):t.jsx(ce,{htmlType:"button",size:56,variant:"main",disabled:!C,onClick:a,children:l("common.done","\uC644\uB8CC")}),children:t.jsxs("div",{className:"wdup-cards",children:[t.jsx(Jo,{icon:t.jsx(ls,{size:22,color:"var(--color-main, #29b6c8)",strokeWidth:1.8}),label:l("wordData.phaseWordDownload","\uB2E8\uC5B4 \uB370\uC774\uD130 \uB2E4\uC6B4\uB85C\uB4DC"),state:g,subText:g==="active"?l("wordData.downloadingCount",{n:Fr(u)}):void 0}),t.jsx(Jo,{icon:t.jsx(C7,{size:22,color:"var(--color-main, #29b6c8)",strokeWidth:1.8}),label:l("wordData.phaseImageCheck","\uC774\uBBF8\uC9C0 \uD655\uC778"),state:_,pct:k,subText:A}),t.jsx(Jo,{icon:t.jsx(ds,{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 v7({enabled:e=!1,renderResultPopup:n}={}){const{t:a}=Ce.useTranslation(),[r,s]=o.useState(null),[i,l]=o.useState(null),c=f=>{let y=null;f==="noise"?y={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"?y={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"?y={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"&&(y={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(y),s(f)},d=o.useCallback(()=>{s(null),l(null)},[]),u=o.useCallback(()=>c("noise"),[]),p=o.useCallback(()=>c("short"),[]),m=o.useCallback(()=>c("long"),[]),h=o.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:u,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:m,children:a("debug.showResult",{type:"LongStory",defaultValue:"{{type}} \uACB0\uACFC\uBCF4\uAE30"})}),t.jsx("button",{type:"button",className:"debug-button",onClick:h,children:a("debug.showResult",{type:"Order",defaultValue:"{{type}} \uACB0\uACFC\uBCF4\uAE30"})})]}),r&&i?n?.({score:i.score,contextsLength:i.contextsLength,results:i.results,onReplay:d,onClose:d}):null]}):null}exports.Accordion=pb,exports.ActionCard=QC,exports.Alert=a4,exports.AppHeader=bb,exports.AudioMeter=fo,exports.AudioPlayer=Po,exports.Avatar=u4,exports.Badge=bt,exports.BarChart=ey,exports.BarChartControls=Gl,exports.Board=E4,exports.BottomNav=dl,exports.BrandIdentity=fl,exports.Breadcrumb=m4,exports.BulkBar=H4,exports.Button=ce,exports.CORE_VERSION=GC,exports.Calendar=_y,exports.CardStep=hu,exports.ChartLegend=co,exports.ChartSection=uo,exports.ChartTotal=Ma,exports.Checkbox=Hl,exports.ChoiceChips=N5,exports.CircleBadge=Qb,exports.CodeBox=F4,exports.ColorPicker=b4,exports.CompanyMeta=L4,exports.ConfirmPopup=vu,exports.ConfirmStep=du,exports.ConfirmWithTextStep=pu,exports.ContrastFilterPanel=H3,exports.CoreScope=e2,exports.CountTile=A4,exports.CouponInputPopup=W3,exports.DEFAULT_NOISE_SETTINGS=Pa,exports.DatePicker=G4,exports.DebugResultLauncher=v7,exports.DescriptionTooltip=Vn,exports.DeviceSideTable=yy,exports.Dialog=N4,exports.Divider=e4,exports.Dropdown=sn,exports.EffectPartyPopper=Yo,exports.EffectPartyPopperHost=G3,exports.EmptyState=XC,exports.ErrorState=JC,exports.FILTER_ALL_VALUE=on,exports.FileUpload=p4,exports.FilterPanel=Bn,exports.FilterSectionInfo=Da,exports.Footer=E5,exports.GameIntro=ay,exports.Header=gl,exports.Icon=Ze,exports.IconGridMenu=B5,exports.IconRenderer=Ze,exports.InfoTooltip=vn,exports.ItemActions=V4,exports.LEVEL_MAX=ua,exports.LINE_CHART_HOVER_DELAY_MS=Kl,exports.LandingBottomSticky=S5,exports.LandingHeader=D5,exports.LineChart=ny,exports.ListPopup=z3,exports.ListenStep=uu,exports.Loader=Ta,exports.MARKS=or,exports.MARK_ICON=uc,exports.MARK_VARIANT=dc,exports.MediaQueryOverrideContext=yi,exports.MenuTooltip=Ba,exports.NOISE_RATIO_MAX=La,exports.NOISE_RATIO_STEP=Hc,exports.NoisePlayerContext=Mo,exports.NoiseSettingsTooltip=au,exports.NoticeBox=t2,exports.OrderListStep=mu,exports.PASS_CARD_BG_VARS=qn,exports.POS_LABEL=hc,exports.PROMO_BANNER_BG_COMPONENTS=Qi,exports.PROMO_BANNER_BG_OPTIONS=Vg,exports.PROMO_BANNER_BG_VARS=_a,exports.Page=dr,exports.PageTitle=K3,exports.Pagination=Qa,exports.Panel=ur,exports.PanelGrid=c3,exports.PanelRow=Mn,exports.PanelRowDevice=l3,exports.PassCard=Nl,exports.PassCardBg=Yb,exports.PassCardBgIHAB=Zb,exports.PassCardBgLeftColorGrid=Xb,exports.PassCardBgTwoCircle=_l,exports.PaymentPlan=Kb,exports.PersonCard=D4,exports.PhonemeFilterPanel=O3,exports.PhonemeSelectBlock=I3,exports.Popup=Tn,exports.ProgressBar=uy,exports.ProgressIndicator=ac,exports.PromoBanner=cb,exports.PromoBannerBgDark=Ii,exports.PromoBannerBgDeep=Ti,exports.PromoBannerBgDiagonal=zi,exports.PromoBannerBgDots=Wi,exports.PromoBannerBgInstagram=Ji,exports.PromoBannerBgMain=Bi,exports.PromoBannerBgNaver=Zi,exports.PromoBannerBgOutline=Ui,exports.PromoBannerBgRadial=Oi,exports.PromoBannerBgSoft=Ei,exports.PromoBannerBgSoftSub=Li,exports.PromoBannerBgSub=Si,exports.PromoBannerBgSuccess=Ki,exports.PromoBannerBgWarm=Ri,exports.PublicationCard=j4,exports.Radio=jl,exports.RadioGroup=t4,exports.Rating=C4,exports.ReportDocument=e7,exports.ReportInfoPanel=t7,exports.RingChart=oy,exports.SENTENCE_TRAINING_TYPES=Do,exports.SearchSummary=s4,exports.Section=sa,exports.SectionHeadFloat=Vl,exports.SectionHeader=M4,exports.SegmentedControl=An,exports.ShortcutBadge=Sl,exports.SideNav=Cl,exports.Slider=Ql,exports.SoundCompass=Jb,exports.SplashLogo=T4,exports.StatChart=sy,exports.SummaryStrip=J3,exports.TRAINING_TOOLTIP_HOVER_DELAY_MS=Ml,exports.Table=bo,exports.TableFilterPanel=ko,exports.Tabs=i4,exports.TextBoxTooltip=cr,exports.TextField=Un,exports.Timeline=S4,exports.Toast=ra,exports.Toggle=Ol,exports.Toolbar=lo,exports.Tooltip=rn,exports.TooltipInfo=vn,exports.TooltipTextBox=cr,exports.TopBanner=ub,exports.TrainingBlock=Ay,exports.TrainingBlockButton=oo,exports.TrainingCard=s7,exports.TrainingCardGroup=i7,exports.TrainingPagePopup=$n,exports.TrainingPagePopupBottom=ru,exports.TrainingPagePopupTitle=ou,exports.TrainingResultPopup=fu,exports.TrainingStep=Gn,exports.TrainingStepAudioPlayer=Po,exports.TrainingStepBullet=Yc,exports.TrainingStepCard=Qc,exports.TrainingStepConfirm=Fo,exports.TrainingStepConfirmWithText=Oo,exports.TrainingStepListen=Ho,exports.TrainingStepOrderList=zo,exports.TrainingStepTextBox=Jc,exports.TrainingStepTitle=Xc,exports.TrainingTooltip=Ll,exports.TrainingWordCard=_o,exports.UpdateAlert=o7,exports.WAVE_A_MAX=H5,exports.WAVE_H1_PX=Uc,exports.WAVE_HMAX_PX=O5,exports.WORD_TABLE_PAPER=ia,exports.WORD_TYPE_LABEL=Cc,exports.WordDataProvider=X3,exports.WordDataUpdatePopup=y7,exports.WordImageTooltip=yu,exports.WordSearchFilterPanel=F3,exports.WordSearchResultBlock=R3,exports.WordTable=la,exports.WordTableBlock=p7,exports.WordTableButton=m7,exports.WordTablePopup=Jy,exports.WordTableThumbnail=Au,exports.buildMonthChartData=Y4,exports.cellKey=s5,exports.cellLabel=o5,exports.cellsForLabels=b5,exports.clearPassCardBgTheme=wn,exports.clearPromoBannerBgTheme=Ft,exports.closeTrainingPopup=h3,exports.companyTypeLabel=Y3,exports.createTrainingScenario=g3,exports.cx=Ee,exports.deriveNoiseContexts=w3,exports.derivePassCard=yl,exports.draftValues=A5,exports.effectiveNoiseVolume=jo,exports.effectiveSpeechVolume=Vc,exports.expandSlashLabel=Ao,exports.formatDuration=y5,exports.getControlDateRange=ry,exports.getPayloadTimestamp=qo,exports.getPromoBannerBgTheme=Yr,exports.getSelectedFromPayload=y3,exports.getSelectedText=v3,exports.getStepPayload=lu,exports.getSteppedPayload=x3,exports.injectPassCardBgTheme=_n,exports.injectPromoBannerBgTheme=It,exports.isSelectionCorrect=_3,exports.labelOfCellKey=Fc,exports.labelsForSave=r5,exports.levelToPct=j5,exports.markAfterClick=cc,exports.marksForSave=wo,exports.mergeNoiseSettings=Ra,exports.missesByType=h5,exports.nextFocus=u5,exports.nextMisses=m5,exports.noiseElementVolume=To,exports.noiseRatioOf=$a,exports.pageStartIndexes=pc,exports.passCardBgIhabTheme=El,exports.passCardBgLeftColorGridTheme=Dl,exports.passCardBgTwoCircleTheme=xl,exports.pctToLevel=T5,exports.printWordTable=Sy,exports.promoBannerBgDarkTheme=Pi,exports.promoBannerBgDeepTheme=ji,exports.promoBannerBgDiagonalTheme=Hi,exports.promoBannerBgDotsTheme=Vi,exports.promoBannerBgInstagramTheme=Xi,exports.promoBannerBgMainTheme=ki,exports.promoBannerBgNaverTheme=Yi,exports.promoBannerBgOutlineTheme=qi,exports.promoBannerBgRadialTheme=Fi,exports.promoBannerBgSoftSubTheme=Mi,exports.promoBannerBgSoftTheme=Ni,exports.promoBannerBgSubTheme=Di,exports.promoBannerBgSuccessTheme=Gi,exports.promoBannerBgWarmTheme=$i,exports.recommendTables=f5,exports.regenerateUnpinned=w5,exports.removeItem=_5,exports.resolveTrainingItems=f3,exports.resolveTrainingPopupMeta=iu,exports.reviewCells=e5,exports.reviewMeta=a5,exports.reviewSetPlan=C5,exports.reviewTableName=n5,exports.scoreKey=rr,exports.scoreSheetHeader=i5,exports.shouldConfirmDiscard=Dy,exports.splitTrainingVariants=C3,exports.summarize=Ey,exports.summarizeMisses=p5,exports.tableTrends=c5,exports.toDraft=v5,exports.toTrainingText=b3,exports.togglePin=x5,exports.uncoveredLabels=g5,exports.useAnchoredMenu=ka,exports.useBarChartControl=Ul,exports.useCalendarMonth=zl,exports.useComboboxSuggestions=Il,exports.useDiscardGuard=V3,exports.useFitScale=gc,exports.useNoisePlayer=ir,exports.useSoundCompassExam=lb,exports.useToastLifecycle=tc,exports.useWordData=Z3,exports.useWordTableDisplaySettings=Pc,exports.useWordTablePrint=Eo,exports.waveBarPx=Ia,exports.waveBarVal=$o,exports.weakItems=l5;
|
|
1058
|
+
*/const f7=[["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"}]],g7=ee("circle-x",f7);function b7(e){return{idle:0,"word-download":1,"image-list":2,"image-match":2,"pair-build":3,done:4}[e]??0}function Jo({icon:e,label:n,state:a,pct:r,subText:s}){const{t:i}=Ce.useTranslation(),l=a==="done",u=a==="pending",d=a==="error",c=l?100:r??0;return t.jsxs("div",{className:"wdup-phase-card",children:[t.jsx("div",{className:`wdup-phase-card__icon${l?" wdup-phase-card__icon--done":d?" wdup-phase-card__icon--error":""}`,children:l?t.jsx(ms,{size:22,color:"white",strokeWidth:2.5}):d?t.jsx(g7,{size:22,color:"white",strokeWidth:2.5}):t.jsx("span",{className:`wdup-phase-card__icon-inner${u?" 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${u?" wdup-phase-card__label--pending":""}`,children:n}),l?t.jsx(bt,{variant:"sub",fill:"soft",size:"small",label:i("common.done","\uC644\uB8CC")}):d?t.jsx(bt,{variant:"danger",fill:"soft",size:"small",label:i("common.failed","\uC2E4\uD328")}):(s||r!==void 0)&&t.jsxs("span",{className:"wdup-phase-card__sub body-3",children:[s,s&&r!==void 0?` \xB7 ${r}%`:r!==void 0?`${r}%`:""]})]}),!u&&t.jsx("div",{className:"wdup-bar",children:t.jsx("div",{className:`wdup-bar__fill${l?" wdup-bar__fill--done":d?" wdup-bar__fill--error":""}${a==="active"&&r===void 0?" wdup-bar__fill--indeterminate":""}`,style:{width:r!==void 0||l||d?`${d?100:c}%`:void 0}})})]})]})}function y7({title:e,progress:n,onDone:a,onRetry:r,onClose:s,inline:i}){const{t:l}=Ce.useTranslation(),{phase:u,error:d,wordCount:c,imagePage:p,imageDone:m,imageTotal:h,pairPercent:g}=n,y=b7(u),C=u==="done",w=!!d;function b(B){return w&&y===B?"error":y>B?"done":y===B?"active":"pending"}const f=b(1),_=b(2),v=b(3),k=u==="image-match"&&h?Math.round((m??0)/h*100):void 0,A=o.useMemo(()=>{if(_!=="done"){if(u==="image-list")return l("wordData.checkingPage",{page:p??1});if(u==="image-match"&&h)return l("wordData.imageCount",{done:Fr(m),total:Fr(h)})}},[_,u,p,h,m,l]);return t.jsx(Tn,{inline:i,className:"popup--word-data-update",title:e,footer:w&&r?t.jsx(le,{htmlType:"button",size:56,variant:"main",onClick:r,children:l("common.retry","\uB2E4\uC2DC \uC2DC\uB3C4")}):w?t.jsx(le,{htmlType:"button",size:56,variant:"main",onClick:s??a,children:l("common.close","\uB2EB\uAE30")}):t.jsx(le,{htmlType:"button",size:56,variant:"main",disabled:!C,onClick:a,children:l("common.done","\uC644\uB8CC")}),children:t.jsxs("div",{className:"wdup-cards",children:[t.jsx(Jo,{icon:t.jsx(ls,{size:22,color:"var(--color-main, #29b6c8)",strokeWidth:1.8}),label:l("wordData.phaseWordDownload","\uB2E8\uC5B4 \uB370\uC774\uD130 \uB2E4\uC6B4\uB85C\uB4DC"),state:f,subText:f==="active"?l("wordData.downloadingCount",{n:Fr(c)}):void 0}),t.jsx(Jo,{icon:t.jsx(C7,{size:22,color:"var(--color-main, #29b6c8)",strokeWidth:1.8}),label:l("wordData.phaseImageCheck","\uC774\uBBF8\uC9C0 \uD655\uC778"),state:_,pct:k,subText:A}),t.jsx(Jo,{icon:t.jsx(ds,{size:22,color:"var(--color-main, #29b6c8)",strokeWidth:1.8}),label:l("wordData.phasePairAnalysis","\uB2E8\uC5B4\uC30D \uBD84\uC11D"),state:v,pct:v==="active"?g??0:void 0,subText:void 0})]})})}function v7({enabled:e=!1,renderResultPopup:n}={}){const{t:a}=Ce.useTranslation(),[r,s]=o.useState(null),[i,l]=o.useState(null),u=g=>{let y=null;g==="noise"?y={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}]}:g==="short"?y={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}]}:g==="long"?y={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}]}:g==="order"&&(y={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(y),s(g)},d=o.useCallback(()=>{s(null),l(null)},[]),c=o.useCallback(()=>u("noise"),[]),p=o.useCallback(()=>u("short"),[]),m=o.useCallback(()=>u("long"),[]),h=o.useCallback(()=>u("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:c,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:m,children:a("debug.showResult",{type:"LongStory",defaultValue:"{{type}} \uACB0\uACFC\uBCF4\uAE30"})}),t.jsx("button",{type:"button",className:"debug-button",onClick:h,children:a("debug.showResult",{type:"Order",defaultValue:"{{type}} \uACB0\uACFC\uBCF4\uAE30"})})]}),r&&i?n?.({score:i.score,contextsLength:i.contextsLength,results:i.results,onReplay:d,onClose:d}):null]}):null}exports.Accordion=pb,exports.ActionCard=QC,exports.Alert=a4,exports.AppHeader=bb,exports.AudioMeter=fo,exports.AudioPlayer=Po,exports.Avatar=c4,exports.Badge=bt,exports.BarChart=ey,exports.BarChartControls=Gl,exports.Board=E4,exports.BottomNav=dl,exports.BrandIdentity=fl,exports.Breadcrumb=m4,exports.BulkBar=H4,exports.Button=le,exports.CORE_VERSION=GC,exports.Calendar=_y,exports.CardStep=hc,exports.ChartLegend=uo,exports.ChartSection=co,exports.ChartTotal=Ma,exports.Checkbox=Hl,exports.ChoiceChips=N5,exports.CircleBadge=Qb,exports.CodeBox=F4,exports.ColorPicker=b4,exports.CompanyMeta=L4,exports.ConfirmPopup=vc,exports.ConfirmStep=dc,exports.ConfirmWithTextStep=pc,exports.ContrastFilterPanel=H3,exports.CoreScope=e2,exports.CountTile=A4,exports.CouponInputPopup=W3,exports.DEFAULT_NOISE_SETTINGS=Pa,exports.DatePicker=G4,exports.DebugResultLauncher=v7,exports.DescriptionTooltip=Vn,exports.DeviceSideTable=yy,exports.Dialog=N4,exports.Divider=e4,exports.Dropdown=sn,exports.EffectPartyPopper=Yo,exports.EffectPartyPopperHost=G3,exports.EmptyState=XC,exports.ErrorState=JC,exports.FILTER_ALL_VALUE=on,exports.FileUpload=p4,exports.FilterPanel=Bn,exports.FilterSectionInfo=Da,exports.Footer=E5,exports.GameIntro=ay,exports.Header=gl,exports.Icon=Ze,exports.IconGridMenu=B5,exports.IconRenderer=Ze,exports.InfoTooltip=vn,exports.ItemActions=V4,exports.LEVEL_MAX=ca,exports.LINE_CHART_HOVER_DELAY_MS=Kl,exports.LandingBottomSticky=S5,exports.LandingHeader=D5,exports.LineChart=ny,exports.ListPopup=z3,exports.ListenStep=cc,exports.Loader=Ta,exports.MARKS=or,exports.MARK_ICON=cu,exports.MARK_VARIANT=du,exports.MediaQueryOverrideContext=yi,exports.MenuTooltip=Ba,exports.NOISE_RATIO_MAX=La,exports.NOISE_RATIO_STEP=Hu,exports.NoisePlayerContext=Mo,exports.NoiseSettingsTooltip=ac,exports.NoticeBox=t2,exports.OrderListStep=mc,exports.PASS_CARD_BG_VARS=qn,exports.POS_LABEL=hu,exports.PROMO_BANNER_BG_COMPONENTS=Qi,exports.PROMO_BANNER_BG_OPTIONS=Vg,exports.PROMO_BANNER_BG_VARS=_a,exports.Page=dr,exports.PageTitle=K3,exports.Pagination=Qa,exports.Panel=cr,exports.PanelGrid=u3,exports.PanelRow=Mn,exports.PanelRowDevice=l3,exports.PassCard=Nl,exports.PassCardBg=Yb,exports.PassCardBgIHAB=Zb,exports.PassCardBgLeftColorGrid=Xb,exports.PassCardBgTwoCircle=_l,exports.PaymentPlan=Kb,exports.PersonCard=D4,exports.PhonemeFilterPanel=O3,exports.PhonemeSelectBlock=I3,exports.Popup=Tn,exports.ProgressBar=cy,exports.ProgressIndicator=au,exports.PromoBanner=ub,exports.PromoBannerBgDark=Ii,exports.PromoBannerBgDeep=Ti,exports.PromoBannerBgDiagonal=zi,exports.PromoBannerBgDots=Wi,exports.PromoBannerBgInstagram=Ji,exports.PromoBannerBgMain=Bi,exports.PromoBannerBgNaver=Zi,exports.PromoBannerBgOutline=Ui,exports.PromoBannerBgRadial=Oi,exports.PromoBannerBgSoft=Ei,exports.PromoBannerBgSoftSub=Li,exports.PromoBannerBgSub=Si,exports.PromoBannerBgSuccess=Ki,exports.PromoBannerBgWarm=Ri,exports.PublicationCard=j4,exports.Radio=jl,exports.RadioGroup=t4,exports.Rating=C4,exports.ReportDocument=e7,exports.ReportInfoPanel=t7,exports.RingChart=oy,exports.SENTENCE_TRAINING_TYPES=Do,exports.SearchSummary=s4,exports.Section=sa,exports.SectionHeadFloat=Vl,exports.SectionHeader=M4,exports.SegmentedControl=An,exports.ShortcutBadge=Sl,exports.SideNav=Cl,exports.Slider=Ql,exports.SoundCompass=Jb,exports.SplashLogo=T4,exports.StatChart=sy,exports.SummaryStrip=J3,exports.TRAINING_TOOLTIP_HOVER_DELAY_MS=Ml,exports.Table=bo,exports.TableFilterPanel=ko,exports.Tabs=i4,exports.TextBoxTooltip=ur,exports.TextField=Un,exports.Timeline=S4,exports.Toast=ra,exports.Toggle=Ol,exports.Toolbar=lo,exports.Tooltip=rn,exports.TooltipInfo=vn,exports.TooltipTextBox=ur,exports.TopBanner=cb,exports.TrainingBlock=Ay,exports.TrainingBlockButton=oo,exports.TrainingCard=s7,exports.TrainingCardGroup=i7,exports.TrainingPagePopup=$n,exports.TrainingPagePopupBottom=rc,exports.TrainingPagePopupTitle=oc,exports.TrainingResultPopup=fc,exports.TrainingStep=Gn,exports.TrainingStepAudioPlayer=Po,exports.TrainingStepBullet=Yu,exports.TrainingStepCard=Qu,exports.TrainingStepConfirm=Fo,exports.TrainingStepConfirmWithText=Oo,exports.TrainingStepListen=Ho,exports.TrainingStepOrderList=zo,exports.TrainingStepTextBox=Ju,exports.TrainingStepTitle=Xu,exports.TrainingTooltip=Ll,exports.TrainingWordCard=_o,exports.UpdateAlert=o7,exports.WAVE_A_MAX=H5,exports.WAVE_H1_PX=Uu,exports.WAVE_HMAX_PX=O5,exports.WORD_TABLE_PAPER=ia,exports.WORD_TYPE_LABEL=Cu,exports.WordDataProvider=X3,exports.WordDataUpdatePopup=y7,exports.WordImageTooltip=yc,exports.WordSearchFilterPanel=F3,exports.WordSearchResultBlock=R3,exports.WordTable=la,exports.WordTableBlock=p7,exports.WordTableButton=m7,exports.WordTablePopup=Jy,exports.WordTableThumbnail=Ac,exports.buildMonthChartData=Y4,exports.cellKey=s5,exports.cellLabel=o5,exports.cellsForLabels=b5,exports.clearPassCardBgTheme=wn,exports.clearPromoBannerBgTheme=Ft,exports.closeTrainingPopup=h3,exports.companyTypeLabel=Y3,exports.createTrainingScenario=g3,exports.cx=Ee,exports.deriveNoiseContexts=w3,exports.derivePassCard=yl,exports.draftValues=A5,exports.effectiveNoiseVolume=jo,exports.effectiveSpeechVolume=Vu,exports.expandSlashLabel=Ao,exports.formatDuration=y5,exports.getControlDateRange=ry,exports.getPayloadTimestamp=qo,exports.getPromoBannerBgTheme=Yr,exports.getSelectedFromPayload=y3,exports.getSelectedText=v3,exports.getStepPayload=lc,exports.getSteppedPayload=x3,exports.injectPassCardBgTheme=_n,exports.injectPromoBannerBgTheme=It,exports.isSelectionCorrect=_3,exports.labelOfCellKey=Fu,exports.labelsForSave=r5,exports.levelToPct=j5,exports.markAfterClick=uu,exports.marksForSave=wo,exports.mergeNoiseSettings=Ra,exports.missesByType=h5,exports.nextFocus=c5,exports.nextMisses=m5,exports.noiseElementVolume=To,exports.noiseRatioOf=$a,exports.pageStartIndexes=pu,exports.passCardBgIhabTheme=El,exports.passCardBgLeftColorGridTheme=Dl,exports.passCardBgTwoCircleTheme=xl,exports.pctToLevel=T5,exports.printWordTable=Sy,exports.promoBannerBgDarkTheme=Pi,exports.promoBannerBgDeepTheme=ji,exports.promoBannerBgDiagonalTheme=Hi,exports.promoBannerBgDotsTheme=Vi,exports.promoBannerBgInstagramTheme=Xi,exports.promoBannerBgMainTheme=ki,exports.promoBannerBgNaverTheme=Yi,exports.promoBannerBgOutlineTheme=qi,exports.promoBannerBgRadialTheme=Fi,exports.promoBannerBgSoftSubTheme=Mi,exports.promoBannerBgSoftTheme=Ni,exports.promoBannerBgSubTheme=Di,exports.promoBannerBgSuccessTheme=Gi,exports.promoBannerBgWarmTheme=$i,exports.recommendTables=f5,exports.regenerateUnpinned=w5,exports.removeItem=_5,exports.resolveTrainingItems=f3,exports.resolveTrainingPopupMeta=ic,exports.reviewCells=e5,exports.reviewMeta=a5,exports.reviewSetPlan=C5,exports.reviewTableName=n5,exports.scoreKey=rr,exports.scoreSheetHeader=i5,exports.shouldConfirmDiscard=Dy,exports.splitTrainingVariants=C3,exports.summarize=Ey,exports.summarizeMisses=p5,exports.tableTrends=u5,exports.toDraft=v5,exports.toTrainingText=b3,exports.togglePin=x5,exports.uncoveredLabels=g5,exports.useAnchoredMenu=ka,exports.useBarChartControl=Ul,exports.useCalendarMonth=zl,exports.useComboboxSuggestions=Il,exports.useDiscardGuard=V3,exports.useFitScale=gu,exports.useNoisePlayer=ir,exports.useSoundCompassExam=lb,exports.useToastLifecycle=tu,exports.useWordData=Z3,exports.useWordTableDisplaySettings=Pu,exports.useWordTablePrint=Eo,exports.waveBarPx=Ia,exports.waveBarVal=$o,exports.weakItems=l5;
|