scorm-again 3.0.3 → 3.0.4

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.
@@ -252,14 +252,14 @@
252
252
  };
253
253
  }
254
254
 
255
- var __defProp$16 = Object.defineProperty;
256
- var __defNormalProp$16 = (obj, key, value) => key in obj ? __defProp$16(obj, key, {
255
+ var __defProp$1d = Object.defineProperty;
256
+ var __defNormalProp$1d = (obj, key, value) => key in obj ? __defProp$1d(obj, key, {
257
257
  enumerable: true,
258
258
  configurable: true,
259
259
  writable: true,
260
260
  value
261
261
  }) : obj[key] = value;
262
- var __publicField$16 = (obj, key, value) => __defNormalProp$16(obj, typeof key !== "symbol" ? key + "" : key, value);
262
+ var __publicField$1d = (obj, key, value) => __defNormalProp$1d(obj, typeof key !== "symbol" ? key + "" : key, value);
263
263
  class BaseCMI {
264
264
  /**
265
265
  * Constructor for BaseCMI
@@ -271,9 +271,9 @@
271
271
  * When true, getters can be accessed before the API is initialized, which is necessary
272
272
  * for serializing the CMI data structure to JSON format.
273
273
  */
274
- __publicField$16(this, "jsonString", false);
275
- __publicField$16(this, "_cmi_element");
276
- __publicField$16(this, "_initialized", false);
274
+ __publicField$1d(this, "jsonString", false);
275
+ __publicField$1d(this, "_cmi_element");
276
+ __publicField$1d(this, "_initialized", false);
277
277
  this._cmi_element = cmi_element;
278
278
  }
279
279
  /**
@@ -293,7 +293,7 @@
293
293
  class BaseRootCMI extends BaseCMI {
294
294
  constructor() {
295
295
  super(...arguments);
296
- __publicField$16(this, "_start_time");
296
+ __publicField$1d(this, "_start_time");
297
297
  }
298
298
  /**
299
299
  * Start time of the session
@@ -315,18 +315,18 @@
315
315
  }
316
316
  }
317
317
 
318
- var __defProp$15 = Object.defineProperty;
319
- var __defNormalProp$15 = (obj, key, value) => key in obj ? __defProp$15(obj, key, {
318
+ var __defProp$1c = Object.defineProperty;
319
+ var __defNormalProp$1c = (obj, key, value) => key in obj ? __defProp$1c(obj, key, {
320
320
  enumerable: true,
321
321
  configurable: true,
322
322
  writable: true,
323
323
  value
324
324
  }) : obj[key] = value;
325
- var __publicField$15 = (obj, key, value) => __defNormalProp$15(obj, typeof key !== "symbol" ? key + "" : key, value);
325
+ var __publicField$1c = (obj, key, value) => __defNormalProp$1c(obj, typeof key !== "symbol" ? key + "" : key, value);
326
326
  class BaseScormValidationError extends Error {
327
327
  constructor(CMIElement, errorCode) {
328
328
  super(`${CMIElement} : ${errorCode.toString()}`);
329
- __publicField$15(this, "_errorCode");
329
+ __publicField$1c(this, "_errorCode");
330
330
  this._errorCode = errorCode;
331
331
  Object.setPrototypeOf(this, BaseScormValidationError.prototype);
332
332
  }
@@ -348,8 +348,8 @@
348
348
  */
349
349
  constructor(CMIElement, errorCode, errorMessage, detailedMessage) {
350
350
  super(CMIElement, errorCode);
351
- __publicField$15(this, "_errorMessage");
352
- __publicField$15(this, "_detailedMessage", "");
351
+ __publicField$1c(this, "_errorMessage");
352
+ __publicField$1c(this, "_detailedMessage", "");
353
353
  this.message = `${CMIElement} : ${errorMessage}`;
354
354
  this._errorMessage = errorMessage;
355
355
  if (detailedMessage) {
@@ -674,14 +674,14 @@
674
674
  DEPENDENCY_NOT_ESTABLISHED: 408
675
675
  };
676
676
 
677
- var __defProp$14 = Object.defineProperty;
678
- var __defNormalProp$14 = (obj, key, value) => key in obj ? __defProp$14(obj, key, {
677
+ var __defProp$1b = Object.defineProperty;
678
+ var __defNormalProp$1b = (obj, key, value) => key in obj ? __defProp$1b(obj, key, {
679
679
  enumerable: true,
680
680
  configurable: true,
681
681
  writable: true,
682
682
  value
683
683
  }) : obj[key] = value;
684
- var __publicField$14 = (obj, key, value) => __defNormalProp$14(obj, typeof key !== "symbol" ? key + "" : key, value);
684
+ var __publicField$1b = (obj, key, value) => __defNormalProp$1b(obj, typeof key !== "symbol" ? key + "" : key, value);
685
685
  class CMIArray extends BaseCMI {
686
686
  /**
687
687
  * Constructor cmi *.n arrays
@@ -689,10 +689,10 @@
689
689
  */
690
690
  constructor(params) {
691
691
  super(params.CMIElement);
692
- __publicField$14(this, "_errorCode");
693
- __publicField$14(this, "_errorClass");
694
- __publicField$14(this, "__children");
695
- __publicField$14(this, "childArray");
692
+ __publicField$1b(this, "_errorCode");
693
+ __publicField$1b(this, "_errorClass");
694
+ __publicField$1b(this, "__children");
695
+ __publicField$1b(this, "childArray");
696
696
  this.__children = params.children;
697
697
  this._errorCode = params.errorCode ?? scorm12_errors.GENERAL;
698
698
  this._errorClass = params.errorClass || BaseScormValidationError;
@@ -1310,14 +1310,14 @@
1310
1310
 
1311
1311
  const ValidLanguages = ["aa", "ab", "ae", "af", "ak", "am", "an", "ar", "as", "av", "ay", "az", "ba", "be", "bg", "bh", "bi", "bm", "bn", "bo", "br", "bs", "ca", "ce", "ch", "co", "cr", "cs", "cu", "cv", "cy", "da", "de", "dv", "dz", "ee", "el", "en", "eo", "es", "et", "eu", "fa", "ff", "fi", "fj", "fo", "fr", "fy", "ga", "gd", "gl", "gn", "gu", "gv", "ha", "he", "hi", "ho", "hr", "ht", "hu", "hy", "hz", "ia", "id", "ie", "ig", "ii", "ik", "io", "is", "it", "iu", "ja", "jv", "ka", "kg", "ki", "kj", "kk", "kl", "km", "kn", "ko", "kr", "ks", "ku", "kv", "kw", "ky", "la", "lb", "lg", "li", "ln", "lo", "lt", "lu", "lv", "mg", "mh", "mi", "mk", "ml", "mn", "mo", "mr", "ms", "mt", "my", "na", "nb", "nd", "ne", "ng", "nl", "nn", "no", "nr", "nv", "ny", "oc", "oj", "om", "or", "os", "pa", "pi", "pl", "ps", "pt", "qu", "rm", "rn", "ro", "ru", "rw", "sa", "sc", "sd", "se", "sg", "sh", "si", "sk", "sl", "sm", "sn", "so", "sq", "sr", "ss", "st", "su", "sv", "sw", "ta", "te", "tg", "th", "ti", "tk", "tl", "tn", "to", "tr", "ts", "tt", "tw", "ty", "ug", "uk", "ur", "uz", "ve", "vi", "vo", "wa", "wo", "xh", "yi", "yo", "za", "zh", "zu", "aar", "abk", "ave", "afr", "aka", "amh", "arg", "ara", "asm", "ava", "aym", "aze", "bak", "bel", "bul", "bih", "bis", "bam", "ben", "tib", "bod", "bre", "bos", "cat", "che", "cha", "cos", "cre", "cze", "ces", "chu", "chv", "wel", "cym", "dan", "ger", "deu", "div", "dzo", "ewe", "gre", "ell", "eng", "epo", "spa", "est", "baq", "eus", "per", "fas", "ful", "fin", "fij", "fao", "fre", "fra", "fry", "gle", "gla", "glg", "grn", "guj", "glv", "hau", "heb", "hin", "hmo", "hrv", "hat", "hun", "arm", "hye", "her", "ina", "ind", "ile", "ibo", "iii", "ipk", "ido", "ice", "isl", "ita", "iku", "jpn", "jav", "geo", "kat", "kon", "kik", "kua", "kaz", "kal", "khm", "kan", "kor", "kau", "kas", "kur", "kom", "cor", "kir", "lat", "ltz", "lug", "lim", "lin", "lao", "lit", "lub", "lav", "mlg", "mah", "mao", "mri", "mac", "mkd", "mal", "mon", "mol", "mar", "may", "msa", "mlt", "bur", "mya", "nau", "nob", "nde", "nep", "ndo", "dut", "nld", "nno", "nor", "nbl", "nav", "nya", "oci", "oji", "orm", "ori", "oss", "pan", "pli", "pol", "pus", "por", "que", "roh", "run", "rum", "ron", "rus", "kin", "san", "srd", "snd", "sme", "sag", "slo", "sin", "slk", "slv", "smo", "sna", "som", "alb", "sqi", "srp", "ssw", "sot", "sun", "swe", "swa", "tam", "tel", "tgk", "tha", "tir", "tuk", "tgl", "tsn", "ton", "tur", "tso", "tat", "twi", "tah", "uig", "ukr", "urd", "uzb", "ven", "vie", "vol", "wln", "wol", "xho", "yid", "yor", "zha", "chi", "zho", "zul"];
1312
1312
 
1313
- var __defProp$13 = Object.defineProperty;
1314
- var __defNormalProp$13 = (obj, key, value) => key in obj ? __defProp$13(obj, key, {
1313
+ var __defProp$1a = Object.defineProperty;
1314
+ var __defNormalProp$1a = (obj, key, value) => key in obj ? __defProp$1a(obj, key, {
1315
1315
  enumerable: true,
1316
1316
  configurable: true,
1317
1317
  writable: true,
1318
1318
  value
1319
1319
  }) : obj[key] = value;
1320
- var __publicField$13 = (obj, key, value) => __defNormalProp$13(obj, typeof key !== "symbol" ? key + "" : key, value);
1320
+ var __publicField$1a = (obj, key, value) => __defNormalProp$1a(obj, typeof key !== "symbol" ? key + "" : key, value);
1321
1321
  class ScheduledCommit {
1322
1322
  /**
1323
1323
  * Constructor for ScheduledCommit
@@ -1326,10 +1326,10 @@
1326
1326
  * @param {string} callback
1327
1327
  */
1328
1328
  constructor(API, when, callback) {
1329
- __publicField$13(this, "_API");
1330
- __publicField$13(this, "_cancelled", false);
1331
- __publicField$13(this, "_timeout");
1332
- __publicField$13(this, "_callback");
1329
+ __publicField$1a(this, "_API");
1330
+ __publicField$1a(this, "_cancelled", false);
1331
+ __publicField$1a(this, "_timeout");
1332
+ __publicField$1a(this, "_callback");
1333
1333
  this._API = API;
1334
1334
  this._timeout = setTimeout(this.wrapper.bind(this), when);
1335
1335
  this._callback = callback;
@@ -1357,14 +1357,14 @@
1357
1357
 
1358
1358
  const HIDE_LMS_UI_TOKENS = ["continue", "previous", "exit", "exitAll", "abandon", "abandonAll", "suspendAll"];
1359
1359
 
1360
- var __defProp$12 = Object.defineProperty;
1361
- var __defNormalProp$12 = (obj, key, value) => key in obj ? __defProp$12(obj, key, {
1360
+ var __defProp$19 = Object.defineProperty;
1361
+ var __defNormalProp$19 = (obj, key, value) => key in obj ? __defProp$19(obj, key, {
1362
1362
  enumerable: true,
1363
1363
  configurable: true,
1364
1364
  writable: true,
1365
1365
  value
1366
1366
  }) : obj[key] = value;
1367
- var __publicField$12 = (obj, key, value) => __defNormalProp$12(obj, typeof key !== "symbol" ? key + "" : key, value);
1367
+ var __publicField$19 = (obj, key, value) => __defNormalProp$19(obj, typeof key !== "symbol" ? key + "" : key, value);
1368
1368
  var RuleConditionOperator = /* @__PURE__ */(RuleConditionOperator2 => {
1369
1369
  RuleConditionOperator2["NOT"] = "not";
1370
1370
  RuleConditionOperator2["AND"] = "and";
@@ -1397,10 +1397,10 @@
1397
1397
  let operator = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;
1398
1398
  let parameters = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : /* @__PURE__ */new Map();
1399
1399
  super("ruleCondition");
1400
- __publicField$12(this, "_condition", "always" /* ALWAYS */);
1401
- __publicField$12(this, "_operator", null);
1402
- __publicField$12(this, "_parameters", /* @__PURE__ */new Map());
1403
- __publicField$12(this, "_referencedObjective", null);
1400
+ __publicField$19(this, "_condition", "always" /* ALWAYS */);
1401
+ __publicField$19(this, "_operator", null);
1402
+ __publicField$19(this, "_parameters", /* @__PURE__ */new Map());
1403
+ __publicField$19(this, "_referencedObjective", null);
1404
1404
  this._condition = condition;
1405
1405
  this._operator = operator;
1406
1406
  this._parameters = parameters;
@@ -1671,9 +1671,9 @@
1671
1671
  }
1672
1672
  };
1673
1673
  // Optional, overridable provider for current time (LMS may set via SequencingService)
1674
- __publicField$12(_RuleCondition, "_now", () => /* @__PURE__ */new Date());
1674
+ __publicField$19(_RuleCondition, "_now", () => /* @__PURE__ */new Date());
1675
1675
  // Optional, overridable hook for getting elapsed seconds
1676
- __publicField$12(_RuleCondition, "_getElapsedSecondsHook");
1676
+ __publicField$19(_RuleCondition, "_getElapsedSecondsHook");
1677
1677
  let RuleCondition = _RuleCondition;
1678
1678
  class SequencingRule extends BaseCMI {
1679
1679
  /**
@@ -1685,9 +1685,9 @@
1685
1685
  let action = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : "skip";
1686
1686
  let conditionCombination = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : "and";
1687
1687
  super("sequencingRule");
1688
- __publicField$12(this, "_conditions", []);
1689
- __publicField$12(this, "_action", "skip" /* SKIP */);
1690
- __publicField$12(this, "_conditionCombination", "and" /* AND */);
1688
+ __publicField$19(this, "_conditions", []);
1689
+ __publicField$19(this, "_action", "skip" /* SKIP */);
1690
+ __publicField$19(this, "_conditionCombination", "and" /* AND */);
1691
1691
  this._action = action;
1692
1692
  this._conditionCombination = conditionCombination;
1693
1693
  }
@@ -1800,9 +1800,9 @@
1800
1800
  */
1801
1801
  constructor() {
1802
1802
  super("sequencingRules");
1803
- __publicField$12(this, "_preConditionRules", []);
1804
- __publicField$12(this, "_exitConditionRules", []);
1805
- __publicField$12(this, "_postConditionRules", []);
1803
+ __publicField$19(this, "_preConditionRules", []);
1804
+ __publicField$19(this, "_exitConditionRules", []);
1805
+ __publicField$19(this, "_postConditionRules", []);
1806
1806
  }
1807
1807
  /**
1808
1808
  * Called when the API needs to be reset
@@ -1919,9 +1919,17 @@
1919
1919
  }
1920
1920
  }
1921
1921
 
1922
+ var __defProp$18 = Object.defineProperty;
1923
+ var __defNormalProp$18 = (obj, key, value) => key in obj ? __defProp$18(obj, key, {
1924
+ enumerable: true,
1925
+ configurable: true,
1926
+ writable: true,
1927
+ value
1928
+ }) : obj[key] = value;
1929
+ var __publicField$18 = (obj, key, value) => __defNormalProp$18(obj, key + "" , value);
1922
1930
  class ActivityTreeQueries {
1923
1931
  constructor(activityTree) {
1924
- this.activityTree = activityTree;
1932
+ __publicField$18(this, "activityTree", activityTree);
1925
1933
  }
1926
1934
  /**
1927
1935
  * Check if activity is in the activity tree
@@ -2117,10 +2125,18 @@
2117
2125
  }
2118
2126
  }
2119
2127
 
2128
+ var __defProp$17 = Object.defineProperty;
2129
+ var __defNormalProp$17 = (obj, key, value) => key in obj ? __defProp$17(obj, key, {
2130
+ enumerable: true,
2131
+ configurable: true,
2132
+ writable: true,
2133
+ value
2134
+ }) : obj[key] = value;
2135
+ var __publicField$17 = (obj, key, value) => __defNormalProp$17(obj, typeof key !== "symbol" ? key + "" : key, value);
2120
2136
  class ChoiceConstraintValidator {
2121
2137
  constructor(activityTree, treeQueries) {
2122
- this.activityTree = activityTree;
2123
- this.treeQueries = treeQueries;
2138
+ __publicField$17(this, "activityTree", activityTree);
2139
+ __publicField$17(this, "treeQueries", treeQueries);
2124
2140
  }
2125
2141
  /**
2126
2142
  * Main entry point - consolidates ALL constraint validation for choice navigation
@@ -2572,14 +2588,14 @@
2572
2588
  }
2573
2589
  }
2574
2590
 
2575
- var __defProp$11 = Object.defineProperty;
2576
- var __defNormalProp$11 = (obj, key, value) => key in obj ? __defProp$11(obj, key, {
2591
+ var __defProp$16 = Object.defineProperty;
2592
+ var __defNormalProp$16 = (obj, key, value) => key in obj ? __defProp$16(obj, key, {
2577
2593
  enumerable: true,
2578
2594
  configurable: true,
2579
2595
  writable: true,
2580
2596
  value
2581
2597
  }) : obj[key] = value;
2582
- var __publicField$11 = (obj, key, value) => __defNormalProp$11(obj, typeof key !== "symbol" ? key + "" : key, value);
2598
+ var __publicField$16 = (obj, key, value) => __defNormalProp$16(obj, typeof key !== "symbol" ? key + "" : key, value);
2583
2599
  var SequencingRequestType = /* @__PURE__ */(SequencingRequestType2 => {
2584
2600
  SequencingRequestType2["START"] = "start";
2585
2601
  SequencingRequestType2["RESUME_ALL"] = "resumeAll";
@@ -2608,10 +2624,10 @@
2608
2624
  let targetActivity = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;
2609
2625
  let exception = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null;
2610
2626
  let endSequencingSession = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : false;
2611
- __publicField$11(this, "deliveryRequest");
2612
- __publicField$11(this, "targetActivity");
2613
- __publicField$11(this, "exception");
2614
- __publicField$11(this, "endSequencingSession");
2627
+ __publicField$16(this, "deliveryRequest");
2628
+ __publicField$16(this, "targetActivity");
2629
+ __publicField$16(this, "exception");
2630
+ __publicField$16(this, "endSequencingSession");
2615
2631
  this.deliveryRequest = deliveryRequest;
2616
2632
  this.targetActivity = targetActivity;
2617
2633
  this.exception = exception;
@@ -2622,10 +2638,10 @@
2622
2638
  constructor(identifiedActivity, deliverable) {
2623
2639
  let exception = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null;
2624
2640
  let endSequencingSession = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : false;
2625
- __publicField$11(this, "identifiedActivity");
2626
- __publicField$11(this, "deliverable");
2627
- __publicField$11(this, "exception");
2628
- __publicField$11(this, "endSequencingSession");
2641
+ __publicField$16(this, "identifiedActivity");
2642
+ __publicField$16(this, "deliverable");
2643
+ __publicField$16(this, "exception");
2644
+ __publicField$16(this, "endSequencingSession");
2629
2645
  this.identifiedActivity = identifiedActivity;
2630
2646
  this.deliverable = deliverable;
2631
2647
  this.exception = exception;
@@ -2635,8 +2651,8 @@
2635
2651
  class ChoiceTraversalResult {
2636
2652
  constructor(activity) {
2637
2653
  let exception = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;
2638
- __publicField$11(this, "activity");
2639
- __publicField$11(this, "exception");
2654
+ __publicField$16(this, "activity");
2655
+ __publicField$16(this, "exception");
2640
2656
  this.activity = activity;
2641
2657
  this.exception = exception;
2642
2658
  }
@@ -2647,19 +2663,19 @@
2647
2663
  return FlowSubprocessMode2;
2648
2664
  })(FlowSubprocessMode || {});
2649
2665
 
2650
- var __defProp$10 = Object.defineProperty;
2651
- var __defNormalProp$10 = (obj, key, value) => key in obj ? __defProp$10(obj, key, {
2666
+ var __defProp$15 = Object.defineProperty;
2667
+ var __defNormalProp$15 = (obj, key, value) => key in obj ? __defProp$15(obj, key, {
2652
2668
  enumerable: true,
2653
2669
  configurable: true,
2654
2670
  writable: true,
2655
2671
  value
2656
2672
  }) : obj[key] = value;
2657
- var __publicField$10 = (obj, key, value) => __defNormalProp$10(obj, typeof key !== "symbol" ? key + "" : key, value);
2673
+ var __publicField$15 = (obj, key, value) => __defNormalProp$15(obj, typeof key !== "symbol" ? key + "" : key, value);
2658
2674
  class RuleEvaluationEngine {
2659
2675
  constructor() {
2660
2676
  let options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
2661
- __publicField$10(this, "now");
2662
- __publicField$10(this, "getAttemptElapsedSecondsHook");
2677
+ __publicField$15(this, "now");
2678
+ __publicField$15(this, "getAttemptElapsedSecondsHook");
2663
2679
  this.now = options.now || (() => /* @__PURE__ */new Date());
2664
2680
  this.getAttemptElapsedSecondsHook = options.getAttemptElapsedSecondsHook || null;
2665
2681
  }
@@ -2930,14 +2946,14 @@
2930
2946
  }
2931
2947
  }
2932
2948
 
2933
- var __defProp$$ = Object.defineProperty;
2934
- var __defNormalProp$$ = (obj, key, value) => key in obj ? __defProp$$(obj, key, {
2949
+ var __defProp$14 = Object.defineProperty;
2950
+ var __defNormalProp$14 = (obj, key, value) => key in obj ? __defProp$14(obj, key, {
2935
2951
  enumerable: true,
2936
2952
  configurable: true,
2937
2953
  writable: true,
2938
2954
  value
2939
2955
  }) : obj[key] = value;
2940
- var __publicField$$ = (obj, key, value) => __defNormalProp$$(obj, typeof key !== "symbol" ? key + "" : key, value);
2956
+ var __publicField$14 = (obj, key, value) => __defNormalProp$14(obj, typeof key !== "symbol" ? key + "" : key, value);
2941
2957
  var SelectionTiming = /* @__PURE__ */(SelectionTiming2 => {
2942
2958
  SelectionTiming2["NEVER"] = "never";
2943
2959
  SelectionTiming2["ONCE"] = "once";
@@ -2957,36 +2973,36 @@
2957
2973
  constructor() {
2958
2974
  super("sequencingControls");
2959
2975
  // Sequencing Control Modes
2960
- __publicField$$(this, "_enabled", true);
2961
- __publicField$$(this, "_choice", true);
2962
- __publicField$$(this, "_choiceExit", true);
2976
+ __publicField$14(this, "_enabled", true);
2977
+ __publicField$14(this, "_choice", true);
2978
+ __publicField$14(this, "_choiceExit", true);
2963
2979
  // Per SCORM 2004 Sequencing & Navigation, flow defaults to true
2964
- __publicField$$(this, "_flow", true);
2965
- __publicField$$(this, "_forwardOnly", false);
2966
- __publicField$$(this, "_useCurrentAttemptObjectiveInfo", true);
2967
- __publicField$$(this, "_useCurrentAttemptProgressInfo", true);
2980
+ __publicField$14(this, "_flow", true);
2981
+ __publicField$14(this, "_forwardOnly", false);
2982
+ __publicField$14(this, "_useCurrentAttemptObjectiveInfo", true);
2983
+ __publicField$14(this, "_useCurrentAttemptProgressInfo", true);
2968
2984
  // Constrain Choice Controls
2969
- __publicField$$(this, "_preventActivation", false);
2970
- __publicField$$(this, "_constrainChoice", false);
2985
+ __publicField$14(this, "_preventActivation", false);
2986
+ __publicField$14(this, "_constrainChoice", false);
2971
2987
  // Rule-driven traversal limiter (e.g., post-condition stopForwardTraversal)
2972
- __publicField$$(this, "_stopForwardTraversal", false);
2988
+ __publicField$14(this, "_stopForwardTraversal", false);
2973
2989
  // Rollup Controls
2974
- __publicField$$(this, "_rollupObjectiveSatisfied", true);
2975
- __publicField$$(this, "_rollupProgressCompletion", true);
2976
- __publicField$$(this, "_objectiveMeasureWeight", 1);
2990
+ __publicField$14(this, "_rollupObjectiveSatisfied", true);
2991
+ __publicField$14(this, "_rollupProgressCompletion", true);
2992
+ __publicField$14(this, "_objectiveMeasureWeight", 1);
2977
2993
  // Selection Controls
2978
- __publicField$$(this, "_selectionTiming", "never" /* NEVER */);
2979
- __publicField$$(this, "_selectCount", null);
2980
- __publicField$$(this, "_selectionCountStatus", false);
2981
- __publicField$$(this, "_randomizeChildren", false);
2994
+ __publicField$14(this, "_selectionTiming", "never" /* NEVER */);
2995
+ __publicField$14(this, "_selectCount", null);
2996
+ __publicField$14(this, "_selectionCountStatus", false);
2997
+ __publicField$14(this, "_randomizeChildren", false);
2982
2998
  // Randomization Controls
2983
- __publicField$$(this, "_randomizationTiming", "never" /* NEVER */);
2984
- __publicField$$(this, "_reorderChildren", false);
2999
+ __publicField$14(this, "_randomizationTiming", "never" /* NEVER */);
3000
+ __publicField$14(this, "_reorderChildren", false);
2985
3001
  // Auto-completion/satisfaction controls
2986
- __publicField$$(this, "_completionSetByContent", false);
2987
- __publicField$$(this, "_objectiveSetByContent", false);
3002
+ __publicField$14(this, "_completionSetByContent", false);
3003
+ __publicField$14(this, "_objectiveSetByContent", false);
2988
3004
  // Delivery Controls
2989
- __publicField$$(this, "_tracked", true);
3005
+ __publicField$14(this, "_tracked", true);
2990
3006
  }
2991
3007
  /**
2992
3008
  * Reset the sequencing controls to their default values
@@ -3547,10 +3563,18 @@
3547
3563
  }
3548
3564
  }
3549
3565
 
3566
+ var __defProp$13 = Object.defineProperty;
3567
+ var __defNormalProp$13 = (obj, key, value) => key in obj ? __defProp$13(obj, key, {
3568
+ enumerable: true,
3569
+ configurable: true,
3570
+ writable: true,
3571
+ value
3572
+ }) : obj[key] = value;
3573
+ var __publicField$13 = (obj, key, value) => __defNormalProp$13(obj, typeof key !== "symbol" ? key + "" : key, value);
3550
3574
  class FlowTraversalService {
3551
3575
  constructor(activityTree, ruleEngine) {
3552
- this.activityTree = activityTree;
3553
- this.ruleEngine = ruleEngine;
3576
+ __publicField$13(this, "activityTree", activityTree);
3577
+ __publicField$13(this, "ruleEngine", ruleEngine);
3554
3578
  }
3555
3579
  /**
3556
3580
  * Flow Subprocess (SB.2.3)
@@ -3841,10 +3865,18 @@
3841
3865
  }
3842
3866
  }
3843
3867
 
3868
+ var __defProp$12 = Object.defineProperty;
3869
+ var __defNormalProp$12 = (obj, key, value) => key in obj ? __defProp$12(obj, key, {
3870
+ enumerable: true,
3871
+ configurable: true,
3872
+ writable: true,
3873
+ value
3874
+ }) : obj[key] = value;
3875
+ var __publicField$12 = (obj, key, value) => __defNormalProp$12(obj, typeof key !== "symbol" ? key + "" : key, value);
3844
3876
  class FlowRequestHandler {
3845
3877
  constructor(activityTree, traversalService) {
3846
- this.activityTree = activityTree;
3847
- this.traversalService = traversalService;
3878
+ __publicField$12(this, "activityTree", activityTree);
3879
+ __publicField$12(this, "traversalService", traversalService);
3848
3880
  }
3849
3881
  /**
3850
3882
  * Start Sequencing Request Process (SB.2.5)
@@ -3962,12 +3994,20 @@
3962
3994
  }
3963
3995
  }
3964
3996
 
3997
+ var __defProp$11 = Object.defineProperty;
3998
+ var __defNormalProp$11 = (obj, key, value) => key in obj ? __defProp$11(obj, key, {
3999
+ enumerable: true,
4000
+ configurable: true,
4001
+ writable: true,
4002
+ value
4003
+ }) : obj[key] = value;
4004
+ var __publicField$11 = (obj, key, value) => __defNormalProp$11(obj, typeof key !== "symbol" ? key + "" : key, value);
3965
4005
  class ChoiceRequestHandler {
3966
4006
  constructor(activityTree, constraintValidator, traversalService, treeQueries) {
3967
- this.activityTree = activityTree;
3968
- this.constraintValidator = constraintValidator;
3969
- this.traversalService = traversalService;
3970
- this.treeQueries = treeQueries;
4007
+ __publicField$11(this, "activityTree", activityTree);
4008
+ __publicField$11(this, "constraintValidator", constraintValidator);
4009
+ __publicField$11(this, "traversalService", traversalService);
4010
+ __publicField$11(this, "treeQueries", treeQueries);
3971
4011
  }
3972
4012
  /**
3973
4013
  * Choice Sequencing Request Process (SB.2.9)
@@ -4168,10 +4208,18 @@
4168
4208
  }
4169
4209
  }
4170
4210
 
4211
+ var __defProp$10 = Object.defineProperty;
4212
+ var __defNormalProp$10 = (obj, key, value) => key in obj ? __defProp$10(obj, key, {
4213
+ enumerable: true,
4214
+ configurable: true,
4215
+ writable: true,
4216
+ value
4217
+ }) : obj[key] = value;
4218
+ var __publicField$10 = (obj, key, value) => __defNormalProp$10(obj, typeof key !== "symbol" ? key + "" : key, value);
4171
4219
  class ExitRequestHandler {
4172
4220
  constructor(activityTree, ruleEngine) {
4173
- this.activityTree = activityTree;
4174
- this.ruleEngine = ruleEngine;
4221
+ __publicField$10(this, "activityTree", activityTree);
4222
+ __publicField$10(this, "ruleEngine", ruleEngine);
4175
4223
  }
4176
4224
  /**
4177
4225
  * Exit Sequencing Request Process (SB.2.11)
@@ -4284,10 +4332,18 @@
4284
4332
  }
4285
4333
  }
4286
4334
 
4335
+ var __defProp$$ = Object.defineProperty;
4336
+ var __defNormalProp$$ = (obj, key, value) => key in obj ? __defProp$$(obj, key, {
4337
+ enumerable: true,
4338
+ configurable: true,
4339
+ writable: true,
4340
+ value
4341
+ }) : obj[key] = value;
4342
+ var __publicField$$ = (obj, key, value) => __defNormalProp$$(obj, typeof key !== "symbol" ? key + "" : key, value);
4287
4343
  class RetryRequestHandler {
4288
4344
  constructor(activityTree, traversalService) {
4289
- this.activityTree = activityTree;
4290
- this.traversalService = traversalService;
4345
+ __publicField$$(this, "activityTree", activityTree);
4346
+ __publicField$$(this, "traversalService", traversalService);
4291
4347
  }
4292
4348
  /**
4293
4349
  * Retry Sequencing Request Process (SB.2.10)
@@ -5450,7 +5506,8 @@
5450
5506
  getNumericLevel(level) {
5451
5507
  if (level === void 0) return LogLevelEnum.NONE;
5452
5508
  if (typeof level === "number") return level;
5453
- switch (level) {
5509
+ const normalized = typeof level === "string" ? level.toUpperCase() : level;
5510
+ switch (normalized) {
5454
5511
  case "1":
5455
5512
  case "DEBUG":
5456
5513
  return LogLevelEnum.DEBUG;
@@ -5831,7 +5888,7 @@ ${stackTrace}`);
5831
5888
  * @param {Function} apiLog - The logging function
5832
5889
  */
5833
5890
  constructor(settings, error_codes, apiLog) {
5834
- this.apiLog = apiLog;
5891
+ __publicField$T(this, "apiLog", apiLog);
5835
5892
  __publicField$T(this, "settings");
5836
5893
  __publicField$T(this, "error_codes");
5837
5894
  __publicField$T(this, "storeName", "scorm_again_offline_data");