jssm 5.142.0 → 5.142.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/cdn/viz.js CHANGED
@@ -453,11 +453,11 @@ function peg$parse(input, options) {
453
453
  return { config_kind: "action", config_items: action_items || [] };
454
454
  }, peg$c1359 = function (key, value) { return { key, value }; }, peg$c1360 = peg$otherExpectation("graph default edge color"), peg$c1361 = function (value) { return { key: 'graph_default_edge_color', value }; }, peg$c1362 = "transition", peg$c1363 = peg$literalExpectation("transition", false), peg$c1364 = function (transition_items) {
455
455
  return { config_kind: "transition", config_items: transition_items || [] };
456
- }, peg$c1365 = "graph_layout", peg$c1366 = peg$literalExpectation("graph_layout", false), peg$c1367 = function (value) { return { key: "graph_layout", value: value }; }, peg$c1368 = "start_states", peg$c1369 = peg$literalExpectation("start_states", false), peg$c1370 = function (value) { return { key: "start_states", value: value }; }, peg$c1371 = "end_states", peg$c1372 = peg$literalExpectation("end_states", false), peg$c1373 = function (value) { return { key: "end_states", value: value }; }, peg$c1374 = "graph_bg_color", peg$c1375 = peg$literalExpectation("graph_bg_color", false), peg$c1376 = function (value) { return { key: "graph_bg_color", value: value }; }, peg$c1377 = "allows_override", peg$c1378 = peg$literalExpectation("allows_override", false), peg$c1379 = function (value) { return { key: "allows_override", value: value }; }, peg$c1380 = function () { return true; }, peg$c1381 = function () { return false; }, peg$c1382 = peg$otherExpectation("configuration"), peg$c1383 = "MIT", peg$c1384 = peg$literalExpectation("MIT", false), peg$c1385 = "BSD 2-clause", peg$c1386 = peg$literalExpectation("BSD 2-clause", false), peg$c1387 = "BSD 3-clause", peg$c1388 = peg$literalExpectation("BSD 3-clause", false), peg$c1389 = "Apache 2.0", peg$c1390 = peg$literalExpectation("Apache 2.0", false), peg$c1391 = "Mozilla 2.0", peg$c1392 = peg$literalExpectation("Mozilla 2.0", false), peg$c1393 = "Public domain", peg$c1394 = peg$literalExpectation("Public domain", false), peg$c1395 = "GPL v2", peg$c1396 = peg$literalExpectation("GPL v2", false), peg$c1397 = "GPL v3", peg$c1398 = peg$literalExpectation("GPL v3", false), peg$c1399 = "LGPL v2.1", peg$c1400 = peg$literalExpectation("LGPL v2.1", false), peg$c1401 = "LGPL v3.0", peg$c1402 = peg$literalExpectation("LGPL v3.0", false), peg$c1403 = "Unknown", peg$c1404 = peg$literalExpectation("Unknown", false), peg$c1405 = peg$otherExpectation("direction"), peg$c1406 = "up", peg$c1407 = peg$literalExpectation("up", false), peg$c1408 = "right", peg$c1409 = peg$literalExpectation("right", false), peg$c1410 = "down", peg$c1411 = peg$literalExpectation("down", false), peg$c1412 = "left", peg$c1413 = peg$literalExpectation("left", false), peg$c1414 = peg$otherExpectation("hook definition (open/closed)"), peg$c1415 = "open", peg$c1416 = peg$literalExpectation("open", false), peg$c1417 = "closed", peg$c1418 = peg$literalExpectation("closed", false), peg$c1419 = "machine_author", peg$c1420 = peg$literalExpectation("machine_author", false), peg$c1421 = function (value) { return { key: "machine_author", value }; }, peg$c1422 = "machine_contributor", peg$c1423 = peg$literalExpectation("machine_contributor", false), peg$c1424 = function (value) { return { key: "machine_contributor", value }; }, peg$c1425 = "machine_comment", peg$c1426 = peg$literalExpectation("machine_comment", false), peg$c1427 = function (value) { return { key: "machine_comment", value }; }, peg$c1428 = "machine_definition", peg$c1429 = peg$literalExpectation("machine_definition", false), peg$c1430 = function (value) { return { key: "machine_definition", value }; }, peg$c1431 = "machine_name", peg$c1432 = peg$literalExpectation("machine_name", false), peg$c1433 = function (value) { return { key: "machine_name", value }; }, peg$c1434 = "machine_reference", peg$c1435 = peg$literalExpectation("machine_reference", false), peg$c1436 = function (value) { return { key: "machine_reference", value }; }, peg$c1437 = "machine_version", peg$c1438 = peg$literalExpectation("machine_version", false), peg$c1439 = function (value) { return { key: "machine_version", value }; }, peg$c1440 = "machine_license", peg$c1441 = peg$literalExpectation("machine_license", false), peg$c1442 = function (value) { return { key: "machine_license", value }; }, peg$c1443 = "machine_language", peg$c1444 = peg$literalExpectation("machine_language", false), peg$c1445 = function (value) { return { key: "machine_language", value }; }, peg$c1446 = "fsl_version", peg$c1447 = peg$literalExpectation("fsl_version", false), peg$c1448 = function (value) { return { key: "fsl_version", value }; }, peg$c1449 = "theme", peg$c1450 = peg$literalExpectation("theme", false), peg$c1451 = function (value) { return { key: "theme", value }; }, peg$c1452 = "flow", peg$c1453 = peg$literalExpectation("flow", false), peg$c1454 = function (value) { return { key: "flow", value }; }, peg$c1455 = "hooks", peg$c1456 = peg$literalExpectation("hooks", false), peg$c1457 = function (value) { return { key: "hook_definition", value }; }, peg$c1458 = "dot_preamble", peg$c1459 = peg$literalExpectation("dot_preamble", false), peg$c1460 = function (value) { return { key: "dot_preamble", value }; }, peg$c1461 = peg$otherExpectation("machine attribute"), peg$c1462 = "label", peg$c1463 = peg$literalExpectation("label", false), peg$c1464 = function (value) { return { key: 'state-label', value }; }, peg$c1465 = "color", peg$c1466 = peg$literalExpectation("color", false), peg$c1467 = function (value) { return { key: 'color', value }; }, peg$c1468 = peg$otherExpectation("text color"), peg$c1469 = "text-color", peg$c1470 = peg$literalExpectation("text-color", false), peg$c1471 = function (value) { return { key: 'text-color', value }; }, peg$c1472 = peg$otherExpectation("background color"), peg$c1473 = "background-color", peg$c1474 = peg$literalExpectation("background-color", false), peg$c1475 = function (value) { return { key: 'background-color', value }; }, peg$c1476 = peg$otherExpectation("border color"), peg$c1477 = "border-color", peg$c1478 = peg$literalExpectation("border-color", false), peg$c1479 = function (value) { return { key: 'border-color', value }; }, peg$c1480 = peg$otherExpectation("shape"), peg$c1481 = "shape", peg$c1482 = peg$literalExpectation("shape", false), peg$c1483 = function (value) { return { key: 'shape', value }; }, peg$c1484 = peg$otherExpectation("corners"), peg$c1485 = "corners", peg$c1486 = peg$literalExpectation("corners", false), peg$c1487 = function (value) { return { key: 'corners', value }; }, peg$c1488 = peg$otherExpectation("linestyle"), peg$c1489 = function (value) { return { key: 'line-style', value }; }, peg$c1490 = "linestyle", peg$c1491 = peg$literalExpectation("linestyle", false), peg$c1492 = peg$otherExpectation("image"), peg$c1493 = "image", peg$c1494 = peg$literalExpectation("image", false), peg$c1495 = function (value) { return { key: 'image', value }; }, peg$c1496 = peg$otherExpectation("url"), peg$c1497 = "url", peg$c1498 = peg$literalExpectation("url", false), peg$c1499 = function (value) { return { key: 'url', value }; }, peg$c1500 = peg$otherExpectation("state property"), peg$c1501 = "property", peg$c1502 = peg$literalExpectation("property", false), peg$c1503 = function (name, value) {
456
+ }, peg$c1365 = "graph_layout", peg$c1366 = peg$literalExpectation("graph_layout", false), peg$c1367 = function (value) { return { key: "graph_layout", value: value }; }, peg$c1368 = "start_states", peg$c1369 = peg$literalExpectation("start_states", false), peg$c1370 = function (value) { return { key: "start_states", value: value }; }, peg$c1371 = "end_states", peg$c1372 = peg$literalExpectation("end_states", false), peg$c1373 = function (value) { return { key: "end_states", value: value }; }, peg$c1374 = "failed_outputs", peg$c1375 = peg$literalExpectation("failed_outputs", false), peg$c1376 = function (value) { return { key: "failed_outputs", value: typeof value === 'string' ? [value] : value }; }, peg$c1377 = "graph_bg_color", peg$c1378 = peg$literalExpectation("graph_bg_color", false), peg$c1379 = function (value) { return { key: "graph_bg_color", value: value }; }, peg$c1380 = "allows_override", peg$c1381 = peg$literalExpectation("allows_override", false), peg$c1382 = function (value) { return { key: "allows_override", value: value }; }, peg$c1383 = function () { return true; }, peg$c1384 = function () { return false; }, peg$c1385 = peg$otherExpectation("configuration"), peg$c1386 = "MIT", peg$c1387 = peg$literalExpectation("MIT", false), peg$c1388 = "BSD 2-clause", peg$c1389 = peg$literalExpectation("BSD 2-clause", false), peg$c1390 = "BSD 3-clause", peg$c1391 = peg$literalExpectation("BSD 3-clause", false), peg$c1392 = "Apache 2.0", peg$c1393 = peg$literalExpectation("Apache 2.0", false), peg$c1394 = "Mozilla 2.0", peg$c1395 = peg$literalExpectation("Mozilla 2.0", false), peg$c1396 = "Public domain", peg$c1397 = peg$literalExpectation("Public domain", false), peg$c1398 = "GPL v2", peg$c1399 = peg$literalExpectation("GPL v2", false), peg$c1400 = "GPL v3", peg$c1401 = peg$literalExpectation("GPL v3", false), peg$c1402 = "LGPL v2.1", peg$c1403 = peg$literalExpectation("LGPL v2.1", false), peg$c1404 = "LGPL v3.0", peg$c1405 = peg$literalExpectation("LGPL v3.0", false), peg$c1406 = "Unknown", peg$c1407 = peg$literalExpectation("Unknown", false), peg$c1408 = peg$otherExpectation("direction"), peg$c1409 = "up", peg$c1410 = peg$literalExpectation("up", false), peg$c1411 = "right", peg$c1412 = peg$literalExpectation("right", false), peg$c1413 = "down", peg$c1414 = peg$literalExpectation("down", false), peg$c1415 = "left", peg$c1416 = peg$literalExpectation("left", false), peg$c1417 = peg$otherExpectation("hook definition (open/closed)"), peg$c1418 = "open", peg$c1419 = peg$literalExpectation("open", false), peg$c1420 = "closed", peg$c1421 = peg$literalExpectation("closed", false), peg$c1422 = "machine_author", peg$c1423 = peg$literalExpectation("machine_author", false), peg$c1424 = function (value) { return { key: "machine_author", value }; }, peg$c1425 = "machine_contributor", peg$c1426 = peg$literalExpectation("machine_contributor", false), peg$c1427 = function (value) { return { key: "machine_contributor", value }; }, peg$c1428 = "machine_comment", peg$c1429 = peg$literalExpectation("machine_comment", false), peg$c1430 = function (value) { return { key: "machine_comment", value }; }, peg$c1431 = "machine_definition", peg$c1432 = peg$literalExpectation("machine_definition", false), peg$c1433 = function (value) { return { key: "machine_definition", value }; }, peg$c1434 = "machine_name", peg$c1435 = peg$literalExpectation("machine_name", false), peg$c1436 = function (value) { return { key: "machine_name", value }; }, peg$c1437 = "npm_name", peg$c1438 = peg$literalExpectation("npm_name", false), peg$c1439 = function (value) { return { key: "npm_name", value }; }, peg$c1440 = "machine_reference", peg$c1441 = peg$literalExpectation("machine_reference", false), peg$c1442 = function (value) { return { key: "machine_reference", value }; }, peg$c1443 = "machine_version", peg$c1444 = peg$literalExpectation("machine_version", false), peg$c1445 = function (value) { return { key: "machine_version", value }; }, peg$c1446 = "machine_license", peg$c1447 = peg$literalExpectation("machine_license", false), peg$c1448 = function (value) { return { key: "machine_license", value }; }, peg$c1449 = "machine_language", peg$c1450 = peg$literalExpectation("machine_language", false), peg$c1451 = function (value) { return { key: "machine_language", value }; }, peg$c1452 = "fsl_version", peg$c1453 = peg$literalExpectation("fsl_version", false), peg$c1454 = function (value) { return { key: "fsl_version", value }; }, peg$c1455 = "theme", peg$c1456 = peg$literalExpectation("theme", false), peg$c1457 = function (value) { return { key: "theme", value }; }, peg$c1458 = "flow", peg$c1459 = peg$literalExpectation("flow", false), peg$c1460 = function (value) { return { key: "flow", value }; }, peg$c1461 = "hooks", peg$c1462 = peg$literalExpectation("hooks", false), peg$c1463 = function (value) { return { key: "hook_definition", value }; }, peg$c1464 = "dot_preamble", peg$c1465 = peg$literalExpectation("dot_preamble", false), peg$c1466 = function (value) { return { key: "dot_preamble", value }; }, peg$c1467 = peg$otherExpectation("machine attribute"), peg$c1468 = "label", peg$c1469 = peg$literalExpectation("label", false), peg$c1470 = function (value) { return { key: 'state-label', value }; }, peg$c1471 = "color", peg$c1472 = peg$literalExpectation("color", false), peg$c1473 = function (value) { return { key: 'color', value }; }, peg$c1474 = peg$otherExpectation("text color"), peg$c1475 = "text-color", peg$c1476 = peg$literalExpectation("text-color", false), peg$c1477 = function (value) { return { key: 'text-color', value }; }, peg$c1478 = peg$otherExpectation("background color"), peg$c1479 = "background-color", peg$c1480 = peg$literalExpectation("background-color", false), peg$c1481 = function (value) { return { key: 'background-color', value }; }, peg$c1482 = peg$otherExpectation("border color"), peg$c1483 = "border-color", peg$c1484 = peg$literalExpectation("border-color", false), peg$c1485 = function (value) { return { key: 'border-color', value }; }, peg$c1486 = peg$otherExpectation("shape"), peg$c1487 = "shape", peg$c1488 = peg$literalExpectation("shape", false), peg$c1489 = function (value) { return { key: 'shape', value }; }, peg$c1490 = peg$otherExpectation("corners"), peg$c1491 = "corners", peg$c1492 = peg$literalExpectation("corners", false), peg$c1493 = function (value) { return { key: 'corners', value }; }, peg$c1494 = peg$otherExpectation("linestyle"), peg$c1495 = function (value) { return { key: 'line-style', value }; }, peg$c1496 = "linestyle", peg$c1497 = peg$literalExpectation("linestyle", false), peg$c1498 = peg$otherExpectation("image"), peg$c1499 = "image", peg$c1500 = peg$literalExpectation("image", false), peg$c1501 = function (value) { return { key: 'image', value }; }, peg$c1502 = peg$otherExpectation("url"), peg$c1503 = "url", peg$c1504 = peg$literalExpectation("url", false), peg$c1505 = function (value) { return { key: 'url', value }; }, peg$c1506 = peg$otherExpectation("state property"), peg$c1507 = "property", peg$c1508 = peg$literalExpectation("property", false), peg$c1509 = function (name, value) {
457
457
  return { key: 'state_property', name, value };
458
- }, peg$c1504 = "required", peg$c1505 = peg$literalExpectation("required", false), peg$c1506 = function (name, value) {
458
+ }, peg$c1510 = "required", peg$c1511 = peg$literalExpectation("required", false), peg$c1512 = function (name, value) {
459
459
  return { key: 'state_property', name, value, required: true };
460
- }, peg$c1507 = function (name, value) { return { key: 'state_declaration', name, value }; }, peg$c1508 = "&", peg$c1509 = peg$literalExpectation("&", false), peg$c1510 = function (name, value) { return { key: 'named_list', name, value }; }, peg$c1511 = function (name, default_value) { return { key: 'property_definition', name, default_value, required: true }; }, peg$c1512 = function (name) { return { key: 'property_definition', name, required: true }; }, peg$c1513 = function (name, default_value) { return { key: 'property_definition', name, default_value }; }, peg$c1514 = function (name) { return { key: 'property_definition', name }; }, peg$c1515 = "arrange", peg$c1516 = peg$literalExpectation("arrange", false), peg$c1517 = function (value) { return { key: 'arrange_declaration', value }; }, peg$c1518 = "arrange-start", peg$c1519 = peg$literalExpectation("arrange-start", false), peg$c1520 = function (value) { return { key: 'arrange_start_declaration', value }; }, peg$c1521 = "arrange-end", peg$c1522 = peg$literalExpectation("arrange-end", false), peg$c1523 = function (value) { return { key: 'arrange_end_declaration', value }; }, peg$c1524 = peg$otherExpectation("arrange declaration"), peg$currPos = 0, peg$savedPos = 0, peg$posDetailsCache = [{ line: 1, column: 1 }], peg$maxFailPos = 0, peg$maxFailExpected = [], peg$silentFails = 0, peg$result;
460
+ }, peg$c1513 = function (name, value) { return { key: 'state_declaration', name, value }; }, peg$c1514 = "&", peg$c1515 = peg$literalExpectation("&", false), peg$c1516 = function (name, value) { return { key: 'named_list', name, value }; }, peg$c1517 = function (name, default_value) { return { key: 'property_definition', name, default_value, required: true }; }, peg$c1518 = function (name) { return { key: 'property_definition', name, required: true }; }, peg$c1519 = function (name, default_value) { return { key: 'property_definition', name, default_value }; }, peg$c1520 = function (name) { return { key: 'property_definition', name }; }, peg$c1521 = "arrange", peg$c1522 = peg$literalExpectation("arrange", false), peg$c1523 = function (value) { return { key: 'arrange_declaration', value }; }, peg$c1524 = "arrange-start", peg$c1525 = peg$literalExpectation("arrange-start", false), peg$c1526 = function (value) { return { key: 'arrange_start_declaration', value }; }, peg$c1527 = "arrange-end", peg$c1528 = peg$literalExpectation("arrange-end", false), peg$c1529 = function (value) { return { key: 'arrange_end_declaration', value }; }, peg$c1530 = peg$otherExpectation("arrange declaration"), peg$currPos = 0, peg$savedPos = 0, peg$posDetailsCache = [{ line: 1, column: 1 }], peg$maxFailPos = 0, peg$maxFailExpected = [], peg$silentFails = 0, peg$result;
461
461
  if ("startRule" in options) {
462
462
  if (!(options.startRule in peg$startRuleFunctions)) {
463
463
  throw new Error("Can't start parsing from rule \"" + options.startRule + "\".");
@@ -14646,7 +14646,7 @@ function peg$parse(input, options) {
14646
14646
  }
14647
14647
  return s0;
14648
14648
  }
14649
- function peg$parseConfigGraphBgColor() {
14649
+ function peg$parseConfigFailedOutputs() {
14650
14650
  var s0, s1, s2, s3, s4, s5, s6, s7, s8, s9;
14651
14651
  s0 = peg$currPos;
14652
14652
  s1 = peg$parseWS();
@@ -14686,7 +14686,7 @@ function peg$parse(input, options) {
14686
14686
  s5 = null;
14687
14687
  }
14688
14688
  if (s5 !== peg$FAILED) {
14689
- s6 = peg$parseColor();
14689
+ s6 = peg$parseLabelOrLabelList();
14690
14690
  if (s6 !== peg$FAILED) {
14691
14691
  s7 = peg$parseWS();
14692
14692
  if (s7 === peg$FAILED) {
@@ -14759,7 +14759,7 @@ function peg$parse(input, options) {
14759
14759
  }
14760
14760
  return s0;
14761
14761
  }
14762
- function peg$parseConfigAllowsOverride() {
14762
+ function peg$parseConfigGraphBgColor() {
14763
14763
  var s0, s1, s2, s3, s4, s5, s6, s7, s8, s9;
14764
14764
  s0 = peg$currPos;
14765
14765
  s1 = peg$parseWS();
@@ -14767,9 +14767,9 @@ function peg$parse(input, options) {
14767
14767
  s1 = null;
14768
14768
  }
14769
14769
  if (s1 !== peg$FAILED) {
14770
- if (input.substr(peg$currPos, 15) === peg$c1377) {
14770
+ if (input.substr(peg$currPos, 14) === peg$c1377) {
14771
14771
  s2 = peg$c1377;
14772
- peg$currPos += 15;
14772
+ peg$currPos += 14;
14773
14773
  }
14774
14774
  else {
14775
14775
  s2 = peg$FAILED;
@@ -14799,7 +14799,7 @@ function peg$parse(input, options) {
14799
14799
  s5 = null;
14800
14800
  }
14801
14801
  if (s5 !== peg$FAILED) {
14802
- s6 = peg$parseOverrideT();
14802
+ s6 = peg$parseColor();
14803
14803
  if (s6 !== peg$FAILED) {
14804
14804
  s7 = peg$parseWS();
14805
14805
  if (s7 === peg$FAILED) {
@@ -14872,6 +14872,119 @@ function peg$parse(input, options) {
14872
14872
  }
14873
14873
  return s0;
14874
14874
  }
14875
+ function peg$parseConfigAllowsOverride() {
14876
+ var s0, s1, s2, s3, s4, s5, s6, s7, s8, s9;
14877
+ s0 = peg$currPos;
14878
+ s1 = peg$parseWS();
14879
+ if (s1 === peg$FAILED) {
14880
+ s1 = null;
14881
+ }
14882
+ if (s1 !== peg$FAILED) {
14883
+ if (input.substr(peg$currPos, 15) === peg$c1380) {
14884
+ s2 = peg$c1380;
14885
+ peg$currPos += 15;
14886
+ }
14887
+ else {
14888
+ s2 = peg$FAILED;
14889
+ if (peg$silentFails === 0) {
14890
+ peg$fail(peg$c1381);
14891
+ }
14892
+ }
14893
+ if (s2 !== peg$FAILED) {
14894
+ s3 = peg$parseWS();
14895
+ if (s3 === peg$FAILED) {
14896
+ s3 = null;
14897
+ }
14898
+ if (s3 !== peg$FAILED) {
14899
+ if (input.charCodeAt(peg$currPos) === 58) {
14900
+ s4 = peg$c1206;
14901
+ peg$currPos++;
14902
+ }
14903
+ else {
14904
+ s4 = peg$FAILED;
14905
+ if (peg$silentFails === 0) {
14906
+ peg$fail(peg$c1207);
14907
+ }
14908
+ }
14909
+ if (s4 !== peg$FAILED) {
14910
+ s5 = peg$parseWS();
14911
+ if (s5 === peg$FAILED) {
14912
+ s5 = null;
14913
+ }
14914
+ if (s5 !== peg$FAILED) {
14915
+ s6 = peg$parseOverrideT();
14916
+ if (s6 !== peg$FAILED) {
14917
+ s7 = peg$parseWS();
14918
+ if (s7 === peg$FAILED) {
14919
+ s7 = null;
14920
+ }
14921
+ if (s7 !== peg$FAILED) {
14922
+ if (input.charCodeAt(peg$currPos) === 59) {
14923
+ s8 = peg$c1208;
14924
+ peg$currPos++;
14925
+ }
14926
+ else {
14927
+ s8 = peg$FAILED;
14928
+ if (peg$silentFails === 0) {
14929
+ peg$fail(peg$c1209);
14930
+ }
14931
+ }
14932
+ if (s8 !== peg$FAILED) {
14933
+ s9 = peg$parseWS();
14934
+ if (s9 === peg$FAILED) {
14935
+ s9 = null;
14936
+ }
14937
+ if (s9 !== peg$FAILED) {
14938
+ peg$savedPos = s0;
14939
+ s1 = peg$c1382(s6);
14940
+ s0 = s1;
14941
+ }
14942
+ else {
14943
+ peg$currPos = s0;
14944
+ s0 = peg$FAILED;
14945
+ }
14946
+ }
14947
+ else {
14948
+ peg$currPos = s0;
14949
+ s0 = peg$FAILED;
14950
+ }
14951
+ }
14952
+ else {
14953
+ peg$currPos = s0;
14954
+ s0 = peg$FAILED;
14955
+ }
14956
+ }
14957
+ else {
14958
+ peg$currPos = s0;
14959
+ s0 = peg$FAILED;
14960
+ }
14961
+ }
14962
+ else {
14963
+ peg$currPos = s0;
14964
+ s0 = peg$FAILED;
14965
+ }
14966
+ }
14967
+ else {
14968
+ peg$currPos = s0;
14969
+ s0 = peg$FAILED;
14970
+ }
14971
+ }
14972
+ else {
14973
+ peg$currPos = s0;
14974
+ s0 = peg$FAILED;
14975
+ }
14976
+ }
14977
+ else {
14978
+ peg$currPos = s0;
14979
+ s0 = peg$FAILED;
14980
+ }
14981
+ }
14982
+ else {
14983
+ peg$currPos = s0;
14984
+ s0 = peg$FAILED;
14985
+ }
14986
+ return s0;
14987
+ }
14875
14988
  function peg$parseOverrideT() {
14876
14989
  var s0, s1;
14877
14990
  s0 = peg$currPos;
@@ -14887,7 +15000,7 @@ function peg$parse(input, options) {
14887
15000
  }
14888
15001
  if (s1 !== peg$FAILED) {
14889
15002
  peg$savedPos = s0;
14890
- s1 = peg$c1380();
15003
+ s1 = peg$c1383();
14891
15004
  }
14892
15005
  s0 = s1;
14893
15006
  if (s0 === peg$FAILED) {
@@ -14904,7 +15017,7 @@ function peg$parse(input, options) {
14904
15017
  }
14905
15018
  if (s1 !== peg$FAILED) {
14906
15019
  peg$savedPos = s0;
14907
- s1 = peg$c1381();
15020
+ s1 = peg$c1384();
14908
15021
  }
14909
15022
  s0 = s1;
14910
15023
  if (s0 === peg$FAILED) {
@@ -14937,17 +15050,20 @@ function peg$parse(input, options) {
14937
15050
  if (s0 === peg$FAILED) {
14938
15051
  s0 = peg$parseConfigEndNodes();
14939
15052
  if (s0 === peg$FAILED) {
14940
- s0 = peg$parseConfigTransition();
15053
+ s0 = peg$parseConfigFailedOutputs();
14941
15054
  if (s0 === peg$FAILED) {
14942
- s0 = peg$parseConfigAction();
15055
+ s0 = peg$parseConfigTransition();
14943
15056
  if (s0 === peg$FAILED) {
14944
- s0 = peg$parseConfigAnyState();
15057
+ s0 = peg$parseConfigAction();
14945
15058
  if (s0 === peg$FAILED) {
14946
- s0 = peg$parseConfigValidation();
15059
+ s0 = peg$parseConfigAnyState();
14947
15060
  if (s0 === peg$FAILED) {
14948
- s0 = peg$parseConfigGraphBgColor();
15061
+ s0 = peg$parseConfigValidation();
14949
15062
  if (s0 === peg$FAILED) {
14950
- s0 = peg$parseConfigAllowsOverride();
15063
+ s0 = peg$parseConfigGraphBgColor();
15064
+ if (s0 === peg$FAILED) {
15065
+ s0 = peg$parseConfigAllowsOverride();
15066
+ }
14951
15067
  }
14952
15068
  }
14953
15069
  }
@@ -14959,131 +15075,131 @@ function peg$parse(input, options) {
14959
15075
  peg$silentFails--;
14960
15076
  if (s0 === peg$FAILED) {
14961
15077
  if (peg$silentFails === 0) {
14962
- peg$fail(peg$c1382);
15078
+ peg$fail(peg$c1385);
14963
15079
  }
14964
15080
  }
14965
15081
  return s0;
14966
15082
  }
14967
15083
  function peg$parseLicenseOrLabelOrList() {
14968
15084
  var s0;
14969
- if (input.substr(peg$currPos, 3) === peg$c1383) {
14970
- s0 = peg$c1383;
15085
+ if (input.substr(peg$currPos, 3) === peg$c1386) {
15086
+ s0 = peg$c1386;
14971
15087
  peg$currPos += 3;
14972
15088
  }
14973
15089
  else {
14974
15090
  s0 = peg$FAILED;
14975
15091
  if (peg$silentFails === 0) {
14976
- peg$fail(peg$c1384);
15092
+ peg$fail(peg$c1387);
14977
15093
  }
14978
15094
  }
14979
15095
  if (s0 === peg$FAILED) {
14980
- if (input.substr(peg$currPos, 12) === peg$c1385) {
14981
- s0 = peg$c1385;
15096
+ if (input.substr(peg$currPos, 12) === peg$c1388) {
15097
+ s0 = peg$c1388;
14982
15098
  peg$currPos += 12;
14983
15099
  }
14984
15100
  else {
14985
15101
  s0 = peg$FAILED;
14986
15102
  if (peg$silentFails === 0) {
14987
- peg$fail(peg$c1386);
15103
+ peg$fail(peg$c1389);
14988
15104
  }
14989
15105
  }
14990
15106
  if (s0 === peg$FAILED) {
14991
- if (input.substr(peg$currPos, 12) === peg$c1387) {
14992
- s0 = peg$c1387;
15107
+ if (input.substr(peg$currPos, 12) === peg$c1390) {
15108
+ s0 = peg$c1390;
14993
15109
  peg$currPos += 12;
14994
15110
  }
14995
15111
  else {
14996
15112
  s0 = peg$FAILED;
14997
15113
  if (peg$silentFails === 0) {
14998
- peg$fail(peg$c1388);
15114
+ peg$fail(peg$c1391);
14999
15115
  }
15000
15116
  }
15001
15117
  if (s0 === peg$FAILED) {
15002
- if (input.substr(peg$currPos, 10) === peg$c1389) {
15003
- s0 = peg$c1389;
15118
+ if (input.substr(peg$currPos, 10) === peg$c1392) {
15119
+ s0 = peg$c1392;
15004
15120
  peg$currPos += 10;
15005
15121
  }
15006
15122
  else {
15007
15123
  s0 = peg$FAILED;
15008
15124
  if (peg$silentFails === 0) {
15009
- peg$fail(peg$c1390);
15125
+ peg$fail(peg$c1393);
15010
15126
  }
15011
15127
  }
15012
15128
  if (s0 === peg$FAILED) {
15013
- if (input.substr(peg$currPos, 11) === peg$c1391) {
15014
- s0 = peg$c1391;
15129
+ if (input.substr(peg$currPos, 11) === peg$c1394) {
15130
+ s0 = peg$c1394;
15015
15131
  peg$currPos += 11;
15016
15132
  }
15017
15133
  else {
15018
15134
  s0 = peg$FAILED;
15019
15135
  if (peg$silentFails === 0) {
15020
- peg$fail(peg$c1392);
15136
+ peg$fail(peg$c1395);
15021
15137
  }
15022
15138
  }
15023
15139
  if (s0 === peg$FAILED) {
15024
- if (input.substr(peg$currPos, 13) === peg$c1393) {
15025
- s0 = peg$c1393;
15140
+ if (input.substr(peg$currPos, 13) === peg$c1396) {
15141
+ s0 = peg$c1396;
15026
15142
  peg$currPos += 13;
15027
15143
  }
15028
15144
  else {
15029
15145
  s0 = peg$FAILED;
15030
15146
  if (peg$silentFails === 0) {
15031
- peg$fail(peg$c1394);
15147
+ peg$fail(peg$c1397);
15032
15148
  }
15033
15149
  }
15034
15150
  if (s0 === peg$FAILED) {
15035
- if (input.substr(peg$currPos, 6) === peg$c1395) {
15036
- s0 = peg$c1395;
15151
+ if (input.substr(peg$currPos, 6) === peg$c1398) {
15152
+ s0 = peg$c1398;
15037
15153
  peg$currPos += 6;
15038
15154
  }
15039
15155
  else {
15040
15156
  s0 = peg$FAILED;
15041
15157
  if (peg$silentFails === 0) {
15042
- peg$fail(peg$c1396);
15158
+ peg$fail(peg$c1399);
15043
15159
  }
15044
15160
  }
15045
15161
  if (s0 === peg$FAILED) {
15046
- if (input.substr(peg$currPos, 6) === peg$c1397) {
15047
- s0 = peg$c1397;
15162
+ if (input.substr(peg$currPos, 6) === peg$c1400) {
15163
+ s0 = peg$c1400;
15048
15164
  peg$currPos += 6;
15049
15165
  }
15050
15166
  else {
15051
15167
  s0 = peg$FAILED;
15052
15168
  if (peg$silentFails === 0) {
15053
- peg$fail(peg$c1398);
15169
+ peg$fail(peg$c1401);
15054
15170
  }
15055
15171
  }
15056
15172
  if (s0 === peg$FAILED) {
15057
- if (input.substr(peg$currPos, 9) === peg$c1399) {
15058
- s0 = peg$c1399;
15173
+ if (input.substr(peg$currPos, 9) === peg$c1402) {
15174
+ s0 = peg$c1402;
15059
15175
  peg$currPos += 9;
15060
15176
  }
15061
15177
  else {
15062
15178
  s0 = peg$FAILED;
15063
15179
  if (peg$silentFails === 0) {
15064
- peg$fail(peg$c1400);
15180
+ peg$fail(peg$c1403);
15065
15181
  }
15066
15182
  }
15067
15183
  if (s0 === peg$FAILED) {
15068
- if (input.substr(peg$currPos, 9) === peg$c1401) {
15069
- s0 = peg$c1401;
15184
+ if (input.substr(peg$currPos, 9) === peg$c1404) {
15185
+ s0 = peg$c1404;
15070
15186
  peg$currPos += 9;
15071
15187
  }
15072
15188
  else {
15073
15189
  s0 = peg$FAILED;
15074
15190
  if (peg$silentFails === 0) {
15075
- peg$fail(peg$c1402);
15191
+ peg$fail(peg$c1405);
15076
15192
  }
15077
15193
  }
15078
15194
  if (s0 === peg$FAILED) {
15079
- if (input.substr(peg$currPos, 7) === peg$c1403) {
15080
- s0 = peg$c1403;
15195
+ if (input.substr(peg$currPos, 7) === peg$c1406) {
15196
+ s0 = peg$c1406;
15081
15197
  peg$currPos += 7;
15082
15198
  }
15083
15199
  else {
15084
15200
  s0 = peg$FAILED;
15085
15201
  if (peg$silentFails === 0) {
15086
- peg$fail(peg$c1404);
15202
+ peg$fail(peg$c1407);
15087
15203
  }
15088
15204
  }
15089
15205
  if (s0 === peg$FAILED) {
@@ -15107,47 +15223,47 @@ function peg$parse(input, options) {
15107
15223
  function peg$parseDirection() {
15108
15224
  var s0;
15109
15225
  peg$silentFails++;
15110
- if (input.substr(peg$currPos, 2) === peg$c1406) {
15111
- s0 = peg$c1406;
15226
+ if (input.substr(peg$currPos, 2) === peg$c1409) {
15227
+ s0 = peg$c1409;
15112
15228
  peg$currPos += 2;
15113
15229
  }
15114
15230
  else {
15115
15231
  s0 = peg$FAILED;
15116
15232
  if (peg$silentFails === 0) {
15117
- peg$fail(peg$c1407);
15233
+ peg$fail(peg$c1410);
15118
15234
  }
15119
15235
  }
15120
15236
  if (s0 === peg$FAILED) {
15121
- if (input.substr(peg$currPos, 5) === peg$c1408) {
15122
- s0 = peg$c1408;
15237
+ if (input.substr(peg$currPos, 5) === peg$c1411) {
15238
+ s0 = peg$c1411;
15123
15239
  peg$currPos += 5;
15124
15240
  }
15125
15241
  else {
15126
15242
  s0 = peg$FAILED;
15127
15243
  if (peg$silentFails === 0) {
15128
- peg$fail(peg$c1409);
15244
+ peg$fail(peg$c1412);
15129
15245
  }
15130
15246
  }
15131
15247
  if (s0 === peg$FAILED) {
15132
- if (input.substr(peg$currPos, 4) === peg$c1410) {
15133
- s0 = peg$c1410;
15248
+ if (input.substr(peg$currPos, 4) === peg$c1413) {
15249
+ s0 = peg$c1413;
15134
15250
  peg$currPos += 4;
15135
15251
  }
15136
15252
  else {
15137
15253
  s0 = peg$FAILED;
15138
15254
  if (peg$silentFails === 0) {
15139
- peg$fail(peg$c1411);
15255
+ peg$fail(peg$c1414);
15140
15256
  }
15141
15257
  }
15142
15258
  if (s0 === peg$FAILED) {
15143
- if (input.substr(peg$currPos, 4) === peg$c1412) {
15144
- s0 = peg$c1412;
15259
+ if (input.substr(peg$currPos, 4) === peg$c1415) {
15260
+ s0 = peg$c1415;
15145
15261
  peg$currPos += 4;
15146
15262
  }
15147
15263
  else {
15148
15264
  s0 = peg$FAILED;
15149
15265
  if (peg$silentFails === 0) {
15150
- peg$fail(peg$c1413);
15266
+ peg$fail(peg$c1416);
15151
15267
  }
15152
15268
  }
15153
15269
  }
@@ -15156,7 +15272,7 @@ function peg$parse(input, options) {
15156
15272
  peg$silentFails--;
15157
15273
  if (s0 === peg$FAILED) {
15158
15274
  if (peg$silentFails === 0) {
15159
- peg$fail(peg$c1405);
15275
+ peg$fail(peg$c1408);
15160
15276
  }
15161
15277
  }
15162
15278
  return s0;
@@ -15164,32 +15280,32 @@ function peg$parse(input, options) {
15164
15280
  function peg$parseHookDefinition() {
15165
15281
  var s0;
15166
15282
  peg$silentFails++;
15167
- if (input.substr(peg$currPos, 4) === peg$c1415) {
15168
- s0 = peg$c1415;
15283
+ if (input.substr(peg$currPos, 4) === peg$c1418) {
15284
+ s0 = peg$c1418;
15169
15285
  peg$currPos += 4;
15170
15286
  }
15171
15287
  else {
15172
15288
  s0 = peg$FAILED;
15173
15289
  if (peg$silentFails === 0) {
15174
- peg$fail(peg$c1416);
15290
+ peg$fail(peg$c1419);
15175
15291
  }
15176
15292
  }
15177
15293
  if (s0 === peg$FAILED) {
15178
- if (input.substr(peg$currPos, 6) === peg$c1417) {
15179
- s0 = peg$c1417;
15294
+ if (input.substr(peg$currPos, 6) === peg$c1420) {
15295
+ s0 = peg$c1420;
15180
15296
  peg$currPos += 6;
15181
15297
  }
15182
15298
  else {
15183
15299
  s0 = peg$FAILED;
15184
15300
  if (peg$silentFails === 0) {
15185
- peg$fail(peg$c1418);
15301
+ peg$fail(peg$c1421);
15186
15302
  }
15187
15303
  }
15188
15304
  }
15189
15305
  peg$silentFails--;
15190
15306
  if (s0 === peg$FAILED) {
15191
15307
  if (peg$silentFails === 0) {
15192
- peg$fail(peg$c1414);
15308
+ peg$fail(peg$c1417);
15193
15309
  }
15194
15310
  }
15195
15311
  return s0;
@@ -15202,14 +15318,14 @@ function peg$parse(input, options) {
15202
15318
  s1 = null;
15203
15319
  }
15204
15320
  if (s1 !== peg$FAILED) {
15205
- if (input.substr(peg$currPos, 14) === peg$c1419) {
15206
- s2 = peg$c1419;
15321
+ if (input.substr(peg$currPos, 14) === peg$c1422) {
15322
+ s2 = peg$c1422;
15207
15323
  peg$currPos += 14;
15208
15324
  }
15209
15325
  else {
15210
15326
  s2 = peg$FAILED;
15211
15327
  if (peg$silentFails === 0) {
15212
- peg$fail(peg$c1420);
15328
+ peg$fail(peg$c1423);
15213
15329
  }
15214
15330
  }
15215
15331
  if (s2 !== peg$FAILED) {
@@ -15258,7 +15374,7 @@ function peg$parse(input, options) {
15258
15374
  }
15259
15375
  if (s9 !== peg$FAILED) {
15260
15376
  peg$savedPos = s0;
15261
- s1 = peg$c1421(s6);
15377
+ s1 = peg$c1424(s6);
15262
15378
  s0 = s1;
15263
15379
  }
15264
15380
  else {
@@ -15315,14 +15431,14 @@ function peg$parse(input, options) {
15315
15431
  s1 = null;
15316
15432
  }
15317
15433
  if (s1 !== peg$FAILED) {
15318
- if (input.substr(peg$currPos, 19) === peg$c1422) {
15319
- s2 = peg$c1422;
15434
+ if (input.substr(peg$currPos, 19) === peg$c1425) {
15435
+ s2 = peg$c1425;
15320
15436
  peg$currPos += 19;
15321
15437
  }
15322
15438
  else {
15323
15439
  s2 = peg$FAILED;
15324
15440
  if (peg$silentFails === 0) {
15325
- peg$fail(peg$c1423);
15441
+ peg$fail(peg$c1426);
15326
15442
  }
15327
15443
  }
15328
15444
  if (s2 !== peg$FAILED) {
@@ -15371,7 +15487,7 @@ function peg$parse(input, options) {
15371
15487
  }
15372
15488
  if (s9 !== peg$FAILED) {
15373
15489
  peg$savedPos = s0;
15374
- s1 = peg$c1424(s6);
15490
+ s1 = peg$c1427(s6);
15375
15491
  s0 = s1;
15376
15492
  }
15377
15493
  else {
@@ -15428,14 +15544,14 @@ function peg$parse(input, options) {
15428
15544
  s1 = null;
15429
15545
  }
15430
15546
  if (s1 !== peg$FAILED) {
15431
- if (input.substr(peg$currPos, 15) === peg$c1425) {
15432
- s2 = peg$c1425;
15547
+ if (input.substr(peg$currPos, 15) === peg$c1428) {
15548
+ s2 = peg$c1428;
15433
15549
  peg$currPos += 15;
15434
15550
  }
15435
15551
  else {
15436
15552
  s2 = peg$FAILED;
15437
15553
  if (peg$silentFails === 0) {
15438
- peg$fail(peg$c1426);
15554
+ peg$fail(peg$c1429);
15439
15555
  }
15440
15556
  }
15441
15557
  if (s2 !== peg$FAILED) {
@@ -15484,7 +15600,7 @@ function peg$parse(input, options) {
15484
15600
  }
15485
15601
  if (s9 !== peg$FAILED) {
15486
15602
  peg$savedPos = s0;
15487
- s1 = peg$c1427(s6);
15603
+ s1 = peg$c1430(s6);
15488
15604
  s0 = s1;
15489
15605
  }
15490
15606
  else {
@@ -15541,14 +15657,14 @@ function peg$parse(input, options) {
15541
15657
  s1 = null;
15542
15658
  }
15543
15659
  if (s1 !== peg$FAILED) {
15544
- if (input.substr(peg$currPos, 18) === peg$c1428) {
15545
- s2 = peg$c1428;
15660
+ if (input.substr(peg$currPos, 18) === peg$c1431) {
15661
+ s2 = peg$c1431;
15546
15662
  peg$currPos += 18;
15547
15663
  }
15548
15664
  else {
15549
15665
  s2 = peg$FAILED;
15550
15666
  if (peg$silentFails === 0) {
15551
- peg$fail(peg$c1429);
15667
+ peg$fail(peg$c1432);
15552
15668
  }
15553
15669
  }
15554
15670
  if (s2 !== peg$FAILED) {
@@ -15597,7 +15713,7 @@ function peg$parse(input, options) {
15597
15713
  }
15598
15714
  if (s9 !== peg$FAILED) {
15599
15715
  peg$savedPos = s0;
15600
- s1 = peg$c1430(s6);
15716
+ s1 = peg$c1433(s6);
15601
15717
  s0 = s1;
15602
15718
  }
15603
15719
  else {
@@ -15654,14 +15770,14 @@ function peg$parse(input, options) {
15654
15770
  s1 = null;
15655
15771
  }
15656
15772
  if (s1 !== peg$FAILED) {
15657
- if (input.substr(peg$currPos, 12) === peg$c1431) {
15658
- s2 = peg$c1431;
15773
+ if (input.substr(peg$currPos, 12) === peg$c1434) {
15774
+ s2 = peg$c1434;
15659
15775
  peg$currPos += 12;
15660
15776
  }
15661
15777
  else {
15662
15778
  s2 = peg$FAILED;
15663
15779
  if (peg$silentFails === 0) {
15664
- peg$fail(peg$c1432);
15780
+ peg$fail(peg$c1435);
15665
15781
  }
15666
15782
  }
15667
15783
  if (s2 !== peg$FAILED) {
@@ -15710,7 +15826,120 @@ function peg$parse(input, options) {
15710
15826
  }
15711
15827
  if (s9 !== peg$FAILED) {
15712
15828
  peg$savedPos = s0;
15713
- s1 = peg$c1433(s6);
15829
+ s1 = peg$c1436(s6);
15830
+ s0 = s1;
15831
+ }
15832
+ else {
15833
+ peg$currPos = s0;
15834
+ s0 = peg$FAILED;
15835
+ }
15836
+ }
15837
+ else {
15838
+ peg$currPos = s0;
15839
+ s0 = peg$FAILED;
15840
+ }
15841
+ }
15842
+ else {
15843
+ peg$currPos = s0;
15844
+ s0 = peg$FAILED;
15845
+ }
15846
+ }
15847
+ else {
15848
+ peg$currPos = s0;
15849
+ s0 = peg$FAILED;
15850
+ }
15851
+ }
15852
+ else {
15853
+ peg$currPos = s0;
15854
+ s0 = peg$FAILED;
15855
+ }
15856
+ }
15857
+ else {
15858
+ peg$currPos = s0;
15859
+ s0 = peg$FAILED;
15860
+ }
15861
+ }
15862
+ else {
15863
+ peg$currPos = s0;
15864
+ s0 = peg$FAILED;
15865
+ }
15866
+ }
15867
+ else {
15868
+ peg$currPos = s0;
15869
+ s0 = peg$FAILED;
15870
+ }
15871
+ }
15872
+ else {
15873
+ peg$currPos = s0;
15874
+ s0 = peg$FAILED;
15875
+ }
15876
+ return s0;
15877
+ }
15878
+ function peg$parseNpmName() {
15879
+ var s0, s1, s2, s3, s4, s5, s6, s7, s8, s9;
15880
+ s0 = peg$currPos;
15881
+ s1 = peg$parseWS();
15882
+ if (s1 === peg$FAILED) {
15883
+ s1 = null;
15884
+ }
15885
+ if (s1 !== peg$FAILED) {
15886
+ if (input.substr(peg$currPos, 8) === peg$c1437) {
15887
+ s2 = peg$c1437;
15888
+ peg$currPos += 8;
15889
+ }
15890
+ else {
15891
+ s2 = peg$FAILED;
15892
+ if (peg$silentFails === 0) {
15893
+ peg$fail(peg$c1438);
15894
+ }
15895
+ }
15896
+ if (s2 !== peg$FAILED) {
15897
+ s3 = peg$parseWS();
15898
+ if (s3 === peg$FAILED) {
15899
+ s3 = null;
15900
+ }
15901
+ if (s3 !== peg$FAILED) {
15902
+ if (input.charCodeAt(peg$currPos) === 58) {
15903
+ s4 = peg$c1206;
15904
+ peg$currPos++;
15905
+ }
15906
+ else {
15907
+ s4 = peg$FAILED;
15908
+ if (peg$silentFails === 0) {
15909
+ peg$fail(peg$c1207);
15910
+ }
15911
+ }
15912
+ if (s4 !== peg$FAILED) {
15913
+ s5 = peg$parseWS();
15914
+ if (s5 === peg$FAILED) {
15915
+ s5 = null;
15916
+ }
15917
+ if (s5 !== peg$FAILED) {
15918
+ s6 = peg$parseLabel();
15919
+ if (s6 !== peg$FAILED) {
15920
+ s7 = peg$parseWS();
15921
+ if (s7 === peg$FAILED) {
15922
+ s7 = null;
15923
+ }
15924
+ if (s7 !== peg$FAILED) {
15925
+ if (input.charCodeAt(peg$currPos) === 59) {
15926
+ s8 = peg$c1208;
15927
+ peg$currPos++;
15928
+ }
15929
+ else {
15930
+ s8 = peg$FAILED;
15931
+ if (peg$silentFails === 0) {
15932
+ peg$fail(peg$c1209);
15933
+ }
15934
+ }
15935
+ if (s8 !== peg$FAILED) {
15936
+ s9 = peg$parseWS();
15937
+ if (s9 === peg$FAILED) {
15938
+ s9 = null;
15939
+ }
15940
+ if (s9 !== peg$FAILED) {
15941
+ peg$savedPos = s0;
15942
+ s1 = peg$c1439(s6);
15714
15943
  s0 = s1;
15715
15944
  }
15716
15945
  else {
@@ -15767,14 +15996,14 @@ function peg$parse(input, options) {
15767
15996
  s1 = null;
15768
15997
  }
15769
15998
  if (s1 !== peg$FAILED) {
15770
- if (input.substr(peg$currPos, 17) === peg$c1434) {
15771
- s2 = peg$c1434;
15999
+ if (input.substr(peg$currPos, 17) === peg$c1440) {
16000
+ s2 = peg$c1440;
15772
16001
  peg$currPos += 17;
15773
16002
  }
15774
16003
  else {
15775
16004
  s2 = peg$FAILED;
15776
16005
  if (peg$silentFails === 0) {
15777
- peg$fail(peg$c1435);
16006
+ peg$fail(peg$c1441);
15778
16007
  }
15779
16008
  }
15780
16009
  if (s2 !== peg$FAILED) {
@@ -15823,7 +16052,7 @@ function peg$parse(input, options) {
15823
16052
  }
15824
16053
  if (s9 !== peg$FAILED) {
15825
16054
  peg$savedPos = s0;
15826
- s1 = peg$c1436(s6);
16055
+ s1 = peg$c1442(s6);
15827
16056
  s0 = s1;
15828
16057
  }
15829
16058
  else {
@@ -15880,14 +16109,14 @@ function peg$parse(input, options) {
15880
16109
  s1 = null;
15881
16110
  }
15882
16111
  if (s1 !== peg$FAILED) {
15883
- if (input.substr(peg$currPos, 15) === peg$c1437) {
15884
- s2 = peg$c1437;
16112
+ if (input.substr(peg$currPos, 15) === peg$c1443) {
16113
+ s2 = peg$c1443;
15885
16114
  peg$currPos += 15;
15886
16115
  }
15887
16116
  else {
15888
16117
  s2 = peg$FAILED;
15889
16118
  if (peg$silentFails === 0) {
15890
- peg$fail(peg$c1438);
16119
+ peg$fail(peg$c1444);
15891
16120
  }
15892
16121
  }
15893
16122
  if (s2 !== peg$FAILED) {
@@ -15936,7 +16165,7 @@ function peg$parse(input, options) {
15936
16165
  }
15937
16166
  if (s9 !== peg$FAILED) {
15938
16167
  peg$savedPos = s0;
15939
- s1 = peg$c1439(s6);
16168
+ s1 = peg$c1445(s6);
15940
16169
  s0 = s1;
15941
16170
  }
15942
16171
  else {
@@ -15993,14 +16222,14 @@ function peg$parse(input, options) {
15993
16222
  s1 = null;
15994
16223
  }
15995
16224
  if (s1 !== peg$FAILED) {
15996
- if (input.substr(peg$currPos, 15) === peg$c1440) {
15997
- s2 = peg$c1440;
16225
+ if (input.substr(peg$currPos, 15) === peg$c1446) {
16226
+ s2 = peg$c1446;
15998
16227
  peg$currPos += 15;
15999
16228
  }
16000
16229
  else {
16001
16230
  s2 = peg$FAILED;
16002
16231
  if (peg$silentFails === 0) {
16003
- peg$fail(peg$c1441);
16232
+ peg$fail(peg$c1447);
16004
16233
  }
16005
16234
  }
16006
16235
  if (s2 !== peg$FAILED) {
@@ -16049,7 +16278,7 @@ function peg$parse(input, options) {
16049
16278
  }
16050
16279
  if (s9 !== peg$FAILED) {
16051
16280
  peg$savedPos = s0;
16052
- s1 = peg$c1442(s6);
16281
+ s1 = peg$c1448(s6);
16053
16282
  s0 = s1;
16054
16283
  }
16055
16284
  else {
@@ -16106,14 +16335,14 @@ function peg$parse(input, options) {
16106
16335
  s1 = null;
16107
16336
  }
16108
16337
  if (s1 !== peg$FAILED) {
16109
- if (input.substr(peg$currPos, 16) === peg$c1443) {
16110
- s2 = peg$c1443;
16338
+ if (input.substr(peg$currPos, 16) === peg$c1449) {
16339
+ s2 = peg$c1449;
16111
16340
  peg$currPos += 16;
16112
16341
  }
16113
16342
  else {
16114
16343
  s2 = peg$FAILED;
16115
16344
  if (peg$silentFails === 0) {
16116
- peg$fail(peg$c1444);
16345
+ peg$fail(peg$c1450);
16117
16346
  }
16118
16347
  }
16119
16348
  if (s2 !== peg$FAILED) {
@@ -16162,7 +16391,7 @@ function peg$parse(input, options) {
16162
16391
  }
16163
16392
  if (s9 !== peg$FAILED) {
16164
16393
  peg$savedPos = s0;
16165
- s1 = peg$c1445(s6);
16394
+ s1 = peg$c1451(s6);
16166
16395
  s0 = s1;
16167
16396
  }
16168
16397
  else {
@@ -16219,14 +16448,14 @@ function peg$parse(input, options) {
16219
16448
  s1 = null;
16220
16449
  }
16221
16450
  if (s1 !== peg$FAILED) {
16222
- if (input.substr(peg$currPos, 11) === peg$c1446) {
16223
- s2 = peg$c1446;
16451
+ if (input.substr(peg$currPos, 11) === peg$c1452) {
16452
+ s2 = peg$c1452;
16224
16453
  peg$currPos += 11;
16225
16454
  }
16226
16455
  else {
16227
16456
  s2 = peg$FAILED;
16228
16457
  if (peg$silentFails === 0) {
16229
- peg$fail(peg$c1447);
16458
+ peg$fail(peg$c1453);
16230
16459
  }
16231
16460
  }
16232
16461
  if (s2 !== peg$FAILED) {
@@ -16275,7 +16504,7 @@ function peg$parse(input, options) {
16275
16504
  }
16276
16505
  if (s9 !== peg$FAILED) {
16277
16506
  peg$savedPos = s0;
16278
- s1 = peg$c1448(s6);
16507
+ s1 = peg$c1454(s6);
16279
16508
  s0 = s1;
16280
16509
  }
16281
16510
  else {
@@ -16332,14 +16561,14 @@ function peg$parse(input, options) {
16332
16561
  s1 = null;
16333
16562
  }
16334
16563
  if (s1 !== peg$FAILED) {
16335
- if (input.substr(peg$currPos, 5) === peg$c1449) {
16336
- s2 = peg$c1449;
16564
+ if (input.substr(peg$currPos, 5) === peg$c1455) {
16565
+ s2 = peg$c1455;
16337
16566
  peg$currPos += 5;
16338
16567
  }
16339
16568
  else {
16340
16569
  s2 = peg$FAILED;
16341
16570
  if (peg$silentFails === 0) {
16342
- peg$fail(peg$c1450);
16571
+ peg$fail(peg$c1456);
16343
16572
  }
16344
16573
  }
16345
16574
  if (s2 !== peg$FAILED) {
@@ -16388,7 +16617,7 @@ function peg$parse(input, options) {
16388
16617
  }
16389
16618
  if (s9 !== peg$FAILED) {
16390
16619
  peg$savedPos = s0;
16391
- s1 = peg$c1451(s6);
16620
+ s1 = peg$c1457(s6);
16392
16621
  s0 = s1;
16393
16622
  }
16394
16623
  else {
@@ -16445,14 +16674,14 @@ function peg$parse(input, options) {
16445
16674
  s1 = null;
16446
16675
  }
16447
16676
  if (s1 !== peg$FAILED) {
16448
- if (input.substr(peg$currPos, 4) === peg$c1452) {
16449
- s2 = peg$c1452;
16677
+ if (input.substr(peg$currPos, 4) === peg$c1458) {
16678
+ s2 = peg$c1458;
16450
16679
  peg$currPos += 4;
16451
16680
  }
16452
16681
  else {
16453
16682
  s2 = peg$FAILED;
16454
16683
  if (peg$silentFails === 0) {
16455
- peg$fail(peg$c1453);
16684
+ peg$fail(peg$c1459);
16456
16685
  }
16457
16686
  }
16458
16687
  if (s2 !== peg$FAILED) {
@@ -16501,7 +16730,7 @@ function peg$parse(input, options) {
16501
16730
  }
16502
16731
  if (s9 !== peg$FAILED) {
16503
16732
  peg$savedPos = s0;
16504
- s1 = peg$c1454(s6);
16733
+ s1 = peg$c1460(s6);
16505
16734
  s0 = s1;
16506
16735
  }
16507
16736
  else {
@@ -16558,14 +16787,14 @@ function peg$parse(input, options) {
16558
16787
  s1 = null;
16559
16788
  }
16560
16789
  if (s1 !== peg$FAILED) {
16561
- if (input.substr(peg$currPos, 5) === peg$c1455) {
16562
- s2 = peg$c1455;
16790
+ if (input.substr(peg$currPos, 5) === peg$c1461) {
16791
+ s2 = peg$c1461;
16563
16792
  peg$currPos += 5;
16564
16793
  }
16565
16794
  else {
16566
16795
  s2 = peg$FAILED;
16567
16796
  if (peg$silentFails === 0) {
16568
- peg$fail(peg$c1456);
16797
+ peg$fail(peg$c1462);
16569
16798
  }
16570
16799
  }
16571
16800
  if (s2 !== peg$FAILED) {
@@ -16614,7 +16843,7 @@ function peg$parse(input, options) {
16614
16843
  }
16615
16844
  if (s9 !== peg$FAILED) {
16616
16845
  peg$savedPos = s0;
16617
- s1 = peg$c1457(s6);
16846
+ s1 = peg$c1463(s6);
16618
16847
  s0 = s1;
16619
16848
  }
16620
16849
  else {
@@ -16671,14 +16900,14 @@ function peg$parse(input, options) {
16671
16900
  s1 = null;
16672
16901
  }
16673
16902
  if (s1 !== peg$FAILED) {
16674
- if (input.substr(peg$currPos, 12) === peg$c1458) {
16675
- s2 = peg$c1458;
16903
+ if (input.substr(peg$currPos, 12) === peg$c1464) {
16904
+ s2 = peg$c1464;
16676
16905
  peg$currPos += 12;
16677
16906
  }
16678
16907
  else {
16679
16908
  s2 = peg$FAILED;
16680
16909
  if (peg$silentFails === 0) {
16681
- peg$fail(peg$c1459);
16910
+ peg$fail(peg$c1465);
16682
16911
  }
16683
16912
  }
16684
16913
  if (s2 !== peg$FAILED) {
@@ -16727,7 +16956,7 @@ function peg$parse(input, options) {
16727
16956
  }
16728
16957
  if (s9 !== peg$FAILED) {
16729
16958
  peg$savedPos = s0;
16730
- s1 = peg$c1460(s6);
16959
+ s1 = peg$c1466(s6);
16731
16960
  s0 = s1;
16732
16961
  }
16733
16962
  else {
@@ -16783,29 +17012,32 @@ function peg$parse(input, options) {
16783
17012
  if (s0 === peg$FAILED) {
16784
17013
  s0 = peg$parseMachineName();
16785
17014
  if (s0 === peg$FAILED) {
16786
- s0 = peg$parseMachineAuthor();
17015
+ s0 = peg$parseNpmName();
16787
17016
  if (s0 === peg$FAILED) {
16788
- s0 = peg$parseMachineContributor();
17017
+ s0 = peg$parseMachineAuthor();
16789
17018
  if (s0 === peg$FAILED) {
16790
- s0 = peg$parseMachineComment();
17019
+ s0 = peg$parseMachineContributor();
16791
17020
  if (s0 === peg$FAILED) {
16792
- s0 = peg$parseMachineDefinition();
17021
+ s0 = peg$parseMachineComment();
16793
17022
  if (s0 === peg$FAILED) {
16794
- s0 = peg$parseMachineReference();
17023
+ s0 = peg$parseMachineDefinition();
16795
17024
  if (s0 === peg$FAILED) {
16796
- s0 = peg$parseMachineVersion();
17025
+ s0 = peg$parseMachineReference();
16797
17026
  if (s0 === peg$FAILED) {
16798
- s0 = peg$parseMachineLicense();
17027
+ s0 = peg$parseMachineVersion();
16799
17028
  if (s0 === peg$FAILED) {
16800
- s0 = peg$parseMachineLanguage();
17029
+ s0 = peg$parseMachineLicense();
16801
17030
  if (s0 === peg$FAILED) {
16802
- s0 = peg$parseMachineTheme();
17031
+ s0 = peg$parseMachineLanguage();
16803
17032
  if (s0 === peg$FAILED) {
16804
- s0 = peg$parseDotPreamble();
17033
+ s0 = peg$parseMachineTheme();
16805
17034
  if (s0 === peg$FAILED) {
16806
- s0 = peg$parseMachineFlow();
17035
+ s0 = peg$parseDotPreamble();
16807
17036
  if (s0 === peg$FAILED) {
16808
- s0 = peg$parseMachineHookDefinition();
17037
+ s0 = peg$parseMachineFlow();
17038
+ if (s0 === peg$FAILED) {
17039
+ s0 = peg$parseMachineHookDefinition();
17040
+ }
16809
17041
  }
16810
17042
  }
16811
17043
  }
@@ -16822,7 +17054,7 @@ function peg$parse(input, options) {
16822
17054
  peg$silentFails--;
16823
17055
  if (s0 === peg$FAILED) {
16824
17056
  if (peg$silentFails === 0) {
16825
- peg$fail(peg$c1461);
17057
+ peg$fail(peg$c1467);
16826
17058
  }
16827
17059
  }
16828
17060
  return s0;
@@ -16853,14 +17085,14 @@ function peg$parse(input, options) {
16853
17085
  s1 = null;
16854
17086
  }
16855
17087
  if (s1 !== peg$FAILED) {
16856
- if (input.substr(peg$currPos, 5) === peg$c1462) {
16857
- s2 = peg$c1462;
17088
+ if (input.substr(peg$currPos, 5) === peg$c1468) {
17089
+ s2 = peg$c1468;
16858
17090
  peg$currPos += 5;
16859
17091
  }
16860
17092
  else {
16861
17093
  s2 = peg$FAILED;
16862
17094
  if (peg$silentFails === 0) {
16863
- peg$fail(peg$c1463);
17095
+ peg$fail(peg$c1469);
16864
17096
  }
16865
17097
  }
16866
17098
  if (s2 !== peg$FAILED) {
@@ -16909,7 +17141,7 @@ function peg$parse(input, options) {
16909
17141
  }
16910
17142
  if (s9 !== peg$FAILED) {
16911
17143
  peg$savedPos = s0;
16912
- s1 = peg$c1464(s6);
17144
+ s1 = peg$c1470(s6);
16913
17145
  s0 = s1;
16914
17146
  }
16915
17147
  else {
@@ -16974,14 +17206,14 @@ function peg$parse(input, options) {
16974
17206
  s1 = null;
16975
17207
  }
16976
17208
  if (s1 !== peg$FAILED) {
16977
- if (input.substr(peg$currPos, 5) === peg$c1465) {
16978
- s2 = peg$c1465;
17209
+ if (input.substr(peg$currPos, 5) === peg$c1471) {
17210
+ s2 = peg$c1471;
16979
17211
  peg$currPos += 5;
16980
17212
  }
16981
17213
  else {
16982
17214
  s2 = peg$FAILED;
16983
17215
  if (peg$silentFails === 0) {
16984
- peg$fail(peg$c1466);
17216
+ peg$fail(peg$c1472);
16985
17217
  }
16986
17218
  }
16987
17219
  if (s2 !== peg$FAILED) {
@@ -17030,7 +17262,7 @@ function peg$parse(input, options) {
17030
17262
  }
17031
17263
  if (s9 !== peg$FAILED) {
17032
17264
  peg$savedPos = s0;
17033
- s1 = peg$c1467(s6);
17265
+ s1 = peg$c1473(s6);
17034
17266
  s0 = s1;
17035
17267
  }
17036
17268
  else {
@@ -17095,14 +17327,14 @@ function peg$parse(input, options) {
17095
17327
  s1 = null;
17096
17328
  }
17097
17329
  if (s1 !== peg$FAILED) {
17098
- if (input.substr(peg$currPos, 10) === peg$c1469) {
17099
- s2 = peg$c1469;
17330
+ if (input.substr(peg$currPos, 10) === peg$c1475) {
17331
+ s2 = peg$c1475;
17100
17332
  peg$currPos += 10;
17101
17333
  }
17102
17334
  else {
17103
17335
  s2 = peg$FAILED;
17104
17336
  if (peg$silentFails === 0) {
17105
- peg$fail(peg$c1470);
17337
+ peg$fail(peg$c1476);
17106
17338
  }
17107
17339
  }
17108
17340
  if (s2 !== peg$FAILED) {
@@ -17151,7 +17383,7 @@ function peg$parse(input, options) {
17151
17383
  }
17152
17384
  if (s9 !== peg$FAILED) {
17153
17385
  peg$savedPos = s0;
17154
- s1 = peg$c1471(s6);
17386
+ s1 = peg$c1477(s6);
17155
17387
  s0 = s1;
17156
17388
  }
17157
17389
  else {
@@ -17202,7 +17434,7 @@ function peg$parse(input, options) {
17202
17434
  if (s0 === peg$FAILED) {
17203
17435
  s1 = peg$FAILED;
17204
17436
  if (peg$silentFails === 0) {
17205
- peg$fail(peg$c1468);
17437
+ peg$fail(peg$c1474);
17206
17438
  }
17207
17439
  }
17208
17440
  return s0;
@@ -17216,14 +17448,14 @@ function peg$parse(input, options) {
17216
17448
  s1 = null;
17217
17449
  }
17218
17450
  if (s1 !== peg$FAILED) {
17219
- if (input.substr(peg$currPos, 16) === peg$c1473) {
17220
- s2 = peg$c1473;
17451
+ if (input.substr(peg$currPos, 16) === peg$c1479) {
17452
+ s2 = peg$c1479;
17221
17453
  peg$currPos += 16;
17222
17454
  }
17223
17455
  else {
17224
17456
  s2 = peg$FAILED;
17225
17457
  if (peg$silentFails === 0) {
17226
- peg$fail(peg$c1474);
17458
+ peg$fail(peg$c1480);
17227
17459
  }
17228
17460
  }
17229
17461
  if (s2 !== peg$FAILED) {
@@ -17272,7 +17504,7 @@ function peg$parse(input, options) {
17272
17504
  }
17273
17505
  if (s9 !== peg$FAILED) {
17274
17506
  peg$savedPos = s0;
17275
- s1 = peg$c1475(s6);
17507
+ s1 = peg$c1481(s6);
17276
17508
  s0 = s1;
17277
17509
  }
17278
17510
  else {
@@ -17323,7 +17555,7 @@ function peg$parse(input, options) {
17323
17555
  if (s0 === peg$FAILED) {
17324
17556
  s1 = peg$FAILED;
17325
17557
  if (peg$silentFails === 0) {
17326
- peg$fail(peg$c1472);
17558
+ peg$fail(peg$c1478);
17327
17559
  }
17328
17560
  }
17329
17561
  return s0;
@@ -17337,14 +17569,14 @@ function peg$parse(input, options) {
17337
17569
  s1 = null;
17338
17570
  }
17339
17571
  if (s1 !== peg$FAILED) {
17340
- if (input.substr(peg$currPos, 12) === peg$c1477) {
17341
- s2 = peg$c1477;
17572
+ if (input.substr(peg$currPos, 12) === peg$c1483) {
17573
+ s2 = peg$c1483;
17342
17574
  peg$currPos += 12;
17343
17575
  }
17344
17576
  else {
17345
17577
  s2 = peg$FAILED;
17346
17578
  if (peg$silentFails === 0) {
17347
- peg$fail(peg$c1478);
17579
+ peg$fail(peg$c1484);
17348
17580
  }
17349
17581
  }
17350
17582
  if (s2 !== peg$FAILED) {
@@ -17393,7 +17625,7 @@ function peg$parse(input, options) {
17393
17625
  }
17394
17626
  if (s9 !== peg$FAILED) {
17395
17627
  peg$savedPos = s0;
17396
- s1 = peg$c1479(s6);
17628
+ s1 = peg$c1485(s6);
17397
17629
  s0 = s1;
17398
17630
  }
17399
17631
  else {
@@ -17444,7 +17676,7 @@ function peg$parse(input, options) {
17444
17676
  if (s0 === peg$FAILED) {
17445
17677
  s1 = peg$FAILED;
17446
17678
  if (peg$silentFails === 0) {
17447
- peg$fail(peg$c1476);
17679
+ peg$fail(peg$c1482);
17448
17680
  }
17449
17681
  }
17450
17682
  return s0;
@@ -17458,14 +17690,14 @@ function peg$parse(input, options) {
17458
17690
  s1 = null;
17459
17691
  }
17460
17692
  if (s1 !== peg$FAILED) {
17461
- if (input.substr(peg$currPos, 5) === peg$c1481) {
17462
- s2 = peg$c1481;
17693
+ if (input.substr(peg$currPos, 5) === peg$c1487) {
17694
+ s2 = peg$c1487;
17463
17695
  peg$currPos += 5;
17464
17696
  }
17465
17697
  else {
17466
17698
  s2 = peg$FAILED;
17467
17699
  if (peg$silentFails === 0) {
17468
- peg$fail(peg$c1482);
17700
+ peg$fail(peg$c1488);
17469
17701
  }
17470
17702
  }
17471
17703
  if (s2 !== peg$FAILED) {
@@ -17514,7 +17746,7 @@ function peg$parse(input, options) {
17514
17746
  }
17515
17747
  if (s9 !== peg$FAILED) {
17516
17748
  peg$savedPos = s0;
17517
- s1 = peg$c1483(s6);
17749
+ s1 = peg$c1489(s6);
17518
17750
  s0 = s1;
17519
17751
  }
17520
17752
  else {
@@ -17565,7 +17797,7 @@ function peg$parse(input, options) {
17565
17797
  if (s0 === peg$FAILED) {
17566
17798
  s1 = peg$FAILED;
17567
17799
  if (peg$silentFails === 0) {
17568
- peg$fail(peg$c1480);
17800
+ peg$fail(peg$c1486);
17569
17801
  }
17570
17802
  }
17571
17803
  return s0;
@@ -17579,14 +17811,14 @@ function peg$parse(input, options) {
17579
17811
  s1 = null;
17580
17812
  }
17581
17813
  if (s1 !== peg$FAILED) {
17582
- if (input.substr(peg$currPos, 7) === peg$c1485) {
17583
- s2 = peg$c1485;
17814
+ if (input.substr(peg$currPos, 7) === peg$c1491) {
17815
+ s2 = peg$c1491;
17584
17816
  peg$currPos += 7;
17585
17817
  }
17586
17818
  else {
17587
17819
  s2 = peg$FAILED;
17588
17820
  if (peg$silentFails === 0) {
17589
- peg$fail(peg$c1486);
17821
+ peg$fail(peg$c1492);
17590
17822
  }
17591
17823
  }
17592
17824
  if (s2 !== peg$FAILED) {
@@ -17635,7 +17867,7 @@ function peg$parse(input, options) {
17635
17867
  }
17636
17868
  if (s9 !== peg$FAILED) {
17637
17869
  peg$savedPos = s0;
17638
- s1 = peg$c1487(s6);
17870
+ s1 = peg$c1493(s6);
17639
17871
  s0 = s1;
17640
17872
  }
17641
17873
  else {
@@ -17686,7 +17918,7 @@ function peg$parse(input, options) {
17686
17918
  if (s0 === peg$FAILED) {
17687
17919
  s1 = peg$FAILED;
17688
17920
  if (peg$silentFails === 0) {
17689
- peg$fail(peg$c1484);
17921
+ peg$fail(peg$c1490);
17690
17922
  }
17691
17923
  }
17692
17924
  return s0;
@@ -17756,7 +17988,7 @@ function peg$parse(input, options) {
17756
17988
  }
17757
17989
  if (s9 !== peg$FAILED) {
17758
17990
  peg$savedPos = s0;
17759
- s1 = peg$c1489(s6);
17991
+ s1 = peg$c1495(s6);
17760
17992
  s0 = s1;
17761
17993
  }
17762
17994
  else {
@@ -17810,14 +18042,14 @@ function peg$parse(input, options) {
17810
18042
  s1 = null;
17811
18043
  }
17812
18044
  if (s1 !== peg$FAILED) {
17813
- if (input.substr(peg$currPos, 9) === peg$c1490) {
17814
- s2 = peg$c1490;
18045
+ if (input.substr(peg$currPos, 9) === peg$c1496) {
18046
+ s2 = peg$c1496;
17815
18047
  peg$currPos += 9;
17816
18048
  }
17817
18049
  else {
17818
18050
  s2 = peg$FAILED;
17819
18051
  if (peg$silentFails === 0) {
17820
- peg$fail(peg$c1491);
18052
+ peg$fail(peg$c1497);
17821
18053
  }
17822
18054
  }
17823
18055
  if (s2 !== peg$FAILED) {
@@ -17866,7 +18098,7 @@ function peg$parse(input, options) {
17866
18098
  }
17867
18099
  if (s9 !== peg$FAILED) {
17868
18100
  peg$savedPos = s0;
17869
- s1 = peg$c1489(s6);
18101
+ s1 = peg$c1495(s6);
17870
18102
  s0 = s1;
17871
18103
  }
17872
18104
  else {
@@ -17918,7 +18150,7 @@ function peg$parse(input, options) {
17918
18150
  if (s0 === peg$FAILED) {
17919
18151
  s1 = peg$FAILED;
17920
18152
  if (peg$silentFails === 0) {
17921
- peg$fail(peg$c1488);
18153
+ peg$fail(peg$c1494);
17922
18154
  }
17923
18155
  }
17924
18156
  return s0;
@@ -17932,14 +18164,14 @@ function peg$parse(input, options) {
17932
18164
  s1 = null;
17933
18165
  }
17934
18166
  if (s1 !== peg$FAILED) {
17935
- if (input.substr(peg$currPos, 5) === peg$c1493) {
17936
- s2 = peg$c1493;
18167
+ if (input.substr(peg$currPos, 5) === peg$c1499) {
18168
+ s2 = peg$c1499;
17937
18169
  peg$currPos += 5;
17938
18170
  }
17939
18171
  else {
17940
18172
  s2 = peg$FAILED;
17941
18173
  if (peg$silentFails === 0) {
17942
- peg$fail(peg$c1494);
18174
+ peg$fail(peg$c1500);
17943
18175
  }
17944
18176
  }
17945
18177
  if (s2 !== peg$FAILED) {
@@ -17988,7 +18220,7 @@ function peg$parse(input, options) {
17988
18220
  }
17989
18221
  if (s9 !== peg$FAILED) {
17990
18222
  peg$savedPos = s0;
17991
- s1 = peg$c1495(s6);
18223
+ s1 = peg$c1501(s6);
17992
18224
  s0 = s1;
17993
18225
  }
17994
18226
  else {
@@ -18039,7 +18271,7 @@ function peg$parse(input, options) {
18039
18271
  if (s0 === peg$FAILED) {
18040
18272
  s1 = peg$FAILED;
18041
18273
  if (peg$silentFails === 0) {
18042
- peg$fail(peg$c1492);
18274
+ peg$fail(peg$c1498);
18043
18275
  }
18044
18276
  }
18045
18277
  return s0;
@@ -18053,14 +18285,14 @@ function peg$parse(input, options) {
18053
18285
  s1 = null;
18054
18286
  }
18055
18287
  if (s1 !== peg$FAILED) {
18056
- if (input.substr(peg$currPos, 3) === peg$c1497) {
18057
- s2 = peg$c1497;
18288
+ if (input.substr(peg$currPos, 3) === peg$c1503) {
18289
+ s2 = peg$c1503;
18058
18290
  peg$currPos += 3;
18059
18291
  }
18060
18292
  else {
18061
18293
  s2 = peg$FAILED;
18062
18294
  if (peg$silentFails === 0) {
18063
- peg$fail(peg$c1498);
18295
+ peg$fail(peg$c1504);
18064
18296
  }
18065
18297
  }
18066
18298
  if (s2 !== peg$FAILED) {
@@ -18109,7 +18341,7 @@ function peg$parse(input, options) {
18109
18341
  }
18110
18342
  if (s9 !== peg$FAILED) {
18111
18343
  peg$savedPos = s0;
18112
- s1 = peg$c1499(s6);
18344
+ s1 = peg$c1505(s6);
18113
18345
  s0 = s1;
18114
18346
  }
18115
18347
  else {
@@ -18160,7 +18392,7 @@ function peg$parse(input, options) {
18160
18392
  if (s0 === peg$FAILED) {
18161
18393
  s1 = peg$FAILED;
18162
18394
  if (peg$silentFails === 0) {
18163
- peg$fail(peg$c1496);
18395
+ peg$fail(peg$c1502);
18164
18396
  }
18165
18397
  }
18166
18398
  return s0;
@@ -18174,14 +18406,14 @@ function peg$parse(input, options) {
18174
18406
  s1 = null;
18175
18407
  }
18176
18408
  if (s1 !== peg$FAILED) {
18177
- if (input.substr(peg$currPos, 8) === peg$c1501) {
18178
- s2 = peg$c1501;
18409
+ if (input.substr(peg$currPos, 8) === peg$c1507) {
18410
+ s2 = peg$c1507;
18179
18411
  peg$currPos += 8;
18180
18412
  }
18181
18413
  else {
18182
18414
  s2 = peg$FAILED;
18183
18415
  if (peg$silentFails === 0) {
18184
- peg$fail(peg$c1502);
18416
+ peg$fail(peg$c1508);
18185
18417
  }
18186
18418
  }
18187
18419
  if (s2 !== peg$FAILED) {
@@ -18234,7 +18466,7 @@ function peg$parse(input, options) {
18234
18466
  }
18235
18467
  if (s11 !== peg$FAILED) {
18236
18468
  peg$savedPos = s0;
18237
- s1 = peg$c1503(s6, s8);
18469
+ s1 = peg$c1509(s6, s8);
18238
18470
  s0 = s1;
18239
18471
  }
18240
18472
  else {
@@ -18298,14 +18530,14 @@ function peg$parse(input, options) {
18298
18530
  s1 = null;
18299
18531
  }
18300
18532
  if (s1 !== peg$FAILED) {
18301
- if (input.substr(peg$currPos, 8) === peg$c1501) {
18302
- s2 = peg$c1501;
18533
+ if (input.substr(peg$currPos, 8) === peg$c1507) {
18534
+ s2 = peg$c1507;
18303
18535
  peg$currPos += 8;
18304
18536
  }
18305
18537
  else {
18306
18538
  s2 = peg$FAILED;
18307
18539
  if (peg$silentFails === 0) {
18308
- peg$fail(peg$c1502);
18540
+ peg$fail(peg$c1508);
18309
18541
  }
18310
18542
  }
18311
18543
  if (s2 !== peg$FAILED) {
@@ -18338,14 +18570,14 @@ function peg$parse(input, options) {
18338
18570
  if (s8 !== peg$FAILED) {
18339
18571
  s9 = peg$parseWS();
18340
18572
  if (s9 !== peg$FAILED) {
18341
- if (input.substr(peg$currPos, 8) === peg$c1504) {
18342
- s10 = peg$c1504;
18573
+ if (input.substr(peg$currPos, 8) === peg$c1510) {
18574
+ s10 = peg$c1510;
18343
18575
  peg$currPos += 8;
18344
18576
  }
18345
18577
  else {
18346
18578
  s10 = peg$FAILED;
18347
18579
  if (peg$silentFails === 0) {
18348
- peg$fail(peg$c1505);
18580
+ peg$fail(peg$c1511);
18349
18581
  }
18350
18582
  }
18351
18583
  if (s10 !== peg$FAILED) {
@@ -18371,7 +18603,7 @@ function peg$parse(input, options) {
18371
18603
  }
18372
18604
  if (s13 !== peg$FAILED) {
18373
18605
  peg$savedPos = s0;
18374
- s1 = peg$c1506(s6, s8);
18606
+ s1 = peg$c1512(s6, s8);
18375
18607
  s0 = s1;
18376
18608
  }
18377
18609
  else {
@@ -18443,7 +18675,7 @@ function peg$parse(input, options) {
18443
18675
  if (s0 === peg$FAILED) {
18444
18676
  s1 = peg$FAILED;
18445
18677
  if (peg$silentFails === 0) {
18446
- peg$fail(peg$c1500);
18678
+ peg$fail(peg$c1506);
18447
18679
  }
18448
18680
  }
18449
18681
  return s0;
@@ -18623,7 +18855,7 @@ function peg$parse(input, options) {
18623
18855
  }
18624
18856
  if (s11 !== peg$FAILED) {
18625
18857
  peg$savedPos = s0;
18626
- s1 = peg$c1507(s4, s8);
18858
+ s1 = peg$c1513(s4, s8);
18627
18859
  s0 = s1;
18628
18860
  }
18629
18861
  else {
@@ -18691,13 +18923,13 @@ function peg$parse(input, options) {
18691
18923
  }
18692
18924
  if (s1 !== peg$FAILED) {
18693
18925
  if (input.charCodeAt(peg$currPos) === 38) {
18694
- s2 = peg$c1508;
18926
+ s2 = peg$c1514;
18695
18927
  peg$currPos++;
18696
18928
  }
18697
18929
  else {
18698
18930
  s2 = peg$FAILED;
18699
18931
  if (peg$silentFails === 0) {
18700
- peg$fail(peg$c1509);
18932
+ peg$fail(peg$c1515);
18701
18933
  }
18702
18934
  }
18703
18935
  if (s2 !== peg$FAILED) {
@@ -18753,7 +18985,7 @@ function peg$parse(input, options) {
18753
18985
  }
18754
18986
  if (s11 !== peg$FAILED) {
18755
18987
  peg$savedPos = s0;
18756
- s1 = peg$c1510(s4, s8);
18988
+ s1 = peg$c1516(s4, s8);
18757
18989
  s0 = s1;
18758
18990
  }
18759
18991
  else {
@@ -18820,14 +19052,14 @@ function peg$parse(input, options) {
18820
19052
  s1 = null;
18821
19053
  }
18822
19054
  if (s1 !== peg$FAILED) {
18823
- if (input.substr(peg$currPos, 8) === peg$c1501) {
18824
- s2 = peg$c1501;
19055
+ if (input.substr(peg$currPos, 8) === peg$c1507) {
19056
+ s2 = peg$c1507;
18825
19057
  peg$currPos += 8;
18826
19058
  }
18827
19059
  else {
18828
19060
  s2 = peg$FAILED;
18829
19061
  if (peg$silentFails === 0) {
18830
- peg$fail(peg$c1502);
19062
+ peg$fail(peg$c1508);
18831
19063
  }
18832
19064
  }
18833
19065
  if (s2 !== peg$FAILED) {
@@ -18854,14 +19086,14 @@ function peg$parse(input, options) {
18854
19086
  if (s8 !== peg$FAILED) {
18855
19087
  s9 = peg$parseWS();
18856
19088
  if (s9 !== peg$FAILED) {
18857
- if (input.substr(peg$currPos, 8) === peg$c1504) {
18858
- s10 = peg$c1504;
19089
+ if (input.substr(peg$currPos, 8) === peg$c1510) {
19090
+ s10 = peg$c1510;
18859
19091
  peg$currPos += 8;
18860
19092
  }
18861
19093
  else {
18862
19094
  s10 = peg$FAILED;
18863
19095
  if (peg$silentFails === 0) {
18864
- peg$fail(peg$c1505);
19096
+ peg$fail(peg$c1511);
18865
19097
  }
18866
19098
  }
18867
19099
  if (s10 !== peg$FAILED) {
@@ -18887,7 +19119,7 @@ function peg$parse(input, options) {
18887
19119
  }
18888
19120
  if (s13 !== peg$FAILED) {
18889
19121
  peg$savedPos = s0;
18890
- s1 = peg$c1511(s4, s8);
19122
+ s1 = peg$c1517(s4, s8);
18891
19123
  s0 = s1;
18892
19124
  }
18893
19125
  else {
@@ -18961,14 +19193,14 @@ function peg$parse(input, options) {
18961
19193
  s1 = null;
18962
19194
  }
18963
19195
  if (s1 !== peg$FAILED) {
18964
- if (input.substr(peg$currPos, 8) === peg$c1501) {
18965
- s2 = peg$c1501;
19196
+ if (input.substr(peg$currPos, 8) === peg$c1507) {
19197
+ s2 = peg$c1507;
18966
19198
  peg$currPos += 8;
18967
19199
  }
18968
19200
  else {
18969
19201
  s2 = peg$FAILED;
18970
19202
  if (peg$silentFails === 0) {
18971
- peg$fail(peg$c1502);
19203
+ peg$fail(peg$c1508);
18972
19204
  }
18973
19205
  }
18974
19206
  if (s2 !== peg$FAILED) {
@@ -18978,14 +19210,14 @@ function peg$parse(input, options) {
18978
19210
  if (s4 !== peg$FAILED) {
18979
19211
  s5 = peg$parseWS();
18980
19212
  if (s5 !== peg$FAILED) {
18981
- if (input.substr(peg$currPos, 8) === peg$c1504) {
18982
- s6 = peg$c1504;
19213
+ if (input.substr(peg$currPos, 8) === peg$c1510) {
19214
+ s6 = peg$c1510;
18983
19215
  peg$currPos += 8;
18984
19216
  }
18985
19217
  else {
18986
19218
  s6 = peg$FAILED;
18987
19219
  if (peg$silentFails === 0) {
18988
- peg$fail(peg$c1505);
19220
+ peg$fail(peg$c1511);
18989
19221
  }
18990
19222
  }
18991
19223
  if (s6 !== peg$FAILED) {
@@ -19011,7 +19243,7 @@ function peg$parse(input, options) {
19011
19243
  }
19012
19244
  if (s9 !== peg$FAILED) {
19013
19245
  peg$savedPos = s0;
19014
- s1 = peg$c1512(s4);
19246
+ s1 = peg$c1518(s4);
19015
19247
  s0 = s1;
19016
19248
  }
19017
19249
  else {
@@ -19065,14 +19297,14 @@ function peg$parse(input, options) {
19065
19297
  s1 = null;
19066
19298
  }
19067
19299
  if (s1 !== peg$FAILED) {
19068
- if (input.substr(peg$currPos, 8) === peg$c1501) {
19069
- s2 = peg$c1501;
19300
+ if (input.substr(peg$currPos, 8) === peg$c1507) {
19301
+ s2 = peg$c1507;
19070
19302
  peg$currPos += 8;
19071
19303
  }
19072
19304
  else {
19073
19305
  s2 = peg$FAILED;
19074
19306
  if (peg$silentFails === 0) {
19075
- peg$fail(peg$c1502);
19307
+ peg$fail(peg$c1508);
19076
19308
  }
19077
19309
  }
19078
19310
  if (s2 !== peg$FAILED) {
@@ -19119,7 +19351,7 @@ function peg$parse(input, options) {
19119
19351
  }
19120
19352
  if (s11 !== peg$FAILED) {
19121
19353
  peg$savedPos = s0;
19122
- s1 = peg$c1513(s4, s8);
19354
+ s1 = peg$c1519(s4, s8);
19123
19355
  s0 = s1;
19124
19356
  }
19125
19357
  else {
@@ -19183,14 +19415,14 @@ function peg$parse(input, options) {
19183
19415
  s1 = null;
19184
19416
  }
19185
19417
  if (s1 !== peg$FAILED) {
19186
- if (input.substr(peg$currPos, 8) === peg$c1501) {
19187
- s2 = peg$c1501;
19418
+ if (input.substr(peg$currPos, 8) === peg$c1507) {
19419
+ s2 = peg$c1507;
19188
19420
  peg$currPos += 8;
19189
19421
  }
19190
19422
  else {
19191
19423
  s2 = peg$FAILED;
19192
19424
  if (peg$silentFails === 0) {
19193
- peg$fail(peg$c1502);
19425
+ peg$fail(peg$c1508);
19194
19426
  }
19195
19427
  }
19196
19428
  if (s2 !== peg$FAILED) {
@@ -19220,7 +19452,7 @@ function peg$parse(input, options) {
19220
19452
  }
19221
19453
  if (s7 !== peg$FAILED) {
19222
19454
  peg$savedPos = s0;
19223
- s1 = peg$c1514(s4);
19455
+ s1 = peg$c1520(s4);
19224
19456
  s0 = s1;
19225
19457
  }
19226
19458
  else {
@@ -19265,14 +19497,14 @@ function peg$parse(input, options) {
19265
19497
  function peg$parseRegularArrangeDeclaration() {
19266
19498
  var s0, s1, s2, s3, s4, s5, s6;
19267
19499
  s0 = peg$currPos;
19268
- if (input.substr(peg$currPos, 7) === peg$c1515) {
19269
- s1 = peg$c1515;
19500
+ if (input.substr(peg$currPos, 7) === peg$c1521) {
19501
+ s1 = peg$c1521;
19270
19502
  peg$currPos += 7;
19271
19503
  }
19272
19504
  else {
19273
19505
  s1 = peg$FAILED;
19274
19506
  if (peg$silentFails === 0) {
19275
- peg$fail(peg$c1516);
19507
+ peg$fail(peg$c1522);
19276
19508
  }
19277
19509
  }
19278
19510
  if (s1 !== peg$FAILED) {
@@ -19305,7 +19537,7 @@ function peg$parse(input, options) {
19305
19537
  }
19306
19538
  if (s6 !== peg$FAILED) {
19307
19539
  peg$savedPos = s0;
19308
- s1 = peg$c1517(s3);
19540
+ s1 = peg$c1523(s3);
19309
19541
  s0 = s1;
19310
19542
  }
19311
19543
  else {
@@ -19342,14 +19574,14 @@ function peg$parse(input, options) {
19342
19574
  function peg$parseArrangeStartDeclaration() {
19343
19575
  var s0, s1, s2, s3, s4, s5, s6;
19344
19576
  s0 = peg$currPos;
19345
- if (input.substr(peg$currPos, 13) === peg$c1518) {
19346
- s1 = peg$c1518;
19577
+ if (input.substr(peg$currPos, 13) === peg$c1524) {
19578
+ s1 = peg$c1524;
19347
19579
  peg$currPos += 13;
19348
19580
  }
19349
19581
  else {
19350
19582
  s1 = peg$FAILED;
19351
19583
  if (peg$silentFails === 0) {
19352
- peg$fail(peg$c1519);
19584
+ peg$fail(peg$c1525);
19353
19585
  }
19354
19586
  }
19355
19587
  if (s1 !== peg$FAILED) {
@@ -19382,7 +19614,7 @@ function peg$parse(input, options) {
19382
19614
  }
19383
19615
  if (s6 !== peg$FAILED) {
19384
19616
  peg$savedPos = s0;
19385
- s1 = peg$c1520(s3);
19617
+ s1 = peg$c1526(s3);
19386
19618
  s0 = s1;
19387
19619
  }
19388
19620
  else {
@@ -19419,14 +19651,14 @@ function peg$parse(input, options) {
19419
19651
  function peg$parseArrangeEndDeclaration() {
19420
19652
  var s0, s1, s2, s3, s4, s5, s6;
19421
19653
  s0 = peg$currPos;
19422
- if (input.substr(peg$currPos, 11) === peg$c1521) {
19423
- s1 = peg$c1521;
19654
+ if (input.substr(peg$currPos, 11) === peg$c1527) {
19655
+ s1 = peg$c1527;
19424
19656
  peg$currPos += 11;
19425
19657
  }
19426
19658
  else {
19427
19659
  s1 = peg$FAILED;
19428
19660
  if (peg$silentFails === 0) {
19429
- peg$fail(peg$c1522);
19661
+ peg$fail(peg$c1528);
19430
19662
  }
19431
19663
  }
19432
19664
  if (s1 !== peg$FAILED) {
@@ -19459,7 +19691,7 @@ function peg$parse(input, options) {
19459
19691
  }
19460
19692
  if (s6 !== peg$FAILED) {
19461
19693
  peg$savedPos = s0;
19462
- s1 = peg$c1523(s3);
19694
+ s1 = peg$c1529(s3);
19463
19695
  s0 = s1;
19464
19696
  }
19465
19697
  else {
@@ -19506,7 +19738,7 @@ function peg$parse(input, options) {
19506
19738
  peg$silentFails--;
19507
19739
  if (s0 === peg$FAILED) {
19508
19740
  if (peg$silentFails === 0) {
19509
- peg$fail(peg$c1524);
19741
+ peg$fail(peg$c1530);
19510
19742
  }
19511
19743
  }
19512
19744
  return s0;
@@ -20824,13 +21056,13 @@ function compile_rule_handler(rule) {
20824
21056
  }
20825
21057
  // things that can only exist once and are just a value under their own name
20826
21058
  const tautologies = [
20827
- 'graph_layout', 'start_states', 'end_states', 'machine_name', 'machine_version',
21059
+ 'graph_layout', 'start_states', 'end_states', 'failed_outputs', 'machine_name', 'machine_version',
20828
21060
  'machine_comment', 'machine_author', 'machine_contributor', 'machine_definition',
20829
21061
  'machine_reference', 'machine_license', 'fsl_version', 'state_config', 'theme',
20830
21062
  'flow', 'dot_preamble', 'allows_override', 'default_state_config',
20831
21063
  'default_start_state_config', 'default_end_state_config',
20832
21064
  'default_hooked_state_config', 'default_active_state_config',
20833
- 'default_terminal_state_config'
21065
+ 'default_terminal_state_config', 'npm_name'
20834
21066
  ];
20835
21067
  if (tautologies.includes(rule.key)) {
20836
21068
  return { agg_as: rule.key, val: rule.value };
@@ -20894,6 +21126,7 @@ function compile(tree) {
20894
21126
  transition: [],
20895
21127
  start_states: [],
20896
21128
  end_states: [],
21129
+ failed_outputs: [],
20897
21130
  state_config: [],
20898
21131
  state_declaration: [],
20899
21132
  fsl_version: [],
@@ -20905,6 +21138,7 @@ function compile(tree) {
20905
21138
  machine_license: [],
20906
21139
  machine_name: [],
20907
21140
  machine_reference: [],
21141
+ npm_name: [],
20908
21142
  property_definition: [],
20909
21143
  state_property: {},
20910
21144
  theme: [],
@@ -20934,13 +21168,14 @@ function compile(tree) {
20934
21168
  const result_cfg = {
20935
21169
  start_states: results.start_states.length ? results.start_states : [assembled_transitions[0].from],
20936
21170
  end_states: results.end_states,
21171
+ failed_outputs: results.failed_outputs,
20937
21172
  transitions: assembled_transitions,
20938
21173
  state_property: [],
20939
21174
  };
20940
21175
  const oneOnlyKeys = [
20941
21176
  'graph_layout', 'machine_name', 'machine_version', 'machine_comment',
20942
21177
  'fsl_version', 'machine_license', 'machine_definition', 'machine_language',
20943
- 'flow', 'dot_preamble', 'allows_override'
21178
+ 'flow', 'dot_preamble', 'allows_override', 'npm_name'
20944
21179
  ];
20945
21180
  oneOnlyKeys.map((oneOnlyKey) => {
20946
21181
  if (results[oneOnlyKey].length > 1) {
@@ -21455,7 +21690,7 @@ var constants = /*#__PURE__*/Object.freeze({
21455
21690
  * Useful for runtime diagnostics and for embedding in serialized machine
21456
21691
  * snapshots so that deserializers can detect version-skew.
21457
21692
  */
21458
- const version = "5.142.0";
21693
+ const version = "5.142.2";
21459
21694
 
21460
21695
  // whargarbl lots of these return arrays could/should be sets
21461
21696
  const { state_name_chars, state_name_first_chars, action_label_chars } = constants;
@@ -21647,7 +21882,7 @@ function state_style_condense(jssk, machine) {
21647
21882
  */
21648
21883
  class Machine {
21649
21884
  // whargarbl this badly needs to be broken up, monolith master
21650
- constructor({ start_states, end_states = [], initial_state, start_states_no_enforce, complete = [], transitions, machine_author, machine_comment, machine_contributor, machine_definition, machine_language, machine_license, machine_name, machine_version, state_declaration, property_definition, state_property, fsl_version, dot_preamble = undefined, arrange_declaration = [], arrange_start_declaration = [], arrange_end_declaration = [], theme = ['default'], flow = 'down', graph_layout = 'dot', instance_name, history, data, default_state_config, default_active_state_config, default_hooked_state_config, default_terminal_state_config, default_start_state_config, default_end_state_config, allows_override, config_allows_override, rng_seed, time_source, timeout_source, clear_timeout_source }) {
21885
+ constructor({ start_states, end_states = [], failed_outputs = [], initial_state, start_states_no_enforce, complete = [], transitions, machine_author, machine_comment, machine_contributor, machine_definition, machine_language, machine_license, machine_name, machine_version, npm_name, state_declaration, property_definition, state_property, fsl_version, dot_preamble = undefined, arrange_declaration = [], arrange_start_declaration = [], arrange_end_declaration = [], theme = ['default'], flow = 'down', graph_layout = 'dot', instance_name, history, data, default_state_config, default_active_state_config, default_hooked_state_config, default_terminal_state_config, default_start_state_config, default_end_state_config, allows_override, config_allows_override, rng_seed, time_source, timeout_source, clear_timeout_source }) {
21651
21886
  this._time_source = () => new Date().getTime();
21652
21887
  this._create_started = this._time_source();
21653
21888
  this._instance_name = instance_name;
@@ -21662,6 +21897,7 @@ class Machine {
21662
21897
  this._reverse_action_targets = new Map(); // todo
21663
21898
  this._start_states = new Set(start_states);
21664
21899
  this._end_states = new Set(end_states); // todo consider what to do about incorporating complete too
21900
+ this._failed_outputs = new Set(failed_outputs);
21665
21901
  this._machine_author = array_box_if_string(machine_author);
21666
21902
  this._machine_comment = machine_comment;
21667
21903
  this._machine_contributor = array_box_if_string(machine_contributor);
@@ -21670,6 +21906,7 @@ class Machine {
21670
21906
  this._machine_license = machine_license;
21671
21907
  this._machine_name = machine_name;
21672
21908
  this._machine_version = machine_version;
21909
+ this._npm_name = npm_name;
21673
21910
  this._raw_state_declaration = state_declaration || [];
21674
21911
  this._fsl_version = fsl_version;
21675
21912
  this._arrange_declaration = arrange_declaration;
@@ -22290,6 +22527,45 @@ class Machine {
22290
22527
  is_end_state(whichState) {
22291
22528
  return this._end_states.has(whichState);
22292
22529
  }
22530
+ /********
22531
+ *
22532
+ * Get the set of states declared as failure outputs for this machine.
22533
+ * Returns an array of state labels, or an empty array when none were
22534
+ * declared. A state in this list means the machine is in a failure
22535
+ * condition when it occupies that state.
22536
+ *
22537
+ * @see {@link is_failed_output} to test a single state
22538
+ * @see {@link is_failed} to test the current state
22539
+ *
22540
+ */
22541
+ failed_outputs() {
22542
+ return [...this._failed_outputs];
22543
+ }
22544
+ /********
22545
+ *
22546
+ * Check whether a given state is declared as a failure output.
22547
+ *
22548
+ * @param whichState The name of the state to check
22549
+ *
22550
+ * @see {@link failed_outputs} for the full failure-output set
22551
+ * @see {@link is_failed} to test the current state
22552
+ *
22553
+ */
22554
+ is_failed_output(whichState) {
22555
+ return this._failed_outputs.has(whichState);
22556
+ }
22557
+ /********
22558
+ *
22559
+ * Check whether the machine is currently in a failure state — that is,
22560
+ * whether its current state is one of the declared `failed_outputs`.
22561
+ *
22562
+ * @see {@link failed_outputs} for the full failure-output set
22563
+ * @see {@link is_failed_output} to test an arbitrary state
22564
+ *
22565
+ */
22566
+ is_failed() {
22567
+ return this._failed_outputs.has(this._state);
22568
+ }
22293
22569
  /********
22294
22570
  *
22295
22571
  * Check whether a given state is final (either has no exits or is marked
@@ -22415,6 +22691,14 @@ class Machine {
22415
22691
  machine_name() {
22416
22692
  return this._machine_name;
22417
22693
  }
22694
+ /** Get the npm package name associated with the machine. Set via the FSL `npm_name` directive.
22695
+ * Returns `undefined` when not present.
22696
+ * @returns The npm package name string, or `undefined`.
22697
+ * @see machine_name
22698
+ */
22699
+ npm_name() {
22700
+ return this._npm_name;
22701
+ }
22418
22702
  /** Get the machine's version string. Set via the FSL `machine_version` directive.
22419
22703
  * @returns The version string.
22420
22704
  */