@juspay/shooter 1.1.0 → 1.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/client/_app/immutable/assets/{0.DC5pAwP3.css → 0.BhZOCxO4.css} +1 -1
- package/build/client/_app/immutable/assets/0.BhZOCxO4.css.br +0 -0
- package/build/client/_app/immutable/assets/0.BhZOCxO4.css.gz +0 -0
- package/build/client/_app/immutable/assets/1.BYutk3aU.css +1 -0
- package/build/client/_app/immutable/assets/1.BYutk3aU.css.br +0 -0
- package/build/client/_app/immutable/assets/1.BYutk3aU.css.gz +0 -0
- package/build/client/_app/immutable/assets/{3.BoXp0JoS.css → 3.DGDHCVnW.css} +1 -1
- package/build/client/_app/immutable/assets/3.DGDHCVnW.css.br +0 -0
- package/build/client/_app/immutable/assets/3.DGDHCVnW.css.gz +0 -0
- package/build/client/_app/immutable/assets/4.BFUut--w.css +1 -0
- package/build/client/_app/immutable/assets/4.BFUut--w.css.br +0 -0
- package/build/client/_app/immutable/assets/4.BFUut--w.css.gz +0 -0
- package/build/client/_app/immutable/assets/5.BTOx7yt7.css +1 -0
- package/build/client/_app/immutable/assets/5.BTOx7yt7.css.br +0 -0
- package/build/client/_app/immutable/assets/5.BTOx7yt7.css.gz +0 -0
- package/build/client/_app/immutable/assets/{7.PyEFVv_s.css → 7.DwS5ZHBh.css} +1 -1
- package/build/client/_app/immutable/assets/7.DwS5ZHBh.css.br +0 -0
- package/build/client/_app/immutable/assets/7.DwS5ZHBh.css.gz +0 -0
- package/build/client/_app/immutable/assets/ChatView.CwWbzIL-.css +1 -0
- package/build/client/_app/immutable/assets/ChatView.CwWbzIL-.css.br +0 -0
- package/build/client/_app/immutable/assets/ChatView.CwWbzIL-.css.gz +0 -0
- package/build/client/_app/immutable/chunks/B-K5Sh65.js +1 -0
- package/build/client/_app/immutable/chunks/B-K5Sh65.js.br +0 -0
- package/build/client/_app/immutable/chunks/B-K5Sh65.js.gz +0 -0
- package/build/client/_app/immutable/chunks/B5NAKyil.js +20 -0
- package/build/client/_app/immutable/chunks/B5NAKyil.js.br +0 -0
- package/build/client/_app/immutable/chunks/B5NAKyil.js.gz +0 -0
- package/build/client/_app/immutable/chunks/B8XegpSE.js +1 -0
- package/build/client/_app/immutable/chunks/B8XegpSE.js.br +0 -0
- package/build/client/_app/immutable/chunks/B8XegpSE.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{50RPd5u3.js → B8zoBsv3.js} +1 -1
- package/build/client/_app/immutable/chunks/B8zoBsv3.js.br +0 -0
- package/build/client/_app/immutable/chunks/B8zoBsv3.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BLszSzTT.js +1 -0
- package/build/client/_app/immutable/chunks/BLszSzTT.js.br +0 -0
- package/build/client/_app/immutable/chunks/BLszSzTT.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BOYo8yTr.js +1 -0
- package/build/client/_app/immutable/chunks/BOYo8yTr.js.br +0 -0
- package/build/client/_app/immutable/chunks/BOYo8yTr.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{CdL99jkG.js → BYqGCrTe.js} +1 -1
- package/build/client/_app/immutable/chunks/BYqGCrTe.js.br +0 -0
- package/build/client/_app/immutable/chunks/BYqGCrTe.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Bu1aqm5j.js +1 -0
- package/build/client/_app/immutable/chunks/Bu1aqm5j.js.br +0 -0
- package/build/client/_app/immutable/chunks/Bu1aqm5j.js.gz +0 -0
- package/build/client/_app/immutable/chunks/C4mLaWWx.js +1 -0
- package/build/client/_app/immutable/chunks/C4mLaWWx.js.br +0 -0
- package/build/client/_app/immutable/chunks/C4mLaWWx.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{ClK4wZbC.js → CQjSATpv.js} +16 -16
- package/build/client/_app/immutable/chunks/CQjSATpv.js.br +0 -0
- package/build/client/_app/immutable/chunks/CQjSATpv.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{CojFyTPp.js → CSoRdFvv.js} +1 -1
- package/build/client/_app/immutable/chunks/CSoRdFvv.js.br +0 -0
- package/build/client/_app/immutable/chunks/CSoRdFvv.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{tjbnEgXP.js → CZHsSL_X.js} +1 -1
- package/build/client/_app/immutable/chunks/CZHsSL_X.js.br +0 -0
- package/build/client/_app/immutable/chunks/CZHsSL_X.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DVkn4r72.js +1 -0
- package/build/client/_app/immutable/chunks/DVkn4r72.js.br +0 -0
- package/build/client/_app/immutable/chunks/DVkn4r72.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DjsDGxCa.js +41 -0
- package/build/client/_app/immutable/chunks/DjsDGxCa.js.br +0 -0
- package/build/client/_app/immutable/chunks/DjsDGxCa.js.gz +0 -0
- package/build/client/_app/immutable/chunks/UJOiqIYE.js +1 -0
- package/build/client/_app/immutable/chunks/UJOiqIYE.js.br +0 -0
- package/build/client/_app/immutable/chunks/UJOiqIYE.js.gz +0 -0
- package/build/client/_app/immutable/chunks/r0JawsZc.js +2 -0
- package/build/client/_app/immutable/chunks/r0JawsZc.js.br +0 -0
- package/build/client/_app/immutable/chunks/r0JawsZc.js.gz +0 -0
- package/build/client/_app/immutable/entry/app.Z3zMnuSx.js +2 -0
- package/build/client/_app/immutable/entry/app.Z3zMnuSx.js.br +0 -0
- package/build/client/_app/immutable/entry/app.Z3zMnuSx.js.gz +0 -0
- package/build/client/_app/immutable/entry/start.Dd-gIP4y.js +1 -0
- package/build/client/_app/immutable/entry/start.Dd-gIP4y.js.br +2 -0
- package/build/client/_app/immutable/entry/start.Dd-gIP4y.js.gz +0 -0
- package/build/client/_app/immutable/nodes/0.D2YR8tTD.js +1 -0
- package/build/client/_app/immutable/nodes/0.D2YR8tTD.js.br +0 -0
- package/build/client/_app/immutable/nodes/0.D2YR8tTD.js.gz +0 -0
- package/build/client/_app/immutable/nodes/1.B3m6rO4C.js +1 -0
- package/build/client/_app/immutable/nodes/1.B3m6rO4C.js.br +0 -0
- package/build/client/_app/immutable/nodes/1.B3m6rO4C.js.gz +0 -0
- package/build/client/_app/immutable/nodes/2.CyRB2euU.js +1 -0
- package/build/client/_app/immutable/nodes/2.CyRB2euU.js.br +0 -0
- package/build/client/_app/immutable/nodes/2.CyRB2euU.js.gz +0 -0
- package/build/client/_app/immutable/nodes/3.3yohCM25.js +3 -0
- package/build/client/_app/immutable/nodes/3.3yohCM25.js.br +0 -0
- package/build/client/_app/immutable/nodes/3.3yohCM25.js.gz +0 -0
- package/build/client/_app/immutable/nodes/4.DEAcwl7l.js +1 -0
- package/build/client/_app/immutable/nodes/4.DEAcwl7l.js.br +0 -0
- package/build/client/_app/immutable/nodes/4.DEAcwl7l.js.gz +0 -0
- package/build/client/_app/immutable/nodes/5.C6bLGWQR.js +4 -0
- package/build/client/_app/immutable/nodes/5.C6bLGWQR.js.br +0 -0
- package/build/client/_app/immutable/nodes/5.C6bLGWQR.js.gz +0 -0
- package/build/client/_app/immutable/nodes/6.ByTzlA2D.js +2 -0
- package/build/client/_app/immutable/nodes/6.ByTzlA2D.js.br +0 -0
- package/build/client/_app/immutable/nodes/6.ByTzlA2D.js.gz +0 -0
- package/build/client/_app/immutable/nodes/7.BPMfwzd2.js +2 -0
- package/build/client/_app/immutable/nodes/7.BPMfwzd2.js.br +0 -0
- package/build/client/_app/immutable/nodes/7.BPMfwzd2.js.gz +0 -0
- package/build/client/_app/version.json +1 -1
- package/build/client/_app/version.json.br +0 -0
- package/build/client/_app/version.json.gz +0 -0
- package/build/client/manifest.json +13 -0
- package/build/client/manifest.json.br +0 -0
- package/build/client/manifest.json.gz +0 -0
- package/build/server/chunks/0-Vk38tI2J.js +9 -0
- package/build/server/chunks/0-Vk38tI2J.js.map +1 -0
- package/build/server/chunks/1-BvYQX5MR.js +9 -0
- package/build/server/chunks/1-BvYQX5MR.js.map +1 -0
- package/build/server/chunks/2-Cl7R4Qk2.js +9 -0
- package/build/server/chunks/2-Cl7R4Qk2.js.map +1 -0
- package/build/server/chunks/3-Ck7ewhOX.js +9 -0
- package/build/server/chunks/3-Ck7ewhOX.js.map +1 -0
- package/build/server/chunks/4-CnDeRm2Z.js +9 -0
- package/build/server/chunks/4-CnDeRm2Z.js.map +1 -0
- package/build/server/chunks/5-IxitzEvN.js +9 -0
- package/build/server/chunks/{5-D0wB7nfE.js.map → 5-IxitzEvN.js.map} +1 -1
- package/build/server/chunks/6-CyZ3r1iS.js +9 -0
- package/build/server/chunks/6-CyZ3r1iS.js.map +1 -0
- package/build/server/chunks/7-BmI7du46.js +9 -0
- package/build/server/chunks/7-BmI7du46.js.map +1 -0
- package/build/server/chunks/{Button-C7D5W6wV.js → Button-Cs1aE6ka.js} +2 -2
- package/build/server/chunks/{Button-C7D5W6wV.js.map → Button-Cs1aE6ka.js.map} +1 -1
- package/build/server/chunks/{EmptyState-Ci4pSpmY.js → EmptyState-DDFH1K8g.js} +10 -4
- package/build/server/chunks/EmptyState-DDFH1K8g.js.map +1 -0
- package/build/server/chunks/{Icon-DyrkHVnV.js → Icon-CEUrotA6.js} +3 -3
- package/build/server/chunks/{Icon-DyrkHVnV.js.map → Icon-CEUrotA6.js.map} +1 -1
- package/build/server/chunks/{Shimmer-BITK6wrm.js → Shimmer-DB8W1zt6.js} +2 -2
- package/build/server/chunks/{Shimmer-BITK6wrm.js.map → Shimmer-DB8W1zt6.js.map} +1 -1
- package/build/server/chunks/_error.svelte-uCOJNxvr.js +39 -0
- package/build/server/chunks/_error.svelte-uCOJNxvr.js.map +1 -0
- package/build/server/chunks/{_layout.svelte-CO4f8UD7.js → _layout.svelte-CtWmEJwe.js} +5 -25
- package/build/server/chunks/_layout.svelte-CtWmEJwe.js.map +1 -0
- package/build/server/chunks/{_page.svelte-C6bns9aQ.js → _page.svelte-BcZaKdX9.js} +13 -9
- package/build/server/chunks/_page.svelte-BcZaKdX9.js.map +1 -0
- package/build/server/chunks/{_page.svelte-3Cc3NMAP.js → _page.svelte-BdYynOck.js} +18 -14
- package/build/server/chunks/_page.svelte-BdYynOck.js.map +1 -0
- package/build/server/chunks/{_page.svelte-CFCONiDK.js → _page.svelte-BgevQjq1.js} +16 -12
- package/build/server/chunks/_page.svelte-BgevQjq1.js.map +1 -0
- package/build/server/chunks/{_page.svelte-DskND_G9.js → _page.svelte-CVq6tRb3.js} +8 -8
- package/build/server/chunks/_page.svelte-CVq6tRb3.js.map +1 -0
- package/build/server/chunks/{_page.svelte-rTrWmhOp.js → _page.svelte-CxWcQ0Am.js} +8 -8
- package/build/server/chunks/_page.svelte-CxWcQ0Am.js.map +1 -0
- package/build/server/chunks/{_page.svelte-C0p3HsIW.js → _page.svelte-DO4oa_LY.js} +11 -13
- package/build/server/chunks/_page.svelte-DO4oa_LY.js.map +1 -0
- package/build/server/chunks/{_server.ts-CS5H5klP.js → _server.ts-CAxsWKvS.js} +14 -10
- package/build/server/chunks/_server.ts-CAxsWKvS.js.map +1 -0
- package/build/server/chunks/{_server.ts-C8slOHB0.js → _server.ts-CTpcLUH8.js} +3 -2
- package/build/server/chunks/_server.ts-CTpcLUH8.js.map +1 -0
- package/build/server/chunks/_server.ts-CtH0dhUp.js +71 -0
- package/build/server/chunks/_server.ts-CtH0dhUp.js.map +1 -0
- package/build/server/chunks/{_server.ts-DhTrdlWH.js → _server.ts-DB_Kg97c.js} +14 -3
- package/build/server/chunks/_server.ts-DB_Kg97c.js.map +1 -0
- package/build/server/chunks/_server.ts-DYpJImqd.js +99 -0
- package/build/server/chunks/_server.ts-DYpJImqd.js.map +1 -0
- package/build/server/chunks/{_server.ts-DpEVfp8W.js → _server.ts-Deok2y88.js} +58 -40
- package/build/server/chunks/_server.ts-Deok2y88.js.map +1 -0
- package/build/server/chunks/{_server.ts-uHUi-4cd.js → _server.ts-vekTmWAx.js} +3 -2
- package/build/server/chunks/_server.ts-vekTmWAx.js.map +1 -0
- package/build/server/chunks/{client2-BjxIYuno.js → client-BdGHe_hY.js} +4 -4
- package/build/server/chunks/client-BdGHe_hY.js.map +1 -0
- package/build/server/chunks/client2-CCBGA-2V.js +7 -0
- package/build/server/chunks/client2-CCBGA-2V.js.map +1 -0
- package/build/server/chunks/{index-Cnl871UW.js → index-DwaY1cAm.js} +2 -2
- package/build/server/chunks/{index-Cnl871UW.js.map → index-DwaY1cAm.js.map} +1 -1
- package/build/server/chunks/{index-server-CUC9Jt7r.js → index-server-CrDaL06Y.js} +2 -2
- package/build/server/chunks/{index-server-CUC9Jt7r.js.map → index-server-CrDaL06Y.js.map} +1 -1
- package/build/server/chunks/{index2-HA3VTH7y.js → index2-CgclKpUj.js} +2 -2
- package/build/server/chunks/{index2-HA3VTH7y.js.map → index2-CgclKpUj.js.map} +1 -1
- package/build/server/chunks/opencode-db-path-DcfhJtJy.js +15 -0
- package/build/server/chunks/opencode-db-path-DcfhJtJy.js.map +1 -0
- package/build/server/chunks/{pty-manager-DR0Wt2Ac.js → pty-manager-BQVB7IVj.js} +17 -15
- package/build/server/chunks/pty-manager-BQVB7IVj.js.map +1 -0
- package/build/server/chunks/{root-DhswcH6o.js → root-DDSnEAZv.js} +2 -2
- package/build/server/chunks/{root-DhswcH6o.js.map → root-DDSnEAZv.js.map} +1 -1
- package/build/server/chunks/{state.svelte-2Lellg7t.js → state.svelte-hBbXlUak.js} +3 -3
- package/build/server/chunks/{state.svelte-2Lellg7t.js.map → state.svelte-hBbXlUak.js.map} +1 -1
- package/build/server/chunks/stores-DHNzYNpX.js +28 -0
- package/build/server/chunks/stores-DHNzYNpX.js.map +1 -0
- package/build/server/index.js +5 -5
- package/build/server/index.js.map +1 -1
- package/build/server/manifest.js +30 -16
- package/build/server/manifest.js.map +1 -1
- package/package.json +1 -1
- package/scripts/setup.cjs +87 -13
- package/server.ts +3 -0
- package/src/app.html +3 -0
- package/src/lib/modules/client/common/cache.ts +10 -2
- package/src/lib/modules/client/common/index.ts +1 -1
- package/src/lib/modules/client/common/markdown.ts +22 -1
- package/src/lib/modules/client/common/time.ts +13 -11
- package/src/lib/modules/client/terminal/ChatView.svelte +324 -67
- package/src/lib/modules/client/terminal/ConnectionStatus.svelte +1 -0
- package/src/lib/modules/client/terminal/xterm-wrapper.ts +4 -1
- package/src/lib/modules/server/sessions/jsonl-reader.ts +43 -28
- package/src/lib/modules/server/sessions/opencode-db-path.ts +26 -0
- package/src/lib/modules/server/sessions/opencode-reader.ts +13 -15
- package/src/lib/modules/server/sessions/process-detector.ts +103 -0
- package/src/lib/modules/server/terminal/opencode-watcher.ts +3 -14
- package/src/lib/modules/server/terminal/pty-manager.ts +20 -8
- package/src/lib/modules/server/ws/session-handler.ts +282 -104
- package/src/lib/theme.css +30 -0
- package/src/routes/+error.svelte +94 -0
- package/src/routes/+page.svelte +18 -8
- package/src/routes/api/health/+server.ts +14 -2
- package/src/routes/api/sessions/+server.ts +12 -4
- package/src/routes/api/sessions/connect/+server.ts +125 -0
- package/src/routes/api/sessions/detect/+server.ts +27 -0
- package/src/routes/api/terminals/+server.ts +12 -9
- package/src/routes/config/+page.svelte +22 -1
- package/src/routes/project/+page.svelte +159 -8
- package/src/routes/session/[id]/+page.svelte +477 -299
- package/src/routes/terminals/+page.svelte +14 -3
- package/src/routes/terminals/[id]/+page.svelte +25 -0
- package/build/client/_app/immutable/assets/0.DC5pAwP3.css.br +0 -0
- package/build/client/_app/immutable/assets/0.DC5pAwP3.css.gz +0 -0
- package/build/client/_app/immutable/assets/3.BoXp0JoS.css.br +0 -0
- package/build/client/_app/immutable/assets/3.BoXp0JoS.css.gz +0 -0
- package/build/client/_app/immutable/assets/4.cJuCkJKZ.css +0 -1
- package/build/client/_app/immutable/assets/4.cJuCkJKZ.css.br +0 -0
- package/build/client/_app/immutable/assets/4.cJuCkJKZ.css.gz +0 -0
- package/build/client/_app/immutable/assets/5.DRjApZQW.css +0 -1
- package/build/client/_app/immutable/assets/5.DRjApZQW.css.br +0 -0
- package/build/client/_app/immutable/assets/5.DRjApZQW.css.gz +0 -0
- package/build/client/_app/immutable/assets/7.PyEFVv_s.css.br +0 -0
- package/build/client/_app/immutable/assets/7.PyEFVv_s.css.gz +0 -0
- package/build/client/_app/immutable/assets/ChatView.CsdBAOKx.css +0 -1
- package/build/client/_app/immutable/assets/ChatView.CsdBAOKx.css.br +0 -0
- package/build/client/_app/immutable/assets/ChatView.CsdBAOKx.css.gz +0 -0
- package/build/client/_app/immutable/chunks/50RPd5u3.js.br +0 -0
- package/build/client/_app/immutable/chunks/50RPd5u3.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BDC7XD4o.js +0 -1
- package/build/client/_app/immutable/chunks/BDC7XD4o.js.br +0 -0
- package/build/client/_app/immutable/chunks/BDC7XD4o.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BeONA6_G.js +0 -2
- package/build/client/_app/immutable/chunks/BeONA6_G.js.br +0 -0
- package/build/client/_app/immutable/chunks/BeONA6_G.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BygiiMA0.js +0 -1
- package/build/client/_app/immutable/chunks/BygiiMA0.js.br +0 -0
- package/build/client/_app/immutable/chunks/BygiiMA0.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CGLrx-H5.js +0 -1
- package/build/client/_app/immutable/chunks/CGLrx-H5.js.br +0 -0
- package/build/client/_app/immutable/chunks/CGLrx-H5.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CHvUpVYv.js +0 -1
- package/build/client/_app/immutable/chunks/CHvUpVYv.js.br +0 -0
- package/build/client/_app/immutable/chunks/CHvUpVYv.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CbqC9BW7.js +0 -1
- package/build/client/_app/immutable/chunks/CbqC9BW7.js.br +0 -2
- package/build/client/_app/immutable/chunks/CbqC9BW7.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CdL99jkG.js.br +0 -0
- package/build/client/_app/immutable/chunks/CdL99jkG.js.gz +0 -0
- package/build/client/_app/immutable/chunks/ClK4wZbC.js.br +0 -0
- package/build/client/_app/immutable/chunks/ClK4wZbC.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CojFyTPp.js.br +0 -0
- package/build/client/_app/immutable/chunks/CojFyTPp.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DREFAyhX.js +0 -60
- package/build/client/_app/immutable/chunks/DREFAyhX.js.br +0 -0
- package/build/client/_app/immutable/chunks/DREFAyhX.js.gz +0 -0
- package/build/client/_app/immutable/chunks/K_aHH2KN.js +0 -1
- package/build/client/_app/immutable/chunks/K_aHH2KN.js.br +0 -0
- package/build/client/_app/immutable/chunks/K_aHH2KN.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Ona8oofC.js +0 -1
- package/build/client/_app/immutable/chunks/Ona8oofC.js.br +0 -0
- package/build/client/_app/immutable/chunks/Ona8oofC.js.gz +0 -0
- package/build/client/_app/immutable/chunks/tjbnEgXP.js.br +0 -0
- package/build/client/_app/immutable/chunks/tjbnEgXP.js.gz +0 -0
- package/build/client/_app/immutable/entry/app.anqwe7ZL.js +0 -2
- package/build/client/_app/immutable/entry/app.anqwe7ZL.js.br +0 -0
- package/build/client/_app/immutable/entry/app.anqwe7ZL.js.gz +0 -0
- package/build/client/_app/immutable/entry/start.BV2VRv6h.js +0 -1
- package/build/client/_app/immutable/entry/start.BV2VRv6h.js.br +0 -2
- package/build/client/_app/immutable/entry/start.BV2VRv6h.js.gz +0 -0
- package/build/client/_app/immutable/nodes/0.D0i5MqcI.js +0 -1
- package/build/client/_app/immutable/nodes/0.D0i5MqcI.js.br +0 -0
- package/build/client/_app/immutable/nodes/0.D0i5MqcI.js.gz +0 -0
- package/build/client/_app/immutable/nodes/1.DN5n5c6F.js +0 -1
- package/build/client/_app/immutable/nodes/1.DN5n5c6F.js.br +0 -0
- package/build/client/_app/immutable/nodes/1.DN5n5c6F.js.gz +0 -0
- package/build/client/_app/immutable/nodes/2.BTjkNKZJ.js +0 -1
- package/build/client/_app/immutable/nodes/2.BTjkNKZJ.js.br +0 -0
- package/build/client/_app/immutable/nodes/2.BTjkNKZJ.js.gz +0 -0
- package/build/client/_app/immutable/nodes/3.CEkigHDv.js +0 -3
- package/build/client/_app/immutable/nodes/3.CEkigHDv.js.br +0 -0
- package/build/client/_app/immutable/nodes/3.CEkigHDv.js.gz +0 -0
- package/build/client/_app/immutable/nodes/4.B-8Zsc9k.js +0 -1
- package/build/client/_app/immutable/nodes/4.B-8Zsc9k.js.br +0 -0
- package/build/client/_app/immutable/nodes/4.B-8Zsc9k.js.gz +0 -0
- package/build/client/_app/immutable/nodes/5.shitbtHc.js +0 -1
- package/build/client/_app/immutable/nodes/5.shitbtHc.js.br +0 -0
- package/build/client/_app/immutable/nodes/5.shitbtHc.js.gz +0 -0
- package/build/client/_app/immutable/nodes/6.CB8Q6eH8.js +0 -2
- package/build/client/_app/immutable/nodes/6.CB8Q6eH8.js.br +0 -0
- package/build/client/_app/immutable/nodes/6.CB8Q6eH8.js.gz +0 -0
- package/build/client/_app/immutable/nodes/7.D0CrR6pl.js +0 -2
- package/build/client/_app/immutable/nodes/7.D0CrR6pl.js.br +0 -0
- package/build/client/_app/immutable/nodes/7.D0CrR6pl.js.gz +0 -0
- package/build/server/chunks/0-Cs1dzfRz.js +0 -9
- package/build/server/chunks/0-Cs1dzfRz.js.map +0 -1
- package/build/server/chunks/1-BCSX7oED.js +0 -9
- package/build/server/chunks/1-BCSX7oED.js.map +0 -1
- package/build/server/chunks/2-6gkeO8b4.js +0 -9
- package/build/server/chunks/2-6gkeO8b4.js.map +0 -1
- package/build/server/chunks/3-DH9J9Vsc.js +0 -9
- package/build/server/chunks/3-DH9J9Vsc.js.map +0 -1
- package/build/server/chunks/4-Rzy5TYjl.js +0 -9
- package/build/server/chunks/4-Rzy5TYjl.js.map +0 -1
- package/build/server/chunks/5-D0wB7nfE.js +0 -9
- package/build/server/chunks/6-DR2ABDPq.js +0 -9
- package/build/server/chunks/6-DR2ABDPq.js.map +0 -1
- package/build/server/chunks/7-D-oQJsia.js +0 -9
- package/build/server/chunks/7-D-oQJsia.js.map +0 -1
- package/build/server/chunks/EmptyState-Ci4pSpmY.js.map +0 -1
- package/build/server/chunks/_layout.svelte-CO4f8UD7.js.map +0 -1
- package/build/server/chunks/_page.svelte-3Cc3NMAP.js.map +0 -1
- package/build/server/chunks/_page.svelte-C0p3HsIW.js.map +0 -1
- package/build/server/chunks/_page.svelte-C6bns9aQ.js.map +0 -1
- package/build/server/chunks/_page.svelte-CFCONiDK.js.map +0 -1
- package/build/server/chunks/_page.svelte-DskND_G9.js.map +0 -1
- package/build/server/chunks/_page.svelte-rTrWmhOp.js.map +0 -1
- package/build/server/chunks/_server.ts-C8slOHB0.js.map +0 -1
- package/build/server/chunks/_server.ts-CS5H5klP.js.map +0 -1
- package/build/server/chunks/_server.ts-DhTrdlWH.js.map +0 -1
- package/build/server/chunks/_server.ts-DpEVfp8W.js.map +0 -1
- package/build/server/chunks/_server.ts-uHUi-4cd.js.map +0 -1
- package/build/server/chunks/client-BYT9c0ig.js +0 -7
- package/build/server/chunks/client-BYT9c0ig.js.map +0 -1
- package/build/server/chunks/client2-BjxIYuno.js.map +0 -1
- package/build/server/chunks/error.svelte-BG_yE-Wt.js +0 -27
- package/build/server/chunks/error.svelte-BG_yE-Wt.js.map +0 -1
- package/build/server/chunks/pty-manager-DR0Wt2Ac.js.map +0 -1
|
@@ -3,4 +3,4 @@ import{_ as u}from"./PPVm8Dsz.js";async function D(e){const{Terminal:m}=await u(
|
|
|
3
3
|
\x1B[90m[Process exited with code ${r.code}]\x1B[0m\r
|
|
4
4
|
`),s=!0,c&&clearTimeout(c),e.onExit?.(r.code)):r.type==="output-dropped"?a.write(`\r
|
|
5
5
|
\x1B[33m[${r.bytes} bytes dropped]\x1B[0m\r
|
|
6
|
-
`):r.type==="activity"?e.onActivity?.(r.active):r.type==="cwd"&&e.onCwd?.(r.path)},n.onclose=()=>{s||(e.onDisconnect?.(),c=setTimeout(()=>{o=Math.min(o*2,3e4),y()},o))})}y(),a.onData(t=>{n?.readyState===WebSocket.OPEN&&n.send(JSON.stringify({data:t,type:"input"}))});const p=new ResizeObserver(()=>{d.fit(),n?.readyState===WebSocket.OPEN&&n.send(JSON.stringify({cols:a.cols,rows:a.rows,type:"resize"}))});p.observe(e.container);function k(){s=!0,c&&clearTimeout(c),f&&e.container.removeEventListener("paste",f),p.disconnect(),n?.close(),a.dispose()}function v(t){n?.readyState===WebSocket.OPEN&&n.send(JSON.stringify({data:t,type:"input"}))}return{dispose:k,fitAddon:d,sendInput:v,term:a}}function N(e,m){e.readyState===WebSocket.OPEN&&e.send(JSON.stringify({signal:m,type:"signal"}))}export{D as createTerminal,N as sendSignal};
|
|
6
|
+
`):r.type==="activity"?e.onActivity?.(r.active):r.type==="cwd"&&e.onCwd?.(r.path)},n.onclose=()=>{s||(e.onDisconnect?.(),c=setTimeout(()=>{o=Math.min(o*2,3e4),y()},o))})}y(),a.onData(t=>{n?.readyState===WebSocket.OPEN&&n.send(JSON.stringify({data:t,type:"input"}))});const p=new ResizeObserver(()=>{!e.container.offsetWidth||!e.container.offsetHeight||(d.fit(),n?.readyState===WebSocket.OPEN&&n.send(JSON.stringify({cols:a.cols,rows:a.rows,type:"resize"})))});p.observe(e.container);function k(){s=!0,c&&clearTimeout(c),f&&e.container.removeEventListener("paste",f),p.disconnect(),n?.close(),a.dispose()}function v(t){n?.readyState===WebSocket.OPEN&&n.send(JSON.stringify({data:t,type:"input"}))}return{dispose:k,fitAddon:d,sendInput:v,term:a}}function N(e,m){e.readyState===WebSocket.OPEN&&e.send(JSON.stringify({signal:m,type:"signal"}))}export{D as createTerminal,N as sendSignal};
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
function f(e){if(!e)return"";const n=new Date(e);if(isNaN(n.getTime()))return"";const a=Date.now()-n.getTime();if(a<0)return"just now";const o=Math.floor(a/6e4);if(o<1)return"just now";if(o<60)return`${o}m ago`;const r=Math.floor(o/60);if(r<24)return`${r}h ago`;const t=Math.floor(r/24);return t<7?`${t}d ago`:t<30?`${Math.floor(t/7)}w ago`:t<365?`${Math.floor(t/30)}mo ago`:`${Math.floor(t/365)}y ago`}export{f};
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as y,b as u,H as _,E as g,h as t,C as o,g as i,d as l,e as d,i as p,j as m}from"./CZHsSL_X.js";function C(n,r){let s=null,E=t;var a;if(t){s=p;for(var e=m(document.head);e!==null&&(e.nodeType!==o||e.data!==n);)e=i(e);if(e===null)l(!1);else{var f=i(e);e.remove(),d(f)}}t||(a=document.head.appendChild(y()));try{u(()=>r(a),_|g)}finally{E&&(l(!0),d(s))}}export{C as h};
|
|
Binary file
|
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{s as e}from"./
|
|
1
|
+
import{s as e}from"./B-K5Sh65.js";const r=()=>{const s=e;return{page:{subscribe:s.page.subscribe},navigating:{subscribe:s.navigating.subscribe},updated:s.updated}},b={subscribe(s){return r().page.subscribe(s)}};export{b as p};
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{F as L,x as Y,G as x,I as R,J as E,K as N,S as w,L as g,M as B,P as M,z as h,q as U,y as j,N as G,O as q,Q as z,R as K,T as Z,U as $,V as C,W as F,X as J,Y as T,Z as p}from"./CZHsSL_X.js";import{e as Q}from"./r0JawsZc.js";function I(e,r){return e===r||e?.[w]===r}function H(e={},r,n,t){var i=L.r,u=E;return Y(()=>{var o,f;return x(()=>{o=f,f=[],R(()=>{e!==n(...f)&&(r(e,...f),o&&I(n(...o),e)&&r(null,...o))})}),()=>{let a=u;for(;a!==i&&a.parent!==null&&a.parent.f&N;)a=a.parent;const v=()=>{f&&I(n(...f),e)&&r(null,...f)},l=a.teardown;a.teardown=()=>{v(),l?.()}}}),e}const V={get(e,r){let n=e.props.length;for(;n--;){let t=e.props[n];if(p(t)&&(t=t()),typeof t=="object"&&t!==null&&r in t)return t[r]}},set(e,r,n){let t=e.props.length;for(;t--;){let i=e.props[t];p(i)&&(i=i());const u=g(i,r);if(u&&u.set)return u.set(n),!0}return!1},getOwnPropertyDescriptor(e,r){let n=e.props.length;for(;n--;){let t=e.props[n];if(p(t)&&(t=t()),typeof t=="object"&&t!==null&&r in t){const i=g(t,r);return i&&!i.configurable&&(i.configurable=!0),i}}},has(e,r){if(r===w||r===T)return!1;for(let n of e.props)if(p(n)&&(n=n()),n!=null&&r in n)return!0;return!1},ownKeys(e){const r=[];for(let n of e.props)if(p(n)&&(n=n()),!!n){for(const t in n)r.includes(t)||r.push(t);for(const t of Object.getOwnPropertySymbols(n))r.includes(t)||r.push(t)}return r}};function m(...e){return new Proxy({props:e},V)}function k(e,r,n,t){var i=!K||(n&Z)!==0,u=(n&z)!==0,o=(n&J)!==0,f=t,a=!0,v=()=>(a&&(a=!1,f=o?R(t):t),f);let l;if(u){var y=w in e||T in e;l=g(e,r)?.set??(y&&r in e?s=>e[r]=s:void 0)}var c,O=!1;u?[c,O]=Q(()=>e[r]):c=e[r],c===void 0&&t!==void 0&&(c=v(),l&&(i&&B(),l(c)));var d;if(i?d=()=>{var s=e[r];return s===void 0?v():(a=!0,s)}:d=()=>{var s=e[r];return s!==void 0&&(f=void 0),s===void 0?f:s},i&&(n&M)===0)return d;if(l){var A=e.$$legacy;return(function(s,S){return arguments.length>0?((!i||!S||A||O)&&l(S?d():s),s):d()})}var P=!1,_=((n&$)!==0?C:F)(()=>(P=!1,d()));u&&h(_);var D=E;return(function(s,S){if(arguments.length>0){const b=S?h(_):i&&u?U(s):s;return j(_,b),P=!0,f!==void 0&&(f=b),s}return G&&P||(D.f&q)!==0?_.v:h(_)})}export{H as b,k as p,m as s};
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{s as r,p as e}from"./B-K5Sh65.js";const a={get params(){return e.params},get url(){return e.url}};r.updated.check;const s=a;export{s as p};
|
|
Binary file
|
|
Binary file
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import{
|
|
2
|
-
\r\f \v\uFEFF`];function Yn(n,e,r){var s=n==null?"":""+n;if(e&&(s=s?s+" "+e:e),r){for(var t of Object.keys(r))if(r[t])s=s?s+" "+t:t;else if(s.length)for(var a=t.length,l=0;(l=s.indexOf(t,l))>=0;){var c=l+a;(l===0||Qt.includes(s[l-1]))&&(c===s.length||Qt.includes(s[c]))?s=(l===0?"":s.substring(0,l))+s.substring(c+1):l=c}}return s===""?null:s}function Vt(n,e=!1){var r=e?" !important;":";",s="";for(var t of Object.keys(n)){var a=n[t];a!=null&&a!==""&&(s+=" "+t+": "+a+r)}return s}function st(n){return n[0]!=="-"||n[1]!=="-"?n.toLowerCase():n}function os(n,e){if(e){var r="",s,t;if(Array.isArray(e)?(s=e[0],t=e[1]):s=e,n){n=String(n).replaceAll(/\s*\/\*.*?\*\/\s*/g,"").trim();var a=!1,l=0,c=!1,o=[];s&&o.push(...Object.keys(s).map(st)),t&&o.push(...Object.keys(t).map(st));var h=0,p=-1;const v=n.length;for(var m=0;m<v;m++){var d=n[m];if(c?d==="/"&&n[m-1]==="*"&&(c=!1):a?a===d&&(a=!1):d==="/"&&n[m+1]==="*"?c=!0:d==='"'||d==="'"?a=d:d==="("?l++:d===")"&&l--,!c&&a===!1&&l===0){if(d===":"&&p===-1)p=m;else if(d===";"||m===v-1){if(p!==-1){var A=st(n.substring(h,p).trim());if(!o.includes(A)){d!==";"&&m++;var x=n.substring(h,m).trim();r+=" "+x+";"}}h=m+1,p=-1}}}}return s&&(r+=Vt(s)),t&&(r+=Vt(t,!0)),r=r.trim(),r===""?null:r}return n==null?null:String(n)}function cs(n,e,r,s,t,a){var l=n.__className;if(Xt||l!==r||l===void 0){var c=Yn(r,s,a);(!Xt||c!==n.getAttribute("class"))&&(c==null?n.removeAttribute("class"):e?n.className=c:n.setAttribute("class",c)),n.__className=r}else if(a&&t!==a)for(var o in a){var h=!!a[o];(t==null||h!==!!t[o])&&n.classList.toggle(o,h)}return a}const{entries:gn,setPrototypeOf:Kt,isFrozen:Xn,getPrototypeOf:Qn,getOwnPropertyDescriptor:Vn}=Object;let{freeze:M,seal:U,create:ze}=Object,{apply:pt,construct:ht}=typeof Reflect<"u"&&Reflect;M||(M=function(e){return e});U||(U=function(e){return e});pt||(pt=function(e,r){for(var s=arguments.length,t=new Array(s>2?s-2:0),a=2;a<s;a++)t[a-2]=arguments[a];return e.apply(r,t)});ht||(ht=function(e){for(var r=arguments.length,s=new Array(r>1?r-1:0),t=1;t<r;t++)s[t-1]=arguments[t];return new e(...s)});const Me=P(Array.prototype.forEach),Kn=P(Array.prototype.lastIndexOf),Jt=P(Array.prototype.pop),ge=P(Array.prototype.push),Jn=P(Array.prototype.splice),$e=P(String.prototype.toLowerCase),it=P(String.prototype.toString),lt=P(String.prototype.match),de=P(String.prototype.replace),er=P(String.prototype.indexOf),tr=P(String.prototype.trim),$=P(Object.prototype.hasOwnProperty),O=P(RegExp.prototype.test),me=nr(TypeError);function P(n){return function(e){e instanceof RegExp&&(e.lastIndex=0);for(var r=arguments.length,s=new Array(r>1?r-1:0),t=1;t<r;t++)s[t-1]=arguments[t];return pt(n,e,s)}}function nr(n){return function(){for(var e=arguments.length,r=new Array(e),s=0;s<e;s++)r[s]=arguments[s];return ht(n,r)}}function k(n,e){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:$e;Kt&&Kt(n,null);let s=e.length;for(;s--;){let t=e[s];if(typeof t=="string"){const a=r(t);a!==t&&(Xn(e)||(e[s]=a),t=a)}n[t]=!0}return n}function rr(n){for(let e=0;e<n.length;e++)$(n,e)||(n[e]=null);return n}function W(n){const e=ze(null);for(const[r,s]of gn(n))$(n,r)&&(Array.isArray(s)?e[r]=rr(s):s&&typeof s=="object"&&s.constructor===Object?e[r]=W(s):e[r]=s);return e}function ke(n,e){for(;n!==null;){const s=Vn(n,e);if(s){if(s.get)return P(s.get);if(typeof s.value=="function")return P(s.value)}n=Qn(n)}function r(){return null}return r}const en=M(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),at=M(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),ot=M(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),sr=M(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),ct=M(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),ir=M(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),tn=M(["#text"]),nn=M(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),ut=M(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),rn=M(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),Pe=M(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),lr=U(/\{\{[\w\W]*|[\w\W]*\}\}/gm),ar=U(/<%[\w\W]*|[\w\W]*%>/gm),or=U(/\$\{[\w\W]*/gm),cr=U(/^data-[\-\w.\u00B7-\uFFFF]+$/),ur=U(/^aria-[\-\w]+$/),dn=U(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),pr=U(/^(?:\w+script|data):/i),hr=U(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),mn=U(/^html$/i),fr=U(/^[a-z][.\w]*(-[.\w]+)+$/i);var sn=Object.freeze({__proto__:null,ARIA_ATTR:ur,ATTR_WHITESPACE:hr,CUSTOM_ELEMENT:fr,DATA_ATTR:cr,DOCTYPE_NAME:mn,ERB_EXPR:ar,IS_ALLOWED_URI:dn,IS_SCRIPT_OR_DATA:pr,MUSTACHE_EXPR:lr,TMPLIT_EXPR:or});const be={element:1,text:3,progressingInstruction:7,comment:8,document:9},gr=function(){return typeof window>"u"?null:window},dr=function(e,r){if(typeof e!="object"||typeof e.createPolicy!="function")return null;let s=null;const t="data-tt-policy-suffix";r&&r.hasAttribute(t)&&(s=r.getAttribute(t));const a="dompurify"+(s?"#"+s:"");try{return e.createPolicy(a,{createHTML(l){return l},createScriptURL(l){return l}})}catch{return console.warn("TrustedTypes policy "+a+" could not be created."),null}},ln=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function kn(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:gr();const e=g=>kn(g);if(e.version="3.3.3",e.removed=[],!n||!n.document||n.document.nodeType!==be.document||!n.Element)return e.isSupported=!1,e;let{document:r}=n;const s=r,t=s.currentScript,{DocumentFragment:a,HTMLTemplateElement:l,Node:c,Element:o,NodeFilter:h,NamedNodeMap:p=n.NamedNodeMap||n.MozNamedAttrMap,HTMLFormElement:m,DOMParser:d,trustedTypes:A}=n,x=o.prototype,v=ke(x,"cloneNode"),Ee=ke(x,"remove"),Se=ke(x,"nextSibling"),_e=ke(x,"childNodes"),re=ke(x,"parentNode");if(typeof l=="function"){const g=r.createElement("template");g.content&&g.content.ownerDocument&&(r=g.content.ownerDocument)}let y,j="";const{implementation:Z,createNodeIterator:Ln,createDocumentFragment:In,getElementsByTagName:Dn}=r,{importNode:Cn}=s;let C=ln();e.isSupported=typeof gn=="function"&&typeof re=="function"&&Z&&Z.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:We,ERB_EXPR:qe,TMPLIT_EXPR:je,DATA_ATTR:On,ARIA_ATTR:Nn,IS_SCRIPT_OR_DATA:Mn,ATTR_WHITESPACE:_t,CUSTOM_ELEMENT:Pn}=sn;let{IS_ALLOWED_URI:Rt}=sn,R=null;const yt=k({},[...en,...at,...ot,...ct,...tn]);let L=null;const Lt=k({},[...nn,...ut,...rn,...Pe]);let E=Object.seal(ze(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),pe=null,Re=null;const V=Object.seal(ze(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let It=!0,Ze=!0,Dt=!1,Ct=!0,se=!1,ye=!0,K=!1,Ye=!1,Xe=!1,ie=!1,Le=!1,Ie=!1,Ot=!0,Nt=!1;const vn="user-content-";let Qe=!0,he=!1,le={},H=null;const Ve=k({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let Mt=null;const Pt=k({},["audio","video","img","source","image","track"]);let Ke=null;const vt=k({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),De="http://www.w3.org/1998/Math/MathML",Ce="http://www.w3.org/2000/svg",Y="http://www.w3.org/1999/xhtml";let ae=Y,Je=!1,et=null;const zn=k({},[De,Ce,Y],it);let Oe=k({},["mi","mo","mn","ms","mtext"]),Ne=k({},["annotation-xml"]);const $n=k({},["title","style","font","a","script"]);let fe=null;const Un=["application/xhtml+xml","text/html"],Fn="text/html";let _=null,oe=null;const Bn=r.createElement("form"),zt=function(i){return i instanceof RegExp||i instanceof Function},tt=function(){let i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(oe&&oe===i)){if((!i||typeof i!="object")&&(i={}),i=W(i),fe=Un.indexOf(i.PARSER_MEDIA_TYPE)===-1?Fn:i.PARSER_MEDIA_TYPE,_=fe==="application/xhtml+xml"?it:$e,R=$(i,"ALLOWED_TAGS")?k({},i.ALLOWED_TAGS,_):yt,L=$(i,"ALLOWED_ATTR")?k({},i.ALLOWED_ATTR,_):Lt,et=$(i,"ALLOWED_NAMESPACES")?k({},i.ALLOWED_NAMESPACES,it):zn,Ke=$(i,"ADD_URI_SAFE_ATTR")?k(W(vt),i.ADD_URI_SAFE_ATTR,_):vt,Mt=$(i,"ADD_DATA_URI_TAGS")?k(W(Pt),i.ADD_DATA_URI_TAGS,_):Pt,H=$(i,"FORBID_CONTENTS")?k({},i.FORBID_CONTENTS,_):Ve,pe=$(i,"FORBID_TAGS")?k({},i.FORBID_TAGS,_):W({}),Re=$(i,"FORBID_ATTR")?k({},i.FORBID_ATTR,_):W({}),le=$(i,"USE_PROFILES")?i.USE_PROFILES:!1,It=i.ALLOW_ARIA_ATTR!==!1,Ze=i.ALLOW_DATA_ATTR!==!1,Dt=i.ALLOW_UNKNOWN_PROTOCOLS||!1,Ct=i.ALLOW_SELF_CLOSE_IN_ATTR!==!1,se=i.SAFE_FOR_TEMPLATES||!1,ye=i.SAFE_FOR_XML!==!1,K=i.WHOLE_DOCUMENT||!1,ie=i.RETURN_DOM||!1,Le=i.RETURN_DOM_FRAGMENT||!1,Ie=i.RETURN_TRUSTED_TYPE||!1,Xe=i.FORCE_BODY||!1,Ot=i.SANITIZE_DOM!==!1,Nt=i.SANITIZE_NAMED_PROPS||!1,Qe=i.KEEP_CONTENT!==!1,he=i.IN_PLACE||!1,Rt=i.ALLOWED_URI_REGEXP||dn,ae=i.NAMESPACE||Y,Oe=i.MATHML_TEXT_INTEGRATION_POINTS||Oe,Ne=i.HTML_INTEGRATION_POINTS||Ne,E=i.CUSTOM_ELEMENT_HANDLING||{},i.CUSTOM_ELEMENT_HANDLING&&zt(i.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(E.tagNameCheck=i.CUSTOM_ELEMENT_HANDLING.tagNameCheck),i.CUSTOM_ELEMENT_HANDLING&&zt(i.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(E.attributeNameCheck=i.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),i.CUSTOM_ELEMENT_HANDLING&&typeof i.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(E.allowCustomizedBuiltInElements=i.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),se&&(Ze=!1),Le&&(ie=!0),le&&(R=k({},tn),L=ze(null),le.html===!0&&(k(R,en),k(L,nn)),le.svg===!0&&(k(R,at),k(L,ut),k(L,Pe)),le.svgFilters===!0&&(k(R,ot),k(L,ut),k(L,Pe)),le.mathMl===!0&&(k(R,ct),k(L,rn),k(L,Pe))),$(i,"ADD_TAGS")||(V.tagCheck=null),$(i,"ADD_ATTR")||(V.attributeCheck=null),i.ADD_TAGS&&(typeof i.ADD_TAGS=="function"?V.tagCheck=i.ADD_TAGS:(R===yt&&(R=W(R)),k(R,i.ADD_TAGS,_))),i.ADD_ATTR&&(typeof i.ADD_ATTR=="function"?V.attributeCheck=i.ADD_ATTR:(L===Lt&&(L=W(L)),k(L,i.ADD_ATTR,_))),i.ADD_URI_SAFE_ATTR&&k(Ke,i.ADD_URI_SAFE_ATTR,_),i.FORBID_CONTENTS&&(H===Ve&&(H=W(H)),k(H,i.FORBID_CONTENTS,_)),i.ADD_FORBID_CONTENTS&&(H===Ve&&(H=W(H)),k(H,i.ADD_FORBID_CONTENTS,_)),Qe&&(R["#text"]=!0),K&&k(R,["html","head","body"]),R.table&&(k(R,["tbody"]),delete pe.tbody),i.TRUSTED_TYPES_POLICY){if(typeof i.TRUSTED_TYPES_POLICY.createHTML!="function")throw me('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof i.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw me('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');y=i.TRUSTED_TYPES_POLICY,j=y.createHTML("")}else y===void 0&&(y=dr(A,t)),y!==null&&typeof j=="string"&&(j=y.createHTML(""));M&&M(i),oe=i}},$t=k({},[...at,...ot,...sr]),Ut=k({},[...ct,...ir]),Hn=function(i){let u=re(i);(!u||!u.tagName)&&(u={namespaceURI:ae,tagName:"template"});const f=$e(i.tagName),w=$e(u.tagName);return et[i.namespaceURI]?i.namespaceURI===Ce?u.namespaceURI===Y?f==="svg":u.namespaceURI===De?f==="svg"&&(w==="annotation-xml"||Oe[w]):!!$t[f]:i.namespaceURI===De?u.namespaceURI===Y?f==="math":u.namespaceURI===Ce?f==="math"&&Ne[w]:!!Ut[f]:i.namespaceURI===Y?u.namespaceURI===Ce&&!Ne[w]||u.namespaceURI===De&&!Oe[w]?!1:!Ut[f]&&($n[f]||!$t[f]):!!(fe==="application/xhtml+xml"&&et[i.namespaceURI]):!1},G=function(i){ge(e.removed,{element:i});try{re(i).removeChild(i)}catch{Ee(i)}},J=function(i,u){try{ge(e.removed,{attribute:u.getAttributeNode(i),from:u})}catch{ge(e.removed,{attribute:null,from:u})}if(u.removeAttribute(i),i==="is")if(ie||Le)try{G(u)}catch{}else try{u.setAttribute(i,"")}catch{}},Ft=function(i){let u=null,f=null;if(Xe)i="<remove></remove>"+i;else{const S=lt(i,/^[\r\n\t ]+/);f=S&&S[0]}fe==="application/xhtml+xml"&&ae===Y&&(i='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+i+"</body></html>");const w=y?y.createHTML(i):i;if(ae===Y)try{u=new d().parseFromString(w,fe)}catch{}if(!u||!u.documentElement){u=Z.createDocument(ae,"template",null);try{u.documentElement.innerHTML=Je?j:w}catch{}}const D=u.body||u.documentElement;return i&&f&&D.insertBefore(r.createTextNode(f),D.childNodes[0]||null),ae===Y?Dn.call(u,K?"html":"body")[0]:K?u.documentElement:D},Bt=function(i){return Ln.call(i.ownerDocument||i,i,h.SHOW_ELEMENT|h.SHOW_COMMENT|h.SHOW_TEXT|h.SHOW_PROCESSING_INSTRUCTION|h.SHOW_CDATA_SECTION,null)},nt=function(i){return i instanceof m&&(typeof i.nodeName!="string"||typeof i.textContent!="string"||typeof i.removeChild!="function"||!(i.attributes instanceof p)||typeof i.removeAttribute!="function"||typeof i.setAttribute!="function"||typeof i.namespaceURI!="string"||typeof i.insertBefore!="function"||typeof i.hasChildNodes!="function")},Ht=function(i){return typeof c=="function"&&i instanceof c};function X(g,i,u){Me(g,f=>{f.call(e,i,u,oe)})}const Gt=function(i){let u=null;if(X(C.beforeSanitizeElements,i,null),nt(i))return G(i),!0;const f=_(i.nodeName);if(X(C.uponSanitizeElement,i,{tagName:f,allowedTags:R}),ye&&i.hasChildNodes()&&!Ht(i.firstElementChild)&&O(/<[/\w!]/g,i.innerHTML)&&O(/<[/\w!]/g,i.textContent)||i.nodeType===be.progressingInstruction||ye&&i.nodeType===be.comment&&O(/<[/\w]/g,i.data))return G(i),!0;if(!(V.tagCheck instanceof Function&&V.tagCheck(f))&&(!R[f]||pe[f])){if(!pe[f]&&qt(f)&&(E.tagNameCheck instanceof RegExp&&O(E.tagNameCheck,f)||E.tagNameCheck instanceof Function&&E.tagNameCheck(f)))return!1;if(Qe&&!H[f]){const w=re(i)||i.parentNode,D=_e(i)||i.childNodes;if(D&&w){const S=D.length;for(let z=S-1;z>=0;--z){const Q=v(D[z],!0);Q.__removalCount=(i.__removalCount||0)+1,w.insertBefore(Q,Se(i))}}}return G(i),!0}return i instanceof o&&!Hn(i)||(f==="noscript"||f==="noembed"||f==="noframes")&&O(/<\/no(script|embed|frames)/i,i.innerHTML)?(G(i),!0):(se&&i.nodeType===be.text&&(u=i.textContent,Me([We,qe,je],w=>{u=de(u,w," ")}),i.textContent!==u&&(ge(e.removed,{element:i.cloneNode()}),i.textContent=u)),X(C.afterSanitizeElements,i,null),!1)},Wt=function(i,u,f){if(Re[u]||Ot&&(u==="id"||u==="name")&&(f in r||f in Bn))return!1;if(!(Ze&&!Re[u]&&O(On,u))){if(!(It&&O(Nn,u))){if(!(V.attributeCheck instanceof Function&&V.attributeCheck(u,i))){if(!L[u]||Re[u]){if(!(qt(i)&&(E.tagNameCheck instanceof RegExp&&O(E.tagNameCheck,i)||E.tagNameCheck instanceof Function&&E.tagNameCheck(i))&&(E.attributeNameCheck instanceof RegExp&&O(E.attributeNameCheck,u)||E.attributeNameCheck instanceof Function&&E.attributeNameCheck(u,i))||u==="is"&&E.allowCustomizedBuiltInElements&&(E.tagNameCheck instanceof RegExp&&O(E.tagNameCheck,f)||E.tagNameCheck instanceof Function&&E.tagNameCheck(f))))return!1}else if(!Ke[u]){if(!O(Rt,de(f,_t,""))){if(!((u==="src"||u==="xlink:href"||u==="href")&&i!=="script"&&er(f,"data:")===0&&Mt[i])){if(!(Dt&&!O(Mn,de(f,_t,"")))){if(f)return!1}}}}}}}return!0},qt=function(i){return i!=="annotation-xml"&<(i,Pn)},jt=function(i){X(C.beforeSanitizeAttributes,i,null);const{attributes:u}=i;if(!u||nt(i))return;const f={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:L,forceKeepAttr:void 0};let w=u.length;for(;w--;){const D=u[w],{name:S,namespaceURI:z,value:Q}=D,ce=_(S),rt=Q;let I=S==="value"?rt:tr(rt);if(f.attrName=ce,f.attrValue=I,f.keepAttr=!0,f.forceKeepAttr=void 0,X(C.uponSanitizeAttribute,i,f),I=f.attrValue,Nt&&(ce==="id"||ce==="name")&&(J(S,i),I=vn+I),ye&&O(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,I)){J(S,i);continue}if(ce==="attributename"&<(I,"href")){J(S,i);continue}if(f.forceKeepAttr)continue;if(!f.keepAttr){J(S,i);continue}if(!Ct&&O(/\/>/i,I)){J(S,i);continue}se&&Me([We,qe,je],Yt=>{I=de(I,Yt," ")});const Zt=_(i.nodeName);if(!Wt(Zt,ce,I)){J(S,i);continue}if(y&&typeof A=="object"&&typeof A.getAttributeType=="function"&&!z)switch(A.getAttributeType(Zt,ce)){case"TrustedHTML":{I=y.createHTML(I);break}case"TrustedScriptURL":{I=y.createScriptURL(I);break}}if(I!==rt)try{z?i.setAttributeNS(z,S,I):i.setAttribute(S,I),nt(i)?G(i):Jt(e.removed)}catch{J(S,i)}}X(C.afterSanitizeAttributes,i,null)},Gn=function g(i){let u=null;const f=Bt(i);for(X(C.beforeSanitizeShadowDOM,i,null);u=f.nextNode();)X(C.uponSanitizeShadowNode,u,null),Gt(u),jt(u),u.content instanceof a&&g(u.content);X(C.afterSanitizeShadowDOM,i,null)};return e.sanitize=function(g){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},u=null,f=null,w=null,D=null;if(Je=!g,Je&&(g="<!-->"),typeof g!="string"&&!Ht(g))if(typeof g.toString=="function"){if(g=g.toString(),typeof g!="string")throw me("dirty is not a string, aborting")}else throw me("toString is not a function");if(!e.isSupported)return g;if(Ye||tt(i),e.removed=[],typeof g=="string"&&(he=!1),he){if(g.nodeName){const Q=_(g.nodeName);if(!R[Q]||pe[Q])throw me("root node is forbidden and cannot be sanitized in-place")}}else if(g instanceof c)u=Ft("<!---->"),f=u.ownerDocument.importNode(g,!0),f.nodeType===be.element&&f.nodeName==="BODY"||f.nodeName==="HTML"?u=f:u.appendChild(f);else{if(!ie&&!se&&!K&&g.indexOf("<")===-1)return y&&Ie?y.createHTML(g):g;if(u=Ft(g),!u)return ie?null:Ie?j:""}u&&Xe&&G(u.firstChild);const S=Bt(he?g:u);for(;w=S.nextNode();)Gt(w),jt(w),w.content instanceof a&&Gn(w.content);if(he)return g;if(ie){if(Le)for(D=In.call(u.ownerDocument);u.firstChild;)D.appendChild(u.firstChild);else D=u;return(L.shadowroot||L.shadowrootmode)&&(D=Cn.call(s,D,!0)),D}let z=K?u.outerHTML:u.innerHTML;return K&&R["!doctype"]&&u.ownerDocument&&u.ownerDocument.doctype&&u.ownerDocument.doctype.name&&O(mn,u.ownerDocument.doctype.name)&&(z="<!DOCTYPE "+u.ownerDocument.doctype.name+`>
|
|
3
|
-
`+z),se&&
|
|
4
|
-
]`).replace("lheading",
|
|
1
|
+
import{b as qn,l as jn,h as Qt}from"./CZHsSL_X.js";import{B as Zn}from"./r0JawsZc.js";function os(n,e,...r){var s=new Zn(n);qn(()=>{const t=e()??null;s.ensure(t,t&&(a=>t(a,...r)))},jn)}function gn(n){var e,r,s="";if(typeof n=="string"||typeof n=="number")s+=n;else if(typeof n=="object")if(Array.isArray(n)){var t=n.length;for(e=0;e<t;e++)n[e]&&(r=gn(n[e]))&&(s&&(s+=" "),s+=r)}else for(r in n)n[r]&&(s&&(s+=" "),s+=r);return s}function Yn(){for(var n,e,r=0,s="",t=arguments.length;r<t;r++)(n=arguments[r])&&(e=gn(n))&&(s&&(s+=" "),s+=e);return s}function cs(n){return typeof n=="object"?Yn(n):n??""}const Vt=[...`
|
|
2
|
+
\r\f \v\uFEFF`];function Xn(n,e,r){var s=n==null?"":""+n;if(e&&(s=s?s+" "+e:e),r){for(var t of Object.keys(r))if(r[t])s=s?s+" "+t:t;else if(s.length)for(var a=t.length,l=0;(l=s.indexOf(t,l))>=0;){var c=l+a;(l===0||Vt.includes(s[l-1]))&&(c===s.length||Vt.includes(s[c]))?s=(l===0?"":s.substring(0,l))+s.substring(c+1):l=c}}return s===""?null:s}function Kt(n,e=!1){var r=e?" !important;":";",s="";for(var t of Object.keys(n)){var a=n[t];a!=null&&a!==""&&(s+=" "+t+": "+a+r)}return s}function it(n){return n[0]!=="-"||n[1]!=="-"?n.toLowerCase():n}function us(n,e){if(e){var r="",s,t;if(Array.isArray(e)?(s=e[0],t=e[1]):s=e,n){n=String(n).replaceAll(/\s*\/\*.*?\*\/\s*/g,"").trim();var a=!1,l=0,c=!1,o=[];s&&o.push(...Object.keys(s).map(it)),t&&o.push(...Object.keys(t).map(it));var h=0,p=-1;const v=n.length;for(var m=0;m<v;m++){var d=n[m];if(c?d==="/"&&n[m-1]==="*"&&(c=!1):a?a===d&&(a=!1):d==="/"&&n[m+1]==="*"?c=!0:d==='"'||d==="'"?a=d:d==="("?l++:d===")"&&l--,!c&&a===!1&&l===0){if(d===":"&&p===-1)p=m;else if(d===";"||m===v-1){if(p!==-1){var A=it(n.substring(h,p).trim());if(!o.includes(A)){d!==";"&&m++;var x=n.substring(h,m).trim();r+=" "+x+";"}}h=m+1,p=-1}}}}return s&&(r+=Kt(s)),t&&(r+=Kt(t,!0)),r=r.trim(),r===""?null:r}return n==null?null:String(n)}function ps(n,e,r,s,t,a){var l=n.__className;if(Qt||l!==r||l===void 0){var c=Xn(r,s,a);(!Qt||c!==n.getAttribute("class"))&&(c==null?n.removeAttribute("class"):e?n.className=c:n.setAttribute("class",c)),n.__className=r}else if(a&&t!==a)for(var o in a){var h=!!a[o];(t==null||h!==!!t[o])&&n.classList.toggle(o,h)}return a}const{entries:dn,setPrototypeOf:Jt,isFrozen:Qn,getPrototypeOf:Vn,getOwnPropertyDescriptor:Kn}=Object;let{freeze:M,seal:U,create:$e}=Object,{apply:ht,construct:ft}=typeof Reflect<"u"&&Reflect;M||(M=function(e){return e});U||(U=function(e){return e});ht||(ht=function(e,r){for(var s=arguments.length,t=new Array(s>2?s-2:0),a=2;a<s;a++)t[a-2]=arguments[a];return e.apply(r,t)});ft||(ft=function(e){for(var r=arguments.length,s=new Array(r>1?r-1:0),t=1;t<r;t++)s[t-1]=arguments[t];return new e(...s)});const Pe=P(Array.prototype.forEach),Jn=P(Array.prototype.lastIndexOf),en=P(Array.prototype.pop),ge=P(Array.prototype.push),er=P(Array.prototype.splice),Ue=P(String.prototype.toLowerCase),lt=P(String.prototype.toString),at=P(String.prototype.match),de=P(String.prototype.replace),tr=P(String.prototype.indexOf),nr=P(String.prototype.trim),$=P(Object.prototype.hasOwnProperty),O=P(RegExp.prototype.test),me=rr(TypeError);function P(n){return function(e){e instanceof RegExp&&(e.lastIndex=0);for(var r=arguments.length,s=new Array(r>1?r-1:0),t=1;t<r;t++)s[t-1]=arguments[t];return ht(n,e,s)}}function rr(n){return function(){for(var e=arguments.length,r=new Array(e),s=0;s<e;s++)r[s]=arguments[s];return ft(n,r)}}function k(n,e){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Ue;Jt&&Jt(n,null);let s=e.length;for(;s--;){let t=e[s];if(typeof t=="string"){const a=r(t);a!==t&&(Qn(e)||(e[s]=a),t=a)}n[t]=!0}return n}function sr(n){for(let e=0;e<n.length;e++)$(n,e)||(n[e]=null);return n}function W(n){const e=$e(null);for(const[r,s]of dn(n))$(n,r)&&(Array.isArray(s)?e[r]=sr(s):s&&typeof s=="object"&&s.constructor===Object?e[r]=W(s):e[r]=s);return e}function ke(n,e){for(;n!==null;){const s=Kn(n,e);if(s){if(s.get)return P(s.get);if(typeof s.value=="function")return P(s.value)}n=Vn(n)}function r(){return null}return r}const tn=M(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),ot=M(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),ct=M(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),ir=M(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),ut=M(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),lr=M(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),nn=M(["#text"]),rn=M(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),pt=M(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),sn=M(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),ve=M(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),ar=U(/\{\{[\w\W]*|[\w\W]*\}\}/gm),or=U(/<%[\w\W]*|[\w\W]*%>/gm),cr=U(/\$\{[\w\W]*/gm),ur=U(/^data-[\-\w.\u00B7-\uFFFF]+$/),pr=U(/^aria-[\-\w]+$/),mn=U(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),hr=U(/^(?:\w+script|data):/i),fr=U(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),kn=U(/^html$/i),gr=U(/^[a-z][.\w]*(-[.\w]+)+$/i);var ln=Object.freeze({__proto__:null,ARIA_ATTR:pr,ATTR_WHITESPACE:fr,CUSTOM_ELEMENT:gr,DATA_ATTR:ur,DOCTYPE_NAME:kn,ERB_EXPR:or,IS_ALLOWED_URI:mn,IS_SCRIPT_OR_DATA:hr,MUSTACHE_EXPR:ar,TMPLIT_EXPR:cr});const be={element:1,text:3,progressingInstruction:7,comment:8,document:9},dr=function(){return typeof window>"u"?null:window},mr=function(e,r){if(typeof e!="object"||typeof e.createPolicy!="function")return null;let s=null;const t="data-tt-policy-suffix";r&&r.hasAttribute(t)&&(s=r.getAttribute(t));const a="dompurify"+(s?"#"+s:"");try{return e.createPolicy(a,{createHTML(l){return l},createScriptURL(l){return l}})}catch{return console.warn("TrustedTypes policy "+a+" could not be created."),null}},an=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function bn(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:dr();const e=g=>bn(g);if(e.version="3.3.3",e.removed=[],!n||!n.document||n.document.nodeType!==be.document||!n.Element)return e.isSupported=!1,e;let{document:r}=n;const s=r,t=s.currentScript,{DocumentFragment:a,HTMLTemplateElement:l,Node:c,Element:o,NodeFilter:h,NamedNodeMap:p=n.NamedNodeMap||n.MozNamedAttrMap,HTMLFormElement:m,DOMParser:d,trustedTypes:A}=n,x=o.prototype,v=ke(x,"cloneNode"),Se=ke(x,"remove"),_e=ke(x,"nextSibling"),Re=ke(x,"childNodes"),re=ke(x,"parentNode");if(typeof l=="function"){const g=r.createElement("template");g.content&&g.content.ownerDocument&&(r=g.content.ownerDocument)}let y,j="";const{implementation:Z,createNodeIterator:In,createDocumentFragment:Cn,getElementsByTagName:Dn}=r,{importNode:On}=s;let D=an();e.isSupported=typeof dn=="function"&&typeof re=="function"&&Z&&Z.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:qe,ERB_EXPR:je,TMPLIT_EXPR:Ze,DATA_ATTR:Nn,ARIA_ATTR:Mn,IS_SCRIPT_OR_DATA:Pn,ATTR_WHITESPACE:Rt,CUSTOM_ELEMENT:vn}=ln;let{IS_ALLOWED_URI:yt}=ln,R=null;const Lt=k({},[...tn,...ot,...ct,...ut,...nn]);let L=null;const It=k({},[...rn,...pt,...sn,...ve]);let E=Object.seal($e(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),pe=null,ye=null;const V=Object.seal($e(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let Ct=!0,Ye=!0,Dt=!1,Ot=!0,se=!1,Le=!0,K=!1,Xe=!1,Qe=!1,ie=!1,Ie=!1,Ce=!1,Nt=!0,Mt=!1;const zn="user-content-";let Ve=!0,he=!1,le={},H=null;const Ke=k({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let Pt=null;const vt=k({},["audio","video","img","source","image","track"]);let Je=null;const zt=k({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),De="http://www.w3.org/1998/Math/MathML",Oe="http://www.w3.org/2000/svg",Y="http://www.w3.org/1999/xhtml";let ae=Y,et=!1,tt=null;const $n=k({},[De,Oe,Y],lt);let Ne=k({},["mi","mo","mn","ms","mtext"]),Me=k({},["annotation-xml"]);const Un=k({},["title","style","font","a","script"]);let fe=null;const Fn=["application/xhtml+xml","text/html"],Bn="text/html";let _=null,oe=null;const Hn=r.createElement("form"),$t=function(i){return i instanceof RegExp||i instanceof Function},nt=function(){let i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(oe&&oe===i)){if((!i||typeof i!="object")&&(i={}),i=W(i),fe=Fn.indexOf(i.PARSER_MEDIA_TYPE)===-1?Bn:i.PARSER_MEDIA_TYPE,_=fe==="application/xhtml+xml"?lt:Ue,R=$(i,"ALLOWED_TAGS")?k({},i.ALLOWED_TAGS,_):Lt,L=$(i,"ALLOWED_ATTR")?k({},i.ALLOWED_ATTR,_):It,tt=$(i,"ALLOWED_NAMESPACES")?k({},i.ALLOWED_NAMESPACES,lt):$n,Je=$(i,"ADD_URI_SAFE_ATTR")?k(W(zt),i.ADD_URI_SAFE_ATTR,_):zt,Pt=$(i,"ADD_DATA_URI_TAGS")?k(W(vt),i.ADD_DATA_URI_TAGS,_):vt,H=$(i,"FORBID_CONTENTS")?k({},i.FORBID_CONTENTS,_):Ke,pe=$(i,"FORBID_TAGS")?k({},i.FORBID_TAGS,_):W({}),ye=$(i,"FORBID_ATTR")?k({},i.FORBID_ATTR,_):W({}),le=$(i,"USE_PROFILES")?i.USE_PROFILES:!1,Ct=i.ALLOW_ARIA_ATTR!==!1,Ye=i.ALLOW_DATA_ATTR!==!1,Dt=i.ALLOW_UNKNOWN_PROTOCOLS||!1,Ot=i.ALLOW_SELF_CLOSE_IN_ATTR!==!1,se=i.SAFE_FOR_TEMPLATES||!1,Le=i.SAFE_FOR_XML!==!1,K=i.WHOLE_DOCUMENT||!1,ie=i.RETURN_DOM||!1,Ie=i.RETURN_DOM_FRAGMENT||!1,Ce=i.RETURN_TRUSTED_TYPE||!1,Qe=i.FORCE_BODY||!1,Nt=i.SANITIZE_DOM!==!1,Mt=i.SANITIZE_NAMED_PROPS||!1,Ve=i.KEEP_CONTENT!==!1,he=i.IN_PLACE||!1,yt=i.ALLOWED_URI_REGEXP||mn,ae=i.NAMESPACE||Y,Ne=i.MATHML_TEXT_INTEGRATION_POINTS||Ne,Me=i.HTML_INTEGRATION_POINTS||Me,E=i.CUSTOM_ELEMENT_HANDLING||{},i.CUSTOM_ELEMENT_HANDLING&&$t(i.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(E.tagNameCheck=i.CUSTOM_ELEMENT_HANDLING.tagNameCheck),i.CUSTOM_ELEMENT_HANDLING&&$t(i.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(E.attributeNameCheck=i.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),i.CUSTOM_ELEMENT_HANDLING&&typeof i.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(E.allowCustomizedBuiltInElements=i.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),se&&(Ye=!1),Ie&&(ie=!0),le&&(R=k({},nn),L=$e(null),le.html===!0&&(k(R,tn),k(L,rn)),le.svg===!0&&(k(R,ot),k(L,pt),k(L,ve)),le.svgFilters===!0&&(k(R,ct),k(L,pt),k(L,ve)),le.mathMl===!0&&(k(R,ut),k(L,sn),k(L,ve))),$(i,"ADD_TAGS")||(V.tagCheck=null),$(i,"ADD_ATTR")||(V.attributeCheck=null),i.ADD_TAGS&&(typeof i.ADD_TAGS=="function"?V.tagCheck=i.ADD_TAGS:(R===Lt&&(R=W(R)),k(R,i.ADD_TAGS,_))),i.ADD_ATTR&&(typeof i.ADD_ATTR=="function"?V.attributeCheck=i.ADD_ATTR:(L===It&&(L=W(L)),k(L,i.ADD_ATTR,_))),i.ADD_URI_SAFE_ATTR&&k(Je,i.ADD_URI_SAFE_ATTR,_),i.FORBID_CONTENTS&&(H===Ke&&(H=W(H)),k(H,i.FORBID_CONTENTS,_)),i.ADD_FORBID_CONTENTS&&(H===Ke&&(H=W(H)),k(H,i.ADD_FORBID_CONTENTS,_)),Ve&&(R["#text"]=!0),K&&k(R,["html","head","body"]),R.table&&(k(R,["tbody"]),delete pe.tbody),i.TRUSTED_TYPES_POLICY){if(typeof i.TRUSTED_TYPES_POLICY.createHTML!="function")throw me('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof i.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw me('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');y=i.TRUSTED_TYPES_POLICY,j=y.createHTML("")}else y===void 0&&(y=mr(A,t)),y!==null&&typeof j=="string"&&(j=y.createHTML(""));M&&M(i),oe=i}},Ut=k({},[...ot,...ct,...ir]),Ft=k({},[...ut,...lr]),Gn=function(i){let u=re(i);(!u||!u.tagName)&&(u={namespaceURI:ae,tagName:"template"});const f=Ue(i.tagName),w=Ue(u.tagName);return tt[i.namespaceURI]?i.namespaceURI===Oe?u.namespaceURI===Y?f==="svg":u.namespaceURI===De?f==="svg"&&(w==="annotation-xml"||Ne[w]):!!Ut[f]:i.namespaceURI===De?u.namespaceURI===Y?f==="math":u.namespaceURI===Oe?f==="math"&&Me[w]:!!Ft[f]:i.namespaceURI===Y?u.namespaceURI===Oe&&!Me[w]||u.namespaceURI===De&&!Ne[w]?!1:!Ft[f]&&(Un[f]||!Ut[f]):!!(fe==="application/xhtml+xml"&&tt[i.namespaceURI]):!1},G=function(i){ge(e.removed,{element:i});try{re(i).removeChild(i)}catch{Se(i)}},J=function(i,u){try{ge(e.removed,{attribute:u.getAttributeNode(i),from:u})}catch{ge(e.removed,{attribute:null,from:u})}if(u.removeAttribute(i),i==="is")if(ie||Ie)try{G(u)}catch{}else try{u.setAttribute(i,"")}catch{}},Bt=function(i){let u=null,f=null;if(Qe)i="<remove></remove>"+i;else{const S=at(i,/^[\r\n\t ]+/);f=S&&S[0]}fe==="application/xhtml+xml"&&ae===Y&&(i='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+i+"</body></html>");const w=y?y.createHTML(i):i;if(ae===Y)try{u=new d().parseFromString(w,fe)}catch{}if(!u||!u.documentElement){u=Z.createDocument(ae,"template",null);try{u.documentElement.innerHTML=et?j:w}catch{}}const C=u.body||u.documentElement;return i&&f&&C.insertBefore(r.createTextNode(f),C.childNodes[0]||null),ae===Y?Dn.call(u,K?"html":"body")[0]:K?u.documentElement:C},Ht=function(i){return In.call(i.ownerDocument||i,i,h.SHOW_ELEMENT|h.SHOW_COMMENT|h.SHOW_TEXT|h.SHOW_PROCESSING_INSTRUCTION|h.SHOW_CDATA_SECTION,null)},rt=function(i){return i instanceof m&&(typeof i.nodeName!="string"||typeof i.textContent!="string"||typeof i.removeChild!="function"||!(i.attributes instanceof p)||typeof i.removeAttribute!="function"||typeof i.setAttribute!="function"||typeof i.namespaceURI!="string"||typeof i.insertBefore!="function"||typeof i.hasChildNodes!="function")},Gt=function(i){return typeof c=="function"&&i instanceof c};function X(g,i,u){Pe(g,f=>{f.call(e,i,u,oe)})}const Wt=function(i){let u=null;if(X(D.beforeSanitizeElements,i,null),rt(i))return G(i),!0;const f=_(i.nodeName);if(X(D.uponSanitizeElement,i,{tagName:f,allowedTags:R}),Le&&i.hasChildNodes()&&!Gt(i.firstElementChild)&&O(/<[/\w!]/g,i.innerHTML)&&O(/<[/\w!]/g,i.textContent)||i.nodeType===be.progressingInstruction||Le&&i.nodeType===be.comment&&O(/<[/\w]/g,i.data))return G(i),!0;if(!(V.tagCheck instanceof Function&&V.tagCheck(f))&&(!R[f]||pe[f])){if(!pe[f]&&jt(f)&&(E.tagNameCheck instanceof RegExp&&O(E.tagNameCheck,f)||E.tagNameCheck instanceof Function&&E.tagNameCheck(f)))return!1;if(Ve&&!H[f]){const w=re(i)||i.parentNode,C=Re(i)||i.childNodes;if(C&&w){const S=C.length;for(let z=S-1;z>=0;--z){const Q=v(C[z],!0);Q.__removalCount=(i.__removalCount||0)+1,w.insertBefore(Q,_e(i))}}}return G(i),!0}return i instanceof o&&!Gn(i)||(f==="noscript"||f==="noembed"||f==="noframes")&&O(/<\/no(script|embed|frames)/i,i.innerHTML)?(G(i),!0):(se&&i.nodeType===be.text&&(u=i.textContent,Pe([qe,je,Ze],w=>{u=de(u,w," ")}),i.textContent!==u&&(ge(e.removed,{element:i.cloneNode()}),i.textContent=u)),X(D.afterSanitizeElements,i,null),!1)},qt=function(i,u,f){if(ye[u]||Nt&&(u==="id"||u==="name")&&(f in r||f in Hn))return!1;if(!(Ye&&!ye[u]&&O(Nn,u))){if(!(Ct&&O(Mn,u))){if(!(V.attributeCheck instanceof Function&&V.attributeCheck(u,i))){if(!L[u]||ye[u]){if(!(jt(i)&&(E.tagNameCheck instanceof RegExp&&O(E.tagNameCheck,i)||E.tagNameCheck instanceof Function&&E.tagNameCheck(i))&&(E.attributeNameCheck instanceof RegExp&&O(E.attributeNameCheck,u)||E.attributeNameCheck instanceof Function&&E.attributeNameCheck(u,i))||u==="is"&&E.allowCustomizedBuiltInElements&&(E.tagNameCheck instanceof RegExp&&O(E.tagNameCheck,f)||E.tagNameCheck instanceof Function&&E.tagNameCheck(f))))return!1}else if(!Je[u]){if(!O(yt,de(f,Rt,""))){if(!((u==="src"||u==="xlink:href"||u==="href")&&i!=="script"&&tr(f,"data:")===0&&Pt[i])){if(!(Dt&&!O(Pn,de(f,Rt,"")))){if(f)return!1}}}}}}}return!0},jt=function(i){return i!=="annotation-xml"&&at(i,vn)},Zt=function(i){X(D.beforeSanitizeAttributes,i,null);const{attributes:u}=i;if(!u||rt(i))return;const f={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:L,forceKeepAttr:void 0};let w=u.length;for(;w--;){const C=u[w],{name:S,namespaceURI:z,value:Q}=C,ce=_(S),st=Q;let I=S==="value"?st:nr(st);if(f.attrName=ce,f.attrValue=I,f.keepAttr=!0,f.forceKeepAttr=void 0,X(D.uponSanitizeAttribute,i,f),I=f.attrValue,Mt&&(ce==="id"||ce==="name")&&(J(S,i),I=zn+I),Le&&O(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,I)){J(S,i);continue}if(ce==="attributename"&&at(I,"href")){J(S,i);continue}if(f.forceKeepAttr)continue;if(!f.keepAttr){J(S,i);continue}if(!Ot&&O(/\/>/i,I)){J(S,i);continue}se&&Pe([qe,je,Ze],Xt=>{I=de(I,Xt," ")});const Yt=_(i.nodeName);if(!qt(Yt,ce,I)){J(S,i);continue}if(y&&typeof A=="object"&&typeof A.getAttributeType=="function"&&!z)switch(A.getAttributeType(Yt,ce)){case"TrustedHTML":{I=y.createHTML(I);break}case"TrustedScriptURL":{I=y.createScriptURL(I);break}}if(I!==st)try{z?i.setAttributeNS(z,S,I):i.setAttribute(S,I),rt(i)?G(i):en(e.removed)}catch{J(S,i)}}X(D.afterSanitizeAttributes,i,null)},Wn=function g(i){let u=null;const f=Ht(i);for(X(D.beforeSanitizeShadowDOM,i,null);u=f.nextNode();)X(D.uponSanitizeShadowNode,u,null),Wt(u),Zt(u),u.content instanceof a&&g(u.content);X(D.afterSanitizeShadowDOM,i,null)};return e.sanitize=function(g){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},u=null,f=null,w=null,C=null;if(et=!g,et&&(g="<!-->"),typeof g!="string"&&!Gt(g))if(typeof g.toString=="function"){if(g=g.toString(),typeof g!="string")throw me("dirty is not a string, aborting")}else throw me("toString is not a function");if(!e.isSupported)return g;if(Xe||nt(i),e.removed=[],typeof g=="string"&&(he=!1),he){if(g.nodeName){const Q=_(g.nodeName);if(!R[Q]||pe[Q])throw me("root node is forbidden and cannot be sanitized in-place")}}else if(g instanceof c)u=Bt("<!---->"),f=u.ownerDocument.importNode(g,!0),f.nodeType===be.element&&f.nodeName==="BODY"||f.nodeName==="HTML"?u=f:u.appendChild(f);else{if(!ie&&!se&&!K&&g.indexOf("<")===-1)return y&&Ce?y.createHTML(g):g;if(u=Bt(g),!u)return ie?null:Ce?j:""}u&&Qe&&G(u.firstChild);const S=Ht(he?g:u);for(;w=S.nextNode();)Wt(w),Zt(w),w.content instanceof a&&Wn(w.content);if(he)return g;if(ie){if(Ie)for(C=Cn.call(u.ownerDocument);u.firstChild;)C.appendChild(u.firstChild);else C=u;return(L.shadowroot||L.shadowrootmode)&&(C=On.call(s,C,!0)),C}let z=K?u.outerHTML:u.innerHTML;return K&&R["!doctype"]&&u.ownerDocument&&u.ownerDocument.doctype&&u.ownerDocument.doctype.name&&O(kn,u.ownerDocument.doctype.name)&&(z="<!DOCTYPE "+u.ownerDocument.doctype.name+`>
|
|
3
|
+
`+z),se&&Pe([qe,je,Ze],Q=>{z=de(z,Q," ")}),y&&Ce?y.createHTML(z):z},e.setConfig=function(){let g=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};nt(g),Xe=!0},e.clearConfig=function(){oe=null,Xe=!1},e.isValidAttribute=function(g,i,u){oe||nt({});const f=_(g),w=_(i);return qt(f,w,u)},e.addHook=function(g,i){typeof i=="function"&&ge(D[g],i)},e.removeHook=function(g,i){if(i!==void 0){const u=Jn(D[g],i);return u===-1?void 0:er(D[g],u,1)[0]}return en(D[g])},e.removeHooks=function(g){D[g]=[]},e.removeAllHooks=function(){D=an()},e}var kr=bn();function kt(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var ne=kt();function xn(n){ne=n}var ee={exec:()=>null};function b(n,e=""){let r=typeof n=="string"?n:n.source,s={replace:(t,a)=>{let l=typeof a=="string"?a:a.source;return l=l.replace(N.caret,"$1"),r=r.replace(t,l),s},getRegex:()=>new RegExp(r,e)};return s}var br=(()=>{try{return!!new RegExp("(?<=1)(?<!1)")}catch{return!1}})(),N={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] +\S/,listReplaceTask:/^\[[ xX]\] +/,listTaskCheckbox:/\[[ xX]\]/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:n=>new RegExp(`^( {0,3}${n})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:n=>new RegExp(`^ {0,${Math.min(3,n-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),hrRegex:n=>new RegExp(`^ {0,${Math.min(3,n-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:n=>new RegExp(`^ {0,${Math.min(3,n-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:n=>new RegExp(`^ {0,${Math.min(3,n-1)}}#`),htmlBeginRegex:n=>new RegExp(`^ {0,${Math.min(3,n-1)}}<(?:[a-z].*>|!--)`,"i"),blockquoteBeginRegex:n=>new RegExp(`^ {0,${Math.min(3,n-1)}}>`)},xr=/^(?:[ \t]*(?:\n|$))+/,Tr=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,wr=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,Ee=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,Ar=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,bt=/ {0,3}(?:[*+-]|\d{1,9}[.)])/,Tn=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,wn=b(Tn).replace(/bull/g,bt).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),Er=b(Tn).replace(/bull/g,bt).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),xt=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,Sr=/^[^\n]+/,Tt=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,_r=b(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",Tt).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),Rr=b(/^(bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,bt).getRegex(),Ge="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",wt=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,yr=b("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",wt).replace("tag",Ge).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),An=b(xt).replace("hr",Ee).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Ge).getRegex(),Lr=b(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",An).getRegex(),At={blockquote:Lr,code:Tr,def:_r,fences:wr,heading:Ar,hr:Ee,html:yr,lheading:wn,list:Rr,newline:xr,paragraph:An,table:ee,text:Sr},on=b("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",Ee).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Ge).getRegex(),Ir={...At,lheading:Er,table:on,paragraph:b(xt).replace("hr",Ee).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",on).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Ge).getRegex()},Cr={...At,html:b(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",wt).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:ee,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:b(xt).replace("hr",Ee).replace("heading",` *#{1,6} *[^
|
|
4
|
+
]`).replace("lheading",wn).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},Dr=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,Or=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,En=/^( {2,}|\\)\n(?!\s*$)/,Nr=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,ue=/[\p{P}\p{S}]/u,We=/[\s\p{P}\p{S}]/u,Et=/[^\s\p{P}\p{S}]/u,Mr=b(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,We).getRegex(),Sn=/(?!~)[\p{P}\p{S}]/u,Pr=/(?!~)[\s\p{P}\p{S}]/u,vr=/(?:[^\s\p{P}\p{S}]|~)/u,zr=b(/link|precode-code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",br?"(?<!`)()":"(^^|[^`])").replace("code",/(?<b>`+)[^`]+\k<b>(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),_n=/^(?:\*+(?:((?!\*)punct)|([^\s*]))?)|^_+(?:((?!_)punct)|([^\s_]))?/,$r=b(_n,"u").replace(/punct/g,ue).getRegex(),Ur=b(_n,"u").replace(/punct/g,Sn).getRegex(),Rn="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",Fr=b(Rn,"gu").replace(/notPunctSpace/g,Et).replace(/punctSpace/g,We).replace(/punct/g,ue).getRegex(),Br=b(Rn,"gu").replace(/notPunctSpace/g,vr).replace(/punctSpace/g,Pr).replace(/punct/g,Sn).getRegex(),Hr=b("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,Et).replace(/punctSpace/g,We).replace(/punct/g,ue).getRegex(),Gr=b(/^~~?(?:((?!~)punct)|[^\s~])/,"u").replace(/punct/g,ue).getRegex(),Wr="^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)",qr=b(Wr,"gu").replace(/notPunctSpace/g,Et).replace(/punctSpace/g,We).replace(/punct/g,ue).getRegex(),jr=b(/\\(punct)/,"gu").replace(/punct/g,ue).getRegex(),Zr=b(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),Yr=b(wt).replace("(?:-->|$)","-->").getRegex(),Xr=b("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",Yr).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),Fe=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\])|[^\[\]\\`])*?/,Qr=b(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?\s*\)/).replace("label",Fe).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),yn=b(/^!?\[(label)\]\[(ref)\]/).replace("label",Fe).replace("ref",Tt).getRegex(),Ln=b(/^!?\[(ref)\](?:\[\])?/).replace("ref",Tt).getRegex(),Vr=b("reflink|nolink(?!\\()","g").replace("reflink",yn).replace("nolink",Ln).getRegex(),cn=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,St={_backpedal:ee,anyPunctuation:jr,autolink:Zr,blockSkip:zr,br:En,code:Or,del:ee,delLDelim:ee,delRDelim:ee,emStrongLDelim:$r,emStrongRDelimAst:Fr,emStrongRDelimUnd:Hr,escape:Dr,link:Qr,nolink:Ln,punctuation:Mr,reflink:yn,reflinkSearch:Vr,tag:Xr,text:Nr,url:ee},Kr={...St,link:b(/^!?\[(label)\]\((.*?)\)/).replace("label",Fe).getRegex(),reflink:b(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",Fe).getRegex()},gt={...St,emStrongRDelimAst:Br,emStrongLDelim:Ur,delLDelim:Gr,delRDelim:qr,url:b(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",cn).replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:b(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",cn).getRegex()},Jr={...gt,br:b(En).replace("{2,}","*").getRegex(),text:b(gt.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},ze={normal:At,gfm:Ir,pedantic:Cr},xe={normal:St,gfm:gt,breaks:Jr,pedantic:Kr},es={"&":"&","<":"<",">":">",'"':""","'":"'"},un=n=>es[n];function q(n,e){if(e){if(N.escapeTest.test(n))return n.replace(N.escapeReplace,un)}else if(N.escapeTestNoEncode.test(n))return n.replace(N.escapeReplaceNoEncode,un);return n}function pn(n){try{n=encodeURI(n).replace(N.percentDecode,"%")}catch{return null}return n}function hn(n,e){let r=n.replace(N.findPipe,(a,l,c)=>{let o=!1,h=l;for(;--h>=0&&c[h]==="\\";)o=!o;return o?"|":" |"}),s=r.split(N.splitPipe),t=0;if(s[0].trim()||s.shift(),s.length>0&&!s.at(-1)?.trim()&&s.pop(),e)if(s.length>e)s.splice(e);else for(;s.length<e;)s.push("");for(;t<s.length;t++)s[t]=s[t].trim().replace(N.slashPipe,"|");return s}function Te(n,e,r){let s=n.length;if(s===0)return"";let t=0;for(;t<s&&n.charAt(s-t-1)===e;)t++;return n.slice(0,s-t)}function ts(n,e){if(n.indexOf(e[1])===-1)return-1;let r=0;for(let s=0;s<n.length;s++)if(n[s]==="\\")s++;else if(n[s]===e[0])r++;else if(n[s]===e[1]&&(r--,r<0))return s;return r>0?-2:-1}function ns(n,e=0){let r=e,s="";for(let t of n)if(t===" "){let a=4-r%4;s+=" ".repeat(a),r+=a}else s+=t,r++;return s}function fn(n,e,r,s,t){let a=e.href,l=e.title||null,c=n[1].replace(t.other.outputLinkReplace,"$1");s.state.inLink=!0;let o={type:n[0].charAt(0)==="!"?"image":"link",raw:r,href:a,title:l,text:c,tokens:s.inlineTokens(c)};return s.state.inLink=!1,o}function rs(n,e,r){let s=n.match(r.other.indentCodeCompensation);if(s===null)return e;let t=s[1];return e.split(`
|
|
5
5
|
`).map(a=>{let l=a.match(r.other.beginningSpace);if(l===null)return a;let[c]=l;return c.length>=t.length?a.slice(t.length):a}).join(`
|
|
6
|
-
`)}var
|
|
7
|
-
`)}}}fences(n){let e=this.rules.block.fences.exec(n);if(e){let r=e[0],s=
|
|
6
|
+
`)}var Be=class{options;rules;lexer;constructor(n){this.options=n||ne}space(n){let e=this.rules.block.newline.exec(n);if(e&&e[0].length>0)return{type:"space",raw:e[0]}}code(n){let e=this.rules.block.code.exec(n);if(e){let r=e[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:e[0],codeBlockStyle:"indented",text:this.options.pedantic?r:Te(r,`
|
|
7
|
+
`)}}}fences(n){let e=this.rules.block.fences.exec(n);if(e){let r=e[0],s=rs(r,e[3]||"",this.rules);return{type:"code",raw:r,lang:e[2]?e[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):e[2],text:s}}}heading(n){let e=this.rules.block.heading.exec(n);if(e){let r=e[2].trim();if(this.rules.other.endingHash.test(r)){let s=Te(r,"#");(this.options.pedantic||!s||this.rules.other.endingSpaceChar.test(s))&&(r=s.trim())}return{type:"heading",raw:e[0],depth:e[1].length,text:r,tokens:this.lexer.inline(r)}}}hr(n){let e=this.rules.block.hr.exec(n);if(e)return{type:"hr",raw:Te(e[0],`
|
|
8
8
|
`)}}blockquote(n){let e=this.rules.block.blockquote.exec(n);if(e){let r=Te(e[0],`
|
|
9
9
|
`).split(`
|
|
10
10
|
`),s="",t="",a=[];for(;r.length>0;){let l=!1,c=[],o;for(o=0;o<r.length;o++)if(this.rules.other.blockquoteStart.test(r[o]))c.push(r[o]),l=!0;else if(!l)c.push(r[o]);else break;r=r.slice(o);let h=c.join(`
|
|
@@ -16,16 +16,16 @@ ${p}`:p;let m=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTo
|
|
|
16
16
|
`),v=this.blockquote(x);a[a.length-1]=v,s=s.substring(0,s.length-A.raw.length)+v.raw,t=t.substring(0,t.length-A.text.length)+v.text;break}else if(d?.type==="list"){let A=d,x=A.raw+`
|
|
17
17
|
`+r.join(`
|
|
18
18
|
`),v=this.list(x);a[a.length-1]=v,s=s.substring(0,s.length-d.raw.length)+v.raw,t=t.substring(0,t.length-A.raw.length)+v.raw,r=x.substring(a.at(-1).raw.length).split(`
|
|
19
|
-
`);continue}}return{type:"blockquote",raw:s,tokens:a,text:t}}}list(n){let e=this.rules.block.list.exec(n);if(e){let r=e[1].trim(),s=r.length>1,t={type:"list",raw:"",ordered:s,start:s?+r.slice(0,-1):"",loose:!1,items:[]};r=s?`\\d{1,9}\\${r.slice(-1)}`:`\\${r}`,this.options.pedantic&&(r=s?r:"[*+-]");let a=this.rules.other.listItemRegex(r),l=!1;for(;n;){let o=!1,h="",p="";if(!(e=a.exec(n))||this.rules.block.hr.test(n))break;h=e[0],n=n.substring(h.length);let m=
|
|
19
|
+
`);continue}}return{type:"blockquote",raw:s,tokens:a,text:t}}}list(n){let e=this.rules.block.list.exec(n);if(e){let r=e[1].trim(),s=r.length>1,t={type:"list",raw:"",ordered:s,start:s?+r.slice(0,-1):"",loose:!1,items:[]};r=s?`\\d{1,9}\\${r.slice(-1)}`:`\\${r}`,this.options.pedantic&&(r=s?r:"[*+-]");let a=this.rules.other.listItemRegex(r),l=!1;for(;n;){let o=!1,h="",p="";if(!(e=a.exec(n))||this.rules.block.hr.test(n))break;h=e[0],n=n.substring(h.length);let m=ns(e[2].split(`
|
|
20
20
|
`,1)[0],e[1].length),d=n.split(`
|
|
21
21
|
`,1)[0],A=!m.trim(),x=0;if(this.options.pedantic?(x=2,p=m.trimStart()):A?x=e[1].length+1:(x=m.search(this.rules.other.nonSpaceChar),x=x>4?1:x,p=m.slice(x),x+=e[1].length),A&&this.rules.other.blankLine.test(d)&&(h+=d+`
|
|
22
|
-
`,n=n.substring(d.length+1),o=!0),!o){let v=this.rules.other.nextBulletRegex(x),
|
|
23
|
-
`,1)[0],Z;if(d=j,this.options.pedantic?(d=d.replace(this.rules.other.listReplaceNesting," "),Z=d):Z=d.replace(this.rules.other.tabCharGlobal," "),
|
|
24
|
-
`+Z.slice(x);else{if(A||m.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||
|
|
22
|
+
`,n=n.substring(d.length+1),o=!0),!o){let v=this.rules.other.nextBulletRegex(x),Se=this.rules.other.hrRegex(x),_e=this.rules.other.fencesBeginRegex(x),Re=this.rules.other.headingBeginRegex(x),re=this.rules.other.htmlBeginRegex(x),y=this.rules.other.blockquoteBeginRegex(x);for(;n;){let j=n.split(`
|
|
23
|
+
`,1)[0],Z;if(d=j,this.options.pedantic?(d=d.replace(this.rules.other.listReplaceNesting," "),Z=d):Z=d.replace(this.rules.other.tabCharGlobal," "),_e.test(d)||Re.test(d)||re.test(d)||y.test(d)||v.test(d)||Se.test(d))break;if(Z.search(this.rules.other.nonSpaceChar)>=x||!d.trim())p+=`
|
|
24
|
+
`+Z.slice(x);else{if(A||m.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||_e.test(m)||Re.test(m)||Se.test(m))break;p+=`
|
|
25
25
|
`+d}A=!d.trim(),h+=j+`
|
|
26
|
-
`,n=n.substring(j.length+1),m=Z.slice(x)}}t.loose||(l?t.loose=!0:this.rules.other.doubleBlankLine.test(h)&&(l=!0)),t.items.push({type:"list_item",raw:h,task:!!this.options.gfm&&this.rules.other.listIsTask.test(p),loose:!1,text:p,tokens:[]}),t.raw+=h}let c=t.items.at(-1);if(c)c.raw=c.raw.trimEnd(),c.text=c.text.trimEnd();else return;t.raw=t.raw.trimEnd();for(let o of t.items){if(this.lexer.state.top=!1,o.tokens=this.lexer.blockTokens(o.text,[]),o.task){if(o.text=o.text.replace(this.rules.other.listReplaceTask,""),o.tokens[0]?.type==="text"||o.tokens[0]?.type==="paragraph"){o.tokens[0].raw=o.tokens[0].raw.replace(this.rules.other.listReplaceTask,""),o.tokens[0].text=o.tokens[0].text.replace(this.rules.other.listReplaceTask,"");for(let p=this.lexer.inlineQueue.length-1;p>=0;p--)if(this.rules.other.listIsTask.test(this.lexer.inlineQueue[p].src)){this.lexer.inlineQueue[p].src=this.lexer.inlineQueue[p].src.replace(this.rules.other.listReplaceTask,"");break}}let h=this.rules.other.listTaskCheckbox.exec(o.raw);if(h){let p={type:"checkbox",raw:h[0]+" ",checked:h[0]!=="[ ]"};o.checked=p.checked,t.loose?o.tokens[0]&&["paragraph","text"].includes(o.tokens[0].type)&&"tokens"in o.tokens[0]&&o.tokens[0].tokens?(o.tokens[0].raw=p.raw+o.tokens[0].raw,o.tokens[0].text=p.raw+o.tokens[0].text,o.tokens[0].tokens.unshift(p)):o.tokens.unshift({type:"paragraph",raw:p.raw,text:p.raw,tokens:[p]}):o.tokens.unshift(p)}}if(!t.loose){let h=o.tokens.filter(m=>m.type==="space"),p=h.length>0&&h.some(m=>this.rules.other.anyLine.test(m.raw));t.loose=p}}if(t.loose)for(let o of t.items){o.loose=!0;for(let h of o.tokens)h.type==="text"&&(h.type="paragraph")}return t}}html(n){let e=this.rules.block.html.exec(n);if(e)return{type:"html",block:!0,raw:e[0],pre:e[1]==="pre"||e[1]==="script"||e[1]==="style",text:e[0]}}def(n){let e=this.rules.block.def.exec(n);if(e){let r=e[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),s=e[2]?e[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",t=e[3]?e[3].substring(1,e[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):e[3];return{type:"def",tag:r,raw:e[0],href:s,title:t}}}table(n){let e=this.rules.block.table.exec(n);if(!e||!this.rules.other.tableDelimiter.test(e[2]))return;let r=
|
|
27
|
-
`):[],a={type:"table",raw:e[0],header:[],align:[],rows:[]};if(r.length===s.length){for(let l of s)this.rules.other.tableAlignRight.test(l)?a.align.push("right"):this.rules.other.tableAlignCenter.test(l)?a.align.push("center"):this.rules.other.tableAlignLeft.test(l)?a.align.push("left"):a.align.push(null);for(let l=0;l<r.length;l++)a.header.push({text:r[l],tokens:this.lexer.inline(r[l]),header:!0,align:a.align[l]});for(let l of t)a.rows.push(
|
|
28
|
-
`?e[1].slice(0,-1):e[1];return{type:"paragraph",raw:e[0],text:r,tokens:this.lexer.inline(r)}}}text(n){let e=this.rules.block.text.exec(n);if(e)return{type:"text",raw:e[0],text:e[0],tokens:this.lexer.inline(e[0])}}escape(n){let e=this.rules.inline.escape.exec(n);if(e)return{type:"escape",raw:e[0],text:e[1]}}tag(n){let e=this.rules.inline.tag.exec(n);if(e)return!this.lexer.state.inLink&&this.rules.other.startATag.test(e[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(e[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(e[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(e[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:e[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:e[0]}}link(n){let e=this.rules.inline.link.exec(n);if(e){let r=e[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(r)){if(!this.rules.other.endAngleBracket.test(r))return;let a=Te(r.slice(0,-1),"\\");if((r.length-a.length)%2===0)return}else{let a=
|
|
26
|
+
`,n=n.substring(j.length+1),m=Z.slice(x)}}t.loose||(l?t.loose=!0:this.rules.other.doubleBlankLine.test(h)&&(l=!0)),t.items.push({type:"list_item",raw:h,task:!!this.options.gfm&&this.rules.other.listIsTask.test(p),loose:!1,text:p,tokens:[]}),t.raw+=h}let c=t.items.at(-1);if(c)c.raw=c.raw.trimEnd(),c.text=c.text.trimEnd();else return;t.raw=t.raw.trimEnd();for(let o of t.items){if(this.lexer.state.top=!1,o.tokens=this.lexer.blockTokens(o.text,[]),o.task){if(o.text=o.text.replace(this.rules.other.listReplaceTask,""),o.tokens[0]?.type==="text"||o.tokens[0]?.type==="paragraph"){o.tokens[0].raw=o.tokens[0].raw.replace(this.rules.other.listReplaceTask,""),o.tokens[0].text=o.tokens[0].text.replace(this.rules.other.listReplaceTask,"");for(let p=this.lexer.inlineQueue.length-1;p>=0;p--)if(this.rules.other.listIsTask.test(this.lexer.inlineQueue[p].src)){this.lexer.inlineQueue[p].src=this.lexer.inlineQueue[p].src.replace(this.rules.other.listReplaceTask,"");break}}let h=this.rules.other.listTaskCheckbox.exec(o.raw);if(h){let p={type:"checkbox",raw:h[0]+" ",checked:h[0]!=="[ ]"};o.checked=p.checked,t.loose?o.tokens[0]&&["paragraph","text"].includes(o.tokens[0].type)&&"tokens"in o.tokens[0]&&o.tokens[0].tokens?(o.tokens[0].raw=p.raw+o.tokens[0].raw,o.tokens[0].text=p.raw+o.tokens[0].text,o.tokens[0].tokens.unshift(p)):o.tokens.unshift({type:"paragraph",raw:p.raw,text:p.raw,tokens:[p]}):o.tokens.unshift(p)}}if(!t.loose){let h=o.tokens.filter(m=>m.type==="space"),p=h.length>0&&h.some(m=>this.rules.other.anyLine.test(m.raw));t.loose=p}}if(t.loose)for(let o of t.items){o.loose=!0;for(let h of o.tokens)h.type==="text"&&(h.type="paragraph")}return t}}html(n){let e=this.rules.block.html.exec(n);if(e)return{type:"html",block:!0,raw:e[0],pre:e[1]==="pre"||e[1]==="script"||e[1]==="style",text:e[0]}}def(n){let e=this.rules.block.def.exec(n);if(e){let r=e[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),s=e[2]?e[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",t=e[3]?e[3].substring(1,e[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):e[3];return{type:"def",tag:r,raw:e[0],href:s,title:t}}}table(n){let e=this.rules.block.table.exec(n);if(!e||!this.rules.other.tableDelimiter.test(e[2]))return;let r=hn(e[1]),s=e[2].replace(this.rules.other.tableAlignChars,"").split("|"),t=e[3]?.trim()?e[3].replace(this.rules.other.tableRowBlankLine,"").split(`
|
|
27
|
+
`):[],a={type:"table",raw:e[0],header:[],align:[],rows:[]};if(r.length===s.length){for(let l of s)this.rules.other.tableAlignRight.test(l)?a.align.push("right"):this.rules.other.tableAlignCenter.test(l)?a.align.push("center"):this.rules.other.tableAlignLeft.test(l)?a.align.push("left"):a.align.push(null);for(let l=0;l<r.length;l++)a.header.push({text:r[l],tokens:this.lexer.inline(r[l]),header:!0,align:a.align[l]});for(let l of t)a.rows.push(hn(l,a.header.length).map((c,o)=>({text:c,tokens:this.lexer.inline(c),header:!1,align:a.align[o]})));return a}}lheading(n){let e=this.rules.block.lheading.exec(n);if(e){let r=e[1].trim();return{type:"heading",raw:e[0],depth:e[2].charAt(0)==="="?1:2,text:r,tokens:this.lexer.inline(r)}}}paragraph(n){let e=this.rules.block.paragraph.exec(n);if(e){let r=e[1].charAt(e[1].length-1)===`
|
|
28
|
+
`?e[1].slice(0,-1):e[1];return{type:"paragraph",raw:e[0],text:r,tokens:this.lexer.inline(r)}}}text(n){let e=this.rules.block.text.exec(n);if(e)return{type:"text",raw:e[0],text:e[0],tokens:this.lexer.inline(e[0])}}escape(n){let e=this.rules.inline.escape.exec(n);if(e)return{type:"escape",raw:e[0],text:e[1]}}tag(n){let e=this.rules.inline.tag.exec(n);if(e)return!this.lexer.state.inLink&&this.rules.other.startATag.test(e[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(e[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(e[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(e[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:e[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:e[0]}}link(n){let e=this.rules.inline.link.exec(n);if(e){let r=e[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(r)){if(!this.rules.other.endAngleBracket.test(r))return;let a=Te(r.slice(0,-1),"\\");if((r.length-a.length)%2===0)return}else{let a=ts(e[2],"()");if(a===-2)return;if(a>-1){let l=(e[0].indexOf("!")===0?5:4)+e[1].length+a;e[2]=e[2].substring(0,a),e[0]=e[0].substring(0,l).trim(),e[3]=""}}let s=e[2],t="";if(this.options.pedantic){let a=this.rules.other.pedanticHrefTitle.exec(s);a&&(s=a[1],t=a[3])}else t=e[3]?e[3].slice(1,-1):"";return s=s.trim(),this.rules.other.startAngleBracket.test(s)&&(this.options.pedantic&&!this.rules.other.endAngleBracket.test(r)?s=s.slice(1):s=s.slice(1,-1)),fn(e,{href:s&&s.replace(this.rules.inline.anyPunctuation,"$1"),title:t&&t.replace(this.rules.inline.anyPunctuation,"$1")},e[0],this.lexer,this.rules)}}reflink(n,e){let r;if((r=this.rules.inline.reflink.exec(n))||(r=this.rules.inline.nolink.exec(n))){let s=(r[2]||r[1]).replace(this.rules.other.multipleSpaceGlobal," "),t=e[s.toLowerCase()];if(!t){let a=r[0].charAt(0);return{type:"text",raw:a,text:a}}return fn(r,t,r[0],this.lexer,this.rules)}}emStrong(n,e,r=""){let s=this.rules.inline.emStrongLDelim.exec(n);if(!(!s||!s[1]&&!s[2]&&!s[3]&&!s[4]||s[4]&&r.match(this.rules.other.unicodeAlphaNumeric))&&(!(s[1]||s[3])||!r||this.rules.inline.punctuation.exec(r))){let t=[...s[0]].length-1,a,l,c=t,o=0,h=s[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(h.lastIndex=0,e=e.slice(-1*n.length+t);(s=h.exec(e))!=null;){if(a=s[1]||s[2]||s[3]||s[4]||s[5]||s[6],!a)continue;if(l=[...a].length,s[3]||s[4]){c+=l;continue}else if((s[5]||s[6])&&t%3&&!((t+l)%3)){o+=l;continue}if(c-=l,c>0)continue;l=Math.min(l,l+c+o);let p=[...s[0]][0].length,m=n.slice(0,t+s.index+p+l);if(Math.min(t,l)%2){let A=m.slice(1,-1);return{type:"em",raw:m,text:A,tokens:this.lexer.inlineTokens(A)}}let d=m.slice(2,-2);return{type:"strong",raw:m,text:d,tokens:this.lexer.inlineTokens(d)}}}}codespan(n){let e=this.rules.inline.code.exec(n);if(e){let r=e[2].replace(this.rules.other.newLineCharGlobal," "),s=this.rules.other.nonSpaceChar.test(r),t=this.rules.other.startingSpaceChar.test(r)&&this.rules.other.endingSpaceChar.test(r);return s&&t&&(r=r.substring(1,r.length-1)),{type:"codespan",raw:e[0],text:r}}}br(n){let e=this.rules.inline.br.exec(n);if(e)return{type:"br",raw:e[0]}}del(n,e,r=""){let s=this.rules.inline.delLDelim.exec(n);if(s&&(!s[1]||!r||this.rules.inline.punctuation.exec(r))){let t=[...s[0]].length-1,a,l,c=t,o=this.rules.inline.delRDelim;for(o.lastIndex=0,e=e.slice(-1*n.length+t);(s=o.exec(e))!=null;){if(a=s[1]||s[2]||s[3]||s[4]||s[5]||s[6],!a||(l=[...a].length,l!==t))continue;if(s[3]||s[4]){c+=l;continue}if(c-=l,c>0)continue;l=Math.min(l,l+c);let h=[...s[0]][0].length,p=n.slice(0,t+s.index+h+l),m=p.slice(t,-t);return{type:"del",raw:p,text:m,tokens:this.lexer.inlineTokens(m)}}}}autolink(n){let e=this.rules.inline.autolink.exec(n);if(e){let r,s;return e[2]==="@"?(r=e[1],s="mailto:"+r):(r=e[1],s=r),{type:"link",raw:e[0],text:r,href:s,tokens:[{type:"text",raw:r,text:r}]}}}url(n){let e;if(e=this.rules.inline.url.exec(n)){let r,s;if(e[2]==="@")r=e[0],s="mailto:"+r;else{let t;do t=e[0],e[0]=this.rules.inline._backpedal.exec(e[0])?.[0]??"";while(t!==e[0]);r=e[0],e[1]==="www."?s="http://"+e[0]:s=e[0]}return{type:"link",raw:e[0],text:r,href:s,tokens:[{type:"text",raw:r,text:r}]}}}inlineText(n){let e=this.rules.inline.text.exec(n);if(e){let r=this.lexer.state.inRawBlock;return{type:"text",raw:e[0],text:e[0],escaped:r}}}},F=class dt{tokens;options;state;inlineQueue;tokenizer;constructor(e){this.tokens=[],this.tokens.links=Object.create(null),this.options=e||ne,this.options.tokenizer=this.options.tokenizer||new Be,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};let r={other:N,block:ze.normal,inline:xe.normal};this.options.pedantic?(r.block=ze.pedantic,r.inline=xe.pedantic):this.options.gfm&&(r.block=ze.gfm,this.options.breaks?r.inline=xe.breaks:r.inline=xe.gfm),this.tokenizer.rules=r}static get rules(){return{block:ze,inline:xe}}static lex(e,r){return new dt(r).lex(e)}static lexInline(e,r){return new dt(r).inlineTokens(e)}lex(e){e=e.replace(N.carriageReturn,`
|
|
29
29
|
`),this.blockTokens(e,this.tokens);for(let r=0;r<this.inlineQueue.length;r++){let s=this.inlineQueue[r];this.inlineTokens(s.src,s.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(e,r=[],s=!1){for(this.tokenizer.lexer=this,this.options.pedantic&&(e=e.replace(N.tabCharGlobal," ").replace(N.spaceLine,""));e;){let t;if(this.options.extensions?.block?.some(l=>(t=l.call({lexer:this},e,r))?(e=e.substring(t.raw.length),r.push(t),!0):!1))continue;if(t=this.tokenizer.space(e)){e=e.substring(t.raw.length);let l=r.at(-1);t.raw.length===1&&l!==void 0?l.raw+=`
|
|
30
30
|
`:r.push(t);continue}if(t=this.tokenizer.code(e)){e=e.substring(t.raw.length);let l=r.at(-1);l?.type==="paragraph"||l?.type==="text"?(l.raw+=(l.raw.endsWith(`
|
|
31
31
|
`)?"":`
|
|
@@ -39,7 +39,7 @@ ${p}`:p;let m=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTo
|
|
|
39
39
|
`+t.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=l.text):r.push(t),s=a.length!==e.length,e=e.substring(t.raw.length);continue}if(t=this.tokenizer.text(e)){e=e.substring(t.raw.length);let l=r.at(-1);l?.type==="text"?(l.raw+=(l.raw.endsWith(`
|
|
40
40
|
`)?"":`
|
|
41
41
|
`)+t.raw,l.text+=`
|
|
42
|
-
`+t.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=l.text):r.push(t);continue}if(e){let l="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(l);break}else throw new Error(l)}}return this.state.top=!0,r}inline(e,r=[]){return this.inlineQueue.push({src:e,tokens:r}),r}inlineTokens(e,r=[]){this.tokenizer.lexer=this;let s=e,t=null;if(this.tokens.links){let o=Object.keys(this.tokens.links);if(o.length>0)for(;(t=this.tokenizer.rules.inline.reflinkSearch.exec(s))!=null;)o.includes(t[0].slice(t[0].lastIndexOf("[")+1,-1))&&(s=s.slice(0,t.index)+"["+"a".repeat(t[0].length-2)+"]"+s.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(t=this.tokenizer.rules.inline.anyPunctuation.exec(s))!=null;)s=s.slice(0,t.index)+"++"+s.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);let a;for(;(t=this.tokenizer.rules.inline.blockSkip.exec(s))!=null;)a=t[2]?t[2].length:0,s=s.slice(0,t.index+a)+"["+"a".repeat(t[0].length-a-2)+"]"+s.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);s=this.options.hooks?.emStrongMask?.call({lexer:this},s)??s;let l=!1,c="";for(;e;){l||(c=""),l=!1;let o;if(this.options.extensions?.inline?.some(p=>(o=p.call({lexer:this},e,r))?(e=e.substring(o.raw.length),r.push(o),!0):!1))continue;if(o=this.tokenizer.escape(e)){e=e.substring(o.raw.length),r.push(o);continue}if(o=this.tokenizer.tag(e)){e=e.substring(o.raw.length),r.push(o);continue}if(o=this.tokenizer.link(e)){e=e.substring(o.raw.length),r.push(o);continue}if(o=this.tokenizer.reflink(e,this.tokens.links)){e=e.substring(o.raw.length);let p=r.at(-1);o.type==="text"&&p?.type==="text"?(p.raw+=o.raw,p.text+=o.text):r.push(o);continue}if(o=this.tokenizer.emStrong(e,s,c)){e=e.substring(o.raw.length),r.push(o);continue}if(o=this.tokenizer.codespan(e)){e=e.substring(o.raw.length),r.push(o);continue}if(o=this.tokenizer.br(e)){e=e.substring(o.raw.length),r.push(o);continue}if(o=this.tokenizer.del(e,s,c)){e=e.substring(o.raw.length),r.push(o);continue}if(o=this.tokenizer.autolink(e)){e=e.substring(o.raw.length),r.push(o);continue}if(!this.state.inLink&&(o=this.tokenizer.url(e))){e=e.substring(o.raw.length),r.push(o);continue}let h=e;if(this.options.extensions?.startInline){let p=1/0,m=e.slice(1),d;this.options.extensions.startInline.forEach(A=>{d=A.call({lexer:this},m),typeof d=="number"&&d>=0&&(p=Math.min(p,d))}),p<1/0&&p>=0&&(h=e.substring(0,p+1))}if(o=this.tokenizer.inlineText(h)){e=e.substring(o.raw.length),o.raw.slice(-1)!=="_"&&(c=o.raw.slice(-1)),l=!0;let p=r.at(-1);p?.type==="text"?(p.raw+=o.raw,p.text+=o.text):r.push(o);continue}if(e){let p="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(p);break}else throw new Error(p)}}return r}},
|
|
42
|
+
`+t.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=l.text):r.push(t);continue}if(e){let l="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(l);break}else throw new Error(l)}}return this.state.top=!0,r}inline(e,r=[]){return this.inlineQueue.push({src:e,tokens:r}),r}inlineTokens(e,r=[]){this.tokenizer.lexer=this;let s=e,t=null;if(this.tokens.links){let o=Object.keys(this.tokens.links);if(o.length>0)for(;(t=this.tokenizer.rules.inline.reflinkSearch.exec(s))!=null;)o.includes(t[0].slice(t[0].lastIndexOf("[")+1,-1))&&(s=s.slice(0,t.index)+"["+"a".repeat(t[0].length-2)+"]"+s.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(t=this.tokenizer.rules.inline.anyPunctuation.exec(s))!=null;)s=s.slice(0,t.index)+"++"+s.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);let a;for(;(t=this.tokenizer.rules.inline.blockSkip.exec(s))!=null;)a=t[2]?t[2].length:0,s=s.slice(0,t.index+a)+"["+"a".repeat(t[0].length-a-2)+"]"+s.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);s=this.options.hooks?.emStrongMask?.call({lexer:this},s)??s;let l=!1,c="";for(;e;){l||(c=""),l=!1;let o;if(this.options.extensions?.inline?.some(p=>(o=p.call({lexer:this},e,r))?(e=e.substring(o.raw.length),r.push(o),!0):!1))continue;if(o=this.tokenizer.escape(e)){e=e.substring(o.raw.length),r.push(o);continue}if(o=this.tokenizer.tag(e)){e=e.substring(o.raw.length),r.push(o);continue}if(o=this.tokenizer.link(e)){e=e.substring(o.raw.length),r.push(o);continue}if(o=this.tokenizer.reflink(e,this.tokens.links)){e=e.substring(o.raw.length);let p=r.at(-1);o.type==="text"&&p?.type==="text"?(p.raw+=o.raw,p.text+=o.text):r.push(o);continue}if(o=this.tokenizer.emStrong(e,s,c)){e=e.substring(o.raw.length),r.push(o);continue}if(o=this.tokenizer.codespan(e)){e=e.substring(o.raw.length),r.push(o);continue}if(o=this.tokenizer.br(e)){e=e.substring(o.raw.length),r.push(o);continue}if(o=this.tokenizer.del(e,s,c)){e=e.substring(o.raw.length),r.push(o);continue}if(o=this.tokenizer.autolink(e)){e=e.substring(o.raw.length),r.push(o);continue}if(!this.state.inLink&&(o=this.tokenizer.url(e))){e=e.substring(o.raw.length),r.push(o);continue}let h=e;if(this.options.extensions?.startInline){let p=1/0,m=e.slice(1),d;this.options.extensions.startInline.forEach(A=>{d=A.call({lexer:this},m),typeof d=="number"&&d>=0&&(p=Math.min(p,d))}),p<1/0&&p>=0&&(h=e.substring(0,p+1))}if(o=this.tokenizer.inlineText(h)){e=e.substring(o.raw.length),o.raw.slice(-1)!=="_"&&(c=o.raw.slice(-1)),l=!0;let p=r.at(-1);p?.type==="text"?(p.raw+=o.raw,p.text+=o.text):r.push(o);continue}if(e){let p="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(p);break}else throw new Error(p)}}return r}},He=class{options;parser;constructor(n){this.options=n||ne}space(n){return""}code({text:n,lang:e,escaped:r}){let s=(e||"").match(N.notSpaceStart)?.[0],t=n.replace(N.endingNewline,"")+`
|
|
43
43
|
`;return s?'<pre><code class="language-'+q(s)+'">'+(r?t:q(t,!0))+`</code></pre>
|
|
44
44
|
`:"<pre><code>"+(r?t:q(t,!0))+`</code></pre>
|
|
45
45
|
`}blockquote({tokens:n}){return`<blockquote>
|
|
@@ -57,5 +57,5 @@ ${this.parser.parse(n)}</blockquote>
|
|
|
57
57
|
`}tablerow({text:n}){return`<tr>
|
|
58
58
|
${n}</tr>
|
|
59
59
|
`}tablecell(n){let e=this.parser.parseInline(n.tokens),r=n.header?"th":"td";return(n.align?`<${r} align="${n.align}">`:`<${r}>`)+e+`</${r}>
|
|
60
|
-
`}strong({tokens:n}){return`<strong>${this.parser.parseInline(n)}</strong>`}em({tokens:n}){return`<em>${this.parser.parseInline(n)}</em>`}codespan({text:n}){return`<code>${q(n,!0)}</code>`}br(n){return"<br>"}del({tokens:n}){return`<del>${this.parser.parseInline(n)}</del>`}link({href:n,title:e,tokens:r}){let s=this.parser.parseInline(r),t=
|
|
61
|
-
Please report this to https://github.com/markedjs/marked.`,n){let s="<p>An error occurred:</p><pre>"+q(r.message+"",!0)+"</pre>";return e?Promise.resolve(s):s}if(e)return Promise.reject(r);throw r}}},te=new
|
|
60
|
+
`}strong({tokens:n}){return`<strong>${this.parser.parseInline(n)}</strong>`}em({tokens:n}){return`<em>${this.parser.parseInline(n)}</em>`}codespan({text:n}){return`<code>${q(n,!0)}</code>`}br(n){return"<br>"}del({tokens:n}){return`<del>${this.parser.parseInline(n)}</del>`}link({href:n,title:e,tokens:r}){let s=this.parser.parseInline(r),t=pn(n);if(t===null)return s;n=t;let a='<a href="'+n+'"';return e&&(a+=' title="'+q(e)+'"'),a+=">"+s+"</a>",a}image({href:n,title:e,text:r,tokens:s}){s&&(r=this.parser.parseInline(s,this.parser.textRenderer));let t=pn(n);if(t===null)return q(r);n=t;let a=`<img src="${n}" alt="${q(r)}"`;return e&&(a+=` title="${q(e)}"`),a+=">",a}text(n){return"tokens"in n&&n.tokens?this.parser.parseInline(n.tokens):"escaped"in n&&n.escaped?n.text:q(n.text)}},_t=class{strong({text:n}){return n}em({text:n}){return n}codespan({text:n}){return n}del({text:n}){return n}html({text:n}){return n}text({text:n}){return n}link({text:n}){return""+n}image({text:n}){return""+n}br(){return""}checkbox({raw:n}){return n}},B=class mt{options;renderer;textRenderer;constructor(e){this.options=e||ne,this.options.renderer=this.options.renderer||new He,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new _t}static parse(e,r){return new mt(r).parse(e)}static parseInline(e,r){return new mt(r).parseInline(e)}parse(e){this.renderer.parser=this;let r="";for(let s=0;s<e.length;s++){let t=e[s];if(this.options.extensions?.renderers?.[t.type]){let l=t,c=this.options.extensions.renderers[l.type].call({parser:this},l);if(c!==!1||!["space","hr","heading","code","table","blockquote","list","html","def","paragraph","text"].includes(l.type)){r+=c||"";continue}}let a=t;switch(a.type){case"space":{r+=this.renderer.space(a);break}case"hr":{r+=this.renderer.hr(a);break}case"heading":{r+=this.renderer.heading(a);break}case"code":{r+=this.renderer.code(a);break}case"table":{r+=this.renderer.table(a);break}case"blockquote":{r+=this.renderer.blockquote(a);break}case"list":{r+=this.renderer.list(a);break}case"checkbox":{r+=this.renderer.checkbox(a);break}case"html":{r+=this.renderer.html(a);break}case"def":{r+=this.renderer.def(a);break}case"paragraph":{r+=this.renderer.paragraph(a);break}case"text":{r+=this.renderer.text(a);break}default:{let l='Token with "'+a.type+'" type was not found.';if(this.options.silent)return console.error(l),"";throw new Error(l)}}}return r}parseInline(e,r=this.renderer){this.renderer.parser=this;let s="";for(let t=0;t<e.length;t++){let a=e[t];if(this.options.extensions?.renderers?.[a.type]){let c=this.options.extensions.renderers[a.type].call({parser:this},a);if(c!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(a.type)){s+=c||"";continue}}let l=a;switch(l.type){case"escape":{s+=r.text(l);break}case"html":{s+=r.html(l);break}case"link":{s+=r.link(l);break}case"image":{s+=r.image(l);break}case"checkbox":{s+=r.checkbox(l);break}case"strong":{s+=r.strong(l);break}case"em":{s+=r.em(l);break}case"codespan":{s+=r.codespan(l);break}case"br":{s+=r.br(l);break}case"del":{s+=r.del(l);break}case"text":{s+=r.text(l);break}default:{let c='Token with "'+l.type+'" type was not found.';if(this.options.silent)return console.error(c),"";throw new Error(c)}}}return s}},Ae=class{options;block;constructor(n){this.options=n||ne}static passThroughHooks=new Set(["preprocess","postprocess","processAllTokens","emStrongMask"]);static passThroughHooksRespectAsync=new Set(["preprocess","postprocess","processAllTokens"]);preprocess(n){return n}postprocess(n){return n}processAllTokens(n){return n}emStrongMask(n){return n}provideLexer(){return this.block?F.lex:F.lexInline}provideParser(){return this.block?B.parse:B.parseInline}},ss=class{defaults=kt();options=this.setOptions;parse=this.parseMarkdown(!0);parseInline=this.parseMarkdown(!1);Parser=B;Renderer=He;TextRenderer=_t;Lexer=F;Tokenizer=Be;Hooks=Ae;constructor(...n){this.use(...n)}walkTokens(n,e){let r=[];for(let s of n)switch(r=r.concat(e.call(this,s)),s.type){case"table":{let t=s;for(let a of t.header)r=r.concat(this.walkTokens(a.tokens,e));for(let a of t.rows)for(let l of a)r=r.concat(this.walkTokens(l.tokens,e));break}case"list":{let t=s;r=r.concat(this.walkTokens(t.items,e));break}default:{let t=s;this.defaults.extensions?.childTokens?.[t.type]?this.defaults.extensions.childTokens[t.type].forEach(a=>{let l=t[a].flat(1/0);r=r.concat(this.walkTokens(l,e))}):t.tokens&&(r=r.concat(this.walkTokens(t.tokens,e)))}}return r}use(...n){let e=this.defaults.extensions||{renderers:{},childTokens:{}};return n.forEach(r=>{let s={...r};if(s.async=this.defaults.async||s.async||!1,r.extensions&&(r.extensions.forEach(t=>{if(!t.name)throw new Error("extension name required");if("renderer"in t){let a=e.renderers[t.name];a?e.renderers[t.name]=function(...l){let c=t.renderer.apply(this,l);return c===!1&&(c=a.apply(this,l)),c}:e.renderers[t.name]=t.renderer}if("tokenizer"in t){if(!t.level||t.level!=="block"&&t.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");let a=e[t.level];a?a.unshift(t.tokenizer):e[t.level]=[t.tokenizer],t.start&&(t.level==="block"?e.startBlock?e.startBlock.push(t.start):e.startBlock=[t.start]:t.level==="inline"&&(e.startInline?e.startInline.push(t.start):e.startInline=[t.start]))}"childTokens"in t&&t.childTokens&&(e.childTokens[t.name]=t.childTokens)}),s.extensions=e),r.renderer){let t=this.defaults.renderer||new He(this.defaults);for(let a in r.renderer){if(!(a in t))throw new Error(`renderer '${a}' does not exist`);if(["options","parser"].includes(a))continue;let l=a,c=r.renderer[l],o=t[l];t[l]=(...h)=>{let p=c.apply(t,h);return p===!1&&(p=o.apply(t,h)),p||""}}s.renderer=t}if(r.tokenizer){let t=this.defaults.tokenizer||new Be(this.defaults);for(let a in r.tokenizer){if(!(a in t))throw new Error(`tokenizer '${a}' does not exist`);if(["options","rules","lexer"].includes(a))continue;let l=a,c=r.tokenizer[l],o=t[l];t[l]=(...h)=>{let p=c.apply(t,h);return p===!1&&(p=o.apply(t,h)),p}}s.tokenizer=t}if(r.hooks){let t=this.defaults.hooks||new Ae;for(let a in r.hooks){if(!(a in t))throw new Error(`hook '${a}' does not exist`);if(["options","block"].includes(a))continue;let l=a,c=r.hooks[l],o=t[l];Ae.passThroughHooks.has(a)?t[l]=h=>{if(this.defaults.async&&Ae.passThroughHooksRespectAsync.has(a))return(async()=>{let m=await c.call(t,h);return o.call(t,m)})();let p=c.call(t,h);return o.call(t,p)}:t[l]=(...h)=>{if(this.defaults.async)return(async()=>{let m=await c.apply(t,h);return m===!1&&(m=await o.apply(t,h)),m})();let p=c.apply(t,h);return p===!1&&(p=o.apply(t,h)),p}}s.hooks=t}if(r.walkTokens){let t=this.defaults.walkTokens,a=r.walkTokens;s.walkTokens=function(l){let c=[];return c.push(a.call(this,l)),t&&(c=c.concat(t.call(this,l))),c}}this.defaults={...this.defaults,...s}}),this}setOptions(n){return this.defaults={...this.defaults,...n},this}lexer(n,e){return F.lex(n,e??this.defaults)}parser(n,e){return B.parse(n,e??this.defaults)}parseMarkdown(n){return(e,r)=>{let s={...r},t={...this.defaults,...s},a=this.onError(!!t.silent,!!t.async);if(this.defaults.async===!0&&s.async===!1)return a(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof e>"u"||e===null)return a(new Error("marked(): input parameter is undefined or null"));if(typeof e!="string")return a(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(e)+", string expected"));if(t.hooks&&(t.hooks.options=t,t.hooks.block=n),t.async)return(async()=>{let l=t.hooks?await t.hooks.preprocess(e):e,c=await(t.hooks?await t.hooks.provideLexer():n?F.lex:F.lexInline)(l,t),o=t.hooks?await t.hooks.processAllTokens(c):c;t.walkTokens&&await Promise.all(this.walkTokens(o,t.walkTokens));let h=await(t.hooks?await t.hooks.provideParser():n?B.parse:B.parseInline)(o,t);return t.hooks?await t.hooks.postprocess(h):h})().catch(a);try{t.hooks&&(e=t.hooks.preprocess(e));let l=(t.hooks?t.hooks.provideLexer():n?F.lex:F.lexInline)(e,t);t.hooks&&(l=t.hooks.processAllTokens(l)),t.walkTokens&&this.walkTokens(l,t.walkTokens);let c=(t.hooks?t.hooks.provideParser():n?B.parse:B.parseInline)(l,t);return t.hooks&&(c=t.hooks.postprocess(c)),c}catch(l){return a(l)}}}onError(n,e){return r=>{if(r.message+=`
|
|
61
|
+
Please report this to https://github.com/markedjs/marked.`,n){let s="<p>An error occurred:</p><pre>"+q(r.message+"",!0)+"</pre>";return e?Promise.resolve(s):s}if(e)return Promise.reject(r);throw r}}},te=new ss;function T(n,e){return te.parse(n,e)}T.options=T.setOptions=function(n){return te.setOptions(n),T.defaults=te.defaults,xn(T.defaults),T};T.getDefaults=kt;T.defaults=ne;T.use=function(...n){return te.use(...n),T.defaults=te.defaults,xn(T.defaults),T};T.walkTokens=function(n,e){return te.walkTokens(n,e)};T.parseInline=te.parseInline;T.Parser=B;T.parser=B.parse;T.Renderer=He;T.TextRenderer=_t;T.Lexer=F;T.lexer=F.lex;T.Tokenizer=Be;T.Hooks=Ae;T.parse=T;T.options;T.setOptions;T.use;T.walkTokens;T.parseInline;B.parse;F.lex;T.setOptions({breaks:!0,gfm:!0});const we=new Map,is=500;function hs(n){if(!n)return"";const e=we.get(n);if(e!==void 0)return e;const r=T.parse(n),s=kr.sanitize(r);if(we.size>=is){const t=we.keys().next().value;t!==void 0&&we.delete(t)}return we.set(n,s),s}export{ps as a,cs as c,hs as r,os as s,us as t};
|
|
Binary file
|
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{s as v,a as d,c as x,f as g}from"./
|
|
1
|
+
import{s as v,a as d,c as x,f as g}from"./r0JawsZc.js";import{c as a,r as e,s as c,t as b,f as E}from"./CZHsSL_X.js";import{s as I}from"./CQjSATpv.js";import{i as k}from"./B8XegpSE.js";import{I as z}from"./DjsDGxCa.js";var S=g('<div class="empty-state"><div class="empty-state-icon"><!></div> <h3 class="empty-state-title"> </h3> <p class="empty-state-description"> </p> <!></div>');function C(f,t){var r=S(),i=a(r),l=a(i);z(l,{get name(){return t.icon},size:24}),e(i);var s=c(i,2),p=a(s,!0);e(s);var m=c(s,2),_=a(m,!0);e(m);var h=c(m,2);{var y=o=>{var n=x(),u=E(n);I(u,()=>t.children),d(o,n)};k(h,o=>{t.children&&o(y)})}e(r),b(()=>{v(p,t.title),v(_,t.description)}),d(f,r)}export{C as E};
|
|
Binary file
|
|
Binary file
|