@marimo-team/islands 0.16.5 → 0.17.1
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/dist/{fullscreen-D1yTiBlu.js → Combination-De9yoNY5.js} +855 -795
- package/dist/{ConnectedDataExplorerComponent-D96i9G-X.js → ConnectedDataExplorerComponent-DuvpJOKp.js} +102 -123
- package/dist/{ImageComparisonComponent-D4Tv9QzJ.js → ImageComparisonComponent--etUl2pp.js} +2 -2
- package/dist/{_baseIsEqual-oN7pRNcM.js → _baseIsEqual-BFlyFUxC.js} +20 -20
- package/dist/{_basePickBy-CYvzhRjy.js → _basePickBy-gCCvtjgp.js} +3 -3
- package/dist/{_baseProperty-DGUdIBuu.js → _baseProperty-BuqBC0Ie.js} +5 -5
- package/dist/{_baseUniq-B5gfSl8S.js → _baseUniq-CKN9mEDq.js} +5 -5
- package/dist/any-language-editor-Du2Q_6IK.js +156 -0
- package/dist/apl-CUm2DGqh.js +4 -0
- package/dist/{arc-B1iVbHTB.js → arc-C_O2hc-b.js} +2 -2
- package/dist/architecture-O4VJ6CD3-PFw3eFBY.js +21 -0
- package/dist/{architectureDiagram-W76B3OCA-DkEhipkW.js → architectureDiagram-W76B3OCA-CrK99pJi.js} +41 -40
- package/dist/asciiarmor-lqJ78U01.js +4 -0
- package/dist/asn1-CjwpSTlW.js +4 -0
- package/dist/assets/__vite-browser-external-DHoMWs4M.js +1 -0
- package/dist/assets/worker-B6tH8gPO.js +54 -0
- package/dist/{blockDiagram-QIGZ2CNN-DZOqLMYa.js → blockDiagram-QIGZ2CNN-BJOEyO6w.js} +101 -111
- package/dist/brainfuck-ClvDI1dq.js +4 -0
- package/dist/{button-CEcjneWG.js → button-ADXOb_gX.js} +37 -40
- package/dist/{c4Diagram-FPNF74CW-DVaR7c9q.js → c4Diagram-FPNF74CW-7Pz_X9wF.js} +31 -54
- package/dist/{channel-Uh0KpgGW.js → channel-X-wRUxX6.js} +1 -1
- package/dist/{check-BK9zDfQk.js → check-COlaG7Ss.js} +1 -1
- package/dist/{chunk-3AY6CYHV-Dk2R2-S1.js → chunk-3AY6CYHV-BQH2fFpA.js} +37 -37
- package/dist/{chunk-4BX2VUAB-CqO6zUIz.js → chunk-4BX2VUAB-D-QtDCKM.js} +1 -1
- package/dist/{chunk-4KMFLZZN-CloTfTwP.js → chunk-4KMFLZZN-BirZvvJS.js} +220 -329
- package/dist/{chunk-55IACEB6-I0rmqTua.js → chunk-55IACEB6-DjtPYZKs.js} +1 -1
- package/dist/{chunk-6OXUPJBA-BuROSTmo.js → chunk-6OXUPJBA-CTnnqlzw.js} +7 -7
- package/dist/{chunk-7GE3RBXV-B1-tsIPP.js → chunk-7GE3RBXV-CT47hCrL.js} +1 -1
- package/dist/{chunk-ABZYJK2D-CLlso8tj.js → chunk-ABZYJK2D-B6ZsU6SR.js} +484 -1043
- package/dist/{chunk-BN7GFLIU-Db2-FjLn.js → chunk-BN7GFLIU-DYWEsrG4.js} +1 -1
- package/dist/{chunk-CVBHYZKI-BONeiloK.js → chunk-CVBHYZKI-BuzDGXz0.js} +3 -3
- package/dist/{chunk-CXMOBAN2-U9GJSP1d.js → chunk-CXMOBAN2-Bas2S5w1.js} +46 -54
- package/dist/chunk-EXTU4WIE-DXwNSukz.js +10 -0
- package/dist/{chunk-FMBD7UC4-DyV3BR_I.js → chunk-FMBD7UC4-CYKEpuPr.js} +1 -1
- package/dist/{chunk-JA3XYJ7Z-C9A1076P.js → chunk-JA3XYJ7Z-DcxfkcDC.js} +21 -25
- package/dist/{chunk-JEIROHC2-BGnFkSVq.js → chunk-JEIROHC2-C01ZIcIG.js} +1 -1
- package/dist/{chunk-K7UQS3LO-033LOsjK.js → chunk-K7UQS3LO-CmbT97MV.js} +7 -7
- package/dist/{chunk-KMC2YHZD-DT4Sq4Ld.js → chunk-KMC2YHZD-D64m-1E1.js} +1 -1
- package/dist/{chunk-QN33PNHL-gs44MZla.js → chunk-QN33PNHL-DjB0j8Dr.js} +2 -2
- package/dist/{chunk-QYVHNE3D-B8BO1AnT.js → chunk-QYVHNE3D-VA4W4oxG.js} +3 -4
- package/dist/{chunk-QZHKN3VN-CeN_GkU6.js → chunk-QZHKN3VN-KT0fl3Em.js} +1 -1
- package/dist/chunk-S3R3BYOJ-C5zmcMvn.js +380 -0
- package/dist/{chunk-T44TD3VJ-BwzD6YE0.js → chunk-T44TD3VJ-BMOgu-Hk.js} +1 -1
- package/dist/{chunk-TVAH2DTR-Bi6jpQJQ.js → chunk-TVAH2DTR-eKm8SKnH.js} +7 -8
- package/dist/{chunk-TZMSLE5B-D8klz2H_.js → chunk-TZMSLE5B-CQxFRiI2.js} +5 -6
- package/dist/{chunk-WFRQ32O7-CzSwSlN0.js → chunk-WFRQ32O7-Dg51o277.js} +1 -1
- package/dist/{chunk-WFWHJNB7-DN_cavM6.js → chunk-WFWHJNB7-DVLO98ge.js} +1 -1
- package/dist/{chunk-XRWGC2XP-Bb5eGNM2.js → chunk-XRWGC2XP-UNFKdWQh.js} +1 -1
- package/dist/{chunk-ZPAFE4SF-S5UYNb0V.js → chunk-ZPAFE4SF-DbCSwfLK.js} +22 -22
- package/dist/classDiagram-KNZD7YFC-HUFFxNdk.js +40 -0
- package/dist/classDiagram-v2-RKCZMP56-Dw7Acmuf.js +40 -0
- package/dist/{click-outside-container-DE4e7p1p.js → click-outside-container-2BH589Bq.js} +9 -14
- package/dist/{clike-Cg_DBrJ0.js → clike-Bc2PZzZQ.js} +1 -1
- package/dist/{clike-CxAz4p9E.js → clike-CytFO-kN.js} +1 -1
- package/dist/clojure-8GefCgPe.js +4 -0
- package/dist/{clone-Dk4FkKH0.js → clone-CCgVUJ6x.js} +1 -1
- package/dist/cmake-yAhT9H0F.js +4 -0
- package/dist/cobol-BmltueOY.js +4 -0
- package/dist/coffeescript-C7KEQBcH.js +4 -0
- package/dist/commonlisp-CNbiJRU-.js +4 -0
- package/dist/{constants-Cjd_3kwd.js → constants-BaCMVd12.js} +3 -3
- package/dist/{copy-C5RFg7ok.js → copy-GNcK40wy.js} +6 -2
- package/dist/{cose-bilkent-S5V4N54A-B3iOTGu5.js → cose-bilkent-S5V4N54A-BnvuJG6Y.js} +20 -20
- package/dist/crystal-OdjZZ8bc.js +4 -0
- package/dist/css-DhTxMmL_.js +5 -0
- package/dist/cypher-CgN8E3YI.js +4 -0
- package/dist/{cytoscape.esm-DTDV0Nbj.js → cytoscape.esm-BFEMljQI.js} +586 -661
- package/dist/d-g41sJcBC.js +4 -0
- package/dist/{dagre-5GWH7T2D-KM4Z11yT.js → dagre-5GWH7T2D-rn7tZYaQ.js} +41 -45
- package/dist/{dagre-B0u1urxE.js → dagre-Bghq6VKO.js} +58 -77
- package/dist/data-grid-overlay-editor-B4_Caieu.js +133 -0
- package/dist/{diagram-N5W7TBWH-CtO7az4G.js → diagram-N5W7TBWH-lbF94o-g.js} +46 -61
- package/dist/diagram-QEK2KX5R-CKBhSzsO.js +246 -0
- package/dist/{diagram-S2PKOQOG-CiXElLNQ.js → diagram-S2PKOQOG-161_1f53.js} +35 -34
- package/dist/diff-ViRYYhhg.js +4 -0
- package/dist/{dist-C3WYsf4K.js → dist-28HYzERB.js} +4 -10
- package/dist/{dist-CChOkSUg.js → dist-4dtbqf8A.js} +3 -3
- package/dist/{dist-CUnh_3Ii.js → dist-71jYYbWP.js} +2 -2
- package/dist/{dist-elblfNXO.js → dist-B8Pbw5ln.js} +2 -2
- package/dist/{dist-DPF5TTUg.js → dist-BAqp4Vtl.js} +126 -115
- package/dist/{dist-BEvIw5Nh.js → dist-BBhmkni2.js} +1 -1
- package/dist/{dist-C7ASiFxI.js → dist-BNRdMfJH.js} +273 -263
- package/dist/dist-BSyYM1Gi.js +15 -0
- package/dist/{dist-DzOpMdwb.js → dist-BYHiiJB-.js} +4 -4
- package/dist/{dist-DKFaZRVk.js → dist-B_wjJqqS.js} +2 -2
- package/dist/{dist-CutXTm8t.js → dist-BaPjLM6s.js} +1 -1
- package/dist/dist-BfJO8Bm9.js +12 -0
- package/dist/{dist-CGIZPq3J.js → dist-BqdQPWpQ.js} +2 -2
- package/dist/{dist--I6Htnlv.js → dist-C2IEc8og.js} +5 -5
- package/dist/{dist-CLvpViod.js → dist-C9-uHBqC.js} +2 -3
- package/dist/{dist-DBhzmFyH.js → dist-CJb8EiFO.js} +3 -3
- package/dist/dist-CLuF3AtO.js +6 -0
- package/dist/{dist-Dzk1C8l5.js → dist-CNAkUyxv.js} +11 -14
- package/dist/{dist-DNnYAdRE.js → dist-CNvMOZu9.js} +2 -2
- package/dist/{dist-CxD5E6Sh.js → dist-CPNnKuPh.js} +24 -22
- package/dist/{dist-C3QUag__.js → dist-CTIyD_KU.js} +3 -3
- package/dist/dist-CU04U4NL.js +10 -0
- package/dist/{dist-CZfRM7pE.js → dist-CWh5ZwcC.js} +2 -2
- package/dist/{dist-DW9er3Zq.js → dist-CWqB4bg8.js} +44 -23
- package/dist/{dist-CbRkrKrP.js → dist-CtOeHDJp.js} +5 -5
- package/dist/{dist-DL_ci7Yc.js → dist-Cw0F6l-7.js} +1 -1
- package/dist/{dist-BZBitvuL.js → dist-CwZcC4om.js} +1 -1
- package/dist/dist-DNUT6b47.js +6 -0
- package/dist/{dist-BBlFk9ki.js → dist-Da046MhT.js} +1 -1
- package/dist/{dist-Cib4sGDA.js → dist-DaTVdKJa.js} +2 -2
- package/dist/dist-DbAb2sY7.js +6 -0
- package/dist/dist-DiDFQ2Rk.js +6 -0
- package/dist/{dist-BQmQQqFH.js → dist-DlK420ke.js} +1 -1
- package/dist/{dist-o7fhJC7U.js → dist-Drf3cyIW.js} +3 -3
- package/dist/{dist-CdE2C2In.js → dist-DxESp2-T.js} +15 -20
- package/dist/{dist-JCAky9ND.js → dist-DzJem5xc.js} +17 -22
- package/dist/{dist-C5zMs_n5.js → dist-O0zVziwn.js} +3 -3
- package/dist/dist-SNAyAOJ-.js +6 -0
- package/dist/{dist-Bar1QnNM.js → dist-_4cudra1.js} +3 -3
- package/dist/dist-cbW5xJNV.js +6 -0
- package/dist/dist-h8eGLSbK.js +10 -0
- package/dist/{dist-BqgkUnEN.js → dist-xLN9qCAp.js} +3 -3
- package/dist/{dockerfile-Dum_1b-5.js → dockerfile-Cmlcqk35.js} +1 -1
- package/dist/dtd-RplB6hDg.js +4 -0
- package/dist/dylan-BX8KJufP.js +4 -0
- package/dist/ecl-CWtLaNMH.js +4 -0
- package/dist/eiffel-C-mlZPMn.js +4 -0
- package/dist/elm-CWp06vcb.js +4 -0
- package/dist/{erDiagram-AWTI2OKA-ZTIl9iQO.js → erDiagram-AWTI2OKA-BU7Qig7n.js} +32 -31
- package/dist/erlang-pfp22AZM.js +4 -0
- package/dist/error-banner-BAWlXn49.js +1012 -0
- package/dist/{esm-d0g2RsOH.js → esm-AtKNNGYO.js} +7 -9
- package/dist/esm-B2pocBPL.js +26 -0
- package/dist/{esm-DxFkg7a6.js → esm-Oo8OvZ6m.js} +1529 -1493
- package/dist/{esm-1_Mp6VD2.js → esm-YVnxJqkD.js} +340 -411
- package/dist/{factor-CdgiDGiu.js → factor-BZnBK3CG.js} +1 -1
- package/dist/factor-CEn53jua.js +5 -0
- package/dist/{flowDiagram-PVAE7QVJ-DsbofOzu.js → flowDiagram-PVAE7QVJ-JKJebWeY.js} +41 -40
- package/dist/{formats-ChrNdVdJ.js → formats-DOEuF6TR.js} +15 -19
- package/dist/forth-CL8vu_y8.js +4 -0
- package/dist/fortran-DsmXkYtE.js +4 -0
- package/dist/{ganttDiagram-OWAHRB6G-FnCH1Yj3.js → ganttDiagram-OWAHRB6G-BvWRfg05.js} +17 -16
- package/dist/gas-mYt9Rtlx.js +4 -0
- package/dist/gherkin-DHNCKBNj.js +4 -0
- package/dist/gitGraph-ZV4HHKMB-Cpd6k0O8.js +21 -0
- package/dist/{gitGraphDiagram-NY62KEGX-B0wvMNqU.js → gitGraphDiagram-NY62KEGX-VEJJBf5L.js} +38 -40
- package/dist/{glide-data-editor-D_kEsT07.js → glide-data-editor-Bne10icG.js} +1703 -1771
- package/dist/{graphlib-BGmr7CYF.js → graphlib-DRS8CrjA.js} +5 -5
- package/dist/groovy-DzRtOS5a.js +4 -0
- package/dist/haskell-Bl9iT_Mp.js +4 -0
- package/dist/haxe-DqA0ED6k.js +5 -0
- package/dist/{hotkeys-yFrUwyJK.js → hotkeys-DVxFjl2s.js} +16 -7
- package/dist/idl-WU2hil4i.js +4 -0
- package/dist/info-63CPKGFF-CG-xzUJo.js +21 -0
- package/dist/infoDiagram-STP46IZ2-zoRBGoup.js +45 -0
- package/dist/invariant-D3JoRb4I.js +6 -0
- package/dist/{isArrayLikeObject-DiDsNamC.js → isArrayLikeObject-DU5MCuQM.js} +3 -5
- package/dist/{isEmpty-BBG-u1GM.js → isEmpty-Do_v2sls.js} +2 -2
- package/dist/{isSymbol-BxF-_8BA.js → isSymbol-CtkA8Y0a.js} +1 -1
- package/dist/{javascript-Dfq1qI35.js → javascript-DGukg1sB.js} +2 -2
- package/dist/javascript-QY2BGJeV.js +5 -0
- package/dist/jinja2-Czleq7Sk.js +4 -0
- package/dist/{journeyDiagram-BIP6EPQ6-B3PotfAW.js → journeyDiagram-BIP6EPQ6-CsgEQgxh.js} +28 -28
- package/dist/julia-Dru3Qi0y.js +4 -0
- package/dist/{kanban-definition-6OIFK2YF-BTrQZ3LN.js → kanban-definition-6OIFK2YF-Bi8Ete2P.js} +42 -41
- package/dist/{katex-dN__NFdn.js → katex-C-g3rKKt.js} +1 -1
- package/dist/{katex-BE4xflfm.js → katex-DgfMWJY9.js} +149 -173
- package/dist/{label-BinTsX-u.js → label-BiVIU_wb.js} +252 -253
- package/dist/{line-C6-zz71o.js → line-B7-GoF1m.js} +3 -3
- package/dist/{linear-DyTdUIqX.js → linear-DeGGALuc.js} +4 -4
- package/dist/livescript-Dxqi_HLT.js +4 -0
- package/dist/{loader-Dijti3y4.js → loader-BBqwtZWj.js} +19 -26
- package/dist/lua-ByH1cUQZ.js +4 -0
- package/dist/main.js +17025 -17039
- package/dist/{marked.esm-3RjvXPoO.js → marked.esm-DkVwEwtO.js} +5 -5
- package/dist/mathematica-CWJIFuES.js +4 -0
- package/dist/mbox-qhPIGaUI.js +4 -0
- package/dist/{memoize-Dq87l1O_.js → memoize-D7eDkf3R.js} +1 -1
- package/dist/{merge-BPDCIm8P.js → merge-C_6cGM6o.js} +1 -1
- package/dist/{mermaid-MWiyXDcI.js → mermaid-BmtvsZ2m.js} +323 -339
- package/dist/{mermaid-parser.core-CSFx6MQ7.js → mermaid-parser.core-geyG_6o0.js} +8 -8
- package/dist/{mhchem-DZ68WS0G.js → mhchem-OhAaJ0fA.js} +1 -1
- package/dist/{min-BzhKOmZo.js → min-Dwa_NbP6.js} +7 -7
- package/dist/{mindmap-definition-Q6HEUPPD-9hhnrO1k.js → mindmap-definition-Q6HEUPPD-B-wmX1oG.js} +29 -28
- package/dist/mirc-yYcXhXBY.js +4 -0
- package/dist/mllike-BfT_Nl9x.js +6 -0
- package/dist/modelica-lVDtz1Rm.js +4 -0
- package/dist/mscgen-DvwdD1QJ.js +6 -0
- package/dist/mumps-BiY3GwKd.js +4 -0
- package/dist/{node-sql-parser-13oju30e.js → node-sql-parser-CoPWN4hn.js} +14343 -14351
- package/dist/{now-DVBcRCoE.js → now-DumxsrcX.js} +1 -1
- package/dist/{nsis-BW6_XagK.js → nsis-D4bLR_Y1.js} +1 -1
- package/dist/nsis-Dk18Sq_4.js +5 -0
- package/dist/ntriples-Cj-8VqKF.js +4 -0
- package/dist/{number-overlay-editor-D1YdiOrm.js → number-overlay-editor-D6r-48ka.js} +18 -24
- package/dist/octave-BgFAaYjU.js +4 -0
- package/dist/once-3OSMKEsL.js +74 -0
- package/dist/{ordinal-BXk5xAj2.js → ordinal-DpEbSVPc.js} +1 -1
- package/dist/oz-IsEG1I1m.js +4 -0
- package/dist/packet-HUATNLJX-Cafuo3IG.js +21 -0
- package/dist/pascal-BVf7FtIE.js +4 -0
- package/dist/perl-BM0-y4mZ.js +4 -0
- package/dist/pie-WTHONI2E-BE0pHBwB.js +21 -0
- package/dist/{pieDiagram-ADFJNKIX-CSBC0ZgF.js → pieDiagram-ADFJNKIX-C3GvPNUL.js} +40 -39
- package/dist/pig-CLBjzQmc.js +4 -0
- package/dist/powershell-B_qvE33J.js +4 -0
- package/dist/powershell-Dr7WZMDU.js +236 -0
- package/dist/{precisionRound-DbP73hkf.js → precisionRound-7YYJq2rW.js} +1 -1
- package/dist/properties-CUTpsH2y.js +4 -0
- package/dist/protobuf-DqCP8a-0.js +4 -0
- package/dist/pug-BvexKkw4.js +5 -0
- package/dist/{pug-Bmups_z0.js → pug-Dv3gE36O.js} +1 -1
- package/dist/puppet-CoIi0R3f.js +4 -0
- package/dist/purify.es-CrfFzTyi.js +536 -0
- package/dist/python-C-11-YMh.js +5 -0
- package/dist/{q-BzWcnVri.js → q-BzRpKgfd.js} +3 -2
- package/dist/q-CCVgEip7.js +4 -0
- package/dist/{quadrantDiagram-LMRXKWRM-h7nHf8xG.js → quadrantDiagram-LMRXKWRM-DPXwGNVa.js} +11 -10
- package/dist/r-CIdR0Sfs.js +4 -0
- package/dist/radar-NJJJXTRR-0adgjw0u.js +21 -0
- package/dist/{range-CgK0-PEw.js → range-CIbLpsrs.js} +3 -3
- package/dist/{react-plotly-BZakcxdv.js → react-plotly-DYyvxcRD.js} +4365 -4706
- package/dist/{requirementDiagram-4UW4RH46-BGEurQYq.js → requirementDiagram-4UW4RH46-Cs3Hqnm0.js} +24 -23
- package/dist/rpm-Dwvm039g.js +5 -0
- package/dist/ruby-DpTnO5gb.js +4 -0
- package/dist/{sankeyDiagram-GR3RE2ED-CxeJ_jfl.js → sankeyDiagram-GR3RE2ED-Be1d_Xf7.js} +7 -6
- package/dist/sas-CK9boxgv.js +4 -0
- package/dist/scheme-Y1aYL-Qq.js +4 -0
- package/dist/{sequenceDiagram-C3RYC4MD-CbFxwyr_.js → sequenceDiagram-C3RYC4MD-lbtovKTa.js} +24 -33
- package/dist/shell-D3eXGsHd.js +4 -0
- package/dist/sieve-BdwSFdWJ.js +4 -0
- package/dist/{simple-mode-Cgyya8F-.js → simple-mode-BMmwP_vI.js} +1 -1
- package/dist/{slides-component-BEyG25AH.js → slides-component-BoeQU7-s.js} +1012 -1033
- package/dist/smalltalk-BTYJquCm.js +4 -0
- package/dist/sparql-CYF0g4Cc.js +4 -0
- package/dist/{src-BNNJRxz3.js → src-BTqT1mA1.js} +6 -6
- package/dist/{stateDiagram-KXAO66HF-A61bMf29.js → stateDiagram-KXAO66HF-BmbR-Rol.js} +48 -49
- package/dist/stateDiagram-v2-UMBNRL4Z-DdJ7qVWc.js +39 -0
- package/dist/{step-IHYrujTc.js → step-2RJrMSSG.js} +1 -1
- package/dist/stex-CyWhoWHt.js +5 -0
- package/dist/style.css +1 -1
- package/dist/stylus-BBiKaI2h.js +4 -0
- package/dist/swift-COb15qFR.js +4 -0
- package/dist/tcl-Jik1LXu9.js +4 -0
- package/dist/textile-BFHPD3wr.js +4 -0
- package/dist/{time-D3tzCqJ6.js → time-BB30r1tK.js} +4 -4
- package/dist/{timeline-definition-XQNQX7LJ-BwdsB7CR.js → timeline-definition-XQNQX7LJ-1mv5caPW.js} +17 -17
- package/dist/{timer-D3Zlu9ow.js → timer-CcUhugb0.js} +2 -2
- package/dist/{toNumber-efKT08hh.js → toNumber-D3Ystr3y.js} +2 -2
- package/dist/{toString-BvCd3yJc.js → toString-CbuxCRDG.js} +2 -2
- package/dist/{toml-CIUkU1CP.js → toml-BqNUJWRI.js} +6 -2
- package/dist/toml-Brp9fBXs.js +4 -0
- package/dist/treemap-75Q7IDZK-CyBT8_Wh.js +21 -0
- package/dist/troff-CcZRW4vg.js +4 -0
- package/dist/ttcn-Bz_6ifRd.js +4 -0
- package/dist/ttcn-cfg-v-yi2rKc.js +4 -0
- package/dist/turtle-CDOsZYhB.js +4 -0
- package/dist/{types-1X1uZB4y.js → types-BPohCsA7.js} +198 -278
- package/dist/{useAsyncData-C4IqQK0g.js → useAsyncData-DHBqeb9a.js} +3 -2
- package/dist/{useDateFormatter-BCsBqetx.js → useDateFormatter-BkbjKw83.js} +9 -9
- package/dist/useIframeCapabilities-BEvvwlwt.js +46 -0
- package/dist/{useTheme-C2pgJzDH.js → useTheme-CnMbo-iq.js} +32 -29
- package/dist/vb-CL7fRwRw.js +4 -0
- package/dist/vbscript-CR2xfxpw.js +4 -0
- package/dist/{vega-component-Cv4J8CHz.js → vega-component-BfFcXZxw.js} +40 -39
- package/dist/{vega-loader.browser.module-Bi3ttvdj.js → vega-loader.browser.module-CFMtdrNw.js} +4 -5
- package/dist/velocity-CfuZoxPt.js +4 -0
- package/dist/verilog-CySTkzw_.js +4 -0
- package/dist/vhdl-Dvcd8KHW.js +4 -0
- package/dist/webidl-tbJt7sKk.js +4 -0
- package/dist/xquery-DJQVztyc.js +4 -0
- package/dist/{xychartDiagram-6GGTOJPD-BJRRi5HC.js → xychartDiagram-6GGTOJPD-njc-naaw.js} +24 -24
- package/dist/yacas-BbgBReEH.js +4 -0
- package/dist/z80-DPyb8VGz.js +4 -0
- package/dist/{zod-UPQf9SGn.js → zod-mAEs2ITo.js} +71 -81
- package/package.json +21 -17
- package/src/__mocks__/requests.ts +2 -0
- package/src/components/app-config/ai-config.tsx +1 -3
- package/src/components/app-config/common.tsx +14 -0
- package/src/components/app-config/data-form.tsx +282 -0
- package/src/components/app-config/user-config-form.tsx +36 -219
- package/src/components/chat/acp/__tests__/state.test.ts +75 -2
- package/src/components/chat/acp/agent-panel.tsx +143 -89
- package/src/components/chat/acp/blocks.tsx +77 -34
- package/src/components/chat/acp/state.ts +5 -1
- package/src/components/chat/acp/thread.tsx +12 -1
- package/src/components/chat/chat-panel.tsx +38 -5
- package/src/components/chat/chat-utils.ts +16 -5
- package/src/components/chat/markdown-renderer.css +1 -0
- package/src/components/chat/tool-call-accordion.tsx +7 -1
- package/src/components/data-table/__tests__/header-items.test.tsx +117 -0
- package/src/components/data-table/charts/__tests__/storage.test.ts +12 -6
- package/src/components/data-table/charts/charts.tsx +8 -2
- package/src/components/data-table/charts/storage.ts +1 -1
- package/src/components/data-table/column-header.tsx +4 -2
- package/src/components/data-table/column-wrapping/feature.ts +2 -0
- package/src/components/data-table/columns.tsx +12 -3
- package/src/components/data-table/data-table.tsx +7 -2
- package/src/components/data-table/header-items.tsx +63 -10
- package/src/components/data-table/renderers.tsx +3 -2
- package/src/components/dependency-graph/custom-node.tsx +11 -11
- package/src/components/dependency-graph/elements.ts +9 -4
- package/src/components/dependency-graph/panels.tsx +6 -4
- package/src/components/editor/Output.tsx +34 -25
- package/src/components/editor/actions/useCellActionButton.tsx +20 -4
- package/src/components/editor/ai/add-cell-with-ai.tsx +17 -3
- package/src/components/editor/ai/ai-completion-editor.tsx +203 -26
- package/src/components/editor/ai/completion-handlers.tsx +126 -23
- package/src/components/editor/cell/StagedAICell.tsx +81 -12
- package/src/components/editor/cell/code/cell-editor.tsx +6 -2
- package/src/components/editor/cell/useRunCells.ts +62 -30
- package/src/components/editor/chrome/panels/cache-panel.tsx +216 -0
- package/src/components/editor/chrome/panels/empty-state.tsx +3 -1
- package/src/components/editor/chrome/panels/packages-panel.tsx +1 -1
- package/src/components/editor/chrome/state.ts +1 -1
- package/src/components/editor/chrome/types.ts +66 -22
- package/src/components/editor/chrome/wrapper/app-chrome.tsx +4 -0
- package/src/components/editor/chrome/wrapper/minimap.tsx +2 -0
- package/src/components/editor/chrome/wrapper/pending-ai-cells.tsx +108 -0
- package/src/components/editor/chrome/wrapper/sidebar.tsx +1 -1
- package/src/components/editor/code/readonly-diff.tsx +49 -0
- package/src/components/editor/columns/storage.ts +1 -1
- package/src/components/editor/errors/auto-fix.tsx +138 -32
- package/src/components/editor/errors/fix-mode.ts +20 -0
- package/src/components/editor/inputs/Inputs.styles.ts +1 -1
- package/src/components/editor/navigation/__tests__/clipboard.test.ts +0 -5
- package/src/components/editor/navigation/clipboard.ts +2 -1
- package/src/components/editor/notebook-cell.tsx +20 -7
- package/src/components/editor/output/CalloutOutput.tsx +1 -1
- package/src/components/editor/output/ConsoleOutput.tsx +27 -33
- package/src/components/editor/output/HtmlOutput.tsx +3 -2
- package/src/components/editor/output/JsonOutput.tsx +15 -1
- package/src/components/editor/output/MarimoTracebackOutput.tsx +69 -52
- package/src/components/editor/output/__tests__/HtmlOutput.test.tsx +134 -0
- package/src/components/editor/output/__tests__/json-output.test.ts +43 -0
- package/src/components/editor/output/__tests__/traceback.test.tsx +8 -1
- package/src/components/editor/output/useWrapText.ts +6 -1
- package/src/components/editor/package-alert.tsx +37 -32
- package/src/components/editor/renderers/vertical-layout/vertical-layout-wrapper.tsx +5 -2
- package/src/components/forms/__tests__/form-utils.test.ts +4 -2
- package/src/components/home/state.ts +3 -2
- package/src/components/icons/copy-icon.tsx +11 -5
- package/src/components/scratchpad/scratchpad-history.ts +6 -1
- package/src/components/shortcuts/renderShortcut.tsx +3 -1
- package/src/components/slides/slides-component.tsx +25 -21
- package/src/components/ui/button.tsx +2 -0
- package/src/components/ui/confirmation-button.tsx +85 -0
- package/src/components/ui/context-menu.tsx +14 -4
- package/src/components/ui/dropdown-menu.tsx +14 -4
- package/src/components/ui/fullscreen.tsx +115 -1
- package/src/components/ui/popover.tsx +11 -3
- package/src/components/ui/range-slider.tsx +1 -1
- package/src/components/ui/select.tsx +7 -3
- package/src/components/ui/slider.tsx +1 -1
- package/src/components/ui/switch.tsx +2 -0
- package/src/components/ui/tooltip.tsx +10 -3
- package/src/core/ai/__tests__/staged-cells.test.ts +189 -64
- package/src/core/ai/config.ts +6 -2
- package/src/core/ai/context/providers/__tests__/__snapshots__/cell-output.test.ts.snap +17 -0
- package/src/core/ai/context/providers/__tests__/cell-output.test.ts +194 -10
- package/src/core/ai/context/providers/__tests__/datasource.test.ts +9 -1
- package/src/core/ai/context/providers/cell-output.ts +170 -112
- package/src/core/ai/context/providers/datasource.ts +25 -1
- package/src/core/ai/context/providers/tables.ts +2 -2
- package/src/core/ai/staged-cells.ts +32 -16
- package/src/core/ai/state.ts +8 -4
- package/src/core/ai/tools/__tests__/edit-notebook-tool.test.ts +556 -0
- package/src/core/ai/tools/__tests__/registry.test.ts +41 -8
- package/src/core/ai/tools/__tests__/run-cells-tool.test.ts +450 -0
- package/src/core/ai/tools/__tests__/utils.test.ts +87 -0
- package/src/core/ai/tools/base.ts +109 -6
- package/src/core/ai/tools/edit-notebook-tool.ts +239 -0
- package/src/core/ai/tools/registry.ts +48 -15
- package/src/core/ai/tools/run-cells-tool.ts +233 -0
- package/src/core/ai/tools/sample-tool.ts +53 -15
- package/src/core/ai/tools/utils.ts +23 -0
- package/src/core/cache/requests.ts +5 -0
- package/src/core/cells/__tests__/cells.test.ts +19 -1
- package/src/core/cells/__tests__/session.test.ts +20 -3
- package/src/core/cells/cells.ts +13 -8
- package/src/core/cells/session.ts +1 -1
- package/src/core/codemirror/__tests__/__snapshots__/setup.test.ts.snap +2 -0
- package/src/core/codemirror/__tests__/replace-editor-content.test.ts +336 -0
- package/src/core/codemirror/ai/resources.ts +13 -2
- package/src/core/codemirror/copilot/state.ts +4 -2
- package/src/core/codemirror/find-replace/navigate.ts +2 -2
- package/src/core/codemirror/format.ts +2 -9
- package/src/core/codemirror/language/__tests__/extension.test.ts +10 -2
- package/src/core/codemirror/language/__tests__/sql.test.ts +24 -6
- package/src/core/codemirror/language/languages/markdown.ts +16 -153
- package/src/core/codemirror/language/languages/python.ts +13 -10
- package/src/core/codemirror/language/languages/sql/sql-mode.ts +6 -1
- package/src/core/codemirror/language/languages/sql/sql.ts +43 -306
- package/src/core/codemirror/language/panel/markdown.tsx +2 -1
- package/src/core/codemirror/language/panel/panel.tsx +2 -7
- package/src/core/codemirror/language/utils.ts +3 -8
- package/src/core/codemirror/lsp/__tests__/notebook-lsp.test.ts +21 -14
- package/src/core/codemirror/lsp/federated-lsp.ts +20 -9
- package/src/core/codemirror/lsp/notebook-lsp.ts +35 -29
- package/src/core/codemirror/lsp/transports.ts +7 -13
- package/src/core/codemirror/lsp/types.ts +0 -13
- package/src/core/codemirror/replace-editor-content.ts +87 -0
- package/src/core/config/__tests__/config-schema.test.ts +3 -0
- package/src/core/config/config-schema.ts +12 -1
- package/src/core/config/feature-flag.tsx +2 -4
- package/src/core/errors/__tests__/errors.test.ts +1 -0
- package/src/core/errors/errors.ts +20 -6
- package/src/core/hotkeys/hotkeys.ts +12 -0
- package/src/core/islands/bridge.ts +2 -0
- package/src/core/islands/main.ts +4 -0
- package/src/core/kernel/messages.ts +1 -0
- package/src/core/lsp/__tests__/transport.test.ts +233 -0
- package/src/core/lsp/transport.ts +139 -0
- package/src/core/network/requests-network.ts +14 -0
- package/src/core/network/requests-static.ts +2 -0
- package/src/core/network/requests-toasting.ts +2 -0
- package/src/core/network/types.ts +5 -0
- package/src/core/rtc/state.ts +6 -1
- package/src/core/saving/save-component.tsx +43 -36
- package/src/core/vscode/is-in-vscode.ts +9 -0
- package/src/core/wasm/bridge.ts +2 -0
- package/src/core/wasm/store.ts +1 -1
- package/src/core/websocket/useMarimoWebSocket.tsx +8 -0
- package/src/css/app/Cell.css +31 -0
- package/src/css/app/codemirror-completions.css +1 -1
- package/src/css/globals.css +5 -0
- package/src/custom.d.ts +2 -0
- package/src/hooks/useIframeCapabilities.ts +14 -0
- package/src/hooks/useLocalStorage.ts +1 -1
- package/src/plugins/core/RenderHTML.tsx +65 -5
- package/src/plugins/core/__test__/RenderHTML.test.ts +25 -23
- package/src/plugins/core/__test__/renderHTML-sanitization.test.tsx +131 -0
- package/src/plugins/core/__test__/sanitize.test.ts +465 -0
- package/src/plugins/core/registerReactComponent.tsx +19 -2
- package/src/plugins/core/sanitize.ts +76 -0
- package/src/plugins/impl/DataTablePlugin.tsx +20 -19
- package/src/plugins/impl/FileBrowserPlugin.tsx +1 -3
- package/src/plugins/impl/FileUploadPlugin.tsx +1 -3
- package/src/plugins/impl/__tests__/DateTimePickerPlugin.test.tsx +40 -1
- package/src/plugins/impl/__tests__/DropdownPlugin.test.tsx +6 -0
- package/src/plugins/impl/__tests__/MultiSelectPlugin.test.ts +8 -1
- package/src/plugins/impl/__tests__/NumberPlugin.test.tsx +3 -0
- package/src/plugins/impl/chat/ChatPlugin.tsx +1 -1
- package/src/plugins/impl/chat/chat-ui.tsx +17 -2
- package/src/plugins/impl/chat/types.ts +1 -1
- package/src/plugins/impl/data-frames/DataFramePlugin.tsx +7 -2
- package/src/plugins/impl/plotly/__tests__/parse-from-template.test.ts +17 -0
- package/src/plugins/impl/plotly/parse-from-template.ts +2 -1
- package/src/utils/__tests__/arrays.test.ts +42 -0
- package/src/utils/__tests__/capabilities.test.ts +453 -0
- package/src/utils/__tests__/formatting.test.ts +107 -0
- package/src/utils/__tests__/json-parser.test.ts +13 -0
- package/src/utils/__tests__/local-storage.test.ts +1 -1
- package/src/utils/__tests__/storage.test.ts +21 -21
- package/src/utils/arrays.ts +25 -0
- package/src/utils/capabilities.ts +114 -0
- package/src/utils/copy.ts +6 -0
- package/src/utils/formatting.ts +51 -0
- package/src/utils/json/json-parser.ts +28 -3
- package/src/utils/numbers.ts +2 -2
- package/src/utils/{storage.ts → storage/jotai.ts} +16 -4
- package/src/utils/storage/storage.ts +57 -0
- package/src/utils/{localStorage.ts → storage/typed.ts} +22 -12
- package/dist/any-language-editor-CVFQlioK.js +0 -156
- package/dist/apl-ChlaBfxB.js +0 -4
- package/dist/architecture-O4VJ6CD3-BVeaxUcM.js +0 -21
- package/dist/asciiarmor-CcJmm3l_.js +0 -4
- package/dist/asn1-ThRYxoBE.js +0 -4
- package/dist/assets/__vite-browser-external-Dv_SHu1h.js +0 -1
- package/dist/assets/worker-DVOR9oZG.js +0 -54
- package/dist/brainfuck-CEM0JgDn.js +0 -4
- package/dist/chunk-EXTU4WIE-DECT9AAK.js +0 -14
- package/dist/chunk-S3R3BYOJ-DMQ1yeyq.js +0 -386
- package/dist/classDiagram-KNZD7YFC-BG53O6Jt.js +0 -39
- package/dist/classDiagram-v2-RKCZMP56-BmKILsGU.js +0 -39
- package/dist/clojure-B7RHyE9t.js +0 -4
- package/dist/cmake-TeTMP4I5.js +0 -4
- package/dist/cobol-DI-mxUER.js +0 -4
- package/dist/coffeescript-DHUFLqWp.js +0 -4
- package/dist/commonlisp-SLiUrh1m.js +0 -4
- package/dist/crystal-B4fY1ZfJ.js +0 -4
- package/dist/css-Bdoq3TzK.js +0 -5
- package/dist/cypher-CBU182fp.js +0 -4
- package/dist/d-D8myDZeH.js +0 -4
- package/dist/data-grid-overlay-editor-qNmJk2x0.js +0 -135
- package/dist/diagram-QEK2KX5R-fu8Noi3H.js +0 -245
- package/dist/diff-DJF_UB7H.js +0 -4
- package/dist/dist-52-_pKoy.js +0 -6
- package/dist/dist-6DOMStFn.js +0 -6
- package/dist/dist-B334aW7p.js +0 -10
- package/dist/dist-BOI9lUz-.js +0 -12
- package/dist/dist-C06uhBzF.js +0 -6
- package/dist/dist-CGkpguCB.js +0 -6
- package/dist/dist-CrApzUED.js +0 -6
- package/dist/dist-Dp2GLdCl.js +0 -14
- package/dist/dist-WHFsbMDr.js +0 -6
- package/dist/dist-hyKcTPG9.js +0 -10
- package/dist/dtd-DY8q65lC.js +0 -4
- package/dist/dylan-CBLcjWCi.js +0 -4
- package/dist/ecl-BSXPNfOw.js +0 -4
- package/dist/eiffel-BJf0PQX-.js +0 -4
- package/dist/elm-DWQwPCZS.js +0 -4
- package/dist/erlang-BWBaGZ5e.js +0 -4
- package/dist/error-banner-OQIGTqFR.js +0 -1012
- package/dist/esm-BO9n_s6u.js +0 -26
- package/dist/factor-DT1-MBPl.js +0 -5
- package/dist/forth-D9GDt3FB.js +0 -4
- package/dist/fortran-DHkRhDWw.js +0 -4
- package/dist/gas-7lQEOM0H.js +0 -4
- package/dist/gherkin-BLLyroYi.js +0 -4
- package/dist/gitGraph-ZV4HHKMB-z2v_cInC.js +0 -21
- package/dist/groovy-C-wabwj0.js +0 -4
- package/dist/haskell-DaxVQ_d1.js +0 -4
- package/dist/haxe-C2yLoC7h.js +0 -5
- package/dist/idl-DQBP8i7k.js +0 -4
- package/dist/info-63CPKGFF-GS4w6pCB.js +0 -21
- package/dist/infoDiagram-STP46IZ2-DE9YYPFg.js +0 -44
- package/dist/javascript-DRwFV9r5.js +0 -5
- package/dist/jinja2-CNoIpVmN.js +0 -4
- package/dist/julia-DXDf-GhP.js +0 -4
- package/dist/livescript-S2uhJQx7.js +0 -4
- package/dist/lua-Bvgs0y2G.js +0 -4
- package/dist/mathematica-D2zqfwIg.js +0 -4
- package/dist/mbox-SBcPaDuZ.js +0 -4
- package/dist/mirc-hkQc7sVF.js +0 -4
- package/dist/mllike-DRWPBlr9.js +0 -6
- package/dist/modelica-CO2ROGlP.js +0 -4
- package/dist/mscgen-BpX61bO6.js +0 -6
- package/dist/mumps-BCnFeIn6.js +0 -4
- package/dist/nsis-BaTOxlD1.js +0 -5
- package/dist/ntriples-zEo5BWjr.js +0 -4
- package/dist/octave-BE0RnCM9.js +0 -4
- package/dist/oz-C4_2Ttul.js +0 -4
- package/dist/packet-HUATNLJX-CjHqJIqk.js +0 -21
- package/dist/pascal-Q3jJucpw.js +0 -4
- package/dist/perl-DkXZIWHF.js +0 -4
- package/dist/pie-WTHONI2E-D67gLWtR.js +0 -21
- package/dist/pig-DCgEHdsu.js +0 -4
- package/dist/powershell-3rK_nRRJ.js +0 -236
- package/dist/powershell-Eo2-7MoM.js +0 -4
- package/dist/properties-C0IOX8WR.js +0 -4
- package/dist/protobuf--lGQUSRO.js +0 -4
- package/dist/pug-Cf8AQHMJ.js +0 -5
- package/dist/puppet-D7Z3dTJn.js +0 -4
- package/dist/python-FHIx_i8Y.js +0 -5
- package/dist/q-B7UA1feM.js +0 -4
- package/dist/r-Cc9R2A7N.js +0 -4
- package/dist/radar-NJJJXTRR-C-AZP_Te.js +0 -21
- package/dist/rpm-vhJNlrQ6.js +0 -5
- package/dist/ruby-CVluPY0M.js +0 -4
- package/dist/sas-A8DL8oy3.js +0 -4
- package/dist/scheme-6xHHcSXC.js +0 -4
- package/dist/shell-DHN-e5rf.js +0 -4
- package/dist/sieve-BuQwLY02.js +0 -4
- package/dist/smalltalk-BA4HPg2H.js +0 -4
- package/dist/sparql-Bf4yCuy3.js +0 -4
- package/dist/stateDiagram-v2-UMBNRL4Z-C_0FUzzk.js +0 -38
- package/dist/stex-D-I1cYeE.js +0 -5
- package/dist/stylus-BMeped2l.js +0 -4
- package/dist/swift-lwEdlZoC.js +0 -4
- package/dist/tcl-B03ipeqv.js +0 -4
- package/dist/textile-Cy55fYGC.js +0 -4
- package/dist/toml-BLgrVtfu.js +0 -4
- package/dist/treemap-75Q7IDZK-DTvwfpWt.js +0 -21
- package/dist/troff-g6EjN2O2.js +0 -4
- package/dist/ttcn-Dzvba8jK.js +0 -4
- package/dist/ttcn-cfg-CadG0p1K.js +0 -4
- package/dist/turtle-DkXAMWo9.js +0 -4
- package/dist/vb-C5dCiel8.js +0 -4
- package/dist/vbscript-I4bDEQln.js +0 -4
- package/dist/velocity-mt0fDwFH.js +0 -4
- package/dist/verilog-Dxq3KJkc.js +0 -4
- package/dist/vhdl-Km0QUlV-.js +0 -4
- package/dist/webidl-B3lJ2MRL.js +0 -4
- package/dist/xquery-CcIxNPEe.js +0 -4
- package/dist/yacas-oMa-f-tN.js +0 -4
- package/dist/z80-D03Nvn6l.js +0 -4
- package/src/core/codemirror/language/__tests__/ast.test.ts +0 -124
- package/src/core/codemirror/language/utils/ast.ts +0 -84
- package/src/core/codemirror/language/utils/quotes.ts +0 -18
- /package/dist/{_arrayReduce-CVwxyrBP.js → _arrayReduce-Cd9xQjbl.js} +0 -0
- /package/dist/{_baseSlice-OgpvpOOJ.js → _baseSlice-CE9WsQZm.js} +0 -0
- /package/dist/{_hasUnicode-BgIggCqE.js → _hasUnicode-DkEebvtD.js} +0 -0
- /package/dist/{apl-DZqo8Elt.js → apl-aGhy11IM.js} +0 -0
- /package/dist/{array-aAxy08hN.js → array-DYSXIreg.js} +0 -0
- /package/dist/{asciiarmor-DTzHAIeX.js → asciiarmor-DJKJ3Gkn.js} +0 -0
- /package/dist/{asn1-DrAXKsZH.js → asn1-C6f5IeNs.js} +0 -0
- /package/dist/{asterisk-oF4U3h48.js → asterisk-DB1poX9_.js} +0 -0
- /package/dist/{brainfuck-BYgLey30.js → brainfuck-Ch9vjun0.js} +0 -0
- /package/dist/{chunk-57QY23SG-0TxCfmy_.js → chunk-57QY23SG-BpXU7ph4.js} +0 -0
- /package/dist/{clojure-Bs2M3OUY.js → clojure-B_lpr3zt.js} +0 -0
- /package/dist/{cmake-DpI8vxJN.js → cmake-DaocNF4I.js} +0 -0
- /package/dist/{cobol-BQyrWo72.js → cobol-suTPtt7c.js} +0 -0
- /package/dist/{coffeescript-9ke9UHmw.js → coffeescript-CPLIvtqJ.js} +0 -0
- /package/dist/{colors-Cr_mZ2aH.js → colors-BXlG8Lmz.js} +0 -0
- /package/dist/{common-keywords-BzgeAvH1.js → common-keywords-Bhll7O3b.js} +0 -0
- /package/dist/{commonlisp-DghUdrUH.js → commonlisp-BqM3qFK7.js} +0 -0
- /package/dist/{crystal-DEf_SInh.js → crystal-AsSFu4ke.js} +0 -0
- /package/dist/{css-BzTU9lNO.js → css-Df7Sdeyh.js} +0 -0
- /package/dist/{cypher-a2v0c11S.js → cypher-CaVKL6Gu.js} +0 -0
- /package/dist/{d-SAswny-M.js → d-DCGWK7NQ.js} +0 -0
- /package/dist/{defaultLocale-BAgEOGks.js → defaultLocale-CYgZlqDF.js} +0 -0
- /package/dist/{defaultLocale-471SYAPk.js → defaultLocale-Cto8YOmX.js} +0 -0
- /package/dist/{diff-OJ-xLXcG.js → diff-CsxOM4Tr.js} +0 -0
- /package/dist/{dist-CK8Gj3GX.js → dist-C76MUPD3.js} +0 -0
- /package/dist/{dtd-BsUf-rer.js → dtd-Dwr0Jmks.js} +0 -0
- /package/dist/{duckdb-keywords-B0NOra5o.js → duckdb-keywords-7wAWf848.js} +0 -0
- /package/dist/{dylan-C0ZYngjn.js → dylan-A7-ZBSey.js} +0 -0
- /package/dist/{ebnf-DF1xx0b_.js → ebnf-9_SaGDUz.js} +0 -0
- /package/dist/{ecl-Bsuvoouq.js → ecl-BzJVIQDc.js} +0 -0
- /package/dist/{eiffel-DgfSpLi-.js → eiffel-CO9eC_Op.js} +0 -0
- /package/dist/{elm-GNxDj-5E.js → elm-CVAWj8SB.js} +0 -0
- /package/dist/{emotion-is-prop-valid.esm-BHMWayAG.js → emotion-is-prop-valid.esm-C3Yi5GQt.js} +0 -0
- /package/dist/{erlang-Ds3uY1kL.js → erlang-DWbZP546.js} +0 -0
- /package/dist/{fcl-CqBgSioc.js → fcl-CM9t2iay.js} +0 -0
- /package/dist/{forth-JCaLysGk.js → forth-BTYqUuu3.js} +0 -0
- /package/dist/{fortran-Dc2AoKAl.js → fortran-DgAjHcCq.js} +0 -0
- /package/dist/{gas-Q4Uz82YW.js → gas-BjDSWPZd.js} +0 -0
- /package/dist/{gherkin-Dpxe49sQ.js → gherkin-ClRqqpKv.js} +0 -0
- /package/dist/{groovy-D8mTRCu6.js → groovy-BzNjnc8x.js} +0 -0
- /package/dist/{haskell-2_8cC4wY.js → haskell-DLdk34Jq.js} +0 -0
- /package/dist/{haxe-Bl9zkZlz.js → haxe-l6gaY_IS.js} +0 -0
- /package/dist/{http-DKCqY6yS.js → http-6Qg7z_h2.js} +0 -0
- /package/dist/{idl-Dn-HNfGW.js → idl-hlWT4D26.js} +0 -0
- /package/dist/{init-D6eDd7H0.js → init-tZ42Torz.js} +0 -0
- /package/dist/{jinja2-JjFiAGKk.js → jinja2-DI5k_Er3.js} +0 -0
- /package/dist/{julia-R5wne8eu.js → julia-BvDZDiIT.js} +0 -0
- /package/dist/{livescript-DSwokrYj.js → livescript-2YMQfkfI.js} +0 -0
- /package/dist/{lua-CgXfrp2-.js → lua-DIUrQRfA.js} +0 -0
- /package/dist/{main-Czi9-LVy.js → main-BMTpe7M0.js} +0 -0
- /package/dist/{math-C7wLpe9K.js → math-qsHyz2Eo.js} +0 -0
- /package/dist/{mathematica-BVli92MR.js → mathematica-Dqmg_BwL.js} +0 -0
- /package/dist/{mbox-CMFlocdS.js → mbox-Cng-P-F1.js} +0 -0
- /package/dist/{mirc-BkW04Zpc.js → mirc-CNDqOVhQ.js} +0 -0
- /package/dist/{mllike-DEjvHvNV.js → mllike-C1n2UDyX.js} +0 -0
- /package/dist/{modelica-CxDn-oje.js → modelica-QqQC2pFj.js} +0 -0
- /package/dist/{mscgen-D78wmE-w.js → mscgen-C3fl8uhp.js} +0 -0
- /package/dist/{mumps-Bi0IvPOV.js → mumps-BeCUbMej.js} +0 -0
- /package/dist/{nginx-DErPZFhX.js → nginx-ejv7DsBz.js} +0 -0
- /package/dist/{ntriples-Btyp6wRL.js → ntriples-CUgUpcma.js} +0 -0
- /package/dist/{octave-CZA6-2F8.js → octave-BD652tGl.js} +0 -0
- /package/dist/{oz-Bm6LSNfE.js → oz-DrRsFa0K.js} +0 -0
- /package/dist/{pascal-B4J6a9BH.js → pascal-hpcx9sVn.js} +0 -0
- /package/dist/{path-VDkDgx1I.js → path-Bbv2tLY1.js} +0 -0
- /package/dist/{perl-CzVqxS08.js → perl-DW8XHeFc.js} +0 -0
- /package/dist/{pig-Clh03cnn.js → pig-Cv7Nxbfo.js} +0 -0
- /package/dist/{prop-types-0wNc-99T.js → prop-types-Bd16OEUP.js} +0 -0
- /package/dist/{properties-D7ch1Wyb.js → properties-D-qJDXAM.js} +0 -0
- /package/dist/{protobuf-DrkdrMPK.js → protobuf-B48QZbd3.js} +0 -0
- /package/dist/{puppet-BtZG8zdO.js → puppet-15JDyiY2.js} +0 -0
- /package/dist/{python-B6FKOVIv.js → python-DWkQA94h.js} +0 -0
- /package/dist/{r-Dnvo5-96.js → r-dcNRe_Q8.js} +0 -0
- /package/dist/{range-PcytnUSJ.js → range-CQvYp_qE.js} +0 -0
- /package/dist/{rpm-B1DrgfnX.js → rpm-Djl3Dsf1.js} +0 -0
- /package/dist/{ruby-CelfUg17.js → ruby-Dd2CZTip.js} +0 -0
- /package/dist/{sas-DfSQFMWG.js → sas-DYF5_Iqu.js} +0 -0
- /package/dist/{scheme-BplhaWuO.js → scheme-YtWcji1H.js} +0 -0
- /package/dist/{shell-DqU5OS2c.js → shell-C3uC3Y0Z.js} +0 -0
- /package/dist/{sieve-BE4_IyGa.js → sieve-DHB17sQG.js} +0 -0
- /package/dist/{smalltalk-B_WPL8Nx.js → smalltalk-Y5v1Np3H.js} +0 -0
- /package/dist/{solr-DlJFg7H5.js → solr-DvRJLlRD.js} +0 -0
- /package/dist/{sparql-7XIlcOgW.js → sparql-BEt3GJwM.js} +0 -0
- /package/dist/{spreadsheet-BdZSVwVp.js → spreadsheet-Dp4B9_rc.js} +0 -0
- /package/dist/{sql-CCrq7lfJ.js → sql-DBsUs8nQ.js} +0 -0
- /package/dist/{stex-BiFc8QAu.js → stex-C6-x52ei.js} +0 -0
- /package/dist/{stylus-DlSH9xpH.js → stylus-DroA8via.js} +0 -0
- /package/dist/{swift-e3tMTZgJ.js → swift-DR0x1ESK.js} +0 -0
- /package/dist/{tcl-DfZMC20G.js → tcl-BeuTFc_c.js} +0 -0
- /package/dist/{textile-DaSeca5U.js → textile-C0ikhHN3.js} +0 -0
- /package/dist/{tiddlywiki-dfoiz8pS.js → tiddlywiki-C_2Nvsgu.js} +0 -0
- /package/dist/{tiki-yJbQzhma.js → tiki-CKQlhmQQ.js} +0 -0
- /package/dist/{treemap-BpgMKHv-.js → treemap-BYLUKIzA.js} +0 -0
- /package/dist/{troff-FN_FrCXR.js → troff-DkK0f2ZH.js} +0 -0
- /package/dist/{tslib.es6-DofFyd9S.js → tslib.es6-3ZL768sZ.js} +0 -0
- /package/dist/{ttcn-7_i4HlyB.js → ttcn-Bf8vrg-_.js} +0 -0
- /package/dist/{ttcn-cfg-B46AlBUV.js → ttcn-cfg-DjCKzd95.js} +0 -0
- /package/dist/{turtle-QQfeFveR.js → turtle-SSc84S9m.js} +0 -0
- /package/dist/{vb-DToPVnLa.js → vb-CQ6DC3cL.js} +0 -0
- /package/dist/{vbscript-CtsNaTz4.js → vbscript-Dw0gFssg.js} +0 -0
- /package/dist/{velocity-CAoNe6ns.js → velocity-BvJQyBmj.js} +0 -0
- /package/dist/{verilog-DrDOMiJq.js → verilog-CKGAvQjj.js} +0 -0
- /package/dist/{vhdl-DnO0OEPh.js → vhdl-B40_x6fM.js} +0 -0
- /package/dist/{webidl-Or6d1ZfA.js → webidl-Bi9hczCv.js} +0 -0
- /package/dist/{xquery-CEp_Mcpr.js → xquery-DwWUXvP3.js} +0 -0
- /package/dist/{yacas-DgnYrSlp.js → yacas-ClUs0mmH.js} +0 -0
- /package/dist/{z80-DlG_kyeB.js → z80-DPC4UGzR.js} +0 -0
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { t as purify } from "./purify.es-CrfFzTyi.js";
|
|
2
|
+
import { a as setLogLevel, i as log, n as __export, r as __name } from "./src-BTqT1mA1.js";
|
|
3
|
+
let rgba_default, parseGenericTypes, setAccTitle, getDiagramTitle, getUserDefinedConfig, getUrl, sanitizeDirective, setupGraphViewbox, setConfig2, sanitizeText, themes_default, setupGraphViewbox2, sanitizeText3, registerLazyLoadedDiagrams, renderKatexSanitized, hasKatex, reset, is_dark_default, saveConfigFromInitialize, getDiagramLoader, getThemeVariables3, setDiagramTitle, setConfig, setSiteConfig, darken_default, updateSiteConfig, lighten_default, getAccDescription, clear, getConfig2, configureSvgSize, defaultConfig_default, color_default, detectType, frontMatterRegex, evaluate, calculateMathMLDimensions, registerDiagram, lineBreakRegex, defaultConfig, directiveRegex, addDirective, commonDb_exports, detectors, styles_default, assignWithDepth_default, common_default, UnknownDiagramError, utils_default, defaultConfig2, getAccTitle, getSiteConfig, getDiagram, getConfig, setAccDescription;
|
|
3
4
|
let __tla = (async () => {
|
|
4
5
|
var _a, _b, _c, _d, _e, _f, _g;
|
|
5
6
|
let Channel, DEC2HEX;
|
|
@@ -22,46 +23,46 @@ let __tla = (async () => {
|
|
|
22
23
|
a: 1
|
|
23
24
|
},
|
|
24
25
|
clamp: {
|
|
25
|
-
r: (
|
|
26
|
-
g: (
|
|
27
|
-
b: (
|
|
28
|
-
h: (
|
|
29
|
-
s: (
|
|
30
|
-
l: (
|
|
31
|
-
a: (
|
|
26
|
+
r: (u) => u >= 255 ? 255 : u < 0 ? 0 : u,
|
|
27
|
+
g: (u) => u >= 255 ? 255 : u < 0 ? 0 : u,
|
|
28
|
+
b: (u) => u >= 255 ? 255 : u < 0 ? 0 : u,
|
|
29
|
+
h: (u) => u % 360,
|
|
30
|
+
s: (u) => u >= 100 ? 100 : u < 0 ? 0 : u,
|
|
31
|
+
l: (u) => u >= 100 ? 100 : u < 0 ? 0 : u,
|
|
32
|
+
a: (u) => u >= 1 ? 1 : u < 0 ? 0 : u
|
|
32
33
|
},
|
|
33
|
-
toLinear: (
|
|
34
|
-
let
|
|
35
|
-
return
|
|
34
|
+
toLinear: (u) => {
|
|
35
|
+
let z = u / 255;
|
|
36
|
+
return u > 0.03928 ? ((z + 0.055) / 1.055) ** 2.4 : z / 12.92;
|
|
36
37
|
},
|
|
37
|
-
hue2rgb: (
|
|
38
|
-
hsl2rgb: ({ h:
|
|
39
|
-
if (!
|
|
40
|
-
|
|
41
|
-
let
|
|
42
|
-
switch (
|
|
38
|
+
hue2rgb: (u, z, B) => (B < 0 && (B += 1), B > 1 && --B, B < 1 / 6 ? u + (z - u) * 6 * B : B < 1 / 2 ? z : B < 2 / 3 ? u + (z - u) * (2 / 3 - B) * 6 : u),
|
|
39
|
+
hsl2rgb: ({ h: u, s: z, l: B }, V) => {
|
|
40
|
+
if (!z) return B * 2.55;
|
|
41
|
+
u /= 360, z /= 100, B /= 100;
|
|
42
|
+
let H = B < 0.5 ? B * (1 + z) : B + z - B * z, W = 2 * B - H;
|
|
43
|
+
switch (V) {
|
|
43
44
|
case "r":
|
|
44
|
-
return Channel.hue2rgb(
|
|
45
|
+
return Channel.hue2rgb(W, H, u + 1 / 3) * 255;
|
|
45
46
|
case "g":
|
|
46
|
-
return Channel.hue2rgb(
|
|
47
|
+
return Channel.hue2rgb(W, H, u) * 255;
|
|
47
48
|
case "b":
|
|
48
|
-
return Channel.hue2rgb(
|
|
49
|
+
return Channel.hue2rgb(W, H, u - 1 / 3) * 255;
|
|
49
50
|
}
|
|
50
51
|
},
|
|
51
|
-
rgb2hsl: ({ r:
|
|
52
|
-
|
|
53
|
-
let
|
|
54
|
-
if (
|
|
55
|
-
if (
|
|
56
|
-
let
|
|
57
|
-
if (
|
|
58
|
-
switch (
|
|
59
|
-
case
|
|
60
|
-
return ((
|
|
61
|
-
case
|
|
62
|
-
return ((
|
|
63
|
-
case
|
|
64
|
-
return ((
|
|
52
|
+
rgb2hsl: ({ r: u, g: z, b: B }, V) => {
|
|
53
|
+
u /= 255, z /= 255, B /= 255;
|
|
54
|
+
let H = Math.max(u, z, B), U = Math.min(u, z, B), W = (H + U) / 2;
|
|
55
|
+
if (V === "l") return W * 100;
|
|
56
|
+
if (H === U) return 0;
|
|
57
|
+
let G = H - U, K = W > 0.5 ? G / (2 - H - U) : G / (H + U);
|
|
58
|
+
if (V === "s") return K * 100;
|
|
59
|
+
switch (H) {
|
|
60
|
+
case u:
|
|
61
|
+
return ((z - B) / G + (z < B ? 6 : 0)) * 60;
|
|
62
|
+
case z:
|
|
63
|
+
return ((B - u) / G + 2) * 60;
|
|
64
|
+
case B:
|
|
65
|
+
return ((u - z) / G + 4) * 60;
|
|
65
66
|
default:
|
|
66
67
|
return -1;
|
|
67
68
|
}
|
|
@@ -70,19 +71,19 @@ let __tla = (async () => {
|
|
|
70
71
|
utils_default = {
|
|
71
72
|
channel: Channel,
|
|
72
73
|
lang: {
|
|
73
|
-
clamp: (
|
|
74
|
-
round: (
|
|
74
|
+
clamp: (u, z, B) => z > B ? Math.min(z, Math.max(B, u)) : Math.min(B, Math.max(z, u)),
|
|
75
|
+
round: (u) => Math.round(u * 1e10) / 1e10
|
|
75
76
|
},
|
|
76
77
|
unit: {
|
|
77
|
-
dec2hex: (
|
|
78
|
-
let
|
|
79
|
-
return
|
|
78
|
+
dec2hex: (u) => {
|
|
79
|
+
let z = Math.round(u).toString(16);
|
|
80
|
+
return z.length > 1 ? z : `0${z}`;
|
|
80
81
|
}
|
|
81
82
|
}
|
|
82
83
|
};
|
|
83
84
|
DEC2HEX = {};
|
|
84
|
-
for (let
|
|
85
|
-
let TYPE, type_default, reusable_default, Hex, hex_default, HSL, hsl_default, Keyword, keyword_default, RGB, rgb_default, change_default, luminance_default, is_light_default, adjust_channel_default, adjust_default, mix_default, invert_default,
|
|
85
|
+
for (let u = 0; u <= 255; u++) DEC2HEX[u] = utils_default.unit.dec2hex(u);
|
|
86
|
+
let TYPE, type_default, reusable_default, Hex, hex_default, HSL, hsl_default, Keyword, keyword_default, RGB, rgb_default, change_default, luminance_default, is_light_default, adjust_channel_default, adjust_default, mix_default, invert_default, anyCommentRegex, addDetector, assignWithDepth, oldAttributeBackgroundColorOdd, oldAttributeBackgroundColorEven, mkBorder, Theme, getThemeVariables, Theme2, getThemeVariables2, Theme3, Theme4, getThemeVariables4, Theme5, config_schema_default, config, keyify, configKeys, sanitizeCss, siteConfig, configFromInitialize, directives, currentConfig, updateCurrentConfig, sanitize, ConfigWarning, issuedWarnings, issueWarning, checkConfig, getRows, setupDompurifyHooksIfNotSetup;
|
|
86
87
|
TYPE = {
|
|
87
88
|
ALL: 0,
|
|
88
89
|
RGB: 1,
|
|
@@ -95,79 +96,79 @@ let __tla = (async () => {
|
|
|
95
96
|
get() {
|
|
96
97
|
return this.type;
|
|
97
98
|
}
|
|
98
|
-
set(
|
|
99
|
-
if (this.type && this.type !==
|
|
100
|
-
this.type =
|
|
99
|
+
set(u) {
|
|
100
|
+
if (this.type && this.type !== u) throw Error("Cannot change both RGB and HSL channels at the same time");
|
|
101
|
+
this.type = u;
|
|
101
102
|
}
|
|
102
103
|
reset() {
|
|
103
104
|
this.type = TYPE.ALL;
|
|
104
105
|
}
|
|
105
|
-
is(
|
|
106
|
-
return this.type ===
|
|
106
|
+
is(u) {
|
|
107
|
+
return this.type === u;
|
|
107
108
|
}
|
|
108
109
|
};
|
|
109
110
|
reusable_default = new class {
|
|
110
|
-
constructor(
|
|
111
|
-
this.color =
|
|
111
|
+
constructor(u, z) {
|
|
112
|
+
this.color = z, this.changed = false, this.data = u, this.type = new type_default();
|
|
112
113
|
}
|
|
113
|
-
set(
|
|
114
|
-
return this.color =
|
|
114
|
+
set(u, z) {
|
|
115
|
+
return this.color = z, this.changed = false, this.data = u, this.type.type = TYPE.ALL, this;
|
|
115
116
|
}
|
|
116
117
|
_ensureHSL() {
|
|
117
|
-
let
|
|
118
|
-
|
|
118
|
+
let u = this.data, { h: z, s: B, l: V } = u;
|
|
119
|
+
z === void 0 && (u.h = utils_default.channel.rgb2hsl(u, "h")), B === void 0 && (u.s = utils_default.channel.rgb2hsl(u, "s")), V === void 0 && (u.l = utils_default.channel.rgb2hsl(u, "l"));
|
|
119
120
|
}
|
|
120
121
|
_ensureRGB() {
|
|
121
|
-
let
|
|
122
|
-
|
|
122
|
+
let u = this.data, { r: z, g: B, b: V } = u;
|
|
123
|
+
z === void 0 && (u.r = utils_default.channel.hsl2rgb(u, "r")), B === void 0 && (u.g = utils_default.channel.hsl2rgb(u, "g")), V === void 0 && (u.b = utils_default.channel.hsl2rgb(u, "b"));
|
|
123
124
|
}
|
|
124
125
|
get r() {
|
|
125
|
-
let
|
|
126
|
-
return !this.type.is(TYPE.HSL) &&
|
|
126
|
+
let u = this.data, z = u.r;
|
|
127
|
+
return !this.type.is(TYPE.HSL) && z !== void 0 ? z : (this._ensureHSL(), utils_default.channel.hsl2rgb(u, "r"));
|
|
127
128
|
}
|
|
128
129
|
get g() {
|
|
129
|
-
let
|
|
130
|
-
return !this.type.is(TYPE.HSL) &&
|
|
130
|
+
let u = this.data, z = u.g;
|
|
131
|
+
return !this.type.is(TYPE.HSL) && z !== void 0 ? z : (this._ensureHSL(), utils_default.channel.hsl2rgb(u, "g"));
|
|
131
132
|
}
|
|
132
133
|
get b() {
|
|
133
|
-
let
|
|
134
|
-
return !this.type.is(TYPE.HSL) &&
|
|
134
|
+
let u = this.data, z = u.b;
|
|
135
|
+
return !this.type.is(TYPE.HSL) && z !== void 0 ? z : (this._ensureHSL(), utils_default.channel.hsl2rgb(u, "b"));
|
|
135
136
|
}
|
|
136
137
|
get h() {
|
|
137
|
-
let
|
|
138
|
-
return !this.type.is(TYPE.RGB) &&
|
|
138
|
+
let u = this.data, z = u.h;
|
|
139
|
+
return !this.type.is(TYPE.RGB) && z !== void 0 ? z : (this._ensureRGB(), utils_default.channel.rgb2hsl(u, "h"));
|
|
139
140
|
}
|
|
140
141
|
get s() {
|
|
141
|
-
let
|
|
142
|
-
return !this.type.is(TYPE.RGB) &&
|
|
142
|
+
let u = this.data, z = u.s;
|
|
143
|
+
return !this.type.is(TYPE.RGB) && z !== void 0 ? z : (this._ensureRGB(), utils_default.channel.rgb2hsl(u, "s"));
|
|
143
144
|
}
|
|
144
145
|
get l() {
|
|
145
|
-
let
|
|
146
|
-
return !this.type.is(TYPE.RGB) &&
|
|
146
|
+
let u = this.data, z = u.l;
|
|
147
|
+
return !this.type.is(TYPE.RGB) && z !== void 0 ? z : (this._ensureRGB(), utils_default.channel.rgb2hsl(u, "l"));
|
|
147
148
|
}
|
|
148
149
|
get a() {
|
|
149
150
|
return this.data.a;
|
|
150
151
|
}
|
|
151
|
-
set r(
|
|
152
|
-
this.type.set(TYPE.RGB), this.changed = true, this.data.r =
|
|
152
|
+
set r(u) {
|
|
153
|
+
this.type.set(TYPE.RGB), this.changed = true, this.data.r = u;
|
|
153
154
|
}
|
|
154
|
-
set g(
|
|
155
|
-
this.type.set(TYPE.RGB), this.changed = true, this.data.g =
|
|
155
|
+
set g(u) {
|
|
156
|
+
this.type.set(TYPE.RGB), this.changed = true, this.data.g = u;
|
|
156
157
|
}
|
|
157
|
-
set b(
|
|
158
|
-
this.type.set(TYPE.RGB), this.changed = true, this.data.b =
|
|
158
|
+
set b(u) {
|
|
159
|
+
this.type.set(TYPE.RGB), this.changed = true, this.data.b = u;
|
|
159
160
|
}
|
|
160
|
-
set h(
|
|
161
|
-
this.type.set(TYPE.HSL), this.changed = true, this.data.h =
|
|
161
|
+
set h(u) {
|
|
162
|
+
this.type.set(TYPE.HSL), this.changed = true, this.data.h = u;
|
|
162
163
|
}
|
|
163
|
-
set s(
|
|
164
|
-
this.type.set(TYPE.HSL), this.changed = true, this.data.s =
|
|
164
|
+
set s(u) {
|
|
165
|
+
this.type.set(TYPE.HSL), this.changed = true, this.data.s = u;
|
|
165
166
|
}
|
|
166
|
-
set l(
|
|
167
|
-
this.type.set(TYPE.HSL), this.changed = true, this.data.l =
|
|
167
|
+
set l(u) {
|
|
168
|
+
this.type.set(TYPE.HSL), this.changed = true, this.data.l = u;
|
|
168
169
|
}
|
|
169
|
-
set a(
|
|
170
|
-
this.changed = true, this.data.a =
|
|
170
|
+
set a(u) {
|
|
171
|
+
this.changed = true, this.data.a = u;
|
|
171
172
|
}
|
|
172
173
|
}({
|
|
173
174
|
r: 0,
|
|
@@ -177,58 +178,58 @@ let __tla = (async () => {
|
|
|
177
178
|
}, "transparent");
|
|
178
179
|
Hex = {
|
|
179
180
|
re: /^#((?:[a-f0-9]{2}){2,4}|[a-f0-9]{3})$/i,
|
|
180
|
-
parse: (
|
|
181
|
-
if (
|
|
182
|
-
let
|
|
183
|
-
if (!
|
|
184
|
-
let
|
|
181
|
+
parse: (u) => {
|
|
182
|
+
if (u.charCodeAt(0) !== 35) return;
|
|
183
|
+
let z = u.match(Hex.re);
|
|
184
|
+
if (!z) return;
|
|
185
|
+
let B = z[1], V = parseInt(B, 16), H = B.length, U = H % 4 == 0, W = H > 4, G = W ? 1 : 17, K = W ? 8 : 4, q = U ? 0 : -1, X = W ? 255 : 15;
|
|
185
186
|
return reusable_default.set({
|
|
186
|
-
r: (
|
|
187
|
-
g: (
|
|
188
|
-
b: (
|
|
189
|
-
a:
|
|
190
|
-
},
|
|
187
|
+
r: (V >> K * (q + 3) & X) * G,
|
|
188
|
+
g: (V >> K * (q + 2) & X) * G,
|
|
189
|
+
b: (V >> K * (q + 1) & X) * G,
|
|
190
|
+
a: U ? (V & X) * G / 255 : 1
|
|
191
|
+
}, u);
|
|
191
192
|
},
|
|
192
|
-
stringify: (
|
|
193
|
-
let { r:
|
|
194
|
-
return
|
|
193
|
+
stringify: (u) => {
|
|
194
|
+
let { r: z, g: B, b: V, a: H } = u;
|
|
195
|
+
return H < 1 ? `#${DEC2HEX[Math.round(z)]}${DEC2HEX[Math.round(B)]}${DEC2HEX[Math.round(V)]}${DEC2HEX[Math.round(H * 255)]}` : `#${DEC2HEX[Math.round(z)]}${DEC2HEX[Math.round(B)]}${DEC2HEX[Math.round(V)]}`;
|
|
195
196
|
}
|
|
196
197
|
};
|
|
197
198
|
hex_default = Hex;
|
|
198
199
|
HSL = {
|
|
199
200
|
re: /^hsla?\(\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?(?:deg|grad|rad|turn)?)\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?%)\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?%)(?:\s*?(?:,|\/)\s*?\+?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?(%)?))?\s*?\)$/i,
|
|
200
201
|
hueRe: /^(.+?)(deg|grad|rad|turn)$/i,
|
|
201
|
-
_hue2deg: (
|
|
202
|
-
let
|
|
203
|
-
if (
|
|
204
|
-
let [,
|
|
205
|
-
switch (
|
|
202
|
+
_hue2deg: (u) => {
|
|
203
|
+
let z = u.match(HSL.hueRe);
|
|
204
|
+
if (z) {
|
|
205
|
+
let [, u2, B] = z;
|
|
206
|
+
switch (B) {
|
|
206
207
|
case "grad":
|
|
207
|
-
return utils_default.channel.clamp.h(parseFloat(
|
|
208
|
+
return utils_default.channel.clamp.h(parseFloat(u2) * 0.9);
|
|
208
209
|
case "rad":
|
|
209
|
-
return utils_default.channel.clamp.h(parseFloat(
|
|
210
|
+
return utils_default.channel.clamp.h(parseFloat(u2) * 180 / Math.PI);
|
|
210
211
|
case "turn":
|
|
211
|
-
return utils_default.channel.clamp.h(parseFloat(
|
|
212
|
+
return utils_default.channel.clamp.h(parseFloat(u2) * 360);
|
|
212
213
|
}
|
|
213
214
|
}
|
|
214
|
-
return utils_default.channel.clamp.h(parseFloat(
|
|
215
|
+
return utils_default.channel.clamp.h(parseFloat(u));
|
|
215
216
|
},
|
|
216
|
-
parse: (
|
|
217
|
-
let
|
|
218
|
-
if (
|
|
219
|
-
let
|
|
220
|
-
if (!
|
|
221
|
-
let [,
|
|
217
|
+
parse: (u) => {
|
|
218
|
+
let z = u.charCodeAt(0);
|
|
219
|
+
if (z !== 104 && z !== 72) return;
|
|
220
|
+
let B = u.match(HSL.re);
|
|
221
|
+
if (!B) return;
|
|
222
|
+
let [, V, H, U, G, K] = B;
|
|
222
223
|
return reusable_default.set({
|
|
223
|
-
h: HSL._hue2deg(
|
|
224
|
-
s: utils_default.channel.clamp.s(parseFloat(
|
|
225
|
-
l: utils_default.channel.clamp.l(parseFloat(
|
|
226
|
-
a:
|
|
227
|
-
},
|
|
224
|
+
h: HSL._hue2deg(V),
|
|
225
|
+
s: utils_default.channel.clamp.s(parseFloat(H)),
|
|
226
|
+
l: utils_default.channel.clamp.l(parseFloat(U)),
|
|
227
|
+
a: G ? utils_default.channel.clamp.a(K ? parseFloat(G) / 100 : parseFloat(G)) : 1
|
|
228
|
+
}, u);
|
|
228
229
|
},
|
|
229
|
-
stringify: (
|
|
230
|
-
let { h:
|
|
231
|
-
return
|
|
230
|
+
stringify: (u) => {
|
|
231
|
+
let { h: z, s: B, l: V, a: H } = u;
|
|
232
|
+
return H < 1 ? `hsla(${utils_default.lang.round(z)}, ${utils_default.lang.round(B)}%, ${utils_default.lang.round(V)}%, ${H})` : `hsl(${utils_default.lang.round(z)}, ${utils_default.lang.round(B)}%, ${utils_default.lang.round(V)}%)`;
|
|
232
233
|
}
|
|
233
234
|
};
|
|
234
235
|
hsl_default = HSL;
|
|
@@ -382,35 +383,35 @@ let __tla = (async () => {
|
|
|
382
383
|
yellow: "#ffff00",
|
|
383
384
|
yellowgreen: "#9acd32"
|
|
384
385
|
},
|
|
385
|
-
parse: (
|
|
386
|
-
|
|
387
|
-
let
|
|
388
|
-
if (
|
|
386
|
+
parse: (u) => {
|
|
387
|
+
u = u.toLowerCase();
|
|
388
|
+
let z = Keyword.colors[u];
|
|
389
|
+
if (z) return hex_default.parse(z);
|
|
389
390
|
},
|
|
390
|
-
stringify: (
|
|
391
|
-
let
|
|
392
|
-
for (let
|
|
391
|
+
stringify: (u) => {
|
|
392
|
+
let z = hex_default.stringify(u);
|
|
393
|
+
for (let u2 in Keyword.colors) if (Keyword.colors[u2] === z) return u2;
|
|
393
394
|
}
|
|
394
395
|
};
|
|
395
396
|
keyword_default = Keyword;
|
|
396
397
|
RGB = {
|
|
397
398
|
re: /^rgba?\(\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))(?:\s*?(?:,|\/)\s*?\+?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?)))?\s*?\)$/i,
|
|
398
|
-
parse: (
|
|
399
|
-
let
|
|
400
|
-
if (
|
|
401
|
-
let
|
|
402
|
-
if (!
|
|
403
|
-
let [,
|
|
399
|
+
parse: (u) => {
|
|
400
|
+
let z = u.charCodeAt(0);
|
|
401
|
+
if (z !== 114 && z !== 82) return;
|
|
402
|
+
let B = u.match(RGB.re);
|
|
403
|
+
if (!B) return;
|
|
404
|
+
let [, V, H, U, G, K, q, Y, X] = B;
|
|
404
405
|
return reusable_default.set({
|
|
405
|
-
r: utils_default.channel.clamp.r(
|
|
406
|
-
g: utils_default.channel.clamp.g(
|
|
407
|
-
b: utils_default.channel.clamp.b(
|
|
408
|
-
a:
|
|
409
|
-
},
|
|
406
|
+
r: utils_default.channel.clamp.r(H ? parseFloat(V) * 2.55 : parseFloat(V)),
|
|
407
|
+
g: utils_default.channel.clamp.g(G ? parseFloat(U) * 2.55 : parseFloat(U)),
|
|
408
|
+
b: utils_default.channel.clamp.b(q ? parseFloat(K) * 2.55 : parseFloat(K)),
|
|
409
|
+
a: Y ? utils_default.channel.clamp.a(X ? parseFloat(Y) / 100 : parseFloat(Y)) : 1
|
|
410
|
+
}, u);
|
|
410
411
|
},
|
|
411
|
-
stringify: (
|
|
412
|
-
let { r:
|
|
413
|
-
return
|
|
412
|
+
stringify: (u) => {
|
|
413
|
+
let { r: z, g: B, b: V, a: H } = u;
|
|
414
|
+
return H < 1 ? `rgba(${utils_default.lang.round(z)}, ${utils_default.lang.round(B)}, ${utils_default.lang.round(V)}, ${utils_default.lang.round(H)})` : `rgb(${utils_default.lang.round(z)}, ${utils_default.lang.round(B)}, ${utils_default.lang.round(V)})`;
|
|
414
415
|
}
|
|
415
416
|
};
|
|
416
417
|
rgb_default = RGB;
|
|
@@ -423,659 +424,101 @@ let __tla = (async () => {
|
|
|
423
424
|
hsl: hsl_default,
|
|
424
425
|
hsla: hsl_default
|
|
425
426
|
},
|
|
426
|
-
parse: (
|
|
427
|
-
if (typeof
|
|
428
|
-
let
|
|
429
|
-
if (
|
|
430
|
-
throw Error(`Unsupported color format: "${
|
|
427
|
+
parse: (u) => {
|
|
428
|
+
if (typeof u != "string") return u;
|
|
429
|
+
let z = hex_default.parse(u) || rgb_default.parse(u) || hsl_default.parse(u) || keyword_default.parse(u);
|
|
430
|
+
if (z) return z;
|
|
431
|
+
throw Error(`Unsupported color format: "${u}"`);
|
|
431
432
|
},
|
|
432
|
-
stringify: (
|
|
433
|
+
stringify: (u) => !u.changed && u.color ? u.color : u.type.is(TYPE.HSL) || u.data.r === void 0 ? hsl_default.stringify(u) : u.a < 1 || !Number.isInteger(u.r) || !Number.isInteger(u.g) || !Number.isInteger(u.b) ? rgb_default.stringify(u) : hex_default.stringify(u)
|
|
433
434
|
};
|
|
434
|
-
change_default = (
|
|
435
|
-
let
|
|
436
|
-
for (let
|
|
437
|
-
return color_default.stringify(
|
|
435
|
+
change_default = (u, z) => {
|
|
436
|
+
let B = color_default.parse(u);
|
|
437
|
+
for (let u2 in z) B[u2] = utils_default.channel.clamp[u2](z[u2]);
|
|
438
|
+
return color_default.stringify(B);
|
|
438
439
|
};
|
|
439
|
-
rgba_default = (
|
|
440
|
-
if (typeof
|
|
441
|
-
a:
|
|
440
|
+
rgba_default = (u, z, B = 0, V = 1) => {
|
|
441
|
+
if (typeof u != "number") return change_default(u, {
|
|
442
|
+
a: z
|
|
442
443
|
});
|
|
443
|
-
let
|
|
444
|
-
r: utils_default.channel.clamp.r(
|
|
445
|
-
g: utils_default.channel.clamp.g(
|
|
446
|
-
b: utils_default.channel.clamp.b(
|
|
447
|
-
a: utils_default.channel.clamp.a(
|
|
444
|
+
let H = reusable_default.set({
|
|
445
|
+
r: utils_default.channel.clamp.r(u),
|
|
446
|
+
g: utils_default.channel.clamp.g(z),
|
|
447
|
+
b: utils_default.channel.clamp.b(B),
|
|
448
|
+
a: utils_default.channel.clamp.a(V)
|
|
448
449
|
});
|
|
449
|
-
return color_default.stringify(
|
|
450
|
+
return color_default.stringify(H);
|
|
450
451
|
};
|
|
451
|
-
luminance_default = (
|
|
452
|
-
let { r:
|
|
453
|
-
return utils_default.lang.round(
|
|
452
|
+
luminance_default = (u) => {
|
|
453
|
+
let { r: z, g: B, b: V } = color_default.parse(u), H = 0.2126 * utils_default.channel.toLinear(z) + 0.7152 * utils_default.channel.toLinear(B) + 0.0722 * utils_default.channel.toLinear(V);
|
|
454
|
+
return utils_default.lang.round(H);
|
|
454
455
|
};
|
|
455
|
-
is_light_default = (
|
|
456
|
-
is_dark_default = (
|
|
457
|
-
adjust_channel_default = (
|
|
458
|
-
let
|
|
459
|
-
return
|
|
456
|
+
is_light_default = (u) => luminance_default(u) >= 0.5;
|
|
457
|
+
is_dark_default = (u) => !is_light_default(u);
|
|
458
|
+
adjust_channel_default = (u, z, B) => {
|
|
459
|
+
let V = color_default.parse(u), H = V[z], U = utils_default.channel.clamp[z](H + B);
|
|
460
|
+
return H !== U && (V[z] = U), color_default.stringify(V);
|
|
460
461
|
};
|
|
461
|
-
lighten_default = (
|
|
462
|
-
darken_default = (
|
|
463
|
-
adjust_default = (
|
|
464
|
-
let
|
|
465
|
-
for (let
|
|
466
|
-
return change_default(
|
|
462
|
+
lighten_default = (u, z) => adjust_channel_default(u, "l", z);
|
|
463
|
+
darken_default = (u, z) => adjust_channel_default(u, "l", -z);
|
|
464
|
+
adjust_default = (u, z) => {
|
|
465
|
+
let B = color_default.parse(u), V = {};
|
|
466
|
+
for (let u2 in z) z[u2] && (V[u2] = B[u2] + z[u2]);
|
|
467
|
+
return change_default(u, V);
|
|
467
468
|
};
|
|
468
|
-
mix_default = (
|
|
469
|
-
let { r, g:
|
|
470
|
-
return rgba_default(
|
|
469
|
+
mix_default = (u, z, B = 50) => {
|
|
470
|
+
let { r: V, g: H, b: U, a: W } = color_default.parse(u), { r: G, g: K, b: q, a: J } = color_default.parse(z), Y = B / 100, X = Y * 2 - 1, Z = W - J, Q = ((X * Z === -1 ? X : (X + Z) / (1 + X * Z)) + 1) / 2, $ = 1 - Q;
|
|
471
|
+
return rgba_default(V * Q + G * $, H * Q + K * $, U * Q + q * $, W * Y + J * (1 - Y));
|
|
471
472
|
};
|
|
472
|
-
invert_default = (
|
|
473
|
-
let
|
|
474
|
-
return
|
|
473
|
+
invert_default = (u, z = 100) => {
|
|
474
|
+
let B = color_default.parse(u);
|
|
475
|
+
return B.r = 255 - B.r, B.g = 255 - B.g, B.b = 255 - B.b, mix_default(B, u, z);
|
|
475
476
|
};
|
|
476
|
-
({ entries, setPrototypeOf, isFrozen, getPrototypeOf, getOwnPropertyDescriptor } = Object);
|
|
477
|
-
({ freeze, seal, create } = Object);
|
|
478
|
-
({ apply, construct } = typeof Reflect < "u" && Reflect);
|
|
479
|
-
freeze || (freeze = function(e) {
|
|
480
|
-
return e;
|
|
481
|
-
}), seal || (seal = function(e) {
|
|
482
|
-
return e;
|
|
483
|
-
}), apply || (apply = function(e, t, n) {
|
|
484
|
-
return e.apply(t, n);
|
|
485
|
-
}), construct || (construct = function(e, t) {
|
|
486
|
-
return new e(...t);
|
|
487
|
-
});
|
|
488
|
-
var arrayForEach = unapply(Array.prototype.forEach), arrayLastIndexOf = unapply(Array.prototype.lastIndexOf), arrayPop = unapply(Array.prototype.pop), arrayPush = unapply(Array.prototype.push), arraySplice = unapply(Array.prototype.splice), stringToLowerCase = unapply(String.prototype.toLowerCase), stringToString = unapply(String.prototype.toString), stringMatch = unapply(String.prototype.match), stringReplace = unapply(String.prototype.replace), stringIndexOf = unapply(String.prototype.indexOf), stringTrim = unapply(String.prototype.trim), objectHasOwnProperty = unapply(Object.prototype.hasOwnProperty), regExpTest = unapply(RegExp.prototype.test), typeErrorCreate = unconstruct(TypeError);
|
|
489
|
-
function unapply(e) {
|
|
490
|
-
return function(t) {
|
|
491
|
-
t instanceof RegExp && (t.lastIndex = 0);
|
|
492
|
-
var n = [
|
|
493
|
-
...arguments
|
|
494
|
-
].slice(1);
|
|
495
|
-
return apply(e, t, n);
|
|
496
|
-
};
|
|
497
|
-
}
|
|
498
|
-
function unconstruct(e) {
|
|
499
|
-
return function() {
|
|
500
|
-
return construct(e, [
|
|
501
|
-
...arguments
|
|
502
|
-
]);
|
|
503
|
-
};
|
|
504
|
-
}
|
|
505
|
-
function addToSet(e, t) {
|
|
506
|
-
let n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : stringToLowerCase;
|
|
507
|
-
setPrototypeOf && setPrototypeOf(e, null);
|
|
508
|
-
let r = t.length;
|
|
509
|
-
for (; r--; ) {
|
|
510
|
-
let i = t[r];
|
|
511
|
-
if (typeof i == "string") {
|
|
512
|
-
let e2 = n(i);
|
|
513
|
-
e2 !== i && (isFrozen(t) || (t[r] = e2), i = e2);
|
|
514
|
-
}
|
|
515
|
-
e[i] = true;
|
|
516
|
-
}
|
|
517
|
-
return e;
|
|
518
|
-
}
|
|
519
|
-
function cleanArray(e) {
|
|
520
|
-
for (let t = 0; t < e.length; t++) objectHasOwnProperty(e, t) || (e[t] = null);
|
|
521
|
-
return e;
|
|
522
|
-
}
|
|
523
|
-
function clone(e) {
|
|
524
|
-
let t = create(null);
|
|
525
|
-
for (let [n, r] of entries(e)) objectHasOwnProperty(e, n) && (Array.isArray(r) ? t[n] = cleanArray(r) : r && typeof r == "object" && r.constructor === Object ? t[n] = clone(r) : t[n] = r);
|
|
526
|
-
return t;
|
|
527
|
-
}
|
|
528
|
-
function lookupGetter(e, t) {
|
|
529
|
-
for (; e !== null; ) {
|
|
530
|
-
let n2 = getOwnPropertyDescriptor(e, t);
|
|
531
|
-
if (n2) {
|
|
532
|
-
if (n2.get) return unapply(n2.get);
|
|
533
|
-
if (typeof n2.value == "function") return unapply(n2.value);
|
|
534
|
-
}
|
|
535
|
-
e = getPrototypeOf(e);
|
|
536
|
-
}
|
|
537
|
-
function n() {
|
|
538
|
-
return null;
|
|
539
|
-
}
|
|
540
|
-
return n;
|
|
541
|
-
}
|
|
542
|
-
var html$1 = freeze("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.section.select.shadow.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".split(".")), svg$1 = freeze("svg.a.altglyph.altglyphdef.altglyphitem.animatecolor.animatemotion.animatetransform.circle.clippath.defs.desc.ellipse.filter.font.g.glyph.glyphref.hkern.image.line.lineargradient.marker.mask.metadata.mpath.path.pattern.polygon.polyline.radialgradient.rect.stop.style.switch.symbol.text.textpath.title.tref.tspan.view.vkern".split(".")), svgFilters = freeze([
|
|
543
|
-
"feBlend",
|
|
544
|
-
"feColorMatrix",
|
|
545
|
-
"feComponentTransfer",
|
|
546
|
-
"feComposite",
|
|
547
|
-
"feConvolveMatrix",
|
|
548
|
-
"feDiffuseLighting",
|
|
549
|
-
"feDisplacementMap",
|
|
550
|
-
"feDistantLight",
|
|
551
|
-
"feDropShadow",
|
|
552
|
-
"feFlood",
|
|
553
|
-
"feFuncA",
|
|
554
|
-
"feFuncB",
|
|
555
|
-
"feFuncG",
|
|
556
|
-
"feFuncR",
|
|
557
|
-
"feGaussianBlur",
|
|
558
|
-
"feImage",
|
|
559
|
-
"feMerge",
|
|
560
|
-
"feMergeNode",
|
|
561
|
-
"feMorphology",
|
|
562
|
-
"feOffset",
|
|
563
|
-
"fePointLight",
|
|
564
|
-
"feSpecularLighting",
|
|
565
|
-
"feSpotLight",
|
|
566
|
-
"feTile",
|
|
567
|
-
"feTurbulence"
|
|
568
|
-
]), svgDisallowed = freeze([
|
|
569
|
-
"animate",
|
|
570
|
-
"color-profile",
|
|
571
|
-
"cursor",
|
|
572
|
-
"discard",
|
|
573
|
-
"font-face",
|
|
574
|
-
"font-face-format",
|
|
575
|
-
"font-face-name",
|
|
576
|
-
"font-face-src",
|
|
577
|
-
"font-face-uri",
|
|
578
|
-
"foreignobject",
|
|
579
|
-
"hatch",
|
|
580
|
-
"hatchpath",
|
|
581
|
-
"mesh",
|
|
582
|
-
"meshgradient",
|
|
583
|
-
"meshpatch",
|
|
584
|
-
"meshrow",
|
|
585
|
-
"missing-glyph",
|
|
586
|
-
"script",
|
|
587
|
-
"set",
|
|
588
|
-
"solidcolor",
|
|
589
|
-
"unknown",
|
|
590
|
-
"use"
|
|
591
|
-
]), mathMl$1 = freeze("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".split(".")), mathMlDisallowed = freeze([
|
|
592
|
-
"maction",
|
|
593
|
-
"maligngroup",
|
|
594
|
-
"malignmark",
|
|
595
|
-
"mlongdiv",
|
|
596
|
-
"mscarries",
|
|
597
|
-
"mscarry",
|
|
598
|
-
"msgroup",
|
|
599
|
-
"mstack",
|
|
600
|
-
"msline",
|
|
601
|
-
"msrow",
|
|
602
|
-
"semantics",
|
|
603
|
-
"annotation",
|
|
604
|
-
"annotation-xml",
|
|
605
|
-
"mprescripts",
|
|
606
|
-
"none"
|
|
607
|
-
]), text = freeze([
|
|
608
|
-
"#text"
|
|
609
|
-
]), html = freeze("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.face.for.headers.height.hidden.high.href.hreflang.id.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.pattern.placeholder.playsinline.popover.popovertarget.popovertargetaction.poster.preload.pubdate.radiogroup.readonly.rel.required.rev.reversed.role.rows.rowspan.spellcheck.scope.selected.shape.size.sizes.span.srclang.start.src.srcset.step.style.summary.tabindex.title.translate.type.usemap.valign.value.width.wrap.xmlns.slot".split(".")), svg = freeze("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.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".split(".")), mathMl = freeze("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".split(".")), xml = freeze([
|
|
610
|
-
"xlink:href",
|
|
611
|
-
"xml:id",
|
|
612
|
-
"xlink:title",
|
|
613
|
-
"xml:space",
|
|
614
|
-
"xmlns:xlink"
|
|
615
|
-
]), MUSTACHE_EXPR = seal(/\{\{[\w\W]*|[\w\W]*\}\}/gm), ERB_EXPR = seal(/<%[\w\W]*|[\w\W]*%>/gm), TMPLIT_EXPR = seal(/\$\{[\w\W]*/gm), DATA_ATTR = seal(/^data-[\-\w.\u00B7-\uFFFF]+$/), ARIA_ATTR = seal(/^aria-[\-\w]+$/), IS_ALLOWED_URI = seal(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i), IS_SCRIPT_OR_DATA = seal(/^(?:\w+script|data):/i), ATTR_WHITESPACE = seal(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g), DOCTYPE_NAME = seal(/^html$/i), CUSTOM_ELEMENT = seal(/^[a-z][.\w]*(-[.\w]+)+$/i), EXPRESSIONS = Object.freeze({
|
|
616
|
-
__proto__: null,
|
|
617
|
-
ARIA_ATTR,
|
|
618
|
-
ATTR_WHITESPACE,
|
|
619
|
-
CUSTOM_ELEMENT,
|
|
620
|
-
DATA_ATTR,
|
|
621
|
-
DOCTYPE_NAME,
|
|
622
|
-
ERB_EXPR,
|
|
623
|
-
IS_ALLOWED_URI,
|
|
624
|
-
IS_SCRIPT_OR_DATA,
|
|
625
|
-
MUSTACHE_EXPR,
|
|
626
|
-
TMPLIT_EXPR
|
|
627
|
-
}), NODE_TYPE = {
|
|
628
|
-
element: 1,
|
|
629
|
-
attribute: 2,
|
|
630
|
-
text: 3,
|
|
631
|
-
cdataSection: 4,
|
|
632
|
-
entityReference: 5,
|
|
633
|
-
entityNode: 6,
|
|
634
|
-
progressingInstruction: 7,
|
|
635
|
-
comment: 8,
|
|
636
|
-
document: 9,
|
|
637
|
-
documentType: 10,
|
|
638
|
-
documentFragment: 11,
|
|
639
|
-
notation: 12
|
|
640
|
-
}, getGlobal = function() {
|
|
641
|
-
return typeof window > "u" ? null : window;
|
|
642
|
-
}, _createTrustedTypesPolicy = function(e, t) {
|
|
643
|
-
if (typeof e != "object" || typeof e.createPolicy != "function") return null;
|
|
644
|
-
let n = null, r = "data-tt-policy-suffix";
|
|
645
|
-
t && t.hasAttribute(r) && (n = t.getAttribute(r));
|
|
646
|
-
let i = "dompurify" + (n ? "#" + n : "");
|
|
647
|
-
try {
|
|
648
|
-
return e.createPolicy(i, {
|
|
649
|
-
createHTML(e2) {
|
|
650
|
-
return e2;
|
|
651
|
-
},
|
|
652
|
-
createScriptURL(e2) {
|
|
653
|
-
return e2;
|
|
654
|
-
}
|
|
655
|
-
});
|
|
656
|
-
} catch {
|
|
657
|
-
return console.warn("TrustedTypes policy " + i + " could not be created."), null;
|
|
658
|
-
}
|
|
659
|
-
}, _createHooksMap = function() {
|
|
660
|
-
return {
|
|
661
|
-
afterSanitizeAttributes: [],
|
|
662
|
-
afterSanitizeElements: [],
|
|
663
|
-
afterSanitizeShadowDOM: [],
|
|
664
|
-
beforeSanitizeAttributes: [],
|
|
665
|
-
beforeSanitizeElements: [],
|
|
666
|
-
beforeSanitizeShadowDOM: [],
|
|
667
|
-
uponSanitizeAttribute: [],
|
|
668
|
-
uponSanitizeElement: [],
|
|
669
|
-
uponSanitizeShadowNode: []
|
|
670
|
-
};
|
|
671
|
-
};
|
|
672
|
-
function createDOMPurify() {
|
|
673
|
-
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : getGlobal(), t = (e2) => createDOMPurify(e2);
|
|
674
|
-
if (t.version = "3.2.6", t.removed = [], !e || !e.document || e.document.nodeType !== NODE_TYPE.document || !e.Element) return t.isSupported = false, t;
|
|
675
|
-
let { document: n } = e, r = n, i = r.currentScript, { DocumentFragment: a, HTMLTemplateElement: o, Node: s, Element: c, NodeFilter: l, NamedNodeMap: u = e.NamedNodeMap || e.MozNamedAttrMap, HTMLFormElement: d, DOMParser: f, trustedTypes: p } = e, m = c.prototype, h = lookupGetter(m, "cloneNode"), Gt = lookupGetter(m, "remove"), Kt = lookupGetter(m, "nextSibling"), qt = lookupGetter(m, "childNodes"), g = lookupGetter(m, "parentNode");
|
|
676
|
-
if (typeof o == "function") {
|
|
677
|
-
let e2 = n.createElement("template");
|
|
678
|
-
e2.content && e2.content.ownerDocument && (n = e2.content.ownerDocument);
|
|
679
|
-
}
|
|
680
|
-
let _, v = "", { implementation: y, createNodeIterator: Jt, createDocumentFragment: Yt, getElementsByTagName: Xt } = n, { importNode: Zt } = r, b = _createHooksMap();
|
|
681
|
-
t.isSupported = typeof entries == "function" && typeof g == "function" && y && y.createHTMLDocument !== void 0;
|
|
682
|
-
let { MUSTACHE_EXPR: Qt, ERB_EXPR: x, TMPLIT_EXPR: S, DATA_ATTR: $t, ARIA_ATTR: en, IS_SCRIPT_OR_DATA: tn, ATTR_WHITESPACE: nn, CUSTOM_ELEMENT: rn } = EXPRESSIONS, { IS_ALLOWED_URI: an } = EXPRESSIONS, C = null, on = addToSet({}, [
|
|
683
|
-
...html$1,
|
|
684
|
-
...svg$1,
|
|
685
|
-
...svgFilters,
|
|
686
|
-
...mathMl$1,
|
|
687
|
-
...text
|
|
688
|
-
]), w = null, sn = addToSet({}, [
|
|
689
|
-
...html,
|
|
690
|
-
...svg,
|
|
691
|
-
...mathMl,
|
|
692
|
-
...xml
|
|
693
|
-
]), T = Object.seal(create(null, {
|
|
694
|
-
tagNameCheck: {
|
|
695
|
-
writable: true,
|
|
696
|
-
configurable: false,
|
|
697
|
-
enumerable: true,
|
|
698
|
-
value: null
|
|
699
|
-
},
|
|
700
|
-
attributeNameCheck: {
|
|
701
|
-
writable: true,
|
|
702
|
-
configurable: false,
|
|
703
|
-
enumerable: true,
|
|
704
|
-
value: null
|
|
705
|
-
},
|
|
706
|
-
allowCustomizedBuiltInElements: {
|
|
707
|
-
writable: true,
|
|
708
|
-
configurable: false,
|
|
709
|
-
enumerable: true,
|
|
710
|
-
value: false
|
|
711
|
-
}
|
|
712
|
-
})), E = null, D = null, cn = true, O = true, ln = false, un = true, k = false, A = true, j = false, dn = false, fn = false, M = false, N = false, P = false, pn = true, mn = false, F = true, I = false, L = {}, R = null, hn = addToSet({}, [
|
|
713
|
-
"annotation-xml",
|
|
714
|
-
"audio",
|
|
715
|
-
"colgroup",
|
|
716
|
-
"desc",
|
|
717
|
-
"foreignobject",
|
|
718
|
-
"head",
|
|
719
|
-
"iframe",
|
|
720
|
-
"math",
|
|
721
|
-
"mi",
|
|
722
|
-
"mn",
|
|
723
|
-
"mo",
|
|
724
|
-
"ms",
|
|
725
|
-
"mtext",
|
|
726
|
-
"noembed",
|
|
727
|
-
"noframes",
|
|
728
|
-
"noscript",
|
|
729
|
-
"plaintext",
|
|
730
|
-
"script",
|
|
731
|
-
"style",
|
|
732
|
-
"svg",
|
|
733
|
-
"template",
|
|
734
|
-
"thead",
|
|
735
|
-
"title",
|
|
736
|
-
"video",
|
|
737
|
-
"xmp"
|
|
738
|
-
]), gn = null, _n = addToSet({}, [
|
|
739
|
-
"audio",
|
|
740
|
-
"video",
|
|
741
|
-
"img",
|
|
742
|
-
"source",
|
|
743
|
-
"image",
|
|
744
|
-
"track"
|
|
745
|
-
]), z = null, vn = addToSet({}, [
|
|
746
|
-
"alt",
|
|
747
|
-
"class",
|
|
748
|
-
"for",
|
|
749
|
-
"id",
|
|
750
|
-
"label",
|
|
751
|
-
"name",
|
|
752
|
-
"pattern",
|
|
753
|
-
"placeholder",
|
|
754
|
-
"role",
|
|
755
|
-
"summary",
|
|
756
|
-
"title",
|
|
757
|
-
"value",
|
|
758
|
-
"style",
|
|
759
|
-
"xmlns"
|
|
760
|
-
]), B = "http://www.w3.org/1998/Math/MathML", V = "http://www.w3.org/2000/svg", H = "http://www.w3.org/1999/xhtml", U = H, W = false, G = null, yn = addToSet({}, [
|
|
761
|
-
B,
|
|
762
|
-
V,
|
|
763
|
-
H
|
|
764
|
-
], stringToString), K = addToSet({}, [
|
|
765
|
-
"mi",
|
|
766
|
-
"mo",
|
|
767
|
-
"mn",
|
|
768
|
-
"ms",
|
|
769
|
-
"mtext"
|
|
770
|
-
]), q = addToSet({}, [
|
|
771
|
-
"annotation-xml"
|
|
772
|
-
]), bn = addToSet({}, [
|
|
773
|
-
"title",
|
|
774
|
-
"style",
|
|
775
|
-
"font",
|
|
776
|
-
"a",
|
|
777
|
-
"script"
|
|
778
|
-
]), J = null, xn = [
|
|
779
|
-
"application/xhtml+xml",
|
|
780
|
-
"text/html"
|
|
781
|
-
], Y = null, X = null, Sn = n.createElement("form"), Cn = function(e2) {
|
|
782
|
-
return e2 instanceof RegExp || e2 instanceof Function;
|
|
783
|
-
}, wn = function() {
|
|
784
|
-
let e2 = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
785
|
-
if (!(X && X === e2)) {
|
|
786
|
-
if ((!e2 || typeof e2 != "object") && (e2 = {}), e2 = clone(e2), J = xn.indexOf(e2.PARSER_MEDIA_TYPE) === -1 ? "text/html" : e2.PARSER_MEDIA_TYPE, Y = J === "application/xhtml+xml" ? stringToString : stringToLowerCase, C = objectHasOwnProperty(e2, "ALLOWED_TAGS") ? addToSet({}, e2.ALLOWED_TAGS, Y) : on, w = objectHasOwnProperty(e2, "ALLOWED_ATTR") ? addToSet({}, e2.ALLOWED_ATTR, Y) : sn, G = objectHasOwnProperty(e2, "ALLOWED_NAMESPACES") ? addToSet({}, e2.ALLOWED_NAMESPACES, stringToString) : yn, z = objectHasOwnProperty(e2, "ADD_URI_SAFE_ATTR") ? addToSet(clone(vn), e2.ADD_URI_SAFE_ATTR, Y) : vn, gn = objectHasOwnProperty(e2, "ADD_DATA_URI_TAGS") ? addToSet(clone(_n), e2.ADD_DATA_URI_TAGS, Y) : _n, R = objectHasOwnProperty(e2, "FORBID_CONTENTS") ? addToSet({}, e2.FORBID_CONTENTS, Y) : hn, E = objectHasOwnProperty(e2, "FORBID_TAGS") ? addToSet({}, e2.FORBID_TAGS, Y) : clone({}), D = objectHasOwnProperty(e2, "FORBID_ATTR") ? addToSet({}, e2.FORBID_ATTR, Y) : clone({}), L = objectHasOwnProperty(e2, "USE_PROFILES") ? e2.USE_PROFILES : false, cn = e2.ALLOW_ARIA_ATTR !== false, O = e2.ALLOW_DATA_ATTR !== false, ln = e2.ALLOW_UNKNOWN_PROTOCOLS || false, un = e2.ALLOW_SELF_CLOSE_IN_ATTR !== false, k = e2.SAFE_FOR_TEMPLATES || false, A = e2.SAFE_FOR_XML !== false, j = e2.WHOLE_DOCUMENT || false, M = e2.RETURN_DOM || false, N = e2.RETURN_DOM_FRAGMENT || false, P = e2.RETURN_TRUSTED_TYPE || false, fn = e2.FORCE_BODY || false, pn = e2.SANITIZE_DOM !== false, mn = e2.SANITIZE_NAMED_PROPS || false, F = e2.KEEP_CONTENT !== false, I = e2.IN_PLACE || false, an = e2.ALLOWED_URI_REGEXP || IS_ALLOWED_URI, U = e2.NAMESPACE || H, K = e2.MATHML_TEXT_INTEGRATION_POINTS || K, q = e2.HTML_INTEGRATION_POINTS || q, T = e2.CUSTOM_ELEMENT_HANDLING || {}, e2.CUSTOM_ELEMENT_HANDLING && Cn(e2.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (T.tagNameCheck = e2.CUSTOM_ELEMENT_HANDLING.tagNameCheck), e2.CUSTOM_ELEMENT_HANDLING && Cn(e2.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (T.attributeNameCheck = e2.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), e2.CUSTOM_ELEMENT_HANDLING && typeof e2.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (T.allowCustomizedBuiltInElements = e2.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), k && (O = false), N && (M = true), L && (C = addToSet({}, text), w = [], L.html === true && (addToSet(C, html$1), addToSet(w, html)), L.svg === true && (addToSet(C, svg$1), addToSet(w, svg), addToSet(w, xml)), L.svgFilters === true && (addToSet(C, svgFilters), addToSet(w, svg), addToSet(w, xml)), L.mathMl === true && (addToSet(C, mathMl$1), addToSet(w, mathMl), addToSet(w, xml))), e2.ADD_TAGS && (C === on && (C = clone(C)), addToSet(C, e2.ADD_TAGS, Y)), e2.ADD_ATTR && (w === sn && (w = clone(w)), addToSet(w, e2.ADD_ATTR, Y)), e2.ADD_URI_SAFE_ATTR && addToSet(z, e2.ADD_URI_SAFE_ATTR, Y), e2.FORBID_CONTENTS && (R === hn && (R = clone(R)), addToSet(R, e2.FORBID_CONTENTS, Y)), F && (C["#text"] = true), j && addToSet(C, [
|
|
787
|
-
"html",
|
|
788
|
-
"head",
|
|
789
|
-
"body"
|
|
790
|
-
]), C.table && (addToSet(C, [
|
|
791
|
-
"tbody"
|
|
792
|
-
]), delete E.tbody), e2.TRUSTED_TYPES_POLICY) {
|
|
793
|
-
if (typeof e2.TRUSTED_TYPES_POLICY.createHTML != "function") throw typeErrorCreate('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');
|
|
794
|
-
if (typeof e2.TRUSTED_TYPES_POLICY.createScriptURL != "function") throw typeErrorCreate('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');
|
|
795
|
-
_ = e2.TRUSTED_TYPES_POLICY, v = _.createHTML("");
|
|
796
|
-
} else _ === void 0 && (_ = _createTrustedTypesPolicy(p, i)), _ !== null && typeof v == "string" && (v = _.createHTML(""));
|
|
797
|
-
freeze && freeze(e2), X = e2;
|
|
798
|
-
}
|
|
799
|
-
}, Tn = addToSet({}, [
|
|
800
|
-
...svg$1,
|
|
801
|
-
...svgFilters,
|
|
802
|
-
...svgDisallowed
|
|
803
|
-
]), En = addToSet({}, [
|
|
804
|
-
...mathMl$1,
|
|
805
|
-
...mathMlDisallowed
|
|
806
|
-
]), Dn = function(e2) {
|
|
807
|
-
let t2 = g(e2);
|
|
808
|
-
(!t2 || !t2.tagName) && (t2 = {
|
|
809
|
-
namespaceURI: U,
|
|
810
|
-
tagName: "template"
|
|
811
|
-
});
|
|
812
|
-
let n2 = stringToLowerCase(e2.tagName), r2 = stringToLowerCase(t2.tagName);
|
|
813
|
-
return G[e2.namespaceURI] ? e2.namespaceURI === V ? t2.namespaceURI === H ? n2 === "svg" : t2.namespaceURI === B ? n2 === "svg" && (r2 === "annotation-xml" || K[r2]) : !!Tn[n2] : e2.namespaceURI === B ? t2.namespaceURI === H ? n2 === "math" : t2.namespaceURI === V ? n2 === "math" && q[r2] : !!En[n2] : e2.namespaceURI === H ? t2.namespaceURI === V && !q[r2] || t2.namespaceURI === B && !K[r2] ? false : !En[n2] && (bn[n2] || !Tn[n2]) : !!(J === "application/xhtml+xml" && G[e2.namespaceURI]) : false;
|
|
814
|
-
}, Z = function(e2) {
|
|
815
|
-
arrayPush(t.removed, {
|
|
816
|
-
element: e2
|
|
817
|
-
});
|
|
818
|
-
try {
|
|
819
|
-
g(e2).removeChild(e2);
|
|
820
|
-
} catch {
|
|
821
|
-
Gt(e2);
|
|
822
|
-
}
|
|
823
|
-
}, Q = function(e2, n2) {
|
|
824
|
-
try {
|
|
825
|
-
arrayPush(t.removed, {
|
|
826
|
-
attribute: n2.getAttributeNode(e2),
|
|
827
|
-
from: n2
|
|
828
|
-
});
|
|
829
|
-
} catch {
|
|
830
|
-
arrayPush(t.removed, {
|
|
831
|
-
attribute: null,
|
|
832
|
-
from: n2
|
|
833
|
-
});
|
|
834
|
-
}
|
|
835
|
-
if (n2.removeAttribute(e2), e2 === "is") if (M || N) try {
|
|
836
|
-
Z(n2);
|
|
837
|
-
} catch {
|
|
838
|
-
}
|
|
839
|
-
else try {
|
|
840
|
-
n2.setAttribute(e2, "");
|
|
841
|
-
} catch {
|
|
842
|
-
}
|
|
843
|
-
}, On = function(e2) {
|
|
844
|
-
let t2 = null, r2 = null;
|
|
845
|
-
if (fn) e2 = "<remove></remove>" + e2;
|
|
846
|
-
else {
|
|
847
|
-
let t3 = stringMatch(e2, /^[\r\n\t ]+/);
|
|
848
|
-
r2 = t3 && t3[0];
|
|
849
|
-
}
|
|
850
|
-
J === "application/xhtml+xml" && U === H && (e2 = '<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>' + e2 + "</body></html>");
|
|
851
|
-
let i2 = _ ? _.createHTML(e2) : e2;
|
|
852
|
-
if (U === H) try {
|
|
853
|
-
t2 = new f().parseFromString(i2, J);
|
|
854
|
-
} catch {
|
|
855
|
-
}
|
|
856
|
-
if (!t2 || !t2.documentElement) {
|
|
857
|
-
t2 = y.createDocument(U, "template", null);
|
|
858
|
-
try {
|
|
859
|
-
t2.documentElement.innerHTML = W ? v : i2;
|
|
860
|
-
} catch {
|
|
861
|
-
}
|
|
862
|
-
}
|
|
863
|
-
let a2 = t2.body || t2.documentElement;
|
|
864
|
-
return e2 && r2 && a2.insertBefore(n.createTextNode(r2), a2.childNodes[0] || null), U === H ? Xt.call(t2, j ? "html" : "body")[0] : j ? t2.documentElement : a2;
|
|
865
|
-
}, kn = function(e2) {
|
|
866
|
-
return Jt.call(e2.ownerDocument || e2, e2, l.SHOW_ELEMENT | l.SHOW_COMMENT | l.SHOW_TEXT | l.SHOW_PROCESSING_INSTRUCTION | l.SHOW_CDATA_SECTION, null);
|
|
867
|
-
}, An = function(e2) {
|
|
868
|
-
return e2 instanceof d && (typeof e2.nodeName != "string" || typeof e2.textContent != "string" || typeof e2.removeChild != "function" || !(e2.attributes instanceof u) || typeof e2.removeAttribute != "function" || typeof e2.setAttribute != "function" || typeof e2.namespaceURI != "string" || typeof e2.insertBefore != "function" || typeof e2.hasChildNodes != "function");
|
|
869
|
-
}, jn = function(e2) {
|
|
870
|
-
return typeof s == "function" && e2 instanceof s;
|
|
871
|
-
};
|
|
872
|
-
function $(e2, n2, r2) {
|
|
873
|
-
arrayForEach(e2, (e3) => {
|
|
874
|
-
e3.call(t, n2, r2, X);
|
|
875
|
-
});
|
|
876
|
-
}
|
|
877
|
-
let Mn = function(e2) {
|
|
878
|
-
let n2 = null;
|
|
879
|
-
if ($(b.beforeSanitizeElements, e2, null), An(e2)) return Z(e2), true;
|
|
880
|
-
let r2 = Y(e2.nodeName);
|
|
881
|
-
if ($(b.uponSanitizeElement, e2, {
|
|
882
|
-
tagName: r2,
|
|
883
|
-
allowedTags: C
|
|
884
|
-
}), A && e2.hasChildNodes() && !jn(e2.firstElementChild) && regExpTest(/<[/\w!]/g, e2.innerHTML) && regExpTest(/<[/\w!]/g, e2.textContent) || e2.nodeType === NODE_TYPE.progressingInstruction || A && e2.nodeType === NODE_TYPE.comment && regExpTest(/<[/\w]/g, e2.data)) return Z(e2), true;
|
|
885
|
-
if (!C[r2] || E[r2]) {
|
|
886
|
-
if (!E[r2] && Pn(r2) && (T.tagNameCheck instanceof RegExp && regExpTest(T.tagNameCheck, r2) || T.tagNameCheck instanceof Function && T.tagNameCheck(r2))) return false;
|
|
887
|
-
if (F && !R[r2]) {
|
|
888
|
-
let t2 = g(e2) || e2.parentNode, n3 = qt(e2) || e2.childNodes;
|
|
889
|
-
if (n3 && t2) {
|
|
890
|
-
let r3 = n3.length;
|
|
891
|
-
for (let i2 = r3 - 1; i2 >= 0; --i2) {
|
|
892
|
-
let r4 = h(n3[i2], true);
|
|
893
|
-
r4.__removalCount = (e2.__removalCount || 0) + 1, t2.insertBefore(r4, Kt(e2));
|
|
894
|
-
}
|
|
895
|
-
}
|
|
896
|
-
}
|
|
897
|
-
return Z(e2), true;
|
|
898
|
-
}
|
|
899
|
-
return e2 instanceof c && !Dn(e2) || (r2 === "noscript" || r2 === "noembed" || r2 === "noframes") && regExpTest(/<\/no(script|embed|frames)/i, e2.innerHTML) ? (Z(e2), true) : (k && e2.nodeType === NODE_TYPE.text && (n2 = e2.textContent, arrayForEach([
|
|
900
|
-
Qt,
|
|
901
|
-
x,
|
|
902
|
-
S
|
|
903
|
-
], (e3) => {
|
|
904
|
-
n2 = stringReplace(n2, e3, " ");
|
|
905
|
-
}), e2.textContent !== n2 && (arrayPush(t.removed, {
|
|
906
|
-
element: e2.cloneNode()
|
|
907
|
-
}), e2.textContent = n2)), $(b.afterSanitizeElements, e2, null), false);
|
|
908
|
-
}, Nn = function(e2, t2, r2) {
|
|
909
|
-
if (pn && (t2 === "id" || t2 === "name") && (r2 in n || r2 in Sn)) return false;
|
|
910
|
-
if (!(O && !D[t2] && regExpTest($t, t2)) && !(cn && regExpTest(en, t2))) {
|
|
911
|
-
if (!w[t2] || D[t2]) {
|
|
912
|
-
if (!(Pn(e2) && (T.tagNameCheck instanceof RegExp && regExpTest(T.tagNameCheck, e2) || T.tagNameCheck instanceof Function && T.tagNameCheck(e2)) && (T.attributeNameCheck instanceof RegExp && regExpTest(T.attributeNameCheck, t2) || T.attributeNameCheck instanceof Function && T.attributeNameCheck(t2)) || t2 === "is" && T.allowCustomizedBuiltInElements && (T.tagNameCheck instanceof RegExp && regExpTest(T.tagNameCheck, r2) || T.tagNameCheck instanceof Function && T.tagNameCheck(r2)))) return false;
|
|
913
|
-
} else if (!z[t2] && !regExpTest(an, stringReplace(r2, nn, "")) && !((t2 === "src" || t2 === "xlink:href" || t2 === "href") && e2 !== "script" && stringIndexOf(r2, "data:") === 0 && gn[e2]) && !(ln && !regExpTest(tn, stringReplace(r2, nn, ""))) && r2) return false;
|
|
914
|
-
}
|
|
915
|
-
return true;
|
|
916
|
-
}, Pn = function(e2) {
|
|
917
|
-
return e2 !== "annotation-xml" && stringMatch(e2, rn);
|
|
918
|
-
}, Fn = function(e2) {
|
|
919
|
-
$(b.beforeSanitizeAttributes, e2, null);
|
|
920
|
-
let { attributes: n2 } = e2;
|
|
921
|
-
if (!n2 || An(e2)) return;
|
|
922
|
-
let r2 = {
|
|
923
|
-
attrName: "",
|
|
924
|
-
attrValue: "",
|
|
925
|
-
keepAttr: true,
|
|
926
|
-
allowedAttributes: w,
|
|
927
|
-
forceKeepAttr: void 0
|
|
928
|
-
}, i2 = n2.length;
|
|
929
|
-
for (; i2--; ) {
|
|
930
|
-
let { name: a2, namespaceURI: o2, value: s2 } = n2[i2], c2 = Y(a2), l2 = s2, u2 = a2 === "value" ? l2 : stringTrim(l2);
|
|
931
|
-
if (r2.attrName = c2, r2.attrValue = u2, r2.keepAttr = true, r2.forceKeepAttr = void 0, $(b.uponSanitizeAttribute, e2, r2), u2 = r2.attrValue, mn && (c2 === "id" || c2 === "name") && (Q(a2, e2), u2 = "user-content-" + u2), A && regExpTest(/((--!?|])>)|<\/(style|title)/i, u2)) {
|
|
932
|
-
Q(a2, e2);
|
|
933
|
-
continue;
|
|
934
|
-
}
|
|
935
|
-
if (r2.forceKeepAttr) continue;
|
|
936
|
-
if (!r2.keepAttr) {
|
|
937
|
-
Q(a2, e2);
|
|
938
|
-
continue;
|
|
939
|
-
}
|
|
940
|
-
if (!un && regExpTest(/\/>/i, u2)) {
|
|
941
|
-
Q(a2, e2);
|
|
942
|
-
continue;
|
|
943
|
-
}
|
|
944
|
-
k && arrayForEach([
|
|
945
|
-
Qt,
|
|
946
|
-
x,
|
|
947
|
-
S
|
|
948
|
-
], (e3) => {
|
|
949
|
-
u2 = stringReplace(u2, e3, " ");
|
|
950
|
-
});
|
|
951
|
-
let d2 = Y(e2.nodeName);
|
|
952
|
-
if (!Nn(d2, c2, u2)) {
|
|
953
|
-
Q(a2, e2);
|
|
954
|
-
continue;
|
|
955
|
-
}
|
|
956
|
-
if (_ && typeof p == "object" && typeof p.getAttributeType == "function" && !o2) switch (p.getAttributeType(d2, c2)) {
|
|
957
|
-
case "TrustedHTML":
|
|
958
|
-
u2 = _.createHTML(u2);
|
|
959
|
-
break;
|
|
960
|
-
case "TrustedScriptURL":
|
|
961
|
-
u2 = _.createScriptURL(u2);
|
|
962
|
-
break;
|
|
963
|
-
}
|
|
964
|
-
if (u2 !== l2) try {
|
|
965
|
-
o2 ? e2.setAttributeNS(o2, a2, u2) : e2.setAttribute(a2, u2), An(e2) ? Z(e2) : arrayPop(t.removed);
|
|
966
|
-
} catch {
|
|
967
|
-
Q(a2, e2);
|
|
968
|
-
}
|
|
969
|
-
}
|
|
970
|
-
$(b.afterSanitizeAttributes, e2, null);
|
|
971
|
-
}, In = function e2(t2) {
|
|
972
|
-
let n2 = null, r2 = kn(t2);
|
|
973
|
-
for ($(b.beforeSanitizeShadowDOM, t2, null); n2 = r2.nextNode(); ) $(b.uponSanitizeShadowNode, n2, null), Mn(n2), Fn(n2), n2.content instanceof a && e2(n2.content);
|
|
974
|
-
$(b.afterSanitizeShadowDOM, t2, null);
|
|
975
|
-
};
|
|
976
|
-
return t.sanitize = function(e2) {
|
|
977
|
-
let n2 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, i2 = null, o2 = null, c2 = null, l2 = null;
|
|
978
|
-
if (W = !e2, W && (e2 = "<!-->"), typeof e2 != "string" && !jn(e2)) if (typeof e2.toString == "function") {
|
|
979
|
-
if (e2 = e2.toString(), typeof e2 != "string") throw typeErrorCreate("dirty is not a string, aborting");
|
|
980
|
-
} else throw typeErrorCreate("toString is not a function");
|
|
981
|
-
if (!t.isSupported) return e2;
|
|
982
|
-
if (dn || wn(n2), t.removed = [], typeof e2 == "string" && (I = false), I) {
|
|
983
|
-
if (e2.nodeName) {
|
|
984
|
-
let t2 = Y(e2.nodeName);
|
|
985
|
-
if (!C[t2] || E[t2]) throw typeErrorCreate("root node is forbidden and cannot be sanitized in-place");
|
|
986
|
-
}
|
|
987
|
-
} else if (e2 instanceof s) i2 = On("<!---->"), o2 = i2.ownerDocument.importNode(e2, true), o2.nodeType === NODE_TYPE.element && o2.nodeName === "BODY" || o2.nodeName === "HTML" ? i2 = o2 : i2.appendChild(o2);
|
|
988
|
-
else {
|
|
989
|
-
if (!M && !k && !j && e2.indexOf("<") === -1) return _ && P ? _.createHTML(e2) : e2;
|
|
990
|
-
if (i2 = On(e2), !i2) return M ? null : P ? v : "";
|
|
991
|
-
}
|
|
992
|
-
i2 && fn && Z(i2.firstChild);
|
|
993
|
-
let u2 = kn(I ? e2 : i2);
|
|
994
|
-
for (; c2 = u2.nextNode(); ) Mn(c2), Fn(c2), c2.content instanceof a && In(c2.content);
|
|
995
|
-
if (I) return e2;
|
|
996
|
-
if (M) {
|
|
997
|
-
if (N) for (l2 = Yt.call(i2.ownerDocument); i2.firstChild; ) l2.appendChild(i2.firstChild);
|
|
998
|
-
else l2 = i2;
|
|
999
|
-
return (w.shadowroot || w.shadowrootmode) && (l2 = Zt.call(r, l2, true)), l2;
|
|
1000
|
-
}
|
|
1001
|
-
let d2 = j ? i2.outerHTML : i2.innerHTML;
|
|
1002
|
-
return j && C["!doctype"] && i2.ownerDocument && i2.ownerDocument.doctype && i2.ownerDocument.doctype.name && regExpTest(DOCTYPE_NAME, i2.ownerDocument.doctype.name) && (d2 = "<!DOCTYPE " + i2.ownerDocument.doctype.name + ">\n" + d2), k && arrayForEach([
|
|
1003
|
-
Qt,
|
|
1004
|
-
x,
|
|
1005
|
-
S
|
|
1006
|
-
], (e3) => {
|
|
1007
|
-
d2 = stringReplace(d2, e3, " ");
|
|
1008
|
-
}), _ && P ? _.createHTML(d2) : d2;
|
|
1009
|
-
}, t.setConfig = function() {
|
|
1010
|
-
let e2 = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
1011
|
-
wn(e2), dn = true;
|
|
1012
|
-
}, t.clearConfig = function() {
|
|
1013
|
-
X = null, dn = false;
|
|
1014
|
-
}, t.isValidAttribute = function(e2, t2, n2) {
|
|
1015
|
-
X || wn({});
|
|
1016
|
-
let r2 = Y(e2), i2 = Y(t2);
|
|
1017
|
-
return Nn(r2, i2, n2);
|
|
1018
|
-
}, t.addHook = function(e2, t2) {
|
|
1019
|
-
typeof t2 == "function" && arrayPush(b[e2], t2);
|
|
1020
|
-
}, t.removeHook = function(e2, t2) {
|
|
1021
|
-
if (t2 !== void 0) {
|
|
1022
|
-
let n2 = arrayLastIndexOf(b[e2], t2);
|
|
1023
|
-
return n2 === -1 ? void 0 : arraySplice(b[e2], n2, 1)[0];
|
|
1024
|
-
}
|
|
1025
|
-
return arrayPop(b[e2]);
|
|
1026
|
-
}, t.removeHooks = function(e2) {
|
|
1027
|
-
b[e2] = [];
|
|
1028
|
-
}, t.removeAllHooks = function() {
|
|
1029
|
-
b = _createHooksMap();
|
|
1030
|
-
}, t;
|
|
1031
|
-
}
|
|
1032
|
-
let anyCommentRegex, addDetector, assignWithDepth, oldAttributeBackgroundColorOdd, oldAttributeBackgroundColorEven, mkBorder, Theme, getThemeVariables, Theme2, getThemeVariables2, Theme3, Theme4, getThemeVariables4, Theme5, config_schema_default, config, keyify, configKeys, sanitizeCss, siteConfig, configFromInitialize, directives, currentConfig, updateCurrentConfig, sanitize, ConfigWarning, issuedWarnings, issueWarning, checkConfig, getRows, setupDompurifyHooksIfNotSetup;
|
|
1033
|
-
purify = createDOMPurify();
|
|
1034
477
|
frontMatterRegex = /^-{3}\s*[\n\r](.*?)[\n\r]-{3}\s*[\n\r]+/s;
|
|
1035
478
|
directiveRegex = /%{2}{\s*(?:(\w+)\s*:|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi;
|
|
1036
479
|
anyCommentRegex = /\s*%%.*\n/gm;
|
|
1037
480
|
UnknownDiagramError = (_a = class extends Error {
|
|
1038
|
-
constructor(
|
|
1039
|
-
super(
|
|
481
|
+
constructor(u) {
|
|
482
|
+
super(u), this.name = "UnknownDiagramError";
|
|
1040
483
|
}
|
|
1041
484
|
}, __name(_a, "UnknownDiagramError"), _a);
|
|
1042
485
|
detectors = {};
|
|
1043
|
-
detectType = __name(function(
|
|
1044
|
-
|
|
1045
|
-
for (let [
|
|
1046
|
-
throw new UnknownDiagramError(`No diagram type detected matching given configuration for text: ${
|
|
486
|
+
detectType = __name(function(u, z) {
|
|
487
|
+
u = u.replace(frontMatterRegex, "").replace(directiveRegex, "").replace(anyCommentRegex, "\n");
|
|
488
|
+
for (let [B, { detector: V }] of Object.entries(detectors)) if (V(u, z)) return B;
|
|
489
|
+
throw new UnknownDiagramError(`No diagram type detected matching given configuration for text: ${u}`);
|
|
1047
490
|
}, "detectType");
|
|
1048
|
-
registerLazyLoadedDiagrams = __name((...
|
|
1049
|
-
for (let { id:
|
|
491
|
+
registerLazyLoadedDiagrams = __name((...u) => {
|
|
492
|
+
for (let { id: z, detector: B, loader: V } of u) addDetector(z, B, V);
|
|
1050
493
|
}, "registerLazyLoadedDiagrams");
|
|
1051
|
-
addDetector = __name((
|
|
1052
|
-
detectors[
|
|
1053
|
-
detector:
|
|
1054
|
-
loader:
|
|
1055
|
-
}, log.debug(`Detector with key ${
|
|
494
|
+
addDetector = __name((u, z, V) => {
|
|
495
|
+
detectors[u] && log.warn(`Detector with key ${u} already exists. Overwriting.`), detectors[u] = {
|
|
496
|
+
detector: z,
|
|
497
|
+
loader: V
|
|
498
|
+
}, log.debug(`Detector with key ${u} added${V ? " with loader" : ""}`);
|
|
1056
499
|
}, "addDetector");
|
|
1057
|
-
getDiagramLoader = __name((
|
|
1058
|
-
assignWithDepth = __name((
|
|
1059
|
-
let
|
|
1060
|
-
depth:
|
|
1061
|
-
clobber:
|
|
500
|
+
getDiagramLoader = __name((u) => detectors[u].loader, "getDiagramLoader");
|
|
501
|
+
assignWithDepth = __name((u, z, { depth: B = 2, clobber: V = false } = {}) => {
|
|
502
|
+
let H = {
|
|
503
|
+
depth: B,
|
|
504
|
+
clobber: V
|
|
1062
505
|
};
|
|
1063
|
-
return Array.isArray(
|
|
1064
|
-
|
|
1065
|
-
}),
|
|
1066
|
-
typeof
|
|
1067
|
-
depth:
|
|
1068
|
-
clobber:
|
|
1069
|
-
})) : (
|
|
1070
|
-
}),
|
|
506
|
+
return Array.isArray(z) && !Array.isArray(u) ? (z.forEach((z2) => assignWithDepth(u, z2, H)), u) : Array.isArray(z) && Array.isArray(u) ? (z.forEach((z2) => {
|
|
507
|
+
u.includes(z2) || u.push(z2);
|
|
508
|
+
}), u) : u === void 0 || B <= 0 ? typeof u == "object" && u && typeof z == "object" ? Object.assign(u, z) : z : (z !== void 0 && typeof u == "object" && typeof z == "object" && Object.keys(z).forEach((H2) => {
|
|
509
|
+
typeof z[H2] == "object" && (u[H2] === void 0 || typeof u[H2] == "object") ? (u[H2] === void 0 && (u[H2] = Array.isArray(z[H2]) ? [] : {}), u[H2] = assignWithDepth(u[H2], z[H2], {
|
|
510
|
+
depth: B - 1,
|
|
511
|
+
clobber: V
|
|
512
|
+
})) : (V || typeof u[H2] != "object" && typeof z[H2] != "object") && (u[H2] = z[H2]);
|
|
513
|
+
}), u);
|
|
1071
514
|
}, "assignWithDepth");
|
|
1072
515
|
assignWithDepth_default = assignWithDepth;
|
|
1073
516
|
oldAttributeBackgroundColorOdd = "#ffffff";
|
|
1074
517
|
oldAttributeBackgroundColorEven = "#f2f2f2";
|
|
1075
|
-
mkBorder = __name((
|
|
518
|
+
mkBorder = __name((u, z) => z ? adjust_default(u, {
|
|
1076
519
|
s: -40,
|
|
1077
520
|
l: 10
|
|
1078
|
-
}) : adjust_default(
|
|
521
|
+
}) : adjust_default(u, {
|
|
1079
522
|
s: -40,
|
|
1080
523
|
l: -10
|
|
1081
524
|
}), "mkBorder");
|
|
@@ -1109,21 +552,21 @@ let __tla = (async () => {
|
|
|
1109
552
|
h: 300
|
|
1110
553
|
}), this.cScale11 = this.cScale11 || adjust_default(this.primaryColor, {
|
|
1111
554
|
h: 330
|
|
1112
|
-
}), this.darkMode) for (let
|
|
1113
|
-
else for (let
|
|
1114
|
-
for (let
|
|
1115
|
-
for (let
|
|
555
|
+
}), this.darkMode) for (let u2 = 0; u2 < this.THEME_COLOR_LIMIT; u2++) this["cScale" + u2] = darken_default(this["cScale" + u2], 75);
|
|
556
|
+
else for (let u2 = 0; u2 < this.THEME_COLOR_LIMIT; u2++) this["cScale" + u2] = darken_default(this["cScale" + u2], 25);
|
|
557
|
+
for (let u2 = 0; u2 < this.THEME_COLOR_LIMIT; u2++) this["cScaleInv" + u2] = this["cScaleInv" + u2] || invert_default(this["cScale" + u2]);
|
|
558
|
+
for (let u2 = 0; u2 < this.THEME_COLOR_LIMIT; u2++) this.darkMode ? this["cScalePeer" + u2] = this["cScalePeer" + u2] || lighten_default(this["cScale" + u2], 10) : this["cScalePeer" + u2] = this["cScalePeer" + u2] || darken_default(this["cScale" + u2], 10);
|
|
1116
559
|
this.scaleLabelColor = this.scaleLabelColor || this.labelTextColor;
|
|
1117
|
-
for (let
|
|
1118
|
-
let
|
|
1119
|
-
for (let
|
|
560
|
+
for (let u2 = 0; u2 < this.THEME_COLOR_LIMIT; u2++) this["cScaleLabel" + u2] = this["cScaleLabel" + u2] || this.scaleLabelColor;
|
|
561
|
+
let u = this.darkMode ? -4 : -1;
|
|
562
|
+
for (let z = 0; z < 5; z++) this["surface" + z] = this["surface" + z] || adjust_default(this.mainBkg, {
|
|
1120
563
|
h: 180,
|
|
1121
564
|
s: -15,
|
|
1122
|
-
l:
|
|
1123
|
-
}), this["surfacePeer" +
|
|
565
|
+
l: u * (5 + z * 3)
|
|
566
|
+
}), this["surfacePeer" + z] = this["surfacePeer" + z] || adjust_default(this.mainBkg, {
|
|
1124
567
|
h: 180,
|
|
1125
568
|
s: -15,
|
|
1126
|
-
l:
|
|
569
|
+
l: u * (8 + z * 3)
|
|
1127
570
|
});
|
|
1128
571
|
this.classText = this.classText || this.textColor, this.fillType0 = this.fillType0 || this.primaryColor, this.fillType1 = this.fillType1 || this.secondaryColor, this.fillType2 = this.fillType2 || adjust_default(this.primaryColor, {
|
|
1129
572
|
h: 64
|
|
@@ -1220,22 +663,22 @@ let __tla = (async () => {
|
|
|
1220
663
|
h: 120
|
|
1221
664
|
}), this.darkMode ? (this.git0 = lighten_default(this.git0, 25), this.git1 = lighten_default(this.git1, 25), this.git2 = lighten_default(this.git2, 25), this.git3 = lighten_default(this.git3, 25), this.git4 = lighten_default(this.git4, 25), this.git5 = lighten_default(this.git5, 25), this.git6 = lighten_default(this.git6, 25), this.git7 = lighten_default(this.git7, 25)) : (this.git0 = darken_default(this.git0, 25), this.git1 = darken_default(this.git1, 25), this.git2 = darken_default(this.git2, 25), this.git3 = darken_default(this.git3, 25), this.git4 = darken_default(this.git4, 25), this.git5 = darken_default(this.git5, 25), this.git6 = darken_default(this.git6, 25), this.git7 = darken_default(this.git7, 25)), this.gitInv0 = this.gitInv0 || invert_default(this.git0), this.gitInv1 = this.gitInv1 || invert_default(this.git1), this.gitInv2 = this.gitInv2 || invert_default(this.git2), this.gitInv3 = this.gitInv3 || invert_default(this.git3), this.gitInv4 = this.gitInv4 || invert_default(this.git4), this.gitInv5 = this.gitInv5 || invert_default(this.git5), this.gitInv6 = this.gitInv6 || invert_default(this.git6), this.gitInv7 = this.gitInv7 || invert_default(this.git7), this.branchLabelColor = this.branchLabelColor || (this.darkMode ? "black" : this.labelTextColor), this.gitBranchLabel0 = this.gitBranchLabel0 || this.branchLabelColor, this.gitBranchLabel1 = this.gitBranchLabel1 || this.branchLabelColor, this.gitBranchLabel2 = this.gitBranchLabel2 || this.branchLabelColor, this.gitBranchLabel3 = this.gitBranchLabel3 || this.branchLabelColor, this.gitBranchLabel4 = this.gitBranchLabel4 || this.branchLabelColor, this.gitBranchLabel5 = this.gitBranchLabel5 || this.branchLabelColor, this.gitBranchLabel6 = this.gitBranchLabel6 || this.branchLabelColor, this.gitBranchLabel7 = this.gitBranchLabel7 || this.branchLabelColor, this.tagLabelColor = this.tagLabelColor || this.primaryTextColor, this.tagLabelBackground = this.tagLabelBackground || this.primaryColor, this.tagLabelBorder = this.tagBorder || this.primaryBorderColor, this.tagLabelFontSize = this.tagLabelFontSize || "10px", this.commitLabelColor = this.commitLabelColor || this.secondaryTextColor, this.commitLabelBackground = this.commitLabelBackground || this.secondaryColor, this.commitLabelFontSize = this.commitLabelFontSize || "10px", this.attributeBackgroundColorOdd = this.attributeBackgroundColorOdd || oldAttributeBackgroundColorOdd, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || oldAttributeBackgroundColorEven;
|
|
1222
665
|
}
|
|
1223
|
-
calculate(
|
|
1224
|
-
if (typeof
|
|
666
|
+
calculate(u) {
|
|
667
|
+
if (typeof u != "object") {
|
|
1225
668
|
this.updateColors();
|
|
1226
669
|
return;
|
|
1227
670
|
}
|
|
1228
|
-
let
|
|
1229
|
-
|
|
1230
|
-
this[
|
|
1231
|
-
}), this.updateColors(),
|
|
1232
|
-
this[
|
|
671
|
+
let z = Object.keys(u);
|
|
672
|
+
z.forEach((z2) => {
|
|
673
|
+
this[z2] = u[z2];
|
|
674
|
+
}), this.updateColors(), z.forEach((z2) => {
|
|
675
|
+
this[z2] = u[z2];
|
|
1233
676
|
});
|
|
1234
677
|
}
|
|
1235
678
|
}, __name(_b, "Theme"), _b);
|
|
1236
|
-
getThemeVariables = __name((
|
|
1237
|
-
let
|
|
1238
|
-
return
|
|
679
|
+
getThemeVariables = __name((u) => {
|
|
680
|
+
let z = new Theme();
|
|
681
|
+
return z.calculate(u), z;
|
|
1239
682
|
}, "getThemeVariables");
|
|
1240
683
|
Theme2 = (_c = class {
|
|
1241
684
|
constructor() {
|
|
@@ -1276,20 +719,20 @@ let __tla = (async () => {
|
|
|
1276
719
|
}), this.cScale11 = this.cScale11 || adjust_default(this.primaryColor, {
|
|
1277
720
|
h: 330
|
|
1278
721
|
});
|
|
1279
|
-
for (let
|
|
1280
|
-
for (let
|
|
1281
|
-
for (let
|
|
722
|
+
for (let u = 0; u < this.THEME_COLOR_LIMIT; u++) this["cScaleInv" + u] = this["cScaleInv" + u] || invert_default(this["cScale" + u]);
|
|
723
|
+
for (let u = 0; u < this.THEME_COLOR_LIMIT; u++) this["cScalePeer" + u] = this["cScalePeer" + u] || lighten_default(this["cScale" + u], 10);
|
|
724
|
+
for (let u = 0; u < 5; u++) this["surface" + u] = this["surface" + u] || adjust_default(this.mainBkg, {
|
|
1282
725
|
h: 30,
|
|
1283
726
|
s: -30,
|
|
1284
|
-
l: -(-10 +
|
|
1285
|
-
}), this["surfacePeer" +
|
|
727
|
+
l: -(-10 + u * 4)
|
|
728
|
+
}), this["surfacePeer" + u] = this["surfacePeer" + u] || adjust_default(this.mainBkg, {
|
|
1286
729
|
h: 30,
|
|
1287
730
|
s: -30,
|
|
1288
|
-
l: -(-7 +
|
|
731
|
+
l: -(-7 + u * 4)
|
|
1289
732
|
});
|
|
1290
733
|
this.scaleLabelColor = this.scaleLabelColor || (this.darkMode ? "black" : this.labelTextColor);
|
|
1291
|
-
for (let
|
|
1292
|
-
for (let
|
|
734
|
+
for (let u = 0; u < this.THEME_COLOR_LIMIT; u++) this["cScaleLabel" + u] = this["cScaleLabel" + u] || this.scaleLabelColor;
|
|
735
|
+
for (let u = 0; u < this.THEME_COLOR_LIMIT; u++) this["pie" + u] = this["cScale" + u];
|
|
1293
736
|
this.pieTitleTextSize = this.pieTitleTextSize || "25px", this.pieTitleTextColor = this.pieTitleTextColor || this.taskTextDarkColor, this.pieSectionTextSize = this.pieSectionTextSize || "17px", this.pieSectionTextColor = this.pieSectionTextColor || this.textColor, this.pieLegendTextSize = this.pieLegendTextSize || "17px", this.pieLegendTextColor = this.pieLegendTextColor || this.taskTextDarkColor, this.pieStrokeColor = this.pieStrokeColor || "black", this.pieStrokeWidth = this.pieStrokeWidth || "2px", this.pieOuterStrokeWidth = this.pieOuterStrokeWidth || "2px", this.pieOuterStrokeColor = this.pieOuterStrokeColor || "black", this.pieOpacity = this.pieOpacity || "0.7", this.quadrant1Fill = this.quadrant1Fill || this.primaryColor, this.quadrant2Fill = this.quadrant2Fill || adjust_default(this.primaryColor, {
|
|
1294
737
|
r: 5,
|
|
1295
738
|
g: 5,
|
|
@@ -1356,22 +799,22 @@ let __tla = (async () => {
|
|
|
1356
799
|
h: 120
|
|
1357
800
|
}), 20), this.gitInv0 = this.gitInv0 || invert_default(this.git0), this.gitInv1 = this.gitInv1 || invert_default(this.git1), this.gitInv2 = this.gitInv2 || invert_default(this.git2), this.gitInv3 = this.gitInv3 || invert_default(this.git3), this.gitInv4 = this.gitInv4 || invert_default(this.git4), this.gitInv5 = this.gitInv5 || invert_default(this.git5), this.gitInv6 = this.gitInv6 || invert_default(this.git6), this.gitInv7 = this.gitInv7 || invert_default(this.git7), this.gitBranchLabel0 = this.gitBranchLabel0 || invert_default(this.labelTextColor), this.gitBranchLabel1 = this.gitBranchLabel1 || this.labelTextColor, this.gitBranchLabel2 = this.gitBranchLabel2 || this.labelTextColor, this.gitBranchLabel3 = this.gitBranchLabel3 || invert_default(this.labelTextColor), this.gitBranchLabel4 = this.gitBranchLabel4 || this.labelTextColor, this.gitBranchLabel5 = this.gitBranchLabel5 || this.labelTextColor, this.gitBranchLabel6 = this.gitBranchLabel6 || this.labelTextColor, this.gitBranchLabel7 = this.gitBranchLabel7 || this.labelTextColor, this.tagLabelColor = this.tagLabelColor || this.primaryTextColor, this.tagLabelBackground = this.tagLabelBackground || this.primaryColor, this.tagLabelBorder = this.tagBorder || this.primaryBorderColor, this.tagLabelFontSize = this.tagLabelFontSize || "10px", this.commitLabelColor = this.commitLabelColor || this.secondaryTextColor, this.commitLabelBackground = this.commitLabelBackground || this.secondaryColor, this.commitLabelFontSize = this.commitLabelFontSize || "10px", this.attributeBackgroundColorOdd = this.attributeBackgroundColorOdd || lighten_default(this.background, 12), this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || lighten_default(this.background, 2), this.nodeBorder = this.nodeBorder || "#999";
|
|
1358
801
|
}
|
|
1359
|
-
calculate(
|
|
1360
|
-
if (typeof
|
|
802
|
+
calculate(u) {
|
|
803
|
+
if (typeof u != "object") {
|
|
1361
804
|
this.updateColors();
|
|
1362
805
|
return;
|
|
1363
806
|
}
|
|
1364
|
-
let
|
|
1365
|
-
|
|
1366
|
-
this[
|
|
1367
|
-
}), this.updateColors(),
|
|
1368
|
-
this[
|
|
807
|
+
let z = Object.keys(u);
|
|
808
|
+
z.forEach((z2) => {
|
|
809
|
+
this[z2] = u[z2];
|
|
810
|
+
}), this.updateColors(), z.forEach((z2) => {
|
|
811
|
+
this[z2] = u[z2];
|
|
1369
812
|
});
|
|
1370
813
|
}
|
|
1371
814
|
}, __name(_c, "Theme"), _c);
|
|
1372
|
-
getThemeVariables2 = __name((
|
|
1373
|
-
let
|
|
1374
|
-
return
|
|
815
|
+
getThemeVariables2 = __name((u) => {
|
|
816
|
+
let z = new Theme2();
|
|
817
|
+
return z.calculate(u), z;
|
|
1375
818
|
}, "getThemeVariables");
|
|
1376
819
|
Theme3 = (_d = class {
|
|
1377
820
|
constructor() {
|
|
@@ -1402,20 +845,20 @@ let __tla = (async () => {
|
|
|
1402
845
|
}), this.cScale11 = this.cScale11 || adjust_default(this.primaryColor, {
|
|
1403
846
|
h: 330
|
|
1404
847
|
}), this.cScalePeer1 = this.cScalePeer1 || darken_default(this.secondaryColor, 45), this.cScalePeer2 = this.cScalePeer2 || darken_default(this.tertiaryColor, 40);
|
|
1405
|
-
for (let
|
|
1406
|
-
for (let
|
|
848
|
+
for (let u = 0; u < this.THEME_COLOR_LIMIT; u++) this["cScale" + u] = darken_default(this["cScale" + u], 10), this["cScalePeer" + u] = this["cScalePeer" + u] || darken_default(this["cScale" + u], 25);
|
|
849
|
+
for (let u = 0; u < this.THEME_COLOR_LIMIT; u++) this["cScaleInv" + u] = this["cScaleInv" + u] || adjust_default(this["cScale" + u], {
|
|
1407
850
|
h: 180
|
|
1408
851
|
});
|
|
1409
|
-
for (let
|
|
852
|
+
for (let u = 0; u < 5; u++) this["surface" + u] = this["surface" + u] || adjust_default(this.mainBkg, {
|
|
1410
853
|
h: 30,
|
|
1411
|
-
l: -(5 +
|
|
1412
|
-
}), this["surfacePeer" +
|
|
854
|
+
l: -(5 + u * 5)
|
|
855
|
+
}), this["surfacePeer" + u] = this["surfacePeer" + u] || adjust_default(this.mainBkg, {
|
|
1413
856
|
h: 30,
|
|
1414
|
-
l: -(7 +
|
|
857
|
+
l: -(7 + u * 5)
|
|
1415
858
|
});
|
|
1416
859
|
if (this.scaleLabelColor = this.scaleLabelColor !== "calculated" && this.scaleLabelColor ? this.scaleLabelColor : this.labelTextColor, this.labelTextColor !== "calculated") {
|
|
1417
860
|
this.cScaleLabel0 = this.cScaleLabel0 || invert_default(this.labelTextColor), this.cScaleLabel3 = this.cScaleLabel3 || invert_default(this.labelTextColor);
|
|
1418
|
-
for (let
|
|
861
|
+
for (let u = 0; u < this.THEME_COLOR_LIMIT; u++) this["cScaleLabel" + u] = this["cScaleLabel" + u] || this.labelTextColor;
|
|
1419
862
|
}
|
|
1420
863
|
this.nodeBkg = this.mainBkg, this.nodeBorder = this.border1, this.clusterBkg = this.secondBkg, this.clusterBorder = this.border2, this.defaultLinkColor = this.lineColor, this.titleColor = this.textColor, this.edgeLabelBackground = this.labelBackground, this.actorBorder = lighten_default(this.border1, 23), this.actorBkg = this.mainBkg, this.labelBoxBkgColor = this.actorBkg, this.signalColor = this.textColor, this.signalTextColor = this.textColor, this.labelBoxBorderColor = this.actorBorder, this.labelTextColor = this.actorTextColor, this.loopTextColor = this.actorTextColor, this.noteBorderColor = this.border2, this.noteTextColor = this.actorTextColor, this.actorLineColor = this.actorBorder, this.taskTextColor = this.taskTextLightColor, this.taskTextOutsideColor = this.taskTextDarkColor, this.archEdgeColor = this.lineColor, this.archEdgeArrowColor = this.lineColor, this.rowOdd = this.rowOdd || lighten_default(this.primaryColor, 75) || "#ffffff", this.rowEven = this.rowEven || lighten_default(this.primaryColor, 1), this.transitionColor = this.transitionColor || this.lineColor, this.transitionLabelColor = this.transitionLabelColor || this.textColor, this.stateLabelColor = this.stateLabelColor || this.stateBkg || this.primaryTextColor, this.stateBkg = this.stateBkg || this.mainBkg, this.labelBackgroundColor = this.labelBackgroundColor || this.stateBkg, this.compositeBackground = this.compositeBackground || this.background || this.tertiaryColor, this.altBackground = this.altBackground || "#f0f0f0", this.compositeTitleBackground = this.compositeTitleBackground || this.mainBkg, this.compositeBorder = this.compositeBorder || this.nodeBorder, this.innerEndBackground = this.nodeBorder, this.specialStateColor = this.lineColor, this.errorBkgColor = this.errorBkgColor || this.tertiaryColor, this.errorTextColor = this.errorTextColor || this.tertiaryTextColor, this.transitionColor = this.transitionColor || this.lineColor, this.classText = this.primaryTextColor, this.fillType0 = this.primaryColor, this.fillType1 = this.secondaryColor, this.fillType2 = adjust_default(this.primaryColor, {
|
|
1421
864
|
h: 64
|
|
@@ -1514,24 +957,24 @@ let __tla = (async () => {
|
|
|
1514
957
|
h: 120
|
|
1515
958
|
}), this.darkMode ? (this.git0 = lighten_default(this.git0, 25), this.git1 = lighten_default(this.git1, 25), this.git2 = lighten_default(this.git2, 25), this.git3 = lighten_default(this.git3, 25), this.git4 = lighten_default(this.git4, 25), this.git5 = lighten_default(this.git5, 25), this.git6 = lighten_default(this.git6, 25), this.git7 = lighten_default(this.git7, 25)) : (this.git0 = darken_default(this.git0, 25), this.git1 = darken_default(this.git1, 25), this.git2 = darken_default(this.git2, 25), this.git3 = darken_default(this.git3, 25), this.git4 = darken_default(this.git4, 25), this.git5 = darken_default(this.git5, 25), this.git6 = darken_default(this.git6, 25), this.git7 = darken_default(this.git7, 25)), this.gitInv0 = this.gitInv0 || darken_default(invert_default(this.git0), 25), this.gitInv1 = this.gitInv1 || invert_default(this.git1), this.gitInv2 = this.gitInv2 || invert_default(this.git2), this.gitInv3 = this.gitInv3 || invert_default(this.git3), this.gitInv4 = this.gitInv4 || invert_default(this.git4), this.gitInv5 = this.gitInv5 || invert_default(this.git5), this.gitInv6 = this.gitInv6 || invert_default(this.git6), this.gitInv7 = this.gitInv7 || invert_default(this.git7), this.gitBranchLabel0 = this.gitBranchLabel0 || invert_default(this.labelTextColor), this.gitBranchLabel1 = this.gitBranchLabel1 || this.labelTextColor, this.gitBranchLabel2 = this.gitBranchLabel2 || this.labelTextColor, this.gitBranchLabel3 = this.gitBranchLabel3 || invert_default(this.labelTextColor), this.gitBranchLabel4 = this.gitBranchLabel4 || this.labelTextColor, this.gitBranchLabel5 = this.gitBranchLabel5 || this.labelTextColor, this.gitBranchLabel6 = this.gitBranchLabel6 || this.labelTextColor, this.gitBranchLabel7 = this.gitBranchLabel7 || this.labelTextColor, this.tagLabelColor = this.tagLabelColor || this.primaryTextColor, this.tagLabelBackground = this.tagLabelBackground || this.primaryColor, this.tagLabelBorder = this.tagBorder || this.primaryBorderColor, this.tagLabelFontSize = this.tagLabelFontSize || "10px", this.commitLabelColor = this.commitLabelColor || this.secondaryTextColor, this.commitLabelBackground = this.commitLabelBackground || this.secondaryColor, this.commitLabelFontSize = this.commitLabelFontSize || "10px", this.attributeBackgroundColorOdd = this.attributeBackgroundColorOdd || oldAttributeBackgroundColorOdd, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || oldAttributeBackgroundColorEven;
|
|
1516
959
|
}
|
|
1517
|
-
calculate(
|
|
1518
|
-
if (Object.keys(this).forEach((
|
|
1519
|
-
this[
|
|
1520
|
-
}), typeof
|
|
960
|
+
calculate(u) {
|
|
961
|
+
if (Object.keys(this).forEach((u2) => {
|
|
962
|
+
this[u2] === "calculated" && (this[u2] = void 0);
|
|
963
|
+
}), typeof u != "object") {
|
|
1521
964
|
this.updateColors();
|
|
1522
965
|
return;
|
|
1523
966
|
}
|
|
1524
|
-
let
|
|
1525
|
-
|
|
1526
|
-
this[
|
|
1527
|
-
}), this.updateColors(),
|
|
1528
|
-
this[
|
|
967
|
+
let z = Object.keys(u);
|
|
968
|
+
z.forEach((z2) => {
|
|
969
|
+
this[z2] = u[z2];
|
|
970
|
+
}), this.updateColors(), z.forEach((z2) => {
|
|
971
|
+
this[z2] = u[z2];
|
|
1529
972
|
});
|
|
1530
973
|
}
|
|
1531
974
|
}, __name(_d, "Theme"), _d);
|
|
1532
|
-
getThemeVariables3 = __name((
|
|
1533
|
-
let
|
|
1534
|
-
return
|
|
975
|
+
getThemeVariables3 = __name((u) => {
|
|
976
|
+
let z = new Theme3();
|
|
977
|
+
return z.calculate(u), z;
|
|
1535
978
|
}, "getThemeVariables");
|
|
1536
979
|
Theme4 = (_e = class {
|
|
1537
980
|
constructor() {
|
|
@@ -1558,20 +1001,20 @@ let __tla = (async () => {
|
|
|
1558
1001
|
}), this.cScale11 = this.cScale11 || adjust_default(this.primaryColor, {
|
|
1559
1002
|
h: 330
|
|
1560
1003
|
}), this.cScalePeer1 = this.cScalePeer1 || darken_default(this.secondaryColor, 45), this.cScalePeer2 = this.cScalePeer2 || darken_default(this.tertiaryColor, 40);
|
|
1561
|
-
for (let
|
|
1562
|
-
for (let
|
|
1004
|
+
for (let u = 0; u < this.THEME_COLOR_LIMIT; u++) this["cScale" + u] = darken_default(this["cScale" + u], 10), this["cScalePeer" + u] = this["cScalePeer" + u] || darken_default(this["cScale" + u], 25);
|
|
1005
|
+
for (let u = 0; u < this.THEME_COLOR_LIMIT; u++) this["cScaleInv" + u] = this["cScaleInv" + u] || adjust_default(this["cScale" + u], {
|
|
1563
1006
|
h: 180
|
|
1564
1007
|
});
|
|
1565
1008
|
this.scaleLabelColor = this.scaleLabelColor !== "calculated" && this.scaleLabelColor ? this.scaleLabelColor : this.labelTextColor;
|
|
1566
|
-
for (let
|
|
1567
|
-
for (let
|
|
1009
|
+
for (let u = 0; u < this.THEME_COLOR_LIMIT; u++) this["cScaleLabel" + u] = this["cScaleLabel" + u] || this.scaleLabelColor;
|
|
1010
|
+
for (let u = 0; u < 5; u++) this["surface" + u] = this["surface" + u] || adjust_default(this.mainBkg, {
|
|
1568
1011
|
h: 30,
|
|
1569
1012
|
s: -30,
|
|
1570
|
-
l: -(5 +
|
|
1571
|
-
}), this["surfacePeer" +
|
|
1013
|
+
l: -(5 + u * 5)
|
|
1014
|
+
}), this["surfacePeer" + u] = this["surfacePeer" + u] || adjust_default(this.mainBkg, {
|
|
1572
1015
|
h: 30,
|
|
1573
1016
|
s: -30,
|
|
1574
|
-
l: -(8 +
|
|
1017
|
+
l: -(8 + u * 5)
|
|
1575
1018
|
});
|
|
1576
1019
|
this.nodeBkg = this.mainBkg, this.nodeBorder = this.border1, this.clusterBkg = this.secondBkg, this.clusterBorder = this.border2, this.defaultLinkColor = this.lineColor, this.taskBorderColor = this.border1, this.taskTextColor = this.taskTextLightColor, this.taskTextOutsideColor = this.taskTextDarkColor, this.activeTaskBorderColor = this.taskBorderColor, this.activeTaskBkgColor = this.mainBkg, this.archEdgeColor = this.lineColor, this.archEdgeArrowColor = this.lineColor, this.rowOdd = this.rowOdd || lighten_default(this.mainBkg, 75) || "#ffffff", this.rowEven = this.rowEven || lighten_default(this.mainBkg, 20), this.transitionColor = this.transitionColor || this.lineColor, this.transitionLabelColor = this.transitionLabelColor || this.textColor, this.stateLabelColor = this.stateLabelColor || this.stateBkg || this.primaryTextColor, this.stateBkg = this.stateBkg || this.mainBkg, this.labelBackgroundColor = this.labelBackgroundColor || this.stateBkg, this.compositeBackground = this.compositeBackground || this.background || this.tertiaryColor, this.altBackground = this.altBackground || "#f0f0f0", this.compositeTitleBackground = this.compositeTitleBackground || this.mainBkg, this.compositeBorder = this.compositeBorder || this.nodeBorder, this.innerEndBackground = this.primaryBorderColor, this.specialStateColor = this.lineColor, this.errorBkgColor = this.errorBkgColor || this.tertiaryColor, this.errorTextColor = this.errorTextColor || this.tertiaryTextColor, this.transitionColor = this.transitionColor || this.lineColor, this.classText = this.primaryTextColor, this.fillType0 = this.primaryColor, this.fillType1 = this.secondaryColor, this.fillType2 = adjust_default(this.primaryColor, {
|
|
1577
1020
|
h: 64
|
|
@@ -1676,22 +1119,22 @@ let __tla = (async () => {
|
|
|
1676
1119
|
h: 120
|
|
1677
1120
|
}), this.darkMode ? (this.git0 = lighten_default(this.git0, 25), this.git1 = lighten_default(this.git1, 25), this.git2 = lighten_default(this.git2, 25), this.git3 = lighten_default(this.git3, 25), this.git4 = lighten_default(this.git4, 25), this.git5 = lighten_default(this.git5, 25), this.git6 = lighten_default(this.git6, 25), this.git7 = lighten_default(this.git7, 25)) : (this.git0 = darken_default(this.git0, 25), this.git1 = darken_default(this.git1, 25), this.git2 = darken_default(this.git2, 25), this.git3 = darken_default(this.git3, 25), this.git4 = darken_default(this.git4, 25), this.git5 = darken_default(this.git5, 25), this.git6 = darken_default(this.git6, 25), this.git7 = darken_default(this.git7, 25)), this.gitInv0 = this.gitInv0 || invert_default(this.git0), this.gitInv1 = this.gitInv1 || invert_default(this.git1), this.gitInv2 = this.gitInv2 || invert_default(this.git2), this.gitInv3 = this.gitInv3 || invert_default(this.git3), this.gitInv4 = this.gitInv4 || invert_default(this.git4), this.gitInv5 = this.gitInv5 || invert_default(this.git5), this.gitInv6 = this.gitInv6 || invert_default(this.git6), this.gitInv7 = this.gitInv7 || invert_default(this.git7), this.gitBranchLabel0 = this.gitBranchLabel0 || invert_default(this.labelTextColor), this.gitBranchLabel1 = this.gitBranchLabel1 || this.labelTextColor, this.gitBranchLabel2 = this.gitBranchLabel2 || this.labelTextColor, this.gitBranchLabel3 = this.gitBranchLabel3 || invert_default(this.labelTextColor), this.gitBranchLabel4 = this.gitBranchLabel4 || this.labelTextColor, this.gitBranchLabel5 = this.gitBranchLabel5 || this.labelTextColor, this.gitBranchLabel6 = this.gitBranchLabel6 || this.labelTextColor, this.gitBranchLabel7 = this.gitBranchLabel7 || this.labelTextColor, this.tagLabelColor = this.tagLabelColor || this.primaryTextColor, this.tagLabelBackground = this.tagLabelBackground || this.primaryColor, this.tagLabelBorder = this.tagBorder || this.primaryBorderColor, this.tagLabelFontSize = this.tagLabelFontSize || "10px", this.commitLabelColor = this.commitLabelColor || this.secondaryTextColor, this.commitLabelBackground = this.commitLabelBackground || this.secondaryColor, this.commitLabelFontSize = this.commitLabelFontSize || "10px", this.attributeBackgroundColorOdd = this.attributeBackgroundColorOdd || oldAttributeBackgroundColorOdd, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || oldAttributeBackgroundColorEven;
|
|
1678
1121
|
}
|
|
1679
|
-
calculate(
|
|
1680
|
-
if (typeof
|
|
1122
|
+
calculate(u) {
|
|
1123
|
+
if (typeof u != "object") {
|
|
1681
1124
|
this.updateColors();
|
|
1682
1125
|
return;
|
|
1683
1126
|
}
|
|
1684
|
-
let
|
|
1685
|
-
|
|
1686
|
-
this[
|
|
1687
|
-
}), this.updateColors(),
|
|
1688
|
-
this[
|
|
1127
|
+
let z = Object.keys(u);
|
|
1128
|
+
z.forEach((z2) => {
|
|
1129
|
+
this[z2] = u[z2];
|
|
1130
|
+
}), this.updateColors(), z.forEach((z2) => {
|
|
1131
|
+
this[z2] = u[z2];
|
|
1689
1132
|
});
|
|
1690
1133
|
}
|
|
1691
1134
|
}, __name(_e, "Theme"), _e);
|
|
1692
|
-
getThemeVariables4 = __name((
|
|
1693
|
-
let
|
|
1694
|
-
return
|
|
1135
|
+
getThemeVariables4 = __name((u) => {
|
|
1136
|
+
let z = new Theme4();
|
|
1137
|
+
return z.calculate(u), z;
|
|
1695
1138
|
}, "getThemeVariables");
|
|
1696
1139
|
Theme5 = (_f = class {
|
|
1697
1140
|
constructor() {
|
|
@@ -1702,14 +1145,14 @@ let __tla = (async () => {
|
|
|
1702
1145
|
updateColors() {
|
|
1703
1146
|
var _a2, _b2, _c2, _d2, _e2, _f2, _g2, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t, _u;
|
|
1704
1147
|
this.secondBkg = lighten_default(this.contrast, 55), this.border2 = this.contrast, this.actorBorder = lighten_default(this.border1, 23), this.actorBkg = this.mainBkg, this.actorTextColor = this.text, this.actorLineColor = this.actorBorder, this.signalColor = this.text, this.signalTextColor = this.text, this.labelBoxBkgColor = this.actorBkg, this.labelBoxBorderColor = this.actorBorder, this.labelTextColor = this.text, this.loopTextColor = this.text, this.noteBorderColor = "#999", this.noteBkgColor = "#666", this.noteTextColor = "#fff", this.cScale0 = this.cScale0 || "#555", this.cScale1 = this.cScale1 || "#F4F4F4", this.cScale2 = this.cScale2 || "#555", this.cScale3 = this.cScale3 || "#BBB", this.cScale4 = this.cScale4 || "#777", this.cScale5 = this.cScale5 || "#999", this.cScale6 = this.cScale6 || "#DDD", this.cScale7 = this.cScale7 || "#FFF", this.cScale8 = this.cScale8 || "#DDD", this.cScale9 = this.cScale9 || "#BBB", this.cScale10 = this.cScale10 || "#999", this.cScale11 = this.cScale11 || "#777";
|
|
1705
|
-
for (let
|
|
1706
|
-
for (let
|
|
1148
|
+
for (let u = 0; u < this.THEME_COLOR_LIMIT; u++) this["cScaleInv" + u] = this["cScaleInv" + u] || invert_default(this["cScale" + u]);
|
|
1149
|
+
for (let u = 0; u < this.THEME_COLOR_LIMIT; u++) this.darkMode ? this["cScalePeer" + u] = this["cScalePeer" + u] || lighten_default(this["cScale" + u], 10) : this["cScalePeer" + u] = this["cScalePeer" + u] || darken_default(this["cScale" + u], 10);
|
|
1707
1150
|
this.scaleLabelColor = this.scaleLabelColor || (this.darkMode ? "black" : this.labelTextColor), this.cScaleLabel0 = this.cScaleLabel0 || this.cScale1, this.cScaleLabel2 = this.cScaleLabel2 || this.cScale1;
|
|
1708
|
-
for (let
|
|
1709
|
-
for (let
|
|
1710
|
-
l: -(5 +
|
|
1711
|
-
}), this["surfacePeer" +
|
|
1712
|
-
l: -(8 +
|
|
1151
|
+
for (let u = 0; u < this.THEME_COLOR_LIMIT; u++) this["cScaleLabel" + u] = this["cScaleLabel" + u] || this.scaleLabelColor;
|
|
1152
|
+
for (let u = 0; u < 5; u++) this["surface" + u] = this["surface" + u] || adjust_default(this.mainBkg, {
|
|
1153
|
+
l: -(5 + u * 5)
|
|
1154
|
+
}), this["surfacePeer" + u] = this["surfacePeer" + u] || adjust_default(this.mainBkg, {
|
|
1155
|
+
l: -(8 + u * 5)
|
|
1713
1156
|
});
|
|
1714
1157
|
this.nodeBkg = this.mainBkg, this.nodeBorder = this.border1, this.clusterBkg = this.secondBkg, this.clusterBorder = this.border2, this.defaultLinkColor = this.lineColor, this.titleColor = this.text, this.sectionBkgColor = lighten_default(this.contrast, 30), this.sectionBkgColor2 = lighten_default(this.contrast, 30), this.taskBorderColor = darken_default(this.contrast, 10), this.taskBkgColor = this.contrast, this.taskTextColor = this.taskTextLightColor, this.taskTextDarkColor = this.text, this.taskTextOutsideColor = this.taskTextDarkColor, this.activeTaskBorderColor = this.taskBorderColor, this.activeTaskBkgColor = this.mainBkg, this.gridColor = lighten_default(this.border1, 30), this.doneTaskBkgColor = this.done, this.doneTaskBorderColor = this.lineColor, this.critBkgColor = this.critical, this.critBorderColor = darken_default(this.critBkgColor, 10), this.todayLineColor = this.critBkgColor, this.vertLineColor = this.critBkgColor, this.archEdgeColor = this.lineColor, this.archEdgeArrowColor = this.lineColor, this.transitionColor = this.transitionColor || "#000", this.transitionLabelColor = this.transitionLabelColor || this.textColor, this.stateLabelColor = this.stateLabelColor || this.stateBkg || this.primaryTextColor, this.stateBkg = this.stateBkg || this.mainBkg, this.labelBackgroundColor = this.labelBackgroundColor || this.stateBkg, this.compositeBackground = this.compositeBackground || this.background || this.tertiaryColor, this.altBackground = this.altBackground || "#f4f4f4", this.compositeTitleBackground = this.compositeTitleBackground || this.mainBkg, this.stateBorder = this.stateBorder || "#000", this.innerEndBackground = this.primaryBorderColor, this.specialStateColor = "#222", this.errorBkgColor = this.errorBkgColor || this.tertiaryColor, this.errorTextColor = this.errorTextColor || this.tertiaryTextColor, this.classText = this.primaryTextColor, this.fillType0 = this.primaryColor, this.fillType1 = this.secondaryColor, this.fillType2 = adjust_default(this.primaryColor, {
|
|
1715
1158
|
h: 64
|
|
@@ -1724,7 +1167,7 @@ let __tla = (async () => {
|
|
|
1724
1167
|
}), this.fillType7 = adjust_default(this.secondaryColor, {
|
|
1725
1168
|
h: 128
|
|
1726
1169
|
});
|
|
1727
|
-
for (let
|
|
1170
|
+
for (let u = 0; u < this.THEME_COLOR_LIMIT; u++) this["pie" + u] = this["cScale" + u];
|
|
1728
1171
|
this.pie12 = this.pie0, this.pieTitleTextSize = this.pieTitleTextSize || "25px", this.pieTitleTextColor = this.pieTitleTextColor || this.taskTextDarkColor, this.pieSectionTextSize = this.pieSectionTextSize || "17px", this.pieSectionTextColor = this.pieSectionTextColor || this.textColor, this.pieLegendTextSize = this.pieLegendTextSize || "17px", this.pieLegendTextColor = this.pieLegendTextColor || this.taskTextDarkColor, this.pieStrokeColor = this.pieStrokeColor || "black", this.pieStrokeWidth = this.pieStrokeWidth || "2px", this.pieOuterStrokeWidth = this.pieOuterStrokeWidth || "2px", this.pieOuterStrokeColor = this.pieOuterStrokeColor || "black", this.pieOpacity = this.pieOpacity || "0.7", this.quadrant1Fill = this.quadrant1Fill || this.primaryColor, this.quadrant2Fill = this.quadrant2Fill || adjust_default(this.primaryColor, {
|
|
1729
1172
|
r: 5,
|
|
1730
1173
|
g: 5,
|
|
@@ -1784,16 +1227,16 @@ let __tla = (async () => {
|
|
|
1784
1227
|
h: 120
|
|
1785
1228
|
}), this.gitInv0 = this.gitInv0 || invert_default(this.git0), this.gitInv1 = this.gitInv1 || invert_default(this.git1), this.gitInv2 = this.gitInv2 || invert_default(this.git2), this.gitInv3 = this.gitInv3 || invert_default(this.git3), this.gitInv4 = this.gitInv4 || invert_default(this.git4), this.gitInv5 = this.gitInv5 || invert_default(this.git5), this.gitInv6 = this.gitInv6 || invert_default(this.git6), this.gitInv7 = this.gitInv7 || invert_default(this.git7), this.branchLabelColor = this.branchLabelColor || this.labelTextColor, this.gitBranchLabel0 = this.branchLabelColor, this.gitBranchLabel1 = "white", this.gitBranchLabel2 = this.branchLabelColor, this.gitBranchLabel3 = "white", this.gitBranchLabel4 = this.branchLabelColor, this.gitBranchLabel5 = this.branchLabelColor, this.gitBranchLabel6 = this.branchLabelColor, this.gitBranchLabel7 = this.branchLabelColor, this.tagLabelColor = this.tagLabelColor || this.primaryTextColor, this.tagLabelBackground = this.tagLabelBackground || this.primaryColor, this.tagLabelBorder = this.tagBorder || this.primaryBorderColor, this.tagLabelFontSize = this.tagLabelFontSize || "10px", this.commitLabelColor = this.commitLabelColor || this.secondaryTextColor, this.commitLabelBackground = this.commitLabelBackground || this.secondaryColor, this.commitLabelFontSize = this.commitLabelFontSize || "10px", this.attributeBackgroundColorOdd = this.attributeBackgroundColorOdd || oldAttributeBackgroundColorOdd, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || oldAttributeBackgroundColorEven;
|
|
1786
1229
|
}
|
|
1787
|
-
calculate(
|
|
1788
|
-
if (typeof
|
|
1230
|
+
calculate(u) {
|
|
1231
|
+
if (typeof u != "object") {
|
|
1789
1232
|
this.updateColors();
|
|
1790
1233
|
return;
|
|
1791
1234
|
}
|
|
1792
|
-
let
|
|
1793
|
-
|
|
1794
|
-
this[
|
|
1795
|
-
}), this.updateColors(),
|
|
1796
|
-
this[
|
|
1235
|
+
let z = Object.keys(u);
|
|
1236
|
+
z.forEach((z2) => {
|
|
1237
|
+
this[z2] = u[z2];
|
|
1238
|
+
}), this.updateColors(), z.forEach((z2) => {
|
|
1239
|
+
this[z2] = u[z2];
|
|
1797
1240
|
});
|
|
1798
1241
|
}
|
|
1799
1242
|
}, __name(_f, "Theme"), _f);
|
|
@@ -1811,9 +1254,9 @@ let __tla = (async () => {
|
|
|
1811
1254
|
getThemeVariables: getThemeVariables4
|
|
1812
1255
|
},
|
|
1813
1256
|
neutral: {
|
|
1814
|
-
getThemeVariables: __name((
|
|
1815
|
-
let
|
|
1816
|
-
return
|
|
1257
|
+
getThemeVariables: __name((u) => {
|
|
1258
|
+
let z = new Theme5();
|
|
1259
|
+
return z.calculate(u), z;
|
|
1817
1260
|
}, "getThemeVariables")
|
|
1818
1261
|
}
|
|
1819
1262
|
};
|
|
@@ -2547,224 +1990,224 @@ let __tla = (async () => {
|
|
|
2547
1990
|
valueFormat: ","
|
|
2548
1991
|
}
|
|
2549
1992
|
};
|
|
2550
|
-
keyify = __name((
|
|
2551
|
-
...
|
|
2552
|
-
|
|
2553
|
-
...keyify(
|
|
1993
|
+
keyify = __name((u, z = "") => Object.keys(u).reduce((B, V) => Array.isArray(u[V]) ? B : typeof u[V] == "object" && u[V] !== null ? [
|
|
1994
|
+
...B,
|
|
1995
|
+
z + V,
|
|
1996
|
+
...keyify(u[V], "")
|
|
2554
1997
|
] : [
|
|
2555
|
-
...
|
|
2556
|
-
|
|
1998
|
+
...B,
|
|
1999
|
+
z + V
|
|
2557
2000
|
], []), "keyify");
|
|
2558
2001
|
configKeys = new Set(keyify(config, ""));
|
|
2559
2002
|
defaultConfig_default = config;
|
|
2560
|
-
sanitizeDirective = __name((
|
|
2561
|
-
if (log.debug("sanitizeDirective called with",
|
|
2562
|
-
if (Array.isArray(
|
|
2563
|
-
|
|
2003
|
+
sanitizeDirective = __name((u) => {
|
|
2004
|
+
if (log.debug("sanitizeDirective called with", u), !(typeof u != "object" || !u)) {
|
|
2005
|
+
if (Array.isArray(u)) {
|
|
2006
|
+
u.forEach((u2) => sanitizeDirective(u2));
|
|
2564
2007
|
return;
|
|
2565
2008
|
}
|
|
2566
|
-
for (let
|
|
2567
|
-
if (log.debug("Checking key",
|
|
2568
|
-
log.debug("sanitize deleting key: ",
|
|
2009
|
+
for (let z of Object.keys(u)) {
|
|
2010
|
+
if (log.debug("Checking key", z), z.startsWith("__") || z.includes("proto") || z.includes("constr") || !configKeys.has(z) || u[z] == null) {
|
|
2011
|
+
log.debug("sanitize deleting key: ", z), delete u[z];
|
|
2569
2012
|
continue;
|
|
2570
2013
|
}
|
|
2571
|
-
if (typeof
|
|
2572
|
-
log.debug("sanitizing object",
|
|
2014
|
+
if (typeof u[z] == "object") {
|
|
2015
|
+
log.debug("sanitizing object", z), sanitizeDirective(u[z]);
|
|
2573
2016
|
continue;
|
|
2574
2017
|
}
|
|
2575
|
-
for (let
|
|
2018
|
+
for (let V of [
|
|
2576
2019
|
"themeCSS",
|
|
2577
2020
|
"fontFamily",
|
|
2578
2021
|
"altFontFamily"
|
|
2579
|
-
])
|
|
2022
|
+
]) z.includes(V) && (log.debug("sanitizing css option", z), u[z] = sanitizeCss(u[z]));
|
|
2580
2023
|
}
|
|
2581
|
-
if (
|
|
2582
|
-
let
|
|
2583
|
-
(
|
|
2024
|
+
if (u.themeVariables) for (let z of Object.keys(u.themeVariables)) {
|
|
2025
|
+
let B = u.themeVariables[z];
|
|
2026
|
+
(B == null ? void 0 : B.match) && !B.match(/^[\d "#%(),.;A-Za-z]+$/) && (u.themeVariables[z] = "");
|
|
2584
2027
|
}
|
|
2585
|
-
log.debug("After sanitization",
|
|
2028
|
+
log.debug("After sanitization", u);
|
|
2586
2029
|
}
|
|
2587
2030
|
}, "sanitizeDirective");
|
|
2588
|
-
sanitizeCss = __name((
|
|
2589
|
-
let
|
|
2590
|
-
for (let
|
|
2591
|
-
if (
|
|
2592
|
-
|
|
2031
|
+
sanitizeCss = __name((u) => {
|
|
2032
|
+
let z = 0, B = 0;
|
|
2033
|
+
for (let V of u) {
|
|
2034
|
+
if (z < B) return "{ /* ERROR: Unbalanced CSS */ }";
|
|
2035
|
+
V === "{" ? z++ : V === "}" && B++;
|
|
2593
2036
|
}
|
|
2594
|
-
return
|
|
2037
|
+
return z === B ? u : "{ /* ERROR: Unbalanced CSS */ }";
|
|
2595
2038
|
}, "sanitizeCss");
|
|
2596
2039
|
defaultConfig = Object.freeze(defaultConfig_default);
|
|
2597
2040
|
siteConfig = assignWithDepth_default({}, defaultConfig);
|
|
2598
2041
|
directives = [];
|
|
2599
2042
|
currentConfig = assignWithDepth_default({}, defaultConfig);
|
|
2600
|
-
updateCurrentConfig = __name((
|
|
2601
|
-
let
|
|
2602
|
-
for (let
|
|
2603
|
-
if (
|
|
2604
|
-
let
|
|
2605
|
-
|
|
2043
|
+
updateCurrentConfig = __name((u, z) => {
|
|
2044
|
+
let B = assignWithDepth_default({}, u), V = {};
|
|
2045
|
+
for (let u2 of z) sanitize(u2), V = assignWithDepth_default(V, u2);
|
|
2046
|
+
if (B = assignWithDepth_default(B, V), V.theme && V.theme in themes_default) {
|
|
2047
|
+
let u2 = assignWithDepth_default(assignWithDepth_default({}, configFromInitialize).themeVariables || {}, V.themeVariables);
|
|
2048
|
+
B.theme && B.theme in themes_default && (B.themeVariables = themes_default[B.theme].getThemeVariables(u2));
|
|
2606
2049
|
}
|
|
2607
|
-
return currentConfig =
|
|
2050
|
+
return currentConfig = B, checkConfig(currentConfig), currentConfig;
|
|
2608
2051
|
}, "updateCurrentConfig");
|
|
2609
|
-
setSiteConfig = __name((
|
|
2610
|
-
saveConfigFromInitialize = __name((
|
|
2611
|
-
configFromInitialize = assignWithDepth_default({},
|
|
2052
|
+
setSiteConfig = __name((u) => (siteConfig = assignWithDepth_default({}, defaultConfig), siteConfig = assignWithDepth_default(siteConfig, u), u.theme && themes_default[u.theme] && (siteConfig.themeVariables = themes_default[u.theme].getThemeVariables(u.themeVariables)), updateCurrentConfig(siteConfig, directives), siteConfig), "setSiteConfig");
|
|
2053
|
+
saveConfigFromInitialize = __name((u) => {
|
|
2054
|
+
configFromInitialize = assignWithDepth_default({}, u);
|
|
2612
2055
|
}, "saveConfigFromInitialize");
|
|
2613
|
-
updateSiteConfig = __name((
|
|
2056
|
+
updateSiteConfig = __name((u) => (siteConfig = assignWithDepth_default(siteConfig, u), updateCurrentConfig(siteConfig, directives), siteConfig), "updateSiteConfig");
|
|
2614
2057
|
getSiteConfig = __name(() => assignWithDepth_default({}, siteConfig), "getSiteConfig");
|
|
2615
|
-
setConfig = __name((
|
|
2058
|
+
setConfig = __name((u) => (checkConfig(u), assignWithDepth_default(currentConfig, u), getConfig()), "setConfig");
|
|
2616
2059
|
getConfig = __name(() => assignWithDepth_default({}, currentConfig), "getConfig");
|
|
2617
|
-
sanitize = __name((
|
|
2618
|
-
|
|
2060
|
+
sanitize = __name((u) => {
|
|
2061
|
+
u && ([
|
|
2619
2062
|
"secure",
|
|
2620
2063
|
...siteConfig.secure ?? []
|
|
2621
|
-
].forEach((
|
|
2622
|
-
Object.hasOwn(
|
|
2623
|
-
}), Object.keys(
|
|
2624
|
-
|
|
2625
|
-
}), Object.keys(
|
|
2626
|
-
typeof
|
|
2064
|
+
].forEach((z) => {
|
|
2065
|
+
Object.hasOwn(u, z) && (log.debug(`Denied attempt to modify a secure key ${z}`, u[z]), delete u[z]);
|
|
2066
|
+
}), Object.keys(u).forEach((z) => {
|
|
2067
|
+
z.startsWith("__") && delete u[z];
|
|
2068
|
+
}), Object.keys(u).forEach((z) => {
|
|
2069
|
+
typeof u[z] == "string" && (u[z].includes("<") || u[z].includes(">") || u[z].includes("url(data:")) && delete u[z], typeof u[z] == "object" && sanitize(u[z]);
|
|
2627
2070
|
}));
|
|
2628
2071
|
}, "sanitize");
|
|
2629
|
-
addDirective = __name((
|
|
2072
|
+
addDirective = __name((u) => {
|
|
2630
2073
|
var _a2;
|
|
2631
|
-
sanitizeDirective(
|
|
2632
|
-
...
|
|
2633
|
-
fontFamily:
|
|
2634
|
-
}), directives.push(
|
|
2074
|
+
sanitizeDirective(u), u.fontFamily && !((_a2 = u.themeVariables) == null ? void 0 : _a2.fontFamily) && (u.themeVariables = {
|
|
2075
|
+
...u.themeVariables,
|
|
2076
|
+
fontFamily: u.fontFamily
|
|
2077
|
+
}), directives.push(u), updateCurrentConfig(siteConfig, directives);
|
|
2635
2078
|
}, "addDirective");
|
|
2636
|
-
reset = __name((
|
|
2637
|
-
directives = [], updateCurrentConfig(
|
|
2079
|
+
reset = __name((u = siteConfig) => {
|
|
2080
|
+
directives = [], updateCurrentConfig(u, directives);
|
|
2638
2081
|
}, "reset");
|
|
2639
2082
|
ConfigWarning = {
|
|
2640
2083
|
LAZY_LOAD_DEPRECATED: "The configuration options lazyLoadedDiagrams and loadExternalDiagramsAtStartup are deprecated. Please use registerExternalDiagrams instead."
|
|
2641
2084
|
};
|
|
2642
2085
|
issuedWarnings = {};
|
|
2643
|
-
issueWarning = __name((
|
|
2644
|
-
issuedWarnings[
|
|
2086
|
+
issueWarning = __name((u) => {
|
|
2087
|
+
issuedWarnings[u] || (log.warn(ConfigWarning[u]), issuedWarnings[u] = true);
|
|
2645
2088
|
}, "issueWarning");
|
|
2646
|
-
checkConfig = __name((
|
|
2647
|
-
|
|
2089
|
+
checkConfig = __name((u) => {
|
|
2090
|
+
u && (u.lazyLoadedDiagrams || u.loadExternalDiagramsAtStartup) && issueWarning("LAZY_LOAD_DEPRECATED");
|
|
2648
2091
|
}, "checkConfig");
|
|
2649
2092
|
getUserDefinedConfig = __name(() => {
|
|
2650
|
-
let
|
|
2651
|
-
configFromInitialize && (
|
|
2652
|
-
for (let
|
|
2653
|
-
return
|
|
2093
|
+
let u = {};
|
|
2094
|
+
configFromInitialize && (u = assignWithDepth_default(u, configFromInitialize));
|
|
2095
|
+
for (let z of directives) u = assignWithDepth_default(u, z);
|
|
2096
|
+
return u;
|
|
2654
2097
|
}, "getUserDefinedConfig");
|
|
2655
2098
|
lineBreakRegex = /<br\s*\/?>/gi;
|
|
2656
|
-
getRows = __name((
|
|
2099
|
+
getRows = __name((u) => u ? breakToPlaceholder(u).replace(/\\n/g, "#br#").split("#br#") : [
|
|
2657
2100
|
""
|
|
2658
2101
|
], "getRows");
|
|
2659
2102
|
setupDompurifyHooksIfNotSetup = /* @__PURE__ */ (() => {
|
|
2660
|
-
let
|
|
2103
|
+
let u = false;
|
|
2661
2104
|
return () => {
|
|
2662
|
-
|
|
2105
|
+
u || (u = (setupDompurifyHooks(), true));
|
|
2663
2106
|
};
|
|
2664
2107
|
})();
|
|
2665
2108
|
function setupDompurifyHooks() {
|
|
2666
|
-
let
|
|
2667
|
-
purify.addHook("beforeSanitizeAttributes", (
|
|
2668
|
-
|
|
2669
|
-
}), purify.addHook("afterSanitizeAttributes", (
|
|
2670
|
-
|
|
2109
|
+
let z = "data-temp-href-target";
|
|
2110
|
+
purify.addHook("beforeSanitizeAttributes", (u) => {
|
|
2111
|
+
u.tagName === "A" && u.hasAttribute("target") && u.setAttribute(z, u.getAttribute("target") ?? "");
|
|
2112
|
+
}), purify.addHook("afterSanitizeAttributes", (u) => {
|
|
2113
|
+
u.tagName === "A" && u.hasAttribute(z) && (u.setAttribute("target", u.getAttribute(z) ?? ""), u.removeAttribute(z), u.getAttribute("target") === "_blank" && u.setAttribute("rel", "noopener"));
|
|
2671
2114
|
});
|
|
2672
2115
|
}
|
|
2673
2116
|
__name(setupDompurifyHooks, "setupDompurifyHooks");
|
|
2674
2117
|
let removeScript, sanitizeMore, sanitizeTextOrArray, hasBreaks, splitBreaks, placeholderToBreak, breakToPlaceholder, getMax, getMin, countOccurrence, shouldCombineSets, processSet, isMathMLSupported, katexRegex, renderKatexUnsanitized, d3Attrs, calculateSvgSizeAttrs, themes, getStyles, addStylesForDiagram;
|
|
2675
|
-
removeScript = __name((
|
|
2676
|
-
sanitizeMore = __name((
|
|
2118
|
+
removeScript = __name((z) => (setupDompurifyHooksIfNotSetup(), purify.sanitize(z)), "removeScript");
|
|
2119
|
+
sanitizeMore = __name((u, z) => {
|
|
2677
2120
|
var _a2;
|
|
2678
|
-
if (((_a2 =
|
|
2679
|
-
let
|
|
2680
|
-
|
|
2121
|
+
if (((_a2 = z.flowchart) == null ? void 0 : _a2.htmlLabels) !== false) {
|
|
2122
|
+
let B = z.securityLevel;
|
|
2123
|
+
B === "antiscript" || B === "strict" ? u = removeScript(u) : B !== "loose" && (u = breakToPlaceholder(u), u = u.replace(/</g, "<").replace(/>/g, ">"), u = u.replace(/=/g, "="), u = placeholderToBreak(u));
|
|
2681
2124
|
}
|
|
2682
|
-
return
|
|
2125
|
+
return u;
|
|
2683
2126
|
}, "sanitizeMore");
|
|
2684
|
-
sanitizeText = __name((
|
|
2127
|
+
sanitizeText = __name((z, B) => z && (z = B.dompurifyConfig ? purify.sanitize(sanitizeMore(z, B), B.dompurifyConfig).toString() : purify.sanitize(sanitizeMore(z, B), {
|
|
2685
2128
|
FORBID_TAGS: [
|
|
2686
2129
|
"style"
|
|
2687
2130
|
]
|
|
2688
|
-
}).toString(),
|
|
2689
|
-
sanitizeTextOrArray = __name((
|
|
2690
|
-
hasBreaks = __name((
|
|
2691
|
-
splitBreaks = __name((
|
|
2692
|
-
placeholderToBreak = __name((
|
|
2693
|
-
breakToPlaceholder = __name((
|
|
2694
|
-
getUrl = __name((
|
|
2695
|
-
let
|
|
2696
|
-
return
|
|
2131
|
+
}).toString(), z), "sanitizeText");
|
|
2132
|
+
sanitizeTextOrArray = __name((u, z) => typeof u == "string" ? sanitizeText(u, z) : u.flat().map((u2) => sanitizeText(u2, z)), "sanitizeTextOrArray");
|
|
2133
|
+
hasBreaks = __name((u) => lineBreakRegex.test(u), "hasBreaks");
|
|
2134
|
+
splitBreaks = __name((u) => u.split(lineBreakRegex), "splitBreaks");
|
|
2135
|
+
placeholderToBreak = __name((u) => u.replace(/#br#/g, "<br/>"), "placeholderToBreak");
|
|
2136
|
+
breakToPlaceholder = __name((u) => u.replace(lineBreakRegex, "#br#"), "breakToPlaceholder");
|
|
2137
|
+
getUrl = __name((u) => {
|
|
2138
|
+
let z = "";
|
|
2139
|
+
return u && (z = window.location.protocol + "//" + window.location.host + window.location.pathname + window.location.search, z = CSS.escape(z)), z;
|
|
2697
2140
|
}, "getUrl");
|
|
2698
|
-
evaluate = __name((
|
|
2141
|
+
evaluate = __name((u) => !(u === false || [
|
|
2699
2142
|
"false",
|
|
2700
2143
|
"null",
|
|
2701
2144
|
"0"
|
|
2702
|
-
].includes(String(
|
|
2703
|
-
getMax = __name(function(...
|
|
2704
|
-
let
|
|
2705
|
-
return Math.max(...
|
|
2145
|
+
].includes(String(u).trim().toLowerCase())), "evaluate");
|
|
2146
|
+
getMax = __name(function(...u) {
|
|
2147
|
+
let z = u.filter((u2) => !isNaN(u2));
|
|
2148
|
+
return Math.max(...z);
|
|
2706
2149
|
}, "getMax");
|
|
2707
|
-
getMin = __name(function(...
|
|
2708
|
-
let
|
|
2709
|
-
return Math.min(...
|
|
2150
|
+
getMin = __name(function(...u) {
|
|
2151
|
+
let z = u.filter((u2) => !isNaN(u2));
|
|
2152
|
+
return Math.min(...z);
|
|
2710
2153
|
}, "getMin");
|
|
2711
|
-
parseGenericTypes = __name(function(
|
|
2712
|
-
let
|
|
2713
|
-
for (let
|
|
2714
|
-
let
|
|
2715
|
-
if (
|
|
2716
|
-
let
|
|
2717
|
-
shouldCombineSets(
|
|
2154
|
+
parseGenericTypes = __name(function(u) {
|
|
2155
|
+
let z = u.split(/(,)/), B = [];
|
|
2156
|
+
for (let u2 = 0; u2 < z.length; u2++) {
|
|
2157
|
+
let V = z[u2];
|
|
2158
|
+
if (V === "," && u2 > 0 && u2 + 1 < z.length) {
|
|
2159
|
+
let H = z[u2 - 1], U = z[u2 + 1];
|
|
2160
|
+
shouldCombineSets(H, U) && (V = H + "," + U, u2++, B.pop());
|
|
2718
2161
|
}
|
|
2719
|
-
|
|
2162
|
+
B.push(processSet(V));
|
|
2720
2163
|
}
|
|
2721
|
-
return
|
|
2164
|
+
return B.join("");
|
|
2722
2165
|
}, "parseGenericTypes");
|
|
2723
|
-
countOccurrence = __name((
|
|
2724
|
-
shouldCombineSets = __name((
|
|
2725
|
-
let
|
|
2726
|
-
return
|
|
2166
|
+
countOccurrence = __name((u, z) => Math.max(0, u.split(z).length - 1), "countOccurrence");
|
|
2167
|
+
shouldCombineSets = __name((u, z) => {
|
|
2168
|
+
let B = countOccurrence(u, "~"), V = countOccurrence(z, "~");
|
|
2169
|
+
return B === 1 && V === 1;
|
|
2727
2170
|
}, "shouldCombineSets");
|
|
2728
|
-
processSet = __name((
|
|
2729
|
-
let
|
|
2730
|
-
if (
|
|
2731
|
-
|
|
2732
|
-
let
|
|
2733
|
-
...
|
|
2734
|
-
],
|
|
2735
|
-
for (;
|
|
2736
|
-
return
|
|
2171
|
+
processSet = __name((u) => {
|
|
2172
|
+
let z = countOccurrence(u, "~"), B = false;
|
|
2173
|
+
if (z <= 1) return u;
|
|
2174
|
+
z % 2 != 0 && u.startsWith("~") && (u = u.substring(1), B = true);
|
|
2175
|
+
let V = [
|
|
2176
|
+
...u
|
|
2177
|
+
], H = V.indexOf("~"), U = V.lastIndexOf("~");
|
|
2178
|
+
for (; H !== -1 && U !== -1 && H !== U; ) V[H] = "<", V[U] = ">", H = V.indexOf("~"), U = V.lastIndexOf("~");
|
|
2179
|
+
return B && V.unshift("~"), V.join("");
|
|
2737
2180
|
}, "processSet");
|
|
2738
2181
|
isMathMLSupported = __name(() => window.MathMLElement !== void 0, "isMathMLSupported");
|
|
2739
2182
|
katexRegex = /\$\$(.*)\$\$/g;
|
|
2740
|
-
hasKatex = __name((
|
|
2183
|
+
hasKatex = __name((u) => {
|
|
2741
2184
|
var _a2;
|
|
2742
|
-
return (((_a2 =
|
|
2185
|
+
return (((_a2 = u.match(katexRegex)) == null ? void 0 : _a2.length) ?? 0) > 0;
|
|
2743
2186
|
}, "hasKatex");
|
|
2744
|
-
calculateMathMLDimensions = __name(async (
|
|
2187
|
+
calculateMathMLDimensions = __name(async (u, z) => {
|
|
2745
2188
|
var _a2;
|
|
2746
|
-
let
|
|
2747
|
-
|
|
2748
|
-
let
|
|
2749
|
-
width:
|
|
2750
|
-
height:
|
|
2189
|
+
let B = document.createElement("div");
|
|
2190
|
+
B.innerHTML = await renderKatexSanitized(u, z), B.id = "katex-temp", B.style.visibility = "hidden", B.style.position = "absolute", B.style.top = "0", (_a2 = document.querySelector("body")) == null ? void 0 : _a2.insertAdjacentElement("beforeend", B);
|
|
2191
|
+
let V = {
|
|
2192
|
+
width: B.clientWidth,
|
|
2193
|
+
height: B.clientHeight
|
|
2751
2194
|
};
|
|
2752
|
-
return
|
|
2195
|
+
return B.remove(), V;
|
|
2753
2196
|
}, "calculateMathMLDimensions");
|
|
2754
|
-
renderKatexUnsanitized = __name(async (
|
|
2755
|
-
if (!hasKatex(
|
|
2756
|
-
if (!(isMathMLSupported() ||
|
|
2197
|
+
renderKatexUnsanitized = __name(async (u, z) => {
|
|
2198
|
+
if (!hasKatex(u)) return u;
|
|
2199
|
+
if (!(isMathMLSupported() || z.legacyMathML || z.forceLegacyMathML)) return u.replace(katexRegex, "MathML is unsupported in this environment.");
|
|
2757
2200
|
{
|
|
2758
|
-
let { default:
|
|
2759
|
-
return
|
|
2201
|
+
let { default: B } = await import("./katex-C-g3rKKt.js"), V = z.forceLegacyMathML || !isMathMLSupported() && z.legacyMathML ? "htmlAndMathml" : "mathml";
|
|
2202
|
+
return u.split(lineBreakRegex).map((u2) => hasKatex(u2) ? `<div style="display: flex; align-items: center; justify-content: center; white-space: nowrap;">${u2}</div>` : `<div>${u2}</div>`).join("").replace(katexRegex, (u2, z2) => B.renderToString(z2, {
|
|
2760
2203
|
throwOnError: true,
|
|
2761
2204
|
displayMode: true,
|
|
2762
|
-
output:
|
|
2205
|
+
output: V
|
|
2763
2206
|
}).replace(/\n/g, " ").replace(/<annotation.*<\/annotation>/g, ""));
|
|
2764
2207
|
}
|
|
2765
|
-
return
|
|
2208
|
+
return u.replace(katexRegex, "Katex is not supported in @mermaid-js/tiny. Please use the full mermaid library.");
|
|
2766
2209
|
}, "renderKatexUnsanitized");
|
|
2767
|
-
renderKatexSanitized = __name(async (
|
|
2210
|
+
renderKatexSanitized = __name(async (u, z) => sanitizeText(await renderKatexUnsanitized(u, z), z), "renderKatexSanitized");
|
|
2768
2211
|
common_default = {
|
|
2769
2212
|
getRows,
|
|
2770
2213
|
sanitizeText,
|
|
@@ -2778,32 +2221,31 @@ let __tla = (async () => {
|
|
|
2778
2221
|
getMax,
|
|
2779
2222
|
getMin
|
|
2780
2223
|
};
|
|
2781
|
-
d3Attrs = __name(function(
|
|
2782
|
-
for (let
|
|
2224
|
+
d3Attrs = __name(function(u, z) {
|
|
2225
|
+
for (let B of z) u.attr(B[0], B[1]);
|
|
2783
2226
|
}, "d3Attrs");
|
|
2784
|
-
calculateSvgSizeAttrs = __name(function(
|
|
2785
|
-
let
|
|
2786
|
-
return
|
|
2227
|
+
calculateSvgSizeAttrs = __name(function(u, z, B) {
|
|
2228
|
+
let V = /* @__PURE__ */ new Map();
|
|
2229
|
+
return B ? (V.set("width", "100%"), V.set("style", `max-width: ${z}px;`)) : (V.set("height", u), V.set("width", z)), V;
|
|
2787
2230
|
}, "calculateSvgSizeAttrs");
|
|
2788
|
-
configureSvgSize = __name(function(
|
|
2789
|
-
|
|
2790
|
-
d3Attrs(e, i);
|
|
2231
|
+
configureSvgSize = __name(function(u, z, B, V) {
|
|
2232
|
+
d3Attrs(u, calculateSvgSizeAttrs(z, B, V));
|
|
2791
2233
|
}, "configureSvgSize");
|
|
2792
|
-
setupGraphViewbox = __name(function(
|
|
2793
|
-
let
|
|
2794
|
-
log.info(`SVG bounds: ${
|
|
2795
|
-
let
|
|
2796
|
-
log.info(`Graph bounds: ${
|
|
2797
|
-
let
|
|
2798
|
-
|
|
2234
|
+
setupGraphViewbox = __name(function(u, z, V, H) {
|
|
2235
|
+
let U = z.node().getBBox(), W = U.width, G = U.height;
|
|
2236
|
+
log.info(`SVG bounds: ${W}x${G}`, U);
|
|
2237
|
+
let K = 0, q = 0;
|
|
2238
|
+
log.info(`Graph bounds: ${K}x${q}`, u), K = W + V * 2, q = G + V * 2, log.info(`Calculated bounds: ${K}x${q}`), configureSvgSize(z, q, K, H);
|
|
2239
|
+
let J = `${U.x - V} ${U.y - V} ${U.width + 2 * V} ${U.height + 2 * V}`;
|
|
2240
|
+
z.attr("viewBox", J);
|
|
2799
2241
|
}, "setupGraphViewbox");
|
|
2800
2242
|
themes = {};
|
|
2801
|
-
getStyles = __name((
|
|
2802
|
-
let
|
|
2803
|
-
return
|
|
2804
|
-
font-family: ${
|
|
2805
|
-
font-size: ${
|
|
2806
|
-
fill: ${
|
|
2243
|
+
getStyles = __name((u, z, V) => {
|
|
2244
|
+
let H = "";
|
|
2245
|
+
return u in themes && themes[u] ? H = themes[u](V) : log.warn(`No theme found for ${u}`), ` & {
|
|
2246
|
+
font-family: ${V.fontFamily};
|
|
2247
|
+
font-size: ${V.fontSize};
|
|
2248
|
+
fill: ${V.textColor}
|
|
2807
2249
|
}
|
|
2808
2250
|
@keyframes edge-animation-frame {
|
|
2809
2251
|
from {
|
|
@@ -2830,11 +2272,11 @@ let __tla = (async () => {
|
|
|
2830
2272
|
/* Classes common for multiple diagrams */
|
|
2831
2273
|
|
|
2832
2274
|
& .error-icon {
|
|
2833
|
-
fill: ${
|
|
2275
|
+
fill: ${V.errorBkgColor};
|
|
2834
2276
|
}
|
|
2835
2277
|
& .error-text {
|
|
2836
|
-
fill: ${
|
|
2837
|
-
stroke: ${
|
|
2278
|
+
fill: ${V.errorTextColor};
|
|
2279
|
+
stroke: ${V.errorTextColor};
|
|
2838
2280
|
}
|
|
2839
2281
|
|
|
2840
2282
|
& .edge-thickness-normal {
|
|
@@ -2858,28 +2300,28 @@ let __tla = (async () => {
|
|
|
2858
2300
|
}
|
|
2859
2301
|
|
|
2860
2302
|
& .marker {
|
|
2861
|
-
fill: ${
|
|
2862
|
-
stroke: ${
|
|
2303
|
+
fill: ${V.lineColor};
|
|
2304
|
+
stroke: ${V.lineColor};
|
|
2863
2305
|
}
|
|
2864
2306
|
& .marker.cross {
|
|
2865
|
-
stroke: ${
|
|
2307
|
+
stroke: ${V.lineColor};
|
|
2866
2308
|
}
|
|
2867
2309
|
|
|
2868
2310
|
& svg {
|
|
2869
|
-
font-family: ${
|
|
2870
|
-
font-size: ${
|
|
2311
|
+
font-family: ${V.fontFamily};
|
|
2312
|
+
font-size: ${V.fontSize};
|
|
2871
2313
|
}
|
|
2872
2314
|
& p {
|
|
2873
2315
|
margin: 0
|
|
2874
2316
|
}
|
|
2875
2317
|
|
|
2876
|
-
${
|
|
2318
|
+
${H}
|
|
2877
2319
|
|
|
2878
|
-
${
|
|
2320
|
+
${z}
|
|
2879
2321
|
`;
|
|
2880
2322
|
}, "getStyles");
|
|
2881
|
-
addStylesForDiagram = __name((
|
|
2882
|
-
|
|
2323
|
+
addStylesForDiagram = __name((u, z) => {
|
|
2324
|
+
z !== void 0 && (themes[u] = z);
|
|
2883
2325
|
}, "addStylesForDiagram");
|
|
2884
2326
|
styles_default = getStyles;
|
|
2885
2327
|
commonDb_exports = {};
|
|
@@ -2896,20 +2338,20 @@ let __tla = (async () => {
|
|
|
2896
2338
|
accTitle = "";
|
|
2897
2339
|
diagramTitle = "";
|
|
2898
2340
|
accDescription = "";
|
|
2899
|
-
sanitizeText2 = __name((
|
|
2341
|
+
sanitizeText2 = __name((u) => sanitizeText(u, getConfig()), "sanitizeText");
|
|
2900
2342
|
clear = __name(() => {
|
|
2901
2343
|
accTitle = "", accDescription = "", diagramTitle = "";
|
|
2902
2344
|
}, "clear");
|
|
2903
|
-
setAccTitle = __name((
|
|
2904
|
-
accTitle = sanitizeText2(
|
|
2345
|
+
setAccTitle = __name((u) => {
|
|
2346
|
+
accTitle = sanitizeText2(u).replace(/^\s+/g, "");
|
|
2905
2347
|
}, "setAccTitle");
|
|
2906
2348
|
getAccTitle = __name(() => accTitle, "getAccTitle");
|
|
2907
|
-
setAccDescription = __name((
|
|
2908
|
-
accDescription = sanitizeText2(
|
|
2349
|
+
setAccDescription = __name((u) => {
|
|
2350
|
+
accDescription = sanitizeText2(u).replace(/\n\s+/g, "\n");
|
|
2909
2351
|
}, "setAccDescription");
|
|
2910
2352
|
getAccDescription = __name(() => accDescription, "getAccDescription");
|
|
2911
|
-
setDiagramTitle = __name((
|
|
2912
|
-
diagramTitle = sanitizeText2(
|
|
2353
|
+
setDiagramTitle = __name((u) => {
|
|
2354
|
+
diagramTitle = sanitizeText2(u);
|
|
2913
2355
|
}, "setDiagramTitle");
|
|
2914
2356
|
getDiagramTitle = __name(() => diagramTitle, "getDiagramTitle");
|
|
2915
2357
|
log2 = log;
|
|
@@ -2917,27 +2359,27 @@ let __tla = (async () => {
|
|
|
2917
2359
|
getConfig2 = getConfig;
|
|
2918
2360
|
setConfig2 = setConfig;
|
|
2919
2361
|
defaultConfig2 = defaultConfig;
|
|
2920
|
-
sanitizeText3 = __name((
|
|
2362
|
+
sanitizeText3 = __name((u) => sanitizeText(u, getConfig2()), "sanitizeText");
|
|
2921
2363
|
setupGraphViewbox2 = setupGraphViewbox;
|
|
2922
2364
|
getCommonDb = __name(() => commonDb_exports, "getCommonDb");
|
|
2923
2365
|
diagrams = {};
|
|
2924
|
-
registerDiagram = __name((
|
|
2366
|
+
registerDiagram = __name((u, z, B) => {
|
|
2925
2367
|
var _a2;
|
|
2926
|
-
diagrams[
|
|
2368
|
+
diagrams[u] && log2.warn(`Diagram with id ${u} already registered. Overwriting.`), diagrams[u] = z, B && addDetector(u, B), addStylesForDiagram(u, z.styles), (_a2 = z.injectUtils) == null ? void 0 : _a2.call(z, log2, setLogLevel2, getConfig2, sanitizeText3, setupGraphViewbox2, getCommonDb(), () => {
|
|
2927
2369
|
});
|
|
2928
2370
|
}, "registerDiagram");
|
|
2929
|
-
getDiagram = __name((
|
|
2930
|
-
if (
|
|
2931
|
-
throw new DiagramNotFoundError(
|
|
2371
|
+
getDiagram = __name((u) => {
|
|
2372
|
+
if (u in diagrams) return diagrams[u];
|
|
2373
|
+
throw new DiagramNotFoundError(u);
|
|
2932
2374
|
}, "getDiagram");
|
|
2933
2375
|
DiagramNotFoundError = (_g = class extends Error {
|
|
2934
|
-
constructor(
|
|
2935
|
-
super(`Diagram ${
|
|
2376
|
+
constructor(u) {
|
|
2377
|
+
super(`Diagram ${u} not found.`);
|
|
2936
2378
|
}
|
|
2937
2379
|
}, __name(_g, "DiagramNotFoundError"), _g);
|
|
2938
2380
|
})();
|
|
2939
2381
|
export {
|
|
2940
|
-
|
|
2382
|
+
rgba_default as $,
|
|
2941
2383
|
parseGenericTypes as A,
|
|
2942
2384
|
setAccTitle as B,
|
|
2943
2385
|
getDiagramTitle as C,
|
|
@@ -2954,23 +2396,23 @@ export {
|
|
|
2954
2396
|
renderKatexSanitized as N,
|
|
2955
2397
|
hasKatex as O,
|
|
2956
2398
|
reset as P,
|
|
2957
|
-
|
|
2399
|
+
is_dark_default as Q,
|
|
2958
2400
|
saveConfigFromInitialize as R,
|
|
2959
2401
|
getDiagramLoader as S,
|
|
2960
2402
|
getThemeVariables3 as T,
|
|
2961
2403
|
setDiagramTitle as U,
|
|
2962
2404
|
setConfig as V,
|
|
2963
2405
|
setSiteConfig as W,
|
|
2964
|
-
|
|
2406
|
+
darken_default as X,
|
|
2965
2407
|
updateSiteConfig as Y,
|
|
2966
|
-
|
|
2408
|
+
lighten_default as Z,
|
|
2967
2409
|
getAccDescription as _,
|
|
2968
2410
|
__tla,
|
|
2969
2411
|
clear as a,
|
|
2970
2412
|
getConfig2 as b,
|
|
2971
2413
|
configureSvgSize as c,
|
|
2972
2414
|
defaultConfig_default as d,
|
|
2973
|
-
|
|
2415
|
+
color_default as et,
|
|
2974
2416
|
detectType as f,
|
|
2975
2417
|
frontMatterRegex as g,
|
|
2976
2418
|
evaluate as h,
|
|
@@ -2980,14 +2422,13 @@ export {
|
|
|
2980
2422
|
defaultConfig as l,
|
|
2981
2423
|
directiveRegex as m,
|
|
2982
2424
|
addDirective as n,
|
|
2983
|
-
utils_default as nt,
|
|
2984
2425
|
commonDb_exports as o,
|
|
2985
2426
|
detectors as p,
|
|
2986
2427
|
styles_default as q,
|
|
2987
2428
|
assignWithDepth_default as r,
|
|
2988
2429
|
common_default as s,
|
|
2989
2430
|
UnknownDiagramError as t,
|
|
2990
|
-
|
|
2431
|
+
utils_default as tt,
|
|
2991
2432
|
defaultConfig2 as u,
|
|
2992
2433
|
getAccTitle as v,
|
|
2993
2434
|
getSiteConfig as w,
|