lt-ppt 1.0.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 (357) hide show
  1. package/LICENSE +661 -0
  2. package/README.md +31 -0
  3. package/dist/InnerApp-Cw-WNV5d.js +96942 -0
  4. package/dist/favicon.ico +0 -0
  5. package/dist/imgs/template_1.webp +0 -0
  6. package/dist/imgs/template_2.webp +0 -0
  7. package/dist/imgs/template_3.webp +0 -0
  8. package/dist/imgs/template_4.webp +0 -0
  9. package/dist/imgs/template_5.webp +0 -0
  10. package/dist/imgs/template_6.webp +0 -0
  11. package/dist/imgs/template_7.webp +0 -0
  12. package/dist/imgs/template_8.webp +0 -0
  13. package/dist/index-Bp6Exf0_.js +166 -0
  14. package/dist/index-lXMdfvq4.js +8 -0
  15. package/dist/lib-CcU3sBPZ.js +1907 -0
  16. package/dist/logo.png +0 -0
  17. package/dist/lt-ppt.css +7 -0
  18. package/dist/lt-ppt.es.js +5 -0
  19. package/dist/lt-ppt.umd.js +461 -0
  20. package/dist/mocks/AIPPT.json +475 -0
  21. package/dist/mocks/AIPPT_Outline.md +69 -0
  22. package/dist/mocks/imgs.json +482 -0
  23. package/dist/mocks/slides.json +184 -0
  24. package/dist/mocks/template_1.json +1 -0
  25. package/dist/mocks/template_2.json +1 -0
  26. package/dist/mocks/template_3.json +1 -0
  27. package/dist/mocks/template_4.json +1 -0
  28. package/dist/mocks/template_5.json +1 -0
  29. package/dist/mocks/template_6.json +1 -0
  30. package/dist/mocks/template_7.json +1 -0
  31. package/dist/mocks/template_8.json +1 -0
  32. package/dist/pinia-CVat9nJz.js +4417 -0
  33. package/dist/screen-B0Lx73x7.js +12797 -0
  34. package/dist/tippy.esm-Dos-q4Dz.js +1711 -0
  35. package/dist/types/lib.d.ts +2 -0
  36. package/dist/types/src/InnerApp.vue.d.ts +10 -0
  37. package/dist/types/src/LtPPT.vue.d.ts +22 -0
  38. package/dist/types/src/components/Button.vue.d.ts +28 -0
  39. package/dist/types/src/components/ButtonGroup.vue.d.ts +16 -0
  40. package/dist/types/src/components/Checkbox.vue.d.ts +19 -0
  41. package/dist/types/src/components/CheckboxButton.vue.d.ts +16 -0
  42. package/dist/types/src/components/ColorButton.vue.d.ts +5 -0
  43. package/dist/types/src/components/ColorListButton.vue.d.ts +5 -0
  44. package/dist/types/src/components/ColorPicker/Alpha.vue.d.ts +12 -0
  45. package/dist/types/src/components/ColorPicker/Checkboard.vue.d.ts +11 -0
  46. package/dist/types/src/components/ColorPicker/EditableInput.vue.d.ts +10 -0
  47. package/dist/types/src/components/ColorPicker/Hue.vue.d.ts +13 -0
  48. package/dist/types/src/components/ColorPicker/Saturation.vue.d.ts +13 -0
  49. package/dist/types/src/components/ColorPicker/index.vue.d.ts +11 -0
  50. package/dist/types/src/components/Contextmenu/MenuContent.vue.d.ts +7 -0
  51. package/dist/types/src/components/Contextmenu/index.vue.d.ts +9 -0
  52. package/dist/types/src/components/Contextmenu/types.d.ts +13 -0
  53. package/dist/types/src/components/Divider.vue.d.ts +9 -0
  54. package/dist/types/src/components/Drawer.vue.d.ts +24 -0
  55. package/dist/types/src/components/FileInput.vue.d.ts +20 -0
  56. package/dist/types/src/components/FullscreenSpin.vue.d.ts +11 -0
  57. package/dist/types/src/components/GradientBar.vue.d.ts +15 -0
  58. package/dist/types/src/components/ImageWaterfallViewer.vue.d.ts +35 -0
  59. package/dist/types/src/components/Input.vue.d.ts +41 -0
  60. package/dist/types/src/components/LaTeXEditor/FormulaContent.vue.d.ts +7 -0
  61. package/dist/types/src/components/LaTeXEditor/SymbolContent.vue.d.ts +5 -0
  62. package/dist/types/src/components/LaTeXEditor/hfmath.d.ts +2 -0
  63. package/dist/types/src/components/LaTeXEditor/index.vue.d.ts +73 -0
  64. package/dist/types/src/components/LanguageSwitch.vue.d.ts +2 -0
  65. package/dist/types/src/components/Message.vue.d.ts +23 -0
  66. package/dist/types/src/components/Modal.vue.d.ts +32 -0
  67. package/dist/types/src/components/MoveablePanel.vue.d.ts +41 -0
  68. package/dist/types/src/components/NumberInput.vue.d.ts +38 -0
  69. package/dist/types/src/components/OutlineEditor.vue.d.ts +9 -0
  70. package/dist/types/src/components/Popover.vue.d.ts +38 -0
  71. package/dist/types/src/components/PopoverMenuItem.vue.d.ts +18 -0
  72. package/dist/types/src/components/RadioButton.vue.d.ts +15 -0
  73. package/dist/types/src/components/RadioGroup.vue.d.ts +19 -0
  74. package/dist/types/src/components/Select.vue.d.ts +143 -0
  75. package/dist/types/src/components/SelectCustom.vue.d.ts +20 -0
  76. package/dist/types/src/components/SelectGroup.vue.d.ts +9 -0
  77. package/dist/types/src/components/Slider.vue.d.ts +22 -0
  78. package/dist/types/src/components/Switch.vue.d.ts +12 -0
  79. package/dist/types/src/components/Tabs.vue.d.ts +26 -0
  80. package/dist/types/src/components/TextArea.vue.d.ts +29 -0
  81. package/dist/types/src/components/TextColorButton.vue.d.ts +12 -0
  82. package/dist/types/src/components/WritingBoard.vue.d.ts +32 -0
  83. package/dist/types/src/configs/animation.d.ts +34 -0
  84. package/dist/types/src/configs/chart.d.ts +4 -0
  85. package/dist/types/src/configs/element.d.ts +2 -0
  86. package/dist/types/src/configs/font.d.ts +4 -0
  87. package/dist/types/src/configs/hotkey.d.ts +41 -0
  88. package/dist/types/src/configs/imageClip.d.ts +25 -0
  89. package/dist/types/src/configs/latex.d.ts +11 -0
  90. package/dist/types/src/configs/lines.d.ts +16 -0
  91. package/dist/types/src/configs/mime.d.ts +1 -0
  92. package/dist/types/src/configs/shapes.d.ts +26 -0
  93. package/dist/types/src/configs/storage.d.ts +1 -0
  94. package/dist/types/src/configs/symbol.d.ts +5 -0
  95. package/dist/types/src/configs/theme.d.ts +11 -0
  96. package/dist/types/src/directive/clickOutside.d.ts +3 -0
  97. package/dist/types/src/directive/contextmenu.d.ts +3 -0
  98. package/dist/types/src/directive/index.d.ts +5 -0
  99. package/dist/types/src/directive/loading.d.ts +3 -0
  100. package/dist/types/src/directive/tooltip.d.ts +3 -0
  101. package/dist/types/src/hooks/useAIPPT.d.ts +14 -0
  102. package/dist/types/src/hooks/useAddSlidesOrElements.d.ts +6 -0
  103. package/dist/types/src/hooks/useAlignActiveElement.d.ts +5 -0
  104. package/dist/types/src/hooks/useAlignElementToCanvas.d.ts +5 -0
  105. package/dist/types/src/hooks/useCombineElement.d.ts +6 -0
  106. package/dist/types/src/hooks/useCopyAndPasteElement.d.ts +7 -0
  107. package/dist/types/src/hooks/useCreateElement.d.ts +36 -0
  108. package/dist/types/src/hooks/useDeleteElement.d.ts +5 -0
  109. package/dist/types/src/hooks/useExport.d.ts +11 -0
  110. package/dist/types/src/hooks/useGlobalHotkey.d.ts +2 -0
  111. package/dist/types/src/hooks/useHideElement.d.ts +6 -0
  112. package/dist/types/src/hooks/useHistorySnapshot.d.ts +6 -0
  113. package/dist/types/src/hooks/useImport.d.ts +15 -0
  114. package/dist/types/src/hooks/useLink.d.ts +6 -0
  115. package/dist/types/src/hooks/useLoadSlides.d.ts +4 -0
  116. package/dist/types/src/hooks/useLockElement.d.ts +6 -0
  117. package/dist/types/src/hooks/useMoveElement.d.ts +4 -0
  118. package/dist/types/src/hooks/useOrderElement.d.ts +6 -0
  119. package/dist/types/src/hooks/usePasteDataTransfer.d.ts +7 -0
  120. package/dist/types/src/hooks/usePasteEvent.d.ts +2 -0
  121. package/dist/types/src/hooks/usePasteTextClipboardData.d.ts +8 -0
  122. package/dist/types/src/hooks/useScaleCanvas.d.ts +7 -0
  123. package/dist/types/src/hooks/useScreening.d.ts +6 -0
  124. package/dist/types/src/hooks/useSearch.d.ts +44 -0
  125. package/dist/types/src/hooks/useSectionHandler.d.ts +8 -0
  126. package/dist/types/src/hooks/useSelectElement.d.ts +5 -0
  127. package/dist/types/src/hooks/useShapeFormatPainter.d.ts +4 -0
  128. package/dist/types/src/hooks/useSlideBackgroundStyle.d.ts +21 -0
  129. package/dist/types/src/hooks/useSlideHandler.d.ts +16 -0
  130. package/dist/types/src/hooks/useSlideTheme.d.ts +14 -0
  131. package/dist/types/src/hooks/useTextFormatPainter.d.ts +4 -0
  132. package/dist/types/src/hooks/useUniformDisplayElement.d.ts +6 -0
  133. package/dist/types/src/lib.d.ts +5 -0
  134. package/dist/types/src/locales/en.d.ts +859 -0
  135. package/dist/types/src/locales/index.d.ts +1753 -0
  136. package/dist/types/src/locales/zh-CN.d.ts +887 -0
  137. package/dist/types/src/services/axios.d.ts +2 -0
  138. package/dist/types/src/services/fetch.d.ts +2 -0
  139. package/dist/types/src/services/index.d.ts +36 -0
  140. package/dist/types/src/store/index.d.ts +6 -0
  141. package/dist/types/src/store/keyboard.d.ts +16 -0
  142. package/dist/types/src/store/main.d.ts +915 -0
  143. package/dist/types/src/store/screen.d.ts +6 -0
  144. package/dist/types/src/store/slides.d.ts +1559 -0
  145. package/dist/types/src/store/snapshot.d.ts +21 -0
  146. package/dist/types/src/types/AIPPT.d.ts +36 -0
  147. package/dist/types/src/types/edit.d.ts +111 -0
  148. package/dist/types/src/types/export.d.ts +1 -0
  149. package/dist/types/src/types/injectKey.d.ts +10 -0
  150. package/dist/types/src/types/lt-ppt.d.ts +30 -0
  151. package/dist/types/src/types/mobile.d.ts +1 -0
  152. package/dist/types/src/types/slides.d.ts +732 -0
  153. package/dist/types/src/types/toolbar.d.ts +9 -0
  154. package/dist/types/src/utils/clipboard.d.ts +9 -0
  155. package/dist/types/src/utils/common.d.ts +18 -0
  156. package/dist/types/src/utils/crypto.d.ts +10 -0
  157. package/dist/types/src/utils/database.d.ts +17 -0
  158. package/dist/types/src/utils/element.d.ts +94 -0
  159. package/dist/types/src/utils/emitter.d.ts +23 -0
  160. package/dist/types/src/utils/font.d.ts +1 -0
  161. package/dist/types/src/utils/fonts.d.ts +5 -0
  162. package/dist/types/src/utils/fullscreen.d.ts +3 -0
  163. package/dist/types/src/utils/htmlParser/format.d.ts +3 -0
  164. package/dist/types/src/utils/htmlParser/index.d.ts +4 -0
  165. package/dist/types/src/utils/htmlParser/lexer.d.ts +2 -0
  166. package/dist/types/src/utils/htmlParser/parser.d.ts +15 -0
  167. package/dist/types/src/utils/htmlParser/stringify.d.ts +3 -0
  168. package/dist/types/src/utils/htmlParser/tags.d.ts +4 -0
  169. package/dist/types/src/utils/htmlParser/types.d.ts +55 -0
  170. package/dist/types/src/utils/iframe-sdk/index.d.ts +52 -0
  171. package/dist/types/src/utils/iframe-sdk/types.d.ts +30 -0
  172. package/dist/types/src/utils/image.d.ts +32 -0
  173. package/dist/types/src/utils/message.d.ts +28 -0
  174. package/dist/types/src/utils/print.d.ts +7 -0
  175. package/dist/types/src/utils/prosemirror/commands/replaceText.d.ts +2 -0
  176. package/dist/types/src/utils/prosemirror/commands/setListStyle.d.ts +4 -0
  177. package/dist/types/src/utils/prosemirror/commands/setTextAlign.d.ts +5 -0
  178. package/dist/types/src/utils/prosemirror/commands/setTextIndent.d.ts +3 -0
  179. package/dist/types/src/utils/prosemirror/commands/toggleList.d.ts +8 -0
  180. package/dist/types/src/utils/prosemirror/index.d.ts +4 -0
  181. package/dist/types/src/utils/prosemirror/plugins/index.d.ts +10 -0
  182. package/dist/types/src/utils/prosemirror/plugins/inputrules.d.ts +7 -0
  183. package/dist/types/src/utils/prosemirror/plugins/keymap.d.ts +3 -0
  184. package/dist/types/src/utils/prosemirror/plugins/placeholder.d.ts +2 -0
  185. package/dist/types/src/utils/prosemirror/schema/index.d.ts +24 -0
  186. package/dist/types/src/utils/prosemirror/schema/marks.d.ts +17 -0
  187. package/dist/types/src/utils/prosemirror/schema/nodes.d.ts +11 -0
  188. package/dist/types/src/utils/prosemirror/utils.d.ts +69 -0
  189. package/dist/types/src/utils/selection.d.ts +1 -0
  190. package/dist/types/src/utils/svg2Base64.d.ts +1 -0
  191. package/dist/types/src/utils/svgPathParser.d.ts +120 -0
  192. package/dist/types/src/utils/textParser.d.ts +5 -0
  193. package/dist/types/src/views/Editor/AIPPTDialog.vue.d.ts +111 -0
  194. package/dist/types/src/views/Editor/Canvas/AlignmentLine.vue.d.ts +9 -0
  195. package/dist/types/src/views/Editor/Canvas/EditableElement.vue.d.ts +12 -0
  196. package/dist/types/src/views/Editor/Canvas/ElementCreateSelection.vue.d.ts +9 -0
  197. package/dist/types/src/views/Editor/Canvas/GridLines.vue.d.ts +2 -0
  198. package/dist/types/src/views/Editor/Canvas/LinkDialog.vue.d.ts +115 -0
  199. package/dist/types/src/views/Editor/Canvas/MouseSelection.vue.d.ts +9 -0
  200. package/dist/types/src/views/Editor/Canvas/Operate/BorderLine.vue.d.ts +9 -0
  201. package/dist/types/src/views/Editor/Canvas/Operate/CommonElementOperate.vue.d.ts +14 -0
  202. package/dist/types/src/views/Editor/Canvas/Operate/ImageElementOperate.vue.d.ts +14 -0
  203. package/dist/types/src/views/Editor/Canvas/Operate/LineElementOperate.vue.d.ts +12 -0
  204. package/dist/types/src/views/Editor/Canvas/Operate/LinkHandler.vue.d.ts +8 -0
  205. package/dist/types/src/views/Editor/Canvas/Operate/MultiSelectOperate.vue.d.ts +8 -0
  206. package/dist/types/src/views/Editor/Canvas/Operate/ResizeHandler.vue.d.ts +9 -0
  207. package/dist/types/src/views/Editor/Canvas/Operate/RotateHandler.vue.d.ts +2 -0
  208. package/dist/types/src/views/Editor/Canvas/Operate/ShapeElementOperate.vue.d.ts +16 -0
  209. package/dist/types/src/views/Editor/Canvas/Operate/TableElementOperate.vue.d.ts +14 -0
  210. package/dist/types/src/views/Editor/Canvas/Operate/TextElementOperate.vue.d.ts +14 -0
  211. package/dist/types/src/views/Editor/Canvas/Operate/index.vue.d.ts +16 -0
  212. package/dist/types/src/views/Editor/Canvas/Ruler.vue.d.ts +13 -0
  213. package/dist/types/src/views/Editor/Canvas/ShapeCreateCanvas.vue.d.ts +9 -0
  214. package/dist/types/src/views/Editor/Canvas/ViewportBackground.vue.d.ts +2 -0
  215. package/dist/types/src/views/Editor/Canvas/hooks/useCommonOperate.d.ts +89 -0
  216. package/dist/types/src/views/Editor/Canvas/hooks/useDragElement.d.ts +7 -0
  217. package/dist/types/src/views/Editor/Canvas/hooks/useDragLineElement.d.ts +7 -0
  218. package/dist/types/src/views/Editor/Canvas/hooks/useDrop.d.ts +3 -0
  219. package/dist/types/src/views/Editor/Canvas/hooks/useInsertFromCreateSelection.d.ts +12 -0
  220. package/dist/types/src/views/Editor/Canvas/hooks/useMouseSelection.d.ts +24 -0
  221. package/dist/types/src/views/Editor/Canvas/hooks/useMoveShapeKeypoint.d.ts +6 -0
  222. package/dist/types/src/views/Editor/Canvas/hooks/useRotateElement.d.ts +6 -0
  223. package/dist/types/src/views/Editor/Canvas/hooks/useScaleElement.d.ts +8 -0
  224. package/dist/types/src/views/Editor/Canvas/hooks/useSelectElement.d.ts +6 -0
  225. package/dist/types/src/views/Editor/Canvas/hooks/useViewportSize.d.ts +11 -0
  226. package/dist/types/src/views/Editor/Canvas/index.vue.d.ts +5 -0
  227. package/dist/types/src/views/Editor/CanvasTool/ChartPool.vue.d.ts +7 -0
  228. package/dist/types/src/views/Editor/CanvasTool/LinePool.vue.d.ts +7 -0
  229. package/dist/types/src/views/Editor/CanvasTool/MediaInput.vue.d.ts +22 -0
  230. package/dist/types/src/views/Editor/CanvasTool/ShapeItemThumbnail.vue.d.ts +6 -0
  231. package/dist/types/src/views/Editor/CanvasTool/ShapePool.vue.d.ts +7 -0
  232. package/dist/types/src/views/Editor/CanvasTool/TableGenerator.vue.d.ts +12 -0
  233. package/dist/types/src/views/Editor/CanvasTool/index.vue.d.ts +2 -0
  234. package/dist/types/src/views/Editor/EditorHeader/HotkeyDoc.vue.d.ts +2 -0
  235. package/dist/types/src/views/Editor/EditorHeader/index.vue.d.ts +4 -0
  236. package/dist/types/src/views/Editor/ExportDialog/ExportImage.vue.d.ts +8 -0
  237. package/dist/types/src/views/Editor/ExportDialog/ExportJSON.vue.d.ts +6 -0
  238. package/dist/types/src/views/Editor/ExportDialog/ExportPDF.vue.d.ts +8 -0
  239. package/dist/types/src/views/Editor/ExportDialog/ExportPDF2.vue.d.ts +8 -0
  240. package/dist/types/src/views/Editor/ExportDialog/ExportPPTX.vue.d.ts +8 -0
  241. package/dist/types/src/views/Editor/ExportDialog/ExportSpecificFile.vue.d.ts +6 -0
  242. package/dist/types/src/views/Editor/ExportDialog/index.vue.d.ts +2 -0
  243. package/dist/types/src/views/Editor/ImageLibPanel.vue.d.ts +2 -0
  244. package/dist/types/src/views/Editor/MarkupPanel.vue.d.ts +2 -0
  245. package/dist/types/src/views/Editor/NotesPanel.vue.d.ts +57 -0
  246. package/dist/types/src/views/Editor/Remark/Editor.vue.d.ts +14 -0
  247. package/dist/types/src/views/Editor/Remark/index.vue.d.ts +35 -0
  248. package/dist/types/src/views/Editor/SearchPanel.vue.d.ts +111 -0
  249. package/dist/types/src/views/Editor/SelectPanel.vue.d.ts +2 -0
  250. package/dist/types/src/views/Editor/SymbolPanel.vue.d.ts +4 -0
  251. package/dist/types/src/views/Editor/Thumbnails/Templates.vue.d.ts +17 -0
  252. package/dist/types/src/views/Editor/Thumbnails/index.vue.d.ts +91 -0
  253. package/dist/types/src/views/Editor/Toolbar/ElementAnimationPanel.vue.d.ts +2 -0
  254. package/dist/types/src/views/Editor/Toolbar/ElementPositionPanel.vue.d.ts +2 -0
  255. package/dist/types/src/views/Editor/Toolbar/ElementStylePanel/AudioStylePanel.vue.d.ts +2 -0
  256. package/dist/types/src/views/Editor/Toolbar/ElementStylePanel/ChartStylePanel/ChartDataEditor.vue.d.ts +19 -0
  257. package/dist/types/src/views/Editor/Toolbar/ElementStylePanel/ChartStylePanel/ThemeColorsSetting.vue.d.ts +9 -0
  258. package/dist/types/src/views/Editor/Toolbar/ElementStylePanel/ChartStylePanel/index.vue.d.ts +2 -0
  259. package/dist/types/src/views/Editor/Toolbar/ElementStylePanel/ImageStylePanel.vue.d.ts +2 -0
  260. package/dist/types/src/views/Editor/Toolbar/ElementStylePanel/LatexStylePanel.vue.d.ts +2 -0
  261. package/dist/types/src/views/Editor/Toolbar/ElementStylePanel/LineStylePanel.vue.d.ts +2 -0
  262. package/dist/types/src/views/Editor/Toolbar/ElementStylePanel/ShapeStylePanel.vue.d.ts +2 -0
  263. package/dist/types/src/views/Editor/Toolbar/ElementStylePanel/TableStylePanel.vue.d.ts +2 -0
  264. package/dist/types/src/views/Editor/Toolbar/ElementStylePanel/TextStylePanel.vue.d.ts +2 -0
  265. package/dist/types/src/views/Editor/Toolbar/ElementStylePanel/VideoStylePanel.vue.d.ts +2 -0
  266. package/dist/types/src/views/Editor/Toolbar/ElementStylePanel/index.vue.d.ts +2 -0
  267. package/dist/types/src/views/Editor/Toolbar/MultiPositionPanel.vue.d.ts +2 -0
  268. package/dist/types/src/views/Editor/Toolbar/MultiStylePanel.vue.d.ts +2 -0
  269. package/dist/types/src/views/Editor/Toolbar/SlideAnimationPanel.vue.d.ts +2 -0
  270. package/dist/types/src/views/Editor/Toolbar/SlideDesignPanel/ThemeColorsSetting.vue.d.ts +6 -0
  271. package/dist/types/src/views/Editor/Toolbar/SlideDesignPanel/ThemeStylesExtract.vue.d.ts +6 -0
  272. package/dist/types/src/views/Editor/Toolbar/SlideDesignPanel/index.vue.d.ts +2 -0
  273. package/dist/types/src/views/Editor/Toolbar/common/ElementColorMask.vue.d.ts +2 -0
  274. package/dist/types/src/views/Editor/Toolbar/common/ElementFilter.vue.d.ts +2 -0
  275. package/dist/types/src/views/Editor/Toolbar/common/ElementFlip.vue.d.ts +2 -0
  276. package/dist/types/src/views/Editor/Toolbar/common/ElementOpacity.vue.d.ts +2 -0
  277. package/dist/types/src/views/Editor/Toolbar/common/ElementOutline.vue.d.ts +7 -0
  278. package/dist/types/src/views/Editor/Toolbar/common/ElementShadow.vue.d.ts +2 -0
  279. package/dist/types/src/views/Editor/Toolbar/common/RichTextBase.vue.d.ts +2 -0
  280. package/dist/types/src/views/Editor/Toolbar/common/SVGLine.vue.d.ts +14 -0
  281. package/dist/types/src/views/Editor/Toolbar/index.vue.d.ts +2 -0
  282. package/dist/types/src/views/Editor/index.vue.d.ts +2 -0
  283. package/dist/types/src/views/Mobile/MobileEditor/ElementToolbar.vue.d.ts +2 -0
  284. package/dist/types/src/views/Mobile/MobileEditor/Header.vue.d.ts +6 -0
  285. package/dist/types/src/views/Mobile/MobileEditor/MobileEditableElement.vue.d.ts +8 -0
  286. package/dist/types/src/views/Mobile/MobileEditor/MobileOperate.vue.d.ts +12 -0
  287. package/dist/types/src/views/Mobile/MobileEditor/SlideToolbar.vue.d.ts +2 -0
  288. package/dist/types/src/views/Mobile/MobileEditor/index.vue.d.ts +9 -0
  289. package/dist/types/src/views/Mobile/MobilePlayer.vue.d.ts +6 -0
  290. package/dist/types/src/views/Mobile/MobilePreview.vue.d.ts +8 -0
  291. package/dist/types/src/views/Mobile/MobileThumbnails.vue.d.ts +2 -0
  292. package/dist/types/src/views/Mobile/index.vue.d.ts +2 -0
  293. package/dist/types/src/views/Screen/BaseView.vue.d.ts +5 -0
  294. package/dist/types/src/views/Screen/BottomThumbnails.vue.d.ts +4 -0
  295. package/dist/types/src/views/Screen/CountdownTimer.vue.d.ts +13 -0
  296. package/dist/types/src/views/Screen/PresenterView.vue.d.ts +8 -0
  297. package/dist/types/src/views/Screen/ScreenElement.vue.d.ts +10 -0
  298. package/dist/types/src/views/Screen/ScreenSlide.vue.d.ts +10 -0
  299. package/dist/types/src/views/Screen/ScreenSlideList.vue.d.ts +9 -0
  300. package/dist/types/src/views/Screen/SlideThumbnails.vue.d.ts +9 -0
  301. package/dist/types/src/views/Screen/WritingBoardTool.vue.d.ts +77 -0
  302. package/dist/types/src/views/Screen/hooks/useExecPlay.d.ts +20 -0
  303. package/dist/types/src/views/Screen/hooks/useFullscreen.d.ts +5 -0
  304. package/dist/types/src/views/Screen/hooks/useSlideSize.d.ts +6 -0
  305. package/dist/types/src/views/Screen/hooks/useSlidesWithTurningMode.d.ts +14 -0
  306. package/dist/types/src/views/Screen/index.vue.d.ts +2 -0
  307. package/dist/types/src/views/components/ThumbnailSlide/ThumbnailElement.vue.d.ts +7 -0
  308. package/dist/types/src/views/components/ThumbnailSlide/index.vue.d.ts +10 -0
  309. package/dist/types/src/views/components/element/AudioElement/AudioPlayer.vue.d.ts +17 -0
  310. package/dist/types/src/views/components/element/AudioElement/BaseAudioElement.vue.d.ts +6 -0
  311. package/dist/types/src/views/components/element/AudioElement/ScreenAudioElement.vue.d.ts +39 -0
  312. package/dist/types/src/views/components/element/AudioElement/index.vue.d.ts +9 -0
  313. package/dist/types/src/views/components/element/ChartElement/BaseChartElement.vue.d.ts +7 -0
  314. package/dist/types/src/views/components/element/ChartElement/Chart.vue.d.ts +15 -0
  315. package/dist/types/src/views/components/element/ChartElement/chartOption.d.ts +15 -0
  316. package/dist/types/src/views/components/element/ChartElement/index.vue.d.ts +9 -0
  317. package/dist/types/src/views/components/element/ElementOutline.vue.d.ts +8 -0
  318. package/dist/types/src/views/components/element/ImageElement/BaseImageElement.vue.d.ts +6 -0
  319. package/dist/types/src/views/components/element/ImageElement/ImageClipHandler.vue.d.ts +18 -0
  320. package/dist/types/src/views/components/element/ImageElement/ImageOutline/ImageEllipseOutline.vue.d.ts +8 -0
  321. package/dist/types/src/views/components/element/ImageElement/ImageOutline/ImagePolygonOutline.vue.d.ts +9 -0
  322. package/dist/types/src/views/components/element/ImageElement/ImageOutline/ImageRectOutline.vue.d.ts +11 -0
  323. package/dist/types/src/views/components/element/ImageElement/ImageOutline/index.vue.d.ts +6 -0
  324. package/dist/types/src/views/components/element/ImageElement/index.vue.d.ts +9 -0
  325. package/dist/types/src/views/components/element/ImageElement/useClipImage.d.ts +19 -0
  326. package/dist/types/src/views/components/element/ImageElement/useFilter.d.ts +6 -0
  327. package/dist/types/src/views/components/element/LatexElement/BaseLatexElement.vue.d.ts +6 -0
  328. package/dist/types/src/views/components/element/LatexElement/index.vue.d.ts +9 -0
  329. package/dist/types/src/views/components/element/LineElement/BaseLineElement.vue.d.ts +6 -0
  330. package/dist/types/src/views/components/element/LineElement/LinePointMarker.vue.d.ts +11 -0
  331. package/dist/types/src/views/components/element/LineElement/index.vue.d.ts +9 -0
  332. package/dist/types/src/views/components/element/ProsemirrorEditor.vue.d.ts +33 -0
  333. package/dist/types/src/views/components/element/ShapeElement/BaseShapeElement.vue.d.ts +6 -0
  334. package/dist/types/src/views/components/element/ShapeElement/GradientDefs.vue.d.ts +11 -0
  335. package/dist/types/src/views/components/element/ShapeElement/PatternDefs.vue.d.ts +6 -0
  336. package/dist/types/src/views/components/element/ShapeElement/index.vue.d.ts +68 -0
  337. package/dist/types/src/views/components/element/TableElement/BaseTableElement.vue.d.ts +6 -0
  338. package/dist/types/src/views/components/element/TableElement/CustomTextarea.vue.d.ts +15 -0
  339. package/dist/types/src/views/components/element/TableElement/EditableTable.vue.d.ts +22 -0
  340. package/dist/types/src/views/components/element/TableElement/StaticTable.vue.d.ts +14 -0
  341. package/dist/types/src/views/components/element/TableElement/index.vue.d.ts +11 -0
  342. package/dist/types/src/views/components/element/TableElement/useHideCells.d.ts +6 -0
  343. package/dist/types/src/views/components/element/TableElement/useSubThemeColor.d.ts +6 -0
  344. package/dist/types/src/views/components/element/TableElement/utils.d.ts +8 -0
  345. package/dist/types/src/views/components/element/TextElement/BaseTextElement.vue.d.ts +7 -0
  346. package/dist/types/src/views/components/element/TextElement/index.vue.d.ts +11 -0
  347. package/dist/types/src/views/components/element/VideoElement/BaseVideoElement.vue.d.ts +6 -0
  348. package/dist/types/src/views/components/element/VideoElement/ScreenVideoElement.vue.d.ts +6 -0
  349. package/dist/types/src/views/components/element/VideoElement/VideoPlayer/index.vue.d.ts +19 -0
  350. package/dist/types/src/views/components/element/VideoElement/VideoPlayer/useMSE.d.ts +3 -0
  351. package/dist/types/src/views/components/element/VideoElement/index.vue.d.ts +9 -0
  352. package/dist/types/src/views/components/element/hooks/useElementFill.d.ts +6 -0
  353. package/dist/types/src/views/components/element/hooks/useElementFlip.d.ts +5 -0
  354. package/dist/types/src/views/components/element/hooks/useElementOutline.d.ts +9 -0
  355. package/dist/types/src/views/components/element/hooks/useElementShadow.d.ts +6 -0
  356. package/dist/vue-i18n-R6dI71u7.js +3595 -0
  357. package/package.json +109 -0
@@ -0,0 +1,3595 @@
1
+ import * as pt from "vue";
2
+ import { defineComponent as Vt, h as Fn, Fragment as Mn, effectScope as gr, inject as pr, computed as Ue, watch as It, onMounted as Nr, onUnmounted as Lr, isRef as Tr, ref as Or, shallowRef as Ir, createVNode as hr, Text as br } from "vue";
3
+ /*!
4
+ * shared v11.2.8
5
+ * (c) 2025 kazuya kawaguchi
6
+ * Released under the MIT License.
7
+ */
8
+ function ce(e, t) {
9
+ typeof console < "u" && (console.warn("[intlify] " + e), t && console.warn(t.stack));
10
+ }
11
+ const en = {};
12
+ function $t(e) {
13
+ en[e] || (en[e] = !0, ce(e));
14
+ }
15
+ const oe = typeof window < "u";
16
+ let ee, Te;
17
+ if (process.env.NODE_ENV !== "production") {
18
+ const e = oe && window.performance;
19
+ e && e.mark && e.measure && e.clearMarks && // @ts-ignore browser compat
20
+ e.clearMeasures && (ee = (t) => {
21
+ e.mark(t);
22
+ }, Te = (t, n, r) => {
23
+ e.measure(t, n, r), e.clearMarks(n), e.clearMarks(r);
24
+ });
25
+ }
26
+ const vr = /\{([0-9a-zA-Z]+)\}/g;
27
+ function Ze(e, ...t) {
28
+ return t.length === 1 && F(t[0]) && (t = t[0]), (!t || !t.hasOwnProperty) && (t = {}), e.replace(vr, (n, r) => t.hasOwnProperty(r) ? t[r] : "");
29
+ }
30
+ const ue = (e, t = !1) => t ? Symbol.for(e) : Symbol(e), Ar = (e, t, n) => Cr({ l: e, k: t, s: n }), Cr = (e) => JSON.stringify(e).replace(/\u2028/g, "\\u2028").replace(/\u2029/g, "\\u2029").replace(/\u0027/g, "\\u0027"), B = (e) => typeof e == "number" && isFinite(e), Sr = (e) => Wt(e) === "[object Date]", Se = (e) => Wt(e) === "[object RegExp]", ze = (e) => k(e) && Object.keys(e).length === 0, J = Object.assign, Dr = Object.create, $ = (e = null) => Dr(e);
31
+ let tn;
32
+ const Le = () => tn || (tn = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : typeof global < "u" ? global : $());
33
+ function nn(e) {
34
+ return e.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;").replace(/'/g, "&apos;").replace(/\//g, "&#x2F;").replace(/=/g, "&#x3D;");
35
+ }
36
+ function rn(e) {
37
+ return e.replace(/&(?![a-zA-Z0-9#]{2,6};)/g, "&amp;").replace(/"/g, "&quot;").replace(/'/g, "&apos;").replace(/</g, "&lt;").replace(/>/g, "&gt;");
38
+ }
39
+ function Pr(e) {
40
+ return e = e.replace(/(\w+)\s*=\s*"([^"]*)"/g, (r, s, a) => `${s}="${rn(a)}"`), e = e.replace(/(\w+)\s*=\s*'([^']*)'/g, (r, s, a) => `${s}='${rn(a)}'`), /\s*on\w+\s*=\s*["']?[^"'>]+["']?/gi.test(e) && (process.env.NODE_ENV !== "production" && ce("Potentially dangerous event handlers detected in translation. Consider removing onclick, onerror, etc. from your translation messages."), e = e.replace(/(\s+)(on)(\w+\s*=)/gi, "$1&#111;n$3")), [
41
+ // In href, src, action, formaction attributes
42
+ /(\s+(?:href|src|action|formaction)\s*=\s*["']?)\s*javascript:/gi,
43
+ // In style attributes within url()
44
+ /(style\s*=\s*["'][^"']*url\s*\(\s*)javascript:/gi
45
+ ].forEach((r) => {
46
+ e = e.replace(r, "$1javascript&#58;");
47
+ }), e;
48
+ }
49
+ const yr = Object.prototype.hasOwnProperty;
50
+ function ae(e, t) {
51
+ return yr.call(e, t);
52
+ }
53
+ const H = Array.isArray, W = (e) => typeof e == "function", h = (e) => typeof e == "string", M = (e) => typeof e == "boolean", F = (e) => e !== null && typeof e == "object", Rr = (e) => F(e) && W(e.then) && W(e.catch), Un = Object.prototype.toString, Wt = (e) => Un.call(e), k = (e) => Wt(e) === "[object Object]", kr = (e) => e == null ? "" : H(e) || k(e) && e.toString === Un ? JSON.stringify(e, null, 2) : String(e);
54
+ function Gt(e, t = "") {
55
+ return e.reduce((n, r, s) => s === 0 ? n + r : n + t + r, "");
56
+ }
57
+ const sn = 2;
58
+ function Fr(e, t = 0, n = e.length) {
59
+ const r = e.split(/\r?\n/);
60
+ let s = 0;
61
+ const a = [];
62
+ for (let o = 0; o < r.length; o++)
63
+ if (s += r[o].length + 1, s >= t) {
64
+ for (let i = o - sn; i <= o + sn || n > s; i++) {
65
+ if (i < 0 || i >= r.length)
66
+ continue;
67
+ const u = i + 1;
68
+ a.push(`${u}${" ".repeat(3 - String(u).length)}| ${r[i]}`);
69
+ const E = r[i].length;
70
+ if (i === o) {
71
+ const I = t - (s - E) + 1, T = Math.max(1, n > s ? E - I : n - t);
72
+ a.push(" | " + " ".repeat(I) + "^".repeat(T));
73
+ } else if (i > o) {
74
+ if (n > s) {
75
+ const I = Math.max(Math.min(n - s, E), 1);
76
+ a.push(" | " + "^".repeat(I));
77
+ }
78
+ s += E + 1;
79
+ }
80
+ }
81
+ break;
82
+ }
83
+ return a.join(`
84
+ `);
85
+ }
86
+ function xt() {
87
+ const e = /* @__PURE__ */ new Map();
88
+ return {
89
+ events: e,
90
+ on(n, r) {
91
+ const s = e.get(n);
92
+ s && s.push(r) || e.set(n, [r]);
93
+ },
94
+ off(n, r) {
95
+ const s = e.get(n);
96
+ s && s.splice(s.indexOf(r) >>> 0, 1);
97
+ },
98
+ emit(n, r) {
99
+ (e.get(n) || []).slice().map((s) => s(r)), (e.get("*") || []).slice().map((s) => s(n, r));
100
+ }
101
+ };
102
+ }
103
+ const Be = (e) => !F(e) || H(e);
104
+ function Qe(e, t) {
105
+ if (Be(e) || Be(t))
106
+ throw new Error("Invalid value");
107
+ const n = [{ src: e, des: t }];
108
+ for (; n.length; ) {
109
+ const { src: r, des: s } = n.pop();
110
+ Object.keys(r).forEach((a) => {
111
+ a !== "__proto__" && (F(r[a]) && !F(s[a]) && (s[a] = Array.isArray(r[a]) ? [] : $()), Be(s[a]) || Be(r[a]) ? s[a] = r[a] : n.push({ src: r[a], des: s[a] }));
112
+ });
113
+ }
114
+ }
115
+ /*!
116
+ * message-compiler v11.2.8
117
+ * (c) 2025 kazuya kawaguchi
118
+ * Released under the MIT License.
119
+ */
120
+ function Mr(e, t, n) {
121
+ return { line: e, column: t, offset: n };
122
+ }
123
+ function ht(e, t, n) {
124
+ return { start: e, end: t };
125
+ }
126
+ const P = {
127
+ // tokenizer error codes
128
+ EXPECTED_TOKEN: 1,
129
+ INVALID_TOKEN_IN_PLACEHOLDER: 2,
130
+ UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER: 3,
131
+ UNKNOWN_ESCAPE_SEQUENCE: 4,
132
+ INVALID_UNICODE_ESCAPE_SEQUENCE: 5,
133
+ UNBALANCED_CLOSING_BRACE: 6,
134
+ UNTERMINATED_CLOSING_BRACE: 7,
135
+ EMPTY_PLACEHOLDER: 8,
136
+ NOT_ALLOW_NEST_PLACEHOLDER: 9,
137
+ INVALID_LINKED_FORMAT: 10,
138
+ // parser error codes
139
+ MUST_HAVE_MESSAGES_IN_PLURAL: 11,
140
+ UNEXPECTED_EMPTY_LINKED_MODIFIER: 12,
141
+ UNEXPECTED_EMPTY_LINKED_KEY: 13,
142
+ UNEXPECTED_LEXICAL_ANALYSIS: 14,
143
+ // generator error codes
144
+ UNHANDLED_CODEGEN_NODE_TYPE: 15,
145
+ // minifier error codes
146
+ UNHANDLED_MINIFIER_NODE_TYPE: 16
147
+ }, Ur = 17, wr = {
148
+ // tokenizer error messages
149
+ [P.EXPECTED_TOKEN]: "Expected token: '{0}'",
150
+ [P.INVALID_TOKEN_IN_PLACEHOLDER]: "Invalid token in placeholder: '{0}'",
151
+ [P.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER]: "Unterminated single quote in placeholder",
152
+ [P.UNKNOWN_ESCAPE_SEQUENCE]: "Unknown escape sequence: \\{0}",
153
+ [P.INVALID_UNICODE_ESCAPE_SEQUENCE]: "Invalid unicode escape sequence: {0}",
154
+ [P.UNBALANCED_CLOSING_BRACE]: "Unbalanced closing brace",
155
+ [P.UNTERMINATED_CLOSING_BRACE]: "Unterminated closing brace",
156
+ [P.EMPTY_PLACEHOLDER]: "Empty placeholder",
157
+ [P.NOT_ALLOW_NEST_PLACEHOLDER]: "Not allowed nest placeholder",
158
+ [P.INVALID_LINKED_FORMAT]: "Invalid linked format",
159
+ // parser error messages
160
+ [P.MUST_HAVE_MESSAGES_IN_PLURAL]: "Plural must have messages",
161
+ [P.UNEXPECTED_EMPTY_LINKED_MODIFIER]: "Unexpected empty linked modifier",
162
+ [P.UNEXPECTED_EMPTY_LINKED_KEY]: "Unexpected empty linked key",
163
+ [P.UNEXPECTED_LEXICAL_ANALYSIS]: "Unexpected lexical analysis in token: '{0}'",
164
+ // generator error messages
165
+ [P.UNHANDLED_CODEGEN_NODE_TYPE]: "unhandled codegen node type: '{0}'",
166
+ // minimizer error messages
167
+ [P.UNHANDLED_MINIFIER_NODE_TYPE]: "unhandled mimifier node type: '{0}'"
168
+ };
169
+ function ye(e, t, n = {}) {
170
+ const { domain: r, messages: s, args: a } = n, o = process.env.NODE_ENV !== "production" ? Ze((s || wr)[e] || "", ...a || []) : e, i = new SyntaxError(String(o));
171
+ return i.code = e, t && (i.location = t), i.domain = r, i;
172
+ }
173
+ function Vr(e) {
174
+ throw e;
175
+ }
176
+ const $r = /<\/?[\w\s="/.':;#-\/]+>/, Wr = (e) => $r.test(e), le = " ", Gr = "\r", Q = `
177
+ `, xr = "\u2028", Hr = "\u2029";
178
+ function Yr(e) {
179
+ const t = e;
180
+ let n = 0, r = 1, s = 1, a = 0;
181
+ const o = (g) => t[g] === Gr && t[g + 1] === Q, i = (g) => t[g] === Q, u = (g) => t[g] === Hr, E = (g) => t[g] === xr, I = (g) => o(g) || i(g) || u(g) || E(g), T = () => n, N = () => r, C = () => s, y = () => a, A = (g) => o(g) || u(g) || E(g) ? Q : t[g], S = () => A(n), f = () => A(n + a);
182
+ function m() {
183
+ return a = 0, I(n) && (r++, s = 0), o(n) && n++, n++, s++, t[n];
184
+ }
185
+ function O() {
186
+ return o(n + a) && a++, a++, t[n + a];
187
+ }
188
+ function d() {
189
+ n = 0, r = 1, s = 1, a = 0;
190
+ }
191
+ function b(g = 0) {
192
+ a = g;
193
+ }
194
+ function v() {
195
+ const g = n + a;
196
+ for (; g !== n; )
197
+ m();
198
+ a = 0;
199
+ }
200
+ return {
201
+ index: T,
202
+ line: N,
203
+ column: C,
204
+ peekOffset: y,
205
+ charAt: A,
206
+ currentChar: S,
207
+ currentPeek: f,
208
+ next: m,
209
+ peek: O,
210
+ reset: d,
211
+ resetPeek: b,
212
+ skipToPeek: v
213
+ };
214
+ }
215
+ const _e = void 0, Kr = ".", an = "'", jr = "tokenizer";
216
+ function Br(e, t = {}) {
217
+ const n = t.location !== !1, r = Yr(e), s = () => r.index(), a = () => Mr(r.line(), r.column(), r.index()), o = a(), i = s(), u = {
218
+ currentType: 13,
219
+ offset: i,
220
+ startLoc: o,
221
+ endLoc: o,
222
+ lastType: 13,
223
+ lastOffset: i,
224
+ lastStartLoc: o,
225
+ lastEndLoc: o,
226
+ braceNest: 0,
227
+ inLinked: !1,
228
+ text: ""
229
+ }, E = () => u, { onError: I } = t;
230
+ function T(l, c, p, ...D) {
231
+ const x = E();
232
+ if (c.column += p, c.offset += p, I) {
233
+ const K = n ? ht(x.startLoc, c) : null, U = ye(l, K, {
234
+ domain: jr,
235
+ args: D
236
+ });
237
+ I(U);
238
+ }
239
+ }
240
+ function N(l, c, p) {
241
+ l.endLoc = a(), l.currentType = c;
242
+ const D = { type: c };
243
+ return n && (D.loc = ht(l.startLoc, l.endLoc)), p != null && (D.value = p), D;
244
+ }
245
+ const C = (l) => N(
246
+ l,
247
+ 13
248
+ /* TokenTypes.EOF */
249
+ );
250
+ function y(l, c) {
251
+ return l.currentChar() === c ? (l.next(), c) : (T(P.EXPECTED_TOKEN, a(), 0, c), "");
252
+ }
253
+ function A(l) {
254
+ let c = "";
255
+ for (; l.currentPeek() === le || l.currentPeek() === Q; )
256
+ c += l.currentPeek(), l.peek();
257
+ return c;
258
+ }
259
+ function S(l) {
260
+ const c = A(l);
261
+ return l.skipToPeek(), c;
262
+ }
263
+ function f(l) {
264
+ if (l === _e)
265
+ return !1;
266
+ const c = l.charCodeAt(0);
267
+ return c >= 97 && c <= 122 || // a-z
268
+ c >= 65 && c <= 90 || // A-Z
269
+ c === 95;
270
+ }
271
+ function m(l) {
272
+ if (l === _e)
273
+ return !1;
274
+ const c = l.charCodeAt(0);
275
+ return c >= 48 && c <= 57;
276
+ }
277
+ function O(l, c) {
278
+ const { currentType: p } = c;
279
+ if (p !== 2)
280
+ return !1;
281
+ A(l);
282
+ const D = f(l.currentPeek());
283
+ return l.resetPeek(), D;
284
+ }
285
+ function d(l, c) {
286
+ const { currentType: p } = c;
287
+ if (p !== 2)
288
+ return !1;
289
+ A(l);
290
+ const D = l.currentPeek() === "-" ? l.peek() : l.currentPeek(), x = m(D);
291
+ return l.resetPeek(), x;
292
+ }
293
+ function b(l, c) {
294
+ const { currentType: p } = c;
295
+ if (p !== 2)
296
+ return !1;
297
+ A(l);
298
+ const D = l.currentPeek() === an;
299
+ return l.resetPeek(), D;
300
+ }
301
+ function v(l, c) {
302
+ const { currentType: p } = c;
303
+ if (p !== 7)
304
+ return !1;
305
+ A(l);
306
+ const D = l.currentPeek() === ".";
307
+ return l.resetPeek(), D;
308
+ }
309
+ function g(l, c) {
310
+ const { currentType: p } = c;
311
+ if (p !== 8)
312
+ return !1;
313
+ A(l);
314
+ const D = f(l.currentPeek());
315
+ return l.resetPeek(), D;
316
+ }
317
+ function R(l, c) {
318
+ const { currentType: p } = c;
319
+ if (!(p === 7 || p === 11))
320
+ return !1;
321
+ A(l);
322
+ const D = l.currentPeek() === ":";
323
+ return l.resetPeek(), D;
324
+ }
325
+ function w(l, c) {
326
+ const { currentType: p } = c;
327
+ if (p !== 9)
328
+ return !1;
329
+ const D = () => {
330
+ const K = l.currentPeek();
331
+ return K === "{" ? f(l.peek()) : K === "@" || K === "|" || K === ":" || K === "." || K === le || !K ? !1 : K === Q ? (l.peek(), D()) : se(l, !1);
332
+ }, x = D();
333
+ return l.resetPeek(), x;
334
+ }
335
+ function X(l) {
336
+ A(l);
337
+ const c = l.currentPeek() === "|";
338
+ return l.resetPeek(), c;
339
+ }
340
+ function se(l, c = !0) {
341
+ const p = (x = !1, K = "") => {
342
+ const U = l.currentPeek();
343
+ return U === "{" || U === "@" || !U ? x : U === "|" ? !(K === le || K === Q) : U === le ? (l.peek(), p(!0, le)) : U === Q ? (l.peek(), p(!0, Q)) : !0;
344
+ }, D = p();
345
+ return c && l.resetPeek(), D;
346
+ }
347
+ function Y(l, c) {
348
+ const p = l.currentChar();
349
+ return p === _e ? _e : c(p) ? (l.next(), p) : null;
350
+ }
351
+ function he(l) {
352
+ const c = l.charCodeAt(0);
353
+ return c >= 97 && c <= 122 || // a-z
354
+ c >= 65 && c <= 90 || // A-Z
355
+ c >= 48 && c <= 57 || // 0-9
356
+ c === 95 || // _
357
+ c === 36;
358
+ }
359
+ function nt(l) {
360
+ return Y(l, he);
361
+ }
362
+ function rt(l) {
363
+ const c = l.charCodeAt(0);
364
+ return c >= 97 && c <= 122 || // a-z
365
+ c >= 65 && c <= 90 || // A-Z
366
+ c >= 48 && c <= 57 || // 0-9
367
+ c === 95 || // _
368
+ c === 36 || // $
369
+ c === 45;
370
+ }
371
+ function st(l) {
372
+ return Y(l, rt);
373
+ }
374
+ function at(l) {
375
+ const c = l.charCodeAt(0);
376
+ return c >= 48 && c <= 57;
377
+ }
378
+ function ot(l) {
379
+ return Y(l, at);
380
+ }
381
+ function lt(l) {
382
+ const c = l.charCodeAt(0);
383
+ return c >= 48 && c <= 57 || // 0-9
384
+ c >= 65 && c <= 70 || // A-F
385
+ c >= 97 && c <= 102;
386
+ }
387
+ function fe(l) {
388
+ return Y(l, lt);
389
+ }
390
+ function Re(l) {
391
+ let c = "", p = "";
392
+ for (; c = ot(l); )
393
+ p += c;
394
+ return p;
395
+ }
396
+ function it(l) {
397
+ let c = "";
398
+ for (; ; ) {
399
+ const p = l.currentChar();
400
+ if (p === "{" || p === "}" || p === "@" || p === "|" || !p)
401
+ break;
402
+ if (p === le || p === Q)
403
+ if (se(l))
404
+ c += p, l.next();
405
+ else {
406
+ if (X(l))
407
+ break;
408
+ c += p, l.next();
409
+ }
410
+ else
411
+ c += p, l.next();
412
+ }
413
+ return c;
414
+ }
415
+ function ct(l) {
416
+ S(l);
417
+ let c = "", p = "";
418
+ for (; c = st(l); )
419
+ p += c;
420
+ const D = l.currentChar();
421
+ if (D && D !== "}" && D !== _e && D !== le && D !== Q && D !== " ") {
422
+ const x = Ke(l);
423
+ return T(P.INVALID_TOKEN_IN_PLACEHOLDER, a(), 0, p + x), p + x;
424
+ }
425
+ return l.currentChar() === _e && T(P.UNTERMINATED_CLOSING_BRACE, a(), 0), p;
426
+ }
427
+ function ut(l) {
428
+ S(l);
429
+ let c = "";
430
+ return l.currentChar() === "-" ? (l.next(), c += `-${Re(l)}`) : c += Re(l), l.currentChar() === _e && T(P.UNTERMINATED_CLOSING_BRACE, a(), 0), c;
431
+ }
432
+ function ft(l) {
433
+ return l !== an && l !== Q;
434
+ }
435
+ function Zt(l) {
436
+ S(l), y(l, "'");
437
+ let c = "", p = "";
438
+ for (; c = Y(l, ft); )
439
+ c === "\\" ? p += _t(l) : p += c;
440
+ const D = l.currentChar();
441
+ return D === Q || D === _e ? (T(P.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER, a(), 0), D === Q && (l.next(), y(l, "'")), p) : (y(l, "'"), p);
442
+ }
443
+ function _t(l) {
444
+ const c = l.currentChar();
445
+ switch (c) {
446
+ case "\\":
447
+ case "'":
448
+ return l.next(), `\\${c}`;
449
+ case "u":
450
+ return Ye(l, c, 4);
451
+ case "U":
452
+ return Ye(l, c, 6);
453
+ default:
454
+ return T(P.UNKNOWN_ESCAPE_SEQUENCE, a(), 0, c), "";
455
+ }
456
+ }
457
+ function Ye(l, c, p) {
458
+ y(l, c);
459
+ let D = "";
460
+ for (let x = 0; x < p; x++) {
461
+ const K = fe(l);
462
+ if (!K) {
463
+ T(P.INVALID_UNICODE_ESCAPE_SEQUENCE, a(), 0, `\\${c}${D}${l.currentChar()}`);
464
+ break;
465
+ }
466
+ D += K;
467
+ }
468
+ return `\\${c}${D}`;
469
+ }
470
+ function mt(l) {
471
+ return l !== "{" && l !== "}" && l !== le && l !== Q;
472
+ }
473
+ function Ke(l) {
474
+ S(l);
475
+ let c = "", p = "";
476
+ for (; c = Y(l, mt); )
477
+ p += c;
478
+ return p;
479
+ }
480
+ function dt(l) {
481
+ let c = "", p = "";
482
+ for (; c = nt(l); )
483
+ p += c;
484
+ return p;
485
+ }
486
+ function Et(l) {
487
+ const c = (p) => {
488
+ const D = l.currentChar();
489
+ return D === "{" || D === "@" || D === "|" || D === "(" || D === ")" || !D || D === le ? p : (p += D, l.next(), c(p));
490
+ };
491
+ return c("");
492
+ }
493
+ function ke(l) {
494
+ S(l);
495
+ const c = y(
496
+ l,
497
+ "|"
498
+ /* TokenChars.Pipe */
499
+ );
500
+ return S(l), c;
501
+ }
502
+ function Fe(l, c) {
503
+ let p = null;
504
+ switch (l.currentChar()) {
505
+ case "{":
506
+ return c.braceNest >= 1 && T(P.NOT_ALLOW_NEST_PLACEHOLDER, a(), 0), l.next(), p = N(
507
+ c,
508
+ 2,
509
+ "{"
510
+ /* TokenChars.BraceLeft */
511
+ ), S(l), c.braceNest++, p;
512
+ case "}":
513
+ return c.braceNest > 0 && c.currentType === 2 && T(P.EMPTY_PLACEHOLDER, a(), 0), l.next(), p = N(
514
+ c,
515
+ 3,
516
+ "}"
517
+ /* TokenChars.BraceRight */
518
+ ), c.braceNest--, c.braceNest > 0 && S(l), c.inLinked && c.braceNest === 0 && (c.inLinked = !1), p;
519
+ case "@":
520
+ return c.braceNest > 0 && T(P.UNTERMINATED_CLOSING_BRACE, a(), 0), p = ge(l, c) || C(c), c.braceNest = 0, p;
521
+ default: {
522
+ let x = !0, K = !0, U = !0;
523
+ if (X(l))
524
+ return c.braceNest > 0 && T(P.UNTERMINATED_CLOSING_BRACE, a(), 0), p = N(c, 1, ke(l)), c.braceNest = 0, c.inLinked = !1, p;
525
+ if (c.braceNest > 0 && (c.currentType === 4 || c.currentType === 5 || c.currentType === 6))
526
+ return T(P.UNTERMINATED_CLOSING_BRACE, a(), 0), c.braceNest = 0, Me(l, c);
527
+ if (x = O(l, c))
528
+ return p = N(c, 4, ct(l)), S(l), p;
529
+ if (K = d(l, c))
530
+ return p = N(c, 5, ut(l)), S(l), p;
531
+ if (U = b(l, c))
532
+ return p = N(c, 6, Zt(l)), S(l), p;
533
+ if (!x && !K && !U)
534
+ return p = N(c, 12, Ke(l)), T(P.INVALID_TOKEN_IN_PLACEHOLDER, a(), 0, p.value), S(l), p;
535
+ break;
536
+ }
537
+ }
538
+ return p;
539
+ }
540
+ function ge(l, c) {
541
+ const { currentType: p } = c;
542
+ let D = null;
543
+ const x = l.currentChar();
544
+ switch ((p === 7 || p === 8 || p === 11 || p === 9) && (x === Q || x === le) && T(P.INVALID_LINKED_FORMAT, a(), 0), x) {
545
+ case "@":
546
+ return l.next(), D = N(
547
+ c,
548
+ 7,
549
+ "@"
550
+ /* TokenChars.LinkedAlias */
551
+ ), c.inLinked = !0, D;
552
+ case ".":
553
+ return S(l), l.next(), N(
554
+ c,
555
+ 8,
556
+ "."
557
+ /* TokenChars.LinkedDot */
558
+ );
559
+ case ":":
560
+ return S(l), l.next(), N(
561
+ c,
562
+ 9,
563
+ ":"
564
+ /* TokenChars.LinkedDelimiter */
565
+ );
566
+ default:
567
+ return X(l) ? (D = N(c, 1, ke(l)), c.braceNest = 0, c.inLinked = !1, D) : v(l, c) || R(l, c) ? (S(l), ge(l, c)) : g(l, c) ? (S(l), N(c, 11, dt(l))) : w(l, c) ? (S(l), x === "{" ? Fe(l, c) || D : N(c, 10, Et(l))) : (p === 7 && T(P.INVALID_LINKED_FORMAT, a(), 0), c.braceNest = 0, c.inLinked = !1, Me(l, c));
568
+ }
569
+ }
570
+ function Me(l, c) {
571
+ let p = {
572
+ type: 13
573
+ /* TokenTypes.EOF */
574
+ };
575
+ if (c.braceNest > 0)
576
+ return Fe(l, c) || C(c);
577
+ if (c.inLinked)
578
+ return ge(l, c) || C(c);
579
+ switch (l.currentChar()) {
580
+ case "{":
581
+ return Fe(l, c) || C(c);
582
+ case "}":
583
+ return T(P.UNBALANCED_CLOSING_BRACE, a(), 0), l.next(), N(
584
+ c,
585
+ 3,
586
+ "}"
587
+ /* TokenChars.BraceRight */
588
+ );
589
+ case "@":
590
+ return ge(l, c) || C(c);
591
+ default: {
592
+ if (X(l))
593
+ return p = N(c, 1, ke(l)), c.braceNest = 0, c.inLinked = !1, p;
594
+ if (se(l))
595
+ return N(c, 0, it(l));
596
+ break;
597
+ }
598
+ }
599
+ return p;
600
+ }
601
+ function gt() {
602
+ const { currentType: l, offset: c, startLoc: p, endLoc: D } = u;
603
+ return u.lastType = l, u.lastOffset = c, u.lastStartLoc = p, u.lastEndLoc = D, u.offset = s(), u.startLoc = a(), r.currentChar() === _e ? N(
604
+ u,
605
+ 13
606
+ /* TokenTypes.EOF */
607
+ ) : Me(r, u);
608
+ }
609
+ return {
610
+ nextToken: gt,
611
+ currentOffset: s,
612
+ currentPosition: a,
613
+ context: E
614
+ };
615
+ }
616
+ const Xr = "parser", Jr = /(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;
617
+ function Qr(e, t, n) {
618
+ switch (e) {
619
+ case "\\\\":
620
+ return "\\";
621
+ case "\\'":
622
+ return "'";
623
+ default: {
624
+ const r = parseInt(t || n, 16);
625
+ return r <= 55295 || r >= 57344 ? String.fromCodePoint(r) : "�";
626
+ }
627
+ }
628
+ }
629
+ function qr(e = {}) {
630
+ const t = e.location !== !1, { onError: n } = e;
631
+ function r(f, m, O, d, ...b) {
632
+ const v = f.currentPosition();
633
+ if (v.offset += d, v.column += d, n) {
634
+ const g = t ? ht(O, v) : null, R = ye(m, g, {
635
+ domain: Xr,
636
+ args: b
637
+ });
638
+ n(R);
639
+ }
640
+ }
641
+ function s(f, m, O) {
642
+ const d = { type: f };
643
+ return t && (d.start = m, d.end = m, d.loc = { start: O, end: O }), d;
644
+ }
645
+ function a(f, m, O, d) {
646
+ t && (f.end = m, f.loc && (f.loc.end = O));
647
+ }
648
+ function o(f, m) {
649
+ const O = f.context(), d = s(3, O.offset, O.startLoc);
650
+ return d.value = m, a(d, f.currentOffset(), f.currentPosition()), d;
651
+ }
652
+ function i(f, m) {
653
+ const O = f.context(), { lastOffset: d, lastStartLoc: b } = O, v = s(5, d, b);
654
+ return v.index = parseInt(m, 10), f.nextToken(), a(v, f.currentOffset(), f.currentPosition()), v;
655
+ }
656
+ function u(f, m) {
657
+ const O = f.context(), { lastOffset: d, lastStartLoc: b } = O, v = s(4, d, b);
658
+ return v.key = m, f.nextToken(), a(v, f.currentOffset(), f.currentPosition()), v;
659
+ }
660
+ function E(f, m) {
661
+ const O = f.context(), { lastOffset: d, lastStartLoc: b } = O, v = s(9, d, b);
662
+ return v.value = m.replace(Jr, Qr), f.nextToken(), a(v, f.currentOffset(), f.currentPosition()), v;
663
+ }
664
+ function I(f) {
665
+ const m = f.nextToken(), O = f.context(), { lastOffset: d, lastStartLoc: b } = O, v = s(8, d, b);
666
+ return m.type !== 11 ? (r(f, P.UNEXPECTED_EMPTY_LINKED_MODIFIER, O.lastStartLoc, 0), v.value = "", a(v, d, b), {
667
+ nextConsumeToken: m,
668
+ node: v
669
+ }) : (m.value == null && r(f, P.UNEXPECTED_LEXICAL_ANALYSIS, O.lastStartLoc, 0, ie(m)), v.value = m.value || "", a(v, f.currentOffset(), f.currentPosition()), {
670
+ node: v
671
+ });
672
+ }
673
+ function T(f, m) {
674
+ const O = f.context(), d = s(7, O.offset, O.startLoc);
675
+ return d.value = m, a(d, f.currentOffset(), f.currentPosition()), d;
676
+ }
677
+ function N(f) {
678
+ const m = f.context(), O = s(6, m.offset, m.startLoc);
679
+ let d = f.nextToken();
680
+ if (d.type === 8) {
681
+ const b = I(f);
682
+ O.modifier = b.node, d = b.nextConsumeToken || f.nextToken();
683
+ }
684
+ switch (d.type !== 9 && r(f, P.UNEXPECTED_LEXICAL_ANALYSIS, m.lastStartLoc, 0, ie(d)), d = f.nextToken(), d.type === 2 && (d = f.nextToken()), d.type) {
685
+ case 10:
686
+ d.value == null && r(f, P.UNEXPECTED_LEXICAL_ANALYSIS, m.lastStartLoc, 0, ie(d)), O.key = T(f, d.value || "");
687
+ break;
688
+ case 4:
689
+ d.value == null && r(f, P.UNEXPECTED_LEXICAL_ANALYSIS, m.lastStartLoc, 0, ie(d)), O.key = u(f, d.value || "");
690
+ break;
691
+ case 5:
692
+ d.value == null && r(f, P.UNEXPECTED_LEXICAL_ANALYSIS, m.lastStartLoc, 0, ie(d)), O.key = i(f, d.value || "");
693
+ break;
694
+ case 6:
695
+ d.value == null && r(f, P.UNEXPECTED_LEXICAL_ANALYSIS, m.lastStartLoc, 0, ie(d)), O.key = E(f, d.value || "");
696
+ break;
697
+ default: {
698
+ r(f, P.UNEXPECTED_EMPTY_LINKED_KEY, m.lastStartLoc, 0);
699
+ const b = f.context(), v = s(7, b.offset, b.startLoc);
700
+ return v.value = "", a(v, b.offset, b.startLoc), O.key = v, a(O, b.offset, b.startLoc), {
701
+ nextConsumeToken: d,
702
+ node: O
703
+ };
704
+ }
705
+ }
706
+ return a(O, f.currentOffset(), f.currentPosition()), {
707
+ node: O
708
+ };
709
+ }
710
+ function C(f) {
711
+ const m = f.context(), O = m.currentType === 1 ? f.currentOffset() : m.offset, d = m.currentType === 1 ? m.endLoc : m.startLoc, b = s(2, O, d);
712
+ b.items = [];
713
+ let v = null;
714
+ do {
715
+ const w = v || f.nextToken();
716
+ switch (v = null, w.type) {
717
+ case 0:
718
+ w.value == null && r(f, P.UNEXPECTED_LEXICAL_ANALYSIS, m.lastStartLoc, 0, ie(w)), b.items.push(o(f, w.value || ""));
719
+ break;
720
+ case 5:
721
+ w.value == null && r(f, P.UNEXPECTED_LEXICAL_ANALYSIS, m.lastStartLoc, 0, ie(w)), b.items.push(i(f, w.value || ""));
722
+ break;
723
+ case 4:
724
+ w.value == null && r(f, P.UNEXPECTED_LEXICAL_ANALYSIS, m.lastStartLoc, 0, ie(w)), b.items.push(u(f, w.value || ""));
725
+ break;
726
+ case 6:
727
+ w.value == null && r(f, P.UNEXPECTED_LEXICAL_ANALYSIS, m.lastStartLoc, 0, ie(w)), b.items.push(E(f, w.value || ""));
728
+ break;
729
+ case 7: {
730
+ const X = N(f);
731
+ b.items.push(X.node), v = X.nextConsumeToken || null;
732
+ break;
733
+ }
734
+ }
735
+ } while (m.currentType !== 13 && m.currentType !== 1);
736
+ const g = m.currentType === 1 ? m.lastOffset : f.currentOffset(), R = m.currentType === 1 ? m.lastEndLoc : f.currentPosition();
737
+ return a(b, g, R), b;
738
+ }
739
+ function y(f, m, O, d) {
740
+ const b = f.context();
741
+ let v = d.items.length === 0;
742
+ const g = s(1, m, O);
743
+ g.cases = [], g.cases.push(d);
744
+ do {
745
+ const R = C(f);
746
+ v || (v = R.items.length === 0), g.cases.push(R);
747
+ } while (b.currentType !== 13);
748
+ return v && r(f, P.MUST_HAVE_MESSAGES_IN_PLURAL, O, 0), a(g, f.currentOffset(), f.currentPosition()), g;
749
+ }
750
+ function A(f) {
751
+ const m = f.context(), { offset: O, startLoc: d } = m, b = C(f);
752
+ return m.currentType === 13 ? b : y(f, O, d, b);
753
+ }
754
+ function S(f) {
755
+ const m = Br(f, J({}, e)), O = m.context(), d = s(0, O.offset, O.startLoc);
756
+ return t && d.loc && (d.loc.source = f), d.body = A(m), e.onCacheKey && (d.cacheKey = e.onCacheKey(f)), O.currentType !== 13 && r(m, P.UNEXPECTED_LEXICAL_ANALYSIS, O.lastStartLoc, 0, f[O.offset] || ""), a(d, m.currentOffset(), m.currentPosition()), d;
757
+ }
758
+ return { parse: S };
759
+ }
760
+ function ie(e) {
761
+ if (e.type === 13)
762
+ return "EOF";
763
+ const t = (e.value || "").replace(/\r?\n/gu, "\\n");
764
+ return t.length > 10 ? t.slice(0, 9) + "…" : t;
765
+ }
766
+ function Zr(e, t = {}) {
767
+ const n = {
768
+ ast: e,
769
+ helpers: /* @__PURE__ */ new Set()
770
+ };
771
+ return { context: () => n, helper: (a) => (n.helpers.add(a), a) };
772
+ }
773
+ function on(e, t) {
774
+ for (let n = 0; n < e.length; n++)
775
+ Ht(e[n], t);
776
+ }
777
+ function Ht(e, t) {
778
+ switch (e.type) {
779
+ case 1:
780
+ on(e.cases, t), t.helper(
781
+ "plural"
782
+ /* HelperNameMap.PLURAL */
783
+ );
784
+ break;
785
+ case 2:
786
+ on(e.items, t);
787
+ break;
788
+ case 6: {
789
+ Ht(e.key, t), t.helper(
790
+ "linked"
791
+ /* HelperNameMap.LINKED */
792
+ ), t.helper(
793
+ "type"
794
+ /* HelperNameMap.TYPE */
795
+ );
796
+ break;
797
+ }
798
+ case 5:
799
+ t.helper(
800
+ "interpolate"
801
+ /* HelperNameMap.INTERPOLATE */
802
+ ), t.helper(
803
+ "list"
804
+ /* HelperNameMap.LIST */
805
+ );
806
+ break;
807
+ case 4:
808
+ t.helper(
809
+ "interpolate"
810
+ /* HelperNameMap.INTERPOLATE */
811
+ ), t.helper(
812
+ "named"
813
+ /* HelperNameMap.NAMED */
814
+ );
815
+ break;
816
+ }
817
+ }
818
+ function zr(e, t = {}) {
819
+ const n = Zr(e);
820
+ n.helper(
821
+ "normalize"
822
+ /* HelperNameMap.NORMALIZE */
823
+ ), e.body && Ht(e.body, n);
824
+ const r = n.context();
825
+ e.helpers = Array.from(r.helpers);
826
+ }
827
+ function es(e) {
828
+ const t = e.body;
829
+ return t.type === 2 ? ln(t) : t.cases.forEach((n) => ln(n)), e;
830
+ }
831
+ function ln(e) {
832
+ if (e.items.length === 1) {
833
+ const t = e.items[0];
834
+ (t.type === 3 || t.type === 9) && (e.static = t.value, delete t.value);
835
+ } else {
836
+ const t = [];
837
+ for (let n = 0; n < e.items.length; n++) {
838
+ const r = e.items[n];
839
+ if (!(r.type === 3 || r.type === 9) || r.value == null)
840
+ break;
841
+ t.push(r.value);
842
+ }
843
+ if (t.length === e.items.length) {
844
+ e.static = Gt(t);
845
+ for (let n = 0; n < e.items.length; n++) {
846
+ const r = e.items[n];
847
+ (r.type === 3 || r.type === 9) && delete r.value;
848
+ }
849
+ }
850
+ }
851
+ }
852
+ const ts = "minifier";
853
+ function Ae(e) {
854
+ switch (e.t = e.type, e.type) {
855
+ case 0: {
856
+ const t = e;
857
+ Ae(t.body), t.b = t.body, delete t.body;
858
+ break;
859
+ }
860
+ case 1: {
861
+ const t = e, n = t.cases;
862
+ for (let r = 0; r < n.length; r++)
863
+ Ae(n[r]);
864
+ t.c = n, delete t.cases;
865
+ break;
866
+ }
867
+ case 2: {
868
+ const t = e, n = t.items;
869
+ for (let r = 0; r < n.length; r++)
870
+ Ae(n[r]);
871
+ t.i = n, delete t.items, t.static && (t.s = t.static, delete t.static);
872
+ break;
873
+ }
874
+ case 3:
875
+ case 9:
876
+ case 8:
877
+ case 7: {
878
+ const t = e;
879
+ t.value && (t.v = t.value, delete t.value);
880
+ break;
881
+ }
882
+ case 6: {
883
+ const t = e;
884
+ Ae(t.key), t.k = t.key, delete t.key, t.modifier && (Ae(t.modifier), t.m = t.modifier, delete t.modifier);
885
+ break;
886
+ }
887
+ case 5: {
888
+ const t = e;
889
+ t.i = t.index, delete t.index;
890
+ break;
891
+ }
892
+ case 4: {
893
+ const t = e;
894
+ t.k = t.key, delete t.key;
895
+ break;
896
+ }
897
+ default:
898
+ if (process.env.NODE_ENV !== "production")
899
+ throw ye(P.UNHANDLED_MINIFIER_NODE_TYPE, null, {
900
+ domain: ts,
901
+ args: [e.type]
902
+ });
903
+ }
904
+ delete e.type;
905
+ }
906
+ const ns = "parser";
907
+ function rs(e, t) {
908
+ const { filename: n, breakLineCode: r, needIndent: s } = t, a = t.location !== !1, o = {
909
+ filename: n,
910
+ code: "",
911
+ column: 1,
912
+ line: 1,
913
+ offset: 0,
914
+ map: void 0,
915
+ breakLineCode: r,
916
+ needIndent: s,
917
+ indentLevel: 0
918
+ };
919
+ a && e.loc && (o.source = e.loc.source);
920
+ const i = () => o;
921
+ function u(A, S) {
922
+ o.code += A;
923
+ }
924
+ function E(A, S = !0) {
925
+ const f = S ? r : "";
926
+ u(s ? f + " ".repeat(A) : f);
927
+ }
928
+ function I(A = !0) {
929
+ const S = ++o.indentLevel;
930
+ A && E(S);
931
+ }
932
+ function T(A = !0) {
933
+ const S = --o.indentLevel;
934
+ A && E(S);
935
+ }
936
+ function N() {
937
+ E(o.indentLevel);
938
+ }
939
+ return {
940
+ context: i,
941
+ push: u,
942
+ indent: I,
943
+ deindent: T,
944
+ newline: N,
945
+ helper: (A) => `_${A}`,
946
+ needIndent: () => o.needIndent
947
+ };
948
+ }
949
+ function ss(e, t) {
950
+ const { helper: n } = e;
951
+ e.push(`${n(
952
+ "linked"
953
+ /* HelperNameMap.LINKED */
954
+ )}(`), De(e, t.key), t.modifier ? (e.push(", "), De(e, t.modifier), e.push(", _type")) : e.push(", undefined, _type"), e.push(")");
955
+ }
956
+ function as(e, t) {
957
+ const { helper: n, needIndent: r } = e;
958
+ e.push(`${n(
959
+ "normalize"
960
+ /* HelperNameMap.NORMALIZE */
961
+ )}([`), e.indent(r());
962
+ const s = t.items.length;
963
+ for (let a = 0; a < s && (De(e, t.items[a]), a !== s - 1); a++)
964
+ e.push(", ");
965
+ e.deindent(r()), e.push("])");
966
+ }
967
+ function os(e, t) {
968
+ const { helper: n, needIndent: r } = e;
969
+ if (t.cases.length > 1) {
970
+ e.push(`${n(
971
+ "plural"
972
+ /* HelperNameMap.PLURAL */
973
+ )}([`), e.indent(r());
974
+ const s = t.cases.length;
975
+ for (let a = 0; a < s && (De(e, t.cases[a]), a !== s - 1); a++)
976
+ e.push(", ");
977
+ e.deindent(r()), e.push("])");
978
+ }
979
+ }
980
+ function ls(e, t) {
981
+ t.body ? De(e, t.body) : e.push("null");
982
+ }
983
+ function De(e, t) {
984
+ const { helper: n } = e;
985
+ switch (t.type) {
986
+ case 0:
987
+ ls(e, t);
988
+ break;
989
+ case 1:
990
+ os(e, t);
991
+ break;
992
+ case 2:
993
+ as(e, t);
994
+ break;
995
+ case 6:
996
+ ss(e, t);
997
+ break;
998
+ case 8:
999
+ e.push(JSON.stringify(t.value), t);
1000
+ break;
1001
+ case 7:
1002
+ e.push(JSON.stringify(t.value), t);
1003
+ break;
1004
+ case 5:
1005
+ e.push(`${n(
1006
+ "interpolate"
1007
+ /* HelperNameMap.INTERPOLATE */
1008
+ )}(${n(
1009
+ "list"
1010
+ /* HelperNameMap.LIST */
1011
+ )}(${t.index}))`, t);
1012
+ break;
1013
+ case 4:
1014
+ e.push(`${n(
1015
+ "interpolate"
1016
+ /* HelperNameMap.INTERPOLATE */
1017
+ )}(${n(
1018
+ "named"
1019
+ /* HelperNameMap.NAMED */
1020
+ )}(${JSON.stringify(t.key)}))`, t);
1021
+ break;
1022
+ case 9:
1023
+ e.push(JSON.stringify(t.value), t);
1024
+ break;
1025
+ case 3:
1026
+ e.push(JSON.stringify(t.value), t);
1027
+ break;
1028
+ default:
1029
+ if (process.env.NODE_ENV !== "production")
1030
+ throw ye(P.UNHANDLED_CODEGEN_NODE_TYPE, null, {
1031
+ domain: ns,
1032
+ args: [t.type]
1033
+ });
1034
+ }
1035
+ }
1036
+ const is = (e, t = {}) => {
1037
+ const n = h(t.mode) ? t.mode : "normal", r = h(t.filename) ? t.filename : "message.intl";
1038
+ t.sourceMap;
1039
+ const s = t.breakLineCode != null ? t.breakLineCode : n === "arrow" ? ";" : `
1040
+ `, a = t.needIndent ? t.needIndent : n !== "arrow", o = e.helpers || [], i = rs(e, {
1041
+ filename: r,
1042
+ breakLineCode: s,
1043
+ needIndent: a
1044
+ });
1045
+ i.push(n === "normal" ? "function __msg__ (ctx) {" : "(ctx) => {"), i.indent(a), o.length > 0 && (i.push(`const { ${Gt(o.map((I) => `${I}: _${I}`), ", ")} } = ctx`), i.newline()), i.push("return "), De(i, e), i.deindent(a), i.push("}"), delete e.helpers;
1046
+ const { code: u, map: E } = i.context();
1047
+ return {
1048
+ ast: e,
1049
+ code: u,
1050
+ map: E ? E.toJSON() : void 0
1051
+ // eslint-disable-line @typescript-eslint/no-explicit-any
1052
+ };
1053
+ };
1054
+ function cs(e, t = {}) {
1055
+ const n = J({}, t), r = !!n.jit, s = !!n.minify, a = n.optimize == null ? !0 : n.optimize, i = qr(n).parse(e);
1056
+ return r ? (a && es(i), s && Ae(i), { ast: i, code: "" }) : (zr(i, n), is(i, n));
1057
+ }
1058
+ /*!
1059
+ * core-base v11.2.8
1060
+ * (c) 2025 kazuya kawaguchi
1061
+ * Released under the MIT License.
1062
+ */
1063
+ function us() {
1064
+ typeof __INTLIFY_PROD_DEVTOOLS__ != "boolean" && (Le().__INTLIFY_PROD_DEVTOOLS__ = !1), typeof __INTLIFY_DROP_MESSAGE_COMPILER__ != "boolean" && (Le().__INTLIFY_DROP_MESSAGE_COMPILER__ = !1);
1065
+ }
1066
+ function re(e) {
1067
+ return F(e) && Yt(e) === 0 && (ae(e, "b") || ae(e, "body"));
1068
+ }
1069
+ const wn = ["b", "body"];
1070
+ function fs(e) {
1071
+ return de(e, wn);
1072
+ }
1073
+ const Vn = ["c", "cases"];
1074
+ function _s(e) {
1075
+ return de(e, Vn, []);
1076
+ }
1077
+ const $n = ["s", "static"];
1078
+ function ms(e) {
1079
+ return de(e, $n);
1080
+ }
1081
+ const Wn = ["i", "items"];
1082
+ function ds(e) {
1083
+ return de(e, Wn, []);
1084
+ }
1085
+ const Gn = ["t", "type"];
1086
+ function Yt(e) {
1087
+ return de(e, Gn);
1088
+ }
1089
+ const xn = ["v", "value"];
1090
+ function Xe(e, t) {
1091
+ const n = de(e, xn);
1092
+ if (n != null)
1093
+ return n;
1094
+ throw Ve(t);
1095
+ }
1096
+ const Hn = ["m", "modifier"];
1097
+ function Es(e) {
1098
+ return de(e, Hn);
1099
+ }
1100
+ const Yn = ["k", "key"];
1101
+ function gs(e) {
1102
+ const t = de(e, Yn);
1103
+ if (t)
1104
+ return t;
1105
+ throw Ve(
1106
+ 6
1107
+ /* NodeTypes.Linked */
1108
+ );
1109
+ }
1110
+ function de(e, t, n) {
1111
+ for (let r = 0; r < t.length; r++) {
1112
+ const s = t[r];
1113
+ if (ae(e, s) && e[s] != null)
1114
+ return e[s];
1115
+ }
1116
+ return n;
1117
+ }
1118
+ const Kn = [
1119
+ ...wn,
1120
+ ...Vn,
1121
+ ...$n,
1122
+ ...Wn,
1123
+ ...Yn,
1124
+ ...Hn,
1125
+ ...xn,
1126
+ ...Gn
1127
+ ];
1128
+ function Ve(e) {
1129
+ return new Error(`unhandled node type: ${e}`);
1130
+ }
1131
+ function Nt(e) {
1132
+ return (n) => ps(n, e);
1133
+ }
1134
+ function ps(e, t) {
1135
+ const n = fs(t);
1136
+ if (n == null)
1137
+ throw Ve(
1138
+ 0
1139
+ /* NodeTypes.Resource */
1140
+ );
1141
+ if (Yt(n) === 1) {
1142
+ const a = _s(n);
1143
+ return e.plural(a.reduce((o, i) => [
1144
+ ...o,
1145
+ cn(e, i)
1146
+ ], []));
1147
+ } else
1148
+ return cn(e, n);
1149
+ }
1150
+ function cn(e, t) {
1151
+ const n = ms(t);
1152
+ if (n != null)
1153
+ return e.type === "text" ? n : e.normalize([n]);
1154
+ {
1155
+ const r = ds(t).reduce((s, a) => [...s, bt(e, a)], []);
1156
+ return e.normalize(r);
1157
+ }
1158
+ }
1159
+ function bt(e, t) {
1160
+ const n = Yt(t);
1161
+ switch (n) {
1162
+ case 3:
1163
+ return Xe(t, n);
1164
+ case 9:
1165
+ return Xe(t, n);
1166
+ case 4: {
1167
+ const r = t;
1168
+ if (ae(r, "k") && r.k)
1169
+ return e.interpolate(e.named(r.k));
1170
+ if (ae(r, "key") && r.key)
1171
+ return e.interpolate(e.named(r.key));
1172
+ throw Ve(n);
1173
+ }
1174
+ case 5: {
1175
+ const r = t;
1176
+ if (ae(r, "i") && B(r.i))
1177
+ return e.interpolate(e.list(r.i));
1178
+ if (ae(r, "index") && B(r.index))
1179
+ return e.interpolate(e.list(r.index));
1180
+ throw Ve(n);
1181
+ }
1182
+ case 6: {
1183
+ const r = t, s = Es(r), a = gs(r);
1184
+ return e.linked(bt(e, a), s ? bt(e, s) : void 0, e.type);
1185
+ }
1186
+ case 7:
1187
+ return Xe(t, n);
1188
+ case 8:
1189
+ return Xe(t, n);
1190
+ default:
1191
+ throw new Error(`unhandled node on format message part: ${n}`);
1192
+ }
1193
+ }
1194
+ const Ns = "Detected HTML in '{source}' message. Recommend not using HTML messages to avoid XSS.";
1195
+ function Ls(e, t) {
1196
+ t && Wr(e) && ce(Ze(Ns, { source: e }));
1197
+ }
1198
+ const Ts = (e) => e;
1199
+ let Je = $();
1200
+ function Os(e, t = {}) {
1201
+ let n = !1;
1202
+ const r = t.onError || Vr;
1203
+ return t.onError = (s) => {
1204
+ n = !0, r(s);
1205
+ }, { ...cs(e, t), detectError: n };
1206
+ }
1207
+ // @__NO_SIDE_EFFECTS__
1208
+ function Is(e, t) {
1209
+ if (!__INTLIFY_DROP_MESSAGE_COMPILER__ && h(e)) {
1210
+ const n = M(t.warnHtmlMessage) ? t.warnHtmlMessage : !0;
1211
+ process.env.NODE_ENV !== "production" && Ls(e, n);
1212
+ const s = (t.onCacheKey || Ts)(e), a = Je[s];
1213
+ if (a)
1214
+ return a;
1215
+ const { ast: o, detectError: i } = Os(e, {
1216
+ ...t,
1217
+ location: process.env.NODE_ENV !== "production",
1218
+ jit: !0
1219
+ }), u = Nt(o);
1220
+ return i ? u : Je[s] = u;
1221
+ } else {
1222
+ if (process.env.NODE_ENV !== "production" && !re(e))
1223
+ return ce(`the message that is resolve with key '${t.key}' is not supported for jit compilation`), () => e;
1224
+ const n = e.cacheKey;
1225
+ if (n) {
1226
+ const r = Je[n];
1227
+ return r || (Je[n] = Nt(e));
1228
+ } else
1229
+ return Nt(e);
1230
+ }
1231
+ }
1232
+ let $e = null;
1233
+ function hs(e) {
1234
+ $e = e;
1235
+ }
1236
+ function bs(e, t, n) {
1237
+ $e && $e.emit("i18n:init", {
1238
+ timestamp: Date.now(),
1239
+ i18n: e,
1240
+ version: t,
1241
+ meta: n
1242
+ });
1243
+ }
1244
+ const vs = /* @__PURE__ */ As("function:translate");
1245
+ function As(e) {
1246
+ return (t) => $e && $e.emit(e, t);
1247
+ }
1248
+ const q = {
1249
+ INVALID_ARGUMENT: Ur,
1250
+ // 17
1251
+ INVALID_DATE_ARGUMENT: 18,
1252
+ INVALID_ISO_DATE_ARGUMENT: 19,
1253
+ NOT_SUPPORT_NON_STRING_MESSAGE: 20,
1254
+ NOT_SUPPORT_LOCALE_PROMISE_VALUE: 21,
1255
+ NOT_SUPPORT_LOCALE_ASYNC_FUNCTION: 22,
1256
+ NOT_SUPPORT_LOCALE_TYPE: 23
1257
+ }, Cs = 24;
1258
+ function me(e) {
1259
+ return ye(e, null, process.env.NODE_ENV !== "production" ? { messages: Ss } : void 0);
1260
+ }
1261
+ const Ss = {
1262
+ [q.INVALID_ARGUMENT]: "Invalid arguments",
1263
+ [q.INVALID_DATE_ARGUMENT]: "The date provided is an invalid Date object.Make sure your Date represents a valid date.",
1264
+ [q.INVALID_ISO_DATE_ARGUMENT]: "The argument provided is not a valid ISO date string",
1265
+ [q.NOT_SUPPORT_NON_STRING_MESSAGE]: "Not support non-string message",
1266
+ [q.NOT_SUPPORT_LOCALE_PROMISE_VALUE]: "cannot support promise value",
1267
+ [q.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION]: "cannot support async function",
1268
+ [q.NOT_SUPPORT_LOCALE_TYPE]: "cannot support locale type"
1269
+ };
1270
+ function Kt(e, t) {
1271
+ return t.locale != null ? un(t.locale) : un(e.locale);
1272
+ }
1273
+ let Lt;
1274
+ function un(e) {
1275
+ if (h(e))
1276
+ return e;
1277
+ if (W(e)) {
1278
+ if (e.resolvedOnce && Lt != null)
1279
+ return Lt;
1280
+ if (e.constructor.name === "Function") {
1281
+ const t = e();
1282
+ if (Rr(t))
1283
+ throw me(q.NOT_SUPPORT_LOCALE_PROMISE_VALUE);
1284
+ return Lt = t;
1285
+ } else
1286
+ throw me(q.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION);
1287
+ } else
1288
+ throw me(q.NOT_SUPPORT_LOCALE_TYPE);
1289
+ }
1290
+ function Ds(e, t, n) {
1291
+ return [.../* @__PURE__ */ new Set([
1292
+ n,
1293
+ ...H(t) ? t : F(t) ? Object.keys(t) : h(t) ? [t] : [n]
1294
+ ])];
1295
+ }
1296
+ function jn(e, t, n) {
1297
+ const r = h(n) ? n : We, s = e;
1298
+ s.__localeChainCache || (s.__localeChainCache = /* @__PURE__ */ new Map());
1299
+ let a = s.__localeChainCache.get(r);
1300
+ if (!a) {
1301
+ a = [];
1302
+ let o = [n];
1303
+ for (; H(o); )
1304
+ o = fn(a, o, t);
1305
+ const i = H(t) || !k(t) ? t : t.default ? t.default : null;
1306
+ o = h(i) ? [i] : i, H(o) && fn(a, o, !1), s.__localeChainCache.set(r, a);
1307
+ }
1308
+ return a;
1309
+ }
1310
+ function fn(e, t, n) {
1311
+ let r = !0;
1312
+ for (let s = 0; s < t.length && M(r); s++) {
1313
+ const a = t[s];
1314
+ h(a) && (r = Ps(e, t[s], n));
1315
+ }
1316
+ return r;
1317
+ }
1318
+ function Ps(e, t, n) {
1319
+ let r;
1320
+ const s = t.split("-");
1321
+ do {
1322
+ const a = s.join("-");
1323
+ r = ys(e, a, n), s.splice(-1, 1);
1324
+ } while (s.length && r === !0);
1325
+ return r;
1326
+ }
1327
+ function ys(e, t, n) {
1328
+ let r = !1;
1329
+ if (!e.includes(t) && (r = !0, t)) {
1330
+ r = t[t.length - 1] !== "!";
1331
+ const s = t.replace(/!/g, "");
1332
+ e.push(s), (H(n) || k(n)) && n[s] && (r = n[s]);
1333
+ }
1334
+ return r;
1335
+ }
1336
+ const Ee = [];
1337
+ Ee[
1338
+ 0
1339
+ /* States.BEFORE_PATH */
1340
+ ] = {
1341
+ w: [
1342
+ 0
1343
+ /* States.BEFORE_PATH */
1344
+ ],
1345
+ i: [
1346
+ 3,
1347
+ 0
1348
+ /* Actions.APPEND */
1349
+ ],
1350
+ "[": [
1351
+ 4
1352
+ /* States.IN_SUB_PATH */
1353
+ ],
1354
+ o: [
1355
+ 7
1356
+ /* States.AFTER_PATH */
1357
+ ]
1358
+ };
1359
+ Ee[
1360
+ 1
1361
+ /* States.IN_PATH */
1362
+ ] = {
1363
+ w: [
1364
+ 1
1365
+ /* States.IN_PATH */
1366
+ ],
1367
+ ".": [
1368
+ 2
1369
+ /* States.BEFORE_IDENT */
1370
+ ],
1371
+ "[": [
1372
+ 4
1373
+ /* States.IN_SUB_PATH */
1374
+ ],
1375
+ o: [
1376
+ 7
1377
+ /* States.AFTER_PATH */
1378
+ ]
1379
+ };
1380
+ Ee[
1381
+ 2
1382
+ /* States.BEFORE_IDENT */
1383
+ ] = {
1384
+ w: [
1385
+ 2
1386
+ /* States.BEFORE_IDENT */
1387
+ ],
1388
+ i: [
1389
+ 3,
1390
+ 0
1391
+ /* Actions.APPEND */
1392
+ ],
1393
+ 0: [
1394
+ 3,
1395
+ 0
1396
+ /* Actions.APPEND */
1397
+ ]
1398
+ };
1399
+ Ee[
1400
+ 3
1401
+ /* States.IN_IDENT */
1402
+ ] = {
1403
+ i: [
1404
+ 3,
1405
+ 0
1406
+ /* Actions.APPEND */
1407
+ ],
1408
+ 0: [
1409
+ 3,
1410
+ 0
1411
+ /* Actions.APPEND */
1412
+ ],
1413
+ w: [
1414
+ 1,
1415
+ 1
1416
+ /* Actions.PUSH */
1417
+ ],
1418
+ ".": [
1419
+ 2,
1420
+ 1
1421
+ /* Actions.PUSH */
1422
+ ],
1423
+ "[": [
1424
+ 4,
1425
+ 1
1426
+ /* Actions.PUSH */
1427
+ ],
1428
+ o: [
1429
+ 7,
1430
+ 1
1431
+ /* Actions.PUSH */
1432
+ ]
1433
+ };
1434
+ Ee[
1435
+ 4
1436
+ /* States.IN_SUB_PATH */
1437
+ ] = {
1438
+ "'": [
1439
+ 5,
1440
+ 0
1441
+ /* Actions.APPEND */
1442
+ ],
1443
+ '"': [
1444
+ 6,
1445
+ 0
1446
+ /* Actions.APPEND */
1447
+ ],
1448
+ "[": [
1449
+ 4,
1450
+ 2
1451
+ /* Actions.INC_SUB_PATH_DEPTH */
1452
+ ],
1453
+ "]": [
1454
+ 1,
1455
+ 3
1456
+ /* Actions.PUSH_SUB_PATH */
1457
+ ],
1458
+ o: 8,
1459
+ l: [
1460
+ 4,
1461
+ 0
1462
+ /* Actions.APPEND */
1463
+ ]
1464
+ };
1465
+ Ee[
1466
+ 5
1467
+ /* States.IN_SINGLE_QUOTE */
1468
+ ] = {
1469
+ "'": [
1470
+ 4,
1471
+ 0
1472
+ /* Actions.APPEND */
1473
+ ],
1474
+ o: 8,
1475
+ l: [
1476
+ 5,
1477
+ 0
1478
+ /* Actions.APPEND */
1479
+ ]
1480
+ };
1481
+ Ee[
1482
+ 6
1483
+ /* States.IN_DOUBLE_QUOTE */
1484
+ ] = {
1485
+ '"': [
1486
+ 4,
1487
+ 0
1488
+ /* Actions.APPEND */
1489
+ ],
1490
+ o: 8,
1491
+ l: [
1492
+ 6,
1493
+ 0
1494
+ /* Actions.APPEND */
1495
+ ]
1496
+ };
1497
+ const Rs = /^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;
1498
+ function ks(e) {
1499
+ return Rs.test(e);
1500
+ }
1501
+ function Fs(e) {
1502
+ const t = e.charCodeAt(0), n = e.charCodeAt(e.length - 1);
1503
+ return t === n && (t === 34 || t === 39) ? e.slice(1, -1) : e;
1504
+ }
1505
+ function Ms(e) {
1506
+ if (e == null)
1507
+ return "o";
1508
+ switch (e.charCodeAt(0)) {
1509
+ case 91:
1510
+ case 93:
1511
+ case 46:
1512
+ case 34:
1513
+ case 39:
1514
+ return e;
1515
+ case 95:
1516
+ case 36:
1517
+ case 45:
1518
+ return "i";
1519
+ case 9:
1520
+ case 10:
1521
+ case 13:
1522
+ case 160:
1523
+ case 65279:
1524
+ case 8232:
1525
+ case 8233:
1526
+ return "w";
1527
+ }
1528
+ return "i";
1529
+ }
1530
+ function Us(e) {
1531
+ const t = e.trim();
1532
+ return e.charAt(0) === "0" && isNaN(parseInt(e)) ? !1 : ks(t) ? Fs(t) : "*" + t;
1533
+ }
1534
+ function ws(e) {
1535
+ const t = [];
1536
+ let n = -1, r = 0, s = 0, a, o, i, u, E, I, T;
1537
+ const N = [];
1538
+ N[
1539
+ 0
1540
+ /* Actions.APPEND */
1541
+ ] = () => {
1542
+ o === void 0 ? o = i : o += i;
1543
+ }, N[
1544
+ 1
1545
+ /* Actions.PUSH */
1546
+ ] = () => {
1547
+ o !== void 0 && (t.push(o), o = void 0);
1548
+ }, N[
1549
+ 2
1550
+ /* Actions.INC_SUB_PATH_DEPTH */
1551
+ ] = () => {
1552
+ N[
1553
+ 0
1554
+ /* Actions.APPEND */
1555
+ ](), s++;
1556
+ }, N[
1557
+ 3
1558
+ /* Actions.PUSH_SUB_PATH */
1559
+ ] = () => {
1560
+ if (s > 0)
1561
+ s--, r = 4, N[
1562
+ 0
1563
+ /* Actions.APPEND */
1564
+ ]();
1565
+ else {
1566
+ if (s = 0, o === void 0 || (o = Us(o), o === !1))
1567
+ return !1;
1568
+ N[
1569
+ 1
1570
+ /* Actions.PUSH */
1571
+ ]();
1572
+ }
1573
+ };
1574
+ function C() {
1575
+ const y = e[n + 1];
1576
+ if (r === 5 && y === "'" || r === 6 && y === '"')
1577
+ return n++, i = "\\" + y, N[
1578
+ 0
1579
+ /* Actions.APPEND */
1580
+ ](), !0;
1581
+ }
1582
+ for (; r !== null; )
1583
+ if (n++, a = e[n], !(a === "\\" && C())) {
1584
+ if (u = Ms(a), T = Ee[r], E = T[u] || T.l || 8, E === 8 || (r = E[0], E[1] !== void 0 && (I = N[E[1]], I && (i = a, I() === !1))))
1585
+ return;
1586
+ if (r === 7)
1587
+ return t;
1588
+ }
1589
+ }
1590
+ const _n = /* @__PURE__ */ new Map();
1591
+ function Vs(e, t) {
1592
+ return F(e) ? e[t] : null;
1593
+ }
1594
+ function $s(e, t) {
1595
+ if (!F(e))
1596
+ return null;
1597
+ let n = _n.get(t);
1598
+ if (n || (n = ws(t), n && _n.set(t, n)), !n)
1599
+ return null;
1600
+ const r = n.length;
1601
+ let s = e, a = 0;
1602
+ for (; a < r; ) {
1603
+ const o = n[a];
1604
+ if (Kn.includes(o) && re(s))
1605
+ return null;
1606
+ const i = s[o];
1607
+ if (i === void 0 || W(s))
1608
+ return null;
1609
+ s = i, a++;
1610
+ }
1611
+ return s;
1612
+ }
1613
+ const Z = {
1614
+ NOT_FOUND_KEY: 1,
1615
+ FALLBACK_TO_TRANSLATE: 2,
1616
+ CANNOT_FORMAT_NUMBER: 3,
1617
+ FALLBACK_TO_NUMBER_FORMAT: 4,
1618
+ CANNOT_FORMAT_DATE: 5,
1619
+ FALLBACK_TO_DATE_FORMAT: 6,
1620
+ EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER: 7
1621
+ }, Ws = 8, Gs = {
1622
+ [Z.NOT_FOUND_KEY]: "Not found '{key}' key in '{locale}' locale messages.",
1623
+ [Z.FALLBACK_TO_TRANSLATE]: "Fall back to translate '{key}' key with '{target}' locale.",
1624
+ [Z.CANNOT_FORMAT_NUMBER]: "Cannot format a number value due to not supported Intl.NumberFormat.",
1625
+ [Z.FALLBACK_TO_NUMBER_FORMAT]: "Fall back to number format '{key}' key with '{target}' locale.",
1626
+ [Z.CANNOT_FORMAT_DATE]: "Cannot format a date value due to not supported Intl.DateTimeFormat.",
1627
+ [Z.FALLBACK_TO_DATE_FORMAT]: "Fall back to datetime format '{key}' key with '{target}' locale.",
1628
+ [Z.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER]: "This project is using Custom Message Compiler, which is an experimental feature. It may receive breaking changes or be removed in the future."
1629
+ };
1630
+ function Oe(e, ...t) {
1631
+ return Ze(Gs[e], ...t);
1632
+ }
1633
+ const xs = "11.2.8", et = -1, We = "en-US", qe = "", mn = (e) => `${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;
1634
+ function Hs() {
1635
+ return {
1636
+ upper: (e, t) => t === "text" && h(e) ? e.toUpperCase() : t === "vnode" && F(e) && "__v_isVNode" in e ? e.children.toUpperCase() : e,
1637
+ lower: (e, t) => t === "text" && h(e) ? e.toLowerCase() : t === "vnode" && F(e) && "__v_isVNode" in e ? e.children.toLowerCase() : e,
1638
+ capitalize: (e, t) => t === "text" && h(e) ? mn(e) : t === "vnode" && F(e) && "__v_isVNode" in e ? mn(e.children) : e
1639
+ };
1640
+ }
1641
+ let Bn;
1642
+ function Ys(e) {
1643
+ Bn = e;
1644
+ }
1645
+ let Xn;
1646
+ function Ks(e) {
1647
+ Xn = e;
1648
+ }
1649
+ let Jn;
1650
+ function js(e) {
1651
+ Jn = e;
1652
+ }
1653
+ let Qn = null;
1654
+ const Bs = /* @__NO_SIDE_EFFECTS__ */ (e) => {
1655
+ Qn = e;
1656
+ }, Xs = /* @__NO_SIDE_EFFECTS__ */ () => Qn;
1657
+ let qn = null;
1658
+ const dn = (e) => {
1659
+ qn = e;
1660
+ }, Js = () => qn;
1661
+ let En = 0;
1662
+ function Qs(e = {}) {
1663
+ const t = W(e.onWarn) ? e.onWarn : ce, n = h(e.version) ? e.version : xs, r = h(e.locale) || W(e.locale) ? e.locale : We, s = W(r) ? We : r, a = H(e.fallbackLocale) || k(e.fallbackLocale) || h(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : s, o = k(e.messages) ? e.messages : Tt(s), i = k(e.datetimeFormats) ? e.datetimeFormats : Tt(s), u = k(e.numberFormats) ? e.numberFormats : Tt(s), E = J($(), e.modifiers, Hs()), I = e.pluralRules || $(), T = W(e.missing) ? e.missing : null, N = M(e.missingWarn) || Se(e.missingWarn) ? e.missingWarn : !0, C = M(e.fallbackWarn) || Se(e.fallbackWarn) ? e.fallbackWarn : !0, y = !!e.fallbackFormat, A = !!e.unresolving, S = W(e.postTranslation) ? e.postTranslation : null, f = k(e.processor) ? e.processor : null, m = M(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, O = !!e.escapeParameter, d = W(e.messageCompiler) ? e.messageCompiler : Bn;
1664
+ process.env.NODE_ENV !== "production" && W(e.messageCompiler) && $t(Oe(Z.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER));
1665
+ const b = W(e.messageResolver) ? e.messageResolver : Xn || Vs, v = W(e.localeFallbacker) ? e.localeFallbacker : Jn || Ds, g = F(e.fallbackContext) ? e.fallbackContext : void 0, R = e, w = F(R.__datetimeFormatters) ? R.__datetimeFormatters : /* @__PURE__ */ new Map(), X = F(R.__numberFormatters) ? R.__numberFormatters : /* @__PURE__ */ new Map(), se = F(R.__meta) ? R.__meta : {};
1666
+ En++;
1667
+ const Y = {
1668
+ version: n,
1669
+ cid: En,
1670
+ locale: r,
1671
+ fallbackLocale: a,
1672
+ messages: o,
1673
+ modifiers: E,
1674
+ pluralRules: I,
1675
+ missing: T,
1676
+ missingWarn: N,
1677
+ fallbackWarn: C,
1678
+ fallbackFormat: y,
1679
+ unresolving: A,
1680
+ postTranslation: S,
1681
+ processor: f,
1682
+ warnHtmlMessage: m,
1683
+ escapeParameter: O,
1684
+ messageCompiler: d,
1685
+ messageResolver: b,
1686
+ localeFallbacker: v,
1687
+ fallbackContext: g,
1688
+ onWarn: t,
1689
+ __meta: se
1690
+ };
1691
+ return Y.datetimeFormats = i, Y.numberFormats = u, Y.__datetimeFormatters = w, Y.__numberFormatters = X, process.env.NODE_ENV !== "production" && (Y.__v_emitter = R.__v_emitter != null ? R.__v_emitter : void 0), (process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) && bs(Y, n, se), Y;
1692
+ }
1693
+ const Tt = (e) => ({ [e]: $() });
1694
+ function tt(e, t) {
1695
+ return e instanceof RegExp ? e.test(t) : e;
1696
+ }
1697
+ function Zn(e, t) {
1698
+ return e instanceof RegExp ? e.test(t) : e;
1699
+ }
1700
+ function jt(e, t, n, r, s) {
1701
+ const { missing: a, onWarn: o } = e;
1702
+ if (process.env.NODE_ENV !== "production") {
1703
+ const i = e.__v_emitter;
1704
+ i && i.emit("missing", {
1705
+ locale: n,
1706
+ key: t,
1707
+ type: s,
1708
+ groupId: `${s}:${t}`
1709
+ });
1710
+ }
1711
+ if (a !== null) {
1712
+ const i = a(e, n, t, s);
1713
+ return h(i) ? i : t;
1714
+ } else
1715
+ return process.env.NODE_ENV !== "production" && Zn(r, t) && o(Oe(Z.NOT_FOUND_KEY, { key: t, locale: n })), t;
1716
+ }
1717
+ function we(e, t, n) {
1718
+ const r = e;
1719
+ r.__localeChainCache = /* @__PURE__ */ new Map(), e.localeFallbacker(e, n, t);
1720
+ }
1721
+ function zn(e, t) {
1722
+ return e === t ? !1 : e.split("-")[0] === t.split("-")[0];
1723
+ }
1724
+ function qs(e, t) {
1725
+ const n = t.indexOf(e);
1726
+ if (n === -1)
1727
+ return !1;
1728
+ for (let r = n + 1; r < t.length; r++)
1729
+ if (zn(e, t[r]))
1730
+ return !0;
1731
+ return !1;
1732
+ }
1733
+ const gn = typeof Intl < "u", er = {
1734
+ dateTimeFormat: gn && typeof Intl.DateTimeFormat < "u",
1735
+ numberFormat: gn && typeof Intl.NumberFormat < "u"
1736
+ };
1737
+ function pn(e, ...t) {
1738
+ const { datetimeFormats: n, unresolving: r, fallbackLocale: s, onWarn: a, localeFallbacker: o } = e, { __datetimeFormatters: i } = e;
1739
+ if (process.env.NODE_ENV !== "production" && !er.dateTimeFormat)
1740
+ return a(Oe(Z.CANNOT_FORMAT_DATE)), qe;
1741
+ const [u, E, I, T] = vt(...t), N = M(I.missingWarn) ? I.missingWarn : e.missingWarn, C = M(I.fallbackWarn) ? I.fallbackWarn : e.fallbackWarn, y = !!I.part, A = Kt(e, I), S = o(
1742
+ e,
1743
+ // eslint-disable-line @typescript-eslint/no-explicit-any
1744
+ s,
1745
+ A
1746
+ );
1747
+ if (!h(u) || u === "")
1748
+ return new Intl.DateTimeFormat(A, T).format(E);
1749
+ let f = {}, m, O = null, d = A, b = null;
1750
+ const v = "datetime format";
1751
+ for (let w = 0; w < S.length; w++) {
1752
+ if (m = b = S[w], process.env.NODE_ENV !== "production" && A !== m && tt(C, u) && a(Oe(Z.FALLBACK_TO_DATE_FORMAT, {
1753
+ key: u,
1754
+ target: m
1755
+ })), process.env.NODE_ENV !== "production" && A !== m) {
1756
+ const X = e.__v_emitter;
1757
+ X && X.emit("fallback", {
1758
+ type: v,
1759
+ key: u,
1760
+ from: d,
1761
+ to: b,
1762
+ groupId: `${v}:${u}`
1763
+ });
1764
+ }
1765
+ if (f = n[m] || {}, O = f[u], k(O))
1766
+ break;
1767
+ jt(e, u, m, N, v), d = b;
1768
+ }
1769
+ if (!k(O) || !h(m))
1770
+ return r ? et : u;
1771
+ let g = `${m}__${u}`;
1772
+ ze(T) || (g = `${g}__${JSON.stringify(T)}`);
1773
+ let R = i.get(g);
1774
+ return R || (R = new Intl.DateTimeFormat(m, J({}, O, T)), i.set(g, R)), y ? R.formatToParts(E) : R.format(E);
1775
+ }
1776
+ const tr = [
1777
+ "localeMatcher",
1778
+ "weekday",
1779
+ "era",
1780
+ "year",
1781
+ "month",
1782
+ "day",
1783
+ "hour",
1784
+ "minute",
1785
+ "second",
1786
+ "timeZoneName",
1787
+ "formatMatcher",
1788
+ "hour12",
1789
+ "timeZone",
1790
+ "dateStyle",
1791
+ "timeStyle",
1792
+ "calendar",
1793
+ "dayPeriod",
1794
+ "numberingSystem",
1795
+ "hourCycle",
1796
+ "fractionalSecondDigits"
1797
+ ];
1798
+ function vt(...e) {
1799
+ const [t, n, r, s] = e, a = $();
1800
+ let o = $(), i;
1801
+ if (h(t)) {
1802
+ const u = t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);
1803
+ if (!u)
1804
+ throw me(q.INVALID_ISO_DATE_ARGUMENT);
1805
+ const E = u[3] ? u[3].trim().startsWith("T") ? `${u[1].trim()}${u[3].trim()}` : `${u[1].trim()}T${u[3].trim()}` : u[1].trim();
1806
+ i = new Date(E);
1807
+ try {
1808
+ i.toISOString();
1809
+ } catch {
1810
+ throw me(q.INVALID_ISO_DATE_ARGUMENT);
1811
+ }
1812
+ } else if (Sr(t)) {
1813
+ if (isNaN(t.getTime()))
1814
+ throw me(q.INVALID_DATE_ARGUMENT);
1815
+ i = t;
1816
+ } else if (B(t))
1817
+ i = t;
1818
+ else
1819
+ throw me(q.INVALID_ARGUMENT);
1820
+ return h(n) ? a.key = n : k(n) && Object.keys(n).forEach((u) => {
1821
+ tr.includes(u) ? o[u] = n[u] : a[u] = n[u];
1822
+ }), h(r) ? a.locale = r : k(r) && (o = r), k(s) && (o = s), [a.key || "", i, a, o];
1823
+ }
1824
+ function Nn(e, t, n) {
1825
+ const r = e;
1826
+ for (const s in n) {
1827
+ const a = `${t}__${s}`;
1828
+ r.__datetimeFormatters.has(a) && r.__datetimeFormatters.delete(a);
1829
+ }
1830
+ }
1831
+ function Ln(e, ...t) {
1832
+ const { numberFormats: n, unresolving: r, fallbackLocale: s, onWarn: a, localeFallbacker: o } = e, { __numberFormatters: i } = e;
1833
+ if (process.env.NODE_ENV !== "production" && !er.numberFormat)
1834
+ return a(Oe(Z.CANNOT_FORMAT_NUMBER)), qe;
1835
+ const [u, E, I, T] = At(...t), N = M(I.missingWarn) ? I.missingWarn : e.missingWarn, C = M(I.fallbackWarn) ? I.fallbackWarn : e.fallbackWarn, y = !!I.part, A = Kt(e, I), S = o(
1836
+ e,
1837
+ // eslint-disable-line @typescript-eslint/no-explicit-any
1838
+ s,
1839
+ A
1840
+ );
1841
+ if (!h(u) || u === "")
1842
+ return new Intl.NumberFormat(A, T).format(E);
1843
+ let f = {}, m, O = null, d = A, b = null;
1844
+ const v = "number format";
1845
+ for (let w = 0; w < S.length; w++) {
1846
+ if (m = b = S[w], process.env.NODE_ENV !== "production" && A !== m && tt(C, u) && a(Oe(Z.FALLBACK_TO_NUMBER_FORMAT, {
1847
+ key: u,
1848
+ target: m
1849
+ })), process.env.NODE_ENV !== "production" && A !== m) {
1850
+ const X = e.__v_emitter;
1851
+ X && X.emit("fallback", {
1852
+ type: v,
1853
+ key: u,
1854
+ from: d,
1855
+ to: b,
1856
+ groupId: `${v}:${u}`
1857
+ });
1858
+ }
1859
+ if (f = n[m] || {}, O = f[u], k(O))
1860
+ break;
1861
+ jt(e, u, m, N, v), d = b;
1862
+ }
1863
+ if (!k(O) || !h(m))
1864
+ return r ? et : u;
1865
+ let g = `${m}__${u}`;
1866
+ ze(T) || (g = `${g}__${JSON.stringify(T)}`);
1867
+ let R = i.get(g);
1868
+ return R || (R = new Intl.NumberFormat(m, J({}, O, T)), i.set(g, R)), y ? R.formatToParts(E) : R.format(E);
1869
+ }
1870
+ const nr = [
1871
+ "localeMatcher",
1872
+ "style",
1873
+ "currency",
1874
+ "currencyDisplay",
1875
+ "currencySign",
1876
+ "useGrouping",
1877
+ "minimumIntegerDigits",
1878
+ "minimumFractionDigits",
1879
+ "maximumFractionDigits",
1880
+ "minimumSignificantDigits",
1881
+ "maximumSignificantDigits",
1882
+ "compactDisplay",
1883
+ "notation",
1884
+ "signDisplay",
1885
+ "unit",
1886
+ "unitDisplay",
1887
+ "roundingMode",
1888
+ "roundingPriority",
1889
+ "roundingIncrement",
1890
+ "trailingZeroDisplay"
1891
+ ];
1892
+ function At(...e) {
1893
+ const [t, n, r, s] = e, a = $();
1894
+ let o = $();
1895
+ if (!B(t))
1896
+ throw me(q.INVALID_ARGUMENT);
1897
+ const i = t;
1898
+ return h(n) ? a.key = n : k(n) && Object.keys(n).forEach((u) => {
1899
+ nr.includes(u) ? o[u] = n[u] : a[u] = n[u];
1900
+ }), h(r) ? a.locale = r : k(r) && (o = r), k(s) && (o = s), [a.key || "", i, a, o];
1901
+ }
1902
+ function Tn(e, t, n) {
1903
+ const r = e;
1904
+ for (const s in n) {
1905
+ const a = `${t}__${s}`;
1906
+ r.__numberFormatters.has(a) && r.__numberFormatters.delete(a);
1907
+ }
1908
+ }
1909
+ const Zs = (e) => e, zs = (e) => "", ea = "text", ta = (e) => e.length === 0 ? "" : Gt(e), na = kr;
1910
+ function On(e, t) {
1911
+ return e = Math.abs(e), t === 2 ? e ? e > 1 ? 1 : 0 : 1 : e ? Math.min(e, 2) : 0;
1912
+ }
1913
+ function ra(e) {
1914
+ const t = B(e.pluralIndex) ? e.pluralIndex : -1;
1915
+ return e.named && (B(e.named.count) || B(e.named.n)) ? B(e.named.count) ? e.named.count : B(e.named.n) ? e.named.n : t : t;
1916
+ }
1917
+ function sa(e, t) {
1918
+ t.count || (t.count = e), t.n || (t.n = e);
1919
+ }
1920
+ function aa(e = {}) {
1921
+ const t = e.locale, n = ra(e), r = F(e.pluralRules) && h(t) && W(e.pluralRules[t]) ? e.pluralRules[t] : On, s = F(e.pluralRules) && h(t) && W(e.pluralRules[t]) ? On : void 0, a = (f) => f[r(n, f.length, s)], o = e.list || [], i = (f) => o[f], u = e.named || $();
1922
+ B(e.pluralIndex) && sa(n, u);
1923
+ const E = (f) => u[f];
1924
+ function I(f, m) {
1925
+ const O = W(e.messages) ? e.messages(f, !!m) : F(e.messages) ? e.messages[f] : !1;
1926
+ return O || (e.parent ? e.parent.message(f) : zs);
1927
+ }
1928
+ const T = (f) => e.modifiers ? e.modifiers[f] : Zs, N = k(e.processor) && W(e.processor.normalize) ? e.processor.normalize : ta, C = k(e.processor) && W(e.processor.interpolate) ? e.processor.interpolate : na, y = k(e.processor) && h(e.processor.type) ? e.processor.type : ea, S = {
1929
+ list: i,
1930
+ named: E,
1931
+ plural: a,
1932
+ linked: (f, ...m) => {
1933
+ const [O, d] = m;
1934
+ let b = "text", v = "";
1935
+ m.length === 1 ? F(O) ? (v = O.modifier || v, b = O.type || b) : h(O) && (v = O || v) : m.length === 2 && (h(O) && (v = O || v), h(d) && (b = d || b));
1936
+ const g = I(f, !0)(S), R = (
1937
+ // The message in vnode resolved with linked are returned as an array by processor.nomalize
1938
+ b === "vnode" && H(g) && v ? g[0] : g
1939
+ );
1940
+ return v ? T(v)(R, b) : R;
1941
+ },
1942
+ message: I,
1943
+ type: y,
1944
+ interpolate: C,
1945
+ normalize: N,
1946
+ values: J($(), o, u)
1947
+ };
1948
+ return S;
1949
+ }
1950
+ const In = () => "", te = (e) => W(e);
1951
+ function hn(e, ...t) {
1952
+ const { fallbackFormat: n, postTranslation: r, unresolving: s, messageCompiler: a, fallbackLocale: o, messages: i } = e, [u, E] = Ct(...t), I = M(E.missingWarn) ? E.missingWarn : e.missingWarn, T = M(E.fallbackWarn) ? E.fallbackWarn : e.fallbackWarn, N = M(E.escapeParameter) ? E.escapeParameter : e.escapeParameter, C = !!E.resolvedMessage, y = h(E.default) || M(E.default) ? M(E.default) ? a ? u : () => u : E.default : n ? a ? u : () => u : null, A = n || y != null && (h(y) || W(y)), S = Kt(e, E);
1953
+ N && oa(E);
1954
+ let [f, m, O] = C ? [
1955
+ u,
1956
+ S,
1957
+ i[S] || $()
1958
+ ] : rr(e, u, S, o, T, I), d = f, b = u;
1959
+ if (!C && !(h(d) || re(d) || te(d)) && A && (d = y, b = d), !C && (!(h(d) || re(d) || te(d)) || !h(m)))
1960
+ return s ? et : u;
1961
+ if (process.env.NODE_ENV !== "production" && h(d) && e.messageCompiler == null)
1962
+ return ce(`The message format compilation is not supported in this build. Because message compiler isn't included. You need to pre-compilation all message format. So translate function return '${u}'.`), u;
1963
+ let v = !1;
1964
+ const g = () => {
1965
+ v = !0;
1966
+ }, R = te(d) ? d : sr(e, u, m, d, b, g);
1967
+ if (v)
1968
+ return d;
1969
+ const w = ua(e, m, O, E), X = aa(w), se = la(e, R, X);
1970
+ let Y = r ? r(se, u) : se;
1971
+ if (N && h(Y) && (Y = Pr(Y)), process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) {
1972
+ const he = {
1973
+ timestamp: Date.now(),
1974
+ key: h(u) ? u : te(d) ? d.key : "",
1975
+ locale: m || (te(d) ? d.locale : ""),
1976
+ format: h(d) ? d : te(d) ? d.source : "",
1977
+ message: Y
1978
+ };
1979
+ he.meta = J({}, e.__meta, /* @__PURE__ */ Xs() || {}), vs(he);
1980
+ }
1981
+ return Y;
1982
+ }
1983
+ function oa(e) {
1984
+ H(e.list) ? e.list = e.list.map((t) => h(t) ? nn(t) : t) : F(e.named) && Object.keys(e.named).forEach((t) => {
1985
+ h(e.named[t]) && (e.named[t] = nn(e.named[t]));
1986
+ });
1987
+ }
1988
+ function rr(e, t, n, r, s, a) {
1989
+ const { messages: o, onWarn: i, messageResolver: u, localeFallbacker: E } = e, I = E(e, r, n);
1990
+ let T = $(), N, C = null, y = n, A = null;
1991
+ const S = "translate";
1992
+ for (let f = 0; f < I.length; f++) {
1993
+ if (N = A = I[f], process.env.NODE_ENV !== "production" && n !== N && !zn(n, N) && tt(s, t) && i(Oe(Z.FALLBACK_TO_TRANSLATE, {
1994
+ key: t,
1995
+ target: N
1996
+ })), process.env.NODE_ENV !== "production" && n !== N) {
1997
+ const b = e.__v_emitter;
1998
+ b && b.emit("fallback", {
1999
+ type: S,
2000
+ key: t,
2001
+ from: y,
2002
+ to: A,
2003
+ groupId: `${S}:${t}`
2004
+ });
2005
+ }
2006
+ T = o[N] || $();
2007
+ let m = null, O, d;
2008
+ if (process.env.NODE_ENV !== "production" && oe && (m = window.performance.now(), O = "intlify-message-resolve-start", d = "intlify-message-resolve-end", ee && ee(O)), (C = u(T, t)) === null && (C = T[t]), process.env.NODE_ENV !== "production" && oe) {
2009
+ const b = window.performance.now(), v = e.__v_emitter;
2010
+ v && m && C && v.emit("message-resolve", {
2011
+ type: "message-resolve",
2012
+ key: t,
2013
+ message: C,
2014
+ time: b - m,
2015
+ groupId: `${S}:${t}`
2016
+ }), O && d && ee && Te && (ee(d), Te("intlify message resolve", O, d));
2017
+ }
2018
+ if (h(C) || re(C) || te(C))
2019
+ break;
2020
+ if (!qs(N, I)) {
2021
+ const b = jt(
2022
+ e,
2023
+ // eslint-disable-line @typescript-eslint/no-explicit-any
2024
+ t,
2025
+ N,
2026
+ a,
2027
+ S
2028
+ );
2029
+ b !== t && (C = b);
2030
+ }
2031
+ y = A;
2032
+ }
2033
+ return [C, N, T];
2034
+ }
2035
+ function sr(e, t, n, r, s, a) {
2036
+ const { messageCompiler: o, warnHtmlMessage: i } = e;
2037
+ if (te(r)) {
2038
+ const N = r;
2039
+ return N.locale = N.locale || n, N.key = N.key || t, N;
2040
+ }
2041
+ if (o == null) {
2042
+ const N = () => r;
2043
+ return N.locale = n, N.key = t, N;
2044
+ }
2045
+ let u = null, E, I;
2046
+ process.env.NODE_ENV !== "production" && oe && (u = window.performance.now(), E = "intlify-message-compilation-start", I = "intlify-message-compilation-end", ee && ee(E));
2047
+ const T = o(r, ia(e, n, s, r, i, a));
2048
+ if (process.env.NODE_ENV !== "production" && oe) {
2049
+ const N = window.performance.now(), C = e.__v_emitter;
2050
+ C && u && C.emit("message-compilation", {
2051
+ type: "message-compilation",
2052
+ message: r,
2053
+ time: N - u,
2054
+ groupId: `translate:${t}`
2055
+ }), E && I && ee && Te && (ee(I), Te("intlify message compilation", E, I));
2056
+ }
2057
+ return T.locale = n, T.key = t, T.source = r, T;
2058
+ }
2059
+ function la(e, t, n) {
2060
+ let r = null, s, a;
2061
+ process.env.NODE_ENV !== "production" && oe && (r = window.performance.now(), s = "intlify-message-evaluation-start", a = "intlify-message-evaluation-end", ee && ee(s));
2062
+ const o = t(n);
2063
+ if (process.env.NODE_ENV !== "production" && oe) {
2064
+ const i = window.performance.now(), u = e.__v_emitter;
2065
+ u && r && u.emit("message-evaluation", {
2066
+ type: "message-evaluation",
2067
+ value: o,
2068
+ time: i - r,
2069
+ groupId: `translate:${t.key}`
2070
+ }), s && a && ee && Te && (ee(a), Te("intlify message evaluation", s, a));
2071
+ }
2072
+ return o;
2073
+ }
2074
+ function Ct(...e) {
2075
+ const [t, n, r] = e, s = $();
2076
+ if (!h(t) && !B(t) && !te(t) && !re(t))
2077
+ throw me(q.INVALID_ARGUMENT);
2078
+ const a = B(t) ? String(t) : (te(t), t);
2079
+ return B(n) ? s.plural = n : h(n) ? s.default = n : k(n) && !ze(n) ? s.named = n : H(n) && (s.list = n), B(r) ? s.plural = r : h(r) ? s.default = r : k(r) && J(s, r), [a, s];
2080
+ }
2081
+ function ia(e, t, n, r, s, a) {
2082
+ return {
2083
+ locale: t,
2084
+ key: n,
2085
+ warnHtmlMessage: s,
2086
+ onError: (o) => {
2087
+ if (a && a(o), process.env.NODE_ENV !== "production") {
2088
+ const i = ca(r), u = `Message compilation error: ${o.message}`, E = o.location && i && Fr(i, o.location.start.offset, o.location.end.offset), I = e.__v_emitter;
2089
+ I && i && I.emit("compile-error", {
2090
+ message: i,
2091
+ error: o.message,
2092
+ start: o.location && o.location.start.offset,
2093
+ end: o.location && o.location.end.offset,
2094
+ groupId: `translate:${n}`
2095
+ }), console.error(E ? `${u}
2096
+ ${E}` : u);
2097
+ } else
2098
+ throw o;
2099
+ },
2100
+ onCacheKey: (o) => Ar(t, n, o)
2101
+ };
2102
+ }
2103
+ function ca(e) {
2104
+ if (h(e))
2105
+ return e;
2106
+ if (e.loc && e.loc.source)
2107
+ return e.loc.source;
2108
+ }
2109
+ function ua(e, t, n, r) {
2110
+ const { modifiers: s, pluralRules: a, messageResolver: o, fallbackLocale: i, fallbackWarn: u, missingWarn: E, fallbackContext: I } = e, N = {
2111
+ locale: t,
2112
+ modifiers: s,
2113
+ pluralRules: a,
2114
+ messages: (C, y) => {
2115
+ let A = o(n, C);
2116
+ if (A == null && (I || y)) {
2117
+ const [, , S] = rr(
2118
+ I || e,
2119
+ // NOTE: if has fallbackContext, fallback to root, else if use linked, fallback to local context
2120
+ C,
2121
+ t,
2122
+ i,
2123
+ u,
2124
+ E
2125
+ );
2126
+ A = o(S, C);
2127
+ }
2128
+ if (h(A) || re(A)) {
2129
+ let S = !1;
2130
+ const m = sr(e, C, t, A, C, () => {
2131
+ S = !0;
2132
+ });
2133
+ return S ? In : m;
2134
+ } else return te(A) ? A : In;
2135
+ }
2136
+ };
2137
+ return e.processor && (N.processor = e.processor), r.list && (N.list = r.list), r.named && (N.named = r.named), B(r.plural) && (N.pluralIndex = r.plural), N;
2138
+ }
2139
+ us();
2140
+ function fa() {
2141
+ return ar().__VUE_DEVTOOLS_GLOBAL_HOOK__;
2142
+ }
2143
+ function ar() {
2144
+ return typeof navigator < "u" && typeof window < "u" ? window : typeof globalThis < "u" ? globalThis : {};
2145
+ }
2146
+ const _a = typeof Proxy == "function", ma = "devtools-plugin:setup", da = "plugin:settings:set";
2147
+ let ve, St;
2148
+ function Ea() {
2149
+ var e;
2150
+ return ve !== void 0 || (typeof window < "u" && window.performance ? (ve = !0, St = window.performance) : typeof globalThis < "u" && (!((e = globalThis.perf_hooks) === null || e === void 0) && e.performance) ? (ve = !0, St = globalThis.perf_hooks.performance) : ve = !1), ve;
2151
+ }
2152
+ function ga() {
2153
+ return Ea() ? St.now() : Date.now();
2154
+ }
2155
+ class pa {
2156
+ constructor(t, n) {
2157
+ this.target = null, this.targetQueue = [], this.onQueue = [], this.plugin = t, this.hook = n;
2158
+ const r = {};
2159
+ if (t.settings)
2160
+ for (const o in t.settings) {
2161
+ const i = t.settings[o];
2162
+ r[o] = i.defaultValue;
2163
+ }
2164
+ const s = `__vue-devtools-plugin-settings__${t.id}`;
2165
+ let a = Object.assign({}, r);
2166
+ try {
2167
+ const o = localStorage.getItem(s), i = JSON.parse(o);
2168
+ Object.assign(a, i);
2169
+ } catch {
2170
+ }
2171
+ this.fallbacks = {
2172
+ getSettings() {
2173
+ return a;
2174
+ },
2175
+ setSettings(o) {
2176
+ try {
2177
+ localStorage.setItem(s, JSON.stringify(o));
2178
+ } catch {
2179
+ }
2180
+ a = o;
2181
+ },
2182
+ now() {
2183
+ return ga();
2184
+ }
2185
+ }, n && n.on(da, (o, i) => {
2186
+ o === this.plugin.id && this.fallbacks.setSettings(i);
2187
+ }), this.proxiedOn = new Proxy({}, {
2188
+ get: (o, i) => this.target ? this.target.on[i] : (...u) => {
2189
+ this.onQueue.push({
2190
+ method: i,
2191
+ args: u
2192
+ });
2193
+ }
2194
+ }), this.proxiedTarget = new Proxy({}, {
2195
+ get: (o, i) => this.target ? this.target[i] : i === "on" ? this.proxiedOn : Object.keys(this.fallbacks).includes(i) ? (...u) => (this.targetQueue.push({
2196
+ method: i,
2197
+ args: u,
2198
+ resolve: () => {
2199
+ }
2200
+ }), this.fallbacks[i](...u)) : (...u) => new Promise((E) => {
2201
+ this.targetQueue.push({
2202
+ method: i,
2203
+ args: u,
2204
+ resolve: E
2205
+ });
2206
+ })
2207
+ });
2208
+ }
2209
+ async setRealTarget(t) {
2210
+ this.target = t;
2211
+ for (const n of this.onQueue)
2212
+ this.target.on[n.method](...n.args);
2213
+ for (const n of this.targetQueue)
2214
+ n.resolve(await this.target[n.method](...n.args));
2215
+ }
2216
+ }
2217
+ function Na(e, t) {
2218
+ const n = e, r = ar(), s = fa(), a = _a && n.enableEarlyProxy;
2219
+ if (s && (r.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__ || !a))
2220
+ s.emit(ma, e, t);
2221
+ else {
2222
+ const o = a ? new pa(n, s) : null;
2223
+ (r.__VUE_DEVTOOLS_PLUGINS__ = r.__VUE_DEVTOOLS_PLUGINS__ || []).push({
2224
+ pluginDescriptor: n,
2225
+ setupFn: t,
2226
+ proxy: o
2227
+ }), o && t(o.proxiedTarget);
2228
+ }
2229
+ }
2230
+ /*!
2231
+ * vue-i18n v11.2.8
2232
+ * (c) 2025 kazuya kawaguchi
2233
+ * Released under the MIT License.
2234
+ */
2235
+ const La = "11.2.8";
2236
+ function Ta() {
2237
+ typeof __VUE_I18N_FULL_INSTALL__ != "boolean" && (Le().__VUE_I18N_FULL_INSTALL__ = !0), typeof __VUE_I18N_LEGACY_API__ != "boolean" && (Le().__VUE_I18N_LEGACY_API__ = !0), typeof __INTLIFY_DROP_MESSAGE_COMPILER__ != "boolean" && (Le().__INTLIFY_DROP_MESSAGE_COMPILER__ = !1), typeof __INTLIFY_PROD_DEVTOOLS__ != "boolean" && (Le().__INTLIFY_PROD_DEVTOOLS__ = !1);
2238
+ }
2239
+ const G = {
2240
+ // composer module errors
2241
+ UNEXPECTED_RETURN_TYPE: Cs,
2242
+ // 24
2243
+ // legacy module errors
2244
+ INVALID_ARGUMENT: 25,
2245
+ // i18n module errors
2246
+ MUST_BE_CALL_SETUP_TOP: 26,
2247
+ NOT_INSTALLED: 27,
2248
+ // directive module errors
2249
+ REQUIRED_VALUE: 28,
2250
+ INVALID_VALUE: 29,
2251
+ // vue-devtools errors
2252
+ CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN: 30,
2253
+ NOT_INSTALLED_WITH_PROVIDE: 31,
2254
+ // unexpected error
2255
+ UNEXPECTED_ERROR: 32,
2256
+ // not compatible legacy vue-i18n constructor
2257
+ NOT_COMPATIBLE_LEGACY_VUE_I18N: 33,
2258
+ // Not available Compostion API in Legacy API mode. Please make sure that the legacy API mode is working properly
2259
+ NOT_AVAILABLE_COMPOSITION_IN_LEGACY: 34
2260
+ };
2261
+ function z(e, ...t) {
2262
+ return ye(e, null, process.env.NODE_ENV !== "production" ? { messages: Oa, args: t } : void 0);
2263
+ }
2264
+ const Oa = {
2265
+ [G.UNEXPECTED_RETURN_TYPE]: "Unexpected return type in composer",
2266
+ [G.INVALID_ARGUMENT]: "Invalid argument",
2267
+ [G.MUST_BE_CALL_SETUP_TOP]: "Must be called at the top of a `setup` function",
2268
+ [G.NOT_INSTALLED]: "Need to install with `app.use` function",
2269
+ [G.UNEXPECTED_ERROR]: "Unexpected error",
2270
+ [G.REQUIRED_VALUE]: "Required in value: {0}",
2271
+ [G.INVALID_VALUE]: "Invalid value",
2272
+ [G.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN]: "Cannot setup vue-devtools plugin",
2273
+ [G.NOT_INSTALLED_WITH_PROVIDE]: "Need to install with `provide` function",
2274
+ [G.NOT_COMPATIBLE_LEGACY_VUE_I18N]: "Not compatible legacy VueI18n.",
2275
+ [G.NOT_AVAILABLE_COMPOSITION_IN_LEGACY]: "Not available Compostion API in Legacy API mode. Please make sure that the legacy API mode is working properly"
2276
+ }, Dt = /* @__PURE__ */ ue("__translateVNode"), Pt = /* @__PURE__ */ ue("__datetimeParts"), yt = /* @__PURE__ */ ue("__numberParts"), Ie = /* @__PURE__ */ ue("__enableEmitter"), Ge = /* @__PURE__ */ ue("__disableEmitter"), or = ue("__setPluralRules"), lr = /* @__PURE__ */ ue("__injectWithOption"), Rt = /* @__PURE__ */ ue("__dispose"), ne = {
2277
+ FALLBACK_TO_ROOT: Ws,
2278
+ // 8
2279
+ NOT_FOUND_PARENT_SCOPE: 9,
2280
+ IGNORE_OBJ_FLATTEN: 10,
2281
+ /**
2282
+ * @deprecated will be removed at vue-i18n v12
2283
+ */
2284
+ DEPRECATE_LEGACY_MODE: 11,
2285
+ /**
2286
+ * @deprecated will be removed at vue-i18n v12
2287
+ */
2288
+ DEPRECATE_TRANSLATE_CUSTOME_DIRECTIVE: 12,
2289
+ // duplicate `useI18n` calling
2290
+ DUPLICATE_USE_I18N_CALLING: 13
2291
+ }, Ia = {
2292
+ [ne.FALLBACK_TO_ROOT]: "Fall back to {type} '{key}' with root locale.",
2293
+ [ne.NOT_FOUND_PARENT_SCOPE]: "Not found parent scope. use the global scope.",
2294
+ [ne.IGNORE_OBJ_FLATTEN]: "Ignore object flatten: '{key}' key has an string value",
2295
+ /**
2296
+ * @deprecated will be removed at vue-i18n v12
2297
+ */
2298
+ [ne.DEPRECATE_LEGACY_MODE]: `Legacy API mode has been deprecated in v11. Use Composition API mode instead.
2299
+ About how to use the Composition API mode, see https://vue-i18n.intlify.dev/guide/advanced/composition.html`,
2300
+ /**
2301
+ * @deprecated will be removed at vue-i18n v12
2302
+ */
2303
+ [ne.DEPRECATE_TRANSLATE_CUSTOME_DIRECTIVE]: "'v-t' has been deprecated in v11. Use translate APIs ('t' or '$t') instead.",
2304
+ [ne.DUPLICATE_USE_I18N_CALLING]: "Duplicate `useI18n` calling by local scope. Please don't call it on local scope, due to it does not work properly in component."
2305
+ };
2306
+ function Pe(e, ...t) {
2307
+ return Ze(Ia[e], ...t);
2308
+ }
2309
+ function xe(e) {
2310
+ if (!F(e) || re(e))
2311
+ return e;
2312
+ for (const t in e)
2313
+ if (ae(e, t))
2314
+ if (!t.includes("."))
2315
+ F(e[t]) && xe(e[t]);
2316
+ else {
2317
+ const n = t.split("."), r = n.length - 1;
2318
+ let s = e, a = !1;
2319
+ for (let o = 0; o < r; o++) {
2320
+ if (n[o] === "__proto__")
2321
+ throw new Error(`unsafe key: ${n[o]}`);
2322
+ if (n[o] in s || (s[n[o]] = $()), !F(s[n[o]])) {
2323
+ process.env.NODE_ENV !== "production" && ce(Pe(ne.IGNORE_OBJ_FLATTEN, {
2324
+ key: n[o]
2325
+ })), a = !0;
2326
+ break;
2327
+ }
2328
+ s = s[n[o]];
2329
+ }
2330
+ if (a || (re(s) ? Kn.includes(n[r]) || delete e[t] : (s[n[r]] = e[t], delete e[t])), !re(s)) {
2331
+ const o = s[n[r]];
2332
+ F(o) && xe(o);
2333
+ }
2334
+ }
2335
+ return e;
2336
+ }
2337
+ function Bt(e, t) {
2338
+ const { messages: n, __i18n: r, messageResolver: s, flatJson: a } = t, o = k(n) ? n : H(r) ? $() : { [e]: $() };
2339
+ if (H(r) && r.forEach((i) => {
2340
+ if ("locale" in i && "resource" in i) {
2341
+ const { locale: u, resource: E } = i;
2342
+ u ? (o[u] = o[u] || $(), Qe(E, o[u])) : Qe(E, o);
2343
+ } else
2344
+ h(i) && Qe(JSON.parse(i), o);
2345
+ }), s == null && a)
2346
+ for (const i in o)
2347
+ ae(o, i) && xe(o[i]);
2348
+ return o;
2349
+ }
2350
+ function ir(e) {
2351
+ return e.type;
2352
+ }
2353
+ function cr(e, t, n) {
2354
+ let r = F(t.messages) ? t.messages : $();
2355
+ "__i18nGlobal" in n && (r = Bt(e.locale.value, {
2356
+ messages: r,
2357
+ __i18n: n.__i18nGlobal
2358
+ }));
2359
+ const s = Object.keys(r);
2360
+ s.length && s.forEach((a) => {
2361
+ e.mergeLocaleMessage(a, r[a]);
2362
+ });
2363
+ {
2364
+ if (F(t.datetimeFormats)) {
2365
+ const a = Object.keys(t.datetimeFormats);
2366
+ a.length && a.forEach((o) => {
2367
+ e.mergeDateTimeFormat(o, t.datetimeFormats[o]);
2368
+ });
2369
+ }
2370
+ if (F(t.numberFormats)) {
2371
+ const a = Object.keys(t.numberFormats);
2372
+ a.length && a.forEach((o) => {
2373
+ e.mergeNumberFormat(o, t.numberFormats[o]);
2374
+ });
2375
+ }
2376
+ }
2377
+ }
2378
+ function bn(e) {
2379
+ return hr(br, null, e, 0);
2380
+ }
2381
+ function Ce() {
2382
+ const e = "currentInstance";
2383
+ return e in pt ? pt[e] : pt.getCurrentInstance();
2384
+ }
2385
+ const vn = "__INTLIFY_META__", An = () => [], ha = () => !1;
2386
+ let Cn = 0;
2387
+ function Sn(e) {
2388
+ return (t, n, r, s) => e(n, r, Ce() || void 0, s);
2389
+ }
2390
+ const ba = /* @__NO_SIDE_EFFECTS__ */ () => {
2391
+ const e = Ce();
2392
+ let t = null;
2393
+ return e && (t = ir(e)[vn]) ? { [vn]: t } : null;
2394
+ };
2395
+ function Xt(e = {}) {
2396
+ const { __root: t, __injectWithOption: n } = e, r = t === void 0, s = e.flatJson, a = oe ? Or : Ir;
2397
+ let o = M(e.inheritLocale) ? e.inheritLocale : !0;
2398
+ const i = a(
2399
+ // prettier-ignore
2400
+ t && o ? t.locale.value : h(e.locale) ? e.locale : We
2401
+ ), u = a(
2402
+ // prettier-ignore
2403
+ t && o ? t.fallbackLocale.value : h(e.fallbackLocale) || H(e.fallbackLocale) || k(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : i.value
2404
+ ), E = a(Bt(i.value, e)), I = a(k(e.datetimeFormats) ? e.datetimeFormats : { [i.value]: {} }), T = a(k(e.numberFormats) ? e.numberFormats : { [i.value]: {} });
2405
+ let N = t ? t.missingWarn : M(e.missingWarn) || Se(e.missingWarn) ? e.missingWarn : !0, C = t ? t.fallbackWarn : M(e.fallbackWarn) || Se(e.fallbackWarn) ? e.fallbackWarn : !0, y = t ? t.fallbackRoot : M(e.fallbackRoot) ? e.fallbackRoot : !0, A = !!e.fallbackFormat, S = W(e.missing) ? e.missing : null, f = W(e.missing) ? Sn(e.missing) : null, m = W(e.postTranslation) ? e.postTranslation : null, O = t ? t.warnHtmlMessage : M(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, d = !!e.escapeParameter;
2406
+ const b = t ? t.modifiers : k(e.modifiers) ? e.modifiers : {};
2407
+ let v = e.pluralRules || t && t.pluralRules, g;
2408
+ g = (() => {
2409
+ r && dn(null);
2410
+ const _ = {
2411
+ version: La,
2412
+ locale: i.value,
2413
+ fallbackLocale: u.value,
2414
+ messages: E.value,
2415
+ modifiers: b,
2416
+ pluralRules: v,
2417
+ missing: f === null ? void 0 : f,
2418
+ missingWarn: N,
2419
+ fallbackWarn: C,
2420
+ fallbackFormat: A,
2421
+ unresolving: !0,
2422
+ postTranslation: m === null ? void 0 : m,
2423
+ warnHtmlMessage: O,
2424
+ escapeParameter: d,
2425
+ messageResolver: e.messageResolver,
2426
+ messageCompiler: e.messageCompiler,
2427
+ __meta: { framework: "vue" }
2428
+ };
2429
+ _.datetimeFormats = I.value, _.numberFormats = T.value, _.__datetimeFormatters = k(g) ? g.__datetimeFormatters : void 0, _.__numberFormatters = k(g) ? g.__numberFormatters : void 0, process.env.NODE_ENV !== "production" && (_.__v_emitter = k(g) ? g.__v_emitter : void 0);
2430
+ const L = Qs(_);
2431
+ return r && dn(L), L;
2432
+ })(), we(g, i.value, u.value);
2433
+ function w() {
2434
+ return [
2435
+ i.value,
2436
+ u.value,
2437
+ E.value,
2438
+ I.value,
2439
+ T.value
2440
+ ];
2441
+ }
2442
+ const X = Ue({
2443
+ get: () => i.value,
2444
+ set: (_) => {
2445
+ g.locale = _, i.value = _;
2446
+ }
2447
+ }), se = Ue({
2448
+ get: () => u.value,
2449
+ set: (_) => {
2450
+ g.fallbackLocale = _, u.value = _, we(g, i.value, _);
2451
+ }
2452
+ }), Y = Ue(() => E.value), he = /* @__PURE__ */ Ue(() => I.value), nt = /* @__PURE__ */ Ue(() => T.value);
2453
+ function rt() {
2454
+ return W(m) ? m : null;
2455
+ }
2456
+ function st(_) {
2457
+ m = _, g.postTranslation = _;
2458
+ }
2459
+ function at() {
2460
+ return S;
2461
+ }
2462
+ function ot(_) {
2463
+ _ !== null && (f = Sn(_)), S = _, g.missing = f;
2464
+ }
2465
+ function lt(_, L) {
2466
+ return _ !== "translate" || !L.resolvedMessage;
2467
+ }
2468
+ const fe = (_, L, V, j, pe, je) => {
2469
+ w();
2470
+ let be;
2471
+ try {
2472
+ process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__, r || (g.fallbackContext = t ? Js() : void 0), be = _(g);
2473
+ } finally {
2474
+ process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__, r || (g.fallbackContext = void 0);
2475
+ }
2476
+ if (V !== "translate exists" && // for not `te` (e.g `t`)
2477
+ B(be) && be === et || V === "translate exists" && !be) {
2478
+ const [Ne, Er] = L();
2479
+ if (process.env.NODE_ENV !== "production" && t && h(Ne) && lt(V, Er) && (y && (tt(C, Ne) || Zn(N, Ne)) && ce(Pe(ne.FALLBACK_TO_ROOT, {
2480
+ key: Ne,
2481
+ type: V
2482
+ })), process.env.NODE_ENV !== "production")) {
2483
+ const { __v_emitter: zt } = g;
2484
+ zt && y && zt.emit("fallback", {
2485
+ type: V,
2486
+ key: Ne,
2487
+ to: "global",
2488
+ groupId: `${V}:${Ne}`
2489
+ });
2490
+ }
2491
+ return t && y ? j(t) : pe(Ne);
2492
+ } else {
2493
+ if (je(be))
2494
+ return be;
2495
+ throw z(G.UNEXPECTED_RETURN_TYPE);
2496
+ }
2497
+ };
2498
+ function Re(..._) {
2499
+ return fe((L) => Reflect.apply(hn, null, [L, ..._]), () => Ct(..._), "translate", (L) => Reflect.apply(L.t, L, [..._]), (L) => L, (L) => h(L));
2500
+ }
2501
+ function it(..._) {
2502
+ const [L, V, j] = _;
2503
+ if (j && !F(j))
2504
+ throw z(G.INVALID_ARGUMENT);
2505
+ return Re(L, V, J({ resolvedMessage: !0 }, j || {}));
2506
+ }
2507
+ function ct(..._) {
2508
+ return fe((L) => Reflect.apply(pn, null, [L, ..._]), () => vt(..._), "datetime format", (L) => Reflect.apply(L.d, L, [..._]), () => qe, (L) => h(L) || H(L));
2509
+ }
2510
+ function ut(..._) {
2511
+ return fe((L) => Reflect.apply(Ln, null, [L, ..._]), () => At(..._), "number format", (L) => Reflect.apply(L.n, L, [..._]), () => qe, (L) => h(L) || H(L));
2512
+ }
2513
+ function ft(_) {
2514
+ return _.map((L) => h(L) || B(L) || M(L) ? bn(String(L)) : L);
2515
+ }
2516
+ const _t = {
2517
+ normalize: ft,
2518
+ interpolate: (_) => _,
2519
+ type: "vnode"
2520
+ };
2521
+ function Ye(..._) {
2522
+ return fe((L) => {
2523
+ let V;
2524
+ const j = L;
2525
+ try {
2526
+ j.processor = _t, V = Reflect.apply(hn, null, [j, ..._]);
2527
+ } finally {
2528
+ j.processor = null;
2529
+ }
2530
+ return V;
2531
+ }, () => Ct(..._), "translate", (L) => L[Dt](..._), (L) => [bn(L)], (L) => H(L));
2532
+ }
2533
+ function mt(..._) {
2534
+ return fe((L) => Reflect.apply(Ln, null, [L, ..._]), () => At(..._), "number format", (L) => L[yt](..._), An, (L) => h(L) || H(L));
2535
+ }
2536
+ function Ke(..._) {
2537
+ return fe((L) => Reflect.apply(pn, null, [L, ..._]), () => vt(..._), "datetime format", (L) => L[Pt](..._), An, (L) => h(L) || H(L));
2538
+ }
2539
+ function dt(_) {
2540
+ v = _, g.pluralRules = v;
2541
+ }
2542
+ function Et(_, L) {
2543
+ return fe(() => {
2544
+ if (!_)
2545
+ return !1;
2546
+ const V = h(L) ? L : i.value, j = ge(V), pe = g.messageResolver(j, _);
2547
+ return re(pe) || te(pe) || h(pe);
2548
+ }, () => [_], "translate exists", (V) => Reflect.apply(V.te, V, [_, L]), ha, (V) => M(V));
2549
+ }
2550
+ function ke(_) {
2551
+ let L = null;
2552
+ const V = jn(g, u.value, i.value);
2553
+ for (let j = 0; j < V.length; j++) {
2554
+ const pe = E.value[V[j]] || {}, je = g.messageResolver(pe, _);
2555
+ if (je != null) {
2556
+ L = je;
2557
+ break;
2558
+ }
2559
+ }
2560
+ return L;
2561
+ }
2562
+ function Fe(_) {
2563
+ const L = ke(_);
2564
+ return L ?? (t ? t.tm(_) || {} : {});
2565
+ }
2566
+ function ge(_) {
2567
+ return E.value[_] || {};
2568
+ }
2569
+ function Me(_, L) {
2570
+ if (s) {
2571
+ const V = { [_]: L };
2572
+ for (const j in V)
2573
+ ae(V, j) && xe(V[j]);
2574
+ L = V[_];
2575
+ }
2576
+ E.value[_] = L, g.messages = E.value;
2577
+ }
2578
+ function gt(_, L) {
2579
+ E.value[_] = E.value[_] || {};
2580
+ const V = { [_]: L };
2581
+ if (s)
2582
+ for (const j in V)
2583
+ ae(V, j) && xe(V[j]);
2584
+ L = V[_], Qe(L, E.value[_]), g.messages = E.value;
2585
+ }
2586
+ function l(_) {
2587
+ return I.value[_] || {};
2588
+ }
2589
+ function c(_, L) {
2590
+ I.value[_] = L, g.datetimeFormats = I.value, Nn(g, _, L);
2591
+ }
2592
+ function p(_, L) {
2593
+ I.value[_] = J(I.value[_] || {}, L), g.datetimeFormats = I.value, Nn(g, _, L);
2594
+ }
2595
+ function D(_) {
2596
+ return T.value[_] || {};
2597
+ }
2598
+ function x(_, L) {
2599
+ T.value[_] = L, g.numberFormats = T.value, Tn(g, _, L);
2600
+ }
2601
+ function K(_, L) {
2602
+ T.value[_] = J(T.value[_] || {}, L), g.numberFormats = T.value, Tn(g, _, L);
2603
+ }
2604
+ Cn++, t && oe && (It(t.locale, (_) => {
2605
+ o && (i.value = _, g.locale = _, we(g, i.value, u.value));
2606
+ }), It(t.fallbackLocale, (_) => {
2607
+ o && (u.value = _, g.fallbackLocale = _, we(g, i.value, u.value));
2608
+ }));
2609
+ const U = {
2610
+ id: Cn,
2611
+ locale: X,
2612
+ fallbackLocale: se,
2613
+ get inheritLocale() {
2614
+ return o;
2615
+ },
2616
+ set inheritLocale(_) {
2617
+ o = _, _ && t && (i.value = t.locale.value, u.value = t.fallbackLocale.value, we(g, i.value, u.value));
2618
+ },
2619
+ get availableLocales() {
2620
+ return Object.keys(E.value).sort();
2621
+ },
2622
+ messages: Y,
2623
+ get modifiers() {
2624
+ return b;
2625
+ },
2626
+ get pluralRules() {
2627
+ return v || {};
2628
+ },
2629
+ get isGlobal() {
2630
+ return r;
2631
+ },
2632
+ get missingWarn() {
2633
+ return N;
2634
+ },
2635
+ set missingWarn(_) {
2636
+ N = _, g.missingWarn = N;
2637
+ },
2638
+ get fallbackWarn() {
2639
+ return C;
2640
+ },
2641
+ set fallbackWarn(_) {
2642
+ C = _, g.fallbackWarn = C;
2643
+ },
2644
+ get fallbackRoot() {
2645
+ return y;
2646
+ },
2647
+ set fallbackRoot(_) {
2648
+ y = _;
2649
+ },
2650
+ get fallbackFormat() {
2651
+ return A;
2652
+ },
2653
+ set fallbackFormat(_) {
2654
+ A = _, g.fallbackFormat = A;
2655
+ },
2656
+ get warnHtmlMessage() {
2657
+ return O;
2658
+ },
2659
+ set warnHtmlMessage(_) {
2660
+ O = _, g.warnHtmlMessage = _;
2661
+ },
2662
+ get escapeParameter() {
2663
+ return d;
2664
+ },
2665
+ set escapeParameter(_) {
2666
+ d = _, g.escapeParameter = _;
2667
+ },
2668
+ t: Re,
2669
+ getLocaleMessage: ge,
2670
+ setLocaleMessage: Me,
2671
+ mergeLocaleMessage: gt,
2672
+ getPostTranslationHandler: rt,
2673
+ setPostTranslationHandler: st,
2674
+ getMissingHandler: at,
2675
+ setMissingHandler: ot,
2676
+ [or]: dt
2677
+ };
2678
+ return U.datetimeFormats = he, U.numberFormats = nt, U.rt = it, U.te = Et, U.tm = Fe, U.d = ct, U.n = ut, U.getDateTimeFormat = l, U.setDateTimeFormat = c, U.mergeDateTimeFormat = p, U.getNumberFormat = D, U.setNumberFormat = x, U.mergeNumberFormat = K, U[lr] = n, U[Dt] = Ye, U[Pt] = Ke, U[yt] = mt, process.env.NODE_ENV !== "production" && (U[Ie] = (_) => {
2679
+ g.__v_emitter = _;
2680
+ }, U[Ge] = () => {
2681
+ g.__v_emitter = void 0;
2682
+ }), U;
2683
+ }
2684
+ const ur = "vue-i18n: composer properties", Ot = {
2685
+ "vue-devtools-plugin-vue-i18n": "Vue I18n DevTools",
2686
+ "vue-i18n-resource-inspector": "Vue I18n DevTools",
2687
+ "vue-i18n-timeline": "Vue I18n"
2688
+ }, va = {
2689
+ "vue-i18n-resource-inspector": "Search for scopes ..."
2690
+ }, Aa = {
2691
+ "vue-i18n-timeline": 16764185
2692
+ };
2693
+ let kt;
2694
+ async function Ca(e, t) {
2695
+ return new Promise((n, r) => {
2696
+ try {
2697
+ Na({
2698
+ id: "vue-devtools-plugin-vue-i18n",
2699
+ label: Ot["vue-devtools-plugin-vue-i18n"],
2700
+ packageName: "vue-i18n",
2701
+ homepage: "https://vue-i18n.intlify.dev",
2702
+ logo: "https://vue-i18n.intlify.dev/vue-i18n-devtools-logo.png",
2703
+ componentStateTypes: [ur],
2704
+ app: e
2705
+ // eslint-disable-line @typescript-eslint/no-explicit-any
2706
+ }, (s) => {
2707
+ kt = s, s.on.visitComponentTree(({ componentInstance: o, treeNode: i }) => {
2708
+ Sa(o, i, t);
2709
+ }), s.on.inspectComponent(({ componentInstance: o, instanceData: i }) => {
2710
+ o.__VUE_I18N__ && i && (t.mode === "legacy" ? o.__VUE_I18N__ !== t.global.__composer && Dn(i, o.__VUE_I18N__) : Dn(i, o.__VUE_I18N__));
2711
+ }), s.addInspector({
2712
+ id: "vue-i18n-resource-inspector",
2713
+ label: Ot["vue-i18n-resource-inspector"],
2714
+ icon: "language",
2715
+ treeFilterPlaceholder: va["vue-i18n-resource-inspector"]
2716
+ }), s.on.getInspectorTree((o) => {
2717
+ o.app === e && o.inspectorId === "vue-i18n-resource-inspector" && ka(o, t);
2718
+ });
2719
+ const a = /* @__PURE__ */ new Map();
2720
+ s.on.getInspectorState(async (o) => {
2721
+ if (o.app === e && o.inspectorId === "vue-i18n-resource-inspector")
2722
+ if (s.unhighlightElement(), Ma(o, t), o.nodeId === "global") {
2723
+ if (!a.has(o.app)) {
2724
+ const [i] = await s.getComponentInstances(o.app);
2725
+ a.set(o.app, i);
2726
+ }
2727
+ s.highlightElement(a.get(o.app));
2728
+ } else {
2729
+ const i = Fa(o.nodeId, t);
2730
+ i && s.highlightElement(i);
2731
+ }
2732
+ }), s.on.editInspectorState((o) => {
2733
+ o.app === e && o.inspectorId === "vue-i18n-resource-inspector" && wa(o, t);
2734
+ }), s.addTimelineLayer({
2735
+ id: "vue-i18n-timeline",
2736
+ label: Ot["vue-i18n-timeline"],
2737
+ color: Aa["vue-i18n-timeline"]
2738
+ }), n(!0);
2739
+ });
2740
+ } catch (s) {
2741
+ console.error(s), r(!1);
2742
+ }
2743
+ });
2744
+ }
2745
+ function fr(e) {
2746
+ return e.type.name || e.type.displayName || e.type.__file || "Anonymous";
2747
+ }
2748
+ function Sa(e, t, n) {
2749
+ const r = n.mode === "composition" ? n.global : n.global.__composer;
2750
+ if (e && e.__VUE_I18N__ && e.__VUE_I18N__ !== r) {
2751
+ const s = {
2752
+ label: `i18n (${fr(e)} Scope)`,
2753
+ textColor: 0,
2754
+ backgroundColor: 16764185
2755
+ };
2756
+ t.tags.push(s);
2757
+ }
2758
+ }
2759
+ function Dn(e, t) {
2760
+ const n = ur;
2761
+ e.state.push({
2762
+ type: n,
2763
+ key: "locale",
2764
+ editable: !0,
2765
+ value: t.locale.value
2766
+ }), e.state.push({
2767
+ type: n,
2768
+ key: "availableLocales",
2769
+ editable: !1,
2770
+ value: t.availableLocales
2771
+ }), e.state.push({
2772
+ type: n,
2773
+ key: "fallbackLocale",
2774
+ editable: !0,
2775
+ value: t.fallbackLocale.value
2776
+ }), e.state.push({
2777
+ type: n,
2778
+ key: "inheritLocale",
2779
+ editable: !0,
2780
+ value: t.inheritLocale
2781
+ }), e.state.push({
2782
+ type: n,
2783
+ key: "messages",
2784
+ editable: !1,
2785
+ value: Jt(t.messages.value)
2786
+ }), e.state.push({
2787
+ type: n,
2788
+ key: "datetimeFormats",
2789
+ editable: !1,
2790
+ value: t.datetimeFormats.value
2791
+ }), e.state.push({
2792
+ type: n,
2793
+ key: "numberFormats",
2794
+ editable: !1,
2795
+ value: t.numberFormats.value
2796
+ });
2797
+ }
2798
+ function Jt(e) {
2799
+ const t = {};
2800
+ return Object.keys(e).forEach((n) => {
2801
+ const r = e[n];
2802
+ W(r) && "source" in r ? t[n] = Ra(r) : re(r) && r.loc && r.loc.source ? t[n] = r.loc.source : F(r) ? t[n] = Jt(r) : t[n] = r;
2803
+ }), t;
2804
+ }
2805
+ const Da = {
2806
+ "<": "&lt;",
2807
+ ">": "&gt;",
2808
+ '"': "&quot;",
2809
+ "&": "&amp;"
2810
+ };
2811
+ function Pa(e) {
2812
+ return e.replace(/[<>"&]/g, ya);
2813
+ }
2814
+ function ya(e) {
2815
+ return Da[e] || e;
2816
+ }
2817
+ function Ra(e) {
2818
+ return {
2819
+ _custom: {
2820
+ type: "function",
2821
+ display: `<span>ƒ</span> ${e.source ? `("${Pa(e.source)}")` : "(?)"}`
2822
+ }
2823
+ };
2824
+ }
2825
+ function ka(e, t) {
2826
+ e.rootNodes.push({
2827
+ id: "global",
2828
+ label: "Global Scope"
2829
+ });
2830
+ const n = t.mode === "composition" ? t.global : t.global.__composer;
2831
+ for (const [r, s] of t.__instances) {
2832
+ const a = t.mode === "composition" ? s : s.__composer;
2833
+ n !== a && e.rootNodes.push({
2834
+ id: a.id.toString(),
2835
+ label: `${fr(r)} Scope`
2836
+ });
2837
+ }
2838
+ }
2839
+ function Fa(e, t) {
2840
+ let n = null;
2841
+ if (e !== "global") {
2842
+ for (const [r, s] of t.__instances.entries())
2843
+ if (s.id.toString() === e) {
2844
+ n = r;
2845
+ break;
2846
+ }
2847
+ }
2848
+ return n;
2849
+ }
2850
+ function _r(e, t) {
2851
+ if (e === "global")
2852
+ return t.mode === "composition" ? t.global : t.global.__composer;
2853
+ {
2854
+ const n = Array.from(t.__instances.values()).find((r) => r.id.toString() === e);
2855
+ return n ? t.mode === "composition" ? n : n.__composer : null;
2856
+ }
2857
+ }
2858
+ function Ma(e, t) {
2859
+ const n = _r(e.nodeId, t);
2860
+ return n && (e.state = Ua(n)), null;
2861
+ }
2862
+ function Ua(e) {
2863
+ const t = {}, n = "Locale related info", r = [
2864
+ {
2865
+ type: n,
2866
+ key: "locale",
2867
+ editable: !0,
2868
+ value: e.locale.value
2869
+ },
2870
+ {
2871
+ type: n,
2872
+ key: "fallbackLocale",
2873
+ editable: !0,
2874
+ value: e.fallbackLocale.value
2875
+ },
2876
+ {
2877
+ type: n,
2878
+ key: "availableLocales",
2879
+ editable: !1,
2880
+ value: e.availableLocales
2881
+ },
2882
+ {
2883
+ type: n,
2884
+ key: "inheritLocale",
2885
+ editable: !0,
2886
+ value: e.inheritLocale
2887
+ }
2888
+ ];
2889
+ t[n] = r;
2890
+ const s = "Locale messages info", a = [
2891
+ {
2892
+ type: s,
2893
+ key: "messages",
2894
+ editable: !1,
2895
+ value: Jt(e.messages.value)
2896
+ }
2897
+ ];
2898
+ t[s] = a;
2899
+ {
2900
+ const o = "Datetime formats info", i = [
2901
+ {
2902
+ type: o,
2903
+ key: "datetimeFormats",
2904
+ editable: !1,
2905
+ value: e.datetimeFormats.value
2906
+ }
2907
+ ];
2908
+ t[o] = i;
2909
+ const u = "Datetime formats info", E = [
2910
+ {
2911
+ type: u,
2912
+ key: "numberFormats",
2913
+ editable: !1,
2914
+ value: e.numberFormats.value
2915
+ }
2916
+ ];
2917
+ t[u] = E;
2918
+ }
2919
+ return t;
2920
+ }
2921
+ function He(e, t) {
2922
+ if (kt) {
2923
+ let n;
2924
+ t && "groupId" in t && (n = t.groupId, delete t.groupId), kt.addTimelineEvent({
2925
+ layerId: "vue-i18n-timeline",
2926
+ event: {
2927
+ title: e,
2928
+ groupId: n,
2929
+ time: Date.now(),
2930
+ meta: {},
2931
+ data: t || {},
2932
+ logType: e === "compile-error" ? "error" : e === "fallback" || e === "missing" ? "warning" : "default"
2933
+ }
2934
+ });
2935
+ }
2936
+ }
2937
+ function wa(e, t) {
2938
+ const n = _r(e.nodeId, t);
2939
+ if (n) {
2940
+ const [r] = e.path;
2941
+ r === "locale" && h(e.state.value) ? n.locale.value = e.state.value : r === "fallbackLocale" && (h(e.state.value) || H(e.state.value) || F(e.state.value)) ? n.fallbackLocale.value = e.state.value : r === "inheritLocale" && M(e.state.value) && (n.inheritLocale = e.state.value);
2942
+ }
2943
+ }
2944
+ function Va(e) {
2945
+ const t = h(e.locale) ? e.locale : We, n = h(e.fallbackLocale) || H(e.fallbackLocale) || k(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : t, r = W(e.missing) ? e.missing : void 0, s = M(e.silentTranslationWarn) || Se(e.silentTranslationWarn) ? !e.silentTranslationWarn : !0, a = M(e.silentFallbackWarn) || Se(e.silentFallbackWarn) ? !e.silentFallbackWarn : !0, o = M(e.fallbackRoot) ? e.fallbackRoot : !0, i = !!e.formatFallbackMessages, u = k(e.modifiers) ? e.modifiers : {}, E = e.pluralizationRules, I = W(e.postTranslation) ? e.postTranslation : void 0, T = h(e.warnHtmlInMessage) ? e.warnHtmlInMessage !== "off" : !0, N = !!e.escapeParameterHtml, C = M(e.sync) ? e.sync : !0;
2946
+ let y = e.messages;
2947
+ if (k(e.sharedMessages)) {
2948
+ const b = e.sharedMessages;
2949
+ y = Object.keys(b).reduce((g, R) => {
2950
+ const w = g[R] || (g[R] = {});
2951
+ return J(w, b[R]), g;
2952
+ }, y || {});
2953
+ }
2954
+ const { __i18n: A, __root: S, __injectWithOption: f } = e, m = e.datetimeFormats, O = e.numberFormats, d = e.flatJson;
2955
+ return {
2956
+ locale: t,
2957
+ fallbackLocale: n,
2958
+ messages: y,
2959
+ flatJson: d,
2960
+ datetimeFormats: m,
2961
+ numberFormats: O,
2962
+ missing: r,
2963
+ missingWarn: s,
2964
+ fallbackWarn: a,
2965
+ fallbackRoot: o,
2966
+ fallbackFormat: i,
2967
+ modifiers: u,
2968
+ pluralRules: E,
2969
+ postTranslation: I,
2970
+ warnHtmlMessage: T,
2971
+ escapeParameter: N,
2972
+ messageResolver: e.messageResolver,
2973
+ inheritLocale: C,
2974
+ __i18n: A,
2975
+ __root: S,
2976
+ __injectWithOption: f
2977
+ };
2978
+ }
2979
+ function Ft(e = {}) {
2980
+ const t = Xt(Va(e)), { __extender: n } = e, r = {
2981
+ // id
2982
+ id: t.id,
2983
+ // locale
2984
+ get locale() {
2985
+ return t.locale.value;
2986
+ },
2987
+ set locale(s) {
2988
+ t.locale.value = s;
2989
+ },
2990
+ // fallbackLocale
2991
+ get fallbackLocale() {
2992
+ return t.fallbackLocale.value;
2993
+ },
2994
+ set fallbackLocale(s) {
2995
+ t.fallbackLocale.value = s;
2996
+ },
2997
+ // messages
2998
+ get messages() {
2999
+ return t.messages.value;
3000
+ },
3001
+ // datetimeFormats
3002
+ get datetimeFormats() {
3003
+ return t.datetimeFormats.value;
3004
+ },
3005
+ // numberFormats
3006
+ get numberFormats() {
3007
+ return t.numberFormats.value;
3008
+ },
3009
+ // availableLocales
3010
+ get availableLocales() {
3011
+ return t.availableLocales;
3012
+ },
3013
+ // missing
3014
+ get missing() {
3015
+ return t.getMissingHandler();
3016
+ },
3017
+ set missing(s) {
3018
+ t.setMissingHandler(s);
3019
+ },
3020
+ // silentTranslationWarn
3021
+ get silentTranslationWarn() {
3022
+ return M(t.missingWarn) ? !t.missingWarn : t.missingWarn;
3023
+ },
3024
+ set silentTranslationWarn(s) {
3025
+ t.missingWarn = M(s) ? !s : s;
3026
+ },
3027
+ // silentFallbackWarn
3028
+ get silentFallbackWarn() {
3029
+ return M(t.fallbackWarn) ? !t.fallbackWarn : t.fallbackWarn;
3030
+ },
3031
+ set silentFallbackWarn(s) {
3032
+ t.fallbackWarn = M(s) ? !s : s;
3033
+ },
3034
+ // modifiers
3035
+ get modifiers() {
3036
+ return t.modifiers;
3037
+ },
3038
+ // formatFallbackMessages
3039
+ get formatFallbackMessages() {
3040
+ return t.fallbackFormat;
3041
+ },
3042
+ set formatFallbackMessages(s) {
3043
+ t.fallbackFormat = s;
3044
+ },
3045
+ // postTranslation
3046
+ get postTranslation() {
3047
+ return t.getPostTranslationHandler();
3048
+ },
3049
+ set postTranslation(s) {
3050
+ t.setPostTranslationHandler(s);
3051
+ },
3052
+ // sync
3053
+ get sync() {
3054
+ return t.inheritLocale;
3055
+ },
3056
+ set sync(s) {
3057
+ t.inheritLocale = s;
3058
+ },
3059
+ // warnInHtmlMessage
3060
+ get warnHtmlInMessage() {
3061
+ return t.warnHtmlMessage ? "warn" : "off";
3062
+ },
3063
+ set warnHtmlInMessage(s) {
3064
+ t.warnHtmlMessage = s !== "off";
3065
+ },
3066
+ // escapeParameterHtml
3067
+ get escapeParameterHtml() {
3068
+ return t.escapeParameter;
3069
+ },
3070
+ set escapeParameterHtml(s) {
3071
+ t.escapeParameter = s;
3072
+ },
3073
+ // pluralizationRules
3074
+ get pluralizationRules() {
3075
+ return t.pluralRules || {};
3076
+ },
3077
+ // for internal
3078
+ __composer: t,
3079
+ // t
3080
+ t(...s) {
3081
+ return Reflect.apply(t.t, t, [...s]);
3082
+ },
3083
+ // rt
3084
+ rt(...s) {
3085
+ return Reflect.apply(t.rt, t, [...s]);
3086
+ },
3087
+ // te
3088
+ te(s, a) {
3089
+ return t.te(s, a);
3090
+ },
3091
+ // tm
3092
+ tm(s) {
3093
+ return t.tm(s);
3094
+ },
3095
+ // getLocaleMessage
3096
+ getLocaleMessage(s) {
3097
+ return t.getLocaleMessage(s);
3098
+ },
3099
+ // setLocaleMessage
3100
+ setLocaleMessage(s, a) {
3101
+ t.setLocaleMessage(s, a);
3102
+ },
3103
+ // mergeLocaleMessage
3104
+ mergeLocaleMessage(s, a) {
3105
+ t.mergeLocaleMessage(s, a);
3106
+ },
3107
+ // d
3108
+ d(...s) {
3109
+ return Reflect.apply(t.d, t, [...s]);
3110
+ },
3111
+ // getDateTimeFormat
3112
+ getDateTimeFormat(s) {
3113
+ return t.getDateTimeFormat(s);
3114
+ },
3115
+ // setDateTimeFormat
3116
+ setDateTimeFormat(s, a) {
3117
+ t.setDateTimeFormat(s, a);
3118
+ },
3119
+ // mergeDateTimeFormat
3120
+ mergeDateTimeFormat(s, a) {
3121
+ t.mergeDateTimeFormat(s, a);
3122
+ },
3123
+ // n
3124
+ n(...s) {
3125
+ return Reflect.apply(t.n, t, [...s]);
3126
+ },
3127
+ // getNumberFormat
3128
+ getNumberFormat(s) {
3129
+ return t.getNumberFormat(s);
3130
+ },
3131
+ // setNumberFormat
3132
+ setNumberFormat(s, a) {
3133
+ t.setNumberFormat(s, a);
3134
+ },
3135
+ // mergeNumberFormat
3136
+ mergeNumberFormat(s, a) {
3137
+ t.mergeNumberFormat(s, a);
3138
+ }
3139
+ };
3140
+ return r.__extender = n, process.env.NODE_ENV !== "production" && (r.__enableEmitter = (s) => {
3141
+ const a = t;
3142
+ a[Ie] && a[Ie](s);
3143
+ }, r.__disableEmitter = () => {
3144
+ const s = t;
3145
+ s[Ge] && s[Ge]();
3146
+ }), r;
3147
+ }
3148
+ function $a(e, t, n) {
3149
+ return {
3150
+ beforeCreate() {
3151
+ const r = Ce();
3152
+ if (!r)
3153
+ throw z(G.UNEXPECTED_ERROR);
3154
+ const s = this.$options;
3155
+ if (s.i18n) {
3156
+ const a = s.i18n;
3157
+ if (s.__i18n && (a.__i18n = s.__i18n), a.__root = t, this === this.$root)
3158
+ this.$i18n = Pn(e, a);
3159
+ else {
3160
+ a.__injectWithOption = !0, a.__extender = n.__vueI18nExtend, this.$i18n = Ft(a);
3161
+ const o = this.$i18n;
3162
+ o.__extender && (o.__disposer = o.__extender(this.$i18n));
3163
+ }
3164
+ } else if (s.__i18n)
3165
+ if (this === this.$root)
3166
+ this.$i18n = Pn(e, s);
3167
+ else {
3168
+ this.$i18n = Ft({
3169
+ __i18n: s.__i18n,
3170
+ __injectWithOption: !0,
3171
+ __extender: n.__vueI18nExtend,
3172
+ __root: t
3173
+ });
3174
+ const a = this.$i18n;
3175
+ a.__extender && (a.__disposer = a.__extender(this.$i18n));
3176
+ }
3177
+ else
3178
+ this.$i18n = e;
3179
+ s.__i18nGlobal && cr(t, s, s), this.$t = (...a) => this.$i18n.t(...a), this.$rt = (...a) => this.$i18n.rt(...a), this.$te = (a, o) => this.$i18n.te(a, o), this.$d = (...a) => this.$i18n.d(...a), this.$n = (...a) => this.$i18n.n(...a), this.$tm = (a) => this.$i18n.tm(a), n.__setInstance(r, this.$i18n);
3180
+ },
3181
+ mounted() {
3182
+ if (process.env.NODE_ENV !== "production" && this.$i18n) {
3183
+ const r = Ce();
3184
+ if (!r)
3185
+ return;
3186
+ const s = this.$i18n;
3187
+ r.__VUE_I18N__ = s.__composer;
3188
+ const a = this.__v_emitter = xt();
3189
+ s.__enableEmitter && s.__enableEmitter(a), a.on("*", He);
3190
+ }
3191
+ },
3192
+ unmounted() {
3193
+ const r = Ce();
3194
+ if (!r)
3195
+ throw z(G.UNEXPECTED_ERROR);
3196
+ const s = this.$i18n;
3197
+ process.env.NODE_ENV !== "production" && r.__VUE_I18N__ && (this.__v_emitter && (this.__v_emitter.off("*", He), delete this.__v_emitter), this.$i18n && (s.__disableEmitter && s.__disableEmitter(), delete r.__VUE_I18N__)), delete this.$t, delete this.$rt, delete this.$te, delete this.$d, delete this.$n, delete this.$tm, s.__disposer && (s.__disposer(), delete s.__disposer, delete s.__extender), n.__deleteInstance(r), delete this.$i18n;
3198
+ }
3199
+ };
3200
+ }
3201
+ function Pn(e, t) {
3202
+ e.locale = t.locale || e.locale, e.fallbackLocale = t.fallbackLocale || e.fallbackLocale, e.missing = t.missing || e.missing, e.silentTranslationWarn = t.silentTranslationWarn || e.silentFallbackWarn, e.silentFallbackWarn = t.silentFallbackWarn || e.silentFallbackWarn, e.formatFallbackMessages = t.formatFallbackMessages || e.formatFallbackMessages, e.postTranslation = t.postTranslation || e.postTranslation, e.warnHtmlInMessage = t.warnHtmlInMessage || e.warnHtmlInMessage, e.escapeParameterHtml = t.escapeParameterHtml || e.escapeParameterHtml, e.sync = t.sync || e.sync, e.__composer[or](t.pluralizationRules || e.pluralizationRules);
3203
+ const n = Bt(e.locale, {
3204
+ messages: t.messages,
3205
+ __i18n: t.__i18n
3206
+ });
3207
+ return Object.keys(n).forEach((r) => e.mergeLocaleMessage(r, n[r])), t.datetimeFormats && Object.keys(t.datetimeFormats).forEach((r) => e.mergeDateTimeFormat(r, t.datetimeFormats[r])), t.numberFormats && Object.keys(t.numberFormats).forEach((r) => e.mergeNumberFormat(r, t.numberFormats[r])), e;
3208
+ }
3209
+ const Qt = {
3210
+ tag: {
3211
+ type: [String, Object]
3212
+ },
3213
+ locale: {
3214
+ type: String
3215
+ },
3216
+ scope: {
3217
+ type: String,
3218
+ // NOTE: avoid https://github.com/microsoft/rushstack/issues/1050
3219
+ validator: (e) => e === "parent" || e === "global",
3220
+ default: "parent"
3221
+ /* ComponentI18nScope */
3222
+ },
3223
+ i18n: {
3224
+ type: Object
3225
+ }
3226
+ };
3227
+ function Wa({ slots: e }, t) {
3228
+ return t.length === 1 && t[0] === "default" ? (e.default ? e.default() : []).reduce((r, s) => [
3229
+ ...r,
3230
+ // prettier-ignore
3231
+ ...s.type === Mn ? s.children : [s]
3232
+ ], []) : t.reduce((n, r) => {
3233
+ const s = e[r];
3234
+ return s && (n[r] = s()), n;
3235
+ }, $());
3236
+ }
3237
+ function mr() {
3238
+ return Mn;
3239
+ }
3240
+ const Ga = /* @__PURE__ */ Vt({
3241
+ /* eslint-disable */
3242
+ name: "i18n-t",
3243
+ props: J({
3244
+ keypath: {
3245
+ type: String,
3246
+ required: !0
3247
+ },
3248
+ plural: {
3249
+ type: [Number, String],
3250
+ validator: (e) => B(e) || !isNaN(e)
3251
+ }
3252
+ }, Qt),
3253
+ /* eslint-enable */
3254
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
3255
+ setup(e, t) {
3256
+ const { slots: n, attrs: r } = t, s = e.i18n || qt({
3257
+ useScope: e.scope,
3258
+ __useComponent: !0
3259
+ });
3260
+ return () => {
3261
+ const a = Object.keys(n).filter((T) => T[0] !== "_"), o = $();
3262
+ e.locale && (o.locale = e.locale), e.plural !== void 0 && (o.plural = h(e.plural) ? +e.plural : e.plural);
3263
+ const i = Wa(t, a), u = s[Dt](e.keypath, i, o), E = J($(), r), I = h(e.tag) || F(e.tag) ? e.tag : mr();
3264
+ return Fn(I, E, u);
3265
+ };
3266
+ }
3267
+ }), Mt = Ga, ao = Mt;
3268
+ function xa(e) {
3269
+ return H(e) && !h(e[0]);
3270
+ }
3271
+ function dr(e, t, n, r) {
3272
+ const { slots: s, attrs: a } = t;
3273
+ return () => {
3274
+ const o = { part: !0 };
3275
+ let i = $();
3276
+ e.locale && (o.locale = e.locale), h(e.format) ? o.key = e.format : F(e.format) && (h(e.format.key) && (o.key = e.format.key), i = Object.keys(e.format).reduce((N, C) => n.includes(C) ? J($(), N, { [C]: e.format[C] }) : N, $()));
3277
+ const u = r(e.value, o, i);
3278
+ let E = [o.key];
3279
+ H(u) ? E = u.map((N, C) => {
3280
+ const y = s[N.type], A = y ? y({ [N.type]: N.value, index: C, parts: u }) : [N.value];
3281
+ return xa(A) && (A[0].key = `${N.type}-${C}`), A;
3282
+ }) : h(u) && (E = [u]);
3283
+ const I = J($(), a), T = h(e.tag) || F(e.tag) ? e.tag : mr();
3284
+ return Fn(T, I, E);
3285
+ };
3286
+ }
3287
+ const Ha = /* @__PURE__ */ Vt({
3288
+ /* eslint-disable */
3289
+ name: "i18n-n",
3290
+ props: J({
3291
+ value: {
3292
+ type: Number,
3293
+ required: !0
3294
+ },
3295
+ format: {
3296
+ type: [String, Object]
3297
+ }
3298
+ }, Qt),
3299
+ /* eslint-enable */
3300
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
3301
+ setup(e, t) {
3302
+ const n = e.i18n || qt({
3303
+ useScope: e.scope,
3304
+ __useComponent: !0
3305
+ });
3306
+ return dr(e, t, nr, (...r) => (
3307
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
3308
+ n[yt](...r)
3309
+ ));
3310
+ }
3311
+ }), Ut = Ha, oo = Ut;
3312
+ function Ya(e, t) {
3313
+ const n = e;
3314
+ if (e.mode === "composition")
3315
+ return n.__getInstance(t) || e.global;
3316
+ {
3317
+ const r = n.__getInstance(t);
3318
+ return r != null ? r.__composer : e.global.__composer;
3319
+ }
3320
+ }
3321
+ function Ka(e) {
3322
+ const t = (o) => {
3323
+ process.env.NODE_ENV !== "production" && $t(Pe(ne.DEPRECATE_TRANSLATE_CUSTOME_DIRECTIVE));
3324
+ const { instance: i, value: u } = o;
3325
+ if (!i || !i.$)
3326
+ throw z(G.UNEXPECTED_ERROR);
3327
+ const E = Ya(e, i.$), I = yn(u);
3328
+ return [
3329
+ Reflect.apply(E.t, E, [...Rn(I)]),
3330
+ E
3331
+ ];
3332
+ };
3333
+ return {
3334
+ created: (o, i) => {
3335
+ const [u, E] = t(i);
3336
+ oe && e.global === E && (o.__i18nWatcher = It(E.locale, () => {
3337
+ i.instance && i.instance.$forceUpdate();
3338
+ })), o.__composer = E, o.textContent = u;
3339
+ },
3340
+ unmounted: (o) => {
3341
+ oe && o.__i18nWatcher && (o.__i18nWatcher(), o.__i18nWatcher = void 0, delete o.__i18nWatcher), o.__composer && (o.__composer = void 0, delete o.__composer);
3342
+ },
3343
+ beforeUpdate: (o, { value: i }) => {
3344
+ if (o.__composer) {
3345
+ const u = o.__composer, E = yn(i);
3346
+ o.textContent = Reflect.apply(u.t, u, [
3347
+ ...Rn(E)
3348
+ ]);
3349
+ }
3350
+ },
3351
+ getSSRProps: (o) => {
3352
+ const [i] = t(o);
3353
+ return { textContent: i };
3354
+ }
3355
+ };
3356
+ }
3357
+ function yn(e) {
3358
+ if (h(e))
3359
+ return { path: e };
3360
+ if (k(e)) {
3361
+ if (!("path" in e))
3362
+ throw z(G.REQUIRED_VALUE, "path");
3363
+ return e;
3364
+ } else
3365
+ throw z(G.INVALID_VALUE);
3366
+ }
3367
+ function Rn(e) {
3368
+ const { path: t, locale: n, args: r, choice: s, plural: a } = e, o = {}, i = r || {};
3369
+ return h(n) && (o.locale = n), B(s) && (o.plural = s), B(a) && (o.plural = a), [t, i, o];
3370
+ }
3371
+ function ja(e, t, ...n) {
3372
+ const r = k(n[0]) ? n[0] : {};
3373
+ (M(r.globalInstall) ? r.globalInstall : !0) && ([Mt.name, "I18nT"].forEach((a) => e.component(a, Mt)), [Ut.name, "I18nN"].forEach((a) => e.component(a, Ut)), [wt.name, "I18nD"].forEach((a) => e.component(a, wt))), e.directive("t", Ka(t));
3374
+ }
3375
+ const Ba = /* @__PURE__ */ ue("global-vue-i18n");
3376
+ function lo(e = {}) {
3377
+ const t = __VUE_I18N_LEGACY_API__ && M(e.legacy) ? e.legacy : __VUE_I18N_LEGACY_API__;
3378
+ process.env.NODE_ENV !== "production" && t && $t(Pe(ne.DEPRECATE_LEGACY_MODE));
3379
+ const n = M(e.globalInjection) ? e.globalInjection : !0, r = /* @__PURE__ */ new Map(), [s, a] = Xa(e, t), o = /* @__PURE__ */ ue(process.env.NODE_ENV !== "production" ? "vue-i18n" : "");
3380
+ function i(T) {
3381
+ return r.get(T) || null;
3382
+ }
3383
+ function u(T, N) {
3384
+ r.set(T, N);
3385
+ }
3386
+ function E(T) {
3387
+ r.delete(T);
3388
+ }
3389
+ const I = {
3390
+ // mode
3391
+ get mode() {
3392
+ return __VUE_I18N_LEGACY_API__ && t ? "legacy" : "composition";
3393
+ },
3394
+ // install plugin
3395
+ async install(T, ...N) {
3396
+ if (process.env.NODE_ENV !== "production" && (T.__VUE_I18N__ = I), T.__VUE_I18N_SYMBOL__ = o, T.provide(T.__VUE_I18N_SYMBOL__, I), k(N[0])) {
3397
+ const A = N[0];
3398
+ I.__composerExtend = A.__composerExtend, I.__vueI18nExtend = A.__vueI18nExtend;
3399
+ }
3400
+ let C = null;
3401
+ !t && n && (C = no(T, I.global)), __VUE_I18N_FULL_INSTALL__ && ja(T, I, ...N), __VUE_I18N_LEGACY_API__ && t && T.mixin($a(a, a.__composer, I));
3402
+ const y = T.unmount;
3403
+ if (T.unmount = () => {
3404
+ C && C(), I.dispose(), y();
3405
+ }, process.env.NODE_ENV !== "production") {
3406
+ if (!await Ca(T, I))
3407
+ throw z(G.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN);
3408
+ const S = xt();
3409
+ if (t) {
3410
+ const f = a;
3411
+ f.__enableEmitter && f.__enableEmitter(S);
3412
+ } else {
3413
+ const f = a;
3414
+ f[Ie] && f[Ie](S);
3415
+ }
3416
+ S.on("*", He);
3417
+ }
3418
+ },
3419
+ // global accessor
3420
+ get global() {
3421
+ return a;
3422
+ },
3423
+ dispose() {
3424
+ s.stop();
3425
+ },
3426
+ // @internal
3427
+ __instances: r,
3428
+ // @internal
3429
+ __getInstance: i,
3430
+ // @internal
3431
+ __setInstance: u,
3432
+ // @internal
3433
+ __deleteInstance: E
3434
+ };
3435
+ return I;
3436
+ }
3437
+ function qt(e = {}) {
3438
+ const t = Ce();
3439
+ if (t == null)
3440
+ throw z(G.MUST_BE_CALL_SETUP_TOP);
3441
+ if (!t.isCE && t.appContext.app != null && !t.appContext.app.__VUE_I18N_SYMBOL__)
3442
+ throw z(G.NOT_INSTALLED);
3443
+ const n = Ja(t), r = qa(n), s = ir(t), a = Qa(e, s);
3444
+ if (a === "global")
3445
+ return cr(r, e, s), r;
3446
+ if (a === "parent") {
3447
+ let u = Za(n, t, e.__useComponent);
3448
+ return u == null && (process.env.NODE_ENV !== "production" && ce(Pe(ne.NOT_FOUND_PARENT_SCOPE)), u = r), u;
3449
+ }
3450
+ const o = n;
3451
+ let i = o.__getInstance(t);
3452
+ if (i == null) {
3453
+ const u = J({}, e);
3454
+ "__i18n" in s && (u.__i18n = s.__i18n), r && (u.__root = r), i = Xt(u), o.__composerExtend && (i[Rt] = o.__composerExtend(i)), eo(o, t, i), o.__setInstance(t, i);
3455
+ } else
3456
+ process.env.NODE_ENV !== "production" && a === "local" && ce(Pe(ne.DUPLICATE_USE_I18N_CALLING));
3457
+ return i;
3458
+ }
3459
+ function Xa(e, t) {
3460
+ const n = gr(), r = __VUE_I18N_LEGACY_API__ && t ? n.run(() => Ft(e)) : n.run(() => Xt(e));
3461
+ if (r == null)
3462
+ throw z(G.UNEXPECTED_ERROR);
3463
+ return [n, r];
3464
+ }
3465
+ function Ja(e) {
3466
+ const t = pr(e.isCE ? Ba : e.appContext.app.__VUE_I18N_SYMBOL__);
3467
+ if (!t)
3468
+ throw z(e.isCE ? G.NOT_INSTALLED_WITH_PROVIDE : G.UNEXPECTED_ERROR);
3469
+ return t;
3470
+ }
3471
+ function Qa(e, t) {
3472
+ return ze(e) ? "__i18n" in t ? "local" : "global" : e.useScope ? e.useScope : "local";
3473
+ }
3474
+ function qa(e) {
3475
+ return e.mode === "composition" ? e.global : e.global.__composer;
3476
+ }
3477
+ function Za(e, t, n = !1) {
3478
+ let r = null;
3479
+ const s = t.root;
3480
+ let a = za(t, n);
3481
+ for (; a != null; ) {
3482
+ const o = e;
3483
+ if (e.mode === "composition")
3484
+ r = o.__getInstance(a);
3485
+ else if (__VUE_I18N_LEGACY_API__) {
3486
+ const i = o.__getInstance(a);
3487
+ i != null && (r = i.__composer, n && r && !r[lr] && (r = null));
3488
+ }
3489
+ if (r != null || s === a)
3490
+ break;
3491
+ a = a.parent;
3492
+ }
3493
+ return r;
3494
+ }
3495
+ function za(e, t = !1) {
3496
+ return e == null ? null : t && e.vnode.ctx || e.parent;
3497
+ }
3498
+ function eo(e, t, n) {
3499
+ let r = null;
3500
+ Nr(() => {
3501
+ if (process.env.NODE_ENV !== "production") {
3502
+ t.__VUE_I18N__ = n, r = xt();
3503
+ const s = n;
3504
+ s[Ie] && s[Ie](r), r.on("*", He);
3505
+ }
3506
+ }, t), Lr(() => {
3507
+ const s = n;
3508
+ process.env.NODE_ENV !== "production" && (r && r.off("*", He), s[Ge] && s[Ge](), delete t.__VUE_I18N__), e.__deleteInstance(t);
3509
+ const a = s[Rt];
3510
+ a && (a(), delete s[Rt]);
3511
+ }, t);
3512
+ }
3513
+ const to = [
3514
+ "locale",
3515
+ "fallbackLocale",
3516
+ "availableLocales"
3517
+ ], kn = ["t", "rt", "d", "n", "tm", "te"];
3518
+ function no(e, t) {
3519
+ const n = /* @__PURE__ */ Object.create(null);
3520
+ return to.forEach((s) => {
3521
+ const a = Object.getOwnPropertyDescriptor(t, s);
3522
+ if (!a)
3523
+ throw z(G.UNEXPECTED_ERROR);
3524
+ const o = Tr(a.value) ? {
3525
+ get() {
3526
+ return a.value.value;
3527
+ },
3528
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
3529
+ set(i) {
3530
+ a.value.value = i;
3531
+ }
3532
+ } : {
3533
+ get() {
3534
+ return a.get && a.get();
3535
+ }
3536
+ };
3537
+ Object.defineProperty(n, s, o);
3538
+ }), e.config.globalProperties.$i18n = n, kn.forEach((s) => {
3539
+ const a = Object.getOwnPropertyDescriptor(t, s);
3540
+ if (!a || !a.value)
3541
+ throw z(G.UNEXPECTED_ERROR);
3542
+ Object.defineProperty(e.config.globalProperties, `$${s}`, a);
3543
+ }), () => {
3544
+ delete e.config.globalProperties.$i18n, kn.forEach((s) => {
3545
+ delete e.config.globalProperties[`$${s}`];
3546
+ });
3547
+ };
3548
+ }
3549
+ const ro = /* @__PURE__ */ Vt({
3550
+ /* eslint-disable */
3551
+ name: "i18n-d",
3552
+ props: J({
3553
+ value: {
3554
+ type: [Number, Date],
3555
+ required: !0
3556
+ },
3557
+ format: {
3558
+ type: [String, Object]
3559
+ }
3560
+ }, Qt),
3561
+ /* eslint-enable */
3562
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
3563
+ setup(e, t) {
3564
+ const n = e.i18n || qt({
3565
+ useScope: e.scope,
3566
+ __useComponent: !0
3567
+ });
3568
+ return dr(e, t, tr, (...r) => (
3569
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
3570
+ n[Pt](...r)
3571
+ ));
3572
+ }
3573
+ }), wt = ro, io = wt;
3574
+ Ta();
3575
+ Ys(Is);
3576
+ Ks($s);
3577
+ js(jn);
3578
+ if (process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) {
3579
+ const e = Le();
3580
+ e.__INTLIFY__ = !0, hs(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__);
3581
+ }
3582
+ process.env.NODE_ENV;
3583
+ export {
3584
+ wt as DatetimeFormat,
3585
+ io as I18nD,
3586
+ Ba as I18nInjectionKey,
3587
+ oo as I18nN,
3588
+ ao as I18nT,
3589
+ Ut as NumberFormat,
3590
+ Mt as Translation,
3591
+ La as VERSION,
3592
+ lo as createI18n,
3593
+ qt as useI18n,
3594
+ Ka as vTDirective
3595
+ };