azs-markdown 2.0.7 → 2.0.8
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/{_basePickBy-CAvabtO9.js → _basePickBy-DTv7Lai0.js} +2 -2
- package/dist/{_baseUniq-Bpp5NZ9q.js → _baseUniq-BaPfglXJ.js} +1 -1
- package/dist/{arc-ClZb5Uca.js → arc-BATprxmC.js} +1 -1
- package/dist/{architecture-O4VJ6CD3-C-E0qySC.js → architecture-O4VJ6CD3-BDjfvRkG.js} +1 -1
- package/dist/{architectureDiagram-W76B3OCA-CA9uqDyh.js → architectureDiagram-W76B3OCA-B_BD_H8q.js} +3 -3
- package/dist/azs-markdown.es.js +3 -3
- package/dist/azs-markdown.umd.js +4 -5
- package/dist/{blockDiagram-QIGZ2CNN-cJCO7cGh.js → blockDiagram-QIGZ2CNN-BYJ3bDFG.js} +5 -5
- package/dist/{c4Diagram-FPNF74CW-DOeMK79G.js → c4Diagram-FPNF74CW-0YKPWZoj.js} +2 -2
- package/dist/{channel-CsRtUkHm.js → channel-DCWog9RL.js} +1 -1
- package/dist/{chunk-4BX2VUAB-DQ9GrLvL.js → chunk-4BX2VUAB-BDrxOiN4.js} +1 -1
- package/dist/{chunk-55IACEB6-TjxgOhQJ.js → chunk-55IACEB6-Dfqjtnaj.js} +1 -1
- package/dist/{chunk-FMBD7UC4-CXANMi6w.js → chunk-FMBD7UC4-D6fa2Inv.js} +1 -1
- package/dist/{chunk-K7UQS3LO-hBGJWMsn.js → chunk-K7UQS3LO-COvRoZls.js} +4 -4
- package/dist/{chunk-QN33PNHL-CyMe_RSd.js → chunk-QN33PNHL-BwKhYeKZ.js} +1 -1
- package/dist/{chunk-QZHKN3VN-BbcQ0J47.js → chunk-QZHKN3VN-Cx-CrRrv.js} +1 -1
- package/dist/{chunk-TVAH2DTR-DN08D0mt.js → chunk-TVAH2DTR-Cl_6pbCk.js} +3 -3
- package/dist/{chunk-TZMSLE5B-D4BJ2ktP.js → chunk-TZMSLE5B-BcJFfzZ0.js} +1 -1
- package/dist/{classDiagram-v2-RKCZMP56-jnwHcBdX.js → classDiagram-KNZD7YFC-PM4KGOsf.js} +2 -2
- package/dist/{classDiagram-KNZD7YFC-jnwHcBdX.js → classDiagram-v2-RKCZMP56-PM4KGOsf.js} +2 -2
- package/dist/{clone-DfV9z_IS.js → clone-zKLRggIi.js} +1 -1
- package/dist/{cose-bilkent-S5V4N54A-BNqMtHlM.js → cose-bilkent-S5V4N54A-CCRPgCbq.js} +1 -1
- package/dist/{dagre-5GWH7T2D-50QQz7sK.js → dagre-5GWH7T2D-ox1LpQ07.js} +6 -6
- package/dist/{diagram-N5W7TBWH-CwFLCSzJ.js → diagram-N5W7TBWH-DrUjWr3B.js} +4 -4
- package/dist/{diagram-QEK2KX5R-CXX-mQPq.js → diagram-QEK2KX5R-DsGGMgBk.js} +3 -3
- package/dist/{diagram-S2PKOQOG-DwUj9yUz.js → diagram-S2PKOQOG-C4TFE8_n.js} +3 -3
- package/dist/{erDiagram-AWTI2OKA-Ck7r37qv.js → erDiagram-AWTI2OKA-CN-lMtWu.js} +4 -4
- package/dist/{flowDiagram-PVAE7QVJ-CIOq0YBN.js → flowDiagram-PVAE7QVJ-DGiXHESy.js} +5 -5
- package/dist/{ganttDiagram-OWAHRB6G-Bv-Noh0M.js → ganttDiagram-OWAHRB6G-C3BOqkth.js} +2 -2
- package/dist/{gitGraph-ZV4HHKMB-CRW6BmpC.js → gitGraph-ZV4HHKMB-Bvi91T2_.js} +1 -1
- package/dist/{gitGraphDiagram-NY62KEGX-CuEVZljL.js → gitGraphDiagram-NY62KEGX-BJCnKOhb.js} +4 -4
- package/dist/{graph-raQK0PWp.js → graph-DGDjyC6C.js} +2 -2
- package/dist/{index-Uyv1gnO3.js → index-DJQOeFAn.js} +79 -80
- package/dist/info-63CPKGFF-BKPVR-S-.js +5 -0
- package/dist/{infoDiagram-STP46IZ2-B_ohEJIu.js → infoDiagram-STP46IZ2-QFQkJuKF.js} +2 -2
- package/dist/{journeyDiagram-BIP6EPQ6-BcMqMLZQ.js → journeyDiagram-BIP6EPQ6-iusOo_r5.js} +4 -4
- package/dist/{kanban-definition-6OIFK2YF-DBrC_AjF.js → kanban-definition-6OIFK2YF-08eY75xi.js} +2 -2
- package/dist/{layout-BPLtNmoz.js → layout-B73QgFfI.js} +4 -4
- package/dist/{linear-D5R4Cnjc.js → linear-B7YI4fkx.js} +1 -1
- package/dist/{mermaid-parser.core-CrSLfEZe.js → mermaid-parser.core-B-6JGXwh.js} +11 -11
- package/dist/{mindmap-definition-Q6HEUPPD-CE7Ytbpq.js → mindmap-definition-Q6HEUPPD-yxzp9sRX.js} +3 -3
- package/dist/{packet-HUATNLJX-D6pkQ9UF.js → packet-HUATNLJX-1BEMfpZI.js} +1 -1
- package/dist/pie-WTHONI2E-CFJhpRn6.js +5 -0
- package/dist/{pieDiagram-ADFJNKIX-x0AFcAG9.js → pieDiagram-ADFJNKIX-C6eNvhcs.js} +4 -4
- package/dist/{quadrantDiagram-LMRXKWRM-BIbnUTZg.js → quadrantDiagram-LMRXKWRM-DQpTf821.js} +2 -2
- package/dist/radar-NJJJXTRR-BC-7-BGq.js +5 -0
- package/dist/{requirementDiagram-4UW4RH46-s27fxML9.js → requirementDiagram-4UW4RH46-CSwktj7P.js} +3 -3
- package/dist/{sankeyDiagram-GR3RE2ED-BLQ04tvy.js → sankeyDiagram-GR3RE2ED-UAMPqTcT.js} +1 -1
- package/dist/{sequenceDiagram-C3RYC4MD-BVoC7DzY.js → sequenceDiagram-C3RYC4MD-D_adQycO.js} +3 -3
- package/dist/{stateDiagram-KXAO66HF-zf2RkhHJ.js → stateDiagram-KXAO66HF-Dk8b3YXI.js} +4 -4
- package/dist/{stateDiagram-v2-UMBNRL4Z-FBYUACfZ.js → stateDiagram-v2-UMBNRL4Z-BnqpqdM9.js} +2 -2
- package/dist/{timeline-definition-XQNQX7LJ-QfyWhI3Y.js → timeline-definition-XQNQX7LJ-CFy58wBg.js} +2 -2
- package/dist/{treemap-75Q7IDZK-hi_e3PQE.js → treemap-75Q7IDZK-BwaOo9em.js} +1 -1
- package/dist/{xychartDiagram-6GGTOJPD-CwgEF3_g.js → xychartDiagram-6GGTOJPD-D0UJ3p-g.js} +2 -2
- package/package.json +1 -1
- package/dist/info-63CPKGFF-CDBDISrz.js +0 -5
- package/dist/pie-WTHONI2E--l06XAoo.js +0 -5
- package/dist/radar-NJJJXTRR-CMmtzlKT.js +0 -5
package/dist/azs-markdown.umd.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function(){"use strict";try{if(typeof document<"u"){var
|
|
1
|
+
(function(){"use strict";try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode(`@charset "UTF-8";.image-preview-overlay[data-v-c12e5e80]{position:fixed;top:0;left:0;right:0;bottom:0;background-color:#000000e6;z-index:9999;display:flex;align-items:center;justify-content:center;outline:none}.image-preview-container[data-v-c12e5e80]{position:relative;max-width:90vw;max-height:90vh;display:flex;align-items:center;justify-content:center}.close-btn[data-v-c12e5e80]{position:absolute;top:16px;right:16px;background:#ffffff1a;border:none;color:#fff;width:40px;height:40px;border-radius:50%;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:background-color .2s;z-index:10001}.close-btn[data-v-c12e5e80]:hover{background:#fff3}.toolbar[data-v-c12e5e80]{position:absolute;bottom:10px;left:50%;transform:translate(-50%);display:flex;align-items:center;gap:10px;background:#000000b3;padding:10px 15px;border-radius:25px;z-index:10001}.toolbar button[data-v-c12e5e80]{background:#ffffff1a;border:none;color:#fff;width:35px;height:35px;border-radius:50%;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:background-color .2s}.toolbar button[data-v-c12e5e80]:hover{background:#fff3}.zoom-level[data-v-c12e5e80]{color:#fff;font-size:14px;min-width:50px;text-align:center}.image-container[data-v-c12e5e80]{position:relative;overflow:hidden;max-width:100%;max-height:100%}.image-container img[data-v-c12e5e80]{max-width:100%;max-height:100%;object-fit:contain;-webkit-user-select:none;user-select:none}.loading[data-v-c12e5e80]{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);color:#fff;display:flex;flex-direction:column;align-items:center;gap:10px}.spinner[data-v-c12e5e80]{width:40px;height:40px;border:3px solid rgba(255,255,255,.3);border-top:3px solid white;border-radius:50%;animation:spin-c12e5e80 1s linear infinite}@keyframes spin-c12e5e80{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@media (max-width: 768px){.image-preview-container[data-v-c12e5e80]{max-width:95vw;max-height:95vh}.toolbar[data-v-c12e5e80]{bottom:-50px;padding:8px 12px}.toolbar button[data-v-c12e5e80]{width:30px;height:30px}.close-btn[data-v-c12e5e80]{top:-40px;width:35px;height:35px}}/*!
|
|
2
2
|
Theme: Default
|
|
3
3
|
Description: Original highlight.js style
|
|
4
4
|
Author: (c) Ivan Sagalaev <maniac@softwaremaniacs.org>
|
|
@@ -6,8 +6,8 @@
|
|
|
6
6
|
Website: https://highlightjs.org/
|
|
7
7
|
License: see project LICENSE
|
|
8
8
|
Touched: 2021
|
|
9
|
-
*/pre code.hljs{display:block;overflow-x:auto;padding:1em}code.hljs{padding:3px 5px}.hljs{background:#f3f3f3;color:#444}.hljs-comment{color:#697070}.hljs-tag,.hljs-punctuation{color:#444a}.hljs-tag .hljs-name,.hljs-tag .hljs-attr{color:#444}.hljs-keyword,.hljs-attribute,.hljs-selector-tag,.hljs-meta .hljs-keyword,.hljs-doctag,.hljs-name{font-weight:700}.hljs-type,.hljs-string,.hljs-number,.hljs-selector-id,.hljs-selector-class,.hljs-quote,.hljs-template-tag,.hljs-deletion{color:#800}.hljs-title,.hljs-section{color:#800;font-weight:700}.hljs-regexp,.hljs-symbol,.hljs-variable,.hljs-template-variable,.hljs-link,.hljs-selector-attr,.hljs-operator,.hljs-selector-pseudo{color:#ab5656}.hljs-literal{color:#695}.hljs-built_in,.hljs-bullet,.hljs-code,.hljs-addition{color:#397300}.hljs-meta{color:#1f7199}.hljs-meta .hljs-string{color:#38a}.hljs-emphasis{font-style:italic}.hljs-strong{font-weight:700}[data-v-5857dd0a] .azs-table-container{overflow-x:auto;border-radius:6px;border:1px solid #e1e4e8}[data-v-5857dd0a] .azs-table{width:100%;border-collapse:collapse;border-spacing:0;font-size:14px;background-color:#fff}[data-v-5857dd0a] .azs-table th,[data-v-5857dd0a] .azs-table td{border:1px solid #e1e4e8;padding:8px 12px;text-align:left;vertical-align:top}[data-v-5857dd0a] .azs-table th{background-color:#f6f8fa;font-weight:600;color:#24292e}[data-v-5857dd0a] .azs-table tbody tr:nth-child(2n){background-color:#f6f8fa}[data-v-5857dd0a] .azs-table tbody tr:hover,[data-v-5857dd0a] .azs-table tbody tr:hover td{background-color:#f1f8ff}@media (max-width: 768px){[data-v-5857dd0a] .azs-table-container{font-size:12px}[data-v-5857dd0a] .azs-table th,[data-v-5857dd0a] .azs-table td{padding:6px 8px}}*,:before,:after{--un-rotate:0;--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-scale-x:1;--un-scale-y:1;--un-scale-z:1;--un-skew-x:0;--un-skew-y:0;--un-translate-x:0;--un-translate-y:0;--un-translate-z:0;--un-pan-x: ;--un-pan-y: ;--un-pinch-zoom: ;--un-scroll-snap-strictness:proximity;--un-ordinal: ;--un-slashed-zero: ;--un-numeric-figure: ;--un-numeric-spacing: ;--un-numeric-fraction: ;--un-border-spacing-x:0;--un-border-spacing-y:0;--un-ring-offset-shadow:0 0 rgb(0 0 0 / 0);--un-ring-shadow:0 0 rgb(0 0 0 / 0);--un-shadow-inset: ;--un-shadow:0 0 rgb(0 0 0 / 0);--un-ring-inset: ;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:rgb(147 197 253 / .5);--un-blur: ;--un-brightness: ;--un-contrast: ;--un-drop-shadow: ;--un-grayscale: ;--un-hue-rotate: ;--un-invert: ;--un-saturate: ;--un-sepia: ;--un-backdrop-blur: ;--un-backdrop-brightness: ;--un-backdrop-contrast: ;--un-backdrop-grayscale: ;--un-backdrop-hue-rotate: ;--un-backdrop-invert: ;--un-backdrop-opacity: ;--un-backdrop-saturate: ;--un-backdrop-sepia: }::backdrop{--un-rotate:0;--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-scale-x:1;--un-scale-y:1;--un-scale-z:1;--un-skew-x:0;--un-skew-y:0;--un-translate-x:0;--un-translate-y:0;--un-translate-z:0;--un-pan-x: ;--un-pan-y: ;--un-pinch-zoom: ;--un-scroll-snap-strictness:proximity;--un-ordinal: ;--un-slashed-zero: ;--un-numeric-figure: ;--un-numeric-spacing: ;--un-numeric-fraction: ;--un-border-spacing-x:0;--un-border-spacing-y:0;--un-ring-offset-shadow:0 0 rgb(0 0 0 / 0);--un-ring-shadow:0 0 rgb(0 0 0 / 0);--un-shadow-inset: ;--un-shadow:0 0 rgb(0 0 0 / 0);--un-ring-inset: ;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:rgb(147 197 253 / .5);--un-blur: ;--un-brightness: ;--un-contrast: ;--un-drop-shadow: ;--un-grayscale: ;--un-hue-rotate: ;--un-invert: ;--un-saturate: ;--un-sepia: ;--un-backdrop-blur: ;--un-backdrop-brightness: ;--un-backdrop-contrast: ;--un-backdrop-grayscale: ;--un-backdrop-hue-rotate: ;--un-backdrop-invert: ;--un-backdrop-opacity: ;--un-backdrop-saturate: ;--un-backdrop-sepia: }.container{width:100%}@media (min-width: 640px){.container{max-width:640px}}@media (min-width: 768px){.container{max-width:768px}}@media (min-width: 1024px){.container{max-width:1024px}}@media (min-width: 1280px){.container{max-width:1280px}}@media (min-width: 1536px){.container{max-width:1536px}}.visible{visibility:visible}.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.m-0{margin:0}.my-3{margin-top:.75rem;margin-bottom:.75rem}.block{display:block}.hidden{display:none}.flex{display:flex}.flex-shrink-0{flex-shrink:0}.table{display:table}.border-collapse{border-collapse:collapse}.transform{transform:translate(var(--un-translate-x)) translateY(var(--un-translate-y)) translateZ(var(--un-translate-z)) rotate(var(--un-rotate)) rotateX(var(--un-rotate-x)) rotateY(var(--un-rotate-y)) rotate(var(--un-rotate-z)) skew(var(--un-skew-x)) skewY(var(--un-skew-y)) scaleX(var(--un-scale-x)) scaleY(var(--un-scale-y)) scaleZ(var(--un-scale-z))}.cursor-pointer{cursor:pointer}.select-none{-webkit-user-select:none;user-select:none}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-1{gap:.25rem}.of-hidden{overflow:hidden}.of-x-auto{overflow-x:auto}.border{border-width:1px}.border-b{border-bottom-width:1px}.border-\\[\\#e1e4e8\\]{--un-border-opacity:1;border-color:rgb(225 228 232 / var(--un-border-opacity))}.rounded{border-radius:.25rem}.rounded-6px{border-radius:6px}.border-none{border-style:none}.bg-\\[\\#d9fbe7\\]{--un-bg-opacity:1;background-color:rgb(217 251 231 / var(--un-bg-opacity))}.bg-\\[\\#f6f8fa\\]{--un-bg-opacity:1;background-color:rgb(246 248 250 / var(--un-bg-opacity))}.bg-\\[\\#fafbfc\\]{--un-bg-opacity:1;background-color:rgb(250 251 252 / var(--un-bg-opacity))}.bg-transparent{background-color:transparent}.bg-white{--un-bg-opacity:1;background-color:rgb(255 255 255 / var(--un-bg-opacity))}.hover\\:bg-\\[\\#e1e4e8\\]:hover{--un-bg-opacity:1;background-color:rgb(225 228 232 / var(--un-bg-opacity))}.active\\:bg-\\[\\#d1d5da\\]:active{--un-bg-opacity:1;background-color:rgb(209 213 218 / var(--un-bg-opacity))}.p-1{padding:.25rem}.p-4{padding:1rem}.px-3{padding-left:.75rem;padding-right:.75rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.text-left{text-align:left}.text-\\[0\\.9em\\]{font-size:.9em}.text-13px{font-size:13px}.text-\\[\\#3cb371\\]{--un-text-opacity:1;color:rgb(60 179 113 / var(--un-text-opacity))}.text-\\[\\#586069\\]{--un-text-opacity:1;color:rgb(88 96 105 / var(--un-text-opacity))}.hover\\:text-\\[\\#24292e\\]:hover{--un-text-opacity:1;color:rgb(36 41 46 / var(--un-text-opacity))}.font-500{font-weight:500}.font-mono{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}.lowercase{text-transform:lowercase}.outline{outline-style:solid}.outline-none{outline:2px solid transparent;outline-offset:2px}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-200{transition-duration:.2s}.ease-out{transition-timing-function:cubic-bezier(0,0,.2,1)}`)),document.head.appendChild(
|
|
10
|
-
(function(Be,Ii){typeof exports=="object"&&typeof module<"u"?module.exports=Ii(require("vue")):typeof define=="function"&&define.amd?define(["vue"],Ii):(Be=typeof globalThis<"u"?globalThis:Be||self,Be["@azs-markdown"]=Ii(Be.Vue))})(this,function(Be){"use strict";var mot=Object.defineProperty;var _ot=(Be,Ii,lc)=>Ii in Be?mot(Be,Ii,{enumerable:!0,configurable:!0,writable:!0,value:lc}):Be[Ii]=lc;var Dr=(Be,Ii,lc)=>_ot(Be,typeof Ii!="symbol"?Ii+"":Ii,lc);var vp,Ep,bp,Sp,Tp,xp,Cp,Ap,$5,oh,Rp,wp,Np,Ip,Op,kp,Dp,Lp,Mp,Pp,Bp,Fp,Up,$p,Gp,zp,Yp,Hp,Vp,qp,Wp,Kp,Xp,Qp,jp,Zp,Jp,eg,tg,rg,ng,ag,ig,sg,og,lg,cg,ug,lh,dg,hg,fg,ac,pg,Cle,Ale,gg,mg;var Ii=document.createElement("style");Ii.textContent=`@charset "UTF-8";.image-preview-overlay[data-v-
|
|
9
|
+
*/pre code.hljs{display:block;overflow-x:auto;padding:1em}code.hljs{padding:3px 5px}.hljs{background:#f3f3f3;color:#444}.hljs-comment{color:#697070}.hljs-tag,.hljs-punctuation{color:#444a}.hljs-tag .hljs-name,.hljs-tag .hljs-attr{color:#444}.hljs-keyword,.hljs-attribute,.hljs-selector-tag,.hljs-meta .hljs-keyword,.hljs-doctag,.hljs-name{font-weight:700}.hljs-type,.hljs-string,.hljs-number,.hljs-selector-id,.hljs-selector-class,.hljs-quote,.hljs-template-tag,.hljs-deletion{color:#800}.hljs-title,.hljs-section{color:#800;font-weight:700}.hljs-regexp,.hljs-symbol,.hljs-variable,.hljs-template-variable,.hljs-link,.hljs-selector-attr,.hljs-operator,.hljs-selector-pseudo{color:#ab5656}.hljs-literal{color:#695}.hljs-built_in,.hljs-bullet,.hljs-code,.hljs-addition{color:#397300}.hljs-meta{color:#1f7199}.hljs-meta .hljs-string{color:#38a}.hljs-emphasis{font-style:italic}.hljs-strong{font-weight:700}[data-v-5857dd0a] .azs-table-container{overflow-x:auto;border-radius:6px;border:1px solid #e1e4e8}[data-v-5857dd0a] .azs-table{width:100%;border-collapse:collapse;border-spacing:0;font-size:14px;background-color:#fff}[data-v-5857dd0a] .azs-table th,[data-v-5857dd0a] .azs-table td{border:1px solid #e1e4e8;padding:8px 12px;text-align:left;vertical-align:top}[data-v-5857dd0a] .azs-table th{background-color:#f6f8fa;font-weight:600;color:#24292e}[data-v-5857dd0a] .azs-table tbody tr:nth-child(2n){background-color:#f6f8fa}[data-v-5857dd0a] .azs-table tbody tr:hover,[data-v-5857dd0a] .azs-table tbody tr:hover td{background-color:#f1f8ff}@media (max-width: 768px){[data-v-5857dd0a] .azs-table-container{font-size:12px}[data-v-5857dd0a] .azs-table th,[data-v-5857dd0a] .azs-table td{padding:6px 8px}}*,:before,:after{--un-rotate:0;--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-scale-x:1;--un-scale-y:1;--un-scale-z:1;--un-skew-x:0;--un-skew-y:0;--un-translate-x:0;--un-translate-y:0;--un-translate-z:0;--un-pan-x: ;--un-pan-y: ;--un-pinch-zoom: ;--un-scroll-snap-strictness:proximity;--un-ordinal: ;--un-slashed-zero: ;--un-numeric-figure: ;--un-numeric-spacing: ;--un-numeric-fraction: ;--un-border-spacing-x:0;--un-border-spacing-y:0;--un-ring-offset-shadow:0 0 rgb(0 0 0 / 0);--un-ring-shadow:0 0 rgb(0 0 0 / 0);--un-shadow-inset: ;--un-shadow:0 0 rgb(0 0 0 / 0);--un-ring-inset: ;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:rgb(147 197 253 / .5);--un-blur: ;--un-brightness: ;--un-contrast: ;--un-drop-shadow: ;--un-grayscale: ;--un-hue-rotate: ;--un-invert: ;--un-saturate: ;--un-sepia: ;--un-backdrop-blur: ;--un-backdrop-brightness: ;--un-backdrop-contrast: ;--un-backdrop-grayscale: ;--un-backdrop-hue-rotate: ;--un-backdrop-invert: ;--un-backdrop-opacity: ;--un-backdrop-saturate: ;--un-backdrop-sepia: }::backdrop{--un-rotate:0;--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-scale-x:1;--un-scale-y:1;--un-scale-z:1;--un-skew-x:0;--un-skew-y:0;--un-translate-x:0;--un-translate-y:0;--un-translate-z:0;--un-pan-x: ;--un-pan-y: ;--un-pinch-zoom: ;--un-scroll-snap-strictness:proximity;--un-ordinal: ;--un-slashed-zero: ;--un-numeric-figure: ;--un-numeric-spacing: ;--un-numeric-fraction: ;--un-border-spacing-x:0;--un-border-spacing-y:0;--un-ring-offset-shadow:0 0 rgb(0 0 0 / 0);--un-ring-shadow:0 0 rgb(0 0 0 / 0);--un-shadow-inset: ;--un-shadow:0 0 rgb(0 0 0 / 0);--un-ring-inset: ;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:rgb(147 197 253 / .5);--un-blur: ;--un-brightness: ;--un-contrast: ;--un-drop-shadow: ;--un-grayscale: ;--un-hue-rotate: ;--un-invert: ;--un-saturate: ;--un-sepia: ;--un-backdrop-blur: ;--un-backdrop-brightness: ;--un-backdrop-contrast: ;--un-backdrop-grayscale: ;--un-backdrop-hue-rotate: ;--un-backdrop-invert: ;--un-backdrop-opacity: ;--un-backdrop-saturate: ;--un-backdrop-sepia: }.container{width:100%}@media (min-width: 640px){.container{max-width:640px}}@media (min-width: 768px){.container{max-width:768px}}@media (min-width: 1024px){.container{max-width:1024px}}@media (min-width: 1280px){.container{max-width:1280px}}@media (min-width: 1536px){.container{max-width:1536px}}.visible{visibility:visible}.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.m-0{margin:0}.my-3{margin-top:.75rem;margin-bottom:.75rem}.block{display:block}.hidden{display:none}.flex{display:flex}.flex-shrink-0{flex-shrink:0}.table{display:table}.border-collapse{border-collapse:collapse}.transform{transform:translate(var(--un-translate-x)) translateY(var(--un-translate-y)) translateZ(var(--un-translate-z)) rotate(var(--un-rotate)) rotateX(var(--un-rotate-x)) rotateY(var(--un-rotate-y)) rotate(var(--un-rotate-z)) skew(var(--un-skew-x)) skewY(var(--un-skew-y)) scaleX(var(--un-scale-x)) scaleY(var(--un-scale-y)) scaleZ(var(--un-scale-z))}.cursor-pointer{cursor:pointer}.select-none{-webkit-user-select:none;user-select:none}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-1{gap:.25rem}.of-hidden{overflow:hidden}.of-x-auto{overflow-x:auto}.border{border-width:1px}.border-b{border-bottom-width:1px}.border-\\[\\#e1e4e8\\]{--un-border-opacity:1;border-color:rgb(225 228 232 / var(--un-border-opacity))}.rounded{border-radius:.25rem}.rounded-6px{border-radius:6px}.border-none{border-style:none}.bg-\\[\\#d9fbe7\\]{--un-bg-opacity:1;background-color:rgb(217 251 231 / var(--un-bg-opacity))}.bg-\\[\\#f6f8fa\\]{--un-bg-opacity:1;background-color:rgb(246 248 250 / var(--un-bg-opacity))}.bg-\\[\\#fafbfc\\]{--un-bg-opacity:1;background-color:rgb(250 251 252 / var(--un-bg-opacity))}.bg-transparent{background-color:transparent}.bg-white{--un-bg-opacity:1;background-color:rgb(255 255 255 / var(--un-bg-opacity))}.hover\\:bg-\\[\\#e1e4e8\\]:hover{--un-bg-opacity:1;background-color:rgb(225 228 232 / var(--un-bg-opacity))}.active\\:bg-\\[\\#d1d5da\\]:active{--un-bg-opacity:1;background-color:rgb(209 213 218 / var(--un-bg-opacity))}.p-1{padding:.25rem}.p-4{padding:1rem}.px-3{padding-left:.75rem;padding-right:.75rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.text-left{text-align:left}.text-\\[0\\.9em\\]{font-size:.9em}.text-13px{font-size:13px}.text-\\[\\#3cb371\\]{--un-text-opacity:1;color:rgb(60 179 113 / var(--un-text-opacity))}.text-\\[\\#586069\\]{--un-text-opacity:1;color:rgb(88 96 105 / var(--un-text-opacity))}.hover\\:text-\\[\\#24292e\\]:hover{--un-text-opacity:1;color:rgb(36 41 46 / var(--un-text-opacity))}.font-500{font-weight:500}.font-mono{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}.lowercase{text-transform:lowercase}.outline{outline-style:solid}.outline-none{outline:2px solid transparent;outline-offset:2px}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-200{transition-duration:.2s}.ease-out{transition-timing-function:cubic-bezier(0,0,.2,1)}`)),document.head.appendChild(e)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}})();
|
|
10
|
+
(function(Be,Ii){typeof exports=="object"&&typeof module<"u"?module.exports=Ii(require("vue")):typeof define=="function"&&define.amd?define(["vue"],Ii):(Be=typeof globalThis<"u"?globalThis:Be||self,Be["@azs-markdown"]=Ii(Be.Vue))})(this,function(Be){"use strict";var mot=Object.defineProperty;var _ot=(Be,Ii,lc)=>Ii in Be?mot(Be,Ii,{enumerable:!0,configurable:!0,writable:!0,value:lc}):Be[Ii]=lc;var Dr=(Be,Ii,lc)=>_ot(Be,typeof Ii!="symbol"?Ii+"":Ii,lc);var vp,Ep,bp,Sp,Tp,xp,Cp,Ap,$5,oh,Rp,wp,Np,Ip,Op,kp,Dp,Lp,Mp,Pp,Bp,Fp,Up,$p,Gp,zp,Yp,Hp,Vp,qp,Wp,Kp,Xp,Qp,jp,Zp,Jp,eg,tg,rg,ng,ag,ig,sg,og,lg,cg,ug,lh,dg,hg,fg,ac,pg,Cle,Ale,gg,mg;var Ii=document.createElement("style");Ii.textContent=`@charset "UTF-8";.image-preview-overlay[data-v-c12e5e80]{position:fixed;top:0;left:0;right:0;bottom:0;background-color:#000000e6;z-index:9999;display:flex;align-items:center;justify-content:center;outline:none}.image-preview-container[data-v-c12e5e80]{position:relative;max-width:90vw;max-height:90vh;display:flex;align-items:center;justify-content:center}.close-btn[data-v-c12e5e80]{position:absolute;top:16px;right:16px;background:#ffffff1a;border:none;color:#fff;width:40px;height:40px;border-radius:50%;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:background-color .2s;z-index:10001}.close-btn[data-v-c12e5e80]:hover{background:#fff3}.toolbar[data-v-c12e5e80]{position:absolute;bottom:10px;left:50%;transform:translate(-50%);display:flex;align-items:center;gap:10px;background:#000000b3;padding:10px 15px;border-radius:25px;z-index:10001}.toolbar button[data-v-c12e5e80]{background:#ffffff1a;border:none;color:#fff;width:35px;height:35px;border-radius:50%;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:background-color .2s}.toolbar button[data-v-c12e5e80]:hover{background:#fff3}.zoom-level[data-v-c12e5e80]{color:#fff;font-size:14px;min-width:50px;text-align:center}.image-container[data-v-c12e5e80]{position:relative;overflow:hidden;max-width:100%;max-height:100%}.image-container img[data-v-c12e5e80]{max-width:100%;max-height:100%;object-fit:contain;-webkit-user-select:none;user-select:none}.loading[data-v-c12e5e80]{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);color:#fff;display:flex;flex-direction:column;align-items:center;gap:10px}.spinner[data-v-c12e5e80]{width:40px;height:40px;border:3px solid rgba(255,255,255,.3);border-top:3px solid white;border-radius:50%;animation:spin-c12e5e80 1s linear infinite}@keyframes spin-c12e5e80{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@media (max-width: 768px){.image-preview-container[data-v-c12e5e80]{max-width:95vw;max-height:95vh}.toolbar[data-v-c12e5e80]{bottom:-50px;padding:8px 12px}.toolbar button[data-v-c12e5e80]{width:30px;height:30px}.close-btn[data-v-c12e5e80]{top:-40px;width:35px;height:35px}}/*!
|
|
11
11
|
Theme: Default
|
|
12
12
|
Description: Original highlight.js style
|
|
13
13
|
Author: (c) Ivan Sagalaev <maniac@softwaremaniacs.org>
|
|
@@ -19,7 +19,6 @@
|
|
|
19
19
|
/*$vite$:1*/`,document.head.appendChild(Ii);const lc={markdownValue:{type:String,default:""},customRegex:{type:RegExp,default:/\[\[(\d+)\]\]/g},isEnableSource:{type:Boolean,default:!0}},kle=Be.defineComponent({name:"AzsMarkdownProvider",props:lc,setup(t,{slots:e,attrs:r}){const n=Be.computed(()=>({...t}));Be.provide("azsMdSlots",e),Be.provide("markdownProvider",n);const a=`
|
|
20
20
|
._azs-markdown-provider {
|
|
21
21
|
font-size: 15px;
|
|
22
|
-
color: #232629;
|
|
23
22
|
word-break: break-word;
|
|
24
23
|
background: transparent;
|
|
25
24
|
line-height: 1.7;
|
|
@@ -379,7 +378,7 @@ l0,-`+(r+144)+`c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7,
|
|
|
379
378
|
`))+1))}const s="#".repeat(a),o=r.enter("headingAtx"),l=r.enter("phrasing");i.move(s+" ");let u=r.containerPhrasing(t,{before:"# ",after:`
|
|
380
379
|
`,...i.current()});return/^[\t ]/.test(u)&&(u=Xg(u.charCodeAt(0))+u.slice(1)),u=u?s+" "+u:s,r.options.closeAtx&&(u+=" "+s),l(),o(),u}T7.peek=H1e;function T7(t){return t.value||""}function H1e(){return"<"}x7.peek=V1e;function x7(t,e,r,n){const a=qx(r),i=a==='"'?"Quote":"Apostrophe",s=r.enter("image");let o=r.enter("label");const l=r.createTracker(n);let u=l.move("![");return u+=l.move(r.safe(t.alt,{before:u,after:"]",...l.current()})),u+=l.move("]("),o(),!t.url&&t.title||/[\0- \u007F]/.test(t.url)?(o=r.enter("destinationLiteral"),u+=l.move("<"),u+=l.move(r.safe(t.url,{before:u,after:">",...l.current()})),u+=l.move(">")):(o=r.enter("destinationRaw"),u+=l.move(r.safe(t.url,{before:u,after:t.title?" ":")",...l.current()}))),o(),t.title&&(o=r.enter(`title${i}`),u+=l.move(" "+a),u+=l.move(r.safe(t.title,{before:u,after:a,...l.current()})),u+=l.move(a),o()),u+=l.move(")"),s(),u}function V1e(){return"!"}C7.peek=q1e;function C7(t,e,r,n){const a=t.referenceType,i=r.enter("imageReference");let s=r.enter("label");const o=r.createTracker(n);let l=o.move("![");const u=r.safe(t.alt,{before:l,after:"]",...o.current()});l+=o.move(u+"]["),s();const d=r.stack;r.stack=[],s=r.enter("reference");const h=r.safe(r.associationId(t),{before:l,after:"]",...o.current()});return s(),r.stack=d,i(),a==="full"||!u||u!==h?l+=o.move(h+"]"):a==="shortcut"?l=l.slice(0,-1):l+=o.move("]"),l}function q1e(){return"!"}A7.peek=W1e;function A7(t,e,r){let n=t.value||"",a="`",i=-1;for(;new RegExp("(^|[^`])"+a+"([^`]|$)").test(n);)a+="`";for(/[^ \r\n]/.test(n)&&(/^[ \r\n]/.test(n)&&/[ \r\n]$/.test(n)||/^`|`$/.test(n))&&(n=" "+n+" ");++i<r.unsafe.length;){const s=r.unsafe[i],o=r.compilePattern(s);let l;if(s.atBreak)for(;l=o.exec(n);){let u=l.index;n.charCodeAt(u)===10&&n.charCodeAt(u-1)===13&&u--,n=n.slice(0,u)+" "+n.slice(l.index+1)}}return a+n+a}function W1e(){return"`"}function R7(t,e){const r=f2(t);return!!(!e.options.resourceLink&&t.url&&!t.title&&t.children&&t.children.length===1&&t.children[0].type==="text"&&(r===t.url||"mailto:"+r===t.url)&&/^[a-z][a-z+.-]+:/i.test(t.url)&&!/[\0- <>\u007F]/.test(t.url))}w7.peek=K1e;function w7(t,e,r,n){const a=qx(r),i=a==='"'?"Quote":"Apostrophe",s=r.createTracker(n);let o,l;if(R7(t,r)){const d=r.stack;r.stack=[],o=r.enter("autolink");let h=s.move("<");return h+=s.move(r.containerPhrasing(t,{before:h,after:">",...s.current()})),h+=s.move(">"),o(),r.stack=d,h}o=r.enter("link"),l=r.enter("label");let u=s.move("[");return u+=s.move(r.containerPhrasing(t,{before:u,after:"](",...s.current()})),u+=s.move("]("),l(),!t.url&&t.title||/[\0- \u007F]/.test(t.url)?(l=r.enter("destinationLiteral"),u+=s.move("<"),u+=s.move(r.safe(t.url,{before:u,after:">",...s.current()})),u+=s.move(">")):(l=r.enter("destinationRaw"),u+=s.move(r.safe(t.url,{before:u,after:t.title?" ":")",...s.current()}))),l(),t.title&&(l=r.enter(`title${i}`),u+=s.move(" "+a),u+=s.move(r.safe(t.title,{before:u,after:a,...s.current()})),u+=s.move(a),l()),u+=s.move(")"),o(),u}function K1e(t,e,r){return R7(t,r)?"<":"["}N7.peek=X1e;function N7(t,e,r,n){const a=t.referenceType,i=r.enter("linkReference");let s=r.enter("label");const o=r.createTracker(n);let l=o.move("[");const u=r.containerPhrasing(t,{before:l,after:"]",...o.current()});l+=o.move(u+"]["),s();const d=r.stack;r.stack=[],s=r.enter("reference");const h=r.safe(r.associationId(t),{before:l,after:"]",...o.current()});return s(),r.stack=d,i(),a==="full"||!u||u!==h?l+=o.move(h+"]"):a==="shortcut"?l=l.slice(0,-1):l+=o.move("]"),l}function X1e(){return"["}function Wx(t){const e=t.options.bullet||"*";if(e!=="*"&&e!=="+"&&e!=="-")throw new Error("Cannot serialize items with `"+e+"` for `options.bullet`, expected `*`, `+`, or `-`");return e}function Q1e(t){const e=Wx(t),r=t.options.bulletOther;if(!r)return e==="*"?"-":"*";if(r!=="*"&&r!=="+"&&r!=="-")throw new Error("Cannot serialize items with `"+r+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(r===e)throw new Error("Expected `bullet` (`"+e+"`) and `bulletOther` (`"+r+"`) to be different");return r}function j1e(t){const e=t.options.bulletOrdered||".";if(e!=="."&&e!==")")throw new Error("Cannot serialize items with `"+e+"` for `options.bulletOrdered`, expected `.` or `)`");return e}function I7(t){const e=t.options.rule||"*";if(e!=="*"&&e!=="-"&&e!=="_")throw new Error("Cannot serialize rules with `"+e+"` for `options.rule`, expected `*`, `-`, or `_`");return e}function Z1e(t,e,r,n){const a=r.enter("list"),i=r.bulletCurrent;let s=t.ordered?j1e(r):Wx(r);const o=t.ordered?s==="."?")":".":Q1e(r);let l=e&&r.bulletLastUsed?s===r.bulletLastUsed:!1;if(!t.ordered){const d=t.children?t.children[0]:void 0;if((s==="*"||s==="-")&&d&&(!d.children||!d.children[0])&&r.stack[r.stack.length-1]==="list"&&r.stack[r.stack.length-2]==="listItem"&&r.stack[r.stack.length-3]==="list"&&r.stack[r.stack.length-4]==="listItem"&&r.indexStack[r.indexStack.length-1]===0&&r.indexStack[r.indexStack.length-2]===0&&r.indexStack[r.indexStack.length-3]===0&&(l=!0),I7(r)===s&&d){let h=-1;for(;++h<t.children.length;){const f=t.children[h];if(f&&f.type==="listItem"&&f.children&&f.children[0]&&f.children[0].type==="thematicBreak"){l=!0;break}}}}l&&(s=o),r.bulletCurrent=s;const u=r.containerFlow(t,n);return r.bulletLastUsed=s,r.bulletCurrent=i,a(),u}function J1e(t){const e=t.options.listItemIndent||"one";if(e!=="tab"&&e!=="one"&&e!=="mixed")throw new Error("Cannot serialize items with `"+e+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return e}function e_e(t,e,r,n){const a=J1e(r);let i=r.bulletCurrent||Wx(r);e&&e.type==="list"&&e.ordered&&(i=(typeof e.start=="number"&&e.start>-1?e.start:1)+(r.options.incrementListMarker===!1?0:e.children.indexOf(t))+i);let s=i.length+1;(a==="tab"||a==="mixed"&&(e&&e.type==="list"&&e.spread||t.spread))&&(s=Math.ceil(s/4)*4);const o=r.createTracker(n);o.move(i+" ".repeat(s-i.length)),o.shift(s);const l=r.enter("listItem"),u=r.indentLines(r.containerFlow(t,o.current()),d);return l(),u;function d(h,f,p){return f?(p?"":" ".repeat(s))+h:(p?i:i+" ".repeat(s-i.length))+h}}function t_e(t,e,r,n){const a=r.enter("paragraph"),i=r.enter("phrasing"),s=r.containerPhrasing(t,n);return i(),a(),s}const r_e=Ag(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function n_e(t,e,r,n){return(t.children.some(function(s){return r_e(s)})?r.containerPhrasing:r.containerFlow).call(r,t,n)}function a_e(t){const e=t.options.strong||"*";if(e!=="*"&&e!=="_")throw new Error("Cannot serialize strong with `"+e+"` for `options.strong`, expected `*`, or `_`");return e}O7.peek=i_e;function O7(t,e,r,n){const a=a_e(r),i=r.enter("strong"),s=r.createTracker(n),o=s.move(a+a);let l=s.move(r.containerPhrasing(t,{after:a,before:o,...s.current()}));const u=l.charCodeAt(0),d=yy(n.before.charCodeAt(n.before.length-1),u,a);d.inside&&(l=Xg(u)+l.slice(1));const h=l.charCodeAt(l.length-1),f=yy(n.after.charCodeAt(0),h,a);f.inside&&(l=l.slice(0,-1)+Xg(h));const p=s.move(a+a);return i(),r.attentionEncodeSurroundingInfo={after:f.outside,before:d.outside},o+l+p}function i_e(t,e,r){return r.options.strong||"*"}function s_e(t,e,r,n){return r.safe(t.value,n)}function o_e(t){const e=t.options.ruleRepetition||3;if(e<3)throw new Error("Cannot serialize rules with repetition `"+e+"` for `options.ruleRepetition`, expected `3` or more");return e}function l_e(t,e,r){const n=(I7(r)+(r.options.ruleSpaces?" ":"")).repeat(o_e(r));return r.options.ruleSpaces?n.slice(0,-1):n}const k7={blockquote:k1e,break:b7,code:B1e,definition:U1e,emphasis:S7,hardBreak:b7,heading:Y1e,html:T7,image:x7,imageReference:C7,inlineCode:A7,link:w7,linkReference:N7,list:Z1e,listItem:e_e,paragraph:t_e,root:n_e,strong:O7,text:s_e,thematicBreak:l_e};function c_e(){return{enter:{table:u_e,tableData:D7,tableHeader:D7,tableRow:h_e},exit:{codeText:f_e,table:d_e,tableData:Kx,tableHeader:Kx,tableRow:Kx}}}function u_e(t){const e=t._align;this.enter({type:"table",align:e.map(function(r){return r==="none"?null:r}),children:[]},t),this.data.inTable=!0}function d_e(t){this.exit(t),this.data.inTable=void 0}function h_e(t){this.enter({type:"tableRow",children:[]},t)}function Kx(t){this.exit(t)}function D7(t){this.enter({type:"tableCell",children:[]},t)}function f_e(t){let e=this.resume();this.data.inTable&&(e=e.replace(/\\([\\|])/g,p_e));const r=this.stack[this.stack.length-1];r.type,r.value=e,this.exit(t)}function p_e(t,e){return e==="|"?e:t}function g_e(t){const e=t||{},r=e.tableCellPadding,n=e.tablePipeAlign,a=e.stringLength,i=r?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
|
|
381
380
|
`,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:f,table:s,tableCell:l,tableRow:o}};function s(p,g,m,y){return u(d(p,m,y),p.align)}function o(p,g,m,y){const _=h(p,m,y),v=u([_]);return v.slice(0,v.indexOf(`
|
|
382
|
-
`))}function l(p,g,m,y){const _=m.enter("tableCell"),v=m.enter("phrasing"),E=m.containerPhrasing(p,{...y,before:i,after:i});return v(),_(),E}function u(p,g){return I1e(p,{align:g,alignDelimiters:n,padding:r,stringLength:a})}function d(p,g,m){const y=p.children;let _=-1;const v=[],E=g.enter("table");for(;++_<y.length;)v[_]=h(y[_],g,m);return E(),v}function h(p,g,m){const y=p.children;let _=-1;const v=[],E=g.enter("tableRow");for(;++_<y.length;)v[_]=l(y[_],p,g,m);return E(),v}function f(p,g,m){let y=k7.inlineCode(p,g,m);return m.stack.includes("tableCell")&&(y=y.replace(/\|/g,"\\$&")),y}}function m_e(){return{exit:{taskListCheckValueChecked:L7,taskListCheckValueUnchecked:L7,paragraph:y_e}}}function __e(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:v_e}}}function L7(t){const e=this.stack[this.stack.length-2];e.type,e.checked=t.type==="taskListCheckValueChecked"}function y_e(t){const e=this.stack[this.stack.length-2];if(e&&e.type==="listItem"&&typeof e.checked=="boolean"){const r=this.stack[this.stack.length-1];r.type;const n=r.children[0];if(n&&n.type==="text"){const a=e.children;let i=-1,s;for(;++i<a.length;){const o=a[i];if(o.type==="paragraph"){s=o;break}}s===r&&(n.value=n.value.slice(1),n.value.length===0?r.children.shift():r.position&&n.position&&typeof n.position.start.offset=="number"&&(n.position.start.column++,n.position.start.offset++,r.position.start=Object.assign({},n.position.start)))}}this.exit(t)}function v_e(t,e,r,n){const a=t.children[0],i=typeof t.checked=="boolean"&&a&&a.type==="paragraph",s="["+(t.checked?"x":" ")+"] ",o=r.createTracker(n);i&&o.move(s);let l=k7.listItem(t,e,r,{...n,...o.current()});return i&&(l=l.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,u)),l;function u(d){return d+s}}function E_e(){return[Jme(),E1e(),x1e(),c_e(),m_e()]}function b_e(t){return{extensions:[e1e(),b1e(t),C1e(),g_e(t),__e()]}}const S_e={tokenize:w_e,partial:!0},M7={tokenize:N_e,partial:!0},P7={tokenize:I_e,partial:!0},B7={tokenize:O_e,partial:!0},T_e={tokenize:k_e,partial:!0},F7={name:"wwwAutolink",tokenize:A_e,previous:$7},U7={name:"protocolAutolink",tokenize:R_e,previous:G7},ml={name:"emailAutolink",tokenize:C_e,previous:z7},No={};function x_e(){return{text:No}}let Bu=48;for(;Bu<123;)No[Bu]=ml,Bu++,Bu===58?Bu=65:Bu===91&&(Bu=97);No[43]=ml,No[45]=ml,No[46]=ml,No[95]=ml,No[72]=[ml,U7],No[104]=[ml,U7],No[87]=[ml,F7],No[119]=[ml,F7];function C_e(t,e,r){const n=this;let a,i;return s;function s(h){return!Xx(h)||!z7.call(n,n.previous)||Qx(n.events)?r(h):(t.enter("literalAutolink"),t.enter("literalAutolinkEmail"),o(h))}function o(h){return Xx(h)?(t.consume(h),o):h===64?(t.consume(h),l):r(h)}function l(h){return h===46?t.check(T_e,d,u)(h):h===45||h===95||za(h)?(i=!0,t.consume(h),l):d(h)}function u(h){return t.consume(h),a=!0,l}function d(h){return i&&a&&oi(n.previous)?(t.exit("literalAutolinkEmail"),t.exit("literalAutolink"),e(h)):r(h)}}function A_e(t,e,r){const n=this;return a;function a(s){return s!==87&&s!==119||!$7.call(n,n.previous)||Qx(n.events)?r(s):(t.enter("literalAutolink"),t.enter("literalAutolinkWww"),t.check(S_e,t.attempt(M7,t.attempt(P7,i),r),r)(s))}function i(s){return t.exit("literalAutolinkWww"),t.exit("literalAutolink"),e(s)}}function R_e(t,e,r){const n=this;let a="",i=!1;return s;function s(h){return(h===72||h===104)&&G7.call(n,n.previous)&&!Qx(n.events)?(t.enter("literalAutolink"),t.enter("literalAutolinkHttp"),a+=String.fromCodePoint(h),t.consume(h),o):r(h)}function o(h){if(oi(h)&&a.length<5)return a+=String.fromCodePoint(h),t.consume(h),o;if(h===58){const f=a.toLowerCase();if(f==="http"||f==="https")return t.consume(h),l}return r(h)}function l(h){return h===47?(t.consume(h),i?u:(i=!0,l)):r(h)}function u(h){return h===null||N_(h)||an(h)||wu(h)||I_(h)?r(h):t.attempt(M7,t.attempt(P7,d),r)(h)}function d(h){return t.exit("literalAutolinkHttp"),t.exit("literalAutolink"),e(h)}}function w_e(t,e,r){let n=0;return a;function a(s){return(s===87||s===119)&&n<3?(n++,t.consume(s),a):s===46&&n===3?(t.consume(s),i):r(s)}function i(s){return s===null?r(s):e(s)}}function N_e(t,e,r){let n,a,i;return s;function s(u){return u===46||u===95?t.check(B7,l,o)(u):u===null||an(u)||wu(u)||u!==45&&I_(u)?l(u):(i=!0,t.consume(u),s)}function o(u){return u===95?n=!0:(a=n,n=void 0),t.consume(u),s}function l(u){return a||n||!i?r(u):e(u)}}function I_e(t,e){let r=0,n=0;return a;function a(s){return s===40?(r++,t.consume(s),a):s===41&&n<r?i(s):s===33||s===34||s===38||s===39||s===41||s===42||s===44||s===46||s===58||s===59||s===60||s===63||s===93||s===95||s===126?t.check(B7,e,i)(s):s===null||an(s)||wu(s)?e(s):(t.consume(s),a)}function i(s){return s===41&&n++,t.consume(s),a}}function O_e(t,e,r){return n;function n(o){return o===33||o===34||o===39||o===41||o===42||o===44||o===46||o===58||o===59||o===63||o===95||o===126?(t.consume(o),n):o===38?(t.consume(o),i):o===93?(t.consume(o),a):o===60||o===null||an(o)||wu(o)?e(o):r(o)}function a(o){return o===null||o===40||o===91||an(o)||wu(o)?e(o):n(o)}function i(o){return oi(o)?s(o):r(o)}function s(o){return o===59?(t.consume(o),n):oi(o)?(t.consume(o),s):r(o)}}function k_e(t,e,r){return n;function n(i){return t.consume(i),a}function a(i){return za(i)?r(i):e(i)}}function $7(t){return t===null||t===40||t===42||t===95||t===91||t===93||t===126||an(t)}function G7(t){return!oi(t)}function z7(t){return!(t===47||Xx(t))}function Xx(t){return t===43||t===45||t===46||t===95||za(t)}function Qx(t){let e=t.length,r=!1;for(;e--;){const n=t[e][1];if((n.type==="labelLink"||n.type==="labelImage")&&!n._balanced){r=!0;break}if(n._gfmAutolinkLiteralWalkedInto){r=!1;break}}return t.length>0&&!r&&(t[t.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),r}const D_e={tokenize:G_e,partial:!0};function L_e(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:F_e,continuation:{tokenize:U_e},exit:$_e}},text:{91:{name:"gfmFootnoteCall",tokenize:B_e},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:M_e,resolveTo:P_e}}}}function M_e(t,e,r){const n=this;let a=n.events.length;const i=n.parser.gfmFootnotes||(n.parser.gfmFootnotes=[]);let s;for(;a--;){const l=n.events[a][1];if(l.type==="labelImage"){s=l;break}if(l.type==="gfmFootnoteCall"||l.type==="labelLink"||l.type==="label"||l.type==="image"||l.type==="link")break}return o;function o(l){if(!s||!s._balanced)return r(l);const u=Ws(n.sliceSerialize({start:s.end,end:n.now()}));return u.codePointAt(0)!==94||!i.includes(u.slice(1))?r(l):(t.enter("gfmFootnoteCallLabelMarker"),t.consume(l),t.exit("gfmFootnoteCallLabelMarker"),e(l))}}function P_e(t,e){let r=t.length;for(;r--;)if(t[r][1].type==="labelImage"&&t[r][0]==="enter"){t[r][1];break}t[r+1][1].type="data",t[r+3][1].type="gfmFootnoteCallLabelMarker";const n={type:"gfmFootnoteCall",start:Object.assign({},t[r+3][1].start),end:Object.assign({},t[t.length-1][1].end)},a={type:"gfmFootnoteCallMarker",start:Object.assign({},t[r+3][1].end),end:Object.assign({},t[r+3][1].end)};a.end.column++,a.end.offset++,a.end._bufferIndex++;const i={type:"gfmFootnoteCallString",start:Object.assign({},a.end),end:Object.assign({},t[t.length-1][1].start)},s={type:"chunkString",contentType:"string",start:Object.assign({},i.start),end:Object.assign({},i.end)},o=[t[r+1],t[r+2],["enter",n,e],t[r+3],t[r+4],["enter",a,e],["exit",a,e],["enter",i,e],["enter",s,e],["exit",s,e],["exit",i,e],t[t.length-2],t[t.length-1],["exit",n,e]];return t.splice(r,t.length-r+1,...o),t}function B_e(t,e,r){const n=this,a=n.parser.gfmFootnotes||(n.parser.gfmFootnotes=[]);let i=0,s;return o;function o(h){return t.enter("gfmFootnoteCall"),t.enter("gfmFootnoteCallLabelMarker"),t.consume(h),t.exit("gfmFootnoteCallLabelMarker"),l}function l(h){return h!==94?r(h):(t.enter("gfmFootnoteCallMarker"),t.consume(h),t.exit("gfmFootnoteCallMarker"),t.enter("gfmFootnoteCallString"),t.enter("chunkString").contentType="string",u)}function u(h){if(i>999||h===93&&!s||h===null||h===91||an(h))return r(h);if(h===93){t.exit("chunkString");const f=t.exit("gfmFootnoteCallString");return a.includes(Ws(n.sliceSerialize(f)))?(t.enter("gfmFootnoteCallLabelMarker"),t.consume(h),t.exit("gfmFootnoteCallLabelMarker"),t.exit("gfmFootnoteCall"),e):r(h)}return an(h)||(s=!0),i++,t.consume(h),h===92?d:u}function d(h){return h===91||h===92||h===93?(t.consume(h),i++,u):u(h)}}function F_e(t,e,r){const n=this,a=n.parser.gfmFootnotes||(n.parser.gfmFootnotes=[]);let i,s=0,o;return l;function l(g){return t.enter("gfmFootnoteDefinition")._container=!0,t.enter("gfmFootnoteDefinitionLabel"),t.enter("gfmFootnoteDefinitionLabelMarker"),t.consume(g),t.exit("gfmFootnoteDefinitionLabelMarker"),u}function u(g){return g===94?(t.enter("gfmFootnoteDefinitionMarker"),t.consume(g),t.exit("gfmFootnoteDefinitionMarker"),t.enter("gfmFootnoteDefinitionLabelString"),t.enter("chunkString").contentType="string",d):r(g)}function d(g){if(s>999||g===93&&!o||g===null||g===91||an(g))return r(g);if(g===93){t.exit("chunkString");const m=t.exit("gfmFootnoteDefinitionLabelString");return i=Ws(n.sliceSerialize(m)),t.enter("gfmFootnoteDefinitionLabelMarker"),t.consume(g),t.exit("gfmFootnoteDefinitionLabelMarker"),t.exit("gfmFootnoteDefinitionLabel"),f}return an(g)||(o=!0),s++,t.consume(g),g===92?h:d}function h(g){return g===91||g===92||g===93?(t.consume(g),s++,d):d(g)}function f(g){return g===58?(t.enter("definitionMarker"),t.consume(g),t.exit("definitionMarker"),a.includes(i)||a.push(i),vr(t,p,"gfmFootnoteDefinitionWhitespace")):r(g)}function p(g){return e(g)}}function U_e(t,e,r){return t.check(bg,e,t.attempt(D_e,e,r))}function $_e(t){t.exit("gfmFootnoteDefinition")}function G_e(t,e,r){const n=this;return vr(t,a,"gfmFootnoteDefinitionIndent",5);function a(i){const s=n.events[n.events.length-1];return s&&s[1].type==="gfmFootnoteDefinitionIndent"&&s[2].sliceSerialize(s[1],!0).length===4?e(i):r(i)}}function z_e(t){let r=(t||{}).singleTilde;const n={name:"strikethrough",tokenize:i,resolveAll:a};return r==null&&(r=!0),{text:{126:n},insideSpan:{null:[n]},attentionMarkers:{null:[126]}};function a(s,o){let l=-1;for(;++l<s.length;)if(s[l][0]==="enter"&&s[l][1].type==="strikethroughSequenceTemporary"&&s[l][1]._close){let u=l;for(;u--;)if(s[u][0]==="exit"&&s[u][1].type==="strikethroughSequenceTemporary"&&s[u][1]._open&&s[l][1].end.offset-s[l][1].start.offset===s[u][1].end.offset-s[u][1].start.offset){s[l][1].type="strikethroughSequence",s[u][1].type="strikethroughSequence";const d={type:"strikethrough",start:Object.assign({},s[u][1].start),end:Object.assign({},s[l][1].end)},h={type:"strikethroughText",start:Object.assign({},s[u][1].end),end:Object.assign({},s[l][1].start)},f=[["enter",d,o],["enter",s[u][1],o],["exit",s[u][1],o],["enter",h,o]],p=o.parser.constructs.insideSpan.null;p&&es(f,f.length,0,O_(p,s.slice(u+1,l),o)),es(f,f.length,0,[["exit",h,o],["enter",s[l][1],o],["exit",s[l][1],o],["exit",d,o]]),es(s,u-1,l-u+3,f),l=u+f.length-2;break}}for(l=-1;++l<s.length;)s[l][1].type==="strikethroughSequenceTemporary"&&(s[l][1].type="data");return s}function i(s,o,l){const u=this.previous,d=this.events;let h=0;return f;function f(g){return u===126&&d[d.length-1][1].type!=="characterEscape"?l(g):(s.enter("strikethroughSequenceTemporary"),p(g))}function p(g){const m=dh(u);if(g===126)return h>1?l(g):(s.consume(g),h++,p);if(h<2&&!r)return l(g);const y=s.exit("strikethroughSequenceTemporary"),_=dh(g);return y._open=!_||_===2&&!!m,y._close=!m||m===2&&!!_,o(g)}}}class Y_e{constructor(){this.map=[]}add(e,r,n){H_e(this,e,r,n)}consume(e){if(this.map.sort(function(i,s){return i[0]-s[0]}),this.map.length===0)return;let r=this.map.length;const n=[];for(;r>0;)r-=1,n.push(e.slice(this.map[r][0]+this.map[r][1]),this.map[r][2]),e.length=this.map[r][0];n.push(e.slice()),e.length=0;let a=n.pop();for(;a;){for(const i of a)e.push(i);a=n.pop()}this.map.length=0}}function H_e(t,e,r,n){let a=0;if(!(r===0&&n.length===0)){for(;a<t.map.length;){if(t.map[a][0]===e){t.map[a][1]+=r,t.map[a][2].push(...n);return}a+=1}t.map.push([e,r,n])}}function V_e(t,e){let r=!1;const n=[];for(;e<t.length;){const a=t[e];if(r){if(a[0]==="enter")a[1].type==="tableContent"&&n.push(t[e+1][1].type==="tableDelimiterMarker"?"left":"none");else if(a[1].type==="tableContent"){if(t[e-1][1].type==="tableDelimiterMarker"){const i=n.length-1;n[i]=n[i]==="left"?"center":"right"}}else if(a[1].type==="tableDelimiterRow")break}else a[0]==="enter"&&a[1].type==="tableDelimiterRow"&&(r=!0);e+=1}return n}function q_e(){return{flow:{null:{name:"table",tokenize:W_e,resolveAll:K_e}}}}function W_e(t,e,r){const n=this;let a=0,i=0,s;return o;function o(I){let R=n.events.length-1;for(;R>-1;){const A=n.events[R][1].type;if(A==="lineEnding"||A==="linePrefix")R--;else break}const M=R>-1?n.events[R][1].type:null,P=M==="tableHead"||M==="tableRow"?x:l;return P===x&&n.parser.lazy[n.now().line]?r(I):P(I)}function l(I){return t.enter("tableHead"),t.enter("tableRow"),u(I)}function u(I){return I===124||(s=!0,i+=1),d(I)}function d(I){return I===null?r(I):Wt(I)?i>1?(i=0,n.interrupt=!0,t.exit("tableRow"),t.enter("lineEnding"),t.consume(I),t.exit("lineEnding"),p):r(I):br(I)?vr(t,d,"whitespace")(I):(i+=1,s&&(s=!1,a+=1),I===124?(t.enter("tableCellDivider"),t.consume(I),t.exit("tableCellDivider"),s=!0,d):(t.enter("data"),h(I)))}function h(I){return I===null||I===124||an(I)?(t.exit("data"),d(I)):(t.consume(I),I===92?f:h)}function f(I){return I===92||I===124?(t.consume(I),h):h(I)}function p(I){return n.interrupt=!1,n.parser.lazy[n.now().line]?r(I):(t.enter("tableDelimiterRow"),s=!1,br(I)?vr(t,g,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(I):g(I))}function g(I){return I===45||I===58?y(I):I===124?(s=!0,t.enter("tableCellDivider"),t.consume(I),t.exit("tableCellDivider"),m):T(I)}function m(I){return br(I)?vr(t,y,"whitespace")(I):y(I)}function y(I){return I===58?(i+=1,s=!0,t.enter("tableDelimiterMarker"),t.consume(I),t.exit("tableDelimiterMarker"),_):I===45?(i+=1,_(I)):I===null||Wt(I)?S(I):T(I)}function _(I){return I===45?(t.enter("tableDelimiterFiller"),v(I)):T(I)}function v(I){return I===45?(t.consume(I),v):I===58?(s=!0,t.exit("tableDelimiterFiller"),t.enter("tableDelimiterMarker"),t.consume(I),t.exit("tableDelimiterMarker"),E):(t.exit("tableDelimiterFiller"),E(I))}function E(I){return br(I)?vr(t,S,"whitespace")(I):S(I)}function S(I){return I===124?g(I):I===null||Wt(I)?!s||a!==i?T(I):(t.exit("tableDelimiterRow"),t.exit("tableHead"),e(I)):T(I)}function T(I){return r(I)}function x(I){return t.enter("tableRow"),C(I)}function C(I){return I===124?(t.enter("tableCellDivider"),t.consume(I),t.exit("tableCellDivider"),C):I===null||Wt(I)?(t.exit("tableRow"),e(I)):br(I)?vr(t,C,"whitespace")(I):(t.enter("data"),w(I))}function w(I){return I===null||I===124||an(I)?(t.exit("data"),C(I)):(t.consume(I),I===92?N:w)}function N(I){return I===92||I===124?(t.consume(I),w):w(I)}}function K_e(t,e){let r=-1,n=!0,a=0,i=[0,0,0,0],s=[0,0,0,0],o=!1,l=0,u,d,h;const f=new Y_e;for(;++r<t.length;){const p=t[r],g=p[1];p[0]==="enter"?g.type==="tableHead"?(o=!1,l!==0&&(Y7(f,e,l,u,d),d=void 0,l=0),u={type:"table",start:Object.assign({},g.start),end:Object.assign({},g.end)},f.add(r,0,[["enter",u,e]])):g.type==="tableRow"||g.type==="tableDelimiterRow"?(n=!0,h=void 0,i=[0,0,0,0],s=[0,r+1,0,0],o&&(o=!1,d={type:"tableBody",start:Object.assign({},g.start),end:Object.assign({},g.end)},f.add(r,0,[["enter",d,e]])),a=g.type==="tableDelimiterRow"?2:d?3:1):a&&(g.type==="data"||g.type==="tableDelimiterMarker"||g.type==="tableDelimiterFiller")?(n=!1,s[2]===0&&(i[1]!==0&&(s[0]=s[1],h=vy(f,e,i,a,void 0,h),i=[0,0,0,0]),s[2]=r)):g.type==="tableCellDivider"&&(n?n=!1:(i[1]!==0&&(s[0]=s[1],h=vy(f,e,i,a,void 0,h)),i=s,s=[i[1],r,0,0])):g.type==="tableHead"?(o=!0,l=r):g.type==="tableRow"||g.type==="tableDelimiterRow"?(l=r,i[1]!==0?(s[0]=s[1],h=vy(f,e,i,a,r,h)):s[1]!==0&&(h=vy(f,e,s,a,r,h)),a=0):a&&(g.type==="data"||g.type==="tableDelimiterMarker"||g.type==="tableDelimiterFiller")&&(s[3]=r)}for(l!==0&&Y7(f,e,l,u,d),f.consume(e.events),r=-1;++r<e.events.length;){const p=e.events[r];p[0]==="enter"&&p[1].type==="table"&&(p[1]._align=V_e(e.events,r))}return t}function vy(t,e,r,n,a,i){const s=n===1?"tableHeader":n===2?"tableDelimiter":"tableData",o="tableContent";r[0]!==0&&(i.end=Object.assign({},wh(e.events,r[0])),t.add(r[0],0,[["exit",i,e]]));const l=wh(e.events,r[1]);if(i={type:s,start:Object.assign({},l),end:Object.assign({},l)},t.add(r[1],0,[["enter",i,e]]),r[2]!==0){const u=wh(e.events,r[2]),d=wh(e.events,r[3]),h={type:o,start:Object.assign({},u),end:Object.assign({},d)};if(t.add(r[2],0,[["enter",h,e]]),n!==2){const f=e.events[r[2]],p=e.events[r[3]];if(f[1].end=Object.assign({},p[1].end),f[1].type="chunkText",f[1].contentType="text",r[3]>r[2]+1){const g=r[2]+1,m=r[3]-r[2]-1;t.add(g,m,[])}}t.add(r[3]+1,0,[["exit",h,e]])}return a!==void 0&&(i.end=Object.assign({},wh(e.events,a)),t.add(a,0,[["exit",i,e]]),i=void 0),i}function Y7(t,e,r,n,a){const i=[],s=wh(e.events,r);a&&(a.end=Object.assign({},s),i.push(["exit",a,e])),n.end=Object.assign({},s),i.push(["exit",n,e]),t.add(r+1,0,i)}function wh(t,e){const r=t[e],n=r[0]==="enter"?"start":"end";return r[1][n]}const X_e={name:"tasklistCheck",tokenize:j_e};function Q_e(){return{text:{91:X_e}}}function j_e(t,e,r){const n=this;return a;function a(l){return n.previous!==null||!n._gfmTasklistFirstContentOfListItem?r(l):(t.enter("taskListCheck"),t.enter("taskListCheckMarker"),t.consume(l),t.exit("taskListCheckMarker"),i)}function i(l){return an(l)?(t.enter("taskListCheckValueUnchecked"),t.consume(l),t.exit("taskListCheckValueUnchecked"),s):l===88||l===120?(t.enter("taskListCheckValueChecked"),t.consume(l),t.exit("taskListCheckValueChecked"),s):r(l)}function s(l){return l===93?(t.enter("taskListCheckMarker"),t.consume(l),t.exit("taskListCheckMarker"),t.exit("taskListCheck"),o):r(l)}function o(l){return Wt(l)?e(l):br(l)?t.check({tokenize:Z_e},e,r)(l):r(l)}}function Z_e(t,e,r){return vr(t,n,"whitespace");function n(a){return a===null?r(a):e(a)}}function J_e(t){return uM([x_e(),L_e(),z_e(t),q_e(),Q_e()])}const eye={};function tye(t){const e=this,r=t||eye,n=e.data(),a=n.micromarkExtensions||(n.micromarkExtensions=[]),i=n.fromMarkdownExtensions||(n.fromMarkdownExtensions=[]),s=n.toMarkdownExtensions||(n.toMarkdownExtensions=[]);a.push(J_e(r)),i.push(E_e()),s.push(b_e(r))}const H7=t=>Array.isArray(t)?t:typeof t=="string"?t.split(" ").filter(Boolean):[],jx=t=>{var e,r,n,a,i,s,o,l,u,d;if(!t)return"";if(t.type==="element"&&t.tagName==="_azs-source-ref"){const h=((e=t.properties)==null?void 0:e["data-ref-source-id"])||"",f=((n=(r=t.children)==null?void 0:r[0])==null?void 0:n.value)||(h?`[[${h}]]`:"");return{type:"ref",refId:h,displayText:f,content:f,slotTagName:"_azs-source-ref",properties:t.properties||{},classList:H7(((a=t.properties)==null?void 0:a.className)||((i=t.properties)==null?void 0:i.class))}}if(t.type==="element"&&t.tagName==="math")return{type:"math",ast:t};if(t.type==="element"&&H7(((s=t.properties)==null?void 0:s.className)||((o=t.properties)==null?void 0:o.class)).some(f=>f.includes("katex")))return{type:"math",ast:t};if(t.type==="element"&&t.tagName==="a")return{type:"link",href:((l=t.properties)==null?void 0:l.href)||"",content:((d=(u=t.children)==null?void 0:u[0])==null?void 0:d.value)||""};if(t.type==="text"){const h=t.value||"";return/\[\[(\d+)\]\]/g.test(h)?h.split(/(\[\[\d+\]\])/g).map(g=>{const m=g.match(/\[\[(\d+)\]\]/);if(m){const y=m[1];return{type:"ref",refId:y,displayText:g,content:g,slotTagName:"_azs-source-ref",properties:{"data-ref-source-id":y,className:["_azs-source-reference"]},classList:["_azs-source-reference"]}}return{type:"text",content:g}}).filter(g=>g.type==="text"&&g.content!==""||g.type==="ref"):{type:"text",content:h}}if(t.type==="element"&&t.children&&t.children.length>0){const f=t.children.map(m=>jx(m)).flat(),p=f.some(m=>typeof m=="object"&&(m==null?void 0:m.type)==="ref"),g=f.some(m=>typeof m=="object"&&(m==null?void 0:m.type)==="math");return p||g?f.map(m=>typeof m=="object"&&((m==null?void 0:m.type)==="ref"||(m==null?void 0:m.type)==="math")?m:{type:(m==null?void 0:m.type)||"text",content:(m==null?void 0:m.content)||""}):f.map(m=>typeof m=="string"?{type:"text",content:m}:{type:(m==null?void 0:m.type)||"text",content:(m==null?void 0:m.content)||"",href:(m==null?void 0:m.href)||""})}return""},V7=t=>Array.isArray(t)?t:t==null||t===""?[]:[t],rye=t=>{var i,s,o,l,u;const e=[],r=[],n=(i=t.children)==null?void 0:i.find(d=>d.tagName==="thead"),a=(s=t.children)==null?void 0:s.find(d=>d.tagName==="tbody");if(n){const d=(o=n.children)==null?void 0:o.find(h=>h.tagName==="tr");d&&((l=d.children)==null||l.forEach(h=>{var f,p,g,m;if(h.tagName==="th"){const y=((f=h.properties)==null?void 0:f.align)||"left",_=V7(jx(h)),v=_.some(T=>typeof T=="object"&&(T==null?void 0:T.type)==="ref"),E=_.some(T=>typeof T=="object"&&(T==null?void 0:T.type)==="math"),S=_.length===1&&typeof _[0]=="object"&&((p=_[0])==null?void 0:p.type)==="link";e.push({content:v||E?_:_.map(T=>typeof T=="object"?(T==null?void 0:T.content)||"":T||"").join(""),align:y,type:v?"ref":E?"math":S?"link":(g=_[0])==null?void 0:g.type,href:S&&((m=_[0])==null?void 0:m.href)||""})}}))}return a&&((u=a.children)==null||u.forEach(d=>{var h;if(d.tagName==="tr"){const f=[];(h=d.children)==null||h.forEach(p=>{var g,m,y,_;if(p.tagName==="td"){const v=((g=p.properties)==null?void 0:g.align)||"left",E=V7(jx(p)),S=E.some(C=>typeof C=="object"&&(C==null?void 0:C.type)==="ref"),T=E.some(C=>typeof C=="object"&&(C==null?void 0:C.type)==="math"),x=E.length===1&&typeof E[0]=="object"&&((m=E[0])==null?void 0:m.type)==="link";f.push({content:S||T?E:E.map(C=>typeof C=="object"?(C==null?void 0:C.content)||"":C||"").join(""),align:v,type:S?"ref":T?"math":x?"link":(y=E[0])==null?void 0:y.type,href:x&&((_=E[0])==null?void 0:_.href)||""})}}),f.length>0&&r.push({cells:f})}})),{headers:e,rows:r}};function nye(t){return e=>{U_(e,"text",(r,n,a)=>{if(!a||typeof r.value!="string")return;const i=t;let s=[];try{typeof r.value=="string"&&i instanceof RegExp&&(s=[...r.value.matchAll(i)])}catch{s=[]}if(s.length>0){const o=[];let l=0;s.forEach(u=>{const[d,h]=u,f=u.index;f>l&&o.push({type:"text",value:r.value.slice(l,f)}),o.push({type:"element",tagName:"_azs-source-ref",properties:{"data-ref-source-id":h,className:["_azs-source-reference"]},children:[{type:"text",value:d}]}),l=f+d.length}),l<r.value.length&&o.push({type:"text",value:r.value.slice(l)}),typeof n=="number"&&a.children.splice(n,1,...o)}})}}const q7=Be.defineComponent({name:"AzsMdSource",props:{refId:{type:String,required:!0},displayText:{type:String,default:""},clickable:{type:Boolean,default:!1}},setup(t){const e=Be.inject("azsMdSlots",void 0);return()=>{const r=e&&typeof e.source=="function"?e.source:void 0;return r?r({refId:t.refId,displayText:t.displayText}):Be.h("div",{},t.displayText)}}}),aye={class:"azs-table-container"},iye={class:"azs-table"},sye={key:0},oye={key:1},lye=Be.defineComponent({__name:"AzsMarkdownTable",props:{tableData:{}},setup(t){const e=Be.defineComponent({name:"CellContent",props:{type:{type:String,required:!1},href:{type:String,required:!1},content:{type:[String,Array],required:!0}},setup(){return{azsSlots:Be.inject("azsMdSlots",void 0)}},render(){const{content:n,type:a,href:i,azsSlots:s}=this;return a==="link"&&typeof n=="string"?Be.h("a",{href:i,target:"_blank",rel:"noopener noreferrer",style:"color: #0069d9;text-decoration:underline;"},n):typeof n=="string"?n:Array.isArray(n)?n.map((o,l)=>{if(typeof o=="string")return o;if((o==null?void 0:o.type)==="ref"){const u=o.slotTagName||"_azs-source-ref",d=s&&typeof s[u]=="function"?s[u]:void 0;if(d){const h=d({properties:o.properties||{},content:o.displayText||o.content||"",tagName:u,classList:o.classList||[]});return Be.h(Be.Fragment,{key:`slot-${l}`},h)}return Be.h(q7,{key:`ref-${l}`,refId:o.refId,displayText:o.displayText||o.content,clickable:!0})}else if((o==null?void 0:o.type)==="math"){if(o.ast){const u=hm(o.ast),d=Array.isArray(u)?u:[u];return Be.h(Be.Fragment,{key:`math-${l}`},d)}return null}else return(o==null?void 0:o.type)==="link"?Be.h("a",{key:`link-${l}`,href:o.href||"",target:"_blank",rel:"noopener noreferrer",style:"color: #0069d9;text-decoration:underline;"},o.content||""):Be.h("span",{key:`text-${l}`},(o==null?void 0:o.content)!==void 0?o.content:"")}).filter(Boolean):n}}),r=n=>n?`text-${n}`:"text-left";return(n,a)=>(Be.openBlock(),Be.createElementBlock("div",aye,[Be.createElementVNode("table",iye,[n.tableData.headers&&n.tableData.headers.length>0?(Be.openBlock(),Be.createElementBlock("thead",sye,[Be.createElementVNode("tr",null,[(Be.openBlock(!0),Be.createElementBlock(Be.Fragment,null,Be.renderList(n.tableData.headers,(i,s)=>(Be.openBlock(),Be.createElementBlock("th",{key:s,class:Be.normalizeClass(r(i.align))},[Be.createVNode(Be.unref(e),{content:i.content},null,8,["content"])],2))),128))])])):Be.createCommentVNode("",!0),n.tableData.rows&&n.tableData.rows.length>0?(Be.openBlock(),Be.createElementBlock("tbody",oye,[(Be.openBlock(!0),Be.createElementBlock(Be.Fragment,null,Be.renderList(n.tableData.rows,(i,s)=>(Be.openBlock(),Be.createElementBlock("tr",{key:s},[(Be.openBlock(!0),Be.createElementBlock(Be.Fragment,null,Be.renderList(i.cells,(o,l)=>(Be.openBlock(),Be.createElementBlock("td",{key:l,class:Be.normalizeClass(r(o.align))},[Be.createVNode(Be.unref(e),{content:o.content,href:o.href||"",type:o.type||""},null,8,["content","href","type"])],2))),128))]))),128))])):Be.createCommentVNode("",!0)])]))}}),cye={class:"toolbar"},uye={class:"zoom-level"},dye=["src","alt","title"],hye={key:0,class:"loading"},fye=.1,pye=5,W7=.2,gye=Be.defineComponent({__name:"ImagePreview",props:{visible:{type:Boolean},src:{},alt:{default:""},title:{default:""}},emits:["close"],setup(t,{emit:e}){const r=e,n=Be.ref(1),a=Be.ref(0),i=Be.ref(0),s=Be.ref(!0),o=Be.ref(!1),l=Be.ref({x:0,y:0}),u=Be.ref({x:0,y:0}),d=Be.ref(),h=Be.ref(),f=Be.ref(),p=Be.computed(()=>({transform:`scale(${n.value}) translate(${a.value}px, ${i.value}px)`,transformOrigin:"center center",transition:o.value?"none":"transform 0.2s ease-out",cursor:o.value?"grabbing":"grab"})),g=()=>{r("close")},m=()=>{n.value=Math.min(n.value+W7,pye),v()},y=()=>{n.value=Math.max(n.value-W7,fye),v()},_=()=>{n.value=1,v()},v=()=>{a.value=0,i.value=0},E=()=>{s.value=!1,_()},S=I=>{I.target===d.value&&g()},T=I=>{switch(I.key){case"Escape":g();break;case"+":case"=":I.preventDefault(),m();break;case"-":I.preventDefault(),y();break;case"0":I.preventDefault(),_();break;case"ArrowLeft":I.preventDefault(),a.value-=20;break;case"ArrowRight":I.preventDefault(),a.value+=20;break;case"ArrowUp":I.preventDefault(),i.value-=20;break;case"ArrowDown":I.preventDefault(),i.value+=20;break}},x=I=>{n.value<=1||(o.value=!0,l.value={x:I.clientX,y:I.clientY},u.value={x:a.value,y:i.value},I.preventDefault())},C=I=>{I.preventDefault(),I.deltaY<0?m():y()},w=I=>{if(!o.value)return;const R=I.clientX-l.value.x,M=I.clientY-l.value.y;a.value=u.value.x+R,i.value=u.value.y+M},N=()=>{o.value=!1};return Be.onMounted(()=>{document.addEventListener("mousemove",w),document.addEventListener("mouseup",N),Be.nextTick(()=>{var I;(I=d.value)==null||I.focus()})}),Be.onUnmounted(()=>{document.removeEventListener("mousemove",w),document.removeEventListener("mouseup",N)}),(I,R)=>I.visible?(Be.openBlock(),Be.createElementBlock("div",{key:0,class:"image-preview-overlay",onClick:S,onKeydown:T,tabindex:"0",ref_key:"overlayRef",ref:d},[Be.createElementVNode("button",{class:"close-btn",onClick:g,title:"关闭 (ESC)"},[...R[1]||(R[1]=[Be.createElementVNode("svg",{viewBox:"0 0 24 24",width:"24",height:"24"},[Be.createElementVNode("path",{fill:"currentColor",d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"})],-1)])]),Be.createElementVNode("div",{class:"image-preview-container",onClick:R[0]||(R[0]=Be.withModifiers(()=>{},["stop"]))},[Be.createElementVNode("div",cye,[Be.createElementVNode("button",{onClick:m,title:"放大 (+)"},[...R[2]||(R[2]=[Be.createElementVNode("svg",{viewBox:"0 0 24 24",width:"20",height:"20"},[Be.createElementVNode("path",{fill:"currentColor",d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"})],-1)])]),Be.createElementVNode("button",{onClick:y,title:"缩小 (-)"},[...R[3]||(R[3]=[Be.createElementVNode("svg",{viewBox:"0 0 24 24",width:"20",height:"20"},[Be.createElementVNode("path",{fill:"currentColor",d:"M19 13H5v-2h14v2z"})],-1)])]),Be.createElementVNode("button",{onClick:_,title:"重置 (0)"},[...R[4]||(R[4]=[Be.createElementVNode("svg",{viewBox:"0 0 24 24",width:"20",height:"20"},[Be.createElementVNode("path",{fill:"currentColor",d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"})],-1)])]),Be.createElementVNode("span",uye,Be.toDisplayString(Math.round(n.value*100))+"%",1)]),Be.createElementVNode("div",{class:"image-container",ref_key:"imageContainerRef",ref:h},[Be.createElementVNode("img",{src:I.src,alt:I.alt,title:I.title,style:Be.normalizeStyle(p.value),onLoad:E,onMousedown:x,onWheel:C,draggable:"false",ref_key:"imageRef",ref:f},null,44,dye)],512),s.value?(Be.openBlock(),Be.createElementBlock("div",hye,[...R[5]||(R[5]=[Be.createElementVNode("div",{class:"spinner"},null,-1),Be.createElementVNode("span",null,"加载中...",-1)])])):Be.createCommentVNode("",!0)])],544)):Be.createCommentVNode("",!0)}}),K7=(t,e)=>{const r=t.__vccOpts||t;for(const[n,a]of e)r[n]=a;return r},mye=K7(gye,[["__scopeId","data-v-e743af48"]]),X7=Be.defineComponent({name:"AzsMdImg",props:{src:{type:String,required:!0},alt:{type:String,default:""},title:{type:String,default:""}},setup(t){const e=Be.inject("azsMdSlots",void 0),r=Be.ref(!1),n=()=>{r.value=!0},a=()=>{r.value=!1};return()=>{const i=e&&typeof e.image=="function"?e.image:void 0,s=Be.h(Be.Teleport,{to:"body"},Be.h(mye,{visible:r.value,src:t.src,alt:t.alt,title:t.title,onClose:a}));return console.log(i,"---------------"),i?i({src:t.src,alt:t.alt,title:t.title,onClick:n}):Be.h("div",[Be.h("img",{src:t.src,alt:t.alt,title:t.title,style:"max-width: 100%; cursor: pointer;",onClick:n}),s])}}});var Zx={name:"mermaid",version:"11.11.0",description:"Markdown-ish syntax for generating flowcharts, mindmaps, sequence diagrams, class diagrams, gantt charts, git graphs and more.",type:"module",module:"./dist/mermaid.core.mjs",types:"./dist/mermaid.d.ts",exports:{".":{types:"./dist/mermaid.d.ts",import:"./dist/mermaid.core.mjs",default:"./dist/mermaid.core.mjs"},"./*":"./*"},keywords:["diagram","markdown","flowchart","sequence diagram","gantt","class diagram","git graph","mindmap","packet diagram","c4 diagram","er diagram","pie chart","pie diagram","quadrant chart","requirement diagram","graph"],scripts:{clean:"rimraf dist",dev:"pnpm -w dev","docs:code":"typedoc src/defaultConfig.ts src/config.ts src/mermaid.ts && prettier --write ./src/docs/config/setup","docs:build":"rimraf ../../docs && pnpm docs:code && pnpm docs:spellcheck && tsx scripts/docs.cli.mts","docs:verify":"pnpm docs:code && pnpm docs:spellcheck && tsx scripts/docs.cli.mts --verify","docs:pre:vitepress":"pnpm --filter ./src/docs prefetch && rimraf src/vitepress && pnpm docs:code && tsx scripts/docs.cli.mts --vitepress && pnpm --filter ./src/vitepress install --no-frozen-lockfile --ignore-scripts","docs:build:vitepress":"pnpm docs:pre:vitepress && (cd src/vitepress && pnpm run build) && cpy --flat src/docs/landing/ ./src/vitepress/.vitepress/dist/landing","docs:dev":'pnpm docs:pre:vitepress && concurrently "pnpm --filter ./src/vitepress dev" "tsx scripts/docs.cli.mts --watch --vitepress"',"docs:dev:docker":'pnpm docs:pre:vitepress && concurrently "pnpm --filter ./src/vitepress dev:docker" "tsx scripts/docs.cli.mts --watch --vitepress"',"docs:serve":"pnpm docs:build:vitepress && vitepress serve src/vitepress","docs:spellcheck":'cspell "src/docs/**/*.md"',"docs:release-version":"tsx scripts/update-release-version.mts","docs:verify-version":"tsx scripts/update-release-version.mts --verify","types:build-config":"tsx scripts/create-types-from-json-schema.mts","types:verify-config":"tsx scripts/create-types-from-json-schema.mts --verify",checkCircle:"npx madge --circular ./src",prepublishOnly:"pnpm docs:verify-version"},repository:{type:"git",url:"https://github.com/mermaid-js/mermaid"},author:"Knut Sveidqvist",license:"MIT",standard:{ignore:["**/parser/*.js","dist/**/*.js","cypress/**/*.js"],globals:["page"]},dependencies:{"@braintree/sanitize-url":"^7.0.4","@iconify/utils":"^3.0.1","@mermaid-js/parser":"workspace:^","@types/d3":"^7.4.3",cytoscape:"^3.29.3","cytoscape-cose-bilkent":"^4.1.0","cytoscape-fcose":"^2.2.0",d3:"^7.9.0","d3-sankey":"^0.12.3","dagre-d3-es":"7.0.11",dayjs:"^1.11.13",dompurify:"^3.2.5",katex:"^0.16.22",khroma:"^2.1.0","lodash-es":"^4.17.21",marked:"^15.0.7",roughjs:"^4.6.6",stylis:"^4.3.6","ts-dedent":"^2.2.0",uuid:"^11.1.0"},devDependencies:{"@adobe/jsonschema2md":"^8.0.2","@iconify/types":"^2.0.0","@types/cytoscape":"^3.21.9","@types/cytoscape-fcose":"^2.2.4","@types/d3-sankey":"^0.12.4","@types/d3-scale":"^4.0.9","@types/d3-scale-chromatic":"^3.1.0","@types/d3-selection":"^3.0.11","@types/d3-shape":"^3.1.7","@types/jsdom":"^21.1.7","@types/katex":"^0.16.7","@types/lodash-es":"^4.17.12","@types/micromatch":"^4.0.9","@types/stylis":"^4.2.7","@types/uuid":"^10.0.0",ajv:"^8.17.1",canvas:"^3.1.0",chokidar:"3.6.0",concurrently:"^9.1.2","csstree-validator":"^4.0.1",globby:"^14.0.2",jison:"^0.4.18","js-base64":"^3.7.7",jsdom:"^26.1.0","json-schema-to-typescript":"^15.0.4",micromatch:"^4.0.8","path-browserify":"^1.0.1",prettier:"^3.5.2",remark:"^15.0.1","remark-frontmatter":"^5.0.0","remark-gfm":"^4.0.1",rimraf:"^6.0.1","start-server-and-test":"^2.0.10","type-fest":"^4.35.0",typedoc:"^0.28.9","typedoc-plugin-markdown":"^4.8.0",typescript:"~5.7.3","unist-util-flatmap":"^1.0.0","unist-util-visit":"^5.0.0",vitepress:"^1.0.2","vitepress-plugin-search":"1.0.4-alpha.22"},files:["dist/","README.md"],publishConfig:{access:"public"}},Q7={exports:{}};(function(t,e){(function(r,n){t.exports=n()})(vo,function(){var r=1e3,n=6e4,a=36e5,i="millisecond",s="second",o="minute",l="hour",u="day",d="week",h="month",f="quarter",p="year",g="date",m="Invalid Date",y=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,_=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,v={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(A){var k=["th","st","nd","rd"],O=A%100;return"["+A+(k[(O-20)%10]||k[O]||k[0])+"]"}},E=function(A,k,O){var D=String(A);return!D||D.length>=k?A:""+Array(k+1-D.length).join(O)+A},S={s:E,z:function(A){var k=-A.utcOffset(),O=Math.abs(k),D=Math.floor(O/60),L=O%60;return(k<=0?"+":"-")+E(D,2,"0")+":"+E(L,2,"0")},m:function A(k,O){if(k.date()<O.date())return-A(O,k);var D=12*(O.year()-k.year())+(O.month()-k.month()),L=k.clone().add(D,h),F=O-L<0,B=k.clone().add(D+(F?-1:1),h);return+(-(D+(O-L)/(F?L-B:B-L))||0)},a:function(A){return A<0?Math.ceil(A)||0:Math.floor(A)},p:function(A){return{M:h,y:p,w:d,d:u,D:g,h:l,m:o,s,ms:i,Q:f}[A]||String(A||"").toLowerCase().replace(/s$/,"")},u:function(A){return A===void 0}},T="en",x={};x[T]=v;var C="$isDayjsObject",w=function(A){return A instanceof M||!(!A||!A[C])},N=function A(k,O,D){var L;if(!k)return T;if(typeof k=="string"){var F=k.toLowerCase();x[F]&&(L=F),O&&(x[F]=O,L=F);var B=k.split("-");if(!L&&B.length>1)return A(B[0])}else{var U=k.name;x[U]=k,L=U}return!D&&L&&(T=L),L||!D&&T},I=function(A,k){if(w(A))return A.clone();var O=typeof k=="object"?k:{};return O.date=A,O.args=arguments,new M(O)},R=S;R.l=N,R.i=w,R.w=function(A,k){return I(A,{locale:k.$L,utc:k.$u,x:k.$x,$offset:k.$offset})};var M=function(){function A(O){this.$L=N(O.locale,null,!0),this.parse(O),this.$x=this.$x||O.x||{},this[C]=!0}var k=A.prototype;return k.parse=function(O){this.$d=function(D){var L=D.date,F=D.utc;if(L===null)return new Date(NaN);if(R.u(L))return new Date;if(L instanceof Date)return new Date(L);if(typeof L=="string"&&!/Z$/i.test(L)){var B=L.match(y);if(B){var U=B[2]-1||0,H=(B[7]||"0").substring(0,3);return F?new Date(Date.UTC(B[1],U,B[3]||1,B[4]||0,B[5]||0,B[6]||0,H)):new Date(B[1],U,B[3]||1,B[4]||0,B[5]||0,B[6]||0,H)}}return new Date(L)}(O),this.init()},k.init=function(){var O=this.$d;this.$y=O.getFullYear(),this.$M=O.getMonth(),this.$D=O.getDate(),this.$W=O.getDay(),this.$H=O.getHours(),this.$m=O.getMinutes(),this.$s=O.getSeconds(),this.$ms=O.getMilliseconds()},k.$utils=function(){return R},k.isValid=function(){return this.$d.toString()!==m},k.isSame=function(O,D){var L=I(O);return this.startOf(D)<=L&&L<=this.endOf(D)},k.isAfter=function(O,D){return I(O)<this.startOf(D)},k.isBefore=function(O,D){return this.endOf(D)<I(O)},k.$g=function(O,D,L){return R.u(O)?this[D]:this.set(L,O)},k.unix=function(){return Math.floor(this.valueOf()/1e3)},k.valueOf=function(){return this.$d.getTime()},k.startOf=function(O,D){var L=this,F=!!R.u(D)||D,B=R.p(O),U=function(Q,Z){var X=R.w(L.$u?Date.UTC(L.$y,Z,Q):new Date(L.$y,Z,Q),L);return F?X:X.endOf(u)},H=function(Q,Z){return R.w(L.toDate()[Q].apply(L.toDate("s"),(F?[0,0,0,0]:[23,59,59,999]).slice(Z)),L)},z=this.$W,te=this.$M,W=this.$D,ee="set"+(this.$u?"UTC":"");switch(B){case p:return F?U(1,0):U(31,11);case h:return F?U(1,te):U(0,te+1);case d:var re=this.$locale().weekStart||0,de=(z<re?z+7:z)-re;return U(F?W-de:W+(6-de),te);case u:case g:return H(ee+"Hours",0);case l:return H(ee+"Minutes",1);case o:return H(ee+"Seconds",2);case s:return H(ee+"Milliseconds",3);default:return this.clone()}},k.endOf=function(O){return this.startOf(O,!1)},k.$set=function(O,D){var L,F=R.p(O),B="set"+(this.$u?"UTC":""),U=(L={},L[u]=B+"Date",L[g]=B+"Date",L[h]=B+"Month",L[p]=B+"FullYear",L[l]=B+"Hours",L[o]=B+"Minutes",L[s]=B+"Seconds",L[i]=B+"Milliseconds",L)[F],H=F===u?this.$D+(D-this.$W):D;if(F===h||F===p){var z=this.clone().set(g,1);z.$d[U](H),z.init(),this.$d=z.set(g,Math.min(this.$D,z.daysInMonth())).$d}else U&&this.$d[U](H);return this.init(),this},k.set=function(O,D){return this.clone().$set(O,D)},k.get=function(O){return this[R.p(O)]()},k.add=function(O,D){var L,F=this;O=Number(O);var B=R.p(D),U=function(te){var W=I(F);return R.w(W.date(W.date()+Math.round(te*O)),F)};if(B===h)return this.set(h,this.$M+O);if(B===p)return this.set(p,this.$y+O);if(B===u)return U(1);if(B===d)return U(7);var H=(L={},L[o]=n,L[l]=a,L[s]=r,L)[B]||1,z=this.$d.getTime()+O*H;return R.w(z,this)},k.subtract=function(O,D){return this.add(-1*O,D)},k.format=function(O){var D=this,L=this.$locale();if(!this.isValid())return L.invalidDate||m;var F=O||"YYYY-MM-DDTHH:mm:ssZ",B=R.z(this),U=this.$H,H=this.$m,z=this.$M,te=L.weekdays,W=L.months,ee=L.meridiem,re=function(Z,X,K,ne){return Z&&(Z[X]||Z(D,F))||K[X].slice(0,ne)},de=function(Z){return R.s(U%12||12,Z,"0")},Q=ee||function(Z,X,K){var ne=Z<12?"AM":"PM";return K?ne.toLowerCase():ne};return F.replace(_,function(Z,X){return X||function(K){switch(K){case"YY":return String(D.$y).slice(-2);case"YYYY":return R.s(D.$y,4,"0");case"M":return z+1;case"MM":return R.s(z+1,2,"0");case"MMM":return re(L.monthsShort,z,W,3);case"MMMM":return re(W,z);case"D":return D.$D;case"DD":return R.s(D.$D,2,"0");case"d":return String(D.$W);case"dd":return re(L.weekdaysMin,D.$W,te,2);case"ddd":return re(L.weekdaysShort,D.$W,te,3);case"dddd":return te[D.$W];case"H":return String(U);case"HH":return R.s(U,2,"0");case"h":return de(1);case"hh":return de(2);case"a":return Q(U,H,!0);case"A":return Q(U,H,!1);case"m":return String(H);case"mm":return R.s(H,2,"0");case"s":return String(D.$s);case"ss":return R.s(D.$s,2,"0");case"SSS":return R.s(D.$ms,3,"0");case"Z":return B}return null}(Z)||B.replace(":","")})},k.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},k.diff=function(O,D,L){var F,B=this,U=R.p(D),H=I(O),z=(H.utcOffset()-this.utcOffset())*n,te=this-H,W=function(){return R.m(B,H)};switch(U){case p:F=W()/12;break;case h:F=W();break;case f:F=W()/3;break;case d:F=(te-z)/6048e5;break;case u:F=(te-z)/864e5;break;case l:F=te/a;break;case o:F=te/n;break;case s:F=te/r;break;default:F=te}return L?F:R.a(F)},k.daysInMonth=function(){return this.endOf(h).$D},k.$locale=function(){return x[this.$L]},k.locale=function(O,D){if(!O)return this.$L;var L=this.clone(),F=N(O,D,!0);return F&&(L.$L=F),L},k.clone=function(){return R.w(this.$d,this)},k.toDate=function(){return new Date(this.valueOf())},k.toJSON=function(){return this.isValid()?this.toISOString():null},k.toISOString=function(){return this.$d.toISOString()},k.toString=function(){return this.$d.toUTCString()},A}(),P=M.prototype;return I.prototype=P,[["$ms",i],["$s",s],["$m",o],["$H",l],["$W",u],["$M",h],["$y",p],["$D",g]].forEach(function(A){P[A[1]]=function(k){return this.$g(k,A[0],A[1])}}),I.extend=function(A,k){return A.$i||(A(k,M,I),A.$i=!0),I},I.locale=N,I.isDayjs=w,I.unix=function(A){return I(1e3*A)},I.en=x[T],I.Ls=x,I.p={},I})})(Q7);var _ye=Q7.exports;const Ha=cc(_ye);var j7=Object.defineProperty,b=(t,e)=>j7(t,"name",{value:e,configurable:!0}),Ey=(t,e)=>{for(var r in e)j7(t,r,{get:e[r],enumerable:!0})},_l={trace:0,debug:1,info:2,warn:3,error:4,fatal:5},oe={trace:b((...t)=>{},"trace"),debug:b((...t)=>{},"debug"),info:b((...t)=>{},"info"),warn:b((...t)=>{},"warn"),error:b((...t)=>{},"error"),fatal:b((...t)=>{},"fatal")},Jx=b(function(t="fatal"){let e=_l.fatal;typeof t=="string"?t.toLowerCase()in _l&&(e=_l[t]):typeof t=="number"&&(e=t),oe.trace=()=>{},oe.debug=()=>{},oe.info=()=>{},oe.warn=()=>{},oe.error=()=>{},oe.fatal=()=>{},e<=_l.fatal&&(oe.fatal=console.error?console.error.bind(console,ws("FATAL"),"color: orange"):console.log.bind(console,"\x1B[35m",ws("FATAL"))),e<=_l.error&&(oe.error=console.error?console.error.bind(console,ws("ERROR"),"color: orange"):console.log.bind(console,"\x1B[31m",ws("ERROR"))),e<=_l.warn&&(oe.warn=console.warn?console.warn.bind(console,ws("WARN"),"color: orange"):console.log.bind(console,"\x1B[33m",ws("WARN"))),e<=_l.info&&(oe.info=console.info?console.info.bind(console,ws("INFO"),"color: lightblue"):console.log.bind(console,"\x1B[34m",ws("INFO"))),e<=_l.debug&&(oe.debug=console.debug?console.debug.bind(console,ws("DEBUG"),"color: lightgreen"):console.log.bind(console,"\x1B[32m",ws("DEBUG"))),e<=_l.trace&&(oe.trace=console.debug?console.debug.bind(console,ws("TRACE"),"color: lightgreen"):console.log.bind(console,"\x1B[32m",ws("TRACE")))},"setLogLevel"),ws=b(t=>`%c${Ha().format("ss.SSS")} : ${t} : `,"format");const by={min:{r:0,g:0,b:0,s:0,l:0,a:0},max:{r:255,g:255,b:255,h:360,s:100,l:100,a:1},clamp:{r:t=>t>=255?255:t<0?0:t,g:t=>t>=255?255:t<0?0:t,b:t=>t>=255?255:t<0?0:t,h:t=>t%360,s:t=>t>=100?100:t<0?0:t,l:t=>t>=100?100:t<0?0:t,a:t=>t>=1?1:t<0?0:t},toLinear:t=>{const e=t/255;return t>.03928?Math.pow((e+.055)/1.055,2.4):e/12.92},hue2rgb:(t,e,r)=>(r<0&&(r+=1),r>1&&(r-=1),r<1/6?t+(e-t)*6*r:r<1/2?e:r<2/3?t+(e-t)*(2/3-r)*6:t),hsl2rgb:({h:t,s:e,l:r},n)=>{if(!e)return r*2.55;t/=360,e/=100,r/=100;const a=r<.5?r*(1+e):r+e-r*e,i=2*r-a;switch(n){case"r":return by.hue2rgb(i,a,t+1/3)*255;case"g":return by.hue2rgb(i,a,t)*255;case"b":return by.hue2rgb(i,a,t-1/3)*255}},rgb2hsl:({r:t,g:e,b:r},n)=>{t/=255,e/=255,r/=255;const a=Math.max(t,e,r),i=Math.min(t,e,r),s=(a+i)/2;if(n==="l")return s*100;if(a===i)return 0;const o=a-i,l=s>.5?o/(2-a-i):o/(a+i);if(n==="s")return l*100;switch(a){case t:return((e-r)/o+(e<r?6:0))*60;case e:return((r-t)/o+2)*60;case r:return((t-e)/o+4)*60;default:return-1}}},or={channel:by,lang:{clamp:(t,e,r)=>e>r?Math.min(e,Math.max(r,t)):Math.min(r,Math.max(e,t)),round:t=>Math.round(t*1e10)/1e10},unit:{dec2hex:t=>{const e=Math.round(t).toString(16);return e.length>1?e:`0${e}`}}},Sc={};for(let t=0;t<=255;t++)Sc[t]=or.unit.dec2hex(t);const Va={ALL:0,RGB:1,HSL:2};let yye=class{constructor(){this.type=Va.ALL}get(){return this.type}set(e){if(this.type&&this.type!==e)throw new Error("Cannot change both RGB and HSL channels at the same time");this.type=e}reset(){this.type=Va.ALL}is(e){return this.type===e}};class vye{constructor(e,r){this.color=r,this.changed=!1,this.data=e,this.type=new yye}set(e,r){return this.color=r,this.changed=!1,this.data=e,this.type.type=Va.ALL,this}_ensureHSL(){const e=this.data,{h:r,s:n,l:a}=e;r===void 0&&(e.h=or.channel.rgb2hsl(e,"h")),n===void 0&&(e.s=or.channel.rgb2hsl(e,"s")),a===void 0&&(e.l=or.channel.rgb2hsl(e,"l"))}_ensureRGB(){const e=this.data,{r,g:n,b:a}=e;r===void 0&&(e.r=or.channel.hsl2rgb(e,"r")),n===void 0&&(e.g=or.channel.hsl2rgb(e,"g")),a===void 0&&(e.b=or.channel.hsl2rgb(e,"b"))}get r(){const e=this.data,r=e.r;return!this.type.is(Va.HSL)&&r!==void 0?r:(this._ensureHSL(),or.channel.hsl2rgb(e,"r"))}get g(){const e=this.data,r=e.g;return!this.type.is(Va.HSL)&&r!==void 0?r:(this._ensureHSL(),or.channel.hsl2rgb(e,"g"))}get b(){const e=this.data,r=e.b;return!this.type.is(Va.HSL)&&r!==void 0?r:(this._ensureHSL(),or.channel.hsl2rgb(e,"b"))}get h(){const e=this.data,r=e.h;return!this.type.is(Va.RGB)&&r!==void 0?r:(this._ensureRGB(),or.channel.rgb2hsl(e,"h"))}get s(){const e=this.data,r=e.s;return!this.type.is(Va.RGB)&&r!==void 0?r:(this._ensureRGB(),or.channel.rgb2hsl(e,"s"))}get l(){const e=this.data,r=e.l;return!this.type.is(Va.RGB)&&r!==void 0?r:(this._ensureRGB(),or.channel.rgb2hsl(e,"l"))}get a(){return this.data.a}set r(e){this.type.set(Va.RGB),this.changed=!0,this.data.r=e}set g(e){this.type.set(Va.RGB),this.changed=!0,this.data.g=e}set b(e){this.type.set(Va.RGB),this.changed=!0,this.data.b=e}set h(e){this.type.set(Va.HSL),this.changed=!0,this.data.h=e}set s(e){this.type.set(Va.HSL),this.changed=!0,this.data.s=e}set l(e){this.type.set(Va.HSL),this.changed=!0,this.data.l=e}set a(e){this.changed=!0,this.data.a=e}}const Sy=new vye({r:0,g:0,b:0,a:0},"transparent"),Nh={re:/^#((?:[a-f0-9]{2}){2,4}|[a-f0-9]{3})$/i,parse:t=>{if(t.charCodeAt(0)!==35)return;const e=t.match(Nh.re);if(!e)return;const r=e[1],n=parseInt(r,16),a=r.length,i=a%4===0,s=a>4,o=s?1:17,l=s?8:4,u=i?0:-1,d=s?255:15;return Sy.set({r:(n>>l*(u+3)&d)*o,g:(n>>l*(u+2)&d)*o,b:(n>>l*(u+1)&d)*o,a:i?(n&d)*o/255:1},t)},stringify:t=>{const{r:e,g:r,b:n,a}=t;return a<1?`#${Sc[Math.round(e)]}${Sc[Math.round(r)]}${Sc[Math.round(n)]}${Sc[Math.round(a*255)]}`:`#${Sc[Math.round(e)]}${Sc[Math.round(r)]}${Sc[Math.round(n)]}`}},Fu={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,hueRe:/^(.+?)(deg|grad|rad|turn)$/i,_hue2deg:t=>{const e=t.match(Fu.hueRe);if(e){const[,r,n]=e;switch(n){case"grad":return or.channel.clamp.h(parseFloat(r)*.9);case"rad":return or.channel.clamp.h(parseFloat(r)*180/Math.PI);case"turn":return or.channel.clamp.h(parseFloat(r)*360)}}return or.channel.clamp.h(parseFloat(t))},parse:t=>{const e=t.charCodeAt(0);if(e!==104&&e!==72)return;const r=t.match(Fu.re);if(!r)return;const[,n,a,i,s,o]=r;return Sy.set({h:Fu._hue2deg(n),s:or.channel.clamp.s(parseFloat(a)),l:or.channel.clamp.l(parseFloat(i)),a:s?or.channel.clamp.a(o?parseFloat(s)/100:parseFloat(s)):1},t)},stringify:t=>{const{h:e,s:r,l:n,a}=t;return a<1?`hsla(${or.lang.round(e)}, ${or.lang.round(r)}%, ${or.lang.round(n)}%, ${a})`:`hsl(${or.lang.round(e)}, ${or.lang.round(r)}%, ${or.lang.round(n)}%)`}},Qg={colors:{aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyanaqua:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",transparent:"#00000000",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"},parse:t=>{t=t.toLowerCase();const e=Qg.colors[t];if(e)return Nh.parse(e)},stringify:t=>{const e=Nh.stringify(t);for(const r in Qg.colors)if(Qg.colors[r]===e)return r}},jg={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,parse:t=>{const e=t.charCodeAt(0);if(e!==114&&e!==82)return;const r=t.match(jg.re);if(!r)return;const[,n,a,i,s,o,l,u,d]=r;return Sy.set({r:or.channel.clamp.r(a?parseFloat(n)*2.55:parseFloat(n)),g:or.channel.clamp.g(s?parseFloat(i)*2.55:parseFloat(i)),b:or.channel.clamp.b(l?parseFloat(o)*2.55:parseFloat(o)),a:u?or.channel.clamp.a(d?parseFloat(u)/100:parseFloat(u)):1},t)},stringify:t=>{const{r:e,g:r,b:n,a}=t;return a<1?`rgba(${or.lang.round(e)}, ${or.lang.round(r)}, ${or.lang.round(n)}, ${or.lang.round(a)})`:`rgb(${or.lang.round(e)}, ${or.lang.round(r)}, ${or.lang.round(n)})`}},Qs={format:{keyword:Qg,hex:Nh,rgb:jg,rgba:jg,hsl:Fu,hsla:Fu},parse:t=>{if(typeof t!="string")return t;const e=Nh.parse(t)||jg.parse(t)||Fu.parse(t)||Qg.parse(t);if(e)return e;throw new Error(`Unsupported color format: "${t}"`)},stringify:t=>!t.changed&&t.color?t.color:t.type.is(Va.HSL)||t.data.r===void 0?Fu.stringify(t):t.a<1||!Number.isInteger(t.r)||!Number.isInteger(t.g)||!Number.isInteger(t.b)?jg.stringify(t):Nh.stringify(t)},Z7=(t,e)=>{const r=Qs.parse(t);for(const n in e)r[n]=or.channel.clamp[n](e[n]);return Qs.stringify(r)},Tc=(t,e,r=0,n=1)=>{if(typeof t!="number")return Z7(t,{a:e});const a=Sy.set({r:or.channel.clamp.r(t),g:or.channel.clamp.g(e),b:or.channel.clamp.b(r),a:or.channel.clamp.a(n)});return Qs.stringify(a)},eC=(t,e)=>or.lang.round(Qs.parse(t)[e]),Eye=t=>{const{r:e,g:r,b:n}=Qs.parse(t),a=.2126*or.channel.toLinear(e)+.7152*or.channel.toLinear(r)+.0722*or.channel.toLinear(n);return or.lang.round(a)},bye=t=>Eye(t)>=.5,xc=t=>!bye(t),J7=(t,e,r)=>{const n=Qs.parse(t),a=n[e],i=or.channel.clamp[e](a+r);return a!==i&&(n[e]=i),Qs.stringify(n)},Ut=(t,e)=>J7(t,"l",e),Kt=(t,e)=>J7(t,"l",-e),Ye=(t,e)=>{const r=Qs.parse(t),n={};for(const a in e)e[a]&&(n[a]=r[a]+e[a]);return Z7(t,n)},Sye=(t,e,r=50)=>{const{r:n,g:a,b:i,a:s}=Qs.parse(t),{r:o,g:l,b:u,a:d}=Qs.parse(e),h=r/100,f=h*2-1,p=s-d,m=((f*p===-1?f:(f+p)/(1+f*p))+1)/2,y=1-m,_=n*m+o*y,v=a*m+l*y,E=i*m+u*y,S=s*h+d*(1-h);return Tc(_,v,E,S)},It=(t,e=100)=>{const r=Qs.parse(t);return r.r=255-r.r,r.g=255-r.g,r.b=255-r.b,Sye(r,t,e)};/*! @license DOMPurify 3.2.6 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.2.6/LICENSE */const{entries:e9,setPrototypeOf:t9,isFrozen:Tye,getPrototypeOf:xye,getOwnPropertyDescriptor:Cye}=Object;let{freeze:di,seal:Ns,create:r9}=Object,{apply:tC,construct:rC}=typeof Reflect<"u"&&Reflect;di||(di=function(e){return e}),Ns||(Ns=function(e){return e}),tC||(tC=function(e,r,n){return e.apply(r,n)}),rC||(rC=function(e,r){return new e(...r)});const Ty=fi(Array.prototype.forEach),Aye=fi(Array.prototype.lastIndexOf),n9=fi(Array.prototype.pop),Zg=fi(Array.prototype.push),Rye=fi(Array.prototype.splice),xy=fi(String.prototype.toLowerCase),nC=fi(String.prototype.toString),a9=fi(String.prototype.match),Jg=fi(String.prototype.replace),wye=fi(String.prototype.indexOf),Nye=fi(String.prototype.trim),js=fi(Object.prototype.hasOwnProperty),hi=fi(RegExp.prototype.test),e0=Iye(TypeError);function fi(t){return function(e){e instanceof RegExp&&(e.lastIndex=0);for(var r=arguments.length,n=new Array(r>1?r-1:0),a=1;a<r;a++)n[a-1]=arguments[a];return tC(t,e,n)}}function Iye(t){return function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return rC(t,r)}}function Sr(t,e){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:xy;t9&&t9(t,null);let n=e.length;for(;n--;){let a=e[n];if(typeof a=="string"){const i=r(a);i!==a&&(Tye(e)||(e[n]=i),a=i)}t[a]=!0}return t}function Oye(t){for(let e=0;e<t.length;e++)js(t,e)||(t[e]=null);return t}function yl(t){const e=r9(null);for(const[r,n]of e9(t))js(t,r)&&(Array.isArray(n)?e[r]=Oye(n):n&&typeof n=="object"&&n.constructor===Object?e[r]=yl(n):e[r]=n);return e}function t0(t,e){for(;t!==null;){const n=Cye(t,e);if(n){if(n.get)return fi(n.get);if(typeof n.value=="function")return fi(n.value)}t=xye(t)}function r(){return null}return r}const i9=di(["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"]),aC=di(["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"]),iC=di(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),kye=di(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),sC=di(["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"]),Dye=di(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),s9=di(["#text"]),o9=di(["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"]),oC=di(["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"]),l9=di(["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"]),Cy=di(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),Lye=Ns(/\{\{[\w\W]*|[\w\W]*\}\}/gm),Mye=Ns(/<%[\w\W]*|[\w\W]*%>/gm),Pye=Ns(/\$\{[\w\W]*/gm),Bye=Ns(/^data-[\-\w.\u00B7-\uFFFF]+$/),Fye=Ns(/^aria-[\-\w]+$/),c9=Ns(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Uye=Ns(/^(?:\w+script|data):/i),$ye=Ns(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),u9=Ns(/^html$/i),Gye=Ns(/^[a-z][.\w]*(-[.\w]+)+$/i);var d9=Object.freeze({__proto__:null,ARIA_ATTR:Fye,ATTR_WHITESPACE:$ye,CUSTOM_ELEMENT:Gye,DATA_ATTR:Bye,DOCTYPE_NAME:u9,ERB_EXPR:Mye,IS_ALLOWED_URI:c9,IS_SCRIPT_OR_DATA:Uye,MUSTACHE_EXPR:Lye,TMPLIT_EXPR:Pye});const r0={element:1,text:3,progressingInstruction:7,comment:8,document:9},zye=function(){return typeof window>"u"?null:window},Yye=function(e,r){if(typeof e!="object"||typeof e.createPolicy!="function")return null;let n=null;const a="data-tt-policy-suffix";r&&r.hasAttribute(a)&&(n=r.getAttribute(a));const i="dompurify"+(n?"#"+n:"");try{return e.createPolicy(i,{createHTML(s){return s},createScriptURL(s){return s}})}catch{return console.warn("TrustedTypes policy "+i+" could not be created."),null}},h9=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function f9(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:zye();const e=Ot=>f9(Ot);if(e.version="3.2.6",e.removed=[],!t||!t.document||t.document.nodeType!==r0.document||!t.Element)return e.isSupported=!1,e;let{document:r}=t;const n=r,a=n.currentScript,{DocumentFragment:i,HTMLTemplateElement:s,Node:o,Element:l,NodeFilter:u,NamedNodeMap:d=t.NamedNodeMap||t.MozNamedAttrMap,HTMLFormElement:h,DOMParser:f,trustedTypes:p}=t,g=l.prototype,m=t0(g,"cloneNode"),y=t0(g,"remove"),_=t0(g,"nextSibling"),v=t0(g,"childNodes"),E=t0(g,"parentNode");if(typeof s=="function"){const Ot=r.createElement("template");Ot.content&&Ot.content.ownerDocument&&(r=Ot.content.ownerDocument)}let S,T="";const{implementation:x,createNodeIterator:C,createDocumentFragment:w,getElementsByTagName:N}=r,{importNode:I}=n;let R=h9();e.isSupported=typeof e9=="function"&&typeof E=="function"&&x&&x.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:M,ERB_EXPR:P,TMPLIT_EXPR:A,DATA_ATTR:k,ARIA_ATTR:O,IS_SCRIPT_OR_DATA:D,ATTR_WHITESPACE:L,CUSTOM_ELEMENT:F}=d9;let{IS_ALLOWED_URI:B}=d9,U=null;const H=Sr({},[...i9,...aC,...iC,...sC,...s9]);let z=null;const te=Sr({},[...o9,...oC,...l9,...Cy]);let W=Object.seal(r9(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),ee=null,re=null,de=!0,Q=!0,Z=!1,X=!0,K=!1,ne=!0,j=!1,_e=!1,ae=!1,Le=!1,V=!1,ze=!1,ge=!0,$e=!1;const Ke="user-content-";let Qe=!0,Oe=!1,Ge={},ie=null;const pe=Sr({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let Ae=null;const ue=Sr({},["audio","video","img","source","image","track"]);let Ne=null;const J=Sr({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),fe="http://www.w3.org/1998/Math/MathML",G="http://www.w3.org/2000/svg",ce="http://www.w3.org/1999/xhtml";let le=ce,ye=!1,me=null;const Ce=Sr({},[fe,G,ce],nC);let De=Sr({},["mi","mo","mn","ms","mtext"]),Te=Sr({},["annotation-xml"]);const Ue=Sr({},["title","style","font","a","script"]);let Ze=null;const nt=["application/xhtml+xml","text/html"],it="text/html";let et=null,Xe=null;const tt=r.createElement("form"),St=function(ke){return ke instanceof RegExp||ke instanceof Function},gt=function(){let ke=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(Xe&&Xe===ke)){if((!ke||typeof ke!="object")&&(ke={}),ke=yl(ke),Ze=nt.indexOf(ke.PARSER_MEDIA_TYPE)===-1?it:ke.PARSER_MEDIA_TYPE,et=Ze==="application/xhtml+xml"?nC:xy,U=js(ke,"ALLOWED_TAGS")?Sr({},ke.ALLOWED_TAGS,et):H,z=js(ke,"ALLOWED_ATTR")?Sr({},ke.ALLOWED_ATTR,et):te,me=js(ke,"ALLOWED_NAMESPACES")?Sr({},ke.ALLOWED_NAMESPACES,nC):Ce,Ne=js(ke,"ADD_URI_SAFE_ATTR")?Sr(yl(J),ke.ADD_URI_SAFE_ATTR,et):J,Ae=js(ke,"ADD_DATA_URI_TAGS")?Sr(yl(ue),ke.ADD_DATA_URI_TAGS,et):ue,ie=js(ke,"FORBID_CONTENTS")?Sr({},ke.FORBID_CONTENTS,et):pe,ee=js(ke,"FORBID_TAGS")?Sr({},ke.FORBID_TAGS,et):yl({}),re=js(ke,"FORBID_ATTR")?Sr({},ke.FORBID_ATTR,et):yl({}),Ge=js(ke,"USE_PROFILES")?ke.USE_PROFILES:!1,de=ke.ALLOW_ARIA_ATTR!==!1,Q=ke.ALLOW_DATA_ATTR!==!1,Z=ke.ALLOW_UNKNOWN_PROTOCOLS||!1,X=ke.ALLOW_SELF_CLOSE_IN_ATTR!==!1,K=ke.SAFE_FOR_TEMPLATES||!1,ne=ke.SAFE_FOR_XML!==!1,j=ke.WHOLE_DOCUMENT||!1,Le=ke.RETURN_DOM||!1,V=ke.RETURN_DOM_FRAGMENT||!1,ze=ke.RETURN_TRUSTED_TYPE||!1,ae=ke.FORCE_BODY||!1,ge=ke.SANITIZE_DOM!==!1,$e=ke.SANITIZE_NAMED_PROPS||!1,Qe=ke.KEEP_CONTENT!==!1,Oe=ke.IN_PLACE||!1,B=ke.ALLOWED_URI_REGEXP||c9,le=ke.NAMESPACE||ce,De=ke.MATHML_TEXT_INTEGRATION_POINTS||De,Te=ke.HTML_INTEGRATION_POINTS||Te,W=ke.CUSTOM_ELEMENT_HANDLING||{},ke.CUSTOM_ELEMENT_HANDLING&&St(ke.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(W.tagNameCheck=ke.CUSTOM_ELEMENT_HANDLING.tagNameCheck),ke.CUSTOM_ELEMENT_HANDLING&&St(ke.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(W.attributeNameCheck=ke.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),ke.CUSTOM_ELEMENT_HANDLING&&typeof ke.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(W.allowCustomizedBuiltInElements=ke.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),K&&(Q=!1),V&&(Le=!0),Ge&&(U=Sr({},s9),z=[],Ge.html===!0&&(Sr(U,i9),Sr(z,o9)),Ge.svg===!0&&(Sr(U,aC),Sr(z,oC),Sr(z,Cy)),Ge.svgFilters===!0&&(Sr(U,iC),Sr(z,oC),Sr(z,Cy)),Ge.mathMl===!0&&(Sr(U,sC),Sr(z,l9),Sr(z,Cy))),ke.ADD_TAGS&&(U===H&&(U=yl(U)),Sr(U,ke.ADD_TAGS,et)),ke.ADD_ATTR&&(z===te&&(z=yl(z)),Sr(z,ke.ADD_ATTR,et)),ke.ADD_URI_SAFE_ATTR&&Sr(Ne,ke.ADD_URI_SAFE_ATTR,et),ke.FORBID_CONTENTS&&(ie===pe&&(ie=yl(ie)),Sr(ie,ke.FORBID_CONTENTS,et)),Qe&&(U["#text"]=!0),j&&Sr(U,["html","head","body"]),U.table&&(Sr(U,["tbody"]),delete ee.tbody),ke.TRUSTED_TYPES_POLICY){if(typeof ke.TRUSTED_TYPES_POLICY.createHTML!="function")throw e0('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof ke.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw e0('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');S=ke.TRUSTED_TYPES_POLICY,T=S.createHTML("")}else S===void 0&&(S=Yye(p,a)),S!==null&&typeof T=="string"&&(T=S.createHTML(""));di&&di(ke),Xe=ke}},Je=Sr({},[...aC,...iC,...kye]),Mt=Sr({},[...sC,...Dye]),rt=function(ke){let st=E(ke);(!st||!st.tagName)&&(st={namespaceURI:le,tagName:"template"});const kt=xy(ke.tagName),gr=xy(st.tagName);return me[ke.namespaceURI]?ke.namespaceURI===G?st.namespaceURI===ce?kt==="svg":st.namespaceURI===fe?kt==="svg"&&(gr==="annotation-xml"||De[gr]):!!Je[kt]:ke.namespaceURI===fe?st.namespaceURI===ce?kt==="math":st.namespaceURI===G?kt==="math"&&Te[gr]:!!Mt[kt]:ke.namespaceURI===ce?st.namespaceURI===G&&!Te[gr]||st.namespaceURI===fe&&!De[gr]?!1:!Mt[kt]&&(Ue[kt]||!Je[kt]):!!(Ze==="application/xhtml+xml"&&me[ke.namespaceURI]):!1},ot=function(ke){Zg(e.removed,{element:ke});try{E(ke).removeChild(ke)}catch{y(ke)}},bt=function(ke,st){try{Zg(e.removed,{attribute:st.getAttributeNode(ke),from:st})}catch{Zg(e.removed,{attribute:null,from:st})}if(st.removeAttribute(ke),ke==="is")if(Le||V)try{ot(st)}catch{}else try{st.setAttribute(ke,"")}catch{}},Tt=function(ke){let st=null,kt=null;if(ae)ke="<remove></remove>"+ke;else{const tn=a9(ke,/^[\r\n\t ]+/);kt=tn&&tn[0]}Ze==="application/xhtml+xml"&&le===ce&&(ke='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+ke+"</body></html>");const gr=S?S.createHTML(ke):ke;if(le===ce)try{st=new f().parseFromString(gr,Ze)}catch{}if(!st||!st.documentElement){st=x.createDocument(le,"template",null);try{st.documentElement.innerHTML=ye?T:gr}catch{}}const en=st.body||st.documentElement;return ke&&kt&&en.insertBefore(r.createTextNode(kt),en.childNodes[0]||null),le===ce?N.call(st,j?"html":"body")[0]:j?st.documentElement:en},ht=function(ke){return C.call(ke.ownerDocument||ke,ke,u.SHOW_ELEMENT|u.SHOW_COMMENT|u.SHOW_TEXT|u.SHOW_PROCESSING_INSTRUCTION|u.SHOW_CDATA_SECTION,null)},Nt=function(ke){return ke instanceof h&&(typeof ke.nodeName!="string"||typeof ke.textContent!="string"||typeof ke.removeChild!="function"||!(ke.attributes instanceof d)||typeof ke.removeAttribute!="function"||typeof ke.setAttribute!="function"||typeof ke.namespaceURI!="string"||typeof ke.insertBefore!="function"||typeof ke.hasChildNodes!="function")},pr=function(ke){return typeof o=="function"&&ke instanceof o};function zt(Ot,ke,st){Ty(Ot,kt=>{kt.call(e,ke,st,Xe)})}const Gr=function(ke){let st=null;if(zt(R.beforeSanitizeElements,ke,null),Nt(ke))return ot(ke),!0;const kt=et(ke.nodeName);if(zt(R.uponSanitizeElement,ke,{tagName:kt,allowedTags:U}),ne&&ke.hasChildNodes()&&!pr(ke.firstElementChild)&&hi(/<[/\w!]/g,ke.innerHTML)&&hi(/<[/\w!]/g,ke.textContent)||ke.nodeType===r0.progressingInstruction||ne&&ke.nodeType===r0.comment&&hi(/<[/\w]/g,ke.data))return ot(ke),!0;if(!U[kt]||ee[kt]){if(!ee[kt]&&yr(kt)&&(W.tagNameCheck instanceof RegExp&&hi(W.tagNameCheck,kt)||W.tagNameCheck instanceof Function&&W.tagNameCheck(kt)))return!1;if(Qe&&!ie[kt]){const gr=E(ke)||ke.parentNode,en=v(ke)||ke.childNodes;if(en&&gr){const tn=en.length;for(let jr=tn-1;jr>=0;--jr){const ea=m(en[jr],!0);ea.__removalCount=(ke.__removalCount||0)+1,gr.insertBefore(ea,_(ke))}}}return ot(ke),!0}return ke instanceof l&&!rt(ke)||(kt==="noscript"||kt==="noembed"||kt==="noframes")&&hi(/<\/no(script|embed|frames)/i,ke.innerHTML)?(ot(ke),!0):(K&&ke.nodeType===r0.text&&(st=ke.textContent,Ty([M,P,A],gr=>{st=Jg(st,gr," ")}),ke.textContent!==st&&(Zg(e.removed,{element:ke.cloneNode()}),ke.textContent=st)),zt(R.afterSanitizeElements,ke,null),!1)},Br=function(ke,st,kt){if(ge&&(st==="id"||st==="name")&&(kt in r||kt in tt))return!1;if(!(Q&&!re[st]&&hi(k,st))){if(!(de&&hi(O,st))){if(!z[st]||re[st]){if(!(yr(ke)&&(W.tagNameCheck instanceof RegExp&&hi(W.tagNameCheck,ke)||W.tagNameCheck instanceof Function&&W.tagNameCheck(ke))&&(W.attributeNameCheck instanceof RegExp&&hi(W.attributeNameCheck,st)||W.attributeNameCheck instanceof Function&&W.attributeNameCheck(st))||st==="is"&&W.allowCustomizedBuiltInElements&&(W.tagNameCheck instanceof RegExp&&hi(W.tagNameCheck,kt)||W.tagNameCheck instanceof Function&&W.tagNameCheck(kt))))return!1}else if(!Ne[st]){if(!hi(B,Jg(kt,L,""))){if(!((st==="src"||st==="xlink:href"||st==="href")&&ke!=="script"&&wye(kt,"data:")===0&&Ae[ke])){if(!(Z&&!hi(D,Jg(kt,L,"")))){if(kt)return!1}}}}}}return!0},yr=function(ke){return ke!=="annotation-xml"&&a9(ke,F)},ar=function(ke){zt(R.beforeSanitizeAttributes,ke,null);const{attributes:st}=ke;if(!st||Nt(ke))return;const kt={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:z,forceKeepAttr:void 0};let gr=st.length;for(;gr--;){const en=st[gr],{name:tn,namespaceURI:jr,value:ea}=en,Es=et(tn),wa=ea;let kr=tn==="value"?wa:Nye(wa);if(kt.attrName=Es,kt.attrValue=kr,kt.keepAttr=!0,kt.forceKeepAttr=void 0,zt(R.uponSanitizeAttribute,ke,kt),kr=kt.attrValue,$e&&(Es==="id"||Es==="name")&&(bt(tn,ke),kr=Ke+kr),ne&&hi(/((--!?|])>)|<\/(style|title)/i,kr)){bt(tn,ke);continue}if(kt.forceKeepAttr)continue;if(!kt.keepAttr){bt(tn,ke);continue}if(!X&&hi(/\/>/i,kr)){bt(tn,ke);continue}K&&Ty([M,P,A],Dt=>{kr=Jg(kr,Dt," ")});const Ft=et(ke.nodeName);if(!Br(Ft,Es,kr)){bt(tn,ke);continue}if(S&&typeof p=="object"&&typeof p.getAttributeType=="function"&&!jr)switch(p.getAttributeType(Ft,Es)){case"TrustedHTML":{kr=S.createHTML(kr);break}case"TrustedScriptURL":{kr=S.createScriptURL(kr);break}}if(kr!==wa)try{jr?ke.setAttributeNS(jr,tn,kr):ke.setAttribute(tn,kr),Nt(ke)?ot(ke):n9(e.removed)}catch{bt(tn,ke)}}zt(R.afterSanitizeAttributes,ke,null)},Nr=function Ot(ke){let st=null;const kt=ht(ke);for(zt(R.beforeSanitizeShadowDOM,ke,null);st=kt.nextNode();)zt(R.uponSanitizeShadowNode,st,null),Gr(st),ar(st),st.content instanceof i&&Ot(st.content);zt(R.afterSanitizeShadowDOM,ke,null)};return e.sanitize=function(Ot){let ke=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},st=null,kt=null,gr=null,en=null;if(ye=!Ot,ye&&(Ot="<!-->"),typeof Ot!="string"&&!pr(Ot))if(typeof Ot.toString=="function"){if(Ot=Ot.toString(),typeof Ot!="string")throw e0("dirty is not a string, aborting")}else throw e0("toString is not a function");if(!e.isSupported)return Ot;if(_e||gt(ke),e.removed=[],typeof Ot=="string"&&(Oe=!1),Oe){if(Ot.nodeName){const ea=et(Ot.nodeName);if(!U[ea]||ee[ea])throw e0("root node is forbidden and cannot be sanitized in-place")}}else if(Ot instanceof o)st=Tt("<!---->"),kt=st.ownerDocument.importNode(Ot,!0),kt.nodeType===r0.element&&kt.nodeName==="BODY"||kt.nodeName==="HTML"?st=kt:st.appendChild(kt);else{if(!Le&&!K&&!j&&Ot.indexOf("<")===-1)return S&&ze?S.createHTML(Ot):Ot;if(st=Tt(Ot),!st)return Le?null:ze?T:""}st&&ae&&ot(st.firstChild);const tn=ht(Oe?Ot:st);for(;gr=tn.nextNode();)Gr(gr),ar(gr),gr.content instanceof i&&Nr(gr.content);if(Oe)return Ot;if(Le){if(V)for(en=w.call(st.ownerDocument);st.firstChild;)en.appendChild(st.firstChild);else en=st;return(z.shadowroot||z.shadowrootmode)&&(en=I.call(n,en,!0)),en}let jr=j?st.outerHTML:st.innerHTML;return j&&U["!doctype"]&&st.ownerDocument&&st.ownerDocument.doctype&&st.ownerDocument.doctype.name&&hi(u9,st.ownerDocument.doctype.name)&&(jr="<!DOCTYPE "+st.ownerDocument.doctype.name+`>
|
|
381
|
+
`))}function l(p,g,m,y){const _=m.enter("tableCell"),v=m.enter("phrasing"),E=m.containerPhrasing(p,{...y,before:i,after:i});return v(),_(),E}function u(p,g){return I1e(p,{align:g,alignDelimiters:n,padding:r,stringLength:a})}function d(p,g,m){const y=p.children;let _=-1;const v=[],E=g.enter("table");for(;++_<y.length;)v[_]=h(y[_],g,m);return E(),v}function h(p,g,m){const y=p.children;let _=-1;const v=[],E=g.enter("tableRow");for(;++_<y.length;)v[_]=l(y[_],p,g,m);return E(),v}function f(p,g,m){let y=k7.inlineCode(p,g,m);return m.stack.includes("tableCell")&&(y=y.replace(/\|/g,"\\$&")),y}}function m_e(){return{exit:{taskListCheckValueChecked:L7,taskListCheckValueUnchecked:L7,paragraph:y_e}}}function __e(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:v_e}}}function L7(t){const e=this.stack[this.stack.length-2];e.type,e.checked=t.type==="taskListCheckValueChecked"}function y_e(t){const e=this.stack[this.stack.length-2];if(e&&e.type==="listItem"&&typeof e.checked=="boolean"){const r=this.stack[this.stack.length-1];r.type;const n=r.children[0];if(n&&n.type==="text"){const a=e.children;let i=-1,s;for(;++i<a.length;){const o=a[i];if(o.type==="paragraph"){s=o;break}}s===r&&(n.value=n.value.slice(1),n.value.length===0?r.children.shift():r.position&&n.position&&typeof n.position.start.offset=="number"&&(n.position.start.column++,n.position.start.offset++,r.position.start=Object.assign({},n.position.start)))}}this.exit(t)}function v_e(t,e,r,n){const a=t.children[0],i=typeof t.checked=="boolean"&&a&&a.type==="paragraph",s="["+(t.checked?"x":" ")+"] ",o=r.createTracker(n);i&&o.move(s);let l=k7.listItem(t,e,r,{...n,...o.current()});return i&&(l=l.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,u)),l;function u(d){return d+s}}function E_e(){return[Jme(),E1e(),x1e(),c_e(),m_e()]}function b_e(t){return{extensions:[e1e(),b1e(t),C1e(),g_e(t),__e()]}}const S_e={tokenize:w_e,partial:!0},M7={tokenize:N_e,partial:!0},P7={tokenize:I_e,partial:!0},B7={tokenize:O_e,partial:!0},T_e={tokenize:k_e,partial:!0},F7={name:"wwwAutolink",tokenize:A_e,previous:$7},U7={name:"protocolAutolink",tokenize:R_e,previous:G7},ml={name:"emailAutolink",tokenize:C_e,previous:z7},No={};function x_e(){return{text:No}}let Bu=48;for(;Bu<123;)No[Bu]=ml,Bu++,Bu===58?Bu=65:Bu===91&&(Bu=97);No[43]=ml,No[45]=ml,No[46]=ml,No[95]=ml,No[72]=[ml,U7],No[104]=[ml,U7],No[87]=[ml,F7],No[119]=[ml,F7];function C_e(t,e,r){const n=this;let a,i;return s;function s(h){return!Xx(h)||!z7.call(n,n.previous)||Qx(n.events)?r(h):(t.enter("literalAutolink"),t.enter("literalAutolinkEmail"),o(h))}function o(h){return Xx(h)?(t.consume(h),o):h===64?(t.consume(h),l):r(h)}function l(h){return h===46?t.check(T_e,d,u)(h):h===45||h===95||za(h)?(i=!0,t.consume(h),l):d(h)}function u(h){return t.consume(h),a=!0,l}function d(h){return i&&a&&oi(n.previous)?(t.exit("literalAutolinkEmail"),t.exit("literalAutolink"),e(h)):r(h)}}function A_e(t,e,r){const n=this;return a;function a(s){return s!==87&&s!==119||!$7.call(n,n.previous)||Qx(n.events)?r(s):(t.enter("literalAutolink"),t.enter("literalAutolinkWww"),t.check(S_e,t.attempt(M7,t.attempt(P7,i),r),r)(s))}function i(s){return t.exit("literalAutolinkWww"),t.exit("literalAutolink"),e(s)}}function R_e(t,e,r){const n=this;let a="",i=!1;return s;function s(h){return(h===72||h===104)&&G7.call(n,n.previous)&&!Qx(n.events)?(t.enter("literalAutolink"),t.enter("literalAutolinkHttp"),a+=String.fromCodePoint(h),t.consume(h),o):r(h)}function o(h){if(oi(h)&&a.length<5)return a+=String.fromCodePoint(h),t.consume(h),o;if(h===58){const f=a.toLowerCase();if(f==="http"||f==="https")return t.consume(h),l}return r(h)}function l(h){return h===47?(t.consume(h),i?u:(i=!0,l)):r(h)}function u(h){return h===null||N_(h)||an(h)||wu(h)||I_(h)?r(h):t.attempt(M7,t.attempt(P7,d),r)(h)}function d(h){return t.exit("literalAutolinkHttp"),t.exit("literalAutolink"),e(h)}}function w_e(t,e,r){let n=0;return a;function a(s){return(s===87||s===119)&&n<3?(n++,t.consume(s),a):s===46&&n===3?(t.consume(s),i):r(s)}function i(s){return s===null?r(s):e(s)}}function N_e(t,e,r){let n,a,i;return s;function s(u){return u===46||u===95?t.check(B7,l,o)(u):u===null||an(u)||wu(u)||u!==45&&I_(u)?l(u):(i=!0,t.consume(u),s)}function o(u){return u===95?n=!0:(a=n,n=void 0),t.consume(u),s}function l(u){return a||n||!i?r(u):e(u)}}function I_e(t,e){let r=0,n=0;return a;function a(s){return s===40?(r++,t.consume(s),a):s===41&&n<r?i(s):s===33||s===34||s===38||s===39||s===41||s===42||s===44||s===46||s===58||s===59||s===60||s===63||s===93||s===95||s===126?t.check(B7,e,i)(s):s===null||an(s)||wu(s)?e(s):(t.consume(s),a)}function i(s){return s===41&&n++,t.consume(s),a}}function O_e(t,e,r){return n;function n(o){return o===33||o===34||o===39||o===41||o===42||o===44||o===46||o===58||o===59||o===63||o===95||o===126?(t.consume(o),n):o===38?(t.consume(o),i):o===93?(t.consume(o),a):o===60||o===null||an(o)||wu(o)?e(o):r(o)}function a(o){return o===null||o===40||o===91||an(o)||wu(o)?e(o):n(o)}function i(o){return oi(o)?s(o):r(o)}function s(o){return o===59?(t.consume(o),n):oi(o)?(t.consume(o),s):r(o)}}function k_e(t,e,r){return n;function n(i){return t.consume(i),a}function a(i){return za(i)?r(i):e(i)}}function $7(t){return t===null||t===40||t===42||t===95||t===91||t===93||t===126||an(t)}function G7(t){return!oi(t)}function z7(t){return!(t===47||Xx(t))}function Xx(t){return t===43||t===45||t===46||t===95||za(t)}function Qx(t){let e=t.length,r=!1;for(;e--;){const n=t[e][1];if((n.type==="labelLink"||n.type==="labelImage")&&!n._balanced){r=!0;break}if(n._gfmAutolinkLiteralWalkedInto){r=!1;break}}return t.length>0&&!r&&(t[t.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),r}const D_e={tokenize:G_e,partial:!0};function L_e(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:F_e,continuation:{tokenize:U_e},exit:$_e}},text:{91:{name:"gfmFootnoteCall",tokenize:B_e},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:M_e,resolveTo:P_e}}}}function M_e(t,e,r){const n=this;let a=n.events.length;const i=n.parser.gfmFootnotes||(n.parser.gfmFootnotes=[]);let s;for(;a--;){const l=n.events[a][1];if(l.type==="labelImage"){s=l;break}if(l.type==="gfmFootnoteCall"||l.type==="labelLink"||l.type==="label"||l.type==="image"||l.type==="link")break}return o;function o(l){if(!s||!s._balanced)return r(l);const u=Ws(n.sliceSerialize({start:s.end,end:n.now()}));return u.codePointAt(0)!==94||!i.includes(u.slice(1))?r(l):(t.enter("gfmFootnoteCallLabelMarker"),t.consume(l),t.exit("gfmFootnoteCallLabelMarker"),e(l))}}function P_e(t,e){let r=t.length;for(;r--;)if(t[r][1].type==="labelImage"&&t[r][0]==="enter"){t[r][1];break}t[r+1][1].type="data",t[r+3][1].type="gfmFootnoteCallLabelMarker";const n={type:"gfmFootnoteCall",start:Object.assign({},t[r+3][1].start),end:Object.assign({},t[t.length-1][1].end)},a={type:"gfmFootnoteCallMarker",start:Object.assign({},t[r+3][1].end),end:Object.assign({},t[r+3][1].end)};a.end.column++,a.end.offset++,a.end._bufferIndex++;const i={type:"gfmFootnoteCallString",start:Object.assign({},a.end),end:Object.assign({},t[t.length-1][1].start)},s={type:"chunkString",contentType:"string",start:Object.assign({},i.start),end:Object.assign({},i.end)},o=[t[r+1],t[r+2],["enter",n,e],t[r+3],t[r+4],["enter",a,e],["exit",a,e],["enter",i,e],["enter",s,e],["exit",s,e],["exit",i,e],t[t.length-2],t[t.length-1],["exit",n,e]];return t.splice(r,t.length-r+1,...o),t}function B_e(t,e,r){const n=this,a=n.parser.gfmFootnotes||(n.parser.gfmFootnotes=[]);let i=0,s;return o;function o(h){return t.enter("gfmFootnoteCall"),t.enter("gfmFootnoteCallLabelMarker"),t.consume(h),t.exit("gfmFootnoteCallLabelMarker"),l}function l(h){return h!==94?r(h):(t.enter("gfmFootnoteCallMarker"),t.consume(h),t.exit("gfmFootnoteCallMarker"),t.enter("gfmFootnoteCallString"),t.enter("chunkString").contentType="string",u)}function u(h){if(i>999||h===93&&!s||h===null||h===91||an(h))return r(h);if(h===93){t.exit("chunkString");const f=t.exit("gfmFootnoteCallString");return a.includes(Ws(n.sliceSerialize(f)))?(t.enter("gfmFootnoteCallLabelMarker"),t.consume(h),t.exit("gfmFootnoteCallLabelMarker"),t.exit("gfmFootnoteCall"),e):r(h)}return an(h)||(s=!0),i++,t.consume(h),h===92?d:u}function d(h){return h===91||h===92||h===93?(t.consume(h),i++,u):u(h)}}function F_e(t,e,r){const n=this,a=n.parser.gfmFootnotes||(n.parser.gfmFootnotes=[]);let i,s=0,o;return l;function l(g){return t.enter("gfmFootnoteDefinition")._container=!0,t.enter("gfmFootnoteDefinitionLabel"),t.enter("gfmFootnoteDefinitionLabelMarker"),t.consume(g),t.exit("gfmFootnoteDefinitionLabelMarker"),u}function u(g){return g===94?(t.enter("gfmFootnoteDefinitionMarker"),t.consume(g),t.exit("gfmFootnoteDefinitionMarker"),t.enter("gfmFootnoteDefinitionLabelString"),t.enter("chunkString").contentType="string",d):r(g)}function d(g){if(s>999||g===93&&!o||g===null||g===91||an(g))return r(g);if(g===93){t.exit("chunkString");const m=t.exit("gfmFootnoteDefinitionLabelString");return i=Ws(n.sliceSerialize(m)),t.enter("gfmFootnoteDefinitionLabelMarker"),t.consume(g),t.exit("gfmFootnoteDefinitionLabelMarker"),t.exit("gfmFootnoteDefinitionLabel"),f}return an(g)||(o=!0),s++,t.consume(g),g===92?h:d}function h(g){return g===91||g===92||g===93?(t.consume(g),s++,d):d(g)}function f(g){return g===58?(t.enter("definitionMarker"),t.consume(g),t.exit("definitionMarker"),a.includes(i)||a.push(i),vr(t,p,"gfmFootnoteDefinitionWhitespace")):r(g)}function p(g){return e(g)}}function U_e(t,e,r){return t.check(bg,e,t.attempt(D_e,e,r))}function $_e(t){t.exit("gfmFootnoteDefinition")}function G_e(t,e,r){const n=this;return vr(t,a,"gfmFootnoteDefinitionIndent",5);function a(i){const s=n.events[n.events.length-1];return s&&s[1].type==="gfmFootnoteDefinitionIndent"&&s[2].sliceSerialize(s[1],!0).length===4?e(i):r(i)}}function z_e(t){let r=(t||{}).singleTilde;const n={name:"strikethrough",tokenize:i,resolveAll:a};return r==null&&(r=!0),{text:{126:n},insideSpan:{null:[n]},attentionMarkers:{null:[126]}};function a(s,o){let l=-1;for(;++l<s.length;)if(s[l][0]==="enter"&&s[l][1].type==="strikethroughSequenceTemporary"&&s[l][1]._close){let u=l;for(;u--;)if(s[u][0]==="exit"&&s[u][1].type==="strikethroughSequenceTemporary"&&s[u][1]._open&&s[l][1].end.offset-s[l][1].start.offset===s[u][1].end.offset-s[u][1].start.offset){s[l][1].type="strikethroughSequence",s[u][1].type="strikethroughSequence";const d={type:"strikethrough",start:Object.assign({},s[u][1].start),end:Object.assign({},s[l][1].end)},h={type:"strikethroughText",start:Object.assign({},s[u][1].end),end:Object.assign({},s[l][1].start)},f=[["enter",d,o],["enter",s[u][1],o],["exit",s[u][1],o],["enter",h,o]],p=o.parser.constructs.insideSpan.null;p&&es(f,f.length,0,O_(p,s.slice(u+1,l),o)),es(f,f.length,0,[["exit",h,o],["enter",s[l][1],o],["exit",s[l][1],o],["exit",d,o]]),es(s,u-1,l-u+3,f),l=u+f.length-2;break}}for(l=-1;++l<s.length;)s[l][1].type==="strikethroughSequenceTemporary"&&(s[l][1].type="data");return s}function i(s,o,l){const u=this.previous,d=this.events;let h=0;return f;function f(g){return u===126&&d[d.length-1][1].type!=="characterEscape"?l(g):(s.enter("strikethroughSequenceTemporary"),p(g))}function p(g){const m=dh(u);if(g===126)return h>1?l(g):(s.consume(g),h++,p);if(h<2&&!r)return l(g);const y=s.exit("strikethroughSequenceTemporary"),_=dh(g);return y._open=!_||_===2&&!!m,y._close=!m||m===2&&!!_,o(g)}}}class Y_e{constructor(){this.map=[]}add(e,r,n){H_e(this,e,r,n)}consume(e){if(this.map.sort(function(i,s){return i[0]-s[0]}),this.map.length===0)return;let r=this.map.length;const n=[];for(;r>0;)r-=1,n.push(e.slice(this.map[r][0]+this.map[r][1]),this.map[r][2]),e.length=this.map[r][0];n.push(e.slice()),e.length=0;let a=n.pop();for(;a;){for(const i of a)e.push(i);a=n.pop()}this.map.length=0}}function H_e(t,e,r,n){let a=0;if(!(r===0&&n.length===0)){for(;a<t.map.length;){if(t.map[a][0]===e){t.map[a][1]+=r,t.map[a][2].push(...n);return}a+=1}t.map.push([e,r,n])}}function V_e(t,e){let r=!1;const n=[];for(;e<t.length;){const a=t[e];if(r){if(a[0]==="enter")a[1].type==="tableContent"&&n.push(t[e+1][1].type==="tableDelimiterMarker"?"left":"none");else if(a[1].type==="tableContent"){if(t[e-1][1].type==="tableDelimiterMarker"){const i=n.length-1;n[i]=n[i]==="left"?"center":"right"}}else if(a[1].type==="tableDelimiterRow")break}else a[0]==="enter"&&a[1].type==="tableDelimiterRow"&&(r=!0);e+=1}return n}function q_e(){return{flow:{null:{name:"table",tokenize:W_e,resolveAll:K_e}}}}function W_e(t,e,r){const n=this;let a=0,i=0,s;return o;function o(I){let R=n.events.length-1;for(;R>-1;){const A=n.events[R][1].type;if(A==="lineEnding"||A==="linePrefix")R--;else break}const M=R>-1?n.events[R][1].type:null,P=M==="tableHead"||M==="tableRow"?x:l;return P===x&&n.parser.lazy[n.now().line]?r(I):P(I)}function l(I){return t.enter("tableHead"),t.enter("tableRow"),u(I)}function u(I){return I===124||(s=!0,i+=1),d(I)}function d(I){return I===null?r(I):Wt(I)?i>1?(i=0,n.interrupt=!0,t.exit("tableRow"),t.enter("lineEnding"),t.consume(I),t.exit("lineEnding"),p):r(I):br(I)?vr(t,d,"whitespace")(I):(i+=1,s&&(s=!1,a+=1),I===124?(t.enter("tableCellDivider"),t.consume(I),t.exit("tableCellDivider"),s=!0,d):(t.enter("data"),h(I)))}function h(I){return I===null||I===124||an(I)?(t.exit("data"),d(I)):(t.consume(I),I===92?f:h)}function f(I){return I===92||I===124?(t.consume(I),h):h(I)}function p(I){return n.interrupt=!1,n.parser.lazy[n.now().line]?r(I):(t.enter("tableDelimiterRow"),s=!1,br(I)?vr(t,g,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(I):g(I))}function g(I){return I===45||I===58?y(I):I===124?(s=!0,t.enter("tableCellDivider"),t.consume(I),t.exit("tableCellDivider"),m):T(I)}function m(I){return br(I)?vr(t,y,"whitespace")(I):y(I)}function y(I){return I===58?(i+=1,s=!0,t.enter("tableDelimiterMarker"),t.consume(I),t.exit("tableDelimiterMarker"),_):I===45?(i+=1,_(I)):I===null||Wt(I)?S(I):T(I)}function _(I){return I===45?(t.enter("tableDelimiterFiller"),v(I)):T(I)}function v(I){return I===45?(t.consume(I),v):I===58?(s=!0,t.exit("tableDelimiterFiller"),t.enter("tableDelimiterMarker"),t.consume(I),t.exit("tableDelimiterMarker"),E):(t.exit("tableDelimiterFiller"),E(I))}function E(I){return br(I)?vr(t,S,"whitespace")(I):S(I)}function S(I){return I===124?g(I):I===null||Wt(I)?!s||a!==i?T(I):(t.exit("tableDelimiterRow"),t.exit("tableHead"),e(I)):T(I)}function T(I){return r(I)}function x(I){return t.enter("tableRow"),C(I)}function C(I){return I===124?(t.enter("tableCellDivider"),t.consume(I),t.exit("tableCellDivider"),C):I===null||Wt(I)?(t.exit("tableRow"),e(I)):br(I)?vr(t,C,"whitespace")(I):(t.enter("data"),w(I))}function w(I){return I===null||I===124||an(I)?(t.exit("data"),C(I)):(t.consume(I),I===92?N:w)}function N(I){return I===92||I===124?(t.consume(I),w):w(I)}}function K_e(t,e){let r=-1,n=!0,a=0,i=[0,0,0,0],s=[0,0,0,0],o=!1,l=0,u,d,h;const f=new Y_e;for(;++r<t.length;){const p=t[r],g=p[1];p[0]==="enter"?g.type==="tableHead"?(o=!1,l!==0&&(Y7(f,e,l,u,d),d=void 0,l=0),u={type:"table",start:Object.assign({},g.start),end:Object.assign({},g.end)},f.add(r,0,[["enter",u,e]])):g.type==="tableRow"||g.type==="tableDelimiterRow"?(n=!0,h=void 0,i=[0,0,0,0],s=[0,r+1,0,0],o&&(o=!1,d={type:"tableBody",start:Object.assign({},g.start),end:Object.assign({},g.end)},f.add(r,0,[["enter",d,e]])),a=g.type==="tableDelimiterRow"?2:d?3:1):a&&(g.type==="data"||g.type==="tableDelimiterMarker"||g.type==="tableDelimiterFiller")?(n=!1,s[2]===0&&(i[1]!==0&&(s[0]=s[1],h=vy(f,e,i,a,void 0,h),i=[0,0,0,0]),s[2]=r)):g.type==="tableCellDivider"&&(n?n=!1:(i[1]!==0&&(s[0]=s[1],h=vy(f,e,i,a,void 0,h)),i=s,s=[i[1],r,0,0])):g.type==="tableHead"?(o=!0,l=r):g.type==="tableRow"||g.type==="tableDelimiterRow"?(l=r,i[1]!==0?(s[0]=s[1],h=vy(f,e,i,a,r,h)):s[1]!==0&&(h=vy(f,e,s,a,r,h)),a=0):a&&(g.type==="data"||g.type==="tableDelimiterMarker"||g.type==="tableDelimiterFiller")&&(s[3]=r)}for(l!==0&&Y7(f,e,l,u,d),f.consume(e.events),r=-1;++r<e.events.length;){const p=e.events[r];p[0]==="enter"&&p[1].type==="table"&&(p[1]._align=V_e(e.events,r))}return t}function vy(t,e,r,n,a,i){const s=n===1?"tableHeader":n===2?"tableDelimiter":"tableData",o="tableContent";r[0]!==0&&(i.end=Object.assign({},wh(e.events,r[0])),t.add(r[0],0,[["exit",i,e]]));const l=wh(e.events,r[1]);if(i={type:s,start:Object.assign({},l),end:Object.assign({},l)},t.add(r[1],0,[["enter",i,e]]),r[2]!==0){const u=wh(e.events,r[2]),d=wh(e.events,r[3]),h={type:o,start:Object.assign({},u),end:Object.assign({},d)};if(t.add(r[2],0,[["enter",h,e]]),n!==2){const f=e.events[r[2]],p=e.events[r[3]];if(f[1].end=Object.assign({},p[1].end),f[1].type="chunkText",f[1].contentType="text",r[3]>r[2]+1){const g=r[2]+1,m=r[3]-r[2]-1;t.add(g,m,[])}}t.add(r[3]+1,0,[["exit",h,e]])}return a!==void 0&&(i.end=Object.assign({},wh(e.events,a)),t.add(a,0,[["exit",i,e]]),i=void 0),i}function Y7(t,e,r,n,a){const i=[],s=wh(e.events,r);a&&(a.end=Object.assign({},s),i.push(["exit",a,e])),n.end=Object.assign({},s),i.push(["exit",n,e]),t.add(r+1,0,i)}function wh(t,e){const r=t[e],n=r[0]==="enter"?"start":"end";return r[1][n]}const X_e={name:"tasklistCheck",tokenize:j_e};function Q_e(){return{text:{91:X_e}}}function j_e(t,e,r){const n=this;return a;function a(l){return n.previous!==null||!n._gfmTasklistFirstContentOfListItem?r(l):(t.enter("taskListCheck"),t.enter("taskListCheckMarker"),t.consume(l),t.exit("taskListCheckMarker"),i)}function i(l){return an(l)?(t.enter("taskListCheckValueUnchecked"),t.consume(l),t.exit("taskListCheckValueUnchecked"),s):l===88||l===120?(t.enter("taskListCheckValueChecked"),t.consume(l),t.exit("taskListCheckValueChecked"),s):r(l)}function s(l){return l===93?(t.enter("taskListCheckMarker"),t.consume(l),t.exit("taskListCheckMarker"),t.exit("taskListCheck"),o):r(l)}function o(l){return Wt(l)?e(l):br(l)?t.check({tokenize:Z_e},e,r)(l):r(l)}}function Z_e(t,e,r){return vr(t,n,"whitespace");function n(a){return a===null?r(a):e(a)}}function J_e(t){return uM([x_e(),L_e(),z_e(t),q_e(),Q_e()])}const eye={};function tye(t){const e=this,r=t||eye,n=e.data(),a=n.micromarkExtensions||(n.micromarkExtensions=[]),i=n.fromMarkdownExtensions||(n.fromMarkdownExtensions=[]),s=n.toMarkdownExtensions||(n.toMarkdownExtensions=[]);a.push(J_e(r)),i.push(E_e()),s.push(b_e(r))}const H7=t=>Array.isArray(t)?t:typeof t=="string"?t.split(" ").filter(Boolean):[],jx=t=>{var e,r,n,a,i,s,o,l,u,d;if(!t)return"";if(t.type==="element"&&t.tagName==="_azs-source-ref"){const h=((e=t.properties)==null?void 0:e["data-ref-source-id"])||"",f=((n=(r=t.children)==null?void 0:r[0])==null?void 0:n.value)||(h?`[[${h}]]`:"");return{type:"ref",refId:h,displayText:f,content:f,slotTagName:"_azs-source-ref",properties:t.properties||{},classList:H7(((a=t.properties)==null?void 0:a.className)||((i=t.properties)==null?void 0:i.class))}}if(t.type==="element"&&t.tagName==="math")return{type:"math",ast:t};if(t.type==="element"&&H7(((s=t.properties)==null?void 0:s.className)||((o=t.properties)==null?void 0:o.class)).some(f=>f.includes("katex")))return{type:"math",ast:t};if(t.type==="element"&&t.tagName==="a")return{type:"link",href:((l=t.properties)==null?void 0:l.href)||"",content:((d=(u=t.children)==null?void 0:u[0])==null?void 0:d.value)||""};if(t.type==="text"){const h=t.value||"";return/\[\[(\d+)\]\]/g.test(h)?h.split(/(\[\[\d+\]\])/g).map(g=>{const m=g.match(/\[\[(\d+)\]\]/);if(m){const y=m[1];return{type:"ref",refId:y,displayText:g,content:g,slotTagName:"_azs-source-ref",properties:{"data-ref-source-id":y,className:["_azs-source-reference"]},classList:["_azs-source-reference"]}}return{type:"text",content:g}}).filter(g=>g.type==="text"&&g.content!==""||g.type==="ref"):{type:"text",content:h}}if(t.type==="element"&&t.children&&t.children.length>0){const f=t.children.map(m=>jx(m)).flat(),p=f.some(m=>typeof m=="object"&&(m==null?void 0:m.type)==="ref"),g=f.some(m=>typeof m=="object"&&(m==null?void 0:m.type)==="math");return p||g?f.map(m=>typeof m=="object"&&((m==null?void 0:m.type)==="ref"||(m==null?void 0:m.type)==="math")?m:{type:(m==null?void 0:m.type)||"text",content:(m==null?void 0:m.content)||""}):f.map(m=>typeof m=="string"?{type:"text",content:m}:{type:(m==null?void 0:m.type)||"text",content:(m==null?void 0:m.content)||"",href:(m==null?void 0:m.href)||""})}return""},V7=t=>Array.isArray(t)?t:t==null||t===""?[]:[t],rye=t=>{var i,s,o,l,u;const e=[],r=[],n=(i=t.children)==null?void 0:i.find(d=>d.tagName==="thead"),a=(s=t.children)==null?void 0:s.find(d=>d.tagName==="tbody");if(n){const d=(o=n.children)==null?void 0:o.find(h=>h.tagName==="tr");d&&((l=d.children)==null||l.forEach(h=>{var f,p,g,m;if(h.tagName==="th"){const y=((f=h.properties)==null?void 0:f.align)||"left",_=V7(jx(h)),v=_.some(T=>typeof T=="object"&&(T==null?void 0:T.type)==="ref"),E=_.some(T=>typeof T=="object"&&(T==null?void 0:T.type)==="math"),S=_.length===1&&typeof _[0]=="object"&&((p=_[0])==null?void 0:p.type)==="link";e.push({content:v||E?_:_.map(T=>typeof T=="object"?(T==null?void 0:T.content)||"":T||"").join(""),align:y,type:v?"ref":E?"math":S?"link":(g=_[0])==null?void 0:g.type,href:S&&((m=_[0])==null?void 0:m.href)||""})}}))}return a&&((u=a.children)==null||u.forEach(d=>{var h;if(d.tagName==="tr"){const f=[];(h=d.children)==null||h.forEach(p=>{var g,m,y,_;if(p.tagName==="td"){const v=((g=p.properties)==null?void 0:g.align)||"left",E=V7(jx(p)),S=E.some(C=>typeof C=="object"&&(C==null?void 0:C.type)==="ref"),T=E.some(C=>typeof C=="object"&&(C==null?void 0:C.type)==="math"),x=E.length===1&&typeof E[0]=="object"&&((m=E[0])==null?void 0:m.type)==="link";f.push({content:S||T?E:E.map(C=>typeof C=="object"?(C==null?void 0:C.content)||"":C||"").join(""),align:v,type:S?"ref":T?"math":x?"link":(y=E[0])==null?void 0:y.type,href:x&&((_=E[0])==null?void 0:_.href)||""})}}),f.length>0&&r.push({cells:f})}})),{headers:e,rows:r}};function nye(t){return e=>{U_(e,"text",(r,n,a)=>{if(!a||typeof r.value!="string")return;const i=t;let s=[];try{typeof r.value=="string"&&i instanceof RegExp&&(s=[...r.value.matchAll(i)])}catch{s=[]}if(s.length>0){const o=[];let l=0;s.forEach(u=>{const[d,h]=u,f=u.index;f>l&&o.push({type:"text",value:r.value.slice(l,f)}),o.push({type:"element",tagName:"_azs-source-ref",properties:{"data-ref-source-id":h,className:["_azs-source-reference"]},children:[{type:"text",value:d}]}),l=f+d.length}),l<r.value.length&&o.push({type:"text",value:r.value.slice(l)}),typeof n=="number"&&a.children.splice(n,1,...o)}})}}const q7=Be.defineComponent({name:"AzsMdSource",props:{refId:{type:String,required:!0},displayText:{type:String,default:""},clickable:{type:Boolean,default:!1}},setup(t){const e=Be.inject("azsMdSlots",void 0);return()=>{const r=e&&typeof e.source=="function"?e.source:void 0;return r?r({refId:t.refId,displayText:t.displayText}):Be.h("div",{},t.displayText)}}}),aye={class:"azs-table-container"},iye={class:"azs-table"},sye={key:0},oye={key:1},lye=Be.defineComponent({__name:"AzsMarkdownTable",props:{tableData:{}},setup(t){const e=Be.defineComponent({name:"CellContent",props:{type:{type:String,required:!1},href:{type:String,required:!1},content:{type:[String,Array],required:!0}},setup(){return{azsSlots:Be.inject("azsMdSlots",void 0)}},render(){const{content:n,type:a,href:i,azsSlots:s}=this;return a==="link"&&typeof n=="string"?Be.h("a",{href:i,target:"_blank",rel:"noopener noreferrer",style:"color: #0069d9;text-decoration:underline;"},n):typeof n=="string"?n:Array.isArray(n)?n.map((o,l)=>{if(typeof o=="string")return o;if((o==null?void 0:o.type)==="ref"){const u=o.slotTagName||"_azs-source-ref",d=s&&typeof s[u]=="function"?s[u]:void 0;if(d){const h=d({properties:o.properties||{},content:o.displayText||o.content||"",tagName:u,classList:o.classList||[]});return Be.h(Be.Fragment,{key:`slot-${l}`},h)}return Be.h(q7,{key:`ref-${l}`,refId:o.refId,displayText:o.displayText||o.content,clickable:!0})}else if((o==null?void 0:o.type)==="math"){if(o.ast){const u=hm(o.ast),d=Array.isArray(u)?u:[u];return Be.h(Be.Fragment,{key:`math-${l}`},d)}return null}else return(o==null?void 0:o.type)==="link"?Be.h("a",{key:`link-${l}`,href:o.href||"",target:"_blank",rel:"noopener noreferrer",style:"color: #0069d9;text-decoration:underline;"},o.content||""):Be.h("span",{key:`text-${l}`},(o==null?void 0:o.content)!==void 0?o.content:"")}).filter(Boolean):n}}),r=n=>n?`text-${n}`:"text-left";return(n,a)=>(Be.openBlock(),Be.createElementBlock("div",aye,[Be.createElementVNode("table",iye,[n.tableData.headers&&n.tableData.headers.length>0?(Be.openBlock(),Be.createElementBlock("thead",sye,[Be.createElementVNode("tr",null,[(Be.openBlock(!0),Be.createElementBlock(Be.Fragment,null,Be.renderList(n.tableData.headers,(i,s)=>(Be.openBlock(),Be.createElementBlock("th",{key:s,class:Be.normalizeClass(r(i.align))},[Be.createVNode(Be.unref(e),{content:i.content},null,8,["content"])],2))),128))])])):Be.createCommentVNode("",!0),n.tableData.rows&&n.tableData.rows.length>0?(Be.openBlock(),Be.createElementBlock("tbody",oye,[(Be.openBlock(!0),Be.createElementBlock(Be.Fragment,null,Be.renderList(n.tableData.rows,(i,s)=>(Be.openBlock(),Be.createElementBlock("tr",{key:s},[(Be.openBlock(!0),Be.createElementBlock(Be.Fragment,null,Be.renderList(i.cells,(o,l)=>(Be.openBlock(),Be.createElementBlock("td",{key:l,class:Be.normalizeClass(r(o.align))},[Be.createVNode(Be.unref(e),{content:o.content,href:o.href||"",type:o.type||""},null,8,["content","href","type"])],2))),128))]))),128))])):Be.createCommentVNode("",!0)])]))}}),cye={class:"toolbar"},uye={class:"zoom-level"},dye=["src","alt","title"],hye={key:0,class:"loading"},fye=.1,pye=5,W7=.2,gye=Be.defineComponent({__name:"ImagePreview",props:{visible:{type:Boolean},src:{},alt:{default:""},title:{default:""}},emits:["close"],setup(t,{emit:e}){const r=e,n=Be.ref(1),a=Be.ref(0),i=Be.ref(0),s=Be.ref(!0),o=Be.ref(!1),l=Be.ref({x:0,y:0}),u=Be.ref({x:0,y:0}),d=Be.ref(),h=Be.ref(),f=Be.ref(),p=Be.computed(()=>({transform:`scale(${n.value}) translate(${a.value}px, ${i.value}px)`,transformOrigin:"center center",transition:o.value?"none":"transform 0.2s ease-out",cursor:o.value?"grabbing":"grab"})),g=()=>{r("close")},m=()=>{n.value=Math.min(n.value+W7,pye),v()},y=()=>{n.value=Math.max(n.value-W7,fye),v()},_=()=>{n.value=1,v()},v=()=>{a.value=0,i.value=0},E=()=>{s.value=!1,_()},S=I=>{I.target===d.value&&g()},T=I=>{switch(I.key){case"Escape":g();break;case"+":case"=":I.preventDefault(),m();break;case"-":I.preventDefault(),y();break;case"0":I.preventDefault(),_();break;case"ArrowLeft":I.preventDefault(),a.value-=20;break;case"ArrowRight":I.preventDefault(),a.value+=20;break;case"ArrowUp":I.preventDefault(),i.value-=20;break;case"ArrowDown":I.preventDefault(),i.value+=20;break}},x=I=>{n.value<=1||(o.value=!0,l.value={x:I.clientX,y:I.clientY},u.value={x:a.value,y:i.value},I.preventDefault())},C=I=>{I.preventDefault(),I.deltaY<0?m():y()},w=I=>{if(!o.value)return;const R=I.clientX-l.value.x,M=I.clientY-l.value.y;a.value=u.value.x+R,i.value=u.value.y+M},N=()=>{o.value=!1};return Be.onMounted(()=>{document.addEventListener("mousemove",w),document.addEventListener("mouseup",N),Be.nextTick(()=>{var I;(I=d.value)==null||I.focus()})}),Be.onUnmounted(()=>{document.removeEventListener("mousemove",w),document.removeEventListener("mouseup",N)}),(I,R)=>I.visible?(Be.openBlock(),Be.createElementBlock("div",{key:0,class:"image-preview-overlay",onClick:S,onKeydown:T,tabindex:"0",ref_key:"overlayRef",ref:d},[Be.createElementVNode("button",{class:"close-btn",onClick:g,title:"关闭 (ESC)"},[...R[1]||(R[1]=[Be.createElementVNode("svg",{viewBox:"0 0 24 24",width:"24",height:"24"},[Be.createElementVNode("path",{fill:"currentColor",d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"})],-1)])]),Be.createElementVNode("div",cye,[Be.createElementVNode("button",{onClick:m,title:"放大 (+)"},[...R[2]||(R[2]=[Be.createElementVNode("svg",{viewBox:"0 0 24 24",width:"20",height:"20"},[Be.createElementVNode("path",{fill:"currentColor",d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"})],-1)])]),Be.createElementVNode("button",{onClick:y,title:"缩小 (-)"},[...R[3]||(R[3]=[Be.createElementVNode("svg",{viewBox:"0 0 24 24",width:"20",height:"20"},[Be.createElementVNode("path",{fill:"currentColor",d:"M19 13H5v-2h14v2z"})],-1)])]),Be.createElementVNode("button",{onClick:_,title:"重置 (0)"},[...R[4]||(R[4]=[Be.createElementVNode("svg",{viewBox:"0 0 24 24",width:"20",height:"20"},[Be.createElementVNode("path",{fill:"currentColor",d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"})],-1)])]),Be.createElementVNode("span",uye,Be.toDisplayString(Math.round(n.value*100))+"%",1)]),Be.createElementVNode("div",{class:"image-preview-container",onClick:R[0]||(R[0]=Be.withModifiers(()=>{},["stop"]))},[Be.createElementVNode("div",{class:"image-container",ref_key:"imageContainerRef",ref:h},[Be.createElementVNode("img",{src:I.src,alt:I.alt,title:I.title,style:Be.normalizeStyle(p.value),onLoad:E,onMousedown:x,onWheel:C,draggable:"false",ref_key:"imageRef",ref:f},null,44,dye)],512),s.value?(Be.openBlock(),Be.createElementBlock("div",hye,[...R[5]||(R[5]=[Be.createElementVNode("div",{class:"spinner"},null,-1),Be.createElementVNode("span",null,"加载中...",-1)])])):Be.createCommentVNode("",!0)])],544)):Be.createCommentVNode("",!0)}}),K7=(t,e)=>{const r=t.__vccOpts||t;for(const[n,a]of e)r[n]=a;return r},mye=K7(gye,[["__scopeId","data-v-c12e5e80"]]),X7=Be.defineComponent({name:"AzsMdImg",props:{src:{type:String,required:!0},alt:{type:String,default:""},title:{type:String,default:""}},setup(t){const e=Be.inject("azsMdSlots",void 0),r=Be.ref(!1),n=()=>{r.value=!0},a=()=>{r.value=!1};return()=>{const i=e&&typeof e.image=="function"?e.image:void 0,s=Be.h(Be.Teleport,{to:"body"},Be.h(mye,{visible:r.value,src:t.src,alt:t.alt,title:t.title,onClose:a}));return console.log(i,"---------------"),i?i({src:t.src,alt:t.alt,title:t.title,onClick:n}):Be.h("div",[Be.h("img",{src:t.src,alt:t.alt,title:t.title,style:"max-width: 100%; cursor: pointer;",onClick:n}),s])}}});var Zx={name:"mermaid",version:"11.11.0",description:"Markdown-ish syntax for generating flowcharts, mindmaps, sequence diagrams, class diagrams, gantt charts, git graphs and more.",type:"module",module:"./dist/mermaid.core.mjs",types:"./dist/mermaid.d.ts",exports:{".":{types:"./dist/mermaid.d.ts",import:"./dist/mermaid.core.mjs",default:"./dist/mermaid.core.mjs"},"./*":"./*"},keywords:["diagram","markdown","flowchart","sequence diagram","gantt","class diagram","git graph","mindmap","packet diagram","c4 diagram","er diagram","pie chart","pie diagram","quadrant chart","requirement diagram","graph"],scripts:{clean:"rimraf dist",dev:"pnpm -w dev","docs:code":"typedoc src/defaultConfig.ts src/config.ts src/mermaid.ts && prettier --write ./src/docs/config/setup","docs:build":"rimraf ../../docs && pnpm docs:code && pnpm docs:spellcheck && tsx scripts/docs.cli.mts","docs:verify":"pnpm docs:code && pnpm docs:spellcheck && tsx scripts/docs.cli.mts --verify","docs:pre:vitepress":"pnpm --filter ./src/docs prefetch && rimraf src/vitepress && pnpm docs:code && tsx scripts/docs.cli.mts --vitepress && pnpm --filter ./src/vitepress install --no-frozen-lockfile --ignore-scripts","docs:build:vitepress":"pnpm docs:pre:vitepress && (cd src/vitepress && pnpm run build) && cpy --flat src/docs/landing/ ./src/vitepress/.vitepress/dist/landing","docs:dev":'pnpm docs:pre:vitepress && concurrently "pnpm --filter ./src/vitepress dev" "tsx scripts/docs.cli.mts --watch --vitepress"',"docs:dev:docker":'pnpm docs:pre:vitepress && concurrently "pnpm --filter ./src/vitepress dev:docker" "tsx scripts/docs.cli.mts --watch --vitepress"',"docs:serve":"pnpm docs:build:vitepress && vitepress serve src/vitepress","docs:spellcheck":'cspell "src/docs/**/*.md"',"docs:release-version":"tsx scripts/update-release-version.mts","docs:verify-version":"tsx scripts/update-release-version.mts --verify","types:build-config":"tsx scripts/create-types-from-json-schema.mts","types:verify-config":"tsx scripts/create-types-from-json-schema.mts --verify",checkCircle:"npx madge --circular ./src",prepublishOnly:"pnpm docs:verify-version"},repository:{type:"git",url:"https://github.com/mermaid-js/mermaid"},author:"Knut Sveidqvist",license:"MIT",standard:{ignore:["**/parser/*.js","dist/**/*.js","cypress/**/*.js"],globals:["page"]},dependencies:{"@braintree/sanitize-url":"^7.0.4","@iconify/utils":"^3.0.1","@mermaid-js/parser":"workspace:^","@types/d3":"^7.4.3",cytoscape:"^3.29.3","cytoscape-cose-bilkent":"^4.1.0","cytoscape-fcose":"^2.2.0",d3:"^7.9.0","d3-sankey":"^0.12.3","dagre-d3-es":"7.0.11",dayjs:"^1.11.13",dompurify:"^3.2.5",katex:"^0.16.22",khroma:"^2.1.0","lodash-es":"^4.17.21",marked:"^15.0.7",roughjs:"^4.6.6",stylis:"^4.3.6","ts-dedent":"^2.2.0",uuid:"^11.1.0"},devDependencies:{"@adobe/jsonschema2md":"^8.0.2","@iconify/types":"^2.0.0","@types/cytoscape":"^3.21.9","@types/cytoscape-fcose":"^2.2.4","@types/d3-sankey":"^0.12.4","@types/d3-scale":"^4.0.9","@types/d3-scale-chromatic":"^3.1.0","@types/d3-selection":"^3.0.11","@types/d3-shape":"^3.1.7","@types/jsdom":"^21.1.7","@types/katex":"^0.16.7","@types/lodash-es":"^4.17.12","@types/micromatch":"^4.0.9","@types/stylis":"^4.2.7","@types/uuid":"^10.0.0",ajv:"^8.17.1",canvas:"^3.1.0",chokidar:"3.6.0",concurrently:"^9.1.2","csstree-validator":"^4.0.1",globby:"^14.0.2",jison:"^0.4.18","js-base64":"^3.7.7",jsdom:"^26.1.0","json-schema-to-typescript":"^15.0.4",micromatch:"^4.0.8","path-browserify":"^1.0.1",prettier:"^3.5.2",remark:"^15.0.1","remark-frontmatter":"^5.0.0","remark-gfm":"^4.0.1",rimraf:"^6.0.1","start-server-and-test":"^2.0.10","type-fest":"^4.35.0",typedoc:"^0.28.9","typedoc-plugin-markdown":"^4.8.0",typescript:"~5.7.3","unist-util-flatmap":"^1.0.0","unist-util-visit":"^5.0.0",vitepress:"^1.0.2","vitepress-plugin-search":"1.0.4-alpha.22"},files:["dist/","README.md"],publishConfig:{access:"public"}},Q7={exports:{}};(function(t,e){(function(r,n){t.exports=n()})(vo,function(){var r=1e3,n=6e4,a=36e5,i="millisecond",s="second",o="minute",l="hour",u="day",d="week",h="month",f="quarter",p="year",g="date",m="Invalid Date",y=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,_=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,v={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(A){var k=["th","st","nd","rd"],O=A%100;return"["+A+(k[(O-20)%10]||k[O]||k[0])+"]"}},E=function(A,k,O){var D=String(A);return!D||D.length>=k?A:""+Array(k+1-D.length).join(O)+A},S={s:E,z:function(A){var k=-A.utcOffset(),O=Math.abs(k),D=Math.floor(O/60),L=O%60;return(k<=0?"+":"-")+E(D,2,"0")+":"+E(L,2,"0")},m:function A(k,O){if(k.date()<O.date())return-A(O,k);var D=12*(O.year()-k.year())+(O.month()-k.month()),L=k.clone().add(D,h),F=O-L<0,B=k.clone().add(D+(F?-1:1),h);return+(-(D+(O-L)/(F?L-B:B-L))||0)},a:function(A){return A<0?Math.ceil(A)||0:Math.floor(A)},p:function(A){return{M:h,y:p,w:d,d:u,D:g,h:l,m:o,s,ms:i,Q:f}[A]||String(A||"").toLowerCase().replace(/s$/,"")},u:function(A){return A===void 0}},T="en",x={};x[T]=v;var C="$isDayjsObject",w=function(A){return A instanceof M||!(!A||!A[C])},N=function A(k,O,D){var L;if(!k)return T;if(typeof k=="string"){var F=k.toLowerCase();x[F]&&(L=F),O&&(x[F]=O,L=F);var B=k.split("-");if(!L&&B.length>1)return A(B[0])}else{var U=k.name;x[U]=k,L=U}return!D&&L&&(T=L),L||!D&&T},I=function(A,k){if(w(A))return A.clone();var O=typeof k=="object"?k:{};return O.date=A,O.args=arguments,new M(O)},R=S;R.l=N,R.i=w,R.w=function(A,k){return I(A,{locale:k.$L,utc:k.$u,x:k.$x,$offset:k.$offset})};var M=function(){function A(O){this.$L=N(O.locale,null,!0),this.parse(O),this.$x=this.$x||O.x||{},this[C]=!0}var k=A.prototype;return k.parse=function(O){this.$d=function(D){var L=D.date,F=D.utc;if(L===null)return new Date(NaN);if(R.u(L))return new Date;if(L instanceof Date)return new Date(L);if(typeof L=="string"&&!/Z$/i.test(L)){var B=L.match(y);if(B){var U=B[2]-1||0,H=(B[7]||"0").substring(0,3);return F?new Date(Date.UTC(B[1],U,B[3]||1,B[4]||0,B[5]||0,B[6]||0,H)):new Date(B[1],U,B[3]||1,B[4]||0,B[5]||0,B[6]||0,H)}}return new Date(L)}(O),this.init()},k.init=function(){var O=this.$d;this.$y=O.getFullYear(),this.$M=O.getMonth(),this.$D=O.getDate(),this.$W=O.getDay(),this.$H=O.getHours(),this.$m=O.getMinutes(),this.$s=O.getSeconds(),this.$ms=O.getMilliseconds()},k.$utils=function(){return R},k.isValid=function(){return this.$d.toString()!==m},k.isSame=function(O,D){var L=I(O);return this.startOf(D)<=L&&L<=this.endOf(D)},k.isAfter=function(O,D){return I(O)<this.startOf(D)},k.isBefore=function(O,D){return this.endOf(D)<I(O)},k.$g=function(O,D,L){return R.u(O)?this[D]:this.set(L,O)},k.unix=function(){return Math.floor(this.valueOf()/1e3)},k.valueOf=function(){return this.$d.getTime()},k.startOf=function(O,D){var L=this,F=!!R.u(D)||D,B=R.p(O),U=function(Q,Z){var X=R.w(L.$u?Date.UTC(L.$y,Z,Q):new Date(L.$y,Z,Q),L);return F?X:X.endOf(u)},H=function(Q,Z){return R.w(L.toDate()[Q].apply(L.toDate("s"),(F?[0,0,0,0]:[23,59,59,999]).slice(Z)),L)},z=this.$W,te=this.$M,W=this.$D,ee="set"+(this.$u?"UTC":"");switch(B){case p:return F?U(1,0):U(31,11);case h:return F?U(1,te):U(0,te+1);case d:var re=this.$locale().weekStart||0,de=(z<re?z+7:z)-re;return U(F?W-de:W+(6-de),te);case u:case g:return H(ee+"Hours",0);case l:return H(ee+"Minutes",1);case o:return H(ee+"Seconds",2);case s:return H(ee+"Milliseconds",3);default:return this.clone()}},k.endOf=function(O){return this.startOf(O,!1)},k.$set=function(O,D){var L,F=R.p(O),B="set"+(this.$u?"UTC":""),U=(L={},L[u]=B+"Date",L[g]=B+"Date",L[h]=B+"Month",L[p]=B+"FullYear",L[l]=B+"Hours",L[o]=B+"Minutes",L[s]=B+"Seconds",L[i]=B+"Milliseconds",L)[F],H=F===u?this.$D+(D-this.$W):D;if(F===h||F===p){var z=this.clone().set(g,1);z.$d[U](H),z.init(),this.$d=z.set(g,Math.min(this.$D,z.daysInMonth())).$d}else U&&this.$d[U](H);return this.init(),this},k.set=function(O,D){return this.clone().$set(O,D)},k.get=function(O){return this[R.p(O)]()},k.add=function(O,D){var L,F=this;O=Number(O);var B=R.p(D),U=function(te){var W=I(F);return R.w(W.date(W.date()+Math.round(te*O)),F)};if(B===h)return this.set(h,this.$M+O);if(B===p)return this.set(p,this.$y+O);if(B===u)return U(1);if(B===d)return U(7);var H=(L={},L[o]=n,L[l]=a,L[s]=r,L)[B]||1,z=this.$d.getTime()+O*H;return R.w(z,this)},k.subtract=function(O,D){return this.add(-1*O,D)},k.format=function(O){var D=this,L=this.$locale();if(!this.isValid())return L.invalidDate||m;var F=O||"YYYY-MM-DDTHH:mm:ssZ",B=R.z(this),U=this.$H,H=this.$m,z=this.$M,te=L.weekdays,W=L.months,ee=L.meridiem,re=function(Z,X,K,ne){return Z&&(Z[X]||Z(D,F))||K[X].slice(0,ne)},de=function(Z){return R.s(U%12||12,Z,"0")},Q=ee||function(Z,X,K){var ne=Z<12?"AM":"PM";return K?ne.toLowerCase():ne};return F.replace(_,function(Z,X){return X||function(K){switch(K){case"YY":return String(D.$y).slice(-2);case"YYYY":return R.s(D.$y,4,"0");case"M":return z+1;case"MM":return R.s(z+1,2,"0");case"MMM":return re(L.monthsShort,z,W,3);case"MMMM":return re(W,z);case"D":return D.$D;case"DD":return R.s(D.$D,2,"0");case"d":return String(D.$W);case"dd":return re(L.weekdaysMin,D.$W,te,2);case"ddd":return re(L.weekdaysShort,D.$W,te,3);case"dddd":return te[D.$W];case"H":return String(U);case"HH":return R.s(U,2,"0");case"h":return de(1);case"hh":return de(2);case"a":return Q(U,H,!0);case"A":return Q(U,H,!1);case"m":return String(H);case"mm":return R.s(H,2,"0");case"s":return String(D.$s);case"ss":return R.s(D.$s,2,"0");case"SSS":return R.s(D.$ms,3,"0");case"Z":return B}return null}(Z)||B.replace(":","")})},k.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},k.diff=function(O,D,L){var F,B=this,U=R.p(D),H=I(O),z=(H.utcOffset()-this.utcOffset())*n,te=this-H,W=function(){return R.m(B,H)};switch(U){case p:F=W()/12;break;case h:F=W();break;case f:F=W()/3;break;case d:F=(te-z)/6048e5;break;case u:F=(te-z)/864e5;break;case l:F=te/a;break;case o:F=te/n;break;case s:F=te/r;break;default:F=te}return L?F:R.a(F)},k.daysInMonth=function(){return this.endOf(h).$D},k.$locale=function(){return x[this.$L]},k.locale=function(O,D){if(!O)return this.$L;var L=this.clone(),F=N(O,D,!0);return F&&(L.$L=F),L},k.clone=function(){return R.w(this.$d,this)},k.toDate=function(){return new Date(this.valueOf())},k.toJSON=function(){return this.isValid()?this.toISOString():null},k.toISOString=function(){return this.$d.toISOString()},k.toString=function(){return this.$d.toUTCString()},A}(),P=M.prototype;return I.prototype=P,[["$ms",i],["$s",s],["$m",o],["$H",l],["$W",u],["$M",h],["$y",p],["$D",g]].forEach(function(A){P[A[1]]=function(k){return this.$g(k,A[0],A[1])}}),I.extend=function(A,k){return A.$i||(A(k,M,I),A.$i=!0),I},I.locale=N,I.isDayjs=w,I.unix=function(A){return I(1e3*A)},I.en=x[T],I.Ls=x,I.p={},I})})(Q7);var _ye=Q7.exports;const Ha=cc(_ye);var j7=Object.defineProperty,b=(t,e)=>j7(t,"name",{value:e,configurable:!0}),Ey=(t,e)=>{for(var r in e)j7(t,r,{get:e[r],enumerable:!0})},_l={trace:0,debug:1,info:2,warn:3,error:4,fatal:5},oe={trace:b((...t)=>{},"trace"),debug:b((...t)=>{},"debug"),info:b((...t)=>{},"info"),warn:b((...t)=>{},"warn"),error:b((...t)=>{},"error"),fatal:b((...t)=>{},"fatal")},Jx=b(function(t="fatal"){let e=_l.fatal;typeof t=="string"?t.toLowerCase()in _l&&(e=_l[t]):typeof t=="number"&&(e=t),oe.trace=()=>{},oe.debug=()=>{},oe.info=()=>{},oe.warn=()=>{},oe.error=()=>{},oe.fatal=()=>{},e<=_l.fatal&&(oe.fatal=console.error?console.error.bind(console,ws("FATAL"),"color: orange"):console.log.bind(console,"\x1B[35m",ws("FATAL"))),e<=_l.error&&(oe.error=console.error?console.error.bind(console,ws("ERROR"),"color: orange"):console.log.bind(console,"\x1B[31m",ws("ERROR"))),e<=_l.warn&&(oe.warn=console.warn?console.warn.bind(console,ws("WARN"),"color: orange"):console.log.bind(console,"\x1B[33m",ws("WARN"))),e<=_l.info&&(oe.info=console.info?console.info.bind(console,ws("INFO"),"color: lightblue"):console.log.bind(console,"\x1B[34m",ws("INFO"))),e<=_l.debug&&(oe.debug=console.debug?console.debug.bind(console,ws("DEBUG"),"color: lightgreen"):console.log.bind(console,"\x1B[32m",ws("DEBUG"))),e<=_l.trace&&(oe.trace=console.debug?console.debug.bind(console,ws("TRACE"),"color: lightgreen"):console.log.bind(console,"\x1B[32m",ws("TRACE")))},"setLogLevel"),ws=b(t=>`%c${Ha().format("ss.SSS")} : ${t} : `,"format");const by={min:{r:0,g:0,b:0,s:0,l:0,a:0},max:{r:255,g:255,b:255,h:360,s:100,l:100,a:1},clamp:{r:t=>t>=255?255:t<0?0:t,g:t=>t>=255?255:t<0?0:t,b:t=>t>=255?255:t<0?0:t,h:t=>t%360,s:t=>t>=100?100:t<0?0:t,l:t=>t>=100?100:t<0?0:t,a:t=>t>=1?1:t<0?0:t},toLinear:t=>{const e=t/255;return t>.03928?Math.pow((e+.055)/1.055,2.4):e/12.92},hue2rgb:(t,e,r)=>(r<0&&(r+=1),r>1&&(r-=1),r<1/6?t+(e-t)*6*r:r<1/2?e:r<2/3?t+(e-t)*(2/3-r)*6:t),hsl2rgb:({h:t,s:e,l:r},n)=>{if(!e)return r*2.55;t/=360,e/=100,r/=100;const a=r<.5?r*(1+e):r+e-r*e,i=2*r-a;switch(n){case"r":return by.hue2rgb(i,a,t+1/3)*255;case"g":return by.hue2rgb(i,a,t)*255;case"b":return by.hue2rgb(i,a,t-1/3)*255}},rgb2hsl:({r:t,g:e,b:r},n)=>{t/=255,e/=255,r/=255;const a=Math.max(t,e,r),i=Math.min(t,e,r),s=(a+i)/2;if(n==="l")return s*100;if(a===i)return 0;const o=a-i,l=s>.5?o/(2-a-i):o/(a+i);if(n==="s")return l*100;switch(a){case t:return((e-r)/o+(e<r?6:0))*60;case e:return((r-t)/o+2)*60;case r:return((t-e)/o+4)*60;default:return-1}}},or={channel:by,lang:{clamp:(t,e,r)=>e>r?Math.min(e,Math.max(r,t)):Math.min(r,Math.max(e,t)),round:t=>Math.round(t*1e10)/1e10},unit:{dec2hex:t=>{const e=Math.round(t).toString(16);return e.length>1?e:`0${e}`}}},Sc={};for(let t=0;t<=255;t++)Sc[t]=or.unit.dec2hex(t);const Va={ALL:0,RGB:1,HSL:2};let yye=class{constructor(){this.type=Va.ALL}get(){return this.type}set(e){if(this.type&&this.type!==e)throw new Error("Cannot change both RGB and HSL channels at the same time");this.type=e}reset(){this.type=Va.ALL}is(e){return this.type===e}};class vye{constructor(e,r){this.color=r,this.changed=!1,this.data=e,this.type=new yye}set(e,r){return this.color=r,this.changed=!1,this.data=e,this.type.type=Va.ALL,this}_ensureHSL(){const e=this.data,{h:r,s:n,l:a}=e;r===void 0&&(e.h=or.channel.rgb2hsl(e,"h")),n===void 0&&(e.s=or.channel.rgb2hsl(e,"s")),a===void 0&&(e.l=or.channel.rgb2hsl(e,"l"))}_ensureRGB(){const e=this.data,{r,g:n,b:a}=e;r===void 0&&(e.r=or.channel.hsl2rgb(e,"r")),n===void 0&&(e.g=or.channel.hsl2rgb(e,"g")),a===void 0&&(e.b=or.channel.hsl2rgb(e,"b"))}get r(){const e=this.data,r=e.r;return!this.type.is(Va.HSL)&&r!==void 0?r:(this._ensureHSL(),or.channel.hsl2rgb(e,"r"))}get g(){const e=this.data,r=e.g;return!this.type.is(Va.HSL)&&r!==void 0?r:(this._ensureHSL(),or.channel.hsl2rgb(e,"g"))}get b(){const e=this.data,r=e.b;return!this.type.is(Va.HSL)&&r!==void 0?r:(this._ensureHSL(),or.channel.hsl2rgb(e,"b"))}get h(){const e=this.data,r=e.h;return!this.type.is(Va.RGB)&&r!==void 0?r:(this._ensureRGB(),or.channel.rgb2hsl(e,"h"))}get s(){const e=this.data,r=e.s;return!this.type.is(Va.RGB)&&r!==void 0?r:(this._ensureRGB(),or.channel.rgb2hsl(e,"s"))}get l(){const e=this.data,r=e.l;return!this.type.is(Va.RGB)&&r!==void 0?r:(this._ensureRGB(),or.channel.rgb2hsl(e,"l"))}get a(){return this.data.a}set r(e){this.type.set(Va.RGB),this.changed=!0,this.data.r=e}set g(e){this.type.set(Va.RGB),this.changed=!0,this.data.g=e}set b(e){this.type.set(Va.RGB),this.changed=!0,this.data.b=e}set h(e){this.type.set(Va.HSL),this.changed=!0,this.data.h=e}set s(e){this.type.set(Va.HSL),this.changed=!0,this.data.s=e}set l(e){this.type.set(Va.HSL),this.changed=!0,this.data.l=e}set a(e){this.changed=!0,this.data.a=e}}const Sy=new vye({r:0,g:0,b:0,a:0},"transparent"),Nh={re:/^#((?:[a-f0-9]{2}){2,4}|[a-f0-9]{3})$/i,parse:t=>{if(t.charCodeAt(0)!==35)return;const e=t.match(Nh.re);if(!e)return;const r=e[1],n=parseInt(r,16),a=r.length,i=a%4===0,s=a>4,o=s?1:17,l=s?8:4,u=i?0:-1,d=s?255:15;return Sy.set({r:(n>>l*(u+3)&d)*o,g:(n>>l*(u+2)&d)*o,b:(n>>l*(u+1)&d)*o,a:i?(n&d)*o/255:1},t)},stringify:t=>{const{r:e,g:r,b:n,a}=t;return a<1?`#${Sc[Math.round(e)]}${Sc[Math.round(r)]}${Sc[Math.round(n)]}${Sc[Math.round(a*255)]}`:`#${Sc[Math.round(e)]}${Sc[Math.round(r)]}${Sc[Math.round(n)]}`}},Fu={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,hueRe:/^(.+?)(deg|grad|rad|turn)$/i,_hue2deg:t=>{const e=t.match(Fu.hueRe);if(e){const[,r,n]=e;switch(n){case"grad":return or.channel.clamp.h(parseFloat(r)*.9);case"rad":return or.channel.clamp.h(parseFloat(r)*180/Math.PI);case"turn":return or.channel.clamp.h(parseFloat(r)*360)}}return or.channel.clamp.h(parseFloat(t))},parse:t=>{const e=t.charCodeAt(0);if(e!==104&&e!==72)return;const r=t.match(Fu.re);if(!r)return;const[,n,a,i,s,o]=r;return Sy.set({h:Fu._hue2deg(n),s:or.channel.clamp.s(parseFloat(a)),l:or.channel.clamp.l(parseFloat(i)),a:s?or.channel.clamp.a(o?parseFloat(s)/100:parseFloat(s)):1},t)},stringify:t=>{const{h:e,s:r,l:n,a}=t;return a<1?`hsla(${or.lang.round(e)}, ${or.lang.round(r)}%, ${or.lang.round(n)}%, ${a})`:`hsl(${or.lang.round(e)}, ${or.lang.round(r)}%, ${or.lang.round(n)}%)`}},Qg={colors:{aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyanaqua:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",transparent:"#00000000",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"},parse:t=>{t=t.toLowerCase();const e=Qg.colors[t];if(e)return Nh.parse(e)},stringify:t=>{const e=Nh.stringify(t);for(const r in Qg.colors)if(Qg.colors[r]===e)return r}},jg={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,parse:t=>{const e=t.charCodeAt(0);if(e!==114&&e!==82)return;const r=t.match(jg.re);if(!r)return;const[,n,a,i,s,o,l,u,d]=r;return Sy.set({r:or.channel.clamp.r(a?parseFloat(n)*2.55:parseFloat(n)),g:or.channel.clamp.g(s?parseFloat(i)*2.55:parseFloat(i)),b:or.channel.clamp.b(l?parseFloat(o)*2.55:parseFloat(o)),a:u?or.channel.clamp.a(d?parseFloat(u)/100:parseFloat(u)):1},t)},stringify:t=>{const{r:e,g:r,b:n,a}=t;return a<1?`rgba(${or.lang.round(e)}, ${or.lang.round(r)}, ${or.lang.round(n)}, ${or.lang.round(a)})`:`rgb(${or.lang.round(e)}, ${or.lang.round(r)}, ${or.lang.round(n)})`}},Qs={format:{keyword:Qg,hex:Nh,rgb:jg,rgba:jg,hsl:Fu,hsla:Fu},parse:t=>{if(typeof t!="string")return t;const e=Nh.parse(t)||jg.parse(t)||Fu.parse(t)||Qg.parse(t);if(e)return e;throw new Error(`Unsupported color format: "${t}"`)},stringify:t=>!t.changed&&t.color?t.color:t.type.is(Va.HSL)||t.data.r===void 0?Fu.stringify(t):t.a<1||!Number.isInteger(t.r)||!Number.isInteger(t.g)||!Number.isInteger(t.b)?jg.stringify(t):Nh.stringify(t)},Z7=(t,e)=>{const r=Qs.parse(t);for(const n in e)r[n]=or.channel.clamp[n](e[n]);return Qs.stringify(r)},Tc=(t,e,r=0,n=1)=>{if(typeof t!="number")return Z7(t,{a:e});const a=Sy.set({r:or.channel.clamp.r(t),g:or.channel.clamp.g(e),b:or.channel.clamp.b(r),a:or.channel.clamp.a(n)});return Qs.stringify(a)},eC=(t,e)=>or.lang.round(Qs.parse(t)[e]),Eye=t=>{const{r:e,g:r,b:n}=Qs.parse(t),a=.2126*or.channel.toLinear(e)+.7152*or.channel.toLinear(r)+.0722*or.channel.toLinear(n);return or.lang.round(a)},bye=t=>Eye(t)>=.5,xc=t=>!bye(t),J7=(t,e,r)=>{const n=Qs.parse(t),a=n[e],i=or.channel.clamp[e](a+r);return a!==i&&(n[e]=i),Qs.stringify(n)},Ut=(t,e)=>J7(t,"l",e),Kt=(t,e)=>J7(t,"l",-e),Ye=(t,e)=>{const r=Qs.parse(t),n={};for(const a in e)e[a]&&(n[a]=r[a]+e[a]);return Z7(t,n)},Sye=(t,e,r=50)=>{const{r:n,g:a,b:i,a:s}=Qs.parse(t),{r:o,g:l,b:u,a:d}=Qs.parse(e),h=r/100,f=h*2-1,p=s-d,m=((f*p===-1?f:(f+p)/(1+f*p))+1)/2,y=1-m,_=n*m+o*y,v=a*m+l*y,E=i*m+u*y,S=s*h+d*(1-h);return Tc(_,v,E,S)},It=(t,e=100)=>{const r=Qs.parse(t);return r.r=255-r.r,r.g=255-r.g,r.b=255-r.b,Sye(r,t,e)};/*! @license DOMPurify 3.2.6 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.2.6/LICENSE */const{entries:e9,setPrototypeOf:t9,isFrozen:Tye,getPrototypeOf:xye,getOwnPropertyDescriptor:Cye}=Object;let{freeze:di,seal:Ns,create:r9}=Object,{apply:tC,construct:rC}=typeof Reflect<"u"&&Reflect;di||(di=function(e){return e}),Ns||(Ns=function(e){return e}),tC||(tC=function(e,r,n){return e.apply(r,n)}),rC||(rC=function(e,r){return new e(...r)});const Ty=fi(Array.prototype.forEach),Aye=fi(Array.prototype.lastIndexOf),n9=fi(Array.prototype.pop),Zg=fi(Array.prototype.push),Rye=fi(Array.prototype.splice),xy=fi(String.prototype.toLowerCase),nC=fi(String.prototype.toString),a9=fi(String.prototype.match),Jg=fi(String.prototype.replace),wye=fi(String.prototype.indexOf),Nye=fi(String.prototype.trim),js=fi(Object.prototype.hasOwnProperty),hi=fi(RegExp.prototype.test),e0=Iye(TypeError);function fi(t){return function(e){e instanceof RegExp&&(e.lastIndex=0);for(var r=arguments.length,n=new Array(r>1?r-1:0),a=1;a<r;a++)n[a-1]=arguments[a];return tC(t,e,n)}}function Iye(t){return function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return rC(t,r)}}function Sr(t,e){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:xy;t9&&t9(t,null);let n=e.length;for(;n--;){let a=e[n];if(typeof a=="string"){const i=r(a);i!==a&&(Tye(e)||(e[n]=i),a=i)}t[a]=!0}return t}function Oye(t){for(let e=0;e<t.length;e++)js(t,e)||(t[e]=null);return t}function yl(t){const e=r9(null);for(const[r,n]of e9(t))js(t,r)&&(Array.isArray(n)?e[r]=Oye(n):n&&typeof n=="object"&&n.constructor===Object?e[r]=yl(n):e[r]=n);return e}function t0(t,e){for(;t!==null;){const n=Cye(t,e);if(n){if(n.get)return fi(n.get);if(typeof n.value=="function")return fi(n.value)}t=xye(t)}function r(){return null}return r}const i9=di(["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"]),aC=di(["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"]),iC=di(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),kye=di(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),sC=di(["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"]),Dye=di(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),s9=di(["#text"]),o9=di(["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"]),oC=di(["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"]),l9=di(["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"]),Cy=di(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),Lye=Ns(/\{\{[\w\W]*|[\w\W]*\}\}/gm),Mye=Ns(/<%[\w\W]*|[\w\W]*%>/gm),Pye=Ns(/\$\{[\w\W]*/gm),Bye=Ns(/^data-[\-\w.\u00B7-\uFFFF]+$/),Fye=Ns(/^aria-[\-\w]+$/),c9=Ns(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Uye=Ns(/^(?:\w+script|data):/i),$ye=Ns(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),u9=Ns(/^html$/i),Gye=Ns(/^[a-z][.\w]*(-[.\w]+)+$/i);var d9=Object.freeze({__proto__:null,ARIA_ATTR:Fye,ATTR_WHITESPACE:$ye,CUSTOM_ELEMENT:Gye,DATA_ATTR:Bye,DOCTYPE_NAME:u9,ERB_EXPR:Mye,IS_ALLOWED_URI:c9,IS_SCRIPT_OR_DATA:Uye,MUSTACHE_EXPR:Lye,TMPLIT_EXPR:Pye});const r0={element:1,text:3,progressingInstruction:7,comment:8,document:9},zye=function(){return typeof window>"u"?null:window},Yye=function(e,r){if(typeof e!="object"||typeof e.createPolicy!="function")return null;let n=null;const a="data-tt-policy-suffix";r&&r.hasAttribute(a)&&(n=r.getAttribute(a));const i="dompurify"+(n?"#"+n:"");try{return e.createPolicy(i,{createHTML(s){return s},createScriptURL(s){return s}})}catch{return console.warn("TrustedTypes policy "+i+" could not be created."),null}},h9=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function f9(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:zye();const e=Ot=>f9(Ot);if(e.version="3.2.6",e.removed=[],!t||!t.document||t.document.nodeType!==r0.document||!t.Element)return e.isSupported=!1,e;let{document:r}=t;const n=r,a=n.currentScript,{DocumentFragment:i,HTMLTemplateElement:s,Node:o,Element:l,NodeFilter:u,NamedNodeMap:d=t.NamedNodeMap||t.MozNamedAttrMap,HTMLFormElement:h,DOMParser:f,trustedTypes:p}=t,g=l.prototype,m=t0(g,"cloneNode"),y=t0(g,"remove"),_=t0(g,"nextSibling"),v=t0(g,"childNodes"),E=t0(g,"parentNode");if(typeof s=="function"){const Ot=r.createElement("template");Ot.content&&Ot.content.ownerDocument&&(r=Ot.content.ownerDocument)}let S,T="";const{implementation:x,createNodeIterator:C,createDocumentFragment:w,getElementsByTagName:N}=r,{importNode:I}=n;let R=h9();e.isSupported=typeof e9=="function"&&typeof E=="function"&&x&&x.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:M,ERB_EXPR:P,TMPLIT_EXPR:A,DATA_ATTR:k,ARIA_ATTR:O,IS_SCRIPT_OR_DATA:D,ATTR_WHITESPACE:L,CUSTOM_ELEMENT:F}=d9;let{IS_ALLOWED_URI:B}=d9,U=null;const H=Sr({},[...i9,...aC,...iC,...sC,...s9]);let z=null;const te=Sr({},[...o9,...oC,...l9,...Cy]);let W=Object.seal(r9(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),ee=null,re=null,de=!0,Q=!0,Z=!1,X=!0,K=!1,ne=!0,j=!1,_e=!1,ae=!1,Le=!1,V=!1,ze=!1,ge=!0,$e=!1;const Ke="user-content-";let Qe=!0,Oe=!1,Ge={},ie=null;const pe=Sr({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let Ae=null;const ue=Sr({},["audio","video","img","source","image","track"]);let Ne=null;const J=Sr({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),fe="http://www.w3.org/1998/Math/MathML",G="http://www.w3.org/2000/svg",ce="http://www.w3.org/1999/xhtml";let le=ce,ye=!1,me=null;const Ce=Sr({},[fe,G,ce],nC);let De=Sr({},["mi","mo","mn","ms","mtext"]),Te=Sr({},["annotation-xml"]);const Ue=Sr({},["title","style","font","a","script"]);let Ze=null;const nt=["application/xhtml+xml","text/html"],it="text/html";let et=null,Xe=null;const tt=r.createElement("form"),St=function(ke){return ke instanceof RegExp||ke instanceof Function},gt=function(){let ke=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(Xe&&Xe===ke)){if((!ke||typeof ke!="object")&&(ke={}),ke=yl(ke),Ze=nt.indexOf(ke.PARSER_MEDIA_TYPE)===-1?it:ke.PARSER_MEDIA_TYPE,et=Ze==="application/xhtml+xml"?nC:xy,U=js(ke,"ALLOWED_TAGS")?Sr({},ke.ALLOWED_TAGS,et):H,z=js(ke,"ALLOWED_ATTR")?Sr({},ke.ALLOWED_ATTR,et):te,me=js(ke,"ALLOWED_NAMESPACES")?Sr({},ke.ALLOWED_NAMESPACES,nC):Ce,Ne=js(ke,"ADD_URI_SAFE_ATTR")?Sr(yl(J),ke.ADD_URI_SAFE_ATTR,et):J,Ae=js(ke,"ADD_DATA_URI_TAGS")?Sr(yl(ue),ke.ADD_DATA_URI_TAGS,et):ue,ie=js(ke,"FORBID_CONTENTS")?Sr({},ke.FORBID_CONTENTS,et):pe,ee=js(ke,"FORBID_TAGS")?Sr({},ke.FORBID_TAGS,et):yl({}),re=js(ke,"FORBID_ATTR")?Sr({},ke.FORBID_ATTR,et):yl({}),Ge=js(ke,"USE_PROFILES")?ke.USE_PROFILES:!1,de=ke.ALLOW_ARIA_ATTR!==!1,Q=ke.ALLOW_DATA_ATTR!==!1,Z=ke.ALLOW_UNKNOWN_PROTOCOLS||!1,X=ke.ALLOW_SELF_CLOSE_IN_ATTR!==!1,K=ke.SAFE_FOR_TEMPLATES||!1,ne=ke.SAFE_FOR_XML!==!1,j=ke.WHOLE_DOCUMENT||!1,Le=ke.RETURN_DOM||!1,V=ke.RETURN_DOM_FRAGMENT||!1,ze=ke.RETURN_TRUSTED_TYPE||!1,ae=ke.FORCE_BODY||!1,ge=ke.SANITIZE_DOM!==!1,$e=ke.SANITIZE_NAMED_PROPS||!1,Qe=ke.KEEP_CONTENT!==!1,Oe=ke.IN_PLACE||!1,B=ke.ALLOWED_URI_REGEXP||c9,le=ke.NAMESPACE||ce,De=ke.MATHML_TEXT_INTEGRATION_POINTS||De,Te=ke.HTML_INTEGRATION_POINTS||Te,W=ke.CUSTOM_ELEMENT_HANDLING||{},ke.CUSTOM_ELEMENT_HANDLING&&St(ke.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(W.tagNameCheck=ke.CUSTOM_ELEMENT_HANDLING.tagNameCheck),ke.CUSTOM_ELEMENT_HANDLING&&St(ke.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(W.attributeNameCheck=ke.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),ke.CUSTOM_ELEMENT_HANDLING&&typeof ke.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(W.allowCustomizedBuiltInElements=ke.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),K&&(Q=!1),V&&(Le=!0),Ge&&(U=Sr({},s9),z=[],Ge.html===!0&&(Sr(U,i9),Sr(z,o9)),Ge.svg===!0&&(Sr(U,aC),Sr(z,oC),Sr(z,Cy)),Ge.svgFilters===!0&&(Sr(U,iC),Sr(z,oC),Sr(z,Cy)),Ge.mathMl===!0&&(Sr(U,sC),Sr(z,l9),Sr(z,Cy))),ke.ADD_TAGS&&(U===H&&(U=yl(U)),Sr(U,ke.ADD_TAGS,et)),ke.ADD_ATTR&&(z===te&&(z=yl(z)),Sr(z,ke.ADD_ATTR,et)),ke.ADD_URI_SAFE_ATTR&&Sr(Ne,ke.ADD_URI_SAFE_ATTR,et),ke.FORBID_CONTENTS&&(ie===pe&&(ie=yl(ie)),Sr(ie,ke.FORBID_CONTENTS,et)),Qe&&(U["#text"]=!0),j&&Sr(U,["html","head","body"]),U.table&&(Sr(U,["tbody"]),delete ee.tbody),ke.TRUSTED_TYPES_POLICY){if(typeof ke.TRUSTED_TYPES_POLICY.createHTML!="function")throw e0('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof ke.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw e0('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');S=ke.TRUSTED_TYPES_POLICY,T=S.createHTML("")}else S===void 0&&(S=Yye(p,a)),S!==null&&typeof T=="string"&&(T=S.createHTML(""));di&&di(ke),Xe=ke}},Je=Sr({},[...aC,...iC,...kye]),Mt=Sr({},[...sC,...Dye]),rt=function(ke){let st=E(ke);(!st||!st.tagName)&&(st={namespaceURI:le,tagName:"template"});const kt=xy(ke.tagName),gr=xy(st.tagName);return me[ke.namespaceURI]?ke.namespaceURI===G?st.namespaceURI===ce?kt==="svg":st.namespaceURI===fe?kt==="svg"&&(gr==="annotation-xml"||De[gr]):!!Je[kt]:ke.namespaceURI===fe?st.namespaceURI===ce?kt==="math":st.namespaceURI===G?kt==="math"&&Te[gr]:!!Mt[kt]:ke.namespaceURI===ce?st.namespaceURI===G&&!Te[gr]||st.namespaceURI===fe&&!De[gr]?!1:!Mt[kt]&&(Ue[kt]||!Je[kt]):!!(Ze==="application/xhtml+xml"&&me[ke.namespaceURI]):!1},ot=function(ke){Zg(e.removed,{element:ke});try{E(ke).removeChild(ke)}catch{y(ke)}},bt=function(ke,st){try{Zg(e.removed,{attribute:st.getAttributeNode(ke),from:st})}catch{Zg(e.removed,{attribute:null,from:st})}if(st.removeAttribute(ke),ke==="is")if(Le||V)try{ot(st)}catch{}else try{st.setAttribute(ke,"")}catch{}},Tt=function(ke){let st=null,kt=null;if(ae)ke="<remove></remove>"+ke;else{const tn=a9(ke,/^[\r\n\t ]+/);kt=tn&&tn[0]}Ze==="application/xhtml+xml"&&le===ce&&(ke='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+ke+"</body></html>");const gr=S?S.createHTML(ke):ke;if(le===ce)try{st=new f().parseFromString(gr,Ze)}catch{}if(!st||!st.documentElement){st=x.createDocument(le,"template",null);try{st.documentElement.innerHTML=ye?T:gr}catch{}}const en=st.body||st.documentElement;return ke&&kt&&en.insertBefore(r.createTextNode(kt),en.childNodes[0]||null),le===ce?N.call(st,j?"html":"body")[0]:j?st.documentElement:en},ht=function(ke){return C.call(ke.ownerDocument||ke,ke,u.SHOW_ELEMENT|u.SHOW_COMMENT|u.SHOW_TEXT|u.SHOW_PROCESSING_INSTRUCTION|u.SHOW_CDATA_SECTION,null)},Nt=function(ke){return ke instanceof h&&(typeof ke.nodeName!="string"||typeof ke.textContent!="string"||typeof ke.removeChild!="function"||!(ke.attributes instanceof d)||typeof ke.removeAttribute!="function"||typeof ke.setAttribute!="function"||typeof ke.namespaceURI!="string"||typeof ke.insertBefore!="function"||typeof ke.hasChildNodes!="function")},pr=function(ke){return typeof o=="function"&&ke instanceof o};function zt(Ot,ke,st){Ty(Ot,kt=>{kt.call(e,ke,st,Xe)})}const Gr=function(ke){let st=null;if(zt(R.beforeSanitizeElements,ke,null),Nt(ke))return ot(ke),!0;const kt=et(ke.nodeName);if(zt(R.uponSanitizeElement,ke,{tagName:kt,allowedTags:U}),ne&&ke.hasChildNodes()&&!pr(ke.firstElementChild)&&hi(/<[/\w!]/g,ke.innerHTML)&&hi(/<[/\w!]/g,ke.textContent)||ke.nodeType===r0.progressingInstruction||ne&&ke.nodeType===r0.comment&&hi(/<[/\w]/g,ke.data))return ot(ke),!0;if(!U[kt]||ee[kt]){if(!ee[kt]&&yr(kt)&&(W.tagNameCheck instanceof RegExp&&hi(W.tagNameCheck,kt)||W.tagNameCheck instanceof Function&&W.tagNameCheck(kt)))return!1;if(Qe&&!ie[kt]){const gr=E(ke)||ke.parentNode,en=v(ke)||ke.childNodes;if(en&&gr){const tn=en.length;for(let jr=tn-1;jr>=0;--jr){const ea=m(en[jr],!0);ea.__removalCount=(ke.__removalCount||0)+1,gr.insertBefore(ea,_(ke))}}}return ot(ke),!0}return ke instanceof l&&!rt(ke)||(kt==="noscript"||kt==="noembed"||kt==="noframes")&&hi(/<\/no(script|embed|frames)/i,ke.innerHTML)?(ot(ke),!0):(K&&ke.nodeType===r0.text&&(st=ke.textContent,Ty([M,P,A],gr=>{st=Jg(st,gr," ")}),ke.textContent!==st&&(Zg(e.removed,{element:ke.cloneNode()}),ke.textContent=st)),zt(R.afterSanitizeElements,ke,null),!1)},Br=function(ke,st,kt){if(ge&&(st==="id"||st==="name")&&(kt in r||kt in tt))return!1;if(!(Q&&!re[st]&&hi(k,st))){if(!(de&&hi(O,st))){if(!z[st]||re[st]){if(!(yr(ke)&&(W.tagNameCheck instanceof RegExp&&hi(W.tagNameCheck,ke)||W.tagNameCheck instanceof Function&&W.tagNameCheck(ke))&&(W.attributeNameCheck instanceof RegExp&&hi(W.attributeNameCheck,st)||W.attributeNameCheck instanceof Function&&W.attributeNameCheck(st))||st==="is"&&W.allowCustomizedBuiltInElements&&(W.tagNameCheck instanceof RegExp&&hi(W.tagNameCheck,kt)||W.tagNameCheck instanceof Function&&W.tagNameCheck(kt))))return!1}else if(!Ne[st]){if(!hi(B,Jg(kt,L,""))){if(!((st==="src"||st==="xlink:href"||st==="href")&&ke!=="script"&&wye(kt,"data:")===0&&Ae[ke])){if(!(Z&&!hi(D,Jg(kt,L,"")))){if(kt)return!1}}}}}}return!0},yr=function(ke){return ke!=="annotation-xml"&&a9(ke,F)},ar=function(ke){zt(R.beforeSanitizeAttributes,ke,null);const{attributes:st}=ke;if(!st||Nt(ke))return;const kt={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:z,forceKeepAttr:void 0};let gr=st.length;for(;gr--;){const en=st[gr],{name:tn,namespaceURI:jr,value:ea}=en,Es=et(tn),wa=ea;let kr=tn==="value"?wa:Nye(wa);if(kt.attrName=Es,kt.attrValue=kr,kt.keepAttr=!0,kt.forceKeepAttr=void 0,zt(R.uponSanitizeAttribute,ke,kt),kr=kt.attrValue,$e&&(Es==="id"||Es==="name")&&(bt(tn,ke),kr=Ke+kr),ne&&hi(/((--!?|])>)|<\/(style|title)/i,kr)){bt(tn,ke);continue}if(kt.forceKeepAttr)continue;if(!kt.keepAttr){bt(tn,ke);continue}if(!X&&hi(/\/>/i,kr)){bt(tn,ke);continue}K&&Ty([M,P,A],Dt=>{kr=Jg(kr,Dt," ")});const Ft=et(ke.nodeName);if(!Br(Ft,Es,kr)){bt(tn,ke);continue}if(S&&typeof p=="object"&&typeof p.getAttributeType=="function"&&!jr)switch(p.getAttributeType(Ft,Es)){case"TrustedHTML":{kr=S.createHTML(kr);break}case"TrustedScriptURL":{kr=S.createScriptURL(kr);break}}if(kr!==wa)try{jr?ke.setAttributeNS(jr,tn,kr):ke.setAttribute(tn,kr),Nt(ke)?ot(ke):n9(e.removed)}catch{bt(tn,ke)}}zt(R.afterSanitizeAttributes,ke,null)},Nr=function Ot(ke){let st=null;const kt=ht(ke);for(zt(R.beforeSanitizeShadowDOM,ke,null);st=kt.nextNode();)zt(R.uponSanitizeShadowNode,st,null),Gr(st),ar(st),st.content instanceof i&&Ot(st.content);zt(R.afterSanitizeShadowDOM,ke,null)};return e.sanitize=function(Ot){let ke=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},st=null,kt=null,gr=null,en=null;if(ye=!Ot,ye&&(Ot="<!-->"),typeof Ot!="string"&&!pr(Ot))if(typeof Ot.toString=="function"){if(Ot=Ot.toString(),typeof Ot!="string")throw e0("dirty is not a string, aborting")}else throw e0("toString is not a function");if(!e.isSupported)return Ot;if(_e||gt(ke),e.removed=[],typeof Ot=="string"&&(Oe=!1),Oe){if(Ot.nodeName){const ea=et(Ot.nodeName);if(!U[ea]||ee[ea])throw e0("root node is forbidden and cannot be sanitized in-place")}}else if(Ot instanceof o)st=Tt("<!---->"),kt=st.ownerDocument.importNode(Ot,!0),kt.nodeType===r0.element&&kt.nodeName==="BODY"||kt.nodeName==="HTML"?st=kt:st.appendChild(kt);else{if(!Le&&!K&&!j&&Ot.indexOf("<")===-1)return S&&ze?S.createHTML(Ot):Ot;if(st=Tt(Ot),!st)return Le?null:ze?T:""}st&&ae&&ot(st.firstChild);const tn=ht(Oe?Ot:st);for(;gr=tn.nextNode();)Gr(gr),ar(gr),gr.content instanceof i&&Nr(gr.content);if(Oe)return Ot;if(Le){if(V)for(en=w.call(st.ownerDocument);st.firstChild;)en.appendChild(st.firstChild);else en=st;return(z.shadowroot||z.shadowrootmode)&&(en=I.call(n,en,!0)),en}let jr=j?st.outerHTML:st.innerHTML;return j&&U["!doctype"]&&st.ownerDocument&&st.ownerDocument.doctype&&st.ownerDocument.doctype.name&&hi(u9,st.ownerDocument.doctype.name)&&(jr="<!DOCTYPE "+st.ownerDocument.doctype.name+`>
|
|
383
382
|
`+jr),K&&Ty([M,P,A],ea=>{jr=Jg(jr,ea," ")}),S&&ze?S.createHTML(jr):jr},e.setConfig=function(){let Ot=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};gt(Ot),_e=!0},e.clearConfig=function(){Xe=null,_e=!1},e.isValidAttribute=function(Ot,ke,st){Xe||gt({});const kt=et(Ot),gr=et(ke);return Br(kt,gr,st)},e.addHook=function(Ot,ke){typeof ke=="function"&&Zg(R[Ot],ke)},e.removeHook=function(Ot,ke){if(ke!==void 0){const st=Aye(R[Ot],ke);return st===-1?void 0:Rye(R[Ot],st,1)[0]}return n9(R[Ot])},e.removeHooks=function(Ot){R[Ot]=[]},e.removeAllHooks=function(){R=h9()},e}var Ih=f9(),p9=/^-{3}\s*[\n\r](.*?)[\n\r]-{3}\s*[\n\r]+/s,n0=/%{2}{\s*(?:(\w+)\s*:|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,Hye=/\s*%%.*\n/gm,g9=(vp=class extends Error{constructor(e){super(e),this.name="UnknownDiagramError"}},b(vp,"UnknownDiagramError"),vp),Uu={},lC=b(function(t,e){t=t.replace(p9,"").replace(n0,"").replace(Hye,`
|
|
384
383
|
`);for(const[r,{detector:n}]of Object.entries(Uu))if(n(t,e))return r;throw new g9(`No diagram type detected matching given configuration for text: ${t}`)},"detectType"),cC=b((...t)=>{for(const{id:e,detector:r,loader:n}of t)m9(e,r,n)},"registerLazyLoadedDiagrams"),m9=b((t,e,r)=>{Uu[t]&&oe.warn(`Detector with key ${t} already exists. Overwriting.`),Uu[t]={detector:e,loader:r},oe.debug(`Detector with key ${t} added${r?" with loader":""}`)},"addDetector"),Vye=b(t=>Uu[t].loader,"getDiagramLoader"),uC=b((t,e,{depth:r=2,clobber:n=!1}={})=>{const a={depth:r,clobber:n};return Array.isArray(e)&&!Array.isArray(t)?(e.forEach(i=>uC(t,i,a)),t):Array.isArray(e)&&Array.isArray(t)?(e.forEach(i=>{t.includes(i)||t.push(i)}),t):t===void 0||r<=0?t!=null&&typeof t=="object"&&typeof e=="object"?Object.assign(t,e):e:(e!==void 0&&typeof t=="object"&&typeof e=="object"&&Object.keys(e).forEach(i=>{typeof e[i]=="object"&&(t[i]===void 0||typeof t[i]=="object")?(t[i]===void 0&&(t[i]=Array.isArray(e[i])?[]:{}),t[i]=uC(t[i],e[i],{depth:r-1,clobber:n})):(n||typeof t[i]!="object"&&typeof e[i]!="object")&&(t[i]=e[i])}),t)},"assignWithDepth"),Bn=uC,Ay="#ffffff",Ry="#f2f2f2",pi=b((t,e)=>e?Ye(t,{s:-40,l:10}):Ye(t,{s:-40,l:-10}),"mkBorder"),qye=(Ep=class{constructor(){this.background="#f4f4f4",this.primaryColor="#fff4dd",this.noteBkgColor="#fff5ad",this.noteTextColor="#333",this.THEME_COLOR_LIMIT=12,this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px"}updateColors(){var r,n,a,i,s,o,l,u,d,h,f,p,g,m,y,_,v,E,S,T,x;if(this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#333"),this.secondaryColor=this.secondaryColor||Ye(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||Ye(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||pi(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||pi(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||pi(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||pi(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#333",this.secondaryTextColor=this.secondaryTextColor||It(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||It(this.tertiaryColor),this.lineColor=this.lineColor||It(this.background),this.arrowheadColor=this.arrowheadColor||It(this.background),this.textColor=this.textColor||this.primaryTextColor,this.border2=this.border2||this.tertiaryBorderColor,this.nodeBkg=this.nodeBkg||this.primaryColor,this.mainBkg=this.mainBkg||this.primaryColor,this.nodeBorder=this.nodeBorder||this.primaryBorderColor,this.clusterBkg=this.clusterBkg||this.tertiaryColor,this.clusterBorder=this.clusterBorder||this.tertiaryBorderColor,this.defaultLinkColor=this.defaultLinkColor||this.lineColor,this.titleColor=this.titleColor||this.tertiaryTextColor,this.edgeLabelBackground=this.edgeLabelBackground||(this.darkMode?Kt(this.secondaryColor,30):this.secondaryColor),this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.actorBorder=this.actorBorder||this.primaryBorderColor,this.actorBkg=this.actorBkg||this.mainBkg,this.actorTextColor=this.actorTextColor||this.primaryTextColor,this.actorLineColor=this.actorLineColor||this.actorBorder,this.labelBoxBkgColor=this.labelBoxBkgColor||this.actorBkg,this.signalColor=this.signalColor||this.textColor,this.signalTextColor=this.signalTextColor||this.textColor,this.labelBoxBorderColor=this.labelBoxBorderColor||this.actorBorder,this.labelTextColor=this.labelTextColor||this.actorTextColor,this.loopTextColor=this.loopTextColor||this.actorTextColor,this.activationBorderColor=this.activationBorderColor||Kt(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||It(this.lineColor),this.sectionBkgColor=this.sectionBkgColor||this.tertiaryColor,this.altSectionBkgColor=this.altSectionBkgColor||"white",this.sectionBkgColor=this.sectionBkgColor||this.secondaryColor,this.sectionBkgColor2=this.sectionBkgColor2||this.primaryColor,this.excludeBkgColor=this.excludeBkgColor||"#eeeeee",this.taskBorderColor=this.taskBorderColor||this.primaryBorderColor,this.taskBkgColor=this.taskBkgColor||this.primaryColor,this.activeTaskBorderColor=this.activeTaskBorderColor||this.primaryColor,this.activeTaskBkgColor=this.activeTaskBkgColor||Ut(this.primaryColor,23),this.gridColor=this.gridColor||"lightgrey",this.doneTaskBkgColor=this.doneTaskBkgColor||"lightgrey",this.doneTaskBorderColor=this.doneTaskBorderColor||"grey",this.critBorderColor=this.critBorderColor||"#ff8888",this.critBkgColor=this.critBkgColor||"red",this.todayLineColor=this.todayLineColor||"red",this.vertLineColor=this.vertLineColor||"navy",this.taskTextColor=this.taskTextColor||this.textColor,this.taskTextOutsideColor=this.taskTextOutsideColor||this.textColor,this.taskTextLightColor=this.taskTextLightColor||this.textColor,this.taskTextColor=this.taskTextColor||this.primaryTextColor,this.taskTextDarkColor=this.taskTextDarkColor||this.textColor,this.taskTextClickableColor=this.taskTextClickableColor||"#003163",this.personBorder=this.personBorder||this.primaryBorderColor,this.personBkg=this.personBkg||this.mainBkg,this.darkMode?(this.rowOdd=this.rowOdd||Kt(this.mainBkg,5)||"#ffffff",this.rowEven=this.rowEven||Kt(this.mainBkg,10)):(this.rowOdd=this.rowOdd||Ut(this.mainBkg,75)||"#ffffff",this.rowEven=this.rowEven||Ut(this.mainBkg,5)),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||this.tertiaryColor,this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.specialStateColor=this.lineColor,this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||Ye(this.primaryColor,{h:30}),this.cScale4=this.cScale4||Ye(this.primaryColor,{h:60}),this.cScale5=this.cScale5||Ye(this.primaryColor,{h:90}),this.cScale6=this.cScale6||Ye(this.primaryColor,{h:120}),this.cScale7=this.cScale7||Ye(this.primaryColor,{h:150}),this.cScale8=this.cScale8||Ye(this.primaryColor,{h:210,l:150}),this.cScale9=this.cScale9||Ye(this.primaryColor,{h:270}),this.cScale10=this.cScale10||Ye(this.primaryColor,{h:300}),this.cScale11=this.cScale11||Ye(this.primaryColor,{h:330}),this.darkMode)for(let C=0;C<this.THEME_COLOR_LIMIT;C++)this["cScale"+C]=Kt(this["cScale"+C],75);else for(let C=0;C<this.THEME_COLOR_LIMIT;C++)this["cScale"+C]=Kt(this["cScale"+C],25);for(let C=0;C<this.THEME_COLOR_LIMIT;C++)this["cScaleInv"+C]=this["cScaleInv"+C]||It(this["cScale"+C]);for(let C=0;C<this.THEME_COLOR_LIMIT;C++)this.darkMode?this["cScalePeer"+C]=this["cScalePeer"+C]||Ut(this["cScale"+C],10):this["cScalePeer"+C]=this["cScalePeer"+C]||Kt(this["cScale"+C],10);this.scaleLabelColor=this.scaleLabelColor||this.labelTextColor;for(let C=0;C<this.THEME_COLOR_LIMIT;C++)this["cScaleLabel"+C]=this["cScaleLabel"+C]||this.scaleLabelColor;const e=this.darkMode?-4:-1;for(let C=0;C<5;C++)this["surface"+C]=this["surface"+C]||Ye(this.mainBkg,{h:180,s:-15,l:e*(5+C*3)}),this["surfacePeer"+C]=this["surfacePeer"+C]||Ye(this.mainBkg,{h:180,s:-15,l:e*(8+C*3)});this.classText=this.classText||this.textColor,this.fillType0=this.fillType0||this.primaryColor,this.fillType1=this.fillType1||this.secondaryColor,this.fillType2=this.fillType2||Ye(this.primaryColor,{h:64}),this.fillType3=this.fillType3||Ye(this.secondaryColor,{h:64}),this.fillType4=this.fillType4||Ye(this.primaryColor,{h:-64}),this.fillType5=this.fillType5||Ye(this.secondaryColor,{h:-64}),this.fillType6=this.fillType6||Ye(this.primaryColor,{h:128}),this.fillType7=this.fillType7||Ye(this.secondaryColor,{h:128}),this.pie1=this.pie1||this.primaryColor,this.pie2=this.pie2||this.secondaryColor,this.pie3=this.pie3||this.tertiaryColor,this.pie4=this.pie4||Ye(this.primaryColor,{l:-10}),this.pie5=this.pie5||Ye(this.secondaryColor,{l:-10}),this.pie6=this.pie6||Ye(this.tertiaryColor,{l:-10}),this.pie7=this.pie7||Ye(this.primaryColor,{h:60,l:-10}),this.pie8=this.pie8||Ye(this.primaryColor,{h:-60,l:-10}),this.pie9=this.pie9||Ye(this.primaryColor,{h:120,l:0}),this.pie10=this.pie10||Ye(this.primaryColor,{h:60,l:-20}),this.pie11=this.pie11||Ye(this.primaryColor,{h:-60,l:-20}),this.pie12=this.pie12||Ye(this.primaryColor,{h:120,l:-10}),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.radar={axisColor:((r=this.radar)==null?void 0:r.axisColor)||this.lineColor,axisStrokeWidth:((n=this.radar)==null?void 0:n.axisStrokeWidth)||2,axisLabelFontSize:((a=this.radar)==null?void 0:a.axisLabelFontSize)||12,curveOpacity:((i=this.radar)==null?void 0:i.curveOpacity)||.5,curveStrokeWidth:((s=this.radar)==null?void 0:s.curveStrokeWidth)||2,graticuleColor:((o=this.radar)==null?void 0:o.graticuleColor)||"#DEDEDE",graticuleStrokeWidth:((l=this.radar)==null?void 0:l.graticuleStrokeWidth)||1,graticuleOpacity:((u=this.radar)==null?void 0:u.graticuleOpacity)||.3,legendBoxSize:((d=this.radar)==null?void 0:d.legendBoxSize)||12,legendFontSize:((h=this.radar)==null?void 0:h.legendFontSize)||12},this.archEdgeColor=this.archEdgeColor||"#777",this.archEdgeArrowColor=this.archEdgeArrowColor||"#777",this.archEdgeWidth=this.archEdgeWidth||"3",this.archGroupBorderColor=this.archGroupBorderColor||"#000",this.archGroupBorderWidth=this.archGroupBorderWidth||"2px",this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||Ye(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||Ye(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||Ye(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||Ye(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||Ye(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||Ye(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||xc(this.quadrant1Fill)?Ut(this.quadrant1Fill):Kt(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:((f=this.xyChart)==null?void 0:f.backgroundColor)||this.background,titleColor:((p=this.xyChart)==null?void 0:p.titleColor)||this.primaryTextColor,xAxisTitleColor:((g=this.xyChart)==null?void 0:g.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((m=this.xyChart)==null?void 0:m.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((y=this.xyChart)==null?void 0:y.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((_=this.xyChart)==null?void 0:_.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((v=this.xyChart)==null?void 0:v.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((E=this.xyChart)==null?void 0:E.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((S=this.xyChart)==null?void 0:S.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((T=this.xyChart)==null?void 0:T.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((x=this.xyChart)==null?void 0:x.plotColorPalette)||"#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"},this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||(this.darkMode?Kt(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=this.git0||this.primaryColor,this.git1=this.git1||this.secondaryColor,this.git2=this.git2||this.tertiaryColor,this.git3=this.git3||Ye(this.primaryColor,{h:-30}),this.git4=this.git4||Ye(this.primaryColor,{h:-60}),this.git5=this.git5||Ye(this.primaryColor,{h:-90}),this.git6=this.git6||Ye(this.primaryColor,{h:60}),this.git7=this.git7||Ye(this.primaryColor,{h:120}),this.darkMode?(this.git0=Ut(this.git0,25),this.git1=Ut(this.git1,25),this.git2=Ut(this.git2,25),this.git3=Ut(this.git3,25),this.git4=Ut(this.git4,25),this.git5=Ut(this.git5,25),this.git6=Ut(this.git6,25),this.git7=Ut(this.git7,25)):(this.git0=Kt(this.git0,25),this.git1=Kt(this.git1,25),this.git2=Kt(this.git2,25),this.git3=Kt(this.git3,25),this.git4=Kt(this.git4,25),this.git5=Kt(this.git5,25),this.git6=Kt(this.git6,25),this.git7=Kt(this.git7,25)),this.gitInv0=this.gitInv0||It(this.git0),this.gitInv1=this.gitInv1||It(this.git1),this.gitInv2=this.gitInv2||It(this.git2),this.gitInv3=this.gitInv3||It(this.git3),this.gitInv4=this.gitInv4||It(this.git4),this.gitInv5=this.gitInv5||It(this.git5),this.gitInv6=this.gitInv6||It(this.git6),this.gitInv7=this.gitInv7||It(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||Ay,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||Ry}calculate(e){if(typeof e!="object"){this.updateColors();return}const r=Object.keys(e);r.forEach(n=>{this[n]=e[n]}),this.updateColors(),r.forEach(n=>{this[n]=e[n]})}},b(Ep,"Theme"),Ep),Wye=b(t=>{const e=new qye;return e.calculate(t),e},"getThemeVariables"),Kye=(bp=class{constructor(){this.background="#333",this.primaryColor="#1f2020",this.secondaryColor=Ut(this.primaryColor,16),this.tertiaryColor=Ye(this.primaryColor,{h:-160}),this.primaryBorderColor=It(this.background),this.secondaryBorderColor=pi(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=pi(this.tertiaryColor,this.darkMode),this.primaryTextColor=It(this.primaryColor),this.secondaryTextColor=It(this.secondaryColor),this.tertiaryTextColor=It(this.tertiaryColor),this.lineColor=It(this.background),this.textColor=It(this.background),this.mainBkg="#1f2020",this.secondBkg="calculated",this.mainContrastColor="lightgrey",this.darkTextColor=Ut(It("#323D47"),10),this.lineColor="calculated",this.border1="#ccc",this.border2=Tc(255,255,255,.25),this.arrowheadColor="calculated",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.labelBackground="#181818",this.textColor="#ccc",this.THEME_COLOR_LIMIT=12,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="#F9FFFE",this.edgeLabelBackground="calculated",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="calculated",this.actorLineColor="calculated",this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="calculated",this.activationBkgColor="calculated",this.sequenceNumberColor="black",this.sectionBkgColor=Kt("#EAE8D9",30),this.altSectionBkgColor="calculated",this.sectionBkgColor2="#EAE8D9",this.excludeBkgColor=Kt(this.sectionBkgColor,10),this.taskBorderColor=Tc(255,255,255,70),this.taskBkgColor="calculated",this.taskTextColor="calculated",this.taskTextLightColor="calculated",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor=Tc(255,255,255,50),this.activeTaskBkgColor="#81B1DB",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="grey",this.critBorderColor="#E83737",this.critBkgColor="#E83737",this.taskTextDarkColor="calculated",this.todayLineColor="#DB5757",this.vertLineColor="#00BFFF",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.rowOdd=this.rowOdd||Ut(this.mainBkg,5)||"#ffffff",this.rowEven=this.rowEven||Kt(this.mainBkg,10),this.labelColor="calculated",this.errorBkgColor="#a44141",this.errorTextColor="#ddd"}updateColors(){var e,r,n,a,i,s,o,l,u,d,h,f,p,g,m,y,_,v,E,S,T;this.secondBkg=Ut(this.mainBkg,16),this.lineColor=this.mainContrastColor,this.arrowheadColor=this.mainContrastColor,this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.edgeLabelBackground=Ut(this.labelBackground,25),this.actorBorder=this.border1,this.actorBkg=this.mainBkg,this.actorTextColor=this.mainContrastColor,this.actorLineColor=this.actorBorder,this.signalColor=this.mainContrastColor,this.signalTextColor=this.mainContrastColor,this.labelBoxBkgColor=this.actorBkg,this.labelBoxBorderColor=this.actorBorder,this.labelTextColor=this.mainContrastColor,this.loopTextColor=this.mainContrastColor,this.noteBorderColor=this.secondaryBorderColor,this.noteBkgColor=this.secondBkg,this.noteTextColor=this.secondaryTextColor,this.activationBorderColor=this.border1,this.activationBkgColor=this.secondBkg,this.altSectionBkgColor=this.background,this.taskBkgColor=Ut(this.mainBkg,23),this.taskTextColor=this.darkTextColor,this.taskTextLightColor=this.mainContrastColor,this.taskTextOutsideColor=this.taskTextLightColor,this.gridColor=this.mainContrastColor,this.doneTaskBkgColor=this.mainContrastColor,this.taskTextDarkColor=this.darkTextColor,this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,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||"#555",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.primaryBorderColor,this.specialStateColor="#f4f4f4",this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=Ye(this.primaryColor,{h:64}),this.fillType3=Ye(this.secondaryColor,{h:64}),this.fillType4=Ye(this.primaryColor,{h:-64}),this.fillType5=Ye(this.secondaryColor,{h:-64}),this.fillType6=Ye(this.primaryColor,{h:128}),this.fillType7=Ye(this.secondaryColor,{h:128}),this.cScale1=this.cScale1||"#0b0000",this.cScale2=this.cScale2||"#4d1037",this.cScale3=this.cScale3||"#3f5258",this.cScale4=this.cScale4||"#4f2f1b",this.cScale5=this.cScale5||"#6e0a0a",this.cScale6=this.cScale6||"#3b0048",this.cScale7=this.cScale7||"#995a01",this.cScale8=this.cScale8||"#154706",this.cScale9=this.cScale9||"#161722",this.cScale10=this.cScale10||"#00296f",this.cScale11=this.cScale11||"#01629c",this.cScale12=this.cScale12||"#010029",this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||Ye(this.primaryColor,{h:30}),this.cScale4=this.cScale4||Ye(this.primaryColor,{h:60}),this.cScale5=this.cScale5||Ye(this.primaryColor,{h:90}),this.cScale6=this.cScale6||Ye(this.primaryColor,{h:120}),this.cScale7=this.cScale7||Ye(this.primaryColor,{h:150}),this.cScale8=this.cScale8||Ye(this.primaryColor,{h:210}),this.cScale9=this.cScale9||Ye(this.primaryColor,{h:270}),this.cScale10=this.cScale10||Ye(this.primaryColor,{h:300}),this.cScale11=this.cScale11||Ye(this.primaryColor,{h:330});for(let x=0;x<this.THEME_COLOR_LIMIT;x++)this["cScaleInv"+x]=this["cScaleInv"+x]||It(this["cScale"+x]);for(let x=0;x<this.THEME_COLOR_LIMIT;x++)this["cScalePeer"+x]=this["cScalePeer"+x]||Ut(this["cScale"+x],10);for(let x=0;x<5;x++)this["surface"+x]=this["surface"+x]||Ye(this.mainBkg,{h:30,s:-30,l:-(-10+x*4)}),this["surfacePeer"+x]=this["surfacePeer"+x]||Ye(this.mainBkg,{h:30,s:-30,l:-(-7+x*4)});this.scaleLabelColor=this.scaleLabelColor||(this.darkMode?"black":this.labelTextColor);for(let x=0;x<this.THEME_COLOR_LIMIT;x++)this["cScaleLabel"+x]=this["cScaleLabel"+x]||this.scaleLabelColor;for(let x=0;x<this.THEME_COLOR_LIMIT;x++)this["pie"+x]=this["cScale"+x];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||Ye(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||Ye(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||Ye(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||Ye(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||Ye(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||Ye(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||xc(this.quadrant1Fill)?Ut(this.quadrant1Fill):Kt(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:((e=this.xyChart)==null?void 0:e.backgroundColor)||this.background,titleColor:((r=this.xyChart)==null?void 0:r.titleColor)||this.primaryTextColor,xAxisTitleColor:((n=this.xyChart)==null?void 0:n.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((a=this.xyChart)==null?void 0:a.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((i=this.xyChart)==null?void 0:i.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((s=this.xyChart)==null?void 0:s.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((o=this.xyChart)==null?void 0:o.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((l=this.xyChart)==null?void 0:l.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((u=this.xyChart)==null?void 0:u.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((d=this.xyChart)==null?void 0:d.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((h=this.xyChart)==null?void 0:h.plotColorPalette)||"#3498db,#2ecc71,#e74c3c,#f1c40f,#bdc3c7,#ffffff,#34495e,#9b59b6,#1abc9c,#e67e22"},this.packet={startByteColor:this.primaryTextColor,endByteColor:this.primaryTextColor,labelColor:this.primaryTextColor,titleColor:this.primaryTextColor,blockStrokeColor:this.primaryTextColor,blockFillColor:this.background},this.radar={axisColor:((f=this.radar)==null?void 0:f.axisColor)||this.lineColor,axisStrokeWidth:((p=this.radar)==null?void 0:p.axisStrokeWidth)||2,axisLabelFontSize:((g=this.radar)==null?void 0:g.axisLabelFontSize)||12,curveOpacity:((m=this.radar)==null?void 0:m.curveOpacity)||.5,curveStrokeWidth:((y=this.radar)==null?void 0:y.curveStrokeWidth)||2,graticuleColor:((_=this.radar)==null?void 0:_.graticuleColor)||"#DEDEDE",graticuleStrokeWidth:((v=this.radar)==null?void 0:v.graticuleStrokeWidth)||1,graticuleOpacity:((E=this.radar)==null?void 0:E.graticuleOpacity)||.3,legendBoxSize:((S=this.radar)==null?void 0:S.legendBoxSize)||12,legendFontSize:((T=this.radar)==null?void 0:T.legendFontSize)||12},this.classText=this.primaryTextColor,this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||(this.darkMode?Kt(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=Ut(this.secondaryColor,20),this.git1=Ut(this.pie2||this.secondaryColor,20),this.git2=Ut(this.pie3||this.tertiaryColor,20),this.git3=Ut(this.pie4||Ye(this.primaryColor,{h:-30}),20),this.git4=Ut(this.pie5||Ye(this.primaryColor,{h:-60}),20),this.git5=Ut(this.pie6||Ye(this.primaryColor,{h:-90}),10),this.git6=Ut(this.pie7||Ye(this.primaryColor,{h:60}),10),this.git7=Ut(this.pie8||Ye(this.primaryColor,{h:120}),20),this.gitInv0=this.gitInv0||It(this.git0),this.gitInv1=this.gitInv1||It(this.git1),this.gitInv2=this.gitInv2||It(this.git2),this.gitInv3=this.gitInv3||It(this.git3),this.gitInv4=this.gitInv4||It(this.git4),this.gitInv5=this.gitInv5||It(this.git5),this.gitInv6=this.gitInv6||It(this.git6),this.gitInv7=this.gitInv7||It(this.git7),this.gitBranchLabel0=this.gitBranchLabel0||It(this.labelTextColor),this.gitBranchLabel1=this.gitBranchLabel1||this.labelTextColor,this.gitBranchLabel2=this.gitBranchLabel2||this.labelTextColor,this.gitBranchLabel3=this.gitBranchLabel3||It(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||Ut(this.background,12),this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||Ut(this.background,2),this.nodeBorder=this.nodeBorder||"#999"}calculate(e){if(typeof e!="object"){this.updateColors();return}const r=Object.keys(e);r.forEach(n=>{this[n]=e[n]}),this.updateColors(),r.forEach(n=>{this[n]=e[n]})}},b(bp,"Theme"),bp),Xye=b(t=>{const e=new Kye;return e.calculate(t),e},"getThemeVariables"),Qye=(Sp=class{constructor(){this.background="#f4f4f4",this.primaryColor="#ECECFF",this.secondaryColor=Ye(this.primaryColor,{h:120}),this.secondaryColor="#ffffde",this.tertiaryColor=Ye(this.primaryColor,{h:-160}),this.primaryBorderColor=pi(this.primaryColor,this.darkMode),this.secondaryBorderColor=pi(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=pi(this.tertiaryColor,this.darkMode),this.primaryTextColor=It(this.primaryColor),this.secondaryTextColor=It(this.secondaryColor),this.tertiaryTextColor=It(this.tertiaryColor),this.lineColor=It(this.background),this.textColor=It(this.background),this.background="white",this.mainBkg="#ECECFF",this.secondBkg="#ffffde",this.lineColor="#333333",this.border1="#9370DB",this.border2="#aaaa33",this.arrowheadColor="#333333",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.labelBackground="rgba(232,232,232, 0.8)",this.textColor="#333",this.THEME_COLOR_LIMIT=12,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="calculated",this.edgeLabelBackground="calculated",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="black",this.actorLineColor="calculated",this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.sectionBkgColor="calculated",this.altSectionBkgColor="calculated",this.sectionBkgColor2="calculated",this.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="calculated",this.taskTextLightColor="calculated",this.taskTextColor=this.taskTextLightColor,this.taskTextDarkColor="calculated",this.taskTextOutsideColor=this.taskTextDarkColor,this.taskTextClickableColor="calculated",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="calculated",this.critBorderColor="calculated",this.critBkgColor="calculated",this.todayLineColor="calculated",this.vertLineColor="calculated",this.sectionBkgColor=Tc(102,102,255,.49),this.altSectionBkgColor="white",this.sectionBkgColor2="#fff400",this.taskBorderColor="#534fbc",this.taskBkgColor="#8a90dd",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="black",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="#534fbc",this.activeTaskBkgColor="#bfc7ff",this.gridColor="lightgrey",this.doneTaskBkgColor="lightgrey",this.doneTaskBorderColor="grey",this.critBorderColor="#ff8888",this.critBkgColor="red",this.todayLineColor="red",this.vertLineColor="navy",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.rowOdd="calculated",this.rowEven="calculated",this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222",this.updateColors()}updateColors(){var e,r,n,a,i,s,o,l,u,d,h,f,p,g,m,y,_,v,E,S,T;this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||Ye(this.primaryColor,{h:30}),this.cScale4=this.cScale4||Ye(this.primaryColor,{h:60}),this.cScale5=this.cScale5||Ye(this.primaryColor,{h:90}),this.cScale6=this.cScale6||Ye(this.primaryColor,{h:120}),this.cScale7=this.cScale7||Ye(this.primaryColor,{h:150}),this.cScale8=this.cScale8||Ye(this.primaryColor,{h:210}),this.cScale9=this.cScale9||Ye(this.primaryColor,{h:270}),this.cScale10=this.cScale10||Ye(this.primaryColor,{h:300}),this.cScale11=this.cScale11||Ye(this.primaryColor,{h:330}),this.cScalePeer1=this.cScalePeer1||Kt(this.secondaryColor,45),this.cScalePeer2=this.cScalePeer2||Kt(this.tertiaryColor,40);for(let x=0;x<this.THEME_COLOR_LIMIT;x++)this["cScale"+x]=Kt(this["cScale"+x],10),this["cScalePeer"+x]=this["cScalePeer"+x]||Kt(this["cScale"+x],25);for(let x=0;x<this.THEME_COLOR_LIMIT;x++)this["cScaleInv"+x]=this["cScaleInv"+x]||Ye(this["cScale"+x],{h:180});for(let x=0;x<5;x++)this["surface"+x]=this["surface"+x]||Ye(this.mainBkg,{h:30,l:-(5+x*5)}),this["surfacePeer"+x]=this["surfacePeer"+x]||Ye(this.mainBkg,{h:30,l:-(7+x*5)});if(this.scaleLabelColor=this.scaleLabelColor!=="calculated"&&this.scaleLabelColor?this.scaleLabelColor:this.labelTextColor,this.labelTextColor!=="calculated"){this.cScaleLabel0=this.cScaleLabel0||It(this.labelTextColor),this.cScaleLabel3=this.cScaleLabel3||It(this.labelTextColor);for(let x=0;x<this.THEME_COLOR_LIMIT;x++)this["cScaleLabel"+x]=this["cScaleLabel"+x]||this.labelTextColor}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=Ut(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||Ut(this.primaryColor,75)||"#ffffff",this.rowEven=this.rowEven||Ut(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=Ye(this.primaryColor,{h:64}),this.fillType3=Ye(this.secondaryColor,{h:64}),this.fillType4=Ye(this.primaryColor,{h:-64}),this.fillType5=Ye(this.secondaryColor,{h:-64}),this.fillType6=Ye(this.primaryColor,{h:128}),this.fillType7=Ye(this.secondaryColor,{h:128}),this.pie1=this.pie1||this.primaryColor,this.pie2=this.pie2||this.secondaryColor,this.pie3=this.pie3||Ye(this.tertiaryColor,{l:-40}),this.pie4=this.pie4||Ye(this.primaryColor,{l:-10}),this.pie5=this.pie5||Ye(this.secondaryColor,{l:-30}),this.pie6=this.pie6||Ye(this.tertiaryColor,{l:-20}),this.pie7=this.pie7||Ye(this.primaryColor,{h:60,l:-20}),this.pie8=this.pie8||Ye(this.primaryColor,{h:-60,l:-40}),this.pie9=this.pie9||Ye(this.primaryColor,{h:120,l:-40}),this.pie10=this.pie10||Ye(this.primaryColor,{h:60,l:-40}),this.pie11=this.pie11||Ye(this.primaryColor,{h:-90,l:-40}),this.pie12=this.pie12||Ye(this.primaryColor,{h:120,l:-30}),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||Ye(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||Ye(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||Ye(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||Ye(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||Ye(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||Ye(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||xc(this.quadrant1Fill)?Ut(this.quadrant1Fill):Kt(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.radar={axisColor:((e=this.radar)==null?void 0:e.axisColor)||this.lineColor,axisStrokeWidth:((r=this.radar)==null?void 0:r.axisStrokeWidth)||2,axisLabelFontSize:((n=this.radar)==null?void 0:n.axisLabelFontSize)||12,curveOpacity:((a=this.radar)==null?void 0:a.curveOpacity)||.5,curveStrokeWidth:((i=this.radar)==null?void 0:i.curveStrokeWidth)||2,graticuleColor:((s=this.radar)==null?void 0:s.graticuleColor)||"#DEDEDE",graticuleStrokeWidth:((o=this.radar)==null?void 0:o.graticuleStrokeWidth)||1,graticuleOpacity:((l=this.radar)==null?void 0:l.graticuleOpacity)||.3,legendBoxSize:((u=this.radar)==null?void 0:u.legendBoxSize)||12,legendFontSize:((d=this.radar)==null?void 0:d.legendFontSize)||12},this.xyChart={backgroundColor:((h=this.xyChart)==null?void 0:h.backgroundColor)||this.background,titleColor:((f=this.xyChart)==null?void 0:f.titleColor)||this.primaryTextColor,xAxisTitleColor:((p=this.xyChart)==null?void 0:p.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((g=this.xyChart)==null?void 0:g.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((m=this.xyChart)==null?void 0:m.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((y=this.xyChart)==null?void 0:y.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((_=this.xyChart)==null?void 0:_.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((v=this.xyChart)==null?void 0:v.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((E=this.xyChart)==null?void 0:E.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((S=this.xyChart)==null?void 0:S.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((T=this.xyChart)==null?void 0:T.plotColorPalette)||"#ECECFF,#8493A6,#FFC3A0,#DCDDE1,#B8E994,#D1A36F,#C3CDE6,#FFB6C1,#496078,#F8F3E3"},this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||this.labelBackground,this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=this.git0||this.primaryColor,this.git1=this.git1||this.secondaryColor,this.git2=this.git2||this.tertiaryColor,this.git3=this.git3||Ye(this.primaryColor,{h:-30}),this.git4=this.git4||Ye(this.primaryColor,{h:-60}),this.git5=this.git5||Ye(this.primaryColor,{h:-90}),this.git6=this.git6||Ye(this.primaryColor,{h:60}),this.git7=this.git7||Ye(this.primaryColor,{h:120}),this.darkMode?(this.git0=Ut(this.git0,25),this.git1=Ut(this.git1,25),this.git2=Ut(this.git2,25),this.git3=Ut(this.git3,25),this.git4=Ut(this.git4,25),this.git5=Ut(this.git5,25),this.git6=Ut(this.git6,25),this.git7=Ut(this.git7,25)):(this.git0=Kt(this.git0,25),this.git1=Kt(this.git1,25),this.git2=Kt(this.git2,25),this.git3=Kt(this.git3,25),this.git4=Kt(this.git4,25),this.git5=Kt(this.git5,25),this.git6=Kt(this.git6,25),this.git7=Kt(this.git7,25)),this.gitInv0=this.gitInv0||Kt(It(this.git0),25),this.gitInv1=this.gitInv1||It(this.git1),this.gitInv2=this.gitInv2||It(this.git2),this.gitInv3=this.gitInv3||It(this.git3),this.gitInv4=this.gitInv4||It(this.git4),this.gitInv5=this.gitInv5||It(this.git5),this.gitInv6=this.gitInv6||It(this.git6),this.gitInv7=this.gitInv7||It(this.git7),this.gitBranchLabel0=this.gitBranchLabel0||It(this.labelTextColor),this.gitBranchLabel1=this.gitBranchLabel1||this.labelTextColor,this.gitBranchLabel2=this.gitBranchLabel2||this.labelTextColor,this.gitBranchLabel3=this.gitBranchLabel3||It(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||Ay,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||Ry}calculate(e){if(Object.keys(this).forEach(n=>{this[n]==="calculated"&&(this[n]=void 0)}),typeof e!="object"){this.updateColors();return}const r=Object.keys(e);r.forEach(n=>{this[n]=e[n]}),this.updateColors(),r.forEach(n=>{this[n]=e[n]})}},b(Sp,"Theme"),Sp),wy=b(t=>{const e=new Qye;return e.calculate(t),e},"getThemeVariables"),jye=(Tp=class{constructor(){this.background="#f4f4f4",this.primaryColor="#cde498",this.secondaryColor="#cdffb2",this.background="white",this.mainBkg="#cde498",this.secondBkg="#cdffb2",this.lineColor="green",this.border1="#13540c",this.border2="#6eaa49",this.arrowheadColor="green",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.tertiaryColor=Ut("#cde498",10),this.primaryBorderColor=pi(this.primaryColor,this.darkMode),this.secondaryBorderColor=pi(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=pi(this.tertiaryColor,this.darkMode),this.primaryTextColor=It(this.primaryColor),this.secondaryTextColor=It(this.secondaryColor),this.tertiaryTextColor=It(this.primaryColor),this.lineColor=It(this.background),this.textColor=It(this.background),this.THEME_COLOR_LIMIT=12,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="#333",this.edgeLabelBackground="#e8e8e8",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="black",this.actorLineColor="calculated",this.signalColor="#333",this.signalTextColor="#333",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="#326932",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.sectionBkgColor="#6eaa49",this.altSectionBkgColor="white",this.sectionBkgColor2="#6eaa49",this.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="#487e3a",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="black",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="lightgrey",this.doneTaskBkgColor="lightgrey",this.doneTaskBorderColor="grey",this.critBorderColor="#ff8888",this.critBkgColor="red",this.todayLineColor="red",this.vertLineColor="#00BFFF",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222"}updateColors(){var e,r,n,a,i,s,o,l,u,d,h,f,p,g,m,y,_,v,E,S,T;this.actorBorder=Kt(this.mainBkg,20),this.actorBkg=this.mainBkg,this.labelBoxBkgColor=this.actorBkg,this.labelTextColor=this.actorTextColor,this.loopTextColor=this.actorTextColor,this.noteBorderColor=this.border2,this.noteTextColor=this.actorTextColor,this.actorLineColor=this.actorBorder,this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||Ye(this.primaryColor,{h:30}),this.cScale4=this.cScale4||Ye(this.primaryColor,{h:60}),this.cScale5=this.cScale5||Ye(this.primaryColor,{h:90}),this.cScale6=this.cScale6||Ye(this.primaryColor,{h:120}),this.cScale7=this.cScale7||Ye(this.primaryColor,{h:150}),this.cScale8=this.cScale8||Ye(this.primaryColor,{h:210}),this.cScale9=this.cScale9||Ye(this.primaryColor,{h:270}),this.cScale10=this.cScale10||Ye(this.primaryColor,{h:300}),this.cScale11=this.cScale11||Ye(this.primaryColor,{h:330}),this.cScalePeer1=this.cScalePeer1||Kt(this.secondaryColor,45),this.cScalePeer2=this.cScalePeer2||Kt(this.tertiaryColor,40);for(let x=0;x<this.THEME_COLOR_LIMIT;x++)this["cScale"+x]=Kt(this["cScale"+x],10),this["cScalePeer"+x]=this["cScalePeer"+x]||Kt(this["cScale"+x],25);for(let x=0;x<this.THEME_COLOR_LIMIT;x++)this["cScaleInv"+x]=this["cScaleInv"+x]||Ye(this["cScale"+x],{h:180});this.scaleLabelColor=this.scaleLabelColor!=="calculated"&&this.scaleLabelColor?this.scaleLabelColor:this.labelTextColor;for(let x=0;x<this.THEME_COLOR_LIMIT;x++)this["cScaleLabel"+x]=this["cScaleLabel"+x]||this.scaleLabelColor;for(let x=0;x<5;x++)this["surface"+x]=this["surface"+x]||Ye(this.mainBkg,{h:30,s:-30,l:-(5+x*5)}),this["surfacePeer"+x]=this["surfacePeer"+x]||Ye(this.mainBkg,{h:30,s:-30,l:-(8+x*5)});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||Ut(this.mainBkg,75)||"#ffffff",this.rowEven=this.rowEven||Ut(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=Ye(this.primaryColor,{h:64}),this.fillType3=Ye(this.secondaryColor,{h:64}),this.fillType4=Ye(this.primaryColor,{h:-64}),this.fillType5=Ye(this.secondaryColor,{h:-64}),this.fillType6=Ye(this.primaryColor,{h:128}),this.fillType7=Ye(this.secondaryColor,{h:128}),this.pie1=this.pie1||this.primaryColor,this.pie2=this.pie2||this.secondaryColor,this.pie3=this.pie3||this.tertiaryColor,this.pie4=this.pie4||Ye(this.primaryColor,{l:-30}),this.pie5=this.pie5||Ye(this.secondaryColor,{l:-30}),this.pie6=this.pie6||Ye(this.tertiaryColor,{h:40,l:-40}),this.pie7=this.pie7||Ye(this.primaryColor,{h:60,l:-10}),this.pie8=this.pie8||Ye(this.primaryColor,{h:-60,l:-10}),this.pie9=this.pie9||Ye(this.primaryColor,{h:120,l:0}),this.pie10=this.pie10||Ye(this.primaryColor,{h:60,l:-50}),this.pie11=this.pie11||Ye(this.primaryColor,{h:-60,l:-50}),this.pie12=this.pie12||Ye(this.primaryColor,{h:120,l:-50}),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||Ye(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||Ye(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||Ye(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||Ye(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||Ye(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||Ye(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||xc(this.quadrant1Fill)?Ut(this.quadrant1Fill):Kt(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.packet={startByteColor:this.primaryTextColor,endByteColor:this.primaryTextColor,labelColor:this.primaryTextColor,titleColor:this.primaryTextColor,blockStrokeColor:this.primaryTextColor,blockFillColor:this.mainBkg},this.radar={axisColor:((e=this.radar)==null?void 0:e.axisColor)||this.lineColor,axisStrokeWidth:((r=this.radar)==null?void 0:r.axisStrokeWidth)||2,axisLabelFontSize:((n=this.radar)==null?void 0:n.axisLabelFontSize)||12,curveOpacity:((a=this.radar)==null?void 0:a.curveOpacity)||.5,curveStrokeWidth:((i=this.radar)==null?void 0:i.curveStrokeWidth)||2,graticuleColor:((s=this.radar)==null?void 0:s.graticuleColor)||"#DEDEDE",graticuleStrokeWidth:((o=this.radar)==null?void 0:o.graticuleStrokeWidth)||1,graticuleOpacity:((l=this.radar)==null?void 0:l.graticuleOpacity)||.3,legendBoxSize:((u=this.radar)==null?void 0:u.legendBoxSize)||12,legendFontSize:((d=this.radar)==null?void 0:d.legendFontSize)||12},this.xyChart={backgroundColor:((h=this.xyChart)==null?void 0:h.backgroundColor)||this.background,titleColor:((f=this.xyChart)==null?void 0:f.titleColor)||this.primaryTextColor,xAxisTitleColor:((p=this.xyChart)==null?void 0:p.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((g=this.xyChart)==null?void 0:g.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((m=this.xyChart)==null?void 0:m.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((y=this.xyChart)==null?void 0:y.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((_=this.xyChart)==null?void 0:_.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((v=this.xyChart)==null?void 0:v.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((E=this.xyChart)==null?void 0:E.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((S=this.xyChart)==null?void 0:S.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((T=this.xyChart)==null?void 0:T.plotColorPalette)||"#CDE498,#FF6B6B,#A0D2DB,#D7BDE2,#F0F0F0,#FFC3A0,#7FD8BE,#FF9A8B,#FAF3E0,#FFF176"},this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||this.edgeLabelBackground,this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=this.git0||this.primaryColor,this.git1=this.git1||this.secondaryColor,this.git2=this.git2||this.tertiaryColor,this.git3=this.git3||Ye(this.primaryColor,{h:-30}),this.git4=this.git4||Ye(this.primaryColor,{h:-60}),this.git5=this.git5||Ye(this.primaryColor,{h:-90}),this.git6=this.git6||Ye(this.primaryColor,{h:60}),this.git7=this.git7||Ye(this.primaryColor,{h:120}),this.darkMode?(this.git0=Ut(this.git0,25),this.git1=Ut(this.git1,25),this.git2=Ut(this.git2,25),this.git3=Ut(this.git3,25),this.git4=Ut(this.git4,25),this.git5=Ut(this.git5,25),this.git6=Ut(this.git6,25),this.git7=Ut(this.git7,25)):(this.git0=Kt(this.git0,25),this.git1=Kt(this.git1,25),this.git2=Kt(this.git2,25),this.git3=Kt(this.git3,25),this.git4=Kt(this.git4,25),this.git5=Kt(this.git5,25),this.git6=Kt(this.git6,25),this.git7=Kt(this.git7,25)),this.gitInv0=this.gitInv0||It(this.git0),this.gitInv1=this.gitInv1||It(this.git1),this.gitInv2=this.gitInv2||It(this.git2),this.gitInv3=this.gitInv3||It(this.git3),this.gitInv4=this.gitInv4||It(this.git4),this.gitInv5=this.gitInv5||It(this.git5),this.gitInv6=this.gitInv6||It(this.git6),this.gitInv7=this.gitInv7||It(this.git7),this.gitBranchLabel0=this.gitBranchLabel0||It(this.labelTextColor),this.gitBranchLabel1=this.gitBranchLabel1||this.labelTextColor,this.gitBranchLabel2=this.gitBranchLabel2||this.labelTextColor,this.gitBranchLabel3=this.gitBranchLabel3||It(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||Ay,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||Ry}calculate(e){if(typeof e!="object"){this.updateColors();return}const r=Object.keys(e);r.forEach(n=>{this[n]=e[n]}),this.updateColors(),r.forEach(n=>{this[n]=e[n]})}},b(Tp,"Theme"),Tp),Zye=b(t=>{const e=new jye;return e.calculate(t),e},"getThemeVariables"),Jye=(xp=class{constructor(){this.primaryColor="#eee",this.contrast="#707070",this.secondaryColor=Ut(this.contrast,55),this.background="#ffffff",this.tertiaryColor=Ye(this.primaryColor,{h:-160}),this.primaryBorderColor=pi(this.primaryColor,this.darkMode),this.secondaryBorderColor=pi(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=pi(this.tertiaryColor,this.darkMode),this.primaryTextColor=It(this.primaryColor),this.secondaryTextColor=It(this.secondaryColor),this.tertiaryTextColor=It(this.tertiaryColor),this.lineColor=It(this.background),this.textColor=It(this.background),this.mainBkg="#eee",this.secondBkg="calculated",this.lineColor="#666",this.border1="#999",this.border2="calculated",this.note="#ffa",this.text="#333",this.critical="#d42",this.done="#bbb",this.arrowheadColor="#333333",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.THEME_COLOR_LIMIT=12,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="calculated",this.edgeLabelBackground="white",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="calculated",this.actorLineColor=this.actorBorder,this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="calculated",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.sectionBkgColor="calculated",this.altSectionBkgColor="white",this.sectionBkgColor2="calculated",this.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="calculated",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="calculated",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="calculated",this.critBkgColor="calculated",this.critBorderColor="calculated",this.todayLineColor="calculated",this.vertLineColor="calculated",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.rowOdd=this.rowOdd||Ut(this.mainBkg,75)||"#ffffff",this.rowEven=this.rowEven||"#f4f4f4",this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222"}updateColors(){var e,r,n,a,i,s,o,l,u,d,h,f,p,g,m,y,_,v,E,S,T;this.secondBkg=Ut(this.contrast,55),this.border2=this.contrast,this.actorBorder=Ut(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";for(let x=0;x<this.THEME_COLOR_LIMIT;x++)this["cScaleInv"+x]=this["cScaleInv"+x]||It(this["cScale"+x]);for(let x=0;x<this.THEME_COLOR_LIMIT;x++)this.darkMode?this["cScalePeer"+x]=this["cScalePeer"+x]||Ut(this["cScale"+x],10):this["cScalePeer"+x]=this["cScalePeer"+x]||Kt(this["cScale"+x],10);this.scaleLabelColor=this.scaleLabelColor||(this.darkMode?"black":this.labelTextColor),this.cScaleLabel0=this.cScaleLabel0||this.cScale1,this.cScaleLabel2=this.cScaleLabel2||this.cScale1;for(let x=0;x<this.THEME_COLOR_LIMIT;x++)this["cScaleLabel"+x]=this["cScaleLabel"+x]||this.scaleLabelColor;for(let x=0;x<5;x++)this["surface"+x]=this["surface"+x]||Ye(this.mainBkg,{l:-(5+x*5)}),this["surfacePeer"+x]=this["surfacePeer"+x]||Ye(this.mainBkg,{l:-(8+x*5)});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=Ut(this.contrast,30),this.sectionBkgColor2=Ut(this.contrast,30),this.taskBorderColor=Kt(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=Ut(this.border1,30),this.doneTaskBkgColor=this.done,this.doneTaskBorderColor=this.lineColor,this.critBkgColor=this.critical,this.critBorderColor=Kt(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=Ye(this.primaryColor,{h:64}),this.fillType3=Ye(this.secondaryColor,{h:64}),this.fillType4=Ye(this.primaryColor,{h:-64}),this.fillType5=Ye(this.secondaryColor,{h:-64}),this.fillType6=Ye(this.primaryColor,{h:128}),this.fillType7=Ye(this.secondaryColor,{h:128});for(let x=0;x<this.THEME_COLOR_LIMIT;x++)this["pie"+x]=this["cScale"+x];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||Ye(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||Ye(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||Ye(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||Ye(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||Ye(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||Ye(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||xc(this.quadrant1Fill)?Ut(this.quadrant1Fill):Kt(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:((e=this.xyChart)==null?void 0:e.backgroundColor)||this.background,titleColor:((r=this.xyChart)==null?void 0:r.titleColor)||this.primaryTextColor,xAxisTitleColor:((n=this.xyChart)==null?void 0:n.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((a=this.xyChart)==null?void 0:a.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((i=this.xyChart)==null?void 0:i.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((s=this.xyChart)==null?void 0:s.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((o=this.xyChart)==null?void 0:o.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((l=this.xyChart)==null?void 0:l.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((u=this.xyChart)==null?void 0:u.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((d=this.xyChart)==null?void 0:d.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((h=this.xyChart)==null?void 0:h.plotColorPalette)||"#EEE,#6BB8E4,#8ACB88,#C7ACD6,#E8DCC2,#FFB2A8,#FFF380,#7E8D91,#FFD8B1,#FAF3E0"},this.radar={axisColor:((f=this.radar)==null?void 0:f.axisColor)||this.lineColor,axisStrokeWidth:((p=this.radar)==null?void 0:p.axisStrokeWidth)||2,axisLabelFontSize:((g=this.radar)==null?void 0:g.axisLabelFontSize)||12,curveOpacity:((m=this.radar)==null?void 0:m.curveOpacity)||.5,curveStrokeWidth:((y=this.radar)==null?void 0:y.curveStrokeWidth)||2,graticuleColor:((_=this.radar)==null?void 0:_.graticuleColor)||"#DEDEDE",graticuleStrokeWidth:((v=this.radar)==null?void 0:v.graticuleStrokeWidth)||1,graticuleOpacity:((E=this.radar)==null?void 0:E.graticuleOpacity)||.3,legendBoxSize:((S=this.radar)==null?void 0:S.legendBoxSize)||12,legendFontSize:((T=this.radar)==null?void 0:T.legendFontSize)||12},this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||this.edgeLabelBackground,this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=Kt(this.pie1,25)||this.primaryColor,this.git1=this.pie2||this.secondaryColor,this.git2=this.pie3||this.tertiaryColor,this.git3=this.pie4||Ye(this.primaryColor,{h:-30}),this.git4=this.pie5||Ye(this.primaryColor,{h:-60}),this.git5=this.pie6||Ye(this.primaryColor,{h:-90}),this.git6=this.pie7||Ye(this.primaryColor,{h:60}),this.git7=this.pie8||Ye(this.primaryColor,{h:120}),this.gitInv0=this.gitInv0||It(this.git0),this.gitInv1=this.gitInv1||It(this.git1),this.gitInv2=this.gitInv2||It(this.git2),this.gitInv3=this.gitInv3||It(this.git3),this.gitInv4=this.gitInv4||It(this.git4),this.gitInv5=this.gitInv5||It(this.git5),this.gitInv6=this.gitInv6||It(this.git6),this.gitInv7=this.gitInv7||It(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||Ay,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||Ry}calculate(e){if(typeof e!="object"){this.updateColors();return}const r=Object.keys(e);r.forEach(n=>{this[n]=e[n]}),this.updateColors(),r.forEach(n=>{this[n]=e[n]})}},b(xp,"Theme"),xp),eve=b(t=>{const e=new Jye;return e.calculate(t),e},"getThemeVariables"),vl={base:{getThemeVariables:Wye},dark:{getThemeVariables:Xye},default:{getThemeVariables:wy},forest:{getThemeVariables:Zye},neutral:{getThemeVariables:eve}},Io={flowchart:{useMaxWidth:!0,titleTopMargin:25,subGraphTitleMargin:{top:0,bottom:0},diagramPadding:8,htmlLabels:!0,nodeSpacing:50,rankSpacing:50,curve:"basis",padding:15,defaultRenderer:"dagre-wrapper",wrappingWidth:200,inheritDir:!1},sequence:{useMaxWidth:!0,hideUnusedParticipants:!1,activationWidth:10,diagramMarginX:50,diagramMarginY:10,actorMargin:50,width:150,height:65,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",mirrorActors:!0,forceMenus:!1,bottomMarginAdj:1,rightAngles:!1,showSequenceNumbers:!1,actorFontSize:14,actorFontFamily:'"Open Sans", sans-serif',actorFontWeight:400,noteFontSize:14,noteFontFamily:'"trebuchet ms", verdana, arial, sans-serif',noteFontWeight:400,noteAlign:"center",messageFontSize:16,messageFontFamily:'"trebuchet ms", verdana, arial, sans-serif',messageFontWeight:400,wrap:!1,wrapPadding:10,labelBoxWidth:50,labelBoxHeight:20},gantt:{useMaxWidth:!0,titleTopMargin:25,barHeight:20,barGap:4,topPadding:50,rightPadding:75,leftPadding:75,gridLineStartPadding:35,fontSize:11,sectionFontSize:11,numberSectionStyles:4,axisFormat:"%Y-%m-%d",topAxis:!1,displayMode:"",weekday:"sunday"},journey:{useMaxWidth:!0,diagramMarginX:50,diagramMarginY:10,leftMargin:150,maxLabelWidth:360,width:150,height:50,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",bottomMarginAdj:1,rightAngles:!1,taskFontSize:14,taskFontFamily:'"Open Sans", sans-serif',taskMargin:50,activationWidth:10,textPlacement:"fo",actorColours:["#8FBC8F","#7CFC00","#00FFFF","#20B2AA","#B0E0E6","#FFFFE0"],sectionFills:["#191970","#8B008B","#4B0082","#2F4F4F","#800000","#8B4513","#00008B"],sectionColours:["#fff"],titleColor:"",titleFontFamily:'"trebuchet ms", verdana, arial, sans-serif',titleFontSize:"4ex"},class:{useMaxWidth:!0,titleTopMargin:25,arrowMarkerAbsolute:!1,dividerMargin:10,padding:5,textHeight:10,defaultRenderer:"dagre-wrapper",htmlLabels:!1,hideEmptyMembersBox:!1},state:{useMaxWidth:!0,titleTopMargin:25,dividerMargin:10,sizeUnit:5,padding:8,textHeight:10,titleShift:-15,noteMargin:10,forkWidth:70,forkHeight:7,miniPadding:2,fontSizeFactor:5.02,fontSize:24,labelHeight:16,edgeLengthFactor:"20",compositTitleSize:35,radius:5,defaultRenderer:"dagre-wrapper"},er:{useMaxWidth:!0,titleTopMargin:25,diagramPadding:20,layoutDirection:"TB",minEntityWidth:100,minEntityHeight:75,entityPadding:15,nodeSpacing:140,rankSpacing:80,stroke:"gray",fill:"honeydew",fontSize:12},pie:{useMaxWidth:!0,textPosition:.75},quadrantChart:{useMaxWidth:!0,chartWidth:500,chartHeight:500,titleFontSize:20,titlePadding:10,quadrantPadding:5,xAxisLabelPadding:5,yAxisLabelPadding:5,xAxisLabelFontSize:16,yAxisLabelFontSize:16,quadrantLabelFontSize:16,quadrantTextTopPadding:5,pointTextPadding:5,pointLabelFontSize:12,pointRadius:5,xAxisPosition:"top",yAxisPosition:"left",quadrantInternalBorderStrokeWidth:1,quadrantExternalBorderStrokeWidth:2},xyChart:{useMaxWidth:!0,width:700,height:500,titleFontSize:20,titlePadding:10,showDataLabel:!1,showTitle:!0,xAxis:{$ref:"#/$defs/XYChartAxisConfig",showLabel:!0,labelFontSize:14,labelPadding:5,showTitle:!0,titleFontSize:16,titlePadding:5,showTick:!0,tickLength:5,tickWidth:2,showAxisLine:!0,axisLineWidth:2},yAxis:{$ref:"#/$defs/XYChartAxisConfig",showLabel:!0,labelFontSize:14,labelPadding:5,showTitle:!0,titleFontSize:16,titlePadding:5,showTick:!0,tickLength:5,tickWidth:2,showAxisLine:!0,axisLineWidth:2},chartOrientation:"vertical",plotReservedSpacePercent:50},requirement:{useMaxWidth:!0,rect_fill:"#f9f9f9",text_color:"#333",rect_border_size:"0.5px",rect_border_color:"#bbb",rect_min_width:200,rect_min_height:200,fontSize:14,rect_padding:10,line_height:20},mindmap:{useMaxWidth:!0,padding:10,maxNodeWidth:200,layoutAlgorithm:"cose-bilkent"},kanban:{useMaxWidth:!0,padding:8,sectionWidth:200,ticketBaseUrl:""},timeline:{useMaxWidth:!0,diagramMarginX:50,diagramMarginY:10,leftMargin:150,width:150,height:50,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",bottomMarginAdj:1,rightAngles:!1,taskFontSize:14,taskFontFamily:'"Open Sans", sans-serif',taskMargin:50,activationWidth:10,textPlacement:"fo",actorColours:["#8FBC8F","#7CFC00","#00FFFF","#20B2AA","#B0E0E6","#FFFFE0"],sectionFills:["#191970","#8B008B","#4B0082","#2F4F4F","#800000","#8B4513","#00008B"],sectionColours:["#fff"],disableMulticolor:!1},gitGraph:{useMaxWidth:!0,titleTopMargin:25,diagramPadding:8,nodeLabel:{width:75,height:100,x:-25,y:0},mainBranchName:"main",mainBranchOrder:0,showCommitLabel:!0,showBranches:!0,rotateCommitLabel:!0,parallelCommits:!1,arrowMarkerAbsolute:!1},c4:{useMaxWidth:!0,diagramMarginX:50,diagramMarginY:10,c4ShapeMargin:50,c4ShapePadding:20,width:216,height:60,boxMargin:10,c4ShapeInRow:4,nextLinePaddingX:0,c4BoundaryInRow:2,personFontSize:14,personFontFamily:'"Open Sans", sans-serif',personFontWeight:"normal",external_personFontSize:14,external_personFontFamily:'"Open Sans", sans-serif',external_personFontWeight:"normal",systemFontSize:14,systemFontFamily:'"Open Sans", sans-serif',systemFontWeight:"normal",external_systemFontSize:14,external_systemFontFamily:'"Open Sans", sans-serif',external_systemFontWeight:"normal",system_dbFontSize:14,system_dbFontFamily:'"Open Sans", sans-serif',system_dbFontWeight:"normal",external_system_dbFontSize:14,external_system_dbFontFamily:'"Open Sans", sans-serif',external_system_dbFontWeight:"normal",system_queueFontSize:14,system_queueFontFamily:'"Open Sans", sans-serif',system_queueFontWeight:"normal",external_system_queueFontSize:14,external_system_queueFontFamily:'"Open Sans", sans-serif',external_system_queueFontWeight:"normal",boundaryFontSize:14,boundaryFontFamily:'"Open Sans", sans-serif',boundaryFontWeight:"normal",messageFontSize:12,messageFontFamily:'"Open Sans", sans-serif',messageFontWeight:"normal",containerFontSize:14,containerFontFamily:'"Open Sans", sans-serif',containerFontWeight:"normal",external_containerFontSize:14,external_containerFontFamily:'"Open Sans", sans-serif',external_containerFontWeight:"normal",container_dbFontSize:14,container_dbFontFamily:'"Open Sans", sans-serif',container_dbFontWeight:"normal",external_container_dbFontSize:14,external_container_dbFontFamily:'"Open Sans", sans-serif',external_container_dbFontWeight:"normal",container_queueFontSize:14,container_queueFontFamily:'"Open Sans", sans-serif',container_queueFontWeight:"normal",external_container_queueFontSize:14,external_container_queueFontFamily:'"Open Sans", sans-serif',external_container_queueFontWeight:"normal",componentFontSize:14,componentFontFamily:'"Open Sans", sans-serif',componentFontWeight:"normal",external_componentFontSize:14,external_componentFontFamily:'"Open Sans", sans-serif',external_componentFontWeight:"normal",component_dbFontSize:14,component_dbFontFamily:'"Open Sans", sans-serif',component_dbFontWeight:"normal",external_component_dbFontSize:14,external_component_dbFontFamily:'"Open Sans", sans-serif',external_component_dbFontWeight:"normal",component_queueFontSize:14,component_queueFontFamily:'"Open Sans", sans-serif',component_queueFontWeight:"normal",external_component_queueFontSize:14,external_component_queueFontFamily:'"Open Sans", sans-serif',external_component_queueFontWeight:"normal",wrap:!0,wrapPadding:10,person_bg_color:"#08427B",person_border_color:"#073B6F",external_person_bg_color:"#686868",external_person_border_color:"#8A8A8A",system_bg_color:"#1168BD",system_border_color:"#3C7FC0",system_db_bg_color:"#1168BD",system_db_border_color:"#3C7FC0",system_queue_bg_color:"#1168BD",system_queue_border_color:"#3C7FC0",external_system_bg_color:"#999999",external_system_border_color:"#8A8A8A",external_system_db_bg_color:"#999999",external_system_db_border_color:"#8A8A8A",external_system_queue_bg_color:"#999999",external_system_queue_border_color:"#8A8A8A",container_bg_color:"#438DD5",container_border_color:"#3C7FC0",container_db_bg_color:"#438DD5",container_db_border_color:"#3C7FC0",container_queue_bg_color:"#438DD5",container_queue_border_color:"#3C7FC0",external_container_bg_color:"#B3B3B3",external_container_border_color:"#A6A6A6",external_container_db_bg_color:"#B3B3B3",external_container_db_border_color:"#A6A6A6",external_container_queue_bg_color:"#B3B3B3",external_container_queue_border_color:"#A6A6A6",component_bg_color:"#85BBF0",component_border_color:"#78A8D8",component_db_bg_color:"#85BBF0",component_db_border_color:"#78A8D8",component_queue_bg_color:"#85BBF0",component_queue_border_color:"#78A8D8",external_component_bg_color:"#CCCCCC",external_component_border_color:"#BFBFBF",external_component_db_bg_color:"#CCCCCC",external_component_db_border_color:"#BFBFBF",external_component_queue_bg_color:"#CCCCCC",external_component_queue_border_color:"#BFBFBF"},sankey:{useMaxWidth:!0,width:600,height:400,linkColor:"gradient",nodeAlignment:"justify",showValues:!0,prefix:"",suffix:""},block:{useMaxWidth:!0,padding:8},packet:{useMaxWidth:!0,rowHeight:32,bitWidth:32,bitsPerRow:32,showBits:!0,paddingX:5,paddingY:5},architecture:{useMaxWidth:!0,padding:40,iconSize:80,fontSize:16},radar:{useMaxWidth:!0,width:600,height:600,marginTop:50,marginRight:50,marginBottom:50,marginLeft:50,axisScaleFactor:1,axisLabelFactor:1.05,curveTension:.17},theme:"default",look:"classic",handDrawnSeed:0,layout:"dagre",maxTextSize:5e4,maxEdges:500,darkMode:!1,fontFamily:'"trebuchet ms", verdana, arial, sans-serif;',logLevel:5,securityLevel:"strict",startOnLoad:!0,arrowMarkerAbsolute:!1,secure:["secure","securityLevel","startOnLoad","maxTextSize","suppressErrorRendering","maxEdges"],legacyMathML:!1,forceLegacyMathML:!1,deterministicIds:!1,fontSize:16,markdownAutoWrap:!0,suppressErrorRendering:!1},_9={...Io,deterministicIDSeed:void 0,elk:{mergeEdges:!1,nodePlacementStrategy:"BRANDES_KOEPF",forceNodeModelOrder:!1,considerModelOrder:"NODES_AND_EDGES"},themeCSS:void 0,themeVariables:vl.default.getThemeVariables(),sequence:{...Io.sequence,messageFont:b(function(){return{fontFamily:this.messageFontFamily,fontSize:this.messageFontSize,fontWeight:this.messageFontWeight}},"messageFont"),noteFont:b(function(){return{fontFamily:this.noteFontFamily,fontSize:this.noteFontSize,fontWeight:this.noteFontWeight}},"noteFont"),actorFont:b(function(){return{fontFamily:this.actorFontFamily,fontSize:this.actorFontSize,fontWeight:this.actorFontWeight}},"actorFont")},class:{hideEmptyMembersBox:!1},gantt:{...Io.gantt,tickInterval:void 0,useWidth:void 0},c4:{...Io.c4,useWidth:void 0,personFont:b(function(){return{fontFamily:this.personFontFamily,fontSize:this.personFontSize,fontWeight:this.personFontWeight}},"personFont"),flowchart:{...Io.flowchart,inheritDir:!1},external_personFont:b(function(){return{fontFamily:this.external_personFontFamily,fontSize:this.external_personFontSize,fontWeight:this.external_personFontWeight}},"external_personFont"),systemFont:b(function(){return{fontFamily:this.systemFontFamily,fontSize:this.systemFontSize,fontWeight:this.systemFontWeight}},"systemFont"),external_systemFont:b(function(){return{fontFamily:this.external_systemFontFamily,fontSize:this.external_systemFontSize,fontWeight:this.external_systemFontWeight}},"external_systemFont"),system_dbFont:b(function(){return{fontFamily:this.system_dbFontFamily,fontSize:this.system_dbFontSize,fontWeight:this.system_dbFontWeight}},"system_dbFont"),external_system_dbFont:b(function(){return{fontFamily:this.external_system_dbFontFamily,fontSize:this.external_system_dbFontSize,fontWeight:this.external_system_dbFontWeight}},"external_system_dbFont"),system_queueFont:b(function(){return{fontFamily:this.system_queueFontFamily,fontSize:this.system_queueFontSize,fontWeight:this.system_queueFontWeight}},"system_queueFont"),external_system_queueFont:b(function(){return{fontFamily:this.external_system_queueFontFamily,fontSize:this.external_system_queueFontSize,fontWeight:this.external_system_queueFontWeight}},"external_system_queueFont"),containerFont:b(function(){return{fontFamily:this.containerFontFamily,fontSize:this.containerFontSize,fontWeight:this.containerFontWeight}},"containerFont"),external_containerFont:b(function(){return{fontFamily:this.external_containerFontFamily,fontSize:this.external_containerFontSize,fontWeight:this.external_containerFontWeight}},"external_containerFont"),container_dbFont:b(function(){return{fontFamily:this.container_dbFontFamily,fontSize:this.container_dbFontSize,fontWeight:this.container_dbFontWeight}},"container_dbFont"),external_container_dbFont:b(function(){return{fontFamily:this.external_container_dbFontFamily,fontSize:this.external_container_dbFontSize,fontWeight:this.external_container_dbFontWeight}},"external_container_dbFont"),container_queueFont:b(function(){return{fontFamily:this.container_queueFontFamily,fontSize:this.container_queueFontSize,fontWeight:this.container_queueFontWeight}},"container_queueFont"),external_container_queueFont:b(function(){return{fontFamily:this.external_container_queueFontFamily,fontSize:this.external_container_queueFontSize,fontWeight:this.external_container_queueFontWeight}},"external_container_queueFont"),componentFont:b(function(){return{fontFamily:this.componentFontFamily,fontSize:this.componentFontSize,fontWeight:this.componentFontWeight}},"componentFont"),external_componentFont:b(function(){return{fontFamily:this.external_componentFontFamily,fontSize:this.external_componentFontSize,fontWeight:this.external_componentFontWeight}},"external_componentFont"),component_dbFont:b(function(){return{fontFamily:this.component_dbFontFamily,fontSize:this.component_dbFontSize,fontWeight:this.component_dbFontWeight}},"component_dbFont"),external_component_dbFont:b(function(){return{fontFamily:this.external_component_dbFontFamily,fontSize:this.external_component_dbFontSize,fontWeight:this.external_component_dbFontWeight}},"external_component_dbFont"),component_queueFont:b(function(){return{fontFamily:this.component_queueFontFamily,fontSize:this.component_queueFontSize,fontWeight:this.component_queueFontWeight}},"component_queueFont"),external_component_queueFont:b(function(){return{fontFamily:this.external_component_queueFontFamily,fontSize:this.external_component_queueFontSize,fontWeight:this.external_component_queueFontWeight}},"external_component_queueFont"),boundaryFont:b(function(){return{fontFamily:this.boundaryFontFamily,fontSize:this.boundaryFontSize,fontWeight:this.boundaryFontWeight}},"boundaryFont"),messageFont:b(function(){return{fontFamily:this.messageFontFamily,fontSize:this.messageFontSize,fontWeight:this.messageFontWeight}},"messageFont")},pie:{...Io.pie,useWidth:984},xyChart:{...Io.xyChart,useWidth:void 0},requirement:{...Io.requirement,useWidth:void 0},packet:{...Io.packet},radar:{...Io.radar},treemap:{useMaxWidth:!0,padding:10,diagramPadding:8,showValues:!0,nodeWidth:100,nodeHeight:40,borderWidth:1,valueFontSize:12,labelFontSize:14,valueFormat:","}},y9=b((t,e="")=>Object.keys(t).reduce((r,n)=>Array.isArray(t[n])?r:typeof t[n]=="object"&&t[n]!==null?[...r,e+n,...y9(t[n],"")]:[...r,e+n],[]),"keyify"),tve=new Set(y9(_9,"")),Ar=_9,Ny=b(t=>{if(oe.debug("sanitizeDirective called with",t),!(typeof t!="object"||t==null)){if(Array.isArray(t)){t.forEach(e=>Ny(e));return}for(const e of Object.keys(t)){if(oe.debug("Checking key",e),e.startsWith("__")||e.includes("proto")||e.includes("constr")||!tve.has(e)||t[e]==null){oe.debug("sanitize deleting key: ",e),delete t[e];continue}if(typeof t[e]=="object"){oe.debug("sanitizing object",e),Ny(t[e]);continue}const r=["themeCSS","fontFamily","altFontFamily"];for(const n of r)e.includes(n)&&(oe.debug("sanitizing css option",e),t[e]=rve(t[e]))}if(t.themeVariables)for(const e of Object.keys(t.themeVariables)){const r=t.themeVariables[e];r!=null&&r.match&&!r.match(/^[\d "#%(),.;A-Za-z]+$/)&&(t.themeVariables[e]="")}oe.debug("After sanitization",t)}},"sanitizeDirective"),rve=b(t=>{let e=0,r=0;for(const n of t){if(e<r)return"{ /* ERROR: Unbalanced CSS */ }";n==="{"?e++:n==="}"&&r++}return e!==r?"{ /* ERROR: Unbalanced CSS */ }":t},"sanitizeCss"),Oh=Object.freeze(Ar),Bi=Bn({},Oh),Iy,$u=[],a0=Bn({},Oh),Oy=b((t,e)=>{let r=Bn({},t),n={};for(const a of e)b9(a),n=Bn(n,a);if(r=Bn(r,n),n.theme&&n.theme in vl){const a=Bn({},Iy),i=Bn(a.themeVariables||{},n.themeVariables);r.theme&&r.theme in vl&&(r.themeVariables=vl[r.theme].getThemeVariables(i))}return a0=r,T9(a0),a0},"updateCurrentConfig"),nve=b(t=>(Bi=Bn({},Oh),Bi=Bn(Bi,t),t.theme&&vl[t.theme]&&(Bi.themeVariables=vl[t.theme].getThemeVariables(t.themeVariables)),Oy(Bi,$u),Bi),"setSiteConfig"),ave=b(t=>{Iy=Bn({},t)},"saveConfigFromInitialize"),ive=b(t=>(Bi=Bn(Bi,t),Oy(Bi,$u),Bi),"updateSiteConfig"),v9=b(()=>Bn({},Bi),"getSiteConfig"),E9=b(t=>(T9(t),Bn(a0,t),Ir()),"setConfig"),Ir=b(()=>Bn({},a0),"getConfig"),b9=b(t=>{t&&(["secure",...Bi.secure??[]].forEach(e=>{Object.hasOwn(t,e)&&(oe.debug(`Denied attempt to modify a secure key ${e}`,t[e]),delete t[e])}),Object.keys(t).forEach(e=>{e.startsWith("__")&&delete t[e]}),Object.keys(t).forEach(e=>{typeof t[e]=="string"&&(t[e].includes("<")||t[e].includes(">")||t[e].includes("url(data:"))&&delete t[e],typeof t[e]=="object"&&b9(t[e])}))},"sanitize"),sve=b(t=>{var e;Ny(t),t.fontFamily&&!((e=t.themeVariables)!=null&&e.fontFamily)&&(t.themeVariables={...t.themeVariables,fontFamily:t.fontFamily}),$u.push(t),Oy(Bi,$u)},"addDirective"),ky=b((t=Bi)=>{$u=[],Oy(t,$u)},"reset"),ove={LAZY_LOAD_DEPRECATED:"The configuration options lazyLoadedDiagrams and loadExternalDiagramsAtStartup are deprecated. Please use registerExternalDiagrams instead."},S9={},lve=b(t=>{S9[t]||(oe.warn(ove[t]),S9[t]=!0)},"issueWarning"),T9=b(t=>{t&&(t.lazyLoadedDiagrams||t.loadExternalDiagramsAtStartup)&&lve("LAZY_LOAD_DEPRECATED")},"checkConfig"),cve=b(()=>{let t={};Iy&&(t=Bn(t,Iy));for(const e of $u)t=Bn(t,e);return t},"getUserDefinedConfig"),kh=/<br\s*\/?>/gi,uve=b(t=>t?R9(t).replace(/\\n/g,"#br#").split("#br#"):[""],"getRows"),dve=(()=>{let t=!1;return()=>{t||(x9(),t=!0)}})();function x9(){const t="data-temp-href-target";Ih.addHook("beforeSanitizeAttributes",e=>{e.tagName==="A"&&e.hasAttribute("target")&&e.setAttribute(t,e.getAttribute("target")??"")}),Ih.addHook("afterSanitizeAttributes",e=>{e.tagName==="A"&&e.hasAttribute(t)&&(e.setAttribute("target",e.getAttribute(t)??""),e.removeAttribute(t),e.getAttribute("target")==="_blank"&&e.setAttribute("rel","noopener"))})}b(x9,"setupDompurifyHooks");var C9=b(t=>(dve(),Ih.sanitize(t)),"removeScript"),A9=b((t,e)=>{var r;if(((r=e.flowchart)==null?void 0:r.htmlLabels)!==!1){const n=e.securityLevel;n==="antiscript"||n==="strict"?t=C9(t):n!=="loose"&&(t=R9(t),t=t.replace(/</g,"<").replace(/>/g,">"),t=t.replace(/=/g,"="),t=gve(t))}return t},"sanitizeMore"),Rr=b((t,e)=>t&&(e.dompurifyConfig?t=Ih.sanitize(A9(t,e),e.dompurifyConfig).toString():t=Ih.sanitize(A9(t,e),{FORBID_TAGS:["style"]}).toString(),t),"sanitizeText"),hve=b((t,e)=>typeof t=="string"?Rr(t,e):t.flat().map(r=>Rr(r,e)),"sanitizeTextOrArray"),fve=b(t=>kh.test(t),"hasBreaks"),pve=b(t=>t.split(kh),"splitBreaks"),gve=b(t=>t.replace(/#br#/g,"<br/>"),"placeholderToBreak"),R9=b(t=>t.replace(kh,"#br#"),"breakToPlaceholder"),i0=b(t=>{let e="";return t&&(e=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,e=CSS.escape(e)),e},"getUrl"),Zr=b(t=>!(t===!1||["false","null","0"].includes(String(t).trim().toLowerCase())),"evaluate"),mve=b(function(...t){const e=t.filter(r=>!isNaN(r));return Math.max(...e)},"getMax"),_ve=b(function(...t){const e=t.filter(r=>!isNaN(r));return Math.min(...e)},"getMin"),Cc=b(function(t){const e=t.split(/(,)/),r=[];for(let n=0;n<e.length;n++){let a=e[n];if(a===","&&n>0&&n+1<e.length){const i=e[n-1],s=e[n+1];yve(i,s)&&(a=i+","+s,n++,r.pop())}r.push(vve(a))}return r.join("")},"parseGenericTypes"),dC=b((t,e)=>Math.max(0,t.split(e).length-1),"countOccurrence"),yve=b((t,e)=>{const r=dC(t,"~"),n=dC(e,"~");return r===1&&n===1},"shouldCombineSets"),vve=b(t=>{const e=dC(t,"~");let r=!1;if(e<=1)return t;e%2!==0&&t.startsWith("~")&&(t=t.substring(1),r=!0);const n=[...t];let a=n.indexOf("~"),i=n.lastIndexOf("~");for(;a!==-1&&i!==-1&&a!==i;)n[a]="<",n[i]=">",a=n.indexOf("~"),i=n.lastIndexOf("~");return r&&n.unshift("~"),n.join("")},"processSet"),w9=b(()=>window.MathMLElement!==void 0,"isMathMLSupported"),hC=/\$\$(.*)\$\$/g,Nn=b(t=>{var e;return(((e=t.match(hC))==null?void 0:e.length)??0)>0},"hasKatex"),s0=b(async(t,e)=>{const r=document.createElement("div");r.innerHTML=await o0(t,e),r.id="katex-temp",r.style.visibility="hidden",r.style.position="absolute",r.style.top="0";const n=document.querySelector("body");n==null||n.insertAdjacentElement("beforeend",r);const a={width:r.clientWidth,height:r.clientHeight};return r.remove(),a},"calculateMathMLDimensions"),Eve=b(async(t,e)=>{if(!Nn(t))return t;if(!(w9()||e.legacyMathML||e.forceLegacyMathML))return t.replace(hC,"MathML is unsupported in this environment.");{const{default:r}=await Promise.resolve().then(()=>Ome),n=e.forceLegacyMathML||!w9()&&e.legacyMathML?"htmlAndMathml":"mathml";return t.split(kh).map(a=>Nn(a)?`<div style="display: flex; align-items: center; justify-content: center; white-space: nowrap;">${a}</div>`:`<div>${a}</div>`).join("").replace(hC,(a,i)=>r.renderToString(i,{throwOnError:!0,displayMode:!0,output:n}).replace(/\n/g," ").replace(/<annotation.*<\/annotation>/g,""))}},"renderKatexUnsanitized"),o0=b(async(t,e)=>Rr(await Eve(t,e),e),"renderKatexSanitized"),mt={getRows:uve,sanitizeText:Rr,sanitizeTextOrArray:hve,hasBreaks:fve,splitBreaks:pve,lineBreakRegex:kh,removeScript:C9,getUrl:i0,evaluate:Zr,getMax:mve,getMin:_ve},bve=b(function(t,e){for(let r of e)t.attr(r[0],r[1])},"d3Attrs"),Sve=b(function(t,e,r){let n=new Map;return r?(n.set("width","100%"),n.set("style",`max-width: ${e}px;`)):(n.set("height",t),n.set("width",e)),n},"calculateSvgSizeAttrs"),gi=b(function(t,e,r,n){const a=Sve(e,r,n);bve(t,a)},"configureSvgSize"),l0=b(function(t,e,r,n){const a=e.node().getBBox(),i=a.width,s=a.height;oe.info(`SVG bounds: ${i}x${s}`,a);let o=0,l=0;oe.info(`Graph bounds: ${o}x${l}`,t),o=i+r*2,l=s+r*2,oe.info(`Calculated bounds: ${o}x${l}`),gi(e,l,o,n);const u=`${a.x-r} ${a.y-r} ${a.width+2*r} ${a.height+2*r}`;e.attr("viewBox",u)},"setupGraphViewbox"),Dy={},Tve=b((t,e,r)=>{let n="";return t in Dy&&Dy[t]?n=Dy[t](r):oe.warn(`No theme found for ${t}`),` & {
|
|
385
384
|
font-family: ${r.fontFamily};
|