@pie-qti/item-player 0.1.4 → 0.1.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +21 -18
- package/dist/catalog/applyGlossaryTriggers.d.ts +15 -0
- package/dist/catalog/applyGlossaryTriggers.d.ts.map +1 -0
- package/dist/catalog/applyGlossaryTriggers.js +193 -0
- package/dist/catalog/catalogExtractor.d.ts +18 -0
- package/dist/catalog/catalogExtractor.d.ts.map +1 -0
- package/dist/catalog/catalogExtractor.js +114 -0
- package/dist/catalog/catalogLookup.d.ts +18 -0
- package/dist/catalog/catalogLookup.d.ts.map +1 -0
- package/dist/catalog/catalogLookup.js +44 -0
- package/dist/catalog/glossaryAction.d.ts +17 -0
- package/dist/catalog/glossaryAction.d.ts.map +1 -0
- package/dist/catalog/glossaryAction.js +21 -0
- package/dist/catalog/types.d.ts +26 -0
- package/dist/catalog/types.d.ts.map +1 -0
- package/dist/catalog/types.js +6 -0
- package/dist/core/ComponentRegistry.d.ts +14 -4
- package/dist/core/ComponentRegistry.d.ts.map +1 -1
- package/dist/core/ComponentRegistry.js +25 -4
- package/dist/core/ItemRenderer.d.ts.map +1 -1
- package/dist/core/ItemRenderer.js +8 -18
- package/dist/core/Player.d.ts +53 -1
- package/dist/core/Player.d.ts.map +1 -1
- package/dist/core/Player.js +195 -142
- package/dist/core/rolePolicy.d.ts +16 -0
- package/dist/core/rolePolicy.d.ts.map +1 -0
- package/dist/core/rolePolicy.js +15 -0
- package/dist/core/urlPolicy.d.ts.map +1 -1
- package/dist/core/urlPolicy.js +5 -2
- package/dist/document/AssessmentItemDocument.d.ts +42 -0
- package/dist/document/AssessmentItemDocument.d.ts.map +1 -0
- package/dist/document/AssessmentItemDocument.js +116 -0
- package/dist/element.d.ts +22 -0
- package/dist/element.js +5548 -0
- package/dist/element.js.map +1 -0
- package/dist/extraction/ExtractionRegistry.d.ts.map +1 -1
- package/dist/extraction/ExtractionRegistry.js +3 -1
- package/dist/extraction/extractors/associateExtractor.d.ts +1 -27
- package/dist/extraction/extractors/associateExtractor.d.ts.map +1 -1
- package/dist/extraction/extractors/associateExtractor.js +1 -94
- package/dist/extraction/extractors/choiceExtractor.d.ts +1 -24
- package/dist/extraction/extractors/choiceExtractor.d.ts.map +1 -1
- package/dist/extraction/extractors/choiceExtractor.js +1 -83
- package/dist/extraction/extractors/customExtractor.d.ts +1 -19
- package/dist/extraction/extractors/customExtractor.d.ts.map +1 -1
- package/dist/extraction/extractors/customExtractor.js +1 -51
- package/dist/extraction/extractors/drawingExtractor.d.ts +1 -29
- package/dist/extraction/extractors/drawingExtractor.d.ts.map +1 -1
- package/dist/extraction/extractors/drawingExtractor.js +1 -78
- package/dist/extraction/extractors/endAttemptExtractor.d.ts +1 -19
- package/dist/extraction/extractors/endAttemptExtractor.d.ts.map +1 -1
- package/dist/extraction/extractors/endAttemptExtractor.js +1 -53
- package/dist/extraction/extractors/extendedTextExtractor.d.ts +1 -20
- package/dist/extraction/extractors/extendedTextExtractor.d.ts.map +1 -1
- package/dist/extraction/extractors/extendedTextExtractor.js +1 -57
- package/dist/extraction/extractors/gapMatchExtractor.d.ts +1 -27
- package/dist/extraction/extractors/gapMatchExtractor.d.ts.map +1 -1
- package/dist/extraction/extractors/gapMatchExtractor.js +1 -142
- package/dist/extraction/extractors/graphicAssociateExtractor.d.ts +1 -39
- package/dist/extraction/extractors/graphicAssociateExtractor.d.ts.map +1 -1
- package/dist/extraction/extractors/graphicAssociateExtractor.js +1 -140
- package/dist/extraction/extractors/graphicGapMatchExtractor.d.ts +1 -41
- package/dist/extraction/extractors/graphicGapMatchExtractor.d.ts.map +1 -1
- package/dist/extraction/extractors/graphicGapMatchExtractor.js +1 -144
- package/dist/extraction/extractors/graphicOrderExtractor.d.ts +1 -36
- package/dist/extraction/extractors/graphicOrderExtractor.d.ts.map +1 -1
- package/dist/extraction/extractors/graphicOrderExtractor.js +1 -121
- package/dist/extraction/extractors/hotspotExtractor.d.ts +1 -37
- package/dist/extraction/extractors/hotspotExtractor.d.ts.map +1 -1
- package/dist/extraction/extractors/hotspotExtractor.js +1 -140
- package/dist/extraction/extractors/hottextExtractor.d.ts +1 -25
- package/dist/extraction/extractors/hottextExtractor.d.ts.map +1 -1
- package/dist/extraction/extractors/hottextExtractor.js +1 -120
- package/dist/extraction/extractors/index.d.ts +5 -58
- package/dist/extraction/extractors/index.d.ts.map +1 -1
- package/dist/extraction/extractors/index.js +5 -81
- package/dist/extraction/extractors/inlineChoiceExtractor.d.ts +1 -21
- package/dist/extraction/extractors/inlineChoiceExtractor.d.ts.map +1 -1
- package/dist/extraction/extractors/inlineChoiceExtractor.js +1 -67
- package/dist/extraction/extractors/matchExtractor.d.ts +1 -31
- package/dist/extraction/extractors/matchExtractor.d.ts.map +1 -1
- package/dist/extraction/extractors/matchExtractor.js +1 -134
- package/dist/extraction/extractors/mediaExtractor.d.ts +1 -32
- package/dist/extraction/extractors/mediaExtractor.d.ts.map +1 -1
- package/dist/extraction/extractors/mediaExtractor.js +1 -125
- package/dist/extraction/extractors/orderExtractor.d.ts +1 -25
- package/dist/extraction/extractors/orderExtractor.d.ts.map +1 -1
- package/dist/extraction/extractors/orderExtractor.js +1 -86
- package/dist/extraction/extractors/portableCustomExtractor.d.ts +2 -0
- package/dist/extraction/extractors/portableCustomExtractor.d.ts.map +1 -0
- package/dist/extraction/extractors/portableCustomExtractor.js +1 -0
- package/dist/extraction/extractors/positionObjectExtractor.d.ts +1 -58
- package/dist/extraction/extractors/positionObjectExtractor.d.ts.map +1 -1
- package/dist/extraction/extractors/positionObjectExtractor.js +1 -191
- package/dist/extraction/extractors/selectPointExtractor.d.ts +1 -30
- package/dist/extraction/extractors/selectPointExtractor.d.ts.map +1 -1
- package/dist/extraction/extractors/selectPointExtractor.js +1 -109
- package/dist/extraction/extractors/sliderExtractor.d.ts +1 -23
- package/dist/extraction/extractors/sliderExtractor.d.ts.map +1 -1
- package/dist/extraction/extractors/sliderExtractor.js +1 -73
- package/dist/extraction/extractors/textEntryExtractor.d.ts +1 -19
- package/dist/extraction/extractors/textEntryExtractor.d.ts.map +1 -1
- package/dist/extraction/extractors/textEntryExtractor.js +1 -48
- package/dist/extraction/extractors/uploadExtractor.d.ts +1 -19
- package/dist/extraction/extractors/uploadExtractor.d.ts.map +1 -1
- package/dist/extraction/extractors/uploadExtractor.js +1 -52
- package/dist/extraction/index.d.ts +1 -1
- package/dist/extraction/index.d.ts.map +1 -1
- package/dist/extraction/index.js +2 -2
- package/dist/extraction/interactionExtractionPipeline.d.ts +13 -0
- package/dist/extraction/interactionExtractionPipeline.d.ts.map +1 -0
- package/dist/extraction/interactionExtractionPipeline.js +39 -0
- package/dist/extraction/interactionSecurity.d.ts +4 -0
- package/dist/extraction/interactionSecurity.d.ts.map +1 -0
- package/dist/extraction/interactionSecurity.js +48 -0
- package/dist/index.d.ts +12 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +11 -4
- package/dist/interactions/associate/extractor.d.ts +29 -0
- package/dist/interactions/associate/extractor.d.ts.map +1 -0
- package/dist/interactions/associate/extractor.js +97 -0
- package/dist/interactions/associate/index.d.ts +3 -0
- package/dist/interactions/associate/index.d.ts.map +1 -0
- package/dist/interactions/associate/index.js +1 -0
- package/dist/interactions/associate/types.d.ts +2 -0
- package/dist/interactions/associate/types.d.ts.map +1 -0
- package/dist/interactions/associate/types.js +1 -0
- package/dist/interactions/choice/extractor.d.ts +27 -0
- package/dist/interactions/choice/extractor.d.ts.map +1 -0
- package/dist/interactions/choice/extractor.js +93 -0
- package/dist/interactions/choice/index.d.ts +3 -0
- package/dist/interactions/choice/index.d.ts.map +1 -0
- package/dist/interactions/choice/index.js +1 -0
- package/dist/interactions/choice/types.d.ts +2 -0
- package/dist/interactions/choice/types.d.ts.map +1 -0
- package/dist/interactions/choice/types.js +1 -0
- package/dist/interactions/custom/extractor.d.ts +20 -0
- package/dist/interactions/custom/extractor.d.ts.map +1 -0
- package/dist/interactions/custom/extractor.js +51 -0
- package/dist/interactions/custom/index.d.ts +3 -0
- package/dist/interactions/custom/index.d.ts.map +1 -0
- package/dist/interactions/custom/index.js +1 -0
- package/dist/interactions/custom/types.d.ts +2 -0
- package/dist/interactions/custom/types.d.ts.map +1 -0
- package/dist/interactions/custom/types.js +1 -0
- package/dist/interactions/drawing/extractor.d.ts +30 -0
- package/dist/interactions/drawing/extractor.d.ts.map +1 -0
- package/dist/interactions/drawing/extractor.js +78 -0
- package/dist/interactions/drawing/index.d.ts +3 -0
- package/dist/interactions/drawing/index.d.ts.map +1 -0
- package/dist/interactions/drawing/index.js +1 -0
- package/dist/interactions/drawing/types.d.ts +2 -0
- package/dist/interactions/drawing/types.d.ts.map +1 -0
- package/dist/interactions/drawing/types.js +1 -0
- package/dist/interactions/end-attempt/extractor.d.ts +20 -0
- package/dist/interactions/end-attempt/extractor.d.ts.map +1 -0
- package/dist/interactions/end-attempt/extractor.js +53 -0
- package/dist/interactions/end-attempt/index.d.ts +3 -0
- package/dist/interactions/end-attempt/index.d.ts.map +1 -0
- package/dist/interactions/end-attempt/index.js +1 -0
- package/dist/interactions/end-attempt/types.d.ts +2 -0
- package/dist/interactions/end-attempt/types.d.ts.map +1 -0
- package/dist/interactions/end-attempt/types.js +1 -0
- package/dist/interactions/extended-text/extractor.d.ts +21 -0
- package/dist/interactions/extended-text/extractor.d.ts.map +1 -0
- package/dist/interactions/extended-text/extractor.js +63 -0
- package/dist/interactions/extended-text/index.d.ts +3 -0
- package/dist/interactions/extended-text/index.d.ts.map +1 -0
- package/dist/interactions/extended-text/index.js +1 -0
- package/dist/interactions/extended-text/types.d.ts +2 -0
- package/dist/interactions/extended-text/types.d.ts.map +1 -0
- package/dist/interactions/extended-text/types.js +1 -0
- package/dist/interactions/gap-match/extractor.d.ts +29 -0
- package/dist/interactions/gap-match/extractor.d.ts.map +1 -0
- package/dist/interactions/gap-match/extractor.js +155 -0
- package/dist/interactions/gap-match/index.d.ts +3 -0
- package/dist/interactions/gap-match/index.d.ts.map +1 -0
- package/dist/interactions/gap-match/index.js +1 -0
- package/dist/interactions/gap-match/types.d.ts +2 -0
- package/dist/interactions/gap-match/types.d.ts.map +1 -0
- package/dist/interactions/gap-match/types.js +1 -0
- package/dist/interactions/graphic-associate/extractor.d.ts +41 -0
- package/dist/interactions/graphic-associate/extractor.d.ts.map +1 -0
- package/dist/interactions/graphic-associate/extractor.js +143 -0
- package/dist/interactions/graphic-associate/index.d.ts +3 -0
- package/dist/interactions/graphic-associate/index.d.ts.map +1 -0
- package/dist/interactions/graphic-associate/index.js +1 -0
- package/dist/interactions/graphic-associate/types.d.ts +2 -0
- package/dist/interactions/graphic-associate/types.d.ts.map +1 -0
- package/dist/interactions/graphic-associate/types.js +1 -0
- package/dist/interactions/graphic-gap-match/extractor.d.ts +53 -0
- package/dist/interactions/graphic-gap-match/extractor.d.ts.map +1 -0
- package/dist/interactions/graphic-gap-match/extractor.js +205 -0
- package/dist/interactions/graphic-gap-match/index.d.ts +3 -0
- package/dist/interactions/graphic-gap-match/index.d.ts.map +1 -0
- package/dist/interactions/graphic-gap-match/index.js +1 -0
- package/dist/interactions/graphic-gap-match/types.d.ts +2 -0
- package/dist/interactions/graphic-gap-match/types.d.ts.map +1 -0
- package/dist/interactions/graphic-gap-match/types.js +1 -0
- package/dist/interactions/graphic-order/extractor.d.ts +37 -0
- package/dist/interactions/graphic-order/extractor.d.ts.map +1 -0
- package/dist/interactions/graphic-order/extractor.js +121 -0
- package/dist/interactions/graphic-order/index.d.ts +3 -0
- package/dist/interactions/graphic-order/index.d.ts.map +1 -0
- package/dist/interactions/graphic-order/index.js +1 -0
- package/dist/interactions/graphic-order/types.d.ts +2 -0
- package/dist/interactions/graphic-order/types.d.ts.map +1 -0
- package/dist/interactions/graphic-order/types.js +1 -0
- package/dist/interactions/hotspot/extractor.d.ts +38 -0
- package/dist/interactions/hotspot/extractor.d.ts.map +1 -0
- package/dist/interactions/hotspot/extractor.js +159 -0
- package/dist/interactions/hotspot/index.d.ts +3 -0
- package/dist/interactions/hotspot/index.d.ts.map +1 -0
- package/dist/interactions/hotspot/index.js +1 -0
- package/dist/interactions/hotspot/types.d.ts +2 -0
- package/dist/interactions/hotspot/types.d.ts.map +1 -0
- package/dist/interactions/hotspot/types.js +1 -0
- package/dist/interactions/hottext/extractor.d.ts +26 -0
- package/dist/interactions/hottext/extractor.d.ts.map +1 -0
- package/dist/interactions/hottext/extractor.js +128 -0
- package/dist/interactions/hottext/index.d.ts +3 -0
- package/dist/interactions/hottext/index.d.ts.map +1 -0
- package/dist/interactions/hottext/index.js +1 -0
- package/dist/interactions/hottext/types.d.ts +2 -0
- package/dist/interactions/hottext/types.d.ts.map +1 -0
- package/dist/interactions/hottext/types.js +1 -0
- package/dist/interactions/index.d.ts +33 -0
- package/dist/interactions/index.d.ts.map +1 -0
- package/dist/interactions/index.js +30 -0
- package/dist/interactions/inline/index.d.ts +2 -0
- package/dist/interactions/inline/index.d.ts.map +1 -0
- package/dist/interactions/inline/index.js +1 -0
- package/dist/interactions/inline/render-plan.d.ts +19 -0
- package/dist/interactions/inline/render-plan.d.ts.map +1 -0
- package/dist/interactions/inline/render-plan.js +59 -0
- package/dist/interactions/inline-choice/extractor.d.ts +25 -0
- package/dist/interactions/inline-choice/extractor.d.ts.map +1 -0
- package/dist/interactions/inline-choice/extractor.js +80 -0
- package/dist/interactions/inline-choice/index.d.ts +3 -0
- package/dist/interactions/inline-choice/index.d.ts.map +1 -0
- package/dist/interactions/inline-choice/index.js +1 -0
- package/dist/interactions/inline-choice/types.d.ts +2 -0
- package/dist/interactions/inline-choice/types.d.ts.map +1 -0
- package/dist/interactions/inline-choice/types.js +1 -0
- package/dist/interactions/match/extractor.d.ts +37 -0
- package/dist/interactions/match/extractor.d.ts.map +1 -0
- package/dist/interactions/match/extractor.js +160 -0
- package/dist/interactions/match/index.d.ts +3 -0
- package/dist/interactions/match/index.d.ts.map +1 -0
- package/dist/interactions/match/index.js +1 -0
- package/dist/interactions/match/types.d.ts +2 -0
- package/dist/interactions/match/types.d.ts.map +1 -0
- package/dist/interactions/match/types.js +1 -0
- package/dist/interactions/media/extractor.d.ts +33 -0
- package/dist/interactions/media/extractor.d.ts.map +1 -0
- package/dist/interactions/media/extractor.js +125 -0
- package/dist/interactions/media/index.d.ts +3 -0
- package/dist/interactions/media/index.d.ts.map +1 -0
- package/dist/interactions/media/index.js +1 -0
- package/dist/interactions/media/types.d.ts +2 -0
- package/dist/interactions/media/types.d.ts.map +1 -0
- package/dist/interactions/media/types.js +1 -0
- package/dist/interactions/modules.d.ts +105 -0
- package/dist/interactions/modules.d.ts.map +1 -0
- package/dist/interactions/modules.js +86 -0
- package/dist/interactions/order/extractor.d.ts +28 -0
- package/dist/interactions/order/extractor.d.ts.map +1 -0
- package/dist/interactions/order/extractor.js +90 -0
- package/dist/interactions/order/index.d.ts +3 -0
- package/dist/interactions/order/index.d.ts.map +1 -0
- package/dist/interactions/order/index.js +1 -0
- package/dist/interactions/order/types.d.ts +2 -0
- package/dist/interactions/order/types.d.ts.map +1 -0
- package/dist/interactions/order/types.js +1 -0
- package/dist/interactions/portable-custom/extractor.d.ts +14 -0
- package/dist/interactions/portable-custom/extractor.d.ts.map +1 -0
- package/dist/interactions/portable-custom/extractor.js +96 -0
- package/dist/interactions/portable-custom/index.d.ts +3 -0
- package/dist/interactions/portable-custom/index.d.ts.map +1 -0
- package/dist/interactions/portable-custom/index.js +1 -0
- package/dist/interactions/portable-custom/types.d.ts +2 -0
- package/dist/interactions/portable-custom/types.d.ts.map +1 -0
- package/dist/interactions/portable-custom/types.js +1 -0
- package/dist/interactions/position-object/extractor.d.ts +59 -0
- package/dist/interactions/position-object/extractor.d.ts.map +1 -0
- package/dist/interactions/position-object/extractor.js +191 -0
- package/dist/interactions/position-object/index.d.ts +3 -0
- package/dist/interactions/position-object/index.d.ts.map +1 -0
- package/dist/interactions/position-object/index.js +1 -0
- package/dist/interactions/position-object/types.d.ts +2 -0
- package/dist/interactions/position-object/types.d.ts.map +1 -0
- package/dist/interactions/position-object/types.js +1 -0
- package/dist/interactions/select-point/extractor.d.ts +31 -0
- package/dist/interactions/select-point/extractor.d.ts.map +1 -0
- package/dist/interactions/select-point/extractor.js +109 -0
- package/dist/interactions/select-point/index.d.ts +3 -0
- package/dist/interactions/select-point/index.d.ts.map +1 -0
- package/dist/interactions/select-point/index.js +1 -0
- package/dist/interactions/select-point/types.d.ts +2 -0
- package/dist/interactions/select-point/types.d.ts.map +1 -0
- package/dist/interactions/select-point/types.js +1 -0
- package/dist/interactions/shared/index.d.ts +2 -0
- package/dist/interactions/shared/index.d.ts.map +1 -0
- package/dist/interactions/shared/index.js +1 -0
- package/dist/interactions/shared/types.d.ts +412 -0
- package/dist/interactions/shared/types.d.ts.map +1 -0
- package/dist/interactions/shared/types.js +7 -0
- package/dist/interactions/slider/extractor.d.ts +24 -0
- package/dist/interactions/slider/extractor.d.ts.map +1 -0
- package/dist/interactions/slider/extractor.js +73 -0
- package/dist/interactions/slider/index.d.ts +3 -0
- package/dist/interactions/slider/index.d.ts.map +1 -0
- package/dist/interactions/slider/index.js +1 -0
- package/dist/interactions/slider/types.d.ts +2 -0
- package/dist/interactions/slider/types.d.ts.map +1 -0
- package/dist/interactions/slider/types.js +1 -0
- package/dist/interactions/text-entry/extractor.d.ts +21 -0
- package/dist/interactions/text-entry/extractor.d.ts.map +1 -0
- package/dist/interactions/text-entry/extractor.js +54 -0
- package/dist/interactions/text-entry/index.d.ts +3 -0
- package/dist/interactions/text-entry/index.d.ts.map +1 -0
- package/dist/interactions/text-entry/index.js +1 -0
- package/dist/interactions/text-entry/types.d.ts +2 -0
- package/dist/interactions/text-entry/types.d.ts.map +1 -0
- package/dist/interactions/text-entry/types.js +1 -0
- package/dist/interactions/upload/extractor.d.ts +20 -0
- package/dist/interactions/upload/extractor.d.ts.map +1 -0
- package/dist/interactions/upload/extractor.js +59 -0
- package/dist/interactions/upload/index.d.ts +3 -0
- package/dist/interactions/upload/index.d.ts.map +1 -0
- package/dist/interactions/upload/index.js +1 -0
- package/dist/interactions/upload/types.d.ts +2 -0
- package/dist/interactions/upload/types.d.ts.map +1 -0
- package/dist/interactions/upload/types.js +1 -0
- package/dist/pci/PciHost.d.ts +53 -0
- package/dist/pci/PciHost.d.ts.map +1 -0
- package/dist/pci/PciHost.js +116 -0
- package/dist/pci/types.d.ts +57 -0
- package/dist/pci/types.d.ts.map +1 -0
- package/dist/pci/types.js +19 -0
- package/dist/pnp/applyPnp.d.ts +9 -0
- package/dist/pnp/applyPnp.d.ts.map +1 -0
- package/dist/pnp/applyPnp.js +19 -0
- package/dist/pnp/parsePnpXml.d.ts +9 -0
- package/dist/pnp/parsePnpXml.d.ts.map +1 -0
- package/dist/pnp/parsePnpXml.js +101 -0
- package/dist/pnp/types.d.ts +40 -0
- package/dist/pnp/types.d.ts.map +1 -0
- package/dist/pnp/types.js +1 -0
- package/dist/types/index.d.ts +22 -8
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/interactions.d.ts +4 -319
- package/dist/types/interactions.d.ts.map +1 -1
- package/dist/types/interactions.js +3 -3
- package/dist/web-components/QTIInteractionBase.d.ts +5 -5
- package/dist/web-components/QTIInteractionBase.d.ts.map +1 -1
- package/dist/web-components/QTIInteractionElement.d.ts +11 -8
- package/dist/web-components/QTIInteractionElement.d.ts.map +1 -1
- package/dist/web-components/index.d.ts +1 -1
- package/dist/web-components/index.d.ts.map +1 -1
- package/package.json +19 -9
- package/src/__tests__/catalog.test.ts +267 -0
- package/src/__tests__/fixtures/pci/echo-pci.js +49 -0
- package/src/__tests__/glossaryTriggers.test.ts +411 -0
- package/src/__tests__/pci.test.ts +353 -0
- package/src/__tests__/pnp.test.ts +250 -0
- package/src/__tests__/qti3-extraction.test.ts +5 -5
- package/src/catalog/applyGlossaryTriggers.ts +232 -0
- package/src/catalog/catalogExtractor.ts +130 -0
- package/src/catalog/catalogLookup.ts +53 -0
- package/src/catalog/glossaryAction.ts +28 -0
- package/src/catalog/types.ts +37 -0
- package/src/components/ItemBody.svelte +105 -135
- package/src/components/ItemPlayer.svelte +15 -7
- package/src/components/ModalFeedbackDisplay.svelte +15 -5
- package/src/components/index.ts +3 -0
- package/src/core/ComponentRegistry.ts +36 -7
- package/src/core/Player.ts +212 -157
- package/src/core/rolePolicy.ts +34 -0
- package/src/core/urlPolicy.ts +5 -2
- package/src/document/AssessmentItemDocument.ts +178 -0
- package/src/element.ts +128 -0
- package/src/extraction/ExtractionRegistry.ts +5 -1
- package/src/extraction/extractors/associateExtractor.ts +1 -129
- package/src/extraction/extractors/choiceExtractor.ts +1 -110
- package/src/extraction/extractors/conformance-qti3-advanced.test.ts +239 -0
- package/src/extraction/extractors/conformance-qti3-basic.test.ts +82 -0
- package/src/extraction/extractors/conformance.test.ts +208 -0
- package/src/extraction/extractors/customExtractor.ts +1 -72
- package/src/extraction/extractors/drawingExtractor.ts +1 -113
- package/src/extraction/extractors/endAttemptExtractor.ts +1 -74
- package/src/extraction/extractors/extendedTextExtractor.ts +1 -83
- package/src/extraction/extractors/gapMatchExtractor.ts +1 -178
- package/src/extraction/extractors/graphicAssociateExtractor.ts +1 -188
- package/src/extraction/extractors/graphicGapMatchExtractor.ts +1 -185
- package/src/extraction/extractors/graphicOrderExtractor.ts +1 -162
- package/src/extraction/extractors/hotspotExtractor.ts +1 -190
- package/src/extraction/extractors/hottextExtractor.ts +1 -153
- package/src/extraction/extractors/index.ts +5 -107
- package/src/extraction/extractors/inlineChoiceExtractor.ts +1 -88
- package/src/extraction/extractors/matchExtractor.ts +1 -160
- package/src/extraction/extractors/mediaExtractor.ts +1 -168
- package/src/extraction/extractors/orderExtractor.ts +1 -114
- package/src/extraction/extractors/portableCustomExtractor.ts +1 -0
- package/src/extraction/extractors/positionObjectExtractor.ts +1 -243
- package/src/extraction/extractors/selectPointExtractor.ts +1 -143
- package/src/extraction/extractors/sliderExtractor.ts +1 -102
- package/src/extraction/extractors/textEntryExtractor.ts +1 -72
- package/src/extraction/extractors/uploadExtractor.ts +1 -73
- package/src/extraction/index.ts +1 -2
- package/src/extraction/interactionExtractionPipeline.ts +70 -0
- package/src/extraction/interactionSecurity.ts +60 -0
- package/src/index.ts +19 -8
- package/src/interactions/associate/extractor.ts +133 -0
- package/src/interactions/associate/index.ts +2 -0
- package/src/interactions/associate/types.ts +1 -0
- package/src/interactions/choice/extractor.ts +121 -0
- package/src/interactions/choice/index.ts +2 -0
- package/src/interactions/choice/types.ts +1 -0
- package/src/interactions/custom/extractor.ts +72 -0
- package/src/interactions/custom/index.ts +2 -0
- package/src/interactions/custom/types.ts +1 -0
- package/src/interactions/drawing/extractor.ts +113 -0
- package/src/interactions/drawing/index.ts +2 -0
- package/src/interactions/drawing/types.ts +1 -0
- package/src/interactions/end-attempt/extractor.ts +74 -0
- package/src/interactions/end-attempt/index.ts +2 -0
- package/src/interactions/end-attempt/types.ts +1 -0
- package/src/interactions/extended-text/extractor.ts +89 -0
- package/src/interactions/extended-text/index.ts +2 -0
- package/src/interactions/extended-text/types.ts +1 -0
- package/src/interactions/gap-match/extractor.ts +193 -0
- package/src/interactions/gap-match/index.ts +2 -0
- package/src/interactions/gap-match/types.ts +1 -0
- package/src/interactions/graphic-associate/extractor.ts +192 -0
- package/src/interactions/graphic-associate/index.ts +2 -0
- package/src/interactions/graphic-associate/types.ts +1 -0
- package/src/interactions/graphic-gap-match/extractor.ts +257 -0
- package/src/interactions/graphic-gap-match/index.ts +2 -0
- package/src/interactions/graphic-gap-match/types.ts +1 -0
- package/src/interactions/graphic-order/extractor.ts +162 -0
- package/src/interactions/graphic-order/index.ts +2 -0
- package/src/interactions/graphic-order/types.ts +1 -0
- package/src/interactions/hotspot/extractor.ts +208 -0
- package/src/interactions/hotspot/index.ts +2 -0
- package/src/interactions/hotspot/types.ts +1 -0
- package/src/interactions/hottext/extractor.ts +163 -0
- package/src/interactions/hottext/index.ts +2 -0
- package/src/interactions/hottext/types.ts +1 -0
- package/src/interactions/index.ts +52 -0
- package/src/interactions/inline/index.ts +1 -0
- package/src/interactions/inline/render-plan.ts +105 -0
- package/src/interactions/inline-choice/InlineChoice.svelte +57 -0
- package/src/interactions/inline-choice/extractor.ts +105 -0
- package/src/interactions/inline-choice/index.ts +2 -0
- package/src/interactions/inline-choice/types.ts +1 -0
- package/src/interactions/match/extractor.ts +187 -0
- package/src/interactions/match/index.ts +2 -0
- package/src/interactions/match/types.ts +1 -0
- package/src/interactions/media/extractor.ts +168 -0
- package/src/interactions/media/index.ts +2 -0
- package/src/interactions/media/types.ts +1 -0
- package/src/interactions/modules.ts +111 -0
- package/src/interactions/order/extractor.ts +120 -0
- package/src/interactions/order/index.ts +2 -0
- package/src/interactions/order/types.ts +1 -0
- package/src/interactions/portable-custom/extractor.ts +122 -0
- package/src/interactions/portable-custom/index.ts +2 -0
- package/src/interactions/portable-custom/types.ts +1 -0
- package/src/interactions/position-object/extractor.ts +243 -0
- package/src/interactions/position-object/index.ts +2 -0
- package/src/interactions/position-object/types.ts +1 -0
- package/src/interactions/select-point/extractor.ts +143 -0
- package/src/interactions/select-point/index.ts +2 -0
- package/src/interactions/select-point/types.ts +1 -0
- package/src/interactions/shared/index.ts +1 -0
- package/src/interactions/shared/types.ts +429 -0
- package/src/interactions/slider/extractor.ts +102 -0
- package/src/interactions/slider/index.ts +2 -0
- package/src/interactions/slider/types.ts +1 -0
- package/src/interactions/text-entry/InlineTextEntry.svelte +75 -0
- package/src/interactions/text-entry/extractor.ts +79 -0
- package/src/interactions/text-entry/index.ts +2 -0
- package/src/interactions/text-entry/types.ts +1 -0
- package/src/interactions/upload/extractor.ts +81 -0
- package/src/interactions/upload/index.ts +2 -0
- package/src/interactions/upload/types.ts +1 -0
- package/src/pci/PciHost.ts +138 -0
- package/src/pci/types.ts +70 -0
- package/src/pnp/applyPnp.ts +23 -0
- package/src/pnp/parsePnpXml.ts +118 -0
- package/src/pnp/types.ts +33 -0
- package/src/types/index.ts +22 -8
- package/src/types/interactions.ts +4 -350
- package/src/web-components/QTIInteractionBase.ts +6 -5
- package/src/web-components/QTIInteractionElement.ts +15 -8
- package/src/web-components/index.ts +1 -0
- package/src/core/ItemRenderer.ts +0 -367
package/dist/core/Player.js
CHANGED
|
@@ -1,19 +1,24 @@
|
|
|
1
|
-
import { buildOutcomeProcessingAst, buildResponseProcessingAst, buildTemplateProcessingAst, childElements, coerceBaseValue, DeclarationContext, evalExpr, execProgram,
|
|
1
|
+
import { buildOutcomeProcessingAst, buildResponseProcessingAst, buildTemplateProcessingAst, childElements, coerceBaseValue, DeclarationContext, evalExpr, execProgram, findDescendants, findFirstDescendant, getAttr, OperatorRegistry, qtiNull, qtiValue, toBoolean, toNumber, toStringValue, } from '@pie-qti/qti-processing';
|
|
2
2
|
import { Qti2xElementNameMapper, Qti2xAttributeNameMapper, Qti3ElementNameMapper, Qti3AttributeNameMapper, detectQtiVersion, } from '@pie-qti/qti-common';
|
|
3
|
-
import {
|
|
3
|
+
import { parseAssessmentItemDocument } from '../document/AssessmentItemDocument.js';
|
|
4
4
|
import { createExtractionRegistry } from '../extraction/ExtractionRegistry.js';
|
|
5
|
-
import {
|
|
5
|
+
import { extractInteractionData } from '../extraction/interactionExtractionPipeline.js';
|
|
6
|
+
import { getStandardInteractionExtractors } from '../interactions/modules.js';
|
|
6
7
|
import { createComponentRegistry } from './ComponentRegistry.js';
|
|
7
|
-
import { enforceItemXmlLimits } from './parsingLimits.js';
|
|
8
8
|
import { createSeededRng } from './random.js';
|
|
9
9
|
import { sanitizeHtml } from './sanitizer.js';
|
|
10
10
|
import { toTrustedHtml } from './trustedTypes.js';
|
|
11
|
-
import {
|
|
11
|
+
import { applyPnpToRoot } from '../pnp/applyPnp.js';
|
|
12
|
+
import { extractCatalogFromItemXml, mergeCatalogs } from '../catalog/catalogExtractor.js';
|
|
13
|
+
import { getCatalogEntry } from '../catalog/catalogLookup.js';
|
|
14
|
+
import { PciHost } from '../pci/PciHost.js';
|
|
12
15
|
export class Player {
|
|
13
16
|
constructor(config) {
|
|
14
17
|
this.responseProcessingProgram = null;
|
|
15
18
|
this.templateProcessingProgram = null;
|
|
16
19
|
this.outcomeProcessingProgram = null;
|
|
20
|
+
this._catalogIndex = new Map();
|
|
21
|
+
this._pciHosts = new Map();
|
|
17
22
|
this.config = config;
|
|
18
23
|
this.itemXml = config.itemXml ?? '';
|
|
19
24
|
this.role = config.role ?? 'candidate';
|
|
@@ -40,12 +45,21 @@ export class Player {
|
|
|
40
45
|
}
|
|
41
46
|
else {
|
|
42
47
|
this.mapper = config.elementNameMapper;
|
|
48
|
+
if (!config.attributeNameMapper) {
|
|
49
|
+
config.attributeNameMapper =
|
|
50
|
+
this.mapper.version === '3.0'
|
|
51
|
+
? new Qti3AttributeNameMapper()
|
|
52
|
+
: new Qti2xAttributeNameMapper();
|
|
53
|
+
}
|
|
43
54
|
}
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
55
|
+
this.itemDocument = parseAssessmentItemDocument({
|
|
56
|
+
itemXml: this.itemXml,
|
|
57
|
+
elementNameMapper: this.mapper,
|
|
58
|
+
attributeNameMapper: config.attributeNameMapper,
|
|
59
|
+
security: this.config.security,
|
|
60
|
+
});
|
|
61
|
+
this.assessmentItem = this.itemDocument.getAssessmentItem();
|
|
62
|
+
this.decls = this.buildDeclarations();
|
|
49
63
|
this.ensureBuiltinDeclarations(this.decls);
|
|
50
64
|
this.ctx = new DeclarationContext(this.decls);
|
|
51
65
|
this.ops = new OperatorRegistry();
|
|
@@ -59,8 +73,8 @@ export class Player {
|
|
|
59
73
|
this.componentRegistry = config.componentRegistry ?? createComponentRegistry();
|
|
60
74
|
// I18n provider (defaults to a simple fallback if not provided)
|
|
61
75
|
this.i18nProvider = config.i18nProvider ?? this.createDefaultI18nProvider();
|
|
62
|
-
// Register standard extractors (idempotent per-registry instance)
|
|
63
|
-
for (const ex of
|
|
76
|
+
// Register standard interaction extractors (idempotent per-registry instance)
|
|
77
|
+
for (const ex of getStandardInteractionExtractors()) {
|
|
64
78
|
try {
|
|
65
79
|
this.extractionRegistry.register(ex);
|
|
66
80
|
}
|
|
@@ -79,20 +93,20 @@ export class Player {
|
|
|
79
93
|
}
|
|
80
94
|
}
|
|
81
95
|
// Build ASTs once.
|
|
82
|
-
const templateProcessing =
|
|
96
|
+
const templateProcessing = this.itemDocument.getProcessingElement('template');
|
|
83
97
|
if (templateProcessing) {
|
|
84
98
|
this.templateProcessingProgram = buildTemplateProcessingAst(templateProcessing, {
|
|
85
99
|
elementNameMapper: this.mapper,
|
|
86
100
|
});
|
|
87
101
|
this.execTemplateProcessing();
|
|
88
102
|
}
|
|
89
|
-
const responseProcessing =
|
|
103
|
+
const responseProcessing = this.itemDocument.getProcessingElement('response');
|
|
90
104
|
if (responseProcessing) {
|
|
91
105
|
this.responseProcessingProgram = buildResponseProcessingAst(responseProcessing, {
|
|
92
106
|
elementNameMapper: this.mapper,
|
|
93
107
|
});
|
|
94
108
|
}
|
|
95
|
-
const outcomeProcessing =
|
|
109
|
+
const outcomeProcessing = this.itemDocument.getProcessingElement('outcome');
|
|
96
110
|
if (outcomeProcessing) {
|
|
97
111
|
this.outcomeProcessingProgram = buildOutcomeProcessingAst(outcomeProcessing, {
|
|
98
112
|
elementNameMapper: this.mapper,
|
|
@@ -113,11 +127,102 @@ export class Player {
|
|
|
113
127
|
else if (detectedVersion === '2.1') {
|
|
114
128
|
console.info('[QTI Player] QTI 2.1 detected. Using QTI 2.2 compatibility mode with CC2 template support.');
|
|
115
129
|
}
|
|
130
|
+
// Store PNP profile for later use (applyPnpToRoot is called once a root element is available).
|
|
131
|
+
this._pnp = config.pnp;
|
|
132
|
+
// Build catalog index from item XML and optional shared catalog.
|
|
133
|
+
const itemCatalog = extractCatalogFromItemXml(this.itemXml);
|
|
134
|
+
if (config.catalogXml) {
|
|
135
|
+
const sharedCatalog = extractCatalogFromItemXml(config.catalogXml);
|
|
136
|
+
// Item-level wins on collision: merge shared first, then override with item entries.
|
|
137
|
+
this._catalogIndex = mergeCatalogs(sharedCatalog, itemCatalog);
|
|
138
|
+
}
|
|
139
|
+
else {
|
|
140
|
+
this._catalogIndex = itemCatalog;
|
|
141
|
+
}
|
|
116
142
|
// Check strict compliance if enabled
|
|
117
143
|
if (this.config.strictQtiCompliance?.enabled) {
|
|
118
144
|
this.validateStrictCompliance();
|
|
119
145
|
}
|
|
120
146
|
}
|
|
147
|
+
/**
|
|
148
|
+
* Apply the PNP profile to a player root element.
|
|
149
|
+
* Call this once the root DOM element is available (e.g. after mounting).
|
|
150
|
+
* The player stores the element reference so updatePnp() can re-apply without re-parsing the item.
|
|
151
|
+
*/
|
|
152
|
+
applyPnp(rootEl) {
|
|
153
|
+
this._rootEl = rootEl;
|
|
154
|
+
applyPnpToRoot(rootEl, this._pnp);
|
|
155
|
+
}
|
|
156
|
+
/**
|
|
157
|
+
* Update the PNP profile mid-session without re-parsing the item XML.
|
|
158
|
+
* Deep-merges the partial profile into the current profile and re-applies.
|
|
159
|
+
*/
|
|
160
|
+
updatePnp(partial) {
|
|
161
|
+
this._pnp = mergePnp(this._pnp, partial);
|
|
162
|
+
if (this._rootEl) {
|
|
163
|
+
applyPnpToRoot(this._rootEl, this._pnp);
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
/** Return the current resolved PNP profile. */
|
|
167
|
+
getPnp() {
|
|
168
|
+
return this._pnp;
|
|
169
|
+
}
|
|
170
|
+
/**
|
|
171
|
+
* Look up a catalog entry by card identifier, usage type, and optional language.
|
|
172
|
+
* Returns the HTML string for the matched entry, or null if not found.
|
|
173
|
+
*
|
|
174
|
+
* Language fallback: exact match → prefix match → no-lang entry → null.
|
|
175
|
+
*/
|
|
176
|
+
getCatalogEntry(idref, usage, lang) {
|
|
177
|
+
return getCatalogEntry(this._catalogIndex, idref, usage, lang);
|
|
178
|
+
}
|
|
179
|
+
/**
|
|
180
|
+
* Create a PciHost for an extracted PCI and register it for response tracking.
|
|
181
|
+
* The caller is responsible for calling host.load() and
|
|
182
|
+
* host.initialize(domNode) once the DOM element is available.
|
|
183
|
+
*/
|
|
184
|
+
createPciHost(data) {
|
|
185
|
+
const baseUrl = this.config.pciBaseUrl ?? (typeof document !== 'undefined' ? document.baseURI : '');
|
|
186
|
+
const host = new PciHost(data, baseUrl);
|
|
187
|
+
// Wire response changes back into the player's declaration context
|
|
188
|
+
host.onResponseChange((responseId, value) => {
|
|
189
|
+
const d = this.decls[responseId];
|
|
190
|
+
if (d) {
|
|
191
|
+
d.value = this.coerceToDeclarationValue(d.baseType, d.cardinality, value);
|
|
192
|
+
}
|
|
193
|
+
});
|
|
194
|
+
this._pciHosts.set(data.responseIdentifier, host);
|
|
195
|
+
return host;
|
|
196
|
+
}
|
|
197
|
+
/**
|
|
198
|
+
* Push a response value into the PCI identified by responseIdentifier.
|
|
199
|
+
* Called from setResponses() so session restore reaches PCI modules.
|
|
200
|
+
*/
|
|
201
|
+
setPciResponse(responseIdentifier, value) {
|
|
202
|
+
this._pciHosts.get(responseIdentifier)?.setResponse(value);
|
|
203
|
+
}
|
|
204
|
+
/**
|
|
205
|
+
* Disable/enable all PCI hosts based on role.
|
|
206
|
+
* 'candidate' = enabled; any other role = disabled.
|
|
207
|
+
*/
|
|
208
|
+
syncPciDisabledState() {
|
|
209
|
+
const disabled = this.role !== 'candidate';
|
|
210
|
+
for (const host of this._pciHosts.values()) {
|
|
211
|
+
if (disabled)
|
|
212
|
+
host.disable();
|
|
213
|
+
else
|
|
214
|
+
host.enable();
|
|
215
|
+
}
|
|
216
|
+
}
|
|
217
|
+
/**
|
|
218
|
+
* Destroy all PCI hosts. Call on player teardown.
|
|
219
|
+
*/
|
|
220
|
+
destroyPciHosts() {
|
|
221
|
+
for (const host of this._pciHosts.values()) {
|
|
222
|
+
host.destroy();
|
|
223
|
+
}
|
|
224
|
+
this._pciHosts.clear();
|
|
225
|
+
}
|
|
121
226
|
/** Breaking-change API: returns the typed declaration map */
|
|
122
227
|
getDeclarations() {
|
|
123
228
|
return this.decls;
|
|
@@ -128,14 +233,23 @@ export class Player {
|
|
|
128
233
|
if (!d)
|
|
129
234
|
continue;
|
|
130
235
|
d.value = this.coerceToDeclarationValue(d.baseType, d.cardinality, raw);
|
|
236
|
+
// Push restored responses into any mounted PCI modules
|
|
237
|
+
this.setPciResponse(id, raw);
|
|
131
238
|
}
|
|
132
239
|
}
|
|
240
|
+
/**
|
|
241
|
+
* Destroy all resources owned by this player instance (PCI modules, etc.).
|
|
242
|
+
* Call when unmounting to prevent memory leaks.
|
|
243
|
+
*/
|
|
244
|
+
destroy() {
|
|
245
|
+
this.destroyPciHosts();
|
|
246
|
+
}
|
|
133
247
|
processResponses() {
|
|
134
248
|
// Spec-aligned behavior: each processing run starts from outcome defaults.
|
|
135
249
|
// This prevents stale outcomes when response/outcome processing doesn't set every variable.
|
|
136
250
|
this.resetOutcomesToDefault();
|
|
137
251
|
// Execute response processing if present
|
|
138
|
-
const rpEl =
|
|
252
|
+
const rpEl = this.itemDocument.getProcessingElement('response');
|
|
139
253
|
if (rpEl) {
|
|
140
254
|
// If responseProcessing has explicit statements, run the compiled program.
|
|
141
255
|
// Otherwise, fall back to template-based processing (responseProcessing@template).
|
|
@@ -281,11 +395,9 @@ export class Player {
|
|
|
281
395
|
}
|
|
282
396
|
}
|
|
283
397
|
getItemBodyHtml() {
|
|
284
|
-
const
|
|
285
|
-
if (!
|
|
398
|
+
const inner = this.itemDocument.serializeItemBodyChildren();
|
|
399
|
+
if (!inner)
|
|
286
400
|
return '';
|
|
287
|
-
// Serialize children rather than the container tag itself.
|
|
288
|
-
const inner = childElements(itemBody).map((c) => serializeXml(c)).join('');
|
|
289
401
|
const printed = this.renderPrintedVariables(inner);
|
|
290
402
|
const sanitized = sanitizeHtml(printed, { security: this.config.security });
|
|
291
403
|
return toTrustedHtml(sanitized, this.config.security?.trustedTypesPolicyName);
|
|
@@ -298,7 +410,7 @@ export class Player {
|
|
|
298
410
|
*/
|
|
299
411
|
getRubrics() {
|
|
300
412
|
const role = this.role;
|
|
301
|
-
const rubricEls =
|
|
413
|
+
const rubricEls = this.itemDocument.findRubricElements();
|
|
302
414
|
if (rubricEls.length === 0)
|
|
303
415
|
return [];
|
|
304
416
|
const blocks = [];
|
|
@@ -308,8 +420,7 @@ export class Player {
|
|
|
308
420
|
// If view is specified, show only when it includes the current role.
|
|
309
421
|
if (view.length > 0 && role && !view.includes(role))
|
|
310
422
|
continue;
|
|
311
|
-
|
|
312
|
-
const contentRaw = childElements(el).map((c) => serializeXml(c)).join('') || (el.textContent || '');
|
|
423
|
+
const contentRaw = this.itemDocument.serializeChildren(el) || (el.textContent || '');
|
|
313
424
|
const printed = this.renderPrintedVariables(contentRaw);
|
|
314
425
|
const sanitized = sanitizeHtml(printed, { security: this.config.security });
|
|
315
426
|
const html = toTrustedHtml(sanitized, this.config.security?.trustedTypesPolicyName);
|
|
@@ -327,111 +438,12 @@ export class Player {
|
|
|
327
438
|
* Canonical interaction API (new): extracted, typed interaction data.
|
|
328
439
|
*/
|
|
329
440
|
getInteractionData() {
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
const docRoot = parse(this.itemXml, { lowerCaseTagName: false, comment: false });
|
|
337
|
-
// node-html-parser's CSS selectors match lowercase tag names.
|
|
338
|
-
// Search for itemBody in the native form for this QTI version (itembody for 2.x, qti-item-body for 3.0)
|
|
339
|
-
const itemBodyTag = this.mapper.toNative('itembody').toLowerCase();
|
|
340
|
-
const parsedItemBody = docRoot.querySelector?.(itemBodyTag) ?? null;
|
|
341
|
-
const root = parsedItemBody ?? docRoot;
|
|
342
|
-
const declMap = new Map();
|
|
343
|
-
for (const d of Object.values(this.decls)) {
|
|
344
|
-
declMap.set(d.identifier, {
|
|
345
|
-
identifier: d.identifier,
|
|
346
|
-
cardinality: d.cardinality,
|
|
347
|
-
baseType: d.baseType,
|
|
348
|
-
});
|
|
349
|
-
}
|
|
350
|
-
// Discover all elements that match any standard extractor elementType.
|
|
351
|
-
// Extractors specify element types in QTI 2.x form (e.g., 'choiceInteraction').
|
|
352
|
-
// We use the mapper to convert to the appropriate form for this QTI version
|
|
353
|
-
// (e.g., 'choiceInteraction' for QTI 2.x, 'qti-choice-interaction' for QTI 3.0).
|
|
354
|
-
const tagSet = new Set();
|
|
355
|
-
for (const ex of ALL_STANDARD_EXTRACTORS) {
|
|
356
|
-
for (const t of ex.elementTypes ?? []) {
|
|
357
|
-
// Convert to canonical form (lowercase), then to native form using mapper
|
|
358
|
-
const canonical = t.toLowerCase();
|
|
359
|
-
const native = this.mapper.toNative(canonical);
|
|
360
|
-
tagSet.add(native.toLowerCase());
|
|
361
|
-
}
|
|
362
|
-
}
|
|
363
|
-
const elements = [];
|
|
364
|
-
for (const tag of tagSet) {
|
|
365
|
-
try {
|
|
366
|
-
elements.push(...root.querySelectorAll(tag));
|
|
367
|
-
}
|
|
368
|
-
catch {
|
|
369
|
-
// ignore selector errors
|
|
370
|
-
}
|
|
371
|
-
}
|
|
372
|
-
const interactions = [];
|
|
373
|
-
for (const el of elements) {
|
|
374
|
-
// Try both QTI 2.x (responseIdentifier) and QTI 3.0 (response-identifier) attribute names
|
|
375
|
-
const responseId = el.getAttribute?.('responseIdentifier') ||
|
|
376
|
-
el.getAttribute?.('response-identifier') ||
|
|
377
|
-
el.getAttribute?.('responseidentifier') ||
|
|
378
|
-
'';
|
|
379
|
-
if (!responseId)
|
|
380
|
-
continue;
|
|
381
|
-
const ctx = createExtractionContext(el, responseId, root, declMap, this.config);
|
|
382
|
-
const res = this.extractionRegistry.extract(el, ctx);
|
|
383
|
-
if (!res.success)
|
|
384
|
-
continue;
|
|
385
|
-
interactions.push({
|
|
386
|
-
type: el.rawTagName,
|
|
387
|
-
responseId,
|
|
388
|
-
...res.data,
|
|
389
|
-
});
|
|
390
|
-
}
|
|
391
|
-
// Apply URL policy + embed allowances to standard extracted URL fields.
|
|
392
|
-
const policy = this.config.security?.urlPolicy;
|
|
393
|
-
const allowObjectEmbeds = this.config.security?.allowObjectEmbeds === true;
|
|
394
|
-
const ttPolicyName = this.config.security?.trustedTypesPolicyName;
|
|
395
|
-
for (const i of interactions) {
|
|
396
|
-
// Wrap known HTML injection fields in TrustedHTML (when enabled).
|
|
397
|
-
// Important: do NOT wrap fields that are rendered as plain text in our Svelte components
|
|
398
|
-
// (e.g. prompt) to avoid "[object Object]" rendering.
|
|
399
|
-
if (i.type === 'choiceInteraction' && Array.isArray(i.choices)) {
|
|
400
|
-
for (const c of i.choices) {
|
|
401
|
-
if (typeof c?.text === 'string')
|
|
402
|
-
c.text = toTrustedHtml(c.text, ttPolicyName);
|
|
403
|
-
}
|
|
404
|
-
}
|
|
405
|
-
// Shared ImageData shape
|
|
406
|
-
if (i.imageData?.src) {
|
|
407
|
-
i.imageData.src = sanitizeResourceUrl(i.imageData.src, policy, 'img') ?? '';
|
|
408
|
-
}
|
|
409
|
-
if (i.imageData?.content && typeof i.imageData.content === 'string') {
|
|
410
|
-
i.imageData.content = toTrustedHtml(i.imageData.content, ttPolicyName);
|
|
411
|
-
}
|
|
412
|
-
// positionObject stages
|
|
413
|
-
if (Array.isArray(i.positionObjectStages)) {
|
|
414
|
-
for (const st of i.positionObjectStages) {
|
|
415
|
-
if (st?.objectData?.src) {
|
|
416
|
-
st.objectData.src = sanitizeResourceUrl(st.objectData.src, policy, 'img') ?? '';
|
|
417
|
-
}
|
|
418
|
-
if (st?.objectData?.content && typeof st.objectData.content === 'string') {
|
|
419
|
-
st.objectData.content = toTrustedHtml(st.objectData.content, ttPolicyName);
|
|
420
|
-
}
|
|
421
|
-
}
|
|
422
|
-
}
|
|
423
|
-
// mediaInteraction
|
|
424
|
-
if (i.type === 'mediaInteraction' && i.mediaElement?.src) {
|
|
425
|
-
const kind = i.mediaElement.type === 'object' ? 'object' : 'media';
|
|
426
|
-
i.mediaElement.src = sanitizeResourceUrl(i.mediaElement.src, policy, kind) ?? '';
|
|
427
|
-
i.allowObjectEmbeds = allowObjectEmbeds;
|
|
428
|
-
}
|
|
429
|
-
// hottextInteraction content is injected via {@html}
|
|
430
|
-
if (i.type === 'hottextInteraction' && typeof i.contentHtml === 'string') {
|
|
431
|
-
i.contentHtml = toTrustedHtml(i.contentHtml, ttPolicyName);
|
|
432
|
-
}
|
|
433
|
-
}
|
|
434
|
-
return interactions;
|
|
441
|
+
return extractInteractionData({
|
|
442
|
+
document: this.itemDocument,
|
|
443
|
+
extractionRegistry: this.extractionRegistry,
|
|
444
|
+
declarations: this.decls,
|
|
445
|
+
config: this.config,
|
|
446
|
+
});
|
|
435
447
|
}
|
|
436
448
|
/**
|
|
437
449
|
* Convenience API (used by tests/bench): returns a minimal interaction list with QTI-ish field names.
|
|
@@ -458,7 +470,7 @@ export class Player {
|
|
|
458
470
|
return this.getResponseInteractions().map((i) => i.responseIdentifier);
|
|
459
471
|
}
|
|
460
472
|
isAdaptive() {
|
|
461
|
-
return (
|
|
473
|
+
return (this.itemDocument.getAssessmentItemAttribute('adaptive') || '').toLowerCase() === 'true';
|
|
462
474
|
}
|
|
463
475
|
getNumAttempts() {
|
|
464
476
|
return Math.max(0, Math.floor(toNumber(this.ctx.getValue('numAttempts')) || 0));
|
|
@@ -576,10 +588,41 @@ export class Player {
|
|
|
576
588
|
complete = Number(value || 0) >= minPlays;
|
|
577
589
|
}
|
|
578
590
|
else if (required) {
|
|
579
|
-
if (Array.isArray(value))
|
|
591
|
+
if (Array.isArray(value)) {
|
|
580
592
|
complete = value.length > 0;
|
|
581
|
-
|
|
593
|
+
// Enforce minChoices / minAssociations where applicable
|
|
594
|
+
const minChoices = Number(i.minChoices || i.minAssociations || 0);
|
|
595
|
+
if (complete && minChoices > 0) {
|
|
596
|
+
complete = value.length >= minChoices;
|
|
597
|
+
}
|
|
598
|
+
// Enforce matchMin per-choice: each pairing entry "id1 id2" in value must
|
|
599
|
+
// appear at least matchMin times for the relevant choice.
|
|
600
|
+
// Collect all choice arrays that can carry matchMin across all pairing interaction types.
|
|
601
|
+
const choices = [
|
|
602
|
+
...(i.choices ?? []),
|
|
603
|
+
...(i.gapTexts ?? []),
|
|
604
|
+
...(i.gapImages ?? []),
|
|
605
|
+
...(i.sourceSet ?? []),
|
|
606
|
+
...(i.targetSet ?? []),
|
|
607
|
+
...(i.associableHotspots ?? []),
|
|
608
|
+
];
|
|
609
|
+
for (const choice of choices) {
|
|
610
|
+
const min = Number(choice.matchMin || 0);
|
|
611
|
+
if (min > 0) {
|
|
612
|
+
const count = value.filter((p) => {
|
|
613
|
+
const parts = p.split(' ');
|
|
614
|
+
return parts[0] === choice.identifier || parts[1] === choice.identifier;
|
|
615
|
+
}).length;
|
|
616
|
+
if (count < min) {
|
|
617
|
+
complete = false;
|
|
618
|
+
break;
|
|
619
|
+
}
|
|
620
|
+
}
|
|
621
|
+
}
|
|
622
|
+
}
|
|
623
|
+
else {
|
|
582
624
|
complete = value !== null && value !== undefined && value !== '';
|
|
625
|
+
}
|
|
583
626
|
}
|
|
584
627
|
const errors = [];
|
|
585
628
|
const warnings = [];
|
|
@@ -686,7 +729,7 @@ export class Player {
|
|
|
686
729
|
}, this.outcomeProcessingProgram);
|
|
687
730
|
}
|
|
688
731
|
execResponseProcessingTemplate(templateUrl) {
|
|
689
|
-
const name = templateUrl.split('/').pop()?.toLowerCase();
|
|
732
|
+
const name = templateUrl.split('/').pop()?.toLowerCase().replace(/\.xml$/, '');
|
|
690
733
|
if (!name) {
|
|
691
734
|
console.warn(`[QTI Player] Could not extract template name from URL: ${templateUrl}`);
|
|
692
735
|
return;
|
|
@@ -762,7 +805,7 @@ export class Player {
|
|
|
762
805
|
// ----------------------------------------------------------------------------
|
|
763
806
|
// Declarations
|
|
764
807
|
// ----------------------------------------------------------------------------
|
|
765
|
-
buildDeclarations(
|
|
808
|
+
buildDeclarations() {
|
|
766
809
|
const decls = {};
|
|
767
810
|
const addDecl = (kind, el) => {
|
|
768
811
|
const identifier = this.getAttrMapped(el, 'identifier');
|
|
@@ -812,11 +855,11 @@ export class Player {
|
|
|
812
855
|
}
|
|
813
856
|
}
|
|
814
857
|
};
|
|
815
|
-
for (const el of
|
|
858
|
+
for (const el of this.itemDocument.findDeclarationElements('response'))
|
|
816
859
|
addDecl('response', el);
|
|
817
|
-
for (const el of
|
|
860
|
+
for (const el of this.itemDocument.findDeclarationElements('outcome'))
|
|
818
861
|
addDecl('outcome', el);
|
|
819
|
-
for (const el of
|
|
862
|
+
for (const el of this.itemDocument.findDeclarationElements('template'))
|
|
820
863
|
addDecl('template', el);
|
|
821
864
|
return decls;
|
|
822
865
|
}
|
|
@@ -1060,14 +1103,14 @@ export class Player {
|
|
|
1060
1103
|
return out;
|
|
1061
1104
|
}
|
|
1062
1105
|
getModalFeedback(outcomes) {
|
|
1063
|
-
const feedbackEls =
|
|
1106
|
+
const feedbackEls = this.itemDocument.findModalFeedbackElements();
|
|
1064
1107
|
const active = [];
|
|
1065
1108
|
for (const el of feedbackEls) {
|
|
1066
|
-
const identifier =
|
|
1067
|
-
const outcomeIdentifier =
|
|
1068
|
-
const showHide = (
|
|
1069
|
-
const title =
|
|
1070
|
-
const contentRaw =
|
|
1109
|
+
const identifier = this.getAttrMapped(el, 'identifier') || '';
|
|
1110
|
+
const outcomeIdentifier = this.getAttrMapped(el, 'outcomeIdentifier') || '';
|
|
1111
|
+
const showHide = (this.getAttrMapped(el, 'showHide') || 'show');
|
|
1112
|
+
const title = this.getAttrMapped(el, 'title') || undefined;
|
|
1113
|
+
const contentRaw = this.itemDocument.serializeChildren(el) || (el.textContent || '');
|
|
1071
1114
|
const sanitized = sanitizeHtml(contentRaw, { security: this.config.security });
|
|
1072
1115
|
const content = toTrustedHtml(sanitized, this.config.security?.trustedTypesPolicyName);
|
|
1073
1116
|
const outcomeValue = outcomes[outcomeIdentifier];
|
|
@@ -1079,3 +1122,13 @@ export class Player {
|
|
|
1079
1122
|
return active;
|
|
1080
1123
|
}
|
|
1081
1124
|
}
|
|
1125
|
+
// ---------------------------------------------------------------------------
|
|
1126
|
+
// Module-level helpers
|
|
1127
|
+
// ---------------------------------------------------------------------------
|
|
1128
|
+
function mergePnp(base, partial) {
|
|
1129
|
+
return {
|
|
1130
|
+
display: { ...(base?.display ?? {}), ...(partial.display ?? {}) },
|
|
1131
|
+
content: { ...(base?.content ?? {}), ...(partial.content ?? {}) },
|
|
1132
|
+
cognitive: { ...(base?.cognitive ?? {}), ...(partial.cognitive ?? {}) },
|
|
1133
|
+
};
|
|
1134
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { QTIRole } from '../types/index.js';
|
|
2
|
+
/**
|
|
3
|
+
* Product policy layered on top of QTI role/view semantics.
|
|
4
|
+
*
|
|
5
|
+
* QTI defines these roles as audience markers for view-controlled content
|
|
6
|
+
* (for example rubric/outcome visibility). It does not define a universal
|
|
7
|
+
* interaction UI behavior matrix. The player policy below keeps runtime
|
|
8
|
+
* behavior explicit and consistent across integrations.
|
|
9
|
+
*/
|
|
10
|
+
export interface RoleCapabilities {
|
|
11
|
+
isCandidate: boolean;
|
|
12
|
+
isReadOnly: boolean;
|
|
13
|
+
canViewCorrectResponses: boolean;
|
|
14
|
+
}
|
|
15
|
+
export declare function getRoleCapabilities(role: QTIRole): RoleCapabilities;
|
|
16
|
+
//# sourceMappingURL=rolePolicy.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"rolePolicy.d.ts","sourceRoot":"","sources":["../../src/core/rolePolicy.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAEjD;;;;;;;GAOG;AACH,MAAM,WAAW,gBAAgB;IAChC,WAAW,EAAE,OAAO,CAAC;IACrB,UAAU,EAAE,OAAO,CAAC;IACpB,uBAAuB,EAAE,OAAO,CAAC;CACjC;AASD,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,OAAO,GAAG,gBAAgB,CASnE"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
const ROLES_WITH_CORRECT_RESPONSE_ACCESS = new Set([
|
|
2
|
+
'scorer',
|
|
3
|
+
'author',
|
|
4
|
+
'tutor',
|
|
5
|
+
'testConstructor',
|
|
6
|
+
]);
|
|
7
|
+
export function getRoleCapabilities(role) {
|
|
8
|
+
const isCandidate = role === 'candidate';
|
|
9
|
+
const canViewCorrectResponses = ROLES_WITH_CORRECT_RESPONSE_ACCESS.has(role);
|
|
10
|
+
return {
|
|
11
|
+
isCandidate,
|
|
12
|
+
isReadOnly: !isCandidate,
|
|
13
|
+
canViewCorrectResponses,
|
|
14
|
+
};
|
|
15
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"urlPolicy.d.ts","sourceRoot":"","sources":["../../src/core/urlPolicy.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAEzD,MAAM,MAAM,OAAO,GAAG,KAAK,GAAG,OAAO,GAAG,QAAQ,GAAG,MAAM,GAAG,KAAK,CAAC;AA0ClE;;;GAGG;AACH,wBAAgB,mBAAmB,CAAC,GAAG,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,eAAe,EAAE,IAAI,GAAE,OAAe,GAAG,MAAM,GAAG,IAAI,
|
|
1
|
+
{"version":3,"file":"urlPolicy.d.ts","sourceRoot":"","sources":["../../src/core/urlPolicy.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAEzD,MAAM,MAAM,OAAO,GAAG,KAAK,GAAG,OAAO,GAAG,QAAQ,GAAG,MAAM,GAAG,KAAK,CAAC;AA0ClE;;;GAGG;AACH,wBAAgB,mBAAmB,CAAC,GAAG,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,eAAe,EAAE,IAAI,GAAE,OAAe,GAAG,MAAM,GAAG,IAAI,CA+C/G"}
|
package/dist/core/urlPolicy.js
CHANGED
|
@@ -53,7 +53,9 @@ export function sanitizeResourceUrl(raw, policy, kind = 'any') {
|
|
|
53
53
|
if (s.startsWith('//'))
|
|
54
54
|
return p.allowProtocolRelative ? `https:${s}` : null;
|
|
55
55
|
// Relative/absolute-path URLs: allow and optionally resolve.
|
|
56
|
-
|
|
56
|
+
// Bare relative paths (e.g. "images/foo.png" from IMS CP manifests) are treated
|
|
57
|
+
// the same as "./" paths — they have no scheme and are safe to pass through.
|
|
58
|
+
if (s.startsWith('/') || s.startsWith('./') || s.startsWith('../') || !/^[a-zA-Z][a-zA-Z\d+\-.]*:/.test(s)) {
|
|
57
59
|
if (p.assetBaseUrl) {
|
|
58
60
|
try {
|
|
59
61
|
// Strip leading '/' to make URL constructor resolve relative to base path, not origin
|
|
@@ -61,7 +63,8 @@ export function sanitizeResourceUrl(raw, policy, kind = 'any') {
|
|
|
61
63
|
return new URL(relativePath, p.assetBaseUrl).toString();
|
|
62
64
|
}
|
|
63
65
|
catch {
|
|
64
|
-
return
|
|
66
|
+
// assetBaseUrl resolution failed; return the raw relative path as-is
|
|
67
|
+
return s;
|
|
65
68
|
}
|
|
66
69
|
}
|
|
67
70
|
return s;
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import type { AttributeNameMapper, ElementNameMapper } from '@pie-qti/qti-common';
|
|
2
|
+
import type { PlayerSecurityConfig } from '../types/index.js';
|
|
3
|
+
import type { QTIElement } from '../types/interactions.js';
|
|
4
|
+
export type ProcessingKind = 'template' | 'response' | 'outcome';
|
|
5
|
+
export interface DiscoveredInteractionElement {
|
|
6
|
+
element: QTIElement;
|
|
7
|
+
contextRoot: QTIElement;
|
|
8
|
+
responseIdentifier: string;
|
|
9
|
+
normalizedType: string;
|
|
10
|
+
}
|
|
11
|
+
export interface AssessmentItemDocumentInput {
|
|
12
|
+
itemXml: string;
|
|
13
|
+
elementNameMapper: ElementNameMapper;
|
|
14
|
+
attributeNameMapper: AttributeNameMapper;
|
|
15
|
+
security?: PlayerSecurityConfig;
|
|
16
|
+
}
|
|
17
|
+
export declare class AssessmentItemDocument {
|
|
18
|
+
private readonly itemXml;
|
|
19
|
+
private readonly security?;
|
|
20
|
+
readonly elementNameMapper: ElementNameMapper;
|
|
21
|
+
readonly attributeNameMapper: AttributeNameMapper;
|
|
22
|
+
private readonly xmlDocument;
|
|
23
|
+
private readonly assessmentItem;
|
|
24
|
+
private extractionDocument;
|
|
25
|
+
private extractionRoot;
|
|
26
|
+
constructor({ itemXml, elementNameMapper, attributeNameMapper, security, }: AssessmentItemDocumentInput);
|
|
27
|
+
getAssessmentItem(): Element;
|
|
28
|
+
getProcessingElement(kind: ProcessingKind): Element | null;
|
|
29
|
+
serializeItemBodyChildren(): string;
|
|
30
|
+
findRubricElements(): Element[];
|
|
31
|
+
findModalFeedbackElements(): Element[];
|
|
32
|
+
findDeclarationElements(kind: 'response' | 'outcome' | 'template'): Element[];
|
|
33
|
+
getAssessmentItemAttribute(name: string): string | null;
|
|
34
|
+
serializeChildren(element: Element): string;
|
|
35
|
+
findExtractionElements(elementTypes: Iterable<string>): DiscoveredInteractionElement[];
|
|
36
|
+
private getExtractionRoot;
|
|
37
|
+
private getExtractionDocument;
|
|
38
|
+
private walkExtractionChildren;
|
|
39
|
+
private getExtractionResponseIdentifier;
|
|
40
|
+
}
|
|
41
|
+
export declare function parseAssessmentItemDocument(input: AssessmentItemDocumentInput): AssessmentItemDocument;
|
|
42
|
+
//# sourceMappingURL=AssessmentItemDocument.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AssessmentItemDocument.d.ts","sourceRoot":"","sources":["../../src/document/AssessmentItemDocument.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAYlF,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AAE3D,MAAM,MAAM,cAAc,GAAG,UAAU,GAAG,UAAU,GAAG,SAAS,CAAC;AAEjE,MAAM,WAAW,4BAA4B;IAC5C,OAAO,EAAE,UAAU,CAAC;IACpB,WAAW,EAAE,UAAU,CAAC;IACxB,kBAAkB,EAAE,MAAM,CAAC;IAC3B,cAAc,EAAE,MAAM,CAAC;CACvB;AAED,MAAM,WAAW,2BAA2B;IAC3C,OAAO,EAAE,MAAM,CAAC;IAChB,iBAAiB,EAAE,iBAAiB,CAAC;IACrC,mBAAmB,EAAE,mBAAmB,CAAC;IACzC,QAAQ,CAAC,EAAE,oBAAoB,CAAC;CAChC;AAED,qBAAa,sBAAsB;IAClC,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAS;IACjC,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAuB;IACjD,QAAQ,CAAC,iBAAiB,EAAE,iBAAiB,CAAC;IAC9C,QAAQ,CAAC,mBAAmB,EAAE,mBAAmB,CAAC;IAClD,OAAO,CAAC,QAAQ,CAAC,WAAW,CAAW;IACvC,OAAO,CAAC,QAAQ,CAAC,cAAc,CAAU;IACzC,OAAO,CAAC,kBAAkB,CAA2B;IACrD,OAAO,CAAC,cAAc,CAA2B;gBAErC,EACX,OAAO,EACP,iBAAiB,EACjB,mBAAmB,EACnB,QAAQ,GACR,EAAE,2BAA2B;IAW9B,iBAAiB,IAAI,OAAO;IAI5B,oBAAoB,CAAC,IAAI,EAAE,cAAc,GAAG,OAAO,GAAG,IAAI;IAU1D,yBAAyB,IAAI,MAAM;IASnC,kBAAkB,IAAI,OAAO,EAAE;IAI/B,yBAAyB,IAAI,OAAO,EAAE;IAItC,uBAAuB,CAAC,IAAI,EAAE,UAAU,GAAG,SAAS,GAAG,UAAU,GAAG,OAAO,EAAE;IAU7E,0BAA0B,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI;IAIvD,iBAAiB,CAAC,OAAO,EAAE,OAAO,GAAG,MAAM;IAI3C,sBAAsB,CAAC,YAAY,EAAE,QAAQ,CAAC,MAAM,CAAC,GAAG,4BAA4B,EAAE;IA4BtF,OAAO,CAAC,iBAAiB;IASzB,OAAO,CAAC,qBAAqB;IAW7B,OAAO,CAAC,sBAAsB;IAS9B,OAAO,CAAC,+BAA+B;CAUvC;AAED,wBAAgB,2BAA2B,CAAC,KAAK,EAAE,2BAA2B,GAAG,sBAAsB,CAEtG"}
|