@epic-web/workshop-app 6.0.0 → 6.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/assets/_-Kbj-HAPY.js +2 -0
- package/build/client/assets/{_-C_7mS1-0.js.map → _-Kbj-HAPY.js.map} +1 -1
- package/build/client/assets/{_basePickBy-DkOIaPL8.js → _basePickBy-WG4U0WMd.js} +2 -2
- package/build/client/assets/{_basePickBy-DkOIaPL8.js.map → _basePickBy-WG4U0WMd.js.map} +1 -1
- package/build/client/assets/{_baseUniq-BAqp_AZM.js → _baseUniq--zdZg7WG.js} +2 -2
- package/build/client/assets/{_baseUniq-BAqp_AZM.js.map → _baseUniq--zdZg7WG.js.map} +1 -1
- package/build/client/assets/_exerciseNumber-MXWVsKzI.js +2 -0
- package/build/client/assets/{_exerciseNumber-CdGNKLia.js.map → _exerciseNumber-MXWVsKzI.js.map} +1 -1
- package/build/client/assets/_exerciseNumber_._stepNumber-BfeokKD3.js +2 -0
- package/build/client/assets/{_exerciseNumber_._stepNumber-BNj079sn.js.map → _exerciseNumber_._stepNumber-BfeokKD3.js.map} +1 -1
- package/build/client/assets/_exerciseNumber_.finished-Dr6lECMK.js +2 -0
- package/build/client/assets/{_exerciseNumber_.finished-Ce6wQJ7W.js.map → _exerciseNumber_.finished-Dr6lECMK.js.map} +1 -1
- package/build/client/assets/_layout-Bv8l5wO7.js +2 -0
- package/build/client/assets/{_layout-C-qRb0Ym.js.map → _layout-Bv8l5wO7.js.map} +1 -1
- package/build/client/assets/{_layout-Tp2XmIFb.js → _layout-ePpFHa-S.js} +3 -3
- package/build/client/assets/{_layout-Tp2XmIFb.js.map → _layout-ePpFHa-S.js.map} +1 -1
- package/build/client/assets/accordion-DBvaz78c.js +2 -0
- package/build/client/assets/{accordion-PSsenYUI.js.map → accordion-DBvaz78c.js.map} +1 -1
- package/build/client/assets/account-BgHt6sNV.js +2 -0
- package/build/client/assets/{account-Jl0f1Zst.js.map → account-BgHt6sNV.js.map} +1 -1
- package/build/client/assets/app-By03B5QO.js +2 -0
- package/build/client/assets/{app-KDd3xjI9.js.map → app-By03B5QO.js.map} +1 -1
- package/build/client/assets/{arc-DWALijMH.js → arc-D-54mj1a.js} +2 -2
- package/build/client/assets/{arc-DWALijMH.js.map → arc-D-54mj1a.js.map} +1 -1
- package/build/client/assets/architectureDiagram-NQ2NVSRB-CamU9d2s.js +37 -0
- package/build/client/assets/{architectureDiagram-NQ2NVSRB-tX-q9elq.js.map → architectureDiagram-NQ2NVSRB-CamU9d2s.js.map} +1 -1
- package/build/client/assets/{blockDiagram-PHRCVELO-CDy5WrXO.js → blockDiagram-PHRCVELO-8PiJU5dn.js} +3 -3
- package/build/client/assets/{blockDiagram-PHRCVELO-CDy5WrXO.js.map → blockDiagram-PHRCVELO-8PiJU5dn.js.map} +1 -1
- package/build/client/assets/{button-cFpvwtjC.js → button-BoJWEKHp.js} +2 -2
- package/build/client/assets/{button-cFpvwtjC.js.map → button-BoJWEKHp.js.map} +1 -1
- package/build/client/assets/{c4Diagram-6F6E4RAY-CFbAkThh.js → c4Diagram-6F6E4RAY-a_Vz9FQp.js} +3 -3
- package/build/client/assets/{c4Diagram-6F6E4RAY-CFbAkThh.js.map → c4Diagram-6F6E4RAY-a_Vz9FQp.js.map} +1 -1
- package/build/client/assets/channel-olxjZBcv.js +2 -0
- package/build/client/assets/{channel-DHkyUdNE.js.map → channel-olxjZBcv.js.map} +1 -1
- package/build/client/assets/{chunk-353BL4L5-Dpooe8HA.js → chunk-353BL4L5-QtLxglxb.js} +2 -2
- package/build/client/assets/{chunk-353BL4L5-Dpooe8HA.js.map → chunk-353BL4L5-QtLxglxb.js.map} +1 -1
- package/build/client/assets/{chunk-67H74DCK-LD3kHetT.js → chunk-67H74DCK-N9VlvDsS.js} +2 -2
- package/build/client/assets/{chunk-67H74DCK-LD3kHetT.js.map → chunk-67H74DCK-N9VlvDsS.js.map} +1 -1
- package/build/client/assets/{chunk-6OLS64BW-DqN3K0zX.js → chunk-6OLS64BW-Bw6L54gk.js} +2 -2
- package/build/client/assets/{chunk-6OLS64BW-DqN3K0zX.js.map → chunk-6OLS64BW-Bw6L54gk.js.map} +1 -1
- package/build/client/assets/{chunk-AACKK3MU-956RrsQJ.js → chunk-AACKK3MU-CGRxti6k.js} +2 -2
- package/build/client/assets/{chunk-AACKK3MU-956RrsQJ.js.map → chunk-AACKK3MU-CGRxti6k.js.map} +1 -1
- package/build/client/assets/{chunk-BFAMUDN2-By_sWoWf.js → chunk-BFAMUDN2-D0k5yzNa.js} +2 -2
- package/build/client/assets/{chunk-BFAMUDN2-By_sWoWf.js.map → chunk-BFAMUDN2-D0k5yzNa.js.map} +1 -1
- package/build/client/assets/{chunk-E2GYISFI-CYbTdeHG.js → chunk-E2GYISFI-L538ejWD.js} +2 -2
- package/build/client/assets/{chunk-E2GYISFI-CYbTdeHG.js.map → chunk-E2GYISFI-L538ejWD.js.map} +1 -1
- package/build/client/assets/{chunk-QEP2MXWD-EMIn8SEG.js → chunk-QEP2MXWD-DdDxYCFZ.js} +2 -2
- package/build/client/assets/{chunk-QEP2MXWD-EMIn8SEG.js.map → chunk-QEP2MXWD-DdDxYCFZ.js.map} +1 -1
- package/build/client/assets/{chunk-SKB7J2MH-CPK45517.js → chunk-SKB7J2MH-BntWlIrL.js} +2 -2
- package/build/client/assets/{chunk-SKB7J2MH-CPK45517.js.map → chunk-SKB7J2MH-BntWlIrL.js.map} +1 -1
- package/build/client/assets/classDiagram-BGRH5UQR-C5Mv_s-i.js +2 -0
- package/build/client/assets/{classDiagram-BGRH5UQR-DMFCY4SY.js.map → classDiagram-BGRH5UQR-C5Mv_s-i.js.map} +1 -1
- package/build/client/assets/classDiagram-v2-O24JOBDK-C5Mv_s-i.js +2 -0
- package/build/client/assets/{classDiagram-v2-O24JOBDK-DMFCY4SY.js.map → classDiagram-v2-O24JOBDK-C5Mv_s-i.js.map} +1 -1
- package/build/client/assets/clone-B94ujfDo.js +2 -0
- package/build/client/assets/{clone-DgOnCE7a.js.map → clone-B94ujfDo.js.map} +1 -1
- package/build/client/assets/clsx-B-dksMZM.js +2 -0
- package/build/client/assets/clsx-B-dksMZM.js.map +1 -0
- package/build/client/assets/dagre-FFZHY6LT-UmchHP04.js +5 -0
- package/build/client/assets/{dagre-FFZHY6LT-D8_T6tZq.js.map → dagre-FFZHY6LT-UmchHP04.js.map} +1 -1
- package/build/client/assets/diagram-3EMPZRKU-CjmDnDXX.js +25 -0
- package/build/client/assets/{diagram-3EMPZRKU-BEeRqItD.js.map → diagram-3EMPZRKU-CjmDnDXX.js.map} +1 -1
- package/build/client/assets/diagram-5UYTHUR4-C85dABA1.js +25 -0
- package/build/client/assets/{diagram-5UYTHUR4-CikqdCuq.js.map → diagram-5UYTHUR4-C85dABA1.js.map} +1 -1
- package/build/client/assets/diagram-ZTM2IBQH-CH_XZ7tw.js +44 -0
- package/build/client/assets/{diagram-ZTM2IBQH-CDz-uqOk.js.map → diagram-ZTM2IBQH-CH_XZ7tw.js.map} +1 -1
- package/build/client/assets/diff-C1wUPjJK.js +2 -0
- package/build/client/assets/{diff-DLaUr4S6.js.map → diff-C1wUPjJK.js.map} +1 -1
- package/build/client/assets/diff-CxZ19SOv.js +2 -0
- package/build/client/assets/{diff-BXApfmyx.js.map → diff-CxZ19SOv.js.map} +1 -1
- package/build/client/assets/{discord-DOEtvB6W.js → discord-B5cRUOhZ.js} +2 -2
- package/build/client/assets/{discord-DOEtvB6W.js.map → discord-B5cRUOhZ.js.map} +1 -1
- package/build/client/assets/discord-BvZSO_OZ.js +2 -0
- package/build/client/assets/discord-BvZSO_OZ.js.map +1 -0
- package/build/client/assets/{epic-video-Buv6ZzQr.js → epic-video-CRkBFsAC.js} +2 -2
- package/build/client/assets/{epic-video-Buv6ZzQr.js.map → epic-video-CRkBFsAC.js.map} +1 -1
- package/build/client/assets/{erDiagram-R3QVA2FD-WzL917SV.js → erDiagram-R3QVA2FD-DbFybc7W.js} +3 -3
- package/build/client/assets/{erDiagram-R3QVA2FD-WzL917SV.js.map → erDiagram-R3QVA2FD-DbFybc7W.js.map} +1 -1
- package/build/client/assets/{error-boundary-B8bEOgxp.js → error-boundary-bzCOyChj.js} +2 -2
- package/build/client/assets/{error-boundary-B8bEOgxp.js.map → error-boundary-bzCOyChj.js.map} +1 -1
- package/build/client/assets/finished-D-PDIHdi.js +2 -0
- package/build/client/assets/{finished-BGX9JzP_.js.map → finished-D-PDIHdi.js.map} +1 -1
- package/build/client/assets/{flowDiagram-PKI6S5ZS-qimfuZS6.js → flowDiagram-PKI6S5ZS-b-Wr1zEn.js} +3 -3
- package/build/client/assets/{flowDiagram-PKI6S5ZS-qimfuZS6.js.map → flowDiagram-PKI6S5ZS-b-Wr1zEn.js.map} +1 -1
- package/build/client/assets/ganttDiagram-EK5VF46D-D25CAue3.js +268 -0
- package/build/client/assets/{ganttDiagram-EK5VF46D-R6ZSFdSM.js.map → ganttDiagram-EK5VF46D-D25CAue3.js.map} +1 -1
- package/build/client/assets/gitGraphDiagram-GW3U2K7C-B7Ue-jLz.js +66 -0
- package/build/client/assets/{gitGraphDiagram-GW3U2K7C-DV4MLocC.js.map → gitGraphDiagram-GW3U2K7C-B7Ue-jLz.js.map} +1 -1
- package/build/client/assets/{graph-DbEC4aH6.js → graph-9sAzMH8t.js} +2 -2
- package/build/client/assets/{graph-DbEC4aH6.js.map → graph-9sAzMH8t.js.map} +1 -1
- package/build/client/assets/{index-5iWKMrsc.js → index-8yBq10sZ.js} +2 -2
- package/build/client/assets/{index-5iWKMrsc.js.map → index-8yBq10sZ.js.map} +1 -1
- package/build/client/assets/index-CS_uCg-3.js +2 -0
- package/build/client/assets/{index-Bn3YwCqZ.js.map → index-CS_uCg-3.js.map} +1 -1
- package/build/client/assets/index-Cf0XLNVj.js +2 -0
- package/build/client/assets/{index-CUv7g3UR.js.map → index-Cf0XLNVj.js.map} +1 -1
- package/build/client/assets/{index-7Ba6ptu2.js → index-CtnHrWrs.js} +2 -2
- package/build/client/assets/{index-7Ba6ptu2.js.map → index-CtnHrWrs.js.map} +1 -1
- package/build/client/assets/{index-CZ8q0Nf8.js → index-DPhEf4uN.js} +2 -2
- package/build/client/assets/{index-CZ8q0Nf8.js.map → index-DPhEf4uN.js.map} +1 -1
- package/build/client/assets/index-Dqd5qiWh.js +2 -0
- package/build/client/assets/{index-DxbpRM0V.js.map → index-Dqd5qiWh.js.map} +1 -1
- package/build/client/assets/infoDiagram-RLU2ROGC-DDlCYHQW.js +3 -0
- package/build/client/assets/{infoDiagram-RLU2ROGC-BJyo6jex.js.map → infoDiagram-RLU2ROGC-DDlCYHQW.js.map} +1 -1
- package/build/client/assets/{journeyDiagram-EWQZEKCU-aQCeSbRC.js → journeyDiagram-EWQZEKCU-Bm8mUykI.js} +3 -3
- package/build/client/assets/{journeyDiagram-EWQZEKCU-aQCeSbRC.js.map → journeyDiagram-EWQZEKCU-Bm8mUykI.js.map} +1 -1
- package/build/client/assets/{kanban-definition-ILFWEQ3N-CLcq3V0h.js → kanban-definition-ILFWEQ3N-BoSNcgtS.js} +3 -3
- package/build/client/assets/{kanban-definition-ILFWEQ3N-CLcq3V0h.js.map → kanban-definition-ILFWEQ3N-BoSNcgtS.js.map} +1 -1
- package/build/client/assets/{layout-DInHBBCO.js → layout-Ba5kmwon.js} +2 -2
- package/build/client/assets/{layout-DInHBBCO.js.map → layout-Ba5kmwon.js.map} +1 -1
- package/build/client/assets/{linear-BoPQG8e5.js → linear-ZPMI8s6B.js} +2 -2
- package/build/client/assets/{linear-BoPQG8e5.js.map → linear-ZPMI8s6B.js.map} +1 -1
- package/build/client/assets/{loading-WTUNhoIS.js → loading-C810LASV.js} +2 -2
- package/build/client/assets/{loading-WTUNhoIS.js.map → loading-C810LASV.js.map} +1 -1
- package/build/client/assets/login-CQRwgkfM.js +2 -0
- package/build/client/assets/{login-BzcTSzkr.js.map → login-CQRwgkfM.js.map} +1 -1
- package/build/client/assets/manifest-eb55e374.js +1 -0
- package/build/client/assets/mdx-DH55rolp.js +3 -0
- package/build/client/assets/{mdx-BrER1Z2t.js.map → mdx-DH55rolp.js.map} +1 -1
- package/build/client/assets/{mermaid.core-Cvtu6qL8.js → mermaid.core-CG5oJ8_-.js} +5 -5
- package/build/client/assets/{mermaid.core-Cvtu6qL8.js.map → mermaid.core-CG5oJ8_-.js.map} +1 -1
- package/build/client/assets/mindmap-definition-CZNETY7S-Dr_MsV9M.js +96 -0
- package/build/client/assets/{mindmap-definition-CZNETY7S-BwcWuimP.js.map → mindmap-definition-CZNETY7S-Dr_MsV9M.js.map} +1 -1
- package/build/client/assets/misc-DsJGqoYt.js +2 -0
- package/build/client/assets/misc-DsJGqoYt.js.map +1 -0
- package/build/client/assets/{nav-chevrons-Cxzx0j13.js → nav-chevrons-CSVvCjJa.js} +2 -2
- package/build/client/assets/{nav-chevrons-Cxzx0j13.js.map → nav-chevrons-CSVvCjJa.js.map} +1 -1
- package/build/client/assets/onboarding-CyHu3NPX.js +2 -0
- package/build/client/assets/{onboarding-CpNLu5ws.js.map → onboarding-CyHu3NPX.js.map} +1 -1
- package/build/client/assets/{online-CyV51Rml.js → online-Cf3nj5JR.js} +2 -2
- package/build/client/assets/{online-CyV51Rml.js.map → online-Cf3nj5JR.js.map} +1 -1
- package/build/client/assets/pieDiagram-NIOCPIFQ-DGamF-m5.js +31 -0
- package/build/client/assets/{pieDiagram-NIOCPIFQ-BGD0lX78.js.map → pieDiagram-NIOCPIFQ-DGamF-m5.js.map} +1 -1
- package/build/client/assets/preferences-eb0Opp1D.js +2 -0
- package/build/client/assets/preferences-eb0Opp1D.js.map +1 -0
- package/build/client/assets/{presence-CLRBf5dp.js → presence-DXH0dXJd.js} +2 -2
- package/build/client/assets/{presence-CLRBf5dp.js.map → presence-DXH0dXJd.js.map} +1 -1
- package/build/client/assets/preview-B35cxJW7.js +2 -0
- package/build/client/assets/{preview-CMOIed2z.js.map → preview-B35cxJW7.js.map} +1 -1
- package/build/client/assets/{product-B0zJEdi_.js → product-B3wkyL3-.js} +2 -2
- package/build/client/assets/{product-B0zJEdi_.js.map → product-B3wkyL3-.js.map} +1 -1
- package/build/client/assets/{progress-DKsShYpv.js → progress-BP5cLKuW.js} +2 -2
- package/build/client/assets/{progress-DKsShYpv.js.map → progress-BP5cLKuW.js.map} +1 -1
- package/build/client/assets/{progress-bar-Cww9t8Vn.js → progress-bar-BagX2z6n.js} +2 -2
- package/build/client/assets/{progress-bar-Cww9t8Vn.js.map → progress-bar-BagX2z6n.js.map} +1 -1
- package/build/client/assets/{quadrantDiagram-2OG54O6I-75mVARIA.js → quadrantDiagram-2OG54O6I-DzYQA4wE.js} +5 -5
- package/build/client/assets/{quadrantDiagram-2OG54O6I-75mVARIA.js.map → quadrantDiagram-2OG54O6I-DzYQA4wE.js.map} +1 -1
- package/build/client/assets/{requirementDiagram-SO3GGRV7-9xtgDM0W.js → requirementDiagram-SO3GGRV7-CT4nmOnG.js} +3 -3
- package/build/client/assets/{requirementDiagram-SO3GGRV7-9xtgDM0W.js.map → requirementDiagram-SO3GGRV7-CT4nmOnG.js.map} +1 -1
- package/build/client/assets/{revalidation-ws-CkOwoVmm.js → revalidation-ws-De6AS3e6.js} +2 -2
- package/build/client/assets/{revalidation-ws-CkOwoVmm.js.map → revalidation-ws-De6AS3e6.js.map} +1 -1
- package/build/client/assets/root-CoMxWz2o.js +2 -0
- package/build/client/assets/root-CoMxWz2o.js.map +1 -0
- package/build/client/assets/sankeyDiagram-4UZDY2LN-ByZQvDvv.js +11 -0
- package/build/client/assets/{sankeyDiagram-4UZDY2LN-GnxcKs-y.js.map → sankeyDiagram-4UZDY2LN-ByZQvDvv.js.map} +1 -1
- package/build/client/assets/{sequenceDiagram-ZIKVLSP4-nwxzVXHz.js → sequenceDiagram-ZIKVLSP4-D8J9bTtT.js} +3 -3
- package/build/client/assets/{sequenceDiagram-ZIKVLSP4-nwxzVXHz.js.map → sequenceDiagram-ZIKVLSP4-D8J9bTtT.js.map} +1 -1
- package/build/client/assets/set-playground-fnyxfdJX.js +2 -0
- package/build/client/assets/{set-playground-Bx0yIjpY.js.map → set-playground-fnyxfdJX.js.map} +1 -1
- package/build/client/assets/stateDiagram-XX37X6EN-CDbaOeD7.js +2 -0
- package/build/client/assets/{stateDiagram-XX37X6EN-DplHO2WC.js.map → stateDiagram-XX37X6EN-CDbaOeD7.js.map} +1 -1
- package/build/client/assets/stateDiagram-v2-GD6S3NHB-ZW9khKM8.js +2 -0
- package/build/client/assets/{stateDiagram-v2-GD6S3NHB-CmsjuNaA.js.map → stateDiagram-v2-GD6S3NHB-ZW9khKM8.js.map} +1 -1
- package/build/client/assets/tailwind-CyQBDA3D.css +1 -0
- package/build/client/assets/test-Dr7hgef4.js +2 -0
- package/build/client/assets/{test-DUocKqAt.js.map → test-Dr7hgef4.js.map} +1 -1
- package/build/client/assets/{tests-Bmk7igTW.js → tests-EEL6JFzf.js} +2 -2
- package/build/client/assets/{tests-Bmk7igTW.js.map → tests-EEL6JFzf.js.map} +1 -1
- package/build/client/assets/{timeline-definition-RI47OAVP-Dhz4J7XS.js → timeline-definition-RI47OAVP-CpiFZiC9.js} +3 -3
- package/build/client/assets/{timeline-definition-RI47OAVP-Dhz4J7XS.js.map → timeline-definition-RI47OAVP-CpiFZiC9.js.map} +1 -1
- package/build/client/assets/{tooltip-Cm7A1uIP.js → tooltip-CTw4ab49.js} +2 -2
- package/build/client/assets/{tooltip-Cm7A1uIP.js.map → tooltip-CTw4ab49.js.map} +1 -1
- package/build/client/assets/{treemap-FKARHQ26-4Q6H4E9y.js → treemap-FKARHQ26-DW0onZEJ.js} +2 -2
- package/build/client/assets/{treemap-FKARHQ26-4Q6H4E9y.js.map → treemap-FKARHQ26-DW0onZEJ.js.map} +1 -1
- package/build/client/assets/workspace-structure-BU7brX4_.js +2 -0
- package/build/client/assets/workspace-structure-BU7brX4_.js.map +1 -0
- package/build/client/assets/{xychartDiagram-H2YORKM3-mIuoEWBr.js → xychartDiagram-H2YORKM3-pOb4n59k.js} +3 -3
- package/build/client/assets/{xychartDiagram-H2YORKM3-mIuoEWBr.js.map → xychartDiagram-H2YORKM3-pOb4n59k.js.map} +1 -1
- package/build/server/index.js +565 -271
- package/build/server/index.js.map +1 -1
- package/package.json +1 -1
- package/build/client/assets/_-C_7mS1-0.js +0 -2
- package/build/client/assets/_exerciseNumber-CdGNKLia.js +0 -2
- package/build/client/assets/_exerciseNumber_._stepNumber-BNj079sn.js +0 -2
- package/build/client/assets/_exerciseNumber_.finished-Ce6wQJ7W.js +0 -2
- package/build/client/assets/_layout-C-qRb0Ym.js +0 -2
- package/build/client/assets/accordion-PSsenYUI.js +0 -2
- package/build/client/assets/account-Jl0f1Zst.js +0 -2
- package/build/client/assets/app-KDd3xjI9.js +0 -2
- package/build/client/assets/architectureDiagram-NQ2NVSRB-tX-q9elq.js +0 -37
- package/build/client/assets/channel-DHkyUdNE.js +0 -2
- package/build/client/assets/classDiagram-BGRH5UQR-DMFCY4SY.js +0 -2
- package/build/client/assets/classDiagram-v2-O24JOBDK-DMFCY4SY.js +0 -2
- package/build/client/assets/clone-DgOnCE7a.js +0 -2
- package/build/client/assets/dagre-FFZHY6LT-D8_T6tZq.js +0 -5
- package/build/client/assets/diagram-3EMPZRKU-BEeRqItD.js +0 -25
- package/build/client/assets/diagram-5UYTHUR4-CikqdCuq.js +0 -25
- package/build/client/assets/diagram-ZTM2IBQH-CDz-uqOk.js +0 -44
- package/build/client/assets/diff-BXApfmyx.js +0 -2
- package/build/client/assets/diff-DLaUr4S6.js +0 -2
- package/build/client/assets/discord-C86FbV-j.js +0 -2
- package/build/client/assets/discord-C86FbV-j.js.map +0 -1
- package/build/client/assets/finished-BGX9JzP_.js +0 -2
- package/build/client/assets/ganttDiagram-EK5VF46D-R6ZSFdSM.js +0 -268
- package/build/client/assets/gitGraphDiagram-GW3U2K7C-DV4MLocC.js +0 -66
- package/build/client/assets/index-Bn3YwCqZ.js +0 -2
- package/build/client/assets/index-CUv7g3UR.js +0 -2
- package/build/client/assets/index-DxbpRM0V.js +0 -2
- package/build/client/assets/infoDiagram-RLU2ROGC-BJyo6jex.js +0 -3
- package/build/client/assets/login-BzcTSzkr.js +0 -2
- package/build/client/assets/manifest-d7f923a9.js +0 -1
- package/build/client/assets/mdx-BrER1Z2t.js +0 -3
- package/build/client/assets/mindmap-definition-CZNETY7S-BwcWuimP.js +0 -96
- package/build/client/assets/misc-COGqV2fm.js +0 -2
- package/build/client/assets/misc-COGqV2fm.js.map +0 -1
- package/build/client/assets/onboarding-CpNLu5ws.js +0 -2
- package/build/client/assets/pieDiagram-NIOCPIFQ-BGD0lX78.js +0 -31
- package/build/client/assets/preferences-Dx_EUPYj.js +0 -2
- package/build/client/assets/preferences-Dx_EUPYj.js.map +0 -1
- package/build/client/assets/preview-CMOIed2z.js +0 -2
- package/build/client/assets/root-Ddu3Xxbb.js +0 -2
- package/build/client/assets/root-Ddu3Xxbb.js.map +0 -1
- package/build/client/assets/sankeyDiagram-4UZDY2LN-GnxcKs-y.js +0 -11
- package/build/client/assets/set-playground-Bx0yIjpY.js +0 -2
- package/build/client/assets/stateDiagram-XX37X6EN-DplHO2WC.js +0 -2
- package/build/client/assets/stateDiagram-v2-GD6S3NHB-CmsjuNaA.js +0 -2
- package/build/client/assets/tailwind-Dqccob1p.css +0 -1
- package/build/client/assets/test-DUocKqAt.js +0 -2
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import{_ as w,aw as F,ax as Y,ay as _,az as H,l as r,c as V,aA as z,aB as U,ai as $,an as q,aj as P,ah as K,aC as Q,aD as W,aE as Z}from"./mermaid.core-Cvtu6qL8.js";import{G as B}from"./graph-DbEC4aH6.js";import{l as I}from"./layout-DInHBBCO.js";import{i as b}from"./_baseUniq-BAqp_AZM.js";import{c as L}from"./clone-DgOnCE7a.js";import{m as A}from"./_basePickBy-DkOIaPL8.js";import"./mdx-BrER1Z2t.js";import"./jsx-runtime-EKYJJIwR.js";import"./misc-COGqV2fm.js";import"./chunk-QMGIS6GS-CG5cA6CX.js";import"./index-Bp_2FjuO.js";import"./epic-video-Buv6ZzQr.js";import"./index-5iWKMrsc.js";import"./tooltip-Cm7A1uIP.js";import"./pe-DoDyGTeN.js";import"./online-CyV51Rml.js";import"./loading-WTUNhoIS.js";import"./user-BQ8D2Fty.js";import"./workshop-config-5VcXxeyp.js";import"./progress-bar-Cww9t8Vn.js";function p(e){var t={options:{directed:e.isDirected(),multigraph:e.isMultigraph(),compound:e.isCompound()},nodes:ee(e),edges:ne(e)};return b(e.graph())||(t.value=L(e.graph())),t}function ee(e){return A(e.nodes(),function(t){var n=e.node(t),a=e.parent(t),s={v:t};return b(n)||(s.value=n),b(a)||(s.parent=a),s})}function ne(e){return A(e.edges(),function(t){var n=e.edge(t),a={v:t.v,w:t.w};return b(t.name)||(a.name=t.name),b(n)||(a.value=n),a})}var d=new Map,X=new Map,J=new Map,te=w(()=>{X.clear(),J.clear(),d.clear()},"clear"),D=w((e,t)=>{const n=X.get(t)||[];return r.trace("In isDescendant",t," ",e," = ",n.includes(e)),n.includes(e)},"isDescendant"),ie=w((e,t)=>{const n=X.get(t)||[];return r.info("Descendants of ",t," is ",n),r.info("Edge is ",e),e.v===t||e.w===t?!1:n?n.includes(e.v)||D(e.v,t)||D(e.w,t)||n.includes(e.w):(r.debug("Tilt, ",t,",not in descendants"),!1)},"edgeInCluster"),G=w((e,t,n,a)=>{r.warn("Copying children of ",e,"root",a,"data",t.node(e),a);const s=t.children(e)||[];e!==a&&s.push(e),r.warn("Copying (nodes) clusterId",e,"nodes",s),s.forEach(o=>{if(t.children(o).length>0)G(o,t,n,a);else{const l=t.node(o);r.info("cp ",o," to ",a," with parent ",e),n.setNode(o,l),a!==t.parent(o)&&(r.warn("Setting parent",o,t.parent(o)),n.setParent(o,t.parent(o))),e!==a&&o!==e?(r.debug("Setting parent",o,e),n.setParent(o,e)):(r.info("In copy ",e,"root",a,"data",t.node(e),a),r.debug("Not Setting parent for node=",o,"cluster!==rootId",e!==a,"node!==clusterId",o!==e));const u=t.edges(o);r.debug("Copying Edges",u),u.forEach(c=>{r.info("Edge",c);const m=t.edge(c.v,c.w,c.name);r.info("Edge data",m,a);try{ie(c,a)?(r.info("Copying as ",c.v,c.w,m,c.name),n.setEdge(c.v,c.w,m,c.name),r.info("newGraph edges ",n.edges(),n.edge(n.edges()[0]))):r.info("Skipping copy of edge ",c.v,"-->",c.w," rootId: ",a," clusterId:",e)}catch(h){r.error(h)}})}r.debug("Removing node",o),t.removeNode(o)})},"copy"),R=w((e,t)=>{const n=t.children(e);let a=[...n];for(const s of n)J.set(s,e),a=[...a,...R(s,t)];return a},"extractDescendants"),re=w((e,t,n)=>{const a=e.edges().filter(c=>c.v===t||c.w===t),s=e.edges().filter(c=>c.v===n||c.w===n),o=a.map(c=>({v:c.v===t?n:c.v,w:c.w===t?t:c.w})),l=s.map(c=>({v:c.v,w:c.w}));return o.filter(c=>l.some(m=>c.v===m.v&&c.w===m.w))},"findCommonEdges"),C=w((e,t,n)=>{const a=t.children(e);if(r.trace("Searching children of id ",e,a),a.length<1)return e;let s;for(const o of a){const l=C(o,t,n),u=re(t,n,l);if(l)if(u.length>0)s=l;else return l}return s},"findNonClusterChild"),k=w(e=>!d.has(e)||!d.get(e).externalConnections?e:d.has(e)?d.get(e).id:e,"getAnchorId"),se=w((e,t)=>{if(!e||t>10){r.debug("Opting out, no graph ");return}else r.debug("Opting in, graph ");e.nodes().forEach(function(n){e.children(n).length>0&&(r.warn("Cluster identified",n," Replacement id in edges: ",C(n,e,n)),X.set(n,R(n,e)),d.set(n,{id:C(n,e,n),clusterData:e.node(n)}))}),e.nodes().forEach(function(n){const a=e.children(n),s=e.edges();a.length>0?(r.debug("Cluster identified",n,X),s.forEach(o=>{const l=D(o.v,n),u=D(o.w,n);l^u&&(r.warn("Edge: ",o," leaves cluster ",n),r.warn("Descendants of XXX ",n,": ",X.get(n)),d.get(n).externalConnections=!0)})):r.debug("Not a cluster ",n,X)});for(let n of d.keys()){const a=d.get(n).id,s=e.parent(a);s!==n&&d.has(s)&&!d.get(s).externalConnections&&(d.get(n).id=s)}e.edges().forEach(function(n){const a=e.edge(n);r.warn("Edge "+n.v+" -> "+n.w+": "+JSON.stringify(n)),r.warn("Edge "+n.v+" -> "+n.w+": "+JSON.stringify(e.edge(n)));let s=n.v,o=n.w;if(r.warn("Fix XXX",d,"ids:",n.v,n.w,"Translating: ",d.get(n.v)," --- ",d.get(n.w)),d.get(n.v)||d.get(n.w)){if(r.warn("Fixing and trying - removing XXX",n.v,n.w,n.name),s=k(n.v),o=k(n.w),e.removeEdge(n.v,n.w,n.name),s!==n.v){const l=e.parent(s);d.get(l).externalConnections=!0,a.fromCluster=n.v}if(o!==n.w){const l=e.parent(o);d.get(l).externalConnections=!0,a.toCluster=n.w}r.warn("Fix Replacing with XXX",s,o,n.name),e.setEdge(s,o,a,n.name)}}),r.warn("Adjusted Graph",p(e)),T(e,0),r.trace(d)},"adjustClustersAndEdges"),T=w((e,t)=>{if(r.warn("extractor - ",t,p(e),e.children("D")),t>10){r.error("Bailing out");return}let n=e.nodes(),a=!1;for(const s of n){const o=e.children(s);a=a||o.length>0}if(!a){r.debug("Done, no node has children",e.nodes());return}r.debug("Nodes = ",n,t);for(const s of n)if(r.debug("Extracting node",s,d,d.has(s)&&!d.get(s).externalConnections,!e.parent(s),e.node(s),e.children("D")," Depth ",t),!d.has(s))r.debug("Not a cluster",s,t);else if(!d.get(s).externalConnections&&e.children(s)&&e.children(s).length>0){r.warn("Cluster without external connections, without a parent and with children",s,t);let l=e.graph().rankdir==="TB"?"LR":"TB";d.get(s)?.clusterData?.dir&&(l=d.get(s).clusterData.dir,r.warn("Fixing dir",d.get(s).clusterData.dir,l));const u=new B({multigraph:!0,compound:!0}).setGraph({rankdir:l,nodesep:50,ranksep:50,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}});r.warn("Old graph before copy",p(e)),G(s,e,u,s),e.setNode(s,{clusterNode:!0,id:s,clusterData:d.get(s).clusterData,label:d.get(s).label,graph:u}),r.warn("New graph after copy node: (",s,")",p(u)),r.debug("Old graph after copy",p(e))}else r.warn("Cluster ** ",s," **not meeting the criteria !externalConnections:",!d.get(s).externalConnections," no parent: ",!e.parent(s)," children ",e.children(s)&&e.children(s).length>0,e.children("D"),t),r.debug(d);n=e.nodes(),r.warn("New list of nodes",n);for(const s of n){const o=e.node(s);r.warn(" Now next level",s,o),o?.clusterNode&&T(o.graph,t+1)}},"extractor"),M=w((e,t)=>{if(t.length===0)return[];let n=Object.assign([],t);return t.forEach(a=>{const s=e.children(a),o=M(e,s);n=[...n,...o]}),n},"sorter"),oe=w(e=>M(e,e.children()),"sortNodesByHierarchy"),j=w(async(e,t,n,a,s,o)=>{r.warn("Graph in recursive render:XAX",p(t),s);const l=t.graph().rankdir;r.trace("Dir in recursive render - dir:",l);const u=e.insert("g").attr("class","root");t.nodes()?r.info("Recursive render XXX",t.nodes()):r.info("No nodes found for",t),t.edges().length>0&&r.info("Recursive edges",t.edge(t.edges()[0]));const c=u.insert("g").attr("class","clusters"),m=u.insert("g").attr("class","edgePaths"),h=u.insert("g").attr("class","edgeLabels"),v=u.insert("g").attr("class","nodes");await Promise.all(t.nodes().map(async function(f){const i=t.node(f);if(s!==void 0){const g=JSON.parse(JSON.stringify(s.clusterData));r.trace(`Setting data for parent cluster XXX
|
|
2
|
-
Node.id = `,f,`
|
|
3
|
-
data=`,g.height,`
|
|
4
|
-
Parent cluster`,s.height),t.setNode(s.id,g),t.parent(f)||(r.trace("Setting parent",f,s.id),t.setParent(f,s.id,g))}if(r.info("(Insert) Node XXX"+f+": "+JSON.stringify(t.node(f))),i?.clusterNode){r.info("Cluster identified XBX",f,i.width,t.node(f));const{ranksep:g,nodesep:E}=t.graph();i.graph.setGraph({...i.graph.graph(),ranksep:g+25,nodesep:E});const N=await j(v,i.graph,n,a,t.node(f),o),x=N.elem;z(i,x),i.diff=N.diff||0,r.info("New compound node after recursive render XAX",f,"width",i.width,"height",i.height),U(x,i)}else t.children(f).length>0?(r.trace("Cluster - the non recursive path XBX",f,i.id,i,i.width,"Graph:",t),r.trace(C(i.id,t)),d.set(i.id,{id:C(i.id,t),node:i})):(r.trace("Node - the non recursive path XAX",f,v,t.node(f),l),await $(v,t.node(f),{config:o,dir:l}))})),await w(async()=>{const f=t.edges().map(async function(i){const g=t.edge(i.v,i.w,i.name);r.info("Edge "+i.v+" -> "+i.w+": "+JSON.stringify(i)),r.info("Edge "+i.v+" -> "+i.w+": ",i," ",JSON.stringify(t.edge(i))),r.info("Fix",d,"ids:",i.v,i.w,"Translating: ",d.get(i.v),d.get(i.w)),await Z(h,g)});await Promise.all(f)},"processEdges")(),r.info("Graph before layout:",JSON.stringify(p(t))),r.info("############################################# XXX"),r.info("### Layout ### XXX"),r.info("############################################# XXX"),I(t),r.info("Graph after layout:",JSON.stringify(p(t)));let O=0,{subGraphTitleTotalMargin:S}=q(o);return await Promise.all(oe(t).map(async function(f){const i=t.node(f);if(r.info("Position XBX => "+f+": ("+i.x,","+i.y,") width: ",i.width," height: ",i.height),i?.clusterNode)i.y+=S,r.info("A tainted cluster node XBX1",f,i.id,i.width,i.height,i.x,i.y,t.parent(f)),d.get(i.id).node=i,P(i);else if(t.children(f).length>0){r.info("A pure cluster node XBX1",f,i.id,i.x,i.y,i.width,i.height,t.parent(f)),i.height+=S,t.node(i.parentId);const g=i?.padding/2||0,E=i?.labelBBox?.height||0,N=E-g||0;r.debug("OffsetY",N,"labelHeight",E,"halfPadding",g),await K(c,i),d.get(i.id).node=i}else{const g=t.node(i.parentId);i.y+=S/2,r.info("A regular node XBX1 - using the padding",i.id,"parent",i.parentId,i.width,i.height,i.x,i.y,"offsetY",i.offsetY,"parent",g,g?.offsetY,i),P(i)}})),t.edges().forEach(function(f){const i=t.edge(f);r.info("Edge "+f.v+" -> "+f.w+": "+JSON.stringify(i),i),i.points.forEach(x=>x.y+=S/2);const g=t.node(f.v);var E=t.node(f.w);const N=Q(m,i,d,n,g,E,a);W(i,N)}),t.nodes().forEach(function(f){const i=t.node(f);r.info(f,i.type,i.diff),i.isGroup&&(O=i.diff)}),r.warn("Returning from recursive render XAX",u,O),{elem:u,diff:O}},"recursiveRender"),De=w(async(e,t)=>{const n=new B({multigraph:!0,compound:!0}).setGraph({rankdir:e.direction,nodesep:e.config?.nodeSpacing||e.config?.flowchart?.nodeSpacing||e.nodeSpacing,ranksep:e.config?.rankSpacing||e.config?.flowchart?.rankSpacing||e.rankSpacing,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}}),a=t.select("g");F(a,e.markers,e.type,e.diagramId),Y(),_(),H(),te(),e.nodes.forEach(o=>{n.setNode(o.id,{...o}),o.parentId&&n.setParent(o.id,o.parentId)}),r.debug("Edges:",e.edges),e.edges.forEach(o=>{if(o.start===o.end){const l=o.start,u=l+"---"+l+"---1",c=l+"---"+l+"---2",m=n.node(l);n.setNode(u,{domId:u,id:u,parentId:m.parentId,labelStyle:"",label:"",padding:0,shape:"labelRect",style:"",width:10,height:10}),n.setParent(u,m.parentId),n.setNode(c,{domId:c,id:c,parentId:m.parentId,labelStyle:"",padding:0,shape:"labelRect",label:"",style:"",width:10,height:10}),n.setParent(c,m.parentId);const h=structuredClone(o),v=structuredClone(o),y=structuredClone(o);h.label="",h.arrowTypeEnd="none",h.id=l+"-cyclic-special-1",v.arrowTypeStart="none",v.arrowTypeEnd="none",v.id=l+"-cyclic-special-mid",y.label="",m.isGroup&&(h.fromCluster=l,y.toCluster=l),y.id=l+"-cyclic-special-2",y.arrowTypeStart="none",n.setEdge(l,u,h,l+"-cyclic-special-0"),n.setEdge(u,c,v,l+"-cyclic-special-1"),n.setEdge(c,l,y,l+"-cyc<lic-special-2")}else n.setEdge(o.start,o.end,{...o},o.id)}),r.warn("Graph at first:",JSON.stringify(p(n))),se(n),r.warn("Graph after XAX:",JSON.stringify(p(n)));const s=V();await j(a,n,e.type,e.diagramId,void 0,s)},"render");export{De as render};
|
|
5
|
-
//# sourceMappingURL=dagre-FFZHY6LT-D8_T6tZq.js.map
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import{s as de}from"./chunk-SKB7J2MH-CPK45517.js";import{_ as x,s as pe,g as ue,t as he,q as fe,a as me,b as ge,F as ae,G as ne,K as ye,e as Se,l as Q,aY as B,d as Z,aZ as ve,z as xe,H as be}from"./mermaid.core-Cvtu6qL8.js";import{p as Ce}from"./chunk-353BL4L5-Dpooe8HA.js";import{I as we}from"./chunk-AACKK3MU-956RrsQJ.js";import{p as Le}from"./treemap-FKARHQ26-4Q6H4E9y.js";import{b as O}from"./defaultLocale-C4B-KCzX.js";import{o as J}from"./ordinal-Cboi1Yqb.js";import"./mdx-BrER1Z2t.js";import"./jsx-runtime-EKYJJIwR.js";import"./misc-COGqV2fm.js";import"./chunk-QMGIS6GS-CG5cA6CX.js";import"./index-Bp_2FjuO.js";import"./epic-video-Buv6ZzQr.js";import"./index-5iWKMrsc.js";import"./tooltip-Cm7A1uIP.js";import"./pe-DoDyGTeN.js";import"./online-CyV51Rml.js";import"./loading-WTUNhoIS.js";import"./user-BQ8D2Fty.js";import"./workshop-config-5VcXxeyp.js";import"./progress-bar-Cww9t8Vn.js";import"./_baseUniq-BAqp_AZM.js";import"./_basePickBy-DkOIaPL8.js";import"./clone-DgOnCE7a.js";import"./init-Gi6I4Gst.js";function Te(e){var a=0,n=e.children,l=n&&n.length;if(!l)a=1;else for(;--l>=0;)a+=n[l].value;e.value=a}function $e(){return this.eachAfter(Te)}function Fe(e,a){let n=-1;for(const l of this)e.call(a,l,++n,this);return this}function Ne(e,a){for(var n=this,l=[n],i,s,d=-1;n=l.pop();)if(e.call(a,n,++d,this),i=n.children)for(s=i.length-1;s>=0;--s)l.push(i[s]);return this}function ke(e,a){for(var n=this,l=[n],i=[],s,d,u,m=-1;n=l.pop();)if(i.push(n),s=n.children)for(d=0,u=s.length;d<u;++d)l.push(s[d]);for(;n=i.pop();)e.call(a,n,++m,this);return this}function Ae(e,a){let n=-1;for(const l of this)if(e.call(a,l,++n,this))return l}function _e(e){return this.eachAfter(function(a){for(var n=+e(a.data)||0,l=a.children,i=l&&l.length;--i>=0;)n+=l[i].value;a.value=n})}function ze(e){return this.eachBefore(function(a){a.children&&a.children.sort(e)})}function Me(e){for(var a=this,n=Ve(a,e),l=[a];a!==n;)a=a.parent,l.push(a);for(var i=l.length;e!==n;)l.splice(i,0,e),e=e.parent;return l}function Ve(e,a){if(e===a)return e;var n=e.ancestors(),l=a.ancestors(),i=null;for(e=n.pop(),a=l.pop();e===a;)i=e,e=n.pop(),a=l.pop();return i}function Pe(){for(var e=this,a=[e];e=e.parent;)a.push(e);return a}function Re(){return Array.from(this)}function Be(){var e=[];return this.eachBefore(function(a){a.children||e.push(a)}),e}function De(){var e=this,a=[];return e.each(function(n){n!==e&&a.push({source:n.parent,target:n})}),a}function*We(){var e=this,a,n=[e],l,i,s;do for(a=n.reverse(),n=[];e=a.pop();)if(yield e,l=e.children)for(i=0,s=l.length;i<s;++i)n.push(l[i]);while(n.length)}function ee(e,a){e instanceof Map?(e=[void 0,e],a===void 0&&(a=He)):a===void 0&&(a=Ie);for(var n=new K(e),l,i=[n],s,d,u,m;l=i.pop();)if((d=a(l.data))&&(m=(d=Array.from(d)).length))for(l.children=d,u=m-1;u>=0;--u)i.push(s=d[u]=new K(d[u])),s.parent=l,s.depth=l.depth+1;return n.eachBefore(Ge)}function Ee(){return ee(this).eachBefore(Oe)}function Ie(e){return e.children}function He(e){return Array.isArray(e)?e[1]:null}function Oe(e){e.data.value!==void 0&&(e.value=e.data.value),e.data=e.data.data}function Ge(e){var a=0;do e.height=a;while((e=e.parent)&&e.height<++a)}function K(e){this.data=e,this.depth=this.height=0,this.parent=null}K.prototype=ee.prototype={constructor:K,count:$e,each:Fe,eachAfter:ke,eachBefore:Ne,find:Ae,sum:_e,sort:ze,path:Me,ancestors:Pe,descendants:Re,leaves:Be,links:De,copy:Ee,[Symbol.iterator]:We};function qe(e){if(typeof e!="function")throw new Error;return e}function G(){return 0}function q(e){return function(){return e}}function Xe(e){e.x0=Math.round(e.x0),e.y0=Math.round(e.y0),e.x1=Math.round(e.x1),e.y1=Math.round(e.y1)}function Ye(e,a,n,l,i){for(var s=e.children,d,u=-1,m=s.length,c=e.value&&(l-a)/e.value;++u<m;)d=s[u],d.y0=n,d.y1=i,d.x0=a,d.x1=a+=d.value*c}function je(e,a,n,l,i){for(var s=e.children,d,u=-1,m=s.length,c=e.value&&(i-n)/e.value;++u<m;)d=s[u],d.x0=a,d.x1=l,d.y0=n,d.y1=n+=d.value*c}var Ze=(1+Math.sqrt(5))/2;function Ke(e,a,n,l,i,s){for(var d=[],u=a.children,m,c,p=0,C=0,r=u.length,b,S,v=a.value,h,g,A,k,P,W,_;p<r;){b=i-n,S=s-l;do h=u[C++].value;while(!h&&C<r);for(g=A=h,W=Math.max(S/b,b/S)/(v*e),_=h*h*W,P=Math.max(A/_,_/g);C<r;++C){if(h+=c=u[C].value,c<g&&(g=c),c>A&&(A=c),_=h*h*W,k=Math.max(A/_,_/g),k>P){h-=c;break}P=k}d.push(m={value:h,dice:b<S,children:u.slice(p,C)}),m.dice?Ye(m,n,l,i,v?l+=S*h/v:s):je(m,n,l,v?n+=b*h/v:i,s),v-=h,p=C}return d}const Ue=function e(a){function n(l,i,s,d,u){Ke(a,l,i,s,d,u)}return n.ratio=function(l){return e((l=+l)>1?l:1)},n}(Ze);function Je(){var e=Ue,a=!1,n=1,l=1,i=[0],s=G,d=G,u=G,m=G,c=G;function p(r){return r.x0=r.y0=0,r.x1=n,r.y1=l,r.eachBefore(C),i=[0],a&&r.eachBefore(Xe),r}function C(r){var b=i[r.depth],S=r.x0+b,v=r.y0+b,h=r.x1-b,g=r.y1-b;h<S&&(S=h=(S+h)/2),g<v&&(v=g=(v+g)/2),r.x0=S,r.y0=v,r.x1=h,r.y1=g,r.children&&(b=i[r.depth+1]=s(r)/2,S+=c(r)-b,v+=d(r)-b,h-=u(r)-b,g-=m(r)-b,h<S&&(S=h=(S+h)/2),g<v&&(v=g=(v+g)/2),e(r,S,v,h,g))}return p.round=function(r){return arguments.length?(a=!!r,p):a},p.size=function(r){return arguments.length?(n=+r[0],l=+r[1],p):[n,l]},p.tile=function(r){return arguments.length?(e=qe(r),p):e},p.padding=function(r){return arguments.length?p.paddingInner(r).paddingOuter(r):p.paddingInner()},p.paddingInner=function(r){return arguments.length?(s=typeof r=="function"?r:q(+r),p):s},p.paddingOuter=function(r){return arguments.length?p.paddingTop(r).paddingRight(r).paddingBottom(r).paddingLeft(r):p.paddingTop()},p.paddingTop=function(r){return arguments.length?(d=typeof r=="function"?r:q(+r),p):d},p.paddingRight=function(r){return arguments.length?(u=typeof r=="function"?r:q(+r),p):u},p.paddingBottom=function(r){return arguments.length?(m=typeof r=="function"?r:q(+r),p):m},p.paddingLeft=function(r){return arguments.length?(c=typeof r=="function"?r:q(+r),p):c},p}var Qe={nodes:[],levels:new Map,outerNodes:[],classes:new Map},V=new we(()=>structuredClone(Qe)),et=x(()=>{const e=be,a=ne();return ae({...e.treemap,...a.treemap??{}})},"getConfig"),tt=x(()=>V.records.nodes,"getNodes"),at=x((e,a)=>{const n=V.records;n.nodes.push(e),n.levels.set(e,a),a===0&&n.outerNodes.push(e),a===0&&!n.root&&(n.root=e)},"addNode"),nt=x(()=>({name:"",children:V.records.outerNodes}),"getRoot"),lt=x((e,a)=>{const n=V.records.classes,l=n.get(e)??{id:e,styles:[],textStyles:[]};n.set(e,l);const i=a.replace(/\\,/g,"§§§").replace(/,/g,";").replace(/§§§/g,",").split(";");i&&i.forEach(s=>{ve(s)&&(l?.textStyles?l.textStyles.push(s):l.textStyles=[s]),l?.styles?l.styles.push(s):l.styles=[s]}),n.set(e,l)},"addClass"),rt=x(()=>V.records.classes,"getClasses"),st=x(e=>V.records.classes.get(e)?.styles??[],"getStylesForClass"),ot=x(()=>{xe(),V.reset()},"clear"),Y={getNodes:tt,addNode:at,getRoot:nt,getConfig:et,clear:ot,setAccTitle:ge,getAccTitle:me,setDiagramTitle:fe,getDiagramTitle:he,getAccDescription:ue,setAccDescription:pe,addClass:lt,getClasses:rt,getStylesForClass:st};function le(e){if(!e.length)return[];const a=[],n=[];return e.forEach(l=>{const i={name:l.name,children:l.type==="Leaf"?void 0:[]};for(i.classSelector=l?.classSelector,l?.cssCompiledStyles&&(i.cssCompiledStyles=[l.cssCompiledStyles]),l.type==="Leaf"&&l.value!==void 0&&(i.value=l.value);n.length>0&&n[n.length-1].level>=l.level;)n.pop();if(n.length===0)a.push(i);else{const s=n[n.length-1].node;s.children?s.children.push(i):s.children=[i]}l.type!=="Leaf"&&n.push({node:i,level:l.level})}),a}x(le,"buildHierarchy");var it=x(e=>{Ce(e,Y);const a=[];for(const i of e.TreemapRows??[])i.$type==="ClassDefStatement"&&Y.addClass(i.className??"",i.styleText??"");for(const i of e.TreemapRows??[]){const s=i.item;if(!s)continue;const d=i.indent?parseInt(i.indent):0,u=ct(s),m=s.classSelector?Y.getStylesForClass(s.classSelector):[],c=m.length>0?m.join(";"):void 0,p={level:d,name:u,type:s.$type,value:s.value,classSelector:s.classSelector,cssCompiledStyles:c};a.push(p)}const n=le(a),l=x((i,s)=>{for(const d of i)Y.addNode(d,s),d.children&&d.children.length>0&&l(d.children,s+1)},"addNodesRecursively");l(n,0)},"populate"),ct=x(e=>e.name?String(e.name):"","getItemName"),dt={parse:x(async e=>{try{const n=await Le("treemap",e);Q.debug("Treemap AST:",n),it(n)}catch(a){throw Q.error("Error parsing treemap:",a),a}},"parse")},pt=10,D=10,X=25,ut=x((e,a,n,l)=>{const i=l.db,s=i.getConfig(),d=s.padding??pt,u=i.getDiagramTitle(),m=i.getRoot(),{themeVariables:c}=ne();if(!m)return;const p=u?30:0,C=ye(a),r=s.nodeWidth?s.nodeWidth*D:960,b=s.nodeHeight?s.nodeHeight*D:500,S=r,v=b+p;C.attr("viewBox",`0 0 ${S} ${v}`),Se(C,v,S,s.useMaxWidth);let h;try{const t=s.valueFormat||",";if(t==="$0,0")h=x(o=>"$"+O(",")(o),"valueFormat");else if(t.startsWith("$")&&t.includes(",")){const o=/\.\d+/.exec(t),f=o?o[0]:"";h=x(w=>"$"+O(","+f)(w),"valueFormat")}else if(t.startsWith("$")){const o=t.substring(1);h=x(f=>"$"+O(o||"")(f),"valueFormat")}else h=O(t)}catch(t){Q.error("Error creating format function:",t),h=O(",")}const g=J().range(["transparent",c.cScale0,c.cScale1,c.cScale2,c.cScale3,c.cScale4,c.cScale5,c.cScale6,c.cScale7,c.cScale8,c.cScale9,c.cScale10,c.cScale11]),A=J().range(["transparent",c.cScalePeer0,c.cScalePeer1,c.cScalePeer2,c.cScalePeer3,c.cScalePeer4,c.cScalePeer5,c.cScalePeer6,c.cScalePeer7,c.cScalePeer8,c.cScalePeer9,c.cScalePeer10,c.cScalePeer11]),k=J().range([c.cScaleLabel0,c.cScaleLabel1,c.cScaleLabel2,c.cScaleLabel3,c.cScaleLabel4,c.cScaleLabel5,c.cScaleLabel6,c.cScaleLabel7,c.cScaleLabel8,c.cScaleLabel9,c.cScaleLabel10,c.cScaleLabel11]);u&&C.append("text").attr("x",S/2).attr("y",p/2).attr("class","treemapTitle").attr("text-anchor","middle").attr("dominant-baseline","middle").text(u);const P=C.append("g").attr("transform",`translate(0, ${p})`).attr("class","treemapContainer"),W=ee(m).sum(t=>t.value??0).sort((t,o)=>(o.value??0)-(t.value??0)),te=Je().size([r,b]).paddingTop(t=>t.children&&t.children.length>0?X+D:0).paddingInner(d).paddingLeft(t=>t.children&&t.children.length>0?D:0).paddingRight(t=>t.children&&t.children.length>0?D:0).paddingBottom(t=>t.children&&t.children.length>0?D:0).round(!0)(W),re=te.descendants().filter(t=>t.children&&t.children.length>0),E=P.selectAll(".treemapSection").data(re).enter().append("g").attr("class","treemapSection").attr("transform",t=>`translate(${t.x0},${t.y0})`);E.append("rect").attr("width",t=>t.x1-t.x0).attr("height",X).attr("class","treemapSectionHeader").attr("fill","none").attr("fill-opacity",.6).attr("stroke-width",.6).attr("style",t=>t.depth===0?"display: none;":""),E.append("clipPath").attr("id",(t,o)=>`clip-section-${a}-${o}`).append("rect").attr("width",t=>Math.max(0,t.x1-t.x0-12)).attr("height",X),E.append("rect").attr("width",t=>t.x1-t.x0).attr("height",t=>t.y1-t.y0).attr("class",(t,o)=>`treemapSection section${o}`).attr("fill",t=>g(t.data.name)).attr("fill-opacity",.6).attr("stroke",t=>A(t.data.name)).attr("stroke-width",2).attr("stroke-opacity",.4).attr("style",t=>{if(t.depth===0)return"display: none;";const o=B({cssCompiledStyles:t.data.cssCompiledStyles});return o.nodeStyles+";"+o.borderStyles.join(";")}),E.append("text").attr("class","treemapSectionLabel").attr("x",6).attr("y",X/2).attr("dominant-baseline","middle").text(t=>t.depth===0?"":t.data.name).attr("font-weight","bold").attr("style",t=>{if(t.depth===0)return"display: none;";const o="dominant-baseline: middle; font-size: 12px; fill:"+k(t.data.name)+"; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;",f=B({cssCompiledStyles:t.data.cssCompiledStyles});return o+f.labelStyles.replace("color:","fill:")}).each(function(t){if(t.depth===0)return;const o=Z(this),f=t.data.name;o.text(f);const w=t.x1-t.x0,$=6;let F;s.showValues!==!1&&t.value?F=w-10-30-10-$:F=w-$-6;const N=Math.max(15,F),y=o.node();if(y.getComputedTextLength()>N){const L="...";let T=f;for(;T.length>0;){if(T=f.substring(0,T.length-1),T.length===0){o.text(L),y.getComputedTextLength()>N&&o.text("");break}if(o.text(T+L),y.getComputedTextLength()<=N)break}}}),s.showValues!==!1&&E.append("text").attr("class","treemapSectionValue").attr("x",t=>t.x1-t.x0-10).attr("y",X/2).attr("text-anchor","end").attr("dominant-baseline","middle").text(t=>t.value?h(t.value):"").attr("font-style","italic").attr("style",t=>{if(t.depth===0)return"display: none;";const o="text-anchor: end; dominant-baseline: middle; font-size: 10px; fill:"+k(t.data.name)+"; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;",f=B({cssCompiledStyles:t.data.cssCompiledStyles});return o+f.labelStyles.replace("color:","fill:")});const se=te.leaves(),j=P.selectAll(".treemapLeafGroup").data(se).enter().append("g").attr("class",(t,o)=>`treemapNode treemapLeafGroup leaf${o}${t.data.classSelector?` ${t.data.classSelector}`:""}x`).attr("transform",t=>`translate(${t.x0},${t.y0})`);j.append("rect").attr("width",t=>t.x1-t.x0).attr("height",t=>t.y1-t.y0).attr("class","treemapLeaf").attr("fill",t=>t.parent?g(t.parent.data.name):g(t.data.name)).attr("style",t=>B({cssCompiledStyles:t.data.cssCompiledStyles}).nodeStyles).attr("fill-opacity",.3).attr("stroke",t=>t.parent?g(t.parent.data.name):g(t.data.name)).attr("stroke-width",3),j.append("clipPath").attr("id",(t,o)=>`clip-${a}-${o}`).append("rect").attr("width",t=>Math.max(0,t.x1-t.x0-4)).attr("height",t=>Math.max(0,t.y1-t.y0-4)),j.append("text").attr("class","treemapLabel").attr("x",t=>(t.x1-t.x0)/2).attr("y",t=>(t.y1-t.y0)/2).attr("style",t=>{const o="text-anchor: middle; dominant-baseline: middle; font-size: 38px;fill:"+k(t.data.name)+";",f=B({cssCompiledStyles:t.data.cssCompiledStyles});return o+f.labelStyles.replace("color:","fill:")}).attr("clip-path",(t,o)=>`url(#clip-${a}-${o})`).text(t=>t.data.name).each(function(t){const o=Z(this),f=t.x1-t.x0,w=t.y1-t.y0,$=o.node(),F=4,R=f-2*F,N=w-2*F;if(R<10||N<10){o.style("display","none");return}let y=parseInt(o.style("font-size"),10);const z=8,L=28,T=.6,M=6,I=2;for(;$.getComputedTextLength()>R&&y>z;)y--,o.style("font-size",`${y}px`);let H=Math.max(M,Math.min(L,Math.round(y*T))),U=y+I+H;for(;U>N&&y>z&&(y--,H=Math.max(M,Math.min(L,Math.round(y*T))),!(H<M&&y===z));)o.style("font-size",`${y}px`),U=y+I+H;o.style("font-size",`${y}px`),($.getComputedTextLength()>R||y<z||N<y)&&o.style("display","none")}),s.showValues!==!1&&j.append("text").attr("class","treemapValue").attr("x",o=>(o.x1-o.x0)/2).attr("y",function(o){return(o.y1-o.y0)/2}).attr("style",o=>{const f="text-anchor: middle; dominant-baseline: hanging; font-size: 28px;fill:"+k(o.data.name)+";",w=B({cssCompiledStyles:o.data.cssCompiledStyles});return f+w.labelStyles.replace("color:","fill:")}).attr("clip-path",(o,f)=>`url(#clip-${a}-${f})`).text(o=>o.value?h(o.value):"").each(function(o){const f=Z(this),w=this.parentNode;if(!w){f.style("display","none");return}const $=Z(w).select(".treemapLabel");if($.empty()||$.style("display")==="none"){f.style("display","none");return}const F=parseFloat($.style("font-size")),R=28,N=.6,y=6,z=2,L=Math.max(y,Math.min(R,Math.round(F*N)));f.style("font-size",`${L}px`);const M=(o.y1-o.y0)/2+F/2+z;f.attr("y",M);const I=o.x1-o.x0,ie=o.y1-o.y0-4,ce=I-2*4;f.node().getComputedTextLength()>ce||M+L>ie||L<y?f.style("display","none"):f.style("display",null)});const oe=s.diagramPadding??8;de(C,oe,"flowchart",s?.useMaxWidth||!1)},"draw"),ht=x(function(e,a){return a.db.getClasses()},"getClasses"),ft={draw:ut,getClasses:ht},mt={sectionStrokeColor:"black",sectionStrokeWidth:"1",sectionFillColor:"#efefef",leafStrokeColor:"black",leafStrokeWidth:"1",leafFillColor:"#efefef",labelColor:"black",labelFontSize:"12px",valueFontSize:"10px",valueColor:"black",titleColor:"black",titleFontSize:"14px"},gt=x(({treemap:e}={})=>{const a=ae(mt,e);return`
|
|
2
|
-
.treemapNode.section {
|
|
3
|
-
stroke: ${a.sectionStrokeColor};
|
|
4
|
-
stroke-width: ${a.sectionStrokeWidth};
|
|
5
|
-
fill: ${a.sectionFillColor};
|
|
6
|
-
}
|
|
7
|
-
.treemapNode.leaf {
|
|
8
|
-
stroke: ${a.leafStrokeColor};
|
|
9
|
-
stroke-width: ${a.leafStrokeWidth};
|
|
10
|
-
fill: ${a.leafFillColor};
|
|
11
|
-
}
|
|
12
|
-
.treemapLabel {
|
|
13
|
-
fill: ${a.labelColor};
|
|
14
|
-
font-size: ${a.labelFontSize};
|
|
15
|
-
}
|
|
16
|
-
.treemapValue {
|
|
17
|
-
fill: ${a.valueColor};
|
|
18
|
-
font-size: ${a.valueFontSize};
|
|
19
|
-
}
|
|
20
|
-
.treemapTitle {
|
|
21
|
-
fill: ${a.titleColor};
|
|
22
|
-
font-size: ${a.titleFontSize};
|
|
23
|
-
}
|
|
24
|
-
`},"getStyles"),yt=gt,Gt={parser:dt,db:Y,renderer:ft,styles:yt};export{Gt as diagram};
|
|
25
|
-
//# sourceMappingURL=diagram-3EMPZRKU-BEeRqItD.js.map
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import{p as y}from"./chunk-353BL4L5-Dpooe8HA.js";import{_ as l,s as B,g as S,t as z,q as F,a as P,b as E,F as v,K as W,e as T,z as D,G as _,H as A,l as w}from"./mermaid.core-Cvtu6qL8.js";import{p as N}from"./treemap-FKARHQ26-4Q6H4E9y.js";import"./mdx-BrER1Z2t.js";import"./jsx-runtime-EKYJJIwR.js";import"./misc-COGqV2fm.js";import"./chunk-QMGIS6GS-CG5cA6CX.js";import"./index-Bp_2FjuO.js";import"./epic-video-Buv6ZzQr.js";import"./index-5iWKMrsc.js";import"./tooltip-Cm7A1uIP.js";import"./pe-DoDyGTeN.js";import"./online-CyV51Rml.js";import"./loading-WTUNhoIS.js";import"./user-BQ8D2Fty.js";import"./workshop-config-5VcXxeyp.js";import"./progress-bar-Cww9t8Vn.js";import"./_baseUniq-BAqp_AZM.js";import"./_basePickBy-DkOIaPL8.js";import"./clone-DgOnCE7a.js";var x={packet:[]},u=structuredClone(x),L=A.packet,Y=l(()=>{const t=v({...L,..._().packet});return t.showBits&&(t.paddingY+=10),t},"getConfig"),G=l(()=>u.packet,"getPacket"),H=l(t=>{t.length>0&&u.packet.push(t)},"pushWord"),I=l(()=>{D(),u=structuredClone(x)},"clear"),h={pushWord:H,getPacket:G,getConfig:Y,clear:I,setAccTitle:E,getAccTitle:P,setDiagramTitle:F,getDiagramTitle:z,getAccDescription:S,setAccDescription:B},K=1e4,M=l(t=>{y(t,h);let e=-1,o=[],i=1;const{bitsPerRow:s}=h.getConfig();for(let{start:a,end:r,bits:c,label:f}of t.blocks){if(a!==void 0&&r!==void 0&&r<a)throw new Error(`Packet block ${a} - ${r} is invalid. End must be greater than start.`);if(a??=e+1,a!==e+1)throw new Error(`Packet block ${a} - ${r??a} is not contiguous. It should start from ${e+1}.`);if(c===0)throw new Error(`Packet block ${a} is invalid. Cannot have a zero bit field.`);for(r??=a+(c??1)-1,c??=r-a+1,e=r,w.debug(`Packet block ${a} - ${e} with label ${f}`);o.length<=s+1&&h.getPacket().length<K;){const[d,p]=O({start:a,end:r,bits:c,label:f},i,s);if(o.push(d),d.end+1===i*s&&(h.pushWord(o),o=[],i++),!p)break;({start:a,end:r,bits:c,label:f}=p)}}h.pushWord(o)},"populate"),O=l((t,e,o)=>{if(t.start===void 0)throw new Error("start should have been set during first phase");if(t.end===void 0)throw new Error("end should have been set during first phase");if(t.start>t.end)throw new Error(`Block start ${t.start} is greater than block end ${t.end}.`);if(t.end+1<=e*o)return[t,void 0];const i=e*o-1,s=e*o;return[{start:t.start,end:i,label:t.label,bits:i-t.start},{start:s,end:t.end,label:t.label,bits:t.end-s}]},"getNextFittingBlock"),q={parse:l(async t=>{const e=await N("packet",t);w.debug(e),M(e)},"parse")},R=l((t,e,o,i)=>{const s=i.db,a=s.getConfig(),{rowHeight:r,paddingY:c,bitWidth:f,bitsPerRow:d}=a,p=s.getPacket(),n=s.getDiagramTitle(),k=r+c,g=k*(p.length+1)-(n?0:r),b=f*d+2,m=W(e);m.attr("viewbox",`0 0 ${b} ${g}`),T(m,g,b,a.useMaxWidth);for(const[C,$]of p.entries())U(m,$,C,a);m.append("text").text(n).attr("x",b/2).attr("y",g-k/2).attr("dominant-baseline","middle").attr("text-anchor","middle").attr("class","packetTitle")},"draw"),U=l((t,e,o,{rowHeight:i,paddingX:s,paddingY:a,bitWidth:r,bitsPerRow:c,showBits:f})=>{const d=t.append("g"),p=o*(i+a)+a;for(const n of e){const k=n.start%c*r+1,g=(n.end-n.start+1)*r-s;if(d.append("rect").attr("x",k).attr("y",p).attr("width",g).attr("height",i).attr("class","packetBlock"),d.append("text").attr("x",k+g/2).attr("y",p+i/2).attr("class","packetLabel").attr("dominant-baseline","middle").attr("text-anchor","middle").text(n.label),!f)continue;const b=n.end===n.start,m=p-2;d.append("text").attr("x",k+(b?g/2:0)).attr("y",m).attr("class","packetByte start").attr("dominant-baseline","auto").attr("text-anchor",b?"middle":"start").text(n.start),b||d.append("text").attr("x",k+g).attr("y",m).attr("class","packetByte end").attr("dominant-baseline","auto").attr("text-anchor","end").text(n.end)}},"drawWord"),X={draw:R},j={byteFontSize:"10px",startByteColor:"black",endByteColor:"black",labelColor:"black",labelFontSize:"12px",titleColor:"black",titleFontSize:"14px",blockStrokeColor:"black",blockStrokeWidth:"1",blockFillColor:"#efefef"},J=l(({packet:t}={})=>{const e=v(j,t);return`
|
|
2
|
-
.packetByte {
|
|
3
|
-
font-size: ${e.byteFontSize};
|
|
4
|
-
}
|
|
5
|
-
.packetByte.start {
|
|
6
|
-
fill: ${e.startByteColor};
|
|
7
|
-
}
|
|
8
|
-
.packetByte.end {
|
|
9
|
-
fill: ${e.endByteColor};
|
|
10
|
-
}
|
|
11
|
-
.packetLabel {
|
|
12
|
-
fill: ${e.labelColor};
|
|
13
|
-
font-size: ${e.labelFontSize};
|
|
14
|
-
}
|
|
15
|
-
.packetTitle {
|
|
16
|
-
fill: ${e.titleColor};
|
|
17
|
-
font-size: ${e.titleFontSize};
|
|
18
|
-
}
|
|
19
|
-
.packetBlock {
|
|
20
|
-
stroke: ${e.blockStrokeColor};
|
|
21
|
-
stroke-width: ${e.blockStrokeWidth};
|
|
22
|
-
fill: ${e.blockFillColor};
|
|
23
|
-
}
|
|
24
|
-
`},"styles"),ht={parser:q,db:h,renderer:X,styles:J};export{ht as diagram};
|
|
25
|
-
//# sourceMappingURL=diagram-5UYTHUR4-CikqdCuq.js.map
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
import{p as k}from"./chunk-353BL4L5-Dpooe8HA.js";import{_ as l,s as R,g as F,t as I,q as _,a as E,b as D,K as G,z,F as y,G as C,H as P,l as H,a1 as V}from"./mermaid.core-Cvtu6qL8.js";import{p as W}from"./treemap-FKARHQ26-4Q6H4E9y.js";import"./mdx-BrER1Z2t.js";import"./jsx-runtime-EKYJJIwR.js";import"./misc-COGqV2fm.js";import"./chunk-QMGIS6GS-CG5cA6CX.js";import"./index-Bp_2FjuO.js";import"./epic-video-Buv6ZzQr.js";import"./index-5iWKMrsc.js";import"./tooltip-Cm7A1uIP.js";import"./pe-DoDyGTeN.js";import"./online-CyV51Rml.js";import"./loading-WTUNhoIS.js";import"./user-BQ8D2Fty.js";import"./workshop-config-5VcXxeyp.js";import"./progress-bar-Cww9t8Vn.js";import"./_baseUniq-BAqp_AZM.js";import"./_basePickBy-DkOIaPL8.js";import"./clone-DgOnCE7a.js";var h={showLegend:!0,ticks:5,max:null,min:0,graticule:"circle"},w={axes:[],curves:[],options:h},g=structuredClone(w),B=P.radar,j=l(()=>y({...B,...C().radar}),"getConfig"),b=l(()=>g.axes,"getAxes"),q=l(()=>g.curves,"getCurves"),K=l(()=>g.options,"getOptions"),N=l(a=>{g.axes=a.map(t=>({name:t.name,label:t.label??t.name}))},"setAxes"),U=l(a=>{g.curves=a.map(t=>({name:t.name,label:t.label??t.name,entries:X(t.entries)}))},"setCurves"),X=l(a=>{if(a[0].axis==null)return a.map(e=>e.value);const t=b();if(t.length===0)throw new Error("Axes must be populated before curves for reference entries");return t.map(e=>{const r=a.find(s=>s.axis?.$refText===e.name);if(r===void 0)throw new Error("Missing entry for axis "+e.label);return r.value})},"computeCurveEntries"),Y=l(a=>{const t=a.reduce((e,r)=>(e[r.name]=r,e),{});g.options={showLegend:t.showLegend?.value??h.showLegend,ticks:t.ticks?.value??h.ticks,max:t.max?.value??h.max,min:t.min?.value??h.min,graticule:t.graticule?.value??h.graticule}},"setOptions"),Z=l(()=>{z(),g=structuredClone(w)},"clear"),$={getAxes:b,getCurves:q,getOptions:K,setAxes:N,setCurves:U,setOptions:Y,getConfig:j,clear:Z,setAccTitle:D,getAccTitle:E,setDiagramTitle:_,getDiagramTitle:I,getAccDescription:F,setAccDescription:R},J=l(a=>{k(a,$);const{axes:t,curves:e,options:r}=a;$.setAxes(t),$.setCurves(e),$.setOptions(r)},"populate"),Q={parse:l(async a=>{const t=await W("radar",a);H.debug(t),J(t)},"parse")},tt=l((a,t,e,r)=>{const s=r.db,o=s.getAxes(),i=s.getCurves(),n=s.getOptions(),c=s.getConfig(),d=s.getDiagramTitle(),m=G(t),p=et(m,c),u=n.max??Math.max(...i.map(f=>Math.max(...f.entries))),x=n.min,v=Math.min(c.width,c.height)/2;at(p,o,v,n.ticks,n.graticule),rt(p,o,v,c),M(p,o,i,x,u,n.graticule,c),T(p,i,n.showLegend,c),p.append("text").attr("class","radarTitle").text(d).attr("x",0).attr("y",-c.height/2-c.marginTop)},"draw"),et=l((a,t)=>{const e=t.width+t.marginLeft+t.marginRight,r=t.height+t.marginTop+t.marginBottom,s={x:t.marginLeft+t.width/2,y:t.marginTop+t.height/2};return a.attr("viewbox",`0 0 ${e} ${r}`).attr("width",e).attr("height",r),a.append("g").attr("transform",`translate(${s.x}, ${s.y})`)},"drawFrame"),at=l((a,t,e,r,s)=>{if(s==="circle")for(let o=0;o<r;o++){const i=e*(o+1)/r;a.append("circle").attr("r",i).attr("class","radarGraticule")}else if(s==="polygon"){const o=t.length;for(let i=0;i<r;i++){const n=e*(i+1)/r,c=t.map((d,m)=>{const p=2*m*Math.PI/o-Math.PI/2,u=n*Math.cos(p),x=n*Math.sin(p);return`${u},${x}`}).join(" ");a.append("polygon").attr("points",c).attr("class","radarGraticule")}}},"drawGraticule"),rt=l((a,t,e,r)=>{const s=t.length;for(let o=0;o<s;o++){const i=t[o].label,n=2*o*Math.PI/s-Math.PI/2;a.append("line").attr("x1",0).attr("y1",0).attr("x2",e*r.axisScaleFactor*Math.cos(n)).attr("y2",e*r.axisScaleFactor*Math.sin(n)).attr("class","radarAxisLine"),a.append("text").text(i).attr("x",e*r.axisLabelFactor*Math.cos(n)).attr("y",e*r.axisLabelFactor*Math.sin(n)).attr("class","radarAxisLabel")}},"drawAxes");function M(a,t,e,r,s,o,i){const n=t.length,c=Math.min(i.width,i.height)/2;e.forEach((d,m)=>{if(d.entries.length!==n)return;const p=d.entries.map((u,x)=>{const v=2*Math.PI*x/n-Math.PI/2,f=A(u,r,s,c),O=f*Math.cos(v),S=f*Math.sin(v);return{x:O,y:S}});o==="circle"?a.append("path").attr("d",L(p,i.curveTension)).attr("class",`radarCurve-${m}`):o==="polygon"&&a.append("polygon").attr("points",p.map(u=>`${u.x},${u.y}`).join(" ")).attr("class",`radarCurve-${m}`)})}l(M,"drawCurves");function A(a,t,e,r){const s=Math.min(Math.max(a,t),e);return r*(s-t)/(e-t)}l(A,"relativeRadius");function L(a,t){const e=a.length;let r=`M${a[0].x},${a[0].y}`;for(let s=0;s<e;s++){const o=a[(s-1+e)%e],i=a[s],n=a[(s+1)%e],c=a[(s+2)%e],d={x:i.x+(n.x-o.x)*t,y:i.y+(n.y-o.y)*t},m={x:n.x-(c.x-i.x)*t,y:n.y-(c.y-i.y)*t};r+=` C${d.x},${d.y} ${m.x},${m.y} ${n.x},${n.y}`}return`${r} Z`}l(L,"closedRoundCurve");function T(a,t,e,r){if(!e)return;const s=(r.width/2+r.marginRight)*3/4,o=-(r.height/2+r.marginTop)*3/4,i=20;t.forEach((n,c)=>{const d=a.append("g").attr("transform",`translate(${s}, ${o+c*i})`);d.append("rect").attr("width",12).attr("height",12).attr("class",`radarLegendBox-${c}`),d.append("text").attr("x",16).attr("y",0).attr("class","radarLegendText").text(n.label)})}l(T,"drawLegend");var st={draw:tt},nt=l((a,t)=>{let e="";for(let r=0;r<a.THEME_COLOR_LIMIT;r++){const s=a[`cScale${r}`];e+=`
|
|
2
|
-
.radarCurve-${r} {
|
|
3
|
-
color: ${s};
|
|
4
|
-
fill: ${s};
|
|
5
|
-
fill-opacity: ${t.curveOpacity};
|
|
6
|
-
stroke: ${s};
|
|
7
|
-
stroke-width: ${t.curveStrokeWidth};
|
|
8
|
-
}
|
|
9
|
-
.radarLegendBox-${r} {
|
|
10
|
-
fill: ${s};
|
|
11
|
-
fill-opacity: ${t.curveOpacity};
|
|
12
|
-
stroke: ${s};
|
|
13
|
-
}
|
|
14
|
-
`}return e},"genIndexStyles"),ot=l(a=>{const t=V(),e=C(),r=y(t,e.themeVariables),s=y(r.radar,a);return{themeVariables:r,radarOptions:s}},"buildRadarStyleOptions"),it=l(({radar:a}={})=>{const{themeVariables:t,radarOptions:e}=ot(a);return`
|
|
15
|
-
.radarTitle {
|
|
16
|
-
font-size: ${t.fontSize};
|
|
17
|
-
color: ${t.titleColor};
|
|
18
|
-
dominant-baseline: hanging;
|
|
19
|
-
text-anchor: middle;
|
|
20
|
-
}
|
|
21
|
-
.radarAxisLine {
|
|
22
|
-
stroke: ${e.axisColor};
|
|
23
|
-
stroke-width: ${e.axisStrokeWidth};
|
|
24
|
-
}
|
|
25
|
-
.radarAxisLabel {
|
|
26
|
-
dominant-baseline: middle;
|
|
27
|
-
text-anchor: middle;
|
|
28
|
-
font-size: ${e.axisLabelFontSize}px;
|
|
29
|
-
color: ${e.axisColor};
|
|
30
|
-
}
|
|
31
|
-
.radarGraticule {
|
|
32
|
-
fill: ${e.graticuleColor};
|
|
33
|
-
fill-opacity: ${e.graticuleOpacity};
|
|
34
|
-
stroke: ${e.graticuleColor};
|
|
35
|
-
stroke-width: ${e.graticuleStrokeWidth};
|
|
36
|
-
}
|
|
37
|
-
.radarLegendText {
|
|
38
|
-
text-anchor: start;
|
|
39
|
-
font-size: ${e.legendFontSize}px;
|
|
40
|
-
dominant-baseline: hanging;
|
|
41
|
-
}
|
|
42
|
-
${nt(t,e)}
|
|
43
|
-
`},"styles"),Ot={parser:Q,db:$,renderer:st,styles:it};export{Ot as diagram};
|
|
44
|
-
//# sourceMappingURL=diagram-ZTM2IBQH-CDz-uqOk.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{w as a,c as e,l as m,f as p}from"./chunk-QMGIS6GS-CG5cA6CX.js";import{j as r}from"./jsx-runtime-EKYJJIwR.js";import{d as n,a as f}from"./misc-COGqV2fm.js";import{D as c}from"./diff-DLaUr4S6.js";import{N as d}from"./nav-chevrons-Cxzx0j13.js";import"./accordion-PSsenYUI.js";import"./tooltip-Cm7A1uIP.js";import"./index-Bp_2FjuO.js";import"./index-CZ8q0Nf8.js";import"./index-7Ba6ptu2.js";import"./mdx-BrER1Z2t.js";import"./epic-video-Buv6ZzQr.js";import"./index-5iWKMrsc.js";import"./pe-DoDyGTeN.js";import"./online-CyV51Rml.js";import"./loading-WTUNhoIS.js";import"./user-BQ8D2Fty.js";import"./workshop-config-5VcXxeyp.js";import"./progress-bar-Cww9t8Vn.js";import"./revalidation-ws-CkOwoVmm.js";const U=a(function(){const i=e(),[t]=m();new URLSearchParams(t).set("forceFresh","diff");const s=p(),o=n.useSpinDelay(s.state!=="idle",{delay:200,minDuration:200});return r.jsxs("div",{className:f("grid h-full grid-rows-[1fr,auto]",{"cursor-wait opacity-30":o}),children:[r.jsx("div",{className:"overflow-y-auto",children:r.jsx(c,{diff:i.diff,allApps:i.allApps})}),r.jsx("div",{className:"flex h-16 items-center justify-end border-t",children:r.jsx(d,{prev:i.prevLink,next:i.nextLink})})]})});export{U as default};
|
|
2
|
-
//# sourceMappingURL=diff-BXApfmyx.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{j as e}from"./jsx-runtime-EKYJJIwR.js";import{R as u,A as j}from"./accordion-PSsenYUI.js";import{R as w,T as b,I as g,P as N,C as v,S as y,a as S,G as k,L as D,b as R,V as A,c as C,d as I,e as T}from"./index-CZ8q0Nf8.js";import{d as P,I as o,a as V,c as x}from"./misc-COGqV2fm.js";import{k as $,l as L,f as E,r as F,A as U,L as B,F as G}from"./chunk-QMGIS6GS-CG5cA6CX.js";import{M as H,u as M}from"./mdx-BrER1Z2t.js";import{D as W}from"./epic-video-Buv6ZzQr.js";import{u as z}from"./revalidation-ws-CkOwoVmm.js";import{S as m}from"./tooltip-Cm7A1uIP.js";import{b as Y}from"./user-BQ8D2Fty.js";const q=t=>e.jsx("pre",{...t}),J={Accordion:j,pre:q};function K({app1:t,app2:a}){const n=M(),r=n.find(l=>l.name===t),i=n.find(l=>l.name===a);return z({watchPaths:[r?.fullPath,i?.fullPath].filter(Boolean)}),null}function ie({diff:t,allApps:a}){const n=Y(),r=$(),[i]=L(),l=new URLSearchParams(i);l.set("forceFresh","diff");const h=E(),f=P.useSpinDelay(h.state!=="idle",{delay:0,minDuration:1e3}),p=[];for(const[s,c]of i.entries())s==="app1"||s==="app2"||p.push(e.jsx("input",{type:"hidden",name:s,value:c},s));return n?e.jsx(F.Suspense,{fallback:e.jsx("div",{className:"flex items-center justify-center p-8",children:e.jsx(m,{content:"Loading diff",children:e.jsx(o,{name:"Refresh",className:"animate-spin"})})}),children:e.jsx(U,{resolve:t,errorElement:e.jsx("p",{className:"p-6 text-foreground-destructive",children:"There was an error calculating the diff. Sorry."}),children:s=>e.jsxs("div",{className:"flex h-full w-full flex-col",children:[e.jsxs("div",{className:"flex h-14 min-h-14 w-full overflow-x-hidden border-b",children:[e.jsx("div",{className:"border-r",children:e.jsx(m,{content:"Reload diff",children:e.jsx(B,{to:`.?${l}`,className:"flex h-full w-14 items-center justify-center",children:e.jsx(o,{name:"Refresh",className:V({"animate-spin":f})})})})}),e.jsxs(G,{onChange:c=>r(c.currentTarget),className:"flex h-full flex-1 items-center overflow-x-auto scrollbar-thin scrollbar-thumb-scrollbar",children:[p,e.jsx(d,{name:"app1",label:"App 1",className:"border-r",allApps:a,defaultValue:s.app1}),e.jsx(d,{name:"app2",label:"App 2",allApps:a,defaultValue:s.app2})]},`${s.app1}${s.app2}`)]}),e.jsx("div",{className:"flex-grow overflow-y-scroll scrollbar-thin scrollbar-thumb-scrollbar",children:s.diffCode?e.jsx("div",{children:e.jsx(u,{className:"w-full",type:"multiple",children:e.jsx(H,{code:s.diffCode,components:J})})}):s.app1&&s.app2?e.jsx("p",{className:"m-5 inline-flex items-center justify-center bg-foreground px-1 py-0.5 font-mono text-sm uppercase text-background",children:"There was a problem generating the diff"}):e.jsx("p",{className:"m-5 inline-flex items-center justify-center bg-foreground px-1 py-0.5 font-mono text-sm uppercase text-background",children:"Select two apps to compare"})}),e.jsx(K,{app1:s.app1,app2:s.app2})]})})}):e.jsxs("div",{className:"w-full p-12",children:[e.jsxs("div",{className:"flex w-full flex-col gap-4 text-center",children:[e.jsx("p",{className:"text-2xl font-bold",children:"Access Denied"}),e.jsx("p",{className:"text-lg",children:"You must login or register for the workshop to view the diff."})]}),e.jsx("div",{className:"h-16"}),e.jsx("p",{className:"pb-4",children:"Check out this video to see how the diff tab works."}),e.jsx(W,{url:"https://www.epicweb.dev/tips/epic-workshop-diff-tab-demo"})]})}function d({name:t,label:a,className:n,allApps:r,defaultValue:i}){return e.jsxs(w,{name:t,defaultValue:i,children:[e.jsxs(b,{className:x("flex h-full w-full max-w-[50%] items-center justify-between px-3 text-left radix-placeholder:text-gray-500 focus-visible:outline-none",n),"aria-label":`Select ${a} for git Diff`,children:[e.jsxs("span",{className:"overflow-hidden text-ellipsis whitespace-nowrap",children:[a,":"," ",e.jsx(Q,{placeholder:`Select ${a}`,className:"inline-block w-40 text-ellipsis"})]}),e.jsx(g,{className:"",children:e.jsx(o,{name:"TriangleDownSmall"})})]}),e.jsx(N,{children:e.jsxs(v,{position:"popper",align:"start",className:"z-20 max-h-[50vh] bg-black text-white lg:max-h-[70vh]",children:[e.jsx(y,{className:"flex h-5 cursor-default items-center justify-center",children:e.jsx(o,{name:"ChevronUp"})}),e.jsx(S,{className:"p-3",children:e.jsxs(k,{children:[e.jsx(D,{className:"px-5 pb-3 font-mono uppercase",children:a}),r.map(l=>e.jsx(O,{value:l.name,children:l.displayName},l.name))]})}),e.jsx(R,{className:"flex h-5 cursor-default items-center justify-center",children:e.jsx(o,{name:"ChevronDown"})})]})})]})}const O=({ref:t,children:a,className:n,...r})=>e.jsxs(C,{className:x("relative flex cursor-pointer select-none items-center rounded px-10 py-2 leading-none opacity-80 radix-disabled:text-red-500 radix-highlighted:opacity-100 radix-highlighted:outline-none radix-state-checked:opacity-100",n),...r,ref:t,children:[e.jsx(I,{children:a}),e.jsx(T,{className:"absolute left-0 inline-flex w-[25px] items-center justify-center",children:e.jsx(o,{name:"CheckSmall"})})]}),Q=({ref:t,children:a,className:n,...r})=>e.jsx(A,{...r,ref:t,children:r.value});export{ie as D};
|
|
2
|
-
//# sourceMappingURL=diff-DLaUr4S6.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{d,h as e}from"./discord-DOEtvB6W.js";import"./chunk-QMGIS6GS-CG5cA6CX.js";import"./jsx-runtime-EKYJJIwR.js";import"./misc-COGqV2fm.js";import"./user-BQ8D2Fty.js";import"./workshop-config-5VcXxeyp.js";export{d as default,e as handle};
|
|
2
|
-
//# sourceMappingURL=discord-C86FbV-j.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"discord-C86FbV-j.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{w as l,L as n,r as a}from"./chunk-QMGIS6GS-CG5cA6CX.js";import{j as e}from"./jsx-runtime-EKYJJIwR.js";import{E as c}from"./index-_jNKXw67.js";import{E as d}from"./epic-video-Buv6ZzQr.js";import{I as m,a as f}from"./misc-COGqV2fm.js";import{L as h}from"./loading-WTUNhoIS.js";import{N as p}from"./nav-chevrons-Cxzx0j13.js";import{u as x}from"./revalidation-ws-CkOwoVmm.js";import{M as u,E as j}from"./mdx-BrER1Z2t.js";import{u as b}from"./online-CyV51Rml.js";import{g}from"./seo-t5J-DRxw.js";import{P as v}from"./progress-DKsShYpv.js";import{u as w}from"./index-5iWKMrsc.js";import"./user-BQ8D2Fty.js";import"./workshop-config-5VcXxeyp.js";import"./index-Bp_2FjuO.js";import"./progress-bar-Cww9t8Vn.js";import"./pe-DoDyGTeN.js";import"./tooltip-Cm7A1uIP.js";const G={getSitemapEntries:()=>[{route:"/finished"}]},Q=({matches:r})=>{const s=r.find(i=>i?.id==="root")?.data;return s?g({title:`🎉 ${s?.workshopTitle}`,description:`Elaboration for ${s?.workshopTitle}`,ogTitle:`Finished ${s?.workshopTitle}`,ogDescription:"You finished! Time to submit feedback.",instructor:s.instructor,requestInfo:s.requestInfo}):[]},N={h1:()=>null},Y=l(function({loaderData:s}){return x({watchPaths:["./exercises/FINISHED.mdx"]}),e.jsx("div",{className:"flex h-full flex-grow flex-col",children:e.jsxs("main",{className:"grid h-full flex-grow grid-cols-1 grid-rows-2 lg:grid-cols-2 lg:grid-rows-1",children:[e.jsxs("div",{className:"relative col-span-1 row-span-1 flex h-full flex-col lg:border-r",children:[e.jsx("h1",{className:"h-14 border-b pl-10 pr-5 text-sm font-medium uppercase leading-none",children:e.jsx("div",{className:"flex h-14 flex-wrap items-center justify-between gap-x-2 py-2",children:e.jsxs("div",{className:"flex items-center justify-start gap-x-2",children:[e.jsx(n,{to:"/",className:"hover:underline",children:s.workshopTitle}),e.jsx("span",{children:"/"}),e.jsx("span",{children:"Elaboration"})]})})}),e.jsx("article",{className:"shadow-on-scrollbox h-full w-full max-w-none flex-1 scroll-pt-6 space-y-6 overflow-y-auto p-2 scrollbar-thin scrollbar-thumb-scrollbar sm:p-10 sm:pt-8",id:s.articleId,children:s.finishedCode?e.jsx(d,{epicVideoInfosPromise:s.epicVideoInfosPromise,children:e.jsx("div",{className:"prose dark:prose-invert sm:prose-lg",children:e.jsx(u,{code:s.finishedCode,components:N})})}):"No finished instructions yet..."}),e.jsx(c,{elementQuery:`#${s.articleId}`}),e.jsx(v,{type:"workshop-finished",className:"h-14 border-t px-6"}),e.jsxs("div",{className:"flex h-16 justify-between border-b-4 border-t lg:border-b-0",children:[e.jsx("div",{}),s.workshopFinished.status==="success"?e.jsx(j,{file:s.workshopFinished.file,relativePath:s.workshopFinished.relativePath}):null,e.jsx(p,{prev:s.prevStepLink,next:{to:"/"}})]})]}),e.jsx(k,{workshopTitle:s.workshopTitle,workshopFormEmbedUrl:s.workshopFormEmbedUrl})]})})});function k({workshopTitle:r,workshopFormEmbedUrl:s}){const i=w(),[o,t]=a.useState(!1);return b()?e.jsxs("div",{className:"relative flex-shrink-0",children:[o?null:e.jsx("div",{className:"absolute inset-0 z-10 flex items-center justify-center",children:e.jsx(h,{children:e.jsxs("span",{children:["Loading ",r," Elaboration form"]})})}),e.jsx("iframe",{onLoad:()=>t(!0),onError:()=>t(!0),title:"Elaboration",src:s,className:f("absolute inset-0 flex h-full w-full transition-opacity duration-300",o?"opacity-100":"opacity-0"),style:{colorScheme:i}})]}):e.jsx("div",{className:"relative flex-shrink-0",children:e.jsx("div",{className:"absolute inset-0 z-10 flex items-center justify-center text-foreground-destructive",children:e.jsx(m,{name:"WifiNoConnection",size:"xl",children:e.jsxs("span",{children:["Unable to load the ",e.jsx("a",{href:s,className:"underline",children:`${r} feedback form`})," when offline"]})})})})}export{Y as default,G as handle,Q as meta};
|
|
2
|
-
//# sourceMappingURL=finished-BGX9JzP_.js.map
|