@citolab/qti-components 10.0.0-next.2 → 10.0.0-next.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.
@@ -636,18 +636,18 @@ var EvalAstFactory = class {
636
636
  }
637
637
  const value = this.right.evaluate(scope);
638
638
  let receiver = void 0;
639
- let property21;
639
+ let property23;
640
640
  if (this.left.type === "Getter") {
641
641
  receiver = this.left.receiver.evaluate(scope);
642
- property21 = this.left.name;
642
+ property23 = this.left.name;
643
643
  } else if (this.left.type === "Index") {
644
644
  receiver = this.left.receiver.evaluate(scope);
645
- property21 = this.left.argument.evaluate(scope);
645
+ property23 = this.left.argument.evaluate(scope);
646
646
  } else if (this.left.type === "ID") {
647
647
  receiver = scope;
648
- property21 = this.left.value;
648
+ property23 = this.left.value;
649
649
  }
650
- return receiver === void 0 ? void 0 : receiver[property21] = value;
650
+ return receiver === void 0 ? void 0 : receiver[property23] = value;
651
651
  }
652
652
  return f(this.left.evaluate(scope), this.right.evaluate(scope));
653
653
  },
@@ -1495,6 +1495,9 @@ __decorate5([
1495
1495
  property5({ type: Boolean, converter: stringToBooleanConverter3, attribute: "validate-responses" })
1496
1496
  ], QtiItemSessionControl.prototype, "validateResponses", void 0);
1497
1497
 
1498
+ // ../qti-test/dist/components/qti-number-presented/qti-number-presented.js
1499
+ import { consume as consume4 } from "@lit/context";
1500
+
1498
1501
  // ../qti-test/dist/internal/item-ref-selection.js
1499
1502
  var categoryList = (value) => value?.split(/\s+/).filter(Boolean) ?? [];
1500
1503
  var selectionFrom = (element) => ({
@@ -1520,6 +1523,43 @@ var selectItemRefs = (testElement, { sectionIdentifier, includeCategories, exclu
1520
1523
  });
1521
1524
  };
1522
1525
 
1526
+ // ../qti-test/dist/components/qti-number-presented/qti-number-presented.js
1527
+ var __decorate6 = function(decorators, target, key, desc) {
1528
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
1529
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
1530
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
1531
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
1532
+ };
1533
+ var QtiNumberPresented = class extends QtiExpression {
1534
+ #connectedTest = null;
1535
+ constructor() {
1536
+ super();
1537
+ listenPublic2(this, "cito-test-loaded", (e) => this.#connectedTest = e.detail);
1538
+ }
1539
+ /** The test this expression is in: handed over by a test harness, or found up the tree in a real document. */
1540
+ get #testElement() {
1541
+ return this.#connectedTest ?? this.closest("qti-assessment-test");
1542
+ }
1543
+ getResult() {
1544
+ const testElement = this.#testElement;
1545
+ if (!testElement) {
1546
+ console.warn("qti-number-presented: no enclosing qti-assessment-test, nothing to count");
1547
+ return 0;
1548
+ }
1549
+ const presented = new Set((this._testContext?.items ?? []).filter((item) => {
1550
+ const status = item.variables?.find((v) => v.identifier === "completionStatus")?.value;
1551
+ return status != null && status !== "not_attempted";
1552
+ }).map((item) => item.identifier));
1553
+ return selectItemRefs(testElement, selectionFrom(this)).filter((itemRef) => presented.has(itemRef.identifier)).length;
1554
+ }
1555
+ calculate() {
1556
+ return this.getResult();
1557
+ }
1558
+ };
1559
+ __decorate6([
1560
+ consume4({ context: testContext, subscribe: true })
1561
+ ], QtiNumberPresented.prototype, "_testContext", void 0);
1562
+
1523
1563
  // ../qti-test/dist/components/qti-number-selected/qti-number-selected.js
1524
1564
  var QtiNumberSelected = class extends QtiExpression {
1525
1565
  #connectedTest = null;
@@ -1604,7 +1644,18 @@ var QtiOutcomeProcessingProcessor = class {
1604
1644
 
1605
1645
  // ../qti-test/dist/components/qti-test-feedback/qti-test-feedback.js
1606
1646
  import { css as css4, html as html7 } from "lit";
1647
+ import { property as property6 } from "lit/decorators.js";
1648
+ var __decorate7 = function(decorators, target, key, desc) {
1649
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
1650
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
1651
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
1652
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
1653
+ };
1607
1654
  var QtiTestFeedback = class extends QtiModalFeedback {
1655
+ constructor() {
1656
+ super(...arguments);
1657
+ this.access = "atEnd";
1658
+ }
1608
1659
  static {
1609
1660
  this.styles = css4`
1610
1661
  :host {
@@ -1612,15 +1663,26 @@ var QtiTestFeedback = class extends QtiModalFeedback {
1612
1663
  }
1613
1664
  `;
1614
1665
  }
1666
+ /**
1667
+ * Whether this feedback applies for a value of its `outcome-identifier`: with `show-hide="show"`
1668
+ * when the value is (or, for a container, holds) its `identifier`; with `hide` when it is not.
1669
+ */
1670
+ matches(value) {
1671
+ const found = Array.isArray(value) ? value.includes(this.identifier) : value != null && value === this.identifier;
1672
+ return this.showHide === "hide" ? !found : found;
1673
+ }
1615
1674
  render() {
1616
1675
  return html7``;
1617
1676
  }
1618
1677
  };
1678
+ __decorate7([
1679
+ property6({ type: String })
1680
+ ], QtiTestFeedback.prototype, "access", void 0);
1619
1681
 
1620
1682
  // ../qti-test/dist/components/qti-test-part/qti-test-part.js
1621
1683
  import { html as html8, LitElement as LitElement8 } from "lit";
1622
- import { property as property6 } from "lit/decorators.js";
1623
- var __decorate6 = function(decorators, target, key, desc) {
1684
+ import { property as property7 } from "lit/decorators.js";
1685
+ var __decorate8 = function(decorators, target, key, desc) {
1624
1686
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
1625
1687
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
1626
1688
  else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
@@ -1656,22 +1718,22 @@ var QtiTestPart = class extends LitElement8 {
1656
1718
  return html8` <slot></slot>`;
1657
1719
  }
1658
1720
  };
1659
- __decorate6([
1660
- property6({ type: String })
1721
+ __decorate8([
1722
+ property7({ type: String })
1661
1723
  ], QtiTestPart.prototype, "identifier", void 0);
1662
- __decorate6([
1663
- property6({ type: String })
1724
+ __decorate8([
1725
+ property7({ type: String })
1664
1726
  ], QtiTestPart.prototype, "class", void 0);
1665
- __decorate6([
1666
- property6({ type: String, attribute: "navigation-mode" })
1727
+ __decorate8([
1728
+ property7({ type: String, attribute: "navigation-mode" })
1667
1729
  ], QtiTestPart.prototype, "navigationMode", void 0);
1668
- __decorate6([
1669
- property6({ type: String, attribute: "submission-mode" })
1730
+ __decorate8([
1731
+ property7({ type: String, attribute: "submission-mode" })
1670
1732
  ], QtiTestPart.prototype, "submissionMode", void 0);
1671
1733
 
1672
1734
  // ../qti-test/dist/components/qti-test-variables/qti-test-variables.js
1673
- import { consume as consume4 } from "@lit/context";
1674
- var __decorate7 = function(decorators, target, key, desc) {
1735
+ import { consume as consume5 } from "@lit/context";
1736
+ var __decorate9 = function(decorators, target, key, desc) {
1675
1737
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
1676
1738
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
1677
1739
  else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
@@ -1712,8 +1774,8 @@ var QtiTestVariables = class extends QtiExpression {
1712
1774
  return this.getResult();
1713
1775
  }
1714
1776
  };
1715
- __decorate7([
1716
- consume4({ context: testContext, subscribe: true })
1777
+ __decorate9([
1778
+ consume5({ context: testContext, subscribe: true })
1717
1779
  ], QtiTestVariables.prototype, "_testContext", void 0);
1718
1780
  var QtiTestVariablesExpression = class {
1719
1781
  constructor(testContext2, itemVariable, includedItems) {
@@ -1750,7 +1812,7 @@ import { html as html9, LitElement as LitElement10 } from "lit";
1750
1812
  import { state as state2 } from "lit/decorators.js";
1751
1813
 
1752
1814
  // ../qti-test/dist/mixins/test-navigation.mixin.js
1753
- import { property as property7 } from "lit/decorators.js";
1815
+ import { property as property8 } from "lit/decorators.js";
1754
1816
 
1755
1817
  // ../qti-test/dist/internal/item-sequencing.js
1756
1818
  var SECTION = "qti-assessment-section";
@@ -1843,7 +1905,7 @@ function preConditionsPass(itemRef, from) {
1843
1905
  }
1844
1906
 
1845
1907
  // ../qti-test/dist/mixins/test-navigation.mixin.js
1846
- var __decorate8 = function(decorators, target, key, desc) {
1908
+ var __decorate10 = function(decorators, target, key, desc) {
1847
1909
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
1848
1910
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
1849
1911
  else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
@@ -2351,17 +2413,17 @@ var TestNavigationMixin = (superClass) => {
2351
2413
  });
2352
2414
  }
2353
2415
  }
2354
- __decorate8([
2355
- property7({ type: String })
2416
+ __decorate10([
2417
+ property8({ type: String })
2356
2418
  ], TestNavigationClass.prototype, "navigate", void 0);
2357
- __decorate8([
2358
- property7({ type: Number })
2419
+ __decorate10([
2420
+ property8({ type: Number })
2359
2421
  ], TestNavigationClass.prototype, "requestTimeout", void 0);
2360
- __decorate8([
2361
- property7({ attribute: false })
2422
+ __decorate10([
2423
+ property8({ attribute: false })
2362
2424
  ], TestNavigationClass.prototype, "postLoadTransformCallback", void 0);
2363
- __decorate8([
2364
- property7({ attribute: false })
2425
+ __decorate10([
2426
+ property8({ attribute: false })
2365
2427
  ], TestNavigationClass.prototype, "postLoadTestTransformCallback", void 0);
2366
2428
  return TestNavigationClass;
2367
2429
  };
@@ -2417,8 +2479,8 @@ var TestViewMixin = (superClass) => {
2417
2479
  // ../qti-test/dist/mixins/test-base.js
2418
2480
  import { provide } from "@lit/context";
2419
2481
  import { LitElement as LitElement9 } from "lit";
2420
- import { property as property8 } from "lit/decorators.js";
2421
- var __decorate9 = function(decorators, target, key, desc) {
2482
+ import { property as property9 } from "lit/decorators.js";
2483
+ var __decorate11 = function(decorators, target, key, desc) {
2422
2484
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
2423
2485
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
2424
2486
  else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
@@ -2444,6 +2506,8 @@ var TestBaseMixin = (superClass) => {
2444
2506
  } else {
2445
2507
  const newVariables = [...assessmentItem.variables];
2446
2508
  for (const variable of itemContext.variables) {
2509
+ if (variable.identifier === "completionStatus" && variable.value === "not_attempted")
2510
+ continue;
2447
2511
  const currentVariable = newVariables.find((v) => v.identifier === variable.identifier);
2448
2512
  if (currentVariable) {
2449
2513
  currentVariable.value = variable.value;
@@ -2452,6 +2516,7 @@ var TestBaseMixin = (superClass) => {
2452
2516
  }
2453
2517
  }
2454
2518
  assessmentItem.variables = newVariables;
2519
+ this.#leaveNotAttempted(identifier, newVariables.find((v) => v.identifier === "completionStatus")?.value);
2455
2520
  if (itemContext.state) {
2456
2521
  assessmentItem.state = itemContext.state;
2457
2522
  }
@@ -2558,13 +2623,29 @@ var TestBaseMixin = (superClass) => {
2558
2623
  };
2559
2624
  this.dispatchEvent(new CustomEvent("qti-test-context-updated", { detail: this.testContext, bubbles: false, composed: false }));
2560
2625
  }
2626
+ /** Write the presented item's own status over a `not_attempted` the test context still holds for it. */
2627
+ #leaveNotAttempted(identifier, status) {
2628
+ if (typeof status !== "string" || status === "not_attempted")
2629
+ return;
2630
+ const item = this.testContext.items.find((i) => i.identifier === identifier);
2631
+ const current = item?.variables.find((v) => v.identifier === "completionStatus");
2632
+ if (current?.value !== "not_attempted")
2633
+ return;
2634
+ this.testContext = {
2635
+ ...this.testContext,
2636
+ items: this.testContext.items.map((i) => i.identifier !== identifier ? i : {
2637
+ ...i,
2638
+ variables: i.variables.map((v) => v.identifier === "completionStatus" ? { ...v, value: status } : v)
2639
+ })
2640
+ };
2641
+ }
2561
2642
  }
2562
- __decorate9([
2563
- property8({ attribute: false, type: Object }),
2643
+ __decorate11([
2644
+ property9({ attribute: false, type: Object }),
2564
2645
  provide({ context: testContext })
2565
2646
  ], TestBaseClass.prototype, "testContext", void 0);
2566
- __decorate9([
2567
- property8({ attribute: false, type: Object }),
2647
+ __decorate11([
2648
+ property9({ attribute: false, type: Object }),
2568
2649
  provide({ context: sessionContext })
2569
2650
  ], TestBaseClass.prototype, "sessionContext", void 0);
2570
2651
  return TestBaseClass;
@@ -2706,6 +2787,15 @@ var TestProcessingMixin = (superClass) => {
2706
2787
  outcomeProcessor?.process();
2707
2788
  return true;
2708
2789
  }
2790
+ /**
2791
+ * The `qti-test-feedback` elements that apply now, read from the test outcomes: run
2792
+ * `outcomeProcessing()` first. `access` narrows them to the end of the test (`atEnd`) or to
2793
+ * while it runs (`during`); without it, both.
2794
+ */
2795
+ getTestFeedback(access) {
2796
+ const feedback = Array.from((this._testElement ?? this).querySelectorAll("qti-test-feedback") ?? []);
2797
+ return feedback.filter((fb) => (!access || fb.access === access) && fb.matches(this.getOutcome(fb.outcomeIdentifier)?.value));
2798
+ }
2709
2799
  /* --------------------------- ENABLED WHEN UNIT TESTING OUTCOME PROCESSING ------------------------------------ */
2710
2800
  updateOutcomeVariable(identifier, value) {
2711
2801
  const outcomeVariable = this.getOutcome(identifier);
@@ -2737,7 +2827,7 @@ var TestProcessingMixin = (superClass) => {
2737
2827
  };
2738
2828
 
2739
2829
  // ../qti-test/dist/components/qti-test/qti-test.js
2740
- var __decorate10 = function(decorators, target, key, desc) {
2830
+ var __decorate12 = function(decorators, target, key, desc) {
2741
2831
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
2742
2832
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
2743
2833
  else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
@@ -2771,18 +2861,18 @@ var QtiTest = class extends TestNavigationMixin(TestViewMixin(TestProcessingMixi
2771
2861
  return html9`<slot></slot>`;
2772
2862
  }
2773
2863
  };
2774
- __decorate10([
2864
+ __decorate12([
2775
2865
  state2(),
2776
2866
  provide2({ context: configContext })
2777
2867
  ], QtiTest.prototype, "configContext", void 0);
2778
- __decorate10([
2868
+ __decorate12([
2779
2869
  state2(),
2780
2870
  provide2({ context: qtiContext })
2781
2871
  ], QtiTest.prototype, "qtiContext", void 0);
2782
2872
 
2783
2873
  // ../qti-test/dist/components/test-check-item/test-check-item.js
2784
- import { consume as consume5 } from "@lit/context";
2785
2874
  import { css as css6, html as html10, LitElement as LitElement11 } from "lit";
2875
+ import { property as property10 } from "lit/decorators.js";
2786
2876
 
2787
2877
  // ../qti-test/dist/components/styles.js
2788
2878
  import { css as css5 } from "lit";
@@ -2824,7 +2914,7 @@ var ind = css5`
2824
2914
  `;
2825
2915
 
2826
2916
  // ../qti-test/dist/components/test-check-item/test-check-item.js
2827
- var __decorate11 = function(decorators, target, key, desc) {
2917
+ var __decorate13 = function(decorators, target, key, desc) {
2828
2918
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
2829
2919
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
2830
2920
  else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
@@ -2849,31 +2939,26 @@ var TestCheckItem = class extends LitElement11 {
2849
2939
  }
2850
2940
  constructor() {
2851
2941
  super();
2942
+ this.view = "scorer";
2852
2943
  this.addEventListener("click", () => {
2853
2944
  dispatchPublic(this, "cito-test-end-attempt", {});
2854
- const testContainer = this.testHost?.querySelector("test-container");
2855
- if (!testContainer)
2856
- return;
2857
- const viewElements = Array.from(testContainer.shadowRoot.querySelectorAll("[view]"));
2858
- viewElements.forEach((element) => {
2859
- element.classList.toggle("show", true);
2860
- });
2945
+ dispatchPublic(this, "cito-test-switch-view", this.view);
2861
2946
  });
2862
2947
  }
2863
2948
  render() {
2864
2949
  return html10` <slot></slot> `;
2865
2950
  }
2866
2951
  };
2867
- __decorate11([
2868
- consume5({ context: testHostContext, subscribe: true })
2869
- ], TestCheckItem.prototype, "testHost", void 0);
2952
+ __decorate13([
2953
+ property10({ type: String })
2954
+ ], TestCheckItem.prototype, "view", void 0);
2870
2955
 
2871
2956
  // ../qti-test/dist/components/test-container/test-container.js
2872
2957
  import { consume as consume6 } from "@lit/context";
2873
2958
  import { LitElement as LitElement12, html as html11 } from "lit";
2874
- import { property as property9, state as state3 } from "lit/decorators.js";
2959
+ import { property as property11, state as state3 } from "lit/decorators.js";
2875
2960
  import { until } from "lit/directives/until.js";
2876
- var __decorate12 = function(decorators, target, key, desc) {
2961
+ var __decorate14 = function(decorators, target, key, desc) {
2877
2962
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
2878
2963
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
2879
2964
  else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
@@ -2979,37 +3064,37 @@ var TestContainer = class extends LitElement12 {
2979
3064
  `;
2980
3065
  }
2981
3066
  };
2982
- __decorate12([
2983
- property9({ attribute: false })
3067
+ __decorate14([
3068
+ property11({ attribute: false })
2984
3069
  ], TestContainer.prototype, "customElementRegistry", void 0);
2985
- __decorate12([
2986
- property9({ type: String, attribute: "test-url" })
3070
+ __decorate14([
3071
+ property11({ type: String, attribute: "test-url" })
2987
3072
  ], TestContainer.prototype, "testURL", void 0);
2988
- __decorate12([
3073
+ __decorate14([
2989
3074
  state3()
2990
3075
  ], TestContainer.prototype, "testDoc", void 0);
2991
- __decorate12([
3076
+ __decorate14([
2992
3077
  state3()
2993
3078
  ], TestContainer.prototype, "testXML", void 0);
2994
- __decorate12([
3079
+ __decorate14([
2995
3080
  consume6({ context: testHostContext, subscribe: true })
2996
3081
  ], TestContainer.prototype, "testHost", void 0);
2997
- __decorate12([
3082
+ __decorate14([
2998
3083
  state3(),
2999
3084
  consume6({ context: qtiContext, subscribe: true })
3000
3085
  ], TestContainer.prototype, "qtiContext", void 0);
3001
- __decorate12([
3086
+ __decorate14([
3002
3087
  watch("testURL", { waitUntilFirstUpdate: true })
3003
3088
  ], TestContainer.prototype, "handleTestURLChange", null);
3004
- __decorate12([
3089
+ __decorate14([
3005
3090
  watch("testXML", { waitUntilFirstUpdate: true })
3006
3091
  ], TestContainer.prototype, "handleTestXMLChange", null);
3007
3092
 
3008
3093
  // ../qti-test/dist/components/test-end-attempt/test-end-attempt.js
3009
3094
  import { css as css7, html as html12, LitElement as LitElement13 } from "lit";
3010
- import { property as property10 } from "lit/decorators.js";
3095
+ import { property as property12 } from "lit/decorators.js";
3011
3096
  import { consume as consume7 } from "@lit/context";
3012
- var __decorate13 = function(decorators, target, key, desc) {
3097
+ var __decorate15 = function(decorators, target, key, desc) {
3013
3098
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
3014
3099
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
3015
3100
  else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
@@ -3085,21 +3170,21 @@ var TestEndAttempt = class extends LitElement13 {
3085
3170
  return html12` <slot></slot> `;
3086
3171
  }
3087
3172
  };
3088
- __decorate13([
3173
+ __decorate15([
3089
3174
  consume7({ context: computedContext, subscribe: true }),
3090
- property10({ attribute: false })
3175
+ property12({ attribute: false })
3091
3176
  ], TestEndAttempt.prototype, "computedContext", void 0);
3092
- __decorate13([
3093
- property10({ type: Boolean, reflect: true, attribute: "disabled" })
3177
+ __decorate15([
3178
+ property12({ type: Boolean, reflect: true, attribute: "disabled" })
3094
3179
  ], TestEndAttempt.prototype, "_internalDisabled", void 0);
3095
- __decorate13([
3180
+ __decorate15([
3096
3181
  watch("computedContext")
3097
3182
  ], TestEndAttempt.prototype, "_handleTestElementChange", null);
3098
3183
 
3099
3184
  // ../qti-test/dist/components/test-item-link/test-item-link.js
3100
3185
  import { css as css8, html as html13, LitElement as LitElement14 } from "lit";
3101
- import { property as property11 } from "lit/decorators.js";
3102
- var __decorate14 = function(decorators, target, key, desc) {
3186
+ import { property as property13 } from "lit/decorators.js";
3187
+ var __decorate16 = function(decorators, target, key, desc) {
3103
3188
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
3104
3189
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
3105
3190
  else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
@@ -3134,16 +3219,16 @@ var TestItemLink = class extends LitElement14 {
3134
3219
  return html13` <slot></slot> `;
3135
3220
  }
3136
3221
  };
3137
- __decorate14([
3138
- property11({ type: String, attribute: "item-id" })
3222
+ __decorate16([
3223
+ property13({ type: String, attribute: "item-id" })
3139
3224
  ], TestItemLink.prototype, "itemId", void 0);
3140
3225
 
3141
3226
  // ../qti-test/dist/components/test-item-to-speech/test-item-to-speech.js
3142
3227
  import { html as html14, LitElement as LitElement15, css as css9 } from "lit";
3143
3228
  import { consume as consume8, provide as provide3, createContext as createContext2 } from "@lit/context";
3144
- import { property as property12, state as state4 } from "lit/decorators.js";
3229
+ import { property as property14, state as state4 } from "lit/decorators.js";
3145
3230
  import { ifDefined } from "lit/directives/if-defined.js";
3146
- var __decorate15 = function(decorators, target, key, desc) {
3231
+ var __decorate17 = function(decorators, target, key, desc) {
3147
3232
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
3148
3233
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
3149
3234
  else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
@@ -3243,10 +3328,10 @@ var TtsButtonBase = class extends LitElement15 {
3243
3328
  this.#internals.states.add("picking");
3244
3329
  }
3245
3330
  };
3246
- __decorate15([
3247
- property12({ type: String })
3331
+ __decorate17([
3332
+ property14({ type: String })
3248
3333
  ], TtsButtonBase.prototype, "label", void 0);
3249
- __decorate15([
3334
+ __decorate17([
3250
3335
  consume8({ context: ttsContext, subscribe: true })
3251
3336
  ], TtsButtonBase.prototype, "_tts", void 0);
3252
3337
  var TestItemToSpeech = class extends LitElement15 {
@@ -3841,16 +3926,16 @@ var TestItemToSpeech = class extends LitElement15 {
3841
3926
  }
3842
3927
  }
3843
3928
  };
3844
- __decorate15([
3845
- property12({ type: String })
3929
+ __decorate17([
3930
+ property14({ type: String })
3846
3931
  ], TestItemToSpeech.prototype, "language", void 0);
3847
- __decorate15([
3932
+ __decorate17([
3848
3933
  consume8({ context: sessionContext, subscribe: true })
3849
3934
  ], TestItemToSpeech.prototype, "_sessionContext", void 0);
3850
- __decorate15([
3935
+ __decorate17([
3851
3936
  consume8({ context: testHostContext, subscribe: true })
3852
3937
  ], TestItemToSpeech.prototype, "testHost", void 0);
3853
- __decorate15([
3938
+ __decorate17([
3854
3939
  state4(),
3855
3940
  provide3({ context: ttsContext })
3856
3941
  ], TestItemToSpeech.prototype, "_ttsContext", void 0);
@@ -3874,8 +3959,8 @@ var TestTtsPlay = class extends TtsButtonBase {
3874
3959
  `;
3875
3960
  }
3876
3961
  };
3877
- __decorate15([
3878
- property12({ type: String, attribute: "pause-label" })
3962
+ __decorate17([
3963
+ property14({ type: String, attribute: "pause-label" })
3879
3964
  ], TestTtsPlay.prototype, "pauseLabel", void 0);
3880
3965
  var TestTtsPause = class extends TtsButtonBase {
3881
3966
  render() {
@@ -3965,8 +4050,8 @@ var TestTtsPick = class extends TtsButtonBase {
3965
4050
  // ../qti-test/dist/components/test-navigation/test-navigation.js
3966
4051
  import { ContextConsumer, consume as consume9, provide as provide4 } from "@lit/context";
3967
4052
  import { html as html15, LitElement as LitElement16 } from "lit";
3968
- import { property as property13, state as state5 } from "lit/decorators.js";
3969
- var __decorate16 = function(decorators, target, key, desc) {
4053
+ import { property as property15, state as state5 } from "lit/decorators.js";
4054
+ var __decorate18 = function(decorators, target, key, desc) {
3970
4055
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
3971
4056
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
3972
4057
  else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
@@ -4484,37 +4569,37 @@ var TestNavigation = class extends LitElement16 {
4484
4569
  return Number.isNaN(parsed) ? null : parsed;
4485
4570
  }
4486
4571
  };
4487
- __decorate16([
4488
- property13({ type: String })
4572
+ __decorate18([
4573
+ property15({ type: String })
4489
4574
  ], TestNavigation.prototype, "identifier", void 0);
4490
- __decorate16([
4575
+ __decorate18([
4491
4576
  state5()
4492
4577
  ], TestNavigation.prototype, "initContext", void 0);
4493
- __decorate16([
4578
+ __decorate18([
4494
4579
  state5(),
4495
4580
  consume9({ context: configContext, subscribe: true })
4496
4581
  ], TestNavigation.prototype, "configContext", void 0);
4497
- __decorate16([
4582
+ __decorate18([
4498
4583
  state5(),
4499
4584
  consume9({ context: testContext, subscribe: true })
4500
4585
  ], TestNavigation.prototype, "_testContext", void 0);
4501
- __decorate16([
4586
+ __decorate18([
4502
4587
  state5(),
4503
4588
  consume9({ context: sessionContext, subscribe: true })
4504
4589
  ], TestNavigation.prototype, "_sessionContext", void 0);
4505
- __decorate16([
4590
+ __decorate18([
4506
4591
  state5(),
4507
4592
  provide4({ context: computedContext })
4508
4593
  ], TestNavigation.prototype, "computedContext", void 0);
4509
- __decorate16([
4510
- property13({ type: Boolean, attribute: "auto-score-items" })
4594
+ __decorate18([
4595
+ property15({ type: Boolean, attribute: "auto-score-items" })
4511
4596
  ], TestNavigation.prototype, "autoScoreItems", void 0);
4512
4597
 
4513
4598
  // ../qti-test/dist/components/test-next/test-next.js
4514
4599
  import { css as css10, html as html16, LitElement as LitElement17 } from "lit";
4515
- import { property as property14 } from "lit/decorators.js";
4600
+ import { property as property16 } from "lit/decorators.js";
4516
4601
  import { consume as consume10 } from "@lit/context";
4517
- var __decorate17 = function(decorators, target, key, desc) {
4602
+ var __decorate19 = function(decorators, target, key, desc) {
4518
4603
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4519
4604
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
4520
4605
  else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
@@ -4587,20 +4672,20 @@ var TestNext = class extends LitElement17 {
4587
4672
  return html16`<slot></slot>`;
4588
4673
  }
4589
4674
  };
4590
- __decorate17([
4591
- property14({ type: Boolean, reflect: true, attribute: "disabled" })
4675
+ __decorate19([
4676
+ property16({ type: Boolean, reflect: true, attribute: "disabled" })
4592
4677
  ], TestNext.prototype, "_internalDisabled", void 0);
4593
- __decorate17([
4678
+ __decorate19([
4594
4679
  consume10({ context: computedContext, subscribe: true })
4595
4680
  ], TestNext.prototype, "computedContext", void 0);
4596
- __decorate17([
4681
+ __decorate19([
4597
4682
  watch("computedContext")
4598
4683
  ], TestNext.prototype, "_handleTestElementChange", null);
4599
4684
 
4600
4685
  // ../qti-test/dist/components/test-paging-buttons-stamp/test-paging-buttons-stamp.js
4601
4686
  import { html as html17, LitElement as LitElement18 } from "lit";
4602
4687
  import { consume as consume11 } from "@lit/context";
4603
- var __decorate18 = function(decorators, target, key, desc) {
4688
+ var __decorate20 = function(decorators, target, key, desc) {
4604
4689
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4605
4690
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
4606
4691
  else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
@@ -4628,15 +4713,15 @@ var TestPagingButtonsStamp = class extends LitElement18 {
4628
4713
  return html17` ${items.map((item) => this.myTemplate({ item, view: this.computedContext.view }))} `;
4629
4714
  }
4630
4715
  };
4631
- __decorate18([
4716
+ __decorate20([
4632
4717
  consume11({ context: computedContext, subscribe: true })
4633
4718
  ], TestPagingButtonsStamp.prototype, "computedContext", void 0);
4634
4719
 
4635
4720
  // ../qti-test/dist/components/test-prev/test-prev.js
4636
4721
  import { css as css11, html as html18, LitElement as LitElement19 } from "lit";
4637
- import { property as property15 } from "lit/decorators.js";
4722
+ import { property as property17 } from "lit/decorators.js";
4638
4723
  import { consume as consume12 } from "@lit/context";
4639
- var __decorate19 = function(decorators, target, key, desc) {
4724
+ var __decorate21 = function(decorators, target, key, desc) {
4640
4725
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4641
4726
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
4642
4727
  else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
@@ -4696,13 +4781,13 @@ var TestPrev = class extends LitElement19 {
4696
4781
  return html18`<slot></slot>`;
4697
4782
  }
4698
4783
  };
4699
- __decorate19([
4700
- property15({ type: Boolean, reflect: true, attribute: "disabled" })
4784
+ __decorate21([
4785
+ property17({ type: Boolean, reflect: true, attribute: "disabled" })
4701
4786
  ], TestPrev.prototype, "_internalDisabled", void 0);
4702
- __decorate19([
4787
+ __decorate21([
4703
4788
  consume12({ context: computedContext, subscribe: true })
4704
4789
  ], TestPrev.prototype, "computedContext", void 0);
4705
- __decorate19([
4790
+ __decorate21([
4706
4791
  watch("computedContext")
4707
4792
  ], TestPrev.prototype, "_handleTestElementChange", null);
4708
4793
 
@@ -4710,7 +4795,7 @@ __decorate19([
4710
4795
  import { html as html19, LitElement as LitElement20 } from "lit";
4711
4796
  import { consume as consume13 } from "@lit/context";
4712
4797
  import { state as state6 } from "lit/decorators.js";
4713
- var __decorate20 = function(decorators, target, key, desc) {
4798
+ var __decorate22 = function(decorators, target, key, desc) {
4714
4799
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4715
4800
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
4716
4801
  else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
@@ -4721,7 +4806,7 @@ var TestPrintContext = class extends LitElement20 {
4721
4806
  return html19` <small><pre>${JSON.stringify(this.computedContext, null, 2)}</pre></small> `;
4722
4807
  }
4723
4808
  };
4724
- __decorate20([
4809
+ __decorate22([
4725
4810
  state6(),
4726
4811
  consume13({ context: computedContext, subscribe: true })
4727
4812
  ], TestPrintContext.prototype, "computedContext", void 0);
@@ -4729,7 +4814,7 @@ __decorate20([
4729
4814
  // ../qti-test/dist/components/test-print-item-variables/test-print-item-variables.js
4730
4815
  import { html as html20, css as css12, LitElement as LitElement21 } from "lit";
4731
4816
  import { consume as consume14 } from "@lit/context";
4732
- var __decorate21 = function(decorators, target, key, desc) {
4817
+ var __decorate23 = function(decorators, target, key, desc) {
4733
4818
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4734
4819
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
4735
4820
  else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
@@ -4801,15 +4886,15 @@ var TestPrintVariables = class extends LitElement21 {
4801
4886
  `;
4802
4887
  }
4803
4888
  };
4804
- __decorate21([
4889
+ __decorate23([
4805
4890
  consume14({ context: computedContext, subscribe: true })
4806
4891
  ], TestPrintVariables.prototype, "computedContext", void 0);
4807
4892
 
4808
4893
  // ../qti-test/dist/components/test-scoring-buttons/test-scoring-buttons.js
4809
4894
  import { html as html21, LitElement as LitElement22, nothing as nothing3 } from "lit";
4810
4895
  import { consume as consume15 } from "@lit/context";
4811
- import { property as property16 } from "lit/decorators.js";
4812
- var __decorate22 = function(decorators, target, key, desc) {
4896
+ import { property as property18 } from "lit/decorators.js";
4897
+ var __decorate24 = function(decorators, target, key, desc) {
4813
4898
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4814
4899
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
4815
4900
  else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
@@ -4865,21 +4950,21 @@ var TestScoringButtons = class extends LitElement22 {
4865
4950
  });
4866
4951
  }
4867
4952
  };
4868
- __decorate22([
4869
- property16({ type: String, attribute: "view" })
4953
+ __decorate24([
4954
+ property18({ type: String, attribute: "view" })
4870
4955
  ], TestScoringButtons.prototype, "view", void 0);
4871
- __decorate22([
4872
- property16({ type: Boolean })
4956
+ __decorate24([
4957
+ property18({ type: Boolean })
4873
4958
  ], TestScoringButtons.prototype, "disabled", void 0);
4874
- __decorate22([
4959
+ __decorate24([
4875
4960
  consume15({ context: computedContext, subscribe: true })
4876
4961
  ], TestScoringButtons.prototype, "computedContext", void 0);
4877
4962
 
4878
4963
  // ../qti-test/dist/components/test-scoring-feedback/test-scoring-feedback.js
4879
4964
  import { consume as consume16 } from "@lit/context";
4880
4965
  import { html as html22, LitElement as LitElement23 } from "lit";
4881
- import { property as property17 } from "lit/decorators.js";
4882
- var __decorate23 = function(decorators, target, key, desc) {
4966
+ import { property as property19 } from "lit/decorators.js";
4967
+ var __decorate25 = function(decorators, target, key, desc) {
4883
4968
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4884
4969
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
4885
4970
  else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
@@ -4918,17 +5003,17 @@ var TestScoringFeedback = class extends LitElement23 {
4918
5003
  return html22`<div>${feedbackText()}</div>`;
4919
5004
  }
4920
5005
  };
4921
- __decorate23([
5006
+ __decorate25([
4922
5007
  consume16({ context: computedContext, subscribe: true })
4923
5008
  ], TestScoringFeedback.prototype, "computedContext", void 0);
4924
- __decorate23([
4925
- property17({ type: String, attribute: "view" })
5009
+ __decorate25([
5010
+ property19({ type: String, attribute: "view" })
4926
5011
  ], TestScoringFeedback.prototype, "view", void 0);
4927
5012
 
4928
5013
  // ../qti-test/dist/components/test-section-buttons-stamp/test-section-buttons-stamp.js
4929
5014
  import { html as html23, LitElement as LitElement24 } from "lit";
4930
5015
  import { consume as consume17 } from "@lit/context";
4931
- var __decorate24 = function(decorators, target, key, desc) {
5016
+ var __decorate26 = function(decorators, target, key, desc) {
4932
5017
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4933
5018
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
4934
5019
  else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
@@ -4956,14 +5041,14 @@ var TestSectionButtonsStamp = class extends LitElement24 {
4956
5041
  return html23` ${sections.map((item) => this.myTemplate({ item }))} `;
4957
5042
  }
4958
5043
  };
4959
- __decorate24([
5044
+ __decorate26([
4960
5045
  consume17({ context: computedContext, subscribe: true })
4961
5046
  ], TestSectionButtonsStamp.prototype, "computedContext", void 0);
4962
5047
 
4963
5048
  // ../qti-test/dist/components/test-section-link/test-section-link.js
4964
5049
  import { css as css13, html as html24, LitElement as LitElement25 } from "lit";
4965
- import { property as property18 } from "lit/decorators.js";
4966
- var __decorate25 = function(decorators, target, key, desc) {
5050
+ import { property as property20 } from "lit/decorators.js";
5051
+ var __decorate27 = function(decorators, target, key, desc) {
4967
5052
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4968
5053
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
4969
5054
  else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
@@ -4998,15 +5083,15 @@ var TestSectionLink = class extends LitElement25 {
4998
5083
  return html24` <slot></slot> `;
4999
5084
  }
5000
5085
  };
5001
- __decorate25([
5002
- property18({ type: String, attribute: "section-id" })
5086
+ __decorate27([
5087
+ property20({ type: String, attribute: "section-id" })
5003
5088
  ], TestSectionLink.prototype, "sectionId", void 0);
5004
5089
 
5005
5090
  // ../qti-test/dist/components/test-stamp/test-stamp.js
5006
5091
  import { html as html25, LitElement as LitElement26, nothing as nothing4 } from "lit";
5007
- import { property as property19, state as state7 } from "lit/decorators.js";
5092
+ import { property as property21, state as state7 } from "lit/decorators.js";
5008
5093
  import { consume as consume18 } from "@lit/context";
5009
- var __decorate26 = function(decorators, target, key, desc) {
5094
+ var __decorate28 = function(decorators, target, key, desc) {
5010
5095
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
5011
5096
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5012
5097
  else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
@@ -5079,22 +5164,22 @@ var TestStamp = class extends LitElement26 {
5079
5164
  ${this.myTemplate ? this.myTemplate(this.stampContext) : nothing4}`;
5080
5165
  }
5081
5166
  };
5082
- __decorate26([
5083
- property19({ type: Boolean, reflect: true })
5167
+ __decorate28([
5168
+ property21({ type: Boolean, reflect: true })
5084
5169
  ], TestStamp.prototype, "debug", void 0);
5085
- __decorate26([
5170
+ __decorate28([
5086
5171
  state7(),
5087
5172
  consume18({ context: computedContext, subscribe: true })
5088
5173
  ], TestStamp.prototype, "computedContext", void 0);
5089
- __decorate26([
5174
+ __decorate28([
5090
5175
  state7()
5091
5176
  ], TestStamp.prototype, "stampContext", void 0);
5092
5177
 
5093
5178
  // ../qti-test/dist/components/test-view-toggle/test-view.js
5094
5179
  import { html as html26, LitElement as LitElement27 } from "lit";
5095
- import { property as property20, state as state8 } from "lit/decorators.js";
5180
+ import { property as property22, state as state8 } from "lit/decorators.js";
5096
5181
  import { consume as consume19 } from "@lit/context";
5097
- var __decorate27 = function(decorators, target, key, desc) {
5182
+ var __decorate29 = function(decorators, target, key, desc) {
5098
5183
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
5099
5184
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5100
5185
  else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
@@ -5145,26 +5230,26 @@ var TestView = class extends LitElement27 {
5145
5230
  }
5146
5231
  };
5147
5232
  _a = TestView;
5148
- __decorate27([
5233
+ __decorate29([
5149
5234
  consume19({ context: sessionContext, subscribe: true })
5150
5235
  ], TestView.prototype, "sessionContext", void 0);
5151
- __decorate27([
5152
- property20({ type: String })
5236
+ __decorate29([
5237
+ property22({ type: String })
5153
5238
  ], TestView.prototype, "label", void 0);
5154
- __decorate27([
5155
- property20({ type: String, attribute: "view-options" })
5239
+ __decorate29([
5240
+ property22({ type: String, attribute: "view-options" })
5156
5241
  ], TestView.prototype, "viewOptions", void 0);
5157
- __decorate27([
5242
+ __decorate29([
5158
5243
  watch("viewOptions", { waitUntilFirstUpdate: true })
5159
5244
  ], TestView.prototype, "_handleViewOptionsChange", void 0);
5160
- __decorate27([
5245
+ __decorate29([
5161
5246
  state8()
5162
5247
  ], TestView.prototype, "_viewOptions", void 0);
5163
5248
 
5164
5249
  // ../qti-test/dist/components/test-view-toggle/test-view-toggle.js
5165
5250
  import { consume as consume20 } from "@lit/context";
5166
5251
  import { html as html27, LitElement as LitElement28, nothing as nothing5 } from "lit";
5167
- var __decorate28 = function(decorators, target, key, desc) {
5252
+ var __decorate30 = function(decorators, target, key, desc) {
5168
5253
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
5169
5254
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5170
5255
  else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
@@ -5201,7 +5286,7 @@ var TestViewToggle = class extends LitElement28 {
5201
5286
  }) : nothing5}`;
5202
5287
  }
5203
5288
  };
5204
- __decorate28([
5289
+ __decorate30([
5205
5290
  consume20({ context: sessionContext, subscribe: true })
5206
5291
  ], TestViewToggle.prototype, "sessionContext", void 0);
5207
5292
 
@@ -5212,6 +5297,7 @@ var qtiTestElements = [
5212
5297
  { tag: "qti-assessment-test", ctor: QtiAssessmentTest },
5213
5298
  { tag: "qti-branch-rule", ctor: QtiBranchRule },
5214
5299
  { tag: "qti-item-session-control", ctor: QtiItemSessionControl },
5300
+ { tag: "qti-number-presented", ctor: QtiNumberPresented },
5215
5301
  { tag: "qti-number-selected", ctor: QtiNumberSelected },
5216
5302
  { tag: "qti-outcome-processing", ctor: QtiOutcomeProcessing },
5217
5303
  { tag: "qti-pre-condition", ctor: QtiPreCondition },
@@ -5252,6 +5338,7 @@ export {
5252
5338
  QtiAssessmentTest,
5253
5339
  QtiBranchRule,
5254
5340
  QtiItemSessionControl,
5341
+ QtiNumberPresented,
5255
5342
  QtiNumberSelected,
5256
5343
  QtiPreCondition,
5257
5344
  QtiOutcomeProcessing,
@@ -5302,4 +5389,4 @@ export {
5302
5389
  * Portions Copyright (c) 2013, the Dart project authors.
5303
5390
  *)
5304
5391
  */
5305
- //# sourceMappingURL=chunk-K3VKQ6QF.js.map
5392
+ //# sourceMappingURL=chunk-UTW5VDTD.js.map