@shunyasasaki/mkserve 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +115 -0
- package/dist/cli.mjs +613 -0
- package/dist/client/assets/KaTeX_AMS-Regular-BQhdFMY1.woff2 +0 -0
- package/dist/client/assets/KaTeX_AMS-Regular-DMm9YOAa.woff +0 -0
- package/dist/client/assets/KaTeX_AMS-Regular-DRggAlZN.ttf +0 -0
- package/dist/client/assets/KaTeX_Caligraphic-Bold-ATXxdsX0.ttf +0 -0
- package/dist/client/assets/KaTeX_Caligraphic-Bold-BEiXGLvX.woff +0 -0
- package/dist/client/assets/KaTeX_Caligraphic-Bold-Dq_IR9rO.woff2 +0 -0
- package/dist/client/assets/KaTeX_Caligraphic-Regular-CTRA-rTL.woff +0 -0
- package/dist/client/assets/KaTeX_Caligraphic-Regular-Di6jR-x-.woff2 +0 -0
- package/dist/client/assets/KaTeX_Caligraphic-Regular-wX97UBjC.ttf +0 -0
- package/dist/client/assets/KaTeX_Fraktur-Bold-BdnERNNW.ttf +0 -0
- package/dist/client/assets/KaTeX_Fraktur-Bold-BsDP51OF.woff +0 -0
- package/dist/client/assets/KaTeX_Fraktur-Bold-CL6g_b3V.woff2 +0 -0
- package/dist/client/assets/KaTeX_Fraktur-Regular-CB_wures.ttf +0 -0
- package/dist/client/assets/KaTeX_Fraktur-Regular-CTYiF6lA.woff2 +0 -0
- package/dist/client/assets/KaTeX_Fraktur-Regular-Dxdc4cR9.woff +0 -0
- package/dist/client/assets/KaTeX_Main-Bold-Cx986IdX.woff2 +0 -0
- package/dist/client/assets/KaTeX_Main-Bold-Jm3AIy58.woff +0 -0
- package/dist/client/assets/KaTeX_Main-Bold-waoOVXN0.ttf +0 -0
- package/dist/client/assets/KaTeX_Main-BoldItalic-DxDJ3AOS.woff2 +0 -0
- package/dist/client/assets/KaTeX_Main-BoldItalic-DzxPMmG6.ttf +0 -0
- package/dist/client/assets/KaTeX_Main-BoldItalic-SpSLRI95.woff +0 -0
- package/dist/client/assets/KaTeX_Main-Italic-3WenGoN9.ttf +0 -0
- package/dist/client/assets/KaTeX_Main-Italic-BMLOBm91.woff +0 -0
- package/dist/client/assets/KaTeX_Main-Italic-NWA7e6Wa.woff2 +0 -0
- package/dist/client/assets/KaTeX_Main-Regular-B22Nviop.woff2 +0 -0
- package/dist/client/assets/KaTeX_Main-Regular-Dr94JaBh.woff +0 -0
- package/dist/client/assets/KaTeX_Main-Regular-ypZvNtVU.ttf +0 -0
- package/dist/client/assets/KaTeX_Math-BoldItalic-B3XSjfu4.ttf +0 -0
- package/dist/client/assets/KaTeX_Math-BoldItalic-CZnvNsCZ.woff2 +0 -0
- package/dist/client/assets/KaTeX_Math-BoldItalic-iY-2wyZ7.woff +0 -0
- package/dist/client/assets/KaTeX_Math-Italic-DA0__PXp.woff +0 -0
- package/dist/client/assets/KaTeX_Math-Italic-flOr_0UB.ttf +0 -0
- package/dist/client/assets/KaTeX_Math-Italic-t53AETM-.woff2 +0 -0
- package/dist/client/assets/KaTeX_SansSerif-Bold-CFMepnvq.ttf +0 -0
- package/dist/client/assets/KaTeX_SansSerif-Bold-D1sUS0GD.woff2 +0 -0
- package/dist/client/assets/KaTeX_SansSerif-Bold-DbIhKOiC.woff +0 -0
- package/dist/client/assets/KaTeX_SansSerif-Italic-C3H0VqGB.woff2 +0 -0
- package/dist/client/assets/KaTeX_SansSerif-Italic-DN2j7dab.woff +0 -0
- package/dist/client/assets/KaTeX_SansSerif-Italic-YYjJ1zSn.ttf +0 -0
- package/dist/client/assets/KaTeX_SansSerif-Regular-BNo7hRIc.ttf +0 -0
- package/dist/client/assets/KaTeX_SansSerif-Regular-CS6fqUqJ.woff +0 -0
- package/dist/client/assets/KaTeX_SansSerif-Regular-DDBCnlJ7.woff2 +0 -0
- package/dist/client/assets/KaTeX_Script-Regular-C5JkGWo-.ttf +0 -0
- package/dist/client/assets/KaTeX_Script-Regular-D3wIWfF6.woff2 +0 -0
- package/dist/client/assets/KaTeX_Script-Regular-D5yQViql.woff +0 -0
- package/dist/client/assets/KaTeX_Size1-Regular-C195tn64.woff +0 -0
- package/dist/client/assets/KaTeX_Size1-Regular-Dbsnue_I.ttf +0 -0
- package/dist/client/assets/KaTeX_Size1-Regular-mCD8mA8B.woff2 +0 -0
- package/dist/client/assets/KaTeX_Size2-Regular-B7gKUWhC.ttf +0 -0
- package/dist/client/assets/KaTeX_Size2-Regular-Dy4dx90m.woff2 +0 -0
- package/dist/client/assets/KaTeX_Size2-Regular-oD1tc_U0.woff +0 -0
- package/dist/client/assets/KaTeX_Size3-Regular-CTq5MqoE.woff +0 -0
- package/dist/client/assets/KaTeX_Size3-Regular-DgpXs0kz.ttf +0 -0
- package/dist/client/assets/KaTeX_Size4-Regular-BF-4gkZK.woff +0 -0
- package/dist/client/assets/KaTeX_Size4-Regular-DWFBv043.ttf +0 -0
- package/dist/client/assets/KaTeX_Size4-Regular-Dl5lxZxV.woff2 +0 -0
- package/dist/client/assets/KaTeX_Typewriter-Regular-C0xS9mPB.woff +0 -0
- package/dist/client/assets/KaTeX_Typewriter-Regular-CO6r4hn1.woff2 +0 -0
- package/dist/client/assets/KaTeX_Typewriter-Regular-D3Ib7_Hf.ttf +0 -0
- package/dist/client/assets/abnfDiagram-O67JEVCF-BniYQwXa.js +1 -0
- package/dist/client/assets/arc-BJA87daU.js +1 -0
- package/dist/client/assets/architecture-7GRP2DOG-Brw-cPmm.js +1 -0
- package/dist/client/assets/architectureDiagram-NJMV4G6O-BNbYrQOP.js +36 -0
- package/dist/client/assets/array-BifhSqXX.js +1 -0
- package/dist/client/assets/blockDiagram-BEXU5L5S-DFIHGD-G.js +140 -0
- package/dist/client/assets/c4Diagram-YGBWAQC7-BkFaWKQU.js +38 -0
- package/dist/client/assets/channel-BrqIJdOD.js +1 -0
- package/dist/client/assets/chunk-2Q5K7J3B-C1jixKkw.js +1 -0
- package/dist/client/assets/chunk-3FUC2YCW-B4uxGZek.js +2 -0
- package/dist/client/assets/chunk-5DYCD2WN-CnbWAgyo.js +1 -0
- package/dist/client/assets/chunk-5VM5RSS4-ZNzvKenW.js +15 -0
- package/dist/client/assets/chunk-742MDFTN-CSlr64s4.js +1 -0
- package/dist/client/assets/chunk-7INBJB4K-CelZsjbp.js +62 -0
- package/dist/client/assets/chunk-7M6MHVWA-De6KLJmg.js +213 -0
- package/dist/client/assets/chunk-7PRAP22T-CE6VUtLz.js +1 -0
- package/dist/client/assets/chunk-DUW6YSOI-Dgx8z5s3.js +1 -0
- package/dist/client/assets/chunk-FOHPRMQF-DzxwRta7.js +161 -0
- package/dist/client/assets/chunk-GTNCS2PH-DfgoKLZ5.js +88 -0
- package/dist/client/assets/chunk-GWA4HPMP-CPJ61ePi.js +1 -0
- package/dist/client/assets/chunk-J5ZVWO5B-oDCd-gWO.js +1 -0
- package/dist/client/assets/chunk-JWPE2WC7-DVXcaiue.js +1 -0
- package/dist/client/assets/chunk-MBY4JIJT--fcyBAwh.js +72 -0
- package/dist/client/assets/chunk-NETBCI7D-Rdu9faBx.js +1 -0
- package/dist/client/assets/chunk-O7XYJQB3-Bqi4DWie.js +128 -0
- package/dist/client/assets/chunk-UA2S7LBM-BjrJ4RAw.js +1 -0
- package/dist/client/assets/chunk-WEXAMYUT-CnyLp8pC.js +1 -0
- package/dist/client/assets/chunk-XXDRQBXY-C1_eEj17.js +1 -0
- package/dist/client/assets/chunk-Y2CYZVJY-DsF7k-Jl.js +1 -0
- package/dist/client/assets/chunk-Z7XXMR3K-BFUBfhD1.js +10 -0
- package/dist/client/assets/chunk-ZIGJFQKS-8PrSySWh.js +2 -0
- package/dist/client/assets/classDiagram-v2-NBCMYWYE-KufjDRbB.js +217 -0
- package/dist/client/assets/cose-bilkent-JH36ORCC-Bm2Bhb7n.js +1 -0
- package/dist/client/assets/cynefin-OW5HDTMX-H13mnOIn.js +1 -0
- package/dist/client/assets/cynefinDiagram-VND7K2PF-CI5Kf3Kt.js +62 -0
- package/dist/client/assets/cytoscape.esm-Yq6u8L66.js +321 -0
- package/dist/client/assets/dagre-6A5THRUB-DtRiYFPQ.js +4 -0
- package/dist/client/assets/defaultLocale-BFoDCU3G.js +1 -0
- package/dist/client/assets/diagram-22UHCM2B-DqFq9NIL.js +200 -0
- package/dist/client/assets/diagram-3UASUU5V-C2qQgCvw.js +24 -0
- package/dist/client/assets/diagram-ATOU4E4O-B6wVKZ5z.js +3 -0
- package/dist/client/assets/diagram-CDSNMT55-owh05Yfi.js +30 -0
- package/dist/client/assets/diagram-MLGK6HIB-C55nJ_CR.js +24 -0
- package/dist/client/assets/diagram-MPIPVDR6-DeYo8-yc.js +41 -0
- package/dist/client/assets/dist-Bfr8PhAA.js +1 -0
- package/dist/client/assets/ebnfDiagram-ZINNZB2B-BoJE7Elt.js +1 -0
- package/dist/client/assets/elk-276RUBZZ-F1vDPlT8.js +27 -0
- package/dist/client/assets/erDiagram-OPXOYQCR-JFHuQAWq.js +99 -0
- package/dist/client/assets/eventmodeling-NTZA5JFV-BDnaXJON.js +1 -0
- package/dist/client/assets/flowDiagram-KWPJA3E3-DC2FrXkH.js +1 -0
- package/dist/client/assets/ganttDiagram-FUAMR5RP-C5psbznc.js +292 -0
- package/dist/client/assets/gitGraph-4MIJSDKK-CUDLWiCq.js +1 -0
- package/dist/client/assets/gitGraphDiagram-X574FWY7-Cy-gNPac.js +106 -0
- package/dist/client/assets/graphlib-DS17s2tU.js +1 -0
- package/dist/client/assets/index-BEY9E2Q9.js +2 -0
- package/dist/client/assets/index-FULGulkF.css +2 -0
- package/dist/client/assets/info-A6RAGUB7-mIpFX_UH.js +1 -0
- package/dist/client/assets/infoDiagram-VRGFBTTK-DnkrYsVs.js +2 -0
- package/dist/client/assets/init-C-OQMol4.js +1 -0
- package/dist/client/assets/ishikawaDiagram-OU5B5YK6-_u6_xJba.js +70 -0
- package/dist/client/assets/journeyDiagram-ZHPQQLJL-CY5HU_eC.js +139 -0
- package/dist/client/assets/kanban-definition-PNTS6WVX-DvzRwcD7.js +89 -0
- package/dist/client/assets/katex-ZlcWpGUi.js +257 -0
- package/dist/client/assets/line-B4MFnJjP.js +1 -0
- package/dist/client/assets/linear-ZUqVn2xB.js +1 -0
- package/dist/client/assets/mermaid-parser.core-DYtj8_hH.js +7 -0
- package/dist/client/assets/mermaid.core-DQoUVKoE.js +44 -0
- package/dist/client/assets/mindmap-definition-NLK3R4M7-yqrZgVjd.js +96 -0
- package/dist/client/assets/ordinal-BDEzSJ7C.js +1 -0
- package/dist/client/assets/packet-AYTQ26CC-B26SBXWV.js +1 -0
- package/dist/client/assets/path-fybaL0A-.js +1 -0
- package/dist/client/assets/pegDiagram-GJSIUBJH-BfvMLRyD.js +1 -0
- package/dist/client/assets/pie-WAS4IAKB-DBtOIS90.js +1 -0
- package/dist/client/assets/pieDiagram-5QR66LMP-MLPjQpFM.js +39 -0
- package/dist/client/assets/quadrantDiagram-O4NWA36T-CprY7yVN.js +7 -0
- package/dist/client/assets/radar-RG4KPBEZ-Ced1CHqa.js +1 -0
- package/dist/client/assets/railroad-74A4TZTK-BsND1cV-.js +1 -0
- package/dist/client/assets/railroad-abnf-HS5TGJTU-DiXPG6oV.js +1 -0
- package/dist/client/assets/railroad-ebnf-LZEXJU2U-DgNTMybz.js +1 -0
- package/dist/client/assets/railroad-peg-WCYAUIDC-CvY-xH_Q.js +1 -0
- package/dist/client/assets/railroadDiagram-XR7U4H2S-BeHaiLp2.js +1 -0
- package/dist/client/assets/requirementDiagram-PLB6GJNP-Ck-7Hpab.js +84 -0
- package/dist/client/assets/rough.esm-Dy-Kn_BL.js +1 -0
- package/dist/client/assets/sankeyDiagram-IPEJSGJF-DmstfGGj.js +40 -0
- package/dist/client/assets/sequenceDiagram-PO4LG4MO-wco_mvTt.js +169 -0
- package/dist/client/assets/sizeCapture-INFHLROL-3uHXrFqA.js +1 -0
- package/dist/client/assets/src-D_iIdUkB.js +1 -0
- package/dist/client/assets/stateDiagram-v2-GCMORJYK-B1l0Xks5.js +291 -0
- package/dist/client/assets/swimlanes-2SLR337P-0YucaaVy.js +1 -0
- package/dist/client/assets/swimlanesDiagram-TC7HE7FX-Dx92YAeU.js +8 -0
- package/dist/client/assets/timeline-definition-EJHVYXUP-BvXqIXyV.js +120 -0
- package/dist/client/assets/treeView-Q6P3EWNA-DrBl-X_2.js +1 -0
- package/dist/client/assets/treemap-WGGIJYW6-bl_fzdzs.js +1 -0
- package/dist/client/assets/usecaseDiagram-POWQR4AR-D_lJYuuq.js +328 -0
- package/dist/client/assets/vennDiagram-UO4OBE2U-BCmaseck.js +34 -0
- package/dist/client/assets/wardley-WFR3VGLG-B2g3_G7F.js +1 -0
- package/dist/client/assets/wardleyDiagram-VNRHLVJA-CZ-FrOG9.js +78 -0
- package/dist/client/assets/xychartDiagram-PMCCYNJV-C3xVeS8n.js +7 -0
- package/dist/client/index.html +59 -0
- package/package.json +96 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{n as e,t}from"./path-fybaL0A-.js";import{t as n}from"./array-BifhSqXX.js";import{rt as r}from"./chunk-ZIGJFQKS-8PrSySWh.js";function i(e){return e[0]}function a(e){return e[1]}function o(o,s){var c=e(!0),l=null,u=r,d=null,f=t(p);o=typeof o==`function`?o:o===void 0?i:e(o),s=typeof s==`function`?s:s===void 0?a:e(s);function p(e){var t,r=(e=n(e)).length,i,a=!1,p;for(l??(d=u(p=f())),t=0;t<=r;++t)!(t<r&&c(i=e[t],t,e))===a&&((a=!a)?d.lineStart():d.lineEnd()),a&&d.point(+o(i,t,e),+s(i,t,e));if(p)return d=null,p+``||null}return p.x=function(t){return arguments.length?(o=typeof t==`function`?t:e(+t),p):o},p.y=function(t){return arguments.length?(s=typeof t==`function`?t:e(+t),p):s},p.defined=function(t){return arguments.length?(c=typeof t==`function`?t:e(!!t),p):c},p.curve=function(e){return arguments.length?(u=e,l!=null&&(d=u(l)),p):u},p.context=function(e){return arguments.length?(e==null?l=d=null:d=u(l=e),p):l},p}export{o as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{l as e,n as t,o as n,r,t as i}from"./src-D_iIdUkB.js";import{i as a,n as o,r as s,t as c}from"./defaultLocale-BFoDCU3G.js";import{t as l}from"./init-C-OQMol4.js";function u(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function d(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function f(e){let t,n,r;e.length===2?(t=e===u||e===d?e:p,n=e,r=e):(t=u,n=(t,n)=>u(e(t),n),r=(t,n)=>e(t)-n);function i(e,r,i=0,a=e.length){if(i<a){if(t(r,r)!==0)return a;do{let t=i+a>>>1;n(e[t],r)<0?i=t+1:a=t}while(i<a)}return i}function a(e,r,i=0,a=e.length){if(i<a){if(t(r,r)!==0)return a;do{let t=i+a>>>1;n(e[t],r)<=0?i=t+1:a=t}while(i<a)}return i}function o(e,t,n=0,a=e.length){let o=i(e,t,n,a-1);return o>n&&r(e[o-1],t)>-r(e[o],t)?o-1:o}return{left:i,center:o,right:a}}function p(){return 0}function m(e){return e===null?NaN:+e}var h=f(u),g=h.right;h.left,f(m).center;var _=Math.sqrt(50),v=Math.sqrt(10),y=Math.sqrt(2);function b(e,t,n){let r=(t-e)/Math.max(0,n),i=Math.floor(Math.log10(r)),a=r/10**i,o=a>=_?10:a>=v?5:a>=y?2:1,s,c,l;return i<0?(l=10**-i/o,s=Math.round(e*l),c=Math.round(t*l),s/l<e&&++s,c/l>t&&--c,l=-l):(l=10**i*o,s=Math.round(e/l),c=Math.round(t/l),s*l<e&&++s,c*l>t&&--c),c<s&&.5<=n&&n<2?b(e,t,n*2):[s,c,l]}function x(e,t,n){if(t=+t,e=+e,n=+n,!(n>0))return[];if(e===t)return[e];let r=t<e,[i,a,o]=r?b(t,e,n):b(e,t,n);if(!(a>=i))return[];let s=a-i+1,c=Array(s);if(r){if(o<0)for(let e=0;e<s;++e)c[e]=(a-e)/-o;else for(let e=0;e<s;++e)c[e]=(a-e)*o}else if(o<0)for(let e=0;e<s;++e)c[e]=(i+e)/-o;else for(let e=0;e<s;++e)c[e]=(i+e)*o;return c}function S(e,t,n){return t=+t,e=+e,n=+n,b(e,t,n)[2]}function C(e,t,n){t=+t,e=+e,n=+n;let r=t<e,i=r?S(t,e,n):S(e,t,n);return(r?-1:1)*(i<0?1/-i:i)}function w(e,t){t||=[];var n=e?Math.min(t.length,e.length):0,r=t.slice(),i;return function(a){for(i=0;i<n;++i)r[i]=e[i]*(1-a)+t[i]*a;return r}}function T(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function E(e,t){for(var n=t?t.length:0,r=e?Math.min(n,e.length):0,i=Array(r),a=Array(n),o=0;o<r;++o)i[o]=k(e[o],t[o]);for(;o<n;++o)a[o]=t[o];return function(e){for(o=0;o<r;++o)a[o]=i[o](e);return a}}function D(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}}function O(e,t){var n={},r={},i;for(i in(typeof e!=`object`||!e)&&(e={}),(typeof t!=`object`||!t)&&(t={}),t)i in e?n[i]=k(e[i],t[i]):r[i]=t[i];return function(e){for(i in n)r[i]=n[i](e);return r}}function k(a,o){var s=typeof o,c;return o==null||s===`boolean`?n(o):(s===`number`?t:s===`string`?(c=e(o))?(o=c,r):i:o instanceof e?r:o instanceof Date?D:T(o)?w:Array.isArray(o)?E:typeof o.valueOf!=`function`&&typeof o.toString!=`function`||isNaN(o)?O:t)(a,o)}function A(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}function j(e){return Math.max(0,-a(Math.abs(e)))}function M(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(a(t)/3)))*3-a(Math.abs(e)))}function N(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,a(t)-a(e))+1}function P(e){return function(){return e}}function F(e){return+e}var I=[0,1];function L(e){return e}function R(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:P(isNaN(t)?NaN:.5)}function z(e,t){var n;return e>t&&(n=e,e=t,t=n),function(n){return Math.max(e,Math.min(t,n))}}function B(e,t,n){var r=e[0],i=e[1],a=t[0],o=t[1];return i<r?(r=R(i,r),a=n(o,a)):(r=R(r,i),a=n(a,o)),function(e){return a(r(e))}}function V(e,t,n){var r=Math.min(e.length,t.length)-1,i=Array(r),a=Array(r),o=-1;for(e[r]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++o<r;)i[o]=R(e[o],e[o+1]),a[o]=n(t[o],t[o+1]);return function(t){var n=g(e,t,1,r)-1;return a[n](i[n](t))}}function H(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function U(){var e=I,n=I,r=k,i,a,o,s=L,c,l,u;function d(){var t=Math.min(e.length,n.length);return s!==L&&(s=z(e[0],e[t-1])),c=t>2?V:B,l=u=null,f}function f(t){return t==null||isNaN(t=+t)?o:(l||=c(e.map(i),n,r))(i(s(t)))}return f.invert=function(r){return s(a((u||=c(n,e.map(i),t))(r)))},f.domain=function(t){return arguments.length?(e=Array.from(t,F),d()):e.slice()},f.range=function(e){return arguments.length?(n=Array.from(e),d()):n.slice()},f.rangeRound=function(e){return n=Array.from(e),r=A,d()},f.clamp=function(e){return arguments.length?(s=e?!0:L,d()):s!==L},f.interpolate=function(e){return arguments.length?(r=e,d()):r},f.unknown=function(e){return arguments.length?(o=e,f):o},function(e,t){return i=e,a=t,d()}}function W(){return U()(L,L)}function G(e,t,n,r){var i=C(e,t,n),a;switch(r=s(r??`,f`),r.type){case`s`:var l=Math.max(Math.abs(e),Math.abs(t));return r.precision==null&&!isNaN(a=M(i,l))&&(r.precision=a),o(r,l);case``:case`e`:case`g`:case`p`:case`r`:r.precision==null&&!isNaN(a=N(i,Math.max(Math.abs(e),Math.abs(t))))&&(r.precision=a-(r.type===`e`));break;case`f`:case`%`:r.precision==null&&!isNaN(a=j(i))&&(r.precision=a-(r.type===`%`)*2)}return c(r)}function K(e){var t=e.domain;return e.ticks=function(e){var n=t();return x(n[0],n[n.length-1],e??10)},e.tickFormat=function(e,n){var r=t();return G(r[0],r[r.length-1],e??10,n)},e.nice=function(n){n??=10;var r=t(),i=0,a=r.length-1,o=r[i],s=r[a],c,l,u=10;for(s<o&&(l=o,o=s,s=l,l=i,i=a,a=l);u-->0;){if(l=S(o,s,n),l===c)return r[i]=o,r[a]=s,t(r);if(l>0)o=Math.floor(o/l)*l,s=Math.ceil(s/l)*l;else if(l<0)o=Math.ceil(o*l)/l,s=Math.floor(s*l)/l;else break;c=l}return e},e}function q(){var e=W();return e.copy=function(){return H(e,q())},l.apply(e,arguments),K(e)}export{f as a,C as i,W as n,H as r,q as t};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/info-A6RAGUB7-mIpFX_UH.js","assets/chunk-FOHPRMQF-DzxwRta7.js","assets/packet-AYTQ26CC-B26SBXWV.js","assets/pie-WAS4IAKB-DBtOIS90.js","assets/treeView-Q6P3EWNA-DrBl-X_2.js","assets/architecture-7GRP2DOG-Brw-cPmm.js","assets/gitGraph-4MIJSDKK-CUDLWiCq.js","assets/eventmodeling-NTZA5JFV-BDnaXJON.js","assets/radar-RG4KPBEZ-Ced1CHqa.js","assets/railroad-74A4TZTK-BsND1cV-.js","assets/railroad-ebnf-LZEXJU2U-DgNTMybz.js","assets/railroad-abnf-HS5TGJTU-DiXPG6oV.js","assets/railroad-peg-WCYAUIDC-CvY-xH_Q.js","assets/treemap-WGGIJYW6-bl_fzdzs.js","assets/wardley-WFR3VGLG-B2g3_G7F.js","assets/cynefin-OW5HDTMX-H13mnOIn.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{t as e}from"./index-BEY9E2Q9.js";import{C as t,S as n,_ as r,a as i,b as a,c as o,d as ee,f as te,g as ne,h as re,i as s,l as ie,m as ae,n as c,o as l,p as oe,r as se,s as ce,t as u,u as d,v as le,w as f,x as p,y as ue}from"./chunk-FOHPRMQF-DzxwRta7.js";var de=class extends u{static{p(this,`ArchitectureTokenBuilder`)}constructor(){super([`architecture`])}},fe=class extends c{static{p(this,`ArchitectureValueConverter`)}runCustomConverter(e,t,n){if(e.name===`ARCH_ICON`)return t.replace(/[()]/g,``).trim();if(e.name===`ARCH_TEXT_ICON`)return t.replace(/["()]/g,``);if(e.name===`ARCH_TITLE`){let e=t.replace(/^\[|]$/g,``).trim();return(e.startsWith(`"`)&&e.endsWith(`"`)||e.startsWith(`'`)&&e.endsWith(`'`))&&(e=e.slice(1,-1),e=e.replace(/\\"/g,`"`).replace(/\\'/g,`'`)),e.trim()}}},m={parser:{TokenBuilder:p(()=>new de,`TokenBuilder`),ValueConverter:p(()=>new fe,`ValueConverter`)}};function h(e=l){let r=f(t(e),d),i=f(n({shared:r}),se,m);return r.ServiceRegistry.register(i),{shared:r,Architecture:i}}p(h,`createArchitectureServices`);var pe=class extends u{static{p(this,`CynefinTokenBuilder`)}constructor(){super([`cynefin-beta`])}},g={parser:{TokenBuilder:p(()=>new pe,`TokenBuilder`),ValueConverter:p(()=>new s,`ValueConverter`)}};function _(e=l){let r=f(t(e),d),a=f(n({shared:r}),i,g);return r.ServiceRegistry.register(a),{shared:r,Cynefin:a}}p(_,`createCynefinServices`);var me=class extends u{static{p(this,`EventModelingTokenBuilder`)}constructor(){super([`eventmodeling`])}},v=new Set([`cmd`,`command`]),y=new Set([`evt`,`event`]),b=new Set([`rmo`,`readmodel`]),x=new Set([`pcr`,`processor`]),S=new Set([`ui`]);function C(e){let t=e.validation.EventModelingValidator,n=e.validation.ValidationRegistry;if(n){let e={EmTimeFrame:t.checkSourceFrameTypes.bind(t),EmResetFrame:t.checkSourceFrameTypes.bind(t)};n.register(e,t)}}p(C,`registerValidationChecks`);var he=class{static{p(this,`EventModelingValidator`)}checkSourceFrameTypes(e,t){e.sourceFrames.length!==0&&(v.has(e.modelEntityType)?this.validateSources(e,new Set([...S,...x]),`command`,`ui or processor`,t):y.has(e.modelEntityType)?this.validateSources(e,v,`event`,`command`,t):b.has(e.modelEntityType)?this.validateSources(e,y,`read model`,`event`,t):x.has(e.modelEntityType)?this.validateSources(e,b,`processor`,`read model`,t):S.has(e.modelEntityType)&&this.validateSources(e,b,`ui`,`read model`,t))}validateSources(e,t,n,r,i){for(let a of e.sourceFrames){let o=a.ref;o!==void 0&&!t.has(o.modelEntityType)&&i(`error`,`A ${n} can only receive input from a ${r}, not from '${o.modelEntityType}'.`,{node:e,property:`sourceFrames`})}}},w={parser:{TokenBuilder:p(()=>new me,`TokenBuilder`),ValueConverter:p(()=>new s,`ValueConverter`)},validation:{EventModelingValidator:p(()=>new he,`EventModelingValidator`)}};function T(e=l){let r=f(t(e),d),i=f(n({shared:r}),ce,w);return r.ServiceRegistry.register(i),C(i),{shared:r,EventModel:i}}p(T,`createEventModelingServices`);var ge=class extends u{static{p(this,`GitGraphTokenBuilder`)}constructor(){super([`gitGraph`])}},E={parser:{TokenBuilder:p(()=>new ge,`TokenBuilder`),ValueConverter:p(()=>new s,`ValueConverter`)}};function D(e=l){let r=f(t(e),d),i=f(n({shared:r}),o,E);return r.ServiceRegistry.register(i),{shared:r,GitGraph:i}}p(D,`createGitGraphServices`);var _e=class extends u{static{p(this,`InfoTokenBuilder`)}constructor(){super([`info`,`showInfo`])}},O={parser:{TokenBuilder:p(()=>new _e,`TokenBuilder`),ValueConverter:p(()=>new s,`ValueConverter`)}};function k(e=l){let r=f(t(e),d),i=f(n({shared:r}),ie,O);return r.ServiceRegistry.register(i),{shared:r,Info:i}}p(k,`createInfoServices`);var ve=class extends u{static{p(this,`PacketTokenBuilder`)}constructor(){super([`packet`])}},A={parser:{TokenBuilder:p(()=>new ve,`TokenBuilder`),ValueConverter:p(()=>new s,`ValueConverter`)}};function j(e=l){let r=f(t(e),d),i=f(n({shared:r}),ee,A);return r.ServiceRegistry.register(i),{shared:r,Packet:i}}p(j,`createPacketServices`);var ye=class extends u{static{p(this,`PieTokenBuilder`)}constructor(){super([`pie`,`showData`])}},be=class extends c{static{p(this,`PieValueConverter`)}runCustomConverter(e,t,n){if(e.name===`PIE_SECTION_LABEL`)return t.replace(/"/g,``).trim()}},M={parser:{TokenBuilder:p(()=>new ye,`TokenBuilder`),ValueConverter:p(()=>new be,`ValueConverter`)}};function N(e=l){let r=f(t(e),d),i=f(n({shared:r}),te,M);return r.ServiceRegistry.register(i),{shared:r,Pie:i}}p(N,`createPieServices`);var xe=class extends u{static{p(this,`RadarTokenBuilder`)}constructor(){super([`radar-beta`])}},P={parser:{TokenBuilder:p(()=>new xe,`TokenBuilder`),ValueConverter:p(()=>new s,`ValueConverter`)}};function F(e=l){let r=f(t(e),d),i=f(n({shared:r}),oe,P);return r.ServiceRegistry.register(i),{shared:r,Radar:i}}p(F,`createRadarServices`);var Se=class extends u{static{p(this,`RailroadTokenBuilder`)}constructor(){super([`railroad-beta`])}},I=p(e=>{let t=e.slice(1,-1),n=``;for(let e=0;e<t.length;e++){let r=t[e];if(r===`\\`&&e+1<t.length){e++;let r=t[e];switch(r){case`n`:n+=`
|
|
3
|
+
`;break;case`r`:n+=`\r`;break;case`t`:n+=` `;break;default:n+=r}continue}n+=r}return n},`decodeEscapedString`),Ce=class extends c{static{p(this,`RailroadValueConverter`)}runConverter(e,t,n){let r=super.runConverter(e,t,n);if(e.name===`TITLE`&&typeof r==`string`){let e=r.trim();if(e.startsWith(`"`)&&e.endsWith(`"`)||e.startsWith(`'`)&&e.endsWith(`'`))return I(e)}return r}runCustomConverter(e,t,n){if(e.name===`RR_STRING`)return I(t)}},L={parser:{TokenBuilder:p(()=>new Se,`TokenBuilder`),ValueConverter:p(()=>new Ce,`ValueConverter`)}};function we(e=l){let r=f(t(e),d),i=f(n({shared:r}),ne,L);return r.ServiceRegistry.register(i),{shared:r,Railroad:i}}p(we,`createRailroadServices`);var Te=class extends u{static{p(this,`RailroadAbnfTokenBuilder`)}constructor(){super([`railroad-abnf-beta`])}},Ee=class extends c{static{p(this,`RailroadAbnfValueConverter`)}runConverter(e,t,n){let r=super.runConverter(e,t,n);if(e.name===`TITLE`&&typeof r==`string`){let e=r.trim();if(e.startsWith(`"`)&&e.endsWith(`"`)||e.startsWith(`'`)&&e.endsWith(`'`))return e.slice(1,-1)}return r}runCustomConverter(e,t,n){if(e.name===`ABNF_STRING`)return t.slice(1,-1)}},R={parser:{TokenBuilder:p(()=>new Te,`TokenBuilder`),ValueConverter:p(()=>new Ee,`ValueConverter`)}};function z(e=l){let r=f(t(e),d),i=f(n({shared:r}),ae,R);return r.ServiceRegistry.register(i),{shared:r,RailroadAbnf:i}}p(z,`createRailroadAbnfServices`);var De=class extends u{static{p(this,`RailroadEbnfTokenBuilder`)}constructor(){super([`railroad-ebnf-beta`])}},B=p(e=>{let t=e.slice(1,-1),n=``;for(let e=0;e<t.length;e++){let r=t[e];if(r===`\\`&&e+1<t.length){e++;let r=t[e];switch(r){case`n`:n+=`
|
|
4
|
+
`;break;case`r`:n+=`\r`;break;case`t`:n+=` `;break;default:n+=r}continue}n+=r}return n},`decodeEscapedString`),Oe=class extends c{static{p(this,`RailroadEbnfValueConverter`)}runConverter(e,t,n){let r=super.runConverter(e,t,n);if(e.name===`TITLE`&&typeof r==`string`){let e=r.trim();if(e.startsWith(`"`)&&e.endsWith(`"`)||e.startsWith(`'`)&&e.endsWith(`'`))return B(e)}return r}runCustomConverter(e,t,n){if(e.name===`EBNF_STRING`)return B(t);if(e.name===`EBNF_SPECIAL_SEQUENCE`)return t.slice(1,-1).trim()}},V={parser:{TokenBuilder:p(()=>new De,`TokenBuilder`),ValueConverter:p(()=>new Oe,`ValueConverter`)}};function H(e=l){let r=f(t(e),d),i=f(n({shared:r}),re,V);return r.ServiceRegistry.register(i),{shared:r,RailroadEbnf:i}}p(H,`createRailroadEbnfServices`);var ke=class extends u{static{p(this,`RailroadPegTokenBuilder`)}constructor(){super([`railroad-peg-beta`])}},U=p(e=>{let t=e.slice(1,-1),n=``;for(let e=0;e<t.length;e++){let r=t[e];if(r===`\\`&&e+1<t.length){e++;let r=t[e];switch(r){case`n`:n+=`
|
|
5
|
+
`;break;case`r`:n+=`\r`;break;case`t`:n+=` `;break;default:n+=r}continue}n+=r}return n},`decodeEscapedString`),Ae=class extends c{static{p(this,`RailroadPegValueConverter`)}runConverter(e,t,n){let r=super.runConverter(e,t,n);if(e.name===`TITLE`&&typeof r==`string`){let e=r.trim();if(e.startsWith(`"`)&&e.endsWith(`"`)||e.startsWith(`'`)&&e.endsWith(`'`))return U(e)}return r}runCustomConverter(e,t,n){if(e.name===`PEG_STRING`)return U(t)}},W={parser:{TokenBuilder:p(()=>new ke,`TokenBuilder`),ValueConverter:p(()=>new Ae,`ValueConverter`)}};function G(e=l){let i=f(t(e),d),a=f(n({shared:i}),r,W);return i.ServiceRegistry.register(a),{shared:i,RailroadPeg:a}}p(G,`createRailroadPegServices`);var je=class extends c{static{p(this,`TreeViewValueConverter`)}runCustomConverter(e,t,n){if(e.name===`INDENTATION`)return t?.length||0;if(e.name===`QUOTED_NAME`)return t.substring(1,t.length-1);if(e.name===`BARE_NAME`)return t.replace(/[\t ]+$/,``);if(e.name===`CLASS_ANNOTATION`)return t.trim().substring(3).trim();if(e.name===`ICON_ANNOTATION`){let e=t.trim();return e.substring(5,e.length-1)}if(e.name===`DESC_ANNOTATION`)return t.trim().substring(2).trim()}},Me=class extends u{static{p(this,`TreeViewTokenBuilder`)}constructor(){super([`treeView-beta`])}},K={parser:{TokenBuilder:p(()=>new Me,`TokenBuilder`),ValueConverter:p(()=>new je,`ValueConverter`)}};function q(e=l){let r=f(t(e),d),i=f(n({shared:r}),le,K);return r.ServiceRegistry.register(i),{shared:r,TreeView:i}}p(q,`createTreeViewServices`);var Ne=class extends u{static{p(this,`TreemapTokenBuilder`)}constructor(){super([`treemap`])}},Pe=/classDef\s+([A-Z_a-z]\w+)(?:\s+([^\n\r;]*))?;?/,Fe=class extends c{static{p(this,`TreemapValueConverter`)}runCustomConverter(e,t,n){if(e.name===`NUMBER2`)return parseFloat(t.replace(/,/g,``));if(e.name===`SEPARATOR`||e.name===`STRING2`)return t.substring(1,t.length-1);if(e.name===`INDENTATION`)return t.length;if(e.name===`ClassDef`){if(typeof t!=`string`)return t;let e=Pe.exec(t);if(e)return{$type:`ClassDefStatement`,className:e[1],styleText:e[2]||void 0}}}};function J(e){let t=e.validation.TreemapValidator,n=e.validation.ValidationRegistry;if(n){let e={Treemap:t.checkSingleRoot.bind(t)};n.register(e,t)}}p(J,`registerValidationChecks`);var Ie=class{static{p(this,`TreemapValidator`)}checkSingleRoot(e,t){let n;for(let r of e.TreemapRows)r.item&&(n===void 0&&r.indent===void 0?n=0:(r.indent===void 0||n!==void 0&&n>=parseInt(r.indent,10))&&t(`error`,`Multiple root nodes are not allowed in a treemap.`,{node:r,property:`item`}))}},Y={parser:{TokenBuilder:p(()=>new Ne,`TokenBuilder`),ValueConverter:p(()=>new Fe,`ValueConverter`)},validation:{TreemapValidator:p(()=>new Ie,`TreemapValidator`)}};function X(e=l){let r=f(t(e),d),i=f(n({shared:r}),ue,Y);return r.ServiceRegistry.register(i),J(i),{shared:r,Treemap:i}}p(X,`createTreemapServices`);var Le=class extends c{static{p(this,`WardleyValueConverter`)}runCustomConverter(e,t,n){switch(e.name.toUpperCase()){case`LINK_LABEL`:return t.substring(1).trim();default:return}}},Z={parser:{ValueConverter:p(()=>new Le,`ValueConverter`)}};function Q(e=l){let r=f(t(e),d),i=f(n({shared:r}),a,Z);return r.ServiceRegistry.register(i),{shared:r,Wardley:i}}p(Q,`createWardleyServices`);var $={},Re={info:p(async()=>{let{createInfoServices:t}=await e(async()=>{let{createInfoServices:e}=await import(`./info-A6RAGUB7-mIpFX_UH.js`);return{createInfoServices:e}},__vite__mapDeps([0,1]));$.info=t().Info.parser.LangiumParser},`info`),packet:p(async()=>{let{createPacketServices:t}=await e(async()=>{let{createPacketServices:e}=await import(`./packet-AYTQ26CC-B26SBXWV.js`);return{createPacketServices:e}},__vite__mapDeps([2,1]));$.packet=t().Packet.parser.LangiumParser},`packet`),pie:p(async()=>{let{createPieServices:t}=await e(async()=>{let{createPieServices:e}=await import(`./pie-WAS4IAKB-DBtOIS90.js`);return{createPieServices:e}},__vite__mapDeps([3,1]));$.pie=t().Pie.parser.LangiumParser},`pie`),treeView:p(async()=>{let{createTreeViewServices:t}=await e(async()=>{let{createTreeViewServices:e}=await import(`./treeView-Q6P3EWNA-DrBl-X_2.js`);return{createTreeViewServices:e}},__vite__mapDeps([4,1]));$.treeView=t().TreeView.parser.LangiumParser},`treeView`),architecture:p(async()=>{let{createArchitectureServices:t}=await e(async()=>{let{createArchitectureServices:e}=await import(`./architecture-7GRP2DOG-Brw-cPmm.js`);return{createArchitectureServices:e}},__vite__mapDeps([5,1]));$.architecture=t().Architecture.parser.LangiumParser},`architecture`),gitGraph:p(async()=>{let{createGitGraphServices:t}=await e(async()=>{let{createGitGraphServices:e}=await import(`./gitGraph-4MIJSDKK-CUDLWiCq.js`);return{createGitGraphServices:e}},__vite__mapDeps([6,1]));$.gitGraph=t().GitGraph.parser.LangiumParser},`gitGraph`),eventmodeling:p(async()=>{let{createEventModelingServices:t}=await e(async()=>{let{createEventModelingServices:e}=await import(`./eventmodeling-NTZA5JFV-BDnaXJON.js`);return{createEventModelingServices:e}},__vite__mapDeps([7,1]));$.eventmodeling=t().EventModel.parser.LangiumParser},`eventmodeling`),radar:p(async()=>{let{createRadarServices:t}=await e(async()=>{let{createRadarServices:e}=await import(`./radar-RG4KPBEZ-Ced1CHqa.js`);return{createRadarServices:e}},__vite__mapDeps([8,1]));$.radar=t().Radar.parser.LangiumParser},`radar`),railroad:p(async()=>{let{createRailroadServices:t}=await e(async()=>{let{createRailroadServices:e}=await import(`./railroad-74A4TZTK-BsND1cV-.js`);return{createRailroadServices:e}},__vite__mapDeps([9,1]));$.railroad=t().Railroad.parser.LangiumParser},`railroad`),railroadEbnf:p(async()=>{let{createRailroadEbnfServices:t}=await e(async()=>{let{createRailroadEbnfServices:e}=await import(`./railroad-ebnf-LZEXJU2U-DgNTMybz.js`);return{createRailroadEbnfServices:e}},__vite__mapDeps([10,1]));$.railroadEbnf=t().RailroadEbnf.parser.LangiumParser},`railroadEbnf`),railroadAbnf:p(async()=>{let{createRailroadAbnfServices:t}=await e(async()=>{let{createRailroadAbnfServices:e}=await import(`./railroad-abnf-HS5TGJTU-DiXPG6oV.js`);return{createRailroadAbnfServices:e}},__vite__mapDeps([11,1]));$.railroadAbnf=t().RailroadAbnf.parser.LangiumParser},`railroadAbnf`),railroadPeg:p(async()=>{let{createRailroadPegServices:t}=await e(async()=>{let{createRailroadPegServices:e}=await import(`./railroad-peg-WCYAUIDC-CvY-xH_Q.js`);return{createRailroadPegServices:e}},__vite__mapDeps([12,1]));$.railroadPeg=t().RailroadPeg.parser.LangiumParser},`railroadPeg`),treemap:p(async()=>{let{createTreemapServices:t}=await e(async()=>{let{createTreemapServices:e}=await import(`./treemap-WGGIJYW6-bl_fzdzs.js`);return{createTreemapServices:e}},__vite__mapDeps([13,1]));$.treemap=t().Treemap.parser.LangiumParser},`treemap`),wardley:p(async()=>{let{createWardleyServices:t}=await e(async()=>{let{createWardleyServices:e}=await import(`./wardley-WFR3VGLG-B2g3_G7F.js`);return{createWardleyServices:e}},__vite__mapDeps([14,1]));$.wardley=t().Wardley.parser.LangiumParser},`wardley`),cynefin:p(async()=>{let{createCynefinServices:t}=await e(async()=>{let{createCynefinServices:e}=await import(`./cynefin-OW5HDTMX-H13mnOIn.js`);return{createCynefinServices:e}},__vite__mapDeps([15,1]));$.cynefin=t().Cynefin.parser.LangiumParser},`cynefin`)};async function ze(e,t){let n=Re[e];if(!n)throw Error(`Unknown diagram type: ${e}`);$[e]||await n();let r=$[e].parse(t);if(r.lexerErrors.length>0||r.parserErrors.length>0)throw new Be(r);return r.value}p(ze,`parse`);var Be=class extends Error{constructor(e){let t=e.lexerErrors.map(e=>`Lexer error on line ${e.line!==void 0&&!isNaN(e.line)?e.line:`?`}, column ${e.column!==void 0&&!isNaN(e.column)?e.column:`?`}: ${e.message}`).join(`
|
|
6
|
+
`),n=e.parserErrors.map(e=>`Parse error on line ${e.token.startLine!==void 0&&!isNaN(e.token.startLine)?e.token.startLine:`?`}, column ${e.token.startColumn!==void 0&&!isNaN(e.token.startColumn)?e.token.startColumn:`?`}: ${e.message}`).join(`
|
|
7
|
+
`);super(`Parsing failed: ${t} ${n}`),this.result=e}static{p(this,`MermaidParseError`)}};export{_ as A,O as C,w as D,D as E,h as M,T as O,j as S,E as T,P as _,Y as a,N as b,q as c,V as d,H as f,we as g,L as h,Q as i,m as j,g as k,W as l,z as m,ze as n,X as o,R as p,Z as r,K as s,Be as t,G as u,F as v,k as w,A as x,M as y};
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/elk-276RUBZZ-F1vDPlT8.js","assets/src-D_iIdUkB.js","assets/chunk-Y2CYZVJY-DsF7k-Jl.js","assets/chunk-O7XYJQB3-Bqi4DWie.js","assets/index-BEY9E2Q9.js","assets/index-FULGulkF.css","assets/chunk-ZIGJFQKS-8PrSySWh.js","assets/dist-Bfr8PhAA.js","assets/chunk-742MDFTN-CSlr64s4.js","assets/chunk-MBY4JIJT--fcyBAwh.js","assets/chunk-7PRAP22T-CE6VUtLz.js","assets/chunk-7INBJB4K-CelZsjbp.js","assets/chunk-J5ZVWO5B-oDCd-gWO.js","assets/rough.esm-Dy-Kn_BL.js","assets/chunk-5DYCD2WN-CnbWAgyo.js","assets/chunk-Z7XXMR3K-BFUBfhD1.js","assets/line-B4MFnJjP.js","assets/path-fybaL0A-.js","assets/array-BifhSqXX.js","assets/chunk-UA2S7LBM-BjrJ4RAw.js","assets/chunk-3FUC2YCW-B4uxGZek.js","assets/graphlib-DS17s2tU.js","assets/chunk-NETBCI7D-Rdu9faBx.js","assets/dagre-6A5THRUB-DtRiYFPQ.js","assets/swimlanes-2SLR337P-0YucaaVy.js","assets/cose-bilkent-JH36ORCC-Bm2Bhb7n.js","assets/cytoscape.esm-Yq6u8L66.js","assets/c4Diagram-YGBWAQC7-BkFaWKQU.js","assets/chunk-GWA4HPMP-CPJ61ePi.js","assets/flowDiagram-KWPJA3E3-DC2FrXkH.js","assets/chunk-XXDRQBXY-C1_eEj17.js","assets/chunk-WEXAMYUT-CnyLp8pC.js","assets/chunk-7M6MHVWA-De6KLJmg.js","assets/channel-BrqIJdOD.js","assets/chunk-5VM5RSS4-ZNzvKenW.js","assets/diagram-22UHCM2B-DqFq9NIL.js","assets/swimlanesDiagram-TC7HE7FX-Dx92YAeU.js","assets/erDiagram-OPXOYQCR-JFHuQAWq.js","assets/gitGraphDiagram-X574FWY7-Cy-gNPac.js","assets/mermaid-parser.core-DYtj8_hH.js","assets/chunk-FOHPRMQF-DzxwRta7.js","assets/chunk-JWPE2WC7-DVXcaiue.js","assets/chunk-2Q5K7J3B-C1jixKkw.js","assets/ganttDiagram-FUAMR5RP-C5psbznc.js","assets/linear-ZUqVn2xB.js","assets/defaultLocale-BFoDCU3G.js","assets/init-C-OQMol4.js","assets/infoDiagram-VRGFBTTK-DnkrYsVs.js","assets/pieDiagram-5QR66LMP-MLPjQpFM.js","assets/ordinal-BDEzSJ7C.js","assets/arc-BJA87daU.js","assets/quadrantDiagram-O4NWA36T-CprY7yVN.js","assets/xychartDiagram-PMCCYNJV-C3xVeS8n.js","assets/requirementDiagram-PLB6GJNP-Ck-7Hpab.js","assets/sequenceDiagram-PO4LG4MO-wco_mvTt.js","assets/classDiagram-v2-NBCMYWYE-KufjDRbB.js","assets/stateDiagram-v2-GCMORJYK-B1l0Xks5.js","assets/journeyDiagram-ZHPQQLJL-CY5HU_eC.js","assets/timeline-definition-EJHVYXUP-BvXqIXyV.js","assets/mindmap-definition-NLK3R4M7-yqrZgVjd.js","assets/kanban-definition-PNTS6WVX-DvzRwcD7.js","assets/sankeyDiagram-IPEJSGJF-DmstfGGj.js","assets/diagram-MLGK6HIB-C55nJ_CR.js","assets/diagram-MPIPVDR6-DeYo8-yc.js","assets/blockDiagram-BEXU5L5S-DFIHGD-G.js","assets/chunk-DUW6YSOI-Dgx8z5s3.js","assets/diagram-CDSNMT55-owh05Yfi.js","assets/architectureDiagram-NJMV4G6O-BNbYrQOP.js","assets/diagram-ATOU4E4O-B6wVKZ5z.js","assets/ishikawaDiagram-OU5B5YK6-_u6_xJba.js","assets/vennDiagram-UO4OBE2U-BCmaseck.js","assets/diagram-3UASUU5V-C2qQgCvw.js","assets/usecaseDiagram-POWQR4AR-D_lJYuuq.js","assets/wardleyDiagram-VNRHLVJA-CZ-FrOG9.js","assets/cynefinDiagram-VND7K2PF-CI5Kf3Kt.js","assets/railroadDiagram-XR7U4H2S-BeHaiLp2.js","assets/chunk-GTNCS2PH-DfgoKLZ5.js","assets/ebnfDiagram-ZINNZB2B-BoJE7Elt.js","assets/abnfDiagram-O67JEVCF-BniYQwXa.js","assets/pegDiagram-GJSIUBJH-BfvMLRyD.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{h as e,m as t,p as n}from"./src-D_iIdUkB.js";import{t as r}from"./index-BEY9E2Q9.js";import{n as i}from"./chunk-Y2CYZVJY-DsF7k-Jl.js";import{$ as a,C as o,E as s,I as c,J as l,K as u,L as d,N as f,P as p,Q as m,S as h,T as g,V as _,W as v,Z as y,_ as b,b as x,c as S,et as C,f as w,g as ee,l as T,m as E,n as D,p as O,r as k,s as A,t as j,u as M,x as te}from"./chunk-O7XYJQB3-Bqi4DWie.js";import{S as N,a as P,d as F,f as I,g as L,h as ne,i as re,o as ie,v as ae,x as oe,y as se}from"./chunk-ZIGJFQKS-8PrSySWh.js";import{r as ce}from"./chunk-742MDFTN-CSlr64s4.js";import{a as le}from"./chunk-MBY4JIJT--fcyBAwh.js";import{t as ue}from"./chunk-DUW6YSOI-Dgx8z5s3.js";import"./chunk-7PRAP22T-CE6VUtLz.js";import{o as de}from"./chunk-7INBJB4K-CelZsjbp.js";import{r as fe}from"./chunk-5DYCD2WN-CnbWAgyo.js";import{a as pe,c as me,i as R,l as he}from"./chunk-Z7XXMR3K-BFUBfhD1.js";import{r as ge}from"./chunk-UA2S7LBM-BjrJ4RAw.js";var _e=i(e=>{let{securityLevel:t}=te(),r=n(`body`);if(t===`sandbox`){let t=n(`#i${e}`).node()?.contentDocument??document;r=n(t.body)}return r.select(`#${e}`)},`selectSvgElement`);function ve(e){let t=e?.constructor;return e===(typeof t==`function`?t.prototype:Object.prototype)}function ye(e){if(e==null)return!0;if(oe(e))return typeof e.splice!=`function`&&typeof e!=`string`&&!N(e)&&!ae(e)&&!se(e)?!1:e.length===0;if(typeof e==`object`||typeof e==`function`){if(e instanceof Map||e instanceof Set)return e.size===0;let t=Object.keys(e);return ve(e)?t.filter(e=>e!==`constructor`).length===0:t.length===0}return!0}var be={common:A,getConfig:x,insertCluster:ge,insertEdge:R,insertEdgeLabel:pe,insertMarkers:me,insertNode:fe,interpolateToCurve:F,labelHelper:de,log:t,positionEdgeLabel:he},xe=[`elk.stress`,`elk.force`,`elk.mrtree`,`elk.sporeOverlap`,`elk.box`,`elk.rectpacking`],Se=Object.create(null),Ce=i(e=>{for(let t of e)Se[t.name]=t},`registerLayoutLoaders`),we=i(()=>{let e=i(async()=>await r(()=>import(`./elk-276RUBZZ-F1vDPlT8.js`),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22])),`loader`);return[{name:`elk`,loader:e,algorithm:`elk.layered`},...xe.map(t=>({name:t,loader:e,algorithm:t}))]},`elkLayoutLoaders`);i(()=>{Ce([{name:`dagre`,loader:i(async()=>await r(()=>import(`./dagre-6A5THRUB-DtRiYFPQ.js`),__vite__mapDeps([23,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,21,19,20])),`loader`)},{name:`swimlane`,loader:i(async()=>await r(()=>import(`./swimlanes-2SLR337P-0YucaaVy.js`),__vite__mapDeps([24,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22])),`loader`)},{name:`cose-bilkent`,loader:i(async()=>await r(()=>import(`./cose-bilkent-JH36ORCC-Bm2Bhb7n.js`),__vite__mapDeps([25,1,2,26])),`loader`)},...we()])},`registerDefaultLayoutLoaders`)();var Te=i(async(e,t)=>{if(!Object.hasOwn(Se,e.layoutAlgorithm))throw Error(`Unknown layout algorithm: ${e.layoutAlgorithm}`);if(e.diagramId)for(let t of e.nodes){let n=t.domId||t.id;t.domId=`${e.diagramId}-${n}`}let n=Se[e.layoutAlgorithm],r=await n.loader();return ue(t,e.config),r.render(e,t,be,{algorithm:n.algorithm})},`render`),Ee=`dagre`,De=i((e=``,{fallback:n=Ee}={})=>{if(Object.hasOwn(Se,e))return e;for(let r of[n,Ee])if(Object.hasOwn(Se,r))return t.warn(`Layout algorithm ${e} is not registered. Using ${r} as fallback.`),r;throw Error(`Neither layout algorithm ${e}, ${n}, nor ${Ee} is registered.`)},`getRegisteredLayoutAlgorithm`);function Oe(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,`default`)?e.default:e}i(Oe,`getDefaultExportFromCjs`);var z={},ke={},B={},Ae;function V(){if(Ae)return B;Ae=1;function e(e){return e==null}i(e,`isNothing`);function t(e){return typeof e==`object`&&!!e}i(t,`isObject`);function n(t){return Array.isArray(t)?t:e(t)?[]:[t]}i(n,`toArray`);function r(e,t){if(t){let n=Object.keys(t);for(let r=0,i=n.length;r<i;r+=1){let i=n[r];e[i]=t[i]}}return e}i(r,`extend`);function a(e,t){let n=``;for(let r=0;r<t;r+=1)n+=e;return n}i(a,`repeat`);function o(e){return e===0&&1/e==-1/0}return i(o,`isNegativeZero`),B.isNothing=e,B.isObject=t,B.toArray=n,B.repeat=a,B.isNegativeZero=o,B.extend=r,B}i(V,`requireCommon`);var je,Me;function H(){if(Me)return je;Me=1;function e(e,t){let n=``,r=e.reason||`(unknown reason)`;return e.mark?(e.mark.name&&(n+=`in "`+e.mark.name+`" `),n+=`(`+(e.mark.line+1)+`:`+(e.mark.column+1)+`)`,!t&&e.mark.snippet&&(n+=`
|
|
3
|
+
|
|
4
|
+
`+e.mark.snippet),r+` `+n):r}i(e,`formatError`);function t(t,n){Error.call(this),this.name=`YAMLException`,this.reason=t,this.mark=n,this.message=e(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=Error().stack||``}return i(t,`YAMLException2`),t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t.prototype.toString=i(function(t){return this.name+`: `+e(this,t)},`toString`),je=t,je}i(H,`requireException`);var Ne,Pe;function Fe(){if(Pe)return Ne;Pe=1;let e=V();function t(e,t,n,r,i){let a=``,o=``,s=Math.floor(i/2)-1;return r-t>s&&(a=` ... `,t=r-s+a.length),n-r>s&&(o=` ...`,n=r+s-o.length),{str:a+e.slice(t,n).replace(/\t/g,`→`)+o,pos:r-t+a.length}}i(t,`getLine`);function n(t,n){return e.repeat(` `,n-t.length)+t}i(n,`padStart`);function r(r,i){if(i=Object.create(i||null),!r.buffer)return null;i.maxLength||(i.maxLength=79),typeof i.indent!=`number`&&(i.indent=1),typeof i.linesBefore!=`number`&&(i.linesBefore=3),typeof i.linesAfter!=`number`&&(i.linesAfter=2);let a=/\r?\n|\r|\0/g,o=[0],s=[],c,l=-1;for(;c=a.exec(r.buffer);)s.push(c.index),o.push(c.index+c[0].length),r.position<=c.index&&l<0&&(l=o.length-2);l<0&&(l=o.length-1);let u=``,d=Math.min(r.line+i.linesAfter,s.length).toString().length,f=i.maxLength-(i.indent+d+3);for(let a=1;a<=i.linesBefore&&!(l-a<0);a++){let c=t(r.buffer,o[l-a],s[l-a],r.position-(o[l]-o[l-a]),f);u=e.repeat(` `,i.indent)+n((r.line-a+1).toString(),d)+` | `+c.str+`
|
|
5
|
+
`+u}let p=t(r.buffer,o[l],s[l],r.position,f);u+=e.repeat(` `,i.indent)+n((r.line+1).toString(),d)+` | `+p.str+`
|
|
6
|
+
`,u+=e.repeat(`-`,i.indent+d+3+p.pos)+`^
|
|
7
|
+
`;for(let a=1;a<=i.linesAfter&&!(l+a>=s.length);a++){let c=t(r.buffer,o[l+a],s[l+a],r.position-(o[l]-o[l+a]),f);u+=e.repeat(` `,i.indent)+n((r.line+a+1).toString(),d)+` | `+c.str+`
|
|
8
|
+
`}return u.replace(/\n$/,``)}return i(r,`makeSnippet`),Ne=r,Ne}i(Fe,`requireSnippet`);var Ie,Le;function U(){if(Le)return Ie;Le=1;let e=H(),t=[`kind`,`multi`,`resolve`,`construct`,`instanceOf`,`predicate`,`represent`,`representName`,`defaultStyle`,`styleAliases`],n=[`scalar`,`sequence`,`mapping`];function r(e){let t={};return e!==null&&Object.keys(e).forEach(function(n){e[n].forEach(function(e){t[String(e)]=n})}),t}i(r,`compileStyleAliases`);function a(i,a){if(a||={},Object.keys(a).forEach(function(n){if(t.indexOf(n)===-1)throw new e(`Unknown option "`+n+`" is met in definition of "`+i+`" YAML type.`)}),this.options=a,this.tag=i,this.kind=a.kind||null,this.resolve=a.resolve||function(){return!0},this.construct=a.construct||function(e){return e},this.instanceOf=a.instanceOf||null,this.predicate=a.predicate||null,this.represent=a.represent||null,this.representName=a.representName||null,this.defaultStyle=a.defaultStyle||null,this.multi=a.multi||!1,this.styleAliases=r(a.styleAliases||null),n.indexOf(this.kind)===-1)throw new e(`Unknown kind "`+this.kind+`" is specified for "`+i+`" YAML type.`)}return i(a,`Type2`),Ie=a,Ie}i(U,`requireType`);var Re,ze;function Be(){if(ze)return Re;ze=1;let e=H(),t=U();function n(e,t){let n=[];return e[t].forEach(function(e){let t=n.length;n.forEach(function(n,r){n.tag===e.tag&&n.kind===e.kind&&n.multi===e.multi&&(t=r)}),n[t]=e}),n}i(n,`compileList`);function r(){let e={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}};function t(t){t.multi?(e.multi[t.kind].push(t),e.multi.fallback.push(t)):e[t.kind][t.tag]=e.fallback[t.tag]=t}i(t,`collectType`);for(let e=0,n=arguments.length;e<n;e+=1)arguments[e].forEach(t);return e}i(r,`compileMap`);function a(e){return this.extend(e)}return i(a,`Schema2`),a.prototype.extend=i(function(i){let o=[],s=[];if(i instanceof t)s.push(i);else if(Array.isArray(i))s=s.concat(i);else if(i&&(Array.isArray(i.implicit)||Array.isArray(i.explicit)))i.implicit&&(o=o.concat(i.implicit)),i.explicit&&(s=s.concat(i.explicit));else throw new e(`Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })`);o.forEach(function(n){if(!(n instanceof t))throw new e(`Specified list of YAML types (or a single Type object) contains a non-Type object.`);if(n.loadKind&&n.loadKind!==`scalar`)throw new e(`There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.`);if(n.multi)throw new e(`There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.`)}),s.forEach(function(n){if(!(n instanceof t))throw new e(`Specified list of YAML types (or a single Type object) contains a non-Type object.`)});let c=Object.create(a.prototype);return c.implicit=(this.implicit||[]).concat(o),c.explicit=(this.explicit||[]).concat(s),c.compiledImplicit=n(c,`implicit`),c.compiledExplicit=n(c,`explicit`),c.compiledTypeMap=r(c.compiledImplicit,c.compiledExplicit),c},`extend`),Re=a,Re}i(Be,`requireSchema`);var Ve,He;function Ue(){return He?Ve:(He=1,Ve=new(U())(`tag:yaml.org,2002:str`,{kind:`scalar`,construct:i(function(e){return e===null?``:e},`construct`)}),Ve)}i(Ue,`requireStr`);var We,Ge;function Ke(){return Ge?We:(Ge=1,We=new(U())(`tag:yaml.org,2002:seq`,{kind:`sequence`,construct:i(function(e){return e===null?[]:e},`construct`)}),We)}i(Ke,`requireSeq`);var qe,Je;function Ye(){return Je?qe:(Je=1,qe=new(U())(`tag:yaml.org,2002:map`,{kind:`mapping`,construct:i(function(e){return e===null?{}:e},`construct`)}),qe)}i(Ye,`requireMap`);var Xe,Ze;function Qe(){return Ze?Xe:(Ze=1,Xe=new(Be())({explicit:[Ue(),Ke(),Ye()]}),Xe)}i(Qe,`requireFailsafe`);var $e,et;function tt(){if(et)return $e;et=1;let e=U();function t(e){if(e===null)return!0;let t=e.length;return t===1&&e===`~`||t===4&&(e===`null`||e===`Null`||e===`NULL`)}i(t,`resolveYamlNull`);function n(){return null}i(n,`constructYamlNull`);function r(e){return e===null}return i(r,`isNull`),$e=new e(`tag:yaml.org,2002:null`,{kind:`scalar`,resolve:t,construct:n,predicate:r,represent:{canonical:i(function(){return`~`},`canonical`),lowercase:i(function(){return`null`},`lowercase`),uppercase:i(function(){return`NULL`},`uppercase`),camelcase:i(function(){return`Null`},`camelcase`),empty:i(function(){return``},`empty`)},defaultStyle:`lowercase`}),$e}i(tt,`require_null`);var nt,rt;function it(){if(rt)return nt;rt=1;let e=U();function t(e){if(e===null)return!1;let t=e.length;return t===4&&(e===`true`||e===`True`||e===`TRUE`)||t===5&&(e===`false`||e===`False`||e===`FALSE`)}i(t,`resolveYamlBoolean`);function n(e){return e===`true`||e===`True`||e===`TRUE`}i(n,`constructYamlBoolean`);function r(e){return Object.prototype.toString.call(e)===`[object Boolean]`}return i(r,`isBoolean`),nt=new e(`tag:yaml.org,2002:bool`,{kind:`scalar`,resolve:t,construct:n,predicate:r,represent:{lowercase:i(function(e){return e?`true`:`false`},`lowercase`),uppercase:i(function(e){return e?`TRUE`:`FALSE`},`uppercase`),camelcase:i(function(e){return e?`True`:`False`},`camelcase`)},defaultStyle:`lowercase`}),nt}i(it,`requireBool`);var at,ot;function st(){if(ot)return at;ot=1;let e=V(),t=U();function n(e){return e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102}i(n,`isHexCode`);function r(e){return e>=48&&e<=55}i(r,`isOctCode`);function a(e){return e>=48&&e<=57}i(a,`isDecCode`);function o(e){if(e===null)return!1;let t=e.length,i=0,o=!1;if(!t)return!1;let c=e[i];if((c===`-`||c===`+`)&&(c=e[++i]),c===`0`){if(i+1===t)return!0;if(c=e[++i],c===`b`){for(i++;i<t;i++){if(c=e[i],c!==`0`&&c!==`1`)return!1;o=!0}return o&&isFinite(s(e))}if(c===`x`){for(i++;i<t;i++){if(!n(e.charCodeAt(i)))return!1;o=!0}return o&&isFinite(s(e))}if(c===`o`){for(i++;i<t;i++){if(!r(e.charCodeAt(i)))return!1;o=!0}return o&&isFinite(s(e))}}for(;i<t;i++){if(!a(e.charCodeAt(i)))return!1;o=!0}return o?isFinite(s(e)):!1}i(o,`resolveYamlInteger`);function s(e){let t=e,n=1,r=t[0];if((r===`-`||r===`+`)&&(r===`-`&&(n=-1),t=t.slice(1),r=t[0]),t===`0`)return 0;if(r===`0`){if(t[1]===`b`)return n*parseInt(t.slice(2),2);if(t[1]===`x`)return n*parseInt(t.slice(2),16);if(t[1]===`o`)return n*parseInt(t.slice(2),8)}return n*parseInt(t,10)}i(s,`parseYamlInteger`);function c(e){return s(e)}i(c,`constructYamlInteger`);function l(t){return Object.prototype.toString.call(t)===`[object Number]`&&t%1==0&&!e.isNegativeZero(t)}return i(l,`isInteger`),at=new t(`tag:yaml.org,2002:int`,{kind:`scalar`,resolve:o,construct:c,predicate:l,represent:{binary:i(function(e){return e>=0?`0b`+e.toString(2):`-0b`+e.toString(2).slice(1)},`binary`),octal:i(function(e){return e>=0?`0o`+e.toString(8):`-0o`+e.toString(8).slice(1)},`octal`),decimal:i(function(e){return e.toString(10)},`decimal`),hexadecimal:i(function(e){return e>=0?`0x`+e.toString(16).toUpperCase():`-0x`+e.toString(16).toUpperCase().slice(1)},`hexadecimal`)},defaultStyle:`decimal`,styleAliases:{binary:[2,`bin`],octal:[8,`oct`],decimal:[10,`dec`],hexadecimal:[16,`hex`]}}),at}i(st,`requireInt`);var ct,lt;function ut(){if(lt)return ct;lt=1;let e=V(),t=U(),n=RegExp(`^(?:[-+]?(?:[0-9]+)(?:\\.[0-9]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$`),r=RegExp(`^(?:[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$`);function a(e){return e===null||!n.test(e)?!1:isFinite(parseFloat(e,10))?!0:r.test(e)}i(a,`resolveYamlFloat`);function o(e){let t=e.toLowerCase(),n=t[0]===`-`?-1:1;return`+-`.indexOf(t[0])>=0&&(t=t.slice(1)),t===`.inf`?n===1?1/0:-1/0:t===`.nan`?NaN:n*parseFloat(t,10)}i(o,`constructYamlFloat`);let s=/^[-+]?[0-9]+e/;function c(t,n){if(isNaN(t))switch(n){case`lowercase`:return`.nan`;case`uppercase`:return`.NAN`;case`camelcase`:return`.NaN`}else if(t===1/0)switch(n){case`lowercase`:return`.inf`;case`uppercase`:return`.INF`;case`camelcase`:return`.Inf`}else if(t===-1/0)switch(n){case`lowercase`:return`-.inf`;case`uppercase`:return`-.INF`;case`camelcase`:return`-.Inf`}else if(e.isNegativeZero(t))return`-0.0`;let r=t.toString(10);return s.test(r)?r.replace(`e`,`.e`):r}i(c,`representYamlFloat`);function l(t){return Object.prototype.toString.call(t)===`[object Number]`&&(t%1!=0||e.isNegativeZero(t))}return i(l,`isFloat`),ct=new t(`tag:yaml.org,2002:float`,{kind:`scalar`,resolve:a,construct:o,predicate:l,represent:c,defaultStyle:`lowercase`}),ct}i(ut,`requireFloat`);var dt,ft;function pt(){return ft?dt:(ft=1,dt=Qe().extend({implicit:[tt(),it(),st(),ut()]}),dt)}i(pt,`requireJson`);var mt,ht;function gt(){return ht?mt:(ht=1,mt=pt(),mt)}i(gt,`requireCore`);var _t,vt;function yt(){if(vt)return _t;vt=1;let e=U(),t=RegExp(`^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$`),n=RegExp(`^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$`);function r(e){return e===null?!1:t.exec(e)!==null||n.exec(e)!==null}i(r,`resolveYamlTimestamp`);function a(e){let r=0,i=null,a=t.exec(e);if(a===null&&(a=n.exec(e)),a===null)throw Error(`Date resolve error`);let o=+a[1],s=a[2]-1,c=+a[3];if(!a[4])return new Date(Date.UTC(o,s,c));let l=+a[4],u=+a[5],d=+a[6];if(a[7]){for(r=a[7].slice(0,3);r.length<3;)r+=`0`;r=+r}if(a[9]){let e=+a[10],t=+(a[11]||0);i=(e*60+t)*6e4,a[9]===`-`&&(i=-i)}let f=new Date(Date.UTC(o,s,c,l,u,d,r));return i&&f.setTime(f.getTime()-i),f}i(a,`constructYamlTimestamp`);function o(e){return e.toISOString()}return i(o,`representYamlTimestamp`),_t=new e(`tag:yaml.org,2002:timestamp`,{kind:`scalar`,resolve:r,construct:a,instanceOf:Date,represent:o}),_t}i(yt,`requireTimestamp`);var bt,xt;function St(){if(xt)return bt;xt=1;let e=U();function t(e){return e===`<<`||e===null}return i(t,`resolveYamlMerge`),bt=new e(`tag:yaml.org,2002:merge`,{kind:`scalar`,resolve:t}),bt}i(St,`requireMerge`);var Ct,wt;function Tt(){if(wt)return Ct;wt=1;let e=U();function t(e){if(e===null)return!1;let t=0,n=e.length;for(let r=0;r<n;r++){let n=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
|
|
9
|
+
\r`.indexOf(e.charAt(r));if(!(n>64)){if(n<0)return!1;t+=6}}return t%8==0}i(t,`resolveYamlBinary`);function n(e){let t=e.replace(/[\r\n=]/g,``),n=t.length,r=0,i=[];for(let e=0;e<n;e++)e%4==0&&e&&(i.push(r>>16&255),i.push(r>>8&255),i.push(r&255)),r=r<<6|`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
|
|
10
|
+
\r`.indexOf(t.charAt(e));let a=n%4*6;return a===0?(i.push(r>>16&255),i.push(r>>8&255),i.push(r&255)):a===18?(i.push(r>>10&255),i.push(r>>2&255)):a===12&&i.push(r>>4&255),new Uint8Array(i)}i(n,`constructYamlBinary`);function r(e){let t=``,n=0,r=e.length,i=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
|
|
11
|
+
\r`;for(let a=0;a<r;a++)a%3==0&&a&&(t+=i[n>>18&63],t+=i[n>>12&63],t+=i[n>>6&63],t+=i[n&63]),n=(n<<8)+e[a];let a=r%3;return a===0?(t+=i[n>>18&63],t+=i[n>>12&63],t+=i[n>>6&63],t+=i[n&63]):a===2?(t+=i[n>>10&63],t+=i[n>>4&63],t+=i[n<<2&63],t+=i[64]):a===1&&(t+=i[n>>2&63],t+=i[n<<4&63],t+=i[64],t+=i[64]),t}i(r,`representYamlBinary`);function a(e){return Object.prototype.toString.call(e)===`[object Uint8Array]`}return i(a,`isBinary`),Ct=new e(`tag:yaml.org,2002:binary`,{kind:`scalar`,resolve:t,construct:n,predicate:a,represent:r}),Ct}i(Tt,`requireBinary`);var Et,Dt;function Ot(){if(Dt)return Et;Dt=1;let e=U(),t=Object.prototype.hasOwnProperty,n=Object.prototype.toString;function r(e){if(e===null)return!0;let r=[],i=e;for(let e=0,a=i.length;e<a;e+=1){let a=i[e],o=!1;if(n.call(a)!==`[object Object]`)return!1;let s;for(s in a)if(t.call(a,s)){if(!o)o=!0;else return!1}if(!o)return!1;if(r.indexOf(s)===-1)r.push(s);else return!1}return!0}i(r,`resolveYamlOmap`);function a(e){return e===null?[]:e}return i(a,`constructYamlOmap`),Et=new e(`tag:yaml.org,2002:omap`,{kind:`sequence`,resolve:r,construct:a}),Et}i(Ot,`requireOmap`);var kt,At;function jt(){if(At)return kt;At=1;let e=U(),t=Object.prototype.toString;function n(e){if(e===null)return!0;let n=e,r=Array(n.length);for(let e=0,i=n.length;e<i;e+=1){let i=n[e];if(t.call(i)!==`[object Object]`)return!1;let a=Object.keys(i);if(a.length!==1)return!1;r[e]=[a[0],i[a[0]]]}return!0}i(n,`resolveYamlPairs`);function r(e){if(e===null)return[];let t=e,n=Array(t.length);for(let e=0,r=t.length;e<r;e+=1){let r=t[e],i=Object.keys(r);n[e]=[i[0],r[i[0]]]}return n}return i(r,`constructYamlPairs`),kt=new e(`tag:yaml.org,2002:pairs`,{kind:`sequence`,resolve:n,construct:r}),kt}i(jt,`requirePairs`);var Mt,Nt;function Pt(){if(Nt)return Mt;Nt=1;let e=U(),t=Object.prototype.hasOwnProperty;function n(e){if(e===null)return!0;let n=e;for(let e in n)if(t.call(n,e)&&n[e]!==null)return!1;return!0}i(n,`resolveYamlSet`);function r(e){return e===null?{}:e}return i(r,`constructYamlSet`),Mt=new e(`tag:yaml.org,2002:set`,{kind:`mapping`,resolve:n,construct:r}),Mt}i(Pt,`requireSet`);var Ft,It;function Lt(){return It?Ft:(It=1,Ft=gt().extend({implicit:[yt(),St()],explicit:[Tt(),Ot(),jt(),Pt()]}),Ft)}i(Lt,`require_default`);var Rt;function zt(){if(Rt)return ke;Rt=1;let e=V(),t=H(),n=Fe(),r=Lt(),a=Object.prototype.hasOwnProperty,o=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,s=/[\x85\u2028\u2029]/,c=/[,\[\]{}]/,l=/^(?:!|!!|![0-9A-Za-z-]+!)$/,u=/^(?:!|[^,\[\]{}])(?:%[0-9a-f]{2}|[0-9a-z\-#;/?:@&=+$,_.!~*'()\[\]])*$/i;function d(e){return Object.prototype.toString.call(e)}i(d,`_class`);function f(e){return e===10||e===13}i(f,`isEol`);function p(e){return e===9||e===32}i(p,`isWhiteSpace`);function m(e){return e===9||e===32||e===10||e===13}i(m,`isWsOrEol`);function h(e){return e===44||e===91||e===93||e===123||e===125}i(h,`isFlowIndicator`);function g(e){if(e>=48&&e<=57)return e-48;let t=e|32;return t>=97&&t<=102?t-97+10:-1}i(g,`fromHexCode`);function _(e){return e===120?2:e===117?4:e===85?8:0}i(_,`escapedHexLen`);function v(e){return e>=48&&e<=57?e-48:-1}i(v,`fromDecimalCode`);function y(e){switch(e){case 48:return`\0`;case 97:return`\x07`;case 98:return`\b`;case 116:return` `;case 9:return` `;case 110:return`
|
|
12
|
+
`;case 118:return`\v`;case 102:return`\f`;case 114:return`\r`;case 101:return`\x1B`;case 32:return` `;case 34:return`"`;case 47:return`/`;case 92:return`\\`;case 78:return`
`;case 95:return`\xA0`;case 76:return`\u2028`;case 80:return`\u2029`;default:return``}}i(y,`simpleEscapeSequence`);function b(e){return e<=65535?String.fromCharCode(e):String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}i(b,`charFromCodepoint`);function x(e,t,n){t===`__proto__`?Object.defineProperty(e,t,{configurable:!0,enumerable:!0,writable:!0,value:n}):e[t]=n}i(x,`setProperty`);let S=Array(256),C=Array(256);for(let e=0;e<256;e++)S[e]=+!!y(e),C[e]=y(e);function w(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||r,this.onWarning=t.onWarning||null,this.legacy=t.legacy||!1,this.json=t.json||!1,this.listener=t.listener||null,this.maxDepth=typeof t.maxDepth==`number`?t.maxDepth:100,this.maxTotalMergeKeys=typeof t.maxTotalMergeKeys==`number`?t.maxTotalMergeKeys:1e4,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=e.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.depth=0,this.totalMergeKeys=0,this.firstTabInLine=-1,this.documents=[],this.anchorMapTransactions=[]}i(w,`State`);function ee(e,r){let i={name:e.filename,buffer:e.input.slice(0,-1),position:e.position,line:e.line,column:e.position-e.lineStart};return i.snippet=n(i),new t(r,i)}i(ee,`generateError`);function T(e,t){throw ee(e,t)}i(T,`throwError`);function E(e,t){e.onWarning&&e.onWarning.call(null,ee(e,t))}i(E,`throwWarning`);function D(e,t,n){let r=e.anchorMapTransactions;if(r.length!==0){let n=r[r.length-1];a.call(n,t)||(n[t]={existed:a.call(e.anchorMap,t),value:e.anchorMap[t]})}e.anchorMap[t]=n}i(D,`storeAnchor`);function O(e){e.anchorMapTransactions.push(Object.create(null))}i(O,`beginAnchorTransaction`);function k(e){let t=e.anchorMapTransactions.pop(),n=e.anchorMapTransactions;if(n.length===0)return;let r=n[n.length-1],i=Object.keys(t);for(let e=0,n=i.length;e<n;e+=1){let n=i[e];a.call(r,n)||(r[n]=t[n])}}i(k,`commitAnchorTransaction`);function A(e){let t=e.anchorMapTransactions.pop(),n=Object.keys(t);for(let r=n.length-1;r>=0;--r){let i=t[n[r]];i.existed?e.anchorMap[n[r]]=i.value:delete e.anchorMap[n[r]]}}i(A,`rollbackAnchorTransaction`);function j(e){return{position:e.position,line:e.line,lineStart:e.lineStart,lineIndent:e.lineIndent,firstTabInLine:e.firstTabInLine,tag:e.tag,anchor:e.anchor,kind:e.kind,result:e.result}}i(j,`snapshotState`);function M(e,t){e.position=t.position,e.line=t.line,e.lineStart=t.lineStart,e.lineIndent=t.lineIndent,e.firstTabInLine=t.firstTabInLine,e.tag=t.tag,e.anchor=t.anchor,e.kind=t.kind,e.result=t.result}i(M,`restoreState`);let te={YAML:i(function(e,t,n){e.version!==null&&T(e,`duplication of %YAML directive`),n.length!==1&&T(e,`YAML directive accepts exactly one argument`);let r=/^([0-9]+)\.([0-9]+)$/.exec(n[0]);r===null&&T(e,`ill-formed argument of the YAML directive`);let i=parseInt(r[1],10),a=parseInt(r[2],10);i!==1&&T(e,`unacceptable YAML version of the document`),e.version=n[0],e.checkLineBreaks=a<2,a!==1&&a!==2&&E(e,`unsupported YAML version of the document`)},`handleYamlDirective`),TAG:i(function(e,t,n){let r;n.length!==2&&T(e,`TAG directive accepts exactly two arguments`);let i=n[0];r=n[1],l.test(i)||T(e,`ill-formed tag handle (first argument) of the TAG directive`),a.call(e.tagMap,i)&&T(e,`there is a previously declared suffix for "`+i+`" tag handle`),u.test(r)||T(e,`ill-formed tag prefix (second argument) of the TAG directive`);try{r=decodeURIComponent(r)}catch{T(e,`tag prefix is malformed: `+r)}e.tagMap[i]=r},`handleTagDirective`)};function N(e,t,n,r){if(t<n){let i=e.input.slice(t,n);if(r)for(let t=0,n=i.length;t<n;t+=1){let n=i.charCodeAt(t);n===9||n>=32&&n<=1114111||T(e,`expected valid JSON character`)}else o.test(i)&&T(e,`the stream contains non-printable characters`);e.result+=i}}i(N,`captureSegment`);function P(t,n,r,i){e.isObject(r)||T(t,`cannot merge mappings; the provided source object is unacceptable`);let o=Object.keys(r);for(let e=0,s=o.length;e<s;e+=1){let s=o[e];t.maxTotalMergeKeys!==-1&&++t.totalMergeKeys>t.maxTotalMergeKeys&&T(t,`merge keys exceeded maxTotalMergeKeys (`+t.maxTotalMergeKeys+`)`),a.call(n,s)||(x(n,s,r[s]),i[s]=!0)}}i(P,`mergeMappings`);function F(e,t,n,r,i,o,s,c,l){if(Array.isArray(i)){i=Array.prototype.slice.call(i);for(let t=0,n=i.length;t<n;t+=1)Array.isArray(i[t])&&T(e,`nested arrays are not supported inside keys`),typeof i==`object`&&d(i[t])===`[object Object]`&&(i[t]=`[object Object]`)}if(typeof i==`object`&&d(i)===`[object Object]`&&(i=`[object Object]`),i=String(i),t===null&&(t={}),r===`tag:yaml.org,2002:merge`){if(Array.isArray(o))for(let r=0,i=o.length;r<i;r+=1)P(e,t,o[r],n);else P(e,t,o,n)}else!e.json&&!a.call(n,i)&&a.call(t,i)&&(e.line=s||e.line,e.lineStart=c||e.lineStart,e.position=l||e.position,T(e,`duplicated mapping key`)),x(t,i,o),delete n[i];return t}i(F,`storeMappingPair`);function I(e){let t=e.input.charCodeAt(e.position);t===10?e.position++:t===13?(e.position++,e.input.charCodeAt(e.position)===10&&e.position++):T(e,`a line break is expected`),e.line+=1,e.lineStart=e.position,e.firstTabInLine=-1}i(I,`readLineBreak`);function L(e,t,n){let r=0,i=e.input.charCodeAt(e.position);for(;i!==0;){for(;p(i);)i===9&&e.firstTabInLine===-1&&(e.firstTabInLine=e.position),i=e.input.charCodeAt(++e.position);if(t&&i===35)do i=e.input.charCodeAt(++e.position);while(i!==10&&i!==13&&i!==0);if(f(i))for(I(e),i=e.input.charCodeAt(e.position),r++,e.lineIndent=0;i===32;)e.lineIndent++,i=e.input.charCodeAt(++e.position);else break}return n!==-1&&r!==0&&e.lineIndent<n&&E(e,`deficient indentation`),r}i(L,`skipSeparationSpace`);function ne(e){let t=e.position,n=e.input.charCodeAt(t);return!!((n===45||n===46)&&n===e.input.charCodeAt(t+1)&&n===e.input.charCodeAt(t+2)&&(t+=3,n=e.input.charCodeAt(t),n===0||m(n)))}i(ne,`testDocumentSeparator`);function re(t,n){n===1?t.result+=` `:n>1&&(t.result+=e.repeat(`
|
|
13
|
+
`,n-1))}i(re,`writeFoldedLines`);function ie(e,t,n){let r,i,a,o,s,c,l=e.kind,u=e.result,d=e.input.charCodeAt(e.position);if(m(d)||h(d)||d===35||d===38||d===42||d===33||d===124||d===62||d===39||d===34||d===37||d===64||d===96)return!1;if(d===63||d===45){let t=e.input.charCodeAt(e.position+1);if(m(t)||n&&h(t))return!1}for(e.kind=`scalar`,e.result=``,r=i=e.position,a=!1;d!==0;){if(d===58){let t=e.input.charCodeAt(e.position+1);if(m(t)||n&&h(t))break}else if(d===35){if(m(e.input.charCodeAt(e.position-1)))break}else if(e.position===e.lineStart&&ne(e)||n&&h(d))break;else if(f(d)){if(o=e.line,s=e.lineStart,c=e.lineIndent,L(e,!1,-1),e.lineIndent>=t){a=!0,d=e.input.charCodeAt(e.position);continue}e.position=i,e.line=o,e.lineStart=s,e.lineIndent=c;break}a&&=(N(e,r,i,!1),re(e,e.line-o),r=i=e.position,!1),p(d)||(i=e.position+1),d=e.input.charCodeAt(++e.position)}return N(e,r,i,!1),e.result?!0:(e.kind=l,e.result=u,!1)}i(ie,`readPlainScalar`);function ae(e,t){let n,r,i=e.input.charCodeAt(e.position);if(i!==39)return!1;for(e.kind=`scalar`,e.result=``,e.position++,n=r=e.position;(i=e.input.charCodeAt(e.position))!==0;)if(i===39){if(N(e,n,e.position,!0),i=e.input.charCodeAt(++e.position),i===39)n=e.position,e.position++,r=e.position;else return!0}else f(i)?(N(e,n,r,!0),re(e,L(e,!1,t)),n=r=e.position):e.position===e.lineStart&&ne(e)?T(e,`unexpected end of the document within a single quoted scalar`):(e.position++,p(i)||(r=e.position));T(e,`unexpected end of the stream within a single quoted scalar`)}i(ae,`readSingleQuotedScalar`);function oe(e,t){let n,r,i,a=e.input.charCodeAt(e.position);if(a!==34)return!1;for(e.kind=`scalar`,e.result=``,e.position++,n=r=e.position;(a=e.input.charCodeAt(e.position))!==0;)if(a===34)return N(e,n,e.position,!0),e.position++,!0;else if(a===92){if(N(e,n,e.position,!0),a=e.input.charCodeAt(++e.position),f(a))L(e,!1,t);else if(a<256&&S[a])e.result+=C[a],e.position++;else if((i=_(a))>0){let t=i,n=0;for(;t>0;t--)a=e.input.charCodeAt(++e.position),(i=g(a))>=0?n=(n<<4)+i:T(e,`expected hexadecimal character`);e.result+=b(n),e.position++}else T(e,`unknown escape sequence`);n=r=e.position}else f(a)?(N(e,n,r,!0),re(e,L(e,!1,t)),n=r=e.position):e.position===e.lineStart&&ne(e)?T(e,`unexpected end of the document within a double quoted scalar`):(e.position++,p(a)||(r=e.position));T(e,`unexpected end of the stream within a double quoted scalar`)}i(oe,`readDoubleQuotedScalar`);function se(e,t){let n=!0,r,i,a,o=e.tag,s,c=e.anchor,l,u,d,f,p=Object.create(null),h,g,_,v=e.input.charCodeAt(e.position);if(v===91)l=93,f=!1,s=[];else if(v===123)l=125,f=!0,s={};else return!1;for(e.anchor!==null&&D(e,e.anchor,s),v=e.input.charCodeAt(++e.position);v!==0;){if(L(e,!0,t),v=e.input.charCodeAt(e.position),v===l)return e.position++,e.tag=o,e.anchor=c,e.kind=f?`mapping`:`sequence`,e.result=s,!0;n?v===44&&T(e,`expected the node content, but found ','`):T(e,`missed comma between flow collection entries`),g=h=_=null,u=d=!1,v===63&&m(e.input.charCodeAt(e.position+1))&&(u=d=!0,e.position++,L(e,!0,t)),r=e.line,i=e.lineStart,a=e.position,R(e,t,1,!1,!0),g=e.tag,h=e.result,L(e,!0,t),v=e.input.charCodeAt(e.position),(d||e.line===r)&&v===58&&(u=!0,v=e.input.charCodeAt(++e.position),L(e,!0,t),R(e,t,1,!1,!0),_=e.result),f?F(e,s,p,g,h,_,r,i,a):u?s.push(F(e,null,p,g,h,_,r,i,a)):s.push(h),L(e,!0,t),v=e.input.charCodeAt(e.position),v===44?(n=!0,v=e.input.charCodeAt(++e.position)):n=!1}T(e,`unexpected end of the stream within a flow collection`)}i(se,`readFlowCollection`);function ce(t,n){let r,i=1,a=!1,o=!1,s=n,c=0,l=!1,u,d=t.input.charCodeAt(t.position);if(d===124)r=!1;else if(d===62)r=!0;else return!1;for(t.kind=`scalar`,t.result=``;d!==0;)if(d=t.input.charCodeAt(++t.position),d===43||d===45)i===1?i=d===43?3:2:T(t,`repeat of a chomping mode identifier`);else if((u=v(d))>=0)u===0?T(t,`bad explicit indentation width of a block scalar; it cannot be less than one`):o?T(t,`repeat of an indentation width identifier`):(s=n+u-1,o=!0);else break;if(p(d)){do d=t.input.charCodeAt(++t.position);while(p(d));if(d===35)do d=t.input.charCodeAt(++t.position);while(!f(d)&&d!==0)}for(;d!==0;){for(I(t),t.lineIndent=0,d=t.input.charCodeAt(t.position);(!o||t.lineIndent<s)&&d===32;)t.lineIndent++,d=t.input.charCodeAt(++t.position);if(!o&&t.lineIndent>s&&(s=t.lineIndent),f(d)){c++;continue}if(!o&&s===0&&T(t,`missing indentation for block scalar`),t.lineIndent<s){i===3?t.result+=e.repeat(`
|
|
14
|
+
`,a?1+c:c):i===1&&a&&(t.result+=`
|
|
15
|
+
`);break}r?p(d)?(l=!0,t.result+=e.repeat(`
|
|
16
|
+
`,a?1+c:c)):l?(l=!1,t.result+=e.repeat(`
|
|
17
|
+
`,c+1)):c===0?a&&(t.result+=` `):t.result+=e.repeat(`
|
|
18
|
+
`,c):t.result+=e.repeat(`
|
|
19
|
+
`,a?1+c:c),a=!0,o=!0,c=0;let n=t.position;for(;!f(d)&&d!==0;)d=t.input.charCodeAt(++t.position);N(t,n,t.position,!1)}return!0}i(ce,`readBlockScalar`);function le(e,t){let n=e.tag,r=e.anchor,i=[],a=!1;if(e.firstTabInLine!==-1)return!1;e.anchor!==null&&D(e,e.anchor,i);let o=e.input.charCodeAt(e.position);for(;o!==0&&(e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,T(e,`tab characters must not be used in indentation`)),o===45&&m(e.input.charCodeAt(e.position+1)));){if(a=!0,e.position++,L(e,!0,-1)&&e.lineIndent<=t){i.push(null),o=e.input.charCodeAt(e.position);continue}let n=e.line;if(R(e,t,3,!1,!0),i.push(e.result),L(e,!0,-1),o=e.input.charCodeAt(e.position),(e.line===n||e.lineIndent>t)&&o!==0)T(e,`bad indentation of a sequence entry`);else if(e.lineIndent<t)break}return a?(e.tag=n,e.anchor=r,e.kind=`sequence`,e.result=i,!0):!1}i(le,`readBlockSequence`);function ue(e,t,n){let r,i,a,o,s=e.tag,c=e.anchor,l={},u=Object.create(null),d=null,f=null,h=null,g=!1,_=!1;if(e.firstTabInLine!==-1)return!1;e.anchor!==null&&D(e,e.anchor,l);let v=e.input.charCodeAt(e.position);for(;v!==0;){!g&&e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,T(e,`tab characters must not be used in indentation`));let y=e.input.charCodeAt(e.position+1),b=e.line;if((v===63||v===58)&&m(y))v===63?(g&&(F(e,l,u,d,f,null,i,a,o),d=f=h=null),_=!0,g=!0,r=!0):g?(g=!1,r=!0):T(e,`incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line`),e.position+=1,v=y;else{if(i=e.line,a=e.lineStart,o=e.position,!R(e,n,2,!1,!0))break;if(e.line===b){for(v=e.input.charCodeAt(e.position);p(v);)v=e.input.charCodeAt(++e.position);if(v===58)v=e.input.charCodeAt(++e.position),m(v)||T(e,`a whitespace character is expected after the key-value separator within a block mapping`),g&&(F(e,l,u,d,f,null,i,a,o),d=f=h=null),_=!0,g=!1,r=!1,d=e.tag,f=e.result;else if(_)T(e,`can not read an implicit mapping pair; a colon is missed`);else return e.tag=s,e.anchor=c,!0}else if(_)T(e,`can not read a block mapping entry; a multiline key may not be an implicit key`);else return e.tag=s,e.anchor=c,!0}if((e.line===b||e.lineIndent>t)&&(g&&(i=e.line,a=e.lineStart,o=e.position),R(e,t,4,!0,r)&&(g?f=e.result:h=e.result),g||(F(e,l,u,d,f,h,i,a,o),d=f=h=null),L(e,!0,-1),v=e.input.charCodeAt(e.position)),(e.line===b||e.lineIndent>t)&&v!==0)T(e,`bad indentation of a mapping entry`);else if(e.lineIndent<t)break}return g&&F(e,l,u,d,f,null,i,a,o),_&&(e.tag=s,e.anchor=c,e.kind=`mapping`,e.result=l),_}i(ue,`readBlockMapping`);function de(e){let t=!1,n=!1,r,i,o=e.input.charCodeAt(e.position);if(o!==33)return!1;e.tag!==null&&T(e,`duplication of a tag property`),o=e.input.charCodeAt(++e.position),o===60?(t=!0,o=e.input.charCodeAt(++e.position)):o===33?(n=!0,r=`!!`,o=e.input.charCodeAt(++e.position)):r=`!`;let s=e.position;if(t){do o=e.input.charCodeAt(++e.position);while(o!==0&&o!==62);e.position<e.length?(i=e.input.slice(s,e.position),o=e.input.charCodeAt(++e.position)):T(e,`unexpected end of the stream within a verbatim tag`)}else{for(;o!==0&&!m(o);)o===33&&(n?T(e,`tag suffix cannot contain exclamation marks`):(r=e.input.slice(s-1,e.position+1),l.test(r)||T(e,`named tag handle cannot contain such characters`),n=!0,s=e.position+1)),o=e.input.charCodeAt(++e.position);i=e.input.slice(s,e.position),c.test(i)&&T(e,`tag suffix cannot contain flow indicator characters`)}i&&!u.test(i)&&T(e,`tag name cannot contain such characters: `+i);try{i=decodeURIComponent(i)}catch{T(e,`tag name is malformed: `+i)}return t?e.tag=i:a.call(e.tagMap,r)?e.tag=e.tagMap[r]+i:r===`!`?e.tag=`!`+i:r===`!!`?e.tag=`tag:yaml.org,2002:`+i:T(e,`undeclared tag handle "`+r+`"`),!0}i(de,`readTagProperty`);function fe(e){let t=e.input.charCodeAt(e.position);if(t!==38)return!1;e.anchor!==null&&T(e,`duplication of an anchor property`),t=e.input.charCodeAt(++e.position);let n=e.position;for(;t!==0&&!m(t)&&!h(t);)t=e.input.charCodeAt(++e.position);return e.position===n&&T(e,`name of an anchor node must contain at least one character`),e.anchor=e.input.slice(n,e.position),!0}i(fe,`readAnchorProperty`);function pe(e){let t=e.input.charCodeAt(e.position);if(t!==42)return!1;t=e.input.charCodeAt(++e.position);let n=e.position;for(;t!==0&&!m(t)&&!h(t);)t=e.input.charCodeAt(++e.position);e.position===n&&T(e,`name of an alias node must contain at least one character`);let r=e.input.slice(n,e.position);return a.call(e.anchorMap,r)||T(e,`unidentified alias "`+r+`"`),e.result=e.anchorMap[r],L(e,!0,-1),!0}i(pe,`readAlias`);function me(e,t,n,r){let i=j(e);return O(e),M(e,t),e.tag=null,e.anchor=null,e.kind=null,e.result=null,ue(e,n,r)&&e.kind===`mapping`?(k(e),!0):(A(e),M(e,i),!1)}i(me,`tryReadBlockMappingFromProperty`);function R(e,t,n,r,i){let o,s,c=1,l=!1,u=!1,d=null,f,p,m;e.depth>=e.maxDepth&&T(e,`nesting exceeded maxDepth (`+e.maxDepth+`)`),e.depth+=1,e.listener!==null&&e.listener(`open`,e),e.tag=null,e.anchor=null,e.kind=null,e.result=null;let h=o=s=n===4||n===3;if(r&&L(e,!0,-1)&&(l=!0,e.lineIndent>t?c=1:e.lineIndent===t?c=0:e.lineIndent<t&&(c=-1)),c===1)for(;;){let n=e.input.charCodeAt(e.position),r=j(e);if(l&&(n===33&&e.tag!==null||n===38&&e.anchor!==null)||!de(e)&&!fe(e))break;d===null&&(d=r),L(e,!0,-1)?(l=!0,s=h,e.lineIndent>t?c=1:e.lineIndent===t?c=0:e.lineIndent<t&&(c=-1)):s=!1}if(s&&=l||i,c===1||n===4){if(p=n===1||n===2?t:t+1,m=e.position-e.lineStart,c===1){if(s&&(le(e,m)||ue(e,m,p))||se(e,p))u=!0;else{let t=e.input.charCodeAt(e.position);d!==null&&h&&!s&&t!==124&&t!==62&&me(e,d,d.position-d.lineStart,p)||o&&ce(e,p)||ae(e,p)||oe(e,p)?u=!0:pe(e)?(u=!0,(e.tag!==null||e.anchor!==null)&&T(e,`alias node should not have any properties`)):ie(e,p,n===1)&&(u=!0,e.tag===null&&(e.tag=`?`)),e.anchor!==null&&D(e,e.anchor,e.result)}}else c===0&&(u=s&&le(e,m))}if(e.tag===null)e.anchor!==null&&D(e,e.anchor,e.result);else if(e.tag===`?`){e.result!==null&&e.kind!==`scalar`&&T(e,`unacceptable node kind for !<?> tag; it should be "scalar", not "`+e.kind+`"`);for(let t=0,n=e.implicitTypes.length;t<n;t+=1)if(f=e.implicitTypes[t],f.resolve(e.result)){e.result=f.construct(e.result),e.tag=f.tag,e.anchor!==null&&D(e,e.anchor,e.result);break}}else if(e.tag!==`!`){if(a.call(e.typeMap[e.kind||`fallback`],e.tag))f=e.typeMap[e.kind||`fallback`][e.tag];else{f=null;let t=e.typeMap.multi[e.kind||`fallback`];for(let n=0,r=t.length;n<r;n+=1)if(e.tag.slice(0,t[n].tag.length)===t[n].tag){f=t[n];break}}f||T(e,`unknown tag !<`+e.tag+`>`),e.result!==null&&f.kind!==e.kind&&T(e,`unacceptable node kind for !<`+e.tag+`> tag; it should be "`+f.kind+`", not "`+e.kind+`"`),f.resolve(e.result,e.tag)?(e.result=f.construct(e.result,e.tag),e.anchor!==null&&D(e,e.anchor,e.result)):T(e,`cannot resolve a node with !<`+e.tag+`> explicit tag`)}return e.listener!==null&&e.listener(`close`,e),--e.depth,e.tag!==null||e.anchor!==null||u}i(R,`composeNode`);function he(e){let t=e.position,n=!1,r;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap=Object.create(null),e.anchorMap=Object.create(null);(r=e.input.charCodeAt(e.position))!==0&&(L(e,!0,-1),r=e.input.charCodeAt(e.position),!(e.lineIndent>0||r!==37));){n=!0,r=e.input.charCodeAt(++e.position);let t=e.position;for(;r!==0&&!m(r);)r=e.input.charCodeAt(++e.position);let i=e.input.slice(t,e.position),o=[];for(i.length<1&&T(e,`directive name must not be less than one character in length`);r!==0;){for(;p(r);)r=e.input.charCodeAt(++e.position);if(r===35){do r=e.input.charCodeAt(++e.position);while(r!==0&&!f(r));break}if(f(r))break;for(t=e.position;r!==0&&!m(r);)r=e.input.charCodeAt(++e.position);o.push(e.input.slice(t,e.position))}r!==0&&I(e),a.call(te,i)?te[i](e,i,o):E(e,`unknown document directive "`+i+`"`)}if(L(e,!0,-1),e.lineIndent===0&&e.input.charCodeAt(e.position)===45&&e.input.charCodeAt(e.position+1)===45&&e.input.charCodeAt(e.position+2)===45?(e.position+=3,L(e,!0,-1)):n&&T(e,`directives end mark is expected`),R(e,e.lineIndent-1,4,!1,!0),L(e,!0,-1),e.checkLineBreaks&&s.test(e.input.slice(t,e.position))&&E(e,`non-ASCII line breaks are interpreted as content`),e.documents.push(e.result),e.position===e.lineStart&&ne(e)){e.input.charCodeAt(e.position)===46&&(e.position+=3,L(e,!0,-1));return}e.position<e.length-1&&T(e,`end of the stream or a document separator is expected`)}i(he,`readDocument`);function ge(e,t){e=String(e),t||={},e.length!==0&&(e.charCodeAt(e.length-1)!==10&&e.charCodeAt(e.length-1)!==13&&(e+=`
|
|
20
|
+
`),e.charCodeAt(0)===65279&&(e=e.slice(1)));let n=new w(e,t),r=e.indexOf(`\0`);for(r!==-1&&(n.position=r,T(n,`null byte is not allowed in input`)),n.input+=`\0`;n.input.charCodeAt(n.position)===32;)n.lineIndent+=1,n.position+=1;for(;n.position<n.length-1;)he(n);return n.documents}i(ge,`loadDocuments`);function _e(e,t,n){typeof t==`object`&&t&&n===void 0&&(n=t,t=null);let r=ge(e,n);if(typeof t!=`function`)return r;for(let e=0,n=r.length;e<n;e+=1)t(r[e])}i(_e,`loadAll2`);function ve(e,n){let r=ge(e,n);if(r.length!==0){if(r.length===1)return r[0];throw new t(`expected a single document in the stream, but found more`)}}return i(ve,`load2`),ke.loadAll=_e,ke.load=ve,ke}i(zt,`requireLoader`);var Bt={},Vt;function Ht(){if(Vt)return Bt;Vt=1;let e=V(),t=H(),n=Lt(),r=Object.prototype.toString,a=Object.prototype.hasOwnProperty,o=65279,s={};s[0]=`\\0`,s[7]=`\\a`,s[8]=`\\b`,s[9]=`\\t`,s[10]=`\\n`,s[11]=`\\v`,s[12]=`\\f`,s[13]=`\\r`,s[27]=`\\e`,s[34]=`\\"`,s[92]=`\\\\`,s[133]=`\\N`,s[160]=`\\_`,s[8232]=`\\L`,s[8233]=`\\P`;let c=[`y`,`Y`,`yes`,`Yes`,`YES`,`on`,`On`,`ON`,`n`,`N`,`no`,`No`,`NO`,`off`,`Off`,`OFF`],l=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function u(e,t){if(t===null)return{};let n={},r=Object.keys(t);for(let i=0,o=r.length;i<o;i+=1){let o=r[i],s=String(t[o]);o.slice(0,2)===`!!`&&(o=`tag:yaml.org,2002:`+o.slice(2));let c=e.compiledTypeMap.fallback[o];c&&a.call(c.styleAliases,s)&&(s=c.styleAliases[s]),n[o]=s}return n}i(u,`compileStyleMap`);function d(n){let r,i,a=n.toString(16).toUpperCase();if(n<=255)r=`x`,i=2;else if(n<=65535)r=`u`,i=4;else if(n<=4294967295)r=`U`,i=8;else throw new t(`code point within a string may not be greater than 0xFFFFFFFF`);return`\\`+r+e.repeat(`0`,i-a.length)+a}i(d,`encodeHex`);function f(t){this.schema=t.schema||n,this.indent=Math.max(1,t.indent||2),this.noArrayIndent=t.noArrayIndent||!1,this.skipInvalid=t.skipInvalid||!1,this.flowLevel=e.isNothing(t.flowLevel)?-1:t.flowLevel,this.styleMap=u(this.schema,t.styles||null),this.sortKeys=t.sortKeys||!1,this.lineWidth=t.lineWidth||80,this.noRefs=t.noRefs||!1,this.noCompatMode=t.noCompatMode||!1,this.condenseFlow=t.condenseFlow||!1,this.quotingType=t.quotingType===`"`?2:1,this.forceQuotes=t.forceQuotes||!1,this.replacer=typeof t.replacer==`function`?t.replacer:null,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result=``,this.duplicates=[],this.usedDuplicates=null}i(f,`State`);function p(t,n){let r=e.repeat(` `,n),i=0,a=``,o=t.length;for(;i<o;){let e,n=t.indexOf(`
|
|
21
|
+
`,i);n===-1?(e=t.slice(i),i=o):(e=t.slice(i,n+1),i=n+1),e.length&&e!==`
|
|
22
|
+
`&&(a+=r),a+=e}return a}i(p,`indentString`);function m(t,n){return`
|
|
23
|
+
`+e.repeat(` `,t.indent*n)}i(m,`generateNextLine`);function h(e,t){for(let n=0,r=e.implicitTypes.length;n<r;n+=1)if(e.implicitTypes[n].resolve(t))return!0;return!1}i(h,`testImplicitResolving`);function g(e){return e===32||e===9}i(g,`isWhitespace`);function _(e){return e>=32&&e<=126||e>=161&&e<=55295&&e!==8232&&e!==8233||e>=57344&&e<=65533&&e!==o||e>=65536&&e<=1114111}i(_,`isPrintable`);function v(e){return _(e)&&e!==o&&e!==13&&e!==10}i(v,`isNsCharOrWhitespace`);function y(e,t,n){let r=v(e),i=r&&!g(e);return(n?r:r&&e!==44&&e!==91&&e!==93&&e!==123&&e!==125)&&e!==35&&!(t===58&&!i)||v(t)&&!g(t)&&e===35||t===58&&i}i(y,`isPlainSafe`);function b(e){return _(e)&&e!==o&&!g(e)&&e!==45&&e!==63&&e!==58&&e!==44&&e!==91&&e!==93&&e!==123&&e!==125&&e!==35&&e!==38&&e!==42&&e!==33&&e!==124&&e!==61&&e!==62&&e!==39&&e!==34&&e!==37&&e!==64&&e!==96}i(b,`isPlainSafeFirst`);function x(e){return!g(e)&&e!==58}i(x,`isPlainSafeLast`);function S(e,t){let n=e.charCodeAt(t),r;return n>=55296&&n<=56319&&t+1<e.length&&(r=e.charCodeAt(t+1),r>=56320&&r<=57343)?(n-55296)*1024+r-56320+65536:n}i(S,`codePointAt`);function C(e){return/^\n* /.test(e)}i(C,`needIndentIndicator`);function w(e,t,n,r,i,a,o,s){let c,l=0,u=null,d=!1,f=!1,p=r!==-1,m=-1,h=b(S(e,0))&&x(S(e,e.length-1));if(t||o)for(c=0;c<e.length;l>=65536?c+=2:c++){if(l=S(e,c),!_(l))return 5;h&&=y(l,u,s),u=l}else{for(c=0;c<e.length;l>=65536?c+=2:c++){if(l=S(e,c),l===10)d=!0,p&&(f||=c-m-1>r&&e[m+1]!==` `,m=c);else if(!_(l))return 5;h&&=y(l,u,s),u=l}f||=p&&c-m-1>r&&e[m+1]!==` `}return!d&&!f?h&&!o&&!i(e)?1:a===2?5:2:n>9&&C(e)?5:o?a===2?5:2:f?4:3}i(w,`chooseScalarStyle`);function ee(e,n,r,a,o){e.dump=(function(){if(n.length===0)return e.quotingType===2?`""`:`''`;if(!e.noCompatMode&&(c.indexOf(n)!==-1||l.test(n)))return e.quotingType===2?`"`+n+`"`:`'`+n+`'`;let s=e.indent*Math.max(1,r),u=e.lineWidth===-1?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-s),d=a||e.flowLevel>-1&&r>=e.flowLevel;function f(t){return h(e,t)}switch(i(f,`testAmbiguity`),w(n,d,e.indent,u,f,e.quotingType,e.forceQuotes&&!a,o)){case 1:return n;case 2:return`'`+n.replace(/'/g,`''`)+`'`;case 3:return`|`+T(n,e.indent)+E(p(n,s));case 4:return`>`+T(n,e.indent)+E(p(D(n,u),s));case 5:return`"`+k(n)+`"`;default:throw new t(`impossible error: invalid scalar style`)}})()}i(ee,`writeScalar`);function T(e,t){let n=C(e)?String(t):``,r=e[e.length-1]===`
|
|
24
|
+
`;return n+(r&&(e[e.length-2]===`
|
|
25
|
+
`||e===`
|
|
26
|
+
`)?`+`:r?``:`-`)+`
|
|
27
|
+
`}i(T,`blockHeader`);function E(e){return e[e.length-1]===`
|
|
28
|
+
`?e.slice(0,-1):e}i(E,`dropEndingNewline`);function D(e,t){let n=/(\n+)([^\n]*)/g,r=(function(){let r=e.indexOf(`
|
|
29
|
+
`);return r=r===-1?e.length:r,n.lastIndex=r,O(e.slice(0,r),t)})(),i=e[0]===`
|
|
30
|
+
`||e[0]===` `,a,o;for(;o=n.exec(e);){let e=o[1],n=o[2];a=n[0]===` `,r+=e+(!i&&!a&&n!==``?`
|
|
31
|
+
`:``)+O(n,t),i=a}return r}i(D,`foldString`);function O(e,t){if(e===``||e[0]===` `)return e;let n=/ [^ ]/g,r,i=0,a,o=0,s=0,c=``;for(;r=n.exec(e);)s=r.index,s-i>t&&(a=o>i?o:s,c+=`
|
|
32
|
+
`+e.slice(i,a),i=a+1),o=s;return c+=`
|
|
33
|
+
`,e.length-i>t&&o>i?c+=e.slice(i,o)+`
|
|
34
|
+
`+e.slice(o+1):c+=e.slice(i),c.slice(1)}i(O,`foldLine`);function k(e){let t=``,n=0;for(let r=0;r<e.length;n>=65536?r+=2:r++){n=S(e,r);let i=s[n];!i&&_(n)?(t+=e[r],n>=65536&&(t+=e[r+1])):t+=i||d(n)}return t}i(k,`escapeString`);function A(e,t,n){let r=``,i=e.tag;for(let i=0,a=n.length;i<a;i+=1){let a=n[i];e.replacer&&(a=e.replacer.call(n,String(i),a)),(P(e,t,a,!1,!1)||a===void 0&&P(e,t,null,!1,!1))&&(r!==``&&(r+=`,`+(e.condenseFlow?``:` `)),r+=e.dump)}e.tag=i,e.dump=`[`+r+`]`}i(A,`writeFlowSequence`);function j(e,t,n,r){let i=``,a=e.tag;for(let a=0,o=n.length;a<o;a+=1){let o=n[a];e.replacer&&(o=e.replacer.call(n,String(a),o)),(P(e,t+1,o,!0,!0,!1,!0)||o===void 0&&P(e,t+1,null,!0,!0,!1,!0))&&((!r||i!==``)&&(i+=m(e,t)),e.dump&&e.dump.charCodeAt(0)===10?i+=`-`:i+=`- `,i+=e.dump)}e.tag=a,e.dump=i||`[]`}i(j,`writeBlockSequence`);function M(e,t,n){let r=``,i=e.tag,a=Object.keys(n);for(let i=0,o=a.length;i<o;i+=1){let o=``;r!==``&&(o+=`, `),e.condenseFlow&&(o+=`"`);let s=a[i],c=n[s];e.replacer&&(c=e.replacer.call(n,s,c)),P(e,t,s,!1,!1)&&(e.dump.length>1024&&(o+=`? `),o+=e.dump+(e.condenseFlow?`"`:``)+`:`+(e.condenseFlow?``:` `),P(e,t,c,!1,!1)&&(o+=e.dump,r+=o))}e.tag=i,e.dump=`{`+r+`}`}i(M,`writeFlowMapping`);function te(e,n,r,i){let a=``,o=e.tag,s=Object.keys(r);if(e.sortKeys===!0)s.sort();else if(typeof e.sortKeys==`function`)s.sort(e.sortKeys);else if(e.sortKeys)throw new t(`sortKeys must be a boolean or a function`);for(let t=0,o=s.length;t<o;t+=1){let o=``;(!i||a!==``)&&(o+=m(e,n));let c=s[t],l=r[c];if(e.replacer&&(l=e.replacer.call(r,c,l)),!P(e,n+1,c,!0,!0,!0))continue;let u=e.tag!==null&&e.tag!==`?`||e.dump&&e.dump.length>1024;u&&(e.dump&&e.dump.charCodeAt(0)===10?o+=`?`:o+=`? `),o+=e.dump,u&&(o+=m(e,n)),P(e,n+1,l,!0,u)&&(e.dump&&e.dump.charCodeAt(0)===10?o+=`:`:o+=`: `,o+=e.dump,a+=o)}e.tag=o,e.dump=a||`{}`}i(te,`writeBlockMapping`);function N(e,n,i){let o=i?e.explicitTypes:e.implicitTypes;for(let s=0,c=o.length;s<c;s+=1){let c=o[s];if((c.instanceOf||c.predicate)&&(!c.instanceOf||typeof n==`object`&&n instanceof c.instanceOf)&&(!c.predicate||c.predicate(n))){if(e.tag=i?c.multi&&c.representName?c.representName(n):c.tag:`?`,c.represent){let i=e.styleMap[c.tag]||c.defaultStyle,o;if(r.call(c.represent)===`[object Function]`)o=c.represent(n,i);else if(a.call(c.represent,i))o=c.represent[i](n,i);else throw new t(`!<`+c.tag+`> tag resolver accepts not "`+i+`" style`);e.dump=o}return!0}}return!1}i(N,`detectType`);function P(e,n,i,a,o,s,c){e.tag=null,e.dump=i,N(e,i,!1)||N(e,i,!0);let l=r.call(e.dump),u=a;a&&=e.flowLevel<0||e.flowLevel>n;let d=l===`[object Object]`||l===`[object Array]`,f,p;if(d&&(f=e.duplicates.indexOf(i),p=f!==-1),(e.tag!==null&&e.tag!==`?`||p||e.indent!==2&&n>0)&&(o=!1),p&&e.usedDuplicates[f])e.dump=`*ref_`+f;else{if(d&&p&&!e.usedDuplicates[f]&&(e.usedDuplicates[f]=!0),l===`[object Object]`)a&&Object.keys(e.dump).length!==0?(te(e,n,e.dump,o),p&&(e.dump=`&ref_`+f+e.dump)):(M(e,n,e.dump),p&&(e.dump=`&ref_`+f+` `+e.dump));else if(l===`[object Array]`)a&&e.dump.length!==0?(e.noArrayIndent&&!c&&n>0?j(e,n-1,e.dump,o):j(e,n,e.dump,o),p&&(e.dump=`&ref_`+f+e.dump)):(A(e,n,e.dump),p&&(e.dump=`&ref_`+f+` `+e.dump));else if(l===`[object String]`)e.tag!==`?`&&ee(e,e.dump,n,s,u);else if(l===`[object Undefined]`)return!1;else{if(e.skipInvalid)return!1;throw new t(`unacceptable kind of an object to dump `+l)}if(e.tag!==null&&e.tag!==`?`){let t=encodeURI(e.tag[0]===`!`?e.tag.slice(1):e.tag).replace(/!/g,`%21`);t=e.tag[0]===`!`?`!`+t:t.slice(0,18)===`tag:yaml.org,2002:`?`!!`+t.slice(18):`!<`+t+`>`,e.dump=t+` `+e.dump}}return!0}i(P,`writeNode`);function F(e,t){let n=[],r=[];I(e,n,r);let i=r.length;for(let e=0;e<i;e+=1)t.duplicates.push(n[r[e]]);t.usedDuplicates=Array(i)}i(F,`getDuplicateReferences`);function I(e,t,n){if(typeof e==`object`&&e){let r=t.indexOf(e);if(r!==-1)n.indexOf(r)===-1&&n.push(r);else if(t.push(e),Array.isArray(e))for(let r=0,i=e.length;r<i;r+=1)I(e[r],t,n);else{let r=Object.keys(e);for(let i=0,a=r.length;i<a;i+=1)I(e[r[i]],t,n)}}}i(I,`inspectNode`);function L(e,t){t||={};let n=new f(t);n.noRefs||F(e,n);let r=e;return n.replacer&&(r=n.replacer.call({"":r},``,r)),P(n,0,r,!0,!0)?n.dump+`
|
|
35
|
+
`:``}return i(L,`dump2`),Bt.dump=L,Bt}i(Ht,`requireDumper`);var Ut;function Wt(){if(Ut)return z;Ut=1;let e=zt(),t=Ht();function n(e,t){return function(){throw Error(`Function yaml.`+e+` is removed in js-yaml 4. Use yaml.`+t+` instead, which is now safe by default.`)}}return i(n,`renamed`),z.Type=U(),z.Schema=Be(),z.FAILSAFE_SCHEMA=Qe(),z.JSON_SCHEMA=pt(),z.CORE_SCHEMA=gt(),z.DEFAULT_SCHEMA=Lt(),z.load=e.load,z.loadAll=e.loadAll,z.dump=t.dump,z.YAMLException=H(),z.types={binary:Tt(),float:ut(),map:Ye(),null:tt(),pairs:jt(),set:Pt(),timestamp:yt(),bool:it(),int:st(),merge:St(),omap:Ot(),seq:Ke(),str:Ue()},z.safeLoad=n(`safeLoad`,`load`),z.safeLoadAll=n(`safeLoadAll`,`loadAll`),z.safeDump=n(`safeDump`,`dump`),z}i(Wt,`requireJsYaml`);var{Type:Gt,Schema:Kt,FAILSAFE_SCHEMA:qt,JSON_SCHEMA:Jt,CORE_SCHEMA:Yt,DEFAULT_SCHEMA:Xt,load:Zt,loadAll:Qt,dump:$t,YAMLException:en,types:tn,safeLoad:nn,safeLoadAll:rn,safeDump:an}=Oe(Wt()),on=`comm`,sn=`rule`,cn=`decl`,ln=`@import`,un=`@namespace`,dn=`@keyframes`,fn=`@layer`,pn=Math.abs,mn=String.fromCharCode;function hn(e){return e.trim()}function gn(e,t,n){return e.replace(t,n)}function W(e,t){return e.charCodeAt(t)|0}function G(e,t,n){return e.slice(t,n)}function K(e){return e.length}function _n(e){return e.length}function vn(e,t){return t.push(e),e}var yn=1,q=1,bn=0,J=0,Y=0,xn=``;function Sn(e,t,n,r,i,a,o,s){return{value:e,root:t,parent:n,type:r,props:i,children:a,line:yn,column:q,length:o,return:``,siblings:s}}function Cn(){return Y}function wn(){return Y=J>0?W(xn,--J):0,q--,Y===10&&(q=1,yn--),Y}function X(){return Y=J<bn?W(xn,J++):0,q++,Y===10&&(q=1,yn++),Y}function Z(){return W(xn,J)}function Tn(){return J}function En(e,t){return G(xn,e,t)}function Dn(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function On(e){return yn=q=1,bn=K(xn=e),J=0,[]}function kn(e){return xn=``,e}function An(e){return hn(En(J-1,Nn(e===91?e+2:e===40?e+1:e)))}function jn(e){for(;(Y=Z())&&Y<33;)X();return Dn(e)>2||Dn(Y)>3?``:` `}function Mn(e,t){for(;--t&&X()&&!(Y<48||Y>102||Y>57&&Y<65||Y>70&&Y<97););return En(e,Tn()+(t<6&&Z()==32&&X()==32))}function Nn(e){for(;X();)switch(Y){case e:return J;case 34:case 39:e!==34&&e!==39&&Nn(Y);break;case 40:e===41&&Nn(e);break;case 92:X()}return J}function Pn(e,t){for(;X()&&e+Y!==57&&(e+Y!==84||Z()!==47););return`/*`+En(t,J-1)+`*`+mn(e===47?e:X())}function Fn(e){for(;!Dn(Z());)X();return En(e,J)}function In(e){return kn(Ln(``,null,null,null,[``],e=On(e),0,[0],e))}function Ln(e,t,n,r,i,a,o,s,c){for(var l=0,u=0,d=o,f=0,p=0,m=0,h=1,g=1,_=1,v=0,y=0,b=``,x=i,S=a,C=r,w=b;g;)switch(m=y,y=X()){case 40:m!=108&&W(w,d-1)==58?(v++,w+=`(`):w+=An(y);break;case 41:v--,w+=`)`;break;case 34:case 39:case 91:w+=An(y);break;case 9:case 10:case 13:case 32:if(v>0){w+=mn(y);break}w+=jn(m);break;case 92:w+=Mn(Tn()-1,7);continue;case 47:switch(Z()){case 42:case 47:vn(zn(Pn(X(),Tn()),t,n,c),c),(Dn(m||1)==5||Dn(Z()||1)==5)&&K(w)&&G(w,-1,void 0)!==` `&&(w+=` `);break;default:w+=`/`}break;case 123*h:s[l++]=K(w)*_;case 125*h:case 59:case 0:if(v>0&&y){w+=mn(y);break}switch(y){case 0:case 125:g=0;case 59+u:_==-1&&(w=gn(w,/\f/g,``)),p>0&&(K(w)-d||h===0)&&vn(p>32?Bn(w+`;`,r,n,d-1,c):Bn(gn(w,` `,``)+`;`,r,n,d-2,c),c);break;case 59:w+=`;`;default:if(vn(C=Rn(w,t,n,l,u,i,s,b,x=[],S=[],d,a),a),y===123){if(u===0)Ln(w,t,C,C,x,a,d,s,S);else{switch(f){case 99:if(W(w,3)===110)break;case 108:if(W(w,2)===97)break;default:u=0;case 100:case 109:case 115:}u?Ln(e,C,C,r&&vn(Rn(e,C,C,0,0,i,s,b,i,x=[],d,S),S),i,S,d,s,r?x:S):Ln(w,C,C,C,[``],S,0,s,S)}}}l=u=p=0,h=_=1,b=w=``,d=o;break;case 58:d=1+K(w),p=m;default:if(h<1){if(y==123)--h;else if(y==125&&h++==0&&wn()==125)continue}switch(w+=mn(y),y*h){case 38:_=u>0?1:(w+=`\f`,-1);break;case 44:if(v>0)break;s[l++]=(K(w)-1)*_,_=1;break;case 64:Z()===45&&(w+=An(X())),f=Z(),u=d=K(b=w+=Fn(Tn())),y++;break;case 45:m===45&&K(w)==2&&(h=0)}}return a}function Rn(e,t,n,r,i,a,o,s,c,l,u,d){for(var f=i-1,p=i===0?a:[``],m=_n(p),h=0,g=0,_=0;h<r;++h)for(var v=0,y=G(e,f+1,f=pn(g=o[h])),b=e;v<m;++v)(b=hn(g>0?p[v]+` `+y:gn(y,/&\f/g,p[v])))&&(c[_++]=b);return Sn(e,t,n,i===0?sn:s,c,l,u,d)}function zn(e,t,n,r){return Sn(e,t,n,on,mn(Cn()),G(e,2,-2),0,r)}function Bn(e,t,n,r,i){return Sn(e,t,n,cn,G(e,0,r),G(e,r+1,-1),r,i)}function Vn(e,t){for(var n=``,r=0;r<e.length;r++)n+=t(e[r],r,e,t)||``;return n}function Hn(e,t,n,r){switch(e.type){case fn:if(e.children.length)break;case ln:case un:case cn:return e.return=e.return||e.value;case on:return``;case dn:return e.return=e.value+`{`+Vn(e.children,r)+`}`;case sn:if(!K(e.value=e.props.join(`,`)))return``}return K(n=Vn(e.children,r))?e.return=e.value+`{`+n+`}`:``}function Un(e){var t=_n(e);return function(n,r,i,a){for(var o=``,s=0;s<t;s++)o+=e[s](n,r,i,a)||``;return o}}var Wn=`c4`,Gn={id:Wn,detector:i(e=>/^\s*C4Context|C4Container|C4Component|C4Dynamic|C4Deployment/.test(e),`detector`),loader:i(async()=>{let{diagram:e}=await r(async()=>{let{diagram:e}=await import(`./c4Diagram-YGBWAQC7-BkFaWKQU.js`);return{diagram:e}},__vite__mapDeps([27,1,2,3,4,5,6,7,8,9,10,11,12,13,28]));return{id:Wn,diagram:e}},`loader`)},Kn=`flowchart-v2`,qn={id:Kn,detector:i(e=>/^\s*(graph|flowchart)/.test(e),`detector`),loader:i(async()=>{let{diagram:e}=await r(async()=>{let{diagram:e}=await import(`./flowDiagram-KWPJA3E3-DC2FrXkH.js`);return{diagram:e}},__vite__mapDeps([29,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,28,30,31,19,32,33,34]));return{id:Kn,diagram:e}},`loader`)},Jn=`agentflow`,Yn={id:Jn,detector:i(e=>/^\s*agentflow-beta\b/.test(e),`detector`),loader:i(async()=>{let{diagram:e}=await r(async()=>{let{diagram:e}=await import(`./diagram-22UHCM2B-DqFq9NIL.js`);return{diagram:e}},__vite__mapDeps([35,1,2,3,4,5,33,6,7,8,9,34,10,12,11,13,14,15,16,17,18,28,30,31,19]));return{id:Jn,diagram:e}},`loader`)},Xn=`swimlane`,Zn={id:Xn,detector:i(e=>/^\s*swimlane-beta\b/.test(e),`detector`),loader:i(async()=>{let{diagram:e}=await r(async()=>{let{diagram:e}=await import(`./swimlanesDiagram-TC7HE7FX-Dx92YAeU.js`);return{diagram:e}},__vite__mapDeps([36,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,28,30,31,19,32,33,34]));return{id:Xn,diagram:e}},`loader`)},Qn=`er`,$n={id:Qn,detector:i(e=>/^\s*erDiagram/.test(e),`detector`),loader:i(async()=>{let{diagram:e}=await r(async()=>{let{diagram:e}=await import(`./erDiagram-OPXOYQCR-JFHuQAWq.js`);return{diagram:e}},__vite__mapDeps([37,1,2,3,4,5,33,6,7,8,9,10,12,11,13,14,15,16,17,18,30,31,19]));return{id:Qn,diagram:e}},`loader`)},er=`gitGraph`,tr={id:er,detector:i(e=>/^\s*gitGraph/.test(e),`detector`),loader:i(async()=>{let{diagram:e}=await r(async()=>{let{diagram:e}=await import(`./gitGraphDiagram-X574FWY7-Cy-gNPac.js`);return{diagram:e}},__vite__mapDeps([38,1,2,39,4,5,40,3,6,7,41,42]));return{id:er,diagram:e}},`loader`)},nr=`gantt`,rr={id:nr,detector:i(e=>/^\s*gantt/.test(e),`detector`),loader:i(async()=>{let{diagram:e}=await r(async()=>{let{diagram:e}=await import(`./ganttDiagram-FUAMR5RP-C5psbznc.js`);return{diagram:e}},__vite__mapDeps([43,1,2,3,4,5,44,45,46,7,6]));return{id:nr,diagram:e}},`loader`)},ir=`info`,ar={id:ir,detector:i(e=>/^\s*info/.test(e),`detector`),loader:i(async()=>{let{diagram:e}=await r(async()=>{let{diagram:e}=await import(`./infoDiagram-VRGFBTTK-DnkrYsVs.js`);return{diagram:e}},__vite__mapDeps([47,1,2,39,4,5,40,3]));return{id:ir,diagram:e}},`loader`)},or=`pie`,sr={id:or,detector:i(e=>/^\s*pie/.test(e),`detector`),loader:i(async()=>{let{diagram:e}=await r(async()=>{let{diagram:e}=await import(`./pieDiagram-5QR66LMP-MLPjQpFM.js`);return{diagram:e}},__vite__mapDeps([48,1,2,39,4,5,40,3,49,46,17,7,50,18,6,41]));return{id:or,diagram:e}},`loader`)},cr=`quadrantChart`,lr={id:cr,detector:i(e=>/^\s*quadrantChart/.test(e),`detector`),loader:i(async()=>{let{diagram:e}=await r(async()=>{let{diagram:e}=await import(`./quadrantDiagram-O4NWA36T-CprY7yVN.js`);return{diagram:e}},__vite__mapDeps([51,1,2,3,4,5,44,45,46]));return{id:cr,diagram:e}},`loader`)},ur=`xychart`,dr={id:ur,detector:i(e=>/^\s*xychart(-beta)?/.test(e),`detector`),loader:i(async()=>{let{diagram:e}=await r(async()=>{let{diagram:e}=await import(`./xychartDiagram-PMCCYNJV-C3xVeS8n.js`);return{diagram:e}},__vite__mapDeps([52,1,2,3,4,5,44,45,46,49,6,7,16,17,18,8,9]));return{id:ur,diagram:e}},`loader`)},fr=`requirement`,pr={id:fr,detector:i(e=>/^\s*requirement(Diagram)?/.test(e),`detector`),loader:i(async()=>{let{diagram:e}=await r(async()=>{let{diagram:e}=await import(`./requirementDiagram-PLB6GJNP-Ck-7Hpab.js`);return{diagram:e}},__vite__mapDeps([53,1,2,3,4,5,6,7,8,9,10,12,11,13,14,15,16,17,18,30,31,19]));return{id:fr,diagram:e}},`loader`)},mr=`sequence`,hr={id:mr,detector:i(e=>/^\s*sequenceDiagram/.test(e),`detector`),loader:i(async()=>{let{diagram:e}=await r(async()=>{let{diagram:e}=await import(`./sequenceDiagram-PO4LG4MO-wco_mvTt.js`);return{diagram:e}},__vite__mapDeps([54,1,2,3,4,5,7,6,28,42]));return{id:mr,diagram:e}},`loader`)},gr=`classDiagram`,_r={id:gr,detector:i(e=>/^\s*classDiagram/.test(e),`detector`),loader:i(async()=>{let{diagram:e}=await r(async()=>{let{diagram:e}=await import(`./classDiagram-v2-NBCMYWYE-KufjDRbB.js`);return{diagram:e}},__vite__mapDeps([55,1,2,3,4,5,6,7,8,9,34,10,12,11,13,14,15,16,17,18,28,30,31,19]));return{id:gr,diagram:e}},`loader`)},vr=`stateDiagram`,yr={id:vr,detector:i(e=>/^\s*stateDiagram/.test(e),`detector`),loader:i(async()=>{let{diagram:e}=await r(async()=>{let{diagram:e}=await import(`./stateDiagram-v2-GCMORJYK-B1l0Xks5.js`);return{diagram:e}},__vite__mapDeps([56,1,2,3,4,5,6,7,8,9,10,12,11,13,14,15,16,17,18,28,30,31,19]));return{id:vr,diagram:e}},`loader`)},br=`journey`,xr={id:br,detector:i(e=>/^\s*journey/.test(e),`detector`),loader:i(async()=>{let{diagram:e}=await r(async()=>{let{diagram:e}=await import(`./journeyDiagram-ZHPQQLJL-CY5HU_eC.js`);return{diagram:e}},__vite__mapDeps([57,1,2,3,4,5,50,17,7,34,28]));return{id:br,diagram:e}},`loader`)},Sr={draw:i((e,n,r)=>{t.debug(`rendering svg for syntax error
|
|
36
|
+
`);let i=_e(n),a=i.append(`g`);i.attr(`viewBox`,`0 0 2412 512`),S(i,100,512,!0),a.append(`path`).attr(`class`,`error-icon`).attr(`d`,`m411.313,123.313c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32-9.375,9.375-20.688-20.688c-12.484-12.5-32.766-12.5-45.25,0l-16,16c-1.261,1.261-2.304,2.648-3.31,4.051-21.739-8.561-45.324-13.426-70.065-13.426-105.867,0-192,86.133-192,192s86.133,192 192,192 192-86.133 192-192c0-24.741-4.864-48.327-13.426-70.065 1.402-1.007 2.79-2.049 4.051-3.31l16-16c12.5-12.492 12.5-32.758 0-45.25l-20.688-20.688 9.375-9.375 32.001-31.999zm-219.313,100.687c-52.938,0-96,43.063-96,96 0,8.836-7.164,16-16,16s-16-7.164-16-16c0-70.578 57.422-128 128-128 8.836,0 16,7.164 16,16s-7.164,16-16,16z`),a.append(`path`).attr(`class`,`error-icon`).attr(`d`,`m459.02,148.98c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l16,16c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16.001-16z`),a.append(`path`).attr(`class`,`error-icon`).attr(`d`,`m340.395,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16-16c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l15.999,16z`),a.append(`path`).attr(`class`,`error-icon`).attr(`d`,`m400,64c8.844,0 16-7.164 16-16v-32c0-8.836-7.156-16-16-16-8.844,0-16,7.164-16,16v32c0,8.836 7.156,16 16,16z`),a.append(`path`).attr(`class`,`error-icon`).attr(`d`,`m496,96.586h-32c-8.844,0-16,7.164-16,16 0,8.836 7.156,16 16,16h32c8.844,0 16-7.164 16-16 0-8.836-7.156-16-16-16z`),a.append(`path`).attr(`class`,`error-icon`).attr(`d`,`m436.98,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688l32-32c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32c-6.251,6.25-6.251,16.375-0.001,22.625z`),a.append(`text`).attr(`class`,`error-text`).attr(`x`,1440).attr(`y`,250).attr(`font-size`,`150px`).style(`text-anchor`,`middle`).text(`Syntax error in text`),a.append(`text`).attr(`class`,`error-text`).attr(`x`,1250).attr(`y`,400).attr(`font-size`,`100px`).style(`text-anchor`,`middle`).text(`mermaid version ${r}`)},`draw`)},Cr=Sr,wr={db:{},renderer:Sr,parser:{parse:i(()=>{},`parse`)}},Tr=`flowchart-elk`,Er={id:Tr,detector:i((e,t={})=>/^\s*flowchart-elk/.test(e)?(t.layout=`elk`,!0):!1,`detector`),loader:i(async()=>{let{diagram:e}=await r(async()=>{let{diagram:e}=await import(`./flowDiagram-KWPJA3E3-DC2FrXkH.js`);return{diagram:e}},__vite__mapDeps([29,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,28,30,31,19,32,33,34]));return{id:Tr,diagram:e}},`loader`)},Dr=`timeline`,Or={id:Dr,detector:i(e=>/^\s*timeline/.test(e),`detector`),loader:i(async()=>{let{diagram:e}=await r(async()=>{let{diagram:e}=await import(`./timeline-definition-EJHVYXUP-BvXqIXyV.js`);return{diagram:e}},__vite__mapDeps([58,1,2,3,4,5,50,17,7,6,12]));return{id:Dr,diagram:e}},`loader`)},kr=`mindmap`,Ar={id:kr,detector:i(e=>/^\s*mindmap/.test(e),`detector`),loader:i(async()=>{let{diagram:e}=await r(async()=>{let{diagram:e}=await import(`./mindmap-definition-NLK3R4M7-yqrZgVjd.js`);return{diagram:e}},__vite__mapDeps([59,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,30,31,19]));return{id:kr,diagram:e}},`loader`)},jr=`kanban`,Mr={id:jr,detector:i(e=>/^\s*kanban/.test(e),`detector`),loader:i(async()=>{let{diagram:e}=await r(async()=>{let{diagram:e}=await import(`./kanban-definition-PNTS6WVX-DvzRwcD7.js`);return{diagram:e}},__vite__mapDeps([60,1,2,3,4,5,6,7,8,9,34,10,11,12,13,14,19]));return{id:jr,diagram:e}},`loader`)},Nr=`sankey`,Pr={id:Nr,detector:i(e=>/^\s*sankey(-beta)?/.test(e),`detector`),loader:i(async()=>{let{diagram:e}=await r(async()=>{let{diagram:e}=await import(`./sankeyDiagram-IPEJSGJF-DmstfGGj.js`);return{diagram:e}},__vite__mapDeps([61,1,2,3,4,5,49,46]));return{id:Nr,diagram:e}},`loader`)},Fr=`packet`,Ir={id:Fr,detector:i(e=>/^\s*packet(-beta)?/.test(e),`detector`),loader:i(async()=>{let{diagram:e}=await r(async()=>{let{diagram:e}=await import(`./diagram-MLGK6HIB-C55nJ_CR.js`);return{diagram:e}},__vite__mapDeps([62,1,2,39,4,5,40,3,6,7,41]));return{id:Fr,diagram:e}},`loader`)},Lr=`radar`,Rr={id:Lr,detector:i(e=>/^\s*radar-beta/.test(e),`detector`),loader:i(async()=>{let{diagram:e}=await r(async()=>{let{diagram:e}=await import(`./diagram-MPIPVDR6-DeYo8-yc.js`);return{diagram:e}},__vite__mapDeps([63,1,2,39,4,5,40,3,6,7,41]));return{id:Lr,diagram:e}},`loader`)},zr=`block`,Br={id:zr,detector:i(e=>/^\s*block(-beta)?/.test(e),`detector`),loader:i(async()=>{let{diagram:e}=await r(async()=>{let{diagram:e}=await import(`./blockDiagram-BEXU5L5S-DFIHGD-G.js`);return{diagram:e}},__vite__mapDeps([64,1,2,3,4,5,33,6,7,8,9,34,65,10,12,11,13,14,15,16,17,18,21]));return{id:zr,diagram:e}},`loader`)},Vr=`treeView`,Hr={id:Vr,detector:i(e=>/^\s*treeView-beta/.test(e),`detector`),loader:i(async()=>{let{diagram:e}=await r(async()=>{let{diagram:e}=await import(`./diagram-CDSNMT55-owh05Yfi.js`);return{diagram:e}},__vite__mapDeps([66,1,2,39,4,5,40,3,6,7,41,8,42]));return{id:Vr,diagram:e}},`loader`)},Ur=`architecture`,Wr={id:Ur,detector:i(e=>/^\s*architecture/.test(e),`detector`),loader:i(async()=>{let{diagram:e}=await r(async()=>{let{diagram:e}=await import(`./architectureDiagram-NJMV4G6O-BNbYrQOP.js`);return{diagram:e}},__vite__mapDeps([67,1,2,39,4,5,40,3,6,7,41,8,9,26]));return{id:Ur,diagram:e}},`loader`)},Gr=`eventmodeling`,Kr={id:Gr,detector:i(e=>/^\s*eventmodeling/.test(e),`detector`),loader:i(async()=>{let{diagram:e}=await r(async()=>{let{diagram:e}=await import(`./diagram-ATOU4E4O-B6wVKZ5z.js`);return{diagram:e}},__vite__mapDeps([68,1,2,40,39,4,5,3,6,7,41]));return{id:Gr,diagram:e}},`loader`)},qr=`ishikawa`,Jr={id:qr,detector:i(e=>/^\s*ishikawa(-beta)?\b/i.test(e),`detector`),loader:i(async()=>{let{diagram:e}=await r(async()=>{let{diagram:e}=await import(`./ishikawaDiagram-OU5B5YK6-_u6_xJba.js`);return{diagram:e}},__vite__mapDeps([69,1,2,3,4,5,6,7,13]));return{id:qr,diagram:e}},`loader`)},Yr=`venn`,Xr={id:Yr,detector:i(e=>/^\s*venn-beta/.test(e),`detector`),loader:i(async()=>{let{diagram:e}=await r(async()=>{let{diagram:e}=await import(`./vennDiagram-UO4OBE2U-BCmaseck.js`);return{diagram:e}},__vite__mapDeps([70,1,2,3,4,5,6,7,13]));return{id:Yr,diagram:e}},`loader`)},Zr=`treemap`,Qr={id:Zr,detector:i(e=>/^\s*treemap/.test(e),`detector`),loader:i(async()=>{let{diagram:e}=await r(async()=>{let{diagram:e}=await import(`./diagram-3UASUU5V-C2qQgCvw.js`);return{diagram:e}},__vite__mapDeps([71,1,2,39,4,5,40,3,49,46,45,6,7,41,10,31]));return{id:Zr,diagram:e}},`loader`)},$r=`usecase`,ei={id:$r,detector:i(e=>/^\s*usecase-beta(?:\s|$)/.test(e),`detector`),loader:i(async()=>{let{diagram:e}=await r(async()=>{let{diagram:e}=await import(`./usecaseDiagram-POWQR4AR-D_lJYuuq.js`);return{diagram:e}},__vite__mapDeps([72,1,2,3,4,5,6,7,8,9,10,12,11,13,14,15,16,17,18,30,31,19]));return{id:$r,diagram:e}},`loader`)},ti=`wardley`,ni={id:ti,detector:i(e=>/^\s*wardley-beta/i.test(e),`detector`),loader:i(async()=>{let{diagram:e}=await r(async()=>{let{diagram:e}=await import(`./wardleyDiagram-VNRHLVJA-CZ-FrOG9.js`);return{diagram:e}},__vite__mapDeps([73,1,2,39,4,5,40,3,6,7,41]));return{id:ti,diagram:e}},`loader`)},ri=`cynefin`,ii={id:ri,detector:i(e=>/^\s*cynefin-beta(?:[\s:]|$)/.test(e),`detector`),loader:i(async()=>{let{diagram:e}=await r(async()=>{let{diagram:e}=await import(`./cynefinDiagram-VND7K2PF-CI5Kf3Kt.js`);return{diagram:e}},__vite__mapDeps([74,1,2,39,4,5,40,3,6,7,41]));return{id:ri,diagram:e}},`loader`)},ai=`railroad`,oi={id:ai,detector:i(e=>/^\s*railroad-beta/i.test(e),`detector`),loader:i(async()=>{let{diagram:e}=await r(async()=>{let{diagram:e}=await import(`./railroadDiagram-XR7U4H2S-BeHaiLp2.js`);return{diagram:e}},__vite__mapDeps([75,1,2,39,4,5,40,3,76,41]));return{id:ai,diagram:e}},`loader`)},si=`railroadEbnf`,ci={id:si,detector:i(e=>/^\s*railroad-ebnf-beta/i.test(e),`detector`),loader:i(async()=>{let{diagram:e}=await r(async()=>{let{diagram:e}=await import(`./ebnfDiagram-ZINNZB2B-BoJE7Elt.js`);return{diagram:e}},__vite__mapDeps([77,1,2,39,4,5,40,3,76,41]));return{id:si,diagram:e}},`loader`)},li=`railroadAbnf`,ui={id:li,detector:i(e=>/^\s*railroad-abnf-beta/i.test(e),`detector`),loader:i(async()=>{let{diagram:e}=await r(async()=>{let{diagram:e}=await import(`./abnfDiagram-O67JEVCF-BniYQwXa.js`);return{diagram:e}},__vite__mapDeps([78,1,2,39,4,5,40,3,76,41]));return{id:li,diagram:e}},`loader`)},di=`railroadPeg`,fi={id:di,detector:i(e=>/^\s*railroad-peg-beta/i.test(e),`detector`),loader:i(async()=>{let{diagram:e}=await r(async()=>{let{diagram:e}=await import(`./pegDiagram-GJSIUBJH-BfvMLRyD.js`);return{diagram:e}},__vite__mapDeps([79,1,2,39,4,5,40,3,76,41]));return{id:di,diagram:e}},`loader`)},pi=!1,mi=i(()=>{pi||(pi=!0,f(`error`,wr,e=>e.toLowerCase().trim()===`error`),f(`---`,{db:{clear:i(()=>{},`clear`)},styles:{},renderer:{draw:i(()=>{},`draw`)},parser:{parse:i(()=>{throw Error("Diagrams beginning with --- are not valid. If you were trying to use a YAML front-matter, please ensure that you've correctly opened and closed the YAML front-matter with un-indented `---` blocks")},`parse`)},init:i(()=>null,`init`)},e=>e.toLowerCase().trimStart().startsWith(`---`)),p(Er,Ar,Wr),p(Yn,Gn,Mr,_r,$n,rr,ar,sr,pr,hr,Zn,qn,Or,tr,yr,xr,lr,Pr,Ir,dr,Br,Kr,Hr,Rr,Jr,Qr,oi,ci,ui,fi,Xr,ni,ii,ei))},`addDiagrams`),hi=i(async()=>{t.debug(`Loading registered diagrams`);let e=(await Promise.allSettled(Object.entries(E).map(async([e,{detector:n,loader:r}])=>{if(r)try{h(e)}catch{try{let{diagram:e,id:t}=await r();f(t,e,n)}catch(n){throw t.error(`Failed to load external diagram with key ${e}. Removing from detectors.`),delete E[e],n}}}))).filter(e=>e.status===`rejected`);if(e.length>0){t.error(`Failed to load ${e.length} external diagrams`);for(let n of e)t.error(n);throw Error(`Failed to load ${e.length} external diagrams`)}},`loadRegisteredDiagrams`),gi=`graphics-document document`;function _i(e,t){e.attr(`role`,gi),t!==``&&e.attr(`aria-roledescription`,t)}i(_i,`setA11yDiagramInfo`);function vi(e,t,n,r){if(e.insert!==void 0){if(n){let t=`chart-desc-${r}`;e.attr(`aria-describedby`,t),e.insert(`desc`,`:first-child`).attr(`id`,t).text(n)}if(t){let n=`chart-title-${r}`;e.attr(`aria-labelledby`,n),e.insert(`title`,`:first-child`).attr(`id`,n).text(t)}}}i(vi,`addSVGa11yTitleDescription`);var yi=class e{constructor(e,t,n,r,i){this.type=e,this.text=t,this.db=n,this.parser=r,this.renderer=i}static{i(this,`Diagram`)}static async fromText(n,r={}){let i=typeof n==`string`?{raw:n,cleaned:n}:n,a=x(),s=O(i.cleaned,a);try{h(s)}catch{let e=o(s);if(!e)throw new j(`Diagram ${s} not found.`);let{id:t,diagram:n}=await e();f(t,n)}let{db:c,parser:l,renderer:u,init:d}=h(s);l.parser&&(l.parser.yy=c),c.clear?.(),d?.(a),r.title&&c.setDiagramTitle?.(r.title);let p=i.cleaned;if(c.preserveCommentsWhenParsing&&i.withComments){let e=a.maxTextSize??w.maxTextSize;i.withComments.length>e?t.warn(`Comment-preserving source exceeds maxTextSize (${i.withComments.length} > ${e}); parsing the comment-stripped text instead. Reported source positions will not account for comment lines.`):p=i.withComments}let m=ie(p)+`
|
|
37
|
+
`;return i.frontmatterLineOffset&&c.setFrontmatterLineOffset?.(i.frontmatterLineOffset),await l.parse(m),new e(s,m,c,l,u)}async render(e,t){await this.renderer.draw(this.text,e,t,this)}getParser(){return this.parser}getType(){return this.type}},bi=[],xi=i(()=>{bi.forEach(e=>{e()}),bi=[]},`attachFunctions`),Si=i(e=>e.replace(/^\s*%%(?!{)[^\n]+\n?/gm,``).trimStart(),`cleanupComments`);function Ci(e){let t=e.match(b);if(!t)return{text:e,metadata:{}};let n=t[1],r=Zt(n?t[2].split(`
|
|
38
|
+
`).map(e=>e.startsWith(n)?e.slice(n.length):e).join(`
|
|
39
|
+
`):t[2],{schema:Jt})??{};r=typeof r==`object`&&!Array.isArray(r)?r:{};let i={};return r.displayMode&&(i.displayMode=r.displayMode.toString()),r.title&&(i.title=r.title.toString()),r.config&&(i.config=r.config),{text:e.slice(t[0].length),metadata:i}}i(Ci,`extractFrontMatter`);var wi=i(e=>e.replace(/\r\n?/g,`
|
|
40
|
+
`).replace(/<(\w+)([^>]*)>/g,(e,t,n)=>`<`+t+n.replace(/="([^"]*)"/g,`='$1'`)+`>`),`cleanupText`),Ti=i(e=>{let{text:t,metadata:n}=Ci(e),{displayMode:r,title:i,config:a={}}=n;return r&&(a.gantt||={},a.gantt.displayMode=r),{title:i,config:a,text:t}},`processFrontmatter`),Ei=i(e=>{let t=L.detectInit(e)??{},n=L.detectDirective(e,`wrap`);return Array.isArray(n)?t.wrap=n.some(({type:e})=>e===`wrap`):n?.type===`wrap`&&(t.wrap=!0),{text:ne(e),directive:t}},`processDirectives`);function Di(e){let t=e,n=wi(e),r=Ti(n),i=Ei(r.text),a=re(r.config,i.directive),o=i.text;return{code:{raw:t,cleaned:Si(o),withComments:o,frontmatterLineOffset:n.length>r.text.length?(n.substring(0,n.length-r.text.length).match(/\n/g)??[]).length:0},title:r.title,config:a}}i(Di,`preprocessDiagram`);function Oi(e){let t=new TextEncoder().encode(e),n=Array.from(t,e=>String.fromCodePoint(e)).join(``);return btoa(n)}i(Oi,`toBase64`);var ki=5e4,Ai=`graph TB;a[Maximum text size in diagram exceeded];style a fill:#faa`,ji=`sandbox`,Mi=`loose`,Ni=`http://www.w3.org/2000/svg`,Pi=`http://www.w3.org/1999/xlink`,Fi=`http://www.w3.org/1999/xhtml`,Ii=`100%`,Li=`100%`,Ri=`border:0;margin:0;`,zi=`margin:0`,Bi=`allow-top-navigation-by-user-activation allow-popups`,Vi=`The "iframe" tag is not supported by your browser.`,Hi=[`foreignobject`],Ui=[`dominant-baseline`];function Wi(e){let t=Di(e);c();let n;try{n=O(t.code.cleaned,x())}catch{n=void 0}return u(n),D(t.config??{}),t}i(Wi,`processAndSetConfigs`);async function Gi(e,t){mi();try{let{code:t,config:n}=Wi(e);return{diagramType:(await yi.fromText(t)).type,config:n}}catch(e){if(t?.suppressErrors)return!1;throw e}finally{u(void 0)}}i(Gi,`parse`);var Ki=i((e,t,n=[])=>`.${e} ${t} ${d(`{ ${n.join(` !important; `)} !important; }`)}`,`cssImportantStyles`),qi=i((e,t=new Map)=>{let n=new CSSStyleSheet;if(e.fontFamily!==void 0&&n.insertRule(`:root { --mermaid-font-family: ${e.fontFamily}}`,n.cssRules.length),e.altFontFamily!==void 0&&n.insertRule(`:root { --mermaid-alt-font-family: ${e.altFontFamily}}`,n.cssRules.length),t instanceof Map){let r=g(e)?[`> *`,`span`]:[`rect`,`polygon`,`ellipse`,`circle`,`path`];t.forEach(e=>{ye(e.styles)||r.forEach(t=>{n.insertRule(Ki(e.id,t,e.styles),n.cssRules.length)}),ye(e.textStyles)||n.insertRule(Ki(e.id,`tspan`,(e?.textStyles||[]).map(e=>e.replace(`color`,`fill`))),n.cssRules.length)})}let r=``;if(e.themeCSS!==void 0){if(typeof n.replaceSync==`function`){let t=new CSSStyleSheet;t.replaceSync(e.themeCSS),r=T(t)+`
|
|
41
|
+
`}else r+=`${e.themeCSS}
|
|
42
|
+
`}return r+T(n)},`createCssStyles`),Ji=i((e,n)=>Vn(In(`${e}{${n}}`),Un([i(function(n,r,i,a){if(n.type===`rule`&&Array.isArray(n.props)){if(n.parent&&n.parent.type===`@keyframes`)return;n.props=n.props.map(t=>t===e&&Array.isArray(n.children)&&n.children.every(e=>e.type===`decl`&&new Set([`font-family`,`font-size`,`fill`]).has(e.props))?t:!t.startsWith(`${e} `)&&!t.startsWith(`${e}>`)||t.startsWith(`${e} ||`)?`${e} ${t}`:t)}else n.type.startsWith(`@`)&&([`@media`,`@supports`,`@layer`,`@scope`,`@container`,`@starting-style`,`@keyframes`].includes(n.type)||(t.warn(`Removing unsupported at-rule ${n.type} from CSS`),n.type=on))},`addNamespace`),Hn])),`compileCSS`),Yi=i((e,t,n,r)=>{let i=qi(e,n);return Ji(r,y(t,i,{...e.themeVariables,theme:e.theme,look:e.look},r))},`createUserStyles`),Xi=i((e=``,t,n)=>{let r=e;return!n&&!t&&(r=r.replace(/marker-end="url\([\d+./:=?A-Za-z-]*?#/g,`marker-end="url(#`)),r=P(r),r=r.replace(/<br>/g,`<br/>`),r},`cleanUpSvgCode`),Zi=i((e=``,t)=>`<iframe style="width:${Ii};height:${t?.viewBox?.baseVal?.height?t.viewBox.baseVal.height+`px`:Li};${Ri}" src="data:text/html;charset=UTF-8;base64,${Oi(`<body style="${zi}">${e}</body>`)}" sandbox="${Bi}">
|
|
43
|
+
${Vi}
|
|
44
|
+
</iframe>`,`putIntoIFrame`),Qi=i((e,t,n,r,i)=>{let a=e.append(`div`);a.attr(`id`,n),r&&a.attr(`style`,r);let o=a.append(`svg`).attr(`id`,t).attr(`width`,`100%`).attr(`xmlns`,Ni);return i&&o.attr(`xmlns:xlink`,i),o.append(`g`),e},`appendDivSvgG`);function $i(e,t){return e.append(`iframe`).attr(`id`,t).attr(`style`,`width: 100%; height: 100%;`).attr(`sandbox`,``)}i($i,`sandboxedIframe`);var ea=i((e,t,n,r)=>{e.getElementById(t)?.remove(),e.getElementById(n)?.remove(),e.getElementById(r)?.remove()},`removeExistingElements`),ta=i(async function(e,r,a){mi();let o=Wi(r),s=o.code;r=s.cleaned;let c=x();t.debug(c),r.length>(c?.maxTextSize??ki)&&(r=Ai,s={raw:r,cleaned:r});let l=`#${e}`,u=`i`+e,d=`#`+u,f=`d`+e,p=`#`+f,m=i(()=>{let e=n(g?d:p).node();e&&`remove`in e&&e.remove()},`removeTempElements`),h=n(document.body),g=c.securityLevel===ji,_=c.securityLevel===Mi,v=c.fontFamily;if(a!==void 0){if(a&&(a.innerHTML=``),g){let e=$i(n(a),u);h=n(e.nodes()[0].contentDocument.body),h.node().style.margin=`0`}else h=n(a);Qi(h,e,f,`font-family: ${v}`,Pi)}else{if(ea(document,e,f,u),g){let e=$i(n(document.body),u);h=n(e.nodes()[0].contentDocument.body),h.node().style.margin=`0`}else h=n(`body`);Qi(h,e,f)}let y,b;try{y=await yi.fromText(s,{title:o.title})}catch(e){if(c.suppressErrorRendering)throw m(),e;y=await yi.fromText(`error`),b=e}let S=h.select(p).node(),w=y.type,T=S.firstChild,E=T.firstChild,D=y.renderer.getClasses?.(r,y),O=Yi(c,w,D,l),k=document.createElement(`style`);k.innerHTML=O,T.insertBefore(k,E);try{await y.renderer.draw(r,e,`12.0.0`,y)}catch(t){throw c.suppressErrorRendering?m():Cr.draw(r,e,`12.0.0`),t}let A=h.select(`${p} svg`),j=y.db.getAccTitle?.(),M=y.db.getAccDescription?.();aa(w,A,j,M);let te=i(()=>{h.select(`[id="${e}"]`).selectAll(`foreignobject > *`).attr(`xmlns`,Fi);let n=h.select(p).node().innerHTML;if(t.debug(`config.arrowMarkerAbsolute`,c.arrowMarkerAbsolute),n=Xi(n,g,ee(c.arrowMarkerAbsolute)),g){let e=h.select(p+` svg`).node();n=Zi(n,e)}else _||(n=C.sanitize(n,{ADD_TAGS:Hi,ADD_ATTR:Ui,HTML_INTEGRATION_POINTS:{foreignobject:!0}}));return xi(),n},`serializeSvg`)();if(b)throw b;return m(),{diagramType:w,svg:te,bindFunctions:y.db.bindFunctions}},`renderDiagram`),na=i(async function(e,t,n){try{return await ta(e,t,n)}finally{u(void 0)}},`render`);function ra(t={}){let n=k({},t);n?.fontFamily&&!n.themeVariables?.fontFamily&&(n.themeVariables||={},n.themeVariables.fontFamily=n.fontFamily),_(n);let r=M.theme;n?.theme&&Object.hasOwn(m,n.theme)?n.themeVariables=m[n.theme].getThemeVariables(n.themeVariables):n&&(n.theme!=null&&n.theme!==`null`&&(n.theme=r),n.themeVariables=m[r].getThemeVariables(n.themeVariables));let i=typeof n==`object`?l(n):s();e(i.logLevel),mi()}i(ra,`initialize`);var ia=i((e,t={})=>{let{code:n}=Di(e);return yi.fromText(n,t)},`getDiagramFromText`);function aa(e,t,n,r){_i(t,e),vi(t,n,r,t.attr(`id`))}i(aa,`addA11yInfo`);var Q=Object.freeze({render:na,parse:Gi,getDiagramFromText:ia,initialize:ra,getConfig:x,setConfig:v,getSiteConfig:s,updateSiteConfig:a,reset:i(()=>{c()},`reset`),globalReset:i(()=>{c(M)},`globalReset`),defaultConfig:M});e(x().logLevel),c(x());var oa=i((e,n,r)=>{t.warn(e),I(e)?(r&&r(e.str,e.hash),n.push({...e,message:e.str,error:e})):(r&&r(e),e instanceof Error&&n.push({str:e.message,message:e.message,hash:e.name,error:e}))},`handleError`),sa=i(async function(e={querySelector:`.mermaid`}){try{await ca(e)}catch(n){if(I(n)&&t.error(n.str),$.parseError&&$.parseError(n),!e.suppressErrors)throw t.error(`Use the suppressErrors option to suppress these errors`),n}},`run`),ca=i(async function({postRenderCallback:e,querySelector:n,nodes:r}={querySelector:`.mermaid`}){let i=Q.getConfig();t.debug(`${e?``:`No `}Callback function found`);let a;if(r)a=r;else if(n)a=document.querySelectorAll(n);else throw Error(`Nodes and querySelector are both undefined`);t.debug(`Found ${a.length} diagrams`),i?.startOnLoad!==void 0&&(t.debug(`Start On Load: `+i?.startOnLoad),Q.updateSiteConfig({startOnLoad:i?.startOnLoad}));let o=new L.InitIDGenerator(i.deterministicIds,i.deterministicIDSeed),s,c=[];for(let n of Array.from(a)){if(t.info(`Rendering diagram: `+n.id),n.getAttribute(`data-processed`))continue;n.setAttribute(`data-processed`,`true`);let r=`mermaid-${o.next()}`;s=n.innerHTML,s=le(L.entityDecode(s)).trim().replace(/<br\s*\/?>/gi,`<br/>`);let i=L.detectInit(s);i&&t.debug(`Detected early reinit: `,i);try{let{svg:t,bindFunctions:i}=await va(r,s,n);n.innerHTML=t,e&&await e(r),i&&i(n)}catch(e){oa(e,c,$.parseError)}}if(c.length>0)throw c[0]},`runThrowsErrors`),la=i(function(e){Q.initialize(e)},`initialize`),ua=i(async function(e,n,r){t.warn(`mermaid.init is deprecated. Please use run instead.`),e&&la(e);let i={postRenderCallback:r,querySelector:`.mermaid`};typeof n==`string`?i.querySelector=n:n&&(i.nodes=n instanceof HTMLElement?[n]:n),await sa(i)},`init`),da=i(async(e,{lazyLoad:t=!0}={})=>{mi(),p(...e),t===!1&&await hi()},`registerExternalDiagrams`),fa=i(function(){if($.startOnLoad){let{startOnLoad:e}=Q.getConfig();e&&$.run().catch(e=>t.error(`Mermaid failed to initialize`,e))}},`contentLoaded`);typeof document<`u`&&window.addEventListener(`load`,fa,!1);var pa=i(function(e){$.parseError=e},`setParseErrorHandler`),ma=[],ha=!1,ga=i(async()=>{if(!ha){for(ha=!0;ma.length>0;){let e=ma.shift();if(e)try{await e()}catch(e){t.error(`Error executing queue`,e)}}ha=!1}},`executeQueue`),_a=i(async(e,n)=>new Promise((r,a)=>{let o=i(()=>new Promise((i,o)=>{Q.parse(e,n).then(e=>{i(e),r(e)},e=>{t.error(`Error parsing`,e),$.parseError?.(e),o(e),a(e)})}),`performCall`);ma.push(o),ga().catch(a)}),`parse`),va=i((e,n,r)=>new Promise((a,o)=>{let s=i(()=>new Promise((i,s)=>{Q.render(e,n,r).then(e=>{i(e),a(e)},e=>{t.error(`Error parsing`,e),$.parseError?.(e),s(e),o(e)})}),`performCall`);ma.push(s),ga().catch(o)}),`render`),$={startOnLoad:!0,mermaidAPI:Q,parse:_a,render:va,init:ua,run:sa,registerExternalDiagrams:da,registerLayoutLoaders:Ce,initialize:la,parseError:void 0,contentLoaded:fa,setParseErrorHandler:pa,detectType:O,registerIconPacks:ce,getRegisteredDiagramsMetadata:i(()=>Object.keys(E).map(e=>({id:e})),`getRegisteredDiagramsMetadata`)},ya=$;export{_e as a,ya as default,Te as i,Zt as n,De as r,Jt as t};
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
import{m as e}from"./src-D_iIdUkB.js";import{n as t}from"./chunk-Y2CYZVJY-DsF7k-Jl.js";import{b as n,f as r,it as i,k as a,nt as o,tt as s,x as c,z as l}from"./chunk-O7XYJQB3-Bqi4DWie.js";import"./chunk-ZIGJFQKS-8PrSySWh.js";import"./chunk-742MDFTN-CSlr64s4.js";import"./chunk-MBY4JIJT--fcyBAwh.js";import"./chunk-7PRAP22T-CE6VUtLz.js";import"./chunk-7INBJB4K-CelZsjbp.js";import"./chunk-5DYCD2WN-CnbWAgyo.js";import"./chunk-Z7XXMR3K-BFUBfhD1.js";import{t as u}from"./chunk-XXDRQBXY-C1_eEj17.js";import{t as d}from"./chunk-WEXAMYUT-CnyLp8pC.js";import"./chunk-UA2S7LBM-BjrJ4RAw.js";import{i as f,r as p}from"./mermaid.core-DQoUVKoE.js";var m=[];for(let e=0;e<256;++e)m.push((e+256).toString(16).slice(1));function h(e,t=0){return(m[e[t+0]]+m[e[t+1]]+m[e[t+2]]+m[e[t+3]]+`-`+m[e[t+4]]+m[e[t+5]]+`-`+m[e[t+6]]+m[e[t+7]]+`-`+m[e[t+8]]+m[e[t+9]]+`-`+m[e[t+10]]+m[e[t+11]]+m[e[t+12]]+m[e[t+13]]+m[e[t+14]]+m[e[t+15]]).toLowerCase()}var g=new Uint8Array(16);function _(){return crypto.getRandomValues(g)}function v(e,t,n){return!t&&!e&&crypto.randomUUID?crypto.randomUUID():y(e,t,n)}function y(e,t,n){e||={};let r=e.random??e.rng?.()??_();if(r.length<16)throw Error(`Random bytes length must be >= 16`);if(r[6]=r[6]&15|64,r[8]=r[8]&63|128,t){if(n||=0,n<0||n+16>t.length)throw RangeError(`UUID byte range ${n}:${n+15} is out of buffer bounds`);for(let e=0;e<16;++e)t[n+e]=r[e];return t}return h(r)}var b=(function(){var e=t(function(e,t,n,r){for(n||={},r=e.length;r--;n[e[r]]=t);return n},`o`),n=[1,4],r=[1,13],i=[1,12],a=[1,15],o=[1,16],s=[1,20],c=[1,19],l=[6,7,8],u=[1,26],d=[1,24],f=[1,25],p=[6,7,11],m=[1,6,13,15,16,19,22],h=[1,33],g=[1,34],_=[1,6,7,11,13,15,16,19,22],v={trace:t(function(){},`trace`),yy:{},symbols_:{error:2,start:3,mindMap:4,spaceLines:5,SPACELINE:6,NL:7,MINDMAP:8,document:9,stop:10,EOF:11,statement:12,SPACELIST:13,node:14,ICON:15,CLASS:16,nodeWithId:17,nodeWithoutId:18,NODE_DSTART:19,NODE_DESCR:20,NODE_DEND:21,NODE_ID:22,$accept:0,$end:1},terminals_:{2:`error`,6:`SPACELINE`,7:`NL`,8:`MINDMAP`,11:`EOF`,13:`SPACELIST`,15:`ICON`,16:`CLASS`,19:`NODE_DSTART`,20:`NODE_DESCR`,21:`NODE_DEND`,22:`NODE_ID`},productions_:[0,[3,1],[3,2],[5,1],[5,2],[5,2],[4,2],[4,3],[10,1],[10,1],[10,1],[10,2],[10,2],[9,3],[9,2],[12,2],[12,2],[12,2],[12,1],[12,1],[12,1],[12,1],[12,1],[14,1],[14,1],[18,3],[17,1],[17,4]],performAction:t(function(e,t,n,r,i,a,o){var s=a.length-1;switch(i){case 6:case 7:return r;case 8:r.getLogger().trace(`Stop NL `);break;case 9:r.getLogger().trace(`Stop EOF `);break;case 11:r.getLogger().trace(`Stop NL2 `);break;case 12:r.getLogger().trace(`Stop EOF2 `);break;case 15:r.getLogger().info(`Node: `,a[s].id),r.addNode(a[s-1].length,a[s].id,a[s].descr,a[s].type);break;case 16:r.getLogger().trace(`Icon: `,a[s]),r.decorateNode({icon:a[s]});break;case 17:case 21:r.decorateNode({class:a[s]});break;case 18:r.getLogger().trace(`SPACELIST`);break;case 19:r.getLogger().trace(`Node: `,a[s].id),r.addNode(0,a[s].id,a[s].descr,a[s].type);break;case 20:r.decorateNode({icon:a[s]});break;case 25:r.getLogger().trace(`node found ..`,a[s-2]),this.$={id:a[s-1],descr:a[s-1],type:r.getType(a[s-2],a[s])};break;case 26:this.$={id:a[s],descr:a[s],type:r.nodeType.DEFAULT};break;case 27:r.getLogger().trace(`node found ..`,a[s-3]),this.$={id:a[s-3],descr:a[s-1],type:r.getType(a[s-2],a[s])}}},`anonymous`),table:[{3:1,4:2,5:3,6:[1,5],8:n},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:n},{6:r,7:[1,10],9:9,12:11,13:i,14:14,15:a,16:o,17:17,18:18,19:s,22:c},e(l,[2,3]),{1:[2,2]},e(l,[2,4]),e(l,[2,5]),{1:[2,6],6:r,12:21,13:i,14:14,15:a,16:o,17:17,18:18,19:s,22:c},{6:r,9:22,12:11,13:i,14:14,15:a,16:o,17:17,18:18,19:s,22:c},{6:u,7:d,10:23,11:f},e(p,[2,22],{17:17,18:18,14:27,15:[1,28],16:[1,29],19:s,22:c}),e(p,[2,18]),e(p,[2,19]),e(p,[2,20]),e(p,[2,21]),e(p,[2,23]),e(p,[2,24]),e(p,[2,26],{19:[1,30]}),{20:[1,31]},{6:u,7:d,10:32,11:f},{1:[2,7],6:r,12:21,13:i,14:14,15:a,16:o,17:17,18:18,19:s,22:c},e(m,[2,14],{7:h,11:g}),e(_,[2,8]),e(_,[2,9]),e(_,[2,10]),e(p,[2,15]),e(p,[2,16]),e(p,[2,17]),{20:[1,35]},{21:[1,36]},e(m,[2,13],{7:h,11:g}),e(_,[2,11]),e(_,[2,12]),{21:[1,37]},e(p,[2,25]),e(p,[2,27])],defaultActions:{2:[2,1],6:[2,2]},parseError:t(function(e,t){if(t.recoverable)this.trace(e);else{var n=Error(e);throw n.hash=t,n}},`parseError`),parse:t(function(e){var n=this,r=[0],i=[],a=[null],o=[],s=this.table,c=``,l=0,u=0,d=0,f=2,p=1,m=o.slice.call(arguments,1),h=Object.create(this.lexer),g={yy:{}};for(var _ in this.yy)Object.prototype.hasOwnProperty.call(this.yy,_)&&(g.yy[_]=this.yy[_]);h.setInput(e,g.yy),g.yy.lexer=h,g.yy.parser=this,h.yylloc===void 0&&(h.yylloc={});var v=h.yylloc;o.push(v);var y=h.options&&h.options.ranges;this.parseError=typeof g.yy.parseError==`function`?g.yy.parseError:Object.getPrototypeOf(this).parseError;function b(e){r.length-=2*e,a.length-=e,o.length-=e}t(b,`popStack`);function x(){var e=i.pop()||h.lex()||p;return typeof e!=`number`&&(e instanceof Array&&(i=e,e=i.pop()),e=n.symbols_[e]||e),e}t(x,`lex`);for(var S,C,w,T,E,D={},O,k,A,j;;){if(w=r[r.length-1],this.defaultActions[w]?T=this.defaultActions[w]:(S??=x(),T=s[w]&&s[w][S]),T===void 0||!T.length||!T[0]){var M=``;for(O in j=[],s[w])this.terminals_[O]&&O>f&&j.push(`'`+this.terminals_[O]+`'`);M=h.showPosition?`Parse error on line `+(l+1)+`:
|
|
2
|
+
`+h.showPosition()+`
|
|
3
|
+
Expecting `+j.join(`, `)+`, got '`+(this.terminals_[S]||S)+`'`:`Parse error on line `+(l+1)+`: Unexpected `+(S==p?`end of input`:`'`+(this.terminals_[S]||S)+`'`),this.parseError(M,{text:h.match,token:this.terminals_[S]||S,line:h.yylineno,loc:v,expected:j})}if(T[0]instanceof Array&&T.length>1)throw Error(`Parse Error: multiple actions possible at state: `+w+`, token: `+S);switch(T[0]){case 1:r.push(S),a.push(h.yytext),o.push(h.yylloc),r.push(T[1]),S=null,C?(S=C,C=null):(u=h.yyleng,c=h.yytext,l=h.yylineno,v=h.yylloc,d>0&&d--);break;case 2:if(k=this.productions_[T[1]][1],D.$=a[a.length-k],D._$={first_line:o[o.length-(k||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(k||1)].first_column,last_column:o[o.length-1].last_column},y&&(D._$.range=[o[o.length-(k||1)].range[0],o[o.length-1].range[1]]),E=this.performAction.apply(D,[c,u,l,g.yy,T[1],a,o].concat(m)),E!==void 0)return E;k&&(r=r.slice(0,-1*k*2),a=a.slice(0,-1*k),o=o.slice(0,-1*k)),r.push(this.productions_[T[1]][0]),a.push(D.$),o.push(D._$),A=s[r[r.length-2]][r[r.length-1]],r.push(A);break;case 3:return!0}}return!0},`parse`)};v.lexer=(function(){return{EOF:1,parseError:t(function(e,t){if(this.yy.parser)this.yy.parser.parseError(e,t);else throw Error(e)},`parseError`),setInput:t(function(e,t){return this.yy=t||this.yy||{},this._input=e,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match=``,this.conditionStack=[`INITIAL`],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},`setInput`),input:t(function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},`input`),unput:t(function(e){var t=e.length,n=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},`unput`),more:t(function(){return this._more=!0,this},`more`),reject:t(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError(`Lexical error on line `+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
|
|
4
|
+
`+this.showPosition(),{text:``,token:null,line:this.yylineno});return this},`reject`),less:t(function(e){this.unput(this.match.slice(e))},`less`),pastInput:t(function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?`...`:``)+e.substr(-20).replace(/\n/g,``)},`pastInput`),upcomingInput:t(function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?`...`:``)).replace(/\n/g,``)},`upcomingInput`),showPosition:t(function(){var e=this.pastInput(),t=Array(e.length+1).join(`-`);return e+this.upcomingInput()+`
|
|
5
|
+
`+t+`^`},`showPosition`),test_match:t(function(e,t){var n,r,i;if(this.options.backtrack_lexer&&(i={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(i.yylloc.range=this.yylloc.range.slice(0))),r=e[0].match(/(?:\r\n?|\n).*/g),r&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(e[0].length),this.matched+=e[0],n=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var a in i)this[a]=i[a];return!1}return!1},`test_match`),next:t(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var e,t,n,r;this._more||(this.yytext=``,this.match=``);for(var i=this._currentRules(),a=0;a<i.length;a++)if(n=this._input.match(this.rules[i[a]]),n&&(!t||n[0].length>t[0].length)){if(t=n,r=a,this.options.backtrack_lexer){if(e=this.test_match(n,i[a]),e!==!1)return e;if(this._backtrack){t=!1;continue}return!1}if(!this.options.flex)break}return t?(e=this.test_match(t,i[r]),e!==!1&&e):this._input===``?this.EOF:this.parseError(`Lexical error on line `+(this.yylineno+1)+`. Unrecognized text.
|
|
6
|
+
`+this.showPosition(),{text:``,token:null,line:this.yylineno})},`next`),lex:t(function(){return this.next()||this.lex()},`lex`),begin:t(function(e){this.conditionStack.push(e)},`begin`),popState:t(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},`popState`),_currentRules:t(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},`_currentRules`),topState:t(function(e){return e=this.conditionStack.length-1-Math.abs(e||0),e>=0?this.conditionStack[e]:`INITIAL`},`topState`),pushState:t(function(e){this.begin(e)},`pushState`),stateStackSize:t(function(){return this.conditionStack.length},`stateStackSize`),options:{"case-insensitive":!0},performAction:t(function(e,t,n,r){switch(n){case 0:return e.getLogger().trace(`Found comment`,t.yytext),6;case 1:return 8;case 2:this.begin(`CLASS`);break;case 3:return this.popState(),16;case 4:this.popState();break;case 5:e.getLogger().trace(`Begin icon`),this.begin(`ICON`);break;case 6:return e.getLogger().trace(`SPACELINE`),6;case 7:return 7;case 8:return 15;case 9:e.getLogger().trace(`end icon`),this.popState();break;case 10:return e.getLogger().trace(`Exploding node`),this.begin(`NODE`),19;case 11:return e.getLogger().trace(`Cloud`),this.begin(`NODE`),19;case 12:return e.getLogger().trace(`Explosion Bang`),this.begin(`NODE`),19;case 13:return e.getLogger().trace(`Cloud Bang`),this.begin(`NODE`),19;case 14:return this.begin(`NODE`),19;case 15:return this.begin(`NODE`),19;case 16:return this.begin(`NODE`),19;case 17:return this.begin(`NODE`),19;case 18:return 13;case 19:return 22;case 20:return 11;case 21:this.begin(`NSTR2`);break;case 22:return`NODE_DESCR`;case 23:this.popState();break;case 24:e.getLogger().trace(`Starting NSTR`),this.begin(`NSTR`);break;case 25:return e.getLogger().trace(`description:`,t.yytext),`NODE_DESCR`;case 26:this.popState();break;case 27:return this.popState(),e.getLogger().trace(`node end ))`),`NODE_DEND`;case 28:return this.popState(),e.getLogger().trace(`node end )`),`NODE_DEND`;case 29:return this.popState(),e.getLogger().trace(`node end ...`,t.yytext),`NODE_DEND`;case 30:return this.popState(),e.getLogger().trace(`node end ((`),`NODE_DEND`;case 31:return this.popState(),e.getLogger().trace(`node end (-`),`NODE_DEND`;case 32:return this.popState(),e.getLogger().trace(`node end (-`),`NODE_DEND`;case 33:return this.popState(),e.getLogger().trace(`node end ((`),`NODE_DEND`;case 34:return this.popState(),e.getLogger().trace(`node end ((`),`NODE_DEND`;case 35:return e.getLogger().trace(`Long description:`,t.yytext),20;case 36:return e.getLogger().trace(`Long description:`,t.yytext),20}},`anonymous`),rules:[/^(?:\s*%%.*)/i,/^(?:mindmap\b)/i,/^(?::::)/i,/^(?:.+)/i,/^(?:\n)/i,/^(?:::icon\()/i,/^(?:[\s]+[\n])/i,/^(?:[\n]+)/i,/^(?:[^\)]+)/i,/^(?:\))/i,/^(?:-\))/i,/^(?:\(-)/i,/^(?:\)\))/i,/^(?:\))/i,/^(?:\(\()/i,/^(?:\{\{)/i,/^(?:\()/i,/^(?:\[)/i,/^(?:[\s]+)/i,/^(?:[^\(\[\n\)\{\}]+)/i,/^(?:$)/i,/^(?:["][`])/i,/^(?:[^`"]+)/i,/^(?:[`]["])/i,/^(?:["])/i,/^(?:[^"]+)/i,/^(?:["])/i,/^(?:[\)]\))/i,/^(?:[\)])/i,/^(?:[\]])/i,/^(?:\}\})/i,/^(?:\(-)/i,/^(?:-\))/i,/^(?:\(\()/i,/^(?:\()/i,/^(?:[^\)\]\(\}]+)/i,/^(?:.+(?!\(\())/i],conditions:{CLASS:{rules:[3,4],inclusive:!1},ICON:{rules:[8,9],inclusive:!1},NSTR2:{rules:[22,23],inclusive:!1},NSTR:{rules:[25,26],inclusive:!1},NODE:{rules:[21,24,27,28,29,30,31,32,33,34,35,36],inclusive:!1},INITIAL:{rules:[0,1,2,5,6,7,10,11,12,13,14,15,16,17,18,19,20],inclusive:!0}}}})();function y(){this.yy={}}return t(y,`Parser`),y.prototype=v,v.Parser=y,new y})();b.parser=b;var x=b,S=12,C={DEFAULT:0,NO_BORDER:0,ROUNDED_RECT:1,RECT:2,CIRCLE:3,CLOUD:4,BANG:5,HEXAGON:6},w=class{constructor(){this.nodes=[],this.count=0,this.elements={},this.getLogger=this.getLogger.bind(this),this.nodeType=C,this.clear(),this.getType=this.getType.bind(this),this.getElementById=this.getElementById.bind(this),this.getParent=this.getParent.bind(this),this.getMindmap=this.getMindmap.bind(this),this.addNode=this.addNode.bind(this),this.decorateNode=this.decorateNode.bind(this)}static{t(this,`MindmapDB`)}clear(){this.nodes=[],this.count=0,this.elements={},this.baseLevel=void 0}getParent(e){for(let t=this.nodes.length-1;t>=0;t--)if(this.nodes[t].level<e)return this.nodes[t];return null}getMindmap(){return this.nodes.length>0?this.nodes[0]:null}addNode(t,n,i,a){e.info(`addNode`,t,n,i,a);let o=!1;this.nodes.length===0?(this.baseLevel=t,t=0,o=!0):this.baseLevel!==void 0&&(t-=this.baseLevel,o=!1);let s=c(),u=s.mindmap?.padding??r.mindmap.padding;switch(a){case this.nodeType.ROUNDED_RECT:case this.nodeType.RECT:case this.nodeType.HEXAGON:u*=2}let d={id:this.count++,nodeId:l(n,s),level:t,descr:l(i,s),type:a,children:[],width:s.mindmap?.maxNodeWidth??r.mindmap.maxNodeWidth,padding:u,isRoot:o},f=this.getParent(t);if(f)f.children.push(d),this.nodes.push(d);else if(o)this.nodes.push(d);else throw Error(`There can be only one root. No parent could be found for ("${d.descr}")`)}getType(t,n){switch(e.debug(`In get type`,t,n),t){case`[`:return this.nodeType.RECT;case`(`:return n===`)`?this.nodeType.ROUNDED_RECT:this.nodeType.CLOUD;case`((`:return this.nodeType.CIRCLE;case`)`:return this.nodeType.CLOUD;case`))`:return this.nodeType.BANG;case`{{`:return this.nodeType.HEXAGON;default:return this.nodeType.DEFAULT}}setElementForId(e,t){this.elements[e]=t}getElementById(e){return this.elements[e]}decorateNode(e){if(!e)return;let t=c(),n=this.nodes[this.nodes.length-1];e.icon&&(n.icon=l(e.icon,t)),e.class&&(n.class=l(e.class,t))}type2Str(e){switch(e){case this.nodeType.DEFAULT:return`no-border`;case this.nodeType.RECT:return`rect`;case this.nodeType.ROUNDED_RECT:return`rounded-rect`;case this.nodeType.CIRCLE:return`circle`;case this.nodeType.CLOUD:return`cloud`;case this.nodeType.BANG:return`bang`;case this.nodeType.HEXAGON:return`hexgon`;default:return`no-border`}}assignSections(e,t){if(e.section=e.level===0?void 0:t,e.children)for(let[n,r]of e.children.entries()){let i=e.level===0?n%(S-1):t;this.assignSections(r,i)}}flattenNodes(e,n){let r=c(),i=[`mindmap-node`];e.isRoot===!0?i.push(`section-root`,`section--1`):e.section!==void 0&&i.push(`section-${e.section}`),e.class&&i.push(e.class);let a=i.join(` `),o=t(e=>{let t=(r.theme?.toLowerCase()??``).includes(`redux`);switch(e){case C.CIRCLE:return`mindmapCircle`;case C.RECT:return`rect`;case C.ROUNDED_RECT:return`rounded`;case C.CLOUD:return`cloud`;case C.BANG:return`bang`;case C.HEXAGON:return`hexagon`;case C.DEFAULT:return t?`rounded`:`defaultMindmapNode`;case C.NO_BORDER:default:return`rect`}},`getShapeFromType`),s={id:e.id.toString(),domId:`node_`+e.id.toString(),label:e.descr,labelType:`markdown`,isGroup:!1,shape:o(e.type),width:e.width,height:e.height??0,padding:e.padding,cssClasses:a,cssStyles:[],look:r.look,icon:e.icon,x:e.x,y:e.y,level:e.level,nodeId:e.nodeId,type:e.type,section:e.section};if(n.push(s),e.children)for(let t of e.children)this.flattenNodes(t,n)}generateEdges(e,t){if(!e.children)return;let n=c();for(let r of e.children){let i=`edge`;r.section!==void 0&&(i+=` section-edge-${r.section}`);let a=e.level+1;i+=` edge-depth-${a}`;let o={id:`edge_${e.id}_${r.id}`,start:e.id.toString(),end:r.id.toString(),type:`normal`,curve:`basis`,thickness:`normal`,look:n.look,classes:i,depth:e.level,section:r.section};t.push(o),this.generateEdges(r,t)}}getData(){let t=this.getMindmap(),n=c(),r=a().layout!==void 0,i=n;if(r||(i.layout=`cose-bilkent`),!t)return{nodes:[],edges:[],config:i};e.debug(`getData: mindmapRoot`,t,n),this.assignSections(t);let o=[],s=[];this.flattenNodes(t,o),this.generateEdges(t,s),e.debug(`getData: processed ${o.length} nodes and ${s.length} edges`);let l=new Map;for(let e of o)l.set(e.id,{shape:e.shape,width:e.width,height:e.height,padding:e.padding});return{nodes:o,edges:s,config:i,rootNode:t,markers:[`point`],direction:`TB`,nodeSpacing:50,rankSpacing:50,shapes:Object.fromEntries(l),type:`mindmap`,diagramId:`mindmap-`+v()}}getLogger(){return e}},T={draw:t(async(t,i,a,o)=>{e.debug(`Rendering mindmap diagram
|
|
7
|
+
`+t);let s=o.db,c=s.getData(),l=u(i,c.config.securityLevel);if(c.type=o.type,c.layoutAlgorithm=p(c.config.layout,{fallback:`cose-bilkent`}),c.diagramId=i,!s.getMindmap())return;c.nodes.forEach(e=>{e.shape===`rounded`?(e.radius=15,e.taper=15,e.stroke=`none`,e.width=0,e.padding=15):e.shape===`circle`?e.padding=10:e.shape===`rect`?(e.width=0,e.padding=10):e.shape===`hexagon`&&(e.width=0,e.height=0)}),await f(c,l);let{themeVariables:m}=n(),{useGradient:h,gradientStart:g,gradientStop:_}=m;if(h&&g&&_){let e=l.attr(`id`),t=l.append(`defs`).append(`linearGradient`).attr(`id`,`${e}-gradient`).attr(`gradientUnits`,`objectBoundingBox`).attr(`x1`,`0%`).attr(`y1`,`0%`).attr(`x2`,`100%`).attr(`y2`,`0%`);t.append(`stop`).attr(`offset`,`0%`).attr(`stop-color`,g).attr(`stop-opacity`,1),t.append(`stop`).attr(`offset`,`100%`).attr(`stop-color`,_).attr(`stop-opacity`,1)}d(l,c.config.mindmap?.padding??r.mindmap.padding,`mindmapDiagram`,c.config.mindmap?.useMaxWidth??r.mindmap.useMaxWidth)},`draw`)},E=t(e=>{let{theme:t,look:n}=e,r=``;for(let t=0;t<e.THEME_COLOR_LIMIT;t++)e[`lineColor`+t]=e[`lineColor`+t]||e[`cScaleInv`+t],i(e[`lineColor`+t])?e[`lineColor`+t]=o(e[`lineColor`+t],20):e[`lineColor`+t]=s(e[`lineColor`+t],20);for(let i=0;i<e.THEME_COLOR_LIMIT;i++){let a=``+(n===`neo`?Math.max(10-(i-1)*2,2):17-3*i);r+=`
|
|
8
|
+
.section-${i-1} rect, .section-${i-1} path, .section-${i-1} circle, .section-${i-1} polygon, .section-${i-1} path {
|
|
9
|
+
fill: ${e[`cScale`+i]};
|
|
10
|
+
}
|
|
11
|
+
.section-${i-1} text {
|
|
12
|
+
fill: ${e[`cScaleLabel`+i]};
|
|
13
|
+
}
|
|
14
|
+
.section-${i-1} span {
|
|
15
|
+
color: ${e[`cScaleLabel`+i]};
|
|
16
|
+
}
|
|
17
|
+
.node-icon-${i-1} {
|
|
18
|
+
font-size: 40px;
|
|
19
|
+
color: ${e[`cScaleLabel`+i]};
|
|
20
|
+
}
|
|
21
|
+
.section-edge-${i-1}{
|
|
22
|
+
stroke: ${e[`cScale`+i]};
|
|
23
|
+
}
|
|
24
|
+
.edge-depth-${i-1}{
|
|
25
|
+
stroke-width: ${a};
|
|
26
|
+
}
|
|
27
|
+
.section-${i-1} line {
|
|
28
|
+
stroke: ${e[`cScaleInv`+i]} ;
|
|
29
|
+
stroke-width: 3;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.disabled, .disabled circle, .disabled text {
|
|
33
|
+
fill: lightgray;
|
|
34
|
+
}
|
|
35
|
+
.disabled text {
|
|
36
|
+
fill: #efefef;
|
|
37
|
+
}
|
|
38
|
+
[data-look="neo"].mindmap-node.section-${i-1} rect, [data-look="neo"].mindmap-node.section-${i-1} path, [data-look="neo"].mindmap-node.section-${i-1} circle, [data-look="neo"].mindmap-node.section-${i-1} polygon {
|
|
39
|
+
fill: ${t===`redux`||t===`redux-dark`||t===`neutral`?e.mainBkg:e[`cScale`+i]};
|
|
40
|
+
stroke: ${t===`redux`||t===`redux-dark`?e.nodeBorder:e[`cScale`+i]};
|
|
41
|
+
stroke-width: ${e.strokeWidth??2}px;
|
|
42
|
+
}
|
|
43
|
+
[data-look="neo"].section-edge-${i-1}{
|
|
44
|
+
stroke: ${t?.includes(`redux`)||t===`neo-dark`?e.nodeBorder:e[`cScale`+i]};
|
|
45
|
+
}
|
|
46
|
+
[data-look="neo"].mindmap-node.section-${i-1} text {
|
|
47
|
+
fill: ${t===`redux`||t===`redux-dark`?e.nodeBorder:e[`cScaleLabel`+(t===`neutral`?1:i)]};
|
|
48
|
+
}
|
|
49
|
+
`}return r},`genSections`),D=t((e,t,n)=>{let r=``;for(let i=0;i<e;i++)r+=`
|
|
50
|
+
[data-look="neo"].mindmap-node.section-${i-1} rect, [data-look="neo"].mindmap-node.section-${i-1} path, [data-look="neo"].mindmap-node.section-${i-1} circle, [data-look="neo"].mindmap-node.section-${i-1} polygon {
|
|
51
|
+
stroke: url(${t}-gradient);
|
|
52
|
+
fill: ${n};
|
|
53
|
+
}
|
|
54
|
+
.section-${i-1} line {
|
|
55
|
+
stroke-width: 0;
|
|
56
|
+
}`;return r},`genGradient`),O={get db(){return new w},renderer:T,parser:x,styles:t(e=>{let{theme:t}=e,n=e.svgId,r=e.dropShadow?e.dropShadow.replace(`url(#drop-shadow)`,`url(${n}-drop-shadow)`):`none`;return`
|
|
57
|
+
.edge {
|
|
58
|
+
stroke-width: 3;
|
|
59
|
+
}
|
|
60
|
+
${E(e)}
|
|
61
|
+
.section-root rect, .section-root path, .section-root circle, .section-root polygon {
|
|
62
|
+
fill: ${e.git0};
|
|
63
|
+
}
|
|
64
|
+
.section-root text {
|
|
65
|
+
fill: ${e.gitBranchLabel0};
|
|
66
|
+
}
|
|
67
|
+
.section-root span {
|
|
68
|
+
color: ${t?.includes(`redux`)?e.nodeBorder:e.gitBranchLabel0};
|
|
69
|
+
}
|
|
70
|
+
.icon-container {
|
|
71
|
+
height:100%;
|
|
72
|
+
display: flex;
|
|
73
|
+
justify-content: center;
|
|
74
|
+
align-items: center;
|
|
75
|
+
}
|
|
76
|
+
.edge {
|
|
77
|
+
fill: none;
|
|
78
|
+
}
|
|
79
|
+
.mindmap-node-label {
|
|
80
|
+
dy: 1em;
|
|
81
|
+
alignment-baseline: middle;
|
|
82
|
+
text-anchor: middle;
|
|
83
|
+
dominant-baseline: middle;
|
|
84
|
+
text-align: center;
|
|
85
|
+
}
|
|
86
|
+
[data-look="neo"].mindmap-node {
|
|
87
|
+
filter: ${r};
|
|
88
|
+
}
|
|
89
|
+
[data-look="neo"].mindmap-node.section-root rect, [data-look="neo"].mindmap-node.section-root path, [data-look="neo"].mindmap-node.section-root circle, [data-look="neo"].mindmap-node.section-root polygon {
|
|
90
|
+
fill: ${t?.includes(`redux`)?e.mainBkg:e.git0};
|
|
91
|
+
}
|
|
92
|
+
[data-look="neo"].mindmap-node.section-root .text-inner-tspan {
|
|
93
|
+
fill: ${t?.includes(`redux`)?e.nodeBorder:e[`cScaleLabel`+ +(t===`neutral`)]};
|
|
94
|
+
}
|
|
95
|
+
${e.useGradient&&n&&e.mainBkg?D(e.THEME_COLOR_LIMIT,n,e.mainBkg):``}
|
|
96
|
+
`},`getStyles`)};export{O as diagram};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{t as e}from"./init-C-OQMol4.js";var t=class extends Map{constructor(e,t=a){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:t}}),e!=null)for(let[t,n]of e)this.set(t,n)}get(e){return super.get(n(this,e))}has(e){return super.has(n(this,e))}set(e,t){return super.set(r(this,e),t)}delete(e){return super.delete(i(this,e))}};function n({_intern:e,_key:t},n){let r=t(n);return e.has(r)?e.get(r):n}function r({_intern:e,_key:t},n){let r=t(n);return e.has(r)?e.get(r):(e.set(r,n),n)}function i({_intern:e,_key:t},n){let r=t(n);return e.has(r)&&(n=e.get(r),e.delete(r)),n}function a(e){return typeof e==`object`&&e?e.valueOf():e}var o=Symbol(`implicit`);function s(){var n=new t,r=[],i=[],a=o;function c(e){let t=n.get(e);if(t===void 0){if(a!==o)return a;n.set(e,t=r.push(e)-1)}return i[t%i.length]}return c.domain=function(e){if(!arguments.length)return r.slice();r=[],n=new t;for(let t of e)n.has(t)||n.set(t,r.push(t)-1);return c},c.range=function(e){return arguments.length?(i=Array.from(e),c):i.slice()},c.unknown=function(e){return arguments.length?(a=e,c):a},c.copy=function(){return s(r,i).unknown(a)},e.apply(c,arguments),c}export{s as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"./chunk-FOHPRMQF-DzxwRta7.js";import{S as e}from"./mermaid-parser.core-DYtj8_hH.js";export{e as createPacketServices};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var e=Math.PI,t=2*e,n=1e-6,r=t-n;function i(e){this._+=e[0];for(let t=1,n=e.length;t<n;++t)this._+=arguments[t]+e[t]}function a(e){let t=Math.floor(e);if(!(t>=0))throw Error(`invalid digits: ${e}`);if(t>15)return i;let n=10**t;return function(e){this._+=e[0];for(let t=1,r=e.length;t<r;++t)this._+=Math.round(arguments[t]*n)/n+e[t]}}var o=class{constructor(e){this._x0=this._y0=this._x1=this._y1=null,this._=``,this._append=e==null?i:a(e)}moveTo(e,t){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+t}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(e,t){this._append`L${this._x1=+e},${this._y1=+t}`}quadraticCurveTo(e,t,n,r){this._append`Q${+e},${+t},${this._x1=+n},${this._y1=+r}`}bezierCurveTo(e,t,n,r,i,a){this._append`C${+e},${+t},${+n},${+r},${this._x1=+i},${this._y1=+a}`}arcTo(t,r,i,a,o){if(t=+t,r=+r,i=+i,a=+a,o=+o,o<0)throw Error(`negative radius: ${o}`);let s=this._x1,c=this._y1,l=i-t,u=a-r,d=s-t,f=c-r,p=d*d+f*f;if(this._x1===null)this._append`M${this._x1=t},${this._y1=r}`;else if(p>n){if(!(Math.abs(f*l-u*d)>n)||!o)this._append`L${this._x1=t},${this._y1=r}`;else{let m=i-s,h=a-c,g=l*l+u*u,_=m*m+h*h,v=Math.sqrt(g),y=Math.sqrt(p),b=o*Math.tan((e-Math.acos((g+p-_)/(2*v*y)))/2),x=b/y,S=b/v;Math.abs(x-1)>n&&this._append`L${t+x*d},${r+x*f}`,this._append`A${o},${o},0,0,${+(f*m>d*h)},${this._x1=t+S*l},${this._y1=r+S*u}`}}}arc(i,a,o,s,c,l){if(i=+i,a=+a,o=+o,l=!!l,o<0)throw Error(`negative radius: ${o}`);let u=o*Math.cos(s),d=o*Math.sin(s),f=i+u,p=a+d,m=1^l,h=l?s-c:c-s;this._x1===null?this._append`M${f},${p}`:(Math.abs(this._x1-f)>n||Math.abs(this._y1-p)>n)&&this._append`L${f},${p}`,o&&(h<0&&(h=h%t+t),h>r?this._append`A${o},${o},0,1,${m},${i-u},${a-d}A${o},${o},0,1,${m},${this._x1=f},${this._y1=p}`:h>n&&this._append`A${o},${o},0,${+(h>=e)},${m},${this._x1=i+o*Math.cos(c)},${this._y1=a+o*Math.sin(c)}`)}rect(e,t,n,r){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+t}h${n=+n}v${+r}h${-n}Z`}toString(){return this._}};o.prototype;function s(e){return function(){return e}}function c(e){let t=3;return e.digits=function(n){if(!arguments.length)return t;if(n==null)t=null;else{let e=Math.floor(n);if(!(e>=0))throw RangeError(`invalid digits: ${n}`);t=e}return e},()=>new o(t)}export{s as n,c as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{m as e}from"./src-D_iIdUkB.js";import{t,u as n}from"./mermaid-parser.core-DYtj8_hH.js";import{n as r}from"./chunk-Y2CYZVJY-DsF7k-Jl.js";import"./chunk-O7XYJQB3-Bqi4DWie.js";import{n as i,r as a,t as o}from"./chunk-GTNCS2PH-DfgoKLZ5.js";import{t as s}from"./chunk-JWPE2WC7-DVXcaiue.js";import"./mermaid.core-DQoUVKoE.js";var c=n().RailroadPeg.parser.LangiumParser,l=r(e=>{let t=e.alternatives.map(u);return t.length===1?t[0]:{type:`choice`,alternatives:t}},`transformOrderedChoice`),u=r(e=>{let t=e.elements.map(d);return t.length===1?t[0]:{type:`sequence`,elements:t}},`transformSequence`),d=r(e=>{let t=p(e.suffix);return e.operator?{type:`special`,text:e.operator===`&`?`&${f(t)}`:`!${f(t)}`}:t},`transformPrefix`),f=r(e=>{switch(e.type){case`terminal`:return`"${e.value}"`;case`nonterminal`:return e.name;case`special`:return e.text;default:return`(...)`}},`nodeToLabel`),p=r(e=>{let t=m(e.primary);if(!e.operator)return t;switch(e.operator){case`?`:return{type:`optional`,element:t};case`*`:return{type:`repetition`,element:t,min:0,max:1/0};case`+`:return{type:`repetition`,element:t,min:1,max:1/0};default:throw Error(`Unsupported PEG suffix operator: ${e.operator}`)}},`transformSuffix`),m=r(e=>{switch(e.$type){case`PegLiteral`:return{type:`terminal`,value:e.value};case`PegIdentifier`:return{type:`nonterminal`,name:e.name};case`PegGroup`:return l(e.element);case`PegAny`:return{type:`special`,text:e.dot};default:throw Error(`Unsupported PEG primary node: ${e.$type}`)}},`transformPrimary`),h=r(e=>({name:e.name,definition:l(e.definition)}),`transformRule`),g=r(e=>{s(e,o),e.title&&o.setTitle(e.title),e.rules.map(e=>o.addRule(h(e)))},`populateDb`),_={parser:{parse:r(n=>{o.clear(),e.debug(`[PEG Parser] Starting Langium parse`);let r=c.parse(n);if(r.lexerErrors.length>0||r.parserErrors.length>0)throw new t(r);let i=r.value;e.debug(`[PEG Parser] Parsed rules:`,i.rules.length),g(i),e.debug(`[PEG Parser] Parse complete`)},`parse`),parser:{yy:o}},db:o,renderer:a,styles:i};export{_ as diagram};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"./chunk-FOHPRMQF-DzxwRta7.js";import{b as e}from"./mermaid-parser.core-DYtj8_hH.js";export{e as createPieServices};
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import{m as e}from"./src-D_iIdUkB.js";import{n as t}from"./mermaid-parser.core-DYtj8_hH.js";import{n}from"./chunk-Y2CYZVJY-DsF7k-Jl.js";import{H as r,U as i,a,c as o,f as s,q as c,v as l,w as u,x as d,y as f}from"./chunk-O7XYJQB3-Bqi4DWie.js";import{t as p}from"./ordinal-BDEzSJ7C.js";import{n as m}from"./path-fybaL0A-.js";import{m as h}from"./dist-Bfr8PhAA.js";import{t as g}from"./arc-BJA87daU.js";import{t as _}from"./array-BifhSqXX.js";import{i as v,p as y}from"./chunk-ZIGJFQKS-8PrSySWh.js";import{t as b}from"./chunk-JWPE2WC7-DVXcaiue.js";import{a as x}from"./mermaid.core-DQoUVKoE.js";function S(e,t){return t<e?-1:t>e?1:t>=e?0:NaN}function C(e){return e}function w(){var e=C,t=S,n=null,r=m(0),i=m(h),a=m(0);function o(o){var s,c=(o=_(o)).length,l,u,d=0,f=Array(c),p=Array(c),m=+r.apply(this,arguments),g=Math.min(h,Math.max(-h,i.apply(this,arguments)-m)),v,y=Math.min(Math.abs(g)/c,a.apply(this,arguments)),b=y*(g<0?-1:1),x;for(s=0;s<c;++s)(x=p[f[s]=s]=+e(o[s],s,o))>0&&(d+=x);for(t==null?n!=null&&f.sort(function(e,t){return n(o[e],o[t])}):f.sort(function(e,n){return t(p[e],p[n])}),s=0,u=d?(g-c*b)/d:0;s<c;++s,m=v)l=f[s],x=p[l],v=m+(x>0?x*u:0)+b,p[l]={data:o[l],index:s,value:x,startAngle:m,endAngle:v,padAngle:y};return p}return o.value=function(t){return arguments.length?(e=typeof t==`function`?t:m(+t),o):e},o.sortValues=function(e){return arguments.length?(t=e,n=null,o):t},o.sort=function(e){return arguments.length?(n=e,t=null,o):n},o.startAngle=function(e){return arguments.length?(r=typeof e==`function`?e:m(+e),o):r},o.endAngle=function(e){return arguments.length?(i=typeof e==`function`?e:m(+e),o):i},o.padAngle=function(e){return arguments.length?(a=typeof e==`function`?e:m(+e),o):a},o}var T=s.pie,E={sections:new Map,showData:!1,config:T},D=E.sections,O=E.showData,k=structuredClone(T),A={getConfig:n(()=>structuredClone(k),`getConfig`),clear:n(()=>{D=new Map,O=E.showData,a()},`clear`),setDiagramTitle:c,getDiagramTitle:u,setAccTitle:i,getAccTitle:f,setAccDescription:r,getAccDescription:l,addSection:n(({label:t,value:n})=>{if(n<0)throw Error(`"${t}" has invalid value: ${n}. Negative values are not allowed in pie charts. All slice values must be >= 0.`);D.has(t)||(D.set(t,n),e.debug(`added new section: ${t}, with value: ${n}`))},`addSection`),getSections:n(()=>D,`getSections`),setShowData:n(e=>{O=e},`setShowData`),getShowData:n(()=>O,`getShowData`)},j=n((e,t)=>{b(e,t),t.setShowData(e.showData),e.sections.map(t.addSection)},`populateDb`),M={parse:n(async n=>{let r=await t(`pie`,n);e.debug(r),j(r,A)},`parse`)},N=n(e=>`
|
|
2
|
+
.pieCircle{
|
|
3
|
+
stroke: ${e.pieStrokeColor};
|
|
4
|
+
stroke-width : ${e.pieStrokeWidth};
|
|
5
|
+
opacity : ${e.pieOpacity};
|
|
6
|
+
}
|
|
7
|
+
.pieCircle.highlighted{
|
|
8
|
+
scale: 1.05;
|
|
9
|
+
opacity: 1;
|
|
10
|
+
}
|
|
11
|
+
.pieCircle.highlightedOnHover:hover{
|
|
12
|
+
transition-duration: 250ms;
|
|
13
|
+
scale: 1.05;
|
|
14
|
+
opacity: 1;
|
|
15
|
+
}
|
|
16
|
+
.pieOuterCircle{
|
|
17
|
+
stroke: ${e.pieOuterStrokeColor};
|
|
18
|
+
stroke-width: ${e.pieOuterStrokeWidth};
|
|
19
|
+
fill: none;
|
|
20
|
+
}
|
|
21
|
+
.pieTitleText {
|
|
22
|
+
text-anchor: middle;
|
|
23
|
+
font-size: ${e.pieTitleTextSize};
|
|
24
|
+
fill: ${e.pieTitleTextColor};
|
|
25
|
+
font-family: ${e.fontFamily};
|
|
26
|
+
}
|
|
27
|
+
.slice {
|
|
28
|
+
font-family: ${e.fontFamily};
|
|
29
|
+
fill: ${e.pieSectionTextColor};
|
|
30
|
+
font-size:${e.pieSectionTextSize};
|
|
31
|
+
// fill: white;
|
|
32
|
+
}
|
|
33
|
+
.legend text {
|
|
34
|
+
fill: ${e.pieLegendTextColor};
|
|
35
|
+
font-family: ${e.fontFamily};
|
|
36
|
+
font-size: ${e.pieLegendTextSize};
|
|
37
|
+
}
|
|
38
|
+
`,`getStyles`),P=n(e=>{let t=[...e.values()].reduce((e,t)=>e+t,0),n=[...e.entries()].map(([e,t])=>({label:e,value:t})).filter(e=>e.value/t*100>=1);return w().value(e=>e.value).sort(null)(n)},`createPieArcs`),F={parser:M,db:A,renderer:{draw:n((t,n,r,i)=>{e.debug(`rendering pie chart
|
|
39
|
+
`+t);let a=i.db,s=d(),c=v(a.getConfig(),s.pie),l=x(n),u=l.append(`g`);u.attr(`transform`,`translate(225,225)`);let{themeVariables:f}=s,[m]=y(f.pieOuterStrokeWidth);m??=2;let h=c.legendPosition,_=c.textPosition,b=c.donutHole>0&&c.donutHole<=.9?c.donutHole:0,S=g().innerRadius(b*185).outerRadius(185),C=g().innerRadius(185*_).outerRadius(185*_),w=u.append(`g`);w.append(`circle`).attr(`cx`,0).attr(`cy`,0).attr(`r`,185+m/2).attr(`class`,`pieOuterCircle`);let T=a.getSections(),E=P(T),D=[f.pie1,f.pie2,f.pie3,f.pie4,f.pie5,f.pie6,f.pie7,f.pie8,f.pie9,f.pie10,f.pie11,f.pie12],O=0;T.forEach(e=>{O+=e});let k=E.filter(e=>(e.data.value/O*100).toFixed(0)!==`0`),A=p(D).domain([...T.keys()]);w.selectAll(`mySlices`).data(k).enter().append(`path`).attr(`d`,S).attr(`fill`,e=>A(e.data.label)).attr(`class`,e=>{let t=`pieCircle`;return c.highlightSlice===`hover`?t+=` highlightedOnHover`:c.highlightSlice===e.data.label&&(t+=` highlighted`),t}),w.selectAll(`mySlices`).data(k).enter().append(`text`).text(e=>(e.data.value/O*100).toFixed(0)+`%`).attr(`transform`,e=>`translate(`+C.centroid(e)+`)`).style(`text-anchor`,`middle`).attr(`class`,`slice`);let j=u.append(`text`).text(a.getDiagramTitle()).attr(`x`,0).attr(`y`,-200).attr(`class`,`pieTitleText`),M=[...T.entries()].map(([e,t])=>({label:e,value:t})),N=u.selectAll(`.legend`).data(M).enter().append(`g`).attr(`class`,`legend`);N.append(`rect`).attr(`width`,18).attr(`height`,18).style(`fill`,e=>A(e.label)).style(`stroke`,e=>A(e.label)),N.append(`text`).attr(`x`,22).attr(`y`,14).text(e=>a.getShowData()?`${e.label} [${e.value}]`:e.label);let F=Math.max(...N.selectAll(`text`).nodes().map(e=>e?.getBoundingClientRect().width??0)),I=450,L=490,R=M.length*22;switch(h){case`center`:N.attr(`transform`,(e,t)=>{let n=22*M.length/2,r=-F/2-22,i=t*22-n;return`translate(`+r+`,`+i+`)`});break;case`top`:I+=R,N.attr(`transform`,(e,t)=>`translate(${-F/2-22}, ${t*22-185})`),w.attr(`transform`,()=>`translate(0, ${R+22})`);break;case`bottom`:I+=R,N.attr(`transform`,(e,t)=>{let n=-F/2-22,r=t*22- -207;return`translate(`+n+`,`+r+`)`});break;case`left`:L+=22+F,N.attr(`transform`,(e,t)=>{let n=22*M.length/2;return`translate(-207,`+(t*22-n)+`)`}),w.attr(`transform`,()=>`translate(${F+18+4}, 0)`);break;default:L+=22+F,N.attr(`transform`,(e,t)=>{let n=22*M.length/2;return`translate(216,`+(t*22-n)+`)`})}let z=j.node()?.getBoundingClientRect().width??0,B=225-z/2,V=225+z/2,H=Math.min(0,B),U=Math.max(L,V)-H;l.attr(`viewBox`,`${H} 0 ${U} ${I}`),o(l,I,U,c.useMaxWidth)},`draw`)},styles:N};export{F as diagram};
|