@tspro/web-music-score 5.5.0 → 5.5.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- /* WebMusicScore v5.5.0 | (c) 2023-2025 PahkaSoft | MIT License | Includes: Tone.js (MIT License), Color Name to Code (MIT License) */
1
+ /* WebMusicScore v5.5.1 | (c) 2023-2025 PahkaSoft | MIT License | Includes: Tone.js (MIT License), Color Name to Code (MIT License) */
2
2
  "use strict";
3
3
  var __create = Object.create;
4
4
  var __defProp = Object.defineProperty;
@@ -10,7 +10,7 @@ var __getOwnPropSymbols = Object.getOwnPropertySymbols;
10
10
  var __getProtoOf = Object.getPrototypeOf;
11
11
  var __hasOwnProp = Object.prototype.hasOwnProperty;
12
12
  var __propIsEnum = Object.prototype.propertyIsEnumerable;
13
- var __knownSymbol = (name, symbol) => (symbol = Symbol[name]) ? symbol : Symbol.for("Symbol." + name);
13
+ var __knownSymbol = (name, symbol) => (symbol = Symbol[name]) ? symbol : /* @__PURE__ */ Symbol.for("Symbol." + name);
14
14
  var __typeError = (msg) => {
15
15
  throw TypeError(msg);
16
16
  };
@@ -220,6 +220,11 @@ __export2(assert_exports, {
220
220
  isNumber: () => isNumber2,
221
221
  isNumberBetween: () => isNumberBetween2,
222
222
  isNumberBetweenExclusive: () => isNumberBetweenExclusive2,
223
+ isNumberEq: () => isNumberEq2,
224
+ isNumberGt: () => isNumberGt2,
225
+ isNumberGte: () => isNumberGte2,
226
+ isNumberLt: () => isNumberLt2,
227
+ isNumberLte: () => isNumberLte2,
223
228
  isNumberOrUndefined: () => isNumberOrUndefined2,
224
229
  isNumericString: () => isNumericString2,
225
230
  isObject: () => isObject2,
@@ -231,6 +236,7 @@ __export2(assert_exports, {
231
236
  isPosZero: () => isPosZero2,
232
237
  isPowerOfTwo: () => isPowerOfTwo2,
233
238
  isSafeInteger: () => isSafeInteger2,
239
+ isSafeNumber: () => isSafeNumber2,
234
240
  isStrictEqual: () => isStrictEqual2,
235
241
  isString: () => isString2,
236
242
  isStringOrUndefined: () => isStringOrUndefined2,
@@ -254,6 +260,9 @@ __export2(str_exports, {
254
260
  removeAt: () => removeAt,
255
261
  repeatString: () => repeatString,
256
262
  replaceAt: () => replaceAt,
263
+ splitByCaps: () => splitByCaps,
264
+ splitByChars: () => splitByChars,
265
+ splitByStrings: () => splitByStrings,
257
266
  stringify: () => stringify,
258
267
  toCharArray: () => toCharArray
259
268
  });
@@ -318,6 +327,11 @@ __export2(guard_exports, {
318
327
  isNumber: () => isNumber,
319
328
  isNumberBetween: () => isNumberBetween,
320
329
  isNumberBetweenExclusive: () => isNumberBetweenExclusive,
330
+ isNumberEq: () => isNumberEq,
331
+ isNumberGt: () => isNumberGt,
332
+ isNumberGte: () => isNumberGte,
333
+ isNumberLt: () => isNumberLt,
334
+ isNumberLte: () => isNumberLte,
321
335
  isNumberOrUndefined: () => isNumberOrUndefined,
322
336
  isNumericString: () => isNumericString,
323
337
  isObject: () => isObject,
@@ -329,6 +343,7 @@ __export2(guard_exports, {
329
343
  isPosZero: () => isPosZero,
330
344
  isPowerOfTwo: () => isPowerOfTwo,
331
345
  isSafeInteger: () => isSafeInteger,
346
+ isSafeNumber: () => isSafeNumber,
332
347
  isStrictEqual: () => isStrictEqual,
333
348
  isString: () => isString,
334
349
  isStringOrUndefined: () => isStringOrUndefined,
@@ -480,9 +495,33 @@ function isBigInt(val) {
480
495
  function isNumber(val) {
481
496
  return typeof val === "number";
482
497
  }
498
+ function isSafeNumber(val) {
499
+ return isNumber(val) && Number.isSafeInteger(val);
500
+ }
483
501
  function isNumberOrUndefined(val) {
484
502
  return typeof val === "number" || val === void 0;
485
503
  }
504
+ function isNumberEq(val, ref) {
505
+ return isNumber(val) && val === ref;
506
+ }
507
+ function isNumberGt(val, ref) {
508
+ return isNumber(val) && isNumber(ref) && val > ref;
509
+ }
510
+ function isNumberGte(val, ref) {
511
+ return isNumber(val) && isNumber(ref) && val >= ref;
512
+ }
513
+ function isNumberLt(val, ref) {
514
+ return isNumber(val) && isNumber(ref) && val < ref;
515
+ }
516
+ function isNumberLte(val, ref) {
517
+ return isNumber(val) && isNumber(ref) && val <= ref;
518
+ }
519
+ function isNumberBetween(val, min, max) {
520
+ return isNumber(val) && isNumber(min) && isNumber(max) && val >= min && val <= max;
521
+ }
522
+ function isNumberBetweenExclusive(val, min, max) {
523
+ return isNumber(val) && isNumber(min) && isNumber(max) && val > min && val < max;
524
+ }
486
525
  function isFinite2(val) {
487
526
  return typeof val === "number" && Number.isFinite(val);
488
527
  }
@@ -519,12 +558,6 @@ function isIntegerBetween(val, min, max) {
519
558
  function isIntegerBetweenExclusive(val, min, max) {
520
559
  return isInteger(val) && isNumber(min) && isNumber(max) && val > min && val < max;
521
560
  }
522
- function isNumberBetween(val, min, max) {
523
- return isNumber(val) && isNumber(min) && isNumber(max) && val >= min && val <= max;
524
- }
525
- function isNumberBetweenExclusive(val, min, max) {
526
- return isNumber(val) && isNumber(min) && isNumber(max) && val > min && val < max;
527
- }
528
561
  function isNaNValue(val) {
529
562
  return typeof val === "number" && Number.isNaN(val);
530
563
  }
@@ -790,6 +823,18 @@ function stringify(value, maxDepth = 5, seen = /* @__PURE__ */ new WeakSet()) {
790
823
  }
791
824
  return String(value);
792
825
  }
826
+ function splitByCaps(str2) {
827
+ return str2.split(/(?=[A-Z])/).filter((x) => !!x);
828
+ }
829
+ function splitByStrings(str2, ...splitters) {
830
+ if (splitters.length === 0) return [str2];
831
+ const escaped = splitters.map((s) => s.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"));
832
+ const regex = new RegExp(escaped.join("|"), "g");
833
+ return str2.split(regex);
834
+ }
835
+ function splitByChars(str2, splitters) {
836
+ return splitByStrings(str2, ...splitters.split(""));
837
+ }
793
838
  var fmt = stringify;
794
839
  var errorConstructor = Error;
795
840
  function setErrorClass(errorClass) {
@@ -1007,11 +1052,51 @@ function isNumber2(val, msg) {
1007
1052
  _fail(`Expected ${fmt(val)} to be number`, msg);
1008
1053
  return val;
1009
1054
  }
1055
+ function isSafeNumber2(val, msg) {
1056
+ if (!guard_exports.isSafeNumber(val))
1057
+ _fail(`Expected ${fmt(val)} to be safe number`, msg);
1058
+ return val;
1059
+ }
1010
1060
  function isNumberOrUndefined2(val, msg) {
1011
1061
  if (!guard_exports.isNumberOrUndefined(val))
1012
1062
  _fail(`Expected ${fmt(val)} to be number or undefined`, msg);
1013
1063
  return val;
1014
1064
  }
1065
+ function isNumberEq2(val, ref, msg) {
1066
+ if (!guard_exports.isNumberEq(val, ref))
1067
+ _fail(`Expected ${fmt(val)} to be number equal to ${fmt(ref)}`, msg);
1068
+ return val;
1069
+ }
1070
+ function isNumberGt2(val, ref, msg) {
1071
+ if (!guard_exports.isNumberGt(val, ref))
1072
+ _fail(`Expected ${fmt(val)} to be number > ${fmt(ref)}`, msg);
1073
+ return val;
1074
+ }
1075
+ function isNumberGte2(val, ref, msg) {
1076
+ if (!guard_exports.isNumberGte(val, ref))
1077
+ _fail(`Expected ${fmt(val)} to be number >= ${fmt(ref)}`, msg);
1078
+ return val;
1079
+ }
1080
+ function isNumberLt2(val, ref, msg) {
1081
+ if (!guard_exports.isNumberLt(val, ref))
1082
+ _fail(`Expected ${fmt(val)} to be number < ${fmt(ref)}`, msg);
1083
+ return val;
1084
+ }
1085
+ function isNumberLte2(val, ref, msg) {
1086
+ if (!guard_exports.isNumberLte(val, ref))
1087
+ _fail(`Expected ${fmt(val)} to be number <= ${fmt(ref)}`, msg);
1088
+ return val;
1089
+ }
1090
+ function isNumberBetween2(val, min, max, msg) {
1091
+ if (!guard_exports.isNumberBetween(val, min, max))
1092
+ _fail(`Expected number ${fmt(min)} <= ${fmt(val)} <= ${fmt(max)}`, msg);
1093
+ return val;
1094
+ }
1095
+ function isNumberBetweenExclusive2(val, min, max, msg) {
1096
+ if (!guard_exports.isNumberBetweenExclusive(val, min, max))
1097
+ _fail(`Expected number ${fmt(min)} < ${fmt(val)} < ${fmt(max)}`, msg);
1098
+ return val;
1099
+ }
1015
1100
  function isFinite3(val, msg) {
1016
1101
  if (!guard_exports.isFinite(val))
1017
1102
  _fail(`Expected ${fmt(val)} to be finite`, msg);
@@ -1072,16 +1157,6 @@ function isIntegerBetweenExclusive2(val, min, max, msg) {
1072
1157
  _fail(`Expected integer ${fmt(min)} < ${fmt(val)} < ${fmt(max)}`, msg);
1073
1158
  return val;
1074
1159
  }
1075
- function isNumberBetween2(val, min, max, msg) {
1076
- if (!guard_exports.isNumberBetween(val, min, max))
1077
- _fail(`Expected number ${fmt(min)} <= ${fmt(val)} <= ${fmt(max)}`, msg);
1078
- return val;
1079
- }
1080
- function isNumberBetweenExclusive2(val, min, max, msg) {
1081
- if (!guard_exports.isNumberBetweenExclusive(val, min, max))
1082
- _fail(`Expected number ${fmt(min)} < ${fmt(val)} < ${fmt(max)}`, msg);
1083
- return val;
1084
- }
1085
1160
  function isNaNValue2(val, msg) {
1086
1161
  if (!guard_exports.isNaNValue(val))
1087
1162
  _fail(`Expected ${fmt(val)} to be NaN`, msg);
@@ -1202,7 +1277,9 @@ var _consent;
1202
1277
  var _expires;
1203
1278
  var str = _read(ConsentCookieName);
1204
1279
  _consent = str === "accept" || str === "decline" ? str : void 0;
1205
- function _getList() {
1280
+ function _getCookieList() {
1281
+ if (typeof document === "undefined")
1282
+ return [];
1206
1283
  let s = document.cookie;
1207
1284
  return s.split(";").map((c) => c.trim());
1208
1285
  }
@@ -1211,15 +1288,17 @@ function _save(name, value) {
1211
1288
  if (_expires) {
1212
1289
  cookie += "expires=" + _expires.toUTCString() + ";";
1213
1290
  }
1214
- document.cookie = cookie;
1291
+ if (typeof document !== "undefined")
1292
+ document.cookie = cookie;
1215
1293
  return value;
1216
1294
  }
1217
1295
  function _read(name, defaultValue) {
1218
- let str2 = _getList().find((c) => c.startsWith(name + "="));
1296
+ let str2 = _getCookieList().find((c) => c.startsWith(name + "="));
1219
1297
  return str2 === void 0 ? defaultValue : str2.substring(name.length + 1);
1220
1298
  }
1221
1299
  function _erase(name) {
1222
- document.cookie = name + "=;expires=Thu, 01 Jan 1970 00:00:00 UTC;";
1300
+ if (typeof document !== "undefined")
1301
+ document.cookie = name + "=;expires=Thu, 01 Jan 1970 00:00:00 UTC;";
1223
1302
  }
1224
1303
  function setExpireDays(days) {
1225
1304
  _expires = /* @__PURE__ */ new Date();
@@ -1269,7 +1348,8 @@ function erase(name) {
1269
1348
  _erase(name);
1270
1349
  }
1271
1350
  function eraseAll() {
1272
- document.cookie.split(";").forEach((c) => erase(c.trim().split("=")[0]));
1351
+ if (typeof document !== "undefined")
1352
+ document.cookie.split(";").forEach((c) => erase(c.trim().split("=")[0]));
1273
1353
  }
1274
1354
  var device_exports = {};
1275
1355
  __export2(device_exports, {
@@ -1285,12 +1365,16 @@ __export2(device_exports, {
1285
1365
  toPx: () => toPx
1286
1366
  });
1287
1367
  function getDPI() {
1288
- let el = document.createElement("div");
1289
- el.style.width = "1in";
1290
- document.body.appendChild(el);
1291
- let dpi = el.offsetWidth;
1292
- el.remove();
1293
- return dpi || 96;
1368
+ try {
1369
+ let el = document.createElement("div");
1370
+ el.style.width = "1in";
1371
+ document.body.appendChild(el);
1372
+ let dpi = el.offsetWidth;
1373
+ el.remove();
1374
+ return dpi || 96;
1375
+ } catch (e) {
1376
+ return 96;
1377
+ }
1294
1378
  }
1295
1379
  function getScrollBarWidth() {
1296
1380
  try {
@@ -1313,18 +1397,23 @@ function getScrollBarWidth() {
1313
1397
  }
1314
1398
  }
1315
1399
  function getSystemFontSize() {
1316
- let tmpDiv = document.createElement("div");
1317
- tmpDiv.style.cssText = "display:inline-block; padding:0; line-height:1; position:absolute; visibility:hidden; font-size:1em";
1318
- tmpDiv.appendChild(document.createTextNode("M"));
1319
- document.body.appendChild(tmpDiv);
1320
- let fontsize = tmpDiv.offsetHeight;
1321
- document.body.removeChild(tmpDiv);
1322
- return fontsize;
1400
+ try {
1401
+ let tmpDiv = document.createElement("div");
1402
+ tmpDiv.style.cssText = "display:inline-block; padding:0; line-height:1; position:absolute; visibility:hidden; font-size:1em";
1403
+ tmpDiv.appendChild(document.createTextNode("M"));
1404
+ document.body.appendChild(tmpDiv);
1405
+ let fontsize = tmpDiv.offsetHeight;
1406
+ document.body.removeChild(tmpDiv);
1407
+ return fontsize;
1408
+ } catch (e) {
1409
+ return 16;
1410
+ }
1323
1411
  }
1324
1412
  function getIsTouchDevice() {
1325
- if ("ontouchstart" in window || "DocumentTouch" in window || "createTouch" in document && "createTouchList" in document) {
1413
+ if (typeof window === "undefined")
1414
+ return false;
1415
+ if ("ontouchstart" in window || "DocumentTouch" in window || "createTouch" in document && "createTouchList" in document)
1326
1416
  return true;
1327
- }
1328
1417
  var prefixes = " -webkit- -moz- -o- -ms- ".split(" ");
1329
1418
  var mq = function(query2) {
1330
1419
  return window.matchMedia(query2).matches;
@@ -1337,7 +1426,10 @@ function getIsMobileDevice() {
1337
1426
  return /(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino/i.test(a) || /1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(a.substr(0, 4));
1338
1427
  }
1339
1428
  function getHostAddress() {
1340
- return location.protocol + "//" + location.host;
1429
+ if (typeof location === "undefined" || !location.host) {
1430
+ return "localhost";
1431
+ }
1432
+ return `${location.protocol}//${location.host}`;
1341
1433
  }
1342
1434
  var UnitRegExp = /^(mm|cm|in|inch|px|em)$/;
1343
1435
  var ValueUnitRegExp = /^([0-9\\.]+)(.*)$/;
@@ -1483,6 +1575,7 @@ __export2(dom_exports, {
1483
1575
  getPadding: () => getPadding,
1484
1576
  getWidth: () => getWidth,
1485
1577
  hasClass: () => hasClass,
1578
+ injectCss: () => injectCss,
1486
1579
  removeClass: () => removeClass,
1487
1580
  removeFromParent: () => removeFromParent,
1488
1581
  setHeight: () => setHeight,
@@ -1492,6 +1585,10 @@ __export2(dom_exports, {
1492
1585
  setWidth: () => setWidth,
1493
1586
  styleLayoutChanged: () => styleLayoutChanged
1494
1587
  });
1588
+ function _getElemById(id) {
1589
+ var _a;
1590
+ return typeof document === "undefined" ? void 0 : (_a = document.getElementById(id)) != null ? _a : void 0;
1591
+ }
1495
1592
  function toPx2(value) {
1496
1593
  return value === void 0 ? void 0 : device_exports.toPx(value);
1497
1594
  }
@@ -1528,12 +1625,17 @@ function setOffset(el, left, top, unit = "px") {
1528
1625
  el.style.top = top + unit;
1529
1626
  }
1530
1627
  function getOffset(el) {
1531
- let box = el.getBoundingClientRect();
1532
- let docElem = document.documentElement;
1533
- return {
1534
- top: box.top + window.pageYOffset - docElem.clientTop,
1535
- left: box.left + window.pageXOffset - docElem.clientLeft
1536
- };
1628
+ let { left, top } = el.getBoundingClientRect();
1629
+ if (typeof window !== "undefined") {
1630
+ left += window.pageXOffset;
1631
+ top += window.pageYOffset;
1632
+ }
1633
+ if (typeof document !== "undefined") {
1634
+ let de = document.documentElement;
1635
+ left -= de.clientLeft;
1636
+ top -= de.clientTop;
1637
+ }
1638
+ return { left, top };
1537
1639
  }
1538
1640
  function getWidth(el) {
1539
1641
  if (el instanceof Window) {
@@ -1573,11 +1675,11 @@ function setRect(el, left, top, width, height, unit = "px") {
1573
1675
  el.style.height = height + unit;
1574
1676
  }
1575
1677
  function getButton(btn) {
1576
- let el = typeof btn === "string" ? document.getElementById(btn) : btn;
1678
+ let el = typeof btn === "string" ? _getElemById(btn) : btn;
1577
1679
  return el instanceof HTMLButtonElement ? el : void 0;
1578
1680
  }
1579
1681
  function getCanvas(canvas2) {
1580
- let el = typeof canvas2 === "string" ? document.getElementById(canvas2) : canvas2;
1682
+ let el = typeof canvas2 === "string" ? _getElemById(canvas2) : canvas2;
1581
1683
  return el instanceof HTMLCanvasElement ? el : void 0;
1582
1684
  }
1583
1685
  function getPadding(style) {
@@ -1651,14 +1753,23 @@ function styleLayoutChanged(style1, style2) {
1651
1753
  }
1652
1754
  var canvas;
1653
1755
  function getCanvasTextWidth(text, font) {
1654
- canvas != null ? canvas : canvas = document.createElement("canvas");
1655
- let ctx = canvas.getContext("2d");
1656
- if (!ctx) {
1756
+ if (!canvas && typeof document !== "undefined")
1757
+ canvas = document.createElement("canvas");
1758
+ let ctx = canvas == null ? void 0 : canvas.getContext("2d");
1759
+ if (!ctx)
1657
1760
  return 0;
1658
- }
1659
1761
  ctx.font = font;
1660
1762
  return ctx.measureText(text).width;
1661
1763
  }
1764
+ function injectCss(styleId, styleCss) {
1765
+ if (styleId === "" || styleCss === "") return;
1766
+ if (typeof document === "undefined") return;
1767
+ if (document.getElementById(styleId)) return;
1768
+ const style = document.createElement("style");
1769
+ style.id = styleId;
1770
+ style.textContent = styleCss;
1771
+ document.head.appendChild(style);
1772
+ }
1662
1773
  var math_exports = {};
1663
1774
  __export2(math_exports, {
1664
1775
  avg: () => avg,
@@ -4645,8 +4756,8 @@ var ColorCodeFormat;
4645
4756
  ColorCodeFormat2["Array"] = "array";
4646
4757
  })(ColorCodeFormat = ColorCodeFormat || (ColorCodeFormat = {}));
4647
4758
 
4648
- // node_modules/color-name-to-code/node_modules/color-name/index.js
4649
- var color_name_default = {
4759
+ // node_modules/color-name/index.js
4760
+ var colors = {
4650
4761
  aliceblue: [240, 248, 255],
4651
4762
  antiquewhite: [250, 235, 215],
4652
4763
  aqua: [0, 255, 255],
@@ -4796,6 +4907,8 @@ var color_name_default = {
4796
4907
  yellow: [255, 255, 0],
4797
4908
  yellowgreen: [154, 205, 50]
4798
4909
  };
4910
+ for (const key in colors) Object.freeze(colors[key]);
4911
+ var color_name_default = Object.freeze(colors);
4799
4912
 
4800
4913
  // node_modules/color-name-to-code/dist/color-names.js
4801
4914
  var colorNames = color_name_default;
@@ -14233,8 +14346,8 @@ var import_core20 = require("@tspro/web-music-score/core");
14233
14346
 
14234
14347
  @tspro/ts-utils-lib/dist/index.mjs:
14235
14348
  (*!
14236
- * TsUtilsLib v2.1.0 (esm)
14237
- * (c) 20232025 PahkaSoft
14349
+ * TsUtilsLib v2.3.0 (esm)
14350
+ * (c) 2023-2025 PahkaSoft
14238
14351
  * Licensed under the MIT License
14239
14352
  *)
14240
14353
  */
@@ -1,12 +1,12 @@
1
- /* WebMusicScore v5.5.0 | (c) 2023-2025 PahkaSoft | MIT License | Includes: Tone.js (MIT License), Color Name to Code (MIT License) */
1
+ /* WebMusicScore v5.5.1 | (c) 2023-2025 PahkaSoft | MIT License | Includes: Tone.js (MIT License), Color Name to Code (MIT License) */
2
2
  import {
3
3
  MusicError
4
- } from "../chunk-2DCCUAGC.mjs";
4
+ } from "../chunk-BZE5UGTJ.mjs";
5
5
  import {
6
6
  NoteLengthProps,
7
7
  RhythmProps,
8
8
  validateNoteLength
9
- } from "../chunk-33HIE3HR.mjs";
9
+ } from "../chunk-KKIFSIFK.mjs";
10
10
  import {
11
11
  AnchoredRect,
12
12
  BiMap,
@@ -20,12 +20,12 @@ import {
20
20
  device_exports,
21
21
  guard_exports,
22
22
  utils_exports
23
- } from "../chunk-T6TYLAJE.mjs";
23
+ } from "../chunk-AUOH7S2E.mjs";
24
24
  import {
25
25
  __publicField,
26
26
  __spreadProps,
27
27
  __spreadValues
28
- } from "../chunk-BMKUAUSJ.mjs";
28
+ } from "../chunk-7GVRGM3N.mjs";
29
29
 
30
30
  // src/score/engine/settings.ts
31
31
  var DebugSettings = {
@@ -881,8 +881,8 @@ var ColorCodeFormat;
881
881
  ColorCodeFormat2["Array"] = "array";
882
882
  })(ColorCodeFormat = ColorCodeFormat || (ColorCodeFormat = {}));
883
883
 
884
- // node_modules/color-name-to-code/node_modules/color-name/index.js
885
- var color_name_default = {
884
+ // node_modules/color-name/index.js
885
+ var colors = {
886
886
  aliceblue: [240, 248, 255],
887
887
  antiquewhite: [250, 235, 215],
888
888
  aqua: [0, 255, 255],
@@ -1032,6 +1032,8 @@ var color_name_default = {
1032
1032
  yellow: [255, 255, 0],
1033
1033
  yellowgreen: [154, 205, 50]
1034
1034
  };
1035
+ for (const key in colors) Object.freeze(colors[key]);
1036
+ var color_name_default = Object.freeze(colors);
1035
1037
 
1036
1038
  // node_modules/color-name-to-code/dist/color-names.js
1037
1039
  var colorNames = color_name_default;