From 5eac3fea70cb4593991a12a29a27b8279994b99c Mon Sep 17 00:00:00 2001 From: Sander Verweij Date: Sat, 13 Jul 2024 14:02:53 +0200 Subject: [PATCH] refactor(parse): replaces lodash.assign with modern native variants (#60) --- config/.peggy-config.json | 1 - dist/bundle/index.min.js | 2 +- dist/cjs/parse/mscgenparser.js | 24 ++++++++++++--------- dist/cjs/parse/msgennyparser.js | 22 ++++++++++--------- dist/cjs/parse/xuparser.js | 34 +++++++++++++----------------- dist/es2015/parse/mscgenparser.js | 24 ++++++++++++--------- dist/es2015/parse/msgennyparser.js | 22 ++++++++++--------- dist/es2015/parse/xuparser.js | 34 +++++++++++++----------------- doc/build.md | 2 +- src/parse/mscgenparser.js | 24 ++++++++++++--------- src/parse/msgennyparser.js | 22 ++++++++++--------- src/parse/peg/mscgenparser.peggy | 18 ++++++++++------ src/parse/peg/msgennyparser.peggy | 16 ++++++++------ src/parse/peg/xuparser.peggy | 28 +++++++++++------------- src/parse/xuparser.js | 34 +++++++++++++----------------- 15 files changed, 157 insertions(+), 150 deletions(-) diff --git a/config/.peggy-config.json b/config/.peggy-config.json index 26e91212..bf1cdda6 100644 --- a/config/.peggy-config.json +++ b/config/.peggy-config.json @@ -1,7 +1,6 @@ { "format": "umd", "dependencies": { - "_assign": "lodash/assign", "parserHelpers": "./parserHelpers" } } diff --git a/dist/bundle/index.min.js b/dist/bundle/index.min.js index 528a9d62..f64f7cc7 100644 --- a/dist/bundle/index.min.js +++ b/dist/bundle/index.min.js @@ -1 +1 @@ -!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.mscgenjs=e():t.mscgenjs=e()}(self,(()=>(()=>{var t={1549:(t,e,r)=>{var n=r(2032),o=r(3862),i=r(6721),a=r(2749),c=r(5749);function u(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e{var n=r(3702),o=r(80),i=r(4739),a=r(8655),c=r(1175);function u(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e{var n=r(6110)(r(9325),"Map");t.exports=n},3661:(t,e,r)=>{var n=r(3040),o=r(7670),i=r(289),a=r(4509),c=r(2949);function u(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e{var n=r(9325).Symbol;t.exports=n},1033:t=>{t.exports=function(t,e,r){switch(r.length){case 0:return t.call(e);case 1:return t.call(e,r[0]);case 2:return t.call(e,r[0],r[1]);case 3:return t.call(e,r[0],r[1],r[2])}return t.apply(e,r)}},695:(t,e,r)=>{var n=r(8096),o=r(2428),i=r(6449),a=r(3656),c=r(361),u=r(7167),s=Object.prototype.hasOwnProperty;t.exports=function(t,e){var r=i(t),l=!r&&o(t),f=!r&&!l&&a(t),d=!r&&!l&&!f&&u(t),p=r||l||f||d,h=p?n(t.length,String):[],g=h.length;for(var b in t)!e&&!s.call(t,b)||p&&("length"==b||f&&("offset"==b||"parent"==b)||d&&("buffer"==b||"byteLength"==b||"byteOffset"==b)||c(b,g))||h.push(b);return h}},6547:(t,e,r)=>{var n=r(3360),o=r(5288),i=Object.prototype.hasOwnProperty;t.exports=function(t,e,r){var a=t[e];i.call(t,e)&&o(a,r)&&(void 0!==r||e in t)||n(t,e,r)}},6025:(t,e,r)=>{var n=r(5288);t.exports=function(t,e){for(var r=t.length;r--;)if(n(t[r][0],e))return r;return-1}},3360:(t,e,r)=>{var n=r(3243);t.exports=function(t,e,r){"__proto__"==e&&n?n(t,e,{configurable:!0,enumerable:!0,value:r,writable:!0}):t[e]=r}},2552:(t,e,r)=>{var n=r(1873),o=r(659),i=r(9350),a=n?n.toStringTag:void 0;t.exports=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":a&&a in Object(t)?o(t):i(t)}},7534:(t,e,r)=>{var n=r(2552),o=r(346);t.exports=function(t){return o(t)&&"[object Arguments]"==n(t)}},5083:(t,e,r)=>{var n=r(1882),o=r(7296),i=r(3805),a=r(7473),c=/^\[object .+?Constructor\]$/,u=Function.prototype,s=Object.prototype,l=u.toString,f=s.hasOwnProperty,d=RegExp("^"+l.call(f).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");t.exports=function(t){return!(!i(t)||o(t))&&(n(t)?d:c).test(a(t))}},4901:(t,e,r)=>{var n=r(2552),o=r(294),i=r(346),a={};a["[object Float32Array]"]=a["[object Float64Array]"]=a["[object Int8Array]"]=a["[object Int16Array]"]=a["[object Int32Array]"]=a["[object Uint8Array]"]=a["[object Uint8ClampedArray]"]=a["[object Uint16Array]"]=a["[object Uint32Array]"]=!0,a["[object Arguments]"]=a["[object Array]"]=a["[object ArrayBuffer]"]=a["[object Boolean]"]=a["[object DataView]"]=a["[object Date]"]=a["[object Error]"]=a["[object Function]"]=a["[object Map]"]=a["[object Number]"]=a["[object Object]"]=a["[object RegExp]"]=a["[object Set]"]=a["[object String]"]=a["[object WeakMap]"]=!1,t.exports=function(t){return i(t)&&o(t.length)&&!!a[n(t)]}},8984:(t,e,r)=>{var n=r(5527),o=r(3650),i=Object.prototype.hasOwnProperty;t.exports=function(t){if(!n(t))return o(t);var e=[];for(var r in Object(t))i.call(t,r)&&"constructor"!=r&&e.push(r);return e}},9302:(t,e,r)=>{var n=r(3488),o=r(6757),i=r(2865);t.exports=function(t,e){return i(o(t,e,n),t+"")}},9570:(t,e,r)=>{var n=r(7334),o=r(3243),i=r(3488),a=o?function(t,e){return o(t,"toString",{configurable:!0,enumerable:!1,value:n(e),writable:!0})}:i;t.exports=a},8096:t=>{t.exports=function(t,e){for(var r=-1,n=Array(t);++r{t.exports=function(t){return function(e){return t(e)}}},1791:(t,e,r)=>{var n=r(6547),o=r(3360);t.exports=function(t,e,r,i){var a=!r;r||(r={});for(var c=-1,u=e.length;++c{var n=r(9325)["__core-js_shared__"];t.exports=n},999:(t,e,r)=>{var n=r(9302),o=r(6800);t.exports=function(t){return n((function(e,r){var n=-1,i=r.length,a=i>1?r[i-1]:void 0,c=i>2?r[2]:void 0;for(a=t.length>3&&"function"==typeof a?(i--,a):void 0,c&&o(r[0],r[1],c)&&(a=i<3?void 0:a,i=1),e=Object(e);++n{var n=r(6110),o=function(){try{var t=n(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();t.exports=o},4840:(t,e,r)=>{var n="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g;t.exports=n},2651:(t,e,r)=>{var n=r(4218);t.exports=function(t,e){var r=t.__data__;return n(e)?r["string"==typeof e?"string":"hash"]:r.map}},6110:(t,e,r)=>{var n=r(5083),o=r(392);t.exports=function(t,e){var r=o(t,e);return n(r)?r:void 0}},659:(t,e,r)=>{var n=r(1873),o=Object.prototype,i=o.hasOwnProperty,a=o.toString,c=n?n.toStringTag:void 0;t.exports=function(t){var e=i.call(t,c),r=t[c];try{t[c]=void 0;var n=!0}catch(t){}var o=a.call(t);return n&&(e?t[c]=r:delete t[c]),o}},392:t=>{t.exports=function(t,e){return null==t?void 0:t[e]}},2032:(t,e,r)=>{var n=r(1042);t.exports=function(){this.__data__=n?n(null):{},this.size=0}},3862:t=>{t.exports=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}},6721:(t,e,r)=>{var n=r(1042),o=Object.prototype.hasOwnProperty;t.exports=function(t){var e=this.__data__;if(n){var r=e[t];return"__lodash_hash_undefined__"===r?void 0:r}return o.call(e,t)?e[t]:void 0}},2749:(t,e,r)=>{var n=r(1042),o=Object.prototype.hasOwnProperty;t.exports=function(t){var e=this.__data__;return n?void 0!==e[t]:o.call(e,t)}},5749:(t,e,r)=>{var n=r(1042);t.exports=function(t,e){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=n&&void 0===e?"__lodash_hash_undefined__":e,this}},361:t=>{var e=/^(?:0|[1-9]\d*)$/;t.exports=function(t,r){var n=typeof t;return!!(r=null==r?9007199254740991:r)&&("number"==n||"symbol"!=n&&e.test(t))&&t>-1&&t%1==0&&t{var n=r(5288),o=r(4894),i=r(361),a=r(3805);t.exports=function(t,e,r){if(!a(r))return!1;var c=typeof e;return!!("number"==c?o(r)&&i(e,r.length):"string"==c&&e in r)&&n(r[e],t)}},4218:t=>{t.exports=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}},7296:(t,e,r)=>{var n,o=r(5481),i=(n=/[^.]+$/.exec(o&&o.keys&&o.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"";t.exports=function(t){return!!i&&i in t}},5527:t=>{var e=Object.prototype;t.exports=function(t){var r=t&&t.constructor;return t===("function"==typeof r&&r.prototype||e)}},3702:t=>{t.exports=function(){this.__data__=[],this.size=0}},80:(t,e,r)=>{var n=r(6025),o=Array.prototype.splice;t.exports=function(t){var e=this.__data__,r=n(e,t);return!(r<0||(r==e.length-1?e.pop():o.call(e,r,1),--this.size,0))}},4739:(t,e,r)=>{var n=r(6025);t.exports=function(t){var e=this.__data__,r=n(e,t);return r<0?void 0:e[r][1]}},8655:(t,e,r)=>{var n=r(6025);t.exports=function(t){return n(this.__data__,t)>-1}},1175:(t,e,r)=>{var n=r(6025);t.exports=function(t,e){var r=this.__data__,o=n(r,t);return o<0?(++this.size,r.push([t,e])):r[o][1]=e,this}},3040:(t,e,r)=>{var n=r(1549),o=r(79),i=r(8223);t.exports=function(){this.size=0,this.__data__={hash:new n,map:new(i||o),string:new n}}},7670:(t,e,r)=>{var n=r(2651);t.exports=function(t){var e=n(this,t).delete(t);return this.size-=e?1:0,e}},289:(t,e,r)=>{var n=r(2651);t.exports=function(t){return n(this,t).get(t)}},4509:(t,e,r)=>{var n=r(2651);t.exports=function(t){return n(this,t).has(t)}},2949:(t,e,r)=>{var n=r(2651);t.exports=function(t,e){var r=n(this,t),o=r.size;return r.set(t,e),this.size+=r.size==o?0:1,this}},1042:(t,e,r)=>{var n=r(6110)(Object,"create");t.exports=n},3650:(t,e,r)=>{var n=r(4335)(Object.keys,Object);t.exports=n},6009:(t,e,r)=>{t=r.nmd(t);var n=r(4840),o=e&&!e.nodeType&&e,i=o&&t&&!t.nodeType&&t,a=i&&i.exports===o&&n.process,c=function(){try{return i&&i.require&&i.require("util").types||a&&a.binding&&a.binding("util")}catch(t){}}();t.exports=c},9350:t=>{var e=Object.prototype.toString;t.exports=function(t){return e.call(t)}},4335:t=>{t.exports=function(t,e){return function(r){return t(e(r))}}},6757:(t,e,r)=>{var n=r(1033),o=Math.max;t.exports=function(t,e,r){return e=o(void 0===e?t.length-1:e,0),function(){for(var i=arguments,a=-1,c=o(i.length-e,0),u=Array(c);++a{var n=r(4840),o="object"==typeof self&&self&&self.Object===Object&&self,i=n||o||Function("return this")();t.exports=i},2865:(t,e,r)=>{var n=r(9570),o=r(1811)(n);t.exports=o},1811:t=>{var e=Date.now;t.exports=function(t){var r=0,n=0;return function(){var o=e(),i=16-(o-n);if(n=o,i>0){if(++r>=800)return arguments[0]}else r=0;return t.apply(void 0,arguments)}}},7473:t=>{var e=Function.prototype.toString;t.exports=function(t){if(null!=t){try{return e.call(t)}catch(t){}try{return t+""}catch(t){}}return""}},6139:(t,e,r)=>{var n=r(6547),o=r(1791),i=r(999),a=r(4894),c=r(5527),u=r(5950),s=Object.prototype.hasOwnProperty,l=i((function(t,e){if(c(e)||a(e))o(e,u(e),t);else for(var r in e)s.call(e,r)&&n(t,r,e[r])}));t.exports=l},7334:t=>{t.exports=function(t){return function(){return t}}},5288:t=>{t.exports=function(t,e){return t===e||t!=t&&e!=e}},3488:t=>{t.exports=function(t){return t}},2428:(t,e,r)=>{var n=r(7534),o=r(346),i=Object.prototype,a=i.hasOwnProperty,c=i.propertyIsEnumerable,u=n(function(){return arguments}())?n:function(t){return o(t)&&a.call(t,"callee")&&!c.call(t,"callee")};t.exports=u},6449:t=>{var e=Array.isArray;t.exports=e},4894:(t,e,r)=>{var n=r(1882),o=r(294);t.exports=function(t){return null!=t&&o(t.length)&&!n(t)}},3656:(t,e,r)=>{t=r.nmd(t);var n=r(9325),o=r(9935),i=e&&!e.nodeType&&e,a=i&&t&&!t.nodeType&&t,c=a&&a.exports===i?n.Buffer:void 0,u=(c?c.isBuffer:void 0)||o;t.exports=u},1882:(t,e,r)=>{var n=r(2552),o=r(3805);t.exports=function(t){if(!o(t))return!1;var e=n(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}},294:t=>{t.exports=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}},3805:t=>{t.exports=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}},346:t=>{t.exports=function(t){return null!=t&&"object"==typeof t}},7167:(t,e,r)=>{var n=r(4901),o=r(7301),i=r(6009),a=i&&i.isTypedArray,c=a?o(a):n;t.exports=c},5950:(t,e,r)=>{var n=r(695),o=r(8984),i=r(4894);t.exports=function(t){return i(t)?n(t):o(t)}},104:(t,e,r)=>{var n=r(3661);function o(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var r=function(){var n=arguments,o=e?e.apply(this,n):n[0],i=r.cache;if(i.has(o))return i.get(o);var a=t.apply(this,n);return r.cache=i.set(o,a)||i,a};return r.cache=new(o.Cache||n),r}o.Cache=n,t.exports=o},9935:t=>{t.exports=function(){return!1}},8156:function(t,e,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(t,e,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(e,r);o&&!("get"in o?!e.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,o)}:function(t,e,r,n){void 0===n&&(n=r),t[n]=e[r]}),o=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),i=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var r in t)"default"!==r&&Object.prototype.hasOwnProperty.call(t,r)&&n(e,t,r);return o(e,t),e};Object.defineProperty(e,"__esModule",{value:!0}),e.getTextRenderer=e.getGraphicsRenderer=e.getParser=e.getAllowedValues=e.version=void 0,e.renderMsc=function(t,e,r){a.renderMsc(t,e||{},r,c.getParser,c.getGraphicsRenderer)},e.translateMsc=function(t,e){return a.translateMsc(t,e||{},c.getParser,c.getTextRenderer)};var a=i(r(8672)),c=i(r(8903));e.version=a.version,e.getAllowedValues=a.getAllowedValues,e.getParser=c.getParser,e.getGraphicsRenderer=c.getGraphicsRenderer,e.getTextRenderer=c.getTextRenderer},7426:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(2006);e.default=Object.freeze({inputType:[{name:"mscgen",experimental:!1},{name:"msgenny",experimental:!1},{name:"xu",experimental:!1},{name:"json",experimental:!1},{name:"ast",experimental:!1}],outputType:[{name:"mscgen",experimental:!1},{name:"msgenny",experimental:!1},{name:"xu",experimental:!1},{name:"json",experimental:!1},{name:"ast",experimental:!1},{name:"dot",experimental:!1},{name:"doxygen",experimental:!1}],regularArcTextVerticalAlignment:[{name:"above",experimental:!0},{name:"middle",experimental:!1},{name:"below",experimental:!0}],namedStyle:n.namedStyles.map((function(t){return{name:t.name,description:t.description,experimental:t.experimental,deprecated:t.deprecated}}))})},8672:function(t,e,r){"use strict";var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.version=void 0,e.renderMsc=function(t,e,r,n,o){var a=(0,i.default)(e,t);try{u(r,null,o().render(c(t,a.inputType,n),a.window,a.elementId,{source:a.source,styleAdditions:a.styleAdditions,additionalTemplate:a.additionalTemplate,mirrorEntitiesOnBottom:a.mirrorEntitiesOnBottom,regularArcTextVerticalAlignment:a.regularArcTextVerticalAlignment}))}catch(t){u(r,t)}},e.translateMsc=function(t,e,r,n){var o=Object.assign({inputType:"mscgen",outputType:"json"},e);return"ast"===o.outputType?r(o.inputType).parse(t):"json"===o.outputType?JSON.stringify(r(o.inputType).parse(t),null," "):n(o.outputType).render(c(t,o.inputType,r))},e.getAllowedValues=function(){return o.default};var o=n(r(7426)),i=n(r(7729)),a=r(8163);function c(t,e,r){return function(t,e){return"json"===e&&"object"==typeof t}(t,e)?t:r(e).parse(t)}function u(t,e,r){Boolean(t)&&(Boolean(e)?t(e,null):t(null,r))}e.version=a.version},7729:function(t,e,r){"use strict";var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var o=n(r(7426));function i(t,e,r){var n=r;return e.some((function(e){return e.name===t}))&&(n=t),n}function a(t,e){return"boolean"==typeof t?t:e}e.default=function(t,e){var r,n,c,u=a(t.includeSource,!0);return{inputType:(c=t.inputType,i(c,o.default.inputType,"mscgen")),elementId:t.elementId||"__svg",window:t.window||window,includeSource:u,source:u?e:null,styleAdditions:t.styleAdditions||null,additionalTemplate:(n=t.additionalTemplate,i(n,o.default.namedStyle,"basic")),mirrorEntitiesOnBottom:a(t.mirrorEntitiesOnBottom,!1),regularArcTextVerticalAlignment:(r=t.regularArcTextVerticalAlignment,i(r,o.default.regularArcTextVerticalAlignment,"middle"))}}},8903:function(t,e,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(t,e,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(e,r);o&&!("get"in o?!e.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,o)}:function(t,e,r,n){void 0===n&&(n=r),t[n]=e[r]}),o=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),i=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var r in t)"default"!==r&&Object.prototype.hasOwnProperty.call(t,r)&&n(e,t,r);return o(e,t),e};Object.defineProperty(e,"__esModule",{value:!0}),e.getTextRenderer=e.getGraphicsRenderer=e.getParser=void 0;var a=i(r(3688)),c=i(r(2592)),u=i(r(4626)),s=i(r(939)),l=i(r(2020)),f=i(r(5619)),d=i(r(3250)),p=i(r(2956)),h=i(r(6532)),g=a,b=d,y=Object.freeze({mscgen:a,xu:u,msgenny:c}),m=Object.freeze({mscgen:d,msgenny:p,xu:h,dot:l,doxygen:f});e.getParser=function(t){return["ast","json"].includes(t)?JSON:y[t]||g},e.getGraphicsRenderer=function(){return s},e.getTextRenderer=function(t){return m[t]||b}},2952:(t,e)=>{"use strict";function r(t,e){return void 0===e||"*"===e||t.some((function(t){return t.name===e}))}Object.defineProperty(e,"__esModule",{value:!0}),e.EntityNotDefinedError=void 0,e.nameValue2Option=function(t,e){var r={};return r[t.toLowerCase()]=e,r},e.flattenBoolean=function(t){return["true","on","1"].includes(t.toLowerCase())},e.entityExists=r,e.isMscGenKeyword=function(t){return["box","abox","rbox","note","msc","hscale","width","arcgradient","wordwraparcs","label","color","idurl","id","url","linecolor","linecolour","textcolor","textcolour","textbgcolor","textbgcolour","arclinecolor","arclinecolour","arctextcolor","arctextcolour","arctextbgcolor","arctextbgcolour","arcskip"].includes(t)},e.checkForUndeclaredEntities=function t(e,o){(o||[]).forEach((function(o){o.forEach((function(o){if(o.from&&!r(e,o.from))throw new n(o.from,o);if(o.to&&!r(e,o.to))throw new n(o.to,o);o.arcs&&t(e,o.arcs)}))}))},e.getMetaInfo=function(t,e){var r=function(t){return!!t&&(t.hasOwnProperty("watermark")||t.hasOwnProperty("wordwrapentities")||t.hasOwnProperty("wordwrapboxes")||t.hasOwnProperty("width")&&"auto"===t.width)}(t),n=function(t){return(t||[]).some((function(t){return t.some((function(t){return["alt","else","opt","break","par","seq","strict","neg","critical","ignore","consider","assert","loop","ref","exc"].includes(t.kind)}))}))}(e);return{extendedOptions:r,extendedArcTypes:n,extendedFeatures:r||n}};var n=function(t,e){this.name="EntityNotDefinedError",this.message=function(t,e){return"Entity '".concat(t,"' in arc '").concat(e.from," ").concat(e.kind," ").concat(e.to,"' is not defined.")}(t,e)};e.EntityNotDefinedError=n},7796:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=Object.freeze({"|||":"empty","...":"empty","---":"empty","->":"directional","=>":"directional","=>>":"directional",">>":"directional",":>":"directional","-x":"directional","<-":"directional","<=":"directional","<<=":"directional","<<":"directional","<:":"directional","x-":"directional",note:"box",box:"box",abox:"box",rbox:"box","<->":"bidirectional","<=>":"bidirectional","<<=>>":"bidirectional","<<>>":"bidirectional","<:>":"bidirectional","--":"nondirectional","==":"nondirectional","..":"nondirectional","::":"nondirectional",alt:"inline_expression",else:"inline_expression",opt:"inline_expression",break:"inline_expression",par:"inline_expression",seq:"inline_expression",strict:"inline_expression",neg:"inline_expression",critical:"inline_expression",ignore:"inline_expression",consider:"inline_expression",assert:"inline_expression",loop:"inline_expression",ref:"inline_expression",exc:"inline_expression"});e.default=function(t){return r[t]}},4501:(t,e)=>{"use strict";function r(t,e,n){e.forEach((function(e){!function(t,e,n){e.forEach((function(o){!function(t,e,r,n){n.forEach((function(n){n(r,t,e)}))}(t,e,o,n),o.arcs&&r(t,o.arcs,n)}))}(t,e,n)}))}Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e,n){var o,i;return o=t.entities,i=e,o.forEach((function(t){i.forEach((function(e){e(t)}))})),t.arcs&&r(t.entities,t.arcs,n),t}},7635:function(t,e,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(t,e,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(e,r);o&&!("get"in o?!e.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,o)}:function(t,e,r,n){void 0===n&&(n=r),t[n]=e[r]}),o=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),i=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var r in t)"default"!==r&&Object.prototype.hasOwnProperty.call(t,r)&&n(e,t,r);return o(e,t),e},a=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.nameAsLabel=p,e.swapRTLArc=b,e.overrideColors=m,e.normalize=w,e.flatten=function(t){return w((0,c.default)(t,[p,h],[b,m,h,g]))};var c=a(r(4501)),u=i(r(5383)),s=a(r(7796)),l=a(r(6788)),f=a(r(3498)),d=0;function p(t){void 0===t.label&&(t.label=t.name)}function h(t){t.label&&(t.label=u.unescapeString(t.label)),t.id&&(t.id=u.unescapeString(t.id))}function g(t){t.label=Boolean(t.label)?t.label:""}function b(t){if((0,l.default)(t.kind)!==t.kind){t.kind=(0,l.default)(t.kind);var e=t.from;t.from=t.to,t.to=e}}function y(t,e){!t.linecolor&&e.arclinecolor&&(t.linecolor=e.arclinecolor),!t.textcolor&&e.arctextcolor&&(t.textcolor=e.arctextcolor),!t.textbgcolor&&e.arctextbgcolor&&(t.textbgcolor=e.arctextbgcolor)}function m(t,e){if(void 0===e&&(e=[]),t&&t.from){var r=e.find((function(e){return e.name===t.from}));r&&y(t,r)}}function v(t){return t.arcs.reduce((function(t,e){return t+(Boolean(e[0].arcs)?v(e[0])+1:0)}),t.arcs.length)}function x(t,e,r,n){var o=[],i=[],a=[];return t.forEach((function(t){if(t.isVirtual=!1,"inline_expression"===(0,s.default)(t.kind)){if(t.depth=e,t.isVirtual=!0,t.arcs){var o=structuredClone(t);o.numberofrows=v(o),delete o.arcs,i.push(o),t.arcs.forEach((function(t){a=a.concat(x(t,e+1,o.from,o.to)),t.forEach((function(t){y(t,o)}))})),e>d&&(d=e)}else i.push(t);a.push([{kind:"|||",from:t.from,to:t.to,isVirtual:!0}])}else r&&n&&"empty"===(0,s.default)(t.kind)&&(t.from=r,t.to=n,t.depth=e),i.push(t)})),o.push(i),o.concat(a)}function w(t){return d=0,{options:(0,f.default)(t.options),entities:structuredClone(t.entities),arcs:(e=t.arcs,e?e.reduce((function(t,e){return t.concat(x(e,0))}),[]):[]),depth:d+1};var e}},6788:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=Object.freeze({"<-":"->","<=":"=>","<<=":"=>>","<<":">>","<:":":>","x-":"-x"});e.default=function(t){return r[t]||t}},3498:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){return Object.assign({wordwraparcs:!1,wordwrapentities:!0,wordwrapboxes:!0},t||{})}},9370:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={LINE_WIDTH:2,FONT_SIZE:12}},4420:function(t,e,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(t,e,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(e,r);o&&!("get"in o?!e.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,o)}:function(t,e,r,n){void 0===n&&(n=r),t[n]=e[r]}),o=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),i=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var r in t)"default"!==r&&Object.prototype.hasOwnProperty.call(t,r)&&n(e,t,r);return o(e,t),e},a=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.Thing=void 0;var c=a(r(9370)),u=i(r(4772)),s=i(r(8912)),l=i(r(2314)),f=function(){function t(t){this.interEntitySpacing=160,this.height=34,this.width=100,this.entityXHWM=0,this.entity2x={},t&&(this.interEntitySpacing=160*t,this.width=100*t)}return t.prototype.getX=function(t){return this.entity2x[t]},t.prototype.getDims=function(){return{interEntitySpacing:this.interEntitySpacing,height:this.height,width:this.width,entityXHWM:this.entityXHWM}},t.prototype.getOAndD=function(t,e){return{from:this.getX(t)this.getX(t)?this.getX(e):this.getX(t)}},t.prototype.renderEntities=function(t,e,r){var n=this,o=s.createGroup();return this.entityXHWM=0,this.height=this.getMaxEntityHeight(t,r)+2*c.default.LINE_WIDTH,t.forEach((function(t){o.appendChild(n.renderEntity(t,n.entityXHWM,e,r)),n.setX(t,n.entityXHWM),n.entityXHWM+=n.interEntitySpacing})),o},t.prototype.setX=function(t,e){this.entity2x[t.name]=e+this.width/2},t.prototype.getNoEntityLines=function(t,e,r){return u.splitLabel(t,"entity",this.width,e,r).length},t.prototype.sizeEntityBoxToLabel=function(t,e){var r=Math.min(l.getBBox(t).width+4*c.default.LINE_WIDTH,this.interEntitySpacing/3+e.width);return r>=e.width&&(e.x-=(r-e.width)/2,e.width=r),e},t.prototype.renderEntity=function(t,e,r,n){var o=s.createGroup(),i={x:e||0,y:r||0,width:this.width,height:this.height},a=u.createLabel(Object.assign({kind:"entity"},t),Object.assign({},i,{y:i.y+i.height/2}),n);return o.appendChild(s.createRect(this.sizeEntityBoxToLabel(a,i),{class:"entity",color:t.linecolor,bgColor:t.textbgcolor})),o.appendChild(a),o},t.prototype.getMaxEntityHeight=function(t,e){var r=this,n=t[0],o=2;return t.forEach((function(t){var i=r.getNoEntityLines(t.label,c.default.FONT_SIZE,e);i>o&&(o=i,n=t)})),o>2?Math.max(this.height,l.getBBox(this.renderEntity(n,0,0,e)).height):this.height},t}();e.Thing=f},5871:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.setPrefix=function(t){n=r+t},e.get=function(t){return n+(t||"")};var r="mscgenjs",n=r},8475:function(t,e,r){"use strict";var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.getClass=function(t){return i[t]||t},e.getAggregateClass=function(t){return(0,o.default)(t)||t};var o=n(r(7796)),i=Object.freeze({"|||":"empty-row","...":"omitted-row","---":"comment-row","->":"signal","=>":"method","=>>":"callback",">>":"return",":>":"emphasised","-x":"lost","<-":"signal","<=":"method","<<=":"callback","<<":"return","<:":"emphasised","x-":"lost","<->":"signal","<=>":"method","<<=>>":"callback","<<>>":"return","<:>":"emphasised","--":"signal","==":"method","..":"return","::":"emphasised"})},7598:function(t,e,r){"use strict";var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.getAttributes=function(t,e,r,n,o){var a=[];return i[e]&&i[e].attributes&&(a=i[e].attributes.map((function(i){return{name:i.name,value:i.value.replace(/\{\{signal-marker-end\}\}/g,c(e,n,o)).replace(/\{\{signal-marker-start\}\}/g,u(e,n,o)).replace(/\{\{id\}\}/g,t).replace(/\{\{color\}\}/g,r||"black")}}))),a},e.getMarkerDefs=function(t,e){return function(t){return t.arcs.reduce(l,[]).sort().map(f)}(e).map((function(e){return a[e.kind].variants.map((function(r){return{name:"".concat(t+e.kind+r.name,"-").concat(e.color),path:r.path,color:e.color,type:e.kind}}))})).flat(1/0)};var o=n(r(6788)),i={"->":{attributes:[{name:"style",value:"stroke:{{color}}"},{name:"marker-end",value:"url(#{{id}}{{signal-marker-end}}-{{color}})"}],marker:{name:"signal"}},"<->":{attributes:[{name:"style",value:"stroke:{{color}}"},{name:"marker-end",value:"url(#{{id}}{{signal-marker-end}}-{{color}})"},{name:"marker-start",value:"url(#{{id}}{{signal-marker-start}}-{{color}})"}],marker:{name:"signal"}},"=>>":{attributes:[{name:"style",value:"stroke:{{color}}"},{name:"marker-end",value:"url(#{{id}}callback-{{color}})"}],marker:{name:"callback",end:""}},"<<=>>":{attributes:[{name:"style",value:"stroke:{{color}}"},{name:"marker-end",value:"url(#{{id}}callback-{{color}})"},{name:"marker-start",value:"url(#{{id}}callback-l-{{color}})"}],marker:{name:"callback",end:"",start:"-l"}},">>":{attributes:[{name:"style",value:"stroke:{{color}}"},{name:"marker-end",value:"url(#{{id}}callback-{{color}})"}],marker:{name:"callback",end:""}},"<<>>":{attributes:[{name:"style",value:"stroke:{{color}}"},{name:"marker-end",value:"url(#{{id}}callback-{{color}})"},{name:"marker-start",value:"url(#{{id}}callback-l-{{color}})"}],marker:{name:"callback",end:"",start:"-l"}},"..":{attributes:[{name:"style",value:"stroke:{{color}}"}]},"--":{attributes:[{name:"style",value:"stroke:{{color}}"}]},"==":{attributes:[{name:"style",value:"stroke:{{color}}"}]},"::":{attributes:[{name:"style",value:"stroke:{{color}}"}]},"=>":{attributes:[{name:"style",value:"stroke:{{color}}"},{name:"marker-end",value:"url(#{{id}}method-{{color}})"}],marker:{name:"method",end:""}},"<=>":{attributes:[{name:"style",value:"stroke:{{color}}"},{name:"marker-end",value:"url(#{{id}}method-{{color}})"},{name:"marker-start",value:"url(#{{id}}method-l-{{color}})"}],marker:{name:"method",end:"",start:"-l"}},":>":{attributes:[{name:"style",value:"stroke:{{color}};"},{name:"marker-end",value:"url(#{{id}}method-{{color}})"}],marker:{name:"method",end:""}},"<:>":{attributes:[{name:"style",value:"stroke:{{color}}"},{name:"marker-end",value:"url(#{{id}}method-{{color}})"},{name:"marker-start",value:"url(#{{id}}method-l-{{color}})"}],marker:{name:"method",end:"",start:"-l"}},"-x":{attributes:[{name:"style",value:"stroke:{{color}}"},{name:"marker-end",value:"url(#{{id}}lost-{{color}})"}],marker:{name:"lost",end:""}}},a={signal:{variants:[{name:"",path:"M9,3 l-8, 2"},{name:"-u",path:"M9,3 l-8,-2"},{name:"-l",path:"M9,3 l 8, 2"},{name:"-lu",path:"M9,3 l 8,-2"}]},method:{variants:[{name:"",path:"1,1 9,3 1,5"},{name:"-l",path:"17,1 9,3 17,5"}]},callback:{variants:[{name:"",path:"M 1,1 l 8,2 l-8,2"},{name:"-l",path:"M17,1 l-8,2 l 8,2"}]},lost:{variants:[{name:"",path:"M7,0 l5,6 M7,6 l5,-6"}]}};function c(t,e,r){return e&&r&&["<->","->"].includes(t)?e"===t&&e<=r?"signal-l":"signal-lu"}function s(t,e){return i[(0,o.default)(t)].marker.name+(Boolean(e)?" "+e:" black")}function l(t,e){function r(e){l(t,e)}return Array.isArray(e)&&e.forEach(r),e.arcs&&e.arcs.forEach(r),e.kind&&i[(0,o.default)(e.kind)]&&i[(0,o.default)(e.kind)].marker&&!t.includes(s(e.kind,e.linecolor))&&t.push(s(e.kind,e.linecolor)),t}function f(t){return{kind:t.split(" ")[0],color:t.split(" ")[1]}}},939:function(t,e,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(t,e,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(e,r);o&&!("get"in o?!e.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,o)}:function(t,e,r,n){void 0===n&&(n=r),t[n]=e[r]}),o=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),i=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var r in t)"default"!==r&&Object.prototype.hasOwnProperty.call(t,r)&&n(e,t,r);return o(e,t),e},a=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.clean=void 0,e.render=function(t,e,r,n){var o=Object.freeze((0,u.flatten)(t)),i=function(t,e){return t.document.getElementById(e)||t.document.body}(e,r);return f.setPrefix(r),function(t,e,r,n){var o;A.document=g.bootstrap(e,r,f.get(),p.getMarkerDefs(f.get(),t),n),A.mirrorEntitiesOnBottom=n.mirrorEntitiesOnBottom,A.regularArcTextVerticalAlignment=n.regularArcTextVerticalAlignment,v.init(A.document),A.layers={lifeline:(o=A.document).getElementById(f.get("_lifelines")),sequence:o.getElementById(f.get("_sequence")),notes:o.getElementById(f.get("_notes")),inline:o.getElementById(f.get("_arcspans")),watermark:o.getElementById(f.get("_watermark"))},A.maxDepth=t.depth,function(t,e){x=new l.Thing(e&&e.hscale),function(t,e){t.arcRowHeight=_,t.arcGradient=C,t.wordWrapArcs=!1,e.arcgradient&&(t.arcRowHeight=parseInt(e.arcgradient,10)+_,t.arcGradient=parseInt(e.arcgradient,10)+C),t.wordWrapArcs=Boolean(e.wordwraparcs)}(t,e)}(A,t.options)}(o,e,i,n||{}),function(t){var e,r,n;S(t.entities,0,t.options),y.clear(x.getDims().height,A.arcRowHeight),function(t,e,r){O=[],P(e,"arcrow",A.arcRowHeight,y.get(-1).y).forEach((function(t){A.layers.lifeline.appendChild(t)})),function(t,e,r){var n=0;t.forEach((function(t,o){t.every((function(t){return t.isVirtual}))?y.set(o,Math.max(y.get(o).height,k(t,e,r))):(y.set(o,Math.max(y.get(o).height,k(t,e,r)),n),n++)}))}(t,e,r),t.forEach((function(t,n){!function(t,e,r,n){var o="arcrow",i=[];t.forEach((function(t){var a={};switch((0,c.default)(t.kind)){case"empty":a=E(t,y.get(e).y),"..."===t.kind&&(o="arcrowomit"),i.push({layer:A.layers.sequence,element:a});break;case"box":a=D(x.getOAndD(t.from,t.to),t,y.get(e).y,n),i.push({title:t.title,layer:A.layers.notes,element:a});break;case"inline_expression":a=L(t,y.get(e).y),i.push({layer:A.layers.notes,element:a}),O.push({arc:t,rownum:e});break;default:a=j(t,r,i,e,n)}})),P(r,o,y.get(e).height,y.get(e).y).forEach((function(t){A.layers.lifeline.appendChild(t)})),i.forEach((function(t){t.element&&(t.title&&t.element.appendChild(m.createTitle(t.title)),t.layer.appendChild(t.element))}))}(t,n,e,r)})),O.forEach((function(t){var e,r,n,o;A.layers.inline.appendChild((e=t,r=y.get(t.rownum).y,n=y.get(e.rownum).y,o=y.get(e.rownum+e.arc.numberofrows+1).y-n,e.arc.label="",function(t,e,r,n){var o=2*A.maxDepth*s.default.LINE_WIDTH,i=t.to-t.from+x.getDims().interEntitySpacing-2*s.default.LINE_WIDTH-o,a=t.from-(x.getDims().interEntitySpacing-2*s.default.LINE_WIDTH-o)/2,c=2*(A.maxDepth-e.depth)*s.default.LINE_WIDTH;return m.createRect({width:i+2*c,height:r||A.arcRowHeight-2*s.default.LINE_WIDTH,x:a-c,y:n},{class:"box inline_expression ".concat(e.kind),color:e.linecolor,bgColor:e.textbgcolor})}(x.getOAndD(e.arc.from,e.arc.to),e.arc,o,r)))}))}(t.arcs,t.entities,t.options),A.mirrorEntitiesOnBottom&&(e=t.entities,r=t.options,n=y.getLast().y+(y.getLast().height+A.arcRowHeight)/2,P(e,"arcrow",A.arcRowHeight,n).forEach((function(t){A.layers.lifeline.appendChild(t)})),S(e,n+A.arcRowHeight/2,r))}(o),function(t){var e,r,n=function(t){var e=b.determineDepthCorrection(t.depth,s.default.LINE_WIDTH),r=y.getLast(),n={width:t.entities.length*x.getDims().interEntitySpacing+e,height:Boolean(A.mirrorEntitiesOnBottom)?2*x.getDims().height+r.y+r.height+2*w:r.y+r.height/2+2*w,horizontaltransform:(x.getDims().interEntitySpacing+e-x.getDims().width)/2,autoscale:!!t.options&&!!t.options.width&&"auto"===t.options.width,verticaltransform:w,scale:1};return n.x=0-n.horizontaltransform,n.y=0-n.verticaltransform,n}(t);e=n,(r=A.document.getElementById(f.get("_background")))&&r.appendChild(m.createRect(e,{class:"bglayer"})),function(t){var e=A.document.getElementById(f.get()),r=A.document.getElementById(f.get("_body"));r&&e&&(r.setAttribute("transform","translate(".concat(t.horizontaltransform,",").concat(t.verticaltransform,") ")+"scale(".concat(t.scale,",").concat(t.scale,")")),t.autoscale&&!0===t.autoscale?m.updateSVG(e,{width:"100%",height:"100%",viewBox:"0 0 ".concat(t.width.toString()," ").concat(t.height.toString())}):m.updateSVG(e,{width:t.width.toString(),height:t.height.toString(),viewBox:"0 0 ".concat(t.width.toString()," ").concat(t.height.toString())}))}(n=function(t,e){return t.watermark&&function(t,e){A.layers.watermark.appendChild(m.createDiagonalText(t,e,"watermark"))}(t.watermark,e),t.width&&"auto"!==t.width&&(e=b.scaleCanvasToWidth(t.width,e)),e}(t.options,n))}(o),v.webkitNamespaceBugWorkaround(i.innerHTML)};var c=a(r(7796)),u=r(7635),s=a(r(9370)),l=r(4420),f=i(r(5871)),d=i(r(8475)),p=i(r(7598)),h=i(r(4772)),g=i(r(8780)),b=i(r(8340)),y=i(r(416)),m=i(r(8912)),v=i(r(2314)),x=new l.Thing(0),w=3,_=38,C=0,A=Object.seal({arcRowHeight:_,arcGradient:C,arcEndX:0,wordWrapArcs:!1,mirrorEntitiesOnBottom:!1,regularArcTextVerticalAlignment:"middle",maxDepth:0,document:{},layers:{lifeline:{},sequence:{},notes:{},inline:{},watermark:{}}}),O=[];function S(t,e,r){A.layers.sequence.appendChild(x.renderEntities(t,e,r)),A.arcEndX=x.getDims().entityXHWM-x.getDims().interEntitySpacing+x.getDims().width}function j(t,e,r,n,o){var i=m.createGroup();return t.from&&t.to&&("*"===t.to?(function(t,e,r,n,o){var i=0,a=t.label,c=x.getX(t.from);t.label="",e.forEach((function(e){var a={};e.name!==t.from&&(i=x.getX(e.name),a=T(t,c,i,n,o),r.push({layer:A.layers.sequence,element:a}))})),t.label=a}(t,e,r,n,o),i=h.createLabel(t,{x:0,y:y.get(n).y,width:A.arcEndX},Object.assign({alignAround:!0,ownBackground:!0},structuredClone(o))),r.push({title:t.title,layer:A.layers.sequence,element:i})):(i=T(t,x.getX(t.from),x.getX(t.to),n,o),r.push({title:t.title,layer:A.layers.sequence,element:i}))),i}function k(t,e,r){var n=0;return t.forEach((function(t){var o;switch((0,c.default)(t.kind)){case"empty":o=E(t,0);break;case"box":o=D(x.getOAndD(t.from,t.to),t,0,r);break;case"inline_expression":o=L(t,0);break;default:var i=structuredClone(t);i.arcskip=0,o=j(i,e,[],0,r)}n=Math.max(n,v.getBBox(o).height+2*s.default.LINE_WIDTH)})),n}function L(t,e){var r=x.getOAndD(t.from,t.to),n=e>0,o=2*A.maxDepth*s.default.LINE_WIDTH,i=r.to-r.from+(x.getDims().interEntitySpacing-2*s.default.LINE_WIDTH)-7-s.default.LINE_WIDTH,a=r.from-(x.getDims().interEntitySpacing-3*s.default.LINE_WIDTH-o)/2-2*(A.maxDepth-t.depth)*s.default.LINE_WIDTH,c=m.createGroup();n||(t.label=t.kind+(t.label?": "+t.label:""));var u=h.createLabel(t,{x:a+s.default.LINE_WIDTH-i/2,y:e+A.arcRowHeight/4,width:i},{alignLeft:!0,ownBackground:!1,wordwraparcs:A.wordWrapArcs}),l=v.getBBox(u),f=Math.max(l.height+2*s.default.LINE_WIDTH,A.arcRowHeight/2-2*s.default.LINE_WIDTH),d=Math.min(l.width+2*s.default.LINE_WIDTH,i),p=m.createEdgeRemark({width:d-s.default.LINE_WIDTH+7,height:f,x:a,y:e},{class:"box inline_expression_label",color:t.linecolor,bgColor:t.textbgcolor,foldSize:7});return c.appendChild(p),c.appendChild(u),c}function P(t,e,r,n){return r","::","<:>"].includes(t.kind),l=function(t,e,r){var n=y.get(t).y+e;if(r){var o=Math.floor(r),i=r-o,a=y.get(t).realRowNumber;n=y.getByRealRowNumber(a+o).y+i*(y.getByRealRowNumber(a+o+1).y-y.getByRealRowNumber(a+o).y)}return n}(n,A.arcGradient,t.arcskip);if(e===(r=b.determineArcXTo(t.kind,e,r))){a.appendChild(function(t,e,r,n,o,i){var a=A.arcRowHeight/5*2,c=x.getDims().interEntitySpacing/2,u={},l="arc ".concat(d.getAggregateClass(t)," ").concat(d.getClass(t));if(n){u=m.createGroup();var h=m.createUTurn({x:e,y:o,width:c-2*s.default.LINE_WIDTH,height:a},o+r+a-2*s.default.LINE_WIDTH,{class:l,dontHitHome:"::"!==t,lineWidth:s.default.LINE_WIDTH}),g=m.createUTurn({x:e,y:o,width:c,height:a},o+r+a-s.default.LINE_WIDTH,{lineWidth:s.default.LINE_WIDTH}),b=m.createUTurn({x:e,y:o,width:c,height:a},o+r+a,{class:l,dontHitHome:"::"!==t,lineWidth:s.default.LINE_WIDTH});i&&h.setAttribute("style","stroke:".concat(i)),p.getAttributes(f.get(),t,i,e,e).forEach((function(t){g.setAttribute(t.name,t.value)})),g.setAttribute("style","stroke:transparent;"),Boolean(i)&&b.setAttribute("style","stroke:".concat(i)),u.appendChild(h),u.appendChild(b),u.appendChild(g),u.setAttribute("class",l)}else u=m.createUTurn({x:e,y:o,width:c,height:a},o+r+a,{class:l,dontHitHome:"-x"===t,lineWidth:s.default.LINE_WIDTH}),p.getAttributes(f.get(),t,i,e,e).forEach((function(t){u.setAttribute(t.name,t.value)}));return u}(t.kind,e,l-y.get(n).y-A.arcGradient,u,y.get(n).y,t.linecolor));var g=2*x.getDims().interEntitySpacing/3;a.appendChild(h.createLabel(t,{x:e+1.5*s.default.LINE_WIDTH-g/2,y:y.get(n).y-A.arcRowHeight/5-s.default.LINE_WIDTH/2,width:g},Object.assign({alignLeft:!0,alignAbove:!0,ownBackground:!0},structuredClone(o))))}else{var v=m.createLine({xFrom:e,yFrom:y.get(n).y,xTo:r,yTo:l},{class:c,doubleLine:u});p.getAttributes(f.get(),t.kind,t.linecolor,e,r).forEach((function(t){v.setAttribute(t.name,t.value)})),a.appendChild(v),a.appendChild(h.createLabel(t,{x:e,y:y.get(n).y+(l-y.get(n).y)/2,width:r-e},Object.assign({alignAround:!0,alignAbove:"above"===A.regularArcTextVerticalAlignment,ownBackground:!0},structuredClone(o))))}return a}function M(t,e,r){var n=0,o=A.arcEndX;return t.from&&t.to&&(n=e.from,o=e.to-e.from),h.createLabel(t,{x:n,y:r,width:o},{ownBackground:!0,wordwraparcs:A.wordWrapArcs})}function D(t,e,r,n){var o,i=2*A.maxDepth*s.default.LINE_WIDTH,a=t.to-t.from+x.getDims().interEntitySpacing-2*s.default.LINE_WIDTH-i,c=t.from-(x.getDims().interEntitySpacing-2*s.default.LINE_WIDTH-i)/2,u=m.createGroup(),l=h.createLabel(e,{x:c,y:r,width:a},n),f=v.getBBox(l),d=Math.max(f.height+2*s.default.LINE_WIDTH,A.arcRowHeight-2*s.default.LINE_WIDTH),p={width:a,height:d,x:c,y:r-d/2};switch(e.kind){case"rbox":o=m.createRBox(p,{class:"box rbox",color:e.linecolor,bgColor:e.textbgcolor});break;case"abox":o=m.createABox(p,{class:"box abox",color:e.linecolor,bgColor:e.textbgcolor});break;case"note":o=m.createNote(p,{class:"box note",color:e.linecolor,bgColor:e.textbgcolor,lineWidth:s.default.LINE_WIDTH});break;default:o=m.createRect(p,{class:"box",color:e.linecolor,bgColor:e.textbgcolor})}return u.appendChild(o),u.appendChild(l),u}e.clean=function(t,e){A.document=g.init(e),v.init(A.document),v.removeRenderedSVGFromElement(t)}},4772:function(t,e,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(t,e,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(e,r);o&&!("get"in o?!e.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,o)}:function(t,e,r,n){void 0===n&&(n=r),t[n]=e[r]}),o=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),i=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var r in t)"default"!==r&&Object.prototype.hasOwnProperty.call(t,r)&&n(e,t,r);return o(e,t),e},a=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.createLabel=function(t,e,r,n){var o=f.createGroup(n);if(r=r||{},t.label){var i=e.x+e.width/2,a=function(t,e){return e.alignAbove&&t.forEach((function(){t.push("")})),e.alignAround&&1===t.length&&t.push(""),t}(h(t.label,t.kind,e.width,s.default.FONT_SIZE,r),r),c=function(t,e,r){return r.alignAround?e.y-(t.length-1)/2*(d.calculateTextHeight()+s.default.LINE_WIDTH+1):e.y-(t.length-1)/2*(d.calculateTextHeight()+1)}(a,e,r);a.forEach((function(e,n){if(""!==e){var a=function(t,e,r,n,o,i){var a,c,u,h=r+(o+1/4)*d.calculateTextHeight(),g=function(t,e){var r=t,n=l.getClass(r),o=l.getAggregateClass(r);return n===o?n+e:o+e+n+e}(n.kind,"-text ");return i.alignLeft&&(g+="anchor-start "),i.alignAround&&(h=r+(o+1/4)*(d.calculateTextHeight()+s.default.LINE_WIDTH)),a=p(function(t,e,r,n,o){var i=0===e?{class:n,url:o.url,id:o.id,idurl:o.idurl}:{class:n,url:o.url};return f.createText(t,r,i)}(t,o,{x:e,y:h},g,n),n.textcolor),c=n.url,u=n.textcolor,p(a,c&&!u?"blue":u)}(e,i,c,t,n,r);r.ownBackground&&o.appendChild((u=a,h=t.textbgcolor,g=f.createRect(d.getBBox(u),{class:"label-text-background"}),h&&g.setAttribute("style","fill:".concat(h,"; stroke:").concat(h,";")),g)),o.appendChild(a)}var u,h,g;c++}))}return o},e.splitLabel=h;var c=a(r(7796)),u=a(r(2900)),s=a(r(9370)),l=i(r(8475)),f=i(r(8912)),d=i(r(2314));function p(t,e){return e&&t.setAttribute("style","fill:".concat(e,";")),t}function h(t,e,r,n,o){return function(t,e){return function(t,e){return"box"===(0,c.default)(t)&&e}(t,e.wordwrapboxes)||function(t,e){return"entity"===t&&e}(t,e.wordwrapentities)||function(t,e){return"box"!==(0,c.default)(t)&&"entity"!==t&&e}(t,e.wordwraparcs)||void 0===t}(e,o)?(0,u.default)(t,function(t,e){var r=Math.abs(t);return r<=160?r/(e/12*8):r<=320?r/(e/12*6.4):r<=480?r/(e/12*5.9):r/(e/12*5.6)}(r,n)):t.split("\\n")}},8780:function(t,e,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(t,e,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(e,r);o&&!("get"in o?!e.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,o)}:function(t,e,r,n){void 0===n&&(n=r),t[n]=e[r]}),o=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),i=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var r in t)"default"!==r&&Object.prototype.hasOwnProperty.call(t,r)&&n(e,t,r);return o(e,t),e},a=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.init=f,e.bootstrap=function(t,e,r,n,o){l=f(t);var i,a,p=c.createSVG(r,r,function(t){var e="",r=d(t.additionalTemplate);return Boolean(r)&&(e=r.renderMagic),e}(o));return Boolean(o.source)&&p.appendChild(function(t,e){var r=c.createDesc();return r.appendChild(t.document.createTextNode("\n\n# Generated by mscgen_js - https://sverweij.github.io/mscgen_js\n".concat(e))),r}(t,o.source)),p.appendChild(function(t,e,r){var n=c.createDefs();return n.appendChild(function(t,e){var r=l.createElement("style");return r.setAttribute("type","text/css"),r.appendChild(l.createTextNode(function(t,e){return(r=d(t.additionalTemplate)||{},n=t.styleAdditions,(r.cssBefore||"")+s.baseTemplate+(r.cssAfter||"")+(n||"")).replace(/<%=fontSize%>/g,u.default.FONT_SIZE).replace(/<%=lineWidth%>/g,u.default.LINE_WIDTH).replace(/<%=id%>/g,e);var r,n}(t,e))),r}(r,t)),function(t,e){return e.forEach((function(e){"method"===e.type?t.appendChild(c.createMarkerPolygon(e.name,e.path,e.color)):t.appendChild(c.createMarkerPath(e.name,e.path,e.color))})),t}(n,e)}(r,n,o)),p.appendChild((i=r,(a=c.createGroup("".concat(i,"_body"))).appendChild(c.createGroup("".concat(i,"_background"))),a.appendChild(c.createGroup("".concat(i,"_arcspans"))),a.appendChild(c.createGroup("".concat(i,"_lifelines"))),a.appendChild(c.createGroup("".concat(i,"_sequence"))),a.appendChild(c.createGroup("".concat(i,"_notes"))),a.appendChild(c.createGroup("".concat(i,"_watermark"))),a)),e.appendChild(p),l};var c=i(r(8912)),u=a(r(9370)),s=r(2006),l={};function f(t){return c.init(t.document,{LINE_WIDTH:u.default.LINE_WIDTH,FONT_SIZE:u.default.FONT_SIZE}),t.document}function d(t){return s.namedStyles.find((function(e){return e.name===t}))}},8340:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.scaleCanvasToWidth=function(t,e){var r=structuredClone(e);return r.scale=t/r.width,r.width*=r.scale,r.height*=r.scale,r.horizontaltransform*=r.scale,r.verticaltransform*=r.scale,r.x=0-r.horizontaltransform,r.y=0-r.verticaltransform,r},e.determineDepthCorrection=function(t,e){return t?2*(t+1)*e*2:0},e.determineArcXTo=function(t,e,r){return"-x"===t?e+3/4*(r-e):r}},416:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.get=i,e.getLast=a,e.clear=function(t,e){r=[],n=t,o=e},e.getByRealRowNumber=function(t){var e=r.find((function(e){return e.realRowNumber===t}));return void 0===e&&(e=a()),e},e.set=function(t,e,n){void 0===n&&(n=-1);var o=i(t-1);r[t]={y:o.y+(o.height+e)/2,height:e,realRowNumber:n}};var r=[],n=0,o=0;function i(t){return r[t]?r[t]:{y:n+1.5*o+t*o,height:o,realRowNumber:r.length-1}}function a(){return i(r.length-1)}},7706:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.XLINKNS=e.SVGNS=void 0,e.setAttribute=n,e.setAttributeNS=o,e.setAttributes=i,e.setAttributesNS=function(t,e,r){return Object.keys(r||{}).forEach((function(n){o(t,e,n,r[n])})),t},e.createElement=function(t,n){return i(r.createElementNS(e.SVGNS,t),n)},e.createTextNode=function(t){return r.createTextNode(t)},e.init=function(t){r=t},e.SVGNS="http://www.w3.org/2000/svg",e.XLINKNS="http://www.w3.org/1999/xlink";var r={};function n(t,e,r){return Boolean(r)&&t.setAttribute(e,r),t}function o(t,e,r,n){return Boolean(n)&&t.setAttributeNS(e,r,n),t}function i(t,e){return Object.keys(e||{}).forEach((function(r){n(t,r,e[r])})),t}},424:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){return 0-360*Math.atan(t.height/t.width)/(2*Math.PI)}},8912:function(t,e,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(t,e,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(e,r);o&&!("get"in o?!e.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,o)}:function(t,e,r,n){void 0===n&&(n=r),t[n]=e[r]}),o=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),i=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var r in t)"default"!==r&&Object.prototype.hasOwnProperty.call(t,r)&&n(e,t,r);return o(e,t),e};Object.defineProperty(e,"__esModule",{value:!0}),e.createMarkerPolygon=e.createMarkerPath=e.createGroup=e.createUTurn=e.createDiagonalText=e.createText=e.createNote=e.createABox=e.createRBox=e.createRect=e.createTSpan=e.createDefs=e.createDesc=e.createTitle=e.updateSVG=void 0,e.init=function(t,e){c.init(t),l=Object.assign({LINE_WIDTH:2,FONT_SIZE:12},e)},e.createSVG=function(t,e,r){return s=function(t){return Boolean(t)?"wobbly"===t?u:a:s}(r),c.createSVG(t,e)},e.createEdgeRemark=function(t,e){return s.createEdgeRemark(t,{class:e.class,color:e.color,bgColor:e.bgColor,foldSize:e.foldSize,lineWidth:l.LINE_WIDTH})},e.createLine=function(t,e){return Boolean(e)&&Boolean(e.doubleLine)?(e.lineWidth||(e.lineWidth=l.LINE_WIDTH),s.createDoubleLine(t,e)):s.createSingleLine(t,e)};var a=i(r(5767)),c=i(r(9452)),u=i(r(6180)),s=a,l={};e.updateSVG=c.updateSVG,e.createTitle=c.createTitle,e.createDesc=c.createDesc,e.createDefs=c.createDefs,e.createTSpan=c.createTSpan,e.createRect=function(t,e){return s.createRect(t,e)},e.createRBox=function(t,e){return s.createRBox(t,e)},e.createABox=function(t,e){return s.createABox(t,e)},e.createNote=function(t,e){return s.createNote(t,e)},e.createText=c.createText,e.createDiagonalText=c.createDiagonalText,e.createUTurn=c.createUTurn,e.createGroup=c.createGroup,e.createMarkerPath=c.createMarkerPath,e.createMarkerPolygon=c.createMarkerPolygon},3136:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){return e?Math.round(t*Math.pow(10,e))/Math.pow(10,e):Math.round(t)}},5767:function(t,e,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(t,e,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(e,r);o&&!("get"in o?!e.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,o)}:function(t,e,r,n){void 0===n&&(n=r),t[n]=e[r]}),o=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),i=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var r in t)"default"!==r&&Object.prototype.hasOwnProperty.call(t,r)&&n(e,t,r);return o(e,t),e};Object.defineProperty(e,"__esModule",{value:!0}),e.createRect=e.createSingleLine=void 0,e.createDoubleLine=function(t,e){var r=e.lineWidth||1,n=r,o=e?e.class:"",i=c.getDirection(t),u=c.determineEndCorrection(t,o,r),s=c.determineStartCorrection(t,o,r),l=(t.xTo-t.xFrom+u-s).toString(),f=(t.yTo-t.yFrom).toString(),d=a.pathPoint2String("l",i.signX,i.dy),p=a.pathPoint2String("l",l,f);return a.createPath(a.pathPoint2String("M",t.xFrom,t.yFrom-7.5*r*i.dy)+d+a.pathPoint2String("M",t.xFrom+s,t.yFrom-n)+p+a.pathPoint2String("M",t.xFrom+s,t.yFrom+n)+p+a.pathPoint2String("M",t.xTo-i.signX,t.yTo+7.5*r*i.dy)+d,e)},e.createNote=function(t,e){var r=e&&e.lineWidth||1,n=Math.max(9,Math.min(4.5*r,t.height/2)),o=n.toString(10);return a.createPath(a.pathPoint2String("M",t.x,t.y)+a.pathPoint2String("l",t.width-n,0)+a.pathPoint2String("l",0,o)+a.pathPoint2String("l",o,0)+a.pathPoint2String("m",-o,-o)+a.pathPoint2String("l",o,o)+a.pathPoint2String("l",0,t.height-n)+a.pathPoint2String("l",-t.width,0)+a.pathPoint2String("l",0,-t.height)+"z",e)},e.createRBox=function(t,e){var r=Object.assign({rx:6,ry:6},e);return a.createRect(t,r)},e.createABox=function(t,e){return a.createPath(a.pathPoint2String("M",t.x,t.y+t.height/2)+a.pathPoint2String("l",3,-t.height/2)+a.pathPoint2String("l",t.width-6,0)+a.pathPoint2String("l",3,t.height/2)+a.pathPoint2String("l",-3,t.height/2)+a.pathPoint2String("l",-(t.width-6),0)+"z",e)},e.createEdgeRemark=function(t,e){var r=e&&e.foldSize?e.foldSize:7,n=Object.assign({class:null,color:null,bgColor:null},e);return a.createPath(a.pathPoint2String("M",t.x,t.y)+a.pathPoint2String("l",t.width,0)+a.pathPoint2String("l",0,t.height-r)+a.pathPoint2String("l",-r,r)+a.pathPoint2String("l",-(t.width-r),0),n)};var a=i(r(9452)),c=i(r(7544));e.createSingleLine=a.createSingleLine,e.createRect=a.createRect},9452:function(t,e,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(t,e,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(e,r);o&&!("get"in o?!e.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,o)}:function(t,e,r,n){void 0===n&&(n=r),t[n]=e[r]}),o=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),i=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var r in t)"default"!==r&&Object.prototype.hasOwnProperty.call(t,r)&&n(e,t,r);return o(e,t),e},a=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.updateSVG=e.init=void 0,e.point2String=f,e.pathPoint2String=d,e.createTSpan=g,e.createText=b,e.createPath=y,e.createSingleLine=function(t,e){return c.createElement("line",{x1:(0,s.default)(t.xFrom,l).toString(),y1:(0,s.default)(t.yFrom,l).toString(),x2:(0,s.default)(t.xTo,l).toString(),y2:(0,s.default)(t.yTo,l).toString(),class:e?e.class:null})},e.createRect=function(t,e){var r=Object.assign({class:null,color:null,bgColor:null,rx:null,ry:null},e);return m(c.createElement("rect",{width:(0,s.default)(t.width,l),height:(0,s.default)(t.height,l),x:(0,s.default)(t.x,l),y:(0,s.default)(t.y,l),rx:(0,s.default)(r.rx||0,l),ry:(0,s.default)(r.ry||0,l),class:r.class}),r.color,r.bgColor)},e.createUTurn=function(t,e,r){var n=Object.assign({class:null,dontHitHome:!1,lineWidth:1},r),o=n.dontHitHome?t.x+7.5*(n.lineWidth||1):t.x;return y(d("M",t.x,t.y-t.height/2)+d("C",t.x+t.width,t.y-7.5*(n.lineWidth||1)/2)+f({x:t.x+t.width,y:e+0})+f({x:o,y:e}),{class:n.class})},e.createGroup=function(t,e){return c.createElement("g",{id:t,class:e})},e.createMarkerPath=function(t,e,r){var n=p(t,"arrow-marker","auto");return n.appendChild(y(e,{class:"arrow-style",style:"stroke-dasharray:100,1;stroke:".concat(r)||0})),n},e.createMarkerPolygon=function(t,e,r){var n=p(t,"arrow-marker","auto");return n.appendChild(c.createElement("polygon",{points:e,class:"arrow-style",stroke:r||"black",fill:r||"black"})),n},e.createTitle=function(t){var e=c.createElement("title"),r=c.createTextNode(t);return e.appendChild(r),e},e.createDiagonalText=function(t,e,r){return c.setAttributes(b(t,{x:e.width/2,y:e.height/2},{class:r}),{transform:"rotate(".concat((0,s.default)((0,u.default)(e),l).toString()," ")+"".concat((0,s.default)(e.width/2,l).toString()," ")+"".concat((0,s.default)(e.height/2,l).toString(),")")})},e.createDesc=function(){return c.createElement("desc")},e.createDefs=function(){return c.createElement("defs")},e.createSVG=function(t,e){return c.createElement("svg",{version:"1.1",id:t,class:e,xmlns:c.SVGNS,"xmlns:xlink":c.XLINKNS,width:"0",height:"0"})};var c=i(r(7706)),u=a(r(424)),s=a(r(3136)),l=2;function f(t){return"".concat((0,s.default)(t.x,l).toString(),",").concat((0,s.default)(t.y,l).toString()," ")}function d(t,e,r){return t+f({x:e,y:r})}function p(t,e,r,n){return c.createElement("marker",{orient:r,id:t,class:e,viewBox:Boolean(n)?n:"0 0 10 10",refX:"9",refY:"3",markerUnits:"strokeWidth",markerWidth:"10",markerHeight:"10"})}var h="vertical-align:text-top;";function g(t,e){var r=c.createElement("tspan"),n=c.createTextNode(t);return r.appendChild(n),e?function(t,e){var r=c.createElement("a");return c.setAttributesNS(r,c.XLINKNS,{"xlink:href":t,"xlink:title":t}),r.appendChild(e),r}(e,r):r}function b(t,e,r){var n=Object.assign({class:null,url:null,id:null,idurl:null},r),o=c.createElement("text",{x:(0,s.default)(e.x,l).toString(),y:(0,s.default)(e.y,l).toString(),class:n.class});if(o.appendChild(g(t,n.url)),n.id){var i=g(" [".concat(n.id,"]"),n.idurl);i.setAttribute("style",h),o.appendChild(i)}return o}function y(t,e){var r=Object.assign({class:null,style:null,color:null,bgColor:null},e);return m(c.createElement("path",{d:t,class:r.class,style:r.style}),r.color,r.bgColor)}function m(t,e,r){var n="";return r&&(n+="fill:".concat(r,";")),e&&(n+="stroke:".concat(e,";")),c.setAttribute(t,"style",n)}h+="font-size:0.7em;text-anchor:start;",e.init=c.init,e.updateSVG=c.setAttributes},7544:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.determineStartCorrection=function(t,e,r){var n=0;return!e.includes("nodi")&&e.includes("bidi")&&(n=t.xTo>t.xFrom?7.5*r:-7.5*r),n},e.determineEndCorrection=function(t,e,r){var n=0;return e.includes("nodi")||(n=t.xTo>t.xFrom?-7.5*r:7.5*r),n},e.getDirection=function(t){var e=t.xTo>t.xFrom?1:-1;return{signX:e,signY:t.yTo>t.yFrom?1:-1,dy:e*(t.yTo-t.yFrom)/(t.xTo-t.xFrom)}}},5994:function(t,e,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(t,e,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(e,r);o&&!("get"in o?!e.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,o)}:function(t,e,r,n){void 0===n&&(n=r),t[n]=e[r]}),o=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),i=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var r in t)"default"!==r&&Object.prototype.hasOwnProperty.call(t,r)&&n(e,t,r);return o(e,t),e};Object.defineProperty(e,"__esModule",{value:!0}),e.renderNotePathString=function(t,e){return a.pathPoint2String("M",t.x,t.y)+(0,u.line2CurveString)({xFrom:t.x,yFrom:t.y,xTo:t.x+t.width-e,yTo:t.y})+a.pathPoint2String("L",t.x+t.width-e,t.y)+(0,u.line2CurveString)({xFrom:t.x+t.width-e,yFrom:t.y,xTo:t.x+t.width,yTo:t.y+e})+a.pathPoint2String("L",t.x+t.width,t.y+e)+(0,u.line2CurveString)({xFrom:t.x+t.width,yFrom:t.y+e,xTo:t.x+t.width,yTo:t.y+t.height})+a.pathPoint2String("L",t.x+t.width,t.y+t.height)+(0,u.line2CurveString)({xFrom:t.x+t.width,yFrom:t.y+t.height,xTo:t.x,yTo:t.y+t.height})+a.pathPoint2String("L",t.x,t.y+t.height)+(0,u.line2CurveString)({xFrom:t.x,yFrom:t.y+t.height,xTo:t.x,yTo:t.y})+a.pathPoint2String("L",t.x,t.y)+"z"},e.renderNoteCornerString=function(t,e){return a.pathPoint2String("M",t.x+t.width-e,t.y)+(0,u.line2CurveString)({xFrom:t.x+t.width-e,yFrom:t.y,xTo:t.x+t.width-e,yTo:t.y+e})+a.pathPoint2String("L",t.x+t.width-e,t.y+e)+(0,u.line2CurveString)({xFrom:t.x+t.width-e,yFrom:t.y+e,xTo:t.x+t.width,yTo:t.y+e})+a.pathPoint2String("L",t.x+t.width,t.y+e)},e.abox2CurveString=function(t,e){return a.pathPoint2String("M",t.x,t.y+t.height/2)+(0,u.line2CurveString)({xFrom:t.x,yFrom:t.y+t.height/2,xTo:t.x+e,yTo:t.y})+a.pathPoint2String("L",t.x+e,t.y)+(0,u.line2CurveString)({xFrom:t.x+e,yFrom:t.y,xTo:t.x+t.width-e,yTo:t.y})+a.pathPoint2String("L",t.x+t.width-e,t.y)+(0,u.line2CurveString)({xFrom:t.x+t.width-e,yFrom:t.y,xTo:t.x+t.width,yTo:t.y+t.height/2})+a.pathPoint2String("L",t.x+t.width,t.y+t.height/2)+(0,u.line2CurveString)({xFrom:t.x+t.width,yFrom:t.y+t.height/2,xTo:t.x+t.width-e,yTo:t.y+t.height})+a.pathPoint2String("L",t.x+t.width-e,t.y+t.height)+(0,u.line2CurveString)({xFrom:t.x+t.width-e,yFrom:t.y+t.height,xTo:t.x+e,yTo:t.y+t.height})+a.pathPoint2String("L",t.x+e,t.y+t.height)+(0,u.line2CurveString)({xFrom:t.x+e,yFrom:t.y+t.height,xTo:t.x,yTo:t.y+t.height/2})+"z"},e.rbox2CurveString=function(t,e){return a.pathPoint2String("M",t.x,t.y+e)+(0,u.points2CurveString)([{controlX:t.x,controlY:t.y,x:t.x+e,y:t.y}])+(0,u.line2CurveString)({xFrom:t.x+e,yFrom:t.y,xTo:t.x+t.width-e,yTo:t.y})+a.pathPoint2String("L",t.x+t.width-e,t.y)+(0,u.points2CurveString)([{controlX:t.x+t.width,controlY:t.y,x:t.x+t.width,y:t.y+e}])+(0,u.line2CurveString)({xFrom:t.x+t.width,yFrom:t.y+e,xTo:t.x+t.width,yTo:t.y+t.height-e})+a.pathPoint2String("L",t.x+t.width,t.y+t.height-e)+(0,u.points2CurveString)([{controlX:t.x+t.width,controlY:t.y+t.height,x:t.x+t.width-e,y:t.y+t.height}])+(0,u.line2CurveString)({xFrom:t.x+t.width-e,yFrom:t.y+t.height,xTo:t.x+e,yTo:t.y+t.height})+a.pathPoint2String("L",t.x+e,t.y+t.height)+(0,u.points2CurveString)([{controlX:t.x,controlY:t.y+t.height,x:t.x,y:t.y+t.height-e}])+(0,u.line2CurveString)({xFrom:t.x,yFrom:t.y+t.height-e,xTo:t.x,yTo:t.y+e})+"z"},e.doubleLine2CurveString=function(t,e){var r=e.lineWidth||1,n=r,o=e?e.class:"",i=c.getDirection(t),s=c.determineEndCorrection(t,o,r),l=c.determineStartCorrection(t,o,r);return a.pathPoint2String("M",t.xFrom,t.yFrom-7.5*r*i.dy)+a.pathPoint2String("l",i.signX,i.dy)+a.pathPoint2String("M",t.xFrom+l,t.yFrom-n)+(0,u.line2CurveString)({xFrom:t.xFrom+l,yFrom:t.yFrom-n,xTo:t.xTo+s,yTo:t.yTo-n})+a.pathPoint2String("M",t.xFrom+l,t.yFrom+n)+(0,u.line2CurveString)({xFrom:t.xFrom+l,yFrom:t.yFrom+n,xTo:t.xTo+s,yTo:t.yTo+n})+a.pathPoint2String("M",t.xTo-i.signX,t.yTo+7.5*r*i.dy)+a.pathPoint2String("l",i.signX,i.dy)},e.edgeRemark2CurveString=function(t,e){return a.pathPoint2String("M",t.x+t.width,t.y)+(0,u.line2CurveString)({xFrom:t.x+t.width,yFrom:t.y,xTo:t.x+t.width,yTo:t.y+t.height-e})+a.pathPoint2String("L",t.x+t.width,t.y+t.height-e)+(0,u.line2CurveString)({xFrom:t.x+t.width,yFrom:t.y+t.height-e,xTo:t.x+t.width-e,yTo:t.y+t.height})+a.pathPoint2String("L",t.x+t.width-e,t.y+t.height)+(0,u.line2CurveString)({xFrom:t.x+t.width-e,yFrom:t.y+t.height,xTo:t.x-1,yTo:t.y+t.height})+a.pathPoint2String("L",t.x-1,t.y+t.height)};var a=i(r(9452)),c=i(r(7544)),u=r(9521)},9521:function(t,e,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(t,e,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(e,r);o&&!("get"in o?!e.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,o)}:function(t,e,r,n){void 0===n&&(n=r),t[n]=e[r]}),o=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),i=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var r in t)"default"!==r&&Object.prototype.hasOwnProperty.call(t,r)&&n(e,t,r);return o(e,t),e},a=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.points2CurveString=d,e.line2CurveString=function(t){return d(y(t,l,f))},e.getLineLength=p,e.getNumberOfSegments=h,e.getBetweenPoints=y;var c=a(r(3136)),u=i(r(9452)),s=i(r(7544)),l=70,f=3;function d(t){return t.map((function(t){return"".concat(u.pathPoint2String("S",t.controlX,t.controlY)," ")+"".concat(u.point2String(t))})).join(" ")}function p(t){var e=Math.abs(t.xTo-t.xFrom),r=Math.abs(t.yTo-t.yFrom);return Math.sqrt(e*e+r*r)}function h(t,e){var r=p(t);return r>0?Math.floor(r/e):0}function g(t){return Math.round(2*Math.random()*t)-t}var b=2;function y(t,e,r){e=function(t,e){if(t<=0)throw new Error("pInterval must be > 0");return Math.min(p(e),t)}(e,t);for(var n,o=[],i=h(t,e),a=s.getDirection(t),u=a.signX*Math.sqrt(Math.pow(e,2)/(1+Math.pow(a.dy,2))),l=a.signY*(Math.abs(a.dy)===1/0?e:Math.sqrt(Math.pow(a.dy,2)*Math.pow(e,2)/(1+Math.pow(a.dy,2)))),f=1;f<=i;f++)e>p({xFrom:(n={controlX:(0,c.default)(t.xFrom+(f-.5)*u+g(r),b),controlY:(0,c.default)(t.yFrom+(f-.5)*l+g(r),b),x:(0,c.default)(t.xFrom+f*u,b),y:(0,c.default)(t.yFrom+f*l,b)}).x,yFrom:n.y,xTo:t.xTo,yTo:t.yTo})&&(n.x=t.xTo,n.y=t.yTo),o.push(n);return o}},6180:function(t,e,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(t,e,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(e,r);o&&!("get"in o?!e.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,o)}:function(t,e,r,n){void 0===n&&(n=r),t[n]=e[r]}),o=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),i=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var r in t)"default"!==r&&Object.prototype.hasOwnProperty.call(t,r)&&n(e,t,r);return o(e,t),e},a=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.createSingleLine=function(t,e){void 0===e&&(e={});var r=f.getDirection(t);return l.createPath(l.pathPoint2String("M",t.xFrom,t.yFrom)+l.pathPoint2String("L",(0,s.default)(t.xFrom+r.signX*Math.sqrt(1/(1+Math.pow(r.dy,2))),2),t.yFrom+r.signY*(Math.abs(r.dy)===1/0?1:(0,s.default)(Math.sqrt(Math.pow(r.dy,2)/(1+Math.pow(r.dy,2))),2)))+(0,u.line2CurveString)(t),e)},e.createNote=function(t,e){var r=e&&e.lineWidth||1,n=Math.max(9,Math.min(4.5*r,t.height/2)),o=l.createGroup();return o.appendChild(l.createPath((0,c.renderNotePathString)(t,n),e)),e.bgColor="transparent",o.appendChild(l.createPath((0,c.renderNoteCornerString)(t,n),e)),o},e.createRect=function(t,e){return l.createPath((0,c.rbox2CurveString)(t,0),e)},e.createABox=function(t,e){return l.createPath((0,c.abox2CurveString)(t,3),e)},e.createRBox=function(t,e){return l.createPath((0,c.rbox2CurveString)(t,6),e)},e.createEdgeRemark=function(t,e){var r=e&&e.lineWidth||1,n=l.createGroup(),o=e&&e.foldSize?e.foldSize:7,i=e&&e.color?e.color:"black";e.color="transparent!important";var a=l.createPath(l.pathPoint2String("M",t.x,t.y+r/2)+l.pathPoint2String("L",t.x+t.width,t.y+r/2)+l.pathPoint2String("L",t.x+t.width,t.y+t.height-o)+l.pathPoint2String("L",t.x+t.width-o,t.y+t.height)+l.pathPoint2String("L",t.x,t.y+t.height)+"z",e);e.bgColor="transparent",e.color=i;var u=l.createPath((0,c.edgeRemark2CurveString)(t,o),e);return n.appendChild(a),n.appendChild(u),n},e.createDoubleLine=function(t,e){return l.createPath((0,c.doubleLine2CurveString)(t,e),{class:e.class})};var c=r(5994),u=r(9521),s=a(r(3136)),l=i(r(9452)),f=i(r(7544))},2314:function(t,e,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(t,e,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(e,r);o&&!("get"in o?!e.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,o)}:function(t,e,r,n){void 0===n&&(n=r),t[n]=e[r]}),o=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),i=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var r in t)"default"!==r&&Object.prototype.hasOwnProperty.call(t,r)&&n(e,t,r);return o(e,t),e},a=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.webkitNamespaceBugWorkaround=e.calculateTextHeight=e.init=void 0,e.getBBox=d,e.removeRenderedSVGFromElement=function(t){u.setPrefix(t);var e=l.getElementById(u.get());if(Boolean(e)){var r=l.getElementById(t);r?r.removeChild(e):l.body.removeChild(e)}};var c=a(r(104)),u=i(r(5871)),s=i(r(8912)),l={},f=u.get("bboxer");function d(t){return"function"==typeof t.getBBox?(e=function(t){var e=l.getElementById(f);(e=e||function(t){var e=s.createSVG(t,u.get());return l.body.appendChild(e),e}(f)).appendChild(t);var r=t.getBBox();return e.removeChild(t),r}(t),r=1e5,Math.abs(e.height)>r||Math.abs(e.width)>r?{height:0,width:0,x:0,y:0}:e):{height:15,width:15,x:2,y:2};var e,r}e.init=function(t){l=t},e.calculateTextHeight=(0,c.default)((function(){return d(s.createText("ÁjyÎ9ƒ@💩",{x:0,y:0})).height})),e.webkitNamespaceBugWorkaround=function(t){return t.replace(/ xlink=/g," xmlns:xlink=").replace(/ href=/g," xlink:href=")}},2020:function(t,e,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(t,e,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(e,r);o&&!("get"in o?!e.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,o)}:function(t,e,r,n){void 0===n&&(n=r),t[n]=e[r]}),o=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),i=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var r in t)"default"!==r&&Object.prototype.hasOwnProperty.call(t,r)&&n(e,t,r);return o(e,t),e},a=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.explodeBroadcasts=w,e.render=function(t){var e=function(t){return w((0,u.default)(t,[s.nameAsLabel],[s.swapRTLArc,s.overrideColors]))}(structuredClone(t)),r="/* Sequence chart represented as a directed graph\n * in the graphviz dot language (http://graphviz.org/)\n *\n * Generated by mscgen_js (https://sverweij.github.io/mscgen_js)\n */\n\ngraph {\n";return r+="".concat(d,"rankdir=LR\n"),r+="".concat(d,"splines=true\n"),r+="".concat(d,"ordering=out\n"),r+="".concat(d,'fontname="Helvetica"\n'),r+="".concat(d,'fontsize="9"\n'),r+="".concat(d,'node [style=filled, fillcolor=white fontname="Helvetica", fontsize="9" ]\n'),r+="".concat(d,'edge [fontname="Helvetica", fontsize="9", arrowhead=vee, arrowtail=vee, dir=forward]\n'),r+="\n",r+="".concat(e.entities.reduce((function(t,e){return"".concat(t+d+function(t){return v(t.name)+m(y(t))}(e),";\n")}),""),"\n"),e.arcs&&(h=0,r+=x(e.arcs,"")),r+"}"};var c=a(r(7796)),u=a(r(4501)),s=i(r(7635)),l=a(r(2900)),f=i(r(8501)),d=" ",p=40,h=0;function g(t,e){return"".concat(e,'="').concat(function(t){var e=(0,l.default)(t.replace(/"/g,'\\"'),p);return e.slice(0,-1).reduce((function(t,e){return"".concat(t+e,"\n")}),"")+e.slice(-1)}(t),'"')}function b(t,e,r){Boolean(e)&&t.push(g(e,r))}function y(t){return["label","color","fontcolor","fillcolor"].filter((function(e){return Boolean(t[e])})).map((function(e){return g(t[e],e)}))}function m(t){return t.slice(0,-1).reduce((function(t,e){return"".concat(t+e,", ")})," [")+"".concat(t.slice(-1),"]")}function v(t){return'"'.concat(t,'"')}function x(t,e){return t.reduce((function(t,r){return t+r.reduce((function(t,r){return t+function(t,e){var r="";return t.from&&t.to&&(r+="".concat(d+e+function(t,e,r){var n="",o=(0,c.default)(t.kind);return n+="box"===o?function(t,e,r){var n="",o="box".concat(e.toString());n+=o;var i=y(t);return b(i,f.getStyle(t.kind),"style"),b(i,f.getShape(t.kind),"shape"),n+="".concat(m(i),"\n").concat(d).concat(r),b(i=[],"dotted","style"),b(i,"none","dir"),(n+="".concat(o," -- {").concat(v(t.from),",").concat(v(t.to),"}"))+m(i)}(t,e,r):function(t,e,r){var n="";t.label=function(t,e){return e?"(".concat(t,") ").concat(e):"(".concat(t,")")}(r,t.label);var o=y(t);switch(b(o,f.getStyle(t.kind),"style"),e){case"directional":b(o,f.getArrow(t.kind),"arrowhead");break;case"bidirectional":b(o,f.getArrow(t.kind),"arrowhead"),b(o,f.getArrow(t.kind),"arrowtail"),b(o,"both","dir");break;case"nondirectional":b(o,"none","dir")}return t.arcs||(n+="".concat(v(t.from)," "),n+="--",n+=" ".concat(v(t.to)),n+=m(o)),n}(t,o,e),n}(t,++h,e),"\n"),t.arcs&&(r+="".concat(d+e,"subgraph cluster_").concat(h.toString(),"{"),r+="\n".concat(d).concat(e,' label="').concat(t.kind,": ").concat(t.label,'" labeljust="l"\n'),r+=x(t.arcs,e+d),r+="".concat(d+e,"}\n"))),r}(r,e)}),"")}),"")}function w(t){return t.arcs&&t.arcs.forEach((function(e,r){e.filter((function(t){return"*"===t.to})).forEach((function(n,o){var i=structuredClone(n);delete t.arcs[r][o];var a=function(t,e){return t.filter((function(t){return e.from!==t.name})).map((function(t){return e.to=t.name,structuredClone(e)}))}(t.entities,i);e[o]=a.shift(),t.arcs[r]=e.concat(a)}))})),t}},5619:function(t,e,r){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},n(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(e,"__esModule",{value:!0}),e.render=void 0;var i=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype.init=function(){var e=" ",r="\n",n=" * ";t.prototype.init.call(this,{program:{opener:"".concat(n,"\\msc").concat(r),closer:"".concat(n,"\\endmsc")},option:{opener:n+e,separator:",".concat(r).concat(n).concat(e),closer:";".concat(r).concat(n).concat(r)},entity:{opener:n+e,separator:",".concat(r).concat(n).concat(e),closer:";".concat(r).concat(n).concat(r)},arcline:{opener:n+e,separator:",".concat(r).concat(n).concat(e),closer:";".concat(r)},inline:{opener:";".concat(r),closer:"".concat(n,"#")}})},e.prototype.renderComments=function(){return""},e}(r(3250).MscGenAdaptor);e.render=function(t){return new i(!1).render(t)}},3250:function(t,e,r){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},n(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.render=e.MscGenAdaptor=void 0;var a=i(r(7796)),c=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype.init=function(e){t.prototype.init.call(this,Object.assign({supportedOptions:["hscale","width","arcgradient","wordwraparcs"],supportedEntityAttributes:["label","idurl","id","url","linecolor","textcolor","textbgcolor","arclinecolor","arctextcolor","arctextbgcolor","arcskip"],supportedArcAttributes:["label","idurl","id","url","linecolor","textcolor","textbgcolor","arclinecolor","arctextcolor","arctextbgcolor","arcskip"],inline:{opener:";".concat(this.eol),closer:"#"}},e))},e.prototype.renderKind=function(t){return"inline_expression"===(0,a.default)(t)?"--":t},e.prototype.optionIsValid=function(t){return!Boolean(t.value)||"string"!=typeof t.value||"auto"!==t.value.toLowerCase()},e}(r(6532).XuAdaptor);e.MscGenAdaptor=c,e.render=function(t,e){return void 0===e&&(e=!1),new c(e).render(t)}},2956:function(t,e,r){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},n(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(e,"__esModule",{value:!0}),e.render=void 0;var i=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype.init=function(){t.prototype.init.call(this,{supportedEntityAttributes:["label"],supportedArcAttributes:["label"],program:{opener:"",closer:""},option:{opener:"",separator:",".concat(this.eol),closer:";".concat(this.eol).concat(this.eol)},entity:{opener:"",separator:",".concat(this.eol),closer:";".concat(this.eol).concat(this.eol)},arcline:{opener:"",separator:",".concat(this.eol),closer:";".concat(this.eol)},inline:{opener:" {".concat(this.eol),closer:"}"},attribute:{opener:"",separator:"",closer:""}})},e.prototype.renderEntityName=function(t){return this.entityNameIsQuotable(t)?'"'.concat(t,'"'):t},e.prototype.renderAttribute=function(t){var e="";return t.name&&t.value&&(e+=' : "'.concat(t.value,'"')),e},e.prototype.entityNameIsQuotable=function(t){var e=t.match(/[^;, "\t\n\r=\-><:{*]+/gi);return e?1!==e.length:"*"!==t},e}(r(6532).XuAdaptor);e.render=function(t){return(new i).render(t)}},6532:function(t,e,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(t,e,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(e,r);o&&!("get"in o?!e.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,o)}:function(t,e,r,n){void 0===n&&(n=r),t[n]=e[r]}),o=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),i=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var r in t)"default"!==r&&Object.prototype.hasOwnProperty.call(t,r)&&n(e,t,r);return o(e,t),e};Object.defineProperty(e,"__esModule",{value:!0}),e.render=e.XuAdaptor=void 0;var a=i(r(2952)),c=i(r(5383)),u=function(){function t(t){void 0===t&&(t=!1),this.indent=" ",this.space=" ",this.eol="\n",this.config={},!0===t?(this.indent="",this.space="",this.eol=""):(this.indent=" ",this.space=" ",this.eol="\n"),this.init(this.config)}return t.prototype.init=function(t){this.config=Object.assign({},this.getConfig(),t)},t.prototype.render=function(t){var e="";return t.precomment&&(e+=this.renderComments(t.precomment)),e+=this.config.program.opener,t.options&&(e+=this.renderOptions(t.options)),e+=this.renderEntities(t.entities),t.arcs&&(e+=this.renderArcLines(t.arcs,"")),e+this.config.program.closer},t.prototype.renderEntityName=function(t){return this.isQuotable(t)?'"'.concat(t,'"'):t},t.prototype.renderAttribute=function(t){var e="";return t.name&&t.hasOwnProperty("value")&&(e="string"==typeof t.value?this.renderStringAttribute(t):this.renderNonStringAttribute(t)),e},t.prototype.renderComments=function(t){return t.reduce((function(t,e){return t+e}),"")},t.prototype.renderOption=function(t){return"".concat(t.name,"=").concat("string"==typeof t.value?'"'+c.escapeString(t.value)+'"':t.value.toString())},t.prototype.optionIsValid=function(t){return!0},t.prototype.renderKind=function(t){return t},t.prototype.renderStringAttribute=function(t){return"".concat(t.name,'="').concat(c.escapeString(t.value),'"')},t.prototype.renderNonStringAttribute=function(t){return"".concat(t.name,"=").concat(t.value)},t.prototype.getConfig=function(){return{supportedOptions:["hscale","width","arcgradient","wordwraparcs","watermark","wordwrapentities","wordwrapboxes"],supportedEntityAttributes:["label","idurl","id","url","linecolor","textcolor","textbgcolor","arclinecolor","arctextcolor","arctextbgcolor","arcskip"],supportedArcAttributes:["label","idurl","id","url","linecolor","textcolor","textbgcolor","arclinecolor","arctextcolor","arctextbgcolor","arcskip","title","activation"],program:{opener:"msc".concat(this.space,"{").concat(this.eol),closer:"}"},option:{opener:this.indent,separator:",".concat(this.eol).concat(this.indent),closer:";".concat(this.eol).concat(this.eol)},entity:{opener:this.indent,separator:",".concat(this.eol).concat(this.indent),closer:";".concat(this.eol).concat(this.eol)},attribute:{opener:"".concat(this.space,"["),separator:",".concat(this.space),closer:"]"},arcline:{opener:this.indent,separator:",".concat(this.eol).concat(this.indent),closer:";".concat(this.eol)},inline:{opener:"".concat(this.space,"{").concat(this.eol),closer:"".concat(this.indent,"}")}}},t.prototype.extractSupportedOptions=function(t,e){return e.filter((function(e){return void 0!==t[e]})).map((function(e){return{name:e,value:t[e]}}))},t.prototype.isQuotable=function(t){var e=t.match(/[a-z0-9]+/gi);return e?1!==e.length||a.isMscGenKeyword(t):"*"!==t},t.prototype.renderOptions=function(t){var e=this,r=this.extractSupportedOptions(t,this.config.supportedOptions).filter(this.optionIsValid),n="";if(r.length>0){var o=r.pop();n=r.reduce((function(t,r){return t+e.renderOption(r)+e.config.option.separator}),this.config.option.opener),n+=this.renderOption(o)+this.config.option.closer}return n},t.prototype.renderEntity=function(t){return this.renderEntityName(t.name)+this.renderAttributes(t,this.config.supportedEntityAttributes)},t.prototype.renderEntities=function(t){var e=this,r="";return t.length>0&&(r=t.slice(0,-1).reduce((function(t,r){return t+e.renderEntity(r)+e.config.entity.separator}),this.config.entity.opener),r+=this.renderEntity(t[t.length-1])+this.config.entity.closer),r},t.prototype.renderAttributes=function(t,e){var r=this,n="",o=this.extractSupportedOptions(t,e);if(o.length>0){var i=o.pop();n=o.reduce((function(t,e){return t+r.renderAttribute(e)+r.config.attribute.separator}),this.config.attribute.opener),n+=this.renderAttribute(i)+this.config.attribute.closer}return n},t.prototype.renderArc=function(t,e){var r="";return t.from&&(r+="".concat(this.renderEntityName(t.from)," ")),r+=this.renderKind(t.kind),t.to&&(r+=" ".concat(this.renderEntityName(t.to))),r+=this.renderAttributes(t,this.config.supportedArcAttributes),t.arcs&&(r+=this.config.inline.opener,r+=this.renderArcLines(t.arcs,e+this.indent),r+=e+this.config.inline.closer),null===t.arcs&&(r+=this.config.inline.opener,r+=e+this.config.inline.closer),r},t.prototype.renderArcLine=function(t,e){var r=this,n="";return t.length>0&&(n=t.slice(0,-1).reduce((function(t,n){return t+e+r.renderArc(n,e)+r.config.arcline.separator}),this.config.arcline.opener),n+=e+this.renderArc(t[t.length-1],e)+this.config.arcline.closer),n},t.prototype.renderArcLines=function(t,e){var r=this;return t.reduce((function(t,n){return t+r.renderArcLine(n,e)}),"")},t}();e.XuAdaptor=u,e.render=function(t,e){return void 0===e&&(e=!1),new u(e).render(t)}},8501:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getArrow=function(t){return r[t]},e.getShape=function(t){return n[t]},e.getStyle=function(t){return o[t]};var r=Object.freeze({"->":"rvee","<->":"rvee","=>":"normal","<=>":"normal","-x":"oinvonormal"}),n=Object.freeze({box:"box",abox:"hexagon",rbox:"box",note:"note"}),o=Object.freeze({">>":"dashed","<<>>":"dashed","..":"dashed",":>":"bold","<:>":"bold","::":"bold",rbox:"rounded"})},5383:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.unescapeString=function(t){return t.replace(/\\"/g,'"')},e.escapeString=function(t){return t.replace(/\\"/g,'"').replace(/"/g,'\\"')}},2900:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){for(var r=0,n=[],o=0,i=0,a=0,c=0,u=t.replace(/[\t\n]+/g," ").replace(/\\n/g,"\n");c<=u.length;)c>=u.length?n.push(u.substring(o,c)):"\n"===u[c]?(r=0,a=c,n.push(u.substring(o,a)),o=a+1):r++>=e&&(-1===(a=u.substring(0,c).lastIndexOf(" "))||ae?t:(e-=t.length,t+(r+=r.repeat(e)).slice(0,e))}return function(t,e){function r(){this.constructor=t}r.prototype=e.prototype,t.prototype=new r}(r,Error),r.prototype.format=function(t){var e="Error: "+this.message;if(this.location){var r,o=null;for(r=0;r0){for(e=1,r=1;e",E="==",T="<<=>>",M="<=>",D="..",F="<<>>",I="::",B="<:>",N="->",H="=>>",R="=>",W=">>",G=":>",z="-x",V="<-",X="<<=",$="<=",q="<<",U="<:",K="x-",Z="note",Y="abox",Q="rbox",J="box",tt="label",et="idurl",rt="id",nt="url",ot="linecolor",it="linecolour",at="textcolor",ct="textcolour",ut="textbgcolor",st="textbgcolour",lt="arclinecolor",ft="arclinecolour",dt="arctextcolor",pt="arctextcolour",ht="arctextbgcolor",gt="arctextbgcolour",bt="arcskip",yt='"',mt='\\"',vt="/*",xt="*/",wt="//",_t="#",Ct=".",At="true",Ot="false",St="on",jt="off",kt=/^[A-Za-z_0-9]/,Lt=/^[ \t]/,Pt=/^[\r\n]/,Et=/^[^\r\n]/,Tt=/^[0-9]/,Mt=/^[0-1]/,Dt=Cn("{",!1),Ft=Cn("}",!1),It=Cn("msc",!0),Bt=Cn(",",!1),Nt=Cn(";",!1),Ht=On("option"),Rt=Cn("hscale",!0),Wt=Cn("width",!0),Gt=Cn("arcgradient",!0),zt=Cn("=",!1),Vt=Cn("wordwraparcs",!0),Xt=On("entity"),$t=Cn("[",!1),qt=Cn("]",!1),Ut=Cn("*",!1),Kt=On("empty row"),Zt=Cn("|||",!1),Yt=Cn("...",!1),Qt=On("---"),Jt=Cn("---",!1),te=On("bi-directional arrow"),ee=Cn("--",!1),re=Cn("<->",!1),ne=Cn("==",!1),oe=Cn("<<=>>",!1),ie=Cn("<=>",!1),ae=Cn("..",!1),ce=Cn("<<>>",!1),ue=Cn("::",!1),se=Cn("<:>",!1),le=On("left to right arrow"),fe=Cn("->",!1),de=Cn("=>>",!1),pe=Cn("=>",!1),he=Cn(">>",!1),ge=Cn(":>",!1),be=Cn("-x",!0),ye=On("right to left arrow"),me=Cn("<-",!1),ve=Cn("<<=",!1),xe=Cn("<=",!1),we=Cn("<<",!1),_e=Cn("<:",!1),Ce=Cn("x-",!0),Ae=On("box"),Oe=Cn("note",!0),Se=Cn("abox",!0),je=Cn("rbox",!0),ke=Cn("box",!0),Le=On("attribute name"),Pe=Cn("label",!0),Ee=Cn("idurl",!0),Te=Cn("id",!0),Me=Cn("url",!0),De=Cn("linecolor",!0),Fe=Cn("linecolour",!0),Ie=Cn("textcolor",!0),Be=Cn("textcolour",!0),Ne=Cn("textbgcolor",!0),He=Cn("textbgcolour",!0),Re=Cn("arclinecolor",!0),We=Cn("arclinecolour",!0),Ge=Cn("arctextcolor",!0),ze=Cn("arctextcolour",!0),Ve=Cn("arctextbgcolor",!0),Xe=Cn("arctextbgcolour",!0),$e=Cn("arcskip",!0),qe=On("double quoted string"),Ue=Cn('"',!1),Ke=Cn('\\"',!1),Ze={type:"any"},Ye=On("identifier"),Qe=An([["A","Z"],["a","z"],"_",["0","9"]],!1,!1),Je=On("whitespace"),tr=An([" ","\t"],!1,!1),er=On("lineend"),rr=An(["\r","\n"],!1,!1),nr=Cn("/*",!1),or=Cn("*/",!1),ir=Cn("//",!1),ar=Cn("#",!1),cr=An(["\r","\n"],!0,!1),ur=On("comment"),sr=On("number"),lr=On("cardinal"),fr=An([["0","9"]],!1,!1),dr=On("real"),pr=Cn(".",!1),hr=On("boolean"),gr=Cn("true",!0),br=Cn("false",!0),yr=Cn("on",!0),mr=Cn("off",!0),vr=An([["0","1"]],!1,!1),xr=function(r,n){return n.entities=n.entities||[],e.checkForUndeclaredEntities(n.entities,n.arcs),n=t({meta:{extendedOptions:!1,extendedArcTypes:!1,extendedFeatures:!1}},n),r.length>0&&(n=t({precomment:r},n)),n},wr=function(t,e,r){var n={};return t&&(n.options=t),e&&(n.entities=e),r&&(n.arcs=r),n},_r=function(t){return t},Cr=function(t){return t},Ar=function(e){return e[0].concat(e[1]).reduce(t,{})},Or=function(t,r){return e.nameValue2Option(t,r)},Sr=function(t,r){return e.nameValue2Option(t,e.flattenBoolean(r))},jr=function(t){return t},kr=function(t){return t},Lr=function(t){return t[0].concat(t[1])},Pr=function(t,e){return e},Er=function(e,r){return t({name:e},r)},Tr=function(t,e){return e},Mr=function(n,o){return e.isMscGenKeyword(n)&&function(t,e){throw function(t,e){return new r(t,null,null,e)}(t,e=void 0!==e?e:jn(mn,yn))}("Keywords aren't allowed as entity names (embed them in quotes if you need them)"),t({name:n},o)},Dr=function(t){return t},Fr=function(t){return t},Ir=function(t){return t},Br=function(t){return t[0].concat(t[1])},Nr=function(t){return t},Hr=function(t){return t},Rr=function(t){return t},Wr=function(t,e){return e},Gr=function(e,r){return t(e,r)},zr=function(t){return{kind:t}},Vr=function(t){return{kind:t}},Xr=function(t,e,r){return{kind:e,from:t,to:r}},$r=function(t,e){return{kind:t,from:"*",to:e}},qr=function(t,e){return{kind:e,from:t,to:"*"}},Ur=function(t,e){return{kind:e,from:t,to:"*"}},Kr=function(t){return t.toLowerCase()},Zr=function(t){return t},Yr=function(t){return t},Qr=function(e){return e[0].concat(e[1]).reduce(t,{})},Jr=function(t,e){var r={};return r[t.toLowerCase().replace("colour","color")]=e,r},tn=function(t){return t.join("")},en=function(t){return t},rn=function(t){return t.join("")},nn=function(t){return t},on=function(t){return t},an=function(t){return t},cn=function(t,e,r){return t+e.join("")+r},un=function(t,e){return t+e.join("")},sn=function(t){return t},ln=function(t){return t.toString()},fn=function(t){return t.toString()},dn=function(t){return parseInt(t.join(""),10)},pn=function(t){return parseFloat(t.join(""))},hn=function(t){return t},gn=function(t){return t.toString()},bn=function(t){return t},yn=0|o.peg$currPos,mn=yn,vn=[{line:1,column:1}],xn=yn,wn=o.peg$maxFailExpected||[],_n=0|o.peg$silentFails;if(o.startRule){if(!(o.startRule in f))throw new Error("Can't start parsing from rule \""+o.startRule+'".');d=f[o.startRule]}function Cn(t,e){return{type:"literal",text:t,ignoreCase:e}}function An(t,e,r){return{type:"class",parts:t,inverted:e,ignoreCase:r}}function On(t){return{type:"other",description:t}}function Sn(t){var e,r=vn[t];if(r)return r;if(t>=vn.length)e=vn.length-1;else for(e=t;!vn[--e];);for(r={line:(r=vn[e]).line,column:r.column};exn&&(xn=yn,wn=[]),wn.push(t))}function Ln(){var t,e,r,o,i;return t=yn,e=Kn(),function(){var t;return(t=n.substr(yn,3)).toLowerCase()===g?yn+=3:(t=s,0===_n&&kn(It)),t}()!==s?(Kn(),123===n.charCodeAt(yn)?(r=p,yn++):(r=s,0===_n&&kn(Dt)),r!==s?(Kn(),o=function(){var t,e,r,o;return t=yn,(e=function(){var t,e,r,o,i,a;for(t=yn,e=yn,r=[],o=yn,(i=Pn())!==s?(44===n.charCodeAt(yn)?(a=b,yn++):(a=s,0===_n&&kn(Bt)),a!==s?(mn=o,o=_r(i)):(yn=o,o=s)):(yn=o,o=s);o!==s;)r.push(o),o=yn,(i=Pn())!==s?(44===n.charCodeAt(yn)?(a=b,yn++):(a=s,0===_n&&kn(Bt)),a!==s?(mn=o,o=_r(i)):(yn=o,o=s)):(yn=o,o=s);return o=yn,(i=Pn())!==s?(59===n.charCodeAt(yn)?(a=y,yn++):(a=s,0===_n&&kn(Nt)),a!==s?(mn=o,o=Cr(i)):(yn=o,o=s)):(yn=o,o=s),o!==s?e=r=[r,o]:(yn=e,e=s),e!==s&&(mn=t,e=Ar(e)),e}())===s&&(e=null),(r=function(){var t,e,r,o,i,a;for(t=yn,e=yn,r=[],o=yn,(i=En())!==s?(44===n.charCodeAt(yn)?(a=b,yn++):(a=s,0===_n&&kn(Bt)),a!==s?(mn=o,o=jr(i)):(yn=o,o=s)):(yn=o,o=s);o!==s;)r.push(o),o=yn,(i=En())!==s?(44===n.charCodeAt(yn)?(a=b,yn++):(a=s,0===_n&&kn(Bt)),a!==s?(mn=o,o=jr(i)):(yn=o,o=s)):(yn=o,o=s);return o=yn,(i=En())!==s?(59===n.charCodeAt(yn)?(a=y,yn++):(a=s,0===_n&&kn(Nt)),a!==s?(mn=o,o=kr(i)):(yn=o,o=s)):(yn=o,o=s),o!==s?e=r=[r,o]:(yn=e,e=s),e!==s&&(mn=t,e=Lr(e)),e}())===s&&(r=null),(o=function(){var t,e,r,o;if(t=[],e=yn,(r=Tn())!==s?(Kn(),59===n.charCodeAt(yn)?(o=y,yn++):(o=s,0===_n&&kn(Nt)),o!==s?(mn=e,e=Dr(r)):(yn=e,e=s)):(yn=e,e=s),e!==s)for(;e!==s;)t.push(e),e=yn,(r=Tn())!==s?(Kn(),59===n.charCodeAt(yn)?(o=y,yn++):(o=s,0===_n&&kn(Nt)),o!==s?(mn=e,e=Dr(r)):(yn=e,e=s)):(yn=e,e=s);else t=s;return t}())===s&&(o=null),mn=t,wr(e,r,o)}(),Kn(),125===n.charCodeAt(yn)?(i=h,yn++):(i=s,0===_n&&kn(Ft)),i!==s?(Kn(),mn=t,t=xr(e,o)):(yn=t,t=s)):(yn=t,t=s)):(yn=t,t=s),t}function Pn(){var t,e,r,o;return _n++,t=yn,Kn(),(e=n.substr(yn,6)).toLowerCase()===m?yn+=6:(e=s,0===_n&&kn(Rt)),e===s&&((e=n.substr(yn,5)).toLowerCase()===v?yn+=5:(e=s,0===_n&&kn(Wt)),e===s&&((e=n.substr(yn,11)).toLowerCase()===x?yn+=11:(e=s,0===_n&&kn(Gt)))),e!==s?(Kn(),61===n.charCodeAt(yn)?(r=w,yn++):(r=s,0===_n&&kn(zt)),r!==s?(Kn(),(o=function(){var t,e;return _n++,t=yn,(e=function(){var t,e,r,o;return t=yn,34===n.charCodeAt(yn)?(e=yt,yn++):(e=s,0===_n&&kn(Ue)),e!==s&&(r=Zn())!==s?(34===n.charCodeAt(yn)?(o=yt,yn++):(o=s,0===_n&&kn(Ue)),o!==s?(mn=t,t=fn(r)):(yn=t,t=s)):(yn=t,t=s),t}())!==s&&(mn=t,e=sn(e)),(t=e)===s&&(t=yn,(e=Zn())!==s&&(mn=t,e=ln(e)),t=e),_n--,t===s&&(e=s,0===_n&&kn(sr)),t}())!==s?(Kn(),mn=t,t=Or(e,o)):(yn=t,t=s)):(yn=t,t=s)):(yn=t,t=s),t===s&&(t=yn,Kn(),(e=n.substr(yn,12)).toLowerCase()===_?yn+=12:(e=s,0===_n&&kn(Vt)),e!==s?(Kn(),61===n.charCodeAt(yn)?(r=w,yn++):(r=s,0===_n&&kn(zt)),r!==s?(Kn(),(o=function(){var t,e;return _n++,t=yn,(e=function(){var t,e,r,o;return t=yn,34===n.charCodeAt(yn)?(e=yt,yn++):(e=s,0===_n&&kn(Ue)),e!==s&&(r=Qn())!==s?(34===n.charCodeAt(yn)?(o=yt,yn++):(o=s,0===_n&&kn(Ue)),o!==s?(mn=t,t=bn(r)):(yn=t,t=s)):(yn=t,t=s),t}())!==s&&(mn=t,e=hn(e)),(t=e)===s&&(t=yn,(e=Qn())!==s&&(mn=t,e=gn(e)),t=e),_n--,t===s&&(e=s,0===_n&&kn(hr)),t}())!==s?(Kn(),mn=t,t=Sr(e,o)):(yn=t,t=s)):(yn=t,t=s)):(yn=t,t=s)),_n--,t===s&&0===_n&&kn(Ht),t}function En(){var t,e,r,o,i,a;return _n++,t=yn,Kn(),(e=Hn())!==s?(Kn(),r=yn,91===n.charCodeAt(yn)?(o=C,yn++):(o=s,0===_n&&kn($t)),o!==s&&(i=Bn())!==s?(93===n.charCodeAt(yn)?(a=A,yn++):(a=s,0===_n&&kn(qt)),a!==s?(mn=r,r=Pr(e,i)):(yn=r,r=s)):(yn=r,r=s),r===s&&(r=null),o=Kn(),mn=t,t=Er(e,r)):(yn=t,t=s),t===s&&(t=yn,Kn(),(e=Wn())!==s?(Kn(),r=yn,91===n.charCodeAt(yn)?(o=C,yn++):(o=s,0===_n&&kn($t)),o!==s&&(i=Bn())!==s?(93===n.charCodeAt(yn)?(a=A,yn++):(a=s,0===_n&&kn(qt)),a!==s?(mn=r,r=Tr(e,i)):(yn=r,r=s)):(yn=r,r=s),r===s&&(r=null),o=Kn(),mn=t,t=Mr(e,r)):(yn=t,t=s)),_n--,t===s&&0===_n&&kn(Xt),t}function Tn(){var t,e,r,o,i,a;for(t=yn,e=yn,r=[],o=yn,(i=Mn())!==s?(Kn(),44===n.charCodeAt(yn)?(a=b,yn++):(a=s,0===_n&&kn(Bt)),a!==s?(mn=o,o=Fr(i)):(yn=o,o=s)):(yn=o,o=s);o!==s;)r.push(o),o=yn,(i=Mn())!==s?(Kn(),44===n.charCodeAt(yn)?(a=b,yn++):(a=s,0===_n&&kn(Bt)),a!==s?(mn=o,o=Fr(i)):(yn=o,o=s)):(yn=o,o=s);return o=yn,(i=Mn())!==s&&(mn=o,i=Ir(i)),(o=i)!==s?e=r=[r,o]:(yn=e,e=s),e!==s&&(mn=t,e=Br(e)),e}function Mn(){var t,e,r,o,i,a;return t=yn,e=yn,(r=function(){var t,e;return t=yn,Kn(),(e=function(){var t;return _n++,n.substr(yn,3)===S?(t=S,yn+=3):(t=s,0===_n&&kn(Zt)),t===s&&(n.substr(yn,3)===j?(t=j,yn+=3):(t=s,0===_n&&kn(Yt))),_n--,t===s&&0===_n&&kn(Kt),t}())!==s?(Kn(),mn=t,t=zr(e)):(yn=t,t=s),t}())!==s&&(mn=e,r=Nr(r)),(e=r)===s&&(e=yn,(r=function(){var t,e,r,o;return t=yn,Kn(),(e=Rn())!==s?(Kn(),(r=function(){var t,e;return t=yn,(e=Dn())===s&&(e=Fn())===s&&(e=In())===s&&(e=function(){var t;return _n++,(t=n.substr(yn,4)).toLowerCase()===Z?yn+=4:(t=s,0===_n&&kn(Oe)),t===s&&((t=n.substr(yn,4)).toLowerCase()===Y?yn+=4:(t=s,0===_n&&kn(Se)),t===s&&((t=n.substr(yn,4)).toLowerCase()===Q?yn+=4:(t=s,0===_n&&kn(je)),t===s&&((t=n.substr(yn,3)).toLowerCase()===J?yn+=3:(t=s,0===_n&&kn(ke))))),_n--,t===s&&0===_n&&kn(Ae),t}()),e!==s&&(mn=t,e=Kr(e)),e}())!==s?(Kn(),(o=Rn())!==s?(Kn(),mn=t,t=Xr(e,r,o)):(yn=t,t=s)):(yn=t,t=s)):(yn=t,t=s),t===s&&(t=yn,Kn(),42===n.charCodeAt(yn)?(e=O,yn++):(e=s,0===_n&&kn(Ut)),e!==s?(Kn(),(r=In())!==s?(Kn(),(o=Rn())!==s?(Kn(),mn=t,t=$r(r,o)):(yn=t,t=s)):(yn=t,t=s)):(yn=t,t=s),t===s&&(t=yn,Kn(),(e=Rn())!==s?(Kn(),(r=Fn())!==s?(Kn(),42===n.charCodeAt(yn)?(o=O,yn++):(o=s,0===_n&&kn(Ut)),o!==s?(Kn(),mn=t,t=qr(e,r)):(yn=t,t=s)):(yn=t,t=s)):(yn=t,t=s),t===s&&(t=yn,Kn(),(e=Rn())!==s?(Kn(),(r=Dn())!==s?(Kn(),42===n.charCodeAt(yn)?(o=O,yn++):(o=s,0===_n&&kn(Ut)),o!==s?(Kn(),mn=t,t=Ur(e,r)):(yn=t,t=s)):(yn=t,t=s)):(yn=t,t=s)))),t}())!==s&&(mn=e,r=Hr(r)),(e=r)===s&&(e=yn,(r=function(){var t,e;return t=yn,Kn(),(e=function(){var t;return _n++,n.substr(yn,3)===k?(t=k,yn+=3):(t=s,0===_n&&kn(Jt)),_n--,t===s&&0===_n&&kn(Qt),t}())!==s?(Kn(),mn=t,t=Vr(e)):(yn=t,t=s),t}())!==s&&(mn=e,r=Rr(r)),e=r)),e!==s?(r=yn,91===n.charCodeAt(yn)?(o=C,yn++):(o=s,0===_n&&kn($t)),o!==s&&(i=Bn())!==s?(93===n.charCodeAt(yn)?(a=A,yn++):(a=s,0===_n&&kn(qt)),a!==s?(mn=r,r=Wr(e,i)):(yn=r,r=s)):(yn=r,r=s),r===s&&(r=null),mn=t,t=Gr(e,r)):(yn=t,t=s),t}function Dn(){var t;return _n++,n.substr(yn,2)===L?(t=L,yn+=2):(t=s,0===_n&&kn(ee)),t===s&&(n.substr(yn,3)===P?(t=P,yn+=3):(t=s,0===_n&&kn(re)),t===s&&(n.substr(yn,2)===E?(t=E,yn+=2):(t=s,0===_n&&kn(ne)),t===s&&(n.substr(yn,5)===T?(t=T,yn+=5):(t=s,0===_n&&kn(oe)),t===s&&(n.substr(yn,3)===M?(t=M,yn+=3):(t=s,0===_n&&kn(ie)),t===s&&(n.substr(yn,2)===D?(t=D,yn+=2):(t=s,0===_n&&kn(ae)),t===s&&(n.substr(yn,4)===F?(t=F,yn+=4):(t=s,0===_n&&kn(ce)),t===s&&(n.substr(yn,2)===I?(t=I,yn+=2):(t=s,0===_n&&kn(ue)),t===s&&(n.substr(yn,3)===B?(t=B,yn+=3):(t=s,0===_n&&kn(se)))))))))),_n--,t===s&&0===_n&&kn(te),t}function Fn(){var t;return _n++,n.substr(yn,2)===N?(t=N,yn+=2):(t=s,0===_n&&kn(fe)),t===s&&(n.substr(yn,3)===H?(t=H,yn+=3):(t=s,0===_n&&kn(de)),t===s&&(n.substr(yn,2)===R?(t=R,yn+=2):(t=s,0===_n&&kn(pe)),t===s&&(n.substr(yn,2)===W?(t=W,yn+=2):(t=s,0===_n&&kn(he)),t===s&&(n.substr(yn,2)===G?(t=G,yn+=2):(t=s,0===_n&&kn(ge)),t===s&&((t=n.substr(yn,2)).toLowerCase()===z?yn+=2:(t=s,0===_n&&kn(be))))))),_n--,t===s&&0===_n&&kn(le),t}function In(){var t;return _n++,n.substr(yn,2)===V?(t=V,yn+=2):(t=s,0===_n&&kn(me)),t===s&&(n.substr(yn,3)===X?(t=X,yn+=3):(t=s,0===_n&&kn(ve)),t===s&&(n.substr(yn,2)===$?(t=$,yn+=2):(t=s,0===_n&&kn(xe)),t===s&&(n.substr(yn,2)===q?(t=q,yn+=2):(t=s,0===_n&&kn(we)),t===s&&(n.substr(yn,2)===U?(t=U,yn+=2):(t=s,0===_n&&kn(_e)),t===s&&((t=n.substr(yn,2)).toLowerCase()===K?yn+=2:(t=s,0===_n&&kn(Ce))))))),_n--,t===s&&0===_n&&kn(ye),t}function Bn(){var t,e,r,o,i,a;for(t=yn,e=yn,r=[],o=yn,(i=Nn())!==s?(44===n.charCodeAt(yn)?(a=b,yn++):(a=s,0===_n&&kn(Bt)),a!==s?(mn=o,o=Zr(i)):(yn=o,o=s)):(yn=o,o=s);o!==s;)r.push(o),o=yn,(i=Nn())!==s?(44===n.charCodeAt(yn)?(a=b,yn++):(a=s,0===_n&&kn(Bt)),a!==s?(mn=o,o=Zr(i)):(yn=o,o=s)):(yn=o,o=s);return o=yn,(i=Nn())!==s&&(mn=o,i=Yr(i)),(o=i)!==s?e=r=[r,o]:(yn=e,e=s),e!==s&&(mn=t,e=Qr(e)),e}function Nn(){var t,e,r,o;return t=yn,Kn(),(e=function(){var t;return _n++,(t=n.substr(yn,5)).toLowerCase()===tt?yn+=5:(t=s,0===_n&&kn(Pe)),t===s&&((t=n.substr(yn,5)).toLowerCase()===et?yn+=5:(t=s,0===_n&&kn(Ee)),t===s&&((t=n.substr(yn,2)).toLowerCase()===rt?yn+=2:(t=s,0===_n&&kn(Te)),t===s&&((t=n.substr(yn,3)).toLowerCase()===nt?yn+=3:(t=s,0===_n&&kn(Me)),t===s&&((t=n.substr(yn,9)).toLowerCase()===ot?yn+=9:(t=s,0===_n&&kn(De)),t===s&&((t=n.substr(yn,10)).toLowerCase()===it?yn+=10:(t=s,0===_n&&kn(Fe)),t===s&&((t=n.substr(yn,9)).toLowerCase()===at?yn+=9:(t=s,0===_n&&kn(Ie)),t===s&&((t=n.substr(yn,10)).toLowerCase()===ct?yn+=10:(t=s,0===_n&&kn(Be)),t===s&&((t=n.substr(yn,11)).toLowerCase()===ut?yn+=11:(t=s,0===_n&&kn(Ne)),t===s&&((t=n.substr(yn,12)).toLowerCase()===st?yn+=12:(t=s,0===_n&&kn(He)),t===s&&((t=n.substr(yn,12)).toLowerCase()===lt?yn+=12:(t=s,0===_n&&kn(Re)),t===s&&((t=n.substr(yn,13)).toLowerCase()===ft?yn+=13:(t=s,0===_n&&kn(We)),t===s&&((t=n.substr(yn,12)).toLowerCase()===dt?yn+=12:(t=s,0===_n&&kn(Ge)),t===s&&((t=n.substr(yn,13)).toLowerCase()===pt?yn+=13:(t=s,0===_n&&kn(ze)),t===s&&((t=n.substr(yn,14)).toLowerCase()===ht?yn+=14:(t=s,0===_n&&kn(Ve)),t===s&&((t=n.substr(yn,15)).toLowerCase()===gt?yn+=15:(t=s,0===_n&&kn(Xe)),t===s&&((t=n.substr(yn,7)).toLowerCase()===bt?yn+=7:(t=s,0===_n&&kn($e)))))))))))))))))),_n--,t===s&&0===_n&&kn(Le),t}())!==s?(Kn(),61===n.charCodeAt(yn)?(r=w,yn++):(r=s,0===_n&&kn(zt)),r!==s?(Kn(),(o=Rn())!==s?(Kn(),mn=t,t=Jr(e,o)):(yn=t,t=s)):(yn=t,t=s)):(yn=t,t=s),t}function Hn(){var t,e,r,o;return _n++,t=yn,34===n.charCodeAt(yn)?(e=yt,yn++):(e=s,0===_n&&kn(Ue)),e!==s?(r=function(){var t,e,r,o;for(t=[],e=yn,r=yn,_n++,34===n.charCodeAt(yn)?(o=yt,yn++):(o=s,0===_n&&kn(Ue)),_n--,o===s?r=void 0:(yn=r,r=s),r!==s?(n.substr(yn,2)===mt?(o=mt,yn+=2):(o=s,0===_n&&kn(Ke)),o===s&&(n.length>yn?(o=n.charAt(yn),yn++):(o=s,0===_n&&kn(Ze))),o!==s?(mn=e,e=en(o)):(yn=e,e=s)):(yn=e,e=s);e!==s;)t.push(e),e=yn,r=yn,_n++,34===n.charCodeAt(yn)?(o=yt,yn++):(o=s,0===_n&&kn(Ue)),_n--,o===s?r=void 0:(yn=r,r=s),r!==s?(n.substr(yn,2)===mt?(o=mt,yn+=2):(o=s,0===_n&&kn(Ke)),o===s&&(n.length>yn?(o=n.charAt(yn),yn++):(o=s,0===_n&&kn(Ze))),o!==s?(mn=e,e=en(o)):(yn=e,e=s)):(yn=e,e=s);return t}(),34===n.charCodeAt(yn)?(o=yt,yn++):(o=s,0===_n&&kn(Ue)),o!==s?(mn=t,t=tn(r)):(yn=t,t=s)):(yn=t,t=s),_n--,t===s&&(e=s,0===_n&&kn(qe)),t}function Rn(){var t;return _n++,(t=Wn())===s&&(t=Hn()),_n--,t===s&&0===_n&&kn(Ye),t}function Wn(){var t,e,r;if(t=yn,e=[],r=n.charAt(yn),kt.test(r)?yn++:(r=s,0===_n&&kn(Qe)),r!==s)for(;r!==s;)e.push(r),r=n.charAt(yn),kt.test(r)?yn++:(r=s,0===_n&&kn(Qe));else e=s;return e!==s&&(mn=t,e=rn(e)),e}function Gn(){var t,e;return _n++,t=yn,e=n.charAt(yn),Lt.test(e)?yn++:(e=s,0===_n&&kn(tr)),e!==s&&(mn=t,e=nn(e)),_n--,(t=e)===s&&(e=s,0===_n&&kn(Je)),t}function zn(){var t,e;return _n++,t=yn,e=n.charAt(yn),Pt.test(e)?yn++:(e=s,0===_n&&kn(rr)),e!==s&&(mn=t,e=on(e)),_n--,(t=e)===s&&(e=s,0===_n&&kn(er)),t}function Vn(){var t,e,r;return t=yn,e=yn,_n++,n.substr(yn,2)===xt?(r=xt,yn+=2):(r=s,0===_n&&kn(or)),_n--,r===s?e=void 0:(yn=e,e=s),e!==s?(n.length>yn?(r=n.charAt(yn),yn++):(r=s,0===_n&&kn(Ze)),r!==s?(mn=t,t=an(r)):(yn=t,t=s)):(yn=t,t=s),t}function Xn(){var t,e,r,o;if(t=yn,(e=function(){var t;return n.substr(yn,2)===vt?(t=vt,yn+=2):(t=s,0===_n&&kn(nr)),t}())!==s){for(r=[],o=Vn();o!==s;)r.push(o),o=Vn();(o=function(){var t;return n.substr(yn,2)===xt?(t=xt,yn+=2):(t=s,0===_n&&kn(or)),t}())!==s?(mn=t,t=cn(e,r,o)):(yn=t,t=s)}else yn=t,t=s;return t}function $n(){var t;return t=n.charAt(yn),Et.test(t)?yn++:(t=s,0===_n&&kn(cr)),t}function qn(){var t,e,r,o;if(t=yn,(e=function(){var t;return n.substr(yn,2)===wt?(t=wt,yn+=2):(t=s,0===_n&&kn(ir)),t===s&&(35===n.charCodeAt(yn)?(t=_t,yn++):(t=s,0===_n&&kn(ar))),t}())!==s){for(r=[],o=$n();o!==s;)r.push(o),o=$n();mn=t,t=un(e,r)}else yn=t,t=s;return t}function Un(){var t;return _n++,(t=qn())===s&&(t=Xn()),_n--,t===s&&0===_n&&kn(ur),t}function Kn(){var t,e;for(t=[],(e=Gn())===s&&(e=zn())===s&&(e=Un());e!==s;)t.push(e),(e=Gn())===s&&(e=zn())===s&&(e=Un());return t}function Zn(){var t;return(t=function(){var t,e,r,o,i;return _n++,t=yn,e=yn,(r=Yn())!==s?(46===n.charCodeAt(yn)?(o=Ct,yn++):(o=s,0===_n&&kn(pr)),o!==s&&(i=Yn())!==s?e=r=[r,o,i]:(yn=e,e=s)):(yn=e,e=s),e!==s&&(mn=t,e=pn(e)),_n--,(t=e)===s&&(e=s,0===_n&&kn(dr)),t}())===s&&(t=Yn()),t}function Yn(){var t,e,r;if(_n++,t=yn,e=[],r=n.charAt(yn),Tt.test(r)?yn++:(r=s,0===_n&&kn(fr)),r!==s)for(;r!==s;)e.push(r),r=n.charAt(yn),Tt.test(r)?yn++:(r=s,0===_n&&kn(fr));else e=s;return e!==s&&(mn=t,e=dn(e)),_n--,(t=e)===s&&(e=s,0===_n&&kn(lr)),t}function Qn(){var t;return(t=n.substr(yn,4)).toLowerCase()===At?yn+=4:(t=s,0===_n&&kn(gr)),t===s&&((t=n.substr(yn,5)).toLowerCase()===Ot?yn+=5:(t=s,0===_n&&kn(br)),t===s&&((t=n.substr(yn,2)).toLowerCase()===St?yn+=2:(t=s,0===_n&&kn(yr)),t===s&&((t=n.substr(yn,3)).toLowerCase()===jt?yn+=3:(t=s,0===_n&&kn(mr)),t===s&&(t=n.charAt(yn),Mt.test(t)?yn++:(t=s,0===_n&&kn(vr)))))),t}if(i=d(),o.peg$library)return{peg$result:i,peg$currPos:yn,peg$FAILED:s,peg$maxFailExpected:wn,peg$maxFailPos:xn};if(i!==s&&yn===n.length)return i;throw i!==s&&yne?t:(e-=t.length,t+(r+=r.repeat(e)).slice(0,e))}return function(t,e){function r(){this.constructor=t}r.prototype=e.prototype,t.prototype=new r}(r,Error),r.prototype.format=function(t){var e="Error: "+this.message;if(this.location){var r,o=null;for(r=0;r0){for(e=1,r=1;e",T="==",M="<<=>>",D="<=>",F="..",I="<<>>",B="::",N="<:>",H="->",R="=>>",W="=>",G=">>",z=":>",V="-x",X="<-",$="<<=",q="<=",U="<<",K="<:",Z="x-",Y="note",Q="abox",J="rbox",tt="box",et="alt",rt="else",nt="opt",ot="break",it="par",at="seq",ct="strict",ut="neg",st="critical",lt="ignore",ft="consider",dt="assert",pt="loop",ht="ref",gt="exc",bt='"',yt='\\"',mt="/*",vt="*/",xt="//",wt="#",_t=".",Ct="true",At="false",Ot="on",St="off",jt="auto",kt=/^[,;{]/,Lt=/^[^;, "\t\n\r=\-><:{*]/,Pt=/^[ \t]/,Et=/^[\r\n]/,Tt=/^[^\r\n]/,Mt=/^[0-9]/,Dt=/^[0-1]/,Ft=kn(",",!1),It=kn(";",!1),Bt=kn("hscale",!0),Nt=kn("arcgradient",!0),Ht=kn("=",!1),Rt=kn("width",!0),Wt=kn("wordwraparcs",!0),Gt=kn("wordwrapentities",!0),zt=kn("wordwrapboxes",!0),Vt=kn("watermark",!0),Xt=Pn("entity"),$t=kn(":",!1),qt=kn("*",!1),Ut=kn("{",!1),Kt=kn("}",!1),Zt=Pn("empty row"),Yt=kn("|||",!1),Qt=kn("...",!1),Jt=Pn("---"),te=kn("---",!1),ee=Pn("bi-directional arrow"),re=kn("--",!1),ne=kn("<->",!1),oe=kn("==",!1),ie=kn("<<=>>",!1),ae=kn("<=>",!1),ce=kn("..",!1),ue=kn("<<>>",!1),se=kn("::",!1),le=kn("<:>",!1),fe=Pn("left to right arrow"),de=kn("->",!1),pe=kn("=>>",!1),he=kn("=>",!1),ge=kn(">>",!1),be=kn(":>",!1),ye=kn("-x",!0),me=Pn("right to left arrow"),ve=kn("<-",!1),xe=kn("<<=",!1),we=kn("<=",!1),_e=kn("<<",!1),Ce=kn("<:",!1),Ae=kn("x-",!0),Oe=Pn("box"),Se=kn("note",!0),je=kn("abox",!0),ke=kn("rbox",!0),Le=kn("box",!0),Pe=Pn("inline expression"),Ee=kn("alt",!0),Te=kn("else",!0),Me=kn("opt",!0),De=kn("break",!0),Fe=kn("par",!0),Ie=kn("seq",!0),Be=kn("strict",!0),Ne=kn("neg",!0),He=kn("critical",!0),Re=kn("ignore",!0),We=kn("consider",!0),Ge=kn("assert",!0),ze=kn("loop",!0),Ve=kn("ref",!0),Xe=kn("exc",!0),$e=Pn("double quoted string"),qe=kn('"',!1),Ue=kn('\\"',!1),Ke={type:"any"},Ze=Ln([",",";","{"],!1,!1),Ye=Pn("identifier"),Qe=Ln([";",","," ",'"',"\t","\n","\r","=","-",">","<",":","{","*"],!0,!1),Je=Pn("whitespace"),tr=Ln([" ","\t"],!1,!1),er=Pn("lineend"),rr=Ln(["\r","\n"],!1,!1),nr=kn("/*",!1),or=kn("*/",!1),ir=kn("//",!1),ar=kn("#",!1),cr=Ln(["\r","\n"],!0,!1),ur=Pn("comment"),sr=Pn("number"),lr=Ln([["0","9"]],!1,!1),fr=kn(".",!1),dr=Pn("boolean"),pr=kn("true",!0),hr=kn("false",!0),gr=kn("on",!0),br=kn("off",!0),yr=Ln([["0","1"]],!1,!1),mr=Pn("size"),vr=kn("auto",!0),xr=function(r,n){return n.entities=co(n.entities||[],n.arcs),n=t({meta:e.getMetaInfo(n.options,n.arcs)},n),r.length>0&&(n=t({precomment:r},n)),n},wr=function(t,e,r){var n={};return t&&(n.options=t),e&&(n.entities=e),r&&(n.arcs=r),n},_r=function(t){return t},Cr=function(t){return t},Ar=function(e){return e[0].concat(e[1]).reduce(t,{})},Or=function(t,r){return e.nameValue2Option(t,r)},Sr=function(t,r){return e.nameValue2Option(t,r)},jr=function(t,r){return e.nameValue2Option(t,e.flattenBoolean(r))},kr=function(t,r){return e.nameValue2Option(t,e.flattenBoolean(r))},Lr=function(t,r){return e.nameValue2Option(t,e.flattenBoolean(r))},Pr=function(t,r){return e.nameValue2Option(t,r)},Er=function(t){return t},Tr=function(t){return t},Mr=function(t){return t[0].concat(t[1])},Dr=function(t,e){return e},Fr=function(t,e){var r=ao(t);return e&&(r.label=e),r},Ir=function(t){return t},Br=function(t){return t},Nr=function(t){return t},Hr=function(t){return t[0].concat(t[1])},Rr=function(t){return t},Wr=function(t){return t},Gr=function(t){return t},zr=function(t,e){return e},Vr=function(t,e){return e&&(t.label=e),t},Xr=function(t){return{kind:t}},$r=function(t){return{kind:t}},qr=function(t,e,r){return{kind:e,from:t,to:r}},Ur=function(t,e){return{kind:t,from:"*",to:e}},Kr=function(t,e){return{kind:e,from:t,to:"*"}},Zr=function(t,e){return{kind:e,from:t,to:"*"}},Yr=function(t,e,r,n){return n},Qr=function(t,e,r,n,o){var i={kind:e,from:t,to:r,arcs:o};return n&&(i.label=n),i},Jr=function(t){return t.toLowerCase()},tn=function(t){return t.toLowerCase()},en=function(t){return t.join("")},rn=function(t){return t},nn=function(t){return t.join("").trim()},on=function(t){return t},an=function(t){return t.join("")},cn=function(t){return t},un=function(t){return t},sn=function(t){return t},ln=function(t,e,r){return t+e.join("")+r},fn=function(t,e){return t+e.join("")},dn=function(t){return t},pn=function(t){return t.toString()},hn=function(t){return t.toString()},gn=function(t){return parseInt(t.join(""),10)},bn=function(t){return parseFloat(t.join(""))},yn=function(t){return t},mn=function(t){return t.toString()},vn=function(t){return t},xn=function(t){return t},wn=function(t){return t.toString()},_n=function(t){return t.toLowerCase()},Cn=0|o.peg$currPos,An=[{line:1,column:1}],On=Cn,Sn=o.peg$maxFailExpected||[],jn=0|o.peg$silentFails;if(o.startRule){if(!(o.startRule in f))throw new Error("Can't start parsing from rule \""+o.startRule+'".');d=f[o.startRule]}function kn(t,e){return{type:"literal",text:t,ignoreCase:e}}function Ln(t,e,r){return{type:"class",parts:t,inverted:e,ignoreCase:r}}function Pn(t){return{type:"other",description:t}}function En(t){var e,r=An[t];if(r)return r;if(t>=An.length)e=An.length-1;else for(e=t;!An[--e];);for(r={line:(r=An[e]).line,column:r.column};eOn&&(On=Cn,Sn=[]),Sn.push(t))}function Dn(){var t,e;return t=Jn(),e=function(){var t,e,r;return(t=function(){var t,e,r,o,i;for(t=Cn,e=[],r=Cn,(o=Fn())!==s?(44===n.charCodeAt(Cn)?(i=p,Cn++):(i=s,0===jn&&Mn(Ft)),i!==s?r=_r(o):(Cn=r,r=s)):(Cn=r,r=s);r!==s;)e.push(r),r=Cn,(o=Fn())!==s?(44===n.charCodeAt(Cn)?(i=p,Cn++):(i=s,0===jn&&Mn(Ft)),i!==s?r=_r(o):(Cn=r,r=s)):(Cn=r,r=s);return r=Cn,(o=Fn())!==s?(59===n.charCodeAt(Cn)?(i=h,Cn++):(i=s,0===jn&&Mn(It)),i!==s?r=Cr(o):(Cn=r,r=s)):(Cn=r,r=s),r!==s?t=e=[e,r]:(Cn=t,t=s),t!==s&&(t=Ar(t)),t}())===s&&(t=null),(e=function(){var t,e,r,o,i;for(t=Cn,e=[],r=Cn,(o=In())!==s?(44===n.charCodeAt(Cn)?(i=p,Cn++):(i=s,0===jn&&Mn(Ft)),i!==s?r=Er(o):(Cn=r,r=s)):(Cn=r,r=s);r!==s;)e.push(r),r=Cn,(o=In())!==s?(44===n.charCodeAt(Cn)?(i=p,Cn++):(i=s,0===jn&&Mn(Ft)),i!==s?r=Er(o):(Cn=r,r=s)):(Cn=r,r=s);return r=Cn,(o=In())!==s?(59===n.charCodeAt(Cn)?(i=h,Cn++):(i=s,0===jn&&Mn(It)),i!==s?r=Tr(o):(Cn=r,r=s)):(Cn=r,r=s),r!==s?t=e=[e,r]:(Cn=t,t=s),t!==s&&(t=Mr(t)),t}())===s&&(e=null),(r=Bn())===s&&(r=null),wr(t,e,r)}(),Jn(),xr(t,e)}function Fn(){var t,e,r,o;return t=Cn,Jn(),(e=n.substr(Cn,6)).toLowerCase()===g?Cn+=6:(e=s,0===jn&&Mn(Bt)),e===s&&((e=n.substr(Cn,11)).toLowerCase()===b?Cn+=11:(e=s,0===jn&&Mn(Nt))),e!==s?(Jn(),61===n.charCodeAt(Cn)?(r=y,Cn++):(r=s,0===jn&&Mn(Ht)),r!==s?(Jn(),(o=function(){var t,e;return jn++,t=Cn,(e=function(){var t,e,r,o;return t=Cn,34===n.charCodeAt(Cn)?(e=bt,Cn++):(e=s,0===jn&&Mn(qe)),e!==s&&(r=to())!==s?(34===n.charCodeAt(Cn)?(o=bt,Cn++):(o=s,0===jn&&Mn(qe)),o!==s?t=hn(r):(Cn=t,t=s)):(Cn=t,t=s),t}())!==s&&(e=dn(e)),(t=e)===s&&(t=Cn,(e=to())!==s&&(e=pn(e)),t=e),jn--,t===s&&(e=s,0===jn&&Mn(sr)),t}())!==s?(Jn(),t=Or(e,o)):(Cn=t,t=s)):(Cn=t,t=s)):(Cn=t,t=s),t===s&&(t=Cn,Jn(),(e=n.substr(Cn,5)).toLowerCase()===m?Cn+=5:(e=s,0===jn&&Mn(Rt)),e!==s?(Jn(),61===n.charCodeAt(Cn)?(r=y,Cn++):(r=s,0===jn&&Mn(Ht)),r!==s?(Jn(),(o=function(){var t;return jn++,(t=function(){var t,e,r,o;return t=Cn,34===n.charCodeAt(Cn)?(e=bt,Cn++):(e=s,0===jn&&Mn(qe)),e!==s&&(r=oo())!==s?(34===n.charCodeAt(Cn)?(o=bt,Cn++):(o=s,0===jn&&Mn(qe)),o!==s?t=xn(r):(Cn=t,t=s)):(Cn=t,t=s),t}())===s&&(t=oo()),jn--,t===s&&0===jn&&Mn(mr),t}())!==s?(Jn(),t=Sr(e,o)):(Cn=t,t=s)):(Cn=t,t=s)):(Cn=t,t=s),t===s&&(t=Cn,Jn(),(e=n.substr(Cn,12)).toLowerCase()===v?Cn+=12:(e=s,0===jn&&Mn(Wt)),e!==s?(Jn(),61===n.charCodeAt(Cn)?(r=y,Cn++):(r=s,0===jn&&Mn(Ht)),r!==s?(Jn(),(o=ro())!==s?(Jn(),t=jr(e,o)):(Cn=t,t=s)):(Cn=t,t=s)):(Cn=t,t=s),t===s&&(t=Cn,Jn(),(e=n.substr(Cn,16)).toLowerCase()===x?Cn+=16:(e=s,0===jn&&Mn(Gt)),e!==s?(Jn(),61===n.charCodeAt(Cn)?(r=y,Cn++):(r=s,0===jn&&Mn(Ht)),r!==s?(Jn(),(o=ro())!==s?(Jn(),t=kr(e,o)):(Cn=t,t=s)):(Cn=t,t=s)):(Cn=t,t=s),t===s&&(t=Cn,Jn(),(e=n.substr(Cn,13)).toLowerCase()===w?Cn+=13:(e=s,0===jn&&Mn(zt)),e!==s?(Jn(),61===n.charCodeAt(Cn)?(r=y,Cn++):(r=s,0===jn&&Mn(Ht)),r!==s?(Jn(),(o=ro())!==s?(Jn(),t=Lr(e,o)):(Cn=t,t=s)):(Cn=t,t=s)):(Cn=t,t=s),t===s&&(t=Cn,Jn(),(e=n.substr(Cn,9)).toLowerCase()===_?Cn+=9:(e=s,0===jn&&Mn(Vt)),e!==s?(Jn(),61===n.charCodeAt(Cn)?(r=y,Cn++):(r=s,0===jn&&Mn(Ht)),r!==s?(Jn(),(o=Vn())!==s?(Jn(),t=Pr(e,o)):(Cn=t,t=s)):(Cn=t,t=s)):(Cn=t,t=s)))))),t}function In(){var t,e,r,o,i;return jn++,t=Cn,Jn(),(e=Xn())!==s?(Jn(),r=Cn,58===n.charCodeAt(Cn)?(o=C,Cn++):(o=s,0===jn&&Mn($t)),o!==s?(Jn(),(i=zn())!==s?(Jn(),r=Dr(e,i)):(Cn=r,r=s)):(Cn=r,r=s),r===s&&(r=null),t=Fr(e,r)):(Cn=t,t=s),jn--,t===s&&0===jn&&Mn(Xt),t}function Bn(){var t,e,r,o;if(t=[],e=Cn,(r=Nn())!==s?(Jn(),59===n.charCodeAt(Cn)?(o=h,Cn++):(o=s,0===jn&&Mn(It)),o!==s?e=Ir(r):(Cn=e,e=s)):(Cn=e,e=s),e!==s)for(;e!==s;)t.push(e),e=Cn,(r=Nn())!==s?(Jn(),59===n.charCodeAt(Cn)?(o=h,Cn++):(o=s,0===jn&&Mn(It)),o!==s?e=Ir(r):(Cn=e,e=s)):(Cn=e,e=s);else t=s;return t}function Nn(){var t,e,r,o,i;for(t=Cn,e=[],r=Cn,(o=Hn())!==s?(44===n.charCodeAt(Cn)?(i=p,Cn++):(i=s,0===jn&&Mn(Ft)),i!==s?r=Br(o):(Cn=r,r=s)):(Cn=r,r=s);r!==s;)e.push(r),r=Cn,(o=Hn())!==s?(44===n.charCodeAt(Cn)?(i=p,Cn++):(i=s,0===jn&&Mn(Ft)),i!==s?r=Br(o):(Cn=r,r=s)):(Cn=r,r=s);return r=Cn,(o=Hn())!==s&&(o=Nr(o)),(r=o)!==s?t=e=[e,r]:(Cn=t,t=s),t!==s&&(t=Hr(t)),t}function Hn(){var t;return(t=function(){var t,e,r,o,i;return t=Cn,e=Cn,(r=function(){var t,e;return t=Cn,Jn(),(e=function(){var t;return jn++,n.substr(Cn,3)===j?(t=j,Cn+=3):(t=s,0===jn&&Mn(Yt)),t===s&&(n.substr(Cn,3)===k?(t=k,Cn+=3):(t=s,0===jn&&Mn(Qt))),jn--,t===s&&0===jn&&Mn(Zt),t}())!==s?(Jn(),t=Xr(e)):(Cn=t,t=s),t}())!==s&&(r=Rr(r)),(e=r)===s&&(e=Cn,(r=function(){var t,e,r,o;return t=Cn,Jn(),(e=Xn())!==s?(Jn(),(r=function(){var t;return(t=Rn())===s&&(t=Wn())===s&&(t=Gn())===s&&(t=function(){var t;return jn++,(t=n.substr(Cn,4)).toLowerCase()===Y?Cn+=4:(t=s,0===jn&&Mn(Se)),t===s&&((t=n.substr(Cn,4)).toLowerCase()===Q?Cn+=4:(t=s,0===jn&&Mn(je)),t===s&&((t=n.substr(Cn,4)).toLowerCase()===J?Cn+=4:(t=s,0===jn&&Mn(ke)),t===s&&((t=n.substr(Cn,3)).toLowerCase()===tt?Cn+=3:(t=s,0===jn&&Mn(Le))))),jn--,t===s&&0===jn&&Mn(Oe),t}()),t!==s&&(t=Jr(t)),t}())!==s?(Jn(),(o=Xn())!==s?(Jn(),t=qr(e,r,o)):(Cn=t,t=s)):(Cn=t,t=s)):(Cn=t,t=s),t===s&&(t=Cn,Jn(),42===n.charCodeAt(Cn)?(e=A,Cn++):(e=s,0===jn&&Mn(qt)),e!==s?(Jn(),(r=Gn())!==s?(Jn(),(o=Xn())!==s?(Jn(),t=Ur(r,o)):(Cn=t,t=s)):(Cn=t,t=s)):(Cn=t,t=s),t===s&&(t=Cn,Jn(),(e=Xn())!==s?(Jn(),(r=Wn())!==s?(Jn(),42===n.charCodeAt(Cn)?(o=A,Cn++):(o=s,0===jn&&Mn(qt)),o!==s?(Jn(),t=Kr(e,r)):(Cn=t,t=s)):(Cn=t,t=s)):(Cn=t,t=s),t===s&&(t=Cn,Jn(),(e=Xn())!==s?(Jn(),(r=Rn())!==s?(Jn(),42===n.charCodeAt(Cn)?(o=A,Cn++):(o=s,0===jn&&Mn(qt)),o!==s?(Jn(),t=Zr(e,r)):(Cn=t,t=s)):(Cn=t,t=s)):(Cn=t,t=s)))),t}())!==s&&(r=Wr(r)),(e=r)===s&&(e=Cn,(r=function(){var t,e;return t=Cn,Jn(),(e=function(){var t;return jn++,n.substr(Cn,3)===L?(t=L,Cn+=3):(t=s,0===jn&&Mn(te)),jn--,t===s&&0===jn&&Mn(Jt),t}())!==s?(Jn(),t=$r(e)):(Cn=t,t=s),t}())!==s&&(r=Gr(r)),e=r)),e!==s?(r=Cn,58===n.charCodeAt(Cn)?(o=C,Cn++):(o=s,0===jn&&Mn($t)),o!==s?(Jn(),(i=zn())!==s?(Jn(),r=zr(e,i)):(Cn=r,r=s)):(Cn=r,r=s),r===s&&(r=null),t=Vr(e,r)):(Cn=t,t=s),t}())===s&&(t=function(){var t,e,r,o,i,a,c,u;return t=Cn,Jn(),(e=Xn())!==s?(Jn(),(r=function(){var t,e;return jn++,t=Cn,(e=n.substr(Cn,3)).toLowerCase()===et?Cn+=3:(e=s,0===jn&&Mn(Ee)),e===s&&((e=n.substr(Cn,4)).toLowerCase()===rt?Cn+=4:(e=s,0===jn&&Mn(Te)),e===s&&((e=n.substr(Cn,3)).toLowerCase()===nt?Cn+=3:(e=s,0===jn&&Mn(Me)),e===s&&((e=n.substr(Cn,5)).toLowerCase()===ot?Cn+=5:(e=s,0===jn&&Mn(De)),e===s&&((e=n.substr(Cn,3)).toLowerCase()===it?Cn+=3:(e=s,0===jn&&Mn(Fe)),e===s&&((e=n.substr(Cn,3)).toLowerCase()===at?Cn+=3:(e=s,0===jn&&Mn(Ie)),e===s&&((e=n.substr(Cn,6)).toLowerCase()===ct?Cn+=6:(e=s,0===jn&&Mn(Be)),e===s&&((e=n.substr(Cn,3)).toLowerCase()===ut?Cn+=3:(e=s,0===jn&&Mn(Ne)),e===s&&((e=n.substr(Cn,8)).toLowerCase()===st?Cn+=8:(e=s,0===jn&&Mn(He)),e===s&&((e=n.substr(Cn,6)).toLowerCase()===lt?Cn+=6:(e=s,0===jn&&Mn(Re)),e===s&&((e=n.substr(Cn,8)).toLowerCase()===ft?Cn+=8:(e=s,0===jn&&Mn(We)),e===s&&((e=n.substr(Cn,6)).toLowerCase()===dt?Cn+=6:(e=s,0===jn&&Mn(Ge)),e===s&&((e=n.substr(Cn,4)).toLowerCase()===pt?Cn+=4:(e=s,0===jn&&Mn(ze)),e===s&&((e=n.substr(Cn,3)).toLowerCase()===ht?Cn+=3:(e=s,0===jn&&Mn(Ve)),e===s&&((e=n.substr(Cn,3)).toLowerCase()===gt?Cn+=3:(e=s,0===jn&&Mn(Xe)))))))))))))))),e!==s&&(e=tn(e)),jn--,(t=e)===s&&(e=s,0===jn&&Mn(Pe)),t}())!==s?(Jn(),(o=Xn())!==s?(Jn(),i=Cn,58===n.charCodeAt(Cn)?(a=C,Cn++):(a=s,0===jn&&Mn($t)),a!==s?(Jn(),(c=zn())!==s?(Jn(),i=Yr(e,r,o,c)):(Cn=i,i=s)):(Cn=i,i=s),i===s&&(i=null),123===n.charCodeAt(Cn)?(a=O,Cn++):(a=s,0===jn&&Mn(Ut)),a!==s?(Jn(),(c=Bn())===s&&(c=null),Jn(),125===n.charCodeAt(Cn)?(u=S,Cn++):(u=s,0===jn&&Mn(Kt)),u!==s?(Jn(),t=Qr(e,r,o,i,c)):(Cn=t,t=s)):(Cn=t,t=s)):(Cn=t,t=s)):(Cn=t,t=s)):(Cn=t,t=s),t}()),t}function Rn(){var t;return jn++,n.substr(Cn,2)===P?(t=P,Cn+=2):(t=s,0===jn&&Mn(re)),t===s&&(n.substr(Cn,3)===E?(t=E,Cn+=3):(t=s,0===jn&&Mn(ne)),t===s&&(n.substr(Cn,2)===T?(t=T,Cn+=2):(t=s,0===jn&&Mn(oe)),t===s&&(n.substr(Cn,5)===M?(t=M,Cn+=5):(t=s,0===jn&&Mn(ie)),t===s&&(n.substr(Cn,3)===D?(t=D,Cn+=3):(t=s,0===jn&&Mn(ae)),t===s&&(n.substr(Cn,2)===F?(t=F,Cn+=2):(t=s,0===jn&&Mn(ce)),t===s&&(n.substr(Cn,4)===I?(t=I,Cn+=4):(t=s,0===jn&&Mn(ue)),t===s&&(n.substr(Cn,2)===B?(t=B,Cn+=2):(t=s,0===jn&&Mn(se)),t===s&&(n.substr(Cn,3)===N?(t=N,Cn+=3):(t=s,0===jn&&Mn(le)))))))))),jn--,t===s&&0===jn&&Mn(ee),t}function Wn(){var t;return jn++,n.substr(Cn,2)===H?(t=H,Cn+=2):(t=s,0===jn&&Mn(de)),t===s&&(n.substr(Cn,3)===R?(t=R,Cn+=3):(t=s,0===jn&&Mn(pe)),t===s&&(n.substr(Cn,2)===W?(t=W,Cn+=2):(t=s,0===jn&&Mn(he)),t===s&&(n.substr(Cn,2)===G?(t=G,Cn+=2):(t=s,0===jn&&Mn(ge)),t===s&&(n.substr(Cn,2)===z?(t=z,Cn+=2):(t=s,0===jn&&Mn(be)),t===s&&((t=n.substr(Cn,2)).toLowerCase()===V?Cn+=2:(t=s,0===jn&&Mn(ye))))))),jn--,t===s&&0===jn&&Mn(fe),t}function Gn(){var t;return jn++,n.substr(Cn,2)===X?(t=X,Cn+=2):(t=s,0===jn&&Mn(ve)),t===s&&(n.substr(Cn,3)===$?(t=$,Cn+=3):(t=s,0===jn&&Mn(xe)),t===s&&(n.substr(Cn,2)===q?(t=q,Cn+=2):(t=s,0===jn&&Mn(we)),t===s&&(n.substr(Cn,2)===U?(t=U,Cn+=2):(t=s,0===jn&&Mn(_e)),t===s&&(n.substr(Cn,2)===K?(t=K,Cn+=2):(t=s,0===jn&&Mn(Ce)),t===s&&((t=n.substr(Cn,2)).toLowerCase()===Z?Cn+=2:(t=s,0===jn&&Mn(Ae))))))),jn--,t===s&&0===jn&&Mn(me),t}function zn(){var t,e;return(t=Vn())===s&&(e=function(){var t,e,r,o;for(t=[],e=Cn,r=Cn,jn++,o=n.charAt(Cn),kt.test(o)?Cn++:(o=s,0===jn&&Mn(Ze)),jn--,o===s?r=void 0:(Cn=r,r=s),r!==s?(n.length>Cn?(o=n.charAt(Cn),Cn++):(o=s,0===jn&&Mn(Ke)),o!==s?e=on(o):(Cn=e,e=s)):(Cn=e,e=s);e!==s;)t.push(e),e=Cn,r=Cn,jn++,o=n.charAt(Cn),kt.test(o)?Cn++:(o=s,0===jn&&Mn(Ze)),jn--,o===s?r=void 0:(Cn=r,r=s),r!==s?(n.length>Cn?(o=n.charAt(Cn),Cn++):(o=s,0===jn&&Mn(Ke)),o!==s?e=on(o):(Cn=e,e=s)):(Cn=e,e=s);return t}(),t=nn(e)),t}function Vn(){var t,e,r,o;return jn++,t=Cn,34===n.charCodeAt(Cn)?(e=bt,Cn++):(e=s,0===jn&&Mn(qe)),e!==s?(r=function(){var t,e,r,o;for(t=[],e=Cn,r=Cn,jn++,34===n.charCodeAt(Cn)?(o=bt,Cn++):(o=s,0===jn&&Mn(qe)),jn--,o===s?r=void 0:(Cn=r,r=s),r!==s?(n.substr(Cn,2)===yt?(o=yt,Cn+=2):(o=s,0===jn&&Mn(Ue)),o===s&&(n.length>Cn?(o=n.charAt(Cn),Cn++):(o=s,0===jn&&Mn(Ke))),o!==s?e=rn(o):(Cn=e,e=s)):(Cn=e,e=s);e!==s;)t.push(e),e=Cn,r=Cn,jn++,34===n.charCodeAt(Cn)?(o=bt,Cn++):(o=s,0===jn&&Mn(qe)),jn--,o===s?r=void 0:(Cn=r,r=s),r!==s?(n.substr(Cn,2)===yt?(o=yt,Cn+=2):(o=s,0===jn&&Mn(Ue)),o===s&&(n.length>Cn?(o=n.charAt(Cn),Cn++):(o=s,0===jn&&Mn(Ke))),o!==s?e=rn(o):(Cn=e,e=s)):(Cn=e,e=s);return t}(),34===n.charCodeAt(Cn)?(o=bt,Cn++):(o=s,0===jn&&Mn(qe)),o!==s?t=en(r):(Cn=t,t=s)):(Cn=t,t=s),jn--,t===s&&(e=s,0===jn&&Mn($e)),t}function Xn(){var t,e,r;if(jn++,t=Cn,e=[],r=n.charAt(Cn),Lt.test(r)?Cn++:(r=s,0===jn&&Mn(Qe)),r!==s)for(;r!==s;)e.push(r),r=n.charAt(Cn),Lt.test(r)?Cn++:(r=s,0===jn&&Mn(Qe));else e=s;return e!==s&&(e=an(e)),(t=e)===s&&(t=Vn()),jn--,t===s&&(e=s,0===jn&&Mn(Ye)),t}function $n(){var t,e;return jn++,Cn,e=n.charAt(Cn),Pt.test(e)?Cn++:(e=s,0===jn&&Mn(tr)),e!==s&&(e=cn(e)),jn--,(t=e)===s&&(e=s,0===jn&&Mn(Je)),t}function qn(){var t,e;return jn++,Cn,e=n.charAt(Cn),Et.test(e)?Cn++:(e=s,0===jn&&Mn(rr)),e!==s&&(e=un(e)),jn--,(t=e)===s&&(e=s,0===jn&&Mn(er)),t}function Un(){var t,e,r;return t=Cn,e=Cn,jn++,n.substr(Cn,2)===vt?(r=vt,Cn+=2):(r=s,0===jn&&Mn(or)),jn--,r===s?e=void 0:(Cn=e,e=s),e!==s?(n.length>Cn?(r=n.charAt(Cn),Cn++):(r=s,0===jn&&Mn(Ke)),r!==s?t=sn(r):(Cn=t,t=s)):(Cn=t,t=s),t}function Kn(){var t,e,r,o;if(t=Cn,(e=function(){var t;return n.substr(Cn,2)===mt?(t=mt,Cn+=2):(t=s,0===jn&&Mn(nr)),t}())!==s){for(r=[],o=Un();o!==s;)r.push(o),o=Un();(o=function(){var t;return n.substr(Cn,2)===vt?(t=vt,Cn+=2):(t=s,0===jn&&Mn(or)),t}())!==s?t=ln(e,r,o):(Cn=t,t=s)}else Cn=t,t=s;return t}function Zn(){var t;return t=n.charAt(Cn),Tt.test(t)?Cn++:(t=s,0===jn&&Mn(cr)),t}function Yn(){var t,e,r,o;if(t=Cn,(e=function(){var t;return n.substr(Cn,2)===xt?(t=xt,Cn+=2):(t=s,0===jn&&Mn(ir)),t===s&&(35===n.charCodeAt(Cn)?(t=wt,Cn++):(t=s,0===jn&&Mn(ar))),t}())!==s){for(r=[],o=Zn();o!==s;)r.push(o),o=Zn();t=fn(e,r)}else Cn=t,t=s;return t}function Qn(){var t;return jn++,(t=Yn())===s&&(t=Kn()),jn--,t===s&&0===jn&&Mn(ur),t}function Jn(){var t,e;for(t=[],(e=$n())===s&&(e=qn())===s&&(e=Qn());e!==s;)t.push(e),(e=$n())===s&&(e=qn())===s&&(e=Qn());return t}function to(){var t,e,r,o,i;return e=Cn,(r=eo())!==s?(46===n.charCodeAt(Cn)?(o=_t,Cn++):(o=s,0===jn&&Mn(fr)),o!==s&&(i=eo())!==s?e=r=[r,o,i]:(Cn=e,e=s)):(Cn=e,e=s),e!==s&&(e=bn(e)),(t=e)===s&&(t=eo()),t}function eo(){var t,e;if(t=[],e=n.charAt(Cn),Mt.test(e)?Cn++:(e=s,0===jn&&Mn(lr)),e!==s)for(;e!==s;)t.push(e),e=n.charAt(Cn),Mt.test(e)?Cn++:(e=s,0===jn&&Mn(lr));else t=s;return t!==s&&(t=gn(t)),t}function ro(){var t,e;return jn++,t=Cn,(e=function(){var t,e,r,o;return t=Cn,34===n.charCodeAt(Cn)?(e=bt,Cn++):(e=s,0===jn&&Mn(qe)),e!==s&&(r=no())!==s?(34===n.charCodeAt(Cn)?(o=bt,Cn++):(o=s,0===jn&&Mn(qe)),o!==s?t=vn(r):(Cn=t,t=s)):(Cn=t,t=s),t}())!==s&&(e=yn(e)),(t=e)===s&&(t=Cn,(e=no())!==s&&(e=mn(e)),t=e),jn--,t===s&&(e=s,0===jn&&Mn(dr)),t}function no(){var t;return(t=n.substr(Cn,4)).toLowerCase()===Ct?Cn+=4:(t=s,0===jn&&Mn(pr)),t===s&&((t=n.substr(Cn,5)).toLowerCase()===At?Cn+=5:(t=s,0===jn&&Mn(hr)),t===s&&((t=n.substr(Cn,2)).toLowerCase()===Ot?Cn+=2:(t=s,0===jn&&Mn(gr)),t===s&&((t=n.substr(Cn,3)).toLowerCase()===St?Cn+=3:(t=s,0===jn&&Mn(br)),t===s&&(t=n.charAt(Cn),Dt.test(t)?Cn++:(t=s,0===jn&&Mn(yr)))))),t}function oo(){var t,e;return t=Cn,(e=to())!==s&&(e=wn(e)),(t=e)===s&&(t=Cn,(e=n.substr(Cn,4)).toLowerCase()===jt?Cn+=4:(e=s,0===jn&&Mn(vr)),e!==s&&(e=_n(e)),t=e),t}function io(t,r,n){return!(e.entityExists(t,r)||!0===n[r])}function ao(t){return{name:t}}function co(e,r,n){return n||(n={}),(r||[]).forEach((function(r){r.forEach((function(r){io(e,r.from,n)&&e.push(ao(r.from)),r.arcs&&(n[r.to]=!0,t(e,co(e,r.arcs,n)),delete n[r.to]),io(e,r.to,n)&&e.push(ao(r.to))}))})),e}if(i=d(),o.peg$library)return{peg$result:i,peg$currPos:Cn,peg$FAILED:s,peg$maxFailExpected:Sn,peg$maxFailPos:On};if(i!==s&&Cn===n.length)return i;throw i!==s&&Cne?t:(e-=t.length,t+(r+=r.repeat(e)).slice(0,e))}return function(t,e){function r(){this.constructor=t}r.prototype=e.prototype,t.prototype=new r}(r,Error),r.prototype.format=function(t){var e="Error: "+this.message;if(this.location){var r,o=null;for(r=0;r0){for(e=1,r=1;e",F="==",I="<<=>>",B="<=>",N="..",H="<<>>",R="::",W="<:>",G="->",z="=>>",V="=>",X=">>",$=":>",q="-x",U="<-",K="<<=",Z="<=",Y="<<",Q="<:",J="x-",tt="note",et="abox",rt="rbox",nt="box",ot="alt",it="else",at="opt",ct="break",ut="par",st="seq",lt="strict",ft="neg",dt="critical",pt="ignore",ht="consider",gt="assert",bt="loop",yt="ref",mt="exc",vt="activate",xt="deactivate",wt="label",_t="idurl",Ct="id",At="url",Ot="linecolor",St="linecolour",jt="textcolor",kt="textcolour",Lt="textbgcolor",Pt="textbgcolour",Et="arclinecolor",Tt="arclinecolour",Mt="arctextcolor",Dt="arctextcolour",Ft="arctextbgcolor",It="arctextbgcolour",Bt="arcskip",Nt="title",Ht="activation",Rt='"',Wt='\\"',Gt="/*",zt="*/",Vt="//",Xt="#",$t=".",qt="true",Ut="false",Kt="on",Zt="off",Yt="auto",Qt=/^[A-Za-z_0-9]/,Jt=/^[ \t]/,te=/^[\r\n]/,ee=/^[^\r\n]/,re=/^[0-9]/,ne=/^[0-1]/,oe=Po("{",!1),ie=Po("}",!1),ae=Po("msc",!0),ce=Po("xu",!0),ue=Po(",",!1),se=Po(";",!1),le=To("option"),fe=Po("hscale",!0),de=Po("arcgradient",!0),pe=Po("=",!1),he=Po("width",!0),ge=Po("wordwraparcs",!0),be=Po("wordwrapentities",!0),ye=Po("wordwrapboxes",!0),me=Po("watermark",!0),ve=To("entity"),xe=Po("[",!1),we=Po("]",!1),_e=Po("*",!1),Ce=To("empty row"),Ae=Po("|||",!1),Oe=Po("...",!1),Se=To("---"),je=Po("---",!1),ke=To("bi-directional arrow"),Le=Po("--",!1),Pe=Po("<->",!1),Ee=Po("==",!1),Te=Po("<<=>>",!1),Me=Po("<=>",!1),De=Po("..",!1),Fe=Po("<<>>",!1),Ie=Po("::",!1),Be=Po("<:>",!1),Ne=To("left to right arrow"),He=Po("->",!1),Re=Po("=>>",!1),We=Po("=>",!1),Ge=Po(">>",!1),ze=Po(":>",!1),Ve=Po("-x",!0),Xe=To("right to left arrow"),$e=Po("<-",!1),qe=Po("<<=",!1),Ue=Po("<=",!1),Ke=Po("<<",!1),Ze=Po("<:",!1),Ye=Po("x-",!0),Qe=To("box"),Je=Po("note",!0),tr=Po("abox",!0),er=Po("rbox",!0),rr=Po("box",!0),nr=To("inline expression"),or=Po("alt",!0),ir=Po("else",!0),ar=Po("opt",!0),cr=Po("break",!0),ur=Po("par",!0),sr=Po("seq",!0),lr=Po("strict",!0),fr=Po("neg",!0),dr=Po("critical",!0),pr=Po("ignore",!0),hr=Po("consider",!0),gr=Po("assert",!0),br=Po("loop",!0),yr=Po("ref",!0),mr=Po("exc",!0),vr=To("activate or deactivate"),xr=Po("activate",!0),wr=Po("deactivate",!0),_r=To("attribute name"),Cr=Po("label",!0),Ar=Po("idurl",!0),Or=Po("id",!0),Sr=Po("url",!0),jr=Po("linecolor",!0),kr=Po("linecolour",!0),Lr=Po("textcolor",!0),Pr=Po("textcolour",!0),Er=Po("textbgcolor",!0),Tr=Po("textbgcolour",!0),Mr=Po("arclinecolor",!0),Dr=Po("arclinecolour",!0),Fr=Po("arctextcolor",!0),Ir=Po("arctextcolour",!0),Br=Po("arctextbgcolor",!0),Nr=Po("arctextbgcolour",!0),Hr=Po("arcskip",!0),Rr=Po("title",!0),Wr=Po("activation",!0),Gr=To("double quoted string"),zr=Po('"',!1),Vr=Po('\\"',!1),Xr={type:"any"},$r=To("identifier"),qr=Eo([["A","Z"],["a","z"],"_",["0","9"]],!1,!1),Ur=To("whitespace"),Kr=Eo([" ","\t"],!1,!1),Zr=To("lineend"),Yr=Eo(["\r","\n"],!1,!1),Qr=Po("/*",!1),Jr=Po("*/",!1),tn=Po("//",!1),en=Po("#",!1),rn=Eo(["\r","\n"],!0,!1),nn=To("comment"),on=To("number"),an=Eo([["0","9"]],!1,!1),cn=Po(".",!1),un=To("boolean"),sn=Po("true",!0),ln=Po("false",!0),fn=Po("on",!0),dn=Po("off",!0),pn=Eo([["0","1"]],!1,!1),hn=To("size"),gn=Po("auto",!0),bn=function(r,n){return n.entities=n.entities||[],e.checkForUndeclaredEntities(n.entities,n.arcs),n=t({meta:e.getMetaInfo(n.options,n.arcs)},n),r.length>0&&(n=t({precomment:r},n)),n},yn=function(t,e,r){var n={};return t&&(n.options=t),e&&(n.entities=e),r&&(n.arcs=r),n},mn=function(t){return t},vn=function(t){return t},xn=function(e){return e[0].concat(e[1]).reduce(t,{})},wn=function(t,r){return e.nameValue2Option(t,r)},_n=function(t,r){return e.nameValue2Option(t,r)},Cn=function(t,r){return e.nameValue2Option(t,e.flattenBoolean(r))},An=function(t,r){return e.nameValue2Option(t,e.flattenBoolean(r))},On=function(t,r){return e.nameValue2Option(t,e.flattenBoolean(r))},Sn=function(t,r){return e.nameValue2Option(t,r)},jn=function(t){return t},kn=function(t){return t},Ln=function(t){return t[0].concat(t[1])},Pn=function(t,e){return e},En=function(e,r){return t({name:e},r)},Tn=function(t,e){return e},Mn=function(n,o){return e.isMscGenKeyword(n)&&function(t,e){throw function(t,e){return new r(t,null,null,e)}(t,e=void 0!==e?e:Do(Oo,Ao))}("MscGen keywords aren't allowed as entity names (embed them in quotes if you need them)"),t({name:n},o)},Dn=function(t){return t},Fn=function(t){return t},In=function(t){return t},Bn=function(t){return t[0].concat(t[1])},Nn=function(t){return t},Hn=function(t){return t},Rn=function(t){return t},Wn=function(t,e){return e},Gn=function(e,r){return t(e,r)},zn=function(t){return{kind:t}},Vn=function(t){return{kind:t}},Xn=function(t,e,r){return{kind:e,from:t,to:r}},$n=function(t,e){return{kind:t,from:"*",to:e}},qn=function(t,e){return{kind:e,from:t,to:"*"}},Un=function(t,e){return{kind:e,from:t,to:"*"}},Kn=function(t,e,r,n){return n},Zn=function(e,r,n,o,i){return t({kind:r,from:e,to:n,arcs:i},o)},Yn=function(t){return t.toLowerCase()},Qn=function(t){return t.toLowerCase()},Jn=function(t){return t},to=function(t){return t},eo=function(e){return e[0].concat(e[1]).reduce(t,{})},ro=function(t){return{activation:"activate"===t.toLowerCase()}},no=function(t,r){var n={};return"activation"===t.toLowerCase()?n.activation=e.flattenBoolean(r):n[t.toLowerCase().replace("colour","color")]=r,n},oo=function(t){return t.join("")},io=function(t){return t},ao=function(t){return t.join("")},co=function(t){return t},uo=function(t){return t},so=function(t){return t},lo=function(t,e,r){return t+e.join("")+r},fo=function(t,e){return t+e.join("")},po=function(t){return t},ho=function(t){return t.toString()},go=function(t){return t.toString()},bo=function(t){return parseInt(t.join(""),10)},yo=function(t){return parseFloat(t.join(""))},mo=function(t){return t},vo=function(t){return t.toString()},xo=function(t){return t},wo=function(t){return t},_o=function(t){return t.toString()},Co=function(t){return t.toLowerCase()},Ao=0|o.peg$currPos,Oo=Ao,So=[{line:1,column:1}],jo=Ao,ko=o.peg$maxFailExpected||[],Lo=0|o.peg$silentFails;if(o.startRule){if(!(o.startRule in f))throw new Error("Can't start parsing from rule \""+o.startRule+'".');d=f[o.startRule]}function Po(t,e){return{type:"literal",text:t,ignoreCase:e}}function Eo(t,e,r){return{type:"class",parts:t,inverted:e,ignoreCase:r}}function To(t){return{type:"other",description:t}}function Mo(t){var e,r=So[t];if(r)return r;if(t>=So.length)e=So.length-1;else for(e=t;!So[--e];);for(r={line:(r=So[e]).line,column:r.column};ejo&&(jo=Ao,ko=[]),ko.push(t))}function Io(){var t,e,r,o,i;return t=Ao,e=ni(),function(){var t;return(t=n.substr(Ao,3)).toLowerCase()===g?Ao+=3:(t=s,0===Lo&&Fo(ae)),t===s&&((t=n.substr(Ao,2)).toLowerCase()===b?Ao+=2:(t=s,0===Lo&&Fo(ce))),t}()!==s?(ni(),123===n.charCodeAt(Ao)?(r=p,Ao++):(r=s,0===Lo&&Fo(oe)),r!==s?(ni(),o=function(){var t,e,r,o;return t=Ao,(e=function(){var t,e,r,o,i,a;for(t=Ao,e=Ao,r=[],o=Ao,(i=Bo())!==s?(44===n.charCodeAt(Ao)?(a=y,Ao++):(a=s,0===Lo&&Fo(ue)),a!==s?(Oo=o,o=mn(i)):(Ao=o,o=s)):(Ao=o,o=s);o!==s;)r.push(o),o=Ao,(i=Bo())!==s?(44===n.charCodeAt(Ao)?(a=y,Ao++):(a=s,0===Lo&&Fo(ue)),a!==s?(Oo=o,o=mn(i)):(Ao=o,o=s)):(Ao=o,o=s);return o=Ao,(i=Bo())!==s?(59===n.charCodeAt(Ao)?(a=m,Ao++):(a=s,0===Lo&&Fo(se)),a!==s?(Oo=o,o=vn(i)):(Ao=o,o=s)):(Ao=o,o=s),o!==s?e=r=[r,o]:(Ao=e,e=s),e!==s&&(Oo=t,e=xn(e)),e}())===s&&(e=null),(r=function(){var t,e,r,o,i,a;for(t=Ao,e=Ao,r=[],o=Ao,(i=No())!==s?(44===n.charCodeAt(Ao)?(a=y,Ao++):(a=s,0===Lo&&Fo(ue)),a!==s?(Oo=o,o=jn(i)):(Ao=o,o=s)):(Ao=o,o=s);o!==s;)r.push(o),o=Ao,(i=No())!==s?(44===n.charCodeAt(Ao)?(a=y,Ao++):(a=s,0===Lo&&Fo(ue)),a!==s?(Oo=o,o=jn(i)):(Ao=o,o=s)):(Ao=o,o=s);return o=Ao,(i=No())!==s?(59===n.charCodeAt(Ao)?(a=m,Ao++):(a=s,0===Lo&&Fo(se)),a!==s?(Oo=o,o=kn(i)):(Ao=o,o=s)):(Ao=o,o=s),o!==s?e=r=[r,o]:(Ao=e,e=s),e!==s&&(Oo=t,e=Ln(e)),e}())===s&&(r=null),(o=Ho())===s&&(o=null),Oo=t,yn(e,r,o)}(),ni(),125===n.charCodeAt(Ao)?(i=h,Ao++):(i=s,0===Lo&&Fo(ie)),i!==s?(ni(),Oo=t,t=bn(e,o)):(Ao=t,t=s)):(Ao=t,t=s)):(Ao=t,t=s),t}function Bo(){var t,e,r,o;return Lo++,t=Ao,ni(),(e=n.substr(Ao,6)).toLowerCase()===v?Ao+=6:(e=s,0===Lo&&Fo(fe)),e===s&&((e=n.substr(Ao,11)).toLowerCase()===x?Ao+=11:(e=s,0===Lo&&Fo(de))),e!==s?(ni(),61===n.charCodeAt(Ao)?(r=w,Ao++):(r=s,0===Lo&&Fo(pe)),r!==s?(ni(),(o=function(){var t,e;return Lo++,t=Ao,(e=function(){var t,e,r,o;return t=Ao,34===n.charCodeAt(Ao)?(e=Rt,Ao++):(e=s,0===Lo&&Fo(zr)),e!==s&&(r=oi())!==s?(34===n.charCodeAt(Ao)?(o=Rt,Ao++):(o=s,0===Lo&&Fo(zr)),o!==s?(Oo=t,t=go(r)):(Ao=t,t=s)):(Ao=t,t=s),t}())!==s&&(Oo=t,e=po(e)),(t=e)===s&&(t=Ao,(e=oi())!==s&&(Oo=t,e=ho(e)),t=e),Lo--,t===s&&(e=s,0===Lo&&Fo(on)),t}())!==s?(ni(),Oo=t,t=wn(e,o)):(Ao=t,t=s)):(Ao=t,t=s)):(Ao=t,t=s),t===s&&(t=Ao,ni(),(e=n.substr(Ao,5)).toLowerCase()===_?Ao+=5:(e=s,0===Lo&&Fo(he)),e!==s?(ni(),61===n.charCodeAt(Ao)?(r=w,Ao++):(r=s,0===Lo&&Fo(pe)),r!==s?(ni(),(o=function(){var t;return Lo++,(t=function(){var t,e,r,o;return t=Ao,34===n.charCodeAt(Ao)?(e=Rt,Ao++):(e=s,0===Lo&&Fo(zr)),e!==s&&(r=ui())!==s?(34===n.charCodeAt(Ao)?(o=Rt,Ao++):(o=s,0===Lo&&Fo(zr)),o!==s?(Oo=t,t=wo(r)):(Ao=t,t=s)):(Ao=t,t=s),t}())===s&&(t=ui()),Lo--,t===s&&0===Lo&&Fo(hn),t}())!==s?(ni(),Oo=t,t=_n(e,o)):(Ao=t,t=s)):(Ao=t,t=s)):(Ao=t,t=s),t===s&&(t=Ao,ni(),(e=n.substr(Ao,12)).toLowerCase()===C?Ao+=12:(e=s,0===Lo&&Fo(ge)),e!==s?(ni(),61===n.charCodeAt(Ao)?(r=w,Ao++):(r=s,0===Lo&&Fo(pe)),r!==s?(ni(),(o=ai())!==s?(ni(),Oo=t,t=Cn(e,o)):(Ao=t,t=s)):(Ao=t,t=s)):(Ao=t,t=s),t===s&&(t=Ao,ni(),(e=n.substr(Ao,16)).toLowerCase()===A?Ao+=16:(e=s,0===Lo&&Fo(be)),e!==s?(ni(),61===n.charCodeAt(Ao)?(r=w,Ao++):(r=s,0===Lo&&Fo(pe)),r!==s?(ni(),(o=ai())!==s?(ni(),Oo=t,t=An(e,o)):(Ao=t,t=s)):(Ao=t,t=s)):(Ao=t,t=s),t===s&&(t=Ao,ni(),(e=n.substr(Ao,13)).toLowerCase()===O?Ao+=13:(e=s,0===Lo&&Fo(ye)),e!==s?(ni(),61===n.charCodeAt(Ao)?(r=w,Ao++):(r=s,0===Lo&&Fo(pe)),r!==s?(ni(),(o=ai())!==s?(ni(),Oo=t,t=On(e,o)):(Ao=t,t=s)):(Ao=t,t=s)):(Ao=t,t=s),t===s&&(t=Ao,ni(),(e=n.substr(Ao,9)).toLowerCase()===S?Ao+=9:(e=s,0===Lo&&Fo(me)),e!==s?(ni(),61===n.charCodeAt(Ao)?(r=w,Ao++):(r=s,0===Lo&&Fo(pe)),r!==s?(ni(),(o=qo())!==s?(ni(),Oo=t,t=Sn(e,o)):(Ao=t,t=s)):(Ao=t,t=s)):(Ao=t,t=s)))))),Lo--,t===s&&0===Lo&&Fo(le),t}function No(){var t,e,r,o,i,a;return Lo++,t=Ao,ni(),(e=qo())!==s?(ni(),r=Ao,91===n.charCodeAt(Ao)?(o=j,Ao++):(o=s,0===Lo&&Fo(xe)),o!==s&&(i=Xo())!==s?(93===n.charCodeAt(Ao)?(a=k,Ao++):(a=s,0===Lo&&Fo(we)),a!==s?(Oo=r,r=Pn(e,i)):(Ao=r,r=s)):(Ao=r,r=s),r===s&&(r=null),o=ni(),Oo=t,t=En(e,r)):(Ao=t,t=s),t===s&&(t=Ao,ni(),(e=Ko())!==s?(ni(),r=Ao,91===n.charCodeAt(Ao)?(o=j,Ao++):(o=s,0===Lo&&Fo(xe)),o!==s&&(i=Xo())!==s?(93===n.charCodeAt(Ao)?(a=k,Ao++):(a=s,0===Lo&&Fo(we)),a!==s?(Oo=r,r=Tn(e,i)):(Ao=r,r=s)):(Ao=r,r=s),r===s&&(r=null),o=ni(),Oo=t,t=Mn(e,r)):(Ao=t,t=s)),Lo--,t===s&&0===Lo&&Fo(ve),t}function Ho(){var t,e,r,o;if(t=[],e=Ao,(r=Ro())!==s?(ni(),59===n.charCodeAt(Ao)?(o=m,Ao++):(o=s,0===Lo&&Fo(se)),o!==s?(Oo=e,e=Dn(r)):(Ao=e,e=s)):(Ao=e,e=s),e!==s)for(;e!==s;)t.push(e),e=Ao,(r=Ro())!==s?(ni(),59===n.charCodeAt(Ao)?(o=m,Ao++):(o=s,0===Lo&&Fo(se)),o!==s?(Oo=e,e=Dn(r)):(Ao=e,e=s)):(Ao=e,e=s);else t=s;return t}function Ro(){var t,e,r,o,i,a;for(t=Ao,e=Ao,r=[],o=Ao,(i=Wo())!==s?(ni(),44===n.charCodeAt(Ao)?(a=y,Ao++):(a=s,0===Lo&&Fo(ue)),a!==s?(Oo=o,o=Fn(i)):(Ao=o,o=s)):(Ao=o,o=s);o!==s;)r.push(o),o=Ao,(i=Wo())!==s?(ni(),44===n.charCodeAt(Ao)?(a=y,Ao++):(a=s,0===Lo&&Fo(ue)),a!==s?(Oo=o,o=Fn(i)):(Ao=o,o=s)):(Ao=o,o=s);return o=Ao,(i=Wo())!==s&&(Oo=o,i=In(i)),(o=i)!==s?e=r=[r,o]:(Ao=e,e=s),e!==s&&(Oo=t,e=Bn(e)),e}function Wo(){var t;return(t=function(){var t,e,r,o,i,a;return t=Ao,e=Ao,(r=function(){var t,e;return t=Ao,ni(),(e=function(){var t;return Lo++,n.substr(Ao,3)===P?(t=P,Ao+=3):(t=s,0===Lo&&Fo(Ae)),t===s&&(n.substr(Ao,3)===E?(t=E,Ao+=3):(t=s,0===Lo&&Fo(Oe))),Lo--,t===s&&0===Lo&&Fo(Ce),t}())!==s?(ni(),Oo=t,t=zn(e)):(Ao=t,t=s),t}())!==s&&(Oo=e,r=Nn(r)),(e=r)===s&&(e=Ao,(r=function(){var t,e,r,o;return t=Ao,ni(),(e=Uo())!==s?(ni(),(r=function(){var t,e;return t=Ao,(e=Go())===s&&(e=zo())===s&&(e=Vo())===s&&(e=function(){var t;return Lo++,(t=n.substr(Ao,4)).toLowerCase()===tt?Ao+=4:(t=s,0===Lo&&Fo(Je)),t===s&&((t=n.substr(Ao,4)).toLowerCase()===et?Ao+=4:(t=s,0===Lo&&Fo(tr)),t===s&&((t=n.substr(Ao,4)).toLowerCase()===rt?Ao+=4:(t=s,0===Lo&&Fo(er)),t===s&&((t=n.substr(Ao,3)).toLowerCase()===nt?Ao+=3:(t=s,0===Lo&&Fo(rr))))),Lo--,t===s&&0===Lo&&Fo(Qe),t}()),e!==s&&(Oo=t,e=Yn(e)),e}())!==s?(ni(),(o=Uo())!==s?(ni(),Oo=t,t=Xn(e,r,o)):(Ao=t,t=s)):(Ao=t,t=s)):(Ao=t,t=s),t===s&&(t=Ao,ni(),42===n.charCodeAt(Ao)?(e=L,Ao++):(e=s,0===Lo&&Fo(_e)),e!==s?(ni(),(r=Vo())!==s?(ni(),(o=Uo())!==s?(ni(),Oo=t,t=$n(r,o)):(Ao=t,t=s)):(Ao=t,t=s)):(Ao=t,t=s),t===s&&(t=Ao,ni(),(e=Uo())!==s?(ni(),(r=zo())!==s?(ni(),42===n.charCodeAt(Ao)?(o=L,Ao++):(o=s,0===Lo&&Fo(_e)),o!==s?(ni(),Oo=t,t=qn(e,r)):(Ao=t,t=s)):(Ao=t,t=s)):(Ao=t,t=s),t===s&&(t=Ao,ni(),(e=Uo())!==s?(ni(),(r=Go())!==s?(ni(),42===n.charCodeAt(Ao)?(o=L,Ao++):(o=s,0===Lo&&Fo(_e)),o!==s?(ni(),Oo=t,t=Un(e,r)):(Ao=t,t=s)):(Ao=t,t=s)):(Ao=t,t=s)))),t}())!==s&&(Oo=e,r=Hn(r)),(e=r)===s&&(e=Ao,(r=function(){var t,e;return t=Ao,ni(),(e=function(){var t;return Lo++,n.substr(Ao,3)===T?(t=T,Ao+=3):(t=s,0===Lo&&Fo(je)),Lo--,t===s&&0===Lo&&Fo(Se),t}())!==s?(ni(),Oo=t,t=Vn(e)):(Ao=t,t=s),t}())!==s&&(Oo=e,r=Rn(r)),e=r)),e!==s?(r=Ao,91===n.charCodeAt(Ao)?(o=j,Ao++):(o=s,0===Lo&&Fo(xe)),o!==s&&(i=Xo())!==s?(93===n.charCodeAt(Ao)?(a=k,Ao++):(a=s,0===Lo&&Fo(we)),a!==s?(Oo=r,r=Wn(e,i)):(Ao=r,r=s)):(Ao=r,r=s),r===s&&(r=null),Oo=t,t=Gn(e,r)):(Ao=t,t=s),t}())===s&&(t=function(){var t,e,r,o,i,a,c,u,l,f;return t=Ao,ni(),(e=Uo())!==s?(ni(),(r=function(){var t,e;return Lo++,t=Ao,(e=n.substr(Ao,3)).toLowerCase()===ot?Ao+=3:(e=s,0===Lo&&Fo(or)),e===s&&((e=n.substr(Ao,4)).toLowerCase()===it?Ao+=4:(e=s,0===Lo&&Fo(ir)),e===s&&((e=n.substr(Ao,3)).toLowerCase()===at?Ao+=3:(e=s,0===Lo&&Fo(ar)),e===s&&((e=n.substr(Ao,5)).toLowerCase()===ct?Ao+=5:(e=s,0===Lo&&Fo(cr)),e===s&&((e=n.substr(Ao,3)).toLowerCase()===ut?Ao+=3:(e=s,0===Lo&&Fo(ur)),e===s&&((e=n.substr(Ao,3)).toLowerCase()===st?Ao+=3:(e=s,0===Lo&&Fo(sr)),e===s&&((e=n.substr(Ao,6)).toLowerCase()===lt?Ao+=6:(e=s,0===Lo&&Fo(lr)),e===s&&((e=n.substr(Ao,3)).toLowerCase()===ft?Ao+=3:(e=s,0===Lo&&Fo(fr)),e===s&&((e=n.substr(Ao,8)).toLowerCase()===dt?Ao+=8:(e=s,0===Lo&&Fo(dr)),e===s&&((e=n.substr(Ao,6)).toLowerCase()===pt?Ao+=6:(e=s,0===Lo&&Fo(pr)),e===s&&((e=n.substr(Ao,8)).toLowerCase()===ht?Ao+=8:(e=s,0===Lo&&Fo(hr)),e===s&&((e=n.substr(Ao,6)).toLowerCase()===gt?Ao+=6:(e=s,0===Lo&&Fo(gr)),e===s&&((e=n.substr(Ao,4)).toLowerCase()===bt?Ao+=4:(e=s,0===Lo&&Fo(br)),e===s&&((e=n.substr(Ao,3)).toLowerCase()===yt?Ao+=3:(e=s,0===Lo&&Fo(yr)),e===s&&((e=n.substr(Ao,3)).toLowerCase()===mt?Ao+=3:(e=s,0===Lo&&Fo(mr)))))))))))))))),e!==s&&(Oo=t,e=Qn(e)),Lo--,(t=e)===s&&(e=s,0===Lo&&Fo(nr)),t}())!==s?(ni(),(o=Uo())!==s?(ni(),i=Ao,91===n.charCodeAt(Ao)?(a=j,Ao++):(a=s,0===Lo&&Fo(xe)),a!==s&&(c=Xo())!==s?(93===n.charCodeAt(Ao)?(u=k,Ao++):(u=s,0===Lo&&Fo(we)),u!==s?(Oo=i,i=Kn(e,r,o,c)):(Ao=i,i=s)):(Ao=i,i=s),i===s&&(i=null),a=ni(),123===n.charCodeAt(Ao)?(c=p,Ao++):(c=s,0===Lo&&Fo(oe)),c!==s?(u=ni(),(l=Ho())===s&&(l=null),ni(),125===n.charCodeAt(Ao)?(f=h,Ao++):(f=s,0===Lo&&Fo(ie)),f!==s?(ni(),Oo=t,t=Zn(e,r,o,i,l)):(Ao=t,t=s)):(Ao=t,t=s)):(Ao=t,t=s)):(Ao=t,t=s)):(Ao=t,t=s),t}()),t}function Go(){var t;return Lo++,n.substr(Ao,2)===M?(t=M,Ao+=2):(t=s,0===Lo&&Fo(Le)),t===s&&(n.substr(Ao,3)===D?(t=D,Ao+=3):(t=s,0===Lo&&Fo(Pe)),t===s&&(n.substr(Ao,2)===F?(t=F,Ao+=2):(t=s,0===Lo&&Fo(Ee)),t===s&&(n.substr(Ao,5)===I?(t=I,Ao+=5):(t=s,0===Lo&&Fo(Te)),t===s&&(n.substr(Ao,3)===B?(t=B,Ao+=3):(t=s,0===Lo&&Fo(Me)),t===s&&(n.substr(Ao,2)===N?(t=N,Ao+=2):(t=s,0===Lo&&Fo(De)),t===s&&(n.substr(Ao,4)===H?(t=H,Ao+=4):(t=s,0===Lo&&Fo(Fe)),t===s&&(n.substr(Ao,2)===R?(t=R,Ao+=2):(t=s,0===Lo&&Fo(Ie)),t===s&&(n.substr(Ao,3)===W?(t=W,Ao+=3):(t=s,0===Lo&&Fo(Be)))))))))),Lo--,t===s&&0===Lo&&Fo(ke),t}function zo(){var t;return Lo++,n.substr(Ao,2)===G?(t=G,Ao+=2):(t=s,0===Lo&&Fo(He)),t===s&&(n.substr(Ao,3)===z?(t=z,Ao+=3):(t=s,0===Lo&&Fo(Re)),t===s&&(n.substr(Ao,2)===V?(t=V,Ao+=2):(t=s,0===Lo&&Fo(We)),t===s&&(n.substr(Ao,2)===X?(t=X,Ao+=2):(t=s,0===Lo&&Fo(Ge)),t===s&&(n.substr(Ao,2)===$?(t=$,Ao+=2):(t=s,0===Lo&&Fo(ze)),t===s&&((t=n.substr(Ao,2)).toLowerCase()===q?Ao+=2:(t=s,0===Lo&&Fo(Ve))))))),Lo--,t===s&&0===Lo&&Fo(Ne),t}function Vo(){var t;return Lo++,n.substr(Ao,2)===U?(t=U,Ao+=2):(t=s,0===Lo&&Fo($e)),t===s&&(n.substr(Ao,3)===K?(t=K,Ao+=3):(t=s,0===Lo&&Fo(qe)),t===s&&(n.substr(Ao,2)===Z?(t=Z,Ao+=2):(t=s,0===Lo&&Fo(Ue)),t===s&&(n.substr(Ao,2)===Y?(t=Y,Ao+=2):(t=s,0===Lo&&Fo(Ke)),t===s&&(n.substr(Ao,2)===Q?(t=Q,Ao+=2):(t=s,0===Lo&&Fo(Ze)),t===s&&((t=n.substr(Ao,2)).toLowerCase()===J?Ao+=2:(t=s,0===Lo&&Fo(Ye))))))),Lo--,t===s&&0===Lo&&Fo(Xe),t}function Xo(){var t,e,r,o,i,a;for(t=Ao,e=Ao,r=[],o=Ao,(i=$o())!==s?(44===n.charCodeAt(Ao)?(a=y,Ao++):(a=s,0===Lo&&Fo(ue)),a!==s?(Oo=o,o=Jn(i)):(Ao=o,o=s)):(Ao=o,o=s);o!==s;)r.push(o),o=Ao,(i=$o())!==s?(44===n.charCodeAt(Ao)?(a=y,Ao++):(a=s,0===Lo&&Fo(ue)),a!==s?(Oo=o,o=Jn(i)):(Ao=o,o=s)):(Ao=o,o=s);return o=Ao,(i=$o())!==s&&(Oo=o,i=to(i)),(o=i)!==s?e=r=[r,o]:(Ao=e,e=s),e!==s&&(Oo=t,e=eo(e)),e}function $o(){var t;return(t=function(){var t,e,r,o;return t=Ao,ni(),(e=function(){var t;return Lo++,(t=n.substr(Ao,5)).toLowerCase()===wt?Ao+=5:(t=s,0===Lo&&Fo(Cr)),t===s&&((t=n.substr(Ao,5)).toLowerCase()===_t?Ao+=5:(t=s,0===Lo&&Fo(Ar)),t===s&&((t=n.substr(Ao,2)).toLowerCase()===Ct?Ao+=2:(t=s,0===Lo&&Fo(Or)),t===s&&((t=n.substr(Ao,3)).toLowerCase()===At?Ao+=3:(t=s,0===Lo&&Fo(Sr)),t===s&&((t=n.substr(Ao,9)).toLowerCase()===Ot?Ao+=9:(t=s,0===Lo&&Fo(jr)),t===s&&((t=n.substr(Ao,10)).toLowerCase()===St?Ao+=10:(t=s,0===Lo&&Fo(kr)),t===s&&((t=n.substr(Ao,9)).toLowerCase()===jt?Ao+=9:(t=s,0===Lo&&Fo(Lr)),t===s&&((t=n.substr(Ao,10)).toLowerCase()===kt?Ao+=10:(t=s,0===Lo&&Fo(Pr)),t===s&&((t=n.substr(Ao,11)).toLowerCase()===Lt?Ao+=11:(t=s,0===Lo&&Fo(Er)),t===s&&((t=n.substr(Ao,12)).toLowerCase()===Pt?Ao+=12:(t=s,0===Lo&&Fo(Tr)),t===s&&((t=n.substr(Ao,12)).toLowerCase()===Et?Ao+=12:(t=s,0===Lo&&Fo(Mr)),t===s&&((t=n.substr(Ao,13)).toLowerCase()===Tt?Ao+=13:(t=s,0===Lo&&Fo(Dr)),t===s&&((t=n.substr(Ao,12)).toLowerCase()===Mt?Ao+=12:(t=s,0===Lo&&Fo(Fr)),t===s&&((t=n.substr(Ao,13)).toLowerCase()===Dt?Ao+=13:(t=s,0===Lo&&Fo(Ir)),t===s&&((t=n.substr(Ao,14)).toLowerCase()===Ft?Ao+=14:(t=s,0===Lo&&Fo(Br)),t===s&&((t=n.substr(Ao,15)).toLowerCase()===It?Ao+=15:(t=s,0===Lo&&Fo(Nr)),t===s&&((t=n.substr(Ao,7)).toLowerCase()===Bt?Ao+=7:(t=s,0===Lo&&Fo(Hr)),t===s&&((t=n.substr(Ao,5)).toLowerCase()===Nt?Ao+=5:(t=s,0===Lo&&Fo(Rr)),t===s&&((t=n.substr(Ao,10)).toLowerCase()===Ht?Ao+=10:(t=s,0===Lo&&Fo(Wr)))))))))))))))))))),Lo--,t===s&&0===Lo&&Fo(_r),t}())!==s?(ni(),61===n.charCodeAt(Ao)?(r=w,Ao++):(r=s,0===Lo&&Fo(pe)),r!==s?(ni(),(o=Uo())!==s?(ni(),Oo=t,t=no(e,o)):(Ao=t,t=s)):(Ao=t,t=s)):(Ao=t,t=s),t}())===s&&(t=function(){var t,e;return Lo++,t=Ao,ni(),(e=n.substr(Ao,8)).toLowerCase()===vt?Ao+=8:(e=s,0===Lo&&Fo(xr)),e===s&&((e=n.substr(Ao,10)).toLowerCase()===xt?Ao+=10:(e=s,0===Lo&&Fo(wr))),e!==s?(ni(),Oo=t,t=ro(e)):(Ao=t,t=s),Lo--,t===s&&0===Lo&&Fo(vr),t}()),t}function qo(){var t,e,r,o;return Lo++,t=Ao,34===n.charCodeAt(Ao)?(e=Rt,Ao++):(e=s,0===Lo&&Fo(zr)),e!==s?(r=function(){var t,e,r,o;for(t=[],e=Ao,r=Ao,Lo++,34===n.charCodeAt(Ao)?(o=Rt,Ao++):(o=s,0===Lo&&Fo(zr)),Lo--,o===s?r=void 0:(Ao=r,r=s),r!==s?(n.substr(Ao,2)===Wt?(o=Wt,Ao+=2):(o=s,0===Lo&&Fo(Vr)),o===s&&(n.length>Ao?(o=n.charAt(Ao),Ao++):(o=s,0===Lo&&Fo(Xr))),o!==s?(Oo=e,e=io(o)):(Ao=e,e=s)):(Ao=e,e=s);e!==s;)t.push(e),e=Ao,r=Ao,Lo++,34===n.charCodeAt(Ao)?(o=Rt,Ao++):(o=s,0===Lo&&Fo(zr)),Lo--,o===s?r=void 0:(Ao=r,r=s),r!==s?(n.substr(Ao,2)===Wt?(o=Wt,Ao+=2):(o=s,0===Lo&&Fo(Vr)),o===s&&(n.length>Ao?(o=n.charAt(Ao),Ao++):(o=s,0===Lo&&Fo(Xr))),o!==s?(Oo=e,e=io(o)):(Ao=e,e=s)):(Ao=e,e=s);return t}(),34===n.charCodeAt(Ao)?(o=Rt,Ao++):(o=s,0===Lo&&Fo(zr)),o!==s?(Oo=t,t=oo(r)):(Ao=t,t=s)):(Ao=t,t=s),Lo--,t===s&&(e=s,0===Lo&&Fo(Gr)),t}function Uo(){var t;return Lo++,(t=Ko())===s&&(t=qo()),Lo--,t===s&&0===Lo&&Fo($r),t}function Ko(){var t,e,r;if(t=Ao,e=[],r=n.charAt(Ao),Qt.test(r)?Ao++:(r=s,0===Lo&&Fo(qr)),r!==s)for(;r!==s;)e.push(r),r=n.charAt(Ao),Qt.test(r)?Ao++:(r=s,0===Lo&&Fo(qr));else e=s;return e!==s&&(Oo=t,e=ao(e)),e}function Zo(){var t,e;return Lo++,t=Ao,e=n.charAt(Ao),Jt.test(e)?Ao++:(e=s,0===Lo&&Fo(Kr)),e!==s&&(Oo=t,e=co(e)),Lo--,(t=e)===s&&(e=s,0===Lo&&Fo(Ur)),t}function Yo(){var t,e;return Lo++,t=Ao,e=n.charAt(Ao),te.test(e)?Ao++:(e=s,0===Lo&&Fo(Yr)),e!==s&&(Oo=t,e=uo(e)),Lo--,(t=e)===s&&(e=s,0===Lo&&Fo(Zr)),t}function Qo(){var t,e,r;return t=Ao,e=Ao,Lo++,n.substr(Ao,2)===zt?(r=zt,Ao+=2):(r=s,0===Lo&&Fo(Jr)),Lo--,r===s?e=void 0:(Ao=e,e=s),e!==s?(n.length>Ao?(r=n.charAt(Ao),Ao++):(r=s,0===Lo&&Fo(Xr)),r!==s?(Oo=t,t=so(r)):(Ao=t,t=s)):(Ao=t,t=s),t}function Jo(){var t,e,r,o;if(t=Ao,(e=function(){var t;return n.substr(Ao,2)===Gt?(t=Gt,Ao+=2):(t=s,0===Lo&&Fo(Qr)),t}())!==s){for(r=[],o=Qo();o!==s;)r.push(o),o=Qo();(o=function(){var t;return n.substr(Ao,2)===zt?(t=zt,Ao+=2):(t=s,0===Lo&&Fo(Jr)),t}())!==s?(Oo=t,t=lo(e,r,o)):(Ao=t,t=s)}else Ao=t,t=s;return t}function ti(){var t;return t=n.charAt(Ao),ee.test(t)?Ao++:(t=s,0===Lo&&Fo(rn)),t}function ei(){var t,e,r,o;if(t=Ao,(e=function(){var t;return n.substr(Ao,2)===Vt?(t=Vt,Ao+=2):(t=s,0===Lo&&Fo(tn)),t===s&&(35===n.charCodeAt(Ao)?(t=Xt,Ao++):(t=s,0===Lo&&Fo(en))),t}())!==s){for(r=[],o=ti();o!==s;)r.push(o),o=ti();Oo=t,t=fo(e,r)}else Ao=t,t=s;return t}function ri(){var t;return Lo++,(t=ei())===s&&(t=Jo()),Lo--,t===s&&0===Lo&&Fo(nn),t}function ni(){var t,e;for(t=[],(e=Zo())===s&&(e=Yo())===s&&(e=ri());e!==s;)t.push(e),(e=Zo())===s&&(e=Yo())===s&&(e=ri());return t}function oi(){var t;return(t=function(){var t,e,r,o,i;return t=Ao,e=Ao,(r=ii())!==s?(46===n.charCodeAt(Ao)?(o=$t,Ao++):(o=s,0===Lo&&Fo(cn)),o!==s&&(i=ii())!==s?e=r=[r,o,i]:(Ao=e,e=s)):(Ao=e,e=s),e!==s&&(Oo=t,e=yo(e)),e}())===s&&(t=ii()),t}function ii(){var t,e,r;if(t=Ao,e=[],r=n.charAt(Ao),re.test(r)?Ao++:(r=s,0===Lo&&Fo(an)),r!==s)for(;r!==s;)e.push(r),r=n.charAt(Ao),re.test(r)?Ao++:(r=s,0===Lo&&Fo(an));else e=s;return e!==s&&(Oo=t,e=bo(e)),e}function ai(){var t,e;return Lo++,t=Ao,(e=function(){var t,e,r,o;return t=Ao,34===n.charCodeAt(Ao)?(e=Rt,Ao++):(e=s,0===Lo&&Fo(zr)),e!==s&&(r=ci())!==s?(34===n.charCodeAt(Ao)?(o=Rt,Ao++):(o=s,0===Lo&&Fo(zr)),o!==s?(Oo=t,t=xo(r)):(Ao=t,t=s)):(Ao=t,t=s),t}())!==s&&(Oo=t,e=mo(e)),(t=e)===s&&(t=Ao,(e=ci())!==s&&(Oo=t,e=vo(e)),t=e),Lo--,t===s&&(e=s,0===Lo&&Fo(un)),t}function ci(){var t;return(t=n.substr(Ao,4)).toLowerCase()===qt?Ao+=4:(t=s,0===Lo&&Fo(sn)),t===s&&((t=n.substr(Ao,5)).toLowerCase()===Ut?Ao+=5:(t=s,0===Lo&&Fo(ln)),t===s&&((t=n.substr(Ao,2)).toLowerCase()===Kt?Ao+=2:(t=s,0===Lo&&Fo(fn)),t===s&&((t=n.substr(Ao,3)).toLowerCase()===Zt?Ao+=3:(t=s,0===Lo&&Fo(dn)),t===s&&(t=n.charAt(Ao),ne.test(t)?Ao++:(t=s,0===Lo&&Fo(pn)))))),t}function ui(){var t,e;return t=Ao,(e=oi())!==s&&(Oo=t,e=_o(e)),(t=e)===s&&(t=Ao,(e=n.substr(Ao,4)).toLowerCase()===Yt?Ao+=4:(e=s,0===Lo&&Fo(gn)),e!==s&&(Oo=t,e=Co(e)),t=e),t}if(i=d(),o.peg$library)return{peg$result:i,peg$currPos:Ao,peg$FAILED:s,peg$maxFailExpected:ko,peg$maxFailPos:jo};if(i!==s&&Ao===n.length)return i;throw i!==s&&Ao{"use strict";t.exports=JSON.parse('{"baseTemplate":"svg.<%=id%>{font-family:Helvetica,sans-serif;font-size:<%=fontSize%>px;font-weight:normal;font-style:normal;text-decoration:none;background-color:white;stroke:black;stroke-width:<%=lineWidth%>}.<%=id%> path, .<%=id%> rect{fill:none}.<%=id%> .label-text-background{fill:white;stroke:white;stroke-width:0}.<%=id%> .bglayer{fill:white;stroke:white;stroke-width:0}.<%=id%> line{}.<%=id%> .return, .<%=id%> .comment{stroke-dasharray:5,3}.<%=id%> .inline_expression_divider{stroke-dasharray:10,5}.<%=id%> text{color:inherit;stroke:none;text-anchor:middle}.<%=id%> text.anchor-start{text-anchor:start}.<%=id%> .arrow-marker{overflow:visible}.<%=id%> .arrow-style{stroke-width:1}.<%=id%> .arcrow, .<%=id%> .arcrowomit, .<%=id%> .emphasised{stroke-linecap:butt}.<%=id%> .arcrowomit{stroke-dasharray:2,2}.<%=id%> .box, .<%=id%> .entity{fill:white;stroke-linejoin:round}.<%=id%> .inherit{stroke:inherit;color:inherit}.<%=id%> .inherit-fill{fill:inherit}.<%=id%> .watermark{font-size:48pt;font-weight:bold;opacity:0.14}","namedStyles":[{"name":"basic","description":"Basic","experimental":false,"deprecated":false,"renderMagic":"straight","cssBefore":"","cssAfter":".<%=id%> text.entity-text{text-decoration:underline;}"},{"name":"lazy","description":"Lazy","experimental":false,"deprecated":false,"renderMagic":"straight","cssBefore":"","cssAfter":".<%=id%> text.entity-text{font-weight:bold;}.<%=id%> text.return-text{font-style:italic}.<%=id%> path.note{fill:#FFFFCC}.<%=id%> rect.label-text-background{opacity:0.9}.<%=id%> line.comment,.<%=id%> rect.inline_expression,.<%=id%> .inline_expression_divider,.<%=id%> .inline_expression_label{stroke:grey}"},{"name":"classic","description":"Classic","experimental":false,"deprecated":false,"renderMagic":"straight","cssBefore":"","cssAfter":".<%=id%> text.entity-text{text-decoration:none}.<%=id%> .entity{stroke:none;}.<%=id%> line,.<%=id%> rect,.<%=id%> path{stroke-width:1px}.<%=id%> .arrow-style{stroke-width:2;}.<%=id%> .inline_expression,.<%=id%> .inline_expression_divider,.<%=id%> .inline_expression_label{stroke-width: 1px}"},{"name":"fountainpen","description":"Fountain pen","experimental":true,"deprecated":false,"renderMagic":"wobbly","cssBefore":"@import \'https://fonts.googleapis.com/css?family=Gochi+Hand\';","cssAfter":"svg.<%=id%>{font-family:\'Gochi Hand\', cursive;font-size:14px;stroke-opacity:0.4;stroke-linecap:round;background-color:transparent}.<%=id%> text{fill:rgba(0,0,128,0.7)}.<%=id%> marker polygon{fill:rgba(0,0,255,0.4);stroke-linejoin:round}.<%=id%> line, .<%=id%> path, .<%=id%> rect, .<%=id%> polygon{stroke:blue !important}.<%=id%> text.entity-text{font-weight:bold;text-decoration:none}.<%=id%> text.return-text{font-style:italic}.<%=id%> path.note{fill:#FFFFCC;}.<%=id%> .label-text-background{opacity:0}"},{"name":"cygne","description":"Cygne (best with msgenny)","experimental":true,"deprecated":true,"renderMagic":"straight","cssBefore":"","cssAfter":".<%=id%> line, .<%=id%> path{stroke:#00A1DE}.<%=id%> text{fill:#005B82}.<%=id%> .entity,.<%=id%> .box{fill:#00A1DE;stroke:#00A1DE}.<%=id%> text.box-text{fill:white}.<%=id%> text.entity-text{font-weight:bold;fill:white;text-decoration:none}.<%=id%> text.return-text{font-style:italic}.<%=id%> path.note{fill:#E77B2F;stroke:white}.<%=id%> .comment,.<%=id%> .inline_expression,.<%=id%> .inline_expression_divider,.<%=id%> .inline_expression_label{fill:white}"},{"name":"pegasse","description":"Pégase (best with msgenny)","experimental":false,"deprecated":true,"renderMagic":"straight","cssBefore":"","cssAfter":".<%=id%> line, .<%=id%> path{stroke:rgba(0, 43, 84, 1)}.<%=id%> text{fill:rgba(0, 43, 84, 1)}.<%=id%> .entity,.<%=id%> .box{fill:rgba(0, 43, 84, 1);stroke:rgba(0, 43, 84, 1)}.<%=id%> text.box-text{fill:white}.<%=id%> text.entity-text{font-weight:bold;fill:white;text-decoration:none}.<%=id%> text.return-text{font-style:italic}.<%=id%> path.note{fill:rgba(255, 50, 0, 1);stroke:white}.<%=id%> .comment,.<%=id%> .inline_expression,.<%=id%> .inline_expression_divider,.<%=id%> .inline_expression_label{fill:white}"},{"name":"grayscaled","description":"Grayscaled (not in IE or Safari)","experimental":true,"deprecated":false,"renderMagic":"straight","cssBefore":"","cssAfter":"svg.<%=id%>{filter:grayscale(1);-webkit-filter:grayscale(1);}"},{"name":"inverted","description":"Inverted (not in IE or Safari)","experimental":true,"deprecated":false,"renderMagic":"straight","cssBefore":"","cssAfter":"svg.<%=id%>{filter:invert(1);-webkit-filter:invert(1);}"},{"name":"noentityboxes","description":"No entity boxes","experimental":false,"deprecated":false,"renderMagic":"straight","cssBefore":"","cssAfter":".<%=id%> .entity{fill:none;stroke:none;}.<%=id%> text.entity-text{text-decoration:underline;}"}]}')},8163:t=>{"use strict";t.exports={version:"7.0.0"}}},e={};function r(n){var o=e[n];if(void 0!==o)return o.exports;var i=e[n]={id:n,loaded:!1,exports:{}};return t[n].call(i.exports,i,i.exports,r),i.loaded=!0,i.exports}return r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),r.nmd=t=>(t.paths=[],t.children||(t.children=[]),t),r(8156)})())); \ No newline at end of file +!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.mscgenjs=e():t.mscgenjs=e()}(self,(()=>(()=>{var t={1549:(t,e,r)=>{var n=r(2032),o=r(3862),i=r(6721),a=r(2749),c=r(5749);function u(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e{var n=r(3702),o=r(80),i=r(4739),a=r(8655),c=r(1175);function u(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e{var n=r(6110)(r(9325),"Map");t.exports=n},3661:(t,e,r)=>{var n=r(3040),o=r(7670),i=r(289),a=r(4509),c=r(2949);function u(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e{var n=r(9325).Symbol;t.exports=n},6025:(t,e,r)=>{var n=r(5288);t.exports=function(t,e){for(var r=t.length;r--;)if(n(t[r][0],e))return r;return-1}},2552:(t,e,r)=>{var n=r(1873),o=r(659),i=r(9350),a=n?n.toStringTag:void 0;t.exports=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":a&&a in Object(t)?o(t):i(t)}},5083:(t,e,r)=>{var n=r(1882),o=r(7296),i=r(3805),a=r(7473),c=/^\[object .+?Constructor\]$/,u=Function.prototype,s=Object.prototype,l=u.toString,f=s.hasOwnProperty,d=RegExp("^"+l.call(f).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");t.exports=function(t){return!(!i(t)||o(t))&&(n(t)?d:c).test(a(t))}},5481:(t,e,r)=>{var n=r(9325)["__core-js_shared__"];t.exports=n},4840:(t,e,r)=>{var n="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g;t.exports=n},2651:(t,e,r)=>{var n=r(4218);t.exports=function(t,e){var r=t.__data__;return n(e)?r["string"==typeof e?"string":"hash"]:r.map}},6110:(t,e,r)=>{var n=r(5083),o=r(392);t.exports=function(t,e){var r=o(t,e);return n(r)?r:void 0}},659:(t,e,r)=>{var n=r(1873),o=Object.prototype,i=o.hasOwnProperty,a=o.toString,c=n?n.toStringTag:void 0;t.exports=function(t){var e=i.call(t,c),r=t[c];try{t[c]=void 0;var n=!0}catch(t){}var o=a.call(t);return n&&(e?t[c]=r:delete t[c]),o}},392:t=>{t.exports=function(t,e){return null==t?void 0:t[e]}},2032:(t,e,r)=>{var n=r(1042);t.exports=function(){this.__data__=n?n(null):{},this.size=0}},3862:t=>{t.exports=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}},6721:(t,e,r)=>{var n=r(1042),o=Object.prototype.hasOwnProperty;t.exports=function(t){var e=this.__data__;if(n){var r=e[t];return"__lodash_hash_undefined__"===r?void 0:r}return o.call(e,t)?e[t]:void 0}},2749:(t,e,r)=>{var n=r(1042),o=Object.prototype.hasOwnProperty;t.exports=function(t){var e=this.__data__;return n?void 0!==e[t]:o.call(e,t)}},5749:(t,e,r)=>{var n=r(1042);t.exports=function(t,e){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=n&&void 0===e?"__lodash_hash_undefined__":e,this}},4218:t=>{t.exports=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}},7296:(t,e,r)=>{var n,o=r(5481),i=(n=/[^.]+$/.exec(o&&o.keys&&o.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"";t.exports=function(t){return!!i&&i in t}},3702:t=>{t.exports=function(){this.__data__=[],this.size=0}},80:(t,e,r)=>{var n=r(6025),o=Array.prototype.splice;t.exports=function(t){var e=this.__data__,r=n(e,t);return!(r<0||(r==e.length-1?e.pop():o.call(e,r,1),--this.size,0))}},4739:(t,e,r)=>{var n=r(6025);t.exports=function(t){var e=this.__data__,r=n(e,t);return r<0?void 0:e[r][1]}},8655:(t,e,r)=>{var n=r(6025);t.exports=function(t){return n(this.__data__,t)>-1}},1175:(t,e,r)=>{var n=r(6025);t.exports=function(t,e){var r=this.__data__,o=n(r,t);return o<0?(++this.size,r.push([t,e])):r[o][1]=e,this}},3040:(t,e,r)=>{var n=r(1549),o=r(79),i=r(8223);t.exports=function(){this.size=0,this.__data__={hash:new n,map:new(i||o),string:new n}}},7670:(t,e,r)=>{var n=r(2651);t.exports=function(t){var e=n(this,t).delete(t);return this.size-=e?1:0,e}},289:(t,e,r)=>{var n=r(2651);t.exports=function(t){return n(this,t).get(t)}},4509:(t,e,r)=>{var n=r(2651);t.exports=function(t){return n(this,t).has(t)}},2949:(t,e,r)=>{var n=r(2651);t.exports=function(t,e){var r=n(this,t),o=r.size;return r.set(t,e),this.size+=r.size==o?0:1,this}},1042:(t,e,r)=>{var n=r(6110)(Object,"create");t.exports=n},9350:t=>{var e=Object.prototype.toString;t.exports=function(t){return e.call(t)}},9325:(t,e,r)=>{var n=r(4840),o="object"==typeof self&&self&&self.Object===Object&&self,i=n||o||Function("return this")();t.exports=i},7473:t=>{var e=Function.prototype.toString;t.exports=function(t){if(null!=t){try{return e.call(t)}catch(t){}try{return t+""}catch(t){}}return""}},5288:t=>{t.exports=function(t,e){return t===e||t!=t&&e!=e}},1882:(t,e,r)=>{var n=r(2552),o=r(3805);t.exports=function(t){if(!o(t))return!1;var e=n(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}},3805:t=>{t.exports=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}},104:(t,e,r)=>{var n=r(3661);function o(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var r=function(){var n=arguments,o=e?e.apply(this,n):n[0],i=r.cache;if(i.has(o))return i.get(o);var a=t.apply(this,n);return r.cache=i.set(o,a)||i,a};return r.cache=new(o.Cache||n),r}o.Cache=n,t.exports=o},8156:function(t,e,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(t,e,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(e,r);o&&!("get"in o?!e.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,o)}:function(t,e,r,n){void 0===n&&(n=r),t[n]=e[r]}),o=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),i=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var r in t)"default"!==r&&Object.prototype.hasOwnProperty.call(t,r)&&n(e,t,r);return o(e,t),e};Object.defineProperty(e,"__esModule",{value:!0}),e.getTextRenderer=e.getGraphicsRenderer=e.getParser=e.getAllowedValues=e.version=void 0,e.renderMsc=function(t,e,r){a.renderMsc(t,e||{},r,c.getParser,c.getGraphicsRenderer)},e.translateMsc=function(t,e){return a.translateMsc(t,e||{},c.getParser,c.getTextRenderer)};var a=i(r(8672)),c=i(r(8903));e.version=a.version,e.getAllowedValues=a.getAllowedValues,e.getParser=c.getParser,e.getGraphicsRenderer=c.getGraphicsRenderer,e.getTextRenderer=c.getTextRenderer},7426:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(2006);e.default=Object.freeze({inputType:[{name:"mscgen",experimental:!1},{name:"msgenny",experimental:!1},{name:"xu",experimental:!1},{name:"json",experimental:!1},{name:"ast",experimental:!1}],outputType:[{name:"mscgen",experimental:!1},{name:"msgenny",experimental:!1},{name:"xu",experimental:!1},{name:"json",experimental:!1},{name:"ast",experimental:!1},{name:"dot",experimental:!1},{name:"doxygen",experimental:!1}],regularArcTextVerticalAlignment:[{name:"above",experimental:!0},{name:"middle",experimental:!1},{name:"below",experimental:!0}],namedStyle:n.namedStyles.map((function(t){return{name:t.name,description:t.description,experimental:t.experimental,deprecated:t.deprecated}}))})},8672:function(t,e,r){"use strict";var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.version=void 0,e.renderMsc=function(t,e,r,n,o){var a=(0,i.default)(e,t);try{u(r,null,o().render(c(t,a.inputType,n),a.window,a.elementId,{source:a.source,styleAdditions:a.styleAdditions,additionalTemplate:a.additionalTemplate,mirrorEntitiesOnBottom:a.mirrorEntitiesOnBottom,regularArcTextVerticalAlignment:a.regularArcTextVerticalAlignment}))}catch(t){u(r,t)}},e.translateMsc=function(t,e,r,n){var o=Object.assign({inputType:"mscgen",outputType:"json"},e);return"ast"===o.outputType?r(o.inputType).parse(t):"json"===o.outputType?JSON.stringify(r(o.inputType).parse(t),null," "):n(o.outputType).render(c(t,o.inputType,r))},e.getAllowedValues=function(){return o.default};var o=n(r(7426)),i=n(r(7729)),a=r(8163);function c(t,e,r){return function(t,e){return"json"===e&&"object"==typeof t}(t,e)?t:r(e).parse(t)}function u(t,e,r){Boolean(t)&&(Boolean(e)?t(e,null):t(null,r))}e.version=a.version},7729:function(t,e,r){"use strict";var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var o=n(r(7426));function i(t,e,r){var n=r;return e.some((function(e){return e.name===t}))&&(n=t),n}function a(t,e){return"boolean"==typeof t?t:e}e.default=function(t,e){var r,n,c,u=a(t.includeSource,!0);return{inputType:(c=t.inputType,i(c,o.default.inputType,"mscgen")),elementId:t.elementId||"__svg",window:t.window||window,includeSource:u,source:u?e:null,styleAdditions:t.styleAdditions||null,additionalTemplate:(n=t.additionalTemplate,i(n,o.default.namedStyle,"basic")),mirrorEntitiesOnBottom:a(t.mirrorEntitiesOnBottom,!1),regularArcTextVerticalAlignment:(r=t.regularArcTextVerticalAlignment,i(r,o.default.regularArcTextVerticalAlignment,"middle"))}}},8903:function(t,e,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(t,e,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(e,r);o&&!("get"in o?!e.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,o)}:function(t,e,r,n){void 0===n&&(n=r),t[n]=e[r]}),o=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),i=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var r in t)"default"!==r&&Object.prototype.hasOwnProperty.call(t,r)&&n(e,t,r);return o(e,t),e};Object.defineProperty(e,"__esModule",{value:!0}),e.getTextRenderer=e.getGraphicsRenderer=e.getParser=void 0;var a=i(r(3688)),c=i(r(2592)),u=i(r(4626)),s=i(r(939)),l=i(r(2020)),f=i(r(5619)),d=i(r(3250)),h=i(r(2956)),p=i(r(6532)),g=a,b=d,m=Object.freeze({mscgen:a,xu:u,msgenny:c}),y=Object.freeze({mscgen:d,msgenny:h,xu:p,dot:l,doxygen:f});e.getParser=function(t){return["ast","json"].includes(t)?JSON:m[t]||g},e.getGraphicsRenderer=function(){return s},e.getTextRenderer=function(t){return y[t]||b}},2952:(t,e)=>{"use strict";function r(t,e){return void 0===e||"*"===e||t.some((function(t){return t.name===e}))}Object.defineProperty(e,"__esModule",{value:!0}),e.EntityNotDefinedError=void 0,e.nameValue2Option=function(t,e){var r={};return r[t.toLowerCase()]=e,r},e.flattenBoolean=function(t){return["true","on","1"].includes(t.toLowerCase())},e.entityExists=r,e.isMscGenKeyword=function(t){return["box","abox","rbox","note","msc","hscale","width","arcgradient","wordwraparcs","label","color","idurl","id","url","linecolor","linecolour","textcolor","textcolour","textbgcolor","textbgcolour","arclinecolor","arclinecolour","arctextcolor","arctextcolour","arctextbgcolor","arctextbgcolour","arcskip"].includes(t)},e.checkForUndeclaredEntities=function t(e,o){(o||[]).forEach((function(o){o.forEach((function(o){if(o.from&&!r(e,o.from))throw new n(o.from,o);if(o.to&&!r(e,o.to))throw new n(o.to,o);o.arcs&&t(e,o.arcs)}))}))},e.getMetaInfo=function(t,e){var r=function(t){return!!t&&(t.hasOwnProperty("watermark")||t.hasOwnProperty("wordwrapentities")||t.hasOwnProperty("wordwrapboxes")||t.hasOwnProperty("width")&&"auto"===t.width)}(t),n=function(t){return(t||[]).some((function(t){return t.some((function(t){return["alt","else","opt","break","par","seq","strict","neg","critical","ignore","consider","assert","loop","ref","exc"].includes(t.kind)}))}))}(e);return{extendedOptions:r,extendedArcTypes:n,extendedFeatures:r||n}};var n=function(t,e){this.name="EntityNotDefinedError",this.message=function(t,e){return"Entity '".concat(t,"' in arc '").concat(e.from," ").concat(e.kind," ").concat(e.to,"' is not defined.")}(t,e)};e.EntityNotDefinedError=n},7796:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=Object.freeze({"|||":"empty","...":"empty","---":"empty","->":"directional","=>":"directional","=>>":"directional",">>":"directional",":>":"directional","-x":"directional","<-":"directional","<=":"directional","<<=":"directional","<<":"directional","<:":"directional","x-":"directional",note:"box",box:"box",abox:"box",rbox:"box","<->":"bidirectional","<=>":"bidirectional","<<=>>":"bidirectional","<<>>":"bidirectional","<:>":"bidirectional","--":"nondirectional","==":"nondirectional","..":"nondirectional","::":"nondirectional",alt:"inline_expression",else:"inline_expression",opt:"inline_expression",break:"inline_expression",par:"inline_expression",seq:"inline_expression",strict:"inline_expression",neg:"inline_expression",critical:"inline_expression",ignore:"inline_expression",consider:"inline_expression",assert:"inline_expression",loop:"inline_expression",ref:"inline_expression",exc:"inline_expression"});e.default=function(t){return r[t]}},4501:(t,e)=>{"use strict";function r(t,e,n){e.forEach((function(e){!function(t,e,n){e.forEach((function(o){!function(t,e,r,n){n.forEach((function(n){n(r,t,e)}))}(t,e,o,n),o.arcs&&r(t,o.arcs,n)}))}(t,e,n)}))}Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e,n){var o,i;return o=t.entities,i=e,o.forEach((function(t){i.forEach((function(e){e(t)}))})),t.arcs&&r(t.entities,t.arcs,n),t}},7635:function(t,e,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(t,e,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(e,r);o&&!("get"in o?!e.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,o)}:function(t,e,r,n){void 0===n&&(n=r),t[n]=e[r]}),o=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),i=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var r in t)"default"!==r&&Object.prototype.hasOwnProperty.call(t,r)&&n(e,t,r);return o(e,t),e},a=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.nameAsLabel=h,e.swapRTLArc=b,e.overrideColors=y,e.normalize=w,e.flatten=function(t){return w((0,c.default)(t,[h,p],[b,y,p,g]))};var c=a(r(4501)),u=i(r(5383)),s=a(r(7796)),l=a(r(6788)),f=a(r(3498)),d=0;function h(t){void 0===t.label&&(t.label=t.name)}function p(t){t.label&&(t.label=u.unescapeString(t.label)),t.id&&(t.id=u.unescapeString(t.id))}function g(t){t.label=Boolean(t.label)?t.label:""}function b(t){if((0,l.default)(t.kind)!==t.kind){t.kind=(0,l.default)(t.kind);var e=t.from;t.from=t.to,t.to=e}}function m(t,e){!t.linecolor&&e.arclinecolor&&(t.linecolor=e.arclinecolor),!t.textcolor&&e.arctextcolor&&(t.textcolor=e.arctextcolor),!t.textbgcolor&&e.arctextbgcolor&&(t.textbgcolor=e.arctextbgcolor)}function y(t,e){if(void 0===e&&(e=[]),t&&t.from){var r=e.find((function(e){return e.name===t.from}));r&&m(t,r)}}function v(t){return t.arcs.reduce((function(t,e){return t+(Boolean(e[0].arcs)?v(e[0])+1:0)}),t.arcs.length)}function x(t,e,r,n){var o=[],i=[],a=[];return t.forEach((function(t){if(t.isVirtual=!1,"inline_expression"===(0,s.default)(t.kind)){if(t.depth=e,t.isVirtual=!0,t.arcs){var o=structuredClone(t);o.numberofrows=v(o),delete o.arcs,i.push(o),t.arcs.forEach((function(t){a=a.concat(x(t,e+1,o.from,o.to)),t.forEach((function(t){m(t,o)}))})),e>d&&(d=e)}else i.push(t);a.push([{kind:"|||",from:t.from,to:t.to,isVirtual:!0}])}else r&&n&&"empty"===(0,s.default)(t.kind)&&(t.from=r,t.to=n,t.depth=e),i.push(t)})),o.push(i),o.concat(a)}function w(t){return d=0,{options:(0,f.default)(t.options),entities:structuredClone(t.entities),arcs:(e=t.arcs,e?e.reduce((function(t,e){return t.concat(x(e,0))}),[]):[]),depth:d+1};var e}},6788:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=Object.freeze({"<-":"->","<=":"=>","<<=":"=>>","<<":">>","<:":":>","x-":"-x"});e.default=function(t){return r[t]||t}},3498:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){return Object.assign({wordwraparcs:!1,wordwrapentities:!0,wordwrapboxes:!0},t||{})}},9370:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={LINE_WIDTH:2,FONT_SIZE:12}},4420:function(t,e,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(t,e,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(e,r);o&&!("get"in o?!e.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,o)}:function(t,e,r,n){void 0===n&&(n=r),t[n]=e[r]}),o=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),i=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var r in t)"default"!==r&&Object.prototype.hasOwnProperty.call(t,r)&&n(e,t,r);return o(e,t),e},a=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.Thing=void 0;var c=a(r(9370)),u=i(r(4772)),s=i(r(8912)),l=i(r(2314)),f=function(){function t(t){this.interEntitySpacing=160,this.height=34,this.width=100,this.entityXHWM=0,this.entity2x={},t&&(this.interEntitySpacing=160*t,this.width=100*t)}return t.prototype.getX=function(t){return this.entity2x[t]},t.prototype.getDims=function(){return{interEntitySpacing:this.interEntitySpacing,height:this.height,width:this.width,entityXHWM:this.entityXHWM}},t.prototype.getOAndD=function(t,e){return{from:this.getX(t)this.getX(t)?this.getX(e):this.getX(t)}},t.prototype.renderEntities=function(t,e,r){var n=this,o=s.createGroup();return this.entityXHWM=0,this.height=this.getMaxEntityHeight(t,r)+2*c.default.LINE_WIDTH,t.forEach((function(t){o.appendChild(n.renderEntity(t,n.entityXHWM,e,r)),n.setX(t,n.entityXHWM),n.entityXHWM+=n.interEntitySpacing})),o},t.prototype.setX=function(t,e){this.entity2x[t.name]=e+this.width/2},t.prototype.getNoEntityLines=function(t,e,r){return u.splitLabel(t,"entity",this.width,e,r).length},t.prototype.sizeEntityBoxToLabel=function(t,e){var r=Math.min(l.getBBox(t).width+4*c.default.LINE_WIDTH,this.interEntitySpacing/3+e.width);return r>=e.width&&(e.x-=(r-e.width)/2,e.width=r),e},t.prototype.renderEntity=function(t,e,r,n){var o=s.createGroup(),i={x:e||0,y:r||0,width:this.width,height:this.height},a=u.createLabel(Object.assign({kind:"entity"},t),Object.assign({},i,{y:i.y+i.height/2}),n);return o.appendChild(s.createRect(this.sizeEntityBoxToLabel(a,i),{class:"entity",color:t.linecolor,bgColor:t.textbgcolor})),o.appendChild(a),o},t.prototype.getMaxEntityHeight=function(t,e){var r=this,n=t[0],o=2;return t.forEach((function(t){var i=r.getNoEntityLines(t.label,c.default.FONT_SIZE,e);i>o&&(o=i,n=t)})),o>2?Math.max(this.height,l.getBBox(this.renderEntity(n,0,0,e)).height):this.height},t}();e.Thing=f},5871:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.setPrefix=function(t){n=r+t},e.get=function(t){return n+(t||"")};var r="mscgenjs",n=r},8475:function(t,e,r){"use strict";var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.getClass=function(t){return i[t]||t},e.getAggregateClass=function(t){return(0,o.default)(t)||t};var o=n(r(7796)),i=Object.freeze({"|||":"empty-row","...":"omitted-row","---":"comment-row","->":"signal","=>":"method","=>>":"callback",">>":"return",":>":"emphasised","-x":"lost","<-":"signal","<=":"method","<<=":"callback","<<":"return","<:":"emphasised","x-":"lost","<->":"signal","<=>":"method","<<=>>":"callback","<<>>":"return","<:>":"emphasised","--":"signal","==":"method","..":"return","::":"emphasised"})},7598:function(t,e,r){"use strict";var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.getAttributes=function(t,e,r,n,o){var a=[];return i[e]&&i[e].attributes&&(a=i[e].attributes.map((function(i){return{name:i.name,value:i.value.replace(/\{\{signal-marker-end\}\}/g,c(e,n,o)).replace(/\{\{signal-marker-start\}\}/g,u(e,n,o)).replace(/\{\{id\}\}/g,t).replace(/\{\{color\}\}/g,r||"black")}}))),a},e.getMarkerDefs=function(t,e){return function(t){return t.arcs.reduce(l,[]).sort().map(f)}(e).map((function(e){return a[e.kind].variants.map((function(r){return{name:"".concat(t+e.kind+r.name,"-").concat(e.color),path:r.path,color:e.color,type:e.kind}}))})).flat(1/0)};var o=n(r(6788)),i={"->":{attributes:[{name:"style",value:"stroke:{{color}}"},{name:"marker-end",value:"url(#{{id}}{{signal-marker-end}}-{{color}})"}],marker:{name:"signal"}},"<->":{attributes:[{name:"style",value:"stroke:{{color}}"},{name:"marker-end",value:"url(#{{id}}{{signal-marker-end}}-{{color}})"},{name:"marker-start",value:"url(#{{id}}{{signal-marker-start}}-{{color}})"}],marker:{name:"signal"}},"=>>":{attributes:[{name:"style",value:"stroke:{{color}}"},{name:"marker-end",value:"url(#{{id}}callback-{{color}})"}],marker:{name:"callback",end:""}},"<<=>>":{attributes:[{name:"style",value:"stroke:{{color}}"},{name:"marker-end",value:"url(#{{id}}callback-{{color}})"},{name:"marker-start",value:"url(#{{id}}callback-l-{{color}})"}],marker:{name:"callback",end:"",start:"-l"}},">>":{attributes:[{name:"style",value:"stroke:{{color}}"},{name:"marker-end",value:"url(#{{id}}callback-{{color}})"}],marker:{name:"callback",end:""}},"<<>>":{attributes:[{name:"style",value:"stroke:{{color}}"},{name:"marker-end",value:"url(#{{id}}callback-{{color}})"},{name:"marker-start",value:"url(#{{id}}callback-l-{{color}})"}],marker:{name:"callback",end:"",start:"-l"}},"..":{attributes:[{name:"style",value:"stroke:{{color}}"}]},"--":{attributes:[{name:"style",value:"stroke:{{color}}"}]},"==":{attributes:[{name:"style",value:"stroke:{{color}}"}]},"::":{attributes:[{name:"style",value:"stroke:{{color}}"}]},"=>":{attributes:[{name:"style",value:"stroke:{{color}}"},{name:"marker-end",value:"url(#{{id}}method-{{color}})"}],marker:{name:"method",end:""}},"<=>":{attributes:[{name:"style",value:"stroke:{{color}}"},{name:"marker-end",value:"url(#{{id}}method-{{color}})"},{name:"marker-start",value:"url(#{{id}}method-l-{{color}})"}],marker:{name:"method",end:"",start:"-l"}},":>":{attributes:[{name:"style",value:"stroke:{{color}};"},{name:"marker-end",value:"url(#{{id}}method-{{color}})"}],marker:{name:"method",end:""}},"<:>":{attributes:[{name:"style",value:"stroke:{{color}}"},{name:"marker-end",value:"url(#{{id}}method-{{color}})"},{name:"marker-start",value:"url(#{{id}}method-l-{{color}})"}],marker:{name:"method",end:"",start:"-l"}},"-x":{attributes:[{name:"style",value:"stroke:{{color}}"},{name:"marker-end",value:"url(#{{id}}lost-{{color}})"}],marker:{name:"lost",end:""}}},a={signal:{variants:[{name:"",path:"M9,3 l-8, 2"},{name:"-u",path:"M9,3 l-8,-2"},{name:"-l",path:"M9,3 l 8, 2"},{name:"-lu",path:"M9,3 l 8,-2"}]},method:{variants:[{name:"",path:"1,1 9,3 1,5"},{name:"-l",path:"17,1 9,3 17,5"}]},callback:{variants:[{name:"",path:"M 1,1 l 8,2 l-8,2"},{name:"-l",path:"M17,1 l-8,2 l 8,2"}]},lost:{variants:[{name:"",path:"M7,0 l5,6 M7,6 l5,-6"}]}};function c(t,e,r){return e&&r&&["<->","->"].includes(t)?e"===t&&e<=r?"signal-l":"signal-lu"}function s(t,e){return i[(0,o.default)(t)].marker.name+(Boolean(e)?" "+e:" black")}function l(t,e){function r(e){l(t,e)}return Array.isArray(e)&&e.forEach(r),e.arcs&&e.arcs.forEach(r),e.kind&&i[(0,o.default)(e.kind)]&&i[(0,o.default)(e.kind)].marker&&!t.includes(s(e.kind,e.linecolor))&&t.push(s(e.kind,e.linecolor)),t}function f(t){return{kind:t.split(" ")[0],color:t.split(" ")[1]}}},939:function(t,e,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(t,e,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(e,r);o&&!("get"in o?!e.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,o)}:function(t,e,r,n){void 0===n&&(n=r),t[n]=e[r]}),o=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),i=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var r in t)"default"!==r&&Object.prototype.hasOwnProperty.call(t,r)&&n(e,t,r);return o(e,t),e},a=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.clean=void 0,e.render=function(t,e,r,n){var o=Object.freeze((0,u.flatten)(t)),i=function(t,e){return t.document.getElementById(e)||t.document.body}(e,r);return f.setPrefix(r),function(t,e,r,n){var o;A.document=g.bootstrap(e,r,f.get(),h.getMarkerDefs(f.get(),t),n),A.mirrorEntitiesOnBottom=n.mirrorEntitiesOnBottom,A.regularArcTextVerticalAlignment=n.regularArcTextVerticalAlignment,v.init(A.document),A.layers={lifeline:(o=A.document).getElementById(f.get("_lifelines")),sequence:o.getElementById(f.get("_sequence")),notes:o.getElementById(f.get("_notes")),inline:o.getElementById(f.get("_arcspans")),watermark:o.getElementById(f.get("_watermark"))},A.maxDepth=t.depth,function(t,e){x=new l.Thing(e&&e.hscale),function(t,e){t.arcRowHeight=_,t.arcGradient=C,t.wordWrapArcs=!1,e.arcgradient&&(t.arcRowHeight=parseInt(e.arcgradient,10)+_,t.arcGradient=parseInt(e.arcgradient,10)+C),t.wordWrapArcs=Boolean(e.wordwraparcs)}(t,e)}(A,t.options)}(o,e,i,n||{}),function(t){var e,r,n;S(t.entities,0,t.options),m.clear(x.getDims().height,A.arcRowHeight),function(t,e,r){O=[],E(e,"arcrow",A.arcRowHeight,m.get(-1).y).forEach((function(t){A.layers.lifeline.appendChild(t)})),function(t,e,r){var n=0;t.forEach((function(t,o){t.every((function(t){return t.isVirtual}))?m.set(o,Math.max(m.get(o).height,L(t,e,r))):(m.set(o,Math.max(m.get(o).height,L(t,e,r)),n),n++)}))}(t,e,r),t.forEach((function(t,n){!function(t,e,r,n){var o="arcrow",i=[];t.forEach((function(t){var a={};switch((0,c.default)(t.kind)){case"empty":a=P(t,m.get(e).y),"..."===t.kind&&(o="arcrowomit"),i.push({layer:A.layers.sequence,element:a});break;case"box":a=D(x.getOAndD(t.from,t.to),t,m.get(e).y,n),i.push({title:t.title,layer:A.layers.notes,element:a});break;case"inline_expression":a=j(t,m.get(e).y),i.push({layer:A.layers.notes,element:a}),O.push({arc:t,rownum:e});break;default:a=k(t,r,i,e,n)}})),E(r,o,m.get(e).height,m.get(e).y).forEach((function(t){A.layers.lifeline.appendChild(t)})),i.forEach((function(t){t.element&&(t.title&&t.element.appendChild(y.createTitle(t.title)),t.layer.appendChild(t.element))}))}(t,n,e,r)})),O.forEach((function(t){var e,r,n,o;A.layers.inline.appendChild((e=t,r=m.get(t.rownum).y,n=m.get(e.rownum).y,o=m.get(e.rownum+e.arc.numberofrows+1).y-n,e.arc.label="",function(t,e,r,n){var o=2*A.maxDepth*s.default.LINE_WIDTH,i=t.to-t.from+x.getDims().interEntitySpacing-2*s.default.LINE_WIDTH-o,a=t.from-(x.getDims().interEntitySpacing-2*s.default.LINE_WIDTH-o)/2,c=2*(A.maxDepth-e.depth)*s.default.LINE_WIDTH;return y.createRect({width:i+2*c,height:r||A.arcRowHeight-2*s.default.LINE_WIDTH,x:a-c,y:n},{class:"box inline_expression ".concat(e.kind),color:e.linecolor,bgColor:e.textbgcolor})}(x.getOAndD(e.arc.from,e.arc.to),e.arc,o,r)))}))}(t.arcs,t.entities,t.options),A.mirrorEntitiesOnBottom&&(e=t.entities,r=t.options,n=m.getLast().y+(m.getLast().height+A.arcRowHeight)/2,E(e,"arcrow",A.arcRowHeight,n).forEach((function(t){A.layers.lifeline.appendChild(t)})),S(e,n+A.arcRowHeight/2,r))}(o),function(t){var e,r,n=function(t){var e=b.determineDepthCorrection(t.depth,s.default.LINE_WIDTH),r=m.getLast(),n={width:t.entities.length*x.getDims().interEntitySpacing+e,height:Boolean(A.mirrorEntitiesOnBottom)?2*x.getDims().height+r.y+r.height+2*w:r.y+r.height/2+2*w,horizontaltransform:(x.getDims().interEntitySpacing+e-x.getDims().width)/2,autoscale:!!t.options&&!!t.options.width&&"auto"===t.options.width,verticaltransform:w,scale:1};return n.x=0-n.horizontaltransform,n.y=0-n.verticaltransform,n}(t);e=n,(r=A.document.getElementById(f.get("_background")))&&r.appendChild(y.createRect(e,{class:"bglayer"})),function(t){var e=A.document.getElementById(f.get()),r=A.document.getElementById(f.get("_body"));r&&e&&(r.setAttribute("transform","translate(".concat(t.horizontaltransform,",").concat(t.verticaltransform,") ")+"scale(".concat(t.scale,",").concat(t.scale,")")),t.autoscale&&!0===t.autoscale?y.updateSVG(e,{width:"100%",height:"100%",viewBox:"0 0 ".concat(t.width.toString()," ").concat(t.height.toString())}):y.updateSVG(e,{width:t.width.toString(),height:t.height.toString(),viewBox:"0 0 ".concat(t.width.toString()," ").concat(t.height.toString())}))}(n=function(t,e){return t.watermark&&function(t,e){A.layers.watermark.appendChild(y.createDiagonalText(t,e,"watermark"))}(t.watermark,e),t.width&&"auto"!==t.width&&(e=b.scaleCanvasToWidth(t.width,e)),e}(t.options,n))}(o),v.webkitNamespaceBugWorkaround(i.innerHTML)};var c=a(r(7796)),u=r(7635),s=a(r(9370)),l=r(4420),f=i(r(5871)),d=i(r(8475)),h=i(r(7598)),p=i(r(4772)),g=i(r(8780)),b=i(r(8340)),m=i(r(416)),y=i(r(8912)),v=i(r(2314)),x=new l.Thing(0),w=3,_=38,C=0,A=Object.seal({arcRowHeight:_,arcGradient:C,arcEndX:0,wordWrapArcs:!1,mirrorEntitiesOnBottom:!1,regularArcTextVerticalAlignment:"middle",maxDepth:0,document:{},layers:{lifeline:{},sequence:{},notes:{},inline:{},watermark:{}}}),O=[];function S(t,e,r){A.layers.sequence.appendChild(x.renderEntities(t,e,r)),A.arcEndX=x.getDims().entityXHWM-x.getDims().interEntitySpacing+x.getDims().width}function k(t,e,r,n,o){var i=y.createGroup();return t.from&&t.to&&("*"===t.to?(function(t,e,r,n,o){var i=0,a=t.label,c=x.getX(t.from);t.label="",e.forEach((function(e){var a={};e.name!==t.from&&(i=x.getX(e.name),a=T(t,c,i,n,o),r.push({layer:A.layers.sequence,element:a}))})),t.label=a}(t,e,r,n,o),i=p.createLabel(t,{x:0,y:m.get(n).y,width:A.arcEndX},Object.assign({alignAround:!0,ownBackground:!0},structuredClone(o))),r.push({title:t.title,layer:A.layers.sequence,element:i})):(i=T(t,x.getX(t.from),x.getX(t.to),n,o),r.push({title:t.title,layer:A.layers.sequence,element:i}))),i}function L(t,e,r){var n=0;return t.forEach((function(t){var o;switch((0,c.default)(t.kind)){case"empty":o=P(t,0);break;case"box":o=D(x.getOAndD(t.from,t.to),t,0,r);break;case"inline_expression":o=j(t,0);break;default:var i=structuredClone(t);i.arcskip=0,o=k(i,e,[],0,r)}n=Math.max(n,v.getBBox(o).height+2*s.default.LINE_WIDTH)})),n}function j(t,e){var r=x.getOAndD(t.from,t.to),n=e>0,o=2*A.maxDepth*s.default.LINE_WIDTH,i=r.to-r.from+(x.getDims().interEntitySpacing-2*s.default.LINE_WIDTH)-7-s.default.LINE_WIDTH,a=r.from-(x.getDims().interEntitySpacing-3*s.default.LINE_WIDTH-o)/2-2*(A.maxDepth-t.depth)*s.default.LINE_WIDTH,c=y.createGroup();n||(t.label=t.kind+(t.label?": "+t.label:""));var u=p.createLabel(t,{x:a+s.default.LINE_WIDTH-i/2,y:e+A.arcRowHeight/4,width:i},{alignLeft:!0,ownBackground:!1,wordwraparcs:A.wordWrapArcs}),l=v.getBBox(u),f=Math.max(l.height+2*s.default.LINE_WIDTH,A.arcRowHeight/2-2*s.default.LINE_WIDTH),d=Math.min(l.width+2*s.default.LINE_WIDTH,i),h=y.createEdgeRemark({width:d-s.default.LINE_WIDTH+7,height:f,x:a,y:e},{class:"box inline_expression_label",color:t.linecolor,bgColor:t.textbgcolor,foldSize:7});return c.appendChild(h),c.appendChild(u),c}function E(t,e,r,n){return r","::","<:>"].includes(t.kind),l=function(t,e,r){var n=m.get(t).y+e;if(r){var o=Math.floor(r),i=r-o,a=m.get(t).realRowNumber;n=m.getByRealRowNumber(a+o).y+i*(m.getByRealRowNumber(a+o+1).y-m.getByRealRowNumber(a+o).y)}return n}(n,A.arcGradient,t.arcskip);if(e===(r=b.determineArcXTo(t.kind,e,r))){a.appendChild(function(t,e,r,n,o,i){var a=A.arcRowHeight/5*2,c=x.getDims().interEntitySpacing/2,u={},l="arc ".concat(d.getAggregateClass(t)," ").concat(d.getClass(t));if(n){u=y.createGroup();var p=y.createUTurn({x:e,y:o,width:c-2*s.default.LINE_WIDTH,height:a},o+r+a-2*s.default.LINE_WIDTH,{class:l,dontHitHome:"::"!==t,lineWidth:s.default.LINE_WIDTH}),g=y.createUTurn({x:e,y:o,width:c,height:a},o+r+a-s.default.LINE_WIDTH,{lineWidth:s.default.LINE_WIDTH}),b=y.createUTurn({x:e,y:o,width:c,height:a},o+r+a,{class:l,dontHitHome:"::"!==t,lineWidth:s.default.LINE_WIDTH});i&&p.setAttribute("style","stroke:".concat(i)),h.getAttributes(f.get(),t,i,e,e).forEach((function(t){g.setAttribute(t.name,t.value)})),g.setAttribute("style","stroke:transparent;"),Boolean(i)&&b.setAttribute("style","stroke:".concat(i)),u.appendChild(p),u.appendChild(b),u.appendChild(g),u.setAttribute("class",l)}else u=y.createUTurn({x:e,y:o,width:c,height:a},o+r+a,{class:l,dontHitHome:"-x"===t,lineWidth:s.default.LINE_WIDTH}),h.getAttributes(f.get(),t,i,e,e).forEach((function(t){u.setAttribute(t.name,t.value)}));return u}(t.kind,e,l-m.get(n).y-A.arcGradient,u,m.get(n).y,t.linecolor));var g=2*x.getDims().interEntitySpacing/3;a.appendChild(p.createLabel(t,{x:e+1.5*s.default.LINE_WIDTH-g/2,y:m.get(n).y-A.arcRowHeight/5-s.default.LINE_WIDTH/2,width:g},Object.assign({alignLeft:!0,alignAbove:!0,ownBackground:!0},structuredClone(o))))}else{var v=y.createLine({xFrom:e,yFrom:m.get(n).y,xTo:r,yTo:l},{class:c,doubleLine:u});h.getAttributes(f.get(),t.kind,t.linecolor,e,r).forEach((function(t){v.setAttribute(t.name,t.value)})),a.appendChild(v),a.appendChild(p.createLabel(t,{x:e,y:m.get(n).y+(l-m.get(n).y)/2,width:r-e},Object.assign({alignAround:!0,alignAbove:"above"===A.regularArcTextVerticalAlignment,ownBackground:!0},structuredClone(o))))}return a}function M(t,e,r){var n=0,o=A.arcEndX;return t.from&&t.to&&(n=e.from,o=e.to-e.from),p.createLabel(t,{x:n,y:r,width:o},{ownBackground:!0,wordwraparcs:A.wordWrapArcs})}function D(t,e,r,n){var o,i=2*A.maxDepth*s.default.LINE_WIDTH,a=t.to-t.from+x.getDims().interEntitySpacing-2*s.default.LINE_WIDTH-i,c=t.from-(x.getDims().interEntitySpacing-2*s.default.LINE_WIDTH-i)/2,u=y.createGroup(),l=p.createLabel(e,{x:c,y:r,width:a},n),f=v.getBBox(l),d=Math.max(f.height+2*s.default.LINE_WIDTH,A.arcRowHeight-2*s.default.LINE_WIDTH),h={width:a,height:d,x:c,y:r-d/2};switch(e.kind){case"rbox":o=y.createRBox(h,{class:"box rbox",color:e.linecolor,bgColor:e.textbgcolor});break;case"abox":o=y.createABox(h,{class:"box abox",color:e.linecolor,bgColor:e.textbgcolor});break;case"note":o=y.createNote(h,{class:"box note",color:e.linecolor,bgColor:e.textbgcolor,lineWidth:s.default.LINE_WIDTH});break;default:o=y.createRect(h,{class:"box",color:e.linecolor,bgColor:e.textbgcolor})}return u.appendChild(o),u.appendChild(l),u}e.clean=function(t,e){A.document=g.init(e),v.init(A.document),v.removeRenderedSVGFromElement(t)}},4772:function(t,e,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(t,e,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(e,r);o&&!("get"in o?!e.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,o)}:function(t,e,r,n){void 0===n&&(n=r),t[n]=e[r]}),o=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),i=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var r in t)"default"!==r&&Object.prototype.hasOwnProperty.call(t,r)&&n(e,t,r);return o(e,t),e},a=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.createLabel=function(t,e,r,n){var o=f.createGroup(n);if(r=r||{},t.label){var i=e.x+e.width/2,a=function(t,e){return e.alignAbove&&t.forEach((function(){t.push("")})),e.alignAround&&1===t.length&&t.push(""),t}(p(t.label,t.kind,e.width,s.default.FONT_SIZE,r),r),c=function(t,e,r){return r.alignAround?e.y-(t.length-1)/2*(d.calculateTextHeight()+s.default.LINE_WIDTH+1):e.y-(t.length-1)/2*(d.calculateTextHeight()+1)}(a,e,r);a.forEach((function(e,n){if(""!==e){var a=function(t,e,r,n,o,i){var a,c,u,p=r+(o+1/4)*d.calculateTextHeight(),g=function(t,e){var r=t,n=l.getClass(r),o=l.getAggregateClass(r);return n===o?n+e:o+e+n+e}(n.kind,"-text ");return i.alignLeft&&(g+="anchor-start "),i.alignAround&&(p=r+(o+1/4)*(d.calculateTextHeight()+s.default.LINE_WIDTH)),a=h(function(t,e,r,n,o){var i=0===e?{class:n,url:o.url,id:o.id,idurl:o.idurl}:{class:n,url:o.url};return f.createText(t,r,i)}(t,o,{x:e,y:p},g,n),n.textcolor),c=n.url,u=n.textcolor,h(a,c&&!u?"blue":u)}(e,i,c,t,n,r);r.ownBackground&&o.appendChild((u=a,p=t.textbgcolor,g=f.createRect(d.getBBox(u),{class:"label-text-background"}),p&&g.setAttribute("style","fill:".concat(p,"; stroke:").concat(p,";")),g)),o.appendChild(a)}var u,p,g;c++}))}return o},e.splitLabel=p;var c=a(r(7796)),u=a(r(2900)),s=a(r(9370)),l=i(r(8475)),f=i(r(8912)),d=i(r(2314));function h(t,e){return e&&t.setAttribute("style","fill:".concat(e,";")),t}function p(t,e,r,n,o){return function(t,e){return function(t,e){return"box"===(0,c.default)(t)&&e}(t,e.wordwrapboxes)||function(t,e){return"entity"===t&&e}(t,e.wordwrapentities)||function(t,e){return"box"!==(0,c.default)(t)&&"entity"!==t&&e}(t,e.wordwraparcs)||void 0===t}(e,o)?(0,u.default)(t,function(t,e){var r=Math.abs(t);return r<=160?r/(e/12*8):r<=320?r/(e/12*6.4):r<=480?r/(e/12*5.9):r/(e/12*5.6)}(r,n)):t.split("\\n")}},8780:function(t,e,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(t,e,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(e,r);o&&!("get"in o?!e.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,o)}:function(t,e,r,n){void 0===n&&(n=r),t[n]=e[r]}),o=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),i=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var r in t)"default"!==r&&Object.prototype.hasOwnProperty.call(t,r)&&n(e,t,r);return o(e,t),e},a=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.init=f,e.bootstrap=function(t,e,r,n,o){l=f(t);var i,a,h=c.createSVG(r,r,function(t){var e="",r=d(t.additionalTemplate);return Boolean(r)&&(e=r.renderMagic),e}(o));return Boolean(o.source)&&h.appendChild(function(t,e){var r=c.createDesc();return r.appendChild(t.document.createTextNode("\n\n# Generated by mscgen_js - https://sverweij.github.io/mscgen_js\n".concat(e))),r}(t,o.source)),h.appendChild(function(t,e,r){var n=c.createDefs();return n.appendChild(function(t,e){var r=l.createElement("style");return r.setAttribute("type","text/css"),r.appendChild(l.createTextNode(function(t,e){return(r=d(t.additionalTemplate)||{},n=t.styleAdditions,(r.cssBefore||"")+s.baseTemplate+(r.cssAfter||"")+(n||"")).replace(/<%=fontSize%>/g,u.default.FONT_SIZE).replace(/<%=lineWidth%>/g,u.default.LINE_WIDTH).replace(/<%=id%>/g,e);var r,n}(t,e))),r}(r,t)),function(t,e){return e.forEach((function(e){"method"===e.type?t.appendChild(c.createMarkerPolygon(e.name,e.path,e.color)):t.appendChild(c.createMarkerPath(e.name,e.path,e.color))})),t}(n,e)}(r,n,o)),h.appendChild((i=r,(a=c.createGroup("".concat(i,"_body"))).appendChild(c.createGroup("".concat(i,"_background"))),a.appendChild(c.createGroup("".concat(i,"_arcspans"))),a.appendChild(c.createGroup("".concat(i,"_lifelines"))),a.appendChild(c.createGroup("".concat(i,"_sequence"))),a.appendChild(c.createGroup("".concat(i,"_notes"))),a.appendChild(c.createGroup("".concat(i,"_watermark"))),a)),e.appendChild(h),l};var c=i(r(8912)),u=a(r(9370)),s=r(2006),l={};function f(t){return c.init(t.document,{LINE_WIDTH:u.default.LINE_WIDTH,FONT_SIZE:u.default.FONT_SIZE}),t.document}function d(t){return s.namedStyles.find((function(e){return e.name===t}))}},8340:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.scaleCanvasToWidth=function(t,e){var r=structuredClone(e);return r.scale=t/r.width,r.width*=r.scale,r.height*=r.scale,r.horizontaltransform*=r.scale,r.verticaltransform*=r.scale,r.x=0-r.horizontaltransform,r.y=0-r.verticaltransform,r},e.determineDepthCorrection=function(t,e){return t?2*(t+1)*e*2:0},e.determineArcXTo=function(t,e,r){return"-x"===t?e+3/4*(r-e):r}},416:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.get=i,e.getLast=a,e.clear=function(t,e){r=[],n=t,o=e},e.getByRealRowNumber=function(t){var e=r.find((function(e){return e.realRowNumber===t}));return void 0===e&&(e=a()),e},e.set=function(t,e,n){void 0===n&&(n=-1);var o=i(t-1);r[t]={y:o.y+(o.height+e)/2,height:e,realRowNumber:n}};var r=[],n=0,o=0;function i(t){return r[t]?r[t]:{y:n+1.5*o+t*o,height:o,realRowNumber:r.length-1}}function a(){return i(r.length-1)}},7706:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.XLINKNS=e.SVGNS=void 0,e.setAttribute=n,e.setAttributeNS=o,e.setAttributes=i,e.setAttributesNS=function(t,e,r){return Object.keys(r||{}).forEach((function(n){o(t,e,n,r[n])})),t},e.createElement=function(t,n){return i(r.createElementNS(e.SVGNS,t),n)},e.createTextNode=function(t){return r.createTextNode(t)},e.init=function(t){r=t},e.SVGNS="http://www.w3.org/2000/svg",e.XLINKNS="http://www.w3.org/1999/xlink";var r={};function n(t,e,r){return Boolean(r)&&t.setAttribute(e,r),t}function o(t,e,r,n){return Boolean(n)&&t.setAttributeNS(e,r,n),t}function i(t,e){return Object.keys(e||{}).forEach((function(r){n(t,r,e[r])})),t}},424:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){return 0-360*Math.atan(t.height/t.width)/(2*Math.PI)}},8912:function(t,e,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(t,e,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(e,r);o&&!("get"in o?!e.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,o)}:function(t,e,r,n){void 0===n&&(n=r),t[n]=e[r]}),o=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),i=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var r in t)"default"!==r&&Object.prototype.hasOwnProperty.call(t,r)&&n(e,t,r);return o(e,t),e};Object.defineProperty(e,"__esModule",{value:!0}),e.createMarkerPolygon=e.createMarkerPath=e.createGroup=e.createUTurn=e.createDiagonalText=e.createText=e.createNote=e.createABox=e.createRBox=e.createRect=e.createTSpan=e.createDefs=e.createDesc=e.createTitle=e.updateSVG=void 0,e.init=function(t,e){c.init(t),l=Object.assign({LINE_WIDTH:2,FONT_SIZE:12},e)},e.createSVG=function(t,e,r){return s=function(t){return Boolean(t)?"wobbly"===t?u:a:s}(r),c.createSVG(t,e)},e.createEdgeRemark=function(t,e){return s.createEdgeRemark(t,{class:e.class,color:e.color,bgColor:e.bgColor,foldSize:e.foldSize,lineWidth:l.LINE_WIDTH})},e.createLine=function(t,e){return Boolean(e)&&Boolean(e.doubleLine)?(e.lineWidth||(e.lineWidth=l.LINE_WIDTH),s.createDoubleLine(t,e)):s.createSingleLine(t,e)};var a=i(r(5767)),c=i(r(9452)),u=i(r(6180)),s=a,l={};e.updateSVG=c.updateSVG,e.createTitle=c.createTitle,e.createDesc=c.createDesc,e.createDefs=c.createDefs,e.createTSpan=c.createTSpan,e.createRect=function(t,e){return s.createRect(t,e)},e.createRBox=function(t,e){return s.createRBox(t,e)},e.createABox=function(t,e){return s.createABox(t,e)},e.createNote=function(t,e){return s.createNote(t,e)},e.createText=c.createText,e.createDiagonalText=c.createDiagonalText,e.createUTurn=c.createUTurn,e.createGroup=c.createGroup,e.createMarkerPath=c.createMarkerPath,e.createMarkerPolygon=c.createMarkerPolygon},3136:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){return e?Math.round(t*Math.pow(10,e))/Math.pow(10,e):Math.round(t)}},5767:function(t,e,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(t,e,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(e,r);o&&!("get"in o?!e.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,o)}:function(t,e,r,n){void 0===n&&(n=r),t[n]=e[r]}),o=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),i=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var r in t)"default"!==r&&Object.prototype.hasOwnProperty.call(t,r)&&n(e,t,r);return o(e,t),e};Object.defineProperty(e,"__esModule",{value:!0}),e.createRect=e.createSingleLine=void 0,e.createDoubleLine=function(t,e){var r=e.lineWidth||1,n=r,o=e?e.class:"",i=c.getDirection(t),u=c.determineEndCorrection(t,o,r),s=c.determineStartCorrection(t,o,r),l=(t.xTo-t.xFrom+u-s).toString(),f=(t.yTo-t.yFrom).toString(),d=a.pathPoint2String("l",i.signX,i.dy),h=a.pathPoint2String("l",l,f);return a.createPath(a.pathPoint2String("M",t.xFrom,t.yFrom-7.5*r*i.dy)+d+a.pathPoint2String("M",t.xFrom+s,t.yFrom-n)+h+a.pathPoint2String("M",t.xFrom+s,t.yFrom+n)+h+a.pathPoint2String("M",t.xTo-i.signX,t.yTo+7.5*r*i.dy)+d,e)},e.createNote=function(t,e){var r=e&&e.lineWidth||1,n=Math.max(9,Math.min(4.5*r,t.height/2)),o=n.toString(10);return a.createPath(a.pathPoint2String("M",t.x,t.y)+a.pathPoint2String("l",t.width-n,0)+a.pathPoint2String("l",0,o)+a.pathPoint2String("l",o,0)+a.pathPoint2String("m",-o,-o)+a.pathPoint2String("l",o,o)+a.pathPoint2String("l",0,t.height-n)+a.pathPoint2String("l",-t.width,0)+a.pathPoint2String("l",0,-t.height)+"z",e)},e.createRBox=function(t,e){var r=Object.assign({rx:6,ry:6},e);return a.createRect(t,r)},e.createABox=function(t,e){return a.createPath(a.pathPoint2String("M",t.x,t.y+t.height/2)+a.pathPoint2String("l",3,-t.height/2)+a.pathPoint2String("l",t.width-6,0)+a.pathPoint2String("l",3,t.height/2)+a.pathPoint2String("l",-3,t.height/2)+a.pathPoint2String("l",-(t.width-6),0)+"z",e)},e.createEdgeRemark=function(t,e){var r=e&&e.foldSize?e.foldSize:7,n=Object.assign({class:null,color:null,bgColor:null},e);return a.createPath(a.pathPoint2String("M",t.x,t.y)+a.pathPoint2String("l",t.width,0)+a.pathPoint2String("l",0,t.height-r)+a.pathPoint2String("l",-r,r)+a.pathPoint2String("l",-(t.width-r),0),n)};var a=i(r(9452)),c=i(r(7544));e.createSingleLine=a.createSingleLine,e.createRect=a.createRect},9452:function(t,e,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(t,e,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(e,r);o&&!("get"in o?!e.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,o)}:function(t,e,r,n){void 0===n&&(n=r),t[n]=e[r]}),o=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),i=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var r in t)"default"!==r&&Object.prototype.hasOwnProperty.call(t,r)&&n(e,t,r);return o(e,t),e},a=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.updateSVG=e.init=void 0,e.point2String=f,e.pathPoint2String=d,e.createTSpan=g,e.createText=b,e.createPath=m,e.createSingleLine=function(t,e){return c.createElement("line",{x1:(0,s.default)(t.xFrom,l).toString(),y1:(0,s.default)(t.yFrom,l).toString(),x2:(0,s.default)(t.xTo,l).toString(),y2:(0,s.default)(t.yTo,l).toString(),class:e?e.class:null})},e.createRect=function(t,e){var r=Object.assign({class:null,color:null,bgColor:null,rx:null,ry:null},e);return y(c.createElement("rect",{width:(0,s.default)(t.width,l),height:(0,s.default)(t.height,l),x:(0,s.default)(t.x,l),y:(0,s.default)(t.y,l),rx:(0,s.default)(r.rx||0,l),ry:(0,s.default)(r.ry||0,l),class:r.class}),r.color,r.bgColor)},e.createUTurn=function(t,e,r){var n=Object.assign({class:null,dontHitHome:!1,lineWidth:1},r),o=n.dontHitHome?t.x+7.5*(n.lineWidth||1):t.x;return m(d("M",t.x,t.y-t.height/2)+d("C",t.x+t.width,t.y-7.5*(n.lineWidth||1)/2)+f({x:t.x+t.width,y:e+0})+f({x:o,y:e}),{class:n.class})},e.createGroup=function(t,e){return c.createElement("g",{id:t,class:e})},e.createMarkerPath=function(t,e,r){var n=h(t,"arrow-marker","auto");return n.appendChild(m(e,{class:"arrow-style",style:"stroke-dasharray:100,1;stroke:".concat(r)||0})),n},e.createMarkerPolygon=function(t,e,r){var n=h(t,"arrow-marker","auto");return n.appendChild(c.createElement("polygon",{points:e,class:"arrow-style",stroke:r||"black",fill:r||"black"})),n},e.createTitle=function(t){var e=c.createElement("title"),r=c.createTextNode(t);return e.appendChild(r),e},e.createDiagonalText=function(t,e,r){return c.setAttributes(b(t,{x:e.width/2,y:e.height/2},{class:r}),{transform:"rotate(".concat((0,s.default)((0,u.default)(e),l).toString()," ")+"".concat((0,s.default)(e.width/2,l).toString()," ")+"".concat((0,s.default)(e.height/2,l).toString(),")")})},e.createDesc=function(){return c.createElement("desc")},e.createDefs=function(){return c.createElement("defs")},e.createSVG=function(t,e){return c.createElement("svg",{version:"1.1",id:t,class:e,xmlns:c.SVGNS,"xmlns:xlink":c.XLINKNS,width:"0",height:"0"})};var c=i(r(7706)),u=a(r(424)),s=a(r(3136)),l=2;function f(t){return"".concat((0,s.default)(t.x,l).toString(),",").concat((0,s.default)(t.y,l).toString()," ")}function d(t,e,r){return t+f({x:e,y:r})}function h(t,e,r,n){return c.createElement("marker",{orient:r,id:t,class:e,viewBox:Boolean(n)?n:"0 0 10 10",refX:"9",refY:"3",markerUnits:"strokeWidth",markerWidth:"10",markerHeight:"10"})}var p="vertical-align:text-top;";function g(t,e){var r=c.createElement("tspan"),n=c.createTextNode(t);return r.appendChild(n),e?function(t,e){var r=c.createElement("a");return c.setAttributesNS(r,c.XLINKNS,{"xlink:href":t,"xlink:title":t}),r.appendChild(e),r}(e,r):r}function b(t,e,r){var n=Object.assign({class:null,url:null,id:null,idurl:null},r),o=c.createElement("text",{x:(0,s.default)(e.x,l).toString(),y:(0,s.default)(e.y,l).toString(),class:n.class});if(o.appendChild(g(t,n.url)),n.id){var i=g(" [".concat(n.id,"]"),n.idurl);i.setAttribute("style",p),o.appendChild(i)}return o}function m(t,e){var r=Object.assign({class:null,style:null,color:null,bgColor:null},e);return y(c.createElement("path",{d:t,class:r.class,style:r.style}),r.color,r.bgColor)}function y(t,e,r){var n="";return r&&(n+="fill:".concat(r,";")),e&&(n+="stroke:".concat(e,";")),c.setAttribute(t,"style",n)}p+="font-size:0.7em;text-anchor:start;",e.init=c.init,e.updateSVG=c.setAttributes},7544:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.determineStartCorrection=function(t,e,r){var n=0;return!e.includes("nodi")&&e.includes("bidi")&&(n=t.xTo>t.xFrom?7.5*r:-7.5*r),n},e.determineEndCorrection=function(t,e,r){var n=0;return e.includes("nodi")||(n=t.xTo>t.xFrom?-7.5*r:7.5*r),n},e.getDirection=function(t){var e=t.xTo>t.xFrom?1:-1;return{signX:e,signY:t.yTo>t.yFrom?1:-1,dy:e*(t.yTo-t.yFrom)/(t.xTo-t.xFrom)}}},5994:function(t,e,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(t,e,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(e,r);o&&!("get"in o?!e.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,o)}:function(t,e,r,n){void 0===n&&(n=r),t[n]=e[r]}),o=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),i=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var r in t)"default"!==r&&Object.prototype.hasOwnProperty.call(t,r)&&n(e,t,r);return o(e,t),e};Object.defineProperty(e,"__esModule",{value:!0}),e.renderNotePathString=function(t,e){return a.pathPoint2String("M",t.x,t.y)+(0,u.line2CurveString)({xFrom:t.x,yFrom:t.y,xTo:t.x+t.width-e,yTo:t.y})+a.pathPoint2String("L",t.x+t.width-e,t.y)+(0,u.line2CurveString)({xFrom:t.x+t.width-e,yFrom:t.y,xTo:t.x+t.width,yTo:t.y+e})+a.pathPoint2String("L",t.x+t.width,t.y+e)+(0,u.line2CurveString)({xFrom:t.x+t.width,yFrom:t.y+e,xTo:t.x+t.width,yTo:t.y+t.height})+a.pathPoint2String("L",t.x+t.width,t.y+t.height)+(0,u.line2CurveString)({xFrom:t.x+t.width,yFrom:t.y+t.height,xTo:t.x,yTo:t.y+t.height})+a.pathPoint2String("L",t.x,t.y+t.height)+(0,u.line2CurveString)({xFrom:t.x,yFrom:t.y+t.height,xTo:t.x,yTo:t.y})+a.pathPoint2String("L",t.x,t.y)+"z"},e.renderNoteCornerString=function(t,e){return a.pathPoint2String("M",t.x+t.width-e,t.y)+(0,u.line2CurveString)({xFrom:t.x+t.width-e,yFrom:t.y,xTo:t.x+t.width-e,yTo:t.y+e})+a.pathPoint2String("L",t.x+t.width-e,t.y+e)+(0,u.line2CurveString)({xFrom:t.x+t.width-e,yFrom:t.y+e,xTo:t.x+t.width,yTo:t.y+e})+a.pathPoint2String("L",t.x+t.width,t.y+e)},e.abox2CurveString=function(t,e){return a.pathPoint2String("M",t.x,t.y+t.height/2)+(0,u.line2CurveString)({xFrom:t.x,yFrom:t.y+t.height/2,xTo:t.x+e,yTo:t.y})+a.pathPoint2String("L",t.x+e,t.y)+(0,u.line2CurveString)({xFrom:t.x+e,yFrom:t.y,xTo:t.x+t.width-e,yTo:t.y})+a.pathPoint2String("L",t.x+t.width-e,t.y)+(0,u.line2CurveString)({xFrom:t.x+t.width-e,yFrom:t.y,xTo:t.x+t.width,yTo:t.y+t.height/2})+a.pathPoint2String("L",t.x+t.width,t.y+t.height/2)+(0,u.line2CurveString)({xFrom:t.x+t.width,yFrom:t.y+t.height/2,xTo:t.x+t.width-e,yTo:t.y+t.height})+a.pathPoint2String("L",t.x+t.width-e,t.y+t.height)+(0,u.line2CurveString)({xFrom:t.x+t.width-e,yFrom:t.y+t.height,xTo:t.x+e,yTo:t.y+t.height})+a.pathPoint2String("L",t.x+e,t.y+t.height)+(0,u.line2CurveString)({xFrom:t.x+e,yFrom:t.y+t.height,xTo:t.x,yTo:t.y+t.height/2})+"z"},e.rbox2CurveString=function(t,e){return a.pathPoint2String("M",t.x,t.y+e)+(0,u.points2CurveString)([{controlX:t.x,controlY:t.y,x:t.x+e,y:t.y}])+(0,u.line2CurveString)({xFrom:t.x+e,yFrom:t.y,xTo:t.x+t.width-e,yTo:t.y})+a.pathPoint2String("L",t.x+t.width-e,t.y)+(0,u.points2CurveString)([{controlX:t.x+t.width,controlY:t.y,x:t.x+t.width,y:t.y+e}])+(0,u.line2CurveString)({xFrom:t.x+t.width,yFrom:t.y+e,xTo:t.x+t.width,yTo:t.y+t.height-e})+a.pathPoint2String("L",t.x+t.width,t.y+t.height-e)+(0,u.points2CurveString)([{controlX:t.x+t.width,controlY:t.y+t.height,x:t.x+t.width-e,y:t.y+t.height}])+(0,u.line2CurveString)({xFrom:t.x+t.width-e,yFrom:t.y+t.height,xTo:t.x+e,yTo:t.y+t.height})+a.pathPoint2String("L",t.x+e,t.y+t.height)+(0,u.points2CurveString)([{controlX:t.x,controlY:t.y+t.height,x:t.x,y:t.y+t.height-e}])+(0,u.line2CurveString)({xFrom:t.x,yFrom:t.y+t.height-e,xTo:t.x,yTo:t.y+e})+"z"},e.doubleLine2CurveString=function(t,e){var r=e.lineWidth||1,n=r,o=e?e.class:"",i=c.getDirection(t),s=c.determineEndCorrection(t,o,r),l=c.determineStartCorrection(t,o,r);return a.pathPoint2String("M",t.xFrom,t.yFrom-7.5*r*i.dy)+a.pathPoint2String("l",i.signX,i.dy)+a.pathPoint2String("M",t.xFrom+l,t.yFrom-n)+(0,u.line2CurveString)({xFrom:t.xFrom+l,yFrom:t.yFrom-n,xTo:t.xTo+s,yTo:t.yTo-n})+a.pathPoint2String("M",t.xFrom+l,t.yFrom+n)+(0,u.line2CurveString)({xFrom:t.xFrom+l,yFrom:t.yFrom+n,xTo:t.xTo+s,yTo:t.yTo+n})+a.pathPoint2String("M",t.xTo-i.signX,t.yTo+7.5*r*i.dy)+a.pathPoint2String("l",i.signX,i.dy)},e.edgeRemark2CurveString=function(t,e){return a.pathPoint2String("M",t.x+t.width,t.y)+(0,u.line2CurveString)({xFrom:t.x+t.width,yFrom:t.y,xTo:t.x+t.width,yTo:t.y+t.height-e})+a.pathPoint2String("L",t.x+t.width,t.y+t.height-e)+(0,u.line2CurveString)({xFrom:t.x+t.width,yFrom:t.y+t.height-e,xTo:t.x+t.width-e,yTo:t.y+t.height})+a.pathPoint2String("L",t.x+t.width-e,t.y+t.height)+(0,u.line2CurveString)({xFrom:t.x+t.width-e,yFrom:t.y+t.height,xTo:t.x-1,yTo:t.y+t.height})+a.pathPoint2String("L",t.x-1,t.y+t.height)};var a=i(r(9452)),c=i(r(7544)),u=r(9521)},9521:function(t,e,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(t,e,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(e,r);o&&!("get"in o?!e.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,o)}:function(t,e,r,n){void 0===n&&(n=r),t[n]=e[r]}),o=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),i=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var r in t)"default"!==r&&Object.prototype.hasOwnProperty.call(t,r)&&n(e,t,r);return o(e,t),e},a=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.points2CurveString=d,e.line2CurveString=function(t){return d(m(t,l,f))},e.getLineLength=h,e.getNumberOfSegments=p,e.getBetweenPoints=m;var c=a(r(3136)),u=i(r(9452)),s=i(r(7544)),l=70,f=3;function d(t){return t.map((function(t){return"".concat(u.pathPoint2String("S",t.controlX,t.controlY)," ")+"".concat(u.point2String(t))})).join(" ")}function h(t){var e=Math.abs(t.xTo-t.xFrom),r=Math.abs(t.yTo-t.yFrom);return Math.sqrt(e*e+r*r)}function p(t,e){var r=h(t);return r>0?Math.floor(r/e):0}function g(t){return Math.round(2*Math.random()*t)-t}var b=2;function m(t,e,r){e=function(t,e){if(t<=0)throw new Error("pInterval must be > 0");return Math.min(h(e),t)}(e,t);for(var n,o=[],i=p(t,e),a=s.getDirection(t),u=a.signX*Math.sqrt(Math.pow(e,2)/(1+Math.pow(a.dy,2))),l=a.signY*(Math.abs(a.dy)===1/0?e:Math.sqrt(Math.pow(a.dy,2)*Math.pow(e,2)/(1+Math.pow(a.dy,2)))),f=1;f<=i;f++)e>h({xFrom:(n={controlX:(0,c.default)(t.xFrom+(f-.5)*u+g(r),b),controlY:(0,c.default)(t.yFrom+(f-.5)*l+g(r),b),x:(0,c.default)(t.xFrom+f*u,b),y:(0,c.default)(t.yFrom+f*l,b)}).x,yFrom:n.y,xTo:t.xTo,yTo:t.yTo})&&(n.x=t.xTo,n.y=t.yTo),o.push(n);return o}},6180:function(t,e,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(t,e,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(e,r);o&&!("get"in o?!e.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,o)}:function(t,e,r,n){void 0===n&&(n=r),t[n]=e[r]}),o=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),i=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var r in t)"default"!==r&&Object.prototype.hasOwnProperty.call(t,r)&&n(e,t,r);return o(e,t),e},a=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.createSingleLine=function(t,e){void 0===e&&(e={});var r=f.getDirection(t);return l.createPath(l.pathPoint2String("M",t.xFrom,t.yFrom)+l.pathPoint2String("L",(0,s.default)(t.xFrom+r.signX*Math.sqrt(1/(1+Math.pow(r.dy,2))),2),t.yFrom+r.signY*(Math.abs(r.dy)===1/0?1:(0,s.default)(Math.sqrt(Math.pow(r.dy,2)/(1+Math.pow(r.dy,2))),2)))+(0,u.line2CurveString)(t),e)},e.createNote=function(t,e){var r=e&&e.lineWidth||1,n=Math.max(9,Math.min(4.5*r,t.height/2)),o=l.createGroup();return o.appendChild(l.createPath((0,c.renderNotePathString)(t,n),e)),e.bgColor="transparent",o.appendChild(l.createPath((0,c.renderNoteCornerString)(t,n),e)),o},e.createRect=function(t,e){return l.createPath((0,c.rbox2CurveString)(t,0),e)},e.createABox=function(t,e){return l.createPath((0,c.abox2CurveString)(t,3),e)},e.createRBox=function(t,e){return l.createPath((0,c.rbox2CurveString)(t,6),e)},e.createEdgeRemark=function(t,e){var r=e&&e.lineWidth||1,n=l.createGroup(),o=e&&e.foldSize?e.foldSize:7,i=e&&e.color?e.color:"black";e.color="transparent!important";var a=l.createPath(l.pathPoint2String("M",t.x,t.y+r/2)+l.pathPoint2String("L",t.x+t.width,t.y+r/2)+l.pathPoint2String("L",t.x+t.width,t.y+t.height-o)+l.pathPoint2String("L",t.x+t.width-o,t.y+t.height)+l.pathPoint2String("L",t.x,t.y+t.height)+"z",e);e.bgColor="transparent",e.color=i;var u=l.createPath((0,c.edgeRemark2CurveString)(t,o),e);return n.appendChild(a),n.appendChild(u),n},e.createDoubleLine=function(t,e){return l.createPath((0,c.doubleLine2CurveString)(t,e),{class:e.class})};var c=r(5994),u=r(9521),s=a(r(3136)),l=i(r(9452)),f=i(r(7544))},2314:function(t,e,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(t,e,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(e,r);o&&!("get"in o?!e.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,o)}:function(t,e,r,n){void 0===n&&(n=r),t[n]=e[r]}),o=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),i=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var r in t)"default"!==r&&Object.prototype.hasOwnProperty.call(t,r)&&n(e,t,r);return o(e,t),e},a=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.webkitNamespaceBugWorkaround=e.calculateTextHeight=e.init=void 0,e.getBBox=d,e.removeRenderedSVGFromElement=function(t){u.setPrefix(t);var e=l.getElementById(u.get());if(Boolean(e)){var r=l.getElementById(t);r?r.removeChild(e):l.body.removeChild(e)}};var c=a(r(104)),u=i(r(5871)),s=i(r(8912)),l={},f=u.get("bboxer");function d(t){return"function"==typeof t.getBBox?(e=function(t){var e=l.getElementById(f);(e=e||function(t){var e=s.createSVG(t,u.get());return l.body.appendChild(e),e}(f)).appendChild(t);var r=t.getBBox();return e.removeChild(t),r}(t),r=1e5,Math.abs(e.height)>r||Math.abs(e.width)>r?{height:0,width:0,x:0,y:0}:e):{height:15,width:15,x:2,y:2};var e,r}e.init=function(t){l=t},e.calculateTextHeight=(0,c.default)((function(){return d(s.createText("ÁjyÎ9ƒ@💩",{x:0,y:0})).height})),e.webkitNamespaceBugWorkaround=function(t){return t.replace(/ xlink=/g," xmlns:xlink=").replace(/ href=/g," xlink:href=")}},2020:function(t,e,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(t,e,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(e,r);o&&!("get"in o?!e.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,o)}:function(t,e,r,n){void 0===n&&(n=r),t[n]=e[r]}),o=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),i=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var r in t)"default"!==r&&Object.prototype.hasOwnProperty.call(t,r)&&n(e,t,r);return o(e,t),e},a=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.explodeBroadcasts=w,e.render=function(t){var e=function(t){return w((0,u.default)(t,[s.nameAsLabel],[s.swapRTLArc,s.overrideColors]))}(structuredClone(t)),r="/* Sequence chart represented as a directed graph\n * in the graphviz dot language (http://graphviz.org/)\n *\n * Generated by mscgen_js (https://sverweij.github.io/mscgen_js)\n */\n\ngraph {\n";return r+="".concat(d,"rankdir=LR\n"),r+="".concat(d,"splines=true\n"),r+="".concat(d,"ordering=out\n"),r+="".concat(d,'fontname="Helvetica"\n'),r+="".concat(d,'fontsize="9"\n'),r+="".concat(d,'node [style=filled, fillcolor=white fontname="Helvetica", fontsize="9" ]\n'),r+="".concat(d,'edge [fontname="Helvetica", fontsize="9", arrowhead=vee, arrowtail=vee, dir=forward]\n'),r+="\n",r+="".concat(e.entities.reduce((function(t,e){return"".concat(t+d+function(t){return v(t.name)+y(m(t))}(e),";\n")}),""),"\n"),e.arcs&&(p=0,r+=x(e.arcs,"")),r+"}"};var c=a(r(7796)),u=a(r(4501)),s=i(r(7635)),l=a(r(2900)),f=i(r(8501)),d=" ",h=40,p=0;function g(t,e){return"".concat(e,'="').concat(function(t){var e=(0,l.default)(t.replace(/"/g,'\\"'),h);return e.slice(0,-1).reduce((function(t,e){return"".concat(t+e,"\n")}),"")+e.slice(-1)}(t),'"')}function b(t,e,r){Boolean(e)&&t.push(g(e,r))}function m(t){return["label","color","fontcolor","fillcolor"].filter((function(e){return Boolean(t[e])})).map((function(e){return g(t[e],e)}))}function y(t){return t.slice(0,-1).reduce((function(t,e){return"".concat(t+e,", ")})," [")+"".concat(t.slice(-1),"]")}function v(t){return'"'.concat(t,'"')}function x(t,e){return t.reduce((function(t,r){return t+r.reduce((function(t,r){return t+function(t,e){var r="";return t.from&&t.to&&(r+="".concat(d+e+function(t,e,r){var n="",o=(0,c.default)(t.kind);return n+="box"===o?function(t,e,r){var n="",o="box".concat(e.toString());n+=o;var i=m(t);return b(i,f.getStyle(t.kind),"style"),b(i,f.getShape(t.kind),"shape"),n+="".concat(y(i),"\n").concat(d).concat(r),b(i=[],"dotted","style"),b(i,"none","dir"),(n+="".concat(o," -- {").concat(v(t.from),",").concat(v(t.to),"}"))+y(i)}(t,e,r):function(t,e,r){var n="";t.label=function(t,e){return e?"(".concat(t,") ").concat(e):"(".concat(t,")")}(r,t.label);var o=m(t);switch(b(o,f.getStyle(t.kind),"style"),e){case"directional":b(o,f.getArrow(t.kind),"arrowhead");break;case"bidirectional":b(o,f.getArrow(t.kind),"arrowhead"),b(o,f.getArrow(t.kind),"arrowtail"),b(o,"both","dir");break;case"nondirectional":b(o,"none","dir")}return t.arcs||(n+="".concat(v(t.from)," "),n+="--",n+=" ".concat(v(t.to)),n+=y(o)),n}(t,o,e),n}(t,++p,e),"\n"),t.arcs&&(r+="".concat(d+e,"subgraph cluster_").concat(p.toString(),"{"),r+="\n".concat(d).concat(e,' label="').concat(t.kind,": ").concat(t.label,'" labeljust="l"\n'),r+=x(t.arcs,e+d),r+="".concat(d+e,"}\n"))),r}(r,e)}),"")}),"")}function w(t){return t.arcs&&t.arcs.forEach((function(e,r){e.filter((function(t){return"*"===t.to})).forEach((function(n,o){var i=structuredClone(n);delete t.arcs[r][o];var a=function(t,e){return t.filter((function(t){return e.from!==t.name})).map((function(t){return e.to=t.name,structuredClone(e)}))}(t.entities,i);e[o]=a.shift(),t.arcs[r]=e.concat(a)}))})),t}},5619:function(t,e,r){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},n(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(e,"__esModule",{value:!0}),e.render=void 0;var i=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype.init=function(){var e=" ",r="\n",n=" * ";t.prototype.init.call(this,{program:{opener:"".concat(n,"\\msc").concat(r),closer:"".concat(n,"\\endmsc")},option:{opener:n+e,separator:",".concat(r).concat(n).concat(e),closer:";".concat(r).concat(n).concat(r)},entity:{opener:n+e,separator:",".concat(r).concat(n).concat(e),closer:";".concat(r).concat(n).concat(r)},arcline:{opener:n+e,separator:",".concat(r).concat(n).concat(e),closer:";".concat(r)},inline:{opener:";".concat(r),closer:"".concat(n,"#")}})},e.prototype.renderComments=function(){return""},e}(r(3250).MscGenAdaptor);e.render=function(t){return new i(!1).render(t)}},3250:function(t,e,r){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},n(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.render=e.MscGenAdaptor=void 0;var a=i(r(7796)),c=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype.init=function(e){t.prototype.init.call(this,Object.assign({supportedOptions:["hscale","width","arcgradient","wordwraparcs"],supportedEntityAttributes:["label","idurl","id","url","linecolor","textcolor","textbgcolor","arclinecolor","arctextcolor","arctextbgcolor","arcskip"],supportedArcAttributes:["label","idurl","id","url","linecolor","textcolor","textbgcolor","arclinecolor","arctextcolor","arctextbgcolor","arcskip"],inline:{opener:";".concat(this.eol),closer:"#"}},e))},e.prototype.renderKind=function(t){return"inline_expression"===(0,a.default)(t)?"--":t},e.prototype.optionIsValid=function(t){return!Boolean(t.value)||"string"!=typeof t.value||"auto"!==t.value.toLowerCase()},e}(r(6532).XuAdaptor);e.MscGenAdaptor=c,e.render=function(t,e){return void 0===e&&(e=!1),new c(e).render(t)}},2956:function(t,e,r){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},n(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(e,"__esModule",{value:!0}),e.render=void 0;var i=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype.init=function(){t.prototype.init.call(this,{supportedEntityAttributes:["label"],supportedArcAttributes:["label"],program:{opener:"",closer:""},option:{opener:"",separator:",".concat(this.eol),closer:";".concat(this.eol).concat(this.eol)},entity:{opener:"",separator:",".concat(this.eol),closer:";".concat(this.eol).concat(this.eol)},arcline:{opener:"",separator:",".concat(this.eol),closer:";".concat(this.eol)},inline:{opener:" {".concat(this.eol),closer:"}"},attribute:{opener:"",separator:"",closer:""}})},e.prototype.renderEntityName=function(t){return this.entityNameIsQuotable(t)?'"'.concat(t,'"'):t},e.prototype.renderAttribute=function(t){var e="";return t.name&&t.value&&(e+=' : "'.concat(t.value,'"')),e},e.prototype.entityNameIsQuotable=function(t){var e=t.match(/[^;, "\t\n\r=\-><:{*]+/gi);return e?1!==e.length:"*"!==t},e}(r(6532).XuAdaptor);e.render=function(t){return(new i).render(t)}},6532:function(t,e,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(t,e,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(e,r);o&&!("get"in o?!e.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,o)}:function(t,e,r,n){void 0===n&&(n=r),t[n]=e[r]}),o=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),i=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var r in t)"default"!==r&&Object.prototype.hasOwnProperty.call(t,r)&&n(e,t,r);return o(e,t),e};Object.defineProperty(e,"__esModule",{value:!0}),e.render=e.XuAdaptor=void 0;var a=i(r(2952)),c=i(r(5383)),u=function(){function t(t){void 0===t&&(t=!1),this.indent=" ",this.space=" ",this.eol="\n",this.config={},!0===t?(this.indent="",this.space="",this.eol=""):(this.indent=" ",this.space=" ",this.eol="\n"),this.init(this.config)}return t.prototype.init=function(t){this.config=Object.assign({},this.getConfig(),t)},t.prototype.render=function(t){var e="";return t.precomment&&(e+=this.renderComments(t.precomment)),e+=this.config.program.opener,t.options&&(e+=this.renderOptions(t.options)),e+=this.renderEntities(t.entities),t.arcs&&(e+=this.renderArcLines(t.arcs,"")),e+this.config.program.closer},t.prototype.renderEntityName=function(t){return this.isQuotable(t)?'"'.concat(t,'"'):t},t.prototype.renderAttribute=function(t){var e="";return t.name&&t.hasOwnProperty("value")&&(e="string"==typeof t.value?this.renderStringAttribute(t):this.renderNonStringAttribute(t)),e},t.prototype.renderComments=function(t){return t.reduce((function(t,e){return t+e}),"")},t.prototype.renderOption=function(t){return"".concat(t.name,"=").concat("string"==typeof t.value?'"'+c.escapeString(t.value)+'"':t.value.toString())},t.prototype.optionIsValid=function(t){return!0},t.prototype.renderKind=function(t){return t},t.prototype.renderStringAttribute=function(t){return"".concat(t.name,'="').concat(c.escapeString(t.value),'"')},t.prototype.renderNonStringAttribute=function(t){return"".concat(t.name,"=").concat(t.value)},t.prototype.getConfig=function(){return{supportedOptions:["hscale","width","arcgradient","wordwraparcs","watermark","wordwrapentities","wordwrapboxes"],supportedEntityAttributes:["label","idurl","id","url","linecolor","textcolor","textbgcolor","arclinecolor","arctextcolor","arctextbgcolor","arcskip"],supportedArcAttributes:["label","idurl","id","url","linecolor","textcolor","textbgcolor","arclinecolor","arctextcolor","arctextbgcolor","arcskip","title","activation"],program:{opener:"msc".concat(this.space,"{").concat(this.eol),closer:"}"},option:{opener:this.indent,separator:",".concat(this.eol).concat(this.indent),closer:";".concat(this.eol).concat(this.eol)},entity:{opener:this.indent,separator:",".concat(this.eol).concat(this.indent),closer:";".concat(this.eol).concat(this.eol)},attribute:{opener:"".concat(this.space,"["),separator:",".concat(this.space),closer:"]"},arcline:{opener:this.indent,separator:",".concat(this.eol).concat(this.indent),closer:";".concat(this.eol)},inline:{opener:"".concat(this.space,"{").concat(this.eol),closer:"".concat(this.indent,"}")}}},t.prototype.extractSupportedOptions=function(t,e){return e.filter((function(e){return void 0!==t[e]})).map((function(e){return{name:e,value:t[e]}}))},t.prototype.isQuotable=function(t){var e=t.match(/[a-z0-9]+/gi);return e?1!==e.length||a.isMscGenKeyword(t):"*"!==t},t.prototype.renderOptions=function(t){var e=this,r=this.extractSupportedOptions(t,this.config.supportedOptions).filter(this.optionIsValid),n="";if(r.length>0){var o=r.pop();n=r.reduce((function(t,r){return t+e.renderOption(r)+e.config.option.separator}),this.config.option.opener),n+=this.renderOption(o)+this.config.option.closer}return n},t.prototype.renderEntity=function(t){return this.renderEntityName(t.name)+this.renderAttributes(t,this.config.supportedEntityAttributes)},t.prototype.renderEntities=function(t){var e=this,r="";return t.length>0&&(r=t.slice(0,-1).reduce((function(t,r){return t+e.renderEntity(r)+e.config.entity.separator}),this.config.entity.opener),r+=this.renderEntity(t[t.length-1])+this.config.entity.closer),r},t.prototype.renderAttributes=function(t,e){var r=this,n="",o=this.extractSupportedOptions(t,e);if(o.length>0){var i=o.pop();n=o.reduce((function(t,e){return t+r.renderAttribute(e)+r.config.attribute.separator}),this.config.attribute.opener),n+=this.renderAttribute(i)+this.config.attribute.closer}return n},t.prototype.renderArc=function(t,e){var r="";return t.from&&(r+="".concat(this.renderEntityName(t.from)," ")),r+=this.renderKind(t.kind),t.to&&(r+=" ".concat(this.renderEntityName(t.to))),r+=this.renderAttributes(t,this.config.supportedArcAttributes),t.arcs&&(r+=this.config.inline.opener,r+=this.renderArcLines(t.arcs,e+this.indent),r+=e+this.config.inline.closer),null===t.arcs&&(r+=this.config.inline.opener,r+=e+this.config.inline.closer),r},t.prototype.renderArcLine=function(t,e){var r=this,n="";return t.length>0&&(n=t.slice(0,-1).reduce((function(t,n){return t+e+r.renderArc(n,e)+r.config.arcline.separator}),this.config.arcline.opener),n+=e+this.renderArc(t[t.length-1],e)+this.config.arcline.closer),n},t.prototype.renderArcLines=function(t,e){var r=this;return t.reduce((function(t,n){return t+r.renderArcLine(n,e)}),"")},t}();e.XuAdaptor=u,e.render=function(t,e){return void 0===e&&(e=!1),new u(e).render(t)}},8501:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getArrow=function(t){return r[t]},e.getShape=function(t){return n[t]},e.getStyle=function(t){return o[t]};var r=Object.freeze({"->":"rvee","<->":"rvee","=>":"normal","<=>":"normal","-x":"oinvonormal"}),n=Object.freeze({box:"box",abox:"hexagon",rbox:"box",note:"note"}),o=Object.freeze({">>":"dashed","<<>>":"dashed","..":"dashed",":>":"bold","<:>":"bold","::":"bold",rbox:"rounded"})},5383:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.unescapeString=function(t){return t.replace(/\\"/g,'"')},e.escapeString=function(t){return t.replace(/\\"/g,'"').replace(/"/g,'\\"')}},2900:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){for(var r=0,n=[],o=0,i=0,a=0,c=0,u=t.replace(/[\t\n]+/g," ").replace(/\\n/g,"\n");c<=u.length;)c>=u.length?n.push(u.substring(o,c)):"\n"===u[c]?(r=0,a=c,n.push(u.substring(o,a)),o=a+1):r++>=e&&(-1===(a=u.substring(0,c).lastIndexOf(" "))||ae?t:(e-=t.length,t+(r+=r.repeat(e)).slice(0,e))}return function(t,e){function r(){this.constructor=t}r.prototype=e.prototype,t.prototype=new r}(e,Error),e.prototype.format=function(t){var e="Error: "+this.message;if(this.location){var n,o=null;for(n=0;n0){for(e=1,r=1;e",E="==",P="<<=>>",T="<=>",M="..",D="<<>>",F="::",I="<:>",B="->",N="=>>",H="=>",R=">>",W=":>",G="-x",z="<-",X="<<=",V="<=",$="<<",q="<:",U="x-",K="note",Z="abox",Y="rbox",Q="box",J="label",tt="idurl",et="id",rt="url",nt="linecolor",ot="linecolour",it="textcolor",at="textcolour",ct="textbgcolor",ut="textbgcolour",st="arclinecolor",lt="arclinecolour",ft="arctextcolor",dt="arctextcolour",ht="arctextbgcolor",pt="arctextbgcolour",gt="arcskip",bt='"',mt='\\"',yt="/*",vt="*/",xt="//",wt="#",_t=".",Ct="true",At="false",Ot="on",St="off",kt=/^[A-Za-z_0-9]/,Lt=/^[ \t]/,jt=/^[\r\n]/,Et=/^[^\r\n]/,Pt=/^[0-9]/,Tt=/^[0-1]/,Mt=_n("{",!1),Dt=_n("}",!1),Ft=_n("msc",!0),It=_n(",",!1),Bt=_n(";",!1),Nt=An("option"),Ht=_n("hscale",!0),Rt=_n("width",!0),Wt=_n("arcgradient",!0),Gt=_n("=",!1),zt=_n("wordwraparcs",!0),Xt=An("entity"),Vt=_n("[",!1),$t=_n("]",!1),qt=_n("*",!1),Ut=An("empty row"),Kt=_n("|||",!1),Zt=_n("...",!1),Yt=An("---"),Qt=_n("---",!1),Jt=An("bi-directional arrow"),te=_n("--",!1),ee=_n("<->",!1),re=_n("==",!1),ne=_n("<<=>>",!1),oe=_n("<=>",!1),ie=_n("..",!1),ae=_n("<<>>",!1),ce=_n("::",!1),ue=_n("<:>",!1),se=An("left to right arrow"),le=_n("->",!1),fe=_n("=>>",!1),de=_n("=>",!1),he=_n(">>",!1),pe=_n(":>",!1),ge=_n("-x",!0),be=An("right to left arrow"),me=_n("<-",!1),ye=_n("<<=",!1),ve=_n("<=",!1),xe=_n("<<",!1),we=_n("<:",!1),_e=_n("x-",!0),Ce=An("box"),Ae=_n("note",!0),Oe=_n("abox",!0),Se=_n("rbox",!0),ke=_n("box",!0),Le=An("attribute name"),je=_n("label",!0),Ee=_n("idurl",!0),Pe=_n("id",!0),Te=_n("url",!0),Me=_n("linecolor",!0),De=_n("linecolour",!0),Fe=_n("textcolor",!0),Ie=_n("textcolour",!0),Be=_n("textbgcolor",!0),Ne=_n("textbgcolour",!0),He=_n("arclinecolor",!0),Re=_n("arclinecolour",!0),We=_n("arctextcolor",!0),Ge=_n("arctextcolour",!0),ze=_n("arctextbgcolor",!0),Xe=_n("arctextbgcolour",!0),Ve=_n("arcskip",!0),$e=An("double quoted string"),qe=_n('"',!1),Ue=_n('\\"',!1),Ke={type:"any"},Ze=An("identifier"),Ye=Cn([["A","Z"],["a","z"],"_",["0","9"]],!1,!1),Qe=An("whitespace"),Je=Cn([" ","\t"],!1,!1),tr=An("lineend"),er=Cn(["\r","\n"],!1,!1),rr=_n("/*",!1),nr=_n("*/",!1),or=_n("//",!1),ir=_n("#",!1),ar=Cn(["\r","\n"],!0,!1),cr=An("comment"),ur=An("number"),sr=An("cardinal"),lr=Cn([["0","9"]],!1,!1),fr=An("real"),dr=_n(".",!1),hr=An("boolean"),pr=_n("true",!0),gr=_n("false",!0),br=_n("on",!0),mr=_n("off",!0),yr=Cn([["0","1"]],!1,!1),vr=function(e,r){return r.entities=r.entities||[],t.checkForUndeclaredEntities(r.entities,r.arcs),r={meta:{extendedOptions:!1,extendedArcTypes:!1,extendedFeatures:!1},...r},e.length>0&&(r={precomment:e,...r}),r},xr=function(t,e,r){var n={};return t&&(n.options=t),e&&(n.entities=e),r&&(n.arcs=r),n},wr=function(t){return t},_r=function(t){return t},Cr=function(t){return t[0].concat(t[1]).reduce(((t,e)=>Object.assign(t,e)),{})},Ar=function(e,r){return t.nameValue2Option(e,r)},Or=function(e,r){return t.nameValue2Option(e,t.flattenBoolean(r))},Sr=function(t){return t},kr=function(t){return t},Lr=function(t){return t[0].concat(t[1])},jr=function(t,e){return e},Er=function(t,e){return{name:t,...e}},Pr=function(t,e){return e},Tr=function(r,n){return t.isMscGenKeyword(r)&&function(t,r){throw function(t,r){return new e(t,null,null,r)}(t,r=void 0!==r?r:Sn(mn,bn))}("Keywords aren't allowed as entity names (embed them in quotes if you need them)"),{name:r,...n}},Mr=function(t){return t},Dr=function(t){return t},Fr=function(t){return t},Ir=function(t){return t[0].concat(t[1])},Br=function(t){return t},Nr=function(t){return t},Hr=function(t){return t},Rr=function(t,e){return e},Wr=function(t,e){return{...t,...e}},Gr=function(t){return{kind:t}},zr=function(t){return{kind:t}},Xr=function(t,e,r){return{kind:e,from:t,to:r}},Vr=function(t,e){return{kind:t,from:"*",to:e}},$r=function(t,e){return{kind:e,from:t,to:"*"}},qr=function(t,e){return{kind:e,from:t,to:"*"}},Ur=function(t){return t.toLowerCase()},Kr=function(t){return t},Zr=function(t){return t},Yr=function(t){return t[0].concat(t[1]).reduce(((t,e)=>Object.assign(t,e)),{})},Qr=function(t,e){var r={};return r[t.toLowerCase().replace("colour","color")]=e,r},Jr=function(t){return t.join("")},tn=function(t){return t},en=function(t){return t.join("")},rn=function(t){return t},nn=function(t){return t},on=function(t){return t},an=function(t,e,r){return t+e.join("")+r},cn=function(t,e){return t+e.join("")},un=function(t){return t},sn=function(t){return t.toString()},ln=function(t){return t.toString()},fn=function(t){return parseInt(t.join(""),10)},dn=function(t){return parseFloat(t.join(""))},hn=function(t){return t},pn=function(t){return t.toString()},gn=function(t){return t},bn=0|n.peg$currPos,mn=bn,yn=[{line:1,column:1}],vn=bn,xn=n.peg$maxFailExpected||[],wn=0|n.peg$silentFails;if(n.startRule){if(!(n.startRule in l))throw new Error("Can't start parsing from rule \""+n.startRule+'".');f=l[n.startRule]}function _n(t,e){return{type:"literal",text:t,ignoreCase:e}}function Cn(t,e,r){return{type:"class",parts:t,inverted:e,ignoreCase:r}}function An(t){return{type:"other",description:t}}function On(t){var e,n=yn[t];if(n)return n;if(t>=yn.length)e=yn.length-1;else for(e=t;!yn[--e];);for(n={line:(n=yn[e]).line,column:n.column};evn&&(vn=bn,xn=[]),xn.push(t))}function Ln(){var t,e,n,o,i;return t=bn,e=Un(),function(){var t;return(t=r.substr(bn,3)).toLowerCase()===p?bn+=3:(t=u,0===wn&&kn(Ft)),t}()!==u?(Un(),123===r.charCodeAt(bn)?(n=d,bn++):(n=u,0===wn&&kn(Mt)),n!==u?(Un(),o=function(){var t,e,n,o;return t=bn,(e=function(){var t,e,n,o,i,a;for(t=bn,e=bn,n=[],o=bn,(i=jn())!==u?(44===r.charCodeAt(bn)?(a=g,bn++):(a=u,0===wn&&kn(It)),a!==u?(mn=o,o=wr(i)):(bn=o,o=u)):(bn=o,o=u);o!==u;)n.push(o),o=bn,(i=jn())!==u?(44===r.charCodeAt(bn)?(a=g,bn++):(a=u,0===wn&&kn(It)),a!==u?(mn=o,o=wr(i)):(bn=o,o=u)):(bn=o,o=u);return o=bn,(i=jn())!==u?(59===r.charCodeAt(bn)?(a=b,bn++):(a=u,0===wn&&kn(Bt)),a!==u?(mn=o,o=_r(i)):(bn=o,o=u)):(bn=o,o=u),o!==u?e=n=[n,o]:(bn=e,e=u),e!==u&&(mn=t,e=Cr(e)),e}())===u&&(e=null),(n=function(){var t,e,n,o,i,a;for(t=bn,e=bn,n=[],o=bn,(i=En())!==u?(44===r.charCodeAt(bn)?(a=g,bn++):(a=u,0===wn&&kn(It)),a!==u?(mn=o,o=Sr(i)):(bn=o,o=u)):(bn=o,o=u);o!==u;)n.push(o),o=bn,(i=En())!==u?(44===r.charCodeAt(bn)?(a=g,bn++):(a=u,0===wn&&kn(It)),a!==u?(mn=o,o=Sr(i)):(bn=o,o=u)):(bn=o,o=u);return o=bn,(i=En())!==u?(59===r.charCodeAt(bn)?(a=b,bn++):(a=u,0===wn&&kn(Bt)),a!==u?(mn=o,o=kr(i)):(bn=o,o=u)):(bn=o,o=u),o!==u?e=n=[n,o]:(bn=e,e=u),e!==u&&(mn=t,e=Lr(e)),e}())===u&&(n=null),(o=function(){var t,e,n,o;if(t=[],e=bn,(n=Pn())!==u?(Un(),59===r.charCodeAt(bn)?(o=b,bn++):(o=u,0===wn&&kn(Bt)),o!==u?(mn=e,e=Mr(n)):(bn=e,e=u)):(bn=e,e=u),e!==u)for(;e!==u;)t.push(e),e=bn,(n=Pn())!==u?(Un(),59===r.charCodeAt(bn)?(o=b,bn++):(o=u,0===wn&&kn(Bt)),o!==u?(mn=e,e=Mr(n)):(bn=e,e=u)):(bn=e,e=u);else t=u;return t}())===u&&(o=null),mn=t,xr(e,n,o)}(),Un(),125===r.charCodeAt(bn)?(i=h,bn++):(i=u,0===wn&&kn(Dt)),i!==u?(Un(),mn=t,t=vr(e,o)):(bn=t,t=u)):(bn=t,t=u)):(bn=t,t=u),t}function jn(){var t,e,n,o;return wn++,t=bn,Un(),(e=r.substr(bn,6)).toLowerCase()===m?bn+=6:(e=u,0===wn&&kn(Ht)),e===u&&((e=r.substr(bn,5)).toLowerCase()===y?bn+=5:(e=u,0===wn&&kn(Rt)),e===u&&((e=r.substr(bn,11)).toLowerCase()===v?bn+=11:(e=u,0===wn&&kn(Wt)))),e!==u?(Un(),61===r.charCodeAt(bn)?(n=x,bn++):(n=u,0===wn&&kn(Gt)),n!==u?(Un(),(o=function(){var t,e;return wn++,t=bn,(e=function(){var t,e,n,o;return t=bn,34===r.charCodeAt(bn)?(e=bt,bn++):(e=u,0===wn&&kn(qe)),e!==u&&(n=Kn())!==u?(34===r.charCodeAt(bn)?(o=bt,bn++):(o=u,0===wn&&kn(qe)),o!==u?(mn=t,t=ln(n)):(bn=t,t=u)):(bn=t,t=u),t}())!==u&&(mn=t,e=un(e)),(t=e)===u&&(t=bn,(e=Kn())!==u&&(mn=t,e=sn(e)),t=e),wn--,t===u&&(e=u,0===wn&&kn(ur)),t}())!==u?(Un(),mn=t,t=Ar(e,o)):(bn=t,t=u)):(bn=t,t=u)):(bn=t,t=u),t===u&&(t=bn,Un(),(e=r.substr(bn,12)).toLowerCase()===w?bn+=12:(e=u,0===wn&&kn(zt)),e!==u?(Un(),61===r.charCodeAt(bn)?(n=x,bn++):(n=u,0===wn&&kn(Gt)),n!==u?(Un(),(o=function(){var t,e;return wn++,t=bn,(e=function(){var t,e,n,o;return t=bn,34===r.charCodeAt(bn)?(e=bt,bn++):(e=u,0===wn&&kn(qe)),e!==u&&(n=Yn())!==u?(34===r.charCodeAt(bn)?(o=bt,bn++):(o=u,0===wn&&kn(qe)),o!==u?(mn=t,t=gn(n)):(bn=t,t=u)):(bn=t,t=u),t}())!==u&&(mn=t,e=hn(e)),(t=e)===u&&(t=bn,(e=Yn())!==u&&(mn=t,e=pn(e)),t=e),wn--,t===u&&(e=u,0===wn&&kn(hr)),t}())!==u?(Un(),mn=t,t=Or(e,o)):(bn=t,t=u)):(bn=t,t=u)):(bn=t,t=u)),wn--,t===u&&0===wn&&kn(Nt),t}function En(){var t,e,n,o,i,a;return wn++,t=bn,Un(),(e=Nn())!==u?(Un(),n=bn,91===r.charCodeAt(bn)?(o=_,bn++):(o=u,0===wn&&kn(Vt)),o!==u&&(i=In())!==u?(93===r.charCodeAt(bn)?(a=C,bn++):(a=u,0===wn&&kn($t)),a!==u?(mn=n,n=jr(e,i)):(bn=n,n=u)):(bn=n,n=u),n===u&&(n=null),o=Un(),mn=t,t=Er(e,n)):(bn=t,t=u),t===u&&(t=bn,Un(),(e=Rn())!==u?(Un(),n=bn,91===r.charCodeAt(bn)?(o=_,bn++):(o=u,0===wn&&kn(Vt)),o!==u&&(i=In())!==u?(93===r.charCodeAt(bn)?(a=C,bn++):(a=u,0===wn&&kn($t)),a!==u?(mn=n,n=Pr(e,i)):(bn=n,n=u)):(bn=n,n=u),n===u&&(n=null),o=Un(),mn=t,t=Tr(e,n)):(bn=t,t=u)),wn--,t===u&&0===wn&&kn(Xt),t}function Pn(){var t,e,n,o,i,a;for(t=bn,e=bn,n=[],o=bn,(i=Tn())!==u?(Un(),44===r.charCodeAt(bn)?(a=g,bn++):(a=u,0===wn&&kn(It)),a!==u?(mn=o,o=Dr(i)):(bn=o,o=u)):(bn=o,o=u);o!==u;)n.push(o),o=bn,(i=Tn())!==u?(Un(),44===r.charCodeAt(bn)?(a=g,bn++):(a=u,0===wn&&kn(It)),a!==u?(mn=o,o=Dr(i)):(bn=o,o=u)):(bn=o,o=u);return o=bn,(i=Tn())!==u&&(mn=o,i=Fr(i)),(o=i)!==u?e=n=[n,o]:(bn=e,e=u),e!==u&&(mn=t,e=Ir(e)),e}function Tn(){var t,e,n,o,i,a;return t=bn,e=bn,(n=function(){var t,e;return t=bn,Un(),(e=function(){var t;return wn++,r.substr(bn,3)===O?(t=O,bn+=3):(t=u,0===wn&&kn(Kt)),t===u&&(r.substr(bn,3)===S?(t=S,bn+=3):(t=u,0===wn&&kn(Zt))),wn--,t===u&&0===wn&&kn(Ut),t}())!==u?(Un(),mn=t,t=Gr(e)):(bn=t,t=u),t}())!==u&&(mn=e,n=Br(n)),(e=n)===u&&(e=bn,(n=function(){var t,e,n,o;return t=bn,Un(),(e=Hn())!==u?(Un(),(n=function(){var t,e;return t=bn,(e=Mn())===u&&(e=Dn())===u&&(e=Fn())===u&&(e=function(){var t;return wn++,(t=r.substr(bn,4)).toLowerCase()===K?bn+=4:(t=u,0===wn&&kn(Ae)),t===u&&((t=r.substr(bn,4)).toLowerCase()===Z?bn+=4:(t=u,0===wn&&kn(Oe)),t===u&&((t=r.substr(bn,4)).toLowerCase()===Y?bn+=4:(t=u,0===wn&&kn(Se)),t===u&&((t=r.substr(bn,3)).toLowerCase()===Q?bn+=3:(t=u,0===wn&&kn(ke))))),wn--,t===u&&0===wn&&kn(Ce),t}()),e!==u&&(mn=t,e=Ur(e)),e}())!==u?(Un(),(o=Hn())!==u?(Un(),mn=t,t=Xr(e,n,o)):(bn=t,t=u)):(bn=t,t=u)):(bn=t,t=u),t===u&&(t=bn,Un(),42===r.charCodeAt(bn)?(e=A,bn++):(e=u,0===wn&&kn(qt)),e!==u?(Un(),(n=Fn())!==u?(Un(),(o=Hn())!==u?(Un(),mn=t,t=Vr(n,o)):(bn=t,t=u)):(bn=t,t=u)):(bn=t,t=u),t===u&&(t=bn,Un(),(e=Hn())!==u?(Un(),(n=Dn())!==u?(Un(),42===r.charCodeAt(bn)?(o=A,bn++):(o=u,0===wn&&kn(qt)),o!==u?(Un(),mn=t,t=$r(e,n)):(bn=t,t=u)):(bn=t,t=u)):(bn=t,t=u),t===u&&(t=bn,Un(),(e=Hn())!==u?(Un(),(n=Mn())!==u?(Un(),42===r.charCodeAt(bn)?(o=A,bn++):(o=u,0===wn&&kn(qt)),o!==u?(Un(),mn=t,t=qr(e,n)):(bn=t,t=u)):(bn=t,t=u)):(bn=t,t=u)))),t}())!==u&&(mn=e,n=Nr(n)),(e=n)===u&&(e=bn,(n=function(){var t,e;return t=bn,Un(),(e=function(){var t;return wn++,r.substr(bn,3)===k?(t=k,bn+=3):(t=u,0===wn&&kn(Qt)),wn--,t===u&&0===wn&&kn(Yt),t}())!==u?(Un(),mn=t,t=zr(e)):(bn=t,t=u),t}())!==u&&(mn=e,n=Hr(n)),e=n)),e!==u?(n=bn,91===r.charCodeAt(bn)?(o=_,bn++):(o=u,0===wn&&kn(Vt)),o!==u&&(i=In())!==u?(93===r.charCodeAt(bn)?(a=C,bn++):(a=u,0===wn&&kn($t)),a!==u?(mn=n,n=Rr(e,i)):(bn=n,n=u)):(bn=n,n=u),n===u&&(n=null),mn=t,t=Wr(e,n)):(bn=t,t=u),t}function Mn(){var t;return wn++,r.substr(bn,2)===L?(t=L,bn+=2):(t=u,0===wn&&kn(te)),t===u&&(r.substr(bn,3)===j?(t=j,bn+=3):(t=u,0===wn&&kn(ee)),t===u&&(r.substr(bn,2)===E?(t=E,bn+=2):(t=u,0===wn&&kn(re)),t===u&&(r.substr(bn,5)===P?(t=P,bn+=5):(t=u,0===wn&&kn(ne)),t===u&&(r.substr(bn,3)===T?(t=T,bn+=3):(t=u,0===wn&&kn(oe)),t===u&&(r.substr(bn,2)===M?(t=M,bn+=2):(t=u,0===wn&&kn(ie)),t===u&&(r.substr(bn,4)===D?(t=D,bn+=4):(t=u,0===wn&&kn(ae)),t===u&&(r.substr(bn,2)===F?(t=F,bn+=2):(t=u,0===wn&&kn(ce)),t===u&&(r.substr(bn,3)===I?(t=I,bn+=3):(t=u,0===wn&&kn(ue)))))))))),wn--,t===u&&0===wn&&kn(Jt),t}function Dn(){var t;return wn++,r.substr(bn,2)===B?(t=B,bn+=2):(t=u,0===wn&&kn(le)),t===u&&(r.substr(bn,3)===N?(t=N,bn+=3):(t=u,0===wn&&kn(fe)),t===u&&(r.substr(bn,2)===H?(t=H,bn+=2):(t=u,0===wn&&kn(de)),t===u&&(r.substr(bn,2)===R?(t=R,bn+=2):(t=u,0===wn&&kn(he)),t===u&&(r.substr(bn,2)===W?(t=W,bn+=2):(t=u,0===wn&&kn(pe)),t===u&&((t=r.substr(bn,2)).toLowerCase()===G?bn+=2:(t=u,0===wn&&kn(ge))))))),wn--,t===u&&0===wn&&kn(se),t}function Fn(){var t;return wn++,r.substr(bn,2)===z?(t=z,bn+=2):(t=u,0===wn&&kn(me)),t===u&&(r.substr(bn,3)===X?(t=X,bn+=3):(t=u,0===wn&&kn(ye)),t===u&&(r.substr(bn,2)===V?(t=V,bn+=2):(t=u,0===wn&&kn(ve)),t===u&&(r.substr(bn,2)===$?(t=$,bn+=2):(t=u,0===wn&&kn(xe)),t===u&&(r.substr(bn,2)===q?(t=q,bn+=2):(t=u,0===wn&&kn(we)),t===u&&((t=r.substr(bn,2)).toLowerCase()===U?bn+=2:(t=u,0===wn&&kn(_e))))))),wn--,t===u&&0===wn&&kn(be),t}function In(){var t,e,n,o,i,a;for(t=bn,e=bn,n=[],o=bn,(i=Bn())!==u?(44===r.charCodeAt(bn)?(a=g,bn++):(a=u,0===wn&&kn(It)),a!==u?(mn=o,o=Kr(i)):(bn=o,o=u)):(bn=o,o=u);o!==u;)n.push(o),o=bn,(i=Bn())!==u?(44===r.charCodeAt(bn)?(a=g,bn++):(a=u,0===wn&&kn(It)),a!==u?(mn=o,o=Kr(i)):(bn=o,o=u)):(bn=o,o=u);return o=bn,(i=Bn())!==u&&(mn=o,i=Zr(i)),(o=i)!==u?e=n=[n,o]:(bn=e,e=u),e!==u&&(mn=t,e=Yr(e)),e}function Bn(){var t,e,n,o;return t=bn,Un(),(e=function(){var t;return wn++,(t=r.substr(bn,5)).toLowerCase()===J?bn+=5:(t=u,0===wn&&kn(je)),t===u&&((t=r.substr(bn,5)).toLowerCase()===tt?bn+=5:(t=u,0===wn&&kn(Ee)),t===u&&((t=r.substr(bn,2)).toLowerCase()===et?bn+=2:(t=u,0===wn&&kn(Pe)),t===u&&((t=r.substr(bn,3)).toLowerCase()===rt?bn+=3:(t=u,0===wn&&kn(Te)),t===u&&((t=r.substr(bn,9)).toLowerCase()===nt?bn+=9:(t=u,0===wn&&kn(Me)),t===u&&((t=r.substr(bn,10)).toLowerCase()===ot?bn+=10:(t=u,0===wn&&kn(De)),t===u&&((t=r.substr(bn,9)).toLowerCase()===it?bn+=9:(t=u,0===wn&&kn(Fe)),t===u&&((t=r.substr(bn,10)).toLowerCase()===at?bn+=10:(t=u,0===wn&&kn(Ie)),t===u&&((t=r.substr(bn,11)).toLowerCase()===ct?bn+=11:(t=u,0===wn&&kn(Be)),t===u&&((t=r.substr(bn,12)).toLowerCase()===ut?bn+=12:(t=u,0===wn&&kn(Ne)),t===u&&((t=r.substr(bn,12)).toLowerCase()===st?bn+=12:(t=u,0===wn&&kn(He)),t===u&&((t=r.substr(bn,13)).toLowerCase()===lt?bn+=13:(t=u,0===wn&&kn(Re)),t===u&&((t=r.substr(bn,12)).toLowerCase()===ft?bn+=12:(t=u,0===wn&&kn(We)),t===u&&((t=r.substr(bn,13)).toLowerCase()===dt?bn+=13:(t=u,0===wn&&kn(Ge)),t===u&&((t=r.substr(bn,14)).toLowerCase()===ht?bn+=14:(t=u,0===wn&&kn(ze)),t===u&&((t=r.substr(bn,15)).toLowerCase()===pt?bn+=15:(t=u,0===wn&&kn(Xe)),t===u&&((t=r.substr(bn,7)).toLowerCase()===gt?bn+=7:(t=u,0===wn&&kn(Ve)))))))))))))))))),wn--,t===u&&0===wn&&kn(Le),t}())!==u?(Un(),61===r.charCodeAt(bn)?(n=x,bn++):(n=u,0===wn&&kn(Gt)),n!==u?(Un(),(o=Hn())!==u?(Un(),mn=t,t=Qr(e,o)):(bn=t,t=u)):(bn=t,t=u)):(bn=t,t=u),t}function Nn(){var t,e,n,o;return wn++,t=bn,34===r.charCodeAt(bn)?(e=bt,bn++):(e=u,0===wn&&kn(qe)),e!==u?(n=function(){var t,e,n,o;for(t=[],e=bn,n=bn,wn++,34===r.charCodeAt(bn)?(o=bt,bn++):(o=u,0===wn&&kn(qe)),wn--,o===u?n=void 0:(bn=n,n=u),n!==u?(r.substr(bn,2)===mt?(o=mt,bn+=2):(o=u,0===wn&&kn(Ue)),o===u&&(r.length>bn?(o=r.charAt(bn),bn++):(o=u,0===wn&&kn(Ke))),o!==u?(mn=e,e=tn(o)):(bn=e,e=u)):(bn=e,e=u);e!==u;)t.push(e),e=bn,n=bn,wn++,34===r.charCodeAt(bn)?(o=bt,bn++):(o=u,0===wn&&kn(qe)),wn--,o===u?n=void 0:(bn=n,n=u),n!==u?(r.substr(bn,2)===mt?(o=mt,bn+=2):(o=u,0===wn&&kn(Ue)),o===u&&(r.length>bn?(o=r.charAt(bn),bn++):(o=u,0===wn&&kn(Ke))),o!==u?(mn=e,e=tn(o)):(bn=e,e=u)):(bn=e,e=u);return t}(),34===r.charCodeAt(bn)?(o=bt,bn++):(o=u,0===wn&&kn(qe)),o!==u?(mn=t,t=Jr(n)):(bn=t,t=u)):(bn=t,t=u),wn--,t===u&&(e=u,0===wn&&kn($e)),t}function Hn(){var t;return wn++,(t=Rn())===u&&(t=Nn()),wn--,t===u&&0===wn&&kn(Ze),t}function Rn(){var t,e,n;if(t=bn,e=[],n=r.charAt(bn),kt.test(n)?bn++:(n=u,0===wn&&kn(Ye)),n!==u)for(;n!==u;)e.push(n),n=r.charAt(bn),kt.test(n)?bn++:(n=u,0===wn&&kn(Ye));else e=u;return e!==u&&(mn=t,e=en(e)),e}function Wn(){var t,e;return wn++,t=bn,e=r.charAt(bn),Lt.test(e)?bn++:(e=u,0===wn&&kn(Je)),e!==u&&(mn=t,e=rn(e)),wn--,(t=e)===u&&(e=u,0===wn&&kn(Qe)),t}function Gn(){var t,e;return wn++,t=bn,e=r.charAt(bn),jt.test(e)?bn++:(e=u,0===wn&&kn(er)),e!==u&&(mn=t,e=nn(e)),wn--,(t=e)===u&&(e=u,0===wn&&kn(tr)),t}function zn(){var t,e,n;return t=bn,e=bn,wn++,r.substr(bn,2)===vt?(n=vt,bn+=2):(n=u,0===wn&&kn(nr)),wn--,n===u?e=void 0:(bn=e,e=u),e!==u?(r.length>bn?(n=r.charAt(bn),bn++):(n=u,0===wn&&kn(Ke)),n!==u?(mn=t,t=on(n)):(bn=t,t=u)):(bn=t,t=u),t}function Xn(){var t,e,n,o;if(t=bn,(e=function(){var t;return r.substr(bn,2)===yt?(t=yt,bn+=2):(t=u,0===wn&&kn(rr)),t}())!==u){for(n=[],o=zn();o!==u;)n.push(o),o=zn();(o=function(){var t;return r.substr(bn,2)===vt?(t=vt,bn+=2):(t=u,0===wn&&kn(nr)),t}())!==u?(mn=t,t=an(e,n,o)):(bn=t,t=u)}else bn=t,t=u;return t}function Vn(){var t;return t=r.charAt(bn),Et.test(t)?bn++:(t=u,0===wn&&kn(ar)),t}function $n(){var t,e,n,o;if(t=bn,(e=function(){var t;return r.substr(bn,2)===xt?(t=xt,bn+=2):(t=u,0===wn&&kn(or)),t===u&&(35===r.charCodeAt(bn)?(t=wt,bn++):(t=u,0===wn&&kn(ir))),t}())!==u){for(n=[],o=Vn();o!==u;)n.push(o),o=Vn();mn=t,t=cn(e,n)}else bn=t,t=u;return t}function qn(){var t;return wn++,(t=$n())===u&&(t=Xn()),wn--,t===u&&0===wn&&kn(cr),t}function Un(){var t,e;for(t=[],(e=Wn())===u&&(e=Gn())===u&&(e=qn());e!==u;)t.push(e),(e=Wn())===u&&(e=Gn())===u&&(e=qn());return t}function Kn(){var t;return(t=function(){var t,e,n,o,i;return wn++,t=bn,e=bn,(n=Zn())!==u?(46===r.charCodeAt(bn)?(o=_t,bn++):(o=u,0===wn&&kn(dr)),o!==u&&(i=Zn())!==u?e=n=[n,o,i]:(bn=e,e=u)):(bn=e,e=u),e!==u&&(mn=t,e=dn(e)),wn--,(t=e)===u&&(e=u,0===wn&&kn(fr)),t}())===u&&(t=Zn()),t}function Zn(){var t,e,n;if(wn++,t=bn,e=[],n=r.charAt(bn),Pt.test(n)?bn++:(n=u,0===wn&&kn(lr)),n!==u)for(;n!==u;)e.push(n),n=r.charAt(bn),Pt.test(n)?bn++:(n=u,0===wn&&kn(lr));else e=u;return e!==u&&(mn=t,e=fn(e)),wn--,(t=e)===u&&(e=u,0===wn&&kn(sr)),t}function Yn(){var t;return(t=r.substr(bn,4)).toLowerCase()===Ct?bn+=4:(t=u,0===wn&&kn(pr)),t===u&&((t=r.substr(bn,5)).toLowerCase()===At?bn+=5:(t=u,0===wn&&kn(gr)),t===u&&((t=r.substr(bn,2)).toLowerCase()===Ot?bn+=2:(t=u,0===wn&&kn(br)),t===u&&((t=r.substr(bn,3)).toLowerCase()===St?bn+=3:(t=u,0===wn&&kn(mr)),t===u&&(t=r.charAt(bn),Tt.test(t)?bn++:(t=u,0===wn&&kn(yr)))))),t}if(o=f(),n.peg$library)return{peg$result:o,peg$currPos:bn,peg$FAILED:u,peg$maxFailExpected:xn,peg$maxFailPos:vn};if(o!==u&&bn===r.length)return o;throw o!==u&&bne?t:(e-=t.length,t+(r+=r.repeat(e)).slice(0,e))}return function(t,e){function r(){this.constructor=t}r.prototype=e.prototype,t.prototype=new r}(e,Error),e.prototype.format=function(t){var e="Error: "+this.message;if(this.location){var n,o=null;for(n=0;n0){for(e=1,r=1;e",P="==",T="<<=>>",M="<=>",D="..",F="<<>>",I="::",B="<:>",N="->",H="=>>",R="=>",W=">>",G=":>",z="-x",X="<-",V="<<=",$="<=",q="<<",U="<:",K="x-",Z="note",Y="abox",Q="rbox",J="box",tt="alt",et="else",rt="opt",nt="break",ot="par",it="seq",at="strict",ct="neg",ut="critical",st="ignore",lt="consider",ft="assert",dt="loop",ht="ref",pt="exc",gt='"',bt='\\"',mt="/*",yt="*/",vt="//",xt="#",wt=".",_t="true",Ct="false",At="on",Ot="off",St="auto",kt=/^[,;{]/,Lt=/^[^;, "\t\n\r=\-><:{*]/,jt=/^[ \t]/,Et=/^[\r\n]/,Pt=/^[^\r\n]/,Tt=/^[0-9]/,Mt=/^[0-1]/,Dt=kn(",",!1),Ft=kn(";",!1),It=kn("hscale",!0),Bt=kn("arcgradient",!0),Nt=kn("=",!1),Ht=kn("width",!0),Rt=kn("wordwraparcs",!0),Wt=kn("wordwrapentities",!0),Gt=kn("wordwrapboxes",!0),zt=kn("watermark",!0),Xt=jn("entity"),Vt=kn(":",!1),$t=kn("*",!1),qt=kn("{",!1),Ut=kn("}",!1),Kt=jn("empty row"),Zt=kn("|||",!1),Yt=kn("...",!1),Qt=jn("---"),Jt=kn("---",!1),te=jn("bi-directional arrow"),ee=kn("--",!1),re=kn("<->",!1),ne=kn("==",!1),oe=kn("<<=>>",!1),ie=kn("<=>",!1),ae=kn("..",!1),ce=kn("<<>>",!1),ue=kn("::",!1),se=kn("<:>",!1),le=jn("left to right arrow"),fe=kn("->",!1),de=kn("=>>",!1),he=kn("=>",!1),pe=kn(">>",!1),ge=kn(":>",!1),be=kn("-x",!0),me=jn("right to left arrow"),ye=kn("<-",!1),ve=kn("<<=",!1),xe=kn("<=",!1),we=kn("<<",!1),_e=kn("<:",!1),Ce=kn("x-",!0),Ae=jn("box"),Oe=kn("note",!0),Se=kn("abox",!0),ke=kn("rbox",!0),Le=kn("box",!0),je=jn("inline expression"),Ee=kn("alt",!0),Pe=kn("else",!0),Te=kn("opt",!0),Me=kn("break",!0),De=kn("par",!0),Fe=kn("seq",!0),Ie=kn("strict",!0),Be=kn("neg",!0),Ne=kn("critical",!0),He=kn("ignore",!0),Re=kn("consider",!0),We=kn("assert",!0),Ge=kn("loop",!0),ze=kn("ref",!0),Xe=kn("exc",!0),Ve=jn("double quoted string"),$e=kn('"',!1),qe=kn('\\"',!1),Ue={type:"any"},Ke=Ln([",",";","{"],!1,!1),Ze=jn("identifier"),Ye=Ln([";",","," ",'"',"\t","\n","\r","=","-",">","<",":","{","*"],!0,!1),Qe=jn("whitespace"),Je=Ln([" ","\t"],!1,!1),tr=jn("lineend"),er=Ln(["\r","\n"],!1,!1),rr=kn("/*",!1),nr=kn("*/",!1),or=kn("//",!1),ir=kn("#",!1),ar=Ln(["\r","\n"],!0,!1),cr=jn("comment"),ur=jn("number"),sr=Ln([["0","9"]],!1,!1),lr=kn(".",!1),fr=jn("boolean"),dr=kn("true",!0),hr=kn("false",!0),pr=kn("on",!0),gr=kn("off",!0),br=Ln([["0","1"]],!1,!1),mr=jn("size"),yr=kn("auto",!0),vr=function(e,r){return r.entities=ao(r.entities||[],r.arcs),r={meta:t.getMetaInfo(r.options,r.arcs),...r},e.length>0&&(r={precomment:e,...r}),r},xr=function(t,e,r){var n={};return t&&(n.options=t),e&&(n.entities=e),r&&(n.arcs=r),n},wr=function(t){return t},_r=function(t){return t},Cr=function(t){return t[0].concat(t[1]).reduce(((t,e)=>Object.assign(t,e)),{})},Ar=function(e,r){return t.nameValue2Option(e,r)},Or=function(e,r){return t.nameValue2Option(e,r)},Sr=function(e,r){return t.nameValue2Option(e,t.flattenBoolean(r))},kr=function(e,r){return t.nameValue2Option(e,t.flattenBoolean(r))},Lr=function(e,r){return t.nameValue2Option(e,t.flattenBoolean(r))},jr=function(e,r){return t.nameValue2Option(e,r)},Er=function(t){return t},Pr=function(t){return t},Tr=function(t){return t[0].concat(t[1])},Mr=function(t,e){return e},Dr=function(t,e){var r=io(t);return e&&(r.label=e),r},Fr=function(t){return t},Ir=function(t){return t},Br=function(t){return t},Nr=function(t){return t[0].concat(t[1])},Hr=function(t){return t},Rr=function(t){return t},Wr=function(t){return t},Gr=function(t,e){return e},zr=function(t,e){return e&&(t.label=e),t},Xr=function(t){return{kind:t}},Vr=function(t){return{kind:t}},$r=function(t,e,r){return{kind:e,from:t,to:r}},qr=function(t,e){return{kind:t,from:"*",to:e}},Ur=function(t,e){return{kind:e,from:t,to:"*"}},Kr=function(t,e){return{kind:e,from:t,to:"*"}},Zr=function(t,e,r,n){return n},Yr=function(t,e,r,n,o){var i={kind:e,from:t,to:r,arcs:o};return n&&(i.label=n),i},Qr=function(t){return t.toLowerCase()},Jr=function(t){return t.toLowerCase()},tn=function(t){return t.join("")},en=function(t){return t},rn=function(t){return t.join("").trim()},nn=function(t){return t},on=function(t){return t.join("")},an=function(t){return t},cn=function(t){return t},un=function(t){return t},sn=function(t,e,r){return t+e.join("")+r},ln=function(t,e){return t+e.join("")},fn=function(t){return t},dn=function(t){return t.toString()},hn=function(t){return t.toString()},pn=function(t){return parseInt(t.join(""),10)},gn=function(t){return parseFloat(t.join(""))},bn=function(t){return t},mn=function(t){return t.toString()},yn=function(t){return t},vn=function(t){return t},xn=function(t){return t.toString()},wn=function(t){return t.toLowerCase()},_n=0|n.peg$currPos,Cn=[{line:1,column:1}],An=_n,On=n.peg$maxFailExpected||[],Sn=0|n.peg$silentFails;if(n.startRule){if(!(n.startRule in l))throw new Error("Can't start parsing from rule \""+n.startRule+'".');f=l[n.startRule]}function kn(t,e){return{type:"literal",text:t,ignoreCase:e}}function Ln(t,e,r){return{type:"class",parts:t,inverted:e,ignoreCase:r}}function jn(t){return{type:"other",description:t}}function En(t){var e,n=Cn[t];if(n)return n;if(t>=Cn.length)e=Cn.length-1;else for(e=t;!Cn[--e];);for(n={line:(n=Cn[e]).line,column:n.column};eAn&&(An=_n,On=[]),On.push(t))}function Mn(){var t,e;return t=Qn(),e=function(){var t,e,n;return(t=function(){var t,e,n,o,i;for(t=_n,e=[],n=_n,(o=Dn())!==u?(44===r.charCodeAt(_n)?(i=d,_n++):(i=u,0===Sn&&Tn(Dt)),i!==u?n=wr(o):(_n=n,n=u)):(_n=n,n=u);n!==u;)e.push(n),n=_n,(o=Dn())!==u?(44===r.charCodeAt(_n)?(i=d,_n++):(i=u,0===Sn&&Tn(Dt)),i!==u?n=wr(o):(_n=n,n=u)):(_n=n,n=u);return n=_n,(o=Dn())!==u?(59===r.charCodeAt(_n)?(i=h,_n++):(i=u,0===Sn&&Tn(Ft)),i!==u?n=_r(o):(_n=n,n=u)):(_n=n,n=u),n!==u?t=e=[e,n]:(_n=t,t=u),t!==u&&(t=Cr(t)),t}())===u&&(t=null),(e=function(){var t,e,n,o,i;for(t=_n,e=[],n=_n,(o=Fn())!==u?(44===r.charCodeAt(_n)?(i=d,_n++):(i=u,0===Sn&&Tn(Dt)),i!==u?n=Er(o):(_n=n,n=u)):(_n=n,n=u);n!==u;)e.push(n),n=_n,(o=Fn())!==u?(44===r.charCodeAt(_n)?(i=d,_n++):(i=u,0===Sn&&Tn(Dt)),i!==u?n=Er(o):(_n=n,n=u)):(_n=n,n=u);return n=_n,(o=Fn())!==u?(59===r.charCodeAt(_n)?(i=h,_n++):(i=u,0===Sn&&Tn(Ft)),i!==u?n=Pr(o):(_n=n,n=u)):(_n=n,n=u),n!==u?t=e=[e,n]:(_n=t,t=u),t!==u&&(t=Tr(t)),t}())===u&&(e=null),(n=In())===u&&(n=null),xr(t,e,n)}(),Qn(),vr(t,e)}function Dn(){var t,e,n,o;return t=_n,Qn(),(e=r.substr(_n,6)).toLowerCase()===p?_n+=6:(e=u,0===Sn&&Tn(It)),e===u&&((e=r.substr(_n,11)).toLowerCase()===g?_n+=11:(e=u,0===Sn&&Tn(Bt))),e!==u?(Qn(),61===r.charCodeAt(_n)?(n=b,_n++):(n=u,0===Sn&&Tn(Nt)),n!==u?(Qn(),(o=function(){var t,e;return Sn++,t=_n,(e=function(){var t,e,n,o;return t=_n,34===r.charCodeAt(_n)?(e=gt,_n++):(e=u,0===Sn&&Tn($e)),e!==u&&(n=Jn())!==u?(34===r.charCodeAt(_n)?(o=gt,_n++):(o=u,0===Sn&&Tn($e)),o!==u?t=hn(n):(_n=t,t=u)):(_n=t,t=u),t}())!==u&&(e=fn(e)),(t=e)===u&&(t=_n,(e=Jn())!==u&&(e=dn(e)),t=e),Sn--,t===u&&(e=u,0===Sn&&Tn(ur)),t}())!==u?(Qn(),t=Ar(e,o)):(_n=t,t=u)):(_n=t,t=u)):(_n=t,t=u),t===u&&(t=_n,Qn(),(e=r.substr(_n,5)).toLowerCase()===m?_n+=5:(e=u,0===Sn&&Tn(Ht)),e!==u?(Qn(),61===r.charCodeAt(_n)?(n=b,_n++):(n=u,0===Sn&&Tn(Nt)),n!==u?(Qn(),(o=function(){var t;return Sn++,(t=function(){var t,e,n,o;return t=_n,34===r.charCodeAt(_n)?(e=gt,_n++):(e=u,0===Sn&&Tn($e)),e!==u&&(n=no())!==u?(34===r.charCodeAt(_n)?(o=gt,_n++):(o=u,0===Sn&&Tn($e)),o!==u?t=vn(n):(_n=t,t=u)):(_n=t,t=u),t}())===u&&(t=no()),Sn--,t===u&&0===Sn&&Tn(mr),t}())!==u?(Qn(),t=Or(e,o)):(_n=t,t=u)):(_n=t,t=u)):(_n=t,t=u),t===u&&(t=_n,Qn(),(e=r.substr(_n,12)).toLowerCase()===y?_n+=12:(e=u,0===Sn&&Tn(Rt)),e!==u?(Qn(),61===r.charCodeAt(_n)?(n=b,_n++):(n=u,0===Sn&&Tn(Nt)),n!==u?(Qn(),(o=eo())!==u?(Qn(),t=Sr(e,o)):(_n=t,t=u)):(_n=t,t=u)):(_n=t,t=u),t===u&&(t=_n,Qn(),(e=r.substr(_n,16)).toLowerCase()===v?_n+=16:(e=u,0===Sn&&Tn(Wt)),e!==u?(Qn(),61===r.charCodeAt(_n)?(n=b,_n++):(n=u,0===Sn&&Tn(Nt)),n!==u?(Qn(),(o=eo())!==u?(Qn(),t=kr(e,o)):(_n=t,t=u)):(_n=t,t=u)):(_n=t,t=u),t===u&&(t=_n,Qn(),(e=r.substr(_n,13)).toLowerCase()===x?_n+=13:(e=u,0===Sn&&Tn(Gt)),e!==u?(Qn(),61===r.charCodeAt(_n)?(n=b,_n++):(n=u,0===Sn&&Tn(Nt)),n!==u?(Qn(),(o=eo())!==u?(Qn(),t=Lr(e,o)):(_n=t,t=u)):(_n=t,t=u)):(_n=t,t=u),t===u&&(t=_n,Qn(),(e=r.substr(_n,9)).toLowerCase()===w?_n+=9:(e=u,0===Sn&&Tn(zt)),e!==u?(Qn(),61===r.charCodeAt(_n)?(n=b,_n++):(n=u,0===Sn&&Tn(Nt)),n!==u?(Qn(),(o=zn())!==u?(Qn(),t=jr(e,o)):(_n=t,t=u)):(_n=t,t=u)):(_n=t,t=u)))))),t}function Fn(){var t,e,n,o,i;return Sn++,t=_n,Qn(),(e=Xn())!==u?(Qn(),n=_n,58===r.charCodeAt(_n)?(o=_,_n++):(o=u,0===Sn&&Tn(Vt)),o!==u?(Qn(),(i=Gn())!==u?(Qn(),n=Mr(e,i)):(_n=n,n=u)):(_n=n,n=u),n===u&&(n=null),t=Dr(e,n)):(_n=t,t=u),Sn--,t===u&&0===Sn&&Tn(Xt),t}function In(){var t,e,n,o;if(t=[],e=_n,(n=Bn())!==u?(Qn(),59===r.charCodeAt(_n)?(o=h,_n++):(o=u,0===Sn&&Tn(Ft)),o!==u?e=Fr(n):(_n=e,e=u)):(_n=e,e=u),e!==u)for(;e!==u;)t.push(e),e=_n,(n=Bn())!==u?(Qn(),59===r.charCodeAt(_n)?(o=h,_n++):(o=u,0===Sn&&Tn(Ft)),o!==u?e=Fr(n):(_n=e,e=u)):(_n=e,e=u);else t=u;return t}function Bn(){var t,e,n,o,i;for(t=_n,e=[],n=_n,(o=Nn())!==u?(44===r.charCodeAt(_n)?(i=d,_n++):(i=u,0===Sn&&Tn(Dt)),i!==u?n=Ir(o):(_n=n,n=u)):(_n=n,n=u);n!==u;)e.push(n),n=_n,(o=Nn())!==u?(44===r.charCodeAt(_n)?(i=d,_n++):(i=u,0===Sn&&Tn(Dt)),i!==u?n=Ir(o):(_n=n,n=u)):(_n=n,n=u);return n=_n,(o=Nn())!==u&&(o=Br(o)),(n=o)!==u?t=e=[e,n]:(_n=t,t=u),t!==u&&(t=Nr(t)),t}function Nn(){var t;return(t=function(){var t,e,n,o,i;return t=_n,e=_n,(n=function(){var t,e;return t=_n,Qn(),(e=function(){var t;return Sn++,r.substr(_n,3)===S?(t=S,_n+=3):(t=u,0===Sn&&Tn(Zt)),t===u&&(r.substr(_n,3)===k?(t=k,_n+=3):(t=u,0===Sn&&Tn(Yt))),Sn--,t===u&&0===Sn&&Tn(Kt),t}())!==u?(Qn(),t=Xr(e)):(_n=t,t=u),t}())!==u&&(n=Hr(n)),(e=n)===u&&(e=_n,(n=function(){var t,e,n,o;return t=_n,Qn(),(e=Xn())!==u?(Qn(),(n=function(){var t;return(t=Hn())===u&&(t=Rn())===u&&(t=Wn())===u&&(t=function(){var t;return Sn++,(t=r.substr(_n,4)).toLowerCase()===Z?_n+=4:(t=u,0===Sn&&Tn(Oe)),t===u&&((t=r.substr(_n,4)).toLowerCase()===Y?_n+=4:(t=u,0===Sn&&Tn(Se)),t===u&&((t=r.substr(_n,4)).toLowerCase()===Q?_n+=4:(t=u,0===Sn&&Tn(ke)),t===u&&((t=r.substr(_n,3)).toLowerCase()===J?_n+=3:(t=u,0===Sn&&Tn(Le))))),Sn--,t===u&&0===Sn&&Tn(Ae),t}()),t!==u&&(t=Qr(t)),t}())!==u?(Qn(),(o=Xn())!==u?(Qn(),t=$r(e,n,o)):(_n=t,t=u)):(_n=t,t=u)):(_n=t,t=u),t===u&&(t=_n,Qn(),42===r.charCodeAt(_n)?(e=C,_n++):(e=u,0===Sn&&Tn($t)),e!==u?(Qn(),(n=Wn())!==u?(Qn(),(o=Xn())!==u?(Qn(),t=qr(n,o)):(_n=t,t=u)):(_n=t,t=u)):(_n=t,t=u),t===u&&(t=_n,Qn(),(e=Xn())!==u?(Qn(),(n=Rn())!==u?(Qn(),42===r.charCodeAt(_n)?(o=C,_n++):(o=u,0===Sn&&Tn($t)),o!==u?(Qn(),t=Ur(e,n)):(_n=t,t=u)):(_n=t,t=u)):(_n=t,t=u),t===u&&(t=_n,Qn(),(e=Xn())!==u?(Qn(),(n=Hn())!==u?(Qn(),42===r.charCodeAt(_n)?(o=C,_n++):(o=u,0===Sn&&Tn($t)),o!==u?(Qn(),t=Kr(e,n)):(_n=t,t=u)):(_n=t,t=u)):(_n=t,t=u)))),t}())!==u&&(n=Rr(n)),(e=n)===u&&(e=_n,(n=function(){var t,e;return t=_n,Qn(),(e=function(){var t;return Sn++,r.substr(_n,3)===L?(t=L,_n+=3):(t=u,0===Sn&&Tn(Jt)),Sn--,t===u&&0===Sn&&Tn(Qt),t}())!==u?(Qn(),t=Vr(e)):(_n=t,t=u),t}())!==u&&(n=Wr(n)),e=n)),e!==u?(n=_n,58===r.charCodeAt(_n)?(o=_,_n++):(o=u,0===Sn&&Tn(Vt)),o!==u?(Qn(),(i=Gn())!==u?(Qn(),n=Gr(e,i)):(_n=n,n=u)):(_n=n,n=u),n===u&&(n=null),t=zr(e,n)):(_n=t,t=u),t}())===u&&(t=function(){var t,e,n,o,i,a,c,s;return t=_n,Qn(),(e=Xn())!==u?(Qn(),(n=function(){var t,e;return Sn++,t=_n,(e=r.substr(_n,3)).toLowerCase()===tt?_n+=3:(e=u,0===Sn&&Tn(Ee)),e===u&&((e=r.substr(_n,4)).toLowerCase()===et?_n+=4:(e=u,0===Sn&&Tn(Pe)),e===u&&((e=r.substr(_n,3)).toLowerCase()===rt?_n+=3:(e=u,0===Sn&&Tn(Te)),e===u&&((e=r.substr(_n,5)).toLowerCase()===nt?_n+=5:(e=u,0===Sn&&Tn(Me)),e===u&&((e=r.substr(_n,3)).toLowerCase()===ot?_n+=3:(e=u,0===Sn&&Tn(De)),e===u&&((e=r.substr(_n,3)).toLowerCase()===it?_n+=3:(e=u,0===Sn&&Tn(Fe)),e===u&&((e=r.substr(_n,6)).toLowerCase()===at?_n+=6:(e=u,0===Sn&&Tn(Ie)),e===u&&((e=r.substr(_n,3)).toLowerCase()===ct?_n+=3:(e=u,0===Sn&&Tn(Be)),e===u&&((e=r.substr(_n,8)).toLowerCase()===ut?_n+=8:(e=u,0===Sn&&Tn(Ne)),e===u&&((e=r.substr(_n,6)).toLowerCase()===st?_n+=6:(e=u,0===Sn&&Tn(He)),e===u&&((e=r.substr(_n,8)).toLowerCase()===lt?_n+=8:(e=u,0===Sn&&Tn(Re)),e===u&&((e=r.substr(_n,6)).toLowerCase()===ft?_n+=6:(e=u,0===Sn&&Tn(We)),e===u&&((e=r.substr(_n,4)).toLowerCase()===dt?_n+=4:(e=u,0===Sn&&Tn(Ge)),e===u&&((e=r.substr(_n,3)).toLowerCase()===ht?_n+=3:(e=u,0===Sn&&Tn(ze)),e===u&&((e=r.substr(_n,3)).toLowerCase()===pt?_n+=3:(e=u,0===Sn&&Tn(Xe)))))))))))))))),e!==u&&(e=Jr(e)),Sn--,(t=e)===u&&(e=u,0===Sn&&Tn(je)),t}())!==u?(Qn(),(o=Xn())!==u?(Qn(),i=_n,58===r.charCodeAt(_n)?(a=_,_n++):(a=u,0===Sn&&Tn(Vt)),a!==u?(Qn(),(c=Gn())!==u?(Qn(),i=Zr(e,n,o,c)):(_n=i,i=u)):(_n=i,i=u),i===u&&(i=null),123===r.charCodeAt(_n)?(a=A,_n++):(a=u,0===Sn&&Tn(qt)),a!==u?(Qn(),(c=In())===u&&(c=null),Qn(),125===r.charCodeAt(_n)?(s=O,_n++):(s=u,0===Sn&&Tn(Ut)),s!==u?(Qn(),t=Yr(e,n,o,i,c)):(_n=t,t=u)):(_n=t,t=u)):(_n=t,t=u)):(_n=t,t=u)):(_n=t,t=u),t}()),t}function Hn(){var t;return Sn++,r.substr(_n,2)===j?(t=j,_n+=2):(t=u,0===Sn&&Tn(ee)),t===u&&(r.substr(_n,3)===E?(t=E,_n+=3):(t=u,0===Sn&&Tn(re)),t===u&&(r.substr(_n,2)===P?(t=P,_n+=2):(t=u,0===Sn&&Tn(ne)),t===u&&(r.substr(_n,5)===T?(t=T,_n+=5):(t=u,0===Sn&&Tn(oe)),t===u&&(r.substr(_n,3)===M?(t=M,_n+=3):(t=u,0===Sn&&Tn(ie)),t===u&&(r.substr(_n,2)===D?(t=D,_n+=2):(t=u,0===Sn&&Tn(ae)),t===u&&(r.substr(_n,4)===F?(t=F,_n+=4):(t=u,0===Sn&&Tn(ce)),t===u&&(r.substr(_n,2)===I?(t=I,_n+=2):(t=u,0===Sn&&Tn(ue)),t===u&&(r.substr(_n,3)===B?(t=B,_n+=3):(t=u,0===Sn&&Tn(se)))))))))),Sn--,t===u&&0===Sn&&Tn(te),t}function Rn(){var t;return Sn++,r.substr(_n,2)===N?(t=N,_n+=2):(t=u,0===Sn&&Tn(fe)),t===u&&(r.substr(_n,3)===H?(t=H,_n+=3):(t=u,0===Sn&&Tn(de)),t===u&&(r.substr(_n,2)===R?(t=R,_n+=2):(t=u,0===Sn&&Tn(he)),t===u&&(r.substr(_n,2)===W?(t=W,_n+=2):(t=u,0===Sn&&Tn(pe)),t===u&&(r.substr(_n,2)===G?(t=G,_n+=2):(t=u,0===Sn&&Tn(ge)),t===u&&((t=r.substr(_n,2)).toLowerCase()===z?_n+=2:(t=u,0===Sn&&Tn(be))))))),Sn--,t===u&&0===Sn&&Tn(le),t}function Wn(){var t;return Sn++,r.substr(_n,2)===X?(t=X,_n+=2):(t=u,0===Sn&&Tn(ye)),t===u&&(r.substr(_n,3)===V?(t=V,_n+=3):(t=u,0===Sn&&Tn(ve)),t===u&&(r.substr(_n,2)===$?(t=$,_n+=2):(t=u,0===Sn&&Tn(xe)),t===u&&(r.substr(_n,2)===q?(t=q,_n+=2):(t=u,0===Sn&&Tn(we)),t===u&&(r.substr(_n,2)===U?(t=U,_n+=2):(t=u,0===Sn&&Tn(_e)),t===u&&((t=r.substr(_n,2)).toLowerCase()===K?_n+=2:(t=u,0===Sn&&Tn(Ce))))))),Sn--,t===u&&0===Sn&&Tn(me),t}function Gn(){var t,e;return(t=zn())===u&&(e=function(){var t,e,n,o;for(t=[],e=_n,n=_n,Sn++,o=r.charAt(_n),kt.test(o)?_n++:(o=u,0===Sn&&Tn(Ke)),Sn--,o===u?n=void 0:(_n=n,n=u),n!==u?(r.length>_n?(o=r.charAt(_n),_n++):(o=u,0===Sn&&Tn(Ue)),o!==u?e=nn(o):(_n=e,e=u)):(_n=e,e=u);e!==u;)t.push(e),e=_n,n=_n,Sn++,o=r.charAt(_n),kt.test(o)?_n++:(o=u,0===Sn&&Tn(Ke)),Sn--,o===u?n=void 0:(_n=n,n=u),n!==u?(r.length>_n?(o=r.charAt(_n),_n++):(o=u,0===Sn&&Tn(Ue)),o!==u?e=nn(o):(_n=e,e=u)):(_n=e,e=u);return t}(),t=rn(e)),t}function zn(){var t,e,n,o;return Sn++,t=_n,34===r.charCodeAt(_n)?(e=gt,_n++):(e=u,0===Sn&&Tn($e)),e!==u?(n=function(){var t,e,n,o;for(t=[],e=_n,n=_n,Sn++,34===r.charCodeAt(_n)?(o=gt,_n++):(o=u,0===Sn&&Tn($e)),Sn--,o===u?n=void 0:(_n=n,n=u),n!==u?(r.substr(_n,2)===bt?(o=bt,_n+=2):(o=u,0===Sn&&Tn(qe)),o===u&&(r.length>_n?(o=r.charAt(_n),_n++):(o=u,0===Sn&&Tn(Ue))),o!==u?e=en(o):(_n=e,e=u)):(_n=e,e=u);e!==u;)t.push(e),e=_n,n=_n,Sn++,34===r.charCodeAt(_n)?(o=gt,_n++):(o=u,0===Sn&&Tn($e)),Sn--,o===u?n=void 0:(_n=n,n=u),n!==u?(r.substr(_n,2)===bt?(o=bt,_n+=2):(o=u,0===Sn&&Tn(qe)),o===u&&(r.length>_n?(o=r.charAt(_n),_n++):(o=u,0===Sn&&Tn(Ue))),o!==u?e=en(o):(_n=e,e=u)):(_n=e,e=u);return t}(),34===r.charCodeAt(_n)?(o=gt,_n++):(o=u,0===Sn&&Tn($e)),o!==u?t=tn(n):(_n=t,t=u)):(_n=t,t=u),Sn--,t===u&&(e=u,0===Sn&&Tn(Ve)),t}function Xn(){var t,e,n;if(Sn++,t=_n,e=[],n=r.charAt(_n),Lt.test(n)?_n++:(n=u,0===Sn&&Tn(Ye)),n!==u)for(;n!==u;)e.push(n),n=r.charAt(_n),Lt.test(n)?_n++:(n=u,0===Sn&&Tn(Ye));else e=u;return e!==u&&(e=on(e)),(t=e)===u&&(t=zn()),Sn--,t===u&&(e=u,0===Sn&&Tn(Ze)),t}function Vn(){var t,e;return Sn++,_n,e=r.charAt(_n),jt.test(e)?_n++:(e=u,0===Sn&&Tn(Je)),e!==u&&(e=an(e)),Sn--,(t=e)===u&&(e=u,0===Sn&&Tn(Qe)),t}function $n(){var t,e;return Sn++,_n,e=r.charAt(_n),Et.test(e)?_n++:(e=u,0===Sn&&Tn(er)),e!==u&&(e=cn(e)),Sn--,(t=e)===u&&(e=u,0===Sn&&Tn(tr)),t}function qn(){var t,e,n;return t=_n,e=_n,Sn++,r.substr(_n,2)===yt?(n=yt,_n+=2):(n=u,0===Sn&&Tn(nr)),Sn--,n===u?e=void 0:(_n=e,e=u),e!==u?(r.length>_n?(n=r.charAt(_n),_n++):(n=u,0===Sn&&Tn(Ue)),n!==u?t=un(n):(_n=t,t=u)):(_n=t,t=u),t}function Un(){var t,e,n,o;if(t=_n,(e=function(){var t;return r.substr(_n,2)===mt?(t=mt,_n+=2):(t=u,0===Sn&&Tn(rr)),t}())!==u){for(n=[],o=qn();o!==u;)n.push(o),o=qn();(o=function(){var t;return r.substr(_n,2)===yt?(t=yt,_n+=2):(t=u,0===Sn&&Tn(nr)),t}())!==u?t=sn(e,n,o):(_n=t,t=u)}else _n=t,t=u;return t}function Kn(){var t;return t=r.charAt(_n),Pt.test(t)?_n++:(t=u,0===Sn&&Tn(ar)),t}function Zn(){var t,e,n,o;if(t=_n,(e=function(){var t;return r.substr(_n,2)===vt?(t=vt,_n+=2):(t=u,0===Sn&&Tn(or)),t===u&&(35===r.charCodeAt(_n)?(t=xt,_n++):(t=u,0===Sn&&Tn(ir))),t}())!==u){for(n=[],o=Kn();o!==u;)n.push(o),o=Kn();t=ln(e,n)}else _n=t,t=u;return t}function Yn(){var t;return Sn++,(t=Zn())===u&&(t=Un()),Sn--,t===u&&0===Sn&&Tn(cr),t}function Qn(){var t,e;for(t=[],(e=Vn())===u&&(e=$n())===u&&(e=Yn());e!==u;)t.push(e),(e=Vn())===u&&(e=$n())===u&&(e=Yn());return t}function Jn(){var t,e,n,o,i;return e=_n,(n=to())!==u?(46===r.charCodeAt(_n)?(o=wt,_n++):(o=u,0===Sn&&Tn(lr)),o!==u&&(i=to())!==u?e=n=[n,o,i]:(_n=e,e=u)):(_n=e,e=u),e!==u&&(e=gn(e)),(t=e)===u&&(t=to()),t}function to(){var t,e;if(t=[],e=r.charAt(_n),Tt.test(e)?_n++:(e=u,0===Sn&&Tn(sr)),e!==u)for(;e!==u;)t.push(e),e=r.charAt(_n),Tt.test(e)?_n++:(e=u,0===Sn&&Tn(sr));else t=u;return t!==u&&(t=pn(t)),t}function eo(){var t,e;return Sn++,t=_n,(e=function(){var t,e,n,o;return t=_n,34===r.charCodeAt(_n)?(e=gt,_n++):(e=u,0===Sn&&Tn($e)),e!==u&&(n=ro())!==u?(34===r.charCodeAt(_n)?(o=gt,_n++):(o=u,0===Sn&&Tn($e)),o!==u?t=yn(n):(_n=t,t=u)):(_n=t,t=u),t}())!==u&&(e=bn(e)),(t=e)===u&&(t=_n,(e=ro())!==u&&(e=mn(e)),t=e),Sn--,t===u&&(e=u,0===Sn&&Tn(fr)),t}function ro(){var t;return(t=r.substr(_n,4)).toLowerCase()===_t?_n+=4:(t=u,0===Sn&&Tn(dr)),t===u&&((t=r.substr(_n,5)).toLowerCase()===Ct?_n+=5:(t=u,0===Sn&&Tn(hr)),t===u&&((t=r.substr(_n,2)).toLowerCase()===At?_n+=2:(t=u,0===Sn&&Tn(pr)),t===u&&((t=r.substr(_n,3)).toLowerCase()===Ot?_n+=3:(t=u,0===Sn&&Tn(gr)),t===u&&(t=r.charAt(_n),Mt.test(t)?_n++:(t=u,0===Sn&&Tn(br)))))),t}function no(){var t,e;return t=_n,(e=Jn())!==u&&(e=xn(e)),(t=e)===u&&(t=_n,(e=r.substr(_n,4)).toLowerCase()===St?_n+=4:(e=u,0===Sn&&Tn(yr)),e!==u&&(e=wn(e)),t=e),t}function oo(e,r,n){return!(t.entityExists(e,r)||!0===n[r])}function io(t){return{name:t}}function ao(t,e,r){return r||(r={}),(e||[]).forEach((function(e){e.forEach((function(e){oo(t,e.from,r)&&t.push(io(e.from)),e.arcs&&(r[e.to]=!0,Object.assign(t,ao(t,e.arcs,r)),delete r[e.to]),oo(t,e.to,r)&&t.push(io(e.to))}))})),t}if(o=f(),n.peg$library)return{peg$result:o,peg$currPos:_n,peg$FAILED:u,peg$maxFailExpected:On,peg$maxFailPos:An};if(o!==u&&_n===r.length)return o;throw o!==u&&_ne?t:(e-=t.length,t+(r+=r.repeat(e)).slice(0,e))}return function(t,e){function r(){this.constructor=t}r.prototype=e.prototype,t.prototype=new r}(e,Error),e.prototype.format=function(t){var e="Error: "+this.message;if(this.location){var n,o=null;for(n=0;n0){for(e=1,r=1;e",D="==",F="<<=>>",I="<=>",B="..",N="<<>>",H="::",R="<:>",W="->",G="=>>",z="=>",X=">>",V=":>",$="-x",q="<-",U="<<=",K="<=",Z="<<",Y="<:",Q="x-",J="note",tt="abox",et="rbox",rt="box",nt="alt",ot="else",it="opt",at="break",ct="par",ut="seq",st="strict",lt="neg",ft="critical",dt="ignore",ht="consider",pt="assert",gt="loop",bt="ref",mt="exc",yt="activate",vt="deactivate",xt="label",wt="idurl",_t="id",Ct="url",At="linecolor",Ot="linecolour",St="textcolor",kt="textcolour",Lt="textbgcolor",jt="textbgcolour",Et="arclinecolor",Pt="arclinecolour",Tt="arctextcolor",Mt="arctextcolour",Dt="arctextbgcolor",Ft="arctextbgcolour",It="arcskip",Bt="title",Nt="activation",Ht='"',Rt='\\"',Wt="/*",Gt="*/",zt="//",Xt="#",Vt=".",$t="true",qt="false",Ut="on",Kt="off",Zt="auto",Yt=/^[A-Za-z_0-9]/,Qt=/^[ \t]/,Jt=/^[\r\n]/,te=/^[^\r\n]/,ee=/^[0-9]/,re=/^[0-1]/,ne=jo("{",!1),oe=jo("}",!1),ie=jo("msc",!0),ae=jo("xu",!0),ce=jo(",",!1),ue=jo(";",!1),se=Po("option"),le=jo("hscale",!0),fe=jo("arcgradient",!0),de=jo("=",!1),he=jo("width",!0),pe=jo("wordwraparcs",!0),ge=jo("wordwrapentities",!0),be=jo("wordwrapboxes",!0),me=jo("watermark",!0),ye=Po("entity"),ve=jo("[",!1),xe=jo("]",!1),we=jo("*",!1),_e=Po("empty row"),Ce=jo("|||",!1),Ae=jo("...",!1),Oe=Po("---"),Se=jo("---",!1),ke=Po("bi-directional arrow"),Le=jo("--",!1),je=jo("<->",!1),Ee=jo("==",!1),Pe=jo("<<=>>",!1),Te=jo("<=>",!1),Me=jo("..",!1),De=jo("<<>>",!1),Fe=jo("::",!1),Ie=jo("<:>",!1),Be=Po("left to right arrow"),Ne=jo("->",!1),He=jo("=>>",!1),Re=jo("=>",!1),We=jo(">>",!1),Ge=jo(":>",!1),ze=jo("-x",!0),Xe=Po("right to left arrow"),Ve=jo("<-",!1),$e=jo("<<=",!1),qe=jo("<=",!1),Ue=jo("<<",!1),Ke=jo("<:",!1),Ze=jo("x-",!0),Ye=Po("box"),Qe=jo("note",!0),Je=jo("abox",!0),tr=jo("rbox",!0),er=jo("box",!0),rr=Po("inline expression"),nr=jo("alt",!0),or=jo("else",!0),ir=jo("opt",!0),ar=jo("break",!0),cr=jo("par",!0),ur=jo("seq",!0),sr=jo("strict",!0),lr=jo("neg",!0),fr=jo("critical",!0),dr=jo("ignore",!0),hr=jo("consider",!0),pr=jo("assert",!0),gr=jo("loop",!0),br=jo("ref",!0),mr=jo("exc",!0),yr=Po("activate or deactivate"),vr=jo("activate",!0),xr=jo("deactivate",!0),wr=Po("attribute name"),_r=jo("label",!0),Cr=jo("idurl",!0),Ar=jo("id",!0),Or=jo("url",!0),Sr=jo("linecolor",!0),kr=jo("linecolour",!0),Lr=jo("textcolor",!0),jr=jo("textcolour",!0),Er=jo("textbgcolor",!0),Pr=jo("textbgcolour",!0),Tr=jo("arclinecolor",!0),Mr=jo("arclinecolour",!0),Dr=jo("arctextcolor",!0),Fr=jo("arctextcolour",!0),Ir=jo("arctextbgcolor",!0),Br=jo("arctextbgcolour",!0),Nr=jo("arcskip",!0),Hr=jo("title",!0),Rr=jo("activation",!0),Wr=Po("double quoted string"),Gr=jo('"',!1),zr=jo('\\"',!1),Xr={type:"any"},Vr=Po("identifier"),$r=Eo([["A","Z"],["a","z"],"_",["0","9"]],!1,!1),qr=Po("whitespace"),Ur=Eo([" ","\t"],!1,!1),Kr=Po("lineend"),Zr=Eo(["\r","\n"],!1,!1),Yr=jo("/*",!1),Qr=jo("*/",!1),Jr=jo("//",!1),tn=jo("#",!1),en=Eo(["\r","\n"],!0,!1),rn=Po("comment"),nn=Po("number"),on=Eo([["0","9"]],!1,!1),an=jo(".",!1),cn=Po("boolean"),un=jo("true",!0),sn=jo("false",!0),ln=jo("on",!0),fn=jo("off",!0),dn=Eo([["0","1"]],!1,!1),hn=Po("size"),pn=jo("auto",!0),gn=function(e,r){return r.entities=r.entities||[],t.checkForUndeclaredEntities(r.entities,r.arcs),r={meta:t.getMetaInfo(r.options,r.arcs),...r},e.length>0&&(r={precomment:e,...r}),r},bn=function(t,e,r){var n={};return t&&(n.options=t),e&&(n.entities=e),r&&(n.arcs=r),n},mn=function(t){return t},yn=function(t){return t},vn=function(t){return t[0].concat(t[1]).reduce(((t,e)=>Object.assign(t,e)),{})},xn=function(e,r){return t.nameValue2Option(e,r)},wn=function(e,r){return t.nameValue2Option(e,r)},_n=function(e,r){return t.nameValue2Option(e,t.flattenBoolean(r))},Cn=function(e,r){return t.nameValue2Option(e,t.flattenBoolean(r))},An=function(e,r){return t.nameValue2Option(e,t.flattenBoolean(r))},On=function(e,r){return t.nameValue2Option(e,r)},Sn=function(t){return t},kn=function(t){return t},Ln=function(t){return t[0].concat(t[1])},jn=function(t,e){return e},En=function(t,e){return{name:t,...e}},Pn=function(t,e){return e},Tn=function(r,n){return t.isMscGenKeyword(r)&&function(t,r){throw function(t,r){return new e(t,null,null,r)}(t,r=void 0!==r?r:Mo(Ao,Co))}("MscGen keywords aren't allowed as entity names (embed them in quotes if you need them)"),{name:r,...n}},Mn=function(t){return t},Dn=function(t){return t},Fn=function(t){return t},In=function(t){return t[0].concat(t[1])},Bn=function(t){return t},Nn=function(t){return t},Hn=function(t){return t},Rn=function(t,e){return e},Wn=function(t,e){return{...t,...e}},Gn=function(t){return{kind:t}},zn=function(t){return{kind:t}},Xn=function(t,e,r){return{kind:e,from:t,to:r}},Vn=function(t,e){return{kind:t,from:"*",to:e}},$n=function(t,e){return{kind:e,from:t,to:"*"}},qn=function(t,e){return{kind:e,from:t,to:"*"}},Un=function(t,e,r,n){return n},Kn=function(t,e,r,n,o){return{kind:e,from:t,to:r,arcs:o,...n}},Zn=function(t){return t.toLowerCase()},Yn=function(t){return t.toLowerCase()},Qn=function(t){return t},Jn=function(t){return t},to=function(t){return t[0].concat(t[1]).reduce(((t,e)=>Object.assign(t,e)),{})},eo=function(t){return{activation:"activate"===t.toLowerCase()}},ro=function(e,r){var n={};return"activation"===e.toLowerCase()?n.activation=t.flattenBoolean(r):n[e.toLowerCase().replace("colour","color")]=r,n},no=function(t){return t.join("")},oo=function(t){return t},io=function(t){return t.join("")},ao=function(t){return t},co=function(t){return t},uo=function(t){return t},so=function(t,e,r){return t+e.join("")+r},lo=function(t,e){return t+e.join("")},fo=function(t){return t},ho=function(t){return t.toString()},po=function(t){return t.toString()},go=function(t){return parseInt(t.join(""),10)},bo=function(t){return parseFloat(t.join(""))},mo=function(t){return t},yo=function(t){return t.toString()},vo=function(t){return t},xo=function(t){return t},wo=function(t){return t.toString()},_o=function(t){return t.toLowerCase()},Co=0|n.peg$currPos,Ao=Co,Oo=[{line:1,column:1}],So=Co,ko=n.peg$maxFailExpected||[],Lo=0|n.peg$silentFails;if(n.startRule){if(!(n.startRule in l))throw new Error("Can't start parsing from rule \""+n.startRule+'".');f=l[n.startRule]}function jo(t,e){return{type:"literal",text:t,ignoreCase:e}}function Eo(t,e,r){return{type:"class",parts:t,inverted:e,ignoreCase:r}}function Po(t){return{type:"other",description:t}}function To(t){var e,n=Oo[t];if(n)return n;if(t>=Oo.length)e=Oo.length-1;else for(e=t;!Oo[--e];);for(n={line:(n=Oo[e]).line,column:n.column};eSo&&(So=Co,ko=[]),ko.push(t))}function Fo(){var t,e,n,o,i;return t=Co,e=ri(),function(){var t;return(t=r.substr(Co,3)).toLowerCase()===p?Co+=3:(t=u,0===Lo&&Do(ie)),t===u&&((t=r.substr(Co,2)).toLowerCase()===g?Co+=2:(t=u,0===Lo&&Do(ae))),t}()!==u?(ri(),123===r.charCodeAt(Co)?(n=d,Co++):(n=u,0===Lo&&Do(ne)),n!==u?(ri(),o=function(){var t,e,n,o;return t=Co,(e=function(){var t,e,n,o,i,a;for(t=Co,e=Co,n=[],o=Co,(i=Io())!==u?(44===r.charCodeAt(Co)?(a=b,Co++):(a=u,0===Lo&&Do(ce)),a!==u?(Ao=o,o=mn(i)):(Co=o,o=u)):(Co=o,o=u);o!==u;)n.push(o),o=Co,(i=Io())!==u?(44===r.charCodeAt(Co)?(a=b,Co++):(a=u,0===Lo&&Do(ce)),a!==u?(Ao=o,o=mn(i)):(Co=o,o=u)):(Co=o,o=u);return o=Co,(i=Io())!==u?(59===r.charCodeAt(Co)?(a=m,Co++):(a=u,0===Lo&&Do(ue)),a!==u?(Ao=o,o=yn(i)):(Co=o,o=u)):(Co=o,o=u),o!==u?e=n=[n,o]:(Co=e,e=u),e!==u&&(Ao=t,e=vn(e)),e}())===u&&(e=null),(n=function(){var t,e,n,o,i,a;for(t=Co,e=Co,n=[],o=Co,(i=Bo())!==u?(44===r.charCodeAt(Co)?(a=b,Co++):(a=u,0===Lo&&Do(ce)),a!==u?(Ao=o,o=Sn(i)):(Co=o,o=u)):(Co=o,o=u);o!==u;)n.push(o),o=Co,(i=Bo())!==u?(44===r.charCodeAt(Co)?(a=b,Co++):(a=u,0===Lo&&Do(ce)),a!==u?(Ao=o,o=Sn(i)):(Co=o,o=u)):(Co=o,o=u);return o=Co,(i=Bo())!==u?(59===r.charCodeAt(Co)?(a=m,Co++):(a=u,0===Lo&&Do(ue)),a!==u?(Ao=o,o=kn(i)):(Co=o,o=u)):(Co=o,o=u),o!==u?e=n=[n,o]:(Co=e,e=u),e!==u&&(Ao=t,e=Ln(e)),e}())===u&&(n=null),(o=No())===u&&(o=null),Ao=t,bn(e,n,o)}(),ri(),125===r.charCodeAt(Co)?(i=h,Co++):(i=u,0===Lo&&Do(oe)),i!==u?(ri(),Ao=t,t=gn(e,o)):(Co=t,t=u)):(Co=t,t=u)):(Co=t,t=u),t}function Io(){var t,e,n,o;return Lo++,t=Co,ri(),(e=r.substr(Co,6)).toLowerCase()===y?Co+=6:(e=u,0===Lo&&Do(le)),e===u&&((e=r.substr(Co,11)).toLowerCase()===v?Co+=11:(e=u,0===Lo&&Do(fe))),e!==u?(ri(),61===r.charCodeAt(Co)?(n=x,Co++):(n=u,0===Lo&&Do(de)),n!==u?(ri(),(o=function(){var t,e;return Lo++,t=Co,(e=function(){var t,e,n,o;return t=Co,34===r.charCodeAt(Co)?(e=Ht,Co++):(e=u,0===Lo&&Do(Gr)),e!==u&&(n=ni())!==u?(34===r.charCodeAt(Co)?(o=Ht,Co++):(o=u,0===Lo&&Do(Gr)),o!==u?(Ao=t,t=po(n)):(Co=t,t=u)):(Co=t,t=u),t}())!==u&&(Ao=t,e=fo(e)),(t=e)===u&&(t=Co,(e=ni())!==u&&(Ao=t,e=ho(e)),t=e),Lo--,t===u&&(e=u,0===Lo&&Do(nn)),t}())!==u?(ri(),Ao=t,t=xn(e,o)):(Co=t,t=u)):(Co=t,t=u)):(Co=t,t=u),t===u&&(t=Co,ri(),(e=r.substr(Co,5)).toLowerCase()===w?Co+=5:(e=u,0===Lo&&Do(he)),e!==u?(ri(),61===r.charCodeAt(Co)?(n=x,Co++):(n=u,0===Lo&&Do(de)),n!==u?(ri(),(o=function(){var t;return Lo++,(t=function(){var t,e,n,o;return t=Co,34===r.charCodeAt(Co)?(e=Ht,Co++):(e=u,0===Lo&&Do(Gr)),e!==u&&(n=ci())!==u?(34===r.charCodeAt(Co)?(o=Ht,Co++):(o=u,0===Lo&&Do(Gr)),o!==u?(Ao=t,t=xo(n)):(Co=t,t=u)):(Co=t,t=u),t}())===u&&(t=ci()),Lo--,t===u&&0===Lo&&Do(hn),t}())!==u?(ri(),Ao=t,t=wn(e,o)):(Co=t,t=u)):(Co=t,t=u)):(Co=t,t=u),t===u&&(t=Co,ri(),(e=r.substr(Co,12)).toLowerCase()===_?Co+=12:(e=u,0===Lo&&Do(pe)),e!==u?(ri(),61===r.charCodeAt(Co)?(n=x,Co++):(n=u,0===Lo&&Do(de)),n!==u?(ri(),(o=ii())!==u?(ri(),Ao=t,t=_n(e,o)):(Co=t,t=u)):(Co=t,t=u)):(Co=t,t=u),t===u&&(t=Co,ri(),(e=r.substr(Co,16)).toLowerCase()===C?Co+=16:(e=u,0===Lo&&Do(ge)),e!==u?(ri(),61===r.charCodeAt(Co)?(n=x,Co++):(n=u,0===Lo&&Do(de)),n!==u?(ri(),(o=ii())!==u?(ri(),Ao=t,t=Cn(e,o)):(Co=t,t=u)):(Co=t,t=u)):(Co=t,t=u),t===u&&(t=Co,ri(),(e=r.substr(Co,13)).toLowerCase()===A?Co+=13:(e=u,0===Lo&&Do(be)),e!==u?(ri(),61===r.charCodeAt(Co)?(n=x,Co++):(n=u,0===Lo&&Do(de)),n!==u?(ri(),(o=ii())!==u?(ri(),Ao=t,t=An(e,o)):(Co=t,t=u)):(Co=t,t=u)):(Co=t,t=u),t===u&&(t=Co,ri(),(e=r.substr(Co,9)).toLowerCase()===O?Co+=9:(e=u,0===Lo&&Do(me)),e!==u?(ri(),61===r.charCodeAt(Co)?(n=x,Co++):(n=u,0===Lo&&Do(de)),n!==u?(ri(),(o=$o())!==u?(ri(),Ao=t,t=On(e,o)):(Co=t,t=u)):(Co=t,t=u)):(Co=t,t=u)))))),Lo--,t===u&&0===Lo&&Do(se),t}function Bo(){var t,e,n,o,i,a;return Lo++,t=Co,ri(),(e=$o())!==u?(ri(),n=Co,91===r.charCodeAt(Co)?(o=S,Co++):(o=u,0===Lo&&Do(ve)),o!==u&&(i=Xo())!==u?(93===r.charCodeAt(Co)?(a=k,Co++):(a=u,0===Lo&&Do(xe)),a!==u?(Ao=n,n=jn(e,i)):(Co=n,n=u)):(Co=n,n=u),n===u&&(n=null),o=ri(),Ao=t,t=En(e,n)):(Co=t,t=u),t===u&&(t=Co,ri(),(e=Uo())!==u?(ri(),n=Co,91===r.charCodeAt(Co)?(o=S,Co++):(o=u,0===Lo&&Do(ve)),o!==u&&(i=Xo())!==u?(93===r.charCodeAt(Co)?(a=k,Co++):(a=u,0===Lo&&Do(xe)),a!==u?(Ao=n,n=Pn(e,i)):(Co=n,n=u)):(Co=n,n=u),n===u&&(n=null),o=ri(),Ao=t,t=Tn(e,n)):(Co=t,t=u)),Lo--,t===u&&0===Lo&&Do(ye),t}function No(){var t,e,n,o;if(t=[],e=Co,(n=Ho())!==u?(ri(),59===r.charCodeAt(Co)?(o=m,Co++):(o=u,0===Lo&&Do(ue)),o!==u?(Ao=e,e=Mn(n)):(Co=e,e=u)):(Co=e,e=u),e!==u)for(;e!==u;)t.push(e),e=Co,(n=Ho())!==u?(ri(),59===r.charCodeAt(Co)?(o=m,Co++):(o=u,0===Lo&&Do(ue)),o!==u?(Ao=e,e=Mn(n)):(Co=e,e=u)):(Co=e,e=u);else t=u;return t}function Ho(){var t,e,n,o,i,a;for(t=Co,e=Co,n=[],o=Co,(i=Ro())!==u?(ri(),44===r.charCodeAt(Co)?(a=b,Co++):(a=u,0===Lo&&Do(ce)),a!==u?(Ao=o,o=Dn(i)):(Co=o,o=u)):(Co=o,o=u);o!==u;)n.push(o),o=Co,(i=Ro())!==u?(ri(),44===r.charCodeAt(Co)?(a=b,Co++):(a=u,0===Lo&&Do(ce)),a!==u?(Ao=o,o=Dn(i)):(Co=o,o=u)):(Co=o,o=u);return o=Co,(i=Ro())!==u&&(Ao=o,i=Fn(i)),(o=i)!==u?e=n=[n,o]:(Co=e,e=u),e!==u&&(Ao=t,e=In(e)),e}function Ro(){var t;return(t=function(){var t,e,n,o,i,a;return t=Co,e=Co,(n=function(){var t,e;return t=Co,ri(),(e=function(){var t;return Lo++,r.substr(Co,3)===j?(t=j,Co+=3):(t=u,0===Lo&&Do(Ce)),t===u&&(r.substr(Co,3)===E?(t=E,Co+=3):(t=u,0===Lo&&Do(Ae))),Lo--,t===u&&0===Lo&&Do(_e),t}())!==u?(ri(),Ao=t,t=Gn(e)):(Co=t,t=u),t}())!==u&&(Ao=e,n=Bn(n)),(e=n)===u&&(e=Co,(n=function(){var t,e,n,o;return t=Co,ri(),(e=qo())!==u?(ri(),(n=function(){var t,e;return t=Co,(e=Wo())===u&&(e=Go())===u&&(e=zo())===u&&(e=function(){var t;return Lo++,(t=r.substr(Co,4)).toLowerCase()===J?Co+=4:(t=u,0===Lo&&Do(Qe)),t===u&&((t=r.substr(Co,4)).toLowerCase()===tt?Co+=4:(t=u,0===Lo&&Do(Je)),t===u&&((t=r.substr(Co,4)).toLowerCase()===et?Co+=4:(t=u,0===Lo&&Do(tr)),t===u&&((t=r.substr(Co,3)).toLowerCase()===rt?Co+=3:(t=u,0===Lo&&Do(er))))),Lo--,t===u&&0===Lo&&Do(Ye),t}()),e!==u&&(Ao=t,e=Zn(e)),e}())!==u?(ri(),(o=qo())!==u?(ri(),Ao=t,t=Xn(e,n,o)):(Co=t,t=u)):(Co=t,t=u)):(Co=t,t=u),t===u&&(t=Co,ri(),42===r.charCodeAt(Co)?(e=L,Co++):(e=u,0===Lo&&Do(we)),e!==u?(ri(),(n=zo())!==u?(ri(),(o=qo())!==u?(ri(),Ao=t,t=Vn(n,o)):(Co=t,t=u)):(Co=t,t=u)):(Co=t,t=u),t===u&&(t=Co,ri(),(e=qo())!==u?(ri(),(n=Go())!==u?(ri(),42===r.charCodeAt(Co)?(o=L,Co++):(o=u,0===Lo&&Do(we)),o!==u?(ri(),Ao=t,t=$n(e,n)):(Co=t,t=u)):(Co=t,t=u)):(Co=t,t=u),t===u&&(t=Co,ri(),(e=qo())!==u?(ri(),(n=Wo())!==u?(ri(),42===r.charCodeAt(Co)?(o=L,Co++):(o=u,0===Lo&&Do(we)),o!==u?(ri(),Ao=t,t=qn(e,n)):(Co=t,t=u)):(Co=t,t=u)):(Co=t,t=u)))),t}())!==u&&(Ao=e,n=Nn(n)),(e=n)===u&&(e=Co,(n=function(){var t,e;return t=Co,ri(),(e=function(){var t;return Lo++,r.substr(Co,3)===P?(t=P,Co+=3):(t=u,0===Lo&&Do(Se)),Lo--,t===u&&0===Lo&&Do(Oe),t}())!==u?(ri(),Ao=t,t=zn(e)):(Co=t,t=u),t}())!==u&&(Ao=e,n=Hn(n)),e=n)),e!==u?(n=Co,91===r.charCodeAt(Co)?(o=S,Co++):(o=u,0===Lo&&Do(ve)),o!==u&&(i=Xo())!==u?(93===r.charCodeAt(Co)?(a=k,Co++):(a=u,0===Lo&&Do(xe)),a!==u?(Ao=n,n=Rn(e,i)):(Co=n,n=u)):(Co=n,n=u),n===u&&(n=null),Ao=t,t=Wn(e,n)):(Co=t,t=u),t}())===u&&(t=function(){var t,e,n,o,i,a,c,s,l,f;return t=Co,ri(),(e=qo())!==u?(ri(),(n=function(){var t,e;return Lo++,t=Co,(e=r.substr(Co,3)).toLowerCase()===nt?Co+=3:(e=u,0===Lo&&Do(nr)),e===u&&((e=r.substr(Co,4)).toLowerCase()===ot?Co+=4:(e=u,0===Lo&&Do(or)),e===u&&((e=r.substr(Co,3)).toLowerCase()===it?Co+=3:(e=u,0===Lo&&Do(ir)),e===u&&((e=r.substr(Co,5)).toLowerCase()===at?Co+=5:(e=u,0===Lo&&Do(ar)),e===u&&((e=r.substr(Co,3)).toLowerCase()===ct?Co+=3:(e=u,0===Lo&&Do(cr)),e===u&&((e=r.substr(Co,3)).toLowerCase()===ut?Co+=3:(e=u,0===Lo&&Do(ur)),e===u&&((e=r.substr(Co,6)).toLowerCase()===st?Co+=6:(e=u,0===Lo&&Do(sr)),e===u&&((e=r.substr(Co,3)).toLowerCase()===lt?Co+=3:(e=u,0===Lo&&Do(lr)),e===u&&((e=r.substr(Co,8)).toLowerCase()===ft?Co+=8:(e=u,0===Lo&&Do(fr)),e===u&&((e=r.substr(Co,6)).toLowerCase()===dt?Co+=6:(e=u,0===Lo&&Do(dr)),e===u&&((e=r.substr(Co,8)).toLowerCase()===ht?Co+=8:(e=u,0===Lo&&Do(hr)),e===u&&((e=r.substr(Co,6)).toLowerCase()===pt?Co+=6:(e=u,0===Lo&&Do(pr)),e===u&&((e=r.substr(Co,4)).toLowerCase()===gt?Co+=4:(e=u,0===Lo&&Do(gr)),e===u&&((e=r.substr(Co,3)).toLowerCase()===bt?Co+=3:(e=u,0===Lo&&Do(br)),e===u&&((e=r.substr(Co,3)).toLowerCase()===mt?Co+=3:(e=u,0===Lo&&Do(mr)))))))))))))))),e!==u&&(Ao=t,e=Yn(e)),Lo--,(t=e)===u&&(e=u,0===Lo&&Do(rr)),t}())!==u?(ri(),(o=qo())!==u?(ri(),i=Co,91===r.charCodeAt(Co)?(a=S,Co++):(a=u,0===Lo&&Do(ve)),a!==u&&(c=Xo())!==u?(93===r.charCodeAt(Co)?(s=k,Co++):(s=u,0===Lo&&Do(xe)),s!==u?(Ao=i,i=Un(e,n,o,c)):(Co=i,i=u)):(Co=i,i=u),i===u&&(i=null),a=ri(),123===r.charCodeAt(Co)?(c=d,Co++):(c=u,0===Lo&&Do(ne)),c!==u?(s=ri(),(l=No())===u&&(l=null),ri(),125===r.charCodeAt(Co)?(f=h,Co++):(f=u,0===Lo&&Do(oe)),f!==u?(ri(),Ao=t,t=Kn(e,n,o,i,l)):(Co=t,t=u)):(Co=t,t=u)):(Co=t,t=u)):(Co=t,t=u)):(Co=t,t=u),t}()),t}function Wo(){var t;return Lo++,r.substr(Co,2)===T?(t=T,Co+=2):(t=u,0===Lo&&Do(Le)),t===u&&(r.substr(Co,3)===M?(t=M,Co+=3):(t=u,0===Lo&&Do(je)),t===u&&(r.substr(Co,2)===D?(t=D,Co+=2):(t=u,0===Lo&&Do(Ee)),t===u&&(r.substr(Co,5)===F?(t=F,Co+=5):(t=u,0===Lo&&Do(Pe)),t===u&&(r.substr(Co,3)===I?(t=I,Co+=3):(t=u,0===Lo&&Do(Te)),t===u&&(r.substr(Co,2)===B?(t=B,Co+=2):(t=u,0===Lo&&Do(Me)),t===u&&(r.substr(Co,4)===N?(t=N,Co+=4):(t=u,0===Lo&&Do(De)),t===u&&(r.substr(Co,2)===H?(t=H,Co+=2):(t=u,0===Lo&&Do(Fe)),t===u&&(r.substr(Co,3)===R?(t=R,Co+=3):(t=u,0===Lo&&Do(Ie)))))))))),Lo--,t===u&&0===Lo&&Do(ke),t}function Go(){var t;return Lo++,r.substr(Co,2)===W?(t=W,Co+=2):(t=u,0===Lo&&Do(Ne)),t===u&&(r.substr(Co,3)===G?(t=G,Co+=3):(t=u,0===Lo&&Do(He)),t===u&&(r.substr(Co,2)===z?(t=z,Co+=2):(t=u,0===Lo&&Do(Re)),t===u&&(r.substr(Co,2)===X?(t=X,Co+=2):(t=u,0===Lo&&Do(We)),t===u&&(r.substr(Co,2)===V?(t=V,Co+=2):(t=u,0===Lo&&Do(Ge)),t===u&&((t=r.substr(Co,2)).toLowerCase()===$?Co+=2:(t=u,0===Lo&&Do(ze))))))),Lo--,t===u&&0===Lo&&Do(Be),t}function zo(){var t;return Lo++,r.substr(Co,2)===q?(t=q,Co+=2):(t=u,0===Lo&&Do(Ve)),t===u&&(r.substr(Co,3)===U?(t=U,Co+=3):(t=u,0===Lo&&Do($e)),t===u&&(r.substr(Co,2)===K?(t=K,Co+=2):(t=u,0===Lo&&Do(qe)),t===u&&(r.substr(Co,2)===Z?(t=Z,Co+=2):(t=u,0===Lo&&Do(Ue)),t===u&&(r.substr(Co,2)===Y?(t=Y,Co+=2):(t=u,0===Lo&&Do(Ke)),t===u&&((t=r.substr(Co,2)).toLowerCase()===Q?Co+=2:(t=u,0===Lo&&Do(Ze))))))),Lo--,t===u&&0===Lo&&Do(Xe),t}function Xo(){var t,e,n,o,i,a;for(t=Co,e=Co,n=[],o=Co,(i=Vo())!==u?(44===r.charCodeAt(Co)?(a=b,Co++):(a=u,0===Lo&&Do(ce)),a!==u?(Ao=o,o=Qn(i)):(Co=o,o=u)):(Co=o,o=u);o!==u;)n.push(o),o=Co,(i=Vo())!==u?(44===r.charCodeAt(Co)?(a=b,Co++):(a=u,0===Lo&&Do(ce)),a!==u?(Ao=o,o=Qn(i)):(Co=o,o=u)):(Co=o,o=u);return o=Co,(i=Vo())!==u&&(Ao=o,i=Jn(i)),(o=i)!==u?e=n=[n,o]:(Co=e,e=u),e!==u&&(Ao=t,e=to(e)),e}function Vo(){var t;return(t=function(){var t,e,n,o;return t=Co,ri(),(e=function(){var t;return Lo++,(t=r.substr(Co,5)).toLowerCase()===xt?Co+=5:(t=u,0===Lo&&Do(_r)),t===u&&((t=r.substr(Co,5)).toLowerCase()===wt?Co+=5:(t=u,0===Lo&&Do(Cr)),t===u&&((t=r.substr(Co,2)).toLowerCase()===_t?Co+=2:(t=u,0===Lo&&Do(Ar)),t===u&&((t=r.substr(Co,3)).toLowerCase()===Ct?Co+=3:(t=u,0===Lo&&Do(Or)),t===u&&((t=r.substr(Co,9)).toLowerCase()===At?Co+=9:(t=u,0===Lo&&Do(Sr)),t===u&&((t=r.substr(Co,10)).toLowerCase()===Ot?Co+=10:(t=u,0===Lo&&Do(kr)),t===u&&((t=r.substr(Co,9)).toLowerCase()===St?Co+=9:(t=u,0===Lo&&Do(Lr)),t===u&&((t=r.substr(Co,10)).toLowerCase()===kt?Co+=10:(t=u,0===Lo&&Do(jr)),t===u&&((t=r.substr(Co,11)).toLowerCase()===Lt?Co+=11:(t=u,0===Lo&&Do(Er)),t===u&&((t=r.substr(Co,12)).toLowerCase()===jt?Co+=12:(t=u,0===Lo&&Do(Pr)),t===u&&((t=r.substr(Co,12)).toLowerCase()===Et?Co+=12:(t=u,0===Lo&&Do(Tr)),t===u&&((t=r.substr(Co,13)).toLowerCase()===Pt?Co+=13:(t=u,0===Lo&&Do(Mr)),t===u&&((t=r.substr(Co,12)).toLowerCase()===Tt?Co+=12:(t=u,0===Lo&&Do(Dr)),t===u&&((t=r.substr(Co,13)).toLowerCase()===Mt?Co+=13:(t=u,0===Lo&&Do(Fr)),t===u&&((t=r.substr(Co,14)).toLowerCase()===Dt?Co+=14:(t=u,0===Lo&&Do(Ir)),t===u&&((t=r.substr(Co,15)).toLowerCase()===Ft?Co+=15:(t=u,0===Lo&&Do(Br)),t===u&&((t=r.substr(Co,7)).toLowerCase()===It?Co+=7:(t=u,0===Lo&&Do(Nr)),t===u&&((t=r.substr(Co,5)).toLowerCase()===Bt?Co+=5:(t=u,0===Lo&&Do(Hr)),t===u&&((t=r.substr(Co,10)).toLowerCase()===Nt?Co+=10:(t=u,0===Lo&&Do(Rr)))))))))))))))))))),Lo--,t===u&&0===Lo&&Do(wr),t}())!==u?(ri(),61===r.charCodeAt(Co)?(n=x,Co++):(n=u,0===Lo&&Do(de)),n!==u?(ri(),(o=qo())!==u?(ri(),Ao=t,t=ro(e,o)):(Co=t,t=u)):(Co=t,t=u)):(Co=t,t=u),t}())===u&&(t=function(){var t,e;return Lo++,t=Co,ri(),(e=r.substr(Co,8)).toLowerCase()===yt?Co+=8:(e=u,0===Lo&&Do(vr)),e===u&&((e=r.substr(Co,10)).toLowerCase()===vt?Co+=10:(e=u,0===Lo&&Do(xr))),e!==u?(ri(),Ao=t,t=eo(e)):(Co=t,t=u),Lo--,t===u&&0===Lo&&Do(yr),t}()),t}function $o(){var t,e,n,o;return Lo++,t=Co,34===r.charCodeAt(Co)?(e=Ht,Co++):(e=u,0===Lo&&Do(Gr)),e!==u?(n=function(){var t,e,n,o;for(t=[],e=Co,n=Co,Lo++,34===r.charCodeAt(Co)?(o=Ht,Co++):(o=u,0===Lo&&Do(Gr)),Lo--,o===u?n=void 0:(Co=n,n=u),n!==u?(r.substr(Co,2)===Rt?(o=Rt,Co+=2):(o=u,0===Lo&&Do(zr)),o===u&&(r.length>Co?(o=r.charAt(Co),Co++):(o=u,0===Lo&&Do(Xr))),o!==u?(Ao=e,e=oo(o)):(Co=e,e=u)):(Co=e,e=u);e!==u;)t.push(e),e=Co,n=Co,Lo++,34===r.charCodeAt(Co)?(o=Ht,Co++):(o=u,0===Lo&&Do(Gr)),Lo--,o===u?n=void 0:(Co=n,n=u),n!==u?(r.substr(Co,2)===Rt?(o=Rt,Co+=2):(o=u,0===Lo&&Do(zr)),o===u&&(r.length>Co?(o=r.charAt(Co),Co++):(o=u,0===Lo&&Do(Xr))),o!==u?(Ao=e,e=oo(o)):(Co=e,e=u)):(Co=e,e=u);return t}(),34===r.charCodeAt(Co)?(o=Ht,Co++):(o=u,0===Lo&&Do(Gr)),o!==u?(Ao=t,t=no(n)):(Co=t,t=u)):(Co=t,t=u),Lo--,t===u&&(e=u,0===Lo&&Do(Wr)),t}function qo(){var t;return Lo++,(t=Uo())===u&&(t=$o()),Lo--,t===u&&0===Lo&&Do(Vr),t}function Uo(){var t,e,n;if(t=Co,e=[],n=r.charAt(Co),Yt.test(n)?Co++:(n=u,0===Lo&&Do($r)),n!==u)for(;n!==u;)e.push(n),n=r.charAt(Co),Yt.test(n)?Co++:(n=u,0===Lo&&Do($r));else e=u;return e!==u&&(Ao=t,e=io(e)),e}function Ko(){var t,e;return Lo++,t=Co,e=r.charAt(Co),Qt.test(e)?Co++:(e=u,0===Lo&&Do(Ur)),e!==u&&(Ao=t,e=ao(e)),Lo--,(t=e)===u&&(e=u,0===Lo&&Do(qr)),t}function Zo(){var t,e;return Lo++,t=Co,e=r.charAt(Co),Jt.test(e)?Co++:(e=u,0===Lo&&Do(Zr)),e!==u&&(Ao=t,e=co(e)),Lo--,(t=e)===u&&(e=u,0===Lo&&Do(Kr)),t}function Yo(){var t,e,n;return t=Co,e=Co,Lo++,r.substr(Co,2)===Gt?(n=Gt,Co+=2):(n=u,0===Lo&&Do(Qr)),Lo--,n===u?e=void 0:(Co=e,e=u),e!==u?(r.length>Co?(n=r.charAt(Co),Co++):(n=u,0===Lo&&Do(Xr)),n!==u?(Ao=t,t=uo(n)):(Co=t,t=u)):(Co=t,t=u),t}function Qo(){var t,e,n,o;if(t=Co,(e=function(){var t;return r.substr(Co,2)===Wt?(t=Wt,Co+=2):(t=u,0===Lo&&Do(Yr)),t}())!==u){for(n=[],o=Yo();o!==u;)n.push(o),o=Yo();(o=function(){var t;return r.substr(Co,2)===Gt?(t=Gt,Co+=2):(t=u,0===Lo&&Do(Qr)),t}())!==u?(Ao=t,t=so(e,n,o)):(Co=t,t=u)}else Co=t,t=u;return t}function Jo(){var t;return t=r.charAt(Co),te.test(t)?Co++:(t=u,0===Lo&&Do(en)),t}function ti(){var t,e,n,o;if(t=Co,(e=function(){var t;return r.substr(Co,2)===zt?(t=zt,Co+=2):(t=u,0===Lo&&Do(Jr)),t===u&&(35===r.charCodeAt(Co)?(t=Xt,Co++):(t=u,0===Lo&&Do(tn))),t}())!==u){for(n=[],o=Jo();o!==u;)n.push(o),o=Jo();Ao=t,t=lo(e,n)}else Co=t,t=u;return t}function ei(){var t;return Lo++,(t=ti())===u&&(t=Qo()),Lo--,t===u&&0===Lo&&Do(rn),t}function ri(){var t,e;for(t=[],(e=Ko())===u&&(e=Zo())===u&&(e=ei());e!==u;)t.push(e),(e=Ko())===u&&(e=Zo())===u&&(e=ei());return t}function ni(){var t;return(t=function(){var t,e,n,o,i;return t=Co,e=Co,(n=oi())!==u?(46===r.charCodeAt(Co)?(o=Vt,Co++):(o=u,0===Lo&&Do(an)),o!==u&&(i=oi())!==u?e=n=[n,o,i]:(Co=e,e=u)):(Co=e,e=u),e!==u&&(Ao=t,e=bo(e)),e}())===u&&(t=oi()),t}function oi(){var t,e,n;if(t=Co,e=[],n=r.charAt(Co),ee.test(n)?Co++:(n=u,0===Lo&&Do(on)),n!==u)for(;n!==u;)e.push(n),n=r.charAt(Co),ee.test(n)?Co++:(n=u,0===Lo&&Do(on));else e=u;return e!==u&&(Ao=t,e=go(e)),e}function ii(){var t,e;return Lo++,t=Co,(e=function(){var t,e,n,o;return t=Co,34===r.charCodeAt(Co)?(e=Ht,Co++):(e=u,0===Lo&&Do(Gr)),e!==u&&(n=ai())!==u?(34===r.charCodeAt(Co)?(o=Ht,Co++):(o=u,0===Lo&&Do(Gr)),o!==u?(Ao=t,t=vo(n)):(Co=t,t=u)):(Co=t,t=u),t}())!==u&&(Ao=t,e=mo(e)),(t=e)===u&&(t=Co,(e=ai())!==u&&(Ao=t,e=yo(e)),t=e),Lo--,t===u&&(e=u,0===Lo&&Do(cn)),t}function ai(){var t;return(t=r.substr(Co,4)).toLowerCase()===$t?Co+=4:(t=u,0===Lo&&Do(un)),t===u&&((t=r.substr(Co,5)).toLowerCase()===qt?Co+=5:(t=u,0===Lo&&Do(sn)),t===u&&((t=r.substr(Co,2)).toLowerCase()===Ut?Co+=2:(t=u,0===Lo&&Do(ln)),t===u&&((t=r.substr(Co,3)).toLowerCase()===Kt?Co+=3:(t=u,0===Lo&&Do(fn)),t===u&&(t=r.charAt(Co),re.test(t)?Co++:(t=u,0===Lo&&Do(dn)))))),t}function ci(){var t,e;return t=Co,(e=ni())!==u&&(Ao=t,e=wo(e)),(t=e)===u&&(t=Co,(e=r.substr(Co,4)).toLowerCase()===Zt?Co+=4:(e=u,0===Lo&&Do(pn)),e!==u&&(Ao=t,e=_o(e)),t=e),t}if(o=f(),n.peg$library)return{peg$result:o,peg$currPos:Co,peg$FAILED:u,peg$maxFailExpected:ko,peg$maxFailPos:So};if(o!==u&&Co===r.length)return o;throw o!==u&&Co{"use strict";t.exports=JSON.parse('{"baseTemplate":"svg.<%=id%>{font-family:Helvetica,sans-serif;font-size:<%=fontSize%>px;font-weight:normal;font-style:normal;text-decoration:none;background-color:white;stroke:black;stroke-width:<%=lineWidth%>}.<%=id%> path, .<%=id%> rect{fill:none}.<%=id%> .label-text-background{fill:white;stroke:white;stroke-width:0}.<%=id%> .bglayer{fill:white;stroke:white;stroke-width:0}.<%=id%> line{}.<%=id%> .return, .<%=id%> .comment{stroke-dasharray:5,3}.<%=id%> .inline_expression_divider{stroke-dasharray:10,5}.<%=id%> text{color:inherit;stroke:none;text-anchor:middle}.<%=id%> text.anchor-start{text-anchor:start}.<%=id%> .arrow-marker{overflow:visible}.<%=id%> .arrow-style{stroke-width:1}.<%=id%> .arcrow, .<%=id%> .arcrowomit, .<%=id%> .emphasised{stroke-linecap:butt}.<%=id%> .arcrowomit{stroke-dasharray:2,2}.<%=id%> .box, .<%=id%> .entity{fill:white;stroke-linejoin:round}.<%=id%> .inherit{stroke:inherit;color:inherit}.<%=id%> .inherit-fill{fill:inherit}.<%=id%> .watermark{font-size:48pt;font-weight:bold;opacity:0.14}","namedStyles":[{"name":"basic","description":"Basic","experimental":false,"deprecated":false,"renderMagic":"straight","cssBefore":"","cssAfter":".<%=id%> text.entity-text{text-decoration:underline;}"},{"name":"lazy","description":"Lazy","experimental":false,"deprecated":false,"renderMagic":"straight","cssBefore":"","cssAfter":".<%=id%> text.entity-text{font-weight:bold;}.<%=id%> text.return-text{font-style:italic}.<%=id%> path.note{fill:#FFFFCC}.<%=id%> rect.label-text-background{opacity:0.9}.<%=id%> line.comment,.<%=id%> rect.inline_expression,.<%=id%> .inline_expression_divider,.<%=id%> .inline_expression_label{stroke:grey}"},{"name":"classic","description":"Classic","experimental":false,"deprecated":false,"renderMagic":"straight","cssBefore":"","cssAfter":".<%=id%> text.entity-text{text-decoration:none}.<%=id%> .entity{stroke:none;}.<%=id%> line,.<%=id%> rect,.<%=id%> path{stroke-width:1px}.<%=id%> .arrow-style{stroke-width:2;}.<%=id%> .inline_expression,.<%=id%> .inline_expression_divider,.<%=id%> .inline_expression_label{stroke-width: 1px}"},{"name":"fountainpen","description":"Fountain pen","experimental":true,"deprecated":false,"renderMagic":"wobbly","cssBefore":"@import \'https://fonts.googleapis.com/css?family=Gochi+Hand\';","cssAfter":"svg.<%=id%>{font-family:\'Gochi Hand\', cursive;font-size:14px;stroke-opacity:0.4;stroke-linecap:round;background-color:transparent}.<%=id%> text{fill:rgba(0,0,128,0.7)}.<%=id%> marker polygon{fill:rgba(0,0,255,0.4);stroke-linejoin:round}.<%=id%> line, .<%=id%> path, .<%=id%> rect, .<%=id%> polygon{stroke:blue !important}.<%=id%> text.entity-text{font-weight:bold;text-decoration:none}.<%=id%> text.return-text{font-style:italic}.<%=id%> path.note{fill:#FFFFCC;}.<%=id%> .label-text-background{opacity:0}"},{"name":"cygne","description":"Cygne (best with msgenny)","experimental":true,"deprecated":true,"renderMagic":"straight","cssBefore":"","cssAfter":".<%=id%> line, .<%=id%> path{stroke:#00A1DE}.<%=id%> text{fill:#005B82}.<%=id%> .entity,.<%=id%> .box{fill:#00A1DE;stroke:#00A1DE}.<%=id%> text.box-text{fill:white}.<%=id%> text.entity-text{font-weight:bold;fill:white;text-decoration:none}.<%=id%> text.return-text{font-style:italic}.<%=id%> path.note{fill:#E77B2F;stroke:white}.<%=id%> .comment,.<%=id%> .inline_expression,.<%=id%> .inline_expression_divider,.<%=id%> .inline_expression_label{fill:white}"},{"name":"pegasse","description":"Pégase (best with msgenny)","experimental":false,"deprecated":true,"renderMagic":"straight","cssBefore":"","cssAfter":".<%=id%> line, .<%=id%> path{stroke:rgba(0, 43, 84, 1)}.<%=id%> text{fill:rgba(0, 43, 84, 1)}.<%=id%> .entity,.<%=id%> .box{fill:rgba(0, 43, 84, 1);stroke:rgba(0, 43, 84, 1)}.<%=id%> text.box-text{fill:white}.<%=id%> text.entity-text{font-weight:bold;fill:white;text-decoration:none}.<%=id%> text.return-text{font-style:italic}.<%=id%> path.note{fill:rgba(255, 50, 0, 1);stroke:white}.<%=id%> .comment,.<%=id%> .inline_expression,.<%=id%> .inline_expression_divider,.<%=id%> .inline_expression_label{fill:white}"},{"name":"grayscaled","description":"Grayscaled (not in IE or Safari)","experimental":true,"deprecated":false,"renderMagic":"straight","cssBefore":"","cssAfter":"svg.<%=id%>{filter:grayscale(1);-webkit-filter:grayscale(1);}"},{"name":"inverted","description":"Inverted (not in IE or Safari)","experimental":true,"deprecated":false,"renderMagic":"straight","cssBefore":"","cssAfter":"svg.<%=id%>{filter:invert(1);-webkit-filter:invert(1);}"},{"name":"noentityboxes","description":"No entity boxes","experimental":false,"deprecated":false,"renderMagic":"straight","cssBefore":"","cssAfter":".<%=id%> .entity{fill:none;stroke:none;}.<%=id%> text.entity-text{text-decoration:underline;}"}]}')},8163:t=>{"use strict";t.exports={version:"7.0.0"}}},e={};function r(n){var o=e[n];if(void 0!==o)return o.exports;var i=e[n]={exports:{}};return t[n].call(i.exports,i,i.exports,r),i.exports}return r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),r(8156)})())); \ No newline at end of file diff --git a/dist/cjs/parse/mscgenparser.js b/dist/cjs/parse/mscgenparser.js index 62833f78..3c6d867d 100644 --- a/dist/cjs/parse/mscgenparser.js +++ b/dist/cjs/parse/mscgenparser.js @@ -3,11 +3,11 @@ // https://peggyjs.org/ (function(root, factory) { if (typeof define === "function" && define.amd) { - define(["lodash/assign", "./parserHelpers"], factory); + define(["./parserHelpers"], factory); } else if (typeof module === "object" && module.exports) { - module.exports = factory(require("lodash/assign"), require("./parserHelpers")); + module.exports = factory(require("./parserHelpers")); } -})(this, function(_assign, parserHelpers) { +})(this, function(parserHelpers) { "use strict"; function peg$subclass(child, parent) { @@ -358,10 +358,10 @@ function peg$parse(input, options) { declarations.entities = declarations.entities || []; parserHelpers.checkForUndeclaredEntities(declarations.entities, declarations.arcs); - declarations = _assign ({meta: getMetaInfo()}, declarations); + declarations = {meta: getMetaInfo(), ...declarations}; if (pre.length > 0) { - declarations = _assign({precomment: pre}, declarations); + declarations = {precomment: pre, ...declarations}; } return declarations; }; @@ -382,7 +382,9 @@ function peg$parse(input, options) { var peg$f3 = function(o) {return o}; var peg$f4 = function(options) { // make the option array into an options object - return options[0].concat(options[1]).reduce(_assign, {}) + return options[0] + .concat(options[1]) + .reduce((pAll, pCurrent) => Object.assign(pAll, pCurrent), {}); }; var peg$f5 = function(name, value) { return parserHelpers.nameValue2Option(name, value); @@ -397,14 +399,14 @@ function peg$parse(input, options) { }; var peg$f10 = function(name, a) {return a}; var peg$f11 = function(name, attrList) { - return _assign ({name:name}, attrList); + return {name:name, ...attrList}; }; var peg$f12 = function(name, a) {return a}; var peg$f13 = function(name, attrList) { if (parserHelpers.isMscGenKeyword(name)){ error("Keywords aren't allowed as entity names (embed them in quotes if you need them)"); } - return _assign ({name:name}, attrList); + return {name:name, ...attrList}; }; var peg$f14 = function(a) {return a}; var peg$f15 = function(a) {return a}; @@ -417,7 +419,7 @@ function peg$parse(input, options) { var peg$f20 = function(a) {return a}; var peg$f21 = function(a, al) {return al}; var peg$f22 = function(a, al) { - return _assign (a, al); + return {...a, ...al}; }; var peg$f23 = function(kind) {return {kind:kind}}; var peg$f24 = function(kind) {return {kind:kind}}; @@ -430,7 +432,9 @@ function peg$parse(input, options) { var peg$f31 = function(a) {return a}; var peg$f32 = function(attributes) { // transform the array of attributes into an object - return attributes[0].concat(attributes[1]).reduce(_assign, {}); + return attributes[0] + .concat(attributes[1]) + .reduce((pAll, pCurrent) => Object.assign(pAll, pCurrent), {}); }; var peg$f33 = function(name, value) { var lAttribute = {}; diff --git a/dist/cjs/parse/msgennyparser.js b/dist/cjs/parse/msgennyparser.js index d43ccba5..cb1d9c5c 100644 --- a/dist/cjs/parse/msgennyparser.js +++ b/dist/cjs/parse/msgennyparser.js @@ -3,11 +3,11 @@ // https://peggyjs.org/ (function(root, factory) { if (typeof define === "function" && define.amd) { - define(["lodash/assign", "./parserHelpers"], factory); + define(["./parserHelpers"], factory); } else if (typeof module === "object" && module.exports) { - module.exports = factory(require("lodash/assign"), require("./parserHelpers")); + module.exports = factory(require("./parserHelpers")); } -})(this, function(_assign, parserHelpers) { +})(this, function(parserHelpers) { "use strict"; function peg$subclass(child, parent) { @@ -356,13 +356,13 @@ function peg$parse(input, options) { var peg$f0 = function(pre, declarations) { declarations.entities = extractUndeclaredEntities(declarations.entities || [], declarations.arcs); - declarations = _assign ( - {meta: parserHelpers.getMetaInfo(declarations.options, declarations.arcs)}, - declarations - ); + declarations = { + meta: parserHelpers.getMetaInfo(declarations.options, declarations.arcs), + ...declarations + }; if (pre.length > 0) { - declarations = _assign({precomment: pre}, declarations); + declarations = {precomment: pre, ...declarations}; } return declarations; }; @@ -383,7 +383,9 @@ function peg$parse(input, options) { var peg$f3 = function(o) {return o}; var peg$f4 = function(options) { // make the option array into an options object - return options[0].concat(options[1]).reduce(_assign, {}); + return options[0] + .concat(options[1]) + .reduce((pAll, pCurrent) => Object.assign(pAll, pCurrent), {}); }; var peg$f5 = function(name, value) { return parserHelpers.nameValue2Option(name, value); @@ -3041,7 +3043,7 @@ function peg$parse(input, options) { // if the arc kind is arcspanning recurse into its arcs if (pArc.arcs){ pEntityNamesToIgnore[pArc.to] = true; - _assign (pEntities, extractUndeclaredEntities (pEntities, pArc.arcs, pEntityNamesToIgnore)); + Object.assign (pEntities, extractUndeclaredEntities (pEntities, pArc.arcs, pEntityNamesToIgnore)); delete pEntityNamesToIgnore[pArc.to]; } if (entityNeedsExtracting (pEntities, pArc.to, pEntityNamesToIgnore)) { diff --git a/dist/cjs/parse/xuparser.js b/dist/cjs/parse/xuparser.js index fde404a8..283704c5 100644 --- a/dist/cjs/parse/xuparser.js +++ b/dist/cjs/parse/xuparser.js @@ -3,11 +3,11 @@ // https://peggyjs.org/ (function(root, factory) { if (typeof define === "function" && define.amd) { - define(["lodash/assign", "./parserHelpers"], factory); + define(["./parserHelpers"], factory); } else if (typeof module === "object" && module.exports) { - module.exports = factory(require("lodash/assign"), require("./parserHelpers")); + module.exports = factory(require("./parserHelpers")); } -})(this, function(_assign, parserHelpers) { +})(this, function(parserHelpers) { "use strict"; function peg$subclass(child, parent) { @@ -407,10 +407,10 @@ function peg$parse(input, options) { declarations.entities = declarations.entities || []; parserHelpers.checkForUndeclaredEntities(declarations.entities, declarations.arcs); - declarations = _assign ({meta: parserHelpers.getMetaInfo(declarations.options, declarations.arcs)}, declarations); + declarations = {meta: parserHelpers.getMetaInfo(declarations.options, declarations.arcs), ...declarations}; if (pre.length > 0) { - declarations = _assign({precomment: pre}, declarations); + declarations = {precomment: pre, ...declarations}; } return declarations; @@ -432,7 +432,9 @@ function peg$parse(input, options) { var peg$f3 = function(o) {return o}; var peg$f4 = function(options) { // make the option array into an options object - return options[0].concat(options[1]).reduce(_assign, {}) + return options[0] + .concat(options[1]) + .reduce((pAll, pCurrent) => Object.assign(pAll, pCurrent), {}); }; var peg$f5 = function(name, value) { return parserHelpers.nameValue2Option(name, value); @@ -459,14 +461,14 @@ function peg$parse(input, options) { }; var peg$f14 = function(name, a) {return a}; var peg$f15 = function(name, attrList) { - return _assign ({name:name}, attrList); + return {name:name, ...attrList}; }; var peg$f16 = function(name, a) {return a}; var peg$f17 = function(name, attrList) { if (parserHelpers.isMscGenKeyword(name)){ error("MscGen keywords aren't allowed as entity names (embed them in quotes if you need them)"); } - return _assign ({name:name}, attrList); + return {name:name, ...attrList}; }; var peg$f18 = function(a) {return a}; var peg$f19 = function(a) {return a}; @@ -479,7 +481,7 @@ function peg$parse(input, options) { var peg$f24 = function(a) {return a}; var peg$f25 = function(a, al) {return al}; var peg$f26 = function(a, al) { - return _assign (a, al); + return {...a, ...al}; }; var peg$f27 = function(kind) {return {kind:kind}}; var peg$f28 = function(kind) {return {kind:kind}}; @@ -489,15 +491,7 @@ function peg$parse(input, options) { var peg$f32 = function(from, kind) {return {kind:kind, from: from, to:"*"}}; var peg$f33 = function(from, kind, to, al) {return al}; var peg$f34 = function(from, kind, to, al, arclist) { - return _assign ( - { - kind : kind, - from : from, - to : to, - arcs : arclist - }, - al - ); + return {kind: kind, from: from, to: to, arcs: arclist, ...al}; }; var peg$f35 = function(kind) {return kind.toLowerCase()}; var peg$f36 = function(kind) { @@ -507,7 +501,9 @@ function peg$parse(input, options) { var peg$f38 = function(a) {return a}; var peg$f39 = function(attributes) { // transform the array of attributes into an object - return attributes[0].concat(attributes[1]).reduce(_assign, {}); + return attributes[0] + .concat(attributes[1]) + .reduce((pAll, pCurrent) => Object.assign(pAll, pCurrent), {}); }; var peg$f40 = function(name) { return { activation: name.toLowerCase() === "activate"} diff --git a/dist/es2015/parse/mscgenparser.js b/dist/es2015/parse/mscgenparser.js index 62833f78..3c6d867d 100644 --- a/dist/es2015/parse/mscgenparser.js +++ b/dist/es2015/parse/mscgenparser.js @@ -3,11 +3,11 @@ // https://peggyjs.org/ (function(root, factory) { if (typeof define === "function" && define.amd) { - define(["lodash/assign", "./parserHelpers"], factory); + define(["./parserHelpers"], factory); } else if (typeof module === "object" && module.exports) { - module.exports = factory(require("lodash/assign"), require("./parserHelpers")); + module.exports = factory(require("./parserHelpers")); } -})(this, function(_assign, parserHelpers) { +})(this, function(parserHelpers) { "use strict"; function peg$subclass(child, parent) { @@ -358,10 +358,10 @@ function peg$parse(input, options) { declarations.entities = declarations.entities || []; parserHelpers.checkForUndeclaredEntities(declarations.entities, declarations.arcs); - declarations = _assign ({meta: getMetaInfo()}, declarations); + declarations = {meta: getMetaInfo(), ...declarations}; if (pre.length > 0) { - declarations = _assign({precomment: pre}, declarations); + declarations = {precomment: pre, ...declarations}; } return declarations; }; @@ -382,7 +382,9 @@ function peg$parse(input, options) { var peg$f3 = function(o) {return o}; var peg$f4 = function(options) { // make the option array into an options object - return options[0].concat(options[1]).reduce(_assign, {}) + return options[0] + .concat(options[1]) + .reduce((pAll, pCurrent) => Object.assign(pAll, pCurrent), {}); }; var peg$f5 = function(name, value) { return parserHelpers.nameValue2Option(name, value); @@ -397,14 +399,14 @@ function peg$parse(input, options) { }; var peg$f10 = function(name, a) {return a}; var peg$f11 = function(name, attrList) { - return _assign ({name:name}, attrList); + return {name:name, ...attrList}; }; var peg$f12 = function(name, a) {return a}; var peg$f13 = function(name, attrList) { if (parserHelpers.isMscGenKeyword(name)){ error("Keywords aren't allowed as entity names (embed them in quotes if you need them)"); } - return _assign ({name:name}, attrList); + return {name:name, ...attrList}; }; var peg$f14 = function(a) {return a}; var peg$f15 = function(a) {return a}; @@ -417,7 +419,7 @@ function peg$parse(input, options) { var peg$f20 = function(a) {return a}; var peg$f21 = function(a, al) {return al}; var peg$f22 = function(a, al) { - return _assign (a, al); + return {...a, ...al}; }; var peg$f23 = function(kind) {return {kind:kind}}; var peg$f24 = function(kind) {return {kind:kind}}; @@ -430,7 +432,9 @@ function peg$parse(input, options) { var peg$f31 = function(a) {return a}; var peg$f32 = function(attributes) { // transform the array of attributes into an object - return attributes[0].concat(attributes[1]).reduce(_assign, {}); + return attributes[0] + .concat(attributes[1]) + .reduce((pAll, pCurrent) => Object.assign(pAll, pCurrent), {}); }; var peg$f33 = function(name, value) { var lAttribute = {}; diff --git a/dist/es2015/parse/msgennyparser.js b/dist/es2015/parse/msgennyparser.js index d43ccba5..cb1d9c5c 100644 --- a/dist/es2015/parse/msgennyparser.js +++ b/dist/es2015/parse/msgennyparser.js @@ -3,11 +3,11 @@ // https://peggyjs.org/ (function(root, factory) { if (typeof define === "function" && define.amd) { - define(["lodash/assign", "./parserHelpers"], factory); + define(["./parserHelpers"], factory); } else if (typeof module === "object" && module.exports) { - module.exports = factory(require("lodash/assign"), require("./parserHelpers")); + module.exports = factory(require("./parserHelpers")); } -})(this, function(_assign, parserHelpers) { +})(this, function(parserHelpers) { "use strict"; function peg$subclass(child, parent) { @@ -356,13 +356,13 @@ function peg$parse(input, options) { var peg$f0 = function(pre, declarations) { declarations.entities = extractUndeclaredEntities(declarations.entities || [], declarations.arcs); - declarations = _assign ( - {meta: parserHelpers.getMetaInfo(declarations.options, declarations.arcs)}, - declarations - ); + declarations = { + meta: parserHelpers.getMetaInfo(declarations.options, declarations.arcs), + ...declarations + }; if (pre.length > 0) { - declarations = _assign({precomment: pre}, declarations); + declarations = {precomment: pre, ...declarations}; } return declarations; }; @@ -383,7 +383,9 @@ function peg$parse(input, options) { var peg$f3 = function(o) {return o}; var peg$f4 = function(options) { // make the option array into an options object - return options[0].concat(options[1]).reduce(_assign, {}); + return options[0] + .concat(options[1]) + .reduce((pAll, pCurrent) => Object.assign(pAll, pCurrent), {}); }; var peg$f5 = function(name, value) { return parserHelpers.nameValue2Option(name, value); @@ -3041,7 +3043,7 @@ function peg$parse(input, options) { // if the arc kind is arcspanning recurse into its arcs if (pArc.arcs){ pEntityNamesToIgnore[pArc.to] = true; - _assign (pEntities, extractUndeclaredEntities (pEntities, pArc.arcs, pEntityNamesToIgnore)); + Object.assign (pEntities, extractUndeclaredEntities (pEntities, pArc.arcs, pEntityNamesToIgnore)); delete pEntityNamesToIgnore[pArc.to]; } if (entityNeedsExtracting (pEntities, pArc.to, pEntityNamesToIgnore)) { diff --git a/dist/es2015/parse/xuparser.js b/dist/es2015/parse/xuparser.js index fde404a8..283704c5 100644 --- a/dist/es2015/parse/xuparser.js +++ b/dist/es2015/parse/xuparser.js @@ -3,11 +3,11 @@ // https://peggyjs.org/ (function(root, factory) { if (typeof define === "function" && define.amd) { - define(["lodash/assign", "./parserHelpers"], factory); + define(["./parserHelpers"], factory); } else if (typeof module === "object" && module.exports) { - module.exports = factory(require("lodash/assign"), require("./parserHelpers")); + module.exports = factory(require("./parserHelpers")); } -})(this, function(_assign, parserHelpers) { +})(this, function(parserHelpers) { "use strict"; function peg$subclass(child, parent) { @@ -407,10 +407,10 @@ function peg$parse(input, options) { declarations.entities = declarations.entities || []; parserHelpers.checkForUndeclaredEntities(declarations.entities, declarations.arcs); - declarations = _assign ({meta: parserHelpers.getMetaInfo(declarations.options, declarations.arcs)}, declarations); + declarations = {meta: parserHelpers.getMetaInfo(declarations.options, declarations.arcs), ...declarations}; if (pre.length > 0) { - declarations = _assign({precomment: pre}, declarations); + declarations = {precomment: pre, ...declarations}; } return declarations; @@ -432,7 +432,9 @@ function peg$parse(input, options) { var peg$f3 = function(o) {return o}; var peg$f4 = function(options) { // make the option array into an options object - return options[0].concat(options[1]).reduce(_assign, {}) + return options[0] + .concat(options[1]) + .reduce((pAll, pCurrent) => Object.assign(pAll, pCurrent), {}); }; var peg$f5 = function(name, value) { return parserHelpers.nameValue2Option(name, value); @@ -459,14 +461,14 @@ function peg$parse(input, options) { }; var peg$f14 = function(name, a) {return a}; var peg$f15 = function(name, attrList) { - return _assign ({name:name}, attrList); + return {name:name, ...attrList}; }; var peg$f16 = function(name, a) {return a}; var peg$f17 = function(name, attrList) { if (parserHelpers.isMscGenKeyword(name)){ error("MscGen keywords aren't allowed as entity names (embed them in quotes if you need them)"); } - return _assign ({name:name}, attrList); + return {name:name, ...attrList}; }; var peg$f18 = function(a) {return a}; var peg$f19 = function(a) {return a}; @@ -479,7 +481,7 @@ function peg$parse(input, options) { var peg$f24 = function(a) {return a}; var peg$f25 = function(a, al) {return al}; var peg$f26 = function(a, al) { - return _assign (a, al); + return {...a, ...al}; }; var peg$f27 = function(kind) {return {kind:kind}}; var peg$f28 = function(kind) {return {kind:kind}}; @@ -489,15 +491,7 @@ function peg$parse(input, options) { var peg$f32 = function(from, kind) {return {kind:kind, from: from, to:"*"}}; var peg$f33 = function(from, kind, to, al) {return al}; var peg$f34 = function(from, kind, to, al, arclist) { - return _assign ( - { - kind : kind, - from : from, - to : to, - arcs : arclist - }, - al - ); + return {kind: kind, from: from, to: to, arcs: arclist, ...al}; }; var peg$f35 = function(kind) {return kind.toLowerCase()}; var peg$f36 = function(kind) { @@ -507,7 +501,9 @@ function peg$parse(input, options) { var peg$f38 = function(a) {return a}; var peg$f39 = function(attributes) { // transform the array of attributes into an object - return attributes[0].concat(attributes[1]).reduce(_assign, {}); + return attributes[0] + .concat(attributes[1]) + .reduce((pAll, pCurrent) => Object.assign(pAll, pCurrent), {}); }; var peg$f40 = function(name) { return { activation: name.toLowerCase() === "activate"} diff --git a/doc/build.md b/doc/build.md index 124b6b73..6c938280 100644 --- a/doc/build.md +++ b/doc/build.md @@ -12,7 +12,7 @@ either by running a `make depend` or manually in `dependencies.mk` (for things js-makedepend cannot detect like conditional module loading). ## Cleaning -- ```make clean``` removes all generated sources (parser, lodash) +- ```make clean``` removes all generated sources ## Quality checks - ```make test``` or `npm run test` diff --git a/src/parse/mscgenparser.js b/src/parse/mscgenparser.js index 62833f78..3c6d867d 100644 --- a/src/parse/mscgenparser.js +++ b/src/parse/mscgenparser.js @@ -3,11 +3,11 @@ // https://peggyjs.org/ (function(root, factory) { if (typeof define === "function" && define.amd) { - define(["lodash/assign", "./parserHelpers"], factory); + define(["./parserHelpers"], factory); } else if (typeof module === "object" && module.exports) { - module.exports = factory(require("lodash/assign"), require("./parserHelpers")); + module.exports = factory(require("./parserHelpers")); } -})(this, function(_assign, parserHelpers) { +})(this, function(parserHelpers) { "use strict"; function peg$subclass(child, parent) { @@ -358,10 +358,10 @@ function peg$parse(input, options) { declarations.entities = declarations.entities || []; parserHelpers.checkForUndeclaredEntities(declarations.entities, declarations.arcs); - declarations = _assign ({meta: getMetaInfo()}, declarations); + declarations = {meta: getMetaInfo(), ...declarations}; if (pre.length > 0) { - declarations = _assign({precomment: pre}, declarations); + declarations = {precomment: pre, ...declarations}; } return declarations; }; @@ -382,7 +382,9 @@ function peg$parse(input, options) { var peg$f3 = function(o) {return o}; var peg$f4 = function(options) { // make the option array into an options object - return options[0].concat(options[1]).reduce(_assign, {}) + return options[0] + .concat(options[1]) + .reduce((pAll, pCurrent) => Object.assign(pAll, pCurrent), {}); }; var peg$f5 = function(name, value) { return parserHelpers.nameValue2Option(name, value); @@ -397,14 +399,14 @@ function peg$parse(input, options) { }; var peg$f10 = function(name, a) {return a}; var peg$f11 = function(name, attrList) { - return _assign ({name:name}, attrList); + return {name:name, ...attrList}; }; var peg$f12 = function(name, a) {return a}; var peg$f13 = function(name, attrList) { if (parserHelpers.isMscGenKeyword(name)){ error("Keywords aren't allowed as entity names (embed them in quotes if you need them)"); } - return _assign ({name:name}, attrList); + return {name:name, ...attrList}; }; var peg$f14 = function(a) {return a}; var peg$f15 = function(a) {return a}; @@ -417,7 +419,7 @@ function peg$parse(input, options) { var peg$f20 = function(a) {return a}; var peg$f21 = function(a, al) {return al}; var peg$f22 = function(a, al) { - return _assign (a, al); + return {...a, ...al}; }; var peg$f23 = function(kind) {return {kind:kind}}; var peg$f24 = function(kind) {return {kind:kind}}; @@ -430,7 +432,9 @@ function peg$parse(input, options) { var peg$f31 = function(a) {return a}; var peg$f32 = function(attributes) { // transform the array of attributes into an object - return attributes[0].concat(attributes[1]).reduce(_assign, {}); + return attributes[0] + .concat(attributes[1]) + .reduce((pAll, pCurrent) => Object.assign(pAll, pCurrent), {}); }; var peg$f33 = function(name, value) { var lAttribute = {}; diff --git a/src/parse/msgennyparser.js b/src/parse/msgennyparser.js index d43ccba5..cb1d9c5c 100644 --- a/src/parse/msgennyparser.js +++ b/src/parse/msgennyparser.js @@ -3,11 +3,11 @@ // https://peggyjs.org/ (function(root, factory) { if (typeof define === "function" && define.amd) { - define(["lodash/assign", "./parserHelpers"], factory); + define(["./parserHelpers"], factory); } else if (typeof module === "object" && module.exports) { - module.exports = factory(require("lodash/assign"), require("./parserHelpers")); + module.exports = factory(require("./parserHelpers")); } -})(this, function(_assign, parserHelpers) { +})(this, function(parserHelpers) { "use strict"; function peg$subclass(child, parent) { @@ -356,13 +356,13 @@ function peg$parse(input, options) { var peg$f0 = function(pre, declarations) { declarations.entities = extractUndeclaredEntities(declarations.entities || [], declarations.arcs); - declarations = _assign ( - {meta: parserHelpers.getMetaInfo(declarations.options, declarations.arcs)}, - declarations - ); + declarations = { + meta: parserHelpers.getMetaInfo(declarations.options, declarations.arcs), + ...declarations + }; if (pre.length > 0) { - declarations = _assign({precomment: pre}, declarations); + declarations = {precomment: pre, ...declarations}; } return declarations; }; @@ -383,7 +383,9 @@ function peg$parse(input, options) { var peg$f3 = function(o) {return o}; var peg$f4 = function(options) { // make the option array into an options object - return options[0].concat(options[1]).reduce(_assign, {}); + return options[0] + .concat(options[1]) + .reduce((pAll, pCurrent) => Object.assign(pAll, pCurrent), {}); }; var peg$f5 = function(name, value) { return parserHelpers.nameValue2Option(name, value); @@ -3041,7 +3043,7 @@ function peg$parse(input, options) { // if the arc kind is arcspanning recurse into its arcs if (pArc.arcs){ pEntityNamesToIgnore[pArc.to] = true; - _assign (pEntities, extractUndeclaredEntities (pEntities, pArc.arcs, pEntityNamesToIgnore)); + Object.assign (pEntities, extractUndeclaredEntities (pEntities, pArc.arcs, pEntityNamesToIgnore)); delete pEntityNamesToIgnore[pArc.to]; } if (entityNeedsExtracting (pEntities, pArc.to, pEntityNamesToIgnore)) { diff --git a/src/parse/peg/mscgenparser.peggy b/src/parse/peg/mscgenparser.peggy index 1e4a4f68..a7c4356d 100644 --- a/src/parse/peg/mscgenparser.peggy +++ b/src/parse/peg/mscgenparser.peggy @@ -37,10 +37,10 @@ program declarations.entities = declarations.entities || []; parserHelpers.checkForUndeclaredEntities(declarations.entities, declarations.arcs); - declarations = _assign ({meta: getMetaInfo()}, declarations); + declarations = {meta: getMetaInfo(), ...declarations}; if (pre.length > 0) { - declarations = _assign({precomment: pre}, declarations); + declarations = {precomment: pre, ...declarations}; } return declarations; } @@ -71,7 +71,9 @@ optionlist (o:option ";" {return o})) { // make the option array into an options object - return options[0].concat(options[1]).reduce(_assign, {}) + return options[0] + .concat(options[1]) + .reduce((pAll, pCurrent) => Object.assign(pAll, pCurrent), {}); } option "option" @@ -93,14 +95,14 @@ entitylist entity "entity" = _ name:string _ attrList:("[" a:attributelist "]" {return a})? _ { - return _assign ({name:name}, attrList); + return {name:name, ...attrList}; } / _ name:quotelessidentifier _ attrList:("[" a:attributelist "]" {return a})? _ { if (parserHelpers.isMscGenKeyword(name)){ error("Keywords aren't allowed as entity names (embed them in quotes if you need them)"); } - return _assign ({name:name}, attrList); + return {name:name, ...attrList}; } @@ -119,7 +121,7 @@ arc / (a:commentarc {return a})) al:("[" al:attributelist "]" {return al})? { - return _assign (a, al); + return {...a, ...al}; } singlearc @@ -185,7 +187,9 @@ attributelist = attributes:((a:attribute "," {return a})* (a:attribute {return a})) { // transform the array of attributes into an object - return attributes[0].concat(attributes[1]).reduce(_assign, {}); + return attributes[0] + .concat(attributes[1]) + .reduce((pAll, pCurrent) => Object.assign(pAll, pCurrent), {}); } attribute diff --git a/src/parse/peg/msgennyparser.peggy b/src/parse/peg/msgennyparser.peggy index 658c25c2..c24d2b59 100644 --- a/src/parse/peg/msgennyparser.peggy +++ b/src/parse/peg/msgennyparser.peggy @@ -47,7 +47,7 @@ // if the arc kind is arcspanning recurse into its arcs if (pArc.arcs){ pEntityNamesToIgnore[pArc.to] = true; - _assign (pEntities, extractUndeclaredEntities (pEntities, pArc.arcs, pEntityNamesToIgnore)); + Object.assign (pEntities, extractUndeclaredEntities (pEntities, pArc.arcs, pEntityNamesToIgnore)); delete pEntityNamesToIgnore[pArc.to]; } if (entityNeedsExtracting (pEntities, pArc.to, pEntityNamesToIgnore)) { @@ -63,13 +63,13 @@ program = pre:_ declarations:declarationlist _ { declarations.entities = extractUndeclaredEntities(declarations.entities || [], declarations.arcs); - declarations = _assign ( - {meta: parserHelpers.getMetaInfo(declarations.options, declarations.arcs)}, - declarations - ); + declarations = { + meta: parserHelpers.getMetaInfo(declarations.options, declarations.arcs), + ...declarations + }; if (pre.length > 0) { - declarations = _assign({precomment: pre}, declarations); + declarations = {precomment: pre, ...declarations}; } return declarations; } @@ -97,7 +97,9 @@ optionlist (o:option ";" {return o})) { // make the option array into an options object - return options[0].concat(options[1]).reduce(_assign, {}); + return options[0] + .concat(options[1]) + .reduce((pAll, pCurrent) => Object.assign(pAll, pCurrent), {}); } option diff --git a/src/parse/peg/xuparser.peggy b/src/parse/peg/xuparser.peggy index 16bea744..bfc0f268 100644 --- a/src/parse/peg/xuparser.peggy +++ b/src/parse/peg/xuparser.peggy @@ -20,10 +20,10 @@ program declarations.entities = declarations.entities || []; parserHelpers.checkForUndeclaredEntities(declarations.entities, declarations.arcs); - declarations = _assign ({meta: parserHelpers.getMetaInfo(declarations.options, declarations.arcs)}, declarations); + declarations = {meta: parserHelpers.getMetaInfo(declarations.options, declarations.arcs), ...declarations}; if (pre.length > 0) { - declarations = _assign({precomment: pre}, declarations); + declarations = {precomment: pre, ...declarations}; } return declarations; @@ -56,7 +56,9 @@ optionlist (o:option ";" {return o})) { // make the option array into an options object - return options[0].concat(options[1]).reduce(_assign, {}) + return options[0] + .concat(options[1]) + .reduce((pAll, pCurrent) => Object.assign(pAll, pCurrent), {}); } option "option" @@ -94,14 +96,14 @@ entitylist entity "entity" = _ name:string _ attrList:("[" a:attributelist "]" {return a})? _ { - return _assign ({name:name}, attrList); + return {name:name, ...attrList}; } / _ name:quotelessidentifier _ attrList:("[" a:attributelist "]" {return a})? _ { if (parserHelpers.isMscGenKeyword(name)){ error("MscGen keywords aren't allowed as entity names (embed them in quotes if you need them)"); } - return _assign ({name:name}, attrList); + return {name:name, ...attrList}; } arclist @@ -122,7 +124,7 @@ regulararc / (a:commentarc {return a})) al:("[" al:attributelist "]" {return al})? { - return _assign (a, al); + return {...a, ...al}; } singlearc @@ -144,15 +146,7 @@ dualarc spanarc = (_ from:identifier _ kind:spanarctoken _ to:identifier _ al:("[" al:attributelist "]" {return al})? _ "{" _ arclist:arclist? _ "}" _ { - return _assign ( - { - kind : kind, - from : from, - to : to, - arcs : arclist - }, - al - ); + return {kind: kind, from: from, to: to, arcs: arclist, ...al}; } ) @@ -225,7 +219,9 @@ attributelist = attributes:((a:attribute "," {return a})* (a:attribute {return a})) { // transform the array of attributes into an object - return attributes[0].concat(attributes[1]).reduce(_assign, {}); + return attributes[0] + .concat(attributes[1]) + .reduce((pAll, pCurrent) => Object.assign(pAll, pCurrent), {}); } attribute diff --git a/src/parse/xuparser.js b/src/parse/xuparser.js index fde404a8..283704c5 100644 --- a/src/parse/xuparser.js +++ b/src/parse/xuparser.js @@ -3,11 +3,11 @@ // https://peggyjs.org/ (function(root, factory) { if (typeof define === "function" && define.amd) { - define(["lodash/assign", "./parserHelpers"], factory); + define(["./parserHelpers"], factory); } else if (typeof module === "object" && module.exports) { - module.exports = factory(require("lodash/assign"), require("./parserHelpers")); + module.exports = factory(require("./parserHelpers")); } -})(this, function(_assign, parserHelpers) { +})(this, function(parserHelpers) { "use strict"; function peg$subclass(child, parent) { @@ -407,10 +407,10 @@ function peg$parse(input, options) { declarations.entities = declarations.entities || []; parserHelpers.checkForUndeclaredEntities(declarations.entities, declarations.arcs); - declarations = _assign ({meta: parserHelpers.getMetaInfo(declarations.options, declarations.arcs)}, declarations); + declarations = {meta: parserHelpers.getMetaInfo(declarations.options, declarations.arcs), ...declarations}; if (pre.length > 0) { - declarations = _assign({precomment: pre}, declarations); + declarations = {precomment: pre, ...declarations}; } return declarations; @@ -432,7 +432,9 @@ function peg$parse(input, options) { var peg$f3 = function(o) {return o}; var peg$f4 = function(options) { // make the option array into an options object - return options[0].concat(options[1]).reduce(_assign, {}) + return options[0] + .concat(options[1]) + .reduce((pAll, pCurrent) => Object.assign(pAll, pCurrent), {}); }; var peg$f5 = function(name, value) { return parserHelpers.nameValue2Option(name, value); @@ -459,14 +461,14 @@ function peg$parse(input, options) { }; var peg$f14 = function(name, a) {return a}; var peg$f15 = function(name, attrList) { - return _assign ({name:name}, attrList); + return {name:name, ...attrList}; }; var peg$f16 = function(name, a) {return a}; var peg$f17 = function(name, attrList) { if (parserHelpers.isMscGenKeyword(name)){ error("MscGen keywords aren't allowed as entity names (embed them in quotes if you need them)"); } - return _assign ({name:name}, attrList); + return {name:name, ...attrList}; }; var peg$f18 = function(a) {return a}; var peg$f19 = function(a) {return a}; @@ -479,7 +481,7 @@ function peg$parse(input, options) { var peg$f24 = function(a) {return a}; var peg$f25 = function(a, al) {return al}; var peg$f26 = function(a, al) { - return _assign (a, al); + return {...a, ...al}; }; var peg$f27 = function(kind) {return {kind:kind}}; var peg$f28 = function(kind) {return {kind:kind}}; @@ -489,15 +491,7 @@ function peg$parse(input, options) { var peg$f32 = function(from, kind) {return {kind:kind, from: from, to:"*"}}; var peg$f33 = function(from, kind, to, al) {return al}; var peg$f34 = function(from, kind, to, al, arclist) { - return _assign ( - { - kind : kind, - from : from, - to : to, - arcs : arclist - }, - al - ); + return {kind: kind, from: from, to: to, arcs: arclist, ...al}; }; var peg$f35 = function(kind) {return kind.toLowerCase()}; var peg$f36 = function(kind) { @@ -507,7 +501,9 @@ function peg$parse(input, options) { var peg$f38 = function(a) {return a}; var peg$f39 = function(attributes) { // transform the array of attributes into an object - return attributes[0].concat(attributes[1]).reduce(_assign, {}); + return attributes[0] + .concat(attributes[1]) + .reduce((pAll, pCurrent) => Object.assign(pAll, pCurrent), {}); }; var peg$f40 = function(name) { return { activation: name.toLowerCase() === "activate"}