@autocode-cli/autocode 0.8.37 → 0.22.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.output/nitro.json +15 -0
- package/.output/public/_i18n/zP5M_e1m/en/messages.json +1 -0
- package/.output/public/_i18n/zP5M_e1m/fr/messages.json +1 -0
- package/.output/public/_nuxt/BBgAVlXU.js +1 -0
- package/.output/public/_nuxt/BZUmpBmU.js +2 -0
- package/.output/public/_nuxt/BmGeRwzG.js +1 -0
- package/.output/public/_nuxt/Bsd2P-Xc.js +1 -0
- package/.output/public/_nuxt/BthlfLoK.js +1 -0
- package/.output/public/_nuxt/Bu1Qq2g-.js +1 -0
- package/.output/public/_nuxt/BvF9_V7p.js +1 -0
- package/.output/public/_nuxt/BvUbqlcZ.js +2 -0
- package/.output/public/_nuxt/Bxcwuw3U.js +1 -0
- package/.output/public/_nuxt/C0Rlrcoy.js +59 -0
- package/.output/public/_nuxt/CTV7-Iux.js +1 -0
- package/.output/public/_nuxt/CWENDdnZ.js +1 -0
- package/.output/public/_nuxt/CjVJcaTo.js +7 -0
- package/.output/public/_nuxt/CoGBQbLh.js +1 -0
- package/.output/public/_nuxt/CtVoJCjv.js +1 -0
- package/.output/public/_nuxt/D4lcVP-d.js +1 -0
- package/.output/public/_nuxt/D8RlVVzC.js +1 -0
- package/.output/public/_nuxt/DBuWa6JT.js +1 -0
- package/.output/public/_nuxt/DFQ30pd7.js +1 -0
- package/.output/public/_nuxt/DNUcHFTN.js +1 -0
- package/.output/public/_nuxt/DRo5NaOZ.js +1 -0
- package/.output/public/_nuxt/DU0awelf.js +1 -0
- package/.output/public/_nuxt/DYYF8rpr.js +1 -0
- package/.output/public/_nuxt/DaYBQX26.js +1 -0
- package/.output/public/_nuxt/DwfwVH0w.js +1 -0
- package/.output/public/_nuxt/DykwyQae.js +1 -0
- package/.output/public/_nuxt/FIIaIpPb.js +1 -0
- package/.output/public/_nuxt/IssueHeader.BKYJE9Ko.css +1 -0
- package/.output/public/_nuxt/LangSwitcher.DDTh1sNN.css +1 -0
- package/.output/public/_nuxt/QtPIr4OQ.js +1 -0
- package/.output/public/_nuxt/TA-NBooC.js +1 -0
- package/.output/public/_nuxt/TB1o0NrH.js +13 -0
- package/.output/public/_nuxt/Zzp33YZj.js +1 -0
- package/.output/public/_nuxt/_HJO0SwU.js +1 -0
- package/.output/public/_nuxt/_id_.CYj9w2Sw.css +1 -0
- package/.output/public/_nuxt/_name_.OOW3Ydwv.css +1 -0
- package/.output/public/_nuxt/autocreate.-iJ9Pxhm.css +1 -0
- package/.output/public/_nuxt/builds/latest.json +1 -0
- package/.output/public/_nuxt/builds/meta/83d9a3fc-c99e-4e26-adef-e7f5b329b81a.json +1 -0
- package/.output/public/_nuxt/changelog.CziWegef.css +1 -0
- package/.output/public/_nuxt/comments.BcvjcN1z.css +1 -0
- package/.output/public/_nuxt/default.BaZU2Ea8.css +1 -0
- package/.output/public/_nuxt/entry.CzscD3wg.css +1 -0
- package/.output/public/_nuxt/graph.BbpRRv0M.css +1 -0
- package/.output/public/_nuxt/iHS1jy-1.js +1 -0
- package/.output/public/_nuxt/index.CDND7dpO.css +1 -0
- package/.output/public/_nuxt/index.COVdL_Kx.css +1 -0
- package/.output/public/_nuxt/index.CTkgb9uR.css +1 -0
- package/.output/public/_nuxt/index.DkNg_n4G.css +1 -0
- package/.output/public/_nuxt/jYigECdj.js +1 -0
- package/.output/public/_nuxt/kanban.BuPOCLgG.css +1 -0
- package/.output/public/_nuxt/landing.D5KkDm1b.css +1 -0
- package/.output/public/_nuxt/new.BFERdqdm.css +1 -0
- package/.output/public/_nuxt/new.BzaiohPo.css +1 -0
- package/.output/public/_nuxt/prompt.CbFHjm-L.css +1 -0
- package/.output/public/_nuxt/prompt.DM4VdPnn.css +1 -0
- package/.output/public/_nuxt/prompt.DZ0wdOji.css +1 -0
- package/.output/public/_nuxt/stats.CXzKxZ71.css +1 -0
- package/.output/public/_nuxt/terminal.BL0EPPyU.css +1 -0
- package/.output/public/_nuxt/terminal.D3JI44PH.css +1 -0
- package/.output/public/_nuxt/terminal.YXDzS4Ng.css +1 -0
- package/.output/public/_payload.json +1 -0
- package/.output/public/favicon.svg +11 -0
- package/.output/public/index.html +1 -0
- package/.output/public/media/podcast/en.m4a +0 -0
- package/.output/public/media/podcast/fr.m4a +0 -0
- package/.output/public/og-image.svg +58 -0
- package/.output/public/robots.txt +5 -0
- package/.output/server/chunks/_/attachments.service.mjs +33 -0
- package/.output/server/chunks/_/attachments.service.mjs.map +1 -0
- package/.output/server/chunks/_/comments.service.mjs +26 -0
- package/.output/server/chunks/_/comments.service.mjs.map +1 -0
- package/.output/server/chunks/_/en.mjs +538 -0
- package/.output/server/chunks/_/en.mjs.map +1 -0
- package/.output/server/chunks/_/error-500.mjs +10 -0
- package/.output/server/chunks/_/error-500.mjs.map +1 -0
- package/.output/server/chunks/_/fr.mjs +538 -0
- package/.output/server/chunks/_/fr.mjs.map +1 -0
- package/.output/server/chunks/build/AppHeader-styles.D4cFmBur.mjs +8 -0
- package/.output/server/chunks/build/AppHeader-styles.D4cFmBur.mjs.map +1 -0
- package/.output/server/chunks/build/CatalogPanel-styles.BJ_ozkvH.mjs +8 -0
- package/.output/server/chunks/build/CatalogPanel-styles.BJ_ozkvH.mjs.map +1 -0
- package/.output/server/chunks/build/IssueHeader-BKlqeUoH.mjs +127 -0
- package/.output/server/chunks/build/IssueHeader-BKlqeUoH.mjs.map +1 -0
- package/.output/server/chunks/build/IssueHeader-styles.aWkocVax.mjs +8 -0
- package/.output/server/chunks/build/IssueHeader-styles.aWkocVax.mjs.map +1 -0
- package/.output/server/chunks/build/LandingArchitecture-styles.Don6ug3a.mjs +8 -0
- package/.output/server/chunks/build/LandingArchitecture-styles.Don6ug3a.mjs.map +1 -0
- package/.output/server/chunks/build/LandingAutonomy-styles.D9JJFMEO.mjs +8 -0
- package/.output/server/chunks/build/LandingAutonomy-styles.D9JJFMEO.mjs.map +1 -0
- package/.output/server/chunks/build/LandingCommands-styles.BoLpFQgT.mjs +8 -0
- package/.output/server/chunks/build/LandingCommands-styles.BoLpFQgT.mjs.map +1 -0
- package/.output/server/chunks/build/LandingDemo-styles.WY8VUN9P.mjs +8 -0
- package/.output/server/chunks/build/LandingDemo-styles.WY8VUN9P.mjs.map +1 -0
- package/.output/server/chunks/build/LandingFooter-styles.CEshuzKW.mjs +8 -0
- package/.output/server/chunks/build/LandingFooter-styles.CEshuzKW.mjs.map +1 -0
- package/.output/server/chunks/build/LandingMatrixBg-styles.DKJoYVuG.mjs +8 -0
- package/.output/server/chunks/build/LandingMatrixBg-styles.DKJoYVuG.mjs.map +1 -0
- package/.output/server/chunks/build/LandingPipeline-styles.CL96fyQR.mjs +8 -0
- package/.output/server/chunks/build/LandingPipeline-styles.CL96fyQR.mjs.map +1 -0
- package/.output/server/chunks/build/LandingPodcast-styles.BUxvpRMa.mjs +8 -0
- package/.output/server/chunks/build/LandingPodcast-styles.BUxvpRMa.mjs.map +1 -0
- package/.output/server/chunks/build/LandingRoadmap-styles.DX5EsTsx.mjs +8 -0
- package/.output/server/chunks/build/LandingRoadmap-styles.DX5EsTsx.mjs.map +1 -0
- package/.output/server/chunks/build/LangSwitcher-BcmlkZkS.mjs +32 -0
- package/.output/server/chunks/build/LangSwitcher-BcmlkZkS.mjs.map +1 -0
- package/.output/server/chunks/build/LangSwitcher-styles.DjejY3Ry.mjs +8 -0
- package/.output/server/chunks/build/LangSwitcher-styles.DjejY3Ry.mjs.map +1 -0
- package/.output/server/chunks/build/NotificationContainer-styles.CWuUTY5_.mjs +8 -0
- package/.output/server/chunks/build/NotificationContainer-styles.CWuUTY5_.mjs.map +1 -0
- package/.output/server/chunks/build/PipelineColumn-styles.DeCMKSUU.mjs +8 -0
- package/.output/server/chunks/build/PipelineColumn-styles.DeCMKSUU.mjs.map +1 -0
- package/.output/server/chunks/build/PipelineSegments-styles.Cx1F1okc.mjs +8 -0
- package/.output/server/chunks/build/PipelineSegments-styles.Cx1F1okc.mjs.map +1 -0
- package/.output/server/chunks/build/_id_-CE9OXhn_.mjs +78 -0
- package/.output/server/chunks/build/_id_-CE9OXhn_.mjs.map +1 -0
- package/.output/server/chunks/build/_id_-styles.DrupDd6T.mjs +8 -0
- package/.output/server/chunks/build/_id_-styles.DrupDd6T.mjs.map +1 -0
- package/.output/server/chunks/build/_name_-UJA12Rs2.mjs +810 -0
- package/.output/server/chunks/build/_name_-UJA12Rs2.mjs.map +1 -0
- package/.output/server/chunks/build/_name_-styles.megXcys0.mjs +8 -0
- package/.output/server/chunks/build/_name_-styles.megXcys0.mjs.map +1 -0
- package/.output/server/chunks/build/autocreate-DrAjWR5B.mjs +113 -0
- package/.output/server/chunks/build/autocreate-DrAjWR5B.mjs.map +1 -0
- package/.output/server/chunks/build/autocreate-styles.BkUFXyS7.mjs +8 -0
- package/.output/server/chunks/build/autocreate-styles.BkUFXyS7.mjs.map +1 -0
- package/.output/server/chunks/build/changelog-CVp1u2jo.mjs +159 -0
- package/.output/server/chunks/build/changelog-CVp1u2jo.mjs.map +1 -0
- package/.output/server/chunks/build/changelog-styles.Ct3EgGku.mjs +8 -0
- package/.output/server/chunks/build/changelog-styles.Ct3EgGku.mjs.map +1 -0
- package/.output/server/chunks/build/client.precomputed.mjs +4 -0
- package/.output/server/chunks/build/client.precomputed.mjs.map +1 -0
- package/.output/server/chunks/build/comments-CZn-fPmX.mjs +119 -0
- package/.output/server/chunks/build/comments-CZn-fPmX.mjs.map +1 -0
- package/.output/server/chunks/build/comments-styles.CMP7TEvm.mjs +8 -0
- package/.output/server/chunks/build/comments-styles.CMP7TEvm.mjs.map +1 -0
- package/.output/server/chunks/build/default-BovpaVrS.mjs +180 -0
- package/.output/server/chunks/build/default-BovpaVrS.mjs.map +1 -0
- package/.output/server/chunks/build/default-styles.DCCKRaIF.mjs +8 -0
- package/.output/server/chunks/build/default-styles.DCCKRaIF.mjs.map +1 -0
- package/.output/server/chunks/build/en-1t1dLE2e.mjs +516 -0
- package/.output/server/chunks/build/en-1t1dLE2e.mjs.map +1 -0
- package/.output/server/chunks/build/error-styles.DYHGS7iv.mjs +8 -0
- package/.output/server/chunks/build/error-styles.DYHGS7iv.mjs.map +1 -0
- package/.output/server/chunks/build/fetch-B5NxMLIO.mjs +468 -0
- package/.output/server/chunks/build/fetch-B5NxMLIO.mjs.map +1 -0
- package/.output/server/chunks/build/fr-DHi8X16R.mjs +516 -0
- package/.output/server/chunks/build/fr-DHi8X16R.mjs.map +1 -0
- package/.output/server/chunks/build/graph-C-r91hz6.mjs +153 -0
- package/.output/server/chunks/build/graph-C-r91hz6.mjs.map +1 -0
- package/.output/server/chunks/build/graph-styles.BX4kyxPV.mjs +8 -0
- package/.output/server/chunks/build/graph-styles.BX4kyxPV.mjs.map +1 -0
- package/.output/server/chunks/build/index-Bm8ROtfk.mjs +239 -0
- package/.output/server/chunks/build/index-Bm8ROtfk.mjs.map +1 -0
- package/.output/server/chunks/build/index-C0DupdV0.mjs +89 -0
- package/.output/server/chunks/build/index-C0DupdV0.mjs.map +1 -0
- package/.output/server/chunks/build/index-CqyAV1ko.mjs +741 -0
- package/.output/server/chunks/build/index-CqyAV1ko.mjs.map +1 -0
- package/.output/server/chunks/build/index-D2tcUNO-.mjs +193 -0
- package/.output/server/chunks/build/index-D2tcUNO-.mjs.map +1 -0
- package/.output/server/chunks/build/index-styles.BJ7kZO7q.mjs +8 -0
- package/.output/server/chunks/build/index-styles.BJ7kZO7q.mjs.map +1 -0
- package/.output/server/chunks/build/index-styles.BaICoyCD.mjs +8 -0
- package/.output/server/chunks/build/index-styles.BaICoyCD.mjs.map +1 -0
- package/.output/server/chunks/build/index-styles.Cy221X-R.mjs +8 -0
- package/.output/server/chunks/build/index-styles.Cy221X-R.mjs.map +1 -0
- package/.output/server/chunks/build/kanban-CMVmXpCA.mjs +304 -0
- package/.output/server/chunks/build/kanban-CMVmXpCA.mjs.map +1 -0
- package/.output/server/chunks/build/kanban-styles.CWalvI0C.mjs +8 -0
- package/.output/server/chunks/build/kanban-styles.CWalvI0C.mjs.map +1 -0
- package/.output/server/chunks/build/landing-DK6wjn6b.mjs +52 -0
- package/.output/server/chunks/build/landing-DK6wjn6b.mjs.map +1 -0
- package/.output/server/chunks/build/landing-styles.Bx73xEdX.mjs +8 -0
- package/.output/server/chunks/build/landing-styles.Bx73xEdX.mjs.map +1 -0
- package/.output/server/chunks/build/new-BUvtXOoH.mjs +107 -0
- package/.output/server/chunks/build/new-BUvtXOoH.mjs.map +1 -0
- package/.output/server/chunks/build/new-DMctSKBX.mjs +171 -0
- package/.output/server/chunks/build/new-DMctSKBX.mjs.map +1 -0
- package/.output/server/chunks/build/new-styles.Chk5u_6M.mjs +8 -0
- package/.output/server/chunks/build/new-styles.Chk5u_6M.mjs.map +1 -0
- package/.output/server/chunks/build/new-styles.KSbzjZvD.mjs +8 -0
- package/.output/server/chunks/build/new-styles.KSbzjZvD.mjs.map +1 -0
- package/.output/server/chunks/build/nuxt-link-Cq8xZgFP.mjs +286 -0
- package/.output/server/chunks/build/nuxt-link-Cq8xZgFP.mjs.map +1 -0
- package/.output/server/chunks/build/prompt-BD-UncOd.mjs +167 -0
- package/.output/server/chunks/build/prompt-BD-UncOd.mjs.map +1 -0
- package/.output/server/chunks/build/prompt-BzvhmzrW.mjs +121 -0
- package/.output/server/chunks/build/prompt-BzvhmzrW.mjs.map +1 -0
- package/.output/server/chunks/build/prompt-evT7Aaj_.mjs +118 -0
- package/.output/server/chunks/build/prompt-evT7Aaj_.mjs.map +1 -0
- package/.output/server/chunks/build/prompt-styles.ByKVLx31.mjs +8 -0
- package/.output/server/chunks/build/prompt-styles.ByKVLx31.mjs.map +1 -0
- package/.output/server/chunks/build/prompt-styles.DWfublIG.mjs +8 -0
- package/.output/server/chunks/build/prompt-styles.DWfublIG.mjs.map +1 -0
- package/.output/server/chunks/build/prompt-styles.i7UlDRDv.mjs +8 -0
- package/.output/server/chunks/build/prompt-styles.i7UlDRDv.mjs.map +1 -0
- package/.output/server/chunks/build/server.mjs +6262 -0
- package/.output/server/chunks/build/server.mjs.map +1 -0
- package/.output/server/chunks/build/stats-Cxo5MAfa.mjs +184 -0
- package/.output/server/chunks/build/stats-Cxo5MAfa.mjs.map +1 -0
- package/.output/server/chunks/build/stats-styles.B6f61PbZ.mjs +8 -0
- package/.output/server/chunks/build/stats-styles.B6f61PbZ.mjs.map +1 -0
- package/.output/server/chunks/build/styles.mjs +82 -0
- package/.output/server/chunks/build/styles.mjs.map +1 -0
- package/.output/server/chunks/build/terminal-B0__67-c.mjs +134 -0
- package/.output/server/chunks/build/terminal-B0__67-c.mjs.map +1 -0
- package/.output/server/chunks/build/terminal-BtTmOD6s.mjs +128 -0
- package/.output/server/chunks/build/terminal-BtTmOD6s.mjs.map +1 -0
- package/.output/server/chunks/build/terminal-D_WbT8Ri.mjs +134 -0
- package/.output/server/chunks/build/terminal-D_WbT8Ri.mjs.map +1 -0
- package/.output/server/chunks/build/terminal-styles.C3XDlIUb.mjs +8 -0
- package/.output/server/chunks/build/terminal-styles.C3XDlIUb.mjs.map +1 -0
- package/.output/server/chunks/build/terminal-styles.CPOm0b7Y.mjs +8 -0
- package/.output/server/chunks/build/terminal-styles.CPOm0b7Y.mjs.map +1 -0
- package/.output/server/chunks/build/terminal-styles.TrVlIkii.mjs +8 -0
- package/.output/server/chunks/build/terminal-styles.TrVlIkii.mjs.map +1 -0
- package/.output/server/chunks/build/useApiError-BSStUojq.mjs +54 -0
- package/.output/server/chunks/build/useApiError-BSStUojq.mjs.map +1 -0
- package/.output/server/chunks/build/useNotification-BqDqaGnC.mjs +49 -0
- package/.output/server/chunks/build/useNotification-BqDqaGnC.mjs.map +1 -0
- package/.output/server/chunks/build/usePipeline-ZPHbtOs6.mjs +158 -0
- package/.output/server/chunks/build/usePipeline-ZPHbtOs6.mjs.map +1 -0
- package/.output/server/chunks/build/useWebSocket-UbMCn0vY.mjs +47 -0
- package/.output/server/chunks/build/useWebSocket-UbMCn0vY.mjs.map +1 -0
- package/.output/server/chunks/nitro/nitro.mjs +14666 -0
- package/.output/server/chunks/nitro/nitro.mjs.map +1 -0
- package/.output/server/chunks/routes/_ws.mjs +50 -0
- package/.output/server/chunks/routes/_ws.mjs.map +1 -0
- package/.output/server/chunks/routes/api/catalog/autocreate/apply.post.mjs +67 -0
- package/.output/server/chunks/routes/api/catalog/autocreate/apply.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/catalog/autocreate.post.mjs +158 -0
- package/.output/server/chunks/routes/api/catalog/autocreate.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/changelog/summary.post.mjs +140 -0
- package/.output/server/chunks/routes/api/changelog/summary.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/changelog.get.mjs +83 -0
- package/.output/server/chunks/routes/api/changelog.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/columns/_slug/actions.get.mjs +43 -0
- package/.output/server/chunks/routes/api/columns/_slug/actions.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/columns/_slug/prompt.get.mjs +44 -0
- package/.output/server/chunks/routes/api/columns/_slug/prompt.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/health.get.mjs +61 -0
- package/.output/server/chunks/routes/api/health.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/index.get.mjs +80 -0
- package/.output/server/chunks/routes/api/index.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/index.get2.mjs +39 -0
- package/.output/server/chunks/routes/api/index.get2.mjs.map +1 -0
- package/.output/server/chunks/routes/api/index.get3.mjs +55 -0
- package/.output/server/chunks/routes/api/index.get3.mjs.map +1 -0
- package/.output/server/chunks/routes/api/index.get4.mjs +46 -0
- package/.output/server/chunks/routes/api/index.get4.mjs.map +1 -0
- package/.output/server/chunks/routes/api/index.post.mjs +104 -0
- package/.output/server/chunks/routes/api/index.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/index.post2.mjs +73 -0
- package/.output/server/chunks/routes/api/index.post2.mjs.map +1 -0
- package/.output/server/chunks/routes/api/index.post3.mjs +64 -0
- package/.output/server/chunks/routes/api/index.post3.mjs.map +1 -0
- package/.output/server/chunks/routes/api/issues/_id/_column/log.get.mjs +90 -0
- package/.output/server/chunks/routes/api/issues/_id/_column/log.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/issues/_id/ancestors.get.mjs +57 -0
- package/.output/server/chunks/routes/api/issues/_id/ancestors.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/issues/_id/archive.delete.mjs +67 -0
- package/.output/server/chunks/routes/api/issues/_id/archive.delete.mjs.map +1 -0
- package/.output/server/chunks/routes/api/issues/_id/attachments/_attachmentId_.delete.mjs +75 -0
- package/.output/server/chunks/routes/api/issues/_id/attachments/_attachmentId_.delete.mjs.map +1 -0
- package/.output/server/chunks/routes/api/issues/_id/attachments/_attachmentId_.get.mjs +73 -0
- package/.output/server/chunks/routes/api/issues/_id/attachments/_attachmentId_.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/issues/_id/attachments.get.mjs +51 -0
- package/.output/server/chunks/routes/api/issues/_id/attachments.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/issues/_id/attachments.post.mjs +103 -0
- package/.output/server/chunks/routes/api/issues/_id/attachments.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/issues/_id/children.get.mjs +57 -0
- package/.output/server/chunks/routes/api/issues/_id/children.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/issues/_id/comments.get.mjs +50 -0
- package/.output/server/chunks/routes/api/issues/_id/comments.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/issues/_id/comments.post.mjs +66 -0
- package/.output/server/chunks/routes/api/issues/_id/comments.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/issues/_id/full-history.get.mjs +79 -0
- package/.output/server/chunks/routes/api/issues/_id/full-history.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/issues/_id/full-terminal.get.mjs +88 -0
- package/.output/server/chunks/routes/api/issues/_id/full-terminal.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/issues/_id/history/_sessionId/log.get.mjs +84 -0
- package/.output/server/chunks/routes/api/issues/_id/history/_sessionId/log.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/issues/_id/history/_sessionId/prompt.get.mjs +57 -0
- package/.output/server/chunks/routes/api/issues/_id/history/_sessionId/prompt.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/issues/_id/history.get.mjs +68 -0
- package/.output/server/chunks/routes/api/issues/_id/history.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/issues/_id/log.get.mjs +75 -0
- package/.output/server/chunks/routes/api/issues/_id/log.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/issues/_id/move.post.mjs +87 -0
- package/.output/server/chunks/routes/api/issues/_id/move.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/issues/_id/next.post.mjs +78 -0
- package/.output/server/chunks/routes/api/issues/_id/next.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/issues/_id_.get.mjs +63 -0
- package/.output/server/chunks/routes/api/issues/_id_.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/issues/_id_.patch.mjs +70 -0
- package/.output/server/chunks/routes/api/issues/_id_.patch.mjs.map +1 -0
- package/.output/server/chunks/routes/api/issues/actionable.get.mjs +60 -0
- package/.output/server/chunks/routes/api/issues/actionable.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/issues/autocomplete.post.mjs +110 -0
- package/.output/server/chunks/routes/api/issues/autocomplete.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/issues/graph.get.mjs +69 -0
- package/.output/server/chunks/routes/api/issues/graph.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/pipelines/_name/activate.put.mjs +59 -0
- package/.output/server/chunks/routes/api/pipelines/_name/activate.put.mjs.map +1 -0
- package/.output/server/chunks/routes/api/pipelines/_name/versions/_version/activate.put.mjs +58 -0
- package/.output/server/chunks/routes/api/pipelines/_name/versions/_version/activate.put.mjs.map +1 -0
- package/.output/server/chunks/routes/api/pipelines/_name/versions/_version/finalize.post.mjs +69 -0
- package/.output/server/chunks/routes/api/pipelines/_name/versions/_version/finalize.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/pipelines/_name/versions/_version_.delete.mjs +58 -0
- package/.output/server/chunks/routes/api/pipelines/_name/versions/_version_.delete.mjs.map +1 -0
- package/.output/server/chunks/routes/api/pipelines/_name/versions/_version_.get.mjs +68 -0
- package/.output/server/chunks/routes/api/pipelines/_name/versions/_version_.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/pipelines/_name/versions/_version_.put.mjs +70 -0
- package/.output/server/chunks/routes/api/pipelines/_name/versions/_version_.put.mjs.map +1 -0
- package/.output/server/chunks/routes/api/pipelines/_name/versions.get.mjs +49 -0
- package/.output/server/chunks/routes/api/pipelines/_name/versions.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/pipelines/_name/versions.post.mjs +61 -0
- package/.output/server/chunks/routes/api/pipelines/_name/versions.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/pipelines/_name_.delete.mjs +54 -0
- package/.output/server/chunks/routes/api/pipelines/_name_.delete.mjs.map +1 -0
- package/.output/server/chunks/routes/api/pipelines/_name_.get.mjs +63 -0
- package/.output/server/chunks/routes/api/pipelines/_name_.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/pipelines/_name_.put.mjs +78 -0
- package/.output/server/chunks/routes/api/pipelines/_name_.put.mjs.map +1 -0
- package/.output/server/chunks/routes/api/stats.get.mjs +39 -0
- package/.output/server/chunks/routes/api/stats.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/status.get.mjs +38 -0
- package/.output/server/chunks/routes/api/status.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workflow/health.get.mjs +40 -0
- package/.output/server/chunks/routes/api/workflow/health.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/ws/status.get.mjs +38 -0
- package/.output/server/chunks/routes/api/ws/status.get.mjs.map +1 -0
- package/.output/server/chunks/routes/renderer.mjs +399 -0
- package/.output/server/chunks/routes/renderer.mjs.map +1 -0
- package/.output/server/chunks/virtual/_virtual_spa-template.mjs +4 -0
- package/.output/server/chunks/virtual/_virtual_spa-template.mjs.map +1 -0
- package/.output/server/index.mjs +28 -0
- package/.output/server/index.mjs.map +1 -0
- package/.output/server/node_modules/.prisma/client/default.js +5 -0
- package/.output/server/node_modules/.prisma/client/index.js +224 -0
- package/.output/server/node_modules/.prisma/client/package.json +144 -0
- package/.output/server/node_modules/.prisma/client/query_compiler_bg.js +2 -0
- package/.output/server/node_modules/.prisma/client/query_compiler_bg.wasm-base64.js +2 -0
- package/.output/server/node_modules/.prisma/package.json +4 -0
- package/.output/server/node_modules/@babel/parser/lib/index.js +14662 -0
- package/.output/server/node_modules/@babel/parser/package.json +50 -0
- package/.output/server/node_modules/@intlify/core/dist/core.mjs +31 -0
- package/.output/server/node_modules/@intlify/core/package.json +82 -0
- package/.output/server/node_modules/@intlify/core-base/dist/core-base.mjs +1886 -0
- package/.output/server/node_modules/@intlify/core-base/package.json +80 -0
- package/.output/server/node_modules/@intlify/h3/dist/index.mjs +65 -0
- package/.output/server/node_modules/@intlify/h3/package.json +122 -0
- package/.output/server/node_modules/@intlify/message-compiler/dist/message-compiler.mjs +1530 -0
- package/.output/server/node_modules/@intlify/message-compiler/package.json +79 -0
- package/.output/server/node_modules/@intlify/shared/dist/shared.mjs +281 -0
- package/.output/server/node_modules/@intlify/shared/package.json +69 -0
- package/.output/server/node_modules/@intlify/utils/dist/h3.mjs +89 -0
- package/.output/server/node_modules/@intlify/utils/dist/shared/utils.9f8159f5.mjs +108 -0
- package/.output/server/node_modules/@intlify/utils/package.json +129 -0
- package/.output/server/node_modules/@prisma/adapter-better-sqlite3/dist/index.mjs +619 -0
- package/.output/server/node_modules/@prisma/adapter-better-sqlite3/package.json +45 -0
- package/.output/server/node_modules/@prisma/client/default.js +3 -0
- package/.output/server/node_modules/@prisma/client/package.json +281 -0
- package/.output/server/node_modules/@prisma/client/runtime/client.js +82 -0
- package/.output/server/node_modules/@prisma/client-runtime-utils/dist/index.js +2552 -0
- package/.output/server/node_modules/@prisma/client-runtime-utils/package.json +39 -0
- package/.output/server/node_modules/@prisma/debug/dist/index.mjs +213 -0
- package/.output/server/node_modules/@prisma/debug/package.json +47 -0
- package/.output/server/node_modules/@prisma/driver-adapter-utils/dist/index.mjs +245 -0
- package/.output/server/node_modules/@prisma/driver-adapter-utils/package.json +40 -0
- package/.output/server/node_modules/@vue/compiler-core/dist/compiler-core.cjs.prod.js +6763 -0
- package/.output/server/node_modules/@vue/compiler-core/package.json +58 -0
- package/.output/server/node_modules/@vue/compiler-dom/dist/compiler-dom.cjs.prod.js +689 -0
- package/.output/server/node_modules/@vue/compiler-dom/package.json +57 -0
- package/.output/server/node_modules/@vue/compiler-ssr/dist/compiler-ssr.cjs.js +1413 -0
- package/.output/server/node_modules/@vue/compiler-ssr/package.json +34 -0
- package/.output/server/node_modules/@vue/devtools-api/lib/cjs/api/api.js +2 -0
- package/.output/server/node_modules/@vue/devtools-api/lib/cjs/api/app.js +2 -0
- package/.output/server/node_modules/@vue/devtools-api/lib/cjs/api/component.js +2 -0
- package/.output/server/node_modules/@vue/devtools-api/lib/cjs/api/context.js +2 -0
- package/.output/server/node_modules/@vue/devtools-api/lib/cjs/api/hooks.js +2 -0
- package/.output/server/node_modules/@vue/devtools-api/lib/cjs/api/index.js +22 -0
- package/.output/server/node_modules/@vue/devtools-api/lib/cjs/api/util.js +2 -0
- package/.output/server/node_modules/@vue/devtools-api/lib/cjs/const.js +5 -0
- package/.output/server/node_modules/@vue/devtools-api/lib/cjs/env.js +17 -0
- package/.output/server/node_modules/@vue/devtools-api/lib/cjs/index.js +45 -0
- package/.output/server/node_modules/@vue/devtools-api/lib/cjs/plugin.js +2 -0
- package/.output/server/node_modules/@vue/devtools-api/lib/cjs/proxy.js +111 -0
- package/.output/server/node_modules/@vue/devtools-api/lib/cjs/time.js +28 -0
- package/.output/server/node_modules/@vue/devtools-api/package.json +37 -0
- package/.output/server/node_modules/@vue/reactivity/dist/reactivity.cjs.prod.js +1853 -0
- package/.output/server/node_modules/@vue/reactivity/package.json +55 -0
- package/.output/server/node_modules/@vue/runtime-core/dist/runtime-core.cjs.prod.js +6770 -0
- package/.output/server/node_modules/@vue/runtime-core/package.json +52 -0
- package/.output/server/node_modules/@vue/runtime-dom/dist/runtime-dom.cjs.prod.js +1732 -0
- package/.output/server/node_modules/@vue/runtime-dom/package.json +60 -0
- package/.output/server/node_modules/@vue/server-renderer/dist/server-renderer.cjs.prod.js +879 -0
- package/.output/server/node_modules/@vue/server-renderer/package.json +55 -0
- package/.output/server/node_modules/@vue/shared/dist/shared.cjs.prod.js +604 -0
- package/.output/server/node_modules/@vue/shared/package.json +47 -0
- package/.output/server/node_modules/better-sqlite3/build/Release/better_sqlite3.node +0 -0
- package/.output/server/node_modules/better-sqlite3/lib/database.js +90 -0
- package/.output/server/node_modules/better-sqlite3/lib/index.js +3 -0
- package/.output/server/node_modules/better-sqlite3/lib/methods/aggregate.js +43 -0
- package/.output/server/node_modules/better-sqlite3/lib/methods/backup.js +67 -0
- package/.output/server/node_modules/better-sqlite3/lib/methods/function.js +31 -0
- package/.output/server/node_modules/better-sqlite3/lib/methods/inspect.js +7 -0
- package/.output/server/node_modules/better-sqlite3/lib/methods/pragma.js +12 -0
- package/.output/server/node_modules/better-sqlite3/lib/methods/serialize.js +16 -0
- package/.output/server/node_modules/better-sqlite3/lib/methods/table.js +189 -0
- package/.output/server/node_modules/better-sqlite3/lib/methods/transaction.js +78 -0
- package/.output/server/node_modules/better-sqlite3/lib/methods/wrappers.js +54 -0
- package/.output/server/node_modules/better-sqlite3/lib/sqlite-error.js +20 -0
- package/.output/server/node_modules/better-sqlite3/lib/util.js +12 -0
- package/.output/server/node_modules/better-sqlite3/package.json +59 -0
- package/.output/server/node_modules/bindings/bindings.js +221 -0
- package/.output/server/node_modules/bindings/package.json +28 -0
- package/.output/server/node_modules/cookie-es/dist/index.mjs +262 -0
- package/.output/server/node_modules/cookie-es/package.json +46 -0
- package/.output/server/node_modules/d3/package.json +92 -0
- package/.output/server/node_modules/d3/src/index.js +30 -0
- package/.output/server/node_modules/d3-array/package.json +61 -0
- package/.output/server/node_modules/d3-array/src/array.js +4 -0
- package/.output/server/node_modules/d3-array/src/ascending.js +3 -0
- package/.output/server/node_modules/d3-array/src/bin.js +125 -0
- package/.output/server/node_modules/d3-array/src/bisect.js +9 -0
- package/.output/server/node_modules/d3-array/src/bisector.js +56 -0
- package/.output/server/node_modules/d3-array/src/blur.js +115 -0
- package/.output/server/node_modules/d3-array/src/constant.js +3 -0
- package/.output/server/node_modules/d3-array/src/count.js +18 -0
- package/.output/server/node_modules/d3-array/src/cross.js +33 -0
- package/.output/server/node_modules/d3-array/src/cumsum.js +6 -0
- package/.output/server/node_modules/d3-array/src/descending.js +7 -0
- package/.output/server/node_modules/d3-array/src/deviation.js +6 -0
- package/.output/server/node_modules/d3-array/src/difference.js +11 -0
- package/.output/server/node_modules/d3-array/src/disjoint.js +15 -0
- package/.output/server/node_modules/d3-array/src/every.js +10 -0
- package/.output/server/node_modules/d3-array/src/extent.js +29 -0
- package/.output/server/node_modules/d3-array/src/filter.js +11 -0
- package/.output/server/node_modules/d3-array/src/fsum.js +69 -0
- package/.output/server/node_modules/d3-array/src/greatest.js +29 -0
- package/.output/server/node_modules/d3-array/src/greatestIndex.js +19 -0
- package/.output/server/node_modules/d3-array/src/group.js +65 -0
- package/.output/server/node_modules/d3-array/src/groupSort.js +10 -0
- package/.output/server/node_modules/d3-array/src/identity.js +3 -0
- package/.output/server/node_modules/d3-array/src/index.js +57 -0
- package/.output/server/node_modules/d3-array/src/intersection.js +19 -0
- package/.output/server/node_modules/d3-array/src/least.js +29 -0
- package/.output/server/node_modules/d3-array/src/leastIndex.js +19 -0
- package/.output/server/node_modules/d3-array/src/map.js +5 -0
- package/.output/server/node_modules/d3-array/src/max.js +20 -0
- package/.output/server/node_modules/d3-array/src/maxIndex.js +22 -0
- package/.output/server/node_modules/d3-array/src/mean.js +19 -0
- package/.output/server/node_modules/d3-array/src/median.js +9 -0
- package/.output/server/node_modules/d3-array/src/merge.js +9 -0
- package/.output/server/node_modules/d3-array/src/min.js +20 -0
- package/.output/server/node_modules/d3-array/src/minIndex.js +22 -0
- package/.output/server/node_modules/d3-array/src/mode.js +28 -0
- package/.output/server/node_modules/d3-array/src/nice.js +18 -0
- package/.output/server/node_modules/d3-array/src/number.js +20 -0
- package/.output/server/node_modules/d3-array/src/pairs.js +15 -0
- package/.output/server/node_modules/d3-array/src/permute.js +3 -0
- package/.output/server/node_modules/d3-array/src/quantile.js +47 -0
- package/.output/server/node_modules/d3-array/src/quickselect.js +53 -0
- package/.output/server/node_modules/d3-array/src/range.js +13 -0
- package/.output/server/node_modules/d3-array/src/rank.js +24 -0
- package/.output/server/node_modules/d3-array/src/reduce.js +14 -0
- package/.output/server/node_modules/d3-array/src/reverse.js +4 -0
- package/.output/server/node_modules/d3-array/src/scan.js +6 -0
- package/.output/server/node_modules/d3-array/src/shuffle.js +13 -0
- package/.output/server/node_modules/d3-array/src/some.js +10 -0
- package/.output/server/node_modules/d3-array/src/sort.js +39 -0
- package/.output/server/node_modules/d3-array/src/subset.js +5 -0
- package/.output/server/node_modules/d3-array/src/sum.js +18 -0
- package/.output/server/node_modules/d3-array/src/superset.js +19 -0
- package/.output/server/node_modules/d3-array/src/threshold/freedmanDiaconis.js +7 -0
- package/.output/server/node_modules/d3-array/src/threshold/scott.js +7 -0
- package/.output/server/node_modules/d3-array/src/threshold/sturges.js +5 -0
- package/.output/server/node_modules/d3-array/src/ticks.js +55 -0
- package/.output/server/node_modules/d3-array/src/transpose.js +15 -0
- package/.output/server/node_modules/d3-array/src/union.js +11 -0
- package/.output/server/node_modules/d3-array/src/variance.js +25 -0
- package/.output/server/node_modules/d3-array/src/zip.js +5 -0
- package/.output/server/node_modules/d3-axis/package.json +54 -0
- package/.output/server/node_modules/d3-axis/src/axis.js +174 -0
- package/.output/server/node_modules/d3-axis/src/identity.js +3 -0
- package/.output/server/node_modules/d3-axis/src/index.js +6 -0
- package/.output/server/node_modules/d3-brush/package.json +55 -0
- package/.output/server/node_modules/d3-brush/src/brush.js +621 -0
- package/.output/server/node_modules/d3-brush/src/constant.js +1 -0
- package/.output/server/node_modules/d3-brush/src/event.js +16 -0
- package/.output/server/node_modules/d3-brush/src/index.js +6 -0
- package/.output/server/node_modules/d3-brush/src/noevent.js +8 -0
- package/.output/server/node_modules/d3-chord/package.json +54 -0
- package/.output/server/node_modules/d3-chord/src/array.js +1 -0
- package/.output/server/node_modules/d3-chord/src/chord.js +122 -0
- package/.output/server/node_modules/d3-chord/src/constant.js +5 -0
- package/.output/server/node_modules/d3-chord/src/index.js +2 -0
- package/.output/server/node_modules/d3-chord/src/math.js +8 -0
- package/.output/server/node_modules/d3-chord/src/ribbon.js +134 -0
- package/.output/server/node_modules/d3-color/package.json +54 -0
- package/.output/server/node_modules/d3-color/src/color.js +396 -0
- package/.output/server/node_modules/d3-color/src/cubehelix.js +61 -0
- package/.output/server/node_modules/d3-color/src/define.js +10 -0
- package/.output/server/node_modules/d3-color/src/index.js +3 -0
- package/.output/server/node_modules/d3-color/src/lab.js +123 -0
- package/.output/server/node_modules/d3-color/src/math.js +2 -0
- package/.output/server/node_modules/d3-contour/package.json +66 -0
- package/.output/server/node_modules/d3-contour/src/area.js +5 -0
- package/.output/server/node_modules/d3-contour/src/array.js +3 -0
- package/.output/server/node_modules/d3-contour/src/ascending.js +3 -0
- package/.output/server/node_modules/d3-contour/src/constant.js +1 -0
- package/.output/server/node_modules/d3-contour/src/contains.js +27 -0
- package/.output/server/node_modules/d3-contour/src/contours.js +225 -0
- package/.output/server/node_modules/d3-contour/src/density.js +149 -0
- package/.output/server/node_modules/d3-contour/src/index.js +2 -0
- package/.output/server/node_modules/d3-contour/src/noop.js +1 -0
- package/.output/server/node_modules/d3-delaunay/package.json +62 -0
- package/.output/server/node_modules/d3-delaunay/src/delaunay.js +248 -0
- package/.output/server/node_modules/d3-delaunay/src/index.js +2 -0
- package/.output/server/node_modules/d3-delaunay/src/path.js +37 -0
- package/.output/server/node_modules/d3-delaunay/src/polygon.js +17 -0
- package/.output/server/node_modules/d3-delaunay/src/voronoi.js +332 -0
- package/.output/server/node_modules/d3-dispatch/package.json +50 -0
- package/.output/server/node_modules/d3-dispatch/src/dispatch.js +84 -0
- package/.output/server/node_modules/d3-dispatch/src/index.js +1 -0
- package/.output/server/node_modules/d3-drag/package.json +54 -0
- package/.output/server/node_modules/d3-drag/src/constant.js +1 -0
- package/.output/server/node_modules/d3-drag/src/drag.js +194 -0
- package/.output/server/node_modules/d3-drag/src/event.js +28 -0
- package/.output/server/node_modules/d3-drag/src/index.js +2 -0
- package/.output/server/node_modules/d3-drag/src/nodrag.js +28 -0
- package/.output/server/node_modules/d3-drag/src/noevent.js +13 -0
- package/.output/server/node_modules/d3-dsv/package.json +68 -0
- package/.output/server/node_modules/d3-dsv/src/autoType.js +20 -0
- package/.output/server/node_modules/d3-dsv/src/csv.js +11 -0
- package/.output/server/node_modules/d3-dsv/src/dsv.js +164 -0
- package/.output/server/node_modules/d3-dsv/src/index.js +4 -0
- package/.output/server/node_modules/d3-dsv/src/tsv.js +11 -0
- package/.output/server/node_modules/d3-ease/package.json +51 -0
- package/.output/server/node_modules/d3-ease/src/back.js +37 -0
- package/.output/server/node_modules/d3-ease/src/bounce.js +22 -0
- package/.output/server/node_modules/d3-ease/src/circle.js +11 -0
- package/.output/server/node_modules/d3-ease/src/cubic.js +11 -0
- package/.output/server/node_modules/d3-ease/src/elastic.js +46 -0
- package/.output/server/node_modules/d3-ease/src/exp.js +13 -0
- package/.output/server/node_modules/d3-ease/src/index.js +66 -0
- package/.output/server/node_modules/d3-ease/src/linear.js +1 -0
- package/.output/server/node_modules/d3-ease/src/math.js +4 -0
- package/.output/server/node_modules/d3-ease/src/poly.js +37 -0
- package/.output/server/node_modules/d3-ease/src/quad.js +11 -0
- package/.output/server/node_modules/d3-ease/src/sin.js +14 -0
- package/.output/server/node_modules/d3-fetch/package.json +53 -0
- package/.output/server/node_modules/d3-fetch/src/blob.js +8 -0
- package/.output/server/node_modules/d3-fetch/src/buffer.js +8 -0
- package/.output/server/node_modules/d3-fetch/src/dsv.js +22 -0
- package/.output/server/node_modules/d3-fetch/src/image.js +9 -0
- package/.output/server/node_modules/d3-fetch/src/index.js +7 -0
- package/.output/server/node_modules/d3-fetch/src/json.js +9 -0
- package/.output/server/node_modules/d3-fetch/src/text.js +8 -0
- package/.output/server/node_modules/d3-fetch/src/xml.js +12 -0
- package/.output/server/node_modules/d3-force/package.json +58 -0
- package/.output/server/node_modules/d3-force/src/center.js +40 -0
- package/.output/server/node_modules/d3-force/src/collide.js +100 -0
- package/.output/server/node_modules/d3-force/src/constant.js +5 -0
- package/.output/server/node_modules/d3-force/src/index.js +8 -0
- package/.output/server/node_modules/d3-force/src/jiggle.js +3 -0
- package/.output/server/node_modules/d3-force/src/lcg.js +9 -0
- package/.output/server/node_modules/d3-force/src/link.js +117 -0
- package/.output/server/node_modules/d3-force/src/manyBody.js +116 -0
- package/.output/server/node_modules/d3-force/src/radial.js +57 -0
- package/.output/server/node_modules/d3-force/src/simulation.js +156 -0
- package/.output/server/node_modules/d3-force/src/x.js +41 -0
- package/.output/server/node_modules/d3-force/src/y.js +41 -0
- package/.output/server/node_modules/d3-format/package.json +55 -0
- package/.output/server/node_modules/d3-format/src/defaultLocale.js +18 -0
- package/.output/server/node_modules/d3-format/src/exponent.js +5 -0
- package/.output/server/node_modules/d3-format/src/formatDecimal.js +20 -0
- package/.output/server/node_modules/d3-format/src/formatGroup.js +18 -0
- package/.output/server/node_modules/d3-format/src/formatNumerals.js +7 -0
- package/.output/server/node_modules/d3-format/src/formatPrefixAuto.js +16 -0
- package/.output/server/node_modules/d3-format/src/formatRounded.js +11 -0
- package/.output/server/node_modules/d3-format/src/formatSpecifier.js +47 -0
- package/.output/server/node_modules/d3-format/src/formatTrim.js +11 -0
- package/.output/server/node_modules/d3-format/src/formatTypes.js +19 -0
- package/.output/server/node_modules/d3-format/src/identity.js +3 -0
- package/.output/server/node_modules/d3-format/src/index.js +6 -0
- package/.output/server/node_modules/d3-format/src/locale.js +148 -0
- package/.output/server/node_modules/d3-format/src/precisionFixed.js +5 -0
- package/.output/server/node_modules/d3-format/src/precisionPrefix.js +5 -0
- package/.output/server/node_modules/d3-format/src/precisionRound.js +6 -0
- package/.output/server/node_modules/d3-geo/package.json +59 -0
- package/.output/server/node_modules/d3-geo/src/area.js +76 -0
- package/.output/server/node_modules/d3-geo/src/bounds.js +179 -0
- package/.output/server/node_modules/d3-geo/src/cartesian.js +33 -0
- package/.output/server/node_modules/d3-geo/src/centroid.js +143 -0
- package/.output/server/node_modules/d3-geo/src/circle.js +72 -0
- package/.output/server/node_modules/d3-geo/src/clip/antimeridian.js +92 -0
- package/.output/server/node_modules/d3-geo/src/clip/buffer.js +24 -0
- package/.output/server/node_modules/d3-geo/src/clip/circle.js +177 -0
- package/.output/server/node_modules/d3-geo/src/clip/extent.js +20 -0
- package/.output/server/node_modules/d3-geo/src/clip/index.js +131 -0
- package/.output/server/node_modules/d3-geo/src/clip/line.js +59 -0
- package/.output/server/node_modules/d3-geo/src/clip/rectangle.js +168 -0
- package/.output/server/node_modules/d3-geo/src/clip/rejoin.js +103 -0
- package/.output/server/node_modules/d3-geo/src/compose.js +12 -0
- package/.output/server/node_modules/d3-geo/src/constant.js +5 -0
- package/.output/server/node_modules/d3-geo/src/contains.js +97 -0
- package/.output/server/node_modules/d3-geo/src/distance.js +10 -0
- package/.output/server/node_modules/d3-geo/src/graticule.js +105 -0
- package/.output/server/node_modules/d3-geo/src/identity.js +1 -0
- package/.output/server/node_modules/d3-geo/src/index.js +34 -0
- package/.output/server/node_modules/d3-geo/src/interpolate.js +36 -0
- package/.output/server/node_modules/d3-geo/src/length.js +53 -0
- package/.output/server/node_modules/d3-geo/src/math.js +36 -0
- package/.output/server/node_modules/d3-geo/src/noop.js +1 -0
- package/.output/server/node_modules/d3-geo/src/path/area.js +50 -0
- package/.output/server/node_modules/d3-geo/src/path/bounds.js +28 -0
- package/.output/server/node_modules/d3-geo/src/path/centroid.js +100 -0
- package/.output/server/node_modules/d3-geo/src/path/context.js +45 -0
- package/.output/server/node_modules/d3-geo/src/path/index.js +76 -0
- package/.output/server/node_modules/d3-geo/src/path/measure.js +45 -0
- package/.output/server/node_modules/d3-geo/src/path/string.js +86 -0
- package/.output/server/node_modules/d3-geo/src/pointEqual.js +5 -0
- package/.output/server/node_modules/d3-geo/src/polygonContains.js +74 -0
- package/.output/server/node_modules/d3-geo/src/projection/albers.js +10 -0
- package/.output/server/node_modules/d3-geo/src/projection/albersUsa.js +111 -0
- package/.output/server/node_modules/d3-geo/src/projection/azimuthal.js +27 -0
- package/.output/server/node_modules/d3-geo/src/projection/azimuthalEqualArea.js +17 -0
- package/.output/server/node_modules/d3-geo/src/projection/azimuthalEquidistant.js +17 -0
- package/.output/server/node_modules/d3-geo/src/projection/conic.js +15 -0
- package/.output/server/node_modules/d3-geo/src/projection/conicConformal.js +38 -0
- package/.output/server/node_modules/d3-geo/src/projection/conicEqualArea.js +33 -0
- package/.output/server/node_modules/d3-geo/src/projection/conicEquidistant.js +32 -0
- package/.output/server/node_modules/d3-geo/src/projection/cylindricalEqualArea.js +15 -0
- package/.output/server/node_modules/d3-geo/src/projection/equalEarth.js +36 -0
- package/.output/server/node_modules/d3-geo/src/projection/equirectangular.js +12 -0
- package/.output/server/node_modules/d3-geo/src/projection/fit.js +47 -0
- package/.output/server/node_modules/d3-geo/src/projection/gnomonic.js +16 -0
- package/.output/server/node_modules/d3-geo/src/projection/identity.js +85 -0
- package/.output/server/node_modules/d3-geo/src/projection/index.js +177 -0
- package/.output/server/node_modules/d3-geo/src/projection/mercator.js +52 -0
- package/.output/server/node_modules/d3-geo/src/projection/naturalEarth1.js +28 -0
- package/.output/server/node_modules/d3-geo/src/projection/orthographic.js +15 -0
- package/.output/server/node_modules/d3-geo/src/projection/resample.js +102 -0
- package/.output/server/node_modules/d3-geo/src/projection/stereographic.js +18 -0
- package/.output/server/node_modules/d3-geo/src/projection/transverseMercator.js +27 -0
- package/.output/server/node_modules/d3-geo/src/rotation.js +79 -0
- package/.output/server/node_modules/d3-geo/src/stream.js +69 -0
- package/.output/server/node_modules/d3-geo/src/transform.js +26 -0
- package/.output/server/node_modules/d3-hierarchy/package.json +56 -0
- package/.output/server/node_modules/d3-hierarchy/src/accessors.js +8 -0
- package/.output/server/node_modules/d3-hierarchy/src/array.js +20 -0
- package/.output/server/node_modules/d3-hierarchy/src/cluster.js +84 -0
- package/.output/server/node_modules/d3-hierarchy/src/constant.js +9 -0
- package/.output/server/node_modules/d3-hierarchy/src/hierarchy/ancestors.js +7 -0
- package/.output/server/node_modules/d3-hierarchy/src/hierarchy/count.js +12 -0
- package/.output/server/node_modules/d3-hierarchy/src/hierarchy/descendants.js +3 -0
- package/.output/server/node_modules/d3-hierarchy/src/hierarchy/each.js +7 -0
- package/.output/server/node_modules/d3-hierarchy/src/hierarchy/eachAfter.js +15 -0
- package/.output/server/node_modules/d3-hierarchy/src/hierarchy/eachBefore.js +12 -0
- package/.output/server/node_modules/d3-hierarchy/src/hierarchy/find.js +8 -0
- package/.output/server/node_modules/d3-hierarchy/src/hierarchy/index.js +91 -0
- package/.output/server/node_modules/d3-hierarchy/src/hierarchy/iterator.js +14 -0
- package/.output/server/node_modules/d3-hierarchy/src/hierarchy/leaves.js +9 -0
- package/.output/server/node_modules/d3-hierarchy/src/hierarchy/links.js +9 -0
- package/.output/server/node_modules/d3-hierarchy/src/hierarchy/path.js +30 -0
- package/.output/server/node_modules/d3-hierarchy/src/hierarchy/sort.js +7 -0
- package/.output/server/node_modules/d3-hierarchy/src/hierarchy/sum.js +9 -0
- package/.output/server/node_modules/d3-hierarchy/src/index.js +15 -0
- package/.output/server/node_modules/d3-hierarchy/src/lcg.js +9 -0
- package/.output/server/node_modules/d3-hierarchy/src/pack/enclose.js +123 -0
- package/.output/server/node_modules/d3-hierarchy/src/pack/index.js +81 -0
- package/.output/server/node_modules/d3-hierarchy/src/pack/siblings.js +120 -0
- package/.output/server/node_modules/d3-hierarchy/src/partition.js +52 -0
- package/.output/server/node_modules/d3-hierarchy/src/stratify.js +145 -0
- package/.output/server/node_modules/d3-hierarchy/src/tree.js +237 -0
- package/.output/server/node_modules/d3-hierarchy/src/treemap/binary.js +46 -0
- package/.output/server/node_modules/d3-hierarchy/src/treemap/dice.js +12 -0
- package/.output/server/node_modules/d3-hierarchy/src/treemap/index.js +94 -0
- package/.output/server/node_modules/d3-hierarchy/src/treemap/resquarify.js +36 -0
- package/.output/server/node_modules/d3-hierarchy/src/treemap/round.js +6 -0
- package/.output/server/node_modules/d3-hierarchy/src/treemap/slice.js +12 -0
- package/.output/server/node_modules/d3-hierarchy/src/treemap/sliceDice.js +6 -0
- package/.output/server/node_modules/d3-hierarchy/src/treemap/squarify.js +66 -0
- package/.output/server/node_modules/d3-interpolate/package.json +53 -0
- package/.output/server/node_modules/d3-interpolate/src/array.js +22 -0
- package/.output/server/node_modules/d3-interpolate/src/basis.js +19 -0
- package/.output/server/node_modules/d3-interpolate/src/basisClosed.js +13 -0
- package/.output/server/node_modules/d3-interpolate/src/color.js +29 -0
- package/.output/server/node_modules/d3-interpolate/src/constant.js +1 -0
- package/.output/server/node_modules/d3-interpolate/src/cubehelix.js +29 -0
- package/.output/server/node_modules/d3-interpolate/src/date.js +6 -0
- package/.output/server/node_modules/d3-interpolate/src/discrete.js +6 -0
- package/.output/server/node_modules/d3-interpolate/src/hcl.js +21 -0
- package/.output/server/node_modules/d3-interpolate/src/hsl.js +21 -0
- package/.output/server/node_modules/d3-interpolate/src/hue.js +9 -0
- package/.output/server/node_modules/d3-interpolate/src/index.js +21 -0
- package/.output/server/node_modules/d3-interpolate/src/lab.js +16 -0
- package/.output/server/node_modules/d3-interpolate/src/number.js +5 -0
- package/.output/server/node_modules/d3-interpolate/src/numberArray.js +14 -0
- package/.output/server/node_modules/d3-interpolate/src/object.js +23 -0
- package/.output/server/node_modules/d3-interpolate/src/piecewise.js +11 -0
- package/.output/server/node_modules/d3-interpolate/src/quantize.js +5 -0
- package/.output/server/node_modules/d3-interpolate/src/rgb.js +55 -0
- package/.output/server/node_modules/d3-interpolate/src/round.js +5 -0
- package/.output/server/node_modules/d3-interpolate/src/string.js +64 -0
- package/.output/server/node_modules/d3-interpolate/src/transform/decompose.js +26 -0
- package/.output/server/node_modules/d3-interpolate/src/transform/index.js +63 -0
- package/.output/server/node_modules/d3-interpolate/src/transform/parse.js +18 -0
- package/.output/server/node_modules/d3-interpolate/src/value.js +22 -0
- package/.output/server/node_modules/d3-interpolate/src/zoom.js +71 -0
- package/.output/server/node_modules/d3-path/package.json +54 -0
- package/.output/server/node_modules/d3-path/src/index.js +1 -0
- package/.output/server/node_modules/d3-path/src/path.js +156 -0
- package/.output/server/node_modules/d3-polygon/package.json +51 -0
- package/.output/server/node_modules/d3-polygon/src/area.js +15 -0
- package/.output/server/node_modules/d3-polygon/src/centroid.js +20 -0
- package/.output/server/node_modules/d3-polygon/src/contains.js +16 -0
- package/.output/server/node_modules/d3-polygon/src/cross.js +7 -0
- package/.output/server/node_modules/d3-polygon/src/hull.js +49 -0
- package/.output/server/node_modules/d3-polygon/src/index.js +5 -0
- package/.output/server/node_modules/d3-polygon/src/length.js +23 -0
- package/.output/server/node_modules/d3-quadtree/package.json +49 -0
- package/.output/server/node_modules/d3-quadtree/src/add.js +84 -0
- package/.output/server/node_modules/d3-quadtree/src/cover.js +43 -0
- package/.output/server/node_modules/d3-quadtree/src/data.js +7 -0
- package/.output/server/node_modules/d3-quadtree/src/extent.js +5 -0
- package/.output/server/node_modules/d3-quadtree/src/find.js +70 -0
- package/.output/server/node_modules/d3-quadtree/src/index.js +1 -0
- package/.output/server/node_modules/d3-quadtree/src/quad.js +7 -0
- package/.output/server/node_modules/d3-quadtree/src/quadtree.js +73 -0
- package/.output/server/node_modules/d3-quadtree/src/remove.js +62 -0
- package/.output/server/node_modules/d3-quadtree/src/root.js +3 -0
- package/.output/server/node_modules/d3-quadtree/src/size.js +7 -0
- package/.output/server/node_modules/d3-quadtree/src/visit.js +16 -0
- package/.output/server/node_modules/d3-quadtree/src/visitAfter.js +21 -0
- package/.output/server/node_modules/d3-quadtree/src/x.js +7 -0
- package/.output/server/node_modules/d3-quadtree/src/y.js +7 -0
- package/.output/server/node_modules/d3-random/package.json +51 -0
- package/.output/server/node_modules/d3-random/src/bates.js +19 -0
- package/.output/server/node_modules/d3-random/src/bernoulli.js +14 -0
- package/.output/server/node_modules/d3-random/src/beta.js +19 -0
- package/.output/server/node_modules/d3-random/src/binomial.js +38 -0
- package/.output/server/node_modules/d3-random/src/cauchy.js +15 -0
- package/.output/server/node_modules/d3-random/src/defaultSource.js +1 -0
- package/.output/server/node_modules/d3-random/src/exponential.js +13 -0
- package/.output/server/node_modules/d3-random/src/gamma.js +34 -0
- package/.output/server/node_modules/d3-random/src/geometric.js +17 -0
- package/.output/server/node_modules/d3-random/src/index.js +18 -0
- package/.output/server/node_modules/d3-random/src/int.js +16 -0
- package/.output/server/node_modules/d3-random/src/irwinHall.js +15 -0
- package/.output/server/node_modules/d3-random/src/lcg.js +9 -0
- package/.output/server/node_modules/d3-random/src/logNormal.js +17 -0
- package/.output/server/node_modules/d3-random/src/logistic.js +16 -0
- package/.output/server/node_modules/d3-random/src/normal.js +28 -0
- package/.output/server/node_modules/d3-random/src/pareto.js +15 -0
- package/.output/server/node_modules/d3-random/src/poisson.js +27 -0
- package/.output/server/node_modules/d3-random/src/uniform.js +17 -0
- package/.output/server/node_modules/d3-random/src/weibull.js +22 -0
- package/.output/server/node_modules/d3-scale/package.json +57 -0
- package/.output/server/node_modules/d3-scale/src/band.js +101 -0
- package/.output/server/node_modules/d3-scale/src/constant.js +5 -0
- package/.output/server/node_modules/d3-scale/src/continuous.js +125 -0
- package/.output/server/node_modules/d3-scale/src/diverging.js +104 -0
- package/.output/server/node_modules/d3-scale/src/identity.js +28 -0
- package/.output/server/node_modules/d3-scale/src/index.js +78 -0
- package/.output/server/node_modules/d3-scale/src/init.js +26 -0
- package/.output/server/node_modules/d3-scale/src/linear.js +70 -0
- package/.output/server/node_modules/d3-scale/src/log.js +140 -0
- package/.output/server/node_modules/d3-scale/src/nice.js +18 -0
- package/.output/server/node_modules/d3-scale/src/number.js +3 -0
- package/.output/server/node_modules/d3-scale/src/ordinal.js +46 -0
- package/.output/server/node_modules/d3-scale/src/pow.js +50 -0
- package/.output/server/node_modules/d3-scale/src/quantile.js +57 -0
- package/.output/server/node_modules/d3-scale/src/quantize.js +56 -0
- package/.output/server/node_modules/d3-scale/src/radial.js +63 -0
- package/.output/server/node_modules/d3-scale/src/sequential.js +107 -0
- package/.output/server/node_modules/d3-scale/src/sequentialQuantile.js +38 -0
- package/.output/server/node_modules/d3-scale/src/symlog.js +35 -0
- package/.output/server/node_modules/d3-scale/src/threshold.js +39 -0
- package/.output/server/node_modules/d3-scale/src/tickFormat.js +29 -0
- package/.output/server/node_modules/d3-scale/src/time.js +71 -0
- package/.output/server/node_modules/d3-scale/src/utcTime.js +8 -0
- package/.output/server/node_modules/d3-scale-chromatic/package.json +55 -0
- package/.output/server/node_modules/d3-scale-chromatic/src/categorical/Accent.js +3 -0
- package/.output/server/node_modules/d3-scale-chromatic/src/categorical/Dark2.js +3 -0
- package/.output/server/node_modules/d3-scale-chromatic/src/categorical/Paired.js +3 -0
- package/.output/server/node_modules/d3-scale-chromatic/src/categorical/Pastel1.js +3 -0
- package/.output/server/node_modules/d3-scale-chromatic/src/categorical/Pastel2.js +3 -0
- package/.output/server/node_modules/d3-scale-chromatic/src/categorical/Set1.js +3 -0
- package/.output/server/node_modules/d3-scale-chromatic/src/categorical/Set2.js +3 -0
- package/.output/server/node_modules/d3-scale-chromatic/src/categorical/Set3.js +3 -0
- package/.output/server/node_modules/d3-scale-chromatic/src/categorical/Tableau10.js +3 -0
- package/.output/server/node_modules/d3-scale-chromatic/src/categorical/category10.js +3 -0
- package/.output/server/node_modules/d3-scale-chromatic/src/categorical/observable10.js +3 -0
- package/.output/server/node_modules/d3-scale-chromatic/src/colors.js +5 -0
- package/.output/server/node_modules/d3-scale-chromatic/src/diverging/BrBG.js +16 -0
- package/.output/server/node_modules/d3-scale-chromatic/src/diverging/PRGn.js +16 -0
- package/.output/server/node_modules/d3-scale-chromatic/src/diverging/PiYG.js +16 -0
- package/.output/server/node_modules/d3-scale-chromatic/src/diverging/PuOr.js +16 -0
- package/.output/server/node_modules/d3-scale-chromatic/src/diverging/RdBu.js +16 -0
- package/.output/server/node_modules/d3-scale-chromatic/src/diverging/RdGy.js +16 -0
- package/.output/server/node_modules/d3-scale-chromatic/src/diverging/RdYlBu.js +16 -0
- package/.output/server/node_modules/d3-scale-chromatic/src/diverging/RdYlGn.js +16 -0
- package/.output/server/node_modules/d3-scale-chromatic/src/diverging/Spectral.js +16 -0
- package/.output/server/node_modules/d3-scale-chromatic/src/index.js +44 -0
- package/.output/server/node_modules/d3-scale-chromatic/src/ramp.js +3 -0
- package/.output/server/node_modules/d3-scale-chromatic/src/sequential-multi/BuGn.js +14 -0
- package/.output/server/node_modules/d3-scale-chromatic/src/sequential-multi/BuPu.js +14 -0
- package/.output/server/node_modules/d3-scale-chromatic/src/sequential-multi/GnBu.js +14 -0
- package/.output/server/node_modules/d3-scale-chromatic/src/sequential-multi/OrRd.js +14 -0
- package/.output/server/node_modules/d3-scale-chromatic/src/sequential-multi/PuBu.js +14 -0
- package/.output/server/node_modules/d3-scale-chromatic/src/sequential-multi/PuBuGn.js +14 -0
- package/.output/server/node_modules/d3-scale-chromatic/src/sequential-multi/PuRd.js +14 -0
- package/.output/server/node_modules/d3-scale-chromatic/src/sequential-multi/RdPu.js +14 -0
- package/.output/server/node_modules/d3-scale-chromatic/src/sequential-multi/YlGn.js +14 -0
- package/.output/server/node_modules/d3-scale-chromatic/src/sequential-multi/YlGnBu.js +14 -0
- package/.output/server/node_modules/d3-scale-chromatic/src/sequential-multi/YlOrBr.js +14 -0
- package/.output/server/node_modules/d3-scale-chromatic/src/sequential-multi/YlOrRd.js +14 -0
- package/.output/server/node_modules/d3-scale-chromatic/src/sequential-multi/cividis.js +8 -0
- package/.output/server/node_modules/d3-scale-chromatic/src/sequential-multi/cubehelix.js +4 -0
- package/.output/server/node_modules/d3-scale-chromatic/src/sequential-multi/rainbow.js +17 -0
- package/.output/server/node_modules/d3-scale-chromatic/src/sequential-multi/sinebow.js +14 -0
- package/.output/server/node_modules/d3-scale-chromatic/src/sequential-multi/turbo.js +8 -0
- package/.output/server/node_modules/d3-scale-chromatic/src/sequential-multi/viridis.js +16 -0
- package/.output/server/node_modules/d3-scale-chromatic/src/sequential-single/Blues.js +14 -0
- package/.output/server/node_modules/d3-scale-chromatic/src/sequential-single/Greens.js +14 -0
- package/.output/server/node_modules/d3-scale-chromatic/src/sequential-single/Greys.js +14 -0
- package/.output/server/node_modules/d3-scale-chromatic/src/sequential-single/Oranges.js +14 -0
- package/.output/server/node_modules/d3-scale-chromatic/src/sequential-single/Purples.js +14 -0
- package/.output/server/node_modules/d3-scale-chromatic/src/sequential-single/Reds.js +14 -0
- package/.output/server/node_modules/d3-selection/package.json +51 -0
- package/.output/server/node_modules/d3-selection/src/array.js +9 -0
- package/.output/server/node_modules/d3-selection/src/constant.js +5 -0
- package/.output/server/node_modules/d3-selection/src/create.js +6 -0
- package/.output/server/node_modules/d3-selection/src/creator.js +25 -0
- package/.output/server/node_modules/d3-selection/src/index.js +15 -0
- package/.output/server/node_modules/d3-selection/src/local.js +27 -0
- package/.output/server/node_modules/d3-selection/src/matcher.js +12 -0
- package/.output/server/node_modules/d3-selection/src/namespace.js +7 -0
- package/.output/server/node_modules/d3-selection/src/namespaces.js +9 -0
- package/.output/server/node_modules/d3-selection/src/pointer.js +20 -0
- package/.output/server/node_modules/d3-selection/src/pointers.js +11 -0
- package/.output/server/node_modules/d3-selection/src/select.js +7 -0
- package/.output/server/node_modules/d3-selection/src/selectAll.js +8 -0
- package/.output/server/node_modules/d3-selection/src/selection/append.js +8 -0
- package/.output/server/node_modules/d3-selection/src/selection/attr.js +57 -0
- package/.output/server/node_modules/d3-selection/src/selection/call.js +6 -0
- package/.output/server/node_modules/d3-selection/src/selection/classed.js +75 -0
- package/.output/server/node_modules/d3-selection/src/selection/clone.js +13 -0
- package/.output/server/node_modules/d3-selection/src/selection/data.js +128 -0
- package/.output/server/node_modules/d3-selection/src/selection/datum.js +5 -0
- package/.output/server/node_modules/d3-selection/src/selection/dispatch.js +34 -0
- package/.output/server/node_modules/d3-selection/src/selection/each.js +10 -0
- package/.output/server/node_modules/d3-selection/src/selection/empty.js +3 -0
- package/.output/server/node_modules/d3-selection/src/selection/enter.js +22 -0
- package/.output/server/node_modules/d3-selection/src/selection/exit.js +6 -0
- package/.output/server/node_modules/d3-selection/src/selection/filter.js +16 -0
- package/.output/server/node_modules/d3-selection/src/selection/html.js +25 -0
- package/.output/server/node_modules/d3-selection/src/selection/index.js +90 -0
- package/.output/server/node_modules/d3-selection/src/selection/insert.js +14 -0
- package/.output/server/node_modules/d3-selection/src/selection/iterator.js +7 -0
- package/.output/server/node_modules/d3-selection/src/selection/join.js +15 -0
- package/.output/server/node_modules/d3-selection/src/selection/lower.js +7 -0
- package/.output/server/node_modules/d3-selection/src/selection/merge.js +19 -0
- package/.output/server/node_modules/d3-selection/src/selection/node.js +11 -0
- package/.output/server/node_modules/d3-selection/src/selection/nodes.js +3 -0
- package/.output/server/node_modules/d3-selection/src/selection/on.js +67 -0
- package/.output/server/node_modules/d3-selection/src/selection/order.js +13 -0
- package/.output/server/node_modules/d3-selection/src/selection/property.js +28 -0
- package/.output/server/node_modules/d3-selection/src/selection/raise.js +7 -0
- package/.output/server/node_modules/d3-selection/src/selection/remove.js +8 -0
- package/.output/server/node_modules/d3-selection/src/selection/select.js +17 -0
- package/.output/server/node_modules/d3-selection/src/selection/selectAll.js +25 -0
- package/.output/server/node_modules/d3-selection/src/selection/selectChild.js +18 -0
- package/.output/server/node_modules/d3-selection/src/selection/selectChildren.js +18 -0
- package/.output/server/node_modules/d3-selection/src/selection/size.js +5 -0
- package/.output/server/node_modules/d3-selection/src/selection/sort.js +24 -0
- package/.output/server/node_modules/d3-selection/src/selection/sparse.js +3 -0
- package/.output/server/node_modules/d3-selection/src/selection/style.js +35 -0
- package/.output/server/node_modules/d3-selection/src/selection/text.js +25 -0
- package/.output/server/node_modules/d3-selection/src/selector.js +7 -0
- package/.output/server/node_modules/d3-selection/src/selectorAll.js +9 -0
- package/.output/server/node_modules/d3-selection/src/sourceEvent.js +5 -0
- package/.output/server/node_modules/d3-selection/src/window.js +5 -0
- package/.output/server/node_modules/d3-shape/package.json +55 -0
- package/.output/server/node_modules/d3-shape/src/arc.js +268 -0
- package/.output/server/node_modules/d3-shape/src/area.js +112 -0
- package/.output/server/node_modules/d3-shape/src/areaRadial.js +29 -0
- package/.output/server/node_modules/d3-shape/src/array.js +7 -0
- package/.output/server/node_modules/d3-shape/src/constant.js +5 -0
- package/.output/server/node_modules/d3-shape/src/curve/basis.js +51 -0
- package/.output/server/node_modules/d3-shape/src/curve/basisClosed.js +52 -0
- package/.output/server/node_modules/d3-shape/src/curve/basisOpen.js +39 -0
- package/.output/server/node_modules/d3-shape/src/curve/bump.js +75 -0
- package/.output/server/node_modules/d3-shape/src/curve/bundle.js +56 -0
- package/.output/server/node_modules/d3-shape/src/curve/cardinal.js +61 -0
- package/.output/server/node_modules/d3-shape/src/curve/cardinalClosed.js +61 -0
- package/.output/server/node_modules/d3-shape/src/curve/cardinalOpen.js +49 -0
- package/.output/server/node_modules/d3-shape/src/curve/catmullRom.js +88 -0
- package/.output/server/node_modules/d3-shape/src/curve/catmullRomClosed.js +74 -0
- package/.output/server/node_modules/d3-shape/src/curve/catmullRomOpen.js +62 -0
- package/.output/server/node_modules/d3-shape/src/curve/linear.js +31 -0
- package/.output/server/node_modules/d3-shape/src/curve/linearClosed.js +25 -0
- package/.output/server/node_modules/d3-shape/src/curve/monotone.js +104 -0
- package/.output/server/node_modules/d3-shape/src/curve/natural.js +65 -0
- package/.output/server/node_modules/d3-shape/src/curve/radial.js +36 -0
- package/.output/server/node_modules/d3-shape/src/curve/step.js +53 -0
- package/.output/server/node_modules/d3-shape/src/descending.js +3 -0
- package/.output/server/node_modules/d3-shape/src/identity.js +3 -0
- package/.output/server/node_modules/d3-shape/src/index.js +53 -0
- package/.output/server/node_modules/d3-shape/src/line.js +58 -0
- package/.output/server/node_modules/d3-shape/src/lineRadial.js +19 -0
- package/.output/server/node_modules/d3-shape/src/link.js +73 -0
- package/.output/server/node_modules/d3-shape/src/math.js +20 -0
- package/.output/server/node_modules/d3-shape/src/noop.js +1 -0
- package/.output/server/node_modules/d3-shape/src/offset/diverging.js +14 -0
- package/.output/server/node_modules/d3-shape/src/offset/expand.js +10 -0
- package/.output/server/node_modules/d3-shape/src/offset/none.js +9 -0
- package/.output/server/node_modules/d3-shape/src/offset/silhouette.js +10 -0
- package/.output/server/node_modules/d3-shape/src/offset/wiggle.js +24 -0
- package/.output/server/node_modules/d3-shape/src/order/appearance.js +12 -0
- package/.output/server/node_modules/d3-shape/src/order/ascending.js +12 -0
- package/.output/server/node_modules/d3-shape/src/order/descending.js +5 -0
- package/.output/server/node_modules/d3-shape/src/order/insideOut.js +27 -0
- package/.output/server/node_modules/d3-shape/src/order/none.js +5 -0
- package/.output/server/node_modules/d3-shape/src/order/reverse.js +5 -0
- package/.output/server/node_modules/d3-shape/src/path.js +19 -0
- package/.output/server/node_modules/d3-shape/src/pie.js +80 -0
- package/.output/server/node_modules/d3-shape/src/point.js +7 -0
- package/.output/server/node_modules/d3-shape/src/pointRadial.js +3 -0
- package/.output/server/node_modules/d3-shape/src/stack.js +58 -0
- package/.output/server/node_modules/d3-shape/src/symbol/asterisk.js +17 -0
- package/.output/server/node_modules/d3-shape/src/symbol/circle.js +9 -0
- package/.output/server/node_modules/d3-shape/src/symbol/cross.js +20 -0
- package/.output/server/node_modules/d3-shape/src/symbol/diamond.js +16 -0
- package/.output/server/node_modules/d3-shape/src/symbol/diamond2.js +12 -0
- package/.output/server/node_modules/d3-shape/src/symbol/plus.js +11 -0
- package/.output/server/node_modules/d3-shape/src/symbol/square.js +9 -0
- package/.output/server/node_modules/d3-shape/src/symbol/square2.js +12 -0
- package/.output/server/node_modules/d3-shape/src/symbol/star.js +24 -0
- package/.output/server/node_modules/d3-shape/src/symbol/times.js +11 -0
- package/.output/server/node_modules/d3-shape/src/symbol/triangle.js +13 -0
- package/.output/server/node_modules/d3-shape/src/symbol/triangle2.js +15 -0
- package/.output/server/node_modules/d3-shape/src/symbol/wye.js +25 -0
- package/.output/server/node_modules/d3-shape/src/symbol.js +66 -0
- package/.output/server/node_modules/d3-time/package.json +53 -0
- package/.output/server/node_modules/d3-time/src/day.js +35 -0
- package/.output/server/node_modules/d3-time/src/duration.js +7 -0
- package/.output/server/node_modules/d3-time/src/hour.js +26 -0
- package/.output/server/node_modules/d3-time/src/index.js +96 -0
- package/.output/server/node_modules/d3-time/src/interval.js +69 -0
- package/.output/server/node_modules/d3-time/src/millisecond.js +25 -0
- package/.output/server/node_modules/d3-time/src/minute.js +26 -0
- package/.output/server/node_modules/d3-time/src/month.js +27 -0
- package/.output/server/node_modules/d3-time/src/second.js +14 -0
- package/.output/server/node_modules/d3-time/src/ticks.js +58 -0
- package/.output/server/node_modules/d3-time/src/week.js +56 -0
- package/.output/server/node_modules/d3-time/src/year.js +49 -0
- package/.output/server/node_modules/d3-time-format/package.json +60 -0
- package/.output/server/node_modules/d3-time-format/src/defaultLocale.js +27 -0
- package/.output/server/node_modules/d3-time-format/src/index.js +4 -0
- package/.output/server/node_modules/d3-time-format/src/isoFormat.js +13 -0
- package/.output/server/node_modules/d3-time-format/src/isoParse.js +13 -0
- package/.output/server/node_modules/d3-time-format/src/locale.js +697 -0
- package/.output/server/node_modules/d3-timer/package.json +53 -0
- package/.output/server/node_modules/d3-timer/src/index.js +13 -0
- package/.output/server/node_modules/d3-timer/src/interval.js +17 -0
- package/.output/server/node_modules/d3-timer/src/timeout.js +11 -0
- package/.output/server/node_modules/d3-timer/src/timer.js +110 -0
- package/.output/server/node_modules/d3-transition/package.json +65 -0
- package/.output/server/node_modules/d3-transition/src/active.js +21 -0
- package/.output/server/node_modules/d3-transition/src/index.js +4 -0
- package/.output/server/node_modules/d3-transition/src/interrupt.js +24 -0
- package/.output/server/node_modules/d3-transition/src/selection/index.js +6 -0
- package/.output/server/node_modules/d3-transition/src/selection/interrupt.js +7 -0
- package/.output/server/node_modules/d3-transition/src/selection/transition.js +42 -0
- package/.output/server/node_modules/d3-transition/src/transition/attr.js +78 -0
- package/.output/server/node_modules/d3-transition/src/transition/attrTween.js +44 -0
- package/.output/server/node_modules/d3-transition/src/transition/delay.js +23 -0
- package/.output/server/node_modules/d3-transition/src/transition/duration.js +23 -0
- package/.output/server/node_modules/d3-transition/src/transition/ease.js +16 -0
- package/.output/server/node_modules/d3-transition/src/transition/easeVarying.js +14 -0
- package/.output/server/node_modules/d3-transition/src/transition/end.js +29 -0
- package/.output/server/node_modules/d3-transition/src/transition/filter.js +16 -0
- package/.output/server/node_modules/d3-transition/src/transition/index.js +73 -0
- package/.output/server/node_modules/d3-transition/src/transition/interpolate.js +10 -0
- package/.output/server/node_modules/d3-transition/src/transition/merge.js +19 -0
- package/.output/server/node_modules/d3-transition/src/transition/on.js +32 -0
- package/.output/server/node_modules/d3-transition/src/transition/remove.js +11 -0
- package/.output/server/node_modules/d3-transition/src/transition/schedule.js +153 -0
- package/.output/server/node_modules/d3-transition/src/transition/select.js +22 -0
- package/.output/server/node_modules/d3-transition/src/transition/selectAll.js +26 -0
- package/.output/server/node_modules/d3-transition/src/transition/selection.js +7 -0
- package/.output/server/node_modules/d3-transition/src/transition/style.js +80 -0
- package/.output/server/node_modules/d3-transition/src/transition/styleTween.js +24 -0
- package/.output/server/node_modules/d3-transition/src/transition/text.js +20 -0
- package/.output/server/node_modules/d3-transition/src/transition/textTween.js +24 -0
- package/.output/server/node_modules/d3-transition/src/transition/transition.js +24 -0
- package/.output/server/node_modules/d3-transition/src/transition/tween.js +81 -0
- package/.output/server/node_modules/d3-zoom/package.json +57 -0
- package/.output/server/node_modules/d3-zoom/src/constant.js +1 -0
- package/.output/server/node_modules/d3-zoom/src/event.js +14 -0
- package/.output/server/node_modules/d3-zoom/src/index.js +2 -0
- package/.output/server/node_modules/d3-zoom/src/noevent.js +8 -0
- package/.output/server/node_modules/d3-zoom/src/transform.js +51 -0
- package/.output/server/node_modules/d3-zoom/src/zoom.js +447 -0
- package/.output/server/node_modules/defu/dist/defu.mjs +69 -0
- package/.output/server/node_modules/defu/package.json +43 -0
- package/.output/server/node_modules/delaunator/index.js +480 -0
- package/.output/server/node_modules/delaunator/package.json +56 -0
- package/.output/server/node_modules/destr/dist/index.mjs +72 -0
- package/.output/server/node_modules/destr/package.json +47 -0
- package/.output/server/node_modules/devalue/index.js +4 -0
- package/.output/server/node_modules/devalue/package.json +37 -0
- package/.output/server/node_modules/devalue/src/base64.js +110 -0
- package/.output/server/node_modules/devalue/src/constants.js +6 -0
- package/.output/server/node_modules/devalue/src/parse.js +205 -0
- package/.output/server/node_modules/devalue/src/stringify.js +265 -0
- package/.output/server/node_modules/devalue/src/uneval.js +407 -0
- package/.output/server/node_modules/devalue/src/utils.js +118 -0
- package/.output/server/node_modules/entities/dist/commonjs/decode-codepoint.js +77 -0
- package/.output/server/node_modules/entities/dist/commonjs/decode.js +568 -0
- package/.output/server/node_modules/entities/dist/commonjs/generated/decode-data-html.js +7 -0
- package/.output/server/node_modules/entities/dist/commonjs/generated/decode-data-xml.js +7 -0
- package/.output/server/node_modules/entities/dist/commonjs/internal/bin-trie-flags.js +21 -0
- package/.output/server/node_modules/entities/dist/commonjs/internal/decode-shared.js +31 -0
- package/.output/server/node_modules/entities/dist/commonjs/package.json +3 -0
- package/.output/server/node_modules/entities/package.json +113 -0
- package/.output/server/node_modules/estree-walker/dist/umd/estree-walker.js +344 -0
- package/.output/server/node_modules/estree-walker/package.json +37 -0
- package/.output/server/node_modules/file-uri-to-path/index.js +66 -0
- package/.output/server/node_modules/file-uri-to-path/package.json +32 -0
- package/.output/server/node_modules/h3/dist/index.mjs +2478 -0
- package/.output/server/node_modules/h3/package.json +75 -0
- package/.output/server/node_modules/hookable/dist/index.mjs +290 -0
- package/.output/server/node_modules/hookable/package.json +49 -0
- package/.output/server/node_modules/internmap/package.json +43 -0
- package/.output/server/node_modules/internmap/src/index.js +61 -0
- package/.output/server/node_modules/iron-webcrypto/dist/index.js +298 -0
- package/.output/server/node_modules/iron-webcrypto/package.json +72 -0
- package/.output/server/node_modules/marked/lib/marked.esm.js +72 -0
- package/.output/server/node_modules/marked/package.json +103 -0
- package/.output/server/node_modules/node-mock-http/dist/_polyfill/buffer/node.mjs +1 -0
- package/.output/server/node_modules/node-mock-http/dist/_polyfill/events/node.mjs +1 -0
- package/.output/server/node_modules/node-mock-http/dist/index.mjs +1 -0
- package/.output/server/node_modules/node-mock-http/package.json +63 -0
- package/.output/server/node_modules/radix3/dist/index.mjs +262 -0
- package/.output/server/node_modules/radix3/package.json +52 -0
- package/.output/server/node_modules/robust-predicates/esm/incircle.js +765 -0
- package/.output/server/node_modules/robust-predicates/esm/insphere.js +766 -0
- package/.output/server/node_modules/robust-predicates/esm/orient2d.js +184 -0
- package/.output/server/node_modules/robust-predicates/esm/orient3d.js +462 -0
- package/.output/server/node_modules/robust-predicates/esm/util.js +138 -0
- package/.output/server/node_modules/robust-predicates/index.js +5 -0
- package/.output/server/node_modules/robust-predicates/package.json +75 -0
- package/.output/server/node_modules/sortablejs/Sortable.min.js +2 -0
- package/.output/server/node_modules/sortablejs/package.json +56 -0
- package/.output/server/node_modules/source-map-js/lib/array-set.js +121 -0
- package/.output/server/node_modules/source-map-js/lib/base64-vlq.js +140 -0
- package/.output/server/node_modules/source-map-js/lib/base64.js +67 -0
- package/.output/server/node_modules/source-map-js/lib/binary-search.js +111 -0
- package/.output/server/node_modules/source-map-js/lib/mapping-list.js +79 -0
- package/.output/server/node_modules/source-map-js/lib/quick-sort.js +132 -0
- package/.output/server/node_modules/source-map-js/lib/source-map-consumer.js +1188 -0
- package/.output/server/node_modules/source-map-js/lib/source-map-generator.js +444 -0
- package/.output/server/node_modules/source-map-js/lib/source-node.js +413 -0
- package/.output/server/node_modules/source-map-js/lib/util.js +594 -0
- package/.output/server/node_modules/source-map-js/package.json +71 -0
- package/.output/server/node_modules/source-map-js/source-map.js +8 -0
- package/.output/server/node_modules/ufo/dist/index.mjs +638 -0
- package/.output/server/node_modules/ufo/package.json +47 -0
- package/.output/server/node_modules/uncrypto/dist/crypto.node.mjs +16 -0
- package/.output/server/node_modules/uncrypto/package.json +60 -0
- package/.output/server/node_modules/unhead/dist/index.mjs +9 -0
- package/.output/server/node_modules/unhead/dist/parser.mjs +508 -0
- package/.output/server/node_modules/unhead/dist/plugins.mjs +101 -0
- package/.output/server/node_modules/unhead/dist/scripts.mjs +30 -0
- package/.output/server/node_modules/unhead/dist/server.mjs +182 -0
- package/.output/server/node_modules/unhead/dist/shared/unhead.B578PsDV.mjs +266 -0
- package/.output/server/node_modules/unhead/dist/shared/unhead.BPM0-cfG.mjs +44 -0
- package/.output/server/node_modules/unhead/dist/shared/unhead.BYvz9V1x.mjs +43 -0
- package/.output/server/node_modules/unhead/dist/shared/unhead.CApf5sj3.mjs +148 -0
- package/.output/server/node_modules/unhead/dist/shared/unhead.CGCfDSEL.mjs +180 -0
- package/.output/server/node_modules/unhead/dist/shared/unhead.CYpwL2hc.mjs +194 -0
- package/.output/server/node_modules/unhead/dist/shared/unhead.CbpEuj3y.mjs +71 -0
- package/.output/server/node_modules/unhead/dist/shared/unhead.DQc16pHI.mjs +196 -0
- package/.output/server/node_modules/unhead/dist/shared/unhead.ckV6dpEQ.mjs +166 -0
- package/.output/server/node_modules/unhead/dist/shared/unhead.yem5I2v_.mjs +38 -0
- package/.output/server/node_modules/unhead/dist/utils.mjs +5 -0
- package/.output/server/node_modules/unhead/package.json +105 -0
- package/.output/server/node_modules/vue/dist/vue.cjs.js +80 -0
- package/.output/server/node_modules/vue/dist/vue.cjs.prod.js +66 -0
- package/.output/server/node_modules/vue/index.js +7 -0
- package/.output/server/node_modules/vue/index.mjs +1 -0
- package/.output/server/node_modules/vue/package.json +112 -0
- package/.output/server/node_modules/vue/server-renderer/index.mjs +1 -0
- package/.output/server/node_modules/vue-bundle-renderer/dist/runtime.mjs +301 -0
- package/.output/server/node_modules/vue-bundle-renderer/package.json +55 -0
- package/.output/server/node_modules/vue-devtools-stub/dist/index.mjs +11 -0
- package/.output/server/node_modules/vue-devtools-stub/package.json +41 -0
- package/.output/server/node_modules/vue-router/dist/devtools-EWN81iOl.mjs +1220 -0
- package/.output/server/node_modules/vue-router/dist/vue-router.mjs +1557 -0
- package/.output/server/node_modules/vue-router/package.json +153 -0
- package/.output/server/node_modules/vue-router/vue-router.node.mjs +2 -0
- package/.output/server/node_modules/vuedraggable/dist/vuedraggable.umd.min.js +2 -0
- package/.output/server/node_modules/vuedraggable/package.json +97 -0
- package/.output/server/node_modules/yaml/dist/compose/compose-collection.js +90 -0
- package/.output/server/node_modules/yaml/dist/compose/compose-doc.js +45 -0
- package/.output/server/node_modules/yaml/dist/compose/compose-node.js +105 -0
- package/.output/server/node_modules/yaml/dist/compose/compose-scalar.js +88 -0
- package/.output/server/node_modules/yaml/dist/compose/composer.js +222 -0
- package/.output/server/node_modules/yaml/dist/compose/resolve-block-map.js +117 -0
- package/.output/server/node_modules/yaml/dist/compose/resolve-block-scalar.js +200 -0
- package/.output/server/node_modules/yaml/dist/compose/resolve-block-seq.js +51 -0
- package/.output/server/node_modules/yaml/dist/compose/resolve-end.js +39 -0
- package/.output/server/node_modules/yaml/dist/compose/resolve-flow-collection.js +209 -0
- package/.output/server/node_modules/yaml/dist/compose/resolve-flow-scalar.js +225 -0
- package/.output/server/node_modules/yaml/dist/compose/resolve-props.js +148 -0
- package/.output/server/node_modules/yaml/dist/compose/util-contains-newline.js +36 -0
- package/.output/server/node_modules/yaml/dist/compose/util-empty-scalar-position.js +28 -0
- package/.output/server/node_modules/yaml/dist/compose/util-flow-indent-check.js +17 -0
- package/.output/server/node_modules/yaml/dist/compose/util-map-includes.js +15 -0
- package/.output/server/node_modules/yaml/dist/doc/Document.js +337 -0
- package/.output/server/node_modules/yaml/dist/doc/anchors.js +76 -0
- package/.output/server/node_modules/yaml/dist/doc/applyReviver.js +57 -0
- package/.output/server/node_modules/yaml/dist/doc/createNode.js +90 -0
- package/.output/server/node_modules/yaml/dist/doc/directives.js +178 -0
- package/.output/server/node_modules/yaml/dist/errors.js +62 -0
- package/.output/server/node_modules/yaml/dist/index.js +50 -0
- package/.output/server/node_modules/yaml/dist/log.js +19 -0
- package/.output/server/node_modules/yaml/dist/nodes/Alias.js +116 -0
- package/.output/server/node_modules/yaml/dist/nodes/Collection.js +151 -0
- package/.output/server/node_modules/yaml/dist/nodes/Node.js +40 -0
- package/.output/server/node_modules/yaml/dist/nodes/Pair.js +39 -0
- package/.output/server/node_modules/yaml/dist/nodes/Scalar.js +27 -0
- package/.output/server/node_modules/yaml/dist/nodes/YAMLMap.js +147 -0
- package/.output/server/node_modules/yaml/dist/nodes/YAMLSeq.js +115 -0
- package/.output/server/node_modules/yaml/dist/nodes/addPairToJSMap.js +65 -0
- package/.output/server/node_modules/yaml/dist/nodes/identity.js +53 -0
- package/.output/server/node_modules/yaml/dist/nodes/toJS.js +39 -0
- package/.output/server/node_modules/yaml/dist/parse/cst-scalar.js +218 -0
- package/.output/server/node_modules/yaml/dist/parse/cst-stringify.js +63 -0
- package/.output/server/node_modules/yaml/dist/parse/cst-visit.js +99 -0
- package/.output/server/node_modules/yaml/dist/parse/cst.js +112 -0
- package/.output/server/node_modules/yaml/dist/parse/lexer.js +719 -0
- package/.output/server/node_modules/yaml/dist/parse/line-counter.js +41 -0
- package/.output/server/node_modules/yaml/dist/parse/parser.js +972 -0
- package/.output/server/node_modules/yaml/dist/public-api.js +107 -0
- package/.output/server/node_modules/yaml/dist/schema/Schema.js +39 -0
- package/.output/server/node_modules/yaml/dist/schema/common/map.js +19 -0
- package/.output/server/node_modules/yaml/dist/schema/common/null.js +17 -0
- package/.output/server/node_modules/yaml/dist/schema/common/seq.js +19 -0
- package/.output/server/node_modules/yaml/dist/schema/common/string.js +16 -0
- package/.output/server/node_modules/yaml/dist/schema/core/bool.js +21 -0
- package/.output/server/node_modules/yaml/dist/schema/core/float.js +47 -0
- package/.output/server/node_modules/yaml/dist/schema/core/int.js +42 -0
- package/.output/server/node_modules/yaml/dist/schema/core/schema.js +25 -0
- package/.output/server/node_modules/yaml/dist/schema/json/schema.js +64 -0
- package/.output/server/node_modules/yaml/dist/schema/tags.js +99 -0
- package/.output/server/node_modules/yaml/dist/schema/yaml-1.1/binary.js +70 -0
- package/.output/server/node_modules/yaml/dist/schema/yaml-1.1/bool.js +29 -0
- package/.output/server/node_modules/yaml/dist/schema/yaml-1.1/float.js +50 -0
- package/.output/server/node_modules/yaml/dist/schema/yaml-1.1/int.js +76 -0
- package/.output/server/node_modules/yaml/dist/schema/yaml-1.1/merge.js +68 -0
- package/.output/server/node_modules/yaml/dist/schema/yaml-1.1/omap.js +77 -0
- package/.output/server/node_modules/yaml/dist/schema/yaml-1.1/pairs.js +82 -0
- package/.output/server/node_modules/yaml/dist/schema/yaml-1.1/schema.js +41 -0
- package/.output/server/node_modules/yaml/dist/schema/yaml-1.1/set.js +96 -0
- package/.output/server/node_modules/yaml/dist/schema/yaml-1.1/timestamp.js +105 -0
- package/.output/server/node_modules/yaml/dist/stringify/foldFlowLines.js +151 -0
- package/.output/server/node_modules/yaml/dist/stringify/stringify.js +131 -0
- package/.output/server/node_modules/yaml/dist/stringify/stringifyCollection.js +145 -0
- package/.output/server/node_modules/yaml/dist/stringify/stringifyComment.js +24 -0
- package/.output/server/node_modules/yaml/dist/stringify/stringifyDocument.js +87 -0
- package/.output/server/node_modules/yaml/dist/stringify/stringifyNumber.js +26 -0
- package/.output/server/node_modules/yaml/dist/stringify/stringifyPair.js +152 -0
- package/.output/server/node_modules/yaml/dist/stringify/stringifyString.js +338 -0
- package/.output/server/node_modules/yaml/dist/visit.js +236 -0
- package/.output/server/node_modules/yaml/package.json +97 -0
- package/.output/server/package.json +90 -0
- package/README.md +396 -117
- package/bin/autocode +2337 -1
- package/package.json +61 -23
- package/templates/prompts/ready.en.md +29 -0
- package/templates/prompts/ready.fr.md +29 -0
- package/dist/cli/commands/comment.d.ts +0 -9
- package/dist/cli/commands/comment.d.ts.map +0 -1
- package/dist/cli/commands/comment.js +0 -40
- package/dist/cli/commands/comment.js.map +0 -1
- package/dist/cli/commands/health.d.ts +0 -9
- package/dist/cli/commands/health.d.ts.map +0 -1
- package/dist/cli/commands/health.js +0 -101
- package/dist/cli/commands/health.js.map +0 -1
- package/dist/cli/commands/init.d.ts +0 -9
- package/dist/cli/commands/init.d.ts.map +0 -1
- package/dist/cli/commands/init.js +0 -63
- package/dist/cli/commands/init.js.map +0 -1
- package/dist/cli/commands/list.d.ts +0 -9
- package/dist/cli/commands/list.d.ts.map +0 -1
- package/dist/cli/commands/list.js +0 -121
- package/dist/cli/commands/list.js.map +0 -1
- package/dist/cli/commands/move.d.ts +0 -9
- package/dist/cli/commands/move.d.ts.map +0 -1
- package/dist/cli/commands/move.js +0 -66
- package/dist/cli/commands/move.js.map +0 -1
- package/dist/cli/commands/new.d.ts +0 -9
- package/dist/cli/commands/new.d.ts.map +0 -1
- package/dist/cli/commands/new.js +0 -105
- package/dist/cli/commands/new.js.map +0 -1
- package/dist/cli/commands/next.d.ts +0 -9
- package/dist/cli/commands/next.d.ts.map +0 -1
- package/dist/cli/commands/next.js +0 -46
- package/dist/cli/commands/next.js.map +0 -1
- package/dist/cli/commands/parent.d.ts +0 -9
- package/dist/cli/commands/parent.d.ts.map +0 -1
- package/dist/cli/commands/parent.js +0 -94
- package/dist/cli/commands/parent.js.map +0 -1
- package/dist/cli/commands/pipeline.d.ts +0 -9
- package/dist/cli/commands/pipeline.d.ts.map +0 -1
- package/dist/cli/commands/pipeline.js +0 -68
- package/dist/cli/commands/pipeline.js.map +0 -1
- package/dist/cli/commands/pipeline.test.d.ts +0 -5
- package/dist/cli/commands/pipeline.test.d.ts.map +0 -1
- package/dist/cli/commands/pipeline.test.js +0 -171
- package/dist/cli/commands/pipeline.test.js.map +0 -1
- package/dist/cli/commands/serve.d.ts +0 -9
- package/dist/cli/commands/serve.d.ts.map +0 -1
- package/dist/cli/commands/serve.js +0 -249
- package/dist/cli/commands/serve.js.map +0 -1
- package/dist/cli/commands/show.d.ts +0 -9
- package/dist/cli/commands/show.d.ts.map +0 -1
- package/dist/cli/commands/show.js +0 -111
- package/dist/cli/commands/show.js.map +0 -1
- package/dist/cli/commands/stats.d.ts +0 -9
- package/dist/cli/commands/stats.d.ts.map +0 -1
- package/dist/cli/commands/stats.js +0 -108
- package/dist/cli/commands/stats.js.map +0 -1
- package/dist/cli/commands/sync.d.ts +0 -9
- package/dist/cli/commands/sync.d.ts.map +0 -1
- package/dist/cli/commands/sync.js +0 -91
- package/dist/cli/commands/sync.js.map +0 -1
- package/dist/cli/commands/tunnel.d.ts +0 -9
- package/dist/cli/commands/tunnel.d.ts.map +0 -1
- package/dist/cli/commands/tunnel.js +0 -90
- package/dist/cli/commands/tunnel.js.map +0 -1
- package/dist/cli/parser.d.ts +0 -13
- package/dist/cli/parser.d.ts.map +0 -1
- package/dist/cli/parser.js +0 -67
- package/dist/cli/parser.js.map +0 -1
- package/dist/core/catalog.d.ts +0 -52
- package/dist/core/catalog.d.ts.map +0 -1
- package/dist/core/catalog.js +0 -102
- package/dist/core/catalog.js.map +0 -1
- package/dist/core/column.d.ts +0 -50
- package/dist/core/column.d.ts.map +0 -1
- package/dist/core/column.js +0 -134
- package/dist/core/column.js.map +0 -1
- package/dist/core/config.d.ts +0 -20
- package/dist/core/config.d.ts.map +0 -1
- package/dist/core/config.js +0 -54
- package/dist/core/config.js.map +0 -1
- package/dist/core/features.d.ts +0 -24
- package/dist/core/features.d.ts.map +0 -1
- package/dist/core/features.js +0 -33
- package/dist/core/features.js.map +0 -1
- package/dist/core/hierarchy.d.ts +0 -121
- package/dist/core/hierarchy.d.ts.map +0 -1
- package/dist/core/hierarchy.js +0 -350
- package/dist/core/hierarchy.js.map +0 -1
- package/dist/core/implementations/FilesystemIssueRepository.d.ts +0 -18
- package/dist/core/implementations/FilesystemIssueRepository.d.ts.map +0 -1
- package/dist/core/implementations/FilesystemIssueRepository.js +0 -149
- package/dist/core/implementations/FilesystemIssueRepository.js.map +0 -1
- package/dist/core/interfaces/IHierarchyService.d.ts +0 -32
- package/dist/core/interfaces/IHierarchyService.d.ts.map +0 -1
- package/dist/core/interfaces/IHierarchyService.js +0 -2
- package/dist/core/interfaces/IHierarchyService.js.map +0 -1
- package/dist/core/interfaces/IIssueRepository.d.ts +0 -55
- package/dist/core/interfaces/IIssueRepository.d.ts.map +0 -1
- package/dist/core/interfaces/IIssueRepository.js +0 -2
- package/dist/core/interfaces/IIssueRepository.js.map +0 -1
- package/dist/core/interfaces/IPipelineService.d.ts +0 -38
- package/dist/core/interfaces/IPipelineService.d.ts.map +0 -1
- package/dist/core/interfaces/IPipelineService.js +0 -2
- package/dist/core/interfaces/IPipelineService.js.map +0 -1
- package/dist/core/interfaces/IWorkflowService.d.ts +0 -38
- package/dist/core/interfaces/IWorkflowService.d.ts.map +0 -1
- package/dist/core/interfaces/IWorkflowService.js +0 -2
- package/dist/core/interfaces/IWorkflowService.js.map +0 -1
- package/dist/core/interfaces/index.d.ts +0 -5
- package/dist/core/interfaces/index.d.ts.map +0 -1
- package/dist/core/interfaces/index.js +0 -2
- package/dist/core/interfaces/index.js.map +0 -1
- package/dist/core/issue.d.ts +0 -62
- package/dist/core/issue.d.ts.map +0 -1
- package/dist/core/issue.js +0 -255
- package/dist/core/issue.js.map +0 -1
- package/dist/core/loop-detector.d.ts +0 -45
- package/dist/core/loop-detector.d.ts.map +0 -1
- package/dist/core/loop-detector.js +0 -81
- package/dist/core/loop-detector.js.map +0 -1
- package/dist/core/pipeline.d.ts +0 -70
- package/dist/core/pipeline.d.ts.map +0 -1
- package/dist/core/pipeline.js +0 -199
- package/dist/core/pipeline.js.map +0 -1
- package/dist/core/sync.d.ts +0 -41
- package/dist/core/sync.d.ts.map +0 -1
- package/dist/core/sync.js +0 -272
- package/dist/core/sync.js.map +0 -1
- package/dist/core/validation.d.ts +0 -26
- package/dist/core/validation.d.ts.map +0 -1
- package/dist/core/validation.js +0 -67
- package/dist/core/validation.js.map +0 -1
- package/dist/core/workflow.d.ts +0 -68
- package/dist/core/workflow.d.ts.map +0 -1
- package/dist/core/workflow.js +0 -226
- package/dist/core/workflow.js.map +0 -1
- package/dist/index.d.ts +0 -8
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js +0 -12
- package/dist/index.js.map +0 -1
- package/dist/server/api-autocomplete.test.d.ts +0 -6
- package/dist/server/api-autocomplete.test.d.ts.map +0 -1
- package/dist/server/api-autocomplete.test.js +0 -249
- package/dist/server/api-autocomplete.test.js.map +0 -1
- package/dist/server/api.d.ts +0 -9
- package/dist/server/api.d.ts.map +0 -1
- package/dist/server/api.js +0 -1377
- package/dist/server/api.js.map +0 -1
- package/dist/server/dashboard/index.d.ts +0 -10
- package/dist/server/dashboard/index.d.ts.map +0 -1
- package/dist/server/dashboard/index.js +0 -16
- package/dist/server/dashboard/index.js.map +0 -1
- package/dist/server/dashboard/pages/autocreate.d.ts +0 -9
- package/dist/server/dashboard/pages/autocreate.d.ts.map +0 -1
- package/dist/server/dashboard/pages/autocreate.js +0 -854
- package/dist/server/dashboard/pages/autocreate.js.map +0 -1
- package/dist/server/dashboard/pages/changelog.d.ts +0 -9
- package/dist/server/dashboard/pages/changelog.d.ts.map +0 -1
- package/dist/server/dashboard/pages/changelog.js +0 -160
- package/dist/server/dashboard/pages/changelog.js.map +0 -1
- package/dist/server/dashboard/pages/column-edit.d.ts +0 -8
- package/dist/server/dashboard/pages/column-edit.d.ts.map +0 -1
- package/dist/server/dashboard/pages/column-edit.js +0 -303
- package/dist/server/dashboard/pages/column-edit.js.map +0 -1
- package/dist/server/dashboard/pages/column-prompt.d.ts +0 -8
- package/dist/server/dashboard/pages/column-prompt.d.ts.map +0 -1
- package/dist/server/dashboard/pages/column-prompt.js +0 -249
- package/dist/server/dashboard/pages/column-prompt.js.map +0 -1
- package/dist/server/dashboard/pages/column-terminal.d.ts +0 -8
- package/dist/server/dashboard/pages/column-terminal.d.ts.map +0 -1
- package/dist/server/dashboard/pages/column-terminal.js +0 -550
- package/dist/server/dashboard/pages/column-terminal.js.map +0 -1
- package/dist/server/dashboard/pages/index.d.ts +0 -21
- package/dist/server/dashboard/pages/index.d.ts.map +0 -1
- package/dist/server/dashboard/pages/index.js +0 -21
- package/dist/server/dashboard/pages/index.js.map +0 -1
- package/dist/server/dashboard/pages/issue-comments.d.ts +0 -8
- package/dist/server/dashboard/pages/issue-comments.d.ts.map +0 -1
- package/dist/server/dashboard/pages/issue-comments.js +0 -283
- package/dist/server/dashboard/pages/issue-comments.js.map +0 -1
- package/dist/server/dashboard/pages/issue-graph.d.ts +0 -9
- package/dist/server/dashboard/pages/issue-graph.d.ts.map +0 -1
- package/dist/server/dashboard/pages/issue-graph.js +0 -629
- package/dist/server/dashboard/pages/issue-graph.js.map +0 -1
- package/dist/server/dashboard/pages/issue-history.d.ts +0 -8
- package/dist/server/dashboard/pages/issue-history.d.ts.map +0 -1
- package/dist/server/dashboard/pages/issue-history.js +0 -149
- package/dist/server/dashboard/pages/issue-history.js.map +0 -1
- package/dist/server/dashboard/pages/issue-shared.d.ts +0 -27
- package/dist/server/dashboard/pages/issue-shared.d.ts.map +0 -1
- package/dist/server/dashboard/pages/issue-shared.js +0 -297
- package/dist/server/dashboard/pages/issue-shared.js.map +0 -1
- package/dist/server/dashboard/pages/issue-terminal.d.ts +0 -8
- package/dist/server/dashboard/pages/issue-terminal.d.ts.map +0 -1
- package/dist/server/dashboard/pages/issue-terminal.js +0 -363
- package/dist/server/dashboard/pages/issue-terminal.js.map +0 -1
- package/dist/server/dashboard/pages/issue-view.d.ts +0 -8
- package/dist/server/dashboard/pages/issue-view.d.ts.map +0 -1
- package/dist/server/dashboard/pages/issue-view.js +0 -386
- package/dist/server/dashboard/pages/issue-view.js.map +0 -1
- package/dist/server/dashboard/pages/main-dashboard.d.ts +0 -11
- package/dist/server/dashboard/pages/main-dashboard.d.ts.map +0 -1
- package/dist/server/dashboard/pages/main-dashboard.js +0 -228
- package/dist/server/dashboard/pages/main-dashboard.js.map +0 -1
- package/dist/server/dashboard/pages/new-issue.d.ts +0 -8
- package/dist/server/dashboard/pages/new-issue.d.ts.map +0 -1
- package/dist/server/dashboard/pages/new-issue.js +0 -898
- package/dist/server/dashboard/pages/new-issue.js.map +0 -1
- package/dist/server/dashboard/pages/new-issue.test.d.ts +0 -6
- package/dist/server/dashboard/pages/new-issue.test.d.ts.map +0 -1
- package/dist/server/dashboard/pages/new-issue.test.js +0 -824
- package/dist/server/dashboard/pages/new-issue.test.js.map +0 -1
- package/dist/server/dashboard/pages/pipeline-configurator.d.ts +0 -8
- package/dist/server/dashboard/pages/pipeline-configurator.d.ts.map +0 -1
- package/dist/server/dashboard/pages/pipeline-configurator.js +0 -1783
- package/dist/server/dashboard/pages/pipeline-configurator.js.map +0 -1
- package/dist/server/dashboard/pages/shared.d.ts +0 -8
- package/dist/server/dashboard/pages/shared.d.ts.map +0 -1
- package/dist/server/dashboard/pages/shared.js +0 -58
- package/dist/server/dashboard/pages/shared.js.map +0 -1
- package/dist/server/dashboard/pages/stats-page.d.ts +0 -8
- package/dist/server/dashboard/pages/stats-page.d.ts.map +0 -1
- package/dist/server/dashboard/pages/stats-page.js +0 -558
- package/dist/server/dashboard/pages/stats-page.js.map +0 -1
- package/dist/server/dashboard/pages/water-quality-form.d.ts +0 -10
- package/dist/server/dashboard/pages/water-quality-form.d.ts.map +0 -1
- package/dist/server/dashboard/pages/water-quality-form.js +0 -910
- package/dist/server/dashboard/pages/water-quality-form.js.map +0 -1
- package/dist/server/dashboard/scripts/index.d.ts +0 -11
- package/dist/server/dashboard/scripts/index.d.ts.map +0 -1
- package/dist/server/dashboard/scripts/index.js +0 -1278
- package/dist/server/dashboard/scripts/index.js.map +0 -1
- package/dist/server/dashboard/shared/header.d.ts +0 -88
- package/dist/server/dashboard/shared/header.d.ts.map +0 -1
- package/dist/server/dashboard/shared/header.js +0 -209
- package/dist/server/dashboard/shared/header.js.map +0 -1
- package/dist/server/dashboard/shared/i18n-script.d.ts +0 -45
- package/dist/server/dashboard/shared/i18n-script.d.ts.map +0 -1
- package/dist/server/dashboard/shared/i18n-script.js +0 -204
- package/dist/server/dashboard/shared/i18n-script.js.map +0 -1
- package/dist/server/dashboard/shared/index.d.ts +0 -19
- package/dist/server/dashboard/shared/index.d.ts.map +0 -1
- package/dist/server/dashboard/shared/index.js +0 -22
- package/dist/server/dashboard/shared/index.js.map +0 -1
- package/dist/server/dashboard/shared/translations.d.ts +0 -515
- package/dist/server/dashboard/shared/translations.d.ts.map +0 -1
- package/dist/server/dashboard/shared/translations.js +0 -591
- package/dist/server/dashboard/shared/translations.js.map +0 -1
- package/dist/server/dashboard/styles/base.d.ts +0 -5
- package/dist/server/dashboard/styles/base.d.ts.map +0 -1
- package/dist/server/dashboard/styles/base.js +0 -130
- package/dist/server/dashboard/styles/base.js.map +0 -1
- package/dist/server/dashboard/styles/board.d.ts +0 -5
- package/dist/server/dashboard/styles/board.d.ts.map +0 -1
- package/dist/server/dashboard/styles/board.js +0 -168
- package/dist/server/dashboard/styles/board.js.map +0 -1
- package/dist/server/dashboard/styles/comments.d.ts +0 -5
- package/dist/server/dashboard/styles/comments.d.ts.map +0 -1
- package/dist/server/dashboard/styles/comments.js +0 -249
- package/dist/server/dashboard/styles/comments.js.map +0 -1
- package/dist/server/dashboard/styles/components.d.ts +0 -5
- package/dist/server/dashboard/styles/components.d.ts.map +0 -1
- package/dist/server/dashboard/styles/components.js +0 -360
- package/dist/server/dashboard/styles/components.js.map +0 -1
- package/dist/server/dashboard/styles/footer.d.ts +0 -5
- package/dist/server/dashboard/styles/footer.d.ts.map +0 -1
- package/dist/server/dashboard/styles/footer.js +0 -40
- package/dist/server/dashboard/styles/footer.js.map +0 -1
- package/dist/server/dashboard/styles/index.d.ts +0 -8
- package/dist/server/dashboard/styles/index.d.ts.map +0 -1
- package/dist/server/dashboard/styles/index.js +0 -27
- package/dist/server/dashboard/styles/index.js.map +0 -1
- package/dist/server/dashboard/styles/logs.d.ts +0 -5
- package/dist/server/dashboard/styles/logs.d.ts.map +0 -1
- package/dist/server/dashboard/styles/logs.js +0 -89
- package/dist/server/dashboard/styles/logs.js.map +0 -1
- package/dist/server/dashboard/styles/notifications.d.ts +0 -5
- package/dist/server/dashboard/styles/notifications.d.ts.map +0 -1
- package/dist/server/dashboard/styles/notifications.js +0 -51
- package/dist/server/dashboard/styles/notifications.js.map +0 -1
- package/dist/server/dashboard/styles/variables.d.ts +0 -5
- package/dist/server/dashboard/styles/variables.d.ts.map +0 -1
- package/dist/server/dashboard/styles/variables.js +0 -29
- package/dist/server/dashboard/styles/variables.js.map +0 -1
- package/dist/server/dashboard/utils.d.ts +0 -8
- package/dist/server/dashboard/utils.d.ts.map +0 -1
- package/dist/server/dashboard/utils.js +0 -14
- package/dist/server/dashboard/utils.js.map +0 -1
- package/dist/server/dashboard.d.ts +0 -8
- package/dist/server/dashboard.d.ts.map +0 -1
- package/dist/server/dashboard.js +0 -8
- package/dist/server/dashboard.js.map +0 -1
- package/dist/server/index.d.ts +0 -8
- package/dist/server/index.d.ts.map +0 -1
- package/dist/server/index.js +0 -274
- package/dist/server/index.js.map +0 -1
- package/dist/server/watcher.d.ts +0 -13
- package/dist/server/watcher.d.ts.map +0 -1
- package/dist/server/watcher.js +0 -62
- package/dist/server/watcher.js.map +0 -1
- package/dist/server/websocket.d.ts +0 -46
- package/dist/server/websocket.d.ts.map +0 -1
- package/dist/server/websocket.js +0 -204
- package/dist/server/websocket.js.map +0 -1
- package/dist/services/autocreate.d.ts +0 -34
- package/dist/services/autocreate.d.ts.map +0 -1
- package/dist/services/autocreate.js +0 -503
- package/dist/services/autocreate.js.map +0 -1
- package/dist/services/claude.d.ts +0 -79
- package/dist/services/claude.d.ts.map +0 -1
- package/dist/services/claude.js +0 -519
- package/dist/services/claude.js.map +0 -1
- package/dist/services/issue-io.d.ts +0 -81
- package/dist/services/issue-io.d.ts.map +0 -1
- package/dist/services/issue-io.js +0 -249
- package/dist/services/issue-io.js.map +0 -1
- package/dist/services/monitoring.d.ts +0 -47
- package/dist/services/monitoring.d.ts.map +0 -1
- package/dist/services/monitoring.js +0 -136
- package/dist/services/monitoring.js.map +0 -1
- package/dist/services/stats.d.ts +0 -58
- package/dist/services/stats.d.ts.map +0 -1
- package/dist/services/stats.js +0 -196
- package/dist/services/stats.js.map +0 -1
- package/dist/types/index.d.ts +0 -213
- package/dist/types/index.d.ts.map +0 -1
- package/dist/types/index.js +0 -8
- package/dist/types/index.js.map +0 -1
- package/dist/utils/config.d.ts +0 -101
- package/dist/utils/config.d.ts.map +0 -1
- package/dist/utils/config.js +0 -98
- package/dist/utils/config.js.map +0 -1
- package/dist/utils/fs.d.ts +0 -60
- package/dist/utils/fs.d.ts.map +0 -1
- package/dist/utils/fs.js +0 -129
- package/dist/utils/fs.js.map +0 -1
- package/dist/utils/logger.d.ts +0 -23
- package/dist/utils/logger.d.ts.map +0 -1
- package/dist/utils/logger.js +0 -56
- package/dist/utils/logger.js.map +0 -1
- package/dist/utils/tunnel.d.ts +0 -62
- package/dist/utils/tunnel.d.ts.map +0 -1
- package/dist/utils/tunnel.js +0 -240
- package/dist/utils/tunnel.js.map +0 -1
- package/dist/utils/version-check.d.ts +0 -26
- package/dist/utils/version-check.d.ts.map +0 -1
- package/dist/utils/version-check.js +0 -234
- package/dist/utils/version-check.js.map +0 -1
|
@@ -0,0 +1,1886 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* core-base v11.2.8
|
|
3
|
+
* (c) 2025 kazuya kawaguchi
|
|
4
|
+
* Released under the MIT License.
|
|
5
|
+
*/
|
|
6
|
+
import { getGlobalThis, isObject, hasOwn, isNumber, create, isString, isBoolean, warn, format as format$1, isFunction, isPromise, isArray, isPlainObject, assign, isRegExp, warnOnce, isEmptyObject, isDate, join, toDisplayString, sanitizeTranslatedHtml, escapeHtml, inBrowser, mark, measure, generateCodeFrame, generateFormatCacheKey } from '@intlify/shared';
|
|
7
|
+
import { detectHtmlTag, defaultOnError, baseCompile as baseCompile$1, COMPILE_ERROR_CODES_EXTEND_POINT, createCompileError } from '@intlify/message-compiler';
|
|
8
|
+
export { CompileErrorCodes, createCompileError } from '@intlify/message-compiler';
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* This is only called in esm-bundler builds.
|
|
12
|
+
* istanbul-ignore-next
|
|
13
|
+
*/
|
|
14
|
+
function initFeatureFlags() {
|
|
15
|
+
if (typeof __INTLIFY_PROD_DEVTOOLS__ !== 'boolean') {
|
|
16
|
+
getGlobalThis().__INTLIFY_PROD_DEVTOOLS__ = false;
|
|
17
|
+
}
|
|
18
|
+
if (typeof __INTLIFY_DROP_MESSAGE_COMPILER__ !== 'boolean') {
|
|
19
|
+
getGlobalThis().__INTLIFY_DROP_MESSAGE_COMPILER__ = false;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
function isMessageAST(val) {
|
|
24
|
+
return (isObject(val) &&
|
|
25
|
+
resolveType(val) === 0 &&
|
|
26
|
+
(hasOwn(val, 'b') || hasOwn(val, 'body')));
|
|
27
|
+
}
|
|
28
|
+
const PROPS_BODY = ['b', 'body'];
|
|
29
|
+
function resolveBody(node) {
|
|
30
|
+
return resolveProps(node, PROPS_BODY);
|
|
31
|
+
}
|
|
32
|
+
const PROPS_CASES = ['c', 'cases'];
|
|
33
|
+
function resolveCases(node) {
|
|
34
|
+
return resolveProps(node, PROPS_CASES, []);
|
|
35
|
+
}
|
|
36
|
+
const PROPS_STATIC = ['s', 'static'];
|
|
37
|
+
function resolveStatic(node) {
|
|
38
|
+
return resolveProps(node, PROPS_STATIC);
|
|
39
|
+
}
|
|
40
|
+
const PROPS_ITEMS = ['i', 'items'];
|
|
41
|
+
function resolveItems(node) {
|
|
42
|
+
return resolveProps(node, PROPS_ITEMS, []);
|
|
43
|
+
}
|
|
44
|
+
const PROPS_TYPE = ['t', 'type'];
|
|
45
|
+
function resolveType(node) {
|
|
46
|
+
return resolveProps(node, PROPS_TYPE);
|
|
47
|
+
}
|
|
48
|
+
const PROPS_VALUE = ['v', 'value'];
|
|
49
|
+
function resolveValue$1(node, type) {
|
|
50
|
+
const resolved = resolveProps(node, PROPS_VALUE);
|
|
51
|
+
if (resolved != null) {
|
|
52
|
+
return resolved;
|
|
53
|
+
}
|
|
54
|
+
else {
|
|
55
|
+
throw createUnhandleNodeError(type);
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
const PROPS_MODIFIER = ['m', 'modifier'];
|
|
59
|
+
function resolveLinkedModifier(node) {
|
|
60
|
+
return resolveProps(node, PROPS_MODIFIER);
|
|
61
|
+
}
|
|
62
|
+
const PROPS_KEY = ['k', 'key'];
|
|
63
|
+
function resolveLinkedKey(node) {
|
|
64
|
+
const resolved = resolveProps(node, PROPS_KEY);
|
|
65
|
+
if (resolved) {
|
|
66
|
+
return resolved;
|
|
67
|
+
}
|
|
68
|
+
else {
|
|
69
|
+
throw createUnhandleNodeError(6 /* NodeTypes.Linked */);
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
function resolveProps(node, props, defaultValue) {
|
|
73
|
+
for (let i = 0; i < props.length; i++) {
|
|
74
|
+
const prop = props[i];
|
|
75
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
76
|
+
if (hasOwn(node, prop) && node[prop] != null) {
|
|
77
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
78
|
+
return node[prop];
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
return defaultValue;
|
|
82
|
+
}
|
|
83
|
+
const AST_NODE_PROPS_KEYS = [
|
|
84
|
+
...PROPS_BODY,
|
|
85
|
+
...PROPS_CASES,
|
|
86
|
+
...PROPS_STATIC,
|
|
87
|
+
...PROPS_ITEMS,
|
|
88
|
+
...PROPS_KEY,
|
|
89
|
+
...PROPS_MODIFIER,
|
|
90
|
+
...PROPS_VALUE,
|
|
91
|
+
...PROPS_TYPE
|
|
92
|
+
];
|
|
93
|
+
function createUnhandleNodeError(type) {
|
|
94
|
+
return new Error(`unhandled node type: ${type}`);
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
function format(ast) {
|
|
98
|
+
const msg = (ctx) => formatParts(ctx, ast);
|
|
99
|
+
return msg;
|
|
100
|
+
}
|
|
101
|
+
function formatParts(ctx, ast) {
|
|
102
|
+
const body = resolveBody(ast);
|
|
103
|
+
if (body == null) {
|
|
104
|
+
throw createUnhandleNodeError(0 /* NodeTypes.Resource */);
|
|
105
|
+
}
|
|
106
|
+
const type = resolveType(body);
|
|
107
|
+
if (type === 1 /* NodeTypes.Plural */) {
|
|
108
|
+
const plural = body;
|
|
109
|
+
const cases = resolveCases(plural);
|
|
110
|
+
return ctx.plural(cases.reduce((messages, c) => [
|
|
111
|
+
...messages,
|
|
112
|
+
formatMessageParts(ctx, c)
|
|
113
|
+
], []));
|
|
114
|
+
}
|
|
115
|
+
else {
|
|
116
|
+
return formatMessageParts(ctx, body);
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
function formatMessageParts(ctx, node) {
|
|
120
|
+
const static_ = resolveStatic(node);
|
|
121
|
+
if (static_ != null) {
|
|
122
|
+
return ctx.type === 'text'
|
|
123
|
+
? static_
|
|
124
|
+
: ctx.normalize([static_]);
|
|
125
|
+
}
|
|
126
|
+
else {
|
|
127
|
+
const messages = resolveItems(node).reduce((acm, c) => [...acm, formatMessagePart(ctx, c)], []);
|
|
128
|
+
return ctx.normalize(messages);
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
function formatMessagePart(ctx, node) {
|
|
132
|
+
const type = resolveType(node);
|
|
133
|
+
switch (type) {
|
|
134
|
+
case 3 /* NodeTypes.Text */: {
|
|
135
|
+
return resolveValue$1(node, type);
|
|
136
|
+
}
|
|
137
|
+
case 9 /* NodeTypes.Literal */: {
|
|
138
|
+
return resolveValue$1(node, type);
|
|
139
|
+
}
|
|
140
|
+
case 4 /* NodeTypes.Named */: {
|
|
141
|
+
const named = node;
|
|
142
|
+
if (hasOwn(named, 'k') && named.k) {
|
|
143
|
+
return ctx.interpolate(ctx.named(named.k));
|
|
144
|
+
}
|
|
145
|
+
if (hasOwn(named, 'key') && named.key) {
|
|
146
|
+
return ctx.interpolate(ctx.named(named.key));
|
|
147
|
+
}
|
|
148
|
+
throw createUnhandleNodeError(type);
|
|
149
|
+
}
|
|
150
|
+
case 5 /* NodeTypes.List */: {
|
|
151
|
+
const list = node;
|
|
152
|
+
if (hasOwn(list, 'i') && isNumber(list.i)) {
|
|
153
|
+
return ctx.interpolate(ctx.list(list.i));
|
|
154
|
+
}
|
|
155
|
+
if (hasOwn(list, 'index') && isNumber(list.index)) {
|
|
156
|
+
return ctx.interpolate(ctx.list(list.index));
|
|
157
|
+
}
|
|
158
|
+
throw createUnhandleNodeError(type);
|
|
159
|
+
}
|
|
160
|
+
case 6 /* NodeTypes.Linked */: {
|
|
161
|
+
const linked = node;
|
|
162
|
+
const modifier = resolveLinkedModifier(linked);
|
|
163
|
+
const key = resolveLinkedKey(linked);
|
|
164
|
+
return ctx.linked(formatMessagePart(ctx, key), modifier ? formatMessagePart(ctx, modifier) : undefined, ctx.type);
|
|
165
|
+
}
|
|
166
|
+
case 7 /* NodeTypes.LinkedKey */: {
|
|
167
|
+
return resolveValue$1(node, type);
|
|
168
|
+
}
|
|
169
|
+
case 8 /* NodeTypes.LinkedModifier */: {
|
|
170
|
+
return resolveValue$1(node, type);
|
|
171
|
+
}
|
|
172
|
+
default:
|
|
173
|
+
throw new Error(`unhandled node on format message part: ${type}`);
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
const WARN_MESSAGE = `Detected HTML in '{source}' message. Recommend not using HTML messages to avoid XSS.`;
|
|
178
|
+
function checkHtmlMessage(source, warnHtmlMessage) {
|
|
179
|
+
if (warnHtmlMessage && detectHtmlTag(source)) {
|
|
180
|
+
warn(format$1(WARN_MESSAGE, { source }));
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
const defaultOnCacheKey = (message) => message;
|
|
184
|
+
let compileCache = create();
|
|
185
|
+
function clearCompileCache() {
|
|
186
|
+
compileCache = create();
|
|
187
|
+
}
|
|
188
|
+
function baseCompile(message, options = {}) {
|
|
189
|
+
// error detecting on compile
|
|
190
|
+
let detectError = false;
|
|
191
|
+
const onError = options.onError || defaultOnError;
|
|
192
|
+
options.onError = (err) => {
|
|
193
|
+
detectError = true;
|
|
194
|
+
onError(err);
|
|
195
|
+
};
|
|
196
|
+
// compile with mesasge-compiler
|
|
197
|
+
return { ...baseCompile$1(message, options), detectError };
|
|
198
|
+
}
|
|
199
|
+
/* #__NO_SIDE_EFFECTS__ */
|
|
200
|
+
function compile(message, context) {
|
|
201
|
+
if ((!__INTLIFY_DROP_MESSAGE_COMPILER__) &&
|
|
202
|
+
isString(message)) {
|
|
203
|
+
// check HTML message
|
|
204
|
+
const warnHtmlMessage = isBoolean(context.warnHtmlMessage)
|
|
205
|
+
? context.warnHtmlMessage
|
|
206
|
+
: true;
|
|
207
|
+
(process.env.NODE_ENV !== 'production') && checkHtmlMessage(message, warnHtmlMessage);
|
|
208
|
+
// check caches
|
|
209
|
+
const onCacheKey = context.onCacheKey || defaultOnCacheKey;
|
|
210
|
+
const cacheKey = onCacheKey(message);
|
|
211
|
+
const cached = compileCache[cacheKey];
|
|
212
|
+
if (cached) {
|
|
213
|
+
return cached;
|
|
214
|
+
}
|
|
215
|
+
// compile with JIT mode
|
|
216
|
+
const { ast, detectError } = baseCompile(message, {
|
|
217
|
+
...context,
|
|
218
|
+
location: (process.env.NODE_ENV !== 'production'),
|
|
219
|
+
jit: true
|
|
220
|
+
});
|
|
221
|
+
// compose message function from AST
|
|
222
|
+
const msg = format(ast);
|
|
223
|
+
// if occurred compile error, don't cache
|
|
224
|
+
return !detectError
|
|
225
|
+
? (compileCache[cacheKey] = msg)
|
|
226
|
+
: msg;
|
|
227
|
+
}
|
|
228
|
+
else {
|
|
229
|
+
if ((process.env.NODE_ENV !== 'production') && !isMessageAST(message)) {
|
|
230
|
+
warn(`the message that is resolve with key '${context.key}' is not supported for jit compilation`);
|
|
231
|
+
return (() => message);
|
|
232
|
+
}
|
|
233
|
+
// AST case (passed from bundler)
|
|
234
|
+
const cacheKey = message.cacheKey;
|
|
235
|
+
if (cacheKey) {
|
|
236
|
+
const cached = compileCache[cacheKey];
|
|
237
|
+
if (cached) {
|
|
238
|
+
return cached;
|
|
239
|
+
}
|
|
240
|
+
// compose message function from message (AST)
|
|
241
|
+
return (compileCache[cacheKey] =
|
|
242
|
+
format(message));
|
|
243
|
+
}
|
|
244
|
+
else {
|
|
245
|
+
return format(message);
|
|
246
|
+
}
|
|
247
|
+
}
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
let devtools = null;
|
|
251
|
+
function setDevToolsHook(hook) {
|
|
252
|
+
devtools = hook;
|
|
253
|
+
}
|
|
254
|
+
function getDevToolsHook() {
|
|
255
|
+
return devtools;
|
|
256
|
+
}
|
|
257
|
+
function initI18nDevTools(i18n, version, meta) {
|
|
258
|
+
// TODO: queue if devtools is undefined
|
|
259
|
+
devtools &&
|
|
260
|
+
devtools.emit('i18n:init', {
|
|
261
|
+
timestamp: Date.now(),
|
|
262
|
+
i18n,
|
|
263
|
+
version,
|
|
264
|
+
meta
|
|
265
|
+
});
|
|
266
|
+
}
|
|
267
|
+
const translateDevTools =
|
|
268
|
+
/* #__PURE__*/ createDevToolsHook('function:translate');
|
|
269
|
+
function createDevToolsHook(hook) {
|
|
270
|
+
return (payloads) => devtools && devtools.emit(hook, payloads);
|
|
271
|
+
}
|
|
272
|
+
|
|
273
|
+
const CoreErrorCodes = {
|
|
274
|
+
INVALID_ARGUMENT: COMPILE_ERROR_CODES_EXTEND_POINT, // 17
|
|
275
|
+
INVALID_DATE_ARGUMENT: 18,
|
|
276
|
+
INVALID_ISO_DATE_ARGUMENT: 19,
|
|
277
|
+
NOT_SUPPORT_NON_STRING_MESSAGE: 20,
|
|
278
|
+
NOT_SUPPORT_LOCALE_PROMISE_VALUE: 21,
|
|
279
|
+
NOT_SUPPORT_LOCALE_ASYNC_FUNCTION: 22,
|
|
280
|
+
NOT_SUPPORT_LOCALE_TYPE: 23
|
|
281
|
+
};
|
|
282
|
+
const CORE_ERROR_CODES_EXTEND_POINT = 24;
|
|
283
|
+
function createCoreError(code) {
|
|
284
|
+
return createCompileError(code, null, (process.env.NODE_ENV !== 'production') ? { messages: errorMessages } : undefined);
|
|
285
|
+
}
|
|
286
|
+
/** @internal */
|
|
287
|
+
const errorMessages = {
|
|
288
|
+
[CoreErrorCodes.INVALID_ARGUMENT]: 'Invalid arguments',
|
|
289
|
+
[CoreErrorCodes.INVALID_DATE_ARGUMENT]: 'The date provided is an invalid Date object.' +
|
|
290
|
+
'Make sure your Date represents a valid date.',
|
|
291
|
+
[CoreErrorCodes.INVALID_ISO_DATE_ARGUMENT]: 'The argument provided is not a valid ISO date string',
|
|
292
|
+
[CoreErrorCodes.NOT_SUPPORT_NON_STRING_MESSAGE]: 'Not support non-string message',
|
|
293
|
+
[CoreErrorCodes.NOT_SUPPORT_LOCALE_PROMISE_VALUE]: 'cannot support promise value',
|
|
294
|
+
[CoreErrorCodes.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION]: 'cannot support async function',
|
|
295
|
+
[CoreErrorCodes.NOT_SUPPORT_LOCALE_TYPE]: 'cannot support locale type'
|
|
296
|
+
};
|
|
297
|
+
|
|
298
|
+
/** @internal */
|
|
299
|
+
function getLocale(context, options) {
|
|
300
|
+
return options.locale != null
|
|
301
|
+
? resolveLocale(options.locale)
|
|
302
|
+
: resolveLocale(context.locale);
|
|
303
|
+
}
|
|
304
|
+
let _resolveLocale;
|
|
305
|
+
/** @internal */
|
|
306
|
+
function resolveLocale(locale) {
|
|
307
|
+
if (isString(locale)) {
|
|
308
|
+
return locale;
|
|
309
|
+
}
|
|
310
|
+
else {
|
|
311
|
+
if (isFunction(locale)) {
|
|
312
|
+
if (locale.resolvedOnce && _resolveLocale != null) {
|
|
313
|
+
return _resolveLocale;
|
|
314
|
+
}
|
|
315
|
+
else if (locale.constructor.name === 'Function') {
|
|
316
|
+
const resolve = locale();
|
|
317
|
+
if (isPromise(resolve)) {
|
|
318
|
+
throw createCoreError(CoreErrorCodes.NOT_SUPPORT_LOCALE_PROMISE_VALUE);
|
|
319
|
+
}
|
|
320
|
+
return (_resolveLocale = resolve);
|
|
321
|
+
}
|
|
322
|
+
else {
|
|
323
|
+
throw createCoreError(CoreErrorCodes.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION);
|
|
324
|
+
}
|
|
325
|
+
}
|
|
326
|
+
else {
|
|
327
|
+
throw createCoreError(CoreErrorCodes.NOT_SUPPORT_LOCALE_TYPE);
|
|
328
|
+
}
|
|
329
|
+
}
|
|
330
|
+
}
|
|
331
|
+
/**
|
|
332
|
+
* Fallback with simple implemenation
|
|
333
|
+
*
|
|
334
|
+
* @remarks
|
|
335
|
+
* A fallback locale function implemented with a simple fallback algorithm.
|
|
336
|
+
*
|
|
337
|
+
* Basically, it returns the value as specified in the `fallbackLocale` props, and is processed with the fallback inside intlify.
|
|
338
|
+
*
|
|
339
|
+
* @param ctx - A {@link CoreContext | context}
|
|
340
|
+
* @param fallback - A {@link FallbackLocale | fallback locale}
|
|
341
|
+
* @param start - A starting {@link Locale | locale}
|
|
342
|
+
*
|
|
343
|
+
* @returns Fallback locales
|
|
344
|
+
*
|
|
345
|
+
* @VueI18nGeneral
|
|
346
|
+
*/
|
|
347
|
+
function fallbackWithSimple(ctx, fallback, start) {
|
|
348
|
+
// prettier-ignore
|
|
349
|
+
return [...new Set([
|
|
350
|
+
start,
|
|
351
|
+
...(isArray(fallback)
|
|
352
|
+
? fallback
|
|
353
|
+
: isObject(fallback)
|
|
354
|
+
? Object.keys(fallback)
|
|
355
|
+
: isString(fallback)
|
|
356
|
+
? [fallback]
|
|
357
|
+
: [start])
|
|
358
|
+
])];
|
|
359
|
+
}
|
|
360
|
+
/**
|
|
361
|
+
* Fallback with locale chain
|
|
362
|
+
*
|
|
363
|
+
* @remarks
|
|
364
|
+
* A fallback locale function implemented with a fallback chain algorithm. It's used in VueI18n as default.
|
|
365
|
+
*
|
|
366
|
+
* @param ctx - A {@link CoreContext | context}
|
|
367
|
+
* @param fallback - A {@link FallbackLocale | fallback locale}
|
|
368
|
+
* @param start - A starting {@link Locale | locale}
|
|
369
|
+
*
|
|
370
|
+
* @returns Fallback locales
|
|
371
|
+
*
|
|
372
|
+
* @VueI18nSee [Fallbacking](../guide/essentials/fallback)
|
|
373
|
+
*
|
|
374
|
+
* @VueI18nGeneral
|
|
375
|
+
*/
|
|
376
|
+
function fallbackWithLocaleChain(ctx, fallback, start) {
|
|
377
|
+
const startLocale = isString(start) ? start : DEFAULT_LOCALE;
|
|
378
|
+
const context = ctx;
|
|
379
|
+
if (!context.__localeChainCache) {
|
|
380
|
+
context.__localeChainCache = new Map();
|
|
381
|
+
}
|
|
382
|
+
let chain = context.__localeChainCache.get(startLocale);
|
|
383
|
+
if (!chain) {
|
|
384
|
+
chain = [];
|
|
385
|
+
// first block defined by start
|
|
386
|
+
let block = [start];
|
|
387
|
+
// while any intervening block found
|
|
388
|
+
while (isArray(block)) {
|
|
389
|
+
block = appendBlockToChain(chain, block, fallback);
|
|
390
|
+
}
|
|
391
|
+
// prettier-ignore
|
|
392
|
+
// last block defined by default
|
|
393
|
+
const defaults = isArray(fallback) || !isPlainObject(fallback)
|
|
394
|
+
? fallback
|
|
395
|
+
: fallback['default']
|
|
396
|
+
? fallback['default']
|
|
397
|
+
: null;
|
|
398
|
+
// convert defaults to array
|
|
399
|
+
block = isString(defaults) ? [defaults] : defaults;
|
|
400
|
+
if (isArray(block)) {
|
|
401
|
+
appendBlockToChain(chain, block, false);
|
|
402
|
+
}
|
|
403
|
+
context.__localeChainCache.set(startLocale, chain);
|
|
404
|
+
}
|
|
405
|
+
return chain;
|
|
406
|
+
}
|
|
407
|
+
function appendBlockToChain(chain, block, blocks) {
|
|
408
|
+
let follow = true;
|
|
409
|
+
for (let i = 0; i < block.length && isBoolean(follow); i++) {
|
|
410
|
+
const locale = block[i];
|
|
411
|
+
if (isString(locale)) {
|
|
412
|
+
follow = appendLocaleToChain(chain, block[i], blocks);
|
|
413
|
+
}
|
|
414
|
+
}
|
|
415
|
+
return follow;
|
|
416
|
+
}
|
|
417
|
+
function appendLocaleToChain(chain, locale, blocks) {
|
|
418
|
+
let follow;
|
|
419
|
+
const tokens = locale.split('-');
|
|
420
|
+
do {
|
|
421
|
+
const target = tokens.join('-');
|
|
422
|
+
follow = appendItemToChain(chain, target, blocks);
|
|
423
|
+
tokens.splice(-1, 1);
|
|
424
|
+
} while (tokens.length && follow === true);
|
|
425
|
+
return follow;
|
|
426
|
+
}
|
|
427
|
+
function appendItemToChain(chain, target, blocks) {
|
|
428
|
+
let follow = false;
|
|
429
|
+
if (!chain.includes(target)) {
|
|
430
|
+
follow = true;
|
|
431
|
+
if (target) {
|
|
432
|
+
follow = target[target.length - 1] !== '!';
|
|
433
|
+
const locale = target.replace(/!/g, '');
|
|
434
|
+
chain.push(locale);
|
|
435
|
+
if ((isArray(blocks) || isPlainObject(blocks)) &&
|
|
436
|
+
blocks[locale] // eslint-disable-line @typescript-eslint/no-explicit-any
|
|
437
|
+
) {
|
|
438
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
439
|
+
follow = blocks[locale];
|
|
440
|
+
}
|
|
441
|
+
}
|
|
442
|
+
}
|
|
443
|
+
return follow;
|
|
444
|
+
}
|
|
445
|
+
|
|
446
|
+
const pathStateMachine = [];
|
|
447
|
+
pathStateMachine[0 /* States.BEFORE_PATH */] = {
|
|
448
|
+
["w" /* PathCharTypes.WORKSPACE */]: [0 /* States.BEFORE_PATH */],
|
|
449
|
+
["i" /* PathCharTypes.IDENT */]: [3 /* States.IN_IDENT */, 0 /* Actions.APPEND */],
|
|
450
|
+
["[" /* PathCharTypes.LEFT_BRACKET */]: [4 /* States.IN_SUB_PATH */],
|
|
451
|
+
["o" /* PathCharTypes.END_OF_FAIL */]: [7 /* States.AFTER_PATH */]
|
|
452
|
+
};
|
|
453
|
+
pathStateMachine[1 /* States.IN_PATH */] = {
|
|
454
|
+
["w" /* PathCharTypes.WORKSPACE */]: [1 /* States.IN_PATH */],
|
|
455
|
+
["." /* PathCharTypes.DOT */]: [2 /* States.BEFORE_IDENT */],
|
|
456
|
+
["[" /* PathCharTypes.LEFT_BRACKET */]: [4 /* States.IN_SUB_PATH */],
|
|
457
|
+
["o" /* PathCharTypes.END_OF_FAIL */]: [7 /* States.AFTER_PATH */]
|
|
458
|
+
};
|
|
459
|
+
pathStateMachine[2 /* States.BEFORE_IDENT */] = {
|
|
460
|
+
["w" /* PathCharTypes.WORKSPACE */]: [2 /* States.BEFORE_IDENT */],
|
|
461
|
+
["i" /* PathCharTypes.IDENT */]: [3 /* States.IN_IDENT */, 0 /* Actions.APPEND */],
|
|
462
|
+
["0" /* PathCharTypes.ZERO */]: [3 /* States.IN_IDENT */, 0 /* Actions.APPEND */]
|
|
463
|
+
};
|
|
464
|
+
pathStateMachine[3 /* States.IN_IDENT */] = {
|
|
465
|
+
["i" /* PathCharTypes.IDENT */]: [3 /* States.IN_IDENT */, 0 /* Actions.APPEND */],
|
|
466
|
+
["0" /* PathCharTypes.ZERO */]: [3 /* States.IN_IDENT */, 0 /* Actions.APPEND */],
|
|
467
|
+
["w" /* PathCharTypes.WORKSPACE */]: [1 /* States.IN_PATH */, 1 /* Actions.PUSH */],
|
|
468
|
+
["." /* PathCharTypes.DOT */]: [2 /* States.BEFORE_IDENT */, 1 /* Actions.PUSH */],
|
|
469
|
+
["[" /* PathCharTypes.LEFT_BRACKET */]: [4 /* States.IN_SUB_PATH */, 1 /* Actions.PUSH */],
|
|
470
|
+
["o" /* PathCharTypes.END_OF_FAIL */]: [7 /* States.AFTER_PATH */, 1 /* Actions.PUSH */]
|
|
471
|
+
};
|
|
472
|
+
pathStateMachine[4 /* States.IN_SUB_PATH */] = {
|
|
473
|
+
["'" /* PathCharTypes.SINGLE_QUOTE */]: [5 /* States.IN_SINGLE_QUOTE */, 0 /* Actions.APPEND */],
|
|
474
|
+
["\"" /* PathCharTypes.DOUBLE_QUOTE */]: [6 /* States.IN_DOUBLE_QUOTE */, 0 /* Actions.APPEND */],
|
|
475
|
+
["[" /* PathCharTypes.LEFT_BRACKET */]: [
|
|
476
|
+
4 /* States.IN_SUB_PATH */,
|
|
477
|
+
2 /* Actions.INC_SUB_PATH_DEPTH */
|
|
478
|
+
],
|
|
479
|
+
["]" /* PathCharTypes.RIGHT_BRACKET */]: [1 /* States.IN_PATH */, 3 /* Actions.PUSH_SUB_PATH */],
|
|
480
|
+
["o" /* PathCharTypes.END_OF_FAIL */]: 8 /* States.ERROR */,
|
|
481
|
+
["l" /* PathCharTypes.ELSE */]: [4 /* States.IN_SUB_PATH */, 0 /* Actions.APPEND */]
|
|
482
|
+
};
|
|
483
|
+
pathStateMachine[5 /* States.IN_SINGLE_QUOTE */] = {
|
|
484
|
+
["'" /* PathCharTypes.SINGLE_QUOTE */]: [4 /* States.IN_SUB_PATH */, 0 /* Actions.APPEND */],
|
|
485
|
+
["o" /* PathCharTypes.END_OF_FAIL */]: 8 /* States.ERROR */,
|
|
486
|
+
["l" /* PathCharTypes.ELSE */]: [5 /* States.IN_SINGLE_QUOTE */, 0 /* Actions.APPEND */]
|
|
487
|
+
};
|
|
488
|
+
pathStateMachine[6 /* States.IN_DOUBLE_QUOTE */] = {
|
|
489
|
+
["\"" /* PathCharTypes.DOUBLE_QUOTE */]: [4 /* States.IN_SUB_PATH */, 0 /* Actions.APPEND */],
|
|
490
|
+
["o" /* PathCharTypes.END_OF_FAIL */]: 8 /* States.ERROR */,
|
|
491
|
+
["l" /* PathCharTypes.ELSE */]: [6 /* States.IN_DOUBLE_QUOTE */, 0 /* Actions.APPEND */]
|
|
492
|
+
};
|
|
493
|
+
/**
|
|
494
|
+
* Check if an expression is a literal value.
|
|
495
|
+
*/
|
|
496
|
+
const literalValueRE = /^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;
|
|
497
|
+
function isLiteral(exp) {
|
|
498
|
+
return literalValueRE.test(exp);
|
|
499
|
+
}
|
|
500
|
+
/**
|
|
501
|
+
* Strip quotes from a string
|
|
502
|
+
*/
|
|
503
|
+
function stripQuotes(str) {
|
|
504
|
+
const a = str.charCodeAt(0);
|
|
505
|
+
const b = str.charCodeAt(str.length - 1);
|
|
506
|
+
return a === b && (a === 0x22 || a === 0x27) ? str.slice(1, -1) : str;
|
|
507
|
+
}
|
|
508
|
+
/**
|
|
509
|
+
* Determine the type of a character in a keypath.
|
|
510
|
+
*/
|
|
511
|
+
function getPathCharType(ch) {
|
|
512
|
+
if (ch === undefined || ch === null) {
|
|
513
|
+
return "o" /* PathCharTypes.END_OF_FAIL */;
|
|
514
|
+
}
|
|
515
|
+
const code = ch.charCodeAt(0);
|
|
516
|
+
switch (code) {
|
|
517
|
+
case 0x5b: // [
|
|
518
|
+
case 0x5d: // ]
|
|
519
|
+
case 0x2e: // .
|
|
520
|
+
case 0x22: // "
|
|
521
|
+
case 0x27: // '
|
|
522
|
+
return ch;
|
|
523
|
+
case 0x5f: // _
|
|
524
|
+
case 0x24: // $
|
|
525
|
+
case 0x2d: // -
|
|
526
|
+
return "i" /* PathCharTypes.IDENT */;
|
|
527
|
+
case 0x09: // Tab (HT)
|
|
528
|
+
case 0x0a: // Newline (LF)
|
|
529
|
+
case 0x0d: // Return (CR)
|
|
530
|
+
case 0xa0: // No-break space (NBSP)
|
|
531
|
+
case 0xfeff: // Byte Order Mark (BOM)
|
|
532
|
+
case 0x2028: // Line Separator (LS)
|
|
533
|
+
case 0x2029: // Paragraph Separator (PS)
|
|
534
|
+
return "w" /* PathCharTypes.WORKSPACE */;
|
|
535
|
+
}
|
|
536
|
+
return "i" /* PathCharTypes.IDENT */;
|
|
537
|
+
}
|
|
538
|
+
/**
|
|
539
|
+
* Format a subPath, return its plain form if it is
|
|
540
|
+
* a literal string or number. Otherwise prepend the
|
|
541
|
+
* dynamic indicator (*).
|
|
542
|
+
*/
|
|
543
|
+
function formatSubPath(path) {
|
|
544
|
+
const trimmed = path.trim();
|
|
545
|
+
// invalid leading 0
|
|
546
|
+
if (path.charAt(0) === '0' && isNaN(parseInt(path))) {
|
|
547
|
+
return false;
|
|
548
|
+
}
|
|
549
|
+
return isLiteral(trimmed)
|
|
550
|
+
? stripQuotes(trimmed)
|
|
551
|
+
: "*" /* PathCharTypes.ASTARISK */ + trimmed;
|
|
552
|
+
}
|
|
553
|
+
/**
|
|
554
|
+
* Parse a string path into an array of segments
|
|
555
|
+
*/
|
|
556
|
+
function parse(path) {
|
|
557
|
+
const keys = [];
|
|
558
|
+
let index = -1;
|
|
559
|
+
let mode = 0 /* States.BEFORE_PATH */;
|
|
560
|
+
let subPathDepth = 0;
|
|
561
|
+
let c;
|
|
562
|
+
let key; // eslint-disable-line
|
|
563
|
+
let newChar;
|
|
564
|
+
let type;
|
|
565
|
+
let transition;
|
|
566
|
+
let action;
|
|
567
|
+
let typeMap;
|
|
568
|
+
const actions = [];
|
|
569
|
+
actions[0 /* Actions.APPEND */] = () => {
|
|
570
|
+
if (key === undefined) {
|
|
571
|
+
key = newChar;
|
|
572
|
+
}
|
|
573
|
+
else {
|
|
574
|
+
key += newChar;
|
|
575
|
+
}
|
|
576
|
+
};
|
|
577
|
+
actions[1 /* Actions.PUSH */] = () => {
|
|
578
|
+
if (key !== undefined) {
|
|
579
|
+
keys.push(key);
|
|
580
|
+
key = undefined;
|
|
581
|
+
}
|
|
582
|
+
};
|
|
583
|
+
actions[2 /* Actions.INC_SUB_PATH_DEPTH */] = () => {
|
|
584
|
+
actions[0 /* Actions.APPEND */]();
|
|
585
|
+
subPathDepth++;
|
|
586
|
+
};
|
|
587
|
+
actions[3 /* Actions.PUSH_SUB_PATH */] = () => {
|
|
588
|
+
if (subPathDepth > 0) {
|
|
589
|
+
subPathDepth--;
|
|
590
|
+
mode = 4 /* States.IN_SUB_PATH */;
|
|
591
|
+
actions[0 /* Actions.APPEND */]();
|
|
592
|
+
}
|
|
593
|
+
else {
|
|
594
|
+
subPathDepth = 0;
|
|
595
|
+
if (key === undefined) {
|
|
596
|
+
return false;
|
|
597
|
+
}
|
|
598
|
+
key = formatSubPath(key);
|
|
599
|
+
if (key === false) {
|
|
600
|
+
return false;
|
|
601
|
+
}
|
|
602
|
+
else {
|
|
603
|
+
actions[1 /* Actions.PUSH */]();
|
|
604
|
+
}
|
|
605
|
+
}
|
|
606
|
+
};
|
|
607
|
+
function maybeUnescapeQuote() {
|
|
608
|
+
const nextChar = path[index + 1];
|
|
609
|
+
if ((mode === 5 /* States.IN_SINGLE_QUOTE */ &&
|
|
610
|
+
nextChar === "'" /* PathCharTypes.SINGLE_QUOTE */) ||
|
|
611
|
+
(mode === 6 /* States.IN_DOUBLE_QUOTE */ &&
|
|
612
|
+
nextChar === "\"" /* PathCharTypes.DOUBLE_QUOTE */)) {
|
|
613
|
+
index++;
|
|
614
|
+
newChar = '\\' + nextChar;
|
|
615
|
+
actions[0 /* Actions.APPEND */]();
|
|
616
|
+
return true;
|
|
617
|
+
}
|
|
618
|
+
}
|
|
619
|
+
while (mode !== null) {
|
|
620
|
+
index++;
|
|
621
|
+
c = path[index];
|
|
622
|
+
if (c === '\\' && maybeUnescapeQuote()) {
|
|
623
|
+
continue;
|
|
624
|
+
}
|
|
625
|
+
type = getPathCharType(c);
|
|
626
|
+
typeMap = pathStateMachine[mode];
|
|
627
|
+
transition = typeMap[type] || typeMap["l" /* PathCharTypes.ELSE */] || 8 /* States.ERROR */;
|
|
628
|
+
// check parse error
|
|
629
|
+
if (transition === 8 /* States.ERROR */) {
|
|
630
|
+
return;
|
|
631
|
+
}
|
|
632
|
+
mode = transition[0];
|
|
633
|
+
if (transition[1] !== undefined) {
|
|
634
|
+
action = actions[transition[1]];
|
|
635
|
+
if (action) {
|
|
636
|
+
newChar = c;
|
|
637
|
+
if (action() === false) {
|
|
638
|
+
return;
|
|
639
|
+
}
|
|
640
|
+
}
|
|
641
|
+
}
|
|
642
|
+
// check parse finish
|
|
643
|
+
if (mode === 7 /* States.AFTER_PATH */) {
|
|
644
|
+
return keys;
|
|
645
|
+
}
|
|
646
|
+
}
|
|
647
|
+
}
|
|
648
|
+
// path token cache
|
|
649
|
+
const cache = new Map();
|
|
650
|
+
/**
|
|
651
|
+
* key-value message resolver
|
|
652
|
+
*
|
|
653
|
+
* @remarks
|
|
654
|
+
* Resolves messages with the key-value structure. Note that messages with a hierarchical structure such as objects cannot be resolved
|
|
655
|
+
*
|
|
656
|
+
* @param obj - A target object to be resolved with path
|
|
657
|
+
* @param path - A {@link Path | path} to resolve the value of message
|
|
658
|
+
*
|
|
659
|
+
* @returns A resolved {@link PathValue | path value}
|
|
660
|
+
*
|
|
661
|
+
* @VueI18nGeneral
|
|
662
|
+
*/
|
|
663
|
+
function resolveWithKeyValue(obj, path) {
|
|
664
|
+
return isObject(obj) ? obj[path] : null;
|
|
665
|
+
}
|
|
666
|
+
/**
|
|
667
|
+
* message resolver
|
|
668
|
+
*
|
|
669
|
+
* @remarks
|
|
670
|
+
* Resolves messages. messages with a hierarchical structure such as objects can be resolved. This resolver is used in VueI18n as default.
|
|
671
|
+
*
|
|
672
|
+
* @param obj - A target object to be resolved with path
|
|
673
|
+
* @param path - A {@link Path | path} to resolve the value of message
|
|
674
|
+
*
|
|
675
|
+
* @returns A resolved {@link PathValue | path value}
|
|
676
|
+
*
|
|
677
|
+
* @VueI18nGeneral
|
|
678
|
+
*/
|
|
679
|
+
function resolveValue(obj, path) {
|
|
680
|
+
// check object
|
|
681
|
+
if (!isObject(obj)) {
|
|
682
|
+
return null;
|
|
683
|
+
}
|
|
684
|
+
// parse path
|
|
685
|
+
let hit = cache.get(path);
|
|
686
|
+
if (!hit) {
|
|
687
|
+
hit = parse(path);
|
|
688
|
+
if (hit) {
|
|
689
|
+
cache.set(path, hit);
|
|
690
|
+
}
|
|
691
|
+
}
|
|
692
|
+
// check hit
|
|
693
|
+
if (!hit) {
|
|
694
|
+
return null;
|
|
695
|
+
}
|
|
696
|
+
// resolve path value
|
|
697
|
+
const len = hit.length;
|
|
698
|
+
let last = obj;
|
|
699
|
+
let i = 0;
|
|
700
|
+
while (i < len) {
|
|
701
|
+
const key = hit[i];
|
|
702
|
+
/**
|
|
703
|
+
* NOTE:
|
|
704
|
+
* if `key` is intlify message format AST node key and `last` is intlify message format AST, skip it.
|
|
705
|
+
* because the AST node is not a key-value structure.
|
|
706
|
+
*/
|
|
707
|
+
if (AST_NODE_PROPS_KEYS.includes(key) && isMessageAST(last)) {
|
|
708
|
+
return null;
|
|
709
|
+
}
|
|
710
|
+
const val = last[key];
|
|
711
|
+
if (val === undefined) {
|
|
712
|
+
return null;
|
|
713
|
+
}
|
|
714
|
+
if (isFunction(last)) {
|
|
715
|
+
return null;
|
|
716
|
+
}
|
|
717
|
+
last = val;
|
|
718
|
+
i++;
|
|
719
|
+
}
|
|
720
|
+
return last;
|
|
721
|
+
}
|
|
722
|
+
|
|
723
|
+
const CoreWarnCodes = {
|
|
724
|
+
NOT_FOUND_KEY: 1,
|
|
725
|
+
FALLBACK_TO_TRANSLATE: 2,
|
|
726
|
+
CANNOT_FORMAT_NUMBER: 3,
|
|
727
|
+
FALLBACK_TO_NUMBER_FORMAT: 4,
|
|
728
|
+
CANNOT_FORMAT_DATE: 5,
|
|
729
|
+
FALLBACK_TO_DATE_FORMAT: 6,
|
|
730
|
+
EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER: 7
|
|
731
|
+
};
|
|
732
|
+
const CORE_WARN_CODES_EXTEND_POINT = 8;
|
|
733
|
+
/** @internal */
|
|
734
|
+
const warnMessages = {
|
|
735
|
+
[CoreWarnCodes.NOT_FOUND_KEY]: `Not found '{key}' key in '{locale}' locale messages.`,
|
|
736
|
+
[CoreWarnCodes.FALLBACK_TO_TRANSLATE]: `Fall back to translate '{key}' key with '{target}' locale.`,
|
|
737
|
+
[CoreWarnCodes.CANNOT_FORMAT_NUMBER]: `Cannot format a number value due to not supported Intl.NumberFormat.`,
|
|
738
|
+
[CoreWarnCodes.FALLBACK_TO_NUMBER_FORMAT]: `Fall back to number format '{key}' key with '{target}' locale.`,
|
|
739
|
+
[CoreWarnCodes.CANNOT_FORMAT_DATE]: `Cannot format a date value due to not supported Intl.DateTimeFormat.`,
|
|
740
|
+
[CoreWarnCodes.FALLBACK_TO_DATE_FORMAT]: `Fall back to datetime format '{key}' key with '{target}' locale.`,
|
|
741
|
+
[CoreWarnCodes.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.`
|
|
742
|
+
};
|
|
743
|
+
function getWarnMessage(code, ...args) {
|
|
744
|
+
return format$1(warnMessages[code], ...args);
|
|
745
|
+
}
|
|
746
|
+
|
|
747
|
+
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
748
|
+
/**
|
|
749
|
+
* Intlify core-base version
|
|
750
|
+
* @internal
|
|
751
|
+
*/
|
|
752
|
+
const VERSION = '11.2.8';
|
|
753
|
+
const NOT_REOSLVED = -1;
|
|
754
|
+
const DEFAULT_LOCALE = 'en-US';
|
|
755
|
+
const MISSING_RESOLVE_VALUE = '';
|
|
756
|
+
const capitalize = (str) => `${str.charAt(0).toLocaleUpperCase()}${str.substr(1)}`;
|
|
757
|
+
function getDefaultLinkedModifiers() {
|
|
758
|
+
return {
|
|
759
|
+
upper: (val, type) => {
|
|
760
|
+
// prettier-ignore
|
|
761
|
+
return type === 'text' && isString(val)
|
|
762
|
+
? val.toUpperCase()
|
|
763
|
+
: type === 'vnode' && isObject(val) && '__v_isVNode' in val
|
|
764
|
+
? val.children.toUpperCase()
|
|
765
|
+
: val;
|
|
766
|
+
},
|
|
767
|
+
lower: (val, type) => {
|
|
768
|
+
// prettier-ignore
|
|
769
|
+
return type === 'text' && isString(val)
|
|
770
|
+
? val.toLowerCase()
|
|
771
|
+
: type === 'vnode' && isObject(val) && '__v_isVNode' in val
|
|
772
|
+
? val.children.toLowerCase()
|
|
773
|
+
: val;
|
|
774
|
+
},
|
|
775
|
+
capitalize: (val, type) => {
|
|
776
|
+
// prettier-ignore
|
|
777
|
+
return (type === 'text' && isString(val)
|
|
778
|
+
? capitalize(val)
|
|
779
|
+
: type === 'vnode' && isObject(val) && '__v_isVNode' in val
|
|
780
|
+
? capitalize(val.children)
|
|
781
|
+
: val);
|
|
782
|
+
}
|
|
783
|
+
};
|
|
784
|
+
}
|
|
785
|
+
let _compiler;
|
|
786
|
+
function registerMessageCompiler(compiler) {
|
|
787
|
+
_compiler = compiler;
|
|
788
|
+
}
|
|
789
|
+
let _resolver;
|
|
790
|
+
/**
|
|
791
|
+
* Register the message resolver
|
|
792
|
+
*
|
|
793
|
+
* @param resolver - A {@link MessageResolver} function
|
|
794
|
+
*
|
|
795
|
+
* @VueI18nGeneral
|
|
796
|
+
*/
|
|
797
|
+
function registerMessageResolver(resolver) {
|
|
798
|
+
_resolver = resolver;
|
|
799
|
+
}
|
|
800
|
+
let _fallbacker;
|
|
801
|
+
/**
|
|
802
|
+
* Register the locale fallbacker
|
|
803
|
+
*
|
|
804
|
+
* @param fallbacker - A {@link LocaleFallbacker} function
|
|
805
|
+
*
|
|
806
|
+
* @VueI18nGeneral
|
|
807
|
+
*/
|
|
808
|
+
function registerLocaleFallbacker(fallbacker) {
|
|
809
|
+
_fallbacker = fallbacker;
|
|
810
|
+
}
|
|
811
|
+
// Additional Meta for Intlify DevTools
|
|
812
|
+
let _additionalMeta = null;
|
|
813
|
+
/* #__NO_SIDE_EFFECTS__ */
|
|
814
|
+
const setAdditionalMeta = (meta) => {
|
|
815
|
+
_additionalMeta = meta;
|
|
816
|
+
};
|
|
817
|
+
/* #__NO_SIDE_EFFECTS__ */
|
|
818
|
+
const getAdditionalMeta = () => _additionalMeta;
|
|
819
|
+
let _fallbackContext = null;
|
|
820
|
+
const setFallbackContext = (context) => {
|
|
821
|
+
_fallbackContext = context;
|
|
822
|
+
};
|
|
823
|
+
const getFallbackContext = () => _fallbackContext;
|
|
824
|
+
// ID for CoreContext
|
|
825
|
+
let _cid = 0;
|
|
826
|
+
function createCoreContext(options = {}) {
|
|
827
|
+
// setup options
|
|
828
|
+
const onWarn = isFunction(options.onWarn) ? options.onWarn : warn;
|
|
829
|
+
const version = isString(options.version) ? options.version : VERSION;
|
|
830
|
+
const locale = isString(options.locale) || isFunction(options.locale)
|
|
831
|
+
? options.locale
|
|
832
|
+
: DEFAULT_LOCALE;
|
|
833
|
+
const _locale = isFunction(locale) ? DEFAULT_LOCALE : locale;
|
|
834
|
+
const fallbackLocale = isArray(options.fallbackLocale) ||
|
|
835
|
+
isPlainObject(options.fallbackLocale) ||
|
|
836
|
+
isString(options.fallbackLocale) ||
|
|
837
|
+
options.fallbackLocale === false
|
|
838
|
+
? options.fallbackLocale
|
|
839
|
+
: _locale;
|
|
840
|
+
const messages = isPlainObject(options.messages)
|
|
841
|
+
? options.messages
|
|
842
|
+
: createResources(_locale);
|
|
843
|
+
const datetimeFormats = isPlainObject(options.datetimeFormats)
|
|
844
|
+
? options.datetimeFormats
|
|
845
|
+
: createResources(_locale)
|
|
846
|
+
;
|
|
847
|
+
const numberFormats = isPlainObject(options.numberFormats)
|
|
848
|
+
? options.numberFormats
|
|
849
|
+
: createResources(_locale)
|
|
850
|
+
;
|
|
851
|
+
const modifiers = assign(create(), options.modifiers, getDefaultLinkedModifiers());
|
|
852
|
+
const pluralRules = options.pluralRules || create();
|
|
853
|
+
const missing = isFunction(options.missing) ? options.missing : null;
|
|
854
|
+
const missingWarn = isBoolean(options.missingWarn) || isRegExp(options.missingWarn)
|
|
855
|
+
? options.missingWarn
|
|
856
|
+
: true;
|
|
857
|
+
const fallbackWarn = isBoolean(options.fallbackWarn) || isRegExp(options.fallbackWarn)
|
|
858
|
+
? options.fallbackWarn
|
|
859
|
+
: true;
|
|
860
|
+
const fallbackFormat = !!options.fallbackFormat;
|
|
861
|
+
const unresolving = !!options.unresolving;
|
|
862
|
+
const postTranslation = isFunction(options.postTranslation)
|
|
863
|
+
? options.postTranslation
|
|
864
|
+
: null;
|
|
865
|
+
const processor = isPlainObject(options.processor) ? options.processor : null;
|
|
866
|
+
const warnHtmlMessage = isBoolean(options.warnHtmlMessage)
|
|
867
|
+
? options.warnHtmlMessage
|
|
868
|
+
: true;
|
|
869
|
+
const escapeParameter = !!options.escapeParameter;
|
|
870
|
+
const messageCompiler = isFunction(options.messageCompiler)
|
|
871
|
+
? options.messageCompiler
|
|
872
|
+
: _compiler;
|
|
873
|
+
if ((process.env.NODE_ENV !== 'production') &&
|
|
874
|
+
!false &&
|
|
875
|
+
!false &&
|
|
876
|
+
isFunction(options.messageCompiler)) {
|
|
877
|
+
warnOnce(getWarnMessage(CoreWarnCodes.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER));
|
|
878
|
+
}
|
|
879
|
+
const messageResolver = isFunction(options.messageResolver)
|
|
880
|
+
? options.messageResolver
|
|
881
|
+
: _resolver || resolveWithKeyValue;
|
|
882
|
+
const localeFallbacker = isFunction(options.localeFallbacker)
|
|
883
|
+
? options.localeFallbacker
|
|
884
|
+
: _fallbacker || fallbackWithSimple;
|
|
885
|
+
const fallbackContext = isObject(options.fallbackContext)
|
|
886
|
+
? options.fallbackContext
|
|
887
|
+
: undefined;
|
|
888
|
+
// setup internal options
|
|
889
|
+
const internalOptions = options;
|
|
890
|
+
const __datetimeFormatters = isObject(internalOptions.__datetimeFormatters)
|
|
891
|
+
? internalOptions.__datetimeFormatters
|
|
892
|
+
: new Map()
|
|
893
|
+
;
|
|
894
|
+
const __numberFormatters = isObject(internalOptions.__numberFormatters)
|
|
895
|
+
? internalOptions.__numberFormatters
|
|
896
|
+
: new Map()
|
|
897
|
+
;
|
|
898
|
+
const __meta = isObject(internalOptions.__meta) ? internalOptions.__meta : {};
|
|
899
|
+
_cid++;
|
|
900
|
+
const context = {
|
|
901
|
+
version,
|
|
902
|
+
cid: _cid,
|
|
903
|
+
locale,
|
|
904
|
+
fallbackLocale,
|
|
905
|
+
messages,
|
|
906
|
+
modifiers,
|
|
907
|
+
pluralRules,
|
|
908
|
+
missing,
|
|
909
|
+
missingWarn,
|
|
910
|
+
fallbackWarn,
|
|
911
|
+
fallbackFormat,
|
|
912
|
+
unresolving,
|
|
913
|
+
postTranslation,
|
|
914
|
+
processor,
|
|
915
|
+
warnHtmlMessage,
|
|
916
|
+
escapeParameter,
|
|
917
|
+
messageCompiler,
|
|
918
|
+
messageResolver,
|
|
919
|
+
localeFallbacker,
|
|
920
|
+
fallbackContext,
|
|
921
|
+
onWarn,
|
|
922
|
+
__meta
|
|
923
|
+
};
|
|
924
|
+
{
|
|
925
|
+
context.datetimeFormats = datetimeFormats;
|
|
926
|
+
context.numberFormats = numberFormats;
|
|
927
|
+
context.__datetimeFormatters = __datetimeFormatters;
|
|
928
|
+
context.__numberFormatters = __numberFormatters;
|
|
929
|
+
}
|
|
930
|
+
// for vue-devtools timeline event
|
|
931
|
+
if ((process.env.NODE_ENV !== 'production')) {
|
|
932
|
+
context.__v_emitter =
|
|
933
|
+
internalOptions.__v_emitter != null
|
|
934
|
+
? internalOptions.__v_emitter
|
|
935
|
+
: undefined;
|
|
936
|
+
}
|
|
937
|
+
// NOTE: experimental !!
|
|
938
|
+
if ((process.env.NODE_ENV !== 'production') || __INTLIFY_PROD_DEVTOOLS__) {
|
|
939
|
+
initI18nDevTools(context, version, __meta);
|
|
940
|
+
}
|
|
941
|
+
return context;
|
|
942
|
+
}
|
|
943
|
+
const createResources = (locale) => ({ [locale]: create() });
|
|
944
|
+
/** @internal */
|
|
945
|
+
function isTranslateFallbackWarn(fallback, key) {
|
|
946
|
+
return fallback instanceof RegExp ? fallback.test(key) : fallback;
|
|
947
|
+
}
|
|
948
|
+
/** @internal */
|
|
949
|
+
function isTranslateMissingWarn(missing, key) {
|
|
950
|
+
return missing instanceof RegExp ? missing.test(key) : missing;
|
|
951
|
+
}
|
|
952
|
+
/** @internal */
|
|
953
|
+
function handleMissing(context, key, locale, missingWarn, type) {
|
|
954
|
+
const { missing, onWarn } = context;
|
|
955
|
+
// for vue-devtools timeline event
|
|
956
|
+
if ((process.env.NODE_ENV !== 'production')) {
|
|
957
|
+
const emitter = context.__v_emitter;
|
|
958
|
+
if (emitter) {
|
|
959
|
+
emitter.emit('missing', {
|
|
960
|
+
locale,
|
|
961
|
+
key,
|
|
962
|
+
type,
|
|
963
|
+
groupId: `${type}:${key}`
|
|
964
|
+
});
|
|
965
|
+
}
|
|
966
|
+
}
|
|
967
|
+
if (missing !== null) {
|
|
968
|
+
const ret = missing(context, locale, key, type);
|
|
969
|
+
return isString(ret) ? ret : key;
|
|
970
|
+
}
|
|
971
|
+
else {
|
|
972
|
+
if ((process.env.NODE_ENV !== 'production') && isTranslateMissingWarn(missingWarn, key)) {
|
|
973
|
+
onWarn(getWarnMessage(CoreWarnCodes.NOT_FOUND_KEY, { key, locale }));
|
|
974
|
+
}
|
|
975
|
+
return key;
|
|
976
|
+
}
|
|
977
|
+
}
|
|
978
|
+
/** @internal */
|
|
979
|
+
function updateFallbackLocale(ctx, locale, fallback) {
|
|
980
|
+
const context = ctx;
|
|
981
|
+
context.__localeChainCache = new Map();
|
|
982
|
+
ctx.localeFallbacker(ctx, fallback, locale);
|
|
983
|
+
}
|
|
984
|
+
/** @internal */
|
|
985
|
+
function isAlmostSameLocale(locale, compareLocale) {
|
|
986
|
+
if (locale === compareLocale)
|
|
987
|
+
return false;
|
|
988
|
+
return locale.split('-')[0] === compareLocale.split('-')[0];
|
|
989
|
+
}
|
|
990
|
+
/** @internal */
|
|
991
|
+
function isImplicitFallback(targetLocale, locales) {
|
|
992
|
+
const index = locales.indexOf(targetLocale);
|
|
993
|
+
if (index === -1) {
|
|
994
|
+
return false;
|
|
995
|
+
}
|
|
996
|
+
for (let i = index + 1; i < locales.length; i++) {
|
|
997
|
+
if (isAlmostSameLocale(targetLocale, locales[i])) {
|
|
998
|
+
return true;
|
|
999
|
+
}
|
|
1000
|
+
}
|
|
1001
|
+
return false;
|
|
1002
|
+
}
|
|
1003
|
+
/* eslint-enable @typescript-eslint/no-explicit-any */
|
|
1004
|
+
|
|
1005
|
+
const intlDefined = typeof Intl !== 'undefined';
|
|
1006
|
+
const Availabilities = {
|
|
1007
|
+
dateTimeFormat: intlDefined && typeof Intl.DateTimeFormat !== 'undefined',
|
|
1008
|
+
numberFormat: intlDefined && typeof Intl.NumberFormat !== 'undefined'
|
|
1009
|
+
};
|
|
1010
|
+
|
|
1011
|
+
// implementation of `datetime` function
|
|
1012
|
+
function datetime(context, ...args) {
|
|
1013
|
+
const { datetimeFormats, unresolving, fallbackLocale, onWarn, localeFallbacker } = context;
|
|
1014
|
+
const { __datetimeFormatters } = context;
|
|
1015
|
+
if ((process.env.NODE_ENV !== 'production') && !Availabilities.dateTimeFormat) {
|
|
1016
|
+
onWarn(getWarnMessage(CoreWarnCodes.CANNOT_FORMAT_DATE));
|
|
1017
|
+
return MISSING_RESOLVE_VALUE;
|
|
1018
|
+
}
|
|
1019
|
+
const [key, value, options, overrides] = parseDateTimeArgs(...args);
|
|
1020
|
+
const missingWarn = isBoolean(options.missingWarn)
|
|
1021
|
+
? options.missingWarn
|
|
1022
|
+
: context.missingWarn;
|
|
1023
|
+
const fallbackWarn = isBoolean(options.fallbackWarn)
|
|
1024
|
+
? options.fallbackWarn
|
|
1025
|
+
: context.fallbackWarn;
|
|
1026
|
+
const part = !!options.part;
|
|
1027
|
+
const locale = getLocale(context, options);
|
|
1028
|
+
const locales = localeFallbacker(context, // eslint-disable-line @typescript-eslint/no-explicit-any
|
|
1029
|
+
fallbackLocale, locale);
|
|
1030
|
+
if (!isString(key) || key === '') {
|
|
1031
|
+
return new Intl.DateTimeFormat(locale, overrides).format(value);
|
|
1032
|
+
}
|
|
1033
|
+
// resolve format
|
|
1034
|
+
let datetimeFormat = {};
|
|
1035
|
+
let targetLocale;
|
|
1036
|
+
let format = null;
|
|
1037
|
+
let from = locale;
|
|
1038
|
+
let to = null;
|
|
1039
|
+
const type = 'datetime format';
|
|
1040
|
+
for (let i = 0; i < locales.length; i++) {
|
|
1041
|
+
targetLocale = to = locales[i];
|
|
1042
|
+
if ((process.env.NODE_ENV !== 'production') &&
|
|
1043
|
+
locale !== targetLocale &&
|
|
1044
|
+
isTranslateFallbackWarn(fallbackWarn, key)) {
|
|
1045
|
+
onWarn(getWarnMessage(CoreWarnCodes.FALLBACK_TO_DATE_FORMAT, {
|
|
1046
|
+
key,
|
|
1047
|
+
target: targetLocale
|
|
1048
|
+
}));
|
|
1049
|
+
}
|
|
1050
|
+
// for vue-devtools timeline event
|
|
1051
|
+
if ((process.env.NODE_ENV !== 'production') && locale !== targetLocale) {
|
|
1052
|
+
const emitter = context.__v_emitter;
|
|
1053
|
+
if (emitter) {
|
|
1054
|
+
emitter.emit('fallback', {
|
|
1055
|
+
type,
|
|
1056
|
+
key,
|
|
1057
|
+
from,
|
|
1058
|
+
to,
|
|
1059
|
+
groupId: `${type}:${key}`
|
|
1060
|
+
});
|
|
1061
|
+
}
|
|
1062
|
+
}
|
|
1063
|
+
datetimeFormat =
|
|
1064
|
+
datetimeFormats[targetLocale] || {};
|
|
1065
|
+
format = datetimeFormat[key];
|
|
1066
|
+
if (isPlainObject(format))
|
|
1067
|
+
break;
|
|
1068
|
+
handleMissing(context, key, targetLocale, missingWarn, type); // eslint-disable-line @typescript-eslint/no-explicit-any
|
|
1069
|
+
from = to;
|
|
1070
|
+
}
|
|
1071
|
+
// checking format and target locale
|
|
1072
|
+
if (!isPlainObject(format) || !isString(targetLocale)) {
|
|
1073
|
+
return unresolving ? NOT_REOSLVED : key;
|
|
1074
|
+
}
|
|
1075
|
+
let id = `${targetLocale}__${key}`;
|
|
1076
|
+
if (!isEmptyObject(overrides)) {
|
|
1077
|
+
id = `${id}__${JSON.stringify(overrides)}`;
|
|
1078
|
+
}
|
|
1079
|
+
let formatter = __datetimeFormatters.get(id);
|
|
1080
|
+
if (!formatter) {
|
|
1081
|
+
formatter = new Intl.DateTimeFormat(targetLocale, assign({}, format, overrides));
|
|
1082
|
+
__datetimeFormatters.set(id, formatter);
|
|
1083
|
+
}
|
|
1084
|
+
return !part ? formatter.format(value) : formatter.formatToParts(value);
|
|
1085
|
+
}
|
|
1086
|
+
/** @internal */
|
|
1087
|
+
const DATETIME_FORMAT_OPTIONS_KEYS = [
|
|
1088
|
+
'localeMatcher',
|
|
1089
|
+
'weekday',
|
|
1090
|
+
'era',
|
|
1091
|
+
'year',
|
|
1092
|
+
'month',
|
|
1093
|
+
'day',
|
|
1094
|
+
'hour',
|
|
1095
|
+
'minute',
|
|
1096
|
+
'second',
|
|
1097
|
+
'timeZoneName',
|
|
1098
|
+
'formatMatcher',
|
|
1099
|
+
'hour12',
|
|
1100
|
+
'timeZone',
|
|
1101
|
+
'dateStyle',
|
|
1102
|
+
'timeStyle',
|
|
1103
|
+
'calendar',
|
|
1104
|
+
'dayPeriod',
|
|
1105
|
+
'numberingSystem',
|
|
1106
|
+
'hourCycle',
|
|
1107
|
+
'fractionalSecondDigits'
|
|
1108
|
+
];
|
|
1109
|
+
/** @internal */
|
|
1110
|
+
function parseDateTimeArgs(...args) {
|
|
1111
|
+
const [arg1, arg2, arg3, arg4] = args;
|
|
1112
|
+
const options = create();
|
|
1113
|
+
let overrides = create();
|
|
1114
|
+
let value;
|
|
1115
|
+
if (isString(arg1)) {
|
|
1116
|
+
// Only allow ISO strings - other date formats are often supported,
|
|
1117
|
+
// but may cause different results in different browsers.
|
|
1118
|
+
const matches = arg1.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);
|
|
1119
|
+
if (!matches) {
|
|
1120
|
+
throw createCoreError(CoreErrorCodes.INVALID_ISO_DATE_ARGUMENT);
|
|
1121
|
+
}
|
|
1122
|
+
// Some browsers can not parse the iso datetime separated by space,
|
|
1123
|
+
// this is a compromise solution by replace the 'T'/' ' with 'T'
|
|
1124
|
+
const dateTime = matches[3]
|
|
1125
|
+
? matches[3].trim().startsWith('T')
|
|
1126
|
+
? `${matches[1].trim()}${matches[3].trim()}`
|
|
1127
|
+
: `${matches[1].trim()}T${matches[3].trim()}`
|
|
1128
|
+
: matches[1].trim();
|
|
1129
|
+
value = new Date(dateTime);
|
|
1130
|
+
try {
|
|
1131
|
+
// This will fail if the date is not valid
|
|
1132
|
+
value.toISOString();
|
|
1133
|
+
}
|
|
1134
|
+
catch {
|
|
1135
|
+
throw createCoreError(CoreErrorCodes.INVALID_ISO_DATE_ARGUMENT);
|
|
1136
|
+
}
|
|
1137
|
+
}
|
|
1138
|
+
else if (isDate(arg1)) {
|
|
1139
|
+
if (isNaN(arg1.getTime())) {
|
|
1140
|
+
throw createCoreError(CoreErrorCodes.INVALID_DATE_ARGUMENT);
|
|
1141
|
+
}
|
|
1142
|
+
value = arg1;
|
|
1143
|
+
}
|
|
1144
|
+
else if (isNumber(arg1)) {
|
|
1145
|
+
value = arg1;
|
|
1146
|
+
}
|
|
1147
|
+
else {
|
|
1148
|
+
throw createCoreError(CoreErrorCodes.INVALID_ARGUMENT);
|
|
1149
|
+
}
|
|
1150
|
+
if (isString(arg2)) {
|
|
1151
|
+
options.key = arg2;
|
|
1152
|
+
}
|
|
1153
|
+
else if (isPlainObject(arg2)) {
|
|
1154
|
+
Object.keys(arg2).forEach(key => {
|
|
1155
|
+
if (DATETIME_FORMAT_OPTIONS_KEYS.includes(key)) {
|
|
1156
|
+
overrides[key] = arg2[key];
|
|
1157
|
+
}
|
|
1158
|
+
else {
|
|
1159
|
+
options[key] = arg2[key];
|
|
1160
|
+
}
|
|
1161
|
+
});
|
|
1162
|
+
}
|
|
1163
|
+
if (isString(arg3)) {
|
|
1164
|
+
options.locale = arg3;
|
|
1165
|
+
}
|
|
1166
|
+
else if (isPlainObject(arg3)) {
|
|
1167
|
+
overrides = arg3;
|
|
1168
|
+
}
|
|
1169
|
+
if (isPlainObject(arg4)) {
|
|
1170
|
+
overrides = arg4;
|
|
1171
|
+
}
|
|
1172
|
+
return [options.key || '', value, options, overrides];
|
|
1173
|
+
}
|
|
1174
|
+
/** @internal */
|
|
1175
|
+
function clearDateTimeFormat(ctx, locale, format) {
|
|
1176
|
+
const context = ctx;
|
|
1177
|
+
for (const key in format) {
|
|
1178
|
+
const id = `${locale}__${key}`;
|
|
1179
|
+
if (!context.__datetimeFormatters.has(id)) {
|
|
1180
|
+
continue;
|
|
1181
|
+
}
|
|
1182
|
+
context.__datetimeFormatters.delete(id);
|
|
1183
|
+
}
|
|
1184
|
+
}
|
|
1185
|
+
|
|
1186
|
+
// implementation of `number` function
|
|
1187
|
+
function number(context, ...args) {
|
|
1188
|
+
const { numberFormats, unresolving, fallbackLocale, onWarn, localeFallbacker } = context;
|
|
1189
|
+
const { __numberFormatters } = context;
|
|
1190
|
+
if ((process.env.NODE_ENV !== 'production') && !Availabilities.numberFormat) {
|
|
1191
|
+
onWarn(getWarnMessage(CoreWarnCodes.CANNOT_FORMAT_NUMBER));
|
|
1192
|
+
return MISSING_RESOLVE_VALUE;
|
|
1193
|
+
}
|
|
1194
|
+
const [key, value, options, overrides] = parseNumberArgs(...args);
|
|
1195
|
+
const missingWarn = isBoolean(options.missingWarn)
|
|
1196
|
+
? options.missingWarn
|
|
1197
|
+
: context.missingWarn;
|
|
1198
|
+
const fallbackWarn = isBoolean(options.fallbackWarn)
|
|
1199
|
+
? options.fallbackWarn
|
|
1200
|
+
: context.fallbackWarn;
|
|
1201
|
+
const part = !!options.part;
|
|
1202
|
+
const locale = getLocale(context, options);
|
|
1203
|
+
const locales = localeFallbacker(context, // eslint-disable-line @typescript-eslint/no-explicit-any
|
|
1204
|
+
fallbackLocale, locale);
|
|
1205
|
+
if (!isString(key) || key === '') {
|
|
1206
|
+
return new Intl.NumberFormat(locale, overrides).format(value);
|
|
1207
|
+
}
|
|
1208
|
+
// resolve format
|
|
1209
|
+
let numberFormat = {};
|
|
1210
|
+
let targetLocale;
|
|
1211
|
+
let format = null;
|
|
1212
|
+
let from = locale;
|
|
1213
|
+
let to = null;
|
|
1214
|
+
const type = 'number format';
|
|
1215
|
+
for (let i = 0; i < locales.length; i++) {
|
|
1216
|
+
targetLocale = to = locales[i];
|
|
1217
|
+
if ((process.env.NODE_ENV !== 'production') &&
|
|
1218
|
+
locale !== targetLocale &&
|
|
1219
|
+
isTranslateFallbackWarn(fallbackWarn, key)) {
|
|
1220
|
+
onWarn(getWarnMessage(CoreWarnCodes.FALLBACK_TO_NUMBER_FORMAT, {
|
|
1221
|
+
key,
|
|
1222
|
+
target: targetLocale
|
|
1223
|
+
}));
|
|
1224
|
+
}
|
|
1225
|
+
// for vue-devtools timeline event
|
|
1226
|
+
if ((process.env.NODE_ENV !== 'production') && locale !== targetLocale) {
|
|
1227
|
+
const emitter = context.__v_emitter;
|
|
1228
|
+
if (emitter) {
|
|
1229
|
+
emitter.emit('fallback', {
|
|
1230
|
+
type,
|
|
1231
|
+
key,
|
|
1232
|
+
from,
|
|
1233
|
+
to,
|
|
1234
|
+
groupId: `${type}:${key}`
|
|
1235
|
+
});
|
|
1236
|
+
}
|
|
1237
|
+
}
|
|
1238
|
+
numberFormat =
|
|
1239
|
+
numberFormats[targetLocale] || {};
|
|
1240
|
+
format = numberFormat[key];
|
|
1241
|
+
if (isPlainObject(format))
|
|
1242
|
+
break;
|
|
1243
|
+
handleMissing(context, key, targetLocale, missingWarn, type); // eslint-disable-line @typescript-eslint/no-explicit-any
|
|
1244
|
+
from = to;
|
|
1245
|
+
}
|
|
1246
|
+
// checking format and target locale
|
|
1247
|
+
if (!isPlainObject(format) || !isString(targetLocale)) {
|
|
1248
|
+
return unresolving ? NOT_REOSLVED : key;
|
|
1249
|
+
}
|
|
1250
|
+
let id = `${targetLocale}__${key}`;
|
|
1251
|
+
if (!isEmptyObject(overrides)) {
|
|
1252
|
+
id = `${id}__${JSON.stringify(overrides)}`;
|
|
1253
|
+
}
|
|
1254
|
+
let formatter = __numberFormatters.get(id);
|
|
1255
|
+
if (!formatter) {
|
|
1256
|
+
formatter = new Intl.NumberFormat(targetLocale, assign({}, format, overrides));
|
|
1257
|
+
__numberFormatters.set(id, formatter);
|
|
1258
|
+
}
|
|
1259
|
+
return !part ? formatter.format(value) : formatter.formatToParts(value);
|
|
1260
|
+
}
|
|
1261
|
+
/** @internal */
|
|
1262
|
+
const NUMBER_FORMAT_OPTIONS_KEYS = [
|
|
1263
|
+
'localeMatcher',
|
|
1264
|
+
'style',
|
|
1265
|
+
'currency',
|
|
1266
|
+
'currencyDisplay',
|
|
1267
|
+
'currencySign',
|
|
1268
|
+
'useGrouping',
|
|
1269
|
+
'minimumIntegerDigits',
|
|
1270
|
+
'minimumFractionDigits',
|
|
1271
|
+
'maximumFractionDigits',
|
|
1272
|
+
'minimumSignificantDigits',
|
|
1273
|
+
'maximumSignificantDigits',
|
|
1274
|
+
'compactDisplay',
|
|
1275
|
+
'notation',
|
|
1276
|
+
'signDisplay',
|
|
1277
|
+
'unit',
|
|
1278
|
+
'unitDisplay',
|
|
1279
|
+
'roundingMode',
|
|
1280
|
+
'roundingPriority',
|
|
1281
|
+
'roundingIncrement',
|
|
1282
|
+
'trailingZeroDisplay'
|
|
1283
|
+
];
|
|
1284
|
+
/** @internal */
|
|
1285
|
+
function parseNumberArgs(...args) {
|
|
1286
|
+
const [arg1, arg2, arg3, arg4] = args;
|
|
1287
|
+
const options = create();
|
|
1288
|
+
let overrides = create();
|
|
1289
|
+
if (!isNumber(arg1)) {
|
|
1290
|
+
throw createCoreError(CoreErrorCodes.INVALID_ARGUMENT);
|
|
1291
|
+
}
|
|
1292
|
+
const value = arg1;
|
|
1293
|
+
if (isString(arg2)) {
|
|
1294
|
+
options.key = arg2;
|
|
1295
|
+
}
|
|
1296
|
+
else if (isPlainObject(arg2)) {
|
|
1297
|
+
Object.keys(arg2).forEach(key => {
|
|
1298
|
+
if (NUMBER_FORMAT_OPTIONS_KEYS.includes(key)) {
|
|
1299
|
+
overrides[key] = arg2[key];
|
|
1300
|
+
}
|
|
1301
|
+
else {
|
|
1302
|
+
options[key] = arg2[key];
|
|
1303
|
+
}
|
|
1304
|
+
});
|
|
1305
|
+
}
|
|
1306
|
+
if (isString(arg3)) {
|
|
1307
|
+
options.locale = arg3;
|
|
1308
|
+
}
|
|
1309
|
+
else if (isPlainObject(arg3)) {
|
|
1310
|
+
overrides = arg3;
|
|
1311
|
+
}
|
|
1312
|
+
if (isPlainObject(arg4)) {
|
|
1313
|
+
overrides = arg4;
|
|
1314
|
+
}
|
|
1315
|
+
return [options.key || '', value, options, overrides];
|
|
1316
|
+
}
|
|
1317
|
+
/** @internal */
|
|
1318
|
+
function clearNumberFormat(ctx, locale, format) {
|
|
1319
|
+
const context = ctx;
|
|
1320
|
+
for (const key in format) {
|
|
1321
|
+
const id = `${locale}__${key}`;
|
|
1322
|
+
if (!context.__numberFormatters.has(id)) {
|
|
1323
|
+
continue;
|
|
1324
|
+
}
|
|
1325
|
+
context.__numberFormatters.delete(id);
|
|
1326
|
+
}
|
|
1327
|
+
}
|
|
1328
|
+
|
|
1329
|
+
const DEFAULT_MODIFIER = (str) => str;
|
|
1330
|
+
const DEFAULT_MESSAGE = (ctx) => ''; // eslint-disable-line
|
|
1331
|
+
const DEFAULT_MESSAGE_DATA_TYPE = 'text';
|
|
1332
|
+
const DEFAULT_NORMALIZE = (values) => values.length === 0 ? '' : join(values);
|
|
1333
|
+
const DEFAULT_INTERPOLATE = toDisplayString;
|
|
1334
|
+
function pluralDefault(choice, choicesLength) {
|
|
1335
|
+
choice = Math.abs(choice);
|
|
1336
|
+
if (choicesLength === 2) {
|
|
1337
|
+
// prettier-ignore
|
|
1338
|
+
return choice
|
|
1339
|
+
? choice > 1
|
|
1340
|
+
? 1
|
|
1341
|
+
: 0
|
|
1342
|
+
: 1;
|
|
1343
|
+
}
|
|
1344
|
+
return choice ? Math.min(choice, 2) : 0;
|
|
1345
|
+
}
|
|
1346
|
+
function getPluralIndex(options) {
|
|
1347
|
+
// prettier-ignore
|
|
1348
|
+
const index = isNumber(options.pluralIndex)
|
|
1349
|
+
? options.pluralIndex
|
|
1350
|
+
: -1;
|
|
1351
|
+
// prettier-ignore
|
|
1352
|
+
return options.named && (isNumber(options.named.count) || isNumber(options.named.n))
|
|
1353
|
+
? isNumber(options.named.count)
|
|
1354
|
+
? options.named.count
|
|
1355
|
+
: isNumber(options.named.n)
|
|
1356
|
+
? options.named.n
|
|
1357
|
+
: index
|
|
1358
|
+
: index;
|
|
1359
|
+
}
|
|
1360
|
+
function normalizeNamed(pluralIndex, props) {
|
|
1361
|
+
if (!props.count) {
|
|
1362
|
+
props.count = pluralIndex;
|
|
1363
|
+
}
|
|
1364
|
+
if (!props.n) {
|
|
1365
|
+
props.n = pluralIndex;
|
|
1366
|
+
}
|
|
1367
|
+
}
|
|
1368
|
+
function createMessageContext(options = {}) {
|
|
1369
|
+
const locale = options.locale;
|
|
1370
|
+
const pluralIndex = getPluralIndex(options);
|
|
1371
|
+
const pluralRule = isObject(options.pluralRules) &&
|
|
1372
|
+
isString(locale) &&
|
|
1373
|
+
isFunction(options.pluralRules[locale])
|
|
1374
|
+
? options.pluralRules[locale]
|
|
1375
|
+
: pluralDefault;
|
|
1376
|
+
const orgPluralRule = isObject(options.pluralRules) &&
|
|
1377
|
+
isString(locale) &&
|
|
1378
|
+
isFunction(options.pluralRules[locale])
|
|
1379
|
+
? pluralDefault
|
|
1380
|
+
: undefined;
|
|
1381
|
+
const plural = (messages) => {
|
|
1382
|
+
return messages[pluralRule(pluralIndex, messages.length, orgPluralRule)];
|
|
1383
|
+
};
|
|
1384
|
+
const _list = options.list || [];
|
|
1385
|
+
const list = (index) => _list[index];
|
|
1386
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
1387
|
+
const _named = options.named || create();
|
|
1388
|
+
isNumber(options.pluralIndex) && normalizeNamed(pluralIndex, _named);
|
|
1389
|
+
const named = (key) => _named[key];
|
|
1390
|
+
function message(key, useLinked) {
|
|
1391
|
+
// prettier-ignore
|
|
1392
|
+
const msg = isFunction(options.messages)
|
|
1393
|
+
? options.messages(key, !!useLinked)
|
|
1394
|
+
: isObject(options.messages)
|
|
1395
|
+
? options.messages[key]
|
|
1396
|
+
: false;
|
|
1397
|
+
return !msg
|
|
1398
|
+
? options.parent
|
|
1399
|
+
? options.parent.message(key) // resolve from parent messages
|
|
1400
|
+
: DEFAULT_MESSAGE
|
|
1401
|
+
: msg;
|
|
1402
|
+
}
|
|
1403
|
+
const _modifier = (name) => options.modifiers
|
|
1404
|
+
? options.modifiers[name]
|
|
1405
|
+
: DEFAULT_MODIFIER;
|
|
1406
|
+
const normalize = isPlainObject(options.processor) && isFunction(options.processor.normalize)
|
|
1407
|
+
? options.processor.normalize
|
|
1408
|
+
: DEFAULT_NORMALIZE;
|
|
1409
|
+
const interpolate = isPlainObject(options.processor) &&
|
|
1410
|
+
isFunction(options.processor.interpolate)
|
|
1411
|
+
? options.processor.interpolate
|
|
1412
|
+
: DEFAULT_INTERPOLATE;
|
|
1413
|
+
const type = isPlainObject(options.processor) && isString(options.processor.type)
|
|
1414
|
+
? options.processor.type
|
|
1415
|
+
: DEFAULT_MESSAGE_DATA_TYPE;
|
|
1416
|
+
const linked = (key, ...args) => {
|
|
1417
|
+
const [arg1, arg2] = args;
|
|
1418
|
+
let type = 'text';
|
|
1419
|
+
let modifier = '';
|
|
1420
|
+
if (args.length === 1) {
|
|
1421
|
+
if (isObject(arg1)) {
|
|
1422
|
+
modifier = arg1.modifier || modifier;
|
|
1423
|
+
type = arg1.type || type;
|
|
1424
|
+
}
|
|
1425
|
+
else if (isString(arg1)) {
|
|
1426
|
+
modifier = arg1 || modifier;
|
|
1427
|
+
}
|
|
1428
|
+
}
|
|
1429
|
+
else if (args.length === 2) {
|
|
1430
|
+
if (isString(arg1)) {
|
|
1431
|
+
modifier = arg1 || modifier;
|
|
1432
|
+
}
|
|
1433
|
+
if (isString(arg2)) {
|
|
1434
|
+
type = arg2 || type;
|
|
1435
|
+
}
|
|
1436
|
+
}
|
|
1437
|
+
const ret = message(key, true)(ctx);
|
|
1438
|
+
const msg =
|
|
1439
|
+
// The message in vnode resolved with linked are returned as an array by processor.nomalize
|
|
1440
|
+
type === 'vnode' && isArray(ret) && modifier
|
|
1441
|
+
? ret[0]
|
|
1442
|
+
: ret;
|
|
1443
|
+
return modifier ? _modifier(modifier)(msg, type) : msg;
|
|
1444
|
+
};
|
|
1445
|
+
const ctx = {
|
|
1446
|
+
["list" /* HelperNameMap.LIST */]: list,
|
|
1447
|
+
["named" /* HelperNameMap.NAMED */]: named,
|
|
1448
|
+
["plural" /* HelperNameMap.PLURAL */]: plural,
|
|
1449
|
+
["linked" /* HelperNameMap.LINKED */]: linked,
|
|
1450
|
+
["message" /* HelperNameMap.MESSAGE */]: message,
|
|
1451
|
+
["type" /* HelperNameMap.TYPE */]: type,
|
|
1452
|
+
["interpolate" /* HelperNameMap.INTERPOLATE */]: interpolate,
|
|
1453
|
+
["normalize" /* HelperNameMap.NORMALIZE */]: normalize,
|
|
1454
|
+
["values" /* HelperNameMap.VALUES */]: assign(create(), _list, _named)
|
|
1455
|
+
};
|
|
1456
|
+
return ctx;
|
|
1457
|
+
}
|
|
1458
|
+
|
|
1459
|
+
const NOOP_MESSAGE_FUNCTION = () => '';
|
|
1460
|
+
const isMessageFunction = (val) => isFunction(val);
|
|
1461
|
+
// implementation of `translate` function
|
|
1462
|
+
function translate(context, ...args) {
|
|
1463
|
+
const { fallbackFormat, postTranslation, unresolving, messageCompiler, fallbackLocale, messages } = context;
|
|
1464
|
+
const [key, options] = parseTranslateArgs(...args);
|
|
1465
|
+
const missingWarn = isBoolean(options.missingWarn)
|
|
1466
|
+
? options.missingWarn
|
|
1467
|
+
: context.missingWarn;
|
|
1468
|
+
const fallbackWarn = isBoolean(options.fallbackWarn)
|
|
1469
|
+
? options.fallbackWarn
|
|
1470
|
+
: context.fallbackWarn;
|
|
1471
|
+
const escapeParameter = isBoolean(options.escapeParameter)
|
|
1472
|
+
? options.escapeParameter
|
|
1473
|
+
: context.escapeParameter;
|
|
1474
|
+
const resolvedMessage = !!options.resolvedMessage;
|
|
1475
|
+
// prettier-ignore
|
|
1476
|
+
const defaultMsgOrKey = isString(options.default) || isBoolean(options.default) // default by function option
|
|
1477
|
+
? !isBoolean(options.default)
|
|
1478
|
+
? options.default
|
|
1479
|
+
: (!messageCompiler ? () => key : key)
|
|
1480
|
+
: fallbackFormat // default by `fallbackFormat` option
|
|
1481
|
+
? (!messageCompiler ? () => key : key)
|
|
1482
|
+
: null;
|
|
1483
|
+
const enableDefaultMsg = fallbackFormat ||
|
|
1484
|
+
(defaultMsgOrKey != null &&
|
|
1485
|
+
(isString(defaultMsgOrKey) || isFunction(defaultMsgOrKey)));
|
|
1486
|
+
const locale = getLocale(context, options);
|
|
1487
|
+
// escape params
|
|
1488
|
+
escapeParameter && escapeParams(options);
|
|
1489
|
+
// resolve message format
|
|
1490
|
+
// eslint-disable-next-line prefer-const
|
|
1491
|
+
let [formatScope, targetLocale, message] = !resolvedMessage
|
|
1492
|
+
? resolveMessageFormat(context, key, locale, fallbackLocale, fallbackWarn, missingWarn)
|
|
1493
|
+
: [
|
|
1494
|
+
key,
|
|
1495
|
+
locale,
|
|
1496
|
+
messages[locale] || create()
|
|
1497
|
+
];
|
|
1498
|
+
// NOTE:
|
|
1499
|
+
// Fix to work around `ssrTransfrom` bug in Vite.
|
|
1500
|
+
// https://github.com/vitejs/vite/issues/4306
|
|
1501
|
+
// To get around this, use temporary variables.
|
|
1502
|
+
// https://github.com/nuxt/framework/issues/1461#issuecomment-954606243
|
|
1503
|
+
let format = formatScope;
|
|
1504
|
+
// if you use default message, set it as message format!
|
|
1505
|
+
let cacheBaseKey = key;
|
|
1506
|
+
if (!resolvedMessage &&
|
|
1507
|
+
!(isString(format) ||
|
|
1508
|
+
isMessageAST(format) ||
|
|
1509
|
+
isMessageFunction(format))) {
|
|
1510
|
+
if (enableDefaultMsg) {
|
|
1511
|
+
format = defaultMsgOrKey;
|
|
1512
|
+
cacheBaseKey = format;
|
|
1513
|
+
}
|
|
1514
|
+
}
|
|
1515
|
+
// checking message format and target locale
|
|
1516
|
+
if (!resolvedMessage &&
|
|
1517
|
+
(!(isString(format) ||
|
|
1518
|
+
isMessageAST(format) ||
|
|
1519
|
+
isMessageFunction(format)) ||
|
|
1520
|
+
!isString(targetLocale))) {
|
|
1521
|
+
return unresolving ? NOT_REOSLVED : key;
|
|
1522
|
+
}
|
|
1523
|
+
// TODO: refactor
|
|
1524
|
+
if ((process.env.NODE_ENV !== 'production') && isString(format) && context.messageCompiler == null) {
|
|
1525
|
+
warn(`The message format compilation is not supported in this build. ` +
|
|
1526
|
+
`Because message compiler isn't included. ` +
|
|
1527
|
+
`You need to pre-compilation all message format. ` +
|
|
1528
|
+
`So translate function return '${key}'.`);
|
|
1529
|
+
return key;
|
|
1530
|
+
}
|
|
1531
|
+
// setup compile error detecting
|
|
1532
|
+
let occurred = false;
|
|
1533
|
+
const onError = () => {
|
|
1534
|
+
occurred = true;
|
|
1535
|
+
};
|
|
1536
|
+
// compile message format
|
|
1537
|
+
const msg = !isMessageFunction(format)
|
|
1538
|
+
? compileMessageFormat(context, key, targetLocale, format, cacheBaseKey, onError)
|
|
1539
|
+
: format;
|
|
1540
|
+
// if occurred compile error, return the message format
|
|
1541
|
+
if (occurred) {
|
|
1542
|
+
return format;
|
|
1543
|
+
}
|
|
1544
|
+
// evaluate message with context
|
|
1545
|
+
const ctxOptions = getMessageContextOptions(context, targetLocale, message, options);
|
|
1546
|
+
const msgContext = createMessageContext(ctxOptions);
|
|
1547
|
+
const messaged = evaluateMessage(context, msg, msgContext);
|
|
1548
|
+
// if use post translation option, proceed it with handler
|
|
1549
|
+
let ret = postTranslation
|
|
1550
|
+
? postTranslation(messaged, key)
|
|
1551
|
+
: messaged;
|
|
1552
|
+
// apply HTML sanitization for security
|
|
1553
|
+
if (escapeParameter && isString(ret)) {
|
|
1554
|
+
ret = sanitizeTranslatedHtml(ret);
|
|
1555
|
+
}
|
|
1556
|
+
// NOTE: experimental !!
|
|
1557
|
+
if ((process.env.NODE_ENV !== 'production') || __INTLIFY_PROD_DEVTOOLS__) {
|
|
1558
|
+
// prettier-ignore
|
|
1559
|
+
const payloads = {
|
|
1560
|
+
timestamp: Date.now(),
|
|
1561
|
+
key: isString(key)
|
|
1562
|
+
? key
|
|
1563
|
+
: isMessageFunction(format)
|
|
1564
|
+
? format.key
|
|
1565
|
+
: '',
|
|
1566
|
+
locale: targetLocale || (isMessageFunction(format)
|
|
1567
|
+
? format.locale
|
|
1568
|
+
: ''),
|
|
1569
|
+
format: isString(format)
|
|
1570
|
+
? format
|
|
1571
|
+
: isMessageFunction(format)
|
|
1572
|
+
? format.source
|
|
1573
|
+
: '',
|
|
1574
|
+
message: ret
|
|
1575
|
+
};
|
|
1576
|
+
payloads.meta = assign({}, context.__meta, getAdditionalMeta() || {});
|
|
1577
|
+
translateDevTools(payloads);
|
|
1578
|
+
}
|
|
1579
|
+
return ret;
|
|
1580
|
+
}
|
|
1581
|
+
function escapeParams(options) {
|
|
1582
|
+
if (isArray(options.list)) {
|
|
1583
|
+
options.list = options.list.map(item => isString(item) ? escapeHtml(item) : item);
|
|
1584
|
+
}
|
|
1585
|
+
else if (isObject(options.named)) {
|
|
1586
|
+
Object.keys(options.named).forEach(key => {
|
|
1587
|
+
if (isString(options.named[key])) {
|
|
1588
|
+
options.named[key] = escapeHtml(options.named[key]);
|
|
1589
|
+
}
|
|
1590
|
+
});
|
|
1591
|
+
}
|
|
1592
|
+
}
|
|
1593
|
+
function resolveMessageFormat(context, key, locale, fallbackLocale, fallbackWarn, missingWarn) {
|
|
1594
|
+
const { messages, onWarn, messageResolver: resolveValue, localeFallbacker } = context;
|
|
1595
|
+
const locales = localeFallbacker(context, fallbackLocale, locale); // eslint-disable-line @typescript-eslint/no-explicit-any
|
|
1596
|
+
let message = create();
|
|
1597
|
+
let targetLocale;
|
|
1598
|
+
let format = null;
|
|
1599
|
+
let from = locale;
|
|
1600
|
+
let to = null;
|
|
1601
|
+
const type = 'translate';
|
|
1602
|
+
for (let i = 0; i < locales.length; i++) {
|
|
1603
|
+
targetLocale = to = locales[i];
|
|
1604
|
+
if ((process.env.NODE_ENV !== 'production') &&
|
|
1605
|
+
locale !== targetLocale &&
|
|
1606
|
+
!isAlmostSameLocale(locale, targetLocale) &&
|
|
1607
|
+
isTranslateFallbackWarn(fallbackWarn, key)) {
|
|
1608
|
+
onWarn(getWarnMessage(CoreWarnCodes.FALLBACK_TO_TRANSLATE, {
|
|
1609
|
+
key,
|
|
1610
|
+
target: targetLocale
|
|
1611
|
+
}));
|
|
1612
|
+
}
|
|
1613
|
+
// for vue-devtools timeline event
|
|
1614
|
+
if ((process.env.NODE_ENV !== 'production') && locale !== targetLocale) {
|
|
1615
|
+
const emitter = context.__v_emitter;
|
|
1616
|
+
if (emitter) {
|
|
1617
|
+
emitter.emit('fallback', {
|
|
1618
|
+
type,
|
|
1619
|
+
key,
|
|
1620
|
+
from,
|
|
1621
|
+
to,
|
|
1622
|
+
groupId: `${type}:${key}`
|
|
1623
|
+
});
|
|
1624
|
+
}
|
|
1625
|
+
}
|
|
1626
|
+
message =
|
|
1627
|
+
messages[targetLocale] || create();
|
|
1628
|
+
// for vue-devtools timeline event
|
|
1629
|
+
let start = null;
|
|
1630
|
+
let startTag;
|
|
1631
|
+
let endTag;
|
|
1632
|
+
if ((process.env.NODE_ENV !== 'production') && inBrowser) {
|
|
1633
|
+
start = window.performance.now();
|
|
1634
|
+
startTag = 'intlify-message-resolve-start';
|
|
1635
|
+
endTag = 'intlify-message-resolve-end';
|
|
1636
|
+
mark && mark(startTag);
|
|
1637
|
+
}
|
|
1638
|
+
if ((format = resolveValue(message, key)) === null) {
|
|
1639
|
+
// if null, resolve with object key path
|
|
1640
|
+
format = message[key]; // eslint-disable-line @typescript-eslint/no-explicit-any
|
|
1641
|
+
}
|
|
1642
|
+
// for vue-devtools timeline event
|
|
1643
|
+
if ((process.env.NODE_ENV !== 'production') && inBrowser) {
|
|
1644
|
+
const end = window.performance.now();
|
|
1645
|
+
const emitter = context.__v_emitter;
|
|
1646
|
+
if (emitter && start && format) {
|
|
1647
|
+
emitter.emit('message-resolve', {
|
|
1648
|
+
type: 'message-resolve',
|
|
1649
|
+
key,
|
|
1650
|
+
message: format,
|
|
1651
|
+
time: end - start,
|
|
1652
|
+
groupId: `${type}:${key}`
|
|
1653
|
+
});
|
|
1654
|
+
}
|
|
1655
|
+
if (startTag && endTag && mark && measure) {
|
|
1656
|
+
mark(endTag);
|
|
1657
|
+
measure('intlify message resolve', startTag, endTag);
|
|
1658
|
+
}
|
|
1659
|
+
}
|
|
1660
|
+
if (isString(format) || isMessageAST(format) || isMessageFunction(format)) {
|
|
1661
|
+
break;
|
|
1662
|
+
}
|
|
1663
|
+
if (!isImplicitFallback(targetLocale, locales)) {
|
|
1664
|
+
const missingRet = handleMissing(context, // eslint-disable-line @typescript-eslint/no-explicit-any
|
|
1665
|
+
key, targetLocale, missingWarn, type);
|
|
1666
|
+
if (missingRet !== key) {
|
|
1667
|
+
format = missingRet;
|
|
1668
|
+
}
|
|
1669
|
+
}
|
|
1670
|
+
from = to;
|
|
1671
|
+
}
|
|
1672
|
+
return [format, targetLocale, message];
|
|
1673
|
+
}
|
|
1674
|
+
function compileMessageFormat(context, key, targetLocale, format, cacheBaseKey, onError) {
|
|
1675
|
+
const { messageCompiler, warnHtmlMessage } = context;
|
|
1676
|
+
if (isMessageFunction(format)) {
|
|
1677
|
+
const msg = format;
|
|
1678
|
+
msg.locale = msg.locale || targetLocale;
|
|
1679
|
+
msg.key = msg.key || key;
|
|
1680
|
+
return msg;
|
|
1681
|
+
}
|
|
1682
|
+
if (messageCompiler == null) {
|
|
1683
|
+
const msg = (() => format);
|
|
1684
|
+
msg.locale = targetLocale;
|
|
1685
|
+
msg.key = key;
|
|
1686
|
+
return msg;
|
|
1687
|
+
}
|
|
1688
|
+
// for vue-devtools timeline event
|
|
1689
|
+
let start = null;
|
|
1690
|
+
let startTag;
|
|
1691
|
+
let endTag;
|
|
1692
|
+
if ((process.env.NODE_ENV !== 'production') && inBrowser) {
|
|
1693
|
+
start = window.performance.now();
|
|
1694
|
+
startTag = 'intlify-message-compilation-start';
|
|
1695
|
+
endTag = 'intlify-message-compilation-end';
|
|
1696
|
+
mark && mark(startTag);
|
|
1697
|
+
}
|
|
1698
|
+
const msg = messageCompiler(format, getCompileContext(context, targetLocale, cacheBaseKey, format, warnHtmlMessage, onError));
|
|
1699
|
+
// for vue-devtools timeline event
|
|
1700
|
+
if ((process.env.NODE_ENV !== 'production') && inBrowser) {
|
|
1701
|
+
const end = window.performance.now();
|
|
1702
|
+
const emitter = context.__v_emitter;
|
|
1703
|
+
if (emitter && start) {
|
|
1704
|
+
emitter.emit('message-compilation', {
|
|
1705
|
+
type: 'message-compilation',
|
|
1706
|
+
message: format,
|
|
1707
|
+
time: end - start,
|
|
1708
|
+
groupId: `${'translate'}:${key}`
|
|
1709
|
+
});
|
|
1710
|
+
}
|
|
1711
|
+
if (startTag && endTag && mark && measure) {
|
|
1712
|
+
mark(endTag);
|
|
1713
|
+
measure('intlify message compilation', startTag, endTag);
|
|
1714
|
+
}
|
|
1715
|
+
}
|
|
1716
|
+
msg.locale = targetLocale;
|
|
1717
|
+
msg.key = key;
|
|
1718
|
+
msg.source = format;
|
|
1719
|
+
return msg;
|
|
1720
|
+
}
|
|
1721
|
+
function evaluateMessage(context, msg, msgCtx) {
|
|
1722
|
+
// for vue-devtools timeline event
|
|
1723
|
+
let start = null;
|
|
1724
|
+
let startTag;
|
|
1725
|
+
let endTag;
|
|
1726
|
+
if ((process.env.NODE_ENV !== 'production') && inBrowser) {
|
|
1727
|
+
start = window.performance.now();
|
|
1728
|
+
startTag = 'intlify-message-evaluation-start';
|
|
1729
|
+
endTag = 'intlify-message-evaluation-end';
|
|
1730
|
+
mark && mark(startTag);
|
|
1731
|
+
}
|
|
1732
|
+
const messaged = msg(msgCtx);
|
|
1733
|
+
// for vue-devtools timeline event
|
|
1734
|
+
if ((process.env.NODE_ENV !== 'production') && inBrowser) {
|
|
1735
|
+
const end = window.performance.now();
|
|
1736
|
+
const emitter = context.__v_emitter;
|
|
1737
|
+
if (emitter && start) {
|
|
1738
|
+
emitter.emit('message-evaluation', {
|
|
1739
|
+
type: 'message-evaluation',
|
|
1740
|
+
value: messaged,
|
|
1741
|
+
time: end - start,
|
|
1742
|
+
groupId: `${'translate'}:${msg.key}`
|
|
1743
|
+
});
|
|
1744
|
+
}
|
|
1745
|
+
if (startTag && endTag && mark && measure) {
|
|
1746
|
+
mark(endTag);
|
|
1747
|
+
measure('intlify message evaluation', startTag, endTag);
|
|
1748
|
+
}
|
|
1749
|
+
}
|
|
1750
|
+
return messaged;
|
|
1751
|
+
}
|
|
1752
|
+
/** @internal */
|
|
1753
|
+
function parseTranslateArgs(...args) {
|
|
1754
|
+
const [arg1, arg2, arg3] = args;
|
|
1755
|
+
const options = create();
|
|
1756
|
+
if (!isString(arg1) &&
|
|
1757
|
+
!isNumber(arg1) &&
|
|
1758
|
+
!isMessageFunction(arg1) &&
|
|
1759
|
+
!isMessageAST(arg1)) {
|
|
1760
|
+
throw createCoreError(CoreErrorCodes.INVALID_ARGUMENT);
|
|
1761
|
+
}
|
|
1762
|
+
// prettier-ignore
|
|
1763
|
+
const key = isNumber(arg1)
|
|
1764
|
+
? String(arg1)
|
|
1765
|
+
: isMessageFunction(arg1)
|
|
1766
|
+
? arg1
|
|
1767
|
+
: arg1;
|
|
1768
|
+
if (isNumber(arg2)) {
|
|
1769
|
+
options.plural = arg2;
|
|
1770
|
+
}
|
|
1771
|
+
else if (isString(arg2)) {
|
|
1772
|
+
options.default = arg2;
|
|
1773
|
+
}
|
|
1774
|
+
else if (isPlainObject(arg2) && !isEmptyObject(arg2)) {
|
|
1775
|
+
options.named = arg2;
|
|
1776
|
+
}
|
|
1777
|
+
else if (isArray(arg2)) {
|
|
1778
|
+
options.list = arg2;
|
|
1779
|
+
}
|
|
1780
|
+
if (isNumber(arg3)) {
|
|
1781
|
+
options.plural = arg3;
|
|
1782
|
+
}
|
|
1783
|
+
else if (isString(arg3)) {
|
|
1784
|
+
options.default = arg3;
|
|
1785
|
+
}
|
|
1786
|
+
else if (isPlainObject(arg3)) {
|
|
1787
|
+
assign(options, arg3);
|
|
1788
|
+
}
|
|
1789
|
+
return [key, options];
|
|
1790
|
+
}
|
|
1791
|
+
function getCompileContext(context, locale, key, source, warnHtmlMessage, onError) {
|
|
1792
|
+
return {
|
|
1793
|
+
locale,
|
|
1794
|
+
key,
|
|
1795
|
+
warnHtmlMessage,
|
|
1796
|
+
onError: (err) => {
|
|
1797
|
+
onError && onError(err);
|
|
1798
|
+
if ((process.env.NODE_ENV !== 'production')) {
|
|
1799
|
+
const _source = getSourceForCodeFrame(source);
|
|
1800
|
+
const message = `Message compilation error: ${err.message}`;
|
|
1801
|
+
const codeFrame = err.location &&
|
|
1802
|
+
_source &&
|
|
1803
|
+
generateCodeFrame(_source, err.location.start.offset, err.location.end.offset);
|
|
1804
|
+
const emitter = context.__v_emitter;
|
|
1805
|
+
if (emitter && _source) {
|
|
1806
|
+
emitter.emit('compile-error', {
|
|
1807
|
+
message: _source,
|
|
1808
|
+
error: err.message,
|
|
1809
|
+
start: err.location && err.location.start.offset,
|
|
1810
|
+
end: err.location && err.location.end.offset,
|
|
1811
|
+
groupId: `${'translate'}:${key}`
|
|
1812
|
+
});
|
|
1813
|
+
}
|
|
1814
|
+
console.error(codeFrame ? `${message}\n${codeFrame}` : message);
|
|
1815
|
+
}
|
|
1816
|
+
else {
|
|
1817
|
+
throw err;
|
|
1818
|
+
}
|
|
1819
|
+
},
|
|
1820
|
+
onCacheKey: (source) => generateFormatCacheKey(locale, key, source)
|
|
1821
|
+
};
|
|
1822
|
+
}
|
|
1823
|
+
function getSourceForCodeFrame(source) {
|
|
1824
|
+
if (isString(source)) {
|
|
1825
|
+
return source;
|
|
1826
|
+
}
|
|
1827
|
+
else {
|
|
1828
|
+
if (source.loc && source.loc.source) {
|
|
1829
|
+
return source.loc.source;
|
|
1830
|
+
}
|
|
1831
|
+
}
|
|
1832
|
+
}
|
|
1833
|
+
function getMessageContextOptions(context, locale, message, options) {
|
|
1834
|
+
const { modifiers, pluralRules, messageResolver: resolveValue, fallbackLocale, fallbackWarn, missingWarn, fallbackContext } = context;
|
|
1835
|
+
const resolveMessage = (key, useLinked) => {
|
|
1836
|
+
let val = resolveValue(message, key);
|
|
1837
|
+
// fallback
|
|
1838
|
+
if (val == null && (fallbackContext || useLinked)) {
|
|
1839
|
+
const [, , message] = resolveMessageFormat(fallbackContext || context, // NOTE: if has fallbackContext, fallback to root, else if use linked, fallback to local context
|
|
1840
|
+
key, locale, fallbackLocale, fallbackWarn, missingWarn);
|
|
1841
|
+
val = resolveValue(message, key);
|
|
1842
|
+
}
|
|
1843
|
+
if (isString(val) || isMessageAST(val)) {
|
|
1844
|
+
let occurred = false;
|
|
1845
|
+
const onError = () => {
|
|
1846
|
+
occurred = true;
|
|
1847
|
+
};
|
|
1848
|
+
const msg = compileMessageFormat(context, key, locale, val, key, onError);
|
|
1849
|
+
return !occurred
|
|
1850
|
+
? msg
|
|
1851
|
+
: NOOP_MESSAGE_FUNCTION;
|
|
1852
|
+
}
|
|
1853
|
+
else if (isMessageFunction(val)) {
|
|
1854
|
+
return val;
|
|
1855
|
+
}
|
|
1856
|
+
else {
|
|
1857
|
+
// TODO: should be implemented warning message
|
|
1858
|
+
return NOOP_MESSAGE_FUNCTION;
|
|
1859
|
+
}
|
|
1860
|
+
};
|
|
1861
|
+
const ctxOptions = {
|
|
1862
|
+
locale,
|
|
1863
|
+
modifiers,
|
|
1864
|
+
pluralRules,
|
|
1865
|
+
messages: resolveMessage
|
|
1866
|
+
};
|
|
1867
|
+
if (context.processor) {
|
|
1868
|
+
ctxOptions.processor = context.processor;
|
|
1869
|
+
}
|
|
1870
|
+
if (options.list) {
|
|
1871
|
+
ctxOptions.list = options.list;
|
|
1872
|
+
}
|
|
1873
|
+
if (options.named) {
|
|
1874
|
+
ctxOptions.named = options.named;
|
|
1875
|
+
}
|
|
1876
|
+
if (isNumber(options.plural)) {
|
|
1877
|
+
ctxOptions.pluralIndex = options.plural;
|
|
1878
|
+
}
|
|
1879
|
+
return ctxOptions;
|
|
1880
|
+
}
|
|
1881
|
+
|
|
1882
|
+
{
|
|
1883
|
+
initFeatureFlags();
|
|
1884
|
+
}
|
|
1885
|
+
|
|
1886
|
+
export { AST_NODE_PROPS_KEYS, CORE_ERROR_CODES_EXTEND_POINT, CORE_WARN_CODES_EXTEND_POINT, CoreErrorCodes, CoreWarnCodes, DATETIME_FORMAT_OPTIONS_KEYS, DEFAULT_LOCALE, DEFAULT_MESSAGE_DATA_TYPE, MISSING_RESOLVE_VALUE, NOT_REOSLVED, NUMBER_FORMAT_OPTIONS_KEYS, VERSION, clearCompileCache, clearDateTimeFormat, clearNumberFormat, compile, createCoreContext, createCoreError, createMessageContext, datetime, fallbackWithLocaleChain, fallbackWithSimple, getAdditionalMeta, getDevToolsHook, getFallbackContext, getLocale, getWarnMessage, handleMissing, initI18nDevTools, isAlmostSameLocale, isImplicitFallback, isMessageAST, isMessageFunction, isTranslateFallbackWarn, isTranslateMissingWarn, number, parse, parseDateTimeArgs, parseNumberArgs, parseTranslateArgs, registerLocaleFallbacker, registerMessageCompiler, registerMessageResolver, resolveLocale, resolveValue, resolveWithKeyValue, setAdditionalMeta, setDevToolsHook, setFallbackContext, translate, translateDevTools, updateFallbackLocale };
|