@staticbolt/docs 0.0.1-beta.4 → 0.0.1-beta.5
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/README.md +2 -7
- package/lib/index.d.mts +35 -3
- package/lib/mermaid/abnfDiagram-PAR5IXJI-Ibbj5eGO.js +1 -0
- package/lib/mermaid/architecture-7GRP2DOG-M7G3SWCO-BJAoKIRD.js +1 -0
- package/lib/mermaid/architectureDiagram-2PNWDENW-CI3fLWIN.js +36 -0
- package/lib/mermaid/blockDiagram-PUWGUBOA-DAfWpjz7.js +129 -0
- package/lib/mermaid/c4Diagram-3NLNHZP5-at-f4FDi.js +38 -0
- package/lib/mermaid/chunk-2NMSUPJH-DuxvnX1p.js +1 -0
- package/lib/mermaid/chunk-32MCUW2P-D8U-Oy6M.js +206 -0
- package/lib/mermaid/chunk-3NPNU5GP-8WYybYAh.js +1 -0
- package/lib/mermaid/chunk-3SMGFRGC-C0WC5bhP.js +1 -0
- package/lib/mermaid/chunk-4CAJECRU-C_QnaDal.js +15 -0
- package/lib/mermaid/chunk-4OADUZ5Q-DHE3k_pb.js +10 -0
- package/lib/mermaid/chunk-5IMINLNL-Cl3N81sR.js +1 -0
- package/lib/mermaid/chunk-5IQCK5RY-Df5Ppxew.js +3 -0
- package/lib/mermaid/chunk-5MVFYWFU-DgXg5u6h.js +1 -0
- package/lib/mermaid/chunk-AQ6EADP3-CZhslHi-.js +1 -0
- package/lib/mermaid/chunk-AZZRMDJM-y-xJBuMz.js +15 -0
- package/lib/mermaid/chunk-CLS4B6BI-BRLlisnG.js +168 -0
- package/lib/mermaid/chunk-DZP67EKU-9RpG5Rdc.js +70 -0
- package/lib/mermaid/chunk-EICP7K5X-8YS1Gtlr.js +1 -0
- package/lib/mermaid/chunk-GDY2UAB4-QtXfmDIW.js +1 -0
- package/lib/mermaid/chunk-H7VHZCWX-CwFRFlEn.js +1 -0
- package/lib/mermaid/chunk-IJBDOHL6-CgcssvZb.js +1 -0
- package/lib/mermaid/chunk-JFFVMJIA-Cx1_ZSMR.js +1 -0
- package/lib/mermaid/chunk-JQRUD6KW-Dbva2Z17.js +1 -0
- package/lib/mermaid/chunk-JZGDI5JK-BspJQ1vQ.js +1 -0
- package/lib/mermaid/chunk-KD6SPIPN-4bKl37hM.js +2 -0
- package/lib/mermaid/chunk-NF366YI6-D1lnbapv.js +231 -0
- package/lib/mermaid/chunk-NUDPKBEF-CL0e9XiQ.js +34 -0
- package/lib/mermaid/chunk-OJINMHTS-rKnCIFV0.js +1 -0
- package/lib/mermaid/chunk-Q6NGPIAH-CM9NYxWM.js +2 -0
- package/lib/mermaid/chunk-QJSWEUOL-kvKBktmc.js +133 -0
- package/lib/mermaid/chunk-R7JDMUKV-CSyCOfYj.js +1 -0
- package/lib/mermaid/chunk-RCXAM2GK-BeKcutEV.js +1 -0
- package/lib/mermaid/chunk-RT4MAWR3-Cv_8LyN5.js +1 -0
- package/lib/mermaid/chunk-SFMINX4W-BW2NSwFJ.js +1 -0
- package/lib/mermaid/chunk-SLDQ463B-D15xTdNW.js +88 -0
- package/lib/mermaid/chunk-STOV2HOB-GnExfzIX.js +1 -0
- package/lib/mermaid/chunk-T5OCTHI4-DdZvN-9i.js +1 -0
- package/lib/mermaid/chunk-TCEHX7R3-BXjgPiQF.js +1 -0
- package/lib/mermaid/chunk-VQC2EELJ-sGo2yn97.js +1 -0
- package/lib/mermaid/chunk-VRZKL3EH-BzaZ6KlD.js +1 -0
- package/lib/mermaid/chunk-VTHDQ7BV-BqUEu5Ml.js +1 -0
- package/lib/mermaid/chunk-VY2OSTJR-BYk2nUI_.js +2 -0
- package/lib/mermaid/chunk-WUBWJARI-Z8MI6quX.js +1 -0
- package/lib/mermaid/chunk-YBMQ5JGJ-DlZ1nCKo.js +2 -0
- package/lib/mermaid/chunk-YDMLL4PJ-BHgx6nXf.js +1 -0
- package/lib/mermaid/chunk-Z6V44ARX-CWGOZvke.js +62 -0
- package/lib/mermaid/chunk-ZJJ7VQJP-CZ7qJzqZ.js +340 -0
- package/lib/mermaid/chunk-ZNLK7HRR-B-wIfXTw.js +1 -0
- package/lib/mermaid/chunk-ZQN7UHIL-CNp35E78.js +1 -0
- package/lib/mermaid/chunk-ZS6VBONO-D-IFTJgn.js +175 -0
- package/lib/mermaid/chunk-ZUNWM646-DRKPDcQl.js +1 -0
- package/lib/mermaid/classDiagram-FGAMPOII-D1sf64vv.js +1 -0
- package/lib/mermaid/classDiagram-v2-AI5RJEK4-D1sf64vv.js +1 -0
- package/lib/mermaid/cose-bilkent-Q72C2OJ3-iX90typn.js +1 -0
- package/lib/mermaid/cynefin-OW5HDTMX-6OCTWOGG-6jDAiaRu.js +1 -0
- package/lib/mermaid/cynefinDiagram-2OOWUY4M-5ACKe62t.js +62 -0
- package/lib/mermaid/dagre-MPVFI544-BUrJjGwd.js +4 -0
- package/lib/mermaid/diagram-AE4NWXFW-B3Lkw8MS.js +24 -0
- package/lib/mermaid/diagram-BUJID5UG-p2ajLLgr.js +41 -0
- package/lib/mermaid/diagram-C44CZ5NI-CO0U1GX-.js +24 -0
- package/lib/mermaid/diagram-EYOLEXXS-DDoUndBV.js +30 -0
- package/lib/mermaid/diagram-P7B6PWOJ-C_dSNQyG.js +3 -0
- package/lib/mermaid/ebnfDiagram-FTPZ3PV6-DIwB5te0.js +1 -0
- package/lib/mermaid/erDiagram-H3ERR26V-CN4pCzIq.js +99 -0
- package/lib/mermaid/eventmodeling-NTZA5JFV-WKSWQHFS-Ruta89_N.js +1 -0
- package/lib/mermaid/flowDiagram-YHGXBVSY-CrSHzFwR.js +1 -0
- package/lib/mermaid/ganttDiagram-RWFTB7ED-C-rfEOn5.js +292 -0
- package/lib/mermaid/gitGraph-4MIJSDKK-JH2HKYUO-B76vihW5.js +1 -0
- package/lib/mermaid/gitGraphDiagram-MAR6GKOP-peAd7EYO.js +106 -0
- package/lib/mermaid/index.js +15 -0
- package/lib/mermaid/info-A6RAGUB7-3TX3OFWW-DykwOJ0Z.js +1 -0
- package/lib/mermaid/infoDiagram-LV547AFH-C46dOKDG.js +2 -0
- package/lib/mermaid/ishikawaDiagram-PUJQGNDS-DUmHXvO9.js +70 -0
- package/lib/mermaid/journeyDiagram-EW5QJT4W-CNAhUHsQ.js +139 -0
- package/lib/mermaid/kanban-definition-JSQERAZB-uOEoksHt.js +89 -0
- package/lib/mermaid/katex-CZ4GXH2S-CaEE-8Xf.js +257 -0
- package/lib/mermaid/mindmap-definition-VBJCLQLM-DZceCWFq.js +96 -0
- package/lib/mermaid/packet-AYTQ26CC-MKII6P3Y-XqJQX7OO.js +1 -0
- package/lib/mermaid/pegDiagram-7WILOQTJ-DMKA8PUf.js +1 -0
- package/lib/mermaid/pie-WAS4IAKB-6B4OPMJ5-DpoRuAye.js +1 -0
- package/lib/mermaid/pieDiagram-EFA7CBSB-BzO4xw8C.js +39 -0
- package/lib/mermaid/quadrantDiagram-WARVYA7P-DMQd2xKZ.js +7 -0
- package/lib/mermaid/radar-RG4KPBEZ-UPTR3XUL-BcwE6tO1.js +1 -0
- package/lib/mermaid/railroad-74A4TZTK-MEFUPFMS-B2Kwx3Uk.js +1 -0
- package/lib/mermaid/railroad-abnf-HS5TGJTU-R5YG2S5D-uBY3fYzG.js +1 -0
- package/lib/mermaid/railroad-ebnf-LZEXJU2U-G5QEX2L6-AhpzdU_3.js +1 -0
- package/lib/mermaid/railroad-peg-WCYAUIDC-H5I2ZRY2-CrsmP7-8.js +1 -0
- package/lib/mermaid/railroadDiagram-5NIQVNLQ-BGyZ628g.js +1 -0
- package/lib/mermaid/requirementDiagram-SXREGOKZ-CtCO7u9U.js +84 -0
- package/lib/mermaid/sankeyDiagram-VV74M2VP-CPXqmSKK.js +40 -0
- package/lib/mermaid/sequenceDiagram-52ZFIFDL-B1rSqWZp.js +162 -0
- package/lib/mermaid/sizeCapture-FGA5AGYP-BEqQzsxs.js +1 -0
- package/lib/mermaid/stateDiagram-3QAKPIVI-3KzWPUq3.js +1 -0
- package/lib/mermaid/stateDiagram-v2-HN2P4RDZ-dXASbYMy.js +1 -0
- package/lib/mermaid/swimlanes-QLVP42QD-CLpR90IY.js +1 -0
- package/lib/mermaid/swimlanesDiagram-JKPDBFCN-C2sgVGQE.js +8 -0
- package/lib/mermaid/timeline-definition-GS45XAXW-DLn0_RV5.js +120 -0
- package/lib/mermaid/treeView-Q6P3EWNA-ZRJGANNQ-u1bD1sZ1.js +1 -0
- package/lib/mermaid/treemap-WGGIJYW6-K64VN5AS-DrIaTBlj.js +1 -0
- package/lib/mermaid/vennDiagram-QIQU2ZRJ-FxbUp7-Z.js +34 -0
- package/lib/mermaid/wardley-WFR3VGLG-D67OWCCH-Br9hyuFK.js +1 -0
- package/lib/mermaid/wardleyDiagram-U6YNM66N-l-Kvr0Az.js +78 -0
- package/lib/mermaid/xychartDiagram-XJAZEDNM-O9bztWNh.js +7 -0
- package/lib/plugins.mjs +73 -14
- package/package.json +4 -17
- package/sources/parts/document/document.part.html +5 -7
- package/sources/parts/header/header.part.html +2 -2
- package/sources/parts/header/header.style.css +4 -2
- package/sources/parts/mermaid/mermaid.part.html +1 -1
- package/sources/parts/pagefind/pagefind.part.html +5 -3
- package/sources/parts/sidebar/sidebar.style.css +10 -0
- package/sources/parts/table-of-content/table-of-content-desktop.part.html +2 -2
- package/sources/scripts/mermaid.ts +3 -1
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import{t as e}from"./chunk-AQ6EADP3-CZhslHi-.js";function t(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,`default`)?e.default:e}e(t,`getDefaultExportFromCjs`);var n={},r={},i={},a;function o(){if(a)return i;a=1;function t(e){return typeof e>`u`||e===null}e(t,`isNothing`);function n(e){return typeof e==`object`&&!!e}e(n,`isObject`);function r(e){return Array.isArray(e)?e:t(e)?[]:[e]}e(r,`toArray`);function o(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}e(o,`extend`);function s(e,t){let n=``;for(let r=0;r<t;r+=1)n+=e;return n}e(s,`repeat`);function c(e){return e===0&&1/e==-1/0}return e(c,`isNegativeZero`),i.isNothing=t,i.isObject=n,i.toArray=r,i.repeat=s,i.isNegativeZero=c,i.extend=o,i}e(o,`requireCommon`);var s,c;function l(){if(c)return s;c=1;function t(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+=`
|
|
2
|
+
|
|
3
|
+
`+e.mark.snippet),r+` `+n):r}e(t,`formatError`);function n(e,n){Error.call(this),this.name=`YAMLException`,this.reason=e,this.mark=n,this.message=t(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=Error().stack||``}return e(n,`YAMLException2`),n.prototype=Object.create(Error.prototype),n.prototype.constructor=n,n.prototype.toString=e(function(e){return this.name+`: `+t(this,e)},`toString`),s=n,s}e(l,`requireException`);var u,d;function f(){if(d)return u;d=1;let t=o();function n(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}}e(n,`getLine`);function r(e,n){return t.repeat(` `,n-e.length)+e}e(r,`padStart`);function i(e,i){if(i=Object.create(i||null),!e.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(e.buffer);)s.push(c.index),o.push(c.index+c[0].length),e.position<=c.index&&l<0&&(l=o.length-2);l<0&&(l=o.length-1);let u=``,d=Math.min(e.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=n(e.buffer,o[l-a],s[l-a],e.position-(o[l]-o[l-a]),f);u=t.repeat(` `,i.indent)+r((e.line-a+1).toString(),d)+` | `+c.str+`
|
|
4
|
+
`+u}let p=n(e.buffer,o[l],s[l],e.position,f);u+=t.repeat(` `,i.indent)+r((e.line+1).toString(),d)+` | `+p.str+`
|
|
5
|
+
`,u+=t.repeat(`-`,i.indent+d+3+p.pos)+`^
|
|
6
|
+
`;for(let a=1;a<=i.linesAfter&&!(l+a>=s.length);a++){let c=n(e.buffer,o[l+a],s[l+a],e.position-(o[l]-o[l+a]),f);u+=t.repeat(` `,i.indent)+r((e.line+a+1).toString(),d)+` | `+c.str+`
|
|
7
|
+
`}return u.replace(/\n$/,``)}return e(i,`makeSnippet`),u=i,u}e(f,`requireSnippet`);var p,m;function h(){if(m)return p;m=1;let t=l(),n=[`kind`,`multi`,`resolve`,`construct`,`instanceOf`,`predicate`,`represent`,`representName`,`defaultStyle`,`styleAliases`],r=[`scalar`,`sequence`,`mapping`];function i(e){let t={};return e!==null&&Object.keys(e).forEach(function(n){e[n].forEach(function(e){t[String(e)]=n})}),t}e(i,`compileStyleAliases`);function a(e,a){if(a||={},Object.keys(a).forEach(function(r){if(n.indexOf(r)===-1)throw new t(`Unknown option "`+r+`" is met in definition of "`+e+`" YAML type.`)}),this.options=a,this.tag=e,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=i(a.styleAliases||null),r.indexOf(this.kind)===-1)throw new t(`Unknown kind "`+this.kind+`" is specified for "`+e+`" YAML type.`)}return e(a,`Type2`),p=a,p}e(h,`requireType`);var g,_;function v(){if(_)return g;_=1;let t=l(),n=h();function r(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}e(r,`compileList`);function i(){let t={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}};function n(e){e.multi?(t.multi[e.kind].push(e),t.multi.fallback.push(e)):t[e.kind][e.tag]=t.fallback[e.tag]=e}e(n,`collectType`);for(let e=0,t=arguments.length;e<t;e+=1)arguments[e].forEach(n);return t}e(i,`compileMap`);function a(e){return this.extend(e)}return e(a,`Schema2`),a.prototype.extend=e(function(e){let o=[],s=[];if(e instanceof n)s.push(e);else if(Array.isArray(e))s=s.concat(e);else if(e&&(Array.isArray(e.implicit)||Array.isArray(e.explicit)))e.implicit&&(o=o.concat(e.implicit)),e.explicit&&(s=s.concat(e.explicit));else throw new t(`Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })`);o.forEach(function(e){if(!(e instanceof n))throw new t(`Specified list of YAML types (or a single Type object) contains a non-Type object.`);if(e.loadKind&&e.loadKind!==`scalar`)throw new t(`There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.`);if(e.multi)throw new t(`There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.`)}),s.forEach(function(e){if(!(e instanceof n))throw new t(`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=r(c,`implicit`),c.compiledExplicit=r(c,`explicit`),c.compiledTypeMap=i(c.compiledImplicit,c.compiledExplicit),c},`extend`),g=a,g}e(v,`requireSchema`);var y,b;function x(){return b?y:(b=1,y=new(h())(`tag:yaml.org,2002:str`,{kind:`scalar`,construct:e(function(e){return e===null?``:e},`construct`)}),y)}e(x,`requireStr`);var S,C;function w(){return C?S:(C=1,S=new(h())(`tag:yaml.org,2002:seq`,{kind:`sequence`,construct:e(function(e){return e===null?[]:e},`construct`)}),S)}e(w,`requireSeq`);var T,E;function D(){return E?T:(E=1,T=new(h())(`tag:yaml.org,2002:map`,{kind:`mapping`,construct:e(function(e){return e===null?{}:e},`construct`)}),T)}e(D,`requireMap`);var O,k;function A(){return k?O:(k=1,O=new(v())({explicit:[x(),w(),D()]}),O)}e(A,`requireFailsafe`);var j,M;function N(){if(M)return j;M=1;let t=h();function n(e){if(e===null)return!0;let t=e.length;return t===1&&e===`~`||t===4&&(e===`null`||e===`Null`||e===`NULL`)}e(n,`resolveYamlNull`);function r(){return null}e(r,`constructYamlNull`);function i(e){return e===null}return e(i,`isNull`),j=new t(`tag:yaml.org,2002:null`,{kind:`scalar`,resolve:n,construct:r,predicate:i,represent:{canonical:e(function(){return`~`},`canonical`),lowercase:e(function(){return`null`},`lowercase`),uppercase:e(function(){return`NULL`},`uppercase`),camelcase:e(function(){return`Null`},`camelcase`),empty:e(function(){return``},`empty`)},defaultStyle:`lowercase`}),j}e(N,`require_null`);var P,F;function I(){if(F)return P;F=1;let t=h();function n(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`)}e(n,`resolveYamlBoolean`);function r(e){return e===`true`||e===`True`||e===`TRUE`}e(r,`constructYamlBoolean`);function i(e){return Object.prototype.toString.call(e)===`[object Boolean]`}return e(i,`isBoolean`),P=new t(`tag:yaml.org,2002:bool`,{kind:`scalar`,resolve:n,construct:r,predicate:i,represent:{lowercase:e(function(e){return e?`true`:`false`},`lowercase`),uppercase:e(function(e){return e?`TRUE`:`FALSE`},`uppercase`),camelcase:e(function(e){return e?`True`:`False`},`camelcase`)},defaultStyle:`lowercase`}),P}e(I,`requireBool`);var L,R;function z(){if(R)return L;R=1;let t=o(),n=h();function r(e){return e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102}e(r,`isHexCode`);function i(e){return e>=48&&e<=55}e(i,`isOctCode`);function a(e){return e>=48&&e<=57}e(a,`isDecCode`);function s(e){if(e===null)return!1;let t=e.length,n=0,o=!1;if(!t)return!1;let s=e[n];if((s===`-`||s===`+`)&&(s=e[++n]),s===`0`){if(n+1===t)return!0;if(s=e[++n],s===`b`){for(n++;n<t;n++){if(s=e[n],s!==`0`&&s!==`1`)return!1;o=!0}return o&&isFinite(c(e))}if(s===`x`){for(n++;n<t;n++){if(!r(e.charCodeAt(n)))return!1;o=!0}return o&&isFinite(c(e))}if(s===`o`){for(n++;n<t;n++){if(!i(e.charCodeAt(n)))return!1;o=!0}return o&&isFinite(c(e))}}for(;n<t;n++){if(!a(e.charCodeAt(n)))return!1;o=!0}return o?isFinite(c(e)):!1}e(s,`resolveYamlInteger`);function c(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)}e(c,`parseYamlInteger`);function l(e){return c(e)}e(l,`constructYamlInteger`);function u(e){return Object.prototype.toString.call(e)===`[object Number]`&&e%1==0&&!t.isNegativeZero(e)}return e(u,`isInteger`),L=new n(`tag:yaml.org,2002:int`,{kind:`scalar`,resolve:s,construct:l,predicate:u,represent:{binary:e(function(e){return e>=0?`0b`+e.toString(2):`-0b`+e.toString(2).slice(1)},`binary`),octal:e(function(e){return e>=0?`0o`+e.toString(8):`-0o`+e.toString(8).slice(1)},`octal`),decimal:e(function(e){return e.toString(10)},`decimal`),hexadecimal:e(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`]}}),L}e(z,`requireInt`);var B,V;function H(){if(V)return B;V=1;let t=o(),n=h(),r=RegExp(`^(?:[-+]?(?:[0-9]+)(?:\\.[0-9]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$`),i=RegExp(`^(?:[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$`);function a(e){return e===null||!r.test(e)?!1:isFinite(parseFloat(e,10))?!0:i.test(e)}e(a,`resolveYamlFloat`);function s(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)}e(s,`constructYamlFloat`);let c=/^[-+]?[0-9]+e/;function l(e,n){if(isNaN(e))switch(n){case`lowercase`:return`.nan`;case`uppercase`:return`.NAN`;case`camelcase`:return`.NaN`}else if(e===1/0)switch(n){case`lowercase`:return`.inf`;case`uppercase`:return`.INF`;case`camelcase`:return`.Inf`}else if(e===-1/0)switch(n){case`lowercase`:return`-.inf`;case`uppercase`:return`-.INF`;case`camelcase`:return`-.Inf`}else if(t.isNegativeZero(e))return`-0.0`;let r=e.toString(10);return c.test(r)?r.replace(`e`,`.e`):r}e(l,`representYamlFloat`);function u(e){return Object.prototype.toString.call(e)===`[object Number]`&&(e%1!=0||t.isNegativeZero(e))}return e(u,`isFloat`),B=new n(`tag:yaml.org,2002:float`,{kind:`scalar`,resolve:a,construct:s,predicate:u,represent:l,defaultStyle:`lowercase`}),B}e(H,`requireFloat`);var U,W;function G(){return W||(W=1,U=A().extend({implicit:[N(),I(),z(),H()]})),U}e(G,`requireJson`);var ee,te;function K(){return te||(te=1,ee=G()),ee}e(K,`requireCore`);var q,ne;function J(){if(ne)return q;ne=1;let t=h(),n=RegExp(`^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$`),r=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 i(e){return e===null?!1:n.exec(e)!==null||r.exec(e)!==null}e(i,`resolveYamlTimestamp`);function a(e){let t=0,i=null,a=n.exec(e);if(a===null&&(a=r.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(t=a[7].slice(0,3);t.length<3;)t+=`0`;t=+t}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,t));return i&&f.setTime(f.getTime()-i),f}e(a,`constructYamlTimestamp`);function o(e){return e.toISOString()}return e(o,`representYamlTimestamp`),q=new t(`tag:yaml.org,2002:timestamp`,{kind:`scalar`,resolve:i,construct:a,instanceOf:Date,represent:o}),q}e(J,`requireTimestamp`);var Y,re;function X(){if(re)return Y;re=1;let t=h();function n(e){return e===`<<`||e===null}return e(n,`resolveYamlMerge`),Y=new t(`tag:yaml.org,2002:merge`,{kind:`scalar`,resolve:n}),Y}e(X,`requireMerge`);var Z,ie;function Q(){if(ie)return Z;ie=1;let t=h();function n(e){if(e===null)return!1;let t=0,n=e.length;for(let r=0;r<n;r++){let n=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
|
|
8
|
+
\r`.indexOf(e.charAt(r));if(!(n>64)){if(n<0)return!1;t+=6}}return t%8==0}e(n,`resolveYamlBinary`);function r(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+/=
|
|
9
|
+
\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)}e(r,`constructYamlBinary`);function i(e){let t=``,n=0,r=e.length,i=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
|
|
10
|
+
\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}e(i,`representYamlBinary`);function a(e){return Object.prototype.toString.call(e)===`[object Uint8Array]`}return e(a,`isBinary`),Z=new t(`tag:yaml.org,2002:binary`,{kind:`scalar`,resolve:n,construct:r,predicate:a,represent:i}),Z}e(Q,`requireBinary`);var $,ae;function oe(){if(ae)return $;ae=1;let t=h(),n=Object.prototype.hasOwnProperty,r=Object.prototype.toString;function i(e){if(e===null)return!0;let t=[],i=e;for(let e=0,a=i.length;e<a;e+=1){let a=i[e],o=!1;if(r.call(a)!==`[object Object]`)return!1;let s;for(s in a)if(n.call(a,s)){if(!o)o=!0;else return!1}if(!o)return!1;if(t.indexOf(s)===-1)t.push(s);else return!1}return!0}e(i,`resolveYamlOmap`);function a(e){return e===null?[]:e}return e(a,`constructYamlOmap`),$=new t(`tag:yaml.org,2002:omap`,{kind:`sequence`,resolve:i,construct:a}),$}e(oe,`requireOmap`);var se,ce;function le(){if(ce)return se;ce=1;let t=h(),n=Object.prototype.toString;function r(e){if(e===null)return!0;let t=e,r=Array(t.length);for(let e=0,i=t.length;e<i;e+=1){let i=t[e];if(n.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}e(r,`resolveYamlPairs`);function i(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 e(i,`constructYamlPairs`),se=new t(`tag:yaml.org,2002:pairs`,{kind:`sequence`,resolve:r,construct:i}),se}e(le,`requirePairs`);var ue,de;function fe(){if(de)return ue;de=1;let t=h(),n=Object.prototype.hasOwnProperty;function r(e){if(e===null)return!0;let t=e;for(let e in t)if(n.call(t,e)&&t[e]!==null)return!1;return!0}e(r,`resolveYamlSet`);function i(e){return e===null?{}:e}return e(i,`constructYamlSet`),ue=new t(`tag:yaml.org,2002:set`,{kind:`mapping`,resolve:r,construct:i}),ue}e(fe,`requireSet`);var pe,me;function he(){return me||(me=1,pe=K().extend({implicit:[J(),X()],explicit:[Q(),oe(),le(),fe()]})),pe}e(he,`require_default`);var ge;function _e(){if(ge)return r;ge=1;let t=o(),n=l(),i=f(),a=he(),s=Object.prototype.hasOwnProperty,c=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,u=/[\x85\u2028\u2029]/,d=/[,\[\]{}]/,p=/^(?:!|!!|![0-9A-Za-z-]+!)$/,m=/^(?:!|[^,\[\]{}])(?:%[0-9a-f]{2}|[0-9a-z\-#;/?:@&=+$,_.!~*'()\[\]])*$/i;function h(e){return Object.prototype.toString.call(e)}e(h,`_class`);function g(e){return e===10||e===13}e(g,`isEol`);function _(e){return e===9||e===32}e(_,`isWhiteSpace`);function v(e){return e===9||e===32||e===10||e===13}e(v,`isWsOrEol`);function y(e){return e===44||e===91||e===93||e===123||e===125}e(y,`isFlowIndicator`);function b(e){if(e>=48&&e<=57)return e-48;let t=e|32;return t>=97&&t<=102?t-97+10:-1}e(b,`fromHexCode`);function x(e){return e===120?2:e===117?4:e===85?8:0}e(x,`escapedHexLen`);function S(e){return e>=48&&e<=57?e-48:-1}e(S,`fromDecimalCode`);function C(e){switch(e){case 48:return`\0`;case 97:return`\x07`;case 98:return`\b`;case 116:return` `;case 9:return` `;case 110:return`
|
|
11
|
+
`;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``}}e(C,`simpleEscapeSequence`);function w(e){return e<=65535?String.fromCharCode(e):String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}e(w,`charFromCodepoint`);function T(e,t,n){t===`__proto__`?Object.defineProperty(e,t,{configurable:!0,enumerable:!0,writable:!0,value:n}):e[t]=n}e(T,`setProperty`);let E=Array(256),D=Array(256);for(let e=0;e<256;e++)E[e]=+!!C(e),D[e]=C(e);function O(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||a,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=[]}e(O,`State`);function k(e,t){let r={name:e.filename,buffer:e.input.slice(0,-1),position:e.position,line:e.line,column:e.position-e.lineStart};return r.snippet=i(r),new n(t,r)}e(k,`generateError`);function A(e,t){throw k(e,t)}e(A,`throwError`);function j(e,t){e.onWarning&&e.onWarning.call(null,k(e,t))}e(j,`throwWarning`);function M(e,t,n){let r=e.anchorMapTransactions;if(r.length!==0){let n=r[r.length-1];s.call(n,t)||(n[t]={existed:s.call(e.anchorMap,t),value:e.anchorMap[t]})}e.anchorMap[t]=n}e(M,`storeAnchor`);function N(e){e.anchorMapTransactions.push(Object.create(null))}e(N,`beginAnchorTransaction`);function P(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];s.call(r,n)||(r[n]=t[n])}}e(P,`commitAnchorTransaction`);function F(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]]}}e(F,`rollbackAnchorTransaction`);function I(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}}e(I,`snapshotState`);function L(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}e(L,`restoreState`);let R={YAML:e(function(e,t,n){e.version!==null&&A(e,`duplication of %YAML directive`),n.length!==1&&A(e,`YAML directive accepts exactly one argument`);let r=/^([0-9]+)\.([0-9]+)$/.exec(n[0]);r===null&&A(e,`ill-formed argument of the YAML directive`);let i=parseInt(r[1],10),a=parseInt(r[2],10);i!==1&&A(e,`unacceptable YAML version of the document`),e.version=n[0],e.checkLineBreaks=a<2,a!==1&&a!==2&&j(e,`unsupported YAML version of the document`)},`handleYamlDirective`),TAG:e(function(e,t,n){let r;n.length!==2&&A(e,`TAG directive accepts exactly two arguments`);let i=n[0];r=n[1],p.test(i)||A(e,`ill-formed tag handle (first argument) of the TAG directive`),s.call(e.tagMap,i)&&A(e,`there is a previously declared suffix for "`+i+`" tag handle`),m.test(r)||A(e,`ill-formed tag prefix (second argument) of the TAG directive`);try{r=decodeURIComponent(r)}catch{A(e,`tag prefix is malformed: `+r)}e.tagMap[i]=r},`handleTagDirective`)};function z(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||A(e,`expected valid JSON character`)}else c.test(i)&&A(e,`the stream contains non-printable characters`);e.result+=i}}e(z,`captureSegment`);function B(e,n,r,i){t.isObject(r)||A(e,`cannot merge mappings; the provided source object is unacceptable`);let a=Object.keys(r);for(let t=0,o=a.length;t<o;t+=1){let o=a[t];e.maxTotalMergeKeys!==-1&&++e.totalMergeKeys>e.maxTotalMergeKeys&&A(e,`merge keys exceeded maxTotalMergeKeys (`+e.maxTotalMergeKeys+`)`),s.call(n,o)||(T(n,o,r[o]),i[o]=!0)}}e(B,`mergeMappings`);function V(e,t,n,r,i,a,o,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])&&A(e,`nested arrays are not supported inside keys`),typeof i==`object`&&h(i[t])===`[object Object]`&&(i[t]=`[object Object]`)}if(typeof i==`object`&&h(i)===`[object Object]`&&(i=`[object Object]`),i=String(i),t===null&&(t={}),r===`tag:yaml.org,2002:merge`){if(Array.isArray(a))for(let r=0,i=a.length;r<i;r+=1)B(e,t,a[r],n);else B(e,t,a,n)}else!e.json&&!s.call(n,i)&&s.call(t,i)&&(e.line=o||e.line,e.lineStart=c||e.lineStart,e.position=l||e.position,A(e,`duplicated mapping key`)),T(t,i,a),delete n[i];return t}e(V,`storeMappingPair`);function H(e){let t=e.input.charCodeAt(e.position);t===10?e.position++:t===13?(e.position++,e.input.charCodeAt(e.position)===10&&e.position++):A(e,`a line break is expected`),e.line+=1,e.lineStart=e.position,e.firstTabInLine=-1}e(H,`readLineBreak`);function U(e,t,n){let r=0,i=e.input.charCodeAt(e.position);for(;i!==0;){for(;_(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(g(i))for(H(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&&j(e,`deficient indentation`),r}e(U,`skipSeparationSpace`);function W(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||v(n)))}e(W,`testDocumentSeparator`);function G(e,n){n===1?e.result+=` `:n>1&&(e.result+=t.repeat(`
|
|
12
|
+
`,n-1))}e(G,`writeFoldedLines`);function ee(e,t,n){let r,i,a,o,s,c,l=e.kind,u=e.result,d=e.input.charCodeAt(e.position);if(v(d)||y(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(v(t)||n&&y(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(v(t)||n&&y(t))break}else if(d===35){if(v(e.input.charCodeAt(e.position-1)))break}else{if(e.position===e.lineStart&&W(e)||n&&y(d))break;if(g(d)){if(o=e.line,s=e.lineStart,c=e.lineIndent,U(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&&=(z(e,r,i,!1),G(e,e.line-o),r=i=e.position,!1),_(d)||(i=e.position+1),d=e.input.charCodeAt(++e.position)}return z(e,r,i,!1),e.result?!0:(e.kind=l,e.result=u,!1)}e(ee,`readPlainScalar`);function te(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(z(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 g(i)?(z(e,n,r,!0),G(e,U(e,!1,t)),n=r=e.position):e.position===e.lineStart&&W(e)?A(e,`unexpected end of the document within a single quoted scalar`):(e.position++,_(i)||(r=e.position));A(e,`unexpected end of the stream within a single quoted scalar`)}e(te,`readSingleQuotedScalar`);function K(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 z(e,n,e.position,!0),e.position++,!0;if(a===92){if(z(e,n,e.position,!0),a=e.input.charCodeAt(++e.position),g(a))U(e,!1,t);else if(a<256&&E[a])e.result+=D[a],e.position++;else if((i=x(a))>0){let t=i,n=0;for(;t>0;t--)a=e.input.charCodeAt(++e.position),(i=b(a))>=0?n=(n<<4)+i:A(e,`expected hexadecimal character`);e.result+=w(n),e.position++}else A(e,`unknown escape sequence`);n=r=e.position}else g(a)?(z(e,n,r,!0),G(e,U(e,!1,t)),n=r=e.position):e.position===e.lineStart&&W(e)?A(e,`unexpected end of the document within a double quoted scalar`):(e.position++,_(a)||(r=e.position))}A(e,`unexpected end of the stream within a double quoted scalar`)}e(K,`readDoubleQuotedScalar`);function q(e,t){let n=!0,r,i,a,o=e.tag,s,c=e.anchor,l,u,d,f,p=Object.create(null),m,h,g,_=e.input.charCodeAt(e.position);if(_===91)l=93,f=!1,s=[];else if(_===123)l=125,f=!0,s={};else return!1;for(e.anchor!==null&&M(e,e.anchor,s),_=e.input.charCodeAt(++e.position);_!==0;){if(U(e,!0,t),_=e.input.charCodeAt(e.position),_===l)return e.position++,e.tag=o,e.anchor=c,e.kind=f?`mapping`:`sequence`,e.result=s,!0;n?_===44&&A(e,`expected the node content, but found ','`):A(e,`missed comma between flow collection entries`),h=m=g=null,u=d=!1,_===63&&v(e.input.charCodeAt(e.position+1))&&(u=d=!0,e.position++,U(e,!0,t)),r=e.line,i=e.lineStart,a=e.position,Q(e,t,1,!1,!0),h=e.tag,m=e.result,U(e,!0,t),_=e.input.charCodeAt(e.position),(d||e.line===r)&&_===58&&(u=!0,_=e.input.charCodeAt(++e.position),U(e,!0,t),Q(e,t,1,!1,!0),g=e.result),f?V(e,s,p,h,m,g,r,i,a):u?s.push(V(e,null,p,h,m,g,r,i,a)):s.push(m),U(e,!0,t),_=e.input.charCodeAt(e.position),_===44?(n=!0,_=e.input.charCodeAt(++e.position)):n=!1}A(e,`unexpected end of the stream within a flow collection`)}e(q,`readFlowCollection`);function ne(e,n){let r,i=1,a=!1,o=!1,s=n,c=0,l=!1,u,d=e.input.charCodeAt(e.position);if(d===124)r=!1;else if(d===62)r=!0;else return!1;for(e.kind=`scalar`,e.result=``;d!==0;)if(d=e.input.charCodeAt(++e.position),d===43||d===45)i===1?i=d===43?3:2:A(e,`repeat of a chomping mode identifier`);else if((u=S(d))>=0)u===0?A(e,`bad explicit indentation width of a block scalar; it cannot be less than one`):o?A(e,`repeat of an indentation width identifier`):(s=n+u-1,o=!0);else break;if(_(d)){do d=e.input.charCodeAt(++e.position);while(_(d));if(d===35)do d=e.input.charCodeAt(++e.position);while(!g(d)&&d!==0)}for(;d!==0;){for(H(e),e.lineIndent=0,d=e.input.charCodeAt(e.position);(!o||e.lineIndent<s)&&d===32;)e.lineIndent++,d=e.input.charCodeAt(++e.position);if(!o&&e.lineIndent>s&&(s=e.lineIndent),g(d)){c++;continue}if(!o&&s===0&&A(e,`missing indentation for block scalar`),e.lineIndent<s){i===3?e.result+=t.repeat(`
|
|
13
|
+
`,a?1+c:c):i===1&&a&&(e.result+=`
|
|
14
|
+
`);break}r?_(d)?(l=!0,e.result+=t.repeat(`
|
|
15
|
+
`,a?1+c:c)):l?(l=!1,e.result+=t.repeat(`
|
|
16
|
+
`,c+1)):c===0?a&&(e.result+=` `):e.result+=t.repeat(`
|
|
17
|
+
`,c):e.result+=t.repeat(`
|
|
18
|
+
`,a?1+c:c),a=!0,o=!0,c=0;let n=e.position;for(;!g(d)&&d!==0;)d=e.input.charCodeAt(++e.position);z(e,n,e.position,!1)}return!0}e(ne,`readBlockScalar`);function J(e,t){let n=e.tag,r=e.anchor,i=[],a=!1;if(e.firstTabInLine!==-1)return!1;e.anchor!==null&&M(e,e.anchor,i);let o=e.input.charCodeAt(e.position);for(;o!==0&&(e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,A(e,`tab characters must not be used in indentation`)),o===45)&&v(e.input.charCodeAt(e.position+1));){if(a=!0,e.position++,U(e,!0,-1)&&e.lineIndent<=t){i.push(null),o=e.input.charCodeAt(e.position);continue}let n=e.line;if(Q(e,t,3,!1,!0),i.push(e.result),U(e,!0,-1),o=e.input.charCodeAt(e.position),(e.line===n||e.lineIndent>t)&&o!==0)A(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}e(J,`readBlockSequence`);function Y(e,t,n){let r,i,a,o,s=e.tag,c=e.anchor,l={},u=Object.create(null),d=null,f=null,p=null,m=!1,h=!1;if(e.firstTabInLine!==-1)return!1;e.anchor!==null&&M(e,e.anchor,l);let g=e.input.charCodeAt(e.position);for(;g!==0;){!m&&e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,A(e,`tab characters must not be used in indentation`));let y=e.input.charCodeAt(e.position+1),b=e.line;if((g===63||g===58)&&v(y))g===63?(m&&(V(e,l,u,d,f,null,i,a,o),d=f=p=null),h=!0,m=!0,r=!0):m?(m=!1,r=!0):A(e,`incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line`),e.position+=1,g=y;else{if(i=e.line,a=e.lineStart,o=e.position,!Q(e,n,2,!1,!0))break;if(e.line===b){for(g=e.input.charCodeAt(e.position);_(g);)g=e.input.charCodeAt(++e.position);if(g===58)g=e.input.charCodeAt(++e.position),v(g)||A(e,`a whitespace character is expected after the key-value separator within a block mapping`),m&&(V(e,l,u,d,f,null,i,a,o),d=f=p=null),h=!0,m=!1,r=!1,d=e.tag,f=e.result;else if(h)A(e,`can not read an implicit mapping pair; a colon is missed`);else return e.tag=s,e.anchor=c,!0}else if(h)A(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)&&(m&&(i=e.line,a=e.lineStart,o=e.position),Q(e,t,4,!0,r)&&(m?f=e.result:p=e.result),m||(V(e,l,u,d,f,p,i,a,o),d=f=p=null),U(e,!0,-1),g=e.input.charCodeAt(e.position)),(e.line===b||e.lineIndent>t)&&g!==0)A(e,`bad indentation of a mapping entry`);else if(e.lineIndent<t)break}return m&&V(e,l,u,d,f,null,i,a,o),h&&(e.tag=s,e.anchor=c,e.kind=`mapping`,e.result=l),h}e(Y,`readBlockMapping`);function re(e){let t=!1,n=!1,r,i,a=e.input.charCodeAt(e.position);if(a!==33)return!1;e.tag!==null&&A(e,`duplication of a tag property`),a=e.input.charCodeAt(++e.position),a===60?(t=!0,a=e.input.charCodeAt(++e.position)):a===33?(n=!0,r=`!!`,a=e.input.charCodeAt(++e.position)):r=`!`;let o=e.position;if(t){do a=e.input.charCodeAt(++e.position);while(a!==0&&a!==62);e.position<e.length?(i=e.input.slice(o,e.position),a=e.input.charCodeAt(++e.position)):A(e,`unexpected end of the stream within a verbatim tag`)}else{for(;a!==0&&!v(a);)a===33&&(n?A(e,`tag suffix cannot contain exclamation marks`):(r=e.input.slice(o-1,e.position+1),p.test(r)||A(e,`named tag handle cannot contain such characters`),n=!0,o=e.position+1)),a=e.input.charCodeAt(++e.position);i=e.input.slice(o,e.position),d.test(i)&&A(e,`tag suffix cannot contain flow indicator characters`)}i&&!m.test(i)&&A(e,`tag name cannot contain such characters: `+i);try{i=decodeURIComponent(i)}catch{A(e,`tag name is malformed: `+i)}return t?e.tag=i:s.call(e.tagMap,r)?e.tag=e.tagMap[r]+i:r===`!`?e.tag=`!`+i:r===`!!`?e.tag=`tag:yaml.org,2002:`+i:A(e,`undeclared tag handle "`+r+`"`),!0}e(re,`readTagProperty`);function X(e){let t=e.input.charCodeAt(e.position);if(t!==38)return!1;e.anchor!==null&&A(e,`duplication of an anchor property`),t=e.input.charCodeAt(++e.position);let n=e.position;for(;t!==0&&!v(t)&&!y(t);)t=e.input.charCodeAt(++e.position);return e.position===n&&A(e,`name of an anchor node must contain at least one character`),e.anchor=e.input.slice(n,e.position),!0}e(X,`readAnchorProperty`);function Z(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&&!v(t)&&!y(t);)t=e.input.charCodeAt(++e.position);e.position===n&&A(e,`name of an alias node must contain at least one character`);let r=e.input.slice(n,e.position);return s.call(e.anchorMap,r)||A(e,`unidentified alias "`+r+`"`),e.result=e.anchorMap[r],U(e,!0,-1),!0}e(Z,`readAlias`);function ie(e,t,n,r){let i=I(e);return N(e),L(e,t),e.tag=null,e.anchor=null,e.kind=null,e.result=null,Y(e,n,r)&&e.kind===`mapping`?(P(e),!0):(F(e),L(e,i),!1)}e(ie,`tryReadBlockMappingFromProperty`);function Q(e,t,n,r,i){let a,o,c=1,l=!1,u=!1,d=null,f,p,m;e.depth>=e.maxDepth&&A(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=a=o=n===4||n===3;if(r&&U(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=I(e);if(l&&(n===33&&e.tag!==null||n===38&&e.anchor!==null)||!re(e)&&!X(e))break;d===null&&(d=r),U(e,!0,-1)?(l=!0,o=h,e.lineIndent>t?c=1:e.lineIndent===t?c=0:e.lineIndent<t&&(c=-1)):o=!1}if(o&&=l||i,c===1||n===4){if(p=n===1||n===2?t:t+1,m=e.position-e.lineStart,c===1){if(o&&(J(e,m)||Y(e,m,p))||q(e,p))u=!0;else{let t=e.input.charCodeAt(e.position);d!==null&&h&&!o&&t!==124&&t!==62&&ie(e,d,d.position-d.lineStart,p)||a&&ne(e,p)||te(e,p)||K(e,p)?u=!0:Z(e)?(u=!0,(e.tag!==null||e.anchor!==null)&&A(e,`alias node should not have any properties`)):ee(e,p,n===1)&&(u=!0,e.tag===null&&(e.tag=`?`)),e.anchor!==null&&M(e,e.anchor,e.result)}}else c===0&&(u=o&&J(e,m))}if(e.tag===null)e.anchor!==null&&M(e,e.anchor,e.result);else if(e.tag===`?`){e.result!==null&&e.kind!==`scalar`&&A(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&&M(e,e.anchor,e.result);break}}else if(e.tag!==`!`){if(s.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||A(e,`unknown tag !<`+e.tag+`>`),e.result!==null&&f.kind!==e.kind&&A(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&&M(e,e.anchor,e.result)):A(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}e(Q,`composeNode`);function $(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&&(U(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&&!v(r);)r=e.input.charCodeAt(++e.position);let i=e.input.slice(t,e.position),a=[];for(i.length<1&&A(e,`directive name must not be less than one character in length`);r!==0;){for(;_(r);)r=e.input.charCodeAt(++e.position);if(r===35){do r=e.input.charCodeAt(++e.position);while(r!==0&&!g(r));break}if(g(r))break;for(t=e.position;r!==0&&!v(r);)r=e.input.charCodeAt(++e.position);a.push(e.input.slice(t,e.position))}r!==0&&H(e),s.call(R,i)?R[i](e,i,a):j(e,`unknown document directive "`+i+`"`)}if(U(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,U(e,!0,-1)):n&&A(e,`directives end mark is expected`),Q(e,e.lineIndent-1,4,!1,!0),U(e,!0,-1),e.checkLineBreaks&&u.test(e.input.slice(t,e.position))&&j(e,`non-ASCII line breaks are interpreted as content`),e.documents.push(e.result),e.position===e.lineStart&&W(e)){e.input.charCodeAt(e.position)===46&&(e.position+=3,U(e,!0,-1));return}e.position<e.length-1&&A(e,`end of the stream or a document separator is expected`)}e($,`readDocument`);function ae(e,t){e=String(e),t||={},e.length!==0&&(e.charCodeAt(e.length-1)!==10&&e.charCodeAt(e.length-1)!==13&&(e+=`
|
|
19
|
+
`),e.charCodeAt(0)===65279&&(e=e.slice(1)));let n=new O(e,t),r=e.indexOf(`\0`);for(r!==-1&&(n.position=r,A(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;)$(n);return n.documents}e(ae,`loadDocuments`);function oe(e,t,n){typeof t==`object`&&t&&typeof n>`u`&&(n=t,t=null);let r=ae(e,n);if(typeof t!=`function`)return r;for(let e=0,n=r.length;e<n;e+=1)t(r[e])}e(oe,`loadAll2`);function se(e,t){let r=ae(e,t);if(r.length!==0){if(r.length===1)return r[0];throw new n(`expected a single document in the stream, but found more`)}}return e(se,`load2`),r.loadAll=oe,r.load=se,r}e(_e,`requireLoader`);var ve={},ye;function be(){if(ye)return ve;ye=1;let t=o(),n=l(),r=he(),i=Object.prototype.toString,a=Object.prototype.hasOwnProperty,s=65279,c={};c[0]=`\\0`,c[7]=`\\a`,c[8]=`\\b`,c[9]=`\\t`,c[10]=`\\n`,c[11]=`\\v`,c[12]=`\\f`,c[13]=`\\r`,c[27]=`\\e`,c[34]=`\\"`,c[92]=`\\\\`,c[133]=`\\N`,c[160]=`\\_`,c[8232]=`\\L`,c[8233]=`\\P`;let u=[`y`,`Y`,`yes`,`Yes`,`YES`,`on`,`On`,`ON`,`n`,`N`,`no`,`No`,`NO`,`off`,`Off`,`OFF`],d=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function f(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}e(f,`compileStyleMap`);function p(e){let r,i,a=e.toString(16).toUpperCase();if(e<=255)r=`x`,i=2;else if(e<=65535)r=`u`,i=4;else if(e<=4294967295)r=`U`,i=8;else throw new n(`code point within a string may not be greater than 0xFFFFFFFF`);return`\\`+r+t.repeat(`0`,i-a.length)+a}e(p,`encodeHex`);function m(e){this.schema=e.schema||r,this.indent=Math.max(1,e.indent||2),this.noArrayIndent=e.noArrayIndent||!1,this.skipInvalid=e.skipInvalid||!1,this.flowLevel=t.isNothing(e.flowLevel)?-1:e.flowLevel,this.styleMap=f(this.schema,e.styles||null),this.sortKeys=e.sortKeys||!1,this.lineWidth=e.lineWidth||80,this.noRefs=e.noRefs||!1,this.noCompatMode=e.noCompatMode||!1,this.condenseFlow=e.condenseFlow||!1,this.quotingType=e.quotingType===`"`?2:1,this.forceQuotes=e.forceQuotes||!1,this.replacer=typeof e.replacer==`function`?e.replacer:null,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result=``,this.duplicates=[],this.usedDuplicates=null}e(m,`State`);function h(e,n){let r=t.repeat(` `,n),i=0,a=``,o=e.length;for(;i<o;){let t,n=e.indexOf(`
|
|
20
|
+
`,i);n===-1?(t=e.slice(i),i=o):(t=e.slice(i,n+1),i=n+1),t.length&&t!==`
|
|
21
|
+
`&&(a+=r),a+=t}return a}e(h,`indentString`);function g(e,n){return`
|
|
22
|
+
`+t.repeat(` `,e.indent*n)}e(g,`generateNextLine`);function _(e,t){for(let n=0,r=e.implicitTypes.length;n<r;n+=1)if(e.implicitTypes[n].resolve(t))return!0;return!1}e(_,`testImplicitResolving`);function v(e){return e===32||e===9}e(v,`isWhitespace`);function y(e){return e>=32&&e<=126||e>=161&&e<=55295&&e!==8232&&e!==8233||e>=57344&&e<=65533&&e!==s||e>=65536&&e<=1114111}e(y,`isPrintable`);function b(e){return y(e)&&e!==s&&e!==13&&e!==10}e(b,`isNsCharOrWhitespace`);function x(e,t,n){let r=b(e),i=r&&!v(e);return(n?r:r&&e!==44&&e!==91&&e!==93&&e!==123&&e!==125)&&e!==35&&!(t===58&&!i)||b(t)&&!v(t)&&e===35||t===58&&i}e(x,`isPlainSafe`);function S(e){return y(e)&&e!==s&&!v(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}e(S,`isPlainSafeFirst`);function C(e){return!v(e)&&e!==58}e(C,`isPlainSafeLast`);function w(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}e(w,`codePointAt`);function T(e){return/^\n* /.test(e)}e(T,`needIndentIndicator`);function E(e,t,n,r,i,a,o,s){let c,l=0,u=null,d=!1,f=!1,p=r!==-1,m=-1,h=S(w(e,0))&&C(w(e,e.length-1));if(t||o)for(c=0;c<e.length;l>=65536?c+=2:c++){if(l=w(e,c),!y(l))return 5;h&&=x(l,u,s),u=l}else{for(c=0;c<e.length;l>=65536?c+=2:c++){if(l=w(e,c),l===10)d=!0,p&&(f||=c-m-1>r&&e[m+1]!==` `,m=c);else if(!y(l))return 5;h&&=x(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&&T(e)?5:o?a===2?5:2:f?4:3}e(E,`chooseScalarStyle`);function D(t,r,i,a,o){t.dump=(function(){if(r.length===0)return t.quotingType===2?`""`:`''`;if(!t.noCompatMode&&(u.indexOf(r)!==-1||d.test(r)))return t.quotingType===2?`"`+r+`"`:`'`+r+`'`;let s=t.indent*Math.max(1,i),c=t.lineWidth===-1?-1:Math.max(Math.min(t.lineWidth,40),t.lineWidth-s),l=a||t.flowLevel>-1&&i>=t.flowLevel;function f(e){return _(t,e)}switch(e(f,`testAmbiguity`),E(r,l,t.indent,c,f,t.quotingType,t.forceQuotes&&!a,o)){case 1:return r;case 2:return`'`+r.replace(/'/g,`''`)+`'`;case 3:return`|`+O(r,t.indent)+k(h(r,s));case 4:return`>`+O(r,t.indent)+k(h(A(r,c),s));case 5:return`"`+M(r)+`"`;default:throw new n(`impossible error: invalid scalar style`)}})()}e(D,`writeScalar`);function O(e,t){let n=T(e)?String(t):``,r=e[e.length-1]===`
|
|
23
|
+
`;return n+(r&&(e[e.length-2]===`
|
|
24
|
+
`||e===`
|
|
25
|
+
`)?`+`:r?``:`-`)+`
|
|
26
|
+
`}e(O,`blockHeader`);function k(e){return e[e.length-1]===`
|
|
27
|
+
`?e.slice(0,-1):e}e(k,`dropEndingNewline`);function A(e,t){let n=/(\n+)([^\n]*)/g,r=(function(){let r=e.indexOf(`
|
|
28
|
+
`);return r=r===-1?e.length:r,n.lastIndex=r,j(e.slice(0,r),t)})(),i=e[0]===`
|
|
29
|
+
`||e[0]===` `,a,o;for(;o=n.exec(e);){let e=o[1],n=o[2];a=n[0]===` `,r+=e+(!i&&!a&&n!==``?`
|
|
30
|
+
`:``)+j(n,t),i=a}return r}e(A,`foldString`);function j(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+=`
|
|
31
|
+
`+e.slice(i,a),i=a+1),o=s;return c+=`
|
|
32
|
+
`,e.length-i>t&&o>i?c+=e.slice(i,o)+`
|
|
33
|
+
`+e.slice(o+1):c+=e.slice(i),c.slice(1)}e(j,`foldLine`);function M(e){let t=``,n=0;for(let r=0;r<e.length;n>=65536?r+=2:r++){n=w(e,r);let i=c[n];!i&&y(n)?(t+=e[r],n>=65536&&(t+=e[r+1])):t+=i||p(n)}return t}e(M,`escapeString`);function N(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)),(R(e,t,a,!1,!1)||typeof a>`u`&&R(e,t,null,!1,!1))&&(r!==``&&(r+=`,`+(e.condenseFlow?``:` `)),r+=e.dump)}e.tag=i,e.dump=`[`+r+`]`}e(N,`writeFlowSequence`);function P(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)),(R(e,t+1,o,!0,!0,!1,!0)||typeof o>`u`&&R(e,t+1,null,!0,!0,!1,!0))&&((!r||i!==``)&&(i+=g(e,t)),e.dump&&e.dump.charCodeAt(0)===10?i+=`-`:i+=`- `,i+=e.dump)}e.tag=a,e.dump=i||`[]`}e(P,`writeBlockSequence`);function F(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)),R(e,t,s,!1,!1)&&(e.dump.length>1024&&(o+=`? `),o+=e.dump+(e.condenseFlow?`"`:``)+`:`+(e.condenseFlow?``:` `),R(e,t,c,!1,!1)&&(o+=e.dump,r+=o))}e.tag=i,e.dump=`{`+r+`}`}e(F,`writeFlowMapping`);function I(e,t,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 n(`sortKeys must be a boolean or a function`);for(let n=0,o=s.length;n<o;n+=1){let o=``;(!i||a!==``)&&(o+=g(e,t));let c=s[n],l=r[c];if(e.replacer&&(l=e.replacer.call(r,c,l)),!R(e,t+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+=g(e,t)),R(e,t+1,l,!0,u)&&(e.dump&&e.dump.charCodeAt(0)===10?o+=`:`:o+=`: `,o+=e.dump,a+=o)}e.tag=o,e.dump=a||`{}`}e(I,`writeBlockMapping`);function L(e,t,r){let o=r?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 t==`object`&&t instanceof c.instanceOf)&&(!c.predicate||c.predicate(t))){if(e.tag=r?c.multi&&c.representName?c.representName(t):c.tag:`?`,c.represent){let r=e.styleMap[c.tag]||c.defaultStyle,o;if(i.call(c.represent)===`[object Function]`)o=c.represent(t,r);else if(a.call(c.represent,r))o=c.represent[r](t,r);else throw new n(`!<`+c.tag+`> tag resolver accepts not "`+r+`" style`);e.dump=o}return!0}}return!1}e(L,`detectType`);function R(e,t,r,a,o,s,c){e.tag=null,e.dump=r,L(e,r,!1)||L(e,r,!0);let l=i.call(e.dump),u=a;a&&=e.flowLevel<0||e.flowLevel>t;let d=l===`[object Object]`||l===`[object Array]`,f,p;if(d&&(f=e.duplicates.indexOf(r),p=f!==-1),(e.tag!==null&&e.tag!==`?`||p||e.indent!==2&&t>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?(I(e,t,e.dump,o),p&&(e.dump=`&ref_`+f+e.dump)):(F(e,t,e.dump),p&&(e.dump=`&ref_`+f+` `+e.dump));else if(l===`[object Array]`)a&&e.dump.length!==0?(e.noArrayIndent&&!c&&t>0?P(e,t-1,e.dump,o):P(e,t,e.dump,o),p&&(e.dump=`&ref_`+f+e.dump)):(N(e,t,e.dump),p&&(e.dump=`&ref_`+f+` `+e.dump));else if(l===`[object String]`)e.tag!==`?`&&D(e,e.dump,t,s,u);else{if(l===`[object Undefined]`||e.skipInvalid)return!1;throw new n(`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}e(R,`writeNode`);function z(e,t){let n=[],r=[];B(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)}e(z,`getDuplicateReferences`);function B(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)B(e[r],t,n);else{let r=Object.keys(e);for(let i=0,a=r.length;i<a;i+=1)B(e[r[i]],t,n)}}}e(B,`inspectNode`);function V(e,t){t||={};let n=new m(t);n.noRefs||z(e,n);let r=e;return n.replacer&&(r=n.replacer.call({"":r},``,r)),R(n,0,r,!0,!0)?n.dump+`
|
|
34
|
+
`:``}return e(V,`dump2`),ve.dump=V,ve}e(be,`requireDumper`);var xe;function Se(){if(xe)return n;xe=1;let t=_e(),r=be();function i(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 e(i,`renamed`),n.Type=h(),n.Schema=v(),n.FAILSAFE_SCHEMA=A(),n.JSON_SCHEMA=G(),n.CORE_SCHEMA=K(),n.DEFAULT_SCHEMA=he(),n.load=t.load,n.loadAll=t.loadAll,n.dump=r.dump,n.YAMLException=l(),n.types={binary:Q(),float:H(),map:D(),null:N(),pairs:le(),set:fe(),timestamp:J(),bool:I(),int:z(),merge:X(),omap:oe(),seq:w(),str:x()},n.safeLoad=i(`safeLoad`,`load`),n.safeLoadAll=i(`safeLoadAll`,`loadAll`),n.safeDump=i(`safeDump`,`dump`),n}e(Se,`requireJsYaml`);var{Type:Ce,Schema:we,FAILSAFE_SCHEMA:Te,JSON_SCHEMA:Ee,CORE_SCHEMA:De,DEFAULT_SCHEMA:Oe,load:ke,loadAll:Ae,dump:je,YAMLException:Me,types:Ne,safeLoad:Pe,safeLoadAll:Fe,safeDump:Ie}=t(Se());export{ke as n,Ee as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{t as e}from"./chunk-AQ6EADP3-CZhslHi-.js";import{S as t,c as n,i as r,m as i,n as a,o,r as s,t as c,y as l}from"./chunk-ZS6VBONO-D-IFTJgn.js";var u=class extends r{static{e(this,`EventModelingTokenBuilder`)}static{l(this,`EventModelingTokenBuilder`)}constructor(){super([`eventmodeling`])}},d=new Set([`cmd`,`command`]),f=new Set([`evt`,`event`]),p=new Set([`rmo`,`readmodel`]),m=new Set([`pcr`,`processor`]),h=new Set([`ui`]);function g(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)}}e(g,`registerValidationChecks`),l(g,`registerValidationChecks`);var _=class{static{e(this,`EventModelingValidator`)}static{l(this,`EventModelingValidator`)}checkSourceFrameTypes(e,t){e.sourceFrames.length!==0&&(d.has(e.modelEntityType)?this.validateSources(e,new Set([...h,...m]),`command`,`ui or processor`,t):f.has(e.modelEntityType)?this.validateSources(e,d,`event`,`command`,t):p.has(e.modelEntityType)?this.validateSources(e,f,`read model`,`event`,t):m.has(e.modelEntityType)?this.validateSources(e,p,`processor`,`read model`,t):h.has(e.modelEntityType)&&this.validateSources(e,p,`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`})}}},v={parser:{TokenBuilder:l(()=>new u,`TokenBuilder`),ValueConverter:l(()=>new i,`ValueConverter`)},validation:{EventModelingValidator:l(()=>new _,`EventModelingValidator`)}};function y(e=n){let r=s(o(e),a),i=s(c({shared:r}),t,v);return r.ServiceRegistry.register(i),g(i),{shared:r,EventModel:i}}e(y,`createEventModelingServices`),l(y,`createEventModelingServices`);export{v as n,y as t};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{t as e}from"./chunk-AQ6EADP3-CZhslHi-.js";import{T as t,a as n,c as r,i,n as a,o,r as s,t as c,y as l}from"./chunk-ZS6VBONO-D-IFTJgn.js";var u=class extends i{static{e(this,`RailroadEbnfTokenBuilder`)}static{l(this,`RailroadEbnfTokenBuilder`)}constructor(){super([`railroad-ebnf-beta`])}},d=l(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+=`
|
|
2
|
+
`;break;case`r`:n+=`\r`;break;case`t`:n+=` `;break;default:n+=r}continue}n+=r}return n},`decodeEscapedString`),f=class extends n{static{e(this,`RailroadEbnfValueConverter`)}static{l(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 d(e)}return r}runCustomConverter(e,t,n){if(e.name===`EBNF_STRING`)return d(t);if(e.name===`EBNF_SPECIAL_SEQUENCE`)return t.slice(1,-1).trim()}},p={parser:{TokenBuilder:l(()=>new u,`TokenBuilder`),ValueConverter:l(()=>new f,`ValueConverter`)}};function m(e=r){let n=s(o(e),a),i=s(c({shared:n}),t,p);return n.ServiceRegistry.register(i),{shared:n,RailroadEbnf:i}}e(m,`createRailroadEbnfServices`),l(m,`createRailroadEbnfServices`);export{m as n,p as t};
|