@ihabdevteam/core 0.145.0 → 0.147.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.
Files changed (47) hide show
  1. package/CHANGELOG.md +67 -0
  2. package/dist/components.cjs.js +174 -174
  3. package/dist/hooks.cjs.js +1 -1
  4. package/dist/i18n.cjs.js +1 -1
  5. package/dist/ihabdevteam-core.cjs.js +182 -182
  6. package/dist/ihabdevteam-core.d.ts +24 -13
  7. package/dist/packages/core/src/components/ActionCard.js +10 -2
  8. package/dist/packages/core/src/components/Dropdown.js +2 -2
  9. package/dist/packages/core/src/components/LandingHeader.js +12 -5
  10. package/dist/packages/core/src/components/Popup/ConfirmPopup.d.ts +3 -1
  11. package/dist/packages/core/src/components/Popup/ConfirmPopup.js +17 -4
  12. package/dist/packages/core/src/components/Popup/ListPopup.js +1 -0
  13. package/dist/packages/core/src/components/Popup/Popup.d.ts +5 -4
  14. package/dist/packages/core/src/components/Popup/Popup.js +5 -1
  15. package/dist/packages/core/src/components/Report/ReportDocument.d.ts +3 -2
  16. package/dist/packages/core/src/components/Report/ReportDocument.js +5 -3
  17. package/dist/packages/core/src/components/Section.js +2 -1
  18. package/dist/packages/core/src/components/Table.js +18 -8
  19. package/dist/packages/core/src/components/Training/TrainingPagePopup.js +2 -0
  20. package/dist/packages/core/src/components/Training/TrainingStepCardOrder.js +11 -1
  21. package/dist/packages/core/src/components/Training/WordTablePopup.js +5 -5
  22. package/dist/packages/core/src/components/Training/useNoiseFade.js +25 -7
  23. package/dist/packages/core/src/components/Word/useWordTablePrint.d.ts +2 -1
  24. package/dist/packages/core/src/components/Word/wordTablePrint.js +8 -1
  25. package/dist/packages/core/src/hooks/useDailyTrainingSelection.js +35 -7
  26. package/dist/packages/core/src/hooks/useTablePaging.js +4 -3
  27. package/dist/packages/core/src/hooks/useTrainingSessionLog.d.ts +5 -2
  28. package/dist/packages/core/src/hooks/useTrainingSessionLog.js +45 -8
  29. package/dist/packages/core/src/hooks/useWordMeanings.js +13 -2
  30. package/dist/packages/core/src/utils/getTrainingData.d.ts +5 -1
  31. package/dist/packages/core/src/utils/getTrainingData.js +20 -4
  32. package/dist/packages/core/src/utils/planFeatures.d.ts +1 -1
  33. package/dist/packages/core/src/utils/planFeatures.js +7 -1
  34. package/dist/packages/core/src/utils/textSort.d.ts +4 -4
  35. package/dist/packages/core/src/utils/textSort.js +58 -28
  36. package/dist/packages/core/src/utils/trainingItemResults.js +3 -1
  37. package/dist/packages/core/src/utils/wordTrainingGenerators.d.ts +4 -2
  38. package/dist/packages/core/src/utils/wordTrainingGenerators.js +7 -4
  39. package/dist/packages/core/src/utils/wordTrainingPool.d.ts +1 -0
  40. package/dist/packages/core/src/utils/wordTrainingPool.js +20 -6
  41. package/dist/packages/core/src/utils/wordTrainingRuntime.d.ts +2 -1
  42. package/dist/packages/core/src/utils/wordTrainingRuntime.js +39 -15
  43. package/dist/packages/core/src/utils/wordTrainingRuntimeTypes.js +4 -3
  44. package/dist/packages/core/src/version.d.ts +1 -1
  45. package/dist/packages/core/src/version.js +1 -1
  46. package/dist/utils.cjs.js +2 -2
  47. package/package.json +1 -1
@@ -1,149 +1,149 @@
1
- "use strict";var t=require("react/jsx-runtime"),s=require("react"),Lt=require("i18next"),pe=require("react-i18next"),qt=require("react-dom"),pn=typeof document<"u"?document.currentScript:null;function Mc(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 wo=Mc(s);function ge(...e){return e.filter(Boolean).join(" ")}const ko=new Set,Ao=(()=>{try{const e=globalThis;return e.process!=null&&e.process.env?.NODE_ENV!=="production"}catch{return!1}})();function ea(e,...n){!Ao||ko.has(e)||(ko.add(e),console.warn(...n))}/**
1
+ "use strict";var t=require("react/jsx-runtime"),s=require("react"),Lt=require("i18next"),pe=require("react-i18next"),Ut=require("react-dom"),pn=typeof document<"u"?document.currentScript:null;function Lc(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 ko=Lc(s);function ge(...e){return e.filter(Boolean).join(" ")}const Ao=new Set,No=(()=>{try{const e=globalThis;return e.process!=null&&e.process.env?.NODE_ENV!=="production"}catch{return!1}})();function ea(e,...n){!No||Ao.has(e)||(Ao.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.
5
5
  * See the LICENSE file in the root directory of this source tree.
6
- */const No=(...e)=>e.filter((n,a,r)=>!!n&&n.trim()!==""&&r.indexOf(n)===a).join(" ").trim();/**
6
+ */const Bo=(...e)=>e.filter((n,a,r)=>!!n&&n.trim()!==""&&r.indexOf(n)===a).join(" ").trim();/**
7
7
  * @license lucide-react v1.38.0 - ISC
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 Lc=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();/**
11
+ */const $c=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 $c=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(n,a,r)=>r?r.toUpperCase():a.toLowerCase());/**
16
+ */const Rc=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 Bo=e=>{const n=$c(e);return n.charAt(0).toUpperCase()+n.slice(1)};/**
21
+ */const Do=e=>{const n=Rc(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.
25
25
  * See the LICENSE file in the root directory of this source tree.
26
- */var Qa={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
26
+ */var er={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
27
27
  * @license lucide-react v1.38.0 - ISC
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 Rc=e=>{for(const n in e)if(n.startsWith("aria-")||n==="role"||n==="title")return!0;return!1},Pc=s.createContext({}),Ic=()=>s.useContext(Pc),Fc=s.forwardRef(({color:e,size:n,strokeWidth:a,absoluteStrokeWidth:r,className:o="",children:i,iconNode:l,...c},u)=>{const{size:d=24,strokeWidth:p=2,absoluteStrokeWidth:m=!1,color:h="currentColor",className:C=""}=Ic()??{},y=r??m?Number(a??p)*24/Number(n??d):a??p;return s.createElement("svg",{ref:u,...Qa,width:n??d??Qa.width,height:n??d??Qa.height,stroke:e??h,strokeWidth:y,className:No("lucide",C,o),...!i&&!Rc(c)&&{"aria-hidden":"true"},...c},[...l.map(([f,v])=>s.createElement(f,v)),...Array.isArray(i)?i:[i]])});/**
31
+ */const Pc=e=>{for(const n in e)if(n.startsWith("aria-")||n==="role"||n==="title")return!0;return!1},Ic=s.createContext({}),Fc=()=>s.useContext(Ic),Oc=s.forwardRef(({color:e,size:n,strokeWidth:a,absoluteStrokeWidth:r,className:o="",children:i,iconNode:l,...c},u)=>{const{size:d=24,strokeWidth:p=2,absoluteStrokeWidth:m=!1,color:h="currentColor",className:C=""}=Fc()??{},y=r??m?Number(a??p)*24/Number(n??d):a??p;return s.createElement("svg",{ref:u,...er,width:n??d??er.width,height:n??d??er.height,stroke:e??h,strokeWidth:y,className:Bo("lucide",C,o),...!i&&!Pc(c)&&{"aria-hidden":"true"},...c},[...l.map(([f,v])=>s.createElement(f,v)),...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 K=(e,n)=>{const a=s.forwardRef(({className:r,...o},i)=>s.createElement(Fc,{ref:i,iconNode:n,className:No(`lucide-${Lc(Bo(e))}`,`lucide-${e}`,r),...o}));return a.displayName=Bo(e),a};/**
36
+ */const K=(e,n)=>{const a=s.forwardRef(({className:r,...o},i)=>s.createElement(Oc,{ref:i,iconNode:n,className:Bo(`lucide-${$c(Do(e))}`,`lucide-${e}`,r),...o}));return a.displayName=Do(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 Oc=[["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"}]],So=K("triangle-alert",Oc);/**
41
+ */const Vc=[["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"}]],So=K("triangle-alert",Vc);/**
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 Hc=[["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"}]],Vc=K("align-start-vertical",Hc);/**
46
+ */const Hc=[["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"}]],zc=K("align-start-vertical",Hc);/**
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 zc=[["path",{d:"M12 5v14",key:"s699le"}],["path",{d:"m19 12-7 7-7-7",key:"1idqje"}]],Wc=K("arrow-down",zc);/**
51
+ */const Wc=[["path",{d:"M12 5v14",key:"s699le"}],["path",{d:"m19 12-7 7-7-7",key:"1idqje"}]],qc=K("arrow-down",Wc);/**
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 qc=[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]],Uc=K("arrow-left",qc);/**
56
+ */const Uc=[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]],Gc=K("arrow-left",Uc);/**
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 Gc=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]],Kc=K("arrow-right",Gc);/**
61
+ */const Kc=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]],Yc=K("arrow-right",Kc);/**
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 Yc=[["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=K("arrow-right-left",Yc);/**
66
+ */const Zc=[["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"}]],Xc=K("arrow-right-left",Zc);/**
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 Xc=[["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"}]],Jc=K("audio-lines",Xc);/**
71
+ */const Jc=[["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"}]],Qc=K("audio-lines",Jc);/**
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 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"}]],eu=K("baby",Qc);/**
76
+ */const eu=[["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"}]],tu=K("baby",eu);/**
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 tu=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M4.929 4.929 19.07 19.071",key:"196cmz"}]],nu=K("ban",tu);/**
81
+ */const nu=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M4.929 4.929 19.07 19.071",key:"196cmz"}]],au=K("ban",nu);/**
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 au=[["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"}]],ru=K("bell",au);/**
86
+ */const ru=[["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"}]],ou=K("bell",ru);/**
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 ou=[["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"}]],su=K("book-marked",ou);/**
91
+ */const su=[["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"}]],iu=K("book-marked",su);/**
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 iu=[["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"}]],lu=K("book-open",iu);/**
96
+ */const lu=[["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"}]],cu=K("book-open",lu);/**
97
97
  * @license lucide-react v1.38.0 - ISC
98
98
  *
99
99
  * This source code is licensed under the ISC license.
100
100
  * See the LICENSE file in the root directory of this source tree.
101
- */const cu=[["path",{d:"M17 3h4v4",key:"19p9u1"}],["path",{d:"M18.575 11.082a13 13 0 0 1 1.048 9.027 1.17 1.17 0 0 1-1.914.597L14 17",key:"12t3w9"}],["path",{d:"M7 10 3.29 6.29a1.17 1.17 0 0 1 .6-1.91 13 13 0 0 1 9.03 1.05",key:"ogng5l"}],["path",{d:"M7 14a1.7 1.7 0 0 0-1.207.5l-2.646 2.646A.5.5 0 0 0 3.5 18H5a1 1 0 0 1 1 1v1.5a.5.5 0 0 0 .854.354L9.5 18.207A1.7 1.7 0 0 0 10 17v-2a1 1 0 0 0-1-1z",key:"8v3fy2"}],["path",{d:"M9.707 14.293 21 3",key:"ydm3bn"}]],uu=K("bow-arrow",cu);/**
101
+ */const uu=[["path",{d:"M17 3h4v4",key:"19p9u1"}],["path",{d:"M18.575 11.082a13 13 0 0 1 1.048 9.027 1.17 1.17 0 0 1-1.914.597L14 17",key:"12t3w9"}],["path",{d:"M7 10 3.29 6.29a1.17 1.17 0 0 1 .6-1.91 13 13 0 0 1 9.03 1.05",key:"ogng5l"}],["path",{d:"M7 14a1.7 1.7 0 0 0-1.207.5l-2.646 2.646A.5.5 0 0 0 3.5 18H5a1 1 0 0 1 1 1v1.5a.5.5 0 0 0 .854.354L9.5 18.207A1.7 1.7 0 0 0 10 17v-2a1 1 0 0 0-1-1z",key:"8v3fy2"}],["path",{d:"M9.707 14.293 21 3",key:"ydm3bn"}]],du=K("bow-arrow",uu);/**
102
102
  * @license lucide-react v1.38.0 - ISC
103
103
  *
104
104
  * This source code is licensed under the ISC license.
105
105
  * See the LICENSE file in the root directory of this source tree.
106
- */const du=[["path",{d:"M8 3H7a2 2 0 0 0-2 2v5a2 2 0 0 1-2 2 2 2 0 0 1 2 2v5c0 1.1.9 2 2 2h1",key:"ezmyqa"}],["path",{d:"M16 21h1a2 2 0 0 0 2-2v-5c0-1.1.9-2 2-2a2 2 0 0 1-2-2V5a2 2 0 0 0-2-2h-1",key:"e1hn23"}]],pu=K("braces",du);/**
106
+ */const pu=[["path",{d:"M8 3H7a2 2 0 0 0-2 2v5a2 2 0 0 1-2 2 2 2 0 0 1 2 2v5c0 1.1.9 2 2 2h1",key:"ezmyqa"}],["path",{d:"M16 21h1a2 2 0 0 0 2-2v-5c0-1.1.9-2 2-2a2 2 0 0 1-2-2V5a2 2 0 0 0-2-2h-1",key:"e1hn23"}]],mu=K("braces",pu);/**
107
107
  * @license lucide-react v1.38.0 - ISC
108
108
  *
109
109
  * This source code is licensed under the ISC license.
110
110
  * See the LICENSE file in the root directory of this source tree.
111
- */const mu=[["path",{d:"M12 20v-9",key:"1qisl0"}],["path",{d:"M14 7a4 4 0 0 1 4 4v3a6 6 0 0 1-12 0v-3a4 4 0 0 1 4-4z",key:"uouzyp"}],["path",{d:"M14.12 3.88 16 2",key:"qol33r"}],["path",{d:"M21 21a4 4 0 0 0-3.81-4",key:"1b0z45"}],["path",{d:"M21 5a4 4 0 0 1-3.55 3.97",key:"5cxbf6"}],["path",{d:"M22 13h-4",key:"1jl80f"}],["path",{d:"M3 21a4 4 0 0 1 3.81-4",key:"1fjd4g"}],["path",{d:"M3 5a4 4 0 0 0 3.55 3.97",key:"1d7oge"}],["path",{d:"M6 13H2",key:"82j7cp"}],["path",{d:"m8 2 1.88 1.88",key:"fmnt4t"}],["path",{d:"M9 7.13V6a3 3 0 1 1 6 0v1.13",key:"1vgav8"}]],hu=K("bug",mu);/**
111
+ */const hu=[["path",{d:"M12 20v-9",key:"1qisl0"}],["path",{d:"M14 7a4 4 0 0 1 4 4v3a6 6 0 0 1-12 0v-3a4 4 0 0 1 4-4z",key:"uouzyp"}],["path",{d:"M14.12 3.88 16 2",key:"qol33r"}],["path",{d:"M21 21a4 4 0 0 0-3.81-4",key:"1b0z45"}],["path",{d:"M21 5a4 4 0 0 1-3.55 3.97",key:"5cxbf6"}],["path",{d:"M22 13h-4",key:"1jl80f"}],["path",{d:"M3 21a4 4 0 0 1 3.81-4",key:"1fjd4g"}],["path",{d:"M3 5a4 4 0 0 0 3.55 3.97",key:"1d7oge"}],["path",{d:"M6 13H2",key:"82j7cp"}],["path",{d:"m8 2 1.88 1.88",key:"fmnt4t"}],["path",{d:"M9 7.13V6a3 3 0 1 1 6 0v1.13",key:"1vgav8"}]],fu=K("bug",hu);/**
112
112
  * @license lucide-react v1.38.0 - ISC
113
113
  *
114
114
  * This source code is licensed under the ISC license.
115
115
  * See the LICENSE file in the root directory of this source tree.
116
- */const fu=[["path",{d:"M8 2v3",key:"1ioesn"}],["path",{d:"M16 2v3",key:"otl347"}],["rect",{x:"3",y:"3",width:"18",height:"18",rx:"2",key:"h1oib"}],["path",{d:"M3 9h18",key:"1pudct"}],["path",{d:"m9 15 2 2 4-4",key:"1grp1n"}]],Cu=K("calendar-check",fu);/**
116
+ */const Cu=[["path",{d:"M8 2v3",key:"1ioesn"}],["path",{d:"M16 2v3",key:"otl347"}],["rect",{x:"3",y:"3",width:"18",height:"18",rx:"2",key:"h1oib"}],["path",{d:"M3 9h18",key:"1pudct"}],["path",{d:"m9 15 2 2 4-4",key:"1grp1n"}]],gu=K("calendar-check",Cu);/**
117
117
  * @license lucide-react v1.38.0 - ISC
118
118
  *
119
119
  * This source code is licensed under the ISC license.
120
120
  * See the LICENSE file in the root directory of this source tree.
121
- */const gu=[["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"}]],bu=K("calendar-days",gu);/**
121
+ */const bu=[["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"}]],yu=K("calendar-days",bu);/**
122
122
  * @license lucide-react v1.38.0 - ISC
123
123
  *
124
124
  * This source code is licensed under the ISC license.
125
125
  * See the LICENSE file in the root directory of this source tree.
126
- */const yu=[["path",{d:"M13.997 4a2 2 0 0 1 1.76 1.05l.486.9A2 2 0 0 0 18.003 7H20a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V9a2 2 0 0 1 2-2h1.997a2 2 0 0 0 1.759-1.048l.489-.904A2 2 0 0 1 10.004 4z",key:"18u6gg"}],["circle",{cx:"12",cy:"13",r:"3",key:"1vg3eu"}]],vu=K("camera",yu);/**
126
+ */const vu=[["path",{d:"M13.997 4a2 2 0 0 1 1.76 1.05l.486.9A2 2 0 0 0 18.003 7H20a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V9a2 2 0 0 1 2-2h1.997a2 2 0 0 0 1.759-1.048l.489-.904A2 2 0 0 1 10.004 4z",key:"18u6gg"}],["circle",{cx:"12",cy:"13",r:"3",key:"1vg3eu"}]],xu=K("camera",vu);/**
127
127
  * @license lucide-react v1.38.0 - ISC
128
128
  *
129
129
  * This source code is licensed under the ISC license.
130
130
  * See the LICENSE file in the root directory of this source tree.
131
- */const xu=[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"M18 17V9",key:"2bz60n"}],["path",{d:"M13 17V5",key:"1frdt8"}],["path",{d:"M8 17v-3",key:"17ska0"}]],_u=K("chart-column",xu);/**
131
+ */const _u=[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"M18 17V9",key:"2bz60n"}],["path",{d:"M13 17V5",key:"1frdt8"}],["path",{d:"M8 17v-3",key:"17ska0"}]],wu=K("chart-column",_u);/**
132
132
  * @license lucide-react v1.38.0 - ISC
133
133
  *
134
134
  * This source code is licensed under the ISC license.
135
135
  * See the LICENSE file in the root directory of this source tree.
136
- */const wu=[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"m19 9-5 5-4-4-3 3",key:"2osh9i"}]],ku=K("chart-line",wu);/**
136
+ */const ku=[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"m19 9-5 5-4-4-3 3",key:"2osh9i"}]],Au=K("chart-line",ku);/**
137
137
  * @license lucide-react v1.38.0 - ISC
138
138
  *
139
139
  * This source code is licensed under the ISC license.
140
140
  * See the LICENSE file in the root directory of this source tree.
141
- */const Au=[["path",{d:"M21 12c.552 0 1.005-.449.95-.998a10 10 0 0 0-8.953-8.951c-.55-.055-.998.398-.998.95v8a1 1 0 0 0 1 1z",key:"pzmjnu"}],["path",{d:"M21.21 15.89A10 10 0 1 1 8 2.83",key:"k2fpak"}]],Nu=K("chart-pie",Au);/**
141
+ */const Nu=[["path",{d:"M21 12c.552 0 1.005-.449.95-.998a10 10 0 0 0-8.953-8.951c-.55-.055-.998.398-.998.95v8a1 1 0 0 0 1 1z",key:"pzmjnu"}],["path",{d:"M21.21 15.89A10 10 0 1 1 8 2.83",key:"k2fpak"}]],Bu=K("chart-pie",Nu);/**
142
142
  * @license lucide-react v1.38.0 - ISC
143
143
  *
144
144
  * This source code is licensed under the ISC license.
145
145
  * See the LICENSE file in the root directory of this source tree.
146
- */const Bu=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],Do=K("check",Bu);/**
146
+ */const Du=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],jo=K("check",Du);/**
147
147
  * @license lucide-react v1.38.0 - ISC
148
148
  *
149
149
  * This source code is licensed under the ISC license.
@@ -153,659 +153,659 @@
153
153
  *
154
154
  * This source code is licensed under the ISC license.
155
155
  * See the LICENSE file in the root directory of this source tree.
156
- */const Du=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],jo=K("chevron-right",Du);/**
156
+ */const ju=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],Eo=K("chevron-right",ju);/**
157
157
  * @license lucide-react v1.38.0 - ISC
158
158
  *
159
159
  * This source code is licensed under the ISC license.
160
160
  * See the LICENSE file in the root directory of this source tree.
161
- */const Tu=[["rect",{width:"8",height:"4",x:"8",y:"2",rx:"1",ry:"1",key:"tgr4d6"}],["path",{d:"M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2",key:"116196"}],["path",{d:"M12 11h4",key:"1jrz19"}],["path",{d:"M12 16h4",key:"n85exb"}],["path",{d:"M8 11h.01",key:"1dfujw"}],["path",{d:"M8 16h.01",key:"18s6g9"}]],ju=K("clipboard-list",Tu);/**
161
+ */const Tu=[["rect",{width:"8",height:"4",x:"8",y:"2",rx:"1",ry:"1",key:"tgr4d6"}],["path",{d:"M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2",key:"116196"}],["path",{d:"M12 11h4",key:"1jrz19"}],["path",{d:"M12 16h4",key:"n85exb"}],["path",{d:"M8 11h.01",key:"1dfujw"}],["path",{d:"M8 16h.01",key:"18s6g9"}]],Eu=K("clipboard-list",Tu);/**
162
162
  * @license lucide-react v1.38.0 - ISC
163
163
  *
164
164
  * This source code is licensed under the ISC license.
165
165
  * See the LICENSE file in the root directory of this source tree.
166
- */const Eu=[["path",{d:"M14 3a1 1 0 0 1 1 1v5a1 1 0 0 1-1 1",key:"1l7d7l"}],["path",{d:"M19 3a1 1 0 0 1 1 1v5a1 1 0 0 1-1 1",key:"9955pe"}],["path",{d:"m7 15 3 3",key:"4hkfgk"}],["path",{d:"m7 21 3-3H5a2 2 0 0 1-2-2v-2",key:"1xljwe"}],["rect",{x:"14",y:"14",width:"7",height:"7",rx:"1",key:"1cdgtw"}],["rect",{x:"3",y:"3",width:"7",height:"7",rx:"1",key:"zi3rio"}]],Mu=K("combine",Eu);/**
166
+ */const Mu=[["path",{d:"M14 3a1 1 0 0 1 1 1v5a1 1 0 0 1-1 1",key:"1l7d7l"}],["path",{d:"M19 3a1 1 0 0 1 1 1v5a1 1 0 0 1-1 1",key:"9955pe"}],["path",{d:"m7 15 3 3",key:"4hkfgk"}],["path",{d:"m7 21 3-3H5a2 2 0 0 1-2-2v-2",key:"1xljwe"}],["rect",{x:"14",y:"14",width:"7",height:"7",rx:"1",key:"1cdgtw"}],["rect",{x:"3",y:"3",width:"7",height:"7",rx:"1",key:"zi3rio"}]],Lu=K("combine",Mu);/**
167
167
  * @license lucide-react v1.38.0 - ISC
168
168
  *
169
169
  * This source code is licensed under the ISC license.
170
170
  * See the LICENSE file in the root directory of this source tree.
171
- */const Lu=[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]],$u=K("copy",Lu);/**
171
+ */const $u=[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]],Ru=K("copy",$u);/**
172
172
  * @license lucide-react v1.38.0 - ISC
173
173
  *
174
174
  * This source code is licensed under the ISC license.
175
175
  * See the LICENSE file in the root directory of this source tree.
176
- */const Ru=[["path",{d:"M12 12h.01",key:"1mp3jc"}],["path",{d:"M16 12h.01",key:"1l6xoz"}],["path",{d:"m17 7 5 5-5 5",key:"1xlxn0"}],["path",{d:"m7 7-5 5 5 5",key:"19njba"}],["path",{d:"M8 12h.01",key:"czm47f"}]],Pu=K("chevrons-left-right-ellipsis",Ru);/**
176
+ */const Pu=[["path",{d:"M12 12h.01",key:"1mp3jc"}],["path",{d:"M16 12h.01",key:"1l6xoz"}],["path",{d:"m17 7 5 5-5 5",key:"1xlxn0"}],["path",{d:"m7 7-5 5 5 5",key:"19njba"}],["path",{d:"M8 12h.01",key:"czm47f"}]],Iu=K("chevrons-left-right-ellipsis",Pu);/**
177
177
  * @license lucide-react v1.38.0 - ISC
178
178
  *
179
179
  * This source code is licensed under the ISC license.
180
180
  * See the LICENSE file in the root directory of this source tree.
181
- */const Iu=[["rect",{width:"20",height:"14",x:"2",y:"5",rx:"2",key:"ynyp8z"}],["line",{x1:"2",x2:"22",y1:"10",y2:"10",key:"1b3vmo"}]],Fu=K("credit-card",Iu);/**
181
+ */const Fu=[["rect",{width:"20",height:"14",x:"2",y:"5",rx:"2",key:"ynyp8z"}],["line",{x1:"2",x2:"22",y1:"10",y2:"10",key:"1b3vmo"}]],Ou=K("credit-card",Fu);/**
182
182
  * @license lucide-react v1.38.0 - ISC
183
183
  *
184
184
  * This source code is licensed under the ISC license.
185
185
  * See the LICENSE file in the root directory of this source tree.
186
- */const Ou=[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]],Eo=K("database",Ou);/**
186
+ */const Vu=[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]],Mo=K("database",Vu);/**
187
187
  * @license lucide-react v1.38.0 - ISC
188
188
  *
189
189
  * This source code is licensed under the ISC license.
190
190
  * See the LICENSE file in the root directory of this source tree.
191
- */const Hu=[["path",{d:"M12 3v14",key:"7cf3v8"}],["path",{d:"M5 10h14",key:"elsbfy"}],["path",{d:"M5 21h14",key:"11awu3"}]],Vu=K("diff",Hu);/**
191
+ */const Hu=[["path",{d:"M12 3v14",key:"7cf3v8"}],["path",{d:"M5 10h14",key:"elsbfy"}],["path",{d:"M5 21h14",key:"11awu3"}]],zu=K("diff",Hu);/**
192
192
  * @license lucide-react v1.38.0 - ISC
193
193
  *
194
194
  * This source code is licensed under the ISC license.
195
195
  * See the LICENSE file in the root directory of this source tree.
196
- */const zu=[["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"}]],Mo=K("download",zu);/**
196
+ */const Wu=[["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"}]],Lo=K("download",Wu);/**
197
197
  * @license lucide-react v1.38.0 - ISC
198
198
  *
199
199
  * This source code is licensed under the ISC license.
200
200
  * See the LICENSE file in the root directory of this source tree.
201
- */const Wu=[["path",{d:"M6 8.5a6.5 6.5 0 1 1 13 0c0 6-6 6-6 10a3.5 3.5 0 1 1-7 0",key:"1dfaln"}],["path",{d:"M15 8.5a2.5 2.5 0 0 0-5 0v1a2 2 0 1 1 0 4",key:"1qnva7"}]],qu=K("ear",Wu);/**
201
+ */const qu=[["path",{d:"M6 8.5a6.5 6.5 0 1 1 13 0c0 6-6 6-6 10a3.5 3.5 0 1 1-7 0",key:"1dfaln"}],["path",{d:"M15 8.5a2.5 2.5 0 0 0-5 0v1a2 2 0 1 1 0 4",key:"1qnva7"}]],Uu=K("ear",qu);/**
202
202
  * @license lucide-react v1.38.0 - ISC
203
203
  *
204
204
  * This source code is licensed under the ISC license.
205
205
  * See the LICENSE file in the root directory of this source tree.
206
- */const Uu=[["path",{d:"M12 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7",key:"1m0v6g"}],["path",{d:"M18.375 2.625a1 1 0 0 1 3 3l-9.013 9.014a2 2 0 0 1-.853.505l-2.873.84a.5.5 0 0 1-.62-.62l.84-2.873a2 2 0 0 1 .506-.852z",key:"ohrbg2"}]],Gu=K("square-pen",Uu);/**
206
+ */const Gu=[["path",{d:"M12 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7",key:"1m0v6g"}],["path",{d:"M18.375 2.625a1 1 0 0 1 3 3l-9.013 9.014a2 2 0 0 1-.853.505l-2.873.84a.5.5 0 0 1-.62-.62l.84-2.873a2 2 0 0 1 .506-.852z",key:"ohrbg2"}]],Ku=K("square-pen",Gu);/**
207
207
  * @license lucide-react v1.38.0 - ISC
208
208
  *
209
209
  * This source code is licensed under the ISC license.
210
210
  * See the LICENSE file in the root directory of this source tree.
211
- */const Ku=[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}]],Yu=K("pen",Ku);/**
211
+ */const Yu=[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}]],Zu=K("pen",Yu);/**
212
212
  * @license lucide-react v1.38.0 - ISC
213
213
  *
214
214
  * This source code is licensed under the ISC license.
215
215
  * See the LICENSE file in the root directory of this source tree.
216
- */const Zu=[["path",{d:"M13 21h8",key:"1jsn5i"}],["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}]],Xu=K("pen-line",Zu);/**
216
+ */const Xu=[["path",{d:"M13 21h8",key:"1jsn5i"}],["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}]],Ju=K("pen-line",Xu);/**
217
217
  * @license lucide-react v1.38.0 - ISC
218
218
  *
219
219
  * This source code is licensed under the ISC license.
220
220
  * See the LICENSE file in the root directory of this source tree.
221
- */const Ju=[["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"}]],Lo=K("ellipsis",Ju);/**
221
+ */const Qu=[["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"}]],$o=K("ellipsis",Qu);/**
222
222
  * @license lucide-react v1.38.0 - ISC
223
223
  *
224
224
  * This source code is licensed under the ISC license.
225
225
  * See the LICENSE file in the root directory of this source tree.
226
- */const Qu=[["path",{d:"M21 21H8a2 2 0 0 1-1.42-.587l-3.994-3.999a2 2 0 0 1 0-2.828l10-10a2 2 0 0 1 2.829 0l5.999 6a2 2 0 0 1 0 2.828L12.834 21",key:"g5wo59"}],["path",{d:"m5.082 11.09 8.828 8.828",key:"1wx5vj"}]],ed=K("eraser",Qu);/**
226
+ */const ed=[["path",{d:"M21 21H8a2 2 0 0 1-1.42-.587l-3.994-3.999a2 2 0 0 1 0-2.828l10-10a2 2 0 0 1 2.829 0l5.999 6a2 2 0 0 1 0 2.828L12.834 21",key:"g5wo59"}],["path",{d:"m5.082 11.09 8.828 8.828",key:"1wx5vj"}]],td=K("eraser",ed);/**
227
227
  * @license lucide-react v1.38.0 - ISC
228
228
  *
229
229
  * This source code is licensed under the ISC license.
230
230
  * See the LICENSE file in the root directory of this source tree.
231
- */const td=[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]],nd=K("external-link",td);/**
231
+ */const nd=[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]],ad=K("external-link",nd);/**
232
232
  * @license lucide-react v1.38.0 - ISC
233
233
  *
234
234
  * This source code is licensed under the ISC license.
235
235
  * See the LICENSE file in the root directory of this source tree.
236
- */const ad=[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],rd=K("eye",ad);/**
236
+ */const rd=[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],od=K("eye",rd);/**
237
237
  * @license lucide-react v1.38.0 - ISC
238
238
  *
239
239
  * This source code is licensed under the ISC license.
240
240
  * See the LICENSE file in the root directory of this source tree.
241
- */const od=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]],sd=K("file-text",od);/**
241
+ */const sd=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]],id=K("file-text",sd);/**
242
242
  * @license lucide-react v1.38.0 - ISC
243
243
  *
244
244
  * This source code is licensed under the ISC license.
245
245
  * See the LICENSE file in the root directory of this source tree.
246
- */const id=[["path",{d:"M8 3H5a2 2 0 0 0-2 2v14c0 1.1.9 2 2 2h3",key:"1i73f7"}],["path",{d:"M16 3h3a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-3",key:"saxlbk"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"M12 14v2",key:"8jcxud"}],["path",{d:"M12 8v2",key:"1woqiv"}],["path",{d:"M12 2v2",key:"tus03m"}]],ld=K("square-centerline-dashed-horizontal",id);/**
246
+ */const ld=[["path",{d:"M8 3H5a2 2 0 0 0-2 2v14c0 1.1.9 2 2 2h3",key:"1i73f7"}],["path",{d:"M16 3h3a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-3",key:"saxlbk"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"M12 14v2",key:"8jcxud"}],["path",{d:"M12 8v2",key:"1woqiv"}],["path",{d:"M12 2v2",key:"tus03m"}]],cd=K("square-centerline-dashed-horizontal",ld);/**
247
247
  * @license lucide-react v1.38.0 - ISC
248
248
  *
249
249
  * This source code is licensed under the ISC license.
250
250
  * See the LICENSE file in the root directory of this source tree.
251
- */const cd=[["path",{d:"m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2",key:"usdka0"}]],ud=K("folder-open",cd);/**
251
+ */const ud=[["path",{d:"m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2",key:"usdka0"}]],dd=K("folder-open",ud);/**
252
252
  * @license lucide-react v1.38.0 - ISC
253
253
  *
254
254
  * This source code is licensed under the ISC license.
255
255
  * See the LICENSE file in the root directory of this source tree.
256
- */const dd=[["path",{d:"M12 10v6",key:"1bos4e"}],["path",{d:"M9 13h6",key:"1uhe8q"}],["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}]],pd=K("folder-plus",dd);/**
256
+ */const pd=[["path",{d:"M12 10v6",key:"1bos4e"}],["path",{d:"M9 13h6",key:"1uhe8q"}],["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}]],md=K("folder-plus",pd);/**
257
257
  * @license lucide-react v1.38.0 - ISC
258
258
  *
259
259
  * This source code is licensed under the ISC license.
260
260
  * See the LICENSE file in the root directory of this source tree.
261
- */const md=[["line",{x1:"6",x2:"10",y1:"12",y2:"12",key:"161bw2"}],["line",{x1:"8",x2:"8",y1:"10",y2:"14",key:"1i6ji0"}],["line",{x1:"15",x2:"15.01",y1:"13",y2:"13",key:"dqpgro"}],["line",{x1:"18",x2:"18.01",y1:"11",y2:"11",key:"meh2c"}],["rect",{width:"20",height:"12",x:"2",y:"6",rx:"2",key:"9lu3g6"}]],hd=K("gamepad",md);/**
261
+ */const hd=[["line",{x1:"6",x2:"10",y1:"12",y2:"12",key:"161bw2"}],["line",{x1:"8",x2:"8",y1:"10",y2:"14",key:"1i6ji0"}],["line",{x1:"15",x2:"15.01",y1:"13",y2:"13",key:"dqpgro"}],["line",{x1:"18",x2:"18.01",y1:"11",y2:"11",key:"meh2c"}],["rect",{width:"20",height:"12",x:"2",y:"6",rx:"2",key:"9lu3g6"}]],fd=K("gamepad",hd);/**
262
262
  * @license lucide-react v1.38.0 - ISC
263
263
  *
264
264
  * This source code is licensed under the ISC license.
265
265
  * See the LICENSE file in the root directory of this source tree.
266
- */const fd=[["path",{d:"m14 13-8.381 8.38a1 1 0 0 1-3.001-3l8.384-8.381",key:"pgg06f"}],["path",{d:"m16 16 6-6",key:"vzrcl6"}],["path",{d:"m21.5 10.5-8-8",key:"a17d9x"}],["path",{d:"m8 8 6-6",key:"18bi4p"}],["path",{d:"m8.5 7.5 8 8",key:"1oyaui"}]],Cd=K("gavel",fd);/**
266
+ */const Cd=[["path",{d:"m14 13-8.381 8.38a1 1 0 0 1-3.001-3l8.384-8.381",key:"pgg06f"}],["path",{d:"m16 16 6-6",key:"vzrcl6"}],["path",{d:"m21.5 10.5-8-8",key:"a17d9x"}],["path",{d:"m8 8 6-6",key:"18bi4p"}],["path",{d:"m8.5 7.5 8 8",key:"1oyaui"}]],gd=K("gavel",Cd);/**
267
267
  * @license lucide-react v1.38.0 - ISC
268
268
  *
269
269
  * This source code is licensed under the ISC license.
270
270
  * See the LICENSE file in the root directory of this source tree.
271
- */const gd=[["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"}]],$o=K("git-merge",gd);/**
271
+ */const bd=[["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"}]],Ro=K("git-merge",bd);/**
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 bd=[["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"}]],yd=K("globe",bd);/**
276
+ */const yd=[["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"}]],vd=K("globe",yd);/**
277
277
  * @license lucide-react v1.38.0 - ISC
278
278
  *
279
279
  * This source code is licensed under the ISC license.
280
280
  * See the LICENSE file in the root directory of this source tree.
281
- */const vd=[["path",{d:"M3 14h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-7a9 9 0 0 1 18 0v7a2 2 0 0 1-2 2h-1a2 2 0 0 1-2-2v-3a2 2 0 0 1 2-2h3",key:"1xhozi"}]],xd=K("headphones",vd);/**
281
+ */const xd=[["path",{d:"M3 14h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-7a9 9 0 0 1 18 0v7a2 2 0 0 1-2 2h-1a2 2 0 0 1-2-2v-3a2 2 0 0 1 2-2h3",key:"1xhozi"}]],_d=K("headphones",xd);/**
282
282
  * @license lucide-react v1.38.0 - ISC
283
283
  *
284
284
  * This source code is licensed under the ISC license.
285
285
  * See the LICENSE file in the root directory of this source tree.
286
- */const _d=[["path",{d:"M2 9.5a5.5 5.5 0 0 1 9.591-3.676.56.56 0 0 0 .818 0A5.49 5.49 0 0 1 22 9.5c0 2.29-1.5 4-3 5.5l-5.492 5.313a2 2 0 0 1-3 .019L5 15c-1.5-1.5-3-3.2-3-5.5",key:"mvr1a0"}]],wd=K("heart",_d);/**
286
+ */const wd=[["path",{d:"M2 9.5a5.5 5.5 0 0 1 9.591-3.676.56.56 0 0 0 .818 0A5.49 5.49 0 0 1 22 9.5c0 2.29-1.5 4-3 5.5l-5.492 5.313a2 2 0 0 1-3 .019L5 15c-1.5-1.5-3-3.2-3-5.5",key:"mvr1a0"}]],kd=K("heart",wd);/**
287
287
  * @license lucide-react v1.38.0 - ISC
288
288
  *
289
289
  * This source code is licensed under the ISC license.
290
290
  * See the LICENSE file in the root directory of this source tree.
291
- */const kd=[["path",{d:"M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8",key:"5wwlr5"}],["path",{d:"M3 10a2 2 0 0 1 .709-1.528l7-6a2 2 0 0 1 2.582 0l7 6A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z",key:"r6nss1"}]],Ad=K("house",kd);/**
291
+ */const Ad=[["path",{d:"M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8",key:"5wwlr5"}],["path",{d:"M3 10a2 2 0 0 1 .709-1.528l7-6a2 2 0 0 1 2.582 0l7 6A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z",key:"r6nss1"}]],Nd=K("house",Ad);/**
292
292
  * @license lucide-react v1.38.0 - ISC
293
293
  *
294
294
  * This source code is licensed under the ISC license.
295
295
  * See the LICENSE file in the root directory of this source tree.
296
- */const Nd=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]],Bd=K("info",Nd);/**
296
+ */const Bd=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]],Dd=K("info",Bd);/**
297
297
  * @license lucide-react v1.38.0 - ISC
298
298
  *
299
299
  * This source code is licensed under the ISC license.
300
300
  * See the LICENSE file in the root directory of this source tree.
301
- */const Sd=[["path",{d:"M2.586 17.414A2 2 0 0 0 2 18.828V21a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h1a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h.172a2 2 0 0 0 1.414-.586l.814-.814a6.5 6.5 0 1 0-4-4z",key:"1s6t7t"}],["circle",{cx:"16.5",cy:"7.5",r:".5",fill:"currentColor",key:"w0ekpg"}]],Dd=K("key-round",Sd);/**
301
+ */const Sd=[["path",{d:"M2.586 17.414A2 2 0 0 0 2 18.828V21a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h1a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h.172a2 2 0 0 0 1.414-.586l.814-.814a6.5 6.5 0 1 0-4-4z",key:"1s6t7t"}],["circle",{cx:"16.5",cy:"7.5",r:".5",fill:"currentColor",key:"w0ekpg"}]],jd=K("key-round",Sd);/**
302
302
  * @license lucide-react v1.38.0 - ISC
303
303
  *
304
304
  * This source code is licensed under the ISC license.
305
305
  * See the LICENSE file in the root directory of this source tree.
306
- */const Td=[["path",{d:"M10 18v-7",key:"wt116b"}],["path",{d:"M11.119 2.205a2 2 0 0 1 1.762 0l7.84 3.846A.5.5 0 0 1 20.5 7h-17a.5.5 0 0 1-.22-.949z",key:"yxxwt6"}],["path",{d:"M14 18v-7",key:"vav6t3"}],["path",{d:"M18 18v-7",key:"aexdmj"}],["path",{d:"M3 22h18",key:"8prr45"}],["path",{d:"M6 18v-7",key:"1ivflk"}]],jd=K("landmark",Td);/**
306
+ */const Td=[["path",{d:"M10 18v-7",key:"wt116b"}],["path",{d:"M11.119 2.205a2 2 0 0 1 1.762 0l7.84 3.846A.5.5 0 0 1 20.5 7h-17a.5.5 0 0 1-.22-.949z",key:"yxxwt6"}],["path",{d:"M14 18v-7",key:"vav6t3"}],["path",{d:"M18 18v-7",key:"aexdmj"}],["path",{d:"M3 22h18",key:"8prr45"}],["path",{d:"M6 18v-7",key:"1ivflk"}]],Ed=K("landmark",Td);/**
307
307
  * @license lucide-react v1.38.0 - ISC
308
308
  *
309
309
  * This source code is licensed under the ISC license.
310
310
  * See the LICENSE file in the root directory of this source tree.
311
- */const Ed=[["path",{d:"M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z",key:"zw3jo"}],["path",{d:"M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12",key:"1wduqc"}],["path",{d:"M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17",key:"kqbvx6"}]],Md=K("layers",Ed);/**
311
+ */const Md=[["path",{d:"M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z",key:"zw3jo"}],["path",{d:"M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12",key:"1wduqc"}],["path",{d:"M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17",key:"kqbvx6"}]],Ld=K("layers",Md);/**
312
312
  * @license lucide-react v1.38.0 - ISC
313
313
  *
314
314
  * This source code is licensed under the ISC license.
315
315
  * See the LICENSE file in the root directory of this source tree.
316
- */const Ld=[["rect",{width:"7",height:"9",x:"3",y:"3",rx:"1",key:"10lvy0"}],["rect",{width:"7",height:"5",x:"14",y:"3",rx:"1",key:"16une8"}],["rect",{width:"7",height:"9",x:"14",y:"12",rx:"1",key:"1hutg5"}],["rect",{width:"7",height:"5",x:"3",y:"16",rx:"1",key:"ldoo1y"}]],$d=K("layout-dashboard",Ld);/**
316
+ */const $d=[["rect",{width:"7",height:"9",x:"3",y:"3",rx:"1",key:"10lvy0"}],["rect",{width:"7",height:"5",x:"14",y:"3",rx:"1",key:"16une8"}],["rect",{width:"7",height:"9",x:"14",y:"12",rx:"1",key:"1hutg5"}],["rect",{width:"7",height:"5",x:"3",y:"16",rx:"1",key:"ldoo1y"}]],Rd=K("layout-dashboard",$d);/**
317
317
  * @license lucide-react v1.38.0 - ISC
318
318
  *
319
319
  * This source code is licensed under the ISC license.
320
320
  * See the LICENSE file in the root directory of this source tree.
321
- */const Rd=[["path",{d:"M11 20A7 7 0 0 1 9.8 6.1C15.5 5 17 4.48 19 2c1 2 2 4.18 2 8 0 5.5-4.78 10-10 10Z",key:"nnexq3"}],["path",{d:"M2 21c0-3 1.85-5.36 5.08-6C9.5 14.52 12 13 13 12",key:"mt58a7"}]],Pd=K("leaf",Rd);/**
321
+ */const Pd=[["path",{d:"M11 20A7 7 0 0 1 9.8 6.1C15.5 5 17 4.48 19 2c1 2 2 4.18 2 8 0 5.5-4.78 10-10 10Z",key:"nnexq3"}],["path",{d:"M2 21c0-3 1.85-5.36 5.08-6C9.5 14.52 12 13 13 12",key:"mt58a7"}]],Id=K("leaf",Pd);/**
322
322
  * @license lucide-react v1.38.0 - ISC
323
323
  *
324
324
  * This source code is licensed under the ISC license.
325
325
  * See the LICENSE file in the root directory of this source tree.
326
- */const Id=[["path",{d:"M15 14c.2-1 .7-1.7 1.5-2.5 1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5.7.7 1.3 1.5 1.5 2.5",key:"1gvzjb"}],["path",{d:"M9 18h6",key:"x1upvd"}],["path",{d:"M10 22h4",key:"ceow96"}]],Fd=K("lightbulb",Id);/**
326
+ */const Fd=[["path",{d:"M15 14c.2-1 .7-1.7 1.5-2.5 1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5.7.7 1.3 1.5 1.5 2.5",key:"1gvzjb"}],["path",{d:"M9 18h6",key:"x1upvd"}],["path",{d:"M10 22h4",key:"ceow96"}]],Od=K("lightbulb",Fd);/**
327
327
  * @license lucide-react v1.38.0 - ISC
328
328
  *
329
329
  * This source code is licensed under the ISC license.
330
330
  * See the LICENSE file in the root directory of this source tree.
331
- */const Od=[["path",{d:"M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71",key:"1cjeqo"}],["path",{d:"M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71",key:"19qd67"}]],Hd=K("link",Od);/**
331
+ */const Vd=[["path",{d:"M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71",key:"1cjeqo"}],["path",{d:"M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71",key:"19qd67"}]],Hd=K("link",Vd);/**
332
332
  * @license lucide-react v1.38.0 - ISC
333
333
  *
334
334
  * This source code is licensed under the ISC license.
335
335
  * See the LICENSE file in the root directory of this source tree.
336
- */const Vd=[["path",{d:"M9 17H7A5 5 0 0 1 7 7h2",key:"8i5ue5"}],["path",{d:"M15 7h2a5 5 0 1 1 0 10h-2",key:"1b9ql8"}],["line",{x1:"8",x2:"16",y1:"12",y2:"12",key:"1jonct"}]],zd=K("link-2",Vd);/**
336
+ */const zd=[["path",{d:"M9 17H7A5 5 0 0 1 7 7h2",key:"8i5ue5"}],["path",{d:"M15 7h2a5 5 0 1 1 0 10h-2",key:"1b9ql8"}],["line",{x1:"8",x2:"16",y1:"12",y2:"12",key:"1jonct"}]],Wd=K("link-2",zd);/**
337
337
  * @license lucide-react v1.38.0 - ISC
338
338
  *
339
339
  * This source code is licensed under the ISC license.
340
340
  * See the LICENSE file in the root directory of this source tree.
341
- */const Wd=[["path",{d:"M9 17H7A5 5 0 0 1 7 7",key:"10o201"}],["path",{d:"M15 7h2a5 5 0 0 1 4 8",key:"1d3206"}],["line",{x1:"8",x2:"12",y1:"12",y2:"12",key:"rvw6j4"}],["line",{x1:"2",x2:"22",y1:"2",y2:"22",key:"a6p6uj"}]],qd=K("link-2-off",Wd);/**
341
+ */const qd=[["path",{d:"M9 17H7A5 5 0 0 1 7 7",key:"10o201"}],["path",{d:"M15 7h2a5 5 0 0 1 4 8",key:"1d3206"}],["line",{x1:"8",x2:"12",y1:"12",y2:"12",key:"rvw6j4"}],["line",{x1:"2",x2:"22",y1:"2",y2:"22",key:"a6p6uj"}]],Ud=K("link-2-off",qd);/**
342
342
  * @license lucide-react v1.38.0 - ISC
343
343
  *
344
344
  * This source code is licensed under the ISC license.
345
345
  * See the LICENSE file in the root directory of this source tree.
346
- */const Ud=[["path",{d:"M3 5h.01",key:"18ugdj"}],["path",{d:"M3 12h.01",key:"nlz23k"}],["path",{d:"M3 19h.01",key:"noohij"}],["path",{d:"M8 5h13",key:"1pao27"}],["path",{d:"M8 12h13",key:"1za7za"}],["path",{d:"M8 19h13",key:"m83p4d"}]],Gd=K("list",Ud);/**
346
+ */const Gd=[["path",{d:"M3 5h.01",key:"18ugdj"}],["path",{d:"M3 12h.01",key:"nlz23k"}],["path",{d:"M3 19h.01",key:"noohij"}],["path",{d:"M8 5h13",key:"1pao27"}],["path",{d:"M8 12h13",key:"1za7za"}],["path",{d:"M8 19h13",key:"m83p4d"}]],Kd=K("list",Gd);/**
347
347
  * @license lucide-react v1.38.0 - ISC
348
348
  *
349
349
  * This source code is licensed under the ISC license.
350
350
  * See the LICENSE file in the root directory of this source tree.
351
- */const Kd=[["path",{d:"M13 5h8",key:"a7qcls"}],["path",{d:"M13 12h8",key:"h98zly"}],["path",{d:"M13 19h8",key:"c3s6r1"}],["path",{d:"m3 17 2 2 4-4",key:"1jhpwq"}],["path",{d:"m3 7 2 2 4-4",key:"1obspn"}]],Yd=K("list-checks",Kd);/**
351
+ */const Yd=[["path",{d:"M13 5h8",key:"a7qcls"}],["path",{d:"M13 12h8",key:"h98zly"}],["path",{d:"M13 19h8",key:"c3s6r1"}],["path",{d:"m3 17 2 2 4-4",key:"1jhpwq"}],["path",{d:"m3 7 2 2 4-4",key:"1obspn"}]],Zd=K("list-checks",Yd);/**
352
352
  * @license lucide-react v1.38.0 - ISC
353
353
  *
354
354
  * This source code is licensed under the ISC license.
355
355
  * See the LICENSE file in the root directory of this source tree.
356
- */const Zd=[["path",{d:"M11 5h10",key:"1cz7ny"}],["path",{d:"M11 12h10",key:"1438ji"}],["path",{d:"M11 19h10",key:"11t30w"}],["path",{d:"M4 4h1v5",key:"10yrso"}],["path",{d:"M4 9h2",key:"r1h2o0"}],["path",{d:"M6.5 20H3.4c0-1 2.6-1.925 2.6-3.5a1.5 1.5 0 0 0-2.6-1.02",key:"xtkcd5"}]],Xd=K("list-ordered",Zd);/**
356
+ */const Xd=[["path",{d:"M11 5h10",key:"1cz7ny"}],["path",{d:"M11 12h10",key:"1438ji"}],["path",{d:"M11 19h10",key:"11t30w"}],["path",{d:"M4 4h1v5",key:"10yrso"}],["path",{d:"M4 9h2",key:"r1h2o0"}],["path",{d:"M6.5 20H3.4c0-1 2.6-1.925 2.6-3.5a1.5 1.5 0 0 0-2.6-1.02",key:"xtkcd5"}]],Jd=K("list-ordered",Xd);/**
357
357
  * @license lucide-react v1.38.0 - ISC
358
358
  *
359
359
  * This source code is licensed under the ISC license.
360
360
  * See the LICENSE file in the root directory of this source tree.
361
- */const Jd=[["path",{d:"M12 2v4",key:"3427ic"}],["path",{d:"m16.2 7.8 2.9-2.9",key:"r700ao"}],["path",{d:"M18 12h4",key:"wj9ykh"}],["path",{d:"m16.2 16.2 2.9 2.9",key:"1bxg5t"}],["path",{d:"M12 18v4",key:"jadmvz"}],["path",{d:"m4.9 19.1 2.9-2.9",key:"bwix9q"}],["path",{d:"M2 12h4",key:"j09sii"}],["path",{d:"m4.9 4.9 2.9 2.9",key:"giyufr"}]],Qd=K("loader",Jd);/**
361
+ */const Qd=[["path",{d:"M12 2v4",key:"3427ic"}],["path",{d:"m16.2 7.8 2.9-2.9",key:"r700ao"}],["path",{d:"M18 12h4",key:"wj9ykh"}],["path",{d:"m16.2 16.2 2.9 2.9",key:"1bxg5t"}],["path",{d:"M12 18v4",key:"jadmvz"}],["path",{d:"m4.9 19.1 2.9-2.9",key:"bwix9q"}],["path",{d:"M2 12h4",key:"j09sii"}],["path",{d:"m4.9 4.9 2.9 2.9",key:"giyufr"}]],ep=K("loader",Qd);/**
362
362
  * @license lucide-react v1.38.0 - ISC
363
363
  *
364
364
  * This source code is licensed under the ISC license.
365
365
  * See the LICENSE file in the root directory of this source tree.
366
- */const ep=[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]],tp=K("lock",ep);/**
366
+ */const tp=[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]],np=K("lock",tp);/**
367
367
  * @license lucide-react v1.38.0 - ISC
368
368
  *
369
369
  * This source code is licensed under the ISC license.
370
370
  * See the LICENSE file in the root directory of this source tree.
371
- */const np=[["path",{d:"m16 17 5-5-5-5",key:"1bji2h"}],["path",{d:"M21 12H9",key:"dn1m92"}],["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}]],ap=K("log-out",np);/**
371
+ */const ap=[["path",{d:"m16 17 5-5-5-5",key:"1bji2h"}],["path",{d:"M21 12H9",key:"dn1m92"}],["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}]],rp=K("log-out",ap);/**
372
372
  * @license lucide-react v1.38.0 - ISC
373
373
  *
374
374
  * This source code is licensed under the ISC license.
375
375
  * See the LICENSE file in the root directory of this source tree.
376
- */const rp=[["path",{d:"m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7",key:"132q7q"}],["rect",{x:"2",y:"4",width:"20",height:"16",rx:"2",key:"izxlao"}]],op=K("mail",rp);/**
376
+ */const op=[["path",{d:"m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7",key:"132q7q"}],["rect",{x:"2",y:"4",width:"20",height:"16",rx:"2",key:"izxlao"}]],sp=K("mail",op);/**
377
377
  * @license lucide-react v1.38.0 - ISC
378
378
  *
379
379
  * This source code is licensed under the ISC license.
380
380
  * See the LICENSE file in the root directory of this source tree.
381
- */const sp=[["path",{d:"M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0",key:"1r0f0z"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}]],ip=K("map-pin",sp);/**
381
+ */const ip=[["path",{d:"M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0",key:"1r0f0z"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}]],lp=K("map-pin",ip);/**
382
382
  * @license lucide-react v1.38.0 - ISC
383
383
  *
384
384
  * This source code is licensed under the ISC license.
385
385
  * See the LICENSE file in the root directory of this source tree.
386
- */const lp=[["path",{d:"M2.992 16.342a2 2 0 0 1 .094 1.167l-1.065 3.29a1 1 0 0 0 1.236 1.168l3.413-.998a2 2 0 0 1 1.099.092 10 10 0 1 0-4.777-4.719",key:"1sd12s"}]],cp=K("message-circle",lp);/**
386
+ */const cp=[["path",{d:"M2.992 16.342a2 2 0 0 1 .094 1.167l-1.065 3.29a1 1 0 0 0 1.236 1.168l3.413-.998a2 2 0 0 1 1.099.092 10 10 0 1 0-4.777-4.719",key:"1sd12s"}]],up=K("message-circle",cp);/**
387
387
  * @license lucide-react v1.38.0 - ISC
388
388
  *
389
389
  * This source code is licensed under the ISC license.
390
390
  * See the LICENSE file in the root directory of this source tree.
391
- */const up=[["path",{d:"M2.992 16.342a2 2 0 0 1 .094 1.167l-1.065 3.29a1 1 0 0 0 1.236 1.168l3.413-.998a2 2 0 0 1 1.099.092 10 10 0 1 0-4.777-4.719",key:"1sd12s"}],["path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3",key:"1u773s"}],["path",{d:"M12 17h.01",key:"p32p05"}]],dp=K("message-circle-question-mark",up);/**
391
+ */const dp=[["path",{d:"M2.992 16.342a2 2 0 0 1 .094 1.167l-1.065 3.29a1 1 0 0 0 1.236 1.168l3.413-.998a2 2 0 0 1 1.099.092 10 10 0 1 0-4.777-4.719",key:"1sd12s"}],["path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3",key:"1u773s"}],["path",{d:"M12 17h.01",key:"p32p05"}]],pp=K("message-circle-question-mark",dp);/**
392
392
  * @license lucide-react v1.38.0 - ISC
393
393
  *
394
394
  * This source code is licensed under the ISC license.
395
395
  * See the LICENSE file in the root directory of this source tree.
396
- */const pp=[["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"}]],mp=K("message-square",pp);/**
396
+ */const mp=[["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"}]],hp=K("message-square",mp);/**
397
397
  * @license lucide-react v1.38.0 - ISC
398
398
  *
399
399
  * This source code is licensed under the ISC license.
400
400
  * See the LICENSE file in the root directory of this source tree.
401
- */const hp=[["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"}]],fp=K("message-square-text",hp);/**
401
+ */const fp=[["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"}]],Cp=K("message-square-text",fp);/**
402
402
  * @license lucide-react v1.38.0 - ISC
403
403
  *
404
404
  * This source code is licensed under the ISC license.
405
405
  * See the LICENSE file in the root directory of this source tree.
406
- */const Cp=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M8 12h8",key:"1wcyev"}]],gp=K("circle-minus",Cp);/**
406
+ */const gp=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M8 12h8",key:"1wcyev"}]],bp=K("circle-minus",gp);/**
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 bp=[["path",{d:"M11 21.73a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73z",key:"1a0edw"}],["path",{d:"M12 22V12",key:"d0xqtd"}],["polyline",{points:"3.29 7 12 12 20.71 7",key:"ousv84"}],["path",{d:"m7.5 4.27 9 5.15",key:"1c824w"}]],yp=K("package",bp);/**
411
+ */const yp=[["path",{d:"M11 21.73a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73z",key:"1a0edw"}],["path",{d:"M12 22V12",key:"d0xqtd"}],["polyline",{points:"3.29 7 12 12 20.71 7",key:"ousv84"}],["path",{d:"m7.5 4.27 9 5.15",key:"1c824w"}]],vp=K("package",yp);/**
412
412
  * @license lucide-react v1.38.0 - ISC
413
413
  *
414
414
  * This source code is licensed under the ISC license.
415
415
  * See the LICENSE file in the root directory of this source tree.
416
- */const vp=[["path",{d:"M12 22a1 1 0 0 1 0-20 10 9 0 0 1 10 9 5 5 0 0 1-5 5h-2.25a1.75 1.75 0 0 0-1.4 2.8l.3.4a1.75 1.75 0 0 1-1.4 2.8z",key:"e79jfc"}],["circle",{cx:"13.5",cy:"6.5",r:".5",fill:"currentColor",key:"1okk4w"}],["circle",{cx:"17.5",cy:"10.5",r:".5",fill:"currentColor",key:"f64h9f"}],["circle",{cx:"6.5",cy:"12.5",r:".5",fill:"currentColor",key:"qy21gx"}],["circle",{cx:"8.5",cy:"7.5",r:".5",fill:"currentColor",key:"fotxhn"}]],xp=K("palette",vp);/**
416
+ */const xp=[["path",{d:"M12 22a1 1 0 0 1 0-20 10 9 0 0 1 10 9 5 5 0 0 1-5 5h-2.25a1.75 1.75 0 0 0-1.4 2.8l.3.4a1.75 1.75 0 0 1-1.4 2.8z",key:"e79jfc"}],["circle",{cx:"13.5",cy:"6.5",r:".5",fill:"currentColor",key:"1okk4w"}],["circle",{cx:"17.5",cy:"10.5",r:".5",fill:"currentColor",key:"f64h9f"}],["circle",{cx:"6.5",cy:"12.5",r:".5",fill:"currentColor",key:"qy21gx"}],["circle",{cx:"8.5",cy:"7.5",r:".5",fill:"currentColor",key:"fotxhn"}]],_p=K("palette",xp);/**
417
417
  * @license lucide-react v1.38.0 - ISC
418
418
  *
419
419
  * This source code is licensed under the ISC license.
420
420
  * See the LICENSE file in the root directory of this source tree.
421
- */const _p=[["path",{d:"M5.8 11.3 2 22l10.7-3.79",key:"gwxi1d"}],["path",{d:"M4 3h.01",key:"1vcuye"}],["path",{d:"M22 8h.01",key:"1mrtc2"}],["path",{d:"M15 2h.01",key:"1cjtqr"}],["path",{d:"M22 20h.01",key:"1mrys2"}],["path",{d:"m22 2-2.24.75a2.9 2.9 0 0 0-1.96 3.12c.1.86-.57 1.63-1.45 1.63h-.38c-.86 0-1.6.6-1.76 1.44L14 10",key:"hbicv8"}],["path",{d:"m22 13-.82-.33c-.86-.34-1.82.2-1.98 1.11c-.11.7-.72 1.22-1.43 1.22H17",key:"1i94pl"}],["path",{d:"m11 2 .33.82c.34.86-.2 1.82-1.11 1.98C9.52 4.9 9 5.52 9 6.23V7",key:"1cofks"}],["path",{d:"M11 13c1.93 1.93 2.83 4.17 2 5-.83.83-3.07-.07-5-2-1.93-1.93-2.83-4.17-2-5 .83-.83 3.07.07 5 2Z",key:"4kbmks"}]],wp=K("party-popper",_p);/**
421
+ */const wp=[["path",{d:"M5.8 11.3 2 22l10.7-3.79",key:"gwxi1d"}],["path",{d:"M4 3h.01",key:"1vcuye"}],["path",{d:"M22 8h.01",key:"1mrtc2"}],["path",{d:"M15 2h.01",key:"1cjtqr"}],["path",{d:"M22 20h.01",key:"1mrys2"}],["path",{d:"m22 2-2.24.75a2.9 2.9 0 0 0-1.96 3.12c.1.86-.57 1.63-1.45 1.63h-.38c-.86 0-1.6.6-1.76 1.44L14 10",key:"hbicv8"}],["path",{d:"m22 13-.82-.33c-.86-.34-1.82.2-1.98 1.11c-.11.7-.72 1.22-1.43 1.22H17",key:"1i94pl"}],["path",{d:"m11 2 .33.82c.34.86-.2 1.82-1.11 1.98C9.52 4.9 9 5.52 9 6.23V7",key:"1cofks"}],["path",{d:"M11 13c1.93 1.93 2.83 4.17 2 5-.83.83-3.07-.07-5-2-1.93-1.93-2.83-4.17-2-5 .83-.83 3.07.07 5 2Z",key:"4kbmks"}]],kp=K("party-popper",wp);/**
422
422
  * @license lucide-react v1.38.0 - ISC
423
423
  *
424
424
  * This source code is licensed under the ISC license.
425
425
  * See the LICENSE file in the root directory of this source tree.
426
- */const kp=[["rect",{x:"14",y:"3",width:"5",height:"18",rx:"1",key:"kaeet6"}],["rect",{x:"5",y:"3",width:"5",height:"18",rx:"1",key:"1wsw3u"}]],Ap=K("pause",kp);/**
426
+ */const Ap=[["rect",{x:"14",y:"3",width:"5",height:"18",rx:"1",key:"kaeet6"}],["rect",{x:"5",y:"3",width:"5",height:"18",rx:"1",key:"1wsw3u"}]],Np=K("pause",Ap);/**
427
427
  * @license lucide-react v1.38.0 - ISC
428
428
  *
429
429
  * This source code is licensed under the ISC license.
430
430
  * See the LICENSE file in the root directory of this source tree.
431
- */const Np=[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}]],Bp=K("pencil",Np);/**
431
+ */const Bp=[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}]],Dp=K("pencil",Bp);/**
432
432
  * @license lucide-react v1.38.0 - ISC
433
433
  *
434
434
  * This source code is licensed under the ISC license.
435
435
  * See the LICENSE file in the root directory of this source tree.
436
- */const Sp=[["path",{d:"M13.832 16.568a1 1 0 0 0 1.213-.303l.355-.465A2 2 0 0 1 17 15h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2A18 18 0 0 1 2 4a2 2 0 0 1 2-2h3a2 2 0 0 1 2 2v3a2 2 0 0 1-.8 1.6l-.468.351a1 1 0 0 0-.292 1.233 14 14 0 0 0 6.392 6.384",key:"9njp5v"}]],Dp=K("phone",Sp);/**
436
+ */const Sp=[["path",{d:"M13.832 16.568a1 1 0 0 0 1.213-.303l.355-.465A2 2 0 0 1 17 15h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2A18 18 0 0 1 2 4a2 2 0 0 1 2-2h3a2 2 0 0 1 2 2v3a2 2 0 0 1-.8 1.6l-.468.351a1 1 0 0 0-.292 1.233 14 14 0 0 0 6.392 6.384",key:"9njp5v"}]],jp=K("phone",Sp);/**
437
437
  * @license lucide-react v1.38.0 - ISC
438
438
  *
439
439
  * This source code is licensed under the ISC license.
440
440
  * See the LICENSE file in the root directory of this source tree.
441
- */const Tp=[["path",{d:"M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z",key:"10ikf1"}]],jp=K("play",Tp);/**
441
+ */const Tp=[["path",{d:"M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z",key:"10ikf1"}]],Ep=K("play",Tp);/**
442
442
  * @license lucide-react v1.38.0 - ISC
443
443
  *
444
444
  * This source code is licensed under the ISC license.
445
445
  * See the LICENSE file in the root directory of this source tree.
446
- */const Ep=[["path",{d:"M9 9.003a1 1 0 0 1 1.517-.859l4.997 2.997a1 1 0 0 1 0 1.718l-4.997 2.997A1 1 0 0 1 9 14.996z",key:"kmsa83"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],Mp=K("circle-play",Ep);/**
446
+ */const Mp=[["path",{d:"M9 9.003a1 1 0 0 1 1.517-.859l4.997 2.997a1 1 0 0 1 0 1.718l-4.997 2.997A1 1 0 0 1 9 14.996z",key:"kmsa83"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],Lp=K("circle-play",Mp);/**
447
447
  * @license lucide-react v1.38.0 - ISC
448
448
  *
449
449
  * This source code is licensed under the ISC license.
450
450
  * See the LICENSE file in the root directory of this source tree.
451
- */const Lp=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],$p=K("plus",Lp);/**
451
+ */const $p=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],Rp=K("plus",$p);/**
452
452
  * @license lucide-react v1.38.0 - ISC
453
453
  *
454
454
  * This source code is licensed under the ISC license.
455
455
  * See the LICENSE file in the root directory of this source tree.
456
- */const Rp=[["path",{d:"M6 18H4a2 2 0 0 1-2-2v-5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v5a2 2 0 0 1-2 2h-2",key:"143wyd"}],["path",{d:"M6 9V3a1 1 0 0 1 1-1h10a1 1 0 0 1 1 1v6",key:"1itne7"}],["rect",{x:"6",y:"14",width:"12",height:"8",rx:"1",key:"1ue0tg"}]],Pp=K("printer",Rp);/**
456
+ */const Pp=[["path",{d:"M6 18H4a2 2 0 0 1-2-2v-5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v5a2 2 0 0 1-2 2h-2",key:"143wyd"}],["path",{d:"M6 9V3a1 1 0 0 1 1-1h10a1 1 0 0 1 1 1v6",key:"1itne7"}],["rect",{x:"6",y:"14",width:"12",height:"8",rx:"1",key:"1ue0tg"}]],Ip=K("printer",Pp);/**
457
457
  * @license lucide-react v1.38.0 - ISC
458
458
  *
459
459
  * This source code is licensed under the ISC license.
460
460
  * See the LICENSE file in the root directory of this source tree.
461
- */const Ip=[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]],Fp=K("refresh-cw",Ip);/**
461
+ */const Fp=[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]],Op=K("refresh-cw",Fp);/**
462
462
  * @license lucide-react v1.38.0 - ISC
463
463
  *
464
464
  * This source code is licensed under the ISC license.
465
465
  * See the LICENSE file in the root directory of this source tree.
466
- */const Op=[["path",{d:"m17 2 4 4-4 4",key:"nntrym"}],["path",{d:"M3 11v-1a4 4 0 0 1 4-4h14",key:"84bu3i"}],["path",{d:"m7 22-4-4 4-4",key:"1wqhfi"}],["path",{d:"M21 13v1a4 4 0 0 1-4 4H3",key:"1rx37r"}]],Hp=K("repeat",Op);/**
466
+ */const Vp=[["path",{d:"m17 2 4 4-4 4",key:"nntrym"}],["path",{d:"M3 11v-1a4 4 0 0 1 4-4h14",key:"84bu3i"}],["path",{d:"m7 22-4-4 4-4",key:"1wqhfi"}],["path",{d:"M21 13v1a4 4 0 0 1-4 4H3",key:"1rx37r"}]],Hp=K("repeat",Vp);/**
467
467
  * @license lucide-react v1.38.0 - ISC
468
468
  *
469
469
  * This source code is licensed under the ISC license.
470
470
  * See the LICENSE file in the root directory of this source tree.
471
- */const Vp=[["path",{d:"M14 4a1 1 0 0 1 1-1",key:"dhj8ez"}],["path",{d:"M15 10a1 1 0 0 1-1-1",key:"1mnyi5"}],["path",{d:"M21 4a1 1 0 0 0-1-1",key:"sfs9ap"}],["path",{d:"M21 9a1 1 0 0 1-1 1",key:"mp6qeo"}],["path",{d:"m3 7 3 3 3-3",key:"x25e72"}],["path",{d:"M6 10V5a2 2 0 0 1 2-2h2",key:"15xut4"}],["rect",{x:"3",y:"14",width:"7",height:"7",rx:"1",key:"1bkyp8"}]],zp=K("replace",Vp);/**
471
+ */const zp=[["path",{d:"M14 4a1 1 0 0 1 1-1",key:"dhj8ez"}],["path",{d:"M15 10a1 1 0 0 1-1-1",key:"1mnyi5"}],["path",{d:"M21 4a1 1 0 0 0-1-1",key:"sfs9ap"}],["path",{d:"M21 9a1 1 0 0 1-1 1",key:"mp6qeo"}],["path",{d:"m3 7 3 3 3-3",key:"x25e72"}],["path",{d:"M6 10V5a2 2 0 0 1 2-2h2",key:"15xut4"}],["rect",{x:"3",y:"14",width:"7",height:"7",rx:"1",key:"1bkyp8"}]],Wp=K("replace",zp);/**
472
472
  * @license lucide-react v1.38.0 - ISC
473
473
  *
474
474
  * This source code is licensed under the ISC license.
475
475
  * See the LICENSE file in the root directory of this source tree.
476
- */const Wp=[["path",{d:"M12 15v5s3.03-.55 4-2c1.08-1.62 0-5 0-5",key:"qeys4"}],["path",{d:"M4.5 16.5c-1.5 1.26-2 5-2 5s3.74-.5 5-2c.71-.84.7-2.13-.09-2.91a2.18 2.18 0 0 0-2.91-.09",key:"u4xsad"}],["path",{d:"M9 12a22 22 0 0 1 2-3.95A12.88 12.88 0 0 1 22 2c0 2.72-.78 7.5-6 11a22.4 22.4 0 0 1-4 2z",key:"676m9"}],["path",{d:"M9 12H4s.55-3.03 2-4c1.62-1.08 5 .05 5 .05",key:"92ym6u"}]],qp=K("rocket",Wp);/**
476
+ */const qp=[["path",{d:"M12 15v5s3.03-.55 4-2c1.08-1.62 0-5 0-5",key:"qeys4"}],["path",{d:"M4.5 16.5c-1.5 1.26-2 5-2 5s3.74-.5 5-2c.71-.84.7-2.13-.09-2.91a2.18 2.18 0 0 0-2.91-.09",key:"u4xsad"}],["path",{d:"M9 12a22 22 0 0 1 2-3.95A12.88 12.88 0 0 1 22 2c0 2.72-.78 7.5-6 11a22.4 22.4 0 0 1-4 2z",key:"676m9"}],["path",{d:"M9 12H4s.55-3.03 2-4c1.62-1.08 5 .05 5 .05",key:"92ym6u"}]],Up=K("rocket",qp);/**
477
477
  * @license lucide-react v1.38.0 - ISC
478
478
  *
479
479
  * This source code is licensed under the ISC license.
480
480
  * See the LICENSE file in the root directory of this source tree.
481
- */const Up=[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]],Gp=K("rotate-ccw",Up);/**
481
+ */const Gp=[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]],Kp=K("rotate-ccw",Gp);/**
482
482
  * @license lucide-react v1.38.0 - ISC
483
483
  *
484
484
  * This source code is licensed under the ISC license.
485
485
  * See the LICENSE file in the root directory of this source tree.
486
- */const Kp=[["path",{d:"M21 12a9 9 0 1 1-9-9c2.52 0 4.93 1 6.74 2.74L21 8",key:"1p45f6"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}]],Yp=K("rotate-cw",Kp);/**
486
+ */const Yp=[["path",{d:"M21 12a9 9 0 1 1-9-9c2.52 0 4.93 1 6.74 2.74L21 8",key:"1p45f6"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}]],Zp=K("rotate-cw",Yp);/**
487
487
  * @license lucide-react v1.38.0 - ISC
488
488
  *
489
489
  * This source code is licensed under the ISC license.
490
490
  * See the LICENSE file in the root directory of this source tree.
491
- */const Zp=[["path",{d:"M7 21h10",key:"1b0cd5"}],["path",{d:"M12 21a9 9 0 0 0 9-9H3a9 9 0 0 0 9 9Z",key:"4rw317"}],["path",{d:"M11.38 12a2.4 2.4 0 0 1-.4-4.77 2.4 2.4 0 0 1 3.2-2.77 2.4 2.4 0 0 1 3.47-.63 2.4 2.4 0 0 1 3.37 3.37 2.4 2.4 0 0 1-1.1 3.7 2.51 2.51 0 0 1 .03 1.1",key:"10xrj0"}],["path",{d:"m13 12 4-4",key:"1hckqy"}],["path",{d:"M10.9 7.25A3.99 3.99 0 0 0 4 10c0 .73.2 1.41.54 2",key:"1p4srx"}]],Xp=K("salad",Zp);/**
491
+ */const Xp=[["path",{d:"M7 21h10",key:"1b0cd5"}],["path",{d:"M12 21a9 9 0 0 0 9-9H3a9 9 0 0 0 9 9Z",key:"4rw317"}],["path",{d:"M11.38 12a2.4 2.4 0 0 1-.4-4.77 2.4 2.4 0 0 1 3.2-2.77 2.4 2.4 0 0 1 3.47-.63 2.4 2.4 0 0 1 3.37 3.37 2.4 2.4 0 0 1-1.1 3.7 2.51 2.51 0 0 1 .03 1.1",key:"10xrj0"}],["path",{d:"m13 12 4-4",key:"1hckqy"}],["path",{d:"M10.9 7.25A3.99 3.99 0 0 0 4 10c0 .73.2 1.41.54 2",key:"1p4srx"}]],Jp=K("salad",Xp);/**
492
492
  * @license lucide-react v1.38.0 - ISC
493
493
  *
494
494
  * This source code is licensed under the ISC license.
495
495
  * See the LICENSE file in the root directory of this source tree.
496
- */const Jp=[["path",{d:"M3 7V5a2 2 0 0 1 2-2h2",key:"aa7l1z"}],["path",{d:"M17 3h2a2 2 0 0 1 2 2v2",key:"4qcy5o"}],["path",{d:"M21 17v2a2 2 0 0 1-2 2h-2",key:"6vwrx8"}],["path",{d:"M7 21H5a2 2 0 0 1-2-2v-2",key:"ioqczr"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}],["path",{d:"m16 16-1.9-1.9",key:"1dq9hf"}]],Qp=K("scan-search",Jp);/**
496
+ */const Qp=[["path",{d:"M3 7V5a2 2 0 0 1 2-2h2",key:"aa7l1z"}],["path",{d:"M17 3h2a2 2 0 0 1 2 2v2",key:"4qcy5o"}],["path",{d:"M21 17v2a2 2 0 0 1-2 2h-2",key:"6vwrx8"}],["path",{d:"M7 21H5a2 2 0 0 1-2-2v-2",key:"ioqczr"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}],["path",{d:"m16 16-1.9-1.9",key:"1dq9hf"}]],e1=K("scan-search",Qp);/**
497
497
  * @license lucide-react v1.38.0 - ISC
498
498
  *
499
499
  * This source code is licensed under the ISC license.
500
500
  * See the LICENSE file in the root directory of this source tree.
501
- */const e1=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]],Ro=K("circle-alert",e1);/**
501
+ */const t1=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]],Po=K("circle-alert",t1);/**
502
502
  * @license lucide-react v1.38.0 - ISC
503
503
  *
504
504
  * This source code is licensed under the ISC license.
505
505
  * See the LICENSE file in the root directory of this source tree.
506
- */const t1=[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]],Po=K("circle-check-big",t1);/**
506
+ */const n1=[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]],Io=K("circle-check-big",n1);/**
507
507
  * @license lucide-react v1.38.0 - ISC
508
508
  *
509
509
  * This source code is licensed under the ISC license.
510
510
  * See the LICENSE file in the root directory of this source tree.
511
- */const n1=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],a1=K("search",n1);/**
511
+ */const a1=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],r1=K("search",a1);/**
512
512
  * @license lucide-react v1.38.0 - ISC
513
513
  *
514
514
  * This source code is licensed under the ISC license.
515
515
  * See the LICENSE file in the root directory of this source tree.
516
- */const r1=[["circle",{cx:"6",cy:"6",r:"3",key:"1lh9wr"}],["path",{d:"M8.12 8.12 12 12",key:"1alkpv"}],["path",{d:"M20 4 8.12 15.88",key:"xgtan2"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}],["path",{d:"M14.8 14.8 20 20",key:"ptml3r"}]],o1=K("scissors",r1);/**
516
+ */const o1=[["circle",{cx:"6",cy:"6",r:"3",key:"1lh9wr"}],["path",{d:"M8.12 8.12 12 12",key:"1alkpv"}],["path",{d:"M20 4 8.12 15.88",key:"xgtan2"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}],["path",{d:"M14.8 14.8 20 20",key:"ptml3r"}]],s1=K("scissors",o1);/**
517
517
  * @license lucide-react v1.38.0 - ISC
518
518
  *
519
519
  * This source code is licensed under the ISC license.
520
520
  * See the LICENSE file in the root directory of this source tree.
521
- */const s1=[["path",{d:"m13.5 8.5-5 5",key:"1cs55j"}],["path",{d:"m8.5 8.5 5 5",key:"a8mexj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]],i1=K("search-x",s1);/**
521
+ */const i1=[["path",{d:"m13.5 8.5-5 5",key:"1cs55j"}],["path",{d:"m8.5 8.5 5 5",key:"a8mexj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]],l1=K("search-x",i1);/**
522
522
  * @license lucide-react v1.38.0 - ISC
523
523
  *
524
524
  * This source code is licensed under the ISC license.
525
525
  * See the LICENSE file in the root directory of this source tree.
526
- */const l1=[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]],c1=K("send",l1);/**
526
+ */const c1=[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]],u1=K("send",c1);/**
527
527
  * @license lucide-react v1.38.0 - ISC
528
528
  *
529
529
  * This source code is licensed under the ISC license.
530
530
  * See the LICENSE file in the root directory of this source tree.
531
- */const u1=[["path",{d:"M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915",key:"1i5ecw"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],d1=K("settings",u1);/**
531
+ */const d1=[["path",{d:"M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915",key:"1i5ecw"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],p1=K("settings",d1);/**
532
532
  * @license lucide-react v1.38.0 - ISC
533
533
  *
534
534
  * This source code is licensed under the ISC license.
535
535
  * See the LICENSE file in the root directory of this source tree.
536
- */const p1=[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],m1=K("shield-check",p1);/**
536
+ */const m1=[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],h1=K("shield-check",m1);/**
537
537
  * @license lucide-react v1.38.0 - ISC
538
538
  *
539
539
  * This source code is licensed under the ISC license.
540
540
  * See the LICENSE file in the root directory of this source tree.
541
- */const h1=[["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"}]],f1=K("shopping-cart",h1);/**
541
+ */const f1=[["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"}]],C1=K("shopping-cart",f1);/**
542
542
  * @license lucide-react v1.38.0 - ISC
543
543
  *
544
544
  * This source code is licensed under the ISC license.
545
545
  * See the LICENSE file in the root directory of this source tree.
546
- */const C1=[["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"}]],g1=K("shuffle",C1);/**
546
+ */const g1=[["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"}]],b1=K("shuffle",g1);/**
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 b1=[["path",{d:"M17.971 4.285A2 2 0 0 1 21 6v12a2 2 0 0 1-3.029 1.715l-9.997-5.998a2 2 0 0 1-.003-3.432z",key:"15892j"}],["path",{d:"M3 20V4",key:"1ptbpl"}]],y1=K("skip-back",b1);/**
551
+ */const y1=[["path",{d:"M17.971 4.285A2 2 0 0 1 21 6v12a2 2 0 0 1-3.029 1.715l-9.997-5.998a2 2 0 0 1-.003-3.432z",key:"15892j"}],["path",{d:"M3 20V4",key:"1ptbpl"}]],v1=K("skip-back",y1);/**
552
552
  * @license lucide-react v1.38.0 - ISC
553
553
  *
554
554
  * This source code is licensed under the ISC license.
555
555
  * See the LICENSE file in the root directory of this source tree.
556
- */const v1=[["path",{d:"M21 4v16",key:"7j8fe9"}],["path",{d:"M6.029 4.285A2 2 0 0 0 3 6v12a2 2 0 0 0 3.029 1.715l9.997-5.998a2 2 0 0 0 .003-3.432z",key:"zs4d6"}]],x1=K("skip-forward",v1);/**
556
+ */const x1=[["path",{d:"M21 4v16",key:"7j8fe9"}],["path",{d:"M6.029 4.285A2 2 0 0 0 3 6v12a2 2 0 0 0 3.029 1.715l9.997-5.998a2 2 0 0 0 .003-3.432z",key:"zs4d6"}]],_1=K("skip-forward",x1);/**
557
557
  * @license lucide-react v1.38.0 - ISC
558
558
  *
559
559
  * This source code is licensed under the ISC license.
560
560
  * See the LICENSE file in the root directory of this source tree.
561
- */const _1=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}]],w1=K("square",_1);/**
561
+ */const w1=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}]],k1=K("square",w1);/**
562
562
  * @license lucide-react v1.38.0 - ISC
563
563
  *
564
564
  * This source code is licensed under the ISC license.
565
565
  * See the LICENSE file in the root directory of this source tree.
566
- */const k1=[["path",{d:"M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z",key:"r04s7s"}]],A1=K("star",k1);/**
566
+ */const A1=[["path",{d:"M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z",key:"r04s7s"}]],N1=K("star",A1);/**
567
567
  * @license lucide-react v1.38.0 - ISC
568
568
  *
569
569
  * This source code is licensed under the ISC license.
570
570
  * See the LICENSE file in the root directory of this source tree.
571
- */const N1=[["path",{d:"M15 21v-5a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v5",key:"slp6dd"}],["path",{d:"M17.774 10.31a1.12 1.12 0 0 0-1.549 0 2.5 2.5 0 0 1-3.451 0 1.12 1.12 0 0 0-1.548 0 2.5 2.5 0 0 1-3.452 0 1.12 1.12 0 0 0-1.549 0 2.5 2.5 0 0 1-3.77-3.248l2.889-4.184A2 2 0 0 1 7 2h10a2 2 0 0 1 1.653.873l2.895 4.192a2.5 2.5 0 0 1-3.774 3.244",key:"o0xfot"}],["path",{d:"M4 10.95V19a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-8.05",key:"wn3emo"}]],B1=K("store",N1);/**
571
+ */const B1=[["path",{d:"M15 21v-5a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v5",key:"slp6dd"}],["path",{d:"M17.774 10.31a1.12 1.12 0 0 0-1.549 0 2.5 2.5 0 0 1-3.451 0 1.12 1.12 0 0 0-1.548 0 2.5 2.5 0 0 1-3.452 0 1.12 1.12 0 0 0-1.549 0 2.5 2.5 0 0 1-3.77-3.248l2.889-4.184A2 2 0 0 1 7 2h10a2 2 0 0 1 1.653.873l2.895 4.192a2.5 2.5 0 0 1-3.774 3.244",key:"o0xfot"}],["path",{d:"M4 10.95V19a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-8.05",key:"wn3emo"}]],D1=K("store",B1);/**
572
572
  * @license lucide-react v1.38.0 - ISC
573
573
  *
574
574
  * This source code is licensed under the ISC license.
575
575
  * See the LICENSE file in the root directory of this source tree.
576
- */const S1=[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 3v1",key:"1asbbs"}],["path",{d:"M12 20v1",key:"1wcdkc"}],["path",{d:"M3 12h1",key:"lp3yf2"}],["path",{d:"M20 12h1",key:"1vloll"}],["path",{d:"m18.364 5.636-.707.707",key:"1hakh0"}],["path",{d:"m6.343 17.657-.707.707",key:"18m9nf"}],["path",{d:"m5.636 5.636.707.707",key:"1xv1c5"}],["path",{d:"m17.657 17.657.707.707",key:"vl76zb"}]],D1=K("sun-medium",S1);/**
576
+ */const S1=[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 3v1",key:"1asbbs"}],["path",{d:"M12 20v1",key:"1wcdkc"}],["path",{d:"M3 12h1",key:"lp3yf2"}],["path",{d:"M20 12h1",key:"1vloll"}],["path",{d:"m18.364 5.636-.707.707",key:"1hakh0"}],["path",{d:"m6.343 17.657-.707.707",key:"18m9nf"}],["path",{d:"m5.636 5.636.707.707",key:"1xv1c5"}],["path",{d:"m17.657 17.657.707.707",key:"vl76zb"}]],j1=K("sun-medium",S1);/**
577
577
  * @license lucide-react v1.38.0 - ISC
578
578
  *
579
579
  * This source code is licensed under the ISC license.
580
580
  * See the LICENSE file in the root directory of this source tree.
581
- */const T1=[["path",{d:"M12 3v18",key:"108xh3"}],["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M3 9h18",key:"1pudct"}],["path",{d:"M3 15h18",key:"5xshup"}]],j1=K("table",T1);/**
581
+ */const T1=[["path",{d:"M12 3v18",key:"108xh3"}],["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M3 9h18",key:"1pudct"}],["path",{d:"M3 15h18",key:"5xshup"}]],E1=K("table",T1);/**
582
582
  * @license lucide-react v1.38.0 - ISC
583
583
  *
584
584
  * This source code is licensed under the ISC license.
585
585
  * See the LICENSE file in the root directory of this source tree.
586
- */const E1=[["path",{d:"M9 3H5a2 2 0 0 0-2 2v4m6-6h10a2 2 0 0 1 2 2v4M9 3v18m0 0h10a2 2 0 0 0 2-2V9M9 21H5a2 2 0 0 1-2-2V9m0 0h18",key:"gugj83"}]],M1=K("table-2",E1);/**
586
+ */const M1=[["path",{d:"M9 3H5a2 2 0 0 0-2 2v4m6-6h10a2 2 0 0 1 2 2v4M9 3v18m0 0h10a2 2 0 0 0 2-2V9M9 21H5a2 2 0 0 1-2-2V9m0 0h18",key:"gugj83"}]],L1=K("table-2",M1);/**
587
587
  * @license lucide-react v1.38.0 - ISC
588
588
  *
589
589
  * This source code is licensed under the ISC license.
590
590
  * See the LICENSE file in the root directory of this source tree.
591
- */const L1=[["path",{d:"M12.586 2.586A2 2 0 0 0 11.172 2H4a2 2 0 0 0-2 2v7.172a2 2 0 0 0 .586 1.414l8.704 8.704a2.426 2.426 0 0 0 3.42 0l6.58-6.58a2.426 2.426 0 0 0 0-3.42z",key:"vktsd0"}],["circle",{cx:"7.5",cy:"7.5",r:".5",fill:"currentColor",key:"kqv944"}]],$1=K("tag",L1);/**
591
+ */const $1=[["path",{d:"M12.586 2.586A2 2 0 0 0 11.172 2H4a2 2 0 0 0-2 2v7.172a2 2 0 0 0 .586 1.414l8.704 8.704a2.426 2.426 0 0 0 3.42 0l6.58-6.58a2.426 2.426 0 0 0 0-3.42z",key:"vktsd0"}],["circle",{cx:"7.5",cy:"7.5",r:".5",fill:"currentColor",key:"kqv944"}]],R1=K("tag",$1);/**
592
592
  * @license lucide-react v1.38.0 - ISC
593
593
  *
594
594
  * This source code is licensed under the ISC license.
595
595
  * See the LICENSE file in the root directory of this source tree.
596
- */const R1=[["path",{d:"M12 19h8",key:"baeox8"}],["path",{d:"m4 17 6-6-6-6",key:"1yngyt"}]],P1=K("terminal",R1);/**
596
+ */const P1=[["path",{d:"M12 19h8",key:"baeox8"}],["path",{d:"m4 17 6-6-6-6",key:"1yngyt"}]],I1=K("terminal",P1);/**
597
597
  * @license lucide-react v1.38.0 - ISC
598
598
  *
599
599
  * This source code is licensed under the ISC license.
600
600
  * See the LICENSE file in the root directory of this source tree.
601
- */const I1=[["path",{d:"M12 20h-1a2 2 0 0 1-2-2 2 2 0 0 1-2 2H6",key:"1528k5"}],["path",{d:"M13 8h7a2 2 0 0 1 2 2v4a2 2 0 0 1-2 2h-7",key:"13ksps"}],["path",{d:"M5 16H4a2 2 0 0 1-2-2v-4a2 2 0 0 1 2-2h1",key:"1n9rhb"}],["path",{d:"M6 4h1a2 2 0 0 1 2 2 2 2 0 0 1 2-2h1",key:"1mj8rg"}],["path",{d:"M9 6v12",key:"velyjx"}]],F1=K("text-cursor-input",I1);/**
601
+ */const F1=[["path",{d:"M12 20h-1a2 2 0 0 1-2-2 2 2 0 0 1-2 2H6",key:"1528k5"}],["path",{d:"M13 8h7a2 2 0 0 1 2 2v4a2 2 0 0 1-2 2h-7",key:"13ksps"}],["path",{d:"M5 16H4a2 2 0 0 1-2-2v-4a2 2 0 0 1 2-2h1",key:"1n9rhb"}],["path",{d:"M6 4h1a2 2 0 0 1 2 2 2 2 0 0 1 2-2h1",key:"1mj8rg"}],["path",{d:"M9 6v12",key:"velyjx"}]],O1=K("text-cursor-input",F1);/**
602
602
  * @license lucide-react v1.38.0 - ISC
603
603
  *
604
604
  * This source code is licensed under the ISC license.
605
605
  * See the LICENSE file in the root directory of this source tree.
606
- */const O1=[["path",{d:"M15 5h6",key:"1pr8yx"}],["path",{d:"M15 12h6",key:"upa0zy"}],["path",{d:"M3 19h18",key:"awlh7x"}],["path",{d:"m3 12 3.553-7.724a.5.5 0 0 1 .894 0L11 12",key:"6lvno8"}],["path",{d:"M3.92 10h6.16",key:"1tl8ex"}]],H1=K("text-initial",O1);/**
606
+ */const V1=[["path",{d:"M15 5h6",key:"1pr8yx"}],["path",{d:"M15 12h6",key:"upa0zy"}],["path",{d:"M3 19h18",key:"awlh7x"}],["path",{d:"m3 12 3.553-7.724a.5.5 0 0 1 .894 0L11 12",key:"6lvno8"}],["path",{d:"M3.92 10h6.16",key:"1tl8ex"}]],H1=K("text-initial",V1);/**
607
607
  * @license lucide-react v1.38.0 - ISC
608
608
  *
609
609
  * This source code is licensed under the ISC license.
610
610
  * See the LICENSE file in the root directory of this source tree.
611
- */const V1=[["path",{d:"M2 9a3 3 0 0 1 0 6v2a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-2a3 3 0 0 1 0-6V7a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2Z",key:"qn84l0"}],["path",{d:"M13 5v2",key:"dyzc3o"}],["path",{d:"M13 17v2",key:"1ont0d"}],["path",{d:"M13 11v2",key:"1wjjxi"}]],z1=K("ticket",V1);/**
611
+ */const z1=[["path",{d:"M2 9a3 3 0 0 1 0 6v2a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-2a3 3 0 0 1 0-6V7a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2Z",key:"qn84l0"}],["path",{d:"M13 5v2",key:"dyzc3o"}],["path",{d:"M13 17v2",key:"1ont0d"}],["path",{d:"M13 11v2",key:"1wjjxi"}]],W1=K("ticket",z1);/**
612
612
  * @license lucide-react v1.38.0 - ISC
613
613
  *
614
614
  * This source code is licensed under the ISC license.
615
615
  * See the LICENSE file in the root directory of this source tree.
616
- */const W1=[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]],q1=K("trash-2",W1);/**
616
+ */const q1=[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]],U1=K("trash-2",q1);/**
617
617
  * @license lucide-react v1.38.0 - ISC
618
618
  *
619
619
  * This source code is licensed under the ISC license.
620
620
  * See the LICENSE file in the root directory of this source tree.
621
- */const U1=[["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]],G1=K("trash",U1);/**
621
+ */const G1=[["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]],K1=K("trash",G1);/**
622
622
  * @license lucide-react v1.38.0 - ISC
623
623
  *
624
624
  * This source code is licensed under the ISC license.
625
625
  * See the LICENSE file in the root directory of this source tree.
626
- */const K1=[["path",{d:"M16 7h6v6",key:"box55l"}],["path",{d:"m22 7-8.5 8.5-5-5L2 17",key:"1t1m79"}]],Y1=K("trending-up",K1);/**
626
+ */const Y1=[["path",{d:"M16 7h6v6",key:"box55l"}],["path",{d:"m22 7-8.5 8.5-5-5L2 17",key:"1t1m79"}]],Z1=K("trending-up",Y1);/**
627
627
  * @license lucide-react v1.38.0 - ISC
628
628
  *
629
629
  * This source code is licensed under the ISC license.
630
630
  * See the LICENSE file in the root directory of this source tree.
631
- */const Z1=[["path",{d:"M10 14.66V17a1 1 0 0 1-1 1 2 2 0 0 0-2 2v2",key:"pwuv1l"}],["path",{d:"M14 14.66V17a1 1 0 0 0 1 1 2 2 0 0 1 2 2v2",key:"1y54w1"}],["path",{d:"M17.916 10H19.5A2.5 2.5 0 0 0 22 7.5V5a1 1 0 0 0-1-1h-3",key:"e30mpu"}],["path",{d:"M4 22h16",key:"57wxv0"}],["path",{d:"M6 9a6 6 0 0 0 12 0V3a1 1 0 0 0-1-1H7a1 1 0 0 0-1 1z",key:"1mhfuq"}],["path",{d:"M6.084 10H4.5A2.5 2.5 0 0 1 2 7.5V5a1 1 0 0 1 1-1h3",key:"i0yafy"}]],X1=K("trophy",Z1);/**
631
+ */const X1=[["path",{d:"M10 14.66V17a1 1 0 0 1-1 1 2 2 0 0 0-2 2v2",key:"pwuv1l"}],["path",{d:"M14 14.66V17a1 1 0 0 0 1 1 2 2 0 0 1 2 2v2",key:"1y54w1"}],["path",{d:"M17.916 10H19.5A2.5 2.5 0 0 0 22 7.5V5a1 1 0 0 0-1-1h-3",key:"e30mpu"}],["path",{d:"M4 22h16",key:"57wxv0"}],["path",{d:"M6 9a6 6 0 0 0 12 0V3a1 1 0 0 0-1-1H7a1 1 0 0 0-1 1z",key:"1mhfuq"}],["path",{d:"M6.084 10H4.5A2.5 2.5 0 0 1 2 7.5V5a1 1 0 0 1 1-1h3",key:"i0yafy"}]],J1=K("trophy",X1);/**
632
632
  * @license lucide-react v1.38.0 - ISC
633
633
  *
634
634
  * This source code is licensed under the ISC license.
635
635
  * See the LICENSE file in the root directory of this source tree.
636
- */const J1=[["path",{d:"m18.84 12.25 1.72-1.71h-.02a5.004 5.004 0 0 0-.12-7.07 5.006 5.006 0 0 0-6.95 0l-1.72 1.71",key:"yqzxt4"}],["path",{d:"m5.17 11.75-1.71 1.71a5.004 5.004 0 0 0 .12 7.07 5.006 5.006 0 0 0 6.95 0l1.71-1.71",key:"4qinb0"}],["line",{x1:"8",x2:"8",y1:"2",y2:"5",key:"1041cp"}],["line",{x1:"2",x2:"5",y1:"8",y2:"8",key:"14m1p5"}],["line",{x1:"16",x2:"16",y1:"19",y2:"22",key:"rzdirn"}],["line",{x1:"19",x2:"22",y1:"16",y2:"16",key:"ox905f"}]],Q1=K("unlink",J1);/**
636
+ */const Q1=[["path",{d:"m18.84 12.25 1.72-1.71h-.02a5.004 5.004 0 0 0-.12-7.07 5.006 5.006 0 0 0-6.95 0l-1.72 1.71",key:"yqzxt4"}],["path",{d:"m5.17 11.75-1.71 1.71a5.004 5.004 0 0 0 .12 7.07 5.006 5.006 0 0 0 6.95 0l1.71-1.71",key:"4qinb0"}],["line",{x1:"8",x2:"8",y1:"2",y2:"5",key:"1041cp"}],["line",{x1:"2",x2:"5",y1:"8",y2:"8",key:"14m1p5"}],["line",{x1:"16",x2:"16",y1:"19",y2:"22",key:"rzdirn"}],["line",{x1:"19",x2:"22",y1:"16",y2:"16",key:"ox905f"}]],em=K("unlink",Q1);/**
637
637
  * @license lucide-react v1.38.0 - ISC
638
638
  *
639
639
  * This source code is licensed under the ISC license.
640
640
  * See the LICENSE file in the root directory of this source tree.
641
- */const em=[["path",{d:"M12 3v12",key:"1x0j5s"}],["path",{d:"m17 8-5-5-5 5",key:"7q97r8"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}]],tm=K("upload",em);/**
641
+ */const tm=[["path",{d:"M12 3v12",key:"1x0j5s"}],["path",{d:"m17 8-5-5-5 5",key:"7q97r8"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}]],nm=K("upload",tm);/**
642
642
  * @license lucide-react v1.38.0 - ISC
643
643
  *
644
644
  * This source code is licensed under the ISC license.
645
645
  * See the LICENSE file in the root directory of this source tree.
646
- */const nm=[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]],er=K("user",nm);/**
646
+ */const am=[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]],tr=K("user",am);/**
647
647
  * @license lucide-react v1.38.0 - ISC
648
648
  *
649
649
  * This source code is licensed under the ISC license.
650
650
  * See the LICENSE file in the root directory of this source tree.
651
- */const am=[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["line",{x1:"19",x2:"19",y1:"8",y2:"14",key:"1bvyxn"}],["line",{x1:"22",x2:"16",y1:"11",y2:"11",key:"1shjgl"}]],rm=K("user-plus",am);/**
651
+ */const rm=[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["line",{x1:"19",x2:"19",y1:"8",y2:"14",key:"1bvyxn"}],["line",{x1:"22",x2:"16",y1:"11",y2:"11",key:"1shjgl"}]],om=K("user-plus",rm);/**
652
652
  * @license lucide-react v1.38.0 - ISC
653
653
  *
654
654
  * This source code is licensed under the ISC license.
655
655
  * See the LICENSE file in the root directory of this source tree.
656
- */const om=[["circle",{cx:"12",cy:"8",r:"5",key:"1hypcn"}],["path",{d:"M20 21a8 8 0 0 0-16 0",key:"rfgkzh"}]],sm=K("user-round",om);/**
656
+ */const sm=[["circle",{cx:"12",cy:"8",r:"5",key:"1hypcn"}],["path",{d:"M20 21a8 8 0 0 0-16 0",key:"rfgkzh"}]],im=K("user-round",sm);/**
657
657
  * @license lucide-react v1.38.0 - ISC
658
658
  *
659
659
  * This source code is licensed under the ISC license.
660
660
  * See the LICENSE file in the root directory of this source tree.
661
- */const im=[["path",{d:"M2 21a8 8 0 0 1 13.292-6",key:"bjp14o"}],["circle",{cx:"10",cy:"8",r:"5",key:"o932ke"}],["path",{d:"m16 19 2 2 4-4",key:"1b14m6"}]],lm=K("user-round-check",im);/**
661
+ */const lm=[["path",{d:"M2 21a8 8 0 0 1 13.292-6",key:"bjp14o"}],["circle",{cx:"10",cy:"8",r:"5",key:"o932ke"}],["path",{d:"m16 19 2 2 4-4",key:"1b14m6"}]],cm=K("user-round-check",lm);/**
662
662
  * @license lucide-react v1.38.0 - ISC
663
663
  *
664
664
  * This source code is licensed under the ISC license.
665
665
  * See the LICENSE file in the root directory of this source tree.
666
- */const cm=[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["path",{d:"M16 3.128a4 4 0 0 1 0 7.744",key:"16gr8j"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}]],um=K("users",cm);/**
666
+ */const um=[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["path",{d:"M16 3.128a4 4 0 0 1 0 7.744",key:"16gr8j"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}]],dm=K("users",um);/**
667
667
  * @license lucide-react v1.38.0 - ISC
668
668
  *
669
669
  * This source code is licensed under the ISC license.
670
670
  * See the LICENSE file in the root directory of this source tree.
671
- */const dm=[["path",{d:"M18 21a8 8 0 0 0-16 0",key:"3ypg7q"}],["circle",{cx:"10",cy:"8",r:"5",key:"o932ke"}],["path",{d:"M22 20c0-3.37-2-6.5-4-8a5 5 0 0 0-.45-8.3",key:"10s06x"}]],pm=K("users-round",dm);/**
671
+ */const pm=[["path",{d:"M18 21a8 8 0 0 0-16 0",key:"3ypg7q"}],["circle",{cx:"10",cy:"8",r:"5",key:"o932ke"}],["path",{d:"M22 20c0-3.37-2-6.5-4-8a5 5 0 0 0-.45-8.3",key:"10s06x"}]],mm=K("users-round",pm);/**
672
672
  * @license lucide-react v1.38.0 - ISC
673
673
  *
674
674
  * This source code is licensed under the ISC license.
675
675
  * See the LICENSE file in the root directory of this source tree.
676
- */const mm=[["path",{d:"M11 4.702a.705.705 0 0 0-1.203-.498L6.413 7.587A1.4 1.4 0 0 1 5.416 8H3a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h2.416a1.4 1.4 0 0 1 .997.413l3.383 3.384A.705.705 0 0 0 11 19.298z",key:"uqj9uw"}],["path",{d:"M16 9a5 5 0 0 1 0 6",key:"1q6k2b"}],["path",{d:"M19.364 18.364a9 9 0 0 0 0-12.728",key:"ijwkga"}]],Io=K("volume-2",mm);/**
676
+ */const hm=[["path",{d:"M11 4.702a.705.705 0 0 0-1.203-.498L6.413 7.587A1.4 1.4 0 0 1 5.416 8H3a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h2.416a1.4 1.4 0 0 1 .997.413l3.383 3.384A.705.705 0 0 0 11 19.298z",key:"uqj9uw"}],["path",{d:"M16 9a5 5 0 0 1 0 6",key:"1q6k2b"}],["path",{d:"M19.364 18.364a9 9 0 0 0 0-12.728",key:"ijwkga"}]],Fo=K("volume-2",hm);/**
677
677
  * @license lucide-react v1.38.0 - ISC
678
678
  *
679
679
  * This source code is licensed under the ISC license.
680
680
  * See the LICENSE file in the root directory of this source tree.
681
- */const hm=[["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"}]],fm=K("wrench",hm);/**
681
+ */const fm=[["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"}]],Cm=K("wrench",fm);/**
682
682
  * @license lucide-react v1.38.0 - ISC
683
683
  *
684
684
  * This source code is licensed under the ISC license.
685
685
  * See the LICENSE file in the root directory of this source tree.
686
- */const Cm=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],Fo=K("x",Cm);/**
686
+ */const gm=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],Oo=K("x",gm);/**
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 gm=[["path",{d:"M15.914 4a1.5 1.5 0 00-2.474-1.561l-9 9A1.5 1.5 0 005.5 14h4.002a.5.5 0 01.471.666L8.086 20a1.5 1.5 0 002.475 1.56l9-9A1.5 1.5 0 0018.5 10h-3.997a.5.5 0 01-.472-.667z",key:"1v7up4"}]],bm=K("zap",gm);/**
691
+ */const bm=[["path",{d:"M15.914 4a1.5 1.5 0 00-2.474-1.561l-9 9A1.5 1.5 0 005.5 14h4.002a.5.5 0 01.471.666L8.086 20a1.5 1.5 0 002.475 1.56l9-9A1.5 1.5 0 0018.5 10h-3.997a.5.5 0 01-.472-.667z",key:"1v7up4"}]],ym=K("zap",bm);/**
692
692
  * @license lucide-react v1.38.0 - ISC
693
693
  *
694
694
  * This source code is licensed under the ISC license.
695
695
  * See the LICENSE file in the root directory of this source tree.
696
- */const ym=[["path",{d:"M12 6v16",key:"nqf5sj"}],["path",{d:"m19 13 2-1a9 9 0 0 1-18 0l2 1",key:"y7qv08"}],["path",{d:"M9 11h6",key:"1fldmi"}],["circle",{cx:"12",cy:"4",r:"2",key:"muu5ef"}]],vm=K("anchor",ym);/**
696
+ */const vm=[["path",{d:"M12 6v16",key:"nqf5sj"}],["path",{d:"m19 13 2-1a9 9 0 0 1-18 0l2 1",key:"y7qv08"}],["path",{d:"M9 11h6",key:"1fldmi"}],["circle",{cx:"12",cy:"4",r:"2",key:"muu5ef"}]],xm=K("anchor",vm);/**
697
697
  * @license lucide-react v1.38.0 - ISC
698
698
  *
699
699
  * This source code is licensed under the ISC license.
700
700
  * See the LICENSE file in the root directory of this source tree.
701
- */const xm=[["path",{d:"M19 9V6a2 2 0 0 0-2-2H7a2 2 0 0 0-2 2v3",key:"irtipd"}],["path",{d:"M3 16a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-5a2 2 0 0 0-4 0v1.5a.5.5 0 0 1-.5.5h-9a.5.5 0 0 1-.5-.5V11a2 2 0 0 0-4 0z",key:"1qyhux"}],["path",{d:"M5 18v2",key:"ppbyun"}],["path",{d:"M19 18v2",key:"gy7782"}]],_m=K("armchair",xm);/**
701
+ */const _m=[["path",{d:"M19 9V6a2 2 0 0 0-2-2H7a2 2 0 0 0-2 2v3",key:"irtipd"}],["path",{d:"M3 16a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-5a2 2 0 0 0-4 0v1.5a.5.5 0 0 1-.5.5h-9a.5.5 0 0 1-.5-.5V11a2 2 0 0 0-4 0z",key:"1qyhux"}],["path",{d:"M5 18v2",key:"ppbyun"}],["path",{d:"M19 18v2",key:"gy7782"}]],wm=K("armchair",_m);/**
702
702
  * @license lucide-react v1.38.0 - ISC
703
703
  *
704
704
  * This source code is licensed under the ISC license.
705
705
  * See the LICENSE file in the root directory of this source tree.
706
- */const wm=[["path",{d:"m3 8 4-4 4 4",key:"11wl7u"}],["path",{d:"M7 4v16",key:"1glfcx"}],["path",{d:"M20 8h-5",key:"1vsyxs"}],["path",{d:"M15 10V6.5a2.5 2.5 0 0 1 5 0V10",key:"ag13bf"}],["path",{d:"M15 14h5l-5 6h5",key:"ur5jdg"}]],km=K("arrow-up-a-z",wm);/**
706
+ */const km=[["path",{d:"m3 8 4-4 4 4",key:"11wl7u"}],["path",{d:"M7 4v16",key:"1glfcx"}],["path",{d:"M20 8h-5",key:"1vsyxs"}],["path",{d:"M15 10V6.5a2.5 2.5 0 0 1 5 0V10",key:"ag13bf"}],["path",{d:"M15 14h5l-5 6h5",key:"ur5jdg"}]],Am=K("arrow-up-a-z",km);/**
707
707
  * @license lucide-react v1.38.0 - ISC
708
708
  *
709
709
  * This source code is licensed under the ISC license.
710
710
  * See the LICENSE file in the root directory of this source tree.
711
- */const Am=[["path",{d:"M5 21v-6",key:"1hz6c0"}],["path",{d:"M12 21V3",key:"1lcnhd"}],["path",{d:"M19 21V9",key:"unv183"}]],Nm=K("chart-no-axes-column",Am);/**
711
+ */const Nm=[["path",{d:"M5 21v-6",key:"1hz6c0"}],["path",{d:"M12 21V3",key:"1lcnhd"}],["path",{d:"M19 21V9",key:"unv183"}]],Bm=K("chart-no-axes-column",Nm);/**
712
712
  * @license lucide-react v1.38.0 - ISC
713
713
  *
714
714
  * This source code is licensed under the ISC license.
715
715
  * See the LICENSE file in the root directory of this source tree.
716
- */const Bm=[["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"}]],Oo=K("calendar",Bm);/**
716
+ */const Dm=[["path",{d:"M8 2v3",key:"1ioesn"}],["path",{d:"M16 2v3",key:"otl347"}],["rect",{x:"3",y:"3",width:"18",height:"18",rx:"2",key:"h1oib"}],["path",{d:"M3 9h18",key:"1pudct"}]],Vo=K("calendar",Dm);/**
717
717
  * @license lucide-react v1.38.0 - ISC
718
718
  *
719
719
  * This source code is licensed under the ISC license.
720
720
  * See the LICENSE file in the root directory of this source tree.
721
- */const Sm=[["path",{d:"M19 17h2c.6 0 1-.4 1-1v-3c0-.9-.7-1.7-1.5-1.9C18.7 10.6 16 10 16 10s-1.3-1.4-2.2-2.3c-.5-.4-1.1-.7-1.8-.7H5c-.6 0-1.1.4-1.4.9l-1.4 2.9A3.7 3.7 0 0 0 2 12v4c0 .6.4 1 1 1h2",key:"5owen"}],["circle",{cx:"7",cy:"17",r:"2",key:"u2ysq9"}],["path",{d:"M9 17h6",key:"r8uit2"}],["circle",{cx:"17",cy:"17",r:"2",key:"axvx0g"}]],Dm=K("car",Sm);/**
721
+ */const Sm=[["path",{d:"M19 17h2c.6 0 1-.4 1-1v-3c0-.9-.7-1.7-1.5-1.9C18.7 10.6 16 10 16 10s-1.3-1.4-2.2-2.3c-.5-.4-1.1-.7-1.8-.7H5c-.6 0-1.1.4-1.4.9l-1.4 2.9A3.7 3.7 0 0 0 2 12v4c0 .6.4 1 1 1h2",key:"5owen"}],["circle",{cx:"7",cy:"17",r:"2",key:"u2ysq9"}],["path",{d:"M9 17h6",key:"r8uit2"}],["circle",{cx:"17",cy:"17",r:"2",key:"axvx0g"}]],jm=K("car",Sm);/**
722
722
  * @license lucide-react v1.38.0 - ISC
723
723
  *
724
724
  * This source code is licensed under the ISC license.
725
725
  * See the LICENSE file in the root directory of this source tree.
726
- */const Tm=[["path",{d:"M10 2v2",key:"7u0qdc"}],["path",{d:"M14 2v2",key:"6buw04"}],["path",{d:"M16 8a1 1 0 0 1 1 1v8a4 4 0 0 1-4 4H7a4 4 0 0 1-4-4V9a1 1 0 0 1 1-1h14a4 4 0 1 1 0 8h-1",key:"pwadti"}],["path",{d:"M6 2v2",key:"colzsn"}]],jm=K("coffee",Tm);/**
726
+ */const Tm=[["path",{d:"M10 2v2",key:"7u0qdc"}],["path",{d:"M14 2v2",key:"6buw04"}],["path",{d:"M16 8a1 1 0 0 1 1 1v8a4 4 0 0 1-4 4H7a4 4 0 0 1-4-4V9a1 1 0 0 1 1-1h14a4 4 0 1 1 0 8h-1",key:"pwadti"}],["path",{d:"M6 2v2",key:"colzsn"}]],Em=K("coffee",Tm);/**
727
727
  * @license lucide-react v1.38.0 - ISC
728
728
  *
729
729
  * This source code is licensed under the ISC license.
730
730
  * See the LICENSE file in the root directory of this source tree.
731
- */const Em=[["line",{x1:"6",x2:"10",y1:"11",y2:"11",key:"1gktln"}],["line",{x1:"8",x2:"8",y1:"9",y2:"13",key:"qnk9ow"}],["line",{x1:"15",x2:"15.01",y1:"12",y2:"12",key:"krot7o"}],["line",{x1:"18",x2:"18.01",y1:"10",y2:"10",key:"1lcuu1"}],["path",{d:"M17.32 5H6.68a4 4 0 0 0-3.978 3.59c-.006.052-.01.101-.017.152C2.604 9.416 2 14.456 2 16a3 3 0 0 0 3 3c1 0 1.5-.5 2-1l1.414-1.414A2 2 0 0 1 9.828 16h4.344a2 2 0 0 1 1.414.586L17 18c.5.5 1 1 2 1a3 3 0 0 0 3-3c0-1.545-.604-6.584-.685-7.258-.007-.05-.011-.1-.017-.151A4 4 0 0 0 17.32 5z",key:"mfqc10"}]],Mm=K("gamepad-2",Em);/**
731
+ */const Mm=[["line",{x1:"6",x2:"10",y1:"11",y2:"11",key:"1gktln"}],["line",{x1:"8",x2:"8",y1:"9",y2:"13",key:"qnk9ow"}],["line",{x1:"15",x2:"15.01",y1:"12",y2:"12",key:"krot7o"}],["line",{x1:"18",x2:"18.01",y1:"10",y2:"10",key:"1lcuu1"}],["path",{d:"M17.32 5H6.68a4 4 0 0 0-3.978 3.59c-.006.052-.01.101-.017.152C2.604 9.416 2 14.456 2 16a3 3 0 0 0 3 3c1 0 1.5-.5 2-1l1.414-1.414A2 2 0 0 1 9.828 16h4.344a2 2 0 0 1 1.414.586L17 18c.5.5 1 1 2 1a3 3 0 0 0 3-3c0-1.545-.604-6.584-.685-7.258-.007-.05-.011-.1-.017-.151A4 4 0 0 0 17.32 5z",key:"mfqc10"}]],Lm=K("gamepad-2",Mm);/**
732
732
  * @license lucide-react v1.38.0 - ISC
733
733
  *
734
734
  * This source code is licensed under the ISC license.
735
735
  * See the LICENSE file in the root directory of this source tree.
736
- */const Lm=[["polyline",{points:"22 12 16 12 14 15 10 15 8 12 2 12",key:"o97t9d"}],["path",{d:"M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"oot6mr"}]],$m=K("inbox",Lm);/**
736
+ */const $m=[["polyline",{points:"22 12 16 12 14 15 10 15 8 12 2 12",key:"o97t9d"}],["path",{d:"M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"oot6mr"}]],Rm=K("inbox",$m);/**
737
737
  * @license lucide-react v1.38.0 - ISC
738
738
  *
739
739
  * This source code is licensed under the ISC license.
740
740
  * See the LICENSE file in the root directory of this source tree.
741
- */const Rm=[["path",{d:"M8 5h13",key:"1pao27"}],["path",{d:"M13 12h8",key:"h98zly"}],["path",{d:"M13 19h8",key:"c3s6r1"}],["path",{d:"M3 10a2 2 0 0 0 2 2h3",key:"1npucw"}],["path",{d:"M3 5v12a2 2 0 0 0 2 2h3",key:"x1gjn2"}]],Pm=K("list-tree",Rm);/**
741
+ */const Pm=[["path",{d:"M8 5h13",key:"1pao27"}],["path",{d:"M13 12h8",key:"h98zly"}],["path",{d:"M13 19h8",key:"c3s6r1"}],["path",{d:"M3 10a2 2 0 0 0 2 2h3",key:"1npucw"}],["path",{d:"M3 5v12a2 2 0 0 0 2 2h3",key:"x1gjn2"}]],Im=K("list-tree",Pm);/**
742
742
  * @license lucide-react v1.38.0 - ISC
743
743
  *
744
744
  * This source code is licensed under the ISC license.
745
745
  * See the LICENSE file in the root directory of this source tree.
746
- */const Im=[["path",{d:"M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z",key:"18887p"}],["path",{d:"M12 11h.01",key:"z322tv"}],["path",{d:"M16 11h.01",key:"xkw8gn"}],["path",{d:"M8 11h.01",key:"1dfujw"}]],Fm=K("message-square-more",Im);/**
746
+ */const Fm=[["path",{d:"M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z",key:"18887p"}],["path",{d:"M12 11h.01",key:"z322tv"}],["path",{d:"M16 11h.01",key:"xkw8gn"}],["path",{d:"M8 11h.01",key:"1dfujw"}]],Om=K("message-square-more",Fm);/**
747
747
  * @license lucide-react v1.38.0 - ISC
748
748
  *
749
749
  * This source code is licensed under the ISC license.
750
750
  * See the LICENSE file in the root directory of this source tree.
751
- */const Om=[["path",{d:"M5 12h14",key:"1ays0h"}]],Hm=K("minus",Om);/**
751
+ */const Vm=[["path",{d:"M5 12h14",key:"1ays0h"}]],Hm=K("minus",Vm);/**
752
752
  * @license lucide-react v1.38.0 - ISC
753
753
  *
754
754
  * This source code is licensed under the ISC license.
755
755
  * See the LICENSE file in the root directory of this source tree.
756
- */const Vm=[["circle",{cx:"18",cy:"5",r:"3",key:"gq8acd"}],["circle",{cx:"6",cy:"12",r:"3",key:"w7nqdw"}],["circle",{cx:"18",cy:"19",r:"3",key:"1xt0gg"}],["line",{x1:"8.59",x2:"15.42",y1:"13.51",y2:"17.49",key:"47mynk"}],["line",{x1:"15.41",x2:"8.59",y1:"6.51",y2:"10.49",key:"1n3mei"}]],zm=K("share-2",Vm);/**
756
+ */const zm=[["circle",{cx:"18",cy:"5",r:"3",key:"gq8acd"}],["circle",{cx:"6",cy:"12",r:"3",key:"w7nqdw"}],["circle",{cx:"18",cy:"19",r:"3",key:"1xt0gg"}],["line",{x1:"8.59",x2:"15.42",y1:"13.51",y2:"17.49",key:"47mynk"}],["line",{x1:"15.41",x2:"8.59",y1:"6.51",y2:"10.49",key:"1n3mei"}]],Wm=K("share-2",zm);/**
757
757
  * @license lucide-react v1.38.0 - ISC
758
758
  *
759
759
  * This source code is licensed under the ISC license.
760
760
  * See the LICENSE file in the root directory of this source tree.
761
- */const Wm=[["path",{d:"M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z",key:"1s2grr"}],["path",{d:"M20 2v4",key:"1rf3ol"}],["path",{d:"M22 4h-4",key:"gwowj6"}],["circle",{cx:"4",cy:"20",r:"2",key:"6kqj1y"}]],qm=K("sparkles",Wm);/**
761
+ */const qm=[["path",{d:"M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z",key:"1s2grr"}],["path",{d:"M20 2v4",key:"1rf3ol"}],["path",{d:"M22 4h-4",key:"gwowj6"}],["circle",{cx:"4",cy:"20",r:"2",key:"6kqj1y"}]],Um=K("sparkles",qm);/**
762
762
  * @license lucide-react v1.38.0 - ISC
763
763
  *
764
764
  * This source code is licensed under the ISC license.
765
765
  * See the LICENSE file in the root directory of this source tree.
766
- */const Um=[["path",{d:"M12 4v16",key:"1654pz"}],["path",{d:"M4 7V5a1 1 0 0 1 1-1h14a1 1 0 0 1 1 1v2",key:"e0r10z"}],["path",{d:"M9 20h6",key:"s66wpe"}]],Gm=K("type",Um);/**
766
+ */const Gm=[["path",{d:"M12 4v16",key:"1654pz"}],["path",{d:"M4 7V5a1 1 0 0 1 1-1h14a1 1 0 0 1 1 1v2",key:"e0r10z"}],["path",{d:"M9 20h6",key:"s66wpe"}]],Km=K("type",Gm);/**
767
767
  * @license lucide-react v1.38.0 - ISC
768
768
  *
769
769
  * This source code is licensed under the ISC license.
770
770
  * See the LICENSE file in the root directory of this source tree.
771
- */const Km=[["path",{d:"M11 4.702a.705.705 0 0 0-1.203-.498L6.413 7.587A1.4 1.4 0 0 1 5.416 8H3a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h2.416a1.4 1.4 0 0 1 .997.413l3.383 3.384A.705.705 0 0 0 11 19.298z",key:"uqj9uw"}]],Ym=K("volume",Km);/**
771
+ */const Ym=[["path",{d:"M11 4.702a.705.705 0 0 0-1.203-.498L6.413 7.587A1.4 1.4 0 0 1 5.416 8H3a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h2.416a1.4 1.4 0 0 1 .997.413l3.383 3.384A.705.705 0 0 0 11 19.298z",key:"uqj9uw"}]],Zm=K("volume",Ym);/**
772
772
  * @license lucide-react v1.38.0 - ISC
773
773
  *
774
774
  * This source code is licensed under the ISC license.
775
775
  * See the LICENSE file in the root directory of this source tree.
776
- */const Zm=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],Ho=K("chevron-down",Zm);/**
776
+ */const Xm=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],Ho=K("chevron-down",Xm);/**
777
777
  * @license lucide-react v1.38.0 - ISC
778
778
  *
779
779
  * This source code is licensed under the ISC license.
780
780
  * See the LICENSE file in the root directory of this source tree.
781
- */const Xm=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],Vo=K("chevron-up",Xm);/**
781
+ */const Jm=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],zo=K("chevron-up",Jm);/**
782
782
  * @license lucide-react v1.38.0 - ISC
783
783
  *
784
784
  * This source code is licensed under the ISC license.
785
785
  * See the LICENSE file in the root directory of this source tree.
786
- */const Jm=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],Qm=K("circle",Jm);/**
786
+ */const Qm=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],eh=K("circle",Qm);/**
787
787
  * @license lucide-react v1.38.0 - ISC
788
788
  *
789
789
  * This source code is licensed under the ISC license.
790
790
  * See the LICENSE file in the root directory of this source tree.
791
- */const eh=[["path",{d:"M13.73 4a2 2 0 0 0-3.46 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3Z",key:"14u9p9"}]],th=K("triangle",eh);/**
791
+ */const th=[["path",{d:"M13.73 4a2 2 0 0 0-3.46 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3Z",key:"14u9p9"}]],nh=K("triangle",th);/**
792
792
  * @license lucide-react v1.38.0 - ISC
793
793
  *
794
794
  * This source code is licensed under the ISC license.
795
795
  * See the LICENSE file in the root directory of this source tree.
796
- */const nh=[["path",{d:"M4 5h16",key:"1tepv9"}],["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 19h16",key:"1djgab"}]],ah=K("menu",nh);/**
796
+ */const ah=[["path",{d:"M4 5h16",key:"1tepv9"}],["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 19h16",key:"1djgab"}]],rh=K("menu",ah);/**
797
797
  * @license lucide-react v1.38.0 - ISC
798
798
  *
799
799
  * This source code is licensed under the ISC license.
800
800
  * See the LICENSE file in the root directory of this source tree.
801
- */const rh=[["path",{d:"M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401",key:"kfwtm"}]],oh=K("moon",rh);/**
801
+ */const oh=[["path",{d:"M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401",key:"kfwtm"}]],sh=K("moon",oh);/**
802
802
  * @license lucide-react v1.38.0 - ISC
803
803
  *
804
804
  * This source code is licensed under the ISC license.
805
805
  * See the LICENSE file in the root directory of this source tree.
806
- */const sh=[["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"}]],ih=K("thumbs-up",sh),zo={"alert-triangle":So,"align-start-vertical":Vc,anchor:vm,armchair:_m,"arrow-down":Wc,"arrow-left":Uc,"arrow-right":Kc,"arrow-right-left":Zc,"arrow-up-a-z":km,"audio-lines":Jc,baby:eu,ban:nu,"bar-chart-2":Nm,bell:ru,"book-marked":su,"book-open":lu,"bow-arrow":uu,braces:pu,bug:hu,calendar:Oo,"calendar-check":Cu,"calendar-days":bu,camera:vu,car:Dm,"chart-column":_u,"chart-line":ku,"chart-pie":Nu,check:Do,"chevron-down":Ho,"chevron-left":To,"chevron-right":jo,"chevron-up":Vo,circle:Qm,"clipboard-list":ju,coffee:jm,combine:Mu,copy:$u,"chevrons-left-right-ellipsis":Pu,"credit-card":Fu,database:Eo,diff:Vu,download:Mo,ear:qu,edit:Gu,"edit-2":Yu,"edit-3":Xu,ellipsis:Lo,eraser:ed,"external-link":nd,eye:rd,"file-text":sd,"flip-horizontal":ld,"folder-open":ud,"folder-plus":pd,gamepad:hd,"gamepad-2":Mm,gavel:Cd,"git-merge":$o,globe:yd,headphones:xd,heart:wd,home:Ad,inbox:$m,info:Bd,"key-round":Dd,landmark:jd,layers:Md,"layout-dashboard":$d,leaf:Pd,lightbulb:Fd,link:Hd,"link-2":zd,"link-2-off":qd,list:Gd,"list-checks":Yd,"list-ordered":Xd,"list-tree":Pm,loader:Qd,lock:tp,"log-out":ap,mail:op,"map-pin":ip,menu:ah,"message-circle":cp,"message-circle-question-mark":dp,"message-square":mp,"message-square-more":Fm,"message-square-text":fp,minus:Hm,"minus-circle":gp,moon:oh,"more-horizontal":Lo,package:yp,palette:xp,"party-popper":wp,pause:Ap,pencil:Bp,phone:Dp,play:jp,"play-circle":Mp,plus:$p,printer:Pp,"refresh-cw":Fp,repeat:Hp,replace:zp,rocket:qp,"rotate-ccw":Gp,"rotate-cw":Yp,salad:Xp,"scan-search":Qp,search:a1,"circle-alert":Ro,"alert-circle":Ro,"check-circle":Po,scissors:o1,"search-x":i1,send:c1,settings:d1,"share-2":zm,"shield-check":m1,"shopping-cart":f1,shuffle:g1,"skip-back":y1,"skip-forward":x1,sparkles:qm,square:w1,star:A1,store:B1,"sun-medium":D1,table:j1,"table-2":M1,tag:$1,terminal:P1,"text-cursor-input":F1,"text-initial":H1,"thumbs-up":ih,ticket:z1,trash:G1,triangle:th,"trash-2":q1,"trending-up":Y1,"triangle-alert":So,trophy:X1,type:Gm,unlink:Q1,upload:tm,user:er,"user-plus":rm,"user-round":sm,"user-round-check":lm,users:um,"users-round":pm,volume:Ym,"volume-2":Io,wrench:fm,x:Fo,zap:bm};function lh(e){return zo[e]??null}const Wo=new Set;function ch(e){return Ao&&!(e in zo)&&!Wo.has(e)&&(Wo.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 uh=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 dh(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?uh(a):null}const qo=new Map;function ph(e){const n=typeof e=="string"?dh(e):null,a=n?lh(n)??qo.get(n)??null:null,[r,o]=s.useState(null);return s.useEffect(()=>{if(!n||a)return;let i=!1;return ch(n).then(l=>{qo.set(n,l),i||o(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 Uo(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 mh(e){if(Array.isArray(e))return e}function hh(e,n){var a=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(a!=null){var r,o,i,l,c=[],u=!0,d=!1;try{if(i=(a=a.call(e)).next,n!==0)for(;!(u=(r=i.call(a)).done)&&(c.push(r.value),c.length!==n);u=!0);}catch(p){d=!0,o=p}finally{try{if(!u&&a.return!=null&&(l=a.return(),Object(l)!==l))return}finally{if(d)throw o}}return c}}function fh(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
807
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ch(e,n){return mh(e)||hh(e,n)||gh(e,n)||fh()}function gh(e,n){if(e){if(typeof e=="string")return Uo(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)?Uo(e,n):void 0}}const Go=Object.entries,Ko=Object.setPrototypeOf,bh=Object.isFrozen,yh=Object.getPrototypeOf,vh=Object.getOwnPropertyDescriptor;let Ct=Object.freeze,bt=Object.seal,Vn=Object.create,Yo=typeof Reflect<"u"&&Reflect,tr=Yo.apply,nr=Yo.construct;Ct||(Ct=function(n){return n}),bt||(bt=function(n){return n}),tr||(tr=function(n,a){for(var r=arguments.length,o=new Array(r>2?r-2:0),i=2;i<r;i++)o[i-2]=arguments[i];return n.apply(a,o)}),nr||(nr=function(n){for(var a=arguments.length,r=new Array(a>1?a-1:0),o=1;o<a;o++)r[o-1]=arguments[o];return new n(...r)});const Tn=pt(Array.prototype.forEach),xh=pt(Array.prototype.lastIndexOf),Zo=pt(Array.prototype.pop),ta=pt(Array.prototype.push),_h=pt(Array.prototype.splice),zn=Array.isArray,na=pt(String.prototype.toLowerCase),ar=pt(String.prototype.toString),Xo=pt(String.prototype.match),aa=pt(String.prototype.replace),Jo=pt(String.prototype.indexOf),wh=pt(String.prototype.trim),kh=pt(Number.prototype.toString),Ah=pt(Boolean.prototype.toString),Qo=typeof BigInt>"u"?null:pt(BigInt.prototype.toString),es=typeof Symbol>"u"?null:pt(Symbol.prototype.toString),$t=pt(Object.prototype.hasOwnProperty),ra=pt(Object.prototype.toString),At=pt(RegExp.prototype.test),jn=Nh(TypeError);function pt(e){return function(n){n instanceof RegExp&&(n.lastIndex=0);for(var a=arguments.length,r=new Array(a>1?a-1:0),o=1;o<a;o++)r[o-1]=arguments[o];return tr(e,n,r)}}function Nh(e){return function(){for(var n=arguments.length,a=new Array(n),r=0;r<n;r++)a[r]=arguments[r];return nr(e,a)}}function Ze(e,n){let a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:na;if(Ko&&Ko(e,null),!zn(n))return e;let r=n.length;for(;r--;){let o=n[r];if(typeof o=="string"){const i=a(o);i!==o&&(bh(n)||(n[r]=i),o=i)}e[o]=!0}return e}function Bh(e){for(let n=0;n<e.length;n++)$t(e,n)||(e[n]=null);return e}function Pt(e){const n=Vn(null);for(const r of Go(e)){var a=Ch(r,2);const o=a[0],i=a[1];$t(e,o)&&(zn(i)?n[o]=Bh(i):i&&typeof i=="object"&&i.constructor===Object?n[o]=Pt(i):n[o]=i)}return n}function Sh(e){switch(typeof e){case"string":return e;case"number":return kh(e);case"boolean":return Ah(e);case"bigint":return Qo?Qo(e):"0";case"symbol":return es?es(e):"Symbol()";case"undefined":return ra(e);case"function":case"object":{if(e===null)return ra(e);const n=e,a=Jt(n,"toString");if(typeof a=="function"){const r=a(n);return typeof r=="string"?r:ra(r)}return ra(e)}default:return ra(e)}}function Jt(e,n){for(;e!==null;){const r=vh(e,n);if(r){if(r.get)return pt(r.get);if(typeof r.value=="function")return pt(r.value)}e=yh(e)}function a(){return null}return a}function Dh(e){try{return At(e,""),!0}catch{return!1}}const ts=Ct(["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"]),rr=Ct(["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"]),or=Ct(["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"]),Th=Ct(["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"]),sr=Ct(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),jh=Ct(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),ns=Ct(["#text"]),as=Ct(["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"]),ir=Ct(["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"]),rs=Ct(["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"]),wa=Ct(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),Eh=bt(/{{[\w\W]*|^[\w\W]*}}/g),Mh=bt(/<%[\w\W]*|^[\w\W]*%>/g),Lh=bt(/\${[\w\W]*/g),$h=bt(/^data-[\-\w.\u00B7-\uFFFF]+$/),Rh=bt(/^aria-[\-\w]+$/),os=bt(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Ph=bt(/^(?:\w+script|data):/i),Ih=bt(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Fh=bt(/^html$/i),Oh=bt(/^[a-z][.\w]*(-[.\w]+)+$/i),ss=bt(/<[/\w!]/g),is=bt(/<[/\w]/g),Hh=bt(/<\/no(script|embed|frames)/i),Vh=bt(/\/>/i),It={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,processingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},ls=["style","script","xmp","iframe","noembed","noframes","plaintext","noscript"],zh=Ct(Ze({},ls)),Wh=(function(){const e={};return Tn(ls,n=>{e[n]=bt(new RegExp("</"+n+"(?=[\\t\\n\\f\\r />])","i"))}),Ct(e)})(),qh=function(){return typeof window>"u"?null:window},Uh=function(n,a){if(typeof n!="object"||typeof n.createPolicy!="function")return null;let r=null;const o="data-tt-policy-suffix";a&&a.hasAttribute(o)&&(r=a.getAttribute(o));const 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}},cs=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},vn=function(n,a,r,o){return $t(n,a)&&zn(n[a])?Ze(o.base?Pt(o.base):{},n[a],o.transform):r},lr=function(n,a,r){const o=$t(n,a)?n[a]:void 0;return o&&typeof o=="object"?Pt(o):r()};function us(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:qh();const n=me=>us(me);if(n.version="3.4.14",n.removed=[],!e||!e.document||e.document.nodeType!==It.document||!e.Element)return n.isSupported=!1,n;let a=e.document;const r=a,o=r.currentScript;e.DocumentFragment;const i=e.HTMLTemplateElement,l=e.Node,c=e.Element,u=e.NodeFilter,d=e.NamedNodeMap;d===void 0&&(e.NamedNodeMap||e.MozNamedAttrMap),e.HTMLFormElement;const p=e.DOMParser,m=e.trustedTypes,h=c.prototype,C=Jt(h,"cloneNode"),y=Jt(h,"remove"),f=Jt(h,"nextSibling"),v=Jt(h,"childNodes"),b=Jt(h,"parentNode"),x=Jt(h,"shadowRoot"),_=Jt(h,"attributes"),g=l&&l.prototype?Jt(l.prototype,"nodeType"):null,A=l&&l.prototype?Jt(l.prototype,"nodeName"):null,w=l&&l.prototype?Jt(l.prototype,"ownerDocument"):null,S=function(D){return g?g(D):D.nodeType},N=function(D){return A?A(D):D.nodeName};if(typeof i=="function"){const me=a.createElement("template");me.content&&me.content.ownerDocument&&(a=me.content.ownerDocument)}let k,B="",V,H=!1,j=0;const F=function(){if(j>0)throw jn('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.')},T=function(D){F(),j++;try{return k.createHTML(D)}finally{j--}},Y=function(D){F(),j++;try{return k.createScriptURL(D)}finally{j--}},R=function(){return H||(V=Uh(m,o),H=!0),V},O=a,W=O.implementation,le=O.createNodeIterator,q=O.createDocumentFragment,P=O.getElementsByTagName,M=r.importNode;let L=cs();n.isSupported=typeof Go=="function"&&typeof b=="function"&&W&&W.createHTMLDocument!==void 0;const z=Eh,$=Mh,E=Lh,I=$h,oe=Rh,re=Ph,ee=Ih,se=Oh;let Ce=os,Z=null;const ie=Ze({},[...ts,...rr,...or,...sr,...ns]);let J=null;const be=Ze({},[...as,...ir,...rs,...wa]);let ve=Object.seal(Vn(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}})),Te=null,de=null;const ye=Object.seal(Vn(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let we=!0,Q=!0,te=!1,_e=!0,je=!1,ze=!0,Me=!1,Oe=!1,Re=null,tt=null,Ke=!1,Ue=!1,fe=!1,Ge=!1,Ee=!0,$e=!1;const He="user-content-";let Ye=!0,gt=!1,dt={},st=null;const nt=Ze({},["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 at=null;const Fe=Ze({},["audio","video","img","source","image","track"]);let Qe=null;const Xe=Ze({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),rt="http://www.w3.org/1998/Math/MathML",Pe="http://www.w3.org/2000/svg",Je="http://www.w3.org/1999/xhtml";let yt=Je,Ut=!1,mt=null;const xt=Ze({},[rt,Pe,Je],ar),Ft=Ct(["mi","mo","mn","ms","mtext"]);let Gt=Ze({},Ft);const _t=Ct(["annotation-xml"]);let lt=Ze({},_t);const Kt=Ze({},["title","style","font","a","script"]);let Rt=null;const yn=["application/xhtml+xml","text/html"],Dn="text/html";let et=null,Ot=null;const wt=a.createElement("form"),Ht=function(D){return D instanceof RegExp||D instanceof Function},Vt=function(){let D=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(Ot&&Ot===D)return;(!D||typeof D!="object")&&(D={}),D=Pt(D),Rt=yn.indexOf(D.PARSER_MEDIA_TYPE)===-1?Dn:D.PARSER_MEDIA_TYPE,et=Rt==="application/xhtml+xml"?ar:na,Z=vn(D,"ALLOWED_TAGS",ie,{transform:et}),J=vn(D,"ALLOWED_ATTR",be,{transform:et}),mt=vn(D,"ALLOWED_NAMESPACES",xt,{transform:ar}),Qe=vn(D,"ADD_URI_SAFE_ATTR",Xe,{transform:et,base:Xe}),at=vn(D,"ADD_DATA_URI_TAGS",Fe,{transform:et,base:Fe}),st=vn(D,"FORBID_CONTENTS",nt,{transform:et}),Te=vn(D,"FORBID_TAGS",Pt({}),{transform:et}),de=vn(D,"FORBID_ATTR",Pt({}),{transform:et}),dt=$t(D,"USE_PROFILES")?D.USE_PROFILES&&typeof D.USE_PROFILES=="object"?Pt(D.USE_PROFILES):D.USE_PROFILES:!1,we=D.ALLOW_ARIA_ATTR!==!1,Q=D.ALLOW_DATA_ATTR!==!1,te=D.ALLOW_UNKNOWN_PROTOCOLS||!1,_e=D.ALLOW_SELF_CLOSE_IN_ATTR!==!1,je=D.SAFE_FOR_TEMPLATES||!1,ze=D.SAFE_FOR_XML!==!1,Me=D.WHOLE_DOCUMENT||!1,Ue=D.RETURN_DOM||!1,fe=D.RETURN_DOM_FRAGMENT||!1,Ge=D.RETURN_TRUSTED_TYPE||!1,Ke=D.FORCE_BODY||!1,Ee=D.SANITIZE_DOM!==!1,$e=D.SANITIZE_NAMED_PROPS||!1,Ye=D.KEEP_CONTENT!==!1,gt=D.IN_PLACE||!1,Ce=Dh(D.ALLOWED_URI_REGEXP)?D.ALLOWED_URI_REGEXP:os,yt=typeof D.NAMESPACE=="string"?D.NAMESPACE:Je,Gt=lr(D,"MATHML_TEXT_INTEGRATION_POINTS",()=>Ze({},Ft)),lt=lr(D,"HTML_INTEGRATION_POINTS",()=>Ze({},_t));const U=lr(D,"CUSTOM_ELEMENT_HANDLING",()=>Vn(null));if(ve=Vn(null),$t(U,"tagNameCheck")&&Ht(U.tagNameCheck)&&(ve.tagNameCheck=U.tagNameCheck),$t(U,"attributeNameCheck")&&Ht(U.attributeNameCheck)&&(ve.attributeNameCheck=U.attributeNameCheck),$t(U,"allowCustomizedBuiltInElements")&&typeof U.allowCustomizedBuiltInElements=="boolean"&&(ve.allowCustomizedBuiltInElements=U.allowCustomizedBuiltInElements),bt(ve),je&&(Q=!1),fe&&(Ue=!0),dt&&(Z=Ze({},ns),J=Vn(null),dt.html===!0&&(Ze(Z,ts),Ze(J,as)),dt.svg===!0&&(Ze(Z,rr),Ze(J,ir),Ze(J,wa)),dt.svgFilters===!0&&(Ze(Z,or),Ze(J,ir),Ze(J,wa)),dt.mathMl===!0&&(Ze(Z,sr),Ze(J,rs),Ze(J,wa))),ye.tagCheck=null,ye.attributeCheck=null,$t(D,"ADD_TAGS")&&(typeof D.ADD_TAGS=="function"?ye.tagCheck=D.ADD_TAGS:zn(D.ADD_TAGS)&&(Z===ie&&(Z=Pt(Z)),Ze(Z,D.ADD_TAGS,et))),$t(D,"ADD_ATTR")&&(typeof D.ADD_ATTR=="function"?ye.attributeCheck=D.ADD_ATTR:zn(D.ADD_ATTR)&&(J===be&&(J=Pt(J)),Ze(J,D.ADD_ATTR,et))),$t(D,"ADD_FORBID_CONTENTS")&&zn(D.ADD_FORBID_CONTENTS)&&(st===nt&&(st=Pt(st)),Ze(st,D.ADD_FORBID_CONTENTS,et)),Ye&&(Z["#text"]=!0),Me&&Ze(Z,["html","head","body"]),Z.table&&(Ze(Z,["tbody"]),delete Te.tbody),D.TRUSTED_TYPES_POLICY){if(typeof D.TRUSTED_TYPES_POLICY.createHTML!="function")throw jn('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof D.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw jn('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');const ue=k;k=D.TRUSTED_TYPES_POLICY;try{B=T("")}catch(xe){throw k=ue,xe}}else D.TRUSTED_TYPES_POLICY===null?(k=void 0,B=""):(k===void 0&&(k=R()),k&&typeof B=="string"&&(B=T("")));Ct&&Ct(D),Ot=D},zt=Ze({},[...rr,...or,...Th]),sn=Ze({},[...sr,...jh]),ln=function(D,U,ue){return U.namespaceURI===Je?D==="svg":U.namespaceURI===rt?D==="svg"&&(ue==="annotation-xml"||Gt[ue]):!!zt[D]},Wt=function(D,U,ue){return U.namespaceURI===Je?D==="math":U.namespaceURI===Pe?D==="math"&&lt[ue]:!!sn[D]},cn=function(D,U,ue){return U.namespaceURI===Pe&&!lt[ue]||U.namespaceURI===rt&&!Gt[ue]?!1:!sn[D]&&(Kt[D]||!zt[D])},nn=function(D){let U=b(D);(!U||!U.tagName)&&(U={namespaceURI:yt,tagName:"template"});const ue=na(D.tagName),xe=na(U.tagName);return mt[D.namespaceURI]?D.namespaceURI===Pe?ln(ue,U,xe):D.namespaceURI===rt?Wt(ue,U,xe):D.namespaceURI===Je?cn(ue,U,xe):!!(Rt==="application/xhtml+xml"&&mt[D.namespaceURI]):!1},ht=function(D){ta(n.removed,{element:D});try{b(D).removeChild(D)}catch{if(y(D),!b(D))throw jn("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place")}},Yt=function(D,U,ue){try{D.removeAttributeNode(U)}catch{try{D.removeAttribute(ue)}catch{}}},Zt=function(D){G(D);const U=v(D);if(U){const xe=[];Tn(U,Se=>{ta(xe,Se)}),Tn(xe,Se=>{try{y(Se)}catch{}})}const ue=_(D);if(ue)for(let xe=ue.length-1;xe>=0;--xe){const Se=ue[xe],Ie=Se&&Se.name;typeof Ie=="string"&&Yt(D,Se,Ie)}},Tt=function(D,U,ue){if(!ue)try{ue=U.getAttributeNode(D)}catch{ue=null}ta(n.removed,{attribute:ue||null,from:U});try{ue?U.removeAttributeNode(ue):U.removeAttribute(D)}catch{try{U.removeAttribute(D)}catch{}}if(D==="is")if(Ue||fe)try{ht(U)}catch{}else try{U.setAttribute(D,"")}catch{}},ae=function(D){const U=_(D);if(U)for(let ue=U.length-1;ue>=0;--ue){const xe=U[ue],Se=xe&&xe.name;typeof Se!="string"||J[et(Se)]||Yt(D,xe,Se)}},G=function(D){const U=[D];for(;U.length>0;){const ue=U.pop();S(ue)===It.element&&ae(ue);const Se=v(ue);if(Se)for(let Ie=Se.length-1;Ie>=0;--Ie)U.push(Se[Ie])}},ne=function(D,U){return ze?D==="patchsrc"?!0:D==="for"&&U!=="label"&&U!=="output":!1},ke=function(D){if(!ze)return;const U=[D];for(;U.length>0;){const ue=U.pop(),xe=S(ue);if(xe===It.processingInstruction||xe===It.comment&&At(is,ue.data)){try{y(ue)}catch{}continue}if(xe===It.element){const Ie=ue,ot=et(N(ue));try{Ie.hasAttribute&&Ie.hasAttribute("patchsrc")&&Ie.removeAttribute("patchsrc"),Ie.hasAttribute&&Ie.hasAttribute("for")&&ne("for",ot)&&Ie.removeAttribute("for")}catch{}}const Se=v(ue);if(Se)for(let Ie=Se.length-1;Ie>=0;--Ie)U.push(Se[Ie])}},Ne=function(D){let U=null,ue=null;if(Ke)D="<remove></remove>"+D;else{const Ie=Xo(D,/^[\r\n\t ]+/);ue=Ie&&Ie[0]}Rt==="application/xhtml+xml"&&yt===Je&&(D='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+D+"</body></html>");const xe=k?T(D):D;if(yt===Je)try{U=new p().parseFromString(xe,Rt)}catch{}if(!U||!U.documentElement){U=W.createDocument(yt,"template",null);try{U.documentElement.innerHTML=Ut?B:xe}catch{}}const Se=U.body||U.documentElement;return D&&ue&&Se.insertBefore(a.createTextNode(ue),Se.childNodes[0]||null),yt===Je?P.call(U,Me?"html":"body")[0]:Me?U.documentElement:Se},Be=function(D){const U=w?w(D):D.ownerDocument;return le.call(U||D,D,u.SHOW_ELEMENT|u.SHOW_COMMENT|u.SHOW_TEXT|u.SHOW_PROCESSING_INSTRUCTION|u.SHOW_CDATA_SECTION,null)},qe=function(D){return D=aa(D,z," "),D=aa(D,$," "),D=aa(D,E," "),D},X=function(D){var U;D.normalize();const ue=w?w(D):D.ownerDocument,xe=le.call(ue||D,D,u.SHOW_TEXT|u.SHOW_COMMENT|u.SHOW_CDATA_SECTION|u.SHOW_PROCESSING_INSTRUCTION,null);let Se=xe.nextNode();for(;Se;)Se.data=qe(Se.data),Se=xe.nextNode();const Ie=(U=D.querySelectorAll)===null||U===void 0?void 0:U.call(D,"template");Ie&&Tn(Ie,ot=>{Ae(ot.content)&&X(ot.content)})},he=function(D){const U=A?A(D):null;return typeof U!="string"||et(U)!=="form"?!1:typeof D.nodeName!="string"||typeof D.textContent!="string"||typeof D.removeChild!="function"||D.attributes!==_(D)||typeof D.removeAttribute!="function"||typeof D.setAttribute!="function"||typeof D.namespaceURI!="string"||typeof D.insertBefore!="function"||typeof D.hasChildNodes!="function"||D.nodeType!==g(D)||D.childNodes!==v(D)},Ae=function(D){if(!g||typeof D!="object"||D===null)return!1;try{return g(D)===It.documentFragment}catch{return!1}},Le=function(D){if(!g||typeof D!="object"||D===null)return!1;try{return typeof g(D)=="number"}catch{return!1}};function De(me,D,U){me.length!==0&&Tn(me,ue=>{ue.call(n,D,U,Ot)})}const Ve=function(D,U){return!!(ze&&D.hasChildNodes()&&!Le(D.firstElementChild)&&At(ss,D.textContent)&&At(ss,D.innerHTML)||ze&&D.namespaceURI===Je&&zh[U]&&(Le(D.firstElementChild)||typeof D.textContent=="string"&&At(Wh[U],D.textContent))||D.nodeType===It.processingInstruction||ze&&D.nodeType===It.comment&&At(is,D.data))},ft=function(D,U){if(D instanceof RegExp)return At(D,U);if(D instanceof Function){for(var ue=arguments.length,xe=new Array(ue>2?ue-2:0),Se=2;Se<ue;Se++)xe[Se-2]=arguments[Se];return!!D(U,...xe)}return!1},Nt=function(D,U,ue){if(!Te[U]&&dn(U)&&ft(ve.tagNameCheck,U))return!1;if(Ye&&!st[U]){const xe=b(D),Se=v(D);if(Se&&xe){const Ie=Se.length;for(let ot=Ie-1;ot>=0;--ot){const it=D===ue?C(Se[ot],!0):Se[ot];xe.insertBefore(it,f(D))}}}return ht(D),!0},kt=function(D,U,ue,xe){return D.length===0?U:U===ue||U===xe?Pt(U):U},an=function(D,U){return D===U||b(D)!==null?!1:(gt&&G(D),!0)},Xt=function(D,U){if(De(L.beforeSanitizeElements,D,null),an(D,U))return!0;if(he(D))return ht(D),!0;const ue=et(N(D));if(Z=kt(L.uponSanitizeElement,Z,ie,Re),De(L.uponSanitizeElement,D,{tagName:ue,allowedTags:Z}),an(D,U))return!0;if(Ve(D,ue))return ht(D),!0;if(Te[ue]||!(ye.tagCheck instanceof Function&&ye.tagCheck(ue))&&!Z[ue]){const Se=Nt(D,ue,U);return Se===!1&&De(L.afterSanitizeElements,D,null),Se}if(S(D)===It.element&&!nn(D)||(ue==="noscript"||ue==="noembed"||ue==="noframes")&&At(Hh,D.innerHTML))return ht(D),!0;if(je&&D.nodeType===It.text){const Se=qe(D.textContent);D.textContent!==Se&&(ta(n.removed,{element:D.cloneNode()}),D.textContent=Se)}return De(L.afterSanitizeElements,D,null),!1},jt=function(D,U,ue){if(de[U]||ne(U,D)||Ee&&(U==="id"||U==="name")&&(ue in a||ue in wt))return!1;const xe=J[U]||ye.attributeCheck instanceof Function&&ye.attributeCheck(U,D);return Q&&At(I,U)||we&&At(oe,U)?!0:xe?Qe[U]||At(Ce,aa(ue,ee,""))||(U==="src"||U==="xlink:href"||U==="href")&&D!=="script"&&Jo(ue,"data:")===0&&at[D]||te&&!At(re,aa(ue,ee,""))?!0:!ue:dn(D)&&ft(ve.tagNameCheck,D)&&ft(ve.attributeNameCheck,U,D)||U==="is"&&ve.allowCustomizedBuiltInElements&&ft(ve.tagNameCheck,ue)},un=Ze({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),dn=function(D){return!un[na(D)]&&At(se,D)},Za=function(D,U,ue,xe){if(k&&typeof m=="object"&&typeof m.getAttributeType=="function"&&!ue)switch(m.getAttributeType(D,U)){case"TrustedHTML":return T(xe);case"TrustedScriptURL":return Y(xe)}return xe},Ec=function(D,U,ue,xe){try{ue?D.setAttributeNS(ue,U,xe):D.setAttribute(U,xe),he(D)?ht(D):Zo(n.removed)}catch{Tt(U,D)}},_o=function(D){De(L.beforeSanitizeAttributes,D,null);const U=D.attributes;if(!U||he(D))return;J=kt(L.uponSanitizeAttribute,J,be,tt);const ue={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:J,forceKeepAttr:void 0};let xe=U.length;const Se=et(D.nodeName);for(;xe--;){const Ie=U[xe],ot=Ie.name,it=Ie.namespaceURI,Et=Ie.value,Mt=et(ot),Ja=Et;let Bt=ot==="value"?Ja:wh(Ja);if(ue.attrName=Mt,ue.attrValue=Bt,ue.keepAttr=!0,ue.forceKeepAttr=void 0,De(L.uponSanitizeAttribute,D,ue),Bt=ue.attrValue,$e&&(Mt==="id"||Mt==="name")&&Jo(Bt,He)!==0&&(Tt(ot,D,Ie),Bt=He+Bt),ze&&At(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,Bt)){Tt(ot,D,Ie);continue}if(Mt==="attributename"&&Xo(Bt,"href")){Tt(ot,D,Ie);continue}if(!ue.forceKeepAttr){if(!ue.keepAttr){Tt(ot,D,Ie);continue}if(!_e&&At(Vh,Bt)){Tt(ot,D,Ie);continue}if(je&&(Bt=qe(Bt)),!jt(Se,Mt,Bt)){Tt(ot,D,Ie);continue}Bt=Za(Se,Mt,it,Bt),Bt!==Ja&&Ec(D,ot,it,Bt)}}De(L.afterSanitizeAttributes,D,null)},_a=function(D){let U=null;const ue=Be(D);for(De(L.beforeSanitizeShadowDOM,D,null);U=ue.nextNode();)if(De(L.uponSanitizeShadowNode,U,null),Xt(U,D),_o(U),Ae(U.content)&&_a(U.content),S(U)===It.element){const xe=x(U);Ae(xe)&&(Xa(xe),_a(xe))}De(L.afterSanitizeShadowDOM,D,null)},Xa=function(D){const U=[{node:D,shadow:null}];for(;U.length>0;){const ue=U.pop();if(ue.shadow){_a(ue.shadow);continue}const xe=ue.node,Ie=S(xe)===It.element,ot=v(xe);if(ot)for(let it=ot.length-1;it>=0;--it)U.push({node:ot[it],shadow:null});if(Ie){const it=A?A(xe):null;if(typeof it=="string"&&et(it)==="template"){const Et=xe.content;Ae(Et)&&U.push({node:Et,shadow:null})}}if(Ie){const it=x(xe);Ae(it)&&U.push({node:null,shadow:it},{node:it,shadow:null})}}};return n.sanitize=function(me){let D=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},U=null,ue=null,xe=null,Se=null;if(Ut=!me,Ut&&(me="<!-->"),typeof me!="string"&&!Le(me)&&(me=Sh(me),typeof me!="string"))throw jn("dirty is not a string, aborting");if(!n.isSupported)return me;Oe?(Z=Re,J=tt):Vt(D),(L.uponSanitizeElement.length>0||L.uponSanitizeAttribute.length>0)&&(Z=Pt(Z)),L.uponSanitizeAttribute.length>0&&(J=Pt(J)),n.removed=[];const Ie=gt&&typeof me!="string"&&Le(me);if(Ie){ke(me);const Et=N(me);if(typeof Et=="string"){const Mt=et(Et);if(!Z[Mt]||Te[Mt])throw Zt(me),jn("root node is forbidden and cannot be sanitized in-place")}if(he(me))throw Zt(me),jn("root node is clobbered and cannot be sanitized in-place");try{Xa(me)}catch(Mt){throw Zt(me),Mt}}else if(Le(me))U=Ne("<!---->"),ue=U.ownerDocument.importNode(me,!0),ue.nodeType===It.element&&ue.nodeName==="BODY"||ue.nodeName==="HTML"?U=ue:U.appendChild(ue),Xa(ue);else{if(!Ue&&!je&&!Me&&me.indexOf("<")===-1)return k&&Ge?T(me):me;if(U=Ne(me),!U)return Ue?null:Ge?B:""}U&&Ke&&ht(U.firstChild);const ot=Ie?me:U;try{const Et=Be(ot);for(;xe=Et.nextNode();)Xt(xe,ot),_o(xe),Ae(xe.content)&&_a(xe.content)}catch(Et){throw Ie&&(Zt(me),Tn(n.removed,Mt=>{Mt.element&&G(Mt.element)})),Et}if(Ie)return Tn(n.removed,Et=>{Et.element&&G(Et.element)}),je&&X(me),me;if(Ue){if(je&&X(U),fe)for(Se=q.call(U.ownerDocument);U.firstChild;)Se.appendChild(U.firstChild);else Se=U;return(J.shadowroot||J.shadowrootmode)&&(Se=M.call(r,Se,!0)),Se}let it=Me?U.outerHTML:U.innerHTML;return Me&&Z["!doctype"]&&U.ownerDocument&&U.ownerDocument.doctype&&U.ownerDocument.doctype.name&&At(Fh,U.ownerDocument.doctype.name)&&(it="<!DOCTYPE "+U.ownerDocument.doctype.name+`>
808
- `+it),je&&(it=qe(it)),k&&Ge?T(it):it},n.setConfig=function(){let me=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Vt(me),Oe=!0,Re=Z,tt=J},n.clearConfig=function(){Ot=null,Oe=!1,Re=null,tt=null,k=V,B=""},n.isValidAttribute=function(me,D,U){Ot||Vt({});const ue=et(me),xe=et(D);return jt(ue,xe,U)},n.addHook=function(me,D){typeof D=="function"&&$t(L,me)&&ta(L[me],D)},n.removeHook=function(me,D){if($t(L,me)){if(D!==void 0){const U=xh(L[me],D);return U===-1?void 0:_h(L[me],U,1)[0]}return Zo(L[me])}},n.removeHooks=function(me){$t(L,me)&&(L[me]=[])},n.removeAllHooks=function(){L=cs()},n}var Gh=us();const Kh=/^(?:[a-z]+:)?\/\//i,Yh="__ihab_core_asset_base_url__";function Zh(){return globalThis[Yh]??""}function cr(e){const n=String(e||"").trim();if(!n)return"";if(Kh.test(n)||n.startsWith("data:")||n.startsWith("blob:"))return n;const a=n.startsWith("/")?n:`/${n}`,r=Zh();return r?`${r}${a}`:a}const ds="__ihab_core_storage_resolvers__";function oa(){return globalThis[ds]??null}function Xh(e){globalThis[ds]=e}let ps=class extends Error{constructor(n){super(`
806
+ */const ih=[["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"}]],lh=K("thumbs-up",ih),Wo={"alert-triangle":So,"align-start-vertical":zc,anchor:xm,armchair:wm,"arrow-down":qc,"arrow-left":Gc,"arrow-right":Yc,"arrow-right-left":Xc,"arrow-up-a-z":Am,"audio-lines":Qc,baby:tu,ban:au,"bar-chart-2":Bm,bell:ou,"book-marked":iu,"book-open":cu,"bow-arrow":du,braces:mu,bug:fu,calendar:Vo,"calendar-check":gu,"calendar-days":yu,camera:xu,car:jm,"chart-column":wu,"chart-line":Au,"chart-pie":Bu,check:jo,"chevron-down":Ho,"chevron-left":To,"chevron-right":Eo,"chevron-up":zo,circle:eh,"clipboard-list":Eu,coffee:Em,combine:Lu,copy:Ru,"chevrons-left-right-ellipsis":Iu,"credit-card":Ou,database:Mo,diff:zu,download:Lo,ear:Uu,edit:Ku,"edit-2":Zu,"edit-3":Ju,ellipsis:$o,eraser:td,"external-link":ad,eye:od,"file-text":id,"flip-horizontal":cd,"folder-open":dd,"folder-plus":md,gamepad:fd,"gamepad-2":Lm,gavel:gd,"git-merge":Ro,globe:vd,headphones:_d,heart:kd,home:Nd,inbox:Rm,info:Dd,"key-round":jd,landmark:Ed,layers:Ld,"layout-dashboard":Rd,leaf:Id,lightbulb:Od,link:Hd,"link-2":Wd,"link-2-off":Ud,list:Kd,"list-checks":Zd,"list-ordered":Jd,"list-tree":Im,loader:ep,lock:np,"log-out":rp,mail:sp,"map-pin":lp,menu:rh,"message-circle":up,"message-circle-question-mark":pp,"message-square":hp,"message-square-more":Om,"message-square-text":Cp,minus:Hm,"minus-circle":bp,moon:sh,"more-horizontal":$o,package:vp,palette:_p,"party-popper":kp,pause:Np,pencil:Dp,phone:jp,play:Ep,"play-circle":Lp,plus:Rp,printer:Ip,"refresh-cw":Op,repeat:Hp,replace:Wp,rocket:Up,"rotate-ccw":Kp,"rotate-cw":Zp,salad:Jp,"scan-search":e1,search:r1,"circle-alert":Po,"alert-circle":Po,"check-circle":Io,scissors:s1,"search-x":l1,send:u1,settings:p1,"share-2":Wm,"shield-check":h1,"shopping-cart":C1,shuffle:b1,"skip-back":v1,"skip-forward":_1,sparkles:Um,square:k1,star:N1,store:D1,"sun-medium":j1,table:E1,"table-2":L1,tag:R1,terminal:I1,"text-cursor-input":O1,"text-initial":H1,"thumbs-up":lh,ticket:W1,trash:K1,triangle:nh,"trash-2":U1,"trending-up":Z1,"triangle-alert":So,trophy:J1,type:Km,unlink:em,upload:nm,user:tr,"user-plus":om,"user-round":im,"user-round-check":cm,users:dm,"users-round":mm,volume:Zm,"volume-2":Fo,wrench:Cm,x:Oo,zap:ym};function ch(e){return Wo[e]??null}const qo=new Set;function uh(e){return No&&!(e in Wo)&&!qo.has(e)&&(qo.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 dh=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 ph(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?dh(a):null}const Uo=new Map;function mh(e){const n=typeof e=="string"?ph(e):null,a=n?ch(n)??Uo.get(n)??null:null,[r,o]=s.useState(null);return s.useEffect(()=>{if(!n||a)return;let i=!1;return uh(n).then(l=>{Uo.set(n,l),i||o(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 Go(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 hh(e){if(Array.isArray(e))return e}function fh(e,n){var a=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(a!=null){var r,o,i,l,c=[],u=!0,d=!1;try{if(i=(a=a.call(e)).next,n!==0)for(;!(u=(r=i.call(a)).done)&&(c.push(r.value),c.length!==n);u=!0);}catch(p){d=!0,o=p}finally{try{if(!u&&a.return!=null&&(l=a.return(),Object(l)!==l))return}finally{if(d)throw o}}return c}}function Ch(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
807
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function gh(e,n){return hh(e)||fh(e,n)||bh(e,n)||Ch()}function bh(e,n){if(e){if(typeof e=="string")return Go(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)?Go(e,n):void 0}}const Ko=Object.entries,Yo=Object.setPrototypeOf,yh=Object.isFrozen,vh=Object.getPrototypeOf,xh=Object.getOwnPropertyDescriptor;let Ct=Object.freeze,bt=Object.seal,Hn=Object.create,Zo=typeof Reflect<"u"&&Reflect,nr=Zo.apply,ar=Zo.construct;Ct||(Ct=function(n){return n}),bt||(bt=function(n){return n}),nr||(nr=function(n,a){for(var r=arguments.length,o=new Array(r>2?r-2:0),i=2;i<r;i++)o[i-2]=arguments[i];return n.apply(a,o)}),ar||(ar=function(n){for(var a=arguments.length,r=new Array(a>1?a-1:0),o=1;o<a;o++)r[o-1]=arguments[o];return new n(...r)});const jn=pt(Array.prototype.forEach),_h=pt(Array.prototype.lastIndexOf),Xo=pt(Array.prototype.pop),ta=pt(Array.prototype.push),wh=pt(Array.prototype.splice),zn=Array.isArray,na=pt(String.prototype.toLowerCase),rr=pt(String.prototype.toString),Jo=pt(String.prototype.match),aa=pt(String.prototype.replace),Qo=pt(String.prototype.indexOf),kh=pt(String.prototype.trim),Ah=pt(Number.prototype.toString),Nh=pt(Boolean.prototype.toString),es=typeof BigInt>"u"?null:pt(BigInt.prototype.toString),ts=typeof Symbol>"u"?null:pt(Symbol.prototype.toString),$t=pt(Object.prototype.hasOwnProperty),ra=pt(Object.prototype.toString),At=pt(RegExp.prototype.test),Tn=Bh(TypeError);function pt(e){return function(n){n instanceof RegExp&&(n.lastIndex=0);for(var a=arguments.length,r=new Array(a>1?a-1:0),o=1;o<a;o++)r[o-1]=arguments[o];return nr(e,n,r)}}function Bh(e){return function(){for(var n=arguments.length,a=new Array(n),r=0;r<n;r++)a[r]=arguments[r];return ar(e,a)}}function Ze(e,n){let a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:na;if(Yo&&Yo(e,null),!zn(n))return e;let r=n.length;for(;r--;){let o=n[r];if(typeof o=="string"){const i=a(o);i!==o&&(yh(n)||(n[r]=i),o=i)}e[o]=!0}return e}function Dh(e){for(let n=0;n<e.length;n++)$t(e,n)||(e[n]=null);return e}function It(e){const n=Hn(null);for(const r of Ko(e)){var a=gh(r,2);const o=a[0],i=a[1];$t(e,o)&&(zn(i)?n[o]=Dh(i):i&&typeof i=="object"&&i.constructor===Object?n[o]=It(i):n[o]=i)}return n}function Sh(e){switch(typeof e){case"string":return e;case"number":return Ah(e);case"boolean":return Nh(e);case"bigint":return es?es(e):"0";case"symbol":return ts?ts(e):"Symbol()";case"undefined":return ra(e);case"function":case"object":{if(e===null)return ra(e);const n=e,a=Qt(n,"toString");if(typeof a=="function"){const r=a(n);return typeof r=="string"?r:ra(r)}return ra(e)}default:return ra(e)}}function Qt(e,n){for(;e!==null;){const r=xh(e,n);if(r){if(r.get)return pt(r.get);if(typeof r.value=="function")return pt(r.value)}e=vh(e)}function a(){return null}return a}function jh(e){try{return At(e,""),!0}catch{return!1}}const ns=Ct(["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"]),or=Ct(["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"]),sr=Ct(["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"]),Th=Ct(["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"]),ir=Ct(["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"]),Eh=Ct(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),as=Ct(["#text"]),rs=Ct(["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"]),lr=Ct(["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"]),os=Ct(["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"]),ka=Ct(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),Mh=bt(/{{[\w\W]*|^[\w\W]*}}/g),Lh=bt(/<%[\w\W]*|^[\w\W]*%>/g),$h=bt(/\${[\w\W]*/g),Rh=bt(/^data-[\-\w.\u00B7-\uFFFF]+$/),Ph=bt(/^aria-[\-\w]+$/),ss=bt(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Ih=bt(/^(?:\w+script|data):/i),Fh=bt(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Oh=bt(/^html$/i),Vh=bt(/^[a-z][.\w]*(-[.\w]+)+$/i),is=bt(/<[/\w!]/g),ls=bt(/<[/\w]/g),Hh=bt(/<\/no(script|embed|frames)/i),zh=bt(/\/>/i),Ft={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,processingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},cs=["style","script","xmp","iframe","noembed","noframes","plaintext","noscript"],Wh=Ct(Ze({},cs)),qh=(function(){const e={};return jn(cs,n=>{e[n]=bt(new RegExp("</"+n+"(?=[\\t\\n\\f\\r />])","i"))}),Ct(e)})(),Uh=function(){return typeof window>"u"?null:window},Gh=function(n,a){if(typeof n!="object"||typeof n.createPolicy!="function")return null;let r=null;const o="data-tt-policy-suffix";a&&a.hasAttribute(o)&&(r=a.getAttribute(o));const 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}},us=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},vn=function(n,a,r,o){return $t(n,a)&&zn(n[a])?Ze(o.base?It(o.base):{},n[a],o.transform):r},cr=function(n,a,r){const o=$t(n,a)?n[a]:void 0;return o&&typeof o=="object"?It(o):r()};function ds(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Uh();const n=me=>ds(me);if(n.version="3.4.14",n.removed=[],!e||!e.document||e.document.nodeType!==Ft.document||!e.Element)return n.isSupported=!1,n;let a=e.document;const r=a,o=r.currentScript;e.DocumentFragment;const i=e.HTMLTemplateElement,l=e.Node,c=e.Element,u=e.NodeFilter,d=e.NamedNodeMap;d===void 0&&(e.NamedNodeMap||e.MozNamedAttrMap),e.HTMLFormElement;const p=e.DOMParser,m=e.trustedTypes,h=c.prototype,C=Qt(h,"cloneNode"),y=Qt(h,"remove"),f=Qt(h,"nextSibling"),v=Qt(h,"childNodes"),b=Qt(h,"parentNode"),x=Qt(h,"shadowRoot"),_=Qt(h,"attributes"),g=l&&l.prototype?Qt(l.prototype,"nodeType"):null,A=l&&l.prototype?Qt(l.prototype,"nodeName"):null,w=l&&l.prototype?Qt(l.prototype,"ownerDocument"):null,D=function(S){return g?g(S):S.nodeType},B=function(S){return A?A(S):S.nodeName};if(typeof i=="function"){const me=a.createElement("template");me.content&&me.content.ownerDocument&&(a=me.content.ownerDocument)}let k,N="",I,O=!1,E=0;const V=function(){if(E>0)throw Tn('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(S){V(),E++;try{return k.createHTML(S)}finally{E--}},Y=function(S){V(),E++;try{return k.createScriptURL(S)}finally{E--}},R=function(){return O||(I=Gh(m,o),O=!0),I},H=a,W=H.implementation,le=H.createNodeIterator,q=H.createDocumentFragment,P=H.getElementsByTagName,M=r.importNode;let L=us();n.isSupported=typeof Ko=="function"&&typeof b=="function"&&W&&W.createHTMLDocument!==void 0;const z=Mh,$=Lh,T=$h,F=Rh,oe=Ph,ae=Ih,ee=Fh,se=Vh;let Ce=ss,Z=null;const ie=Ze({},[...ns,...or,...sr,...ir,...as]);let J=null;const be=Ze({},[...rs,...lr,...os,...ka]);let ve=Object.seal(Hn(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}})),Te=null,de=null;const ye=Object.seal(Hn(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let _e=!0,Q=!0,te=!1,we=!0,Se=!1,ze=!0,Me=!1,Oe=!1,Re=null,tt=null,Ye=!1,Ke=!1,fe=!1,We=!1,Ee=!0,$e=!1;const He="user-content-";let Ue=!0,gt=!1,dt={},st=null;const nt=Ze({},["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 at=null;const Fe=Ze({},["audio","video","img","source","image","track"]);let Qe=null;const Xe=Ze({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),rt="http://www.w3.org/1998/Math/MathML",Pe="http://www.w3.org/2000/svg",Je="http://www.w3.org/1999/xhtml";let yt=Je,Gt=!1,mt=null;const xt=Ze({},[rt,Pe,Je],rr),Ot=Ct(["mi","mo","mn","ms","mtext"]);let Kt=Ze({},Ot);const _t=Ct(["annotation-xml"]);let lt=Ze({},_t);const Yt=Ze({},["title","style","font","a","script"]);let Pt=null;const yn=["application/xhtml+xml","text/html"],Sn="text/html";let et=null,Vt=null;const wt=a.createElement("form"),Ht=function(S){return S instanceof RegExp||S instanceof Function},zt=function(){let S=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(Vt&&Vt===S)return;(!S||typeof S!="object")&&(S={}),S=It(S),Pt=yn.indexOf(S.PARSER_MEDIA_TYPE)===-1?Sn:S.PARSER_MEDIA_TYPE,et=Pt==="application/xhtml+xml"?rr:na,Z=vn(S,"ALLOWED_TAGS",ie,{transform:et}),J=vn(S,"ALLOWED_ATTR",be,{transform:et}),mt=vn(S,"ALLOWED_NAMESPACES",xt,{transform:rr}),Qe=vn(S,"ADD_URI_SAFE_ATTR",Xe,{transform:et,base:Xe}),at=vn(S,"ADD_DATA_URI_TAGS",Fe,{transform:et,base:Fe}),st=vn(S,"FORBID_CONTENTS",nt,{transform:et}),Te=vn(S,"FORBID_TAGS",It({}),{transform:et}),de=vn(S,"FORBID_ATTR",It({}),{transform:et}),dt=$t(S,"USE_PROFILES")?S.USE_PROFILES&&typeof S.USE_PROFILES=="object"?It(S.USE_PROFILES):S.USE_PROFILES:!1,_e=S.ALLOW_ARIA_ATTR!==!1,Q=S.ALLOW_DATA_ATTR!==!1,te=S.ALLOW_UNKNOWN_PROTOCOLS||!1,we=S.ALLOW_SELF_CLOSE_IN_ATTR!==!1,Se=S.SAFE_FOR_TEMPLATES||!1,ze=S.SAFE_FOR_XML!==!1,Me=S.WHOLE_DOCUMENT||!1,Ke=S.RETURN_DOM||!1,fe=S.RETURN_DOM_FRAGMENT||!1,We=S.RETURN_TRUSTED_TYPE||!1,Ye=S.FORCE_BODY||!1,Ee=S.SANITIZE_DOM!==!1,$e=S.SANITIZE_NAMED_PROPS||!1,Ue=S.KEEP_CONTENT!==!1,gt=S.IN_PLACE||!1,Ce=jh(S.ALLOWED_URI_REGEXP)?S.ALLOWED_URI_REGEXP:ss,yt=typeof S.NAMESPACE=="string"?S.NAMESPACE:Je,Kt=cr(S,"MATHML_TEXT_INTEGRATION_POINTS",()=>Ze({},Ot)),lt=cr(S,"HTML_INTEGRATION_POINTS",()=>Ze({},_t));const U=cr(S,"CUSTOM_ELEMENT_HANDLING",()=>Hn(null));if(ve=Hn(null),$t(U,"tagNameCheck")&&Ht(U.tagNameCheck)&&(ve.tagNameCheck=U.tagNameCheck),$t(U,"attributeNameCheck")&&Ht(U.attributeNameCheck)&&(ve.attributeNameCheck=U.attributeNameCheck),$t(U,"allowCustomizedBuiltInElements")&&typeof U.allowCustomizedBuiltInElements=="boolean"&&(ve.allowCustomizedBuiltInElements=U.allowCustomizedBuiltInElements),bt(ve),Se&&(Q=!1),fe&&(Ke=!0),dt&&(Z=Ze({},as),J=Hn(null),dt.html===!0&&(Ze(Z,ns),Ze(J,rs)),dt.svg===!0&&(Ze(Z,or),Ze(J,lr),Ze(J,ka)),dt.svgFilters===!0&&(Ze(Z,sr),Ze(J,lr),Ze(J,ka)),dt.mathMl===!0&&(Ze(Z,ir),Ze(J,os),Ze(J,ka))),ye.tagCheck=null,ye.attributeCheck=null,$t(S,"ADD_TAGS")&&(typeof S.ADD_TAGS=="function"?ye.tagCheck=S.ADD_TAGS:zn(S.ADD_TAGS)&&(Z===ie&&(Z=It(Z)),Ze(Z,S.ADD_TAGS,et))),$t(S,"ADD_ATTR")&&(typeof S.ADD_ATTR=="function"?ye.attributeCheck=S.ADD_ATTR:zn(S.ADD_ATTR)&&(J===be&&(J=It(J)),Ze(J,S.ADD_ATTR,et))),$t(S,"ADD_FORBID_CONTENTS")&&zn(S.ADD_FORBID_CONTENTS)&&(st===nt&&(st=It(st)),Ze(st,S.ADD_FORBID_CONTENTS,et)),Ue&&(Z["#text"]=!0),Me&&Ze(Z,["html","head","body"]),Z.table&&(Ze(Z,["tbody"]),delete Te.tbody),S.TRUSTED_TYPES_POLICY){if(typeof S.TRUSTED_TYPES_POLICY.createHTML!="function")throw Tn('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof S.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw Tn('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');const ue=k;k=S.TRUSTED_TYPES_POLICY;try{N=j("")}catch(xe){throw k=ue,xe}}else S.TRUSTED_TYPES_POLICY===null?(k=void 0,N=""):(k===void 0&&(k=R()),k&&typeof N=="string"&&(N=j("")));Ct&&Ct(S),Vt=S},Wt=Ze({},[...or,...sr,...Th]),sn=Ze({},[...ir,...Eh]),ln=function(S,U,ue){return U.namespaceURI===Je?S==="svg":U.namespaceURI===rt?S==="svg"&&(ue==="annotation-xml"||Kt[ue]):!!Wt[S]},qt=function(S,U,ue){return U.namespaceURI===Je?S==="math":U.namespaceURI===Pe?S==="math"&&lt[ue]:!!sn[S]},cn=function(S,U,ue){return U.namespaceURI===Pe&&!lt[ue]||U.namespaceURI===rt&&!Kt[ue]?!1:!sn[S]&&(Yt[S]||!Wt[S])},nn=function(S){let U=b(S);(!U||!U.tagName)&&(U={namespaceURI:yt,tagName:"template"});const ue=na(S.tagName),xe=na(U.tagName);return mt[S.namespaceURI]?S.namespaceURI===Pe?ln(ue,U,xe):S.namespaceURI===rt?qt(ue,U,xe):S.namespaceURI===Je?cn(ue,U,xe):!!(Pt==="application/xhtml+xml"&&mt[S.namespaceURI]):!1},ht=function(S){ta(n.removed,{element:S});try{b(S).removeChild(S)}catch{if(y(S),!b(S))throw Tn("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place")}},Zt=function(S,U,ue){try{S.removeAttributeNode(U)}catch{try{S.removeAttribute(ue)}catch{}}},Xt=function(S){G(S);const U=v(S);if(U){const xe=[];jn(U,De=>{ta(xe,De)}),jn(xe,De=>{try{y(De)}catch{}})}const ue=_(S);if(ue)for(let xe=ue.length-1;xe>=0;--xe){const De=ue[xe],Ie=De&&De.name;typeof Ie=="string"&&Zt(S,De,Ie)}},jt=function(S,U,ue){if(!ue)try{ue=U.getAttributeNode(S)}catch{ue=null}ta(n.removed,{attribute:ue||null,from:U});try{ue?U.removeAttributeNode(ue):U.removeAttribute(S)}catch{try{U.removeAttribute(S)}catch{}}if(S==="is")if(Ke||fe)try{ht(U)}catch{}else try{U.setAttribute(S,"")}catch{}},re=function(S){const U=_(S);if(U)for(let ue=U.length-1;ue>=0;--ue){const xe=U[ue],De=xe&&xe.name;typeof De!="string"||J[et(De)]||Zt(S,xe,De)}},G=function(S){const U=[S];for(;U.length>0;){const ue=U.pop();D(ue)===Ft.element&&re(ue);const De=v(ue);if(De)for(let Ie=De.length-1;Ie>=0;--Ie)U.push(De[Ie])}},ne=function(S,U){return ze?S==="patchsrc"?!0:S==="for"&&U!=="label"&&U!=="output":!1},ke=function(S){if(!ze)return;const U=[S];for(;U.length>0;){const ue=U.pop(),xe=D(ue);if(xe===Ft.processingInstruction||xe===Ft.comment&&At(ls,ue.data)){try{y(ue)}catch{}continue}if(xe===Ft.element){const Ie=ue,ot=et(B(ue));try{Ie.hasAttribute&&Ie.hasAttribute("patchsrc")&&Ie.removeAttribute("patchsrc"),Ie.hasAttribute&&Ie.hasAttribute("for")&&ne("for",ot)&&Ie.removeAttribute("for")}catch{}}const De=v(ue);if(De)for(let Ie=De.length-1;Ie>=0;--Ie)U.push(De[Ie])}},Ne=function(S){let U=null,ue=null;if(Ye)S="<remove></remove>"+S;else{const Ie=Jo(S,/^[\r\n\t ]+/);ue=Ie&&Ie[0]}Pt==="application/xhtml+xml"&&yt===Je&&(S='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+S+"</body></html>");const xe=k?j(S):S;if(yt===Je)try{U=new p().parseFromString(xe,Pt)}catch{}if(!U||!U.documentElement){U=W.createDocument(yt,"template",null);try{U.documentElement.innerHTML=Gt?N:xe}catch{}}const De=U.body||U.documentElement;return S&&ue&&De.insertBefore(a.createTextNode(ue),De.childNodes[0]||null),yt===Je?P.call(U,Me?"html":"body")[0]:Me?U.documentElement:De},Be=function(S){const U=w?w(S):S.ownerDocument;return le.call(U||S,S,u.SHOW_ELEMENT|u.SHOW_COMMENT|u.SHOW_TEXT|u.SHOW_PROCESSING_INSTRUCTION|u.SHOW_CDATA_SECTION,null)},Ge=function(S){return S=aa(S,z," "),S=aa(S,$," "),S=aa(S,T," "),S},X=function(S){var U;S.normalize();const ue=w?w(S):S.ownerDocument,xe=le.call(ue||S,S,u.SHOW_TEXT|u.SHOW_COMMENT|u.SHOW_CDATA_SECTION|u.SHOW_PROCESSING_INSTRUCTION,null);let De=xe.nextNode();for(;De;)De.data=Ge(De.data),De=xe.nextNode();const Ie=(U=S.querySelectorAll)===null||U===void 0?void 0:U.call(S,"template");Ie&&jn(Ie,ot=>{Ae(ot.content)&&X(ot.content)})},he=function(S){const U=A?A(S):null;return typeof U!="string"||et(U)!=="form"?!1:typeof S.nodeName!="string"||typeof S.textContent!="string"||typeof S.removeChild!="function"||S.attributes!==_(S)||typeof S.removeAttribute!="function"||typeof S.setAttribute!="function"||typeof S.namespaceURI!="string"||typeof S.insertBefore!="function"||typeof S.hasChildNodes!="function"||S.nodeType!==g(S)||S.childNodes!==v(S)},Ae=function(S){if(!g||typeof S!="object"||S===null)return!1;try{return g(S)===Ft.documentFragment}catch{return!1}},Le=function(S){if(!g||typeof S!="object"||S===null)return!1;try{return typeof g(S)=="number"}catch{return!1}};function je(me,S,U){me.length!==0&&jn(me,ue=>{ue.call(n,S,U,Vt)})}const Ve=function(S,U){return!!(ze&&S.hasChildNodes()&&!Le(S.firstElementChild)&&At(is,S.textContent)&&At(is,S.innerHTML)||ze&&S.namespaceURI===Je&&Wh[U]&&(Le(S.firstElementChild)||typeof S.textContent=="string"&&At(qh[U],S.textContent))||S.nodeType===Ft.processingInstruction||ze&&S.nodeType===Ft.comment&&At(ls,S.data))},ft=function(S,U){if(S instanceof RegExp)return At(S,U);if(S instanceof Function){for(var ue=arguments.length,xe=new Array(ue>2?ue-2:0),De=2;De<ue;De++)xe[De-2]=arguments[De];return!!S(U,...xe)}return!1},Nt=function(S,U,ue){if(!Te[U]&&dn(U)&&ft(ve.tagNameCheck,U))return!1;if(Ue&&!st[U]){const xe=b(S),De=v(S);if(De&&xe){const Ie=De.length;for(let ot=Ie-1;ot>=0;--ot){const it=S===ue?C(De[ot],!0):De[ot];xe.insertBefore(it,f(S))}}}return ht(S),!0},kt=function(S,U,ue,xe){return S.length===0?U:U===ue||U===xe?It(U):U},an=function(S,U){return S===U||b(S)!==null?!1:(gt&&G(S),!0)},Jt=function(S,U){if(je(L.beforeSanitizeElements,S,null),an(S,U))return!0;if(he(S))return ht(S),!0;const ue=et(B(S));if(Z=kt(L.uponSanitizeElement,Z,ie,Re),je(L.uponSanitizeElement,S,{tagName:ue,allowedTags:Z}),an(S,U))return!0;if(Ve(S,ue))return ht(S),!0;if(Te[ue]||!(ye.tagCheck instanceof Function&&ye.tagCheck(ue))&&!Z[ue]){const De=Nt(S,ue,U);return De===!1&&je(L.afterSanitizeElements,S,null),De}if(D(S)===Ft.element&&!nn(S)||(ue==="noscript"||ue==="noembed"||ue==="noframes")&&At(Hh,S.innerHTML))return ht(S),!0;if(Se&&S.nodeType===Ft.text){const De=Ge(S.textContent);S.textContent!==De&&(ta(n.removed,{element:S.cloneNode()}),S.textContent=De)}return je(L.afterSanitizeElements,S,null),!1},Tt=function(S,U,ue){if(de[U]||ne(U,S)||Ee&&(U==="id"||U==="name")&&(ue in a||ue in wt))return!1;const xe=J[U]||ye.attributeCheck instanceof Function&&ye.attributeCheck(U,S);return Q&&At(F,U)||_e&&At(oe,U)?!0:xe?Qe[U]||At(Ce,aa(ue,ee,""))||(U==="src"||U==="xlink:href"||U==="href")&&S!=="script"&&Qo(ue,"data:")===0&&at[S]||te&&!At(ae,aa(ue,ee,""))?!0:!ue:dn(S)&&ft(ve.tagNameCheck,S)&&ft(ve.attributeNameCheck,U,S)||U==="is"&&ve.allowCustomizedBuiltInElements&&ft(ve.tagNameCheck,ue)},un=Ze({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),dn=function(S){return!un[na(S)]&&At(se,S)},Xa=function(S,U,ue,xe){if(k&&typeof m=="object"&&typeof m.getAttributeType=="function"&&!ue)switch(m.getAttributeType(S,U)){case"TrustedHTML":return j(xe);case"TrustedScriptURL":return Y(xe)}return xe},Mc=function(S,U,ue,xe){try{ue?S.setAttributeNS(ue,U,xe):S.setAttribute(U,xe),he(S)?ht(S):Xo(n.removed)}catch{jt(U,S)}},wo=function(S){je(L.beforeSanitizeAttributes,S,null);const U=S.attributes;if(!U||he(S))return;J=kt(L.uponSanitizeAttribute,J,be,tt);const ue={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:J,forceKeepAttr:void 0};let xe=U.length;const De=et(S.nodeName);for(;xe--;){const Ie=U[xe],ot=Ie.name,it=Ie.namespaceURI,Et=Ie.value,Mt=et(ot),Qa=Et;let Bt=ot==="value"?Qa:kh(Qa);if(ue.attrName=Mt,ue.attrValue=Bt,ue.keepAttr=!0,ue.forceKeepAttr=void 0,je(L.uponSanitizeAttribute,S,ue),Bt=ue.attrValue,$e&&(Mt==="id"||Mt==="name")&&Qo(Bt,He)!==0&&(jt(ot,S,Ie),Bt=He+Bt),ze&&At(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,Bt)){jt(ot,S,Ie);continue}if(Mt==="attributename"&&Jo(Bt,"href")){jt(ot,S,Ie);continue}if(!ue.forceKeepAttr){if(!ue.keepAttr){jt(ot,S,Ie);continue}if(!we&&At(zh,Bt)){jt(ot,S,Ie);continue}if(Se&&(Bt=Ge(Bt)),!Tt(De,Mt,Bt)){jt(ot,S,Ie);continue}Bt=Xa(De,Mt,it,Bt),Bt!==Qa&&Mc(S,ot,it,Bt)}}je(L.afterSanitizeAttributes,S,null)},wa=function(S){let U=null;const ue=Be(S);for(je(L.beforeSanitizeShadowDOM,S,null);U=ue.nextNode();)if(je(L.uponSanitizeShadowNode,U,null),Jt(U,S),wo(U),Ae(U.content)&&wa(U.content),D(U)===Ft.element){const xe=x(U);Ae(xe)&&(Ja(xe),wa(xe))}je(L.afterSanitizeShadowDOM,S,null)},Ja=function(S){const U=[{node:S,shadow:null}];for(;U.length>0;){const ue=U.pop();if(ue.shadow){wa(ue.shadow);continue}const xe=ue.node,Ie=D(xe)===Ft.element,ot=v(xe);if(ot)for(let it=ot.length-1;it>=0;--it)U.push({node:ot[it],shadow:null});if(Ie){const it=A?A(xe):null;if(typeof it=="string"&&et(it)==="template"){const Et=xe.content;Ae(Et)&&U.push({node:Et,shadow:null})}}if(Ie){const it=x(xe);Ae(it)&&U.push({node:null,shadow:it},{node:it,shadow:null})}}};return n.sanitize=function(me){let S=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},U=null,ue=null,xe=null,De=null;if(Gt=!me,Gt&&(me="<!-->"),typeof me!="string"&&!Le(me)&&(me=Sh(me),typeof me!="string"))throw Tn("dirty is not a string, aborting");if(!n.isSupported)return me;Oe?(Z=Re,J=tt):zt(S),(L.uponSanitizeElement.length>0||L.uponSanitizeAttribute.length>0)&&(Z=It(Z)),L.uponSanitizeAttribute.length>0&&(J=It(J)),n.removed=[];const Ie=gt&&typeof me!="string"&&Le(me);if(Ie){ke(me);const Et=B(me);if(typeof Et=="string"){const Mt=et(Et);if(!Z[Mt]||Te[Mt])throw Xt(me),Tn("root node is forbidden and cannot be sanitized in-place")}if(he(me))throw Xt(me),Tn("root node is clobbered and cannot be sanitized in-place");try{Ja(me)}catch(Mt){throw Xt(me),Mt}}else if(Le(me))U=Ne("<!---->"),ue=U.ownerDocument.importNode(me,!0),ue.nodeType===Ft.element&&ue.nodeName==="BODY"||ue.nodeName==="HTML"?U=ue:U.appendChild(ue),Ja(ue);else{if(!Ke&&!Se&&!Me&&me.indexOf("<")===-1)return k&&We?j(me):me;if(U=Ne(me),!U)return Ke?null:We?N:""}U&&Ye&&ht(U.firstChild);const ot=Ie?me:U;try{const Et=Be(ot);for(;xe=Et.nextNode();)Jt(xe,ot),wo(xe),Ae(xe.content)&&wa(xe.content)}catch(Et){throw Ie&&(Xt(me),jn(n.removed,Mt=>{Mt.element&&G(Mt.element)})),Et}if(Ie)return jn(n.removed,Et=>{Et.element&&G(Et.element)}),Se&&X(me),me;if(Ke){if(Se&&X(U),fe)for(De=q.call(U.ownerDocument);U.firstChild;)De.appendChild(U.firstChild);else De=U;return(J.shadowroot||J.shadowrootmode)&&(De=M.call(r,De,!0)),De}let it=Me?U.outerHTML:U.innerHTML;return Me&&Z["!doctype"]&&U.ownerDocument&&U.ownerDocument.doctype&&U.ownerDocument.doctype.name&&At(Oh,U.ownerDocument.doctype.name)&&(it="<!DOCTYPE "+U.ownerDocument.doctype.name+`>
808
+ `+it),Se&&(it=Ge(it)),k&&We?j(it):it},n.setConfig=function(){let me=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};zt(me),Oe=!0,Re=Z,tt=J},n.clearConfig=function(){Vt=null,Oe=!1,Re=null,tt=null,k=I,N=""},n.isValidAttribute=function(me,S,U){Vt||zt({});const ue=et(me),xe=et(S);return Tt(ue,xe,U)},n.addHook=function(me,S){typeof S=="function"&&$t(L,me)&&ta(L[me],S)},n.removeHook=function(me,S){if($t(L,me)){if(S!==void 0){const U=_h(L[me],S);return U===-1?void 0:wh(L[me],U,1)[0]}return Xo(L[me])}},n.removeHooks=function(me){$t(L,me)&&(L[me]=[])},n.removeAllHooks=function(){L=us()},n}var Kh=ds();const Yh=/^(?:[a-z]+:)?\/\//i,Zh="__ihab_core_asset_base_url__";function Xh(){return globalThis[Zh]??""}function ur(e){const n=String(e||"").trim();if(!n)return"";if(Yh.test(n)||n.startsWith("data:")||n.startsWith("blob:"))return n;const a=n.startsWith("/")?n:`/${n}`,r=Xh();return r?`${r}${a}`:a}const ps="__ihab_core_storage_resolvers__";function oa(){return globalThis[ps]??null}function Jh(e){globalThis[ps]=e}let ms=class extends Error{constructor(n){super(`
809
809
  [ihabdevteam-core] ${n}() \uD638\uCD9C \uC2E4\uD328 \u2014 configureStorage()\uAC00 \uC124\uC815\uB418\uC9C0 \uC54A\uC558\uC2B5\uB2C8\uB2E4.
810
810
 
811
811
  \uC571 \uCD08\uAE30\uD654 \uC2DC\uC810(main.tsx \uB4F1)\uC5D0 \uC544\uB798\uC640 \uAC19\uC774 \uD55C \uBC88 \uD638\uCD9C\uD558\uC138\uC694:
@@ -824,24 +824,24 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
824
824
  \uC124\uCE58 \uBA85\uB839\uC5B4 (\uC2A4\uD1A0\uB9AC\uC9C0 SDK \uBBF8\uC124\uCE58 \uC2DC):
825
825
  npm install @supabase/supabase-js
826
826
  pnpm add @supabase/supabase-js
827
- `),this.name="StorageNotConfiguredError"}};function Jh(e){Xh(e)}function ms(e,n){if(!e)return null;const a=oa();return a?.resolvePath?a.resolvePath(e,n):n?`${n}/${e}.mp3`:null}async function hs(e){if(!e)return null;const n=oa();if(!n)throw new ps("getSignedOrPublicUrl");try{return await n.resolveUrl(e)}catch{return null}}async function fs(e){const n=oa();if(!n)throw new ps("downloadSound");return n.download(e)}function Qh(){return oa()?.noiseBaseUrl??"/sounds/noise"}function Cs(){const e=Number(oa()?.noiseFileGain);return Number.isFinite(e)&&e>0?e:1}function e0(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 ur(){return globalThis[gs]?.urlResolver??null}function t0(){return globalThis[gs]?.fallbackUrlResolver??null}const n0="__ihab_core_pronunciation_resolver__";function a0(){return globalThis[n0]??null}let xn=null;const sa=new WeakMap,dr=new WeakMap,pr=new WeakMap;let bs=!1;const ys=e=>Math.max(0,Math.min(1,Number.isFinite(e)?e:0));function r0(){if(bs||typeof document>"u")return;bs=!0;const e=()=>{try{xn&&xn.state!=="running"&&xn.resume()}catch{}};for(const n of["pointerdown","touchend","keydown"])document.addEventListener(n,e,{capture:!0,passive:!0})}function vs(){if(xn)return xn;try{const e=window.AudioContext||window.webkitAudioContext;return e?(xn=new e,r0(),xn):null}catch{return null}}function mr(){try{xn?.resume()}catch{}}function hr(e,n){const a=sa.get(n);if(a)return a;try{const r=e.createMediaElementSource(n),o=e.createGain(),i=e.createAnalyser();i.fftSize=1024,i.smoothingTimeConstant=.6,o.gain.value=ys(dr.get(n)??n.volume),r.connect(o),o.connect(i),o.connect(e.destination);try{n.volume=1}catch{}const l={gain:o,analyser:i};return sa.set(n,l),l}catch{return null}}function ka(e){if(!e)return Promise.resolve(null);const n=sa.get(e);if(n)return Promise.resolve(n.analyser);const a=vs();if(!a)return Promise.resolve(null);if(a.state==="running")return Promise.resolve(hr(a,e)?.analyser??null);const r=pr.get(e);if(r)return r;const o=Promise.resolve().then(()=>a.resume()).then(()=>a.state==="running"?hr(a,e)?.analyser??null:null).catch(()=>null).finally(()=>{pr.delete(e)});return pr.set(e,o),o}function o0(e){if(!e)return null;const n=sa.get(e);if(n)return n.analyser;const a=vs();return a?a.state==="running"?hr(a,e)?.analyser??null:(ka(e),null):null}function _n(e,n){const a=ys(n);dr.set(e,a);const r=sa.get(e);if(r){try{e.volume!==1&&(e.volume=1)}catch{}const o=r.gain.gain;try{const i=r.gain.context.currentTime;o.cancelScheduledValues(i),o.setTargetAtTime(a,i,.01)}catch{try{o.value=a}catch{}}return"gain"}try{e.volume=a}catch{}return"element"}function Aa(e){return dr.get(e)??e.volume}function s0(e,n){e.getFloatTimeDomainData(n);let a=0;for(let r=0;r<n.length;r++){const o=n[r];a+=o*o}return Math.sqrt(a/n.length)}const i0="__ihab_core_image_config__";function Wn(){return globalThis[i0]??null}const xs="word_image_existence_map_v1";let En=null;const Na=new Map;function l0(){if(En)return En;try{const e=typeof localStorage<"u"?localStorage.getItem(xs):null,n=e?JSON.parse(e):null;En=n&&typeof n=="object"&&!Array.isArray(n)?n:{}}catch{En={}}return En}let fr=null;function c0(){fr||(fr=setTimeout(()=>{fr=null;try{typeof localStorage<"u"&&En&&localStorage.setItem(xs,JSON.stringify(En))}catch{}},200))}function u0(e,n){return`${e}_${n??1}`}async function _s(e,n){const a=l0(),r=u0(e,n);if(r in a)return a[r];if(Na.has(r))return Na.get(r);const o=Wn();if(!o)return!1;const i=o(e,n);if(!i)return!1;const l=fetch(i,{method:"HEAD",signal:e0(8e3)}).then(c=>c.status>=500?null:c.ok,()=>null).then(c=>(Na.delete(r),c===null?!1:(a[r]=c,c0(),c)));return Na.set(r,l),l}const ws=["\u3131","\u3132","\u3134","\u3137","\u3138","\u3139","\u3141","\u3142","\u3143","\u3145","\u3146","\u3147","\u3148","\u3149","\u314A","\u314B","\u314C","\u314D","\u314E"],ks=["\u314F","\u3150","\u3151","\u3152","\u3153","\u3154","\u3155","\u3156","\u3157","\u3158","\u3159","\u315A","\u315B","\u315C","\u315D","\u315E","\u315F","\u3160","\u3161","\u3162","\u3163"],d0=["","\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 ia(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 p0(e){const n=ia(e[0]||"");return n?ws[n.cho]:""}function m0(e){if(!e)return()=>!0;e=e.normalize("NFC");const n=[...e],a=l=>ws.includes(l),r=l=>ks.includes(l),o=n.map(l=>a(l)?"cho":r(l)?"jung":ia(l)?"syl":"other"),i=n.map(l=>ia(l));if(o.includes("other")){const l=e.toLowerCase();return c=>c.normalize("NFC").toLowerCase().includes(l)}return l=>{const c=[...l.normalize("NFC")];for(let u=0;u+n.length<=c.length;u++){let d=!0;for(let p=0;p<n.length;p++){const m=c[u+p],h=o[p];if(h==="cho"){if(p0(m)!==n[p]){d=!1;break}}else if(h==="jung"){const C=ia(m);if(!C||ks[C.jung]!==n[p]){d=!1;break}}else{const C=i[p];if(C&&C.jong===0){const y=ia(m);if(!y||y.cho!==C.cho||y.jung!==C.jung){d=!1;break}}else if(m!==n[p]){d=!1;break}}}if(d)return!0}return!1}}const h0={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(h0).map(([e,n])=>[n.join(""),d0[Number(e)]]));const f0="word_pair_index_v2",C0="word_pair_index_sig_v2";let Ba=null;function g0(){try{if(typeof localStorage>"u")return null;const e=localStorage.getItem(f0),n=localStorage.getItem(C0);return!e||!n?null:{index:JSON.parse(e),sig:n}}catch{return null}}function b0(){if(Ba)return Ba;const e=g0();return e?(Ba=e.index,e.sig,Ba):null}const y0={\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"}},Cr=/[ㄱ-ㅎ]/,v0=/[ㅏ-ㅣ]/;function As(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||Cr.test(a)||v0.test(a))return a}return null}function x0(e){const n=As(e);if(!n)return"\uAC00";const a=n.charCodeAt(0);return a>=44032&&a<=55203?(a-44032)%28!==0?"\uC774":"\uAC00":Cr.test(n)?"\uC774":"\uAC00"}function _0(e){return`${e}${x0(e)}`}function w0(e){const n=As(e);if(!n)return"\uB97C";const a=n.charCodeAt(0);return a>=44032&&a<=55203?(a-44032)%28!==0?"\uC744":"\uB97C":Cr.test(n)?"\uC744":"\uB97C"}function k0(e){return`${e}${w0(e)}`}function A0(e,n,a){const r=e.slice(),[o]=r.splice(n,1);return r.splice(a,0,o),r}function la(e,n=Math.random){const a=e.slice();for(let r=a.length-1;r>0;r--){const o=Math.floor(n()*(r+1));[a[r],a[o]]=[a[o],a[r]]}return a}const N0=()=>{const e="\uC54C \uC218 \uC5C6\uB294 \uC624\uB958",n=typeof Lt?.t=="function"?Lt.t("common.unknownError",{defaultValue:e}):void 0;return typeof n=="string"&&n?n:e};function Ns(e,n){if(n===void 0&&(n=N0()),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 B0="__ihab_core_word_pool__";function S0(){return globalThis[B0]??null}const Bs=globalThis;function Ss(e,n){const a=r=>{};try{const r=n();r&&typeof r.catch=="function"&&r.catch(a)}catch(r){a(r)}}function D0(e){Ss("time",()=>Bs.__ihabTrainingTimeLogger?.(e))}function T0(e){Ss("completion",()=>Bs.__ihabTrainingCompletionLogger?.(e))}function Qt(e){return typeof e=="string"?e.trim()||null:typeof e=="number"?String(e):null}function j0(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 E0(e){return Array.isArray(e)?e.map((n,a)=>{const r=n??{};return{index:a,itemId:Qt(r.contextCode)??Qt(r.itemId)??Qt(r.itemCode)??Qt(r.id),question:Qt(r.question)??Qt(r.sentence)??Qt(r.word)??Qt(r.targetSyllable),answer:Qt(r.answer),selected:Qt(r.selectedText)??Qt(r.selected),correct:j0(r)}}):[]}const gr=globalThis;async function M0(){try{return await gr.__ihabNoiseSettingsStore?.load()??null}catch{return null}}function Ds(e){const n=a=>{};try{const a=gr.__ihabNoiseSettingsStore?.save(e);a&&typeof a.catch=="function"&&a.catch(n)}catch(a){n(a)}}function Sa(e){try{gr.__ihabNoiseSettingsStore?.applied?.(e)}catch{}}async function L0(e){if(typeof document<"u"){const n=document.activeElement;let a=null;try{if(a=document.createElement("textarea"),a.value=e,a.setAttribute("readonly",""),a.style.position="fixed",a.style.top="0",a.style.left="0",a.style.opacity="0",a.style.pointerEvents="none",document.body.appendChild(a),a.focus(),a.select(),a.setSelectionRange(0,e.length),document.execCommand("copy"))return!0}catch{}finally{if(a?.parentNode&&a.parentNode.removeChild(a),n&&n!==document.activeElement&&typeof n.focus=="function"&&n.isConnected)try{n.focus({preventScroll:!0})}catch{}}}try{if(typeof navigator<"u"&&navigator.clipboard&&typeof navigator.clipboard.writeText=="function")return await navigator.clipboard.writeText(e),!0}catch{}return!1}function Mn(){return br(new Date)}function qn(){return R0(Mn())}const $0=540*60*1e3;function Ts(e,n,a){return new Date(Date.UTC(e,n,a)-$0)}function R0(e){const[n,a,r]=e.split("-").map(Number);return new Date(n,(a||1)-1,r||1)}function br(e){if(e==null||e==="")return"";const n=e instanceof Date?e:new Date(e);return isNaN(n.getTime())?"":new Intl.DateTimeFormat("fr-CA",{timeZone:"Asia/Seoul"}).format(n)}function js(e,n){if(!e)return"";const a=new Date(e).getTime();if(Number.isNaN(a))return"";const r=Math.max(0,Math.floor((Date.now()-a)/1e3)),o=Math.floor(r/60),i=Math.floor(o/60),l=Math.floor(i/24),c=Math.floor(l/7),u=Math.floor(l/30),d=Math.floor(l/365);return o<1?n("store.time.justNow","\uBC29\uAE08 \uC804"):o<60?n("store.time.minutesAgo",{n:o}):i<24?n("store.time.hoursAgo",{n:i}):l<7?n("store.time.daysAgo",{n:l}):c<5?n("store.time.weeksAgo",{n:c}):l<365?n("store.time.monthsAgo",{n:Math.min(u,11)}):n("store.time.yearsAgo",{n:d})}function Es(e,n={}){const{sep:a=".",pad:r=!0,trailingDot:o=!1,fallback:i="\u2014"}=n;if(!e)return i;const l=br(e instanceof Date?e:String(e));if(!l)return i;const[c,u,d]=l.split("-"),p=r?u:String(Number(u)),m=r?d:String(Number(d));return`${c}${a}${p}${a}${m}${o?".":""}`}function ca(e){if(!e)return e;const n=e.trim();return/^[₩$]/.test(n)?n:/원\s*$/.test(n)?"\u20A9"+n.replace(/\s*원\s*$/,"").trim():n}function Ms(e,n){if(!e)return"-";const a=/^(\d{1,2}):(\d{2})$/.exec(e.trim());if(!a)return e;const r=Number(a[1]),o=Number(a[2]),i=a[1].padStart(2,"0");return o===0?n("date.timeH",{h:r,hh:i,mm:a[2]}):n("date.timeHM",{h:r,hh:i,m:o,mm:a[2]})}function yr(e){return(e??0).toLocaleString("ko-KR")}const P0=[{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"}]}],I0=[{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 Ls(){return P0}function F0(){return I0}const O0=[],H0=[],V0=[],z0=[];function W0(){return{LISTEN_IN_NOISE:O0,SHORT_STORY:H0,LONG_STORY:V0,ORDERING_SENTENCE:z0}}const q0=[{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."}],$s={LISTEN_IN_NOISE:"listenInNoise",SHORT_STORY:"shortStory",LONG_STORY:"longStory",ORDERING_SENTENCE:"orderingSentence"};function U0(e){return q0.map(n=>{const a=$s[n.key];return a?{...n,label:e(`trainingType.${a}.title`),desc:e(`trainingType.${a}.desc`)}:n})}let Da=null,Rs=null,Ps=null;function G0(){const e=S0();if(e&&e.entries.length>0){const n=b0();if(Da&&Rs===e&&Ps===n)return Da;const a=new Set,r=[];for(const o of e.entries)!o.word||a.has(o.word)||(a.add(o.word),r.push({w:o.word,s:o.syllables,p:n?.[o.word]?[...n[o.word].cho??[],...n[o.word].jung??[],...n[o.word].jong??[]]:[],pron:o.pronunciation||o.word,grade:o.grade}));return Da=r,Rs=e,Ps=n,Da}return[]}new Proxy([],{get(e,n){const a=G0(),r=a[n];return typeof r=="function"?r.bind(a):r}});const K0="0.145.0";function Y0(e){return typeof window>"u"?"":Gh.sanitize(e,{USE_PROFILES:{svg:!0,svgFilters:!0},FORBID_TAGS:["script","use"],FORBID_ATTR:["xlink:href","href"]})}function Z0(e){const[n,a]=s.useState(null),[r,o]=s.useState(null),[i,l]=s.useState(null),[c,u]=s.useState(null);return s.useEffect(()=>{if(!e||typeof e!="string"||!e.endsWith(".svg")){a(null),o(null),l(null);return}const d=e.split("/").pop();let p=e;d&&(e.startsWith("/")?p=cr(e):/^(Logo|Symbol)/i.test(d)?p=cr(`logo/${d}`):(/^https?:\/\//i.test(e)||e.startsWith("data:"),p=e)),o(null),l(null),a(p)},[e]),s.useEffect(()=>{if(!n)return;let d=!1;async function p(){try{let m=await fetch(n);m.ok||(m=await fetch(n));const h=m.headers.get("content-type")||"";if(d)return;if(h.includes("svg")){o("mask");return}if(h.startsWith("image/")){o("img");return}const C=await fetch(n);if(!C.ok)throw new Error("not ok");const y=await C.text();if(d)return;if(/^\s*<svg[\s>]/i.test(y)){const f=Y0(y);if(!f){o("none");return}l(f),o("inline");return}o("none")}catch{d||o("none")}}return p(),()=>{d=!0}},[n]),s.useEffect(()=>{let d=!1,p=null;return r==="mask"&&n&&fetch(n).then(m=>{if(!m.ok)throw new Error("fetch failed");return m.blob()}).then(m=>{d||(p=URL.createObjectURL(m),u(p))}).catch(()=>{d||o("img")}),()=>{d=!0,p&&URL.revokeObjectURL(p),u(null)}},[r,n]),{iconToUse:n,mode:r,svgText:i,blobUrl:c}}function We(e){const{icon:n,label:a,className:r,imgClassName:o,maskClassName:i,svgClassName:l,wrapperStyle:c,size:u}=e||{},d=r??"iconRenderer-icon",p=o??"iconRenderer-icon-image",m=i??"iconRenderer-icon-mask",h=l??"iconRenderer-icon-svg",C=typeof n=="string"?n:null,y=ph(C),{iconToUse:f,mode:v,svgText:b,blobUrl:x}=Z0(C),_=(S,N={})=>t.jsx("span",{className:d,style:c,...N,children:S}),g=(S,N={})=>t.jsx("img",{src:S,alt:typeof a=="string"?a:typeof a=="number"?String(a):"",className:p,...N});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 _(s.createElement(y,{className:h,size:typeof u=="number"?u:20}),{"aria-hidden":"true"})}catch{}if(f&&f.endsWith(".svg")){if(v==="mask"){const S={"--icon-url":x?`url(${x})`:`url(${f})`,...typeof u=="number"?{"--icon-size":`${u}px`}:null};return _(t.jsx("span",{className:m,style:S}),{"aria-hidden":"true"})}return v==="img"?_(g(f,{onError:S=>{S.currentTarget.onerror=null,S.currentTarget.style.display="none"}}),{"aria-hidden":"true"}):v==="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 g(cr(n),{style:c,onError:S=>{S.currentTarget.onerror=null,S.currentTarget.style.display="none"}});const A=typeof u=="number"?u:20,w=`<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:w}}),{"aria-hidden":"true"})}function X0({icon:e,emoji:n,title:a,message:r,hint:o,action:i,compact:l,className:c}){return t.jsxs("div",{className:ge("empty-state",l&&"empty-state--compact",c),children:[n&&t.jsx("span",{className:"empty-state__emoji",children:n}),e&&t.jsx(We,{icon:e,className:"empty-state__icon"}),a&&t.jsx("p",{className:"empty-state__title body-2",children:a}),r&&t.jsx("p",{className:"empty-state__message body-3",children:r}),o&&t.jsx("p",{className:"empty-state__hint caption-1",children:o}),i&&t.jsxs("button",{type:"button",className:"empty-state__action button button40 button40--bar button--variant-main button--align-center button--shape-rounded",onClick:i.onClick,children:[i.icon&&t.jsx(We,{icon:i.icon,className:"button__icon"}),t.jsx("span",{className:"button__label button-1",children:i.label})]})]})}function J0({message:e,hint:n,icon:a="triangle-alert",onRetry:r,retryLabel:o,className:i}){const{t:l}=pe.useTranslation();return t.jsxs("div",{className:ge("empty-state","error-state",i),role:"alert",children:[t.jsx(We,{icon:a,className:"empty-state__icon error-state__icon"}),t.jsx("p",{className:"empty-state__message body-3",children:e??l("common.errorState.message",{defaultValue:"\uBD88\uB7EC\uC624\uC9C0 \uBABB\uD588\uC2B5\uB2C8\uB2E4."})}),n&&t.jsx("p",{className:"empty-state__hint caption-1",children:n}),r&&t.jsxs("button",{type:"button",className:"empty-state__action button button40 button40--bar button--variant-main button--align-center button--shape-rounded",onClick:r,children:[t.jsx(We,{icon:"rotate-cw",className:"button__icon"}),t.jsx("span",{className:"button__label button-1",children:o??l("common.errorState.retry",{defaultValue:"\uB2E4\uC2DC \uC2DC\uB3C4"})})]})]})}function Q0({icon:e,title:n,description:a,cta:r,tone:o="main",disabled:i=!1,onClick:l,className:c=""}){const u=()=>{i||l?.()};return t.jsx("section",{role:"button",tabIndex:i?-1:0,"aria-disabled":i||void 0,"aria-label":n,onClick:u,onKeyDown:d=>{(d.key==="Enter"||d.key===" ")&&(d.preventDefault(),u())},className:ge("action-card",`action-card--${o}`,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(We,{icon:e,size:34})}),t.jsxs("div",{className:"action-card__text",children:[t.jsx("h2",{className:"action-card__title",children:n}),t.jsx("p",{className:"action-card__desc",children:a})]}),t.jsxs("div",{className:"action-card__cta",children:[t.jsx("span",{children:r}),t.jsx("span",{"aria-hidden":!0,className:"action-card__arrow",children:t.jsx(We,{icon:"arrow-right",size:18})})]})]})})}function e2({as:e="div",className:n="",children:a,storage:r,...o}){r&&Jh({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=ge("ihabdevteam-core-scope",n);return t.jsx(e,{className:i,...o,children:a})}function t2({title:e="",lines:n=[],notices:a=null,children:r,variant:o="default",dismissible:i=!1,className:l=""}){const{t:c}=pe.useTranslation(),[u,d]=s.useState(!1),p=s.useCallback(()=>d(!0),[]);if(u)return null;const m=`notice-box notice-box--${o} body-2 ${l}`.trim();if(a&&Array.isArray(a)&&a.length)return t.jsx("div",{className:m,role:"note",children:a.map((C,y)=>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((f,v)=>t.jsx("span",{className:"notice-box__line body-3",children:f},v))}):C.children??null})]},y))});const h=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,y)=>t.jsx("li",{className:"notice-box__line",children:C},y))}):r})]}):t.jsx("div",{className:"notice-box__inner",children:r});return t.jsxs("div",{className:m,role:"note",children:[h,i&&t.jsx("button",{type:"button",className:"notice-box__dismiss",onClick:p,"aria-label":c("common.close","\uB2EB\uAE30"),children:"\xD7"})]})}function vr(e,n=!0){s.useEffect(()=>{if(!n)return;const a=e.current;if(!a)return;const r=o=>{if(o.key!=="Tab")return;const i=Array.from(a.querySelectorAll(Ln)).filter(p=>!p.closest('[aria-hidden="true"]'));if(!i.length){o.preventDefault();return}const l=i[0],c=i[i.length-1],u=document.activeElement,d=u===a;o.shiftKey&&(u===l||d)?(o.preventDefault(),c.focus()):!o.shiftKey&&u===c&&(o.preventDefault(),l.focus())};return a.addEventListener("keydown",r),()=>a.removeEventListener("keydown",r)},[e,n])}const Ln='a[href], button:not([disabled]), input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex="-1"])',Un=[];let Ta=!1;function Is(e){if(e.key!=="Escape"||e.defaultPrevented||e.isComposing||e.keyCode===229)return;const n=Un[Un.length-1];n&&(e.stopPropagation(),n())}function $n(e){return Un.push(e),!Ta&&typeof document<"u"&&(document.addEventListener("keydown",Is),Ta=!0),()=>{const n=Un.lastIndexOf(e);n>=0&&Un.splice(n,1),Un.length===0&&Ta&&typeof document<"u"&&(document.removeEventListener("keydown",Is),Ta=!1)}}function wn(e){const{anchorRect:n,anchorEl:a,offset:r=20,edgeMargin:o=20,onClose:i,closeOnOutsideClick:l=!0,className:c="",role:u="dialog",ariaLabel:d="",children:p,backdrop:m=!1,isMobilePopup:h=!1,useBorder:C=!0,header:y}=e||{},f=s.useRef(null),[v,b]=s.useState({position:"fixed",left:0,top:-9999}),[x,_]=s.useState(!1),[g,A]=s.useState("bottom"),[w,S]=s.useState(!1),[N,k]=s.useState(!1),B=!n&&!a,V=s.useCallback((O=!1)=>{if(N&&h)return;const W=a?a.getBoundingClientRect():n;if(!W||!f.current)return;const le=f.current,{offsetWidth:q,offsetHeight:P}=le,M=window.innerWidth,L=window.innerHeight,z=M-W.right,$=W.left,E=W.top,I=L-W.bottom;let oe=0,re=0,ee="top";if(E>=P+r)ee="top",re=W.top-r-P,oe=W.left+W.width/2-q/2;else if(I>=P+r)ee="bottom",re=W.bottom+r,oe=W.left+W.width/2-q/2;else if(z>=q+r)ee="right",oe=W.right+r,re=W.top+W.height/2-P/2;else if($>=q+r)ee="left",oe=W.left-r-q,re=W.top+W.height/2-P/2;else{const ie=Math.max(E,I,z,$);ie===E?(ee="top",re=W.top-r-P,oe=W.left+W.width/2-q/2):ie===I?(ee="bottom",re=W.bottom+r,oe=W.left+W.width/2-q/2):ie===z?(ee="right",oe=W.right+r,re=W.top+W.height/2-P/2):(ee="left",oe=W.left-r-q,re=W.top+W.height/2-P/2)}const se=Number.isFinite(Number(o))?Number(o):8;oe=Math.min(Math.max(oe,se),M-q-se),re=Math.min(Math.max(re,se),L-P-se);const Ce=Math.round(oe),Z=Math.round(re);O&&f.current?(f.current.style.left=`${Ce}px`,f.current.style.top=`${Z}px`,f.current.dataset.placement=ee):(A(ee||g),b({position:"fixed",left:Ce,top:Z}),S(!0))},[N,h,a,n,r,o,g]);s.useLayoutEffect(()=>{if(B)return;if(N&&h){b({position:"fixed",left:"50%",top:"50%",transform:"translate(-50%, -50%)",width:"calc(100% - 40px)",maxWidth:"calc(100% - 40px)"}),S(!0);return}V();const O=requestAnimationFrame(()=>V());return()=>cancelAnimationFrame(O)},[n,a,r,p,o,B,N,h,V]),s.useEffect(()=>{if(B||N&&h||!f.current||typeof ResizeObserver>"u")return;const O=new ResizeObserver(()=>{n&&V()});return O.observe(f.current),()=>O.disconnect()},[n,p,o,B,N,h,V]),s.useEffect(()=>{if(B||N&&h)return;const O=()=>V(!0),W=le=>{if(!a&&i){const q=le.target;if(q&&f.current&&f.current.contains(q))return;try{if(q&&q.closest&&q.closest("[data-tooltip-ignore]"))return}catch{}T.current(!0);return}O()};return window.addEventListener("resize",O),document.addEventListener("scroll",W,{passive:!0,capture:!0}),()=>{window.removeEventListener("resize",O),document.removeEventListener("scroll",W,{capture:!0})}},[n,a,i,r,p,o,B,N,h,V]),s.useEffect(()=>{if(typeof window>"u"||!window.matchMedia)return;const O=window.matchMedia("(max-width: 768px)"),W=()=>k(!!O.matches);W();try{O.addEventListener?O.addEventListener("change",W):O.addListener(W)}catch{try{O.addListener(W)}catch{}}return()=>{try{O.removeEventListener?O.removeEventListener("change",W):O.removeListener(W)}catch{}}},[]);const H=s.useRef(!1),j=s.useRef(null),F=s.useCallback((O=!1)=>{if(i&&!(x||H.current)){if(H.current=!0,O){_(!0);try{i&&i()}catch{H.current=!1,_(!1)}return}_(!0),j.current=setTimeout(()=>{j.current=null;try{i&&i()}catch{H.current=!1,_(!1)}},200)}},[x,i,_]);s.useEffect(()=>()=>{j.current&&clearTimeout(j.current)},[]),s.useEffect(()=>{if(B)return;const O=q=>{const P=f.current;if(!P)return;const M=q.target;if(M&&!P.contains(M)){try{if(M.closest&&M.closest("[data-tooltip-ignore]"))return}catch{}l&&F(!0)}},W=q=>{const P=f.current;if(!P)return;const M=q.target;if(M&&!P.contains(M)){try{if(M.closest&&M.closest("[data-tooltip-ignore]"))return}catch{}l&&F(!0)}},le=q=>{if(q.key==="Tab"){const P=f.current;if(!P)return;const M=P.querySelectorAll(Ln);if(!M||M.length===0)return;const L=M[0],z=M[M.length-1],$=document.activeElement;q.shiftKey?$===L&&(q.preventDefault(),z.focus()):$===z&&(q.preventDefault(),L.focus())}};return document.addEventListener("pointerdown",O,!0),document.addEventListener("click",W,!0),document.addEventListener("keydown",le),()=>{document.removeEventListener("pointerdown",O,!0),document.removeEventListener("click",W,!0),document.removeEventListener("keydown",le)}},[i,l,F,B]);const T=s.useRef(F);s.useEffect(()=>{T.current=F});const Y=!!i;s.useEffect(()=>{if(!(B||!Y))return $n(()=>T.current())},[B,Y]),s.useEffect(()=>{const O=()=>{F(!0)};return typeof document<"u"&&document.addEventListener("speechear-close-tooltips",O),()=>{typeof document<"u"&&document.removeEventListener("speechear-close-tooltips",O)}},[F]);const R=t.jsxs("div",{ref:f,className:`tooltip-content ${B?"tooltip-content--inline":""} ${C?"tooltip-content--bordered":""} ${x?"is-closing":""} ${c} ${N&&h?"is-mobile":""}`,role:u,"aria-label":d||void 0,style:B?{}:{...v,visibility:w?"visible":"hidden"},tabIndex:-1,"data-placement":g,"data-left":B?"":v.left,"data-top":B?"":v.top,"data-anchor-left":n?Math.round(n.left):"","data-anchor-top":n?Math.round(n.top):"","data-anchor-width":n?Math.round(n.width):"","data-anchor-height":n?Math.round(n.height):"",children:[y!=null&&t.jsx("div",{className:"tooltip-content__header h5",children:y}),p]});if(B||typeof document>"u")return R;if(m||N&&h){const O=t.jsxs("div",{className:"tooltip-portal",children:[t.jsx("div",{className:"tooltip-backdrop",onClick:()=>{l&&F(!0)}}),R]});return qt.createPortal(O,document.body)}return qt.createPortal(R,document.body)}function kn(e){const{anchorRect:n,text:a,offset:r=8,onClose:o,className:i="",ariaLabel:l}=e||{};return a?t.jsx(wn,{anchorRect:n,offset:r,onClose:o,closeOnOutsideClick:!1,className:`tooltip-info ${i}`,ariaLabel:l||a,children:t.jsx("div",{className:"tooltip-info__content body-3",children:a})}):null}function Rn(e){const{t:n}=pe.useTranslation(),{anchorRect:a,title:r,items:o,activeIndex:i=-1,showIndex:l=!0,onClose:c,offset:u=12,closeOnOutsideClick:d=!0}=e||{},p=(Array.isArray(o)?o:o?[o]:[]).map(m=>typeof m=="string"?{text:m}:m);return!p.length&&!r?null:t.jsx(wn,{anchorRect:a,offset:u,onClose:c,closeOnOutsideClick:d,useBorder:!1,className:"tooltip-description",ariaLabel:r||n("tooltip.description","\uC124\uBA85"),children:t.jsxs("div",{className:"tooltip-description__box",children:[r&&t.jsx("span",{className:"tooltip-description__title body-2",children:r}),t.jsx("ol",{className:"tooltip-description__items",children:p.map((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 ce(e){const{size:n=48,type:a,htmlType:r,href:o,target:i,rel:l,icon:c,rightIcon:u,label:d,count:p,subLabel:m,children:h,ariaLabel:C,variant:y="default",align:f="center",selected:v,toggleable:b=!1,disabled:x=!1,useLabel:_=!0,useBorder:g=!0,useBG:A=!0,useDisabledCovered:w=!1,useDisabledInvisible:S=!1,width:N,minWidth:k,onClick:B,onDisabledClick:V,showTooltipInfo:H=!1,tooltipInfoText:j=null,tooltipDescription:F=null,tooltipOnly:T=!1,iconSize:Y="medium",iconColor:R,shape:O="rounded",color:W,className:le,...q}=e,P=typeof n=="string"&&isNaN(Number(n))?n.toLowerCase():String(Number(n)||48),M=P.match(/^\d+$/)?`button${P}`:`button-${P}`,L=Number(n),z=!isNaN(L)&&L<40?"button-2":"button-1",$=d??h,E=x||!!q.disabled,I=E?w?"disabled-covered":S?"disabled-invisibled":"disabled":y,oe=I?`button--variant-${I}`:"",re=f?`button--align-${f}`:"",ee=O?`button--shape-${O}`:"",se=typeof R=="string"&&R.startsWith("--")?`var(${R})`:R,Ce={...N?{width:typeof N=="number"?`${N}px`:N}:{},...k?{minWidth:typeof k=="number"?`${k}px`:k}:{},...g?{}:{"--button-border":E?"0":"1px solid transparent"},...se?{"--button-icon-color":se}:{},...W?{"--color-main":W}:{}},Z=_===!1?"":$,ie=Array.isArray(Z)?Z.length>0:!!Z,J=!!u,be=a??(ie||c||J?"bar":"dot"),ve=`${M}--${be}`,Te=s.useRef(null),de=s.useRef(E),[ye,we]=s.useState(!!v),[Q,te]=s.useState(!1),[_e,je]=s.useState(null),ze=s.useCallback(()=>te(!1),[]);s.useEffect(()=>{typeof v=="boolean"&&we(v)},[v]),s.useEffect(()=>{if(de.current&&!E&&Te.current){const Fe=Te.current;let Qe=!1;try{Qe=Fe.matches(":focus:not(:focus-visible)")}catch{Qe=!1}Qe&&Fe.blur(),Fe.style.pointerEvents="none";const Xe=requestAnimationFrame(()=>{requestAnimationFrame(()=>{Te.current&&(Te.current.style.pointerEvents="")})});return()=>cancelAnimationFrame(Xe)}de.current=E},[E]);const Me=typeof v=="boolean"?!!v:ye,Oe=b||typeof v=="boolean"?Me?"true":"false":q["aria-pressed"],Re=ge("button",M,ve,oe,re,ee,Me?"is-selected":null,A?null:"button--no-bg",T?"button--tooltip-only":null,le),tt=`button__icon button__icon--${Y}`,Ke=Array.isArray(m)?m:m!==void 0?[m]:[],Ue=()=>{if(Array.isArray(Z))return Z.map((Qe,Xe)=>{const rt=Ke[Xe];return t.jsxs("span",{className:`button__label-text${rt!==void 0?" button__label-text--has-sub":""}`,children:[Qe,rt!==void 0&&t.jsx("span",{className:"button__sub-label-text caption-1",children:rt})]},Xe)});const Fe=m!==void 0;return t.jsxs("span",{className:`button__label-text${Fe?" button__label-text--has-sub":""}`,children:[Z,p!=null&&t.jsx("span",{className:"button__count",children:p}),Fe&&t.jsx("span",{className:"button__sub-label-text caption-1",children:m})]})},fe=Fe=>{typeof v!="boolean"&&!b&&we(!1),Fe.currentTarget.blur()},Ge=Fe=>{E||(typeof q.onMouseLeave=="function"&&q.onMouseLeave(Fe),fe(Fe))},Ee=Fe=>{if(E){V?.(Fe);return}typeof v!="boolean"&&b&&we(Qe=>!Qe),B?.(Fe)},$e=s.useCallback(()=>{(H||F)&&(te(!0),je(Te.current?.getBoundingClientRect()??null))},[H,F]),He=s.useCallback(()=>{(H||F)&&(te(!1),je(null))},[H,F]),Ye={...q};delete Ye.disabled,delete Ye.className,delete Ye.faded,delete Ye.useFaded,delete Ye.loading,delete Ye.onMouseLeave,delete Ye.onPointerEnter,delete Ye.onPointerLeave,delete Ye.onFocus,delete Ye.onBlur,E&&(Object.keys(Ye).forEach(Fe=>{/^on[A-Z]/.test(Fe)&&typeof Ye[Fe]=="function"&&delete Ye[Fe]}),Ye["aria-disabled"]="true");const gt=(typeof H=="string"?H:null)??(typeof j=="string"?j:null)??(typeof C=="string"?C:null)??(typeof $=="string"?$:null)??void 0,dt=typeof C=="string"?C:typeof $=="string"?$:gt,st=(Fe,Qe)=>t.jsx(We,{icon:Fe,label:Qe??dt,className:tt,imgClassName:"button__icon-img",maskClassName:"button__icon-mask",svgClassName:"button__icon-svg"}),nt=()=>be==="dot"?t.jsxs(t.Fragment,{children:[st(c),ie&&t.jsx("span",{className:`button__label ${z}`,children:Ue()})]}):f==="center"&&c?t.jsxs(t.Fragment,{children:[t.jsxs("span",{className:"button__center-group",children:[t.jsx("span",{className:"button__left",children:st(c)}),ie&&t.jsx("span",{className:`button__label ${z}`,children:Ue()})]}),J&&t.jsx("span",{className:"button__right",children:st(u)})]}):t.jsxs(t.Fragment,{children:[c&&t.jsx("span",{className:"button__left",children:st(c,C??$)}),ie&&t.jsx("span",{className:`button__label ${z}`,children:Ue()}),J&&t.jsx("span",{className:"button__right",children:st(u)})]}),at=!!o&&!E;return t.jsxs(t.Fragment,{children:[t.jsx(at?"a":"button",{...Ye,ref:Te,...at?{href:o,target:i,rel:l??(i==="_blank"?"noreferrer":void 0)}:{type:r,disabled:E&&!V},className:Re,"aria-pressed":Oe,"aria-label":dt,"aria-disabled":E&&(at||V)?!0:void 0,style:Ce,onClick:Ee,onMouseLeave:Ge,onPointerEnter:Fe=>{$e(),!E&&typeof q.onPointerEnter=="function"&&q.onPointerEnter(Fe)},onPointerLeave:Fe=>{He(),!E&&typeof q.onPointerLeave=="function"&&q.onPointerLeave(Fe)},onFocus:Fe=>{$e(),!E&&typeof q.onFocus=="function"&&q.onFocus(Fe)},onBlur:Fe=>{E||fe(Fe),He(),!E&&typeof q.onBlur=="function"&&q.onBlur(Fe)},children:nt()}),Q&&F?t.jsx(Rn,{anchorRect:_e,title:F.title,items:F.items,onClose:ze}):Q&&gt?t.jsx(kn,{anchorRect:_e,text:gt,onClose:ze}):null]})}function ct(e,n,a){const r=s.useRef(null);return s.useLayoutEffect(()=>{const o=r.current?.parentElement??null;return n(o,e),()=>a(o)},[e,n,a]),r}const ua={title:"--promo-banner-bg-title",description:"--promo-banner-bg-description"},xr=new WeakMap;function _r(e){if(e)return xr.get(e)}function St(e,n){e&&(e.style.setProperty(ua.title,n.title),e.style.setProperty(ua.description,n.description),xr.set(e,n))}function Dt(e){e&&(e.style.removeProperty(ua.title),e.style.removeProperty(ua.description),xr.delete(e))}const Fs={title:"#ffffff",description:"rgba(255, 255, 255, 0.85)",actionVariant:"default"};function Os(){const e=ct(Fs,St,Dt);return t.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-main","aria-hidden":"true"})}const Hs={title:"var(--color-main)",description:"var(--color-gray)",actionVariant:"main"};function Vs(){const e=ct(Hs,St,Dt);return t.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-soft","aria-hidden":"true"})}const zs={title:"#ffffff",description:"rgba(255, 255, 255, 0.85)",actionVariant:"main"};function Ws(){const e=ct(zs,St,Dt);return t.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-sub","aria-hidden":"true"})}const qs={title:"#ffffff",description:"rgba(255, 255, 255, 0.85)",actionVariant:"main"};function Us(){const e=ct(qs,St,Dt);return t.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-deep","aria-hidden":"true"})}const Gs={title:"var(--color-darkSub)",description:"var(--color-gray)",actionVariant:"main"};function Ks(){const e=ct(Gs,St,Dt);return t.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-soft-sub","aria-hidden":"true"})}const Ys={title:"var(--color-black)",description:"var(--color-darkGray)",actionVariant:"main"};function Zs(){const e=ct(Ys,St,Dt);return t.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-warm","aria-hidden":"true"})}const Xs={title:"var(--color-white)",description:"var(--color-lightGray)",actionVariant:"main"};function Js(){const e=ct(Xs,St,Dt);return t.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-dark","aria-hidden":"true"})}const Qs={title:"#ffffff",description:"rgba(255, 255, 255, 0.85)",actionVariant:"main"};function ei(){const e=ct(Qs,St,Dt);return t.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-radial","aria-hidden":"true"})}const ti={title:"var(--color-darkMain)",description:"var(--color-gray)",actionVariant:"main"};function ni(){const e=ct(ti,St,Dt);return t.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-diagonal","aria-hidden":"true"})}const ai={title:"var(--color-darkSub)",description:"var(--color-gray)",actionVariant:"main"};function ri(){const e=ct(ai,St,Dt);return t.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-dots","aria-hidden":"true"})}const oi={title:"var(--color-black)",description:"var(--color-gray)",actionVariant:"main"};function si(){const e=ct(oi,St,Dt);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 ii={title:"#ffffff",description:"rgba(255, 255, 255, 0.85)",actionVariant:"main"};function li(){const e=ct(ii,St,Dt);return t.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-success","aria-hidden":"true"})}const ci={title:"#ffffff",description:"rgba(255, 255, 255, 0.85)",actionVariant:"sub"};function ui(){const e=ct(ci,St,Dt);return t.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-naver","aria-hidden":"true"})}const di={title:"#ffffff",description:"rgba(255, 255, 255, 0.85)",actionVariant:"transparent-white"};function pi(){const e=ct(di,St,Dt);return t.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-instagram","aria-hidden":"true"})}const n2=[{key:"main",label:"\uBA54\uC778 \uADF8\uB77C\uB514\uC5B8\uD2B8",textTone:"light"},{key:"soft",label:"\uC18C\uD504\uD2B8",textTone:"dark"},{key:"sub",label:"\uC11C\uBE0C \uCEEC\uB7EC",textTone:"light"},{key:"deep",label:"\uB525 \uADF8\uB77C\uB514\uC5B8\uD2B8",textTone:"light"},{key:"softSub",label:"\uC18C\uD504\uD2B8 \uC11C\uBE0C",textTone:"dark"},{key:"warm",label:"\uC6DC(\uAC15\uC870)",textTone:"dark"},{key:"dark",label:"\uB2E4\uD06C",textTone:"light"},{key:"radial",label:"\uBC29\uC0AC\uD615 \uADF8\uB77C\uB514\uC5B8\uD2B8",textTone:"light"},{key:"diagonal",label:"\uB300\uAC01\uC120 \uD328\uD134",textTone:"dark"},{key:"dots",label:"\uB3C4\uD2B8 \uD328\uD134",textTone:"dark"},{key:"outline",label:"\uC544\uC6C3\uB77C\uC778",textTone:"dark"},{key:"success",label:"\uC131\uACF5/\uC644\uB8CC",textTone:"light"},{key:"naver",label:"\uB124\uC774\uBC84 \uBE14\uB85C\uADF8 \uC548\uB0B4",textTone:"light"},{key:"instagram",label:"\uC778\uC2A4\uD0C0\uADF8\uB7A8 \uC548\uB0B4",textTone:"light"}],mi={main:Os,soft:Vs,sub:Ws,deep:Us,softSub:Ks,warm:Zs,dark:Js,radial:ei,diagonal:ni,dots:ri,outline:si,success:li,naver:ui,instagram:pi};function hi({storageKey:e="fontScale",baseFont:n=20,minScale:a=.8,maxScale:r=1.4,step:o=.1,lineHeightRatio:i=1.4}={}){const l=_=>Math.max(a,Math.min(r,Number(_))),c=_=>{try{const g=localStorage.getItem(_),A=g?Number(g):1;return Number.isFinite(A)?l(A):l(1)}catch{return l(1)}},[u,d]=s.useState(()=>c(e)),[p,m]=s.useState(e);p!==e&&(m(e),d(c(e))),s.useEffect(()=>{try{localStorage.setItem(e,String(u))}catch{}},[e,u]);const h=_=>{d(typeof _=="function"?g=>l(_(g)):l(_))},C=()=>h(_=>+(_+o).toFixed(6)),y=()=>h(_=>+(_-o).toFixed(6)),f=u<r-Number.EPSILON,v=u>a+Number.EPSILON,b=Math.round(n*u),x=Math.round(b*i);return{scale:u,setScale:h,increase:C,decrease:y,canIncrease:f,canDecrease:v,fontSize:b,lineHeight:x}}const fi=s.createContext(null);function a2(e){return/max-width:\s*7[0-9][0-9]px/.test(e)}const Ci=e=>typeof window>"u"||!window.matchMedia?!1:window.matchMedia(e).matches;function r2(e){const n=s.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 wo.useSyncExternalStore(n,()=>Ci(e),()=>!1)}function o2(e){const[n,a]=s.useState(Ci(e));return s.useEffect(()=>{if(typeof window>"u"||!window.matchMedia)return;const r=window.matchMedia(e),o=l=>a(l.matches),i=r;return i.addEventListener?i.addEventListener("change",o):i.addListener&&i.addListener(o),a(r.matches),()=>{i.removeEventListener?i.removeEventListener("change",o):i.removeListener&&i.removeListener(o)}},[e]),n}const s2=typeof wo.useSyncExternalStore=="function"?r2:o2;function rn(e){const n=s.useContext(fi),a=s2(e);return n&&typeof n.mobile=="boolean"&&a2(e)?n.mobile:a}function wr(e){const n=s.useRef(e);return s.useEffect(()=>{n.current=e}),n}function gi(e,n){const a=wr(n);s.useEffect(()=>{const r=()=>a.current();try{window.addEventListener(e,r)}catch{}return()=>{try{window.removeEventListener(e,r)}catch{}}},[e,a])}const kr=" \xB7 ",bi=(()=>{if(typeof document>"u")return"";const e=document.title;return e.includes(kr)?e.split(kr).pop()??e:e})(),i2=s.createContext(!1),Pn=[];let yi=null;function l2(e){const n=s.useContext(i2);s.useEffect(()=>{if(n||typeof e!="string"||!e)return;Pn.length===0&&(yi=document.title);const a={text:bi?`${e}${kr}${bi}`:e};return Pn.push(a),document.title=a.text,()=>{const r=Pn.lastIndexOf(a);r>=0&&Pn.splice(r,1),document.title=Pn.length?Pn[Pn.length-1].text:yi??document.title}},[e,n])}const vi=[{value:"10",label:"10\uAC1C\uC529 \uBCF4\uAE30"},{value:"25",label:"25\uAC1C\uC529 \uBCF4\uAE30"},{value:"50",label:"50\uAC1C\uC529 \uBCF4\uAE30"},{value:"100",label:"100\uAC1C\uC529 \uBCF4\uAE30"}];function c2(e,n,a){const{t:r}=pe.useTranslation(),[o,i]=s.useState(()=>{const y=a?.initialPageSize;return y&&vi.some(f=>f.value===y)?y:"25"}),[l,c]=s.useState(1),[u,d]=s.useState(n);Object.is(u,n)||(d(n),l!==1&&c(1));const p=s.useMemo(()=>vi.map(y=>({...y,label:r("visits.showN",{n:y.value})})),[r]),m=s.useCallback(y=>{i(y),c(1)},[]),h=Math.max(1,Math.ceil(e.length/Number(o)));l>h&&c(h);const C=Math.min(l,h);return{pageRows:s.useMemo(()=>e.slice((C-1)*Number(o),C*Number(o)),[e,C,o]),pageSizeProps:{options:p,value:o,onChange:m},paginationProps:{page:C,total:h,onChange:c},setPage:c}}function u2(){const[e,n]=s.useState(null),a=s.useCallback(o=>{n(i=>i?.key===o?{key:o,asc:!i.asc}:{key:o,asc:!0})},[]),r=s.useCallback((o,i)=>({label:o,sortDir:e?.key===i?e.asc?"asc":"desc":null,onClick:()=>a(i)}),[e,a]);return{\uC815\uB82C:e,\uCE78:r}}const on="\uC804\uCCB4";Object.fromEntries(Object.entries(y0).map(([e,{nucleus:n}])=>[e,n]));const d2={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"})},p2={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"})},m2={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 h2(e,n){if("place"in n)return d2[n.place](e);const a=p2[n.vowel](e);return n.glide?`${a} \xB7 ${m2[n.glide](e)}`:a}const f2=(e,{defaultValue:n})=>n,xi=(e,n)=>({jamos:e,phonetic:n,tooltip:h2(f2,n)}),mn=(e,n)=>n.map(a=>xi([a],{place:e})),vt=(e,n,a)=>xi([...e],a?{vowel:n,glide:a}:{vowel:n}),Ar={cho:[mn("labial",["\u3142","\u3143","\u314D","\u3141"]),mn("alveolar",["\u3137","\u3138","\u314C","\u3134","\u3139"]),mn("alveolar",["\u3145","\u3146"]),mn("palatal",["\u3148","\u3149","\u314A"]),mn("velar",["\u3131","\u3132","\u314B"]),mn("glottal",["\u314E"])],jung:[[vt("\u3163","frontHigh"),vt("\u315F","frontHigh","w"),vt("\u3162","frontHigh","velar")],[vt("\u3161","backHighUnrounded")],[vt("\u315C","backHighRounded"),vt("\u3160","backHighRounded","j")],[vt("\u3154\u3150","frontMid"),vt("\u3156\u3152","frontMid","j"),vt("\u3159\u315A\u315E","frontMid","w")],[vt("\u3153","backMidUnrounded"),vt("\u3155","backMidUnrounded","j"),vt("\u315D","backMidUnrounded","w")],[vt("\u3157","backMidRounded"),vt("\u315B","backMidRounded","j")],[vt("\u314F","low"),vt("\u3151","low","j"),vt("\u3158","low","w")]],jong:[mn("labial",["\u3142","\u3141"]),mn("alveolar",["\u3137","\u3134","\u3139"]),mn("velar",["\u3131","\u3147"])]},C2=e=>e===g2?[]:Array.from(e),g2="__NO_CODA__",Nr=e=>e.map(n=>n.map(({jamos:a,phonetic:r,tooltip:o})=>({v:a.join(""),phonetic:r,tooltip:o}))),_i={cho:Nr(Ar.cho),jung:Nr(Ar.jung),jong:Nr(Ar.jong)};_i.jung.flat().forEach(({v:e})=>{for(const n of C2(e));}),new Set(_i.cho.flat().map(e=>e.v));function b2(e,n=!0){const a=wr(e);s.useEffect(()=>{if(n)return $n(()=>{a.current?.()})},[n,a])}function ja(){const[e,n]=s.useState(null),a=s.useCallback(i=>n(i.getBoundingClientRect()),[]),r=s.useCallback(()=>n(null),[]),o=s.useCallback(i=>{const l=i.getBoundingClientRect();n(c=>c?null:l)},[]);return{anchorRect:e,isOpen:e!=null,openAt:a,close:r,toggleAt:o}}function wi(e="warning"){const[n,a]=s.useState(""),[r,o]=s.useState(e),[i,l]=s.useState(0),c=s.useCallback((m,h)=>{o(h),a(m),l(C=>C+1)},[]),u=s.useCallback(m=>c(m,"warning"),[c]),d=s.useCallback(m=>c(m,"normal"),[c]),p=s.useCallback(()=>a(""),[]);return{toastMessage:n,toastType:r,toastKey:i,showToast:c,showWarning:u,showNormal:d,clearToast:p}}function da({computeStyle:e,onScroll:n="close",onResize:a="close",ignoreOutsideClickSelector:r}){const[o,i]=s.useState(!1),[l,c]=s.useState({}),u=s.useRef(null),d=s.useRef(null),p=s.useCallback(()=>{u.current&&c(e(u.current.getBoundingClientRect()))},[e]);s.useEffect(()=>{if(!o)return;p();const C=v=>{const b=v.target;r&&b.closest?.(r)||u.current?.contains(b)||d.current?.contains(b)||i(!1)};document.addEventListener("mousedown",C),document.addEventListener("pointerdown",C);const y=v=>{d.current?.contains(v.target)||(n==="reposition"?p():n==="close"&&i(!1))};n!=="ignore"&&window.addEventListener("scroll",y,!0);const f=()=>{a==="reposition"?p():a==="close"&&i(!1)};return a!=="ignore"&&window.addEventListener("resize",f),()=>{document.removeEventListener("mousedown",C),document.removeEventListener("pointerdown",C),n!=="ignore"&&window.removeEventListener("scroll",y,!0),a!=="ignore"&&window.removeEventListener("resize",f)}},[o,p,n,a,r]),s.useEffect(()=>{if(o)return $n(()=>i(!1))},[o]);const m=s.useCallback(()=>i(C=>!C),[]),h=s.useCallback(()=>i(!1),[]);return{open:o,setOpen:i,toggle:m,close:h,style:l,triggerRef:u,menuRef:d}}function y2(e,{mode:n="playback",autoStart:a=!1,onPlaySpeaker:r,onComplete:o,playMs:i=1100,feedbackMs:l=1500}={}){const[c,u]=s.useState([]),[d,p]=s.useState(0),[m,h]=s.useState("idle"),[C,y]=s.useState(null),[f,v]=s.useState([]),[b,x]=s.useState(null),[_,g]=s.useState(0),A=s.useRef(0),w=s.useCallback(P=>{A.current=typeof P=="function"?P(A.current):P,g(A.current)},[]),S=s.useRef(r),N=s.useRef(o);s.useEffect(()=>{S.current=r,N.current=o},[r,o]);const k=s.useRef([]),B=()=>{k.current.forEach(clearTimeout),k.current=[]},V=(P,M)=>{k.current.push(setTimeout(M,P))};s.useEffect(()=>()=>B(),[]);const H=c[d]?.id??null,j=s.useRef(null),F=s.useCallback(()=>{B(),h("playing"),v([]),x(null),w(0);let P=0;e.forEach((M,L)=>{V(P,()=>{p(L),y(M.id),S.current?.(M)}),V(P+1e3,()=>{y(null),v(z=>[...z,M.id])}),P+=1300}),V(P,()=>{h("done"),N.current?.({score:0,total:e.length})})},[e,w]),T=s.useCallback((P,M)=>{if(M>=P.length){h("done"),N.current?.({score:A.current,total:P.length});return}j.current=null,p(M),x(null),h("playing"),y(P[M].id),S.current?.(P[M]),V(i,()=>{y(null),h("waiting")})},[i]),Y=s.useCallback(()=>{B();const P=la(e);u(P),w(0),v([]),T(P,0)},[e,T,w]),R=s.useCallback(()=>{n==="playback"?(u(e),F()):Y()},[n,e,F,Y]),O=s.useCallback(()=>{B(),h("idle"),y(null),v([]),x(null),p(0),w(0),u([])},[w]),W=e.map(P=>P.id).join("|");s.useEffect(()=>(a?R():O(),()=>B()),[n,W,a]);const le=s.useCallback(P=>{m!=="waiting"||n==="playback"||j.current===d||(j.current=d,x(P),P===c[d]?.id&&w(M=>M+1),n==="exam"?(h("playing"),V(400,()=>T(c,d+1))):(h("feedback"),V(l,()=>T(c,d+1))))},[m,n,c,d,T,l,w]),q=n==="playback"?e.length:c.length;return{bind:{activeSpeakerId:C,playedIds:f,selectedId:b,answerId:H,showFeedback:m==="feedback",clickable:m==="waiting",onSelectSpeaker:le},index:d,total:q,score:_,phase:m,done:m==="done",start:R,reset:O}}function v2({title:e,description:n,actionLabel:a,onAction:r,bg:o,color:i,size:l="medium",actionVariant:c,titleColor:u,descriptionColor:d,className:p=""}){const m=o??i??"main",h=s.useRef(null),[C,y]=s.useState("main"),f=rn("(max-width: 767px)"),v=s.useRef({title:!1,description:!1});s.useLayoutEffect(()=>{const _=h.current;if(!_)return;const g=_r(_),A=(w,S,N)=>{if(N!==void 0)_.style.setProperty(S,N),v.current[w]=!0;else if(v.current[w]){const k=g?.[w];k?_.style.setProperty(S,k):_.style.removeProperty(S),v.current[w]=!1}};A("title","--promo-banner-bg-title",u),A("description","--promo-banner-bg-description",d)},[u,d,m]),s.useLayoutEffect(()=>{const _=h.current;if(!_)return;const g=_r(_);y(g?.actionVariant??"main")},[m]);const b=ge("promo-banner",`promo-banner--${l}`,p),x=mi[m];return t.jsxs("div",{ref:h,className:b,role:"note",children:[t.jsx(x,{}),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??C,shape:"pill",useBorder:!0,onClick:r,ariaLabel:a,...f?{type:"dot",icon:"arrow-right"}:{rightIcon:"arrow-right",label:a,minWidth:140}})]})}function x2({children:e,interval:n=5e3,dotTone:a,className:r="","aria-label":o}){const{t:i}=pe.useTranslation(),l=o??i("topBanner.ariaLabel","\uBC30\uB108"),c=s.Children.toArray(e),u=c.length,[d,p]=s.useState(0),[m,h]=s.useState(!1),C=u>0?d%u:0;return s.useEffect(()=>{if(u<2||n<=0||m)return;const y=window.setInterval(()=>p(f=>(f+1)%u),n);return()=>window.clearInterval(y)},[u,n,m]),u===0?null:t.jsxs("section",{className:ge("top-banner",r),"aria-label":l,"aria-roledescription":"carousel",onMouseEnter:()=>h(!0),onMouseLeave:()=>h(!1),onFocus:()=>h(!0),onBlur:()=>h(!1),children:[t.jsx("div",{className:"top-banner__viewport",children:t.jsx("div",{className:"top-banner__track",style:{transform:`translateX(-${C*100}%)`},children:c.map((y,f)=>t.jsx("div",{className:"top-banner__slide","aria-hidden":f!==C,...f!==C?{inert:!0}:{},children:y},f))})}),u>1&&t.jsx("div",{className:`top-banner__dots${(a?.[C]??"light")==="dark"?" top-banner__dots--dark":""}`,children:c.map((y,f)=>t.jsx("button",{type:"button",className:`top-banner__dot${f===C?" top-banner__dot--active":""}`,"aria-label":i("topBanner.dotAriaLabel",{count:u,index:f+1,defaultValue:`${u}\uAC1C \uC911 ${f+1}\uBC88\uC9F8 \uBC30\uB108`}),"aria-current":f===C,onClick:()=>p(f)},f))})]})}function _2({title:e,body:n,open:a=!1,onToggle:r,avatar:o,titleClassName:i="body-2",bodyClassName:l="body-2",className:c=""}){const{t:u}=pe.useTranslation();return t.jsxs("div",{className:`accordion-item ${a?"accordion-item--open":""} ${c}`.trim(),role:"listitem",children:[t.jsxs("div",{className:"accordion-item__header",role:"button",tabIndex:0,"aria-expanded":a,"data-accordion-header":!0,onClick:r,onKeyDown:d=>{if(d.key==="Enter"||d.key===" ")d.preventDefault(),r?.();else if(d.key==="ArrowDown"||d.key==="ArrowUp"){d.preventDefault();const p=d.currentTarget.closest('[role="list"]');if(!p)return;const m=Array.from(p.querySelectorAll("[data-accordion-header]")),h=m.indexOf(d.currentTarget);(d.key==="ArrowDown"?m[h+1]:m[h-1])?.focus()}},children:[o&&t.jsx("div",{className:"accordion-item__avatar",children:o}),t.jsx("div",{className:`accordion-item__title ${i}`,children:e}),t.jsx("div",{className:"accordion-item__chevron",children:t.jsx(We,{icon:a?"chevron-up":"chevron-down",label:a?u("accordion.collapse","\uC811\uAE30"):u("accordion.expand","\uD3BC\uCE58\uAE30"),className:"accordion-item__chevron-icon",imgClassName:"accordion-item__chevron-image"})})]}),a&&t.jsx("div",{className:`accordion-item__body ${l}`,children:typeof n=="string"?t.jsx("p",{children:n}):n})]})}function w2({items:e=[],defaultOpenIndex:n=0,size:a=72,className:r="",bodyClassName:o}){const[i,l]=s.useState(n);return t.jsx("div",{className:`accordion-group accordion-group--s${a} ${r}`.trim(),role:"list",children:e.map((c,u)=>t.jsx(_2,{title:c.title,body:c.body,avatar:c.avatar,open:u===i,onToggle:()=>l(u===i?-1:u),bodyClassName:o},u))})}function k2(){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 A2(){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 N2(){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 ut(e){const{t:n}=pe.useTranslation(),{type:a="bar",size:r,className:o="","aria-label":i,"aria-hidden":l}=e;if(a==="dot"){const{icon:A,number:w,position:S="top-right",onClick:N,animate:k=!1}=e,B=A??"check",V=w!==void 0?"number":B,H=typeof r=="number"?r:32,j=ge("circle-badge",`circle-badge--${V}`,`circle-badge--${S}`,`circle-badge--${H}`,k?"circle-badge--animate":"",N?"circle-badge--clickable":"",o),F=w!==void 0?n("badge.nthSelected",{n:w,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")}[B];return t.jsxs("span",{className:j,onClick:N,onKeyDown:N?T=>{T.key!=="Enter"&&T.key!==" "||(T.preventDefault(),T.currentTarget.click())}:void 0,"aria-label":l?void 0:i??F,"aria-hidden":l||void 0,role:N?"button":l?void 0:"img",tabIndex:N?0:void 0,children:[w!==void 0&&w,w===void 0&&B==="check"&&t.jsx(k2,{}),w===void 0&&B==="remove"&&t.jsx(A2,{}),w===void 0&&B==="minus"&&t.jsx(N2,{})]})}const{label:c,children:u,variant:d="default",fill:p="filled",minWidth:m,iconLeft:h,iconRight:C,color:y}=e,f=typeof r=="number"?"medium":r??"medium",v={small:"caption-2b",medium:"body-3b",large:"body-2b"}[f]??"body-2b",b={small:12,medium:14,large:16}[f]??14,x=ge("badge",`badge--${d}`,`badge--${f}`,p!=="filled"?`badge--${p}`:"",v,o),_=y?.startsWith("--")?`var(${y})`:y,g=m!==void 0||_?{...m!==void 0?{minWidth:typeof m=="number"?`${m}px`:m}:{},..._?{"--badge-color":_}:{}}:void 0;return t.jsxs("span",{className:x,style:g,"aria-label":l?void 0:i,role:i&&!l?"img":void 0,"aria-hidden":l||void 0,children:[h&&t.jsx(We,{icon:h,size:b,className:"badge__icon"}),c??u,C&&t.jsx(We,{icon:C,size:b,className:"badge__icon"})]})}function Ea({columns:e=[],onClose:n,className:a="",size:r="medium"}){const{t:o}=pe.useTranslation(),i=r==="small"?40:48,[l,c]=s.useState([]),u=s.useMemo(()=>{const v=[{title:null,columns:e}];let b=e;for(const x of l){const _=b?.[x.ci]?.items?.[x.ii];if(!_||!Array.isArray(_.children)||!_.children.length)break;b=[{title:null,items:_.children}],v.push({title:_.label||null,columns:b})}return v},[e,l]),d=u[u.length-1],p=u.length-1,m=s.useCallback(()=>c(v=>v.slice(0,Math.max(0,Math.min(v.length,p)-1))),[p]),h=s.useRef(null),C=s.useRef(null),y=u.length;s.useEffect(()=>{C.current||(C.current=document.activeElement);let v=0,b=0;const x=()=>{const _=h.current?.querySelector("button:not([disabled])");if(_&&_.offsetParent){_.focus({preventScroll:!0});return}b++<20&&(v=requestAnimationFrame(x))};return v=requestAnimationFrame(x),()=>cancelAnimationFrame(v)},[y]),s.useEffect(()=>()=>{C.current?.focus?.({preventScroll:!0})},[]);const f=s.useCallback((v,b,x)=>{if(v){if(Array.isArray(v.children)&&v.children.length){c(_=>[..._.slice(0,p),{ci:b,ii:x}]);return}try{typeof v.onClick=="function"&&v.onClick()}catch{}try{v&&v.closeOnSelect&&typeof n=="function"&&n()}catch{}}},[n,p]);return t.jsxs("div",{className:`tooltip-menu tooltip-menu--${r} ${a}`,children:[(u.length>1||d.title)&&t.jsxs("div",{className:"tooltip-menu__header",children:[u.length>1?t.jsx(ce,{htmlType:"button",size:i,type:"dot",icon:"chevron-left",ariaLabel:o("common.back","\uB4A4\uB85C"),onClick:m,variant:"transparent-gray",useBorder:!1}):null,t.jsx("div",{className:"tooltip-menu__title button-1",children:d.title})]}),t.jsx("div",{className:"tooltip-menu__columns",ref:h,children:d.columns&&d.columns.map((v,b)=>t.jsxs("div",{className:"tooltip-menu__column",children:[v.title?t.jsx("div",{className:"tooltip-menu__column-title body-3",children:v.title}):null,t.jsx("div",{className:"tooltip-menu__items",children:(v.items||[]).map((x,_)=>t.jsx(ce,{htmlType:"button",className:"tooltip-menu__item",size:i,type:x.label?"bar":"dot",icon:x.selected?"check":x.icon||"none",rightIcon:Array.isArray(x.children)&&x.children.length?"chevron-right":x.badgeCount?t.jsx(ut,{type:"dot",position:"inline",number:Math.min(x.badgeCount,99),size:24,"aria-hidden":!0}):void 0,label:x.label,ariaLabel:x.label&&x.badgeCount&&x.badgeCount>0?o("nav.badgeLabel",{label:x.label,count:x.badgeCount,defaultValue:"{{label}}, {{count}}\uAC1C"}):x.label,onClick:()=>f(x,b,_),selected:x.selected,disabled:x.disabled,showTooltipInfo:x.tooltip||!1,useBorder:!1,align:"left"},_))})]},b))})]})}const B2=52,ki=10,Ai=e=>e&&e>0?e:0;function Ni({items:e=[],activeKey:n,onChange:a,appMode:r,onAppModeChange:o,moreItems:i=[]}){const{t:l}=pe.useTranslation(),c=r==="manager"?"malgwi":"manager",u=r==="manager"?"arrow-left":"arrow-right",d=r==="manager"?l("nav.modeLabelMalgwi","\uB9D0\uADC0"):l("nav.modeLabelManager","\uB9D0\uADC0 \uB9E4\uB2C8\uC800"),p=s.useRef(null),[m,h]=s.useState(0),C=e.length;s.useEffect(()=>{const R=p.current;if(!R||(h(R.clientWidth),typeof ResizeObserver>"u"))return;const O=new ResizeObserver(W=>h(W[0].contentRect.width));return O.observe(R),()=>O.disconnect()},[]);const y=m>0?Math.floor((m+ki)/(B2+ki)):C,f=m>0&&y<C,v=f?y:C,b=e.slice(0,v),x=e.slice(v),_=f||i.length>0,g=s.useCallback(R=>({position:"fixed",bottom:window.innerHeight-R.top+8,right:window.innerWidth-R.right,zIndex:1e4}),[]),A=s.useId(),{open:w,toggle:S,close:N,style:k,triggerRef:B,menuRef:V}=da({computeStyle:g,onScroll:"ignore",onResize:"ignore"}),H=s.useCallback((R,O)=>O>0?l("nav.badgeLabel",{label:R,count:O,defaultValue:"{{label}}, {{count}}\uAC1C"}):R,[l]),j=s.useCallback(()=>o?.(c),[o,c]),F=s.useMemo(()=>x.find(R=>R.key===n)??i.find(R=>R.selected||R.key&&R.key===n),[x,n,i]),T=s.useMemo(()=>[{items:[...x.map(R=>({label:R.label,icon:R.icon,badgeCount:R.badgeCount,selected:R.key===n,closeOnSelect:!0,disabled:R.state==="disabled",onClick:()=>{R.state!=="disabled"&&(R.key&&a&&a(R.key),N())}})),...i.map(R=>({label:R.label,icon:R.icon,badgeCount:R.badgeCount,selected:R.selected??(!!R.key&&R.key===n),closeOnSelect:!0,onClick:()=>{R.onClick?.(),N()}}))]}],[x,i,n,a,N]),Y=[...x,...i].reduce((R,O)=>R+Ai(O.badgeCount),0);return t.jsxs("nav",{className:"bottom-nav","aria-label":l("nav.bottomNav","\uD558\uB2E8 \uB124\uBE44\uAC8C\uC774\uC158"),children:[o&&t.jsxs(t.Fragment,{children:[t.jsx("div",{className:"bottom-nav__left",children:t.jsx(ce,{htmlType:"button",size:52,type:"dot",icon:u,ariaLabel:d,className:"bottom-nav-item",onClick:j})}),t.jsx("div",{className:"bottom-nav__divider","aria-hidden":"true"})]}),t.jsx("div",{className:"bottom-nav__items",ref:p,children:b.map((R,O)=>{const W=Ai(R.badgeCount);return t.jsxs("span",{className:"bottom-nav__slot",children:[t.jsx(ce,{htmlType:"button",size:52,type:"dot",icon:R.icon,ariaLabel:H(R.label,W),selected:R.key===n,disabled:R.state==="disabled",className:"bottom-nav-item",onClick:()=>R.key&&a?.(R.key)}),W>0&&t.jsx("span",{"aria-hidden":"true",children:t.jsx(ut,{type:"dot",position:"top-right",number:Math.min(W,99),size:24})})]},R.key??`__slot-${O}`)})}),_&&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:B,className:"bottom-nav__slot",children:[t.jsx(ce,{htmlType:"button",size:52,type:"dot",icon:F?.icon??"ellipsis",ariaLabel:H(F?.label??l("nav.more","\uB354\uBCF4\uAE30"),Y),selected:!!F,className:"bottom-nav-item",onClick:S,"aria-expanded":w,"aria-controls":w?A:void 0}),Y>0&&t.jsx("span",{"aria-hidden":"true",children:t.jsx(ut,{type:"dot",position:"top-right",number:Math.min(Y,99),size:24})}),w&&qt.createPortal(t.jsx("div",{id:A,role:"group","aria-label":l("nav.moreMenu","\uB354\uBCF4\uAE30 \uBA54\uB274"),className:"tooltip-content",style:k,ref:V,children:t.jsx(Ea,{columns:T,onClose:N})}),document.body)]})})]})]})}function Bi(e,n,a){return a&&a>0?e("nav.badgeLabel",{label:n,count:a,defaultValue:"{{label}}, {{count}}\uAC1C"}):n}function S2(e){const{t:n}=pe.useTranslation(),{activeKey:a,unreadCount:r,onDebug:o,onNotification:i,onSetting:l,onHelp:c,onAccount:u}=e||{},d="default";return o||i||l||c||u?t.jsxs("div",{className:"side-nav__footer",children:[o&&t.jsx(ce,{htmlType:"button",size:48,showTooltipInfo:!0,type:"dot",shape:"pill",variant:d,icon:"terminal",ariaLabel:n("nav.debug","\uB514\uBC84\uADF8"),onClick:o,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:d,icon:"bell",ariaLabel:Bi(n,n("nav.notifications","\uC54C\uB9BC"),r),onClick:i,selected:a==="notifications"}),!!r&&r>0&&t.jsx(ut,{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:d,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:d,icon:"message-circle-question-mark",ariaLabel:n("nav.help","\uB3C4\uC6C0\uB9D0"),onClick:c,selected:a==="help"}),u&&t.jsx(ce,{htmlType:"button",size:48,showTooltipInfo:!0,type:"dot",shape:"pill",variant:d,icon:"user-round",ariaLabel:n("nav.account","\uACC4\uC815"),onClick:u,selected:a==="account"})]}):null}function Si(e){const{t:n}=pe.useTranslation(),{item:a,itemKey:r,label:o,icon:i,active:l,onClick:c,style:u,state:d,labelStyle:p}=e||{},m=a?.key??r??"",h=a?.label??o??"",C=a?.icon??i??"",y=a?.badge??0,f=t.jsx("span",{className:"side-nav__icon-wrap",children:t.jsx(We,{icon:C,label:typeof h=="string"?h:void 0,className:"side-nav__icon",maskClassName:"side-nav__icon-image",imgClassName:void 0,svgClassName:void 0})}),v=d==="disabled",b=`side-nav__item ${l?"active":""} ${d||""} ${v?"disabled":""} ${a?.child?"side-nav__item--child":""}`,x=s.useCallback(_=>{if(v)return;const g=_.detail>0;if(g)try{_.currentTarget.blur()}catch{}c?.(m,_.currentTarget,g)},[v,m,c]);return t.jsxs("button",{type:"button",className:b,onClick:x,"aria-label":typeof h=="string"?Bi(n,h,y):void 0,"aria-current":l?"page":void 0,style:u,"aria-disabled":v,children:[f,t.jsx("span",{className:"side-nav__label button-1 f",style:p,children:h}),y>0&&t.jsx(ut,{type:"dot",position:"inline",number:Math.min(y,99),size:24,"aria-hidden":!0}),d==="loading"&&t.jsx("span",{className:"side-nav__spinner",role:"img","aria-label":n("loader.loading","\uBD88\uB7EC\uC624\uB294 \uC911\u2026")})]})}function Di(e){const{t:n}=pe.useTranslation(),{items:a=[],activeKey:r,onChange:o,unreadCount:i,onDebug:l,onNotification:c,onAccount:u,onSetting:d,onHelp:p,appMode:m,onAppModeChange:h}=e||{},C=m==="manager",y=s.useCallback(()=>h?.(C?"malgwi":"manager"),[h,C]);return t.jsxs("nav",{"aria-label":n("nav.mainMenu","\uBA54\uC778 \uBA54\uB274"),className:"side-nav__menu",children:[t.jsxs("div",{className:"side-nav__menu-list",children:[(a||[]).filter(f=>!f.section&&(f.key||f.label)).map((f,v)=>t.jsxs(s.Fragment,{children:[f.divider&&t.jsx("div",{className:"side-nav__separator"}),t.jsx(Si,{item:f,active:f.key===r,state:f.disabled?"disabled":void 0,onClick:(b,x,_)=>{if(f.disabled)return;if(f.href){if(window.open(f.href,"_blank","noopener,noreferrer"),_)try{x?.blur()}catch{}return}o?.(f.key);try{const A=document.querySelector(".content-area");A?A.scrollTop=0:window.scrollTo({top:0})}catch{}if(!_)return;try{x?.blur()}catch{}if(typeof window<"u"&&window.matchMedia){if(!window.matchMedia("(min-width: 768px) and (max-width: 1023px)").matches)return}else return;const g=document.querySelector(".header");if(g&&!(typeof g.matches=="function"&&g.matches(":hover"))){g.classList.add("header--force-collapsed");const A=()=>{g.classList.remove("header--force-collapsed"),g.removeEventListener("mouseenter",A)};g.addEventListener("mouseenter",A)}}})]},f.key??`side-nav__item-${v}`)),h&&t.jsx("div",{className:"side-nav__separator side-nav__separator--short"}),h&&t.jsx(Si,{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:y})]}),t.jsx(S2,{activeKey:r,unreadCount:i,onDebug:l,onNotification:c,onAccount:u,onSetting:d,onHelp:p})]})}var Br='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',Sr='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',D2='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 Ti({appMode:e}){const{t:n}=pe.useTranslation(),a=e==="manager",r=a?Sr:Br,o=D2,i=rn("(min-width: 768px) and (max-width: 1023px)");return t.jsx("div",{className:"brand-identity__root","aria-label":n("header.biArea","BI \uC601\uC5ED"),children:i?t.jsx("img",{src:o,alt:n("header.biSymbol","BI \uC2EC\uBCFC"),className:"brand-identity__image"}):t.jsx("img",{src:r,alt:a?n("header.logoManager","\uB9D0\uADC0\uB9E4\uB2C8\uC800 \uB85C\uACE0"):n("header.logoMalgwi","\uB9D0\uADC0 \uB85C\uACE0"),className:"brand-identity__image"})})}function ji({activeKey:e,onChange:n,items:a,malgwiItems:r,managerItems:o,unreadCount:i,onDebug:l,onNotification:c,onAccount:u,onSetting:d,onHelp:p,appMode:m,onAppModeChange:h}){const{t:C}=pe.useTranslation(),y=rn("(max-width: 767px)"),f=s.useMemo(()=>(a??[]).filter(V=>!V.section&&(V.key||V.label)).map(V=>({key:V.key,label:typeof V.label=="string"?V.label:void 0,icon:V.icon,state:V.disabled?"disabled":void 0,badgeCount:V.badge})),[a]),v=s.useCallback(V=>{const H=a?.find(j=>j.key===V);if(!H?.disabled){if(H?.href){window.open(H.href,"_blank","noopener,noreferrer");return}n?.(V)}},[a,n]),b=s.useMemo(()=>{const V=[];return l&&V.push({key:"debug",icon:"terminal",label:C("nav.debug","\uB514\uBC84\uADF8"),onClick:l}),c&&V.push({key:"notifications",icon:"bell",label:C("nav.notifications","\uC54C\uB9BC"),badgeCount:i,onClick:c}),d&&V.push({key:"settings",icon:"settings",label:C("nav.settings","\uC124\uC815"),onClick:d}),p&&V.push({key:"help",icon:"message-circle-question-mark",label:C("nav.help","\uB3C4\uC6C0\uB9D0"),onClick:p}),u&&V.push({key:"account",icon:"user-round",label:C("nav.account","\uACC4\uC815"),onClick:u}),V},[C,l,c,d,p,u,i]),x=s.useCallback(V=>({position:"fixed",top:V.bottom+8,right:Math.max(8,window.innerWidth-V.right),zIndex:1e4}),[]),_=s.useId(),{open:g,toggle:A,close:w,style:S,triggerRef:N,menuRef:k}=da({computeStyle:x,onScroll:"ignore",onResize:"ignore"}),B=s.useMemo(()=>[{items:b.map(V=>({label:V.label,icon:V.icon,badgeCount:V.badgeCount,selected:V.selected??(!!V.key&&V.key===e),closeOnSelect:!0,onClick:()=>{V.onClick?.(),w()}}))}],[b,e,w]);return t.jsxs("aside",{className:`header${m==="manager"?" header--manager":""}`,children:[t.jsxs("div",{className:"header__bi",children:[t.jsx(Ti,{appMode:m}),t.jsxs("div",{className:"header__menu-button",ref:N,children:[t.jsx(ce,{htmlType:"button",size:48,type:"dot",shape:"pill",variant:"default",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:A,"aria-expanded":g,"aria-controls":g?_:void 0}),!!c&&!!i&&i>0&&t.jsx(ut,{type:"dot",number:Math.min(i,99),size:24,"aria-hidden":!0}),g&&qt.createPortal(t.jsx("div",{id:_,role:"group","aria-label":C("header.utilMenu","\uC720\uD2F8\uB9AC\uD2F0 \uBA54\uB274"),className:"tooltip-content",style:S,ref:k,children:t.jsx(Ea,{columns:B,onClose:w})}),document.body)]})]}),t.jsx(Di,{items:a,activeKey:e??void 0,onChange:n,unreadCount:i,onDebug:l,onNotification:c,onAccount:u,onSetting:d,onHelp:p,appMode:m,onAppModeChange:h}),y&&t.jsx(Ni,{items:f,activeKey:e??void 0,onChange:v,appMode:m,onAppModeChange:h})]})}const T2=ji;var j2={statusFilter:"\uC0C1\uD0DC \uD544\uD130",pageSizeSelect:"\uD398\uC774\uC9C0\uB2F9 \uD45C\uC2DC \uAC1C\uC218",selectedCount:"{{count}}\uAC1C \uC120\uD0DD\uB428",cancel:"\uCDE8\uC18C",info:"\uC124\uBA85",errorState:{message:"\uBD88\uB7EC\uC624\uC9C0 \uBABB\uD588\uC2B5\uB2C8\uB2E4.",retry:"\uB2E4\uC2DC \uC2DC\uB3C4"},save:"\uC800\uC7A5",confirm:"\uD655\uC778",close:"\uB2EB\uAE30",back:"\uB4A4\uB85C",emptyTrainingName:"\uD6C8\uB828 \uC774\uB984\uC774 \uBE44\uC5B4 \uC788\uC2B5\uB2C8\uB2E4.",remove:"\uC81C\uAC70",image:"\uC774\uBBF8\uC9C0",delete:"\uC0AD\uC81C",reset:"\uCD08\uAE30\uD654",update:"\uC5C5\uB370\uC774\uD2B8",download:"\uB2E4\uC6B4\uB85C\uB4DC",search:"\uAC80\uC0C9",empty:"\uB370\uC774\uD130\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4.",yes:"\uC608",no:"\uC544\uB2C8\uC624",all:"\uC804\uCCB4",none:"\uC5C6\uC74C",days:"{{count}}\uC77C",loadMore:"\uB354\uBCF4\uAE30",more:"\uB354\uBCF4\uAE30",moreFor:"{{name}} \uB354\uBCF4\uAE30",retry:"\uB2E4\uC2DC \uC2DC\uB3C4",prevPage:"\uC774\uC804 \uD398\uC774\uC9C0",nextPage:"\uB2E4\uC74C \uD398\uC774\uC9C0",play:"\uC7AC\uC0DD",pause:"\uBA48\uCDA4",playPause:"\uC7AC\uC0DD / \uBA48\uCDA4",replay:"\uB2E4\uC2DC\uB4E3\uAE30",subscription:"\uC774\uC6A9\uAD8C",done:"\uC644\uB8CC",failed:"\uC2E4\uD328",continue:"\uACC4\uC18D",notification:"\uC54C\uB9BC",emptyList:"\uD56D\uBAA9\uC774 \uC5C6\uC2B5\uB2C8\uB2E4.",menu:"\uBA54\uB274",resetSelection:"\uC120\uD0DD \uCD08\uAE30\uD654",pageSizeLabel:"{{n}}\uAC1C\uC529 \uBCF4\uAE30",totalCountPrefix:"\uCD1D ",totalCountSuffix:"\uAC1C",expand:"\uD3BC\uCE58\uAE30",collapse:"\uC811\uAE30",popup:"\uD31D\uC5C5",codeBlock:"\uCF54\uB4DC \uBE14\uB85D",totalPrefix:"\uCD1D ",copyCode:"\uCF54\uB4DC \uBCF5\uC0AC",copied:"\uBCF5\uC0AC\uB428",col:{problem:"\uBB38\uC81C"},phonetics:{place:{labial:"\uC591\uC21C\uC74C",alveolar:"\uCE58\uC870\uC74C",palatal:"\uACBD\uAD6C\uAC1C\uC74C",velar:"\uC5F0\uAD6C\uAC1C\uC74C",glottal:"\uC131\uBB38\uC74C"},vowel:{frontHigh:"\uC804\uC124 \uACE0\uBAA8\uC74C",backHighUnrounded:"\uD6C4\uC124 \uACE0\uBAA8\uC74C \uD3C9\uC21C",backHighRounded:"\uD6C4\uC124 \uACE0\uBAA8\uC74C \uC6D0\uC21C",frontMid:"\uC804\uC124 \uC911\uBAA8\uC74C",backMidUnrounded:"\uD6C4\uC124 \uC911\uBAA8\uC74C \uD3C9\uC21C",backMidRounded:"\uD6C4\uC124 \uC911\uBAA8\uC74C \uC6D0\uC21C",low:"\uC800\uBAA8\uC74C"},glide:{j:"j\uD65C\uC74C",w:"w\uD65C\uC74C",velar:"\u0270\uD65C\uC74C"}},unknownError:"\uC54C \uC218 \uC5C6\uB294 \uC624\uB958",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."},E2={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"},M2={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"}},L2={clearAriaLabel:"\uAC80\uC0C9\uC5B4 \uC9C0\uC6B0\uAE30"},$2={starLabel:"{{n}}\uBC88\uC9F8 \uBCC4 \uC120\uD0DD",valueLabel:"{{max}}\uC810 \uB9CC\uC810\uC5D0 {{value}}\uC810",groupLabel:"\uBCC4\uC810"},R2={selected:"\uC120\uD0DD\uB428"},P2={placeholder:"\uC120\uD0DD"},I2={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"},O2={mainMenu:"\uBA54\uC778 \uBA54\uB274",bottomNav:"\uD558\uB2E8 \uB124\uBE44\uAC8C\uC774\uC158",goToManager:"\uB9D0\uADC0\uB9E4\uB2C8\uC800\uB85C \uC774\uB3D9",goToMalgwi:"\uB9D0\uADC0\uB85C \uC774\uB3D9",modeLabelManager:"\uB9D0\uADC0 \uB9E4\uB2C8\uC800",modeLabelMalgwi:"\uB9D0\uADC0",training:"\uD6C8\uB828",settings:"\uC124\uC815",notifications:"\uC54C\uB9BC",account:"\uACC4\uC815",help:"\uB3C4\uC6C0\uB9D0",debug:"\uB514\uBC84\uADF8",coupons:"\uCFE0\uD3F0",topic:"\uC8FC\uC81C\uBCC4 \uB4E3\uAE30",trainingType:"\uD6C8\uB828\uBCC4 \uB4E3\uAE30",wordPairs:"\uB300\uB9BD\uC30D \uCC3E\uAE30",wordSearch:"\uB2E8\uC5B4 \uCC3E\uAE30",wordTable:"\uB2E8\uC5B4\uD45C \uB9CC\uB4E4\uAE30",company:"\uC5C5\uCCB4\uC815\uBCF4",more:"\uB354\uBCF4\uAE30",moreMenu:"\uB354\uBCF4\uAE30 \uBA54\uB274",badgeLabel:"{{label}}, {{count}}\uAC1C"},H2={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."}}},V2={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."}},z2={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"}}},W2={guide:{faq:{title:"\uC790\uC8FC \uBB3B\uB294 \uC9C8\uBB38",desc:"FAQ \uBAA8\uC544\uBCF4\uAE30"}}},q2={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.",selectConfirm:"\uBB38\uC81C\uB97C \uBCF4\uACE0 \uD574\uB2F9\uD558\uB294 \uB0B4\uC6A9\uC744 \uC120\uD0DD\uD558\uC138\uC694.",orderListDefault:"\uBB38\uC7A5\uC744 \uB4E4\uC740 \uC21C\uC11C\uB300\uB85C \uBC30\uCE58\uD558\uC138\uC694.",result:{eyebrow:"\uD6C8\uB828 \uC644\uB8CC",title:"\uD6C8\uB828\uC744 \uBAA8\uB450 \uB9C8\uCCE4\uC2B5\uB2C8\uB2E4.",scoreAria:"{{correct}} / {{total}} \uBB38\uD56D",elapsed:"\uC18C\uC694 \uC2DC\uAC04",summary:"{{correct}}\uAC1C\uC758 \uBB38\uD56D\uC744 \uC798 \uB4E4\uC5C8\uC2B5\uB2C8\uB2E4.",tableAriaLabel:"\uBB38\uD56D\uBCC4 \uD310\uC815",colJudge:"\uD310\uC815",colAnswerSelected:"\uC815\uB2F5 \xB7 \uC120\uD0DD",colAnswer:"\uC815\uB2F5",colSelected:"\uC120\uD0DD",heardWell:"\uC798 \uB4E4\uC5C8\uC5B4\uC694",notHeard:"\uBABB \uB4E4\uC5C8\uC5B4\uC694",notJudged:"\uBBF8\uD310\uC815",replay:"\uB2E4\uC2DC\uD558\uAE30",done:"\uC644\uB8CC",viewResult:"\uACB0\uACFC \uD655\uC778",noContent:"(\uB0B4\uC6A9\uC5C6\uC74C)"},up:"\uC704\uB85C",down:"\uC544\uB798\uB85C",prev:"\uC774\uC804",listenLabel:"\uBB38\uC7A5 \uB4E3\uAE30",sourcePlay:"\uC18C\uC2A4 {{n}} \uC7AC\uC0DD",listen:"\uB4E3\uAE30",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"}},U2={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"},G2={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"}}}},Y2={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"}},Z2={unitVisit:"\uAC74",periodAll:"\uC804\uCCB4",showN:"{{n}}\uAC1C\uC529"},X2={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"}},J2={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."}},Q2={comingSoon:"\uB2E8\uC5B4\uD6C8\uB828 \uAE30\uB2A5\uC744 \uC900\uBE44 \uC911\uC785\uB2C8\uB2E4."},ef={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"},tf={title:"\uC8FC\uC694 \uB2E8\uC5B4",empty:"\uCD94\uCD9C\uB41C \uC8FC\uC694 \uB2E8\uC5B4\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4."},nf={defaultName:"\uB2E8\uC5B4 \uD45C",title:"\uB2E8\uC5B4 \uD45C \uB9CC\uB4E4\uAE30",subtitle:"\uCE78\uC744 \uC124\uC815\uD558\uACE0 \uB2E8\uC5B4\uB97C \uCD94\uAC00\uD558\uC5EC \uD45C\uB97C \uB9CC\uB4ED\uB2C8\uB2E4.",filterTitle:"\uD45C \uC124\uC815",filter:{composition:"\uAD6C\uC131",image:"\uC774\uBBF8\uC9C0",word:"\uB2E8\uC5B4",standardPron:"\uD45C\uC900 \uBC1C\uC74C",colloquialPron:"\uAD6C\uC5B4\uCCB4 \uBC1C\uC74C",paperOrientation:"\uC6A9\uC9C0 \uBC29\uD5A5",landscape:"\uAC00\uB85C",portrait:"\uC138\uB85C",columns:"\uCE78 \uC218",column:"{{count}}\uCE78",itemsPerPageWord:"\uD398\uC774\uC9C0\uB2F9 \uB2E8\uC5B4 \uC218",itemsPerPagePair:"\uD398\uC774\uC9C0\uB2F9 \uB300\uB9BD\uC30D \uC218",itemsPerPageOption:"{{count}}\uAC1C",pageIndicator:"{{current}} / {{total}}",pageNumber:"\uD398\uC774\uC9C0 \uBC88\uD638",pageNumberLeft:"\uC67C\uCABD",pageNumberCenter:"\uC911\uC559",pageNumberRight:"\uC624\uB978\uCABD",border:"\uC678\uACFD\uC120",cutLine:"\uC808\uCDE8\uC120",show:"\uD45C\uC2DC",hide:"\uBBF8\uD45C\uC2DC",dotted:"\uC810\uC120",corner:"\uCF54\uB108"},addWord:"\uCD94\uAC00\uD558\uAE30",wordInfo:"{{word}} \uB0B1\uB9D0 \uC815\uBCF4",emptyItems:"\uB2E8\uC5B4\uB97C 1\uAC1C \uC774\uC0C1 \uCD94\uAC00\uD574\uC8FC\uC138\uC694.",load:"\uBD88\uB7EC\uC624\uAE30",openNewWindow:"\uC0C8 \uCC3D\uC73C\uB85C \uBCF4\uAE30",saveButton:"\uC800\uC7A5\uD558\uAE30",saveAsNewButton:"\uB2E4\uB978 \uC774\uB984\uC73C\uB85C \uC800\uC7A5",print:"\uC778\uC1C4\uD558\uAE30",popupBlocked:"\uD31D\uC5C5\uC774 \uCC28\uB2E8\uB418\uC5C8\uC2B5\uB2C8\uB2E4. \uBE0C\uB77C\uC6B0\uC800 \uC124\uC815\uC5D0\uC11C \uD31D\uC5C5\uC744 \uD5C8\uC6A9\uD574 \uC8FC\uC138\uC694.",printFileNameSingle:"\uB2E8\uC5B4\uD45C",printFileNamePair:"\uB300\uB9BD\uC30D\uD45C",save:{title:"\uB2E8\uC5B4\uD45C \uC800\uC7A5\uD558\uAE30",nameLabel:"\uC774\uB984",desc:"\uC800\uC7A5\uD560 \uB2E8\uC5B4 \uD45C\uC758 \uC774\uB984\uC744 \uC785\uB825\uD558\uC138\uC694.",placeholder:"\uC774 \uB2E8\uC5B4\uD45C\uC5D0 \uB300\uD55C \uC81C\uBAA9\uC744 \uC785\uB825\uD558\uC138\uC694.",descriptionLabel:"\uC124\uBA85",descriptionPlaceholder:"\uC774 \uB2E8\uC5B4\uD45C\uC5D0 \uB300\uD55C \uC124\uBA85\uC744 \uC785\uB825\uD558\uC138\uC694.",duplicateName:"\uC774\uBBF8 \uC0AC\uC6A9 \uC911\uC778 \uC774\uB984\uC785\uB2C8\uB2E4.",nameRequired:"\uD45C \uC774\uB984\uC744 \uC785\uB825\uD574 \uC8FC\uC138\uC694.",autoFillHint:" (Tab \uB610\uB294 space \uC785\uB825\uC2DC \uC790\uB3D9 \uC785\uB825)",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:"\uC0AD\uC81C",sort:{newest:"\uCD5C\uC2E0\uC21C",oldest:"\uC624\uB798\uB41C\uC21C",name:"\uC774\uB984\uC21C",count:"\uB2E8\uC5B4 \uC218"},view:{grid:"\uD45C\uB85C \uBCF4\uAE30",list:"\uB9AC\uC2A4\uD2B8\uB85C \uBCF4\uAE30"}},groupDeleteMessage:"\uADF8\uB8F9 \uB0B4 \uB2E8\uC5B4\uD45C\uB294 '\uADF8\uB8F9 \uC5C6\uC74C'\uC73C\uB85C \uC774\uB3D9\uD569\uB2C8\uB2E4.",groupNamePlaceholder:"\uADF8\uB8F9 \uC774\uB984",store:{badge:"\uB9D0\uADC0\uC790\uB8CC\uC2E4"},card:{sub:"\uB2E8\uC5B4\uD45C \uCE74\uB4DC",empty:"\uC774 \uCE74\uB4DC\uC5D0 \uB2E8\uC5B4\uD45C\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4."},toast:{renameError:"\uC774\uB984 \uBCC0\uACBD\uC5D0 \uC2E4\uD328\uD588\uC2B5\uB2C8\uB2E4",saveError:"\uC800\uC7A5\uC5D0 \uC2E4\uD328\uD588\uC2B5\uB2C8\uB2E4",deleteError:"\uC0AD\uC81C\uC5D0 \uC2E4\uD328\uD588\uC2B5\uB2C8\uB2E4",duplicateError:"\uBCF5\uC81C\uC5D0 \uC2E4\uD328\uD588\uC2B5\uB2C8\uB2E4",saveSuccess:"\uB2E8\uC5B4\uD45C\uAC00 \uC800\uC7A5\uB418\uC5C8\uC2B5\uB2C8\uB2E4."},scoring:{o:"{{word}} \uB9DE\uC74C",triangle:"{{word}} \uC560\uB9E4",x:"{{word}} \uD2C0\uB9BC",button:"\uCC44\uC810\uD558\uAE30",pickTitle:"\uB204\uAD6C\uB97C \uCC44\uC810\uD560\uAE4C\uC694?",pickSubtitle:"\u2018{{name}}\u2019 \uD45C\uB85C \uD6C8\uB828\uD55C \uACE0\uAC1D\uC744 \uACE0\uB974\uC138\uC694.",pickSearch:"\uC774\uB984 \uB610\uB294 \uC804\uD654\uBC88\uD638\uB85C \uCC3E\uAE30",pickEmpty:"\uB4F1\uB85D\uB41C \uACE0\uAC1D\uC774 \uC5C6\uC2B5\uB2C8\uB2E4.",pickNoMatch:"\uCC3E\uB294 \uACE0\uAC1D\uC774 \uC5C6\uC2B5\uB2C8\uB2E4.",pickAgain:"\uACE0\uAC1D \uB2E4\uC2DC \uACE0\uB974\uAE30",scoringFor:"{{name}} \uB2D8 \uCC44\uC810 \uC911",none:"\uCE78\uC744 \uB20C\uB7EC \u25CB \xB7 \u25B3 \xB7 \u2715 \uB97C \uB9E4\uAE30\uC138\uC694.",tally:"{{marked}}\uCE78 \uCC44\uC810 \xB7 \u25CB {{o}} \xB7 \u25B3 {{triangle}} \xB7 \u2715 {{x}} \xB7 \uC815\uB2F5\uB960 {{rate}}%",save:"\uCC44\uC810 \uC800\uC7A5",saved:"{{name}} \uB2D8\uC758 \uCC44\uC810 {{count}}\uCE78\uC744 \uC800\uC7A5\uD588\uC2B5\uB2C8\uB2E4.",reviewTitle:"\uBCF5\uC2B5\uD45C\uB97C \uB9CC\uB4E4\uAE4C\uC694?",reviewMessage:"{{name}} \uB2D8\uC774 \uD2C0\uB9AC\uAC70\uB098 \uC560\uB9E4\uD588\uB358 {{count}}\uCE78\uC73C\uB85C \uC0C8 \uD45C\uB97C \uB9CC\uB4ED\uB2C8\uB2E4. \uB9DE\uD78C \uCE78\uC740 \uBE60\uC9D1\uB2C8\uB2E4.",reviewConfirm:"\uBCF5\uC2B5\uD45C \uB9CC\uB4E4\uAE30",reviewDescription:"\u2018{{name}}\u2019 \uCC44\uC810\uC5D0\uC11C \uD2C0\uB9AC\uAC70\uB098 \uC560\uB9E4\uD588\uB358 {{count}}\uCE78\uC744 \uBAA8\uC740 \uD45C\uC785\uB2C8\uB2E4.",reviewCreated:"\u2018{{name}}\u2019\uC744(\uB97C) \uB9CC\uB4E4\uC5C8\uC2B5\uB2C8\uB2E4 \u2014 {{count}}\uCE78.",discardTitle:"\uB9E4\uAE34 \uCC44\uC810\uC744 \uBC84\uB9B4\uAE4C\uC694?",discardMessage:"{{count}}\uCE78\uC744 \uB9E4\uACBC\uC9C0\uB9CC \uC544\uC9C1 \uC800\uC7A5\uD558\uC9C0 \uC54A\uC558\uC2B5\uB2C8\uB2E4. \uB098\uAC00\uBA74 \uC0AC\uB77C\uC9D1\uB2C8\uB2E4.",discardConfirm:"\uBC84\uB9AC\uACE0 \uB098\uAC00\uAE30"},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"}},af={editBanner:{message:"\uC800\uC7A5\uD558\uBA74 \uC9C0\uAE08 \uC218\uC815 \uC911\uC778 \uB2E8\uC5B4\uD45C\uAC00 \uAC31\uC2E0\uB429\uB2C8\uB2E4."},filterTitle:"\uB2E8\uC5B4 \uAC80\uC0C9 \uC124\uC815",filter:{positionAny:"\uBB34\uAD00",positionHead:"\uC5B4\uB450",positionMid:"\uC5B4\uC911",positionTail:"\uC5B4\uB9D0",difficulty:"\uB4F1\uAE09",grade:"{{n}}\uB4F1\uAE09",syllables:"\uC74C\uC808 \uC218",syllable:"{{n}}\uC74C\uC808",syllable5plus:"5\uC74C\uC808 \uC774\uC0C1",partOfSpeech:"\uD488\uC0AC",pos:{noun:"\uCCB4\uC5B8(\uBA85\uC0AC, \uC218\uC0AC)",verb:"\uC6A9\uC5B8(\uB3D9\uC0AC, \uD615\uC6A9\uC0AC)",modifier:"\uC218\uC2DD\uC5B8(\uBD80\uC0AC, \uAD00\uD615\uC0AC)"},wordType:"\uC720\uD615",type:{native:"\uACE0\uC720\uC5B4",sino:"\uD55C\uC790\uC5B4",foreign:"\uC678\uB798\uC5B4",mixed:"\uD63C\uC885\uC5B4"},exclude:"\uC81C\uC678",excludeNoImage:"\uC774\uBBF8\uC9C0 \uC5C6\uC74C"},searchButton:"\uAC80\uC0C9\uD558\uAE30",resultUnit:"\uB2E8\uC5B4",remaining:"{{count}}\uAC1C \uB0A8\uC74C",resultDisc:"\uC6D0\uD558\uB294 {{unit}} \uC120\uD0DD\uD558\uC138\uC694. {{max}}\uAC1C\uAE4C\uC9C0 \uC120\uD0DD\uD560 \uC218 \uC788\uC2B5\uB2C8\uB2E4. ({{selected}}/{{max}})",resultTitlePrefix:"\uCD1D ",resultTitleSuffix:"\uAC1C\uC758 {{unit}} \uAC80\uC0C9\uB418\uC5C8\uC2B5\uB2C8\uB2E4.",emptyResult:"\uAC80\uC0C9 \uACB0\uACFC\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4.",groupCount:"{{count}}\uAC1C",sort:{aria:"\uC815\uB82C",match:"\uC2DC\uC791 \uC6B0\uC120",ganada:"\uAC00\uB098\uB2E4\uC21C \u2191",ganadaDesc:"\uAC00\uB098\uB2E4\uC21C \u2193",syllable:"\uC74C\uC808 \uC218 \u2191",syllableDesc:"\uC74C\uC808 \uC218 \u2193",grade:"\uB4F1\uAE09\uC21C \u2191",gradeDesc:"\uB4F1\uAE09\uC21C \u2193"},pageSize:"{{count}}\uAC1C\uC529 \uBCF4\uAE30",pageSizeAria:"\uD398\uC774\uC9C0 \uD06C\uAE30",popup:{title:"{{n}}\uBC88 \uCE78\uC5D0 \uB123\uC744 \uB2E8\uC5B4\uB97C \uC120\uD0DD\uD558\uC138\uC694"}},rf={clearAllSelection:"\uBAA8\uB450 \uC120\uD0DD \uD574\uC81C",divLine:"\uB300\uB9BD\uC120",removePair:"\uB300\uB9BD\uC30D \uBE7C\uAE30",removeWord:"\uB2E8\uC5B4 \uBE7C\uAE30"},of={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"}},sf={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"}},lf={passwordPlaceholder:"\uBE44\uBC00\uBC88\uD638 \uC785\uB825"},cf={subtitle:"\uC8FC\uC81C\uB97C \uC120\uD0DD\uD558\uC5EC \uB4E3\uAE30 \uC5F0\uC2B5\uC744 \uC9C4\uD589\uD558\uC138\uC694."},uf={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"}},df={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"}},pf={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."]},mf={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"}},hf={lead:`\uC544\uC774\uD574\uBE0C\uB294 \uC18C\uB9AC\uB97C \uD1B5\uD574
827
+ `),this.name="StorageNotConfiguredError"}};function Qh(e){Jh(e)}function hs(e,n){if(!e)return null;const a=oa();return a?.resolvePath?a.resolvePath(e,n):n?`${n}/${e}.mp3`:null}async function fs(e){if(!e)return null;const n=oa();if(!n)throw new ms("getSignedOrPublicUrl");try{return await n.resolveUrl(e)}catch{return null}}async function Cs(e){const n=oa();if(!n)throw new ms("downloadSound");return n.download(e)}function e0(){return oa()?.noiseBaseUrl??"/sounds/noise"}function gs(){const e=Number(oa()?.noiseFileGain);return Number.isFinite(e)&&e>0?e:1}function t0(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 bs="__ihab_core_tts_config__";function dr(){return globalThis[bs]?.urlResolver??null}function n0(){return globalThis[bs]?.fallbackUrlResolver??null}const a0="__ihab_core_pronunciation_resolver__";function r0(){return globalThis[a0]??null}let xn=null;const sa=new WeakMap,pr=new WeakMap,mr=new WeakMap;let ys=!1;const vs=e=>Math.max(0,Math.min(1,Number.isFinite(e)?e:0));function o0(){if(ys||typeof document>"u")return;ys=!0;const e=()=>{try{xn&&xn.state!=="running"&&xn.resume()}catch{}};for(const n of["pointerdown","touchend","keydown"])document.addEventListener(n,e,{capture:!0,passive:!0})}function xs(){if(xn)return xn;try{const e=window.AudioContext||window.webkitAudioContext;return e?(xn=new e,o0(),xn):null}catch{return null}}function hr(){try{xn?.resume()}catch{}}function fr(e,n){const a=sa.get(n);if(a)return a;try{const r=e.createMediaElementSource(n),o=e.createGain(),i=e.createAnalyser();i.fftSize=1024,i.smoothingTimeConstant=.6,o.gain.value=vs(pr.get(n)??n.volume),r.connect(o),o.connect(i),o.connect(e.destination);try{n.volume=1}catch{}const l={gain:o,analyser:i};return sa.set(n,l),l}catch{return null}}function Aa(e){if(!e)return Promise.resolve(null);const n=sa.get(e);if(n)return Promise.resolve(n.analyser);const a=xs();if(!a)return Promise.resolve(null);if(a.state==="running")return Promise.resolve(fr(a,e)?.analyser??null);const r=mr.get(e);if(r)return r;const o=Promise.resolve().then(()=>a.resume()).then(()=>a.state==="running"?fr(a,e)?.analyser??null:null).catch(()=>null).finally(()=>{mr.delete(e)});return mr.set(e,o),o}function s0(e){if(!e)return null;const n=sa.get(e);if(n)return n.analyser;const a=xs();return a?a.state==="running"?fr(a,e)?.analyser??null:(Aa(e),null):null}function _n(e,n){const a=vs(n);pr.set(e,a);const r=sa.get(e);if(r){try{e.volume!==1&&(e.volume=1)}catch{}const o=r.gain.gain;try{const i=r.gain.context.currentTime;o.cancelScheduledValues(i),o.setTargetAtTime(a,i,.01)}catch{try{o.value=a}catch{}}return"gain"}try{e.volume=a}catch{}return"element"}function Na(e){return pr.get(e)??e.volume}function i0(e,n){e.getFloatTimeDomainData(n);let a=0;for(let r=0;r<n.length;r++){const o=n[r];a+=o*o}return Math.sqrt(a/n.length)}const l0="__ihab_core_image_config__";function Wn(){return globalThis[l0]??null}const _s="word_image_existence_map_v1";let En=null;const Ba=new Map;function c0(){if(En)return En;try{const e=typeof localStorage<"u"?localStorage.getItem(_s):null,n=e?JSON.parse(e):null;En=n&&typeof n=="object"&&!Array.isArray(n)?n:{}}catch{En={}}return En}let Cr=null;function u0(){Cr||(Cr=setTimeout(()=>{Cr=null;try{typeof localStorage<"u"&&En&&localStorage.setItem(_s,JSON.stringify(En))}catch{}},200))}function d0(e,n){return`${e}_${n??1}`}async function ws(e,n){const a=c0(),r=d0(e,n);if(r in a)return a[r];if(Ba.has(r))return Ba.get(r);const o=Wn();if(!o)return!1;const i=o(e,n);if(!i)return!1;const l=fetch(i,{method:"HEAD",signal:t0(8e3)}).then(c=>c.status>=500?null:c.ok,()=>null).then(c=>(Ba.delete(r),c===null?!1:(a[r]=c,u0(),c)));return Ba.set(r,l),l}const ks=["\u3131","\u3132","\u3134","\u3137","\u3138","\u3139","\u3141","\u3142","\u3143","\u3145","\u3146","\u3147","\u3148","\u3149","\u314A","\u314B","\u314C","\u314D","\u314E"],As=["\u314F","\u3150","\u3151","\u3152","\u3153","\u3154","\u3155","\u3156","\u3157","\u3158","\u3159","\u315A","\u315B","\u315C","\u315D","\u315E","\u315F","\u3160","\u3161","\u3162","\u3163"],p0=["","\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 ia(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 m0(e){const n=ia(e[0]||"");return n?ks[n.cho]:""}function h0(e){if(!e)return()=>!0;e=e.normalize("NFC");const n=[...e],a=l=>ks.includes(l),r=l=>As.includes(l),o=n.map(l=>a(l)?"cho":r(l)?"jung":ia(l)?"syl":"other"),i=n.map(l=>ia(l));if(o.includes("other")){const l=e.toLowerCase();return c=>c.normalize("NFC").toLowerCase().includes(l)}return l=>{const c=[...l.normalize("NFC")];for(let u=0;u+n.length<=c.length;u++){let d=!0;for(let p=0;p<n.length;p++){const m=c[u+p],h=o[p];if(h==="cho"){if(m0(m)!==n[p]){d=!1;break}}else if(h==="jung"){const C=ia(m);if(!C||As[C.jung]!==n[p]){d=!1;break}}else{const C=i[p];if(C&&C.jong===0){const y=ia(m);if(!y||y.cho!==C.cho||y.jung!==C.jung){d=!1;break}}else if(m!==n[p]){d=!1;break}}}if(d)return!0}return!1}}const f0={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(f0).map(([e,n])=>[n.join(""),p0[Number(e)]]));const C0="word_pair_index_v2",g0="word_pair_index_sig_v2";let Da=null;function b0(){try{if(typeof localStorage>"u")return null;const e=localStorage.getItem(C0),n=localStorage.getItem(g0);return!e||!n?null:{index:JSON.parse(e),sig:n}}catch{return null}}function y0(){if(Da)return Da;const e=b0();return e?(Da=e.index,e.sig,Da):null}const v0={\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"}},gr=/[ㄱ-ㅎ]/,x0=/[ㅏ-ㅣ]/;function Ns(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||gr.test(a)||x0.test(a))return a}return null}function _0(e){const n=Ns(e);if(!n)return"\uAC00";const a=n.charCodeAt(0);return a>=44032&&a<=55203?(a-44032)%28!==0?"\uC774":"\uAC00":gr.test(n)?"\uC774":"\uAC00"}function w0(e){return`${e}${_0(e)}`}function k0(e){const n=Ns(e);if(!n)return"\uB97C";const a=n.charCodeAt(0);return a>=44032&&a<=55203?(a-44032)%28!==0?"\uC744":"\uB97C":gr.test(n)?"\uC744":"\uB97C"}function A0(e){return`${e}${k0(e)}`}function N0(e,n,a){const r=e.slice(),[o]=r.splice(n,1);return r.splice(a,0,o),r}function la(e,n=Math.random){const a=e.slice();for(let r=a.length-1;r>0;r--){const o=Math.floor(n()*(r+1));[a[r],a[o]]=[a[o],a[r]]}return a}const B0=()=>{const e="\uC54C \uC218 \uC5C6\uB294 \uC624\uB958",n=typeof Lt?.t=="function"?Lt.t("common.unknownError",{defaultValue:e}):void 0;return typeof n=="string"&&n?n:e};function Bs(e,n){if(n===void 0&&(n=B0()),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 D0="__ihab_core_word_pool__";function S0(){return globalThis[D0]??null}const Ds=globalThis;function Ss(e,n){const a=r=>{};try{const r=n();r&&typeof r.catch=="function"&&r.catch(a)}catch(r){a(r)}}function j0(e){Ss("time",()=>Ds.__ihabTrainingTimeLogger?.(e))}function T0(e){Ss("completion",()=>Ds.__ihabTrainingCompletionLogger?.(e))}function Rt(e){return typeof e=="string"?e.trim()||null:typeof e=="number"?String(e):null}function E0(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 M0(e){return Array.isArray(e)?e.map((n,a)=>{const r=n??{};return{index:a,itemId:Rt(r.contextCode)??Rt(r.itemId)??Rt(r.itemCode)??Rt(r.id),question:Rt(r.question)??Rt(r.q)??Rt(r.sentence)??Rt(r.text)??Rt(r.prompt)??Rt(r.word)??Rt(r.targetSyllable),answer:Rt(r.answer),selected:Rt(r.selectedText)??Rt(r.selected),correct:E0(r)}}):[]}const br=globalThis;async function L0(){try{return await br.__ihabNoiseSettingsStore?.load()??null}catch{return null}}function js(e){const n=a=>{};try{const a=br.__ihabNoiseSettingsStore?.save(e);a&&typeof a.catch=="function"&&a.catch(n)}catch(a){n(a)}}function Sa(e){try{br.__ihabNoiseSettingsStore?.applied?.(e)}catch{}}async function $0(e){if(typeof document<"u"){const n=document.activeElement;let a=null;try{if(a=document.createElement("textarea"),a.value=e,a.setAttribute("readonly",""),a.style.position="fixed",a.style.top="0",a.style.left="0",a.style.opacity="0",a.style.pointerEvents="none",document.body.appendChild(a),a.focus(),a.select(),a.setSelectionRange(0,e.length),document.execCommand("copy"))return!0}catch{}finally{if(a?.parentNode&&a.parentNode.removeChild(a),n&&n!==document.activeElement&&typeof n.focus=="function"&&n.isConnected)try{n.focus({preventScroll:!0})}catch{}}}try{if(typeof navigator<"u"&&navigator.clipboard&&typeof navigator.clipboard.writeText=="function")return await navigator.clipboard.writeText(e),!0}catch{}return!1}function Mn(){return yr(new Date)}function qn(){return P0(Mn())}const R0=540*60*1e3;function Ts(e,n,a){return new Date(Date.UTC(e,n,a)-R0)}function P0(e){const[n,a,r]=e.split("-").map(Number);return new Date(n,(a||1)-1,r||1)}function yr(e){if(e==null||e==="")return"";const n=e instanceof Date?e:new Date(e);return isNaN(n.getTime())?"":new Intl.DateTimeFormat("fr-CA",{timeZone:"Asia/Seoul"}).format(n)}function Es(e,n){if(!e)return"";const a=new Date(e).getTime();if(Number.isNaN(a))return"";const r=Math.max(0,Math.floor((Date.now()-a)/1e3)),o=Math.floor(r/60),i=Math.floor(o/60),l=Math.floor(i/24),c=Math.floor(l/7),u=Math.floor(l/30),d=Math.floor(l/365);return o<1?n("store.time.justNow","\uBC29\uAE08 \uC804"):o<60?n("store.time.minutesAgo",{n:o}):i<24?n("store.time.hoursAgo",{n:i}):l<7?n("store.time.daysAgo",{n:l}):c<5?n("store.time.weeksAgo",{n:c}):l<365?n("store.time.monthsAgo",{n:Math.min(u,11)}):n("store.time.yearsAgo",{n:d})}function Ms(e,n={}){const{sep:a=".",pad:r=!0,trailingDot:o=!1,fallback:i="\u2014"}=n;if(!e)return i;const l=yr(e instanceof Date?e:String(e));if(!l)return i;const[c,u,d]=l.split("-"),p=r?u:String(Number(u)),m=r?d:String(Number(d));return`${c}${a}${p}${a}${m}${o?".":""}`}function ca(e){if(!e)return e;const n=e.trim();return/^[₩$]/.test(n)?n:/원\s*$/.test(n)?"\u20A9"+n.replace(/\s*원\s*$/,"").trim():n}function Ls(e,n){if(!e)return"-";const a=/^(\d{1,2}):(\d{2})$/.exec(e.trim());if(!a)return e;const r=Number(a[1]),o=Number(a[2]),i=a[1].padStart(2,"0");return o===0?n("date.timeH",{h:r,hh:i,mm:a[2]}):n("date.timeHM",{h:r,hh:i,m:o,mm:a[2]})}function vr(e){return(e??0).toLocaleString("ko-KR")}const I0=[{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"}]}],F0=[{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 $s(){return I0}function O0(){return F0}const V0=[],H0=[],z0=[],W0=[];function q0(){return{LISTEN_IN_NOISE:V0,SHORT_STORY:H0,LONG_STORY:z0,ORDERING_SENTENCE:W0}}const U0=[{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."}],Rs={LISTEN_IN_NOISE:"listenInNoise",SHORT_STORY:"shortStory",LONG_STORY:"longStory",ORDERING_SENTENCE:"orderingSentence"};function G0(e){return U0.map(n=>{const a=Rs[n.key];return a?{...n,label:e(`trainingType.${a}.title`),desc:e(`trainingType.${a}.desc`)}:n})}let ja=null,Ps=null,Is=null;function K0(){const e=S0();if(e&&e.entries.length>0){const n=y0();if(ja&&Ps===e&&Is===n)return ja;const a=new Set,r=[];for(const o of e.entries)!o.word||a.has(o.word)||(a.add(o.word),r.push({w:o.word,s:o.syllables,p:n?.[o.word]?[...n[o.word].cho??[],...n[o.word].jung??[],...n[o.word].jong??[]]:[],pron:o.pronunciation||o.word,grade:o.grade}));return ja=r,Ps=e,Is=n,ja}return[]}new Proxy([],{get(e,n){const a=K0(),r=a[n];return typeof r=="function"?r.bind(a):r}});const Y0="0.147.0";function Z0(e){return typeof window>"u"?"":Kh.sanitize(e,{USE_PROFILES:{svg:!0,svgFilters:!0},FORBID_TAGS:["script","use"],FORBID_ATTR:["xlink:href","href"]})}function X0(e){const[n,a]=s.useState(null),[r,o]=s.useState(null),[i,l]=s.useState(null),[c,u]=s.useState(null);return s.useEffect(()=>{if(!e||typeof e!="string"||!e.endsWith(".svg")){a(null),o(null),l(null);return}const d=e.split("/").pop();let p=e;d&&(e.startsWith("/")?p=ur(e):/^(Logo|Symbol)/i.test(d)?p=ur(`logo/${d}`):(/^https?:\/\//i.test(e)||e.startsWith("data:"),p=e)),o(null),l(null),a(p)},[e]),s.useEffect(()=>{if(!n)return;let d=!1;async function p(){try{let m=await fetch(n);m.ok||(m=await fetch(n));const h=m.headers.get("content-type")||"";if(d)return;if(h.includes("svg")){o("mask");return}if(h.startsWith("image/")){o("img");return}const C=await fetch(n);if(!C.ok)throw new Error("not ok");const y=await C.text();if(d)return;if(/^\s*<svg[\s>]/i.test(y)){const f=Z0(y);if(!f){o("none");return}l(f),o("inline");return}o("none")}catch{d||o("none")}}return p(),()=>{d=!0}},[n]),s.useEffect(()=>{let d=!1,p=null;return r==="mask"&&n&&fetch(n).then(m=>{if(!m.ok)throw new Error("fetch failed");return m.blob()}).then(m=>{d||(p=URL.createObjectURL(m),u(p))}).catch(()=>{d||o("img")}),()=>{d=!0,p&&URL.revokeObjectURL(p),u(null)}},[r,n]),{iconToUse:n,mode:r,svgText:i,blobUrl:c}}function qe(e){const{icon:n,label:a,className:r,imgClassName:o,maskClassName:i,svgClassName:l,wrapperStyle:c,size:u}=e||{},d=r??"iconRenderer-icon",p=o??"iconRenderer-icon-image",m=i??"iconRenderer-icon-mask",h=l??"iconRenderer-icon-svg",C=typeof n=="string"?n:null,y=mh(C),{iconToUse:f,mode:v,svgText:b,blobUrl:x}=X0(C),_=(D,B={})=>t.jsx("span",{className:d,style:c,...B,children:D}),g=(D,B={})=>t.jsx("img",{src:D,alt:typeof a=="string"?a:typeof a=="number"?String(a):"",className:p,...B});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 _(s.createElement(y,{className:h,size:typeof u=="number"?u:20}),{"aria-hidden":"true"})}catch{}if(f&&f.endsWith(".svg")){if(v==="mask"){const D={"--icon-url":x?`url(${x})`:`url(${f})`,...typeof u=="number"?{"--icon-size":`${u}px`}:null};return _(t.jsx("span",{className:m,style:D}),{"aria-hidden":"true"})}return v==="img"?_(g(f,{onError:D=>{D.currentTarget.onerror=null,D.currentTarget.style.display="none"}}),{"aria-hidden":"true"}):v==="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 g(ur(n),{style:c,onError:D=>{D.currentTarget.onerror=null,D.currentTarget.style.display="none"}});const A=typeof u=="number"?u:20,w=`<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:w}}),{"aria-hidden":"true"})}function J0({icon:e,emoji:n,title:a,message:r,hint:o,action:i,compact:l,className:c}){return t.jsxs("div",{className:ge("empty-state",l&&"empty-state--compact",c),children:[n&&t.jsx("span",{className:"empty-state__emoji",children:n}),e&&t.jsx(qe,{icon:e,className:"empty-state__icon"}),a&&t.jsx("p",{className:"empty-state__title body-2",children:a}),r&&t.jsx("p",{className:"empty-state__message body-3",children:r}),o&&t.jsx("p",{className:"empty-state__hint caption-1",children:o}),i&&t.jsxs("button",{type:"button",className:"empty-state__action button button40 button40--bar button--variant-main button--align-center button--shape-rounded",onClick:i.onClick,children:[i.icon&&t.jsx(qe,{icon:i.icon,className:"button__icon"}),t.jsx("span",{className:"button__label button-1",children:i.label})]})]})}function Q0({message:e,hint:n,icon:a="triangle-alert",onRetry:r,retryLabel:o,className:i}){const{t:l}=pe.useTranslation();return t.jsxs("div",{className:ge("empty-state","error-state",i),role:"alert",children:[t.jsx(qe,{icon:a,className:"empty-state__icon error-state__icon"}),t.jsx("p",{className:"empty-state__message body-3",children:e??l("common.errorState.message",{defaultValue:"\uBD88\uB7EC\uC624\uC9C0 \uBABB\uD588\uC2B5\uB2C8\uB2E4."})}),n&&t.jsx("p",{className:"empty-state__hint caption-1",children:n}),r&&t.jsxs("button",{type:"button",className:"empty-state__action button button40 button40--bar button--variant-main button--align-center button--shape-rounded",onClick:r,children:[t.jsx(qe,{icon:"rotate-cw",className:"button__icon"}),t.jsx("span",{className:"button__label button-1",children:o??l("common.errorState.retry",{defaultValue:"\uB2E4\uC2DC \uC2DC\uB3C4"})})]})]})}function e2({icon:e,title:n,description:a,cta:r,tone:o="main",disabled:i=!1,onClick:l,className:c=""}){const u=s.useId(),d=`${u}-title`,p=`${u}-desc`,m=`${u}-cta`,h=()=>{i||l?.()};return t.jsx("section",{role:"button",tabIndex:i?-1:0,"aria-disabled":i||void 0,"aria-labelledby":d,"aria-describedby":`${p} ${m}`,onClick:h,onKeyDown:C=>{(C.key==="Enter"||C.key===" ")&&(C.preventDefault(),h())},className:ge("action-card",`action-card--${o}`,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(qe,{icon:e,size:34})}),t.jsxs("div",{className:"action-card__text",children:[t.jsx("h2",{id:d,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(qe,{icon:"arrow-right",size:18})})]})]})})}function t2({as:e="div",className:n="",children:a,storage:r,...o}){r&&Qh({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=ge("ihabdevteam-core-scope",n);return t.jsx(e,{className:i,...o,children:a})}function n2({title:e="",lines:n=[],notices:a=null,children:r,variant:o="default",dismissible:i=!1,className:l=""}){const{t:c}=pe.useTranslation(),[u,d]=s.useState(!1),p=s.useCallback(()=>d(!0),[]);if(u)return null;const m=`notice-box notice-box--${o} body-2 ${l}`.trim();if(a&&Array.isArray(a)&&a.length)return t.jsx("div",{className:m,role:"note",children:a.map((C,y)=>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((f,v)=>t.jsx("span",{className:"notice-box__line body-3",children:f},v))}):C.children??null})]},y))});const h=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,y)=>t.jsx("li",{className:"notice-box__line",children:C},y))}):r})]}):t.jsx("div",{className:"notice-box__inner",children:r});return t.jsxs("div",{className:m,role:"note",children:[h,i&&t.jsx("button",{type:"button",className:"notice-box__dismiss",onClick:p,"aria-label":c("common.close","\uB2EB\uAE30"),children:"\xD7"})]})}function xr(e,n=!0){s.useEffect(()=>{if(!n)return;const a=e.current;if(!a)return;const r=o=>{if(o.key!=="Tab")return;const i=Array.from(a.querySelectorAll(Ln)).filter(p=>!p.closest('[aria-hidden="true"]'));if(!i.length){o.preventDefault();return}const l=i[0],c=i[i.length-1],u=document.activeElement,d=u===a;o.shiftKey&&(u===l||d)?(o.preventDefault(),c.focus()):!o.shiftKey&&u===c&&(o.preventDefault(),l.focus())};return a.addEventListener("keydown",r),()=>a.removeEventListener("keydown",r)},[e,n])}const Ln='a[href], button:not([disabled]), input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex="-1"])',Un=[];let Ta=!1;function Fs(e){if(e.key!=="Escape"||e.defaultPrevented||e.isComposing||e.keyCode===229)return;const n=Un[Un.length-1];n&&(e.stopPropagation(),n())}function $n(e){return Un.push(e),!Ta&&typeof document<"u"&&(document.addEventListener("keydown",Fs),Ta=!0),()=>{const n=Un.lastIndexOf(e);n>=0&&Un.splice(n,1),Un.length===0&&Ta&&typeof document<"u"&&(document.removeEventListener("keydown",Fs),Ta=!1)}}function wn(e){const{anchorRect:n,anchorEl:a,offset:r=20,edgeMargin:o=20,onClose:i,closeOnOutsideClick:l=!0,className:c="",role:u="dialog",ariaLabel:d="",children:p,backdrop:m=!1,isMobilePopup:h=!1,useBorder:C=!0,header:y}=e||{},f=s.useRef(null),[v,b]=s.useState({position:"fixed",left:0,top:-9999}),[x,_]=s.useState(!1),[g,A]=s.useState("bottom"),[w,D]=s.useState(!1),[B,k]=s.useState(!1),N=!n&&!a,I=s.useCallback((H=!1)=>{if(B&&h)return;const W=a?a.getBoundingClientRect():n;if(!W||!f.current)return;const le=f.current,{offsetWidth:q,offsetHeight:P}=le,M=window.innerWidth,L=window.innerHeight,z=M-W.right,$=W.left,T=W.top,F=L-W.bottom;let oe=0,ae=0,ee="top";if(T>=P+r)ee="top",ae=W.top-r-P,oe=W.left+W.width/2-q/2;else if(F>=P+r)ee="bottom",ae=W.bottom+r,oe=W.left+W.width/2-q/2;else if(z>=q+r)ee="right",oe=W.right+r,ae=W.top+W.height/2-P/2;else if($>=q+r)ee="left",oe=W.left-r-q,ae=W.top+W.height/2-P/2;else{const ie=Math.max(T,F,z,$);ie===T?(ee="top",ae=W.top-r-P,oe=W.left+W.width/2-q/2):ie===F?(ee="bottom",ae=W.bottom+r,oe=W.left+W.width/2-q/2):ie===z?(ee="right",oe=W.right+r,ae=W.top+W.height/2-P/2):(ee="left",oe=W.left-r-q,ae=W.top+W.height/2-P/2)}const se=Number.isFinite(Number(o))?Number(o):8;oe=Math.min(Math.max(oe,se),M-q-se),ae=Math.min(Math.max(ae,se),L-P-se);const Ce=Math.round(oe),Z=Math.round(ae);H&&f.current?(f.current.style.left=`${Ce}px`,f.current.style.top=`${Z}px`,f.current.dataset.placement=ee):(A(ee||g),b({position:"fixed",left:Ce,top:Z}),D(!0))},[B,h,a,n,r,o,g]);s.useLayoutEffect(()=>{if(N)return;if(B&&h){b({position:"fixed",left:"50%",top:"50%",transform:"translate(-50%, -50%)",width:"calc(100% - 40px)",maxWidth:"calc(100% - 40px)"}),D(!0);return}I();const H=requestAnimationFrame(()=>I());return()=>cancelAnimationFrame(H)},[n,a,r,p,o,N,B,h,I]),s.useEffect(()=>{if(N||B&&h||!f.current||typeof ResizeObserver>"u")return;const H=new ResizeObserver(()=>{n&&I()});return H.observe(f.current),()=>H.disconnect()},[n,p,o,N,B,h,I]),s.useEffect(()=>{if(N||B&&h)return;const H=()=>I(!0),W=le=>{if(!a&&i){const q=le.target;if(q&&f.current&&f.current.contains(q))return;try{if(q&&q.closest&&q.closest("[data-tooltip-ignore]"))return}catch{}j.current(!0);return}H()};return window.addEventListener("resize",H),document.addEventListener("scroll",W,{passive:!0,capture:!0}),()=>{window.removeEventListener("resize",H),document.removeEventListener("scroll",W,{capture:!0})}},[n,a,i,r,p,o,N,B,h,I]),s.useEffect(()=>{if(typeof window>"u"||!window.matchMedia)return;const H=window.matchMedia("(max-width: 768px)"),W=()=>k(!!H.matches);W();try{H.addEventListener?H.addEventListener("change",W):H.addListener(W)}catch{try{H.addListener(W)}catch{}}return()=>{try{H.removeEventListener?H.removeEventListener("change",W):H.removeListener(W)}catch{}}},[]);const O=s.useRef(!1),E=s.useRef(null),V=s.useCallback((H=!1)=>{if(i&&!(x||O.current)){if(O.current=!0,H){_(!0);try{i&&i()}catch{O.current=!1,_(!1)}return}_(!0),E.current=setTimeout(()=>{E.current=null;try{i&&i()}catch{O.current=!1,_(!1)}},200)}},[x,i,_]);s.useEffect(()=>()=>{E.current&&clearTimeout(E.current)},[]),s.useEffect(()=>{if(N)return;const H=q=>{const P=f.current;if(!P)return;const M=q.target;if(M&&!P.contains(M)){try{if(M.closest&&M.closest("[data-tooltip-ignore]"))return}catch{}l&&V(!0)}},W=q=>{const P=f.current;if(!P)return;const M=q.target;if(M&&!P.contains(M)){try{if(M.closest&&M.closest("[data-tooltip-ignore]"))return}catch{}l&&V(!0)}},le=q=>{if(q.key==="Tab"){const P=f.current;if(!P)return;const M=P.querySelectorAll(Ln);if(!M||M.length===0)return;const L=M[0],z=M[M.length-1],$=document.activeElement;q.shiftKey?$===L&&(q.preventDefault(),z.focus()):$===z&&(q.preventDefault(),L.focus())}};return document.addEventListener("pointerdown",H,!0),document.addEventListener("click",W,!0),document.addEventListener("keydown",le),()=>{document.removeEventListener("pointerdown",H,!0),document.removeEventListener("click",W,!0),document.removeEventListener("keydown",le)}},[i,l,V,N]);const j=s.useRef(V);s.useEffect(()=>{j.current=V});const Y=!!i;s.useEffect(()=>{if(!(N||!Y))return $n(()=>j.current())},[N,Y]),s.useEffect(()=>{const H=()=>{V(!0)};return typeof document<"u"&&document.addEventListener("speechear-close-tooltips",H),()=>{typeof document<"u"&&document.removeEventListener("speechear-close-tooltips",H)}},[V]);const R=t.jsxs("div",{ref:f,className:`tooltip-content ${N?"tooltip-content--inline":""} ${C?"tooltip-content--bordered":""} ${x?"is-closing":""} ${c} ${B&&h?"is-mobile":""}`,role:u,"aria-label":d||void 0,style:N?{}:{...v,visibility:w?"visible":"hidden"},tabIndex:-1,"data-placement":g,"data-left":N?"":v.left,"data-top":N?"":v.top,"data-anchor-left":n?Math.round(n.left):"","data-anchor-top":n?Math.round(n.top):"","data-anchor-width":n?Math.round(n.width):"","data-anchor-height":n?Math.round(n.height):"",children:[y!=null&&t.jsx("div",{className:"tooltip-content__header h5",children:y}),p]});if(N||typeof document>"u")return R;if(m||B&&h){const H=t.jsxs("div",{className:"tooltip-portal",children:[t.jsx("div",{className:"tooltip-backdrop",onClick:()=>{l&&V(!0)}}),R]});return Ut.createPortal(H,document.body)}return Ut.createPortal(R,document.body)}function kn(e){const{anchorRect:n,text:a,offset:r=8,onClose:o,className:i="",ariaLabel:l}=e||{};return a?t.jsx(wn,{anchorRect:n,offset:r,onClose:o,closeOnOutsideClick:!1,className:`tooltip-info ${i}`,ariaLabel:l||a,children:t.jsx("div",{className:"tooltip-info__content body-3",children:a})}):null}function Rn(e){const{t:n}=pe.useTranslation(),{anchorRect:a,title:r,items:o,activeIndex:i=-1,showIndex:l=!0,onClose:c,offset:u=12,closeOnOutsideClick:d=!0}=e||{},p=(Array.isArray(o)?o:o?[o]:[]).map(m=>typeof m=="string"?{text:m}:m);return!p.length&&!r?null:t.jsx(wn,{anchorRect:a,offset:u,onClose:c,closeOnOutsideClick:d,useBorder:!1,className:"tooltip-description",ariaLabel:r||n("tooltip.description","\uC124\uBA85"),children:t.jsxs("div",{className:"tooltip-description__box",children:[r&&t.jsx("span",{className:"tooltip-description__title body-2",children:r}),t.jsx("ol",{className:"tooltip-description__items",children:p.map((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 ce(e){const{size:n=48,type:a,htmlType:r,href:o,target:i,rel:l,icon:c,rightIcon:u,label:d,count:p,subLabel:m,children:h,ariaLabel:C,variant:y="default",align:f="center",selected:v,toggleable:b=!1,disabled:x=!1,useLabel:_=!0,useBorder:g=!0,useBG:A=!0,useDisabledCovered:w=!1,useDisabledInvisible:D=!1,width:B,minWidth:k,onClick:N,onDisabledClick:I,showTooltipInfo:O=!1,tooltipInfoText:E=null,tooltipDescription:V=null,tooltipOnly:j=!1,iconSize:Y="medium",iconColor:R,shape:H="rounded",color:W,className:le,...q}=e,P=typeof n=="string"&&isNaN(Number(n))?n.toLowerCase():String(Number(n)||48),M=P.match(/^\d+$/)?`button${P}`:`button-${P}`,L=Number(n),z=!isNaN(L)&&L<40?"button-2":"button-1",$=d??h,T=x||!!q.disabled,F=T?w?"disabled-covered":D?"disabled-invisibled":"disabled":y,oe=F?`button--variant-${F}`:"",ae=f?`button--align-${f}`:"",ee=H?`button--shape-${H}`:"",se=typeof R=="string"&&R.startsWith("--")?`var(${R})`:R,Ce={...B?{width:typeof B=="number"?`${B}px`:B}:{},...k?{minWidth:typeof k=="number"?`${k}px`:k}:{},...g?{}:{"--button-border":T?"0":"1px solid transparent"},...se?{"--button-icon-color":se}:{},...W?{"--color-main":W}:{}},Z=_===!1?"":$,ie=Array.isArray(Z)?Z.length>0:!!Z,J=!!u,be=a??(ie||c||J?"bar":"dot"),ve=`${M}--${be}`,Te=s.useRef(null),de=s.useRef(T),[ye,_e]=s.useState(!!v),[Q,te]=s.useState(!1),[we,Se]=s.useState(null),ze=s.useCallback(()=>te(!1),[]);s.useEffect(()=>{typeof v=="boolean"&&_e(v)},[v]),s.useEffect(()=>{if(de.current&&!T&&Te.current){const Fe=Te.current;let Qe=!1;try{Qe=Fe.matches(":focus:not(:focus-visible)")}catch{Qe=!1}Qe&&Fe.blur(),Fe.style.pointerEvents="none";const Xe=requestAnimationFrame(()=>{requestAnimationFrame(()=>{Te.current&&(Te.current.style.pointerEvents="")})});return()=>cancelAnimationFrame(Xe)}de.current=T},[T]);const Me=typeof v=="boolean"?!!v:ye,Oe=b||typeof v=="boolean"?Me?"true":"false":q["aria-pressed"],Re=ge("button",M,ve,oe,ae,ee,Me?"is-selected":null,A?null:"button--no-bg",j?"button--tooltip-only":null,le),tt=`button__icon button__icon--${Y}`,Ye=Array.isArray(m)?m:m!==void 0?[m]:[],Ke=()=>{if(Array.isArray(Z))return Z.map((Qe,Xe)=>{const rt=Ye[Xe];return t.jsxs("span",{className:`button__label-text${rt!==void 0?" button__label-text--has-sub":""}`,children:[Qe,rt!==void 0&&t.jsx("span",{className:"button__sub-label-text caption-1",children:rt})]},Xe)});const Fe=m!==void 0;return t.jsxs("span",{className:`button__label-text${Fe?" button__label-text--has-sub":""}`,children:[Z,p!=null&&t.jsx("span",{className:"button__count",children:p}),Fe&&t.jsx("span",{className:"button__sub-label-text caption-1",children:m})]})},fe=Fe=>{typeof v!="boolean"&&!b&&_e(!1),Fe.currentTarget.blur()},We=Fe=>{T||(typeof q.onMouseLeave=="function"&&q.onMouseLeave(Fe),fe(Fe))},Ee=Fe=>{if(T){I?.(Fe);return}typeof v!="boolean"&&b&&_e(Qe=>!Qe),N?.(Fe)},$e=s.useCallback(()=>{(O||V)&&(te(!0),Se(Te.current?.getBoundingClientRect()??null))},[O,V]),He=s.useCallback(()=>{(O||V)&&(te(!1),Se(null))},[O,V]),Ue={...q};delete Ue.disabled,delete Ue.className,delete Ue.faded,delete Ue.useFaded,delete Ue.loading,delete Ue.onMouseLeave,delete Ue.onPointerEnter,delete Ue.onPointerLeave,delete Ue.onFocus,delete Ue.onBlur,T&&(Object.keys(Ue).forEach(Fe=>{/^on[A-Z]/.test(Fe)&&typeof Ue[Fe]=="function"&&delete Ue[Fe]}),Ue["aria-disabled"]="true");const gt=(typeof O=="string"?O:null)??(typeof E=="string"?E:null)??(typeof C=="string"?C:null)??(typeof $=="string"?$:null)??void 0,dt=typeof C=="string"?C:typeof $=="string"?$:gt,st=(Fe,Qe)=>t.jsx(qe,{icon:Fe,label:Qe??dt,className:tt,imgClassName:"button__icon-img",maskClassName:"button__icon-mask",svgClassName:"button__icon-svg"}),nt=()=>be==="dot"?t.jsxs(t.Fragment,{children:[st(c),ie&&t.jsx("span",{className:`button__label ${z}`,children:Ke()})]}):f==="center"&&c?t.jsxs(t.Fragment,{children:[t.jsxs("span",{className:"button__center-group",children:[t.jsx("span",{className:"button__left",children:st(c)}),ie&&t.jsx("span",{className:`button__label ${z}`,children:Ke()})]}),J&&t.jsx("span",{className:"button__right",children:st(u)})]}):t.jsxs(t.Fragment,{children:[c&&t.jsx("span",{className:"button__left",children:st(c,C??$)}),ie&&t.jsx("span",{className:`button__label ${z}`,children:Ke()}),J&&t.jsx("span",{className:"button__right",children:st(u)})]}),at=!!o&&!T;return t.jsxs(t.Fragment,{children:[t.jsx(at?"a":"button",{...Ue,ref:Te,...at?{href:o,target:i,rel:l??(i==="_blank"?"noreferrer":void 0)}:{type:r,disabled:T&&!I},className:Re,"aria-pressed":Oe,"aria-label":dt,"aria-disabled":T&&(at||I)?!0:void 0,style:Ce,onClick:Ee,onMouseLeave:We,onPointerEnter:Fe=>{$e(),!T&&typeof q.onPointerEnter=="function"&&q.onPointerEnter(Fe)},onPointerLeave:Fe=>{He(),!T&&typeof q.onPointerLeave=="function"&&q.onPointerLeave(Fe)},onFocus:Fe=>{$e(),!T&&typeof q.onFocus=="function"&&q.onFocus(Fe)},onBlur:Fe=>{T||fe(Fe),He(),!T&&typeof q.onBlur=="function"&&q.onBlur(Fe)},children:nt()}),Q&&V?t.jsx(Rn,{anchorRect:we,title:V.title,items:V.items,onClose:ze}):Q&&gt?t.jsx(kn,{anchorRect:we,text:gt,onClose:ze}):null]})}function ct(e,n,a){const r=s.useRef(null);return s.useLayoutEffect(()=>{const o=r.current?.parentElement??null;return n(o,e),()=>a(o)},[e,n,a]),r}const ua={title:"--promo-banner-bg-title",description:"--promo-banner-bg-description"},_r=new WeakMap;function wr(e){if(e)return _r.get(e)}function Dt(e,n){e&&(e.style.setProperty(ua.title,n.title),e.style.setProperty(ua.description,n.description),_r.set(e,n))}function St(e){e&&(e.style.removeProperty(ua.title),e.style.removeProperty(ua.description),_r.delete(e))}const Os={title:"#ffffff",description:"rgba(255, 255, 255, 0.85)",actionVariant:"default"};function Vs(){const e=ct(Os,Dt,St);return t.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-main","aria-hidden":"true"})}const Hs={title:"var(--color-main)",description:"var(--color-gray)",actionVariant:"main"};function zs(){const e=ct(Hs,Dt,St);return t.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-soft","aria-hidden":"true"})}const Ws={title:"#ffffff",description:"rgba(255, 255, 255, 0.85)",actionVariant:"main"};function qs(){const e=ct(Ws,Dt,St);return t.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-sub","aria-hidden":"true"})}const Us={title:"#ffffff",description:"rgba(255, 255, 255, 0.85)",actionVariant:"main"};function Gs(){const e=ct(Us,Dt,St);return t.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-deep","aria-hidden":"true"})}const Ks={title:"var(--color-darkSub)",description:"var(--color-gray)",actionVariant:"main"};function Ys(){const e=ct(Ks,Dt,St);return t.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-soft-sub","aria-hidden":"true"})}const Zs={title:"var(--color-black)",description:"var(--color-darkGray)",actionVariant:"main"};function Xs(){const e=ct(Zs,Dt,St);return t.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-warm","aria-hidden":"true"})}const Js={title:"var(--color-white)",description:"var(--color-lightGray)",actionVariant:"main"};function Qs(){const e=ct(Js,Dt,St);return t.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-dark","aria-hidden":"true"})}const ei={title:"#ffffff",description:"rgba(255, 255, 255, 0.85)",actionVariant:"main"};function ti(){const e=ct(ei,Dt,St);return t.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-radial","aria-hidden":"true"})}const ni={title:"var(--color-darkMain)",description:"var(--color-gray)",actionVariant:"main"};function ai(){const e=ct(ni,Dt,St);return t.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-diagonal","aria-hidden":"true"})}const ri={title:"var(--color-darkSub)",description:"var(--color-gray)",actionVariant:"main"};function oi(){const e=ct(ri,Dt,St);return t.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-dots","aria-hidden":"true"})}const si={title:"var(--color-black)",description:"var(--color-gray)",actionVariant:"main"};function ii(){const e=ct(si,Dt,St);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 li={title:"#ffffff",description:"rgba(255, 255, 255, 0.85)",actionVariant:"main"};function ci(){const e=ct(li,Dt,St);return t.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-success","aria-hidden":"true"})}const ui={title:"#ffffff",description:"rgba(255, 255, 255, 0.85)",actionVariant:"sub"};function di(){const e=ct(ui,Dt,St);return t.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-naver","aria-hidden":"true"})}const pi={title:"#ffffff",description:"rgba(255, 255, 255, 0.85)",actionVariant:"transparent-white"};function mi(){const e=ct(pi,Dt,St);return t.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-instagram","aria-hidden":"true"})}const a2=[{key:"main",label:"\uBA54\uC778 \uADF8\uB77C\uB514\uC5B8\uD2B8",textTone:"light"},{key:"soft",label:"\uC18C\uD504\uD2B8",textTone:"dark"},{key:"sub",label:"\uC11C\uBE0C \uCEEC\uB7EC",textTone:"light"},{key:"deep",label:"\uB525 \uADF8\uB77C\uB514\uC5B8\uD2B8",textTone:"light"},{key:"softSub",label:"\uC18C\uD504\uD2B8 \uC11C\uBE0C",textTone:"dark"},{key:"warm",label:"\uC6DC(\uAC15\uC870)",textTone:"dark"},{key:"dark",label:"\uB2E4\uD06C",textTone:"light"},{key:"radial",label:"\uBC29\uC0AC\uD615 \uADF8\uB77C\uB514\uC5B8\uD2B8",textTone:"light"},{key:"diagonal",label:"\uB300\uAC01\uC120 \uD328\uD134",textTone:"dark"},{key:"dots",label:"\uB3C4\uD2B8 \uD328\uD134",textTone:"dark"},{key:"outline",label:"\uC544\uC6C3\uB77C\uC778",textTone:"dark"},{key:"success",label:"\uC131\uACF5/\uC644\uB8CC",textTone:"light"},{key:"naver",label:"\uB124\uC774\uBC84 \uBE14\uB85C\uADF8 \uC548\uB0B4",textTone:"light"},{key:"instagram",label:"\uC778\uC2A4\uD0C0\uADF8\uB7A8 \uC548\uB0B4",textTone:"light"}],hi={main:Vs,soft:zs,sub:qs,deep:Gs,softSub:Ys,warm:Xs,dark:Qs,radial:ti,diagonal:ai,dots:oi,outline:ii,success:ci,naver:di,instagram:mi};function fi({storageKey:e="fontScale",baseFont:n=20,minScale:a=.8,maxScale:r=1.4,step:o=.1,lineHeightRatio:i=1.4}={}){const l=_=>Math.max(a,Math.min(r,Number(_))),c=_=>{try{const g=localStorage.getItem(_),A=g?Number(g):1;return Number.isFinite(A)?l(A):l(1)}catch{return l(1)}},[u,d]=s.useState(()=>c(e)),[p,m]=s.useState(e);p!==e&&(m(e),d(c(e))),s.useEffect(()=>{try{localStorage.setItem(e,String(u))}catch{}},[e,u]);const h=_=>{d(typeof _=="function"?g=>l(_(g)):l(_))},C=()=>h(_=>+(_+o).toFixed(6)),y=()=>h(_=>+(_-o).toFixed(6)),f=u<r-Number.EPSILON,v=u>a+Number.EPSILON,b=Math.round(n*u),x=Math.round(b*i);return{scale:u,setScale:h,increase:C,decrease:y,canIncrease:f,canDecrease:v,fontSize:b,lineHeight:x}}const Ci=s.createContext(null);function r2(e){return/max-width:\s*7[0-9][0-9]px/.test(e)}const gi=e=>typeof window>"u"||!window.matchMedia?!1:window.matchMedia(e).matches;function o2(e){const n=s.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 ko.useSyncExternalStore(n,()=>gi(e),()=>!1)}function s2(e){const[n,a]=s.useState(gi(e));return s.useEffect(()=>{if(typeof window>"u"||!window.matchMedia)return;const r=window.matchMedia(e),o=l=>a(l.matches),i=r;return i.addEventListener?i.addEventListener("change",o):i.addListener&&i.addListener(o),a(r.matches),()=>{i.removeEventListener?i.removeEventListener("change",o):i.removeListener&&i.removeListener(o)}},[e]),n}const i2=typeof ko.useSyncExternalStore=="function"?o2:s2;function rn(e){const n=s.useContext(Ci),a=i2(e);return n&&typeof n.mobile=="boolean"&&r2(e)?n.mobile:a}function kr(e){const n=s.useRef(e);return s.useEffect(()=>{n.current=e}),n}function bi(e,n){const a=kr(n);s.useEffect(()=>{const r=()=>a.current();try{window.addEventListener(e,r)}catch{}return()=>{try{window.removeEventListener(e,r)}catch{}}},[e,a])}const Ar=" \xB7 ",yi=(()=>{if(typeof document>"u")return"";const e=document.title;return e.includes(Ar)?e.split(Ar).pop()??e:e})(),l2=s.createContext(!1),Pn=[];let vi=null;function c2(e){const n=s.useContext(l2);s.useEffect(()=>{if(n||typeof e!="string"||!e)return;Pn.length===0&&(vi=document.title);const a={text:yi?`${e}${Ar}${yi}`:e};return Pn.push(a),document.title=a.text,()=>{const r=Pn.lastIndexOf(a);r>=0&&Pn.splice(r,1),document.title=Pn.length?Pn[Pn.length-1].text:vi??document.title}},[e,n])}const xi=[{value:"10",label:"10\uAC1C\uC529 \uBCF4\uAE30"},{value:"25",label:"25\uAC1C\uC529 \uBCF4\uAE30"},{value:"50",label:"50\uAC1C\uC529 \uBCF4\uAE30"},{value:"100",label:"100\uAC1C\uC529 \uBCF4\uAE30"}];function u2(e,n,a){const{t:r}=pe.useTranslation(),[o,i]=s.useState(()=>{const y=a?.initialPageSize;return y&&xi.some(f=>f.value===y)?y:"25"}),[l,c]=s.useState(1),[u,d]=s.useState(n);Object.is(u,n)||(d(n),l!==1&&c(1));const p=s.useMemo(()=>xi.map(y=>({...y,label:r("visits.showN",{n:y.value})})),[r]),m=s.useCallback(y=>{i(y),c(1)},[]),h=Math.max(1,Math.ceil(e.length/Number(o)));(l>h||l<1||!Number.isFinite(l))&&c(Math.min(Math.max(1,Number.isFinite(l)?l:1),h));const C=Math.min(Math.max(1,Number.isFinite(l)?l:1),h);return{pageRows:s.useMemo(()=>e.slice((C-1)*Number(o),C*Number(o)),[e,C,o]),pageSizeProps:{options:p,value:o,onChange:m},paginationProps:{page:C,total:h,onChange:c},setPage:c}}function d2(){const[e,n]=s.useState(null),a=s.useCallback(o=>{n(i=>i?.key===o?{key:o,asc:!i.asc}:{key:o,asc:!0})},[]),r=s.useCallback((o,i)=>({label:o,sortDir:e?.key===i?e.asc?"asc":"desc":null,onClick:()=>a(i)}),[e,a]);return{\uC815\uB82C:e,\uCE78:r}}const on="\uC804\uCCB4";Object.fromEntries(Object.entries(v0).map(([e,{nucleus:n}])=>[e,n]));const p2={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"})},m2={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"})},h2={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 f2(e,n){if("place"in n)return p2[n.place](e);const a=m2[n.vowel](e);return n.glide?`${a} \xB7 ${h2[n.glide](e)}`:a}const C2=(e,{defaultValue:n})=>n,_i=(e,n)=>({jamos:e,phonetic:n,tooltip:f2(C2,n)}),mn=(e,n)=>n.map(a=>_i([a],{place:e})),vt=(e,n,a)=>_i([...e],a?{vowel:n,glide:a}:{vowel:n}),Nr={cho:[mn("labial",["\u3142","\u3143","\u314D","\u3141"]),mn("alveolar",["\u3137","\u3138","\u314C","\u3134","\u3139"]),mn("alveolar",["\u3145","\u3146"]),mn("palatal",["\u3148","\u3149","\u314A"]),mn("velar",["\u3131","\u3132","\u314B"]),mn("glottal",["\u314E"])],jung:[[vt("\u3163","frontHigh"),vt("\u315F","frontHigh","w"),vt("\u3162","frontHigh","velar")],[vt("\u3161","backHighUnrounded")],[vt("\u315C","backHighRounded"),vt("\u3160","backHighRounded","j")],[vt("\u3154\u3150","frontMid"),vt("\u3156\u3152","frontMid","j"),vt("\u3159\u315A\u315E","frontMid","w")],[vt("\u3153","backMidUnrounded"),vt("\u3155","backMidUnrounded","j"),vt("\u315D","backMidUnrounded","w")],[vt("\u3157","backMidRounded"),vt("\u315B","backMidRounded","j")],[vt("\u314F","low"),vt("\u3151","low","j"),vt("\u3158","low","w")]],jong:[mn("labial",["\u3142","\u3141"]),mn("alveolar",["\u3137","\u3134","\u3139"]),mn("velar",["\u3131","\u3147"])]},g2=e=>e===b2?[]:Array.from(e),b2="__NO_CODA__",Br=e=>e.map(n=>n.map(({jamos:a,phonetic:r,tooltip:o})=>({v:a.join(""),phonetic:r,tooltip:o}))),wi={cho:Br(Nr.cho),jung:Br(Nr.jung),jong:Br(Nr.jong)};wi.jung.flat().forEach(({v:e})=>{for(const n of g2(e));}),new Set(wi.cho.flat().map(e=>e.v));function y2(e,n=!0){const a=kr(e);s.useEffect(()=>{if(n)return $n(()=>{a.current?.()})},[n,a])}function Ea(){const[e,n]=s.useState(null),a=s.useCallback(i=>n(i.getBoundingClientRect()),[]),r=s.useCallback(()=>n(null),[]),o=s.useCallback(i=>{const l=i.getBoundingClientRect();n(c=>c?null:l)},[]);return{anchorRect:e,isOpen:e!=null,openAt:a,close:r,toggleAt:o}}function ki(e="warning"){const[n,a]=s.useState(""),[r,o]=s.useState(e),[i,l]=s.useState(0),c=s.useCallback((m,h)=>{o(h),a(m),l(C=>C+1)},[]),u=s.useCallback(m=>c(m,"warning"),[c]),d=s.useCallback(m=>c(m,"normal"),[c]),p=s.useCallback(()=>a(""),[]);return{toastMessage:n,toastType:r,toastKey:i,showToast:c,showWarning:u,showNormal:d,clearToast:p}}function da({computeStyle:e,onScroll:n="close",onResize:a="close",ignoreOutsideClickSelector:r}){const[o,i]=s.useState(!1),[l,c]=s.useState({}),u=s.useRef(null),d=s.useRef(null),p=s.useCallback(()=>{u.current&&c(e(u.current.getBoundingClientRect()))},[e]);s.useEffect(()=>{if(!o)return;p();const C=v=>{const b=v.target;r&&b.closest?.(r)||u.current?.contains(b)||d.current?.contains(b)||i(!1)};document.addEventListener("mousedown",C),document.addEventListener("pointerdown",C);const y=v=>{d.current?.contains(v.target)||(n==="reposition"?p():n==="close"&&i(!1))};n!=="ignore"&&window.addEventListener("scroll",y,!0);const f=()=>{a==="reposition"?p():a==="close"&&i(!1)};return a!=="ignore"&&window.addEventListener("resize",f),()=>{document.removeEventListener("mousedown",C),document.removeEventListener("pointerdown",C),n!=="ignore"&&window.removeEventListener("scroll",y,!0),a!=="ignore"&&window.removeEventListener("resize",f)}},[o,p,n,a,r]),s.useEffect(()=>{if(o)return $n(()=>i(!1))},[o]);const m=s.useCallback(()=>i(C=>!C),[]),h=s.useCallback(()=>i(!1),[]);return{open:o,setOpen:i,toggle:m,close:h,style:l,triggerRef:u,menuRef:d}}function v2(e,{mode:n="playback",autoStart:a=!1,onPlaySpeaker:r,onComplete:o,playMs:i=1100,feedbackMs:l=1500}={}){const[c,u]=s.useState([]),[d,p]=s.useState(0),[m,h]=s.useState("idle"),[C,y]=s.useState(null),[f,v]=s.useState([]),[b,x]=s.useState(null),[_,g]=s.useState(0),A=s.useRef(0),w=s.useCallback(P=>{A.current=typeof P=="function"?P(A.current):P,g(A.current)},[]),D=s.useRef(r),B=s.useRef(o);s.useEffect(()=>{D.current=r,B.current=o},[r,o]);const k=s.useRef([]),N=()=>{k.current.forEach(clearTimeout),k.current=[]},I=(P,M)=>{k.current.push(setTimeout(M,P))};s.useEffect(()=>()=>N(),[]);const O=c[d]?.id??null,E=s.useRef(null),V=s.useCallback(()=>{N(),h("playing"),v([]),x(null),w(0);let P=0;e.forEach((M,L)=>{I(P,()=>{p(L),y(M.id),D.current?.(M)}),I(P+1e3,()=>{y(null),v(z=>[...z,M.id])}),P+=1300}),I(P,()=>{h("done"),B.current?.({score:0,total:e.length})})},[e,w]),j=s.useCallback((P,M)=>{if(M>=P.length){h("done"),B.current?.({score:A.current,total:P.length});return}E.current=null,p(M),x(null),h("playing"),y(P[M].id),D.current?.(P[M]),I(i,()=>{y(null),h("waiting")})},[i]),Y=s.useCallback(()=>{N();const P=la(e);u(P),w(0),v([]),j(P,0)},[e,j,w]),R=s.useCallback(()=>{n==="playback"?(u(e),V()):Y()},[n,e,V,Y]),H=s.useCallback(()=>{N(),h("idle"),y(null),v([]),x(null),p(0),w(0),u([])},[w]),W=e.map(P=>P.id).join("|");s.useEffect(()=>(a?R():H(),()=>N()),[n,W,a]);const le=s.useCallback(P=>{m!=="waiting"||n==="playback"||E.current===d||(E.current=d,x(P),P===c[d]?.id&&w(M=>M+1),n==="exam"?(h("playing"),I(400,()=>j(c,d+1))):(h("feedback"),I(l,()=>j(c,d+1))))},[m,n,c,d,j,l,w]),q=n==="playback"?e.length:c.length;return{bind:{activeSpeakerId:C,playedIds:f,selectedId:b,answerId:O,showFeedback:m==="feedback",clickable:m==="waiting",onSelectSpeaker:le},index:d,total:q,score:_,phase:m,done:m==="done",start:R,reset:H}}function x2({title:e,description:n,actionLabel:a,onAction:r,bg:o,color:i,size:l="medium",actionVariant:c,titleColor:u,descriptionColor:d,className:p=""}){const m=o??i??"main",h=s.useRef(null),[C,y]=s.useState("main"),f=rn("(max-width: 767px)"),v=s.useRef({title:!1,description:!1});s.useLayoutEffect(()=>{const _=h.current;if(!_)return;const g=wr(_),A=(w,D,B)=>{if(B!==void 0)_.style.setProperty(D,B),v.current[w]=!0;else if(v.current[w]){const k=g?.[w];k?_.style.setProperty(D,k):_.style.removeProperty(D),v.current[w]=!1}};A("title","--promo-banner-bg-title",u),A("description","--promo-banner-bg-description",d)},[u,d,m]),s.useLayoutEffect(()=>{const _=h.current;if(!_)return;const g=wr(_);y(g?.actionVariant??"main")},[m]);const b=ge("promo-banner",`promo-banner--${l}`,p),x=hi[m];return t.jsxs("div",{ref:h,className:b,role:"note",children:[t.jsx(x,{}),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??C,shape:"pill",useBorder:!0,onClick:r,ariaLabel:a,...f?{type:"dot",icon:"arrow-right"}:{rightIcon:"arrow-right",label:a,minWidth:140}})]})}function _2({children:e,interval:n=5e3,dotTone:a,className:r="","aria-label":o}){const{t:i}=pe.useTranslation(),l=o??i("topBanner.ariaLabel","\uBC30\uB108"),c=s.Children.toArray(e),u=c.length,[d,p]=s.useState(0),[m,h]=s.useState(!1),C=u>0?d%u:0;return s.useEffect(()=>{if(u<2||n<=0||m)return;const y=window.setInterval(()=>p(f=>(f+1)%u),n);return()=>window.clearInterval(y)},[u,n,m]),u===0?null:t.jsxs("section",{className:ge("top-banner",r),"aria-label":l,"aria-roledescription":"carousel",onMouseEnter:()=>h(!0),onMouseLeave:()=>h(!1),onFocus:()=>h(!0),onBlur:()=>h(!1),children:[t.jsx("div",{className:"top-banner__viewport",children:t.jsx("div",{className:"top-banner__track",style:{transform:`translateX(-${C*100}%)`},children:c.map((y,f)=>t.jsx("div",{className:"top-banner__slide","aria-hidden":f!==C,...f!==C?{inert:!0}:{},children:y},f))})}),u>1&&t.jsx("div",{className:`top-banner__dots${(a?.[C]??"light")==="dark"?" top-banner__dots--dark":""}`,children:c.map((y,f)=>t.jsx("button",{type:"button",className:`top-banner__dot${f===C?" top-banner__dot--active":""}`,"aria-label":i("topBanner.dotAriaLabel",{count:u,index:f+1,defaultValue:`${u}\uAC1C \uC911 ${f+1}\uBC88\uC9F8 \uBC30\uB108`}),"aria-current":f===C,onClick:()=>p(f)},f))})]})}function w2({title:e,body:n,open:a=!1,onToggle:r,avatar:o,titleClassName:i="body-2",bodyClassName:l="body-2",className:c=""}){const{t:u}=pe.useTranslation();return t.jsxs("div",{className:`accordion-item ${a?"accordion-item--open":""} ${c}`.trim(),role:"listitem",children:[t.jsxs("div",{className:"accordion-item__header",role:"button",tabIndex:0,"aria-expanded":a,"data-accordion-header":!0,onClick:r,onKeyDown:d=>{if(d.key==="Enter"||d.key===" ")d.preventDefault(),r?.();else if(d.key==="ArrowDown"||d.key==="ArrowUp"){d.preventDefault();const p=d.currentTarget.closest('[role="list"]');if(!p)return;const m=Array.from(p.querySelectorAll("[data-accordion-header]")),h=m.indexOf(d.currentTarget);(d.key==="ArrowDown"?m[h+1]:m[h-1])?.focus()}},children:[o&&t.jsx("div",{className:"accordion-item__avatar",children:o}),t.jsx("div",{className:`accordion-item__title ${i}`,children:e}),t.jsx("div",{className:"accordion-item__chevron",children:t.jsx(qe,{icon:a?"chevron-up":"chevron-down",label:a?u("accordion.collapse","\uC811\uAE30"):u("accordion.expand","\uD3BC\uCE58\uAE30"),className:"accordion-item__chevron-icon",imgClassName:"accordion-item__chevron-image"})})]}),a&&t.jsx("div",{className:`accordion-item__body ${l}`,children:typeof n=="string"?t.jsx("p",{children:n}):n})]})}function k2({items:e=[],defaultOpenIndex:n=0,size:a=72,className:r="",bodyClassName:o}){const[i,l]=s.useState(n);return t.jsx("div",{className:`accordion-group accordion-group--s${a} ${r}`.trim(),role:"list",children:e.map((c,u)=>t.jsx(w2,{title:c.title,body:c.body,avatar:c.avatar,open:u===i,onToggle:()=>l(u===i?-1:u),bodyClassName:o},u))})}function A2(){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 N2(){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 B2(){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 ut(e){const{t:n}=pe.useTranslation(),{type:a="bar",size:r,className:o="","aria-label":i,"aria-hidden":l}=e;if(a==="dot"){const{icon:A,number:w,position:D="top-right",onClick:B,animate:k=!1}=e,N=A??"check",I=w!==void 0?"number":N,O=typeof r=="number"?r:32,E=ge("circle-badge",`circle-badge--${I}`,`circle-badge--${D}`,`circle-badge--${O}`,k?"circle-badge--animate":"",B?"circle-badge--clickable":"",o),V=w!==void 0?n("badge.nthSelected",{n:w,defaultValue:"{{n}}\uBC88\uC9F8 \uC120\uD0DD"}):{check:n("badge.selected","\uC120\uD0DD\uB428"),remove:n("badge.remove","\uC81C\uAC70"),minus:n("badge.exclude","\uC81C\uC678")}[N];return t.jsxs("span",{className:E,onClick:B,onKeyDown:B?j=>{j.key!=="Enter"&&j.key!==" "||(j.preventDefault(),j.currentTarget.click())}:void 0,"aria-label":l?void 0:i??V,"aria-hidden":l||void 0,role:B?"button":l?void 0:"img",tabIndex:B?0:void 0,children:[w!==void 0&&w,w===void 0&&N==="check"&&t.jsx(A2,{}),w===void 0&&N==="remove"&&t.jsx(N2,{}),w===void 0&&N==="minus"&&t.jsx(B2,{})]})}const{label:c,children:u,variant:d="default",fill:p="filled",minWidth:m,iconLeft:h,iconRight:C,color:y}=e,f=typeof r=="number"?"medium":r??"medium",v={small:"caption-2b",medium:"body-3b",large:"body-2b"}[f]??"body-2b",b={small:12,medium:14,large:16}[f]??14,x=ge("badge",`badge--${d}`,`badge--${f}`,p!=="filled"?`badge--${p}`:"",v,o),_=y?.startsWith("--")?`var(${y})`:y,g=m!==void 0||_?{...m!==void 0?{minWidth:typeof m=="number"?`${m}px`:m}:{},..._?{"--badge-color":_}:{}}:void 0;return t.jsxs("span",{className:x,style:g,"aria-label":l?void 0:i,role:i&&!l?"img":void 0,"aria-hidden":l||void 0,children:[h&&t.jsx(qe,{icon:h,size:b,className:"badge__icon"}),c??u,C&&t.jsx(qe,{icon:C,size:b,className:"badge__icon"})]})}function Ma({columns:e=[],onClose:n,className:a="",size:r="medium"}){const{t:o}=pe.useTranslation(),i=r==="small"?40:48,[l,c]=s.useState([]),u=s.useMemo(()=>{const v=[{title:null,columns:e}];let b=e;for(const x of l){const _=b?.[x.ci]?.items?.[x.ii];if(!_||!Array.isArray(_.children)||!_.children.length)break;b=[{title:null,items:_.children}],v.push({title:_.label||null,columns:b})}return v},[e,l]),d=u[u.length-1],p=u.length-1,m=s.useCallback(()=>c(v=>v.slice(0,Math.max(0,Math.min(v.length,p)-1))),[p]),h=s.useRef(null),C=s.useRef(null),y=u.length;s.useEffect(()=>{C.current||(C.current=document.activeElement);let v=0,b=0;const x=()=>{const _=h.current?.querySelector("button:not([disabled])");if(_&&_.offsetParent){_.focus({preventScroll:!0});return}b++<20&&(v=requestAnimationFrame(x))};return v=requestAnimationFrame(x),()=>cancelAnimationFrame(v)},[y]),s.useEffect(()=>()=>{C.current?.focus?.({preventScroll:!0})},[]);const f=s.useCallback((v,b,x)=>{if(v){if(Array.isArray(v.children)&&v.children.length){c(_=>[..._.slice(0,p),{ci:b,ii:x}]);return}try{typeof v.onClick=="function"&&v.onClick()}catch{}try{v&&v.closeOnSelect&&typeof n=="function"&&n()}catch{}}},[n,p]);return t.jsxs("div",{className:`tooltip-menu tooltip-menu--${r} ${a}`,children:[(u.length>1||d.title)&&t.jsxs("div",{className:"tooltip-menu__header",children:[u.length>1?t.jsx(ce,{htmlType:"button",size:i,type:"dot",icon:"chevron-left",ariaLabel:o("common.back","\uB4A4\uB85C"),onClick:m,variant:"transparent-gray",useBorder:!1}):null,t.jsx("div",{className:"tooltip-menu__title button-1",children:d.title})]}),t.jsx("div",{className:"tooltip-menu__columns",ref:h,children:d.columns&&d.columns.map((v,b)=>t.jsxs("div",{className:"tooltip-menu__column",children:[v.title?t.jsx("div",{className:"tooltip-menu__column-title body-3",children:v.title}):null,t.jsx("div",{className:"tooltip-menu__items",children:(v.items||[]).map((x,_)=>t.jsx(ce,{htmlType:"button",className:"tooltip-menu__item",size:i,type:x.label?"bar":"dot",icon:x.selected?"check":x.icon||"none",rightIcon:Array.isArray(x.children)&&x.children.length?"chevron-right":x.badgeCount?t.jsx(ut,{type:"dot",position:"inline",number:Math.min(x.badgeCount,99),size:24,"aria-hidden":!0}):void 0,label:x.label,ariaLabel:x.label&&x.badgeCount&&x.badgeCount>0?o("nav.badgeLabel",{label:x.label,count:x.badgeCount,defaultValue:"{{label}}, {{count}}\uAC1C"}):x.label,onClick:()=>f(x,b,_),selected:x.selected,disabled:x.disabled,showTooltipInfo:x.tooltip||!1,useBorder:!1,align:"left"},_))})]},b))})]})}const D2=52,Ai=10,Ni=e=>e&&e>0?e:0;function Bi({items:e=[],activeKey:n,onChange:a,appMode:r,onAppModeChange:o,moreItems:i=[]}){const{t:l}=pe.useTranslation(),c=r==="manager"?"malgwi":"manager",u=r==="manager"?"arrow-left":"arrow-right",d=r==="manager"?l("nav.modeLabelMalgwi","\uB9D0\uADC0"):l("nav.modeLabelManager","\uB9D0\uADC0 \uB9E4\uB2C8\uC800"),p=s.useRef(null),[m,h]=s.useState(0),C=e.length;s.useEffect(()=>{const R=p.current;if(!R||(h(R.clientWidth),typeof ResizeObserver>"u"))return;const H=new ResizeObserver(W=>h(W[0].contentRect.width));return H.observe(R),()=>H.disconnect()},[]);const y=m>0?Math.floor((m+Ai)/(D2+Ai)):C,f=m>0&&y<C,v=f?y:C,b=e.slice(0,v),x=e.slice(v),_=f||i.length>0,g=s.useCallback(R=>({position:"fixed",bottom:window.innerHeight-R.top+8,right:window.innerWidth-R.right,zIndex:1e4}),[]),A=s.useId(),{open:w,toggle:D,close:B,style:k,triggerRef:N,menuRef:I}=da({computeStyle:g,onScroll:"ignore",onResize:"ignore"}),O=s.useCallback((R,H)=>H>0?l("nav.badgeLabel",{label:R,count:H,defaultValue:"{{label}}, {{count}}\uAC1C"}):R,[l]),E=s.useCallback(()=>o?.(c),[o,c]),V=s.useMemo(()=>x.find(R=>R.key===n)??i.find(R=>R.selected||R.key&&R.key===n),[x,n,i]),j=s.useMemo(()=>[{items:[...x.map(R=>({label:R.label,icon:R.icon,badgeCount:R.badgeCount,selected:R.key===n,closeOnSelect:!0,disabled:R.state==="disabled",onClick:()=>{R.state!=="disabled"&&(R.key&&a&&a(R.key),B())}})),...i.map(R=>({label:R.label,icon:R.icon,badgeCount:R.badgeCount,selected:R.selected??(!!R.key&&R.key===n),closeOnSelect:!0,onClick:()=>{R.onClick?.(),B()}}))]}],[x,i,n,a,B]),Y=[...x,...i].reduce((R,H)=>R+Ni(H.badgeCount),0);return t.jsxs("nav",{className:"bottom-nav","aria-label":l("nav.bottomNav","\uD558\uB2E8 \uB124\uBE44\uAC8C\uC774\uC158"),children:[o&&t.jsxs(t.Fragment,{children:[t.jsx("div",{className:"bottom-nav__left",children:t.jsx(ce,{htmlType:"button",size:52,type:"dot",icon:u,ariaLabel:d,className:"bottom-nav-item",onClick:E})}),t.jsx("div",{className:"bottom-nav__divider","aria-hidden":"true"})]}),t.jsx("div",{className:"bottom-nav__items",ref:p,children:b.map((R,H)=>{const W=Ni(R.badgeCount);return t.jsxs("span",{className:"bottom-nav__slot",children:[t.jsx(ce,{htmlType:"button",size:52,type:"dot",icon:R.icon,ariaLabel:O(R.label,W),selected:R.key===n,disabled:R.state==="disabled",className:"bottom-nav-item",onClick:()=>R.key&&a?.(R.key)}),W>0&&t.jsx("span",{"aria-hidden":"true",children:t.jsx(ut,{type:"dot",position:"top-right",number:Math.min(W,99),size:24})})]},R.key??`__slot-${H}`)})}),_&&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:N,className:"bottom-nav__slot",children:[t.jsx(ce,{htmlType:"button",size:52,type:"dot",icon:V?.icon??"ellipsis",ariaLabel:O(V?.label??l("nav.more","\uB354\uBCF4\uAE30"),Y),selected:!!V,className:"bottom-nav-item",onClick:D,"aria-expanded":w,"aria-controls":w?A:void 0}),Y>0&&t.jsx("span",{"aria-hidden":"true",children:t.jsx(ut,{type:"dot",position:"top-right",number:Math.min(Y,99),size:24})}),w&&Ut.createPortal(t.jsx("div",{id:A,role:"group","aria-label":l("nav.moreMenu","\uB354\uBCF4\uAE30 \uBA54\uB274"),className:"tooltip-content",style:k,ref:I,children:t.jsx(Ma,{columns:j,onClose:B})}),document.body)]})})]})]})}function Di(e,n,a){return a&&a>0?e("nav.badgeLabel",{label:n,count:a,defaultValue:"{{label}}, {{count}}\uAC1C"}):n}function S2(e){const{t:n}=pe.useTranslation(),{activeKey:a,unreadCount:r,onDebug:o,onNotification:i,onSetting:l,onHelp:c,onAccount:u}=e||{},d="default";return o||i||l||c||u?t.jsxs("div",{className:"side-nav__footer",children:[o&&t.jsx(ce,{htmlType:"button",size:48,showTooltipInfo:!0,type:"dot",shape:"pill",variant:d,icon:"terminal",ariaLabel:n("nav.debug","\uB514\uBC84\uADF8"),onClick:o,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:d,icon:"bell",ariaLabel:Di(n,n("nav.notifications","\uC54C\uB9BC"),r),onClick:i,selected:a==="notifications"}),!!r&&r>0&&t.jsx(ut,{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:d,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:d,icon:"message-circle-question-mark",ariaLabel:n("nav.help","\uB3C4\uC6C0\uB9D0"),onClick:c,selected:a==="help"}),u&&t.jsx(ce,{htmlType:"button",size:48,showTooltipInfo:!0,type:"dot",shape:"pill",variant:d,icon:"user-round",ariaLabel:n("nav.account","\uACC4\uC815"),onClick:u,selected:a==="account"})]}):null}function Si(e){const{t:n}=pe.useTranslation(),{item:a,itemKey:r,label:o,icon:i,active:l,onClick:c,style:u,state:d,labelStyle:p}=e||{},m=a?.key??r??"",h=a?.label??o??"",C=a?.icon??i??"",y=a?.badge??0,f=t.jsx("span",{className:"side-nav__icon-wrap",children:t.jsx(qe,{icon:C,label:typeof h=="string"?h:void 0,className:"side-nav__icon",maskClassName:"side-nav__icon-image",imgClassName:void 0,svgClassName:void 0})}),v=d==="disabled",b=`side-nav__item ${l?"active":""} ${d||""} ${v?"disabled":""} ${a?.child?"side-nav__item--child":""}`,x=s.useCallback(_=>{if(v)return;const g=_.detail>0;if(g)try{_.currentTarget.blur()}catch{}c?.(m,_.currentTarget,g)},[v,m,c]);return t.jsxs("button",{type:"button",className:b,onClick:x,"aria-label":typeof h=="string"?Di(n,h,y):void 0,"aria-current":l?"page":void 0,style:u,"aria-disabled":v,children:[f,t.jsx("span",{className:"side-nav__label button-1 f",style:p,children:h}),y>0&&t.jsx(ut,{type:"dot",position:"inline",number:Math.min(y,99),size:24,"aria-hidden":!0}),d==="loading"&&t.jsx("span",{className:"side-nav__spinner",role:"img","aria-label":n("loader.loading","\uBD88\uB7EC\uC624\uB294 \uC911\u2026")})]})}function ji(e){const{t:n}=pe.useTranslation(),{items:a=[],activeKey:r,onChange:o,unreadCount:i,onDebug:l,onNotification:c,onAccount:u,onSetting:d,onHelp:p,appMode:m,onAppModeChange:h}=e||{},C=m==="manager",y=s.useCallback(()=>h?.(C?"malgwi":"manager"),[h,C]);return t.jsxs("nav",{"aria-label":n("nav.mainMenu","\uBA54\uC778 \uBA54\uB274"),className:"side-nav__menu",children:[t.jsxs("div",{className:"side-nav__menu-list",children:[(a||[]).filter(f=>!f.section&&(f.key||f.label)).map((f,v)=>t.jsxs(s.Fragment,{children:[f.divider&&t.jsx("div",{className:"side-nav__separator"}),t.jsx(Si,{item:f,active:f.key===r,state:f.disabled?"disabled":void 0,onClick:(b,x,_)=>{if(f.disabled)return;if(f.href){if(window.open(f.href,"_blank","noopener,noreferrer"),_)try{x?.blur()}catch{}return}o?.(f.key);try{const A=document.querySelector(".content-area");A?A.scrollTop=0:window.scrollTo({top:0})}catch{}if(!_)return;try{x?.blur()}catch{}if(typeof window<"u"&&window.matchMedia){if(!window.matchMedia("(min-width: 768px) and (max-width: 1023px)").matches)return}else return;const g=document.querySelector(".header");if(g&&!(typeof g.matches=="function"&&g.matches(":hover"))){g.classList.add("header--force-collapsed");const A=()=>{g.classList.remove("header--force-collapsed"),g.removeEventListener("mouseenter",A)};g.addEventListener("mouseenter",A)}}})]},f.key??`side-nav__item-${v}`)),h&&t.jsx("div",{className:"side-nav__separator side-nav__separator--short"}),h&&t.jsx(Si,{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:y})]}),t.jsx(S2,{activeKey:r,unreadCount:i,onDebug:l,onNotification:c,onAccount:u,onSetting:d,onHelp:p})]})}var Dr='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',Sr='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',j2='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 Ti({appMode:e}){const{t:n}=pe.useTranslation(),a=e==="manager",r=a?Sr:Dr,o=j2,i=rn("(min-width: 768px) and (max-width: 1023px)");return t.jsx("div",{className:"brand-identity__root","aria-label":n("header.biArea","BI \uC601\uC5ED"),children:i?t.jsx("img",{src:o,alt:n("header.biSymbol","BI \uC2EC\uBCFC"),className:"brand-identity__image"}):t.jsx("img",{src:r,alt:a?n("header.logoManager","\uB9D0\uADC0\uB9E4\uB2C8\uC800 \uB85C\uACE0"):n("header.logoMalgwi","\uB9D0\uADC0 \uB85C\uACE0"),className:"brand-identity__image"})})}function Ei({activeKey:e,onChange:n,items:a,malgwiItems:r,managerItems:o,unreadCount:i,onDebug:l,onNotification:c,onAccount:u,onSetting:d,onHelp:p,appMode:m,onAppModeChange:h}){const{t:C}=pe.useTranslation(),y=rn("(max-width: 767px)"),f=s.useMemo(()=>(a??[]).filter(I=>!I.section&&(I.key||I.label)).map(I=>({key:I.key,label:typeof I.label=="string"?I.label:void 0,icon:I.icon,state:I.disabled?"disabled":void 0,badgeCount:I.badge})),[a]),v=s.useCallback(I=>{const O=a?.find(E=>E.key===I);if(!O?.disabled){if(O?.href){window.open(O.href,"_blank","noopener,noreferrer");return}n?.(I)}},[a,n]),b=s.useMemo(()=>{const I=[];return l&&I.push({key:"debug",icon:"terminal",label:C("nav.debug","\uB514\uBC84\uADF8"),onClick:l}),c&&I.push({key:"notifications",icon:"bell",label:C("nav.notifications","\uC54C\uB9BC"),badgeCount:i,onClick:c}),d&&I.push({key:"settings",icon:"settings",label:C("nav.settings","\uC124\uC815"),onClick:d}),p&&I.push({key:"help",icon:"message-circle-question-mark",label:C("nav.help","\uB3C4\uC6C0\uB9D0"),onClick:p}),u&&I.push({key:"account",icon:"user-round",label:C("nav.account","\uACC4\uC815"),onClick:u}),I},[C,l,c,d,p,u,i]),x=s.useCallback(I=>({position:"fixed",top:I.bottom+8,right:Math.max(8,window.innerWidth-I.right),zIndex:1e4}),[]),_=s.useId(),{open:g,toggle:A,close:w,style:D,triggerRef:B,menuRef:k}=da({computeStyle:x,onScroll:"ignore",onResize:"ignore"}),N=s.useMemo(()=>[{items:b.map(I=>({label:I.label,icon:I.icon,badgeCount:I.badgeCount,selected:I.selected??(!!I.key&&I.key===e),closeOnSelect:!0,onClick:()=>{I.onClick?.(),w()}}))}],[b,e,w]);return t.jsxs("aside",{className:`header${m==="manager"?" header--manager":""}`,children:[t.jsxs("div",{className:"header__bi",children:[t.jsx(Ti,{appMode:m}),t.jsxs("div",{className:"header__menu-button",ref:B,children:[t.jsx(ce,{htmlType:"button",size:48,type:"dot",shape:"pill",variant:"default",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:A,"aria-expanded":g,"aria-controls":g?_:void 0}),!!c&&!!i&&i>0&&t.jsx(ut,{type:"dot",number:Math.min(i,99),size:24,"aria-hidden":!0}),g&&Ut.createPortal(t.jsx("div",{id:_,role:"group","aria-label":C("header.utilMenu","\uC720\uD2F8\uB9AC\uD2F0 \uBA54\uB274"),className:"tooltip-content",style:D,ref:k,children:t.jsx(Ma,{columns:N,onClose:w})}),document.body)]})]}),t.jsx(ji,{items:a,activeKey:e??void 0,onChange:n,unreadCount:i,onDebug:l,onNotification:c,onAccount:u,onSetting:d,onHelp:p,appMode:m,onAppModeChange:h}),y&&t.jsx(Bi,{items:f,activeKey:e??void 0,onChange:v,appMode:m,onAppModeChange:h})]})}const T2=Ei;var E2={statusFilter:"\uC0C1\uD0DC \uD544\uD130",pageSizeSelect:"\uD398\uC774\uC9C0\uB2F9 \uD45C\uC2DC \uAC1C\uC218",selectedCount:"{{count}}\uAC1C \uC120\uD0DD\uB428",cancel:"\uCDE8\uC18C",info:"\uC124\uBA85",errorState:{message:"\uBD88\uB7EC\uC624\uC9C0 \uBABB\uD588\uC2B5\uB2C8\uB2E4.",retry:"\uB2E4\uC2DC \uC2DC\uB3C4"},save:"\uC800\uC7A5",confirm:"\uD655\uC778",close:"\uB2EB\uAE30",back:"\uB4A4\uB85C",emptyTrainingName:"\uD6C8\uB828 \uC774\uB984\uC774 \uBE44\uC5B4 \uC788\uC2B5\uB2C8\uB2E4.",remove:"\uC81C\uAC70",image:"\uC774\uBBF8\uC9C0",delete:"\uC0AD\uC81C",reset:"\uCD08\uAE30\uD654",update:"\uC5C5\uB370\uC774\uD2B8",download:"\uB2E4\uC6B4\uB85C\uB4DC",search:"\uAC80\uC0C9",empty:"\uB370\uC774\uD130\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4.",yes:"\uC608",no:"\uC544\uB2C8\uC624",all:"\uC804\uCCB4",none:"\uC5C6\uC74C",days:"{{count}}\uC77C",loadMore:"\uB354\uBCF4\uAE30",more:"\uB354\uBCF4\uAE30",moreFor:"{{name}} \uB354\uBCF4\uAE30",retry:"\uB2E4\uC2DC \uC2DC\uB3C4",prevPage:"\uC774\uC804 \uD398\uC774\uC9C0",nextPage:"\uB2E4\uC74C \uD398\uC774\uC9C0",play:"\uC7AC\uC0DD",pause:"\uBA48\uCDA4",playPause:"\uC7AC\uC0DD / \uBA48\uCDA4",replay:"\uB2E4\uC2DC\uB4E3\uAE30",subscription:"\uC774\uC6A9\uAD8C",done:"\uC644\uB8CC",failed:"\uC2E4\uD328",continue:"\uACC4\uC18D",notification:"\uC54C\uB9BC",emptyList:"\uD56D\uBAA9\uC774 \uC5C6\uC2B5\uB2C8\uB2E4.",menu:"\uBA54\uB274",resetSelection:"\uC120\uD0DD \uCD08\uAE30\uD654",pageSizeLabel:"{{n}}\uAC1C\uC529 \uBCF4\uAE30",totalCountPrefix:"\uCD1D ",totalCountSuffix:"\uAC1C",expand:"\uD3BC\uCE58\uAE30",collapse:"\uC811\uAE30",popup:"\uD31D\uC5C5",codeBlock:"\uCF54\uB4DC \uBE14\uB85D",totalPrefix:"\uCD1D ",copyCode:"\uCF54\uB4DC \uBCF5\uC0AC",copied:"\uBCF5\uC0AC\uB428",col:{problem:"\uBB38\uC81C"},phonetics:{place:{labial:"\uC591\uC21C\uC74C",alveolar:"\uCE58\uC870\uC74C",palatal:"\uACBD\uAD6C\uAC1C\uC74C",velar:"\uC5F0\uAD6C\uAC1C\uC74C",glottal:"\uC131\uBB38\uC74C"},vowel:{frontHigh:"\uC804\uC124 \uACE0\uBAA8\uC74C",backHighUnrounded:"\uD6C4\uC124 \uACE0\uBAA8\uC74C \uD3C9\uC21C",backHighRounded:"\uD6C4\uC124 \uACE0\uBAA8\uC74C \uC6D0\uC21C",frontMid:"\uC804\uC124 \uC911\uBAA8\uC74C",backMidUnrounded:"\uD6C4\uC124 \uC911\uBAA8\uC74C \uD3C9\uC21C",backMidRounded:"\uD6C4\uC124 \uC911\uBAA8\uC74C \uC6D0\uC21C",low:"\uC800\uBAA8\uC74C"},glide:{j:"j\uD65C\uC74C",w:"w\uD65C\uC74C",velar:"\u0270\uD65C\uC74C"}},unknownError:"\uC54C \uC218 \uC5C6\uB294 \uC624\uB958",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."},M2={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"},L2={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"}},$2={clearAriaLabel:"\uAC80\uC0C9\uC5B4 \uC9C0\uC6B0\uAE30"},R2={starLabel:"{{n}}\uBC88\uC9F8 \uBCC4 \uC120\uD0DD",valueLabel:"{{max}}\uC810 \uB9CC\uC810\uC5D0 {{value}}\uC810",groupLabel:"\uBCC4\uC810"},P2={selected:"\uC120\uD0DD\uB428"},I2={placeholder:"\uC120\uD0DD"},F2={collapse:"\uC811\uAE30",expand:"\uD3BC\uCE58\uAE30"},O2={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"},V2={mainMenu:"\uBA54\uC778 \uBA54\uB274",bottomNav:"\uD558\uB2E8 \uB124\uBE44\uAC8C\uC774\uC158",goToManager:"\uB9D0\uADC0\uB9E4\uB2C8\uC800\uB85C \uC774\uB3D9",goToMalgwi:"\uB9D0\uADC0\uB85C \uC774\uB3D9",modeLabelManager:"\uB9D0\uADC0 \uB9E4\uB2C8\uC800",modeLabelMalgwi:"\uB9D0\uADC0",training:"\uD6C8\uB828",settings:"\uC124\uC815",notifications:"\uC54C\uB9BC",account:"\uACC4\uC815",help:"\uB3C4\uC6C0\uB9D0",debug:"\uB514\uBC84\uADF8",coupons:"\uCFE0\uD3F0",topic:"\uC8FC\uC81C\uBCC4 \uB4E3\uAE30",trainingType:"\uD6C8\uB828\uBCC4 \uB4E3\uAE30",wordPairs:"\uB300\uB9BD\uC30D \uCC3E\uAE30",wordSearch:"\uB2E8\uC5B4 \uCC3E\uAE30",wordTable:"\uB2E8\uC5B4\uD45C \uB9CC\uB4E4\uAE30",company:"\uC5C5\uCCB4\uC815\uBCF4",more:"\uB354\uBCF4\uAE30",moreMenu:"\uB354\uBCF4\uAE30 \uBA54\uB274",badgeLabel:"{{label}}, {{count}}\uAC1C"},H2={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."}}},z2={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."}},W2={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"}}},q2={guide:{faq:{title:"\uC790\uC8FC \uBB3B\uB294 \uC9C8\uBB38",desc:"FAQ \uBAA8\uC544\uBCF4\uAE30"}}},U2={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.",selectConfirm:"\uBB38\uC81C\uB97C \uBCF4\uACE0 \uD574\uB2F9\uD558\uB294 \uB0B4\uC6A9\uC744 \uC120\uD0DD\uD558\uC138\uC694.",orderListDefault:"\uBB38\uC7A5\uC744 \uB4E4\uC740 \uC21C\uC11C\uB300\uB85C \uBC30\uCE58\uD558\uC138\uC694.",result:{eyebrow:"\uD6C8\uB828 \uC644\uB8CC",title:"\uD6C8\uB828\uC744 \uBAA8\uB450 \uB9C8\uCCE4\uC2B5\uB2C8\uB2E4.",scoreAria:"{{correct}} / {{total}} \uBB38\uD56D",elapsed:"\uC18C\uC694 \uC2DC\uAC04",summary:"{{correct}}\uAC1C\uC758 \uBB38\uD56D\uC744 \uC798 \uB4E4\uC5C8\uC2B5\uB2C8\uB2E4.",tableAriaLabel:"\uBB38\uD56D\uBCC4 \uD310\uC815",colJudge:"\uD310\uC815",colAnswerSelected:"\uC815\uB2F5 \xB7 \uC120\uD0DD",colAnswer:"\uC815\uB2F5",colSelected:"\uC120\uD0DD",heardWell:"\uC798 \uB4E4\uC5C8\uC5B4\uC694",notHeard:"\uBABB \uB4E4\uC5C8\uC5B4\uC694",notJudged:"\uBBF8\uD310\uC815",replay:"\uB2E4\uC2DC\uD558\uAE30",done:"\uC644\uB8CC",viewResult:"\uACB0\uACFC \uD655\uC778",noContent:"(\uB0B4\uC6A9\uC5C6\uC74C)"},up:"\uC704\uB85C",down:"\uC544\uB798\uB85C",prev:"\uC774\uC804",listenLabel:"\uBB38\uC7A5 \uB4E3\uAE30",sourcePlay:"\uC18C\uC2A4 {{n}} \uC7AC\uC0DD",listen:"\uB4E3\uAE30",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"}},G2={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"},K2={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"}},Y2={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"}}}},Z2={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"}},X2={unitVisit:"\uAC74",periodAll:"\uC804\uCCB4",showN:"{{n}}\uAC1C\uC529"},J2={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"}},Q2={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."}},ef={comingSoon:"\uB2E8\uC5B4\uD6C8\uB828 \uAE30\uB2A5\uC744 \uC900\uBE44 \uC911\uC785\uB2C8\uB2E4."},tf={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"},nf={title:"\uC8FC\uC694 \uB2E8\uC5B4",empty:"\uCD94\uCD9C\uB41C \uC8FC\uC694 \uB2E8\uC5B4\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4."},af={defaultName:"\uB2E8\uC5B4 \uD45C",title:"\uB2E8\uC5B4 \uD45C \uB9CC\uB4E4\uAE30",subtitle:"\uCE78\uC744 \uC124\uC815\uD558\uACE0 \uB2E8\uC5B4\uB97C \uCD94\uAC00\uD558\uC5EC \uD45C\uB97C \uB9CC\uB4ED\uB2C8\uB2E4.",filterTitle:"\uD45C \uC124\uC815",filter:{composition:"\uAD6C\uC131",image:"\uC774\uBBF8\uC9C0",word:"\uB2E8\uC5B4",standardPron:"\uD45C\uC900 \uBC1C\uC74C",colloquialPron:"\uAD6C\uC5B4\uCCB4 \uBC1C\uC74C",paperOrientation:"\uC6A9\uC9C0 \uBC29\uD5A5",landscape:"\uAC00\uB85C",portrait:"\uC138\uB85C",columns:"\uCE78 \uC218",column:"{{count}}\uCE78",itemsPerPageWord:"\uD398\uC774\uC9C0\uB2F9 \uB2E8\uC5B4 \uC218",itemsPerPagePair:"\uD398\uC774\uC9C0\uB2F9 \uB300\uB9BD\uC30D \uC218",itemsPerPageOption:"{{count}}\uAC1C",pageIndicator:"{{current}} / {{total}}",pageNumber:"\uD398\uC774\uC9C0 \uBC88\uD638",pageNumberLeft:"\uC67C\uCABD",pageNumberCenter:"\uC911\uC559",pageNumberRight:"\uC624\uB978\uCABD",border:"\uC678\uACFD\uC120",cutLine:"\uC808\uCDE8\uC120",show:"\uD45C\uC2DC",hide:"\uBBF8\uD45C\uC2DC",dotted:"\uC810\uC120",corner:"\uCF54\uB108"},addWord:"\uCD94\uAC00\uD558\uAE30",wordInfo:"{{word}} \uB0B1\uB9D0 \uC815\uBCF4",emptyItems:"\uB2E8\uC5B4\uB97C 1\uAC1C \uC774\uC0C1 \uCD94\uAC00\uD574\uC8FC\uC138\uC694.",load:"\uBD88\uB7EC\uC624\uAE30",openNewWindow:"\uC0C8 \uCC3D\uC73C\uB85C \uBCF4\uAE30",saveButton:"\uC800\uC7A5\uD558\uAE30",saveAsNewButton:"\uB2E4\uB978 \uC774\uB984\uC73C\uB85C \uC800\uC7A5",print:"\uC778\uC1C4\uD558\uAE30",popupBlocked:"\uD31D\uC5C5\uC774 \uCC28\uB2E8\uB418\uC5C8\uC2B5\uB2C8\uB2E4. \uBE0C\uB77C\uC6B0\uC800 \uC124\uC815\uC5D0\uC11C \uD31D\uC5C5\uC744 \uD5C8\uC6A9\uD574 \uC8FC\uC138\uC694.",printFileNameSingle:"\uB2E8\uC5B4\uD45C",printFileNamePair:"\uB300\uB9BD\uC30D\uD45C",save:{title:"\uB2E8\uC5B4\uD45C \uC800\uC7A5\uD558\uAE30",nameLabel:"\uC774\uB984",desc:"\uC800\uC7A5\uD560 \uB2E8\uC5B4 \uD45C\uC758 \uC774\uB984\uC744 \uC785\uB825\uD558\uC138\uC694.",placeholder:"\uC774 \uB2E8\uC5B4\uD45C\uC5D0 \uB300\uD55C \uC81C\uBAA9\uC744 \uC785\uB825\uD558\uC138\uC694.",descriptionLabel:"\uC124\uBA85",descriptionPlaceholder:"\uC774 \uB2E8\uC5B4\uD45C\uC5D0 \uB300\uD55C \uC124\uBA85\uC744 \uC785\uB825\uD558\uC138\uC694.",duplicateName:"\uC774\uBBF8 \uC0AC\uC6A9 \uC911\uC778 \uC774\uB984\uC785\uB2C8\uB2E4.",nameRequired:"\uD45C \uC774\uB984\uC744 \uC785\uB825\uD574 \uC8FC\uC138\uC694.",autoFillHint:" (Tab \uB610\uB294 space \uC785\uB825\uC2DC \uC790\uB3D9 \uC785\uB825)",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:"\uC0AD\uC81C",sort:{newest:"\uCD5C\uC2E0\uC21C",oldest:"\uC624\uB798\uB41C\uC21C",name:"\uC774\uB984\uC21C",count:"\uB2E8\uC5B4 \uC218"},view:{grid:"\uD45C\uB85C \uBCF4\uAE30",list:"\uB9AC\uC2A4\uD2B8\uB85C \uBCF4\uAE30"}},groupDeleteMessage:"\uADF8\uB8F9 \uB0B4 \uB2E8\uC5B4\uD45C\uB294 '\uADF8\uB8F9 \uC5C6\uC74C'\uC73C\uB85C \uC774\uB3D9\uD569\uB2C8\uB2E4.",groupNamePlaceholder:"\uADF8\uB8F9 \uC774\uB984",store:{badge:"\uB9D0\uADC0\uC790\uB8CC\uC2E4"},card:{sub:"\uB2E8\uC5B4\uD45C \uCE74\uB4DC",empty:"\uC774 \uCE74\uB4DC\uC5D0 \uB2E8\uC5B4\uD45C\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4."},toast:{renameError:"\uC774\uB984 \uBCC0\uACBD\uC5D0 \uC2E4\uD328\uD588\uC2B5\uB2C8\uB2E4",saveError:"\uC800\uC7A5\uC5D0 \uC2E4\uD328\uD588\uC2B5\uB2C8\uB2E4",deleteError:"\uC0AD\uC81C\uC5D0 \uC2E4\uD328\uD588\uC2B5\uB2C8\uB2E4",duplicateError:"\uBCF5\uC81C\uC5D0 \uC2E4\uD328\uD588\uC2B5\uB2C8\uB2E4",saveSuccess:"\uB2E8\uC5B4\uD45C\uAC00 \uC800\uC7A5\uB418\uC5C8\uC2B5\uB2C8\uB2E4."},scoring:{o:"{{word}} \uB9DE\uC74C",triangle:"{{word}} \uC560\uB9E4",x:"{{word}} \uD2C0\uB9BC",button:"\uCC44\uC810\uD558\uAE30",pickTitle:"\uB204\uAD6C\uB97C \uCC44\uC810\uD560\uAE4C\uC694?",pickSubtitle:"\u2018{{name}}\u2019 \uD45C\uB85C \uD6C8\uB828\uD55C \uACE0\uAC1D\uC744 \uACE0\uB974\uC138\uC694.",pickSearch:"\uC774\uB984 \uB610\uB294 \uC804\uD654\uBC88\uD638\uB85C \uCC3E\uAE30",pickEmpty:"\uB4F1\uB85D\uB41C \uACE0\uAC1D\uC774 \uC5C6\uC2B5\uB2C8\uB2E4.",pickNoMatch:"\uCC3E\uB294 \uACE0\uAC1D\uC774 \uC5C6\uC2B5\uB2C8\uB2E4.",pickAgain:"\uACE0\uAC1D \uB2E4\uC2DC \uACE0\uB974\uAE30",scoringFor:"{{name}} \uB2D8 \uCC44\uC810 \uC911",none:"\uCE78\uC744 \uB20C\uB7EC \u25CB \xB7 \u25B3 \xB7 \u2715 \uB97C \uB9E4\uAE30\uC138\uC694.",tally:"{{marked}}\uCE78 \uCC44\uC810 \xB7 \u25CB {{o}} \xB7 \u25B3 {{triangle}} \xB7 \u2715 {{x}} \xB7 \uC815\uB2F5\uB960 {{rate}}%",save:"\uCC44\uC810 \uC800\uC7A5",saved:"{{name}} \uB2D8\uC758 \uCC44\uC810 {{count}}\uCE78\uC744 \uC800\uC7A5\uD588\uC2B5\uB2C8\uB2E4.",reviewTitle:"\uBCF5\uC2B5\uD45C\uB97C \uB9CC\uB4E4\uAE4C\uC694?",reviewMessage:"{{name}} \uB2D8\uC774 \uD2C0\uB9AC\uAC70\uB098 \uC560\uB9E4\uD588\uB358 {{count}}\uCE78\uC73C\uB85C \uC0C8 \uD45C\uB97C \uB9CC\uB4ED\uB2C8\uB2E4. \uB9DE\uD78C \uCE78\uC740 \uBE60\uC9D1\uB2C8\uB2E4.",reviewConfirm:"\uBCF5\uC2B5\uD45C \uB9CC\uB4E4\uAE30",reviewDescription:"\u2018{{name}}\u2019 \uCC44\uC810\uC5D0\uC11C \uD2C0\uB9AC\uAC70\uB098 \uC560\uB9E4\uD588\uB358 {{count}}\uCE78\uC744 \uBAA8\uC740 \uD45C\uC785\uB2C8\uB2E4.",reviewCreated:"\u2018{{name}}\u2019\uC744(\uB97C) \uB9CC\uB4E4\uC5C8\uC2B5\uB2C8\uB2E4 \u2014 {{count}}\uCE78.",discardTitle:"\uB9E4\uAE34 \uCC44\uC810\uC744 \uBC84\uB9B4\uAE4C\uC694?",discardMessage:"{{count}}\uCE78\uC744 \uB9E4\uACBC\uC9C0\uB9CC \uC544\uC9C1 \uC800\uC7A5\uD558\uC9C0 \uC54A\uC558\uC2B5\uB2C8\uB2E4. \uB098\uAC00\uBA74 \uC0AC\uB77C\uC9D1\uB2C8\uB2E4.",discardConfirm:"\uBC84\uB9AC\uACE0 \uB098\uAC00\uAE30"},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"}},rf={editBanner:{message:"\uC800\uC7A5\uD558\uBA74 \uC9C0\uAE08 \uC218\uC815 \uC911\uC778 \uB2E8\uC5B4\uD45C\uAC00 \uAC31\uC2E0\uB429\uB2C8\uB2E4."},filterTitle:"\uB2E8\uC5B4 \uAC80\uC0C9 \uC124\uC815",filter:{positionAny:"\uBB34\uAD00",positionHead:"\uC5B4\uB450",positionMid:"\uC5B4\uC911",positionTail:"\uC5B4\uB9D0",difficulty:"\uB4F1\uAE09",grade:"{{n}}\uB4F1\uAE09",syllables:"\uC74C\uC808 \uC218",syllable:"{{n}}\uC74C\uC808",syllable5plus:"5\uC74C\uC808 \uC774\uC0C1",partOfSpeech:"\uD488\uC0AC",pos:{noun:"\uCCB4\uC5B8(\uBA85\uC0AC, \uC218\uC0AC)",verb:"\uC6A9\uC5B8(\uB3D9\uC0AC, \uD615\uC6A9\uC0AC)",modifier:"\uC218\uC2DD\uC5B8(\uBD80\uC0AC, \uAD00\uD615\uC0AC)"},wordType:"\uC720\uD615",type:{native:"\uACE0\uC720\uC5B4",sino:"\uD55C\uC790\uC5B4",foreign:"\uC678\uB798\uC5B4",mixed:"\uD63C\uC885\uC5B4"},exclude:"\uC81C\uC678",excludeNoImage:"\uC774\uBBF8\uC9C0 \uC5C6\uC74C"},searchButton:"\uAC80\uC0C9\uD558\uAE30",resultUnit:"\uB2E8\uC5B4",remaining:"{{count}}\uAC1C \uB0A8\uC74C",resultDisc:"\uC6D0\uD558\uB294 {{unit}} \uC120\uD0DD\uD558\uC138\uC694. {{max}}\uAC1C\uAE4C\uC9C0 \uC120\uD0DD\uD560 \uC218 \uC788\uC2B5\uB2C8\uB2E4. ({{selected}}/{{max}})",resultTitlePrefix:"\uCD1D ",resultTitleSuffix:"\uAC1C\uC758 {{unit}} \uAC80\uC0C9\uB418\uC5C8\uC2B5\uB2C8\uB2E4.",emptyResult:"\uAC80\uC0C9 \uACB0\uACFC\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4.",groupCount:"{{count}}\uAC1C",sort:{aria:"\uC815\uB82C",match:"\uC2DC\uC791 \uC6B0\uC120",ganada:"\uAC00\uB098\uB2E4\uC21C \u2191",ganadaDesc:"\uAC00\uB098\uB2E4\uC21C \u2193",syllable:"\uC74C\uC808 \uC218 \u2191",syllableDesc:"\uC74C\uC808 \uC218 \u2193",grade:"\uB4F1\uAE09\uC21C \u2191",gradeDesc:"\uB4F1\uAE09\uC21C \u2193"},pageSize:"{{count}}\uAC1C\uC529 \uBCF4\uAE30",pageSizeAria:"\uD398\uC774\uC9C0 \uD06C\uAE30",popup:{title:"{{n}}\uBC88 \uCE78\uC5D0 \uB123\uC744 \uB2E8\uC5B4\uB97C \uC120\uD0DD\uD558\uC138\uC694"}},of={clearAllSelection:"\uBAA8\uB450 \uC120\uD0DD \uD574\uC81C",divLine:"\uB300\uB9BD\uC120",removePair:"\uB300\uB9BD\uC30D \uBE7C\uAE30",removeWord:"\uB2E8\uC5B4 \uBE7C\uAE30"},sf={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"}},lf={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"}},cf={passwordPlaceholder:"\uBE44\uBC00\uBC88\uD638 \uC785\uB825"},uf={subtitle:"\uC8FC\uC81C\uB97C \uC120\uD0DD\uD558\uC5EC \uB4E3\uAE30 \uC5F0\uC2B5\uC744 \uC9C4\uD589\uD558\uC138\uC694."},df={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"}},pf={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"}},mf={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."]},hf={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"}},ff={lead:`\uC544\uC774\uD574\uBE0C\uB294 \uC18C\uB9AC\uB97C \uD1B5\uD574
828
828
  \uC2E0\uB8B0\uB97C \uC313\uACE0
829
- \uD68C\uBCF5\uC744 \uB3D5\uC2B5\uB2C8\uB2E4.`,site:{title:"\uC0AC\uC774\uD2B8",malgwi:"\uB9D0\uADC0",soundDirection:"\uC18C\uB9AC\uBC29\uD5A5\uC131\uC2DC\uC2A4\uD15C",vrSoundDirection:"VR\uC18C\uB9AC\uBC29\uD5A5\uC131\uC2DC\uC2A4\uD15C",hearingTest:"\uCCAD\uB825\uD14C\uC2A4\uD2B8 \uD504\uB85C"},sns:{title:"SNS",naverBlog:"\uB124\uC774\uBC84 \uBE14\uB85C\uADF8",kakao:"KAKAO Talk \uC624\uD508\uCC44\uD305"},policy:{title:"\uC815\uCC45",terms:"\uC774\uC6A9\uC57D\uAD00",privacy:"\uAC1C\uC778\uC815\uBCF4 \uCC98\uB9AC\uBC29\uCE68"},ceo:"\uB300\uD45C",address:"\uC8FC\uC18C",support:"\uACE0\uAC1D\uC13C\uD130",ceoName:"\uD55C\uC9C0\uD61C",addressValue:"\uAC15\uC6D0\uB3C4 \uCD98\uCC9C\uC2DC \uC2DC\uCCAD\uAE38 32 \uD574\uCC2C\uBE4C\uB529 3\uCE35 302\uD638"},ff={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"}}},Cf={timeHM:"{{h}}\uC2DC {{m}}\uBD84",timeH:"{{h}}\uC2DC"},gf={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"}},bf={answer:"\uC815\uB2F5",distractor:"\uC624\uB2F5"},yf={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"},vf={clearAriaLabel:"\uC785\uB825\uAC12 \uC9C0\uC6B0\uAE30"},xf={ariaLabel:"\uC120\uD0DD \uD0ED"},_f={ariaLabel:"\uD0ED"},wf={dragPrompt:"\uD30C\uC77C\uC744 \uC774\uACF3\uC5D0 \uB4DC\uB798\uADF8\uD558\uC5EC \uC5C5\uB85C\uB4DC",browseButton:"\uD30C\uC77C \uC120\uD0DD",removeAriaLabel:"{{name}} \uC81C\uAC70"},kf={ariaLabel:"\uC0AC\uC6A9\uC790 \uC544\uBC14\uD0C0"},Af={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"}},Bf={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"}},Sf={manage:{unit:"\uAC74"}},Df={cancelLabel:"\uCDE8\uC18C"},Tf={steps:"\uC9C4\uD589 \uB2E8\uACC4 {{current}} / {{total}}"},jf={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"},Ef={resetColumns:"\uCE78 \uB108\uBE44 \uCD08\uAE30\uD654"},Mf={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"},Lf={ariaLabel:"\uBC30\uB108",dotAriaLabel:"{{count}}\uAC1C \uC911 {{index}}\uBC88\uC9F8 \uBC30\uB108"},$f={selectYearMonth:"\uC5F0\uC6D4 \uC120\uD0DD",chooseDate:"\uB0A0\uC9DC \uC120\uD0DD"},Rf={previewRegion:"\uBCF4\uACE0\uC11C \uBBF8\uB9AC\uBCF4\uAE30 \u2014 \uC88C\uC6B0\uB85C \uAD74\uB824 \uBCFC \uC218 \uC788\uC2B5\uB2C8\uB2E4"},Pf={description:"\uC124\uBA85",textbox:"\uBCF8\uBB38",training:"\uD6C8\uB828 \uC548\uB0B4",menu:"\uBA54\uB274"},If={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"},Of={showResult:"{{type}} \uACB0\uACFC\uBCF4\uAE30"},Hf={selected:"\uC120\uD0DD\uB428",remove:"\uC81C\uAC70",exclude:"\uC81C\uC678",nthSelected:"{{n}}\uBC88\uC9F8 \uC120\uD0DD"},Vf={loading:"\uBD88\uB7EC\uC624\uB294 \uC911\u2026"},zf={state:{active:"\uC18C\uB9AC \uB098\uB294 \uC911",played:"\uB4E4\uC74C",correct:"\uC815\uB2F5",wrong:"\uC624\uB2F5"}},Wf={ariaLabel:"\uC774\uB3D9 \uACBD\uB85C"},qf={common:j2,calendar:E2,passCard:M2,searchField:L2,rating:$2,colorPicker:R2,dropdown:P2,accordion:I2,header:F2,nav:O2,settings:H2,usage:V2,account:z2,help:W2,training:q2,trainingSettings:U2,customers:G2,payment:K2,coupons:Y2,visits:Z2,company:X2,trainingType:J2,myWordTraining:Q2,myWordTable:ef,keyWords:tf,wordTable:nf,wordSearch:af,wordPrint:rf,topic:of,accessLinkManager:sf,login:lf,trainingPlanRun:cf,device:uf,manager:df,wordPairs:pf,game:mf,footer:hf,landing:ff,date:Cf,trainingSetPage:gf,wordTrainingPreview:bf,wordData:yf,textField:vf,segmentedControl:xf,tabs:_f,fileUpload:wf,avatar:kf,myHomework:Af,trainingStatus:Nf,store:Bf,homework:Sf,inquiry:Df,progress:Tf,trainingMiss:jf,table:Ef,wordScore:Mf,topBanner:Lf,datePicker:$f,report:Rf,tooltip:Pf,phonemeProfile:If,bulkBar:Ff,debug:Of,badge:Hf,loader:Vf,soundCompass:zf,breadcrumb:Wf},Uf={statusFilter:"Filter by status",pageSizeSelect:"Items per page",selectedCount_one:"{{count}} selected",selectedCount_other:"{{count}} selected",moreFor:"More options for {{name}}",cancel:"Cancel",info:"Info",errorState:{message:"Couldn't load this.",retry:"Try again"},save:"Save",confirm:"Confirm",close:"Close",back:"Back",emptyTrainingName:"Training name is empty.",remove:"Remove",image:"Image",delete:"Delete",reset:"Reset",update:"Update",download:"Download",search:"Search",empty:"No data.",yes:"Yes",no:"No",all:"All",none:"None",days_one:"{{count}} day",days_other:"{{count}} days",loadMore:"Load More",retry:"Try Again",prevPage:"Previous page",nextPage:"Next page",play:"Play",pause:"Pause",playPause:"Play / Pause",replay:"Replay",subscription:"Subscription",done:"Done",failed:"Failed",continue:"Continue",notification:"Notice",emptyList:"No items",menu:"Menu",resetSelection:"Reset Selection",pageSizeLabel:"Show {{n}}",totalCountPrefix:"Total: ",totalCountSuffix:"",expand:"Expand",collapse:"Collapse",popup:"Popup",more:"More",codeBlock:"Code block",totalPrefix:"",copyCode:"Copy code",copied:"Copied",col:{problem:"Question"},phonetics:{place:{labial:"Bilabial",alveolar:"Alveolar",palatal:"Palatal",velar:"Velar",glottal:"Glottal"},vowel:{frontHigh:"Front high vowel",backHighUnrounded:"Back high unrounded vowel",backHighRounded:"Back high rounded vowel",frontMid:"Front mid vowel",backMidUnrounded:"Back mid unrounded vowel",backMidRounded:"Back mid rounded vowel",low:"Low vowel"},glide:{j:"j-glide",w:"w-glide",velar:"\u0270-glide"}},unknownError:"Unknown error",networkError:"The network connection is unstable. Check your connection and try again."},Gf={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"},Kf={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"}},Yf={clearAriaLabel:"Clear search"},Zf={starLabel:"Select star {{n}}",valueLabel:"{{value}} out of {{max}}",groupLabel:"Rating"},Xf={selected:"selected"},Jf={placeholder:"Select"},Qf={collapse:"Collapse",expand:"Expand"},eC={biArea:"BI area",biSymbol:"BI symbol",logoMalgwi:"Malgwi logo",logoManager:"Malgwi Manager logo",menuOpen:"Open menu",utilMenu:"Utility menu",menuClose:"Close menu"},tC={mainMenu:"Main menu",bottomNav:"Bottom navigation",goToManager:"Go to Malgwi Manager",goToMalgwi:"Go to Malgwi",modeLabelManager:"Malgwi Manager",modeLabelMalgwi:"Malgwi",training:"Training",settings:"Settings",notifications:"Notifications",account:"Account",help:"Help",debug:"Debug",coupons:"Coupons",topic:"By Topic",trainingType:"By Training Type",wordPairs:"Word Pairs",wordSearch:"Word Search",wordTable:"Word Table Creator",company:"Company Info",more:"More",moreMenu:"More menu",badgeLabel:"{{label}}, {{count}}"},nC={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."}}},aC={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"}},rC={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"}}},oC={guide:{faq:{title:"FAQ",desc:"View all frequently asked questions"}}},sC={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.",selectConfirm:"Look at the question and select the answer.",orderListDefault:"Arrange the sentences in the order you heard.",result:{eyebrow:"Training Complete",title:"You've finished all the training!",scoreAria:"{{correct}} / {{total}} questions",elapsed:"Time Elapsed",summary:"You heard {{correct}} item(s) correctly.",tableAriaLabel:"Per-question judgement",colJudge:"Judgement",colAnswerSelected:"Answer \xB7 Selected",colAnswer:"Answer",colSelected:"Selected",heardWell:"Heard well",notHeard:"Didn't hear",notJudged:"Not judged",replay:"Replay",done:"Done",viewResult:"View Results",noContent:"(No content)"},up:"Move up",down:"Move down",prev:"Previous",listenLabel:"Listen",sourcePlay:"Play source {{n}}",listen:"Listen",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"}},iC={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"},lC={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"}},cC={plan:{recommendedFor:"Recommended for",features:"Key Features",freePrice:"Free",contact:"Contact Us",tierFallback:"Plan",openPromo:"Launch offer"},products:{mgrEnterprise:{tier:{price:"Contact us"}}}},uC={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"}},dC={unitVisit:"",periodAll:"All",showN:"Show {{n}}"},pC={subtitle:"Manage company and business information",editButton:"Edit Info",basicInfo:{title:"Basic Info"},contactInfo:{title:"Contact Info"}},mC={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."}},hC={comingSoon:"Word training is coming soon."},fC={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"},CC={title:"Key Words",empty:"No key words available."},gC={defaultName:"Word Table",title:"Word Table Builder",subtitle:"Set columns and add words to build a table.",filterTitle:"Table Settings",filter:{composition:"Composition",image:"Image",word:"Word",standardPron:"Standard Pronunciation",colloquialPron:"Colloquial Pronunciation",paperOrientation:"Paper Orientation",landscape:"Landscape",portrait:"Portrait",columns:"Columns",column:"{{count}} col",itemsPerPageWord:"Words per page",itemsPerPagePair:"Pairs per page",itemsPerPageOption:"{{count}}",pageIndicator:"{{current}} / {{total}}",pageNumber:"Page Number",pageNumberLeft:"Left",pageNumberCenter:"Center",pageNumberRight:"Right",border:"Border",cutLine:"Cut Line",show:"Show",hide:"Hide",dotted:"Dotted",corner:"Corner"},addWord:"Add",wordInfo:"Info for {{word}}",emptyItems:"Please add at least one word.",load:"Load",openNewWindow:"Open in New Window",saveButton:"Save",saveAsNewButton:"Save as New",print:"Print",popupBlocked:"Popup was blocked. Please allow popups in your browser settings.",printFileNameSingle:"Word Table",printFileNamePair:"Contrast Pair Table",save:{title:"Save Word Table",nameLabel:"Name",desc:"Enter a name for the word table.",placeholder:"Enter a title for this word table.",descriptionLabel:"Description",descriptionPlaceholder:"Enter a description for this word table.",duplicateName:"This name is already in use.",nameRequired:"Please enter a table name.",autoFillHint:" (Press Tab or Space to autofill)",copyName:"{{name}} (copy)"},loadTable:{title:"Load Saved Word Table",empty:"No saved word tables.",loadButton:"Load",itemCount:"{{count}} words",deleteAriaLabel:"Delete",sort:{newest:"Newest",oldest:"Oldest",name:"Name",count:"Word Count"},view:{grid:"Grid View",list:"List View"}},groupDeleteMessage:"Word tables in this group will be moved to 'No Group'.",groupNamePlaceholder:"Group name",store:{badge:"Training Store"},card:{sub:"Word Table Card",empty:"No word tables in this card."},toast:{renameError:"Failed to rename",saveError:"Failed to save",deleteError:"Failed to delete",duplicateError:"Failed to duplicate",saveSuccess:"Word table saved."},scoring:{o:"{{word}} correct",triangle:"{{word}} partial",x:"{{word}} incorrect",button:"Score",pickTitle:"Who are you scoring?",pickSubtitle:"Choose the customer who trained with \u201C{{name}}\u201D.",pickSearch:"Search by name or phone",pickEmpty:"No customers registered.",pickNoMatch:"No matching customer.",pickAgain:"Choose another",scoringFor:"Scoring {{name}}",none:"Tap a cell to mark \u25CB \xB7 \u25B3 \xB7 \u2715.",tally:"{{marked}} scored \xB7 \u25CB {{o}} \xB7 \u25B3 {{triangle}} \xB7 \u2715 {{x}} \xB7 {{rate}}%",save:"Save score",saved:"Saved {{count}} marks for {{name}}.",reviewTitle:"Create a review table?",reviewMessage:"Builds a new table from the {{count}} cells {{name}} got wrong or partial. Correct ones are left out.",reviewConfirm:"Create review table",reviewDescription:"Cells marked wrong or partial in \u201C{{name}}\u201D \u2014 {{count}} of them.",reviewCreated:"Created \u201C{{name}}\u201D \u2014 {{count}} cells.",discardTitle:"Discard this scoring?",discardMessage:"You marked {{count}} cells but have not saved. Leaving discards them.",discardConfirm:"Discard and leave"},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"}},bC={editBanner:{message:"Saving will update the word table you're editing."},filterTitle:"Word Search Settings",filter:{positionAny:"Any",positionHead:"Start",positionMid:"Middle",positionTail:"End",difficulty:"Grade",grade:"Grade {{n}}",syllables:"Syllables",syllable:"{{n}} Syll.",syllable5plus:"5+ Syllables",partOfSpeech:"Part of Speech",pos:{noun:"Noun/Numeral",verb:"Verb/Adjective",modifier:"Adverb/Determiner"},wordType:"Word Type",type:{native:"Native Korean",sino:"Sino-Korean",foreign:"Loanword",mixed:"Hybrid"},exclude:"Exclude",excludeNoImage:"No Image"},searchButton:"Search",resultUnit:"words",remaining:"{{count}} remaining",resultDisc:"Select {{unit}}. Up to {{max}} items. ({{selected}}/{{max}})",resultTitlePrefix:"",resultTitleSuffix:" {{unit}} found.",emptyResult:"No results found.",groupCount:"{{count}}",sort:{aria:"Sort",match:"Best Match",ganada:"A\u2013Z \u2191",ganadaDesc:"A\u2013Z \u2193",syllable:"Syllables \u2191",syllableDesc:"Syllables \u2193",grade:"Grade \u2191",gradeDesc:"Grade \u2193"},pageSize:"Show {{count}}",pageSizeAria:"Page size",popup:{title:"Select a word for cell {{n}}"}},yC={clearAllSelection:"Clear All Selections",divLine:"Contrast Line",removePair:"Remove pair",removeWord:"Remove word"},vC={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"}},xC={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"}},_C={passwordPlaceholder:"Enter password"},wC={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"}},kC={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"}},AC={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."]},NC={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"}},BC={lead:`IHAB builds trust
829
+ \uD68C\uBCF5\uC744 \uB3D5\uC2B5\uB2C8\uB2E4.`,site:{title:"\uC0AC\uC774\uD2B8",malgwi:"\uB9D0\uADC0",soundDirection:"\uC18C\uB9AC\uBC29\uD5A5\uC131\uC2DC\uC2A4\uD15C",vrSoundDirection:"VR\uC18C\uB9AC\uBC29\uD5A5\uC131\uC2DC\uC2A4\uD15C",hearingTest:"\uCCAD\uB825\uD14C\uC2A4\uD2B8 \uD504\uB85C"},sns:{title:"SNS",naverBlog:"\uB124\uC774\uBC84 \uBE14\uB85C\uADF8",kakao:"KAKAO Talk \uC624\uD508\uCC44\uD305"},policy:{title:"\uC815\uCC45",terms:"\uC774\uC6A9\uC57D\uAD00",privacy:"\uAC1C\uC778\uC815\uBCF4 \uCC98\uB9AC\uBC29\uCE68"},ceo:"\uB300\uD45C",address:"\uC8FC\uC18C",support:"\uACE0\uAC1D\uC13C\uD130",ceoName:"\uD55C\uC9C0\uD61C",addressValue:"\uAC15\uC6D0\uB3C4 \uCD98\uCC9C\uC2DC \uC2DC\uCCAD\uAE38 32 \uD574\uCC2C\uBE4C\uB529 3\uCE35 302\uD638"},Cf={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"}}},gf={timeHM:"{{h}}\uC2DC {{m}}\uBD84",timeH:"{{h}}\uC2DC"},bf={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"}},yf={answer:"\uC815\uB2F5",distractor:"\uC624\uB2F5"},vf={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"},xf={clearAriaLabel:"\uC785\uB825\uAC12 \uC9C0\uC6B0\uAE30"},_f={ariaLabel:"\uC120\uD0DD \uD0ED"},wf={ariaLabel:"\uD0ED"},kf={dragPrompt:"\uD30C\uC77C\uC744 \uC774\uACF3\uC5D0 \uB4DC\uB798\uADF8\uD558\uC5EC \uC5C5\uB85C\uB4DC",browseButton:"\uD30C\uC77C \uC120\uD0DD",removeAriaLabel:"{{name}} \uC81C\uAC70"},Af={ariaLabel:"\uC0AC\uC6A9\uC790 \uC544\uBC14\uD0C0"},Nf={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"}},Bf={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"}},Df={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"}},Sf={manage:{unit:"\uAC74"}},jf={cancelLabel:"\uCDE8\uC18C"},Tf={steps:"\uC9C4\uD589 \uB2E8\uACC4 {{current}} / {{total}}"},Ef={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"},Mf={resetColumns:"\uCE78 \uB108\uBE44 \uCD08\uAE30\uD654"},Lf={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"},$f={ariaLabel:"\uBC30\uB108",dotAriaLabel:"{{count}}\uAC1C \uC911 {{index}}\uBC88\uC9F8 \uBC30\uB108"},Rf={selectYearMonth:"\uC5F0\uC6D4 \uC120\uD0DD",chooseDate:"\uB0A0\uC9DC \uC120\uD0DD"},Pf={previewRegion:"\uBCF4\uACE0\uC11C \uBBF8\uB9AC\uBCF4\uAE30 \u2014 \uC88C\uC6B0\uB85C \uAD74\uB824 \uBCFC \uC218 \uC788\uC2B5\uB2C8\uB2E4"},If={description:"\uC124\uBA85",textbox:"\uBCF8\uBB38",training:"\uD6C8\uB828 \uC548\uB0B4",menu:"\uBA54\uB274"},Ff={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"}},Of={clearSelection:"\uC120\uD0DD \uD574\uC81C"},Vf={showResult:"{{type}} \uACB0\uACFC\uBCF4\uAE30"},Hf={selected:"\uC120\uD0DD\uB428",remove:"\uC81C\uAC70",exclude:"\uC81C\uC678",nthSelected:"{{n}}\uBC88\uC9F8 \uC120\uD0DD"},zf={loading:"\uBD88\uB7EC\uC624\uB294 \uC911\u2026"},Wf={state:{active:"\uC18C\uB9AC \uB098\uB294 \uC911",played:"\uB4E4\uC74C",correct:"\uC815\uB2F5",wrong:"\uC624\uB2F5"}},qf={ariaLabel:"\uC774\uB3D9 \uACBD\uB85C"},Uf={common:E2,calendar:M2,passCard:L2,searchField:$2,rating:R2,colorPicker:P2,dropdown:I2,accordion:F2,header:O2,nav:V2,settings:H2,usage:z2,account:W2,help:q2,training:U2,trainingSettings:G2,customers:K2,payment:Y2,coupons:Z2,visits:X2,company:J2,trainingType:Q2,myWordTraining:ef,myWordTable:tf,keyWords:nf,wordTable:af,wordSearch:rf,wordPrint:of,topic:sf,accessLinkManager:lf,login:cf,trainingPlanRun:uf,device:df,manager:pf,wordPairs:mf,game:hf,footer:ff,landing:Cf,date:gf,trainingSetPage:bf,wordTrainingPreview:yf,wordData:vf,textField:xf,segmentedControl:_f,tabs:wf,fileUpload:kf,avatar:Af,myHomework:Nf,trainingStatus:Bf,store:Df,homework:Sf,inquiry:jf,progress:Tf,trainingMiss:Ef,table:Mf,wordScore:Lf,topBanner:$f,datePicker:Rf,report:Pf,tooltip:If,phonemeProfile:Ff,bulkBar:Of,debug:Vf,badge:Hf,loader:zf,soundCompass:Wf,breadcrumb:qf},Gf={statusFilter:"Filter by status",pageSizeSelect:"Items per page",selectedCount_one:"{{count}} selected",selectedCount_other:"{{count}} selected",moreFor:"More options for {{name}}",cancel:"Cancel",info:"Info",errorState:{message:"Couldn't load this.",retry:"Try again"},save:"Save",confirm:"Confirm",close:"Close",back:"Back",emptyTrainingName:"Training name is empty.",remove:"Remove",image:"Image",delete:"Delete",reset:"Reset",update:"Update",download:"Download",search:"Search",empty:"No data.",yes:"Yes",no:"No",all:"All",none:"None",days_one:"{{count}} day",days_other:"{{count}} days",loadMore:"Load More",retry:"Try Again",prevPage:"Previous page",nextPage:"Next page",play:"Play",pause:"Pause",playPause:"Play / Pause",replay:"Replay",subscription:"Subscription",done:"Done",failed:"Failed",continue:"Continue",notification:"Notice",emptyList:"No items",menu:"Menu",resetSelection:"Reset Selection",pageSizeLabel:"Show {{n}}",totalCountPrefix:"Total: ",totalCountSuffix:"",expand:"Expand",collapse:"Collapse",popup:"Popup",more:"More",codeBlock:"Code block",totalPrefix:"",copyCode:"Copy code",copied:"Copied",col:{problem:"Question"},phonetics:{place:{labial:"Bilabial",alveolar:"Alveolar",palatal:"Palatal",velar:"Velar",glottal:"Glottal"},vowel:{frontHigh:"Front high vowel",backHighUnrounded:"Back high unrounded vowel",backHighRounded:"Back high rounded vowel",frontMid:"Front mid vowel",backMidUnrounded:"Back mid unrounded vowel",backMidRounded:"Back mid rounded vowel",low:"Low vowel"},glide:{j:"j-glide",w:"w-glide",velar:"\u0270-glide"}},unknownError:"Unknown error",networkError:"The network connection is unstable. Check your connection and try again."},Kf={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"},Yf={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"}},Zf={clearAriaLabel:"Clear search"},Xf={starLabel:"Select star {{n}}",valueLabel:"{{value}} out of {{max}}",groupLabel:"Rating"},Jf={selected:"selected"},Qf={placeholder:"Select"},eC={collapse:"Collapse",expand:"Expand"},tC={biArea:"BI area",biSymbol:"BI symbol",logoMalgwi:"Malgwi logo",logoManager:"Malgwi Manager logo",menuOpen:"Open menu",utilMenu:"Utility menu",menuClose:"Close menu"},nC={mainMenu:"Main menu",bottomNav:"Bottom navigation",goToManager:"Go to Malgwi Manager",goToMalgwi:"Go to Malgwi",modeLabelManager:"Malgwi Manager",modeLabelMalgwi:"Malgwi",training:"Training",settings:"Settings",notifications:"Notifications",account:"Account",help:"Help",debug:"Debug",coupons:"Coupons",topic:"By Topic",trainingType:"By Training Type",wordPairs:"Word Pairs",wordSearch:"Word Search",wordTable:"Word Table Creator",company:"Company Info",more:"More",moreMenu:"More menu",badgeLabel:"{{label}}, {{count}}"},aC={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."}}},rC={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"}},oC={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"}}},sC={guide:{faq:{title:"FAQ",desc:"View all frequently asked questions"}}},iC={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.",selectConfirm:"Look at the question and select the answer.",orderListDefault:"Arrange the sentences in the order you heard.",result:{eyebrow:"Training Complete",title:"You've finished all the training!",scoreAria:"{{correct}} / {{total}} questions",elapsed:"Time Elapsed",summary:"You heard {{correct}} item(s) correctly.",tableAriaLabel:"Per-question judgement",colJudge:"Judgement",colAnswerSelected:"Answer \xB7 Selected",colAnswer:"Answer",colSelected:"Selected",heardWell:"Heard well",notHeard:"Didn't hear",notJudged:"Not judged",replay:"Replay",done:"Done",viewResult:"View Results",noContent:"(No content)"},up:"Move up",down:"Move down",prev:"Previous",listenLabel:"Listen",sourcePlay:"Play source {{n}}",listen:"Listen",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"}},lC={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"},cC={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"}},uC={plan:{recommendedFor:"Recommended for",features:"Key Features",freePrice:"Free",contact:"Contact Us",tierFallback:"Plan",openPromo:"Launch offer"},products:{mgrEnterprise:{tier:{price:"Contact us"}}}},dC={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"}},pC={unitVisit:"",periodAll:"All",showN:"Show {{n}}"},mC={subtitle:"Manage company and business information",editButton:"Edit Info",basicInfo:{title:"Basic Info"},contactInfo:{title:"Contact Info"}},hC={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."}},fC={comingSoon:"Word training is coming soon."},CC={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"},gC={title:"Key Words",empty:"No key words available."},bC={defaultName:"Word Table",title:"Word Table Builder",subtitle:"Set columns and add words to build a table.",filterTitle:"Table Settings",filter:{composition:"Composition",image:"Image",word:"Word",standardPron:"Standard Pronunciation",colloquialPron:"Colloquial Pronunciation",paperOrientation:"Paper Orientation",landscape:"Landscape",portrait:"Portrait",columns:"Columns",column:"{{count}} col",itemsPerPageWord:"Words per page",itemsPerPagePair:"Pairs per page",itemsPerPageOption:"{{count}}",pageIndicator:"{{current}} / {{total}}",pageNumber:"Page Number",pageNumberLeft:"Left",pageNumberCenter:"Center",pageNumberRight:"Right",border:"Border",cutLine:"Cut Line",show:"Show",hide:"Hide",dotted:"Dotted",corner:"Corner"},addWord:"Add",wordInfo:"Info for {{word}}",emptyItems:"Please add at least one word.",load:"Load",openNewWindow:"Open in New Window",saveButton:"Save",saveAsNewButton:"Save as New",print:"Print",popupBlocked:"Popup was blocked. Please allow popups in your browser settings.",printFileNameSingle:"Word Table",printFileNamePair:"Contrast Pair Table",save:{title:"Save Word Table",nameLabel:"Name",desc:"Enter a name for the word table.",placeholder:"Enter a title for this word table.",descriptionLabel:"Description",descriptionPlaceholder:"Enter a description for this word table.",duplicateName:"This name is already in use.",nameRequired:"Please enter a table name.",autoFillHint:" (Press Tab or Space to autofill)",copyName:"{{name}} (copy)"},loadTable:{title:"Load Saved Word Table",empty:"No saved word tables.",loadButton:"Load",itemCount:"{{count}} words",deleteAriaLabel:"Delete",sort:{newest:"Newest",oldest:"Oldest",name:"Name",count:"Word Count"},view:{grid:"Grid View",list:"List View"}},groupDeleteMessage:"Word tables in this group will be moved to 'No Group'.",groupNamePlaceholder:"Group name",store:{badge:"Training Store"},card:{sub:"Word Table Card",empty:"No word tables in this card."},toast:{renameError:"Failed to rename",saveError:"Failed to save",deleteError:"Failed to delete",duplicateError:"Failed to duplicate",saveSuccess:"Word table saved."},scoring:{o:"{{word}} correct",triangle:"{{word}} partial",x:"{{word}} incorrect",button:"Score",pickTitle:"Who are you scoring?",pickSubtitle:"Choose the customer who trained with \u201C{{name}}\u201D.",pickSearch:"Search by name or phone",pickEmpty:"No customers registered.",pickNoMatch:"No matching customer.",pickAgain:"Choose another",scoringFor:"Scoring {{name}}",none:"Tap a cell to mark \u25CB \xB7 \u25B3 \xB7 \u2715.",tally:"{{marked}} scored \xB7 \u25CB {{o}} \xB7 \u25B3 {{triangle}} \xB7 \u2715 {{x}} \xB7 {{rate}}%",save:"Save score",saved:"Saved {{count}} marks for {{name}}.",reviewTitle:"Create a review table?",reviewMessage:"Builds a new table from the {{count}} cells {{name}} got wrong or partial. Correct ones are left out.",reviewConfirm:"Create review table",reviewDescription:"Cells marked wrong or partial in \u201C{{name}}\u201D \u2014 {{count}} of them.",reviewCreated:"Created \u201C{{name}}\u201D \u2014 {{count}} cells.",discardTitle:"Discard this scoring?",discardMessage:"You marked {{count}} cells but have not saved. Leaving discards them.",discardConfirm:"Discard and leave"},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"}},yC={editBanner:{message:"Saving will update the word table you're editing."},filterTitle:"Word Search Settings",filter:{positionAny:"Any",positionHead:"Start",positionMid:"Middle",positionTail:"End",difficulty:"Grade",grade:"Grade {{n}}",syllables:"Syllables",syllable:"{{n}} Syll.",syllable5plus:"5+ Syllables",partOfSpeech:"Part of Speech",pos:{noun:"Noun/Numeral",verb:"Verb/Adjective",modifier:"Adverb/Determiner"},wordType:"Word Type",type:{native:"Native Korean",sino:"Sino-Korean",foreign:"Loanword",mixed:"Hybrid"},exclude:"Exclude",excludeNoImage:"No Image"},searchButton:"Search",resultUnit:"words",remaining:"{{count}} remaining",resultDisc:"Select {{unit}}. Up to {{max}} items. ({{selected}}/{{max}})",resultTitlePrefix:"",resultTitleSuffix:" {{unit}} found.",emptyResult:"No results found.",groupCount:"{{count}}",sort:{aria:"Sort",match:"Best Match",ganada:"A\u2013Z \u2191",ganadaDesc:"A\u2013Z \u2193",syllable:"Syllables \u2191",syllableDesc:"Syllables \u2193",grade:"Grade \u2191",gradeDesc:"Grade \u2193"},pageSize:"Show {{count}}",pageSizeAria:"Page size",popup:{title:"Select a word for cell {{n}}"}},vC={clearAllSelection:"Clear All Selections",divLine:"Contrast Line",removePair:"Remove pair",removeWord:"Remove word"},xC={title:"By Topic",subtitle:"Select a topic to start listening training",noiseTitle:"Sentence Listening in Noise",shortStoryTitle:"Short Story Listening",FOOD:"Food",HLTH:"Health",WETH:"Weather",PRSN:"People",KRCT:"Korean Culture",STRY:"Stories",LOCA:"Locations",SOAR:"Society & Arts",NTSC:"Nature & Science",SPRT:"Sports",sub:{TRKRFD:"Traditional Korean Food",MDKRFD:"Modern Korean Food",WRLDFD:"World Cuisine",MTRFRT:"Ingredients & Fruits",GEFDKL:"Food Facts",HTETHB:"Healthy Eating",DISILL:"Diseases",EXCISE:"Exercise",GEHTKL:"Health Facts",GESSKL:"Seasons",SNWRAN:"Snow & Rain",WTHFCT:"Weather Forecast",GEWTKL:"Weather Facts",JODYPS:"Joseon Dynasty",MDKRPS:"Modern Korea",THKDPS:"Three Kingdoms",WRLART:"World Artists",WRLPSN:"World Figures",KRLANG:"Korean Language",TRPLCT:"Traditional Games",HERITG:"Heritage",EVTFES:"Events & Festivals",GECTKL:"General Knowledge",FRYTAL:"Fairy Tales",AMZING:"Amazing Stories",DAYSTR:"Everyday Stories",KRLDMK:"Korean Landmarks",SELNMK:"Seoul Landmarks",WRDTRB:"World Travel",NAVIGT:"Navigation",KRSOCI:"Korea",ECONEW:"Economy & News",GENART:"Arts",GELFKL:"Life Tips",ANIMAL:"Animals",PLANTS:"Plants",ETHPLT:"Earth",TOLELC:"Tools & Electronics",GESCKL:"Science Facts",INVDSP:"Individual Sports",MARART:"Martial Arts",TEAMSP:"Team Sports",FOOTBL:"Soccer",GESPKL:"Sports Facts"}},_C={maxUses:"Max uses (leave blank for unlimited)",redirect:"Redirect URL (leave blank for app home)",creating:"Creating\u2026",create:"Create link",created:"\u2713 Link created",copied:"Copied!",copy:"Copy",loading:"Loading\u2026",empty:"No links created yet.",uses:"Used {{count}} times",expiresAt:"Expires: {{date}}",createdAt:"Created: {{date}}",confirmDelete:"Delete this link?",deactivate:"Deactivate",delete:"Delete",status:{active:"Active",expired:"Expired",inactive:"Inactive"}},wC={passwordPlaceholder:"Enter password"},kC={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"}},AC={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"}},NC={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."]},BC={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"}},DC={lead:`IHAB builds trust
830
830
  through sound
831
- and aids recovery.`,site:{title:"Site",malgwi:"Malgwi",soundDirection:"Sound Direction System",vrSoundDirection:"VR Sound Direction System",hearingTest:"Hearing Test Pro"},sns:{title:"SNS",naverBlog:"Naver Blog",kakao:"KAKAO Talk Open Chat"},policy:{title:"Policy",terms:"Terms of Service",privacy:"Privacy Policy"},ceo:"CEO",address:"Address",support:"Support",ceoName:"Ji-hye Han",addressValue:"302, 3F, Haechan Bldg, 32 Siocheong-gil, Chuncheon, Gangwon, Korea"},SC={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"}}},DC={timeHM:"{{hh}}:{{mm}}",timeH:"{{hh}}:{{mm}}"},TC={options:"Training Options",difficulty:"Difficulty",exclude:"Exclude",chosung:"Initial Consonant",excludeOptions:{none:"None",noImage:"No Image"}},jC={answer:"Answer",distractor:"Distractor"},EC={phaseWordDownload:"Download Word Data",phaseImageCheck:"Check Images",phasePairAnalysis:"Analyze Word Pairs",downloadingCount:"Downloading {{n}} words",checkingPage:"Checking page {{page}} list",imageCount:"{{done}} / {{total}} items"},MC={clearAriaLabel:"Clear input"},LC={ariaLabel:"Select tab"},$C={ariaLabel:"Tabs"},RC={dragPrompt:"Drag and drop files here",browseButton:"Choose Files",removeAriaLabel:"Remove {{name}}"},PC={ariaLabel:"User avatar"},IC={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"}},FC={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"}},OC={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)"}},HC={manage:{unit:"item(s)"}},VC={cancelLabel:"Cancel"},zC={subtitle:"Select a topic to start listening practice."},WC={steps:"Step {{current}} of {{total}}"},qC={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"},UC={resetColumns:"Reset column widths"},GC={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}}"},KC={ariaLabel:"Banner",dotAriaLabel:"Banner {{index}} of {{count}}"},YC={selectYearMonth:"Select year and month",chooseDate:"Choose a date"},ZC={previewRegion:"Report preview \u2014 scrollable sideways"},XC={description:"Description",textbox:"Text",training:"Training guide",menu:"Menu"},JC={devNone:"No acquisition data",place:{labial:"Bilabial",alveolar:"Alveolar",palatal:"Palatal",velar:"Velar",glottal:"Glottal"}},QC={clearSelection:"Clear selection"},eg={showResult:"Show {{type}} result"},tg={selected:"Selected",remove:"Remove",exclude:"Excluded",nthSelected:"Selection {{n}}"},ng={loading:"Loading"},ag={state:{active:"playing",played:"heard",correct:"correct",wrong:"wrong"}},rg={ariaLabel:"Breadcrumb"},og={common:Uf,calendar:Gf,passCard:Kf,searchField:Yf,rating:Zf,colorPicker:Xf,dropdown:Jf,accordion:Qf,header:eC,nav:tC,settings:nC,usage:aC,account:rC,help:oC,training:sC,trainingSettings:iC,customers:lC,payment:cC,coupons:uC,visits:dC,company:pC,trainingType:mC,myWordTraining:hC,myWordTable:fC,keyWords:CC,wordTable:gC,wordSearch:bC,wordPrint:yC,topic:vC,accessLinkManager:xC,login:_C,device:wC,manager:kC,wordPairs:AC,game:NC,footer:BC,landing:SC,date:DC,trainingSetPage:TC,wordTrainingPreview:jC,wordData:EC,textField:MC,segmentedControl:LC,tabs:$C,fileUpload:RC,avatar:PC,myHomework:IC,trainingStatus:FC,store:OC,homework:HC,inquiry:VC,trainingPlanRun:zC,progress:WC,trainingMiss:qC,table:UC,wordScore:GC,topBanner:KC,datePicker:YC,report:ZC,tooltip:XC,phonemeProfile:JC,bulkBar:QC,debug:eg,badge:tg,loader:ng,soundCompass:ag,breadcrumb:rg};const sg=[{code:"ko",label:"\uD55C\uAD6D\uC5B4"},{code:"en",label:"English"}],Ei="ko",ig="ihab_display_language";function Mi(){try{const e=localStorage.getItem(ig);if(e&&sg.some(n=>n.code===e))return e}catch{}return Ei}function Li(e){try{document.documentElement.lang=e}catch{}}Lt.on("languageChanged",Li),Li(Mi()),Lt.use(pe.initReactI18next).init({resources:{ko:{translation:qf},en:{translation:og}},lng:Mi(),fallbackLng:Ei,interpolation:{escapeValue:!1},react:{useSuspense:!1}});function $i(e){if(!(e==null||e===""))return ca(typeof e=="number"?`${e.toLocaleString("ko-KR")}\uC6D0`:e)}function lg(e){const n=`${e.code??""} ${e.name??""}`.toLowerCase();return/manager|매니저/.test(n)?"manager":"speechear"}function cg(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 o=a.match(/(\d+)\s*-?\s*(day|year)s?\b/i);return o?o[2].toLowerCase()==="year"?`${o[1]}\uB144`:`${o[1]}\uC77C`:a||"\uC774\uC6A9\uAD8C"}function ug(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 Ri(e){return{type:e.type??lg(e),plan:cg(e),label:e.label,price:$i(e.price),originalPrice:$i(e.originalPrice),discountLabel:e.discountLabel}}var dg='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',pg='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>',mg='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',hg='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',fg='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>',Cg='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',Pi='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 In={text:"--pass-card-text",sub:"--pass-card-sub",copyright:"--pass-card-copyright"},Dr=new WeakMap;function gg(e){if(e)return Dr.get(e)}function hn(e,n){e&&(e.style.setProperty(In.text,n.text),e.style.setProperty(In.sub,n.sub),n.copyrightColor&&e.style.setProperty(In.copyright,n.copyrightColor),Dr.set(e,n))}function fn(e){e&&(e.style.removeProperty(In.text),e.style.removeProperty(In.sub),e.style.removeProperty(In.copyright),Dr.delete(e))}const Ii={text:"var(--color-pureBlack)",sub:"var(--color-lightGray)",logoBase:"Logo_speechear_kr",copyrightColor:"#1a1a1a"};function Fi(e={}){const n=ct(Ii,hn,fn);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("${Pi}")`}})]})}const Oi="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 pa='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 bg={text:"#1a1a1a",sub:"var(--color-lightGray)",logoBase:"Logo_speechear_kr",copyrightColor:"var(--color-main)"},yg=[{scale:1,opacity:.55},{scale:2,opacity:.4},{scale:3.1,opacity:.28},{scale:4.5,opacity:.18},{scale:6,opacity:.1}];function Hi(e={}){const n=ct(bg,hn,fn),a="var(--color-main)",r=270,o=170;return t.jsxs("div",{ref:n,className:"pass-card-bg pass-card-bg-sound-move","aria-hidden":"true",children:[t.jsx("svg",{className:"pass-card-bg-sound-move__svg",viewBox:"0 0 300 189",preserveAspectRatio:"xMidYMid meet",xmlns:"http://www.w3.org/2000/svg",children:yg.map(({scale:i,opacity:l},c)=>t.jsx("g",{transform:`translate(${r} ${o}) scale(${i}) translate(-50 -50)`,opacity:l,children:t.jsx("path",{d:Oi,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("${pa}")`}})]})}const vg={text:"#ffffff",sub:"var(--color-lightGray)",logoBase:"Logo_speechear_kr",logoColor:"_white",copyrightColor:"#ffffff"},xg=[{scale:1,opacity:.55},{scale:2,opacity:.4},{scale:3.1,opacity:.28},{scale:4.5,opacity:.18},{scale:6,opacity:.1}];function _g(e={}){const n=ct(vg,hn,fn),a="#ffffff",r=270,o=170;return t.jsxs("div",{ref:n,className:"pass-card-bg pass-card-bg-sound-move-v1","aria-hidden":"true",children:[t.jsx("svg",{className:"pass-card-bg-sound-move-v1__svg",viewBox:"0 0 300 189",preserveAspectRatio:"xMidYMid meet",xmlns:"http://www.w3.org/2000/svg",children:xg.map(({scale:i,opacity:l},c)=>t.jsx("g",{transform:`translate(${r} ${o}) scale(${i}) translate(-50 -50)`,opacity:l,children:t.jsx("path",{d:Oi,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("${Pi}")`}})]})}const wg={text:"#1a1a1a",sub:"var(--color-lightGray)",logoBase:"Logo_speechear_kr",copyrightColor:"var(--color-main)"};function kg(e={}){const n=ct(wg,hn,fn);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("${pa}")`}})]})}const Ag={Logo_speechear_kr:{"":Br,_white:dg,_textWhite:pg,_black:mg},Logo_speechearManager_kr:{"":Sr,_white:hg,_textWhite:fg,_black:Cg}};function Ng(e,n){if(e)return Ag[e]?.[n??""]??void 0}const Bg={speechear:Br,manager:Sr},Sg={speechear:"Logo_speechear_kr",manager:"Logo_speechearManager_kr"},Vi=10;function Dg(e,n){if(e<=0)return n("passCard.remainingSecond",{n:0});const a=Math.floor(e/86400);if(a>0)return n("passCard.remainingDay",{n:a});const r=Math.floor(e/3600);if(r>0)return n("passCard.remainingHour",{n:r});const o=Math.floor(e/60);return o>0?n("passCard.remainingMinute",{n:o}):n("passCard.remainingSecond",{n:Math.floor(e)})}function Tg(e,n,a){if(e==="manager"){const r=/년/.test(n)||/yr|year/i.test(n)||/1년|365/.test(n),o=a==="\uC624\uD508\uD2B9\uAC00"||a===Lt.t("passCard.specialLabel");return r?t.jsx(kg,{}):o?t.jsx(_g,{}):t.jsx(Hi,{})}return t.jsx(Fi,{})}function zi({product:e,showPrice:n=!1,plan:a,type:r,endDate:o,remainingSeconds:i,state:l="active",bg:c,bgOnly:u=!1,textColor:d,subColor:p,copyrightColor:m,logoSrc:h,label:C,price:y,originalPrice:f,discountLabel:v,onUse:b,onRefund:x,onDelete:_}){const{t:g}=pe.useTranslation(),A=e?Ri(e):void 0,w=r??A?.type??"speechear",S=a??A?.plan??"\uC774\uC6A9\uAD8C",N=C??A?.label,k=y??(n?A?.price:void 0),B=f??(n?A?.originalPrice:void 0),V=v??A?.discountLabel,H=s.useMemo(()=>{if(k)return null;const Z=e?.durationDays??ug(e?.code);if(!Z||Z<=0)return null;const ie=Z*86400;let J;if(i!=null)J=i;else if((l==="active"||l==="expired")&&o){const ve=new Date(o).getTime();if(Number.isNaN(ve))return null;const Te=/^(\d{4})-(\d{2})-(\d{2})/.exec(String(o)),de=/^(\d{4})-(\d{2})-(\d{2})/.exec(Mn()),ye=Math.round(Te&&de?(Date.UTC(+Te[1],+Te[2]-1,+Te[3])-Date.UTC(+de[1],+de[2]-1,+de[3]))/864e5:(ve-Date.now())/864e5);J=Math.max(0,ye)*86400}else l==="expired"?J=0:J=ie;const be=Math.max(0,Math.min(100,Math.floor(Math.min(J,ie)/ie*100)));return l==="pending"&&be>=100?null:{percent:be,remainingLabel:Dg(J,g)}},[k,l,o,i,e?.durationDays,e?.code,g]),j=s.useRef(null),[F,T]=s.useState({}),[Y,R]=s.useState(null),O=!!(b||x||_),W=s.useRef(!1),le=s.useRef(void 0),[q,P]=s.useState(h);s.useLayoutEffect(()=>{P(h)},[h]),s.useLayoutEffect(()=>{const Z=j.current;Z&&(d!==void 0&&Z.style.setProperty("--pass-card-text",d),p!==void 0&&Z.style.setProperty("--pass-card-sub",p),m!==void 0&&Z.style.setProperty("--pass-card-copyright",m))},[d,p,m]),s.useLayoutEffect(()=>{const Z=j.current;if(!Z)return;const ie=gg(Z);if(!h){const J=Sg[w],be=l==="expired"?"_black":ie?.logoColor??"",ve=Ng(J,be);P(ve)}},[c,h,w,l]);const M=Z=>{const ie=j.current;if(!ie)return null;const{left:J,top:be,width:ve,height:Te}=ie.getBoundingClientRect(),de=(Z.clientX-J)/ve-.5;return{rotateX:-((Z.clientY-be)/Te-.5)*Vi,rotateY:de*Vi}},L=(Z,ie)=>{const J=ie*-.7,be=Z*.7+10,ve=20+(Math.abs(Z)+Math.abs(ie))*.4;return`${J}px ${be}px ${ve}px rgba(0, 0, 0, 0.18)`},z=s.useCallback(Z=>{W.current=!0,clearTimeout(le.current),le.current=setTimeout(()=>{W.current=!1},200);const ie=M(Z);ie&&T({transform:`perspective(800px) rotateX(${ie.rotateX}deg) rotateY(${ie.rotateY}deg) scale3d(1.03, 1.03, 1.03)`,boxShadow:L(ie.rotateX,ie.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)"})},[]),$=s.useCallback(Z=>{const ie=M(Z);if(!ie)return;const J=W.current?"transform 0.2s ease, box-shadow 0.2s ease":"none";T({transform:`perspective(800px) rotateX(${ie.rotateX}deg) rotateY(${ie.rotateY}deg) scale3d(1.03, 1.03, 1.03)`,boxShadow:L(ie.rotateX,ie.rotateY),transition:J})},[]),E=s.useCallback(()=>{clearTimeout(le.current),W.current=!1,T({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)"})},[]),I=s.useCallback(()=>R(null),[]),oe=s.useMemo(()=>{const Z=S.replace("\uC774\uC6A9\uAD8C","").trim(),ie=Z.match(/^(.*?)(일|년)$/);return ie?t.jsxs(t.Fragment,{children:[t.jsx("span",{className:"h0 pass-card__plan-number",children:ie[1]}),t.jsx("span",{className:"h5b pass-card__plan-unit",children:ie[2]==="\uB144"?g("passCard.unitYear","\uB144"):g("passCard.unitDay","\uC77C")})]}):t.jsx("span",{className:"h0",children:Z})},[S,g]),re=s.useMemo(()=>{const Z=ca(k);if(!Z)return null;const ie=Z.match(/^([^\d]*)([\d.,]+)(.*)$/);if(!ie)return t.jsx("span",{className:"h1",children:Z});const[,J,be,ve]=ie;return t.jsxs(t.Fragment,{children:[J&&t.jsx("span",{className:"h5 pass-card__price-symbol",children:J}),t.jsx("span",{className:"h1 pass-card__price-amount",children:be}),ve.trim()&&t.jsx("span",{className:"h5 pass-card__price-symbol",children:ve.trim()})]})},[k]),ee=s.useCallback(()=>{O&&R(Z=>{if(Z)return null;const ie=j.current?.getBoundingClientRect();if(!ie)return null;const J=50;return{left:ie.left,right:ie.right,width:ie.width,height:ie.height,x:ie.x,y:ie.y+J,top:ie.top+J,bottom:ie.bottom+J}})},[O]),se=s.useCallback(Z=>{O&&(Z.key==="Enter"||Z.key===" ")&&(Z.preventDefault(),ee())},[O,ee]),Ce=[{items:[...b?[{label:g("passCard.menu.use","\uC0AC\uC6A9\uD558\uAE30"),icon:"play",onClick:()=>{b(),R(null)},closeOnSelect:!0}]:[],...x?[{label:g("passCard.menu.refund","\uD658\uBD88\uD558\uAE30"),icon:"rotate-ccw",onClick:()=>{x(),R(null)},closeOnSelect:!0}]:[],..._?[{label:g("passCard.menu.delete","\uC0AD\uC81C\uD558\uAE30"),icon:"trash-2",onClick:()=>{_(),R(null)},closeOnSelect:!0}]:[]]}];return t.jsxs(t.Fragment,{children:[t.jsx("div",{className:"pass-card-frame",children:t.jsxs("div",{ref:j,className:`pass-card pass-card--${l}${O?" pass-card--clickable":""}`,style:F,onMouseEnter:z,onMouseMove:$,onMouseLeave:E,onClick:ee,onKeyDown:O?se:void 0,role:O?"button":void 0,tabIndex:O?0:void 0,"aria-haspopup":O?"menu":void 0,"aria-expanded":O?!!Y:void 0,children:[c??Tg(w,S,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:q??Bg[w],className:"pass-card__logo",alt:w==="manager"?g("header.logoManager","\uB9D0\uADC0\uB9E4\uB2C8\uC800 \uB85C\uACE0"):g("header.logoMalgwi","\uB9D0\uADC0 \uB85C\uACE0")}),t.jsxs("div",{className:"pass-card__plan",children:[t.jsx("div",{children:oe}),t.jsx("span",{className:"h5b pass-card__plan-suffix",children:N?g("passCard.labeledPlan",{label:N}):g("passCard.planSuffix","\uC774\uC6A9\uAD8C")})]})]})}),k?t.jsxs("div",{className:"pass-card__price-area",children:[V&&t.jsx("span",{className:"pass-card__discount body-3",children:V}),t.jsxs("div",{className:"pass-card__price",children:[B&&t.jsx("span",{className:"pass-card__price-original body-3",children:ca(B)}),re]})]}):H?t.jsxs("div",{className:"pass-card__usage",children:[t.jsx("span",{className:"h5b pass-card__usage-remaining",children:H.remainingLabel}),t.jsxs("span",{className:"pass-card__usage-percent",children:[t.jsx("span",{className:"h1 pass-card__usage-value",children:H.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."})]})]})}),Y&&t.jsx(wn,{anchorRect:Y,onClose:I,ariaLabel:g("tooltip.menu","\uBA54\uB274"),children:t.jsx(Ea,{columns:Ce,onClose:I,size:"small"})})]})}const jg={text:"#1a1a1a",sub:"var(--color-lightGray)",logoBase:"Logo_speechear_kr",copyrightColor:"#1a1a1a"};function Eg(e={}){const n=`passcard-sound-line-grad-${s.useId()}`,a=ct(jg,hn,fn);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("${pa}")`}})]})}const Mg={text:"#1a1a1a",sub:"var(--color-lightGray)",logoBase:"Logo_speechear_kr",copyrightColor:"var(--color-main)"};function Lg(e={}){const n=ct(Mg,hn,fn);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("${pa}")`}})]})}function $g(e,n){if(e){if(n==="manager_pro")return t.jsx(Lg,{});if(n==="manager_standard")return t.jsx(Eg,{});if(n==="manager_lite")return t.jsx(Hi,{})}}function Rg(e){const n=ca(e);if(!n)return null;const a=n.match(/^([^\d]*)([\d.,]+)(.*)$/);if(!a)return n;const[,r,o,i]=a;return t.jsxs(t.Fragment,{children:[r&&t.jsx("span",{className:"payment-plan__pricing-symbol h4",children:r}),o,i.trim()&&t.jsx("span",{className:"payment-plan__pricing-symbol h4",children:i.trim()})]})}function Pg(e){const{t:n}=pe.useTranslation(),a=n("payment.plan.tierFallback",{defaultValue:"\uC774\uC6A9\uAD8C"}),r=n("payment.plan.openPromo",{defaultValue:"\uC624\uD508 \uD2B9\uAC00"}),{plan:o,onSelect:i,period:l="monthly",ownedCodes:c}=e||{},u=g=>!!g&&!!c?.includes(g),d=g=>g.onceOnly??/오픈\s*특가/.test(g.label??""),p=(o.tiers||[]).some(g=>d(g)&&u(g.code)),m=g=>{const A=g.prices?g.prices[l]:g.price;return A?(o.tiers||[]).some(w=>!!w.badge&&w.originals?.[l]===A):!1},h=o.colorToken?`var(--color-${o.colorToken})`:"var(--color-gray)",C=n("payment.plan.freePrice","\uBB34\uB8CC"),y=n("payment.products.mgrEnterprise.tier.price","\uBB38\uC758"),f=g=>g.prices?g.prices[l]:g.price,v=(o.tiers||[]).length>0&&(o.tiers||[]).every(g=>{const A=f(g);return A==="\uBB34\uB8CC"||A===C||A==="0\uC6D0"||typeof A=="string"&&/\d/.test(A)&&!/[1-9]/.test(A)}),b=(o.tiers||[]).length>0&&(o.tiers||[]).every(g=>{const A=f(g);return A==="\uBB38\uC758"||A===y}),x=o.group==="org",_=x?"manager":"speechear";return t.jsxs("div",{className:"payment-plan__card",style:{borderColor:h,"--plan-color":h},children:[o.cardBadge&&t.jsx("div",{className:"payment-plan__card-badge",children:t.jsx(ut,{label:o.cardBadge,variant:"main",size:"medium",fill:"soft"})}),t.jsxs("div",{className:"payment-plan__title",children:[t.jsx("p",{className:"payment-plan__quote body-3b",style:{color:h},children:o.quote||"\xA0"}),t.jsx("h3",{className:"payment-plan__title-heading h1",children:o.tier??o.title}),t.jsx("p",{className:"payment-plan__subtitle body-3",children:o.subtitle})]}),t.jsxs("div",{className:"payment-plan__box",children:[t.jsx("span",{className:"payment-plan__box-title body-3b",children:n("payment.plan.recommendedFor","\uC774\uB7F0 \uBD84\uAED8 \uCD94\uCC9C\uD569\uB2C8\uB2E4.")}),t.jsx("ul",{className:"payment-plan__feature-list",children:(o.recommendedFor||[]).map((g,A)=>t.jsxs("li",{className:"payment-plan__feature-item body-3",children:[t.jsx(We,{icon:"check",size:18,className:"payment-plan__feature-check",wrapperStyle:{color:h}}),g]},A))})]}),t.jsxs("div",{className:"payment-plan__box",children:[t.jsx("span",{className:"payment-plan__box-title body-3b",children:n("payment.plan.features","\uD575\uC2EC \uAE30\uB2A5")}),t.jsx("ul",{className:"payment-plan__feature-list",children:(o.features||[]).map((g,A)=>t.jsxs("li",{className:"payment-plan__feature-item body-3",children:[t.jsx(We,{icon:"check",size:18,className:"payment-plan__feature-check",wrapperStyle:{color:h}}),g]},A))})]}),t.jsx("div",{className:"payment-plan__card-pricing",children:v?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:()=>o.tiers?.[0]&&i?.({...o.tiers[0],productId:o.id,productTitle:o.title})}):t.jsx(t.Fragment,{children:t.jsx("div",{className:"payment-plan__pricing-list",children:(o.tiers||[]).map(g=>{const A=g.label||a,w=d(g),S=w||g.openPromo===!0,N=A.replace(/^오픈\s*특가\s*/,"")||a,k=g.prices?g.prices[l]:g.price,B=g.badge?S?`${r}
832
- ${g.badge}`:g.badge:void 0;if(w&&u(g.code))return null;if(!g.badge&&!p)return m(g)?null:t.jsxs("div",{className:`payment-plan__pricing-row payment-plan__pricing-row--static${g.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:g.label})}),t.jsx("div",{className:"payment-plan__pricing-row-price",children:t.jsx("span",{className:"payment-plan__pricing-current h1",children:Rg(k)})})]},g.id);const V=o.tier??(x?o.title:void 0),H=t.jsx(zi,{showPrice:!0,product:{type:_,code:g.code,name:N,label:V,price:k,originalPrice:g.originals?.[l]??void 0,discountLabel:B},bg:$g(x,o.id)}),j=()=>i?.({...g,productId:o.id,productTitle:o.title,preview:H});return t.jsx("div",{className:"payment-plan__pricing-card",onClick:j,onKeyDown:i?F=>{F.target===F.currentTarget&&(F.key==="Enter"||F.key===" ")&&(F.preventDefault(),j())}:void 0,role:i?"button":void 0,tabIndex:i?0:void 0,children:H},g.id)})})})})]})}function Ig({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 Tr='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 Wi={text:"#1a1a1a",sub:"var(--color-lightGray)",logoBase:"Logo_speechear_kr",copyrightColor:"#c9c9c9"};function Fg(){const e=ct(Wi,hn,fn);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("${Tr}")`}})})}const qi={text:"#ffffff",sub:"var(--color-lightGray)",logoBase:"Logo_speechearManager_kr",logoColor:"_white",copyrightColor:"#ffffff"};function Og(e={}){const n=ct(qi,hn,fn);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("${pa}")`}})]})}function Ui({keys:e,anchor:n="top-right",scale:a,className:r=""}){const o=Array.isArray(e)?e:[e];return t.jsx("span",{className:ge("shortcut-badge",`shortcut-badge--${n}`,r),style:a===void 0?void 0:{"--shortcut-badge-scale":String(a)},children:o.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 ma=(e,n,a)=>e+(n-e)*a;function Hg({speakers:e,size:n=300,viewT:a=0,activeSpeakerId:r=null,playedIds:o,selectedId:i=null,answerId:l=null,showFeedback:c=!1,pulseSelected:u=!1,pulseSelectedDuration:d,pulseScale:p,clickable:m=!1,onSelectSpeaker:h,buttonSize:C=40,showIcon:y=!0,onCenterClick:f,centerLabel:v,centerDisabled:b=!1,centerAttention:x=!1,shortcutAnchor:_="top-right",shortcutScale:g,scaleShortcut:A=!1}){const{t:w}=pe.useTranslation(),S=Math.max(0,Math.min(1,a)),N=n/2,k=110/300,B=.18,V=J=>n*(k+(J-1)*B),H=J=>{const be=V(J.row??1),ve=J.angleDeg*Math.PI/180;return{x:N+be*Math.cos(ve),y:N+be*Math.sin(ve)}},j=Math.max(...e.map(J=>J.row??1),1),F=n*.08,T=n*.1,Y=n*.24,R=n-2*F,O=n-T-Y,W=n-Y/2,le=s.useMemo(()=>[...new Set(e.map(J=>J.deg))].sort((J,be)=>J-be),[e]),q=le.length,P=Math.max(68,q>1?R/(q-1):0),M=s.useMemo(()=>new Map(le.map((J,be)=>[J,be])),[le]),L=J=>{const be=M.get(J.deg)??0,ve=N+(be-(q-1)/2)*P,Te=j>1?Math.min(68,O/(j-1)):0,de=Te*(j-1),ye=T+(O-de)/2,we=j===1?T+O*.4:ye+(j-(J.row??1))*Te;return{x:ve,y:we}},z=J=>{const be=H(J),ve=L(J);return{x:ma(be.x,ve.x,S),y:ma(be.y,ve.y,S)}},$={x:N,y:ma(N,W,S)},E=Math.round(C*1.2),I=Math.round(Math.max(16,Math.min(80,C*.7))),oe=[],re=new Map;for(const J of e){const be=J.row??1;re.has(be)||re.set(be,[]),re.get(be).push(J)}for(const[J,be]of re.entries()){if(be.length<2)continue;const ve=[...be].sort((Re,tt)=>Re.deg-tt.deg),Te=ve.map(Re=>z(Re)),de=ve.map(Re=>Re.deg),ye=de[de.length-1]-de[0],we=ye/(de.length-1),Q=360-ye,te=ve.length>=3&&we>0&&Q<=we*1.5,_e=Math.round(V(J)*1e3)/1e3,je=(Re,tt,Ke,Ue)=>{const fe=(tt.angleDeg-Re.angleDeg+540)%360-180;if(fe===0)return`L ${Ue.x} ${Ue.y}`;if(S===0)return`A ${_e} ${_e} 0 0 ${fe>0?1:0} ${Ue.x} ${Ue.y}`;const Ge=(Re.angleDeg+fe/2)*Math.PI/180,Ee={x:N+_e*Math.cos(Ge),y:N+_e*Math.sin(Ge)},$e={x:(Ke.x+Ue.x)/2,y:(Ke.y+Ue.y)/2},He={x:ma(Ee.x,$e.x,S),y:ma(Ee.y,$e.y,S)},Ye={x:2*He.x-$e.x,y:2*He.y-$e.y};return`Q ${Ye.x} ${Ye.y} ${Ue.x} ${Ue.y}`},ze=te?[...ve,ve[0]]:ve,Me=te?[...Te,Te[0]]:Te;let Oe=`M ${Me[0].x} ${Me[0].y}`;for(let Re=1;Re<Me.length;Re++)Oe+=" "+je(ze[Re-1],ze[Re],Me[Re-1],Me[Re]);oe.push({key:`arc-${J}`,d:Oe})}const ee=s.useMemo(()=>new Set(o??[]),[o]),se=J=>({idle:"",active:w("soundCompass.state.active","\uC18C\uB9AC \uB098\uB294 \uC911"),played:w("soundCompass.state.played","\uB4E4\uC74C"),correct:w("soundCompass.state.correct","\uC815\uB2F5"),wrong:w("soundCompass.state.wrong","\uC624\uB2F5")})[J],Ce=J=>{if(r===J.id)return"active";if(c){if(J.id===l)return"correct";if(J.id===i&&i!==l)return"wrong"}return ee.has(J.id)?"played":"idle"},Z=J=>r===J.id?"loop":c?J.id===l?"loop":null:u&&J.id===i?"once":null,ie=(J,be)=>{switch(J){case"played":case"correct":return t.jsx(Do,{size:be});case"wrong":return t.jsx(Fo,{size:be});default:return t.jsx(Io,{size:be})}};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:[S===0&&e.map(J=>{const{x:be,y:ve}=z(J);return t.jsx("line",{x1:$.x,y1:$.y,x2:be,y2:ve,stroke:"#dde3ec",strokeWidth:"1"},J.id)}),oe.map(J=>t.jsx("path",{d:J.d,fill:"none",stroke:"#dde3ec",strokeWidth:"1"},J.key))]}),x&&!b&&t.jsx("div",{className:"sound-compass__pulse sound-compass__pulse--active sound-compass__pulse--center",style:{width:E,height:E,left:$.x-E/2,top:$.y-E/2}}),f?t.jsx("button",{type:"button",className:`sound-compass__center sound-compass__center--button${b?" sound-compass__center--disabled":""}`,style:{width:E,height:E,left:$.x,top:$.y},"aria-label":v,"aria-disabled":b||void 0,tabIndex:b?-1:0,onClick:b?void 0:f,children:t.jsx(er,{size:I,color:"currentColor",strokeWidth:1.5})}):t.jsx("div",{className:"sound-compass__center",style:{width:E,height:E,left:$.x,top:$.y},children:t.jsx(er,{size:I,color:"currentColor",strokeWidth:1.5})}),e.map((J,be)=>{const{x:ve,y:Te}=z(J),de=Ce(J),ye=Z(J),we={...g!==void 0||A?{"--shortcut-badge-scale":String(g??Math.max(.75,Math.min(3,C/56)))}:null,pointerEvents:m?"auto":"none",cursor:m?"pointer":"default",zIndex:de!=="idle"?10:1},Q=C,te=Math.round(Math.max(10,Math.min(56,Q*.38))),_e=Math.round(Math.max(7,Math.min(18,Q*.2))),je=Math.round(Math.max(10,Math.min(56,Q*.4))),ze=y==="answered"&&(de==="played"||de==="correct"||de==="wrong"),Me=y===!0||ze,Oe=!ze;return t.jsxs("div",{className:"sound-compass__speaker-pos",style:{...we,left:ve-Q/2,top:Te-Q/2},children:[ye&&t.jsx("div",{className:`sound-compass__pulse sound-compass__pulse--${de}`+(ye==="once"?" sound-compass__pulse--once":""),style:{width:Q,height:Q,...ye==="once"&&d!==void 0?{"--sc-pulse-duration-once":`${d}ms`}:null,...p!==void 0?{"--sc-pulse-scale":String(p)}:null}}),t.jsxs("button",{type:"button",tabIndex:m?0:-1,"aria-disabled":m?void 0:!0,onClick:m?()=>h?.(J.id):void 0,className:`sound-compass__speaker-btn sound-compass__speaker-btn--${de}`,style:{width:Q,height:Q},"aria-label":se(de)?`${J.label}, ${se(de)}`:J.label,"aria-pressed":i!=null?J.id===i:void 0,children:[Me&&ie(de,te),Oe&&t.jsx("span",{className:"sound-compass__speaker-number",style:{fontSize:y===!0?_e:je},children:be+1})]}),J.shortcut&&t.jsx(Ui,{keys:J.shortcut,anchor:_,className:"sound-compass__speaker-shortcut"})]},J.id)})]})})}function Vg({children:e,position:n="top-left",size:a=24,className:r=""}){return t.jsx("span",{className:ge("circle-badge","circle-badge--number",`circle-badge--${a}`,`circle-badge--${n}`,r),children:e})}function zg({orientation:e="horizontal",label:n,className:a=""}){const r=ge("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 Gi({checked:e,onChange:n,name:a,value:r,disabled:o=!1,label:i,className:l=""}){const c=s.useId();return t.jsxs("label",{className:`radio${o?" radio--disabled":""} ${l}`.trim(),htmlFor:c,children:[t.jsx("input",{id:c,type:"radio",name:a,value:r,checked:e,disabled:o,onChange:u=>n?.(u.target.checked)}),t.jsx("span",{className:"radio__dot"}),i&&t.jsx("span",{className:"radio__label body-2",children:i})]})}function Wg({options:e,value:n,onChange:a,name:r,disabled:o=!1,direction:i="vertical",className:l="",ariaLabel:c}){const u=s.useId(),d=r??`radio-group-${u}`;return t.jsx("div",{className:`radio-group radio-group--${i} ${l}`.trim(),role:"radiogroup","aria-label":c,children:e.map(p=>t.jsx(Gi,{name:d,value:p.value,checked:n===p.value,disabled:o||p.disabled,label:p.label,onChange:m=>{m&&a?.(p.value)}},p.value))})}const qg={info:"info",success:"check-circle",warning:"alert-triangle",danger:"alert-circle"};function Ug({tone:e="info",title:n,message:a,children:r,dismissible:o=!1,onDismiss:i,className:l=""}){const{t:c}=pe.useTranslation(),[u,d]=s.useState(!1),p=s.useCallback(()=>{d(!0),i?.()},[i]);if(u)return null;const m=ge("alert",`alert--${e}`,l),h=!!n,C=!!(a||r);return t.jsxs("div",{className:m,role:"alert",children:[t.jsxs("div",{className:"alert__body",children:[t.jsxs("div",{className:"alert__header",children:[t.jsx(We,{icon:qg[e],size:20,className:"alert__icon"}),h&&t.jsx("span",{className:"alert__title body-2",children:n}),!h&&C&&t.jsx("div",{className:"alert__message body-3",children:a||r})]}),h&&C&&t.jsx("div",{className:"alert__message alert__message--indented body-3",children:a||r})]}),o&&t.jsx("button",{type:"button",className:"alert__dismiss",onClick:p,"aria-label":c("common.close","\uB2EB\uAE30"),children:"\xD7"})]})}const Gg={ready:"search",guide:"info",error:"circle-alert"};function Kg(e,n){const a=n.filter(Boolean);if(a.length===0)return e;const r=[];let o=0,i=0;for(const l of a){const c=e.indexOf(l,o);c<0||(c>o&&r.push(e.slice(o,c)),r.push(t.jsx("strong",{className:"search-summary__em body-2",children:l},i++)),o=c+l.length)}return o<e.length&&r.push(e.slice(o)),r}function Yg({status:e="guide",label:n,children:a,emphasis:r,icon:o,className:i=""}){const l=o===!1?null:o??Gg[e],c=ge("search-summary",`search-summary--${e}`,i),u=n??a,d=typeof u=="string"&&r&&r.length>0?Kg(u,r):u;return t.jsxs("div",{className:c,role:"status","aria-live":"polite",children:[l!=null&&t.jsx(We,{icon:l,size:18,className:"search-summary__icon"}),t.jsx("span",{className:"search-summary__text body-2",children:d})]})}function ha({title:e,items:n}){const{t:a}=pe.useTranslation(),{anchorRect:r,openAt:o,close:i}=ja();return t.jsxs(t.Fragment,{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:l=>o(l.currentTarget),onPointerLeave:i,onFocus:l=>o(l.currentTarget),onBlur:i}),r&&t.jsx(Rn,{title:e,items:n,showIndex:n.length>1,anchorRect:r,onClose:i})]})}function Zg({items:e=[],value:n,onChange:a,className:r="",size:o=40}){const i=s.useId(),{t:l}=pe.useTranslation(),c=s.useRef(null),u=e.find(f=>!f.disabled)?.key,d=e.some(f=>f.key===n)?n:u??e[0]?.key,p=e.find(f=>f.key===d&&!f.disabled)?.key??u,m=()=>Array.from(c.current?.querySelectorAll('[role="tab"]:not(:disabled)')??[]),h=(f,v=m())=>{if(v.length===0)return;const b=(f%v.length+v.length)%v.length;v[b]?.focus(),v[b]?.click()},C=f=>{if(!["ArrowRight","ArrowDown","ArrowLeft","ArrowUp","Home","End"].includes(f.key))return;f.preventDefault();const v=m(),b=v.indexOf(f.currentTarget);f.key==="ArrowRight"||f.key==="ArrowDown"?h(b+1,v):f.key==="ArrowLeft"||f.key==="ArrowUp"?h(b-1,v):f.key==="Home"?h(0,v):h(v.length-1,v)},y=e.find(f=>f.key===d);return t.jsxs("div",{className:`tabs ${r}`.trim(),children:[t.jsx("div",{ref:c,className:`tabs__list tabs__list--${o}`,role:"tablist","aria-label":l("tabs.ariaLabel","\uD0ED"),children:e.map(f=>t.jsx("button",{id:`tabs__tab-${i}-${f.key}`,type:"button",role:"tab","aria-selected":f.key===d,"aria-controls":`tabs__panel-${i}-${f.key}`,disabled:f.disabled,tabIndex:f.key===p?0:-1,className:`tabs__tab body-2${f.key===d?" tabs__tab--active":""}`,onClick:()=>a?.(f.key),onKeyDown:C,children:f.label},f.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 Xg={xs:12,sm:16,md:20,lg:28,xl:36};function Jg(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 Qg({src:e,name:n,size:a="md",shape:r="circle",className:o=""}){const{t:i}=pe.useTranslation(),[l,c]=s.useState(null),u=!!e&&l===e,d=n?Jg(n):"",p=!!e&&!u,m=!p&&!!d,h=n||i("avatar.ariaLabel","\uC0AC\uC6A9\uC790 \uC544\uBC14\uD0C0");return t.jsxs("span",{className:`avatar avatar--${a} avatar--${r} ${o}`.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:d}),!p&&!m&&t.jsx(We,{icon:"user-round",size:Xg[a],className:"avatar__icon"})]})}function e4(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(),o=e.type.toLowerCase();return a.some(i=>{const l=i.toLowerCase();return l.startsWith(".")?r.endsWith(l):l.endsWith("/*")?o.startsWith(l.slice(0,-1)):o===l})}function t4({onFilesSelected:e,accept:n,multiple:a=!1,disabled:r=!1,showFileList:o=!0,files:i,onRemove:l,className:c=""}){const{t:u}=pe.useTranslation(),d=s.useRef(null),[p,m]=s.useState(!1),[h,C]=s.useState([]),y=i??h,f=w=>{if(!w||w.length===0)return;const S=Array.from(w).filter(k=>e4(k,n));if(S.length===0)return;const N=a?S:S.slice(0,1);if(i===void 0){const k=a?[...y,...N]:N;C(k),e?.(k)}else e?.(N)},v=w=>{w.preventDefault(),!r&&m(!0)},b=w=>{w.preventDefault(),m(!1)},x=w=>{w.preventDefault(),m(!1),!r&&f(w.dataTransfer.files)},_=w=>{f(w.target.files),w.target.value=""},g=()=>{r||d.current?.click()},A=w=>{if(!r&&(l?.(w),i===void 0)){const S=y.filter((N,k)=>k!==w);C(S),l||e?.(S)}};return t.jsxs("div",{className:`file-upload ${c}`.trim(),children:[t.jsxs("div",{className:ge("file-upload__dropzone",p&&"file-upload__dropzone--dragging",r&&"file-upload__dropzone--disabled"),role:"button",tabIndex:r?-1:0,"aria-disabled":r,onClick:g,onKeyDown:w=>{(w.key==="Enter"||w.key===" ")&&(w.preventDefault(),g())},onDragOver:v,onDragLeave:b,onDrop:x,children:[t.jsx(We,{icon:"upload",size:24,className:"file-upload__icon"}),t.jsx("span",{className:"file-upload__prompt body-2",children:u("fileUpload.dragPrompt","\uD30C\uC77C\uC744 \uC774\uACF3\uC5D0 \uB4DC\uB798\uADF8\uD558\uC5EC \uC5C5\uB85C\uB4DC")}),t.jsx("button",{type:"button",className:"file-upload__browse-button body-3",disabled:r,onClick:w=>{w.stopPropagation(),g()},children:u("fileUpload.browseButton","\uD30C\uC77C \uC120\uD0DD")}),t.jsx("input",{ref:d,type:"file",className:"file-upload__input",accept:n,multiple:a,disabled:r,onChange:_,tabIndex:-1})]}),o&&y.length>0&&t.jsx("ul",{className:"file-upload__list",children:y.map((w,S)=>t.jsxs("li",{className:"file-upload__list-item body-3",children:[t.jsx("span",{className:"file-upload__file-name body-3",children:w.name}),t.jsx("button",{type:"button",className:"file-upload__remove-button","aria-label":u("fileUpload.removeAriaLabel",{name:w.name}),disabled:r,onClick:()=>A(S),children:t.jsx(We,{icon:"x",size:14})})]},`${w.name}-${S}`))})]})}function n4({items:e,className:n=""}){const{t:a}=pe.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,o)=>{const i=o===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}):t.jsx("button",{type:"button",className:"breadcrumb__link body-3",onClick:r.onClick,children:r.label}),!i&&t.jsx(We,{icon:"chevron-right",size:14,className:"breadcrumb__separator"})]},o)})})})}const a4={small:14,medium:20,large:28};function r4({value:e,onChange:n,max:a=5,readOnly:r=!1,size:o="medium",ariaLabel:i,className:l=""}){const{t:c}=pe.useTranslation(),u=r||!n,[d,p]=s.useState(null),m=d??e,h=a4[o],C=g=>{u||n?.(g)},y=g=>{u||p(g)},f=s.useRef(null),v=g=>{const A=Math.min(a,Math.max(1,g));n?.(A),Array.from(f.current?.querySelectorAll("[data-star]")??[]).find(w=>w.dataset.star===String(A))?.focus()},b=g=>{if(!u){switch(g.key){case"ArrowRight":case"ArrowUp":v((e||0)+1);break;case"ArrowLeft":case"ArrowDown":v((e||1)-1);break;case"Home":v(1);break;case"End":v(a);break;default:return}g.preventDefault()}},x=e>=1&&e<=a?Math.round(e):1,_=()=>{u||p(null)};return t.jsx("div",{className:`rating rating--${o}${u?" rating--readOnly":""} ${l}`.trim(),ref:f,onKeyDown:b,role:u?"img":"radiogroup","aria-label":u?c("rating.valueLabel",{value:e,max:a}):i??c("rating.groupLabel","\uBCC4\uC810"),onMouseLeave:_,children:Array.from({length:a},(g,A)=>{const w=A+1,S=Math.max(0,Math.min(1,m-A)),N=S>0&&S<1,k=t.jsxs("span",{className:"rating__star-wrap",children:[t.jsx(We,{icon:"star",size:h,className:"rating__star rating__star--empty"}),S>0&&t.jsx("span",{className:`rating__star-fill${N?" rating__star-fill--half":""}`,style:N?{width:`${S*100}%`}:void 0,children:t.jsx(We,{icon:"star",size:h,className:"rating__star rating__star--filled"})})]});return u?t.jsx("span",{className:"rating__item","aria-hidden":"true",children:k},w):t.jsx("button",{type:"button",className:"rating__item rating__item--interactive",role:"radio","aria-checked":e===w,"aria-label":c("rating.starLabel",{n:w}),"data-star":w,tabIndex:w===x?0:-1,onClick:()=>C(w),onMouseEnter:()=>y(w),children:k},w)})})}const o4=20,s4=["#499cdf","#4dcdc0","#2fae9e","#e6b94e","#d9534f","#e06b68","#bfc7d1"];function i4({value:e,onChange:n,palette:a=s4,size:r=40,className:o="",ariaLabel:i}){const{t:l}=pe.useTranslation();return t.jsx("div",{className:`color-picker ${o}`.trim(),role:"group","aria-label":i,children:a.map(c=>{const u=e?.toLowerCase()===c.toLowerCase();return t.jsx("button",{type:"button",className:`color-picker__swatch color-picker__swatch--${r}`,style:{backgroundColor:c},onClick:()=>n(c),"aria-pressed":u,"aria-label":u?`${c} ${l("colorPicker.selected","\uC120\uD0DD\uB428")}`:c,children:u&&t.jsx(We,{icon:"check",size:o4,className:"color-picker__check"})},c)})})}function l4({icon:e,count:n,title:a,className:r="",onClick:o,onMouseEnter:i,onMouseLeave:l}){const c=ge("count-tile",o&&"count-tile--clickable",r);return t.jsxs("div",{className:c,onClick:o,onKeyDown:o?u=>{u.key!=="Enter"&&u.key!==" "||(u.preventDefault(),u.currentTarget.click())}:void 0,onMouseEnter:i,onMouseLeave:l,role:o?"button":"img",tabIndex:o?0:void 0,"aria-label":a?`${a} ${n}`:String(n),children:[t.jsx(We,{icon:e,size:20,className:"count-tile__icon"}),t.jsx("span",{className:"count-tile__count h5","aria-hidden":"true",children:n})]})}let fa=0,Ki="",Yi="",Ca=0;function Zi(){return Xi(!1)}function c4(){return Xi(!0)}function Xi(e){const n=typeof document<"u";fa===0&&n&&(Ki=document.body.style.overflow,document.body.style.overflow="hidden"),e&&n&&(Ca===0&&(Yi=document.body.style.paddingRight),Ca++,document.body.style.paddingRight="0px"),fa++;let a=!1;return()=>{a||(a=!0,fa=Math.max(0,fa-1),e&&n&&(Ca=Math.max(0,Ca-1),Ca===0&&(document.body.style.paddingRight=Yi)),fa===0&&n&&(document.body.style.overflow=Ki))}}const jr=new WeakMap;function Er(e,n){e&&jr.set(e,n)}function Mr(e){let n=e;for(let a=0;n&&!n.isConnected&&a<10;a++){let r=n;for(;r&&!jr.has(r);)r=r.parentElement;if(!r)return n;n=jr.get(r)??null}return n}function u4(){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 d4({open:e,onClose:n,ariaLabel:a,title:r,children:o,size:i="md",closeOnBackdrop:l=!0,closeOnEscape:c=!0,showClose:u=!0,className:d,contentClassName:p}){const{t:m}=pe.useTranslation(),h=s.useId(),C=s.useRef(null),y=s.useCallback(()=>n(),[n]);s.useEffect(()=>{if(!e)return;const x=document.activeElement,_=Zi(),g=C.current;return Er(g,x),g?.focus(),()=>{_();const A=document.activeElement;(!A||A===document.body||g&&g.contains(A))&&Mr(x)?.focus?.()}},[e]);const f=s.useRef(y),v=s.useRef(c);s.useEffect(()=>{f.current=y,v.current=c}),s.useEffect(()=>{if(e)return $n(()=>{v.current&&f.current()})},[e]);const b=s.useRef(!1);return vr(C,e),!e||typeof document>"u"?null:qt.createPortal(t.jsx("div",{className:ge("dialog",d),onPointerDown:l?x=>{b.current=x.target===x.currentTarget}:void 0,onMouseDown:x=>{x.target===x.currentTarget&&x.preventDefault()},onClick:l?x=>{const _=b.current;b.current=!1,_&&x.target===x.currentTarget&&y()}:void 0,children:t.jsxs("div",{ref:C,role:"dialog","aria-modal":"true","aria-label":r?void 0:a,"aria-labelledby":r?h:void 0,tabIndex:-1,className:ge("dialog__surface",`dialog__surface--${i}`,p),onClick:x=>x.stopPropagation(),children:[r?t.jsx("div",{className:"dialog__header",children:t.jsx("h2",{id:h,className:"dialog__title h4b",children:r})}):null,u?t.jsx("button",{type:"button",className:"dialog__close","aria-label":m("common.close","\uB2EB\uAE30"),onClick:y,children:t.jsx(u4,{})}):null,t.jsx("div",{className:"dialog__body",children:o})]})}),document.body)}function p4({columns:e,rows:n,rowKey:a,title:r,toolbar:o,empty:i="\uB4F1\uB85D\uB41C \uD56D\uBAA9\uC774 \uC5C6\uC2B5\uB2C8\uB2E4.",loading:l,caption:c,className:u=""}){const d=!l&&n.length===0;return t.jsxs("div",{className:ge("board",u),children:[r||o?t.jsxs("div",{className:"board__head",children:[r?t.jsx("h2",{className:"board__title",children:r}):t.jsx("span",{}),o?t.jsx("div",{className:"board__toolbar",children:o}):null]}):null,t.jsxs("table",{className:"board__table",children:[c?t.jsx("caption",{className:"board__caption",children:c}):null,t.jsx("thead",{children:t.jsx("tr",{children:e.map(p=>t.jsx("th",{scope:"col",className:ge("board__th",`board__cell--${p.headerAlign??p.align??"left"}`),style:p.width?{width:p.width}:void 0,children:p.header},p.key))})}),t.jsx("tbody",{children:l?t.jsx("tr",{children:t.jsx("td",{className:"board__state",colSpan:e.length,children:l})}):d?t.jsx("tr",{children:t.jsx("td",{className:"board__state",colSpan:e.length,children:i})}):n.map((p,m)=>t.jsx("tr",{className:"board__row",children:e.map(h=>t.jsx("td",{className:ge("board__td",`board__cell--${h.align??"left"}`),children:h.render(p,m)},h.key))},a(p,m)))})]})]})}function m4({name:e,role:n,photo:a,media:r,credentials:o,size:i=190,className:l=""}){return t.jsxs("div",{className:ge("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,o?.length?t.jsx("ul",{className:"person-card__credentials",children:o.map(c=>t.jsx("li",{children:c},c))}):null]})}function h4({groups:e,className:n=""}){return t.jsx("div",{className:ge("timeline",n),children:e.map(a=>t.jsxs("section",{className:"timeline__group",children:[t.jsx("h3",{className:"timeline__title",children:a.title}),t.jsx("ul",{className:"timeline__rows",children:a.entries.map((r,o)=>t.jsxs("li",{className:"timeline__row",children:[r.label?t.jsx("span",{className:"timeline__label",children:r.label}):null,t.jsx("div",{className:"timeline__items",children:r.items.map((i,l)=>t.jsx("p",{children:i},l))})]},`${r.label??""}-${o}`))})]},a.title))})}function f4({title:e,kind:n,body:a,badge:r,badgeSrc:o,footer:i,width:l,className:c=""}){const u=r??(o?t.jsx("img",{src:o,alt:""}):null);return t.jsxs("div",{className:ge("publication-card",c),style:l?{width:l,flexShrink:0}:void 0,children:[u?t.jsx("div",{className:"publication-card__badge","aria-hidden":"true",children:u}):null,t.jsx("h3",{className:"publication-card__title",children:e}),n?t.jsx("p",{className:"publication-card__kind",children:n}):null,t.jsx("p",{className:"publication-card__body",children:a}),i?t.jsx("div",{className:"publication-card__footer",children:i}):null]})}function C4({logo:e,alt:n,onDone:a,durationMs:r=3e3}){const o=wr(a);return s.useEffect(()=>{const i=setTimeout(()=>o.current?.(),r);return()=>clearTimeout(i)},[r,o]),t.jsx("div",{className:"splash-logo",style:{"--splash-logo-duration":`${r}ms`},"aria-hidden":"true",children:t.jsx("img",{src:e,alt:n,className:"splash-logo__image"})})}function g4({eyebrow:e,eyebrowIndex:n,title:a,description:r,level:o=2,tone:i="dark",className:l=""}){const c=o===1?"h1":"h2";return t.jsxs("div",{className:ge("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 b4({items:e,className:n=""}){return t.jsx("ul",{className:ge("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 Ji({value:e,onChange:n,suggestions:a,openOnFocus:r=!1}){const o=s.useId(),[i,l]=s.useState(!1),[c,u]=s.useState(-1),d=s.useRef(null),p=s.useMemo(()=>{if(!a.length)return[];const b=e??"";return b?a.filter(x=>x.toLowerCase().includes(b.toLowerCase())):r?a:[]},[a,e,r]);s.useEffect(()=>{i||u(-1)},[i]),s.useEffect(()=>()=>{d.current&&clearTimeout(d.current)},[]);const m=c<p.length?c:-1,h=s.useCallback(b=>{n?.(b),l(!1)},[n]),C=s.useCallback(()=>l(!0),[]),y=s.useCallback(()=>{l(!0),u(-1)},[]),f=s.useCallback(()=>{d.current=setTimeout(()=>l(!1),120)},[]),v=s.useCallback(b=>{b.nativeEvent.isComposing||b.keyCode===229||(b.key==="ArrowDown"?(b.preventDefault(),l(!0),u(x=>Math.min(p.length-1,(x<p.length?x:-1)+1))):b.key==="ArrowUp"?(b.preventDefault(),u(x=>Math.max(-1,(x<p.length?x:p.length)-1))):b.key==="Enter"?m>=0&&h(p[m]):b.key==="Escape"&&i&&(b.preventDefault(),l(!1)))},[p,m,i,h]);return{listId:o,open:i,activeIdx:m,filtered:p,handleFocus:C,handleBlur:f,handleInput:y,handleKeyDown:v,handleSelect:h}}const y4=typeof window<"u"?s.useLayoutEffect:s.useEffect;function Fn(e){const{value:n,defaultValue:a,name:r,inputRef:o,onChange:i,label:l,ariaLabel:c,required:u,placeholder:d,type:p="text",disabled:m=!1,readOnly:h=!1,error:C,helperText:y,maxLength:f,size:v=48,variant:b="input",fullWidth:x=!1,newline:_=!1,multiline:g=!1,rows:A=3,leftIcon:w,rightIcon:S,clearable:N=!1,list:k,showCount:B=!0,className:V="",onFocus:H,onBlur:j,onKeyDown:F,onEnter:T,inputMode:Y,autoComplete:R,autoFocus:O,suggestions:W,openOnFocus:le=!1}=e,q=h||m?void 0:W,{t:P}=pe.useTranslation(),M=s.useId();!l&&!c&&ea(`TextField:unnamed:${M}`,"[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 L=`tf-${M}`,z=`tf-helper-${M}`,$=s.useRef(null),E=Ji({value:n??"",onChange:i,suggestions:q??[],openOnFocus:le}),I=!!q&&E.open&&E.filtered.length>0,oe=s.useCallback(te=>{$.current=te,typeof o=="function"?o(te):o&&(o.current=te)},[o]),re=n!==void 0,ee=re&&p==="password",[se,Ce]=s.useState((a??"").length),Z=re?(n??"").length:se,ie=s.useRef(n);y4(()=>{ie.current=n}),s.useEffect(()=>{const te=$.current;if(!ee||!te)return;const _e=n??"";te.value!==_e&&(te.value=_e)},[ee,n]),s.useEffect(()=>{if(!_||!$.current)return;const te=$.current;te.style.height="",te.scrollHeight>te.clientHeight&&(te.style.height=`${te.scrollHeight}px`)},[n,se,_]);const J=f!=null&&Z>f,be=v===32?16:20,ve=ge("text-field",`text-field--s${v}`,b==="display"?"text-field--display":"",x?"text-field--full-width":"",m?"text-field--disabled":"",h?"text-field--readonly":"",C?"text-field--error":"",w?"text-field--has-left-icon":"",S||N?"text-field--has-right-icon":"",V),Te={id:L,...ee?{}:re?{value:n}:{defaultValue:a},ref:oe,placeholder:d,name:r,disabled:m,readOnly:h,autoFocus:O,maxLength:f,list:k,inputMode:Y,autoComplete:R,"aria-label":!l&&c?c:void 0,"aria-required":u,"aria-invalid":!!C,"aria-describedby":y||C?z:void 0,role:q?"combobox":void 0,"aria-autocomplete":q?"list":void 0,"aria-haspopup":q?"listbox":void 0,"aria-expanded":q?E.open:void 0,"aria-controls":I?E.listId:void 0,"aria-activedescendant":I&&E.activeIdx>=0?`${E.listId}-option-${E.activeIdx}`:void 0,onChange:te=>{const _e=te.target;re||Ce(_e.value.length),i?.(_e.value),q&&E.handleInput(),ee&&queueMicrotask(()=>{const je=ie.current??"";_e.value!==je&&(_e.value=je)})},onFocus:(te=>{H?.(te),q&&E.handleFocus()}),onBlur:(te=>{j?.(te),q&&E.handleBlur()}),onKeyDown:(te=>{q&&te.key==="Enter"&&!te.nativeEvent.isComposing&&E.activeIdx>=0?te.preventDefault():T&&te.key==="Enter"&&!te.nativeEvent.isComposing&&(te.preventDefault(),T()),F?.(te),q&&E.handleKeyDown(te)})},de=N&&!m&&!h&&Z>0,ye=()=>_?t.jsx("textarea",{...Te,className:"text-field__input text-field__input--auto body-2",rows:1}):g?t.jsx("textarea",{...Te,className:"text-field__input text-field__input--textarea body-2",rows:A}):t.jsx("input",{...Te,type:p,className:"text-field__input body-2"}),we=b==="display"&&!_&&!g&&!!d,Q=()=>t.jsxs(t.Fragment,{children:[ye(),we&&t.jsx("span",{className:"text-field__placeholder","aria-hidden":"true",children:d})]});return t.jsxs("div",{className:ve,children:[l&&t.jsxs("label",{htmlFor:L,className:"text-field__label caption-1",children:[l,u&&t.jsx("span",{className:"text-field__required",children:"*"})]}),t.jsxs("div",{className:"text-field__wrap",children:[w&&t.jsx("span",{className:"text-field__icon text-field__icon--left",children:t.jsx(We,{icon:w,label:"",className:"",svgClassName:"text-field__icon-svg",size:be})}),Q(),f!=null&&B&&t.jsxs("span",{className:`text-field__count caption-2${J?" text-field__count--over":""}`,children:[Z,"/",f]}),de&&t.jsx(ce,{size:24,type:"dot",icon:"x",variant:"transparent-gray",useBorder:!1,className:"text-field__clear",ariaLabel:P("textField.clearAriaLabel","\uC785\uB825\uAC12 \uC9C0\uC6B0\uAE30"),htmlType:"button",onMouseDown:te=>{te.preventDefault()},onClick:()=>{!re&&$.current&&($.current.value="",Ce(0)),i?.("")},tabIndex:-1}),S&&!de&&t.jsx("span",{className:"text-field__icon text-field__icon--right",children:t.jsx(We,{icon:S,label:"",className:"",svgClassName:"text-field__icon-svg",size:be})})]}),q&&E.open&&E.filtered.length>0&&t.jsx("ul",{id:E.listId,className:"text-field__suggestions",role:"listbox",children:E.filtered.map((te,_e)=>t.jsx("li",{id:`${E.listId}-option-${_e}`,role:"option","aria-selected":_e===E.activeIdx,className:`text-field__suggestion body-2${_e===E.activeIdx?" is-active":""}`,onMouseDown:je=>je.preventDefault(),onClick:()=>{E.handleSelect(te),$.current?.focus()},children:te},`${te}-${_e}`))}),(y||C)&&t.jsx("div",{className:"text-field__footer",children:t.jsx("span",{id:z,className:"text-field__helper caption-1",role:C?"alert":void 0,children:C||y})})]})}function en({options:e,value:n,onChange:a,placeholder:r,disabled:o=!1,block:i=!1,size:l=48,error:c=!1,className:u="",ariaLabel:d,ariaDescribedBy:p}){const{t:m}=pe.useTranslation(),h=r??m("dropdown.placeholder","\uC120\uD0DD"),C=s.useId(),y=s.useId(),f=s.useRef(null),v=s.useCallback(T=>{const Y=window.innerHeight-T.bottom<260&&T.top>260;return{position:"fixed",left:T.left,minWidth:T.width,...Y?{bottom:window.innerHeight-T.top+6}:{top:T.bottom+6},zIndex:9999}},[]),{open:b,setOpen:x,toggle:_,style:g,triggerRef:A,menuRef:w}=da({computeStyle:v}),[S,N]=s.useState(-1),k=s.useCallback(()=>N(-1),[]),B=e.find(T=>T.value===n);s.useEffect(()=>{if(b){const T=e.findIndex(Y=>Y.value===n);N(T>=0?T:e.length?0:-1),requestAnimationFrame(()=>{const Y=w.current;if(!Y)return;const R=Y.querySelectorAll(".dropdown__option")[T];R&&(Y.scrollTop=Math.max(0,R.offsetTop-Y.clientHeight/2+R.clientHeight/2))})}},[b]),s.useEffect(()=>{b&&N(T=>{if(T>=0&&T<e.length)return T;const Y=e.findIndex(R=>R.value===n);return Y>=0?Y:e.length?0:-1})},[b,e.length]);const V=s.useCallback(()=>{o||_()},[o,_]),H=s.useCallback(T=>{T.disabled||o||(a?.(T.value),x(!1))},[a,x,o]);s.useEffect(()=>{o&&x(!1)},[o,x]);const j=s.useCallback(T=>{if(!o){if(!b){(T.key==="Enter"||T.key===" "||T.key==="ArrowDown")&&(T.preventDefault(),x(!0));return}if(T.key==="Escape"){T.preventDefault(),x(!1);return}T.key==="ArrowDown"?(T.preventDefault(),N(Y=>{let R=Y+1;for(;R<e.length&&e[R].disabled;)R++;return R<e.length?R:Y})):T.key==="ArrowUp"?(T.preventDefault(),N(Y=>{let R=Y-1;for(;R>=0&&e[R].disabled;)R--;return R>=0?R:Y})):(T.key==="Enter"||T.key===" ")&&(T.preventDefault(),e[S]?H(e[S]):T.key===" "&&x(!1))}},[o,b,e,S,H,x]),F=b?t.jsx("div",{ref:w,id:C,className:"dropdown__menu","data-tooltip-ignore":!0,role:"listbox",style:g,onMouseLeave:k,onMouseDown:T=>T.preventDefault(),children:e.map((T,Y)=>t.jsxs("button",{id:`${C}-option-${Y}`,type:"button",role:"option","aria-selected":T.value===n,className:ge("dropdown__option body-2",T.value===n?"dropdown__option--active":"",Y===S?"dropdown__option--active":"",T.disabled?"dropdown__option--disabled":""),onMouseDown:R=>R.preventDefault(),onClick:()=>H(T),onMouseEnter:()=>N(Y),disabled:T.disabled,children:[t.jsx("span",{className:"dropdown__option-check",children:T.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"})})}),T.label]},T.value))}):null;return t.jsxs("div",{ref:f,className:ge("dropdown",`dropdown--s${l}`,b?"dropdown--open":"",i?"dropdown--block":"",c?"dropdown--error":"",u),onKeyDown:j,children:[t.jsxs("button",{ref:A,type:"button",className:"dropdown__trigger","aria-haspopup":"listbox","aria-expanded":b,"aria-controls":b?C:void 0,"aria-activedescendant":b&&S>=0?`${C}-option-${S}`:void 0,"aria-label":d,"aria-describedby":[d&&B?y:"",p??""].filter(Boolean).join(" ")||void 0,"aria-invalid":c||void 0,disabled:o,onClick:V,onBlur:T=>{b&&!w.current?.contains(T.relatedTarget)&&x(!1)},children:[t.jsx("span",{id:y,className:`dropdown__trigger-label body-2${B?"":" dropdown__trigger-label--placeholder"}`,children:B?B.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"&&qt.createPortal(F,f.current?.closest(".ihabdevteam-core-scope")??document.body)]})}function Ma({page:e,totalPages:n,onChange:a,prevLabel:r,nextLabel:o,className:i=""}){const{t:l}=pe.useTranslation(),c=r??l("common.prevPage","\uC774\uC804 \uD398\uC774\uC9C0"),u=o??l("common.nextPage","\uB2E4\uC74C \uD398\uC774\uC9C0"),d=Math.max(1,n),p=()=>a(Math.max(1,Math.min(d,e-1))),m=()=>a(Math.min(d,e+1));return t.jsxs("div",{className:ge("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),d)," / ",d]}),t.jsx(ce,{htmlType:"button",size:32,type:"dot",shape:"rounded",icon:"chevron-right",ariaLabel:u,disabled:e>=n,onClick:m})]})}function On(e){const{t:n}=pe.useTranslation(),{options:a=[],value:r=a[0]?.key,onChange:o=v=>{},className:i="",size:l=48,shape:c="pill",useBG:u=!0,fullWidth:d=!1,ariaLabel:p}=e||{},m=s.useRef(null),h=a.filter(v=>!v.disabled),C=v=>{if(!h.length)return;const b=Math.max(0,h.findIndex(_=>_.key===r)),x=v==="first"?h[0]:v==="last"?h[h.length-1]:h[(b+v+h.length)%h.length];x&&(o(x.key),Array.from(m.current?.querySelectorAll("[data-segkey]")??[]).find(_=>_.dataset.segkey===x.key)?.focus())},y=v=>{switch(v.key){case"ArrowRight":case"ArrowDown":C(1);break;case"ArrowLeft":case"ArrowUp":C(-1);break;case"Home":C("first");break;case"End":C("last");break;default:return}v.preventDefault()},f=h.some(v=>v.key===r)?r:h[0]?.key;return t.jsx("div",{ref:m,onKeyDown:y,className:ge("segmented-control",`segmented-control--${c}`,`segmented-control--${l}`,d&&"segmented-control--full",!u&&"segmented-control--no-bg",i),role:"radiogroup","aria-label":p??n("segmentedControl.ariaLabel","\uC120\uD0DD \uD0ED"),children:a.map(v=>t.jsx(ce,{htmlType:"button",role:"radio","aria-checked":v.key===r,"data-segkey":v.key,tabIndex:v.key===f?0:-1,label:v.label,count:v.count,disabled:v.disabled,className:v.key===r?"is-selected":"",onClick:()=>{v.disabled||o(v.key)},size:l,shape:c,useBorder:!1,useBG:!1},v.key))})}function Lr({count:e,search:n,segment:a,filters:r,pageSize:o,pagination:i,actions:l,className:c}){const{t:u}=pe.useTranslation(),d=e!=null&&t.jsxs("p",{className:"toolbar__count body-1",role:"status","aria-atomic":"true",children:[e.prefix??u("common.totalPrefix","\uCD1D "),t.jsx("span",{className:"toolbar__count-highlight",children:e.value}),e.unit,e.suffix]}),p=!!(n||r?.length||o||i||l);return t.jsxs("div",{className:ge("toolbar",c),children:[t.jsxs("div",{className:"toolbar__row",children:[d,a&&(Array.isArray(a)?a:[a]).map((m,h)=>t.jsx(On,{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(Fn,{className:"toolbar__search",size:40,value:n.value,onChange:n.onChange,placeholder:n.placeholder??u("common.search","\uAC80\uC0C9"),ariaLabel:n.placeholder??u("common.search","\uAC80\uC0C9"),clearable:!0}),r?.map((m,h)=>t.jsx(en,{size:40,options:m.options,value:m.value,onChange:m.onChange,ariaLabel:m.ariaLabel},h)),o&&t.jsx(en,{size:40,options:o.options,value:o.value,onChange:o.onChange,ariaLabel:o.ariaLabel??u("common.pageSizeSelect","\uD398\uC774\uC9C0\uB2F9 \uD45C\uC2DC \uAC1C\uC218")}),i&&t.jsx(Ma,{page:i.page,totalPages:i.total,onChange:i.onChange,prevLabel:i.prevLabel,nextLabel:i.nextLabel}),l]})})]})}function Qi(e){return typeof e=="string"?e:typeof e=="number"?String(e):Array.isArray(e)?e.map(Qi).join(""):""}function v4(e){let n=e.replace(/\r\n/g,`
831
+ and aids recovery.`,site:{title:"Site",malgwi:"Malgwi",soundDirection:"Sound Direction System",vrSoundDirection:"VR Sound Direction System",hearingTest:"Hearing Test Pro"},sns:{title:"SNS",naverBlog:"Naver Blog",kakao:"KAKAO Talk Open Chat"},policy:{title:"Policy",terms:"Terms of Service",privacy:"Privacy Policy"},ceo:"CEO",address:"Address",support:"Support",ceoName:"Ji-hye Han",addressValue:"302, 3F, Haechan Bldg, 32 Siocheong-gil, Chuncheon, Gangwon, Korea"},SC={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"}}},jC={timeHM:"{{hh}}:{{mm}}",timeH:"{{hh}}:{{mm}}"},TC={options:"Training Options",difficulty:"Difficulty",exclude:"Exclude",chosung:"Initial Consonant",excludeOptions:{none:"None",noImage:"No Image"}},EC={answer:"Answer",distractor:"Distractor"},MC={phaseWordDownload:"Download Word Data",phaseImageCheck:"Check Images",phasePairAnalysis:"Analyze Word Pairs",downloadingCount:"Downloading {{n}} words",checkingPage:"Checking page {{page}} list",imageCount:"{{done}} / {{total}} items"},LC={clearAriaLabel:"Clear input"},$C={ariaLabel:"Select tab"},RC={ariaLabel:"Tabs"},PC={dragPrompt:"Drag and drop files here",browseButton:"Choose Files",removeAriaLabel:"Remove {{name}}"},IC={ariaLabel:"User avatar"},FC={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"}},OC={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"}},VC={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)"}},HC={manage:{unit:"item(s)"}},zC={cancelLabel:"Cancel"},WC={subtitle:"Select a topic to start listening practice."},qC={steps:"Step {{current}} of {{total}}"},UC={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"},GC={resetColumns:"Reset column widths"},KC={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}}"},YC={ariaLabel:"Banner",dotAriaLabel:"Banner {{index}} of {{count}}"},ZC={selectYearMonth:"Select year and month",chooseDate:"Choose a date"},XC={previewRegion:"Report preview \u2014 scrollable sideways"},JC={description:"Description",textbox:"Text",training:"Training guide",menu:"Menu"},QC={devNone:"No acquisition data",place:{labial:"Bilabial",alveolar:"Alveolar",palatal:"Palatal",velar:"Velar",glottal:"Glottal"}},eg={clearSelection:"Clear selection"},tg={showResult:"Show {{type}} result"},ng={selected:"Selected",remove:"Remove",exclude:"Excluded",nthSelected:"Selection {{n}}"},ag={loading:"Loading"},rg={state:{active:"playing",played:"heard",correct:"correct",wrong:"wrong"}},og={ariaLabel:"Breadcrumb"},sg={common:Gf,calendar:Kf,passCard:Yf,searchField:Zf,rating:Xf,colorPicker:Jf,dropdown:Qf,accordion:eC,header:tC,nav:nC,settings:aC,usage:rC,account:oC,help:sC,training:iC,trainingSettings:lC,customers:cC,payment:uC,coupons:dC,visits:pC,company:mC,trainingType:hC,myWordTraining:fC,myWordTable:CC,keyWords:gC,wordTable:bC,wordSearch:yC,wordPrint:vC,topic:xC,accessLinkManager:_C,login:wC,device:kC,manager:AC,wordPairs:NC,game:BC,footer:DC,landing:SC,date:jC,trainingSetPage:TC,wordTrainingPreview:EC,wordData:MC,textField:LC,segmentedControl:$C,tabs:RC,fileUpload:PC,avatar:IC,myHomework:FC,trainingStatus:OC,store:VC,homework:HC,inquiry:zC,trainingPlanRun:WC,progress:qC,trainingMiss:UC,table:GC,wordScore:KC,topBanner:YC,datePicker:ZC,report:XC,tooltip:JC,phonemeProfile:QC,bulkBar:eg,debug:tg,badge:ng,loader:ag,soundCompass:rg,breadcrumb:og};const ig=[{code:"ko",label:"\uD55C\uAD6D\uC5B4"},{code:"en",label:"English"}],Mi="ko",lg="ihab_display_language";function Li(){try{const e=localStorage.getItem(lg);if(e&&ig.some(n=>n.code===e))return e}catch{}return Mi}function $i(e){try{document.documentElement.lang=e}catch{}}Lt.on("languageChanged",$i),$i(Li()),Lt.use(pe.initReactI18next).init({resources:{ko:{translation:Uf},en:{translation:sg}},lng:Li(),fallbackLng:Mi,interpolation:{escapeValue:!1},react:{useSuspense:!1}});function Ri(e){if(!(e==null||e===""))return ca(typeof e=="number"?`${e.toLocaleString("ko-KR")}\uC6D0`:e)}function cg(e){const n=`${e.code??""} ${e.name??""}`.toLowerCase();return/manager|매니저/.test(n)?"manager":"speechear"}function ug(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 o=a.match(/(\d+)\s*-?\s*(day|year)s?\b/i);return o?o[2].toLowerCase()==="year"?`${o[1]}\uB144`:`${o[1]}\uC77C`:a||"\uC774\uC6A9\uAD8C"}function dg(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 Pi(e){return{type:e.type??cg(e),plan:ug(e),label:e.label,price:Ri(e.price),originalPrice:Ri(e.originalPrice),discountLabel:e.discountLabel}}var pg='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',mg='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>',hg='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',fg='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',Cg='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>',gg='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',Ii='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 In={text:"--pass-card-text",sub:"--pass-card-sub",copyright:"--pass-card-copyright"},jr=new WeakMap;function bg(e){if(e)return jr.get(e)}function hn(e,n){e&&(e.style.setProperty(In.text,n.text),e.style.setProperty(In.sub,n.sub),n.copyrightColor&&e.style.setProperty(In.copyright,n.copyrightColor),jr.set(e,n))}function fn(e){e&&(e.style.removeProperty(In.text),e.style.removeProperty(In.sub),e.style.removeProperty(In.copyright),jr.delete(e))}const Fi={text:"var(--color-pureBlack)",sub:"var(--color-lightGray)",logoBase:"Logo_speechear_kr",copyrightColor:"#1a1a1a"};function Oi(e={}){const n=ct(Fi,hn,fn);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("${Ii}")`}})]})}const Vi="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 pa='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 yg={text:"#1a1a1a",sub:"var(--color-lightGray)",logoBase:"Logo_speechear_kr",copyrightColor:"var(--color-main)"},vg=[{scale:1,opacity:.55},{scale:2,opacity:.4},{scale:3.1,opacity:.28},{scale:4.5,opacity:.18},{scale:6,opacity:.1}];function Hi(e={}){const n=ct(yg,hn,fn),a="var(--color-main)",r=270,o=170;return t.jsxs("div",{ref:n,className:"pass-card-bg pass-card-bg-sound-move","aria-hidden":"true",children:[t.jsx("svg",{className:"pass-card-bg-sound-move__svg",viewBox:"0 0 300 189",preserveAspectRatio:"xMidYMid meet",xmlns:"http://www.w3.org/2000/svg",children:vg.map(({scale:i,opacity:l},c)=>t.jsx("g",{transform:`translate(${r} ${o}) scale(${i}) translate(-50 -50)`,opacity:l,children:t.jsx("path",{d:Vi,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("${pa}")`}})]})}const xg={text:"#ffffff",sub:"var(--color-lightGray)",logoBase:"Logo_speechear_kr",logoColor:"_white",copyrightColor:"#ffffff"},_g=[{scale:1,opacity:.55},{scale:2,opacity:.4},{scale:3.1,opacity:.28},{scale:4.5,opacity:.18},{scale:6,opacity:.1}];function wg(e={}){const n=ct(xg,hn,fn),a="#ffffff",r=270,o=170;return t.jsxs("div",{ref:n,className:"pass-card-bg pass-card-bg-sound-move-v1","aria-hidden":"true",children:[t.jsx("svg",{className:"pass-card-bg-sound-move-v1__svg",viewBox:"0 0 300 189",preserveAspectRatio:"xMidYMid meet",xmlns:"http://www.w3.org/2000/svg",children:_g.map(({scale:i,opacity:l},c)=>t.jsx("g",{transform:`translate(${r} ${o}) scale(${i}) translate(-50 -50)`,opacity:l,children:t.jsx("path",{d:Vi,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("${Ii}")`}})]})}const kg={text:"#1a1a1a",sub:"var(--color-lightGray)",logoBase:"Logo_speechear_kr",copyrightColor:"var(--color-main)"};function Ag(e={}){const n=ct(kg,hn,fn);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("${pa}")`}})]})}const Ng={Logo_speechear_kr:{"":Dr,_white:pg,_textWhite:mg,_black:hg},Logo_speechearManager_kr:{"":Sr,_white:fg,_textWhite:Cg,_black:gg}};function Bg(e,n){if(e)return Ng[e]?.[n??""]??void 0}const Dg={speechear:Dr,manager:Sr},Sg={speechear:"Logo_speechear_kr",manager:"Logo_speechearManager_kr"},zi=10;function jg(e,n){if(e<=0)return n("passCard.remainingSecond",{n:0});const a=Math.floor(e/86400);if(a>0)return n("passCard.remainingDay",{n:a});const r=Math.floor(e/3600);if(r>0)return n("passCard.remainingHour",{n:r});const o=Math.floor(e/60);return o>0?n("passCard.remainingMinute",{n:o}):n("passCard.remainingSecond",{n:Math.floor(e)})}function Tg(e,n,a){if(e==="manager"){const r=/년/.test(n)||/yr|year/i.test(n)||/1년|365/.test(n),o=a==="\uC624\uD508\uD2B9\uAC00"||a===Lt.t("passCard.specialLabel");return r?t.jsx(Ag,{}):o?t.jsx(wg,{}):t.jsx(Hi,{})}return t.jsx(Oi,{})}function Wi({product:e,showPrice:n=!1,plan:a,type:r,endDate:o,remainingSeconds:i,state:l="active",bg:c,bgOnly:u=!1,textColor:d,subColor:p,copyrightColor:m,logoSrc:h,label:C,price:y,originalPrice:f,discountLabel:v,onUse:b,onRefund:x,onDelete:_}){const{t:g}=pe.useTranslation(),A=e?Pi(e):void 0,w=r??A?.type??"speechear",D=a??A?.plan??"\uC774\uC6A9\uAD8C",B=C??A?.label,k=y??(n?A?.price:void 0),N=f??(n?A?.originalPrice:void 0),I=v??A?.discountLabel,O=s.useMemo(()=>{if(k)return null;const Z=e?.durationDays??dg(e?.code);if(!Z||Z<=0)return null;const ie=Z*86400;let J;if(i!=null)J=i;else if((l==="active"||l==="expired")&&o){const ve=new Date(o).getTime();if(Number.isNaN(ve))return null;const Te=/^(\d{4})-(\d{2})-(\d{2})/.exec(String(o)),de=/^(\d{4})-(\d{2})-(\d{2})/.exec(Mn()),ye=Math.round(Te&&de?(Date.UTC(+Te[1],+Te[2]-1,+Te[3])-Date.UTC(+de[1],+de[2]-1,+de[3]))/864e5:(ve-Date.now())/864e5);J=Math.max(0,ye)*86400}else l==="expired"?J=0:J=ie;const be=Math.max(0,Math.min(100,Math.floor(Math.min(J,ie)/ie*100)));return l==="pending"&&be>=100?null:{percent:be,remainingLabel:jg(J,g)}},[k,l,o,i,e?.durationDays,e?.code,g]),E=s.useRef(null),[V,j]=s.useState({}),[Y,R]=s.useState(null),H=!!(b||x||_),W=s.useRef(!1),le=s.useRef(void 0),[q,P]=s.useState(h);s.useLayoutEffect(()=>{P(h)},[h]),s.useLayoutEffect(()=>{const Z=E.current;Z&&(d!==void 0&&Z.style.setProperty("--pass-card-text",d),p!==void 0&&Z.style.setProperty("--pass-card-sub",p),m!==void 0&&Z.style.setProperty("--pass-card-copyright",m))},[d,p,m]),s.useLayoutEffect(()=>{const Z=E.current;if(!Z)return;const ie=bg(Z);if(!h){const J=Sg[w],be=l==="expired"?"_black":ie?.logoColor??"",ve=Bg(J,be);P(ve)}},[c,h,w,l]);const M=Z=>{const ie=E.current;if(!ie)return null;const{left:J,top:be,width:ve,height:Te}=ie.getBoundingClientRect(),de=(Z.clientX-J)/ve-.5;return{rotateX:-((Z.clientY-be)/Te-.5)*zi,rotateY:de*zi}},L=(Z,ie)=>{const J=ie*-.7,be=Z*.7+10,ve=20+(Math.abs(Z)+Math.abs(ie))*.4;return`${J}px ${be}px ${ve}px rgba(0, 0, 0, 0.18)`},z=s.useCallback(Z=>{W.current=!0,clearTimeout(le.current),le.current=setTimeout(()=>{W.current=!1},200);const ie=M(Z);ie&&j({transform:`perspective(800px) rotateX(${ie.rotateX}deg) rotateY(${ie.rotateY}deg) scale3d(1.03, 1.03, 1.03)`,boxShadow:L(ie.rotateX,ie.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)"})},[]),$=s.useCallback(Z=>{const ie=M(Z);if(!ie)return;const J=W.current?"transform 0.2s ease, box-shadow 0.2s ease":"none";j({transform:`perspective(800px) rotateX(${ie.rotateX}deg) rotateY(${ie.rotateY}deg) scale3d(1.03, 1.03, 1.03)`,boxShadow:L(ie.rotateX,ie.rotateY),transition:J})},[]),T=s.useCallback(()=>{clearTimeout(le.current),W.current=!1,j({transform:"perspective(800px) rotateX(0deg) rotateY(0deg) scale3d(1, 1, 1)",boxShadow:"0px 4px 16px rgba(0, 0, 0, 0.08)",transition:"transform 0.5s cubic-bezier(0.23, 1, 0.32, 1), box-shadow 0.5s cubic-bezier(0.23, 1, 0.32, 1)"})},[]),F=s.useCallback(()=>R(null),[]),oe=s.useMemo(()=>{const Z=D.replace("\uC774\uC6A9\uAD8C","").trim(),ie=Z.match(/^(.*?)(일|년)$/);return ie?t.jsxs(t.Fragment,{children:[t.jsx("span",{className:"h0 pass-card__plan-number",children:ie[1]}),t.jsx("span",{className:"h5b pass-card__plan-unit",children:ie[2]==="\uB144"?g("passCard.unitYear","\uB144"):g("passCard.unitDay","\uC77C")})]}):t.jsx("span",{className:"h0",children:Z})},[D,g]),ae=s.useMemo(()=>{const Z=ca(k);if(!Z)return null;const ie=Z.match(/^([^\d]*)([\d.,]+)(.*)$/);if(!ie)return t.jsx("span",{className:"h1",children:Z});const[,J,be,ve]=ie;return t.jsxs(t.Fragment,{children:[J&&t.jsx("span",{className:"h5 pass-card__price-symbol",children:J}),t.jsx("span",{className:"h1 pass-card__price-amount",children:be}),ve.trim()&&t.jsx("span",{className:"h5 pass-card__price-symbol",children:ve.trim()})]})},[k]),ee=s.useCallback(()=>{H&&R(Z=>{if(Z)return null;const ie=E.current?.getBoundingClientRect();if(!ie)return null;const J=50;return{left:ie.left,right:ie.right,width:ie.width,height:ie.height,x:ie.x,y:ie.y+J,top:ie.top+J,bottom:ie.bottom+J}})},[H]),se=s.useCallback(Z=>{H&&(Z.key==="Enter"||Z.key===" ")&&(Z.preventDefault(),ee())},[H,ee]),Ce=[{items:[...b?[{label:g("passCard.menu.use","\uC0AC\uC6A9\uD558\uAE30"),icon:"play",onClick:()=>{b(),R(null)},closeOnSelect:!0}]:[],...x?[{label:g("passCard.menu.refund","\uD658\uBD88\uD558\uAE30"),icon:"rotate-ccw",onClick:()=>{x(),R(null)},closeOnSelect:!0}]:[],..._?[{label:g("passCard.menu.delete","\uC0AD\uC81C\uD558\uAE30"),icon:"trash-2",onClick:()=>{_(),R(null)},closeOnSelect:!0}]:[]]}];return t.jsxs(t.Fragment,{children:[t.jsx("div",{className:"pass-card-frame",children:t.jsxs("div",{ref:E,className:`pass-card pass-card--${l}${H?" pass-card--clickable":""}`,style:V,onMouseEnter:z,onMouseMove:$,onMouseLeave:T,onClick:ee,onKeyDown:H?se:void 0,role:H?"button":void 0,tabIndex:H?0:void 0,"aria-haspopup":H?"menu":void 0,"aria-expanded":H?!!Y:void 0,children:[c??Tg(w,D,B),!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:q??Dg[w],className:"pass-card__logo",alt:w==="manager"?g("header.logoManager","\uB9D0\uADC0\uB9E4\uB2C8\uC800 \uB85C\uACE0"):g("header.logoMalgwi","\uB9D0\uADC0 \uB85C\uACE0")}),t.jsxs("div",{className:"pass-card__plan",children:[t.jsx("div",{children:oe}),t.jsx("span",{className:"h5b pass-card__plan-suffix",children:B?g("passCard.labeledPlan",{label:B}):g("passCard.planSuffix","\uC774\uC6A9\uAD8C")})]})]})}),k?t.jsxs("div",{className:"pass-card__price-area",children:[I&&t.jsx("span",{className:"pass-card__discount body-3",children:I}),t.jsxs("div",{className:"pass-card__price",children:[N&&t.jsx("span",{className:"pass-card__price-original body-3",children:ca(N)}),ae]})]}):O?t.jsxs("div",{className:"pass-card__usage",children:[t.jsx("span",{className:"h5b pass-card__usage-remaining",children:O.remainingLabel}),t.jsxs("span",{className:"pass-card__usage-percent",children:[t.jsx("span",{className:"h1 pass-card__usage-value",children:O.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."})]})]})}),Y&&t.jsx(wn,{anchorRect:Y,onClose:F,ariaLabel:g("tooltip.menu","\uBA54\uB274"),children:t.jsx(Ma,{columns:Ce,onClose:F,size:"small"})})]})}const Eg={text:"#1a1a1a",sub:"var(--color-lightGray)",logoBase:"Logo_speechear_kr",copyrightColor:"#1a1a1a"};function Mg(e={}){const n=`passcard-sound-line-grad-${s.useId()}`,a=ct(Eg,hn,fn);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("${pa}")`}})]})}const Lg={text:"#1a1a1a",sub:"var(--color-lightGray)",logoBase:"Logo_speechear_kr",copyrightColor:"var(--color-main)"};function $g(e={}){const n=ct(Lg,hn,fn);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("${pa}")`}})]})}function Rg(e,n){if(e){if(n==="manager_pro")return t.jsx($g,{});if(n==="manager_standard")return t.jsx(Mg,{});if(n==="manager_lite")return t.jsx(Hi,{})}}function Pg(e){const n=ca(e);if(!n)return null;const a=n.match(/^([^\d]*)([\d.,]+)(.*)$/);if(!a)return n;const[,r,o,i]=a;return t.jsxs(t.Fragment,{children:[r&&t.jsx("span",{className:"payment-plan__pricing-symbol h4",children:r}),o,i.trim()&&t.jsx("span",{className:"payment-plan__pricing-symbol h4",children:i.trim()})]})}function Ig(e){const{t:n}=pe.useTranslation(),a=n("payment.plan.tierFallback",{defaultValue:"\uC774\uC6A9\uAD8C"}),r=n("payment.plan.openPromo",{defaultValue:"\uC624\uD508 \uD2B9\uAC00"}),{plan:o,onSelect:i,period:l="monthly",ownedCodes:c}=e||{},u=g=>!!g&&!!c?.includes(g),d=g=>g.onceOnly??/오픈\s*특가/.test(g.label??""),p=(o.tiers||[]).some(g=>d(g)&&u(g.code)),m=g=>{const A=g.prices?g.prices[l]:g.price;return A?(o.tiers||[]).some(w=>!!w.badge&&w.originals?.[l]===A):!1},h=o.colorToken?`var(--color-${o.colorToken})`:"var(--color-gray)",C=n("payment.plan.freePrice","\uBB34\uB8CC"),y=n("payment.products.mgrEnterprise.tier.price","\uBB38\uC758"),f=g=>g.prices?g.prices[l]:g.price,v=(o.tiers||[]).length>0&&(o.tiers||[]).every(g=>{const A=f(g);return A==="\uBB34\uB8CC"||A===C||A==="0\uC6D0"||typeof A=="string"&&/\d/.test(A)&&!/[1-9]/.test(A)}),b=(o.tiers||[]).length>0&&(o.tiers||[]).every(g=>{const A=f(g);return A==="\uBB38\uC758"||A===y}),x=o.group==="org",_=x?"manager":"speechear";return t.jsxs("div",{className:"payment-plan__card",style:{borderColor:h,"--plan-color":h},children:[o.cardBadge&&t.jsx("div",{className:"payment-plan__card-badge",children:t.jsx(ut,{label:o.cardBadge,variant:"main",size:"medium",fill:"soft"})}),t.jsxs("div",{className:"payment-plan__title",children:[t.jsx("p",{className:"payment-plan__quote body-3b",style:{color:h},children:o.quote||"\xA0"}),t.jsx("h3",{className:"payment-plan__title-heading h1",children:o.tier??o.title}),t.jsx("p",{className:"payment-plan__subtitle body-3",children:o.subtitle})]}),t.jsxs("div",{className:"payment-plan__box",children:[t.jsx("span",{className:"payment-plan__box-title body-3b",children:n("payment.plan.recommendedFor","\uC774\uB7F0 \uBD84\uAED8 \uCD94\uCC9C\uD569\uB2C8\uB2E4.")}),t.jsx("ul",{className:"payment-plan__feature-list",children:(o.recommendedFor||[]).map((g,A)=>t.jsxs("li",{className:"payment-plan__feature-item body-3",children:[t.jsx(qe,{icon:"check",size:18,className:"payment-plan__feature-check",wrapperStyle:{color:h}}),g]},A))})]}),t.jsxs("div",{className:"payment-plan__box",children:[t.jsx("span",{className:"payment-plan__box-title body-3b",children:n("payment.plan.features","\uD575\uC2EC \uAE30\uB2A5")}),t.jsx("ul",{className:"payment-plan__feature-list",children:(o.features||[]).map((g,A)=>t.jsxs("li",{className:"payment-plan__feature-item body-3",children:[t.jsx(qe,{icon:"check",size:18,className:"payment-plan__feature-check",wrapperStyle:{color:h}}),g]},A))})]}),t.jsx("div",{className:"payment-plan__card-pricing",children:v?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:()=>o.tiers?.[0]&&i?.({...o.tiers[0],productId:o.id,productTitle:o.title})}):t.jsx(t.Fragment,{children:t.jsx("div",{className:"payment-plan__pricing-list",children:(o.tiers||[]).map(g=>{const A=g.label||a,w=d(g),D=w||g.openPromo===!0,B=A.replace(/^오픈\s*특가\s*/,"")||a,k=g.prices?g.prices[l]:g.price,N=g.badge?D?`${r}
832
+ ${g.badge}`:g.badge:void 0;if(w&&u(g.code))return null;if(!g.badge&&!p)return m(g)?null:t.jsxs("div",{className:`payment-plan__pricing-row payment-plan__pricing-row--static${g.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:g.label})}),t.jsx("div",{className:"payment-plan__pricing-row-price",children:t.jsx("span",{className:"payment-plan__pricing-current h1",children:Pg(k)})})]},g.id);const I=o.tier??(x?o.title:void 0),O=t.jsx(Wi,{showPrice:!0,product:{type:_,code:g.code,name:B,label:I,price:k,originalPrice:g.originals?.[l]??void 0,discountLabel:N},bg:Rg(x,o.id)}),E=()=>i?.({...g,productId:o.id,productTitle:o.title,preview:O});return t.jsx("div",{className:"payment-plan__pricing-card",onClick:E,onKeyDown:i?V=>{V.target===V.currentTarget&&(V.key==="Enter"||V.key===" ")&&(V.preventDefault(),E())}:void 0,role:i?"button":void 0,tabIndex:i?0:void 0,children:O},g.id)})})})})]})}function Fg({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 Tr='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 qi={text:"#1a1a1a",sub:"var(--color-lightGray)",logoBase:"Logo_speechear_kr",copyrightColor:"#c9c9c9"};function Og(){const e=ct(qi,hn,fn);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("${Tr}")`}})})}const Ui={text:"#ffffff",sub:"var(--color-lightGray)",logoBase:"Logo_speechearManager_kr",logoColor:"_white",copyrightColor:"#ffffff"};function Vg(e={}){const n=ct(Ui,hn,fn);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("${pa}")`}})]})}function Gi({keys:e,anchor:n="top-right",scale:a,className:r=""}){const o=Array.isArray(e)?e:[e];return t.jsx("span",{className:ge("shortcut-badge",`shortcut-badge--${n}`,r),style:a===void 0?void 0:{"--shortcut-badge-scale":String(a)},children:o.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 ma=(e,n,a)=>e+(n-e)*a;function Hg({speakers:e,size:n=300,viewT:a=0,activeSpeakerId:r=null,playedIds:o,selectedId:i=null,answerId:l=null,showFeedback:c=!1,pulseSelected:u=!1,pulseSelectedDuration:d,pulseScale:p,clickable:m=!1,onSelectSpeaker:h,buttonSize:C=40,showIcon:y=!0,onCenterClick:f,centerLabel:v,centerDisabled:b=!1,centerAttention:x=!1,shortcutAnchor:_="top-right",shortcutScale:g,scaleShortcut:A=!1}){const{t:w}=pe.useTranslation(),D=Math.max(0,Math.min(1,a)),B=n/2,k=110/300,N=.18,I=J=>n*(k+(J-1)*N),O=J=>{const be=I(J.row??1),ve=J.angleDeg*Math.PI/180;return{x:B+be*Math.cos(ve),y:B+be*Math.sin(ve)}},E=Math.max(...e.map(J=>J.row??1),1),V=n*.08,j=n*.1,Y=n*.24,R=n-2*V,H=n-j-Y,W=n-Y/2,le=s.useMemo(()=>[...new Set(e.map(J=>J.deg))].sort((J,be)=>J-be),[e]),q=le.length,P=Math.max(68,q>1?R/(q-1):0),M=s.useMemo(()=>new Map(le.map((J,be)=>[J,be])),[le]),L=J=>{const be=M.get(J.deg)??0,ve=B+(be-(q-1)/2)*P,Te=E>1?Math.min(68,H/(E-1)):0,de=Te*(E-1),ye=j+(H-de)/2,_e=E===1?j+H*.4:ye+(E-(J.row??1))*Te;return{x:ve,y:_e}},z=J=>{const be=O(J),ve=L(J);return{x:ma(be.x,ve.x,D),y:ma(be.y,ve.y,D)}},$={x:B,y:ma(B,W,D)},T=Math.round(C*1.2),F=Math.round(Math.max(16,Math.min(80,C*.7))),oe=[],ae=new Map;for(const J of e){const be=J.row??1;ae.has(be)||ae.set(be,[]),ae.get(be).push(J)}for(const[J,be]of ae.entries()){if(be.length<2)continue;const ve=[...be].sort((Re,tt)=>Re.deg-tt.deg),Te=ve.map(Re=>z(Re)),de=ve.map(Re=>Re.deg),ye=de[de.length-1]-de[0],_e=ye/(de.length-1),Q=360-ye,te=ve.length>=3&&_e>0&&Q<=_e*1.5,we=Math.round(I(J)*1e3)/1e3,Se=(Re,tt,Ye,Ke)=>{const fe=(tt.angleDeg-Re.angleDeg+540)%360-180;if(fe===0)return`L ${Ke.x} ${Ke.y}`;if(D===0)return`A ${we} ${we} 0 0 ${fe>0?1:0} ${Ke.x} ${Ke.y}`;const We=(Re.angleDeg+fe/2)*Math.PI/180,Ee={x:B+we*Math.cos(We),y:B+we*Math.sin(We)},$e={x:(Ye.x+Ke.x)/2,y:(Ye.y+Ke.y)/2},He={x:ma(Ee.x,$e.x,D),y:ma(Ee.y,$e.y,D)},Ue={x:2*He.x-$e.x,y:2*He.y-$e.y};return`Q ${Ue.x} ${Ue.y} ${Ke.x} ${Ke.y}`},ze=te?[...ve,ve[0]]:ve,Me=te?[...Te,Te[0]]:Te;let Oe=`M ${Me[0].x} ${Me[0].y}`;for(let Re=1;Re<Me.length;Re++)Oe+=" "+Se(ze[Re-1],ze[Re],Me[Re-1],Me[Re]);oe.push({key:`arc-${J}`,d:Oe})}const ee=s.useMemo(()=>new Set(o??[]),[o]),se=J=>({idle:"",active:w("soundCompass.state.active","\uC18C\uB9AC \uB098\uB294 \uC911"),played:w("soundCompass.state.played","\uB4E4\uC74C"),correct:w("soundCompass.state.correct","\uC815\uB2F5"),wrong:w("soundCompass.state.wrong","\uC624\uB2F5")})[J],Ce=J=>{if(r===J.id)return"active";if(c){if(J.id===l)return"correct";if(J.id===i&&i!==l)return"wrong"}return ee.has(J.id)?"played":"idle"},Z=J=>r===J.id?"loop":c?J.id===l?"loop":null:u&&J.id===i?"once":null,ie=(J,be)=>{switch(J){case"played":case"correct":return t.jsx(jo,{size:be});case"wrong":return t.jsx(Oo,{size:be});default:return t.jsx(Fo,{size:be})}};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:[D===0&&e.map(J=>{const{x:be,y:ve}=z(J);return t.jsx("line",{x1:$.x,y1:$.y,x2:be,y2:ve,stroke:"#dde3ec",strokeWidth:"1"},J.id)}),oe.map(J=>t.jsx("path",{d:J.d,fill:"none",stroke:"#dde3ec",strokeWidth:"1"},J.key))]}),x&&!b&&t.jsx("div",{className:"sound-compass__pulse sound-compass__pulse--active sound-compass__pulse--center",style:{width:T,height:T,left:$.x-T/2,top:$.y-T/2}}),f?t.jsx("button",{type:"button",className:`sound-compass__center sound-compass__center--button${b?" sound-compass__center--disabled":""}`,style:{width:T,height:T,left:$.x,top:$.y},"aria-label":v,"aria-disabled":b||void 0,tabIndex:b?-1:0,onClick:b?void 0:f,children:t.jsx(tr,{size:F,color:"currentColor",strokeWidth:1.5})}):t.jsx("div",{className:"sound-compass__center",style:{width:T,height:T,left:$.x,top:$.y},children:t.jsx(tr,{size:F,color:"currentColor",strokeWidth:1.5})}),e.map((J,be)=>{const{x:ve,y:Te}=z(J),de=Ce(J),ye=Z(J),_e={...g!==void 0||A?{"--shortcut-badge-scale":String(g??Math.max(.75,Math.min(3,C/56)))}:null,pointerEvents:m?"auto":"none",cursor:m?"pointer":"default",zIndex:de!=="idle"?10:1},Q=C,te=Math.round(Math.max(10,Math.min(56,Q*.38))),we=Math.round(Math.max(7,Math.min(18,Q*.2))),Se=Math.round(Math.max(10,Math.min(56,Q*.4))),ze=y==="answered"&&(de==="played"||de==="correct"||de==="wrong"),Me=y===!0||ze,Oe=!ze;return t.jsxs("div",{className:"sound-compass__speaker-pos",style:{..._e,left:ve-Q/2,top:Te-Q/2},children:[ye&&t.jsx("div",{className:`sound-compass__pulse sound-compass__pulse--${de}`+(ye==="once"?" sound-compass__pulse--once":""),style:{width:Q,height:Q,...ye==="once"&&d!==void 0?{"--sc-pulse-duration-once":`${d}ms`}:null,...p!==void 0?{"--sc-pulse-scale":String(p)}:null}}),t.jsxs("button",{type:"button",tabIndex:m?0:-1,"aria-disabled":m?void 0:!0,onClick:m?()=>h?.(J.id):void 0,className:`sound-compass__speaker-btn sound-compass__speaker-btn--${de}`,style:{width:Q,height:Q},"aria-label":se(de)?`${J.label}, ${se(de)}`:J.label,"aria-pressed":i!=null?J.id===i:void 0,children:[Me&&ie(de,te),Oe&&t.jsx("span",{className:"sound-compass__speaker-number",style:{fontSize:y===!0?we:Se},children:be+1})]}),J.shortcut&&t.jsx(Gi,{keys:J.shortcut,anchor:_,className:"sound-compass__speaker-shortcut"})]},J.id)})]})})}function zg({children:e,position:n="top-left",size:a=24,className:r=""}){return t.jsx("span",{className:ge("circle-badge","circle-badge--number",`circle-badge--${a}`,`circle-badge--${n}`,r),children:e})}function Wg({orientation:e="horizontal",label:n,className:a=""}){const r=ge("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 Ki({checked:e,onChange:n,name:a,value:r,disabled:o=!1,label:i,className:l=""}){const c=s.useId();return t.jsxs("label",{className:`radio${o?" radio--disabled":""} ${l}`.trim(),htmlFor:c,children:[t.jsx("input",{id:c,type:"radio",name:a,value:r,checked:e,disabled:o,onChange:u=>n?.(u.target.checked)}),t.jsx("span",{className:"radio__dot"}),i&&t.jsx("span",{className:"radio__label body-2",children:i})]})}function qg({options:e,value:n,onChange:a,name:r,disabled:o=!1,direction:i="vertical",className:l="",ariaLabel:c}){const u=s.useId(),d=r??`radio-group-${u}`;return t.jsx("div",{className:`radio-group radio-group--${i} ${l}`.trim(),role:"radiogroup","aria-label":c,children:e.map(p=>t.jsx(Ki,{name:d,value:p.value,checked:n===p.value,disabled:o||p.disabled,label:p.label,onChange:m=>{m&&a?.(p.value)}},p.value))})}const Ug={info:"info",success:"check-circle",warning:"alert-triangle",danger:"alert-circle"};function Gg({tone:e="info",title:n,message:a,children:r,dismissible:o=!1,onDismiss:i,className:l=""}){const{t:c}=pe.useTranslation(),[u,d]=s.useState(!1),p=s.useCallback(()=>{d(!0),i?.()},[i]);if(u)return null;const m=ge("alert",`alert--${e}`,l),h=!!n,C=!!(a||r);return t.jsxs("div",{className:m,role:"alert",children:[t.jsxs("div",{className:"alert__body",children:[t.jsxs("div",{className:"alert__header",children:[t.jsx(qe,{icon:Ug[e],size:20,className:"alert__icon"}),h&&t.jsx("span",{className:"alert__title body-2",children:n}),!h&&C&&t.jsx("div",{className:"alert__message body-3",children:a||r})]}),h&&C&&t.jsx("div",{className:"alert__message alert__message--indented body-3",children:a||r})]}),o&&t.jsx("button",{type:"button",className:"alert__dismiss",onClick:p,"aria-label":c("common.close","\uB2EB\uAE30"),children:"\xD7"})]})}const Kg={ready:"search",guide:"info",error:"circle-alert"};function Yg(e,n){const a=n.filter(Boolean);if(a.length===0)return e;const r=[];let o=0,i=0;for(const l of a){const c=e.indexOf(l,o);c<0||(c>o&&r.push(e.slice(o,c)),r.push(t.jsx("strong",{className:"search-summary__em body-2",children:l},i++)),o=c+l.length)}return o<e.length&&r.push(e.slice(o)),r}function Zg({status:e="guide",label:n,children:a,emphasis:r,icon:o,className:i=""}){const l=o===!1?null:o??Kg[e],c=ge("search-summary",`search-summary--${e}`,i),u=n??a,d=typeof u=="string"&&r&&r.length>0?Yg(u,r):u;return t.jsxs("div",{className:c,role:"status","aria-live":"polite",children:[l!=null&&t.jsx(qe,{icon:l,size:18,className:"search-summary__icon"}),t.jsx("span",{className:"search-summary__text body-2",children:d})]})}function ha({title:e,items:n}){const{t:a}=pe.useTranslation(),{anchorRect:r,openAt:o,close:i}=Ea();return t.jsxs(t.Fragment,{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:l=>o(l.currentTarget),onPointerLeave:i,onFocus:l=>o(l.currentTarget),onBlur:i}),r&&t.jsx(Rn,{title:e,items:n,showIndex:n.length>1,anchorRect:r,onClose:i})]})}function Xg({items:e=[],value:n,onChange:a,className:r="",size:o=40}){const i=s.useId(),{t:l}=pe.useTranslation(),c=s.useRef(null),u=e.find(f=>!f.disabled)?.key,d=e.some(f=>f.key===n)?n:u??e[0]?.key,p=e.find(f=>f.key===d&&!f.disabled)?.key??u,m=()=>Array.from(c.current?.querySelectorAll('[role="tab"]:not(:disabled)')??[]),h=(f,v=m())=>{if(v.length===0)return;const b=(f%v.length+v.length)%v.length;v[b]?.focus(),v[b]?.click()},C=f=>{if(!["ArrowRight","ArrowDown","ArrowLeft","ArrowUp","Home","End"].includes(f.key))return;f.preventDefault();const v=m(),b=v.indexOf(f.currentTarget);f.key==="ArrowRight"||f.key==="ArrowDown"?h(b+1,v):f.key==="ArrowLeft"||f.key==="ArrowUp"?h(b-1,v):f.key==="Home"?h(0,v):h(v.length-1,v)},y=e.find(f=>f.key===d);return t.jsxs("div",{className:`tabs ${r}`.trim(),children:[t.jsx("div",{ref:c,className:`tabs__list tabs__list--${o}`,role:"tablist","aria-label":l("tabs.ariaLabel","\uD0ED"),children:e.map(f=>t.jsx("button",{id:`tabs__tab-${i}-${f.key}`,type:"button",role:"tab","aria-selected":f.key===d,"aria-controls":`tabs__panel-${i}-${f.key}`,disabled:f.disabled,tabIndex:f.key===p?0:-1,className:`tabs__tab body-2${f.key===d?" tabs__tab--active":""}`,onClick:()=>a?.(f.key),onKeyDown:C,children:f.label},f.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 Jg={xs:12,sm:16,md:20,lg:28,xl:36};function Qg(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 e4({src:e,name:n,size:a="md",shape:r="circle",className:o=""}){const{t:i}=pe.useTranslation(),[l,c]=s.useState(null),u=!!e&&l===e,d=n?Qg(n):"",p=!!e&&!u,m=!p&&!!d,h=n||i("avatar.ariaLabel","\uC0AC\uC6A9\uC790 \uC544\uBC14\uD0C0");return t.jsxs("span",{className:`avatar avatar--${a} avatar--${r} ${o}`.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:d}),!p&&!m&&t.jsx(qe,{icon:"user-round",size:Jg[a],className:"avatar__icon"})]})}function t4(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(),o=e.type.toLowerCase();return a.some(i=>{const l=i.toLowerCase();return l.startsWith(".")?r.endsWith(l):l.endsWith("/*")?o.startsWith(l.slice(0,-1)):o===l})}function n4({onFilesSelected:e,accept:n,multiple:a=!1,disabled:r=!1,showFileList:o=!0,files:i,onRemove:l,className:c=""}){const{t:u}=pe.useTranslation(),d=s.useRef(null),[p,m]=s.useState(!1),[h,C]=s.useState([]),y=i??h,f=w=>{if(!w||w.length===0)return;const D=Array.from(w).filter(k=>t4(k,n));if(D.length===0)return;const B=a?D:D.slice(0,1);if(i===void 0){const k=a?[...y,...B]:B;C(k),e?.(k)}else e?.(B)},v=w=>{w.preventDefault(),!r&&m(!0)},b=w=>{w.preventDefault(),m(!1)},x=w=>{w.preventDefault(),m(!1),!r&&f(w.dataTransfer.files)},_=w=>{f(w.target.files),w.target.value=""},g=()=>{r||d.current?.click()},A=w=>{if(!r&&(l?.(w),i===void 0)){const D=y.filter((B,k)=>k!==w);C(D),l||e?.(D)}};return t.jsxs("div",{className:`file-upload ${c}`.trim(),children:[t.jsxs("div",{className:ge("file-upload__dropzone",p&&"file-upload__dropzone--dragging",r&&"file-upload__dropzone--disabled"),role:"button",tabIndex:r?-1:0,"aria-disabled":r,onClick:g,onKeyDown:w=>{(w.key==="Enter"||w.key===" ")&&(w.preventDefault(),g())},onDragOver:v,onDragLeave:b,onDrop:x,children:[t.jsx(qe,{icon:"upload",size:24,className:"file-upload__icon"}),t.jsx("span",{className:"file-upload__prompt body-2",children:u("fileUpload.dragPrompt","\uD30C\uC77C\uC744 \uC774\uACF3\uC5D0 \uB4DC\uB798\uADF8\uD558\uC5EC \uC5C5\uB85C\uB4DC")}),t.jsx("button",{type:"button",className:"file-upload__browse-button body-3",disabled:r,onClick:w=>{w.stopPropagation(),g()},children:u("fileUpload.browseButton","\uD30C\uC77C \uC120\uD0DD")}),t.jsx("input",{ref:d,type:"file",className:"file-upload__input",accept:n,multiple:a,disabled:r,onChange:_,tabIndex:-1})]}),o&&y.length>0&&t.jsx("ul",{className:"file-upload__list",children:y.map((w,D)=>t.jsxs("li",{className:"file-upload__list-item body-3",children:[t.jsx("span",{className:"file-upload__file-name body-3",children:w.name}),t.jsx("button",{type:"button",className:"file-upload__remove-button","aria-label":u("fileUpload.removeAriaLabel",{name:w.name}),disabled:r,onClick:()=>A(D),children:t.jsx(qe,{icon:"x",size:14})})]},`${w.name}-${D}`))})]})}function a4({items:e,className:n=""}){const{t:a}=pe.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,o)=>{const i=o===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}):t.jsx("button",{type:"button",className:"breadcrumb__link body-3",onClick:r.onClick,children:r.label}),!i&&t.jsx(qe,{icon:"chevron-right",size:14,className:"breadcrumb__separator"})]},o)})})})}const r4={small:14,medium:20,large:28};function o4({value:e,onChange:n,max:a=5,readOnly:r=!1,size:o="medium",ariaLabel:i,className:l=""}){const{t:c}=pe.useTranslation(),u=r||!n,[d,p]=s.useState(null),m=d??e,h=r4[o],C=g=>{u||n?.(g)},y=g=>{u||p(g)},f=s.useRef(null),v=g=>{const A=Math.min(a,Math.max(1,g));n?.(A),Array.from(f.current?.querySelectorAll("[data-star]")??[]).find(w=>w.dataset.star===String(A))?.focus()},b=g=>{if(!u){switch(g.key){case"ArrowRight":case"ArrowUp":v((e||0)+1);break;case"ArrowLeft":case"ArrowDown":v((e||1)-1);break;case"Home":v(1);break;case"End":v(a);break;default:return}g.preventDefault()}},x=e>=1&&e<=a?Math.round(e):1,_=()=>{u||p(null)};return t.jsx("div",{className:`rating rating--${o}${u?" rating--readOnly":""} ${l}`.trim(),ref:f,onKeyDown:b,role:u?"img":"radiogroup","aria-label":u?c("rating.valueLabel",{value:e,max:a}):i??c("rating.groupLabel","\uBCC4\uC810"),onMouseLeave:_,children:Array.from({length:a},(g,A)=>{const w=A+1,D=Math.max(0,Math.min(1,m-A)),B=D>0&&D<1,k=t.jsxs("span",{className:"rating__star-wrap",children:[t.jsx(qe,{icon:"star",size:h,className:"rating__star rating__star--empty"}),D>0&&t.jsx("span",{className:`rating__star-fill${B?" rating__star-fill--half":""}`,style:B?{width:`${D*100}%`}:void 0,children:t.jsx(qe,{icon:"star",size:h,className:"rating__star rating__star--filled"})})]});return u?t.jsx("span",{className:"rating__item","aria-hidden":"true",children:k},w):t.jsx("button",{type:"button",className:"rating__item rating__item--interactive",role:"radio","aria-checked":e===w,"aria-label":c("rating.starLabel",{n:w}),"data-star":w,tabIndex:w===x?0:-1,onClick:()=>C(w),onMouseEnter:()=>y(w),children:k},w)})})}const s4=20,i4=["#499cdf","#4dcdc0","#2fae9e","#e6b94e","#d9534f","#e06b68","#bfc7d1"];function l4({value:e,onChange:n,palette:a=i4,size:r=40,className:o="",ariaLabel:i}){const{t:l}=pe.useTranslation();return t.jsx("div",{className:`color-picker ${o}`.trim(),role:"group","aria-label":i,children:a.map(c=>{const u=e?.toLowerCase()===c.toLowerCase();return t.jsx("button",{type:"button",className:`color-picker__swatch color-picker__swatch--${r}`,style:{backgroundColor:c},onClick:()=>n(c),"aria-pressed":u,"aria-label":u?`${c} ${l("colorPicker.selected","\uC120\uD0DD\uB428")}`:c,children:u&&t.jsx(qe,{icon:"check",size:s4,className:"color-picker__check"})},c)})})}function c4({icon:e,count:n,title:a,className:r="",onClick:o,onMouseEnter:i,onMouseLeave:l}){const c=ge("count-tile",o&&"count-tile--clickable",r);return t.jsxs("div",{className:c,onClick:o,onKeyDown:o?u=>{u.key!=="Enter"&&u.key!==" "||(u.preventDefault(),u.currentTarget.click())}:void 0,onMouseEnter:i,onMouseLeave:l,role:o?"button":"img",tabIndex:o?0:void 0,"aria-label":a?`${a} ${n}`:String(n),children:[t.jsx(qe,{icon:e,size:20,className:"count-tile__icon"}),t.jsx("span",{className:"count-tile__count h5","aria-hidden":"true",children:n})]})}let fa=0,Yi="",Zi="",Ca=0;function Xi(){return Ji(!1)}function u4(){return Ji(!0)}function Ji(e){const n=typeof document<"u";fa===0&&n&&(Yi=document.body.style.overflow,document.body.style.overflow="hidden"),e&&n&&(Ca===0&&(Zi=document.body.style.paddingRight),Ca++,document.body.style.paddingRight="0px"),fa++;let a=!1;return()=>{a||(a=!0,fa=Math.max(0,fa-1),e&&n&&(Ca=Math.max(0,Ca-1),Ca===0&&(document.body.style.paddingRight=Zi)),fa===0&&n&&(document.body.style.overflow=Yi))}}const Er=new WeakMap;function Mr(e,n){e&&Er.set(e,n)}function Lr(e){let n=e;for(let a=0;n&&!n.isConnected&&a<10;a++){let r=n;for(;r&&!Er.has(r);)r=r.parentElement;if(!r)return n;n=Er.get(r)??null}return n}function d4(){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 p4({open:e,onClose:n,ariaLabel:a,title:r,children:o,size:i="md",closeOnBackdrop:l=!0,closeOnEscape:c=!0,showClose:u=!0,className:d,contentClassName:p}){const{t:m}=pe.useTranslation(),h=s.useId(),C=s.useRef(null),y=s.useCallback(()=>n(),[n]);s.useEffect(()=>{if(!e)return;const x=document.activeElement,_=Xi(),g=C.current;return Mr(g,x),g?.focus(),()=>{_();const A=document.activeElement;(!A||A===document.body||g&&g.contains(A))&&Lr(x)?.focus?.()}},[e]);const f=s.useRef(y),v=s.useRef(c);s.useEffect(()=>{f.current=y,v.current=c}),s.useEffect(()=>{if(e)return $n(()=>{v.current&&f.current()})},[e]);const b=s.useRef(!1);return xr(C,e),!e||typeof document>"u"?null:Ut.createPortal(t.jsx("div",{className:ge("dialog",d),onPointerDown:l?x=>{b.current=x.target===x.currentTarget}:void 0,onMouseDown:x=>{x.target===x.currentTarget&&x.preventDefault()},onClick:l?x=>{const _=b.current;b.current=!1,_&&x.target===x.currentTarget&&y()}:void 0,children:t.jsxs("div",{ref:C,role:"dialog","aria-modal":"true","aria-label":r?void 0:a,"aria-labelledby":r?h:void 0,tabIndex:-1,className:ge("dialog__surface",`dialog__surface--${i}`,p),onClick:x=>x.stopPropagation(),children:[r?t.jsx("div",{className:"dialog__header",children:t.jsx("h2",{id:h,className:"dialog__title h4b",children:r})}):null,u?t.jsx("button",{type:"button",className:"dialog__close","aria-label":m("common.close","\uB2EB\uAE30"),onClick:y,children:t.jsx(d4,{})}):null,t.jsx("div",{className:"dialog__body",children:o})]})}),document.body)}function m4({columns:e,rows:n,rowKey:a,title:r,toolbar:o,empty:i="\uB4F1\uB85D\uB41C \uD56D\uBAA9\uC774 \uC5C6\uC2B5\uB2C8\uB2E4.",loading:l,caption:c,className:u=""}){const d=!l&&n.length===0;return t.jsxs("div",{className:ge("board",u),children:[r||o?t.jsxs("div",{className:"board__head",children:[r?t.jsx("h2",{className:"board__title",children:r}):t.jsx("span",{}),o?t.jsx("div",{className:"board__toolbar",children:o}):null]}):null,t.jsxs("table",{className:"board__table",children:[c?t.jsx("caption",{className:"board__caption",children:c}):null,t.jsx("thead",{children:t.jsx("tr",{children:e.map(p=>t.jsx("th",{scope:"col",className:ge("board__th",`board__cell--${p.headerAlign??p.align??"left"}`),style:p.width?{width:p.width}:void 0,children:p.header},p.key))})}),t.jsx("tbody",{children:l?t.jsx("tr",{children:t.jsx("td",{className:"board__state",colSpan:e.length,children:l})}):d?t.jsx("tr",{children:t.jsx("td",{className:"board__state",colSpan:e.length,children:i})}):n.map((p,m)=>t.jsx("tr",{className:"board__row",children:e.map(h=>t.jsx("td",{className:ge("board__td",`board__cell--${h.align??"left"}`),children:h.render(p,m)},h.key))},a(p,m)))})]})]})}function h4({name:e,role:n,photo:a,media:r,credentials:o,size:i=190,className:l=""}){return t.jsxs("div",{className:ge("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,o?.length?t.jsx("ul",{className:"person-card__credentials",children:o.map(c=>t.jsx("li",{children:c},c))}):null]})}function f4({groups:e,className:n=""}){return t.jsx("div",{className:ge("timeline",n),children:e.map(a=>t.jsxs("section",{className:"timeline__group",children:[t.jsx("h3",{className:"timeline__title",children:a.title}),t.jsx("ul",{className:"timeline__rows",children:a.entries.map((r,o)=>t.jsxs("li",{className:"timeline__row",children:[r.label?t.jsx("span",{className:"timeline__label",children:r.label}):null,t.jsx("div",{className:"timeline__items",children:r.items.map((i,l)=>t.jsx("p",{children:i},l))})]},`${r.label??""}-${o}`))})]},a.title))})}function C4({title:e,kind:n,body:a,badge:r,badgeSrc:o,footer:i,width:l,className:c=""}){const u=r??(o?t.jsx("img",{src:o,alt:""}):null);return t.jsxs("div",{className:ge("publication-card",c),style:l?{width:l,flexShrink:0}:void 0,children:[u?t.jsx("div",{className:"publication-card__badge","aria-hidden":"true",children:u}):null,t.jsx("h3",{className:"publication-card__title",children:e}),n?t.jsx("p",{className:"publication-card__kind",children:n}):null,t.jsx("p",{className:"publication-card__body",children:a}),i?t.jsx("div",{className:"publication-card__footer",children:i}):null]})}function g4({logo:e,alt:n,onDone:a,durationMs:r=3e3}){const o=kr(a);return s.useEffect(()=>{const i=setTimeout(()=>o.current?.(),r);return()=>clearTimeout(i)},[r,o]),t.jsx("div",{className:"splash-logo",style:{"--splash-logo-duration":`${r}ms`},"aria-hidden":"true",children:t.jsx("img",{src:e,alt:n,className:"splash-logo__image"})})}function b4({eyebrow:e,eyebrowIndex:n,title:a,description:r,level:o=2,tone:i="dark",className:l=""}){const c=o===1?"h1":"h2";return t.jsxs("div",{className:ge("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 y4({items:e,className:n=""}){return t.jsx("ul",{className:ge("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 Qi({value:e,onChange:n,suggestions:a,openOnFocus:r=!1}){const o=s.useId(),[i,l]=s.useState(!1),[c,u]=s.useState(-1),d=s.useRef(null),p=s.useMemo(()=>{if(!a.length)return[];const b=e??"";return b?a.filter(x=>x.toLowerCase().includes(b.toLowerCase())):r?a:[]},[a,e,r]);s.useEffect(()=>{i||u(-1)},[i]),s.useEffect(()=>()=>{d.current&&clearTimeout(d.current)},[]);const m=c<p.length?c:-1,h=s.useCallback(b=>{n?.(b),l(!1)},[n]),C=s.useCallback(()=>l(!0),[]),y=s.useCallback(()=>{l(!0),u(-1)},[]),f=s.useCallback(()=>{d.current=setTimeout(()=>l(!1),120)},[]),v=s.useCallback(b=>{b.nativeEvent.isComposing||b.keyCode===229||(b.key==="ArrowDown"?(b.preventDefault(),l(!0),u(x=>Math.min(p.length-1,(x<p.length?x:-1)+1))):b.key==="ArrowUp"?(b.preventDefault(),u(x=>Math.max(-1,(x<p.length?x:p.length)-1))):b.key==="Enter"?m>=0&&h(p[m]):b.key==="Escape"&&i&&(b.preventDefault(),l(!1)))},[p,m,i,h]);return{listId:o,open:i,activeIdx:m,filtered:p,handleFocus:C,handleBlur:f,handleInput:y,handleKeyDown:v,handleSelect:h}}const v4=typeof window<"u"?s.useLayoutEffect:s.useEffect;function Fn(e){const{value:n,defaultValue:a,name:r,inputRef:o,onChange:i,label:l,ariaLabel:c,required:u,placeholder:d,type:p="text",disabled:m=!1,readOnly:h=!1,error:C,helperText:y,maxLength:f,size:v=48,variant:b="input",fullWidth:x=!1,newline:_=!1,multiline:g=!1,rows:A=3,leftIcon:w,rightIcon:D,clearable:B=!1,list:k,showCount:N=!0,className:I="",onFocus:O,onBlur:E,onKeyDown:V,onEnter:j,inputMode:Y,autoComplete:R,autoFocus:H,suggestions:W,openOnFocus:le=!1}=e,q=h||m?void 0:W,{t:P}=pe.useTranslation(),M=s.useId();!l&&!c&&ea(`TextField:unnamed:${M}`,"[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 L=`tf-${M}`,z=`tf-helper-${M}`,$=s.useRef(null),T=Qi({value:n??"",onChange:i,suggestions:q??[],openOnFocus:le}),F=!!q&&T.open&&T.filtered.length>0,oe=s.useCallback(te=>{$.current=te,typeof o=="function"?o(te):o&&(o.current=te)},[o]),ae=n!==void 0,ee=ae&&p==="password",[se,Ce]=s.useState((a??"").length),Z=ae?(n??"").length:se,ie=s.useRef(n);v4(()=>{ie.current=n}),s.useEffect(()=>{const te=$.current;if(!ee||!te)return;const we=n??"";te.value!==we&&(te.value=we)},[ee,n]),s.useEffect(()=>{if(!_||!$.current)return;const te=$.current;te.style.height="",te.scrollHeight>te.clientHeight&&(te.style.height=`${te.scrollHeight}px`)},[n,se,_]);const J=f!=null&&Z>f,be=v===32?16:20,ve=ge("text-field",`text-field--s${v}`,b==="display"?"text-field--display":"",x?"text-field--full-width":"",m?"text-field--disabled":"",h?"text-field--readonly":"",C?"text-field--error":"",w?"text-field--has-left-icon":"",D||B?"text-field--has-right-icon":"",I),Te={id:L,...ee?{}:ae?{value:n}:{defaultValue:a},ref:oe,placeholder:d,name:r,disabled:m,readOnly:h,autoFocus:H,maxLength:f,list:k,inputMode:Y,autoComplete:R,"aria-label":!l&&c?c:void 0,"aria-required":u,"aria-invalid":!!C,"aria-describedby":y||C?z:void 0,role:q?"combobox":void 0,"aria-autocomplete":q?"list":void 0,"aria-haspopup":q?"listbox":void 0,"aria-expanded":q?T.open:void 0,"aria-controls":F?T.listId:void 0,"aria-activedescendant":F&&T.activeIdx>=0?`${T.listId}-option-${T.activeIdx}`:void 0,onChange:te=>{const we=te.target;ae||Ce(we.value.length),i?.(we.value),q&&T.handleInput(),ee&&queueMicrotask(()=>{const Se=ie.current??"";we.value!==Se&&(we.value=Se)})},onFocus:(te=>{O?.(te),q&&T.handleFocus()}),onBlur:(te=>{E?.(te),q&&T.handleBlur()}),onKeyDown:(te=>{q&&te.key==="Enter"&&!te.nativeEvent.isComposing&&T.activeIdx>=0?te.preventDefault():j&&te.key==="Enter"&&!te.nativeEvent.isComposing&&(te.preventDefault(),j()),V?.(te),q&&T.handleKeyDown(te)})},de=B&&!m&&!h&&Z>0,ye=()=>_?t.jsx("textarea",{...Te,className:"text-field__input text-field__input--auto body-2",rows:1}):g?t.jsx("textarea",{...Te,className:"text-field__input text-field__input--textarea body-2",rows:A}):t.jsx("input",{...Te,type:p,className:"text-field__input body-2"}),_e=b==="display"&&!_&&!g&&!!d,Q=()=>t.jsxs(t.Fragment,{children:[ye(),_e&&t.jsx("span",{className:"text-field__placeholder","aria-hidden":"true",children:d})]});return t.jsxs("div",{className:ve,children:[l&&t.jsxs("label",{htmlFor:L,className:"text-field__label caption-1",children:[l,u&&t.jsx("span",{className:"text-field__required",children:"*"})]}),t.jsxs("div",{className:"text-field__wrap",children:[w&&t.jsx("span",{className:"text-field__icon text-field__icon--left",children:t.jsx(qe,{icon:w,label:"",className:"",svgClassName:"text-field__icon-svg",size:be})}),Q(),f!=null&&N&&t.jsxs("span",{className:`text-field__count caption-2${J?" text-field__count--over":""}`,children:[Z,"/",f]}),de&&t.jsx(ce,{size:24,type:"dot",icon:"x",variant:"transparent-gray",useBorder:!1,className:"text-field__clear",ariaLabel:P("textField.clearAriaLabel","\uC785\uB825\uAC12 \uC9C0\uC6B0\uAE30"),htmlType:"button",onMouseDown:te=>{te.preventDefault()},onClick:()=>{!ae&&$.current&&($.current.value="",Ce(0)),i?.("")},tabIndex:-1}),D&&!de&&t.jsx("span",{className:"text-field__icon text-field__icon--right",children:t.jsx(qe,{icon:D,label:"",className:"",svgClassName:"text-field__icon-svg",size:be})})]}),q&&T.open&&T.filtered.length>0&&t.jsx("ul",{id:T.listId,className:"text-field__suggestions",role:"listbox",children:T.filtered.map((te,we)=>t.jsx("li",{id:`${T.listId}-option-${we}`,role:"option","aria-selected":we===T.activeIdx,className:`text-field__suggestion body-2${we===T.activeIdx?" is-active":""}`,onMouseDown:Se=>Se.preventDefault(),onClick:()=>{T.handleSelect(te),$.current?.focus()},children:te},`${te}-${we}`))}),(y||C)&&t.jsx("div",{className:"text-field__footer",children:t.jsx("span",{id:z,className:"text-field__helper caption-1",role:C?"alert":void 0,children:C||y})})]})}function en({options:e,value:n,onChange:a,placeholder:r,disabled:o=!1,block:i=!1,size:l=48,error:c=!1,className:u="",ariaLabel:d,ariaDescribedBy:p}){const{t:m}=pe.useTranslation(),h=r??m("dropdown.placeholder","\uC120\uD0DD"),C=s.useId(),y=s.useId(),f=s.useRef(null),v=s.useCallback(j=>{const Y=window.innerHeight-j.bottom<260&&j.top>260;return{position:"fixed",left:j.left,minWidth:j.width,...Y?{bottom:window.innerHeight-j.top+6}:{top:j.bottom+6},zIndex:9999}},[]),{open:b,setOpen:x,toggle:_,style:g,triggerRef:A,menuRef:w}=da({computeStyle:v}),[D,B]=s.useState(-1),k=s.useCallback(()=>B(-1),[]),N=e.find(j=>j.value===n);s.useEffect(()=>{if(b){const j=e.findIndex(Y=>Y.value===n);B(j>=0?j:e.length?0:-1),requestAnimationFrame(()=>{const Y=w.current;if(!Y)return;const R=Y.querySelectorAll(".dropdown__option")[j];R&&(Y.scrollTop=Math.max(0,R.offsetTop-Y.clientHeight/2+R.clientHeight/2))})}},[b]),s.useEffect(()=>{b&&B(j=>{if(j>=0&&j<e.length)return j;const Y=e.findIndex(R=>R.value===n);return Y>=0?Y:e.length?0:-1})},[b,e.length]);const I=s.useCallback(()=>{o||_()},[o,_]),O=s.useCallback(j=>{j.disabled||o||(a?.(j.value),x(!1))},[a,x,o]);s.useEffect(()=>{o&&x(!1)},[o,x]);const E=s.useCallback(j=>{if(!o){if(!b){(j.key==="Enter"||j.key===" "||j.key==="ArrowDown")&&(j.preventDefault(),x(!0));return}if(j.key==="Escape"){j.preventDefault(),x(!1);return}j.key==="ArrowDown"?(j.preventDefault(),B(Y=>{let R=Y+1;for(;R<e.length&&e[R].disabled;)R++;return R<e.length?R:Y})):j.key==="ArrowUp"?(j.preventDefault(),B(Y=>{let R=Y-1;for(;R>=0&&e[R].disabled;)R--;return R>=0?R:Y})):(j.key==="Enter"||j.key===" ")&&(j.preventDefault(),e[D]?O(e[D]):x(!1))}},[o,b,e,D,O,x]),V=b?t.jsx("div",{ref:w,id:C,className:"dropdown__menu","data-tooltip-ignore":!0,role:"listbox",style:g,onMouseLeave:k,onMouseDown:j=>j.preventDefault(),children:e.map((j,Y)=>t.jsxs("button",{id:`${C}-option-${Y}`,type:"button",role:"option","aria-selected":j.value===n,className:ge("dropdown__option body-2",j.value===n?"dropdown__option--active":"",Y===D?"dropdown__option--active":"",j.disabled?"dropdown__option--disabled":""),onMouseDown:R=>R.preventDefault(),onClick:()=>O(j),onMouseEnter:()=>B(Y),disabled:j.disabled,children:[t.jsx("span",{className:"dropdown__option-check",children:j.value===n&&t.jsx("svg",{viewBox:"0 0 14 14",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",children:t.jsx("polyline",{points:"2 7 5.5 10.5 12 3.5"})})}),j.label]},j.value))}):null;return t.jsxs("div",{ref:f,className:ge("dropdown",`dropdown--s${l}`,b?"dropdown--open":"",i?"dropdown--block":"",c?"dropdown--error":"",u),onKeyDown:E,children:[t.jsxs("button",{ref:A,type:"button",className:"dropdown__trigger","aria-haspopup":"listbox","aria-expanded":b,"aria-controls":b?C:void 0,"aria-activedescendant":b&&D>=0?`${C}-option-${D}`:void 0,"aria-label":d,"aria-describedby":[d&&N?y:"",p??""].filter(Boolean).join(" ")||void 0,"aria-invalid":c||void 0,disabled:o,onClick:I,onBlur:j=>{b&&!w.current?.contains(j.relatedTarget)&&x(!1)},children:[t.jsx("span",{id:y,className:`dropdown__trigger-label body-2${N?"":" dropdown__trigger-label--placeholder"}`,children:N?N.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"&&Ut.createPortal(V,f.current?.closest(".ihabdevteam-core-scope")??document.body)]})}function La({page:e,totalPages:n,onChange:a,prevLabel:r,nextLabel:o,className:i=""}){const{t:l}=pe.useTranslation(),c=r??l("common.prevPage","\uC774\uC804 \uD398\uC774\uC9C0"),u=o??l("common.nextPage","\uB2E4\uC74C \uD398\uC774\uC9C0"),d=Math.max(1,n),p=()=>a(Math.max(1,Math.min(d,e-1))),m=()=>a(Math.min(d,e+1));return t.jsxs("div",{className:ge("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),d)," / ",d]}),t.jsx(ce,{htmlType:"button",size:32,type:"dot",shape:"rounded",icon:"chevron-right",ariaLabel:u,disabled:e>=n,onClick:m})]})}function On(e){const{t:n}=pe.useTranslation(),{options:a=[],value:r=a[0]?.key,onChange:o=v=>{},className:i="",size:l=48,shape:c="pill",useBG:u=!0,fullWidth:d=!1,ariaLabel:p}=e||{},m=s.useRef(null),h=a.filter(v=>!v.disabled),C=v=>{if(!h.length)return;const b=Math.max(0,h.findIndex(_=>_.key===r)),x=v==="first"?h[0]:v==="last"?h[h.length-1]:h[(b+v+h.length)%h.length];x&&(o(x.key),Array.from(m.current?.querySelectorAll("[data-segkey]")??[]).find(_=>_.dataset.segkey===x.key)?.focus())},y=v=>{switch(v.key){case"ArrowRight":case"ArrowDown":C(1);break;case"ArrowLeft":case"ArrowUp":C(-1);break;case"Home":C("first");break;case"End":C("last");break;default:return}v.preventDefault()},f=h.some(v=>v.key===r)?r:h[0]?.key;return t.jsx("div",{ref:m,onKeyDown:y,className:ge("segmented-control",`segmented-control--${c}`,`segmented-control--${l}`,d&&"segmented-control--full",!u&&"segmented-control--no-bg",i),role:"radiogroup","aria-label":p??n("segmentedControl.ariaLabel","\uC120\uD0DD \uD0ED"),children:a.map(v=>t.jsx(ce,{htmlType:"button",role:"radio","aria-checked":v.key===r,"data-segkey":v.key,tabIndex:v.key===f?0:-1,label:v.label,count:v.count,disabled:v.disabled,className:v.key===r?"is-selected":"",onClick:()=>{v.disabled||o(v.key)},size:l,shape:c,useBorder:!1,useBG:!1},v.key))})}function $r({count:e,search:n,segment:a,filters:r,pageSize:o,pagination:i,actions:l,className:c}){const{t:u}=pe.useTranslation(),d=e!=null&&t.jsxs("p",{className:"toolbar__count body-1",role:"status","aria-atomic":"true",children:[e.prefix??u("common.totalPrefix","\uCD1D "),t.jsx("span",{className:"toolbar__count-highlight",children:e.value}),e.unit,e.suffix]}),p=!!(n||r?.length||o||i||l);return t.jsxs("div",{className:ge("toolbar",c),children:[t.jsxs("div",{className:"toolbar__row",children:[d,a&&(Array.isArray(a)?a:[a]).map((m,h)=>t.jsx(On,{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(Fn,{className:"toolbar__search",size:40,value:n.value,onChange:n.onChange,placeholder:n.placeholder??u("common.search","\uAC80\uC0C9"),ariaLabel:n.placeholder??u("common.search","\uAC80\uC0C9"),clearable:!0}),r?.map((m,h)=>t.jsx(en,{size:40,options:m.options,value:m.value,onChange:m.onChange,ariaLabel:m.ariaLabel},h)),o&&t.jsx(en,{size:40,options:o.options,value:o.value,onChange:o.onChange,ariaLabel:o.ariaLabel??u("common.pageSizeSelect","\uD398\uC774\uC9C0\uB2F9 \uD45C\uC2DC \uAC1C\uC218")}),i&&t.jsx(La,{page:i.page,totalPages:i.total,onChange:i.onChange,prevLabel:i.prevLabel,nextLabel:i.nextLabel}),l]})})]})}function el(e){return typeof e=="string"?e:typeof e=="number"?String(e):Array.isArray(e)?e.map(el).join(""):""}function x4(e){let n=e.replace(/\r\n/g,`
833
833
  `).replace(/\r/g,`
834
834
  `);n=n.replace(/^\n+/,"").replace(/\n+$/,"");const a=n.split(`
835
835
  `).map(i=>i.replace(/\t/g," ")),r=a.filter(i=>i.trim().length>0),o=r.length>0?Math.min(...r.map(i=>i.match(/^ */)?.[0].length??0)):0;return a.map(i=>i.slice(o)).join(`
836
- `)}const x4=new Set(["pnpm","npm","yarn","node","git","curl","docker","cat","ls","cd","rm","mv","cp","echo","export"]),_4=/^(?: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 w4(e,n){let a=e;const r=[],o=/^(?:sh|bash|zsh|shell|console)$/.test(n.toLowerCase()),i=(l,c)=>r.push({type:l,content:c});for(;a.length>0;){const l=a.match(/^\s+/);if(l){i("whitespace",l[0]),a=a.slice(l[0].length);continue}if(!o&&a.startsWith("//")){const y=a.indexOf(`
836
+ `)}const _4=new Set(["pnpm","npm","yarn","node","git","curl","docker","cat","ls","cd","rm","mv","cp","echo","export"]),w4=/^(?: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 k4(e,n){let a=e;const r=[],o=/^(?:sh|bash|zsh|shell|console)$/.test(n.toLowerCase()),i=(l,c)=>r.push({type:l,content:c});for(;a.length>0;){const l=a.match(/^\s+/);if(l){i("whitespace",l[0]),a=a.slice(l[0].length);continue}if(!o&&a.startsWith("//")){const y=a.indexOf(`
837
837
  `),f=y===-1?a:a.slice(0,y);i("comment",f),a=a.slice(f.length);continue}if(o&&a.startsWith("#")){const y=a.indexOf(`
838
- `),f=y===-1?a:a.slice(0,y);i("comment",f),a=a.slice(f.length);continue}const c=a.match(/^\/\*[\s\S]*?\*\//);if(c){i("comment",c[0]),a=a.slice(c[0].length);continue}const u=a.match(/^(`(?:\\.|[^`])*`|"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*')/);if(u){i("string",u[0]),a=a.slice(u[0].length);continue}const d=a.match(/^\d+(?:\.\d+)?/);if(d){i("number",d[0]),a=a.slice(d[0].length);continue}const p=a.match(_4);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(o&&x4.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 C=a.match(/^[()[\]{};.,]/);if(C){i("punctuation",C[0]),a=a.slice(1);continue}i("other",a[0]),a=a.slice(1)}return r}function k4({children:e,language:n="bash",title:a="",showCopy:r=!0,size:o="default",className:i=""}){const{t:l}=pe.useTranslation(),[c,u]=s.useState(!1),d=v4(Qi(e)),p=s.useRef(null);s.useEffect(()=>()=>{p.current&&clearTimeout(p.current)},[]);const m=async()=>{try{if(!await L0(d))return;u(!0),p.current&&clearTimeout(p.current),p.current=setTimeout(()=>u(!1),2e3)}catch{}},h=w4(d,n),C=o==="small"?"caption-1":"body-3";return t.jsxs("div",{className:ge("code-box",o==="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,f)=>t.jsx("span",{className:`code-token ${y.type} ${C}`,children:y.content},f))})})]})}const A4={position:"absolute",width:1,height:1,margin:-1,padding:0,overflow:"hidden",clipPath:"inset(50%)",whiteSpace:"nowrap",border:0};function ga(e){const{t:n}=pe.useTranslation(),{variant:a="spinner",size:r=24,progress:o=null,label:i}=e||{},l=i||n("loader.loading","Loading");if(a==="bar"){const u=Math.max(0,Math.min(100,Number(o)||0));return t.jsx("div",{className:"loader-bar",role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":u,"aria-label":l,children:t.jsx("div",{className:"loader-bar__inner",style:{width:`${u}%`}})})}const c=typeof r=="number"?`${r}px`:r;return t.jsxs("div",{className:"loader-spinner",style:{width:c,height:c},role:"status","aria-label":l,children:[t.jsx("span",{style:A4,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 el({checked:e,onChange:n,disabled:a=!1,label:r,ariaLabel:o,labelPosition:i="right",className:l="",id:c}){const u=r&&t.jsx("span",{className:"toggle__label body-3",children:r});return t.jsxs("label",{className:`toggle${a?" toggle--disabled":""} ${l}`.trim(),children:[i==="left"&&u,t.jsx("input",{id:c,type:"checkbox",role:"switch",checked:e,disabled:a,onChange:d=>n?.(d.target.checked),"aria-label":!r&&o?o:void 0}),t.jsx("span",{className:"toggle__slider"}),i==="right"&&u]})}function tl({checked:e=!1,onChange:n,disabled:a,indeterminate:r,label:o,size:i="medium",className:l,title:c,ariaLabel:u}){const d=s.useRef(null),p=s.useId(),m=s.useRef(!!r);return m.current=!!r,s.useEffect(()=>{d.current&&(d.current.indeterminate=!!r)}),t.jsxs("label",{className:ge("checkbox",i==="small"&&"checkbox--small",i==="large"&&"checkbox--large",a&&"checkbox--disabled",l),htmlFor:p,title:c,children:[t.jsx("input",{ref:d,id:p,type:"checkbox",className:"checkbox__input",checked:e,onChange:h=>{n?.(h.target.checked),d.current&&(d.current.indeterminate=m.current)},disabled:a,"aria-label":!o&&u?u:void 0}),t.jsx("span",{className:"checkbox__box"}),o&&t.jsx("span",{className:"checkbox__label body-3",children:o})]})}function N4({count:e,actions:n,onClear:a,clearLabel:r,visible:o,content:i,max:l}){const{t:c}=pe.useTranslation(),u=o!==void 0?o:e>0,d=r??c("bulkBar.clearSelection","\uC120\uD0DD \uD574\uC81C"),p=s.useRef(null),[m,h]=s.useState(!1),C=s.useRef(!1),y=s.useRef(null);return s.useEffect(()=>{const f=p.current;if(!f)return;const v=w=>{C.current=w,h(w)},b=()=>{const w=f.firstElementChild??f,S=Array.from(w.children);if(S.length<2){v(!1);return}const N=S[0].offsetTop,k=S.some(F=>F.offsetTop!==N);if(!C.current){y.current=f.clientWidth,k&&v(!0);return}if(k)return;const B=S[0],V=S[S.length-1],H=V.offsetLeft+V.offsetWidth-B.offsetLeft,j=y.current;(j==null||H<=j)&&v(!1)};if(b(),typeof ResizeObserver>"u")return;const x=new ResizeObserver(b);x.observe(f);const _=f.parentElement;let g=_?.clientWidth??0;const A=new ResizeObserver(()=>{const w=_?.clientWidth??0;w!==g&&(g=w,y.current=null,b())});return _&&A.observe(_),()=>{x.disconnect(),A.disconnect()}},[i,e]),t.jsxs("div",{className:`bulk-bar ${u?"bulk-bar--visible":""}`,inert:!u||void 0,"aria-hidden":u?void 0:!0,children:[t.jsx("span",{ref:p,className:"bulk-bar__count body-2",role:"status",children:i??t.jsx("b",{children:c("common.selectedCount",{count:e})})}),l!==void 0&&t.jsx(ut,{size:"small",fill:"soft",variant:"main",label:`${e} / ${l}`}),t.jsxs("div",{className:`bulk-bar__actions${m?" bulk-bar__actions--stacked":""}`,children:[t.jsx(ce,{htmlType:"button",size:40,label:d,onClick:a}),n.map((f,v)=>t.jsx(ce,{htmlType:"button",size:40,variant:f.variant??"default",icon:f.icon,label:f.label,onClick:f.onClick},v))]})]})}function nl(e){const n=()=>{if(e){const[y,f]=e.split("-");return{y:+y,m:+f-1}}const[h,C]=Mn().split("-");return{y:+h,m:+C-1}},[a,r]=s.useState(()=>n().y),[o,i]=s.useState(()=>n().m),l=s.useRef(e);s.useEffect(()=>{if(e===l.current)return;l.current=e;const h=n();r(h.y),i(h.m)},[e]);const c=s.useRef({y:a,m:o});s.useEffect(()=>{c.current={y:a,m:o}},[a,o]);const u=s.useCallback(h=>{const C=c.current.y*12+c.current.m+h,y=Math.floor(C/12),f=C-y*12;c.current={y,m:f},r(y),i(f)},[]),d=s.useCallback(()=>u(-1),[u]),p=s.useCallback(()=>u(1),[u]),m=s.useCallback((h,C)=>{c.current={y:h,m:C},r(h),i(C)},[]);return{viewY:a,viewM:o,prevMonth:d,nextMonth:p,setViewYM:m}}function La(e,n){return new Date(e,n+1,0).getDate()}function B4(e,n){return new Date(e,n,1).getDay()}function $a(e,n,a){return`${e}-${String(n+1).padStart(2,"0")}-${String(a).padStart(2,"0")}`}function S4(e){if(!e)return"";const[n,a,r]=e.split("-");return`${n}. ${a}. ${r}.`}function D4(e,n,a,r){const o=a?+a.split("-")[0]:e-10,i=r?+r.split("-")[0]:e+10,l=[];for(let c=o;c<=i;c++)for(let u=0;u<12;u++){const d=`${c}-${String(u+1).padStart(2,"0")}`;a&&d<a.slice(0,7)||r&&d>r.slice(0,7)||l.push({value:d,label:n(c,u+1)})}return l}function T4({value:e,onChange:n,size:a=48,min:r,max:o,disabled:i,placeholder:l,className:c}){const{t:u}=pe.useTranslation(),d=l??u("datePicker.chooseDate","\uB0A0\uC9DC \uC120\uD0DD"),p=s.useMemo(()=>u("calendar.dow",{returnObjects:!0}),[u]),m=Mn(),{viewY:h,viewM:C,prevMonth:y,nextMonth:f,setViewYM:v}=nl(e),b=s.useCallback(P=>{const M=window.innerHeight-P.bottom,L=300,z=M<L&&P.top>L;return{position:"fixed",left:P.left,width:P.width,minWidth:260,...z?{bottom:window.innerHeight-P.top+6}:{top:P.bottom+6},zIndex:9999}},[]),{open:x,setOpen:_,toggle:g,style:A,triggerRef:w,menuRef:S}=da({computeStyle:b,onScroll:"reposition",onResize:"reposition",ignoreOutsideClickSelector:".dropdown__menu"});s.useEffect(()=>{if(!x)return;const P=S.current;return(P?.querySelector(".date-picker__day--selected:not(:disabled)")??P?.querySelector(".date-picker__day--today:not(:disabled)")??P?.querySelector(".date-picker__day:not(:disabled)")??P?.querySelector(Ln)??P)?.focus?.(),()=>{const M=document.activeElement;(!M||M===document.body)&&w.current?.focus?.()}},[x,S,w]);const[N,k]=s.useState(1),B=s.useRef(null),V=s.useRef(null);s.useEffect(()=>{if(!x)return;const P=e&&e.slice(0,7)===`${h}-${String(C+1).padStart(2,"0")}`?+e.slice(8):m.slice(0,7)===`${h}-${String(C+1).padStart(2,"0")}`?+m.slice(8):1;k(P)},[x]),s.useEffect(()=>{if(V.current==null)return;const P=V.current;V.current=null,B.current?.querySelector(`[data-day="${P}"]`)?.focus()}),s.useEffect(()=>{k(P=>Math.min(P,La(h,C)))},[h,C]);const H=s.useCallback(P=>{let M=$a(P.getFullYear(),P.getMonth(),P.getDate());r&&M<r&&(M=r),o&&M>o&&(M=o);const[L,z,$]=M.split("-").map(Number);(L!==h||z-1!==C)&&v(L,z-1),k($),V.current=$},[r,o,h,C,v]),j=s.useCallback(P=>{const M=new Date(h,C,N),L=$=>{M.setDate(M.getDate()+$),H(M)},z=$=>{const E=M.getFullYear()*12+M.getMonth()+$,I=Math.floor(E/12),oe=E-I*12;H(new Date(I,oe,Math.min(M.getDate(),La(I,oe))))};switch(P.key){case"ArrowLeft":L(-1);break;case"ArrowRight":L(1);break;case"ArrowUp":L(-7);break;case"ArrowDown":L(7);break;case"Home":L(-M.getDay());break;case"End":L(6-M.getDay());break;case"PageUp":P.shiftKey?z(-12):z(-1);break;case"PageDown":P.shiftKey?z(12):z(1);break;default:return}P.preventDefault()},[h,C,N,H]),F=s.useCallback(P=>{i||(n($a(h,C,P)),_(!1))},[h,C,n,_,i]);s.useEffect(()=>{i&&_(!1)},[i,_]);const T=P=>{const M=$a(h,C,P);return!!(r&&M<r||o&&M>o)},Y=(()=>{const P=La(h,C);if(N>=1&&N<=P&&!T(N))return N;for(let M=1;M<=P;M++)if(!T(M))return M;return-1})(),R=[];for(let P=0;P<B4(h,C);P++)R.push(null);for(let P=1;P<=La(h,C);P++)R.push(P);const O=a===64?20:a===40?16:18,W=D4(h,(P,M)=>u("calendar.yearMonth",{year:P,month:M,defaultValue:"{{year}}\uB144 {{month}}\uC6D4"}),r,o),le=`${h}-${String(C+1).padStart(2,"0")}`,q=x?qt.createPortal(t.jsxs("div",{ref:S,className:"date-picker__dropdown",style:A,"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:y,"aria-label":u("calendar.prevMonth","\uC774\uC804 \uB2EC"),children:t.jsx(To,{size:16,strokeWidth:2})}),t.jsx(en,{className:"date-picker__nav-dropdown",ariaLabel:u("datePicker.selectYearMonth","\uC5F0\uC6D4 \uC120\uD0DD"),options:W,value:le,onChange:P=>{const[M,L]=P.split("-");v(+M,+L-1)},block:!0,size:40}),t.jsx("button",{type:"button",className:"date-picker__nav-btn",onClick:f,"aria-label":u("calendar.nextMonth","\uB2E4\uC74C \uB2EC"),children:t.jsx(jo,{size:16,strokeWidth:2})})]}),t.jsxs("div",{className:"date-picker__grid",ref:B,onKeyDown:j,children:[p.map(P=>t.jsx("div",{className:"date-picker__dow caption-1",children:P},P)),R.map((P,M)=>{if(P===null)return t.jsx("div",{},`e${M}`);const L=$a(h,C,P),z=L===e,$=L===m,E=T(P),I=M%7;return t.jsx("button",{type:"button",disabled:E,"data-day":P,tabIndex:P===Y?0:-1,"aria-current":$?"date":void 0,onClick:()=>!E&&F(P),className:ge("date-picker__day caption-1",z&&"date-picker__day--selected",$&&!z&&"date-picker__day--today",E&&"date-picker__day--disabled",I===0&&"date-picker__day--sun",I===6&&"date-picker__day--sat"),children:P},P)})]})]}),document.body):null;return t.jsxs("div",{className:ge("date-picker",`date-picker--s${a}`,x&&"date-picker--open",c),children:[t.jsxs("button",{ref:w,type:"button",className:"date-picker__trigger body-2",onClick:()=>!i&&g(),disabled:i,"aria-haspopup":"true","aria-expanded":x,children:[t.jsx("span",{className:e?"date-picker__value":"date-picker__placeholder",children:e?S4(e):d}),t.jsx(Oo,{size:O,className:"date-picker__icon",strokeWidth:1.5})]}),q]})}function $r({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 Ra({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 Rr({title:e,titleClassName:n="h3",headRight:a,subRow:r,className:o,inGrid:i=!1,children:l}){return t.jsxs("section",{className:["manager-section",i&&"manager-section--grid",o].filter(Boolean).join(" "),children:[t.jsxs("div",{className:"manager-section__head",children:[t.jsx("div",{className:n,children:e}),a]}),r&&t.jsx("div",{className:"barchart-sub-row",children:r}),l]})}function Cn(e,n){const a=new Date(e,n,1).getDay();return 1+(8-(a===0?7:a))%7}function j4(){const e=qn();let n=e.getFullYear(),a=e.getMonth(),r=e.getDate();if(r<Cn(n,a)){const l=new Date(n,a,0);n=l.getFullYear(),a=l.getMonth(),r=l.getDate()}const o=Math.floor((r-Cn(n,a))/7),i=`${n}\uB144 ${a+1}\uC6D4`;return{monthKey:i,value:`${i}#${o}`}}function E4(e){const n=qn(),a=`${n.getFullYear()}\uB144 ${n.getMonth()+1}\uC6D4`,r=(u,d)=>`${u}\uB144 ${d+1}\uC6D4`,o=new Map;o.set(a,[]);for(const u of e){if(isNaN(u.date.getTime()))continue;const d=r(u.date.getFullYear(),u.date.getMonth());o.has(d)||o.set(d,[]),o.get(d).push(u)}for(const[u,d]of[...o.entries()]){const p=u.match(/^(\d+)년 (\d+)월$/);if(!p)continue;const m=Number(p[1]),h=Number(p[2])-1,C=Cn(m,h);if(!(u===a&&n.getDate()<C)&&!d.some(v=>v.date.getDate()<C))continue;const y=new Date(m,h,0),f=r(y.getFullYear(),y.getMonth());o.has(f)||o.set(f,[])}const i=new Map;for(const[u,d]of o){const p=u.match(/^(\d+)년 (\d+)월$/);if(!p)continue;const m=Number(p[1]),h=Number(p[2])-1,C=new Date(m,h+1,0).getDate(),y=d.reduce((x,_)=>Math.max(x,_.parts?.length??0),0),f=new Array(C+1).fill(0),v=new Array(C+1).fill(0),b=Array.from({length:C+1},()=>new Array(y).fill(0));for(const x of d){const _=x.date.getDate();if(f[_]+=x.a,v[_]+=x.b,x.parts)for(let g=0;g<y;g++)b[_][g]+=x.parts[g]??0}i.set(u,{year:m,month:h,daysInMonth:C,partsLen:y,dayA:f,dayB:v,dayParts:b})}const l=(u,d,p)=>new Date(u,d,p).getTime()>new Date(n.getFullYear(),n.getMonth(),n.getDate()).getTime(),c={};for(const[u,d]of i){const{year:p,month:m,daysInMonth:h,dayA:C,dayB:y,dayParts:f}=d,v=p===n.getFullYear()&&m===n.getMonth(),b=n.getDate(),x=i.get(r(m===11?p+1:p,(m+1)%12)),_=d.partsLen,g=[];for(let w=1;w<=h;w++){const S=v&&w>b;g.push({label:String(w),a:S&&C[w]===0&&y[w]===0?-1:C[w],b:y[w],..._?{parts:f[w]}:{}})}const A=[];for(let w=Cn(p,m);w<=h;w+=7){const S=Math.max(0,w+6-h),N=S&&x?Math.max(_,x.partsLen):_;let k=0,B=0;const V=new Array(N).fill(0);for(let j=w;j<=Math.min(w+6,h);j++){k+=C[j],B+=y[j];for(let F=0;F<_;F++)V[F]+=f[j][F]}if(S&&x)for(let j=1;j<=S&&!l(x.year,x.month,j);j++){k+=x.dayA[j],B+=x.dayB[j];for(let F=0;F<x.partsLen;F++)V[F]+=x.dayParts[j][F]}const H=S?`${(m+1)%12+1}/${S}`:`${w+6}`;A.push({label:`${A.length+1}\uC8FC`,sublabel:`[${w}\uC77C~${H}\uC77C]`,a:k,b:B,...N?{parts:V}:{}})}c[u]={weekly:A,daily:g}}return c}function al(){const e=qn(),n=e.getFullYear(),a=e.getMonth()+1,r=[];for(let o=2024;o<=n;o++){const i=o===n?a:12;for(let l=1;l<=i;l++){const c=`${o}\uB144 ${l}\uC6D4`;r.push({value:c,label:c,year:o,month:l})}}return r.reverse()}al();function M4(){return al()}const rl=["\uCCAB\uC9F8","\uB458\uC9F8","\uC14B\uC9F8","\uB137\uC9F8","\uB2E4\uC12F\uC9F8","\uC5EC\uC12F\uC9F8","\uC77C\uACF1\uC9F8"];function ol(e){const{t:n,i18n:a}=pe.useTranslation(),[r,o]=s.useState("week"),i=s.useMemo(()=>M4().filter(k=>k.value in e),[e]),l=s.useMemo(()=>{const k=[];for(const B of i){const V=new Date(B.year,B.month,0).getDate(),H=Cn(B.year,B.month-1),j=Math.ceil((V-H+1)/7);for(let F=j-1;F>=0;F--)k.push({value:`${B.value}#${F}`,monthKey:B.value,year:B.year,month:B.month,week:F})}return k},[i]),c=s.useCallback(k=>{const B=n("calendar.yearMonth",{year:k.year,month:k.month});return a.language?.startsWith("ko")?`${B} ${rl[k.week]??`${k.week+1}`}\uC8FC`:`${B} Week ${k.week+1}`},[n,a.language]),u=s.useMemo(()=>i.map(k=>({value:k.value,label:n("calendar.yearMonth",{year:k.year,month:k.month})})),[n,i]),d=s.useMemo(()=>l.map(k=>({value:k.value,label:c(k)})),[l,c]),p=s.useMemo(()=>j4(),[e]),m=s.useMemo(()=>i.find(k=>k.value===p.monthKey)?.value??i[0]?.value??"",[i,p]),h=s.useMemo(()=>l.find(k=>k.value===p.value)?.value??l[0]?.value??"",[l,p]),[C,y]=s.useState(""),[f,v]=s.useState("");s.useEffect(()=>{i.find(k=>k.value===C)||y(m)},[i,C,m]),s.useEffect(()=>{l.find(k=>k.value===f)||v(h)},[l,f,h]);const b=r==="month"?u:d,x=r==="month"?C:f,_=r==="month"?y:v,g=s.useMemo(()=>{const k=n("calendar.dow",{returnObjects:!0});return Array.isArray(k)?k:["\uC77C","\uC6D4","\uD654","\uC218","\uBAA9","\uAE08","\uD1A0"]},[n]),A=b.findIndex(k=>k.value===x),w=s.useCallback(()=>{const k=b.findIndex(B=>B.value===x);k<b.length-1&&_(b[k+1].value)},[b,x,_]),S=s.useCallback(()=>{const k=b.findIndex(B=>B.value===x);k>0&&_(b[k-1].value)},[b,x,_]),N=s.useMemo(()=>[{key:"week",label:n("manager.chart.periodWeek","\uC8FC")},{key:"month",label:n("manager.chart.periodMonth","\uC6D4")}],[n]);return{period:r,setPeriod:o,range:x,setRange:_,activeOptions:b,activeIdx:A,handlePrev:w,handleNext:S,periodOptions:N,monthRange:C,weekRange:f,weekRanges:l,DOW:g}}const tn=e=>typeof e=="number"&&Number.isFinite(e)?e:0;function L4({data:e,colorA:n,colorB:a,labelA:r,labelB:o,barWidth:i=10,height:l=140,maxOverride:c,tightMax:u,seriesColors:d,seriesLabels:p,rateLabels:m}){const h=!a,C=!!(d&&d.length>0),y=s.useMemo(()=>C?Math.max(0,...e.filter(N=>N.a!==-1).map(N=>(N.parts??[]).reduce((k,B)=>k+Math.max(0,tn(B)),0))):Math.max(0,...e.filter(N=>N.a!==-1).flatMap(N=>h?[tn(N.a)]:[tn(N.a),tn(N.b)])),[e,h,C]),f=s.useMemo(()=>c??(u?y>0?y:10:Math.ceil(y/10)*10||10),[y,c,u]),v=l,b=C||h?1:2,x={"--bar-width":`${s.useMemo(()=>{const N=Math.max(1,e.length);return Math.max(8,Math.min(i,Math.round(120/(N*b)+6)))},[e.length,b,i])}px`},_=s.useMemo(()=>{const N=Math.round(f/2);return N!==f?[f,N,0]:[f,0]},[f]),[g,A]=s.useState(null),w=s.useCallback(()=>A(null),[]),S=g!=null;return s.useEffect(()=>{if(!S)return;const N=()=>A(null),k=B=>{const V=B.target;V&&typeof V.closest=="function"&&V.closest(".manager-bar-chart-col")||A(null)};return window.addEventListener("scroll",N,!0),document.addEventListener("pointerdown",k,!0),()=>{window.removeEventListener("scroll",N,!0),document.removeEventListener("pointerdown",k,!0)}},[S]),t.jsxs("div",{className:"manager-bar-chart-wrap",children:[t.jsx("div",{className:"manager-bar-chart-inner",children:t.jsx("div",{className:"manager-bar-chart-scroll",children:t.jsxs("div",{className:"manager-bar-chart-area",children:[t.jsxs("div",{className:"manager-bar-chart-plot",style:{height:v},children:[_.slice(0,-1).map((N,k)=>t.jsx("div",{className:"manager-bar-chart-gridline",style:{top:(1-N/f)*v},children:t.jsx("span",{className:"manager-bar-chart-gridline__label caption-1",children:N})},k)),e.map((N,k)=>{const B=N.a===-1,V=T=>Math.min(v,Math.max(0,tn(T)/f*v)),H=B?0:V(N.a),j=B?0:V(N.b),F=(N.parts??[]).map(tn);return t.jsx("div",{className:"manager-bar-chart-col",style:{cursor:B?"default":"pointer"},onMouseEnter:B?void 0:T=>{const Y=T.currentTarget.getBoundingClientRect(),R=[N.label,N.sublabel].filter(Boolean).join(" ");let O;if(C){const W=(p??[]).map((q,P)=>({text:`${q}: ${F[P]??0}`,color:(d??[])[P]})),le=W.filter((q,P)=>(F[P]??0)>0);O=le.length?le:W}else m&&!h?O=[{text:`${r} ${tn(N.a)}%`,color:n},{text:`${o} ${tn(N.b)}%`,color:a}]:m&&N.rawB!==void 0?O=[{text:`${m.total} ${N.rawB}`},{text:`${m.done} ${N.rawA??0}`,color:n}]:h?O=[{text:`${r}: ${tn(N.a)}`,color:n}]:O=[{text:`${r}: ${tn(N.a)}`,color:n},{text:`${o}: ${tn(N.b)}`,color:a}];A({rect:{left:Y.left,top:Y.top,right:Y.right,bottom:Y.bottom,width:Y.width,height:Y.height},title:R,items:O})},onMouseLeave:w,children:!B&&(C?t.jsx("div",{className:"manager-bar-chart-stack",style:x,children:(()=>{const T=F.reduce((R,O,W)=>O>0?W:R,-1);let Y=v;return F.map((R,O)=>{if(R<=0)return null;const W=Math.min(Y,R/f*v);return Y-=W,t.jsx("div",{className:"manager-bar-chart-stack-segment",style:{height:W,background:(d??[])[O],borderRadius:O===T?"6px 6px 0 0":void 0}},O)})})()}):t.jsxs(t.Fragment,{children:[t.jsx("div",{className:"manager-bar-chart-bar",style:{...x,height:H,background:n}}),!h&&t.jsx("div",{className:"manager-bar-chart-bar",style:{...x,height:j,background:a}})]}))},k)})]}),t.jsx("div",{className:"manager-bar-chart-x-axis",children:e.map((N,k)=>{const B=N.a===-1;return t.jsxs("span",{className:`manager-bar-chart-x-axis__label${B?" manager-bar-chart-x-axis__label--future":""}`,children:[t.jsxs("span",{className:"caption-1 manager-bar-chart-x-axis__main",children:[N.isToday&&t.jsx("span",{className:"manager-bar-chart-x-axis__today-dot",style:{background:n}}),N.label]}),N.sublabel&&t.jsx("span",{className:"caption-1",children:N.sublabel})]},k)})})]})})}),g&&t.jsx(Rn,{anchorRect:g.rect,title:g.title,items:g.items,showIndex:!1,closeOnOutsideClick:!1})]})}function sl({control:e}){const{t:n}=pe.useTranslation(),{activeOptions:a,activeIdx:r,range:o,setRange:i,handlePrev:l,handleNext:c,periodOptions:u,period:d,setPeriod:p}=e,m=d==="week"?n("calendar.prevWeek","\uC774\uC804 \uC8FC"):n("calendar.prevMonth","\uC774\uC804 \uB2EC"),h=d==="week"?n("calendar.nextWeek","\uB2E4\uC74C \uC8FC"):n("calendar.nextMonth","\uB2E4\uC74C \uB2EC");return t.jsxs("div",{className:"manager-section-controls",children:[t.jsx(ce,{htmlType:"button",size:32,type:"dot",icon:"chevron-left",ariaLabel:m,showTooltipInfo:m,disabled:r===a.length-1,onClick:l}),t.jsx(en,{value:o,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(On,{ariaLabel:n("calendar.periodSelect","\uAE30\uAC04 \uB2E8\uC704"),options:u,value:d,onChange:C=>p(C),size:32})]})}function il(e,n,a){const r=new Date(a.getFullYear(),a.getMonth(),a.getDate());return Array.from({length:7},(o,i)=>{const l=new Date(n);l.setDate(n.getDate()+i);const c=(e[`${l.getFullYear()}\uB144 ${l.getMonth()+1}\uC6D4`]?.daily??[])[l.getDate()-1],u=c?.a===-1||l>r;return{dt:l,entry:c,isFuture:u}})}function $4(e,n,a,r){const{period:o,monthRange:i,weekRange:l,weekRanges:c,DOW:u}=n,d=r?.startsWith("ko"),p=qn(),m=p.getFullYear(),h=p.getMonth()+1,C=p.getDate();if(o==="month"){const v=e[i]??{weekly:[],daily:[]},b=i.match(/^(\d+)년 (\d+)월$/),x=b?Number(b[1]):null,_=b?Number(b[2]):null,g=x&&_?Cn(x,_-1):1;return v.weekly.map((A,w)=>{const S=w+1;let N=A.label,k=!1,B=!1;if(x&&_){const V=g+w*7,H=new Date(x,_-1,V+6),j=H.getMonth()+1,F=H.getDate(),T=j===_?`${F}`:`${j}/${F}`;N=a("manager.chart.weekRange",{start:V,end:T});const Y=new Date(m,h-1,C).getTime();k=Y>=new Date(x,_-1,V).getTime()&&Y<=H.getTime(),B=x>m||x===m&&(_>h||_===h&&V>C)}return{...A,label:N,sublabel:d?`${rl[S-1]??S}\uC8FC`:`Week ${S}`,isToday:k,a:B?-1:A.a,b:B?0:A.b}})}const y=c.find(v=>v.value===l);if(!y)return[];const f=new Date(y.year,y.month-1,Cn(y.year,y.month-1)+y.week*7);return il(e,f,p).map(({dt:v,entry:b,isFuture:x})=>{const _=v.getMonth()+1,g=v.getDate(),A=v.getFullYear();return{label:_===y.month&&A===y.year?`${g}`:`${_}/${g}`,sublabel:u[v.getDay()]??"",a:x?-1:b&&b.a>0?b.a:0,b:x?0:b&&b.b>0?b.b:0,isToday:A===m&&_===h&&g===C,...b?.parts?{parts:x?b.parts.map(()=>0):b.parts}:{}}})}const R4={small:{height:100,barWidth:16},medium:{height:140,barWidth:20},large:{height:180,barWidth:24}};function P4({size:e="medium",barWidth:n,titleKey:a,data:r,colorA:o,colorB:i,labelAKey:l,labelBKey:c,showTotal:u=!1,totalUnitKey:d,totalLabelKey:p,control:m,hideControls:h=!1,rate:C=!1,tightMax:y=!1,avgMode:f=!1,totalFormat:v,series:b,loading:x=!1,onDetail:_,inGrid:g=!1}){const{t:A,i18n:w}=pe.useTranslation(),S=R4[e],N=ol(r),k=m??N,B=s.useMemo(()=>$4(r,k,A,w.language),[r,k,A,w.language]),V=s.useMemo(()=>{if(!C)return B;const T=k.period==="month"?k.monthRange.match(/^(\d+)년 (\d+)월$/):null,Y=qn();return B.map((R,O)=>{let W=R.a===-1?-1:R.b>0?Math.round(R.a/R.b*100):0;if(T&&R.a!==-1){const le=Number(T[1]),q=Number(T[2])-1,P=il(r,new Date(le,q,Cn(le,q)+O*7),Y).filter(M=>!M.isFuture);W=P.length?Math.round(P.reduce((M,{entry:L})=>M+(L&&L.b>0?L.a/L.b*100:0),0)/P.length):0}return{...R,a:W,b:R.a===-1?0:c&&R.parts&&R.parts[1]>0?Math.round(R.parts[0]/R.parts[1]*100):0,rawA:R.a===-1?-1:R.a,rawB:R.b}})},[B,C,c,k.period,k.monthRange,r]),H=s.useMemo(()=>{if(C||f){const T=(k.period==="week"?B:r[k.monthRange]?.daily??[]).filter(R=>R.a!==-1);if(T.length===0)return 0;const Y=C?T.reduce((R,O)=>R+(O.b>0?O.a/O.b*100:0),0):T.reduce((R,O)=>R+(O.a>0?O.a:0),0);return Math.round(Y/T.length)}return V.reduce((T,Y)=>T+(Y.a>0?Y.a:0)+(c&&Y.b>0?Y.b:0),0)},[V,B,C,f,c,k.period,k.monthRange,r]),j=b&&b.length>0?b.map(T=>({color:T.color,label:T.label})):[{color:o,label:A(l)},...c?[{color:i,label:A(c)}]:[]],F=e==="small";return t.jsx(Rr,{className:F?"manager-section--compact":e==="large"?"manager-section--full":void 0,inGrid:g,title:A(a),titleClassName:F?"h5 chart-section-title--small":void 0,headRight:F?void 0:t.jsxs(t.Fragment,{children:[!h&&t.jsx(sl,{control:k}),_&&t.jsx("span",{className:"manager-bar-chart-detail-btn",children:t.jsx(ce,{htmlType:"button",size:32,type:"dot",icon:"list",ariaLabel:A("trainingStatus.detail","\uC0C1\uC138\uBCF4\uAE30"),onClick:_})})]}),subRow:t.jsxs(t.Fragment,{children:[u?C||f||p&&v?t.jsx(Ra,{label:F?void 0:`${A(k.period==="week"?"manager.chart.weeklyPrefix":"manager.chart.monthlyPrefix")} ${A(p??l)}`,children:v?(v(H).match(/(\d+|[^\d]+)/g)??[]).map((T,Y)=>/\d/.test(T)?t.jsx("span",{className:"barchart-total__num h0",children:T},Y):t.jsx("span",{className:"barchart-total__unit h5",children:T},Y)):t.jsxs(t.Fragment,{children:[t.jsx("span",{className:"barchart-total__num h0",children:H}),d&&t.jsx("span",{className:"barchart-total__unit h5",children:A(d)})]})}):t.jsxs(Ra,{children:[t.jsx("span",{className:"barchart-total__num h0",children:H}),t.jsx("span",{className:"barchart-total__unit h5",children:A(l)}),d&&t.jsx("span",{className:"barchart-total__unit h5",children:A(d)})]}):t.jsx("span",{}),t.jsx($r,{items:j,className:"caption-1"})]}),children:x?t.jsx("div",{className:"manager-bar-chart-loading",children:t.jsx(ga,{size:32})}):t.jsx(L4,{data:V,colorA:o,colorB:c?i:void 0,labelA:A(l),labelB:c?A(c):void 0,barWidth:n??S.barWidth,height:S.height,maxOverride:C?100:void 0,tightMax:y,seriesColors:b?.map(T=>T.color),seriesLabels:b?.map(T=>T.label),rateLabels:C?{total:A("trainingStatus.today.tooltipTotal","\uC804\uCCB4"),done:A("trainingStatus.today.tooltipDone","\uC644\uB8CC")}:void 0})})}const ll=(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")}`},cl=(e,n,a,r)=>({from:Ts(e,n,a),to:new Date(Ts(e,n,a+r).getTime()-1),fromYmd:ll(e,n,a),toYmd:ll(e,n,a+r-1)});function I4(e,n=0){if(e.period==="month"){const o=e.monthRange.match(/^(\d+)년 (\d+)월$/),i=qn(),l=o?Number(o[1]):i.getFullYear(),c=(o?Number(o[2]):i.getMonth()+1)-1+n,u=new Date(Date.UTC(l,c+1,0)).getUTCDate();return cl(l,c,1,u)}const a=e.weekRanges.find(o=>o.value===e.weekRange);if(!a){const o=new Date,i=Mn();return{from:o,to:o,fromYmd:i,toYmd:i}}const r=Cn(a.year,a.month-1);return cl(a.year,a.month-1,r+(a.week+n)*7,7)}const ul={small:{diameter:96,strokeWidth:16},medium:{diameter:120,strokeWidth:18},large:{diameter:160,strokeWidth:22}};function dl(e){return!Number.isFinite(e)||e<=0?0:e>=1?100:Math.min(99,Math.max(1,Math.round(e*100)))}function pl({done:e,total:n,segments:a,color:r="var(--color-main)",size:o="medium",strokeWidth:i,label:l="%",hideCenter:c=!1,hideLabel:u=!1}){const d=typeof o=="number"?o:ul[o].diameter,p=i??(typeof o=="number"?12:ul[o].strokeWidth),m=d/2,h=(d-p)/2,C=2*Math.PI*h;if(a&&a.length>0){const b=a.reduce((x,_)=>{const g=x.length>0?x[x.length-1].acc:0,A=Number.isFinite(_.ratio)?_.ratio:0,w=Math.max(0,Math.min(A,1-g));return x.push({color:_.color,rotate:-90+g*360,dash:C*w,acc:g+w}),x},[]);return t.jsx("div",{className:"ring-chart",style:{width:d,height:d},children:t.jsxs("svg",{width:d,height:d,viewBox:`0 0 ${d} ${d}`,"aria-hidden":"true",children:[t.jsx("circle",{cx:m,cy:m,r:h,fill:"none",stroke:"var(--color-whiteLine)",strokeWidth:p}),b.map((x,_)=>x.dash>0&&t.jsx("circle",{cx:m,cy:m,r:h,fill:"none",stroke:x.color,strokeWidth:p,strokeDasharray:`${x.dash} ${C}`,strokeLinecap:"round",transform:`rotate(${x.rotate} ${m} ${m})`},_))]})})}const y=(n??0)>0?Math.min((e??0)/n,1):0,f=C*y,v=C-f;return t.jsxs("div",{className:"ring-chart",style:{width:d,height:d},children:[t.jsxs("svg",{width:d,height:d,viewBox:`0 0 ${d} ${d}`,"aria-hidden":"true",children:[t.jsx("circle",{cx: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:`${f} ${v}`,strokeLinecap:y<.02||y>.98?"butt":"round",transform:`rotate(-90 ${m} ${m})`})]}),!c&&t.jsxs("div",{className:`ring-chart__center${u?"":` ${d<=96?"ring-chart__center--small":o==="medium"?"ring-chart__center--medium":"ring-chart__center--large"}`}`,children:[t.jsx("span",{className:`ring-chart__pct ${d<=96?"h2":"h1"}`,children:dl(y)}),!u&&t.jsx("span",{className:`ring-chart__label ${d<=96?"caption-2":"caption-1"}${d<=96||o==="medium"?" ring-chart__label--tight":""}`,children:l})]})]})}function F4({titleKey:e,headRight:n,icon:a,showTotal:r,totalLabelKey:o,legend:i,loading:l,className:c,inGrid:u=!1,...d}){const{t:p}=pe.useTranslation();if(!e)return t.jsx(pl,{...d});const m=(d.total??0)>0?dl(Math.min((d.done??0)/d.total,1)):0,h=d.size==="small",C=d.size==="large",y=[c,h?"manager-section--compact":C?"manager-section--full":""].filter(Boolean).join(" ")||void 0,f=a&&t.jsx("span",{className:"chart-section-icon",children:t.jsx(We,{icon:a,className:"chart-section-icon-inner"})});return t.jsx(Rr,{className:y,inGrid:u,title:p(e),titleClassName:h?"h5 chart-section-title--small":void 0,headRight:f||(h?void 0:n),subRow:(r||i)&&t.jsxs(t.Fragment,{children:[r?t.jsxs(Ra,{label:!h&&o?p(o):void 0,children:[t.jsx("span",{className:"barchart-total__num h0",children:m}),t.jsx("span",{className:"barchart-total__unit h5",children:"%"})]}):t.jsx("span",{}),i&&t.jsx($r,{items:i})]}),children:l?t.jsx("div",{className:"manager-bar-chart-loading",children:t.jsx(ga,{size:32})}):t.jsx("div",{className:"ring-chart-section-body ring-chart-section-body--offset",children:t.jsx(pl,{...d,hideCenter:h||d.hideCenter})})})}function O4({label:e,value:n,change:a,changeType:r,icon:o,tooltip:i,onClick:l}){const c=s.useRef(null),{anchorRect:u,openAt:d,close:p}=ja(),m=s.useCallback(()=>{i&&c.current&&d(c.current)},[i,d]),h=r??(a===void 0?void 0:a>0?"up":a<0?"down":"neutral"),C=a===void 0?void 0:a>0?`+${a}`:`${a}`,y=s.useCallback(f=>{l&&(f.key==="Enter"||f.key===" ")&&(f.preventDefault(),l())},[l]);return t.jsxs("div",{ref:c,className:`manager-stat-card${l?" manager-stat-card--clickable":""}`,onClick:l,onKeyDown:l?y:void 0,onPointerEnter:m,onPointerLeave:p,onFocus:m,onBlur:p,role:l?"button":void 0,tabIndex:l?0:void 0,"aria-label":l?[e,n,C].filter(f=>f!==void 0&&f!=="").join(" "):void 0,children:[i&&u&&t.jsx(kn,{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}),o&&t.jsx("span",{className:"manager-stat-card__icon",children:t.jsx(We,{icon:o,className:"manager-stat-card__icon-inner"})})]}),t.jsx("div",{className:"manager-stat-card__content",children:t.jsxs("div",{className:"manager-stat-card__left",children:[t.jsx("div",{className:"manager-stat-card__value h2",children:n}),C&&t.jsx("div",{className:`manager-stat-card__change manager-stat-card__change--${h??"neutral"} caption-1`,children:C})]})})]})}function ml({value:e,onChange:n,min:a=0,max:r=100,step:o=1,orientation:i="horizontal",size:l=24,disabled:c=!1,ariaLabel:u,length:d,className:p,label:m,formatValue:h,labelPos:C,labelAlign:y="right",showMinMax:f=!1,minLabel:v,maxLabel:b,showBgTick:x=!1,showFillTick:_=!1,tickStep:g,tickShape:A="dot"}){n&&!u&&ea("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 w=Math.min(r,Math.max(a,e)),S=r>a?(w-a)/(r-a):0,N=i==="vertical",k=!n,B=L=>n?.(Number(L.target.value)),V=typeof d=="number"?`${d}px`:d,H={"--slider-ratio":String(S),"--slider-thumb":`${l}px`,...V?N?{height:V}:{width:V}:{}},j=g??o,F=(x||_)&&j>0&&r>a?Math.floor((r-a)/j+1e-6):0;if(F>0&&F<=100){const L=A!=="dash",z=re=>L?`radial-gradient(circle, ${re} 0.5px, transparent 1px)`:N?`linear-gradient(to bottom, transparent calc(50% - 2px), ${re} calc(50% - 2px), ${re} calc(50% + 2px), transparent calc(50% + 2px))`:`linear-gradient(to right, transparent calc(50% - 2px), ${re} calc(50% - 2px), ${re} calc(50% + 2px), transparent calc(50% + 2px))`,$=L?"2px":"4px",E=[],I=[],oe=[];for(let re=0;re<=F;re++){const ee=re*j/(r-a);if(ee>1+1e-6)break;const se=`${((N?1-ee:ee)*100).toFixed(4)}%`,Ce=ee<=S+1e-6;if(Ce?!_:!x)continue;const Z=Ce?"var(--slider-tick-color-on-fill, var(--color-deepWhite))":"var(--slider-tick-color, var(--color-lightGray))";E.push(z(Z)),I.push(N?`${$} var(--slider-thumb)`:`var(--slider-thumb) ${$}`),oe.push(N?`center ${se}`:`${se} center`)}E.push(N?"linear-gradient(to top, var(--slider-fill-color) var(--slider-fill), var(--color-darkWhite) var(--slider-fill))":"linear-gradient(to right, var(--slider-fill-color) var(--slider-fill), var(--color-darkWhite) var(--slider-fill))"),I.push("100% 100%"),oe.push("0 0"),H.backgroundImage=E.join(", "),H.backgroundSize=I.join(", "),H.backgroundPosition=oe.join(", "),H.backgroundRepeat="no-repeat"}const T=h?h(w):m==="percent"?`${Math.round(r>a?(w-a)/(r-a)*100:0)}%`:m==="count"?`${w} / ${r}`:w===a&&v?v:w===r&&b?b:void 0,Y=t.jsx("input",{type:"range",className:ge("slider",`slider--${i}`,k&&"slider--static",!m&&!f&&p),min:a,max:r,step:o,value:w,disabled:c,readOnly:k,tabIndex:k?-1:void 0,"aria-label":u,"aria-valuetext":T,"aria-orientation":i,onChange:B,style:H});if(!m&&!f)return Y;const R=t.jsx("span",{className:"slider-wrap__minmax caption-1",children:v??a}),O=t.jsx("span",{className:"slider-wrap__minmax caption-1",children:b??r}),W=f?t.jsxs("div",{className:ge("slider-track-group",`slider-track-group--${i}`,!m&&p),children:[N?O:R,Y,N?R:O]}):Y;if(!m)return W;const le=C??(N?"bottom":"right"),q=`${Math.round(r>a?(w-a)/(r-a)*100:0)}%`,P=h?h(w):m==="percent"?q:m==="count"?`${w} / ${r}`:String(w),M=t.jsx("span",{className:"slider-wrap__value body-3b",children:P});return t.jsxs("div",{className:ge("slider-wrap",`slider-wrap--${i}`,`slider-wrap--label-${le}`,`slider-wrap--align-${y}`,p),children:[W,M]})}const H4=.86,V4=250,Pr=(e,n,a,r)=>Math.round(Math.min(r,Math.max(a,e-n))),Ir=(e,n,a,r)=>{const o=Pr(e,n,a,r);return`${o<0?"-":"+"}${Math.abs(o)} dB`};function Fr({analyser:e,audioElement:n,orientation:a="horizontal",length:r,label:o,labelPos:i,labelAlign:l="right",floorDb:c=-60,refDb:u=-35,displayMin:d=-5,displayMax:p=25,className:m,ariaLabel:h}){const C=s.useRef(null),y=s.useRef(null),f=s.useRef(null),v=s.useRef(null),[b,x]=s.useState(null);s.useEffect(()=>{const w=Y=>{const R=Ir(Y,u,d,p);f.current&&(f.current.textContent=R);const O=C.current;O&&(O.setAttribute("aria-valuenow",String(Pr(Y,u,d,p))),O.setAttribute("aria-valuetext",R))},S=e??o0(n)??(b&&b.el===n?b.node:null),N=y.current;if(!S||!N){N?.style.setProperty("--meter-level","0"),w(c);let Y=!1;return!e&&n&&ka(n).then(R=>{!Y&&R&&x({el:n,node:R})}),()=>{Y=!0}}mr();const k=new Float32Array(S.fftSize);let B=0,V=0,H=0,j=0,F=null;const T=Y=>{const R=s0(S,k);B=R>B?R:B*H4;const O=B>1e-5?20*Math.log10(B):-1/0,W=Math.max(c,O),le=W-u,q=Math.min(1,Math.max(0,(le-d)/(p-d)));if(N.style.setProperty("--meter-level",q.toFixed(3)),V+=W,H+=1,Y-j>=V4){const P=V/H;F=F==null?P:F*.6+P*.4,w(F),V=0,H=0,j=Y}v.current=requestAnimationFrame(T)};return v.current=requestAnimationFrame(T),()=>{v.current!=null&&cancelAnimationFrame(v.current),v.current=null}},[e,n,b,c,u,d,p]);const _=typeof r=="number"?`${r}px`:r,g=t.jsx("div",{className:"audio-meter__track",style:_?a==="vertical"?{height:_}:{width:_}:{},children:t.jsx("div",{ref:y,className:"audio-meter__fill"})}),A=i??(a==="vertical"?"bottom":"right");return t.jsxs("div",{ref:C,className:ge("audio-meter",`audio-meter--${a}`,o&&`audio-meter--label-${A}`,o&&`audio-meter--align-${l}`,m),role:"meter","aria-label":h,"aria-valuemin":d,"aria-valuemax":p,"aria-valuenow":Pr(c,u,d,p),"aria-valuetext":Ir(c,u,d,p),children:[g,o&&t.jsx("span",{ref:f,className:"audio-meter__value caption-2",children:Ir(c,u,d,p)})]})}const hl=260;function fl({message:e,position:n,duration:a,onClose:r}){const[o,i]=s.useState(!1),[l,c]=s.useState(!1),u=s.useRef(l),d=s.useRef(o);s.useEffect(()=>{u.current=l},[l]),s.useEffect(()=>{d.current=o},[o]);const p=s.useRef(null),m=s.useRef(""),h=s.useRef(r);s.useEffect(()=>{h.current=r});const C=a,y=s.useRef(null),f=s.useRef(0),v=s.useRef(0),b=s.useRef(!1),x=s.useRef(null),_=s.useRef(null),g=s.useRef(null),A=s.useRef(null),w=s.useRef(()=>{});w.current=k=>{k<0||(f.current=Date.now(),v.current=k,y.current=setTimeout(()=>{y.current=null,i(!1),x.current=setTimeout(()=>{c(!1);try{h.current()}catch{}},hl)},k))};const S=s.useCallback(()=>{b.current||!y.current||(b.current=!0,clearTimeout(y.current),y.current=null,v.current=Math.max(0,v.current-(Date.now()-f.current)))},[]),N=s.useCallback(()=>{b.current&&(b.current=!1,w.current(v.current))},[]);return s.useEffect(()=>{if(e!==m.current&&(y.current&&(clearTimeout(y.current),y.current=null),x.current&&(clearTimeout(x.current),x.current=null)),e){if(d.current)return C>0&&!y.current&&(b.current?v.current=C:w.current(C)),m.current=e,()=>{y.current&&(clearTimeout(y.current),y.current=null),x.current&&(clearTimeout(x.current),x.current=null)};const k=()=>{const B=p.current;if(B)try{B.classList.remove("is-visible"),B.style.transition="none",n==="top"?B.style.transform="translateX(-50%) translateY(-16px)":B.style.transform="translateX(-50%) translateY(16px)",B.style.opacity="0",B.offsetWidth,B.style.transition="",B.classList.add("is-visible"),A.current&&clearTimeout(A.current),A.current=setTimeout(()=>{A.current=null;try{B.style.opacity="",B.style.transform="",B.style.transition=""}catch{}},60)}catch{}};u.current?(k(),i(!0)):(c(!0),_.current=requestAnimationFrame(()=>{g.current=requestAnimationFrame(()=>{k(),i(!0)})})),C>0&&(b.current=!1,w.current(C))}else i(!1),x.current=setTimeout(()=>c(!1),hl);return m.current=e,()=>{y.current&&clearTimeout(y.current),x.current&&clearTimeout(x.current),_.current&&cancelAnimationFrame(_.current),g.current&&cancelAnimationFrame(g.current),A.current&&clearTimeout(A.current),y.current=null,x.current=null,_.current=null,g.current=null,A.current=null}},[e,C,n]),{mounted:l,showing:o,popupRef:p,pause:S,resume:N}}function Gn({message:e="",position:n="top",type:a="normal",onClose:r=()=>{},duration:o=2e3}){const{mounted:i,showing:l,popupRef:c,pause:u,resume:d}=fl({message:e,position:n,duration:o,onClose:r}),p=s.useRef(null);if(!i)return null;const m=a==="notice"||a==="warning"?a:"normal",h=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"&&u()},onMouseLeave:d,onFocusCapture:u,onBlurCapture:d,children:t.jsx("div",{className:`toast__inner toast__inner--${m} body-2`,children:e})});return typeof document<"u"?qt.createPortal(h,document.body):h}const z4=24;function W4({value:e,max:n=100,size:a=8,color:r,trackColor:o,label:i,formatValue:l,labelPos:c,labelAlign:u="right",ariaLabel:d,className:p}){const m=Number.isFinite(n)&&n>0?n:1,h=Math.max(0,Math.min(Number.isFinite(e)?e:0,m)),C=h/m*100,y=Number.isFinite(n)&&n>0?n:0,f=c??(a>=z4?"inside":"bottom"),v=f==="center"?"inside":f,b=v==="inside"&&(u==="left"?C>=15:u==="center"?C>=50:C>=85),x={};return r&&(x["--progress-bar-fill"]=r),o&&(x["--progress-bar-track"]=o),t.jsxs("div",{className:ge("progress-bar",`progress-bar--${a}`,`progress-bar--label-${v}`,i&&`progress-bar--align-${u}`,i&&b&&"progress-bar--label-on-fill",p),style:x,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":d,children:t.jsx("div",{className:"progress-bar__fill",style:{width:`${C}%`}})}),i&&t.jsx("span",{className:"progress-bar__label caption-1b",children:l?l(h):i==="percent"?`${Math.round(C)}%`:i==="raw"?String(h):`${h} / ${y}`})]})}const q4={position:"absolute",width:1,height:1,margin:-1,padding:0,overflow:"hidden",clipPath:"inset(50%)",whiteSpace:"nowrap",border:0},U4="rgba(255, 255, 255, 0.16)";function Cl({max:e,index:n,inactiveBg:a,inactiveColor:r,transparent:o,variant:i="numbered",announce:l=!1,ariaLabel:c}){const{t:u}=pe.useTranslation(),d=rn("(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??u("progress.steps",{current:p+1,total:e,defaultValue:"\uC9C4\uD589 \uB2E8\uACC4 {{current}} / {{total}}"}),h={};return a&&(h["--pi-inactive-bg"]=a),r&&(h["--pi-inactive-color"]=r),o&&(a||(h["--pi-inactive-bg"]=U4),r||(h["--pi-inactive-color"]="var(--color-white)")),i==="dot"?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:q4,children:m}),Array.from({length:e}).map((C,y)=>t.jsx("span",{"aria-hidden":"true",className:`progress-indicator-dot--dot${y<p?" done":y===p?" active":""}`},y))]}):d?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]})}):t.jsx("div",{className:"progress-indicator",style:h,role:"list","aria-label":m,children:Array.from({length:e}).map((C,y)=>t.jsx("span",{role:"listitem","aria-current":y===p?"step":void 0,className:`progress-indicator-dot ${y<p?" done":y===p?" active":""} body-3`,children:y+1},y))})}function G4(e){if(!e)return[];const n=[];let a=0,r="";for(const o of e.trim()){if(o==="("?a++:o===")"&&a--,/\s/.test(o)&&a===0){r&&(n.push(r),r="");continue}r+=o}return r&&n.push(r),n}function K4({children:e,className:n,style:a}){return t.jsx("div",{className:n?`table-cell ${n}`:"table-cell",style:a,children:e})}function Or({variant:e="default",children:n,className:a,draggable:r,onClick:o,onMouseEnter:i,onMouseLeave:l,onDragStart:c,onDragEnd:u,expandedContent:d}){const p=s.useCallback(m=>{o&&m.target===m.currentTarget&&(m.key==="Enter"||m.key===" ")&&(m.preventDefault(),o())},[o]);return e==="loading"?t.jsx("div",{className:"table-row-wrap",children:t.jsx("div",{className:"table-row table-row--loading",children:t.jsx(ga,{size:28})})}):e==="empty"?t.jsx("div",{className:"table-row-wrap",children:t.jsx("div",{className:"table-row table-row--empty body-3",children:n})}):t.jsxs("div",{className:"table-row-wrap",children:[t.jsx("div",{className:a?`table-row ${a}`:"table-row",draggable:r,onClick:o,onKeyDown:o?p:void 0,onMouseEnter:i,onMouseLeave:l,onDragStart:c,onDragEnd:u,role:o?"button":void 0,tabIndex:o?0:void 0,children:n}),d&&t.jsx("div",{className:"table-row-expand",children:d})]})}function Y4({dir:e}){return t.jsx(e==="asc"?Vo:Ho,{className:"table-field__sort-arrow",size:16,strokeWidth:2})}function Z4({children:e,onClick:n,className:a,sortDir:r,onResizeStart:o}){const i=s.useCallback(l=>{n&&l.target===l.currentTarget&&(l.key==="Enter"||l.key===" ")&&(l.preventDefault(),n())},[n]);return t.jsxs("div",{onClick:n,onKeyDown:n?i:void 0,role:n?"button":void 0,tabIndex:n?0:void 0,"aria-sort":r?r==="asc"?"ascending":"descending":void 0,className:ge("table-field body-3",a,r?"table-field--sorted":"",o?"table-field--resizable":""),children:[e,r&&t.jsx(Y4,{dir:r}),o&&t.jsx("span",{className:"table-field__resizer",onPointerDown:o,onClick:l=>l.stopPropagation(),"aria-hidden":"true"})]})}function Hr({fields:e=[],headerGroups:n,items:a=[],renderRow:r,onRowClick:o,isRowClickable:i,onRowMouseEnter:l,onRowMouseLeave:c,onRowDragStart:u,onRowDragEnd:d,draggingId:p,gridTemplateColumns:m,mobileGridTemplateColumns:h,resizable:C=!1,resizeMode:y="grow",resizeStorageKey:f,size:v="small",title:b,icon:x,count:_,collapsed:g=!1,onToggleCollapse:A,headerActions:w,empty:S,loading:N,dragOver:k=!1,onDragOver:B,onDragLeave:V,onDrop:H,renderExpandedRow:j,expandedId:F}){const{t:T}=pe.useTranslation(),Y=rn("(max-width: 767px)"),R=h&&Y?h:null,O=C&&!R,W=48,le=f?`table-cols:${f}`:null,q=s.useRef(null),P=s.useRef(()=>!1),M=s.useRef([]),L=s.useRef(null),z=Q=>{if(!Q||typeof window>"u")return null;try{const te=JSON.parse(window.localStorage.getItem(Q)??"null");return Array.isArray(te)&&te.length>0&&te.every(_e=>typeof _e=="number"&&Number.isFinite(_e)&&_e>0)?te:null}catch{return null}},[$,E]=s.useState(()=>z(le)),[I,oe]=s.useState(le);I!==le&&(oe(le),E(z(le)));const re=s.useRef($);s.useEffect(()=>{re.current=$},[$]);const ee=s.useCallback(Q=>{const te=L.current;te&&E(_e=>{if(!_e)return _e;const je=[..._e];if(te.next!=null&&te.startWNext!=null){const ze=Q.clientX-te.startX,Me=Math.max(W-te.startW,Math.min(te.startWNext-W,ze));je[te.index]=te.startW+Me,je[te.next]=te.startWNext-Me}else je[te.index]=Math.max(W,te.startW+(Q.clientX-te.startX));return je})},[]),se=s.useCallback(()=>{if(L.current=null,window.removeEventListener("pointermove",ee),window.removeEventListener("pointerup",se),window.removeEventListener("pointercancel",se),document.body.style.cursor="",document.body.style.userSelect="",le&&re.current)try{window.localStorage.setItem(le,JSON.stringify(re.current))}catch{}},[ee,le]),Ce=s.useCallback((Q,te)=>{te.preventDefault(),te.stopPropagation();const _e=q.current;if(!_e)return;const je=Array.from(_e.children).map(Me=>Me.getBoundingClientRect().width),ze=y==="fit"?e.findIndex((Me,Oe)=>Oe>Q&&Me.resizable!==!1):-1;L.current=ze>=0?{index:Q,startX:te.clientX,startW:je[Q],next:ze,startWNext:je[ze]}:{index:Q,startX:te.clientX,startW:je[Q]},E(je),window.addEventListener("pointermove",ee),window.addEventListener("pointerup",se),window.addEventListener("pointercancel",se),document.body.style.cursor="col-resize",document.body.style.userSelect="none"},[ee,se,y,e]),Z=s.useCallback(()=>{const Q=q.current,te=Q?.closest(".table-wrap");if(!Q||!te)return;const _e=te.style.getPropertyValue("--table-grid-cols");te.style.setProperty("--table-grid-cols",e.map((fe,Ge)=>P.current(Ge)?M.current[Ge]:"max-content").join(" "));const je=Array.from(te.querySelectorAll(".table-row")).filter(fe=>!fe.classList.contains("table-row--loading")&&!fe.classList.contains("table-row--empty")),ze=e.map((fe,Ge)=>{let Ee=Q.children[Ge]?.getBoundingClientRect().width??0;for(const $e of je){const He=$e.children[Ge];He&&(Ee=Math.max(Ee,He.getBoundingClientRect().width))}return Math.max(W,Math.ceil(Ee))}),Me=window.getComputedStyle(Q),Oe=Q.clientWidth-(parseFloat(Me.paddingLeft)||0)-(parseFloat(Me.paddingRight)||0);_e?te.style.setProperty("--table-grid-cols",_e):te.style.removeProperty("--table-grid-cols");let Re=ze;const tt=ze.reduce((fe,Ge,Ee)=>fe+(P.current(Ee)?Ge:0),0),Ke=ze.reduce((fe,Ge,Ee)=>fe+(P.current(Ee)?0:Ge),0),Ue=Oe-tt;if(Oe>0&&Ke>0&&Ue>0){const fe=Ue/Ke;Re=ze.map((Ee,$e)=>P.current($e)?Ee:Math.max(W,Math.round(Ee*fe)));const Ge=Math.round(Ue-Re.reduce((Ee,$e,He)=>Ee+(P.current(He)?0:$e),0));if(Ge!==0){let Ee=-1;Re.forEach(($e,He)=>{!P.current(He)&&(Ee<0||$e>Re[Ee])&&(Ee=He)}),Ee>=0&&(Re[Ee]=Math.max(W,Re[Ee]+Ge))}}if(E(Re),le)try{window.localStorage.setItem(le,JSON.stringify(Re))}catch{}},[e,y,le]);s.useEffect(()=>()=>{L.current&&(window.removeEventListener("pointermove",ee),window.removeEventListener("pointerup",se),window.removeEventListener("pointercancel",se),document.body.style.cursor="",document.body.style.userSelect="")},[ee,se]);const ie=G4(m),J=ie.filter(Q=>/\b(auto|min-content|max-content)\b|fit-content\(/.test(Q));J.length>0&&ea(`table-content-track:${m}`,`[ihabdevteam-core] Table \uC758 gridTemplateColumns \uC5D0 \uB0B4\uC6A9\uC73C\uB85C \uD06C\uAE30\uAC00 \uC815\uD574\uC9C0\uB294 \uD2B8\uB799(${J.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 be=Q=>/^\d+(\.\d+)?px$/.test(ie[Q]??"");P.current=be,M.current=ie;const ve=Q=>y==="fit"&&!be(Q)?"fr":"px",Te=$&&$.length===e.length&&(y==="fit"||a.length>0),de=R??(Te?e.map((Q,te)=>Q.resizable===!1&&ie[te]?ie[te]:`${$[te]}${ve(te)}`).join(" "):m),ye=de?{"--table-grid-cols":de}:void 0,we=b!==void 0;return t.jsx("div",{className:`table-wrap table-wrap--${v}${O?" table-wrap--resizable":""}${k?" table-wrap--dragover":""}${g?" table-wrap--collapsed":""}`,style:ye,onDragOver:B,onDragLeave:V,onDrop:H,children:t.jsxs("div",{className:"table body-2",children:[we&&t.jsxs("div",{className:"table-header",onClick:A,role:A?"button":void 0,tabIndex:A?0:void 0,"aria-expanded":A?!g:void 0,onKeyDown:A?Q=>{Q.target===Q.currentTarget&&(Q.key==="Enter"||Q.key===" ")&&(Q.preventDefault(),A())}:void 0,children:[A&&t.jsx(ce,{htmlType:"button",size:40,type:"dot",variant:"transparent-gray",useBorder:!1,icon:g?"chevron-right":"chevron-down",ariaLabel:g?T("common.expand","\uD3BC\uCE58\uAE30"):T("common.collapse","\uC811\uAE30"),className:"table-header__chevron"}),x&&t.jsx(We,{icon:x,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:_}),w&&t.jsx("span",{className:"table-header__actions",onClick:Q=>Q.stopPropagation(),children:w})]}),!g&&t.jsxs(t.Fragment,{children:[n&&n.length>0&&t.jsx("div",{className:"table-fields table-fields--groups",children:n.map((Q,te)=>t.jsx("div",{className:ge("table-field body-3",Q.className),style:{gridColumn:`span ${Q.span}`},children:Q.label},te))}),t.jsxs("div",{className:ge("table-fields-strip",O&&"table-fields-strip--resizable"),children:[t.jsx("div",{className:"table-fields",ref:q,children:e.map((Q,te)=>t.jsx(Z4,{onClick:Q.onClick,className:Q.className,sortDir:Q.sortDir,onResizeStart:O&&te<e.length-1&&Q.resizable!==!1&&(y!=="fit"||e.some((_e,je)=>je>te&&_e.resizable!==!1))?_e=>Ce(te,_e):void 0,children:Q.label},te))}),O&&t.jsx(ce,{htmlType:"button",size:40,type:"dot",variant:"transparent-gray",useBorder:!1,icon:"chevrons-left-right-ellipsis",ariaLabel:T("table.resetColumns","\uCE78 \uB108\uBE44 \uCD08\uAE30\uD654"),showTooltipInfo:T("table.resetColumns","\uCE78 \uB108\uBE44 \uCD08\uAE30\uD654"),className:"table-fields__reset",onClick:Z})]}),t.jsx("div",{className:"table-body",children:N?t.jsx(Or,{variant:"loading"}):a.length===0&&S?t.jsx(Or,{variant:"empty",children:S}):a.map((Q,te)=>{const _e=p!=null&&Q.id===p,je=!!o&&(i?i(Q):!0),ze=F!=null&&(F instanceof Set?F.has(Q.id):Q.id===F);return t.jsx(Or,{className:`${je?" table-row--clickable":""}${u?" table-row--draggable":""}${_e?" table-row--dragging":""}`.trim(),draggable:!!u,onClick:je?()=>o(Q):void 0,onMouseEnter:l?Me=>l(Q,Me):void 0,onMouseLeave:c?Me=>c(Q,Me):void 0,onDragStart:u?Me=>u(Q,Me):void 0,onDragEnd:d?Me=>d(Q,Me):void 0,expandedContent:ze&&j?j(Q):void 0,children:r(Q).map((Me,Oe)=>t.jsx(K4,{className:Me.className,style:Me.style,children:Me.content},Oe))},String(Q.id??te))})})]})]})})}function gl(e){switch(e){case"\uBCF4\uCCAD\uAE30":return"main";case"\uC778\uACF5\uC640\uC6B0":return"sub";default:return"default"}}const X4={\uBCF4\uCCAD\uAE30:"hearingAid",\uC778\uACF5\uC640\uC6B0:"cochlearImplant"};function J4(e,n){const a=X4[e];return a?n(`device.type.${a}`,{defaultValue:e}):e}function bl(e,n){return n!=="wornAt"?String(e[n]??""):e.wornYear?`${e.wornYear}-${e.wornMonth.padStart(2,"0")}-${e.wornDay.padStart(2,"0")}`:""}function Q4({rows:e,onSelect:n,onDelete:a,onWear:r,onRelease:o,onAdd:i}){const{t:l}=pe.useTranslation(),c=y=>y==="\uC88C"?l("device.direction.left","\uC88C"):l("device.direction.right","\uC6B0"),{\uC815\uB82C:u,\uCE78:d}=u2(),p=s.useMemo(()=>{if(!u)return e;const{key:y,asc:f}=u;return[...e].sort((v,b)=>{const x=y==="worn"?Number(b.worn)-Number(v.worn):bl(v,y).localeCompare(bl(b,y),"ko");return f?x:-x})},[e,u]),{pageRows:m,pageSizeProps:h,paginationProps:C}=c2(p,u);return t.jsxs("div",{className:"dlp-side-table",children:[t.jsx(Lr,{count:{value:e.length,unit:l("customers.device.unit","\uAC1C")},pageSize:h,pagination:C,actions:i&&t.jsx(ce,{htmlType:"button",size:40,type:"bar",variant:"main",icon:"plus",label:l("customers.device.addButton","\uAE30\uAE30 \uCD94\uAC00"),onClick:i})}),t.jsx(Hr,{resizable:!0,resizeMode:"fit",resizeStorageKey:"customer-device-history-v2",fields:[{...d(l("customers.device.wearingNow","\uCC29\uC6A9"),"worn"),resizable:!1},d(l("device.direction.label","\uBC29\uD5A5"),"side"),d(l("device.deviceType","\uC885\uB958"),"device"),d(l("device.brand","\uBE0C\uB79C\uB4DC"),"brand"),d(l("device.fitType","\uCC29\uC6A9\uD615\uD0DC"),"fitType"),d(l("device.productName","\uC81C\uD488\uBA85"),"productName"),d(l("device.wornDate","\uCC29\uC6A9\uC77C"),"wornAt"),...a?[{label:"",resizable:!1}]:[]],items:m.map((y,f)=>({id:y.id??`${y.side}-${f}`,row:y})),gridTemplateColumns:`56px 110px 110px minmax(120px, 1fr) 100px minmax(120px, 1fr) 110px${a?" 80px":""}`,renderRow:({row:y})=>[{content:t.jsx("span",{className:"dlp-worn-check",onClick:f=>f.stopPropagation(),children:t.jsx(tl,{checked:y.worn,disabled:y.worn?!o:!r,ariaLabel:y.worn?l("customers.device.unwear","\uCC29\uC6A9 \uD574\uC81C"):l("customers.device.wear","\uCC29\uC6A9"),onChange:f=>{f?r?.(y):o?.(y)}})})},{content:t.jsx("span",{children:c(y.side)})},{content:y.device?t.jsx(ut,{size:"small",variant:gl(y.device),fill:"soft",label:J4(y.device,l)}):t.jsx("span",{})},{content:t.jsx("span",{children:y.brand})},{content:t.jsx("span",{children:y.fitType||"-"})},{content:t.jsx("span",{children:y.productName||"-"})},{content:t.jsx("span",{className:"dlp-date",children:y.wornYear?`${y.wornYear}.${y.wornMonth}.${y.wornDay}`:"-"})},...a?[{content:t.jsx("span",{className:"dlp-row-actions",children:t.jsx(ce,{htmlType:"button",size:28,type:"bar",variant:"transparent-gray",label:l("common.delete","\uC0AD\uC81C"),onClick:f=>{f?.stopPropagation(),a(y)}})})}]:[]],onRowClick:({row:y})=>n(y),empty:l("customers.device.historyEmpty","\uB4F1\uB85D\uB41C \uAE30\uAE30 \uC774\uB825\uC774 \uC5C6\uC2B5\uB2C8\uB2E4.")})]})}function yl(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 eb(e,n){return new Date(e,n+1,0).getDate()}function tb(e,n){return new Date(e,n,1).getDay()}function nb({visits:e=[],onVisitClick:n,onVisitMove:a,onDayClick:r}){const{t:o}=pe.useTranslation(),i=s.useMemo(()=>o("calendar.dow",{returnObjects:!0}),[o]),l=Mn(),[c,u]=s.useState(()=>Number(l.slice(0,4))),[d,p]=s.useState(()=>Number(l.slice(5,7))-1),[m,h]=s.useState(null),C=s.useRef(null),y=s.useMemo(()=>{const g={};return e.forEach(A=>{g[A.date]||(g[A.date]=[]),g[A.date].push(A)}),g},[e]),f=s.useMemo(()=>{const g=eb(c,d),A=tb(c,d),w=[];for(let S=0;S<A;S++)w.push(null);for(let S=1;S<=g;S++)w.push(S);for(;w.length<35;)w.push(null);return w},[c,d]),v=s.useCallback(()=>{d===0?(u(g=>g-1),p(11)):p(g=>g-1)},[d]),b=s.useCallback(()=>{d===11?(u(g=>g+1),p(0)):p(g=>g+1)},[d]),x=g=>`${c}-${String(d+1).padStart(2,"0")}-${String(g).padStart(2,"0")}`,_=g=>x(g)===l;return t.jsxs("div",{children:[t.jsxs("div",{className:"calendar-nav",children:[t.jsx("button",{type:"button",className:"calendar-nav__button",onClick:v,"aria-label":o("calendar.prevMonth","\uC774\uC804 \uB2EC"),children:t.jsx(We,{icon:"chevron-left",label:"",className:"",svgClassName:"calendar-nav__button-icon",size:18})}),t.jsx("span",{className:"calendar-nav__title h5","aria-live":"polite",children:o("calendar.yearMonth",{year:c,month:d+1})}),t.jsx("button",{type:"button",className:"calendar-nav__button",onClick:b,"aria-label":o("calendar.nextMonth","\uB2E4\uC74C \uB2EC"),children:t.jsx(We,{icon:"chevron-right",label:"",className:"",svgClassName:"calendar-nav__button-icon",size:18})}),t.jsxs("div",{className:"calendar-nav__legend",children:[t.jsx("span",{className:"calendar-nav__legend-dot calendar-nav__legend-dot--main"}),t.jsx("span",{className:"caption-1",children:o("calendar.legend.visited","\uBC29\uBB38")}),t.jsx("span",{className:"calendar-nav__legend-dot calendar-nav__legend-dot--sub"}),t.jsx("span",{className:"caption-1",children:o("calendar.legend.scheduled","\uC608\uC57D")}),t.jsx("span",{className:"calendar-nav__legend-dot calendar-nav__legend-dot--disabled"}),t.jsx("span",{className:"caption-1",children:o("calendar.legend.noVisit","\uBBF8\uBC29\uBB38")})]})]}),t.jsxs("div",{className:"calendar-grid",children:[i.map(g=>t.jsx("div",{className:"calendar-day-header body-3",children:g},g)),f.map((g,A)=>{if(g===null)return t.jsx("div",{className:"calendar-cell empty"},`empty-${A}`);const w=g,S=x(w),N=y[S]??[],k=m===S;return t.jsxs("div",{className:`calendar-cell${_(w)?" today":""}${k?" drag-over":""}${r?" calendar-cell--clickable":""}`,role:r?"button":void 0,tabIndex:r?0:void 0,"aria-label":r?o("calendar.addOnDate",{date:S}):void 0,"aria-current":_(w)?"date":void 0,onClick:r?()=>r(S):void 0,onKeyDown:r?B=>{B.target===B.currentTarget&&(B.key!=="Enter"&&B.key!==" "||(B.preventDefault(),r(S)))}:void 0,onDragOver:a?B=>{B.preventDefault(),h(S)}:void 0,onDragLeave:a?B=>{B.currentTarget.contains(B.relatedTarget)||h(null)}:void 0,onDrop:a?B=>{B.preventDefault(),C.current!=null&&(a(C.current,S),C.current=null),h(null)}:void 0,children:[t.jsx("div",{className:"calendar-cell__number body-3",children:w}),t.jsx("div",{className:"calendar-cell__badges",children:N.map((B,V)=>t.jsxs("div",{draggable:!!a,className:`calendar-visit-badge${B.status==="noVisit"?" calendar-visit-badge--no-visit":B.status==="scheduled"?" calendar-visit-badge--scheduled":""}${n?" calendar-visit-badge--clickable":""}${a?" calendar-visit-badge--draggable":""}`,onDragStart:a?H=>{C.current=B.id,H.dataTransfer.effectAllowed="move"}:void 0,onDragEnd:a?()=>{C.current=null,h(null)}:void 0,onClick:n?H=>{H.stopPropagation(),n(B)}:void 0,...yl(n?()=>n(B):void 0),"aria-label":[B.time?Ms(B.time,o):null,B.customer,o(B.status==="noVisit"?"calendar.legend.noVisit":B.status==="scheduled"?"calendar.legend.scheduled":"calendar.legend.visited")].filter(Boolean).join(" "),children:[B.time&&t.jsx("span",{className:"calendar-visit-badge__time body-3",children:Ms(B.time,o)}),t.jsx("span",{className:"calendar-visit-badge__name body-3",children:B.customer}),B.status==="noVisit"&&t.jsx("span",{className:"calendar-visit-badge__no-visit caption-1",children:o("calendar.legend.noVisit","\uBBF8\uBC29\uBB38")})]},B.id??V))})]},w)})]})]})}const ab={page:"h3",pagePopup:"h4",popup:"h5"};function Kn({type:e="page",title:n,headingLevel:a,icon:r,action:o,disc:i,children:l,className:c,style:u}){const d=ab[e],p=n||i,m=a?`h${a}`:"div";return t.jsxs("div",{className:ge("section",`section--${e}`,c),style:u,children:[p&&t.jsxs("div",{className:"section__header",children:[t.jsxs("div",{className:"section__title-row",children:[r&&t.jsx(We,{icon:r,label:typeof n=="string"?n:void 0,className:"section__icon"}),t.jsxs("div",{className:"section__title-group",children:[n&&t.jsx(m,{className:`section__title ${d}`,children:n}),i&&t.jsx("div",{className:"section__disc body-3",children:i})]})]}),o&&t.jsx("div",{className:"section__action",children:o})]}),l]})}function vl({icon:e,label:n,tooltip:a,wrapperStyle:r,color:o,bgColor:i,useHover:l=!0,iconSize:c="medium"}){const u=c==="small",d=ge("category-icon",u?"category-icon--small":""),p=u?16:20,m=s.useRef(null),[h,C]=s.useState(!1),y=s.useMemo(()=>{const w=r&&typeof r=="object"?{...r}:{};return!o&&!i?w:{...w,...o?{color:o,"--t-item-fg":o}:{},...i?{"--t-item-bg":i}:{}}},[r,o,i]),f=a||n,[v,b]=s.useState(null);s.useLayoutEffect(()=>{h&&b(m.current?.getBoundingClientRect()??null)},[h]),s.useEffect(()=>{if(!l&&h)try{C(!1)}catch{}},[l,h]),s.useEffect(()=>{if(!h)return;const w=S=>{const N=m.current;if(!N)return;const k=S.target;k&&!N.contains(k)&&C(!1)};return document.addEventListener("pointerdown",w,!0),()=>document.removeEventListener("pointerdown",w,!0)},[h]);const x=s.useCallback(()=>{l&&C(!0)},[l]),_=s.useCallback(()=>{l&&C(!1)},[l]),g=s.useCallback(()=>C(!1),[]),A=s.useCallback(w=>{if(w.key==="Escape"){C(!1);return}(w.key==="Enter"||w.key===" ")&&(w.preventDefault(),C(S=>!S))},[]);return t.jsxs("span",{ref:m,className:"category-icon__wrap",onPointerEnter:x,onPointerLeave:_,onFocus:x,onBlur:_,onKeyDown:A,role:"button",tabIndex:0,"aria-label":typeof f=="string"?f:void 0,"aria-haspopup":!!f,"aria-expanded":h,"data-tooltip-ignore":!0,children:[t.jsx(We,{icon:e,label:n,className:d,imgClassName:"category-icon__image",maskClassName:"category-icon__mask",svgClassName:"category-icon__svg",wrapperStyle:y,size:p}),h&&f&&t.jsx(kn,{anchorRect:v,text:typeof f=="string"?f:void 0,offset:8,onClose:g,className:"category-icon__tooltip",ariaLabel:typeof f=="string"?f:void 0})]})}let An=null;function Vr(e){if(An&&An!==e)try{An()}catch{}return An=e,()=>{An===e&&(An=null)}}function Pa(e){if(An===e){An=null;try{e()}catch{}}}function rb(e,n){if(!e)return{previewCodes:[],previewBucket:null};const a=e,r=l=>l.map(c=>c?.contextCode||c?.context_code).filter(Boolean).map(String);if(n==="LISTEN_IN_NOISE"){const l=a.sentences||a.items||[],c=Array.isArray(l)&&l.length>0?r(l):[];return c.length===0&&(a.contextCode||a.context_code)&&c.push(String(a.contextCode||a.context_code)),{previewCodes:c,previewBucket:"LIN_D"}}if(n==="SHORT_STORY"){const l=a.items||a.sentences||[],c=Array.isArray(l)&&l.length>0?r(l):[];return c.length===0&&(a.contextCode||a.context_code)&&c.push(String(a.contextCode||a.context_code)),{previewCodes:c,previewBucket:"SHORT_S"}}if(n==="LONG_STORY"){const l=a.items||a.sentences||[],c=Array.isArray(l)&&l.length>0?r(l):[];return c.length===0&&(a.contextCode||a.context_code)&&c.push(String(a.contextCode||a.context_code)),{previewCodes:c,previewBucket:"LONG"}}if(n==="ORDERING_SENTENCE"){const l=a.sentences||a.items||[],c=Array.isArray(l)&&l.length>0?r(l):[];return c.length===0&&(a.contextCode||a.context_code)&&c.push(String(a.contextCode||a.context_code)),{previewCodes:c,previewBucket:"LIN_D"}}const o=a.sentences||a.items||[],i=r(Array.isArray(o)?o:[]);return i.length===0&&(a.contextCode||a.context_code)&&i.push(String(a.contextCode||a.context_code)),{previewCodes:i,previewBucket:null}}function ob(e,n){const[a,r]=s.useState(!1),[o,i]=s.useState(-1),[l,c]=s.useState({key:"",urls:[]}),u=s.useRef(null),d=s.useRef(!1),p=s.useRef(null),m=s.useRef(null),[h,C]=s.useState(!1),y=s.useRef([]),{previewCodes:f,previewBucket:v}=rb(e,n),b=`${f.join(",")}|${v??""}`,x=s.useMemo(()=>l.key===b?l.urls:[],[l,b]);s.useEffect(()=>{if(!f.length)return;let g=!1;return(async()=>{const A=[],w=[];for(const S of f)try{const N=ms(S,v);if(!N){A.push("");continue}let k=null;try{k=await hs(N)}catch{}if(!k)try{const B=await fs(N);B&&(k=URL.createObjectURL(B),w.push(k))}catch{}A.push(k??"")}catch{A.push("")}g?w.forEach(S=>{try{URL.revokeObjectURL(S)}catch{}}):(y.current.forEach(S=>{try{URL.revokeObjectURL(S)}catch{}}),y.current=w,c({key:b,urls:A}))})(),()=>{g=!0}},[f.join(","),v]),s.useEffect(()=>()=>{y.current.forEach(g=>{try{URL.revokeObjectURL(g)}catch{}}),y.current=[]},[]);const _=s.useCallback(async g=>{if(g.stopPropagation(),g.preventDefault(),d.current){p.current&&Pa(p.current),d.current=!1;try{u.current?.pause()}catch{}r(!1),i(-1);return}if(!x.filter(Boolean).length)return;let A=null;const w=()=>{d.current=!1;try{u.current?.pause()}catch{}A?.()};p.current=w;const S=Vr(w);d.current=!0,r(!0);for(let N=0;N<x.length&&d.current;N++){const k=x[N];if(k){i(N);try{await new Promise((B,V)=>{A=B;const H=new Audio(k);u.current=H,H.onended=()=>B(),H.onerror=()=>V(),H.play().catch(V)})}catch{break}}}S(),p.current===w&&(p.current=null,d.current=!1,r(!1),i(-1))},[x]);return s.useEffect(()=>()=>{p.current&&Pa(p.current),d.current=!1;try{u.current?.pause()}catch{}u.current=null},[]),{playing:a,playingIndex:o,previewUrls:x,previewHover:h,setPreviewHover:C,previewBtnRef:m,handlePreview:_}}const sb=e=>{if(!e)return[];const n=typeof e.context=="string"&&e.context.trim()||typeof e.sentence=="string"&&e.sentence.trim()||typeof e.text=="string"&&e.text.trim()||"";if(n)return[String(n)];const a=e.sentences||e.items||e.questions||[];return Array.isArray(a)&&a.length>0?a.map(r=>{if(typeof r=="string")return r;if(r&&typeof r=="object"){const o=r;return o.sentence||o.text||o.context||o.question||o.title||""}return""}).filter(r=>typeof r=="string"&&r.trim().length>0).map(r=>r.trim()):[]};function zr(e){const{index:n,type:a,trainingData:r,ariaLabel:o,depth:i,renderPopup:l,completed:c,completedIds:u,selectedIds:d,tooltipText:p,useDescriptionTooltip:m=!1,onRemove:h,hideCheckBadge:C=!1,showTypeLabel:y=!1,onComplete:f,onSelect:v,onMore:b,countLabelOverride:x,size:_="square"}=e||{},{t:g}=pe.useTranslation(),[A,w]=s.useState(!1),S=s.useRef(null),[N,k]=s.useState(!1);s.useEffect(()=>{S.current?.matches(":hover")&&k(!0)},[]);const{playing:B,playingIndex:V,previewUrls:H,previewHover:j,setPreviewHover:F,previewBtnRef:T,handlePreview:Y}=ob(r,a?.key),R=s.useCallback(()=>{v?v():w(!0)},[v]),O=s.useCallback(()=>w(!1),[]),W=s.useCallback(()=>k(!0),[]),le=s.useCallback(()=>k(!1),[]),q=s.useCallback(()=>F(!0),[F]),P=s.useCallback(()=>F(!1),[F]),[M,L]=s.useState(null);s.useLayoutEffect(()=>{j&&L(T.current?.getBoundingClientRect()??null)},[j,T]);const[z,$]=s.useState(null);s.useLayoutEffect(()=>{N&&!A&&m&&$(S.current?.getBoundingClientRect()??null)},[N,A,m]);const E=s.useCallback(fe=>{fe.target===fe.currentTarget&&(fe.key==="Enter"||fe.key===" ")&&(fe.preventDefault(),R())},[R]),I=r||null,oe=s.useMemo(()=>{if(!m)return null;const fe=p?(Array.isArray(p)?p:[p]).filter(Boolean):null,Ge=fe&&fe.length>0?fe:sb(I);return Ge&&Ge.length>0?Ge:null},[m,p,I]),re=s.useCallback(fe=>{fe.stopPropagation(),h?.()},[h]),ee=s.useCallback(fe=>fe.stopPropagation(),[]),se=s.useCallback(fe=>{typeof f=="function"&&f(fe)},[f]),Ce=c||(u&&r?.id!=null?u.has(String(r.id)):!1),Z=!Ce&&(d!=null&&r?.id!=null?d.has(String(r.id)):!1);gi("speechear.popup.close",O);const ie=Ls(),J=`${a?.label||""} ${n+1}`,be=I?.title||I?.name||J;let ve=a?.icon,Te,de="",ye="";try{const fe=I?.category_0||I?.category_main_code||I?.category_main,Ge=I?.category_1||I?.category_sub_code||I?.category_sub,Ee=ie.find($e=>$e.key===fe);Ee?.icon&&(ve=Ee.icon),!Te&&Ee?.color&&(Te={"--t-item-fg":Ee.color}),!Te&&I?.iconColor&&(Te={"--t-item-fg":I.iconColor}),de=Ee?g(`topic.${Ee.key}`,{defaultValue:Ee.label||""}):"";try{const $e=Ee?.subs?.find(He=>He.key===Ge);ye=$e?g(`topic.sub.${$e.key}`,{defaultValue:$e.label||""}):""}catch{}}catch{}const we=ye?`${de} / ${ye}`:de||a?.label||be,Q=fe=>g("training.countQuestions",{n:fe}),te=fe=>g("training.countSentences",{n:fe});let _e="";try{if(I)if(a?.key==="LISTEN_IN_NOISE"){let fe=0;Array.isArray(I.items)&&I.items.length>0?fe=I.items.length:Array.isArray(I.sentences)&&I.sentences.length>0?fe=I.sentences.length:I.sentences&&(fe=1),_e=te(fe)}else if(a?.key==="SHORT_STORY"){let fe=1;Array.isArray(r?.items)?fe=r.items.length:Array.isArray(r?.raw&&r.raw?.items)?fe=r.raw.items.length:Array.isArray(I?.questions)?fe=I.questions.length:Array.isArray(I?.sentences)&&(fe=I.sentences.length),_e=Q(fe)}else if(a?.key==="LONG_STORY"){let fe=1;if(Array.isArray(I.items)&&I.items.length>0){const Ge=I.items.reduce((Ee,$e)=>{const He=$e.questionItems;return Array.isArray(He)?Ee+He.length:Array.isArray($e.questions)?Ee+$e.questions.length:Ee},0);fe=Ge>0?Ge:I.items.length}else Array.isArray(I.questions)&&I.questions.length>0?fe=I.questions.length:Array.isArray(I.sentences)&&I.sentences.length>0&&(fe=I.sentences.length);_e=Q(fe)}else if(a?.key==="ORDERING_SENTENCE"){let fe=1;Array.isArray(I.items)&&I.items.length>0?fe=I.items.length:Array.isArray(I.sentences)&&I.sentences.length>0&&(fe=I.sentences.length),_e=te(fe)}else Array.isArray(I.items)&&(_e=I.items.length>0?Q(I.items.length):"")}catch{}const je=_==="row",ze=_==="list"||je,Me=_==="compact",Oe=_==="small",Re=Oe&&a?.key?F0().find(fe=>fe.key===a.key):void 0,tt=Re?$s[Re.key]:void 0,Ke=Re?tt?g(`trainingType.${tt}.title`,{defaultValue:Re.label}):Re.label??"":"",Ue=!!y&&!!a?.label&&a.label!==String(be)||Oe&&!!Ke&&Ke!==String(be);return t.jsxs(t.Fragment,{children:[t.jsxs("div",{ref:S,className:`training-block-button${ze?" training-block-button--list":""}${je?" training-block-button--row":""}${Me?" training-block-button--compact":""}${Oe?" training-block-button--small":""}${Ce?" training-block-button--completed":""}${Z?" training-block-button--selected":""}${Ue&&!Oe?" training-block-button--withType":""}${Oe&&!Ue?" training-block-button--no-type-label":""}`,onClick:R,onPointerEnter:W,onPointerLeave:le,role:"button",tabIndex:0,onKeyDown:E,"aria-label":typeof o=="string"?o:typeof be=="string"?be:void 0,children:[t.jsxs("div",{className:"training-block-button__left",children:[y&&a?.label&&a.label!==String(be)&&t.jsx("span",{className:"training-block-button__type-label caption-1",children:a.label}),Oe&&Ke&&Ke!==String(be)&&t.jsx("span",{className:"training-block-button__type-label caption-2",children:Ke}),t.jsx(vl,{icon:ve,label:be,tooltip:we,wrapperStyle:Te,iconSize:Oe||Me?"small":"medium"}),!C&&(Ce||Z)&&!(h&&N)&&t.jsx(ut,{type:"dot",icon:"check",position:"top-left",size:"medium","aria-label":Ce?g("training.completed","\uD6C8\uB828 \uC644\uB8CC"):g("training.selected","\uC120\uD0DD\uB428")}),h&&N&&t.jsx(ut,{type:"dot",icon:"remove",position:"top-left",size:"medium","aria-label":g("common.remove","\uC81C\uAC70"),onClick:re}),t.jsx("div",{className:`training-block-button__title ${Me?"body-3":Oe?"body-3b":"h3"}`,children:String(be)}),t.jsxs("div",{className:"training-block-button__description",children:[(()=>{const fe=x!==void 0?x:_e;return fe?t.jsx("div",{className:`training-block-button__count ${Oe?"caption-2":"caption-1"}`,children:fe}):null})(),t.jsx("div",{className:"training-block-button__chevron",children:t.jsx(We,{icon:"chevron-right",label:g("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:Oe?12:20})})]}),(ze&&!je||Oe)&&H.length>0&&t.jsx("div",{ref:T,className:"training-block-button__preview","data-tooltip-ignore":!0,onClick:ee,onPointerEnter:q,onPointerLeave:P,children:t.jsx(ce,{htmlType:"button",size:Oe?28:32,type:"dot",icon:B?"pause":"play",variant:Oe?"transparent-lightGray":"default",useBorder:!1,selected:B,ariaLabel:B?g("training.stop","\uC815\uC9C0"):g("training.preview","\uBBF8\uB9AC \uB4E3\uAE30"),onClick:Y})})]}),b&&t.jsx("div",{className:"training-block-button__more","data-tooltip-ignore":!0,onClick:fe=>{fe.stopPropagation(),b(fe)},children:t.jsx(ce,{htmlType:"button",size:40,type:"dot",icon:"more-horizontal",variant:"transparent-lightGray",useBorder:!1,ariaLabel:g("common.more","\uB354\uBCF4\uAE30")})})]}),j&&t.jsx(kn,{anchorRect:M,text:B?g("training.stop","\uC815\uC9C0"):g("training.preview","\uBBF8\uB9AC \uB4E3\uAE30"),offset:8,onClose:P}),N&&!A&&m&&(oe?t.jsx(Rn,{anchorRect:z,items:oe,activeIndex:V,onClose:le}):I?.subTitle?t.jsx(kn,{anchorRect:z,text:I.subTitle,offset:8,onClose:le}):null),A&&l&&l({trainingData:I,typeKey:a?.key??"",onClose:O,onComplete:se,popupTitle:String(be),popupSubTitle:a?.subTitle,depth:i!=null?String(i):void 0,popupIcon:ve,popupIconTooltip:String(we),popupWrapperStyle:Te})]})}let Wr=null,xl=!1;function _l(){if(xl||typeof document>"u")return;xl=!0,document.addEventListener("keydown",n=>{n.metaKey||n.ctrlKey||n.altKey||(Wr="keyboard")},!0);const e=()=>{Wr="pointer"};document.addEventListener("pointerdown",e,!0),document.addEventListener("mousedown",e,!0),document.addEventListener("touchstart",e,{capture:!0,passive:!0})}_l();function Ia(){return _l(),Wr==="keyboard"}const Fa=20;function ib(e){const{t:n}=pe.useTranslation(),{type:a,trainingDatas:r,depth:o,renderPopup:i,completedIds:l,selectedIds:c,onItemComplete:u,size:d,useDescriptionTooltip:p,onRemove:m,onMore:h,sectionType:C="page"}=e||{},[,y]=s.useState(0),f=typeof r<"u"?Array.isArray(r)?r:[]:[],v=f.length,[b,x]=s.useState(Math.min(v,Fa)),_=s.useMemo(()=>Array.isArray(o)?[...o,a?.label].filter(Boolean).join(" \xB7 "):[o||"",a?.label].filter(Boolean).join(" \xB7 "),[o,a?.label]);s.useEffect(()=>{x(Math.min(v,Fa))},[v]),gi("speechear.data.updated",()=>y(S=>S+1));const g=s.useRef(null),A=s.useRef(null);function w(){const S=document.activeElement;A.current=Ia()&&S&&S.closest?.(".training-block__more")?b:null,x(N=>Math.min(v,N+Fa))}return s.useEffect(()=>{const S=A.current;if(S==null)return;A.current=null;const N=document.activeElement;N&&N!==document.body||g.current?.querySelectorAll(".training-block-button")[S]?.focus()},[b]),t.jsxs(Kn,{type:C,title:a?.label,icon:a?.icon,disc:a?.desc,className:"training-block",children:[t.jsx("div",{className:"training-list",ref:g,children:(f||[]).slice(0,b).map((S,N)=>{const k=S;return t.jsx(zr,{index:N,type:a,trainingData:k,depth:_,renderPopup:i,completedIds:l,selectedIds:c,size:d,useDescriptionTooltip:p,onRemove:typeof m=="function"&&c!=null&&k?.id!=null&&c.has(String(k.id))?()=>m(k):void 0,onComplete:typeof u=="function"&&k?.id!=null?()=>u(String(k.id)):void 0,onMore:typeof h=="function"?B=>h(k,B):void 0},k?.id!=null?`${a?.key||"t"}-${String(k.id)}`:`${a?.key||"t"}-${N}`)})}),v>Fa&&b<v&&t.jsx("div",{className:"training-block__more",children:t.jsx(ce,{htmlType:"button",size:48,type:"bar",icon:"plus",onClick:w,ariaLabel:n("common.loadMore","\uB354\uBCF4\uAE30"),label:n("common.loadMore","\uB354\uBCF4\uAE30"),variant:"main"})})]})}function qr(e){const n=s.useRef(null),[a,r]=s.useState(!!e),[o,i]=s.useState(!1);s.useEffect(()=>{i(!1);const u=n.current;r(!!e&&!(u?.complete&&u.naturalWidth>0))},[e]);const l=s.useCallback(()=>r(!1),[]),c=s.useCallback(()=>{r(!1),i(!0)},[]);return{imgRef:n,loading:a,failed:o,hasImage:!!e&&!o,onLoad:l,onError:c}}var lb='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 cb=lb,Ur=s.forwardRef(function({item:e,disabled:n=!1,onPlayDone:a,selectable:r=!1,selected:o=!1,onSelect:i,flipDelay:l=0,hideLabel:c=!1,hideAudio:u=!1,orderRank:d=null},p){const{t:m}=pe.useTranslation(),h=e.word||e.title||"",C=n||!h,y=e.audio??e.sound??e.audioKey,f=e.subLabel||e.pronunciation||"",v=e.colloquialLabel||"",[b,x]=s.useState({label:h,subLabel:f,colloquialLabel:v,homonum:e.homonum});h&&(b.label!==h||b.subLabel!==f||b.colloquialLabel!==v||!Object.is(b.homonum,e.homonum))&&x({label:h,subLabel:f,colloquialLabel:v,homonum:e.homonum});const _=s.useRef(null),g=rn("(max-width: 767px)"),[A,w]=s.useState(!1),S=`${typeof y=="string"?y:y?.src??""}\0${h}`,[N,k]=s.useState({for:"",url:""}),B=N.for===S?N.url:"",V=Wn()?.(b.label,b.homonum)??e.image??"",{imgRef:H,loading:j,hasImage:F,onLoad:T,onError:Y}=qr(V);s.useEffect(()=>{let z=!1;return(async()=>{if(y){if(typeof y=="string"){if(y.startsWith("http")||y.includes("/")){k({for:S,url:y});return}}else if(typeof y=="object"&&!Array.isArray(y)){const E=y.src;if(E){k({for:S,url:E});return}}}const $=ur();if($&&h)try{const E=await Promise.resolve($(h));!z&&E&&k({for:S,url:E})}catch{}})(),()=>{z=!0}},[y,h,S]);const R=s.useRef(!0),O=s.useRef(null);s.useEffect(()=>(R.current=!0,()=>{R.current=!1,O.current&&Pa(O.current),O.current=null;try{_.current?.pause()}catch{}_.current=null}),[]);const W=s.useCallback(()=>new Promise(z=>{if(typeof window<"u"&&window.speechSynthesis&&h){w(!0),window.speechSynthesis.cancel();const $=new SpeechSynthesisUtterance(h);$.lang="ko-KR",$.onend=()=>{w(!1);try{a?.()}catch{}z()},$.onerror=()=>{w(!1),z()},window.speechSynthesis.speak($)}else z()}),[h,a]),le=s.useCallback(z=>new Promise($=>{let E=!1;const I=()=>{E||(E=!0,w(!1),$(!1))};try{const oe=new Audio(z);_.current=oe,oe.onended=()=>{if(!E){E=!0,w(!1);try{a?.()}catch{}$(!0)}},oe.onerror=I,oe.play().catch(I)}catch{I()}}),[a]),q=s.useCallback(async()=>{if(n||!R.current)return;const z=()=>{O.current===z&&(O.current=null);try{_.current?.pause()}catch{}try{window.speechSynthesis?.cancel()}catch{}w(!1)},$=Vr(z);O.current=z;try{window.speechSynthesis?.cancel()}catch{}try{if(B&&(w(!0),await le(B)))return;const E=t0();if(E&&h)try{const I=await Promise.resolve(E(h));if(!R.current||O.current!==z||I&&(w(!0),await le(I)))return}catch{}if(!R.current||O.current!==z)return;await W()}finally{$(),O.current===z&&(O.current=null)}},[n,B,h,le,W]);s.useImperativeHandle(p,()=>({play:()=>q()}),[q]);const P=z=>z.stopPropagation(),M=s.useCallback(z=>{if(z.stopPropagation(),!n){if(A){try{_.current?.pause()}catch{}try{window.speechSynthesis?.cancel()}catch{}w(!1);return}q()}},[n,A,q]),L=ge("training-word-card",n?"training-word-card--disabled":"",C?"training-word-card--flipped":"",r?"training-word-card--selectable":"",o?"training-word-card--selected":"");return t.jsx("div",{className:L,onClick:r&&!n?i:void 0,role:r?"button":void 0,"aria-pressed":r?o:void 0,tabIndex:r&&!n?0:void 0,"aria-disabled":r&&n?!0:void 0,onKeyDown:r&&!n?z=>{z.target===z.currentTarget&&(z.key==="Enter"||z.key===" "||z.key==="Spacebar")&&(z.preventDefault(),i?.())}:void 0,children:t.jsxs("div",{className:"training-word-card__flipper",style:{transitionDelay:C?"0ms":`${l}ms`},children:[t.jsxs("div",{className:"training-word-card__front",children:[o&&t.jsx("div",{className:"training-word-card__selected-badge",onClick:P,children:t.jsx(ut,{type:"dot",size:40,position:"inline",animate:!0,icon:d!=null?void 0:"check",number:d??void 0,"aria-label":d!=null?m("training.nthSelected",{n:d}):m("training.selected","\uC120\uD0DD\uB428")})}),t.jsx("div",{className:"training-word-card__image-wrap",children:F?t.jsxs(t.Fragment,{children:[j&&t.jsx("div",{className:"training-word-card__spinner"}),t.jsx("img",{ref:H,className:"training-word-card__image",src:V,alt:b.label||m("common.image","\uC774\uBBF8\uC9C0"),style:{opacity:j?0:1},onLoad:T,onError:Y})]}):t.jsx("div",{className:"training-word-card__placeholder"})}),!c&&t.jsxs("div",{className:"training-word-card__body",children:[t.jsx("div",{className:"training-word-card__word",children:b.label}),b.subLabel&&t.jsxs("div",{className:"training-word-card__pronunciation",children:["[",b.subLabel,"]"]}),b.colloquialLabel&&t.jsxs("div",{className:"training-word-card__colloquial caption-1",children:["[",b.colloquialLabel,"]"]})]}),!u&&t.jsx("div",{className:"training-word-card__bottom",onClick:r?P:void 0,children:t.jsx(ce,{htmlType:"button",size:g?40:48,type:g?"dot":"bar",icon:A?"pause":"play",label:g?void 0:m("training.playSound","\uC18C\uB9AC \uB4E3\uAE30"),selected:A,onClick:M,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:cb,className:"training-word-card__disabled-symbol",alt:"",draggable:!1})})]})})}),ub=260;function Nn(e){const{t:n}=pe.useTranslation(),{title:a,subtitle:r,headerActions:o,children:i,buttons:l,footer:c,footerClassName:u="",onClose:d,closeDisabled:p=!1,beforeClose:m,closeOnBackdrop:h=!0,className:C="",ariaLabel:y,useTitle:f=!0,inline:v=!1,size:b,layer:x="modal",height:_,fillBody:g=!1,resetScrollKey:A}=e||{},[w,S]=s.useState(!1),N=s.useRef(!1),k=s.useRef(null),B=s.useId(),V=s.useRef(null);s.useEffect(()=>{},[v,a,y,C]),s.useEffect(()=>{A!==void 0&&V.current&&(V.current.scrollTop=0)},[A]);const[H,j]=s.useState(!1);s.useEffect(()=>{const $=V.current;if(!$)return;const E=()=>j($.scrollHeight>$.clientHeight+1);if(E(),typeof ResizeObserver>"u")return;const I=new ResizeObserver(E);I.observe($);const oe=$.firstElementChild;return oe&&I.observe(oe),()=>I.disconnect()},[i,A]),s.useEffect(()=>{if(!v)return Zi()},[v]),s.useEffect(()=>{if(v)return;const $=document.activeElement,E=k.current;return Er(E,$),E&&!E.contains(document.activeElement)&&(E.querySelector(Ln)??E).focus(),()=>{const I=document.activeElement;(!I||I===document.body||E&&E.contains(I))&&Mr($)?.focus?.()}},[v]),vr(k,!v);const F=s.useRef(!0),T=s.useRef(null);s.useEffect(()=>(F.current=!0,()=>{F.current=!1,T.current&&(clearTimeout(T.current),T.current=null)}),[]);const Y=s.useCallback(()=>{!F.current||!N.current||(N.current=!1,S(!1))},[]),R=s.useCallback(($,E=!1)=>{if(N.current)return;N.current=!0,S(!0);const I=setTimeout(()=>{T.current===I&&(T.current=null);let oe;try{oe=$?$():void 0}catch{Y();return}oe&&typeof oe.then=="function"&&oe.then(()=>{setTimeout(Y,120)},Y)},ub);E&&(T.current=I)},[Y]),O=s.useCallback(()=>{p||m&&m()===!1||R(d,!0)},[R,d,p,m]),W=s.useRef(O);s.useEffect(()=>{W.current=O});const le=!v&&!!d;s.useEffect(()=>{if(le)return $n(()=>W.current())},[le]);const q=le&&h,P=s.useRef(!1),M=$=>{P.current=$.target===$.currentTarget},L=$=>{const E=P.current;P.current=!1,E&&$.target===$.currentTarget&&O()},z=t.jsx("div",{className:`popup ${v?"popup--inline":""} ${x==="belowPagePopup"?"popup--below-page-popup":""} ${w?"popup--closing":""} ${C}`,onPointerDown:q?M:void 0,onClick:q?L:void 0,onMouseDown:v?void 0:$=>{$.target===$.currentTarget&&$.preventDefault()},children:t.jsxs("div",{ref:k,className:`popup-panel${b?` popup-panel--${b}`:""}${_!=null?" popup-panel--has-height":""}${g?" popup-panel--fill-body":""}`,style:_!=null?{"--popup-height":typeof _=="number"?`${_}px`:_}:void 0,tabIndex:-1,role:v?void 0:"dialog","aria-modal":v?void 0:!0,"aria-labelledby":!v&&f&&a?B:void 0,"aria-label":!v&&!(f&&a)?y??(typeof a=="string"?a:void 0):void 0,children:[!f&&(o||d)?t.jsxs("div",{className:"popup-close-float",children:[o,d&&t.jsx(ce,{htmlType:"button",size:40,type:"dot",icon:"x",variant:"transparent-gray",useBorder:!1,onClick:O,disabled:p,ariaLabel:n("common.close","\uB2EB\uAE30")})]}):a||o||d?t.jsxs("div",{className:`popup-header${r?" popup-header--with-subtitle":""}`,children:[t.jsxs("div",{className:"popup-header-main",children:[t.jsx("span",{id:B,className:"popup-title popup-title--left h2",children:a}),r&&t.jsx("span",{className:"popup-subtitle body-3",children:r})]}),t.jsxs("div",{className:"popup-header-actions",children:[o,d&&t.jsx(ce,{htmlType:"button",size:40,type:"dot",icon:"x",variant:"transparent-gray",useBorder:!1,onClick:O,disabled:p,ariaLabel:n("common.close","\uB2EB\uAE30")})]})]}):null,t.jsx("div",{className:"popup-content",ref:V,tabIndex:H?0:void 0,children:t.jsx("div",{className:"popup-content__inner",children:typeof i=="function"?i({animateThen:R,closeWithAnimation:O}):i})}),l?.length?t.jsx("div",{className:"popup-footer popup-footer--buttons",children:l.map(($,E)=>t.jsx(ce,{htmlType:"button",size:48,variant:$.variant??"default",label:$.label,disabled:$.disabled,onClick:()=>$.onClick?.({animateThen:R,closeWithAnimation:O})},E))}):c?t.jsx("div",{className:`popup-footer${u?` ${u}`:""}`,children:typeof c=="function"?c({animateThen:R,closeWithAnimation:O}):c}):null]})});return v||typeof document>"u"?z:qt.createPortal(z,document.body)}function Oa(e){return String(e)}const wl=["o","triangle","x"];function kl(e,n){return e===n?null:n}const Al={o:"circle",triangle:"triangle",x:"x"},Nl={o:"main",triangle:"warn",x:"danger"};function db(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 o=n+a+r;return{marked:o,o:n,triangle:a,x:r,rate:o===0?null:(n+a*.5)/o}}function Gr(e){const n={};for(const[a,r]of Object.entries(e))(r==="o"||r==="triangle"||r==="x")&&(n[a]=r);return n}function Bl(e){const n=[];let a=0;for(const r of e)n.push(a),a+=r;return n}function pb(e,n){return!n&&e>0}const Yn={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 mb(e="landscape"){const{printSize:n,printW:a,printH:r}=Yn[e],o=document.createElement("style");o.textContent=`@page { size: ${n}; margin: 0; } .word-table { width: ${a} !important; height: ${r} !important; }`,document.head.appendChild(o);const i=()=>{document.head.removeChild(o),window.removeEventListener("afterprint",i)};window.addEventListener("afterprint",i),window.print()}function Sl(e,n){if(e.length===0)return[[]];const a=Math.max(1,Math.floor(n)),r=[];for(let o=0;o<e.length;o+=a)r.push(e.slice(o,o+a));return r}const hb={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 fb(e,n){const a=hb[e][n];if(a)return a;const r=Math.max(1,Math.ceil(n)),o=Math.max(1,Math.ceil(Math.sqrt(r*.707)));let i,l;return e==="landscape"?(l=o,i=Math.ceil(r/l)):(i=o,l=Math.ceil(r/i)),(e==="landscape"?i<l:l<i)&&([i,l]=[l,i]),{cols:i,rows:l}}const Cb={\uD45C\uC2DC:"word-table-block__content--cut-show",\uC810\uC120:"",\uCF54\uB108:"word-table-block__content--cut-corner",\uBBF8\uD45C\uC2DC:""},Dl={\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"},Tl={\uACE0\uC720:"\uACE0\uC720\uC5B4",\uD55C\uC790:"\uD55C\uC790\uC5B4",\uC678\uB798:"\uC678\uB798\uC5B4",\uD63C\uC885:"\uD63C\uC885\uC5B4"};function Kr(e,n){return e?e.split("/").map(a=>n[a]??a).join("/"):""}function jl(e,n,a,r){if(r!=="\uC810\uC120")return{};const o=e%n,i=Math.floor(e/n),l=o<n-1,c=i<a-1;if(!l&&!c)return{};const u="#ddd",d=C=>`repeating-linear-gradient(to ${C}, ${u} 0, ${u} 5px, transparent 5px, transparent 10px)`,p=[],m=[],h=[];return l&&(p.push(d("bottom")),m.push("1px 100%"),h.push("right center")),c&&(p.push(d("right")),m.push("100% 1px"),h.push("center bottom")),{backgroundImage:p.join(", "),backgroundSize:m.join(", "),backgroundPosition:h.join(", "),backgroundRepeat:"no-repeat",printColorAdjust:"exact",WebkitPrintColorAdjust:"exact"}}const gb=280,bb=240,yb=280,vb=400,xb=120,_b=280;function El(e,n){const a=s.useRef(null),[r,o]=s.useState(1),[i,l]=s.useState(0),c=s.useCallback((u,d)=>{const p=u/e,m=n?d/n:1/0,h=Math.min(1,p,m);o(h),l(Math.max(0,(u-e*h)/2))},[e,n]);return s.useEffect(()=>{const u=a.current;if(!u)return;const d=n?u.parentElement??u:u;if(c(d.clientWidth,d.clientHeight),typeof ResizeObserver>"u")return;const p=new ResizeObserver(([m])=>c(m.contentRect.width,m.contentRect.height));return p.observe(d),()=>p.disconnect()},[c,n]),{scalerRef:a,scale:r,offset:i}}let gn=null;function Ml({label:e,subLabel:n,colloquialLabel:a,homonum:r,showWord:o=!0,showImage:i=!0,showPronunciation:l=!0,showColloquial:c=!0,buttonSize:u=40,wordInfo:d}){const{t:p}=pe.useTranslation(),m=s.useRef(null),h=s.useRef(null),C=s.useRef(null),[y,f]=s.useState(1),[v,b]=s.useState(!1),[x,_]=s.useState({for:"",url:""}),[g,A]=s.useState(null),w=n&&n.length>0?n:a0()?.(e,r)??"",S=Wn()?.(e,r)??"",{imgRef:N,loading:k,failed:B,onLoad:V,onError:H}=qr(S),j=s.useCallback(()=>A(h.current?.getBoundingClientRect()??null),[]),F=s.useCallback(()=>A(null),[]),T=s.useMemo(()=>{if(!d)return null;const P=[];return d.grade&&P.push(p("wordTable.info.grade",{n:d.grade,defaultValue:"\uB09C\uC774\uB3C4: {{n}}\uB4F1\uAE09"})),d.syllables&&P.push(p("wordTable.info.syllables",{n:d.syllables,defaultValue:"\uC74C\uC808 \uC218: {{n}}\uC74C\uC808"})),d.pos&&P.push(p("wordTable.info.pos",{v:Kr(d.pos,wb(p)),defaultValue:"\uD488\uC0AC: {{v}}"})),d.wordType&&P.push(p("wordTable.info.wordType",{v:Kr(d.wordType,kb(p)),defaultValue:"\uC720\uD615: {{v}}"})),P.length?P:null},[d,p]),Y=w||e,R=x.for===Y?x.url:"";s.useEffect(()=>{const P=ur(),M=w||e;if(!P||!M)return;let L=!1;return Promise.resolve(P(M)).then(z=>{!L&&z&&_({for:M,url:z})}),()=>{L=!0}},[w,e]),s.useEffect(()=>()=>{C.current?.pause(),gn?.audio===C.current&&(gn=null)},[]);const O=s.useCallback(async P=>{if(P.stopPropagation(),v){C.current?.pause(),b(!1),gn=null;return}if(R){gn?.stop(),b(!0);try{const M=new Audio(R);C.current=M;const L=()=>{b(!1),gn?.audio===M&&(gn=null)};gn={audio:M,stop:()=>{M.pause(),L()}},M.onended=L,M.onerror=L,await M.play()}catch{b(!1),gn?.audio===C.current&&(gn=null)}}},[v,R]),W=i&&!!S&&!B,le=W&&o?gb:W?yb:bb,q=W&&o?vb:W?_b:xb;return s.useEffect(()=>{const P=m.current;if(!P||typeof ResizeObserver>"u")return;const M=new ResizeObserver(([L])=>{const{width:z,height:$}=L.contentRect;f(Math.min(z/le,$/q))});return M.observe(P),()=>M.disconnect()},[le,q]),t.jsxs("div",{ref:m,className:"word-table-cell",children:[t.jsxs("div",{className:"word-table-cell__inner",style:{transform:`scale(${y})`},children:[W&&t.jsxs("div",{className:"word-table-cell__image-wrap",children:[k&&t.jsx("div",{className:"word-table-cell__spinner"}),t.jsx("img",{ref:N,className:"word-table-cell__image",src:S,alt:e,draggable:!1,style:{opacity:k?0:1},onLoad:V,onError:H})]}),o&&t.jsx("span",{className:"word-table-cell__word h0",children:e}),l&&w&&t.jsxs("span",{className:"word-table-cell__sub h3",children:["[",w,"]"]}),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":R,children:[t.jsx("span",{"data-play-state":"play",style:{display:v?"none":void 0},children:t.jsx(ce,{htmlType:"button",size:u,type:"dot",icon:"play",variant:"transparent-lightGray",useBorder:!1,showTooltipInfo:p("common.play","\uC7AC\uC0DD"),onClick:O})}),t.jsx("span",{"data-play-state":"pause",style:{display:v?void 0:"none"},children:t.jsx(ce,{htmlType:"button",size:u,type:"dot",icon:"pause",useBorder:!1,selected:!0,showTooltipInfo:p("common.pause","\uBA48\uCDA4"),onClick:O})})]}),d&&t.jsxs("div",{ref:h,className:"word-table-cell__info-button",onPointerEnter:j,onPointerLeave:F,onFocus:j,onBlur:F,children:[t.jsx(ce,{htmlType:"button",size:u,type:"dot",icon:"info",variant:"transparent-lightGray",useBorder:!1,showTooltipInfo:!1,ariaLabel:p("wordTable.wordInfo","{{word}} \uB0B1\uB9D0 \uC815\uBCF4",{word:e}),onClick:P=>P.stopPropagation()}),g&&T&&t.jsx(Rn,{anchorRect:g,items:T,showIndex:!1})]})]})}const Ll={\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"},$l={\uACE0\uC720:"native",\uD55C\uC790:"sino",\uC678\uB798:"foreign",\uD63C\uC885:"mixed"};function wb(e){return Object.fromEntries(Object.entries(Dl).map(([n,a])=>[n,Ll[n]?e(`wordTable.pos.${Ll[n]}`,{defaultValue:a}):a]))}function kb(e){return Object.fromEntries(Object.entries(Tl).map(([n,a])=>[n,$l[n]?e(`wordSearch.filter.type.${$l[n]}`,{defaultValue:a}):a]))}function Zn({title:e,titleIcon:n,disc:a,className:r,orientation:o="landscape",contentTypes:i=["\uC774\uBBF8\uC9C0","\uB2E8\uC5B4","\uD45C\uC900 \uBC1C\uC74C"],cutLine:l="\uD45C\uC2DC",showOutline:c=!0,showDivLine:u=!0,items:d,editCells:p,count:m,activeCell:h=null,onActivateCell:C,onRemoveCell:y,onRemoveItem:f,onReorder:v,showFillerAdd:b=!1,contentRef:x,buttonSize:_=40,pageNumber:g,pageNumberPosition:A="right",fitHeight:w=!1,scoring:S=!1,marks:N,onMarkClick:k,scoreIndexOffset:B=0}){const V=s.useCallback((se,Ce)=>{k?.(B+se,Ce)},[k,B]),H=(se,Ce)=>{const Z=N?.[Oa(B+se)]??null;return t.jsx("div",{className:ge("word-table-cell__score",Z?"word-table-cell__score--marked":""),children:wl.map(ie=>t.jsx("span",{className:ge("word-table-cell__score-slot",Z===ie?"word-table-cell__score-slot--on":""),children:t.jsx(ce,{htmlType:"button",size:_,type:"dot",icon:Al[ie],variant:Z===ie?Nl[ie]:"default",selected:Z===ie,useBorder:!1,showTooltipInfo:!1,ariaLabel:j(`wordTable.scoring.${ie}`,{word:Ce,defaultValue:`${Ce} ${ie}`}),onClick:J=>{J.stopPropagation(),V(se,ie)}})},ie))})},{t:j}=pe.useTranslation(),F=p!==void 0,T=s.useRef(null),[Y,R]=s.useState(null),{width:O,height:W}=Yn[o],{scalerRef:le,scale:q,offset:P}=El(O,w?W:void 0),M=F?p?.length??0:d?.length??0,L=Math.max(m??M,1),{cols:z,rows:$}=fb(o,L),E={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")},I=F?(p??[]).some(se=>se!==null&&se.length>1):(d??[]).some(se=>se.words.length>1),oe=ge("word-table-block__content",Cb[l],c&&"word-table-block__content--outline",u&&I&&"word-table-block__content--div-line"),re={transform:`scale(${1/q})`,transformOrigin:"center center"},ee=t.jsx("div",{ref:le,className:"word-table__scaler",style:{height:W*q},children:t.jsx("div",{className:ge("word-table",r),style:{width:O,height:W,transform:`scale(${q})`,transformOrigin:"top left",marginLeft:P},children:t.jsxs("div",{ref:x,className:oe,style:{gridTemplateColumns:`repeat(${z}, 1fr)`,gridTemplateRows:`repeat(${$}, 1fr)`},children:[F?t.jsx(t.Fragment,{children:(p??[]).map((se,Ce)=>t.jsx("div",{className:ge("word-table-block__edit-cell",se?"word-table-block__edit-cell--filled":"word-table-block__edit-cell--empty",h===Ce?"word-table-block__edit-cell--active":""),style:jl(Ce,z,$,l),children:se?t.jsxs(t.Fragment,{children:[se.map((Z,ie)=>t.jsxs(s.Fragment,{children:[ie>0&&t.jsx("div",{className:"word-table-block__pair-divider"}),t.jsx(Ml,{label:Z.word,subLabel:Z.pronunciation,colloquialLabel:Z.colloquialPronunciation,homonum:Z.homonum,showWord:E.word,showImage:E.image,showPronunciation:E.pron,showColloquial:E.colloq,buttonSize:_})]},ie)),S&&H(Ce,se.map(Z=>Z.word).join(" / ")),y&&t.jsx("div",{className:"word-table-block__card-close",children:t.jsx(ce,{htmlType:"button",size:_,type:"dot",icon:"x",variant:"transparent-lightGray",useBorder:!1,showTooltipInfo:se.length>1?j("wordPrint.removePair","\uB300\uB9BD\uC30D \uBE7C\uAE30"):j("wordPrint.removeWord","\uB2E8\uC5B4 \uBE7C\uAE30"),ariaLabel:se.length>1?j("wordPrint.removePair","\uB300\uB9BD\uC30D \uBE7C\uAE30"):j("wordPrint.removeWord","\uB2E8\uC5B4 \uBE7C\uAE30"),onClick:()=>y(Ce)})})]}):C&&t.jsx("div",{style:re,children:t.jsx(ce,{htmlType:"button",size:"48",type:"bar",icon:"plus",label:j("wordTable.addWord","\uCD94\uAC00\uD558\uAE30"),onClick:()=>C(Ce)})})},Ce))}):t.jsxs(t.Fragment,{children:[(d??[]).map((se,Ce)=>t.jsxs("div",{className:`word-table-block__card${v?" word-table-block__card--draggable":""}${Y===Ce?" word-table-block__card--drag-over":""}`,style:jl(Ce,z,$,l),draggable:!!v,onDragStart:v?()=>{T.current=Ce}:void 0,onDragOver:v?Z=>{Z.preventDefault(),R(Ce)}:void 0,onDragLeave:v?()=>R(null):void 0,onDrop:v?Z=>{Z.preventDefault(),T.current!==null&&T.current!==Ce&&v(T.current,Ce),T.current=null,R(null)}:void 0,onDragEnd:v?()=>{T.current=null,R(null)}:void 0,children:[se.words.map((Z,ie)=>t.jsxs(s.Fragment,{children:[ie>0&&t.jsx("div",{className:"word-table-block__pair-divider"}),t.jsx(Ml,{label:Z.label,subLabel:Z.subLabel,colloquialLabel:Z.colloquialLabel,homonum:Z.homonum,showWord:E.word,showImage:E.image,showPronunciation:E.pron,showColloquial:E.colloq,buttonSize:_,wordInfo:Z.grade||Z.syllables!=null||Z.pos||Z.wordType?{grade:Z.grade,syllables:Z.syllables,pos:Z.pos,wordType:Z.wordType}:void 0})]},ie)),S&&H(Ce,se.words.map(Z=>Z.label).join(" / ")),f&&t.jsx("div",{className:"word-table-block__card-close",children:t.jsx(ce,{htmlType:"button",size:_,type:"dot",icon:"x",variant:"transparent-lightGray",useBorder:!1,showTooltipInfo:se.words.length>1?j("wordPrint.removePair","\uB300\uB9BD\uC30D \uBE7C\uAE30"):j("wordPrint.removeWord","\uB2E8\uC5B4 \uBE7C\uAE30"),ariaLabel:se.words.length>1?j("wordPrint.removePair","\uB300\uB9BD\uC30D \uBE7C\uAE30"):j("wordPrint.removeWord","\uB2E8\uC5B4 \uBE7C\uAE30"),onClick:()=>f(se.id)})})]},se.id)),Array.from({length:Math.max(0,z*$-(d?.length??0))}).map((se,Ce)=>{const Z=(d?.length??0)+Ce<L;return t.jsx("div",{className:"word-table-block__card word-table-block__card--filler",children:b&&C&&Z&&t.jsx("div",{style:re,children:t.jsx(ce,{htmlType:"button",size:_,type:"bar",icon:"plus",label:j("wordTable.addWord","\uCD94\uAC00\uD558\uAE30"),onClick:()=>C((d?.length??0)+Ce)})})},`filler-${Ce}`)})]}),g&&A!=="none"&&t.jsx("span",{className:`word-table__page-number body-3 word-table__page-number--${A}`,children:j("wordTable.filter.pageIndicator",{current:g.current,total:g.total})})]})})});return e!=null||n||a?t.jsx(Kn,{type:"page",icon:n,title:e,disc:a,className:ge("word-table-block",r),children:ee}):ee}function bn({title:e,headerAction:n,collapsible:a=!1,defaultCollapsed:r=!1,collapsed:o,onCollapsedChange:i,footer:l,sections:c,selected:u={},onSelect:d,align:p,sectionAlign:m,className:h}){const C=(p??(m==="vertical"?"newline":"inline"))==="inline",{t:y}=pe.useTranslation(),[f,v]=s.useState(r),b=o??f,x=()=>{const g=!b;v(g),i?.(g)},_=e||n||a;return t.jsxs("div",{className:ge("filter-panel",a?"filter-panel--collapsible":"",b?"filter-panel--collapsed":"",h),children:[_&&t.jsxs("div",{className:"filter-panel__header",children:[t.jsxs("div",{className:"filter-panel__title-row",children:[a&&t.jsx(ce,{htmlType:"button",size:40,type:"dot",variant:"transparent-gray",useBorder:!1,icon:b?"chevron-down":"chevron-up",ariaLabel:b?y("common.expand","\uD3BC\uCE58\uAE30"):y("common.collapse","\uC811\uAE30"),"aria-expanded":!b,onClick:x}),e&&t.jsx("span",{className:"filter-panel__title h4",children:e})]}),t.jsx("div",{className:"filter-panel__header-actions",children:!b&&n})]}),!b&&t.jsxs(t.Fragment,{children:[t.jsx("div",{className:ge("filter-panel__sections",C?"filter-panel__sections--row":""),children:c.map(g=>{const A=u[g.label],w=A===void 0||(Array.isArray(A)?A.length===0:!1),S=(g.items??[]).filter(k=>k!=null);g.allOption&&S.some(k=>(typeof k=="string"?k:k.value)===on)&&ea(`filter-panel-all-value:${g.label}`,`[FilterPanel] '${g.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 N=k=>{const B=typeof k=="string"?k:k.value,V=typeof k!="string"&&!!k.disabled,H=typeof k!="string"?k.labels:void 0,j=typeof k!="string"?k.displayLabel:void 0,F=typeof k!="string"?k.tooltip:void 0,T=typeof k!="string"?k.descriptionTooltip:void 0,Y=typeof k!="string"?k.shape:void 0,R=Array.isArray(A)?A.includes(B):A===B;return t.jsx(ce,{htmlType:"button",size:"keyboard",label:H??j??B,type:g.itemType??(H?"bar":B.length===1?"dot":void 0),selected:R,disabled:V,shape:Y,showTooltipInfo:!!F,tooltipInfoText:F,tooltipDescription:T,onClick:()=>d?.(B,g.label)},B)};return t.jsxs(s.Fragment,{children:[g.groupLabel&&t.jsxs("div",{className:"filter-panel__group-label-row",children:[t.jsx("div",{className:"filter-panel__group-label body-2",children:g.groupLabel}),g.groupAction]}),t.jsxs("div",{className:ge("filter-panel__section",g.layout==="row"?"filter-panel__section--row":"",g.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:g.displayLabel??g.label}),g.labelAction??(g.labelInfo?t.jsx(ha,{...g.labelInfo}):null)]}),g.type==="note"?t.jsx("div",{className:"filter-panel__note body-3",children:g.content}):g.type==="input"?t.jsx(Fn,{className:"filter-panel__textfield",placeholder:g.placeholder,ariaLabel:g.displayLabel??g.label,value:u[g.label]??"",onChange:k=>d?.(k,g.label),error:g.error}):!g.multiple&&g.display==="segmented"?t.jsx(On,{ariaLabel:g.displayLabel??g.label,options:[...g.allOption?[{key:on,label:g.allLabel??y("common.all","\uC804\uCCB4"),disabled:g.allOptionDisabled}]:[],...S.map(k=>{const B=typeof k=="string"?k:k.value,V=typeof k!="string"?k.displayLabel:void 0,H=typeof k!="string"?k.disabled:void 0;return{key:B,label:V??B,disabled:H}})],value:w&&g.allOption?on:u[g.label]??"",onChange:k=>d?.(k,g.label),size:32}):!g.multiple&&g.display==="dropdown"?t.jsx(en,{className:"filter-panel__dropdown",size:40,options:[...g.allOption?[{value:on,label:g.allLabel??y("common.all","\uC804\uCCB4"),disabled:g.allOptionDisabled}]:[],...S.map(k=>{const B=typeof k=="string"?k:k.value,V=typeof k!="string"?k.displayLabel:void 0,H=typeof k!="string"?k.disabled:void 0;return{value:B,label:V??B,disabled:H}})],value:w&&g.allOption?on:u[g.label],onChange:k=>d?.(k,g.label)}):t.jsxs("div",{className:g.groups?"filter-panel__item-groups":"filter-panel__items",children:[g.allOption&&!g.groups&&t.jsx(ce,{htmlType:"button",size:"keyboard",label:g.allLabel??y("common.all","\uC804\uCCB4"),selected:w,disabled:g.allOptionDisabled,onClick:()=>d?.(on,g.label)}),g.groups?g.groups.map((k,B)=>t.jsxs("div",{className:"filter-panel__item-group",children:[B===0&&g.allOption&&t.jsx(ce,{htmlType:"button",size:"keyboard",label:g.allLabel??y("common.all","\uC804\uCCB4"),selected:w,disabled:g.allOptionDisabled,onClick:()=>d?.(on,g.label)}),k.filter(V=>V!=null).map(N)]},B)):S.map(N)]})]})]},g.label)})}),l!=null&&l!==!1&&t.jsx("div",{className:"filter-panel__footer body-3",children:l})]})]})}const Ab=[1,2,3,4,5,6,7,8,9,10,11,12],Yr=[8,4,2,1];function Rl(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 Pl(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 Il(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 Fl(e){return{label:e("wordTable.filter.cutLine","\uC808\uCDE8\uC120"),items:[{value:"\uD45C\uC2DC",displayLabel:e("wordTable.filter.show","\uD45C\uC2DC")},{value:"\uC810\uC120",displayLabel:e("wordTable.filter.dotted","\uC810\uC120")},{value:"\uCF54\uB108",displayLabel:e("wordTable.filter.corner","\uCF54\uB108")},{value:"\uBBF8\uD45C\uC2DC",displayLabel:e("wordTable.filter.hide","\uBBF8\uD45C\uC2DC")}],display:"segmented"}}function Ol(e){return{label:e("wordPrint.divLine","\uB300\uB9BD\uC120"),items:[{value:"\uD45C\uC2DC",displayLabel:e("wordTable.filter.show","\uD45C\uC2DC")},{value:"\uBBF8\uD45C\uC2DC",displayLabel:e("wordTable.filter.hide","\uBBF8\uD45C\uC2DC")}],display:"segmented"}}function Hl(e,n){return{label:e(n.hasPairs?"wordTable.filter.itemsPerPagePair":"wordTable.filter.itemsPerPageWord"),items:[n.itemCount,...Yr.filter(a=>a<n.itemCount)].map(a=>({value:`${a}\uAC1C`,displayLabel:e("wordTable.filter.itemsPerPageOption",{count:a})})),display:"segmented"}}function Vl(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 zl={left:"\uC67C\uCABD",center:"\uC911\uC559",right:"\uC624\uB978\uCABD",none:"\uBBF8\uD45C\uC2DC"};function Wl(e){return e==="\uC67C\uCABD"?"left":e==="\uC911\uC559"?"center":e==="\uC624\uB978\uCABD"?"right":"none"}function ql(e,n){return{[e("wordTable.filter.composition","\uAD6C\uC131")]:n.contentTypes,[e("wordTable.filter.paperOrientation","\uC6A9\uC9C0 \uBC29\uD5A5")]:n.orientation==="landscape"?"\uAC00\uB85C":"\uC138\uB85C",[e("wordTable.filter.border","\uC678\uACFD\uC120")]:n.showOutline?"\uD45C\uC2DC":"\uBBF8\uD45C\uC2DC",[e("wordTable.filter.cutLine","\uC808\uCDE8\uC120")]:n.cutLine,[e("wordPrint.divLine","\uB300\uB9BD\uC120")]:n.showDivLine?"\uD45C\uC2DC":"\uBBF8\uD45C\uC2DC"}}function Ul(e,n,a,r){return a===e("wordTable.filter.composition","\uAD6C\uC131")?n===on?(r.setContentTypes(()=>[]),!0):(r.setContentTypes(o=>o.includes(n)?o.filter(i=>i!==n):[...o,n]),!0):a===e("wordTable.filter.paperOrientation","\uC6A9\uC9C0 \uBC29\uD5A5")?(r.setOrientation(n==="\uAC00\uB85C"?"landscape":"portrait"),!0):a===e("wordTable.filter.border","\uC678\uACFD\uC120")?(r.setShowOutline(n==="\uD45C\uC2DC"),!0):a===e("wordTable.filter.cutLine","\uC808\uCDE8\uC120")?(r.setCutLine(n),!0):a===e("wordPrint.divLine","\uB300\uB9BD\uC120")?(r.setShowDivLine(n==="\uD45C\uC2DC"),!0):!1}function Nb(e){return"sections"in e}function Zr(e){const{t:n}=pe.useTranslation(),{title:a,className:r}=e;if(Nb(e))return t.jsx(bn,{className:r,title:a??n("wordTable.filterTitle","\uD45C \uC124\uC815"),sections:e.sections,selected:e.selected,onSelect:e.onSelect,align:"inline"});const{hasImage:o,hasColloquial:i,contentTypes:l,orientation:c,showOutline:u,cutLine:d,showDivLine:p,setters:m,showCutLine:h=!1,showDivLine2:C=!1,middleSections:y=[],extraSelected:f={},onExtraSelect:v}=e,b=[Rl(n,{hasImage:o,hasColloquial:i}),Pl(n),...y,Il(n),...h?[Fl(n)]:[],...C?[Ol(n)]:[]],x={...ql(n,{contentTypes:l,orientation:c,showOutline:u,cutLine:d,showDivLine:p}),...f},_=(g,A)=>{Ul(n,g,A,m)||v?.(g,A)};return t.jsx(bn,{className:r,title:a??n("wordTable.filterTitle","\uD45C \uC124\uC815"),sections:b,selected:x,onSelect:_,sectionAlign:"horizontal"})}function Gl(e){return e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function Xr(e){return e.replace(/[\\/:*?"<>|]/g,"_").trim()}let Ha=null,Xn=null;function Bb(e,n,a,r="",o=""){if(e.length===0||Xn&&Xn.iframe.isConnected&&Date.now()-Xn.at<1e4)return;const i=r?Xr(r):"";Ha?.();let l=null;if(i){const d=document.title;document.title=i,l=()=>{document.title=d,window.removeEventListener("afterprint",l),Ha===l&&(Ha=null)},Ha=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 u=c.contentDocument;if(!u){c.remove();return}Xn={iframe:c,at:Date.now()},u.open(),u.write(Jr(e,n,a,!0,i,o)),u.close(),c.contentWindow?.addEventListener("afterprint",()=>{l?.(),setTimeout(()=>{c.remove(),Xn?.iframe===c&&(Xn=null)},0)})}function Jr(e,n,a,r=!1,o="",i=""){o=o?Xr(o):"";const l=Array.from(document.styleSheets).flatMap(p=>{try{return Array.from(p.cssRules).map(m=>m.cssText)}catch{return[]}}).join(`
839
- `),c="light",u=i?`<div class="paper-head">${Gl(i)}</div>`:"",d=e.map(p=>{const m=p.cloneNode(!0);return m.querySelectorAll('[data-play-state="play"]').forEach(h=>h.style.display=""),m.querySelectorAll('[data-play-state="pause"]').forEach(h=>h.style.display="none"),m.querySelectorAll(".word-table-cell__score-slot:not(.word-table-cell__score-slot--on)").forEach(h=>h.remove()),m.querySelectorAll(".word-table-cell__spinner").forEach(h=>h.remove()),m.querySelectorAll("img").forEach(h=>h.style.removeProperty("opacity")),`<div class="paper-wrap">${u}${m.outerHTML}</div>`}).join(`
838
+ `),f=y===-1?a:a.slice(0,y);i("comment",f),a=a.slice(f.length);continue}const c=a.match(/^\/\*[\s\S]*?\*\//);if(c){i("comment",c[0]),a=a.slice(c[0].length);continue}const u=a.match(/^(`(?:\\.|[^`])*`|"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*')/);if(u){i("string",u[0]),a=a.slice(u[0].length);continue}const d=a.match(/^\d+(?:\.\d+)?/);if(d){i("number",d[0]),a=a.slice(d[0].length);continue}const p=a.match(w4);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(o&&_4.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 C=a.match(/^[()[\]{};.,]/);if(C){i("punctuation",C[0]),a=a.slice(1);continue}i("other",a[0]),a=a.slice(1)}return r}function A4({children:e,language:n="bash",title:a="",showCopy:r=!0,size:o="default",className:i=""}){const{t:l}=pe.useTranslation(),[c,u]=s.useState(!1),d=x4(el(e)),p=s.useRef(null);s.useEffect(()=>()=>{p.current&&clearTimeout(p.current)},[]);const m=async()=>{try{if(!await $0(d))return;u(!0),p.current&&clearTimeout(p.current),p.current=setTimeout(()=>u(!1),2e3)}catch{}},h=k4(d,n),C=o==="small"?"caption-1":"body-3";return t.jsxs("div",{className:ge("code-box",o==="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,f)=>t.jsx("span",{className:`code-token ${y.type} ${C}`,children:y.content},f))})})]})}const N4={position:"absolute",width:1,height:1,margin:-1,padding:0,overflow:"hidden",clipPath:"inset(50%)",whiteSpace:"nowrap",border:0};function ga(e){const{t:n}=pe.useTranslation(),{variant:a="spinner",size:r=24,progress:o=null,label:i}=e||{},l=i||n("loader.loading","Loading");if(a==="bar"){const u=Math.max(0,Math.min(100,Number(o)||0));return t.jsx("div",{className:"loader-bar",role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":u,"aria-label":l,children:t.jsx("div",{className:"loader-bar__inner",style:{width:`${u}%`}})})}const c=typeof r=="number"?`${r}px`:r;return t.jsxs("div",{className:"loader-spinner",style:{width:c,height:c},role:"status","aria-label":l,children:[t.jsx("span",{style:N4,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 tl({checked:e,onChange:n,disabled:a=!1,label:r,ariaLabel:o,labelPosition:i="right",className:l="",id:c}){const u=r&&t.jsx("span",{className:"toggle__label body-3",children:r});return t.jsxs("label",{className:`toggle${a?" toggle--disabled":""} ${l}`.trim(),children:[i==="left"&&u,t.jsx("input",{id:c,type:"checkbox",role:"switch",checked:e,disabled:a,onChange:d=>n?.(d.target.checked),"aria-label":!r&&o?o:void 0}),t.jsx("span",{className:"toggle__slider"}),i==="right"&&u]})}function nl({checked:e=!1,onChange:n,disabled:a,indeterminate:r,label:o,size:i="medium",className:l,title:c,ariaLabel:u}){const d=s.useRef(null),p=s.useId(),m=s.useRef(!!r);return m.current=!!r,s.useEffect(()=>{d.current&&(d.current.indeterminate=!!r)}),t.jsxs("label",{className:ge("checkbox",i==="small"&&"checkbox--small",i==="large"&&"checkbox--large",a&&"checkbox--disabled",l),htmlFor:p,title:c,children:[t.jsx("input",{ref:d,id:p,type:"checkbox",className:"checkbox__input",checked:e,onChange:h=>{n?.(h.target.checked),d.current&&(d.current.indeterminate=m.current)},disabled:a,"aria-label":!o&&u?u:void 0}),t.jsx("span",{className:"checkbox__box"}),o&&t.jsx("span",{className:"checkbox__label body-3",children:o})]})}function B4({count:e,actions:n,onClear:a,clearLabel:r,visible:o,content:i,max:l}){const{t:c}=pe.useTranslation(),u=o!==void 0?o:e>0,d=r??c("bulkBar.clearSelection","\uC120\uD0DD \uD574\uC81C"),p=s.useRef(null),[m,h]=s.useState(!1),C=s.useRef(!1),y=s.useRef(null);return s.useEffect(()=>{const f=p.current;if(!f)return;const v=w=>{C.current=w,h(w)},b=()=>{const w=f.firstElementChild??f,D=Array.from(w.children);if(D.length<2){v(!1);return}const B=D[0].offsetTop,k=D.some(V=>V.offsetTop!==B);if(!C.current){y.current=f.clientWidth,k&&v(!0);return}if(k)return;const N=D[0],I=D[D.length-1],O=I.offsetLeft+I.offsetWidth-N.offsetLeft,E=y.current;(E==null||O<=E)&&v(!1)};if(b(),typeof ResizeObserver>"u")return;const x=new ResizeObserver(b);x.observe(f);const _=f.parentElement;let g=_?.clientWidth??0;const A=new ResizeObserver(()=>{const w=_?.clientWidth??0;w!==g&&(g=w,y.current=null,b())});return _&&A.observe(_),()=>{x.disconnect(),A.disconnect()}},[i,e]),t.jsxs("div",{className:`bulk-bar ${u?"bulk-bar--visible":""}`,inert:!u||void 0,"aria-hidden":u?void 0:!0,children:[t.jsx("span",{ref:p,className:"bulk-bar__count body-2",role:"status",children:i??t.jsx("b",{children:c("common.selectedCount",{count:e})})}),l!==void 0&&t.jsx(ut,{size:"small",fill:"soft",variant:"main",label:`${e} / ${l}`}),t.jsxs("div",{className:`bulk-bar__actions${m?" bulk-bar__actions--stacked":""}`,children:[t.jsx(ce,{htmlType:"button",size:40,label:d,onClick:a}),n.map((f,v)=>t.jsx(ce,{htmlType:"button",size:40,variant:f.variant??"default",icon:f.icon,label:f.label,onClick:f.onClick},v))]})]})}function al(e){const n=()=>{if(e){const[y,f]=e.split("-");return{y:+y,m:+f-1}}const[h,C]=Mn().split("-");return{y:+h,m:+C-1}},[a,r]=s.useState(()=>n().y),[o,i]=s.useState(()=>n().m),l=s.useRef(e);s.useEffect(()=>{if(e===l.current)return;l.current=e;const h=n();r(h.y),i(h.m)},[e]);const c=s.useRef({y:a,m:o});s.useEffect(()=>{c.current={y:a,m:o}},[a,o]);const u=s.useCallback(h=>{const C=c.current.y*12+c.current.m+h,y=Math.floor(C/12),f=C-y*12;c.current={y,m:f},r(y),i(f)},[]),d=s.useCallback(()=>u(-1),[u]),p=s.useCallback(()=>u(1),[u]),m=s.useCallback((h,C)=>{c.current={y:h,m:C},r(h),i(C)},[]);return{viewY:a,viewM:o,prevMonth:d,nextMonth:p,setViewYM:m}}function $a(e,n){return new Date(e,n+1,0).getDate()}function D4(e,n){return new Date(e,n,1).getDay()}function Ra(e,n,a){return`${e}-${String(n+1).padStart(2,"0")}-${String(a).padStart(2,"0")}`}function S4(e){if(!e)return"";const[n,a,r]=e.split("-");return`${n}. ${a}. ${r}.`}function j4(e,n,a,r){const o=a?+a.split("-")[0]:e-10,i=r?+r.split("-")[0]:e+10,l=[];for(let c=o;c<=i;c++)for(let u=0;u<12;u++){const d=`${c}-${String(u+1).padStart(2,"0")}`;a&&d<a.slice(0,7)||r&&d>r.slice(0,7)||l.push({value:d,label:n(c,u+1)})}return l}function T4({value:e,onChange:n,size:a=48,min:r,max:o,disabled:i,placeholder:l,className:c}){const{t:u}=pe.useTranslation(),d=l??u("datePicker.chooseDate","\uB0A0\uC9DC \uC120\uD0DD"),p=s.useMemo(()=>u("calendar.dow",{returnObjects:!0}),[u]),m=Mn(),{viewY:h,viewM:C,prevMonth:y,nextMonth:f,setViewYM:v}=al(e),b=s.useCallback(P=>{const M=window.innerHeight-P.bottom,L=300,z=M<L&&P.top>L;return{position:"fixed",left:P.left,width:P.width,minWidth:260,...z?{bottom:window.innerHeight-P.top+6}:{top:P.bottom+6},zIndex:9999}},[]),{open:x,setOpen:_,toggle:g,style:A,triggerRef:w,menuRef:D}=da({computeStyle:b,onScroll:"reposition",onResize:"reposition",ignoreOutsideClickSelector:".dropdown__menu"});s.useEffect(()=>{if(!x)return;const P=D.current;return(P?.querySelector(".date-picker__day--selected:not(:disabled)")??P?.querySelector(".date-picker__day--today:not(:disabled)")??P?.querySelector(".date-picker__day:not(:disabled)")??P?.querySelector(Ln)??P)?.focus?.(),()=>{const M=document.activeElement;(!M||M===document.body)&&w.current?.focus?.()}},[x,D,w]);const[B,k]=s.useState(1),N=s.useRef(null),I=s.useRef(null);s.useEffect(()=>{if(!x)return;const P=e&&e.slice(0,7)===`${h}-${String(C+1).padStart(2,"0")}`?+e.slice(8):m.slice(0,7)===`${h}-${String(C+1).padStart(2,"0")}`?+m.slice(8):1;k(P)},[x]),s.useEffect(()=>{if(I.current==null)return;const P=I.current;I.current=null,N.current?.querySelector(`[data-day="${P}"]`)?.focus()}),s.useEffect(()=>{k(P=>Math.min(P,$a(h,C)))},[h,C]);const O=s.useCallback(P=>{let M=Ra(P.getFullYear(),P.getMonth(),P.getDate());r&&M<r&&(M=r),o&&M>o&&(M=o);const[L,z,$]=M.split("-").map(Number);(L!==h||z-1!==C)&&v(L,z-1),k($),I.current=$},[r,o,h,C,v]),E=s.useCallback(P=>{const M=new Date(h,C,B),L=$=>{M.setDate(M.getDate()+$),O(M)},z=$=>{const T=M.getFullYear()*12+M.getMonth()+$,F=Math.floor(T/12),oe=T-F*12;O(new Date(F,oe,Math.min(M.getDate(),$a(F,oe))))};switch(P.key){case"ArrowLeft":L(-1);break;case"ArrowRight":L(1);break;case"ArrowUp":L(-7);break;case"ArrowDown":L(7);break;case"Home":L(-M.getDay());break;case"End":L(6-M.getDay());break;case"PageUp":P.shiftKey?z(-12):z(-1);break;case"PageDown":P.shiftKey?z(12):z(1);break;default:return}P.preventDefault()},[h,C,B,O]),V=s.useCallback(P=>{i||(n(Ra(h,C,P)),_(!1))},[h,C,n,_,i]);s.useEffect(()=>{i&&_(!1)},[i,_]);const j=P=>{const M=Ra(h,C,P);return!!(r&&M<r||o&&M>o)},Y=(()=>{const P=$a(h,C);if(B>=1&&B<=P&&!j(B))return B;for(let M=1;M<=P;M++)if(!j(M))return M;return-1})(),R=[];for(let P=0;P<D4(h,C);P++)R.push(null);for(let P=1;P<=$a(h,C);P++)R.push(P);const H=a===64?20:a===40?16:18,W=j4(h,(P,M)=>u("calendar.yearMonth",{year:P,month:M,defaultValue:"{{year}}\uB144 {{month}}\uC6D4"}),r,o),le=`${h}-${String(C+1).padStart(2,"0")}`,q=x?Ut.createPortal(t.jsxs("div",{ref:D,className:"date-picker__dropdown",style:A,"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:y,"aria-label":u("calendar.prevMonth","\uC774\uC804 \uB2EC"),children:t.jsx(To,{size:16,strokeWidth:2})}),t.jsx(en,{className:"date-picker__nav-dropdown",ariaLabel:u("datePicker.selectYearMonth","\uC5F0\uC6D4 \uC120\uD0DD"),options:W,value:le,onChange:P=>{const[M,L]=P.split("-");v(+M,+L-1)},block:!0,size:40}),t.jsx("button",{type:"button",className:"date-picker__nav-btn",onClick:f,"aria-label":u("calendar.nextMonth","\uB2E4\uC74C \uB2EC"),children:t.jsx(Eo,{size:16,strokeWidth:2})})]}),t.jsxs("div",{className:"date-picker__grid",ref:N,onKeyDown:E,children:[p.map(P=>t.jsx("div",{className:"date-picker__dow caption-1",children:P},P)),R.map((P,M)=>{if(P===null)return t.jsx("div",{},`e${M}`);const L=Ra(h,C,P),z=L===e,$=L===m,T=j(P),F=M%7;return t.jsx("button",{type:"button",disabled:T,"data-day":P,tabIndex:P===Y?0:-1,"aria-current":$?"date":void 0,onClick:()=>!T&&V(P),className:ge("date-picker__day caption-1",z&&"date-picker__day--selected",$&&!z&&"date-picker__day--today",T&&"date-picker__day--disabled",F===0&&"date-picker__day--sun",F===6&&"date-picker__day--sat"),children:P},P)})]})]}),document.body):null;return t.jsxs("div",{className:ge("date-picker",`date-picker--s${a}`,x&&"date-picker--open",c),children:[t.jsxs("button",{ref:w,type:"button",className:"date-picker__trigger body-2",onClick:()=>!i&&g(),disabled:i,"aria-haspopup":"true","aria-expanded":x,children:[t.jsx("span",{className:e?"date-picker__value":"date-picker__placeholder",children:e?S4(e):d}),t.jsx(Vo,{size:H,className:"date-picker__icon",strokeWidth:1.5})]}),q]})}function Rr({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 Pa({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 Pr({title:e,titleClassName:n="h3",headRight:a,subRow:r,className:o,inGrid:i=!1,children:l}){return t.jsxs("section",{className:["manager-section",i&&"manager-section--grid",o].filter(Boolean).join(" "),children:[t.jsxs("div",{className:"manager-section__head",children:[t.jsx("div",{className:n,children:e}),a]}),r&&t.jsx("div",{className:"barchart-sub-row",children:r}),l]})}function Cn(e,n){const a=new Date(e,n,1).getDay();return 1+(8-(a===0?7:a))%7}function E4(){const e=qn();let n=e.getFullYear(),a=e.getMonth(),r=e.getDate();if(r<Cn(n,a)){const l=new Date(n,a,0);n=l.getFullYear(),a=l.getMonth(),r=l.getDate()}const o=Math.floor((r-Cn(n,a))/7),i=`${n}\uB144 ${a+1}\uC6D4`;return{monthKey:i,value:`${i}#${o}`}}function M4(e){const n=qn(),a=`${n.getFullYear()}\uB144 ${n.getMonth()+1}\uC6D4`,r=(u,d)=>`${u}\uB144 ${d+1}\uC6D4`,o=new Map;o.set(a,[]);for(const u of e){if(isNaN(u.date.getTime()))continue;const d=r(u.date.getFullYear(),u.date.getMonth());o.has(d)||o.set(d,[]),o.get(d).push(u)}for(const[u,d]of[...o.entries()]){const p=u.match(/^(\d+)년 (\d+)월$/);if(!p)continue;const m=Number(p[1]),h=Number(p[2])-1,C=Cn(m,h);if(!(u===a&&n.getDate()<C)&&!d.some(v=>v.date.getDate()<C))continue;const y=new Date(m,h,0),f=r(y.getFullYear(),y.getMonth());o.has(f)||o.set(f,[])}const i=new Map;for(const[u,d]of o){const p=u.match(/^(\d+)년 (\d+)월$/);if(!p)continue;const m=Number(p[1]),h=Number(p[2])-1,C=new Date(m,h+1,0).getDate(),y=d.reduce((x,_)=>Math.max(x,_.parts?.length??0),0),f=new Array(C+1).fill(0),v=new Array(C+1).fill(0),b=Array.from({length:C+1},()=>new Array(y).fill(0));for(const x of d){const _=x.date.getDate();if(f[_]+=x.a,v[_]+=x.b,x.parts)for(let g=0;g<y;g++)b[_][g]+=x.parts[g]??0}i.set(u,{year:m,month:h,daysInMonth:C,partsLen:y,dayA:f,dayB:v,dayParts:b})}const l=(u,d,p)=>new Date(u,d,p).getTime()>new Date(n.getFullYear(),n.getMonth(),n.getDate()).getTime(),c={};for(const[u,d]of i){const{year:p,month:m,daysInMonth:h,dayA:C,dayB:y,dayParts:f}=d,v=p===n.getFullYear()&&m===n.getMonth(),b=n.getDate(),x=i.get(r(m===11?p+1:p,(m+1)%12)),_=d.partsLen,g=[];for(let w=1;w<=h;w++){const D=v&&w>b;g.push({label:String(w),a:D&&C[w]===0&&y[w]===0?-1:C[w],b:y[w],..._?{parts:f[w]}:{}})}const A=[];for(let w=Cn(p,m);w<=h;w+=7){const D=Math.max(0,w+6-h),B=D&&x?Math.max(_,x.partsLen):_;let k=0,N=0;const I=new Array(B).fill(0);for(let E=w;E<=Math.min(w+6,h);E++){k+=C[E],N+=y[E];for(let V=0;V<_;V++)I[V]+=f[E][V]}if(D&&x)for(let E=1;E<=D&&!l(x.year,x.month,E);E++){k+=x.dayA[E],N+=x.dayB[E];for(let V=0;V<x.partsLen;V++)I[V]+=x.dayParts[E][V]}const O=D?`${(m+1)%12+1}/${D}`:`${w+6}`;A.push({label:`${A.length+1}\uC8FC`,sublabel:`[${w}\uC77C~${O}\uC77C]`,a:k,b:N,...B?{parts:I}:{}})}c[u]={weekly:A,daily:g}}return c}function rl(){const e=qn(),n=e.getFullYear(),a=e.getMonth()+1,r=[];for(let o=2024;o<=n;o++){const i=o===n?a:12;for(let l=1;l<=i;l++){const c=`${o}\uB144 ${l}\uC6D4`;r.push({value:c,label:c,year:o,month:l})}}return r.reverse()}rl();function L4(){return rl()}const ol=["\uCCAB\uC9F8","\uB458\uC9F8","\uC14B\uC9F8","\uB137\uC9F8","\uB2E4\uC12F\uC9F8","\uC5EC\uC12F\uC9F8","\uC77C\uACF1\uC9F8"];function sl(e){const{t:n,i18n:a}=pe.useTranslation(),[r,o]=s.useState("week"),i=s.useMemo(()=>L4().filter(k=>k.value in e),[e]),l=s.useMemo(()=>{const k=[];for(const N of i){const I=new Date(N.year,N.month,0).getDate(),O=Cn(N.year,N.month-1),E=Math.ceil((I-O+1)/7);for(let V=E-1;V>=0;V--)k.push({value:`${N.value}#${V}`,monthKey:N.value,year:N.year,month:N.month,week:V})}return k},[i]),c=s.useCallback(k=>{const N=n("calendar.yearMonth",{year:k.year,month:k.month});return a.language?.startsWith("ko")?`${N} ${ol[k.week]??`${k.week+1}`}\uC8FC`:`${N} Week ${k.week+1}`},[n,a.language]),u=s.useMemo(()=>i.map(k=>({value:k.value,label:n("calendar.yearMonth",{year:k.year,month:k.month})})),[n,i]),d=s.useMemo(()=>l.map(k=>({value:k.value,label:c(k)})),[l,c]),p=s.useMemo(()=>E4(),[e]),m=s.useMemo(()=>i.find(k=>k.value===p.monthKey)?.value??i[0]?.value??"",[i,p]),h=s.useMemo(()=>l.find(k=>k.value===p.value)?.value??l[0]?.value??"",[l,p]),[C,y]=s.useState(""),[f,v]=s.useState("");s.useEffect(()=>{i.find(k=>k.value===C)||y(m)},[i,C,m]),s.useEffect(()=>{l.find(k=>k.value===f)||v(h)},[l,f,h]);const b=r==="month"?u:d,x=r==="month"?C:f,_=r==="month"?y:v,g=s.useMemo(()=>{const k=n("calendar.dow",{returnObjects:!0});return Array.isArray(k)?k:["\uC77C","\uC6D4","\uD654","\uC218","\uBAA9","\uAE08","\uD1A0"]},[n]),A=b.findIndex(k=>k.value===x),w=s.useCallback(()=>{const k=b.findIndex(N=>N.value===x);k<b.length-1&&_(b[k+1].value)},[b,x,_]),D=s.useCallback(()=>{const k=b.findIndex(N=>N.value===x);k>0&&_(b[k-1].value)},[b,x,_]),B=s.useMemo(()=>[{key:"week",label:n("manager.chart.periodWeek","\uC8FC")},{key:"month",label:n("manager.chart.periodMonth","\uC6D4")}],[n]);return{period:r,setPeriod:o,range:x,setRange:_,activeOptions:b,activeIdx:A,handlePrev:w,handleNext:D,periodOptions:B,monthRange:C,weekRange:f,weekRanges:l,DOW:g}}const tn=e=>typeof e=="number"&&Number.isFinite(e)?e:0;function $4({data:e,colorA:n,colorB:a,labelA:r,labelB:o,barWidth:i=10,height:l=140,maxOverride:c,tightMax:u,seriesColors:d,seriesLabels:p,rateLabels:m}){const h=!a,C=!!(d&&d.length>0),y=s.useMemo(()=>C?Math.max(0,...e.filter(B=>B.a!==-1).map(B=>(B.parts??[]).reduce((k,N)=>k+Math.max(0,tn(N)),0))):Math.max(0,...e.filter(B=>B.a!==-1).flatMap(B=>h?[tn(B.a)]:[tn(B.a),tn(B.b)])),[e,h,C]),f=s.useMemo(()=>c??(u?y>0?y:10:Math.ceil(y/10)*10||10),[y,c,u]),v=l,b=C||h?1:2,x={"--bar-width":`${s.useMemo(()=>{const B=Math.max(1,e.length);return Math.max(8,Math.min(i,Math.round(120/(B*b)+6)))},[e.length,b,i])}px`},_=s.useMemo(()=>{const B=Math.round(f/2);return B!==f?[f,B,0]:[f,0]},[f]),[g,A]=s.useState(null),w=s.useCallback(()=>A(null),[]),D=g!=null;return s.useEffect(()=>{if(!D)return;const B=()=>A(null),k=N=>{const I=N.target;I&&typeof I.closest=="function"&&I.closest(".manager-bar-chart-col")||A(null)};return window.addEventListener("scroll",B,!0),document.addEventListener("pointerdown",k,!0),()=>{window.removeEventListener("scroll",B,!0),document.removeEventListener("pointerdown",k,!0)}},[D]),t.jsxs("div",{className:"manager-bar-chart-wrap",children:[t.jsx("div",{className:"manager-bar-chart-inner",children:t.jsx("div",{className:"manager-bar-chart-scroll",children:t.jsxs("div",{className:"manager-bar-chart-area",children:[t.jsxs("div",{className:"manager-bar-chart-plot",style:{height:v},children:[_.slice(0,-1).map((B,k)=>t.jsx("div",{className:"manager-bar-chart-gridline",style:{top:(1-B/f)*v},children:t.jsx("span",{className:"manager-bar-chart-gridline__label caption-1",children:B})},k)),e.map((B,k)=>{const N=B.a===-1,I=j=>Math.min(v,Math.max(0,tn(j)/f*v)),O=N?0:I(B.a),E=N?0:I(B.b),V=(B.parts??[]).map(tn);return t.jsx("div",{className:"manager-bar-chart-col",style:{cursor:N?"default":"pointer"},onMouseEnter:N?void 0:j=>{const Y=j.currentTarget.getBoundingClientRect(),R=[B.label,B.sublabel].filter(Boolean).join(" ");let H;if(C){const W=(p??[]).map((q,P)=>({text:`${q}: ${V[P]??0}`,color:(d??[])[P]})),le=W.filter((q,P)=>(V[P]??0)>0);H=le.length?le:W}else m&&!h?H=[{text:`${r} ${tn(B.a)}%`,color:n},{text:`${o} ${tn(B.b)}%`,color:a}]:m&&B.rawB!==void 0?H=[{text:`${m.total} ${B.rawB}`},{text:`${m.done} ${B.rawA??0}`,color:n}]:h?H=[{text:`${r}: ${tn(B.a)}`,color:n}]:H=[{text:`${r}: ${tn(B.a)}`,color:n},{text:`${o}: ${tn(B.b)}`,color:a}];A({rect:{left:Y.left,top:Y.top,right:Y.right,bottom:Y.bottom,width:Y.width,height:Y.height},title:R,items:H})},onMouseLeave:w,children:!N&&(C?t.jsx("div",{className:"manager-bar-chart-stack",style:x,children:(()=>{const j=V.reduce((R,H,W)=>H>0?W:R,-1);let Y=v;return V.map((R,H)=>{if(R<=0)return null;const W=Math.min(Y,R/f*v);return Y-=W,t.jsx("div",{className:"manager-bar-chart-stack-segment",style:{height:W,background:(d??[])[H],borderRadius:H===j?"6px 6px 0 0":void 0}},H)})})()}):t.jsxs(t.Fragment,{children:[t.jsx("div",{className:"manager-bar-chart-bar",style:{...x,height:O,background:n}}),!h&&t.jsx("div",{className:"manager-bar-chart-bar",style:{...x,height:E,background:a}})]}))},k)})]}),t.jsx("div",{className:"manager-bar-chart-x-axis",children:e.map((B,k)=>{const N=B.a===-1;return t.jsxs("span",{className:`manager-bar-chart-x-axis__label${N?" manager-bar-chart-x-axis__label--future":""}`,children:[t.jsxs("span",{className:"caption-1 manager-bar-chart-x-axis__main",children:[B.isToday&&t.jsx("span",{className:"manager-bar-chart-x-axis__today-dot",style:{background:n}}),B.label]}),B.sublabel&&t.jsx("span",{className:"caption-1",children:B.sublabel})]},k)})})]})})}),g&&t.jsx(Rn,{anchorRect:g.rect,title:g.title,items:g.items,showIndex:!1,closeOnOutsideClick:!1})]})}function il({control:e}){const{t:n}=pe.useTranslation(),{activeOptions:a,activeIdx:r,range:o,setRange:i,handlePrev:l,handleNext:c,periodOptions:u,period:d,setPeriod:p}=e,m=d==="week"?n("calendar.prevWeek","\uC774\uC804 \uC8FC"):n("calendar.prevMonth","\uC774\uC804 \uB2EC"),h=d==="week"?n("calendar.nextWeek","\uB2E4\uC74C \uC8FC"):n("calendar.nextMonth","\uB2E4\uC74C \uB2EC");return t.jsxs("div",{className:"manager-section-controls",children:[t.jsx(ce,{htmlType:"button",size:32,type:"dot",icon:"chevron-left",ariaLabel:m,showTooltipInfo:m,disabled:r===a.length-1,onClick:l}),t.jsx(en,{value:o,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(On,{ariaLabel:n("calendar.periodSelect","\uAE30\uAC04 \uB2E8\uC704"),options:u,value:d,onChange:C=>p(C),size:32})]})}function ll(e,n,a){const r=new Date(a.getFullYear(),a.getMonth(),a.getDate());return Array.from({length:7},(o,i)=>{const l=new Date(n);l.setDate(n.getDate()+i);const c=(e[`${l.getFullYear()}\uB144 ${l.getMonth()+1}\uC6D4`]?.daily??[])[l.getDate()-1],u=c?.a===-1||l>r;return{dt:l,entry:c,isFuture:u}})}function R4(e,n,a,r){const{period:o,monthRange:i,weekRange:l,weekRanges:c,DOW:u}=n,d=r?.startsWith("ko"),p=qn(),m=p.getFullYear(),h=p.getMonth()+1,C=p.getDate();if(o==="month"){const v=e[i]??{weekly:[],daily:[]},b=i.match(/^(\d+)년 (\d+)월$/),x=b?Number(b[1]):null,_=b?Number(b[2]):null,g=x&&_?Cn(x,_-1):1;return v.weekly.map((A,w)=>{const D=w+1;let B=A.label,k=!1,N=!1;if(x&&_){const I=g+w*7,O=new Date(x,_-1,I+6),E=O.getMonth()+1,V=O.getDate(),j=E===_?`${V}`:`${E}/${V}`;B=a("manager.chart.weekRange",{start:I,end:j});const Y=new Date(m,h-1,C).getTime();k=Y>=new Date(x,_-1,I).getTime()&&Y<=O.getTime(),N=x>m||x===m&&(_>h||_===h&&I>C)}return{...A,label:B,sublabel:d?`${ol[D-1]??D}\uC8FC`:`Week ${D}`,isToday:k,a:N?-1:A.a,b:N?0:A.b}})}const y=c.find(v=>v.value===l);if(!y)return[];const f=new Date(y.year,y.month-1,Cn(y.year,y.month-1)+y.week*7);return ll(e,f,p).map(({dt:v,entry:b,isFuture:x})=>{const _=v.getMonth()+1,g=v.getDate(),A=v.getFullYear();return{label:_===y.month&&A===y.year?`${g}`:`${_}/${g}`,sublabel:u[v.getDay()]??"",a:x?-1:b&&b.a>0?b.a:0,b:x?0:b&&b.b>0?b.b:0,isToday:A===m&&_===h&&g===C,...b?.parts?{parts:x?b.parts.map(()=>0):b.parts}:{}}})}const P4={small:{height:100,barWidth:16},medium:{height:140,barWidth:20},large:{height:180,barWidth:24}};function I4({size:e="medium",barWidth:n,titleKey:a,data:r,colorA:o,colorB:i,labelAKey:l,labelBKey:c,showTotal:u=!1,totalUnitKey:d,totalLabelKey:p,control:m,hideControls:h=!1,rate:C=!1,tightMax:y=!1,avgMode:f=!1,totalFormat:v,series:b,loading:x=!1,onDetail:_,inGrid:g=!1}){const{t:A,i18n:w}=pe.useTranslation(),D=P4[e],B=sl(r),k=m??B,N=s.useMemo(()=>R4(r,k,A,w.language),[r,k,A,w.language]),I=s.useMemo(()=>{if(!C)return N;const j=k.period==="month"?k.monthRange.match(/^(\d+)년 (\d+)월$/):null,Y=qn();return N.map((R,H)=>{let W=R.a===-1?-1:R.b>0?Math.round(R.a/R.b*100):0;if(j&&R.a!==-1){const le=Number(j[1]),q=Number(j[2])-1,P=ll(r,new Date(le,q,Cn(le,q)+H*7),Y).filter(M=>!M.isFuture);W=P.length?Math.round(P.reduce((M,{entry:L})=>M+(L&&L.b>0?L.a/L.b*100:0),0)/P.length):0}return{...R,a:W,b:R.a===-1?0:c&&R.parts&&R.parts[1]>0?Math.round(R.parts[0]/R.parts[1]*100):0,rawA:R.a===-1?-1:R.a,rawB:R.b}})},[N,C,c,k.period,k.monthRange,r]),O=s.useMemo(()=>{if(C||f){const j=(k.period==="week"?N:r[k.monthRange]?.daily??[]).filter(R=>R.a!==-1);if(j.length===0)return 0;const Y=C?j.reduce((R,H)=>R+(H.b>0?H.a/H.b*100:0),0):j.reduce((R,H)=>R+(H.a>0?H.a:0),0);return Math.round(Y/j.length)}return I.reduce((j,Y)=>j+(Y.a>0?Y.a:0)+(c&&Y.b>0?Y.b:0),0)},[I,N,C,f,c,k.period,k.monthRange,r]),E=b&&b.length>0?b.map(j=>({color:j.color,label:j.label})):[{color:o,label:A(l)},...c?[{color:i,label:A(c)}]:[]],V=e==="small";return t.jsx(Pr,{className:V?"manager-section--compact":e==="large"?"manager-section--full":void 0,inGrid:g,title:A(a),titleClassName:V?"h5 chart-section-title--small":void 0,headRight:V?void 0:t.jsxs(t.Fragment,{children:[!h&&t.jsx(il,{control:k}),_&&t.jsx("span",{className:"manager-bar-chart-detail-btn",children:t.jsx(ce,{htmlType:"button",size:32,type:"dot",icon:"list",ariaLabel:A("trainingStatus.detail","\uC0C1\uC138\uBCF4\uAE30"),onClick:_})})]}),subRow:t.jsxs(t.Fragment,{children:[u?C||f||p&&v?t.jsx(Pa,{label:V?void 0:`${A(k.period==="week"?"manager.chart.weeklyPrefix":"manager.chart.monthlyPrefix")} ${A(p??l)}`,children:v?(v(O).match(/(\d+|[^\d]+)/g)??[]).map((j,Y)=>/\d/.test(j)?t.jsx("span",{className:"barchart-total__num h0",children:j},Y):t.jsx("span",{className:"barchart-total__unit h5",children:j},Y)):t.jsxs(t.Fragment,{children:[t.jsx("span",{className:"barchart-total__num h0",children:O}),d&&t.jsx("span",{className:"barchart-total__unit h5",children:A(d)})]})}):t.jsxs(Pa,{children:[t.jsx("span",{className:"barchart-total__num h0",children:O}),t.jsx("span",{className:"barchart-total__unit h5",children:A(l)}),d&&t.jsx("span",{className:"barchart-total__unit h5",children:A(d)})]}):t.jsx("span",{}),t.jsx(Rr,{items:E,className:"caption-1"})]}),children:x?t.jsx("div",{className:"manager-bar-chart-loading",children:t.jsx(ga,{size:32})}):t.jsx($4,{data:I,colorA:o,colorB:c?i:void 0,labelA:A(l),labelB:c?A(c):void 0,barWidth:n??D.barWidth,height:D.height,maxOverride:C?100:void 0,tightMax:y,seriesColors:b?.map(j=>j.color),seriesLabels:b?.map(j=>j.label),rateLabels:C?{total:A("trainingStatus.today.tooltipTotal","\uC804\uCCB4"),done:A("trainingStatus.today.tooltipDone","\uC644\uB8CC")}:void 0})})}const cl=(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")}`},ul=(e,n,a,r)=>({from:Ts(e,n,a),to:new Date(Ts(e,n,a+r).getTime()-1),fromYmd:cl(e,n,a),toYmd:cl(e,n,a+r-1)});function F4(e,n=0){if(e.period==="month"){const o=e.monthRange.match(/^(\d+)년 (\d+)월$/),i=qn(),l=o?Number(o[1]):i.getFullYear(),c=(o?Number(o[2]):i.getMonth()+1)-1+n,u=new Date(Date.UTC(l,c+1,0)).getUTCDate();return ul(l,c,1,u)}const a=e.weekRanges.find(o=>o.value===e.weekRange);if(!a){const o=new Date,i=Mn();return{from:o,to:o,fromYmd:i,toYmd:i}}const r=Cn(a.year,a.month-1);return ul(a.year,a.month-1,r+(a.week+n)*7,7)}const dl={small:{diameter:96,strokeWidth:16},medium:{diameter:120,strokeWidth:18},large:{diameter:160,strokeWidth:22}};function pl(e){return!Number.isFinite(e)||e<=0?0:e>=1?100:Math.min(99,Math.max(1,Math.round(e*100)))}function ml({done:e,total:n,segments:a,color:r="var(--color-main)",size:o="medium",strokeWidth:i,label:l="%",hideCenter:c=!1,hideLabel:u=!1}){const d=typeof o=="number"?o:dl[o].diameter,p=i??(typeof o=="number"?12:dl[o].strokeWidth),m=d/2,h=(d-p)/2,C=2*Math.PI*h;if(a&&a.length>0){const b=a.reduce((x,_)=>{const g=x.length>0?x[x.length-1].acc:0,A=Number.isFinite(_.ratio)?_.ratio:0,w=Math.max(0,Math.min(A,1-g));return x.push({color:_.color,rotate:-90+g*360,dash:C*w,acc:g+w}),x},[]);return t.jsx("div",{className:"ring-chart",style:{width:d,height:d},children:t.jsxs("svg",{width:d,height:d,viewBox:`0 0 ${d} ${d}`,"aria-hidden":"true",children:[t.jsx("circle",{cx:m,cy:m,r:h,fill:"none",stroke:"var(--color-whiteLine)",strokeWidth:p}),b.map((x,_)=>x.dash>0&&t.jsx("circle",{cx:m,cy:m,r:h,fill:"none",stroke:x.color,strokeWidth:p,strokeDasharray:`${x.dash} ${C}`,strokeLinecap:"round",transform:`rotate(${x.rotate} ${m} ${m})`},_))]})})}const y=(n??0)>0?Math.min((e??0)/n,1):0,f=C*y,v=C-f;return t.jsxs("div",{className:"ring-chart",style:{width:d,height:d},children:[t.jsxs("svg",{width:d,height:d,viewBox:`0 0 ${d} ${d}`,"aria-hidden":"true",children:[t.jsx("circle",{cx: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:`${f} ${v}`,strokeLinecap:y<.02||y>.98?"butt":"round",transform:`rotate(-90 ${m} ${m})`})]}),!c&&t.jsxs("div",{className:`ring-chart__center${u?"":` ${d<=96?"ring-chart__center--small":o==="medium"?"ring-chart__center--medium":"ring-chart__center--large"}`}`,children:[t.jsx("span",{className:`ring-chart__pct ${d<=96?"h2":"h1"}`,children:pl(y)}),!u&&t.jsx("span",{className:`ring-chart__label ${d<=96?"caption-2":"caption-1"}${d<=96||o==="medium"?" ring-chart__label--tight":""}`,children:l})]})]})}function O4({titleKey:e,headRight:n,icon:a,showTotal:r,totalLabelKey:o,legend:i,loading:l,className:c,inGrid:u=!1,...d}){const{t:p}=pe.useTranslation();if(!e)return t.jsx(ml,{...d});const m=(d.total??0)>0?pl(Math.min((d.done??0)/d.total,1)):0,h=d.size==="small",C=d.size==="large",y=[c,h?"manager-section--compact":C?"manager-section--full":""].filter(Boolean).join(" ")||void 0,f=a&&t.jsx("span",{className:"chart-section-icon",children:t.jsx(qe,{icon:a,className:"chart-section-icon-inner"})});return t.jsx(Pr,{className:y,inGrid:u,title:p(e),titleClassName:h?"h5 chart-section-title--small":void 0,headRight:f||(h?void 0:n),subRow:(r||i)&&t.jsxs(t.Fragment,{children:[r?t.jsxs(Pa,{label:!h&&o?p(o):void 0,children:[t.jsx("span",{className:"barchart-total__num h0",children:m}),t.jsx("span",{className:"barchart-total__unit h5",children:"%"})]}):t.jsx("span",{}),i&&t.jsx(Rr,{items:i})]}),children:l?t.jsx("div",{className:"manager-bar-chart-loading",children:t.jsx(ga,{size:32})}):t.jsx("div",{className:"ring-chart-section-body ring-chart-section-body--offset",children:t.jsx(ml,{...d,hideCenter:h||d.hideCenter})})})}function V4({label:e,value:n,change:a,changeType:r,icon:o,tooltip:i,onClick:l}){const c=s.useRef(null),{anchorRect:u,openAt:d,close:p}=Ea(),m=s.useCallback(()=>{i&&c.current&&d(c.current)},[i,d]),h=r??(a===void 0?void 0:a>0?"up":a<0?"down":"neutral"),C=a===void 0?void 0:a>0?`+${a}`:`${a}`,y=s.useCallback(f=>{l&&(f.key==="Enter"||f.key===" ")&&(f.preventDefault(),l())},[l]);return t.jsxs("div",{ref:c,className:`manager-stat-card${l?" manager-stat-card--clickable":""}`,onClick:l,onKeyDown:l?y:void 0,onPointerEnter:m,onPointerLeave:p,onFocus:m,onBlur:p,role:l?"button":void 0,tabIndex:l?0:void 0,"aria-label":l?[e,n,C].filter(f=>f!==void 0&&f!=="").join(" "):void 0,children:[i&&u&&t.jsx(kn,{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}),o&&t.jsx("span",{className:"manager-stat-card__icon",children:t.jsx(qe,{icon:o,className:"manager-stat-card__icon-inner"})})]}),t.jsx("div",{className:"manager-stat-card__content",children:t.jsxs("div",{className:"manager-stat-card__left",children:[t.jsx("div",{className:"manager-stat-card__value h2",children:n}),C&&t.jsx("div",{className:`manager-stat-card__change manager-stat-card__change--${h??"neutral"} caption-1`,children:C})]})})]})}function hl({value:e,onChange:n,min:a=0,max:r=100,step:o=1,orientation:i="horizontal",size:l=24,disabled:c=!1,ariaLabel:u,length:d,className:p,label:m,formatValue:h,labelPos:C,labelAlign:y="right",showMinMax:f=!1,minLabel:v,maxLabel:b,showBgTick:x=!1,showFillTick:_=!1,tickStep:g,tickShape:A="dot"}){n&&!u&&ea("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 w=Math.min(r,Math.max(a,e)),D=r>a?(w-a)/(r-a):0,B=i==="vertical",k=!n,N=L=>n?.(Number(L.target.value)),I=typeof d=="number"?`${d}px`:d,O={"--slider-ratio":String(D),"--slider-thumb":`${l}px`,...I?B?{height:I}:{width:I}:{}},E=g??o,V=(x||_)&&E>0&&r>a?Math.floor((r-a)/E+1e-6):0;if(V>0&&V<=100){const L=A!=="dash",z=ae=>L?`radial-gradient(circle, ${ae} 0.5px, transparent 1px)`:B?`linear-gradient(to bottom, transparent calc(50% - 2px), ${ae} calc(50% - 2px), ${ae} calc(50% + 2px), transparent calc(50% + 2px))`:`linear-gradient(to right, transparent calc(50% - 2px), ${ae} calc(50% - 2px), ${ae} calc(50% + 2px), transparent calc(50% + 2px))`,$=L?"2px":"4px",T=[],F=[],oe=[];for(let ae=0;ae<=V;ae++){const ee=ae*E/(r-a);if(ee>1+1e-6)break;const se=`${((B?1-ee:ee)*100).toFixed(4)}%`,Ce=ee<=D+1e-6;if(Ce?!_:!x)continue;const Z=Ce?"var(--slider-tick-color-on-fill, var(--color-deepWhite))":"var(--slider-tick-color, var(--color-lightGray))";T.push(z(Z)),F.push(B?`${$} var(--slider-thumb)`:`var(--slider-thumb) ${$}`),oe.push(B?`center ${se}`:`${se} center`)}T.push(B?"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))"),F.push("100% 100%"),oe.push("0 0"),O.backgroundImage=T.join(", "),O.backgroundSize=F.join(", "),O.backgroundPosition=oe.join(", "),O.backgroundRepeat="no-repeat"}const j=h?h(w):m==="percent"?`${Math.round(r>a?(w-a)/(r-a)*100:0)}%`:m==="count"?`${w} / ${r}`:w===a&&v?v:w===r&&b?b:void 0,Y=t.jsx("input",{type:"range",className:ge("slider",`slider--${i}`,k&&"slider--static",!m&&!f&&p),min:a,max:r,step:o,value:w,disabled:c,readOnly:k,tabIndex:k?-1:void 0,"aria-label":u,"aria-valuetext":j,"aria-orientation":i,onChange:N,style:O});if(!m&&!f)return Y;const R=t.jsx("span",{className:"slider-wrap__minmax caption-1",children:v??a}),H=t.jsx("span",{className:"slider-wrap__minmax caption-1",children:b??r}),W=f?t.jsxs("div",{className:ge("slider-track-group",`slider-track-group--${i}`,!m&&p),children:[B?H:R,Y,B?R:H]}):Y;if(!m)return W;const le=C??(B?"bottom":"right"),q=`${Math.round(r>a?(w-a)/(r-a)*100:0)}%`,P=h?h(w):m==="percent"?q:m==="count"?`${w} / ${r}`:String(w),M=t.jsx("span",{className:"slider-wrap__value body-3b",children:P});return t.jsxs("div",{className:ge("slider-wrap",`slider-wrap--${i}`,`slider-wrap--label-${le}`,`slider-wrap--align-${y}`,p),children:[W,M]})}const H4=.86,z4=250,Ir=(e,n,a,r)=>Math.round(Math.min(r,Math.max(a,e-n))),Fr=(e,n,a,r)=>{const o=Ir(e,n,a,r);return`${o<0?"-":"+"}${Math.abs(o)} dB`};function Or({analyser:e,audioElement:n,orientation:a="horizontal",length:r,label:o,labelPos:i,labelAlign:l="right",floorDb:c=-60,refDb:u=-35,displayMin:d=-5,displayMax:p=25,className:m,ariaLabel:h}){const C=s.useRef(null),y=s.useRef(null),f=s.useRef(null),v=s.useRef(null),[b,x]=s.useState(null);s.useEffect(()=>{const w=Y=>{const R=Fr(Y,u,d,p);f.current&&(f.current.textContent=R);const H=C.current;H&&(H.setAttribute("aria-valuenow",String(Ir(Y,u,d,p))),H.setAttribute("aria-valuetext",R))},D=e??s0(n)??(b&&b.el===n?b.node:null),B=y.current;if(!D||!B){B?.style.setProperty("--meter-level","0"),w(c);let Y=!1;return!e&&n&&Aa(n).then(R=>{!Y&&R&&x({el:n,node:R})}),()=>{Y=!0}}hr();const k=new Float32Array(D.fftSize);let N=0,I=0,O=0,E=0,V=null;const j=Y=>{const R=i0(D,k);N=R>N?R:N*H4;const H=N>1e-5?20*Math.log10(N):-1/0,W=Math.max(c,H),le=W-u,q=Math.min(1,Math.max(0,(le-d)/(p-d)));if(B.style.setProperty("--meter-level",q.toFixed(3)),I+=W,O+=1,Y-E>=z4){const P=I/O;V=V==null?P:V*.6+P*.4,w(V),I=0,O=0,E=Y}v.current=requestAnimationFrame(j)};return v.current=requestAnimationFrame(j),()=>{v.current!=null&&cancelAnimationFrame(v.current),v.current=null}},[e,n,b,c,u,d,p]);const _=typeof r=="number"?`${r}px`:r,g=t.jsx("div",{className:"audio-meter__track",style:_?a==="vertical"?{height:_}:{width:_}:{},children:t.jsx("div",{ref:y,className:"audio-meter__fill"})}),A=i??(a==="vertical"?"bottom":"right");return t.jsxs("div",{ref:C,className:ge("audio-meter",`audio-meter--${a}`,o&&`audio-meter--label-${A}`,o&&`audio-meter--align-${l}`,m),role:"meter","aria-label":h,"aria-valuemin":d,"aria-valuemax":p,"aria-valuenow":Ir(c,u,d,p),"aria-valuetext":Fr(c,u,d,p),children:[g,o&&t.jsx("span",{ref:f,className:"audio-meter__value caption-2",children:Fr(c,u,d,p)})]})}const fl=260;function Cl({message:e,position:n,duration:a,onClose:r}){const[o,i]=s.useState(!1),[l,c]=s.useState(!1),u=s.useRef(l),d=s.useRef(o);s.useEffect(()=>{u.current=l},[l]),s.useEffect(()=>{d.current=o},[o]);const p=s.useRef(null),m=s.useRef(""),h=s.useRef(r);s.useEffect(()=>{h.current=r});const C=a,y=s.useRef(null),f=s.useRef(0),v=s.useRef(0),b=s.useRef(!1),x=s.useRef(null),_=s.useRef(null),g=s.useRef(null),A=s.useRef(null),w=s.useRef(()=>{});w.current=k=>{k<0||(f.current=Date.now(),v.current=k,y.current=setTimeout(()=>{y.current=null,i(!1),x.current=setTimeout(()=>{c(!1);try{h.current()}catch{}},fl)},k))};const D=s.useCallback(()=>{b.current||!y.current||(b.current=!0,clearTimeout(y.current),y.current=null,v.current=Math.max(0,v.current-(Date.now()-f.current)))},[]),B=s.useCallback(()=>{b.current&&(b.current=!1,w.current(v.current))},[]);return s.useEffect(()=>{if(e!==m.current&&(y.current&&(clearTimeout(y.current),y.current=null),x.current&&(clearTimeout(x.current),x.current=null)),e){if(d.current)return C>0&&!y.current&&(b.current?v.current=C:w.current(C)),m.current=e,()=>{y.current&&(clearTimeout(y.current),y.current=null),x.current&&(clearTimeout(x.current),x.current=null)};const k=()=>{const N=p.current;if(N)try{N.classList.remove("is-visible"),N.style.transition="none",n==="top"?N.style.transform="translateX(-50%) translateY(-16px)":N.style.transform="translateX(-50%) translateY(16px)",N.style.opacity="0",N.offsetWidth,N.style.transition="",N.classList.add("is-visible"),A.current&&clearTimeout(A.current),A.current=setTimeout(()=>{A.current=null;try{N.style.opacity="",N.style.transform="",N.style.transition=""}catch{}},60)}catch{}};u.current?(k(),i(!0)):(c(!0),_.current=requestAnimationFrame(()=>{g.current=requestAnimationFrame(()=>{k(),i(!0)})})),C>0&&(b.current=!1,w.current(C))}else i(!1),x.current=setTimeout(()=>c(!1),fl);return m.current=e,()=>{y.current&&clearTimeout(y.current),x.current&&clearTimeout(x.current),_.current&&cancelAnimationFrame(_.current),g.current&&cancelAnimationFrame(g.current),A.current&&clearTimeout(A.current),y.current=null,x.current=null,_.current=null,g.current=null,A.current=null}},[e,C,n]),{mounted:l,showing:o,popupRef:p,pause:D,resume:B}}function Gn({message:e="",position:n="top",type:a="normal",onClose:r=()=>{},duration:o=2e3}){const{mounted:i,showing:l,popupRef:c,pause:u,resume:d}=Cl({message:e,position:n,duration:o,onClose:r}),p=s.useRef(null);if(!i)return null;const m=a==="notice"||a==="warning"?a:"normal",h=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"&&u()},onMouseLeave:d,onFocusCapture:u,onBlurCapture:d,children:t.jsx("div",{className:`toast__inner toast__inner--${m} body-2`,children:e})});return typeof document<"u"?Ut.createPortal(h,document.body):h}const W4=24;function q4({value:e,max:n=100,size:a=8,color:r,trackColor:o,label:i,formatValue:l,labelPos:c,labelAlign:u="right",ariaLabel:d,className:p}){const m=Number.isFinite(n)&&n>0?n:1,h=Math.max(0,Math.min(Number.isFinite(e)?e:0,m)),C=h/m*100,y=Number.isFinite(n)&&n>0?n:0,f=c??(a>=W4?"inside":"bottom"),v=f==="center"?"inside":f,b=v==="inside"&&(u==="left"?C>=15:u==="center"?C>=50:C>=85),x={};return r&&(x["--progress-bar-fill"]=r),o&&(x["--progress-bar-track"]=o),t.jsxs("div",{className:ge("progress-bar",`progress-bar--${a}`,`progress-bar--label-${v}`,i&&`progress-bar--align-${u}`,i&&b&&"progress-bar--label-on-fill",p),style:x,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":d,children:t.jsx("div",{className:"progress-bar__fill",style:{width:`${C}%`}})}),i&&t.jsx("span",{className:"progress-bar__label caption-1b",children:l?l(h):i==="percent"?`${Math.round(C)}%`:i==="raw"?String(h):`${h} / ${y}`})]})}const U4={position:"absolute",width:1,height:1,margin:-1,padding:0,overflow:"hidden",clipPath:"inset(50%)",whiteSpace:"nowrap",border:0},G4="rgba(255, 255, 255, 0.16)";function gl({max:e,index:n,inactiveBg:a,inactiveColor:r,transparent:o,variant:i="numbered",announce:l=!1,ariaLabel:c}){const{t:u}=pe.useTranslation(),d=rn("(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??u("progress.steps",{current:p+1,total:e,defaultValue:"\uC9C4\uD589 \uB2E8\uACC4 {{current}} / {{total}}"}),h={};return a&&(h["--pi-inactive-bg"]=a),r&&(h["--pi-inactive-color"]=r),o&&(a||(h["--pi-inactive-bg"]=G4),r||(h["--pi-inactive-color"]="var(--color-white)")),i==="dot"?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:U4,children:m}),Array.from({length:e}).map((C,y)=>t.jsx("span",{"aria-hidden":"true",className:`progress-indicator-dot--dot${y<p?" done":y===p?" active":""}`},y))]}):d?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]})}):t.jsx("div",{className:"progress-indicator",style:h,role:"list","aria-label":m,children:Array.from({length:e}).map((C,y)=>t.jsx("span",{role:"listitem","aria-current":y===p?"step":void 0,className:`progress-indicator-dot ${y<p?" done":y===p?" active":""} body-3`,children:y+1},y))})}function K4(e){if(!e)return[];const n=[];let a=0,r="";for(const o of e.trim()){if(o==="("?a++:o===")"&&a--,/\s/.test(o)&&a===0){r&&(n.push(r),r="");continue}r+=o}return r&&n.push(r),n}function Y4({children:e,className:n,style:a}){return t.jsx("div",{className:n?`table-cell ${n}`:"table-cell",style:a,children:e})}function Vr({variant:e="default",children:n,className:a,draggable:r,onClick:o,onMouseEnter:i,onMouseLeave:l,onDragStart:c,onDragEnd:u,expandedContent:d}){const p=s.useCallback(m=>{o&&m.target===m.currentTarget&&(m.key==="Enter"||m.key===" ")&&(m.preventDefault(),o())},[o]);return e==="loading"?t.jsx("div",{className:"table-row-wrap",children:t.jsx("div",{className:"table-row table-row--loading",children:t.jsx(ga,{size:28})})}):e==="empty"?t.jsx("div",{className:"table-row-wrap",children:t.jsx("div",{className:"table-row table-row--empty body-3",children:n})}):t.jsxs("div",{className:"table-row-wrap",children:[t.jsx("div",{className:a?`table-row ${a}`:"table-row",draggable:r,onClick:o,onKeyDown:o?p:void 0,onMouseEnter:i,onMouseLeave:l,onDragStart:c,onDragEnd:u,role:o?"button":void 0,tabIndex:o?0:void 0,children:n}),d&&t.jsx("div",{className:"table-row-expand",children:d})]})}function Z4({dir:e}){return t.jsx(e==="asc"?zo:Ho,{className:"table-field__sort-arrow",size:16,strokeWidth:2})}function X4({children:e,onClick:n,className:a,sortDir:r,onResizeStart:o}){const i=s.useCallback(l=>{n&&l.target===l.currentTarget&&(l.key==="Enter"||l.key===" ")&&(l.preventDefault(),n())},[n]);return t.jsxs("div",{onClick:n,onKeyDown:n?i:void 0,role:n?"button":void 0,tabIndex:n?0:void 0,"aria-sort":r?r==="asc"?"ascending":"descending":void 0,className:ge("table-field body-3",a,r?"table-field--sorted":"",o?"table-field--resizable":""),children:[e,r&&t.jsx(Z4,{dir:r}),o&&t.jsx("span",{className:"table-field__resizer",onPointerDown:o,onClick:l=>l.stopPropagation(),"aria-hidden":"true"})]})}function Hr({fields:e=[],headerGroups:n,items:a=[],renderRow:r,onRowClick:o,isRowClickable:i,onRowMouseEnter:l,onRowMouseLeave:c,onRowDragStart:u,onRowDragEnd:d,draggingId:p,gridTemplateColumns:m,mobileGridTemplateColumns:h,resizable:C=!1,resizeMode:y="grow",resizeStorageKey:f,size:v="small",title:b,icon:x,count:_,collapsed:g=!1,onToggleCollapse:A,headerActions:w,empty:D,loading:B,dragOver:k=!1,onDragOver:N,onDragLeave:I,onDrop:O,renderExpandedRow:E,expandedId:V}){const{t:j}=pe.useTranslation(),Y=rn("(max-width: 767px)"),R=h&&Y?h:null,H=C&&!R,W=48,le=f?`table-cols:${f}`:null,q=s.useRef(null),P=s.useRef(()=>!1),M=s.useRef([]),L=s.useRef(null),z=Q=>{if(!Q||typeof window>"u")return null;try{const te=JSON.parse(window.localStorage.getItem(Q)??"null");return Array.isArray(te)&&te.length>0&&te.every(we=>typeof we=="number"&&Number.isFinite(we)&&we>0)?te:null}catch{return null}},[$,T]=s.useState(()=>z(le)),[F,oe]=s.useState(le);F!==le&&(oe(le),T(z(le)));const ae=s.useRef($);s.useEffect(()=>{ae.current=$},[$]);const ee=s.useCallback(Q=>{const te=L.current;if(!te)return;const we=ae.current;if(we){const Se=[...we];if(te.next!=null&&te.startWNext!=null){const ze=Q.clientX-te.startX,Me=Math.max(W-te.startW,Math.min(te.startWNext-W,ze));Se[te.index]=te.startW+Me,Se[te.next]=te.startWNext-Me}else Se[te.index]=Math.max(W,te.startW+(Q.clientX-te.startX));ae.current=Se,T(Se)}},[]),se=s.useCallback(()=>{if(L.current=null,window.removeEventListener("pointermove",ee),window.removeEventListener("pointerup",se),window.removeEventListener("pointercancel",se),document.body.style.cursor="",document.body.style.userSelect="",le&&ae.current)try{window.localStorage.setItem(le,JSON.stringify(ae.current))}catch{}},[ee,le]),Ce=s.useCallback((Q,te)=>{te.preventDefault(),te.stopPropagation();const we=q.current;if(!we)return;const Se=Array.from(we.children).map(Me=>Me.getBoundingClientRect().width),ze=y==="fit"?e.findIndex((Me,Oe)=>Oe>Q&&Me.resizable!==!1):-1;L.current=ze>=0?{index:Q,startX:te.clientX,startW:Se[Q],next:ze,startWNext:Se[ze]}:{index:Q,startX:te.clientX,startW:Se[Q]},ae.current=Se,T(Se),window.addEventListener("pointermove",ee),window.addEventListener("pointerup",se),window.addEventListener("pointercancel",se),document.body.style.cursor="col-resize",document.body.style.userSelect="none"},[ee,se,y,e]),Z=s.useCallback(()=>{const Q=q.current,te=Q?.closest(".table-wrap");if(!Q||!te)return;const we=te.style.getPropertyValue("--table-grid-cols");te.style.setProperty("--table-grid-cols",e.map((fe,We)=>P.current(We)?M.current[We]:"max-content").join(" "));const Se=Array.from(te.querySelectorAll(".table-row")).filter(fe=>!fe.classList.contains("table-row--loading")&&!fe.classList.contains("table-row--empty")),ze=e.map((fe,We)=>{let Ee=Q.children[We]?.getBoundingClientRect().width??0;for(const He of Se){const Ue=He.children[We];Ue&&(Ee=Math.max(Ee,Ue.getBoundingClientRect().width))}const $e=P.current(We)?parseFloat(M.current[We]):NaN;return Number.isFinite($e)?$e:Math.max(W,Math.ceil(Ee))}),Me=window.getComputedStyle(Q),Oe=Q.clientWidth-(parseFloat(Me.paddingLeft)||0)-(parseFloat(Me.paddingRight)||0);we?te.style.setProperty("--table-grid-cols",we):te.style.removeProperty("--table-grid-cols");let Re=ze;const tt=ze.reduce((fe,We,Ee)=>fe+(P.current(Ee)?We:0),0),Ye=ze.reduce((fe,We,Ee)=>fe+(P.current(Ee)?0:We),0),Ke=Oe-tt;if(Oe>0&&Ye>0&&Ke>0){const fe=Ke/Ye;Re=ze.map((Ee,$e)=>P.current($e)?Ee:Math.max(W,Math.round(Ee*fe)));const We=Math.round(Ke-Re.reduce((Ee,$e,He)=>Ee+(P.current(He)?0:$e),0));if(We!==0){let Ee=-1;Re.forEach(($e,He)=>{!P.current(He)&&(Ee<0||$e>Re[Ee])&&(Ee=He)}),Ee>=0&&(Re[Ee]=Math.max(W,Re[Ee]+We))}}if(T(Re),le)try{window.localStorage.setItem(le,JSON.stringify(Re))}catch{}},[e,y,le]);s.useEffect(()=>()=>{L.current&&(window.removeEventListener("pointermove",ee),window.removeEventListener("pointerup",se),window.removeEventListener("pointercancel",se),document.body.style.cursor="",document.body.style.userSelect="")},[ee,se]);const ie=K4(m),J=ie.filter(Q=>/\b(auto|min-content|max-content)\b|fit-content\(/.test(Q));J.length>0&&ea(`table-content-track:${m}`,`[ihabdevteam-core] Table \uC758 gridTemplateColumns \uC5D0 \uB0B4\uC6A9\uC73C\uB85C \uD06C\uAE30\uAC00 \uC815\uD574\uC9C0\uB294 \uD2B8\uB799(${J.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 be=Q=>/^\d+(\.\d+)?px$/.test(ie[Q]??"");P.current=be,M.current=ie;const ve=Q=>y==="fit"&&!be(Q)?"fr":"px",Te=$&&$.length===e.length&&(y==="fit"||a.length>0),de=R??(Te?e.map((Q,te)=>Q.resizable===!1&&ie[te]?ie[te]:`${$[te]}${ve(te)}`).join(" "):m),ye=de?{"--table-grid-cols":de}:void 0,_e=b!==void 0;return t.jsx("div",{className:`table-wrap table-wrap--${v}${H?" table-wrap--resizable":""}${k?" table-wrap--dragover":""}${g?" table-wrap--collapsed":""}`,style:ye,onDragOver:N,onDragLeave:I,onDrop:O,children:t.jsxs("div",{className:"table body-2",children:[_e&&t.jsxs("div",{className:"table-header",onClick:A,role:A?"button":void 0,tabIndex:A?0:void 0,"aria-expanded":A?!g:void 0,onKeyDown:A?Q=>{Q.target===Q.currentTarget&&(Q.key==="Enter"||Q.key===" ")&&(Q.preventDefault(),A())}:void 0,children:[A&&t.jsx(ce,{htmlType:"button",size:40,type:"dot",variant:"transparent-gray",useBorder:!1,icon:g?"chevron-right":"chevron-down",ariaLabel:g?j("common.expand","\uD3BC\uCE58\uAE30"):j("common.collapse","\uC811\uAE30"),className:"table-header__chevron"}),x&&t.jsx(qe,{icon:x,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:_}),w&&t.jsx("span",{className:"table-header__actions",onClick:Q=>Q.stopPropagation(),children:w})]}),!g&&t.jsxs(t.Fragment,{children:[n&&n.length>0&&t.jsx("div",{className:"table-fields table-fields--groups",children:n.map((Q,te)=>t.jsx("div",{className:ge("table-field body-3",Q.className),style:{gridColumn:`span ${Q.span}`},children:Q.label},te))}),t.jsxs("div",{className:ge("table-fields-strip",H&&"table-fields-strip--resizable"),children:[t.jsx("div",{className:"table-fields",ref:q,children:e.map((Q,te)=>t.jsx(X4,{onClick:Q.onClick,className:Q.className,sortDir:Q.sortDir,onResizeStart:H&&te<e.length-1&&Q.resizable!==!1&&(y!=="fit"||e.some((we,Se)=>Se>te&&we.resizable!==!1))?we=>Ce(te,we):void 0,children:Q.label},te))}),H&&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:Z})]}),t.jsx("div",{className:"table-body",children:B?t.jsx(Vr,{variant:"loading"}):a.length===0&&D?t.jsx(Vr,{variant:"empty",children:D}):a.map((Q,te)=>{const we=p!=null&&Q.id===p,Se=!!o&&(i?i(Q):!0),ze=V!=null&&(V instanceof Set?V.has(Q.id):Q.id===V);return t.jsx(Vr,{className:`${Se?" table-row--clickable":""}${u?" table-row--draggable":""}${we?" table-row--dragging":""}`.trim(),draggable:!!u,onClick:Se?()=>o(Q):void 0,onMouseEnter:l?Me=>l(Q,Me):void 0,onMouseLeave:c?Me=>c(Q,Me):void 0,onDragStart:u?Me=>u(Q,Me):void 0,onDragEnd:d?Me=>d(Q,Me):void 0,expandedContent:ze&&E?E(Q):void 0,children:r(Q).map((Me,Oe)=>t.jsx(Y4,{className:Me.className,style:Me.style,children:Me.content},Oe))},Q.id!=null?`${typeof Q.id}:${Q.id}`:`__idx:${te}`)})})]})]})})}function bl(e){switch(e){case"\uBCF4\uCCAD\uAE30":return"main";case"\uC778\uACF5\uC640\uC6B0":return"sub";default:return"default"}}const J4={\uBCF4\uCCAD\uAE30:"hearingAid",\uC778\uACF5\uC640\uC6B0:"cochlearImplant"};function Q4(e,n){const a=J4[e];return a?n(`device.type.${a}`,{defaultValue:e}):e}function yl(e,n){return n!=="wornAt"?String(e[n]??""):e.wornYear?`${e.wornYear}-${e.wornMonth.padStart(2,"0")}-${e.wornDay.padStart(2,"0")}`:""}function eb({rows:e,onSelect:n,onDelete:a,onWear:r,onRelease:o,onAdd:i}){const{t:l}=pe.useTranslation(),c=y=>y==="\uC88C"?l("device.direction.left","\uC88C"):l("device.direction.right","\uC6B0"),{\uC815\uB82C:u,\uCE78:d}=d2(),p=s.useMemo(()=>{if(!u)return e;const{key:y,asc:f}=u;return[...e].sort((v,b)=>{const x=y==="worn"?Number(b.worn)-Number(v.worn):yl(v,y).localeCompare(yl(b,y),"ko");return f?x:-x})},[e,u]),{pageRows:m,pageSizeProps:h,paginationProps:C}=u2(p,u);return t.jsxs("div",{className:"dlp-side-table",children:[t.jsx($r,{count:{value:e.length,unit:l("customers.device.unit","\uAC1C")},pageSize:h,pagination:C,actions:i&&t.jsx(ce,{htmlType:"button",size:40,type:"bar",variant:"main",icon:"plus",label:l("customers.device.addButton","\uAE30\uAE30 \uCD94\uAC00"),onClick:i})}),t.jsx(Hr,{resizable:!0,resizeMode:"fit",resizeStorageKey:"customer-device-history-v2",fields:[{...d(l("customers.device.wearingNow","\uCC29\uC6A9"),"worn"),resizable:!1},d(l("device.direction.label","\uBC29\uD5A5"),"side"),d(l("device.deviceType","\uC885\uB958"),"device"),d(l("device.brand","\uBE0C\uB79C\uB4DC"),"brand"),d(l("device.fitType","\uCC29\uC6A9\uD615\uD0DC"),"fitType"),d(l("device.productName","\uC81C\uD488\uBA85"),"productName"),d(l("device.wornDate","\uCC29\uC6A9\uC77C"),"wornAt"),...a?[{label:"",resizable:!1}]:[]],items:m.map((y,f)=>({id:y.id??`${y.side}-${f}`,row:y})),gridTemplateColumns:`56px 110px 110px minmax(120px, 1fr) 100px minmax(120px, 1fr) 110px${a?" 80px":""}`,renderRow:({row:y})=>[{content:t.jsx("span",{className:"dlp-worn-check",onClick:f=>f.stopPropagation(),children:t.jsx(nl,{checked:y.worn,disabled:y.worn?!o:!r,ariaLabel:y.worn?l("customers.device.unwear","\uCC29\uC6A9 \uD574\uC81C"):l("customers.device.wear","\uCC29\uC6A9"),onChange:f=>{f?r?.(y):o?.(y)}})})},{content:t.jsx("span",{children:c(y.side)})},{content:y.device?t.jsx(ut,{size:"small",variant:bl(y.device),fill:"soft",label:Q4(y.device,l)}):t.jsx("span",{})},{content:t.jsx("span",{children:y.brand})},{content:t.jsx("span",{children:y.fitType||"-"})},{content:t.jsx("span",{children:y.productName||"-"})},{content:t.jsx("span",{className:"dlp-date",children:y.wornYear?`${y.wornYear}.${y.wornMonth}.${y.wornDay}`:"-"})},...a?[{content:t.jsx("span",{className:"dlp-row-actions",children:t.jsx(ce,{htmlType:"button",size:28,type:"bar",variant:"transparent-gray",label:l("common.delete","\uC0AD\uC81C"),onClick:f=>{f?.stopPropagation(),a(y)}})})}]:[]],onRowClick:({row:y})=>n(y),empty:l("customers.device.historyEmpty","\uB4F1\uB85D\uB41C \uAE30\uAE30 \uC774\uB825\uC774 \uC5C6\uC2B5\uB2C8\uB2E4.")})]})}function vl(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 tb(e,n){return new Date(e,n+1,0).getDate()}function nb(e,n){return new Date(e,n,1).getDay()}function ab({visits:e=[],onVisitClick:n,onVisitMove:a,onDayClick:r}){const{t:o}=pe.useTranslation(),i=s.useMemo(()=>o("calendar.dow",{returnObjects:!0}),[o]),l=Mn(),[c,u]=s.useState(()=>Number(l.slice(0,4))),[d,p]=s.useState(()=>Number(l.slice(5,7))-1),[m,h]=s.useState(null),C=s.useRef(null),y=s.useMemo(()=>{const g={};return e.forEach(A=>{g[A.date]||(g[A.date]=[]),g[A.date].push(A)}),g},[e]),f=s.useMemo(()=>{const g=tb(c,d),A=nb(c,d),w=[];for(let D=0;D<A;D++)w.push(null);for(let D=1;D<=g;D++)w.push(D);for(;w.length<35;)w.push(null);return w},[c,d]),v=s.useCallback(()=>{d===0?(u(g=>g-1),p(11)):p(g=>g-1)},[d]),b=s.useCallback(()=>{d===11?(u(g=>g+1),p(0)):p(g=>g+1)},[d]),x=g=>`${c}-${String(d+1).padStart(2,"0")}-${String(g).padStart(2,"0")}`,_=g=>x(g)===l;return t.jsxs("div",{children:[t.jsxs("div",{className:"calendar-nav",children:[t.jsx("button",{type:"button",className:"calendar-nav__button",onClick:v,"aria-label":o("calendar.prevMonth","\uC774\uC804 \uB2EC"),children:t.jsx(qe,{icon:"chevron-left",label:"",className:"",svgClassName:"calendar-nav__button-icon",size:18})}),t.jsx("span",{className:"calendar-nav__title h5","aria-live":"polite",children:o("calendar.yearMonth",{year:c,month:d+1})}),t.jsx("button",{type:"button",className:"calendar-nav__button",onClick:b,"aria-label":o("calendar.nextMonth","\uB2E4\uC74C \uB2EC"),children:t.jsx(qe,{icon:"chevron-right",label:"",className:"",svgClassName:"calendar-nav__button-icon",size:18})}),t.jsxs("div",{className:"calendar-nav__legend",children:[t.jsx("span",{className:"calendar-nav__legend-dot calendar-nav__legend-dot--main"}),t.jsx("span",{className:"caption-1",children:o("calendar.legend.visited","\uBC29\uBB38")}),t.jsx("span",{className:"calendar-nav__legend-dot calendar-nav__legend-dot--sub"}),t.jsx("span",{className:"caption-1",children:o("calendar.legend.scheduled","\uC608\uC57D")}),t.jsx("span",{className:"calendar-nav__legend-dot calendar-nav__legend-dot--disabled"}),t.jsx("span",{className:"caption-1",children:o("calendar.legend.noVisit","\uBBF8\uBC29\uBB38")})]})]}),t.jsxs("div",{className:"calendar-grid",children:[i.map(g=>t.jsx("div",{className:"calendar-day-header body-3",children:g},g)),f.map((g,A)=>{if(g===null)return t.jsx("div",{className:"calendar-cell empty"},`empty-${A}`);const w=g,D=x(w),B=y[D]??[],k=m===D;return t.jsxs("div",{className:`calendar-cell${_(w)?" today":""}${k?" drag-over":""}${r?" calendar-cell--clickable":""}`,role:r?"button":void 0,tabIndex:r?0:void 0,"aria-label":r?o("calendar.addOnDate",{date:D}):void 0,"aria-current":_(w)?"date":void 0,onClick:r?()=>r(D):void 0,onKeyDown:r?N=>{N.target===N.currentTarget&&(N.key!=="Enter"&&N.key!==" "||(N.preventDefault(),r(D)))}:void 0,onDragOver:a?N=>{N.preventDefault(),h(D)}:void 0,onDragLeave:a?N=>{N.currentTarget.contains(N.relatedTarget)||h(null)}:void 0,onDrop:a?N=>{N.preventDefault(),C.current!=null&&(a(C.current,D),C.current=null),h(null)}:void 0,children:[t.jsx("div",{className:"calendar-cell__number body-3",children:w}),t.jsx("div",{className:"calendar-cell__badges",children:B.map((N,I)=>t.jsxs("div",{draggable:!!a,className:`calendar-visit-badge${N.status==="noVisit"?" calendar-visit-badge--no-visit":N.status==="scheduled"?" calendar-visit-badge--scheduled":""}${n?" calendar-visit-badge--clickable":""}${a?" calendar-visit-badge--draggable":""}`,onDragStart:a?O=>{C.current=N.id,O.dataTransfer.effectAllowed="move"}:void 0,onDragEnd:a?()=>{C.current=null,h(null)}:void 0,onClick:n?O=>{O.stopPropagation(),n(N)}:void 0,...vl(n?()=>n(N):void 0),"aria-label":[N.time?Ls(N.time,o):null,N.customer,o(N.status==="noVisit"?"calendar.legend.noVisit":N.status==="scheduled"?"calendar.legend.scheduled":"calendar.legend.visited")].filter(Boolean).join(" "),children:[N.time&&t.jsx("span",{className:"calendar-visit-badge__time body-3",children:Ls(N.time,o)}),t.jsx("span",{className:"calendar-visit-badge__name body-3",children:N.customer}),N.status==="noVisit"&&t.jsx("span",{className:"calendar-visit-badge__no-visit caption-1",children:o("calendar.legend.noVisit","\uBBF8\uBC29\uBB38")})]},N.id??I))})]},w)})]})]})}const rb={page:"h3",pagePopup:"h4",popup:"h5"};function Kn({type:e="page",title:n,headingLevel:a,icon:r,action:o,disc:i,children:l,className:c,style:u}){const d=rb[e],p=n||i||o||r,m=a?`h${a}`:"div";return t.jsxs("div",{className:ge("section",`section--${e}`,c),style:u,children:[p&&t.jsxs("div",{className:"section__header",children:[t.jsxs("div",{className:"section__title-row",children:[r&&t.jsx(qe,{icon:r,label:typeof n=="string"?n:void 0,className:"section__icon"}),t.jsxs("div",{className:"section__title-group",children:[n&&t.jsx(m,{className:`section__title ${d}`,children:n}),i&&t.jsx("div",{className:"section__disc body-3",children:i})]})]}),o&&t.jsx("div",{className:"section__action",children:o})]}),l]})}function xl({icon:e,label:n,tooltip:a,wrapperStyle:r,color:o,bgColor:i,useHover:l=!0,iconSize:c="medium"}){const u=c==="small",d=ge("category-icon",u?"category-icon--small":""),p=u?16:20,m=s.useRef(null),[h,C]=s.useState(!1),y=s.useMemo(()=>{const w=r&&typeof r=="object"?{...r}:{};return!o&&!i?w:{...w,...o?{color:o,"--t-item-fg":o}:{},...i?{"--t-item-bg":i}:{}}},[r,o,i]),f=a||n,[v,b]=s.useState(null);s.useLayoutEffect(()=>{h&&b(m.current?.getBoundingClientRect()??null)},[h]),s.useEffect(()=>{if(!l&&h)try{C(!1)}catch{}},[l,h]),s.useEffect(()=>{if(!h)return;const w=D=>{const B=m.current;if(!B)return;const k=D.target;k&&!B.contains(k)&&C(!1)};return document.addEventListener("pointerdown",w,!0),()=>document.removeEventListener("pointerdown",w,!0)},[h]);const x=s.useCallback(()=>{l&&C(!0)},[l]),_=s.useCallback(()=>{l&&C(!1)},[l]),g=s.useCallback(()=>C(!1),[]),A=s.useCallback(w=>{if(w.key==="Escape"){C(!1);return}(w.key==="Enter"||w.key===" ")&&(w.preventDefault(),C(D=>!D))},[]);return t.jsxs("span",{ref:m,className:"category-icon__wrap",onPointerEnter:x,onPointerLeave:_,onFocus:x,onBlur:_,onKeyDown:A,role:"button",tabIndex:0,"aria-label":typeof f=="string"?f:void 0,"aria-haspopup":!!f,"aria-expanded":h,"data-tooltip-ignore":!0,children:[t.jsx(qe,{icon:e,label:n,className:d,imgClassName:"category-icon__image",maskClassName:"category-icon__mask",svgClassName:"category-icon__svg",wrapperStyle:y,size:p}),h&&f&&t.jsx(kn,{anchorRect:v,text:typeof f=="string"?f:void 0,offset:8,onClose:g,className:"category-icon__tooltip",ariaLabel:typeof f=="string"?f:void 0})]})}let An=null;function zr(e){if(An&&An!==e)try{An()}catch{}return An=e,()=>{An===e&&(An=null)}}function Ia(e){if(An===e){An=null;try{e()}catch{}}}function ob(e,n){if(!e)return{previewCodes:[],previewBucket:null};const a=e,r=l=>l.map(c=>c?.contextCode||c?.context_code).filter(Boolean).map(String);if(n==="LISTEN_IN_NOISE"){const l=a.sentences||a.items||[],c=Array.isArray(l)&&l.length>0?r(l):[];return c.length===0&&(a.contextCode||a.context_code)&&c.push(String(a.contextCode||a.context_code)),{previewCodes:c,previewBucket:"LIN_D"}}if(n==="SHORT_STORY"){const l=a.items||a.sentences||[],c=Array.isArray(l)&&l.length>0?r(l):[];return c.length===0&&(a.contextCode||a.context_code)&&c.push(String(a.contextCode||a.context_code)),{previewCodes:c,previewBucket:"SHORT_S"}}if(n==="LONG_STORY"){const l=a.items||a.sentences||[],c=Array.isArray(l)&&l.length>0?r(l):[];return c.length===0&&(a.contextCode||a.context_code)&&c.push(String(a.contextCode||a.context_code)),{previewCodes:c,previewBucket:"LONG"}}if(n==="ORDERING_SENTENCE"){const l=a.sentences||a.items||[],c=Array.isArray(l)&&l.length>0?r(l):[];return c.length===0&&(a.contextCode||a.context_code)&&c.push(String(a.contextCode||a.context_code)),{previewCodes:c,previewBucket:"LIN_D"}}const o=a.sentences||a.items||[],i=r(Array.isArray(o)?o:[]);return i.length===0&&(a.contextCode||a.context_code)&&i.push(String(a.contextCode||a.context_code)),{previewCodes:i,previewBucket:null}}function sb(e,n){const[a,r]=s.useState(!1),[o,i]=s.useState(-1),[l,c]=s.useState({key:"",urls:[]}),u=s.useRef(null),d=s.useRef(!1),p=s.useRef(null),m=s.useRef(null),[h,C]=s.useState(!1),y=s.useRef([]),{previewCodes:f,previewBucket:v}=ob(e,n),b=`${f.join(",")}|${v??""}`,x=s.useMemo(()=>l.key===b?l.urls:[],[l,b]);s.useEffect(()=>{if(!f.length)return;let g=!1;return(async()=>{const A=[],w=[];for(const D of f)try{const B=hs(D,v);if(!B){A.push("");continue}let k=null;try{k=await fs(B)}catch{}if(!k)try{const N=await Cs(B);N&&(k=URL.createObjectURL(N),w.push(k))}catch{}A.push(k??"")}catch{A.push("")}g?w.forEach(D=>{try{URL.revokeObjectURL(D)}catch{}}):(y.current.forEach(D=>{try{URL.revokeObjectURL(D)}catch{}}),y.current=w,c({key:b,urls:A}))})(),()=>{g=!0}},[f.join(","),v]),s.useEffect(()=>()=>{y.current.forEach(g=>{try{URL.revokeObjectURL(g)}catch{}}),y.current=[]},[]);const _=s.useCallback(async g=>{if(g.stopPropagation(),g.preventDefault(),d.current){p.current&&Ia(p.current),d.current=!1;try{u.current?.pause()}catch{}r(!1),i(-1);return}if(!x.filter(Boolean).length)return;let A=null;const w=()=>{d.current=!1;try{u.current?.pause()}catch{}A?.()};p.current=w;const D=zr(w);d.current=!0,r(!0);for(let B=0;B<x.length&&d.current;B++){const k=x[B];if(k){i(B);try{await new Promise((N,I)=>{A=N;const O=new Audio(k);u.current=O,O.onended=()=>N(),O.onerror=()=>I(),O.play().catch(I)})}catch{break}}}D(),p.current===w&&(p.current=null,d.current=!1,r(!1),i(-1))},[x]);return s.useEffect(()=>()=>{p.current&&Ia(p.current),d.current=!1;try{u.current?.pause()}catch{}u.current=null},[]),{playing:a,playingIndex:o,previewUrls:x,previewHover:h,setPreviewHover:C,previewBtnRef:m,handlePreview:_}}const ib=e=>{if(!e)return[];const n=typeof e.context=="string"&&e.context.trim()||typeof e.sentence=="string"&&e.sentence.trim()||typeof e.text=="string"&&e.text.trim()||"";if(n)return[String(n)];const a=e.sentences||e.items||e.questions||[];return Array.isArray(a)&&a.length>0?a.map(r=>{if(typeof r=="string")return r;if(r&&typeof r=="object"){const o=r;return o.sentence||o.text||o.context||o.question||o.title||""}return""}).filter(r=>typeof r=="string"&&r.trim().length>0).map(r=>r.trim()):[]};function Wr(e){const{index:n,type:a,trainingData:r,ariaLabel:o,depth:i,renderPopup:l,completed:c,completedIds:u,selectedIds:d,tooltipText:p,useDescriptionTooltip:m=!1,onRemove:h,hideCheckBadge:C=!1,showTypeLabel:y=!1,onComplete:f,onSelect:v,onMore:b,countLabelOverride:x,size:_="square"}=e||{},{t:g}=pe.useTranslation(),[A,w]=s.useState(!1),D=s.useRef(null),[B,k]=s.useState(!1);s.useEffect(()=>{D.current?.matches(":hover")&&k(!0)},[]);const{playing:N,playingIndex:I,previewUrls:O,previewHover:E,setPreviewHover:V,previewBtnRef:j,handlePreview:Y}=sb(r,a?.key),R=s.useCallback(()=>{v?v():w(!0)},[v]),H=s.useCallback(()=>w(!1),[]),W=s.useCallback(()=>k(!0),[]),le=s.useCallback(()=>k(!1),[]),q=s.useCallback(()=>V(!0),[V]),P=s.useCallback(()=>V(!1),[V]),[M,L]=s.useState(null);s.useLayoutEffect(()=>{E&&L(j.current?.getBoundingClientRect()??null)},[E,j]);const[z,$]=s.useState(null);s.useLayoutEffect(()=>{B&&!A&&m&&$(D.current?.getBoundingClientRect()??null)},[B,A,m]);const T=s.useCallback(fe=>{fe.target===fe.currentTarget&&(fe.key==="Enter"||fe.key===" ")&&(fe.preventDefault(),R())},[R]),F=r||null,oe=s.useMemo(()=>{if(!m)return null;const fe=p?(Array.isArray(p)?p:[p]).filter(Boolean):null,We=fe&&fe.length>0?fe:ib(F);return We&&We.length>0?We:null},[m,p,F]),ae=s.useCallback(fe=>{fe.stopPropagation(),h?.()},[h]),ee=s.useCallback(fe=>fe.stopPropagation(),[]),se=s.useCallback(fe=>{typeof f=="function"&&f(fe)},[f]),Ce=c||(u&&r?.id!=null?u.has(String(r.id)):!1),Z=!Ce&&(d!=null&&r?.id!=null?d.has(String(r.id)):!1);bi("speechear.popup.close",H);const ie=$s(),J=`${a?.label||""} ${n+1}`,be=F?.title||F?.name||J;let ve=a?.icon,Te,de="",ye="";try{const fe=F?.category_0||F?.category_main_code||F?.category_main,We=F?.category_1||F?.category_sub_code||F?.category_sub,Ee=ie.find($e=>$e.key===fe);Ee?.icon&&(ve=Ee.icon),!Te&&Ee?.color&&(Te={"--t-item-fg":Ee.color}),!Te&&F?.iconColor&&(Te={"--t-item-fg":F.iconColor}),de=Ee?g(`topic.${Ee.key}`,{defaultValue:Ee.label||""}):"";try{const $e=Ee?.subs?.find(He=>He.key===We);ye=$e?g(`topic.sub.${$e.key}`,{defaultValue:$e.label||""}):""}catch{}}catch{}const _e=ye?`${de} / ${ye}`:de||a?.label||be,Q=fe=>g("training.countQuestions",{n:fe}),te=fe=>g("training.countSentences",{n:fe});let we="";try{if(F)if(a?.key==="LISTEN_IN_NOISE"){let fe=0;Array.isArray(F.items)&&F.items.length>0?fe=F.items.length:Array.isArray(F.sentences)&&F.sentences.length>0?fe=F.sentences.length:F.sentences&&(fe=1),we=te(fe)}else if(a?.key==="SHORT_STORY"){let fe=1;Array.isArray(r?.items)?fe=r.items.length:Array.isArray(r?.raw&&r.raw?.items)?fe=r.raw.items.length:Array.isArray(F?.questions)?fe=F.questions.length:Array.isArray(F?.sentences)&&(fe=F.sentences.length),we=Q(fe)}else if(a?.key==="LONG_STORY"){let fe=1;if(Array.isArray(F.items)&&F.items.length>0){const We=F.items.reduce((Ee,$e)=>{const He=$e.questionItems;return Array.isArray(He)?Ee+He.length:Array.isArray($e.questions)?Ee+$e.questions.length:Ee},0);fe=We>0?We:F.items.length}else Array.isArray(F.questions)&&F.questions.length>0?fe=F.questions.length:Array.isArray(F.sentences)&&F.sentences.length>0&&(fe=F.sentences.length);we=Q(fe)}else if(a?.key==="ORDERING_SENTENCE"){let fe=1;Array.isArray(F.items)&&F.items.length>0?fe=F.items.length:Array.isArray(F.sentences)&&F.sentences.length>0&&(fe=F.sentences.length),we=te(fe)}else Array.isArray(F.items)&&(we=F.items.length>0?Q(F.items.length):"")}catch{}const Se=_==="row",ze=_==="list"||Se,Me=_==="compact",Oe=_==="small",Re=Oe&&a?.key?O0().find(fe=>fe.key===a.key):void 0,tt=Re?Rs[Re.key]:void 0,Ye=Re?tt?g(`trainingType.${tt}.title`,{defaultValue:Re.label}):Re.label??"":"",Ke=!!y&&!!a?.label&&a.label!==String(be)||Oe&&!!Ye&&Ye!==String(be);return t.jsxs(t.Fragment,{children:[t.jsxs("div",{ref:D,className:`training-block-button${ze?" training-block-button--list":""}${Se?" training-block-button--row":""}${Me?" training-block-button--compact":""}${Oe?" training-block-button--small":""}${Ce?" training-block-button--completed":""}${Z?" training-block-button--selected":""}${Ke&&!Oe?" training-block-button--withType":""}${Oe&&!Ke?" training-block-button--no-type-label":""}`,onClick:R,onPointerEnter:W,onPointerLeave:le,role:"button",tabIndex:0,onKeyDown:T,"aria-label":typeof o=="string"?o:typeof be=="string"?be:void 0,children:[t.jsxs("div",{className:"training-block-button__left",children:[y&&a?.label&&a.label!==String(be)&&t.jsx("span",{className:"training-block-button__type-label caption-1",children:a.label}),Oe&&Ye&&Ye!==String(be)&&t.jsx("span",{className:"training-block-button__type-label caption-2",children:Ye}),t.jsx(xl,{icon:ve,label:be,tooltip:_e,wrapperStyle:Te,iconSize:Oe||Me?"small":"medium"}),!C&&(Ce||Z)&&!(h&&B)&&t.jsx(ut,{type:"dot",icon:"check",position:"top-left",size:"medium","aria-label":Ce?g("training.completed","\uD6C8\uB828 \uC644\uB8CC"):g("training.selected","\uC120\uD0DD\uB428")}),h&&B&&t.jsx(ut,{type:"dot",icon:"remove",position:"top-left",size:"medium","aria-label":g("common.remove","\uC81C\uAC70"),onClick:ae}),t.jsx("div",{className:`training-block-button__title ${Me?"body-3":Oe?"body-3b":"h3"}`,children:String(be)}),t.jsxs("div",{className:"training-block-button__description",children:[(()=>{const fe=x!==void 0?x:we;return fe?t.jsx("div",{className:`training-block-button__count ${Oe?"caption-2":"caption-1"}`,children:fe}):null})(),t.jsx("div",{className:"training-block-button__chevron",children:t.jsx(qe,{icon:"chevron-right",label:g("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:Oe?12:20})})]}),(ze&&!Se||Oe)&&O.length>0&&t.jsx("div",{ref:j,className:"training-block-button__preview","data-tooltip-ignore":!0,onClick:ee,onPointerEnter:q,onPointerLeave:P,children:t.jsx(ce,{htmlType:"button",size:Oe?28:32,type:"dot",icon:N?"pause":"play",variant:Oe?"transparent-lightGray":"default",useBorder:!1,selected:N,ariaLabel:N?g("training.stop","\uC815\uC9C0"):g("training.preview","\uBBF8\uB9AC \uB4E3\uAE30"),onClick:Y})})]}),b&&t.jsx("div",{className:"training-block-button__more","data-tooltip-ignore":!0,onClick:fe=>{fe.stopPropagation(),b(fe)},children:t.jsx(ce,{htmlType:"button",size:40,type:"dot",icon:"more-horizontal",variant:"transparent-lightGray",useBorder:!1,ariaLabel:g("common.more","\uB354\uBCF4\uAE30")})})]}),E&&t.jsx(kn,{anchorRect:M,text:N?g("training.stop","\uC815\uC9C0"):g("training.preview","\uBBF8\uB9AC \uB4E3\uAE30"),offset:8,onClose:P}),B&&!A&&m&&(oe?t.jsx(Rn,{anchorRect:z,items:oe,activeIndex:I,onClose:le}):F?.subTitle?t.jsx(kn,{anchorRect:z,text:F.subTitle,offset:8,onClose:le}):null),A&&l&&l({trainingData:F,typeKey:a?.key??"",onClose:H,onComplete:se,popupTitle:String(be),popupSubTitle:a?.subTitle,depth:i!=null?String(i):void 0,popupIcon:ve,popupIconTooltip:String(_e),popupWrapperStyle:Te})]})}let qr=null,_l=!1;function wl(){if(_l||typeof document>"u")return;_l=!0,document.addEventListener("keydown",n=>{n.metaKey||n.ctrlKey||n.altKey||(qr="keyboard")},!0);const e=()=>{qr="pointer"};document.addEventListener("pointerdown",e,!0),document.addEventListener("mousedown",e,!0),document.addEventListener("touchstart",e,{capture:!0,passive:!0})}wl();function Fa(){return wl(),qr==="keyboard"}const Oa=20;function lb(e){const{t:n}=pe.useTranslation(),{type:a,trainingDatas:r,depth:o,renderPopup:i,completedIds:l,selectedIds:c,onItemComplete:u,size:d,useDescriptionTooltip:p,onRemove:m,onMore:h,sectionType:C="page"}=e||{},[,y]=s.useState(0),f=typeof r<"u"?Array.isArray(r)?r:[]:[],v=f.length,[b,x]=s.useState(Math.min(v,Oa)),_=s.useMemo(()=>Array.isArray(o)?[...o,a?.label].filter(Boolean).join(" \xB7 "):[o||"",a?.label].filter(Boolean).join(" \xB7 "),[o,a?.label]);s.useEffect(()=>{x(Math.min(v,Oa))},[v]),bi("speechear.data.updated",()=>y(D=>D+1));const g=s.useRef(null),A=s.useRef(null);function w(){const D=document.activeElement;A.current=Fa()&&D&&D.closest?.(".training-block__more")?b:null,x(B=>Math.min(v,B+Oa))}return s.useEffect(()=>{const D=A.current;if(D==null)return;A.current=null;const B=document.activeElement;B&&B!==document.body||g.current?.querySelectorAll(".training-block-button")[D]?.focus()},[b]),t.jsxs(Kn,{type:C,title:a?.label,icon:a?.icon,disc:a?.desc,className:"training-block",children:[t.jsx("div",{className:"training-list",ref:g,children:(f||[]).slice(0,b).map((D,B)=>{const k=D;return t.jsx(Wr,{index:B,type:a,trainingData:k,depth:_,renderPopup:i,completedIds:l,selectedIds:c,size:d,useDescriptionTooltip:p,onRemove:typeof m=="function"&&c!=null&&k?.id!=null&&c.has(String(k.id))?()=>m(k):void 0,onComplete:typeof u=="function"&&k?.id!=null?()=>u(String(k.id)):void 0,onMore:typeof h=="function"?N=>h(k,N):void 0},k?.id!=null?`${a?.key||"t"}-${String(k.id)}`:`${a?.key||"t"}-${B}`)})}),v>Oa&&b<v&&t.jsx("div",{className:"training-block__more",children:t.jsx(ce,{htmlType:"button",size:48,type:"bar",icon:"plus",onClick:w,ariaLabel:n("common.loadMore","\uB354\uBCF4\uAE30"),label:n("common.loadMore","\uB354\uBCF4\uAE30"),variant:"main"})})]})}function Ur(e){const n=s.useRef(null),[a,r]=s.useState(!!e),[o,i]=s.useState(!1);s.useEffect(()=>{i(!1);const u=n.current;r(!!e&&!(u?.complete&&u.naturalWidth>0))},[e]);const l=s.useCallback(()=>r(!1),[]),c=s.useCallback(()=>{r(!1),i(!0)},[]);return{imgRef:n,loading:a,failed:o,hasImage:!!e&&!o,onLoad:l,onError:c}}var cb='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 ub=cb,Gr=s.forwardRef(function({item:e,disabled:n=!1,onPlayDone:a,selectable:r=!1,selected:o=!1,onSelect:i,flipDelay:l=0,hideLabel:c=!1,hideAudio:u=!1,orderRank:d=null},p){const{t:m}=pe.useTranslation(),h=e.word||e.title||"",C=n||!h,y=e.audio??e.sound??e.audioKey,f=e.subLabel||e.pronunciation||"",v=e.colloquialLabel||"",[b,x]=s.useState({label:h,subLabel:f,colloquialLabel:v,homonum:e.homonum});h&&(b.label!==h||b.subLabel!==f||b.colloquialLabel!==v||!Object.is(b.homonum,e.homonum))&&x({label:h,subLabel:f,colloquialLabel:v,homonum:e.homonum});const _=s.useRef(null),g=rn("(max-width: 767px)"),[A,w]=s.useState(!1),D=`${typeof y=="string"?y:y?.src??""}\0${h}`,[B,k]=s.useState({for:"",url:""}),N=B.for===D?B.url:"",I=Wn()?.(b.label,b.homonum)??e.image??"",{imgRef:O,loading:E,hasImage:V,onLoad:j,onError:Y}=Ur(I);s.useEffect(()=>{let z=!1;return(async()=>{if(y){if(typeof y=="string"){if(y.startsWith("http")||y.includes("/")){k({for:D,url:y});return}}else if(typeof y=="object"&&!Array.isArray(y)){const T=y.src;if(T){k({for:D,url:T});return}}}const $=dr();if($&&h)try{const T=await Promise.resolve($(h));!z&&T&&k({for:D,url:T})}catch{}})(),()=>{z=!0}},[y,h,D]);const R=s.useRef(!0),H=s.useRef(null);s.useEffect(()=>(R.current=!0,()=>{R.current=!1,H.current&&Ia(H.current),H.current=null;try{_.current?.pause()}catch{}_.current=null}),[]);const W=s.useCallback(()=>new Promise(z=>{if(typeof window<"u"&&window.speechSynthesis&&h){w(!0),window.speechSynthesis.cancel();const $=new SpeechSynthesisUtterance(h);$.lang="ko-KR",$.onend=()=>{w(!1);try{a?.()}catch{}z()},$.onerror=()=>{w(!1),z()},window.speechSynthesis.speak($)}else z()}),[h,a]),le=s.useCallback(z=>new Promise($=>{let T=!1;const F=()=>{T||(T=!0,w(!1),$(!1))};try{const oe=new Audio(z);_.current=oe,oe.onended=()=>{if(!T){T=!0,w(!1);try{a?.()}catch{}$(!0)}},oe.onerror=F,oe.play().catch(F)}catch{F()}}),[a]),q=s.useCallback(async()=>{if(n||!R.current)return;const z=()=>{H.current===z&&(H.current=null);try{_.current?.pause()}catch{}try{window.speechSynthesis?.cancel()}catch{}w(!1)},$=zr(z);H.current=z;try{window.speechSynthesis?.cancel()}catch{}try{if(N&&(w(!0),await le(N)))return;const T=n0();if(T&&h)try{const F=await Promise.resolve(T(h));if(!R.current||H.current!==z||F&&(w(!0),await le(F)))return}catch{}if(!R.current||H.current!==z)return;await W()}finally{$(),H.current===z&&(H.current=null)}},[n,N,h,le,W]);s.useImperativeHandle(p,()=>({play:()=>q()}),[q]);const P=z=>z.stopPropagation(),M=s.useCallback(z=>{if(z.stopPropagation(),!n){if(A){try{_.current?.pause()}catch{}try{window.speechSynthesis?.cancel()}catch{}w(!1);return}q()}},[n,A,q]),L=ge("training-word-card",n?"training-word-card--disabled":"",C?"training-word-card--flipped":"",r?"training-word-card--selectable":"",o?"training-word-card--selected":"");return t.jsx("div",{className:L,onClick:r&&!n?i:void 0,role:r?"button":void 0,"aria-pressed":r?o:void 0,tabIndex:r&&!n?0:void 0,"aria-disabled":r&&n?!0:void 0,onKeyDown:r&&!n?z=>{z.target===z.currentTarget&&(z.key==="Enter"||z.key===" "||z.key==="Spacebar")&&(z.preventDefault(),i?.())}:void 0,children:t.jsxs("div",{className:"training-word-card__flipper",style:{transitionDelay:C?"0ms":`${l}ms`},children:[t.jsxs("div",{className:"training-word-card__front",children:[o&&t.jsx("div",{className:"training-word-card__selected-badge",onClick:P,children:t.jsx(ut,{type:"dot",size:40,position:"inline",animate:!0,icon:d!=null?void 0:"check",number:d??void 0,"aria-label":d!=null?m("training.nthSelected",{n:d}):m("training.selected","\uC120\uD0DD\uB428")})}),t.jsx("div",{className:"training-word-card__image-wrap",children:V?t.jsxs(t.Fragment,{children:[E&&t.jsx("div",{className:"training-word-card__spinner"}),t.jsx("img",{ref:O,className:"training-word-card__image",src:I,alt:b.label||m("common.image","\uC774\uBBF8\uC9C0"),style:{opacity:E?0:1},onLoad:j,onError:Y})]}):t.jsx("div",{className:"training-word-card__placeholder"})}),!c&&t.jsxs("div",{className:"training-word-card__body",children:[t.jsx("div",{className:"training-word-card__word",children:b.label}),b.subLabel&&t.jsxs("div",{className:"training-word-card__pronunciation",children:["[",b.subLabel,"]"]}),b.colloquialLabel&&t.jsxs("div",{className:"training-word-card__colloquial caption-1",children:["[",b.colloquialLabel,"]"]})]}),!u&&t.jsx("div",{className:"training-word-card__bottom",onClick:r?P:void 0,children:t.jsx(ce,{htmlType:"button",size:g?40:48,type:g?"dot":"bar",icon:A?"pause":"play",label:g?void 0:m("training.playSound","\uC18C\uB9AC \uB4E3\uAE30"),selected:A,onClick:M,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:ub,className:"training-word-card__disabled-symbol",alt:"",draggable:!1})})]})})}),db=260;function Nn(e){const{t:n}=pe.useTranslation(),{title:a,subtitle:r,headerActions:o,children:i,buttons:l,footer:c,footerClassName:u="",onClose:d,closeDisabled:p=!1,beforeClose:m,closeOnBackdrop:h=!0,className:C="",ariaLabel:y,useTitle:f=!0,inline:v=!1,size:b,layer:x="modal",height:_,fillBody:g=!1,resetScrollKey:A}=e||{},[w,D]=s.useState(!1),B=s.useRef(!1),k=s.useRef(null),N=s.useId(),I=s.useRef(null);s.useEffect(()=>{},[v,a,y,C]),s.useEffect(()=>{A!==void 0&&I.current&&(I.current.scrollTop=0)},[A]);const[O,E]=s.useState(!1);s.useEffect(()=>{const $=I.current;if(!$)return;const T=()=>E($.scrollHeight>$.clientHeight+1);if(T(),typeof ResizeObserver>"u")return;const F=new ResizeObserver(T);F.observe($);const oe=$.firstElementChild;return oe&&F.observe(oe),()=>F.disconnect()},[i,A]),s.useEffect(()=>{if(!v)return Xi()},[v]),s.useEffect(()=>{if(v)return;const $=document.activeElement,T=k.current;return Mr(T,$),T&&!T.contains(document.activeElement)&&(T.querySelector(Ln)??T).focus(),()=>{const F=document.activeElement;(!F||F===document.body||T&&T.contains(F))&&Lr($)?.focus?.()}},[v]),xr(k,!v);const V=s.useRef(!0),j=s.useRef(null);s.useEffect(()=>(V.current=!0,()=>{V.current=!1,j.current&&(clearTimeout(j.current),j.current=null)}),[]);const Y=s.useCallback(()=>{!V.current||!B.current||(B.current=!1,D(!1))},[]),R=s.useCallback(($,T=!1)=>{if(T&&!V.current||B.current)return;B.current=!0,D(!0);const F=setTimeout(()=>{j.current===F&&(j.current=null);let oe;try{oe=$?$():void 0}catch{Y();return}oe&&typeof oe.then=="function"&&oe.then(()=>{setTimeout(Y,120)},Y)},db);T&&(j.current=F)},[Y]),H=s.useCallback(()=>{p||m&&m()===!1||R(d,!0)},[R,d,p,m]),W=s.useRef(H);s.useEffect(()=>{W.current=H});const le=!v&&!!d;s.useEffect(()=>{if(le)return $n(()=>W.current())},[le]);const q=le&&h,P=s.useRef(!1),M=$=>{P.current=$.target===$.currentTarget},L=$=>{const T=P.current;P.current=!1,T&&$.target===$.currentTarget&&H()},z=t.jsx("div",{className:`popup ${v?"popup--inline":""} ${x==="belowPagePopup"?"popup--below-page-popup":""} ${w?"popup--closing":""} ${C}`,onPointerDown:q?M:void 0,onClick:q?L:void 0,onMouseDown:v?void 0:$=>{$.target===$.currentTarget&&$.preventDefault()},children:t.jsxs("div",{ref:k,className:`popup-panel${b?` popup-panel--${b}`:""}${_!=null?" popup-panel--has-height":""}${g?" popup-panel--fill-body":""}`,style:_!=null?{"--popup-height":typeof _=="number"?`${_}px`:_}:void 0,tabIndex:-1,role:v?void 0:"dialog","aria-modal":v?void 0:!0,"aria-labelledby":!v&&f&&a?N:void 0,"aria-label":!v&&!(f&&a)?y??(typeof a=="string"?a:void 0):void 0,children:[!f&&(o||d)?t.jsxs("div",{className:"popup-close-float",children:[o,d&&t.jsx(ce,{htmlType:"button",size:40,type:"dot",icon:"x",variant:"transparent-gray",useBorder:!1,onClick:H,disabled:p,ariaLabel:n("common.close","\uB2EB\uAE30")})]}):a||o||d?t.jsxs("div",{className:`popup-header${r?" popup-header--with-subtitle":""}`,children:[t.jsxs("div",{className:"popup-header-main",children:[t.jsx("span",{id:N,className:"popup-title popup-title--left h2",children:a}),r&&t.jsx("span",{className:"popup-subtitle body-3",children:r})]}),t.jsxs("div",{className:"popup-header-actions",children:[o,d&&t.jsx(ce,{htmlType:"button",size:40,type:"dot",icon:"x",variant:"transparent-gray",useBorder:!1,onClick:H,disabled:p,ariaLabel:n("common.close","\uB2EB\uAE30")})]})]}):null,t.jsx("div",{className:"popup-content",ref:I,tabIndex:O?0:void 0,children:t.jsx("div",{className:"popup-content__inner",children:typeof i=="function"?i({animateThen:R,closeWithAnimation:H}):i})}),l?.length?t.jsx("div",{className:"popup-footer popup-footer--buttons",children:l.map(($,T)=>t.jsx(ce,{htmlType:"button",size:48,variant:$.variant??"default",label:$.label,disabled:$.disabled,onClick:()=>$.onClick?.({animateThen:R,closeWithAnimation:H})},T))}):c?t.jsx("div",{className:`popup-footer${u?` ${u}`:""}`,children:typeof c=="function"?c({animateThen:R,closeWithAnimation:H}):c}):null]})});return v||typeof document>"u"?z:Ut.createPortal(z,document.body)}function Va(e){return String(e)}const kl=["o","triangle","x"];function Al(e,n){return e===n?null:n}const Nl={o:"circle",triangle:"triangle",x:"x"},Bl={o:"main",triangle:"warn",x:"danger"};function pb(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 o=n+a+r;return{marked:o,o:n,triangle:a,x:r,rate:o===0?null:(n+a*.5)/o}}function Kr(e){const n={};for(const[a,r]of Object.entries(e))(r==="o"||r==="triangle"||r==="x")&&(n[a]=r);return n}function Dl(e){const n=[];let a=0;for(const r of e)n.push(a),a+=r;return n}function mb(e,n){return!n&&e>0}const Yn={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 hb(e="landscape"){const{printSize:n,printW:a,printH:r}=Yn[e],o=document.createElement("style");o.textContent=`@page { size: ${n}; margin: 0; } .word-table { width: ${a} !important; height: ${r} !important; }`,document.head.appendChild(o);const i=()=>{document.head.removeChild(o),window.removeEventListener("afterprint",i)};window.addEventListener("afterprint",i),window.print()}function Sl(e,n){if(e.length===0)return[[]];const a=Math.max(1,Math.floor(n)),r=[];for(let o=0;o<e.length;o+=a)r.push(e.slice(o,o+a));return r}const fb={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 Cb(e,n){const a=fb[e][n];if(a)return a;const r=Math.max(1,Math.ceil(n)),o=Math.max(1,Math.ceil(Math.sqrt(r*.707)));let i,l;return e==="landscape"?(l=o,i=Math.ceil(r/l)):(i=o,l=Math.ceil(r/i)),(e==="landscape"?i<l:l<i)&&([i,l]=[l,i]),{cols:i,rows:l}}const gb={\uD45C\uC2DC:"word-table-block__content--cut-show",\uC810\uC120:"",\uCF54\uB108:"word-table-block__content--cut-corner",\uBBF8\uD45C\uC2DC:""},jl={\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"},Tl={\uACE0\uC720:"\uACE0\uC720\uC5B4",\uD55C\uC790:"\uD55C\uC790\uC5B4",\uC678\uB798:"\uC678\uB798\uC5B4",\uD63C\uC885:"\uD63C\uC885\uC5B4"};function Yr(e,n){return e?e.split("/").map(a=>n[a]??a).join("/"):""}function El(e,n,a,r){if(r!=="\uC810\uC120")return{};const o=e%n,i=Math.floor(e/n),l=o<n-1,c=i<a-1;if(!l&&!c)return{};const u="#ddd",d=C=>`repeating-linear-gradient(to ${C}, ${u} 0, ${u} 5px, transparent 5px, transparent 10px)`,p=[],m=[],h=[];return l&&(p.push(d("bottom")),m.push("1px 100%"),h.push("right center")),c&&(p.push(d("right")),m.push("100% 1px"),h.push("center bottom")),{backgroundImage:p.join(", "),backgroundSize:m.join(", "),backgroundPosition:h.join(", "),backgroundRepeat:"no-repeat",printColorAdjust:"exact",WebkitPrintColorAdjust:"exact"}}const bb=280,yb=240,vb=280,xb=400,_b=120,wb=280;function Ml(e,n){const a=s.useRef(null),[r,o]=s.useState(1),[i,l]=s.useState(0),c=s.useCallback((u,d)=>{const p=u/e,m=n?d/n:1/0,h=Math.min(1,p,m);o(h),l(Math.max(0,(u-e*h)/2))},[e,n]);return s.useEffect(()=>{const u=a.current;if(!u)return;const d=n?u.parentElement??u:u;if(c(d.clientWidth,d.clientHeight),typeof ResizeObserver>"u")return;const p=new ResizeObserver(([m])=>c(m.contentRect.width,m.contentRect.height));return p.observe(d),()=>p.disconnect()},[c,n]),{scalerRef:a,scale:r,offset:i}}let gn=null;function Ll({label:e,subLabel:n,colloquialLabel:a,homonum:r,showWord:o=!0,showImage:i=!0,showPronunciation:l=!0,showColloquial:c=!0,buttonSize:u=40,wordInfo:d}){const{t:p}=pe.useTranslation(),m=s.useRef(null),h=s.useRef(null),C=s.useRef(null),[y,f]=s.useState(1),[v,b]=s.useState(!1),[x,_]=s.useState({for:"",url:""}),[g,A]=s.useState(null),w=n&&n.length>0?n:r0()?.(e,r)??"",D=Wn()?.(e,r)??"",{imgRef:B,loading:k,failed:N,onLoad:I,onError:O}=Ur(D),E=s.useCallback(()=>A(h.current?.getBoundingClientRect()??null),[]),V=s.useCallback(()=>A(null),[]),j=s.useMemo(()=>{if(!d)return null;const P=[];return d.grade&&P.push(p("wordTable.info.grade",{n:d.grade,defaultValue:"\uB09C\uC774\uB3C4: {{n}}\uB4F1\uAE09"})),d.syllables&&P.push(p("wordTable.info.syllables",{n:d.syllables,defaultValue:"\uC74C\uC808 \uC218: {{n}}\uC74C\uC808"})),d.pos&&P.push(p("wordTable.info.pos",{v:Yr(d.pos,kb(p)),defaultValue:"\uD488\uC0AC: {{v}}"})),d.wordType&&P.push(p("wordTable.info.wordType",{v:Yr(d.wordType,Ab(p)),defaultValue:"\uC720\uD615: {{v}}"})),P.length?P:null},[d,p]),Y=w||e,R=x.for===Y?x.url:"";s.useEffect(()=>{const P=dr(),M=w||e;if(!P||!M)return;let L=!1;return Promise.resolve(P(M)).then(z=>{!L&&z&&_({for:M,url:z})}),()=>{L=!0}},[w,e]),s.useEffect(()=>()=>{C.current?.pause(),gn?.audio===C.current&&(gn=null)},[]);const H=s.useCallback(async P=>{if(P.stopPropagation(),v){C.current?.pause(),b(!1),gn=null;return}if(R){gn?.stop(),b(!0);try{const M=new Audio(R);C.current=M;const L=()=>{b(!1),gn?.audio===M&&(gn=null)};gn={audio:M,stop:()=>{M.pause(),L()}},M.onended=L,M.onerror=L,await M.play()}catch{b(!1),gn?.audio===C.current&&(gn=null)}}},[v,R]),W=i&&!!D&&!N,le=W&&o?bb:W?vb:yb,q=W&&o?xb:W?wb:_b;return s.useEffect(()=>{const P=m.current;if(!P||typeof ResizeObserver>"u")return;const M=new ResizeObserver(([L])=>{const{width:z,height:$}=L.contentRect;f(Math.min(z/le,$/q))});return M.observe(P),()=>M.disconnect()},[le,q]),t.jsxs("div",{ref:m,className:"word-table-cell",children:[t.jsxs("div",{className:"word-table-cell__inner",style:{transform:`scale(${y})`},children:[W&&t.jsxs("div",{className:"word-table-cell__image-wrap",children:[k&&t.jsx("div",{className:"word-table-cell__spinner"}),t.jsx("img",{ref:B,className:"word-table-cell__image",src:D,alt:e,draggable:!1,style:{opacity:k?0:1},onLoad:I,onError:O})]}),o&&t.jsx("span",{className:"word-table-cell__word h0",children:e}),l&&w&&t.jsxs("span",{className:"word-table-cell__sub h3",children:["[",w,"]"]}),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":R,children:[t.jsx("span",{"data-play-state":"play",style:{display:v?"none":void 0},children:t.jsx(ce,{htmlType:"button",size:u,type:"dot",icon:"play",variant:"transparent-lightGray",useBorder:!1,showTooltipInfo:p("common.play","\uC7AC\uC0DD"),onClick:H})}),t.jsx("span",{"data-play-state":"pause",style:{display:v?void 0:"none"},children:t.jsx(ce,{htmlType:"button",size:u,type:"dot",icon:"pause",useBorder:!1,selected:!0,showTooltipInfo:p("common.pause","\uBA48\uCDA4"),onClick:H})})]}),d&&t.jsxs("div",{ref:h,className:"word-table-cell__info-button",onPointerEnter:E,onPointerLeave:V,onFocus:E,onBlur:V,children:[t.jsx(ce,{htmlType:"button",size:u,type:"dot",icon:"info",variant:"transparent-lightGray",useBorder:!1,showTooltipInfo:!1,ariaLabel:p("wordTable.wordInfo","{{word}} \uB0B1\uB9D0 \uC815\uBCF4",{word:e}),onClick:P=>P.stopPropagation()}),g&&j&&t.jsx(Rn,{anchorRect:g,items:j,showIndex:!1})]})]})}const $l={\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"},Rl={\uACE0\uC720:"native",\uD55C\uC790:"sino",\uC678\uB798:"foreign",\uD63C\uC885:"mixed"};function kb(e){return Object.fromEntries(Object.entries(jl).map(([n,a])=>[n,$l[n]?e(`wordTable.pos.${$l[n]}`,{defaultValue:a}):a]))}function Ab(e){return Object.fromEntries(Object.entries(Tl).map(([n,a])=>[n,Rl[n]?e(`wordSearch.filter.type.${Rl[n]}`,{defaultValue:a}):a]))}function Zn({title:e,titleIcon:n,disc:a,className:r,orientation:o="landscape",contentTypes:i=["\uC774\uBBF8\uC9C0","\uB2E8\uC5B4","\uD45C\uC900 \uBC1C\uC74C"],cutLine:l="\uD45C\uC2DC",showOutline:c=!0,showDivLine:u=!0,items:d,editCells:p,count:m,activeCell:h=null,onActivateCell:C,onRemoveCell:y,onRemoveItem:f,onReorder:v,showFillerAdd:b=!1,contentRef:x,buttonSize:_=40,pageNumber:g,pageNumberPosition:A="right",fitHeight:w=!1,scoring:D=!1,marks:B,onMarkClick:k,scoreIndexOffset:N=0}){const I=s.useCallback((se,Ce)=>{k?.(N+se,Ce)},[k,N]),O=(se,Ce)=>{const Z=B?.[Va(N+se)]??null;return t.jsx("div",{className:ge("word-table-cell__score",Z?"word-table-cell__score--marked":""),children:kl.map(ie=>t.jsx("span",{className:ge("word-table-cell__score-slot",Z===ie?"word-table-cell__score-slot--on":""),children:t.jsx(ce,{htmlType:"button",size:_,type:"dot",icon:Nl[ie],variant:Z===ie?Bl[ie]:"default",selected:Z===ie,useBorder:!1,showTooltipInfo:!1,ariaLabel:E(`wordTable.scoring.${ie}`,{word:Ce,defaultValue:`${Ce} ${ie}`}),onClick:J=>{J.stopPropagation(),I(se,ie)}})},ie))})},{t:E}=pe.useTranslation(),V=p!==void 0,j=s.useRef(null),[Y,R]=s.useState(null),{width:H,height:W}=Yn[o],{scalerRef:le,scale:q,offset:P}=Ml(H,w?W:void 0),M=V?p?.length??0:d?.length??0,L=Math.max(m??M,1),{cols:z,rows:$}=Cb(o,L),T={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")},F=V?(p??[]).some(se=>se!==null&&se.length>1):(d??[]).some(se=>se.words.length>1),oe=ge("word-table-block__content",gb[l],c&&"word-table-block__content--outline",u&&F&&"word-table-block__content--div-line"),ae={transform:`scale(${1/q})`,transformOrigin:"center center"},ee=t.jsx("div",{ref:le,className:"word-table__scaler",style:{height:W*q},children:t.jsx("div",{className:ge("word-table",r),style:{width:H,height:W,transform:`scale(${q})`,transformOrigin:"top left",marginLeft:P},children:t.jsxs("div",{ref:x,className:oe,style:{gridTemplateColumns:`repeat(${z}, 1fr)`,gridTemplateRows:`repeat(${$}, 1fr)`},children:[V?t.jsx(t.Fragment,{children:(p??[]).map((se,Ce)=>t.jsx("div",{className:ge("word-table-block__edit-cell",se?"word-table-block__edit-cell--filled":"word-table-block__edit-cell--empty",h===Ce?"word-table-block__edit-cell--active":""),style:El(Ce,z,$,l),children:se?t.jsxs(t.Fragment,{children:[se.map((Z,ie)=>t.jsxs(s.Fragment,{children:[ie>0&&t.jsx("div",{className:"word-table-block__pair-divider"}),t.jsx(Ll,{label:Z.word,subLabel:Z.pronunciation,colloquialLabel:Z.colloquialPronunciation,homonum:Z.homonum,showWord:T.word,showImage:T.image,showPronunciation:T.pron,showColloquial:T.colloq,buttonSize:_})]},ie)),D&&O(Ce,se.map(Z=>Z.word).join(" / ")),y&&t.jsx("div",{className:"word-table-block__card-close",children:t.jsx(ce,{htmlType:"button",size:_,type:"dot",icon:"x",variant:"transparent-lightGray",useBorder:!1,showTooltipInfo:se.length>1?E("wordPrint.removePair","\uB300\uB9BD\uC30D \uBE7C\uAE30"):E("wordPrint.removeWord","\uB2E8\uC5B4 \uBE7C\uAE30"),ariaLabel:se.length>1?E("wordPrint.removePair","\uB300\uB9BD\uC30D \uBE7C\uAE30"):E("wordPrint.removeWord","\uB2E8\uC5B4 \uBE7C\uAE30"),onClick:()=>y(Ce)})})]}):C&&t.jsx("div",{style:ae,children:t.jsx(ce,{htmlType:"button",size:"48",type:"bar",icon:"plus",label:E("wordTable.addWord","\uCD94\uAC00\uD558\uAE30"),onClick:()=>C(Ce)})})},Ce))}):t.jsxs(t.Fragment,{children:[(d??[]).map((se,Ce)=>t.jsxs("div",{className:`word-table-block__card${v?" word-table-block__card--draggable":""}${Y===Ce?" word-table-block__card--drag-over":""}`,style:El(Ce,z,$,l),draggable:!!v,onDragStart:v?()=>{j.current=Ce}:void 0,onDragOver:v?Z=>{Z.preventDefault(),R(Ce)}:void 0,onDragLeave:v?()=>R(null):void 0,onDrop:v?Z=>{Z.preventDefault(),j.current!==null&&j.current!==Ce&&v(j.current,Ce),j.current=null,R(null)}:void 0,onDragEnd:v?()=>{j.current=null,R(null)}:void 0,children:[se.words.map((Z,ie)=>t.jsxs(s.Fragment,{children:[ie>0&&t.jsx("div",{className:"word-table-block__pair-divider"}),t.jsx(Ll,{label:Z.label,subLabel:Z.subLabel,colloquialLabel:Z.colloquialLabel,homonum:Z.homonum,showWord:T.word,showImage:T.image,showPronunciation:T.pron,showColloquial:T.colloq,buttonSize:_,wordInfo:Z.grade||Z.syllables!=null||Z.pos||Z.wordType?{grade:Z.grade,syllables:Z.syllables,pos:Z.pos,wordType:Z.wordType}:void 0})]},ie)),D&&O(Ce,se.words.map(Z=>Z.label).join(" / ")),f&&t.jsx("div",{className:"word-table-block__card-close",children:t.jsx(ce,{htmlType:"button",size:_,type:"dot",icon:"x",variant:"transparent-lightGray",useBorder:!1,showTooltipInfo:se.words.length>1?E("wordPrint.removePair","\uB300\uB9BD\uC30D \uBE7C\uAE30"):E("wordPrint.removeWord","\uB2E8\uC5B4 \uBE7C\uAE30"),ariaLabel:se.words.length>1?E("wordPrint.removePair","\uB300\uB9BD\uC30D \uBE7C\uAE30"):E("wordPrint.removeWord","\uB2E8\uC5B4 \uBE7C\uAE30"),onClick:()=>f(se.id)})})]},se.id)),Array.from({length:Math.max(0,z*$-(d?.length??0))}).map((se,Ce)=>{const Z=(d?.length??0)+Ce<L;return t.jsx("div",{className:"word-table-block__card word-table-block__card--filler",children:b&&C&&Z&&t.jsx("div",{style:ae,children:t.jsx(ce,{htmlType:"button",size:_,type:"bar",icon:"plus",label:E("wordTable.addWord","\uCD94\uAC00\uD558\uAE30"),onClick:()=>C((d?.length??0)+Ce)})})},`filler-${Ce}`)})]}),g&&A!=="none"&&t.jsx("span",{className:`word-table__page-number body-3 word-table__page-number--${A}`,children:E("wordTable.filter.pageIndicator",{current:g.current,total:g.total})})]})})});return e!=null||n||a?t.jsx(Kn,{type:"page",icon:n,title:e,disc:a,className:ge("word-table-block",r),children:ee}):ee}function bn({title:e,headerAction:n,collapsible:a=!1,defaultCollapsed:r=!1,collapsed:o,onCollapsedChange:i,footer:l,sections:c,selected:u={},onSelect:d,align:p,sectionAlign:m,className:h}){const C=(p??(m==="vertical"?"newline":"inline"))==="inline",{t:y}=pe.useTranslation(),[f,v]=s.useState(r),b=o??f,x=()=>{const g=!b;v(g),i?.(g)},_=e||n||a;return t.jsxs("div",{className:ge("filter-panel",a?"filter-panel--collapsible":"",b?"filter-panel--collapsed":"",h),children:[_&&t.jsxs("div",{className:"filter-panel__header",children:[t.jsxs("div",{className:"filter-panel__title-row",children:[a&&t.jsx(ce,{htmlType:"button",size:40,type:"dot",variant:"transparent-gray",useBorder:!1,icon:b?"chevron-down":"chevron-up",ariaLabel:b?y("common.expand","\uD3BC\uCE58\uAE30"):y("common.collapse","\uC811\uAE30"),"aria-expanded":!b,onClick:x}),e&&t.jsx("span",{className:"filter-panel__title h4",children:e})]}),t.jsx("div",{className:"filter-panel__header-actions",children:!b&&n})]}),!b&&t.jsxs(t.Fragment,{children:[t.jsx("div",{className:ge("filter-panel__sections",C?"filter-panel__sections--row":""),children:c.map(g=>{const A=u[g.label],w=A===void 0||(Array.isArray(A)?A.length===0:!1),D=(g.items??[]).filter(k=>k!=null);g.allOption&&D.some(k=>(typeof k=="string"?k:k.value)===on)&&ea(`filter-panel-all-value:${g.label}`,`[FilterPanel] '${g.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 B=k=>{const N=typeof k=="string"?k:k.value,I=typeof k!="string"&&!!k.disabled,O=typeof k!="string"?k.labels:void 0,E=typeof k!="string"?k.displayLabel:void 0,V=typeof k!="string"?k.tooltip:void 0,j=typeof k!="string"?k.descriptionTooltip:void 0,Y=typeof k!="string"?k.shape:void 0,R=Array.isArray(A)?A.includes(N):A===N;return t.jsx(ce,{htmlType:"button",size:"keyboard",label:O??E??N,type:g.itemType??(O?"bar":N.length===1?"dot":void 0),selected:R,disabled:I,shape:Y,showTooltipInfo:!!V,tooltipInfoText:V,tooltipDescription:j,onClick:()=>d?.(N,g.label)},N)};return t.jsxs(s.Fragment,{children:[g.groupLabel&&t.jsxs("div",{className:"filter-panel__group-label-row",children:[t.jsx("div",{className:"filter-panel__group-label body-2",children:g.groupLabel}),g.groupAction]}),t.jsxs("div",{className:ge("filter-panel__section",g.layout==="row"?"filter-panel__section--row":"",g.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:g.displayLabel??g.label}),g.labelAction??(g.labelInfo?t.jsx(ha,{...g.labelInfo}):null)]}),g.type==="note"?t.jsx("div",{className:"filter-panel__note body-3",children:g.content}):g.type==="input"?t.jsx(Fn,{className:"filter-panel__textfield",placeholder:g.placeholder,ariaLabel:g.displayLabel??g.label,value:u[g.label]??"",onChange:k=>d?.(k,g.label),error:g.error}):!g.multiple&&g.display==="segmented"?t.jsx(On,{ariaLabel:g.displayLabel??g.label,options:[...g.allOption?[{key:on,label:g.allLabel??y("common.all","\uC804\uCCB4"),disabled:g.allOptionDisabled}]:[],...D.map(k=>{const N=typeof k=="string"?k:k.value,I=typeof k!="string"?k.displayLabel:void 0,O=typeof k!="string"?k.disabled:void 0;return{key:N,label:I??N,disabled:O}})],value:w&&g.allOption?on:u[g.label]??"",onChange:k=>d?.(k,g.label),size:32}):!g.multiple&&g.display==="dropdown"?t.jsx(en,{className:"filter-panel__dropdown",size:40,options:[...g.allOption?[{value:on,label:g.allLabel??y("common.all","\uC804\uCCB4"),disabled:g.allOptionDisabled}]:[],...D.map(k=>{const N=typeof k=="string"?k:k.value,I=typeof k!="string"?k.displayLabel:void 0,O=typeof k!="string"?k.disabled:void 0;return{value:N,label:I??N,disabled:O}})],value:w&&g.allOption?on:u[g.label],onChange:k=>d?.(k,g.label)}):t.jsxs("div",{className:g.groups?"filter-panel__item-groups":"filter-panel__items",children:[g.allOption&&!g.groups&&t.jsx(ce,{htmlType:"button",size:"keyboard",label:g.allLabel??y("common.all","\uC804\uCCB4"),selected:w,disabled:g.allOptionDisabled,onClick:()=>d?.(on,g.label)}),g.groups?g.groups.map((k,N)=>t.jsxs("div",{className:"filter-panel__item-group",children:[N===0&&g.allOption&&t.jsx(ce,{htmlType:"button",size:"keyboard",label:g.allLabel??y("common.all","\uC804\uCCB4"),selected:w,disabled:g.allOptionDisabled,onClick:()=>d?.(on,g.label)}),k.filter(I=>I!=null).map(B)]},N)):D.map(B)]})]})]},g.label)})}),l!=null&&l!==!1&&t.jsx("div",{className:"filter-panel__footer body-3",children:l})]})]})}const Nb=[1,2,3,4,5,6,7,8,9,10,11,12],Zr=[8,4,2,1];function Pl(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 Il(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 Fl(e){return{label:e("wordTable.filter.border","\uC678\uACFD\uC120"),items:[{value:"\uD45C\uC2DC",displayLabel:e("wordTable.filter.show","\uD45C\uC2DC")},{value:"\uBBF8\uD45C\uC2DC",displayLabel:e("wordTable.filter.hide","\uBBF8\uD45C\uC2DC")}],display:"segmented"}}function Ol(e){return{label:e("wordTable.filter.cutLine","\uC808\uCDE8\uC120"),items:[{value:"\uD45C\uC2DC",displayLabel:e("wordTable.filter.show","\uD45C\uC2DC")},{value:"\uC810\uC120",displayLabel:e("wordTable.filter.dotted","\uC810\uC120")},{value:"\uCF54\uB108",displayLabel:e("wordTable.filter.corner","\uCF54\uB108")},{value:"\uBBF8\uD45C\uC2DC",displayLabel:e("wordTable.filter.hide","\uBBF8\uD45C\uC2DC")}],display:"segmented"}}function Vl(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 Hl(e,n){return{label:e(n.hasPairs?"wordTable.filter.itemsPerPagePair":"wordTable.filter.itemsPerPageWord"),items:[n.itemCount,...Zr.filter(a=>a<n.itemCount)].map(a=>({value:`${a}\uAC1C`,displayLabel:e("wordTable.filter.itemsPerPageOption",{count:a})})),display:"segmented"}}function zl(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 Wl={left:"\uC67C\uCABD",center:"\uC911\uC559",right:"\uC624\uB978\uCABD",none:"\uBBF8\uD45C\uC2DC"};function ql(e){return e==="\uC67C\uCABD"?"left":e==="\uC911\uC559"?"center":e==="\uC624\uB978\uCABD"?"right":"none"}function Ul(e,n){return{[e("wordTable.filter.composition","\uAD6C\uC131")]:n.contentTypes,[e("wordTable.filter.paperOrientation","\uC6A9\uC9C0 \uBC29\uD5A5")]:n.orientation==="landscape"?"\uAC00\uB85C":"\uC138\uB85C",[e("wordTable.filter.border","\uC678\uACFD\uC120")]:n.showOutline?"\uD45C\uC2DC":"\uBBF8\uD45C\uC2DC",[e("wordTable.filter.cutLine","\uC808\uCDE8\uC120")]:n.cutLine,[e("wordPrint.divLine","\uB300\uB9BD\uC120")]:n.showDivLine?"\uD45C\uC2DC":"\uBBF8\uD45C\uC2DC"}}function Gl(e,n,a,r){return a===e("wordTable.filter.composition","\uAD6C\uC131")?n===on?(r.setContentTypes(()=>[]),!0):(r.setContentTypes(o=>o.includes(n)?o.filter(i=>i!==n):[...o,n]),!0):a===e("wordTable.filter.paperOrientation","\uC6A9\uC9C0 \uBC29\uD5A5")?(r.setOrientation(n==="\uAC00\uB85C"?"landscape":"portrait"),!0):a===e("wordTable.filter.border","\uC678\uACFD\uC120")?(r.setShowOutline(n==="\uD45C\uC2DC"),!0):a===e("wordTable.filter.cutLine","\uC808\uCDE8\uC120")?(r.setCutLine(n),!0):a===e("wordPrint.divLine","\uB300\uB9BD\uC120")?(r.setShowDivLine(n==="\uD45C\uC2DC"),!0):!1}function Bb(e){return"sections"in e}function Xr(e){const{t:n}=pe.useTranslation(),{title:a,className:r}=e;if(Bb(e))return t.jsx(bn,{className:r,title:a??n("wordTable.filterTitle","\uD45C \uC124\uC815"),sections:e.sections,selected:e.selected,onSelect:e.onSelect,align:"inline"});const{hasImage:o,hasColloquial:i,contentTypes:l,orientation:c,showOutline:u,cutLine:d,showDivLine:p,setters:m,showCutLine:h=!1,showDivLine2:C=!1,middleSections:y=[],extraSelected:f={},onExtraSelect:v}=e,b=[Pl(n,{hasImage:o,hasColloquial:i}),Il(n),...y,Fl(n),...h?[Ol(n)]:[],...C?[Vl(n)]:[]],x={...Ul(n,{contentTypes:l,orientation:c,showOutline:u,cutLine:d,showDivLine:p}),...f},_=(g,A)=>{Gl(n,g,A,m)||v?.(g,A)};return t.jsx(bn,{className:r,title:a??n("wordTable.filterTitle","\uD45C \uC124\uC815"),sections:b,selected:x,onSelect:_,sectionAlign:"horizontal"})}function Kl(e){return e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function Jr(e){return e.replace(/[\\/:*?"<>|]/g,"_").trim()}let Ha=null,Xn=null;function Db(e,n,a,r="",o=""){if(e.length===0||Xn&&Xn.iframe.isConnected&&Date.now()-Xn.at<1e4)return;const i=r?Jr(r):"";Ha?.();let l=null;if(i){const d=document.title;document.title=i,l=()=>{document.title=d,window.removeEventListener("afterprint",l),Ha===l&&(Ha=null)},Ha=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 u=c.contentDocument;if(!u){c.remove();return}Xn={iframe:c,at:Date.now()},u.open(),u.write(Qr(e,n,a,!0,i,o)),u.close(),c.contentWindow?.addEventListener("afterprint",()=>{l?.(),setTimeout(()=>{c.remove(),Xn?.iframe===c&&(Xn=null)},0)})}function Qr(e,n,a,r=!1,o="",i=""){o=o?Jr(o):"";const l=Array.from(document.styleSheets).flatMap(p=>{try{return Array.from(p.cssRules).map(m=>m.cssText)}catch{return[]}}).join(`
839
+ `),c="light",u=i?`<div class="paper-head">${Kl(i)}</div>`:"",d=e.map(p=>{const m=p.cloneNode(!0);return m.querySelectorAll('[data-play-state="play"]').forEach(h=>h.style.display=""),m.querySelectorAll('[data-play-state="pause"]').forEach(h=>h.style.display="none"),m.querySelectorAll(".word-table-cell__score-slot:not(.word-table-cell__score-slot--on)").forEach(h=>h.remove()),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">${u}${m.outerHTML}</div>`}).join(`
840
840
  `);return`<!DOCTYPE html>
841
841
  <html data-theme="${c}">
842
842
  <head>
843
843
  <meta charset="utf-8">
844
- ${o?`<title>${Gl(o)}</title>`:""}
844
+ ${o?`<title>${Kl(o)}</title>`:""}
845
845
  <style>${l}</style>
846
846
  <style>
847
847
  * { box-sizing: border-box; }
@@ -967,10 +967,10 @@ ${g.badge}`:g.badge:void 0;if(w&&u(g.code))return null;if(!g.badge&&!p)return m(
967
967
  `:""}
968
968
  <\/script>
969
969
  </body>
970
- </html>`}function Qr({getElements:e,paperW:n,paperH:a,fileName:r="",onPopupBlocked:o,header:i=""}){const l=s.useCallback(()=>{Bb(e(),n,a,r,i)},[e,n,a,r,i]),c=s.useCallback(()=>{const d=e();if(d.length===0)return;const p=window.open("","_blank");if(!p){o?.();return}p.document.write(Jr(d,n,a,!1,r,i)),p.document.close()},[e,n,a,r,o,i]),u=s.useCallback(()=>{const d=e();if(d.length===0)return;const p=Jr(d,n,a,!1,r,i),m=new Blob([p],{type:"text/html;charset=utf-8"}),h=URL.createObjectURL(m),C=r&&Xr(r),y=Object.assign(document.createElement("a"),{href:h,download:`${C}.html`});document.body.appendChild(y),y.click(),document.body.removeChild(y),URL.revokeObjectURL(h)},[e,n,a,r,i]);return{print:l,openNewWindow:c,downloadHtml:u}}function Kl(e){const{t:n}=pe.useTranslation(),[a,r]=s.useState("landscape"),[o,i]=s.useState(["\uC774\uBBF8\uC9C0","\uB2E8\uC5B4","\uD45C\uC900 \uBC1C\uC74C"]),[l,c]=s.useState("\uD45C\uC2DC"),[u,d]=s.useState(!0),[p,m]=s.useState(!0),[h,C]=s.useState(8),[y,f]=s.useState("right"),v=e.length,b=e.some(H=>H.words.length>1),x=e.some(H=>H.words.some(j=>!!j.colloquialLabel)),_=Math.min(h,Math.max(v,1)),g=s.useMemo(()=>Sl(e,_),[e,_]),A=g.length>1,w=_,[S,N]=s.useState(!1);s.useEffect(()=>{let H=!1;if(!Wn()){N(!1);return}return Promise.all(e.flatMap(j=>j.words.map(F=>_s(F.label,F.homonum)))).then(j=>{H||N(j.some(Boolean))},()=>{}),()=>{H=!0}},[e]);const k=s.useMemo(()=>[Rl(n,{hasImage:S,hasColloquial:x}),Pl(n),...v>0?[Hl(n,{hasPairs:b,itemCount:v})]:[],...A?[Vl(n)]:[],Il(n),...w>1?[Fl(n)]:[],...b?[Ol(n)]:[]],[n,S,x,v,b,A,w]),B={...ql(n,{contentTypes:o,orientation:a,showOutline:u,cutLine:l,showDivLine:p}),...v>0?{[n(b?"wordTable.filter.itemsPerPagePair":"wordTable.filter.itemsPerPageWord")]:`${_}\uAC1C`}:{},...A?{[n("wordTable.filter.pageNumber","\uD398\uC774\uC9C0 \uBC88\uD638")]:zl[y]}:{}},V=s.useCallback((H,j)=>{if(!Ul(n,H,j,{setContentTypes:i,setOrientation:r,setShowOutline:d,setCutLine:c,setShowDivLine:m}))if(j===n("wordTable.filter.itemsPerPagePair","\uD398\uC774\uC9C0\uB2F9 \uB300\uB9BD\uC30D \uC218")||j===n("wordTable.filter.itemsPerPageWord","\uD398\uC774\uC9C0\uB2F9 \uB2E8\uC5B4 \uC218")){const F=parseInt(H);C(Yr.includes(F)?F:Number.POSITIVE_INFINITY)}else j===n("wordTable.filter.pageNumber","\uD398\uC774\uC9C0 \uBC88\uD638")&&f(Wl(H))},[n]);return{settings:{orientation:a,contentTypes:o,cutLine:l,showOutline:u,showDivLine:p,count:w},filterSections:k,filterSelected:B,handleSelect:V,pages:g,isPaginated:A,pageNumberPosition:y}}function Sb({items:e,words:n,title:a,subtitle:r,emptyText:o,buttons:i,renderButtons:l,renderFooter:c,footerClassName:u,printFileName:d,showSettings:p,autoPrint:m,className:h,onClose:C,scoring:y=!1,onScoreChange:f,printHeader:v,beforeClose:b}){const{t:x}=pe.useTranslation(),_=s.useMemo(()=>Array.isArray(e)?e:(Array.isArray(n)?n:[]).filter(ee=>typeof ee=="string"&&ee.length>0).map((ee,se)=>({id:`${ee}-${se}`,words:[{label:ee}]})),[e,n]),{settings:g,filterSections:A,filterSelected:w,handleSelect:S,pages:N,isPaginated:k,pageNumberPosition:B}=Kl(_),V=s.useMemo(()=>Bl(N.map(ee=>ee.length)),[N]),[H,j]=s.useState({}),F=s.useCallback((ee,se)=>{j(Ce=>({...Ce,[Oa(ee)]:kl(Ce[Oa(ee)]??null,se)}))},[]),T=s.useRef(f);s.useEffect(()=>{T.current=f});const Y=s.useRef(!0);s.useEffect(()=>{if(Y.current){Y.current=!1;return}T.current?.(Gr(H))},[H]);const R=s.useMemo(()=>Gr(H),[H]),O=s.useRef(null),{toastMessage:W,toastKey:le,showWarning:q,clearToast:P}=wi("warning"),M=s.useRef([]),L=s.useCallback(()=>k?M.current.filter(ee=>ee!==null):O.current?[O.current]:[],[k]),{print:z,openNewWindow:$}=Qr({getElements:L,paperW:Yn[g.orientation].width,paperH:Yn[g.orientation].height,fileName:d??"",header:v??"",onPopupBlocked:()=>q(x("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."))}),E=s.useMemo(()=>c?void 0:l?l({print:z,openNewWindow:$}):d?[{label:x("wordTable.openNewWindow","\uC0C8 \uCC3D\uC73C\uB85C \uBCF4\uAE30"),variant:"default",onClick:()=>$()},{label:x("wordTable.print","\uC778\uC1C4\uD558\uAE30"),variant:"default",onClick:()=>z()},...i??[]]:i,[c,l,d,i,x,z,$]),I=s.useMemo(()=>c?c({print:z,openNewWindow:$}):void 0,[c,z,$]),oe=s.useRef(!1),re=s.useRef(z);return s.useEffect(()=>{re.current=z},[z]),s.useEffect(()=>{if(!m||oe.current)return;const ee=window.setTimeout(()=>{oe.current=!0,re.current()},100);return()=>window.clearTimeout(ee)},[m]),t.jsxs(Nn,{title:a??x("keyWords.title","\uC8FC\uC694 \uB2E8\uC5B4"),subtitle:r,size:"large",className:ge("word-table-popup",h),buttons:E,footer:I,footerClassName:u,beforeClose:b,onClose:C,children:[_.length>0?t.jsxs("div",{className:"word-table-popup__body",children:[p&&t.jsx(Zr,{sections:A,selected:w,onSelect:S}),k?t.jsx("div",{className:"word-table-popup__pages",children:N.map((ee,se)=>t.jsx(Zn,{items:ee,orientation:g.orientation,contentTypes:g.contentTypes,cutLine:g.cutLine,showOutline:g.showOutline,showDivLine:g.showDivLine,count:g.count,contentRef:Ce=>{M.current[se]=Ce},pageNumber:{current:se+1,total:N.length},pageNumberPosition:B,scoring:y,scoreIndexOffset:V[se],marks:R,onMarkClick:F},se))}):t.jsx("div",{className:"word-table-popup__table",children:t.jsx(Zn,{items:_,orientation:g.orientation,contentTypes:g.contentTypes,cutLine:g.cutLine,showOutline:g.showOutline,showDivLine:g.showDivLine,count:g.count,contentRef:O,fitHeight:!0,scoring:y,marks:R,onMarkClick:F})})]}):t.jsx("p",{className:"word-table-popup__empty body-3",children:o??x("keyWords.empty","\uCD94\uCD9C\uB41C \uC8FC\uC694 \uB2E8\uC5B4\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4.")}),t.jsx(Gn,{message:W,position:"top",onClose:P},le)]})}const Db=new Set(["x","triangle"]);function Tb(e,n){const a=[];for(let r=0;r<e.length;r++){const o=n[String(r)];o&&Db.has(o)&&a.push(e[r])}return a}function jb(e,n){const[,a,r]=br(n).split("-"),o=`${a}.${r}`,i=/\s*(?:(\d+)차\s*)?복습\s*\d{2}\.\d{2}$/;let l=e.trim(),c=1;for(;;){const d=i.exec(l);if(!d)break;c=Math.max(c,(d[1]?Number(d[1]):1)+1),l=l.slice(0,d.index).trim()}const u=c>=2?`${c}\uCC28 `:"";return`${l||"\uB2E8\uC5B4\uD45C"} ${u}\uBCF5\uC2B5 ${o}`}function Eb(e,n){const a={};for(const[r,o]of Object.entries(n)){if(o!=="o"&&o!=="triangle"&&o!=="x")continue;const i=Number(r),l=e[i];l&&(a[r]=l)}return a}function Mb(e){return e.map(n=>n.label).join(" / ")}function Lb(e,n,a){const r=Es(a);return[e.trim(),r,n.trim()].filter(Boolean).join(" \xB7 ")}const $b=(()=>{let e=null;return()=>(e||(e=new Intl.Collator("ko")),e)})();function Va(e,n){return $b().compare(e,n)}const Rb=/^-?\d+(\.\d+)?$/,Pb=(()=>{let e=null;return()=>(e||(e=new Intl.Collator("ko",{numeric:!0})),e)})();function Ib(e,n){const a=c=>typeof c=="number"&&!Number.isNaN(c)?c:typeof c=="string"&&Rb.test(c.trim())?Number(c):null,r=a(e),o=a(n);if(r!==null&&o!==null)return r-o;const i=e==null?"":String(e),l=n==null?"":String(n);return/\d\.\d|-\d|(^|\D)0\d/.test(i)||/\d\.\d|-\d|(^|\D)0\d/.test(l)?Va(i,l):Pb().compare(i,l)}function Yl(e,n,a){return a===0?0:(e+n*.5)/a}function Fb(e){const n=new Map,a=[...e].sort((o,i)=>o.scoredAt.localeCompare(i.scoredAt));for(const o of a)for(const[i,l]of Object.entries(o.marks)){const c=o.labels?.[i];if(!c)continue;const u=n.get(c)??{o:0,triangle:0,x:0,latest:l,latestAt:o.scoredAt};if(l==="o")u.o++;else if(l==="triangle")u.triangle++;else if(l==="x")u.x++;else continue;u.latest=l,u.latestAt=o.scoredAt,n.set(c,u)}const r=[];for(const[o,i]of n){const l=i.o+i.triangle+i.x;r.push({label:o,tried:l,o:i.o,triangle:i.triangle,x:i.x,rate:Yl(i.o,i.triangle,l),latest:i.latest,latestAt:i.latestAt})}return r.sort((o,i)=>o.rate-i.rate||i.tried-o.tried||Va(o.label,i.label)),r}function Ob(e){const n=new Map;for(const r of e){const o=r.tableId??`name:${r.tableName}`,i=n.get(o)??{tableName:r.tableName,tableId:r.tableId,rows:[]};i.rows.push(r),n.set(o,i)}const a=[];for(const r of n.values()){const o=c=>Object.values(c.marks).filter(u=>u==="o"||u==="triangle"||u==="x").length,i=r.rows.filter(c=>o(c)>0).sort((c,u)=>c.scoredAt.localeCompare(u.scoredAt));if(i.length===0)continue;const l=i.map(c=>{const u=Object.values(c.marks),d=u.filter(m=>m==="o").length,p=u.filter(m=>m==="triangle").length;return Yl(d,p,o(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,o)=>(o.times[o.times.length-1]??"").localeCompare(r.times[r.times.length-1]??"")),a}function Hb(e,n=8){return e.filter(a=>a.latest!=="o").slice(0,n)}function Vb(e){const n=new Map;let a=0,r=0;const o=[...e].sort((l,c)=>l.answeredAt.localeCompare(c.answeredAt));for(const l of o){if(l.isCorrect==null)continue;const c=l.itemTitle?.trim();if(!c){r++;continue}a++;const u=l.itemId?.trim()||c,d=`${l.trainingType}|${u}`,p=n.get(d)??{trainingType:l.trainingType,itemId:u,title:c,tried:0,wrong:0,latestCorrect:l.isCorrect,latestAt:l.answeredAt,lastSelected:l.selected,setIds:[]};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(d,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||Va(l.title,c.title)),{items:i,counted:a,skippedNoTitle:r}}function zb(e,n=8){return e.filter(a=>!a.latestCorrect).slice(0,n)}function Wb(e){const n=new Map;for(const r of e){const o=n.get(r.trainingType)??[];o.push(r),n.set(r.trainingType,o)}const a=[...n.entries()].map(([r,o])=>({trainingType:r,items:o,pending:o.filter(i=>!i.latestCorrect).length}));return a.sort((r,o)=>o.pending-r.pending||r.trainingType.localeCompare(o.trainingType)),a}const eo=["LISTEN_IN_NOISE","SHORT_STORY","LONG_STORY","ORDERING_SENTENCE"];function qb(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}`,u=n.get(c)??{setId:l,trainingType:i.trainingType,pending:0};u.pending++,n.set(c,u)}const r=(i,l)=>l.pending-i.pending||i.trainingType.localeCompare(l.trainingType)||i.setId.localeCompare(l.setId),o=[...n.values()];return{sentence:o.filter(i=>eo.includes(i.trainingType)).sort(r),word:o.filter(i=>!eo.includes(i.trainingType)).sort(r),noSet:a}}function Ub(e,n,a=5){const r=new Set(n);if(r.size===0)return[];const o=[];for(const i of e){const l=new Set,c=[];for(const u of i.cellLabels)r.has(u)&&!l.has(u)&&(l.add(u),c.push(u));c.length!==0&&o.push({id:i.id,name:i.name,kind:i.kind,covered:c,totalCells:i.cellLabels.length})}return o.sort((i,l)=>l.covered.length-i.covered.length||i.totalCells-l.totalCells||Va(i.name,l.name)),o.slice(0,Math.max(0,a))}function Gb(e,n){const a=new Set(e.flatMap(r=>r.covered));return n.filter(r=>!a.has(r))}function Kb(e,n){const a=new Map;for(const o of e)for(const i of o.cells){const l=o.labelOf(i);a.has(l)||a.set(l,i)}const r=[];for(const o of n){const i=a.get(o);i!==void 0&&r.push(i)}return r}function to(e,n,a){return typeof e=="string"&&e?e:n.replace(/\{\{(\w+)\}\}/g,(r,o)=>String(a[o]))}function Yb(e,n){const a=Number.isFinite(e)?Math.round(e):0;if(!a||a<=0)return"-";const r=Math.floor(a/60),o=a%60;return n?n(r,o):r>0&&o>0?to(Lt.t("customers.duration.minSec",{m:r,s:o,defaultValue:"{{m}}\uBD84 {{s}}\uCD08"}),"{{m}}\uBD84 {{s}}\uCD08",{m:r,s:o}):r>0?to(Lt.t("customers.duration.min",{m:r,defaultValue:"{{m}}\uBD84"}),"{{m}}\uBD84",{m:r}):to(Lt.t("customers.duration.sec",{s:o,defaultValue:"{{s}}\uCD08"}),"{{s}}\uCD08",{s:o})}function Zb(e,n){const a=[],r=new Set;for(const o of e){const i=n(o);r.has(i)||(r.add(i),a.push({key:i,value:o,pinned:!1}))}return a}function Xb(e,n){return e.map(a=>a.key===n?{...a,pinned:!a.pinned}:a)}function Jb(e,n){return e.filter(a=>a.key!==n)}function Qb(e,n,a){const r=e.filter(d=>d.pinned),o=new Set(r.map(d=>d.key)),i=e.length-r.length,l=[],c=new Set(o);for(const d of n){if(l.length>=i)break;const p=a(d);c.has(p)||(c.add(p),l.push({key:p,value:d,pinned:!1}))}const u=[...l];return e.map(d=>d.pinned?d:u.shift()).filter(d=>d!==void 0)}function ey(e){return e.map(n=>n.value)}function ty(e){const{category:n={},isSelected:a=!1,onClick:r}=e||{},o=n?.key?` icon-grid-menu__button--${n.key}`:"",i=s.useId();return t.jsxs("div",{className:`icon-grid-menu__button-wrapper${o}`,children:[t.jsx("button",{className:`icon-grid-menu__button${a?" icon-grid-menu__button--selected":""}`,"data-key":n?.key,type:"button",onClick:a?void 0:r,"aria-pressed":a,"aria-labelledby":i,children:t.jsx(We,{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 ny(e){const{categories:n=[],selected:a,onSelect:r,size:o="medium"}=e||{},i=a!==void 0,[l,c]=s.useState(()=>i?null:(n&&n[0]?.key)??null),u=i?a:l,d=s.useRef(r);s.useEffect(()=>{d.current=r});const p=s.useRef(!1),m=(n&&n[0]?.key)??null;s.useEffect(()=>{if(i||p.current||!m)return;p.current=!0;const C=l??m;l==null&&c(C),d.current?.(C)},[i,m]);const h=s.useCallback(C=>{const y=u===C?null:C;p.current=!0,i||c(y),r?.(y)},[u,i,r]);return t.jsx("div",{className:`icon-grid-menu icon-grid-menu--${o}`,children:(n||[]).map(C=>t.jsx(ty,{category:C,isSelected:u===C.key,onClick:()=>h(C.key)},C.key))})}function ay({subs:e=[],selected:n,onSelect:a,size:r="medium"}){const o=r==="small"?32:40;return t.jsx("div",{className:`choice-chips choice-chips--${r}`,children:t.jsx("div",{className:"choice-chips__list",children:e.map(i=>t.jsx(ce,{htmlType:"button",size:o,type:"bar",label:i.label,selected:n===i.key,className:"choice-chips__button",onClick:()=>a?.(i.key)},i.key))})})}function ry({onTermsClick:e,onPrivacyClick:n,contact:a}={}){const r=a?.email??"support@ihab.co.kr",o=a?.tel??"031-380-3724",{t:i}=pe.useTranslation();return t.jsx("footer",{className:"site-footer",children:t.jsxs("div",{className:"safearea",children:[t.jsxs("div",{className:"site-footer__top",children:[t.jsx("div",{className:"site-footer__brand",children:t.jsx("div",{className:"site-footer__lead h3",children:i("footer.lead",`\uC544\uC774\uD574\uBE0C\uB294 \uC18C\uB9AC\uB97C \uD1B5\uD574
970
+ </html>`}function eo({getElements:e,paperW:n,paperH:a,fileName:r="",onPopupBlocked:o,header:i=""}){const l=s.useCallback(()=>{Db(e(),n,a,r,i)},[e,n,a,r,i]),c=s.useCallback(()=>{const d=e();if(d.length===0)return;const p=window.open("","_blank");if(!p){o?.();return}p.document.write(Qr(d,n,a,!1,r,i)),p.document.close()},[e,n,a,r,o,i]),u=s.useCallback(()=>{const d=e();if(d.length===0)return;const p=Qr(d,n,a,!1,r,i),m=new Blob([p],{type:"text/html;charset=utf-8"}),h=URL.createObjectURL(m),C=r&&Jr(r),y=Object.assign(document.createElement("a"),{href:h,download:`${C}.html`});document.body.appendChild(y),y.click(),document.body.removeChild(y),URL.revokeObjectURL(h)},[e,n,a,r,i]);return{print:l,openNewWindow:c,downloadHtml:u}}function Yl(e){const{t:n}=pe.useTranslation(),[a,r]=s.useState("landscape"),[o,i]=s.useState(["\uC774\uBBF8\uC9C0","\uB2E8\uC5B4","\uD45C\uC900 \uBC1C\uC74C"]),[l,c]=s.useState("\uD45C\uC2DC"),[u,d]=s.useState(!0),[p,m]=s.useState(!0),[h,C]=s.useState(8),[y,f]=s.useState("right"),v=e.length,b=e.some(O=>O.words.length>1),x=e.some(O=>O.words.some(E=>!!E.colloquialLabel)),_=Math.min(h,Math.max(v,1)),g=s.useMemo(()=>Sl(e,_),[e,_]),A=g.length>1,w=_,[D,B]=s.useState(!1);s.useEffect(()=>{let O=!1;if(!Wn()){B(!1);return}return Promise.all(e.flatMap(E=>E.words.map(V=>ws(V.label,V.homonum)))).then(E=>{O||B(E.some(Boolean))},()=>{}),()=>{O=!0}},[e]);const k=s.useMemo(()=>[Pl(n,{hasImage:D,hasColloquial:x}),Il(n),...v>0?[Hl(n,{hasPairs:b,itemCount:v})]:[],...A?[zl(n)]:[],Fl(n),...w>1?[Ol(n)]:[],...b?[Vl(n)]:[]],[n,D,x,v,b,A,w]),N={...Ul(n,{contentTypes:o,orientation:a,showOutline:u,cutLine:l,showDivLine:p}),...v>0?{[n(b?"wordTable.filter.itemsPerPagePair":"wordTable.filter.itemsPerPageWord")]:`${_}\uAC1C`}:{},...A?{[n("wordTable.filter.pageNumber","\uD398\uC774\uC9C0 \uBC88\uD638")]:Wl[y]}:{}},I=s.useCallback((O,E)=>{if(!Gl(n,O,E,{setContentTypes:i,setOrientation:r,setShowOutline:d,setCutLine:c,setShowDivLine:m}))if(E===n("wordTable.filter.itemsPerPagePair","\uD398\uC774\uC9C0\uB2F9 \uB300\uB9BD\uC30D \uC218")||E===n("wordTable.filter.itemsPerPageWord","\uD398\uC774\uC9C0\uB2F9 \uB2E8\uC5B4 \uC218")){const V=parseInt(O);C(Zr.includes(V)?V:Number.POSITIVE_INFINITY)}else E===n("wordTable.filter.pageNumber","\uD398\uC774\uC9C0 \uBC88\uD638")&&f(ql(O))},[n]);return{settings:{orientation:a,contentTypes:o,cutLine:l,showOutline:u,showDivLine:p,count:w},filterSections:k,filterSelected:N,handleSelect:I,pages:g,isPaginated:A,pageNumberPosition:y}}function Sb({items:e,words:n,title:a,subtitle:r,emptyText:o,buttons:i,renderButtons:l,renderFooter:c,footerClassName:u,printFileName:d,showSettings:p,autoPrint:m,className:h,onClose:C,scoring:y=!1,onScoreChange:f,printHeader:v,beforeClose:b}){const{t:x}=pe.useTranslation(),_=s.useMemo(()=>Array.isArray(e)?e:(Array.isArray(n)?n:[]).filter(ee=>typeof ee=="string"&&ee.length>0).map((ee,se)=>({id:`${ee}-${se}`,words:[{label:ee}]})),[e,n]),{settings:g,filterSections:A,filterSelected:w,handleSelect:D,pages:B,isPaginated:k,pageNumberPosition:N}=Yl(_),I=s.useMemo(()=>Dl(B.map(ee=>ee.length)),[B]),[O,E]=s.useState({}),V=s.useCallback((ee,se)=>{E(Ce=>({...Ce,[Va(ee)]:Al(Ce[Va(ee)]??null,se)}))},[]),j=s.useRef(f);s.useEffect(()=>{j.current=f});const Y=s.useRef(O);s.useEffect(()=>{Y.current!==O&&(Y.current=O,j.current?.(Kr(O)))},[O]);const R=s.useMemo(()=>Kr(O),[O]),H=s.useRef(null),{toastMessage:W,toastKey:le,showWarning:q,clearToast:P}=ki("warning"),M=s.useRef([]),L=s.useCallback(()=>k?M.current.filter(ee=>ee!==null):H.current?[H.current]:[],[k]),{print:z,openNewWindow:$}=eo({getElements:L,paperW:Yn[g.orientation].width,paperH:Yn[g.orientation].height,fileName:d??"",header:v??"",onPopupBlocked:()=>q(x("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."))}),T=s.useMemo(()=>c?void 0:l?l({print:z,openNewWindow:$}):d?[{label:x("wordTable.openNewWindow","\uC0C8 \uCC3D\uC73C\uB85C \uBCF4\uAE30"),variant:"default",onClick:()=>$()},{label:x("wordTable.print","\uC778\uC1C4\uD558\uAE30"),variant:"default",onClick:()=>z()},...i??[]]:i,[c,l,d,i,x,z,$]),F=s.useMemo(()=>c?c({print:z,openNewWindow:$}):void 0,[c,z,$]),oe=s.useRef(!1),ae=s.useRef(z);return s.useEffect(()=>{ae.current=z},[z]),s.useEffect(()=>{if(!m||oe.current)return;const ee=window.setTimeout(()=>{oe.current=!0,ae.current()},100);return()=>window.clearTimeout(ee)},[m]),t.jsxs(Nn,{title:a??x("keyWords.title","\uC8FC\uC694 \uB2E8\uC5B4"),subtitle:r,size:"large",className:ge("word-table-popup",h),buttons:T,footer:F,footerClassName:u,beforeClose:b,onClose:C,children:[_.length>0?t.jsxs("div",{className:"word-table-popup__body",children:[p&&t.jsx(Xr,{sections:A,selected:w,onSelect:D}),k?t.jsx("div",{className:"word-table-popup__pages",children:B.map((ee,se)=>t.jsx(Zn,{items:ee,orientation:g.orientation,contentTypes:g.contentTypes,cutLine:g.cutLine,showOutline:g.showOutline,showDivLine:g.showDivLine,count:g.count,contentRef:Ce=>{M.current[se]=Ce},pageNumber:{current:se+1,total:B.length},pageNumberPosition:N,scoring:y,scoreIndexOffset:I[se],marks:R,onMarkClick:V},se))}):t.jsx("div",{className:"word-table-popup__table",children:t.jsx(Zn,{items:_,orientation:g.orientation,contentTypes:g.contentTypes,cutLine:g.cutLine,showOutline:g.showOutline,showDivLine:g.showDivLine,count:g.count,contentRef:H,fitHeight:!0,scoring:y,marks:R,onMarkClick:V})})]}):t.jsx("p",{className:"word-table-popup__empty body-3",children:o??x("keyWords.empty","\uCD94\uCD9C\uB41C \uC8FC\uC694 \uB2E8\uC5B4\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4.")}),t.jsx(Gn,{message:W,position:"top",onClose:P},le)]})}const jb=new Set(["x","triangle"]);function Tb(e,n){const a=[];for(let r=0;r<e.length;r++){const o=n[String(r)];o&&jb.has(o)&&a.push(e[r])}return a}function Eb(e,n){const[,a,r]=yr(n).split("-"),o=`${a}.${r}`,i=/\s*(?:(\d+)차\s*)?복습\s*\d{2}\.\d{2}$/;let l=e.trim(),c=1;for(;;){const d=i.exec(l);if(!d)break;c=Math.max(c,(d[1]?Number(d[1]):1)+1),l=l.slice(0,d.index).trim()}const u=c>=2?`${c}\uCC28 `:"";return`${l||"\uB2E8\uC5B4\uD45C"} ${u}\uBCF5\uC2B5 ${o}`}function Mb(e,n){const a={};for(const[r,o]of Object.entries(n)){if(o!=="o"&&o!=="triangle"&&o!=="x")continue;const i=Number(r),l=e[i];l&&(a[r]=l)}return a}function Lb(e){return e.map(n=>n.label).join(" / ")}function $b(e,n,a){const r=Ms(a);return[e.trim(),r,n.trim()].filter(Boolean).join(" \xB7 ")}const Rb=(()=>{let e=null;return()=>(e||(e=new Intl.Collator("ko")),e)})();function ba(e,n){return Rb().compare(e,n)}const za=new Map;function Pb(e){const n=za.get(e);if(n)return n;const a=[],r=/-?\d+(?:\.\d+)?/g;let o=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>o&&a.push(e.slice(o,l)),a.push(Number(c)),o=i.index+i[0].length}return o<e.length&&a.push(e.slice(o)),za.size>5e3&&za.clear(),za.set(e,a),a}function Ib(e,n){const a=d=>d==null||typeof d=="number"&&Number.isNaN(d)?"":String(d).trim(),r=a(e),o=a(n);if(r===o)return 0;const i=(d,p)=>typeof d=="number"&&!Number.isNaN(d)?[d]:Pb(p),l=i(e,r),c=i(n,o),u=Math.min(l.length,c.length);for(let d=0;d<u;d++){const p=l[d],m=c[d];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=ba(p,m);if(h!==0)return h}return l.length!==c.length?l.length-c.length:ba(r,o)}function Zl(e,n,a){return a===0?0:(e+n*.5)/a}function Fb(e){const n=new Map,a=[...e].sort((o,i)=>o.scoredAt.localeCompare(i.scoredAt));for(const o of a)for(const[i,l]of Object.entries(o.marks)){const c=o.labels?.[i];if(!c)continue;const u=n.get(c)??{o:0,triangle:0,x:0,latest:l,latestAt:o.scoredAt};if(l==="o")u.o++;else if(l==="triangle")u.triangle++;else if(l==="x")u.x++;else continue;u.latest=l,u.latestAt=o.scoredAt,n.set(c,u)}const r=[];for(const[o,i]of n){const l=i.o+i.triangle+i.x;r.push({label:o,tried:l,o:i.o,triangle:i.triangle,x:i.x,rate:Zl(i.o,i.triangle,l),latest:i.latest,latestAt:i.latestAt})}return r.sort((o,i)=>o.rate-i.rate||i.tried-o.tried||ba(o.label,i.label)),r}function Ob(e){const n=new Map;for(const r of e){const o=r.tableId??`name:${r.tableName}`,i=n.get(o)??{tableName:r.tableName,tableId:r.tableId,rows:[]};i.rows.push(r),n.set(o,i)}const a=[];for(const r of n.values()){const o=c=>Object.values(c.marks).filter(u=>u==="o"||u==="triangle"||u==="x").length,i=r.rows.filter(c=>o(c)>0).sort((c,u)=>c.scoredAt.localeCompare(u.scoredAt));if(i.length===0)continue;const l=i.map(c=>{const u=Object.values(c.marks),d=u.filter(m=>m==="o").length,p=u.filter(m=>m==="triangle").length;return Zl(d,p,o(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,o)=>(o.times[o.times.length-1]??"").localeCompare(r.times[r.times.length-1]??"")),a}function Vb(e,n=8){return e.filter(a=>a.latest!=="o").slice(0,n)}function Hb(e){const n=new Map;let a=0,r=0;const o=[...e].sort((l,c)=>l.answeredAt.localeCompare(c.answeredAt));for(const l of o){if(l.isCorrect==null)continue;const c=l.itemTitle?.trim();if(!c){r++;continue}a++;const u=l.itemId?.trim()||c,d=`${l.trainingType}|${u}`,p=n.get(d)??{trainingType:l.trainingType,itemId:u,title:c,tried:0,wrong:0,latestCorrect:l.isCorrect,latestAt:l.answeredAt,lastSelected:l.selected,setIds:[]};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(d,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||ba(l.title,c.title)),{items:i,counted:a,skippedNoTitle:r}}function zb(e,n=8){return e.filter(a=>!a.latestCorrect).slice(0,n)}function Wb(e){const n=new Map;for(const r of e){const o=n.get(r.trainingType)??[];o.push(r),n.set(r.trainingType,o)}const a=[...n.entries()].map(([r,o])=>({trainingType:r,items:o,pending:o.filter(i=>!i.latestCorrect).length}));return a.sort((r,o)=>o.pending-r.pending||r.trainingType.localeCompare(o.trainingType)),a}const to=["LISTEN_IN_NOISE","SHORT_STORY","LONG_STORY","ORDERING_SENTENCE"];function qb(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}`,u=n.get(c)??{setId:l,trainingType:i.trainingType,pending:0};u.pending++,n.set(c,u)}const r=(i,l)=>l.pending-i.pending||i.trainingType.localeCompare(l.trainingType)||i.setId.localeCompare(l.setId),o=[...n.values()];return{sentence:o.filter(i=>to.includes(i.trainingType)).sort(r),word:o.filter(i=>!to.includes(i.trainingType)).sort(r),noSet:a}}function Ub(e,n,a=5){const r=new Set(n);if(r.size===0)return[];const o=[];for(const i of e){const l=new Set,c=[];for(const u of i.cellLabels)r.has(u)&&!l.has(u)&&(l.add(u),c.push(u));c.length!==0&&o.push({id:i.id,name:i.name,kind:i.kind,covered:c,totalCells:i.cellLabels.length})}return o.sort((i,l)=>l.covered.length-i.covered.length||i.totalCells-l.totalCells||ba(i.name,l.name)),o.slice(0,Math.max(0,a))}function Gb(e,n){const a=new Set(e.flatMap(r=>r.covered));return n.filter(r=>!a.has(r))}function Kb(e,n){const a=new Map;for(const o of e)for(const i of o.cells){const l=o.labelOf(i);a.has(l)||a.set(l,i)}const r=[];for(const o of n){const i=a.get(o);i!==void 0&&r.push(i)}return r}function no(e,n,a){return typeof e=="string"&&e?e:n.replace(/\{\{(\w+)\}\}/g,(r,o)=>String(a[o]))}function Yb(e,n){const a=Number.isFinite(e)?Math.round(e):0;if(!a||a<=0)return"-";const r=Math.floor(a/60),o=a%60;return n?n(r,o):r>0&&o>0?no(Lt.t("customers.duration.minSec",{m:r,s:o,defaultValue:"{{m}}\uBD84 {{s}}\uCD08"}),"{{m}}\uBD84 {{s}}\uCD08",{m:r,s:o}):r>0?no(Lt.t("customers.duration.min",{m:r,defaultValue:"{{m}}\uBD84"}),"{{m}}\uBD84",{m:r}):no(Lt.t("customers.duration.sec",{s:o,defaultValue:"{{s}}\uCD08"}),"{{s}}\uCD08",{s:o})}function Zb(e,n){const a=[],r=new Set;for(const o of e){const i=n(o);r.has(i)||(r.add(i),a.push({key:i,value:o,pinned:!1}))}return a}function Xb(e,n){return e.map(a=>a.key===n?{...a,pinned:!a.pinned}:a)}function Jb(e,n){return e.filter(a=>a.key!==n)}function Qb(e,n,a){const r=e.filter(d=>d.pinned),o=new Set(r.map(d=>d.key)),i=e.length-r.length,l=[],c=new Set(o);for(const d of n){if(l.length>=i)break;const p=a(d);c.has(p)||(c.add(p),l.push({key:p,value:d,pinned:!1}))}const u=[...l];return e.map(d=>d.pinned?d:u.shift()).filter(d=>d!==void 0)}function ey(e){return e.map(n=>n.value)}function ty(e){const{category:n={},isSelected:a=!1,onClick:r}=e||{},o=n?.key?` icon-grid-menu__button--${n.key}`:"",i=s.useId();return t.jsxs("div",{className:`icon-grid-menu__button-wrapper${o}`,children:[t.jsx("button",{className:`icon-grid-menu__button${a?" icon-grid-menu__button--selected":""}`,"data-key":n?.key,type:"button",onClick:a?void 0:r,"aria-pressed":a,"aria-labelledby":i,children:t.jsx(qe,{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 ny(e){const{categories:n=[],selected:a,onSelect:r,size:o="medium"}=e||{},i=a!==void 0,[l,c]=s.useState(()=>i?null:(n&&n[0]?.key)??null),u=i?a:l,d=s.useRef(r);s.useEffect(()=>{d.current=r});const p=s.useRef(!1),m=(n&&n[0]?.key)??null;s.useEffect(()=>{if(i||p.current||!m)return;p.current=!0;const C=l??m;l==null&&c(C),d.current?.(C)},[i,m]);const h=s.useCallback(C=>{const y=u===C?null:C;p.current=!0,i||c(y),r?.(y)},[u,i,r]);return t.jsx("div",{className:`icon-grid-menu icon-grid-menu--${o}`,children:(n||[]).map(C=>t.jsx(ty,{category:C,isSelected:u===C.key,onClick:()=>h(C.key)},C.key))})}function ay({subs:e=[],selected:n,onSelect:a,size:r="medium"}){const o=r==="small"?32:40;return t.jsx("div",{className:`choice-chips choice-chips--${r}`,children:t.jsx("div",{className:"choice-chips__list",children:e.map(i=>t.jsx(ce,{htmlType:"button",size:o,type:"bar",label:i.label,selected:n===i.key,className:"choice-chips__button",onClick:()=>a?.(i.key)},i.key))})})}function ry({onTermsClick:e,onPrivacyClick:n,contact:a}={}){const r=a?.email??"support@ihab.co.kr",o=a?.tel??"031-380-3724",{t:i}=pe.useTranslation();return t.jsx("footer",{className:"site-footer",children:t.jsxs("div",{className:"safearea",children:[t.jsxs("div",{className:"site-footer__top",children:[t.jsx("div",{className:"site-footer__brand",children:t.jsx("div",{className:"site-footer__lead h3",children:i("footer.lead",`\uC544\uC774\uD574\uBE0C\uB294 \uC18C\uB9AC\uB97C \uD1B5\uD574
971
971
  \uC2E0\uB8B0\uB97C \uC313\uACE0
972
972
  \uD68C\uBCF5\uC744 \uB3D5\uC2B5\uB2C8\uB2E4.`).split(`
973
- `).map((l,c,u)=>t.jsxs(s.Fragment,{children:[l,c<u.length-1&&t.jsx("br",{})]},c))})}),t.jsxs("div",{className:"site-footer__links",children:[t.jsxs("div",{className:"site-footer__column",children:[t.jsx("div",{className:"site-footer__column-title footer-title",children: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:Tr,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 ",o]})]})]})]}),t.jsx("div",{className:"site-footer__copyright footer-copyright caption-1",children:"\xA9 IHAB, Inc. All rights reserved."})]})})}function oy({logo:e,logoAlt:n="",logoHref:a,links:r=[],actions:o,className:i,containerClassName:l,renderLink:c,menuLabel:u}){const{t:d}=pe.useTranslation(),p=u??{open:d("header.menuOpen","\uBA54\uB274 \uC5F4\uAE30"),close:d("header.menuClose","\uBA54\uB274 \uB2EB\uAE30")},[m,h]=s.useState(!1),C=s.useId();s.useEffect(()=>{if(!m)return;const v=$n(()=>h(!1)),b=typeof window<"u"&&window.matchMedia?window.matchMedia("(min-width: 961px)"):null,x=_=>{_.matches&&h(!1)};return b&&(b.matches&&h(!1),b.addEventListener?.("change",x)),()=>{v(),b?.removeEventListener?.("change",x)}},[m]);const y=l?`${l} landing-header__inner`:"landing-header__inner",f=(v,b)=>c?c(v,{onClick:b}):t.jsx("a",{href:v.href,onClick:b,"aria-current":v.current?"page":void 0,children:v.label});return t.jsxs("header",{className:i?`landing-header ${i}`:"landing-header",children:[t.jsxs("div",{className:y,children:[e!=null&&(()=>{const v=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:v}):t.jsx("div",{className:"landing-header__brand",children:v})})(),r.length>0&&t.jsx("nav",{className:"landing-header__links",children:r.map(v=>t.jsx("span",{children:f(v)},v.href))}),t.jsxs("div",{className:"landing-header__actions",children:[o,r.length>0&&t.jsx("button",{type:"button",onClick:()=>h(v=>!v),"aria-expanded":m,"aria-controls":C,"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:C,hidden:!m,className:"landing-header__drawer",children:t.jsx("div",{className:l??void 0,children:r.map(v=>t.jsx("span",{className:"landing-header__drawer-item",children:f(v,()=>h(!1))},v.href))})})]})}function sy({children:e,action:n,onClick:a,className:r}){const o=a?"bottom-sticky__inner bottom-sticky__inner--clickable":"bottom-sticky__inner";return t.jsx("div",{className:r?`bottom-sticky ${r}`:"bottom-sticky",children:t.jsxs("div",{className:o,onClick:a,...yl(a),children:[t.jsx("div",{className:"bottom-sticky__content",children:e}),n]})})}const Jn=9,iy=e=>Math.round(Math.min(Jn,Math.max(0,e))/Jn*100),ly=e=>e/100*Jn,za=2,Zl=.1,Xl=e=>Math.min(za,Math.max(0,e)),cy=e=>Math.round(e*10)/10;function ba(e){const{noiseRatio:n}=e;if(typeof n=="number"&&Number.isFinite(n))return Xl(n);const a=Math.min(Jn,Math.max(0,Number(e.level)||0))/Jn,r=Number(e.mainVolume);return r>0?cy(Xl(a/r)):1}const Jl=e=>Math.min(1,Math.max(0,Number(e.mainVolume)||0));function Ql(e){return Jl(e)}function no(e){return Jl(e)*ba(e)}function ao(e,n=Cs()){const a=Number.isFinite(n)&&n>0?n:1;return Math.min(1,no(e)/a)}function ya(e,n){const a={...e,...n??{}};return n&&"level"in n&&typeof n.noiseRatio!="number"&&(a.noiseRatio=ba({level:a.level,mainVolume:a.mainVolume})),a}const va={enabled:!0,type:"defaultNoise",level:4.5,noiseRatio:1,speed:1,mainVolume:1,mainSpeed:1},ro=s.createContext(null);function Wa(){return s.useContext(ro)}const oo=e=>`${Qh()}/${e}`,ec=e=>Array.from({length:10},(n,a)=>oo(`${e}-${String(a+1).padStart(2,"0")}.mp3`)),qa={get defaultNoise(){return oo("noise1.mp3")},get street(){return ec("noise2")},get restaurant(){return ec("noise3")},get buzz(){return oo("noise4.mp3")}};function uy(e){const n=Math.floor(Math.random()*10);switch(e){case"defaultNoise":return qa.defaultNoise;case"street":return qa.street[n];case"restaurant":return qa.restaurant[n];case"buzz":return qa.buzz;default:return null}}function dy({noisePlayer:e,audioRef:n,playbackStateRef:a}){const r=s.useRef(e?.registerAnalyser);r.current=e?.registerAnalyser;const o=s.useRef(null),[i,l]=s.useState(null),c=s.useRef(null),u=s.useRef(null),d=s.useRef(null),p=s.useRef(null),m=s.useRef(0),h=s.useRef(null),C=s.useCallback(()=>{p.current!==null&&(cancelAnimationFrame(p.current),p.current=null),h.current!==null&&(clearTimeout(h.current),h.current=null)},[]),y=s.useCallback((x,_=250)=>{const g=o.current;if(!g)return;const A=u.current;if(A){u.current=null;try{g.pause()}catch{}g.src=A,g.load()}if(!g.src)return;m.current+=1,C();try{mr(),ka(g).then(k=>{if(o.current===g)try{r.current?.("noise",k)}catch{}})}catch{}const w=g.paused?0:Aa(g);g.paused&&_n(g,0),g.play().catch(()=>{});const S=performance.now(),N=()=>{const k=Math.min(1,(performance.now()-S)/_);try{_n(g,w+(x-w)*k)}catch{}k<1?p.current=requestAnimationFrame(N):p.current=null};p.current=requestAnimationFrame(N)},[C]),f=s.useCallback((x=250,_)=>{const g=o.current;if(!g||g.paused){_?.();return}const A=++m.current;C();const w=performance.now(),S=Aa(g),N=()=>{const k=Math.min(1,(performance.now()-w)/x);try{_n(g,S*(1-k))}catch{}if(k<1)p.current=requestAnimationFrame(N);else{p.current=null,h.current!==null&&(clearTimeout(h.current),h.current=null);try{g.pause()}catch{}_?.()}};p.current=requestAnimationFrame(N),h.current=setTimeout(()=>{if(h.current=null,m.current===A){p.current!==null&&(cancelAnimationFrame(p.current),p.current=null);try{g.paused||(_n(g,0),g.pause(),_?.())}catch{}}},x+150)},[C]);s.useEffect(()=>{const x=document.createElement("audio");return x.loop=!0,x.crossOrigin="anonymous",o.current=x,()=>{C();try{x.pause(),x.src=""}catch{}o.current=null,c.current=null,u.current=null}},[C]);const v=e?ao(e.settings):0,b=!!e?.settings.enabled&&v>0;return s.useEffect(()=>{if(!b)return;let x=0;const _=setInterval(()=>{const g=o.current;if(!g||g.paused){x=0;return}const A=n.current;if(A&&!A.paused&&!A.ended||a.current==="playing"){x=0;return}x+=1,x>=2&&(x=0,f())},400);return()=>clearInterval(_)},[f,b,n,a]),s.useEffect(()=>{const x=()=>{if(!document.hidden)return;const _=o.current;if(_&&!_.paused){C();try{_.pause()}catch{}}};return document.addEventListener("visibilitychange",x),()=>document.removeEventListener("visibilitychange",x)},[C]),s.useEffect(()=>{d.current=e?{enabled:e.settings.enabled,volume:v,type:e.settings.type}:null},[e,e?.settings.enabled,v,e?.settings.type]),s.useEffect(()=>{const x=e?.settings,_=o.current;if(!_)return;const g=x?ao(x):0;if(!x||!x.enabled||g===0){f();return}if(c.current!==x.type){const A=uy(x.type);A&&(c.current=x.type,l(A),u.current=A,f(150,()=>{if(u.current!==A)return;u.current=null,_.src=A,_.load();const w=n.current;w&&!w.paused&&_.addEventListener("canplay",function S(){_.removeEventListener("canplay",S);const N=n.current;N&&!N.paused&&!N.ended&&y(g)})}))}else{const A=n.current,w=!!A&&!A.paused&&!A.ended;if(w&&_.paused&&_.src)y(g);else if(!_.paused)if(!w)f();else{C();const S=Aa(_),N=performance.now(),k=()=>{const B=Math.min(1,(performance.now()-N)/150);try{_n(_,S+(g-S)*B)}catch{}B<1?p.current=requestAnimationFrame(k):p.current=null};p.current=requestAnimationFrame(k)}}},[e?.settings,e?.settings.enabled,v,e?.settings.type,C,y,f,n]),s.useEffect(()=>{const x=o.current;if(x)try{x.playbackRate=Math.min(1.25,Math.max(.75,e?.settings.speed??1))}catch{}},[e?.settings.speed]),{noiseAudioRef:o,activeNoiseUrl:i,noiseSettingsRef:d,cancelNoiseFade:C,fadeInNoise:y,fadeOutNoise:f}}function py({ttsText:e,playbackRate:n,mainVolume:a,fillRef:r,waveProgressRef:o,setProgress:i,setPlaybackState:l,setStateLocal:c,fadeInNoise:u,fadeOutNoise:d,noiseSettingsRef:p,onDoneRef:m,handleEndRef:h}){const C=s.useRef(null),y=s.useRef(0),f=s.useRef(null),v=s.useRef(0),b=s.useRef(!1);s.useEffect(()=>()=>{v.current++;try{if(f.current&&(cancelAnimationFrame(f.current),f.current=null),b.current&&window.speechSynthesis){try{window.speechSynthesis.cancel()}catch{}b.current=!1}}catch{}},[]);const x=(A,w=1)=>{try{const S=(A||"").trim().split(/\s+/).filter(Boolean).length||Math.max(1,(A||"").length);return Math.max(700,Math.round(S*300/Math.max(.25,w)))}catch{return 1200}},_=s.useCallback(A=>{if(typeof window>"u"||!window.speechSynthesis){try{typeof m.current=="function"&&m.current(!0)}catch{}return}const w=window.speechSynthesis,S=++v.current;try{try{w.cancel()}catch{}const N=A??e,k=(Array.isArray(N)?N[0]??"":N)||"",B=new SpeechSynthesisUtterance(k);try{B.rate=Math.max(.3,Math.min(3,n))}catch{}try{B.volume=Math.max(0,Math.min(1,a))}catch{}y.current=x(k,B.rate||1),C.current=performance.now(),i(0),l("playing"),c("playMode");const V=p.current;V?.enabled&&(V?.volume??0)>0&&u(V.volume);const H=()=>{try{const j=C.current||performance.now(),F=performance.now()-j,T=y.current||1200,Y=Math.min(1,F/T);try{r.current&&(r.current.style.left=`${Y*100}%`),o.current&&o.current.style.setProperty("--progress",String(Y))}catch{}Y<1&&(f.current=requestAnimationFrame(H))}catch{}};B.onend=()=>{if(S===v.current)try{f.current&&(cancelAnimationFrame(f.current),f.current=null),i(1),l("stopped");try{h.current?.()}catch{try{typeof m.current=="function"&&m.current(!0)}catch{}}}catch{}},B.onerror=()=>{B.onend?.(new Event("end"))},B.onstart=()=>{try{f.current&&(cancelAnimationFrame(f.current),f.current=null),f.current=requestAnimationFrame(H)}catch{}};try{b.current=!0,w.speak(B)}catch{try{typeof m.current=="function"&&m.current(!0)}catch{}}}catch{try{typeof m.current=="function"&&m.current(!0)}catch{}}},[e,n,a,u,r,o,i,l,c,p,m,h]),g=s.useCallback(()=>{v.current++;try{if(window.speechSynthesis)try{window.speechSynthesis.cancel()}catch{}f.current&&(cancelAnimationFrame(f.current),f.current=null),d(),C.current=null}catch{}l("stopped"),c("active"),i(0)},[d,l,c,i]);return{startTTS:_,stopTTS:g}}async function my(e,n,a){let r=null;try{const o=window.AudioContext||window.webkitAudioContext;r=new o;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,u=Math.max(n,c),d=Math.floor(u/n)||1;return new Array(n).fill(0).map((p,m)=>{const h=m*d,C=Math.min(h+d,u);let y=0;for(let f=h;f<C;f++){const v=Math.abs(l[f]);v>y&&(y=v)}return y})}catch{return null}finally{try{r?.close?.()}catch{}}}async function tc(e,n,a){try{const r=await fetch(e);if(r.ok===!1)return null;const o=await r.arrayBuffer();return await my(o,n,a)}catch(r){try{const o=Ns(r)}catch{}return null}}const nc=45,hy=74,fy=2;function xa(e){const n=Math.min(2,Math.max(0,Number(e)||0));return n<=1?n*45:45+(n-1)*29}function so(e){return xa(e)/45}const ac=4;function Cy(e){const{src:n,segments:a,progress:r=0,waveProgressRef:o,noiseSrc:i,noiseRatio:l=0,noiseSpeed:c=1,totalDuration:u=0,mainVolume:d=1,onReadyChange:p,showSoundWaveForm:m=!0}=e,h=s.useRef(null),C=s.useRef(null),[y,f]=s.useState(null),[v,b]=s.useState(!1),[x,_]=s.useState(null),[g,A]=s.useState(2),[w,S]=s.useState(0),[N,k]=s.useState(null),[B,V]=s.useState(!1),H=3,j=3,F=1,T=300,Y=s.useRef(0),R=s.useCallback(async(re,ee)=>{const se=++Y.current,Ce=()=>Y.current===se;try{if(b(!1),!re){Ce()&&f(null);return}let Z=ee;if(!Z)try{for(let te=0;te<4&&!(h.current||C.current);te++)await new Promise(_e=>requestAnimationFrame(_e));await new Promise(te=>requestAnimationFrame(te));const J=h.current,be=C&&C.current?C.current:J?J.closest(".audio-player__wave"):null,ve=be?be.getBoundingClientRect():J?J.getBoundingClientRect():null,Te=ve?Math.max(100,ve.width):320,de=ve?ve.height:0;de>0&&S(de),Z=Math.max(F,Math.min(T,Math.floor((Te+j)/(H+j))));const ye=Z*H,we=Math.max(0,Z-1),Q=we>0?(Te-ye)/we:j;A(Math.max(0,Q))}catch{Z=120}const ie=await tc(re,Z);if(!Ce())return;if(!ie){f(null),b(!1);return}f(ie),_(Z),b(!0)}catch{if(!Ce())return;f(null),b(!1)}},[b,f,S,A,_]);s.useEffect(()=>{const re=a&&a[0]&&a[0].src||n||a&&a.length===1&&a[0]&&a[0].src;R(typeof re=="string"?re:void 0).catch(()=>{}),V(!1)},[n,a,R]),s.useEffect(()=>{let re=!1;if(!i||!x){k(null);return}const ee=u>0?u*(c||1):void 0;return tc(i,x,ee).then(se=>{re||k(se)}).catch(()=>{re||k(null)}),()=>{re=!0}},[i,x,u,c]);const O=Math.max(0,Math.min(1,d)),W=s.useMemo(()=>y&&y.length&&Math.max(...y)||1,[y]),le=x||40,q=s.useMemo(()=>Array.from({length:le}).map((re,ee)=>{const se=y&&y[ee]!=null?y[ee]:null,Ce=se==null?null:Math.min(1,se/W*O),Z=Ce!=null&&w>0&&xa(Ce)<=ac,ie=Ce==null?.15:Z?0:so(Ce),J=le>1?ee/(le-1):0;return t.jsx("div",{className:Z?"audio-player__bar audio-player__bar--hidden":"audio-player__bar",style:{"--val":ie,"--i":ee,"--mix":J}},ee)}),[le,y,W,O,w]),P={"--progress":String(Math.max(0,Math.min(1,r)))},M=i?Math.max(1,l):1,L={"--bar-gap":`${g}px`,"--wave-h":`${xa(M)}px`,"--wave-h1":`${nc}px`},z=O*Math.max(0,l)/Cs(),$=v&&(i?!!N:!0);s.useEffect(()=>{$&&V(!0)},[$]);const E=B?v:$;s.useEffect(()=>{p?.(E)},[E,p]);const I=x||40,oe=s.useMemo(()=>Array.from({length:I}).map((re,ee)=>{const se=N&&N[ee]!=null?N[ee]:null,Ce=se==null?0:se/W*z,Z=w>0&&xa(Ce)<=ac,ie=Z?0:so(Ce),J=I>1?ee/(I-1):0;return t.jsx("div",{className:Z?"audio-player__bar audio-player__bar--hidden":"audio-player__bar",style:{"--val":ie,"--i":ee,"--mix":J}},ee)}),[I,N,W,z,w]);return t.jsxs("div",{className:"audio-player__wave",ref:C,style:L,children:[i&&t.jsx("div",{className:`audio-player__wave-noise ${$?"is-ready":""}`,"aria-hidden":"true",children:oe}),m&&t.jsxs(t.Fragment,{children:[t.jsx("div",{className:`audio-player__wave-inner audio-player__wave-unplayed ${E?"is-ready":""}`,ref:h,children:q}),t.jsx("div",{className:`audio-player__wave-inner audio-player__wave-played ${E?"is-ready":""}`,ref:o,style:P,children:q})]})]})}const gy={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 io(e,n){return new Promise((a,r)=>{const o=document.createElement("audio");let i=!1;const l=()=>{try{o.src=""}catch{}},c=()=>{if(i)return;i=!0;const d=isFinite(o.duration)&&o.duration||0;l(),a(d)},u=d=>{i||(i=!0,l(),n.rejectOnError?r(new Error(d)):a(0))};o.addEventListener("loadedmetadata",c),o.addEventListener("error",()=>u("audio load failed")),setTimeout(()=>u("audio load timeout"),n.timeoutMs),o.src=e})}const by=2e3;function rc(e,n=by){return new Promise(a=>{let r=!1;const o=()=>{r||(r=!0,a())};e.addEventListener("canplay",o,{once:!0}),e.addEventListener("error",o,{once:!0}),setTimeout(o,n)})}function yy({showSoundWaveForm:e,showNoiseWaveForm:n,timeoutMs:a=2500}){const r=s.useRef(!1),o=s.useRef([]),i=s.useCallback(u=>{if(r.current=u,!u||!o.current.length)return;const d=o.current;o.current=[];for(const p of d)p()},[]),l=s.useCallback(()=>{r.current=!1},[]),c=s.useCallback(()=>!e&&!n||r.current?Promise.resolve():new Promise(u=>{const d=setTimeout(u,a);o.current.push(()=>{clearTimeout(d),u()})}),[e,n,a]);return s.useEffect(()=>()=>{const u=o.current;o.current=[];for(const d of u)d()},[]),{onReadyChange:i,waitForReady:c,markNotReady:l}}function vy(){const e=s.useRef([]),n=s.useCallback(o=>(e.current.push(o),o),[]),a=s.useCallback(o=>{const i=new Set([...o].filter(Boolean));e.current=e.current.filter(l=>{if(i.has(l))return!0;try{URL.revokeObjectURL(l)}catch{}return!1})},[]),r=s.useCallback(()=>{a([])},[a]);return s.useEffect(()=>()=>{for(const o of e.current)try{URL.revokeObjectURL(o)}catch{}e.current=[]},[]),{track:n,keepOnly:a,revokeAll:r}}function xy({offsetY:e=8}={}){const n=s.useRef(null),[a,r]=s.useState(null),o=s.useCallback(()=>r(null),[]),i=s.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 s.useEffect(()=>{if(a)return document.addEventListener("mousedown",o),()=>document.removeEventListener("mousedown",o)},[a,o]),{ref:n,rect:a,show:i,hide:o}}function _y({currentTime:e,sources:n,index:a,audioDuration:r}){const o=a||0,i=Array.isArray(n)&&n.length>0?n[o]: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 wy(e,n){if(!Array.isArray(e))return null;const a=n||0;return a<e.length-1?a+1:null}function ky({ended:e,completedByEnd:n}){return!!e||!!n}function Ay(e){return e.map((n,a)=>({src:n.src,label:String(a+1),color:void 0,duration:n.duration||0}))}function Ny(e){return e.reduce((n,a)=>n+(a.duration||0),0)}function By(e,n,a){const r=Array.isArray(e)?e:e?[e]:[],o=[];for(const i of r)if(i){if(typeof i=="object"&&i!==null&&"src"in i&&i.src){const l=i;o.push({code:l.code??null,src:l.src});continue}if(typeof i=="string"&&(i.startsWith("http")||i.includes("/"))){o.push({code:null,src:i});continue}if(typeof i=="string"||typeof i=="number"){const l=String(i),c=a(l,n);c&&o.push({code:l,resolvedPath:c})}}return o}function Sy({audioRef:e,fillRef:n,waveProgressRef:a,sourcesRef:r,currentIndexRef:o}){const i=s.useRef(null),l=s.useCallback(()=>{i.current!==null&&(cancelAnimationFrame(i.current),i.current=null)},[]),c=s.useCallback(()=>{if(i.current!==null)return;const d=()=>{try{const p=e.current,m=_y({currentTime:p&&typeof p.currentTime=="number"?p.currentTime:0,sources:r.current,index:o.current,audioDuration:p&&p.duration?p.duration:0});try{n.current&&(n.current.style.left=`${m*100}%`)}catch{}try{a.current?.style.setProperty("--progress",String(m))}catch{}}catch{}i.current=requestAnimationFrame(d)};i.current=requestAnimationFrame(d)},[e,n,a,r,o]),u=s.useCallback(d=>{l();try{n.current&&(n.current.style.left=`${d*100}%`)}catch{}try{a.current?.style.setProperty("--progress",String(d))}catch{}},[l,n,a]);return s.useEffect(()=>l,[l]),{start:c,stop:l,settleTo:u}}function lo({btnLabel:e,soundSrc:n,bucketPath:a,onDone:r,disabled:o=!1,ttsText:i=null,className:l,showSoundWaveForm:c=!0,showNoiseWaveForm:u=!0}){const{t:d}=pe.useTranslation(),p=e,m=Wa(),h=s.useRef(m?.registerAnalyser);s.useEffect(()=>{h.current=m?.registerAnalyser});const C=s.useRef(null),y=s.useRef(null),f=s.useRef(null),v=vy(),b=s.useRef(null),x=s.useRef(!1),_=s.useRef(0),g=s.useRef(null),{ref:A,rect:w,show:S,hide:N}=xy();s.useEffect(()=>()=>{h.current?.("main",null),h.current?.("noise",null)},[]);const[k,B]=s.useState(!1),[V,H]=s.useState("idle"),[j,F]=s.useState("stopped"),T=s.useRef("stopped");s.useEffect(()=>{T.current=j},[j]);const[Y,R]=s.useState(0),[O,W]=s.useState("active"),le=s.useRef(!1);s.useEffect(()=>{if(O!=="playMode"||!le.current)return;le.current=!1;const X=typeof document<"u"?document.activeElement:null;if(X&&X!==document.body)return;const he=f.current?.querySelectorAll("button")[1];try{he?.focus()}catch{}},[O]);const[q,P]=s.useState(null),[M,L]=s.useState(null),[z,$]=s.useState(0),[E,I]=s.useState(!1),[oe,re]=s.useState(0),ee=m?.playbackRate??1,se=m?.mainVolume??1,Ce=m?no(m.settings):0,Z=m?Ql(m.settings):se,[ie,J]=s.useState("idle"),[be,ve]=s.useState(""),[Te]=s.useState("top"),de=s.useRef(null),ye=s.useRef(0),we=s.useRef(null),{start:Q,stop:te,settleTo:_e}=Sy({audioRef:C,fillRef:y,waveProgressRef:we,sourcesRef:de,currentIndexRef:ye}),{onReadyChange:je,waitForReady:ze,markNotReady:Me}=yy({showSoundWaveForm:c,showNoiseWaveForm:u}),Oe=s.useRef(null),Re=s.useRef(o),tt=s.useRef(r),Ke=s.useRef(null),Ue=s.useRef(!1),[fe,Ge]=s.useState(!1),Ee=s.useCallback(X=>{Ue.current=X,Ge(X)},[]),$e=s.useRef(null),{activeNoiseUrl:He,noiseSettingsRef:Ye,fadeInNoise:gt,fadeOutNoise:dt}=dy({noisePlayer:m,audioRef:C,playbackStateRef:T}),{startTTS:st,stopTTS:nt}=py({ttsText:i,playbackRate:ee,mainVolume:Z,fillRef:y,waveProgressRef:we,setProgress:R,setPlaybackState:F,setStateLocal:W,fadeInNoise:gt,fadeOutNoise:dt,noiseSettingsRef:Ye,onDoneRef:tt,handleEndRef:$e});s.useEffect(()=>{Ut.current=nt});const at=X=>{Gt("tts"),st(X)},Fe=Array.isArray(n)?n.filter(Boolean):n?[n]:[],Qe=(!Fe||Fe.length===0)&&!!i,Xe=Array.isArray(q)&&q.length>0?q:Array.isArray(M)&&M.length>0?M:null,rt=Math.max(Array.isArray(Xe)?Xe.length:0,Fe.length),Pe=s.useRef(!0);s.useEffect(()=>(Pe.current=!0,()=>{Pe.current=!1}),[]);const Je=s.useRef(0),yt=()=>{Je.current+=1,_.current+=1},Ut=s.useRef(null),mt=s.useRef(null),xt=s.useRef(null),Ft=s.useRef(null);Ft.current||(Ft.current=()=>{xt.current=null;const X=C.current;if(mt.current==="audio"&&X&&!X.paused){Je.current+=1,_.current+=1;try{X.pause()}catch{}Pe.current&&F("paused")}else if(mt.current==="tts")try{Ut.current?.()}catch{}});const Gt=X=>{mt.current=X,xt.current=Vr(Ft.current)},_t=()=>{xt.current?.(),xt.current=null};s.useEffect(()=>()=>{Ft.current&&Pa(Ft.current)},[]);const lt=s.useCallback(async(X,he=3,Ae=50)=>{const Le=Je.current;for(let De=0;De<he;De++){if(!Pe.current||Le!==Je.current)return!1;try{return Gt("audio"),await X.play(),!0}catch(Ve){if((Ve instanceof Error||typeof Ve=="object"&&Ve&&"name"in Ve?Ve.name:void 0)==="AbortError"){if(Le!==Je.current)return!1;await new Promise(ft=>setTimeout(ft,Ae));continue}try{ve(d("training.audioFetchError","\uC0AC\uC6B4\uB4DC \uC18C\uC2A4\uB97C \uAC00\uC838\uC624\uC9C0 \uBABB\uD588\uC2B5\uB2C8\uB2E4."))}catch{}return!1}}try{ve(d("training.audioFetchError","\uC0AC\uC6B4\uB4DC \uC18C\uC2A4\uB97C \uAC00\uC838\uC624\uC9C0 \uBABB\uD588\uC2B5\uB2C8\uB2E4."))}catch{}return!1},[d]),Kt=s.useCallback(()=>{const X=C.current;if(!X)return;const he=()=>{F("playing"),W("playMode"),I(!0),Q();try{mr(),ka(X).then(Ve=>{if(Pe.current)try{h.current?.("main",Ve)}catch{}})}catch{}const De=Ye.current;De?.enabled&&(De?.volume??0)>0&&gt(De.volume)},Ae=()=>{ky({ended:!!X?.ended,completedByEnd:Ue.current})||(F("paused"),te(),dt())},Le=()=>{try{const De=de.current,Ve=wy(De,ye.current);if(Ve!==null){ye.current=Ve,$(Ve),I(!0);const ft=De?.[Ve]&&De[Ve].src;if(ft&&X){X.src=ft,X.load(),lt(X).catch(()=>{});return}}}catch{}F("stopped"),R(1);try{if(X)try{X.currentTime=0}catch{}}catch{}te(),I(!1),dt();try{!Re.current&&$e.current&&$e.current()}catch{}};return X.addEventListener("play",he),X.addEventListener("pause",Ae),X.addEventListener("ended",Le),()=>{try{X.removeEventListener("play",he),X.removeEventListener("pause",Ae),X.removeEventListener("ended",Le),te()}catch{}}},[gt,dt,lt,Ye,Q,te]);s.useEffect(()=>Kt(),[Kt]),s.useEffect(()=>{Re.current=o},[o]),s.useEffect(()=>{tt.current=r},[r]),s.useEffect(()=>{if(o||O!=="active")return;const X=g.current;if(!X)return;let he=null;const Ae=requestAnimationFrame(()=>{try{const Le=X.getTotalLength();if(!Le)return;const De=Le*.2;X.style.strokeDasharray=`${Le-De} ${De}`;const Ve="triFlow_"+Math.random().toString(36).slice(2);he=document.createElement("style"),he.textContent=`@keyframes ${Ve}{from{stroke-dashoffset:0}to{stroke-dashoffset:-${Le}}}`,document.head.appendChild(he),X.style.animation=`${Ve} 2.4s linear infinite`}catch{}});return()=>{cancelAnimationFrame(Ae),he?.remove()}},[O,o]),s.useEffect(()=>{de.current=q},[q]),s.useEffect(()=>{ye.current=z},[z]),s.useEffect(()=>{const X=f.current,he=b.current;if(!X||!he)return;let Ae=null;const Le=32,De=60,Ve=()=>{try{const Nt=Array.from(X.querySelectorAll(":scope > .button"));let kt=0;Nt.forEach(dn=>{if(dn===he)return;const Za=dn.getBoundingClientRect();kt+=Za.width});const an=X.getBoundingClientRect().width,Xt=Math.max(0,Math.floor(an-kt-8)),jt=rt;if(!jt||Xt<=0){Array.from(he.children).forEach(dn=>{try{dn.style.width=""}catch{}});return}let un=Math.floor(Xt/jt);un>De&&(un=De),un<Le&&(un=Math.max(Le,Math.floor(Xt/jt))),Array.from(he.querySelectorAll(".button")).forEach(dn=>{try{dn.style.width=`${un}px`}catch{}})}catch{}},ft=requestAnimationFrame(Ve);try{Ae=new ResizeObserver(()=>{requestAnimationFrame(Ve)}),Ae.observe(X),Ae.observe(he),window.addEventListener("resize",Ve)}catch{}return()=>{try{cancelAnimationFrame(ft)}catch{}try{Ae&&(Ae.disconnect(),Ae=null)}catch{}try{window.removeEventListener("resize",Ve)}catch{}}},[q,M,rt]),s.useEffect(()=>()=>{try{Oe.current&&(clearTimeout(Oe.current),Oe.current=null),Ke.current&&(clearTimeout(Ke.current),Ke.current=null)}catch{}},[]);const Rt=(X,he)=>{P(X),re(he),Me(),L(Ay(X)),de.current=X},yn=async(X,he)=>{Ee(!1),x.current=!1,X.src=he,X.load(),await rc(X),await ze(),B(!1),await lt(X),W("playMode"),$(0),I(!0)},Dn=async(X,he=!1)=>{const Ae=C.current;B(!0),H("measuring_duration");try{const Le=await io(X,{timeoutMs:1e4,rejectOnError:!0});Rt([{src:X,objectUrl:null,duration:Le}],Le),H("ready"),he&&Ae&&await yn(Ae,X)}finally{x.current=!1,B(!1)}},et=async(X,he=!1)=>{const Ae=C.current;B(!0),H("measuring_duration");try{const Le=await Promise.all(X.map(Ve=>io(Ve,{timeoutMs:1e4})));if(!Pe.current)return;const De=X.map((Ve,ft)=>({src:Ve,objectUrl:null,duration:Le[ft]||0}));Rt(De,Ny(De)),H("ready"),he&&Ae&&De.length>0&&await yn(Ae,De[0].src)}finally{x.current=!1,B(!1)}},Ot=async(X=!1,he=!0)=>{const Ae=C.current,Le=n?Array.isArray(n)?n:[n]:[];if(!Le||Le.length===0||!Le.some(Boolean))return!1;if(x.current)return null;x.current=!0,he&&B(!0),H("resolving");try{const De=By(n,a,ms),Ve=[];let ft=0;for(const Nt of De){let kt=Nt.src??null,an=null;if(!kt&&Nt.resolvedPath){try{H("getting_signed_url"),kt=await hs(Nt.resolvedPath)}catch{kt=null}if(!Pe.current)return!1;if(!kt)try{H("downloading");const jt=await fs(Nt.resolvedPath);if(!Pe.current)return!1;if(jt){const un=jt instanceof Blob?jt:new Blob([jt]);an=v.track(URL.createObjectURL(un)),kt=an}}catch{H("error");try{ve(d("training.audioFetchError","\uC0AC\uC6B4\uB4DC \uC18C\uC2A4\uB97C \uAC00\uC838\uC624\uC9C0 \uBABB\uD588\uC2B5\uB2C8\uB2E4.")),W("active")}catch{}}}if(!kt)continue;let Xt=0;try{H("measuring_duration"),Xt=await io(kt,{timeoutMs:3e3})}catch{Xt=0}if(!Pe.current){if(an)try{URL.revokeObjectURL(an)}catch{}for(const jt of Ve)if(jt.objectUrl)try{URL.revokeObjectURL(jt.objectUrl)}catch{}return!1}ft+=Xt||0,Ve.push({...Nt,src:kt,objectUrl:an,duration:Xt})}if(Rt(Ve,ft),Ve.length>0&&X&&Ae){const Nt=Ve[0];Ee(!1);try{v.keepOnly(Ve.map(kt=>kt.objectUrl))}catch{}if(H("ready"),x.current=!1,Nt.src&&Ae)try{Ae.src=Nt.src,Ae.load(),await rc(Ae),await ze(),he&&B(!1),Ae&&await lt(Ae)}catch{he&&B(!1)}else he&&B(!1);W("playMode"),$(0),I(!0)}return Ve.length>0}finally{x.current=!1,he&&B(!1),H(De=>De==="ready"?"ready":"idle")}},wt=async()=>{const X=C.current;if(!(!X&&!Qe)){if(Qe){const he=window.speechSynthesis;if(O==="active"){const Ae=ur(),Le=Array.isArray(i)?i.filter(Boolean):i?[i]:[];if(Ae&&Le.length>0){W("load"),B(!0),H("resolving"),x.current=!0;try{const De=await Promise.all(Le.map(Ve=>Promise.resolve(Ae(Ve))));De.length>1?await et(De,!0):await Dn(De[0],!0)}catch{x.current=!1,B(!1),W("active"),at(Le[0]||void 0)}return}at(Le[0]||void 0);return}if(O==="playMode"){if(X){if(X.paused){if(Ue.current){await Ht();return}await lt(X),F("playing")}else yt(),X.pause(),F("paused");return}try{if(he&&he.paused)try{Gt("tts"),he.resume(),F("playing")}catch{}else try{he.pause(),F("paused")}catch{}}catch{}}return}if(O==="active"){if(o&&Array.isArray(de.current)&&de.current.length>0){const Ae=de.current[0];try{if(Ae.src&&X)try{X.src=Ae.src,X.load(),X&&await lt(X)}catch{}W("playMode"),$(0),I(!0);return}catch{}}W("load");let he;try{he=await Ot(!0)}catch{he=!1}if(he===!1&&Pe.current){try{ve(d("training.audioFetchError","\uC0AC\uC6B4\uB4DC \uC18C\uC2A4\uB97C \uAC00\uC838\uC624\uC9C0 \uBABB\uD588\uC2B5\uB2C8\uB2E4."))}catch{}W("active")}return}if(O!=="load"&&(O==="playMode"||O==="active"))try{if(X&&X.paused){if(Ue.current){await Ht();return}X&&await lt(X),F("playing")}else X&&(yt(),X.pause(),F("paused"))}catch(he){(he instanceof Error||typeof he=="object"&&he&&"name"in he)&&he.name}}},Ht=async()=>{const X=C.current;if(X)try{const he=de.current;if(Array.isArray(he)&&he.length>1){await nn(0);return}Ee(!1);try{X.currentTime=0}catch{}X&&await lt(X),F("playing"),W("playMode")}catch{}},Vt=()=>{if(yt(),_t(),Qe){nt();return}const X=C.current;try{if(X){try{X.pause()}catch{}try{X.currentTime=0}catch{}}}catch{}dt(),F("stopped"),W("active"),R(0),I(!1)},zt=async(X,{sameSegment:he=!1}={})=>{const Ae=++_.current,Le=C.current,De=de.current?.[X]?.src;try{if(Ee(!1),$(X),I(!0),ye.current=X,!De||!Le||(he||Me(),Le.src=De,Le.load(),he||await ze(),Ae!==_.current)||(await lt(Le),Ae!==_.current))return;F("playing"),W("playMode")}catch{}},sn=async()=>{const X=de.current,he=ye.current||0;if(!X||he<=0){await Ht();return}await zt(he-1)},ln=async()=>{const X=de.current,he=ye.current||0;if(!X||he>=X.length-1){Vt();return}await zt(he+1)},Wt=()=>{if(Ue.current)return;const X=200,he=340;Ee(!0),yt(),_t();try{R(1)}catch{}_e(1);try{J("hold")}catch{}try{const Ae=C.current,Le=Qe&&!!Ae?.src;if(!Qe||Le){if(Ae){Ae.pause();try{Ae.currentTime=0}catch{}}}else nt();dt()}catch{}try{F("stopped")}catch{}if(I(!1),!Re.current)try{Ke.current&&(clearTimeout(Ke.current),Ke.current=null),Ke.current=setTimeout(()=>{try{J("out")}catch{}Ke.current=setTimeout(()=>{try{typeof tt.current=="function"&&tt.current(!0)}catch{}try{J("idle")}catch{}Ke.current=null},he)},X)}catch{}};s.useEffect(()=>{$e.current=Wt});const cn=s.useCallback(()=>ve(""),[]),nn=async X=>{(de.current||[])[X]&&await zt(X,{sameSegment:X===ye.current})},ht=j==="playing",Yt=s.useMemo(()=>{if(!M||M.length<=1)return M;const X=M[z];return X?[X]:M},[M,z]),Zt=o===!0;s.useEffect(()=>{try{const X=C.current;X&&typeof X.playbackRate=="number"&&(X.playbackRate=ee||1)}catch{}},[ee]);const Tt=s.useRef({raf:null,timer:null});s.useEffect(()=>{const X=C.current;if(!X)return;const he=Math.max(0,Math.min(1,Z)),Ae=Tt.current,Le=()=>{Ae.raf!==null&&(cancelAnimationFrame(Ae.raf),Ae.raf=null),Ae.timer!==null&&(clearTimeout(Ae.timer),Ae.timer=null)};Le();const De=Aa(X);if(X.paused||Math.abs(De-he)<.001||typeof requestAnimationFrame!="function"){try{_n(X,he)}catch{}return}const Ve=performance.now(),ft=()=>{const Nt=Math.min(1,(performance.now()-Ve)/150);try{_n(X,De+(he-De)*Nt)}catch{}Ae.raf=Nt<1?requestAnimationFrame(ft):null};return Ae.raf=requestAnimationFrame(ft),Ae.timer=setTimeout(()=>{Le();try{_n(X,he)}catch{}},200),Le},[Z]);const ae=ie==="hold",G=ie==="out",ne=O==="playMode"&&!k&&!fe||ae||G,ke=j!=="stopped"||ae||G,Ne=j==="paused",Be=Math.max(0,Math.min(100,(Y||0)*100)),qe=ge("audio-player__fill",ne?"is-visible":"",ke?"is-expanded":"",Ne?"is-paused":"",G?"is-out":"");return t.jsxs("div",{className:`audio-player ${Zt?"is-disabled":""}${l?` ${l}`:""}`,role:"group","aria-label":typeof p=="string"?p:void 0,children:[t.jsxs("div",{className:`audio-player__panel ${ht?"is-playing":""} ${k?"is-loading":""} ${O!=="default"?"is-revealed":""}`,children:[k?t.jsxs("div",{className:"audio-player__loading",role:"status","aria-live":"polite",children:[t.jsx("span",{className:"audio-player__loading-spinner","aria-hidden":"true"}),t.jsx("span",{className:"audio-player__loading-text",children:d(`training.audioStatus.${V}`,{defaultValue:gy[V]})})]}):null,O==="active"?t.jsx("button",{className:"audio-player__button",type:"button",disabled:Zt,onClick:()=>{le.current=Ia(),N(),wt()},"aria-label":typeof p=="string"?p:d("training.listen","\uB4E3\uAE30"),onMouseEnter:S,onMouseLeave:N,onFocus:S,onBlur:N,children:t.jsx("span",{ref:A,className:"audio-player__button-triangle-wrap",children:t.jsx("svg",{className:"audio-player__button-triangle",viewBox:"0 0 24 24","aria-hidden":"true",children:t.jsx("path",{ref:g,d:"M13.2 7.7 L16.5 9.85 Q20.2 12 16.5 14.15 L10 18.3 Q7 19.7 7 16.3 L7 7.7 Q7 4.3 10 5.7 L13.2 7.7"})})})}):null,w&&t.jsx(kn,{anchorRect:w,text:typeof p=="string"&&p?p:d("training.listenLabel","\uBB38\uC7A5 \uB4E3\uAE30"),offset:8}),t.jsxs("div",{className:`audio-player__play ${O==="playMode"||ht?"is-visible":""}`,inert:!(O==="playMode"||ht)||void 0,children:[t.jsxs("div",{ref:f,className:"audio-player__buttons",children:[t.jsx(ce,{htmlType:"button",size:32,showTooltipInfo:!0,type:"dot",shape:"pill",useBorder:!1,icon:"skip-back",onClick:sn,ariaLabel:d("training.prev","\uC774\uC804"),width:"60px",variant:"transparent-white","aria-hidden":"true",tabIndex:-1,disabled:O!=="playMode"}),t.jsx(ce,{htmlType:"button",size:32,showTooltipInfo:!0,type:"dot",shape:"pill",useBorder:!1,icon:ht?"pause":"play",onClick:wt,ariaLabel:d("common.playPause","\uC7AC\uC0DD / \uBA48\uCDA4"),"aria-pressed":ht,width:"60px",variant:"transparent-white",disabled:O!=="playMode"}),t.jsx(ce,{htmlType:"button",size:32,showTooltipInfo:!0,type:"dot",shape:"pill",useBorder:!1,icon:"square",onClick:Vt,ariaLabel:d("training.stop","\uC815\uC9C0"),width:"60px",variant:"transparent-white","aria-hidden":"true",tabIndex:-1,disabled:O!=="playMode"}),rt>1?t.jsx("div",{ref:b,className:"audio-player__source-buttons",children:Array.from({length:rt}).map((X,he)=>t.jsx(ce,{htmlType:"button",size:32,type:"dot",shape:"pill",useBorder:!1,label:String(he+1),onClick:()=>{try{nn(he)}catch{}},ariaLabel:d("training.sourcePlay",{n:he+1}),variant:"transparent-white",selected:E&&z===he,disabled:O!=="playMode"||!(Array.isArray(q)&&q[he]),showTooltipInfo:!0},he))}):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:Ht,ariaLabel:d("common.replay","\uB2E4\uC2DC\uB4E3\uAE30"),width:"60px",variant:"transparent-white",disabled:O!=="playMode"}):null,t.jsx(ce,{htmlType:"button",size:32,showTooltipInfo:!0,type:"dot",shape:"pill",useBorder:!1,icon:"skip-forward",onClick:ln,ariaLabel:d("training.next","\uB2E4\uC74C"),width:"60px",variant:"transparent-white","aria-hidden":!0,tabIndex:-1,disabled:O!=="playMode"}),t.jsx(ce,{htmlType:"button",size:32,showTooltipInfo:!0,type:"dot",shape:"pill",useBorder:!1,icon:"check",onClick:Wt,ariaLabel:d("common.done","\uC644\uB8CC"),width:"60px",variant:"transparent-white",disabled:O!=="playMode"})]}),t.jsxs("div",{className:"audio-player__slider",children:[t.jsx("div",{className:qe,ref:y,style:{left:`${Be}%`},"aria-hidden":"true"}),(c||u)&&t.jsx(Cy,{segments:Yt,progress:Y,totalDuration:oe,onSegmentClick:nn,waveProgressRef:we,showSoundWaveForm:c,noiseSrc:u&&m?.settings.enabled&&Ce>0?He:null,noiseRatio:m?ba(m.settings):0,noiseSpeed:m?.settings.speed??1,mainVolume:se,onReadyChange:je})]})]}),t.jsx("audio",{ref:C,crossOrigin:"anonymous",preload:"auto"})]}),!c&&t.jsxs("p",{className:"audio-player__no-waveform caption-1",children:[t.jsx(We,{icon:"triangle-alert",size:14}),d("training.noSoundWaveform","\uC18C\uB9AC \uBE44\uAD50 \uBB38\uC81C\uB294 \uC6E8\uC774\uBE0C\uD3FC\uC744 \uD45C\uD604\uD558\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4.")]}),t.jsx(Gn,{message:be,position:Te,onClose:cn})]})}function Ua(e){const{t:n}=pe.useTranslation(),{text:a,label:r,anchorRect:o=null,onClose:i,closeOnOutsideClick:l=!0,isMobilePopup:c=!1}=e||{},[u,d]=s.useState(()=>{try{return localStorage.getItem("tooltip-theme")||"light"}catch{return"light"}});s.useEffect(()=>{try{localStorage.setItem("tooltip-theme",u)}catch{}},[u]);const{increase:p,decrease:m,canIncrease:h,canDecrease:C,fontSize:y,lineHeight:f}=hi({storageKey:"tooltip-fontScale"}),v=s.useCallback(()=>d(A=>A==="dark"?"light":"dark"),[]),b=s.useCallback(A=>{try{A.stopPropagation()}catch{}try{typeof i=="function"&&i()}catch{}},[i]),x=Array.isArray(a)?a:typeof a>"u"||a===null?[]:[a],_={fontSize:`${y}px`,lineHeight:`${f}px`,"--tt-line-height":`${f}px`,"--tt-marker-size":"28px"},g=t.jsxs("div",{className:`tooltip-textbox__root ${u==="dark"?"is-dark":""}`,children:[t.jsxs("div",{className:"tooltip-textbox__box",children:[r&&t.jsx("div",{className:"tooltip-textbox__label body-2b",children:r}),t.jsx("div",{className:"tooltip-textbox__text body-1",style:_,children:x.map((A,w)=>t.jsxs("div",{className:"tooltip-textbox__line",children:[x.length>1?t.jsx("div",{className:"tooltip-textbox__marker",children:t.jsx("span",{className:"tooltip-textbox__line-number button-1",children:w+1})}):null,t.jsx("span",{className:"tooltip-textbox__line-text",children:A})]},w))})]}),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:u==="dark"?"transparent-white":"transparent-gray",disabled:!C}),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:u==="dark"?"transparent-white":"transparent-gray",disabled:!h}),t.jsx(ce,{htmlType:"button",size:32,showTooltipInfo:!0,type:"dot",useBorder:!1,width:48,icon:u==="dark"?"moon":"sun-medium",onClick:v,ariaLabel:n("training.toggleBackground","\uBC30\uACBD \uC804\uD658"),variant:u==="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:u==="dark"?"transparent-white":"transparent-gray"})]})]});return o?t.jsx(wn,{anchorRect:o,className:`tooltip-textbox ${u==="dark"?"is-dark":""}`,onClose:i,closeOnOutsideClick:l,isMobilePopup:c,ariaLabel:r||n("tooltip.textbox","\uBCF8\uBB38"),children:g}):t.jsx("div",{className:`tooltip-textbox ${u==="dark"?"is-dark":""}`,children:g})}function oc({state:e="disabled"}){const{t:n}=pe.useTranslation();return t.jsxs("div",{className:`ts-bullet ts-bullet--${e}`,"aria-hidden":!0,children:[t.jsx("div",{className:"bullet__dot",children:t.jsx(We,{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 sc({title:e,children:n,className:a="",state:r="disabled",usePreviewTextBtn:o=!1,onPreviewTextBtn:i,previewText:l=null,useFaded:c,usePlayAllBtn:u=!1,onPlayAll:d,playAllActive:p=!1}){const{t:m}=pe.useTranslation(),h=rn("(max-width: 767px)"),C=`training-step__title h4 ${c&&r==="disabled"?"training-step__title--faded":""} ${a}`.trim(),y=`training-step__title-row training-step__title-row--${r}`.trim(),f=s.useRef(null),[v,b]=s.useState(!1),[x,_]=s.useState(null),[g,A]=s.useState(null),w=s.useRef(i);s.useEffect(()=>{w.current=i});const S=s.useMemo(()=>l==null?"":typeof l=="string"||typeof l=="number"?String(l):Array.isArray(l)&&l.every(B=>typeof B=="string"||typeof B=="number")?l.join(""):"",[l]),N=s.useCallback(()=>{b(!1),_(null),A(null)},[]);s.useEffect(()=>{if(!v)return;let B;try{typeof w.current=="function"&&(B=w.current())}catch{}if(B===!1){N();return}A(typeof B<"u"&&B!==null?B:null)},[S]);const k=s.useCallback(()=>{let B;try{typeof i=="function"&&(B=i())}catch{}if(B!==!1){if(A(typeof B<"u"&&B!==null?B:l),!f.current){b(V=>!V);return}if(v)b(!1),_(null),A(null);else{const V=f.current.getBoundingClientRect();_(V),b(!0)}}},[i,l,v]);return t.jsxs("div",{className:y,children:[t.jsx("p",{className:C,children:t.jsx("span",{className:"training-step__title-text",children:e??n})}),o||u?t.jsxs("div",{className:"title-controls",children:[t.jsxs("div",{className:"title-buttons",children:[u&&t.jsx(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:d,variant:r==="disabled"?"disabled":"default",disabled:r==="disabled"||p,onDisabledClick:p&&r!=="disabled"?()=>{}:void 0}),o&&t.jsx("div",{ref:f,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"),selected:v,onClick:k,variant:r==="disabled"?"disabled":"default",disabled:!l&&typeof i!="function"})})]}),v&&t.jsx(Ua,{text:g??l,label:m("training.sentencePreview","\uBB38\uC7A5 \uBBF8\uB9AC\uBCF4\uAE30"),anchorRect:x,onClose:N,closeOnOutsideClick:!1,isMobilePopup:!0})]}):null]})}function co(e,n){return typeof n!="number"||typeof e!="number"?"disabled":e<n?"done":e===n?"active":"disabled"}function Hn({index:e,stepIndex:n,isLast:a=!1,title:r="",titleProps:o={},children:i,className:l="",onDone:c=void 0,useTitleFaded:u=void 0}){const{t:d}=pe.useTranslation(),[p,m]=s.useState(()=>co(e,n));s.useEffect(()=>{const A=co(e,n);if(A!==p){const w=setTimeout(()=>m(A),0);return()=>clearTimeout(w)}},[e,n,p]);const h=s.useCallback((...A)=>{co(e,n)==="done"||p==="done"||typeof c=="function"&&c(...A)},[e,n,p,c]),[C,y]=s.useState(!1),[f,v]=s.useState({text:"",label:"\uBB38\uC7A5 \uB4E3\uAE30",anchorRect:null,backdrop:!1,alignX:null,alignY:null}),b=s.useCallback(A=>{if(!A)return null;try{const w=A;if(typeof A=="object"&&(w.currentTarget||w.target)&&(w.nativeEvent||w.type)){const k=w.currentTarget??w.target;if(k&&typeof k.getBoundingClientRect=="function")return k.getBoundingClientRect()}if(A instanceof DOMRect)return A;const S=A;if(S&&typeof S.getBoundingClientRect=="function")return S.getBoundingClientRect();const N=A?.current;return N&&typeof N.getBoundingClientRect=="function"?N.getBoundingClientRect():null}catch{return null}},[]),x=s.useCallback((A,{text:w="",label:S="\uBB38\uC7A5 \uB4E3\uAE30",backdrop:N=!1,alignX:k="center",alignY:B="top"}={})=>{const V=b(A);v({text:w,label:S,anchorRect:V,backdrop:N,alignX:k,alignY:B}),y(!0)},[b]),_=s.useCallback(()=>{y(!1),v(A=>({...A,anchorRect:null}))},[]),g=s.Children.map(i,A=>{if(s.isValidElement(A)){const w=A;if(typeof w.type=="string")return w;const S=w.props??{},N=typeof S.onDone=="function"?S.onDone:h,k=typeof S.disabled=="boolean";let B=p==="disabled";return k&&(B=!!S.disabled),s.cloneElement(w,{onDone:N,disabled:B,showTooltip:x,hideTooltip:_})}return A});return t.jsxs("div",{className:`training-step training-step--${p} ${a?"training-step--last":""} ${l}`,"aria-current":p==="active",children:[t.jsx(oc,{state:p}),t.jsxs("div",{className:"training-step__content",children:[t.jsx(sc,{state:p,title:r,...o,useFaded:u}),g]}),C?t.jsx(wn,{anchorRect:f.anchorRect,backdrop:f.backdrop,onClose:_,ariaLabel:d("tooltip.textbox","\uBCF8\uBB38"),children:t.jsx(Ua,{text:f.text,onClose:_})}):null]})}function ic({context:e,state:n="disabled",theme:a="light"}){const{t:r}=pe.useTranslation(),[o,i]=s.useState("disabled"),[l,c]=s.useState(()=>{try{return localStorage.getItem("tooltip-theme")||a}catch{return a}});s.useEffect(()=>{try{localStorage.setItem("tooltip-theme",l)}catch{}},[l]);const u=()=>c(j=>j==="dark"?"light":"dark"),{increase:d,decrease:p,canIncrease:m,canDecrease:h,fontSize:C,lineHeight:y}=hi({storageKey:"textbox_fontScale"}),[f,v]=s.useState(""),b=s.useRef(null),x=s.useRef(!1),_=s.useCallback(()=>{x.current=Ia()&&!!b.current&&b.current.contains(document.activeElement),i("active")},[]),g=s.useCallback(()=>v(""),[]),A=j=>{try{v(j)}catch{}},w=typeof navigator<"u"&&/Mobi|Android/i.test(navigator.userAgent||"");s.useEffect(()=>{if(n!=="disabled"){const j=setTimeout(()=>i(n),0);return()=>clearTimeout(j)}},[n]);const S=s.useMemo(()=>e&&typeof e=="object"?String(e.sentence??e.text??""):typeof e=="string"?e:"",[e]),[N,k]=s.useState(S);N!==S&&(k(S),i("disabled"));const B=n==="disabled"?o:n,V=B==="disabled"?"training-text-box--disabled":B==="active"?"training-text-box--active":B==="done"?"training-text-box--done":"",H=s.useMemo(()=>({fontSize:`${C}px`,lineHeight:`${y}px`}),[C,y]);return s.useEffect(()=>{if(B==="disabled"||!x.current)return;x.current=!1;const j=document.activeElement;j&&j!==document.body||b.current?.querySelector(".training-text-box__buttons button")?.focus()},[B]),t.jsxs("div",{ref:b,className:`training-text-box ${V} ${B!=="disabled"&&l==="dark"?"is-dark":""}`,children:[B==="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":B==="disabled",children:t.jsx("span",{className:"training-text-box__inner h3",style:H,children:S})}),B!=="disabled"&&t.jsxs("div",{className:"training-text-box__buttons","aria-hidden":B==="disabled",children:[t.jsx(ce,{htmlType:"button",size:32,type:"dot",onClick:p,onDisabledClick:()=>A(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,...!w&&{width:"60px"}}),t.jsx(ce,{htmlType:"button",size:32,type:"dot",onClick:d,onDisabledClick:()=>A(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,...!w&&{width:"60px"}}),t.jsx(ce,{htmlType:"button",size:32,showTooltipInfo:!0,type:"dot",useBorder:!1,width:48,icon:l==="dark"?"moon":"sun-medium",onClick:u,ariaLabel:r("training.toggleBackground","\uBC30\uACBD \uC804\uD658"),variant:l==="dark"?"transparent-white":"transparent-gray"})]}),t.jsx(Gn,{message:f,position:"top",onClose:g})]})}function uo({index:e,stepIndex:n,isLast:a=!1,title:r,useTitleFaded:o,onDone:i,onChange:l,answer:c,wrongAnswers:u,choices:d,multiSelect:p=!1,correctCount:m=0,useDisabledCovered:h=!1,choiceIcons:C,shuffleChoices:y=!0}){const{t:f}=pe.useTranslation(),v=r??f("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,x=typeof n!="number"?"disabled":b<n?"done":b===n?"active":"disabled",_=Array.isArray(d)&&d.length?d:typeof c<"u"?[c].concat(Array.isArray(u)?u:[]):void 0,g=u?u.join("||"):"",A=d?d.join("||"):"",[w,S]=s.useState(()=>Array.isArray(_)?y?la(_):_.slice():void 0);s.useEffect(()=>{Array.isArray(_)&&_.length?S(y?la(_):_.slice()):S(void 0)},[c,g,A,y]);const[N,k]=s.useState(null),[B,V]=s.useState(()=>new Set);s.useEffect(()=>{k(null),V(new Set)},[A,c,g]);const H=s.useRef(void 0);s.useEffect(()=>{const T=H.current;typeof T=="number"&&typeof n=="number"&&typeof e=="number"&&T>=e&&n<e&&(k(null),V(new Set)),H.current=n},[n,e]);const j=s.useCallback(T=>{if(x!=="active")return;const Y=w?.[T];if(Y==null)return;const R=Y,O=x==="active"||x==="done";if(p){const W=new Set(B),le=W.has(R);le?W.delete(R):W.add(R),V(W),typeof l=="function"&&l({selectedValues:[...W],__ts:Date.now()}),O&&(typeof m=="number"&&m>0?W.size>=m:!le)&&typeof i=="function"&&x==="active"&&i({selectedValues:[...W],__ts:Date.now()})}else k(R),typeof l=="function"&&l({selectedIndex:T,selectedValue:R,__ts:Date.now()}),O&&typeof i=="function"&&x==="active"&&i({selectedIndex:T,selectedValue:R,__ts:Date.now()})},[w,x,p,l,i,m,B]),F=`training-step__buttons${Array.isArray(w)&&w.length>3?" training-step__buttons--wrap-3":""}`;return t.jsx(Hn,{index:e,stepIndex:n,isLast:a,title:v,useTitleFaded:o,children:t.jsx("div",{className:F,children:Array.isArray(w)&&w.length>0?w.map((T,Y)=>t.jsx(ce,{htmlType:"button",size:56,type:"bar",onClick:()=>j(Y),ariaLabel:String(T),label:T,useLabel:!0,icon:C?C[String(T)]:void 0,variant:"default",disabled:x==="disabled",selected:p?B.has(T):N===T,useDisabledCovered:h,minWidth:0},String(T))):null})})}function po({index:e,stepIndex:n,isLast:a=!1,title:r,onDone:o,onChange:i,context:l,demoSelected:c}){const{t:u}=pe.useTranslation(),d=r??u("training.confirmTitle","\uBB38\uC7A5\uC744 \uD655\uC778\uD558\uACE0 \uC798 \uB4E4\uB838\uB294\uC9C0 \uC120\uD0DD\uD558\uC138\uC694."),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:"",C=l&&typeof l=="object"?l.choices:void 0,[y,f]=s.useState(c??null),v=`${String(h)}\0${JSON.stringify(C??null)}`,[b,x]=s.useState(v);b!==v&&(x(v),c==null&&f(null));const[_,g]=s.useState(c);Object.is(_,c)||(g(c),f(c??null));const A=s.useRef(void 0);s.useEffect(()=>{const k=A.current;typeof k=="number"&&typeof n=="number"&&typeof e=="number"&&k>=e&&n<e&&c==null&&f(null),A.current=n},[n,e,c]);const w=s.useCallback(k=>{const B=typeof k=="object"&&k!==null?Object.assign({},k,{__ts:Date.now()}):{value:k,__ts:Date.now()};typeof i=="function"&&i(B),m==="active"&&typeof o=="function"&&o(B)},[i,m,o]),S=s.useCallback(()=>{m==="active"&&(f(!1),w(!1))},[w,m]),N=s.useCallback(()=>{m==="active"&&(f(!0),w(!0))},[w,m]);return t.jsxs(Hn,{index:e,stepIndex:n,isLast:a,title:d,onDone:o,useTitleFaded:!1,children:[t.jsx(ic,{context:l,state:m}),t.jsx("div",{className:"training-step__buttons",children:Array.isArray(C)&&C.length>0?C.slice(0,6).map((k,B)=>t.jsx(ce,{htmlType:"button",size:56,type:"bar",onClick:()=>{m==="active"&&(f(B),w&&w(B))},disabled:m==="disabled",ariaLabel:String(k),label:k,variant:m,selected:y===B},B)):t.jsxs(t.Fragment,{children:[t.jsx(ce,{htmlType:"button",size:56,type:"bar",onClick:S,disabled:m==="disabled",icon:"x",ariaLabel:u("training.notHeard","\uC548 \uB4E4\uB838\uC5B4\uC694."),label:u("training.notHeard","\uC548 \uB4E4\uB838\uC5B4\uC694."),variant:"default",selected:y===!1}),t.jsx(ce,{htmlType:"button",size:56,type:"bar",onClick:N,disabled:m==="disabled",icon:"circle",ariaLabel:u("training.heardWell","\uC798 \uB4E4\uB838\uC5B4\uC694."),label:u("training.heardWell","\uC798 \uB4E4\uB838\uC5B4\uC694."),variant:"default",selected:y===!0})]})})]})}function mo({index:e,stepIndex:n,isLast:a=!1,title:r,onDone:o,btnLabel:i,soundSrc:l,bucketPath:c,usePreviewTextBtn:u,previewText:d=null,onPreviewTextBtn:p,disabled:m,_pageIndex:h,showSoundWaveForm:C,showNoiseWaveForm:y}){const{t:f}=pe.useTranslation(),v=r??f("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(Hn,{index:e,stepIndex:n,isLast:a,title:v,onDone:o,titleProps:{usePreviewTextBtn:u,previewText:d,onPreviewTextBtn:p},children:t.jsx(lo,{soundSrc:l,ttsText:l?null:d??v,bucketPath:c,btnLabel:i||f("training.listenButton","\uBB38\uC7A5 \uB4E3\uAE30"),disabled:b,className:"training-step__listen-sticky",showSoundWaveForm:C,showNoiseWaveForm:y},`audio-p${h??0}-s${e}`)})}const Dy=[];function ho({index:e,stepIndex:n,isLast:a=!1,title:r,onDone:o,onChange:i,context:l=Dy}){const{t:c}=pe.useTranslation(),u=r??c("training.orderListDefault","\uBB38\uC7A5\uC744 \uB4E4\uC740 \uC21C\uC11C\uB300\uB85C \uBC30\uCE58\uD558\uC138\uC694."),d=M=>typeof M=="string"?M:M&&(M.context||M.sentence||M.question||"")||"",[p,m]=s.useState(Array.isArray(l)?l:[]),[h,C]=s.useState(()=>(p||[]).map((M,L)=>({id:L,text:d(M)}))),y=s.useMemo(()=>typeof n!="number"||typeof e!="number"?"disabled":e<n?"done":e===n?"active":"disabled",[n,e]),f=y!=="disabled",v=s.useRef(void 0);s.useEffect(()=>{if(v.current===l)return;v.current=l;const M=Array.isArray(l)?l:[];m(M);const L=(z=>{const $=(z||[]).map((re,ee)=>({id:ee,text:d(re)}));if($.length<=1)return $;const E=(re,ee)=>{if(re.length!==ee.length)return!1;for(let se=0;se<re.length;se++)if(re[se].text!==ee[se].text)return!1;return!0};let I=la($),oe=0;for(;E(I,$)&&oe<20;)I=la($),oe+=1;return I})(M);C(L);try{if(typeof i=="function"){const z=L.filter(($,E)=>$.text===d(M[E])).length;i({shuffled:L,score:z,total:(M||[]).length,initial:!0,__ts:Date.now()})}if(typeof o=="function"&&y==="active"){const z=L.filter(($,E)=>$.text===d(M[E])).length;o({shuffled:L,score:z,total:(M||[]).length,initial:!0,__ts:Date.now()})}}catch{}},[l]);const b=(M,L)=>{const z=[...h],$=M+L;if($<0||$>=z.length)return;const E=z[$];z[$]=z[M],z[M]=E,Y(z);try{if(typeof o=="function"&&y==="active"){const I=z.filter((oe,re)=>oe.text===d(p[re])).length;o({shuffled:z,score:I,total:(p||[]).length,__ts:Date.now()})}}catch{}},[x,_]=s.useState(null),g=s.useRef(null),A=s.useRef(null),w=s.useRef(null),S=s.useRef(null),N=s.useRef(null),k=s.useRef({x:0,y:0}),B=s.useRef(null),V=s.useRef({dx:0,dy:0}),H=()=>{if(B.current!==null)return;const M=()=>{if(!g.current){B.current=null;return}B.current=requestAnimationFrame(M);const L=k.current,z=V.current||{dx:0,dy:0};g.current&&(g.current.style.transform=`translate3d(${L.x-z.dx}px, ${L.y-z.dy}px, 0)`)};B.current=requestAnimationFrame(M)},j=s.useRef(new Map),F=s.useRef(new Map),T=()=>{const M=new Map;return j.current.forEach((L,z)=>{L&&L.getBoundingClientRect&&M.set(z,L.getBoundingClientRect())}),M},Y=M=>{const L=T();C(M);try{if(typeof i=="function"){const z=M.filter(($,E)=>$.text===d(p[E])).length;i({shuffled:M,score:z,total:(p||[]).length,__ts:Date.now()})}}catch{}requestAnimationFrame(()=>{const z=T();M.forEach($=>{const E=L.get($.id),I=z.get($.id),oe=j.current.get($.id);if(!oe||!E||!I)return;const re=E.top-I.top;re&&(oe.style.transition="none",oe.style.transform=`translateY(${re}px)`,requestAnimationFrame(()=>{oe.style.transition="transform 420ms cubic-bezier(.22,.9,.39,1)",oe.style.transform="";const ee=()=>{oe.style.transition="",oe.removeEventListener("transitionend",ee)};oe.addEventListener("transitionend",ee)}))})})},R=(M,L)=>{try{try{L.dataTransfer?.setData("text/plain",String(M))}catch{}try{L.dataTransfer&&(L.dataTransfer.effectAllowed="move")}catch{}try{const z=document.createElement("div");z.style.cssText="position:absolute;top:-9999px;left:-9999px;width:1px;height:1px;opacity:0;pointer-events:none;",document.body.appendChild(z),L.dataTransfer?.setDragImage(z,0,0),requestAnimationFrame(()=>{try{document.body.removeChild(z)}catch{}})}catch{}}catch{}_(M);try{const z=h[M],$=document.createElement("div");$.className="order-list__dragging-object order-list__dragging-object--visible",$.textContent=z&&z.text?z.text:"",document.body.appendChild($),g.current=$;const E=j.current.get(z.id);let I=L.clientX||0,oe=L.clientY||0;try{if(E&&E.getBoundingClientRect){const ie=E.getBoundingClientRect();I=ie.left+ie.width/2,oe=ie.top+ie.height/2}}catch{}const re=$.getBoundingClientRect(),ee=re.width/2,se=re.height/2;V.current={dx:ee,dy:se},$.style.transition="none",k.current={x:I,y:oe},$.style.transform=`translate3d(${I-ee}px, ${oe-se}px, 0)`,requestAnimationFrame(()=>{try{$.style.transition=""}catch{}H()});const Ce=ie=>{const J=ie;k.current={x:J.clientX,y:J.clientY},H()};w.current=Ce,document.addEventListener("mousemove",Ce);const Z=ie=>{const J=ie;k.current={x:J.clientX,y:J.clientY},H()};A.current=Z,document.addEventListener("dragover",Z);try{L.dataTransfer?.setData("text/plain",String(M));try{L.dataTransfer?.setData("application/json",JSON.stringify({idx:M}))}catch{}}catch{}}catch{}},O=(M,L)=>{L.preventDefault();try{L.dataTransfer&&(L.dataTransfer.dropEffect="move")}catch{}try{N.current!==null&&(clearTimeout(N.current),N.current=null);const z=L.currentTarget&&L.currentTarget.closest?L.currentTarget.closest(".order-list__item"):null;if(z&&S.current!==z){if(S.current)try{S.current.classList.remove("drag-over")}catch{}try{z.classList.add("drag-over")}catch{}S.current=z}}catch{}},W=(M,L)=>{L.preventDefault();const z=L.dataTransfer?.getData("text/plain")||"",$=z?parseInt(z,10):x,E=M;if(typeof $!="number"||isNaN($)||$===E){_(null),P(),le();return}const I=A0(h,$,E);Y(I),_(null),le();try{if(typeof o=="function"&&y==="active"){const oe=I.filter((re,ee)=>re.text===d(p[ee])).length;o({shuffled:I,score:oe,total:(p||[]).length,__ts:Date.now()})}}catch{}try{requestAnimationFrame(()=>{const oe=document.querySelectorAll(".order-list .order-list__item")[E];if(!oe)return;const re=oe.querySelector(".order-list__slot")||oe;try{re.classList.add("pulse"),re.offsetHeight,re.classList.add("to-dark");const ee=()=>{re.classList.remove("pulse","to-dark"),re.removeEventListener("transitionend",ee)};re.addEventListener("transitionend",ee)}catch{}})}catch{}P()},le=()=>{if(g.current){try{document.body.removeChild(g.current)}catch{}g.current=null}A.current&&(document.removeEventListener("dragover",A.current),A.current=null),w.current&&(document.removeEventListener("mousemove",w.current),w.current=null),B.current!==null&&(cancelAnimationFrame(B.current),B.current=null)},q=()=>{_(null),P(),le()};s.useEffect(()=>()=>le(),[]);const P=()=>{try{if(N.current!==null&&(clearTimeout(N.current),N.current=null),S.current){try{S.current.classList.remove("drag-over")}catch{}S.current=null}document.querySelectorAll(".order-list .order-list__item").forEach(M=>M.classList.remove("drag-over"))}catch{}};return s.useEffect(()=>{try{const M=Math.max(1,(h||[]).length);h.forEach((L,z)=>{const $=F.current.get(L.id);if(!$)return;let E=50;M>1&&(E=Math.round(z/(M-1)*100));try{$.style.setProperty("--marker-pos",E+"%")}catch{}})}catch{}},[h]),s.useEffect(()=>()=>{le(),N.current!==null&&(clearTimeout(N.current),N.current=null)},[]),t.jsx(Hn,{index:e,stepIndex:n,isLast:a,title:u,children:t.jsx("div",{className:"order-list",children:h.map((M,L)=>{const z=Math.max(1,(h||[]).length),$=z>1?Math.round(L/(z-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":$+"%"},ref:E=>{const I=F.current;E?I.set(M.id,E):I.delete(M.id)},children:t.jsx("span",{className:"order-list__slot-number button-1",children:L+1})}):null,t.jsxs("div",{ref:E=>{const I=j.current;E?I.set(M.id,E):I.delete(M.id)},className:`order-list__draggable ${x===L?"dragging":""}`,"data-disabled":y==="disabled","aria-disabled":y==="disabled",tabIndex:y==="disabled"?-1:0,draggable:f,onDragStart:f?E=>R(L,E):void 0,onDragEnter:f?E=>O(L,E):void 0,onDragOver:f?E=>O(L,E):void 0,onDragLeave:f?()=>{try{N.current!==null&&clearTimeout(N.current),N.current=setTimeout(()=>{try{const E=document.querySelectorAll(".order-list .order-list__item");E&&E[L]&&(E[L].classList.remove("drag-over"),S.current===E[L]&&(S.current=null))}catch{}},80)}catch{}}:void 0,onDrop:f?E=>W(L,E):void 0,onDragEnd:f?q:void 0,children:[t.jsx("span",{className:"order-list__item-text body-2",children:M.text}),f?t.jsxs("span",{className:"order-list__item-buttons",children:[t.jsx(ce,{htmlType:"button",size:32,type:"dot",onClick:()=>b(L,-1),ariaLabel:c("training.up"),icon:"chevron-up",variant:"transparent-gray",width:48,useFaded:"true",disabled:L===0,useBorder:!1,useDisabledInvisible:!0}),t.jsx(ce,{htmlType:"button",size:32,type:"dot",onClick:()=>b(L,1),ariaLabel:c("training.down"),icon:"chevron-down",variant:"transparent-gray",width:48,useFaded:"true",disabled:L===h.length-1,useBorder:!1,useDisabledInvisible:!0})]}):null]})]})},M.id)})})})}const Ty=8e3;function jy(e,n){return new Promise(a=>{let r=!1;const o=()=>{r||(r=!0,a())};e.then(o,o),setTimeout(o,n)})}function lc({index:e,stepIndex:n,isLast:a=!1,title:r,onDone:o,onChange:i,context:l=[],selectable:c=!1,hideLabel:u=!1,hideAudio:d=!1,maxCards:p}){const{t:m}=pe.useTranslation(),h=r??m("training.cardInstructions","\uB0B1\uB9D0 \uCE74\uB4DC\uB97C \uBCF4\uACE0 \uC18C\uB9AC\uB97C \uB4E3\uACE0 \uD655\uC778\uD558\uC138\uC694."),C=s.useMemo(()=>Array.isArray(l)?l:l&&l.items||[],[l]),y=p??3,f=(C||[]).slice(0,y);(C||[]).length>y&&console.warn(`TrainingStepCard: ${C.length} items passed but only ${y} shown`);const v=typeof e=="number"?e:-1,b=typeof n!="number"?"disabled":v<n?"done":v===n?"active":"disabled",[x,_]=s.useState(null),g=s.useRef([]),[A,w]=s.useState(!1),S=s.useRef(!0);s.useEffect(()=>(S.current=!0,()=>{S.current=!1}),[]);const N=s.useMemo(()=>C.map(j=>j?.id??j?.word??"").join("|"),[C]);s.useEffect(()=>{_(null)},[N]);const k=s.useRef(void 0);s.useEffect(()=>{const j=k.current;typeof j=="number"&&typeof n=="number"&&typeof e=="number"&&j>=e&&n<e&&_(null),k.current=n},[n,e]);const B=s.useCallback((j,F)=>{if(c)return;const T={item:j,index:F,__ts:Date.now()};try{typeof i=="function"&&i(T)}catch{}if(b==="active"&&typeof o=="function")try{o(T)}catch{}},[c,i,b,o]),V=s.useCallback(async()=>{if(!(A||b==="disabled")){w(!0);try{for(let j=0;j<f.length&&S.current;j++){const F=g.current[j];F&&await jy(F.play(),Ty)}}finally{w(!1)}}},[A,b,f.length]),H=s.useCallback((j,F)=>{if(b!=="active")return;_(F);const T={selectedValue:j.word||j.title||"",selectedIndex:F,item:j,__ts:Date.now()};try{typeof i=="function"&&i(T)}catch{}if(b==="active"&&typeof o=="function")try{o(T)}catch{}},[i,b,o]);return t.jsx(Hn,{index:e,stepIndex:n,isLast:a,title:h,onDone:o,titleProps:{usePlayAllBtn:!d&&f.length>0,onPlayAll:V,playAllActive:A},children:t.jsx("div",{className:"training-step__cards",children:f.length===0?t.jsx("div",{className:"training-step__empty",children:m("training.noCards","\uCE74\uB4DC\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4.")}):f.map((j,F)=>t.jsx(Ur,{ref:T=>{g.current[F]=T},item:j,disabled:b==="disabled",onPlayDone:()=>B(j,F),selectable:c,selected:c&&x===F,onSelect:c?()=>H(j,F):void 0,flipDelay:F*120,hideLabel:u,hideAudio:d},j&&j.id||F))})})}const Ey=160,My={\uBCF4\uCCAD\uAE30:"hearingAid",\uC778\uACF5\uC640\uC6B0:"cochlearImplant"};function Ly(e,n){const a=My[e];return a?n(`device.type.${a}`,{defaultValue:e}):e}const cc=()=>{};function Bn(e){const n=s.useId();if(!("variant"in e)){const{label:b,sub:x,onClick:_,children:g,align:A="horizontal",icon:w}=e,S=N=>{_&&N.target===N.currentTarget&&(N.key==="Enter"||N.key===" ")&&(N.preventDefault(),_())};return t.jsxs("div",{className:ge("panel-row",A==="vertical"?"panel-row--vertical":"",_?"panel-row--clickable":""),onClick:_,onKeyDown:_?S:void 0,role:_?"button":void 0,tabIndex:_?0:void 0,children:[w!=null&&t.jsx("div",{className:"panel-row__icon",children:w}),b!=null&&t.jsxs("div",{className:"panel-row__left",children:[t.jsx("div",{className:"panel-row__label body-3",children:b}),x&&t.jsx("div",{className:"panel-row__sub caption-1",children:x})]}),t.jsx("div",{className:"panel-row__right",children:g})]})}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(ga,{size:28})});if(e.variant==="custom"&&!e.label)return t.jsx("div",{className:"panel-row panel-row--block",children:e.children});const{variant:a,label:r,sub:o,onClick:i,required:l,error:c,align:u="horizontal",useFullWidth:d=!1,icon:p}=e,m=a==="button"?void 0:i;let h=null;const C=a==="toggle"?`panel-toggle-${n}`:void 0,y=c?`panel-error-${n}`:void 0;if(a==="toggle"){const b=e;h=t.jsx(el,{checked:b.checked,onChange:b.onChange,id:C})}else if(a==="segmented"){const b=e;h=t.jsx(On,{options:b.options,value:b.value,onChange:b.onChange,size:b.size??40,ariaLabel:r})}else if(a==="dropdown"){const b=e,x=b.dropdowns?.length?t.jsx("div",{className:`panel-row__dropdown-group${d?" panel-row__dropdown-group--full":""}`,children:b.dropdowns.map((_,g)=>t.jsx("div",{className:d?"panel-row__dropdown-item--full":void 0,children:t.jsx(en,{options:_.options,value:_.value,onChange:_.onChange,placeholder:_.placeholder,block:d,error:!!c,ariaDescribedBy:y,ariaLabel:_.ariaLabel??([r,_.placeholder].filter(Boolean).join(" ")||void 0)})},g))}):t.jsx(en,{options:b.options??[],value:b.value??"",onChange:b.onChange??cc,block:d,error:!!c,ariaLabel:r,ariaDescribedBy:y});h=c?t.jsxs("div",{className:`panel-row__dropdown-error-wrap${d?" panel-row__dropdown-error-wrap--full":""}`,children:[x,t.jsx("span",{id:y,className:"caption-1 panel-row__error",role:"alert",children:c})]}):x}else if(a==="button"){const b=e;b.buttons?.length?h=t.jsx("div",{className:"panel-row__button-group",children:b.buttons.map((x,_)=>t.jsx(ce,{htmlType:"button",size:x.btnSize??40,variant:x.btnVariant??"default",disabled:x.disabled,onClick:x.onClick,children:x.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${d?" 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${d?" panel-row__input-wrap--full":""}`,children:[t.jsx(Fn,{value:b.value,onChange:b.onChange??cc,onKeyDown:b.onKeyDown,onEnter:b.onEnter,placeholder:b.placeholder,inputMode:b.inputMode,readOnly:b.readOnly,disabled:b.disabled,type:b.type,autoComplete:b.autoComplete,maxLength:b.maxLength,showCount:b.showCount,multiline:b.multiline,rows:b.rows,fullWidth:d,error:c,ariaLabel:r,required: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${d?" panel-row__dropdown-error-wrap--full":""}`,children:[h,t.jsx("span",{id:y,className:"caption-1 panel-row__error",role:"alert",children:c})]}));const f=a==="input"||a==="dropdown"||(a==="text"||a==="custom")&&d,v=b=>{m&&b.target===b.currentTarget&&(b.key==="Enter"||b.key===" ")&&(b.preventDefault(),m())};return t.jsxs("div",{className:ge("panel-row",u==="vertical"?"panel-row--vertical":"",f?"panel-row--label-fixed":"",a==="text"?"panel-row--text":"",m?"panel-row--clickable":""),onClick:m,onKeyDown:m?v: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:[C?t.jsxs("label",{htmlFor:C,className:"panel-row__label body-3",children:[r,l&&t.jsx("span",{className:"required-mark",children:"*"})]}):t.jsxs("div",{className:"panel-row__label body-3",children:[r,l&&t.jsx("span",{className:"required-mark",children:"*"})]}),o&&t.jsx("div",{className:"panel-row__sub caption-1",children:o})]}),t.jsx("div",{className:"panel-row__right",children:h})]})}function uc(e){const n=e.productName||e.brand,a=[e.brand,e.fitType].filter(r=>!!r&&r!==n);return[...new Set(a)].join(" \xB7 ")}function $y({devices:e,onRelease:n,emptyLabel:a}){const{t:r}=pe.useTranslation();return t.jsx("div",{className:"panel-row panel-row--device",children:["\uC88C","\uC6B0"].map(o=>{const i=e[o],l=o==="\uC88C"?r("device.direction.left","\uC88C"):r("device.direction.right","\uC6B0");return t.jsxs("div",{className:"panel-row__device-column",children:[t.jsxs("div",{className:"panel-row__device-head",children:[t.jsx("span",{className:"panel-row__device-side body-2b",children:l}),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(o)})]}),i?t.jsxs("div",{className:"panel-row__device-info",children:[t.jsxs("span",{className:"panel-row__device-kind",children:[i.device&&t.jsx(ut,{size:"small",variant:gl(i.device),fill:"soft",label:Ly(i.device,r)}),uc(i)&&t.jsx("span",{className:"panel-row__device-detail body-3",children:uc(i)})]}),t.jsx("span",{className:"panel-row__device-name body-2b",children:i.productName||i.brand}),t.jsx("span",{className:"panel-row__device-date caption-1",children:r("customers.device.wornSince",{date:`${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")})]},o)})})}function Ga({title:e,icon:n,disc:a,actions:r,size:o="medium",minHeight:i,maxWidth:l,className:c,scrollable:u,scrollbarGutter:d="auto",compactRows:p=!1,useBorder:m=!0,useBg:h=!0,useRowBorder:C=!0,labelWidth:y,form:f=!1,loading:v,empty:b,children:x}){const _=ge("panel",`panel--${o}`,f?"panel--form":"",i!==void 0?"panel--fill":"",m?"":"panel--no-border",h?"":"panel--no-bg",C?"":"panel--no-row-border",p?"panel--compact-rows":"",c),g={};return i!==void 0&&(g.minHeight=i),l!==void 0&&(g.maxWidth=typeof l=="number"?`${l}px`:l),y!==void 0&&(g["--panel-label-width"]=typeof y=="number"?`${y}px`:y),t.jsxs("div",{className:_,style:Object.keys(g).length?g:void 0,children:[(e!=null||a!=null)&&t.jsxs("div",{className:ge("panel__header",a!=null?"panel__header--with-disc":""),children:[n&&t.jsx(We,{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})]}),v?t.jsx(Bn,{variant:"loading"}):b!=null&&s.Children.toArray(x).length===0?t.jsx(Bn,{variant:"empty",children:b}):u?t.jsx("div",{className:ge("panel__body--scroll",d==="stable"&&"panel__body--gutter-stable"),children:x}):x]})}function Ry({cols:e=2,children:n}){return t.jsx("div",{className:"panel-grid",style:{"--panel-grid-cols":e},children:n})}function Py(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 dc(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"}]}Py(Lt.t.bind(Lt)),dc(Lt.t.bind(Lt));const fo="none",Iy=.5,Fy=1.5,Oy=.25;function Co({title:e,valueLabel:n,value:a,min:r,max:o,step:i,tickStep:l,size:c,onChange:u}){return t.jsxs(Bn,{variant:"custom",label:e,useFullWidth:!0,children:[t.jsx(ml,{value:a,onChange:u,min:r,max:o,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 pc({anchorRect:e,onClose:n}){const{t:a}=pe.useTranslation(),r=rn("(max-width: 767px)")?40:24,o=Wa(),i=ba(o?.settings??va),l=o?.settings.type??"defaultNoise",c=o?.settings.enabled??!0,u=o?.playbackRate??1,d=o?.mainVolume??1,p=Math.round(d*100),m=s.useCallback(f=>{try{o?.setMainVolume(Math.max(0,Math.min(1,f/100)))}catch{}},[o]),h=s.useCallback(f=>{try{o?.setPlaybackRate(f)}catch{}},[o]),C=s.useCallback(f=>{const v=Math.min(za,Math.max(0,Math.round(f*10)/10));try{o?.setSettings({noiseRatio:v})}catch{}},[o]),y=s.useCallback(f=>{try{f===fo?o?.setSettings({enabled:!1}):o?.setSettings({type:f,enabled:!0})}catch{}},[o]);return t.jsx(wn,{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(Ga,{className:"noise-settings",useBorder:!1,labelWidth:72,children:[t.jsx(Co,{title:a("training.playVolumeTitle","\uC804\uCCB4 \uC18C\uB9AC"),valueLabel:`${p}%`,value:p,min:0,max:100,step:10,size:r,onChange:m}),t.jsx(Co,{title:a("training.playSpeedTitle","\uC7AC\uC0DD \uC18D\uB3C4"),valueLabel:`${u.toFixed(2)}x`,value:u,min:Iy,max:Fy,step:Oy,size:r,onChange:h}),t.jsx(Bn,{variant:"custom",label:a("training.noiseTypeTitle","\uC18C\uC74C \uC885\uB958"),useFullWidth:!0,children:t.jsx(On,{ariaLabel:a("training.noiseTypeTitle","\uC18C\uC74C \uC885\uB958"),size:40,shape:"rounded",options:[{key:fo,label:a("training.noise.type.none","\uC5C6\uC74C")},...dc(a).map(f=>({key:f.value,label:f.label}))],value:c?l:fo,onChange:y})}),t.jsx(Co,{title:a("training.noiseRatioTitle","\uC18C\uC74C \uBE44\uC728"),valueLabel:a("training.noiseRatioValue","{{ratio}}\uBC30",{ratio:i.toFixed(1)}),value:i,min:0,max:za,step:Zl,size:r,onChange:C})]})})}function mc({useNoiseSettingBtn:e=!1,onSettings:n,onNext:a,onResult:r,stepIndex:o=0,stepCount:i=0,pageIndex:l=0,pageCount:c=1}){const{t:u}=pe.useTranslation(),[d,p]=s.useState(!1),[m,h]=s.useState(null),[C,y]=s.useState(!1),f=s.useRef(null),v=s.useRef(null),b=Wa(),x=l<c-1,_=l===c-1,g=o===Math.max(0,i);s.useEffect(()=>{e||(p(!1),h(null))},[e]);const A=s.useCallback(()=>{p(!1),h(null)},[]),w=s.useCallback(()=>{if(d){p(!1),h(null);return}const k=f?.current?.getBoundingClientRect();k&&h(k),n?.(),p(!0)},[d,n]),S=s.useCallback(()=>{if(d){p(!1),h(null);return}const k=v?.current?.getBoundingClientRect();k&&h(k),n?.(),p(!0)},[d,n]),N=s.useCallback(()=>y(k=>!k),[]);return t.jsxs("div",{className:"pp-bottom",children:[t.jsxs("div",{className:"pp-bottom__left",children:[e?t.jsxs(t.Fragment,{children:[t.jsx("div",{className:"pp-bottom__settings--desktop",children:t.jsx("div",{ref:f,className:"pp-bottom__tooltip-trigger","data-tooltip-ignore":!0,children:t.jsx(ce,{htmlType:"button",size:56,type:"bar",icon:"settings",onClick:w,selected:d,ariaLabel:u("training.trainingSettingsTitle","\uD6C8\uB828 \uC124\uC815"),label:u("training.trainingSettingsTitle","\uD6C8\uB828 \uC124\uC815"),minWidth:140})})}),t.jsx("div",{className:"pp-bottom__settings--mobile",children:t.jsx("div",{ref:v,className:"pp-bottom__tooltip-trigger","data-tooltip-ignore":!0,children:t.jsx(ce,{htmlType:"button",size:56,type:"dot",icon:"settings",onClick:S,selected:d,ariaLabel:u("training.settings","\uC124\uC815"),minWidth:52})})})]}):null,e&&t.jsx(ce,{htmlType:"button",size:40,type:"dot",shape:"pill",icon:"audio-lines",onClick:N,selected:C,ariaLabel:u("training.meter.toggle","\uC624\uB514\uC624 \uBBF8\uD130 \uD45C\uC2DC")}),e&&C&&t.jsxs("div",{className:"pp-bottom__meters",children:[t.jsxs("div",{className:"pp-bottom__meter",children:[t.jsx("span",{className:"pp-bottom__meter-label caption-1",children:u("training.meter.sentence","\uC7AC\uC0DD")}),t.jsx(Fr,{analyser:b?.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(Fr,{analyser:b?.noiseAnalyser??null,orientation:"horizontal",length:112,label:"db",labelPos:"left",ariaLabel:u("training.meter.noise","\uC18C\uC74C")})]})]})]}),t.jsxs("div",{className:"pp-bottom__right",children:[_&&t.jsx(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:!g}),x&&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:!g})]}),e&&d&&t.jsx(pc,{anchorRect:m,onClose:A})]})}function hc({title:e,subtitle:n,desc:a,depth:r,icon:o,wrapperStyle:i,iconTooltip:l,pageIndex:c,pageCount:u,progressMax:d,progressIndex:p,onBack:m,onClose:h}){const{t:C}=pe.useTranslation(),y=rn("(max-width: 767px)"),f=Number.isInteger(p)?p:c||0,v=Number.isInteger(d)?d:u||0,b=m||h,x=Array.isArray(r)?y?r[r.length-1]:r.join(" / "):r,_=typeof e=="string"?e.trim():e,g=typeof n=="string"?n.trim():n,A=!!(_||g),w=A?_||g:C("common.emptyTrainingName","\uD6C8\uB828 \uC774\uB984\uC774 \uBE44\uC5B4 \uC788\uC2B5\uB2C8\uB2E4."),S=x||(_?n:void 0),N=y&&typeof S=="string"&&(S.includes(" \xB7 ")||S.includes(" / "))?S.split(/\s[·/]\s/).pop():S,k=s.useMemo(()=>{const B=i&&typeof i=="object"?{...i}:{};return!("width"in B)&&!("height"in B)&&(B.width="40px",B.height="40px"),B},[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:C("common.back","\uB4A4\uB85C"),onClick:b,useBorder:!1,iconSize:"large",iconColor:"--color-black",variant:"transparent-gray"}):null,t.jsx("div",{children:o?t.jsx(vl,{icon:o,label:e,tooltip:l,wrapperStyle:k}):null}),t.jsxs("div",{className:"pp-title__text",children:[N?t.jsx("span",{className:"pp-title__depth caption-1",children:N}):null,t.jsx("span",{className:`pp-title__title h2${A?"":" pp-title__title--empty"}`,children:w}),a?t.jsx("span",{className:"pp-title__description caption-1",children:a}):null]})]}),t.jsx(Cl,{max:Math.max(0,v??0),index:Math.max(0,f??0)})]})}function Hy(){typeof window<"u"&&window.dispatchEvent(new CustomEvent("speechear.popup.close"))}function Vy(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 fc=(e,n)=>{if(!n)return n;const a=typeof Lt?.t=="function"?Lt.t(e,{defaultValue:n}):void 0;return typeof a=="string"&&a?a:n};function Cc(e,n,a){const r=e,o=r?.title||r?.name||(Array.isArray(n)?n[n.length-1]:void 0)||a||"\uD6C8\uB828",i=Ls().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:o,label:r?.title||o,depth:n,icon:i?.icon,wrapperStyle:i?.color?{"--t-item-fg":i.color}:void 0,iconTooltip:[i?fc(`topic.${i.key}`,i.label):void 0,l?fc(`topic.sub.${l.key}`,l.label):void 0].filter(Boolean).join(" / ")||void 0}}function go(e){return e&&typeof e=="object"&&typeof e.__ts=="number"?e.__ts:0}function zy(e){const n=e;return Array.isArray(n?.items)?n.items:Array.isArray(e)?e:e?[e]:[]}function Wy({idPrefix:e,trainingData:n,depth:a,fallbackTitle:r="\uD6C8\uB828",pages:o=[],emptyMessage:i,buildResults:l,metaPatch:c}){const u=Cc(n,a,r),d=typeof c=="function"?c(u)||{}:c||{},p=n?.id||n?.title||o.length;return{id:`${e}:${p}`,meta:{...u,...d},pages:o,emptyMessage:i,buildResults:l}}function qy(e){if(typeof e=="string")return e;if(e&&typeof e=="object"){const n=e;return n.context||n.sentence||n.question||""||""}return""}function Uy(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 Gy(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 gc(e,n){if(!(!e||typeof e!="object"))return e[`step-${n}`]}function Ky(e,n,a,r){return gc(e,n*a+r)}function Yy({payload:e,selected:n,choices:a=[],correctAnswers:r=[]}){if(e&&typeof e=="object"){const o=e;if(Array.isArray(o.selectedValues))return r.every(i=>o.selectedValues.includes(i))&&o.selectedValues.every(i=>r.includes(i));if(typeof o.correct=="boolean")return o.correct}if(r.length){if(typeof n=="number"&&Array.isArray(a)&&a.length)return r.some(o=>String(o)===String(a[n]));if(typeof n<"u")return r.some(o=>String(o)===String(n))}}function Zy(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 bc=s.createContext(null);function Xy(){const e=s.useContext(bc);if(!e)throw new Error("useTrainingPagePopupContext must be used inside TrainingPagePopup");return e}function Jy({index:e,stepIndex:n,isLast:a=!1,title:r,choices:o=[],onDone:i,onChange:l}){const{t:c}=pe.useTranslation(),u=typeof e=="number"?e:-1,d=typeof n!="number"?"disabled":u<n?"done":u===n?"active":"disabled",[p,m]=s.useState(()=>o.map(()=>null)),h=JSON.stringify(o),C=o.length;s.useEffect(()=>{m(Array.from({length:C},()=>null))},[h]);const y=s.useMemo(()=>p.filter(b=>b!==null).length+1,[p]),f=s.useCallback(b=>{if(d!=="active")return;const x=p;let _;if(x[b]!=null){const A=x[b];_=x.map(w=>w!==null&&w>=A?null:w)}else _=[...x],_[b]=y;m(_);const g={selectedOrder:_,words:o,__ts:Date.now()};try{typeof l=="function"&&l(g)}catch{}if(x[b]==null&&_.length>0&&_.every(A=>A!==null))try{typeof i=="function"&&i(g)}catch{}},[d,p,y,l,i,o]),v=r??c("training.selectInOrder","\uB4E4\uC740 \uC21C\uC11C\uB300\uB85C \uCE74\uB4DC\uB97C \uC120\uD0DD\uD558\uC138\uC694.");return t.jsx(Hn,{index:e,stepIndex:n,isLast:a,title:v,onDone:i,children:t.jsx("div",{className:"training-step__cards",children:o.map((b,x)=>t.jsx(Ur,{item:{word:b},disabled:d==="disabled",selectable:!0,selected:p[x]!==null,orderRank:p[x],onSelect:()=>f(x),flipDelay:x*120,hideLabel:!1,hideAudio:!0},`${b}-${x}`))})})}function Ka(e){return null}Ka.__isTrainingPage=!0;function Qn(e,n){const a=Xy();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 yc({_stepIndex:e,_totalSteps:n,...a}){const{index:r,stepIndex:o,isLast:i,onDone:l}=Qn(e,n);return t.jsx(mo,{...a,index:r,stepIndex:o,isLast:i,onDone:l})}function vc({_stepIndex:e,_totalSteps:n,...a}){const{index:r,stepIndex:o,isLast:i,onDone:l,onChange:c}=Qn(e,n);return t.jsx(uo,{...a,index:r,stepIndex:o,isLast:i,onDone:l,onChange:c})}function xc({_stepIndex:e,_totalSteps:n,...a}){const{index:r,stepIndex:o,isLast:i,onDone:l,onChange:c}=Qn(e,n);return t.jsx(po,{...a,index:r,stepIndex:o,isLast:i,onDone:l,onChange:c})}function _c({_stepIndex:e,_totalSteps:n,...a}){const{index:r,stepIndex:o,isLast:i,onDone:l,onChange:c}=Qn(e,n);return t.jsx(ho,{...a,index:r,stepIndex:o,isLast:i,onDone:l,onChange:c})}function wc({_stepIndex:e,_totalSteps:n,...a}){const{index:r,stepIndex:o,isLast:i,onDone:l,onChange:c}=Qn(e,n);return t.jsx(lc,{...a,index:r,stepIndex:o,isLast:i,onDone:l,onChange:c})}function Qy({_stepIndex:e,_totalSteps:n,...a}){const{index:r,stepIndex:o,isLast:i,onDone:l,onChange:c}=Qn(e,n);return t.jsx(Jy,{...a,index:r,stepIndex:o,isLast:i,onDone:l,onChange:c})}function bo(...e){for(const n of e)if(typeof n=="string"){const a=n.trim();if(a.length)return a}else{if(typeof n=="number"||typeof n=="boolean")return String(n);if(Array.isArray(n)&&n.length)return n.join(", ");if(n&&typeof n=="object"){const a=n,r=[a.text,a.label,a.value];for(const o of r){if(typeof o=="string"&&o.trim().length)return o.trim();if(typeof o=="number"||typeof o=="boolean")return String(o)}}}return null}function e5(e){return bo(e?.question,e?.q,e?.sentence,e?.text,e?.prompt,e?.wording)}function kc(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=bo(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 Ac(e){const{score:n,contextsLength:a,results:r=[],subtitle:o,onReplay:i,onClose:l,inline:c=!1}=e||{},{t:u}=pe.useTranslation();s.useEffect(()=>{const f=a??0;if(n!=null&&f>0&&n/f>.5){const v=window.setTimeout(()=>{window.dispatchEvent(new CustomEvent("party:trigger",{detail:{count:140,strength:1.6,duration:2200}}))},0);return()=>window.clearTimeout(v)}},[n,a]);const d=s.useCallback(f=>{const v=kc(f),b=bo(f?.wording,f?.label);return v===!0?{variant:"main",label:b??u("training.result.heardWell","\uC798 \uB4E4\uC5C8\uC5B4\uC694")}:v===!1?{variant:"danger",label:b??u("training.result.notHeard","\uBABB \uB4E4\uC5C8\uC5B4\uC694")}:{variant:"disabled",label:b??u("training.result.notJudged","\uBBF8\uD310\uC815")}},[u]),p=a??0,m=n??0,h=s.useMemo(()=>Array.isArray(r)?r:[],[r]),C=s.useMemo(()=>h.map(f=>{const v=f??{},b=e5(v)||u("training.result.noContent","(\uB0B4\uC6A9\uC5C6\uC74C)"),{variant:x,label:_}=d(v),g=Array.isArray(v.corrects)?v.corrects:[],A=g.length?g.join(", "):v.answer!=null&&v.answer!==""?String(v.answer):null,w=typeof v.selectedText=="string"?v.selectedText:null,S=kc(v)===!0;return{problem:b,variant:x,label:_,answer:A,selectedText:w,isCorrect:S}}),[h,d,u]),y=s.useMemo(()=>C.some(f=>f.answer!==null||f.selectedText!==null),[C]);return t.jsx(Nn,{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",footerClassName:"trp-result__foot",footer:({animateThen:f,closeWithAnimation:v})=>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:()=>f(i)}),t.jsx(ce,{htmlType:"button",size:56,type:"bar",label:u("training.result.done","\uC644\uB8CC"),variant:"main",onClick:v})]}),children:()=>t.jsxs("div",{className:"trp-result is-on",children:[t.jsxs("header",{className:"trp-result__head",children:[t.jsx("p",{className:"trp-result__eyebrow caption-1",children:u("training.result.eyebrow","\uD6C8\uB828 \uC644\uB8CC")}),t.jsx("h1",{className:"trp-result__title h2",children:u("training.result.title","\uD6C8\uB828\uC744 \uBAA8\uB450 \uB9C8\uCCE4\uC2B5\uB2C8\uB2E4.")}),o&&t.jsx("p",{className:"trp-result__subtitle body-3",children:o}),t.jsx("div",{className:"trp-score",children:t.jsxs("div",{className:"trp-score__figure","aria-label":u("training.result.scoreAria",{correct:m,total:p}),children:[t.jsx("span",{className:"trp-score__big",children:m}),t.jsx("span",{className:"trp-score__sep",children:"/"}),t.jsx("span",{className:"trp-score__total",children:p})]})})]}),C.length>0&&t.jsx("section",{className:"trp-result__body",children:t.jsxs("div",{className:`result-table${y?" 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")}),y&&t.jsx("span",{role:"columnheader",children:u("training.result.colAnswerSelected","\uC815\uB2F5 \xB7 \uC120\uD0DD")}),t.jsx("span",{className:"col-right",role:"columnheader",children:u("training.result.colJudge","\uD310\uC815")})]}),C.map((f,v)=>t.jsxs("div",{className:"result-table__row",role:"row",children:[t.jsxs("div",{className:"trp-row__problem",children:[t.jsx("span",{className:"trp-row__no caption-1",children:String(v+1).padStart(2,"0")}),t.jsx("div",{className:"trp-row__q body-2",children:f.problem})]}),y&&t.jsxs("div",{className:"trp-row__answers",children:[f.answer!==null&&t.jsxs("div",{className:"trp-row__answer-line",children:[t.jsx("span",{className:"trp-row__answer-label answer-correct caption-1",children:u("training.result.colAnswer","\uC815\uB2F5")}),t.jsx("span",{className:"trp-row__answer-value body-2",children:f.answer})]}),t.jsxs("div",{className:"trp-row__answer-line",children:[t.jsx("span",{className:`trp-row__answer-label answer-selected caption-1 ${f.isCorrect?"is-correct":"is-wrong"}`,children:u("training.result.colSelected","\uC120\uD0DD")}),t.jsx("span",{className:`trp-row__answer-value body-2 ${f.isCorrect?"is-correct":"is-wrong"}`,children:f.selectedText??"\u2014"})]})]}),t.jsx("div",{className:"trp-row__judge",children:t.jsx(ut,{variant:f.variant,label:f.label,fill:"soft",minWidth:80})})]},v))]})})]})})}function t5(e){s.useEffect(()=>{if(!e)return;const n=new Date;return()=>{const a=new Date;a.getTime()-n.getTime()<5e3||D0({trainingType:e,startedAt:n.toISOString(),endedAt:a.toISOString()})}},[e])}function yo(e,n){return e&&e.id||`page-${n??0}`}function vo(e,n){return e&&e.key||`step-${n??0}`}function Ya(){return{pageIndex:0,stepIndex:0,answersByPage:{}}}function n5(e,n){return typeof e?.props=="function"?e.props(n)||{}:e?.props||{}}const Nc=new Set(["LISTEN_IN_NOISE","SHORT_STORY","LONG_STORY","ORDERING_SENTENCE"]),a5=e=>t.jsx(Ac,{score:e.score,contextsLength:e.contextsLength,results:e.results,onReplay:e.onReplay,onClose:e.onClose});function r5(e){const{scenario:n,title:a,subTitle:r,depth:o,icon:i,wrapperStyle:l,iconTooltip:c,pageIndex:u,pageCount:d,stepIndex:p,stepCount:m,onBack:h,onComplete:C,onNext:y,onSettings:f,useNoiseSetting:v=!0,children:b,ariaLabel:x,label:_,buildResults:g,onResult:A,typeKey:w,entryPoint:S,dailyTotal:N,itemRef:k,renderResultPopup:B,noiseOverride:V}=e;t5(w&&!Nc.has(w)?w:"");const H=s.useRef(0);s.useEffect(()=>{H.current=Date.now()},[]);const{t:j}=pe.useTranslation(),F=A,T=!!n,Y=n?.id||null,R=n?.meta||{},O=Array.isArray(n?.pages)?n.pages:[],W=Array.isArray(b)||s.isValidElement(b)&&typeof b!="function"?s.Children.toArray(b).filter(s.isValidElement):[],le=W.length>0,q=ae=>ae===Ka||ae?.__isTrainingPage===!0,P=le&&W.some(ae=>q(ae.type)),M=P?W.filter(ae=>q(ae.type)).map((ae,G)=>{const ne=ae.props||{};return{id:`children-page-${G}`,steps:s.Children.toArray(ne.children).filter(s.isValidElement),pageTop:ne.pageTop||ne.top||null,pageBottom:ne.pageBottom||ne.bottom||null}}):[{id:"children-page-0",steps:W}],L=le&&!T&&typeof b!="function",z=L?Math.max(1,M.length):0;s.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")}},[]),s.useEffect(()=>{if(typeof document>"u"||!document.body)return;const ae=document.body;return ae.dataset.ihabTrainingPopupCount=String(Number(ae.dataset.ihabTrainingPopupCount||"0")+1),ae.classList.add("ihab-training-popup-open"),()=>{const G=Number(ae.dataset.ihabTrainingPopupCount||"1")-1;G>0?ae.dataset.ihabTrainingPopupCount=String(G):(delete ae.dataset.ihabTrainingPopupCount,ae.classList.remove("ihab-training-popup-open"))}},[]),s.useEffect(()=>{if(!(typeof document>"u"||!document.body))return c4()},[]);const[$,E]=s.useState({...va,enabled:!1}),I=s.useRef($);s.useEffect(()=>{I.current=$},[$]);const oe=s.useRef(V),re=s.useRef(!1),ee=s.useRef(null);s.useEffect(()=>{let ae=!1;const G=ne=>{if(ae)return;re.current=!0;const ke=ne?ya({...va,enabled:!1},ne):{...va},Ne=ee.current;ee.current=null;const Be=Ne?ya(ke,Ne):ke;I.current=Be,E(Be),Ne&&!oe.current&&Ds(Be),Sa(Be);const qe=oe.current;if(qe){const X=typeof qe=="function"?qe(Be):qe,he=ya(Be,X);I.current=he,E(he),Sa(he)}};return M0().then(G),()=>{ae=!0}},[]);const[se,Ce]=s.useState(null),[Z,ie]=s.useState(null),J=s.useCallback((ae,G)=>{ae==="main"?Ce(G):ie(G)},[]),be=s.useCallback(ae=>{const G=ya(I.current,ae);if(I.current=G,E(G),!re.current){ee.current={...ee.current??{},...ae},Sa(G);return}oe.current||Ds(G),Sa(G)},[]),ve=$.mainSpeed,Te=$.mainVolume,de=s.useCallback(ae=>be({mainSpeed:ae}),[be]),ye=s.useCallback(ae=>be({mainVolume:ae}),[be]),we=s.useMemo(()=>({settings:$,setSettings:be,registerAnalyser:J,mainAnalyser:se,noiseAnalyser:Z,playbackRate:ve,setPlaybackRate:de,mainVolume:Te,setMainVolume:ye}),[$,be,J,se,Z,ve,de,Te,ye]),Q=s.useRef(null),[te,_e]=s.useState(0),[je,ze]=s.useState("center"),[Me,Oe]=s.useState(!1),Re=s.useRef(!1),tt=s.useRef(null),Ke=s.useCallback(ae=>{Re.current||(Re.current=!0,Oe(!0),tt.current=setTimeout(()=>{try{ae()}catch{Re.current=!1,Oe(!1)}},Ey))},[]);s.useEffect(()=>()=>{tt.current&&clearTimeout(tt.current)},[]);const Ue=s.useRef(h);s.useEffect(()=>{Ue.current=h}),s.useEffect(()=>{const ae=Q.current,G=document.activeElement;if(Er(ae,G),ae){const ne=Array.from(ae.querySelectorAll(Ln)).filter(ke=>!ke.closest('[aria-hidden="true"]'))[0];if(ne)try{ne.focus()}catch{}}return()=>{const ne=document.activeElement;if(!ne||ne===document.body||ae&&ae.contains(ne))try{Mr(G)?.focus?.()}catch{}}},[]),s.useEffect(()=>$n(()=>Ke(()=>{const ae=Ue.current;typeof ae=="function"&&ae()})),[Ke]),vr(Q,!0);const[fe,Ge]=s.useState(!1),Ee=s.useRef(!1),[$e,He]=s.useState(null),Ye=s.useRef(0),gt=()=>{Ye.current+=1,He(null)},[dt,st]=s.useState(""),[nt,at]=s.useState(()=>Ya()),Fe=s.useRef(typeof u=="number"?u:null);s.useEffect(()=>{!T&&!L||(at(Ya()),gt())},[T,Y,L]),s.useEffect(()=>{L&&at(ae=>{const G=Math.max(0,Math.min(ae.pageIndex,Math.max(0,z-1)));return G!==ae.pageIndex?{...ae,pageIndex:G,stepIndex:0}:ae})},[L,z]);const Qe=L?Math.max(0,Math.min(nt.pageIndex,z-1)):0,Xe=L?M[Qe]:null,rt=L&&Xe&&Array.isArray(Xe.steps)?Xe.steps:[],Pe=T?nt.pageIndex:L?Qe:typeof u=="number"?u:0,Je=T?O[Math.max(0,Math.min(nt.pageIndex,Math.max(0,O.length-1)))]:null,yt=T&&Je&&Array.isArray(Je.steps)?Je.steps:[],Ut=T?yt.length:L?rt.length:typeof m=="number"?m:0,mt=T||L?Math.max(0,Math.min(nt.stepIndex,Math.max(0,Ut))):typeof p=="number"?p:0,xt=T?O.length:L?z:typeof d=="number"?d:0;s.useLayoutEffect(()=>{const ae=Fe.current;if(typeof Pe=="number"&&ae!==null&&Pe!==ae&&Pe>ae)try{st(j("training.problemNotice",{n:Pe+1}))}catch{}Fe.current=typeof Pe=="number"?Pe:Fe.current},[Pe,u,j]),s.useLayoutEffect(()=>{const ae=Q.current;if(!ae)return;const G=()=>ae.querySelector(".page-popup__scroll");let ne=null,ke=null,Ne=null;const Be=Le=>{const De=G();if(!De)return;const Ve=De.scrollHeight<=De.clientHeight;if(ze(Ve?"center":"top"),Le&&!Ee.current){Ee.current=!0;try{Ge(!0)}catch{}try{he.disconnect()}catch{}}},qe=()=>{ne!==null&&cancelAnimationFrame(ne),ne=requestAnimationFrame(()=>{ke!==null&&clearTimeout(ke),ke=setTimeout(()=>Be(!0),60)})},X=()=>{Ne!==null&&cancelAnimationFrame(Ne),Ne=requestAnimationFrame(()=>Be(!1))};qe(),window.addEventListener("resize",X);const he=new MutationObserver(qe);he.observe(ae,{childList:!0,subtree:!0,attributes:!0});const Ae=setTimeout(()=>{Ee.current||Be(!0)},400);return()=>{window.removeEventListener("resize",X),ne!==null&&cancelAnimationFrame(ne),ke!==null&&clearTimeout(ke),Ne!==null&&cancelAnimationFrame(Ne),clearTimeout(Ae);try{he.disconnect()}catch{}}},[Q]);const Ft=s.useCallback(ae=>{Q.current&&(Q.current._childOnNext=ae)},[]),Gt=s.useCallback(ae=>{Q.current&&(Q.current._childOnResult=ae)},[]),_t=s.useCallback((ae,G,ne)=>{at(ke=>{const Ne=ke.answersByPage[ae]||{},Be=Ne[G],qe=go(ne),X=go(Be);return Be&&X>qe?ke:{...ke,answersByPage:{...ke.answersByPage,[ae]:{...Ne,[G]:ne}}}})},[at]),lt=s.useCallback((ae,G,ne)=>{const ke=yo(Je,Pe),Ne=vo(ae,G);_t(ke,Ne,ne)},[Je,Pe,_t]),Kt=s.useCallback((ae,G,ne)=>{const ke=yo(Je,Pe),Ne=vo(ae,G);_t(ke,Ne,ne),!ne?.allowChange&&ae?.autoAdvance!==!1&&at(Be=>({...Be,stepIndex:Math.max(Be.stepIndex,G+1)}))},[Je,Pe,_t,at]),Rt=s.useCallback((ae,G)=>{const ne=Xe?.id||`children-page-${Pe??0}`,ke=typeof G=="number"?G:mt??0,Ne=`step-${ke}`;_t(ne,Ne,ae),ae?.allowChange||at(Be=>({...Be,stepIndex:Math.max(Be.stepIndex,ke+1)}))},[Xe,Pe,mt,_t,at]),yn=s.useCallback((ae,G)=>{const ne=Xe?.id||`children-page-${Pe??0}`,ke=`step-${typeof G=="number"?G:mt??0}`;_t(ne,ke,ae)},[Xe,Pe,mt,_t]),Dn=L?{currentPageIndex:Pe??0,currentStepIndex:mt??0,totalStepsInPage:rt.length,handleStepDone:Rt,handleStepChange:yn}:null,et=async()=>{const ae=typeof n?.buildResults=="function"?await Promise.resolve(n.buildResults({scenario:n,pages:O,flowState:nt,answersByPage:nt.answersByPage})):null;return typeof F=="function"&&await Promise.resolve(F(ae))||ae},Ot=async()=>{const ae=Xe?.id||`children-page-${nt.pageIndex}`,G=nt.answersByPage[ae]||{},ne=P?(()=>{const Be={};let qe=0;return M.forEach(X=>{const he=nt.answersByPage[X.id]||{},Ae=Array.isArray(X.steps)?X.steps.length:0;for(let Le=0;Le<Ae;Le+=1){const De=he[`step-${Le}`];typeof De<"u"&&(Be[`step-${qe+Le}`]=De)}qe+=Ae}),Be})():G;if(typeof g=="function"){const Be=await Promise.resolve(g(ne,{pageAnswers:G,answersByPage:nt.answersByPage,pages:M,currentPageId:ae}));return typeof F=="function"&&await Promise.resolve(F(Be))||Be}const ke=Object.entries(G).map(([Be,qe],X)=>({index:X,key:Be,payload:qe})),Ne={results:ke,answers:ke,score:0};return typeof F=="function"&&await Promise.resolve(F(Ne))||Ne},wt=()=>{const ae=++Ye.current,G=()=>ae!==Ye.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(T){const Ne=et();He({});const Be=Ne;Promise.resolve(Be).then(qe=>{G()||He(qe||{isEmpty:!0})}).catch(qe=>{!G()&&He({isEmpty:!0})});return}if(L){const Ne=Ot();He({});const Be=Ne;Promise.resolve(Be).then(qe=>{G()||He(qe||{isEmpty:!0})}).catch(qe=>{!G()&&He({isEmpty:!0})});return}const ne=Q.current&&Q.current._childOnResult,ke=Ne=>{try{return Ne?Ne():void 0}catch{return}};if(typeof ne=="function"){const Ne=ke(ne);try{typeof document>"u"?require("url").pathToFileURL(__filename).href:pn&&pn.tagName.toUpperCase()==="SCRIPT"&&pn.src||new URL("components.cjs.js",document.baseURI).href}catch{}Ne&&typeof Ne.then!="function"?He(Ne):He(Ne&&typeof Ne.then=="function"?{}:{}),Promise.resolve(Ne).then(Be=>{Be&&!G()&&He(Be)}).catch(Be=>{});return}if(typeof F=="function"){const Ne=ke(F);try{typeof document>"u"?require("url").pathToFileURL(__filename).href:pn&&pn.tagName.toUpperCase()==="SCRIPT"&&pn.src||new URL("components.cjs.js",document.baseURI).href}catch{}Ne&&typeof Ne.then!="function"?He(Ne):He(Ne&&typeof Ne.then=="function"?{}:{}),Promise.resolve(Ne).then(Be=>{try{typeof document>"u"?require("url").pathToFileURL(__filename).href:pn&&pn.tagName.toUpperCase()==="SCRIPT"&&pn.src||new URL("components.cjs.js",document.baseURI).href}catch{}Be&&!G()&&He(Be)}).catch(Be=>{console.error("viewResults external handler failed",Be)});return}},Ht=()=>{if(T){if(typeof Pe=="number"&&typeof xt=="number"&&Pe<xt-1){at(G=>({...G,pageIndex:G.pageIndex+1,stepIndex:0}));return}return wt()}if(L){const G=rt.length;if(typeof mt=="number"&&mt<G-1){at(ne=>({...ne,stepIndex:ne.stepIndex+1}));return}if(typeof Pe=="number"&&typeof xt=="number"&&Pe<xt-1){at(ne=>({...ne,pageIndex:ne.pageIndex+1,stepIndex:0}));return}return wt()}if(typeof y=="function"){try{y()}catch{}return}const ae=Q.current&&Q.current._childOnNext;if(typeof ae=="function"){try{ae()}catch{}return}},Vt=T?R.title||R.label||x||j("common.popup","\uD31D\uC5C5"):a||_||(Array.isArray(o)?o[o.length-1]:void 0)||x||j("common.popup","\uD31D\uC5C5"),zt=T?R.title??R.label??Vt:a??_??Vt,sn=(ae,G)=>{const ne=yo(Je,Pe),ke=vo(ae,G),Ne=nt.answersByPage[ne]?.[ke],Be=n5(ae,{page:Je,pageIndex:Pe,step:ae,stepIndex:G,storedPayload:Ne,answersByPage:nt.answersByPage,flowState:nt}),qe={key:ke,index:G,stepIndex:mt,isLast:G===yt.length-1};switch(ae?.type){case"listen":return t.jsx(mo,{...qe,...Be,onDone:X=>Kt(ae,G,X)});case"confirm":return t.jsx(uo,{...qe,...Be,onDone:X=>Kt(ae,G,X),onChange:X=>lt(ae,G,X)});case"confirmWithText":return t.jsx(po,{...qe,...Be,onDone:X=>Kt(ae,G,X),onChange:X=>lt(ae,G,X)});case"orderList":return t.jsx(ho,{...qe,...Be,onDone:X=>Kt(ae,G,X),onChange:X=>lt(ae,G,X)});default:return null}},ln=s.useRef(void 0);s.useEffect(()=>{const ae=ln.current;if(ln.current=Pe,ae===void 0||ae===Pe||!Ia())return;const G=Q.current;if(!G)return;const ne=document.activeElement;if(!(!ne||ne===document.body||!G.contains(ne)||ne.disabled===!0))return;const ke=G.querySelector(`.training-steps ${Ln.split(", ").join(", .training-steps ")}`)??Array.from(G.querySelectorAll(Ln)).find(Ne=>!Ne.closest('[aria-hidden="true"]'));try{ke?.focus()}catch{}},[Pe]);const Wt=T?O.length>0?t.jsx("div",{className:"training-steps",children:yt.map((ae,G)=>sn(ae,G))},`replay-${te}`):t.jsx("div",{className:"page-popup__content page-popup__content--center",children:t.jsx("div",{className:"pp-empty",children:n?.emptyMessage||j("training.noQuestions","\uBB38\uC81C\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4.")})}):null,cn=L?t.jsxs(bc.Provider,{value:Dn,children:[Xe?.pageTop?t.jsx("div",{className:"training-page-top",children:Xe.pageTop}):null,t.jsx("div",{className:"training-steps",children:rt.map((ae,G)=>{const ne=ae;return s.cloneElement(ne,{...ne.props,_stepIndex:G,_totalSteps:rt.length,_stepKey:`step-${G}`,_pageIndex:Pe})})},`replay-${te}`),Xe?.pageBottom?t.jsx("div",{className:"training-page-bottom",children:Xe.pageBottom}):null]}):null,nn=s.useCallback(()=>{let ae;if(w){const G=$e,ne=G?.results||G?.answers||[],ke=Array.isArray(ne)&&ne.length>0?ne.length:null,Ne=Array.isArray(ne)?ne.filter(qe=>qe?.correct===!0||qe?.isCorrect===!0||qe?.score===1||qe?.heard===!0||qe?.judgement===!0).length:null,Be=ke!=null?Ne:null;T0({items:E0(ne),category:Nc.has(w)?"sentence":"word",trainingType:w,entryPoint:S??"sentence",itemRef:k??null,correct:Be,total:ke,score:typeof G?.score=="number"?G.score:null,durationSeconds:Math.max(0,Math.round((Date.now()-H.current)/1e3)),dailyTotal:N??null}),ae={correct:Be,total:ke}}gt(),Ke(()=>{typeof C=="function"&&C(ae),typeof h=="function"&&h()})},[C,h,w,S,N,k,$e,He,Ke]),ht=s.useCallback(()=>st(""),[st]),Yt=s.useCallback(()=>{Ke(()=>{typeof h=="function"&&h()})},[h,Ke]),Zt=t.jsxs("div",{className:`page-popup${Me?" page-popup--closing":""}`,role:"dialog","aria-modal":"true","aria-label":Vt,children:[t.jsxs("div",{ref:Q,className:`page-popup__panel ${fe?"":"page-popup__panel--measuring"} ${je==="center"?"page-popup__panel--center":je==="top"?"page-popup__panel--top":""}`,children:[t.jsx(hc,{title:zt,subtitle:T?R.subtitle||R.label:Array.isArray(o)?o.join(" / "):void 0,desc:T?void 0:r,depth:T?R.depth:o,icon:T?R.icon:i,wrapperStyle:T?R.wrapperStyle:l,iconTooltip:T?R.iconTooltip:c,progressMax:xt,progressIndex:Pe,pageIndex:Pe,pageCount:xt,onBack:Yt,onClose:Yt}),t.jsx("div",{className:"page-popup__scroll",children:t.jsx("div",{className:`page-popup__content ${je==="center"?"page-popup__content--center":"page-popup__content--top"}`,children:L?cn:T?Wt:typeof b=="function"?b({registerOnNext:Ft,registerOnResult:Gt,panelRef:Q,setResultOverlay:He}):b})}),t.jsx(mc,{onSettings:f,onNext:Ht,onResult:wt,useNoiseSettingBtn:!!(T?R.useNoiseSetting??!0:v),stepIndex:mt,stepCount:Ut,pageIndex:Pe,pageCount:xt})]}),$e&&!$e.isEmpty&&(B??a5)({score:$e.score,results:$e.results||$e.answers||[],contextsLength:$e.results?$e.results.length:$e.answers?$e.answers.length:0,onReplay:()=>{if(gt(),_e(ae=>ae+1),T){if(at(Ya()),typeof n?.onReplay=="function")try{n.onReplay()}catch{}return}if(L){at(Ya());return}try{const ae=Q.current&&Q.current._childOnResult;typeof ae=="function"&&ae({replay:!0})}catch{}},onClose:nn}),$e?.isEmpty&&t.jsx("div",{className:"page-popup page-popup--result-empty",role:"dialog","aria-modal":"true","aria-label":j("training.result.eyebrow","\uD6C8\uB828 \uC644\uB8CC"),children:t.jsxs("div",{className:"page-popup__panel page-popup__panel--center",children:[t.jsx("div",{className:"page-popup__scroll",children:t.jsx("div",{className:"page-popup__content page-popup__content--center",children:t.jsx("div",{className:"page-popup__empty",children:j("training.result.eyebrow","\uD6C8\uB828 \uC644\uB8CC")})})}),t.jsx("div",{className:"page-popup__bottom",children:t.jsx(ce,{htmlType:"button",variant:"main",size:48,onClick:nn,label:j("training.result.done","\uC644\uB8CC")})})]})}),t.jsx(Gn,{message:dt,position:"top",onClose:ht})]}),Tt=t.jsx(ro.Provider,{value:we,children:Zt});return typeof document<"u"&&document.body?qt.createPortal(Tt,document.body):Tt}const Sn=r5;Sn.Page=Ka,Sn.ListenStep=yc,Sn.ConfirmStep=vc,Sn.ConfirmWithTextStep=xc,Sn.OrderListStep=_c,Sn.CardStep=wc,Sn.CardOrderStep=Qy;function o5({label:e,homonum:n}){const a=Wn()?.(e,n)??"",{imgRef:r,loading:o,hasImage:i,onLoad:l,onError:c}=qr(a);return i?t.jsxs("div",{className:"tooltip-word-image__cell",children:[o&&t.jsx("div",{className:"tooltip-word-image__spinner"}),t.jsx("img",{ref:r,src:a,alt:e,draggable:!1,style:{opacity:o?0:1},onLoad:l,onError:c})]}):t.jsx("div",{className:"tooltip-word-image__cell tooltip-word-image__cell--text h3",children:t.jsx("span",{children:e})})}function Bc({words:e,anchorRect:n}){const a=s.useRef(null),[r,o]=s.useState(null);return s.useLayoutEffect(()=>{if(!n||!a.current)return;const{offsetWidth:i,offsetHeight:l}=a.current,c=window.innerWidth;let u=n.left+n.width/2-i/2,d=n.top-l-8;d<8&&(d=n.bottom+8),u=Math.max(8,Math.min(u,c-i-8)),o({left:u,top:d})},[n]),!n||e.length===0?null:qt.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(o5,{label:i.label,homonum:i.homonum},`${i.label}_${i.homonum??1}`))})}),document.body)}const s5=new Intl.Collator("ko");function i5({titleIcon:e,resultCount:n,resultUnit:a,searchQuery:r,items:o,groups:i,selected:l=[],onSelect:c,maxSelect:u,onClearSelection:d,onPrint:p,onPrintEmpty:m,className:h,emptyHint:C,sectionType:y="page",disc:f,notice:v}){const{t:b,i18n:x}=pe.useTranslation(),_=x.language?.startsWith("ko")??!1,{anchorRect:g,openAt:A,close:w}=ja(),[S,N]=s.useState(null),k=s.useCallback(()=>{w(),N(null)},[w]);b2(k,!!S);const B=(r??"").trim(),V=/^[^,[\]\s]+$/.test(B)?B:"",H=V.length>0,[j,F]=s.useState(()=>H?"match":"ganada"),[T,Y]=s.useState("50"),[R,O]=s.useState(1),[W,le]=s.useState(H);W!==H&&(le(H),F(H?"match":"ganada"));const q=j==="match"&&!H?"ganada":j,P=s.useMemo(()=>[...H?[{value:"match",label:b("wordSearch.sort.match",{defaultValue:"\uC2DC\uC791 \uC6B0\uC120"})}]:[],{value:"ganada",label:b("wordSearch.sort.ganada",{defaultValue:"\uAC00\uB098\uB2E4\uC21C \u2191"})},{value:"ganada_desc",label:b("wordSearch.sort.ganadaDesc",{defaultValue:"\uAC00\uB098\uB2E4\uC21C \u2193"})},{value:"syllable",label:b("wordSearch.sort.syllable",{defaultValue:"\uC74C\uC808 \uC218 \u2191"})},{value:"syllable_desc",label:b("wordSearch.sort.syllableDesc",{defaultValue:"\uC74C\uC808 \uC218 \u2193"})},{value:"grade",label:b("wordSearch.sort.grade",{defaultValue:"\uB4F1\uAE09\uC21C \u2191"})},{value:"grade_desc",label:b("wordSearch.sort.gradeDesc",{defaultValue:"\uB4F1\uAE09\uC21C \u2193"})}],[b,H]),M=s.useMemo(()=>["10","25","50","100"].map(de=>({value:de,label:b("wordSearch.pageSize",{count:Number(de),defaultValue:`${de}\uAC1C\uC529 \uBCF4\uAE30`})})),[b]),L=de=>de.words[0],z=s.useMemo(()=>{const de=[...V].length,ye=m0(V),we=new Map;return Q=>{let te=we.get(Q);return te===void 0&&(te=ye((Q.words[0]?.label??"").slice(0,de))?0:1,we.set(Q,te)),te}},[V]),$=s.useCallback((de,ye)=>{const we=_e=>L(_e)?.label??"",Q=_e=>L(_e)?.syllables??[...we(_e)].length,te=_e=>{const je=parseInt(L(_e)?.grade??"",10);return Number.isFinite(je)?je:999};switch(q){case"match":return z(de)-z(ye)||s5.compare(we(de),we(ye));case"ganada":return we(de).localeCompare(we(ye),"ko");case"ganada_desc":return we(ye).localeCompare(we(de),"ko");case"syllable":return Q(de)-Q(ye)||we(de).localeCompare(we(ye),"ko");case"syllable_desc":return Q(ye)-Q(de)||we(de).localeCompare(we(ye),"ko");case"grade":return te(de)-te(ye)||we(de).localeCompare(we(ye),"ko");case"grade_desc":return te(ye)-te(de)||we(de).localeCompare(we(ye),"ko");default:return 0}},[q,z]),E=s.useMemo(()=>o.slice().sort($),[o,$]),I=Number(T)||10,oe=s.useMemo(()=>(i??[]).flatMap(de=>de.items.slice().sort($).map(ye=>({item:ye,label:de.label}))),[i,$]),re=i?oe.length:E.length,ee=Math.max(1,Math.ceil(re/I)),se=Math.min(R,ee),Ce=s.useMemo(()=>E.slice((se-1)*I,se*I),[E,se,I]),Z=s.useMemo(()=>{if(!i)return null;const de=oe.slice((se-1)*I,se*I),ye=new Map;for(const{item:we,label:Q}of de)ye.has(Q)||ye.set(Q,[]),ye.get(Q).push(we);return[...ye.entries()].map(([we,Q])=>({label:we,items:Q}))},[i,oe,se,I]);s.useEffect(()=>{O(1)},[j,T,re,r]);const ie=re>0?t.jsxs("div",{className:"word-search-result-block__toolbar",children:[t.jsx(en,{size:40,options:P,value:q,onChange:F,ariaLabel:b("wordSearch.sort.aria",{defaultValue:"\uC815\uB82C"})}),t.jsx(en,{size:40,options:M,value:T,onChange:Y,ariaLabel:b("wordSearch.pageSizeAria",{defaultValue:"\uD398\uC774\uC9C0 \uD06C\uAE30"})}),t.jsx(Ma,{page:se,totalPages:ee,onChange:O})]}):void 0,J=de=>{c&&c(de)},be=n!==void 0&&a?t.jsxs(t.Fragment,{children:[b("wordSearch.resultTitlePrefix","\uCD1D "),t.jsx("span",{style:{color:"var(--color-main)"},children:n}),b("wordSearch.resultTitleSuffix",{unit:_?_0(a):a})]}):void 0,ve=n!==void 0&&n>0&&u!==void 0&&a?b("wordSearch.resultDisc",{unit:_?k0(a):a,max:u,selected:l.length}):void 0,Te=f??(v?t.jsxs(t.Fragment,{children:[t.jsx("span",{className:"word-search-result-block__notice",children:v}),ve?t.jsx("span",{className:"word-search-result-block__disc",children:ve}):null]}):ve);return t.jsxs(Kn,{type:y,icon:e,title:be,action:ie,disc:Te,className:ge("word-search-result-block",h),children:[t.jsxs("div",{className:"word-search-result-block__inner",children:[(i?i.length===0:o.length===0)&&t.jsxs("div",{className:"word-search-result-block__empty-wrap",children:[t.jsx("p",{className:"word-search-result-block__empty body-3",children:b("wordSearch.emptyResult","\uAC80\uC0C9 \uACB0\uACFC\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4.")}),C&&t.jsx("p",{className:"word-search-result-block__empty-hint body-3",children:C})]}),i?(Z??[]).map(de=>t.jsx("div",{className:"word-search-result-block__group",children:t.jsx("div",{className:"word-search-result-block__items",children:de.items.map(ye=>{const we=l.includes(ye.id);return t.jsx("div",{onMouseEnter:Q=>{A(Q.currentTarget),N(ye.words)},onMouseLeave:k,children:t.jsx(ce,{htmlType:"button",size:"word",align:"grid",label:ye.words.map(Q=>Q.label),subLabel:ye.words.map(Q=>Q.subLabel).filter(Boolean).length>0?ye.words.map(Q=>Q.subLabel):void 0,selected:we,onClick:()=>J(ye.id),minWidth:200})},ye.id)})})},de.label)):t.jsx("div",{className:"word-search-result-block__items",children:Ce.map(de=>{const ye=l.includes(de.id);return t.jsx("div",{onMouseEnter:we=>{A(we.currentTarget),N(de.words)},onMouseLeave:k,children:t.jsx(ce,{htmlType:"button",size:"word",align:"grid",label:de.words.map(we=>we.label),subLabel:de.words.map(we=>we.subLabel).filter(Boolean).length>0?de.words.map(we=>we.subLabel):void 0,selected:ye,onClick:()=>J(de.id),minWidth:200})},de.id)})}),S&&g&&t.jsx(Bc,{words:S,anchorRect:g})]}),ee>1&&t.jsx("div",{className:"word-search-result-block__pagination-bottom",children:t.jsx(Ma,{page:se,totalPages:ee,onChange:O})}),(d||p)&&t.jsxs("div",{className:"word-search-result-block__actions",children:[d&&t.jsx(ce,{htmlType:"button",size:"56",type:"bar",label:b("common.resetSelection","\uC120\uD0DD \uCD08\uAE30\uD654"),selected:!1,disabled:l.length===0,onClick:l.length===0?void 0:d}),p&&t.jsx("div",{onClick:l.length===0?m:void 0,children:t.jsx(ce,{htmlType:"button",size:"56",type:"bar",variant:"main",label:b("wordTable.title","\uB2E8\uC5B4 \uD45C \uB9CC\uB4E4\uAE30"),disabled:l.length===0,onClick:l.length===0?void 0:p})})]})]})}function l5(e,n){return n.map(a=>{const r=typeof a=="string"?a:a.label,o=typeof a=="string"?void 0:a.displayLabel;return{label:r,value:e[r]??"",displayLabel:o}})}function c5({sections:e,selectedList:n,count:a,onCountChange:r,maxCount:o=4,minCount:i=1,combinationSections:l,combinationSectionsForSlot:c,onSelect:u,placeholder:d="-",className:p,title:m,titleIcon:h,disc:C,showInfoButton:y=!1,onClearPhoneme:f,onSearch:v,onSearchEmpty:b,searchDisabled:x=!1,searchLabel:_,searchChecking:g=!1,pairMode:A=!1,sectionType:w="page",beforeSearchContent:S,beforeContent:N,afterContent:k,hideCountControl:B=!1,ordinal:V=!1}){const{t:H}=pe.useTranslation(),j=s.useMemo(()=>H("wordPairs.infoNotes",{returnObjects:!0}),[H]),F=s.useMemo(()=>Array.from({length:o-i+1},($,E)=>{const I=i+E;return{key:String(I),label:H("wordPairs.count",{n:I})}}),[H,o,i]),T=s.useMemo(()=>H("wordPairs.ordinals",{returnObjects:!0}),[H]),Y=s.useCallback($=>V?H("wordPairs.phonemeOrdinalLabel",{ordinal:T[$-1]??$}):a===1?H("wordPairs.phonemeSingleLabel","\uC74C\uC808"):H("wordPairs.phonemeN",{n:$}),[V,T,a,H]),R=s.useCallback($=>V?H("wordPairs.phonemeContrastOrdinalLabel",{ordinal:T[$-1]??$}):a===1?H("wordPairs.phonemeContrastSingleLabel","\uB300\uB9BD \uC74C\uC808"):H("wordPairs.phonemeContrast",{n:$}),[V,T,a,H]),O=s.useCallback(($,E)=>E?t.jsxs(t.Fragment,{children:[$,t.jsx("span",{className:"phoneme-select-block__required",children:"*"})]}):$,[]),{anchorRect:W,toggleAt:le,close:q}=ja(),P=s.useCallback($=>r(Number($)),[r]),M=rn("(max-width: 767px)"),L=s.useCallback($=>l5($,e).map(({label:E,value:I,displayLabel:oe})=>{const re=!!I&&I!=="\uC5C6\uC74C";return t.jsxs("span",{className:ge("phoneme-select-block__cell-jamo-part",I?"":"phoneme-select-block__cell-jamo-part--empty",re?"":"phoneme-select-block__cell-jamo-part--no-label"),children:[t.jsx("span",{className:`phoneme-select-block__cell-jamo-char h1${I==="\uC5C6\uC74C"?" phoneme-select-block__cell-jamo-char--excluded":""}`,children:I==="\uC5C6\uC74C"?"x":I||d}),re&&t.jsx("span",{className:"phoneme-select-block__cell-jamo-label caption-2",children:oe??E})]},E)}),[e,d]),z=t.jsxs(t.Fragment,{children:[t.jsx("div",{"data-tooltip-ignore":!0,children:t.jsx(ce,{htmlType:"button",size:40,type:M?"dot":void 0,icon:"info",label:M?void 0:H("wordPairs.caution","\uC720\uC758\uC0AC\uD56D"),ariaLabel:H("wordPairs.caution","\uC720\uC758\uC0AC\uD56D"),selected:!!W,onClick:$=>le($.currentTarget)})}),W&&t.jsx(Rn,{title:H("wordPairs.caution","\uC720\uC758\uC0AC\uD56D"),items:j,anchorRect:W,onClose:q})]});return t.jsxs(Kn,{type:w,title:m,icon:h,disc:C,action:z,className:ge("phoneme-select-block",p),children:[N,(!B||y&&!(m||C))&&t.jsxs("div",{className:"phoneme-select-block__controls",children:[!B&&t.jsx(On,{options:F,value:String(a),onChange:P,size:40,className:"phoneme-select-block__count-control"}),y&&!(m||C)&&z]}),t.jsx("div",{className:"phoneme-select-block__cells",children:A?t.jsxs(t.Fragment,{children:[t.jsx("div",{className:"phoneme-select-block__cell-group",children:Array.from({length:a}).map(($,E)=>{const I=n[E*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:L(I)})}),t.jsx("span",{className:"phoneme-select-block__cell-index caption-1",children:Y(E+1)})]},E)})}),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(($,E)=>{const I=n[E*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:L(I)})}),t.jsx("span",{className:"phoneme-select-block__cell-index caption-1",children:R(E+1)})]},E)})})]}):n.map(($,E)=>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:L($)})}),t.jsx("span",{className:"phoneme-select-block__cell-index caption-1",children:Y(E+1)})]},E))}),(l||c)&&t.jsx("div",{className:"phoneme-select-block__panels",children:t.jsx("div",{className:"phoneme-select-block__detail",children:A?t.jsxs("div",{className:"phoneme-select-block__pair-panels",children:[t.jsx("div",{className:"phoneme-select-block__panel-group",children:Array.from({length:a}).map(($,E)=>{const I=n[E*2]??{};return t.jsx(bn,{title:O(Y(E+1),E===0),sections:c?c(I,E*2):l,selected:I,onSelect:u?.(E*2),align:"newline"},E)})}),t.jsx("div",{className:"phoneme-select-block__panel-group",children:Array.from({length:a}).map(($,E)=>{const I=n[E*2+1]??{};return t.jsx(bn,{title:R(E+1),sections:c?c(I,E*2+1):l,selected:I,onSelect:u?.(E*2+1),align:"newline"},E)})})]}):n.map(($,E)=>t.jsx(bn,{title:O(Y(E+1),E===0),sections:c?c($,E):l,selected:$,onSelect:u?.(E),align:"newline"},E))})}),S&&t.jsx("div",{className:"phoneme-select-block__before-search",children:S}),(f||v||g)&&(()=>{const $=n.every(E=>Object.entries(E).every(([I,oe])=>!oe||I==="\uC885\uC131"&&oe==="\uC5C6\uC74C"));return t.jsxs("div",{className:"phoneme-select-block__search-row",onClick:$?b:void 0,children:[f&&t.jsx(ce,{htmlType:"button",size:"56",type:"bar",label:H("wordPairs.resetOptions","\uAC80\uC0C9 \uC635\uC158 \uCD08\uAE30\uD654"),selected:!1,disabled:$,onClick:$?void 0:f}),g?t.jsxs("div",{className:"phoneme-select-block__checking",children:[t.jsx("div",{className:"phoneme-select-block__spinner"}),t.jsx("span",{className:"button-1 phoneme-select-block__checking-label",children:_??H("wordSearch.searchButton","\uAC80\uC0C9\uD558\uAE30")})]}):v&&t.jsx(ce,{htmlType:"button",size:"56",type:"bar",variant:"main",label:_??H("wordSearch.searchButton","\uAC80\uC0C9\uD558\uAE30"),disabled:$||x,onClick:$||x?void 0:v})]})})(),k]})}function u5({title:e,sections:n,selected:a,onSelect:r,className:o}){const{t:i}=pe.useTranslation();return t.jsx(bn,{className:o,title:e??i("wordSearch.filterTitle","\uB2E8\uC5B4 \uAC80\uC0C9 \uC124\uC815"),sections:n,selected:a,onSelect:r,align:"inline"})}function d5({title:e,headerAction:n,sections:a,selected:r,onSelect:o,className:i}){const{t:l}=pe.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:o,align:"newline"})}function p5({title:e,mode:n,onModeChange:a,matchMode:r,onMatchModeChange:o,positionCount:i,onPositionCountChange:l,inputMode:c,onInputModeChange:u,className:d}){const{t:p}=pe.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=v=>p("wordPairs.count",{n:v}),C=[{label:m.searchMode,items:[m.include,m.pick,m.explicit],display:"segmented",labelAction:t.jsx(ha,{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(ha,{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(ha,{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},f=(v,b)=>{b===m.searchMode?a(v===m.explicit?"explicit":v===m.pick?"pick":"include"):b===m.phonemeOrder?o(v===m.orderMatch?"ordered":"unordered"):b===m.count?l(v===h(2)?2:1):b===m.inputMode&&u(v===m.pronInput?"phoneme":"word")};return t.jsx(bn,{className:d,title:e??p("wordPairs.filter.searchOptionsTitle","\uB300\uB9BD \uC124\uC815"),sections:C,selected:y,onSelect:f,align:"inline"})}function m5(e){const{title:n,items:a,columns:r,gridTemplateColumns:o,searchPlaceholder:i,searchFn:l,defaultSortKey:c,defaultSortAsc:u=!0,selectedId:d,selectedIds:p,onSelect:m,onClose:h,pageSizeOptions:C=[10,25,50,100],initialPageSize:y,emptyText:f,countLabel:v,topContent:b,className:x=""}=e,{t:_}=pe.useTranslation(),g=i??_("common.search","\uAC80\uC0C9"),A=f??_("common.emptyList","\uD56D\uBAA9\uC774 \uC5C6\uC2B5\uB2C8\uB2E4."),[w,S]=s.useState(""),[N,k]=s.useState(c??r[0]?.key??""),[B,V]=s.useState(u),[H,j]=s.useState(String(y??C[0]??10)),[F,T]=s.useState(1);s.useEffect(()=>{T(1)},[w,H]);const Y=l!==null,R=s.useCallback((E,I)=>{if(!I)return!0;const oe=I.toLowerCase();return r.some(re=>{const ee=E[re.key];return ee==null?!1:String(ee).toLowerCase().includes(oe)})},[r]),O=l??R,W=s.useMemo(()=>{const E=Y?a.filter(I=>O(I,w)):a;return N?[...E].sort((I,oe)=>{const re=I[N]??"",ee=oe[N]??"";if(re===ee)return 0;const se=Ib(re,ee);return B?se:-se}):E},[a,w,N,B,Y,O]),le=Math.max(1,Math.ceil(W.length/Number(H)));F>le&&T(le);const q=Math.min(F,le),P=W.slice((q-1)*Number(H),q*Number(H)),M=s.useCallback(E=>{N===E?V(I=>!I):(k(E),V(!0))},[N]),L=s.useMemo(()=>{if(typeof v=="function"){const E=W.length,I=v(E);if(typeof I=="string"){const oe=I.lastIndexOf(String(E));if(oe>=0)return{prefix:I.slice(0,oe),suffix:I.slice(oe+String(E).length)}}return{label:I}}if(typeof v=="string"&&v.includes("{n}")){const[E,I]=v.split("{n}");return{prefix:E,suffix:I}}return{prefix:_("common.totalCountPrefix","\uCD1D "),suffix:_("common.totalCountSuffix","\uAC1C")}},[v,W.length,_]),z=s.useMemo(()=>r.map(E=>({label:E.label,onClick:E.sortable!==!1?()=>M(E.key):void 0,className:E.className,sortDir:E.sortable!==!1&&N===E.key?B?"asc":"desc":null})),[r,N,B,M]),$=s.useMemo(()=>C.map(E=>({value:String(E),label:_("common.pageSizeLabel",{n:E})})),[C,_]);return t.jsxs(Nn,{className:`popup-list ${x}`,title:n,onClose:h,children:[b,"label"in L&&t.jsx("p",{className:"toolbar__count body-1",children:L.label}),t.jsx(Lr,{count:"label"in L?void 0:{value:W.length,prefix:L.prefix,suffix:L.suffix},search:Y?{value:w,onChange:S,placeholder:g}:void 0,pageSize:{options:$,value:H,onChange:j},pagination:{page:q,total:le,onChange:T}}),t.jsx(Hr,{size:"medium",gridTemplateColumns:o,resizable:!0,fields:z,items:P,onRowClick:m,renderRow:E=>{const I=p!=null?E.id!=null&&p.has(E.id):d!=null&&E.id===d;return r.map(oe=>({content:oe.render?oe.render(E):E[oe.key]??"",className:ge(oe.className,I&&"popup-list__row--selected")}))},empty:A})]})}function h5(e){const{title:n,message:a,topContent:r,details:o,children:i,confirmLabel:l,cancelLabel:c,hideCancel:u=!1,extraAction:d,confirmVariant:p="main",confirmDisabled:m=!1,onConfirm:h,closeOnConfirm:C=!0,onClose:y,inline:f,size:v="small",className:b}=e,{t:x}=pe.useTranslation(),_=s.useRef(!1),[g,A]=s.useState(!1),w=async S=>{if(_.current)return;_.current=!0;const N=typeof document<"u"?document.activeElement:null;A(!0);let k=!1;try{k=await S()}finally{k||(_.current=!1,A(!1),requestAnimationFrame(()=>{const B=document.activeElement;(!B||B===document.body)&&N?.isConnected&&N.focus()}))}};return t.jsxs(Nn,{title:n,onClose:y,closeDisabled:g,inline:f,size:v,className:ge("confirm-popup",b),buttons:[...d?[{label:d.label,variant:d.variant??"default",disabled:d.disabled||g,onClick:async({closeWithAnimation:S})=>{await w(async()=>{await d.onClick(S);const N=d.closeOnClick??!0;return N&&S(),N})}}]:[],...u?[]:[{label:c??x("common.cancel","\uCDE8\uC18C"),variant:"default",disabled:g,onClick:({closeWithAnimation:S})=>S()}],{label:l??x("common.confirm","\uD655\uC778"),variant:p,disabled:m||g,onClick:async({closeWithAnimation:S})=>{await w(async()=>(await h(S),C&&S(),C))}}],children:[r!=null&&t.jsx("div",{className:"confirm-popup__top",children:r}),o&&o.length>0&&t.jsx(Ga,{children:o.map((S,N)=>t.jsx(Bn,{label:S.label,children:t.jsx("span",{className:"panel-row__text body-2",children:S.value})},N))}),t.jsx("p",{className:"body-2 confirm-popup__message",children:a}),i]})}function f5({onApply:e,onCancel:n}){const{t:a}=pe.useTranslation(),[r,o]=s.useState(""),[i,l]=s.useState(!1),[c,u]=s.useState(null),d=s.useRef(null);s.useEffect(()=>{d.current?.focus()},[]);const p=s.useCallback(async C=>{const y=r.trim();if(y){l(!0),u(null);try{await e(y),C()}catch(f){u(Ns(f)),l(!1),requestAnimationFrame(()=>d.current?.focus())}}},[r,e]),m=s.useCallback((C,y)=>{C.key==="Enter"&&!C.nativeEvent.isComposing&&p(y)},[p]),h=C=>{o(C.target.value),u(null)};return t.jsx(Nn,{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:C})=>C()},{label:a("coupons.applyButton","\uC801\uC6A9"),variant:"main",disabled:!r.trim()||i,onClick:({closeWithAnimation:C})=>{p(C)}}],children:({closeWithAnimation:C})=>t.jsxs(t.Fragment,{children:[t.jsx("input",{ref:d,className:"coupon-input-popup__input body-2","aria-label":a("coupons.input.label","\uCFE0\uD3F0 \uCF54\uB4DC"),placeholder:a("coupons.input.placeholder","\uCFE0\uD3F0 \uCF54\uB4DC \uC785\uB825"),value:r,onChange:h,onKeyDown:y=>m(y,C),disabled:i,autoComplete:"off",spellCheck:!1}),c&&t.jsx("p",{className:"coupon-input-popup__error caption-1",role:"alert",children:c})]})})}const C5=200;function g5(e){return e.itemId?(W0()[e.trainingType]??[]).find(n=>n?.id!=null&&String(n.id)===String(e.itemId))??null:null}function b5({plan:e,anchorRect:n,offset:a=12,onClose:r}){const{t:o}=pe.useTranslation(),i=s.useMemo(()=>U0(o).map(c=>({type:c,items:(e.items??[]).filter(u=>u.trainingType===c.key)})).filter(c=>c.items.length>0),[e.items,o]);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:u},d)=>[d>0?t.jsx("div",{className:"tooltip-training__divider"},`div-${c.key}`):null,t.jsxs("div",{className:"tooltip-training__section",children:[t.jsx("div",{className:"tooltip-training__section-header",children:t.jsx("span",{className:"tooltip-training__type-label body-3b",children:c.label})}),t.jsx("div",{className:"tooltip-training__items",children:u.map((p,m)=>{const h=g5(p);return h?t.jsx(zr,{index:m,type:c,trainingData:h,size:"compact",hideCheckBadge:!0},p.itemId??m):null})})]},c.key)])})});return n?t.jsx(wn,{anchorRect:n,offset:a,onClose:r,closeOnOutsideClick:!1,className:"tooltip-training",ariaLabel:o("tooltip.training","\uD6C8\uB828 \uC548\uB0B4"),children:l}):l}const Sc=["var(--color-main)","var(--color-sub)"],y5=2e3;function v5(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 Dc({active:e=!1,count:n=40,duration:a=2e3,strength:r=1,onComplete:o,trigger:i=0}){const l=s.useMemo(()=>{const f=Math.floor(n/2),v=n-f,b=(x,_)=>Array.from({length:x}).map((g,A)=>{const w=6+Math.random()*12,S=Math.round(Math.min(18,w*Math.min(1.5,1+r*.4))),N=Sc[Math.floor(Math.random()*Sc.length)],k=Math.random()*300,B=(360+Math.random()*260)*r*1.2,V=(_==="left"?-95+Math.random()*40:-85-Math.random()*40)*Math.PI/180,H=Math.cos(V)*B,j=Math.sin(V)*B*1.35,F=Math.random()*720-360,T=(1200+Math.random()*3e3)*Math.min(1.6,1+r*.3),Y=Math.random()>.7?"50%":"3px";return{id:`${_}-${A}`,side:_,size:S,color:N,delay:k,vx:H,vy:j,angularVel:F,life:T,borderRadius:Y}});return[...b(f,"left"),...b(v,"right")]},[n,r]),c=s.useRef(null),u=s.useRef({}),d=s.useRef(null),p=s.useRef(o);s.useEffect(()=>{p.current=o},[o]);const m=s.useRef(null),h=s.useRef(null),C=()=>{if(typeof document>"u")return null;let f=document.querySelector("[data-ihab-effect-root]");return f||(f=document.createElement("div"),f.className="app-effect",f.dataset.ihabEffectRoot="",f.style.position="fixed",f.style.inset="0",f.style.pointerEvents="none",f.style.zIndex="99998",document.body.appendChild(f)),f};if(typeof document<"u"&&h.current==null&&(h.current=C()),s.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 f=1200,v=performance.now(),b=h.current&&h.current!==document.body?h.current.getBoundingClientRect():null,x=Math.max(60,(window.innerHeight||800)*.05),_=q=>Math.max(40,(q||window.innerWidth)*.02),g=b?.width||window.innerWidth||375,A=b?.height||window.innerHeight||812,w=q=>{const P=[...q].sort((M,L)=>M-L);return P[Math.floor(P.length/2)]||1},S=w(l.map(q=>Math.abs(q.vy))),N=w(l.map(q=>Math.abs(q.vx))),k=Math.sqrt(2*f*(A*.72+x))/S,B=S*k/f,V=g*.5/(N*B),H=(q,P,M)=>Math.min(M,Math.max(P,q)),j=H(k,.8,2.4),F=H(V,.7,2.2),T=a>0?a/y5:1,Y=l.map(q=>({...q,life:q.life*T,vx:q.vx*F,vy:q.vy*j,startTime:v+q.delay,ended:!1})),R=b?{x:b.left-_(b.width),y:b.top+b.height+x}:{x:-_(window.innerWidth),y:window.innerHeight+x},O=b?{x:b.left+b.width+_(b.width),y:b.top+b.height+x}:{x:window.innerWidth+_(window.innerWidth),y:window.innerHeight+x},W=q=>{let P=!1;for(const M of Y){const L=u.current[M.id];if(!L||!L)continue;if(q<M.startTime){L.style.display="none",P=!0;continue}if(!M._inited){const Z=M.side==="left"?R.x:O.x,ie=M.side==="left"?R.y:O.y;L.style.left=`${Z}px`,L.style.top=`${ie}px`,L.style.transform="translate3d(0px, 0px, 0)",L.style.display="block",L.style.zIndex="100000",typeof M.color=="string"&&M.color.startsWith("var(")&&(L.style.background=v5(L,M.color)??"#FF0060"),M._inited=!0}const z=(q-M.startTime)/1e3;if(z<0)continue;const $=M.life/1e3;if(z>=$){L.style.opacity="0",L.style.display="none",M.ended=!0;continue}P=!0;const E=M.side==="left"?R.x:O.x,I=M.side==="left"?R.y:O.y,oe=E+M.vx*z,re=I+M.vy*z+.5*f*z*z,ee=(M.angularVel||0)*z,se=oe-E,Ce=re-I;L.style.transform=`translate3d(${se}px, ${Ce}px, 0) rotate(${ee}deg)`,L.style.opacity=`${Math.max(0,1-z/$)}`}P?d.current=requestAnimationFrame(W):p.current?.()};d.current=requestAnimationFrame(W);const le=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 P of l){const M=document.createElement("span");M.className=`confetti confetti--${P.side}`,M.setAttribute("aria-hidden","true"),M.style.display="none",M.style.position="fixed",M.style.left="0px",M.style.top="0px",M.style.width=`${P.size}px`,M.style.height=`${Math.max(4,P.size*.6)}px`,M.style.background=P.color,M.style.borderRadius=P.borderRadius,M.style.transform="translate3d(0,0,0)",M.style.opacity="0",q.appendChild(M),u.current[P.id]=M}(document.body||h.current).appendChild(q),m.current=q}}catch{}},300);return()=>{if(d.current&&cancelAnimationFrame(d.current),clearTimeout(le),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(f=>t.jsx("span",{"aria-hidden":!0,ref:v=>{u.current[f.id]=v},className:`confetti confetti--${f.side}`,style:{width:`${f.size}px`,height:`${Math.max(4,f.size*.6)}px`,background:f.color,borderRadius:f.borderRadius}},`${f.id}-${i}`))});return typeof document<"u"?qt.createPortal(y,h.current||document.body):y}function x5({trigger:e=0,active:n=!1}){const a=s.useRef(0);return s.useEffect(()=>{a.current=e},[e]),t.jsx(Dc,{active:n,trigger:e})}function _5({title:e,sub:n,rightAction:a,titleAction:r,badge:o,badgeVariant:i="default",documentTitle:l,onBack:c,backLabel:u,wrap:d=!1}){const{t:p}=pe.useTranslation();l2(typeof e=="string"?e:l??null);const m=u??p("common.back","\uB4A4\uB85C");return t.jsxs("div",{className:d?"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}),o&&t.jsx("div",{className:"page-title__badge",children:t.jsx(ut,{label:o,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 w5(e){return e??""}const Tc=s.createContext({words:[],loading:!1});function k5(){return s.useContext(Tc)}function A5({words:e,loading:n,error:a,statusMessage:r,localVersion:o,remoteVersion:i,progress:l,clearAndRefetch:c,checkRemoteVersion:u,children:d}){return t.jsx(Tc.Provider,{value:{words:e,loading:n,error:a,statusMessage:r,localVersion:o,remoteVersion:i,progress:l,clearAndRefetch:c,checkRemoteVersion:u},children:d})}function N5({items:e,actions:n,columns:a,flat:r=!1,className:o,style:i}){const l=a??e.length;return t.jsx("section",{className:ge("summary-strip",r&&"summary-strip--flat",o),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,u)=>t.jsxs("div",{className:"summary-strip__item",children:[t.jsx("p",{className:"summary-strip__label caption-1",children:c.label}),t.jsx("p",{className:"summary-strip__value body-3b",children:c.value})]},u))}),n&&t.jsx("div",{className:"summary-strip__actions",children:n})]})})}const B5=(e,n)=>`${e} / ${n}`;function S5({blocks:e,sectionTitles:n,logo:a,footer:r,pageLabel:o=B5,pageWidth:i,pageHeight:l,margin:c,className:u,style:d}){const{t:p}=pe.useTranslation(),m=s.useRef(null),h=s.useRef(null),C=s.useRef(null),y=s.useRef(null),[f,v]=s.useState(null),[b,x]=s.useState(!1);s.useEffect(()=>{const j=m.current;if(!j)return;const F=()=>x(j.scrollWidth>j.clientWidth+1);if(F(),typeof ResizeObserver>"u")return;const T=new ResizeObserver(F);return T.observe(j),()=>T.disconnect()},[f]);const _=e.map(j=>`${j.id}\0${j.section??""}\0${j.group??""}`).join(""),g=f&&f.shape===_?f.pages:null,[A,w]=s.useState(0);s.useEffect(()=>{const j=y.current;if(!j||typeof ResizeObserver>"u")return;const F=new ResizeObserver(()=>w(j.offsetHeight));return F.observe(j),()=>F.disconnect()},[]),s.useLayoutEffect(()=>{const j=h.current,F=y.current;if(!j||!F)return;const T=L=>L.getBoundingClientRect().height||L.offsetHeight,Y=new Map;C.current?.querySelectorAll("[data-chrome-section]").forEach(L=>{Y.set(L.dataset.chromeSection??"",T(L))});const R=L=>T(F)-(Y.get(L??"")??0),O=Array.from(j.children).map(L=>T(L)),W=[];e.forEach((L,z)=>{const $=W[W.length-1],E=$?e[$[0]]:void 0;E&&L.group!=null&&E.group===L.group&&E.section===L.section?$.push(z):W.push([z])});const le=[];let q=[],P=0;const M=()=>{q.length&&le.push(q),q=[],P=0};W.forEach(L=>{const z=L.reduce((E,I)=>E+O[I],0),$=R(e[L[0]].section);q.length&&e[q[0]].section!==e[L[0]].section&&M(),q.length&&P+z>$&&M(),z>$?L.forEach(E=>{q.length&&P+O[E]>$&&M(),q.push(E),P+=O[E]}):(L.forEach(E=>q.push(E)),P+=z)}),M(),v({shape:_,pages:le})},[_,A,i,l,c]);const S=Tr,N=S,k=r??t.jsxs(t.Fragment,{children:[t.jsx("img",{src:N,alt:"IHAB",className:"report-doc__logo"}),"\xA9 IHAB, Inc. All rights reserved."]}),B=(j,F,T)=>({header:t.jsxs("div",{className:"report-doc__header",children:[t.jsx("h2",{className:"report-doc__title h3b",children:T!=null&&n?.[T]||null}),a]}),footer:t.jsxs("div",{className:"report-doc__footer caption-1",children:[t.jsx("span",{className:"report-doc__footer-left",children:k}),t.jsx("span",{className:"report-doc__page-no",children:o(j,F)})]})}),V=Array.from(new Set(e.map(j=>j.section??""))),H={...i?{"--report-page-w":i}:null,...l?{"--report-page-h":l}:null,...c?{"--report-margin":c}:null,...d};return t.jsxs("div",{ref:m,className:ge("report-doc",u),style:H,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:C,children:V.map(j=>{const F=B(1,1,j||void 0);return t.jsxs("div",{"data-chrome-section":j,children:[F.header,F.footer]},j)})}),t.jsx("div",{ref:h,className:"report-doc__measure-blocks",children:e.map(j=>t.jsx("div",{children:j.content},j.id))})]}),g&&t.jsx("div",{className:"report-doc__pages",children:g.map((j,F)=>{const{header:T,footer:Y}=B(F+1,g.length,e[j[0]].section);return t.jsxs("section",{className:"report-doc__page",children:[T,j.map(R=>t.jsx("div",{children:e[R].content},e[R].id)),Y]},F)})})]})}function D5({title:e,fields:n,columns:a=4,className:r,style:o}){return t.jsxs("div",{className:ge("report-info",r),style:{"--report-info-cols":String(a),...o},children:[e&&t.jsx("p",{className:"report-info__title h5b",children:e}),t.jsx("div",{className:"report-info__grid",children:n.map((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))})]})}function T5({title:e,message:n,actionLabel:a,onAction:r,icon:o,onClose:i,className:l=""}){const{t:c}=pe.useTranslation(),u=a??c("common.update","\uC5C5\uB370\uC774\uD2B8");return t.jsxs("div",{className:ge("update-alert",l),role:"alert",children:[i&&t.jsx("button",{type:"button",className:"update-alert__close",onClick: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:o??t.jsx(Mo,{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:u})]})}function j5({title:e,description:n,topActions:a,children:r,footerLeft:o,footerRight:i,onClick:l,draggable:c,onDragStart:u,onDragEnd:d,className:p}){const m=o!=null||i!=null,h=r!=null&&r!==!1,C=s.useCallback(y=>{l&&y.target===y.currentTarget&&(y.key==="Enter"||y.key===" ")&&(y.preventDefault(),l())},[l]);return t.jsxs("div",{className:ge("training-card",l?"training-card--clickable":"",p),onClick:l,onKeyDown:l?C:void 0,role:l?"button":void 0,tabIndex:l?0:void 0,draggable:c,onDragStart:u,onDragEnd:d,children:[t.jsxs("div",{className:"training-card__header",children:[t.jsxs("div",{className:"training-card__title-row",children:[typeof e=="string"?t.jsx("h3",{className:"training-card__title h4",children:e}):e,a!=null&&t.jsx("div",{className:"training-card__top-actions",onClick: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:[o!=null&&t.jsx("div",{className:"training-card__footer-left",children:o}),i!=null&&t.jsx("div",{className:"training-card__meta",children:i})]})]})}function E5({title:e,count:n,collapsed:a=!1,onToggle:r,sort:o,actions:i,empty:l=!1,emptyContent:c,dragOver:u=!1,onDragOver:d,onDragLeave:p,onDrop:m,children:h,className:C}){const{t:y}=pe.useTranslation(),f=r!=null,v=ge("training-card-group",u&&"training-card-group--dragover",a&&"training-card-group--collapsed",f&&"training-card-group--collapsible",C);return t.jsxs("div",{className:v,onDragOver:d,onDragLeave:p,onDrop:m,children:[t.jsxs("header",{className:"training-card-group__header",children:[f&&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}),(o||i!=null)&&t.jsxs("span",{className:"training-card-group__actions",onClick:b=>b.stopPropagation(),children:[o&&t.jsx(en,{size:40,options:o.options,value:o.value,placeholder:o.placeholder,onChange:o.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 M5="speechear:saved_word_tables";function L5(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 $5(){try{const e=localStorage.getItem(M5);if(!e)return[];const n=JSON.parse(e);return Array.isArray(n)?n.filter(L5):[]}catch{return[]}}function R5({title:e,titleIcon:n,disc:a,items:r,onSaveComplete:o,onLoad:i,onRemoveItem:l,onReset:c,resetLabel:u,saveButtonLabel:d,secondarySaveButtonLabel:p,onReorder:m,showCellCount:h,onAddItem:C,className:y,renderSavePopup:f,renderWordSearch:v,hideControls:b,saveOnly:x,tableName:_,nameValue:g,onNameChange:A,descriptionValue:w,onDescriptionChange:S,namePlaceholder:N,descriptionPlaceholder:k,existingNames:B,editingName:V,onCancel:H}){const{t:j}=pe.useTranslation(),F=u??j("wordPrint.clearAllSelection","\uBAA8\uB450 \uC120\uD0DD \uD574\uC81C"),T=r===void 0,Y=!!A,[R,O]=s.useState([]),W=(g??"").trim(),le=W||(N??"").trim(),q=(w??"").trim()||(k??"").trim(),P=(B??[]).map(G=>G.trim().toLowerCase()),M=[V?.trim().toLowerCase(),...R].filter(G=>!!G),L=[...P];for(const G of M){const ne=L.indexOf(G);ne!==-1&&L.splice(ne,1)}const z=W!==""&&L.includes(W.toLowerCase()),[$,E]=s.useState(Array(4).fill(null)),[I,oe]=s.useState(4),[re,ee]=s.useState(null),[se,Ce]=s.useState("landscape"),[Z,ie]=s.useState(["\uC774\uBBF8\uC9C0","\uB2E8\uC5B4","\uD45C\uC900 \uBC1C\uC74C"]),[J,be]=s.useState("\uD45C\uC2DC"),[ve,Te]=s.useState(!0),[de,ye]=s.useState(!0),we=s.useRef(null),Q=s.useRef([]),[te,_e]=s.useState(8),[je,ze]=s.useState("right"),[Me,Oe]=s.useState(!1),[Re,tt]=s.useState(!1),{toastMessage:Ke,toastType:Ue,showWarning:fe,clearToast:Ge}=wi("warning"),Ee=s.useCallback(()=>ee(null),[ee]);C&&!T&&!h&&ea("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[$e,He]=s.useState(()=>Math.max(r?.length??1,1));s.useEffect(()=>{T||He(G=>Math.max(G,r?.length??1))},[r?.length,T]);const Ye=T?I:h?Math.max($e,r?.length??1):Math.max(r?.length??0,1),{width:gt,height:dt}=Yn[se],st=!T&&!h,nt=r?.length??0,at=Math.min(te,Math.max(nt,1)),Fe=st?at:Ye,Qe=st?Sl(r??[],Fe):null,Xe=!!Qe&&Qe.length>1,rt=T?$.some(G=>G!==null&&G.length>1):(r??[]).some(G=>G.words.length>1),Pe=_?.trim()||`${Es(Mn())} ${rt?j("wordTable.printFileNamePair","\uB300\uB9BD\uC30D\uD45C"):j("wordTable.printFileNameSingle","\uB2E8\uC5B4\uD45C")}`,Je=s.useCallback(()=>Xe?Q.current.filter(G=>G!==null):we.current?[we.current]:[],[Xe]),{print:yt,openNewWindow:Ut,downloadHtml:mt}=Qr({getElements:Je,paperW:gt,paperH:dt,fileName:Pe,onPopupBlocked:()=>{fe(j("wordTable.popupBlocked","\uD31D\uC5C5\uC774 \uCC28\uB2E8\uB418\uC5C8\uC2B5\uB2C8\uB2E4. \uBE0C\uB77C\uC6B0\uC800 \uC124\uC815\uC5D0\uC11C \uD31D\uC5C5\uC744 \uD5C8\uC6A9\uD574 \uC8FC\uC138\uC694."))}}),xt=G=>{oe(G),E(ne=>{const ke=Array(G).fill(null);return ne.slice(0,G).forEach((Ne,Be)=>{ke[Be]=Ne}),ke}),ee(null)},Ft=G=>{E(ne=>{const ke=[...ne];return ke[G]=null,ke}),re===G&&ee(null)},Gt=G=>{if(re===null)return;const ne=re;E(Ne=>{const Be=[...Ne];return Be[ne]=G,Be});const ke=$.findIndex((Ne,Be)=>Be>ne&&Ne===null);ee(ke!==-1?ke:null)},_t=T?$.some(G=>G?.some(ne=>!!ne.colloquialPronunciation)):(r??[]).some(G=>G.words.some(ne=>!!ne.colloquialLabel)),lt=s.useMemo(()=>Wn()?T?$.flatMap(G=>(G??[]).map(ne=>[ne.word,ne.homonum])):(r??[]).flatMap(G=>G.words.map(ne=>[ne.label,ne.homonum])):[],[T,$,r]),[Kt,Rt]=s.useState(!1);s.useEffect(()=>{if(lt.length===0)return;let G=!1;return Promise.all(lt.map(([ne,ke])=>_s(ne,ke))).then(ne=>{G||Rt(ne.some(Boolean))},()=>{}),()=>{G=!0}},[lt]);const yn=lt.length>0&&Kt,Dn=s.useMemo(()=>[...T||h?[{label:j("wordTable.filter.columns","\uCE78 \uC218"),items:Ab.map(G=>({value:`${G}\uCE78`,displayLabel:j("wordTable.filter.column",{count:G})})),display:"segmented"}]:[],...st&&(r?.length??0)>0?[Hl(j,{hasPairs:rt,itemCount:nt})]:[],...Xe?[Vl(j)]:[]],[j,T,h,st,r?.length,rt,nt,Xe]),et={...T||h?{[j("wordTable.filter.columns","\uCE78 \uC218")]:`${T?I:$e}\uCE78`}:{},...st&&(r?.length??0)>0?{[j(rt?"wordTable.filter.itemsPerPagePair":"wordTable.filter.itemsPerPageWord")]:`${at}\uAC1C`}:{},...Xe?{[j("wordTable.filter.pageNumber","\uD398\uC774\uC9C0 \uBC88\uD638")]:zl[je]}:{}},Ot=(G,ne)=>{if(ne===j("wordTable.filter.columns","\uCE78 \uC218"))T?xt(parseInt(G)):He(parseInt(G));else if(ne===j(rt?"wordTable.filter.itemsPerPagePair":"wordTable.filter.itemsPerPageWord")){const ke=parseInt(G);_e(Yr.includes(ke)?ke:Number.POSITIVE_INFINITY)}else ne===j("wordTable.filter.pageNumber","\uD398\uC774\uC9C0 \uBC88\uD638")&&ze(Wl(G))},wt=T?$.filter(G=>G!==null).map(G=>({id:G[0].word,words:G.map(ne=>({label:ne.word,subLabel:ne.pronunciation,homonum:ne.homonum}))})):r??[],Ht=(G=!1)=>{if(tt(G),Y&&o){const ne=le.trim().toLowerCase();ne&&O(ke=>ke.includes(ne)?ke:[...ke,ne]),o(le,wt,q||void 0,G);return}if(x&&o){o("",wt,void 0,G);return}if(o){Oe(!0);return}mt()},[Vt,zt]=s.useState(!1),[sn,ln]=s.useState(""),Wt=sn.trim(),cn=Wt!==""&&P.includes(Wt.toLowerCase()),nn=()=>{ln(le?j("wordTable.save.copyName",{name:le,defaultValue:"{{name}} (\uBCF5\uC0AC)"}):""),zt(!0)},ht=()=>{!Wt||cn||!o||(o(Wt,wt,q||void 0,!0),zt(!1))},Yt=wt.length===0,Zt=Yt||Y&&(le===""||z),Tt=()=>{if(Yt){fe(j("wordTable.emptyItems","\uB2E8\uC5B4\uB97C 1\uAC1C \uC774\uC0C1 \uCD94\uAC00\uD574\uC8FC\uC138\uC694."));return}if(Y&&le===""){fe(j("wordTable.save.nameRequired","\uD45C \uC774\uB984\uC744 \uC785\uB825\uD574 \uC8FC\uC138\uC694."));return}Y&&z&&fe(j("wordTable.save.duplicateName","\uC774\uBBF8 \uC0AC\uC6A9 \uC911\uC778 \uC774\uB984\uC785\uB2C8\uB2E4."))},ae=t.jsx(Zn,{items:wt,orientation:se,contentTypes:Z,cutLine:J,showOutline:ve,showDivLine:de,count:Ye});return t.jsxs(t.Fragment,{children:[t.jsxs(Kn,{type:"page",icon:n,title:e,disc:a,className:ge("word-table-block",y),children:[Vt&&t.jsx(Nn,{size:"small",title:p??j("wordTable.saveAsNewButton","\uB2E4\uB978 \uC774\uB984\uC73C\uB85C \uC800\uC7A5"),onClose:()=>zt(!1),footer:({closeWithAnimation:G})=>t.jsxs(t.Fragment,{children:[t.jsx(ce,{htmlType:"button",size:48,type:"bar",label:j("common.cancel","\uCDE8\uC18C"),onClick:G}),t.jsx(ce,{htmlType:"button",size:48,type:"bar",variant:"main",label:j("common.save","\uC800\uC7A5"),disabled:!Wt||cn,onClick:ht})]}),children:t.jsx(Fn,{label:j("wordTable.save.nameLabel","\uC774\uB984"),value:sn,onChange:ln,placeholder:j("wordTable.save.placeholder","\uC774 \uB2E8\uC5B4\uD45C\uC5D0 \uB300\uD55C \uC81C\uBAA9\uC744 \uC785\uB825\uD558\uC138\uC694."),maxLength:40,size:48,fullWidth:!0,autoFocus:!0,onEnter:ht,error:cn?j("wordTable.save.duplicateName","\uC774\uBBF8 \uC0AC\uC6A9 \uC911\uC778 \uC774\uB984\uC785\uB2C8\uB2E4."):void 0})}),Me&&o&&f?.({defaultName:typeof e=="string"?e:j("wordTable.defaultName","\uB2E8\uC5B4 \uD45C"),preview:ae,previewW:gt,previewH:dt,items:wt,existingNames:$5().map(G=>G.name),saveAsNew:Re,onSave:(G,ne)=>{o(G,wt,ne,Re),Oe(!1)},onCancel:()=>Oe(!1)}),(T||C)&&re!==null&&v?.({cellIndex:re,onConfirm:T?Gt:G=>{if(C){const ne=G[0];ne&&C({id:ne.word,words:[{label:ne.word,subLabel:ne.pronunciation,homonum:ne.homonum}]})}ee(null)},onClose:Ee}),!b&&t.jsx(Zr,{hasImage:yn,hasColloquial:_t,contentTypes:Z,orientation:se,showOutline:ve,cutLine:J,showDivLine:de,setters:{setContentTypes:ie,setOrientation:Ce,setShowOutline:Te,setCutLine:be,setShowDivLine:ye},showCutLine:(st?Fe:Ye)>1,showDivLine2:rt,middleSections:Dn,extraSelected:et,onExtraSelect:Ot}),Xe&&Qe?t.jsx("div",{className:"word-table-block__pages",children:Qe.map((G,ne)=>t.jsx(Zn,{orientation:se,contentTypes:Z,cutLine:J,showOutline:ve,showDivLine:de,count:Fe,items:G,onRemoveItem:l,onReorder:m&&((ke,Ne)=>m(ke+ne*Fe,Ne+ne*Fe)),contentRef:ke=>{Q.current[ne]=ke},pageNumber:{current:ne+1,total:Qe.length},pageNumberPosition:je},ne))}):t.jsx(Zn,{orientation:se,contentTypes:Z,cutLine:J,showOutline:ve,showDivLine:de,count:Ye,items:T?void 0:r??[],editCells:T?$:void 0,activeCell:re,onActivateCell:T||C?ee:void 0,onRemoveCell:T?Ft:void 0,onRemoveItem:T?void 0:l,onReorder:T?void 0:m,showFillerAdd:!!C,contentRef:we}),Y&&!b&&t.jsxs(Ga,{size:"medium",labelWidth:64,useBorder:!1,useRowBorder:!1,className:"word-table-block__meta",children:[t.jsx(Bn,{variant:"custom",label:j("wordTable.save.nameLabel","\uC774\uB984"),required:!0,align:"vertical",useFullWidth:!0,children:t.jsx(Fn,{required:!0,value:g??"",onChange:A,placeholder:N?N+j("wordTable.save.autoFillHint"," (Tab \uB610\uB294 space \uC785\uB825\uC2DC \uC790\uB3D9 \uC785\uB825)"):j("wordTable.save.placeholder","\uC774 \uB2E8\uC5B4\uD45C\uC5D0 \uB300\uD55C \uC81C\uBAA9\uC744 \uC785\uB825\uD558\uC138\uC694."),ariaLabel:j("wordTable.save.nameLabel","\uC774\uB984"),maxLength:40,size:48,fullWidth:!0,error:z?j("wordTable.save.duplicateName","\uC774\uBBF8 \uC0AC\uC6A9 \uC911\uC778 \uC774\uB984\uC785\uB2C8\uB2E4."):void 0,onKeyDown:G=>{(G.key==="Tab"&&!G.shiftKey||G.key===" ")&&!(g??"").trim()&&(N??"").trim()&&(G.preventDefault(),A?.(N??""))}})}),t.jsx(Bn,{variant:"custom",label:j("wordTable.save.descriptionLabel","\uC124\uBA85"),align:"vertical",useFullWidth:!0,children:t.jsx(Fn,{value:w??"",onChange:S,placeholder:k?k+j("wordTable.save.autoFillHint"," (Tab \uB610\uB294 space \uC785\uB825\uC2DC \uC790\uB3D9 \uC785\uB825)"):j("wordTable.save.descriptionPlaceholder","\uC774 \uB2E8\uC5B4\uD45C\uC5D0 \uB300\uD55C \uC124\uBA85\uC744 \uC785\uB825\uD558\uC138\uC694."),ariaLabel:j("wordTable.save.descriptionLabel","\uC124\uBA85"),maxLength:200,multiline:!0,rows:2,fullWidth:!0,onKeyDown:G=>{(G.key==="Tab"&&!G.shiftKey||G.key===" ")&&!(w??"").trim()&&(k??"").trim()&&(G.preventDefault(),S?.(k??""))}})})]})]}),!b&&t.jsxs("div",{className:"word-table-block__actions",children:[t.jsxs("div",{className:"word-table-block__actions-left",children:[!x&&c&&t.jsx(ce,{htmlType:"button",size:40,type:"bar",label:F,onClick:c}),!x&&i&&t.jsx(ce,{htmlType:"button",size:40,type:"bar",label:j("wordTable.load","\uBD88\uB7EC\uC624\uAE30"),onClick:i}),!x&&t.jsx(ce,{htmlType:"button",size:40,type:"bar",label:j("wordTable.openNewWindow","\uC0C8 \uCC3D\uC73C\uB85C \uBCF4\uAE30"),onClick:Ut})]}),t.jsxs("div",{className:"word-table-block__actions-right",children:[H&&t.jsx(ce,{htmlType:"button",size:"56",type:"bar",label:j("common.cancel","\uCDE8\uC18C"),onClick:H}),!x&&t.jsx(ce,{htmlType:"button",size:"56",type:"bar",label:j("wordTable.print","\uC778\uC1C4\uD558\uAE30"),onClick:yt}),p&&t.jsx(ce,{htmlType:"button",size:"56",type:"bar",label:p,onClick:()=>Y?nn():Ht(!0),disabled:Yt,onDisabledClick:()=>{fe(j("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:d??j("wordTable.saveButton","\uC800\uC7A5\uD558\uAE30"),onClick:()=>Ht(!1),disabled:Zt,onDisabledClick:Tt})]})]}),t.jsx(Gn,{message:Ke,type:Ue,onClose:Ge})]})}function jc({items:e,className:n}){const a=e.length,r=a<=3?1:2,o=Math.ceil(a/r)||1,i=r*o;return t.jsx("div",{className:ge("word-table-thumb",n),style:{gridTemplateColumns:`repeat(${r}, 1fr)`},children:Array.from({length:i},(l,c)=>{const u=e[c];return u?t.jsx("div",{className:"word-table-thumb__cell",children:(u.words.length?u.words:[{label:u.id}]).map((d,p)=>t.jsxs(s.Fragment,{children:[p>0&&t.jsx("span",{className:"word-table-thumb__divider"}),t.jsx("span",{className:"word-table-thumb__word body-3",children:d.label})]},p))},c):t.jsx("div",{className:"word-table-thumb__cell word-table-thumb__cell--empty"},c)})})}function P5({items:e,name:n,description:a,createdAt:r,published:o,publishedLabel:i,shared:l,sharedLabel:c,isNew:u,publisherName:d,publishedAt:p,likeCount:m,downloadCount:h,onPublisherClick:C,selected:y,onClick:f,onMore:v,titleNode:b,className:x}){const{t:_}=pe.useTranslation(),g=b!=null,A=d!=null||p!=null||m!=null||h!=null,w=S=>{S.target===S.currentTarget&&!g&&(S.key==="Enter"||S.key===" ")&&(S.preventDefault(),f?.())};return t.jsxs("div",{className:ge("word-table-button",y?"word-table-button--selected":"",A?"":"word-table-button--no-footer",x),role:"button",tabIndex:0,"aria-label":n,onClick:g?void 0:f,onKeyDown:w,children:[u&&t.jsx("span",{className:"word-table-button__new-dot","aria-label":_("myWordTable.newBadge","\uC0C8\uB85C \uB9CC\uB4E0 \uD45C")}),t.jsx(jc,{items:e,className:"word-table-button__thumb"}),t.jsxs("div",{className:"word-table-button__info",children:[t.jsxs("div",{className:"word-table-button__info-text",children:[b??t.jsx("div",{className:"word-table-button__title h4",children:n}),a&&t.jsx("div",{className:"word-table-button__desc body-3",children:a})]}),v&&!g&&t.jsx(ce,{htmlType:"button",className:"word-table-button__more",size:32,type:"dot",variant:"transparent-gray",useBorder:!1,icon:"ellipsis",ariaLabel:_("common.moreFor",{name:n}),onClick:S=>{S.stopPropagation(),v(S)}})]}),(r||o||l)&&t.jsxs("div",{className:"word-table-button__meta-row",children:[t.jsx("span",{className:"word-table-button__meta caption-1",children:r?js(r,_):""}),t.jsxs("span",{className:"word-table-button__badges",children:[o&&t.jsx(ut,{className:"word-table-button__badge",size:"small",variant:"main",fill:"soft",iconLeft:"book-marked",label:i??_("myWordTable.publishedBadge","\uBC1C\uD589\uB428")}),l&&t.jsx(ut,{className:"word-table-button__badge",size:"small",fill:"soft",iconLeft:"link",label:c??_("myWordTable.sharedBadge","\uACF5\uC720 \uC911")})]})]}),A&&t.jsxs("div",{className:"word-table-button__footer",children:[t.jsxs("span",{className:"word-table-button__store-by",children:[d&&t.jsx("button",{className:"training-card__publisher body-4",type:"button",onClick:S=>{S.stopPropagation(),C?.()},children:d}),p&&t.jsx("span",{className:"training-card__date body-4",children:js(p,_)})]}),t.jsxs("span",{className:"word-table-button__store-stats",children:[m!=null&&t.jsx(ut,{size:"small",fill:"soft",variant:"like",iconLeft:"heart",label:String(m)}),h!=null&&t.jsx(ut,{size:"small",fill:"soft",variant:"main",iconLeft:"download",label:String(h)})]})]})]})}/**
973
+ `).map((l,c,u)=>t.jsxs(s.Fragment,{children:[l,c<u.length-1&&t.jsx("br",{})]},c))})}),t.jsxs("div",{className:"site-footer__links",children:[t.jsxs("div",{className:"site-footer__column",children:[t.jsx("div",{className:"site-footer__column-title footer-title",children: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:Tr,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 ",o]})]})]})]}),t.jsx("div",{className:"site-footer__copyright footer-copyright caption-1",children:"\xA9 IHAB, Inc. All rights reserved."})]})})}function oy({logo:e,logoAlt:n="",logoHref:a,links:r=[],actions:o,className:i,containerClassName:l,renderLink:c,menuLabel:u}){const{t:d}=pe.useTranslation(),p=u??{open:d("header.menuOpen","\uBA54\uB274 \uC5F4\uAE30"),close:d("header.menuClose","\uBA54\uB274 \uB2EB\uAE30")},[m,h]=s.useState(!1),C=s.useId(),y=s.useRef(null);s.useEffect(()=>{if(!m)return;const b=$n(()=>{const g=document.getElementById(C);g&&g.contains(document.activeElement)&&y.current?.focus(),h(!1)}),x=typeof window<"u"&&window.matchMedia?window.matchMedia("(min-width: 961px)"):null,_=g=>{g.matches&&h(!1)};return x&&(x.matches&&h(!1),x.addEventListener?.("change",_)),()=>{b(),x?.removeEventListener?.("change",_)}},[m,C]);const f=l?`${l} landing-header__inner`:"landing-header__inner",v=(b,x)=>c?c(b,{onClick:x}):t.jsx("a",{href:b.href,onClick:x,"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:f,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,x)=>t.jsx("span",{children:v(b)},`${x}:${b.href}`))}),t.jsxs("div",{className:"landing-header__actions",children:[o,r.length>0&&t.jsx("button",{ref:y,type:"button",onClick:()=>h(b=>!b),"aria-expanded":m,"aria-controls":C,"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:C,hidden:!m,className:"landing-header__drawer",children:t.jsx("div",{className:l??void 0,children:r.map((b,x)=>t.jsx("span",{className:"landing-header__drawer-item",children:v(b,()=>h(!1))},`${x}:${b.href}`))})})]})}function sy({children:e,action:n,onClick:a,className:r}){const o=a?"bottom-sticky__inner bottom-sticky__inner--clickable":"bottom-sticky__inner";return t.jsx("div",{className:r?`bottom-sticky ${r}`:"bottom-sticky",children:t.jsxs("div",{className:o,onClick:a,...vl(a),children:[t.jsx("div",{className:"bottom-sticky__content",children:e}),n]})})}const Jn=9,iy=e=>Math.round(Math.min(Jn,Math.max(0,e))/Jn*100),ly=e=>e/100*Jn,Wa=2,Xl=.1,Jl=e=>Math.min(Wa,Math.max(0,e)),cy=e=>Math.round(e*10)/10;function ya(e){const{noiseRatio:n}=e;if(typeof n=="number"&&Number.isFinite(n))return Jl(n);const a=Math.min(Jn,Math.max(0,Number(e.level)||0))/Jn,r=Number(e.mainVolume);return r>0?cy(Jl(a/r)):1}const Ql=e=>Math.min(1,Math.max(0,Number(e.mainVolume)||0));function ec(e){return Ql(e)}function ao(e){return Ql(e)*ya(e)}function ro(e,n=gs()){const a=Number.isFinite(n)&&n>0?n:1;return Math.min(1,ao(e)/a)}function va(e,n){const a={...e,...n??{}};return n&&"level"in n&&typeof n.noiseRatio!="number"&&(a.noiseRatio=ya({level:a.level,mainVolume:a.mainVolume})),a}const xa={enabled:!0,type:"defaultNoise",level:4.5,noiseRatio:1,speed:1,mainVolume:1,mainSpeed:1},oo=s.createContext(null);function qa(){return s.useContext(oo)}const so=e=>`${e0()}/${e}`,tc=e=>Array.from({length:10},(n,a)=>so(`${e}-${String(a+1).padStart(2,"0")}.mp3`)),Ua={get defaultNoise(){return so("noise1.mp3")},get street(){return tc("noise2")},get restaurant(){return tc("noise3")},get buzz(){return so("noise4.mp3")}};function uy(e){const n=Math.floor(Math.random()*10);switch(e){case"defaultNoise":return Ua.defaultNoise;case"street":return Ua.street[n];case"restaurant":return Ua.restaurant[n];case"buzz":return Ua.buzz;default:return null}}function dy({noisePlayer:e,audioRef:n,playbackStateRef:a}){const r=s.useRef(e?.registerAnalyser);r.current=e?.registerAnalyser;const o=s.useRef(null),[i,l]=s.useState(null),c=s.useRef(null),u=s.useRef(null),d=s.useRef(null),p=s.useRef(null),m=s.useRef(0),h=s.useRef(null),C=s.useCallback(()=>{p.current!==null&&(cancelAnimationFrame(p.current),p.current=null),h.current!==null&&(clearTimeout(h.current),h.current=null)},[]),y=s.useCallback((_,g=250)=>{const A=o.current;if(!A)return;const w=u.current;if(w){u.current=null;try{A.pause()}catch{}A.src=w,A.load()}if(!A.src)return;m.current+=1,C();try{hr(),Aa(A).then(N=>{if(o.current===A)try{r.current?.("noise",N)}catch{}})}catch{}const D=A.paused?0:Na(A);A.paused&&_n(A,0),A.play().catch(()=>{});const B=performance.now(),k=()=>{const N=Math.min(1,(performance.now()-B)/g);try{_n(A,D+(_-D)*N)}catch{}N<1?p.current=requestAnimationFrame(k):p.current=null};p.current=requestAnimationFrame(k)},[C]),f=s.useCallback((_=250,g)=>{const A=o.current;if(!A||A.paused){g?.();return}const w=++m.current;C();const D=performance.now(),B=Na(A),k=()=>{const N=Math.min(1,(performance.now()-D)/_);try{_n(A,B*(1-N))}catch{}if(N<1)p.current=requestAnimationFrame(k);else{p.current=null,h.current!==null&&(clearTimeout(h.current),h.current=null);try{A.pause()}catch{}g?.()}};p.current=requestAnimationFrame(k),h.current=setTimeout(()=>{if(h.current=null,m.current===w){p.current!==null&&(cancelAnimationFrame(p.current),p.current=null);try{A.paused||(_n(A,0),A.pause(),g?.())}catch{}}},_+150)},[C]);s.useEffect(()=>{const _=document.createElement("audio");return _.loop=!0,_.crossOrigin="anonymous",o.current=_,()=>{C();try{_.pause(),_.src=""}catch{}o.current=null,c.current=null,u.current=null}},[C]);const v=e?ro(e.settings):0,b=!!e?.settings.enabled&&v>0;s.useEffect(()=>{if(!b)return;let _=0;const g=setInterval(()=>{const A=o.current;if(!A||A.paused){_=0;return}const w=n.current;if(w&&!w.paused&&!w.ended||a.current==="playing"){_=0;return}_+=1,_>=2&&(_=0,f())},400);return()=>clearInterval(g)},[f,b,n,a]),s.useEffect(()=>{const _=()=>{if(!document.hidden)return;const g=o.current;if(g&&!g.paused){C();try{g.pause()}catch{}}};return document.addEventListener("visibilitychange",_),()=>document.removeEventListener("visibilitychange",_)},[C]),s.useEffect(()=>{d.current=e?{enabled:e.settings.enabled,volume:v,type:e.settings.type}:null},[e,e?.settings.enabled,v,e?.settings.type]);const x=s.useRef(null);return s.useEffect(()=>()=>{x.current?.(),x.current=null},[]),s.useEffect(()=>{const _=e?.settings,g=o.current;if(!g)return;const A=_?ro(_):0;if(!_||!_.enabled||A===0){f();return}if(c.current!==_.type){const w=uy(_.type);w&&(c.current=_.type,l(w),u.current=w,f(150,()=>{if(u.current!==w)return;u.current=null,g.src=w,g.load();const D=n.current;if(D&&!D.paused){x.current?.();const B=()=>{g.removeEventListener("canplay",B),x.current===k&&(x.current=null);const N=n.current,I=d.current;N&&!N.paused&&!N.ended&&I?.enabled&&I.volume>0&&y(I.volume)},k=()=>g.removeEventListener("canplay",B);x.current=k,g.addEventListener("canplay",B)}}))}else{const w=n.current,D=!!w&&!w.paused&&!w.ended||a.current==="playing";if(D&&u.current)y(A);else if(D&&g.paused&&g.src)y(A);else if(!g.paused)if(!D)f();else{C();const B=Na(g),k=performance.now(),N=()=>{const I=Math.min(1,(performance.now()-k)/150);try{_n(g,B+(A-B)*I)}catch{}I<1?p.current=requestAnimationFrame(N):p.current=null};p.current=requestAnimationFrame(N)}}},[e?.settings,e?.settings.enabled,v,e?.settings.type,C,y,f,n,a,d]),s.useEffect(()=>{const _=o.current;if(_)try{_.playbackRate=Math.min(1.25,Math.max(.75,e?.settings.speed??1))}catch{}},[e?.settings.speed]),{noiseAudioRef:o,activeNoiseUrl:i,noiseSettingsRef:d,cancelNoiseFade:C,fadeInNoise:y,fadeOutNoise:f}}function py({ttsText:e,playbackRate:n,mainVolume:a,fillRef:r,waveProgressRef:o,setProgress:i,setPlaybackState:l,setStateLocal:c,fadeInNoise:u,fadeOutNoise:d,noiseSettingsRef:p,onDoneRef:m,handleEndRef:h}){const C=s.useRef(null),y=s.useRef(0),f=s.useRef(null),v=s.useRef(0),b=s.useRef(!1);s.useEffect(()=>()=>{v.current++;try{if(f.current&&(cancelAnimationFrame(f.current),f.current=null),b.current&&window.speechSynthesis){try{window.speechSynthesis.cancel()}catch{}b.current=!1}}catch{}},[]);const x=(A,w=1)=>{try{const D=(A||"").trim().split(/\s+/).filter(Boolean).length||Math.max(1,(A||"").length);return Math.max(700,Math.round(D*300/Math.max(.25,w)))}catch{return 1200}},_=s.useCallback(A=>{if(typeof window>"u"||!window.speechSynthesis){try{typeof m.current=="function"&&m.current(!0)}catch{}return}const w=window.speechSynthesis,D=++v.current;try{try{w.cancel()}catch{}const B=A??e,k=(Array.isArray(B)?B[0]??"":B)||"",N=new SpeechSynthesisUtterance(k);try{N.rate=Math.max(.3,Math.min(3,n))}catch{}try{N.volume=Math.max(0,Math.min(1,a))}catch{}y.current=x(k,N.rate||1),C.current=performance.now(),i(0),l("playing"),c("playMode");const I=p.current;I?.enabled&&(I?.volume??0)>0&&u(I.volume);const O=()=>{try{const E=C.current||performance.now(),V=performance.now()-E,j=y.current||1200,Y=Math.min(1,V/j);try{r.current&&(r.current.style.left=`${Y*100}%`),o.current&&o.current.style.setProperty("--progress",String(Y))}catch{}Y<1&&(f.current=requestAnimationFrame(O))}catch{}};N.onend=()=>{if(D===v.current)try{f.current&&(cancelAnimationFrame(f.current),f.current=null),i(1),l("stopped");try{h.current?.()}catch{try{typeof m.current=="function"&&m.current(!0)}catch{}}}catch{}},N.onerror=()=>{N.onend?.(new Event("end"))},N.onstart=()=>{try{f.current&&(cancelAnimationFrame(f.current),f.current=null),f.current=requestAnimationFrame(O)}catch{}};try{b.current=!0,w.speak(N)}catch{try{typeof m.current=="function"&&m.current(!0)}catch{}}}catch{try{typeof m.current=="function"&&m.current(!0)}catch{}}},[e,n,a,u,r,o,i,l,c,p,m,h]),g=s.useCallback(()=>{v.current++;try{if(window.speechSynthesis)try{window.speechSynthesis.cancel()}catch{}f.current&&(cancelAnimationFrame(f.current),f.current=null),d(),C.current=null}catch{}l("stopped"),c("active"),i(0)},[d,l,c,i]);return{startTTS:_,stopTTS:g}}async function my(e,n,a){let r=null;try{const o=window.AudioContext||window.webkitAudioContext;r=new o;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,u=Math.max(n,c),d=Math.floor(u/n)||1;return new Array(n).fill(0).map((p,m)=>{const h=m*d,C=Math.min(h+d,u);let y=0;for(let f=h;f<C;f++){const v=Math.abs(l[f]);v>y&&(y=v)}return y})}catch{return null}finally{try{r?.close?.()}catch{}}}async function nc(e,n,a){try{const r=await fetch(e);if(r.ok===!1)return null;const o=await r.arrayBuffer();return await my(o,n,a)}catch(r){try{const o=Bs(r)}catch{}return null}}const ac=45,hy=74,fy=2;function _a(e){const n=Math.min(2,Math.max(0,Number(e)||0));return n<=1?n*45:45+(n-1)*29}function io(e){return _a(e)/45}const rc=4;function Cy(e){const{src:n,segments:a,progress:r=0,waveProgressRef:o,noiseSrc:i,noiseRatio:l=0,noiseSpeed:c=1,totalDuration:u=0,mainVolume:d=1,onReadyChange:p,showSoundWaveForm:m=!0}=e,h=s.useRef(null),C=s.useRef(null),[y,f]=s.useState(null),[v,b]=s.useState(!1),[x,_]=s.useState(null),[g,A]=s.useState(2),[w,D]=s.useState(0),[B,k]=s.useState(null),[N,I]=s.useState(!1),O=3,E=3,V=1,j=300,Y=s.useRef(0),R=s.useCallback(async(ae,ee)=>{const se=++Y.current,Ce=()=>Y.current===se;try{if(b(!1),!ae){Ce()&&f(null);return}let Z=ee;if(!Z)try{for(let te=0;te<4&&!(h.current||C.current);te++)await new Promise(we=>requestAnimationFrame(we));await new Promise(te=>requestAnimationFrame(te));const J=h.current,be=C&&C.current?C.current:J?J.closest(".audio-player__wave"):null,ve=be?be.getBoundingClientRect():J?J.getBoundingClientRect():null,Te=ve?Math.max(100,ve.width):320,de=ve?ve.height:0;de>0&&D(de),Z=Math.max(V,Math.min(j,Math.floor((Te+E)/(O+E))));const ye=Z*O,_e=Math.max(0,Z-1),Q=_e>0?(Te-ye)/_e:E;A(Math.max(0,Q))}catch{Z=120}const ie=await nc(ae,Z);if(!Ce())return;if(!ie){f(null),b(!1);return}f(ie),_(Z),b(!0)}catch{if(!Ce())return;f(null),b(!1)}},[b,f,D,A,_]);s.useEffect(()=>{const ae=a&&a[0]&&a[0].src||n||a&&a.length===1&&a[0]&&a[0].src;R(typeof ae=="string"?ae:void 0).catch(()=>{}),I(!1)},[n,a,R]),s.useEffect(()=>{let ae=!1;if(!i||!x){k(null);return}const ee=u>0?u*(c||1):void 0;return nc(i,x,ee).then(se=>{ae||k(se)}).catch(()=>{ae||k(null)}),()=>{ae=!0}},[i,x,u,c]);const H=Math.max(0,Math.min(1,d)),W=s.useMemo(()=>y&&y.length&&Math.max(...y)||1,[y]),le=x||40,q=s.useMemo(()=>Array.from({length:le}).map((ae,ee)=>{const se=y&&y[ee]!=null?y[ee]:null,Ce=se==null?null:Math.min(1,se/W*H),Z=Ce!=null&&w>0&&_a(Ce)<=rc,ie=Ce==null?.15:Z?0:io(Ce),J=le>1?ee/(le-1):0;return t.jsx("div",{className:Z?"audio-player__bar audio-player__bar--hidden":"audio-player__bar",style:{"--val":ie,"--i":ee,"--mix":J}},ee)}),[le,y,W,H,w]),P={"--progress":String(Math.max(0,Math.min(1,r)))},M=i?Math.max(1,l):1,L={"--bar-gap":`${g}px`,"--wave-h":`${_a(M)}px`,"--wave-h1":`${ac}px`},z=H*Math.max(0,l)/gs(),$=v&&(i?!!B:!0);s.useEffect(()=>{$&&I(!0)},[$]);const T=N?v:$;s.useEffect(()=>{p?.(T)},[T,p]);const F=x||40,oe=s.useMemo(()=>Array.from({length:F}).map((ae,ee)=>{const se=B&&B[ee]!=null?B[ee]:null,Ce=se==null?0:se/W*z,Z=w>0&&_a(Ce)<=rc,ie=Z?0:io(Ce),J=F>1?ee/(F-1):0;return t.jsx("div",{className:Z?"audio-player__bar audio-player__bar--hidden":"audio-player__bar",style:{"--val":ie,"--i":ee,"--mix":J}},ee)}),[F,B,W,z,w]);return t.jsxs("div",{className:"audio-player__wave",ref:C,style:L,children:[i&&t.jsx("div",{className:`audio-player__wave-noise ${$?"is-ready":""}`,"aria-hidden":"true",children:oe}),m&&t.jsxs(t.Fragment,{children:[t.jsx("div",{className:`audio-player__wave-inner audio-player__wave-unplayed ${T?"is-ready":""}`,ref:h,children:q}),t.jsx("div",{className:`audio-player__wave-inner audio-player__wave-played ${T?"is-ready":""}`,ref:o,style:P,children:q})]})]})}const gy={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 lo(e,n){return new Promise((a,r)=>{const o=document.createElement("audio");let i=!1;const l=()=>{try{o.src=""}catch{}},c=()=>{if(i)return;i=!0;const d=isFinite(o.duration)&&o.duration||0;l(),a(d)},u=d=>{i||(i=!0,l(),n.rejectOnError?r(new Error(d)):a(0))};o.addEventListener("loadedmetadata",c),o.addEventListener("error",()=>u("audio load failed")),setTimeout(()=>u("audio load timeout"),n.timeoutMs),o.src=e})}const by=2e3;function oc(e,n=by){return new Promise(a=>{let r=!1;const o=()=>{r||(r=!0,a())};e.addEventListener("canplay",o,{once:!0}),e.addEventListener("error",o,{once:!0}),setTimeout(o,n)})}function yy({showSoundWaveForm:e,showNoiseWaveForm:n,timeoutMs:a=2500}){const r=s.useRef(!1),o=s.useRef([]),i=s.useCallback(u=>{if(r.current=u,!u||!o.current.length)return;const d=o.current;o.current=[];for(const p of d)p()},[]),l=s.useCallback(()=>{r.current=!1},[]),c=s.useCallback(()=>!e&&!n||r.current?Promise.resolve():new Promise(u=>{const d=setTimeout(u,a);o.current.push(()=>{clearTimeout(d),u()})}),[e,n,a]);return s.useEffect(()=>()=>{const u=o.current;o.current=[];for(const d of u)d()},[]),{onReadyChange:i,waitForReady:c,markNotReady:l}}function vy(){const e=s.useRef([]),n=s.useCallback(o=>(e.current.push(o),o),[]),a=s.useCallback(o=>{const i=new Set([...o].filter(Boolean));e.current=e.current.filter(l=>{if(i.has(l))return!0;try{URL.revokeObjectURL(l)}catch{}return!1})},[]),r=s.useCallback(()=>{a([])},[a]);return s.useEffect(()=>()=>{for(const o of e.current)try{URL.revokeObjectURL(o)}catch{}e.current=[]},[]),{track:n,keepOnly:a,revokeAll:r}}function xy({offsetY:e=8}={}){const n=s.useRef(null),[a,r]=s.useState(null),o=s.useCallback(()=>r(null),[]),i=s.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 s.useEffect(()=>{if(a)return document.addEventListener("mousedown",o),()=>document.removeEventListener("mousedown",o)},[a,o]),{ref:n,rect:a,show:i,hide:o}}function _y({currentTime:e,sources:n,index:a,audioDuration:r}){const o=a||0,i=Array.isArray(n)&&n.length>0?n[o]: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 wy(e,n){if(!Array.isArray(e))return null;const a=n||0;return a<e.length-1?a+1:null}function ky({ended:e,completedByEnd:n}){return!!e||!!n}function Ay(e){return e.map((n,a)=>({src:n.src,label:String(a+1),color:void 0,duration:n.duration||0}))}function Ny(e){return e.reduce((n,a)=>n+(a.duration||0),0)}function By(e,n,a){const r=Array.isArray(e)?e:e?[e]:[],o=[];for(const i of r)if(i){if(typeof i=="object"&&i!==null&&"src"in i&&i.src){const l=i;o.push({code:l.code??null,src:l.src});continue}if(typeof i=="string"&&(i.startsWith("http")||i.includes("/"))){o.push({code:null,src:i});continue}if(typeof i=="string"||typeof i=="number"){const l=String(i),c=a(l,n);c&&o.push({code:l,resolvedPath:c})}}return o}function Dy({audioRef:e,fillRef:n,waveProgressRef:a,sourcesRef:r,currentIndexRef:o}){const i=s.useRef(null),l=s.useCallback(()=>{i.current!==null&&(cancelAnimationFrame(i.current),i.current=null)},[]),c=s.useCallback(()=>{if(i.current!==null)return;const d=()=>{try{const p=e.current,m=_y({currentTime:p&&typeof p.currentTime=="number"?p.currentTime:0,sources:r.current,index:o.current,audioDuration:p&&p.duration?p.duration:0});try{n.current&&(n.current.style.left=`${m*100}%`)}catch{}try{a.current?.style.setProperty("--progress",String(m))}catch{}}catch{}i.current=requestAnimationFrame(d)};i.current=requestAnimationFrame(d)},[e,n,a,r,o]),u=s.useCallback(d=>{l();try{n.current&&(n.current.style.left=`${d*100}%`)}catch{}try{a.current?.style.setProperty("--progress",String(d))}catch{}},[l,n,a]);return s.useEffect(()=>l,[l]),{start:c,stop:l,settleTo:u}}function co({btnLabel:e,soundSrc:n,bucketPath:a,onDone:r,disabled:o=!1,ttsText:i=null,className:l,showSoundWaveForm:c=!0,showNoiseWaveForm:u=!0}){const{t:d}=pe.useTranslation(),p=e,m=qa(),h=s.useRef(m?.registerAnalyser);s.useEffect(()=>{h.current=m?.registerAnalyser});const C=s.useRef(null),y=s.useRef(null),f=s.useRef(null),v=vy(),b=s.useRef(null),x=s.useRef(!1),_=s.useRef(0),g=s.useRef(null),{ref:A,rect:w,show:D,hide:B}=xy();s.useEffect(()=>()=>{h.current?.("main",null),h.current?.("noise",null)},[]);const[k,N]=s.useState(!1),[I,O]=s.useState("idle"),[E,V]=s.useState("stopped"),j=s.useRef("stopped");s.useEffect(()=>{j.current=E},[E]);const[Y,R]=s.useState(0),[H,W]=s.useState("active"),le=s.useRef(!1);s.useEffect(()=>{if(H!=="playMode"||!le.current)return;le.current=!1;const X=typeof document<"u"?document.activeElement:null;if(X&&X!==document.body)return;const he=f.current?.querySelectorAll("button")[1];try{he?.focus()}catch{}},[H]);const[q,P]=s.useState(null),[M,L]=s.useState(null),[z,$]=s.useState(0),[T,F]=s.useState(!1),[oe,ae]=s.useState(0),ee=m?.playbackRate??1,se=m?.mainVolume??1,Ce=m?ao(m.settings):0,Z=m?ec(m.settings):se,[ie,J]=s.useState("idle"),[be,ve]=s.useState(""),[Te]=s.useState("top"),de=s.useRef(null),ye=s.useRef(0),_e=s.useRef(null),{start:Q,stop:te,settleTo:we}=Dy({audioRef:C,fillRef:y,waveProgressRef:_e,sourcesRef:de,currentIndexRef:ye}),{onReadyChange:Se,waitForReady:ze,markNotReady:Me}=yy({showSoundWaveForm:c,showNoiseWaveForm:u}),Oe=s.useRef(null),Re=s.useRef(o),tt=s.useRef(r),Ye=s.useRef(null),Ke=s.useRef(!1),[fe,We]=s.useState(!1),Ee=s.useCallback(X=>{Ke.current=X,We(X)},[]),$e=s.useRef(null),{activeNoiseUrl:He,noiseSettingsRef:Ue,fadeInNoise:gt,fadeOutNoise:dt}=dy({noisePlayer:m,audioRef:C,playbackStateRef:j}),{startTTS:st,stopTTS:nt}=py({ttsText:i,playbackRate:ee,mainVolume:Z,fillRef:y,waveProgressRef:_e,setProgress:R,setPlaybackState:V,setStateLocal:W,fadeInNoise:gt,fadeOutNoise:dt,noiseSettingsRef:Ue,onDoneRef:tt,handleEndRef:$e});s.useEffect(()=>{Gt.current=nt});const at=X=>{Kt("tts"),st(X)},Fe=Array.isArray(n)?n.filter(Boolean):n?[n]:[],Qe=(!Fe||Fe.length===0)&&!!i,Xe=Array.isArray(q)&&q.length>0?q:Array.isArray(M)&&M.length>0?M:null,rt=Math.max(Array.isArray(Xe)?Xe.length:0,Fe.length),Pe=s.useRef(!0);s.useEffect(()=>(Pe.current=!0,()=>{Pe.current=!1}),[]);const Je=s.useRef(0),yt=()=>{Je.current+=1,_.current+=1},Gt=s.useRef(null),mt=s.useRef(null),xt=s.useRef(null),Ot=s.useRef(null);Ot.current||(Ot.current=()=>{xt.current=null;const X=C.current;if(mt.current==="audio"&&X&&!X.paused){Je.current+=1,_.current+=1;try{X.pause()}catch{}Pe.current&&V("paused")}else if(mt.current==="tts")try{Gt.current?.()}catch{}});const Kt=X=>{mt.current=X,xt.current=zr(Ot.current)},_t=()=>{xt.current?.(),xt.current=null};s.useEffect(()=>()=>{Ot.current&&Ia(Ot.current)},[]);const lt=s.useCallback(async(X,he=3,Ae=50)=>{const Le=Je.current;for(let je=0;je<he;je++){if(!Pe.current||Le!==Je.current)return!1;try{return Kt("audio"),await X.play(),!0}catch(Ve){if((Ve instanceof Error||typeof Ve=="object"&&Ve&&"name"in Ve?Ve.name:void 0)==="AbortError"){if(Le!==Je.current)return!1;await new Promise(ft=>setTimeout(ft,Ae));continue}try{ve(d("training.audioFetchError","\uC0AC\uC6B4\uB4DC \uC18C\uC2A4\uB97C \uAC00\uC838\uC624\uC9C0 \uBABB\uD588\uC2B5\uB2C8\uB2E4."))}catch{}return!1}}try{ve(d("training.audioFetchError","\uC0AC\uC6B4\uB4DC \uC18C\uC2A4\uB97C \uAC00\uC838\uC624\uC9C0 \uBABB\uD588\uC2B5\uB2C8\uB2E4."))}catch{}return!1},[d]),Yt=s.useCallback(()=>{const X=C.current;if(!X)return;const he=()=>{V("playing"),W("playMode"),F(!0),Q();try{hr(),Aa(X).then(Ve=>{if(Pe.current)try{h.current?.("main",Ve)}catch{}})}catch{}const je=Ue.current;je?.enabled&&(je?.volume??0)>0&&gt(je.volume)},Ae=()=>{ky({ended:!!X?.ended,completedByEnd:Ke.current})||(V("paused"),te(),dt())},Le=()=>{try{const je=de.current,Ve=wy(je,ye.current);if(Ve!==null){ye.current=Ve,$(Ve),F(!0);const ft=je?.[Ve]&&je[Ve].src;if(ft&&X){X.src=ft,X.load(),lt(X).catch(()=>{});return}}}catch{}V("stopped"),R(1);try{if(X)try{X.currentTime=0}catch{}}catch{}te(),F(!1),dt();try{!Re.current&&$e.current&&$e.current()}catch{}};return X.addEventListener("play",he),X.addEventListener("pause",Ae),X.addEventListener("ended",Le),()=>{try{X.removeEventListener("play",he),X.removeEventListener("pause",Ae),X.removeEventListener("ended",Le),te()}catch{}}},[gt,dt,lt,Ue,Q,te]);s.useEffect(()=>Yt(),[Yt]),s.useEffect(()=>{Re.current=o},[o]),s.useEffect(()=>{tt.current=r},[r]),s.useEffect(()=>{if(o||H!=="active")return;const X=g.current;if(!X)return;let he=null;const Ae=requestAnimationFrame(()=>{try{const Le=X.getTotalLength();if(!Le)return;const je=Le*.2;X.style.strokeDasharray=`${Le-je} ${je}`;const Ve="triFlow_"+Math.random().toString(36).slice(2);he=document.createElement("style"),he.textContent=`@keyframes ${Ve}{from{stroke-dashoffset:0}to{stroke-dashoffset:-${Le}}}`,document.head.appendChild(he),X.style.animation=`${Ve} 2.4s linear infinite`}catch{}});return()=>{cancelAnimationFrame(Ae),he?.remove()}},[H,o]),s.useEffect(()=>{de.current=q},[q]),s.useEffect(()=>{ye.current=z},[z]),s.useEffect(()=>{const X=f.current,he=b.current;if(!X||!he)return;let Ae=null;const Le=32,je=60,Ve=()=>{try{const Nt=Array.from(X.querySelectorAll(":scope > .button"));let kt=0;Nt.forEach(dn=>{if(dn===he)return;const Xa=dn.getBoundingClientRect();kt+=Xa.width});const an=X.getBoundingClientRect().width,Jt=Math.max(0,Math.floor(an-kt-8)),Tt=rt;if(!Tt||Jt<=0){Array.from(he.children).forEach(dn=>{try{dn.style.width=""}catch{}});return}let un=Math.floor(Jt/Tt);un>je&&(un=je),un<Le&&(un=Math.max(Le,Math.floor(Jt/Tt))),Array.from(he.querySelectorAll(".button")).forEach(dn=>{try{dn.style.width=`${un}px`}catch{}})}catch{}},ft=requestAnimationFrame(Ve);try{Ae=new ResizeObserver(()=>{requestAnimationFrame(Ve)}),Ae.observe(X),Ae.observe(he),window.addEventListener("resize",Ve)}catch{}return()=>{try{cancelAnimationFrame(ft)}catch{}try{Ae&&(Ae.disconnect(),Ae=null)}catch{}try{window.removeEventListener("resize",Ve)}catch{}}},[q,M,rt]),s.useEffect(()=>()=>{try{Oe.current&&(clearTimeout(Oe.current),Oe.current=null),Ye.current&&(clearTimeout(Ye.current),Ye.current=null)}catch{}},[]);const Pt=(X,he)=>{P(X),ae(he),Me(),L(Ay(X)),de.current=X},yn=async(X,he)=>{Ee(!1),x.current=!1,X.src=he,X.load(),await oc(X),await ze(),N(!1),await lt(X),W("playMode"),$(0),F(!0)},Sn=async(X,he=!1)=>{const Ae=C.current;N(!0),O("measuring_duration");try{const Le=await lo(X,{timeoutMs:1e4,rejectOnError:!0});Pt([{src:X,objectUrl:null,duration:Le}],Le),O("ready"),he&&Ae&&await yn(Ae,X)}finally{x.current=!1,N(!1)}},et=async(X,he=!1)=>{const Ae=C.current;N(!0),O("measuring_duration");try{const Le=await Promise.all(X.map(Ve=>lo(Ve,{timeoutMs:1e4})));if(!Pe.current)return;const je=X.map((Ve,ft)=>({src:Ve,objectUrl:null,duration:Le[ft]||0}));Pt(je,Ny(je)),O("ready"),he&&Ae&&je.length>0&&await yn(Ae,je[0].src)}finally{x.current=!1,N(!1)}},Vt=async(X=!1,he=!0)=>{const Ae=C.current,Le=n?Array.isArray(n)?n:[n]:[];if(!Le||Le.length===0||!Le.some(Boolean))return!1;if(x.current)return null;x.current=!0,he&&N(!0),O("resolving");try{const je=By(n,a,hs),Ve=[];let ft=0;for(const Nt of je){let kt=Nt.src??null,an=null;if(!kt&&Nt.resolvedPath){try{O("getting_signed_url"),kt=await fs(Nt.resolvedPath)}catch{kt=null}if(!Pe.current)return!1;if(!kt)try{O("downloading");const Tt=await Cs(Nt.resolvedPath);if(!Pe.current)return!1;if(Tt){const un=Tt instanceof Blob?Tt:new Blob([Tt]);an=v.track(URL.createObjectURL(un)),kt=an}}catch{O("error");try{ve(d("training.audioFetchError","\uC0AC\uC6B4\uB4DC \uC18C\uC2A4\uB97C \uAC00\uC838\uC624\uC9C0 \uBABB\uD588\uC2B5\uB2C8\uB2E4.")),W("active")}catch{}}}if(!kt)continue;let Jt=0;try{O("measuring_duration"),Jt=await lo(kt,{timeoutMs:3e3})}catch{Jt=0}if(!Pe.current){if(an)try{URL.revokeObjectURL(an)}catch{}for(const Tt of Ve)if(Tt.objectUrl)try{URL.revokeObjectURL(Tt.objectUrl)}catch{}return!1}ft+=Jt||0,Ve.push({...Nt,src:kt,objectUrl:an,duration:Jt})}if(Pt(Ve,ft),Ve.length>0&&X&&Ae){const Nt=Ve[0];Ee(!1);try{v.keepOnly(Ve.map(kt=>kt.objectUrl))}catch{}if(O("ready"),x.current=!1,Nt.src&&Ae)try{Ae.src=Nt.src,Ae.load(),await oc(Ae),await ze(),he&&N(!1),Ae&&await lt(Ae)}catch{he&&N(!1)}else he&&N(!1);W("playMode"),$(0),F(!0)}return Ve.length>0}finally{x.current=!1,he&&N(!1),O(je=>je==="ready"?"ready":"idle")}},wt=async()=>{const X=C.current;if(!(!X&&!Qe)){if(Qe){const he=window.speechSynthesis;if(H==="active"){const Ae=dr(),Le=Array.isArray(i)?i.filter(Boolean):i?[i]:[];if(Ae&&Le.length>0){W("load"),N(!0),O("resolving"),x.current=!0;try{const je=await Promise.all(Le.map(Ve=>Promise.resolve(Ae(Ve))));je.length>1?await et(je,!0):await Sn(je[0],!0)}catch{x.current=!1,N(!1),W("active"),at(Le[0]||void 0)}return}at(Le[0]||void 0);return}if(H==="playMode"){if(X){if(X.paused){if(Ke.current){await Ht();return}await lt(X),V("playing")}else yt(),X.pause(),V("paused");return}try{if(he&&he.paused)try{Kt("tts"),he.resume(),V("playing")}catch{}else try{he.pause(),V("paused")}catch{}}catch{}}return}if(H==="active"){if(o&&Array.isArray(de.current)&&de.current.length>0){const Ae=de.current[0];try{if(Ae.src&&X)try{X.src=Ae.src,X.load(),X&&await lt(X)}catch{}W("playMode"),$(0),F(!0);return}catch{}}W("load");let he;try{he=await Vt(!0)}catch{he=!1}if(he===!1&&Pe.current){try{ve(d("training.audioFetchError","\uC0AC\uC6B4\uB4DC \uC18C\uC2A4\uB97C \uAC00\uC838\uC624\uC9C0 \uBABB\uD588\uC2B5\uB2C8\uB2E4."))}catch{}W("active")}return}if(H!=="load"&&(H==="playMode"||H==="active"))try{if(X&&X.paused){if(Ke.current){await Ht();return}X&&await lt(X),V("playing")}else X&&(yt(),X.pause(),V("paused"))}catch(he){(he instanceof Error||typeof he=="object"&&he&&"name"in he)&&he.name}}},Ht=async()=>{const X=C.current;if(X)try{const he=de.current;if(Array.isArray(he)&&he.length>1){await nn(0);return}Ee(!1);try{X.currentTime=0}catch{}X&&await lt(X),V("playing"),W("playMode")}catch{}},zt=()=>{if(yt(),_t(),Qe){nt();return}const X=C.current;try{if(X){try{X.pause()}catch{}try{X.currentTime=0}catch{}}}catch{}dt(),V("stopped"),W("active"),R(0),F(!1)},Wt=async(X,{sameSegment:he=!1}={})=>{const Ae=++_.current,Le=C.current,je=de.current?.[X]?.src;try{if(Ee(!1),$(X),F(!0),ye.current=X,!je||!Le||(he||Me(),Le.src=je,Le.load(),he||await ze(),Ae!==_.current)||(await lt(Le),Ae!==_.current))return;V("playing"),W("playMode")}catch{}},sn=async()=>{const X=de.current,he=ye.current||0;if(!X||he<=0){await Ht();return}await Wt(he-1)},ln=async()=>{const X=de.current,he=ye.current||0;if(!X||he>=X.length-1){zt();return}await Wt(he+1)},qt=()=>{if(Ke.current)return;const X=200,he=340;Ee(!0),yt(),_t();try{R(1)}catch{}we(1);try{J("hold")}catch{}try{const Ae=C.current,Le=Qe&&!!Ae?.src;if(!Qe||Le){if(Ae){Ae.pause();try{Ae.currentTime=0}catch{}}}else nt();dt()}catch{}try{V("stopped")}catch{}if(F(!1),!Re.current)try{Ye.current&&(clearTimeout(Ye.current),Ye.current=null),Ye.current=setTimeout(()=>{try{J("out")}catch{}Ye.current=setTimeout(()=>{try{typeof tt.current=="function"&&tt.current(!0)}catch{}try{J("idle")}catch{}Ye.current=null},he)},X)}catch{}};s.useEffect(()=>{$e.current=qt});const cn=s.useCallback(()=>ve(""),[]),nn=async X=>{(de.current||[])[X]&&await Wt(X,{sameSegment:X===ye.current})},ht=E==="playing",Zt=s.useMemo(()=>{if(!M||M.length<=1)return M;const X=M[z];return X?[X]:M},[M,z]),Xt=o===!0;s.useEffect(()=>{try{const X=C.current;X&&typeof X.playbackRate=="number"&&(X.playbackRate=ee||1)}catch{}},[ee]);const jt=s.useRef({raf:null,timer:null});s.useEffect(()=>{const X=C.current;if(!X)return;const he=Math.max(0,Math.min(1,Z)),Ae=jt.current,Le=()=>{Ae.raf!==null&&(cancelAnimationFrame(Ae.raf),Ae.raf=null),Ae.timer!==null&&(clearTimeout(Ae.timer),Ae.timer=null)};Le();const je=Na(X);if(X.paused||Math.abs(je-he)<.001||typeof requestAnimationFrame!="function"){try{_n(X,he)}catch{}return}const Ve=performance.now(),ft=()=>{const Nt=Math.min(1,(performance.now()-Ve)/150);try{_n(X,je+(he-je)*Nt)}catch{}Ae.raf=Nt<1?requestAnimationFrame(ft):null};return Ae.raf=requestAnimationFrame(ft),Ae.timer=setTimeout(()=>{Le();try{_n(X,he)}catch{}},200),Le},[Z]);const re=ie==="hold",G=ie==="out",ne=H==="playMode"&&!k&&!fe||re||G,ke=E!=="stopped"||re||G,Ne=E==="paused",Be=Math.max(0,Math.min(100,(Y||0)*100)),Ge=ge("audio-player__fill",ne?"is-visible":"",ke?"is-expanded":"",Ne?"is-paused":"",G?"is-out":"");return t.jsxs("div",{className:`audio-player ${Xt?"is-disabled":""}${l?` ${l}`:""}`,role:"group","aria-label":typeof p=="string"?p:void 0,children:[t.jsxs("div",{className:`audio-player__panel ${ht?"is-playing":""} ${k?"is-loading":""} ${H!=="default"?"is-revealed":""}`,children:[k?t.jsxs("div",{className:"audio-player__loading",role:"status","aria-live":"polite",children:[t.jsx("span",{className:"audio-player__loading-spinner","aria-hidden":"true"}),t.jsx("span",{className:"audio-player__loading-text",children:d(`training.audioStatus.${I}`,{defaultValue:gy[I]})})]}):null,H==="active"?t.jsx("button",{className:"audio-player__button",type:"button",disabled:Xt,onClick:()=>{le.current=Fa(),B(),wt()},"aria-label":typeof p=="string"?p:d("training.listen","\uB4E3\uAE30"),onMouseEnter:D,onMouseLeave:B,onFocus:D,onBlur:B,children:t.jsx("span",{ref:A,className:"audio-player__button-triangle-wrap",children:t.jsx("svg",{className:"audio-player__button-triangle",viewBox:"0 0 24 24","aria-hidden":"true",children:t.jsx("path",{ref:g,d:"M13.2 7.7 L16.5 9.85 Q20.2 12 16.5 14.15 L10 18.3 Q7 19.7 7 16.3 L7 7.7 Q7 4.3 10 5.7 L13.2 7.7"})})})}):null,w&&t.jsx(kn,{anchorRect:w,text:typeof p=="string"&&p?p:d("training.listenLabel","\uBB38\uC7A5 \uB4E3\uAE30"),offset:8}),t.jsxs("div",{className:`audio-player__play ${H==="playMode"||ht?"is-visible":""}`,inert:!(H==="playMode"||ht)||void 0,children:[t.jsxs("div",{ref:f,className:"audio-player__buttons",children:[t.jsx(ce,{htmlType:"button",size:32,showTooltipInfo:!0,type:"dot",shape:"pill",useBorder:!1,icon:"skip-back",onClick:sn,ariaLabel:d("training.prev","\uC774\uC804"),width:"60px",variant:"transparent-white","aria-hidden":"true",tabIndex:-1,disabled:H!=="playMode"}),t.jsx(ce,{htmlType:"button",size:32,showTooltipInfo:!0,type:"dot",shape:"pill",useBorder:!1,icon:ht?"pause":"play",onClick:wt,ariaLabel:d("common.playPause","\uC7AC\uC0DD / \uBA48\uCDA4"),"aria-pressed":ht,width:"60px",variant:"transparent-white",disabled:H!=="playMode"}),t.jsx(ce,{htmlType:"button",size:32,showTooltipInfo:!0,type:"dot",shape:"pill",useBorder:!1,icon:"square",onClick:zt,ariaLabel:d("training.stop","\uC815\uC9C0"),width:"60px",variant:"transparent-white","aria-hidden":"true",tabIndex:-1,disabled:H!=="playMode"}),rt>1?t.jsx("div",{ref:b,className:"audio-player__source-buttons",children:Array.from({length:rt}).map((X,he)=>t.jsx(ce,{htmlType:"button",size:32,type:"dot",shape:"pill",useBorder:!1,label:String(he+1),onClick:()=>{try{nn(he)}catch{}},ariaLabel:d("training.sourcePlay",{n:he+1}),variant:"transparent-white",selected:T&&z===he,disabled:H!=="playMode"||!(Array.isArray(q)&&q[he]),showTooltipInfo:!0},he))}):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:Ht,ariaLabel:d("common.replay","\uB2E4\uC2DC\uB4E3\uAE30"),width:"60px",variant:"transparent-white",disabled:H!=="playMode"}):null,t.jsx(ce,{htmlType:"button",size:32,showTooltipInfo:!0,type:"dot",shape:"pill",useBorder:!1,icon:"skip-forward",onClick:ln,ariaLabel:d("training.next","\uB2E4\uC74C"),width:"60px",variant:"transparent-white","aria-hidden":!0,tabIndex:-1,disabled:H!=="playMode"}),t.jsx(ce,{htmlType:"button",size:32,showTooltipInfo:!0,type:"dot",shape:"pill",useBorder:!1,icon:"check",onClick:qt,ariaLabel:d("common.done","\uC644\uB8CC"),width:"60px",variant:"transparent-white",disabled:H!=="playMode"})]}),t.jsxs("div",{className:"audio-player__slider",children:[t.jsx("div",{className:Ge,ref:y,style:{left:`${Be}%`},"aria-hidden":"true"}),(c||u)&&t.jsx(Cy,{segments:Zt,progress:Y,totalDuration:oe,onSegmentClick:nn,waveProgressRef:_e,showSoundWaveForm:c,noiseSrc:u&&m?.settings.enabled&&Ce>0?He:null,noiseRatio:m?ya(m.settings):0,noiseSpeed:m?.settings.speed??1,mainVolume:se,onReadyChange:Se})]})]}),t.jsx("audio",{ref:C,crossOrigin:"anonymous",preload:"auto"})]}),!c&&t.jsxs("p",{className:"audio-player__no-waveform caption-1",children:[t.jsx(qe,{icon:"triangle-alert",size:14}),d("training.noSoundWaveform","\uC18C\uB9AC \uBE44\uAD50 \uBB38\uC81C\uB294 \uC6E8\uC774\uBE0C\uD3FC\uC744 \uD45C\uD604\uD558\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4.")]}),t.jsx(Gn,{message:be,position:Te,onClose:cn})]})}function Ga(e){const{t:n}=pe.useTranslation(),{text:a,label:r,anchorRect:o=null,onClose:i,closeOnOutsideClick:l=!0,isMobilePopup:c=!1}=e||{},[u,d]=s.useState(()=>{try{return localStorage.getItem("tooltip-theme")||"light"}catch{return"light"}});s.useEffect(()=>{try{localStorage.setItem("tooltip-theme",u)}catch{}},[u]);const{increase:p,decrease:m,canIncrease:h,canDecrease:C,fontSize:y,lineHeight:f}=fi({storageKey:"tooltip-fontScale"}),v=s.useCallback(()=>d(A=>A==="dark"?"light":"dark"),[]),b=s.useCallback(A=>{try{A.stopPropagation()}catch{}try{typeof i=="function"&&i()}catch{}},[i]),x=Array.isArray(a)?a:typeof a>"u"||a===null?[]:[a],_={fontSize:`${y}px`,lineHeight:`${f}px`,"--tt-line-height":`${f}px`,"--tt-marker-size":"28px"},g=t.jsxs("div",{className:`tooltip-textbox__root ${u==="dark"?"is-dark":""}`,children:[t.jsxs("div",{className:"tooltip-textbox__box",children:[r&&t.jsx("div",{className:"tooltip-textbox__label body-2b",children:r}),t.jsx("div",{className:"tooltip-textbox__text body-1",style:_,children:x.map((A,w)=>t.jsxs("div",{className:"tooltip-textbox__line",children:[x.length>1?t.jsx("div",{className:"tooltip-textbox__marker",children:t.jsx("span",{className:"tooltip-textbox__line-number button-1",children:w+1})}):null,t.jsx("span",{className:"tooltip-textbox__line-text",children:A})]},w))})]}),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:u==="dark"?"transparent-white":"transparent-gray",disabled:!C}),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:u==="dark"?"transparent-white":"transparent-gray",disabled:!h}),t.jsx(ce,{htmlType:"button",size:32,showTooltipInfo:!0,type:"dot",useBorder:!1,width:48,icon:u==="dark"?"moon":"sun-medium",onClick:v,ariaLabel:n("training.toggleBackground","\uBC30\uACBD \uC804\uD658"),variant:u==="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:u==="dark"?"transparent-white":"transparent-gray"})]})]});return o?t.jsx(wn,{anchorRect:o,className:`tooltip-textbox ${u==="dark"?"is-dark":""}`,onClose:i,closeOnOutsideClick:l,isMobilePopup:c,ariaLabel:r||n("tooltip.textbox","\uBCF8\uBB38"),children:g}):t.jsx("div",{className:`tooltip-textbox ${u==="dark"?"is-dark":""}`,children:g})}function sc({state:e="disabled"}){const{t:n}=pe.useTranslation();return t.jsxs("div",{className:`ts-bullet ts-bullet--${e}`,"aria-hidden":!0,children:[t.jsx("div",{className:"bullet__dot",children:t.jsx(qe,{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 ic({title:e,children:n,className:a="",state:r="disabled",usePreviewTextBtn:o=!1,onPreviewTextBtn:i,previewText:l=null,useFaded:c,usePlayAllBtn:u=!1,onPlayAll:d,playAllActive:p=!1}){const{t:m}=pe.useTranslation(),h=rn("(max-width: 767px)"),C=`training-step__title h4 ${c&&r==="disabled"?"training-step__title--faded":""} ${a}`.trim(),y=`training-step__title-row training-step__title-row--${r}`.trim(),f=s.useRef(null),[v,b]=s.useState(!1),[x,_]=s.useState(null),[g,A]=s.useState(null),w=s.useRef(i);s.useEffect(()=>{w.current=i});const D=s.useMemo(()=>l==null?"":typeof l=="string"||typeof l=="number"?String(l):Array.isArray(l)&&l.every(N=>typeof N=="string"||typeof N=="number")?l.join(""):"",[l]),B=s.useCallback(()=>{b(!1),_(null),A(null)},[]);s.useEffect(()=>{if(!v)return;let N;try{typeof w.current=="function"&&(N=w.current())}catch{}if(N===!1){B();return}A(typeof N<"u"&&N!==null?N:null)},[D]);const k=s.useCallback(()=>{let N;try{typeof i=="function"&&(N=i())}catch{}if(N!==!1){if(A(typeof N<"u"&&N!==null?N:l),!f.current){b(I=>!I);return}if(v)b(!1),_(null),A(null);else{const I=f.current.getBoundingClientRect();_(I),b(!0)}}},[i,l,v]);return t.jsxs("div",{className:y,children:[t.jsx("p",{className:C,children:t.jsx("span",{className:"training-step__title-text",children:e??n})}),o||u?t.jsxs("div",{className:"title-controls",children:[t.jsxs("div",{className:"title-buttons",children:[u&&t.jsx(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:d,variant:r==="disabled"?"disabled":"default",disabled:r==="disabled"||p,onDisabledClick:p&&r!=="disabled"?()=>{}:void 0}),o&&t.jsx("div",{ref:f,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"),selected:v,onClick:k,variant:r==="disabled"?"disabled":"default",disabled:!l&&typeof i!="function"})})]}),v&&t.jsx(Ga,{text:g??l,label:m("training.sentencePreview","\uBB38\uC7A5 \uBBF8\uB9AC\uBCF4\uAE30"),anchorRect:x,onClose:B,closeOnOutsideClick:!1,isMobilePopup:!0})]}):null]})}function uo(e,n){return typeof n!="number"||typeof e!="number"?"disabled":e<n?"done":e===n?"active":"disabled"}function Vn({index:e,stepIndex:n,isLast:a=!1,title:r="",titleProps:o={},children:i,className:l="",onDone:c=void 0,useTitleFaded:u=void 0}){const{t:d}=pe.useTranslation(),[p,m]=s.useState(()=>uo(e,n));s.useEffect(()=>{const A=uo(e,n);if(A!==p){const w=setTimeout(()=>m(A),0);return()=>clearTimeout(w)}},[e,n,p]);const h=s.useCallback((...A)=>{uo(e,n)==="done"||p==="done"||typeof c=="function"&&c(...A)},[e,n,p,c]),[C,y]=s.useState(!1),[f,v]=s.useState({text:"",label:"\uBB38\uC7A5 \uB4E3\uAE30",anchorRect:null,backdrop:!1,alignX:null,alignY:null}),b=s.useCallback(A=>{if(!A)return null;try{const w=A;if(typeof A=="object"&&(w.currentTarget||w.target)&&(w.nativeEvent||w.type)){const k=w.currentTarget??w.target;if(k&&typeof k.getBoundingClientRect=="function")return k.getBoundingClientRect()}if(A instanceof DOMRect)return A;const D=A;if(D&&typeof D.getBoundingClientRect=="function")return D.getBoundingClientRect();const B=A?.current;return B&&typeof B.getBoundingClientRect=="function"?B.getBoundingClientRect():null}catch{return null}},[]),x=s.useCallback((A,{text:w="",label:D="\uBB38\uC7A5 \uB4E3\uAE30",backdrop:B=!1,alignX:k="center",alignY:N="top"}={})=>{const I=b(A);v({text:w,label:D,anchorRect:I,backdrop:B,alignX:k,alignY:N}),y(!0)},[b]),_=s.useCallback(()=>{y(!1),v(A=>({...A,anchorRect:null}))},[]),g=s.Children.map(i,A=>{if(s.isValidElement(A)){const w=A;if(typeof w.type=="string")return w;const D=w.props??{},B=typeof D.onDone=="function"?D.onDone:h,k=typeof D.disabled=="boolean";let N=p==="disabled";return k&&(N=!!D.disabled),s.cloneElement(w,{onDone:B,disabled:N,showTooltip:x,hideTooltip:_})}return A});return t.jsxs("div",{className:`training-step training-step--${p} ${a?"training-step--last":""} ${l}`,"aria-current":p==="active",children:[t.jsx(sc,{state:p}),t.jsxs("div",{className:"training-step__content",children:[t.jsx(ic,{state:p,title:r,...o,useFaded:u}),g]}),C?t.jsx(wn,{anchorRect:f.anchorRect,backdrop:f.backdrop,onClose:_,ariaLabel:d("tooltip.textbox","\uBCF8\uBB38"),children:t.jsx(Ga,{text:f.text,onClose:_})}):null]})}function lc({context:e,state:n="disabled",theme:a="light"}){const{t:r}=pe.useTranslation(),[o,i]=s.useState("disabled"),[l,c]=s.useState(()=>{try{return localStorage.getItem("tooltip-theme")||a}catch{return a}});s.useEffect(()=>{try{localStorage.setItem("tooltip-theme",l)}catch{}},[l]);const u=()=>c(E=>E==="dark"?"light":"dark"),{increase:d,decrease:p,canIncrease:m,canDecrease:h,fontSize:C,lineHeight:y}=fi({storageKey:"textbox_fontScale"}),[f,v]=s.useState(""),b=s.useRef(null),x=s.useRef(!1),_=s.useCallback(()=>{x.current=Fa()&&!!b.current&&b.current.contains(document.activeElement),i("active")},[]),g=s.useCallback(()=>v(""),[]),A=E=>{try{v(E)}catch{}},w=typeof navigator<"u"&&/Mobi|Android/i.test(navigator.userAgent||"");s.useEffect(()=>{if(n!=="disabled"){const E=setTimeout(()=>i(n),0);return()=>clearTimeout(E)}},[n]);const D=s.useMemo(()=>e&&typeof e=="object"?String(e.sentence??e.text??""):typeof e=="string"?e:"",[e]),[B,k]=s.useState(D);B!==D&&(k(D),i("disabled"));const N=n==="disabled"?o:n,I=N==="disabled"?"training-text-box--disabled":N==="active"?"training-text-box--active":N==="done"?"training-text-box--done":"",O=s.useMemo(()=>({fontSize:`${C}px`,lineHeight:`${y}px`}),[C,y]);return s.useEffect(()=>{if(N==="disabled"||!x.current)return;x.current=!1;const E=document.activeElement;E&&E!==document.body||b.current?.querySelector(".training-text-box__buttons button")?.focus()},[N]),t.jsxs("div",{ref:b,className:`training-text-box ${I} ${N!=="disabled"&&l==="dark"?"is-dark":""}`,children:[N==="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":N==="disabled",children:t.jsx("span",{className:"training-text-box__inner h3",style:O,children:D})}),N!=="disabled"&&t.jsxs("div",{className:"training-text-box__buttons","aria-hidden":N==="disabled",children:[t.jsx(ce,{htmlType:"button",size:32,type:"dot",onClick:p,onDisabledClick:()=>A(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,...!w&&{width:"60px"}}),t.jsx(ce,{htmlType:"button",size:32,type:"dot",onClick:d,onDisabledClick:()=>A(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,...!w&&{width:"60px"}}),t.jsx(ce,{htmlType:"button",size:32,showTooltipInfo:!0,type:"dot",useBorder:!1,width:48,icon:l==="dark"?"moon":"sun-medium",onClick:u,ariaLabel:r("training.toggleBackground","\uBC30\uACBD \uC804\uD658"),variant:l==="dark"?"transparent-white":"transparent-gray"})]}),t.jsx(Gn,{message:f,position:"top",onClose:g})]})}function po({index:e,stepIndex:n,isLast:a=!1,title:r,useTitleFaded:o,onDone:i,onChange:l,answer:c,wrongAnswers:u,choices:d,multiSelect:p=!1,correctCount:m=0,useDisabledCovered:h=!1,choiceIcons:C,shuffleChoices:y=!0}){const{t:f}=pe.useTranslation(),v=r??f("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,x=typeof n!="number"?"disabled":b<n?"done":b===n?"active":"disabled",_=Array.isArray(d)&&d.length?d:typeof c<"u"?[c].concat(Array.isArray(u)?u:[]):void 0,g=u?u.join("||"):"",A=d?d.join("||"):"",[w,D]=s.useState(()=>Array.isArray(_)?y?la(_):_.slice():void 0);s.useEffect(()=>{Array.isArray(_)&&_.length?D(y?la(_):_.slice()):D(void 0)},[c,g,A,y]);const[B,k]=s.useState(null),[N,I]=s.useState(()=>new Set);s.useEffect(()=>{k(null),I(new Set)},[A,c,g]);const O=s.useRef(void 0);s.useEffect(()=>{const j=O.current;typeof j=="number"&&typeof n=="number"&&typeof e=="number"&&j>=e&&n<e&&(k(null),I(new Set)),O.current=n},[n,e]);const E=s.useCallback(j=>{if(x!=="active")return;const Y=w?.[j];if(Y==null)return;const R=Y,H=x==="active"||x==="done";if(p){const W=new Set(N),le=W.has(R);le?W.delete(R):W.add(R),I(W),typeof l=="function"&&l({selectedValues:[...W],__ts:Date.now()}),H&&(typeof m=="number"&&m>0?W.size>=m:!le)&&typeof i=="function"&&x==="active"&&i({selectedValues:[...W],__ts:Date.now()})}else k(R),typeof l=="function"&&l({selectedIndex:j,selectedValue:R,__ts:Date.now()}),H&&typeof i=="function"&&x==="active"&&i({selectedIndex:j,selectedValue:R,__ts:Date.now()})},[w,x,p,l,i,m,N]),V=`training-step__buttons${Array.isArray(w)&&w.length>3?" training-step__buttons--wrap-3":""}`;return t.jsx(Vn,{index:e,stepIndex:n,isLast:a,title:v,useTitleFaded:o,children:t.jsx("div",{className:V,children:Array.isArray(w)&&w.length>0?w.map((j,Y)=>t.jsx(ce,{htmlType:"button",size:56,type:"bar",onClick:()=>E(Y),ariaLabel:String(j),label:j,useLabel:!0,icon:C?C[String(j)]:void 0,variant:"default",disabled:x==="disabled",selected:p?N.has(j):B===j,useDisabledCovered:h,minWidth:0},String(j))):null})})}function mo({index:e,stepIndex:n,isLast:a=!1,title:r,onDone:o,onChange:i,context:l,demoSelected:c}){const{t:u}=pe.useTranslation(),d=r??u("training.confirmTitle","\uBB38\uC7A5\uC744 \uD655\uC778\uD558\uACE0 \uC798 \uB4E4\uB838\uB294\uC9C0 \uC120\uD0DD\uD558\uC138\uC694."),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:"",C=l&&typeof l=="object"?l.choices:void 0,[y,f]=s.useState(c??null),v=`${String(h)}\0${JSON.stringify(C??null)}`,[b,x]=s.useState(v);b!==v&&(x(v),c==null&&f(null));const[_,g]=s.useState(c);Object.is(_,c)||(g(c),f(c??null));const A=s.useRef(void 0);s.useEffect(()=>{const k=A.current;typeof k=="number"&&typeof n=="number"&&typeof e=="number"&&k>=e&&n<e&&c==null&&f(null),A.current=n},[n,e,c]);const w=s.useCallback(k=>{const N=typeof k=="object"&&k!==null?Object.assign({},k,{__ts:Date.now()}):{value:k,__ts:Date.now()};typeof i=="function"&&i(N),m==="active"&&typeof o=="function"&&o(N)},[i,m,o]),D=s.useCallback(()=>{m==="active"&&(f(!1),w(!1))},[w,m]),B=s.useCallback(()=>{m==="active"&&(f(!0),w(!0))},[w,m]);return t.jsxs(Vn,{index:e,stepIndex:n,isLast:a,title:d,onDone:o,useTitleFaded:!1,children:[t.jsx(lc,{context:l,state:m}),t.jsx("div",{className:"training-step__buttons",children:Array.isArray(C)&&C.length>0?C.slice(0,6).map((k,N)=>t.jsx(ce,{htmlType:"button",size:56,type:"bar",onClick:()=>{m==="active"&&(f(N),w&&w(N))},disabled:m==="disabled",ariaLabel:String(k),label:k,variant:m,selected:y===N},N)):t.jsxs(t.Fragment,{children:[t.jsx(ce,{htmlType:"button",size:56,type:"bar",onClick:D,disabled:m==="disabled",icon:"x",ariaLabel:u("training.notHeard","\uC548 \uB4E4\uB838\uC5B4\uC694."),label:u("training.notHeard","\uC548 \uB4E4\uB838\uC5B4\uC694."),variant:"default",selected:y===!1}),t.jsx(ce,{htmlType:"button",size:56,type:"bar",onClick:B,disabled:m==="disabled",icon:"circle",ariaLabel:u("training.heardWell","\uC798 \uB4E4\uB838\uC5B4\uC694."),label:u("training.heardWell","\uC798 \uB4E4\uB838\uC5B4\uC694."),variant:"default",selected:y===!0})]})})]})}function ho({index:e,stepIndex:n,isLast:a=!1,title:r,onDone:o,btnLabel:i,soundSrc:l,bucketPath:c,usePreviewTextBtn:u,previewText:d=null,onPreviewTextBtn:p,disabled:m,_pageIndex:h,showSoundWaveForm:C,showNoiseWaveForm:y}){const{t:f}=pe.useTranslation(),v=r??f("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(Vn,{index:e,stepIndex:n,isLast:a,title:v,onDone:o,titleProps:{usePreviewTextBtn:u,previewText:d,onPreviewTextBtn:p},children:t.jsx(co,{soundSrc:l,ttsText:l?null:d??v,bucketPath:c,btnLabel:i||f("training.listenButton","\uBB38\uC7A5 \uB4E3\uAE30"),disabled:b,className:"training-step__listen-sticky",showSoundWaveForm:C,showNoiseWaveForm:y},`audio-p${h??0}-s${e}`)})}const Sy=[];function fo({index:e,stepIndex:n,isLast:a=!1,title:r,onDone:o,onChange:i,context:l=Sy}){const{t:c}=pe.useTranslation(),u=r??c("training.orderListDefault","\uBB38\uC7A5\uC744 \uB4E4\uC740 \uC21C\uC11C\uB300\uB85C \uBC30\uCE58\uD558\uC138\uC694."),d=M=>typeof M=="string"?M:M&&(M.context||M.sentence||M.question||"")||"",[p,m]=s.useState(Array.isArray(l)?l:[]),[h,C]=s.useState(()=>(p||[]).map((M,L)=>({id:L,text:d(M)}))),y=s.useMemo(()=>typeof n!="number"||typeof e!="number"?"disabled":e<n?"done":e===n?"active":"disabled",[n,e]),f=y!=="disabled",v=s.useRef(void 0);s.useEffect(()=>{if(v.current===l)return;v.current=l;const M=Array.isArray(l)?l:[];m(M);const L=(z=>{const $=(z||[]).map((ae,ee)=>({id:ee,text:d(ae)}));if($.length<=1)return $;const T=(ae,ee)=>{if(ae.length!==ee.length)return!1;for(let se=0;se<ae.length;se++)if(ae[se].text!==ee[se].text)return!1;return!0};let F=la($),oe=0;for(;T(F,$)&&oe<20;)F=la($),oe+=1;return F})(M);C(L);try{if(typeof i=="function"){const z=L.filter(($,T)=>$.text===d(M[T])).length;i({shuffled:L,score:z,total:(M||[]).length,initial:!0,__ts:Date.now()})}if(typeof o=="function"&&y==="active"){const z=L.filter(($,T)=>$.text===d(M[T])).length;o({shuffled:L,score:z,total:(M||[]).length,initial:!0,__ts:Date.now()})}}catch{}},[l]);const b=(M,L)=>{const z=[...h],$=M+L;if($<0||$>=z.length)return;const T=z[$];z[$]=z[M],z[M]=T,Y(z);try{if(typeof o=="function"&&y==="active"){const F=z.filter((oe,ae)=>oe.text===d(p[ae])).length;o({shuffled:z,score:F,total:(p||[]).length,__ts:Date.now()})}}catch{}},[x,_]=s.useState(null),g=s.useRef(null),A=s.useRef(null),w=s.useRef(null),D=s.useRef(null),B=s.useRef(null),k=s.useRef({x:0,y:0}),N=s.useRef(null),I=s.useRef({dx:0,dy:0}),O=()=>{if(N.current!==null)return;const M=()=>{if(!g.current){N.current=null;return}N.current=requestAnimationFrame(M);const L=k.current,z=I.current||{dx:0,dy:0};g.current&&(g.current.style.transform=`translate3d(${L.x-z.dx}px, ${L.y-z.dy}px, 0)`)};N.current=requestAnimationFrame(M)},E=s.useRef(new Map),V=s.useRef(new Map),j=()=>{const M=new Map;return E.current.forEach((L,z)=>{L&&L.getBoundingClientRect&&M.set(z,L.getBoundingClientRect())}),M},Y=M=>{const L=j();C(M);try{if(typeof i=="function"){const z=M.filter(($,T)=>$.text===d(p[T])).length;i({shuffled:M,score:z,total:(p||[]).length,__ts:Date.now()})}}catch{}requestAnimationFrame(()=>{const z=j();M.forEach($=>{const T=L.get($.id),F=z.get($.id),oe=E.current.get($.id);if(!oe||!T||!F)return;const ae=T.top-F.top;ae&&(oe.style.transition="none",oe.style.transform=`translateY(${ae}px)`,requestAnimationFrame(()=>{oe.style.transition="transform 420ms cubic-bezier(.22,.9,.39,1)",oe.style.transform="";const ee=()=>{oe.style.transition="",oe.removeEventListener("transitionend",ee)};oe.addEventListener("transitionend",ee)}))})})},R=(M,L)=>{try{try{L.dataTransfer?.setData("text/plain",String(M))}catch{}try{L.dataTransfer&&(L.dataTransfer.effectAllowed="move")}catch{}try{const z=document.createElement("div");z.style.cssText="position:absolute;top:-9999px;left:-9999px;width:1px;height:1px;opacity:0;pointer-events:none;",document.body.appendChild(z),L.dataTransfer?.setDragImage(z,0,0),requestAnimationFrame(()=>{try{document.body.removeChild(z)}catch{}})}catch{}}catch{}_(M);try{const z=h[M],$=document.createElement("div");$.className="order-list__dragging-object order-list__dragging-object--visible",$.textContent=z&&z.text?z.text:"",document.body.appendChild($),g.current=$;const T=E.current.get(z.id);let F=L.clientX||0,oe=L.clientY||0;try{if(T&&T.getBoundingClientRect){const ie=T.getBoundingClientRect();F=ie.left+ie.width/2,oe=ie.top+ie.height/2}}catch{}const ae=$.getBoundingClientRect(),ee=ae.width/2,se=ae.height/2;I.current={dx:ee,dy:se},$.style.transition="none",k.current={x:F,y:oe},$.style.transform=`translate3d(${F-ee}px, ${oe-se}px, 0)`,requestAnimationFrame(()=>{try{$.style.transition=""}catch{}O()});const Ce=ie=>{const J=ie;k.current={x:J.clientX,y:J.clientY},O()};w.current=Ce,document.addEventListener("mousemove",Ce);const Z=ie=>{const J=ie;k.current={x:J.clientX,y:J.clientY},O()};A.current=Z,document.addEventListener("dragover",Z);try{L.dataTransfer?.setData("text/plain",String(M));try{L.dataTransfer?.setData("application/json",JSON.stringify({idx:M}))}catch{}}catch{}}catch{}},H=(M,L)=>{L.preventDefault();try{L.dataTransfer&&(L.dataTransfer.dropEffect="move")}catch{}try{B.current!==null&&(clearTimeout(B.current),B.current=null);const z=L.currentTarget&&L.currentTarget.closest?L.currentTarget.closest(".order-list__item"):null;if(z&&D.current!==z){if(D.current)try{D.current.classList.remove("drag-over")}catch{}try{z.classList.add("drag-over")}catch{}D.current=z}}catch{}},W=(M,L)=>{L.preventDefault();const z=L.dataTransfer?.getData("text/plain")||"",$=z?parseInt(z,10):x,T=M;if(typeof $!="number"||isNaN($)||$===T){_(null),P(),le();return}const F=N0(h,$,T);Y(F),_(null),le();try{if(typeof o=="function"&&y==="active"){const oe=F.filter((ae,ee)=>ae.text===d(p[ee])).length;o({shuffled:F,score:oe,total:(p||[]).length,__ts:Date.now()})}}catch{}try{requestAnimationFrame(()=>{const oe=document.querySelectorAll(".order-list .order-list__item")[T];if(!oe)return;const ae=oe.querySelector(".order-list__slot")||oe;try{ae.classList.add("pulse"),ae.offsetHeight,ae.classList.add("to-dark");const ee=()=>{ae.classList.remove("pulse","to-dark"),ae.removeEventListener("transitionend",ee)};ae.addEventListener("transitionend",ee)}catch{}})}catch{}P()},le=()=>{if(g.current){try{document.body.removeChild(g.current)}catch{}g.current=null}A.current&&(document.removeEventListener("dragover",A.current),A.current=null),w.current&&(document.removeEventListener("mousemove",w.current),w.current=null),N.current!==null&&(cancelAnimationFrame(N.current),N.current=null)},q=()=>{_(null),P(),le()};s.useEffect(()=>()=>le(),[]);const P=()=>{try{if(B.current!==null&&(clearTimeout(B.current),B.current=null),D.current){try{D.current.classList.remove("drag-over")}catch{}D.current=null}document.querySelectorAll(".order-list .order-list__item").forEach(M=>M.classList.remove("drag-over"))}catch{}};return s.useEffect(()=>{try{const M=Math.max(1,(h||[]).length);h.forEach((L,z)=>{const $=V.current.get(L.id);if(!$)return;let T=50;M>1&&(T=Math.round(z/(M-1)*100));try{$.style.setProperty("--marker-pos",T+"%")}catch{}})}catch{}},[h]),s.useEffect(()=>()=>{le(),B.current!==null&&(clearTimeout(B.current),B.current=null)},[]),t.jsx(Vn,{index:e,stepIndex:n,isLast:a,title:u,children:t.jsx("div",{className:"order-list",children:h.map((M,L)=>{const z=Math.max(1,(h||[]).length),$=z>1?Math.round(L/(z-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":$+"%"},ref:T=>{const F=V.current;T?F.set(M.id,T):F.delete(M.id)},children:t.jsx("span",{className:"order-list__slot-number button-1",children:L+1})}):null,t.jsxs("div",{ref:T=>{const F=E.current;T?F.set(M.id,T):F.delete(M.id)},className:`order-list__draggable ${x===L?"dragging":""}`,"data-disabled":y==="disabled","aria-disabled":y==="disabled",tabIndex:y==="disabled"?-1:0,draggable:f,onDragStart:f?T=>R(L,T):void 0,onDragEnter:f?T=>H(L,T):void 0,onDragOver:f?T=>H(L,T):void 0,onDragLeave:f?()=>{try{B.current!==null&&clearTimeout(B.current),B.current=setTimeout(()=>{try{const T=document.querySelectorAll(".order-list .order-list__item");T&&T[L]&&(T[L].classList.remove("drag-over"),D.current===T[L]&&(D.current=null))}catch{}},80)}catch{}}:void 0,onDrop:f?T=>W(L,T):void 0,onDragEnd:f?q:void 0,children:[t.jsx("span",{className:"order-list__item-text body-2",children:M.text}),f?t.jsxs("span",{className:"order-list__item-buttons",children:[t.jsx(ce,{htmlType:"button",size:32,type:"dot",onClick:()=>b(L,-1),ariaLabel:c("training.up"),icon:"chevron-up",variant:"transparent-gray",width:48,useFaded:"true",disabled:L===0,useBorder:!1,useDisabledInvisible:!0}),t.jsx(ce,{htmlType:"button",size:32,type:"dot",onClick:()=>b(L,1),ariaLabel:c("training.down"),icon:"chevron-down",variant:"transparent-gray",width:48,useFaded:"true",disabled:L===h.length-1,useBorder:!1,useDisabledInvisible:!0})]}):null]})]})},M.id)})})})}const jy=8e3;function Ty(e,n){return new Promise(a=>{let r=!1;const o=()=>{r||(r=!0,a())};e.then(o,o),setTimeout(o,n)})}function cc({index:e,stepIndex:n,isLast:a=!1,title:r,onDone:o,onChange:i,context:l=[],selectable:c=!1,hideLabel:u=!1,hideAudio:d=!1,maxCards:p}){const{t:m}=pe.useTranslation(),h=r??m("training.cardInstructions","\uB0B1\uB9D0 \uCE74\uB4DC\uB97C \uBCF4\uACE0 \uC18C\uB9AC\uB97C \uB4E3\uACE0 \uD655\uC778\uD558\uC138\uC694."),C=s.useMemo(()=>Array.isArray(l)?l:l&&l.items||[],[l]),y=p??3,f=(C||[]).slice(0,y);(C||[]).length>y&&console.warn(`TrainingStepCard: ${C.length} items passed but only ${y} shown`);const v=typeof e=="number"?e:-1,b=typeof n!="number"?"disabled":v<n?"done":v===n?"active":"disabled",[x,_]=s.useState(null),g=s.useRef([]),[A,w]=s.useState(!1),D=s.useRef(!0);s.useEffect(()=>(D.current=!0,()=>{D.current=!1}),[]);const B=s.useMemo(()=>C.map(E=>E?.id??E?.word??"").join("|"),[C]);s.useEffect(()=>{_(null)},[B]);const k=s.useRef(void 0);s.useEffect(()=>{const E=k.current;typeof E=="number"&&typeof n=="number"&&typeof e=="number"&&E>=e&&n<e&&_(null),k.current=n},[n,e]);const N=s.useCallback((E,V)=>{if(c)return;const j={item:E,index:V,__ts:Date.now()};try{typeof i=="function"&&i(j)}catch{}if(b==="active"&&typeof o=="function")try{o(j)}catch{}},[c,i,b,o]),I=s.useCallback(async()=>{if(!(A||b==="disabled")){w(!0);try{for(let E=0;E<f.length&&D.current;E++){const V=g.current[E];V&&await Ty(V.play(),jy)}}finally{w(!1)}}},[A,b,f.length]),O=s.useCallback((E,V)=>{if(b!=="active")return;_(V);const j={selectedValue:E.word||E.title||"",selectedIndex:V,item:E,__ts:Date.now()};try{typeof i=="function"&&i(j)}catch{}if(b==="active"&&typeof o=="function")try{o(j)}catch{}},[i,b,o]);return t.jsx(Vn,{index:e,stepIndex:n,isLast:a,title:h,onDone:o,titleProps:{usePlayAllBtn:!d&&f.length>0,onPlayAll:I,playAllActive:A},children:t.jsx("div",{className:"training-step__cards",children:f.length===0?t.jsx("div",{className:"training-step__empty",children:m("training.noCards","\uCE74\uB4DC\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4.")}):f.map((E,V)=>t.jsx(Gr,{ref:j=>{g.current[V]=j},item:E,disabled:b==="disabled",onPlayDone:()=>N(E,V),selectable:c,selected:c&&x===V,onSelect:c?()=>O(E,V):void 0,flipDelay:V*120,hideLabel:u,hideAudio:d},E&&E.id||V))})})}const Ey=160,My={\uBCF4\uCCAD\uAE30:"hearingAid",\uC778\uACF5\uC640\uC6B0:"cochlearImplant"};function Ly(e,n){const a=My[e];return a?n(`device.type.${a}`,{defaultValue:e}):e}const uc=()=>{};function Bn(e){const n=s.useId();if(!("variant"in e)){const{label:b,sub:x,onClick:_,children:g,align:A="horizontal",icon:w}=e,D=B=>{_&&B.target===B.currentTarget&&(B.key==="Enter"||B.key===" ")&&(B.preventDefault(),_())};return t.jsxs("div",{className:ge("panel-row",A==="vertical"?"panel-row--vertical":"",_?"panel-row--clickable":""),onClick:_,onKeyDown:_?D:void 0,role:_?"button":void 0,tabIndex:_?0:void 0,children:[w!=null&&t.jsx("div",{className:"panel-row__icon",children:w}),b!=null&&t.jsxs("div",{className:"panel-row__left",children:[t.jsx("div",{className:"panel-row__label body-3",children:b}),x&&t.jsx("div",{className:"panel-row__sub caption-1",children:x})]}),t.jsx("div",{className:"panel-row__right",children:g})]})}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(ga,{size:28})});if(e.variant==="custom"&&!e.label)return t.jsx("div",{className:"panel-row panel-row--block",children:e.children});const{variant:a,label:r,sub:o,onClick:i,required:l,error:c,align:u="horizontal",useFullWidth:d=!1,icon:p}=e,m=a==="button"?void 0:i;let h=null;const C=a==="toggle"?`panel-toggle-${n}`:void 0,y=c?`panel-error-${n}`:void 0;if(a==="toggle"){const b=e;h=t.jsx(tl,{checked:b.checked,onChange:b.onChange,id:C})}else if(a==="segmented"){const b=e;h=t.jsx(On,{options:b.options,value:b.value,onChange:b.onChange,size:b.size??40,ariaLabel:r})}else if(a==="dropdown"){const b=e,x=b.dropdowns?.length?t.jsx("div",{className:`panel-row__dropdown-group${d?" panel-row__dropdown-group--full":""}`,children:b.dropdowns.map((_,g)=>t.jsx("div",{className:d?"panel-row__dropdown-item--full":void 0,children:t.jsx(en,{options:_.options,value:_.value,onChange:_.onChange,placeholder:_.placeholder,block:d,error:!!c,ariaDescribedBy:y,ariaLabel:_.ariaLabel??([r,_.placeholder].filter(Boolean).join(" ")||void 0)})},g))}):t.jsx(en,{options:b.options??[],value:b.value??"",onChange:b.onChange??uc,block:d,error:!!c,ariaLabel:r,ariaDescribedBy:y});h=c?t.jsxs("div",{className:`panel-row__dropdown-error-wrap${d?" panel-row__dropdown-error-wrap--full":""}`,children:[x,t.jsx("span",{id:y,className:"caption-1 panel-row__error",role:"alert",children:c})]}):x}else if(a==="button"){const b=e;b.buttons?.length?h=t.jsx("div",{className:"panel-row__button-group",children:b.buttons.map((x,_)=>t.jsx(ce,{htmlType:"button",size:x.btnSize??40,variant:x.btnVariant??"default",disabled:x.disabled,onClick:x.onClick,children:x.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${d?" 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${d?" panel-row__input-wrap--full":""}`,children:[t.jsx(Fn,{value:b.value,onChange:b.onChange??uc,onKeyDown:b.onKeyDown,onEnter:b.onEnter,placeholder:b.placeholder,inputMode:b.inputMode,readOnly:b.readOnly,disabled:b.disabled,type:b.type,autoComplete:b.autoComplete,maxLength:b.maxLength,showCount:b.showCount,multiline:b.multiline,rows:b.rows,fullWidth:d,error:c,ariaLabel:r,required: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${d?" panel-row__dropdown-error-wrap--full":""}`,children:[h,t.jsx("span",{id:y,className:"caption-1 panel-row__error",role:"alert",children:c})]}));const f=a==="input"||a==="dropdown"||(a==="text"||a==="custom")&&d,v=b=>{m&&b.target===b.currentTarget&&(b.key==="Enter"||b.key===" ")&&(b.preventDefault(),m())};return t.jsxs("div",{className:ge("panel-row",u==="vertical"?"panel-row--vertical":"",f?"panel-row--label-fixed":"",a==="text"?"panel-row--text":"",m?"panel-row--clickable":""),onClick:m,onKeyDown:m?v: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:[C?t.jsxs("label",{htmlFor:C,className:"panel-row__label body-3",children:[r,l&&t.jsx("span",{className:"required-mark",children:"*"})]}):t.jsxs("div",{className:"panel-row__label body-3",children:[r,l&&t.jsx("span",{className:"required-mark",children:"*"})]}),o&&t.jsx("div",{className:"panel-row__sub caption-1",children:o})]}),t.jsx("div",{className:"panel-row__right",children:h})]})}function dc(e){const n=e.productName||e.brand,a=[e.brand,e.fitType].filter(r=>!!r&&r!==n);return[...new Set(a)].join(" \xB7 ")}function $y({devices:e,onRelease:n,emptyLabel:a}){const{t:r}=pe.useTranslation();return t.jsx("div",{className:"panel-row panel-row--device",children:["\uC88C","\uC6B0"].map(o=>{const i=e[o],l=o==="\uC88C"?r("device.direction.left","\uC88C"):r("device.direction.right","\uC6B0");return t.jsxs("div",{className:"panel-row__device-column",children:[t.jsxs("div",{className:"panel-row__device-head",children:[t.jsx("span",{className:"panel-row__device-side body-2b",children:l}),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(o)})]}),i?t.jsxs("div",{className:"panel-row__device-info",children:[t.jsxs("span",{className:"panel-row__device-kind",children:[i.device&&t.jsx(ut,{size:"small",variant:bl(i.device),fill:"soft",label:Ly(i.device,r)}),dc(i)&&t.jsx("span",{className:"panel-row__device-detail body-3",children:dc(i)})]}),t.jsx("span",{className:"panel-row__device-name body-2b",children:i.productName||i.brand}),t.jsx("span",{className:"panel-row__device-date caption-1",children:r("customers.device.wornSince",{date:`${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")})]},o)})})}function Ka({title:e,icon:n,disc:a,actions:r,size:o="medium",minHeight:i,maxWidth:l,className:c,scrollable:u,scrollbarGutter:d="auto",compactRows:p=!1,useBorder:m=!0,useBg:h=!0,useRowBorder:C=!0,labelWidth:y,form:f=!1,loading:v,empty:b,children:x}){const _=ge("panel",`panel--${o}`,f?"panel--form":"",i!==void 0?"panel--fill":"",m?"":"panel--no-border",h?"":"panel--no-bg",C?"":"panel--no-row-border",p?"panel--compact-rows":"",c),g={};return i!==void 0&&(g.minHeight=i),l!==void 0&&(g.maxWidth=typeof l=="number"?`${l}px`:l),y!==void 0&&(g["--panel-label-width"]=typeof y=="number"?`${y}px`:y),t.jsxs("div",{className:_,style:Object.keys(g).length?g:void 0,children:[(e!=null||a!=null)&&t.jsxs("div",{className:ge("panel__header",a!=null?"panel__header--with-disc":""),children:[n&&t.jsx(qe,{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})]}),v?t.jsx(Bn,{variant:"loading"}):b!=null&&s.Children.toArray(x).length===0?t.jsx(Bn,{variant:"empty",children:b}):u?t.jsx("div",{className:ge("panel__body--scroll",d==="stable"&&"panel__body--gutter-stable"),children:x}):x]})}function Ry({cols:e=2,children:n}){return t.jsx("div",{className:"panel-grid",style:{"--panel-grid-cols":e},children:n})}function Py(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 pc(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"}]}Py(Lt.t.bind(Lt)),pc(Lt.t.bind(Lt));const Co="none",Iy=.5,Fy=1.5,Oy=.25;function go({title:e,valueLabel:n,value:a,min:r,max:o,step:i,tickStep:l,size:c,onChange:u}){return t.jsxs(Bn,{variant:"custom",label:e,useFullWidth:!0,children:[t.jsx(hl,{value:a,onChange:u,min:r,max:o,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 mc({anchorRect:e,onClose:n}){const{t:a}=pe.useTranslation(),r=rn("(max-width: 767px)")?40:24,o=qa(),i=ya(o?.settings??xa),l=o?.settings.type??"defaultNoise",c=o?.settings.enabled??!0,u=o?.playbackRate??1,d=o?.mainVolume??1,p=Math.round(d*100),m=s.useCallback(f=>{try{o?.setMainVolume(Math.max(0,Math.min(1,f/100)))}catch{}},[o]),h=s.useCallback(f=>{try{o?.setPlaybackRate(f)}catch{}},[o]),C=s.useCallback(f=>{const v=Math.min(Wa,Math.max(0,Math.round(f*10)/10));try{o?.setSettings({noiseRatio:v})}catch{}},[o]),y=s.useCallback(f=>{try{f===Co?o?.setSettings({enabled:!1}):o?.setSettings({type:f,enabled:!0})}catch{}},[o]);return t.jsx(wn,{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(Ka,{className:"noise-settings",useBorder:!1,labelWidth:72,children:[t.jsx(go,{title:a("training.playVolumeTitle","\uC804\uCCB4 \uC18C\uB9AC"),valueLabel:`${p}%`,value:p,min:0,max:100,step:10,size:r,onChange:m}),t.jsx(go,{title:a("training.playSpeedTitle","\uC7AC\uC0DD \uC18D\uB3C4"),valueLabel:`${u.toFixed(2)}x`,value:u,min:Iy,max:Fy,step:Oy,size:r,onChange:h}),t.jsx(Bn,{variant:"custom",label:a("training.noiseTypeTitle","\uC18C\uC74C \uC885\uB958"),useFullWidth:!0,children:t.jsx(On,{ariaLabel:a("training.noiseTypeTitle","\uC18C\uC74C \uC885\uB958"),size:40,shape:"rounded",options:[{key:Co,label:a("training.noise.type.none","\uC5C6\uC74C")},...pc(a).map(f=>({key:f.value,label:f.label}))],value:c?l:Co,onChange:y})}),t.jsx(go,{title:a("training.noiseRatioTitle","\uC18C\uC74C \uBE44\uC728"),valueLabel:a("training.noiseRatioValue","{{ratio}}\uBC30",{ratio:i.toFixed(1)}),value:i,min:0,max:Wa,step:Xl,size:r,onChange:C})]})})}function hc({useNoiseSettingBtn:e=!1,onSettings:n,onNext:a,onResult:r,stepIndex:o=0,stepCount:i=0,pageIndex:l=0,pageCount:c=1}){const{t:u}=pe.useTranslation(),[d,p]=s.useState(!1),[m,h]=s.useState(null),[C,y]=s.useState(!1),f=s.useRef(null),v=s.useRef(null),b=qa(),x=l<c-1,_=l===c-1,g=o===Math.max(0,i);s.useEffect(()=>{e||(p(!1),h(null))},[e]);const A=s.useCallback(()=>{p(!1),h(null)},[]),w=s.useCallback(()=>{if(d){p(!1),h(null);return}const k=f?.current?.getBoundingClientRect();k&&h(k),n?.(),p(!0)},[d,n]),D=s.useCallback(()=>{if(d){p(!1),h(null);return}const k=v?.current?.getBoundingClientRect();k&&h(k),n?.(),p(!0)},[d,n]),B=s.useCallback(()=>y(k=>!k),[]);return t.jsxs("div",{className:"pp-bottom",children:[t.jsxs("div",{className:"pp-bottom__left",children:[e?t.jsxs(t.Fragment,{children:[t.jsx("div",{className:"pp-bottom__settings--desktop",children:t.jsx("div",{ref:f,className:"pp-bottom__tooltip-trigger","data-tooltip-ignore":!0,children:t.jsx(ce,{htmlType:"button",size:56,type:"bar",icon:"settings",onClick:w,selected:d,ariaLabel:u("training.trainingSettingsTitle","\uD6C8\uB828 \uC124\uC815"),label:u("training.trainingSettingsTitle","\uD6C8\uB828 \uC124\uC815"),minWidth:140})})}),t.jsx("div",{className:"pp-bottom__settings--mobile",children:t.jsx("div",{ref:v,className:"pp-bottom__tooltip-trigger","data-tooltip-ignore":!0,children:t.jsx(ce,{htmlType:"button",size:56,type:"dot",icon:"settings",onClick:D,selected:d,ariaLabel:u("training.settings","\uC124\uC815"),minWidth:52})})})]}):null,e&&t.jsx(ce,{htmlType:"button",size:40,type:"dot",shape:"pill",icon:"audio-lines",onClick:B,selected:C,ariaLabel:u("training.meter.toggle","\uC624\uB514\uC624 \uBBF8\uD130 \uD45C\uC2DC")}),e&&C&&t.jsxs("div",{className:"pp-bottom__meters",children:[t.jsxs("div",{className:"pp-bottom__meter",children:[t.jsx("span",{className:"pp-bottom__meter-label caption-1",children:u("training.meter.sentence","\uC7AC\uC0DD")}),t.jsx(Or,{analyser:b?.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(Or,{analyser:b?.noiseAnalyser??null,orientation:"horizontal",length:112,label:"db",labelPos:"left",ariaLabel:u("training.meter.noise","\uC18C\uC74C")})]})]})]}),t.jsxs("div",{className:"pp-bottom__right",children:[_&&t.jsx(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:!g}),x&&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:!g})]}),e&&d&&t.jsx(mc,{anchorRect:m,onClose:A})]})}function fc({title:e,subtitle:n,desc:a,depth:r,icon:o,wrapperStyle:i,iconTooltip:l,pageIndex:c,pageCount:u,progressMax:d,progressIndex:p,onBack:m,onClose:h}){const{t:C}=pe.useTranslation(),y=rn("(max-width: 767px)"),f=Number.isInteger(p)?p:c||0,v=Number.isInteger(d)?d:u||0,b=m||h,x=Array.isArray(r)?y?r[r.length-1]:r.join(" / "):r,_=typeof e=="string"?e.trim():e,g=typeof n=="string"?n.trim():n,A=!!(_||g),w=A?_||g:C("common.emptyTrainingName","\uD6C8\uB828 \uC774\uB984\uC774 \uBE44\uC5B4 \uC788\uC2B5\uB2C8\uB2E4."),D=x||(_?n:void 0),B=y&&typeof D=="string"&&(D.includes(" \xB7 ")||D.includes(" / "))?D.split(/\s[·/]\s/).pop():D,k=s.useMemo(()=>{const N=i&&typeof i=="object"?{...i}:{};return!("width"in N)&&!("height"in N)&&(N.width="40px",N.height="40px"),N},[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:C("common.back","\uB4A4\uB85C"),onClick:b,useBorder:!1,iconSize:"large",iconColor:"--color-black",variant:"transparent-gray"}):null,t.jsx("div",{children:o?t.jsx(xl,{icon:o,label:e,tooltip:l,wrapperStyle:k}):null}),t.jsxs("div",{className:"pp-title__text",children:[B?t.jsx("span",{className:"pp-title__depth caption-1",children:B}):null,t.jsx("span",{className:`pp-title__title h2${A?"":" pp-title__title--empty"}`,children:w}),a?t.jsx("span",{className:"pp-title__description caption-1",children:a}):null]})]}),t.jsx(gl,{max:Math.max(0,v??0),index:Math.max(0,f??0)})]})}function Vy(){typeof window<"u"&&window.dispatchEvent(new CustomEvent("speechear.popup.close"))}function Hy(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 Cc=(e,n)=>{if(!n)return n;const a=typeof Lt?.t=="function"?Lt.t(e,{defaultValue:n}):void 0;return typeof a=="string"&&a?a:n};function gc(e,n,a){const r=e,o=r?.title||r?.name||(Array.isArray(n)?n[n.length-1]:void 0)||a||"\uD6C8\uB828",i=$s().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:o,label:r?.title||o,depth:n,icon:i?.icon,wrapperStyle:i?.color?{"--t-item-fg":i.color}:void 0,iconTooltip:[i?Cc(`topic.${i.key}`,i.label):void 0,l?Cc(`topic.sub.${l.key}`,l.label):void 0].filter(Boolean).join(" / ")||void 0}}function bo(e){return e&&typeof e=="object"&&typeof e.__ts=="number"?e.__ts:0}function zy(e){const n=e;return Array.isArray(n?.items)?n.items:Array.isArray(e)?e:e?[e]:[]}function Wy({idPrefix:e,trainingData:n,depth:a,fallbackTitle:r="\uD6C8\uB828",pages:o=[],emptyMessage:i,buildResults:l,metaPatch:c}){const u=gc(n,a,r),d=typeof c=="function"?c(u)||{}:c||{},p=n?.id||n?.title||o.length;return{id:`${e}:${p}`,meta:{...u,...d},pages:o,emptyMessage:i,buildResults:l}}function qy(e){if(typeof e=="string")return e;if(e&&typeof e=="object"){const n=e;return n.context||n.sentence||n.question||""||""}return""}function Uy(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 Gy(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 bc(e,n){if(!(!e||typeof e!="object"))return e[`step-${n}`]}function Ky(e,n,a,r){return bc(e,n*a+r)}function Yy({payload:e,selected:n,choices:a=[],correctAnswers:r=[]}){if(e&&typeof e=="object"){const o=e;if(Array.isArray(o.selectedValues))return r.every(i=>o.selectedValues.includes(i))&&o.selectedValues.every(i=>r.includes(i));if(typeof o.correct=="boolean")return o.correct}if(r.length){if(typeof n=="number"&&Array.isArray(a)&&a.length)return r.some(o=>String(o)===String(a[n]));if(typeof n<"u")return r.some(o=>String(o)===String(n))}}function Zy(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 yc=s.createContext(null);function Xy(){const e=s.useContext(yc);if(!e)throw new Error("useTrainingPagePopupContext must be used inside TrainingPagePopup");return e}function Jy({index:e,stepIndex:n,isLast:a=!1,title:r,choices:o=[],onDone:i,onChange:l}){const{t:c}=pe.useTranslation(),u=typeof e=="number"?e:-1,d=typeof n!="number"?"disabled":u<n?"done":u===n?"active":"disabled",[p,m]=s.useState(()=>o.map(()=>null)),h=JSON.stringify(o),C=o.length;s.useEffect(()=>{m(Array.from({length:C},()=>null))},[h]);const y=s.useRef(void 0);s.useEffect(()=>{const x=y.current;typeof x=="number"&&typeof n=="number"&&typeof e=="number"&&x>=e&&n<e&&m(Array.from({length:C},()=>null)),y.current=n},[n,e,C]);const f=s.useMemo(()=>p.filter(x=>x!==null).length+1,[p]),v=s.useCallback(x=>{if(d!=="active")return;const _=p;let g;if(_[x]!=null){const w=_[x];g=_.map(D=>D!==null&&D>=w?null:D)}else g=[..._],g[x]=f;m(g);const A={selectedOrder:g,words:o,__ts:Date.now()};try{typeof l=="function"&&l(A)}catch{}if(_[x]==null&&g.length>0&&g.every(w=>w!==null))try{typeof i=="function"&&i(A)}catch{}},[d,p,f,l,i,o]),b=r??c("training.selectInOrder","\uB4E4\uC740 \uC21C\uC11C\uB300\uB85C \uCE74\uB4DC\uB97C \uC120\uD0DD\uD558\uC138\uC694.");return t.jsx(Vn,{index:e,stepIndex:n,isLast:a,title:b,onDone:i,children:t.jsx("div",{className:"training-step__cards",children:o.map((x,_)=>t.jsx(Gr,{item:{word:x},disabled:d==="disabled",selectable:!0,selected:p[_]!==null,orderRank:p[_],onSelect:()=>v(_),flipDelay:_*120,hideLabel:!1,hideAudio:!0},`${x}-${_}`))})})}function Ya(e){return null}Ya.__isTrainingPage=!0;function Qn(e,n){const a=Xy();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 vc({_stepIndex:e,_totalSteps:n,...a}){const{index:r,stepIndex:o,isLast:i,onDone:l}=Qn(e,n);return t.jsx(ho,{...a,index:r,stepIndex:o,isLast:i,onDone:l})}function xc({_stepIndex:e,_totalSteps:n,...a}){const{index:r,stepIndex:o,isLast:i,onDone:l,onChange:c}=Qn(e,n);return t.jsx(po,{...a,index:r,stepIndex:o,isLast:i,onDone:l,onChange:c})}function _c({_stepIndex:e,_totalSteps:n,...a}){const{index:r,stepIndex:o,isLast:i,onDone:l,onChange:c}=Qn(e,n);return t.jsx(mo,{...a,index:r,stepIndex:o,isLast:i,onDone:l,onChange:c})}function wc({_stepIndex:e,_totalSteps:n,...a}){const{index:r,stepIndex:o,isLast:i,onDone:l,onChange:c}=Qn(e,n);return t.jsx(fo,{...a,index:r,stepIndex:o,isLast:i,onDone:l,onChange:c})}function kc({_stepIndex:e,_totalSteps:n,...a}){const{index:r,stepIndex:o,isLast:i,onDone:l,onChange:c}=Qn(e,n);return t.jsx(cc,{...a,index:r,stepIndex:o,isLast:i,onDone:l,onChange:c})}function Qy({_stepIndex:e,_totalSteps:n,...a}){const{index:r,stepIndex:o,isLast:i,onDone:l,onChange:c}=Qn(e,n);return t.jsx(Jy,{...a,index:r,stepIndex:o,isLast:i,onDone:l,onChange:c})}function yo(...e){for(const n of e)if(typeof n=="string"){const a=n.trim();if(a.length)return a}else{if(typeof n=="number"||typeof n=="boolean")return String(n);if(Array.isArray(n)&&n.length)return n.join(", ");if(n&&typeof n=="object"){const a=n,r=[a.text,a.label,a.value];for(const o of r){if(typeof o=="string"&&o.trim().length)return o.trim();if(typeof o=="number"||typeof o=="boolean")return String(o)}}}return null}function e5(e){return yo(e?.question,e?.q,e?.sentence,e?.text,e?.prompt,e?.wording)}function Ac(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=yo(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 Nc(e){const{score:n,contextsLength:a,results:r=[],subtitle:o,onReplay:i,onClose:l,inline:c=!1}=e||{},{t:u}=pe.useTranslation();s.useEffect(()=>{const f=a??0;if(n!=null&&f>0&&n/f>.5){const v=window.setTimeout(()=>{window.dispatchEvent(new CustomEvent("party:trigger",{detail:{count:140,strength:1.6,duration:2200}}))},0);return()=>window.clearTimeout(v)}},[n,a]);const d=s.useCallback(f=>{const v=Ac(f),b=yo(f?.wording,f?.label);return v===!0?{variant:"main",label:b??u("training.result.heardWell","\uC798 \uB4E4\uC5C8\uC5B4\uC694")}:v===!1?{variant:"danger",label:b??u("training.result.notHeard","\uBABB \uB4E4\uC5C8\uC5B4\uC694")}:{variant:"disabled",label:b??u("training.result.notJudged","\uBBF8\uD310\uC815")}},[u]),p=a??0,m=n??0,h=s.useMemo(()=>Array.isArray(r)?r:[],[r]),C=s.useMemo(()=>h.map(f=>{const v=f??{},b=e5(v)||u("training.result.noContent","(\uB0B4\uC6A9\uC5C6\uC74C)"),{variant:x,label:_}=d(v),g=Array.isArray(v.corrects)?v.corrects:[],A=g.length?g.join(", "):v.answer!=null&&v.answer!==""?String(v.answer):null,w=typeof v.selectedText=="string"?v.selectedText:null,D=Ac(v)===!0;return{problem:b,variant:x,label:_,answer:A,selectedText:w,isCorrect:D}}),[h,d,u]),y=s.useMemo(()=>C.some(f=>f.answer!==null||f.selectedText!==null),[C]);return t.jsx(Nn,{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",footerClassName:"trp-result__foot",footer:({animateThen:f,closeWithAnimation:v})=>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:()=>f(i)}),t.jsx(ce,{htmlType:"button",size:56,type:"bar",label:u("training.result.done","\uC644\uB8CC"),variant:"main",onClick:v})]}),children:()=>t.jsxs("div",{className:"trp-result is-on",children:[t.jsxs("header",{className:"trp-result__head",children:[t.jsx("p",{className:"trp-result__eyebrow caption-1",children:u("training.result.eyebrow","\uD6C8\uB828 \uC644\uB8CC")}),t.jsx("h1",{className:"trp-result__title h2",children:u("training.result.title","\uD6C8\uB828\uC744 \uBAA8\uB450 \uB9C8\uCCE4\uC2B5\uB2C8\uB2E4.")}),o&&t.jsx("p",{className:"trp-result__subtitle body-3",children:o}),t.jsx("div",{className:"trp-score",children:t.jsxs("div",{className:"trp-score__figure","aria-label":u("training.result.scoreAria",{correct:m,total:p}),children:[t.jsx("span",{className:"trp-score__big",children:m}),t.jsx("span",{className:"trp-score__sep",children:"/"}),t.jsx("span",{className:"trp-score__total",children:p})]})})]}),C.length>0&&t.jsx("section",{className:"trp-result__body",children:t.jsxs("div",{className:`result-table${y?" 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")}),y&&t.jsx("span",{role:"columnheader",children:u("training.result.colAnswerSelected","\uC815\uB2F5 \xB7 \uC120\uD0DD")}),t.jsx("span",{className:"col-right",role:"columnheader",children:u("training.result.colJudge","\uD310\uC815")})]}),C.map((f,v)=>t.jsxs("div",{className:"result-table__row",role:"row",children:[t.jsxs("div",{className:"trp-row__problem",children:[t.jsx("span",{className:"trp-row__no caption-1",children:String(v+1).padStart(2,"0")}),t.jsx("div",{className:"trp-row__q body-2",children:f.problem})]}),y&&t.jsxs("div",{className:"trp-row__answers",children:[f.answer!==null&&t.jsxs("div",{className:"trp-row__answer-line",children:[t.jsx("span",{className:"trp-row__answer-label answer-correct caption-1",children:u("training.result.colAnswer","\uC815\uB2F5")}),t.jsx("span",{className:"trp-row__answer-value body-2",children:f.answer})]}),t.jsxs("div",{className:"trp-row__answer-line",children:[t.jsx("span",{className:`trp-row__answer-label answer-selected caption-1 ${f.isCorrect?"is-correct":"is-wrong"}`,children:u("training.result.colSelected","\uC120\uD0DD")}),t.jsx("span",{className:`trp-row__answer-value body-2 ${f.isCorrect?"is-correct":"is-wrong"}`,children:f.selectedText??"\u2014"})]})]}),t.jsx("div",{className:"trp-row__judge",children:t.jsx(ut,{variant:f.variant,label:f.label,fill:"soft",minWidth:80})})]},v))]})})]})})}function t5(e){s.useEffect(()=>{if(!e)return;const n=()=>typeof document>"u"||document.visibilityState!=="hidden";let a=null,r=null,o=0,i=!1;const l=()=>{const p=Date.now();a==null&&(a=p),r==null&&(r=p)},c=()=>{r!=null&&(o+=Date.now()-r,r=null)};n()&&l();const u=()=>{i||(c(),!(a==null||o<5e3)&&(i=!0,j0({trainingType:e,startedAt:new Date(a).toISOString(),endedAt:new Date(a+o).toISOString()})))},d=()=>{n()?l():c()};return typeof document<"u"&&document.addEventListener("visibilitychange",d),typeof window<"u"&&window.addEventListener("pagehide",u),()=>{typeof document<"u"&&document.removeEventListener("visibilitychange",d),typeof window<"u"&&window.removeEventListener("pagehide",u),u()}},[e])}function vo(e,n){return e&&e.id||`page-${n??0}`}function xo(e,n){return e&&e.key||`step-${n??0}`}function Za(){return{pageIndex:0,stepIndex:0,answersByPage:{}}}function n5(e,n){return typeof e?.props=="function"?e.props(n)||{}:e?.props||{}}const Bc=new Set(["LISTEN_IN_NOISE","SHORT_STORY","LONG_STORY","ORDERING_SENTENCE"]),a5=e=>t.jsx(Nc,{score:e.score,contextsLength:e.contextsLength,results:e.results,onReplay:e.onReplay,onClose:e.onClose});function r5(e){const{scenario:n,title:a,subTitle:r,depth:o,icon:i,wrapperStyle:l,iconTooltip:c,pageIndex:u,pageCount:d,stepIndex:p,stepCount:m,onBack:h,onComplete:C,onNext:y,onSettings:f,useNoiseSetting:v=!0,children:b,ariaLabel:x,label:_,buildResults:g,onResult:A,typeKey:w,entryPoint:D,dailyTotal:B,itemRef:k,renderResultPopup:N,noiseOverride:I}=e;t5(w&&!Bc.has(w)?w:"");const O=s.useRef(0);s.useEffect(()=>{O.current=Date.now()},[]);const{t:E}=pe.useTranslation(),V=A,j=!!n,Y=n?.id||null,R=n?.meta||{},H=Array.isArray(n?.pages)?n.pages:[],W=Array.isArray(b)||s.isValidElement(b)&&typeof b!="function"?s.Children.toArray(b).filter(s.isValidElement):[],le=W.length>0,q=re=>re===Ya||re?.__isTrainingPage===!0,P=le&&W.some(re=>q(re.type)),M=P?W.filter(re=>q(re.type)).map((re,G)=>{const ne=re.props||{};return{id:`children-page-${G}`,steps:s.Children.toArray(ne.children).filter(s.isValidElement),pageTop:ne.pageTop||ne.top||null,pageBottom:ne.pageBottom||ne.bottom||null}}):[{id:"children-page-0",steps:W}],L=le&&!j&&typeof b!="function",z=L?Math.max(1,M.length):0;s.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")}},[]),s.useEffect(()=>{if(typeof document>"u"||!document.body)return;const re=document.body;return re.dataset.ihabTrainingPopupCount=String(Number(re.dataset.ihabTrainingPopupCount||"0")+1),re.classList.add("ihab-training-popup-open"),()=>{const G=Number(re.dataset.ihabTrainingPopupCount||"1")-1;G>0?re.dataset.ihabTrainingPopupCount=String(G):(delete re.dataset.ihabTrainingPopupCount,re.classList.remove("ihab-training-popup-open"))}},[]),s.useEffect(()=>{if(!(typeof document>"u"||!document.body))return u4()},[]);const[$,T]=s.useState({...xa,enabled:!1}),F=s.useRef($);s.useEffect(()=>{F.current=$},[$]);const oe=s.useRef(I),ae=s.useRef(!1),ee=s.useRef(null);s.useEffect(()=>{let re=!1;const G=ne=>{if(re)return;ae.current=!0;const ke=ne?va({...xa,enabled:!1},ne):{...xa},Ne=ee.current;ee.current=null;const Be=Ne?va(ke,Ne):ke;F.current=Be,T(Be),Ne&&!oe.current&&js(Be),Sa(Be);const Ge=oe.current;if(Ge){const X=typeof Ge=="function"?Ge(Be):Ge,he=va(Be,X);F.current=he,T(he),Sa(he)}};return L0().then(G),()=>{re=!0}},[]);const[se,Ce]=s.useState(null),[Z,ie]=s.useState(null),J=s.useCallback((re,G)=>{re==="main"?Ce(G):ie(G)},[]),be=s.useCallback(re=>{const G=va(F.current,re);if(F.current=G,T(G),!ae.current){ee.current={...ee.current??{},...re},Sa(G);return}oe.current||js(G),Sa(G)},[]),ve=$.mainSpeed,Te=$.mainVolume,de=s.useCallback(re=>be({mainSpeed:re}),[be]),ye=s.useCallback(re=>be({mainVolume:re}),[be]),_e=s.useMemo(()=>({settings:$,setSettings:be,registerAnalyser:J,mainAnalyser:se,noiseAnalyser:Z,playbackRate:ve,setPlaybackRate:de,mainVolume:Te,setMainVolume:ye}),[$,be,J,se,Z,ve,de,Te,ye]),Q=s.useRef(null),[te,we]=s.useState(0),[Se,ze]=s.useState("center"),[Me,Oe]=s.useState(!1),Re=s.useRef(!1),tt=s.useRef(null),Ye=s.useCallback(re=>{Re.current||(Re.current=!0,Oe(!0),tt.current=setTimeout(()=>{try{re()}catch{Re.current=!1,Oe(!1)}},Ey))},[]);s.useEffect(()=>()=>{tt.current&&clearTimeout(tt.current)},[]);const Ke=s.useRef(h);s.useEffect(()=>{Ke.current=h}),s.useEffect(()=>{const re=Q.current,G=document.activeElement;if(Mr(re,G),re){const ne=Array.from(re.querySelectorAll(Ln)).filter(ke=>!ke.closest('[aria-hidden="true"]'))[0];if(ne)try{ne.focus()}catch{}}return()=>{const ne=document.activeElement;if(!ne||ne===document.body||re&&re.contains(ne))try{Lr(G)?.focus?.()}catch{}}},[]),s.useEffect(()=>$n(()=>Ye(()=>{const re=Ke.current;typeof re=="function"&&re()})),[Ye]),xr(Q,!0);const[fe,We]=s.useState(!1),Ee=s.useRef(!1),[$e,He]=s.useState(null),Ue=s.useRef(0),gt=()=>{Ue.current+=1,He(null)},[dt,st]=s.useState(""),[nt,at]=s.useState(()=>Za()),Fe=s.useRef(typeof u=="number"?u:null);s.useEffect(()=>{!j&&!L||(at(Za()),gt())},[j,Y,L]),s.useEffect(()=>{L&&at(re=>{const G=Math.max(0,Math.min(re.pageIndex,Math.max(0,z-1)));return G!==re.pageIndex?{...re,pageIndex:G,stepIndex:0}:re})},[L,z]);const Qe=L?Math.max(0,Math.min(nt.pageIndex,z-1)):0,Xe=L?M[Qe]:null,rt=L&&Xe&&Array.isArray(Xe.steps)?Xe.steps:[],Pe=j?nt.pageIndex:L?Qe:typeof u=="number"?u:0,Je=j?H[Math.max(0,Math.min(nt.pageIndex,Math.max(0,H.length-1)))]:null,yt=j&&Je&&Array.isArray(Je.steps)?Je.steps:[],Gt=j?yt.length:L?rt.length:typeof m=="number"?m:0,mt=j||L?Math.max(0,Math.min(nt.stepIndex,Math.max(0,Gt))):typeof p=="number"?p:0,xt=j?H.length:L?z:typeof d=="number"?d:0;s.useLayoutEffect(()=>{const re=Fe.current;if(typeof Pe=="number"&&re!==null&&Pe!==re&&Pe>re)try{st(E("training.problemNotice",{n:Pe+1}))}catch{}Fe.current=typeof Pe=="number"?Pe:Fe.current},[Pe,u,E]),s.useLayoutEffect(()=>{const re=Q.current;if(!re)return;const G=()=>re.querySelector(".page-popup__scroll");let ne=null,ke=null,Ne=null;const Be=Le=>{const je=G();if(!je)return;const Ve=je.scrollHeight<=je.clientHeight;if(ze(Ve?"center":"top"),Le&&!Ee.current){Ee.current=!0;try{We(!0)}catch{}try{he.disconnect()}catch{}}},Ge=()=>{ne!==null&&cancelAnimationFrame(ne),ne=requestAnimationFrame(()=>{ke!==null&&clearTimeout(ke),ke=setTimeout(()=>Be(!0),60)})},X=()=>{Ne!==null&&cancelAnimationFrame(Ne),Ne=requestAnimationFrame(()=>Be(!1))};Ge(),window.addEventListener("resize",X);const he=new MutationObserver(Ge);he.observe(re,{childList:!0,subtree:!0,attributes:!0});const Ae=setTimeout(()=>{Ee.current||Be(!0)},400);return()=>{window.removeEventListener("resize",X),ne!==null&&cancelAnimationFrame(ne),ke!==null&&clearTimeout(ke),Ne!==null&&cancelAnimationFrame(Ne),clearTimeout(Ae);try{he.disconnect()}catch{}}},[Q]);const Ot=s.useCallback(re=>{Q.current&&(Q.current._childOnNext=re)},[]),Kt=s.useCallback(re=>{Q.current&&(Q.current._childOnResult=re)},[]),_t=s.useCallback((re,G,ne)=>{at(ke=>{const Ne=ke.answersByPage[re]||{},Be=Ne[G],Ge=bo(ne),X=bo(Be);return Be&&X>Ge?ke:{...ke,answersByPage:{...ke.answersByPage,[re]:{...Ne,[G]:ne}}}})},[at]),lt=s.useCallback((re,G,ne)=>{const ke=vo(Je,Pe),Ne=xo(re,G);_t(ke,Ne,ne)},[Je,Pe,_t]),Yt=s.useCallback((re,G,ne)=>{const ke=vo(Je,Pe),Ne=xo(re,G);_t(ke,Ne,ne),!ne?.allowChange&&re?.autoAdvance!==!1&&at(Be=>({...Be,stepIndex:Math.max(Be.stepIndex,G+1)}))},[Je,Pe,_t,at]),Pt=s.useCallback((re,G)=>{const ne=Xe?.id||`children-page-${Pe??0}`,ke=typeof G=="number"?G:mt??0,Ne=`step-${ke}`;_t(ne,Ne,re),re?.allowChange||at(Be=>({...Be,stepIndex:Math.max(Be.stepIndex,ke+1)}))},[Xe,Pe,mt,_t,at]),yn=s.useCallback((re,G)=>{const ne=Xe?.id||`children-page-${Pe??0}`,ke=`step-${typeof G=="number"?G:mt??0}`;_t(ne,ke,re)},[Xe,Pe,mt,_t]),Sn=L?{currentPageIndex:Pe??0,currentStepIndex:mt??0,totalStepsInPage:rt.length,handleStepDone:Pt,handleStepChange:yn}:null,et=async()=>{const re=typeof n?.buildResults=="function"?await Promise.resolve(n.buildResults({scenario:n,pages:H,flowState:nt,answersByPage:nt.answersByPage})):null;return typeof V=="function"&&await Promise.resolve(V(re))||re},Vt=async()=>{const re=Xe?.id||`children-page-${nt.pageIndex}`,G=nt.answersByPage[re]||{},ne=P?(()=>{const Be={};let Ge=0;return M.forEach(X=>{const he=nt.answersByPage[X.id]||{},Ae=Array.isArray(X.steps)?X.steps.length:0;for(let Le=0;Le<Ae;Le+=1){const je=he[`step-${Le}`];typeof je<"u"&&(Be[`step-${Ge+Le}`]=je)}Ge+=Ae}),Be})():G;if(typeof g=="function"){const Be=await Promise.resolve(g(ne,{pageAnswers:G,answersByPage:nt.answersByPage,pages:M,currentPageId:re}));return typeof V=="function"&&await Promise.resolve(V(Be))||Be}const ke=Object.entries(G).map(([Be,Ge],X)=>({index:X,key:Be,payload:Ge})),Ne={results:ke,answers:ke,score:0};return typeof V=="function"&&await Promise.resolve(V(Ne))||Ne},wt=()=>{const re=++Ue.current,G=()=>re!==Ue.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 Ne=et();He({});const Be=Ne;Promise.resolve(Be).then(Ge=>{G()||He(Ge||{isEmpty:!0})}).catch(Ge=>{!G()&&He({isEmpty:!0})});return}if(L){const Ne=Vt();He({});const Be=Ne;Promise.resolve(Be).then(Ge=>{G()||He(Ge||{isEmpty:!0})}).catch(Ge=>{!G()&&He({isEmpty:!0})});return}const ne=Q.current&&Q.current._childOnResult,ke=Ne=>{try{return Ne?Ne():void 0}catch{return}};if(typeof ne=="function"){const Ne=ke(ne);try{typeof document>"u"?require("url").pathToFileURL(__filename).href:pn&&pn.tagName.toUpperCase()==="SCRIPT"&&pn.src||new URL("components.cjs.js",document.baseURI).href}catch{}Ne&&typeof Ne.then!="function"?He(Ne):He(Ne&&typeof Ne.then=="function"?{}:{}),Promise.resolve(Ne).then(Be=>{Be&&!G()&&He(Be)}).catch(Be=>{});return}if(typeof V=="function"){const Ne=ke(V);try{typeof document>"u"?require("url").pathToFileURL(__filename).href:pn&&pn.tagName.toUpperCase()==="SCRIPT"&&pn.src||new URL("components.cjs.js",document.baseURI).href}catch{}Ne&&typeof Ne.then!="function"?He(Ne):He(Ne&&typeof Ne.then=="function"?{}:{}),Promise.resolve(Ne).then(Be=>{try{typeof document>"u"?require("url").pathToFileURL(__filename).href:pn&&pn.tagName.toUpperCase()==="SCRIPT"&&pn.src||new URL("components.cjs.js",document.baseURI).href}catch{}Be&&!G()&&He(Be)}).catch(Be=>{console.error("viewResults external handler failed",Be)});return}},Ht=()=>{if(j){if(typeof Pe=="number"&&typeof xt=="number"&&Pe<xt-1){at(G=>({...G,pageIndex:G.pageIndex+1,stepIndex:0}));return}return wt()}if(L){const G=rt.length;if(typeof mt=="number"&&mt<G-1){at(ne=>({...ne,stepIndex:ne.stepIndex+1}));return}if(typeof Pe=="number"&&typeof xt=="number"&&Pe<xt-1){at(ne=>({...ne,pageIndex:ne.pageIndex+1,stepIndex:0}));return}return wt()}if(typeof y=="function"){try{y()}catch{}return}const re=Q.current&&Q.current._childOnNext;if(typeof re=="function"){try{re()}catch{}return}},zt=j?R.title||R.label||x||E("common.popup","\uD31D\uC5C5"):a||_||(Array.isArray(o)?o[o.length-1]:void 0)||x||E("common.popup","\uD31D\uC5C5"),Wt=j?R.title??R.label??zt:a??_??zt,sn=(re,G)=>{const ne=vo(Je,Pe),ke=xo(re,G),Ne=nt.answersByPage[ne]?.[ke],Be=n5(re,{page:Je,pageIndex:Pe,step:re,stepIndex:G,storedPayload:Ne,answersByPage:nt.answersByPage,flowState:nt}),Ge={key:ke,index:G,stepIndex:mt,isLast:G===yt.length-1};switch(re?.type){case"listen":return t.jsx(ho,{...Ge,...Be,onDone:X=>Yt(re,G,X)});case"confirm":return t.jsx(po,{...Ge,...Be,onDone:X=>Yt(re,G,X),onChange:X=>lt(re,G,X)});case"confirmWithText":return t.jsx(mo,{...Ge,...Be,onDone:X=>Yt(re,G,X),onChange:X=>lt(re,G,X)});case"orderList":return t.jsx(fo,{...Ge,...Be,onDone:X=>Yt(re,G,X),onChange:X=>lt(re,G,X)});default:return null}},ln=s.useRef(void 0);s.useEffect(()=>{const re=ln.current;if(ln.current=Pe,re===void 0||re===Pe||!Fa())return;const G=Q.current;if(!G)return;const ne=document.activeElement;if(!(!ne||ne===document.body||!G.contains(ne)||ne.disabled===!0))return;const ke=G.querySelector(`.training-steps ${Ln.split(", ").join(", .training-steps ")}`)??Array.from(G.querySelectorAll(Ln)).find(Ne=>!Ne.closest('[aria-hidden="true"]'));try{ke?.focus()}catch{}},[Pe]);const qt=j?H.length>0?t.jsx("div",{className:"training-steps",children:yt.map((re,G)=>sn(re,G))},`replay-${te}`):t.jsx("div",{className:"page-popup__content page-popup__content--center",children:t.jsx("div",{className:"pp-empty",children:n?.emptyMessage||E("training.noQuestions","\uBB38\uC81C\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4.")})}):null,cn=L?t.jsxs(yc.Provider,{value:Sn,children:[Xe?.pageTop?t.jsx("div",{className:"training-page-top",children:Xe.pageTop}):null,t.jsx("div",{className:"training-steps",children:rt.map((re,G)=>{const ne=re;return s.cloneElement(ne,{...ne.props,_stepIndex:G,_totalSteps:rt.length,_stepKey:`step-${G}`,_pageIndex:Pe})})},`replay-${te}`),Xe?.pageBottom?t.jsx("div",{className:"training-page-bottom",children:Xe.pageBottom}):null]}):null,nn=s.useCallback(()=>{let re;if(w){const G=$e,ne=G?.results||G?.answers||[],ke=Array.isArray(ne)&&ne.length>0?ne.length:null,Ne=Array.isArray(ne)?ne.filter(Ge=>Ge?.correct===!0||Ge?.isCorrect===!0||Ge?.score===1||Ge?.heard===!0||Ge?.judgement===!0).length:null,Be=ke!=null?Ne:null;T0({items:M0(ne),category:Bc.has(w)?"sentence":"word",trainingType:w,entryPoint:D??"sentence",itemRef:k??null,correct:Be,total:ke,score:typeof G?.score=="number"?G.score:null,durationSeconds:Math.max(0,Math.round((Date.now()-O.current)/1e3)),dailyTotal:B??null}),re={correct:Be,total:ke}}gt(),Ye(()=>{typeof C=="function"&&C(re),typeof h=="function"&&h()})},[C,h,w,D,B,k,$e,He,Ye]),ht=s.useCallback(()=>st(""),[st]),Zt=s.useCallback(()=>{Ye(()=>{typeof h=="function"&&h()})},[h,Ye]),Xt=t.jsxs("div",{className:`page-popup${Me?" page-popup--closing":""}`,role:"dialog","aria-modal":"true","aria-label":zt,children:[t.jsxs("div",{ref:Q,className:`page-popup__panel ${fe?"":"page-popup__panel--measuring"} ${Se==="center"?"page-popup__panel--center":Se==="top"?"page-popup__panel--top":""}`,children:[t.jsx(fc,{title:Wt,subtitle:j?R.subtitle||R.label:Array.isArray(o)?o.join(" / "):void 0,desc:j?void 0:r,depth:j?R.depth:o,icon:j?R.icon:i,wrapperStyle:j?R.wrapperStyle:l,iconTooltip:j?R.iconTooltip:c,progressMax:xt,progressIndex:Pe,pageIndex:Pe,pageCount:xt,onBack:Zt,onClose:Zt}),t.jsx("div",{className:"page-popup__scroll",children:t.jsx("div",{className:`page-popup__content ${Se==="center"?"page-popup__content--center":"page-popup__content--top"}`,children:L?cn:j?qt:typeof b=="function"?b({registerOnNext:Ot,registerOnResult:Kt,panelRef:Q,setResultOverlay:He}):b})}),t.jsx(hc,{onSettings:f,onNext:Ht,onResult:wt,useNoiseSettingBtn:!!(j?R.useNoiseSetting??!0:v),stepIndex:mt,stepCount:Gt,pageIndex:Pe,pageCount:xt})]}),$e&&!$e.isEmpty&&(N??a5)({score:$e.score,results:$e.results||$e.answers||[],contextsLength:$e.results?$e.results.length:$e.answers?$e.answers.length:0,onReplay:()=>{if(O.current=Date.now(),gt(),we(re=>re+1),j){if(at(Za()),typeof n?.onReplay=="function")try{n.onReplay()}catch{}return}if(L){at(Za());return}try{const re=Q.current&&Q.current._childOnResult;typeof re=="function"&&re({replay:!0})}catch{}},onClose:nn}),$e?.isEmpty&&t.jsx("div",{className:"page-popup page-popup--result-empty",role:"dialog","aria-modal":"true","aria-label":E("training.result.eyebrow","\uD6C8\uB828 \uC644\uB8CC"),children:t.jsxs("div",{className:"page-popup__panel page-popup__panel--center",children:[t.jsx("div",{className:"page-popup__scroll",children:t.jsx("div",{className:"page-popup__content page-popup__content--center",children:t.jsx("div",{className:"page-popup__empty",children:E("training.result.eyebrow","\uD6C8\uB828 \uC644\uB8CC")})})}),t.jsx("div",{className:"page-popup__bottom",children:t.jsx(ce,{htmlType:"button",variant:"main",size:48,onClick:nn,label:E("training.result.done","\uC644\uB8CC")})})]})}),t.jsx(Gn,{message:dt,position:"top",onClose:ht})]}),jt=t.jsx(oo.Provider,{value:_e,children:Xt});return typeof document<"u"&&document.body?Ut.createPortal(jt,document.body):jt}const Dn=r5;Dn.Page=Ya,Dn.ListenStep=vc,Dn.ConfirmStep=xc,Dn.ConfirmWithTextStep=_c,Dn.OrderListStep=wc,Dn.CardStep=kc,Dn.CardOrderStep=Qy;function o5({label:e,homonum:n}){const a=Wn()?.(e,n)??"",{imgRef:r,loading:o,hasImage:i,onLoad:l,onError:c}=Ur(a);return i?t.jsxs("div",{className:"tooltip-word-image__cell",children:[o&&t.jsx("div",{className:"tooltip-word-image__spinner"}),t.jsx("img",{ref:r,src:a,alt:e,draggable:!1,style:{opacity:o?0:1},onLoad:l,onError:c})]}):t.jsx("div",{className:"tooltip-word-image__cell tooltip-word-image__cell--text h3",children:t.jsx("span",{children:e})})}function Dc({words:e,anchorRect:n}){const a=s.useRef(null),[r,o]=s.useState(null);return s.useLayoutEffect(()=>{if(!n||!a.current)return;const{offsetWidth:i,offsetHeight:l}=a.current,c=window.innerWidth;let u=n.left+n.width/2-i/2,d=n.top-l-8;d<8&&(d=n.bottom+8),u=Math.max(8,Math.min(u,c-i-8)),o({left:u,top:d})},[n]),!n||e.length===0?null:Ut.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(o5,{label:i.label,homonum:i.homonum},`${i.label}_${i.homonum??1}`))})}),document.body)}const s5=new Intl.Collator("ko");function i5({titleIcon:e,resultCount:n,resultUnit:a,searchQuery:r,items:o,groups:i,selected:l=[],onSelect:c,maxSelect:u,onClearSelection:d,onPrint:p,onPrintEmpty:m,className:h,emptyHint:C,sectionType:y="page",disc:f,notice:v}){const{t:b,i18n:x}=pe.useTranslation(),_=x.language?.startsWith("ko")??!1,{anchorRect:g,openAt:A,close:w}=Ea(),[D,B]=s.useState(null),k=s.useCallback(()=>{w(),B(null)},[w]);y2(k,!!D);const N=(r??"").trim(),I=/^[^,[\]\s]+$/.test(N)?N:"",O=I.length>0,[E,V]=s.useState(()=>O?"match":"ganada"),[j,Y]=s.useState("50"),[R,H]=s.useState(1),[W,le]=s.useState(O);W!==O&&(le(O),V(O?"match":"ganada"));const q=E==="match"&&!O?"ganada":E,P=s.useMemo(()=>[...O?[{value:"match",label:b("wordSearch.sort.match",{defaultValue:"\uC2DC\uC791 \uC6B0\uC120"})}]:[],{value:"ganada",label:b("wordSearch.sort.ganada",{defaultValue:"\uAC00\uB098\uB2E4\uC21C \u2191"})},{value:"ganada_desc",label:b("wordSearch.sort.ganadaDesc",{defaultValue:"\uAC00\uB098\uB2E4\uC21C \u2193"})},{value:"syllable",label:b("wordSearch.sort.syllable",{defaultValue:"\uC74C\uC808 \uC218 \u2191"})},{value:"syllable_desc",label:b("wordSearch.sort.syllableDesc",{defaultValue:"\uC74C\uC808 \uC218 \u2193"})},{value:"grade",label:b("wordSearch.sort.grade",{defaultValue:"\uB4F1\uAE09\uC21C \u2191"})},{value:"grade_desc",label:b("wordSearch.sort.gradeDesc",{defaultValue:"\uB4F1\uAE09\uC21C \u2193"})}],[b,O]),M=s.useMemo(()=>["10","25","50","100"].map(de=>({value:de,label:b("wordSearch.pageSize",{count:Number(de),defaultValue:`${de}\uAC1C\uC529 \uBCF4\uAE30`})})),[b]),L=de=>de.words[0],z=s.useMemo(()=>{const de=[...I].length,ye=h0(I),_e=new Map;return Q=>{let te=_e.get(Q);return te===void 0&&(te=ye((Q.words[0]?.label??"").slice(0,de))?0:1,_e.set(Q,te)),te}},[I]),$=s.useCallback((de,ye)=>{const _e=we=>L(we)?.label??"",Q=we=>L(we)?.syllables??[..._e(we)].length,te=we=>{const Se=parseInt(L(we)?.grade??"",10);return Number.isFinite(Se)?Se:999};switch(q){case"match":return z(de)-z(ye)||s5.compare(_e(de),_e(ye));case"ganada":return _e(de).localeCompare(_e(ye),"ko");case"ganada_desc":return _e(ye).localeCompare(_e(de),"ko");case"syllable":return Q(de)-Q(ye)||_e(de).localeCompare(_e(ye),"ko");case"syllable_desc":return Q(ye)-Q(de)||_e(de).localeCompare(_e(ye),"ko");case"grade":return te(de)-te(ye)||_e(de).localeCompare(_e(ye),"ko");case"grade_desc":return te(ye)-te(de)||_e(de).localeCompare(_e(ye),"ko");default:return 0}},[q,z]),T=s.useMemo(()=>o.slice().sort($),[o,$]),F=Number(j)||10,oe=s.useMemo(()=>(i??[]).flatMap(de=>de.items.slice().sort($).map(ye=>({item:ye,label:de.label}))),[i,$]),ae=i?oe.length:T.length,ee=Math.max(1,Math.ceil(ae/F)),se=Math.min(R,ee),Ce=s.useMemo(()=>T.slice((se-1)*F,se*F),[T,se,F]),Z=s.useMemo(()=>{if(!i)return null;const de=oe.slice((se-1)*F,se*F),ye=new Map;for(const{item:_e,label:Q}of de)ye.has(Q)||ye.set(Q,[]),ye.get(Q).push(_e);return[...ye.entries()].map(([_e,Q])=>({label:_e,items:Q}))},[i,oe,se,F]);s.useEffect(()=>{H(1)},[E,j,ae,r]);const ie=ae>0?t.jsxs("div",{className:"word-search-result-block__toolbar",children:[t.jsx(en,{size:40,options:P,value:q,onChange:V,ariaLabel:b("wordSearch.sort.aria",{defaultValue:"\uC815\uB82C"})}),t.jsx(en,{size:40,options:M,value:j,onChange:Y,ariaLabel:b("wordSearch.pageSizeAria",{defaultValue:"\uD398\uC774\uC9C0 \uD06C\uAE30"})}),t.jsx(La,{page:se,totalPages:ee,onChange:H})]}):void 0,J=de=>{c&&c(de)},be=n!==void 0&&a?t.jsxs(t.Fragment,{children:[b("wordSearch.resultTitlePrefix","\uCD1D "),t.jsx("span",{style:{color:"var(--color-main)"},children:n}),b("wordSearch.resultTitleSuffix",{unit:_?w0(a):a})]}):void 0,ve=n!==void 0&&n>0&&u!==void 0&&a?b("wordSearch.resultDisc",{unit:_?A0(a):a,max:u,selected:l.length}):void 0,Te=f??(v?t.jsxs(t.Fragment,{children:[t.jsx("span",{className:"word-search-result-block__notice",children:v}),ve?t.jsx("span",{className:"word-search-result-block__disc",children:ve}):null]}):ve);return t.jsxs(Kn,{type:y,icon:e,title:be,action:ie,disc:Te,className:ge("word-search-result-block",h),children:[t.jsxs("div",{className:"word-search-result-block__inner",children:[(i?i.length===0:o.length===0)&&t.jsxs("div",{className:"word-search-result-block__empty-wrap",children:[t.jsx("p",{className:"word-search-result-block__empty body-3",children:b("wordSearch.emptyResult","\uAC80\uC0C9 \uACB0\uACFC\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4.")}),C&&t.jsx("p",{className:"word-search-result-block__empty-hint body-3",children:C})]}),i?(Z??[]).map(de=>t.jsx("div",{className:"word-search-result-block__group",children:t.jsx("div",{className:"word-search-result-block__items",children:de.items.map(ye=>{const _e=l.includes(ye.id);return t.jsx("div",{onMouseEnter:Q=>{A(Q.currentTarget),B(ye.words)},onMouseLeave:k,children:t.jsx(ce,{htmlType:"button",size:"word",align:"grid",label:ye.words.map(Q=>Q.label),subLabel:ye.words.map(Q=>Q.subLabel).filter(Boolean).length>0?ye.words.map(Q=>Q.subLabel):void 0,selected:_e,onClick:()=>J(ye.id),minWidth:200})},ye.id)})})},de.label)):t.jsx("div",{className:"word-search-result-block__items",children:Ce.map(de=>{const ye=l.includes(de.id);return t.jsx("div",{onMouseEnter:_e=>{A(_e.currentTarget),B(de.words)},onMouseLeave:k,children:t.jsx(ce,{htmlType:"button",size:"word",align:"grid",label:de.words.map(_e=>_e.label),subLabel:de.words.map(_e=>_e.subLabel).filter(Boolean).length>0?de.words.map(_e=>_e.subLabel):void 0,selected:ye,onClick:()=>J(de.id),minWidth:200})},de.id)})}),D&&g&&t.jsx(Dc,{words:D,anchorRect:g})]}),ee>1&&t.jsx("div",{className:"word-search-result-block__pagination-bottom",children:t.jsx(La,{page:se,totalPages:ee,onChange:H})}),(d||p)&&t.jsxs("div",{className:"word-search-result-block__actions",children:[d&&t.jsx(ce,{htmlType:"button",size:"56",type:"bar",label:b("common.resetSelection","\uC120\uD0DD \uCD08\uAE30\uD654"),selected:!1,disabled:l.length===0,onClick:l.length===0?void 0:d}),p&&t.jsx("div",{onClick:l.length===0?m:void 0,children:t.jsx(ce,{htmlType:"button",size:"56",type:"bar",variant:"main",label:b("wordTable.title","\uB2E8\uC5B4 \uD45C \uB9CC\uB4E4\uAE30"),disabled:l.length===0,onClick:l.length===0?void 0:p})})]})]})}function l5(e,n){return n.map(a=>{const r=typeof a=="string"?a:a.label,o=typeof a=="string"?void 0:a.displayLabel;return{label:r,value:e[r]??"",displayLabel:o}})}function c5({sections:e,selectedList:n,count:a,onCountChange:r,maxCount:o=4,minCount:i=1,combinationSections:l,combinationSectionsForSlot:c,onSelect:u,placeholder:d="-",className:p,title:m,titleIcon:h,disc:C,showInfoButton:y=!1,onClearPhoneme:f,onSearch:v,onSearchEmpty:b,searchDisabled:x=!1,searchLabel:_,searchChecking:g=!1,pairMode:A=!1,sectionType:w="page",beforeSearchContent:D,beforeContent:B,afterContent:k,hideCountControl:N=!1,ordinal:I=!1}){const{t:O}=pe.useTranslation(),E=s.useMemo(()=>O("wordPairs.infoNotes",{returnObjects:!0}),[O]),V=s.useMemo(()=>Array.from({length:o-i+1},($,T)=>{const F=i+T;return{key:String(F),label:O("wordPairs.count",{n:F})}}),[O,o,i]),j=s.useMemo(()=>O("wordPairs.ordinals",{returnObjects:!0}),[O]),Y=s.useCallback($=>I?O("wordPairs.phonemeOrdinalLabel",{ordinal:j[$-1]??$}):a===1?O("wordPairs.phonemeSingleLabel","\uC74C\uC808"):O("wordPairs.phonemeN",{n:$}),[I,j,a,O]),R=s.useCallback($=>I?O("wordPairs.phonemeContrastOrdinalLabel",{ordinal:j[$-1]??$}):a===1?O("wordPairs.phonemeContrastSingleLabel","\uB300\uB9BD \uC74C\uC808"):O("wordPairs.phonemeContrast",{n:$}),[I,j,a,O]),H=s.useCallback(($,T)=>T?t.jsxs(t.Fragment,{children:[$,t.jsx("span",{className:"phoneme-select-block__required",children:"*"})]}):$,[]),{anchorRect:W,toggleAt:le,close:q}=Ea(),P=s.useCallback($=>r(Number($)),[r]),M=rn("(max-width: 767px)"),L=s.useCallback($=>l5($,e).map(({label:T,value:F,displayLabel:oe})=>{const ae=!!F&&F!=="\uC5C6\uC74C";return t.jsxs("span",{className:ge("phoneme-select-block__cell-jamo-part",F?"":"phoneme-select-block__cell-jamo-part--empty",ae?"":"phoneme-select-block__cell-jamo-part--no-label"),children:[t.jsx("span",{className:`phoneme-select-block__cell-jamo-char h1${F==="\uC5C6\uC74C"?" phoneme-select-block__cell-jamo-char--excluded":""}`,children:F==="\uC5C6\uC74C"?"x":F||d}),ae&&t.jsx("span",{className:"phoneme-select-block__cell-jamo-label caption-2",children:oe??T})]},T)}),[e,d]),z=t.jsxs(t.Fragment,{children:[t.jsx("div",{"data-tooltip-ignore":!0,children:t.jsx(ce,{htmlType:"button",size:40,type:M?"dot":void 0,icon:"info",label:M?void 0:O("wordPairs.caution","\uC720\uC758\uC0AC\uD56D"),ariaLabel:O("wordPairs.caution","\uC720\uC758\uC0AC\uD56D"),selected:!!W,onClick:$=>le($.currentTarget)})}),W&&t.jsx(Rn,{title:O("wordPairs.caution","\uC720\uC758\uC0AC\uD56D"),items:E,anchorRect:W,onClose:q})]});return t.jsxs(Kn,{type:w,title:m,icon:h,disc:C,action:z,className:ge("phoneme-select-block",p),children:[B,(!N||y&&!(m||C))&&t.jsxs("div",{className:"phoneme-select-block__controls",children:[!N&&t.jsx(On,{options:V,value:String(a),onChange:P,size:40,className:"phoneme-select-block__count-control"}),y&&!(m||C)&&z]}),t.jsx("div",{className:"phoneme-select-block__cells",children:A?t.jsxs(t.Fragment,{children:[t.jsx("div",{className:"phoneme-select-block__cell-group",children:Array.from({length:a}).map(($,T)=>{const F=n[T*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:L(F)})}),t.jsx("span",{className:"phoneme-select-block__cell-index caption-1",children:Y(T+1)})]},T)})}),t.jsx("span",{className:"phoneme-select-block__cell-vs h3",children:O("wordPairs.phonemeSelect.vs","\uB300")}),t.jsx("div",{className:"phoneme-select-block__cell-group",children:Array.from({length:a}).map(($,T)=>{const F=n[T*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:L(F)})}),t.jsx("span",{className:"phoneme-select-block__cell-index caption-1",children:R(T+1)})]},T)})})]}):n.map(($,T)=>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:L($)})}),t.jsx("span",{className:"phoneme-select-block__cell-index caption-1",children:Y(T+1)})]},T))}),(l||c)&&t.jsx("div",{className:"phoneme-select-block__panels",children:t.jsx("div",{className:"phoneme-select-block__detail",children:A?t.jsxs("div",{className:"phoneme-select-block__pair-panels",children:[t.jsx("div",{className:"phoneme-select-block__panel-group",children:Array.from({length:a}).map(($,T)=>{const F=n[T*2]??{};return t.jsx(bn,{title:H(Y(T+1),T===0),sections:c?c(F,T*2):l,selected:F,onSelect:u?.(T*2),align:"newline"},T)})}),t.jsx("div",{className:"phoneme-select-block__panel-group",children:Array.from({length:a}).map(($,T)=>{const F=n[T*2+1]??{};return t.jsx(bn,{title:R(T+1),sections:c?c(F,T*2+1):l,selected:F,onSelect:u?.(T*2+1),align:"newline"},T)})})]}):n.map(($,T)=>t.jsx(bn,{title:H(Y(T+1),T===0),sections:c?c($,T):l,selected:$,onSelect:u?.(T),align:"newline"},T))})}),D&&t.jsx("div",{className:"phoneme-select-block__before-search",children:D}),(f||v||g)&&(()=>{const $=n.every(T=>Object.entries(T).every(([F,oe])=>!oe||F==="\uC885\uC131"&&oe==="\uC5C6\uC74C"));return t.jsxs("div",{className:"phoneme-select-block__search-row",onClick:$?b:void 0,children:[f&&t.jsx(ce,{htmlType:"button",size:"56",type:"bar",label:O("wordPairs.resetOptions","\uAC80\uC0C9 \uC635\uC158 \uCD08\uAE30\uD654"),selected:!1,disabled:$,onClick:$?void 0:f}),g?t.jsxs("div",{className:"phoneme-select-block__checking",children:[t.jsx("div",{className:"phoneme-select-block__spinner"}),t.jsx("span",{className:"button-1 phoneme-select-block__checking-label",children:_??O("wordSearch.searchButton","\uAC80\uC0C9\uD558\uAE30")})]}):v&&t.jsx(ce,{htmlType:"button",size:"56",type:"bar",variant:"main",label:_??O("wordSearch.searchButton","\uAC80\uC0C9\uD558\uAE30"),disabled:$||x,onClick:$||x?void 0:v})]})})(),k]})}function u5({title:e,sections:n,selected:a,onSelect:r,className:o}){const{t:i}=pe.useTranslation();return t.jsx(bn,{className:o,title:e??i("wordSearch.filterTitle","\uB2E8\uC5B4 \uAC80\uC0C9 \uC124\uC815"),sections:n,selected:a,onSelect:r,align:"inline"})}function d5({title:e,headerAction:n,sections:a,selected:r,onSelect:o,className:i}){const{t:l}=pe.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:o,align:"newline"})}function p5({title:e,mode:n,onModeChange:a,matchMode:r,onMatchModeChange:o,positionCount:i,onPositionCountChange:l,inputMode:c,onInputModeChange:u,className:d}){const{t:p}=pe.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=v=>p("wordPairs.count",{n:v}),C=[{label:m.searchMode,items:[m.include,m.pick,m.explicit],display:"segmented",labelAction:t.jsx(ha,{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(ha,{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(ha,{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},f=(v,b)=>{b===m.searchMode?a(v===m.explicit?"explicit":v===m.pick?"pick":"include"):b===m.phonemeOrder?o(v===m.orderMatch?"ordered":"unordered"):b===m.count?l(v===h(2)?2:1):b===m.inputMode&&u(v===m.pronInput?"phoneme":"word")};return t.jsx(bn,{className:d,title:e??p("wordPairs.filter.searchOptionsTitle","\uB300\uB9BD \uC124\uC815"),sections:C,selected:y,onSelect:f,align:"inline"})}function m5(e){const{title:n,items:a,columns:r,gridTemplateColumns:o,searchPlaceholder:i,searchFn:l,defaultSortKey:c,defaultSortAsc:u=!0,selectedId:d,selectedIds:p,onSelect:m,onClose:h,pageSizeOptions:C=[10,25,50,100],initialPageSize:y,emptyText:f,countLabel:v,topContent:b,className:x=""}=e,{t:_}=pe.useTranslation(),g=i??_("common.search","\uAC80\uC0C9"),A=f??_("common.emptyList","\uD56D\uBAA9\uC774 \uC5C6\uC2B5\uB2C8\uB2E4."),[w,D]=s.useState(""),[B,k]=s.useState(c??r[0]?.key??""),[N,I]=s.useState(u),[O,E]=s.useState(String(y??C[0]??10)),[V,j]=s.useState(1);s.useEffect(()=>{j(1)},[w,O]);const Y=l!==null,R=s.useCallback((T,F)=>{if(!F)return!0;const oe=F.toLowerCase();return r.some(ae=>{const ee=T[ae.key];return ee==null?!1:String(ee).toLowerCase().includes(oe)})},[r]),H=l??R,W=s.useMemo(()=>{const T=Y?a.filter(F=>H(F,w)):a;return B?[...T].sort((F,oe)=>{const ae=F[B]??"",ee=oe[B]??"";if(ae===ee)return 0;const se=Ib(ae,ee);return N?se:-se}):T},[a,w,B,N,Y,H]),le=Math.max(1,Math.ceil(W.length/Number(O)));V>le&&j(le);const q=Math.min(V,le),P=W.slice((q-1)*Number(O),q*Number(O)),M=s.useCallback(T=>{B===T?I(F=>!F):(k(T),I(!0)),j(1)},[B]),L=s.useMemo(()=>{if(typeof v=="function"){const T=W.length,F=v(T);if(typeof F=="string"){const oe=F.lastIndexOf(String(T));if(oe>=0)return{prefix:F.slice(0,oe),suffix:F.slice(oe+String(T).length)}}return{label:F}}if(typeof v=="string"&&v.includes("{n}")){const[T,F]=v.split("{n}");return{prefix:T,suffix:F}}return{prefix:_("common.totalCountPrefix","\uCD1D "),suffix:_("common.totalCountSuffix","\uAC1C")}},[v,W.length,_]),z=s.useMemo(()=>r.map(T=>({label:T.label,onClick:T.sortable!==!1?()=>M(T.key):void 0,className:T.className,sortDir:T.sortable!==!1&&B===T.key?N?"asc":"desc":null})),[r,B,N,M]),$=s.useMemo(()=>C.map(T=>({value:String(T),label:_("common.pageSizeLabel",{n:T})})),[C,_]);return t.jsxs(Nn,{className:`popup-list ${x}`,title:n,onClose:h,children:[b,"label"in L&&t.jsx("p",{className:"toolbar__count body-1",children:L.label}),t.jsx($r,{count:"label"in L?void 0:{value:W.length,prefix:L.prefix,suffix:L.suffix},search:Y?{value:w,onChange:D,placeholder:g}:void 0,pageSize:{options:$,value:O,onChange:E},pagination:{page:q,total:le,onChange:j}}),t.jsx(Hr,{size:"medium",gridTemplateColumns:o,resizable:!0,fields:z,items:P,onRowClick:m,renderRow:T=>{const F=p!=null?T.id!=null&&p.has(T.id):d!=null&&T.id===d;return r.map(oe=>({content:oe.render?oe.render(T):T[oe.key]??"",className:ge(oe.className,F&&"popup-list__row--selected")}))},empty:A})]})}function h5(e){const{title:n,message:a,topContent:r,details:o,children:i,confirmLabel:l,cancelLabel:c,hideCancel:u=!1,extraAction:d,confirmVariant:p="main",confirmDisabled:m=!1,onConfirm:h,closeOnConfirm:C=!0,onClose:y,inline:f,size:v="small",className:b}=e,{t:x}=pe.useTranslation(),_=s.useRef(!1),[g,A]=s.useState(!1),w=B=>{let k=!1;return{close:()=>{k=!0,B()},\uB2EB\uC558\uB098:()=>k}},D=async B=>{if(_.current)return;_.current=!0;const k=typeof document<"u"?document.activeElement:null;A(!0);let N=!1;try{N=await B()}catch(I){typeof console<"u"&&console.error(I)}finally{N||(_.current=!1,A(!1),requestAnimationFrame(()=>{const I=document.activeElement;(!I||I===document.body)&&k?.isConnected&&k.focus()}))}};return t.jsxs(Nn,{title:n,onClose:y,closeDisabled:g,inline:f,size:v,className:ge("confirm-popup",b),buttons:[...d?[{label:d.label,variant:d.variant??"default",disabled:d.disabled||g,onClick:async({closeWithAnimation:B})=>{await D(async()=>{const k=w(B);await d.onClick(k.close);const N=d.closeOnClick??!0;return N&&B(),N||k.\uB2EB\uC558\uB098()})}}]:[],...u?[]:[{label:c??x("common.cancel","\uCDE8\uC18C"),variant:"default",disabled:g,onClick:({closeWithAnimation:B})=>B()}],{label:l??x("common.confirm","\uD655\uC778"),variant:p,disabled:m||g,onClick:async({closeWithAnimation:B})=>{await D(async()=>{const k=w(B);return await h(k.close),C&&B(),C||k.\uB2EB\uC558\uB098()})}}],children:[r!=null&&t.jsx("div",{className:"confirm-popup__top",children:r}),o&&o.length>0&&t.jsx(Ka,{children:o.map((B,k)=>t.jsx(Bn,{label:B.label,children:t.jsx("span",{className:"panel-row__text body-2",children:B.value})},k))}),t.jsx("p",{className:"body-2 confirm-popup__message",children:a}),i]})}function f5({onApply:e,onCancel:n}){const{t:a}=pe.useTranslation(),[r,o]=s.useState(""),[i,l]=s.useState(!1),[c,u]=s.useState(null),d=s.useRef(null);s.useEffect(()=>{d.current?.focus()},[]);const p=s.useCallback(async C=>{const y=r.trim();if(y){l(!0),u(null);try{await e(y),C()}catch(f){u(Bs(f)),l(!1),requestAnimationFrame(()=>d.current?.focus())}}},[r,e]),m=s.useCallback((C,y)=>{C.key==="Enter"&&!C.nativeEvent.isComposing&&p(y)},[p]),h=C=>{o(C.target.value),u(null)};return t.jsx(Nn,{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:C})=>C()},{label:a("coupons.applyButton","\uC801\uC6A9"),variant:"main",disabled:!r.trim()||i,onClick:({closeWithAnimation:C})=>{p(C)}}],children:({closeWithAnimation:C})=>t.jsxs(t.Fragment,{children:[t.jsx("input",{ref:d,className:"coupon-input-popup__input body-2","aria-label":a("coupons.input.label","\uCFE0\uD3F0 \uCF54\uB4DC"),placeholder:a("coupons.input.placeholder","\uCFE0\uD3F0 \uCF54\uB4DC \uC785\uB825"),value:r,onChange:h,onKeyDown:y=>m(y,C),disabled:i,autoComplete:"off",spellCheck:!1}),c&&t.jsx("p",{className:"coupon-input-popup__error caption-1",role:"alert",children:c})]})})}const C5=200;function g5(e){return e.itemId?(q0()[e.trainingType]??[]).find(n=>n?.id!=null&&String(n.id)===String(e.itemId))??null:null}function b5({plan:e,anchorRect:n,offset:a=12,onClose:r}){const{t:o}=pe.useTranslation(),i=s.useMemo(()=>G0(o).map(c=>({type:c,items:(e.items??[]).filter(u=>u.trainingType===c.key)})).filter(c=>c.items.length>0),[e.items,o]);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:u},d)=>[d>0?t.jsx("div",{className:"tooltip-training__divider"},`div-${c.key}`):null,t.jsxs("div",{className:"tooltip-training__section",children:[t.jsx("div",{className:"tooltip-training__section-header",children:t.jsx("span",{className:"tooltip-training__type-label body-3b",children:c.label})}),t.jsx("div",{className:"tooltip-training__items",children:u.map((p,m)=>{const h=g5(p);return h?t.jsx(Wr,{index:m,type:c,trainingData:h,size:"compact",hideCheckBadge:!0},p.itemId??m):null})})]},c.key)])})});return n?t.jsx(wn,{anchorRect:n,offset:a,onClose:r,closeOnOutsideClick:!1,className:"tooltip-training",ariaLabel:o("tooltip.training","\uD6C8\uB828 \uC548\uB0B4"),children:l}):l}const Sc=["var(--color-main)","var(--color-sub)"],y5=2e3;function v5(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 jc({active:e=!1,count:n=40,duration:a=2e3,strength:r=1,onComplete:o,trigger:i=0}){const l=s.useMemo(()=>{const f=Math.floor(n/2),v=n-f,b=(x,_)=>Array.from({length:x}).map((g,A)=>{const w=6+Math.random()*12,D=Math.round(Math.min(18,w*Math.min(1.5,1+r*.4))),B=Sc[Math.floor(Math.random()*Sc.length)],k=Math.random()*300,N=(360+Math.random()*260)*r*1.2,I=(_==="left"?-95+Math.random()*40:-85-Math.random()*40)*Math.PI/180,O=Math.cos(I)*N,E=Math.sin(I)*N*1.35,V=Math.random()*720-360,j=(1200+Math.random()*3e3)*Math.min(1.6,1+r*.3),Y=Math.random()>.7?"50%":"3px";return{id:`${_}-${A}`,side:_,size:D,color:B,delay:k,vx:O,vy:E,angularVel:V,life:j,borderRadius:Y}});return[...b(f,"left"),...b(v,"right")]},[n,r]),c=s.useRef(null),u=s.useRef({}),d=s.useRef(null),p=s.useRef(o);s.useEffect(()=>{p.current=o},[o]);const m=s.useRef(null),h=s.useRef(null),C=()=>{if(typeof document>"u")return null;let f=document.querySelector("[data-ihab-effect-root]");return f||(f=document.createElement("div"),f.className="app-effect",f.dataset.ihabEffectRoot="",f.style.position="fixed",f.style.inset="0",f.style.pointerEvents="none",f.style.zIndex="99998",document.body.appendChild(f)),f};if(typeof document<"u"&&h.current==null&&(h.current=C()),s.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 f=1200,v=performance.now(),b=h.current&&h.current!==document.body?h.current.getBoundingClientRect():null,x=Math.max(60,(window.innerHeight||800)*.05),_=q=>Math.max(40,(q||window.innerWidth)*.02),g=b?.width||window.innerWidth||375,A=b?.height||window.innerHeight||812,w=q=>{const P=[...q].sort((M,L)=>M-L);return P[Math.floor(P.length/2)]||1},D=w(l.map(q=>Math.abs(q.vy))),B=w(l.map(q=>Math.abs(q.vx))),k=Math.sqrt(2*f*(A*.72+x))/D,N=D*k/f,I=g*.5/(B*N),O=(q,P,M)=>Math.min(M,Math.max(P,q)),E=O(k,.8,2.4),V=O(I,.7,2.2),j=a>0?a/y5:1,Y=l.map(q=>({...q,life:q.life*j,vx:q.vx*V,vy:q.vy*E,startTime:v+q.delay,ended:!1})),R=b?{x:b.left-_(b.width),y:b.top+b.height+x}:{x:-_(window.innerWidth),y:window.innerHeight+x},H=b?{x:b.left+b.width+_(b.width),y:b.top+b.height+x}:{x:window.innerWidth+_(window.innerWidth),y:window.innerHeight+x},W=q=>{let P=!1;for(const M of Y){const L=u.current[M.id];if(!L||!L)continue;if(q<M.startTime){L.style.display="none",P=!0;continue}if(!M._inited){const Z=M.side==="left"?R.x:H.x,ie=M.side==="left"?R.y:H.y;L.style.left=`${Z}px`,L.style.top=`${ie}px`,L.style.transform="translate3d(0px, 0px, 0)",L.style.display="block",L.style.zIndex="100000",typeof M.color=="string"&&M.color.startsWith("var(")&&(L.style.background=v5(L,M.color)??"#FF0060"),M._inited=!0}const z=(q-M.startTime)/1e3;if(z<0)continue;const $=M.life/1e3;if(z>=$){L.style.opacity="0",L.style.display="none",M.ended=!0;continue}P=!0;const T=M.side==="left"?R.x:H.x,F=M.side==="left"?R.y:H.y,oe=T+M.vx*z,ae=F+M.vy*z+.5*f*z*z,ee=(M.angularVel||0)*z,se=oe-T,Ce=ae-F;L.style.transform=`translate3d(${se}px, ${Ce}px, 0) rotate(${ee}deg)`,L.style.opacity=`${Math.max(0,1-z/$)}`}P?d.current=requestAnimationFrame(W):p.current?.()};d.current=requestAnimationFrame(W);const le=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 P of l){const M=document.createElement("span");M.className=`confetti confetti--${P.side}`,M.setAttribute("aria-hidden","true"),M.style.display="none",M.style.position="fixed",M.style.left="0px",M.style.top="0px",M.style.width=`${P.size}px`,M.style.height=`${Math.max(4,P.size*.6)}px`,M.style.background=P.color,M.style.borderRadius=P.borderRadius,M.style.transform="translate3d(0,0,0)",M.style.opacity="0",q.appendChild(M),u.current[P.id]=M}(document.body||h.current).appendChild(q),m.current=q}}catch{}},300);return()=>{if(d.current&&cancelAnimationFrame(d.current),clearTimeout(le),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(f=>t.jsx("span",{"aria-hidden":!0,ref:v=>{u.current[f.id]=v},className:`confetti confetti--${f.side}`,style:{width:`${f.size}px`,height:`${Math.max(4,f.size*.6)}px`,background:f.color,borderRadius:f.borderRadius}},`${f.id}-${i}`))});return typeof document<"u"?Ut.createPortal(y,h.current||document.body):y}function x5({trigger:e=0,active:n=!1}){const a=s.useRef(0);return s.useEffect(()=>{a.current=e},[e]),t.jsx(jc,{active:n,trigger:e})}function _5({title:e,sub:n,rightAction:a,titleAction:r,badge:o,badgeVariant:i="default",documentTitle:l,onBack:c,backLabel:u,wrap:d=!1}){const{t:p}=pe.useTranslation();c2(typeof e=="string"?e:l??null);const m=u??p("common.back","\uB4A4\uB85C");return t.jsxs("div",{className:d?"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}),o&&t.jsx("div",{className:"page-title__badge",children:t.jsx(ut,{label:o,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 w5(e){return e??""}const Tc=s.createContext({words:[],loading:!1});function k5(){return s.useContext(Tc)}function A5({words:e,loading:n,error:a,statusMessage:r,localVersion:o,remoteVersion:i,progress:l,clearAndRefetch:c,checkRemoteVersion:u,children:d}){return t.jsx(Tc.Provider,{value:{words:e,loading:n,error:a,statusMessage:r,localVersion:o,remoteVersion:i,progress:l,clearAndRefetch:c,checkRemoteVersion:u},children:d})}function N5({items:e,actions:n,columns:a,flat:r=!1,className:o,style:i}){const l=a??e.length;return t.jsx("section",{className:ge("summary-strip",r&&"summary-strip--flat",o),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,u)=>t.jsxs("div",{className:"summary-strip__item",children:[t.jsx("p",{className:"summary-strip__label caption-1",children:c.label}),t.jsx("p",{className:"summary-strip__value body-3b",children:c.value})]},u))}),n&&t.jsx("div",{className:"summary-strip__actions",children:n})]})})}const B5=(e,n)=>`${e} / ${n}`;function D5({blocks:e,sectionTitles:n,logo:a,footer:r,pageLabel:o=B5,pageWidth:i,pageHeight:l,margin:c,className:u,style:d}){const{t:p}=pe.useTranslation(),m=s.useRef(null),h=s.useRef(null),C=s.useRef(null),y=s.useRef(null),[f,v]=s.useState(null),[b,x]=s.useState(!1);s.useEffect(()=>{const E=m.current;if(!E)return;const V=()=>x(E.scrollWidth>E.clientWidth+1);if(V(),typeof ResizeObserver>"u")return;const j=new ResizeObserver(V);return j.observe(E),()=>j.disconnect()},[f]);const _=e.map(E=>`${E.id}\0${E.section??""}\0${E.group??""}`).join(""),g=f&&f.shape===_?f.pages:null,[A,w]=s.useState(0);s.useEffect(()=>{const E=y.current;if(!E||typeof ResizeObserver>"u")return;const V=new ResizeObserver(()=>w(E.offsetHeight));return V.observe(E),()=>V.disconnect()},[]),s.useLayoutEffect(()=>{const E=h.current,V=y.current;if(!E||!V)return;const j=L=>L.getBoundingClientRect().height||L.offsetHeight,Y=new Map;C.current?.querySelectorAll("[data-chrome-section]").forEach(L=>{Y.set(L.dataset.chromeSection??"",j(L))});const R=L=>j(V)-(Y.get(L??"")??0),H=Array.from(E.children).map(L=>j(L)),W=[];e.forEach((L,z)=>{const $=W[W.length-1],T=$?e[$[0]]:void 0;T&&L.group!=null&&T.group===L.group&&T.section===L.section?$.push(z):W.push([z])});const le=[];let q=[],P=0;const M=()=>{q.length&&le.push(q),q=[],P=0};W.forEach(L=>{const z=L.reduce((T,F)=>T+H[F],0),$=R(e[L[0]].section);q.length&&e[q[0]].section!==e[L[0]].section&&M(),q.length&&P+z>$+.01&&M(),z>$?L.forEach(T=>{q.length&&P+H[T]>$+.01&&M(),q.push(T),P+=H[T]}):(L.forEach(T=>q.push(T)),P+=z)}),M(),v({shape:_,pages:le})},[_,A,i,l,c]);const D=Tr,B=D,k=r??t.jsxs(t.Fragment,{children:[t.jsx("img",{src:B,alt:"IHAB",className:"report-doc__logo"}),"\xA9 IHAB, Inc. All rights reserved."]}),N=(E,V,j)=>({header:t.jsxs("div",{className:"report-doc__header",children:[t.jsx("h2",{className:"report-doc__title h3b",children:j!=null&&n?.[j]||null}),a]}),footer:t.jsxs("div",{className:"report-doc__footer caption-1",children:[t.jsx("span",{className:"report-doc__footer-left",children:k}),t.jsx("span",{className:"report-doc__page-no",children:o(E,V)})]})}),I=Array.from(new Set(e.map(E=>E.section??""))),O={...i?{"--report-page-w":i}:null,...l?{"--report-page-h":l}:null,...c?{"--report-margin":c}:null,...d};return t.jsxs("div",{ref:m,className:ge("report-doc",u),style:O,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:C,children:I.map(E=>{const V=N(1,1,E||void 0);return t.jsxs("div",{"data-chrome-section":E,children:[V.header,V.footer]},E)})}),t.jsx("div",{ref:h,className:"report-doc__measure-blocks",children:e.map(E=>t.jsx("div",{children:E.content},E.id))})]}),g&&t.jsx("div",{className:"report-doc__pages",children:g.map((E,V)=>{const{header:j,footer:Y}=N(V+1,g.length,e[E[0]].section);return t.jsxs("section",{className:"report-doc__page",children:[j,E.map(R=>t.jsx("div",{children:e[R].content},e[R].id)),Y]},V)})})]})}function S5({title:e,fields:n,columns:a=4,className:r,style:o}){return t.jsxs("div",{className:ge("report-info",r),style:{"--report-info-cols":String(a),...o},children:[e&&t.jsx("p",{className:"report-info__title h5b",children:e}),t.jsx("div",{className:"report-info__grid",children:n.map((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))})]})}function j5({title:e,message:n,actionLabel:a,onAction:r,icon:o,onClose:i,className:l=""}){const{t:c}=pe.useTranslation(),u=a??c("common.update","\uC5C5\uB370\uC774\uD2B8");return t.jsxs("div",{className:ge("update-alert",l),role:"alert",children:[i&&t.jsx("button",{type:"button",className:"update-alert__close",onClick: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:o??t.jsx(Lo,{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:u})]})}function T5({title:e,description:n,topActions:a,children:r,footerLeft:o,footerRight:i,onClick:l,draggable:c,onDragStart:u,onDragEnd:d,className:p}){const m=o!=null||i!=null,h=r!=null&&r!==!1,C=s.useCallback(y=>{l&&y.target===y.currentTarget&&(y.key==="Enter"||y.key===" ")&&(y.preventDefault(),l())},[l]);return t.jsxs("div",{className:ge("training-card",l?"training-card--clickable":"",p),onClick:l,onKeyDown:l?C:void 0,role:l?"button":void 0,tabIndex:l?0:void 0,draggable:c,onDragStart:u,onDragEnd:d,children:[t.jsxs("div",{className:"training-card__header",children:[t.jsxs("div",{className:"training-card__title-row",children:[typeof e=="string"?t.jsx("h3",{className:"training-card__title h4",children:e}):e,a!=null&&t.jsx("div",{className:"training-card__top-actions",onClick: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:[o!=null&&t.jsx("div",{className:"training-card__footer-left",children:o}),i!=null&&t.jsx("div",{className:"training-card__meta",children:i})]})]})}function E5({title:e,count:n,collapsed:a=!1,onToggle:r,sort:o,actions:i,empty:l=!1,emptyContent:c,dragOver:u=!1,onDragOver:d,onDragLeave:p,onDrop:m,children:h,className:C}){const{t:y}=pe.useTranslation(),f=r!=null,v=ge("training-card-group",u&&"training-card-group--dragover",a&&"training-card-group--collapsed",f&&"training-card-group--collapsible",C);return t.jsxs("div",{className:v,onDragOver:d,onDragLeave:p,onDrop:m,children:[t.jsxs("header",{className:"training-card-group__header",children:[f&&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}),(o||i!=null)&&t.jsxs("span",{className:"training-card-group__actions",onClick:b=>b.stopPropagation(),children:[o&&t.jsx(en,{size:40,options:o.options,value:o.value,placeholder:o.placeholder,onChange:o.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 M5="speechear:saved_word_tables";function L5(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 $5(){try{const e=localStorage.getItem(M5);if(!e)return[];const n=JSON.parse(e);return Array.isArray(n)?n.filter(L5):[]}catch{return[]}}function R5({title:e,titleIcon:n,disc:a,items:r,onSaveComplete:o,onLoad:i,onRemoveItem:l,onReset:c,resetLabel:u,saveButtonLabel:d,secondarySaveButtonLabel:p,onReorder:m,showCellCount:h,onAddItem:C,className:y,renderSavePopup:f,renderWordSearch:v,hideControls:b,saveOnly:x,tableName:_,nameValue:g,onNameChange:A,descriptionValue:w,onDescriptionChange:D,namePlaceholder:B,descriptionPlaceholder:k,existingNames:N,editingName:I,onCancel:O}){const{t:E}=pe.useTranslation(),V=u??E("wordPrint.clearAllSelection","\uBAA8\uB450 \uC120\uD0DD \uD574\uC81C"),j=r===void 0,Y=!!A,[R,H]=s.useState([]),W=(g??"").trim(),le=W||(B??"").trim(),q=(w??"").trim()||(k??"").trim(),P=(N??[]).map(G=>G.trim().toLowerCase()),M=[I?.trim().toLowerCase(),...R].filter(G=>!!G),L=[...P];for(const G of M){const ne=L.indexOf(G);ne!==-1&&L.splice(ne,1)}const z=W!==""&&L.includes(W.toLowerCase()),[$,T]=s.useState(Array(4).fill(null)),[F,oe]=s.useState(4),[ae,ee]=s.useState(null),[se,Ce]=s.useState("landscape"),[Z,ie]=s.useState(["\uC774\uBBF8\uC9C0","\uB2E8\uC5B4","\uD45C\uC900 \uBC1C\uC74C"]),[J,be]=s.useState("\uD45C\uC2DC"),[ve,Te]=s.useState(!0),[de,ye]=s.useState(!0),_e=s.useRef(null),Q=s.useRef([]),[te,we]=s.useState(8),[Se,ze]=s.useState("right"),[Me,Oe]=s.useState(!1),[Re,tt]=s.useState(!1),{toastMessage:Ye,toastType:Ke,showWarning:fe,clearToast:We}=ki("warning"),Ee=s.useCallback(()=>ee(null),[ee]);C&&!j&&!h&&ea("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[$e,He]=s.useState(()=>Math.max(r?.length??1,1));s.useEffect(()=>{j||He(G=>Math.max(G,r?.length??1))},[r?.length,j]);const Ue=j?F:h?Math.max($e,r?.length??1):Math.max(r?.length??0,1),{width:gt,height:dt}=Yn[se],st=!j&&!h,nt=r?.length??0,at=Math.min(te,Math.max(nt,1)),Fe=st?at:Ue,Qe=st?Sl(r??[],Fe):null,Xe=!!Qe&&Qe.length>1,rt=j?$.some(G=>G!==null&&G.length>1):(r??[]).some(G=>G.words.length>1),Pe=_?.trim()||`${Ms(Mn())} ${rt?E("wordTable.printFileNamePair","\uB300\uB9BD\uC30D\uD45C"):E("wordTable.printFileNameSingle","\uB2E8\uC5B4\uD45C")}`,Je=s.useCallback(()=>Xe?Q.current.filter(G=>G!==null):_e.current?[_e.current]:[],[Xe]),{print:yt,openNewWindow:Gt,downloadHtml:mt}=eo({getElements:Je,paperW:gt,paperH:dt,fileName:Pe,onPopupBlocked:()=>{fe(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."))}}),xt=G=>{oe(G),T(ne=>{const ke=Array(G).fill(null);return ne.slice(0,G).forEach((Ne,Be)=>{ke[Be]=Ne}),ke}),ee(null)},Ot=G=>{T(ne=>{const ke=[...ne];return ke[G]=null,ke}),ae===G&&ee(null)},Kt=G=>{if(ae===null)return;const ne=ae;T(Ne=>{const Be=[...Ne];return Be[ne]=G,Be});const ke=$.findIndex((Ne,Be)=>Be>ne&&Ne===null);ee(ke!==-1?ke:null)},_t=j?$.some(G=>G?.some(ne=>!!ne.colloquialPronunciation)):(r??[]).some(G=>G.words.some(ne=>!!ne.colloquialLabel)),lt=s.useMemo(()=>Wn()?j?$.flatMap(G=>(G??[]).map(ne=>[ne.word,ne.homonum])):(r??[]).flatMap(G=>G.words.map(ne=>[ne.label,ne.homonum])):[],[j,$,r]),[Yt,Pt]=s.useState(!1);s.useEffect(()=>{if(lt.length===0)return;let G=!1;return Promise.all(lt.map(([ne,ke])=>ws(ne,ke))).then(ne=>{G||Pt(ne.some(Boolean))},()=>{}),()=>{G=!0}},[lt]);const yn=lt.length>0&&Yt,Sn=s.useMemo(()=>[...j||h?[{label:E("wordTable.filter.columns","\uCE78 \uC218"),items:Nb.map(G=>({value:`${G}\uCE78`,displayLabel:E("wordTable.filter.column",{count:G})})),display:"segmented"}]:[],...st&&(r?.length??0)>0?[Hl(E,{hasPairs:rt,itemCount:nt})]:[],...Xe?[zl(E)]:[]],[E,j,h,st,r?.length,rt,nt,Xe]),et={...j||h?{[E("wordTable.filter.columns","\uCE78 \uC218")]:`${j?F:$e}\uCE78`}:{},...st&&(r?.length??0)>0?{[E(rt?"wordTable.filter.itemsPerPagePair":"wordTable.filter.itemsPerPageWord")]:`${at}\uAC1C`}:{},...Xe?{[E("wordTable.filter.pageNumber","\uD398\uC774\uC9C0 \uBC88\uD638")]:Wl[Se]}:{}},Vt=(G,ne)=>{if(ne===E("wordTable.filter.columns","\uCE78 \uC218"))j?xt(parseInt(G)):He(parseInt(G));else if(ne===E(rt?"wordTable.filter.itemsPerPagePair":"wordTable.filter.itemsPerPageWord")){const ke=parseInt(G);we(Zr.includes(ke)?ke:Number.POSITIVE_INFINITY)}else ne===E("wordTable.filter.pageNumber","\uD398\uC774\uC9C0 \uBC88\uD638")&&ze(ql(G))},wt=j?$.filter(G=>G!==null).map(G=>({id:G[0].word,words:G.map(ne=>({label:ne.word,subLabel:ne.pronunciation,homonum:ne.homonum}))})):r??[],Ht=(G=!1)=>{if(tt(G),Y&&o){const ne=le.trim().toLowerCase();ne&&H(ke=>ke.includes(ne)?ke:[...ke,ne]),o(le,wt,q||void 0,G);return}if(x&&o){o("",wt,void 0,G);return}if(o){Oe(!0);return}mt()},[zt,Wt]=s.useState(!1),[sn,ln]=s.useState(""),qt=sn.trim(),cn=qt!==""&&P.includes(qt.toLowerCase()),nn=()=>{ln(le?E("wordTable.save.copyName",{name:le,defaultValue:"{{name}} (\uBCF5\uC0AC)"}):""),Wt(!0)},ht=()=>{!qt||cn||!o||(o(qt,wt,q||void 0,!0),Wt(!1))},Zt=wt.length===0,Xt=Zt||Y&&(le===""||z),jt=()=>{if(Zt){fe(E("wordTable.emptyItems","\uB2E8\uC5B4\uB97C 1\uAC1C \uC774\uC0C1 \uCD94\uAC00\uD574\uC8FC\uC138\uC694."));return}if(Y&&le===""){fe(E("wordTable.save.nameRequired","\uD45C \uC774\uB984\uC744 \uC785\uB825\uD574 \uC8FC\uC138\uC694."));return}Y&&z&&fe(E("wordTable.save.duplicateName","\uC774\uBBF8 \uC0AC\uC6A9 \uC911\uC778 \uC774\uB984\uC785\uB2C8\uB2E4."))},re=t.jsx(Zn,{items:wt,orientation:se,contentTypes:Z,cutLine:J,showOutline:ve,showDivLine:de,count:Ue});return t.jsxs(t.Fragment,{children:[t.jsxs(Kn,{type:"page",icon:n,title:e,disc:a,className:ge("word-table-block",y),children:[zt&&t.jsx(Nn,{size:"small",title:p??E("wordTable.saveAsNewButton","\uB2E4\uB978 \uC774\uB984\uC73C\uB85C \uC800\uC7A5"),onClose:()=>Wt(!1),footer:({closeWithAnimation:G})=>t.jsxs(t.Fragment,{children:[t.jsx(ce,{htmlType:"button",size:48,type:"bar",label:E("common.cancel","\uCDE8\uC18C"),onClick:G}),t.jsx(ce,{htmlType:"button",size:48,type:"bar",variant:"main",label:E("common.save","\uC800\uC7A5"),disabled:!qt||cn,onClick:ht})]}),children:t.jsx(Fn,{label:E("wordTable.save.nameLabel","\uC774\uB984"),value:sn,onChange:ln,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:ht,error:cn?E("wordTable.save.duplicateName","\uC774\uBBF8 \uC0AC\uC6A9 \uC911\uC778 \uC774\uB984\uC785\uB2C8\uB2E4."):void 0})}),Me&&o&&f?.({defaultName:typeof e=="string"?e:E("wordTable.defaultName","\uB2E8\uC5B4 \uD45C"),preview:re,previewW:gt,previewH:dt,items:wt,existingNames:$5().map(G=>G.name),saveAsNew:Re,onSave:(G,ne)=>{o(G,wt,ne,Re),Oe(!1)},onCancel:()=>Oe(!1)}),(j||C)&&ae!==null&&v?.({cellIndex:ae,onConfirm:j?Kt:G=>{if(C){const ne=G[0];ne&&C({id:ne.word,words:[{label:ne.word,subLabel:ne.pronunciation,homonum:ne.homonum}]})}ee(null)},onClose:Ee}),!b&&t.jsx(Xr,{hasImage:yn,hasColloquial:_t,contentTypes:Z,orientation:se,showOutline:ve,cutLine:J,showDivLine:de,setters:{setContentTypes:ie,setOrientation:Ce,setShowOutline:Te,setCutLine:be,setShowDivLine:ye},showCutLine:(st?Fe:Ue)>1,showDivLine2:rt,middleSections:Sn,extraSelected:et,onExtraSelect:Vt}),Xe&&Qe?t.jsx("div",{className:"word-table-block__pages",children:Qe.map((G,ne)=>t.jsx(Zn,{orientation:se,contentTypes:Z,cutLine:J,showOutline:ve,showDivLine:de,count:Fe,items:G,onRemoveItem:l,onReorder:m&&((ke,Ne)=>m(ke+ne*Fe,Ne+ne*Fe)),contentRef:ke=>{Q.current[ne]=ke},pageNumber:{current:ne+1,total:Qe.length},pageNumberPosition:Se},ne))}):t.jsx(Zn,{orientation:se,contentTypes:Z,cutLine:J,showOutline:ve,showDivLine:de,count:Ue,items:j?void 0:r??[],editCells:j?$:void 0,activeCell:ae,onActivateCell:j||C?ee:void 0,onRemoveCell:j?Ot:void 0,onRemoveItem:j?void 0:l,onReorder:j?void 0:m,showFillerAdd:!!C,contentRef:_e}),Y&&!b&&t.jsxs(Ka,{size:"medium",labelWidth:64,useBorder:!1,useRowBorder:!1,className:"word-table-block__meta",children:[t.jsx(Bn,{variant:"custom",label:E("wordTable.save.nameLabel","\uC774\uB984"),required:!0,align:"vertical",useFullWidth:!0,children:t.jsx(Fn,{required:!0,value:g??"",onChange:A,placeholder:B?B+E("wordTable.save.autoFillHint"," (Tab \uB610\uB294 space \uC785\uB825\uC2DC \uC790\uB3D9 \uC785\uB825)"):E("wordTable.save.placeholder","\uC774 \uB2E8\uC5B4\uD45C\uC5D0 \uB300\uD55C \uC81C\uBAA9\uC744 \uC785\uB825\uD558\uC138\uC694."),ariaLabel:E("wordTable.save.nameLabel","\uC774\uB984"),maxLength:40,size:48,fullWidth:!0,error:z?E("wordTable.save.duplicateName","\uC774\uBBF8 \uC0AC\uC6A9 \uC911\uC778 \uC774\uB984\uC785\uB2C8\uB2E4."):void 0,onKeyDown:G=>{(G.key==="Tab"&&!G.shiftKey||G.key===" ")&&!(g??"").trim()&&(B??"").trim()&&(G.preventDefault(),A?.(B??""))}})}),t.jsx(Bn,{variant:"custom",label:E("wordTable.save.descriptionLabel","\uC124\uBA85"),align:"vertical",useFullWidth:!0,children:t.jsx(Fn,{value:w??"",onChange:D,placeholder:k?k+E("wordTable.save.autoFillHint"," (Tab \uB610\uB294 space \uC785\uB825\uC2DC \uC790\uB3D9 \uC785\uB825)"):E("wordTable.save.descriptionPlaceholder","\uC774 \uB2E8\uC5B4\uD45C\uC5D0 \uB300\uD55C \uC124\uBA85\uC744 \uC785\uB825\uD558\uC138\uC694."),ariaLabel:E("wordTable.save.descriptionLabel","\uC124\uBA85"),maxLength:200,multiline:!0,rows:2,fullWidth:!0,onKeyDown:G=>{(G.key==="Tab"&&!G.shiftKey||G.key===" ")&&!(w??"").trim()&&(k??"").trim()&&(G.preventDefault(),D?.(k??""))}})})]})]}),!b&&t.jsxs("div",{className:"word-table-block__actions",children:[t.jsxs("div",{className:"word-table-block__actions-left",children:[!x&&c&&t.jsx(ce,{htmlType:"button",size:40,type:"bar",label:V,onClick:c}),!x&&i&&t.jsx(ce,{htmlType:"button",size:40,type:"bar",label:E("wordTable.load","\uBD88\uB7EC\uC624\uAE30"),onClick:i}),!x&&t.jsx(ce,{htmlType:"button",size:40,type:"bar",label:E("wordTable.openNewWindow","\uC0C8 \uCC3D\uC73C\uB85C \uBCF4\uAE30"),onClick:Gt})]}),t.jsxs("div",{className:"word-table-block__actions-right",children:[O&&t.jsx(ce,{htmlType:"button",size:"56",type:"bar",label:E("common.cancel","\uCDE8\uC18C"),onClick:O}),!x&&t.jsx(ce,{htmlType:"button",size:"56",type:"bar",label:E("wordTable.print","\uC778\uC1C4\uD558\uAE30"),onClick:yt}),p&&t.jsx(ce,{htmlType:"button",size:"56",type:"bar",label:p,onClick:()=>Y?nn():Ht(!0),disabled:Zt,onDisabledClick:()=>{fe(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:d??E("wordTable.saveButton","\uC800\uC7A5\uD558\uAE30"),onClick:()=>Ht(!1),disabled:Xt,onDisabledClick:jt})]})]}),t.jsx(Gn,{message:Ye,type:Ke,onClose:We})]})}function Ec({items:e,className:n}){const a=e.length,r=a<=3?1:2,o=Math.ceil(a/r)||1,i=r*o;return t.jsx("div",{className:ge("word-table-thumb",n),style:{gridTemplateColumns:`repeat(${r}, 1fr)`},children:Array.from({length:i},(l,c)=>{const u=e[c];return u?t.jsx("div",{className:"word-table-thumb__cell",children:(u.words.length?u.words:[{label:u.id}]).map((d,p)=>t.jsxs(s.Fragment,{children:[p>0&&t.jsx("span",{className:"word-table-thumb__divider"}),t.jsx("span",{className:"word-table-thumb__word body-3",children:d.label})]},p))},c):t.jsx("div",{className:"word-table-thumb__cell word-table-thumb__cell--empty"},c)})})}function P5({items:e,name:n,description:a,createdAt:r,published:o,publishedLabel:i,shared:l,sharedLabel:c,isNew:u,publisherName:d,publishedAt:p,likeCount:m,downloadCount:h,onPublisherClick:C,selected:y,onClick:f,onMore:v,titleNode:b,className:x}){const{t:_}=pe.useTranslation(),g=b!=null,A=d!=null||p!=null||m!=null||h!=null,w=D=>{D.target===D.currentTarget&&!g&&(D.key==="Enter"||D.key===" ")&&(D.preventDefault(),f?.())};return t.jsxs("div",{className:ge("word-table-button",y?"word-table-button--selected":"",A?"":"word-table-button--no-footer",x),role:"button",tabIndex:0,"aria-label":n,onClick:g?void 0:f,onKeyDown:w,children:[u&&t.jsx("span",{className:"word-table-button__new-dot","aria-label":_("myWordTable.newBadge","\uC0C8\uB85C \uB9CC\uB4E0 \uD45C")}),t.jsx(Ec,{items:e,className:"word-table-button__thumb"}),t.jsxs("div",{className:"word-table-button__info",children:[t.jsxs("div",{className:"word-table-button__info-text",children:[b??t.jsx("div",{className:"word-table-button__title h4",children:n}),a&&t.jsx("div",{className:"word-table-button__desc body-3",children:a})]}),v&&!g&&t.jsx(ce,{htmlType:"button",className:"word-table-button__more",size:32,type:"dot",variant:"transparent-gray",useBorder:!1,icon:"ellipsis",ariaLabel:_("common.moreFor",{name:n}),onClick:D=>{D.stopPropagation(),v(D)}})]}),(r||o||l)&&t.jsxs("div",{className:"word-table-button__meta-row",children:[t.jsx("span",{className:"word-table-button__meta caption-1",children:r?Es(r,_):""}),t.jsxs("span",{className:"word-table-button__badges",children:[o&&t.jsx(ut,{className:"word-table-button__badge",size:"small",variant:"main",fill:"soft",iconLeft:"book-marked",label:i??_("myWordTable.publishedBadge","\uBC1C\uD589\uB428")}),l&&t.jsx(ut,{className:"word-table-button__badge",size:"small",fill:"soft",iconLeft:"link",label:c??_("myWordTable.sharedBadge","\uACF5\uC720 \uC911")})]})]}),A&&t.jsxs("div",{className:"word-table-button__footer",children:[t.jsxs("span",{className:"word-table-button__store-by",children:[d&&t.jsx("button",{className:"training-card__publisher body-4",type:"button",onClick:D=>{D.stopPropagation(),C?.()},children:d}),p&&t.jsx("span",{className:"training-card__date body-4",children:Es(p,_)})]}),t.jsxs("span",{className:"word-table-button__store-stats",children:[m!=null&&t.jsx(ut,{size:"small",fill:"soft",variant:"like",iconLeft:"heart",label:String(m)}),h!=null&&t.jsx(ut,{size:"small",fill:"soft",variant:"main",iconLeft:"download",label:String(h)})]})]})]})}/**
974
974
  * @license lucide-react v1.38.0 - ISC
975
975
  *
976
976
  * This source code is licensed under the ISC license.
@@ -980,4 +980,4 @@ ${g.badge}`:g.badge:void 0;if(w&&u(g.code))return null;if(!g.badge&&!p)return m(
980
980
  *
981
981
  * This source code is licensed under the ISC license.
982
982
  * See the LICENSE file in the root directory of this source tree.
983
- */const O5=[["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"}]],H5=K("circle-x",O5);function V5(e){return{idle:0,"word-download":1,"image-list":2,"image-match":2,"pair-build":3,done:4}[e]??0}function xo({icon:e,label:n,state:a,pct:r,subText:o}){const{t:i}=pe.useTranslation(),l=a==="done",c=a==="pending",u=a==="error",d=l?100:r??0;return t.jsxs("div",{className:"wdup-phase-card",children:[t.jsx("div",{className:`wdup-phase-card__icon${l?" wdup-phase-card__icon--done":u?" wdup-phase-card__icon--error":""}`,children:l?t.jsx(Po,{size:22,color:"white",strokeWidth:2.5}):u?t.jsx(H5,{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(ut,{variant:"sub",fill:"soft",size:"small",label:i("common.done","\uC644\uB8CC")}):u?t.jsx(ut,{variant:"danger",fill:"soft",size:"small",label:i("common.failed","\uC2E4\uD328")}):(o||r!==void 0)&&t.jsxs("span",{className:"wdup-phase-card__sub body-3",children:[o,o&&r!==void 0?` \xB7 ${r}%`:r!==void 0?`${r}%`:""]})]}),!c&&t.jsx("div",{className:"wdup-bar",children:t.jsx("div",{className:`wdup-bar__fill${l?" wdup-bar__fill--done":u?" wdup-bar__fill--error":""}${a==="active"&&r===void 0?" wdup-bar__fill--indeterminate":""}`,style:{width:r!==void 0||l||u?`${u?100:d}%`:void 0}})})]})]})}function z5({title:e,progress:n,onDone:a,onRetry:r,onClose:o,inline:i}){const{t:l}=pe.useTranslation(),{phase:c,error:u,wordCount:d,imagePage:p,imageDone:m,imageTotal:h,pairPercent:C}=n,y=V5(c),f=c==="done",v=!!u;function b(S){return v&&y===S?"error":y>S?"done":y===S?"active":"pending"}const x=b(1),_=b(2),g=b(3),A=c==="image-match"&&h?Math.round((m??0)/h*100):void 0,w=s.useMemo(()=>{if(_!=="done"){if(c==="image-list")return l("wordData.checkingPage",{page:p??1});if(c==="image-match"&&h)return l("wordData.imageCount",{done:yr(m),total:yr(h)})}},[_,c,p,h,m,l]);return t.jsx(Nn,{inline:i,className:"popup--word-data-update",title:e,footer:v&&r?t.jsx(ce,{htmlType:"button",size:56,variant:"main",onClick:r,children:l("common.retry","\uB2E4\uC2DC \uC2DC\uB3C4")}):v?t.jsx(ce,{htmlType:"button",size:56,variant:"main",onClick:o??a,children:l("common.close","\uB2EB\uAE30")}):t.jsx(ce,{htmlType:"button",size:56,variant:"main",disabled:!f,onClick:a,children:l("common.done","\uC644\uB8CC")}),children:t.jsxs("div",{className:"wdup-cards",children:[t.jsx(xo,{icon:t.jsx(Eo,{size:22,color:"var(--color-main, #29b6c8)",strokeWidth:1.8}),label:l("wordData.phaseWordDownload","\uB2E8\uC5B4 \uB370\uC774\uD130 \uB2E4\uC6B4\uB85C\uB4DC"),state:x,subText:x==="active"?l("wordData.downloadingCount",{n:yr(d)}):void 0}),t.jsx(xo,{icon:t.jsx(F5,{size:22,color:"var(--color-main, #29b6c8)",strokeWidth:1.8}),label:l("wordData.phaseImageCheck","\uC774\uBBF8\uC9C0 \uD655\uC778"),state:_,pct:A,subText:w}),t.jsx(xo,{icon:t.jsx($o,{size:22,color:"var(--color-main, #29b6c8)",strokeWidth:1.8}),label:l("wordData.phasePairAnalysis","\uB2E8\uC5B4\uC30D \uBD84\uC11D"),state:g,pct:g==="active"?C??0:void 0,subText:void 0})]})})}function W5({enabled:e=!1,renderResultPopup:n}={}){const{t:a}=pe.useTranslation(),[r,o]=s.useState(null),[i,l]=s.useState(null),c=C=>{let y=null;C==="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}]}:C==="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}]}:C==="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}]}:C==="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),o(C)},u=s.useCallback(()=>{o(null),l(null)},[]),d=s.useCallback(()=>c("noise"),[]),p=s.useCallback(()=>c("short"),[]),m=s.useCallback(()=>c("long"),[]),h=s.useCallback(()=>c("order"),[]);return e?t.jsxs("div",{className:"debug-result-launcher",children:[t.jsxs("div",{className:"debug-buttons",children:[t.jsx("button",{type:"button",className:"debug-button",onClick:d,children:a("debug.showResult",{type:"Noise",defaultValue:"{{type}} \uACB0\uACFC\uBCF4\uAE30"})}),t.jsx("button",{type:"button",className:"debug-button",onClick:p,children:a("debug.showResult",{type:"ShortStory",defaultValue:"{{type}} \uACB0\uACFC\uBCF4\uAE30"})}),t.jsx("button",{type:"button",className:"debug-button",onClick: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:u,onClose:u}):null]}):null}exports.Accordion=w2,exports.ActionCard=Q0,exports.Alert=Ug,exports.AppHeader=T2,exports.AudioMeter=Fr,exports.AudioPlayer=lo,exports.Avatar=Qg,exports.Badge=ut,exports.BarChart=P4,exports.BarChartControls=sl,exports.Board=p4,exports.BottomNav=Ni,exports.BrandIdentity=Ti,exports.Breadcrumb=n4,exports.BulkBar=N4,exports.Button=ce,exports.CORE_VERSION=K0,exports.Calendar=nb,exports.CardStep=wc,exports.ChartLegend=$r,exports.ChartSection=Rr,exports.ChartTotal=Ra,exports.Checkbox=tl,exports.ChoiceChips=ay,exports.CircleBadge=Vg,exports.CodeBox=k4,exports.ColorPicker=i4,exports.CompanyMeta=b4,exports.ConfirmPopup=h5,exports.ConfirmStep=vc,exports.ConfirmWithTextStep=xc,exports.ContrastFilterPanel=p5,exports.CoreScope=e2,exports.CountTile=l4,exports.CouponInputPopup=f5,exports.DEFAULT_NOISE_SETTINGS=va,exports.DatePicker=T4,exports.DebugResultLauncher=W5,exports.DescriptionTooltip=Rn,exports.DeviceSideTable=Q4,exports.Dialog=d4,exports.Divider=zg,exports.Dropdown=en,exports.EffectPartyPopper=Dc,exports.EffectPartyPopperHost=x5,exports.EmptyState=X0,exports.ErrorState=J0,exports.FILTER_ALL_VALUE=on,exports.FileUpload=t4,exports.FilterPanel=bn,exports.FilterSectionInfo=ha,exports.Footer=ry,exports.Header=ji,exports.Icon=We,exports.IconGridMenu=ny,exports.IconRenderer=We,exports.InfoTooltip=kn,exports.LEVEL_MAX=Jn,exports.LandingBottomSticky=sy,exports.LandingHeader=oy,exports.ListPopup=m5,exports.ListenStep=yc,exports.Loader=ga,exports.MARKS=wl,exports.MARK_ICON=Al,exports.MARK_VARIANT=Nl,exports.MediaQueryOverrideContext=fi,exports.MenuTooltip=Ea,exports.NOISE_RATIO_MAX=za,exports.NOISE_RATIO_STEP=Zl,exports.NoisePlayerContext=ro,exports.NoiseSettingsTooltip=pc,exports.NoticeBox=t2,exports.OrderListStep=_c,exports.PASS_CARD_BG_VARS=In,exports.POS_LABEL=Dl,exports.PROMO_BANNER_BG_COMPONENTS=mi,exports.PROMO_BANNER_BG_OPTIONS=n2,exports.PROMO_BANNER_BG_VARS=ua,exports.Page=Ka,exports.PageTitle=_5,exports.Pagination=Ma,exports.Panel=Ga,exports.PanelGrid=Ry,exports.PanelRow=Bn,exports.PanelRowDevice=$y,exports.PassCard=zi,exports.PassCardBg=Ig,exports.PassCardBgIHAB=Fg,exports.PassCardBgLeftColorGrid=Og,exports.PassCardBgTwoCircle=Fi,exports.PaymentPlan=Pg,exports.PersonCard=m4,exports.PhonemeFilterPanel=d5,exports.PhonemeSelectBlock=c5,exports.Popup=Nn,exports.ProgressBar=W4,exports.ProgressIndicator=Cl,exports.PromoBanner=v2,exports.PromoBannerBgDark=Js,exports.PromoBannerBgDeep=Us,exports.PromoBannerBgDiagonal=ni,exports.PromoBannerBgDots=ri,exports.PromoBannerBgInstagram=pi,exports.PromoBannerBgMain=Os,exports.PromoBannerBgNaver=ui,exports.PromoBannerBgOutline=si,exports.PromoBannerBgRadial=ei,exports.PromoBannerBgSoft=Vs,exports.PromoBannerBgSoftSub=Ks,exports.PromoBannerBgSub=Ws,exports.PromoBannerBgSuccess=li,exports.PromoBannerBgWarm=Zs,exports.PublicationCard=f4,exports.Radio=Gi,exports.RadioGroup=Wg,exports.Rating=r4,exports.ReportDocument=S5,exports.ReportInfoPanel=D5,exports.RingChart=F4,exports.SENTENCE_TRAINING_TYPES=eo,exports.SearchSummary=Yg,exports.Section=Kn,exports.SectionHeader=g4,exports.SegmentedControl=On,exports.ShortcutBadge=Ui,exports.SideNav=Di,exports.Slider=ml,exports.SoundCompass=Hg,exports.SplashLogo=C4,exports.StatChart=O4,exports.SummaryStrip=N5,exports.TRAINING_TOOLTIP_HOVER_DELAY_MS=C5,exports.Table=Hr,exports.TableFilterPanel=Zr,exports.Tabs=Zg,exports.TextBoxTooltip=Ua,exports.TextField=Fn,exports.Timeline=h4,exports.Toast=Gn,exports.Toggle=el,exports.Toolbar=Lr,exports.Tooltip=wn,exports.TooltipInfo=kn,exports.TooltipTextBox=Ua,exports.TopBanner=x2,exports.TrainingBlock=ib,exports.TrainingBlockButton=zr,exports.TrainingCard=j5,exports.TrainingCardGroup=E5,exports.TrainingPagePopup=Sn,exports.TrainingPagePopupBottom=mc,exports.TrainingPagePopupTitle=hc,exports.TrainingResultPopup=Ac,exports.TrainingStep=Hn,exports.TrainingStepAudioPlayer=lo,exports.TrainingStepBullet=oc,exports.TrainingStepCard=lc,exports.TrainingStepConfirm=uo,exports.TrainingStepConfirmWithText=po,exports.TrainingStepListen=mo,exports.TrainingStepOrderList=ho,exports.TrainingStepTextBox=ic,exports.TrainingStepTitle=sc,exports.TrainingTooltip=b5,exports.TrainingWordCard=Ur,exports.UpdateAlert=T5,exports.WAVE_A_MAX=fy,exports.WAVE_H1_PX=nc,exports.WAVE_HMAX_PX=hy,exports.WORD_TABLE_PAPER=Yn,exports.WORD_TYPE_LABEL=Tl,exports.WordDataProvider=A5,exports.WordDataUpdatePopup=z5,exports.WordImageTooltip=Bc,exports.WordSearchFilterPanel=u5,exports.WordSearchResultBlock=i5,exports.WordTable=Zn,exports.WordTableBlock=R5,exports.WordTableButton=P5,exports.WordTablePopup=Sb,exports.WordTableThumbnail=jc,exports.buildMonthChartData=E4,exports.cellLabel=Mb,exports.cellsForLabels=Kb,exports.clearPassCardBgTheme=fn,exports.clearPromoBannerBgTheme=Dt,exports.closeTrainingPopup=Hy,exports.companyTypeLabel=w5,exports.createTrainingScenario=Wy,exports.cx=ge,exports.deriveNoiseContexts=Zy,exports.derivePassCard=Ri,exports.draftValues=ey,exports.effectiveNoiseVolume=no,exports.effectiveSpeechVolume=Ql,exports.expandSlashLabel=Kr,exports.formatDuration=Yb,exports.getControlDateRange=I4,exports.getPayloadTimestamp=go,exports.getPromoBannerBgTheme=_r,exports.getSelectedFromPayload=Uy,exports.getSelectedText=Gy,exports.getStepPayload=gc,exports.getSteppedPayload=Ky,exports.injectPassCardBgTheme=hn,exports.injectPromoBannerBgTheme=St,exports.isSelectionCorrect=Yy,exports.labelsForSave=Eb,exports.levelToPct=iy,exports.markAfterClick=kl,exports.marksForSave=Gr,exports.mergeNoiseSettings=ya,exports.missesByType=Wb,exports.nextFocus=Hb,exports.nextMisses=zb,exports.noiseElementVolume=ao,exports.noiseRatioOf=ba,exports.pageStartIndexes=Bl,exports.passCardBgIhabTheme=Wi,exports.passCardBgLeftColorGridTheme=qi,exports.passCardBgTwoCircleTheme=Ii,exports.pctToLevel=ly,exports.printWordTable=mb,exports.promoBannerBgDarkTheme=Xs,exports.promoBannerBgDeepTheme=qs,exports.promoBannerBgDiagonalTheme=ti,exports.promoBannerBgDotsTheme=ai,exports.promoBannerBgInstagramTheme=di,exports.promoBannerBgMainTheme=Fs,exports.promoBannerBgNaverTheme=ci,exports.promoBannerBgOutlineTheme=oi,exports.promoBannerBgRadialTheme=Qs,exports.promoBannerBgSoftSubTheme=Gs,exports.promoBannerBgSoftTheme=Hs,exports.promoBannerBgSubTheme=zs,exports.promoBannerBgSuccessTheme=ii,exports.promoBannerBgWarmTheme=Ys,exports.recommendTables=Ub,exports.regenerateUnpinned=Qb,exports.removeItem=Jb,exports.resolveTrainingItems=zy,exports.resolveTrainingPopupMeta=Cc,exports.reviewCells=Tb,exports.reviewSetPlan=qb,exports.reviewTableName=jb,exports.scoreKey=Oa,exports.scoreSheetHeader=Lb,exports.shouldConfirmDiscard=pb,exports.splitTrainingVariants=Vy,exports.summarize=db,exports.summarizeMisses=Vb,exports.tableTrends=Ob,exports.toDraft=Zb,exports.toTrainingText=qy,exports.togglePin=Xb,exports.uncoveredLabels=Gb,exports.useAnchoredMenu=da,exports.useBarChartControl=ol,exports.useCalendarMonth=nl,exports.useComboboxSuggestions=Ji,exports.useFitScale=El,exports.useNoisePlayer=Wa,exports.useSoundCompassExam=y2,exports.useToastLifecycle=fl,exports.useWordData=k5,exports.useWordTableDisplaySettings=Kl,exports.useWordTablePrint=Qr,exports.waveBarPx=xa,exports.waveBarVal=so,exports.weakItems=Fb;
983
+ */const O5=[["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"}]],V5=K("circle-x",O5);function H5(e){return{idle:0,"word-download":1,"image-list":2,"image-match":2,"pair-build":3,done:4}[e]??0}function _o({icon:e,label:n,state:a,pct:r,subText:o}){const{t:i}=pe.useTranslation(),l=a==="done",c=a==="pending",u=a==="error",d=l?100:r??0;return t.jsxs("div",{className:"wdup-phase-card",children:[t.jsx("div",{className:`wdup-phase-card__icon${l?" wdup-phase-card__icon--done":u?" wdup-phase-card__icon--error":""}`,children:l?t.jsx(Io,{size:22,color:"white",strokeWidth:2.5}):u?t.jsx(V5,{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(ut,{variant:"sub",fill:"soft",size:"small",label:i("common.done","\uC644\uB8CC")}):u?t.jsx(ut,{variant:"danger",fill:"soft",size:"small",label:i("common.failed","\uC2E4\uD328")}):(o||r!==void 0)&&t.jsxs("span",{className:"wdup-phase-card__sub body-3",children:[o,o&&r!==void 0?` \xB7 ${r}%`:r!==void 0?`${r}%`:""]})]}),!c&&t.jsx("div",{className:"wdup-bar",children:t.jsx("div",{className:`wdup-bar__fill${l?" wdup-bar__fill--done":u?" wdup-bar__fill--error":""}${a==="active"&&r===void 0?" wdup-bar__fill--indeterminate":""}`,style:{width:r!==void 0||l||u?`${u?100:d}%`:void 0}})})]})]})}function z5({title:e,progress:n,onDone:a,onRetry:r,onClose:o,inline:i}){const{t:l}=pe.useTranslation(),{phase:c,error:u,wordCount:d,imagePage:p,imageDone:m,imageTotal:h,pairPercent:C}=n,y=H5(c),f=c==="done",v=!!u;function b(D){return v&&y===D?"error":y>D?"done":y===D?"active":"pending"}const x=b(1),_=b(2),g=b(3),A=c==="image-match"&&h?Math.round((m??0)/h*100):void 0,w=s.useMemo(()=>{if(_!=="done"){if(c==="image-list")return l("wordData.checkingPage",{page:p??1});if(c==="image-match"&&h)return l("wordData.imageCount",{done:vr(m),total:vr(h)})}},[_,c,p,h,m,l]);return t.jsx(Nn,{inline:i,className:"popup--word-data-update",title:e,footer:v&&r?t.jsx(ce,{htmlType:"button",size:56,variant:"main",onClick:r,children:l("common.retry","\uB2E4\uC2DC \uC2DC\uB3C4")}):v?t.jsx(ce,{htmlType:"button",size:56,variant:"main",onClick:o??a,children:l("common.close","\uB2EB\uAE30")}):t.jsx(ce,{htmlType:"button",size:56,variant:"main",disabled:!f,onClick:a,children:l("common.done","\uC644\uB8CC")}),children:t.jsxs("div",{className:"wdup-cards",children:[t.jsx(_o,{icon:t.jsx(Mo,{size:22,color:"var(--color-main, #29b6c8)",strokeWidth:1.8}),label:l("wordData.phaseWordDownload","\uB2E8\uC5B4 \uB370\uC774\uD130 \uB2E4\uC6B4\uB85C\uB4DC"),state:x,subText:x==="active"?l("wordData.downloadingCount",{n:vr(d)}):void 0}),t.jsx(_o,{icon:t.jsx(F5,{size:22,color:"var(--color-main, #29b6c8)",strokeWidth:1.8}),label:l("wordData.phaseImageCheck","\uC774\uBBF8\uC9C0 \uD655\uC778"),state:_,pct:A,subText:w}),t.jsx(_o,{icon:t.jsx(Ro,{size:22,color:"var(--color-main, #29b6c8)",strokeWidth:1.8}),label:l("wordData.phasePairAnalysis","\uB2E8\uC5B4\uC30D \uBD84\uC11D"),state:g,pct:g==="active"?C??0:void 0,subText:void 0})]})})}function W5({enabled:e=!1,renderResultPopup:n}={}){const{t:a}=pe.useTranslation(),[r,o]=s.useState(null),[i,l]=s.useState(null),c=C=>{let y=null;C==="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}]}:C==="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}]}:C==="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}]}:C==="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),o(C)},u=s.useCallback(()=>{o(null),l(null)},[]),d=s.useCallback(()=>c("noise"),[]),p=s.useCallback(()=>c("short"),[]),m=s.useCallback(()=>c("long"),[]),h=s.useCallback(()=>c("order"),[]);return e?t.jsxs("div",{className:"debug-result-launcher",children:[t.jsxs("div",{className:"debug-buttons",children:[t.jsx("button",{type:"button",className:"debug-button",onClick:d,children:a("debug.showResult",{type:"Noise",defaultValue:"{{type}} \uACB0\uACFC\uBCF4\uAE30"})}),t.jsx("button",{type:"button",className:"debug-button",onClick:p,children:a("debug.showResult",{type:"ShortStory",defaultValue:"{{type}} \uACB0\uACFC\uBCF4\uAE30"})}),t.jsx("button",{type:"button",className:"debug-button",onClick: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:u,onClose:u}):null]}):null}exports.Accordion=k2,exports.ActionCard=e2,exports.Alert=Gg,exports.AppHeader=T2,exports.AudioMeter=Or,exports.AudioPlayer=co,exports.Avatar=e4,exports.Badge=ut,exports.BarChart=I4,exports.BarChartControls=il,exports.Board=m4,exports.BottomNav=Bi,exports.BrandIdentity=Ti,exports.Breadcrumb=a4,exports.BulkBar=B4,exports.Button=ce,exports.CORE_VERSION=Y0,exports.Calendar=ab,exports.CardStep=kc,exports.ChartLegend=Rr,exports.ChartSection=Pr,exports.ChartTotal=Pa,exports.Checkbox=nl,exports.ChoiceChips=ay,exports.CircleBadge=zg,exports.CodeBox=A4,exports.ColorPicker=l4,exports.CompanyMeta=y4,exports.ConfirmPopup=h5,exports.ConfirmStep=xc,exports.ConfirmWithTextStep=_c,exports.ContrastFilterPanel=p5,exports.CoreScope=t2,exports.CountTile=c4,exports.CouponInputPopup=f5,exports.DEFAULT_NOISE_SETTINGS=xa,exports.DatePicker=T4,exports.DebugResultLauncher=W5,exports.DescriptionTooltip=Rn,exports.DeviceSideTable=eb,exports.Dialog=p4,exports.Divider=Wg,exports.Dropdown=en,exports.EffectPartyPopper=jc,exports.EffectPartyPopperHost=x5,exports.EmptyState=J0,exports.ErrorState=Q0,exports.FILTER_ALL_VALUE=on,exports.FileUpload=n4,exports.FilterPanel=bn,exports.FilterSectionInfo=ha,exports.Footer=ry,exports.Header=Ei,exports.Icon=qe,exports.IconGridMenu=ny,exports.IconRenderer=qe,exports.InfoTooltip=kn,exports.LEVEL_MAX=Jn,exports.LandingBottomSticky=sy,exports.LandingHeader=oy,exports.ListPopup=m5,exports.ListenStep=vc,exports.Loader=ga,exports.MARKS=kl,exports.MARK_ICON=Nl,exports.MARK_VARIANT=Bl,exports.MediaQueryOverrideContext=Ci,exports.MenuTooltip=Ma,exports.NOISE_RATIO_MAX=Wa,exports.NOISE_RATIO_STEP=Xl,exports.NoisePlayerContext=oo,exports.NoiseSettingsTooltip=mc,exports.NoticeBox=n2,exports.OrderListStep=wc,exports.PASS_CARD_BG_VARS=In,exports.POS_LABEL=jl,exports.PROMO_BANNER_BG_COMPONENTS=hi,exports.PROMO_BANNER_BG_OPTIONS=a2,exports.PROMO_BANNER_BG_VARS=ua,exports.Page=Ya,exports.PageTitle=_5,exports.Pagination=La,exports.Panel=Ka,exports.PanelGrid=Ry,exports.PanelRow=Bn,exports.PanelRowDevice=$y,exports.PassCard=Wi,exports.PassCardBg=Fg,exports.PassCardBgIHAB=Og,exports.PassCardBgLeftColorGrid=Vg,exports.PassCardBgTwoCircle=Oi,exports.PaymentPlan=Ig,exports.PersonCard=h4,exports.PhonemeFilterPanel=d5,exports.PhonemeSelectBlock=c5,exports.Popup=Nn,exports.ProgressBar=q4,exports.ProgressIndicator=gl,exports.PromoBanner=x2,exports.PromoBannerBgDark=Qs,exports.PromoBannerBgDeep=Gs,exports.PromoBannerBgDiagonal=ai,exports.PromoBannerBgDots=oi,exports.PromoBannerBgInstagram=mi,exports.PromoBannerBgMain=Vs,exports.PromoBannerBgNaver=di,exports.PromoBannerBgOutline=ii,exports.PromoBannerBgRadial=ti,exports.PromoBannerBgSoft=zs,exports.PromoBannerBgSoftSub=Ys,exports.PromoBannerBgSub=qs,exports.PromoBannerBgSuccess=ci,exports.PromoBannerBgWarm=Xs,exports.PublicationCard=C4,exports.Radio=Ki,exports.RadioGroup=qg,exports.Rating=o4,exports.ReportDocument=D5,exports.ReportInfoPanel=S5,exports.RingChart=O4,exports.SENTENCE_TRAINING_TYPES=to,exports.SearchSummary=Zg,exports.Section=Kn,exports.SectionHeader=b4,exports.SegmentedControl=On,exports.ShortcutBadge=Gi,exports.SideNav=ji,exports.Slider=hl,exports.SoundCompass=Hg,exports.SplashLogo=g4,exports.StatChart=V4,exports.SummaryStrip=N5,exports.TRAINING_TOOLTIP_HOVER_DELAY_MS=C5,exports.Table=Hr,exports.TableFilterPanel=Xr,exports.Tabs=Xg,exports.TextBoxTooltip=Ga,exports.TextField=Fn,exports.Timeline=f4,exports.Toast=Gn,exports.Toggle=tl,exports.Toolbar=$r,exports.Tooltip=wn,exports.TooltipInfo=kn,exports.TooltipTextBox=Ga,exports.TopBanner=_2,exports.TrainingBlock=lb,exports.TrainingBlockButton=Wr,exports.TrainingCard=T5,exports.TrainingCardGroup=E5,exports.TrainingPagePopup=Dn,exports.TrainingPagePopupBottom=hc,exports.TrainingPagePopupTitle=fc,exports.TrainingResultPopup=Nc,exports.TrainingStep=Vn,exports.TrainingStepAudioPlayer=co,exports.TrainingStepBullet=sc,exports.TrainingStepCard=cc,exports.TrainingStepConfirm=po,exports.TrainingStepConfirmWithText=mo,exports.TrainingStepListen=ho,exports.TrainingStepOrderList=fo,exports.TrainingStepTextBox=lc,exports.TrainingStepTitle=ic,exports.TrainingTooltip=b5,exports.TrainingWordCard=Gr,exports.UpdateAlert=j5,exports.WAVE_A_MAX=fy,exports.WAVE_H1_PX=ac,exports.WAVE_HMAX_PX=hy,exports.WORD_TABLE_PAPER=Yn,exports.WORD_TYPE_LABEL=Tl,exports.WordDataProvider=A5,exports.WordDataUpdatePopup=z5,exports.WordImageTooltip=Dc,exports.WordSearchFilterPanel=u5,exports.WordSearchResultBlock=i5,exports.WordTable=Zn,exports.WordTableBlock=R5,exports.WordTableButton=P5,exports.WordTablePopup=Sb,exports.WordTableThumbnail=Ec,exports.buildMonthChartData=M4,exports.cellLabel=Lb,exports.cellsForLabels=Kb,exports.clearPassCardBgTheme=fn,exports.clearPromoBannerBgTheme=St,exports.closeTrainingPopup=Vy,exports.companyTypeLabel=w5,exports.createTrainingScenario=Wy,exports.cx=ge,exports.deriveNoiseContexts=Zy,exports.derivePassCard=Pi,exports.draftValues=ey,exports.effectiveNoiseVolume=ao,exports.effectiveSpeechVolume=ec,exports.expandSlashLabel=Yr,exports.formatDuration=Yb,exports.getControlDateRange=F4,exports.getPayloadTimestamp=bo,exports.getPromoBannerBgTheme=wr,exports.getSelectedFromPayload=Uy,exports.getSelectedText=Gy,exports.getStepPayload=bc,exports.getSteppedPayload=Ky,exports.injectPassCardBgTheme=hn,exports.injectPromoBannerBgTheme=Dt,exports.isSelectionCorrect=Yy,exports.labelsForSave=Mb,exports.levelToPct=iy,exports.markAfterClick=Al,exports.marksForSave=Kr,exports.mergeNoiseSettings=va,exports.missesByType=Wb,exports.nextFocus=Vb,exports.nextMisses=zb,exports.noiseElementVolume=ro,exports.noiseRatioOf=ya,exports.pageStartIndexes=Dl,exports.passCardBgIhabTheme=qi,exports.passCardBgLeftColorGridTheme=Ui,exports.passCardBgTwoCircleTheme=Fi,exports.pctToLevel=ly,exports.printWordTable=hb,exports.promoBannerBgDarkTheme=Js,exports.promoBannerBgDeepTheme=Us,exports.promoBannerBgDiagonalTheme=ni,exports.promoBannerBgDotsTheme=ri,exports.promoBannerBgInstagramTheme=pi,exports.promoBannerBgMainTheme=Os,exports.promoBannerBgNaverTheme=ui,exports.promoBannerBgOutlineTheme=si,exports.promoBannerBgRadialTheme=ei,exports.promoBannerBgSoftSubTheme=Ks,exports.promoBannerBgSoftTheme=Hs,exports.promoBannerBgSubTheme=Ws,exports.promoBannerBgSuccessTheme=li,exports.promoBannerBgWarmTheme=Zs,exports.recommendTables=Ub,exports.regenerateUnpinned=Qb,exports.removeItem=Jb,exports.resolveTrainingItems=zy,exports.resolveTrainingPopupMeta=gc,exports.reviewCells=Tb,exports.reviewSetPlan=qb,exports.reviewTableName=Eb,exports.scoreKey=Va,exports.scoreSheetHeader=$b,exports.shouldConfirmDiscard=mb,exports.splitTrainingVariants=Hy,exports.summarize=pb,exports.summarizeMisses=Hb,exports.tableTrends=Ob,exports.toDraft=Zb,exports.toTrainingText=qy,exports.togglePin=Xb,exports.uncoveredLabels=Gb,exports.useAnchoredMenu=da,exports.useBarChartControl=sl,exports.useCalendarMonth=al,exports.useComboboxSuggestions=Qi,exports.useFitScale=Ml,exports.useNoisePlayer=qa,exports.useSoundCompassExam=v2,exports.useToastLifecycle=Cl,exports.useWordData=k5,exports.useWordTableDisplaySettings=Yl,exports.useWordTablePrint=eo,exports.waveBarPx=_a,exports.waveBarVal=io,exports.weakItems=Fb;