@vc-shell/framework 2.0.0-alpha.7 → 2.0.0-alpha.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +13 -0
- package/dist/core/composables/useUser/index.d.ts.map +1 -1
- package/dist/core/plugins/modularity/index.d.ts +0 -2
- package/dist/core/plugins/modularity/index.d.ts.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/ui/components/molecules/vc-select/composables/index.d.ts +1 -3
- package/dist/ui/components/molecules/vc-select/composables/index.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-select/composables/useSelectDataSource.d.ts +30 -0
- package/dist/ui/components/molecules/vc-select/composables/useSelectDataSource.d.ts.map +1 -0
- package/dist/ui/components/molecules/vc-select/composables/useSelectSelection.d.ts +3 -2
- package/dist/ui/components/molecules/vc-select/composables/useSelectSelection.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-select/vc-select.vue.d.ts.map +1 -1
- package/package.json +5 -5
- package/dist/assets/042c75b764bc78a7.svg +0 -1
- package/dist/assets/0ba156439a339f2a.svg +0 -1
- package/dist/assets/0be560bfb22d0e72.woff2 +0 -0
- package/dist/assets/0d67e9e056b4c500.woff +0 -0
- package/dist/assets/0f590f8a94577092.svg +0 -1
- package/dist/assets/0fc5820f8be53a1b.svg +0 -1
- package/dist/assets/105efd028edc1dfe.woff +0 -0
- package/dist/assets/10768e2cc79fc60b.svg +0 -1
- package/dist/assets/11b3d25a56fd9a21.woff2 +0 -0
- package/dist/assets/131b34336aedaf47.woff +0 -0
- package/dist/assets/154365acf3010d96.woff2 +0 -0
- package/dist/assets/157b8721e0600ea8.svg +0 -1
- package/dist/assets/15e91cdd649cde9a.svg +0 -1
- package/dist/assets/19275e398ae57130.woff2 +0 -0
- package/dist/assets/19bb1c668a5db39f.woff2 +0 -0
- package/dist/assets/1a3e84b2457f709a.woff +0 -0
- package/dist/assets/1de63eb118636cce.svg +0 -1
- package/dist/assets/1ea01de36eb5491b.svg +0 -1
- package/dist/assets/2010ada3e82156ed.woff +0 -0
- package/dist/assets/204eaf512fde2023.svg +0 -1
- package/dist/assets/2088983edf42e153.svg +0 -1
- package/dist/assets/208f810a9321a327.svg +0 -1
- package/dist/assets/21220a9d10e6c558.svg +0 -1
- package/dist/assets/220db345a102045d.woff2 +0 -0
- package/dist/assets/225da11d23968333.svg +0 -1
- package/dist/assets/226f862dd81bdc13.woff2 +0 -0
- package/dist/assets/23a2d53395ddb14f.woff +0 -0
- package/dist/assets/259e6ad461a52ad7.svg +0 -1
- package/dist/assets/261e6dec4d53b9ac.woff +0 -0
- package/dist/assets/262f46a0b6d94bb6.svg +0 -1
- package/dist/assets/2857c513073467da.svg +0 -1
- package/dist/assets/2b3be7889467d98f.woff +0 -0
- package/dist/assets/2d4e6190eec72737.svg +0 -1
- package/dist/assets/2eba973185078bc8.woff +0 -0
- package/dist/assets/334d3f6bc766c516.woff +0 -0
- package/dist/assets/34ff7dd0c2285956.svg +0 -1
- package/dist/assets/3d26b7c1ab78bbe2.woff +0 -0
- package/dist/assets/3d892965ab4f1cbb.woff2 +0 -0
- package/dist/assets/3f8c4cc8099e34b6.woff2 +0 -0
- package/dist/assets/3fc09a6113184f16.woff +0 -0
- package/dist/assets/40a0e53b79ce63c6.woff2 +0 -0
- package/dist/assets/41275bcb979cb650.svg +0 -1
- package/dist/assets/434f7982590e462f.woff +0 -0
- package/dist/assets/475937116ee3314a.woff2 +0 -0
- package/dist/assets/477e1881a0394cc5.woff +0 -0
- package/dist/assets/489710fb710e73f0.woff +0 -0
- package/dist/assets/49791943b3872376.woff2 +0 -0
- package/dist/assets/4ae5f23e0ca888e7.woff2 +0 -0
- package/dist/assets/4d7a77b0e5373992.svg +0 -1
- package/dist/assets/4e43c74354534fb3.svg +0 -1
- package/dist/assets/4fe75f5117100705.svg +0 -1
- package/dist/assets/52e261a005074e1b.woff +0 -0
- package/dist/assets/5304c3d05a5f9789.woff2 +0 -0
- package/dist/assets/54cda5482c6c9218.woff +0 -0
- package/dist/assets/550f52072e8ccafe.woff2 +0 -0
- package/dist/assets/572bb1bb4156a9c1.svg +0 -1
- package/dist/assets/6075995d7e74da46.woff2 +0 -0
- package/dist/assets/617c4736236e199e.woff +0 -0
- package/dist/assets/67230f05dc94a265.svg +0 -1
- package/dist/assets/6798e4dd4add9b48.svg +0 -1
- package/dist/assets/686d4077c1e26876.woff2 +0 -0
- package/dist/assets/698ec6c722d4cb05.woff2 +0 -0
- package/dist/assets/6a3e73faf406cf33.svg +0 -1
- package/dist/assets/72de3a63bc0b70dd.svg +0 -1
- package/dist/assets/74c6a6ab81bb6340.woff2 +0 -0
- package/dist/assets/74ed5f8a78e71106.svg +0 -1
- package/dist/assets/7a5aa5abd625137f.ttf +0 -0
- package/dist/assets/7ce0c166fd6a1204.woff +0 -0
- package/dist/assets/7d55399c2a7bc985.svg +0 -1
- package/dist/assets/7d970675c69fca1d.woff +0 -0
- package/dist/assets/7eda727273fd98d3.svg +0 -1
- package/dist/assets/7f6ebfd707b76ca2.woff +0 -0
- package/dist/assets/7fa898d213fcc7bc.woff2 +0 -0
- package/dist/assets/861e6b7192b3b6c7.woff +0 -0
- package/dist/assets/8bbcde81ba21ecb2.woff2 +0 -0
- package/dist/assets/8f6657e5e0b8d3e4.woff +0 -0
- package/dist/assets/910b0d99b9e26568.svg +0 -1
- package/dist/assets/91fe94e424323d61.woff +0 -0
- package/dist/assets/92508f8707159b51.svg +0 -1
- package/dist/assets/9392bf1d591e1abb.svg +0 -1
- package/dist/assets/97e8d4984ba0713a.woff2 +0 -0
- package/dist/assets/9cb83236f6bb7ab1.svg +0 -1
- package/dist/assets/9d37314695c0b68d.woff +0 -0
- package/dist/assets/a03cdcd8da5bb987.woff +0 -0
- package/dist/assets/a18404194e3f9047.svg +0 -1
- package/dist/assets/a2017fe7f0a26510.svg +0 -1
- package/dist/assets/ab6e7190bb1492d5.woff2 +0 -0
- package/dist/assets/abf88f301a0730f4.svg +0 -1
- package/dist/assets/ac1a99b3d05d8232.woff +0 -0
- package/dist/assets/aed17cb6fdad2ada.woff2 +0 -0
- package/dist/assets/b1a596e31ad1185a.svg +0 -1
- package/dist/assets/b27767411c8427be.woff +0 -0
- package/dist/assets/b325adcae33bbe7a.svg +0 -1
- package/dist/assets/b372390551ca2fa1.svg +0 -1
- package/dist/assets/b5bb1e8fc975decd.svg +0 -1
- package/dist/assets/b645a4a2181b9dc1.svg +0 -1
- package/dist/assets/b6499ddce0a4ef7d.svg +0 -1
- package/dist/assets/b7ffde2383bb16ba.woff2 +0 -0
- package/dist/assets/b94421fadd23b0f2.svg +0 -1
- package/dist/assets/bb28fb0f27f1c11b.svg +0 -1
- package/dist/assets/c5195215cb712e9c.woff2 +0 -0
- package/dist/assets/c9191b638a10f67b.woff2 +0 -0
- package/dist/assets/c97328b91ac5cc66.woff +0 -0
- package/dist/assets/ca791c5ca5848a03.svg +0 -1
- package/dist/assets/cb32840ce330103f.woff +0 -0
- package/dist/assets/ccc878931d74181b.woff2 +0 -0
- package/dist/assets/cdc69f8b549c866d.woff2 +0 -0
- package/dist/assets/d084bda16abe8a56.svg +0 -1
- package/dist/assets/d32b129cae2fffd6.svg +0 -1
- package/dist/assets/d35a4c7113315758.woff2 +0 -0
- package/dist/assets/d3f792f54ae4c307.svg +0 -1
- package/dist/assets/d5a5b8630120073d.svg +0 -1
- package/dist/assets/d5eb20bcdcf5616a.woff2 +0 -0
- package/dist/assets/d5f9664ebbfb104b.svg +0 -1
- package/dist/assets/d84247b59449dd88.woff2 +0 -0
- package/dist/assets/da4b7f5883fe7743.woff2 +0 -0
- package/dist/assets/dceaf3b39091e6a4.woff +0 -0
- package/dist/assets/dd05d43ff0df2fc7.svg +0 -1
- package/dist/assets/e2ad5b3428289141.woff +0 -0
- package/dist/assets/e38acaa1757232e0.svg +0 -1
- package/dist/assets/e4a8550f1c7ffe36.svg +0 -1
- package/dist/assets/e5adb5ae3a3698f6.svg +0 -1
- package/dist/assets/e61a1889bac955f4.woff2 +0 -0
- package/dist/assets/e72bb11356af94c7.svg +0 -1
- package/dist/assets/e98196a9f8dcb2f0.svg +0 -1
- package/dist/assets/ebec912a42ad49ff.woff +0 -0
- package/dist/assets/ee6983981ffcbb41.woff2 +0 -0
- package/dist/assets/f09d89268e4c0317.svg +0 -1
- package/dist/assets/f239394367fcf005.woff2 +0 -0
- package/dist/assets/f5722262b6e7214e.woff2 +0 -0
- package/dist/assets/f7fc8bf46089d8b2.svg +0 -1
- package/dist/assets/fc829e3f399b70e0.woff2 +0 -0
- package/dist/assets/fe141d99763f5d2b.woff +0 -0
- package/dist/assets/fed13b0d59903483.svg +0 -1
- package/dist/assets/fed757d2c2344ead.woff2 +0 -0
- package/dist/assets/ffc438f20e79ce73.woff +0 -0
- package/dist/core/plugins/modularity/loader-mf.d.ts +0 -17
- package/dist/core/plugins/modularity/loader-mf.d.ts.map +0 -1
- package/dist/framework.css +0 -9
- package/dist/framework.js +0 -32777
- package/dist/ui/components/molecules/vc-select/composables/useSelectDefaultValue.d.ts +0 -16
- package/dist/ui/components/molecules/vc-select/composables/useSelectDefaultValue.d.ts.map +0 -1
- package/dist/ui/components/molecules/vc-select/composables/useSelectOptions.d.ts +0 -19
- package/dist/ui/components/molecules/vc-select/composables/useSelectOptions.d.ts.map +0 -1
- package/dist/ui/components/molecules/vc-select/composables/useSelectSearch.d.ts +0 -23
- package/dist/ui/components/molecules/vc-select/composables/useSelectSearch.d.ts.map +0 -1
- package/dist/vendor-boolbase-DYkUBG-P.js +0 -18
- package/dist/vendor-cheerio-DE71XQ9x.js +0 -1053
- package/dist/vendor-cheerio-select-D-qK1Cpo.js +0 -191
- package/dist/vendor-css-select-DqoO1-RK.js +0 -622
- package/dist/vendor-css-what-CZZaquJM.js +0 -267
- package/dist/vendor-cypress-signalr-mock-itnm2wpA.js +0 -781
- package/dist/vendor-d3-array-9cpTrqlO.js +0 -149
- package/dist/vendor-d3-axis-D1_DbKLz.js +0 -74
- package/dist/vendor-d3-brush-CcKeJp9e.js +0 -1
- package/dist/vendor-d3-color-BOYE6h_9.js +0 -306
- package/dist/vendor-d3-dispatch-fx-WMg0D.js +0 -64
- package/dist/vendor-d3-ease-Cr34gv04.js +0 -8
- package/dist/vendor-d3-format-DaIwZvFc.js +0 -182
- package/dist/vendor-d3-interpolate-BYG2gvO4.js +0 -177
- package/dist/vendor-d3-interpolate-path-CpGLvKgS.js +0 -299
- package/dist/vendor-d3-path-DJOTitNW.js +0 -64
- package/dist/vendor-d3-scale-CC5rtdt5.js +0 -561
- package/dist/vendor-d3-selection-CNMxsYiL.js +0 -603
- package/dist/vendor-d3-shape-DBhCDMiV.js +0 -925
- package/dist/vendor-d3-time-DAPP210_.js +0 -212
- package/dist/vendor-d3-time-format-hD7iE2WG.js +0 -491
- package/dist/vendor-d3-timer-C1cUWKPz.js +0 -67
- package/dist/vendor-d3-transition-BbNQT7qF.js +0 -524
- package/dist/vendor-d3-zoom-CcKeJp9e.js +0 -1
- package/dist/vendor-date-fns-BKO3x1R1.js +0 -3102
- package/dist/vendor-dom-serializer-BbVuF1MQ.js +0 -213
- package/dist/vendor-domelementtype-B3sFIGaC.js +0 -21
- package/dist/vendor-domhandler-Kufn9M_V.js +0 -311
- package/dist/vendor-dompurify-M2Bspgo5.js +0 -553
- package/dist/vendor-domutils-DDRq_ial.js +0 -386
- package/dist/vendor-emotion-cache-eEZT5l-Q.js +0 -274
- package/dist/vendor-emotion-hash-DImMRhyK.js +0 -22
- package/dist/vendor-emotion-memoize-BcEUCz8q.js +0 -9
- package/dist/vendor-emotion-serialize-BSDW8NwU.js +0 -123
- package/dist/vendor-emotion-sheet-CS8ZBl9s.js +0 -44
- package/dist/vendor-emotion-unitless-B7u1PU6w.js +0 -53
- package/dist/vendor-emotion-utils-D7refZTM.js +0 -28
- package/dist/vendor-entities-J86Og8IU.js +0 -364
- package/dist/vendor-floating-ui-core-BoHdh92a.js +0 -432
- package/dist/vendor-floating-ui-dom-BvVXFZ4B.js +0 -398
- package/dist/vendor-floating-ui-utils-CidJRIm2.js +0 -257
- package/dist/vendor-floating-ui-vue-sCrhit51.js +0 -121
- package/dist/vendor-gridstack-Dkfw452e.js +0 -3390
- package/dist/vendor-headlessui-vue-Cn-RMs4E.js +0 -961
- package/dist/vendor-htmlparser2-BxKKzWLL.js +0 -735
- package/dist/vendor-internmap-Q5729_cS.js +0 -35
- package/dist/vendor-intlify-core-base-BmIo1dK4.js +0 -1141
- package/dist/vendor-intlify-message-compiler-D9VOavkL.js +0 -960
- package/dist/vendor-intlify-shared-SCAs3ybf.js +0 -144
- package/dist/vendor-iso-639-1-BEjYyfKo.js +0 -784
- package/dist/vendor-juggle-resize-observer-DiSiNbbT.js +0 -286
- package/dist/vendor-linkify-it-LzoUhj6C.js +0 -199
- package/dist/vendor-linkifyjs-dCH9UYes.js +0 -701
- package/dist/vendor-lodash-es-Bz6MMQuN.js +0 -4818
- package/dist/vendor-lucide-vue-next-CPgeDcFj.js +0 -33093
- package/dist/vendor-markdown-it-Bs9KEWkF.js +0 -2266
- package/dist/vendor-markdown-it-task-lists-CHKeJZfk.js +0 -69
- package/dist/vendor-mdurl-DZFDNdqC.js +0 -192
- package/dist/vendor-microsoft-applicationinsights-analytics-js-DFu_cVaY.js +0 -1207
- package/dist/vendor-microsoft-applicationinsights-cfgsync-js-DRQLN2Ue.js +0 -261
- package/dist/vendor-microsoft-applicationinsights-channel-js-BIJDcP3D.js +0 -1822
- package/dist/vendor-microsoft-applicationinsights-common-CJjmnDMb.js +0 -1921
- package/dist/vendor-microsoft-applicationinsights-core-js-BOc_o46i.js +0 -4276
- package/dist/vendor-microsoft-applicationinsights-dependencies-js-DDz502id.js +0 -1407
- package/dist/vendor-microsoft-applicationinsights-properties-js-9aDWHwXJ.js +0 -572
- package/dist/vendor-microsoft-applicationinsights-shims-Dton8Vqy.js +0 -43
- package/dist/vendor-microsoft-applicationinsights-web-DTa5YN-h.js +0 -487
- package/dist/vendor-microsoft-dynamicproto-js-89GEKjvR.js +0 -147
- package/dist/vendor-microsoft-signalr-Bgpbb4fW.js +0 -1761
- package/dist/vendor-module-federation-enhanced-CV1CNdJy.js +0 -22
- package/dist/vendor-module-federation-error-codes-DdVwX11j.js +0 -55
- package/dist/vendor-module-federation-runtime-CVH_lWgu.js +0 -91
- package/dist/vendor-module-federation-runtime-core-D5G-s9nP.js +0 -2202
- package/dist/vendor-module-federation-runtime-tools-CQbtw-RJ.js +0 -18
- package/dist/vendor-module-federation-sdk-DM4AJRa7.js +0 -683
- package/dist/vendor-nevware21-ts-async-D4qa7g-U.js +0 -261
- package/dist/vendor-nevware21-ts-utils-DII8jruI.js +0 -853
- package/dist/vendor-nth-check-D0N1qpsw.js +0 -45
- package/dist/vendor-orderedmap-B3SOk52B.js +0 -103
- package/dist/vendor-parse5-htmlparser2-tree-adapter-BUDJ887-.js +0 -143
- package/dist/vendor-parse5-zq5Hn0y9.js +0 -5749
- package/dist/vendor-prettier-DeqUTTnE.js +0 -5215
- package/dist/vendor-prosemirror-commands-Bv4ChObl.js +0 -385
- package/dist/vendor-prosemirror-dropcursor-kF5UKNFM.js +0 -86
- package/dist/vendor-prosemirror-gapcursor-S3ikcYX6.js +0 -203
- package/dist/vendor-prosemirror-history-CQYKHz3u.js +0 -248
- package/dist/vendor-prosemirror-keymap-CAfQyvJ7.js +0 -62
- package/dist/vendor-prosemirror-markdown-rpUTSG_Q.js +0 -663
- package/dist/vendor-prosemirror-model-DAA3avbR.js +0 -2730
- package/dist/vendor-prosemirror-schema-list-BNJkECdS.js +0 -87
- package/dist/vendor-prosemirror-state-IeimrELV.js +0 -821
- package/dist/vendor-prosemirror-tables-zVUKdbdQ.js +0 -1414
- package/dist/vendor-prosemirror-transform-BUjWd5Tb.js +0 -1525
- package/dist/vendor-prosemirror-view-DFpBkGRq.js +0 -3794
- package/dist/vendor-punycode-js-CgGegfA_.js +0 -133
- package/dist/vendor-rope-sequence-BWC2FSrq.js +0 -100
- package/dist/vendor-semver-Dar8oU3V.js +0 -1023
- package/dist/vendor-striptags-DtlgQudQ.js +0 -120
- package/dist/vendor-stylis-ClfDrgKE.js +0 -334
- package/dist/vendor-swiper-1bp0oJwt.js +0 -3387
- package/dist/vendor-tanstack-vue-virtual-CD9yLWd7.js +0 -1
- package/dist/vendor-throttle-debounce-CX0imT7m.js +0 -28
- package/dist/vendor-tiptap-core-CDScflP1.js +0 -3921
- package/dist/vendor-tiptap-extension-blockquote-ChRAwuus.js +0 -55
- package/dist/vendor-tiptap-extension-bold-BwoVpOFS.js +0 -74
- package/dist/vendor-tiptap-extension-code-DOlgG3ih.js +0 -52
- package/dist/vendor-tiptap-extension-code-block-CMeTs87s.js +0 -215
- package/dist/vendor-tiptap-extension-document-DO8oly70.js +0 -12
- package/dist/vendor-tiptap-extension-hard-break-BgDl2sHf.js +0 -59
- package/dist/vendor-tiptap-extension-heading-DFuYlwHi.js +0 -63
- package/dist/vendor-tiptap-extension-horizontal-rule-uyfttMp9.js +0 -56
- package/dist/vendor-tiptap-extension-image-DPeBaTE3.js +0 -128
- package/dist/vendor-tiptap-extension-italic-C9-3jNxO.js +0 -73
- package/dist/vendor-tiptap-extension-link-B57VzStq.js +0 -312
- package/dist/vendor-tiptap-extension-list-spvOF7Mz.js +0 -722
- package/dist/vendor-tiptap-extension-paragraph-Cj7auQB7.js +0 -44
- package/dist/vendor-tiptap-extension-placeholder-DhwvmZ6Y.js +0 -1
- package/dist/vendor-tiptap-extension-strike-yj6UvnkO.js +0 -64
- package/dist/vendor-tiptap-extension-table-cell-CQpTPSvF.js +0 -1
- package/dist/vendor-tiptap-extension-table-ex1kZQ-9.js +0 -374
- package/dist/vendor-tiptap-extension-table-header-CQpTPSvF.js +0 -1
- package/dist/vendor-tiptap-extension-table-row-CQpTPSvF.js +0 -1
- package/dist/vendor-tiptap-extension-text-C8FG4KnI.js +0 -13
- package/dist/vendor-tiptap-extension-text-style-DsQDXowp.js +0 -235
- package/dist/vendor-tiptap-extension-underline-HB3fg6Dc.js +0 -65
- package/dist/vendor-tiptap-extensions-CUGwjzl5.js +0 -296
- package/dist/vendor-tiptap-markdown-BTXJw7Bt.js +0 -826
- package/dist/vendor-tiptap-pm-DSHuSumV.js +0 -1
- package/dist/vendor-tiptap-starter-kit-C42PcJ7J.js +0 -28
- package/dist/vendor-tiptap-vue-3-BxWCzu9Z.js +0 -157
- package/dist/vendor-truncate-html-ChA1T5zy.js +0 -145
- package/dist/vendor-uc-micro-4lbSaZOs.js +0 -17
- package/dist/vendor-unovis-ts-stSsHr9j.js +0 -2382
- package/dist/vendor-unovis-vue-CZWGT3-0.js +0 -446
- package/dist/vendor-vee-validate-i18n-zT8NxX3R.js +0 -93
- package/dist/vendor-vee-validate-rules-4oWUZPpG.js +0 -316
- package/dist/vendor-vue-currency-input-CckB4kjx.js +0 -317
- package/dist/vendor-vue-demi-CD9yLWd7.js +0 -1
- package/dist/vendor-vue-devtools-api-aVYGocXp.js +0 -93
- package/dist/vendor-vue-i18n-DeO9Fa9I.js +0 -1387
- package/dist/vendor-vue-router-R3V0tq8_.js +0 -6
- package/dist/vendor-vue3-application-insights-BmJCYUcp.js +0 -69
- package/dist/vendor-vue3-touch-events-DqysuuWh.js +0 -169
- package/dist/vendor-vuepic-vue-datepicker-CaZ_qpJp.js +0 -4998
- package/dist/vendor-vueuse-components-2jDVoLeo.js +0 -542
- package/dist/vendor-vueuse-core-CLhzVQ31.js +0 -5133
- package/dist/vendor-vueuse-shared-DMVXjSeM.js +0 -1169
- package/dist/vendor-w3c-keyname-CLxH8j-f.js +0 -92
- package/dist/vendor-web-vitals-vrpLO1bu.js +0 -207
|
@@ -1,1141 +0,0 @@
|
|
|
1
|
-
import { b as C, w as te, i as f, c as $, d as R, a as z, e as w, g as P, h as Ee, k as xe, l as F, m as K, f as Le, n as ge, o as S, p as le, s as He, q as ve, r as Ne, t as H, u as k, v as j, x as je, y as ze, z as Xe, A as Ze, j as qe } from "./vendor-intlify-shared-SCAs3ybf.js";
|
|
2
|
-
import { c as Je, C as Qe, d as et, a as tt, b as nt } from "./vendor-intlify-message-compiler-D9VOavkL.js";
|
|
3
|
-
/*!
|
|
4
|
-
* core-base v11.3.0
|
|
5
|
-
* (c) 2026 kazuya kawaguchi
|
|
6
|
-
* Released under the MIT License.
|
|
7
|
-
*/
|
|
8
|
-
function rt() {
|
|
9
|
-
typeof __INTLIFY_PROD_DEVTOOLS__ != "boolean" && (ge().__INTLIFY_PROD_DEVTOOLS__ = !1), typeof __INTLIFY_DROP_MESSAGE_COMPILER__ != "boolean" && (ge().__INTLIFY_DROP_MESSAGE_COMPILER__ = !1);
|
|
10
|
-
}
|
|
11
|
-
function x(e) {
|
|
12
|
-
return F(e) && ce(e) === 0 && (K(e, "b") || K(e, "body"));
|
|
13
|
-
}
|
|
14
|
-
const Ce = ["b", "body"];
|
|
15
|
-
function at(e) {
|
|
16
|
-
return B(e, Ce);
|
|
17
|
-
}
|
|
18
|
-
const he = ["c", "cases"];
|
|
19
|
-
function st(e) {
|
|
20
|
-
return B(e, he, []);
|
|
21
|
-
}
|
|
22
|
-
const Fe = ["s", "static"];
|
|
23
|
-
function ot(e) {
|
|
24
|
-
return B(e, Fe);
|
|
25
|
-
}
|
|
26
|
-
const Se = ["i", "items"];
|
|
27
|
-
function it(e) {
|
|
28
|
-
return B(e, Se, []);
|
|
29
|
-
}
|
|
30
|
-
const be = ["t", "type"];
|
|
31
|
-
function ce(e) {
|
|
32
|
-
return B(e, be);
|
|
33
|
-
}
|
|
34
|
-
const Pe = ["v", "value"];
|
|
35
|
-
function J(e, t) {
|
|
36
|
-
const n = B(e, Pe);
|
|
37
|
-
if (n != null)
|
|
38
|
-
return n;
|
|
39
|
-
throw Z(t);
|
|
40
|
-
}
|
|
41
|
-
const we = ["m", "modifier"];
|
|
42
|
-
function lt(e) {
|
|
43
|
-
return B(e, we);
|
|
44
|
-
}
|
|
45
|
-
const ye = ["k", "key"];
|
|
46
|
-
function ct(e) {
|
|
47
|
-
const t = B(e, ye);
|
|
48
|
-
if (t)
|
|
49
|
-
return t;
|
|
50
|
-
throw Z(
|
|
51
|
-
6
|
|
52
|
-
/* NodeTypes.Linked */
|
|
53
|
-
);
|
|
54
|
-
}
|
|
55
|
-
function B(e, t, n) {
|
|
56
|
-
for (let r = 0; r < t.length; r++) {
|
|
57
|
-
const a = t[r];
|
|
58
|
-
if (K(e, a) && e[a] != null)
|
|
59
|
-
return e[a];
|
|
60
|
-
}
|
|
61
|
-
return n;
|
|
62
|
-
}
|
|
63
|
-
const ut = [
|
|
64
|
-
...Ce,
|
|
65
|
-
...he,
|
|
66
|
-
...Fe,
|
|
67
|
-
...Se,
|
|
68
|
-
...ye,
|
|
69
|
-
...we,
|
|
70
|
-
...Pe,
|
|
71
|
-
...be
|
|
72
|
-
];
|
|
73
|
-
function Z(e) {
|
|
74
|
-
return new Error(`unhandled node type: ${e}`);
|
|
75
|
-
}
|
|
76
|
-
function ne(e) {
|
|
77
|
-
return (n) => ft(n, e);
|
|
78
|
-
}
|
|
79
|
-
function ft(e, t) {
|
|
80
|
-
const n = at(t);
|
|
81
|
-
if (n == null)
|
|
82
|
-
throw Z(
|
|
83
|
-
0
|
|
84
|
-
/* NodeTypes.Resource */
|
|
85
|
-
);
|
|
86
|
-
if (ce(n) === 1) {
|
|
87
|
-
const o = st(n);
|
|
88
|
-
return e.plural(o.reduce((i, l) => [
|
|
89
|
-
...i,
|
|
90
|
-
Te(e, l)
|
|
91
|
-
], []));
|
|
92
|
-
} else
|
|
93
|
-
return Te(e, n);
|
|
94
|
-
}
|
|
95
|
-
function Te(e, t) {
|
|
96
|
-
const n = ot(t);
|
|
97
|
-
if (n != null)
|
|
98
|
-
return e.type === "text" ? n : e.normalize([n]);
|
|
99
|
-
{
|
|
100
|
-
const r = it(t).reduce((a, o) => [...a, oe(e, o)], []);
|
|
101
|
-
return e.normalize(r);
|
|
102
|
-
}
|
|
103
|
-
}
|
|
104
|
-
function oe(e, t) {
|
|
105
|
-
const n = ce(t);
|
|
106
|
-
switch (n) {
|
|
107
|
-
case 3:
|
|
108
|
-
return J(t, n);
|
|
109
|
-
case 9:
|
|
110
|
-
return J(t, n);
|
|
111
|
-
case 4: {
|
|
112
|
-
const r = t;
|
|
113
|
-
if (K(r, "k") && r.k)
|
|
114
|
-
return e.interpolate(e.named(r.k));
|
|
115
|
-
if (K(r, "key") && r.key)
|
|
116
|
-
return e.interpolate(e.named(r.key));
|
|
117
|
-
throw Z(n);
|
|
118
|
-
}
|
|
119
|
-
case 5: {
|
|
120
|
-
const r = t;
|
|
121
|
-
if (K(r, "i") && S(r.i))
|
|
122
|
-
return e.interpolate(e.list(r.i));
|
|
123
|
-
if (K(r, "index") && S(r.index))
|
|
124
|
-
return e.interpolate(e.list(r.index));
|
|
125
|
-
throw Z(n);
|
|
126
|
-
}
|
|
127
|
-
case 6: {
|
|
128
|
-
const r = t, a = lt(r), o = ct(r);
|
|
129
|
-
return e.linked(oe(e, o), a ? oe(e, a) : void 0, e.type);
|
|
130
|
-
}
|
|
131
|
-
case 7:
|
|
132
|
-
return J(t, n);
|
|
133
|
-
case 8:
|
|
134
|
-
return J(t, n);
|
|
135
|
-
default:
|
|
136
|
-
throw new Error(`unhandled node on format message part: ${n}`);
|
|
137
|
-
}
|
|
138
|
-
}
|
|
139
|
-
const mt = "Detected HTML in '{source}' message. Recommend not using HTML messages to avoid XSS.";
|
|
140
|
-
function _t(e, t) {
|
|
141
|
-
t && et(e) && te(Le(mt, { source: e }));
|
|
142
|
-
}
|
|
143
|
-
const dt = (e) => e;
|
|
144
|
-
let Q = w();
|
|
145
|
-
function Et(e, t = {}) {
|
|
146
|
-
let n = !1;
|
|
147
|
-
const r = t.onError || tt;
|
|
148
|
-
return t.onError = (a) => {
|
|
149
|
-
n = !0, r(a);
|
|
150
|
-
}, { ...nt(e, t), detectError: n };
|
|
151
|
-
}
|
|
152
|
-
// @__NO_SIDE_EFFECTS__
|
|
153
|
-
function tn(e, t) {
|
|
154
|
-
if (!__INTLIFY_DROP_MESSAGE_COMPILER__ && f(e)) {
|
|
155
|
-
const n = P(t.warnHtmlMessage) ? t.warnHtmlMessage : !0;
|
|
156
|
-
process.env.NODE_ENV !== "production" && _t(e, n);
|
|
157
|
-
const a = (t.onCacheKey || dt)(e), o = Q[a];
|
|
158
|
-
if (o)
|
|
159
|
-
return o;
|
|
160
|
-
const { ast: i, detectError: l } = Et(e, {
|
|
161
|
-
...t,
|
|
162
|
-
location: process.env.NODE_ENV !== "production",
|
|
163
|
-
jit: !0
|
|
164
|
-
}), s = ne(i);
|
|
165
|
-
return l ? s : Q[a] = s;
|
|
166
|
-
} else {
|
|
167
|
-
if (process.env.NODE_ENV !== "production" && !x(e))
|
|
168
|
-
return te(`the message that is resolve with key '${t.key}' is not supported for jit compilation`), (() => e);
|
|
169
|
-
const n = e.cacheKey;
|
|
170
|
-
if (n) {
|
|
171
|
-
const r = Q[n];
|
|
172
|
-
return r || (Q[n] = ne(e));
|
|
173
|
-
} else
|
|
174
|
-
return ne(e);
|
|
175
|
-
}
|
|
176
|
-
}
|
|
177
|
-
let q = null;
|
|
178
|
-
function nn(e) {
|
|
179
|
-
q = e;
|
|
180
|
-
}
|
|
181
|
-
function gt(e, t, n) {
|
|
182
|
-
q && q.emit("i18n:init", {
|
|
183
|
-
timestamp: Date.now(),
|
|
184
|
-
i18n: e,
|
|
185
|
-
version: t,
|
|
186
|
-
meta: n
|
|
187
|
-
});
|
|
188
|
-
}
|
|
189
|
-
const Nt = /* @__PURE__ */ Tt("function:translate");
|
|
190
|
-
function Tt(e) {
|
|
191
|
-
return (t) => q && q.emit(e, t);
|
|
192
|
-
}
|
|
193
|
-
const h = {
|
|
194
|
-
INVALID_ARGUMENT: Qe,
|
|
195
|
-
// 17
|
|
196
|
-
INVALID_DATE_ARGUMENT: 18,
|
|
197
|
-
INVALID_ISO_DATE_ARGUMENT: 19,
|
|
198
|
-
NOT_SUPPORT_NON_STRING_MESSAGE: 20,
|
|
199
|
-
NOT_SUPPORT_LOCALE_PROMISE_VALUE: 21,
|
|
200
|
-
NOT_SUPPORT_LOCALE_ASYNC_FUNCTION: 22,
|
|
201
|
-
NOT_SUPPORT_LOCALE_TYPE: 23
|
|
202
|
-
}, rn = 24;
|
|
203
|
-
function W(e) {
|
|
204
|
-
return Je(e, null, process.env.NODE_ENV !== "production" ? { messages: pt } : void 0);
|
|
205
|
-
}
|
|
206
|
-
const pt = {
|
|
207
|
-
[h.INVALID_ARGUMENT]: "Invalid arguments",
|
|
208
|
-
[h.INVALID_DATE_ARGUMENT]: "The date provided is an invalid Date object.Make sure your Date represents a valid date.",
|
|
209
|
-
[h.INVALID_ISO_DATE_ARGUMENT]: "The argument provided is not a valid ISO date string",
|
|
210
|
-
[h.NOT_SUPPORT_NON_STRING_MESSAGE]: "Not support non-string message",
|
|
211
|
-
[h.NOT_SUPPORT_LOCALE_PROMISE_VALUE]: "cannot support promise value",
|
|
212
|
-
[h.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION]: "cannot support async function",
|
|
213
|
-
[h.NOT_SUPPORT_LOCALE_TYPE]: "cannot support locale type"
|
|
214
|
-
};
|
|
215
|
-
function ue(e, t) {
|
|
216
|
-
return t.locale != null ? pe(t.locale) : pe(e.locale);
|
|
217
|
-
}
|
|
218
|
-
let re;
|
|
219
|
-
function pe(e) {
|
|
220
|
-
if (f(e))
|
|
221
|
-
return e;
|
|
222
|
-
if (C(e)) {
|
|
223
|
-
if (e.resolvedOnce && re != null)
|
|
224
|
-
return re;
|
|
225
|
-
if (e.constructor.name === "Function") {
|
|
226
|
-
const t = e();
|
|
227
|
-
if (ze(t))
|
|
228
|
-
throw W(h.NOT_SUPPORT_LOCALE_PROMISE_VALUE);
|
|
229
|
-
return re = t;
|
|
230
|
-
} else
|
|
231
|
-
throw W(h.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION);
|
|
232
|
-
} else
|
|
233
|
-
throw W(h.NOT_SUPPORT_LOCALE_TYPE);
|
|
234
|
-
}
|
|
235
|
-
function Ot(e, t, n) {
|
|
236
|
-
return [.../* @__PURE__ */ new Set([
|
|
237
|
-
n,
|
|
238
|
-
...$(t) ? t : F(t) ? Object.keys(t) : f(t) ? [t] : [n]
|
|
239
|
-
])];
|
|
240
|
-
}
|
|
241
|
-
function an(e, t, n) {
|
|
242
|
-
const r = f(n) ? n : ie, a = e;
|
|
243
|
-
a.__localeChainCache || (a.__localeChainCache = /* @__PURE__ */ new Map());
|
|
244
|
-
let o = a.__localeChainCache.get(r);
|
|
245
|
-
if (!o) {
|
|
246
|
-
o = [];
|
|
247
|
-
let i = [n];
|
|
248
|
-
for (; $(i); )
|
|
249
|
-
i = Oe(o, i, t);
|
|
250
|
-
const l = $(t) || !R(t) ? t : t.default ? t.default : null;
|
|
251
|
-
i = f(l) ? [l] : l, $(i) && Oe(o, i, !1), a.__localeChainCache.set(r, o);
|
|
252
|
-
}
|
|
253
|
-
return o;
|
|
254
|
-
}
|
|
255
|
-
function Oe(e, t, n) {
|
|
256
|
-
let r = !0;
|
|
257
|
-
for (let a = 0; a < t.length && P(r); a++) {
|
|
258
|
-
const o = t[a];
|
|
259
|
-
f(o) && (r = At(e, t[a], n));
|
|
260
|
-
}
|
|
261
|
-
return r;
|
|
262
|
-
}
|
|
263
|
-
function At(e, t, n) {
|
|
264
|
-
let r;
|
|
265
|
-
const a = t.split("-");
|
|
266
|
-
do {
|
|
267
|
-
const o = a.join("-");
|
|
268
|
-
r = Dt(e, o, n), a.splice(-1, 1);
|
|
269
|
-
} while (a.length && r === !0);
|
|
270
|
-
return r;
|
|
271
|
-
}
|
|
272
|
-
function Dt(e, t, n) {
|
|
273
|
-
let r = !1;
|
|
274
|
-
if (!e.includes(t) && (r = !0, t)) {
|
|
275
|
-
r = t[t.length - 1] !== "!";
|
|
276
|
-
const a = t.replace(/!/g, "");
|
|
277
|
-
e.push(a), ($(n) || R(n)) && n[a] && (r = n[a]);
|
|
278
|
-
}
|
|
279
|
-
return r;
|
|
280
|
-
}
|
|
281
|
-
const Y = [];
|
|
282
|
-
Y[
|
|
283
|
-
0
|
|
284
|
-
/* States.BEFORE_PATH */
|
|
285
|
-
] = {
|
|
286
|
-
w: [
|
|
287
|
-
0
|
|
288
|
-
/* States.BEFORE_PATH */
|
|
289
|
-
],
|
|
290
|
-
i: [
|
|
291
|
-
3,
|
|
292
|
-
0
|
|
293
|
-
/* Actions.APPEND */
|
|
294
|
-
],
|
|
295
|
-
"[": [
|
|
296
|
-
4
|
|
297
|
-
/* States.IN_SUB_PATH */
|
|
298
|
-
],
|
|
299
|
-
o: [
|
|
300
|
-
7
|
|
301
|
-
/* States.AFTER_PATH */
|
|
302
|
-
]
|
|
303
|
-
};
|
|
304
|
-
Y[
|
|
305
|
-
1
|
|
306
|
-
/* States.IN_PATH */
|
|
307
|
-
] = {
|
|
308
|
-
w: [
|
|
309
|
-
1
|
|
310
|
-
/* States.IN_PATH */
|
|
311
|
-
],
|
|
312
|
-
".": [
|
|
313
|
-
2
|
|
314
|
-
/* States.BEFORE_IDENT */
|
|
315
|
-
],
|
|
316
|
-
"[": [
|
|
317
|
-
4
|
|
318
|
-
/* States.IN_SUB_PATH */
|
|
319
|
-
],
|
|
320
|
-
o: [
|
|
321
|
-
7
|
|
322
|
-
/* States.AFTER_PATH */
|
|
323
|
-
]
|
|
324
|
-
};
|
|
325
|
-
Y[
|
|
326
|
-
2
|
|
327
|
-
/* States.BEFORE_IDENT */
|
|
328
|
-
] = {
|
|
329
|
-
w: [
|
|
330
|
-
2
|
|
331
|
-
/* States.BEFORE_IDENT */
|
|
332
|
-
],
|
|
333
|
-
i: [
|
|
334
|
-
3,
|
|
335
|
-
0
|
|
336
|
-
/* Actions.APPEND */
|
|
337
|
-
],
|
|
338
|
-
0: [
|
|
339
|
-
3,
|
|
340
|
-
0
|
|
341
|
-
/* Actions.APPEND */
|
|
342
|
-
]
|
|
343
|
-
};
|
|
344
|
-
Y[
|
|
345
|
-
3
|
|
346
|
-
/* States.IN_IDENT */
|
|
347
|
-
] = {
|
|
348
|
-
i: [
|
|
349
|
-
3,
|
|
350
|
-
0
|
|
351
|
-
/* Actions.APPEND */
|
|
352
|
-
],
|
|
353
|
-
0: [
|
|
354
|
-
3,
|
|
355
|
-
0
|
|
356
|
-
/* Actions.APPEND */
|
|
357
|
-
],
|
|
358
|
-
w: [
|
|
359
|
-
1,
|
|
360
|
-
1
|
|
361
|
-
/* Actions.PUSH */
|
|
362
|
-
],
|
|
363
|
-
".": [
|
|
364
|
-
2,
|
|
365
|
-
1
|
|
366
|
-
/* Actions.PUSH */
|
|
367
|
-
],
|
|
368
|
-
"[": [
|
|
369
|
-
4,
|
|
370
|
-
1
|
|
371
|
-
/* Actions.PUSH */
|
|
372
|
-
],
|
|
373
|
-
o: [
|
|
374
|
-
7,
|
|
375
|
-
1
|
|
376
|
-
/* Actions.PUSH */
|
|
377
|
-
]
|
|
378
|
-
};
|
|
379
|
-
Y[
|
|
380
|
-
4
|
|
381
|
-
/* States.IN_SUB_PATH */
|
|
382
|
-
] = {
|
|
383
|
-
"'": [
|
|
384
|
-
5,
|
|
385
|
-
0
|
|
386
|
-
/* Actions.APPEND */
|
|
387
|
-
],
|
|
388
|
-
'"': [
|
|
389
|
-
6,
|
|
390
|
-
0
|
|
391
|
-
/* Actions.APPEND */
|
|
392
|
-
],
|
|
393
|
-
"[": [
|
|
394
|
-
4,
|
|
395
|
-
2
|
|
396
|
-
/* Actions.INC_SUB_PATH_DEPTH */
|
|
397
|
-
],
|
|
398
|
-
"]": [
|
|
399
|
-
1,
|
|
400
|
-
3
|
|
401
|
-
/* Actions.PUSH_SUB_PATH */
|
|
402
|
-
],
|
|
403
|
-
o: 8,
|
|
404
|
-
l: [
|
|
405
|
-
4,
|
|
406
|
-
0
|
|
407
|
-
/* Actions.APPEND */
|
|
408
|
-
]
|
|
409
|
-
};
|
|
410
|
-
Y[
|
|
411
|
-
5
|
|
412
|
-
/* States.IN_SINGLE_QUOTE */
|
|
413
|
-
] = {
|
|
414
|
-
"'": [
|
|
415
|
-
4,
|
|
416
|
-
0
|
|
417
|
-
/* Actions.APPEND */
|
|
418
|
-
],
|
|
419
|
-
o: 8,
|
|
420
|
-
l: [
|
|
421
|
-
5,
|
|
422
|
-
0
|
|
423
|
-
/* Actions.APPEND */
|
|
424
|
-
]
|
|
425
|
-
};
|
|
426
|
-
Y[
|
|
427
|
-
6
|
|
428
|
-
/* States.IN_DOUBLE_QUOTE */
|
|
429
|
-
] = {
|
|
430
|
-
'"': [
|
|
431
|
-
4,
|
|
432
|
-
0
|
|
433
|
-
/* Actions.APPEND */
|
|
434
|
-
],
|
|
435
|
-
o: 8,
|
|
436
|
-
l: [
|
|
437
|
-
6,
|
|
438
|
-
0
|
|
439
|
-
/* Actions.APPEND */
|
|
440
|
-
]
|
|
441
|
-
};
|
|
442
|
-
const Mt = /^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;
|
|
443
|
-
function It(e) {
|
|
444
|
-
return Mt.test(e);
|
|
445
|
-
}
|
|
446
|
-
function Rt(e) {
|
|
447
|
-
const t = e.charCodeAt(0), n = e.charCodeAt(e.length - 1);
|
|
448
|
-
return t === n && (t === 34 || t === 39) ? e.slice(1, -1) : e;
|
|
449
|
-
}
|
|
450
|
-
function Lt(e) {
|
|
451
|
-
if (e == null)
|
|
452
|
-
return "o";
|
|
453
|
-
switch (e.charCodeAt(0)) {
|
|
454
|
-
case 91:
|
|
455
|
-
// [
|
|
456
|
-
case 93:
|
|
457
|
-
// ]
|
|
458
|
-
case 46:
|
|
459
|
-
// .
|
|
460
|
-
case 34:
|
|
461
|
-
// "
|
|
462
|
-
case 39:
|
|
463
|
-
return e;
|
|
464
|
-
case 95:
|
|
465
|
-
// _
|
|
466
|
-
case 36:
|
|
467
|
-
// $
|
|
468
|
-
case 45:
|
|
469
|
-
return "i";
|
|
470
|
-
case 9:
|
|
471
|
-
// Tab (HT)
|
|
472
|
-
case 10:
|
|
473
|
-
// Newline (LF)
|
|
474
|
-
case 13:
|
|
475
|
-
// Return (CR)
|
|
476
|
-
case 160:
|
|
477
|
-
// No-break space (NBSP)
|
|
478
|
-
case 65279:
|
|
479
|
-
// Byte Order Mark (BOM)
|
|
480
|
-
case 8232:
|
|
481
|
-
// Line Separator (LS)
|
|
482
|
-
case 8233:
|
|
483
|
-
return "w";
|
|
484
|
-
}
|
|
485
|
-
return "i";
|
|
486
|
-
}
|
|
487
|
-
function vt(e) {
|
|
488
|
-
const t = e.trim();
|
|
489
|
-
return e.charAt(0) === "0" && isNaN(parseInt(e)) ? !1 : It(t) ? Rt(t) : "*" + t;
|
|
490
|
-
}
|
|
491
|
-
function Ct(e) {
|
|
492
|
-
const t = [];
|
|
493
|
-
let n = -1, r = 0, a = 0, o, i, l, s, u, m, g;
|
|
494
|
-
const c = [];
|
|
495
|
-
c[
|
|
496
|
-
0
|
|
497
|
-
/* Actions.APPEND */
|
|
498
|
-
] = () => {
|
|
499
|
-
i === void 0 ? i = l : i += l;
|
|
500
|
-
}, c[
|
|
501
|
-
1
|
|
502
|
-
/* Actions.PUSH */
|
|
503
|
-
] = () => {
|
|
504
|
-
i !== void 0 && (t.push(i), i = void 0);
|
|
505
|
-
}, c[
|
|
506
|
-
2
|
|
507
|
-
/* Actions.INC_SUB_PATH_DEPTH */
|
|
508
|
-
] = () => {
|
|
509
|
-
c[
|
|
510
|
-
0
|
|
511
|
-
/* Actions.APPEND */
|
|
512
|
-
](), a++;
|
|
513
|
-
}, c[
|
|
514
|
-
3
|
|
515
|
-
/* Actions.PUSH_SUB_PATH */
|
|
516
|
-
] = () => {
|
|
517
|
-
if (a > 0)
|
|
518
|
-
a--, r = 4, c[
|
|
519
|
-
0
|
|
520
|
-
/* Actions.APPEND */
|
|
521
|
-
]();
|
|
522
|
-
else {
|
|
523
|
-
if (a = 0, i === void 0 || (i = vt(i), i === !1))
|
|
524
|
-
return !1;
|
|
525
|
-
c[
|
|
526
|
-
1
|
|
527
|
-
/* Actions.PUSH */
|
|
528
|
-
]();
|
|
529
|
-
}
|
|
530
|
-
};
|
|
531
|
-
function E() {
|
|
532
|
-
const I = e[n + 1];
|
|
533
|
-
if (r === 5 && I === "'" || r === 6 && I === '"')
|
|
534
|
-
return n++, l = "\\" + I, c[
|
|
535
|
-
0
|
|
536
|
-
/* Actions.APPEND */
|
|
537
|
-
](), !0;
|
|
538
|
-
}
|
|
539
|
-
for (; r !== null; )
|
|
540
|
-
if (n++, o = e[n], !(o === "\\" && E())) {
|
|
541
|
-
if (s = Lt(o), g = Y[r], u = g[s] || g.l || 8, u === 8 || (r = u[0], u[1] !== void 0 && (m = c[u[1]], m && (l = o, m() === !1))))
|
|
542
|
-
return;
|
|
543
|
-
if (r === 7)
|
|
544
|
-
return t;
|
|
545
|
-
}
|
|
546
|
-
}
|
|
547
|
-
const Ae = /* @__PURE__ */ new Map();
|
|
548
|
-
function ht(e, t) {
|
|
549
|
-
return F(e) ? e[t] : null;
|
|
550
|
-
}
|
|
551
|
-
function sn(e, t) {
|
|
552
|
-
if (!F(e))
|
|
553
|
-
return null;
|
|
554
|
-
let n = Ae.get(t);
|
|
555
|
-
if (n || (n = Ct(t), n && Ae.set(t, n)), !n)
|
|
556
|
-
return null;
|
|
557
|
-
const r = n.length;
|
|
558
|
-
let a = e, o = 0;
|
|
559
|
-
for (; o < r; ) {
|
|
560
|
-
const i = n[o];
|
|
561
|
-
if (ut.includes(i) && x(a) || !F(a) || !K(a, i))
|
|
562
|
-
return null;
|
|
563
|
-
const l = a[i];
|
|
564
|
-
if (l === void 0 || C(a))
|
|
565
|
-
return null;
|
|
566
|
-
a = l, o++;
|
|
567
|
-
}
|
|
568
|
-
return a;
|
|
569
|
-
}
|
|
570
|
-
const L = {
|
|
571
|
-
NOT_FOUND_KEY: 1,
|
|
572
|
-
FALLBACK_TO_TRANSLATE: 2,
|
|
573
|
-
CANNOT_FORMAT_NUMBER: 3,
|
|
574
|
-
FALLBACK_TO_NUMBER_FORMAT: 4,
|
|
575
|
-
CANNOT_FORMAT_DATE: 5,
|
|
576
|
-
FALLBACK_TO_DATE_FORMAT: 6,
|
|
577
|
-
EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER: 7,
|
|
578
|
-
INVALID_NUMBER_ARGUMENT: 8,
|
|
579
|
-
INVALID_DATE_ARGUMENT: 9
|
|
580
|
-
}, on = 10, Ft = {
|
|
581
|
-
[L.NOT_FOUND_KEY]: "Not found '{key}' key in '{locale}' locale messages.",
|
|
582
|
-
[L.FALLBACK_TO_TRANSLATE]: "Fall back to translate '{key}' key with '{target}' locale.",
|
|
583
|
-
[L.CANNOT_FORMAT_NUMBER]: "Cannot format a number value due to not supported Intl.NumberFormat.",
|
|
584
|
-
[L.FALLBACK_TO_NUMBER_FORMAT]: "Fall back to number format '{key}' key with '{target}' locale.",
|
|
585
|
-
[L.CANNOT_FORMAT_DATE]: "Cannot format a date value due to not supported Intl.DateTimeFormat.",
|
|
586
|
-
[L.FALLBACK_TO_DATE_FORMAT]: "Fall back to datetime format '{key}' key with '{target}' locale.",
|
|
587
|
-
[L.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.",
|
|
588
|
-
[L.INVALID_NUMBER_ARGUMENT]: "Invalid argument for number formatting: expected a number but received '{value}'.",
|
|
589
|
-
[L.INVALID_DATE_ARGUMENT]: "Invalid argument for datetime formatting: expected a Date, number, or ISO string but received '{value}'."
|
|
590
|
-
};
|
|
591
|
-
function G(e, ...t) {
|
|
592
|
-
return Le(Ft[e], ...t);
|
|
593
|
-
}
|
|
594
|
-
const St = "11.3.0", fe = -1, ie = "en-US", ee = "", De = (e) => `${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;
|
|
595
|
-
function bt() {
|
|
596
|
-
return {
|
|
597
|
-
upper: (e, t) => t === "text" && f(e) ? e.toUpperCase() : t === "vnode" && F(e) && "__v_isVNode" in e ? e.children.toUpperCase() : e,
|
|
598
|
-
lower: (e, t) => t === "text" && f(e) ? e.toLowerCase() : t === "vnode" && F(e) && "__v_isVNode" in e ? e.children.toLowerCase() : e,
|
|
599
|
-
capitalize: (e, t) => t === "text" && f(e) ? De(e) : t === "vnode" && F(e) && "__v_isVNode" in e ? De(e.children) : e
|
|
600
|
-
};
|
|
601
|
-
}
|
|
602
|
-
let ke;
|
|
603
|
-
function ln(e) {
|
|
604
|
-
ke = e;
|
|
605
|
-
}
|
|
606
|
-
let Ve;
|
|
607
|
-
function cn(e) {
|
|
608
|
-
Ve = e;
|
|
609
|
-
}
|
|
610
|
-
let Ue;
|
|
611
|
-
function un(e) {
|
|
612
|
-
Ue = e;
|
|
613
|
-
}
|
|
614
|
-
let We = null;
|
|
615
|
-
const fn = /* @__NO_SIDE_EFFECTS__ */ (e) => {
|
|
616
|
-
We = e;
|
|
617
|
-
}, Pt = /* @__NO_SIDE_EFFECTS__ */ () => We;
|
|
618
|
-
let $e = null;
|
|
619
|
-
const mn = (e) => {
|
|
620
|
-
$e = e;
|
|
621
|
-
}, _n = () => $e;
|
|
622
|
-
let Me = 0;
|
|
623
|
-
function dn(e = {}) {
|
|
624
|
-
const t = C(e.onWarn) ? e.onWarn : te, n = f(e.version) ? e.version : St, r = f(e.locale) || C(e.locale) ? e.locale : ie, a = C(r) ? ie : r, o = $(e.fallbackLocale) || R(e.fallbackLocale) || f(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : a, i = R(e.messages) ? e.messages : ae(a), l = R(e.datetimeFormats) ? e.datetimeFormats : ae(a), s = R(e.numberFormats) ? e.numberFormats : ae(a), u = z(w(), e.modifiers, bt()), m = e.pluralRules || w(), g = C(e.missing) ? e.missing : null, c = P(e.missingWarn) || Ee(e.missingWarn) ? e.missingWarn : !0, E = P(e.fallbackWarn) || Ee(e.fallbackWarn) ? e.fallbackWarn : !0, I = !!e.fallbackFormat, p = !!e.unresolving, M = C(e.postTranslation) ? e.postTranslation : null, N = R(e.processor) ? e.processor : null, _ = P(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, T = !!e.escapeParameter, d = C(e.messageCompiler) ? e.messageCompiler : ke;
|
|
625
|
-
process.env.NODE_ENV !== "production" && C(e.messageCompiler) && xe(G(L.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER));
|
|
626
|
-
const O = C(e.messageResolver) ? e.messageResolver : Ve || ht, D = C(e.localeFallbacker) ? e.localeFallbacker : Ue || Ot, v = F(e.fallbackContext) ? e.fallbackContext : void 0, A = e, b = F(A.__datetimeFormatters) ? A.__datetimeFormatters : /* @__PURE__ */ new Map(), U = F(A.__numberFormatters) ? A.__numberFormatters : /* @__PURE__ */ new Map(), X = F(A.__meta) ? A.__meta : {};
|
|
627
|
-
Me++;
|
|
628
|
-
const y = {
|
|
629
|
-
version: n,
|
|
630
|
-
cid: Me,
|
|
631
|
-
locale: r,
|
|
632
|
-
fallbackLocale: o,
|
|
633
|
-
messages: i,
|
|
634
|
-
modifiers: u,
|
|
635
|
-
pluralRules: m,
|
|
636
|
-
missing: g,
|
|
637
|
-
missingWarn: c,
|
|
638
|
-
fallbackWarn: E,
|
|
639
|
-
fallbackFormat: I,
|
|
640
|
-
unresolving: p,
|
|
641
|
-
postTranslation: M,
|
|
642
|
-
processor: N,
|
|
643
|
-
warnHtmlMessage: _,
|
|
644
|
-
escapeParameter: T,
|
|
645
|
-
messageCompiler: d,
|
|
646
|
-
messageResolver: O,
|
|
647
|
-
localeFallbacker: D,
|
|
648
|
-
fallbackContext: v,
|
|
649
|
-
onWarn: t,
|
|
650
|
-
__meta: X
|
|
651
|
-
};
|
|
652
|
-
return y.datetimeFormats = l, y.numberFormats = s, y.__datetimeFormatters = b, y.__numberFormatters = U, process.env.NODE_ENV !== "production" && (y.__v_emitter = A.__v_emitter != null ? A.__v_emitter : void 0), (process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) && gt(y, n, X), y;
|
|
653
|
-
}
|
|
654
|
-
const ae = (e) => ({ [e]: w() });
|
|
655
|
-
function me(e, t) {
|
|
656
|
-
return e instanceof RegExp ? e.test(t) : e;
|
|
657
|
-
}
|
|
658
|
-
function wt(e, t) {
|
|
659
|
-
return e instanceof RegExp ? e.test(t) : e;
|
|
660
|
-
}
|
|
661
|
-
function _e(e, t, n, r, a) {
|
|
662
|
-
const { missing: o, onWarn: i } = e;
|
|
663
|
-
if (process.env.NODE_ENV !== "production") {
|
|
664
|
-
const l = e.__v_emitter;
|
|
665
|
-
l && l.emit("missing", {
|
|
666
|
-
locale: n,
|
|
667
|
-
key: t,
|
|
668
|
-
type: a,
|
|
669
|
-
groupId: `${a}:${t}`
|
|
670
|
-
});
|
|
671
|
-
}
|
|
672
|
-
if (o !== null) {
|
|
673
|
-
const l = o(e, n, t, a);
|
|
674
|
-
return f(l) ? l : t;
|
|
675
|
-
} else
|
|
676
|
-
return process.env.NODE_ENV !== "production" && wt(r, t) && i(G(L.NOT_FOUND_KEY, { key: t, locale: n })), t;
|
|
677
|
-
}
|
|
678
|
-
function En(e, t, n) {
|
|
679
|
-
const r = e;
|
|
680
|
-
r.__localeChainCache = /* @__PURE__ */ new Map(), e.localeFallbacker(e, n, t);
|
|
681
|
-
}
|
|
682
|
-
function Ge(e, t) {
|
|
683
|
-
return e === t ? !1 : e.split("-")[0] === t.split("-")[0];
|
|
684
|
-
}
|
|
685
|
-
function yt(e, t) {
|
|
686
|
-
const n = t.indexOf(e);
|
|
687
|
-
if (n === -1)
|
|
688
|
-
return !1;
|
|
689
|
-
for (let r = n + 1; r < t.length; r++)
|
|
690
|
-
if (Ge(e, t[r]))
|
|
691
|
-
return !0;
|
|
692
|
-
return !1;
|
|
693
|
-
}
|
|
694
|
-
const Ie = typeof Intl < "u", Ke = {
|
|
695
|
-
dateTimeFormat: Ie && typeof Intl.DateTimeFormat < "u",
|
|
696
|
-
numberFormat: Ie && typeof Intl.NumberFormat < "u"
|
|
697
|
-
};
|
|
698
|
-
function gn(e, ...t) {
|
|
699
|
-
const { datetimeFormats: n, unresolving: r, fallbackLocale: a, onWarn: o, localeFallbacker: i } = e, { __datetimeFormatters: l } = e;
|
|
700
|
-
if (process.env.NODE_ENV !== "production" && !Ke.dateTimeFormat)
|
|
701
|
-
return o(G(L.CANNOT_FORMAT_DATE)), ee;
|
|
702
|
-
if (!f(t[0]) && !ve(t[0]) && !S(t[0]))
|
|
703
|
-
return process.env.NODE_ENV !== "production" && o(G(L.INVALID_DATE_ARGUMENT, {
|
|
704
|
-
value: String(t[0])
|
|
705
|
-
})), ee;
|
|
706
|
-
const [s, u, m, g] = Vt(...t), c = P(m.missingWarn) ? m.missingWarn : e.missingWarn, E = P(m.fallbackWarn) ? m.fallbackWarn : e.fallbackWarn, I = !!m.part, p = ue(e, m), M = i(
|
|
707
|
-
e,
|
|
708
|
-
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
709
|
-
a,
|
|
710
|
-
p
|
|
711
|
-
);
|
|
712
|
-
if (!f(s) || s === "")
|
|
713
|
-
return new Intl.DateTimeFormat(p.replace(/!/g, ""), g).format(u);
|
|
714
|
-
let N = {}, _, T = null, d = p, O = null;
|
|
715
|
-
const D = "datetime format";
|
|
716
|
-
for (let b = 0; b < M.length; b++) {
|
|
717
|
-
if (_ = O = M[b], process.env.NODE_ENV !== "production" && p !== _ && me(E, s) && o(G(L.FALLBACK_TO_DATE_FORMAT, {
|
|
718
|
-
key: s,
|
|
719
|
-
target: _
|
|
720
|
-
})), process.env.NODE_ENV !== "production" && p !== _) {
|
|
721
|
-
const U = e.__v_emitter;
|
|
722
|
-
U && U.emit("fallback", {
|
|
723
|
-
type: D,
|
|
724
|
-
key: s,
|
|
725
|
-
from: d,
|
|
726
|
-
to: O,
|
|
727
|
-
groupId: `${D}:${s}`
|
|
728
|
-
});
|
|
729
|
-
}
|
|
730
|
-
if (N = n[_] || {}, T = N[s], R(T))
|
|
731
|
-
break;
|
|
732
|
-
_e(e, s, _, c, D), d = O;
|
|
733
|
-
}
|
|
734
|
-
if (!R(T) || !f(_))
|
|
735
|
-
return r ? fe : s;
|
|
736
|
-
let v = `${_}__${s}`;
|
|
737
|
-
le(g) || (v = `${v}__${JSON.stringify(g)}`);
|
|
738
|
-
let A = l.get(v);
|
|
739
|
-
return A || (A = new Intl.DateTimeFormat(_, z({}, T, g)), l.set(v, A)), I ? A.formatToParts(u) : A.format(u);
|
|
740
|
-
}
|
|
741
|
-
const kt = [
|
|
742
|
-
"localeMatcher",
|
|
743
|
-
"weekday",
|
|
744
|
-
"era",
|
|
745
|
-
"year",
|
|
746
|
-
"month",
|
|
747
|
-
"day",
|
|
748
|
-
"hour",
|
|
749
|
-
"minute",
|
|
750
|
-
"second",
|
|
751
|
-
"timeZoneName",
|
|
752
|
-
"formatMatcher",
|
|
753
|
-
"hour12",
|
|
754
|
-
"timeZone",
|
|
755
|
-
"dateStyle",
|
|
756
|
-
"timeStyle",
|
|
757
|
-
"calendar",
|
|
758
|
-
"dayPeriod",
|
|
759
|
-
"numberingSystem",
|
|
760
|
-
"hourCycle",
|
|
761
|
-
"fractionalSecondDigits"
|
|
762
|
-
];
|
|
763
|
-
function Vt(...e) {
|
|
764
|
-
const [t, n, r, a] = e, o = w();
|
|
765
|
-
let i = w(), l;
|
|
766
|
-
if (f(t)) {
|
|
767
|
-
const s = t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);
|
|
768
|
-
if (!s)
|
|
769
|
-
throw W(h.INVALID_ISO_DATE_ARGUMENT);
|
|
770
|
-
const u = s[3] ? s[3].trim().startsWith("T") ? `${s[1].trim()}${s[3].trim()}` : `${s[1].trim()}T${s[3].trim()}` : s[1].trim();
|
|
771
|
-
l = new Date(u);
|
|
772
|
-
try {
|
|
773
|
-
l.toISOString();
|
|
774
|
-
} catch {
|
|
775
|
-
throw W(h.INVALID_ISO_DATE_ARGUMENT);
|
|
776
|
-
}
|
|
777
|
-
} else if (ve(t)) {
|
|
778
|
-
if (isNaN(t.getTime()))
|
|
779
|
-
throw W(h.INVALID_DATE_ARGUMENT);
|
|
780
|
-
l = t;
|
|
781
|
-
} else if (S(t))
|
|
782
|
-
l = t;
|
|
783
|
-
else
|
|
784
|
-
throw W(h.INVALID_ARGUMENT);
|
|
785
|
-
return f(n) ? o.key = n : R(n) && Object.keys(n).forEach((s) => {
|
|
786
|
-
kt.includes(s) ? i[s] = n[s] : o[s] = n[s];
|
|
787
|
-
}), f(r) ? o.locale = r : R(r) && (i = r), R(a) && (i = a), [o.key || "", l, o, i];
|
|
788
|
-
}
|
|
789
|
-
function Nn(e, t, n) {
|
|
790
|
-
const r = e;
|
|
791
|
-
for (const a in n) {
|
|
792
|
-
const o = `${t}__${a}`;
|
|
793
|
-
r.__datetimeFormatters.has(o) && r.__datetimeFormatters.delete(o);
|
|
794
|
-
}
|
|
795
|
-
}
|
|
796
|
-
function Tn(e, ...t) {
|
|
797
|
-
const { numberFormats: n, unresolving: r, fallbackLocale: a, onWarn: o, localeFallbacker: i } = e, { __numberFormatters: l } = e;
|
|
798
|
-
if (process.env.NODE_ENV !== "production" && !Ke.numberFormat)
|
|
799
|
-
return o(G(L.CANNOT_FORMAT_NUMBER)), ee;
|
|
800
|
-
if (!S(t[0]))
|
|
801
|
-
return process.env.NODE_ENV !== "production" && o(G(L.INVALID_NUMBER_ARGUMENT, {
|
|
802
|
-
value: String(t[0])
|
|
803
|
-
})), ee;
|
|
804
|
-
const [s, u, m, g] = Wt(...t), c = P(m.missingWarn) ? m.missingWarn : e.missingWarn, E = P(m.fallbackWarn) ? m.fallbackWarn : e.fallbackWarn, I = !!m.part, p = ue(e, m), M = i(
|
|
805
|
-
e,
|
|
806
|
-
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
807
|
-
a,
|
|
808
|
-
p
|
|
809
|
-
);
|
|
810
|
-
if (!f(s) || s === "")
|
|
811
|
-
return new Intl.NumberFormat(p.replace(/!/g, ""), g).format(u);
|
|
812
|
-
let N = {}, _, T = null, d = p, O = null;
|
|
813
|
-
const D = "number format";
|
|
814
|
-
for (let b = 0; b < M.length; b++) {
|
|
815
|
-
if (_ = O = M[b], process.env.NODE_ENV !== "production" && p !== _ && me(E, s) && o(G(L.FALLBACK_TO_NUMBER_FORMAT, {
|
|
816
|
-
key: s,
|
|
817
|
-
target: _
|
|
818
|
-
})), process.env.NODE_ENV !== "production" && p !== _) {
|
|
819
|
-
const U = e.__v_emitter;
|
|
820
|
-
U && U.emit("fallback", {
|
|
821
|
-
type: D,
|
|
822
|
-
key: s,
|
|
823
|
-
from: d,
|
|
824
|
-
to: O,
|
|
825
|
-
groupId: `${D}:${s}`
|
|
826
|
-
});
|
|
827
|
-
}
|
|
828
|
-
if (N = n[_] || {}, T = N[s], R(T))
|
|
829
|
-
break;
|
|
830
|
-
_e(e, s, _, c, D), d = O;
|
|
831
|
-
}
|
|
832
|
-
if (!R(T) || !f(_))
|
|
833
|
-
return r ? fe : s;
|
|
834
|
-
let v = `${_}__${s}`;
|
|
835
|
-
le(g) || (v = `${v}__${JSON.stringify(g)}`);
|
|
836
|
-
let A = l.get(v);
|
|
837
|
-
return A || (A = new Intl.NumberFormat(_, z({}, T, g)), l.set(v, A)), I ? A.formatToParts(u) : A.format(u);
|
|
838
|
-
}
|
|
839
|
-
const Ut = [
|
|
840
|
-
"localeMatcher",
|
|
841
|
-
"style",
|
|
842
|
-
"currency",
|
|
843
|
-
"currencyDisplay",
|
|
844
|
-
"currencySign",
|
|
845
|
-
"useGrouping",
|
|
846
|
-
"minimumIntegerDigits",
|
|
847
|
-
"minimumFractionDigits",
|
|
848
|
-
"maximumFractionDigits",
|
|
849
|
-
"minimumSignificantDigits",
|
|
850
|
-
"maximumSignificantDigits",
|
|
851
|
-
"compactDisplay",
|
|
852
|
-
"notation",
|
|
853
|
-
"signDisplay",
|
|
854
|
-
"unit",
|
|
855
|
-
"unitDisplay",
|
|
856
|
-
"roundingMode",
|
|
857
|
-
"roundingPriority",
|
|
858
|
-
"roundingIncrement",
|
|
859
|
-
"trailingZeroDisplay"
|
|
860
|
-
];
|
|
861
|
-
function Wt(...e) {
|
|
862
|
-
const [t, n, r, a] = e, o = w();
|
|
863
|
-
let i = w();
|
|
864
|
-
if (!S(t))
|
|
865
|
-
throw W(h.INVALID_ARGUMENT);
|
|
866
|
-
const l = t;
|
|
867
|
-
return f(n) ? o.key = n : R(n) && Object.keys(n).forEach((s) => {
|
|
868
|
-
Ut.includes(s) ? i[s] = n[s] : o[s] = n[s];
|
|
869
|
-
}), f(r) ? o.locale = r : R(r) && (i = r), R(a) && (i = a), [o.key || "", l, o, i];
|
|
870
|
-
}
|
|
871
|
-
function pn(e, t, n) {
|
|
872
|
-
const r = e;
|
|
873
|
-
for (const a in n) {
|
|
874
|
-
const o = `${t}__${a}`;
|
|
875
|
-
r.__numberFormatters.has(o) && r.__numberFormatters.delete(o);
|
|
876
|
-
}
|
|
877
|
-
}
|
|
878
|
-
const $t = (e) => e, Gt = (e) => "", Kt = "text", Bt = (e) => e.length === 0 ? "" : qe(e), Yt = je;
|
|
879
|
-
function se(e, t) {
|
|
880
|
-
return e = Math.abs(e), t === 2 ? e === 1 ? 0 : 1 : Math.min(e, 2);
|
|
881
|
-
}
|
|
882
|
-
function xt(e) {
|
|
883
|
-
const t = S(e.pluralIndex) ? e.pluralIndex : -1;
|
|
884
|
-
return S(e.named?.count) ? e.named.count : S(e.named?.n) ? e.named.n : t;
|
|
885
|
-
}
|
|
886
|
-
function Ht(e = {}) {
|
|
887
|
-
const t = e.locale, n = xt(e), r = f(t) && C(e.pluralRules?.[t]) ? e.pluralRules[t] : se, a = r === se ? void 0 : se, o = (N) => N[r(n, N.length, a)], i = e.list || [], l = (N) => i[N], s = e.named || w();
|
|
888
|
-
S(e.pluralIndex) && (s.count ||= e.pluralIndex, s.n ||= e.pluralIndex);
|
|
889
|
-
const u = (N) => s[N];
|
|
890
|
-
function m(N, _) {
|
|
891
|
-
const T = C(e.messages) ? e.messages(N, !!_) : F(e.messages) ? e.messages[N] : !1;
|
|
892
|
-
return T || (e.parent ? e.parent.message(N) : Gt);
|
|
893
|
-
}
|
|
894
|
-
const g = (N) => e.modifiers ? e.modifiers[N] : $t, c = C(e.processor?.normalize) ? e.processor.normalize : Bt, E = C(e.processor?.interpolate) ? e.processor.interpolate : Yt, I = f(e.processor?.type) ? e.processor.type : Kt, M = {
|
|
895
|
-
list: l,
|
|
896
|
-
named: u,
|
|
897
|
-
plural: o,
|
|
898
|
-
linked: (N, ..._) => {
|
|
899
|
-
const [T, d] = _;
|
|
900
|
-
let O = "text", D = "";
|
|
901
|
-
_.length === 1 ? F(T) ? (D = T.modifier || D, O = T.type || O) : f(T) && (D = T || D) : _.length === 2 && (f(T) && (D = T || D), f(d) && (O = d || O));
|
|
902
|
-
const v = m(N, !0)(M), A = v === "" || v === void 0 ? N : v, b = (
|
|
903
|
-
// The message in vnode resolved with linked are returned as an array by processor.nomalize
|
|
904
|
-
O === "vnode" && $(A) && D ? A[0] : A
|
|
905
|
-
);
|
|
906
|
-
return D ? g(D)(b, O) : b;
|
|
907
|
-
},
|
|
908
|
-
message: m,
|
|
909
|
-
type: I,
|
|
910
|
-
interpolate: E,
|
|
911
|
-
normalize: c,
|
|
912
|
-
values: z(w(), i, s)
|
|
913
|
-
};
|
|
914
|
-
return M;
|
|
915
|
-
}
|
|
916
|
-
const Re = () => "", V = (e) => C(e);
|
|
917
|
-
function On(e, ...t) {
|
|
918
|
-
const { fallbackFormat: n, postTranslation: r, unresolving: a, messageCompiler: o, fallbackLocale: i, messages: l } = e, [s, u] = Xt(...t), m = P(u.missingWarn) ? u.missingWarn : e.missingWarn, g = P(u.fallbackWarn) ? u.fallbackWarn : e.fallbackWarn, c = P(u.escapeParameter) ? u.escapeParameter : e.escapeParameter, E = !!u.resolvedMessage, I = f(u.default) || P(u.default) ? P(u.default) ? o ? s : () => s : u.default : n ? o ? s : () => s : null, p = n || I != null && (f(I) || C(I)), M = ue(e, u);
|
|
919
|
-
c && jt(u);
|
|
920
|
-
let [N, _, T] = E ? [
|
|
921
|
-
s,
|
|
922
|
-
M,
|
|
923
|
-
l[M] || w()
|
|
924
|
-
] : Be(e, s, M, i, g, m), d = N, O = s;
|
|
925
|
-
if (!E && !(f(d) || x(d) || V(d)) && p && (d = I, O = d), !E && (!(f(d) || x(d) || V(d)) || !f(_)))
|
|
926
|
-
return a ? fe : s;
|
|
927
|
-
if (process.env.NODE_ENV !== "production" && f(d) && e.messageCompiler == null)
|
|
928
|
-
return te(`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 '${s}'.`), s;
|
|
929
|
-
let D = !1;
|
|
930
|
-
const v = () => {
|
|
931
|
-
D = !0;
|
|
932
|
-
}, A = V(d) ? d : Ye(e, s, _, d, O, v);
|
|
933
|
-
if (D)
|
|
934
|
-
return d;
|
|
935
|
-
const b = Jt(e, _, T, u), U = Ht(b), X = zt(e, A, U);
|
|
936
|
-
let y = r ? r(X, s) : X;
|
|
937
|
-
if (c && f(y) && (y = He(y)), process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) {
|
|
938
|
-
const de = {
|
|
939
|
-
timestamp: Date.now(),
|
|
940
|
-
key: f(s) ? s : V(d) ? d.key : "",
|
|
941
|
-
locale: _ || (V(d) ? d.locale : ""),
|
|
942
|
-
format: f(d) ? d : V(d) ? d.source : "",
|
|
943
|
-
message: y
|
|
944
|
-
};
|
|
945
|
-
de.meta = z({}, e.__meta, /* @__PURE__ */ Pt() || {}), Nt(de);
|
|
946
|
-
}
|
|
947
|
-
return y;
|
|
948
|
-
}
|
|
949
|
-
function jt(e) {
|
|
950
|
-
$(e.list) ? e.list = e.list.map((t) => f(t) ? Ne(t) : t) : F(e.named) && Object.keys(e.named).forEach((t) => {
|
|
951
|
-
f(e.named[t]) && (e.named[t] = Ne(e.named[t]));
|
|
952
|
-
});
|
|
953
|
-
}
|
|
954
|
-
function Be(e, t, n, r, a, o) {
|
|
955
|
-
const { messages: i, onWarn: l, messageResolver: s, localeFallbacker: u } = e, m = u(e, r, n);
|
|
956
|
-
let g = w(), c, E = null, I = n, p = null;
|
|
957
|
-
const M = "translate";
|
|
958
|
-
for (let N = 0; N < m.length; N++) {
|
|
959
|
-
if (c = p = m[N], process.env.NODE_ENV !== "production" && n !== c && !Ge(n, c) && me(a, t) && l(G(L.FALLBACK_TO_TRANSLATE, {
|
|
960
|
-
key: t,
|
|
961
|
-
target: c
|
|
962
|
-
})), process.env.NODE_ENV !== "production" && n !== c) {
|
|
963
|
-
const O = e.__v_emitter;
|
|
964
|
-
O && O.emit("fallback", {
|
|
965
|
-
type: M,
|
|
966
|
-
key: t,
|
|
967
|
-
from: I,
|
|
968
|
-
to: p,
|
|
969
|
-
groupId: `${M}:${t}`
|
|
970
|
-
});
|
|
971
|
-
}
|
|
972
|
-
g = i[c] || w();
|
|
973
|
-
let _ = null, T, d;
|
|
974
|
-
if (process.env.NODE_ENV !== "production" && H && (_ = window.performance.now(), T = "intlify-message-resolve-start", d = "intlify-message-resolve-end", k && k(T)), (E = s(g, t)) === null && (E = g[t]), process.env.NODE_ENV !== "production" && H) {
|
|
975
|
-
const O = window.performance.now(), D = e.__v_emitter;
|
|
976
|
-
D && _ && E && D.emit("message-resolve", {
|
|
977
|
-
type: "message-resolve",
|
|
978
|
-
key: t,
|
|
979
|
-
message: E,
|
|
980
|
-
time: O - _,
|
|
981
|
-
groupId: `${M}:${t}`
|
|
982
|
-
}), T && d && k && j && (k(d), j("intlify message resolve", T, d));
|
|
983
|
-
}
|
|
984
|
-
if (f(E) || x(E) || V(E))
|
|
985
|
-
break;
|
|
986
|
-
if (!yt(c, m)) {
|
|
987
|
-
const O = _e(
|
|
988
|
-
e,
|
|
989
|
-
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
990
|
-
t,
|
|
991
|
-
c,
|
|
992
|
-
o,
|
|
993
|
-
M
|
|
994
|
-
);
|
|
995
|
-
O !== t && (E = O);
|
|
996
|
-
}
|
|
997
|
-
I = p;
|
|
998
|
-
}
|
|
999
|
-
return [E, c, g];
|
|
1000
|
-
}
|
|
1001
|
-
function Ye(e, t, n, r, a, o) {
|
|
1002
|
-
const { messageCompiler: i, warnHtmlMessage: l } = e;
|
|
1003
|
-
if (V(r)) {
|
|
1004
|
-
const c = r;
|
|
1005
|
-
return c.locale = c.locale || n, c.key = c.key || t, c;
|
|
1006
|
-
}
|
|
1007
|
-
if (i == null) {
|
|
1008
|
-
const c = (() => r);
|
|
1009
|
-
return c.locale = n, c.key = t, c;
|
|
1010
|
-
}
|
|
1011
|
-
let s = null, u, m;
|
|
1012
|
-
process.env.NODE_ENV !== "production" && H && (s = window.performance.now(), u = "intlify-message-compilation-start", m = "intlify-message-compilation-end", k && k(u));
|
|
1013
|
-
const g = i(r, Zt(e, n, a, r, l, o));
|
|
1014
|
-
if (process.env.NODE_ENV !== "production" && H) {
|
|
1015
|
-
const c = window.performance.now(), E = e.__v_emitter;
|
|
1016
|
-
E && s && E.emit("message-compilation", {
|
|
1017
|
-
type: "message-compilation",
|
|
1018
|
-
message: r,
|
|
1019
|
-
time: c - s,
|
|
1020
|
-
groupId: `translate:${t}`
|
|
1021
|
-
}), u && m && k && j && (k(m), j("intlify message compilation", u, m));
|
|
1022
|
-
}
|
|
1023
|
-
return g.locale = n, g.key = t, g.source = r, g;
|
|
1024
|
-
}
|
|
1025
|
-
function zt(e, t, n) {
|
|
1026
|
-
let r = null, a, o;
|
|
1027
|
-
process.env.NODE_ENV !== "production" && H && (r = window.performance.now(), a = "intlify-message-evaluation-start", o = "intlify-message-evaluation-end", k && k(a));
|
|
1028
|
-
const i = t(n);
|
|
1029
|
-
if (process.env.NODE_ENV !== "production" && H) {
|
|
1030
|
-
const l = window.performance.now(), s = e.__v_emitter;
|
|
1031
|
-
s && r && s.emit("message-evaluation", {
|
|
1032
|
-
type: "message-evaluation",
|
|
1033
|
-
value: i,
|
|
1034
|
-
time: l - r,
|
|
1035
|
-
groupId: `translate:${t.key}`
|
|
1036
|
-
}), a && o && k && j && (k(o), j("intlify message evaluation", a, o));
|
|
1037
|
-
}
|
|
1038
|
-
return i;
|
|
1039
|
-
}
|
|
1040
|
-
function Xt(...e) {
|
|
1041
|
-
const [t, n, r] = e, a = w();
|
|
1042
|
-
if (!f(t) && !S(t) && !V(t) && !x(t))
|
|
1043
|
-
throw W(h.INVALID_ARGUMENT);
|
|
1044
|
-
const o = S(t) ? String(t) : (V(t), t);
|
|
1045
|
-
return S(n) ? a.plural = n : f(n) ? a.default = n : R(n) && !le(n) ? a.named = n : $(n) && (a.list = n), S(r) ? a.plural = r : f(r) ? a.default = r : R(r) && z(a, r), [o, a];
|
|
1046
|
-
}
|
|
1047
|
-
function Zt(e, t, n, r, a, o) {
|
|
1048
|
-
return {
|
|
1049
|
-
locale: t,
|
|
1050
|
-
key: n,
|
|
1051
|
-
warnHtmlMessage: a,
|
|
1052
|
-
onError: (i) => {
|
|
1053
|
-
if (o && o(i), process.env.NODE_ENV !== "production") {
|
|
1054
|
-
const l = qt(r), s = i.location && l && Ze(l, i.location.start.offset, i.location.end.offset), u = e.__v_emitter;
|
|
1055
|
-
u && l && u.emit("compile-error", {
|
|
1056
|
-
message: l,
|
|
1057
|
-
error: i.message,
|
|
1058
|
-
start: i.location && i.location.start.offset,
|
|
1059
|
-
end: i.location && i.location.end.offset,
|
|
1060
|
-
groupId: `translate:${n}`
|
|
1061
|
-
});
|
|
1062
|
-
const m = `Message compilation error: ${i.message}`;
|
|
1063
|
-
throw new SyntaxError(s ? `${m}
|
|
1064
|
-
${s}` : m);
|
|
1065
|
-
}
|
|
1066
|
-
throw i;
|
|
1067
|
-
},
|
|
1068
|
-
onCacheKey: (i) => Xe(t, n, i)
|
|
1069
|
-
};
|
|
1070
|
-
}
|
|
1071
|
-
function qt(e) {
|
|
1072
|
-
if (f(e))
|
|
1073
|
-
return e;
|
|
1074
|
-
if (e.loc && e.loc.source)
|
|
1075
|
-
return e.loc.source;
|
|
1076
|
-
}
|
|
1077
|
-
function Jt(e, t, n, r) {
|
|
1078
|
-
const { modifiers: a, pluralRules: o, messageResolver: i, fallbackLocale: l, fallbackWarn: s, missingWarn: u, fallbackContext: m } = e, c = {
|
|
1079
|
-
locale: t,
|
|
1080
|
-
modifiers: a,
|
|
1081
|
-
pluralRules: o,
|
|
1082
|
-
messages: (E, I) => {
|
|
1083
|
-
let p = i(n, E);
|
|
1084
|
-
if (p == null && (m || I)) {
|
|
1085
|
-
const [, , M] = Be(
|
|
1086
|
-
m || e,
|
|
1087
|
-
// NOTE: if has fallbackContext, fallback to root, else if use linked, fallback to local context
|
|
1088
|
-
E,
|
|
1089
|
-
t,
|
|
1090
|
-
l,
|
|
1091
|
-
s,
|
|
1092
|
-
u
|
|
1093
|
-
);
|
|
1094
|
-
p = i(M, E);
|
|
1095
|
-
}
|
|
1096
|
-
if (f(p) || x(p)) {
|
|
1097
|
-
let M = !1;
|
|
1098
|
-
const _ = Ye(e, E, t, p, E, () => {
|
|
1099
|
-
M = !0;
|
|
1100
|
-
});
|
|
1101
|
-
return M ? Re : _;
|
|
1102
|
-
} else return V(p) ? p : Re;
|
|
1103
|
-
}
|
|
1104
|
-
};
|
|
1105
|
-
return e.processor && (c.processor = e.processor), r.list && (c.list = r.list), r.named && (c.named = r.named), S(r.plural) && (c.pluralIndex = r.plural), c;
|
|
1106
|
-
}
|
|
1107
|
-
rt();
|
|
1108
|
-
export {
|
|
1109
|
-
ut as A,
|
|
1110
|
-
sn as B,
|
|
1111
|
-
on as C,
|
|
1112
|
-
ie as D,
|
|
1113
|
-
ee as M,
|
|
1114
|
-
fe as N,
|
|
1115
|
-
Nn as a,
|
|
1116
|
-
pn as b,
|
|
1117
|
-
dn as c,
|
|
1118
|
-
me as d,
|
|
1119
|
-
wt as e,
|
|
1120
|
-
rn as f,
|
|
1121
|
-
_n as g,
|
|
1122
|
-
an as h,
|
|
1123
|
-
x as i,
|
|
1124
|
-
mn as j,
|
|
1125
|
-
Vt as k,
|
|
1126
|
-
gn as l,
|
|
1127
|
-
Wt as m,
|
|
1128
|
-
Tn as n,
|
|
1129
|
-
V as o,
|
|
1130
|
-
Xt as p,
|
|
1131
|
-
Ut as q,
|
|
1132
|
-
kt as r,
|
|
1133
|
-
fn as s,
|
|
1134
|
-
On as t,
|
|
1135
|
-
En as u,
|
|
1136
|
-
ln as v,
|
|
1137
|
-
cn as w,
|
|
1138
|
-
un as x,
|
|
1139
|
-
nn as y,
|
|
1140
|
-
tn as z
|
|
1141
|
-
};
|