@jean-is/render 0.0.0-stage → 0.8.0-r1e5f4d4f71c5
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/LICENSE +21 -0
- package/README.md +2 -2
- package/brand.js +16 -0
- package/caps/brain-local/watermark.js +107 -0
- package/caps/charts/charts.css +15 -0
- package/caps/charts/charts.js +184 -0
- package/caps/charts/option.js +168 -0
- package/caps/files/extract.js +411 -0
- package/caps/files/midi.js +295 -0
- package/caps/files/numbers.js +193 -0
- package/caps/files/office.js +101 -0
- package/caps/files/pdf.js +69 -0
- package/caps/games/file.js +56 -0
- package/caps/games/frame.css +22 -0
- package/caps/games/guard.js +86 -0
- package/caps/games/page.js +52 -0
- package/caps/games/shell.js +260 -0
- package/caps/interactive/apps.js +54 -0
- package/caps/interactive/diagram-worker.js +12 -0
- package/caps/interactive/diagram.js +269 -0
- package/caps/interactive/interactive.css +44 -0
- package/caps/interactive/interactive.js +404 -0
- package/caps/interactive/live.js +96 -0
- package/caps/interactive/map.js +209 -0
- package/caps/interactive/mode.js +57 -0
- package/caps/interactive/page-diagram.js +41 -0
- package/caps/interactive/parts.js +124 -0
- package/caps/interactive/starts.js +15 -0
- package/caps/interactive/test.js +76 -0
- package/caps/interactive/view-parts.js +212 -0
- package/caps/layouts/layouts.css +184 -0
- package/caps/layouts/layouts.js +157 -0
- package/caps/layouts/shapes.js +225 -0
- package/caps/layouts/types.d.ts +8 -0
- package/caps/made/formats.js +505 -0
- package/caps/made/paper.js +142 -0
- package/caps/math/latex.js +88 -0
- package/caps/math/math.css +24 -0
- package/caps/math/math.js +117 -0
- package/caps/pictures/mark.js +43 -0
- package/caps/receipt/certificate.js +417 -0
- package/caps/receipt/der.js +203 -0
- package/caps/scores/notes.js +30 -0
- package/caps/scores/scores.css +30 -0
- package/caps/scores/scores.js +339 -0
- package/caps/scores/sound-worker.js +12 -0
- package/caps/scores/sound.js +72 -0
- package/caps/share/seal.js +86 -0
- package/caps/share/view.js +156 -0
- package/caps/skills/directory.js +64 -0
- package/caps/skills/sources.js +283 -0
- package/caps/slides/edit.js +112 -0
- package/caps/slides/kit-page.css +22 -0
- package/caps/slides/kit-page.js +250 -0
- package/caps/slides/kit-sample.js +36 -0
- package/caps/slides/kit-slot.js +10 -0
- package/caps/slides/kit.js +59 -0
- package/caps/slides/save.js +39 -0
- package/caps/slides/slides.css +39 -0
- package/caps/slides/slides.js +315 -0
- package/caps/tables/formula.js +133 -0
- package/core/anthropic.js +252 -0
- package/core/conversations.js +151 -0
- package/core/deferred.js +69 -0
- package/core/events.js +166 -0
- package/core/files.js +285 -0
- package/core/fs.js +124 -0
- package/core/hooks.js +53 -0
- package/core/i18n.js +158 -0
- package/core/llm.js +388 -0
- package/core/loop.js +456 -0
- package/core/oauth.js +31 -0
- package/core/rules.js +52 -0
- package/core/search.js +158 -0
- package/core/settings.js +174 -0
- package/core/skills.js +91 -0
- package/core/sse.js +51 -0
- package/core/ulid.js +17 -0
- package/core/vertex.js +37 -0
- package/core/zip.js +165 -0
- package/fonts/OFL.txt +94 -0
- package/fonts/display.woff2 +0 -0
- package/locales/am.json +438 -0
- package/locales/approvals/am.json +57 -0
- package/locales/approvals/ar.json +65 -0
- package/locales/approvals/bg.json +57 -0
- package/locales/approvals/bn.json +57 -0
- package/locales/approvals/br.json +63 -0
- package/locales/approvals/co.json +59 -0
- package/locales/approvals/cs.json +61 -0
- package/locales/approvals/da.json +57 -0
- package/locales/approvals/de.json +57 -0
- package/locales/approvals/el.json +57 -0
- package/locales/approvals/en.json +57 -0
- package/locales/approvals/es.json +59 -0
- package/locales/approvals/fa.json +57 -0
- package/locales/approvals/fi.json +57 -0
- package/locales/approvals/fr-CA.json +59 -0
- package/locales/approvals/fr.json +59 -0
- package/locales/approvals/ha.json +57 -0
- package/locales/approvals/he.json +59 -0
- package/locales/approvals/hi.json +57 -0
- package/locales/approvals/hr.json +59 -0
- package/locales/approvals/hu.json +57 -0
- package/locales/approvals/id.json +55 -0
- package/locales/approvals/it.json +59 -0
- package/locales/approvals/ja.json +55 -0
- package/locales/approvals/ko.json +55 -0
- package/locales/approvals/mr.json +57 -0
- package/locales/approvals/ms.json +55 -0
- package/locales/approvals/nl.json +57 -0
- package/locales/approvals/pl.json +61 -0
- package/locales/approvals/pt.json +59 -0
- package/locales/approvals/ro.json +59 -0
- package/locales/approvals/ru.json +61 -0
- package/locales/approvals/sk.json +61 -0
- package/locales/approvals/sv.json +57 -0
- package/locales/approvals/sw.json +57 -0
- package/locales/approvals/ta.json +57 -0
- package/locales/approvals/te.json +57 -0
- package/locales/approvals/th.json +55 -0
- package/locales/approvals/tl.json +57 -0
- package/locales/approvals/tr.json +57 -0
- package/locales/approvals/uk.json +61 -0
- package/locales/approvals/ur.json +57 -0
- package/locales/approvals/vi.json +55 -0
- package/locales/approvals/yo.json +55 -0
- package/locales/approvals/zh-Hans.json +55 -0
- package/locales/approvals/zh-Hant.json +55 -0
- package/locales/ar.json +474 -0
- package/locales/ask/am.json +8 -0
- package/locales/ask/ar.json +8 -0
- package/locales/ask/bg.json +8 -0
- package/locales/ask/bn.json +8 -0
- package/locales/ask/br.json +8 -0
- package/locales/ask/co.json +8 -0
- package/locales/ask/cs.json +8 -0
- package/locales/ask/da.json +8 -0
- package/locales/ask/de.json +8 -0
- package/locales/ask/el.json +8 -0
- package/locales/ask/en.json +8 -0
- package/locales/ask/es.json +8 -0
- package/locales/ask/fa.json +8 -0
- package/locales/ask/fi.json +8 -0
- package/locales/ask/fr-CA.json +8 -0
- package/locales/ask/fr.json +8 -0
- package/locales/ask/ha.json +8 -0
- package/locales/ask/he.json +8 -0
- package/locales/ask/hi.json +8 -0
- package/locales/ask/hr.json +8 -0
- package/locales/ask/hu.json +8 -0
- package/locales/ask/id.json +8 -0
- package/locales/ask/it.json +8 -0
- package/locales/ask/ja.json +8 -0
- package/locales/ask/ko.json +8 -0
- package/locales/ask/mr.json +8 -0
- package/locales/ask/ms.json +8 -0
- package/locales/ask/nl.json +8 -0
- package/locales/ask/pl.json +8 -0
- package/locales/ask/pt.json +8 -0
- package/locales/ask/ro.json +8 -0
- package/locales/ask/ru.json +8 -0
- package/locales/ask/sk.json +8 -0
- package/locales/ask/sv.json +8 -0
- package/locales/ask/sw.json +8 -0
- package/locales/ask/ta.json +8 -0
- package/locales/ask/te.json +8 -0
- package/locales/ask/th.json +8 -0
- package/locales/ask/tl.json +8 -0
- package/locales/ask/tr.json +8 -0
- package/locales/ask/uk.json +8 -0
- package/locales/ask/ur.json +8 -0
- package/locales/ask/vi.json +8 -0
- package/locales/ask/yo.json +8 -0
- package/locales/ask/zh-Hans.json +8 -0
- package/locales/ask/zh-Hant.json +8 -0
- package/locales/backup/am.json +8 -0
- package/locales/backup/ar.json +12 -0
- package/locales/backup/bg.json +8 -0
- package/locales/backup/bn.json +8 -0
- package/locales/backup/br.json +11 -0
- package/locales/backup/co.json +9 -0
- package/locales/backup/cs.json +10 -0
- package/locales/backup/da.json +8 -0
- package/locales/backup/de.json +8 -0
- package/locales/backup/el.json +8 -0
- package/locales/backup/en.json +8 -0
- package/locales/backup/es.json +9 -0
- package/locales/backup/fa.json +8 -0
- package/locales/backup/fi.json +8 -0
- package/locales/backup/fr-CA.json +9 -0
- package/locales/backup/fr.json +9 -0
- package/locales/backup/ha.json +8 -0
- package/locales/backup/he.json +10 -0
- package/locales/backup/hi.json +8 -0
- package/locales/backup/hr.json +9 -0
- package/locales/backup/hu.json +8 -0
- package/locales/backup/id.json +7 -0
- package/locales/backup/it.json +9 -0
- package/locales/backup/ja.json +7 -0
- package/locales/backup/ko.json +7 -0
- package/locales/backup/mr.json +8 -0
- package/locales/backup/ms.json +7 -0
- package/locales/backup/nl.json +8 -0
- package/locales/backup/pl.json +10 -0
- package/locales/backup/pt.json +9 -0
- package/locales/backup/ro.json +9 -0
- package/locales/backup/ru.json +10 -0
- package/locales/backup/sk.json +10 -0
- package/locales/backup/sv.json +8 -0
- package/locales/backup/sw.json +8 -0
- package/locales/backup/ta.json +8 -0
- package/locales/backup/te.json +8 -0
- package/locales/backup/th.json +7 -0
- package/locales/backup/tl.json +8 -0
- package/locales/backup/tr.json +8 -0
- package/locales/backup/uk.json +10 -0
- package/locales/backup/ur.json +8 -0
- package/locales/backup/vi.json +7 -0
- package/locales/backup/yo.json +7 -0
- package/locales/backup/zh-Hans.json +7 -0
- package/locales/backup/zh-Hant.json +7 -0
- package/locales/bg.json +438 -0
- package/locales/bn.json +438 -0
- package/locales/br.json +465 -0
- package/locales/brain-local/am.json +13 -0
- package/locales/brain-local/ar.json +13 -0
- package/locales/brain-local/bg.json +13 -0
- package/locales/brain-local/bn.json +13 -0
- package/locales/brain-local/br.json +13 -0
- package/locales/brain-local/co.json +13 -0
- package/locales/brain-local/cs.json +13 -0
- package/locales/brain-local/da.json +13 -0
- package/locales/brain-local/de.json +13 -0
- package/locales/brain-local/el.json +13 -0
- package/locales/brain-local/en.json +13 -0
- package/locales/brain-local/es.json +13 -0
- package/locales/brain-local/fa.json +13 -0
- package/locales/brain-local/fi.json +13 -0
- package/locales/brain-local/fr-CA.json +13 -0
- package/locales/brain-local/fr.json +13 -0
- package/locales/brain-local/ha.json +13 -0
- package/locales/brain-local/he.json +13 -0
- package/locales/brain-local/hi.json +13 -0
- package/locales/brain-local/hr.json +13 -0
- package/locales/brain-local/hu.json +13 -0
- package/locales/brain-local/id.json +13 -0
- package/locales/brain-local/it.json +13 -0
- package/locales/brain-local/ja.json +13 -0
- package/locales/brain-local/ko.json +13 -0
- package/locales/brain-local/mr.json +13 -0
- package/locales/brain-local/ms.json +13 -0
- package/locales/brain-local/nl.json +13 -0
- package/locales/brain-local/pl.json +13 -0
- package/locales/brain-local/pt.json +13 -0
- package/locales/brain-local/ro.json +13 -0
- package/locales/brain-local/ru.json +13 -0
- package/locales/brain-local/sk.json +13 -0
- package/locales/brain-local/sv.json +13 -0
- package/locales/brain-local/sw.json +13 -0
- package/locales/brain-local/ta.json +13 -0
- package/locales/brain-local/te.json +13 -0
- package/locales/brain-local/th.json +13 -0
- package/locales/brain-local/tl.json +13 -0
- package/locales/brain-local/tr.json +13 -0
- package/locales/brain-local/uk.json +13 -0
- package/locales/brain-local/ur.json +13 -0
- package/locales/brain-local/vi.json +13 -0
- package/locales/brain-local/yo.json +13 -0
- package/locales/brain-local/zh-Hans.json +13 -0
- package/locales/brain-local/zh-Hant.json +13 -0
- package/locales/brains/am.json +72 -0
- package/locales/brains/ar.json +72 -0
- package/locales/brains/bg.json +72 -0
- package/locales/brains/bn.json +72 -0
- package/locales/brains/br.json +72 -0
- package/locales/brains/co.json +72 -0
- package/locales/brains/cs.json +72 -0
- package/locales/brains/da.json +72 -0
- package/locales/brains/de.json +72 -0
- package/locales/brains/el.json +72 -0
- package/locales/brains/en.json +72 -0
- package/locales/brains/es.json +72 -0
- package/locales/brains/fa.json +72 -0
- package/locales/brains/fi.json +72 -0
- package/locales/brains/fr-CA.json +72 -0
- package/locales/brains/fr.json +72 -0
- package/locales/brains/ha.json +72 -0
- package/locales/brains/he.json +72 -0
- package/locales/brains/hi.json +72 -0
- package/locales/brains/hr.json +72 -0
- package/locales/brains/hu.json +72 -0
- package/locales/brains/id.json +72 -0
- package/locales/brains/it.json +72 -0
- package/locales/brains/ja.json +72 -0
- package/locales/brains/ko.json +72 -0
- package/locales/brains/mr.json +72 -0
- package/locales/brains/ms.json +72 -0
- package/locales/brains/nl.json +72 -0
- package/locales/brains/pl.json +72 -0
- package/locales/brains/pt.json +72 -0
- package/locales/brains/ro.json +72 -0
- package/locales/brains/ru.json +72 -0
- package/locales/brains/sk.json +72 -0
- package/locales/brains/sv.json +72 -0
- package/locales/brains/sw.json +72 -0
- package/locales/brains/ta.json +72 -0
- package/locales/brains/te.json +72 -0
- package/locales/brains/th.json +72 -0
- package/locales/brains/tl.json +72 -0
- package/locales/brains/tr.json +72 -0
- package/locales/brains/uk.json +72 -0
- package/locales/brains/ur.json +72 -0
- package/locales/brains/vi.json +72 -0
- package/locales/brains/yo.json +72 -0
- package/locales/brains/zh-Hans.json +72 -0
- package/locales/brains/zh-Hant.json +72 -0
- package/locales/browser/am.json +29 -0
- package/locales/browser/ar.json +29 -0
- package/locales/browser/bg.json +29 -0
- package/locales/browser/bn.json +29 -0
- package/locales/browser/br.json +29 -0
- package/locales/browser/co.json +29 -0
- package/locales/browser/cs.json +29 -0
- package/locales/browser/da.json +29 -0
- package/locales/browser/de.json +29 -0
- package/locales/browser/el.json +29 -0
- package/locales/browser/en.json +29 -0
- package/locales/browser/es.json +29 -0
- package/locales/browser/fa.json +29 -0
- package/locales/browser/fi.json +29 -0
- package/locales/browser/fr-CA.json +29 -0
- package/locales/browser/fr.json +29 -0
- package/locales/browser/ha.json +29 -0
- package/locales/browser/he.json +29 -0
- package/locales/browser/hi.json +29 -0
- package/locales/browser/hr.json +29 -0
- package/locales/browser/hu.json +29 -0
- package/locales/browser/id.json +29 -0
- package/locales/browser/it.json +29 -0
- package/locales/browser/ja.json +29 -0
- package/locales/browser/ko.json +29 -0
- package/locales/browser/mr.json +29 -0
- package/locales/browser/ms.json +29 -0
- package/locales/browser/nl.json +29 -0
- package/locales/browser/pl.json +29 -0
- package/locales/browser/pt.json +29 -0
- package/locales/browser/ro.json +29 -0
- package/locales/browser/ru.json +29 -0
- package/locales/browser/sk.json +29 -0
- package/locales/browser/sv.json +29 -0
- package/locales/browser/sw.json +29 -0
- package/locales/browser/ta.json +29 -0
- package/locales/browser/te.json +29 -0
- package/locales/browser/th.json +29 -0
- package/locales/browser/tl.json +29 -0
- package/locales/browser/tr.json +29 -0
- package/locales/browser/uk.json +29 -0
- package/locales/browser/ur.json +29 -0
- package/locales/browser/vi.json +29 -0
- package/locales/browser/yo.json +29 -0
- package/locales/browser/zh-Hans.json +29 -0
- package/locales/browser/zh-Hant.json +29 -0
- package/locales/camera/am.json +20 -0
- package/locales/camera/ar.json +20 -0
- package/locales/camera/bg.json +20 -0
- package/locales/camera/bn.json +20 -0
- package/locales/camera/br.json +20 -0
- package/locales/camera/co.json +20 -0
- package/locales/camera/cs.json +20 -0
- package/locales/camera/da.json +20 -0
- package/locales/camera/de.json +20 -0
- package/locales/camera/el.json +20 -0
- package/locales/camera/en.json +20 -0
- package/locales/camera/es.json +20 -0
- package/locales/camera/fa.json +20 -0
- package/locales/camera/fi.json +20 -0
- package/locales/camera/fr-CA.json +20 -0
- package/locales/camera/fr.json +20 -0
- package/locales/camera/ha.json +20 -0
- package/locales/camera/he.json +20 -0
- package/locales/camera/hi.json +20 -0
- package/locales/camera/hr.json +20 -0
- package/locales/camera/hu.json +20 -0
- package/locales/camera/id.json +20 -0
- package/locales/camera/it.json +20 -0
- package/locales/camera/ja.json +20 -0
- package/locales/camera/ko.json +20 -0
- package/locales/camera/mr.json +20 -0
- package/locales/camera/ms.json +20 -0
- package/locales/camera/nl.json +20 -0
- package/locales/camera/pl.json +20 -0
- package/locales/camera/pt.json +20 -0
- package/locales/camera/ro.json +20 -0
- package/locales/camera/ru.json +20 -0
- package/locales/camera/sk.json +20 -0
- package/locales/camera/sv.json +20 -0
- package/locales/camera/sw.json +20 -0
- package/locales/camera/ta.json +20 -0
- package/locales/camera/te.json +20 -0
- package/locales/camera/th.json +20 -0
- package/locales/camera/tl.json +20 -0
- package/locales/camera/tr.json +20 -0
- package/locales/camera/uk.json +20 -0
- package/locales/camera/ur.json +20 -0
- package/locales/camera/vi.json +20 -0
- package/locales/camera/yo.json +20 -0
- package/locales/camera/zh-Hans.json +20 -0
- package/locales/camera/zh-Hant.json +20 -0
- package/locales/case/am.json +24 -0
- package/locales/case/ar.json +28 -0
- package/locales/case/bg.json +24 -0
- package/locales/case/bn.json +24 -0
- package/locales/case/br.json +27 -0
- package/locales/case/co.json +25 -0
- package/locales/case/cs.json +26 -0
- package/locales/case/da.json +24 -0
- package/locales/case/de.json +24 -0
- package/locales/case/el.json +24 -0
- package/locales/case/en.json +24 -0
- package/locales/case/es.json +25 -0
- package/locales/case/fa.json +24 -0
- package/locales/case/fi.json +24 -0
- package/locales/case/fr-CA.json +25 -0
- package/locales/case/fr.json +25 -0
- package/locales/case/ha.json +24 -0
- package/locales/case/he.json +25 -0
- package/locales/case/hi.json +24 -0
- package/locales/case/hr.json +25 -0
- package/locales/case/hu.json +24 -0
- package/locales/case/id.json +23 -0
- package/locales/case/it.json +25 -0
- package/locales/case/ja.json +23 -0
- package/locales/case/ko.json +23 -0
- package/locales/case/mr.json +24 -0
- package/locales/case/ms.json +23 -0
- package/locales/case/nl.json +24 -0
- package/locales/case/pl.json +26 -0
- package/locales/case/pt.json +25 -0
- package/locales/case/ro.json +25 -0
- package/locales/case/ru.json +26 -0
- package/locales/case/sk.json +26 -0
- package/locales/case/sv.json +24 -0
- package/locales/case/sw.json +24 -0
- package/locales/case/ta.json +24 -0
- package/locales/case/te.json +24 -0
- package/locales/case/th.json +23 -0
- package/locales/case/tl.json +24 -0
- package/locales/case/tr.json +24 -0
- package/locales/case/uk.json +26 -0
- package/locales/case/ur.json +24 -0
- package/locales/case/vi.json +23 -0
- package/locales/case/yo.json +23 -0
- package/locales/case/zh-Hans.json +23 -0
- package/locales/case/zh-Hant.json +23 -0
- package/locales/certificates/am.json +58 -0
- package/locales/certificates/ar.json +58 -0
- package/locales/certificates/bg.json +58 -0
- package/locales/certificates/bn.json +58 -0
- package/locales/certificates/br.json +58 -0
- package/locales/certificates/co.json +58 -0
- package/locales/certificates/cs.json +58 -0
- package/locales/certificates/da.json +58 -0
- package/locales/certificates/de.json +58 -0
- package/locales/certificates/el.json +58 -0
- package/locales/certificates/en.json +58 -0
- package/locales/certificates/es.json +58 -0
- package/locales/certificates/fa.json +58 -0
- package/locales/certificates/fi.json +58 -0
- package/locales/certificates/fr-CA.json +58 -0
- package/locales/certificates/fr.json +58 -0
- package/locales/certificates/ha.json +58 -0
- package/locales/certificates/he.json +58 -0
- package/locales/certificates/hi.json +58 -0
- package/locales/certificates/hr.json +58 -0
- package/locales/certificates/hu.json +58 -0
- package/locales/certificates/id.json +58 -0
- package/locales/certificates/it.json +58 -0
- package/locales/certificates/ja.json +58 -0
- package/locales/certificates/ko.json +58 -0
- package/locales/certificates/mr.json +58 -0
- package/locales/certificates/ms.json +58 -0
- package/locales/certificates/nl.json +58 -0
- package/locales/certificates/pl.json +58 -0
- package/locales/certificates/pt.json +58 -0
- package/locales/certificates/ro.json +58 -0
- package/locales/certificates/ru.json +58 -0
- package/locales/certificates/sk.json +58 -0
- package/locales/certificates/sv.json +58 -0
- package/locales/certificates/sw.json +58 -0
- package/locales/certificates/ta.json +58 -0
- package/locales/certificates/te.json +58 -0
- package/locales/certificates/th.json +58 -0
- package/locales/certificates/tl.json +58 -0
- package/locales/certificates/tr.json +58 -0
- package/locales/certificates/uk.json +58 -0
- package/locales/certificates/ur.json +58 -0
- package/locales/certificates/vi.json +58 -0
- package/locales/certificates/yo.json +58 -0
- package/locales/certificates/zh-Hans.json +58 -0
- package/locales/certificates/zh-Hant.json +58 -0
- package/locales/charts/am.json +7 -0
- package/locales/charts/ar.json +7 -0
- package/locales/charts/bg.json +7 -0
- package/locales/charts/bn.json +7 -0
- package/locales/charts/br.json +7 -0
- package/locales/charts/co.json +7 -0
- package/locales/charts/cs.json +7 -0
- package/locales/charts/da.json +7 -0
- package/locales/charts/de.json +7 -0
- package/locales/charts/el.json +7 -0
- package/locales/charts/en.json +7 -0
- package/locales/charts/es.json +7 -0
- package/locales/charts/fa.json +7 -0
- package/locales/charts/fi.json +7 -0
- package/locales/charts/fr-CA.json +7 -0
- package/locales/charts/fr.json +7 -0
- package/locales/charts/ha.json +7 -0
- package/locales/charts/he.json +7 -0
- package/locales/charts/hi.json +7 -0
- package/locales/charts/hr.json +7 -0
- package/locales/charts/hu.json +7 -0
- package/locales/charts/id.json +7 -0
- package/locales/charts/it.json +7 -0
- package/locales/charts/ja.json +7 -0
- package/locales/charts/ko.json +7 -0
- package/locales/charts/mr.json +7 -0
- package/locales/charts/ms.json +7 -0
- package/locales/charts/nl.json +7 -0
- package/locales/charts/pl.json +7 -0
- package/locales/charts/pt.json +7 -0
- package/locales/charts/ro.json +7 -0
- package/locales/charts/ru.json +7 -0
- package/locales/charts/sk.json +7 -0
- package/locales/charts/sv.json +7 -0
- package/locales/charts/sw.json +7 -0
- package/locales/charts/ta.json +7 -0
- package/locales/charts/te.json +7 -0
- package/locales/charts/th.json +7 -0
- package/locales/charts/tl.json +7 -0
- package/locales/charts/tr.json +7 -0
- package/locales/charts/uk.json +7 -0
- package/locales/charts/ur.json +7 -0
- package/locales/charts/vi.json +7 -0
- package/locales/charts/yo.json +7 -0
- package/locales/charts/zh-Hans.json +7 -0
- package/locales/charts/zh-Hant.json +7 -0
- package/locales/co.json +447 -0
- package/locales/compact/am.json +7 -0
- package/locales/compact/ar.json +7 -0
- package/locales/compact/bg.json +7 -0
- package/locales/compact/bn.json +7 -0
- package/locales/compact/br.json +7 -0
- package/locales/compact/co.json +7 -0
- package/locales/compact/cs.json +7 -0
- package/locales/compact/da.json +7 -0
- package/locales/compact/de.json +7 -0
- package/locales/compact/el.json +7 -0
- package/locales/compact/en.json +7 -0
- package/locales/compact/es.json +7 -0
- package/locales/compact/fa.json +7 -0
- package/locales/compact/fi.json +7 -0
- package/locales/compact/fr-CA.json +7 -0
- package/locales/compact/fr.json +7 -0
- package/locales/compact/ha.json +7 -0
- package/locales/compact/he.json +7 -0
- package/locales/compact/hi.json +7 -0
- package/locales/compact/hr.json +7 -0
- package/locales/compact/hu.json +7 -0
- package/locales/compact/id.json +7 -0
- package/locales/compact/it.json +7 -0
- package/locales/compact/ja.json +7 -0
- package/locales/compact/ko.json +7 -0
- package/locales/compact/mr.json +7 -0
- package/locales/compact/ms.json +7 -0
- package/locales/compact/nl.json +7 -0
- package/locales/compact/pl.json +7 -0
- package/locales/compact/pt.json +7 -0
- package/locales/compact/ro.json +7 -0
- package/locales/compact/ru.json +7 -0
- package/locales/compact/sk.json +7 -0
- package/locales/compact/sv.json +7 -0
- package/locales/compact/sw.json +7 -0
- package/locales/compact/ta.json +7 -0
- package/locales/compact/te.json +7 -0
- package/locales/compact/th.json +7 -0
- package/locales/compact/tl.json +7 -0
- package/locales/compact/tr.json +7 -0
- package/locales/compact/uk.json +7 -0
- package/locales/compact/ur.json +7 -0
- package/locales/compact/vi.json +7 -0
- package/locales/compact/yo.json +7 -0
- package/locales/compact/zh-Hans.json +7 -0
- package/locales/compact/zh-Hant.json +7 -0
- package/locales/computer/am.json +81 -0
- package/locales/computer/ar.json +97 -0
- package/locales/computer/bg.json +81 -0
- package/locales/computer/bn.json +81 -0
- package/locales/computer/br.json +93 -0
- package/locales/computer/co.json +85 -0
- package/locales/computer/cs.json +89 -0
- package/locales/computer/da.json +81 -0
- package/locales/computer/de.json +81 -0
- package/locales/computer/el.json +81 -0
- package/locales/computer/en.json +81 -0
- package/locales/computer/es.json +85 -0
- package/locales/computer/fa.json +81 -0
- package/locales/computer/fi.json +81 -0
- package/locales/computer/fr-CA.json +85 -0
- package/locales/computer/fr.json +85 -0
- package/locales/computer/ha.json +81 -0
- package/locales/computer/he.json +85 -0
- package/locales/computer/hi.json +81 -0
- package/locales/computer/hr.json +85 -0
- package/locales/computer/hu.json +81 -0
- package/locales/computer/id.json +77 -0
- package/locales/computer/it.json +85 -0
- package/locales/computer/ja.json +77 -0
- package/locales/computer/ko.json +77 -0
- package/locales/computer/mr.json +81 -0
- package/locales/computer/ms.json +77 -0
- package/locales/computer/nl.json +81 -0
- package/locales/computer/pl.json +89 -0
- package/locales/computer/pt.json +85 -0
- package/locales/computer/ro.json +85 -0
- package/locales/computer/ru.json +89 -0
- package/locales/computer/sk.json +89 -0
- package/locales/computer/sv.json +81 -0
- package/locales/computer/sw.json +81 -0
- package/locales/computer/ta.json +81 -0
- package/locales/computer/te.json +81 -0
- package/locales/computer/th.json +77 -0
- package/locales/computer/tl.json +81 -0
- package/locales/computer/tr.json +81 -0
- package/locales/computer/uk.json +89 -0
- package/locales/computer/ur.json +81 -0
- package/locales/computer/vi.json +77 -0
- package/locales/computer/yo.json +77 -0
- package/locales/computer/zh-Hans.json +77 -0
- package/locales/computer/zh-Hant.json +77 -0
- package/locales/connections/am.json +87 -0
- package/locales/connections/ar.json +103 -0
- package/locales/connections/bg.json +87 -0
- package/locales/connections/bn.json +87 -0
- package/locales/connections/br.json +99 -0
- package/locales/connections/co.json +91 -0
- package/locales/connections/cs.json +95 -0
- package/locales/connections/da.json +87 -0
- package/locales/connections/de.json +87 -0
- package/locales/connections/el.json +87 -0
- package/locales/connections/en.json +87 -0
- package/locales/connections/es.json +91 -0
- package/locales/connections/fa.json +87 -0
- package/locales/connections/fi.json +87 -0
- package/locales/connections/fr-CA.json +91 -0
- package/locales/connections/fr.json +91 -0
- package/locales/connections/ha.json +87 -0
- package/locales/connections/he.json +95 -0
- package/locales/connections/hi.json +87 -0
- package/locales/connections/hr.json +91 -0
- package/locales/connections/hu.json +87 -0
- package/locales/connections/id.json +83 -0
- package/locales/connections/it.json +91 -0
- package/locales/connections/ja.json +83 -0
- package/locales/connections/ko.json +83 -0
- package/locales/connections/mr.json +87 -0
- package/locales/connections/ms.json +83 -0
- package/locales/connections/nl.json +87 -0
- package/locales/connections/pl.json +95 -0
- package/locales/connections/pt.json +91 -0
- package/locales/connections/ro.json +91 -0
- package/locales/connections/ru.json +95 -0
- package/locales/connections/sk.json +95 -0
- package/locales/connections/sv.json +87 -0
- package/locales/connections/sw.json +87 -0
- package/locales/connections/ta.json +87 -0
- package/locales/connections/te.json +87 -0
- package/locales/connections/th.json +83 -0
- package/locales/connections/tl.json +87 -0
- package/locales/connections/tr.json +87 -0
- package/locales/connections/uk.json +95 -0
- package/locales/connections/ur.json +87 -0
- package/locales/connections/vi.json +83 -0
- package/locales/connections/yo.json +83 -0
- package/locales/connections/zh-Hans.json +83 -0
- package/locales/connections/zh-Hant.json +83 -0
- package/locales/creations/am.json +59 -0
- package/locales/creations/ar.json +59 -0
- package/locales/creations/bg.json +59 -0
- package/locales/creations/bn.json +59 -0
- package/locales/creations/br.json +59 -0
- package/locales/creations/co.json +59 -0
- package/locales/creations/cs.json +59 -0
- package/locales/creations/da.json +59 -0
- package/locales/creations/de.json +59 -0
- package/locales/creations/el.json +59 -0
- package/locales/creations/en.json +59 -0
- package/locales/creations/es.json +59 -0
- package/locales/creations/fa.json +59 -0
- package/locales/creations/fi.json +59 -0
- package/locales/creations/fr-CA.json +59 -0
- package/locales/creations/fr.json +59 -0
- package/locales/creations/ha.json +59 -0
- package/locales/creations/he.json +59 -0
- package/locales/creations/hi.json +59 -0
- package/locales/creations/hr.json +59 -0
- package/locales/creations/hu.json +59 -0
- package/locales/creations/id.json +59 -0
- package/locales/creations/it.json +59 -0
- package/locales/creations/ja.json +59 -0
- package/locales/creations/ko.json +59 -0
- package/locales/creations/mr.json +59 -0
- package/locales/creations/ms.json +59 -0
- package/locales/creations/nl.json +59 -0
- package/locales/creations/pl.json +59 -0
- package/locales/creations/pt.json +59 -0
- package/locales/creations/ro.json +59 -0
- package/locales/creations/ru.json +59 -0
- package/locales/creations/sk.json +59 -0
- package/locales/creations/sv.json +59 -0
- package/locales/creations/sw.json +59 -0
- package/locales/creations/ta.json +59 -0
- package/locales/creations/te.json +59 -0
- package/locales/creations/th.json +59 -0
- package/locales/creations/tl.json +59 -0
- package/locales/creations/tr.json +59 -0
- package/locales/creations/uk.json +59 -0
- package/locales/creations/ur.json +59 -0
- package/locales/creations/vi.json +59 -0
- package/locales/creations/yo.json +59 -0
- package/locales/creations/zh-Hans.json +59 -0
- package/locales/creations/zh-Hant.json +59 -0
- package/locales/cs.json +456 -0
- package/locales/da.json +438 -0
- package/locales/data/am.json +45 -0
- package/locales/data/ar.json +45 -0
- package/locales/data/bg.json +45 -0
- package/locales/data/bn.json +45 -0
- package/locales/data/br.json +45 -0
- package/locales/data/co.json +45 -0
- package/locales/data/cs.json +45 -0
- package/locales/data/da.json +45 -0
- package/locales/data/de.json +45 -0
- package/locales/data/el.json +45 -0
- package/locales/data/en.json +45 -0
- package/locales/data/es.json +45 -0
- package/locales/data/fa.json +45 -0
- package/locales/data/fi.json +45 -0
- package/locales/data/fr-CA.json +45 -0
- package/locales/data/fr.json +45 -0
- package/locales/data/ha.json +45 -0
- package/locales/data/he.json +45 -0
- package/locales/data/hi.json +45 -0
- package/locales/data/hr.json +45 -0
- package/locales/data/hu.json +45 -0
- package/locales/data/id.json +45 -0
- package/locales/data/it.json +45 -0
- package/locales/data/ja.json +45 -0
- package/locales/data/ko.json +45 -0
- package/locales/data/mr.json +45 -0
- package/locales/data/ms.json +45 -0
- package/locales/data/nl.json +45 -0
- package/locales/data/pl.json +45 -0
- package/locales/data/pt.json +45 -0
- package/locales/data/ro.json +45 -0
- package/locales/data/ru.json +45 -0
- package/locales/data/sk.json +45 -0
- package/locales/data/sv.json +45 -0
- package/locales/data/sw.json +45 -0
- package/locales/data/ta.json +45 -0
- package/locales/data/te.json +45 -0
- package/locales/data/th.json +45 -0
- package/locales/data/tl.json +45 -0
- package/locales/data/tr.json +45 -0
- package/locales/data/uk.json +45 -0
- package/locales/data/ur.json +45 -0
- package/locales/data/vi.json +45 -0
- package/locales/data/yo.json +45 -0
- package/locales/data/zh-Hans.json +45 -0
- package/locales/data/zh-Hant.json +45 -0
- package/locales/de.json +438 -0
- package/locales/designs/am.json +139 -0
- package/locales/designs/ar.json +151 -0
- package/locales/designs/bg.json +139 -0
- package/locales/designs/bn.json +139 -0
- package/locales/designs/br.json +148 -0
- package/locales/designs/co.json +142 -0
- package/locales/designs/cs.json +145 -0
- package/locales/designs/da.json +139 -0
- package/locales/designs/de.json +139 -0
- package/locales/designs/el.json +139 -0
- package/locales/designs/en.json +139 -0
- package/locales/designs/es.json +142 -0
- package/locales/designs/fa.json +139 -0
- package/locales/designs/fi.json +139 -0
- package/locales/designs/fr-CA.json +142 -0
- package/locales/designs/fr.json +142 -0
- package/locales/designs/ha.json +139 -0
- package/locales/designs/he.json +142 -0
- package/locales/designs/hi.json +139 -0
- package/locales/designs/hr.json +142 -0
- package/locales/designs/hu.json +139 -0
- package/locales/designs/id.json +136 -0
- package/locales/designs/it.json +142 -0
- package/locales/designs/ja.json +136 -0
- package/locales/designs/ko.json +136 -0
- package/locales/designs/mr.json +139 -0
- package/locales/designs/ms.json +136 -0
- package/locales/designs/nl.json +139 -0
- package/locales/designs/pl.json +145 -0
- package/locales/designs/pt.json +142 -0
- package/locales/designs/ro.json +142 -0
- package/locales/designs/ru.json +145 -0
- package/locales/designs/sk.json +145 -0
- package/locales/designs/sv.json +139 -0
- package/locales/designs/sw.json +139 -0
- package/locales/designs/ta.json +139 -0
- package/locales/designs/te.json +139 -0
- package/locales/designs/th.json +136 -0
- package/locales/designs/tl.json +139 -0
- package/locales/designs/tr.json +139 -0
- package/locales/designs/uk.json +145 -0
- package/locales/designs/ur.json +139 -0
- package/locales/designs/vi.json +136 -0
- package/locales/designs/yo.json +136 -0
- package/locales/designs/zh-Hans.json +136 -0
- package/locales/designs/zh-Hant.json +136 -0
- package/locales/devices/am.json +79 -0
- package/locales/devices/ar.json +87 -0
- package/locales/devices/bg.json +79 -0
- package/locales/devices/bn.json +79 -0
- package/locales/devices/br.json +85 -0
- package/locales/devices/co.json +81 -0
- package/locales/devices/cs.json +83 -0
- package/locales/devices/da.json +79 -0
- package/locales/devices/de.json +79 -0
- package/locales/devices/el.json +79 -0
- package/locales/devices/en.json +79 -0
- package/locales/devices/es.json +81 -0
- package/locales/devices/fa.json +79 -0
- package/locales/devices/fi.json +79 -0
- package/locales/devices/fr-CA.json +81 -0
- package/locales/devices/fr.json +81 -0
- package/locales/devices/ha.json +79 -0
- package/locales/devices/he.json +81 -0
- package/locales/devices/hi.json +79 -0
- package/locales/devices/hr.json +81 -0
- package/locales/devices/hu.json +79 -0
- package/locales/devices/id.json +77 -0
- package/locales/devices/it.json +81 -0
- package/locales/devices/ja.json +77 -0
- package/locales/devices/ko.json +77 -0
- package/locales/devices/mr.json +79 -0
- package/locales/devices/ms.json +77 -0
- package/locales/devices/nl.json +79 -0
- package/locales/devices/pl.json +83 -0
- package/locales/devices/pt.json +81 -0
- package/locales/devices/ro.json +81 -0
- package/locales/devices/ru.json +83 -0
- package/locales/devices/sk.json +83 -0
- package/locales/devices/sv.json +79 -0
- package/locales/devices/sw.json +79 -0
- package/locales/devices/ta.json +79 -0
- package/locales/devices/te.json +79 -0
- package/locales/devices/th.json +77 -0
- package/locales/devices/tl.json +79 -0
- package/locales/devices/tr.json +79 -0
- package/locales/devices/uk.json +83 -0
- package/locales/devices/ur.json +79 -0
- package/locales/devices/vi.json +77 -0
- package/locales/devices/yo.json +77 -0
- package/locales/devices/zh-Hans.json +77 -0
- package/locales/devices/zh-Hant.json +77 -0
- package/locales/dialogs/am.json +206 -0
- package/locales/dialogs/ar.json +214 -0
- package/locales/dialogs/bg.json +206 -0
- package/locales/dialogs/bn.json +206 -0
- package/locales/dialogs/br.json +212 -0
- package/locales/dialogs/co.json +208 -0
- package/locales/dialogs/cs.json +210 -0
- package/locales/dialogs/da.json +206 -0
- package/locales/dialogs/de.json +206 -0
- package/locales/dialogs/el.json +206 -0
- package/locales/dialogs/en.json +206 -0
- package/locales/dialogs/es.json +208 -0
- package/locales/dialogs/fa.json +206 -0
- package/locales/dialogs/fi.json +206 -0
- package/locales/dialogs/fr-CA.json +208 -0
- package/locales/dialogs/fr.json +208 -0
- package/locales/dialogs/ha.json +206 -0
- package/locales/dialogs/he.json +210 -0
- package/locales/dialogs/hi.json +206 -0
- package/locales/dialogs/hr.json +208 -0
- package/locales/dialogs/hu.json +206 -0
- package/locales/dialogs/id.json +204 -0
- package/locales/dialogs/it.json +208 -0
- package/locales/dialogs/ja.json +204 -0
- package/locales/dialogs/ko.json +204 -0
- package/locales/dialogs/mr.json +206 -0
- package/locales/dialogs/ms.json +204 -0
- package/locales/dialogs/nl.json +206 -0
- package/locales/dialogs/pl.json +210 -0
- package/locales/dialogs/pt.json +208 -0
- package/locales/dialogs/ro.json +208 -0
- package/locales/dialogs/ru.json +210 -0
- package/locales/dialogs/sk.json +210 -0
- package/locales/dialogs/sv.json +206 -0
- package/locales/dialogs/sw.json +206 -0
- package/locales/dialogs/ta.json +206 -0
- package/locales/dialogs/te.json +206 -0
- package/locales/dialogs/th.json +204 -0
- package/locales/dialogs/tl.json +206 -0
- package/locales/dialogs/tr.json +206 -0
- package/locales/dialogs/uk.json +210 -0
- package/locales/dialogs/ur.json +206 -0
- package/locales/dialogs/vi.json +204 -0
- package/locales/dialogs/yo.json +204 -0
- package/locales/dialogs/zh-Hans.json +204 -0
- package/locales/dialogs/zh-Hant.json +204 -0
- package/locales/documents/am.json +86 -0
- package/locales/documents/ar.json +94 -0
- package/locales/documents/bg.json +86 -0
- package/locales/documents/bn.json +86 -0
- package/locales/documents/br.json +92 -0
- package/locales/documents/co.json +88 -0
- package/locales/documents/cs.json +90 -0
- package/locales/documents/da.json +86 -0
- package/locales/documents/de.json +86 -0
- package/locales/documents/el.json +86 -0
- package/locales/documents/en.json +86 -0
- package/locales/documents/es.json +88 -0
- package/locales/documents/fa.json +86 -0
- package/locales/documents/fi.json +86 -0
- package/locales/documents/fr-CA.json +88 -0
- package/locales/documents/fr.json +88 -0
- package/locales/documents/ha.json +86 -0
- package/locales/documents/he.json +88 -0
- package/locales/documents/hi.json +86 -0
- package/locales/documents/hr.json +88 -0
- package/locales/documents/hu.json +86 -0
- package/locales/documents/id.json +84 -0
- package/locales/documents/it.json +88 -0
- package/locales/documents/ja.json +84 -0
- package/locales/documents/ko.json +84 -0
- package/locales/documents/mr.json +86 -0
- package/locales/documents/ms.json +84 -0
- package/locales/documents/nl.json +86 -0
- package/locales/documents/pl.json +90 -0
- package/locales/documents/pt.json +88 -0
- package/locales/documents/ro.json +88 -0
- package/locales/documents/ru.json +90 -0
- package/locales/documents/sk.json +90 -0
- package/locales/documents/sv.json +86 -0
- package/locales/documents/sw.json +86 -0
- package/locales/documents/ta.json +86 -0
- package/locales/documents/te.json +86 -0
- package/locales/documents/th.json +84 -0
- package/locales/documents/tl.json +86 -0
- package/locales/documents/tr.json +86 -0
- package/locales/documents/uk.json +90 -0
- package/locales/documents/ur.json +86 -0
- package/locales/documents/vi.json +84 -0
- package/locales/documents/yo.json +84 -0
- package/locales/documents/zh-Hans.json +84 -0
- package/locales/documents/zh-Hant.json +84 -0
- package/locales/el.json +438 -0
- package/locales/en.json +438 -0
- package/locales/enterprise/am.json +49 -0
- package/locales/enterprise/ar.json +49 -0
- package/locales/enterprise/bg.json +49 -0
- package/locales/enterprise/bn.json +49 -0
- package/locales/enterprise/br.json +49 -0
- package/locales/enterprise/co.json +49 -0
- package/locales/enterprise/cs.json +49 -0
- package/locales/enterprise/da.json +49 -0
- package/locales/enterprise/de.json +49 -0
- package/locales/enterprise/el.json +49 -0
- package/locales/enterprise/en.json +49 -0
- package/locales/enterprise/es.json +49 -0
- package/locales/enterprise/fa.json +49 -0
- package/locales/enterprise/fi.json +49 -0
- package/locales/enterprise/fr-CA.json +49 -0
- package/locales/enterprise/fr.json +49 -0
- package/locales/enterprise/ha.json +49 -0
- package/locales/enterprise/he.json +49 -0
- package/locales/enterprise/hi.json +49 -0
- package/locales/enterprise/hr.json +49 -0
- package/locales/enterprise/hu.json +49 -0
- package/locales/enterprise/id.json +49 -0
- package/locales/enterprise/it.json +49 -0
- package/locales/enterprise/ja.json +49 -0
- package/locales/enterprise/ko.json +49 -0
- package/locales/enterprise/mr.json +49 -0
- package/locales/enterprise/ms.json +49 -0
- package/locales/enterprise/nl.json +49 -0
- package/locales/enterprise/pl.json +49 -0
- package/locales/enterprise/pt.json +49 -0
- package/locales/enterprise/ro.json +49 -0
- package/locales/enterprise/ru.json +49 -0
- package/locales/enterprise/sk.json +49 -0
- package/locales/enterprise/sv.json +49 -0
- package/locales/enterprise/sw.json +49 -0
- package/locales/enterprise/ta.json +49 -0
- package/locales/enterprise/te.json +49 -0
- package/locales/enterprise/th.json +49 -0
- package/locales/enterprise/tl.json +49 -0
- package/locales/enterprise/tr.json +49 -0
- package/locales/enterprise/uk.json +49 -0
- package/locales/enterprise/ur.json +49 -0
- package/locales/enterprise/vi.json +49 -0
- package/locales/enterprise/yo.json +49 -0
- package/locales/enterprise/zh-Hans.json +49 -0
- package/locales/enterprise/zh-Hant.json +49 -0
- package/locales/es.json +447 -0
- package/locales/extensions/am.json +59 -0
- package/locales/extensions/ar.json +59 -0
- package/locales/extensions/bg.json +59 -0
- package/locales/extensions/bn.json +59 -0
- package/locales/extensions/br.json +59 -0
- package/locales/extensions/co.json +59 -0
- package/locales/extensions/cs.json +59 -0
- package/locales/extensions/da.json +59 -0
- package/locales/extensions/de.json +59 -0
- package/locales/extensions/el.json +59 -0
- package/locales/extensions/en.json +59 -0
- package/locales/extensions/es.json +59 -0
- package/locales/extensions/fa.json +59 -0
- package/locales/extensions/fi.json +59 -0
- package/locales/extensions/fr-CA.json +59 -0
- package/locales/extensions/fr.json +59 -0
- package/locales/extensions/ha.json +59 -0
- package/locales/extensions/he.json +59 -0
- package/locales/extensions/hi.json +59 -0
- package/locales/extensions/hr.json +59 -0
- package/locales/extensions/hu.json +59 -0
- package/locales/extensions/id.json +59 -0
- package/locales/extensions/it.json +59 -0
- package/locales/extensions/ja.json +59 -0
- package/locales/extensions/ko.json +59 -0
- package/locales/extensions/mr.json +59 -0
- package/locales/extensions/ms.json +59 -0
- package/locales/extensions/nl.json +59 -0
- package/locales/extensions/pl.json +59 -0
- package/locales/extensions/pt.json +59 -0
- package/locales/extensions/ro.json +59 -0
- package/locales/extensions/ru.json +59 -0
- package/locales/extensions/sk.json +59 -0
- package/locales/extensions/sv.json +59 -0
- package/locales/extensions/sw.json +59 -0
- package/locales/extensions/ta.json +59 -0
- package/locales/extensions/te.json +59 -0
- package/locales/extensions/th.json +59 -0
- package/locales/extensions/tl.json +59 -0
- package/locales/extensions/tr.json +59 -0
- package/locales/extensions/uk.json +59 -0
- package/locales/extensions/ur.json +59 -0
- package/locales/extensions/vi.json +59 -0
- package/locales/extensions/yo.json +59 -0
- package/locales/extensions/zh-Hans.json +59 -0
- package/locales/extensions/zh-Hant.json +59 -0
- package/locales/fa.json +438 -0
- package/locales/feedback/am.json +7 -0
- package/locales/feedback/ar.json +7 -0
- package/locales/feedback/bg.json +7 -0
- package/locales/feedback/bn.json +7 -0
- package/locales/feedback/br.json +7 -0
- package/locales/feedback/co.json +7 -0
- package/locales/feedback/cs.json +7 -0
- package/locales/feedback/da.json +7 -0
- package/locales/feedback/de.json +7 -0
- package/locales/feedback/el.json +7 -0
- package/locales/feedback/en.json +7 -0
- package/locales/feedback/es.json +7 -0
- package/locales/feedback/fa.json +7 -0
- package/locales/feedback/fi.json +7 -0
- package/locales/feedback/fr-CA.json +7 -0
- package/locales/feedback/fr.json +7 -0
- package/locales/feedback/ha.json +7 -0
- package/locales/feedback/he.json +7 -0
- package/locales/feedback/hi.json +7 -0
- package/locales/feedback/hr.json +7 -0
- package/locales/feedback/hu.json +7 -0
- package/locales/feedback/id.json +7 -0
- package/locales/feedback/it.json +7 -0
- package/locales/feedback/ja.json +7 -0
- package/locales/feedback/ko.json +7 -0
- package/locales/feedback/mr.json +7 -0
- package/locales/feedback/ms.json +7 -0
- package/locales/feedback/nl.json +7 -0
- package/locales/feedback/pl.json +7 -0
- package/locales/feedback/pt.json +7 -0
- package/locales/feedback/ro.json +7 -0
- package/locales/feedback/ru.json +7 -0
- package/locales/feedback/sk.json +7 -0
- package/locales/feedback/sv.json +7 -0
- package/locales/feedback/sw.json +7 -0
- package/locales/feedback/ta.json +7 -0
- package/locales/feedback/te.json +7 -0
- package/locales/feedback/th.json +7 -0
- package/locales/feedback/tl.json +7 -0
- package/locales/feedback/tr.json +7 -0
- package/locales/feedback/uk.json +7 -0
- package/locales/feedback/ur.json +7 -0
- package/locales/feedback/vi.json +7 -0
- package/locales/feedback/yo.json +7 -0
- package/locales/feedback/zh-Hans.json +7 -0
- package/locales/feedback/zh-Hant.json +7 -0
- package/locales/fi.json +438 -0
- package/locales/files/am.json +10 -0
- package/locales/files/ar.json +10 -0
- package/locales/files/bg.json +10 -0
- package/locales/files/bn.json +10 -0
- package/locales/files/br.json +10 -0
- package/locales/files/co.json +10 -0
- package/locales/files/cs.json +10 -0
- package/locales/files/da.json +10 -0
- package/locales/files/de.json +10 -0
- package/locales/files/el.json +10 -0
- package/locales/files/en.json +10 -0
- package/locales/files/es.json +10 -0
- package/locales/files/fa.json +10 -0
- package/locales/files/fi.json +10 -0
- package/locales/files/fr-CA.json +10 -0
- package/locales/files/fr.json +10 -0
- package/locales/files/ha.json +10 -0
- package/locales/files/he.json +10 -0
- package/locales/files/hi.json +10 -0
- package/locales/files/hr.json +10 -0
- package/locales/files/hu.json +10 -0
- package/locales/files/id.json +10 -0
- package/locales/files/it.json +10 -0
- package/locales/files/ja.json +10 -0
- package/locales/files/ko.json +10 -0
- package/locales/files/mr.json +10 -0
- package/locales/files/ms.json +10 -0
- package/locales/files/nl.json +10 -0
- package/locales/files/pl.json +10 -0
- package/locales/files/pt.json +10 -0
- package/locales/files/ro.json +10 -0
- package/locales/files/ru.json +10 -0
- package/locales/files/sk.json +10 -0
- package/locales/files/sv.json +10 -0
- package/locales/files/sw.json +10 -0
- package/locales/files/ta.json +10 -0
- package/locales/files/te.json +10 -0
- package/locales/files/th.json +10 -0
- package/locales/files/tl.json +10 -0
- package/locales/files/tr.json +10 -0
- package/locales/files/uk.json +10 -0
- package/locales/files/ur.json +10 -0
- package/locales/files/vi.json +10 -0
- package/locales/files/yo.json +10 -0
- package/locales/files/zh-Hans.json +10 -0
- package/locales/files/zh-Hant.json +10 -0
- package/locales/first/am.json +26 -0
- package/locales/first/ar.json +26 -0
- package/locales/first/bg.json +26 -0
- package/locales/first/bn.json +26 -0
- package/locales/first/br.json +26 -0
- package/locales/first/co.json +26 -0
- package/locales/first/cs.json +26 -0
- package/locales/first/da.json +26 -0
- package/locales/first/de.json +26 -0
- package/locales/first/el.json +26 -0
- package/locales/first/en.json +26 -0
- package/locales/first/es.json +26 -0
- package/locales/first/fa.json +26 -0
- package/locales/first/fi.json +26 -0
- package/locales/first/fr-CA.json +26 -0
- package/locales/first/fr.json +26 -0
- package/locales/first/ha.json +26 -0
- package/locales/first/he.json +26 -0
- package/locales/first/hi.json +26 -0
- package/locales/first/hr.json +26 -0
- package/locales/first/hu.json +26 -0
- package/locales/first/id.json +26 -0
- package/locales/first/it.json +26 -0
- package/locales/first/ja.json +26 -0
- package/locales/first/ko.json +26 -0
- package/locales/first/mr.json +26 -0
- package/locales/first/ms.json +26 -0
- package/locales/first/nl.json +26 -0
- package/locales/first/pl.json +26 -0
- package/locales/first/pt.json +26 -0
- package/locales/first/ro.json +26 -0
- package/locales/first/ru.json +26 -0
- package/locales/first/sk.json +26 -0
- package/locales/first/sv.json +26 -0
- package/locales/first/sw.json +26 -0
- package/locales/first/ta.json +26 -0
- package/locales/first/te.json +26 -0
- package/locales/first/th.json +26 -0
- package/locales/first/tl.json +26 -0
- package/locales/first/tr.json +26 -0
- package/locales/first/uk.json +26 -0
- package/locales/first/ur.json +26 -0
- package/locales/first/vi.json +26 -0
- package/locales/first/yo.json +26 -0
- package/locales/first/zh-Hans.json +26 -0
- package/locales/first/zh-Hant.json +26 -0
- package/locales/flows/am.json +54 -0
- package/locales/flows/ar.json +54 -0
- package/locales/flows/bg.json +54 -0
- package/locales/flows/bn.json +54 -0
- package/locales/flows/br.json +54 -0
- package/locales/flows/co.json +54 -0
- package/locales/flows/cs.json +54 -0
- package/locales/flows/da.json +54 -0
- package/locales/flows/de.json +54 -0
- package/locales/flows/el.json +54 -0
- package/locales/flows/en.json +54 -0
- package/locales/flows/es.json +54 -0
- package/locales/flows/fa.json +54 -0
- package/locales/flows/fi.json +54 -0
- package/locales/flows/fr-CA.json +54 -0
- package/locales/flows/fr.json +54 -0
- package/locales/flows/ha.json +54 -0
- package/locales/flows/he.json +54 -0
- package/locales/flows/hi.json +54 -0
- package/locales/flows/hr.json +54 -0
- package/locales/flows/hu.json +54 -0
- package/locales/flows/id.json +54 -0
- package/locales/flows/it.json +54 -0
- package/locales/flows/ja.json +54 -0
- package/locales/flows/ko.json +54 -0
- package/locales/flows/mr.json +54 -0
- package/locales/flows/ms.json +54 -0
- package/locales/flows/nl.json +54 -0
- package/locales/flows/pl.json +54 -0
- package/locales/flows/pt.json +54 -0
- package/locales/flows/ro.json +54 -0
- package/locales/flows/ru.json +54 -0
- package/locales/flows/sk.json +54 -0
- package/locales/flows/sv.json +54 -0
- package/locales/flows/sw.json +54 -0
- package/locales/flows/ta.json +54 -0
- package/locales/flows/te.json +54 -0
- package/locales/flows/th.json +54 -0
- package/locales/flows/tl.json +54 -0
- package/locales/flows/tr.json +54 -0
- package/locales/flows/uk.json +54 -0
- package/locales/flows/ur.json +54 -0
- package/locales/flows/vi.json +54 -0
- package/locales/flows/yo.json +54 -0
- package/locales/flows/zh-Hans.json +54 -0
- package/locales/flows/zh-Hant.json +54 -0
- package/locales/folders/am.json +40 -0
- package/locales/folders/ar.json +44 -0
- package/locales/folders/bg.json +40 -0
- package/locales/folders/bn.json +40 -0
- package/locales/folders/br.json +43 -0
- package/locales/folders/co.json +41 -0
- package/locales/folders/cs.json +42 -0
- package/locales/folders/da.json +40 -0
- package/locales/folders/de.json +40 -0
- package/locales/folders/el.json +40 -0
- package/locales/folders/en.json +40 -0
- package/locales/folders/es.json +41 -0
- package/locales/folders/fa.json +40 -0
- package/locales/folders/fi.json +40 -0
- package/locales/folders/fr-CA.json +41 -0
- package/locales/folders/fr.json +41 -0
- package/locales/folders/ha.json +40 -0
- package/locales/folders/he.json +41 -0
- package/locales/folders/hi.json +40 -0
- package/locales/folders/hr.json +41 -0
- package/locales/folders/hu.json +40 -0
- package/locales/folders/id.json +39 -0
- package/locales/folders/it.json +41 -0
- package/locales/folders/ja.json +39 -0
- package/locales/folders/ko.json +39 -0
- package/locales/folders/mr.json +40 -0
- package/locales/folders/ms.json +39 -0
- package/locales/folders/nl.json +40 -0
- package/locales/folders/pl.json +42 -0
- package/locales/folders/pt.json +41 -0
- package/locales/folders/ro.json +41 -0
- package/locales/folders/ru.json +42 -0
- package/locales/folders/sk.json +42 -0
- package/locales/folders/sv.json +40 -0
- package/locales/folders/sw.json +40 -0
- package/locales/folders/ta.json +40 -0
- package/locales/folders/te.json +40 -0
- package/locales/folders/th.json +39 -0
- package/locales/folders/tl.json +40 -0
- package/locales/folders/tr.json +40 -0
- package/locales/folders/uk.json +42 -0
- package/locales/folders/ur.json +40 -0
- package/locales/folders/vi.json +39 -0
- package/locales/folders/yo.json +39 -0
- package/locales/folders/zh-Hans.json +39 -0
- package/locales/folders/zh-Hant.json +39 -0
- package/locales/fr-CA.json +447 -0
- package/locales/fr.json +447 -0
- package/locales/games/am.json +16 -0
- package/locales/games/ar.json +16 -0
- package/locales/games/bg.json +16 -0
- package/locales/games/bn.json +16 -0
- package/locales/games/br.json +16 -0
- package/locales/games/co.json +16 -0
- package/locales/games/cs.json +16 -0
- package/locales/games/da.json +16 -0
- package/locales/games/de.json +16 -0
- package/locales/games/el.json +16 -0
- package/locales/games/en.json +16 -0
- package/locales/games/es.json +16 -0
- package/locales/games/fa.json +16 -0
- package/locales/games/fi.json +16 -0
- package/locales/games/fr-CA.json +16 -0
- package/locales/games/fr.json +16 -0
- package/locales/games/ha.json +16 -0
- package/locales/games/he.json +16 -0
- package/locales/games/hi.json +16 -0
- package/locales/games/hr.json +16 -0
- package/locales/games/hu.json +16 -0
- package/locales/games/id.json +16 -0
- package/locales/games/it.json +16 -0
- package/locales/games/ja.json +16 -0
- package/locales/games/ko.json +16 -0
- package/locales/games/mr.json +16 -0
- package/locales/games/ms.json +16 -0
- package/locales/games/nl.json +16 -0
- package/locales/games/pl.json +16 -0
- package/locales/games/pt.json +16 -0
- package/locales/games/ro.json +16 -0
- package/locales/games/ru.json +16 -0
- package/locales/games/sk.json +16 -0
- package/locales/games/sv.json +16 -0
- package/locales/games/sw.json +16 -0
- package/locales/games/ta.json +16 -0
- package/locales/games/te.json +16 -0
- package/locales/games/th.json +16 -0
- package/locales/games/tl.json +16 -0
- package/locales/games/tr.json +16 -0
- package/locales/games/uk.json +16 -0
- package/locales/games/ur.json +16 -0
- package/locales/games/vi.json +16 -0
- package/locales/games/yo.json +16 -0
- package/locales/games/zh-Hans.json +16 -0
- package/locales/games/zh-Hant.json +16 -0
- package/locales/ha.json +438 -0
- package/locales/he.json +454 -0
- package/locales/hi.json +438 -0
- package/locales/hr.json +447 -0
- package/locales/hu.json +438 -0
- package/locales/id.json +429 -0
- package/locales/interactive/am.json +18 -0
- package/locales/interactive/ar.json +18 -0
- package/locales/interactive/bg.json +18 -0
- package/locales/interactive/bn.json +18 -0
- package/locales/interactive/br.json +18 -0
- package/locales/interactive/co.json +18 -0
- package/locales/interactive/cs.json +18 -0
- package/locales/interactive/da.json +18 -0
- package/locales/interactive/de.json +18 -0
- package/locales/interactive/el.json +18 -0
- package/locales/interactive/en.json +18 -0
- package/locales/interactive/es.json +18 -0
- package/locales/interactive/fa.json +18 -0
- package/locales/interactive/fi.json +18 -0
- package/locales/interactive/fr-CA.json +18 -0
- package/locales/interactive/fr.json +18 -0
- package/locales/interactive/ha.json +18 -0
- package/locales/interactive/he.json +18 -0
- package/locales/interactive/hi.json +18 -0
- package/locales/interactive/hr.json +18 -0
- package/locales/interactive/hu.json +18 -0
- package/locales/interactive/id.json +18 -0
- package/locales/interactive/it.json +18 -0
- package/locales/interactive/ja.json +18 -0
- package/locales/interactive/ko.json +18 -0
- package/locales/interactive/mr.json +18 -0
- package/locales/interactive/ms.json +18 -0
- package/locales/interactive/nl.json +18 -0
- package/locales/interactive/pl.json +18 -0
- package/locales/interactive/pt.json +18 -0
- package/locales/interactive/ro.json +18 -0
- package/locales/interactive/ru.json +18 -0
- package/locales/interactive/sk.json +18 -0
- package/locales/interactive/sv.json +18 -0
- package/locales/interactive/sw.json +18 -0
- package/locales/interactive/ta.json +18 -0
- package/locales/interactive/te.json +18 -0
- package/locales/interactive/th.json +18 -0
- package/locales/interactive/tl.json +18 -0
- package/locales/interactive/tr.json +18 -0
- package/locales/interactive/uk.json +18 -0
- package/locales/interactive/ur.json +18 -0
- package/locales/interactive/vi.json +18 -0
- package/locales/interactive/yo.json +18 -0
- package/locales/interactive/zh-Hans.json +18 -0
- package/locales/interactive/zh-Hant.json +18 -0
- package/locales/it.json +447 -0
- package/locales/ja.json +429 -0
- package/locales/ko.json +429 -0
- package/locales/layouts/am.json +9 -0
- package/locales/layouts/ar.json +9 -0
- package/locales/layouts/bg.json +9 -0
- package/locales/layouts/bn.json +9 -0
- package/locales/layouts/br.json +9 -0
- package/locales/layouts/co.json +9 -0
- package/locales/layouts/cs.json +9 -0
- package/locales/layouts/da.json +9 -0
- package/locales/layouts/de.json +9 -0
- package/locales/layouts/el.json +9 -0
- package/locales/layouts/en.json +9 -0
- package/locales/layouts/es.json +9 -0
- package/locales/layouts/fa.json +9 -0
- package/locales/layouts/fi.json +9 -0
- package/locales/layouts/fr-CA.json +9 -0
- package/locales/layouts/fr.json +9 -0
- package/locales/layouts/ha.json +9 -0
- package/locales/layouts/he.json +9 -0
- package/locales/layouts/hi.json +9 -0
- package/locales/layouts/hr.json +9 -0
- package/locales/layouts/hu.json +9 -0
- package/locales/layouts/id.json +9 -0
- package/locales/layouts/it.json +9 -0
- package/locales/layouts/ja.json +9 -0
- package/locales/layouts/ko.json +9 -0
- package/locales/layouts/mr.json +9 -0
- package/locales/layouts/ms.json +9 -0
- package/locales/layouts/nl.json +9 -0
- package/locales/layouts/pl.json +9 -0
- package/locales/layouts/pt.json +9 -0
- package/locales/layouts/ro.json +9 -0
- package/locales/layouts/ru.json +9 -0
- package/locales/layouts/sk.json +9 -0
- package/locales/layouts/sv.json +9 -0
- package/locales/layouts/sw.json +9 -0
- package/locales/layouts/ta.json +9 -0
- package/locales/layouts/te.json +9 -0
- package/locales/layouts/th.json +9 -0
- package/locales/layouts/tl.json +9 -0
- package/locales/layouts/tr.json +9 -0
- package/locales/layouts/uk.json +9 -0
- package/locales/layouts/ur.json +9 -0
- package/locales/layouts/vi.json +9 -0
- package/locales/layouts/yo.json +9 -0
- package/locales/layouts/zh-Hans.json +9 -0
- package/locales/layouts/zh-Hant.json +9 -0
- package/locales/lock/am.json +39 -0
- package/locales/lock/ar.json +39 -0
- package/locales/lock/bg.json +39 -0
- package/locales/lock/bn.json +39 -0
- package/locales/lock/br.json +39 -0
- package/locales/lock/co.json +39 -0
- package/locales/lock/cs.json +39 -0
- package/locales/lock/da.json +39 -0
- package/locales/lock/de.json +39 -0
- package/locales/lock/el.json +39 -0
- package/locales/lock/en.json +39 -0
- package/locales/lock/es.json +39 -0
- package/locales/lock/fa.json +39 -0
- package/locales/lock/fi.json +39 -0
- package/locales/lock/fr-CA.json +39 -0
- package/locales/lock/fr.json +39 -0
- package/locales/lock/ha.json +39 -0
- package/locales/lock/he.json +39 -0
- package/locales/lock/hi.json +39 -0
- package/locales/lock/hr.json +39 -0
- package/locales/lock/hu.json +39 -0
- package/locales/lock/id.json +39 -0
- package/locales/lock/it.json +39 -0
- package/locales/lock/ja.json +39 -0
- package/locales/lock/ko.json +39 -0
- package/locales/lock/mr.json +39 -0
- package/locales/lock/ms.json +39 -0
- package/locales/lock/nl.json +39 -0
- package/locales/lock/pl.json +39 -0
- package/locales/lock/pt.json +39 -0
- package/locales/lock/ro.json +39 -0
- package/locales/lock/ru.json +39 -0
- package/locales/lock/sk.json +39 -0
- package/locales/lock/sv.json +39 -0
- package/locales/lock/sw.json +39 -0
- package/locales/lock/ta.json +39 -0
- package/locales/lock/te.json +39 -0
- package/locales/lock/th.json +39 -0
- package/locales/lock/tl.json +39 -0
- package/locales/lock/tr.json +39 -0
- package/locales/lock/uk.json +39 -0
- package/locales/lock/ur.json +39 -0
- package/locales/lock/vi.json +39 -0
- package/locales/lock/yo.json +39 -0
- package/locales/lock/zh-Hans.json +39 -0
- package/locales/lock/zh-Hant.json +39 -0
- package/locales/look/am.json +34 -0
- package/locales/look/ar.json +34 -0
- package/locales/look/bg.json +34 -0
- package/locales/look/bn.json +34 -0
- package/locales/look/br.json +34 -0
- package/locales/look/co.json +34 -0
- package/locales/look/cs.json +34 -0
- package/locales/look/da.json +34 -0
- package/locales/look/de.json +34 -0
- package/locales/look/el.json +34 -0
- package/locales/look/en.json +34 -0
- package/locales/look/es.json +34 -0
- package/locales/look/fa.json +34 -0
- package/locales/look/fi.json +34 -0
- package/locales/look/fr-CA.json +34 -0
- package/locales/look/fr.json +34 -0
- package/locales/look/ha.json +34 -0
- package/locales/look/he.json +34 -0
- package/locales/look/hi.json +34 -0
- package/locales/look/hr.json +34 -0
- package/locales/look/hu.json +34 -0
- package/locales/look/id.json +34 -0
- package/locales/look/it.json +34 -0
- package/locales/look/ja.json +34 -0
- package/locales/look/ko.json +34 -0
- package/locales/look/mr.json +34 -0
- package/locales/look/ms.json +34 -0
- package/locales/look/nl.json +34 -0
- package/locales/look/pl.json +34 -0
- package/locales/look/pt.json +34 -0
- package/locales/look/ro.json +34 -0
- package/locales/look/ru.json +34 -0
- package/locales/look/sk.json +34 -0
- package/locales/look/sv.json +34 -0
- package/locales/look/sw.json +34 -0
- package/locales/look/ta.json +34 -0
- package/locales/look/te.json +34 -0
- package/locales/look/th.json +34 -0
- package/locales/look/tl.json +34 -0
- package/locales/look/tr.json +34 -0
- package/locales/look/uk.json +34 -0
- package/locales/look/ur.json +34 -0
- package/locales/look/vi.json +34 -0
- package/locales/look/yo.json +34 -0
- package/locales/look/zh-Hans.json +34 -0
- package/locales/look/zh-Hant.json +34 -0
- package/locales/machine/am.json +20 -0
- package/locales/machine/ar.json +20 -0
- package/locales/machine/bg.json +20 -0
- package/locales/machine/bn.json +20 -0
- package/locales/machine/br.json +20 -0
- package/locales/machine/co.json +20 -0
- package/locales/machine/cs.json +20 -0
- package/locales/machine/da.json +20 -0
- package/locales/machine/de.json +20 -0
- package/locales/machine/el.json +20 -0
- package/locales/machine/en.json +20 -0
- package/locales/machine/es.json +20 -0
- package/locales/machine/fa.json +20 -0
- package/locales/machine/fi.json +20 -0
- package/locales/machine/fr-CA.json +20 -0
- package/locales/machine/fr.json +20 -0
- package/locales/machine/ha.json +20 -0
- package/locales/machine/he.json +20 -0
- package/locales/machine/hi.json +20 -0
- package/locales/machine/hr.json +20 -0
- package/locales/machine/hu.json +20 -0
- package/locales/machine/id.json +20 -0
- package/locales/machine/it.json +20 -0
- package/locales/machine/ja.json +20 -0
- package/locales/machine/ko.json +20 -0
- package/locales/machine/mr.json +20 -0
- package/locales/machine/ms.json +20 -0
- package/locales/machine/nl.json +20 -0
- package/locales/machine/pl.json +20 -0
- package/locales/machine/pt.json +20 -0
- package/locales/machine/ro.json +20 -0
- package/locales/machine/ru.json +20 -0
- package/locales/machine/sk.json +20 -0
- package/locales/machine/sv.json +20 -0
- package/locales/machine/sw.json +20 -0
- package/locales/machine/ta.json +20 -0
- package/locales/machine/te.json +20 -0
- package/locales/machine/th.json +20 -0
- package/locales/machine/tl.json +20 -0
- package/locales/machine/tr.json +20 -0
- package/locales/machine/uk.json +20 -0
- package/locales/machine/ur.json +20 -0
- package/locales/machine/vi.json +20 -0
- package/locales/machine/yo.json +20 -0
- package/locales/machine/zh-Hans.json +20 -0
- package/locales/machine/zh-Hant.json +20 -0
- package/locales/made/am.json +22 -0
- package/locales/made/ar.json +22 -0
- package/locales/made/bg.json +22 -0
- package/locales/made/bn.json +22 -0
- package/locales/made/br.json +22 -0
- package/locales/made/co.json +22 -0
- package/locales/made/cs.json +22 -0
- package/locales/made/da.json +22 -0
- package/locales/made/de.json +22 -0
- package/locales/made/el.json +22 -0
- package/locales/made/en.json +22 -0
- package/locales/made/es.json +22 -0
- package/locales/made/fa.json +22 -0
- package/locales/made/fi.json +22 -0
- package/locales/made/fr-CA.json +22 -0
- package/locales/made/fr.json +22 -0
- package/locales/made/ha.json +22 -0
- package/locales/made/he.json +22 -0
- package/locales/made/hi.json +22 -0
- package/locales/made/hr.json +22 -0
- package/locales/made/hu.json +22 -0
- package/locales/made/id.json +22 -0
- package/locales/made/it.json +22 -0
- package/locales/made/ja.json +22 -0
- package/locales/made/ko.json +22 -0
- package/locales/made/mr.json +22 -0
- package/locales/made/ms.json +22 -0
- package/locales/made/nl.json +22 -0
- package/locales/made/pl.json +22 -0
- package/locales/made/pt.json +22 -0
- package/locales/made/ro.json +22 -0
- package/locales/made/ru.json +22 -0
- package/locales/made/sk.json +22 -0
- package/locales/made/sv.json +22 -0
- package/locales/made/sw.json +22 -0
- package/locales/made/ta.json +22 -0
- package/locales/made/te.json +22 -0
- package/locales/made/th.json +22 -0
- package/locales/made/tl.json +22 -0
- package/locales/made/tr.json +22 -0
- package/locales/made/uk.json +22 -0
- package/locales/made/ur.json +22 -0
- package/locales/made/vi.json +22 -0
- package/locales/made/yo.json +22 -0
- package/locales/made/zh-Hans.json +22 -0
- package/locales/made/zh-Hant.json +22 -0
- package/locales/mr.json +438 -0
- package/locales/ms.json +429 -0
- package/locales/natural-voice/am.json +9 -0
- package/locales/natural-voice/ar.json +9 -0
- package/locales/natural-voice/bg.json +9 -0
- package/locales/natural-voice/bn.json +9 -0
- package/locales/natural-voice/br.json +9 -0
- package/locales/natural-voice/co.json +9 -0
- package/locales/natural-voice/cs.json +9 -0
- package/locales/natural-voice/da.json +9 -0
- package/locales/natural-voice/de.json +9 -0
- package/locales/natural-voice/el.json +9 -0
- package/locales/natural-voice/en.json +9 -0
- package/locales/natural-voice/es.json +9 -0
- package/locales/natural-voice/fa.json +9 -0
- package/locales/natural-voice/fi.json +9 -0
- package/locales/natural-voice/fr-CA.json +9 -0
- package/locales/natural-voice/fr.json +9 -0
- package/locales/natural-voice/ha.json +9 -0
- package/locales/natural-voice/he.json +9 -0
- package/locales/natural-voice/hi.json +9 -0
- package/locales/natural-voice/hr.json +9 -0
- package/locales/natural-voice/hu.json +9 -0
- package/locales/natural-voice/id.json +9 -0
- package/locales/natural-voice/it.json +9 -0
- package/locales/natural-voice/ja.json +9 -0
- package/locales/natural-voice/ko.json +9 -0
- package/locales/natural-voice/mr.json +9 -0
- package/locales/natural-voice/ms.json +9 -0
- package/locales/natural-voice/nl.json +9 -0
- package/locales/natural-voice/pl.json +9 -0
- package/locales/natural-voice/pt.json +9 -0
- package/locales/natural-voice/ro.json +9 -0
- package/locales/natural-voice/ru.json +9 -0
- package/locales/natural-voice/sk.json +9 -0
- package/locales/natural-voice/sv.json +9 -0
- package/locales/natural-voice/sw.json +9 -0
- package/locales/natural-voice/ta.json +9 -0
- package/locales/natural-voice/te.json +9 -0
- package/locales/natural-voice/th.json +9 -0
- package/locales/natural-voice/tl.json +9 -0
- package/locales/natural-voice/tr.json +9 -0
- package/locales/natural-voice/uk.json +9 -0
- package/locales/natural-voice/ur.json +9 -0
- package/locales/natural-voice/vi.json +9 -0
- package/locales/natural-voice/yo.json +9 -0
- package/locales/natural-voice/zh-Hans.json +9 -0
- package/locales/natural-voice/zh-Hant.json +9 -0
- package/locales/nl.json +438 -0
- package/locales/notifications/am.json +9 -0
- package/locales/notifications/ar.json +9 -0
- package/locales/notifications/bg.json +9 -0
- package/locales/notifications/bn.json +9 -0
- package/locales/notifications/br.json +9 -0
- package/locales/notifications/co.json +9 -0
- package/locales/notifications/cs.json +9 -0
- package/locales/notifications/da.json +9 -0
- package/locales/notifications/de.json +9 -0
- package/locales/notifications/el.json +9 -0
- package/locales/notifications/en.json +9 -0
- package/locales/notifications/es.json +9 -0
- package/locales/notifications/fa.json +9 -0
- package/locales/notifications/fi.json +9 -0
- package/locales/notifications/fr-CA.json +9 -0
- package/locales/notifications/fr.json +9 -0
- package/locales/notifications/ha.json +9 -0
- package/locales/notifications/he.json +9 -0
- package/locales/notifications/hi.json +9 -0
- package/locales/notifications/hr.json +9 -0
- package/locales/notifications/hu.json +9 -0
- package/locales/notifications/id.json +9 -0
- package/locales/notifications/it.json +9 -0
- package/locales/notifications/ja.json +9 -0
- package/locales/notifications/ko.json +9 -0
- package/locales/notifications/mr.json +9 -0
- package/locales/notifications/ms.json +9 -0
- package/locales/notifications/nl.json +9 -0
- package/locales/notifications/pl.json +9 -0
- package/locales/notifications/pt.json +9 -0
- package/locales/notifications/ro.json +9 -0
- package/locales/notifications/ru.json +9 -0
- package/locales/notifications/sk.json +9 -0
- package/locales/notifications/sv.json +9 -0
- package/locales/notifications/sw.json +9 -0
- package/locales/notifications/ta.json +9 -0
- package/locales/notifications/te.json +9 -0
- package/locales/notifications/th.json +9 -0
- package/locales/notifications/tl.json +9 -0
- package/locales/notifications/tr.json +9 -0
- package/locales/notifications/uk.json +9 -0
- package/locales/notifications/ur.json +9 -0
- package/locales/notifications/vi.json +9 -0
- package/locales/notifications/yo.json +9 -0
- package/locales/notifications/zh-Hans.json +9 -0
- package/locales/notifications/zh-Hant.json +9 -0
- package/locales/out/am.json +13 -0
- package/locales/out/ar.json +13 -0
- package/locales/out/bg.json +13 -0
- package/locales/out/bn.json +13 -0
- package/locales/out/br.json +13 -0
- package/locales/out/co.json +13 -0
- package/locales/out/cs.json +13 -0
- package/locales/out/da.json +13 -0
- package/locales/out/de.json +13 -0
- package/locales/out/el.json +13 -0
- package/locales/out/en.json +13 -0
- package/locales/out/es.json +13 -0
- package/locales/out/fa.json +13 -0
- package/locales/out/fi.json +13 -0
- package/locales/out/fr-CA.json +13 -0
- package/locales/out/fr.json +13 -0
- package/locales/out/ha.json +13 -0
- package/locales/out/he.json +13 -0
- package/locales/out/hi.json +13 -0
- package/locales/out/hr.json +13 -0
- package/locales/out/hu.json +13 -0
- package/locales/out/id.json +13 -0
- package/locales/out/it.json +13 -0
- package/locales/out/ja.json +13 -0
- package/locales/out/ko.json +13 -0
- package/locales/out/mr.json +13 -0
- package/locales/out/ms.json +13 -0
- package/locales/out/nl.json +13 -0
- package/locales/out/pl.json +13 -0
- package/locales/out/pt.json +13 -0
- package/locales/out/ro.json +13 -0
- package/locales/out/ru.json +13 -0
- package/locales/out/sk.json +13 -0
- package/locales/out/sv.json +13 -0
- package/locales/out/sw.json +13 -0
- package/locales/out/ta.json +13 -0
- package/locales/out/te.json +13 -0
- package/locales/out/th.json +13 -0
- package/locales/out/tl.json +13 -0
- package/locales/out/tr.json +13 -0
- package/locales/out/uk.json +13 -0
- package/locales/out/ur.json +13 -0
- package/locales/out/vi.json +13 -0
- package/locales/out/yo.json +13 -0
- package/locales/out/zh-Hans.json +13 -0
- package/locales/out/zh-Hant.json +13 -0
- package/locales/pictures/am.json +42 -0
- package/locales/pictures/ar.json +42 -0
- package/locales/pictures/bg.json +42 -0
- package/locales/pictures/bn.json +42 -0
- package/locales/pictures/br.json +42 -0
- package/locales/pictures/co.json +42 -0
- package/locales/pictures/cs.json +42 -0
- package/locales/pictures/da.json +42 -0
- package/locales/pictures/de.json +42 -0
- package/locales/pictures/el.json +42 -0
- package/locales/pictures/en.json +42 -0
- package/locales/pictures/es.json +42 -0
- package/locales/pictures/fa.json +42 -0
- package/locales/pictures/fi.json +42 -0
- package/locales/pictures/fr-CA.json +42 -0
- package/locales/pictures/fr.json +42 -0
- package/locales/pictures/ha.json +42 -0
- package/locales/pictures/he.json +42 -0
- package/locales/pictures/hi.json +42 -0
- package/locales/pictures/hr.json +42 -0
- package/locales/pictures/hu.json +42 -0
- package/locales/pictures/id.json +42 -0
- package/locales/pictures/it.json +42 -0
- package/locales/pictures/ja.json +42 -0
- package/locales/pictures/ko.json +42 -0
- package/locales/pictures/mr.json +42 -0
- package/locales/pictures/ms.json +42 -0
- package/locales/pictures/nl.json +42 -0
- package/locales/pictures/pl.json +42 -0
- package/locales/pictures/pt.json +42 -0
- package/locales/pictures/ro.json +42 -0
- package/locales/pictures/ru.json +42 -0
- package/locales/pictures/sk.json +42 -0
- package/locales/pictures/sv.json +42 -0
- package/locales/pictures/sw.json +42 -0
- package/locales/pictures/ta.json +42 -0
- package/locales/pictures/te.json +42 -0
- package/locales/pictures/th.json +42 -0
- package/locales/pictures/tl.json +42 -0
- package/locales/pictures/tr.json +42 -0
- package/locales/pictures/uk.json +42 -0
- package/locales/pictures/ur.json +42 -0
- package/locales/pictures/vi.json +42 -0
- package/locales/pictures/yo.json +42 -0
- package/locales/pictures/zh-Hans.json +42 -0
- package/locales/pictures/zh-Hant.json +42 -0
- package/locales/pl.json +456 -0
- package/locales/plan/am.json +13 -0
- package/locales/plan/ar.json +13 -0
- package/locales/plan/bg.json +13 -0
- package/locales/plan/bn.json +13 -0
- package/locales/plan/br.json +13 -0
- package/locales/plan/co.json +13 -0
- package/locales/plan/cs.json +13 -0
- package/locales/plan/da.json +13 -0
- package/locales/plan/de.json +13 -0
- package/locales/plan/el.json +13 -0
- package/locales/plan/en.json +13 -0
- package/locales/plan/es.json +13 -0
- package/locales/plan/fa.json +13 -0
- package/locales/plan/fi.json +13 -0
- package/locales/plan/fr-CA.json +13 -0
- package/locales/plan/fr.json +13 -0
- package/locales/plan/ha.json +13 -0
- package/locales/plan/he.json +13 -0
- package/locales/plan/hi.json +13 -0
- package/locales/plan/hr.json +13 -0
- package/locales/plan/hu.json +13 -0
- package/locales/plan/id.json +13 -0
- package/locales/plan/it.json +13 -0
- package/locales/plan/ja.json +13 -0
- package/locales/plan/ko.json +13 -0
- package/locales/plan/mr.json +13 -0
- package/locales/plan/ms.json +13 -0
- package/locales/plan/nl.json +13 -0
- package/locales/plan/pl.json +13 -0
- package/locales/plan/pt.json +13 -0
- package/locales/plan/ro.json +13 -0
- package/locales/plan/ru.json +13 -0
- package/locales/plan/sk.json +13 -0
- package/locales/plan/sv.json +13 -0
- package/locales/plan/sw.json +13 -0
- package/locales/plan/ta.json +13 -0
- package/locales/plan/te.json +13 -0
- package/locales/plan/th.json +13 -0
- package/locales/plan/tl.json +13 -0
- package/locales/plan/tr.json +13 -0
- package/locales/plan/uk.json +13 -0
- package/locales/plan/ur.json +13 -0
- package/locales/plan/vi.json +13 -0
- package/locales/plan/yo.json +13 -0
- package/locales/plan/zh-Hans.json +13 -0
- package/locales/plan/zh-Hant.json +13 -0
- package/locales/policy/am.json +41 -0
- package/locales/policy/ar.json +41 -0
- package/locales/policy/bg.json +41 -0
- package/locales/policy/bn.json +41 -0
- package/locales/policy/br.json +41 -0
- package/locales/policy/co.json +41 -0
- package/locales/policy/cs.json +41 -0
- package/locales/policy/da.json +41 -0
- package/locales/policy/de.json +41 -0
- package/locales/policy/el.json +41 -0
- package/locales/policy/en.json +41 -0
- package/locales/policy/es.json +41 -0
- package/locales/policy/fa.json +41 -0
- package/locales/policy/fi.json +41 -0
- package/locales/policy/fr-CA.json +41 -0
- package/locales/policy/fr.json +41 -0
- package/locales/policy/ha.json +41 -0
- package/locales/policy/he.json +41 -0
- package/locales/policy/hi.json +41 -0
- package/locales/policy/hr.json +41 -0
- package/locales/policy/hu.json +41 -0
- package/locales/policy/id.json +41 -0
- package/locales/policy/it.json +41 -0
- package/locales/policy/ja.json +41 -0
- package/locales/policy/ko.json +41 -0
- package/locales/policy/mr.json +41 -0
- package/locales/policy/ms.json +41 -0
- package/locales/policy/nl.json +41 -0
- package/locales/policy/pl.json +41 -0
- package/locales/policy/pt.json +41 -0
- package/locales/policy/ro.json +41 -0
- package/locales/policy/ru.json +41 -0
- package/locales/policy/sk.json +41 -0
- package/locales/policy/sv.json +41 -0
- package/locales/policy/sw.json +41 -0
- package/locales/policy/ta.json +41 -0
- package/locales/policy/te.json +41 -0
- package/locales/policy/th.json +41 -0
- package/locales/policy/tl.json +41 -0
- package/locales/policy/tr.json +41 -0
- package/locales/policy/uk.json +41 -0
- package/locales/policy/ur.json +41 -0
- package/locales/policy/vi.json +41 -0
- package/locales/policy/yo.json +41 -0
- package/locales/policy/zh-Hans.json +41 -0
- package/locales/policy/zh-Hant.json +41 -0
- package/locales/profiles/am.json +90 -0
- package/locales/profiles/ar.json +90 -0
- package/locales/profiles/bg.json +90 -0
- package/locales/profiles/bn.json +90 -0
- package/locales/profiles/br.json +90 -0
- package/locales/profiles/co.json +90 -0
- package/locales/profiles/cs.json +90 -0
- package/locales/profiles/da.json +90 -0
- package/locales/profiles/de.json +90 -0
- package/locales/profiles/el.json +90 -0
- package/locales/profiles/en.json +90 -0
- package/locales/profiles/es.json +90 -0
- package/locales/profiles/fa.json +90 -0
- package/locales/profiles/fi.json +90 -0
- package/locales/profiles/fr-CA.json +90 -0
- package/locales/profiles/fr.json +90 -0
- package/locales/profiles/ha.json +90 -0
- package/locales/profiles/he.json +90 -0
- package/locales/profiles/hi.json +90 -0
- package/locales/profiles/hr.json +90 -0
- package/locales/profiles/hu.json +90 -0
- package/locales/profiles/id.json +90 -0
- package/locales/profiles/it.json +90 -0
- package/locales/profiles/ja.json +90 -0
- package/locales/profiles/ko.json +90 -0
- package/locales/profiles/mr.json +90 -0
- package/locales/profiles/ms.json +90 -0
- package/locales/profiles/nl.json +90 -0
- package/locales/profiles/pl.json +90 -0
- package/locales/profiles/pt.json +90 -0
- package/locales/profiles/ro.json +90 -0
- package/locales/profiles/ru.json +90 -0
- package/locales/profiles/sk.json +90 -0
- package/locales/profiles/sv.json +90 -0
- package/locales/profiles/sw.json +90 -0
- package/locales/profiles/ta.json +90 -0
- package/locales/profiles/te.json +90 -0
- package/locales/profiles/th.json +90 -0
- package/locales/profiles/tl.json +90 -0
- package/locales/profiles/tr.json +90 -0
- package/locales/profiles/uk.json +90 -0
- package/locales/profiles/ur.json +90 -0
- package/locales/profiles/vi.json +90 -0
- package/locales/profiles/yo.json +90 -0
- package/locales/profiles/zh-Hans.json +90 -0
- package/locales/profiles/zh-Hant.json +90 -0
- package/locales/projects/am.json +4 -0
- package/locales/projects/ar.json +4 -0
- package/locales/projects/bg.json +4 -0
- package/locales/projects/bn.json +4 -0
- package/locales/projects/br.json +4 -0
- package/locales/projects/co.json +4 -0
- package/locales/projects/cs.json +4 -0
- package/locales/projects/da.json +4 -0
- package/locales/projects/de.json +4 -0
- package/locales/projects/el.json +4 -0
- package/locales/projects/en.json +4 -0
- package/locales/projects/es.json +4 -0
- package/locales/projects/fa.json +4 -0
- package/locales/projects/fi.json +4 -0
- package/locales/projects/fr-CA.json +4 -0
- package/locales/projects/fr.json +4 -0
- package/locales/projects/ha.json +4 -0
- package/locales/projects/he.json +4 -0
- package/locales/projects/hi.json +4 -0
- package/locales/projects/hr.json +4 -0
- package/locales/projects/hu.json +4 -0
- package/locales/projects/id.json +4 -0
- package/locales/projects/it.json +4 -0
- package/locales/projects/ja.json +4 -0
- package/locales/projects/ko.json +4 -0
- package/locales/projects/mr.json +4 -0
- package/locales/projects/ms.json +4 -0
- package/locales/projects/nl.json +4 -0
- package/locales/projects/pl.json +4 -0
- package/locales/projects/pt.json +4 -0
- package/locales/projects/ro.json +4 -0
- package/locales/projects/ru.json +4 -0
- package/locales/projects/sk.json +4 -0
- package/locales/projects/sv.json +4 -0
- package/locales/projects/sw.json +4 -0
- package/locales/projects/ta.json +4 -0
- package/locales/projects/te.json +4 -0
- package/locales/projects/th.json +4 -0
- package/locales/projects/tl.json +4 -0
- package/locales/projects/tr.json +4 -0
- package/locales/projects/uk.json +4 -0
- package/locales/projects/ur.json +4 -0
- package/locales/projects/vi.json +4 -0
- package/locales/projects/yo.json +4 -0
- package/locales/projects/zh-Hans.json +4 -0
- package/locales/projects/zh-Hant.json +4 -0
- package/locales/pt.json +447 -0
- package/locales/receipt/am.json +52 -0
- package/locales/receipt/ar.json +52 -0
- package/locales/receipt/bg.json +52 -0
- package/locales/receipt/bn.json +52 -0
- package/locales/receipt/br.json +52 -0
- package/locales/receipt/co.json +52 -0
- package/locales/receipt/cs.json +52 -0
- package/locales/receipt/da.json +52 -0
- package/locales/receipt/de.json +52 -0
- package/locales/receipt/el.json +52 -0
- package/locales/receipt/en.json +52 -0
- package/locales/receipt/es.json +52 -0
- package/locales/receipt/fa.json +52 -0
- package/locales/receipt/fi.json +52 -0
- package/locales/receipt/fr-CA.json +52 -0
- package/locales/receipt/fr.json +52 -0
- package/locales/receipt/ha.json +52 -0
- package/locales/receipt/he.json +52 -0
- package/locales/receipt/hi.json +52 -0
- package/locales/receipt/hr.json +52 -0
- package/locales/receipt/hu.json +52 -0
- package/locales/receipt/id.json +52 -0
- package/locales/receipt/it.json +52 -0
- package/locales/receipt/ja.json +52 -0
- package/locales/receipt/ko.json +52 -0
- package/locales/receipt/mr.json +52 -0
- package/locales/receipt/ms.json +52 -0
- package/locales/receipt/nl.json +52 -0
- package/locales/receipt/pl.json +52 -0
- package/locales/receipt/pt.json +52 -0
- package/locales/receipt/ro.json +52 -0
- package/locales/receipt/ru.json +52 -0
- package/locales/receipt/sk.json +52 -0
- package/locales/receipt/sv.json +52 -0
- package/locales/receipt/sw.json +52 -0
- package/locales/receipt/ta.json +52 -0
- package/locales/receipt/te.json +52 -0
- package/locales/receipt/th.json +52 -0
- package/locales/receipt/tl.json +52 -0
- package/locales/receipt/tr.json +52 -0
- package/locales/receipt/uk.json +52 -0
- package/locales/receipt/ur.json +52 -0
- package/locales/receipt/vi.json +52 -0
- package/locales/receipt/yo.json +52 -0
- package/locales/receipt/zh-Hans.json +52 -0
- package/locales/receipt/zh-Hant.json +52 -0
- package/locales/ro.json +447 -0
- package/locales/routines/am.json +59 -0
- package/locales/routines/ar.json +63 -0
- package/locales/routines/bg.json +59 -0
- package/locales/routines/bn.json +59 -0
- package/locales/routines/br.json +62 -0
- package/locales/routines/co.json +60 -0
- package/locales/routines/cs.json +61 -0
- package/locales/routines/da.json +59 -0
- package/locales/routines/de.json +59 -0
- package/locales/routines/el.json +59 -0
- package/locales/routines/en.json +59 -0
- package/locales/routines/es.json +60 -0
- package/locales/routines/fa.json +59 -0
- package/locales/routines/fi.json +59 -0
- package/locales/routines/fr-CA.json +60 -0
- package/locales/routines/fr.json +60 -0
- package/locales/routines/ha.json +59 -0
- package/locales/routines/he.json +61 -0
- package/locales/routines/hi.json +59 -0
- package/locales/routines/hr.json +60 -0
- package/locales/routines/hu.json +59 -0
- package/locales/routines/id.json +58 -0
- package/locales/routines/it.json +60 -0
- package/locales/routines/ja.json +58 -0
- package/locales/routines/ko.json +58 -0
- package/locales/routines/mr.json +59 -0
- package/locales/routines/ms.json +58 -0
- package/locales/routines/nl.json +59 -0
- package/locales/routines/pl.json +61 -0
- package/locales/routines/pt.json +60 -0
- package/locales/routines/ro.json +60 -0
- package/locales/routines/ru.json +61 -0
- package/locales/routines/sk.json +61 -0
- package/locales/routines/sv.json +59 -0
- package/locales/routines/sw.json +59 -0
- package/locales/routines/ta.json +59 -0
- package/locales/routines/te.json +59 -0
- package/locales/routines/th.json +58 -0
- package/locales/routines/tl.json +59 -0
- package/locales/routines/tr.json +59 -0
- package/locales/routines/uk.json +61 -0
- package/locales/routines/ur.json +59 -0
- package/locales/routines/vi.json +58 -0
- package/locales/routines/yo.json +58 -0
- package/locales/routines/zh-Hans.json +58 -0
- package/locales/routines/zh-Hant.json +58 -0
- package/locales/ru.json +456 -0
- package/locales/scores/am.json +12 -0
- package/locales/scores/ar.json +12 -0
- package/locales/scores/bg.json +12 -0
- package/locales/scores/bn.json +12 -0
- package/locales/scores/br.json +12 -0
- package/locales/scores/co.json +12 -0
- package/locales/scores/cs.json +12 -0
- package/locales/scores/da.json +12 -0
- package/locales/scores/de.json +12 -0
- package/locales/scores/el.json +12 -0
- package/locales/scores/en.json +12 -0
- package/locales/scores/es.json +12 -0
- package/locales/scores/fa.json +12 -0
- package/locales/scores/fi.json +12 -0
- package/locales/scores/fr-CA.json +12 -0
- package/locales/scores/fr.json +12 -0
- package/locales/scores/ha.json +12 -0
- package/locales/scores/he.json +12 -0
- package/locales/scores/hi.json +12 -0
- package/locales/scores/hr.json +12 -0
- package/locales/scores/hu.json +12 -0
- package/locales/scores/id.json +12 -0
- package/locales/scores/it.json +12 -0
- package/locales/scores/ja.json +12 -0
- package/locales/scores/ko.json +12 -0
- package/locales/scores/mr.json +12 -0
- package/locales/scores/ms.json +12 -0
- package/locales/scores/nl.json +12 -0
- package/locales/scores/pl.json +12 -0
- package/locales/scores/pt.json +12 -0
- package/locales/scores/ro.json +12 -0
- package/locales/scores/ru.json +12 -0
- package/locales/scores/sk.json +12 -0
- package/locales/scores/sv.json +12 -0
- package/locales/scores/sw.json +12 -0
- package/locales/scores/ta.json +12 -0
- package/locales/scores/te.json +12 -0
- package/locales/scores/th.json +12 -0
- package/locales/scores/tl.json +12 -0
- package/locales/scores/tr.json +12 -0
- package/locales/scores/uk.json +12 -0
- package/locales/scores/ur.json +12 -0
- package/locales/scores/vi.json +12 -0
- package/locales/scores/yo.json +12 -0
- package/locales/scores/zh-Hans.json +12 -0
- package/locales/scores/zh-Hant.json +12 -0
- package/locales/screen/am.json +11 -0
- package/locales/screen/ar.json +11 -0
- package/locales/screen/bg.json +11 -0
- package/locales/screen/bn.json +11 -0
- package/locales/screen/br.json +11 -0
- package/locales/screen/co.json +11 -0
- package/locales/screen/cs.json +11 -0
- package/locales/screen/da.json +11 -0
- package/locales/screen/de.json +11 -0
- package/locales/screen/el.json +11 -0
- package/locales/screen/en.json +11 -0
- package/locales/screen/es.json +11 -0
- package/locales/screen/fa.json +11 -0
- package/locales/screen/fi.json +11 -0
- package/locales/screen/fr-CA.json +11 -0
- package/locales/screen/fr.json +11 -0
- package/locales/screen/ha.json +11 -0
- package/locales/screen/he.json +11 -0
- package/locales/screen/hi.json +11 -0
- package/locales/screen/hr.json +11 -0
- package/locales/screen/hu.json +11 -0
- package/locales/screen/id.json +11 -0
- package/locales/screen/it.json +11 -0
- package/locales/screen/ja.json +11 -0
- package/locales/screen/ko.json +11 -0
- package/locales/screen/mr.json +11 -0
- package/locales/screen/ms.json +11 -0
- package/locales/screen/nl.json +11 -0
- package/locales/screen/pl.json +11 -0
- package/locales/screen/pt.json +11 -0
- package/locales/screen/ro.json +11 -0
- package/locales/screen/ru.json +11 -0
- package/locales/screen/sk.json +11 -0
- package/locales/screen/sv.json +11 -0
- package/locales/screen/sw.json +11 -0
- package/locales/screen/ta.json +11 -0
- package/locales/screen/te.json +11 -0
- package/locales/screen/th.json +11 -0
- package/locales/screen/tl.json +11 -0
- package/locales/screen/tr.json +11 -0
- package/locales/screen/uk.json +11 -0
- package/locales/screen/ur.json +11 -0
- package/locales/screen/vi.json +11 -0
- package/locales/screen/yo.json +11 -0
- package/locales/screen/zh-Hans.json +11 -0
- package/locales/screen/zh-Hant.json +11 -0
- package/locales/share/am.json +76 -0
- package/locales/share/ar.json +84 -0
- package/locales/share/bg.json +76 -0
- package/locales/share/bn.json +76 -0
- package/locales/share/br.json +82 -0
- package/locales/share/co.json +78 -0
- package/locales/share/cs.json +80 -0
- package/locales/share/da.json +76 -0
- package/locales/share/de.json +76 -0
- package/locales/share/el.json +76 -0
- package/locales/share/en.json +76 -0
- package/locales/share/es.json +78 -0
- package/locales/share/fa.json +76 -0
- package/locales/share/fi.json +76 -0
- package/locales/share/fr-CA.json +78 -0
- package/locales/share/fr.json +78 -0
- package/locales/share/ha.json +76 -0
- package/locales/share/he.json +79 -0
- package/locales/share/hi.json +76 -0
- package/locales/share/hr.json +78 -0
- package/locales/share/hu.json +76 -0
- package/locales/share/id.json +74 -0
- package/locales/share/it.json +78 -0
- package/locales/share/ja.json +74 -0
- package/locales/share/ko.json +74 -0
- package/locales/share/mr.json +76 -0
- package/locales/share/ms.json +74 -0
- package/locales/share/nl.json +76 -0
- package/locales/share/pl.json +80 -0
- package/locales/share/pt.json +78 -0
- package/locales/share/ro.json +78 -0
- package/locales/share/ru.json +80 -0
- package/locales/share/sk.json +80 -0
- package/locales/share/sv.json +76 -0
- package/locales/share/sw.json +76 -0
- package/locales/share/ta.json +76 -0
- package/locales/share/te.json +76 -0
- package/locales/share/th.json +74 -0
- package/locales/share/tl.json +76 -0
- package/locales/share/tr.json +76 -0
- package/locales/share/uk.json +80 -0
- package/locales/share/ur.json +76 -0
- package/locales/share/vi.json +74 -0
- package/locales/share/yo.json +74 -0
- package/locales/share/zh-Hans.json +74 -0
- package/locales/share/zh-Hant.json +74 -0
- package/locales/signin/am.json +8 -0
- package/locales/signin/ar.json +8 -0
- package/locales/signin/bg.json +8 -0
- package/locales/signin/bn.json +8 -0
- package/locales/signin/br.json +8 -0
- package/locales/signin/co.json +8 -0
- package/locales/signin/cs.json +8 -0
- package/locales/signin/da.json +8 -0
- package/locales/signin/de.json +8 -0
- package/locales/signin/el.json +8 -0
- package/locales/signin/en.json +8 -0
- package/locales/signin/es.json +8 -0
- package/locales/signin/fa.json +8 -0
- package/locales/signin/fi.json +8 -0
- package/locales/signin/fr-CA.json +8 -0
- package/locales/signin/fr.json +8 -0
- package/locales/signin/ha.json +8 -0
- package/locales/signin/he.json +8 -0
- package/locales/signin/hi.json +8 -0
- package/locales/signin/hr.json +8 -0
- package/locales/signin/hu.json +8 -0
- package/locales/signin/id.json +8 -0
- package/locales/signin/it.json +8 -0
- package/locales/signin/ja.json +8 -0
- package/locales/signin/ko.json +8 -0
- package/locales/signin/mr.json +8 -0
- package/locales/signin/ms.json +8 -0
- package/locales/signin/nl.json +8 -0
- package/locales/signin/pl.json +8 -0
- package/locales/signin/pt.json +8 -0
- package/locales/signin/ro.json +8 -0
- package/locales/signin/ru.json +8 -0
- package/locales/signin/sk.json +8 -0
- package/locales/signin/sv.json +8 -0
- package/locales/signin/sw.json +8 -0
- package/locales/signin/ta.json +8 -0
- package/locales/signin/te.json +8 -0
- package/locales/signin/th.json +8 -0
- package/locales/signin/tl.json +8 -0
- package/locales/signin/tr.json +8 -0
- package/locales/signin/uk.json +8 -0
- package/locales/signin/ur.json +8 -0
- package/locales/signin/vi.json +8 -0
- package/locales/signin/yo.json +8 -0
- package/locales/signin/zh-Hans.json +8 -0
- package/locales/signin/zh-Hant.json +8 -0
- package/locales/sites/am.json +48 -0
- package/locales/sites/ar.json +52 -0
- package/locales/sites/bg.json +48 -0
- package/locales/sites/bn.json +48 -0
- package/locales/sites/br.json +51 -0
- package/locales/sites/co.json +49 -0
- package/locales/sites/cs.json +50 -0
- package/locales/sites/da.json +48 -0
- package/locales/sites/de.json +48 -0
- package/locales/sites/el.json +48 -0
- package/locales/sites/en.json +48 -0
- package/locales/sites/es.json +49 -0
- package/locales/sites/fa.json +48 -0
- package/locales/sites/fi.json +48 -0
- package/locales/sites/fr-CA.json +49 -0
- package/locales/sites/fr.json +49 -0
- package/locales/sites/ha.json +48 -0
- package/locales/sites/he.json +49 -0
- package/locales/sites/hi.json +48 -0
- package/locales/sites/hr.json +49 -0
- package/locales/sites/hu.json +48 -0
- package/locales/sites/id.json +47 -0
- package/locales/sites/it.json +49 -0
- package/locales/sites/ja.json +47 -0
- package/locales/sites/ko.json +47 -0
- package/locales/sites/mr.json +48 -0
- package/locales/sites/ms.json +47 -0
- package/locales/sites/nl.json +48 -0
- package/locales/sites/pl.json +50 -0
- package/locales/sites/pt.json +49 -0
- package/locales/sites/ro.json +49 -0
- package/locales/sites/ru.json +50 -0
- package/locales/sites/sk.json +50 -0
- package/locales/sites/sv.json +48 -0
- package/locales/sites/sw.json +48 -0
- package/locales/sites/ta.json +48 -0
- package/locales/sites/te.json +48 -0
- package/locales/sites/th.json +47 -0
- package/locales/sites/tl.json +48 -0
- package/locales/sites/tr.json +48 -0
- package/locales/sites/uk.json +50 -0
- package/locales/sites/ur.json +48 -0
- package/locales/sites/vi.json +47 -0
- package/locales/sites/yo.json +47 -0
- package/locales/sites/zh-Hans.json +47 -0
- package/locales/sites/zh-Hant.json +47 -0
- package/locales/sk.json +456 -0
- package/locales/skills/am.json +74 -0
- package/locales/skills/ar.json +82 -0
- package/locales/skills/bg.json +74 -0
- package/locales/skills/bn.json +74 -0
- package/locales/skills/br.json +80 -0
- package/locales/skills/co.json +76 -0
- package/locales/skills/cs.json +78 -0
- package/locales/skills/da.json +74 -0
- package/locales/skills/de.json +74 -0
- package/locales/skills/el.json +74 -0
- package/locales/skills/en.json +74 -0
- package/locales/skills/es.json +76 -0
- package/locales/skills/fa.json +74 -0
- package/locales/skills/fi.json +74 -0
- package/locales/skills/fr-CA.json +76 -0
- package/locales/skills/fr.json +76 -0
- package/locales/skills/ha.json +74 -0
- package/locales/skills/he.json +78 -0
- package/locales/skills/hi.json +74 -0
- package/locales/skills/hr.json +76 -0
- package/locales/skills/hu.json +74 -0
- package/locales/skills/id.json +72 -0
- package/locales/skills/it.json +76 -0
- package/locales/skills/ja.json +72 -0
- package/locales/skills/ko.json +72 -0
- package/locales/skills/mr.json +74 -0
- package/locales/skills/ms.json +72 -0
- package/locales/skills/nl.json +74 -0
- package/locales/skills/pl.json +78 -0
- package/locales/skills/pt.json +76 -0
- package/locales/skills/ro.json +76 -0
- package/locales/skills/ru.json +78 -0
- package/locales/skills/sk.json +78 -0
- package/locales/skills/sv.json +74 -0
- package/locales/skills/sw.json +74 -0
- package/locales/skills/ta.json +74 -0
- package/locales/skills/te.json +74 -0
- package/locales/skills/th.json +72 -0
- package/locales/skills/tl.json +74 -0
- package/locales/skills/tr.json +74 -0
- package/locales/skills/uk.json +78 -0
- package/locales/skills/ur.json +74 -0
- package/locales/skills/vi.json +72 -0
- package/locales/skills/yo.json +72 -0
- package/locales/skills/zh-Hans.json +72 -0
- package/locales/skills/zh-Hant.json +72 -0
- package/locales/slides/am.json +145 -0
- package/locales/slides/ar.json +149 -0
- package/locales/slides/bg.json +145 -0
- package/locales/slides/bn.json +145 -0
- package/locales/slides/br.json +148 -0
- package/locales/slides/co.json +146 -0
- package/locales/slides/cs.json +147 -0
- package/locales/slides/da.json +145 -0
- package/locales/slides/de.json +145 -0
- package/locales/slides/el.json +145 -0
- package/locales/slides/en.json +145 -0
- package/locales/slides/es.json +146 -0
- package/locales/slides/fa.json +145 -0
- package/locales/slides/fi.json +145 -0
- package/locales/slides/fr-CA.json +146 -0
- package/locales/slides/fr.json +146 -0
- package/locales/slides/ha.json +145 -0
- package/locales/slides/he.json +146 -0
- package/locales/slides/hi.json +145 -0
- package/locales/slides/hr.json +146 -0
- package/locales/slides/hu.json +145 -0
- package/locales/slides/id.json +144 -0
- package/locales/slides/it.json +146 -0
- package/locales/slides/ja.json +144 -0
- package/locales/slides/ko.json +144 -0
- package/locales/slides/mr.json +145 -0
- package/locales/slides/ms.json +144 -0
- package/locales/slides/nl.json +145 -0
- package/locales/slides/pl.json +147 -0
- package/locales/slides/pt.json +146 -0
- package/locales/slides/ro.json +146 -0
- package/locales/slides/ru.json +147 -0
- package/locales/slides/sk.json +147 -0
- package/locales/slides/sv.json +145 -0
- package/locales/slides/sw.json +145 -0
- package/locales/slides/ta.json +145 -0
- package/locales/slides/te.json +145 -0
- package/locales/slides/th.json +144 -0
- package/locales/slides/tl.json +145 -0
- package/locales/slides/tr.json +145 -0
- package/locales/slides/uk.json +147 -0
- package/locales/slides/ur.json +145 -0
- package/locales/slides/vi.json +144 -0
- package/locales/slides/yo.json +144 -0
- package/locales/slides/zh-Hans.json +144 -0
- package/locales/slides/zh-Hant.json +144 -0
- package/locales/sv.json +438 -0
- package/locales/sw.json +438 -0
- package/locales/sync/am.json +15 -0
- package/locales/sync/ar.json +15 -0
- package/locales/sync/bg.json +15 -0
- package/locales/sync/bn.json +15 -0
- package/locales/sync/br.json +15 -0
- package/locales/sync/co.json +15 -0
- package/locales/sync/cs.json +15 -0
- package/locales/sync/da.json +15 -0
- package/locales/sync/de.json +15 -0
- package/locales/sync/el.json +15 -0
- package/locales/sync/en.json +15 -0
- package/locales/sync/es.json +15 -0
- package/locales/sync/fa.json +15 -0
- package/locales/sync/fi.json +15 -0
- package/locales/sync/fr-CA.json +15 -0
- package/locales/sync/fr.json +15 -0
- package/locales/sync/ha.json +15 -0
- package/locales/sync/he.json +15 -0
- package/locales/sync/hi.json +15 -0
- package/locales/sync/hr.json +15 -0
- package/locales/sync/hu.json +15 -0
- package/locales/sync/id.json +15 -0
- package/locales/sync/it.json +15 -0
- package/locales/sync/ja.json +15 -0
- package/locales/sync/ko.json +15 -0
- package/locales/sync/mr.json +15 -0
- package/locales/sync/ms.json +15 -0
- package/locales/sync/nl.json +15 -0
- package/locales/sync/pl.json +15 -0
- package/locales/sync/pt.json +15 -0
- package/locales/sync/ro.json +15 -0
- package/locales/sync/ru.json +15 -0
- package/locales/sync/sk.json +15 -0
- package/locales/sync/sv.json +15 -0
- package/locales/sync/sw.json +15 -0
- package/locales/sync/ta.json +15 -0
- package/locales/sync/te.json +15 -0
- package/locales/sync/th.json +15 -0
- package/locales/sync/tl.json +15 -0
- package/locales/sync/tr.json +15 -0
- package/locales/sync/uk.json +15 -0
- package/locales/sync/ur.json +15 -0
- package/locales/sync/vi.json +15 -0
- package/locales/sync/yo.json +15 -0
- package/locales/sync/zh-Hans.json +15 -0
- package/locales/sync/zh-Hant.json +15 -0
- package/locales/ta.json +438 -0
- package/locales/tables/am.json +103 -0
- package/locales/tables/ar.json +115 -0
- package/locales/tables/bg.json +103 -0
- package/locales/tables/bn.json +103 -0
- package/locales/tables/br.json +112 -0
- package/locales/tables/co.json +106 -0
- package/locales/tables/cs.json +109 -0
- package/locales/tables/da.json +103 -0
- package/locales/tables/de.json +103 -0
- package/locales/tables/el.json +103 -0
- package/locales/tables/en.json +103 -0
- package/locales/tables/es.json +106 -0
- package/locales/tables/fa.json +103 -0
- package/locales/tables/fi.json +103 -0
- package/locales/tables/fr-CA.json +106 -0
- package/locales/tables/fr.json +106 -0
- package/locales/tables/ha.json +103 -0
- package/locales/tables/he.json +106 -0
- package/locales/tables/hi.json +103 -0
- package/locales/tables/hr.json +106 -0
- package/locales/tables/hu.json +103 -0
- package/locales/tables/id.json +100 -0
- package/locales/tables/it.json +106 -0
- package/locales/tables/ja.json +100 -0
- package/locales/tables/ko.json +100 -0
- package/locales/tables/mr.json +103 -0
- package/locales/tables/ms.json +100 -0
- package/locales/tables/nl.json +103 -0
- package/locales/tables/pl.json +109 -0
- package/locales/tables/pt.json +106 -0
- package/locales/tables/ro.json +106 -0
- package/locales/tables/ru.json +109 -0
- package/locales/tables/sk.json +109 -0
- package/locales/tables/sv.json +103 -0
- package/locales/tables/sw.json +103 -0
- package/locales/tables/ta.json +103 -0
- package/locales/tables/te.json +103 -0
- package/locales/tables/th.json +100 -0
- package/locales/tables/tl.json +103 -0
- package/locales/tables/tr.json +103 -0
- package/locales/tables/uk.json +109 -0
- package/locales/tables/ur.json +103 -0
- package/locales/tables/vi.json +100 -0
- package/locales/tables/yo.json +100 -0
- package/locales/tables/zh-Hans.json +100 -0
- package/locales/tables/zh-Hant.json +100 -0
- package/locales/te.json +438 -0
- package/locales/th.json +429 -0
- package/locales/tl.json +438 -0
- package/locales/tour/am.json +3 -0
- package/locales/tour/ar.json +3 -0
- package/locales/tour/bg.json +3 -0
- package/locales/tour/bn.json +3 -0
- package/locales/tour/br.json +3 -0
- package/locales/tour/co.json +3 -0
- package/locales/tour/cs.json +3 -0
- package/locales/tour/da.json +3 -0
- package/locales/tour/de.json +3 -0
- package/locales/tour/el.json +3 -0
- package/locales/tour/en.json +3 -0
- package/locales/tour/es.json +3 -0
- package/locales/tour/fa.json +3 -0
- package/locales/tour/fi.json +3 -0
- package/locales/tour/fr-CA.json +3 -0
- package/locales/tour/fr.json +3 -0
- package/locales/tour/ha.json +3 -0
- package/locales/tour/he.json +3 -0
- package/locales/tour/hi.json +3 -0
- package/locales/tour/hr.json +3 -0
- package/locales/tour/hu.json +3 -0
- package/locales/tour/id.json +3 -0
- package/locales/tour/it.json +3 -0
- package/locales/tour/ja.json +3 -0
- package/locales/tour/ko.json +3 -0
- package/locales/tour/mr.json +3 -0
- package/locales/tour/ms.json +3 -0
- package/locales/tour/nl.json +3 -0
- package/locales/tour/pl.json +3 -0
- package/locales/tour/pt.json +3 -0
- package/locales/tour/ro.json +3 -0
- package/locales/tour/ru.json +3 -0
- package/locales/tour/sk.json +3 -0
- package/locales/tour/sv.json +3 -0
- package/locales/tour/sw.json +3 -0
- package/locales/tour/ta.json +3 -0
- package/locales/tour/te.json +3 -0
- package/locales/tour/th.json +3 -0
- package/locales/tour/tl.json +3 -0
- package/locales/tour/tr.json +3 -0
- package/locales/tour/uk.json +3 -0
- package/locales/tour/ur.json +3 -0
- package/locales/tour/vi.json +3 -0
- package/locales/tour/yo.json +3 -0
- package/locales/tour/zh-Hans.json +3 -0
- package/locales/tour/zh-Hant.json +3 -0
- package/locales/tr.json +438 -0
- package/locales/uk.json +456 -0
- package/locales/ur.json +438 -0
- package/locales/vi.json +429 -0
- package/locales/web-search/am.json +59 -0
- package/locales/web-search/ar.json +75 -0
- package/locales/web-search/bg.json +59 -0
- package/locales/web-search/bn.json +59 -0
- package/locales/web-search/br.json +71 -0
- package/locales/web-search/co.json +63 -0
- package/locales/web-search/cs.json +67 -0
- package/locales/web-search/da.json +59 -0
- package/locales/web-search/de.json +59 -0
- package/locales/web-search/el.json +59 -0
- package/locales/web-search/en.json +59 -0
- package/locales/web-search/es.json +63 -0
- package/locales/web-search/fa.json +59 -0
- package/locales/web-search/fi.json +59 -0
- package/locales/web-search/fr-CA.json +63 -0
- package/locales/web-search/fr.json +63 -0
- package/locales/web-search/ha.json +59 -0
- package/locales/web-search/he.json +65 -0
- package/locales/web-search/hi.json +59 -0
- package/locales/web-search/hr.json +63 -0
- package/locales/web-search/hu.json +59 -0
- package/locales/web-search/id.json +55 -0
- package/locales/web-search/it.json +63 -0
- package/locales/web-search/ja.json +55 -0
- package/locales/web-search/ko.json +55 -0
- package/locales/web-search/mr.json +59 -0
- package/locales/web-search/ms.json +55 -0
- package/locales/web-search/nl.json +59 -0
- package/locales/web-search/pl.json +67 -0
- package/locales/web-search/pt.json +63 -0
- package/locales/web-search/ro.json +63 -0
- package/locales/web-search/ru.json +67 -0
- package/locales/web-search/sk.json +67 -0
- package/locales/web-search/sv.json +59 -0
- package/locales/web-search/sw.json +59 -0
- package/locales/web-search/ta.json +59 -0
- package/locales/web-search/te.json +59 -0
- package/locales/web-search/th.json +55 -0
- package/locales/web-search/tl.json +59 -0
- package/locales/web-search/tr.json +59 -0
- package/locales/web-search/uk.json +67 -0
- package/locales/web-search/ur.json +59 -0
- package/locales/web-search/vi.json +55 -0
- package/locales/web-search/yo.json +55 -0
- package/locales/web-search/zh-Hans.json +55 -0
- package/locales/web-search/zh-Hant.json +55 -0
- package/locales/yo.json +429 -0
- package/locales/you/am.json +42 -0
- package/locales/you/ar.json +54 -0
- package/locales/you/bg.json +42 -0
- package/locales/you/bn.json +42 -0
- package/locales/you/br.json +51 -0
- package/locales/you/co.json +45 -0
- package/locales/you/cs.json +48 -0
- package/locales/you/da.json +42 -0
- package/locales/you/de.json +42 -0
- package/locales/you/el.json +42 -0
- package/locales/you/en.json +42 -0
- package/locales/you/es.json +45 -0
- package/locales/you/fa.json +42 -0
- package/locales/you/fi.json +42 -0
- package/locales/you/fr-CA.json +45 -0
- package/locales/you/fr.json +45 -0
- package/locales/you/ha.json +42 -0
- package/locales/you/he.json +48 -0
- package/locales/you/hi.json +42 -0
- package/locales/you/hr.json +45 -0
- package/locales/you/hu.json +42 -0
- package/locales/you/id.json +39 -0
- package/locales/you/it.json +45 -0
- package/locales/you/ja.json +39 -0
- package/locales/you/ko.json +39 -0
- package/locales/you/mr.json +42 -0
- package/locales/you/ms.json +39 -0
- package/locales/you/nl.json +42 -0
- package/locales/you/pl.json +48 -0
- package/locales/you/pt.json +45 -0
- package/locales/you/ro.json +45 -0
- package/locales/you/ru.json +48 -0
- package/locales/you/sk.json +48 -0
- package/locales/you/sv.json +42 -0
- package/locales/you/sw.json +42 -0
- package/locales/you/ta.json +42 -0
- package/locales/you/te.json +42 -0
- package/locales/you/th.json +39 -0
- package/locales/you/tl.json +42 -0
- package/locales/you/tr.json +42 -0
- package/locales/you/uk.json +48 -0
- package/locales/you/ur.json +42 -0
- package/locales/you/vi.json +39 -0
- package/locales/you/yo.json +39 -0
- package/locales/you/zh-Hans.json +39 -0
- package/locales/you/zh-Hant.json +39 -0
- package/locales/zh-Hans.json +429 -0
- package/locales/zh-Hant.json +429 -0
- package/package.json +13 -4
- package/preview.html +81 -0
- package/ui/base.js +33 -0
- package/ui/caps.js +162 -0
- package/ui/colour.js +26 -0
- package/ui/csp.js +82 -0
- package/ui/export.js +227 -0
- package/ui/icons.js +33 -0
- package/ui/kit.js +90 -0
- package/ui/language.js +172 -0
- package/ui/looks/blueprint.css +73 -0
- package/ui/looks/classic.css +108 -0
- package/ui/looks/fjord.css +56 -0
- package/ui/looks/human.css +231 -0
- package/ui/looks/mail.css +61 -0
- package/ui/looks/minimal.css +63 -0
- package/ui/looks/neon.css +100 -0
- package/ui/looks/notebook.css +82 -0
- package/ui/looks/swiss.css +64 -0
- package/ui/looks/terminal.css +84 -0
- package/ui/looks/tilde.css +61 -0
- package/ui/looks/velvet.css +61 -0
- package/ui/looks.js +49 -0
- package/ui/markdown.js +204 -0
- package/ui/menu-icons.js +72 -0
- package/ui/model.js +80 -0
- package/ui/pointed.js +22 -0
- package/ui/reader-state.js +58 -0
- package/ui/reader.js +81 -0
- package/ui/review.js +20 -0
- package/ui/save.js +69 -0
- package/ui/seal.js +220 -0
- package/ui/sheet.js +35 -0
- package/ui/shown.js +53 -0
- package/ui/style.css +842 -0
- package/ui/touches.js +76 -0
- package/ui/trusted.js +13 -0
- package/ui/view.css +60 -0
- package/ui/view.js +270 -0
- package/ui/weights.js +47 -0
- package/vendor/LICENSES/abcjs.txt +21 -0
- package/vendor/LICENSES/babylonjs-core.txt +2 -0
- package/vendor/LICENSES/base64-js.txt +21 -0
- package/vendor/LICENSES/buffer.txt +21 -0
- package/vendor/LICENSES/codename-deck.txt +21 -0
- package/vendor/LICENSES/diff.txt +29 -0
- package/vendor/LICENSES/echarts.txt +229 -0
- package/vendor/LICENSES/eventemitter3.txt +21 -0
- package/vendor/LICENSES/fflate.txt +21 -0
- package/vendor/LICENSES/huggingface-transformers.txt +202 -0
- package/vendor/LICENSES/ieee754.txt +11 -0
- package/vendor/LICENSES/jean-is-sounds.txt +92 -0
- package/vendor/LICENSES/jitl-quickjs-ffi-types.txt +21 -0
- package/vendor/LICENSES/jitl-quickjs-wasmfile-release-sync.txt +47 -0
- package/vendor/LICENSES/jszip.txt +2 -0
- package/vendor/LICENSES/just-bash.txt +201 -0
- package/vendor/LICENSES/lean-qr.txt +21 -0
- package/vendor/LICENSES/lit-html.txt +28 -0
- package/vendor/LICENSES/maplibre-gl.txt +2 -0
- package/vendor/LICENSES/marked.txt +44 -0
- package/vendor/LICENSES/mediabunny.txt +373 -0
- package/vendor/LICENSES/onnxruntime-web.txt +2 -0
- package/vendor/LICENSES/orderedmap.txt +19 -0
- package/vendor/LICENSES/pdfjs-dist.txt +455 -0
- package/vendor/LICENSES/pele.txt +40 -0
- package/vendor/LICENSES/phaser.txt +20 -0
- package/vendor/LICENSES/pptxgenjs.txt +21 -0
- package/vendor/LICENSES/preact-signals-core.txt +21 -0
- package/vendor/LICENSES/prosemirror-commands.txt +19 -0
- package/vendor/LICENSES/prosemirror-dropcursor.txt +19 -0
- package/vendor/LICENSES/prosemirror-gapcursor.txt +19 -0
- package/vendor/LICENSES/prosemirror-history.txt +19 -0
- package/vendor/LICENSES/prosemirror-inputrules.txt +19 -0
- package/vendor/LICENSES/prosemirror-keymap.txt +19 -0
- package/vendor/LICENSES/prosemirror-markdown.txt +19 -0
- package/vendor/LICENSES/prosemirror-model.txt +19 -0
- package/vendor/LICENSES/prosemirror-schema-list.txt +19 -0
- package/vendor/LICENSES/prosemirror-state.txt +19 -0
- package/vendor/LICENSES/prosemirror-tables.txt +19 -0
- package/vendor/LICENSES/prosemirror-transform.txt +19 -0
- package/vendor/LICENSES/prosemirror-view.txt +19 -0
- package/vendor/LICENSES/pyodide.txt +2 -0
- package/vendor/LICENSES/quickjs-emscripten-core.txt +21 -0
- package/vendor/LICENSES/rope-sequence.txt +19 -0
- package/vendor/LICENSES/silurus-ooxml.txt +21 -0
- package/vendor/LICENSES/spessasynth_core.txt +202 -0
- package/vendor/LICENSES/sprintf-js.txt +24 -0
- package/vendor/LICENSES/stb-vorbis.txt +202 -0
- package/vendor/LICENSES/temml.txt +21 -0
- package/vendor/LICENSES/turndown.txt +21 -0
- package/vendor/LICENSES/w3c-keyname.txt +19 -0
- package/vendor/LICENSES/zrender.txt +29 -0
- package/vendor/LICENSES/zzfx.txt +21 -0
- package/vendor/abcjs/abcjs.mjs +6 -0
- package/vendor/babylon/babylon.mjs +8122 -0
- package/vendor/deck/deck.css +292 -0
- package/vendor/deck/deck.mjs +55 -0
- package/vendor/deck/pptx.mjs +1 -0
- package/vendor/deck/template.mjs +3 -0
- package/vendor/echarts/echarts.mjs +45 -0
- package/vendor/lit-html/async-directive.js +6 -0
- package/vendor/lit-html/directive-helpers.js +6 -0
- package/vendor/lit-html/directive.js +6 -0
- package/vendor/lit-html/directives/live.js +6 -0
- package/vendor/lit-html/directives/ref.js +6 -0
- package/vendor/lit-html/lit-html.js +6 -0
- package/vendor/maplibre/maplibre-gl-worker.js +9 -0
- package/vendor/maplibre/maplibre-gl.css +1 -0
- package/vendor/maplibre/maplibre-gl.mjs +818 -0
- package/vendor/marked.esm.js +81 -0
- package/vendor/ooxml/abort-JztSoyw2.js +8 -0
- package/vendor/ooxml/bounded-raw-part-cache-B8t03tSP.js +33826 -0
- package/vendor/ooxml/bundled-asset-url-BMJ8vNHP.js +13 -0
- package/vendor/ooxml/canvas-viewer-mechanics-DI38gHNV.js +653 -0
- package/vendor/ooxml/cfb-guard-BIaHdonq.js +516 -0
- package/vendor/ooxml/chunk-D5OxutzX.js +9 -0
- package/vendor/ooxml/comment-overlay-controller-Crm5Syhx.js +974 -0
- package/vendor/ooxml/comment-ui-runtime-BfEPgl5r.js +110 -0
- package/vendor/ooxml/comment-ui-runtime-BtP_TpvT.js +2 -0
- package/vendor/ooxml/comment-ui-runtime-hfewTmVJ.js +169 -0
- package/vendor/ooxml/delimited-text-worker-host-RwvuSsP2.js +21 -0
- package/vendor/ooxml/document-model-source-BUTSwkyP.js +247 -0
- package/vendor/ooxml/document-pull-client-C_D779tO.js +36230 -0
- package/vendor/ooxml/docx-BfLZeiwa.js +3509 -0
- package/vendor/ooxml/docx.mjs +7 -0
- package/vendor/ooxml/docx_parser_bg.wasm +0 -0
- package/vendor/ooxml/drawingml-shape-BcXkRayC.js +306 -0
- package/vendor/ooxml/duotone-BI7CoghW.js +122 -0
- package/vendor/ooxml/emf-DgUBx9BU.js +1788 -0
- package/vendor/ooxml/font-preload-demand-B6HPFxDp.js +2052 -0
- package/vendor/ooxml/graph.json +1 -0
- package/vendor/ooxml/grid-geometry-CqTDvpDr.js +379 -0
- package/vendor/ooxml/host-layout-Cz_lCuTZ.js +55 -0
- package/vendor/ooxml/line-distribute-DR9Qwd3u.js +2783 -0
- package/vendor/ooxml/mathjax-DvwccQ8e.js +19 -0
- package/vendor/ooxml/model-source-COXegBNA.js +177 -0
- package/vendor/ooxml/pixel-budget-DI82Hn3R.js +38 -0
- package/vendor/ooxml/plot-area-frame-D3JtHvov.js +41645 -0
- package/vendor/ooxml/pptx-CfCiVlNB.js +2888 -0
- package/vendor/ooxml/pptx.mjs +8 -0
- package/vendor/ooxml/pptx_parser_bg.wasm +0 -0
- package/vendor/ooxml/presentation-model-source-DL6duh5l.js +75 -0
- package/vendor/ooxml/raster-target-Ca3tyA0L.js +40 -0
- package/vendor/ooxml/read-only-comment-decoration-B06YO2zk.js +92 -0
- package/vendor/ooxml/read-only-comment-margin-Ee9Y6vPg.js +187 -0
- package/vendor/ooxml/renderer-IFuBkPvF.js +5197 -0
- package/vendor/ooxml/renderer-module-contract-BuTx2FWJ.js +30 -0
- package/vendor/ooxml/renderer-xdugdcMd.js +5769 -0
- package/vendor/ooxml/resource-measurement-D2bu0Qfx.js +756 -0
- package/vendor/ooxml/slide-pull-client-BUuJQQVE.js +6431 -0
- package/vendor/ooxml/three-d-ByHGsYrX.js +868 -0
- package/vendor/ooxml/tiff-contract-DEd8CGuz.js +48 -0
- package/vendor/ooxml/visible-index-vN-4BNn7.js +15 -0
- package/vendor/ooxml/workbook-model-source-DBfVsWj7.js +92 -0
- package/vendor/ooxml/worker-source-C29EQNUj.js +18 -0
- package/vendor/ooxml/worker-source-D3NwPe6l.js +18 -0
- package/vendor/ooxml/worker-source-ZQE9C1j6.js +18 -0
- package/vendor/ooxml/worksheet-pull-client-Du0MuIro.js +565 -0
- package/vendor/ooxml/xlsx-CCMRAxPB.js +5812 -0
- package/vendor/ooxml/xlsx.mjs +8 -0
- package/vendor/ooxml/xlsx_parser_bg.wasm +0 -0
- package/vendor/pdfjs/cmaps/78-EUC-H.bcmap +0 -0
- package/vendor/pdfjs/cmaps/78-EUC-V.bcmap +0 -0
- package/vendor/pdfjs/cmaps/78-H.bcmap +0 -0
- package/vendor/pdfjs/cmaps/78-RKSJ-H.bcmap +0 -0
- package/vendor/pdfjs/cmaps/78-RKSJ-V.bcmap +0 -0
- package/vendor/pdfjs/cmaps/78-V.bcmap +0 -0
- package/vendor/pdfjs/cmaps/78ms-RKSJ-H.bcmap +0 -0
- package/vendor/pdfjs/cmaps/78ms-RKSJ-V.bcmap +0 -0
- package/vendor/pdfjs/cmaps/83pv-RKSJ-H.bcmap +0 -0
- package/vendor/pdfjs/cmaps/90ms-RKSJ-H.bcmap +0 -0
- package/vendor/pdfjs/cmaps/90ms-RKSJ-V.bcmap +0 -0
- package/vendor/pdfjs/cmaps/90msp-RKSJ-H.bcmap +0 -0
- package/vendor/pdfjs/cmaps/90msp-RKSJ-V.bcmap +0 -0
- package/vendor/pdfjs/cmaps/90pv-RKSJ-H.bcmap +0 -0
- package/vendor/pdfjs/cmaps/90pv-RKSJ-V.bcmap +0 -0
- package/vendor/pdfjs/cmaps/Add-H.bcmap +0 -0
- package/vendor/pdfjs/cmaps/Add-RKSJ-H.bcmap +0 -0
- package/vendor/pdfjs/cmaps/Add-RKSJ-V.bcmap +0 -0
- package/vendor/pdfjs/cmaps/Add-V.bcmap +0 -0
- package/vendor/pdfjs/cmaps/Adobe-CNS1-0.bcmap +0 -0
- package/vendor/pdfjs/cmaps/Adobe-CNS1-1.bcmap +0 -0
- package/vendor/pdfjs/cmaps/Adobe-CNS1-2.bcmap +0 -0
- package/vendor/pdfjs/cmaps/Adobe-CNS1-3.bcmap +0 -0
- package/vendor/pdfjs/cmaps/Adobe-CNS1-4.bcmap +0 -0
- package/vendor/pdfjs/cmaps/Adobe-CNS1-5.bcmap +0 -0
- package/vendor/pdfjs/cmaps/Adobe-CNS1-6.bcmap +0 -0
- package/vendor/pdfjs/cmaps/Adobe-CNS1-UCS2.bcmap +0 -0
- package/vendor/pdfjs/cmaps/Adobe-GB1-0.bcmap +0 -0
- package/vendor/pdfjs/cmaps/Adobe-GB1-1.bcmap +0 -0
- package/vendor/pdfjs/cmaps/Adobe-GB1-2.bcmap +0 -0
- package/vendor/pdfjs/cmaps/Adobe-GB1-3.bcmap +0 -0
- package/vendor/pdfjs/cmaps/Adobe-GB1-4.bcmap +0 -0
- package/vendor/pdfjs/cmaps/Adobe-GB1-5.bcmap +0 -0
- package/vendor/pdfjs/cmaps/Adobe-GB1-UCS2.bcmap +0 -0
- package/vendor/pdfjs/cmaps/Adobe-Japan1-0.bcmap +0 -0
- package/vendor/pdfjs/cmaps/Adobe-Japan1-1.bcmap +0 -0
- package/vendor/pdfjs/cmaps/Adobe-Japan1-2.bcmap +0 -0
- package/vendor/pdfjs/cmaps/Adobe-Japan1-3.bcmap +0 -0
- package/vendor/pdfjs/cmaps/Adobe-Japan1-4.bcmap +0 -0
- package/vendor/pdfjs/cmaps/Adobe-Japan1-5.bcmap +0 -0
- package/vendor/pdfjs/cmaps/Adobe-Japan1-6.bcmap +0 -0
- package/vendor/pdfjs/cmaps/Adobe-Japan1-UCS2.bcmap +0 -0
- package/vendor/pdfjs/cmaps/Adobe-Korea1-0.bcmap +0 -0
- package/vendor/pdfjs/cmaps/Adobe-Korea1-1.bcmap +0 -0
- package/vendor/pdfjs/cmaps/Adobe-Korea1-2.bcmap +0 -0
- package/vendor/pdfjs/cmaps/Adobe-Korea1-UCS2.bcmap +0 -0
- package/vendor/pdfjs/cmaps/B5-H.bcmap +0 -0
- package/vendor/pdfjs/cmaps/B5-V.bcmap +0 -0
- package/vendor/pdfjs/cmaps/B5pc-H.bcmap +0 -0
- package/vendor/pdfjs/cmaps/B5pc-V.bcmap +0 -0
- package/vendor/pdfjs/cmaps/CNS-EUC-H.bcmap +0 -0
- package/vendor/pdfjs/cmaps/CNS-EUC-V.bcmap +0 -0
- package/vendor/pdfjs/cmaps/CNS1-H.bcmap +0 -0
- package/vendor/pdfjs/cmaps/CNS1-V.bcmap +0 -0
- package/vendor/pdfjs/cmaps/CNS2-H.bcmap +0 -0
- package/vendor/pdfjs/cmaps/CNS2-V.bcmap +3 -0
- package/vendor/pdfjs/cmaps/ETHK-B5-H.bcmap +0 -0
- package/vendor/pdfjs/cmaps/ETHK-B5-V.bcmap +0 -0
- package/vendor/pdfjs/cmaps/ETen-B5-H.bcmap +0 -0
- package/vendor/pdfjs/cmaps/ETen-B5-V.bcmap +0 -0
- package/vendor/pdfjs/cmaps/ETenms-B5-H.bcmap +3 -0
- package/vendor/pdfjs/cmaps/ETenms-B5-V.bcmap +0 -0
- package/vendor/pdfjs/cmaps/EUC-H.bcmap +0 -0
- package/vendor/pdfjs/cmaps/EUC-V.bcmap +0 -0
- package/vendor/pdfjs/cmaps/Ext-H.bcmap +0 -0
- package/vendor/pdfjs/cmaps/Ext-RKSJ-H.bcmap +0 -0
- package/vendor/pdfjs/cmaps/Ext-RKSJ-V.bcmap +0 -0
- package/vendor/pdfjs/cmaps/Ext-V.bcmap +0 -0
- package/vendor/pdfjs/cmaps/GB-EUC-H.bcmap +0 -0
- package/vendor/pdfjs/cmaps/GB-EUC-V.bcmap +0 -0
- package/vendor/pdfjs/cmaps/GB-H.bcmap +4 -0
- package/vendor/pdfjs/cmaps/GB-V.bcmap +0 -0
- package/vendor/pdfjs/cmaps/GBK-EUC-H.bcmap +0 -0
- package/vendor/pdfjs/cmaps/GBK-EUC-V.bcmap +0 -0
- package/vendor/pdfjs/cmaps/GBK2K-H.bcmap +0 -0
- package/vendor/pdfjs/cmaps/GBK2K-V.bcmap +0 -0
- package/vendor/pdfjs/cmaps/GBKp-EUC-H.bcmap +0 -0
- package/vendor/pdfjs/cmaps/GBKp-EUC-V.bcmap +0 -0
- package/vendor/pdfjs/cmaps/GBT-EUC-H.bcmap +0 -0
- package/vendor/pdfjs/cmaps/GBT-EUC-V.bcmap +0 -0
- package/vendor/pdfjs/cmaps/GBT-H.bcmap +0 -0
- package/vendor/pdfjs/cmaps/GBT-V.bcmap +0 -0
- package/vendor/pdfjs/cmaps/GBTpc-EUC-H.bcmap +0 -0
- package/vendor/pdfjs/cmaps/GBTpc-EUC-V.bcmap +0 -0
- package/vendor/pdfjs/cmaps/GBpc-EUC-H.bcmap +0 -0
- package/vendor/pdfjs/cmaps/GBpc-EUC-V.bcmap +0 -0
- package/vendor/pdfjs/cmaps/H.bcmap +0 -0
- package/vendor/pdfjs/cmaps/HKdla-B5-H.bcmap +0 -0
- package/vendor/pdfjs/cmaps/HKdla-B5-V.bcmap +0 -0
- package/vendor/pdfjs/cmaps/HKdlb-B5-H.bcmap +0 -0
- package/vendor/pdfjs/cmaps/HKdlb-B5-V.bcmap +0 -0
- package/vendor/pdfjs/cmaps/HKgccs-B5-H.bcmap +0 -0
- package/vendor/pdfjs/cmaps/HKgccs-B5-V.bcmap +0 -0
- package/vendor/pdfjs/cmaps/HKm314-B5-H.bcmap +0 -0
- package/vendor/pdfjs/cmaps/HKm314-B5-V.bcmap +0 -0
- package/vendor/pdfjs/cmaps/HKm471-B5-H.bcmap +0 -0
- package/vendor/pdfjs/cmaps/HKm471-B5-V.bcmap +0 -0
- package/vendor/pdfjs/cmaps/HKscs-B5-H.bcmap +0 -0
- package/vendor/pdfjs/cmaps/HKscs-B5-V.bcmap +0 -0
- package/vendor/pdfjs/cmaps/Hankaku.bcmap +0 -0
- package/vendor/pdfjs/cmaps/Hiragana.bcmap +0 -0
- package/vendor/pdfjs/cmaps/KSC-EUC-H.bcmap +0 -0
- package/vendor/pdfjs/cmaps/KSC-EUC-V.bcmap +0 -0
- package/vendor/pdfjs/cmaps/KSC-H.bcmap +0 -0
- package/vendor/pdfjs/cmaps/KSC-Johab-H.bcmap +0 -0
- package/vendor/pdfjs/cmaps/KSC-Johab-V.bcmap +0 -0
- package/vendor/pdfjs/cmaps/KSC-V.bcmap +0 -0
- package/vendor/pdfjs/cmaps/KSCms-UHC-H.bcmap +0 -0
- package/vendor/pdfjs/cmaps/KSCms-UHC-HW-H.bcmap +0 -0
- package/vendor/pdfjs/cmaps/KSCms-UHC-HW-V.bcmap +0 -0
- package/vendor/pdfjs/cmaps/KSCms-UHC-V.bcmap +0 -0
- package/vendor/pdfjs/cmaps/KSCpc-EUC-H.bcmap +0 -0
- package/vendor/pdfjs/cmaps/KSCpc-EUC-V.bcmap +0 -0
- package/vendor/pdfjs/cmaps/Katakana.bcmap +0 -0
- package/vendor/pdfjs/cmaps/LICENSE +36 -0
- package/vendor/pdfjs/cmaps/NWP-H.bcmap +0 -0
- package/vendor/pdfjs/cmaps/NWP-V.bcmap +0 -0
- package/vendor/pdfjs/cmaps/RKSJ-H.bcmap +0 -0
- package/vendor/pdfjs/cmaps/RKSJ-V.bcmap +0 -0
- package/vendor/pdfjs/cmaps/Roman.bcmap +0 -0
- package/vendor/pdfjs/cmaps/UniCNS-UCS2-H.bcmap +0 -0
- package/vendor/pdfjs/cmaps/UniCNS-UCS2-V.bcmap +0 -0
- package/vendor/pdfjs/cmaps/UniCNS-UTF16-H.bcmap +0 -0
- package/vendor/pdfjs/cmaps/UniCNS-UTF16-V.bcmap +0 -0
- package/vendor/pdfjs/cmaps/UniCNS-UTF32-H.bcmap +0 -0
- package/vendor/pdfjs/cmaps/UniCNS-UTF32-V.bcmap +0 -0
- package/vendor/pdfjs/cmaps/UniCNS-UTF8-H.bcmap +0 -0
- package/vendor/pdfjs/cmaps/UniCNS-UTF8-V.bcmap +0 -0
- package/vendor/pdfjs/cmaps/UniGB-UCS2-H.bcmap +0 -0
- package/vendor/pdfjs/cmaps/UniGB-UCS2-V.bcmap +0 -0
- package/vendor/pdfjs/cmaps/UniGB-UTF16-H.bcmap +0 -0
- package/vendor/pdfjs/cmaps/UniGB-UTF16-V.bcmap +0 -0
- package/vendor/pdfjs/cmaps/UniGB-UTF32-H.bcmap +0 -0
- package/vendor/pdfjs/cmaps/UniGB-UTF32-V.bcmap +0 -0
- package/vendor/pdfjs/cmaps/UniGB-UTF8-H.bcmap +0 -0
- package/vendor/pdfjs/cmaps/UniGB-UTF8-V.bcmap +0 -0
- package/vendor/pdfjs/cmaps/UniJIS-UCS2-H.bcmap +0 -0
- package/vendor/pdfjs/cmaps/UniJIS-UCS2-HW-H.bcmap +0 -0
- package/vendor/pdfjs/cmaps/UniJIS-UCS2-HW-V.bcmap +0 -0
- package/vendor/pdfjs/cmaps/UniJIS-UCS2-V.bcmap +0 -0
- package/vendor/pdfjs/cmaps/UniJIS-UTF16-H.bcmap +0 -0
- package/vendor/pdfjs/cmaps/UniJIS-UTF16-V.bcmap +0 -0
- package/vendor/pdfjs/cmaps/UniJIS-UTF32-H.bcmap +0 -0
- package/vendor/pdfjs/cmaps/UniJIS-UTF32-V.bcmap +0 -0
- package/vendor/pdfjs/cmaps/UniJIS-UTF8-H.bcmap +0 -0
- package/vendor/pdfjs/cmaps/UniJIS-UTF8-V.bcmap +0 -0
- package/vendor/pdfjs/cmaps/UniJIS2004-UTF16-H.bcmap +0 -0
- package/vendor/pdfjs/cmaps/UniJIS2004-UTF16-V.bcmap +0 -0
- package/vendor/pdfjs/cmaps/UniJIS2004-UTF32-H.bcmap +0 -0
- package/vendor/pdfjs/cmaps/UniJIS2004-UTF32-V.bcmap +0 -0
- package/vendor/pdfjs/cmaps/UniJIS2004-UTF8-H.bcmap +0 -0
- package/vendor/pdfjs/cmaps/UniJIS2004-UTF8-V.bcmap +0 -0
- package/vendor/pdfjs/cmaps/UniJISPro-UCS2-HW-V.bcmap +0 -0
- package/vendor/pdfjs/cmaps/UniJISPro-UCS2-V.bcmap +0 -0
- package/vendor/pdfjs/cmaps/UniJISPro-UTF8-V.bcmap +0 -0
- package/vendor/pdfjs/cmaps/UniJISX0213-UTF32-H.bcmap +0 -0
- package/vendor/pdfjs/cmaps/UniJISX0213-UTF32-V.bcmap +0 -0
- package/vendor/pdfjs/cmaps/UniJISX02132004-UTF32-H.bcmap +0 -0
- package/vendor/pdfjs/cmaps/UniJISX02132004-UTF32-V.bcmap +0 -0
- package/vendor/pdfjs/cmaps/UniKS-UCS2-H.bcmap +0 -0
- package/vendor/pdfjs/cmaps/UniKS-UCS2-V.bcmap +0 -0
- package/vendor/pdfjs/cmaps/UniKS-UTF16-H.bcmap +0 -0
- package/vendor/pdfjs/cmaps/UniKS-UTF16-V.bcmap +0 -0
- package/vendor/pdfjs/cmaps/UniKS-UTF32-H.bcmap +0 -0
- package/vendor/pdfjs/cmaps/UniKS-UTF32-V.bcmap +0 -0
- package/vendor/pdfjs/cmaps/UniKS-UTF8-H.bcmap +0 -0
- package/vendor/pdfjs/cmaps/UniKS-UTF8-V.bcmap +0 -0
- package/vendor/pdfjs/cmaps/V.bcmap +0 -0
- package/vendor/pdfjs/cmaps/WP-Symbol.bcmap +0 -0
- package/vendor/pdfjs/pdf.min.mjs +27 -0
- package/vendor/pdfjs/pdf.worker.min.mjs +27 -0
- package/vendor/pdfjs/standard_fonts/FoxitDingbats.pfb +0 -0
- package/vendor/pdfjs/standard_fonts/FoxitFixed.pfb +0 -0
- package/vendor/pdfjs/standard_fonts/FoxitFixedBold.pfb +0 -0
- package/vendor/pdfjs/standard_fonts/FoxitFixedBoldItalic.pfb +0 -0
- package/vendor/pdfjs/standard_fonts/FoxitFixedItalic.pfb +0 -0
- package/vendor/pdfjs/standard_fonts/FoxitSerif.pfb +0 -0
- package/vendor/pdfjs/standard_fonts/FoxitSerifBold.pfb +0 -0
- package/vendor/pdfjs/standard_fonts/FoxitSerifBoldItalic.pfb +0 -0
- package/vendor/pdfjs/standard_fonts/FoxitSerifItalic.pfb +0 -0
- package/vendor/pdfjs/standard_fonts/FoxitSymbol.pfb +0 -0
- package/vendor/pdfjs/standard_fonts/LICENSE_FOXIT +27 -0
- package/vendor/pdfjs/standard_fonts/LICENSE_LIBERATION +363 -0
- package/vendor/pdfjs/standard_fonts/LiberationSans-Bold.ttf +0 -0
- package/vendor/pdfjs/standard_fonts/LiberationSans-BoldItalic.ttf +0 -0
- package/vendor/pdfjs/standard_fonts/LiberationSans-Italic.ttf +0 -0
- package/vendor/pdfjs/standard_fonts/LiberationSans-Regular.ttf +0 -0
- package/vendor/pdfjs/wasm/jbig2.wasm +0 -0
- package/vendor/pdfjs/wasm/openjpeg.wasm +0 -0
- package/vendor/pele/chunks/2CHDFZHC.js +1 -0
- package/vendor/pele/chunks/2S3JPEOY.js +5 -0
- package/vendor/pele/chunks/2U463FD2.js +11 -0
- package/vendor/pele/chunks/3OKCTCH7.js +1 -0
- package/vendor/pele/chunks/42UK3TL6.js +8 -0
- package/vendor/pele/chunks/43YPWK3Q.js +1 -0
- package/vendor/pele/chunks/45MVAN6X.js +1 -0
- package/vendor/pele/chunks/46GJKBLZ.js +1 -0
- package/vendor/pele/chunks/4WR52FRP.js +4 -0
- package/vendor/pele/chunks/5THPTBWS.js +1 -0
- package/vendor/pele/chunks/63WH7YNF.js +1 -0
- package/vendor/pele/chunks/673H7YBG.js +2 -0
- package/vendor/pele/chunks/6DDU7VKX.js +1 -0
- package/vendor/pele/chunks/6Y6FML25.js +2 -0
- package/vendor/pele/chunks/7HQPULDG.js +2 -0
- package/vendor/pele/chunks/7N3VAIG2.js +2 -0
- package/vendor/pele/chunks/7NY54ILO.js +2 -0
- package/vendor/pele/chunks/7OAKGN26.js +25 -0
- package/vendor/pele/chunks/7WLXJQOR.js +1 -0
- package/vendor/pele/chunks/BJNHMTN6.js +3 -0
- package/vendor/pele/chunks/BK7N5KMP.js +2 -0
- package/vendor/pele/chunks/CLQLV5VT.js +1 -0
- package/vendor/pele/chunks/CUSPXG5M.js +1 -0
- package/vendor/pele/chunks/D3L7O4X2.js +1 -0
- package/vendor/pele/chunks/D5TW5CPZ.js +1 -0
- package/vendor/pele/chunks/DDVFZY3L.js +7 -0
- package/vendor/pele/chunks/DKTLEL5E.js +1 -0
- package/vendor/pele/chunks/DO6ND2WD.js +6 -0
- package/vendor/pele/chunks/EGADTWYV.js +1 -0
- package/vendor/pele/chunks/EI4VGK5C.js +4 -0
- package/vendor/pele/chunks/EOJSJZXM.js +1 -0
- package/vendor/pele/chunks/F4O23KYR.js +5 -0
- package/vendor/pele/chunks/FTXIJQGB.js +1 -0
- package/vendor/pele/chunks/G2OEIG6X.js +1 -0
- package/vendor/pele/chunks/G3MDBVQH.js +1 -0
- package/vendor/pele/chunks/GER2CN75.js +2 -0
- package/vendor/pele/chunks/GP5YUCAR.js +1 -0
- package/vendor/pele/chunks/GUJTEFZK.js +1 -0
- package/vendor/pele/chunks/GXJ2T77W.js +1 -0
- package/vendor/pele/chunks/HX3UMAK7.js +1 -0
- package/vendor/pele/chunks/IU7WZTP6.js +4 -0
- package/vendor/pele/chunks/J3JF2HV4.js +12 -0
- package/vendor/pele/chunks/J5J2NR2G.js +1 -0
- package/vendor/pele/chunks/JRCWTJEL.js +1 -0
- package/vendor/pele/chunks/K2ZHGJKH.js +2 -0
- package/vendor/pele/chunks/KHUP5TOH.js +4 -0
- package/vendor/pele/chunks/L74FQTH5.js +1 -0
- package/vendor/pele/chunks/LAV4ZXOS.js +1 -0
- package/vendor/pele/chunks/LBIZYCRR.js +1 -0
- package/vendor/pele/chunks/LFFXNLRS.js +1 -0
- package/vendor/pele/chunks/LJ44NU43.js +3 -0
- package/vendor/pele/chunks/LLLWOAQD.js +1 -0
- package/vendor/pele/chunks/LTY5LMQH.js +5 -0
- package/vendor/pele/chunks/LTYQZ5U5.js +1 -0
- package/vendor/pele/chunks/MJBOF5Q6.js +2 -0
- package/vendor/pele/chunks/NDSCUZ25.js +1 -0
- package/vendor/pele/chunks/NMN3IKWL.js +1 -0
- package/vendor/pele/chunks/NMUA3R2D.js +1 -0
- package/vendor/pele/chunks/NY5A6PPW.js +1 -0
- package/vendor/pele/chunks/O3ACPFEJ.js +8 -0
- package/vendor/pele/chunks/O4MQT6AV.js +5 -0
- package/vendor/pele/chunks/OHJ2EJXK.js +2 -0
- package/vendor/pele/chunks/OU2GIT2H.js +1 -0
- package/vendor/pele/chunks/PDMLSE6I.js +1 -0
- package/vendor/pele/chunks/PJ7X32S5.js +1 -0
- package/vendor/pele/chunks/RLLQ44NJ.js +1 -0
- package/vendor/pele/chunks/RVARI57O.js +1 -0
- package/vendor/pele/chunks/S6DWMCK5.js +1 -0
- package/vendor/pele/chunks/STIOTUT7.js +1 -0
- package/vendor/pele/chunks/SXSLPWUD.js +3 -0
- package/vendor/pele/chunks/TBJXKAT4.js +3 -0
- package/vendor/pele/chunks/TIVX74RS.js +2 -0
- package/vendor/pele/chunks/TK23BXEA.js +2 -0
- package/vendor/pele/chunks/TR4WJQGX.js +2 -0
- package/vendor/pele/chunks/UWRPUF3N.js +1 -0
- package/vendor/pele/chunks/VMTWYMKQ.js +2 -0
- package/vendor/pele/chunks/VSWIZJ7B.js +1 -0
- package/vendor/pele/chunks/W2WY5CQX.js +2 -0
- package/vendor/pele/chunks/W77N5H3K.js +2 -0
- package/vendor/pele/chunks/WM7NR6YK.js +1 -0
- package/vendor/pele/chunks/WSTWNLCU.js +4 -0
- package/vendor/pele/chunks/WXKV2YEK.js +1 -0
- package/vendor/pele/chunks/XLHPVVFU.js +2 -0
- package/vendor/pele/chunks/XQ5S3AI3.js +13 -0
- package/vendor/pele/chunks/YNX532HU.js +1 -0
- package/vendor/pele/chunks/YUPSMAUO.js +1 -0
- package/vendor/pele/chunks/YWXUFHC7.js +10 -0
- package/vendor/pele/chunks/Z3ZRV7NH.js +2 -0
- package/vendor/pele/chunks/ZFRCZTLK.js +1 -0
- package/vendor/pele/chunks/ZZDR4CN3.js +1 -0
- package/vendor/pele/lazy.d.ts +1 -0
- package/vendor/pele/lazy.js +1 -0
- package/vendor/phaser/phaser.mjs +1 -0
- package/vendor/pptxgenjs/pptxgen.mjs +97 -0
- package/vendor/signals-core.mjs +1 -0
- package/vendor/spessasynth/fflate.mjs +1 -0
- package/vendor/spessasynth/spessasynth.mjs +42698 -0
- package/vendor/spessasynth/stb-vorbis.mjs +1 -0
- package/vendor/temml/Temml.woff2 +0 -0
- package/vendor/temml/temml.css +372 -0
- package/vendor/temml/temml.mjs +2 -0
- package/vendor/zzfx/zzfx.mjs +1 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as me,b as pe,c as ge,d as Se,e as Ae,f as Ee}from"./UWRPUF3N.js";function qe(s){return s==="BT"||s==="LR"||s==="RL"?s:"TB"}var Ie=4e4,Be=400,Oe=500,Xe=1.5,Fe=4;function Ce(s,m,S,v){let b=[];for(let E of s)b.push(E.x,E.y,E.w,E.h);let d=[];for(let E of m)d.push(E.labelX,E.labelY);let p=[];for(let E of S){p.push(E.x,E.y);for(let D of E.ports)p.push(D.px,D.py)}return{nodes:b,routes:m.map(E=>E.route),labels:d,levels:p,total:v}}function Te(s,m,S,v){m.forEach((d,p)=>{d.x=s.nodes[4*p],d.y=s.nodes[4*p+1],d.w=s.nodes[4*p+2],d.h=s.nodes[4*p+3]}),S.forEach((d,p)=>{d.route=s.routes[p],d.labelX=s.labels[2*p],d.labelY=s.labels[2*p+1]});let b=0;for(let d of v){d.x=s.levels[b++],d.y=s.levels[b++];for(let p of d.ports)p.px=s.levels[b++],p.py=s.levels[b++]}return s.total}var Re=24,de=.5,ve=3,Me=2,Ge=Math.max(3,ve,Me+1),xe=.62,Pe=128;function De(s){return s.tracks?1:s.straight?2:0}function we(s,m,S=0){let v=0;for(let a of m)a.src!==a.dst&&a.route.length>3&&(v+=(a.route.length/3-1)*Ge);let b=new Float64Array(v),d=new Float64Array(v),p=new Float64Array(v),E=new Float64Array(v),D=new Float64Array(v),G=new Float64Array(v),z=new Int32Array(v),O=new Uint8Array(v),A=0,J=1/0,K=-1/0,se=NaN,ie=NaN,Q=NaN,le=NaN,V=(a,o,e,t,r,u)=>{let f=A-1;e===Q&&t===le&&(u===t&&ie===t||r===e&&se===e)&&z[f]===a&&O[f]===o&&(e-se)*(r-e)+(t-ie)*(u-t)>0&&(A--,e=se,t=ie),se=e,ie=t,Q=r,le=u,O[A]=o,b[A]=Math.min(e,r),p[A]=Math.max(e,r),d[A]=e<=r?t:u,E[A]=e<=r?u:t,D[A]=Math.min(t,u),G[A]=Math.max(t,u),D[A]<J&&(J=D[A]),G[A]>K&&(K=G[A]),z[A++]=a};for(let a=0;a<m.length;a++){let o=m[a];if(o.src===o.dst)continue;let e=o.route,t=n=>Math.abs(e[n]-e[n-3])<.01||Math.abs(e[n+1]-e[n-2])<.01,r=n=>Math.abs(e[n]-e[n-3])+Math.abs(e[n+1]-e[n-2]),u=n=>S===0&&n>0&&n<e.length-3&&t(n)&&t(n+3)&&r(n)>=.01&&r(n+3)>=.01&&Math.abs(e[n]-e[n-3])<.01!=Math.abs(e[n+3]-e[n])<.01,f=e[0],i=e[1];for(let n=3;n<e.length;n+=3){let w=(n===3?1:0)|(n===e.length-3?2:0),c=f,g=i,h=e[n],l=e[n+1];if(f=h,i=l,t(n)||S===2){if(!u(n)){V(a,w,c,g,h,l);continue}let M=u(n-3)?r(n)/2:r(n),L=u(n+3)?r(n+3)/2:r(n+3),C=(h-e[n-3])/r(n),P=(l-e[n-2])/r(n),_=(e[n+3]-h)/r(n+3),U=(e[n+4]-l)/r(n+3),te=h-C*M,y=l-P*M;V(a,w,c,g,te,y);let R=h-C*M*(1-xe),N=l-P*M*(1-xe),H=h+_*L*(1-xe),ne=l+U*L*(1-xe);f=h+_*L,i=l+U*L;let fe=w|(n+3===e.length-3?2:0),oe=te,be=y;for(let Y=1;Y<=Me;Y++){let X=Y/Me,I=1-X,re=I*I*I*te+3*I*I*X*R+3*I*X*X*H+X*X*X*f,Ne=I*I*I*y+3*I*I*X*N+3*I*X*X*ne+X*X*X*i;V(a,fe,oe,be,re,Ne),oe=re,be=Ne}continue}if(S===1){let M=e[n+2]===0,L=M?c:(c+h)/2,C=M?(g+l)/2:g;V(a,w,c,g,L,C),V(a,w,L,C,M?h:L,M?C:l),V(a,w,M?h:L,M?C:l,h,l);continue}let x=e[n+2]===0,B=x?Ee(h-c,l-g):Ee(l-g,h-c),T=c,W=g;for(let M=1;M<=ve;M++){let L=M/ve,C=1-L,P=L*L*(3-2*L),_=3*B*L*C*C+3*(1-B)*L*L*C+L*L*L,U=c+(h-c)*(x?P:_),te=g+(l-g)*(x?_:P);V(a,w,T,W,U,te),T=U,W=te}}}let j=K>J?Math.round(Math.sqrt(A)):1,$=K>J?j/(K-J):0,k=a=>Math.min(j-1,Math.floor((a-J)*$)),ee=new Int32Array(A),F=new Int32Array(j+1);for(let a=0;a<A;a++){ee[a]=k(D[a]);for(let o=ee[a],e=k(G[a]);o<=e;o++)F[o+1]++}for(let a=0;a<j;a++)F[a+1]+=F[a];let ce=F.slice(0,j),q=new Int32Array(F[j]);for(let a=0;a<A;a++)for(let o=ee[a],e=k(G[a]);o<=e;o++)q[ce[o]++]=a;let ae=new Float64Array(m.length*8),Z=(a,o,e,t)=>Math.abs(a[o]-a[e])<de&&Math.abs(a[o]-a[t])<de||Math.abs(a[o+1]-a[e+1])<de&&Math.abs(a[o+1]-a[t+1])<de;for(let a=0;a<m.length;a++){let o=m[a].route;if(o.length<6)continue;let e=3;for(;e+3<o.length&&Z(o,0,e,e+3);)e+=3;let t=o.length-3,r=t-3;for(;r>=3&&Z(o,t,r,r-3);)r-=3;ae.set([o[0],o[1],o[e],o[e+1],o[r],o[r+1],o[t],o[t+1]],a*8)}let he=(a,o,e,t)=>{let r=a*8+(o===1?0:4),u=ae[r],f=ae[r+1],i=ae[r+2]-u,n=ae[r+3]-f,w=i*i+n*n,c=w>0?Math.max(0,Math.min(1,((e-u)*i+(t-f)*n)/w)):0;return Math.hypot(e-u-c*i,t-f-c*n)<de},ue=0;for(let a=0;a<j;a++){let o=F[a+1];if(o-F[a]>Pe)q.subarray(F[a],o).sort((e,t)=>b[e]-b[t]||e-t);else for(let e=F[a]+1;e<o;e++){let t=q[e],r=e;for(;r>F[a]&&b[q[r-1]]>b[t];r--)q[r]=q[r-1];q[r]=t}for(let e=F[a];e<o;e++){let t=q[e],r=p[t]-b[t],u=E[t]-d[t],f=ee[t]===a;for(let i=e+1;i<o;i++){let n=q[i];if(b[n]>p[t])break;if(G[n]<D[t]||D[n]>G[t]||z[t]===z[n]||!f&&ee[n]!==a)continue;let w=r*(d[n]-d[t])-u*(b[n]-b[t]),c=r*(E[n]-d[t])-u*(p[n]-b[t]);if(w>0==c>0)continue;let g=p[n]-b[n],h=E[n]-d[n],l=g*(d[t]-d[n])-h*(b[t]-b[n]),x=g*(E[t]-d[n])-h*(p[t]-b[n]);if(l>0==x>0)continue;let B=m[z[t]],T=m[z[n]],W=l/(l-x),M=b[t]+W*r,L=d[t]+W*u,C=(P,_,U)=>(O[t]&_)!==0&&(O[n]&U)!==0||Math.abs(M-s[P].x)<s[P].w/2+Re&&Math.abs(L-s[P].y)<s[P].h/2+Re||he(z[t],_,M,L)&&he(z[n],U,M,L);B.src===T.src&&C(B.src,1,1)||B.src===T.dst&&C(B.src,1,2)||B.dst===T.src&&C(B.dst,2,1)||B.dst===T.dst&&C(B.dst,2,2)||ue++}}}return ue}function _e(s,m){let S=v=>{let b=new Set;for(let d=s[v].parent;d>=0&&!b.has(d);d=s[d].parent)b.add(d);return b};for(let[v,b]of m){if(v<0||b<0||v===b)continue;let d=S(v),p=S(b);for(let E of d)p.has(E)||(s[E].dir=void 0);for(let E of p)d.has(E)||(s[E].dir=void 0)}}function He(s,m,S,v){for(let b of s)b.x+=S,b.y+=v;for(let b of m){for(let d=0;d<b.route.length;d+=3)b.route[d]+=S,b.route[d+1]+=v;b.labelX+=S,b.labelY+=v}}function ze(s,m,S=-1){return{w:s,h:m,parent:S,isGroup:!1,dir:void 0,padX:0,padTop:0,padBottom:0,minW:0,seq:0,span:0,x:0,y:0}}function Le(s){return s==="TB"?0:s==="BT"?2:s==="LR"?3:1}function ye(s){return s+2&3}function je(s,m,S,v){let b=s.length,d=new Map,p=[],E=(o,e)=>{let t={id:o,dir:e,items:[],edges:[],ports:[],portOf:new Map,routes:new Map,x:0,y:0};return d.set(o,t),t},D=E(-1,S),G=[];for(let o=0;o<b;o++)G.push([]);let z=[];for(let o=0;o<b;o++){let e=s[o].parent;e>=0&&e<b&&e!==o&&s[e].isGroup?G[e].push(o):(s[o].parent=-1,z.push(o))}D.items=z,p.push(D);let O=new Int32Array(b),A=new Uint8Array(b),J=o=>{for(let e=o;e<p.length;e++){let t=p[e];for(let r of t.items)if(A[r]=1,O[r]=t.id<0?0:O[t.id]+1,s[r].isGroup){let u=E(r,s[r].dir??t.dir);u.items=G[r],p.push(u)}}};J(0);for(let o=0;o<b;o++){if(A[o])continue;let e=s[o].parent;if(G[e]=G[e].filter(t=>t!==o),s[o].parent=-1,D.items.push(o),A[o]=1,O[o]=0,s[o].isGroup){let t=p.length,r=E(o,s[o].dir??S);r.items=G[o],p.push(r),J(t)}}for(let o=p.length-1;o>0;o--){let e=p[o],t=1/0;for(let r of e.items)s[r].seq<t&&(t=s[r].seq);t!==1/0&&(s[e.id].seq=t)}for(let o of p)o.items.sort((e,t)=>s[e].seq-s[t].seq||e-t);let K=0;for(let o of m){let e=o.src,t=o.dst,r=0;for(;O[e]>O[t];r++)e=s[e].parent;for(;O[t]>O[e];r++)t=s[t].parent;for(;e!==t&&s[e].parent!==s[t].parent;r+=2)e=s[e].parent,t=s[t].parent;e!==t&&(K+r>Ie?(o.src=e,o.dst=t):K+=r)}let se=[],ie=[];for(let o=0;o<m.length;o++){let e=m[o];if(e.route=[],e.src===e.dst){se.push(o);continue}let t=e.src,r=e.dst,u=[],f=[];for(;O[t]>O[r];)u.push(t),t=s[t].parent;for(;O[r]>O[t];)f.push(r),r=s[r].parent;if(t===r){ie.push(o);continue}for(;s[t].parent!==s[r].parent;)u.push(t),f.push(r),t=s[t].parent,r=s[r].parent;d.get(s[t].parent).edges.push({e:o,a:t,b:r});for(let[i,n]of[[u,!0],[f,!1]])for(let w of i){let c=d.get(s[w].parent),g={e:o,inner:w,out:n,side:0,hint:NaN,px:0,py:0,route:[]};c.ports.push(g),c.portOf.set(o*2+(n?0:1),g)}}let Q=new Int32Array(b),le=(o,e,t)=>(t?e.src:e.dst)!==o,V=(o,e)=>{let t=o.dir==="TB"||o.dir==="BT",r=Le(o.dir),u=[],f=[];o.items.forEach((c,g)=>{Q[c]=g;let h=s[c],l=e?me(t?h.w:h.h,t?h.h:h.w):me(0,0);l.span=h.isGroup?Math.min(h.span,l.w-2*h.padX):h.span,l.key=k?$[c]:NaN,u.push(l)});let i=(c,g,h)=>s[c].isGroup&&le(c,m[g],h),n=(c,g,h)=>{if(!e||!s[c].isGroup||!le(c,m[g],h))return 0;let l=d.get(c).portOf.get(g*2+(h?0:1));return t?l.px-s[c].w/2:l.py-s[c].h/2};for(let c of o.edges){let g=m[c.e],h=pe(Q[c.a],Q[c.b],g.minlen);e&&(h.labelW=t?g.labelW:g.labelH,h.labelH=t?g.labelH:g.labelW,h.tailDx=n(c.a,c.e,!0),h.headDx=n(c.b,c.e,!1),h.tailFixed=i(c.a,c.e,!0),h.headFixed=i(c.b,c.e,!1)),f.push(h)}let w=new Int32Array(o.ports.length).fill(-1);return o.ports.forEach((c,g)=>{if(c.side===r||c.side===ye(r)){let h=u.length,l=me(0,0,c.side===r?3:4);l.key=k?$[c.out?m[c.e].dst:m[c.e].src]:NaN,l.hint=Number.isNaN(c.hint)&&k&&F?F(o,c):c.hint,u.push(l),w[g]=h;let x=c.out?pe(Q[c.inner],h):pe(h,Q[c.inner]);c.out?(x.tailDx=n(c.inner,c.e,!0),x.tailFixed=i(c.inner,c.e,!0)):(x.headDx=n(c.inner,c.e,!1),x.headFixed=i(c.inner,c.e,!1)),f.push(x)}else u[Q[c.inner]].pin=c.side===0||c.side===3?-1:1}),{lnodes:u,ledges:f,dummies:w}},j=K>1&&K<=Be&&m.length<=Oe,$=new Float64Array(b).fill(NaN),k=!1,ee=0,F,ce=p.length>1&&j;for(let o of p)o.dir!==S&&(ce=!1);if(ce){let o=S==="TB"||S==="BT",e=new Int32Array(b).fill(-1),t=new Int32Array(b).fill(-1),r=[],u=[],f=[];for(let l=0;l<b;l++)s[l].isGroup&&(t[l]=f.length,f.push(-1));for(let l=0;l<b;l++){let x=s[l].parent;s[l].isGroup?f[t[l]]=x>=0?t[x]:-1:(e[l]=r.length,r.push(me(o?s[l].w:s[l].h,o?s[l].h:s[l].w)),u.push(x>=0?t[x]:-1))}let i=[],n=new Int32Array(m.length).fill(-1);m.forEach((l,x)=>{l.src===l.dst||e[l.src]<0||e[l.dst]<0||(n[x]=i.length,i.push(pe(e[l.src],e[l.dst],l.minlen,o?l.labelW:l.labelH,o?l.labelH:l.labelW)))});let w=ge(r,i,{...v,groups:{of:Int32Array.from(u),parent:Int32Array.from(f)},orderOnly:!0});ee=Math.min(w.crossings??0,w.declared??0);let c=new Float64Array(b),g=new Int32Array(b),h=new Int32Array(b).fill(-1);for(let l=0;l<b;l++)if(!(e[l]<0)){$[l]=r[e[l]].x;for(let x=s[l].parent;x>=0;x=s[x].parent)c[x]+=$[l],g[x]++,h[x]=Math.max(h[x],r[e[l]].rank)}for(let l=0;l<b;l++)g[l]>0&&($[l]=c[l]/g[l]);F=(l,x)=>{let B=n[x.e];if(B<0||l.id<0||!x.out||x.side!==ye(Le(l.dir)))return NaN;let T=i[B].points,W=$[m[x.e].src],M=0;for(let L=0;L<T.length;L+=2)T[L]===h[l.id]&&(W=T[L+1]),T[L]===h[l.id]+1&&(M=T[L+1]);return W+M*1e-6}}let q=new Map,ae=(o,e,t)=>{if(!j)return{lnodes:e,ledges:t,size:ge(e,t,v)};let r=[];for(let i of e)r.push(i.w,i.h,i.kind,i.pin,i.hint,i.key,i.span);for(let i of t)r.push(i.tail,i.head,i.minlen,i.labelW,i.labelH,i.tailDx,i.headDx,+i.tailFixed,+i.headFixed);let u=q.get(o.id);u||q.set(o.id,u=[]);for(let i of u){let n=i.given.length===r.length;for(let w=0;n&&w<r.length;w++)n=Object.is(i.given[w],r[w]);if(n)return i}let f={given:r,lnodes:e,ledges:t,size:ge(e,t,v)};return u.push(f),f},Z={width:0,height:0},he=()=>{for(let e of p){for(let i of e.ports)s[i.inner].isGroup&&le(i.inner,m[i.e],i.out)&&(d.get(i.inner).portOf.get(i.e*2+(i.out?0:1)).side=i.side);if(e.edges.length===0)continue;let t=!1;for(let i of e.edges){let n=m[i.e];(s[i.a].isGroup&&n.src!==i.a||s[i.b].isGroup&&n.dst!==i.b)&&(t=!0)}if(!t)continue;let{lnodes:r,ledges:u}=V(e,!1);Se(r,u),Ae(r,u,1);let f=Le(e.dir);e.edges.forEach((i,n)=>{let w=m[i.e],c=!u[n].reversed;s[i.a].isGroup&&w.src!==i.a&&(d.get(i.a).portOf.get(i.e*2).side=c?ye(f):f),s[i.b].isGroup&&w.dst!==i.b&&(d.get(i.b).portOf.get(i.e*2+1).side=c?f:ye(f))})}for(let e=p.length-1;e>=0;e--){let t=p[e],r=t.id>=0?s[t.id]:void 0,u=t.dir==="TB"||t.dir==="BT",f=t.dir==="BT"||t.dir==="RL",i=V(t,!0),{lnodes:n,ledges:w,size:c}=ae(t,i.lnodes,i.ledges),g=i.dummies,h=u?c.width:c.height,l=u?c.height:c.width,x=r?r.padX:0,B=r?r.padTop:0,T=Math.max(h+2*x,r?r.minW:0),W=l+B+(r?r.padBottom:0),M=(T-h)/2,L=B,C=(y,R)=>M+(u?y:f?c.height-R:R),P=(y,R)=>L+(u?f?c.height-R:R:y),_=u?0:1,U=y=>{let R=[];for(let N=0;N<y.length;N+=2)R.push(C(y[N],y[N+1]),P(y[N],y[N+1]),_);return R};t.items.forEach((y,R)=>{s[y].x=C(n[R].x,n[R].y),s[y].y=P(n[R].x,n[R].y)}),t.edges.forEach((y,R)=>{let N=w[R];t.routes.set(y.e,U(N.points));let H=m[y.e];H.labelW>0&&(H.labelX=C(N.labelX,N.labelY),H.labelY=P(N.labelX,N.labelY))});let te=t.edges.length;t.ports.forEach((y,R)=>{let N=s[y.inner];if(g[R]>=0){let Y=U(w[te++].points),X=y.out?Y.length-3:0,I=Y[X],re=Y[X+1];y.side===0?re=0:y.side===2?re=W:y.side===3?I=0:I=T,y.out?Y.push(I,re,_):Y.unshift(I,re,_),y.px=I,y.py=re,y.route=Y;return}let H=N.x,ne=N.y;if(N.isGroup&&le(y.inner,m[y.e],y.out)){let Y=d.get(y.inner).portOf.get(y.e*2+(y.out?0:1));H+=Y.px-N.w/2,ne+=Y.py-N.h/2}else y.side===0?ne-=N.h/2:y.side===2?ne+=N.h/2:y.side===3?H-=N.w/2:H+=N.w/2;let fe=H,oe=ne;y.side===0?oe=0:y.side===2?oe=W:y.side===3?fe=0:fe=T;let be=y.side===0||y.side===2?0:1;y.px=fe,y.py=oe,y.route=y.out?[H,ne,be,fe,oe,be]:[fe,oe,be,H,ne,be]}),r?(r.w=T,r.h=W):Z={width:T,height:W}}for(let e of p){let t=e.x,r=e.y;for(let u of e.items){let f=s[u];if(f.x+=t,f.y+=r,f.isGroup){let i=d.get(u);i.x=f.x-f.w/2,i.y=f.y-f.h/2}}}let o=(e,t,r,u)=>{for(let f=0;f<t.length;f+=3){let i=t[f]+r,n=t[f+1]+u,w=e.length;w>=3&&Math.abs(e[w-3]-i)<.01&&Math.abs(e[w-2]-n)<.01||e.push(i,n,t[f+2])}};for(let e of p)for(let t of e.edges){let r=m[t.e],u=[],f=[];for(let n=r.src;s[n].parent!==e.id;n=s[n].parent)f.push(d.get(s[n].parent));for(let n of f)o(u,n.portOf.get(t.e*2).route,n.x,n.y);o(u,e.routes.get(t.e),e.x,e.y);let i=[];for(let n=r.dst;s[n].parent!==e.id;n=s[n].parent)i.push(d.get(s[n].parent));for(let n=i.length-1;n>=0;n--)o(u,i[n].portOf.get(t.e*2+1).route,i[n].x,i[n].y);r.route=u,r.labelW>0&&(r.labelX+=e.x,r.labelY+=e.y)}},ue=De(v);k=ce,he();let a=-1;if(ce&&(a=we(s,m,ue),a>ee*Xe+Fe)){let o=Ce(s,m,p,Z);k=!1,he();let e=we(s,m,ue);e>=a?(k=!0,Z=Te(o,s,m,p)):a=e}if(k===ce&&j){let o=!1;for(let e of p){if(e.id<0)continue;let t=s[e.id],r=e.dir==="TB"||e.dir==="BT",u=ye(Le(e.dir)),f=[];for(let i of e.ports){if(i.side!==u)continue;let n=m[i.e].route,w=e.x+i.px,c=e.y+i.py,g=-1;for(let x=0;x<n.length&&(g<0||i.out);x+=3)Math.abs(n[x]-w)<.01&&Math.abs(n[x+1]-c)<.01&&(g=x);if(g<0)continue;let h=r?0:1,l=i.out?g+3:g-3;for(;l>=0&&l<n.length&&Math.abs(n[l+h]-n[g+h])<de;)l+=i.out?3:-3;l<0||l>=n.length||(i.hint=n[l+h]-(r?t.x-t.w/2:t.y-t.h/2),f.push([r?i.px:i.py,i.hint]))}f.sort((i,n)=>i[0]-n[0]);for(let i=1;i<f.length;i++)f[i-1][1]>f[i][1]&&(o=!0)}if(o){let e=a>=0?a:we(s,m,ue),t=e>0?Ce(s,m,p,Z):void 0;t&&(he(),we(s,m,ue)>=e&&(Z=Te(t,s,m,p)))}}for(let o of ie){let e=m[o],t=s[e.src],r=s[e.dst];e.route=[t.x,t.y,0,r.x,r.y,0],e.labelX=(t.x+r.x)/2,e.labelY=(t.y+r.y)/2}for(let o of se){let e=m[o],t=s[e.src];e.labelX=t.x+t.w/2+28+e.labelW/2,e.labelY=t.y}return Z}export{qe as a,_e as b,He as c,ze as d,je as e};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import{a as Ft,d as Ct,e as ce}from"./LLLWOAQD.js";import{b as ae}from"./PDMLSE6I.js";import{b as oe,f as re}from"./NDSCUZ25.js";import{i as At}from"./VSWIZJ7B.js";import{a as ot,g as q}from"./GUJTEFZK.js";import{d as Te,e as Ae}from"./DKTLEL5E.js";import{h as fe,i as ue,j as Tt,k as pe,o as he,q as Se,r as me,s as ge}from"./UWRPUF3N.js";import{d as le,e as de}from"./2CHDFZHC.js";import{b as ie,c as xt,d as Y,e as ft,i as Mt,p as Ee,s as be,t as _e,v as Ce}from"./KHUP5TOH.js";import{a as _t,f as ee,g as $t,i as ne,p as se}from"./YWXUFHC7.js";function Ye(i){let n="TB";for(let c of i)typeof c!="string"&&c.stmt==="dir"&&(n=c.value);return n}function ye(i,n,c){let o=[],m=[],w=new Map,l=new Map,t=new Map,k=0,j=0,I=R=>{if(!R.id||R.id==="</join></fork>"||R.id==="</choice>")return;if(R.cssClasses){let g;for(let C of R.cssClasses.split(" ")){let y=c.get(C);if(y){g??=R.cssCompiledStyles.slice();for(let st of y.styles)g.push(st)}}g&&(R.cssCompiledStyles=g)}let E=w.get(R.id);if(E){let g=R.parentId??E.parentId;Object.assign(E,R),g!==void 0&&(E.parentId=g)}else w.set(R.id,R),o.push(R)},J=(R,E,g)=>{let C=E.id;if(C==="root")return;let y=n.get(C),st=y?.classes?.join(" ")??"",P=y?.styles??[],T=l.get(C);if(!T){let B="rect";E.start===!0?B="stateStart":E.start===!1&&(B="stateEnd"),E.type!=="default"&&(B=E.type),T={shape:B,description:C,cssClasses:`${st} statediagram-state`,cssStyles:P,type:void 0,dir:void 0,colorIndex:void 0},l.set(C,T)}if(E.description&&(Array.isArray(T.description)?(T.shape="rectWithTitle",T.description=T.description.concat(E.description)):T.description.length>0?(T.shape="rectWithTitle",T.description=T.description===C?[E.description].flat():[T.description,E.description].flat()):(T.shape="rect",T.description=Array.isArray(E.description)?E.description.slice():E.description)),T.description.length===1&&T.shape==="rectWithTitle"&&(T.shape=T.type==="group"?"roundedWithTitle":"rect"),!T.type&&E.doc){if(T.type="group",T.dir=Ye(E.doc),T.shape=E.type==="divider"?"divider":"roundedWithTitle",T.shape==="divider"&&R?.id!==void 0&&t.has(R.id))T.colorIndex=t.get(R.id);else{let B=j++;T.colorIndex=st.trim()!==""||P.length>0?void 0:B}t.set(C,T.colorIndex),T.cssClasses=`${T.cssClasses} statediagram-cluster ${g?"statediagram-cluster-alt":""}`}let S=T.description,Q={id:C,shape:T.shape,label:Array.isArray(S)?S[0]:S,description:Array.isArray(S)?S.slice(1):[],cssClasses:T.cssClasses,cssCompiledStyles:[],cssStyles:T.cssStyles,type:T.type,isGroup:T.type==="group",dir:T.dir,colorIndex:T.colorIndex};Q.shape==="divider"&&(Q.label=""),R&&R.id!=="root"&&(Q.parentId=R.id);let M=E.note;if(!M){I(Q);return}let F=(B,rt,ct,tt)=>({id:B,shape:rt,label:M.text,description:[],cssClasses:ct,cssCompiledStyles:[],cssStyles:[],type:tt?"group":"node",isGroup:tt,dir:void 0,position:M.position}),$=F(`${C}----note-${k++}`,"note","statediagram-note",!1);$.parentId=`${C}----parent`,$.noteFor=C,I(F($.parentId,"noteGroup",T.cssClasses,!0)),I($),I(Q);let N=M.position==="left of",it=N?$.id:C,z=N?C:$.id;m.push({id:`${it}-${z}`,start:it,end:z,label:"",classes:"transition note-edge",pattern:"dashed"})},x=[{item:void 0,doc:i,at:0,alt:!0}];for(;x.length>0;){let R=x[x.length-1];if(R.at>=R.doc.length){x.pop();continue}let E=R.doc[R.at++];typeof E!="string"&&(E.stmt==="state"?(J(R.item,E,R.alt),E.doc&&x.push({item:E,doc:E.doc,at:0,alt:!R.alt})):E.stmt==="relation"&&(J(R.item,E.state1,R.alt),J(R.item,E.state2,R.alt),m.push({id:`edge${k++}`,start:E.state1.id,end:E.state2.id,label:E.description??"",classes:"transition"})))}for(let R of o)if(R.isGroup&&R.description.length>0)throw new _t(`Group nodes can only have label. Remove the additional description for node [${R.id}]`,"semantic",{type:"state"});return{nodes:o,edges:m}}var yt=class{type="state";rootDoc=[];states=new Map;relations=[];classes=new Map;links=new Map;graph={nodes:[],edges:[]};title;accTitle;accDescr;dividerCount=0;get direction(){let n="TB";for(let c of this.rootDoc)typeof c!="string"&&c.stmt==="dir"&&(n=c.value);return n}setRootDoc(n){this.rootDoc=n,this.translate(),this.extract(n)}extract(n){this.states=new Map,this.relations=[],this.classes=new Map;let c=Array.isArray(n)?n:n.doc;for(let o of c)if(typeof o!="string")switch(o.stmt){case"state":this.addState(o.id.trim(),o.type,o.doc,o.description,o.note);break;case"relation":this.addRelation(o.state1,o.state2,o.description);break;case"classDef":this.addStyleClass(o.id.trim(),o.classes);break;case"style":{let m=o.styleClass.split(",").map(w=>w.replace(/;/g,"").trim());for(let w of this.named(o.id.trim()))w.styles=m.slice();break}case"applyClass":this.setCssClass(o.id.trim(),o.styleClass);break;case"click":this.addLink(typeof o.id=="string"?o.id:o.id.id,o.url,o.tooltip);break}this.graph=ye(c,this.states,this.classes)}translate(){let n=[["root",{stmt:"root",id:"root",doc:this.rootDoc},!0]];for(;n.length>0;){let[c,o,m]=n.pop();if(typeof o=="string")continue;if(o.stmt==="relation"){n.push([c,o.state2,!1],[c,o.state1,!0]);continue}if(o.stmt==="state")o.id==="[*]"?(o.id=c+(m?"_start":"_end"),o.start=m):o.id=o.id.trim();else if(o.stmt!=="root")continue;if(!o.doc)continue;let w=[],l=[];for(let t of o.doc)typeof t!="string"&&t.stmt==="state"&&t.type==="divider"&&!t.doc?(w.push({...t,doc:l}),l=[]):l.push(t);w.length>0&&(l.length>0&&w.push({stmt:"state",id:this.getDividerId(),type:"divider",doc:l}),o.doc=w);for(let t=o.doc.length-1;t>=0;t--)n.push([o.id,o.doc[t],!0])}}addState(n,c="default",o,m,w,l){let t=n.trim(),k=this.states.get(t);if(k?(k.doc||(k.doc=o),k.type||(k.type=c)):(k={stmt:"state",id:t,descriptions:[],type:c,doc:o,note:w,classes:[],styles:[],textStyles:[]},this.states.set(t,k)),m)for(let j of Array.isArray(m)?m:[m])this.addDescription(t,j.trim());if(w&&(k.note=w),l)for(let j of l)this.setCssClass(t,j.trim())}getState(n){return this.states.get(n)}addLink(n,c,o){this.links.set(n,{url:c,tooltip:o})}addRelation(n,c,o=""){for(let m of[n,c])this.addState(m.id,m.type,m.doc,m.description,m.note,m.classes);this.relations.push({id1:n.id.trim(),id2:c.id.trim(),relationTitle:o})}addDescription(n,c){this.states.get(n)?.descriptions?.push(c.startsWith(":")?c.replace(":","").trim():c)}getDividerId(){return`divider-id-${++this.dividerCount}`}addStyleClass(n,c=""){let o=this.classes.get(n);if(o||(o={id:n,styles:[],textStyles:[]},this.classes.set(n,o)),!!c)for(let m of c.split(",")){let w=m.replace(";","").trim();m.includes("color")&&o.textStyles.push(w.replace("fill","bgFill").replace("color","fill")),o.styles.push(w)}}setCssClass(n,c){for(let o of this.named(n))o.classes?.push(c)}getDirection(){for(let n of this.rootDoc)if(typeof n!="string"&&n.stmt==="dir")return n.value;return"TB"}setDirection(n){for(let c of this.rootDoc)if(typeof c!="string"&&c.stmt==="dir"){c.value=n;return}this.rootDoc.unshift({stmt:"dir",value:n})}trimColon(n){return n.startsWith(":")?n.slice(1).trim():n.trim()}setAccTitle(n){this.accTitle=n.replace(/^\s+/g,"")}setAccDescription(n){this.accDescr=n.replace(/\n\s+/g,`
|
|
2
|
+
`)}named(n){let c=[];for(let o of n.split(",")){let m=this.states.get(o);m||(this.addState(o),m=this.states.get(o.trim())),m&&c.push(m)}return c}};var Yt=["$end","INVALID","NL","SD","DESCR","-->","HIDE_EMPTY","scale","WIDTH","COMPOSIT_STATE","STRUCT_START","STRUCT_STOP","STATE_DESCR","AS","ID","FORK","JOIN","CHOICE","CONCURRENT","note","NOTE_TEXT","acc_title","acc_title_value","acc_descr","acc_descr_value","acc_descr_multiline_value","CLICK","STRING","HREF","classDef","CLASSDEF_ID","DEFAULT_CLASSDEF_ID","CLASSDEF_STYLEOPTS","DEFAULT","style","STYLE_IDS","STYLEDEF_STYLEOPTS","class","CLASSENTITY_IDS","STYLECLASS","direction_tb","direction_bt","direction_rl","direction_lr","EDGE_STATE","STYLE_SEPARATOR","left_of","right_of","INVALID"];var Ge=/direction/gi,Pe=/<<(?:fork|join|choice)>>|\[\[(?:fork|join|choice)\]\]/gi,He=/[\n\r\u2028\u2029]/g,Ke=/%%/g,je=/\{/g;function ht(i,n){let c=0,o=-2;return m=>{if(o===-2||m<c||o!==-1&&m>o){i.lastIndex=m;let w=i.exec(n);o=w?w.index:-1,c=m}return o}}function De(i){let n=i.length,c=[],o=[],m=[],w=[],l=0,t=0,k,j=ht(Ge,i),I=ht(Pe,i),J=ht(He,i),x=ht(Ke,i),R=ht(je,i),E=-1,g=-1,C=[-1,-1,-1,-1],y=[0,0,0,0],st=-1,P=-1,T=[-1,-1,-1,-1,-1,-1],S=(u,r,p)=>{c.push(u),o.push(i.slice(r,p)),m.push(r),t=p},Q=(u,r,p,h)=>{c.push(u),o.push(r),m.push(p),t=h},M=u=>{w.push(l),l=u},F=()=>{w.length>0&&(l=w.pop())},$=(u,r)=>{for(let p=0;p<u.length;p++){let h=u.charCodeAt(p),a=i.charCodeAt(r+p);if(a!==h&&!(h>=97&&h<=122&&a===h-32))return!1}return!0},N=u=>{let r=u;for(;r<n&&ot(i.charCodeAt(r));)r++;return r},it=u=>{let r=u;for(;r<n&&q(i.charCodeAt(r));)r++;return r},z=u=>{let r=i.indexOf(`
|
|
3
|
+
`,u);return r===-1?n:r},B=u=>{let r=J(u);return r===-1?n:r},rt=u=>{if(u<E||u>g){let r=j(u),p=r===-1?n:B(u);E=u,g=p,C[0]=C[1]=C[2]=C[3]=-1;for(let h=r;h!==-1&&h<p;h=j(h+1)){let a=N(h+9);if(a===h+9)continue;let O=$("tb",a)?0:$("bt",a)?1:$("rl",a)?2:$("lr",a)?3:-1;O!==-1&&(C[O]=h,y[O]=a+2)}}for(let r=0;r<4;r++)if(C[r]>=u)return r;return-1},ct=u=>{if(u<st||u>P){let r=I(u),p=r===-1?n:B(u);st=u,P=p,T.fill(-1);for(let h=r;h!==-1&&h<p;h=I(h+1)){let a=i.charCodeAt(h+2)|32;T[(i.charCodeAt(h)===60?0:3)+(a===102?0:a===106?1:2)]=h}}for(let r=0;r<6;r++)if(T[r]>=u)return r;return-1},tt=(u,r)=>{let p=x(u);return p===-1||p+2>r?(S(14,u,r),!0):p===u?(t=r,!1):(S(14,u,p),!0)},Z=u=>(c.push(u),o.push(""),m.push(t),{types:c,texts:o,starts:m,error:k});for(;;){if(t>=n){switch(l){case 0:S(2,n,n);break;case 6:S(22,n,n);break;case 7:S(24,n,n);break;case 8:S(25,n,n);break;case 10:S(32,n,n);break;case 12:S(39,n,n);break;case 14:S(36,n,n);break;case 3:S(12,n,n);break;case 18:S(20,n,n);break;case 4:case 19:S(14,n,n);break}return Z(0)}let u=i.charCodeAt(t);switch(l){case 0:case 1:{let r=l===0,p=u|32;if(r){if(p===99&&$("click",t)&&!q(i.charCodeAt(t+5))){S(26,t,t+5);continue}if(p===104&&$("href",t)&&!q(i.charCodeAt(t+4))){S(28,t,t+4);continue}if(u===34){let O=i.indexOf('"',t+1);if(O!==-1){S(27,t,O+1);continue}}if(p===100&&$("default",t)&&!q(i.charCodeAt(t+7))){S(33,t,t+7);continue}let a=rt(t);if(a!==-1){S(40+a,t,z(y[a]));continue}if(u===10){let O=t+1;for(;i.charCodeAt(O)===10;)O++;S(2,t,O);continue}if(ot(u)){t=N(t);continue}}else if(u!==10&&ot(u)){let a=t+1;for(;a<n&&i.charCodeAt(a)!==10&&ot(i.charCodeAt(a));)a++;t=a;continue}if(u===35||u===37&&i.charCodeAt(t+1)===37&&i.charCodeAt(t+2)!==123){t=z(t);continue}if(p===115){if(r&&$("scale",t)){let a=N(t+5);if(a>t+5){S(7,t,a),M(5);continue}}if($("style",t)){let a=N(t+5);if(a>t+5){S(34,t,a),M(13);continue}}if($("state",t)){let a=N(t+5);if(a>t+5){t=a,M(2);continue}if(r&&$("diagram",t+5)){let O=$("-v2",t+12)?t+15:t+12;if(a=N(O),a>O){S(3,t,a);continue}}}}else if(p===99){if($("class",t)){let a=$("def",t+5),O=a?t+8:t+5,et=N(O);if(et>O){S(a?29:37,t,et),M(a?9:11);continue}}}else if(p===97&&r&&($("acctitle",t)||$("accdescr",t))){let a=(i.charCodeAt(t+3)|32)===116,O=N(t+8),et=i.charCodeAt(O);if(et===58){S(a?21:23,t,N(O+1)),M(a?6:7);continue}if(et===123&&!a){t=N(O+1),M(8);continue}}if(r){if(u===123){S(10,t,t+1),M(1);continue}}else{let a=rt(t);if(a!==-1){S(40+a,t,z(y[a]));continue}if(u===125){S(11,t,t+1),F();continue}if(u===10){t++;continue}}if(p===110&&$("note",t)){let a=N(t+4);if(a>t+4){S(19,t,a),M(15);continue}}if(r&&p===104&&$("hide empty description",t)&&!q(i.charCodeAt(t+22))){S(6,t,t+22);continue}if(u===91&&i.charCodeAt(t+1)===42&&i.charCodeAt(t+2)===93){S(44,t,t+3);continue}let h=t;for(;h<n;){let a=i.charCodeAt(h);if(a===58||a===45||a===123||ot(a))break;h++}if(h>t){tt(t,h);continue}if(u===58){for(h=t+1;h<n;){let a=i.charCodeAt(h);if(a===10||a===59)break;if(a===58){let O=i.charCodeAt(h+1);if(h+1>=n||O===58||O===10||O===59)break;h++}h++}if(h>t+1){Q(4,i.slice(t,h).trim(),t,h);continue}if(i.charCodeAt(t+1)===58&&i.charCodeAt(t+2)===58){S(45,t,t+3);continue}}else if(u===45&&i.charCodeAt(t+1)===45){if(i.charCodeAt(t+2)===62){S(5,t,t+3);continue}if(!r){S(18,t,t+2);continue}}if(!r)return Z(1);S(48,t,t+1);continue}case 2:{if(u!==10&&ot(u)){let a=t+1;for(;a<n&&i.charCodeAt(a)!==10&&ot(i.charCodeAt(a));)a++;t=a;continue}if(u===35||u===37&&i.charCodeAt(t+1)===37&&i.charCodeAt(t+2)!==123){t=z(t);continue}let r=ct(t);if(r!==-1){let a=T[r],O=r===2||r===5;Q(O?17:r%3===0?15:16,i.slice(t,a).trim(),t,a+(O?10:8)),F();continue}if(u===34){t++,M(3);continue}let p=u===10?N(t):t;if($("as",p)){let a=N(p+2);if(a>p+2){S(13,t,a),M(4);continue}}if(u===10){t++,F();continue}if(u===123){S(10,t,t+1),F(),M(1);continue}if(q(u)){let a=it(t),O=N(a);if(O>a&&q(i.charCodeAt(O))){let et=R(O+1);if(et!==-1&&et<B(O))return k=`Error: State name must be a single word. Found: "${i.slice(t,et+1).trim()}"`,Z(1)}}let h=t+1;for(;h<n;){let a=i.charCodeAt(h);if(a===123||ot(a))break;h++}S(9,t,h);continue}case 3:{if(u===34){t++,F();continue}let r=i.indexOf('"',t);S(12,t,r===-1?n:r);continue}case 4:{let r=t;for(;r<n;){let p=i.charCodeAt(r);if(p===10||p===123)break;r++}tt(t,r)&&F();continue}case 5:{if(u>=48&&u<=57){let p=t+1;for(;p<n&&i.charCodeAt(p)>=48&&i.charCodeAt(p)<=57;)p++;S(8,t,p);continue}let r=N(t);if(r>t&&$("width",r)&&!q(i.charCodeAt(r+5))){t=r+5,F();continue}return Z(1)}case 6:S(22,t,z(t)),F();continue;case 7:S(24,t,z(t)),F();continue;case 8:{if(u===125){t++,F();continue}let r=i.indexOf("}",t);S(25,t,r===-1?n:r);continue}case 9:{let r=$("default",t)&&N(t+7)>t+7,p=r?t+7:it(t),h=N(p);if(p===t||h===p)return Z(1);S(r?31:30,t,h),F(),M(10);continue}case 10:S(32,t,z(t)),F();continue;case 11:{let r=it(t);if(r===t)return Z(1);for(;i.charCodeAt(r)===44;){let p=N(r+1),h=it(p);if(h===p)break;r=h}S(38,t,r),F(),M(12);continue}case 12:S(39,t,z(t)),F();continue;case 13:{let r=t;for(;r<n&&(q(i.charCodeAt(r))||i.charCodeAt(r)===44);)r++;let p=N(r);if(r===t||p===r)return Z(1);S(35,t,p),F(),M(14);continue}case 14:S(36,t,z(t)),F();continue;case 15:{if($("left of",t)&&!q(i.charCodeAt(t+7))){S(46,t,t+7),F(),M(16);continue}if($("right of",t)&&!q(i.charCodeAt(t+8))){S(47,t,t+8),F(),M(16);continue}if(u===34){t++,F(),M(18);continue}return Z(1)}case 16:{let r=N(t),p=r;for(;p<n;){let h=i.charCodeAt(p);if(h===58||h===45||ot(h))break;p++}if(p===r)return Z(1);tt(t,p)&&(F(),M(17));continue}case 17:{let r=N(t);if(i.charCodeAt(r)===58){let a=r+1;for(;a<n;){let O=i.charCodeAt(a);if(O===58||O===10||O===59)break;a++}if(a>r+1){Q(20,i.slice(t+2,a).trim(),t,a),F();continue}}let p=i.indexOf(`
|
|
4
|
+
`,t),h=-1;for(;p!==-1&&(h=N(p),!($("end note",h)&&!q(i.charCodeAt(h+8))));)p=i.indexOf(`
|
|
5
|
+
`,h);if(p===-1)return Z(1);Q(20,i.slice(t,h).trim(),t,h+8),F();continue}case 18:{let r=N(t);if($("as",r)){S(13,t,N(r+2)),F(),M(19);continue}if(u===34){t++;continue}let p=i.indexOf('"',t);S(20,t,p===-1?n:p);continue}case 19:tt(t,z(t))&&F();continue}}}var Ue=["TB","BT","RL","LR"],Dt="'NL', 'ID', 'HIDE_EMPTY', 'scale', 'COMPOSIT_STATE', 'STATE_DESCR', 'FORK', 'JOIN', 'CHOICE', 'CONCURRENT', 'note', 'acc_title', 'acc_descr', 'acc_descr_multiline_value', 'CLICK', 'classDef', 'style', 'class', 'direction_tb', 'direction_bt', 'direction_rl', 'direction_lr', 'EDGE_STATE'";function Ie(i,n){let{types:c,texts:o,starts:m,error:w}=De(i),l=0,t=E=>{let g=c[l];throw g===1?w!==void 0?new _t(w,"syntax",{type:"state",...ee(i,m[l])}):$t("state",i,m[l],"",!0):$t("state",i,m[l],`Expecting ${E}, got '${Yt[g]}'`)},k=E=>(c[l]!==E&&t(`'${Yt[E]}'`),o[l++]),j=()=>{let E=c[l];E!==14&&E!==44&&t("'ID', 'EDGE_STATE'");let g=o[l++].trim();return c[l]!==45?{stmt:"state",id:g,type:"default",description:""}:(l++,{stmt:"state",id:g,classes:[k(14).trim()],type:"default",description:""})};for(;c[l]===2;)l++;c[l]!==3&&t("'NL', 'SD'"),l++;let I=[],J=[],x=E=>{E!=="nl"&&I.push(E)},R=(E,g)=>{l++;let C=[];I.push({stmt:"state",id:E,type:"default",description:g,doc:C}),J.push(I),I=C};for(;;){let E=c[l];switch(E){case 2:l++;break;case 14:case 44:{let g=j();if(c[l]===4)g.description=n.trimColon(o[l++]),x(g);else if(c[l]===5){l++;let C=j();c[l]===4?x({stmt:"relation",state1:g,state2:C,description:n.trimColon(o[l++])}):x({stmt:"relation",state1:g,state2:C})}else x(g);break}case 6:x(o[l++]);break;case 7:l++,k(8),x(o[l-2]);break;case 9:c[l+1]===10?R(o[l++],""):x(o[l++]);break;case 12:{let g=o[l++];k(13);let C=k(14);if(c[l]===10)R(C,g);else if(C.includes(":")){let y=C.split(":");x({stmt:"state",id:y[0],type:"default",description:[g.trim(),y[1]]})}else x({stmt:"state",id:C,type:"default",description:g.trim()});break}case 15:x({stmt:"state",id:o[l++],type:"fork"});break;case 16:x({stmt:"state",id:o[l++],type:"join"});break;case 17:x({stmt:"state",id:o[l++],type:"choice"});break;case 18:l++,x({stmt:"state",id:n.getDividerId(),type:"divider"});break;case 19:{let g=o[l++];if(c[l]===46||c[l]===47){let C=o[l++].trim(),y=k(14).trim();x({stmt:"state",id:y,note:{position:C,text:k(20).trim()}})}else c[l]!==20&&t("'NOTE_TEXT', 'left_of', 'right_of'"),l++,k(13),k(14),x(g);break}case 40:case 41:case 42:case 43:{let g=Ue[E-40];l++,n.setDirection(g),x({stmt:"dir",value:g});break}case 21:{l++;let g=k(22).trim();n.setAccTitle(g),x(g);break}case 23:{l++;let g=k(24).trim();n.setAccDescription(g),x(g);break}case 25:{let g=o[l++].trim();n.setAccDescription(g),x(g);break}case 26:{l++;let g=j(),C,y="";c[l]===28?(l++,C=k(27)):(c[l]!==27&&t("'STRING', 'HREF'"),C=o[l++],y=k(27)),k(2),x({stmt:"click",id:g,url:C,tooltip:y});break}case 29:{l++;let g=k(30).trim();x({stmt:"classDef",id:g,classes:k(32).trim()});break}case 34:{l++;let g=k(35).trim();x({stmt:"style",id:g,styleClass:k(36).trim()});break}case 37:{l++;let g=k(38).trim();x({stmt:"applyClass",id:g,styleClass:k(39).trim()});break}case 11:J.length===0&&t(`'$end', ${Dt}`),l++,I=J.pop();break;case 0:return J.length>0&&t(`'STRUCT_STOP', ${Dt}`),n.setRootDoc(I),I;default:t(J.length>0?`'STRUCT_STOP', ${Dt}`:`'$end', ${Dt}`)}}}var We=40,Be=16,Xe=44,ut=16,Gt=10,Je=16,Re=10,Pt=26,ke=8,ze=320,Ht=10,Le=8,we=' fill="var(--_s)" stroke="var(--_b)"',It=' fill="none" stroke="var(--_b)"',Ve=/(?:^| )statediagram-(?:state|cluster-alt|cluster|note)(?= |$)/g;var Ze=new Map([["rectWithTitle",1],["stateStart",2],["stateEnd",3],["choice",4],["fork",5],["join",6],["note",7],["divider",10]]),Qe=["pele-node pele-state","pele-node pele-state","pele-node pele-state-start","pele-node pele-state-end","pele-node pele-state-choice","pele-node pele-state-fork","pele-node pele-state-join","pele-note","pele-cluster pele-state-composite"];function Ne(i){return i==="TB"||i==="BT"}function Kt(i,n,c){let o=i.state?.[n];return typeof o=="number"&&o>0?Math.min(o,2e3):c}function Oe(i){let n=0,c=i.length;for(;n<c&&i.charCodeAt(n)===34;)n++;for(;c>n&&i.charCodeAt(c-1)===34;)c--;return i.slice(n,c)}function ve(i,n,c){return i<n?n:i>c?c:i}function Rt(i,n,c,o,m){return`<rect x="${Y(i)}" y="${Y(n)}" width="${Y(c)}" height="${Y(o)}"${m}/>`}function kt(i,n,c,o){let m=Ct(0,0);return m.isGroup=!0,m.dir=i,m.padX=n,m.padTop=c,m.padBottom=o,m}function xe(i,n,c){return Ae(i.direction)?Te(c,o=>$e(i,n,c,o)):$e(i,n,c,!1)}function $e(i,n,c,o){let m=i.graph,w=n.flowchart?.curve,l=c.fontSize??16,t=Math.round(l*.875),k=c.measurer??se(c.fontFamily,c.fontFamilyMono),j=Kt(n,"wrappingWidth",200),I=c.padding??8,J=c.icons,x=o?"TB":Ft(i.direction),R=Mt(void 0,!1,k,l,0),E=(s,e,d,b=0)=>Mt(s,!0,k,e,d,b),g=new Map,C=[],y=[],st=(s,e,d)=>(C.push({node:s,kind:e,style:void 0,label:R,lines:[],w:0,h:0,titleH:0}),d&&y.push(d),C.length-1);for(let s of m.nodes){if(s.shape==="noteGroup")continue;let e=s.isGroup?s.shape==="divider"?9:8:Ze.get(s.shape)??0;g.set(s.id,st(s,e,void 0))}let P=C.length,T=[];for(let s=0;s<P;s++){let e=C[s].node.parentId,d=e===void 0?void 0:g.get(e);T.push(d!==void 0&&d!==s&&C[d].node.isGroup?d:-1)}{let s=[];for(let f=0;f<P;f++)s.push([]);let e=[],d=new Uint8Array(P);for(let f=0;f<P;f++)T[f]===-1?(d[f]=1,e.push(f)):s[T[f]].push(f);let b=0,L=()=>{for(;b<e.length;b++)for(let f of s[e[b]])d[f]||(d[f]=1,e.push(f))};L();let H=new Int32Array(P).fill(-1);for(let f=0;f<P;f++){if(d[f])continue;let A=f;for(;H[A]!==f;)H[A]=f,A=T[A];T[A]=-1,d[A]=1,e.push(A),L()}}let S=new Int32Array(P).fill(-1);for(let s=0;s<P;s++){let e=C[s].node.noteFor,d=e===void 0?void 0:g.get(e);d!==void 0&&(S[s]=d,T[s]=T[d])}let Q=s=>Ft(C[s].node.dir),M=s=>Ne(T[s]===-1?x:Q(T[s])),F=new Int32Array(P),$=new Uint8Array(P),N=new Array(P).fill(1/0),it=0,z=new Int32Array(2*P);for(let s of m.edges){let e=g.get(s.start),d=g.get(s.end);if(!(e===void 0||d===void 0)){if(s.pattern==="dashed"){$[C[e].kind===7?d:e]=1;continue}F[e]=Math.max(F[e],++z[2*e]),F[d]=Math.max(F[d],++z[2*d+1]),N[e]===1/0&&(N[e]=it++),N[d]===1/0&&(N[d]=it++)}}for(let s=0;s<P;s++){let e=C[s],d=e.node,b=be(d.cssStyles.length>0?d.cssCompiledStyles.concat(d.cssStyles):d.cssCompiledStyles),L=(b.bold?1:0)|(b.italic?2:0),H=b.fontSize??l;e.style=b;let f;switch(e.kind){case 8:e.label=E(d.label,H,4e3,L),e.titleH=e.label.height>0?e.label.height+12:0,f=kt(Q(s),ut,e.titleH+ut,ut),f.minW=e.label.width+2*ut;break;case 9:f=kt(Q(s),Gt,Gt,Gt);break;case 2:e.w=e.h=14;break;case 3:e.w=e.h=18;break;case 4:e.w=e.h=30;break;case 5:case 6:{let A=ve(40*F[s]+16,72,320);e.w=M(s)?A:Le,e.h=M(s)?Le:A;break}case 10:break;case 7:e.label=E(d.label,t,Math.max(j,ze)),e.w=e.label.width+24,e.h=e.label.height+16;break;default:{e.label=E(d.label,H,j,L);let A=e.label.width,D=e.label.height+2*Re;if(e.kind===1){D+=14;for(let _ of d.description){let X=E(_===""?" ":_,t,j,L);e.lines.push(X),X.width>A&&(A=X.width),D+=X.height}}e.w=Math.max(A+2*Je,56),e.h=D}}f??=Ct(e.w,e.h),(e.kind===0||e.kind===1)&&(f.span=(M(s)?e.w:e.h)-24),y.push(f)}let B=[],rt=[],ct=[],tt=new Int32Array(P),Z=new Float64Array(P),u=new Float64Array(P),r=new Map,p=(s,e)=>{if(!y[s].isGroup)return!1;for(let d=T[e];d!==-1;d=T[d])if(d===s)return!0;return!1},h=(s,e)=>(r.set(B.length,s),N.push(e?-1:1/0),st(void 0,10,Ct(0,0,s)));for(let s of m.edges){let e=g.get(s.start),d=g.get(s.end);if(e===void 0||d===void 0)continue;let b=E(s.label,t,j),L=b.width>0?b.width+12:0;e===d?(tt[e]++,Z[e]=Math.max(Z[e],L),u[e]+=b.height):p(e,d)?e=h(e,!0):p(d,e)&&(d=h(d,!1)),ct.push(s),rt.push(b),B.push({src:e,dst:d,minlen:1,labelW:L,labelH:b.height>0?b.height+4:0,route:[],labelX:0,labelY:0})}for(let s=0;s<P;s++){if(S[s]!==-1)continue;let e=y[s],d=0;if(tt[s]>0){let L=Pt+(tt[s]-1)*8;d=M(s)?L+Z[s]:L*.75+4+u[s],e.isGroup||(M(s)?(e.w+=2*d,e.h=Math.max(e.h,u[s])):(e.h+=2*d,e.w=Math.max(e.w,Z[s])),d=0)}if(!$[s]&&d===0){e.parent=T[s];continue}let b=M(s)?kt("LR",d,0,0):kt("TB",0,d,d);b.parent=T[s],N.push(N[s]),y[s].parent=st(void 0,10,b)}for(let s=0;s<P;s++)S[s]!==-1&&(y[s].parent=y[S[s]].parent);{let s=[];for(let f=0;f<y.length;f++)s.push([]);let e=[];for(let f=0;f<y.length;f++){let A=y[f].parent;A>=0?s[A].push(f):e.push(f)}let d=f=>C[f].kind===2?0:1,b=(f,A)=>d(f)-d(A)||(N[f]===N[A]?0:N[f]<N[A]?-1:1)||f-A,L=0,H=e.sort(b).reverse();for(;H.length>0;){let f=H.pop();y[f].seq=L++;let A=s[f].sort(b);for(let D=A.length-1;D>=0;D--)H.push(A[D])}}let a=ce(y,B,x,{nodeSep:Kt(n,"nodeSpacing",We),edgeSep:Be,rankSep:Kt(n,"rankSpacing",Xe),portSep:20,tracks:w==="step"||w==="stepBefore"||w==="stepAfter",straight:w==="linear",headRoom:Tt("arrow_point")}),O=Math.ceil(a.width+2*I),et=Math.ceil(a.height+2*I),jt=[],Lt=new Map;for(let s of B){let e=s.route;for(let d=3;d<e.length-3;d+=3){let b=Math.round(e[d+1]),L=Lt.get(b);L?L.push(e[d]):Lt.set(b,[e[d]])}}let St=[];for(let s=0;s<y.length;s++)St.push([]);let at=[];for(let s=0;s<y.length;s++){let e=y[s].parent;e>=0?St[e].push(s):at.push(s)}let Fe=at.slice();for(let s=0;s<at.length;s++)for(let e of St[at[s]])at.push(e);let wt="",Ut=[],mt="",Wt="",Bt="",Xt=(s,e,d,b,L)=>{let H=s.filter(D=>C[D].kind===9);if(H.length<2)return;let f=(D,_)=>_?y[D].x-y[D].w/2:y[D].y-y[D].h/2,A=(D,_)=>_?y[D].x+y[D].w/2:y[D].y+y[D].h/2;for(let D of[!0,!1]){let _=H.slice().sort((v,U)=>f(v,D)-f(U,D)||v-U),X=!0;for(let v=1;v<_.length;v++)A(_[v-1],D)>f(_[v],D)+.5&&(X=!1);if(X){for(let v=1;v<_.length;v++){let U=Y((A(_[v-1],D)+f(_[v],D))/2+I);mt+=`<path class="pele-divider" d="M${D?`${U},${Y(d)}V${Y(L)}`:`${Y(e)},${U}H${Y(b)}`}"/>`}return}}for(let D of H){let _=y[D];mt+=Rt(_.x-_.w/2+I,_.y-_.h/2+I,_.w,_.h,` class="pele-divider" rx="${Ht}"`)}};Xt(Fe,I/2,I/2,O-I/2,et-I/2);for(let s of at){let e=C[s],d=e.node,b=e.style;if(d===void 0||b===void 0||e.kind>=9)continue;let L=y[s],H=L.x+I,f=L.y+I,A=e.w,D=e.h,_=de(b),X=` class="pele-label"${_}${b.text}`,v;switch(e.kind){case 8:{let G=H-L.w/2,W=f-L.h/2;le(b.shape)&&Ut.push({box:[G,W,G+L.w,W+L.h],shape:b.shape}),v=Rt(G,W,L.w,L.h,` rx="${Ht}" fill="var(--_a)"${Ee(b.shape)?"":' fill-opacity="0.5"'} stroke="var(--_b)"${b.shape}`),e.titleH>0&&(v+=`<path d="M${Y(G)},${Y(W+e.titleH)}H${Y(G+L.w)}"${It}${b.line}/>`+ft(e.label,qe(L,e.label.width,Lt)+I,W+e.titleH/2,` class="pele-cluster-label"${_}${b.text}`,J)),Xt(St[s],G,W+e.titleH,G+L.w,W+L.h);break}case 2:v=`<circle r="7" fill="var(--_l)"${b.shape}/>`;break;case 3:v=`<circle r="8.5" fill="var(--_bg)" stroke="var(--_l)"${b.line}/><circle r="5" fill="var(--_l)"${b.shape}/>`;break;case 4:v=`<polygon points="0,${Y(-D/2)} ${Y(A/2)},0 0,${Y(D/2)} ${Y(-A/2)},0"${we}${b.shape}/>`;break;case 5:case 6:v=Rt(-A/2,-D/2,A,D,` rx="2" fill="var(--_l)"${b.shape}`);break;case 7:{let G=Y(A/2),W=Y(D/2),V=Y(A/2-ke),nt=Y(ke-D/2);v=`<path d="M-${G},-${W}H${V}L${G},${nt}V${W}H-${G}Z" fill="var(--_bg)" stroke="var(--_b)"/><path d="M${V},-${W}V${nt}H${G}"${It}/>`+ft(e.label,0,0,` class="pele-label" font-size="${t}" fill="var(--_m)"`,J);break}default:{if(v=Rt(-A/2,-D/2,A,D,` rx="${Y(Math.min(Ht,D/2))}"${we}${b.shape}`),e.kind===0){v+=ft(e.label,0,0,X,J);break}let G=Re-D/2+e.label.height;v+=`<path d="M${Y(-A/2)},${Y(G+6)}H${Y(A/2)}"${It}${b.line}/>`+ft(e.label,0,G-e.label.height/2,X,J),G+=14;for(let W of e.lines)v+=ft(W,0,G+W.height/2,` class="pele-state-description" font-size="${t}"${_}${b.text}`,J),G+=W.height}}let U=i.links.get(d.id);if(U){let G=ne(Oe(U.tooltip));G&&(v=`<title>${ie(G)}</title>`+v),v=re(v,oe(Oe(U.url)),d.id,jt,c,' target="_blank"')}let K=`<g class="${Qe[e.kind]}${_e(d.cssClasses.replace(Ve,""))}" data-id="${xt(d.id)}"`;e.kind===8?wt+=`${K}>${v}</g>`:e.kind===7?Bt+=`${K} transform="translate(${Y(H)},${Y(f)})">${v}</g>`:Wt+=`${K} transform="translate(${Y(H)},${Y(f)})">${v}</g>`}let Jt=(s,e,d)=>{let b=y[d];if(b.isGroup)return;let L=C[d],H=L.kind===5||L.kind===6,f=e===0?3:e-3;for(let A of[1,0]){let D=A?b.h:b.w,_=A?L.h:L.w,X=A?L.w:L.h,v=(A?b.y:b.x)+I,U=(A?b.x:b.y)+I,K=s[e+A]-v;if(!(Math.abs(Math.abs(K)-D/2)>=.5)){s[e+A]-=Math.sign(K)*(D-_)/2,H&&X>_&&(s[e+1-A]=ve(s[f+1-A],U-X/2+6,U+X/2-6));return}}},Nt=fe();for(let s=0;s<B.length;s++){let e=B[s];e.src===e.dst||e.route.length<6||ct[s].pattern==="dashed"||Nt.add(e.dst,At(e.route,e.route.length-3,y[e.dst]),"arrow_point")}let zt="",Ot="",vt="",Me=new Int32Array(P),Vt=new Float64Array(P);for(let s=0;s<B.length;s++){let e=B[s],d=ct[s],b=rt[s],L=d.pattern==="dashed",H=L?"none":"arrow_point",f;if(e.src===e.dst){let _=y[e.src],X=C[e.src],v=Me[e.src]++,U=M(e.src),K=_.isGroup?_.w:X.w,G=_.isGroup?_.h:X.h,W=(U?K:G)/2,V=Math.max(Math.min((U?G:K)/2-4,8+v*6),2),nt=Pt+v*8,Zt=Tt(H)/(Math.hypot(nt,V)||1),gt=(lt,dt)=>_.x+I+(U?W+lt:-dt),Et=(lt,dt)=>_.y+I+(U?dt:W+lt),bt=(lt,dt)=>`${Y(gt(lt,dt))},${Y(Et(lt,dt))}`;f={d:`M${bt(0,-V)}C${bt(nt,-2*V)} ${bt(nt,2*V)} ${bt(nt*Zt,V+V*Zt)}`,sx:0,sy:0,sdx:0,sdy:0,ex:gt(0,V),ey:Et(0,V),edx:gt(-nt,-V)-gt(0,0),edy:Et(-nt,-V)-Et(0,0)};let Qt=Math.hypot(f.edx,f.edy)||1;f.edx/=Qt,f.edy/=Qt;let qt=Pt+(tt[e.src]-1)*8,te=Vt[e.src]+b.height/2;Vt[e.src]+=b.height,e.labelX=U?_.x+W+qt+4+e.labelW/2:_.x,e.labelY=U?_.y-u[e.src]/2+te:_.y+W+qt*.75+4+te}else{let _=e.route.slice(),X=Nt.of(e.src,At(_,0,y[e.src])),v=Nt.of(e.dst,At(_,_.length-3,y[e.dst]));for(let K=0;K<_.length;K+=3)_[K]+=I,_[K+1]+=I;Jt(_,0,e.src),Jt(_,_.length-3,e.dst);let U=r.get(s);if(U!==void 0&&_.length>=6){let K=y[U],G=C[e.src].kind===10,W=G?0:_.length-3,V=(K.dir==="TB"||K.dir==="LR")===G,nt=Ne(K.dir)?[_[W],K.y+I+(V?C[U].titleH-K.h/2:K.h/2),0]:[K.x+I+(V?-K.w/2:K.w/2),_[W+1],1];_=G?nt.concat(_):_.concat(nt)}f=ue(_,typeof w=="string"?w:void 0,0,Tt(H),X,v)}let A=he(f.d,[f.ex,f.ey],Ut,"",f.tokens);A===""&&(zt+=Se(f,"none",H));let D=L?`pele-note-edge" stroke="${A||"var(--_b)"}" stroke-dasharray="3 4`:A?`pele-transition" stroke="${A}`:"pele-transition";if(Ot+=`<g class="pele-edge ${D}" data-id="${xt(d.id)}"><path d="${f.d}"/>`+pe(H,f.ex,f.ey,f.edx,f.edy,A||"var(--_l)")+"</g>",b.width>0){let _=e.labelX+I,X=e.labelY+I;vt+=ge(d.id,b,_,X,"",J)}}let pt=ae(i.title,k,l,I,O,et,(wt?`<g class="pele-clusters">${wt}</g>`:"")+(mt?`<g class="pele-dividers" stroke-dasharray="4 4"${It}>${mt}</g>`:"")+me(zt)+(Ot?`<g class="pele-edges" fill="none" stroke="var(--_l)" stroke-linecap="round">${Ot}</g>`:"")+(vt?`<g class="pele-edge-labels" font-size="${t}">${vt}</g>`:"")+`<g class="pele-nodes">${Wt}${Bt}</g>`);return{svg:Ce("state",pt.width,pt.height,l,c,i,pt.content),width:pt.width,height:pt.height,links:jt}}function qe(i,n,c){let o=c.get(Math.round(i.y-i.h/2));if(o===void 0||n===0)return i.x;let m=i.x-i.w/2,w=n/2,l=i.x,t=-1;for(let k of[i.x,m+ut+w,m+i.w-ut-w]){let j=1/0;for(let I of o)I>m&&I<m+i.w&&(j=Math.min(j,Math.abs(I-k)-w));if(j>=6)return k;j>t+.5&&(t=j,l=k)}return l}var On={type:"state",math:!0,parse(i,n,c){let o=new yt;return c&&(o.title=c),Ie(i,o),o},render:xe};export{On as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{b as a}from"./O3ACPFEJ.js";import"./FTXIJQGB.js";import"./7OAKGN26.js";import"./7WLXJQOR.js";import"./YUPSMAUO.js";import"./LLLWOAQD.js";import"./PDMLSE6I.js";import"./NDSCUZ25.js";import"./VSWIZJ7B.js";import"./GUJTEFZK.js";import"./DKTLEL5E.js";import"./UWRPUF3N.js";import"./2CHDFZHC.js";import"./KHUP5TOH.js";import"./YWXUFHC7.js";export{a as flowchart};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{a as se}from"./5THPTBWS.js";import{b as Se,c as we}from"./DKTLEL5E.js";import{a as Ae,b as Re,c as De,e as Ne,m as Ce,n as Ee,o as ze,q as ke}from"./IU7WZTP6.js";import{e as be}from"./2CHDFZHC.js";import{b as z,c as ge,d as x,e as ye,i as $e,q as te,s as Te,t as ne,u as Me,v as ve}from"./KHUP5TOH.js";import{i as ee,p as xe}from"./YWXUFHC7.js";function Ze(s){let e=[],t=[];for(let r of s){let a=r.type==="Leaf",n={name:r.name,children:a?void 0:[]};for(n.classSelector=r.classSelector,r.cssCompiledStyles&&(n.cssCompiledStyles=r.cssCompiledStyles),a&&r.value!==void 0&&(n.value=r.value);t.length>0&&t[t.length-1].level>=r.level;)t.pop();t.length===0?e.push(n):t[t.length-1].node.children.push(n),a||t.push({node:n,level:r.level})}return e}function _e(s,e){let t=new Map;for(let a of s.TreemapRows){if(a.$type!=="ClassDefStatement")continue;let n=t.get(a.className);n||t.set(a.className,n=[]);let c=(a.styleText??"").replace(/\\,/g,"§§§").replace(/,/g,";").replace(/§§§/g,",");for(let f of c.split(";"))n.push(f)}let r=[];for(let a of s.TreemapRows){if(a.$type!=="TreemapRow")continue;let n=a.item,c=n.classSelector?t.get(n.classSelector):void 0;r.push({level:a.indent??0,name:n.name,type:n.$type,value:n.$type==="Leaf"?n.value:void 0,classSelector:n.classSelector,cssCompiledStyles:c&&c.length>0?c:void 0})}return{type:"treemap",title:s.title||e,accTitle:s.accTitle?s.accTitle.replace(/^\s+/g,""):void 0,accDescr:s.accDescr?s.accDescr.replace(/\n\s+/g,`
|
|
2
|
+
`):void 0,roots:Ze(r),classes:t}}var Be=[Re,De,Ne(String.raw`\w`),{name:"TREEMAP_KEYWORD",pattern:/treemap-beta|treemap/y},{name:"CLASS_DEF",pattern:/classDef\s+([a-zA-Z_][a-zA-Z0-9_]+)(?:\s+([^;\r\n]*))?(?:;)?/y},{name:"STYLE_SEPARATOR",pattern:/:::/y},{name:"SEPARATOR",pattern:/:/y},{name:"COMMA",pattern:/,/y},{name:"INDENTATION",pattern:/[ \t]{1,}/y},{name:"WS",pattern:/[ \t]+/y,hidden:!0},{name:"ML_COMMENT",pattern:/\%\%[^\n]*/y,hidden:!0},{name:"NL",pattern:/\r?\n/y,hidden:!0},{name:"ID2",pattern:/[a-zA-Z_][a-zA-Z0-9_]*/y},{name:"NUMBER2",pattern:/[0-9_\.\,]+/y},{name:"STRING2",pattern:/"[^"]*"|'[^']*'/y}],Ke=/classDef\s+([A-Z_a-z]\w+)(?:\s+([^\n\r;]*))?;?/;function Le(s){let e=new ke(Ae(s,Be,"treemap"),Be,"treemap"),t=e.kinds,r={$type:"Treemap",TreemapRows:[]},a=()=>e.accept(5)?e.expect(12):void 0;for(e.expect(3);e.kind!==-1;){let n=e.kind;if(n===0){r.accDescr=ze(e.take());continue}if(n===1){r.accTitle=Ee(e.take());continue}if(n===2){r.title=Ce(e.take());continue}n!==8&&n!==14&&n!==4&&e.fail("a node, a class definition, or a title");let c=n===8?e.take().length:void 0;if(e.kind===4){let u=Ke.exec(e.take()),o={$type:"ClassDefStatement",className:u[1]};u[2]&&(o.styleText=u[2]),c!==void 0&&(o.indent=c),r.TreemapRows.push(o);continue}let f=e.expect(14).slice(1,-1),i=t[e.i]===8?e.i+1:e.i,p;t[i]===6||t[i]===7?(e.i=i+1,e.accept(8),p={$type:"Leaf",name:f,value:parseFloat(e.expect(13).replace(/,/g,""))}):p={$type:"Section",name:f};let m=a();m!==void 0&&(p.classSelector=m);let y={$type:"TreemapRow",item:p};c!==void 0&&(y.indent=c),r.TreemapRows.push(y)}return r}var Fe=/^(?:.?[<>=^])?([-+( ])?(\$)?0?\d*(,)?(?:\.(\d+))?(~)?([a-zA-Z%])?$/;function Ie(s){let e="";for(let t=s.length;t>0;t-=3)e=s.slice(Math.max(0,t-3),t)+(e?","+e:"");return e}function Oe(s){let e=Fe.exec(s==="$0,0"?"$,":s)??Fe.exec(","),t=e[1]==="+",r=e[3]!==void 0,a=e[4]===void 0?void 0:Math.min(Number(e[4]),20),n=e[6]??"";return c=>{let f=Math.abs(c),i,p="";if(n==="f"?i=f.toFixed(a??6):n==="%"?(i=(f*100).toFixed(a??6),p="%"):n==="d"?i=Math.round(f).toFixed(0):n==="e"?i=f.toExponential(a??6):i=String(Number(f.toPrecision(Math.max(1,a??12)))),e[5]&&i.includes(".")&&!i.includes("e")&&(i=i.replace(/\.?0+$/,"")),r&&!i.includes("e")){let m=i.indexOf(".");i=m===-1?Ie(i):Ie(i.slice(0,m))+i.slice(m)}return(c<0?"-":t?"+":"")+(e[2]??"")+i+p}}function Pe(s,e,t){let r=s.children===void 0&&Number.isFinite(s.value)&&s.value>0?s.value:0;return{node:s,parent:e,series:t,value:r,children:[],headed:!1,header:0,x:0,y:0,w:0,h:0}}var W=(s,e,t)=>s>=e?Math.min(s,t):e;function Ye(s,e,t,r,a,n,c){let f=e,i=0;for(;i<s.length;){let p=a*n/f,m=Math.min(a,n),y=s[i].value*p,u=y,o=Math.max(m*m*u/(y*y),y*y/(m*m*u)),h=i+1;for(;h<s.length;){let T=s[h].value*p,g=y+T,d=Math.max(m*m*u/(g*g),g*g/(m*m*T));if(d>o)break;o=d,y=g,h++}let $=y/m,b=0;for(let T=i;T<h;T++){let g=s[T],d=T===h-1?m-b:g.value*p/$,v=a>=n?t:t+b,S=a>=n?r+b:r,_=a>=n?$:d,L=a>=n?d:$,j=Math.round(v+_-c/2)>Math.round(v+c/2)?c/2:0,l=Math.round(S+L-c/2)>Math.round(S+c/2)?c/2:0;g.x=Math.round(v+j),g.y=Math.round(S+l),g.w=Math.round(v+_-j)-g.x,g.h=Math.round(S+L-l)-g.y,b+=d,f-=g.value}a>=n?(t+=$,a-=$):(r+=$,n-=$),i=h}}function je(s,e,t,r){let a=s.map((u,o)=>Pe(u,void 0,o)),n=a.slice();for(let u=0;u<n.length;u++){let o=n[u];for(let h of o.node.children??[]){let $=Pe(h,o,o.series);o.children.push($),n.push($)}}for(let u=n.length-1;u>=0;u--){let o=n[u];o.parent&&(o.parent.value+=o.value)}let{gap:c,header:f,short:i,side:p}=r,m=[],y=(u,o,h,$,b)=>{let T=u.filter(d=>d.value>0).sort((d,v)=>v.value-d.value),g=0;for(let d of T)g+=d.value;if(!(T.length===0||!Number.isFinite(g))){$=Math.max(0,$),b=Math.max(0,b),$>0&&b>0&&Ye(T,g,o-c/2,h-c/2,$+c,b+c,c);for(let d of T){let v=W(d.x,o,o+$),S=W(d.y,h,h+b);d.w=W(d.x+d.w,v,o+$)-v,d.h=W(d.y+d.h,S,h+b)-S,d.x=v,d.y=S,m.push(d)}}};y(a,0,0,e,t);for(let u=0;u<m.length;u++){let o=m[u];if(o.children.length===0)continue;let h=o.h-f-p>=12?f:i;o.headed=o.w>Math.max(24,2*p)&&o.h-h-p>=8,o.header=o.headed?h:0,o.headed?y(o.children,o.x+p,o.y+h,o.w-2*p,o.h-h-p):y(o.children,o.x,o.y,o.w,o.h)}return m}var re=28,qe=18,oe=6,k=1.25,He=s=>z(ee(s).trim()).trim();function Ge(s){let e=0,t=s.slice();for(;t.length>0;){let r=t.pop();r.children!==void 0?t.push(...r.children):Number.isFinite(r.value)&&r.value>0&&e++}return e}function Ve(s,e){let t=Math.min(e.w,e.h)/4;return t<4?te(s).replace("rx:var(--_r)",`rx:min(var(--_r),${x(t)}px)`):te(s)}function Z(s,e,t,r,a){let n=s.treemap?.[e];return typeof n=="number"&&n>=r?Math.min(n,a):t}function We(s,e,t){let r=t.fontSize??16,a=Math.round(r*.875),n=Math.round(r*.75),c=Math.round(r*.5625),f=t.measurer??xe(t.fontFamily,t.fontFamilyMono),i=e.treemap??{},p=t.padding??Z(e,"diagramPadding",8,0,2e3),m=Math.round(we(t,Z(e,"nodeWidth",64,1,400)*10,200,2*p)),y=Math.round(Z(e,"nodeHeight",40,1,400)*10),u=i.showValues!==!1,o=Oe(typeof i.valueFormat=="string"?i.valueFormat:","),h=Math.min(1,Math.max(0,Math.log10(m*y/Math.max(1,Ge(s.roots))/800))),$=je(s.roots,m,y,{gap:Z(e,"padding",Math.round(2+2*h),0,200),header:re,short:qe,side:Math.round(3+3*h)}),b=$e(s.title,!1,f,r,Se(t),1),T=b.height>0?b.height+8:0,g=p+Math.max(0,(b.width-m)/2),d=p+T,v="",S="";for(let l of $){let N=l.node,w=Te(N.cssCompiledStyles??[]),ae=Me(l.series),F=g+l.x,H=d+l.y,K=ee(N.name).trim(),B=u?o(l.value):"",ie=`data-id="${ge(N.name)}">`,Y=He(N.name),ce=Y===""?[]:[Y];for(let M=l.parent;M!==void 0&&!M.headed;M=M.parent){let R=He(M.node.name);R!==""&&ce.unshift(R)}let q=ce.join(" › "),le=M=>q===""||M===K&&q===Y?"":`<title>${q}</title>`,me=`<rect x="${x(F)}" y="${x(H)}" width="${x(l.w)}" height="${x(l.h)}" fill="${ae}"`,C=w.fontSize,V=(w.bold?1:0)|(w.italic?2:0),I=be(w);if(N.children!==void 0){let M="",R;if(l.headed){let P=l.header<re,D=C??(P?n:a),U=C??n,J=l.w-2*oe-4,Q=B?f.width(B,U,V):0,fe=!P&&Q>0&&J-Q-12>=3*D,X=D*k<l.header?se(K,fe?J-Q-12:J,D,D,f,V|1):void 0,he=H+l.header/2+1;R=X?.text,X&&(M+=`<text x="${x(F+oe+2)}" y="${x(he+D*.35)}" font-weight="var(--_hw)"${P?` font-size="${D}"`:""}${I}${w.text}>${z(X.text)}</text>`),fe&&U*k<=re&&(M+=`<text class="pele-value" x="${x(F+l.w-oe-2)}" y="${x(he+U*.35)}" font-size="${n}" text-anchor="end"${I||' fill="var(--_m)"'}${w.text}>${z(B)}</text>`)}let E=/[";]fill:/.test(w.shape)?"":' fill-opacity="0.12"',O=l.headed?`${me}${Ve(`${E} stroke="${ae}"${w.shape}`,l)}/>`:`<rect x="${x(F)}" y="${x(H)}" width="${x(l.w)}" height="${x(l.h)}" fill="none"/>`;v+=`<g class="pele-node pele-section${ne(N.classSelector??"")}" ${ie}${le(R)}${O}${M}</g>`;continue}let G="",de=l.w-8,pe=C??c,ue=C===void 0?Math.min(r,Math.floor((l.h-4)/k)):C*k<=l.h-4?C:0,A=ue>=pe?se(K,de,ue,pe,f,V):void 0;if(A){let M=x(F+l.w/2),R=H+l.h/2,E=C??Math.max(c,Math.round(A.size*.8)),O=(A.size+E)*k;if(B&&O<=l.h-4&&f.width(B,E,V)<=de){let P=R-O/2+A.size*k/2,D=R+O/2-E*k/2;G=`<text x="${M}" y="${x(P+A.size*.35)}" font-size="${x(A.size)}"${I}${w.text}>${z(A.text)}</text><text class="pele-value" x="${M}" y="${x(D+E*.35)}" font-size="${x(E)}"${I}${w.text}>${z(B)}</text>`}else G=`<text x="${M}" y="${x(R+A.size*.35)}" font-size="${x(A.size)}"${I}${w.text}>${z(A.text)}</text>`}S+=`<g class="pele-node pele-leaf${ne(N.classSelector??"")}" ${ie}${le(A?.text)}${me}${Ve(w.shape,l)}/>${G}</g>`}let _=Math.ceil(Math.max(m,b.width)+2*p),L=Math.ceil(y+T+2*p),j=ye(b,_/2,p+b.height/2,' class="pele-title" font-weight="var(--_tw)"')+(v?`<g class="pele-sections" font-size="${a}">${v}</g>`:"")+(S?`<g class="pele-leaves" text-anchor="middle" fill="var(--_bg)">${S}</g>`:"");return{svg:ve("treemap",_,L,r,t,s,j),width:_,height:L,links:[]}}var gt={type:"treemap",parse:(s,e,t)=>_e(Le(s),t),render:We};export{gt as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as p,b as a}from"./KHUP5TOH.js";import{i as f}from"./YWXUFHC7.js";var c="about:blank",C=/^([^\w]*)(javascript|data|vbscript)/im,g=/&#(\w+)(^\w|;)?/g,m=/&(newline|tab);/gi,u=/[\u0000-\u001F\u007F-\u009F -\uD800-\uDFFF\uFFFE\uFFFF]/gimu,S=/^.+(:|:)/gim,E=/(\\|%5[cC])((%(6[eE]|72|74))|[nrt])/g;function R(e){try{return decodeURIComponent(e)}catch{return e}}function l(e,t){let n=t?R(e.trim()):e.trim(),i,o=0;do{if(++o>32)return;n=n.replace(u,"").replace(g,(s,r)=>String.fromCharCode(r)).replace(m,"").replace(u,"").replace(E,"").trim(),t&&(n=R(n)),i=n.match(u)||n.match(g)||n.match(m)||n.match(E)}while(i&&i.length>0);return n}function _(e){if(!e)return c;let t=l(e,!0),n=l(e,!1);if(!t||!n)return c;if(t[0]==="."||t[0]==="/")return n;let i=t.trimStart().match(S);if(!i)return n;let o=i[0].toLowerCase().trim();if(C.test(o))return c;let s=n.trimStart().replace(/\\/g,"/");if(o==="mailto:"||o.includes("://"))return s;if(o==="http:"||o==="https:"){let r;try{r=new URL(s)}catch{return c}return r.protocol=r.protocol.toLowerCase(),r.hostname=r.hostname.toLowerCase(),r.toString()}return s}function A(e){return _(f(e))}var w=["http","https","mailto","tel"],F=["http","https"],x=/^([a-z][a-z0-9+.-]*):/i,I=/^[\\/]{2}/;function h(e,t){if(I.test(e))return!1;let n=x.exec(e);return!n||t.includes(n[1].toLowerCase())}function L(e,t){let n=l(e,!0);return n!==void 0&&h(e,t)&&h(n,t)?e:void 0}function d(e,t){return t.links===!1?void 0:L(e,t.linkSchemes??w)}function N(e,t){return t.images===!1?void 0:L(e,t.imageSchemes??F)}var O=new RegExp(p.source,"gu");function H(e,t){let n=_(e);if(n===c||d(n,t)===void 0)return!1;let i=e.replace(O,"").replace(/[\t\n\r]/g,"").replace(/^[\x00-\x20]+/,"");return d(i,t)!==void 0}function U(e,t,n,i,o,s=""){let r=d(t,o);return r===void 0?e:(i.push({id:n,href:r,internal:!1}),`<a href="${a(r)}"${s}${T(o)}>${e}</a>`)}function T(e){let t=e.linkRel??"noopener";return t?` rel="${a(t)}"`:""}export{_ as a,A as b,d as c,N as d,H as e,U as f,T as g};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a}from"./WSTWNLCU.js";import"./G3MDBVQH.js";import"./7WLXJQOR.js";import"./YUPSMAUO.js";import"./LLLWOAQD.js";import"./PDMLSE6I.js";import"./NDSCUZ25.js";import"./VSWIZJ7B.js";import"./GUJTEFZK.js";import"./DKTLEL5E.js";import"./UWRPUF3N.js";import"./2CHDFZHC.js";import"./KHUP5TOH.js";import"./YWXUFHC7.js";export{a as classDiagram};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a}from"./42UK3TL6.js";import"./YUPSMAUO.js";import"./LLLWOAQD.js";import"./PDMLSE6I.js";import"./GUJTEFZK.js";import"./DKTLEL5E.js";import"./UWRPUF3N.js";import"./2CHDFZHC.js";import"./KHUP5TOH.js";import"./YWXUFHC7.js";export{a as usecase};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a}from"./VMTWYMKQ.js";import"./GUJTEFZK.js";import"./2CHDFZHC.js";import"./KHUP5TOH.js";import"./YWXUFHC7.js";export{a as venn};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import{a as et,b as tt}from"./FTXIJQGB.js";import{a as je}from"./7OAKGN26.js";import{a as nt}from"./7WLXJQOR.js";import{a as at,b as lt,c as ct,d as dt}from"./YUPSMAUO.js";import{a as _e,b as st,c as it,d as Re,e as rt}from"./LLLWOAQD.js";import{a as ot}from"./PDMLSE6I.js";import{b as Ee,d as qe,e as ze,f as Je,g as Ze}from"./NDSCUZ25.js";import{c as bt,d as Nt,f as It,g as _t,h as Rt,i as fe,j as we}from"./VSWIZJ7B.js";import{a as K,g as Ie}from"./GUJTEFZK.js";import{b as xe,d as Lt,e as yt,f as Ct}from"./DKTLEL5E.js";import{h as ft,i as ut,j as de,k as Ce,o as pt,q as ht,r as gt,s as Et,t as St}from"./UWRPUF3N.js";import{d as Le,e as ye}from"./2CHDFZHC.js";import{b as le,c as ce,d as U,e as ge,i as Se,p as At,q as mt,s as ke,t as De,v as Tt}from"./KHUP5TOH.js";import{a as oe,b as He,c as Ye,g as Ne,i as Xe,p as Qe}from"./YWXUFHC7.js";function Oe(o){return o==="markdown"||o==="string"||o==="text"?o:"markdown"}function kt(o){return o.startsWith('"')&&o.endsWith('"')?o.substring(1,o.length-1):o}function Bt(o,s){let c=0;for(let i=0;i<s.length;i++)s[i]===o&&c++;return c}function Vt(o){let s=o.trim(),c="arrow_open";switch(s[0]){case"<":c="arrow_point",s=s.slice(1);break;case"x":c="arrow_cross",s=s.slice(1);break;case"o":c="arrow_circle",s=s.slice(1);break}let i="normal";return s.includes("=")&&(i="thick"),s.includes(".")&&(i="dotted"),{type:c,stroke:i}}function Wt(o){let s=o.trim(),c=s.slice(0,-1),i="arrow_open";switch(s.slice(-1)){case"x":i="arrow_cross",s.startsWith("x")&&(i="double_"+i,c=c.slice(1));break;case">":i="arrow_point",s.startsWith("<")&&(i="double_"+i,c=c.slice(1));break;case"o":i="arrow_circle",s.startsWith("o")&&(i="double_"+i,c=c.slice(1));break}let u="normal",A=c.length-1;c.startsWith("=")&&(u="thick"),c.startsWith("~")&&(u="invisible");let n=Bt(".",c);return n&&(u="dotted",A=n),{type:i,stroke:u,length:A}}var Ae=class{type="flowchart";direction;nodes=new Map;edges=[];subgraphs=[];classes=new Map;tooltips=new Map;defaultEdgeStyle;defaultInterpolate;title;accTitle;accDescr;subgraphLookup=new Map;members=new Set;edgeById=new Map;pairCount=new Map;subCount=0;options;constructor(s={}){this.options=s}addVertex(s,c,i,u,A,n,e,N){if(!s||s.trim().length===0)return;let h;if(N!==void 0){let _=N.includes(`
|
|
2
|
+
`)?N+`
|
|
3
|
+
`:`{
|
|
4
|
+
`+N+`
|
|
5
|
+
}`,x;try{x=je(_)}catch(F){throw new oe(`Metadata of "${s}" is not valid YAML. ${F.message}`,"syntax",{type:"flowchart"})}h=x!==null&&typeof x=="object"&&!Array.isArray(x)?x:void 0}let D=this.subgraphLookup.get(s);if(D&&h){D.metadata={...D.metadata,...h};return}let w=this.edgeById.get(s);if(w){h?.animate!==void 0&&(w.animate=h.animate),h?.animation!==void 0&&(w.animation=h.animation),h?.curve!==void 0&&(w.interpolate=h.curve);return}let m=this.nodes.get(s);if(m===void 0&&(c===void 0&&i===void 0&&u!==void 0&&u!==null&&this.options.warn?.(`Style applied to unknown node "${s}". This may indicate a typo. The node will be created automatically.`),m={id:s,labelType:"text",styles:[],classes:[]},this.nodes.set(s,m)),c!==void 0?(m.labelType=c.type,m.text=kt(c.text.trim())):m.text===void 0&&(m.text=s),i!==void 0&&(m.type=i),u!=null)for(let _ of u)m.styles.push(_);if(A!=null)for(let _ of A)m.classes.push(_);if(n!==void 0&&(m.dir=n),m.props===void 0?m.props=e??{}:e!==void 0&&Object.assign(m.props,e),h===void 0)return;if(h.shape){let _=String(h.shape);if(_!==_.toLowerCase()||_.includes("_"))throw new oe(`No such shape: ${_}. Shape names should be lowercase.`,"semantic",{type:"flowchart"});if(!et(_))throw new oe(`No such shape: ${_}.`,"semantic",{type:"flowchart"});m.type=_}let C=typeof h.label=="string"?h.label:void 0;h.label&&(m.text=String(h.label),m.labelType=Oe(h.labelType)),h.icon&&(m.icon=String(h.icon),!C?.trim()&&m.text===s&&(m.text="")),h.form&&(m.form=String(h.form)),h.pos&&(m.pos=String(h.pos)),h.img&&(m.img=String(h.img),!C?.trim()&&m.text===s&&(m.text="")),h.constraint&&(m.constraint=String(h.constraint)),h.w&&(m.assetWidth=Number(h.w)),h.h&&(m.assetHeight=Number(h.h))}addSingleLink(s,c,i,u){let A={start:s,end:c,type:void 0,text:"",labelType:"text",classes:[],isUserDefinedId:!1,interpolate:this.defaultInterpolate},n=i?.text;n!==void 0&&(A.text=kt(n.text.trim()),A.labelType=Oe(n.type)),i!==void 0&&(A.type=i.type,A.stroke=i.stroke,A.length=i.length>10?10:i.length);let e=s+"\0"+c,N=this.pairCount.get(e)??0;u&&!this.edgeById.has(u)?(A.id=u,A.isUserDefinedId=!0):A.id=`L_${s}_${c}_${N===0?0:N+1}`;let h=this.options.maxEdges;if(h!==void 0&&this.edges.length>=h)throw new oe(`Edge limit exceeded. The limit is ${h}.`,"limit",{type:"flowchart"});this.edges.push(A),this.pairCount.set(e,N+1),this.edgeById.has(A.id)||this.edgeById.set(A.id,A)}addLink(s,c,i){let u=typeof i?.id=="string"?i.id.replace("@",""):void 0,A=s[s.length-1],n=c[0];for(let e of s)for(let N of c)this.addSingleLink(e,N,i,e===A&&N===n?u:void 0)}updateLinkInterpolate(s,c){for(let i of s)i==="default"?this.defaultInterpolate=c:this.edgeAt(i).interpolate=c}updateLink(s,c){for(let i of s){if(i==="default"){this.defaultEdgeStyle=c;continue}let u=this.edgeAt(i);u.style=c,c.length>0&&!c.some(A=>A?.startsWith("fill"))&&c.push("fill:none")}}edgeAt(s){let c=this.edges[Number(s)];if(c===void 0)throw new oe(`The index ${s} for linkStyle is out of bounds. Valid indices for linkStyle are between 0 and ${this.edges.length-1}. (Help: Ensure that the index is within the range of existing edges.)`,"semantic",{type:"flowchart"});return c}addClass(s,c){let i=c.join().replace(/\\,/g,"§§§").replace(/,/g,";").replace(/§§§/g,",").split(";");for(let u of s.split(",")){let A=this.classes.get(u);A===void 0&&(A={id:u,styles:[],textStyles:[]},this.classes.set(u,A));for(let n of i)n.includes("color")&&A.textStyles.push(n.replace("fill","bgFill")),A.styles.push(n)}}setDirection(s){let c=s.trim();c.includes("<")&&(c="RL"),c.includes("^")&&(c="BT"),c.includes(">")&&(c="LR"),c.includes("v")&&(c="TB"),c==="TD"&&(c="TB"),this.direction=c}setClass(s,c){for(let i of s.split(","))this.nodes.get(i)?.classes.push(c),this.edgeById.get(i)?.classes.push(c),this.subgraphLookup.get(i)?.classes.push(c)}setTooltip(s,c){if(c!==void 0)for(let i of s.split(","))this.tooltips.set(i,c)}setLink(s,c,i){let u=c.trim();for(let A of s.split(",")){let n=this.nodes.get(A);n!==void 0&&(n.link=u?Ee(u):void 0,n.linkTarget=i)}this.setClass(s,"clickable")}setClickEvent(s,c,i){this.setClass(s,"clickable")}setAccTitle(s){this.accTitle=s.replace(/^\s+/g,"")}setAccDescription(s){this.accDescr=s.replace(/\n\s+/g,`
|
|
6
|
+
`)}addSubGraph(s,c,i){let u=s?.text.trim(),A=i?.text??"";s!==void 0&&s===i&&/\s/.test(A)&&(u=void 0);let n=new Set,e=[],N;for(let m of c)if(typeof m=="string")m.trim()!==""&&!n.has(m)&&(n.add(m),e.push(m));else if(Array.isArray(m))for(let C of m)C.trim()!==""&&!n.has(C)&&(n.add(C),e.push(C));else N=m.value;N??=this.options.inheritDir?this.direction??this.options.direction:void 0,u??="subGraph"+this.subCount,A=A||"",this.subCount++;let h={id:u,nodes:e,title:A.trim(),classes:[],dir:N,labelType:Oe(i?.type)},D=this.members;h.nodes=e.filter(m=>!D.has(m)&&m!==u);for(let m of h.nodes)D.add(m);let w=this.subgraphLookup.get(u);if(w)for(let m of h.nodes)w.nodes.push(m);else this.subgraphs.push(h);return this.subgraphLookup.set(u,w??h),u}exists(s,c){for(let i of s)if(i.nodes.includes(c))return!0;return!1}makeUniq(s,c){let i=new Set;for(let u of c)for(let A of u.nodes)i.add(A);return{nodes:s.nodes.filter(u=>!i.has(u))}}destructLink(s,c){let i=Wt(s);if(!c)return i;let u=Vt(c);if(u.stroke!==i.stroke)return{type:"INVALID",stroke:"INVALID"};if(u.type==="arrow_open")u.type=i.type;else{if(u.type!==i.type)return{type:"INVALID",stroke:"INVALID"};u.type="double_"+u.type}return u.type==="double_arrow"&&(u.type="double_arrow_point"),u.length=i.length,u}subgraph(s){return this.subgraphLookup.get(s)}};var Pe=["$end","INVALID","acc_title","acc_title_value","acc_descr","acc_descr_value","acc_descr_multiline_value","SHAPE_DATA","CALLBACKNAME","CALLBACKARGS","MD_STR","STR","STYLE","DEFAULT","LINKSTYLE","INTERPOLATE","CLASSDEF","CLASS","HREF","CLICK","GRAPH","subgraph","end","LINK_TARGET","NODIR","DIR","direction_tb","direction_bt","direction_rl","direction_lr","direction_td","LINK_ID","NUM","BRKT","STYLE_SEPARATOR","COLON","AMP","SEMI","COMMA","MULT","LINK","START_LINK","EDGE_TEXT","-)","TEXT","(-","STADIUMEND","STADIUMSTART","SUBROUTINEEND","SUBROUTINESTART","VERTEX_WITH_PROPS_START","TAGEND","CYLINDEREND","CYLINDERSTART","DOUBLECIRCLEEND","DOUBLECIRCLESTART","TRAPEND","INVTRAPEND","TRAPSTART","INVTRAPSTART","TAGSTART","UP","SEP","DOWN","NODE_STRING","MINUS","UNICODE_TEXT","PIPE","PE","PS","SQE","SQS","DIAMOND_STOP","DIAMOND_START","NEWLINE","SPACE","EOF"];var Ot=new Uint8Array(128);for(let o of"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789!\"#$%&'*+.`?\\_/")Ot[o.charCodeAt(0)]=1;var Ht=/accTitle\s*:\s*/y,Yt=/accDescr\s*:\s*/y,Xt=/accDescr\s*\{\s*/y,jt=/call\s+/y,Qt=/click\s+/y,qt=/(?:\r?\n)*\s*\n/y,zt=/\s*(?:LR|RL|TB|BT|TD|BR)\b/y,Jt=/\s*[<>^]/y,Zt=/\s*v\b/y,en=[/.*direction\s+TB[^\n]*/y,/.*direction\s+BT[^\n]*/y,/.*direction\s+RL[^\n]*/y,/.*direction\s+LR[^\n]*/y,/.*direction\s+TD[^\n]*/y],Me=/[\n\r\u2028\u2029]/g,Dt=/\s*[xo<]?--+[-xo>]\s*/y,tn=/\s*[xo<]?--\s*/y,wt=/\s*[xo<]?==+[=xo>]\s*/y,nn=/\s*[xo<]?==\s*/y,ve=/\s*[xo<]?-?\.+-[xo>]?\s*/y,sn=/\s*[xo<]?-\.\s*/y,xt=/\s*~~~+\s*/y,rn=/(?:\r?\n)+/y,on=/[^\S\n\r]+/y,an=/\(\s*\)/y,ln=/\n\s*/g;function Pt(o){let s=o.length,c=[],i=[],u=[],A=[],n=0,e=0,N=!0,h=o.indexOf("direction"),D=o.indexOf("@"),w=-1,m=0,C=0,_=-1,x=-1,F=-1,f=(t,a,r)=>{c.push(t),i.push(o.slice(a,r)),u.push(a),e=r},b=t=>{A.push(n),n=t},d=()=>{A.length>0&&(n=A.pop())},g=(t,a)=>(t.lastIndex=a,t.test(o)?t.lastIndex:-1),T=t=>o.startsWith(t,e)&&!Ie(o.charCodeAt(e+t.length)),y=t=>{let a=t;if(t>=x&&t<=F)a=F;else if(K(o.charCodeAt(t))){for(;a<s&&K(o.charCodeAt(a));)a++;x=t,F=a}let r=o.charCodeAt(a);return r===120||r===111||r===60?o.charCodeAt(a+1):r},O=t=>{let a=t;if(t>=x&&t<=F)a=F;else if(K(o.charCodeAt(t))){for(;a<s&&K(o.charCodeAt(a));)a++;x=t,F=a}return o.charCodeAt(a)===126},P=()=>{o.charCodeAt(e+1)===96?(b(2),e+=2):(b(1),e++)},V=()=>{if(!O(e))return!1;let t=g(xt,e);return t<0?!1:(f(40,e,t),!0)},G=t=>{let a=o.charCodeAt(e+1);return t===40?(a===45?(b(8),f(45,e,e+2)):a===91?(b(7),f(47,e,e+2)):a===40&&o.charCodeAt(e+2)===40?(b(7),f(55,e,e+3)):(b(7),f(69,e,e+1)),!0):t===91?(a===91?(b(7),f(49,e,e+2)):a===40?(b(7),f(53,e,e+2)):a===47?(b(9),f(58,e,e+2)):a===92?(b(9),f(59,e,e+2)):(b(7),f(71,e,e+1)),!0):t===124?(b(7),f(67,e,e+1),!0):t===123?(b(7),f(73,e,e+1),!0):!1},te=t=>{N&&(N=!1,b(6)),f(20,e,e+t)},q=()=>{let t=e;for(;t<s;){let a=o.charCodeAt(t);if(a<128&&Ot[a]===1)t++;else if(a===45&&t+1<s){let r=o.charCodeAt(t+1);if(r===62||r===45||r===46)break;t++}else break}return t===e?!1:(f(64,e,t),!0)},J=t=>{let a=y(e),r;if(a===45){if((r=g(Dt,e))>=0)return f(40,e,r),!0;if((r=g(tn,e))>=0)return b(10),f(41,e,r),!0;if((r=g(ve,e))>=0)return f(40,e,r),!0;if((r=g(sn,e))>=0)return b(12),f(41,e,r),!0}else if(a===61){if((r=g(wt,e))>=0)return f(40,e,r),!0;if((r=g(nn,e))>=0)return b(11),f(41,e,r),!0}else if(a===46&&(r=g(ve,e))>=0)return f(40,e,r),!0;return t!==45&&t!==61&&t!==46&&V()},ae=t=>{let a;switch(t){case 97:if(o.startsWith("acc",e)){if((a=g(Ht,e))>=0)return b(3),f(2,e,a),!0;if((a=g(Yt,e))>=0)return b(4),f(4,e,a),!0;if((a=g(Xt,e))>=0)return b(5),e=a,!0}break;case 64:if(o.charCodeAt(e+1)===123)return b(16),c.push(7),i.push(""),u.push(e),e+=2,!0;break;case 99:if((a=g(jt,e))>=0)return b(14),e=a,!0;if(T("classDef"))return f(16,e,e+8),!0;if(T("class"))return f(17,e,e+5),!0;if((a=g(Qt,e))>=0)return b(13),e=a,!0;break;case 34:return P(),!0;case 115:if(T("style"))return f(12,e,e+5),!0;if(T("swimlane-beta"))return te(13),!0;if(T("subgraph"))return f(21,e,e+8),!0;break;case 100:if(T("default"))return f(13,e,e+7),!0;break;case 108:if(T("linkStyle"))return f(14,e,e+9),!0;break;case 105:if(T("interpolate"))return f(15,e,e+11),!0;break;case 104:if(o.startsWith("href",e)&&K(o.charCodeAt(e+4)))return f(18,e,e+5),!0;break;case 102:if(T("flowchart-elk"))return te(13),!0;if(T("flowchart"))return te(9),!0;break;case 103:if(T("graph"))return te(5),!0;break;case 101:if(T("end")){for(a=e+3;a<s&&K(o.charCodeAt(a));)a++;return f(22,e,a),!0}break;case 95:if(T("_self"))return f(23,e,e+5),!0;if(T("_blank"))return f(23,e,e+6),!0;if(T("_parent"))return f(23,e,e+7),!0;if(T("_top"))return f(23,e,e+4),!0;break}if(h!==-1&&e>=m&&(h<e&&(h=o.indexOf("direction",e)),h!==-1&&(w<e&&(Me.lastIndex=e,w=Me.test(o)?Me.lastIndex-1:s),h<w))){for(let r=0;r<5;r++)if((a=g(en[r],e))>=0)return f(26+r,e,a),!0;m=w}if(D!==-1&&t!==34&&!K(t)){if(e>=C){D<e&&(D=o.indexOf("@",e));let r=e;for(;r<s;){let E=o.charCodeAt(r);if(E===34||K(E))break;r++}if(C=r,_=-1,D!==-1&&D<r)for(let E=Math.min(r,s-1)-1;E>=D;E--){if(o.charCodeAt(E)!==64)continue;let I=o.charCodeAt(E+1);if(I!==123&&I!==34){_=E;break}}}if(_>e)return f(31,e,_+1),!0}if(t>=48&&t<=57){let r=e+1;for(;r<s;){let E=o.charCodeAt(r);if(E<48||E>57)break;r++}return f(32,e,r),!0}switch(t){case 35:return f(33,e,e+1),!0;case 58:return o.charCodeAt(e+1)===58&&o.charCodeAt(e+2)===58?f(34,e,e+3):f(35,e,e+1),!0;case 38:return f(36,e,e+1),!0;case 59:return f(37,e,e+1),!0;case 44:return f(38,e,e+1),!0;case 42:return f(39,e,e+1),!0;case 120:case 111:return J(t)||q();case 60:return J(t)||f(60,e,e+1),!0;case 45:return J(t)||q()||f(65,e,e+1),!0;case 61:return J(t);case 46:return J(t)||q();case 126:return V();case 40:return G(t);case 91:return o.charCodeAt(e+1)===124?(f(50,e,e+2),!0):G(t);case 124:case 123:return G(t);case 62:return b(7),f(51,e,e+1),!0;case 94:return f(61,e,e+1),!0;case 92:return o.charCodeAt(e+1)===124?(f(62,e,e+2),!0):q();case 118:return Ie(o.charCodeAt(e+1))?q():(f(63,e,e+1),!0)}return K(t)?J(t)?!0:(a=g(rn,e))>=0?(f(74,e,a),!0):(a=g(on,e))>=0?(f(75,e,a),!0):!1:t<128?q():nt(t)?(f(66,e,e+1),!0):!1},l=(t,a,r,E)=>{if(t===34)return P(),!0;let I=y(e);if(I===r||I===E){let Y=g(a,e);if(Y>=0)return d(),f(40,e,Y),!0}if(t===r&&(r!==45||o.charCodeAt(e+1)===45))return!1;let z=e+1;for(;z<s;){let Y=o.charCodeAt(z);if(Y===34)break;if(Y===r){if(r!==45||o.charCodeAt(z+1)===45)break}else if(Y===120||Y===111||Y===60||Y===E||K(Y)){let re=y(z);if((re===r||re===E)&&g(a,z)>=0)break}z++}return f(42,e,z),!0};e:for(;;){if(e>=s){let r=-1;switch(n){case 0:r=76;break;case 3:r=3;break;case 4:r=5;break;case 5:r=6;break;case 13:r=19;break;case 14:r=8;break;case 15:r=9;break}r!==-1&&f(r,s,s);break}let t=o.charCodeAt(e),a=!0;switch(n){case 0:a=ae(t);break;case 1:if(t===34)o.charCodeAt(e+1)===96?(b(2),e+=2):(d(),e++);else{let r=o.indexOf('"',e);f(11,e,r===-1?s:r)}break;case 2:if(t===96)o.charCodeAt(e+1)===34?(d(),e+=2):a=!1;else if(t===34)P();else{let r=e+1;for(;r<s;){let E=o.charCodeAt(r);if(E===96||E===34)break;r++}f(10,e,r)}break;case 3:case 4:{let r=o.indexOf(`
|
|
7
|
+
`,e);r===-1&&(r=s);let E=n===3?3:5;d(),f(E,e,r);break}case 5:if(t===125)d(),e++;else{let r=o.indexOf("}",e);r===-1&&(r=s),f(6,e,r)}break;case 6:{let r;t===34?P():(r=g(qt,e))>=0?(d(),f(24,e,r)):(r=g(zt,e))>=0||(r=g(Jt,e))>=0||(r=g(Zt,e))>=0?(d(),f(25,e,r)):a=V()||G(t);break}case 7:{let r=o.charCodeAt(e+1);switch(t){case 34:P();break;case 40:case 91:case 123:G(t);break;case 93:d(),r===41?f(46,e,e+2):r===93?f(48,e,e+2):f(70,e,e+1);break;case 41:d(),r===93?f(52,e,e+2):r===41&&o.charCodeAt(e+2)===41?f(54,e,e+3):f(68,e,e+1);break;case 124:d(),f(67,e,e+1);break;case 125:d(),f(72,e,e+1);break;default:{if((t===126||K(t))&&V())break;let E=e+1;for(;E<s;){let I=o.charCodeAt(E);if(I===91||I===93||I===40||I===41||I===123||I===125||I===124||I===34)break;E++}f(44,e,E)}}break}case 8:{let r=o.charCodeAt(e+1);if(t===34)P();else{if((t===126||K(t))&&V())break;if((t===45||t===47||t===41)&&r===41)d(),f(43,e,e+2);else if(t===40||t===91||t===123)G(t);else if(t===41||t===93||t===125)a=!1;else{let E=e+1;for(;E<s;){let I=o.charCodeAt(E);if(I===34||I===40||I===41||I===91||I===93||I===123||I===125||(I===45||I===47)&&o.charCodeAt(E+1)===41||(I===126||K(I))&&O(E)&&g(xt,E)>=0)break;E++}f(44,e,E)}}break}case 9:{let r=o.charCodeAt(e+1);if(t===34){P();break}if((t===126||K(t))&&V())break;switch(t){case 40:r===45||r===91||r===40&&o.charCodeAt(e+2)===40?G(t):r===93?(d(),f(56,e,e+2)):G(t);break;case 91:case 123:G(t);break;case 92:r===93?(d(),f(56,e,e+2)):f(44,e,e+1);break;case 47:r===93?(d(),f(57,e,e+2)):f(44,e,e+1);break;case 93:case 41:r===93?(d(),f(56,e,e+2)):a=!1;break;case 125:a=!1;break;default:{if((t===63||t===61)&&r===93){d(),f(56,e,e+2);break}let E=e+1;for(;E<s;){let I=o.charCodeAt(E);if(I===92||I===91||I===93||I===40||I===41||I===123||I===125||I===47)break;E++}f(44,e,E)}}break}case 10:a=l(t,Dt,45,-1);break;case 11:a=l(t,wt,61,-1);break;case 12:a=l(t,ve,46,45);break;case 13:if(t===34)P();else if(K(t))d(),e++;else{let r=e+1;for(;r<s&&!K(o.charCodeAt(r));)r++;f(19,e,r)}break;case 14:if(t===40){let r=g(an,e);d(),r>=0?e=r:(b(15),e++)}else{let r=o.indexOf("(",e);r===-1&&(r=s),f(8,e,r)}break;case 15:if(t===41)d(),e++;else{let r=o.indexOf(")",e);r===-1&&(r=s),f(9,e,r)}break;case 16:if(t===34)b(17),f(7,e,e+1);else if(t===125)d(),e++;else if(t===94)a=!1;else{let r=e+1;for(;r<s;){let E=o.charCodeAt(r);if(E===125||E===94||E===34)break;r++}f(7,e,r)}break;case 17:if(t===34)d(),f(7,e,e+1);else{let r=o.indexOf('"',e);r===-1&&(r=s),c.push(7),i.push(o.slice(e,r).replace(ln,"<br/>")),u.push(e),e=r}break}if(!a)return c.push(1),i.push(""),u.push(e),{types:c,texts:i,starts:u};continue e}return c.push(0),i.push(""),u.push(s),{types:c,texts:i,starts:u}}var me=new Uint8Array(77);for(let o of[32,64,63,65,13,38,35,36,33,39,66])me[o]=1;var Fe=new Uint8Array(77);for(let o of[32,66,64,25,63,65,38,35,36,33,39])Fe[o]=1;var Ge=new Uint8Array(77);for(let o of[32,64,75,65,36,66,35,39,33,12,14,16,17,19,20,25,21,22,63,61,41])Ge[o]=1;var Ue=new Uint8Array(77);for(let o of[32,64,35,75,33,12])Ue[o]=1;var Mt="'UNICODE_TEXT', 'TEXT', 'TAGSTART'",ue=[],vt=/}\s*\n/g;function Gt(o,s){let c=o.includes("}")?o.replace(vt,`}
|
|
8
|
+
`):o,{types:i,texts:u,starts:A}=Pt(c),n=0,e,N=l=>{let t=i[n],a=c===o?A[n]:Ye([He(o,vt,2)],A[n]);throw t===1?Ne("flowchart",o,a,"",!0):Ne("flowchart",o,a,`Expecting ${l}, got '${Pe[t]}'`)},h=(l,t="")=>(i[n]!==l&&N(`'${Pe[l]}'${t?", "+t:""}`),u[n++]),D=()=>{let l=i[n];l!==74&&l!==37&&l!==76&&N("'SEMI', 'NEWLINE', 'EOF'"),n++},w=()=>{me[i[n]]===0&&N("'NODE_STRING'");let l=u[n++];for(;me[i[n]]===1;)l+=u[n++];return l},m=()=>{Fe[i[n]]===0&&N("'NODE_STRING'");let l=u[n++];for(;Fe[i[n]]===1;)l+=u[n++];return l},C=()=>{let l=i[n],t;if(l===11)t="string";else if(l===10)t="markdown";else if(l===44||l===60||l===51||l===66)t="text";else return N(`${Mt}, 'TAGEND', 'STR', 'MD_STR'`);let a=u[n++];for(;;){let r=i[n];if(r!==44&&r!==60&&r!==51&&r!==66)break;a+=u[n++]}return{text:a,type:t}},_=l=>{h(l,Mt)},x=()=>{let l=i[n],t;if(l===11)t="string";else if(l===10)t="markdown";else if(l===42||l===66)t="text";else return N("'EDGE_TEXT', 'STR', 'MD_STR'");let a=u[n++];for(;i[n]===42||i[n]===66;)a+=u[n++];return{text:a,type:t}},F=()=>{let l=i[n],t;if(l===11)t="text";else if(l===10)t="markdown";else if(Ge[l]===1)t="text";else return N("'NODE_STRING', 'STR', 'MD_STR'");let a=u[n++];for(;Ge[i[n]]===1;)a+=u[n++];return{text:a,type:t}},f=()=>{let l=u[n++];for(;i[n]===7;)l+=u[n++];return l},b=()=>{let l=w(),t;switch(i[n]){case 71:n++,t=C(),_(70),s.addVertex(l,t,"square");break;case 55:n++,t=C(),_(54),s.addVertex(l,t,"doublecircle");break;case 69:n++,i[n]===69?(n++,t=C(),_(68),h(68),s.addVertex(l,t,"circle")):(t=C(),_(68),s.addVertex(l,t,"round"));break;case 45:n++,t=C(),_(43),s.addVertex(l,t,"ellipse");break;case 47:n++,t=C(),_(46),s.addVertex(l,t,"stadium");break;case 49:n++,t=C(),_(48),s.addVertex(l,t,"subroutine");break;case 50:{n++;let a=h(64);h(35);let r=h(64);h(67),t=C(),_(70),s.addVertex(l,t,"rect",void 0,void 0,void 0,{[a]:r});break}case 53:n++,t=C(),_(52),s.addVertex(l,t,"cylinder");break;case 73:n++,i[n]===73?(n++,t=C(),_(72),h(72),s.addVertex(l,t,"hexagon")):(t=C(),_(72),s.addVertex(l,t,"diamond"));break;case 51:n++,t=C(),_(70),s.addVertex(l,t,"odd");break;case 58:n++,t=C(),i[n]===57?(n++,s.addVertex(l,t,"lean_right")):(_(56),s.addVertex(l,t,"trapezoid"));break;case 59:n++,t=C(),i[n]===56?(n++,s.addVertex(l,t,"lean_left")):(_(57),s.addVertex(l,t,"inv_trapezoid"));break;default:s.addVertex(l)}return l},d=()=>{let l=b();return i[n]===34&&(n++,s.setClass(l,w())),l},g=()=>{let l=[d()];for(e=void 0;;){let t=i[n]===7?f():void 0;if(i[n]!==75)return e=t,l;do n++;while(i[n]===75);if(i[n]!==36)return t!==void 0&&N("'AMP'"),l;n++,i[n]!==75&&N("'SPACE'");do n++;while(i[n]===75);let a=d();t!==void 0&&s.addVertex(l[l.length-1],void 0,void 0,void 0,void 0,void 0,void 0,t),l.push(a)}},T=()=>{let l;if(i[n]===31&&(l=u[n++]),i[n]===40){let t=s.destructLink(u[n++]);return l!==void 0&&(t.id=l),i[n]===67&&(n++,t.text=C(),_(67),i[n]===75&&n++),t}if(i[n]===41){let t=u[n++],a=x(),r=h(40,"'EDGE_TEXT'"),E=s.destructLink(r,t);return E.text=a,l!==void 0&&(E.id=l),E}return N("'LINK', 'START_LINK'")},y=l=>{let t=g();e!==void 0&&s.addVertex(t[t.length-1],void 0,void 0,void 0,void 0,void 0,void 0,e);let a=t;for(;;){let r=i[n];if(r!==40&&r!==41&&r!==31)return a;let E=T(),I=g();e!==void 0&&s.addVertex(I[I.length-1],void 0,void 0,void 0,void 0,void 0,void 0,e),s.addLink(t,I,E),l&&(a=I.concat(a)),t=I}},O=()=>{Ue[i[n]]===0&&N("'NODE_STRING', 'NUM', 'COLON', 'BRKT'");let l=u[n++];for(;Ue[i[n]]===1;)l+=u[n++];return l},P=()=>{let l=[O()];for(;i[n]===38;)n++,l.push(O());return l},V=()=>{n++,h(75);let l;if(i[n]===13)l=[u[n++]];else for(l=[h(32,"'DEFAULT'")];i[n]===38;)n++,l.push(h(32));if(h(75),i[n]!==15){s.updateLink(l,P());return}n++,h(75);let t=m();if(i[n]===75){n++;let a=P();s.updateLinkInterpolate(l,t),s.updateLink(l,a)}else s.updateLinkInterpolate(l,t)},G=(l,t)=>{if(i[n]!==75){s.setLink(l,t);return}if(n++,i[n]===23){s.setLink(l,t,u[n++]);return}let a=h(11,"'LINK_TARGET'");i[n]===75?(n++,s.setLink(l,t,h(23))):s.setLink(l,t),s.setTooltip(l,a)},te=()=>{let l=u[n++];switch(i[n]){case 8:{let t=u[n++],a=i[n]===9,r=a?u[n++]:void 0,E;i[n]===75&&(n++,E=h(11)),a?s.setClickEvent(l,t,r):s.setClickEvent(l,t),E!==void 0&&s.setTooltip(l,E);return}case 18:n++,G(l,h(11));return;case 11:G(l,u[n++]);return;default:{let t=m();if(i[n]===75){n++;let a=h(11);s.setClickEvent(l,t),s.setTooltip(l,a)}else s.setClickEvent(l,t)}}},q=()=>{n++;let l=i[n];if(l===74||l===37||l===76)return n++,{id:void 0,title:void 0,list:[],collect:!1};h(75,"'SEMI', 'NEWLINE', 'EOF'");let t=F(),a=t;return i[n]===71&&(n++,a=C(),_(70)),l=i[n],l!==74&&l!==37&&l!==76&&N("'SEMI', 'NEWLINE', 'EOF', 'SQS'"),n++,{id:t,title:a,list:[],collect:!1}},J=l=>{let t=i[n];switch(t){case 12:{n++,h(75);let a=w();return h(75),s.addVertex(a,void 0,void 0,P()),D(),ue}case 14:return V(),D(),ue;case 16:{n++,h(75);let a=w();return h(75),s.addClass(a,P()),D(),ue}case 17:{n++,h(75);let a=w();return h(75),s.setClass(a,w()),D(),ue}case 19:return te(),D(),ue;case 26:case 27:case 28:case 29:case 30:return n++,{stmt:"dir",value:cn[t-26]};case 2:{n++;let a=h(3).trim();return s.setAccTitle(a),a}case 4:{n++;let a=h(5).trim();return s.setAccDescription(a),a}case 6:{let a=u[n++].trim();return s.setAccDescription(a),a}default:{me[t]===0&&N(Ft);let a=y(l);return D(),a}}},ae=()=>{let l=[],t=[],a=!1;for(;;){let r=i[n];if(r===0)break;if(r===22){let E=l.pop();if(E===void 0)break;n++;let I=s.addSubGraph(E.id,t,E.title);t=E.list,a=E.collect,a&&t.push(I)}else if(r===37||r===74||r===75||r===76)a&&t.push(u[n]),n++;else if(r===21){let E=q();E.list=t,E.collect=a,l.push(E),t=[],a=!0}else{let E=J(a);a&&(!Array.isArray(E)||E.length>0)&&t.push(E)}}l.length>0&&N("'end'")};for(;i[n]===75||i[n]===74;)n++;if(h(20,"'SPACE', 'NEWLINE'"),i[n]===24)n++,s.setDirection("TB");else{let l=h(25,"'NODIR'"),t=i[n];if(t===75){do n++;while(i[n]===75);t=i[n],t!==74&&N("'NEWLINE', 'SPACE'")}else t!==37&&t!==74&&N("'SEMI', 'NEWLINE', 'SPACE'");n++,s.setDirection(l)}ae(),i[n]!==0&&N(Ft)}var cn=["TB","BT","RL","LR","TD"],Ft="'SEMI', 'NEWLINE', 'SPACE', 'EOF', 'subgraph', 'acc_title', 'acc_descr', 'acc_descr_multiline_value', 'STYLE', 'LINKSTYLE', 'CLASSDEF', 'CLASS', 'CLICK', 'NODE_STRING'";function dn(o){if(o.img)return"imageSquare";if(o.icon)return o.form==="circle"?"iconCircle":o.form==="square"?"iconSquare":o.form==="rounded"?"iconRounded":"icon";switch(o.type){case"square":case void 0:return"squareRect";case"round":return"roundedRect";default:return o.type}}function fn(o){switch(o){case"arrow_point":case"arrow_circle":case"arrow_cross":return["none",o];case"double_arrow_point":case"double_arrow_circle":case"double_arrow_cross":{let s=o.replace("double_","");return[s,s]}}return["none","arrow_point"]}function Ut(o,s){let c=[],i=[],u=o.subgraphs,A=d=>{let g=[];for(let T of d){let y=o.classes.get(T);if(y!==void 0){for(let O of y.styles)g.push(O.trim());for(let O of y.textStyles)g.push(O.trim())}}return g},n=new Map;for(let d of u)for(let g of d.nodes)o.subgraph(g)&&n.set(g,d.id);let e=new Map,N=new Map;for(let d of u){let g=n.get(d.id);if(g===void 0)continue;let T=N.get(g);T?T.push(d.id):N.set(g,[d.id])}let h=0;for(let d of u){if(n.has(d.id))continue;let g=[d.id];for(;g.length>0;){let T=g.pop();if(e.has(T))continue;e.set(T,h++);let y=N.get(T);if(y)for(let O=y.length-1;O>=0;O--)g.push(y[O])}}let D=d=>o.subgraph(d)?.metadata?.view==="collapsed",w=!1;for(let d of u)d.metadata?.view==="collapsed"&&(w=!0);let m=new Map,C=d=>{let g=[],T=new Set,y=d;for(;y!==void 0&&!m.has(y)&&!T.has(y);)T.add(y),g.push(y),y=n.get(y);let O=y!==void 0?m.get(y):void 0;for(let P=g.length-1;P>=0;P--)O===void 0&&D(g[P])&&(O=g[P]),m.set(g[P],O);return O},_=new Set,x=new Map;for(let d of w?u:[]){let g=C(d.id);if(g!==void 0){d.id!==g&&(_.add(d.id),x.set(d.id,g));for(let T of d.nodes)T!==g&&(_.add(T),x.set(T,g))}}let F=new Map,f=new Set;for(let d=u.length-1;d>=0;d--){let g=u[d];if(!_.has(g.id)){g.nodes.length>0&&f.add(g.id);for(let T of g.nodes)F.set(T,g.id)}}let b=new Map;for(let d=u.length-1;d>=0;d--){let g=u[d];if(_.has(g.id))continue;let T=g.metadata?.view==="collapsed",y={id:g.id,label:g.title,labelType:g.labelType,parentId:F.get(g.id),cssStyles:[],cssCompiledStyles:A(g.classes),cssClasses:g.classes.join(" "),shape:T?"collapsedGroup":"rect",dir:g.dir,isGroup:!T,colorIndex:e.get(g.id)};T||(y.metadata=g.metadata),c.push(y),b.set(g.id,y)}for(let d of o.nodes.values()){if(_.has(d.id))continue;let g=b.get(d.id);if(g){g.cssStyles=d.styles,g.cssCompiledStyles=A(d.classes),g.cssClasses=d.classes.join(" ");continue}let T=f.has(d.id),y={id:d.id,label:d.text,labelType:d.labelType,parentId:F.get(d.id),cssStyles:d.styles,cssCompiledStyles:A(["default","node",...d.classes]),cssClasses:"default "+d.classes.join(" "),dir:d.dir,link:d.link,linkTarget:d.linkTarget,tooltip:o.tooltips.get(d.id),icon:d.icon,pos:d.pos,img:d.img,assetWidth:d.assetWidth,assetHeight:d.assetHeight,constraint:d.constraint,isGroup:T,shape:T?"rect":dn(d)};c.push(y)}return o.edges.forEach((d,g)=>{let T=x.get(d.start)??d.start,y=x.get(d.end)??d.end;if(T===y&&(x.has(d.start)||x.has(d.end)))return;let[O,P]=fn(d.type),V=[...o.defaultEdgeStyle??[]];d.style&&V.push(...d.style);let G=d.stroke==="invisible"||d.type==="arrow_open";i.push({id:d.id||`L_${T}_${y}_${g}`,isUserDefinedId:d.isUserDefinedId,start:T,end:y,type:d.type??"normal",label:d.text,labelType:d.labelType,thickness:d.stroke,pattern:d.stroke,minlen:d.length,classes:d.stroke==="invisible"?"":"edge-thickness-normal edge-pattern-solid flowchart-link",arrowTypeStart:G?"none":O,arrowTypeEnd:G?"none":P,cssCompiledStyles:A(d.classes),style:V,animate:d.animate,animation:d.animation,curve:d.interpolate||o.defaultInterpolate||s})}),{nodes:c,edges:i}}var un=40,pn=16,hn=48,$t=20,$e=26,Ke=' fill="var(--_s)" stroke="var(--_b)"',gn=' stroke="var(--_b)"';function Be(o,s,c){let i=o[s];return typeof i=="number"&&i>0?Math.min(i,2e3):c}function pe(o,s){return o!==void 0&&o>0&&o<=4e3?o:s}function Kt(o,s,c,i){let u=A=>Ct(c,n=>En(o,s,c,i,A,n));return yt(o.direction)?Lt(c,u):u(!1)}function En(o,s,c,i,u,A){let n=A?12:$t,e=i?s[i.type]:void 0,N=typeof e=="object"&&e!==null&&!Array.isArray(e)?e:s.flowchart??{},h=Ut(o,typeof N.curve=="string"?N.curve:void 0);i?.prepare(h);let D=c.fontSize??16,w=Math.round(D*.875),m=c.measurer??Qe(c.fontFamily,c.fontFamilyMono),C=Math.min(Be(N,"wrappingWidth",200),i&&A?100:1/0),_=c.padding??8,x=c.icons,F=new Map,f=[],b=[];h.nodes.forEach((S,p)=>F.set(S.id,p));for(let S of h.nodes){let p=ke(S.cssStyles.length>0?S.cssCompiledStyles.concat(S.cssStyles):S.cssCompiledStyles),R=(p.bold?1:0)|(p.italic?2:0),L=S.labelType==="markdown",H=p.fontSize??D,W,v;if(S.isGroup){let k=Se(S.label,L,m,H,i&&A?Math.max(80,xe(c)/2):4e3,R);W={node:S,style:p,label:k,shape:"group",w:0,h:0,dy:0,loops:0},v=Re(0,0),v.isGroup=!0,v.dir=S.dir?_e(S.dir):void 0,v.padX=n,v.padTop=k.height>0?k.height+16:$t,v.padBottom=n,v.minW=k.width+2*n-12}else{let k=tt(S.shape),ie=S.img||S.icon||_t(k)?S.label:void 0,B=Se(ie,L,m,H,C,R),X,ne,$=0;if(S.img||S.icon){let j=S.img?80:48,se=pe(S.assetWidth,j),M=pe(S.assetHeight,j);X=Math.max(se,B.width+8),ne=M+(B.height>0?B.height+6:0),$=S.pos==="t"?-M/2:M/2,B.height===0&&($=0)}else{let j=bt(k,B.width,B.height);X=j.w,ne=j.h,$=j.dy}W={node:S,style:p,label:B,shape:k,w:X,h:ne,dy:$,loops:0},v=Re(X,ne)}v.seq=f.length,f.push(W),b.push(v)}h.nodes.forEach((S,p)=>{b[p].parent=S.parentId!==void 0?F.get(S.parentId)??-1:-1}),st(b,h.edges.map(S=>[F.get(S.start)??-1,F.get(S.end)??-1]));let d=u?"TB":_e(o.direction),g=S=>{let p;for(let R=b[S].parent,L=0;R>=0&&p===void 0&&L<1e4;R=b[R].parent,L++)p=b[R].dir;return p??=d,p==="LR"||p==="RL"};f.forEach((S,p)=>{S.node.isGroup?b[p].span=1/0:!S.node.img&&!S.node.icon&&(b[p].span=It(S.shape,S.w,S.h,g(p)))});let T=[],y=[],O=[];for(let S of h.edges){let p=F.get(S.start),R=F.get(S.end);if(p===void 0||R===void 0)continue;let L=Se(S.label,S.labelType==="markdown",m,w,C);p===R&&(f[p].loops++,g(p)?b[p].h+=2*($e+(L.height>0?L.height+8:0)):b[p].w+=2*($e+(L.width>0?L.width+12:0))),O.push(S),y.push(L),T.push({src:p,dst:R,minlen:S.minlen??1,labelW:L.width>0?L.width+12:0,labelH:L.height>0?L.height+4:0,route:[],labelX:0,labelY:0})}let P={nodeSep:Be(N,"nodeSpacing",un)*(A?.5:1),edgeSep:pn,rankSep:Be(N,"rankSpacing",hn)*(A?.75:1),portSep:20,tracks:typeof N.curve=="string"&&/^step/.test(N.curve),straight:N.curve==="linear",headRoom:de("arrow_point")},V=i?i.layout(b,T,d,P,A):rt(b,T,d,P),G=ot(o.title,m,D,A?xe(c):4e3),te=G.height>0?G.height+12:0,q=Math.max(V.width,G.width),J=_+(q-V.width)/2,ae=_+te;it(b,T,J,ae);let l=Math.ceil(q+2*_),t=Math.ceil(V.height+te+2*_),a=[],r=new Map,E=!1;for(let S of b)S.isGroup&&(E=!0);if(E)for(let S of T)at(r,S.route);let I="",z="",Y="",re=[];for(let S=0;S<f.length;S++){let p=f[S],R=b[S],L=p.node,H=R.x,W=R.y,v=De(L.cssClasses.replace(/^default\s?/,"")),k=ce(L.id);if(R.isGroup&&i?.drawGroup&&R.parent<0){Le(p.style.shape)&&i.filledBox&&re.push({box:i.filledBox(R,d),shape:p.style.shape}),I+=i.drawGroup(R,p.label,p.style,v,k,d,x);continue}if(R.isGroup){Le(p.style.shape)&&re.push({box:[H-R.w/2,W-R.h/2,H+R.w/2,W+R.h/2],shape:p.style.shape});let M=lt(R,p.label.width,r,n),Q=W-R.h/2+8+p.label.height/2,Z=ct(R,p.label.width,M,r),ee=` class="pele-cluster-label"${Z?' fill="var(--_m)"':ye(p.style,"var(--_m)")}${p.style.text}`;Z&&(z+=dt(p.label,M,Q,ee,k,b,S,x)),I+=`<g class="pele-cluster${v}" data-id="${k}"><rect x="${U(H-R.w/2)}" y="${U(W-R.h/2)}" width="${U(R.w)}" height="${U(R.h)}" fill="var(--_a)"${At(p.style.shape)?"":' fill-opacity="0.5"'} stroke="var(--_b)"${mt(p.style.shape)}/>`+(Z?"":ge(p.label,M,Q,ee,x))+"</g>";continue}let ie=p.w,B=p.h,X,ne="";if(L.img){let M=pe(L.assetWidth,80),Q=pe(L.assetHeight,80),Z=p.label.height>0?L.pos==="t"?B/2-Q:-B/2:-Q/2,ee=qe(Ee(L.img),c);X=ee===void 0?"":`<image href="${le(ee)}" x="${U(-M/2)}" y="${U(Z)}" width="${U(M)}" height="${U(Q)}" preserveAspectRatio="${L.constraint==="on"?"xMidYMid meet":"none"}"/>`}else if(L.icon){let M=pe(L.assetHeight,48),Q=p.label.height>0?L.pos==="t"?B/2-M:-B/2:-M/2,Z=L.shape==="icon"?"":L.shape==="iconCircle"?`<circle cy="${U(Q+M/2)}" r="${U(M/2)}"${Ke}${p.style.shape}/>`:`<rect x="${U(-M/2)}" y="${U(Q)}" width="${U(M)}" height="${U(M)}" rx="${L.shape==="iconRounded"?8:0}"${Ke}${p.style.shape}/>`,ee=M*.6;X=Z+`<svg class="pele-icon" data-icon="${ce(L.icon)}" x="${U(-ee/2)}" y="${U(Q+(M-ee)/2)}" width="${U(ee)}" height="${U(ee)}" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">${x?.(L.icon)??""}</svg>`}else X=Nt(p.shape,ie,B,Ke+p.style.shape,gn+p.style.line),Rt(p.shape)&&(ne=ye(p.style));let $=ge(p.label,0,p.dy,` class="pele-label"${ne}${p.style.text}`,x);if(/ internal-link(?: |$)/.test(v+" ")&&L.label&&c.links!==!1){let M=Xe(L.label),Q=ze(M,c),Z=le(M);$=`<a class="internal-link"${Q?` href="${Z}"${Ze(c)}`:""} data-href="${Z}">${$}</a>`,a.push({id:L.id,href:M,internal:!0})}let se=X+$;L.tooltip&&(se=`<title>${ce(L.tooltip)}</title>`+se),L.link&&(se=Je(se,L.link,L.id,a,c,L.linkTarget?` target="${le(L.linkTarget)}"`:"")),Y+=`<g class="pele-node pele-shape-${p.shape}${v}" data-id="${k}" transform="translate(${U(H)},${U(W)})">${se}</g>`}let he=ft();for(let S=0;S<T.length;S++){let p=T[S];p.src===p.dst||O[S].thickness==="invisible"||p.route.length<6||(he.add(p.src,fe(p.route,0,b[p.src]),O[S].arrowTypeStart),he.add(p.dst,fe(p.route,p.route.length-3,b[p.dst]),O[S].arrowTypeEnd))}let Ve="",Te="",be="",We=new Map;for(let S=0;S<T.length;S++){let p=T[S],R=O[S],L=y[S],H=R.style.length>0||R.cssCompiledStyles.length>0?ke(R.cssCompiledStyles.concat(R.style)):void 0;if(R.thickness!=="invisible"){let W=R.arrowTypeStart,v=R.arrowTypeEnd,k;if(p.src===p.dst){let $=f[p.src],j=We.get(p.src)??0;We.set(p.src,j+1),k=St(b[p.src],$.w,$.h,j,g(p.src),$e,de(v),p)}else{let $=p.route.slice(),j=he.of(p.src,fe($,0,b[p.src])),se=he.of(p.dst,fe($,$.length-3,b[p.dst]));we($,0,f[p.src],b[p.src]),we($,$.length-3,f[p.dst],b[p.dst]),k=ut($,R.curve,de(W),de(v),j,se)}let ie=pt(k.d,[k.sx,k.sy,k.ex,k.ey],re,H?.line,k.tokens),B=ie||(H?.stroke&&R.thickness!=="invisible"?le(H.stroke):"var(--_l)"),X="";R.thickness==="thick"?X+=' stroke-width="2.5"':R.thickness==="dotted"&&(X+=' stroke-dasharray="3 4"');let ne=De(R.classes.replace(/edge-thickness-normal|edge-pattern-solid|flowchart-link/g,""));ie===""&&(Ve+=ht(k,W,v,H?.line,R.thickness==="thick")),Te+=`<g class="pele-edge${ne}" data-id="${ce(R.id)}"${ie?` stroke="${ie}"`:""}${H?.line??""}><path d="${k.d}"${X}/>`+Ce(W,k.sx,k.sy,k.sdx,k.sdy,B)+Ce(v,k.ex,k.ey,k.edx,k.edy,B)+"</g>"}if(L.width>0){let W=p.labelX,v=p.labelY;be+=Et(R.id,L,W,v,H?.text??"",x)}}return{svg:Tt(i?.type??"flowchart",l,t,D,c,o,ge(G,l/2,_+G.height/2,' class="pele-title" font-weight="var(--_tw)"')+(I?`<g class="pele-clusters">${I}</g>`:"")+gt(Ve)+(Te?`<g class="pele-edges" fill="none" stroke="var(--_l)" stroke-linecap="round">${Te}</g>`:"")+(z?`<g class="pele-cluster-titles">${z}</g>`:"")+(be?`<g class="pele-edge-labels" font-size="${w}">${be}</g>`:"")+`<g class="pele-nodes">${Y}</g>`),width:l,height:t,links:a}}var es={type:"flowchart",math:!0,parse(o,s,c,i,u){let A=s.flowchart??{},n=new Ae({inheritDir:A.inheritDir===!0,maxEdges:u.maxEdges});return c&&(n.title=c),Gt(o,n),n},render:Kt};export{Kt as a,es as b};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import{b as pt,f as wt}from"./NDSCUZ25.js";import{a as re}from"./GUJTEFZK.js";import{c as xt}from"./DKTLEL5E.js";import{b as kt,c as ae,d as f,e as V,i as ke,o as bt,r as Dt,s as Mt,v as Ue}from"./KHUP5TOH.js";import{a as P,g as gt,p as yt}from"./YWXUFHC7.js";var K=["January","February","March","April","May","June","July","August","September","October","November","December"],L=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"];function Q(t){return!Number.isNaN(t.getTime())}function T(t,e){let n=String(t);return n.length>=e?n:"0".repeat(e-n.length)+n}function Ft(t){let e=["th","st","nd","rd"],n=t%100;return t+(e[(n-20)%10]||e[n]||e[0])}function Pe(t){let e=-Math.round(t.getTimezoneOffset()/15)*15;return e===0?0:e}function vt(t){let e=Pe(t),n=Math.abs(e);return(e>=0?"+":"-")+T(Math.floor(n/60),2)+":"+T(n%60,2)}function Yt(t){return t.getDay()||7}function $(t,e){let n=new Date(t);return n.setDate(n.getDate()+e),n}function ln(t){let e=new Date(t.getFullYear(),t.getMonth()+1,0);return e.setHours(23,59,59,999),e.getDate()}function _t(t,e){let n=new Date(t);return n.setDate(1),e(n),n.setDate(Math.min(t.getDate(),ln(n))),n}function we(t,e,n){switch(n){case"M":return _t(t,s=>s.setMonth(t.getMonth()+e));case"y":return _t(t,s=>s.setFullYear(t.getFullYear()+e));case"d":return $(t,Math.round(e));case"w":return $(t,Math.round(7*e));case"h":return new Date(t.getTime()+e*36e5);case"m":return new Date(t.getTime()+e*6e4);case"s":return new Date(t.getTime()+e*1e3);default:return new Date(t.getTime()+e)}}function Nt(t){return $(t,4-Yt(t))}function Tt(t){let e=Nt(t),n=new Date(e.getFullYear(),0,1),s=Yt(n),i=$(n,4-s+(s>4?7:0)),a=(Pe(i)-Pe(e))*6e4,r=(e.getTime()-i.getTime()-a)/6048e5;return(r<0?Math.ceil(r)||0:Math.floor(r))+1}var dn=/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,un=/\[([^\]]+)]|YYYY|YY|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,fn="YYYY-MM-DDTHH:mm:ssZ";function Ke(t,e){if(!Q(t))return"Invalid Date";let n=e||fn;if(n==="YYYY-MM-DD")return Ze(t);let s=!1,i=n.replace(dn,r=>{switch(r){case"Q":return String(Math.ceil((t.getMonth()+1)/3));case"Do":return"["+Ft(t.getDate())+"]";case"GGGG":return String(Nt(t).getFullYear());case"W":return String(Tt(t));case"WW":return T(Tt(t),2);case"k":return String(t.getHours()||24);case"kk":return T(t.getHours()||24,2);case"X":return String(Math.floor(t.getTime()/1e3));case"x":return String(t.getTime());case"gggg":case"wo":case"w":case"ww":case"z":case"zzz":return s=!0,r;default:return r}});if(s)return;let a=t.getHours();return i.replace(un,(r,o)=>{if(o)return o;switch(r){case"YY":return String(t.getFullYear()).slice(-2);case"YYYY":return T(t.getFullYear(),4);case"M":return String(t.getMonth()+1);case"MM":return T(t.getMonth()+1,2);case"MMM":return K[t.getMonth()].slice(0,3);case"MMMM":return K[t.getMonth()];case"D":return String(t.getDate());case"DD":return T(t.getDate(),2);case"d":return String(t.getDay());case"dd":return L[t.getDay()].slice(0,2);case"ddd":return L[t.getDay()].slice(0,3);case"dddd":return L[t.getDay()];case"H":return String(a);case"HH":return T(a,2);case"h":return String(a%12||12);case"hh":return T(a%12||12,2);case"a":return a<12?"am":"pm";case"A":return a<12?"AM":"PM";case"m":return String(t.getMinutes());case"mm":return T(t.getMinutes(),2);case"s":return String(t.getSeconds());case"ss":return T(t.getSeconds(),2);case"SSS":return T(t.getMilliseconds(),3);case"Z":return vt(t);default:return vt(t).replace(":","")}})}function Ze(t){let e=t.getFullYear(),n=t.getMonth()+1,s=t.getDate();return(e>=1e3&&e<=9999?e:T(e,4))+(n<10?"-0":"-")+n+(s<10?"-0":"-")+s}var mn=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,hn=/\[[^\]]+]/g,Et=/\d/,ie=/\d\d/,gn=/\d{3}/,yn=/\d{4}/,A=/\d\d?/,kn=/[+-]?\d+/,St=/[+-]\d\d:?(\d\d)?|Z/,oe=/\d*[^-_:/,()\s\d]+/;function M(t){return(e,n)=>(e[t]=+n,!0)}var At=(t,e)=>{if(e==="Z")return t.offset=0,!0;let n=e.match(/([+-]|\d\d)/g),s=+n[1]*60+(+n[2]||0);return t.offset=s===0?0:n[0]==="+"?-s:s,!0};function It(t){return(e,n)=>{let s=t.indexOf(n)+1;return s<1?!1:(e.month=s%12||s,!0)}}var pn=new Map([["A",{re:oe,read:(t,e)=>(t.afternoon=e==="PM",!0)}],["a",{re:oe,read:(t,e)=>(t.afternoon=e==="pm",!0)}],["Q",{re:Et,read:(t,e)=>(t.month=(+e-1)*3+1,!0)}],["S",{re:Et,read:(t,e)=>(t.milliseconds=+e*100,!0)}],["SS",{re:ie,read:(t,e)=>(t.milliseconds=+e*10,!0)}],["SSS",{re:gn,read:(t,e)=>(t.milliseconds=+e,!0)}],["s",{re:A,read:M("seconds")}],["ss",{re:A,read:M("seconds")}],["m",{re:A,read:M("minutes")}],["mm",{re:A,read:M("minutes")}],["H",{re:A,read:M("hours")}],["h",{re:A,read:M("hours")}],["HH",{re:A,read:M("hours")}],["hh",{re:A,read:M("hours")}],["D",{re:A,read:M("day")}],["DD",{re:ie,read:M("day")}],["Do",{re:oe,read:(t,e)=>{let n=e.match(/\d+/);if(!n)return!1;t.day=+n[0],t.dayGiven=!0;for(let s=1;s<=31;s++)Ft(s)===e&&(t.day=s);return!0}}],["w",{re:A,read:M("week")}],["ww",{re:ie,read:M("week")}],["M",{re:A,read:M("month")}],["MM",{re:ie,read:M("month")}],["MMM",{re:oe,read:It(K.map(t=>t.slice(0,3)))}],["MMMM",{re:oe,read:It(K)}],["Y",{re:kn,read:M("year")}],["YY",{re:ie,read:(t,e)=>(t.year=+e+(+e>68?1900:2e3),!0)}],["YYYY",{re:yn,read:M("year")}],["Z",{re:St,read:At}],["ZZ",{re:St,read:At}]]),$t,pe=null;function wn(t){if(t===$t)return pe;if($t=t,pe=null,/[Ll]/.test(t.replace(hn,"")))return null;let e=t.match(mn);return e?(pe=e.map(n=>pn.get(n)??n.replace(/^\[|\]$/g,"")),pe):null}function bn(t,e,n){if(e==="x"||e==="X")return new Date((e==="X"?1e3:1)*Number(t));let s=wn(e);if(!s)return;let i={},a=t,r=0;for(let b of s){if(typeof b=="string"){r+=b.length;continue}let Y=b.re.exec(a.slice(r));if(!Y||!b.read(i,Y[0]))return;a=a.replace(Y[0],"")}i.afternoon!==void 0&&i.hours!==void 0&&(i.afternoon?i.hours<12&&(i.hours+=12):i.hours===12&&(i.hours=0));let o=i.dayGiven||i.day?i.day:!i.year&&!i.month?n.getDate():1,u=i.year||n.getFullYear(),m=0;i.year&&!i.month||(m=i.month>0?i.month-1:n.getMonth());let w=i.hours||0,g=i.minutes||0,d=i.seconds||0,k=i.milliseconds||0;if(i.offset!==void 0)return new Date(Date.UTC(u,m,o,w,g,d,k+i.offset*6e4));if(!i.week)return new Date(u,m,o,w,g,d,k)}function Rt(t,e,n){let s=bn(t,e,n);return s&&Q(s)&&Ke(s,e)===t?s:void 0}var Dn=/^[YMDHhmsSZXx\-/.:, T]*$/,Mn=/^\s*(active|done|crit|milestone|vert)\s*$/,xn=/^after\s+([\d\w- ]+)/,vn=/^until\s+([\d\w- ]+)/,_n=/^(\d+(?:\.\d+)?)([Mdhmswy]|ms)$/,Tn=/[\s,]+/,En=/^\d+$/,Sn=new Set(L.map(t=>t.toLowerCase())),An=4e8,In=400,$n=200,Fn=400;function Xe(t){let e=t===void 0?NaN:+t;return Number.isFinite(e)?e:Date.now()}function Yn(t){let e=_n.exec(t.trim());return e?[Number.parseFloat(e[1]),e[2]]:[NaN,"ms"]}function Ct(t,e){let n=new Set(t);for(let s of e.toLowerCase().split(Tn))s!==""&&n.add(s);return[...n]}var be=class{type="gantt";title;accTitle;accDescr;dateFormat="";axisFormat="";tickInterval;todayMarker="";includes=[];excludes=[];inclusiveEndDates=!1;topAxis=!1;displayMode="";weekday;weekend="saturday";sections=[];links=new Map;tasks=[];byId=new Map;currentSection="";taskCount=0;lastOrder=0;lastTaskId;options;now=0;work=0;includeSet=new Set;excludeSet=new Set;excludedDays=[];datedTokens=!1;constructor(e={}){this.options=e}setDateFormat(e){this.dateFormat=e}enableInclusiveEndDates(){this.inclusiveEndDates=!0}TopAxis(){this.topAxis=!0}setAxisFormat(e){this.axisFormat=e}setTickInterval(e){this.tickInterval=e}setTodayMarker(e){this.todayMarker=e}setIncludes(e){this.includes=Ct(this.includes,e)}setExcludes(e){this.excludes=Ct(this.excludes,e)}setWeekday(e){this.weekday=e}setWeekend(e){this.weekend=e}setDiagramTitle(e){this.title=e}setAccTitle(e){this.accTitle=e.replace(/^\s+/g,"")}setAccDescription(e){this.accDescr=e.replace(/\n\s+/g,`
|
|
2
|
+
`)}addSection(e){this.currentSection=e,this.sections.push(e)}addTask(e,n){let s=(n.startsWith(":")?n.slice(1):n).split(","),i={id:"",task:e,section:this.currentSection,startTime:void 0,endTime:void 0,renderEndTime:null,manualEndTime:!1,processed:!1,active:!1,done:!1,crit:!1,milestone:!1,vert:!1,order:-1,classes:[],prevTaskId:this.lastTaskId,raw:{data:n,start:void 0,end:""}},a;for(;s.length>0&&(a=Mn.exec(s[0]))!==null;)i[a[1]]=!0,s.shift();if(s.length===0)throw new P(`Task "${e.trim()}" needs a duration or an end date.`,"semantic",{type:"gantt"});if(s.length>3)throw new P(`Task "${e.trim()}" has too many fields. A task takes an id, a start, and an end or duration.`,"semantic",{type:"gantt"});for(let r=0;r<s.length;r++)s[r]=s[r].trim();s.length===3?i.id=s[0]:(this.taskCount++,i.id="task"+this.taskCount),s.length>1&&(i.raw.start=s[s.length-2]),i.raw.end=s[s.length-1],i.vert||(i.order=this.lastOrder++),this.tasks.push(i),this.lastTaskId=i.id,this.byId.set(i.id,i)}setLink(e,n){let s=pt(n);for(let i of e.split(","))this.byId.has(i)&&this.links.set(i,s);this.setClass(e,"clickable")}setClickEvent(e,n,s){this.setClass(e,"clickable")}setClass(e,n){for(let s of e.split(","))this.byId.get(s)?.classes.push(n)}getTasks(e){this.now=Xe(e),this.work=0,this.includeSet=new Set(this.includes),this.excludeSet=new Set(this.excludes);let n=this.weekend==="friday"?5:this.weekend==="saturday"?6:NaN,s=this.excludeSet.has("weekends");this.excludedDays=L.map((a,r)=>{let o=r||7;return s&&(o===n||o===n+1)||this.excludeSet.has(a.toLowerCase())}),this.datedTokens=this.includes.length>0||!Dn.test(this.dateFormat.trim());for(let a of this.excludes)a!=="weekends"&&!Sn.has(a)&&(this.datedTokens=!0);for(let a of this.tasks)a.startTime=a.endTime=void 0,a.renderEndTime=null,a.processed=a.manualEndTime=!1;let i=this.compileTasks();for(let a=0;!i&&a<10;a++)i=this.compileTasks();return this.tasks}isInvalidDate(e){let n=this.excludedDays[e.getDay()];if(!this.datedTokens)return n;let s=this.dateFormat.trim(),i=Ze(e),a=i;this.spend($n),s!=="YYYY-MM-DD"&&(this.spend(Fn+s.length*8),a=Ke(e,s));let r=o=>o.has(i)||a!==void 0&&o.has(a);return r(this.includeSet)?!1:n||r(this.excludeSet)}spend(e){if(this.work+=e,this.work>An)throw new P("The gantt chart takes too much work to schedule.","limit",{type:"gantt"})}parse(e,n){return this.spend((n.length+1)*(e.length+1)),Rt(e,n,new Date(this.now))}today(){let e=new Date(this.now);return e.setHours(0,0,0,0),e}warn(e){this.options.warn&&this.options.warn(e())}compileTasks(){let e=!0;for(let n of this.tasks)this.compileTask(n),e=e&&n.processed;return e}compileTask(e){let n=e.raw.start;if(n===void 0){let s=e.prevTaskId===void 0?void 0:this.byId.get(e.prevTaskId);e.startTime=s?s.endTime:this.today()}else{let s=this.getStartDate(n);s&&(e.startTime=s)}e.startTime&&(e.endTime=this.getEndDate(e.startTime,e.raw.end),e.endTime&&(e.processed=!0,e.manualEndTime=this.parse(e.raw.end,"YYYY-MM-DD")!==void 0,this.checkTaskDates(e)))}references(e,n){let s=[],i;for(let a of n.split(" ")){if(a==="")continue;let r=this.byId.get(a);r?s.push(r):(i??=[]).push(a)}if(i){let a=i;this.warn(()=>`Gantt: "${e}" refers to task ids that do not exist: ${a.join(", ")}.`)}return s}getStartDate(e){let n=e.trim(),s=this.dateFormat.trim();if((s==="x"||s==="X")&&En.test(n))return this.checked(new Date(Number(n)),n);let i=xn.exec(n);if(i!==null){let o=this.references("after",i[1]),u;for(let m of o)(!u||m.endTime>u.endTime)&&(u=m);return u?u.endTime:this.today()}let a=this.parse(n,s);if(a)return a;let r=new Date(n);if(!Q(r)||r.getFullYear()<-1e4||r.getFullYear()>1e4)throw new P("Invalid date:"+n,"semantic",{type:"gantt"});return r}checked(e,n){if(!Q(e))throw new P("Invalid date:"+n,"semantic",{type:"gantt"});return e}getEndDate(e,n){let s=n.trim(),i=vn.exec(s);if(i!==null){let w=this.references("until",i[1]),g;for(let d of w)(!g||d.startTime<g.startTime)&&(g=d);return g?g.startTime:this.today()}let a=this.dateFormat.trim(),r=this.parse(s,a);if(r)return this.inclusiveEndDates?$(r,1):r;let[o,u]=Yn(s);if(Number.isNaN(o))return this.warn(()=>`Gantt: "${s}" is neither a date in the "${a}" format nor a duration such as "3d", so the task gets no duration.`),new Date(e);let m=we(e,o,u);return Q(m)?m:new Date(e)}checkTaskDates(e){if(this.excludes.length===0||e.manualEndTime)return;let n=$(e.startTime,1),s=new Date(e.endTime),i=+$(s,1e4),a=!1,r=null;for(;+n<=+s;){if(this.spend(In),a||(r=+s),a=this.isInvalidDate(n),a&&(s.setDate(s.getDate()+1),+s>i))throw new P("Failed to find a valid date that was not excluded by `excludes` after 10,000 iterations.","semantic",{type:"gantt"});n.setDate(n.getDate()+1)}e.endTime=s,e.renderEndTime=r===null?null:new Date(r)}};var Lt=["$end","INVALID","open_directive","acc_title","acc_title_value","acc_descr","acc_descr_value","acc_descr_multiline_value","NL","href","callbackname","callbackargs","click","gantt","dateFormat","inclusiveEndDates","topAxis","axisFormat","tickInterval","includes","excludes","todayMarker","weekday_monday","weekday_tuesday","weekday_wednesday","weekday_thursday","weekday_friday","weekday_saturday","weekday_sunday","weekend_friday","weekend_saturday","date","title","accDescription","section","taskTxt","taskData",":","EOF"];var Nn=/accTitle\s*:\s*/iy,Rn=/accDescr\s*:\s*/iy,Cn=/accDescr\s*\{\s*/iy,Ln=/href\s+"/iy,On=/call\s+/iy,Gn=/click\s+/iy,Hn=/\(\s*\)/y,Be=/weekday\s+(monday|tuesday|wednesday|thursday|friday|saturday|sunday)\b/iy,Wn=["monday","tuesday","wednesday","thursday","friday","saturday","sunday"],je=/weekend\s+(?:(friday)|saturday)\b/iy,zn=/\d\d\d\d-\d\d-\d\d\b/y,Un=/title[^\S\r\n]*(?=[\r\n]|$)/iy,Pn=new Map([[97,[[/axisFormat\s[^#\n;]+/iy,17],[/accDescription\s[^#\n;]+/iy,33]]],[103,[[/gantt\b/iy,13]]],[100,[[/dateFormat\s[^#\n;]+/iy,14]]],[105,[[/inclusiveEndDates\b/iy,15],[/includes\s[^#\n;]+/iy,19]]],[116,[[/topAxis\b/iy,16],[/tickInterval\s[^#\n;]+/iy,18],[/todayMarker\s[^\n;]+/iy,21],[/title[^\S\r\n][^\n]+/iy,32]]],[101,[[/excludes\s[^#\n;]+/iy,20]]],[115,[[/section\s[^\n]+/iy,34]]]]);function Ot(t){let e=t.length,n=[],s=[],i=[],a=0,r=0,o=(g,d,k)=>{n.push(g),s.push(t.slice(d,k)),i.push(d),r=k},u=g=>(g.lastIndex=r,g.test(t)?g.lastIndex:-1),m=(g,d)=>{let k=t.indexOf(g,d);return k===-1?e:k},w=g=>{let d;switch(g|32){case 97:if((d=u(Nn))>=0)return a=1,o(3,r,d),!0;if((d=u(Rn))>=0)return a=2,o(5,r,d),!0;if((d=u(Cn))>=0)return a=3,r=d,!0;break;case 104:if((d=u(Ln))>=0)return a=4,r=d,!0;break;case 99:if((d=u(On))>=0)return a=5,r=d,!0;if((d=u(Gn))>=0)return a=7,r=d,!0;break;case 116:if((d=u(Un))>=0)return r=d,!0;break;case 119:{Be.lastIndex=r;let b=Be.exec(t);if(b)return o(22+Wn.indexOf(b[1].toLowerCase()),r,Be.lastIndex),!0;if(je.lastIndex=r,b=je.exec(t),b)return o(b[1]!==void 0?29:30,r,je.lastIndex),!0;break}}let k=Pn.get(g|32);if(k){for(let[b,Y]of k)if((d=u(b))>=0)return o(Y,r,d),!0}return!1};for(;;){if(r>=e){let d=38;switch(a){case 1:d=4;break;case 2:d=6;break;case 3:d=7;break;case 4:d=9;break;case 5:d=10;break;case 6:d=11;break;case 7:d=12;break}o(d,e,e);break}let g=t.charCodeAt(r);switch(a){case 0:{let d=t.charCodeAt(r+1);if(g===37)if(d!==37){let k=m(`
|
|
3
|
+
`,r+1);for(;t.charCodeAt(k)===10;)k++;r=k}else{if(t.charCodeAt(r+2)===123)return o(2,r,r+3),o(1,r,r),{types:n,texts:s,starts:i};r=m(`
|
|
4
|
+
`,r+2)}else if(g===10){let k=r+1;for(;t.charCodeAt(k)===10;)k++;o(8,r,k)}else if(re(g))for(r++;r<e&&re(t.charCodeAt(r));)r++;else{if(w(g))break;if(g>=48&&g<=57&&u(zn)>=0)o(31,r,r+10);else if(g!==58){let k=r+1;for(;k<e;){let b=t.charCodeAt(k);if(b===58||b===10)break;k++}o(35,r,k)}else{let k=r+1;for(;k<e;){let b=t.charCodeAt(k);if(b===35||b===10||b===59)break;k++}o(k>r+1?36:37,r,k)}}break}case 1:case 2:{let d=a===1?4:6;a=0,o(d,r,m(`
|
|
5
|
+
`,r));break}case 3:g===125?(a=0,r++):o(7,r,m("}",r));break;case 4:g===34?(a=0,r++):o(9,r,m('"',r));break;case 5:if(g===40){let d=u(Hn);d>=0?(a=0,r=d):(a=6,r++)}else o(10,r,m("(",r));break;case 6:g===41?(a=0,r++):o(11,r,m(")",r));break;case 7:if(re(g))a=0,r++;else{let d=r+1;for(;d<e&&!re(t.charCodeAt(d));)d++;o(12,r,d)}break}}return n.push(0),s.push(""),i.push(e),{types:n,texts:s,starts:i}}var Kn=["monday","tuesday","wednesday","thursday","friday","saturday","sunday"],Gt="'EOF', 'SPACE', 'NL', 'weekday_monday', 'weekday_tuesday', 'weekday_wednesday', 'weekday_thursday', 'weekday_friday', 'weekday_saturday', 'weekday_sunday', 'weekend_friday', 'weekend_saturday', 'dateFormat', 'inclusiveEndDates', 'topAxis', 'axisFormat', 'tickInterval', 'excludes', 'includes', 'todayMarker', 'title', 'acc_title', 'acc_descr', 'acc_descr_multiline_value', 'section', 'taskTxt', 'click'",De=new Uint8Array(39);for(let t=22;t<=30;t++)De[t]=1;for(let t of[38,8,14,15,16,17,18,20,19,21,32,3,5,7,34,35,12])De[t]=1;function Ht(t,e){let{types:n,texts:s,starts:i}=Ot(t),a=0,r=u=>{let m=n[a];throw gt("gantt",t,i[a],`Expecting ${u}, got '${m===0?"1":Lt[m]}'`)},o=(u="")=>{De[n[a]]!==1&&r(Gt+u)};for(n[a]!==13&&r("'gantt'"),a++;;){let u=n[a],m=s[a];switch(De[u]!==1&&r(Gt),a++,u){case 38:if(n[a]===0)return;o();break;case 8:break;case 14:o(),e.setDateFormat(m.slice(11));break;case 15:o(),e.enableInclusiveEndDates();break;case 16:o(),e.TopAxis();break;case 17:o(),e.setAxisFormat(m.slice(11));break;case 18:o(),e.setTickInterval(m.slice(13));break;case 20:o(),e.setExcludes(m.slice(9));break;case 19:o(),e.setIncludes(m.slice(9));break;case 21:o(),e.setTodayMarker(m.slice(12));break;case 29:o(),e.setWeekend("friday");break;case 30:o(),e.setWeekend("saturday");break;case 32:o(),e.setDiagramTitle(m.slice(6));break;case 3:{n[a]!==4&&r("'acc_title_value'");let w=s[a++];o(),e.setAccTitle(w.trim());break}case 5:{n[a]!==6&&r("'acc_descr_value'");let w=s[a++];o(),e.setAccDescription(w.trim());break}case 7:o(),e.setAccDescription(m.trim());break;case 34:o(),e.addSection(m.slice(8));break;case 35:{n[a]!==36&&r("'taskData'");let w=s[a++];o(),e.addTask(m,w);break}case 12:{let w,g=null,d;n[a]===10?(w=s[a++],n[a]===11&&(g=s[a++]),n[a]===9?(d=s[a++],o()):o(g===null?", 'callbackargs', 'href'":", 'href'")):n[a]===9?(d=s[a++],n[a]===10?(w=s[a++],n[a]===11?(g=s[a++],o()):o(", 'callbackargs'")):o(", 'callbackname'")):r("'callbackname', 'href'"),w!==void 0&&e.setClickEvent(m,w,g),d!==void 0&&e.setLink(m,d);break}default:o(),e.setWeekday(Kn[u-22])}}}var O=1e3,G=60*O,Z=60*G,X=24*Z,de=7*X,Qe=30*X,ve=365*X;function Me(t){t.setHours(0,0,0,0)}function Te(t){return{floor(e){e.setDate(e.getDate()-(e.getDay()+7-t)%7),Me(e)},offset:(e,n)=>e.setDate(e.getDate()+n*7),cycle:1/0,ms:de}}var ce={millisecond:{floor:()=>{},offset:(t,e)=>t.setTime(+t+e),cycle:1/0,ms:1},second:{floor:t=>t.setTime(+t-t.getMilliseconds()),offset:(t,e)=>t.setTime(+t+e*O),field:t=>t.getUTCSeconds(),cycle:60,ms:O},minute:{floor:t=>t.setTime(+t-t.getMilliseconds()-t.getSeconds()*O),offset:(t,e)=>t.setTime(+t+e*G),field:t=>t.getMinutes(),cycle:60,ms:G},hour:{floor:t=>t.setTime(+t-t.getMilliseconds()-t.getSeconds()*O-t.getMinutes()*G),offset:(t,e)=>t.setTime(+t+e*Z),field:t=>t.getHours(),cycle:24,ms:Z},day:{floor:Me,offset:(t,e)=>t.setDate(t.getDate()+e),field:t=>t.getDate()-1,cycle:31,ms:X},month:{floor(t){t.setDate(1),Me(t)},offset:(t,e)=>t.setMonth(t.getMonth()+e),field:t=>t.getMonth(),cycle:12,ms:Qe},year:{floor(t){t.setMonth(0,1),Me(t)},offset:(t,e)=>t.setFullYear(t.getFullYear()+e),cycle:1/0,ms:ve}};function _e(t,e,n){return Math.floor((+e-+t-(e.getTimezoneOffset()-t.getTimezoneOffset())*G)/n)}function Zn(t,e){return(t%e+e)%e}function xe(t,e,n){let s=t==="week"?Te(n):ce[t];if(e<=1)return s;if(t==="millisecond")return{...s,floor:r=>r.setTime(Math.floor(+r/e)*e),offset:(r,o)=>r.setTime(+r+o*e)};if(t==="year")return{...s,floor(r){r.setFullYear(Math.floor(r.getFullYear()/e)*e),s.floor(r)},offset:(r,o)=>r.setFullYear(r.getFullYear()+o*e)};if(t==="week"){let r=new Date(0);return s.floor(r),{...s,floor(o){s.floor(o),s.offset(o,-Zn(_e(r,o,de),e))},offset:(o,u)=>s.offset(o,u*e)}}let i=s.field,a=r=>i(r)%e===0;return{...s,floor(r){for(s.floor(r);Number.isFinite(+r)&&!a(r);s.floor(r))r.setTime(+r-1)},offset(r,o){for(let u=0;u<o&&Number.isFinite(+r);u++)do s.offset(r,1);while(Number.isFinite(+r)&&!a(r))}}}function Ut(t,e,n,s){let i=new Date(e-1);t.floor(i),t.offset(i,1),t.floor(i);let a=[],r=-1/0;for(;+i<=n&&+i>r;){if(a.length>=s)return;r=+i,a.push(r),t.offset(i,1),t.floor(i)}return a}function Wt(t,e,n){let s=(e-t)/Math.max(0,n),i=Math.floor(Math.log10(s)),a=s/Math.pow(10,i),r=a>=Math.sqrt(50)?10:a>=Math.sqrt(10)?5:a>=Math.SQRT2?2:1;return Math.pow(10,i)*r}var q=[["second",1,O],["second",5,5*O],["second",15,15*O],["second",30,30*O],["minute",1,G],["minute",5,5*G],["minute",15,15*G],["minute",30,30*G],["hour",1,Z],["hour",3,3*Z],["hour",6,6*Z],["hour",12,12*Z],["day",1,X],["day",2,2*X],["week",1,de],["month",1,Qe],["month",3,3*Qe],["year",1,ve]];function Pt(t,e,n){let s=(e-t)/n,i=0;for(;i<q.length&&q[i][2]<=s;)i++;let a;if(i===q.length)a=xe("year",Math.max(1,Wt(t/ve,e/ve,n)),0);else if(i===0)a=xe("millisecond",Math.max(Wt(t,e,n),1),0);else{let[r,o]=q[s/q[i-1][2]<q[i][2]/s?i-1:i];a=xe(r,o,0)}return Ut(a,t,e,4*n+8)??[]}var Xn=/^([1-9]\d*)(millisecond|second|minute|hour|day|week|month)$/,Bn=["sunday","monday","tuesday","wednesday","thursday","friday","saturday"];function Kt(t,e,n,s,i){let a=Xn.exec(t);if(!a)return;let r=parseInt(a[1],10),o=a[2],u=xe(o,r,Math.max(0,Bn.indexOf(e)));if(!((s-n)/(Math.min(r,u.cycle)*u.ms)>i))return Ut(u,n,s,i)}function D(t,e,n){let s=t<0?"-":"",i=String(s?-t:t);return s+(i.length<n?e.repeat(n-i.length)+i:i)}function W(t,e){let n=new Date(+t);return e.floor(n),n}function zt(t,e){let n=Te(e),s=W(t,ce.year);return _e(W(new Date(+s-1),n),W(t,n),de)}function Ve(t){let e=Te(4),n=t.getDay(),s=W(n>=4||n===0?t:new Date(+t-1),e);return n>=4||n===0||(e.offset(s,1),e.floor(s)),s}var jn=new Map([["-",""],["_"," "],["0","0"]]);function le(t,e){let n="",s=0,i=t.length;for(let a=0;a<i;a++){if(t.charCodeAt(a)!==37)continue;n+=t.slice(s,a);let r=t.charAt(++a),o=jn.get(r);o!==void 0?r=t.charAt(++a):o=r==="e"?" ":"0",n+=Vn(r,e,o),s=a+1}return n+t.slice(s)}function Vn(t,e,n){switch(t){case"a":return L[e.getDay()].slice(0,3);case"A":return L[e.getDay()];case"b":return K[e.getMonth()].slice(0,3);case"B":return K[e.getMonth()];case"c":return le("%x, %X",e);case"d":case"e":return D(e.getDate(),n,2);case"f":return D(e.getMilliseconds(),n,3)+"000";case"g":return D(Ve(e).getFullYear()%100,n,2);case"G":return D(Ve(e).getFullYear()%1e4,n,4);case"H":return D(e.getHours(),n,2);case"I":return D(e.getHours()%12||12,n,2);case"j":return D(1+_e(W(e,ce.year),W(e,ce.day),X),n,3);case"L":return D(e.getMilliseconds(),n,3);case"m":return D(e.getMonth()+1,n,2);case"M":return D(e.getMinutes(),n,2);case"p":return e.getHours()>=12?"PM":"AM";case"q":return String(1+Math.floor(e.getMonth()/3));case"Q":return String(+e);case"s":return String(Math.floor(+e/1e3));case"S":return D(e.getSeconds(),n,2);case"u":return String(e.getDay()||7);case"U":return D(zt(e,0),n,2);case"V":{let s=Ve(e),i=W(s,ce.year),a=W(i,Te(4));return D(_e(a,s,de)+(i.getDay()===4?1:0),n,2)}case"w":return String(e.getDay());case"W":return D(zt(e,1),n,2);case"x":return le("%-m/%-d/%Y",e);case"X":return le("%-I:%M:%S %p",e);case"y":return D(e.getFullYear()%100,n,2);case"Y":return D(e.getFullYear()%1e4,n,4);case"Z":{let s=e.getTimezoneOffset(),i=Math.abs(s);return(s>0?"-":"+")+D(Math.floor(i/60),"0",2)+D(i%60,"0",2)}case"%":return"%";default:return t}}var Qn=800,qn=240,J=8,Jn=/<br\s*\/?>/gi;function F(t,e,n,s){let i=t.gantt?.[e];return typeof i=="number"&&Number.isFinite(i)?Math.min(s,Math.max(n,i)):void 0}function qe(t,e){let n=t.gantt?.[e];return typeof n=="string"?n:void 0}function es(t,e){return t.gantt?.[e]===!0}function Zt(t,e,n){let s=ke(t.replace(Jn," "),!1,e,n,4e3);return s.lines.length<=1?s:{...s,lines:[s.lines[0]],widths:[s.widths[0]],width:s.widths[0],height:s.lineHeight}}function Ee(t){return Number.isFinite(+t.startTime)&&Number.isFinite(+t.endTime)}function ts(t,e,n){let s=t.filter(Ee).sort((r,o)=>+r.startTime-+o.startTime||r.order-o.order),i=[];for(let r of s){let o=+r.startTime,u=0;for(;u<i.length&&o<i[u];)u++;i[u]=+r.endTime,n.set(r,e+u)}let a=i.length;for(let r of t)n.has(r)||n.set(r,e+a++);return Math.max(a,1)}function Xt(t,e,n){let s=n.fontSize??16,i=n.measurer??yt(n.fontFamily,n.fontFamilyMono),a=n.padding??8,r=Xe(n.now),o=F(e,"fontSize",4,72)??Math.round(s*.8125),u=F(e,"sectionFontSize",4,72)??o,m=Math.round(s*.75),w=F(e,"barHeight",4,400)??Math.round(o*1.85),g=F(e,"barGap",0,400)??Math.round(w/4),d=w+g,k=Math.round(F(e,"numberSectionStyles",1,1e3)??4),b=t.displayMode==="compact",Y=t.topAxis||es(e,"topAxis"),Se=t.getTasks(r),ue=Se.filter(c=>!c.vert),Bt=Se.filter(c=>c.vert&&Ee(c)),B=new Map;for(let c of ue)B.has(c.section)||B.set(c.section,B.size);let Ae=new Map,z=[];if(b){let c=new Map;for(let l of ue){let h=c.get(l.section);h?h.push(l):c.set(l.section,[l])}for(let[l,h]of c){let y=ts(h,z.length,Ae);for(let p=0;p<y;p++)z.push(l)}}else for(let c of ue)Ae.set(c,z.length),z.push(c.section);let Ie=z.length,v=1/0,E=-1/0;for(let c of Se)Ee(c)&&(v=Math.min(v,+c.startTime),E=Math.max(E,+c.endTime));let jt=v<=E,N=ke(t.title,!1,i,s,4e3,1),Vt=N.height>0?N.height+16:0;if(!jt){let c=Math.ceil(Math.max(N.width,1)+2*a),l=Math.ceil(Math.max(N.height,1)+2*a),h=V(N,c/2,a+N.height/2,' class="pele-title" font-weight="var(--_tw)"');return{svg:Ue("gantt",c,l,s,n,t,h),width:c,height:l,links:[]}}let Je=new Map,fe=0;for(let c of B.keys()){let l=ke(c,!1,i,u,180);Je.set(c,l),fe=Math.max(fe,l.width)}let Qt=t.axisFormat||(t.dateFormat==="D"?"%d":qe(e,"axisFormat")??"%Y-%m-%d"),$e=c=>le(Qt,new Date(c)),Fe=Math.max(i.width($e(v),m,0),i.width($e(E),m,0)),R=a+(F(e,"leftPadding",0,2e3)??Math.max(fe>0?fe+24:0,Fe/2)),Ye=F(e,"rightPadding",0,2e3)??Math.max(16,Fe/2),qt=xt(n,F(e,"useWidth",100,2e4)??Qn,280),ee=Math.max(qn,qt-R-Ye-a),te=R+ee,et=E>v?ee/(E-v):0,H=c=>et===0?R+ee/2:R+(c-v)*et,ne=Math.round(m*1.75),Ne=F(e,"topPadding",0,2e3),tt=F(e,"gridLineStartPadding",0,2e3),nt=a+Vt+(Y?ne:0),I=Math.max(nt,Ne??0),se=Ne!==void 0&&tt!==void 0?Math.max(0,Math.min(Ne-tt,I-nt)):0,st=Math.max(Ie,1)*d,U=I+st,Re=[],C=te+Ye;for(let c of ue){let l=Zt(c.task,i,o),h=Ae.get(c);if(!Ee(c)){let S=R+J+l.width/2;C=Math.max(C,S+l.width/2),Re.push({task:c,label:l,row:h,x0:NaN,x1:NaN,labelX:S,inside:!1});continue}let y=H(+c.startTime),p=Math.max(H(+(c.renderEndTime??c.endTime)),y+(c.milestone?0:2));if(c.milestone){let S=y+(H(+c.endTime)-y)/2;y=S-w/2,p=S+w/2}let _=!c.milestone&&l.width+2*J<=p-y,x=(y+p)/2;if(!_){let S=p+J+l.width<=te+Ye,he=y-J-l.width>=R;x=S||!he?p+J+l.width/2:y-J-l.width/2,C=Math.max(C,x+l.width/2)}Re.push({task:c,label:l,row:h,x0:y,x1:p,labelX:x,inside:_})}let Jt=t.tickInterval||qe(e,"tickInterval")||"",en=t.weekday??qe(e,"weekday")??"sunday",tn=Math.max(2,Math.min(10,Math.floor(ee/(Fe+24)))),nn=Kt(Jt,en,v,E,Math.ceil(ee/3))??Pt(v,E,tn),rt="",at="",it="",Ce=-1/0,ot="",sn=U+ne/2+2,rn=I-se-ne/2-2;for(let c of nn){let l=H(c);rt+=`M${f(l)},${f(I-se)}V${f(U)}`;let h=$e(c),y=i.width(h,m,0);if(l-y/2<Ce+8||h===ot)continue;Ce=l+y/2,ot=h,C=Math.max(C,Ce);let p=`text-anchor="middle">${kt(h)}</text>`;at+=`<text x="${f(l)}" y="${f(sn+m*.35)}" ${p}`,Y&&(it+=`<text x="${f(l)}" y="${f(rn+m*.35)}" ${p}`)}let Le="",Oe="",j=[],an=U+ne+4,Ge=Math.round(o*1.5);for(let c of[...Bt].sort((l,h)=>+l.startTime-+h.startTime)){let l=H(+c.startTime),h=Zt(c.task,i,o),y=Math.max(a+h.width/2,l),p=0;for(;p<j.length&&y-h.width/2<j[p]+8;)p++;j[p]=y+h.width/2,C=Math.max(C,j[p]),Le+=`<path class="pele-vert" data-id="${ae(c.id)}" d="M${f(l)},${f(I-se)}V${f(U)}"/>`,Oe+=V(h,y,an+p*Ge+Ge/2,` class="pele-vert-label" data-id="${ae(c.id)}"`)}let me=Math.ceil(Math.max(C,a+N.width)+a),ct=Math.ceil(U+ne+(j.length>0?4+j.length*Ge:0)+a),He="",lt="";for(let c=0;c<Ie;){let l=z[c],h=c+1;for(;h<Ie&&z[h]===l;)h++;let y=B.get(l)%k,p=I+c*d,_=(h-c)*d;(B.size>1||l!=="")&&(He+=`<rect class="pele-section pele-section-${y}" x="0" y="${f(p)}" width="${me}" height="${f(_)}" fill="${y%2===0?"var(--_s)":"none"}"/>`);let x=Je.get(l);lt+=V(x,a+8+x.width/2,p+_/2,` class="pele-section-label" data-id="${ae(l)}"`,n.icons),c=h}let We="";if((t.excludes.length>0||t.includes.length>0)&&+we(new Date(v),6,"y")>E){let c,l,h=()=>{if(!c||!l)return;let y=new Date(c);y.setHours(0,0,0,0);let p=new Date(l);p.setHours(23,59,59,999);let _=Math.max(R,H(+y)),x=Math.min(te,H(+p));x>_&&(We+=`<rect x="${f(_)}" y="${f(I)}" width="${f(x-_)}" height="${f(st)}"/>`),c=l=void 0};for(let y=new Date(v);+y<=E;y=$(y,1))t.isInvalidDate(y)?(c??=y,l=y):h();h()}let dt=[],ut="";for(let c of Re){let l=c.task,h=I+c.row*d+d/2,y=l.active?"active":l.done?"done":"",p="pele-task";y&&(p+=" pele-"+y),l.crit&&(p+=" pele-crit"),l.milestone&&(p+=" pele-milestone"),l.classes.includes("clickable")&&(p+=" pele-clickable");let _="",x="";if(Number.isNaN(c.x0))p+=" pele-unscheduled",x=' fill="var(--_m)"';else{let ze=l.crit?Dt:"var(--_c)",mt=y==="done"?'fill="var(--_a)"':y==="active"?`fill="${ze}" fill-opacity="0.25"`:`fill="${ze}"`,ht=`stroke="${y==="done"&&!l.crit?"var(--_b)":ze}"`;if(l.milestone){let ge=(c.x0+c.x1)/2,ye=w/2;_=`<path d="M${f(ge)},${f(h-ye)}L${f(ge+ye)},${f(h)}L${f(ge)},${f(h+ye)}L${f(ge-ye)},${f(h)}Z" ${mt} ${ht} stroke-linejoin="round"/>`}else _=`<rect x="${f(c.x0)}" y="${f(h-w/2)}" width="${f(c.x1-c.x0)}" height="${f(w)}" ${mt} ${ht}${bt}/>`;c.inside?x=y===""?' fill="var(--_bg)"':"":y==="done"&&(x=' fill="var(--_m)"')}let S=_+V(c.label,c.labelX,h,` class="pele-label"${x}`),he=t.links.get(l.id);he!==void 0&&(S=wt(S,he,l.id,dt,n)),ut+=`<g class="${p}" data-id="${ae(l.id)}">${S}</g>`}let ft="";if(t.todayMarker!=="off"&&r>=v&&r<=E&&E>v){let c=H(r),l=I-se,h=t.todayMarker?Mt(t.todayMarker.split(",")).line:"";ft=`<g class="pele-today"><path d="M${f(c)},${f(l)}V${f(U)}" fill="none" stroke="var(--_c)" stroke-width="2"${h}/>`+(h?"":`<path d="M${f(c-4)},${f(l-5)}H${f(c+4)}L${f(c)},${f(l+1)}Z" fill="var(--_c)"/>`)+"</g>"}let on=`M${f(R)},${f(U)}H${f(te)}`+(Y?`M${f(R)},${f(I-se)}H${f(te)}`:""),cn=V(N,me/2,a+N.height/2,' class="pele-title" font-weight="var(--_tw)"')+(He?`<g class="pele-sections">${He}</g>`:"")+(We?`<g class="pele-excluded" fill="var(--_a)">${We}</g>`:"")+`<g class="pele-grid" fill="none"><path d="${rt}" stroke="var(--_b)" stroke-dasharray="1 3"/><path d="${on}" stroke="var(--_b)"/></g>`+(Le?`<g class="pele-verts" fill="none" stroke="var(--_l)" stroke-width="1.5" stroke-dasharray="4 3">${Le}</g>`:"")+ft+`<g class="pele-tasks" font-size="${f(o)}">${ut}</g><g class="pele-section-labels" font-size="${f(u)}">${lt}</g><g class="pele-axis" font-size="${m}" fill="var(--_m)">${at}${it}</g>`+(Oe?`<g class="pele-vert-labels" font-size="${f(o)}">${Oe}</g>`:"");return{svg:Ue("gantt",me,ct,s,n,t,cn),width:me,height:ct,links:dt}}var Fs={type:"gantt",parse(t,e,n){let s=new be;n&&(s.title=n);let i=e.gantt?.displayMode;return typeof i=="string"&&(s.displayMode=i),Ht(t,s),s},render:Xt};export{Fs as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{b as y,d as L,e as M,f as S,g as $,h as H,j}from"./KHUP5TOH.js";var b=/\s/;function A(e,a,d,g,l=0){let r=[];for(let h of e.split(`
|
|
2
|
+
`)){let n=Array.from(h);n.length===0&&r.push("");let t=0;for(;t<n.length;){let f=u=>a.width(n.slice(t,t+u).join(""),d,l)<=g,i=1;for(;i<n.length-t&&f(i);)i=Math.min(n.length-t,i*2);let m=1;for(;m<i;){let u=Math.ceil((m+i)/2);f(u)?m=u:i=u-1}let p=m,w=t+p<n.length;if(w&&!b.test(n[t+p])){for(let u=p-1;u>0;u--)if(b.test(n[t+u])){p=u+1;break}}let x=n.slice(t,t+p).join("");for(r.push(w&&x.trimEnd()||x),t+=p;w&&t<n.length&&b.test(n[t]);)t++}}e===""&&(r.length=0);let c=r.map(h=>a.width(h,d,l)),s=0;for(let h of c)s=Math.max(s,h);let o=Math.round(d*1.5);return{lines:r.map((h,n)=>[{text:h,style:l,width:c[n]}]),widths:c,width:s,height:r.length*o,size:d,lineHeight:o}}function T(e,a,d){if(e.width<=d)return e;let g=[],l=[];for(let s=0;s<e.lines.length;s++){if(e.widths[s]<=d){g.push(e.lines[s]),l.push(e.widths[s]);continue}let o=[],h=0,n=()=>{g.push(o),l.push(h),o=[],h=0};for(let t of e.lines[s]){if(t.icon!==void 0||t.math){o.length&&h+t.width>d&&n(),o.push(t),h+=t.width;continue}for(let f of Array.from(t.text)){let i=o[o.length-1],m=i&&i.icon===void 0&&i.math===void 0&&i.style===t.style,w=a.width(m?i.text+f:f,e.size,t.style)-(m?i.width:0);o.length&&h+w>d&&(n(),i=void 0,w=a.width(f,e.size,t.style)),i&&i.icon===void 0&&i.math===void 0&&i.style===t.style?(i.text+=f,i.width+=w):o.push({text:f,style:t.style,width:w}),h+=w}}(o.length||!e.lines[s].length)&&n()}let r=0;for(let s of l)r=Math.max(r,s);let c={...e,lines:g,widths:l,width:r,height:g.length*e.lineHeight};return e.heights?j(c):c}function E(e,a,d,g){let l=$(e),r="<text"+H(g,l),c="";for(let s=0;s<e.lines.length;s++){let o=e.lines[s],h=d+(s+.5)*e.lineHeight;if(o.some(t=>t.icon!==void 0)){let t=e.widths[s];c+=M({...e,lines:[o],widths:[t],width:t,height:e.lineHeight},a+t/2,h,g);continue}let n="";for(let t of o){let f=S(t.style&~l);n+=f?`<tspan${f}>${y(t.text)}</tspan>`:y(t.text)}n!==""&&(c+=`${r} x="${L(a)}" y="${L(h+e.size*.35)}" text-anchor="start" xml:space="preserve">${n}</text>`)}return c}export{A as a,T as b,E as c};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a}from"./W2WY5CQX.js";import"./IU7WZTP6.js";import"./KHUP5TOH.js";import"./YWXUFHC7.js";export{a as info};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{d as u,e as f,i as b}from"./KHUP5TOH.js";import{o as s}from"./YWXUFHC7.js";function g(r,n,i,t){return s(()=>b(r,!1,n,i,t,1))}function x(r,n,i,t,l,a,m){let e=g(r,n,i,4e3);if(e.height===0)return{width:l,height:a,content:m};let h=e.height+12,o=Math.max(l,Math.ceil(e.width+2*t));return{width:o,height:Math.ceil(a+h),content:f(e,o/2,t+e.height/2,' class="pele-title" font-weight="var(--_tw)"')+`<g transform="translate(${u((o-l)/2)},${u(h)})">${m}</g>`}}export{g as a,x as b};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a}from"./TK23BXEA.js";import"./IU7WZTP6.js";import"./UWRPUF3N.js";import"./2CHDFZHC.js";import"./KHUP5TOH.js";import"./YWXUFHC7.js";export{a as cynefin};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a}from"./DO6ND2WD.js";import"./D5TW5CPZ.js";import"./OHJ2EJXK.js";import"./DKTLEL5E.js";import"./IU7WZTP6.js";import"./UWRPUF3N.js";import"./2CHDFZHC.js";import"./KHUP5TOH.js";import"./YWXUFHC7.js";export{a as eventmodeling};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
function s(o,c,e){for(let t=0;t<e.length;t++){let n=o.charCodeAt(c+t),r=e.charCodeAt(t);if(n!==r&&!(r>=97&&r<=122&&n===r-32))return!1}return!0}export{s as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a}from"./LJ44NU43.js";import"./G3MDBVQH.js";import"./YUPSMAUO.js";import"./LLLWOAQD.js";import"./PDMLSE6I.js";import"./NDSCUZ25.js";import"./GUJTEFZK.js";import"./DKTLEL5E.js";import"./UWRPUF3N.js";import"./2CHDFZHC.js";import"./KHUP5TOH.js";import"./YWXUFHC7.js";export{a as er};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a}from"./EI4VGK5C.js";import"./LLLWOAQD.js";import"./PDMLSE6I.js";import"./GUJTEFZK.js";import"./DKTLEL5E.js";import"./UWRPUF3N.js";import"./2CHDFZHC.js";import"./KHUP5TOH.js";import"./YWXUFHC7.js";export{a as requirement};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import{g}from"./GUJTEFZK.js";import{c as m,d as _}from"./KHUP5TOH.js";import{g as a}from"./YWXUFHC7.js";var x=["1","INVALID","SPACELINE","NL","EOF","","SPACELIST","ICON","CLASS","NODE_DSTART","NODE_ID","NODE_DESCR","NODE_DEND","SHAPE_DATA"];function P(E,D){return E===5?D?"KANBAN":"MINDMAP":x[E]}var O={DEFAULT:0,NO_BORDER:0,ROUNDED_RECT:1,RECT:2,CIRCLE:3,CLOUD:4,BANG:5,HEXAGON:6};function W(E,D){switch(E){case"[":return O.RECT;case"(":return D===")"?O.ROUNDED_RECT:O.CLOUD;case"((":return O.CIRCLE;case")":return O.CLOUD;case"))":return O.BANG;case"{{":return O.HEXAGON;default:return O.DEFAULT}}var y=/\s+/y,d=/.+/y,H=/[^([\n){}]+/y,v=/[^([\n){}@]+/y,w=/[^)\](}]+/y,k=/[^`"]+/y,$=/[^}^"]+/y,B=/\n\s*/g;function p(E,D,r){for(let T=0;T<r.length;T++)if((E.charCodeAt(D+T)|32)!==r.charCodeAt(T))return!1;return!0}function F(E,D){let r=E.length,T=[],i=[],I=[],c=D?"kanban":"mindmap",u=D?v:H,e=0,t=0,L=-1,l=(n,A,N)=>{T.push(n),i.push(A),I.push(t),t=N},s=(n,A,N)=>{l(n,E.slice(t,A),A),e=N},o=(n,A)=>(n.lastIndex=A,n.test(E)?n.lastIndex:-1),f=n=>{let A=E.indexOf(n,t);return A===-1?r:A};for(;t<r;){let n=E.charCodeAt(t),A=E.charCodeAt(t+1),N;if(e===0){let S=n<=32||n>=160?Math.max(o(y,t),t):t;if(D&&n===64&&A===123)l(13,"",t+2),e=6;else if(E.charCodeAt(S)===37&&E.charCodeAt(S+1)===37)s(2,o(d,S),0);else if(S>t)L<t&&(L=f(`
|
|
2
|
+
`)),L>=S?s(6,S,0):(N=E.lastIndexOf(`
|
|
3
|
+
`,S-1))>t?s(2,N+1,0):s(3,t+1,0);else if(p(E,t,c)&&!g(E.charCodeAt(t+c.length)))s(5,t+c.length,0);else if(n===58&&A===58&&E.charCodeAt(t+2)===58)t+=3,e=1;else if(n===58&&A===58&&p(E,t+2,"icon")&&E.charCodeAt(t+6)===40)t+=7,e=2;else if(n===45&&A===41||n===40&&(A===45||A===40)||(n===41||n===123)&&A===n)s(9,t+2,3);else if(n===41||n===40||n===91)s(9,t+1,3);else if((N=o(u,t))!==-1)s(10,N,0);else break}else if(e===3)n===34?(e=A===96?5:4,t+=A===96?2:1):n===41||n===40?s(12,A===n||n===40&&A===45?t+2:t+1,0):n===93?s(12,t+1,0):n===125&&A===125||n===45&&A===41?s(12,t+2,0):s(11,o(n===125?d:w,t),3);else if(e===4)n===34?(t++,e=3):s(11,f('"'),4);else if(e===5)if(n===96&&A===34)t+=2,e=3;else if((N=o(k,t))!==-1)s(11,N,5);else break;else if(e===1)if((N=o(d,t))!==-1)s(8,N,0);else if(n===10)t++,e=0;else break;else if(e===2)n===41?(t++,e=0):s(7,f(")"),2);else if(e===6)if(n===34)s(13,t+1,7);else if(n===125)t++,e=0;else if((N=o($,t))!==-1)s(13,N,6);else break;else n===34?s(13,t+1,6):(N=f('"'),l(13,E.slice(t,N).replace(B,"<br/>"),N))}return t<r?l(1,"",t):(e===0&&l(4,"",r),l(0,"",r)),{types:T,texts:i,starts:I}}var C="'SPACELINE', 'NL', 'EOF'",h=new Uint8Array(14);for(let E of[2,6,7,8,9,10])h[E]=1;function R(E){return E===2||E===3||E===4}function Y(E,D,r){let T=r?"kanban":"mindmap",{types:i,texts:I,starts:c}=F(E,r),u=r?", 'SHAPE_DATA'":"",e=0,t=s=>{let o=i[e];throw o===1?a(T,E,c[e],"",!0):a(T,E,c[e],`Expecting ${s}, got '${P(o,r)}'`)},L=`'${P(5,r)}'`;if(i[e]===2){for(e++;i[e]===2||i[e]===3;)e++;i[e]!==5&&t(`'SPACELINE', 'NL', ${L}`)}else i[e]!==5&&t(`'SPACELINE', ${L}`);e++;let l="'SPACELINE', 'NL', 'SPACELIST', 'ICON', 'CLASS', 'NODE_DSTART', 'NODE_ID'";for(i[e]===3&&(e++,l="'SPACELINE', 'SPACELIST', 'ICON', 'CLASS', 'NODE_DSTART', 'NODE_ID'");;){let s=i[e],o=0,f=s===6;if(f&&(o=I[e++].length,s=i[e]),s===10||s===9){let n,A,N=0;if(s===10&&(n=I[e++]),i[e]===9){let S=I[e++];i[e]!==11&&t("'NODE_DESCR'"),A=I[e++],i[e]!==12&&t("'NODE_DEND'");let b=I[e++];!R(i[e])&&i[e]!==13&&t(C+u),N=D.getType(S,b)}else!R(i[e])&&i[e]!==13&&t(C+", 'NODE_DSTART'"+u),A=n;if(i[e]===13){let S=I[e++];for(;i[e]===13;)S+=I[e++];R(i[e])||t(C+u),D.addNode(o,n??A,A,N,S)}else D.addNode(o,n??A,A,N)}else if(s===7||s===8){let n=I[e++];R(i[e])||t(C),D.decorateNode(s===7?{icon:n}:{class:n})}else f?R(s)||t(C+", 'ICON', 'CLASS', 'NODE_DSTART', 'NODE_ID'"):s===2?R(i[++e])||t(C):t(l);for(e++;i[e]===3||i[e]===4;)e++;if(i[e]===0)return;h[i[e]]===0&&t(C+", 'SPACELIST', 'ICON', 'CLASS', 'NODE_DSTART', 'NODE_ID'")}}function X(E,D,r,T,i){return`<svg class="pele-icon" data-icon="${m(E)}" x="${_(D)}" y="${_(r)}" width="${_(T)}" height="${_(T)}" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">${i?.(E)??""}</svg>`}export{W as a,Y as b,X as c};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import{a as X}from"./RVARI57O.js";import{a as pt,c as Lt,d as et,e as mt,g as nt}from"./GUJTEFZK.js";import{c as Xt}from"./DKTLEL5E.js";import{c as Pt,d as $,e as Y,i as _t,o as Ot,s as wt,t as kt,u as vt,v as $t}from"./KHUP5TOH.js";import{a as xt,g as At,p as It}from"./YWXUFHC7.js";var ne=/^\d+$/,Ft=/^#?([\dA-Fa-f]{6}|[\dA-Fa-f]{3})$/,ie=/^\d+px$/;function ut(t,e,i){return new xt(`value for ${t} ${e} is invalid, please use a valid ${i}`,"semantic",{type:"quadrantChart"})}function se(t){let e=t.trim(),i=e.indexOf(":");if(i===-1)return[e,"undefined"];let r=e.slice(i+1).trimStart(),d=r.indexOf(":");return[e.slice(0,i).trimEnd(),d===-1?r:r.slice(0,d).trimEnd()]}function Bt(t){let e={};for(let i of t){let[r,d]=se(i);if(r==="radius"){if(!ne.test(d))throw ut(r,d,"number");e.radius=parseInt(d)}else if(r==="color"){if(!Ft.test(d))throw ut(r,d,"hex code");e.color=d}else if(r==="stroke-color"){if(!Ft.test(d))throw ut(r,d,"hex code");e.strokeColor=d}else if(r==="stroke-width"){if(!ie.test(d))throw ut(r,d,"number of pixels (eg. 10px)");e.strokeWidth=d}else throw new xt(`style named ${r} is not supported.`,"semantic",{type:"quadrantChart"})}return e}function F(t){return{text:t.text.trim(),type:t.type}}var lt=class{type="quadrantChart";title;accTitle;accDescr;quadrants=[void 0,void 0,void 0,void 0];xAxisLeft;xAxisRight;yAxisBottom;yAxisTop;points=[];classes=new Map;setQuadrant1Text(e){this.quadrants[0]=F(e)}setQuadrant2Text(e){this.quadrants[1]=F(e)}setQuadrant3Text(e){this.quadrants[2]=F(e)}setQuadrant4Text(e){this.quadrants[3]=F(e)}setXAxisLeftText(e){this.xAxisLeft=F(e)}setXAxisRightText(e){this.xAxisRight=F(e)}setYAxisBottomText(e){this.yAxisBottom=F(e)}setYAxisTopText(e){this.yAxisTop=F(e)}addPoint(e,i,r,d,a){this.points.push({x:Number(r),y:Number(d),text:F(e),className:i,...Bt(a)})}addClass(e,i){this.classes.set(e,Bt(i))}setDiagramTitle(e){this.title=e}setAccTitle(e){this.accTitle=e.replace(/^\s+/g,"")}setAccDescription(e){this.accDescr=e.replace(/\n\s+/g,`
|
|
2
|
+
`)}};var gt=["$end","INVALID","NEWLINE","title","title_value","acc_title","acc_title_value","acc_descr","acc_descr_value","acc_descr_multiline_value","X-AXIS","Y-AXIS","AXIS-TEXT-DELIMITER","QUADRANT_1","QUADRANT_2","QUADRANT_3","QUADRANT_4","CLASSDEF","MD_STR","STR","class_name","point_start","point_x","point_y","QUADRANT","ALPHA","UNICODE_TEXT","COLON","PLUS","COMMA","EQUALS","MULT","BRKT","UNDERSCORE","DOT","AMP","MINUS","NUM","SPACE","SEMI","PUNCTUATION","EOF"];var Et=[41,4,6,8,9,19],Ct=new Uint8Array(128);for(let[t,e]of[[":",27],["+",28],[",",29],["=",30],["*",31],["#",32],["_",33],[".",34],["&",35],["-",36],[" \v\f",38],[";",39],["!$%'`?\\/",40]])for(let i=0;i<t.length;i++)Ct[t.charCodeAt(i)]=e;function qt(t){let e=t.length,i=[],r=[],d=[],a=[],N=0,n=0,M=0,T=0,Q=0,l=0,x=0,S=0,L=0,I=0,p=(o,y,C)=>{i.push(o),r.push(t.slice(y,C)),d.push(y),n=C},P=o=>{a.push(N),N=o},k=()=>{a.length>0&&(N=a.pop())},G=o=>{let y=t.indexOf(`
|
|
3
|
+
`,o);return y===-1?e:y},z=o=>{for(;t.charCodeAt(o)===32;)o++;return o},U=o=>{for(;o<e&&pt(t.charCodeAt(o));)o++;return o},q=o=>{let y=t.charCodeAt(o);if(y===49)return o+1;if(y!==48)return-1;let C=o+1;if(C<e&&!Lt(t.charCodeAt(C))&&et(t.charCodeAt(C+1)))for(C+=2;et(t.charCodeAt(C));)C++;return C};t:for(;n<e;){let o=t.charCodeAt(n),y=t.charCodeAt(n+1);switch(N){case 0:break;case 1:case 2:case 3:p(Et[N],n,G(n)),k();continue;case 4:if(o===125)n++,k();else{let s=t.indexOf("}",n);p(9,n,s===-1?e:s)}continue;case 5:if(o===34)n++,k();else{let s=t.indexOf('"',n);p(19,n,s===-1?e:s)}continue;case 6:if(o===96&&y===34){n+=2,k();continue}if(o!==96&&o!==34){let s=n+1;for(let u=t.charCodeAt(s);s<e&&u!==96&&u!==34;u=t.charCodeAt(++s));p(18,n,s);continue}break t;case 7:if(nt(o)){let s=n+1;for(;nt(t.charCodeAt(s));)s++;p(20,n,s),k();continue}break t;case 8:{let s=q(n);if(s!==-1){p(22,n,s),P(9);continue}let u=U(n);if(t.charCodeAt(u)===93){n=z(u+1),k();continue}break t}case 9:{let s=U(n);if(t.charCodeAt(s)===44){n=U(s+1),N=10;continue}break t}case 10:{let s=q(n);if(s!==-1){p(23,n,s),k();continue}break t}}if(o===37&&y===37){n=G(n+2);continue}if(o===10||o===13){let s=n+1;for(let u=t.charCodeAt(s);u===10||u===13;u=t.charCodeAt(++s));p(2,n,s);continue}let C=o|32;if(C===116&&X(t,n,"title")&&!nt(t.charCodeAt(n+5))){p(3,n,n+5),P(1);continue}if(C===97&&X(t,n,"acc")){let s=X(t,n+3,"descr");if(s||X(t,n+3,"title")){let u=U(n+8),E=t.charCodeAt(u);if(E===58){p(s?7:5,n,U(u+1)),P(s?3:2);continue}if(E===123&&s){n=U(u+1),P(4);continue}}}let m=n;o===32&&((n<M||n>=T)&&(M=n,T=z(n)),m=T);let W=t.charCodeAt(m),H=W|32,O=0,v=0;if(H===120&&X(t,m,"x-axis"))O=10,v=m+6;else if(H===121&&X(t,m,"y-axis"))O=11,v=m+6;else if(W===45){if(m<Q||m>=l)for(Q=m,l=m;t.charCodeAt(l)===45;)l++;l-m>=2&&t.charCodeAt(l)===62&&(O=12,v=l+1)}else if(H===113&&X(t,m,"quadrant")){let s=t.charCodeAt(m+9);t.charCodeAt(m+8)===45&&s>=49&&s<=52?(O=13+s-49,v=m+10):X(t,m+8,"chart")&&(O=24,v=m+13)}if(O!==0){p(O,n,z(v));continue}if(C===99&&X(t,n,"classdef")&&!nt(t.charCodeAt(n+8))){p(17,n,n+8);continue}if(o===34){y===96?(n+=2,P(6)):(n++,P(5));continue}if(o===58&&y===58&&t.charCodeAt(n+2)===58){n+=3,P(7);continue}if(o===58||pt(o)){let s=n;if(o!==58&&((n<x||n>=S)&&(x=n,S=U(n)),s=S),t.charCodeAt(s)===58&&((s+1<L||s+1>=I)&&(L=s+1,I=U(s+1)),t.charCodeAt(I)===91)){p(21,n,U(I+1)),P(8);continue}}if(mt(o)){let s=n+1;for(;mt(t.charCodeAt(s));)s++;p(25,n,s);continue}if(o>=128){let s=n+1;for(;t.charCodeAt(s)>=128;)s++;p(26,n,s);continue}if(et(o)){let s=n+1;for(;et(t.charCodeAt(s));)s++;p(37,n,s);continue}if(Ct[o]!==0){p(Ct[o],n,n+1);continue}break}return n<e?(i.push(1),r.push(""),d.push(n),{types:i,texts:r,starts:d}):(N<Et.length&&(i.push(Et[N]),r.push(""),d.push(e)),i.push(0),r.push(""),d.push(e),{types:i,texts:r,starts:d})}function ht(...t){let e=new Uint8Array(42);for(let i of t)e[i]=1;return e}var Wt=ht(40,35,37,25,29,28,30,31,34,32,33,26),Ht=ht(25,37,36,29,27,35,32,31,26),Nt=ht(25,37,27,38,32,36),Kt=ht(2,39,41),ae=["setQuadrant1Text","setQuadrant2Text","setQuadrant3Text","setQuadrant4Text"],re="'STR', 'MD_STR', 'ALPHA', 'NUM', 'UNICODE_TEXT', 'PUNCTUATION'";function Yt(t,e){let{types:i,texts:r,starts:d}=qt(t),a=0,N=l=>{let x=i[a];throw x===1?At("quadrantChart",t,d[a],"",!0):At("quadrantChart",t,d[a],`Expecting ${l}, got '${gt[x]}'`)},n=l=>(i[a]!==l&&N(`'${gt[l]}'`),r[a++]),M=l=>l===19||l===18||Wt[l]===1,T=()=>{let l=i[a];M(l)||N(re);let x=r[a++];for(;Wt[i[a]]===1||i[a]===38||i[a]===36;)x+=r[a++];return{text:x,type:l===18?"markdown":"text"}},Q=()=>{let l=[];for(;;){Nt[i[a]]===0&&N("'ALPHA', 'NUM', 'COLON', 'SPACE', 'BRKT', 'MINUS'");let x=r[a++];for(;Nt[i[a]]===1;)x+=r[a++];if(l.push(x.trim()),i[a]!==29)return l;a++}};for(;Kt[i[a]]===1||i[a]===38;)a++;for(n(24);i[a]!==0;){for(;i[a]===38;)a++;let l=i[a];switch(l){case 17:{a++,n(38),Ht[i[a]]===0&&N("'ALPHA', 'NUM', 'UNICODE_TEXT'");let x=r[a++];for(;Ht[i[a]]===1;)x+=r[a++];n(38),e.addClass(x,Q());break}case 10:case 11:{a++;let x=T(),S;i[a]===12&&(a++,M(i[a])?S=T():x.text+=" ⟶ "),l===10?(e.setXAxisLeftText(x),S&&e.setXAxisRightText(S)):(e.setYAxisBottomText(x),S&&e.setYAxisTopText(S));break}case 13:case 14:case 15:case 16:a++,e[ae[l-13]](T());break;case 3:a++,e.setDiagramTitle(n(4).trim());break;case 5:a++,e.setAccTitle(n(6).trim());break;case 7:a++,e.setAccDescription(n(8).trim());break;case 9:e.setAccDescription(r[a++].trim());break;default:if(M(l)){let x=T(),S=i[a]===20?r[a++]:"";n(21);let L=n(22),I=n(23);e.addPoint(x,S,L,I,Nt[i[a]]===1?Q():[])}}Kt[i[a]]===0&&N("'NEWLINE', 'SEMI', 'EOF'"),a++}}var zt=4,oe=300;function yt(t,e){return t.quadrantChart?.[e]}function B(t,e,i,r){let d=yt(t,e);return typeof d=="number"&&d>=0?Math.min(d,r):i}function jt(t){return t.startsWith("#")?t:"#"+t}function Gt(t,e,i){let r=i.fontSize??16,d=Math.round(r*.875),a=Math.round(r*.75),N=i.measurer??It(i.fontFamily,i.fontFamilyMono),n=Math.round(Math.max(100,B(e,"chartWidth",500,4e3))),M=Math.round(Xt(i,n,280)),T=Math.round(Math.max(100,B(e,"chartHeight",500,4e3))*M/n),Q=B(e,"quadrantPadding",i.padding??8,200),l=B(e,"xAxisLabelPadding",5,200),x=B(e,"yAxisLabelPadding",5,200),S=t.points.length>0,L=(c,f,_)=>_t(c?.text,c?.type==="markdown",N,f,Math.max(_,40)),I=_t(t.title,!1,N,r,Math.max(M-2*Q,40),1),p=B(e,"titlePadding",10,200),P=I.height>0?I.height+p:0,k=!!(t.xAxisLeft?.text||t.xAxisRight?.text),G=!!(t.yAxisBottom?.text||t.yAxisTop?.text),z=S||yt(e,"xAxisPosition")==="bottom",U=yt(e,"yAxisPosition")==="right",q=M-2*Q,o=L(t.xAxisLeft,d,t.xAxisRight?q/2-16:q),y=L(t.xAxisRight,d,q/2-16),C=Math.max(o.height,y.height),m=k?C+l:0,W=T-2*Q-P-m,H=L(t.yAxisBottom,d,t.yAxisTop?W/2-16:W),O=L(t.yAxisTop,d,W/2-16),v=Math.max(H.height,O.height),s=G?v+x:0,u=Q+(U?0:s),E=Q+P+(z?0:m),D=Math.max(0,q-s),b=Math.max(0,W),K=Math.max(0,(D-zt)/2),V=Math.max(0,(b-zt)/2),R=[u+K,E,u+D-K,E+b,u,E+V,u+D,E+b-V],Vt=(c,f,_,A,g)=>{for(let h=c;h<R.length;h+=4)if(!(R[h]>=R[h+2]||R[h+1]>=R[h+3])&&f<R[h+2]&&A>R[h]&&_<R[h+3]&&g>R[h+1])return!1;return!0},Jt=B(e,"quadrantTextTopPadding",5,200),St="";for(let c=0;c<4;c++){let f=c===0||c===3?u+D-K:u,_=c<2?E:E+b-V,A=L(t.quadrants[c],r,K-16),g=f+K/2,h=S?_+Jt+A.height/2:_+V/2;R.push(g-A.width/2,h-A.height/2,g+A.width/2,h+A.height/2),St+=`<g class="pele-quadrant" data-id="${c+1}"><rect x="${$(f)}" y="${$(_)}" width="${$(K)}" height="${$(V)}"${Ot}/>`+Y(A,g,h,' class="pele-label" fill="var(--_fg)" stroke="none"')+"</g>"}let it="";if(k){let c=z?E+b+l+C/2:E-l-C/2;it+=Y(o,y.height>0?u+D/4:u+o.width/2,c,"")+Y(y,u+D*3/4,c,"")}if(G){let c=U?u+D+x+v/2:u-x-v/2,f=(_,A)=>_.height>0?`<g transform="translate(${$(c)},${$(A)}) rotate(-90)">${Y(_,0,0,"")}</g>`:"";it+=f(H,O.height>0?E+b*3/4:E+b-H.width/2)+f(O,E+b/4)}let Zt=B(e,"pointRadius",5,200),Mt=B(e,"pointTextPadding",5,200),Rt=vt(0),J=[],Tt=[];for(let c of t.points){if(!(c.x>=0&&c.x<=1&&c.y>=0&&c.y<=1))continue;let f=t.classes.get(c.className),_=Math.min(c.radius??f?.radius??Zt,2e3),A=c.color??f?.color,g=c.strokeColor??f?.strokeColor,h=c.strokeWidth??f?.strokeWidth,w=[];A&&w.push("fill:"+jt(A)),h&&(g&&w.push("stroke:"+jt(g)),w.push("stroke-width:"+h));let st=u+c.x*D,at=E+(1-c.y)*b;J.push({cx:st,cy:at,reach:_+(h?Math.min(parseInt(h),400)/2:0),text:L(c.text,a,200)}),Tt.push(`<circle class="pele-point${kt(c.className)}" data-id="${Pt(c.text.text)}" cx="${$(st)}" cy="${$(at)}" r="${$(_)}"${h&&!g?` stroke="${Rt}"`:""}${wt(w).shape}/>`)}let ft=J.length<=oe;if(ft)for(let{cx:c,cy:f,reach:_}of J)R.push(c-_,f-_,c+_,f+_);let Ut="";for(let{cx:c,cy:f,reach:_,text:A}of J){let g=A.width/2,h=A.size*.6+(A.height-A.lineHeight)/2,w=_+Mt,st=Math.min(w,Math.max(0,(K-A.width)/2)),at=8+4*(c<u+D/2?f<E+b/2?1:2:f<E+b/2?0:3),ee=Math.max(f+w,R[at+3]+Mt)+h,rt=[c,f+w+h,c,f-w-h,c+w+g,f,c-w-g,f,c,ee],ot=c,ct=rt[1],Dt=!1;for(let dt=0;dt<20;dt+=2){let j=dt%10,bt=j===8?st:0,Z=(j<4||j===8)&&A.width<D?Math.min(Math.max(rt[j],u+g+bt),u+D-g-bt):rt[j],tt=rt[j+1];if(Z-g<u||Z+g>u+D||tt-h<E||tt+h>E+b)continue;let Qt=!ft||Vt(dt<10?0:8,Z-g,tt-h,Z+g,tt+h);if((!Dt||Qt)&&(ot=Z,ct=tt,Dt=!0),Qt)break}ft&&R.push(ot-g,ct-h,ot+g,ct+h),Ut+=Y(A,ot,ct,' class="pele-label"')}let te=Y(I,M/2,p/2+I.height/2,' class="pele-title" font-weight="var(--_tw)"')+`<g class="pele-quadrants" fill="var(--_s)" stroke="var(--_b)">${St}</g>`+(it?`<g class="pele-axis-labels" font-size="${d}" fill="var(--_m)">${it}</g>`:"")+(J.length>0?`<g class="pele-points" fill="${Rt}">${Tt.reverse().join("")}</g><g class="pele-point-labels" font-size="${a}">${Ut}</g>`:"");return{svg:$t("quadrantChart",M,T,r,i,t,te),width:M,height:T,links:[]}}var be={type:"quadrantChart",parse(t,e,i){let r=new lt;return r.title=i,Yt(t,r),r},render:Gt};export{be as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{b as re,f as ge}from"./DKTLEL5E.js";import{a as me,b as ye,c as be,e as xe,f as we,g as Ae,h as Me,i as qt,j as $e,k as ve,m as Ie,n as ke,o as Te,p as Re,q as Se}from"./IU7WZTP6.js";import{j as de,k as ee,s as fe}from"./UWRPUF3N.js";import{c as Bt,d as D,e as Xt,i as Ot,o as ne,v as pe}from"./KHUP5TOH.js";import{a as ue,p as he}from"./YWXUFHC7.js";function It(s){throw new ue(s,"semantic",{type:"architecture"})}var Kt=class{type="architecture";title;accTitle;accDescr;nodes=new Map;groups=new Map;edges=[];layoutHints=[];registered=new Map;register(e,o,c){this.registered.has(o)&&It(`The ${e} id [${o}] is already in use by another ${this.registered.get(o)}`),c!==void 0&&(o===c&&It(`The ${e} [${o}] cannot be placed within itself`),this.registered.has(c)||It(`The ${e} [${o}]'s parent does not exist. Please make sure the parent is created before this ${e}`),this.registered.get(c)==="node"&&It(`The ${e} [${o}]'s parent is not a group`)),this.registered.set(o,e==="group"?"group":"node")}addService({id:e,icon:o,iconText:c,title:i,in:r}){this.register("service",e,r),this.nodes.set(e,{id:e,type:"service",icon:o,iconText:c,title:i,in:r})}addJunction({id:e,in:o}){this.register("junction",e,o),this.nodes.set(e,{id:e,type:"junction",in:o})}addGroup({id:e,icon:o,title:c,in:i}){this.register("group",e,i),this.groups.set(e,{id:e,icon:o,title:c,in:i})}addEdge({lhsId:e,rhsId:o,lhsDir:c,rhsDir:i,lhsInto:r,rhsInto:h,lhsGroup:b,rhsGroup:l,title:M}){let $=[["left",e,b],["right",o,l]];for(let[p,I]of $)this.registered.has(I)||It(`The ${p}-hand id [${I}] does not yet exist. Please create the service/group before declaring an edge to it.`);for(let[p,I]of $)this.nodes.has(I)||It(`The ${p}-hand id [${I}] is a group. Add {group} to a service inside it instead.`);let x=this.nodes.get(e).in;if(x!==void 0&&x===this.nodes.get(o).in)for(let[p,I,T]of $)T&&It(`The ${p}-hand id [${I}] is modified to traverse the group boundary, but the edge does not pass through two groups.`);this.edges.push({lhsId:e,lhsDir:c,lhsInto:r,lhsGroup:b,rhsId:o,rhsDir:i,rhsInto:h,rhsGroup:l,title:M})}addLayoutHint(e){e.members.length<2&&It(`An align directive requires at least two members; got ${e.members.length}`);let o=new Set;for(let c of e.members)this.registered.get(c)!=="node"&&It(`align ${e.direction} references [${c}], which is not a service or junction`),o.has(c)&&It(`align ${e.direction} lists [${c}] more than once`),o.add(c);this.layoutHints.push(e)}};function Ee(s,e){s.accDescr&&(e.accDescr=s.accDescr.replace(/\n\s+/g,`
|
|
2
|
+
`)),s.accTitle&&(e.accTitle=s.accTitle.replace(/^\s+/g,"")),s.title&&(e.title=s.title);for(let o of s.groups)e.addGroup(o);for(let o of s.services)e.addService(o);for(let o of s.junctions)e.addJunction(o);for(let o of s.edges)e.addEdge(o);for(let o of s.alignments)e.addLayoutHint({direction:o.direction,members:[...o.members]})}var De={name:"ID",pattern:/[\w]([-\w]*\w)?/y};function Gt(s){return{name:s,pattern:s,longer:[De]}}var Le=[Gt("architecture-beta"),Gt("junction"),Gt("service"),Gt("column"),Gt("group"),Gt("align"),Gt("row"),{name:"--",pattern:"--",longer:[qt]},Gt("in"),{name:":",pattern:":"},{name:"-",pattern:"-",longer:[qt]},{name:"ARROW_DIRECTION",pattern:/L|R|T|B/y},{name:"ARROW_GROUP",pattern:/\{group\}/y},{name:"ARROW_INTO",pattern:/<|>/y},ye,be,xe(String.raw`[-\w]*\w`),we,De,Ae,Me,qt,$e,ve,{name:"ARCH_ICON",pattern:/\([\w-:]+\)/y},{name:"ARCH_TITLE",pattern:/\[(?:"([^"\\]|\\.)*"|'([^'\\]|\\.)*'|[^\[\]\r\n]+)\]/y}];function oe(s){let e=s.slice(1,-1).trim();return(e.startsWith('"')&&e.endsWith('"')||e.startsWith("'")&&e.endsWith("'"))&&(e=e.slice(1,-1).replace(/\\"/g,'"').replace(/\\'/g,"'")),e.trim()}function Ge(s){let e=new Se(me(s,Le,"architecture"),Le,"architecture"),o={$type:"Architecture",groups:[],services:[],junctions:[],edges:[],alignments:[]},c=r=>e.kinds[e.i]===r,i=()=>{if(e.kind!==-1)for(e.kind!==19&&e.fail("a line break or the end of input");e.kind===19;)e.i++};for(;e.kind===19;)e.i++;for(e.expect(0);e.kind!==-1;){switch(e.kind){case 19:e.i++;continue;case 14:o.accDescr=Te(e.take());break;case 15:o.accTitle=ke(e.take());break;case 16:o.title=Ie(e.take());break;case 4:{e.i++;let r={$type:"Group",id:e.expect(18)};c(24)&&(r.icon=e.take().slice(1,-1)),c(25)&&(r.title=oe(e.take())),e.accept(8)&&(r.in=e.expect(18)),o.groups.push(r);break}case 2:{e.i++;let r={$type:"Service",id:e.expect(18)};c(17)?r.iconText=Re(e.take()):c(24)&&(r.icon=e.take().slice(1,-1)),c(25)&&(r.title=oe(e.take())),e.accept(8)&&(r.in=e.expect(18)),o.services.push(r);break}case 1:{e.i++;let r={$type:"Junction",id:e.expect(18)};e.accept(8)&&(r.in=e.expect(18)),o.junctions.push(r);break}case 18:{let r=e.take(),h=e.accept(12);e.expect(9);let b=e.expect(11),l=e.accept(13),M;e.accept(7)||(c(10)||e.fail("'--' or '-'"),e.i++,M=oe(e.expect(25)),e.expect(10));let $=e.accept(13),x=e.expect(11);e.expect(9);let p=e.expect(18),I=e.accept(12);o.edges.push({$type:"Edge",lhsId:r,lhsGroup:h,lhsDir:b,lhsInto:l,title:M,rhsInto:$,rhsDir:x,rhsId:p,rhsGroup:I});break}case 5:{e.i++,!c(6)&&!c(3)&&e.fail("'row' or 'column'");let r=e.take(),h=[e.expect(18),e.expect(18)];for(;c(18);)h.push(e.take());o.alignments.push({$type:"Alignment",direction:r,members:h});break}default:e.fail("a group, a service, a junction, an edge, an alignment, a title, or a line break")}i()}return o}var We=new Map([["database","M4 6a8 3 0 1 0 16 0a8 3 0 1 0-16 0M4 6v12a8 3 0 0 0 16 0V6M4 12a8 3 0 0 0 16 0"],["server","M3 4h18v7H3zM3 13h18v7H3zM7 7.5h.01M7 16.5h.01M11 7.5h6M11 16.5h6"],["disk","M5 3h14v18H5zM12 6.5a4 4 0 1 0 0 8a4 4 0 1 0 0-8M12 10.5h.01M8 18h3"],["internet","M3 12a9 9 0 1 0 18 0a9 9 0 1 0-18 0M3 12h18M12 3a13 13 0 0 0 0 18M12 3a13 13 0 0 1 0 18"],["cloud","M7 18a4 4 0 0 1-.5-7.97A6 6 0 0 1 18 9.5a4.25 4.25 0 0 1-.5 8.5z"]]);function Ce(s){let e=We.get(s);return e===void 0?"":`<path d="${e}" stroke="var(--_fg)" stroke-width="1.5"/>`}var Yt=[-1,1,0,0],Qt=[0,0,-1,1];function Wt(s){return s==="L"?0:s==="R"?1:s==="T"?2:3}var je=64,Zt=2**25,He=2**26;function Oe(s,e,o,c){let i=s.length,r=e.length,h=r,b=new Map,l=new Map,M=new Int32Array(i+r).fill(h),$=new Int32Array(r+1),x=[];for(let n=0;n<=r;n++)x.push([]);e.forEach((n,a)=>{l.set(n.id,a);let u=n.in===void 0?void 0:l.get(n.in);u!==void 0&&u!==a?(M[i+a]=u,$[a]=$[u]+1):$[a]=1}),s.forEach((n,a)=>{b.set(n.id,a);let u=n.in===void 0?void 0:l.get(n.in);u!==void 0&&(M[a]=u),x[M[a]].push(a)});for(let n=0;n<r;n++)x[M[i+n]].push(i+n);let p=[],I=[],T=[],R=[],E=[],C=[],J=new Array(i+r),ft=new Array(i+r),yt=(n,a,u,g,A)=>{if(n===a)return;let G=n,H=a,_=M[n],v=M[a];for(;_!==v;)$[_]>=$[v]?(G=i+_,_=M[G]):(H=i+v,v=M[H]);let Q=p.length;p.push(n),I.push(a),T.push(u),R.push(g),E.push(G),C.push(H),(A[G]??=[]).push(Q),(A[H]??=[]).push(Q)};for(let n of c){let a=n.direction==="row";for(let u=1;u<n.members.length;u++){let g=b.get(n.members[u-1]),A=b.get(n.members[u]);g!==void 0&&A!==void 0&&yt(g,A,a?1:3,a?0:2,J)}}for(let n of[!1,!0])for(let a of o){if(a.lhsDir===a.rhsDir!==n)continue;let u=b.get(a.lhsId),g=b.get(a.rhsId);u!==void 0&&g!==void 0&&yt(u,g,Wt(a.lhsDir),Wt(a.rhsDir),ft)}let z=new Int32Array(i+r),O=new Int32Array(i+r),B=new Int32Array(i+r).fill(1),W=new Int32Array(i+r).fill(1),bt=new Uint8Array(i+r),j=[],pt=new Map,nt=[],xt=new Map,kt=0,gt=0,wt=0,rt=(n,a)=>{gt=0,wt=0;for(let u=n;u!==a;u=i+M[u])gt+=z[u],wt+=O[u]},ct=(n,a,u)=>{if(z[n]=a,O[n]=u,bt[n]=1,j.push(n),B[n]*W[n]>je){nt.push(n);return}for(let g=u;g<u+W[n];g++)for(let A=a;A<a+B[n];A++)pt.set((A+Zt)*He+g+Zt,n)},Ct=(n,a,u,g,A)=>z[n]<a+g&&a<z[n]+B[n]&&O[n]<u+A&&u<O[n]+W[n],Jt=(n,a,u,g)=>{if(u*g>je){for(let A=kt;A<j.length;A++)if(Ct(j[A],n,a,u,g))return j[A];return-1}for(let A=a;A<a+g;A++)for(let G=n;G<n+u;G++){let H=pt.get((G+Zt)*He+A+Zt);if(H!==void 0)return H}for(let A of nt)if(Ct(A,n,a,u,g))return A;return-1},Tt=(n,a,u,g,A,G)=>{let H=`${n},${a},${u},${g},${A},${G}`,_=xt.get(H)??0;for(;;){let v=Jt(n+_*A,a+_*G,u,g);if(v<0)break;_=A>0?z[v]+B[v]-n:A<0?n+u-z[v]:G>0?O[v]+W[v]-a:a+g-O[v]}return xt.set(H,_),_},_t=(n,a)=>{let u=E[a]===n,g=u?C[a]:E[a];if(bt[g])return;let A=u?T[a]:R[a],G=u?R[a]:T[a];rt(u?p[a]:I[a],n);let H=gt,_=wt;rt(u?I[a]:p[a],g);let v=Yt[A],Q=Qt[A],Dt=0,V=0,st=Yt[A]+Yt[G]===0&&Qt[A]+Qt[G]===0;A===G?(v=Yt[A]===0?1:0,Q=1-v):st||(Dt=-Yt[G],V=-Qt[G]);let F,X;if(v!==0?(F=v>0?z[n]+B[n]:z[n]-B[g],X=O[n]+_+V-wt):(X=Q>0?O[n]+W[n]:O[n]-W[g],F=z[n]+H+Dt-gt),st){let k=ft[g];if(k!==void 0&&k.length>1){let N=[];for(let Y of k){let tt=C[Y]===g,jt=tt?E[Y]:C[Y];if(!bt[jt]||(tt?T[Y]:R[Y])!==A||(tt?R[Y]:T[Y])!==G)continue;rt(tt?p[Y]:I[Y],jt);let Ft=v!==0?O[jt]+wt:z[jt]+gt;rt(tt?I[Y]:p[Y],g),N.push(Ft-(v!==0?wt:gt))}N.length>1&&(N.sort((Y,tt)=>Y-tt),v!==0?X=N[N.length-1>>1]:F=N[N.length-1>>1])}let P=v===0?1:0,q=1-P,it=Tt(F,X,B[g],W[g],P,q),Z=it===0?0:Tt(F,X,B[g],W[g],-P,-q),at=it<=Z?it:-Z;F+=P*at,X+=q*at}else{let k=Tt(F,X,B[g],W[g],v,Q);F+=v*k,X+=Q*k}ct(g,F,X)},At=n=>{let a=x[n];if(a.length===0)return;j.length=0;let u=[];for(let k of a){if(bt[k])continue;kt=j.length,u.push(kt),pt.clear(),nt.length=0,xt.clear(),ct(k,0,0);let P=kt,q=kt,it=0;for(;;){if(P<j.length){let at=j[P++],N=J[at];if(N!==void 0)for(let Y of N)_t(at,Y);continue}if(q>=j.length)break;let Z=ft[j[q]];if(Z===void 0||it>=Z.length){q++,it=0;continue}_t(j[q],Z[it++])}}u.push(j.length);let g=u.length-1,A=new Array(g),G=new Array(g),H=new Array(g),_=new Array(g),v=0,Q=0;for(let k=0;k<g;k++){let P=1/0,q=1/0,it=-1/0,Z=-1/0;for(let at=u[k];at<u[k+1];at++){let N=j[at];P=Math.min(P,z[N]),q=Math.min(q,O[N]),it=Math.max(it,z[N]+B[N]),Z=Math.max(Z,O[N]+W[N])}A[k]=P,G[k]=q,H[k]=it-P,_[k]=Z-q,v+=H[k]*_[k],Q=Math.max(Q,H[k])}let Dt=Math.max(Q,Math.ceil(Math.sqrt(v*2))),V=0,st=0,F=0,X=0;for(let k=0;k<g;k++){V>0&&V+H[k]>Dt&&(st+=F,V=0,F=0);for(let P=u[k];P<u[k+1];P++)z[j[P]]+=V-A[k],O[j[P]]+=st-G[k];V+=H[k],F=Math.max(F,_[k]),X=Math.max(X,V)}n<r&&(B[i+n]=X,W[i+n]=st+F)};for(let n=r-1;n>=0;n--)At(n);At(h);let ot=new Int32Array(r),mt=new Int32Array(r),Mt=new Int32Array(r),Rt=new Uint8Array(r);for(let n=0;n<r;n++){let a=M[i+n];Mt[n]=a===h?-1:a,ot[n]=z[i+n]+(a===h?0:ot[a]),mt[n]=O[i+n]+(a===h?0:mt[a]),x[n].length===0&&(Rt[n]=1)}let St=new Int32Array(i),Et=new Int32Array(i),Lt=new Int32Array(i);for(let n=0;n<i;n++){let a=M[n];Lt[n]=a===h?-1:a,St[n]=z[n]+(a===h?0:ot[a]),Et[n]=O[n]+(a===h?0:mt[a])}return{col:St,row:Et,groupCol:ot,groupRow:mt,groupCols:B.slice(i),groupRows:W.slice(i),groupParent:Mt,groupEmpty:Rt,nodeParent:Lt}}var et=12,Je=6,_e=4,Fe=3,Ve=[-1,1,0,0],Ue=[0,0,-1,1];function ie(s,e,o,c,i){let r=s.architecture,h=r!==null&&typeof r=="object"&&!Array.isArray(r)?r[e]:void 0;return typeof h=="number"&&Number.isFinite(h)?Math.min(i,Math.max(c,h)):o}function Ne(s){let e=new Map;for(let o of s.sort((c,i)=>c-i))e.has(o)||e.set(o,e.size);return e}function ze(s,e,o,c,i){return`<svg class="pele-icon" data-icon="${Bt(s)}" x="${D(e)}" y="${D(o)}" width="${D(c)}" height="${D(c)}" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">${i?.(s)??Ce(s)}</svg>`}function qe(s,e,o,c){let i=s.lines.length>o;if(!i&&s.width<=e)return s;let r=c.width("…",s.size,0),h=[],b=[],l=0;for(let M=0;M<Math.min(o,s.lines.length);M++){let $=s.lines[M].map(p=>({...p})),x=s.widths[M];if(x>e||i&&M===o-1)for(;;){let p=$[$.length-1];if(p===void 0){$.push({text:"…",style:0,width:r}),x=r;break}let I=x-p.width;if(p.icon===void 0&&I+r<e){let T=0,R=p.text.length;for(;T<R;){let C=T+R+1>>1;I+c.width(p.text.slice(0,C),s.size,p.style)+r<=e?T=C:R=C-1}let E=T>0?p.text.charCodeAt(T-1):0;E>=55296&&E<=56319&&T--,p.text=p.text.slice(0,T).trimEnd()+"…",p.width=c.width(p.text,s.size,p.style),x=I+p.width;break}$.pop(),x=I}h.push($),b.push(x),l=Math.max(l,x)}return{...s,lines:h,widths:b,width:l,height:h.length*s.lineHeight}}function Ke(s,e){let{x:o,y:c,dx:i,dy:r}=s,{x:h,y:b,dx:l,dy:M}=e,$=o+i*et,x=c+r*et,p=h+l*et,I=b+M*et;if(i*l+r*M===0){let C=i!==0?h:o,J=i!==0?c:b;return(C-o)*i+(J-c)*r>0&&(C-h)*l+(J-b)*M>0?[o,c,C,J,h,b]:i!==0?[o,c,$,x,$,I,p,I,h,b]:[o,c,$,x,p,x,p,I,h,b]}let T=i!==0,R=T?b-c:h-o;if(i===-l&&r===-M){if((h-o)*i+(b-c)*r>0){if(Math.abs(R)<.5)return[o,c,h,b];if(T){let z=i>0?s.x1:e.x1,O=i>0?e.x0:s.x0,B=z<O?(z+O)/2:(o+h)/2;return[o,c,B,c,B,b,h,b]}let J=r>0?s.y1:e.y1,ft=r>0?e.y0:s.y0,yt=J<ft?(J+ft)/2:(c+b)/2;return[o,c,o,yt,h,yt,h,b]}}else if(Math.abs(R)>=1){if(T){let J=i>0?Math.max(o,h)+et:Math.min(o,h)-et;return[o,c,J,c,J,b,h,b]}let C=r>0?Math.max(c,b)+et:Math.min(c,b)-et;return[o,c,o,C,h,C,h,b]}if(T){let C=s.y1+et<=e.y0?(s.y1+e.y0)/2:e.y1+et<=s.y0?(e.y1+s.y0)/2:Math.max(s.y1,e.y1)+et;return[o,c,$,c,$,C,p,C,p,b,h,b]}let E=s.x1+et<=e.x0?(s.x1+e.x0)/2:e.x1+et<=s.x0?(e.x1+s.x0)/2:Math.max(s.x1,e.x1)+et;return[o,c,o,x,E,x,E,I,h,I,h,b]}function Qe(s){let e=[s[0],s[1]];for(let o=2;o<s.length;o+=2){let c=s[o],i=s[o+1],r=e.length,h=Math.abs(c-e[r-2])<.01,b=Math.abs(i-e[r-1])<.01;h&&b||(r>=4&&(h&&Math.abs(e[r-4]-e[r-2])<.01||b&&Math.abs(e[r-3]-e[r-1])<.01)?(e[r-2]=c,e[r-1]=i):e.push(c,i))}return e}function Ze(s,e,o){let c=s.length/2,i=new Array(c),r=new Array(c);for(let l=0;l<c;l++)i[l]=s[l*2],r[l]=s[l*2+1];let h=(l,M,$)=>{let x=Math.hypot(i[M]-i[l],r[M]-r[l]),p=Math.min($,Math.max(0,x-1));x>0&&p>0&&(i[l]+=(i[M]-i[l])/x*p,r[l]+=(r[M]-r[l])/x*p)};h(0,1,e),h(c-1,c-2,o);let b=`M${D(i[0])},${D(r[0])}`;for(let l=1;l<c-1;l++){let M=Math.hypot(i[l]-i[l-1],r[l]-r[l-1]),$=Math.hypot(i[l+1]-i[l],r[l+1]-r[l]),x=Math.min(Je,M/2,$/2);if(x<.5){b+=`L${D(i[l])},${D(r[l])}`;continue}let p=i[l]-(i[l]-i[l-1])/M*x,I=r[l]-(r[l]-r[l-1])/M*x,T=i[l]+(i[l+1]-i[l])/$*x,R=r[l]+(r[l+1]-r[l])/$*x;b+=`L${D(p)},${D(I)}Q${D(i[l])},${D(r[l])} ${D(T)},${D(R)}`}return b+`L${D(i[c-1])},${D(r[c-1])}`}function Pe(s,e,o){return ge(o,c=>tn(s,e,o,c))}function tn(s,e,o,c){let i=ie(e,"iconSize",48,8,512),r=ie(e,"fontSize",o.fontSize??16,4,128),h=Math.min(ie(e,"padding",20,0,256),c?12:1/0),b=Math.round(r*.875),l=o.measurer??he(o.fontFamily,o.fontFamilyMono),M=o.padding??8,$=o.icons,x=i/2,p=[...s.nodes.values()],I=[...s.groups.values()],T=p.length,R=I.length,E=Oe(p,I,s.edges,s.layoutHints),C=new Map;p.forEach((t,f)=>C.set(t.id,f));let J=new Array(T),ft=new Float64Array(T),yt=new Float64Array(T),z=c?Math.max(i,64):Math.max(i*2.25,96);for(let t=0;t<T;t++){let f=p[t],y=Ot(f.type==="service"?f.title:void 0,!0,l,r,z);J[t]=y,ft[t]=Math.max(i,2*Math.ceil(y.width/2)),yt[t]=i+(y.height>0?_e+y.height:0)}let O=[],B=[];for(let t=0;t<T;t++)O.push(E.col[t]),B.push(E.row[t]);for(let t=0;t<R;t++)E.groupEmpty[t]&&(O.push(E.groupCol[t]),B.push(E.groupRow[t]));let W=Ne(O),bt=Ne(B),j=W.size,pt=bt.size,nt=new Float64Array(j),xt=new Float64Array(pt),kt=c?Math.max(24,2*et):Math.max(40,Math.round(i*.75)),gt=new Float64Array(j).fill(kt),wt=new Float64Array(pt).fill(kt),rt=new Int32Array(T),ct=new Int32Array(T);for(let t=0;t<T;t++){let f=rt[t]=W.get(E.col[t]),y=ct[t]=bt.get(E.row[t]);nt[f]=Math.max(nt[f],ft[t]),xt[y]=Math.max(xt[y],yt[t])}for(let t=0;t<R;t++){if(!E.groupEmpty[t])continue;let f=W.get(E.groupCol[t]),y=bt.get(E.groupRow[t]);nt[f]=Math.max(nt[f],i),xt[y]=Math.max(xt[y],x)}let Ct=s.edges.length,Jt=new Array(Ct),Tt=new Int32Array(Ct*2);for(let t=0;t<Ct;t++){let f=s.edges[t],y=Tt[t*2]=C.get(f.lhsId)??-1,S=Tt[t*2+1]=C.get(f.rhsId)??-1,w=Ot(f.title,!0,l,b,160);if(Jt[t]=w,!(w.width===0||y<0||S<0)){if(rt[y]!==rt[S]){let m=Math.min(rt[y],rt[S]);gt[m]=Math.max(gt[m],Math.ceil(w.width)+28)}else if(nt[rt[y]]=Math.max(nt[rt[y]],2*Math.ceil(w.width/2)+8),ct[y]!==ct[S]){let m=Math.min(ct[y],ct[S]);wt[m]=Math.max(wt[m],Math.ceil(w.height)+24)}}}let _t=new Array(R),At=new Int32Array(R),ot=new Int32Array(R),mt=new Int32Array(R),Mt=new Int32Array(R),Rt=new Float64Array(R),St=new Float64Array(R),Et=new Float64Array(R),Lt=new Float64Array(R),n=new Float64Array(R),a=new Float64Array(R),u=new Float64Array(j),g=new Float64Array(j),A=new Float64Array(pt),G=new Float64Array(pt),H=Math.round(r*1.25);for(let t=0;t<R;t++){At[t]=W.get(E.groupCol[t]),ot[t]=W.get(E.groupCol[t]+E.groupCols[t]-1),mt[t]=bt.get(E.groupRow[t]),Mt[t]=bt.get(E.groupRow[t]+E.groupRows[t]-1);let f=Ot(I[t].title,!0,l,r,c?Math.max(80,re(o)/2):320);_t[t]=f;let y=I[t].icon?H:0;n[t]=f.width+y+(f.width>0&&y>0?6:0),a[t]=Math.max(f.height,y)}for(let t=R-1;t>=0;t--){let f=h+Rt[t],y=h+St[t],S=(a[t]>0?Math.max(h,a[t]+12):h)+Et[t],w=h+Lt[t];if(n[t]>0){let U=f+y;for(let d=At[t];d<=ot[t];d++)U+=nt[d]+(d<ot[t]?g[d]+gt[d]+u[d+1]:0);n[t]+20>U&&(y+=Math.ceil(n[t]+20-U))}Rt[t]=f,St[t]=y,Et[t]=S,Lt[t]=w,u[At[t]]=Math.max(u[At[t]],f),g[ot[t]]=Math.max(g[ot[t]],y),A[mt[t]]=Math.max(A[mt[t]],S),G[Mt[t]]=Math.max(G[Mt[t]],w);let m=E.groupParent[t];m<0||(At[m]===At[t]&&(Rt[m]=Math.max(Rt[m],f)),ot[m]===ot[t]&&(St[m]=Math.max(St[m],y)),mt[m]===mt[t]&&(Et[m]=Math.max(Et[m],S)),Mt[m]===Mt[t]&&(Lt[m]=Math.max(Lt[m],w)))}let _=new Float64Array(j),v=new Float64Array(pt),Q=0;for(let t=0;t<j;t++)_[t]=Q+u[t],Q=_[t]+nt[t]+g[t]+(t<j-1?gt[t]:0);let Dt=0;for(let t=0;t<pt;t++)v[t]=Dt+A[t],Dt=v[t]+xt[t]+G[t]+(t<pt-1?wt[t]:0);let V=0,st=0,F=Q,X=Dt,k=t=>_[At[t]]-Rt[t],P=t=>_[ot[t]]+nt[ot[t]]+St[t],q=t=>v[mt[t]]-Et[t],it=t=>v[Mt[t]]+xt[Mt[t]]+Lt[t],Z=t=>_[rt[t]]+nt[rt[t]]/2,at=(t,f,y)=>{let S=Ve[f],w=Ue[f],m=Z(t),U=v[ct[t]],d={x:m,y:U+x,dx:S,dy:w,x0:m-ft[t]/2,y0:U,x1:m+ft[t]/2,y1:U+yt[t],gap:0,wire:!1};p[t].type==="junction"?(d.x0=d.x1=m,d.y0=d.y1=d.y,d.gap=Fe):S!==0?d.x=m+S*x:d.y=w<0?U:U+yt[t]+(J[t].height>0?2:0);let lt=y?E.nodeParent[t]:-1;return lt>=0&&(d.x0=k(lt),d.x1=P(lt),d.y0=q(lt),d.y1=it(lt),d.gap=0,d.wire=p[t].type==="junction",S!==0?d.x=S<0?d.x0:d.x1:d.y=w<0?d.y0:d.y1),d},N="",Y="",tt=[],jt=de("arrow_point");for(let t=0;t<Ct;t++){let f=s.edges[t],y=Tt[t*2],S=Tt[t*2+1];if(y<0||S<0)continue;let w=at(y,Wt(f.lhsDir),f.lhsGroup),m=at(S,Wt(f.rhsDir),f.rhsGroup);w.x===m.x&&w.y===m.y&&w.dx===m.dx&&(w.x-=8*Math.abs(w.dy),w.y-=8*Math.abs(w.dx),m.x+=8*Math.abs(w.dy),m.y+=8*Math.abs(w.dx));let U=Ke(w,m);w.wire&&U.unshift(Z(y),v[ct[y]]+x),m.wire&&U.push(Z(S),v[ct[S]]+x);let d=Qe(U);if(d.length<4)continue;let lt=Bt(`${f.lhsId}-${f.rhsId}`);N+=`<g class="pele-edge" data-id="${lt}"><path d="${Ze(d,f.lhsInto&&!w.wire?jt+w.gap:0,f.rhsInto&&!m.wire?jt+m.gap:0)}"/>`+(f.lhsInto?ee("arrow_point",w.x+w.dx*w.gap,w.y+w.dy*w.gap,-w.dx,-w.dy,"var(--_l)"):"")+(f.rhsInto?ee("arrow_point",m.x+m.dx*m.gap,m.y+m.dy*m.gap,-m.dx,-m.dy,"var(--_l)"):"")+"</g>";let $t=-1,zt=-1,Pt=-1,K=-1,ut=Jt[t];for(let L=0;L<d.length;L+=2)V=Math.min(V,d[L]-4),F=Math.max(F,d[L]+4),st=Math.min(st,d[L+1]-4),X=Math.max(X,d[L+1]+4);for(let L=0;L+3<d.length;L+=2){let vt=Math.abs(d[L+1]-d[L+3])<.01,ht=Math.abs(d[L]-d[L+2])+Math.abs(d[L+1]-d[L+3]);vt||tt.push(d[L],Math.min(d[L+1],d[L+3]),Math.max(d[L+1],d[L+3])),ht>zt&&($t=L,zt=ht),vt&&ht>K&&(Pt=L,K=ht)}if(ut.width>0){let L=K>=ut.width+8?Pt:$t,vt=(d[L]+d[L+2])/2,ht=(d[L+1]+d[L+3])/2,Ht=ut.width+8,Ye=Math.abs(d[L]-d[L+2])<.01;for(let dt of[w,m])vt+Ht/2<=dt.x0||vt-Ht/2>=dt.x1||ht+ut.height/2<=dt.y0||ht-ut.height/2>=dt.y1||(Ye?vt=vt>=(dt.x0+dt.x1)/2?dt.x1+Ht/2+4:dt.x0-Ht/2-4:ht=ht>=(dt.y0+dt.y1)/2?dt.y1+ut.height/2+4:dt.y0-ut.height/2-4);V=Math.min(V,vt-Ht/2),F=Math.max(F,vt+Ht/2),st=Math.min(st,ht-ut.height/2),X=Math.max(X,ht+ut.height/2),Y+=fe(`${f.lhsId}-${f.rhsId}`,ut,vt,ht,"",$)}}let Ft="";for(let t=0;t<R;t++){let f=I[t],y=k(t),S=q(t),w=P(t)-y,m=_t[t],U="";if(n[t]>0){let d=S+a[t]+12,lt=[];for(let K=0;K<tt.length;K+=3)tt[K+1]<d&&tt[K+2]>S&&tt[K]>y&&tt[K]<y+w&<.push(tt[K]);lt.sort((K,ut)=>K-ut),lt.push(y+w-4);let $t=y+10;for(let K of lt){if(K-6-$t>=n[t])break;$t=Math.max($t,K+6)}$t+n[t]>y+w-4&&($t=y+10);let zt=S+6+a[t]/2,Pt=$t;f.icon&&(U+=ze(f.icon,$t,zt-H/2,H,$),Pt+=H+6),U+=Xt(m,Pt+m.width/2,zt,' class="pele-cluster-label" fill="var(--_m)"',$)}Ft+=`<g class="pele-cluster" data-id="${Bt(f.id)}"><rect x="${D(y)}" y="${D(S)}" width="${D(w)}" height="${D(it(t)-S)}" fill="var(--_a)" fill-opacity="0.5" stroke="var(--_b)"${ne}/>`+U+"</g>"}let Vt="",te=i*.5,se=Math.max(6,Math.round(r*.75));for(let t=0;t<T;t++){let f=p[t],y=`data-id="${Bt(f.id)}" transform="translate(${D(Z(t))},${D(v[ct[t]])})"`;if(f.type==="junction"){Vt+=`<g class="pele-node pele-junction" ${y}><circle cy="${D(x)}" r="${Fe}" fill="var(--_l)"/></g>`;continue}let S="";if(f.icon)S=ze(f.icon,-te/2,(i-te)/2,te,$);else if(f.iconText){let w=Ot(f.iconText,!1,l,se,i-8),m=Math.max(1,Math.floor((i-4)/(w.lineHeight||1)));S=Xt(qe(w,i-8,m,l),0,x,` class="pele-icon-text" font-size="${se}"`,$)}Vt+=`<g class="pele-node pele-service" ${y}><rect x="${D(-x)}" width="${D(i)}" height="${D(i)}" fill="var(--_s)" stroke="var(--_b)"${ne}/>`+S+Xt(J[t],0,i+_e+J[t].height/2,' class="pele-label"',$)+"</g>"}let Nt=Ot(s.title,!1,l,r,c?re(o):4e3,1),ce=Nt.height>0?Nt.height+12:0,Ut=Math.ceil(Math.max(F-V,Nt.width)+2*M),ae=Math.ceil(X-st+ce+2*M),Be=Math.round((Ut-(F-V))/2-V),Xe=Math.round(M+ce-st),le=(Ft?`<g class="pele-clusters">${Ft}</g>`:"")+(N?`<g class="pele-edges" fill="none" stroke="var(--_l)" stroke-linecap="round" stroke-linejoin="round">${N}</g>`:"")+(Y?`<g class="pele-edge-labels" font-size="${b}">${Y}</g>`:"")+(Vt?`<g class="pele-nodes">${Vt}</g>`:"");return{svg:pe("architecture",Ut,ae,r,o,s,Xt(Nt,Ut/2,M+Nt.height/2,' class="pele-title" font-weight="var(--_tw)"')+(le?`<g transform="translate(${Be},${Xe})">${le}</g>`:"")),width:Ut,height:ae,links:[]}}var $n={type:"architecture",parse(s,e,o){let c=new Kt;return o&&(c.title=o),Ee(Ge(s),c),c},render:Pe};export{$n as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{a as Ye,b as Qe,c as Ke,d as Je,f as en,g as nn,h as tn,i as on,j as sn,k as an,l as rn,m as cn,n as ln,o as mn,p as xe,q as fn}from"./IU7WZTP6.js";import{j as $e,k as Ve}from"./UWRPUF3N.js";import{c as qe,d as i,e as F,i as H,o as Ue,u as we,v as Xe}from"./KHUP5TOH.js";import{p as Ge}from"./YWXUFHC7.js";var ke=class{domains=new Map;transitions=[];setDomains(e){if(e)for(let n of e){let c=n.domain;this.domains.set(c,{name:c,items:(n.items??[]).map(l=>({label:l.label}))})}}setTransitions(e){e&&(this.transitions=e.filter(n=>n.from!==n.to).map(n=>({from:n.from,to:n.to,label:n.label||void 0})))}};function dn(t,e){let n=new ke;return n.setDomains(t.domains),n.setTransitions(t.transitions),{type:"cynefin",title:t.title||e,accTitle:t.accTitle?t.accTitle.replace(/^\s+/g,""):void 0,accDescr:t.accDescr?t.accDescr.replace(/\n\s+/g,`
|
|
2
|
+
`):void 0,domains:n.domains,transitions:n.transitions}}var pn=[{name:"cynefin-beta:",pattern:"cynefin-beta:"},rn("cynefin-beta"),{name:"-->",pattern:"-->"},{name:":",pattern:":"},{name:"DOMAIN_NAME",pattern:/complex|complicated|clear|chaotic|confusion/y},Qe,Ke,Je,en,nn,tn,on,sn,an];function hn(t){let e=new fn(Ye(t,pn,"cynefin"),pn,"cynefin"),n={$type:"Cynefin",domains:[],transitions:[]},c=()=>{for(;e.kinds[e.i]===9;)e.i++},l=()=>{e.kind!==-1&&(e.kind!==9&&e.fail("a line break or the end of input"),c())};for(c(),e.kind!==1&&e.kind!==0&&e.fail("'cynefin-beta'"),e.i++;e.kind!==-1;)switch(e.kind){case 9:e.i++;break;case 5:n.accDescr=mn(e.take()),l();break;case 6:n.accTitle=ln(e.take()),l();break;case 7:n.title=cn(e.take()),l();break;case 4:{let f=e.take();if(e.accept(2)){let d={$type:"Transition",from:f,to:e.expect(4)};e.accept(3)&&(d.label=xe(e.expect(8))),l(),n.transitions.push(d);break}let $={$type:"DomainBlock",domain:f,items:[]};for(c();e.kinds[e.i]===8;)$.items.push({$type:"DomainItem",label:xe(e.take())}),c();n.domains.push($);break}default:e.fail("a domain, a transition, a title, or a line break")}return n}function un(t){let e=t+1831565813|0;return e=Math.imul(e^e>>>15,e|1),e^=e+Math.imul(e^e>>>7,e|61),((e^e>>>14)>>>0)/4294967296}function In(t){let e=0;for(let n=0;n<t.length;n++)e=(e<<5)-e+t.charCodeAt(n),e|=0;return e}function bn(t,e){return typeof t=="number"&&Number.isFinite(t)&&t!==0?t:In(e)}var gn={segments:7,vertical:!0,pointStep:17,controlStep:31,controlShift:7},De={segments:7,vertical:!1,pointStep:23,controlStep:37,controlShift:11};function ce(t,e,n,c,l,f){let $=(e-t)/f.segments,d=[],g=[];for(let m=0;m<=f.segments;m++){let w=m===0&&f.pinStart||m===f.segments&&f.pinEnd;d.push(t+m*$),g.push(w?n:n+un(c+m*f.pointStep)*l*2-l)}let Z=f.vertical?[g[0],d[0]]:[d[0],g[0]];for(let m=0;m<f.segments;m++){let w=(d[m]+d[m+1])/2,L=l*1.5*(m%2===0?1:-1)*un(c+m*f.controlStep+f.controlShift);f.vertical?Z.push(g[m]+L,w,g[m+1]-L,w,g[m+1],d[m+1]):Z.push(w,g[m]+L,w,g[m+1]-L,d[m+1],g[m+1])}return Z}function yn(t,e,n,c){let l=n-e;return[t,e,t+c,e+l*.2,t-c*1.5,e+l*.55,t+c*.5,e+l*.75,t-c,e+l*.85,t+c*.3,e+l*.95,t,n]}function z(t){let e="";for(let n=2;n<t.length;n+=6)e+=`C${i(t[n])},${i(t[n+1])} ${i(t[n+2])},${i(t[n+3])} ${i(t[n+4])},${i(t[n+5])}`;return e}function K(t){let e="";for(let n=t.length-6;n>=2;n-=6)e+=`C${i(t[n+2])},${i(t[n+3])} ${i(t[n])},${i(t[n+1])} ${i(t[n-2])},${i(t[n-1])}`;return e}function J(t){return`M${i(t[0])},${i(t[1])}${z(t)}`}function $n(t,e,n,c){let l=`${i(n)},${i(c)}`;return`M${i(t-n)},${i(e)}A${l} 0 1,1 ${i(t+n)},${i(e)}A${l} 0 1,1 ${i(t-n)},${i(e)}Z`}var Me=[["complex",0,0,0],["complicated",1,0,1],["chaotic",0,1,3],["clear",1,1,2]],Ln=4,vn=new Map([["complex",["Complex","Probe → Sense → Respond","Emergent Practices"]],["complicated",["Complicated","Sense → Analyse → Respond","Good Practices"]],["clear",["Clear","Sense → Categorise → Respond","Best Practices"]],["chaotic",["Chaotic","Act → Sense → Respond","Novel Practices"]],["confusion",["Confusion","","Disorder"]]]),wn=3,xn=200,On=10,Bn=4,le=6,kn=10,Dn=20,me=10;function fe(t,e,n,c,l){let f=t.cynefin?.[e];return typeof f=="number"&&f>=c&&f<=l?f:n}function Mn(t,e,n){let c=n.fontSize??16,l=Math.round(c*.8125),f=Math.round(c*.875),$=n.measurer??Ge(n.fontFamily,n.fontFamilyMono),d=n.padding??8,g=n.icons,Z=e.cynefin?.showDomainDescriptions!==!1,m=fe(e,"boundaryAmplitude",8,0,50),w=bn(fe(e,"seed",0,-1e15,1e15),n.idPrefix??"pele"),L=Math.round(f*1.5),Ce=(o,s)=>{let a=H(o,!1,$,f,xn);return{text:o,label:a,w:a.width+2*On,h:Math.max(a.height,L)+2*Bn,overflow:s}},Ne=o=>{let s=vn.get(o),a=H(s[0],!1,$,c,4e3,1),r=[];if(Z)for(let u of[s[1],s[2]])u&&r.push(H(u,!1,$,l,4e3,2));let p=t.domains.get(o)?.items??[],_=o==="confusion"&&p.length>wn?wn:p.length,x=[];for(let u=0;u<_;u++)x.push(Ce(p[u].label,!1));_<p.length&&x.push(Ce(`+${p.length-_} more`,!0));let T=a.width,E=a.height;for(let u of r)T=Math.max(T,u.width),E+=u.height;x.length>0&&(E+=kn-le);for(let u of x)T=Math.max(T,u.w),E+=le+u.h;return{name:o,title:a,subtitles:r,badges:x,w:T,h:E,cx:0,cy:0}},de=Me.map(([o])=>Ne(o)),D=Ne("confusion"),j=Math.max(88,D.w*.71+8),G=Math.max(64,D.h*.71+6),M=fe(e,"width",640,100,1e4)/2,C=fe(e,"height",440,100,1e4)/2;for(let o of de)M=Math.max(M,o.w+2*Dn),C=Math.max(C,o.h+2*Dn);for(let o of de){let s=(M-o.w)/2,a=(C-o.h)/2;if((s/(j+me))**2+(a/(G+me))**2>=1)continue;let r=o.w+2*(j+me),p=o.h+2*(G+me);r*C<=M*p?M=Math.max(M,r):C=Math.max(C,p)}let q=H(t.title,!1,$,c,4e3,1),Te=q.height>0?q.height+12:0,ee=2*M,Se=2*C,N=d,v=d+Te,S=N+M,A=v+C,ne=N+ee,pe=v+Se,V=ce(v,A,S,w,m,{...gn,segments:4,pinEnd:!0}),te=ce(N,S,A,w+100,m,{...De,segments:4,pinEnd:!0}),U=ce(S,ne,A,w+200,m,{...De,segments:4,pinStart:!0}),oe=yn(S,A,pe,ee*.03),O=(o,s)=>s?`${i(o[o.length-2])},${i(o[o.length-1])}`:`${i(o[0])},${i(o[1])}`,Cn=new Map([["complex",`M${i(N)},${i(v)}L${O(V,!1)}${z(V)}${K(te)}Z`],["complicated",`M${O(V,!1)}L${i(ne)},${i(v)}L${O(U,!0)}${K(U)}${K(V)}Z`],["chaotic",`M${O(te,!1)}${z(te)}${z(oe)}L${i(N)},${i(pe)}Z`],["clear",`M${O(U,!1)}${z(U)}L${i(ne)},${i(pe)}L${O(oe,!0)}${K(oe)}Z`]]),Ae="";for(let[o,,,s]of Me)Ae+=`<path class="pele-cynefin-region" data-id="${o}" d="${Cn.get(o)}" fill="${we(s)}" fill-opacity="0.14"/>`;let Nn=`<g class="pele-cynefin-boundaries" fill="none" stroke="var(--_b)" stroke-dasharray="6 3"><path d="${J(V)}"/><path d="${J(te)}"/><path d="${J(U)}"/><path class="pele-cynefin-cliff" d="${J(oe)}" stroke="var(--_l)" stroke-width="2" stroke-dasharray="none" stroke-linecap="round"/></g>`,_e=$n(S,A,j,G),Tn=`<path d="${_e}" fill="var(--_bg)"/><path class="pele-cynefin-region" data-id="confusion" d="${_e}" fill="${we(Ln)}" fill-opacity="0.18" stroke="var(--_b)" stroke-dasharray="4 2"/>`,Ee=o=>{let s=o.cy-o.h/2,a=F(o.title,o.cx,s+o.title.height/2,' class="pele-label" font-weight="var(--_hw)"');s+=o.title.height;for(let r of o.subtitles)a+=F(r,o.cx,s+r.height/2,` class="pele-cynefin-subtitle" font-size="${l}" font-style="italic" fill="var(--_m)"`),s+=r.height;s+=kn-le;for(let r of o.badges)s+=le,a+=`<g class="pele-node${r.overflow?" pele-cynefin-overflow":""}"${r.overflow?"":` data-id="${qe(r.text)}"`}><rect x="${i(o.cx-r.w/2)}" y="${i(s)}" width="${i(r.w)}" height="${i(r.h)}" fill="var(--_bg)" stroke="var(--_b)"${r.overflow?' stroke-dasharray="3 2"':""}${Ue}/>`+F(r.label,o.cx,s+r.h/2,` class="pele-label" font-size="${f}"${r.overflow?' fill="var(--_m)"':""}`,g)+"</g>",s+=r.h;return`<g class="pele-cynefin-domain" data-id="${o.name}">${a}</g>`},ie=new Map,he="";Me.forEach(([o,s,a],r)=>{let p=de[r];p.cx=N+M*(s+.5),p.cy=v+C*(a+.5),ie.set(o,p),he+=Ee(p)}),D.cx=S,D.cy=A,ie.set("confusion",D),he+=Ee(D);let ue=(o,s,a)=>o===D?((s-S)/(j+4))**2+((a-A)/(G+4))**2<=1:Math.abs(s-o.cx)<=o.w/2+8&&Math.abs(a-o.cy)<=o.h/2+8,be="",Ie=new Map;for(let o of t.transitions){let s=ie.get(o.from),a=ie.get(o.to);if(!s||!a||s===a)continue;let r=o.from<o.to?`${o.from} ${o.to}`:`${o.to} ${o.from}`,p=Ie.get(r)??0;Ie.set(r,p+1);let _=a.cx-s.cx,x=a.cy-s.cy,T=Math.hypot(_,x)||1,E=(s.cx+a.cx)/2,u=(s.cy+a.cy)/2,Oe=-x*(E-S)+_*(u-A)>=0?1:-1,se=-x/T*Oe,ae=_/T*Oe,Be=(s!==D&&a!==D&&Math.abs(_)>1&&Math.abs(x)>1?2*(Math.hypot(j*se,G*ae)+16):T*.15)+p*56,Re=E+se*Be,Pe=u+ae*Be,B=h=>{let b=1-h;return[b*b*s.cx+2*b*h*Re+h*h*a.cx,b*b*s.cy+2*b*h*Pe+h*h*a.cy]},We=(h,b,I,re)=>{for(let W=0;W<16;W++){let Q=(b+I)/2;ue(h,...B(Q))===re?b=Q:I=Q}return(b+I)/2},k=48,y=1;for(;y<=k&&ue(s,...B(y/k));)y++;if(y>k)continue;let R=We(s,(y-1)/k,y/k,!0);for(;y<=k&&!ue(a,...B(y/k));)y++;let P=y>k?1:We(a,(y-1)/k,y/k,!1),[An,_n]=B(R),[X,Y]=B(P),Fe=(h,b,I)=>(1-R)*(1-P)*h+((1-R)*P+R*(1-P))*b+R*P*I,ge=Fe(s.cx,Re,a.cx),ye=Fe(s.cy,Pe,a.cy),He=Math.hypot(X-ge,Y-ye)||1,ze=(X-ge)/He,Ze=(Y-ye)/He,En=Ve("arrow_point",X,Y,ze,Ze,"var(--_l)");X-=ze*$e("arrow_point"),Y-=Ze*$e("arrow_point");let je="";if(o.label){let h=H(o.label,!1,$,l,xn),[b,I]=B((R+P)/2),re=Math.abs(se)*h.width/2+Math.abs(ae)*h.height/2+6,W=h.width/2+4,Q=Math.min(Math.max(b+se*re,N+W),Math.max(ne-W,N+W));je=F(h,Q,I+ae*re,` class="pele-edge-label" font-size="${l}"`,g)}be+=`<g class="pele-edge" data-id="${o.from}-${o.to}"><path d="M${i(An)},${i(_n)}Q${i(ge)},${i(ye)} ${i(X)},${i(Y)}" fill="none" stroke="var(--_l)"/>`+En+je+"</g>"}let Le=Math.ceil(Math.max(ee,q.width)+2*d),ve=Math.ceil(Se+Te+2*d),Sn=F(q,N+ee/2,d+q.height/2,' class="pele-title" font-weight="var(--_tw)"')+`<g class="pele-cynefin-regions">${Ae}</g>`+Nn+Tn+he+(be?`<g class="pele-edges">${be}</g>`:"");return{svg:Xe("cynefin",Le,ve,c,n,t,Sn),width:Le,height:ve,links:[]}}var nt={type:"cynefin",parse:(t,e,n)=>dn(hn(t),n),render:Mn};export{nt as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{i as c}from"./KHUP5TOH.js";var b=/<(?!br\s*\/?>)/gi,a=/:fa-/g,p=/<br\s*\/?>|fl°°?\w+¶ß|&#?\w+;|[\ud800-\udbff][\udc00-\udfff]|[\s\S]/gi;function s(f,r,i,t,u=0){let e=f;return e!==void 0&&(e.includes("<")&&(e=e.replace(b,"<")),e.includes(":fa-")&&(e=e.replace(a,":fa-"))),c(e,!1,r,i,t,u)}function T(f,r,i,t,u=0){let e=s(f,r,i,t,u);if(f===void 0||e.width<=t)return e;let o="",l=0;for(let n of f.match(p)??[]){if(n.trim()===""||n.length>2&&n[0]==="<")l=0;else{let d=r.width(n.length>2?"x":n,i,u);l>0&&l+d>t&&(o+=`
|
|
2
|
+
`,l=0),l+=d}o+=n}return s(o,r,i,t,u)}export{s as a,T as b};
|