@pie-qti/player-elements 0.1.25 → 0.1.26

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +0,0 @@
1
- {"version":3,"file":"element-class-B_qAd8ET-DGj15cBY.js","names":["Node","Text","Comment","is","XmldomDOMParser","XmldomXMLSerializer","P","ln","t","c","f","l","u","r","s","ne","x","te","C","v","S","ie","e","o","n","p","m","_","g","h","w","oe","se","ee","ae","b","re","y","d","i","a"],"sources":["../../qti-common/dist/element-mapper/Qti2xElementNameMapper.js","../../qti-common/dist/element-mapper/qti3-element-mappings.js","../../qti-common/dist/element-mapper/Qti3ElementNameMapper.js","../../qti-common/dist/element-mapper/Qti2xAttributeNameMapper.js","../../qti-common/dist/element-mapper/Qti3AttributeNameMapper.js","../../qti-common/dist/version-detection/detectQtiVersion.js","../../qti-common/dist/dom/assignProps.js","../../qti-common/dist/dom/svelteMountController.js","../../../node_modules/.bun/node-html-parser@9.0.1/node_modules/node-html-parser/dist/index.mjs","../../ims-cp-core/dist/qti-heuristics.js","../../ims-cp-core/dist/security-parsing.js","../../qti-processing/dist/xml/traverse.js","../../qti-processing/dist/ast/id.js","../../../node_modules/.bun/@xmldom+xmldom@0.9.12/node_modules/@xmldom/xmldom/lib/conventions.js","../../../node_modules/.bun/@xmldom+xmldom@0.9.12/node_modules/@xmldom/xmldom/lib/errors.js","../../../node_modules/.bun/@xmldom+xmldom@0.9.12/node_modules/@xmldom/xmldom/lib/grammar.js","../../../node_modules/.bun/@xmldom+xmldom@0.9.12/node_modules/@xmldom/xmldom/lib/dom.js","../../../node_modules/.bun/@xmldom+xmldom@0.9.12/node_modules/@xmldom/xmldom/lib/entities.js","../../../node_modules/.bun/@xmldom+xmldom@0.9.12/node_modules/@xmldom/xmldom/lib/sax.js","../../../node_modules/.bun/@xmldom+xmldom@0.9.12/node_modules/@xmldom/xmldom/lib/dom-parser.js","../../../node_modules/.bun/@xmldom+xmldom@0.9.12/node_modules/@xmldom/xmldom/lib/index.js","../../qti-processing/dist/xml/parse.js","../../qti-processing/dist/ast/build.js","../../../node_modules/.bun/decimal.js@10.6.0/node_modules/decimal.js/decimal.mjs","../../qti-processing/dist/runtime/value.js","../../qti-processing/dist/eval/evaluator.js","../../qti-processing/dist/eval/operators.js","../../qti-processing/dist/exec/execute.js","../../qti-processing/dist/runtime/context.js","../../item-player/dist/element-class-B_qAd8ET.js"],"sourcesContent":["/**\n * Element name mapper for QTI 2.x (versions 2.0, 2.1, 2.2).\n *\n * QTI 2.x uses camelCase element names:\n * - assessmentItem, itemBody, responseDeclaration\n * - choiceInteraction, simpleChoice\n * - responseProcessing, setOutcomeValue\n *\n * This mapper converts to/from lowercase canonical form for internal processing.\n */\nexport class Qti2xElementNameMapper {\n version = '2.x';\n /**\n * Convert QTI 2.x camelCase name to canonical lowercase.\n * @param elementName - camelCase element name\n * @returns lowercase canonical name\n */\n toCanonical(elementName) {\n return elementName.toLowerCase();\n }\n /**\n * Convert canonical lowercase to QTI 2.x camelCase.\n * Note: This is a best-effort conversion. The original casing\n * should be preserved when possible by the parser.\n *\n * @param canonicalName - lowercase canonical name\n * @returns camelCase element name\n */\n toNative(canonicalName) {\n // For QTI 2.x, we can return lowercase since XML is case-insensitive\n // and our parser uses case-insensitive matching anyway\n return canonicalName;\n }\n /**\n * Validate QTI 2.x element name pattern.\n * QTI 2.x uses camelCase starting with lowercase letter.\n *\n * @param elementName - Element name to validate\n * @returns true if valid camelCase pattern\n */\n isValidElementName(elementName) {\n // QTI 2.x: starts with lowercase, can contain uppercase letters and numbers\n // Examples: assessmentItem, choiceInteraction, simpleChoice, html5div\n return /^[a-z][a-zA-Z0-9]*$/.test(elementName);\n }\n}\n//# sourceMappingURL=Qti2xElementNameMapper.js.map","/**\n * Comprehensive QTI 3.0 element name mappings.\n *\n * Based on IMS Global/1EdTech QTI 3.0 specification and amp-up.io implementation.\n * All QTI 3.0 elements use kebab-case with 'qti-' prefix.\n *\n * This file documents 172 QTI 3.0 elements providing 100% coverage of the official\n * specification including all interactions, processing rules, expressions, and\n * accessibility features.\n */\n/**\n * Core assessment structure elements\n */\nexport const CORE_ELEMENTS = {\n 'qti-assessment-item': 'assessmentitem',\n 'qti-assessment-test': 'assessmenttest',\n 'qti-item-body': 'itembody',\n 'qti-content-body': 'contentbody',\n 'qti-test-part': 'testpart',\n 'qti-assessment-section': 'assessmentsection',\n 'qti-assessment-item-ref': 'assessmentitemref',\n 'qti-assessment-stimulus-ref': 'assessmentstimulusref',\n};\n/**\n * Variable declaration elements\n */\nexport const DECLARATION_ELEMENTS = {\n 'qti-response-declaration': 'responsedeclaration',\n 'qti-outcome-declaration': 'outcomedeclaration',\n 'qti-template-declaration': 'templatedeclaration',\n 'qti-context-declaration': 'contextdeclaration',\n 'qti-correct-response': 'correctresponse',\n 'qti-default-value': 'defaultvalue',\n 'qti-value': 'value',\n 'qti-mapping': 'mapping',\n 'qti-map-entry': 'mapentry',\n 'qti-area-mapping': 'areamapping',\n 'qti-area-map-entry': 'areamapentry',\n 'qti-match-table': 'matchtable',\n 'qti-match-table-entry': 'matchtableentry',\n 'qti-interpolation-table': 'interpolationtable',\n 'qti-interpolation-table-entry': 'interpolationtableentry',\n};\n/**\n * All 23+ interaction types (block and inline)\n */\nexport const INTERACTION_ELEMENTS = {\n // Block interactions\n 'qti-choice-interaction': 'choiceinteraction',\n 'qti-match-interaction': 'matchinteraction',\n 'qti-order-interaction': 'orderinteraction',\n 'qti-gap-match-interaction': 'gapmatchinteraction',\n 'qti-graphic-gap-match-interaction': 'graphicgapmatchinteraction',\n 'qti-hotspot-interaction': 'hotspotinteraction',\n 'qti-hottext-interaction': 'hottextinteraction',\n 'qti-extended-text-interaction': 'extendedtextinteraction',\n 'qti-media-interaction': 'mediainteraction',\n 'qti-select-point-interaction': 'selectpointinteraction',\n 'qti-custom-interaction': 'custominteraction',\n 'qti-portable-custom-interaction': 'portablecustominteraction',\n 'qti-end-attempt-interaction': 'endattemptinteraction',\n 'qti-slider-interaction': 'sliderinteraction',\n 'qti-drawing-interaction': 'drawinginteraction',\n 'qti-upload-interaction': 'uploadinteraction',\n 'qti-position-object-interaction': 'positionobjectinteraction',\n 'qti-graphic-order-interaction': 'graphicorderinteraction',\n 'qti-graphic-associate-interaction': 'graphicassociateinteraction',\n 'qti-associate-interaction': 'associateinteraction',\n // Inline interactions\n 'qti-text-entry-interaction': 'textentryinteraction',\n 'qti-inline-choice-interaction': 'inlinechoiceinteraction',\n};\n/**\n * Interaction child elements\n */\nexport const INTERACTION_CHILD_ELEMENTS = {\n 'qti-prompt': 'prompt',\n 'qti-simple-choice': 'simplechoice',\n 'qti-simple-match-set': 'simplematchset',\n 'qti-simple-associable-choice': 'simpleassociablechoice',\n 'qti-gap': 'gap',\n 'qti-gap-text': 'gaptext',\n 'qti-gap-img': 'gapimg',\n 'qti-gap-choice': 'gapchoice',\n 'qti-hotspot-choice': 'hotspotchoice',\n 'qti-associable-hotspot': 'associablehotspot',\n 'qti-hottext': 'hottext',\n 'qti-inline-choice': 'inlinechoice',\n 'qti-position-object-stage': 'positionobjectstage',\n};\n/**\n * Response processing elements\n */\nexport const RESPONSE_PROCESSING_ELEMENTS = {\n 'qti-response-processing': 'responseprocessing',\n 'qti-response-condition': 'responsecondition',\n 'qti-response-if': 'responseif',\n 'qti-response-else-if': 'responseelseif',\n 'qti-response-else': 'responseelse',\n 'qti-response-processing-fragment': 'responseprocessingfragment',\n 'qti-exit-response': 'exitresponse',\n 'qti-set-outcome-value': 'setoutcomevalue',\n 'qti-lookup-outcome-value': 'lookupoutcomevalue',\n 'qti-set-correct-response': 'setcorrectresponse',\n 'qti-set-default-value': 'setdefaultvalue',\n};\n/**\n * Template processing elements\n */\nexport const TEMPLATE_PROCESSING_ELEMENTS = {\n 'qti-template-processing': 'templateprocessing',\n 'qti-template-condition': 'templatecondition',\n 'qti-template-if': 'templateif',\n 'qti-template-else-if': 'templateelseif',\n 'qti-template-else': 'templateelse',\n 'qti-template-constraint': 'templateconstraint',\n 'qti-set-template-value': 'settemplatevalue',\n 'qti-exit-template': 'exittemplate',\n 'qti-template-block': 'templateblock',\n 'qti-template-inline': 'templateinline',\n};\n/**\n * Outcome processing elements (test-level)\n */\nexport const OUTCOME_PROCESSING_ELEMENTS = {\n 'qti-outcome-processing': 'outcomeprocessing',\n 'qti-outcome-condition': 'outcomecondition',\n 'qti-outcome-if': 'outcomeif',\n 'qti-outcome-else-if': 'outcomeelseif',\n 'qti-outcome-else': 'outcomeelse',\n 'qti-exit-test': 'exittest',\n};\n/**\n * Expression elements (54+ operators)\n */\nexport const EXPRESSION_ELEMENTS = {\n // Variable expressions\n 'qti-variable': 'variable',\n 'qti-correct': 'correct',\n 'qti-default': 'default',\n 'qti-base-value': 'basevalue',\n 'qti-field-value': 'fieldvalue',\n 'qti-custom-operator': 'customoperator',\n 'qti-index': 'index',\n 'qti-contains': 'contains',\n 'qti-member': 'member',\n 'qti-null': 'null',\n // Comparison operators\n 'qti-equal': 'equal',\n 'qti-equal-rounded': 'equalrounded',\n 'qti-gt': 'gt',\n 'qti-gte': 'gte',\n 'qti-lt': 'lt',\n 'qti-lte': 'lte',\n // Logical operators\n 'qti-and': 'and',\n 'qti-or': 'or',\n 'qti-not': 'not',\n 'qti-any-n': 'anyn',\n 'qti-multiple': 'multiple',\n 'qti-ordered': 'ordered',\n // String operators\n 'qti-string-match': 'stringmatch',\n 'qti-pattern-match': 'patternmatch',\n 'qti-substring': 'substring',\n 'qti-repeat': 'repeat',\n // Matching operators\n 'qti-match': 'match',\n 'qti-inside': 'inside',\n 'qti-map-response': 'mapresponse',\n 'qti-map-response-point': 'mapresponsepoint',\n // Numeric operators\n 'qti-sum': 'sum',\n 'qti-product': 'product',\n 'qti-subtract': 'subtract',\n 'qti-divide': 'divide',\n 'qti-integer-divide': 'integerdivide',\n 'qti-integer-modulus': 'integermodulus',\n 'qti-round': 'round',\n 'qti-round-to': 'roundto',\n 'qti-truncate': 'truncate',\n // Math functions\n 'qti-math-operator': 'mathoperator',\n 'qti-math-constant': 'mathconstant',\n 'qti-power': 'power',\n 'qti-gcd': 'gcd',\n 'qti-lcm': 'lcm',\n // Statistical operators\n 'qti-stats-operator': 'statsoperator',\n 'qti-min': 'min',\n 'qti-max': 'max',\n 'qti-container-size': 'containersize',\n 'qti-delete': 'delete',\n 'qti-is-null': 'isnull',\n 'qti-random': 'random',\n 'qti-random-integer': 'randominteger',\n 'qti-random-float': 'randomfloat',\n // Test-level expressions\n 'qti-test-variables': 'testvariables',\n 'qti-outcome-maximum': 'outcomemaximum',\n 'qti-outcome-minimum': 'outcomeminimum',\n 'qti-number-correct': 'numbercorrect',\n 'qti-number-incorrect': 'numberincorrect',\n 'qti-number-presented': 'numberpresented',\n 'qti-number-responded': 'numberresponded',\n 'qti-number-selected': 'numberselected',\n // Duration operators (time-based constraints)\n 'qti-duration-gt': 'durationgt',\n 'qti-duration-gte': 'durationgte',\n 'qti-duration-lt': 'durationlt',\n 'qti-duration-lte': 'durationlte',\n};\n/**\n * Feedback elements\n */\nexport const FEEDBACK_ELEMENTS = {\n 'qti-modal-feedback': 'modalfeedback',\n 'qti-feedback-block': 'feedbackblock',\n 'qti-feedback-inline': 'feedbackinline',\n 'qti-rubric-block': 'rubricblock',\n 'qti-modal-feedback-ok': 'modalfeedbackok',\n};\n/**\n * PCI (Portable Custom Interaction) elements\n */\nexport const PCI_ELEMENTS = {\n 'qti-interaction-modules': 'interactionmodules',\n 'qti-interaction-module': 'interactionmodule',\n 'qti-interaction-markup': 'interactionmarkup',\n 'qti-interaction-hook': 'interactionhook',\n 'qti-interaction-config': 'interactionconfig',\n};\n/**\n * Catalog elements (accessibility support)\n */\nexport const CATALOG_ELEMENTS = {\n 'qti-catalog': 'catalog',\n 'qti-catalog-info': 'cataloginfo',\n 'qti-card': 'card',\n 'qti-card-entry': 'cardentry',\n 'qti-html-content': 'htmlcontent',\n 'qti-file-href': 'filehref',\n};\n/**\n * Other content elements\n */\nexport const CONTENT_ELEMENTS = {\n 'qti-printed-variable': 'printedvariable',\n 'qti-context-variable': 'contextvariable',\n 'qti-template-variable': 'templatevariable',\n 'qti-stylesheet': 'stylesheet',\n 'qti-companion-materials-info': 'companionmaterialsinfo',\n};\n/**\n * Complete mapping of all QTI 3.0 elements to canonical form\n */\nexport const QTI3_ELEMENT_MAPPINGS = {\n ...CORE_ELEMENTS,\n ...DECLARATION_ELEMENTS,\n ...INTERACTION_ELEMENTS,\n ...INTERACTION_CHILD_ELEMENTS,\n ...RESPONSE_PROCESSING_ELEMENTS,\n ...TEMPLATE_PROCESSING_ELEMENTS,\n ...OUTCOME_PROCESSING_ELEMENTS,\n ...EXPRESSION_ELEMENTS,\n ...FEEDBACK_ELEMENTS,\n ...PCI_ELEMENTS,\n ...CATALOG_ELEMENTS,\n ...CONTENT_ELEMENTS,\n};\n/**\n * Get canonical name for a QTI 3.0 element\n */\nexport function getCanonicalName(qti3ElementName) {\n return QTI3_ELEMENT_MAPPINGS[qti3ElementName];\n}\n/**\n * Check if an element name is a valid QTI 3.0 element\n */\nexport function isQti3Element(elementName) {\n return elementName in QTI3_ELEMENT_MAPPINGS;\n}\n/**\n * Get all QTI 3.0 interaction element names\n */\nexport function getInteractionElements() {\n return Object.keys(INTERACTION_ELEMENTS);\n}\n/**\n * Common QTI 3.0 attribute names (kebab-case)\n */\nexport const QTI3_ATTRIBUTES = {\n // Identifiers\n identifier: 'identifier',\n responseIdentifier: 'response-identifier',\n outcomeIdentifier: 'outcome-identifier',\n templateIdentifier: 'template-identifier',\n // Types\n baseType: 'base-type',\n cardinality: 'cardinality',\n // Interaction attributes\n minChoices: 'min-choices',\n maxChoices: 'max-choices',\n shuffle: 'shuffle',\n fixed: 'fixed',\n // Feedback attributes\n showHide: 'show-hide',\n // Outcome attributes\n normalMaximum: 'normal-maximum',\n normalMinimum: 'normal-minimum',\n // Template attributes\n mathVariable: 'math-variable',\n paramVariable: 'param-variable',\n // Assessment attributes\n timeDependent: 'time-dependent',\n adaptive: 'adaptive',\n // Text interaction attributes\n expectedLength: 'expected-length',\n patternMask: 'pattern-mask',\n placeholderText: 'placeholder-text',\n minStrings: 'min-strings',\n maxStrings: 'max-strings',\n // Other\n fieldIdentifier: 'field-identifier',\n toleranceMode: 'tolerance-mode',\n dataCatalogIdref: 'data-catalog-idref', // AMP extension\n};\n//# sourceMappingURL=qti3-element-mappings.js.map","import { getCanonicalName, QTI3_ELEMENT_MAPPINGS } from './qti3-element-mappings.js';\nconst QTI3_NATIVE_BY_CANONICAL = new Map(Object.entries(QTI3_ELEMENT_MAPPINGS).map(([native, canonical]) => [canonical, native]));\n/**\n * Element name mapper for QTI 3.0.\n *\n * QTI-defined elements use kebab-case with a `qti-` prefix. HTML, MathML,\n * SVG, and extension vocabularies retain their native names.\n */\nexport class Qti3ElementNameMapper {\n version = '3.0';\n PREFIX = 'qti-';\n toCanonical(elementName) {\n const knownQtiName = getCanonicalName(elementName);\n if (knownQtiName)\n return knownQtiName;\n const canonicalName = elementName.toLowerCase();\n if (QTI3_NATIVE_BY_CANONICAL.has(canonicalName))\n return canonicalName;\n if (elementName.startsWith(this.PREFIX)) {\n return elementName.slice(this.PREFIX.length).replace(/-/g, '').toLowerCase();\n }\n return elementName;\n }\n toNative(canonicalName) {\n return QTI3_NATIVE_BY_CANONICAL.get(canonicalName.toLowerCase()) ?? canonicalName;\n }\n isValidElementName(elementName) {\n if (!elementName.startsWith(this.PREFIX))\n return false;\n if (elementName === this.PREFIX)\n return false;\n if (elementName.includes('--'))\n return false;\n if (elementName.endsWith('-'))\n return false;\n return /^qti-[a-z][a-z0-9-]*$/.test(elementName);\n }\n}\n//# sourceMappingURL=Qti3ElementNameMapper.js.map","/**\n * QTI 2.x attribute name mapper.\n *\n * QTI 2.x uses camelCase for all attribute names, so this mapper\n * is essentially a pass-through that validates camelCase format.\n *\n * @example\n * const mapper = new Qti2xAttributeNameMapper();\n * mapper.toCanonical('responseIdentifier'); // => 'responseIdentifier'\n * mapper.toNative('maxChoices'); // => 'maxChoices'\n */\nexport class Qti2xAttributeNameMapper {\n version = '2.x';\n /**\n * For QTI 2.x, attributes are already in camelCase (canonical form).\n */\n toCanonical(attributeName) {\n return attributeName;\n }\n /**\n * For QTI 2.x, attributes are already in camelCase (native form).\n */\n toNative(canonicalName) {\n return canonicalName;\n }\n /**\n * Check if attribute name is valid camelCase (no hyphens).\n */\n isValidAttributeName(attributeName) {\n // QTI 2.x attributes should not contain hyphens\n // Exception: XML standard attributes like xml:lang, xml:base\n if (attributeName.startsWith('xml:') || attributeName.startsWith('xmlns')) {\n return true;\n }\n return !attributeName.includes('-');\n }\n}\n//# sourceMappingURL=Qti2xAttributeNameMapper.js.map","/**\n * QTI 3.0 attribute name mappings from kebab-case to camelCase.\n *\n * Based on QTI 3.0 specification where all attributes use kebab-case.\n * This provides comprehensive mappings for all standard QTI attributes.\n */\nconst QTI3_ATTRIBUTE_MAPPINGS = {\n // Core identifiers\n identifier: 'identifier',\n 'response-identifier': 'responseIdentifier',\n 'outcome-identifier': 'outcomeIdentifier',\n 'template-identifier': 'templateIdentifier',\n 'context-identifier': 'contextIdentifier',\n // Types and cardinality\n 'base-type': 'baseType',\n cardinality: 'cardinality',\n // Choice/selection attributes\n 'max-choices': 'maxChoices',\n 'min-choices': 'minChoices',\n shuffle: 'shuffle',\n fixed: 'fixed',\n orientation: 'orientation',\n required: 'required',\n // Match/association attributes\n 'match-max': 'matchMax',\n 'match-min': 'matchMin',\n 'max-associations': 'maxAssociations',\n 'min-associations': 'minAssociations',\n // Text interaction attributes\n 'expected-length': 'expectedLength',\n 'expected-lines': 'expectedLines',\n 'pattern-mask': 'patternMask',\n 'placeholder-text': 'placeholderText',\n format: 'format',\n 'string-identifier': 'stringIdentifier',\n 'min-strings': 'minStrings',\n 'max-strings': 'maxStrings',\n // Slider attributes\n 'lower-bound': 'lowerBound',\n 'upper-bound': 'upperBound',\n step: 'step',\n 'step-label': 'stepLabel',\n reverse: 'reverse',\n // Hotspot/graphic attributes\n shape: 'shape',\n coords: 'coords',\n 'hotspot-label': 'hotspotLabel',\n 'min-hotspots': 'minHotspots',\n 'max-hotspots': 'maxHotspots',\n // Media attributes\n autostart: 'autostart',\n 'min-plays': 'minPlays',\n 'max-plays': 'maxPlays',\n loop: 'loop',\n controls: 'controls',\n // Feedback attributes\n 'show-hide': 'showHide',\n 'outcome-value': 'outcomeValue',\n access: 'access',\n view: 'view',\n // Outcome/result attributes\n 'normal-maximum': 'normalMaximum',\n 'normal-minimum': 'normalMinimum',\n 'mastery-value': 'masteryValue',\n interpretation: 'interpretation',\n 'long-interpretation': 'longInterpretation',\n // Template attributes\n 'math-variable': 'mathVariable',\n 'param-variable': 'paramVariable',\n // Assessment/test attributes\n 'time-dependent': 'timeDependent',\n adaptive: 'adaptive',\n title: 'title',\n label: 'label',\n // Test structure attributes\n 'navigation-mode': 'navigationMode',\n 'submission-mode': 'submissionMode',\n 'item-session-control': 'itemSessionControl',\n 'time-limits': 'timeLimits',\n // Time limits\n 'min-time': 'minTime',\n 'max-time': 'maxTime',\n 'allow-late-submission': 'allowLateSubmission',\n // Item session control\n 'max-attempts': 'maxAttempts',\n 'show-feedback': 'showFeedback',\n 'allow-review': 'allowReview',\n 'show-solution': 'showSolution',\n 'allow-comment': 'allowComment',\n 'allow-skipping': 'allowSkipping',\n 'validate-responses': 'validateResponses',\n // Processing attributes\n template: 'template',\n 'template-location': 'templateLocation',\n // Expression attributes\n 'field-identifier': 'fieldIdentifier',\n 'base-value': 'baseValue',\n 'tolerance-mode': 'toleranceMode',\n 'include-category': 'includeCategory',\n 'exclude-category': 'excludeCategory',\n 'section-identifier': 'sectionIdentifier',\n 'weight-identifier': 'weightIdentifier',\n // Mapping attributes\n 'map-key': 'mapKey',\n 'mapped-value': 'mappedValue',\n 'case-sensitive': 'caseSensitive',\n 'default-value': 'defaultValue',\n // Note: lower-bound and upper-bound already defined above (used in slider and mapping contexts)\n // Interpolation attributes\n 'source-value': 'sourceValue',\n 'target-value': 'targetValue',\n 'include-boundary': 'includeBoundary',\n // Ordering attributes\n 'keep-together': 'keepTogether',\n // Selection attributes\n select: 'select',\n 'with-replacement': 'withReplacement',\n // Pre-conditions and branching\n 'pre-condition': 'preCondition',\n 'branch-rule': 'branchRule',\n // Catalog/accessibility attributes\n 'data-catalog-idref': 'dataCatalogIdref',\n support: 'support',\n 'card-idref': 'cardIdref',\n // PCI attributes\n hook: 'hook',\n module: 'module',\n 'entry-point': 'entryPoint',\n // Object attributes\n data: 'data',\n type: 'type',\n width: 'width',\n height: 'height',\n codetype: 'codetype',\n codebase: 'codebase',\n archive: 'archive',\n // Param attributes\n name: 'name',\n value: 'value',\n valuetype: 'valuetype',\n // Stylesheet attributes\n href: 'href',\n media: 'media',\n // Math operator attributes\n operator: 'operator',\n // Stats operator attributes\n 'stats-operator': 'statsOperator',\n // Rounding attributes\n 'rounding-mode': 'roundingMode',\n figures: 'figures',\n // Variable matching\n 'variable-identifier': 'variableIdentifier',\n // Index attributes\n n: 'n',\n // String matching\n 'substring-match': 'substringMatch',\n // Container attributes\n 'ordered-container': 'orderedContainer',\n // Custom operator\n class: 'class',\n definition: 'definition',\n // Standard XML attributes (pass through)\n lang: 'lang',\n 'xml:lang': 'xml:lang',\n 'xml:base': 'xml:base',\n id: 'id',\n xmlns: 'xmlns',\n};\n/**\n * QTI 3.0 attribute name mapper.\n *\n * QTI 3.0 uses kebab-case for attribute names. This mapper converts\n * between kebab-case (QTI 3.0) and camelCase (internal canonical form).\n *\n * @example\n * const mapper = new Qti3AttributeNameMapper();\n * mapper.toCanonical('response-identifier'); // => 'responseIdentifier'\n * mapper.toCanonical('max-choices'); // => 'maxChoices'\n * mapper.toNative('responseIdentifier'); // => 'response-identifier'\n * mapper.toNative('maxChoices'); // => 'max-choices'\n */\nexport class Qti3AttributeNameMapper {\n version = '3.0';\n // Reverse mapping cache (camelCase -> kebab-case)\n reverseMap = null;\n /**\n * Convert QTI 3.0 kebab-case attribute to canonical camelCase.\n */\n toCanonical(attributeName) {\n // Direct lookup\n const canonical = QTI3_ATTRIBUTE_MAPPINGS[attributeName];\n if (canonical) {\n return canonical;\n }\n // If already in camelCase (no hyphens), return as-is\n if (!attributeName.includes('-')) {\n return attributeName;\n }\n // Fallback: convert kebab-case to camelCase programmatically\n return this.kebabToCamelCase(attributeName);\n }\n /**\n * Convert canonical camelCase to QTI 3.0 kebab-case.\n */\n toNative(canonicalName) {\n // Build reverse map on first use\n if (!this.reverseMap) {\n this.reverseMap = new Map();\n for (const [kebab, camel] of Object.entries(QTI3_ATTRIBUTE_MAPPINGS)) {\n this.reverseMap.set(camel, kebab);\n }\n }\n // Direct lookup\n const native = this.reverseMap.get(canonicalName);\n if (native) {\n return native;\n }\n // If already in kebab-case, return as-is\n if (canonicalName.includes('-')) {\n return canonicalName;\n }\n // Fallback: convert camelCase to kebab-case programmatically\n return this.camelToKebabCase(canonicalName);\n }\n /**\n * Check if attribute name is valid kebab-case.\n */\n isValidAttributeName(attributeName) {\n // Standard XML attributes are always valid\n if (attributeName.startsWith('xml:') ||\n attributeName.startsWith('xmlns') ||\n attributeName === 'id') {\n return true;\n }\n // QTI 3.0 attributes should be kebab-case (lowercase with hyphens)\n // or simple lowercase (like 'shuffle', 'type', 'value')\n return /^[a-z][a-z0-9-]*$/.test(attributeName);\n }\n /**\n * Convert kebab-case to camelCase.\n * @private\n */\n kebabToCamelCase(str) {\n return str.replace(/-([a-z])/g, (_, letter) => letter.toUpperCase());\n }\n /**\n * Convert camelCase to kebab-case.\n * @private\n */\n camelToKebabCase(str) {\n return str.replace(/[A-Z]/g, (letter) => `-${letter.toLowerCase()}`);\n }\n}\n/**\n * Get all QTI 3.0 attribute names (kebab-case).\n */\nexport function getQti3AttributeNames() {\n return Object.keys(QTI3_ATTRIBUTE_MAPPINGS);\n}\n/**\n * Get canonical name for a QTI 3.0 attribute.\n */\nexport function getCanonicalAttributeName(qti3AttributeName) {\n return QTI3_ATTRIBUTE_MAPPINGS[qti3AttributeName];\n}\n/**\n * Check if an attribute name is a valid QTI 3.0 attribute.\n */\nexport function isQti3Attribute(attributeName) {\n return attributeName in QTI3_ATTRIBUTE_MAPPINGS;\n}\n//# sourceMappingURL=Qti3AttributeNameMapper.js.map","/**\n * Detect the QTI version from XML content.\n *\n * Detection strategy (in priority order):\n * 1. Check XML namespace URI for version indicators (v2p0, v2p1, v2p2, v3p0)\n * 2. Check root element name (qti-assessment-item => 3.0, assessmentItem => 2.x)\n * 3. Check version attribute on root element\n * 4. Fall back to 'unknown'\n *\n * @param xml - QTI XML content as string\n * @returns Detected QTI version or 'unknown'\n *\n * @example\n * ```typescript\n * const xml = `<qti-assessment-item xmlns=\"http://www.imsglobal.org/xsd/imsqtiasi_v3p0\">`;\n * detectQtiVersion(xml); // => '3.0'\n * ```\n */\nexport function detectQtiVersion(xml) {\n try {\n // Check if we're in a browser environment\n if (typeof window !== 'undefined' && typeof window.DOMParser !== 'undefined') {\n const parser = new window.DOMParser();\n const doc = parser.parseFromString(xml, 'text/xml');\n return detectFromDocument(doc);\n }\n // In Node.js environment, fall back to regex detection\n // (xmldom can be optionally imported by consumers if needed)\n return detectFromString(xml);\n }\n catch {\n // If parsing fails, try string-based detection\n return detectFromString(xml);\n }\n}\n/**\n * Detect QTI version from a parsed Document.\n * @param doc - Parsed XML document\n * @returns Detected QTI version\n * @private\n */\nfunction detectFromDocument(doc) {\n const root = doc.documentElement;\n // Check for parse errors\n if (root.tagName === 'parsererror') {\n return 'unknown';\n }\n // Strategy 1: Check namespace URI\n if (root.namespaceURI) {\n if (root.namespaceURI.includes('v3p0') || root.namespaceURI.includes('imsqtiasi_v3p0')) {\n return '3.0';\n }\n if (root.namespaceURI.includes('v2p2')) {\n return '2.2';\n }\n if (root.namespaceURI.includes('v2p1')) {\n return '2.1';\n }\n if (root.namespaceURI.includes('v2p0')) {\n return '2.0';\n }\n }\n // Strategy 2: Check root element name (any qti- prefixed element indicates QTI 3.0)\n const localName = root.localName || root.tagName;\n if (localName === 'qti-assessment-item' || localName === 'qti-assessment-test' || localName.startsWith('qti-')) {\n return '3.0';\n }\n // Strategy 3: Check version attribute\n if (localName === 'assessmentItem' || localName === 'assessmentTest') {\n const version = root.getAttribute('version');\n if (version) {\n if (version.startsWith('3.'))\n return '3.0';\n if (version.startsWith('2.2'))\n return '2.2';\n if (version.startsWith('2.1'))\n return '2.1';\n if (version.startsWith('2.0'))\n return '2.0';\n }\n // If no version attribute, assume 2.2 (most common)\n return '2.2';\n }\n return 'unknown';\n}\n/**\n * Detect QTI version using string matching (fallback method).\n * @param xml - XML string\n * @returns Detected QTI version\n * @private\n */\nfunction detectFromString(xml) {\n // Check namespace declarations\n if (xml.includes('imsqtiasi_v3p0') || xml.includes('/v3p0/')) {\n return '3.0';\n }\n if (xml.includes('imsqti_v2p2') || xml.includes('/v2p2/')) {\n return '2.2';\n }\n if (xml.includes('imsqti_v2p1') || xml.includes('/v2p1/')) {\n return '2.1';\n }\n if (xml.includes('imsqti_v2p0') || xml.includes('/v2p0/')) {\n return '2.0';\n }\n // Check root element or any QTI 3.0 element (kebab-case with qti- prefix)\n if (/<qti-assessment-(item|test)[\\s>]/.test(xml) || /<qti-[a-z-]+[\\s>]/.test(xml)) {\n return '3.0';\n }\n if (/<assessment(Item|Test)[\\s>]/.test(xml)) {\n // Try to find version attribute\n const versionMatch = xml.match(/version=[\"']([^\"']+)[\"']/);\n if (versionMatch) {\n const version = versionMatch[1];\n if (version.startsWith('3.'))\n return '3.0';\n if (version.startsWith('2.2'))\n return '2.2';\n if (version.startsWith('2.1'))\n return '2.1';\n if (version.startsWith('2.0'))\n return '2.0';\n }\n // Assume 2.2 if no version specified\n return '2.2';\n }\n return 'unknown';\n}\n//# sourceMappingURL=detectQtiVersion.js.map","export function assignProps(node, props, options = {}) {\n const { skipUndefined = true } = options;\n for (const [key, value] of Object.entries(props)) {\n if (skipUndefined && value === undefined)\n continue;\n node[key] = value;\n }\n}\n//# sourceMappingURL=assignProps.js.map","/**\n * Owns Svelte custom-element mount policy in one place.\n *\n * Svelte 5 adapters supply createSubscriber to track shallow reactive props so a\n * response update preserves the component, input focus, and local state.\n * The $set/remount fallback remains for existing callers without that bridge.\n */\nexport function createSvelteMountController({ host, mount, createSubscriber, unmount, createContainer = defaultContainer, }) {\n let container = null;\n let instance = null;\n let pendingRemount = false;\n let latestProps = null;\n let notifyProps;\n const trackProps = createSubscriber?.((update) => {\n notifyProps = update;\n return () => { notifyProps = undefined; };\n });\n // Track reads without deep-proxying externally owned sessions and providers.\n const reactiveProps = trackProps ? new Proxy({}, {\n get(_target, key) {\n trackProps();\n return Reflect.get(latestProps, key);\n },\n has(_target, key) {\n trackProps();\n return Reflect.has(latestProps, key);\n },\n ownKeys() {\n trackProps();\n return Reflect.ownKeys(latestProps);\n },\n getOwnPropertyDescriptor(_target, key) {\n trackProps();\n return Reflect.has(latestProps, key)\n ? { configurable: true, enumerable: true }\n : undefined;\n },\n }) : undefined;\n function ensureContainer() {\n if (!container) {\n container = createContainer();\n host.appendChild(container);\n }\n return container;\n }\n function mountFresh(props) {\n latestProps = props;\n instance = mount(ensureContainer(), reactiveProps ?? props);\n return instance;\n }\n function scheduleRemount() {\n if (pendingRemount)\n return;\n pendingRemount = true;\n queueMicrotask(() => {\n pendingRemount = false;\n if (!host.isConnected || !container || latestProps === null)\n return;\n teardownInstance();\n mountFresh(latestProps);\n });\n }\n function teardownInstance() {\n if (!instance)\n return;\n try {\n void unmount(instance);\n }\n catch {\n // Unmount should not make custom-element disconnection throw.\n }\n instance = null;\n }\n function mountOrUpdate(props) {\n latestProps = props;\n if (!instance) {\n return mountFresh(props);\n }\n update(props);\n return instance;\n }\n function update(props) {\n latestProps = props;\n if (!instance)\n return;\n if (trackProps) {\n notifyProps?.();\n return;\n }\n const set = instance.$set;\n if (typeof set === 'function') {\n try {\n set.call(instance, props);\n return;\n }\n catch (error) {\n if (!isSvelteComponentApiChanged(error))\n throw error;\n }\n }\n scheduleRemount();\n }\n function teardown(options = {}) {\n pendingRemount = false;\n teardownInstance();\n if (options.removeContainer ?? true) {\n container?.remove();\n container = null;\n }\n }\n return {\n get instance() {\n return instance;\n },\n get mounted() {\n return instance !== null;\n },\n mountOrUpdate,\n update,\n teardown,\n };\n}\nfunction isSvelteComponentApiChanged(error) {\n return error instanceof Error && error.message.includes('https://svelte.dev/e/component_api_changed');\n}\nfunction defaultContainer() {\n const container = document.createElement('div');\n container.style.display = 'contents';\n return container;\n}\n//# sourceMappingURL=svelteMountController.js.map","//#region \\0rolldown/runtime.js\nvar __create = Object.create;\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __getProtoOf = Object.getPrototypeOf;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __commonJSMin = (cb, mod) => () => (mod || (cb((mod = { exports: {} }).exports, mod), cb = null), mod.exports);\nvar __exportAll = (all, no_symbols) => {\n\tlet target = {};\n\tfor (var name in all) __defProp(target, name, {\n\t\tget: all[name],\n\t\tenumerable: true\n\t});\n\tif (!no_symbols) __defProp(target, Symbol.toStringTag, { value: \"Module\" });\n\treturn target;\n};\nvar __copyProps = (to, from, except, desc) => {\n\tif (from && typeof from === \"object\" || typeof from === \"function\") for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {\n\t\tkey = keys[i];\n\t\tif (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {\n\t\t\tget: ((k) => from[k]).bind(null, key),\n\t\t\tenumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable\n\t\t});\n\t}\n\treturn to;\n};\nvar __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, \"default\", {\n\tvalue: mod,\n\tenumerable: true\n}) : target, mod));\n//#endregion\n//#region node_modules/entities/dist/decode-codepoint.js\nconst decodeMap = /* @__PURE__ */ new Map([\n\t[0, 65533],\n\t[128, 8364],\n\t[130, 8218],\n\t[131, 402],\n\t[132, 8222],\n\t[133, 8230],\n\t[134, 8224],\n\t[135, 8225],\n\t[136, 710],\n\t[137, 8240],\n\t[138, 352],\n\t[139, 8249],\n\t[140, 338],\n\t[142, 381],\n\t[145, 8216],\n\t[146, 8217],\n\t[147, 8220],\n\t[148, 8221],\n\t[149, 8226],\n\t[150, 8211],\n\t[151, 8212],\n\t[152, 732],\n\t[153, 8482],\n\t[154, 353],\n\t[155, 8250],\n\t[156, 339],\n\t[158, 382],\n\t[159, 376]\n]);\n/**\n* Replace the given code point with a replacement character if it is a\n* surrogate or is outside the valid range. Otherwise return the code\n* point unchanged.\n* @param codePoint Unicode code point to convert.\n*/\nfunction replaceCodePoint(codePoint) {\n\tvar _decodeMap$get;\n\tif (codePoint >= 55296 && codePoint <= 57343 || codePoint > 1114111) return 65533;\n\treturn (_decodeMap$get = decodeMap.get(codePoint)) !== null && _decodeMap$get !== void 0 ? _decodeMap$get : codePoint;\n}\n//#endregion\n//#region node_modules/entities/dist/internal/decode-shared.js\n/**\n* Shared base64 decode helper for generated decode data.\n* Assumes global atob is available.\n* @param input Input string to encode or decode.\n*/\nfunction decodeBase64(input) {\n\tconst binary = atob(input);\n\tconst evenLength = binary.length & -2;\n\tconst out = new Uint16Array(evenLength / 2);\n\tfor (let index = 0, outIndex = 0; index < evenLength; index += 2) {\n\t\tconst lo = binary.charCodeAt(index);\n\t\tconst hi = binary.charCodeAt(index + 1);\n\t\tout[outIndex++] = lo | hi << 8;\n\t}\n\treturn out;\n}\n//#endregion\n//#region node_modules/entities/dist/generated/decode-data-html.js\n/** Packed HTML decode trie data. */\nconst htmlDecodeTree = /* #__PURE__ */ decodeBase64(\"QR08ALkAAgH6AYsDNQR2BO0EPgXZBQEGLAbdBxMISQrvCmQLfQurDKQNLw4fD4YPpA+6D/IPAAAAAAAAAAAAAAAAKhBMEY8TmxUWF2EYLBkxGuAa3RsJHDscWR8YIC8jSCSIJcMl6ie3Ku8rEC0CLjoupS7kLgAIRU1hYmNmZ2xtbm9wcnN0dVQ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GMubS5wLnQuAAAAAIguki4AAJouJxIqEnQAcgDpAB0ScgAA4DXYNd0AAUFhWy5eLnIA8gDnAnIA8gCTB75jAAFBYWYuaS5yAPIA4AJyAPIAjAdhAPAAeh5pAHMAAKD7IoABZHB0APgReS6DLgABZmx9LoAuAOA12GnddQDzAP8RaQBtAOUABBIAAUFhiy6OLnIA8gDuAnIA8gCaBwABY3GVLgoScgAA4DXYzdwAAXB0nS6hLmwAdQDzACUScgDpACASAARhY2VmaW9zdbEuvC7ELsguzC7PLtQu2S5jAAABdXm2LrsudABlADuA/QD9QE9kAAFpecAuwy5yAGMAd2FLZG4AO4ClAKVAcgAA4DXYNt1jAHkAV2RwAGYAAOA12GrdYwByAADgNdjO3AABY23dLt8ueQBOZGwAO4D/AP9AAAVhY2RlZmhpb3N38y73Lv8uAi8MLxAvEy8YLx0vIi9jInV0ZQB6YQABYXn7Lv4u8iFvbn5hN2RvAHQAfGEAAWV0Bi8KL3QAcgDmAB8QYQC2Y3IAAOA12DfdYwB5ADZk5yJyYXJyAKDdIXAAZgAA4DXYa91jAHIAAOA12M/cAAFqbiYvKC8AoA0gagAAoAwg\");\n//#endregion\n//#region node_modules/entities/dist/internal/bin-trie-flags.js\n/**\n* Bit flags & masks for the binary trie encoding used for entity decoding.\n*\n* Bit layout (16 bits total):\n* 15..14 VALUE_LENGTH (+1 encoding; 0 => no value)\n* 13 FLAG13. If valueLength>0: semicolon required flag (implicit ';').\n* If valueLength==0: compact run flag.\n* 12..7 BRANCH_LENGTH Branch length (0 => single branch in 6..0 if jumpOffset==char) OR run length (when compact run)\n* 6..0 JUMP_TABLE Jump offset (jump table) OR single-branch char code OR first run char\n*/\nvar BinTrieFlags;\n(function(BinTrieFlags) {\n\tBinTrieFlags[BinTrieFlags[\"VALUE_LENGTH\"] = 49152] = \"VALUE_LENGTH\";\n\tBinTrieFlags[BinTrieFlags[\"FLAG13\"] = 8192] = \"FLAG13\";\n\tBinTrieFlags[BinTrieFlags[\"BRANCH_LENGTH\"] = 8064] = \"BRANCH_LENGTH\";\n\tBinTrieFlags[BinTrieFlags[\"JUMP_TABLE\"] = 127] = \"JUMP_TABLE\";\n})(BinTrieFlags || (BinTrieFlags = {}));\n//#endregion\n//#region node_modules/entities/dist/decode.js\nvar CharCodes;\n(function(CharCodes) {\n\tCharCodes[CharCodes[\"NUM\"] = 35] = \"NUM\";\n\tCharCodes[CharCodes[\"SEMI\"] = 59] = \"SEMI\";\n\tCharCodes[CharCodes[\"EQUALS\"] = 61] = \"EQUALS\";\n\tCharCodes[CharCodes[\"ZERO\"] = 48] = \"ZERO\";\n\tCharCodes[CharCodes[\"NINE\"] = 57] = \"NINE\";\n\tCharCodes[CharCodes[\"LOWER_A\"] = 97] = \"LOWER_A\";\n\tCharCodes[CharCodes[\"LOWER_F\"] = 102] = \"LOWER_F\";\n\tCharCodes[CharCodes[\"LOWER_X\"] = 120] = \"LOWER_X\";\n\tCharCodes[CharCodes[\"LOWER_Z\"] = 122] = \"LOWER_Z\";\n\tCharCodes[CharCodes[\"UPPER_A\"] = 65] = \"UPPER_A\";\n\tCharCodes[CharCodes[\"UPPER_F\"] = 70] = \"UPPER_F\";\n\tCharCodes[CharCodes[\"UPPER_Z\"] = 90] = \"UPPER_Z\";\n})(CharCodes || (CharCodes = {}));\n/** Bit that needs to be set to convert an upper case ASCII character to lower case */\nconst TO_LOWER_BIT = 32;\nfunction isNumber(code) {\n\treturn code >= CharCodes.ZERO && code <= CharCodes.NINE;\n}\nfunction isHexadecimalCharacter(code) {\n\treturn code >= CharCodes.UPPER_A && code <= CharCodes.UPPER_F || code >= CharCodes.LOWER_A && code <= CharCodes.LOWER_F;\n}\nfunction isAsciiAlphaNumeric(code) {\n\treturn code >= CharCodes.UPPER_A && code <= CharCodes.UPPER_Z || code >= CharCodes.LOWER_A && code <= CharCodes.LOWER_Z || isNumber(code);\n}\n/**\n* Checks if the given character is a valid end character for an entity in an attribute.\n*\n* Attribute values that aren't terminated properly aren't parsed, and shouldn't lead to a parser error.\n* See the example in https://html.spec.whatwg.org/multipage/parsing.html#named-character-reference-state\n* @param code Code point to decode.\n*/\nfunction isEntityInAttributeInvalidEnd(code) {\n\treturn code === CharCodes.EQUALS || isAsciiAlphaNumeric(code);\n}\nvar EntityDecoderState;\n(function(EntityDecoderState) {\n\tEntityDecoderState[EntityDecoderState[\"EntityStart\"] = 0] = \"EntityStart\";\n\tEntityDecoderState[EntityDecoderState[\"NumericStart\"] = 1] = \"NumericStart\";\n\tEntityDecoderState[EntityDecoderState[\"NumericDecimal\"] = 2] = \"NumericDecimal\";\n\tEntityDecoderState[EntityDecoderState[\"NumericHex\"] = 3] = \"NumericHex\";\n\tEntityDecoderState[EntityDecoderState[\"NamedEntity\"] = 4] = \"NamedEntity\";\n})(EntityDecoderState || (EntityDecoderState = {}));\n/**\n* Decoding mode for named entities.\n*/\nvar DecodingMode;\n(function(DecodingMode) {\n\t/** Entities in text nodes that can end with any character. */\n\tDecodingMode[DecodingMode[\"Legacy\"] = 0] = \"Legacy\";\n\t/** Only allow entities terminated with a semicolon. */\n\tDecodingMode[DecodingMode[\"Strict\"] = 1] = \"Strict\";\n\t/** Entities in attributes have limitations on ending characters. */\n\tDecodingMode[DecodingMode[\"Attribute\"] = 2] = \"Attribute\";\n})(DecodingMode || (DecodingMode = {}));\n/**\n* Token decoder with support of writing partial entities.\n*/\nvar EntityDecoder = class {\n\tconstructor(decodeTree, emitCodePoint, errors) {\n\t\tthis.state = EntityDecoderState.EntityStart;\n\t\tthis.consumed = 1;\n\t\tthis.result = 0;\n\t\tthis.treeIndex = 0;\n\t\tthis.excess = 1;\n\t\tthis.decodeMode = DecodingMode.Strict;\n\t\tthis.runConsumed = 0;\n\t\tthis.decodeTree = decodeTree;\n\t\tthis.emitCodePoint = emitCodePoint;\n\t\tthis.errors = errors;\n\t}\n\t/**\n\t* Resets the instance to make it reusable.\n\t* @param decodeMode Entity decoding mode to use.\n\t*/\n\tstartEntity(decodeMode) {\n\t\tthis.decodeMode = decodeMode;\n\t\tthis.state = EntityDecoderState.EntityStart;\n\t\tthis.result = 0;\n\t\tthis.treeIndex = 0;\n\t\tthis.excess = 1;\n\t\tthis.consumed = 1;\n\t\tthis.runConsumed = 0;\n\t}\n\t/**\n\t* Write an entity to the decoder. This can be called multiple times with partial entities.\n\t* If the entity is incomplete, the decoder will return -1.\n\t*\n\t* Mirrors the implementation of `getDecoder`, but with the ability to stop decoding if the\n\t* entity is incomplete, and resume when the next string is written.\n\t* @param input The string containing the entity (or a continuation of the entity).\n\t* @param offset The offset at which the entity begins. Should be 0 if this is not the first call.\n\t* @returns The number of characters that were consumed, or -1 if the entity is incomplete.\n\t*/\n\twrite(input, offset) {\n\t\tswitch (this.state) {\n\t\t\tcase EntityDecoderState.EntityStart:\n\t\t\t\tif (input.charCodeAt(offset) === CharCodes.NUM) {\n\t\t\t\t\tthis.state = EntityDecoderState.NumericStart;\n\t\t\t\t\tthis.consumed += 1;\n\t\t\t\t\treturn this.stateNumericStart(input, offset + 1);\n\t\t\t\t}\n\t\t\t\tthis.state = EntityDecoderState.NamedEntity;\n\t\t\t\treturn this.stateNamedEntity(input, offset);\n\t\t\tcase EntityDecoderState.NumericStart: return this.stateNumericStart(input, offset);\n\t\t\tcase EntityDecoderState.NumericDecimal: return this.stateNumericDecimal(input, offset);\n\t\t\tcase EntityDecoderState.NumericHex: return this.stateNumericHex(input, offset);\n\t\t\tcase EntityDecoderState.NamedEntity: return this.stateNamedEntity(input, offset);\n\t\t}\n\t}\n\t/**\n\t* Switches between the numeric decimal and hexadecimal states.\n\t*\n\t* Equivalent to the `Numeric character reference state` in the HTML spec.\n\t* @param input The string containing the entity (or a continuation of the entity).\n\t* @param offset The current offset.\n\t* @returns The number of characters that were consumed, or -1 if the entity is incomplete.\n\t*/\n\tstateNumericStart(input, offset) {\n\t\tif (offset >= input.length) return -1;\n\t\tif ((input.charCodeAt(offset) | TO_LOWER_BIT) === CharCodes.LOWER_X) {\n\t\t\tthis.state = EntityDecoderState.NumericHex;\n\t\t\tthis.consumed += 1;\n\t\t\treturn this.stateNumericHex(input, offset + 1);\n\t\t}\n\t\tthis.state = EntityDecoderState.NumericDecimal;\n\t\treturn this.stateNumericDecimal(input, offset);\n\t}\n\t/**\n\t* Parses a hexadecimal numeric entity.\n\t*\n\t* Equivalent to the `Hexademical character reference state` in the HTML spec.\n\t* @param input The string containing the entity (or a continuation of the entity).\n\t* @param offset The current offset.\n\t* @returns The number of characters that were consumed, or -1 if the entity is incomplete.\n\t*/\n\tstateNumericHex(input, offset) {\n\t\twhile (offset < input.length) {\n\t\t\tconst char = input.charCodeAt(offset);\n\t\t\tif (isNumber(char) || isHexadecimalCharacter(char)) {\n\t\t\t\tconst digit = char <= CharCodes.NINE ? char - CharCodes.ZERO : (char | TO_LOWER_BIT) - CharCodes.LOWER_A + 10;\n\t\t\t\tthis.result = this.result * 16 + digit;\n\t\t\t\tthis.consumed++;\n\t\t\t\toffset++;\n\t\t\t} else return this.emitNumericEntity(char, 3);\n\t\t}\n\t\treturn -1;\n\t}\n\t/**\n\t* Parses a decimal numeric entity.\n\t*\n\t* Equivalent to the `Decimal character reference state` in the HTML spec.\n\t* @param input The string containing the entity (or a continuation of the entity).\n\t* @param offset The current offset.\n\t* @returns The number of characters that were consumed, or -1 if the entity is incomplete.\n\t*/\n\tstateNumericDecimal(input, offset) {\n\t\twhile (offset < input.length) {\n\t\t\tconst char = input.charCodeAt(offset);\n\t\t\tif (isNumber(char)) {\n\t\t\t\tthis.result = this.result * 10 + (char - CharCodes.ZERO);\n\t\t\t\tthis.consumed++;\n\t\t\t\toffset++;\n\t\t\t} else return this.emitNumericEntity(char, 2);\n\t\t}\n\t\treturn -1;\n\t}\n\t/**\n\t* Validate and emit a numeric entity.\n\t*\n\t* Implements the logic from the `Hexademical character reference start\n\t* state` and `Numeric character reference end state` in the HTML spec.\n\t* @param lastCp The last code point of the entity. Used to see if the\n\t* entity was terminated with a semicolon.\n\t* @param expectedLength The minimum number of characters that should be\n\t* consumed. Used to validate that at least one digit\n\t* was consumed.\n\t* @returns The number of characters that were consumed.\n\t*/\n\temitNumericEntity(lastCp, expectedLength) {\n\t\tif (this.consumed <= expectedLength) {\n\t\t\tvar _this$errors;\n\t\t\t(_this$errors = this.errors) === null || _this$errors === void 0 || _this$errors.absenceOfDigitsInNumericCharacterReference(this.consumed);\n\t\t\treturn 0;\n\t\t}\n\t\tif (lastCp === CharCodes.SEMI) this.consumed += 1;\n\t\telse if (this.decodeMode === DecodingMode.Strict) return 0;\n\t\tthis.emitCodePoint(replaceCodePoint(this.result), this.consumed);\n\t\tif (this.errors) {\n\t\t\tif (lastCp !== CharCodes.SEMI) this.errors.missingSemicolonAfterCharacterReference();\n\t\t\tthis.errors.validateNumericCharacterReference(this.result);\n\t\t}\n\t\treturn this.consumed;\n\t}\n\t/**\n\t* Parses a named entity.\n\t*\n\t* Equivalent to the `Named character reference state` in the HTML spec.\n\t* @param input The string containing the entity (or a continuation of the entity).\n\t* @param offset The current offset.\n\t* @returns The number of characters that were consumed, or -1 if the entity is incomplete.\n\t*/\n\tstateNamedEntity(input, offset) {\n\t\tconst { decodeTree } = this;\n\t\tlet current = decodeTree[this.treeIndex];\n\t\tlet valueLength = (current & BinTrieFlags.VALUE_LENGTH) >> 14;\n\t\twhile (offset < input.length) {\n\t\t\tif (valueLength === 0 && (current & BinTrieFlags.FLAG13) !== 0) {\n\t\t\t\tconst runLength = (current & BinTrieFlags.BRANCH_LENGTH) >> 7;\n\t\t\t\tif (this.runConsumed === 0) {\n\t\t\t\t\tconst firstChar = current & BinTrieFlags.JUMP_TABLE;\n\t\t\t\t\tif (input.charCodeAt(offset) !== firstChar) return this.result === 0 ? 0 : this.emitNotTerminatedNamedEntity();\n\t\t\t\t\toffset++;\n\t\t\t\t\tthis.excess++;\n\t\t\t\t\tthis.runConsumed++;\n\t\t\t\t}\n\t\t\t\twhile (this.runConsumed < runLength) {\n\t\t\t\t\tif (offset >= input.length) return -1;\n\t\t\t\t\tconst charIndexInPacked = this.runConsumed - 1;\n\t\t\t\t\tconst packedWord = decodeTree[this.treeIndex + 1 + (charIndexInPacked >> 1)];\n\t\t\t\t\tconst expectedChar = charIndexInPacked % 2 === 0 ? packedWord & 255 : packedWord >> 8 & 255;\n\t\t\t\t\tif (input.charCodeAt(offset) !== expectedChar) {\n\t\t\t\t\t\tthis.runConsumed = 0;\n\t\t\t\t\t\treturn this.result === 0 ? 0 : this.emitNotTerminatedNamedEntity();\n\t\t\t\t\t}\n\t\t\t\t\toffset++;\n\t\t\t\t\tthis.excess++;\n\t\t\t\t\tthis.runConsumed++;\n\t\t\t\t}\n\t\t\t\tthis.runConsumed = 0;\n\t\t\t\tthis.treeIndex += 1 + (runLength >> 1);\n\t\t\t\tcurrent = decodeTree[this.treeIndex];\n\t\t\t\tvalueLength = (current & BinTrieFlags.VALUE_LENGTH) >> 14;\n\t\t\t}\n\t\t\tif (offset >= input.length) break;\n\t\t\tconst char = input.charCodeAt(offset);\n\t\t\tif (char === CharCodes.SEMI && valueLength !== 0 && (current & BinTrieFlags.FLAG13) !== 0) return this.emitNamedEntityData(this.treeIndex, valueLength, this.consumed + this.excess);\n\t\t\tthis.treeIndex = determineBranch(decodeTree, current, this.treeIndex + Math.max(1, valueLength), char);\n\t\t\tif (this.treeIndex < 0) return this.result === 0 || this.decodeMode === DecodingMode.Attribute && (valueLength === 0 || isEntityInAttributeInvalidEnd(char)) ? 0 : this.emitNotTerminatedNamedEntity();\n\t\t\tcurrent = decodeTree[this.treeIndex];\n\t\t\tvalueLength = (current & BinTrieFlags.VALUE_LENGTH) >> 14;\n\t\t\tif (valueLength !== 0) {\n\t\t\t\tif (char === CharCodes.SEMI) return this.emitNamedEntityData(this.treeIndex, valueLength, this.consumed + this.excess);\n\t\t\t\tif (this.decodeMode !== DecodingMode.Strict && (current & BinTrieFlags.FLAG13) === 0) {\n\t\t\t\t\tthis.result = this.treeIndex;\n\t\t\t\t\tthis.consumed += this.excess;\n\t\t\t\t\tthis.excess = 0;\n\t\t\t\t}\n\t\t\t}\n\t\t\toffset++;\n\t\t\tthis.excess++;\n\t\t}\n\t\treturn -1;\n\t}\n\t/**\n\t* Emit a named entity that was not terminated with a semicolon.\n\t* @returns The number of characters consumed.\n\t*/\n\temitNotTerminatedNamedEntity() {\n\t\tvar _this$errors2;\n\t\tconst { result, decodeTree } = this;\n\t\tconst valueLength = (decodeTree[result] & BinTrieFlags.VALUE_LENGTH) >> 14;\n\t\tthis.emitNamedEntityData(result, valueLength, this.consumed);\n\t\t(_this$errors2 = this.errors) === null || _this$errors2 === void 0 || _this$errors2.missingSemicolonAfterCharacterReference();\n\t\treturn this.consumed;\n\t}\n\t/**\n\t* Emit a named entity.\n\t* @param result The index of the entity in the decode tree.\n\t* @param valueLength The number of bytes in the entity.\n\t* @param consumed The number of characters consumed.\n\t* @returns The number of characters consumed.\n\t*/\n\temitNamedEntityData(result, valueLength, consumed) {\n\t\tconst { decodeTree } = this;\n\t\tthis.emitCodePoint(valueLength === 1 ? decodeTree[result] & ~(BinTrieFlags.VALUE_LENGTH | BinTrieFlags.FLAG13) : decodeTree[result + 1], consumed);\n\t\tif (valueLength === 3) this.emitCodePoint(decodeTree[result + 2], consumed);\n\t\treturn consumed;\n\t}\n\t/**\n\t* Signal to the parser that the end of the input was reached.\n\t*\n\t* Remaining data will be emitted and relevant errors will be produced.\n\t* @returns The number of characters consumed.\n\t*/\n\tend() {\n\t\tswitch (this.state) {\n\t\t\tcase EntityDecoderState.NamedEntity: return this.result !== 0 && (this.decodeMode !== DecodingMode.Attribute || this.result === this.treeIndex) ? this.emitNotTerminatedNamedEntity() : 0;\n\t\t\tcase EntityDecoderState.NumericDecimal: return this.emitNumericEntity(0, 2);\n\t\t\tcase EntityDecoderState.NumericHex: return this.emitNumericEntity(0, 3);\n\t\t\tcase EntityDecoderState.NumericStart:\n\t\t\t\tvar _this$errors3;\n\t\t\t\t(_this$errors3 = this.errors) === null || _this$errors3 === void 0 || _this$errors3.absenceOfDigitsInNumericCharacterReference(this.consumed);\n\t\t\t\treturn 0;\n\t\t\tcase EntityDecoderState.EntityStart: return 0;\n\t\t}\n\t}\n};\n/**\n* Creates a function that decodes entities in a string.\n* @param decodeTree The decode tree.\n* @returns A function that decodes entities in a string.\n*/\nfunction getDecoder(decodeTree) {\n\tlet returnValue = \"\";\n\tconst decoder = new EntityDecoder(decodeTree, (data) => returnValue += String.fromCodePoint(data));\n\treturn function decodeWithTrie(input, decodeMode) {\n\t\tlet lastIndex = 0;\n\t\tlet offset = 0;\n\t\twhile ((offset = input.indexOf(\"&\", offset)) >= 0) {\n\t\t\treturnValue += input.slice(lastIndex, offset);\n\t\t\tdecoder.startEntity(decodeMode);\n\t\t\tconst length = decoder.write(input, offset + 1);\n\t\t\tif (length < 0) {\n\t\t\t\tlastIndex = offset + decoder.end();\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tlastIndex = offset + length;\n\t\t\toffset = length === 0 ? lastIndex + 1 : lastIndex;\n\t\t}\n\t\tconst result = returnValue + input.slice(lastIndex);\n\t\treturnValue = \"\";\n\t\treturn result;\n\t};\n}\n/**\n* Determines the branch of the current node that is taken given the current\n* character. This function is used to traverse the trie.\n* @param decodeTree The trie.\n* @param current The current node.\n* @param nodeIndex Index immediately after the current node header.\n* @param char The current character.\n* @returns The index of the next node, or -1 if no branch is taken.\n*/\nfunction determineBranch(decodeTree, current, nodeIndex, char) {\n\tconst branchCount = (current & BinTrieFlags.BRANCH_LENGTH) >> 7;\n\tconst jumpOffset = current & BinTrieFlags.JUMP_TABLE;\n\tif (branchCount === 0) return jumpOffset !== 0 && char === jumpOffset ? nodeIndex : -1;\n\tif (jumpOffset) {\n\t\tconst value = char - jumpOffset;\n\t\treturn value < 0 || value >= branchCount ? -1 : decodeTree[nodeIndex + value] - 1;\n\t}\n\tconst packedKeySlots = branchCount + 1 >> 1;\n\tlet lo = 0;\n\tlet hi = branchCount - 1;\n\twhile (lo <= hi) {\n\t\tconst mid = lo + hi >>> 1;\n\t\tconst midKey = decodeTree[nodeIndex + (mid >> 1)] >> (mid & 1) * 8 & 255;\n\t\tif (midKey < char) lo = mid + 1;\n\t\telse if (midKey > char) hi = mid - 1;\n\t\telse return decodeTree[nodeIndex + packedKeySlots + mid];\n\t}\n\treturn -1;\n}\nconst htmlDecoder = /* #__PURE__ */ getDecoder(htmlDecodeTree);\n/**\n* Decodes an HTML string.\n* @param htmlString The string to decode.\n* @param mode The decoding mode.\n* @returns The decoded string.\n*/\nfunction decodeHTML(htmlString, mode = DecodingMode.Legacy) {\n\treturn htmlDecoder(htmlString, mode);\n}\n//#endregion\n//#region node_modules/entities/dist/escape.js\nconst xmlCodeMap$1 = /* @__PURE__ */ new Map([\n\t[34, \"&quot;\"],\n\t[38, \"&amp;\"],\n\t[39, \"&apos;\"],\n\t[60, \"&lt;\"],\n\t[62, \"&gt;\"]\n]);\n/**\n* Read a code point at a given index.\n* @param input Input string to encode or decode.\n* @param index Current read position in the input string.\n*/\nconst getCodePoint$1 = typeof String.prototype.codePointAt === \"function\" ? (input, index) => input.codePointAt(index) : (c, index) => (c.charCodeAt(index) & 64512) === 55296 ? (c.charCodeAt(index) - 55296) * 1024 + c.charCodeAt(index + 1) - 56320 + 65536 : c.charCodeAt(index);\n/**\n* Bitset for ASCII characters that need to be escaped in XML.\n*/\nconst XML_BITSET_VALUE = 1342177476;\n/**\n* Encodes all non-ASCII characters, as well as characters not valid in XML\n* documents using XML entities. Uses a fast bitset scan instead of RegExp.\n*\n* If a character has no equivalent entity, a numeric hexadecimal reference\n* (eg. `&#xfc;`) will be used.\n* @param input Input string to encode or decode.\n*/\nfunction encodeXML$1(input) {\n\tlet out;\n\tlet last = 0;\n\tconst { length } = input;\n\tfor (let index = 0; index < length; index++) {\n\t\tconst char = input.charCodeAt(index);\n\t\tif (char < 128 && ((1342177476 >>> char & 1) === 0 || char >= 64 || char < 32)) continue;\n\t\tif (out === void 0) out = input.substring(0, index);\n\t\telse if (last !== index) out += input.substring(last, index);\n\t\tif (char < 64) {\n\t\t\tout += xmlCodeMap$1.get(char);\n\t\t\tlast = index + 1;\n\t\t\tcontinue;\n\t\t}\n\t\tconst cp = getCodePoint$1(input, index);\n\t\tout += `&#x${cp.toString(16)};`;\n\t\tif (cp !== char) index++;\n\t\tlast = index + 1;\n\t}\n\tif (out === void 0) return input;\n\tif (last < length) out += input.substr(last);\n\treturn out;\n}\n/**\n* Creates a function that escapes all characters matched by the given regular\n* expression using the given map of characters to escape to their entities.\n* @param regex Regular expression to match characters to escape.\n* @param map Map of characters to escape to their entities.\n* @returns Function that escapes all characters matched by the given regular\n* expression using the given map of characters to escape to their entities.\n*/\nfunction getEscaper$1(regex, map) {\n\treturn function escape(data) {\n\t\tlet match;\n\t\tlet lastIndex = 0;\n\t\tlet result = \"\";\n\t\twhile (match = regex.exec(data)) {\n\t\t\tif (lastIndex !== match.index) result += data.substring(lastIndex, match.index);\n\t\t\tresult += map.get(match[0].charCodeAt(0));\n\t\t\tlastIndex = match.index + 1;\n\t\t}\n\t\treturn result + data.substring(lastIndex);\n\t};\n}\n/**\n* Encodes all characters not valid in XML documents using XML entities.\n*\n* Note that the output will be character-set dependent.\n* @param data String to escape.\n*/\nconst escapeUTF8$1 = /* #__PURE__ */ getEscaper$1(/[\"&'<>]/g, xmlCodeMap$1);\n/**\n* Encodes all characters that have to be escaped in HTML attributes,\n* following {@link https://html.spec.whatwg.org/multipage/parsing.html#escapingString}.\n* @param data String to escape.\n*/\nconst escapeAttribute$1 = /* #__PURE__ */ getEscaper$1(/[\"&\\u00A0]/g, /* @__PURE__ */ new Map([\n\t[34, \"&quot;\"],\n\t[38, \"&amp;\"],\n\t[160, \"&nbsp;\"]\n]));\n/**\n* Encodes all characters that have to be escaped in HTML text,\n* following {@link https://html.spec.whatwg.org/multipage/parsing.html#escapingString}.\n* @param data String to escape.\n*/\nconst escapeText$1 = /* #__PURE__ */ getEscaper$1(/[&<>\\u00A0]/g, /* @__PURE__ */ new Map([\n\t[38, \"&amp;\"],\n\t[60, \"&lt;\"],\n\t[62, \"&gt;\"],\n\t[160, \"&nbsp;\"]\n]));\n//#endregion\n//#region node_modules/entities/dist/internal/encode-shared.js\n/**\n* Parse a compact encode trie string into a Map structure used for encoding.\n*\n* Format per entry (ascending code points using delta encoding):\n* <diffBase36>[&name;][{<children>}] -- diff omitted when 0\n* Where diff = currentKey - previousKey - 1 (first entry stores absolute key).\n* `&name;` is the entity value (already wrapped); a following `{` denotes children.\n* @param serialized Serialized text fragment to encode.\n*/\nfunction parseEncodeTrie(serialized) {\n\tconst top = /* @__PURE__ */ new Map();\n\tconst totalLength = serialized.length;\n\tlet cursor = 0;\n\tlet lastTopKey = -1;\n\tfunction readDiff() {\n\t\tconst start = cursor;\n\t\twhile (cursor < totalLength) {\n\t\t\tconst char = serialized.charAt(cursor);\n\t\t\tif ((char < \"0\" || char > \"9\") && (char < \"a\" || char > \"z\")) break;\n\t\t\tcursor++;\n\t\t}\n\t\tif (cursor === start) return 0;\n\t\treturn Number.parseInt(serialized.slice(start, cursor), 36);\n\t}\n\tfunction readEntity() {\n\t\tif (serialized[cursor] !== \"&\") throw new Error(`Child entry missing value near index ${cursor}`);\n\t\tconst start = cursor;\n\t\tconst end = serialized.indexOf(\";\", cursor + 1);\n\t\tif (end === -1) throw new Error(`Unterminated entity starting at index ${start}`);\n\t\tcursor = end + 1;\n\t\treturn serialized.slice(start, cursor);\n\t}\n\twhile (cursor < totalLength) {\n\t\tconst keyDiff = readDiff();\n\t\tconst key = lastTopKey === -1 ? keyDiff : lastTopKey + keyDiff + 1;\n\t\tlet value;\n\t\tif (serialized[cursor] === \"&\") value = readEntity();\n\t\tif (serialized[cursor] === \"{\") {\n\t\t\tcursor++;\n\t\t\tlet diff = readDiff();\n\t\t\tlet childKey = diff;\n\t\t\tconst firstValue = readEntity();\n\t\t\tif (serialized[cursor] === \"{\") throw new Error(\"Unexpected nested '{' beyond depth 2\");\n\t\t\tif (serialized[cursor] === \"}\") {\n\t\t\t\ttop.set(key, {\n\t\t\t\t\tvalue,\n\t\t\t\t\tnext: childKey,\n\t\t\t\t\tnextValue: firstValue\n\t\t\t\t});\n\t\t\t\tcursor++;\n\t\t\t} else {\n\t\t\t\tconst childMap = /* @__PURE__ */ new Map([[childKey, firstValue]]);\n\t\t\t\tlet lastChildKey = childKey;\n\t\t\t\twhile (cursor < totalLength && serialized[cursor] !== \"}\") {\n\t\t\t\t\tdiff = readDiff();\n\t\t\t\t\tchildKey = lastChildKey + diff + 1;\n\t\t\t\t\tconst childValue = readEntity();\n\t\t\t\t\tif (serialized[cursor] === \"{\") throw new Error(\"Unexpected nested '{' beyond depth 2\");\n\t\t\t\t\tchildMap.set(childKey, childValue);\n\t\t\t\t\tlastChildKey = childKey;\n\t\t\t\t}\n\t\t\t\tif (serialized[cursor] !== \"}\") throw new Error(\"Unterminated child block\");\n\t\t\t\tcursor++;\n\t\t\t\ttop.set(key, {\n\t\t\t\t\tvalue,\n\t\t\t\t\tnext: childMap\n\t\t\t\t});\n\t\t\t}\n\t\t} else if (value === void 0) throw new Error(`Malformed encode trie: missing value at index ${cursor}`);\n\t\telse top.set(key, value);\n\t\tlastTopKey = key;\n\t}\n\treturn top;\n}\n//#endregion\n//#region node_modules/entities/dist/generated/encode-html.js\n/** Compact serialized HTML encode trie (intended to stay small & JS engine friendly) */\n/** HTML entity encode trie. */\nconst htmlTrie = /* #__PURE__ */ parseEncodeTrie(\"9&Tab;&NewLine;m&excl;&quot;&num;&dollar;&percnt;&amp;&apos;&lpar;&rpar;&ast;&plus;&comma;1&period;&sol;a&colon;&semi;&lt;{6he&nvlt;}&equals;{6hx&bne;}&gt;{6he&nvgt;}&quest;&commat;q&lbrack;&bsol;&rbrack;&Hat;&lowbar;&DiacriticalGrave;5{2y&fjlig;}k&lbrace;&verbar;&rbrace;y&nbsp;&iexcl;&cent;&pound;&curren;&yen;&brvbar;&sect;&die;&copy;&ordf;&laquo;&not;&shy;&circledR;&macr;&deg;&PlusMinus;&sup2;&sup3;&acute;&micro;&para;&centerdot;&cedil;&sup1;&ordm;&raquo;&frac14;&frac12;&frac34;&iquest;&Agrave;&Aacute;&Acirc;&Atilde;&Auml;&angst;&AElig;&Ccedil;&Egrave;&Eacute;&Ecirc;&Euml;&Igrave;&Iacute;&Icirc;&Iuml;&ETH;&Ntilde;&Ograve;&Oacute;&Ocirc;&Otilde;&Ouml;&times;&Oslash;&Ugrave;&Uacute;&Ucirc;&Uuml;&Yacute;&THORN;&szlig;&agrave;&aacute;&acirc;&atilde;&auml;&aring;&aelig;&ccedil;&egrave;&eacute;&ecirc;&euml;&igrave;&iacute;&icirc;&iuml;&eth;&ntilde;&ograve;&oacute;&ocirc;&otilde;&ouml;&div;&oslash;&ugrave;&uacute;&ucirc;&uuml;&yacute;&thorn;&yuml;&Amacr;&amacr;&Abreve;&abreve;&Aogon;&aogon;&Cacute;&cacute;&Ccirc;&ccirc;&Cdot;&cdot;&Ccaron;&ccaron;&Dcaron;&dcaron;&Dstrok;&dstrok;&Emacr;&emacr;2&Edot;&edot;&Eogon;&eogon;&Ecaron;&ecaron;&Gcirc;&gcirc;&Gbreve;&gbreve;&Gdot;&gdot;&Gcedil;1&Hcirc;&hcirc;&Hstrok;&hstrok;&Itilde;&itilde;&Imacr;&imacr;2&Iogon;&iogon;&Idot;&imath;&IJlig;&ijlig;&Jcirc;&jcirc;&Kcedil;&kcedil;&kgreen;&Lacute;&lacute;&Lcedil;&lcedil;&Lcaron;&lcaron;&Lmidot;&lmidot;&Lstrok;&lstrok;&Nacute;&nacute;&Ncedil;&ncedil;&Ncaron;&ncaron;&napos;&ENG;&eng;&Omacr;&omacr;2&Odblac;&odblac;&OElig;&oelig;&Racute;&racute;&Rcedil;&rcedil;&Rcaron;&rcaron;&Sacute;&sacute;&Scirc;&scirc;&Scedil;&scedil;&Scaron;&scaron;&Tcedil;&tcedil;&Tcaron;&tcaron;&Tstrok;&tstrok;&Utilde;&utilde;&Umacr;&umacr;&Ubreve;&ubreve;&Uring;&uring;&Udblac;&udblac;&Uogon;&uogon;&Wcirc;&wcirc;&Ycirc;&ycirc;&Yuml;&Zacute;&zacute;&Zdot;&zdot;&Zcaron;&zcaron;j&fnof;y&imped;1r&gacute;1t&jmath;3y&circ;&caron;g&breve;&DiacriticalDot;&ring;&ogon;&DiacriticalTilde;&dblac;1f&DownBreve;3j&Alpha;&Beta;&Gamma;&Delta;&Epsilon;&Zeta;&Eta;&Theta;&Iota;&Kappa;&Lambda;&Mu;&Nu;&Xi;&Omicron;&Pi;&Rho;1&Sigma;&Tau;&Upsilon;&Phi;&Chi;&Psi;&ohm;7&alpha;&beta;&gamma;&delta;&epsi;&zeta;&eta;&theta;&iota;&kappa;&lambda;&mu;&nu;&xi;&omicron;&pi;&rho;&sigmaf;&sigma;&tau;&upsi;&phi;&chi;&psi;&omega;7&thetasym;&Upsi;2&phiv;&piv;5&Gammad;&digamma;i&kappav;&rhov;3&epsiv;&backepsilon;a&IOcy;&DJcy;&GJcy;&Jukcy;&DScy;&Iukcy;&YIcy;&Jsercy;&LJcy;&NJcy;&TSHcy;&KJcy;1&Ubrcy;&DZcy;&Acy;&Bcy;&Vcy;&Gcy;&Dcy;&IEcy;&ZHcy;&Zcy;&Icy;&Jcy;&Kcy;&Lcy;&Mcy;&Ncy;&Ocy;&Pcy;&Rcy;&Scy;&Tcy;&Ucy;&Fcy;&KHcy;&TScy;&CHcy;&SHcy;&SHCHcy;&HARDcy;&Ycy;&SOFTcy;&Ecy;&YUcy;&YAcy;&acy;&bcy;&vcy;&gcy;&dcy;&iecy;&zhcy;&zcy;&icy;&jcy;&kcy;&lcy;&mcy;&ncy;&ocy;&pcy;&rcy;&scy;&tcy;&ucy;&fcy;&khcy;&tscy;&chcy;&shcy;&shchcy;&hardcy;&ycy;&softcy;&ecy;&yucy;&yacy;1&iocy;&djcy;&gjcy;&jukcy;&dscy;&iukcy;&yicy;&jsercy;&ljcy;&njcy;&tshcy;&kjcy;1&ubrcy;&dzcy;5gi&ensp;&emsp;&emsp13;&emsp14;1&numsp;&puncsp;&ThinSpace;&hairsp;&NegativeMediumSpace;&zwnj;&zwj;&lrm;&rlm;&dash;2&ndash;&mdash;&horbar;&Verbar;1&lsquo;&CloseCurlyQuote;&lsquor;1&ldquo;&CloseCurlyDoubleQuote;&bdquo;1&dagger;&Dagger;&bull;2&nldr;&hellip;9&permil;&pertenk;&prime;&Prime;&tprime;&backprime;3&lsaquo;&rsaquo;3&oline;2&caret;1&hybull;&frasl;a&bsemi;7&qprime;7&MediumSpace;{6bu&ThickSpace;}&NoBreak;&af;&InvisibleTimes;&ic;20&euro;1a&tdot;&DotDot;11&complexes;2&incare;4&gscr;&hamilt;&Hfr;&Hopf;&planckh;&hbar;&imagline;&Ifr;&lagran;&ell;1&naturals;&numero;&copysr;&weierp;&Popf;&Qopf;&realine;&real;&reals;&rx;3&trade;1&integers;2&mho;&zeetrf;&iiota;2&bernou;&Cayleys;1&escr;&Escr;&Fouriertrf;1&Mellintrf;&order;&alefsym;&beth;&gimel;&daleth;c&CapitalDifferentialD;&dd;&ee;&ii;a&frac13;&frac23;&frac15;&frac25;&frac35;&frac45;&frac16;&frac56;&frac18;&frac38;&frac58;&frac78;1d&larr;&ShortUpArrow;&rarr;&darr;&harr;&updownarrow;&nwarr;&nearr;&LowerRightArrow;&LowerLeftArrow;&nlarr;&nrarr;1&rarrw;{mw&nrarrw;}&Larr;&Uarr;&Rarr;&Darr;&larrtl;&rarrtl;&LeftTeeArrow;&mapstoup;&map;&DownTeeArrow;1&hookleftarrow;&hookrightarrow;&larrlp;&looparrowright;&harrw;&nharr;1&lsh;&rsh;&ldsh;&rdsh;1&crarr;&cularr;&curarr;2&circlearrowleft;&circlearrowright;&leftharpoonup;&DownLeftVector;&RightUpVector;&LeftUpVector;&rharu;&DownRightVector;&dharr;&dharl;&RightArrowLeftArrow;&udarr;&LeftArrowRightArrow;&leftleftarrows;&upuparrows;&rightrightarrows;&ddarr;&leftrightharpoons;&Equilibrium;&nlArr;&nhArr;&nrArr;&DoubleLeftArrow;&DoubleUpArrow;&DoubleRightArrow;&dArr;&DoubleLeftRightArrow;&DoubleUpDownArrow;&nwArr;&neArr;&seArr;&swArr;&lAarr;&rAarr;1&zigrarr;6&larrb;&rarrb;f&DownArrowUpArrow;7&loarr;&roarr;&hoarr;&forall;&comp;&part;{mw&npart;}&exist;&nexist;&empty;1&Del;&Element;&NotElement;1&ni;&notni;2&prod;&coprod;&sum;&minus;&MinusPlus;&dotplus;1&Backslash;&lowast;&compfn;1&radic;2&prop;&infin;&angrt;&ang;{6he&nang;}&angmsd;&angsph;&mid;&nmid;&DoubleVerticalBar;&NotDoubleVerticalBar;&and;&or;&cap;{1e68&caps;}&cup;{1e68&cups;}&int;&Int;&iiint;&conint;&Conint;&Cconint;&cwint;&ClockwiseContourIntegral;&awconint;&there4;&becaus;&ratio;&Colon;&dotminus;1&mDDot;&homtht;&sim;{6he&nvsim;}&backsim;{mp&race;}&ac;{mr&acE;}&acd;&VerticalTilde;&NotTilde;&eqsim;{mw&nesim;}&sime;&NotTildeEqual;&cong;&simne;&ncong;&ap;&nap;&ape;&apid;{mw&napid;}&backcong;&asympeq;{6he&nvap;}&bump;{mw&nbump;}&bumpe;{mw&nbumpe;}&doteq;{mw&nedot;}&doteqdot;&efDot;&erDot;&Assign;&ecolon;&ecir;&circeq;1&wedgeq;&veeeq;1&triangleq;2&equest;&ne;&Congruent;{6hx&bnequiv;}&nequiv;1&le;{6he&nvle;}&ge;{6he&nvge;}&lE;{mw&nlE;}&gE;{mw&ngE;}&lnE;{1e68&lvertneqq;}&gnE;{1e68&gvertneqq;}&ll;{mw&nLtv;5uh&nLt;}&gg;{mw&nGtv;5uh&nGt;}&between;&NotCupCap;&nless;&ngt;&nle;&nge;&lesssim;&GreaterTilde;&nlsim;&ngsim;&LessGreater;&gl;&NotLessGreater;&NotGreaterLess;&pr;&sc;&prcue;&sccue;&PrecedesTilde;&scsim;{mw&NotSucceedsTilde;}&NotPrecedes;&NotSucceeds;&sub;{6he&NotSubset;}&sup;{6he&NotSuperset;}&nsub;&nsup;&sube;&supe;&NotSubsetEqual;&NotSupersetEqual;&subne;{1e68&varsubsetneq;}&supne;{1e68&varsupsetneq;}1&cupdot;&UnionPlus;&sqsub;{mw&NotSquareSubset;}&sqsup;{mw&NotSquareSuperset;}&sqsube;&sqsupe;&sqcap;{1e68&sqcaps;}&sqcup;{1e68&sqcups;}&CirclePlus;&CircleMinus;&CircleTimes;&osol;&CircleDot;&circledcirc;&circledast;1&circleddash;&boxplus;&boxminus;&boxtimes;&dotsquare;&RightTee;&dashv;&DownTee;&bot;1&models;&DoubleRightTee;&Vdash;&Vvdash;&VDash;&nvdash;&nvDash;&nVdash;&nVDash;&prurel;1&LeftTriangle;&RightTriangle;&LeftTriangleEqual;{6he&nvltrie;}&RightTriangleEqual;{6he&nvrtrie;}&origof;&imof;&multimap;&hercon;&intcal;&veebar;1&barvee;&angrtvb;&lrtri;&bigwedge;&bigvee;&bigcap;&bigcup;&diam;&sdot;&sstarf;&divideontimes;&bowtie;&ltimes;&rtimes;&leftthreetimes;&rightthreetimes;&backsimeq;&curlyvee;&curlywedge;&Sub;&Sup;&Cap;&Cup;&fork;&epar;&lessdot;&gtdot;&Ll;{mw&nLl;}&Gg;{mw&nGg;}&leg;{1e68&lesg;}&gel;{1e68&gesl;}2&cuepr;&cuesc;&NotPrecedesSlantEqual;&NotSucceedsSlantEqual;&NotSquareSubsetEqual;&NotSquareSupersetEqual;2&lnsim;&gnsim;&precnsim;&scnsim;&nltri;&NotRightTriangle;&nltrie;&NotRightTriangleEqual;&vellip;&ctdot;&utdot;&dtdot;&disin;&isinsv;&isins;&isindot;{mw&notindot;}&notinvc;&notinvb;1&isinE;{mw&notinE;}&nisd;&xnis;&nis;&notnivc;&notnivb;6&barwed;&Barwed;1&lceil;&rceil;&LeftFloor;&rfloor;&drcrop;&dlcrop;&urcrop;&ulcrop;&bnot;1&profline;&profsurf;1&telrec;&target;5&ulcorn;&urcorn;&dlcorn;&drcorn;2&frown;&smile;9&cylcty;&profalar;7&topbot;6&ovbar;1&solbar;1o&angzarr;1f&lmoustache;&rmoustache;2&OverBracket;&bbrk;&bbrktbrk;11&OverParenthesis;&UnderParenthesis;&OverBrace;&UnderBrace;2&trpezium;4&elinters;1n&blank;4k&circledS;1j&boxh;1&boxv;9&boxdr;3&boxdl;3&boxur;3&boxul;3&boxvr;7&boxvl;7&boxhd;7&boxhu;7&boxvh;j&boxH;&boxV;&boxdR;&boxDr;&boxDR;&boxdL;&boxDl;&boxDL;&boxuR;&boxUr;&boxUR;&boxuL;&boxUl;&boxUL;&boxvR;&boxVr;&boxVR;&boxvL;&boxVl;&boxVL;&boxHd;&boxhD;&boxHD;&boxHu;&boxhU;&boxHU;&boxvH;&boxVh;&boxVH;j&uhblk;3&lhblk;3&block;8&blk14;&blk12;&blk34;d&square;8&blacksquare;&EmptyVerySmallSquare;1&rect;&marker;2&fltns;1&bigtriangleup;&blacktriangle;&triangle;2&blacktriangleright;&rtri;3&bigtriangledown;&blacktriangledown;&dtri;2&blacktriangleleft;&ltri;6&loz;&cir;w&tridot;2&bigcirc;8&ultri;&urtri;&lltri;&EmptySmallSquare;&FilledSmallSquare;8&bigstar;&star;7&phone;1d&female;1&male;t&spades;2&clubs;1&hearts;&diamondsuit;3&sung;2&flat;&natural;&sharp;4j&check;3&cross;8&malt;l&sext;x&VerticalSeparator;p&lbbrk;&rbbrk;2c&bsolhsub;&suphsol;s&LeftDoubleBracket;&RightDoubleBracket;&lang;&rang;&Lang;&Rang;&loang;&roang;7&longleftarrow;&longrightarrow;&longleftrightarrow;&DoubleLongLeftArrow;&DoubleLongRightArrow;&DoubleLongLeftRightArrow;1&longmapsto;2&dzigrarr;76&nvlArr;&nvrArr;&nvHarr;&Map;6&lbarr;&bkarow;&lBarr;&dbkarow;&drbkarow;&DDotrahd;&UpArrowBar;&DownArrowBar;2&Rarrtl;2&latail;&ratail;&lAtail;&rAtail;&larrfs;&rarrfs;&larrbfs;&rarrbfs;2&nwarhk;&nearhk;&hksearow;&hkswarow;&nwnear;&nesear;&seswar;&swnwar;8&rarrc;{mw&nrarrc;}1&cudarrr;&ldca;&rdca;&cudarrl;&larrpl;2&curarrm;&cularrp;7&rarrpl;2&harrcir;&Uarrocir;&lurdshar;&ldrushar;2&LeftRightVector;&RightUpDownVector;&DownLeftRightVector;&LeftUpDownVector;&LeftVectorBar;&RightVectorBar;&RightUpVectorBar;&RightDownVectorBar;&DownLeftVectorBar;&DownRightVectorBar;&LeftUpVectorBar;&LeftDownVectorBar;&LeftTeeVector;&RightTeeVector;&RightUpTeeVector;&RightDownTeeVector;&DownLeftTeeVector;&DownRightTeeVector;&LeftUpTeeVector;&LeftDownTeeVector;&lHar;&uHar;&rHar;&dHar;&luruhar;&ldrdhar;&ruluhar;&rdldhar;&lharul;&llhard;&rharul;&lrhard;&udhar;&duhar;&RoundImplies;&erarr;&simrarr;&larrsim;&rarrsim;&rarrap;&ltlarr;1&gtrarr;&subrarr;1&suplarr;&lfisht;&rfisht;&ufisht;&dfisht;5&lopar;&ropar;4&lbrke;&rbrke;&lbrkslu;&rbrksld;&lbrksld;&rbrkslu;&langd;&rangd;&lparlt;&rpargt;&gtlPar;&ltrPar;3&vzigzag;1&vangrt;&angrtvbd;6&ange;&range;&dwangle;&uwangle;&angmsdaa;&angmsdab;&angmsdac;&angmsdad;&angmsdae;&angmsdaf;&angmsdag;&angmsdah;&bemptyv;&demptyv;&cemptyv;&raemptyv;&laemptyv;&ohbar;&omid;&opar;1&operp;1&olcross;&odsold;1&olcir;&ofcir;&olt;&ogt;&cirscir;&cirE;&solb;&bsolb;3&boxbox;3&trisb;&rtriltri;&LeftTriangleBar;{mw&NotLeftTriangleBar;}&RightTriangleBar;{mw&NotRightTriangleBar;}b&iinfin;&infintie;&nvinfin;4&eparsl;&smeparsl;&eqvparsl;5&blacklozenge;8&RuleDelayed;1&dsol;9&bigodot;&bigoplus;&bigotimes;1&biguplus;1&bigsqcup;5&iiiint;&fpartint;2&cirfnint;&awint;&rppolint;&scpolint;&npolint;&pointint;&quatint;&intlarhk;a&pluscir;&plusacir;&simplus;&plusdu;&plussim;&plustwo;1&mcomma;&minusdu;2&loplus;&roplus;&Cross;&timesd;&timesbar;1&smashp;&lotimes;&rotimes;&otimesas;&Otimes;&odiv;&triplus;&triminus;&tritime;&intprod;2&amalg;&capdot;1&ncup;&ncap;&capand;&cupor;&cupcap;&capcup;&cupbrcap;&capbrcup;&cupcup;&capcap;&ccups;&ccaps;2&ccupssm;2&And;&Or;&andand;&oror;&orslope;&andslope;1&andv;&orv;&andd;&ord;1&wedbar;6&sdote;3&simdot;2&congdot;{mw&ncongdot;}&easter;&apacir;&apE;{mw&napE;}&eplus;&pluse;&Esim;&Colone;&Equal;1&ddotseq;&equivDD;&ltcir;&gtcir;&ltquest;&gtquest;&leqslant;{mw&nleqslant;}&geqslant;{mw&ngeqslant;}&lesdot;&gesdot;&lesdoto;&gesdoto;&lesdotor;&gesdotol;&lap;&gap;&lne;&gne;&lnap;&gnap;&lEg;&gEl;&lsime;&gsime;&lsimg;&gsiml;&lgE;&glE;&lesges;&gesles;&els;&egs;&elsdot;&egsdot;&el;&eg;2&siml;&simg;&simlE;&simgE;&LessLess;{mw&NotNestedLessLess;}&GreaterGreater;{mw&NotNestedGreaterGreater;}1&glj;&gla;&ltcc;&gtcc;&lescc;&gescc;&smt;&lat;&smte;{1e68&smtes;}&late;{1e68&lates;}&bumpE;&PrecedesEqual;{mw&NotPrecedesEqual;}&sce;{mw&NotSucceedsEqual;}2&prE;&scE;&precneqq;&scnE;&prap;&scap;&precnapprox;&scnap;&Pr;&Sc;&subdot;&supdot;&subplus;&supplus;&submult;&supmult;&subedot;&supedot;&subE;{mw&nsubE;}&supE;{mw&nsupE;}&subsim;&supsim;2&subnE;{1e68&varsubsetneqq;}&supnE;{1e68&varsupsetneqq;}2&csub;&csup;&csube;&csupe;&subsup;&supsub;&subsub;&supsup;&suphsub;&supdsub;&forkv;&topfork;&mlcp;8&Dashv;1&Vdashl;&Barv;&vBar;&vBarv;1&Vbar;&Not;&bNot;&rnmid;&cirmid;&midcir;&topcir;&nhpar;&parsim;9&parsl;{6hx&nparsl;}y7r{17ks&Ascr;1&Cscr;&Dscr;2&Gscr;2&Jscr;&Kscr;2&Nscr;&Oscr;&Pscr;&Qscr;1&Sscr;&Tscr;&Uscr;&Vscr;&Wscr;&Xscr;&Yscr;&Zscr;&ascr;&bscr;&cscr;&dscr;1&fscr;1&hscr;&iscr;&jscr;&kscr;&lscr;&mscr;&nscr;1&pscr;&qscr;&rscr;&sscr;&tscr;&uscr;&vscr;&wscr;&xscr;&yscr;&zscr;1g&Afr;&Bfr;1&Dfr;&Efr;&Ffr;&Gfr;2&Jfr;&Kfr;&Lfr;&Mfr;&Nfr;&Ofr;&Pfr;&Qfr;1&Sfr;&Tfr;&Ufr;&Vfr;&Wfr;&Xfr;&Yfr;1&afr;&bfr;&cfr;&dfr;&efr;&ffr;&gfr;&hfr;&ifr;&jfr;&kfr;&lfr;&mfr;&nfr;&ofr;&pfr;&qfr;&rfr;&sfr;&tfr;&ufr;&vfr;&wfr;&xfr;&yfr;&zfr;&Aopf;&Bopf;1&Dopf;&Eopf;&Fopf;&Gopf;1&Iopf;&Jopf;&Kopf;&Lopf;&Mopf;1&Oopf;3&Sopf;&Topf;&Uopf;&Vopf;&Wopf;&Xopf;&Yopf;1&aopf;&bopf;&copf;&dopf;&eopf;&fopf;&gopf;&hopf;&iopf;&jopf;&kopf;&lopf;&mopf;&nopf;&oopf;&popf;&qopf;&ropf;&sopf;&topf;&uopf;&vopf;&wopf;&xopf;&yopf;&zopf;}6ve&fflig;&filig;&fllig;&ffilig;&ffllig;\");\n//#endregion\n//#region node_modules/entities/dist/encode.js\n/**\n* We store the characters to consider as a compact bitset for fast lookups.\n*/\nconst HTML_BITSET = /* #__PURE__ */ new Uint32Array([\n\t5632,\n\t4227923966,\n\t4160749569,\n\t939524097\n]);\nconst XML_BITSET = /* #__PURE__ */ new Uint32Array([\n\t0,\n\tXML_BITSET_VALUE,\n\t0,\n\t0\n]);\n/**\n* Encodes all characters in the input using HTML entities. This includes\n* characters that are valid ASCII characters in HTML documents, such as `#`.\n*\n* To get a more compact output, consider using the `encodeNonAsciiHTML`\n* function, which will only encode characters that are not valid in HTML\n* documents, as well as non-ASCII characters.\n*\n* If a character has no equivalent entity, a numeric hexadecimal reference\n* (eg. `&#xfc;`) will be used.\n* @param input Input string to encode or decode.\n*/\nfunction encodeHTML(input) {\n\treturn encodeHTMLTrieRe(HTML_BITSET, input);\n}\n/**\n* Encodes all non-ASCII characters, as well as characters not valid in HTML\n* documents using HTML entities. This function will not encode characters that\n* are valid in HTML documents, such as `#`.\n*\n* If a character has no equivalent entity, a numeric hexadecimal reference\n* (eg. `&#xfc;`) will be used.\n* @param input Input string to encode or decode.\n*/\nfunction encodeNonAsciiHTML(input) {\n\treturn encodeHTMLTrieRe(XML_BITSET, input);\n}\nfunction encodeHTMLTrieRe(bitset, input) {\n\tlet out;\n\tlet last = 0;\n\tconst { length } = input;\n\tfor (let index = 0; index < length; index++) {\n\t\tconst char = input.charCodeAt(index);\n\t\tif (char < 128 && !(bitset[char >>> 5] >>> char & 1)) continue;\n\t\tif (out === void 0) out = input.substring(0, index);\n\t\telse if (last !== index) out += input.substring(last, index);\n\t\tlet node = htmlTrie.get(char);\n\t\tif (typeof node === \"object\") {\n\t\t\tif (index + 1 < length) {\n\t\t\t\tconst nextChar = input.charCodeAt(index + 1);\n\t\t\t\tconst value = typeof node.next === \"number\" ? node.next === nextChar ? node.nextValue : void 0 : node.next.get(nextChar);\n\t\t\t\tif (value !== void 0) {\n\t\t\t\t\tout += value;\n\t\t\t\t\tindex++;\n\t\t\t\t\tlast = index + 1;\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t}\n\t\t\tnode = node.value;\n\t\t}\n\t\tif (node === void 0) {\n\t\t\tconst cp = getCodePoint$1(input, index);\n\t\t\tout += `&#x${cp.toString(16)};`;\n\t\t\tif (cp !== char) index++;\n\t\t\tlast = index + 1;\n\t\t} else {\n\t\t\tout += node;\n\t\t\tlast = index + 1;\n\t\t}\n\t}\n\tif (out === void 0) return input;\n\tif (last < length) out += input.substr(last);\n\treturn out;\n}\n//#endregion\n//#region node_modules/entities/dist/index.js\n/** The level of entities to support. */\nvar EntityLevel;\n(function(EntityLevel) {\n\t/** Support only XML entities. */\n\tEntityLevel[EntityLevel[\"XML\"] = 0] = \"XML\";\n\t/** Support HTML entities, which are a superset of XML entities. */\n\tEntityLevel[EntityLevel[\"HTML\"] = 1] = \"HTML\";\n})(EntityLevel || (EntityLevel = {}));\n/**\n* Encoding strategy used by `encode`.\n*/\nvar EncodingMode;\n(function(EncodingMode) {\n\t/**\n\t* The output is UTF-8 encoded. Only characters that need escaping within\n\t* XML will be escaped.\n\t*/\n\tEncodingMode[EncodingMode[\"UTF8\"] = 0] = \"UTF8\";\n\t/**\n\t* The output consists only of ASCII characters. Characters that need\n\t* escaping within HTML, and characters that aren't ASCII characters will\n\t* be escaped.\n\t*/\n\tEncodingMode[EncodingMode[\"ASCII\"] = 1] = \"ASCII\";\n\t/**\n\t* Encode all characters that have an equivalent entity, as well as all\n\t* characters that are not ASCII characters.\n\t*/\n\tEncodingMode[EncodingMode[\"Extensive\"] = 2] = \"Extensive\";\n\t/**\n\t* Encode all characters that have to be escaped in HTML attributes,\n\t* following {@link https://html.spec.whatwg.org/multipage/parsing.html#escapingString}.\n\t*/\n\tEncodingMode[EncodingMode[\"Attribute\"] = 3] = \"Attribute\";\n\t/**\n\t* Encode all characters that have to be escaped in HTML text,\n\t* following {@link https://html.spec.whatwg.org/multipage/parsing.html#escapingString}.\n\t*/\n\tEncodingMode[EncodingMode[\"Text\"] = 4] = \"Text\";\n})(EncodingMode || (EncodingMode = {}));\n/**\n* Encodes a string with entities.\n* @param input String to encode.\n* @param options Encoding options.\n*/\nfunction encode(input, options = EntityLevel.XML) {\n\tconst { mode = EncodingMode.Extensive, level = EntityLevel.XML } = typeof options === \"number\" ? { level: options } : options;\n\tswitch (mode) {\n\t\tcase EncodingMode.UTF8: return escapeUTF8$1(input);\n\t\tcase EncodingMode.Attribute: return escapeAttribute$1(input);\n\t\tcase EncodingMode.Text: return escapeText$1(input);\n\t\tcase EncodingMode.ASCII: return level === EntityLevel.HTML ? encodeNonAsciiHTML(input) : encodeXML$1(input);\n\t\tcase EncodingMode.Extensive:\n\t\tdefault: return level === EntityLevel.HTML ? encodeHTML(input) : encodeXML$1(input);\n\t}\n}\n//#endregion\n//#region src/nodes/node.ts\n/**\n* Node Class as base class for TextNode and HTMLElement.\n*/\nvar Node = class {\n\tconstructor(parentNode = null, range) {\n\t\tthis.parentNode = parentNode;\n\t\tthis.childNodes = [];\n\t\tObject.defineProperty(this, \"range\", {\n\t\t\tenumerable: false,\n\t\t\twritable: true,\n\t\t\tconfigurable: true,\n\t\t\tvalue: range !== null && range !== void 0 ? range : [-1, -1]\n\t\t});\n\t}\n\t/**\n\t* Remove current node\n\t*/\n\tremove() {\n\t\tif (this.parentNode) {\n\t\t\tconst children = this.parentNode.childNodes;\n\t\t\tthis.parentNode.childNodes = children.filter((child) => {\n\t\t\t\treturn this !== child;\n\t\t\t});\n\t\t\tthis.parentNode = null;\n\t\t}\n\t\treturn this;\n\t}\n\tget innerText() {\n\t\treturn this.rawText;\n\t}\n\tget textContent() {\n\t\treturn decodeHTML(this.rawText);\n\t}\n\tset textContent(val) {\n\t\tthis.rawText = encode(val);\n\t}\n};\n//#endregion\n//#region src/nodes/type.ts\nvar NodeType = /* @__PURE__ */ function(NodeType) {\n\tNodeType[NodeType[\"ELEMENT_NODE\"] = 1] = \"ELEMENT_NODE\";\n\tNodeType[NodeType[\"TEXT_NODE\"] = 3] = \"TEXT_NODE\";\n\tNodeType[NodeType[\"COMMENT_NODE\"] = 8] = \"COMMENT_NODE\";\n\treturn NodeType;\n}(NodeType || {});\n//#endregion\n//#region src/nodes/comment.ts\nvar CommentNode = class CommentNode extends Node {\n\tclone() {\n\t\treturn new CommentNode(this.rawText, null, void 0, this.rawTagName);\n\t}\n\tconstructor(rawText, parentNode = null, range, rawTagName = \"!--\") {\n\t\tsuper(parentNode, range);\n\t\tthis.rawText = rawText;\n\t\tthis.rawTagName = rawTagName;\n\t\tthis.nodeType = 8;\n\t}\n\t/**\n\t* Get unescaped text value of current node and its children.\n\t* @return {string} text content\n\t*/\n\tget text() {\n\t\treturn this.rawText;\n\t}\n\ttoString() {\n\t\treturn `<!--${this.rawText}-->`;\n\t}\n};\n//#endregion\n//#region node_modules/domelementtype/lib/esm/index.js\n/** Types of elements found in htmlparser2's DOM */\nvar ElementType;\n(function(ElementType) {\n\t/** Type for the root element of a document */\n\tElementType[\"Root\"] = \"root\";\n\t/** Type for Text */\n\tElementType[\"Text\"] = \"text\";\n\t/** Type for <? ... ?> */\n\tElementType[\"Directive\"] = \"directive\";\n\t/** Type for <!-- ... --> */\n\tElementType[\"Comment\"] = \"comment\";\n\t/** Type for <script> tags */\n\tElementType[\"Script\"] = \"script\";\n\t/** Type for <style> tags */\n\tElementType[\"Style\"] = \"style\";\n\t/** Type for Any tag */\n\tElementType[\"Tag\"] = \"tag\";\n\t/** Type for <![CDATA[ ... ]]> */\n\tElementType[\"CDATA\"] = \"cdata\";\n\t/** Type for <!doctype ...> */\n\tElementType[\"Doctype\"] = \"doctype\";\n})(ElementType || (ElementType = {}));\n/**\n* Tests whether an element is a tag or not.\n*\n* @param elem Element to test\n*/\nfunction isTag$2(elem) {\n\treturn elem.type === ElementType.Tag || elem.type === ElementType.Script || elem.type === ElementType.Style;\n}\n/** Type for the root element of a document */\nconst Root = ElementType.Root;\n/** Type for Text */\nconst Text = ElementType.Text;\n/** Type for <? ... ?> */\nconst Directive = ElementType.Directive;\n/** Type for <!-- ... --> */\nconst Comment = ElementType.Comment;\n/** Type for <script> tags */\nconst Script = ElementType.Script;\n/** Type for <style> tags */\nconst Style = ElementType.Style;\n/** Type for Any tag */\nconst Tag = ElementType.Tag;\n/** Type for <![CDATA[ ... ]]> */\nconst CDATA = ElementType.CDATA;\n/** Type for <!doctype ...> */\nconst Doctype = ElementType.Doctype;\n//#endregion\n//#region \\0@oxc-project+runtime@0.138.0/helpers/esm/typeof.js\nfunction _typeof(o) {\n\t\"@babel/helpers - typeof\";\n\treturn _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function(o) {\n\t\treturn typeof o;\n\t} : function(o) {\n\t\treturn o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o;\n\t}, _typeof(o);\n}\n//#endregion\n//#region \\0@oxc-project+runtime@0.138.0/helpers/esm/toPrimitive.js\nfunction toPrimitive(t, r) {\n\tif (\"object\" != _typeof(t) || !t) return t;\n\tvar e = t[Symbol.toPrimitive];\n\tif (void 0 !== e) {\n\t\tvar i = e.call(t, r || \"default\");\n\t\tif (\"object\" != _typeof(i)) return i;\n\t\tthrow new TypeError(\"@@toPrimitive must return a primitive value.\");\n\t}\n\treturn (\"string\" === r ? String : Number)(t);\n}\n//#endregion\n//#region \\0@oxc-project+runtime@0.138.0/helpers/esm/toPropertyKey.js\nfunction toPropertyKey(t) {\n\tvar i = toPrimitive(t, \"string\");\n\treturn \"symbol\" == _typeof(i) ? i : i + \"\";\n}\n//#endregion\n//#region \\0@oxc-project+runtime@0.138.0/helpers/esm/defineProperty.js\nfunction _defineProperty(e, r, t) {\n\treturn (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {\n\t\tvalue: t,\n\t\tenumerable: !0,\n\t\tconfigurable: !0,\n\t\twritable: !0\n\t}) : e[r] = t, e;\n}\n//#endregion\n//#region \\0@oxc-project+runtime@0.138.0/helpers/esm/objectSpread2.js\nfunction ownKeys(e, r) {\n\tvar t = Object.keys(e);\n\tif (Object.getOwnPropertySymbols) {\n\t\tvar o = Object.getOwnPropertySymbols(e);\n\t\tr && (o = o.filter(function(r) {\n\t\t\treturn Object.getOwnPropertyDescriptor(e, r).enumerable;\n\t\t})), t.push.apply(t, o);\n\t}\n\treturn t;\n}\nfunction _objectSpread2(e) {\n\tfor (var r = 1; r < arguments.length; r++) {\n\t\tvar t = null != arguments[r] ? arguments[r] : {};\n\t\tr % 2 ? ownKeys(Object(t), !0).forEach(function(r) {\n\t\t\t_defineProperty(e, r, t[r]);\n\t\t}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function(r) {\n\t\t\tObject.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));\n\t\t});\n\t}\n\treturn e;\n}\n//#endregion\n//#region node_modules/domhandler/lib/esm/node.js\n/**\n* @param node Node to check.\n* @returns `true` if the node is a `Element`, `false` otherwise.\n*/\nfunction isTag$1(node) {\n\treturn isTag$2(node);\n}\n/**\n* @param node Node to check.\n* @returns `true` if the node has the type `CDATA`, `false` otherwise.\n*/\nfunction isCDATA(node) {\n\treturn node.type === ElementType.CDATA;\n}\n/**\n* @param node Node to check.\n* @returns `true` if the node has the type `Text`, `false` otherwise.\n*/\nfunction isText(node) {\n\treturn node.type === ElementType.Text;\n}\n/**\n* @param node Node to check.\n* @returns `true` if the node has the type `Comment`, `false` otherwise.\n*/\nfunction isComment(node) {\n\treturn node.type === ElementType.Comment;\n}\n/**\n* @param node Node to check.\n* @returns `true` if the node has the type `ProcessingInstruction`, `false` otherwise.\n*/\nfunction isDocument(node) {\n\treturn node.type === ElementType.Root;\n}\n/**\n* @param node Node to check.\n* @returns `true` if the node has children, `false` otherwise.\n*/\nfunction hasChildren(node) {\n\treturn Object.prototype.hasOwnProperty.call(node, \"children\");\n}\n//#endregion\n//#region node_modules/dom-serializer/node_modules/entities/lib/esm/escape.js\nconst xmlReplacer = /[\"&'<>$\\x80-\\uFFFF]/g;\nconst xmlCodeMap = /* @__PURE__ */ new Map([\n\t[34, \"&quot;\"],\n\t[38, \"&amp;\"],\n\t[39, \"&apos;\"],\n\t[60, \"&lt;\"],\n\t[62, \"&gt;\"]\n]);\nconst getCodePoint = String.prototype.codePointAt != null ? (str, index) => str.codePointAt(index) : (c, index) => (c.charCodeAt(index) & 64512) === 55296 ? (c.charCodeAt(index) - 55296) * 1024 + c.charCodeAt(index + 1) - 56320 + 65536 : c.charCodeAt(index);\n/**\n* Encodes all non-ASCII characters, as well as characters not valid in XML\n* documents using XML entities.\n*\n* If a character has no equivalent entity, a\n* numeric hexadecimal reference (eg. `&#xfc;`) will be used.\n*/\nfunction encodeXML(str) {\n\tlet ret = \"\";\n\tlet lastIdx = 0;\n\tlet match;\n\twhile ((match = xmlReplacer.exec(str)) !== null) {\n\t\tconst i = match.index;\n\t\tconst char = str.charCodeAt(i);\n\t\tconst next = xmlCodeMap.get(char);\n\t\tif (next !== void 0) {\n\t\t\tret += str.substring(lastIdx, i) + next;\n\t\t\tlastIdx = i + 1;\n\t\t} else {\n\t\t\tret += `${str.substring(lastIdx, i)}&#x${getCodePoint(str, i).toString(16)};`;\n\t\t\tlastIdx = xmlReplacer.lastIndex += Number((char & 64512) === 55296);\n\t\t}\n\t}\n\treturn ret + str.substr(lastIdx);\n}\n/**\n* Creates a function that escapes all characters matched by the given regular\n* expression using the given map of characters to escape to their entities.\n*\n* @param regex Regular expression to match characters to escape.\n* @param map Map of characters to escape to their entities.\n*\n* @returns Function that escapes all characters matched by the given regular\n* expression using the given map of characters to escape to their entities.\n*/\nfunction getEscaper(regex, map) {\n\treturn function escape(data) {\n\t\tlet match;\n\t\tlet lastIdx = 0;\n\t\tlet result = \"\";\n\t\twhile (match = regex.exec(data)) {\n\t\t\tif (lastIdx !== match.index) result += data.substring(lastIdx, match.index);\n\t\t\tresult += map.get(match[0].charCodeAt(0));\n\t\t\tlastIdx = match.index + 1;\n\t\t}\n\t\treturn result + data.substring(lastIdx);\n\t};\n}\n/**\n* Encodes all characters that have to be escaped in HTML attributes,\n* following {@link https://html.spec.whatwg.org/multipage/parsing.html#escapingString}.\n*\n* @param data String to escape.\n*/\nconst escapeAttribute = getEscaper(/[\"&\\u00A0]/g, /* @__PURE__ */ new Map([\n\t[34, \"&quot;\"],\n\t[38, \"&amp;\"],\n\t[160, \"&nbsp;\"]\n]));\n/**\n* Encodes all characters that have to be escaped in HTML text,\n* following {@link https://html.spec.whatwg.org/multipage/parsing.html#escapingString}.\n*\n* @param data String to escape.\n*/\nconst escapeText = getEscaper(/[&<>\\u00A0]/g, /* @__PURE__ */ new Map([\n\t[38, \"&amp;\"],\n\t[60, \"&lt;\"],\n\t[62, \"&gt;\"],\n\t[160, \"&nbsp;\"]\n]));\n//#endregion\n//#region node_modules/dom-serializer/lib/esm/foreignNames.js\nconst elementNames = new Map([\n\t\"altGlyph\",\n\t\"altGlyphDef\",\n\t\"altGlyphItem\",\n\t\"animateColor\",\n\t\"animateMotion\",\n\t\"animateTransform\",\n\t\"clipPath\",\n\t\"feBlend\",\n\t\"feColorMatrix\",\n\t\"feComponentTransfer\",\n\t\"feComposite\",\n\t\"feConvolveMatrix\",\n\t\"feDiffuseLighting\",\n\t\"feDisplacementMap\",\n\t\"feDistantLight\",\n\t\"feDropShadow\",\n\t\"feFlood\",\n\t\"feFuncA\",\n\t\"feFuncB\",\n\t\"feFuncG\",\n\t\"feFuncR\",\n\t\"feGaussianBlur\",\n\t\"feImage\",\n\t\"feMerge\",\n\t\"feMergeNode\",\n\t\"feMorphology\",\n\t\"feOffset\",\n\t\"fePointLight\",\n\t\"feSpecularLighting\",\n\t\"feSpotLight\",\n\t\"feTile\",\n\t\"feTurbulence\",\n\t\"foreignObject\",\n\t\"glyphRef\",\n\t\"linearGradient\",\n\t\"radialGradient\",\n\t\"textPath\"\n].map((val) => [val.toLowerCase(), val]));\nconst attributeNames = new Map([\n\t\"definitionURL\",\n\t\"attributeName\",\n\t\"attributeType\",\n\t\"baseFrequency\",\n\t\"baseProfile\",\n\t\"calcMode\",\n\t\"clipPathUnits\",\n\t\"diffuseConstant\",\n\t\"edgeMode\",\n\t\"filterUnits\",\n\t\"glyphRef\",\n\t\"gradientTransform\",\n\t\"gradientUnits\",\n\t\"kernelMatrix\",\n\t\"kernelUnitLength\",\n\t\"keyPoints\",\n\t\"keySplines\",\n\t\"keyTimes\",\n\t\"lengthAdjust\",\n\t\"limitingConeAngle\",\n\t\"markerHeight\",\n\t\"markerUnits\",\n\t\"markerWidth\",\n\t\"maskContentUnits\",\n\t\"maskUnits\",\n\t\"numOctaves\",\n\t\"pathLength\",\n\t\"patternContentUnits\",\n\t\"patternTransform\",\n\t\"patternUnits\",\n\t\"pointsAtX\",\n\t\"pointsAtY\",\n\t\"pointsAtZ\",\n\t\"preserveAlpha\",\n\t\"preserveAspectRatio\",\n\t\"primitiveUnits\",\n\t\"refX\",\n\t\"refY\",\n\t\"repeatCount\",\n\t\"repeatDur\",\n\t\"requiredExtensions\",\n\t\"requiredFeatures\",\n\t\"specularConstant\",\n\t\"specularExponent\",\n\t\"spreadMethod\",\n\t\"startOffset\",\n\t\"stdDeviation\",\n\t\"stitchTiles\",\n\t\"surfaceScale\",\n\t\"systemLanguage\",\n\t\"tableValues\",\n\t\"targetX\",\n\t\"targetY\",\n\t\"textLength\",\n\t\"viewBox\",\n\t\"viewTarget\",\n\t\"xChannelSelector\",\n\t\"yChannelSelector\",\n\t\"zoomAndPan\"\n].map((val) => [val.toLowerCase(), val]));\n//#endregion\n//#region node_modules/dom-serializer/lib/esm/index.js\n/**\n* Mixed-case SVG and MathML tags & attributes\n* recognized by the HTML parser.\n*\n* @see https://html.spec.whatwg.org/multipage/parsing.html#parsing-main-inforeign\n*/\nconst unencodedElements = /* @__PURE__ */ new Set([\n\t\"style\",\n\t\"script\",\n\t\"xmp\",\n\t\"iframe\",\n\t\"noembed\",\n\t\"noframes\",\n\t\"plaintext\",\n\t\"noscript\"\n]);\nfunction replaceQuotes(value) {\n\treturn value.replace(/\"/g, \"&quot;\");\n}\n/**\n* Format attributes\n*/\nfunction formatAttributes(attributes, opts) {\n\tvar _a;\n\tif (!attributes) return;\n\tconst encode = ((_a = opts.encodeEntities) !== null && _a !== void 0 ? _a : opts.decodeEntities) === false ? replaceQuotes : opts.xmlMode || opts.encodeEntities !== \"utf8\" ? encodeXML : escapeAttribute;\n\treturn Object.keys(attributes).map((key) => {\n\t\tvar _a, _b;\n\t\tconst value = (_a = attributes[key]) !== null && _a !== void 0 ? _a : \"\";\n\t\tif (opts.xmlMode === \"foreign\") key = (_b = attributeNames.get(key)) !== null && _b !== void 0 ? _b : key;\n\t\tif (!opts.emptyAttrs && !opts.xmlMode && value === \"\") return key;\n\t\treturn `${key}=\"${encode(value)}\"`;\n\t}).join(\" \");\n}\n/**\n* Self-enclosing tags\n*/\nconst singleTag = /* @__PURE__ */ new Set([\n\t\"area\",\n\t\"base\",\n\t\"basefont\",\n\t\"br\",\n\t\"col\",\n\t\"command\",\n\t\"embed\",\n\t\"frame\",\n\t\"hr\",\n\t\"img\",\n\t\"input\",\n\t\"isindex\",\n\t\"keygen\",\n\t\"link\",\n\t\"meta\",\n\t\"param\",\n\t\"source\",\n\t\"track\",\n\t\"wbr\"\n]);\n/**\n* Renders a DOM node or an array of DOM nodes to a string.\n*\n* Can be thought of as the equivalent of the `outerHTML` of the passed node(s).\n*\n* @param node Node to be rendered.\n* @param options Changes serialization behavior\n*/\nfunction render(node, options = {}) {\n\tconst nodes = \"length\" in node ? node : [node];\n\tlet output = \"\";\n\tfor (let i = 0; i < nodes.length; i++) output += renderNode(nodes[i], options);\n\treturn output;\n}\nfunction renderNode(node, options) {\n\tswitch (node.type) {\n\t\tcase Root: return render(node.children, options);\n\t\tcase Doctype:\n\t\tcase Directive: return renderDirective(node);\n\t\tcase Comment: return renderComment(node);\n\t\tcase CDATA: return renderCdata(node);\n\t\tcase Script:\n\t\tcase Style:\n\t\tcase Tag: return renderTag(node, options);\n\t\tcase Text: return renderText(node, options);\n\t}\n}\nconst foreignModeIntegrationPoints = /* @__PURE__ */ new Set([\n\t\"mi\",\n\t\"mo\",\n\t\"mn\",\n\t\"ms\",\n\t\"mtext\",\n\t\"annotation-xml\",\n\t\"foreignObject\",\n\t\"desc\",\n\t\"title\"\n]);\nconst foreignElements = /* @__PURE__ */ new Set([\"svg\", \"math\"]);\nfunction renderTag(elem, opts) {\n\tvar _a;\n\tif (opts.xmlMode === \"foreign\") {\n\t\telem.name = (_a = elementNames.get(elem.name)) !== null && _a !== void 0 ? _a : elem.name;\n\t\tif (elem.parent && foreignModeIntegrationPoints.has(elem.parent.name)) opts = _objectSpread2(_objectSpread2({}, opts), {}, { xmlMode: false });\n\t}\n\tif (!opts.xmlMode && foreignElements.has(elem.name)) opts = _objectSpread2(_objectSpread2({}, opts), {}, { xmlMode: \"foreign\" });\n\tlet tag = `<${elem.name}`;\n\tconst attribs = formatAttributes(elem.attribs, opts);\n\tif (attribs) tag += ` ${attribs}`;\n\tif (elem.children.length === 0 && (opts.xmlMode ? opts.selfClosingTags !== false : opts.selfClosingTags && singleTag.has(elem.name))) {\n\t\tif (!opts.xmlMode) tag += \" \";\n\t\ttag += \"/>\";\n\t} else {\n\t\ttag += \">\";\n\t\tif (elem.children.length > 0) tag += render(elem.children, opts);\n\t\tif (opts.xmlMode || !singleTag.has(elem.name)) tag += `</${elem.name}>`;\n\t}\n\treturn tag;\n}\nfunction renderDirective(elem) {\n\treturn `<${elem.data}>`;\n}\nfunction renderText(elem, opts) {\n\tvar _a;\n\tlet data = elem.data || \"\";\n\tif (((_a = opts.encodeEntities) !== null && _a !== void 0 ? _a : opts.decodeEntities) !== false && !(!opts.xmlMode && elem.parent && unencodedElements.has(elem.parent.name))) data = opts.xmlMode || opts.encodeEntities !== \"utf8\" ? encodeXML(data) : escapeText(data);\n\treturn data;\n}\nfunction renderCdata(elem) {\n\treturn `<![CDATA[${elem.children[0].data}]]>`;\n}\nfunction renderComment(elem) {\n\treturn `<!--${elem.data}-->`;\n}\n//#endregion\n//#region node_modules/domutils/lib/esm/stringify.js\n/**\n* @category Stringify\n* @deprecated Use the `dom-serializer` module directly.\n* @param node Node to get the outer HTML of.\n* @param options Options for serialization.\n* @returns `node`'s outer HTML.\n*/\nfunction getOuterHTML(node, options) {\n\treturn render(node, options);\n}\n/**\n* @category Stringify\n* @deprecated Use the `dom-serializer` module directly.\n* @param node Node to get the inner HTML of.\n* @param options Options for serialization.\n* @returns `node`'s inner HTML.\n*/\nfunction getInnerHTML(node, options) {\n\treturn hasChildren(node) ? node.children.map((node) => getOuterHTML(node, options)).join(\"\") : \"\";\n}\n/**\n* Get a node's inner text. Same as `textContent`, but inserts newlines for `<br>` tags. Ignores comments.\n*\n* @category Stringify\n* @deprecated Use `textContent` instead.\n* @param node Node to get the inner text of.\n* @returns `node`'s inner text.\n*/\nfunction getText$1(node) {\n\tif (Array.isArray(node)) return node.map(getText$1).join(\"\");\n\tif (isTag$1(node)) return node.name === \"br\" ? \"\\n\" : getText$1(node.children);\n\tif (isCDATA(node)) return getText$1(node.children);\n\tif (isText(node)) return node.data;\n\treturn \"\";\n}\n/**\n* Get a node's text content. Ignores comments.\n*\n* @category Stringify\n* @param node Node to get the text content of.\n* @returns `node`'s text content.\n* @see {@link https://developer.mozilla.org/en-US/docs/Web/API/Node/textContent}\n*/\nfunction textContent(node) {\n\tif (Array.isArray(node)) return node.map(textContent).join(\"\");\n\tif (hasChildren(node) && !isComment(node)) return textContent(node.children);\n\tif (isText(node)) return node.data;\n\treturn \"\";\n}\n/**\n* Get a node's inner text, ignoring `<script>` and `<style>` tags. Ignores comments.\n*\n* @category Stringify\n* @param node Node to get the inner text of.\n* @returns `node`'s inner text.\n* @see {@link https://developer.mozilla.org/en-US/docs/Web/API/Node/innerText}\n*/\nfunction innerText(node) {\n\tif (Array.isArray(node)) return node.map(innerText).join(\"\");\n\tif (hasChildren(node) && (node.type === ElementType.Tag || isCDATA(node))) return innerText(node.children);\n\tif (isText(node)) return node.data;\n\treturn \"\";\n}\n//#endregion\n//#region node_modules/domutils/lib/esm/traversal.js\n/**\n* Get a node's children.\n*\n* @category Traversal\n* @param elem Node to get the children of.\n* @returns `elem`'s children, or an empty array.\n*/\nfunction getChildren$1(elem) {\n\treturn hasChildren(elem) ? elem.children : [];\n}\n/**\n* Get a node's parent.\n*\n* @category Traversal\n* @param elem Node to get the parent of.\n* @returns `elem`'s parent node, or `null` if `elem` is a root node.\n*/\nfunction getParent$1(elem) {\n\treturn elem.parent || null;\n}\n/**\n* Gets an elements siblings, including the element itself.\n*\n* Attempts to get the children through the element's parent first. If we don't\n* have a parent (the element is a root node), we walk the element's `prev` &\n* `next` to get all remaining nodes.\n*\n* @category Traversal\n* @param elem Element to get the siblings of.\n* @returns `elem`'s siblings, including `elem`.\n*/\nfunction getSiblings$1(elem) {\n\tconst parent = getParent$1(elem);\n\tif (parent != null) return getChildren$1(parent);\n\tconst siblings = [elem];\n\tlet { prev, next } = elem;\n\twhile (prev != null) {\n\t\tsiblings.unshift(prev);\n\t\t({prev} = prev);\n\t}\n\twhile (next != null) {\n\t\tsiblings.push(next);\n\t\t({next} = next);\n\t}\n\treturn siblings;\n}\n/**\n* Gets an attribute from an element.\n*\n* @category Traversal\n* @param elem Element to check.\n* @param name Attribute name to retrieve.\n* @returns The element's attribute value, or `undefined`.\n*/\nfunction getAttributeValue$1(elem, name) {\n\tvar _a;\n\treturn (_a = elem.attribs) === null || _a === void 0 ? void 0 : _a[name];\n}\n/**\n* Checks whether an element has an attribute.\n*\n* @category Traversal\n* @param elem Element to check.\n* @param name Attribute name to look for.\n* @returns Returns whether `elem` has the attribute `name`.\n*/\nfunction hasAttrib$1(elem, name) {\n\treturn elem.attribs != null && Object.prototype.hasOwnProperty.call(elem.attribs, name) && elem.attribs[name] != null;\n}\n/**\n* Get the tag name of an element.\n*\n* @category Traversal\n* @param elem The element to get the name for.\n* @returns The tag name of `elem`.\n*/\nfunction getName$1(elem) {\n\treturn elem.name;\n}\n/**\n* Returns the next element sibling of a node.\n*\n* @category Traversal\n* @param elem The element to get the next sibling of.\n* @returns `elem`'s next sibling that is a tag, or `null` if there is no next\n* sibling.\n*/\nfunction nextElementSibling(elem) {\n\tlet { next } = elem;\n\twhile (next !== null && !isTag$1(next)) ({next} = next);\n\treturn next;\n}\n/**\n* Returns the previous element sibling of a node.\n*\n* @category Traversal\n* @param elem The element to get the previous sibling of.\n* @returns `elem`'s previous sibling that is a tag, or `null` if there is no\n* previous sibling.\n*/\nfunction prevElementSibling(elem) {\n\tlet { prev } = elem;\n\twhile (prev !== null && !isTag$1(prev)) ({prev} = prev);\n\treturn prev;\n}\n//#endregion\n//#region node_modules/domutils/lib/esm/manipulation.js\n/**\n* Remove an element from the dom\n*\n* @category Manipulation\n* @param elem The element to be removed\n*/\nfunction removeElement(elem) {\n\tif (elem.prev) elem.prev.next = elem.next;\n\tif (elem.next) elem.next.prev = elem.prev;\n\tif (elem.parent) {\n\t\tconst childs = elem.parent.children;\n\t\tconst childsIndex = childs.lastIndexOf(elem);\n\t\tif (childsIndex >= 0) childs.splice(childsIndex, 1);\n\t}\n\telem.next = null;\n\telem.prev = null;\n\telem.parent = null;\n}\n/**\n* Replace an element in the dom\n*\n* @category Manipulation\n* @param elem The element to be replaced\n* @param replacement The element to be added\n*/\nfunction replaceElement(elem, replacement) {\n\tconst prev = replacement.prev = elem.prev;\n\tif (prev) prev.next = replacement;\n\tconst next = replacement.next = elem.next;\n\tif (next) next.prev = replacement;\n\tconst parent = replacement.parent = elem.parent;\n\tif (parent) {\n\t\tconst childs = parent.children;\n\t\tchilds[childs.lastIndexOf(elem)] = replacement;\n\t\telem.parent = null;\n\t}\n}\n/**\n* Append a child to an element.\n*\n* @category Manipulation\n* @param parent The element to append to.\n* @param child The element to be added as a child.\n*/\nfunction appendChild(parent, child) {\n\tremoveElement(child);\n\tchild.next = null;\n\tchild.parent = parent;\n\tif (parent.children.push(child) > 1) {\n\t\tconst sibling = parent.children[parent.children.length - 2];\n\t\tsibling.next = child;\n\t\tchild.prev = sibling;\n\t} else child.prev = null;\n}\n/**\n* Append an element after another.\n*\n* @category Manipulation\n* @param elem The element to append after.\n* @param next The element be added.\n*/\nfunction append(elem, next) {\n\tremoveElement(next);\n\tconst { parent } = elem;\n\tconst currNext = elem.next;\n\tnext.next = currNext;\n\tnext.prev = elem;\n\telem.next = next;\n\tnext.parent = parent;\n\tif (currNext) {\n\t\tcurrNext.prev = next;\n\t\tif (parent) {\n\t\t\tconst childs = parent.children;\n\t\t\tchilds.splice(childs.lastIndexOf(currNext), 0, next);\n\t\t}\n\t} else if (parent) parent.children.push(next);\n}\n/**\n* Prepend a child to an element.\n*\n* @category Manipulation\n* @param parent The element to prepend before.\n* @param child The element to be added as a child.\n*/\nfunction prependChild(parent, child) {\n\tremoveElement(child);\n\tchild.parent = parent;\n\tchild.prev = null;\n\tif (parent.children.unshift(child) !== 1) {\n\t\tconst sibling = parent.children[1];\n\t\tsibling.prev = child;\n\t\tchild.next = sibling;\n\t} else child.next = null;\n}\n/**\n* Prepend an element before another.\n*\n* @category Manipulation\n* @param elem The element to prepend before.\n* @param prev The element be added.\n*/\nfunction prepend(elem, prev) {\n\tremoveElement(prev);\n\tconst { parent } = elem;\n\tif (parent) {\n\t\tconst childs = parent.children;\n\t\tchilds.splice(childs.indexOf(elem), 0, prev);\n\t}\n\tif (elem.prev) elem.prev.next = prev;\n\tprev.parent = parent;\n\tprev.prev = elem.prev;\n\tprev.next = elem;\n\telem.prev = prev;\n}\n//#endregion\n//#region node_modules/domutils/lib/esm/querying.js\n/**\n* Search a node and its children for nodes passing a test function. If `node` is not an array, it will be wrapped in one.\n*\n* @category Querying\n* @param test Function to test nodes on.\n* @param node Node to search. Will be included in the result set if it matches.\n* @param recurse Also consider child nodes.\n* @param limit Maximum number of nodes to return.\n* @returns All nodes passing `test`.\n*/\nfunction filter(test, node, recurse = true, limit = Infinity) {\n\treturn find(test, Array.isArray(node) ? node : [node], recurse, limit);\n}\n/**\n* Search an array of nodes and their children for nodes passing a test function.\n*\n* @category Querying\n* @param test Function to test nodes on.\n* @param nodes Array of nodes to search.\n* @param recurse Also consider child nodes.\n* @param limit Maximum number of nodes to return.\n* @returns All nodes passing `test`.\n*/\nfunction find(test, nodes, recurse, limit) {\n\tconst result = [];\n\t/** Stack of the arrays we are looking at. */\n\tconst nodeStack = [nodes];\n\t/** Stack of the indices within the arrays. */\n\tconst indexStack = [0];\n\tfor (;;) {\n\t\tif (indexStack[0] >= nodeStack[0].length) {\n\t\t\tif (indexStack.length === 1) return result;\n\t\t\tnodeStack.shift();\n\t\t\tindexStack.shift();\n\t\t\tcontinue;\n\t\t}\n\t\tconst elem = nodeStack[0][indexStack[0]++];\n\t\tif (test(elem)) {\n\t\t\tresult.push(elem);\n\t\t\tif (--limit <= 0) return result;\n\t\t}\n\t\tif (recurse && hasChildren(elem) && elem.children.length > 0) {\n\t\t\tindexStack.unshift(0);\n\t\t\tnodeStack.unshift(elem.children);\n\t\t}\n\t}\n}\n/**\n* Finds the first element inside of an array that matches a test function. This is an alias for `Array.prototype.find`.\n*\n* @category Querying\n* @param test Function to test nodes on.\n* @param nodes Array of nodes to search.\n* @returns The first node in the array that passes `test`.\n* @deprecated Use `Array.prototype.find` directly.\n*/\nfunction findOneChild(test, nodes) {\n\treturn nodes.find(test);\n}\n/**\n* Finds one element in a tree that passes a test.\n*\n* @category Querying\n* @param test Function to test nodes on.\n* @param nodes Node or array of nodes to search.\n* @param recurse Also consider child nodes.\n* @returns The first node that passes `test`.\n*/\nfunction findOne$1(test, nodes, recurse = true) {\n\tlet elem = null;\n\tfor (let i = 0; i < nodes.length && !elem; i++) {\n\t\tconst node = nodes[i];\n\t\tif (!isTag$1(node)) continue;\n\t\telse if (test(node)) elem = node;\n\t\telse if (recurse && node.children.length > 0) elem = findOne$1(test, node.children, true);\n\t}\n\treturn elem;\n}\n/**\n* Checks if a tree of nodes contains at least one node passing a test.\n*\n* @category Querying\n* @param test Function to test nodes on.\n* @param nodes Array of nodes to search.\n* @returns Whether a tree of nodes contains at least one node passing the test.\n*/\nfunction existsOne$1(test, nodes) {\n\treturn nodes.some((checked) => isTag$1(checked) && (test(checked) || existsOne$1(test, checked.children)));\n}\n/**\n* Search an array of nodes and their children for elements passing a test function.\n*\n* Same as `find`, but limited to elements and with less options, leading to reduced complexity.\n*\n* @category Querying\n* @param test Function to test nodes on.\n* @param nodes Array of nodes to search.\n* @returns All nodes passing `test`.\n*/\nfunction findAll$1(test, nodes) {\n\tconst result = [];\n\tconst nodeStack = [nodes];\n\tconst indexStack = [0];\n\tfor (;;) {\n\t\tif (indexStack[0] >= nodeStack[0].length) {\n\t\t\tif (nodeStack.length === 1) return result;\n\t\t\tnodeStack.shift();\n\t\t\tindexStack.shift();\n\t\t\tcontinue;\n\t\t}\n\t\tconst elem = nodeStack[0][indexStack[0]++];\n\t\tif (!isTag$1(elem)) continue;\n\t\tif (test(elem)) result.push(elem);\n\t\tif (elem.children.length > 0) {\n\t\t\tindexStack.unshift(0);\n\t\t\tnodeStack.unshift(elem.children);\n\t\t}\n\t}\n}\n//#endregion\n//#region node_modules/domutils/lib/esm/legacy.js\n/**\n* A map of functions to check nodes against.\n*/\nconst Checks = {\n\ttag_name(name) {\n\t\tif (typeof name === \"function\") return (elem) => isTag$1(elem) && name(elem.name);\n\t\telse if (name === \"*\") return isTag$1;\n\t\treturn (elem) => isTag$1(elem) && elem.name === name;\n\t},\n\ttag_type(type) {\n\t\tif (typeof type === \"function\") return (elem) => type(elem.type);\n\t\treturn (elem) => elem.type === type;\n\t},\n\ttag_contains(data) {\n\t\tif (typeof data === \"function\") return (elem) => isText(elem) && data(elem.data);\n\t\treturn (elem) => isText(elem) && elem.data === data;\n\t}\n};\n/**\n* Returns a function to check whether a node has an attribute with a particular\n* value.\n*\n* @param attrib Attribute to check.\n* @param value Attribute value to look for.\n* @returns A function to check whether the a node has an attribute with a\n* particular value.\n*/\nfunction getAttribCheck(attrib, value) {\n\tif (typeof value === \"function\") return (elem) => isTag$1(elem) && value(elem.attribs[attrib]);\n\treturn (elem) => isTag$1(elem) && elem.attribs[attrib] === value;\n}\n/**\n* Returns a function that returns `true` if either of the input functions\n* returns `true` for a node.\n*\n* @param a First function to combine.\n* @param b Second function to combine.\n* @returns A function taking a node and returning `true` if either of the input\n* functions returns `true` for the node.\n*/\nfunction combineFuncs(a, b) {\n\treturn (elem) => a(elem) || b(elem);\n}\n/**\n* Returns a function that executes all checks in `options` and returns `true`\n* if any of them match a node.\n*\n* @param options An object describing nodes to look for.\n* @returns A function that executes all checks in `options` and returns `true`\n* if any of them match a node.\n*/\nfunction compileTest(options) {\n\tconst funcs = Object.keys(options).map((key) => {\n\t\tconst value = options[key];\n\t\treturn Object.prototype.hasOwnProperty.call(Checks, key) ? Checks[key](value) : getAttribCheck(key, value);\n\t});\n\treturn funcs.length === 0 ? null : funcs.reduce(combineFuncs);\n}\n/**\n* Checks whether a node matches the description in `options`.\n*\n* @category Legacy Query Functions\n* @param options An object describing nodes to look for.\n* @param node The element to test.\n* @returns Whether the element matches the description in `options`.\n*/\nfunction testElement(options, node) {\n\tconst test = compileTest(options);\n\treturn test ? test(node) : true;\n}\n/**\n* Returns all nodes that match `options`.\n*\n* @category Legacy Query Functions\n* @param options An object describing nodes to look for.\n* @param nodes Nodes to search through.\n* @param recurse Also consider child nodes.\n* @param limit Maximum number of nodes to return.\n* @returns All nodes that match `options`.\n*/\nfunction getElements(options, nodes, recurse, limit = Infinity) {\n\tconst test = compileTest(options);\n\treturn test ? filter(test, nodes, recurse, limit) : [];\n}\n/**\n* Returns the node with the supplied ID.\n*\n* @category Legacy Query Functions\n* @param id The unique ID attribute value to look for.\n* @param nodes Nodes to search through.\n* @param recurse Also consider child nodes.\n* @returns The node with the supplied ID.\n*/\nfunction getElementById(id, nodes, recurse = true) {\n\tif (!Array.isArray(nodes)) nodes = [nodes];\n\treturn findOne$1(getAttribCheck(\"id\", id), nodes, recurse);\n}\n/**\n* Returns all nodes with the supplied `tagName`.\n*\n* @category Legacy Query Functions\n* @param tagName Tag name to search for.\n* @param nodes Nodes to search through.\n* @param recurse Also consider child nodes.\n* @param limit Maximum number of nodes to return.\n* @returns All nodes with the supplied `tagName`.\n*/\nfunction getElementsByTagName(tagName, nodes, recurse = true, limit = Infinity) {\n\treturn filter(Checks[\"tag_name\"](tagName), nodes, recurse, limit);\n}\n/**\n* Returns all nodes with the supplied `type`.\n*\n* @category Legacy Query Functions\n* @param type Element type to look for.\n* @param nodes Nodes to search through.\n* @param recurse Also consider child nodes.\n* @param limit Maximum number of nodes to return.\n* @returns All nodes with the supplied `type`.\n*/\nfunction getElementsByTagType(type, nodes, recurse = true, limit = Infinity) {\n\treturn filter(Checks[\"tag_type\"](type), nodes, recurse, limit);\n}\n//#endregion\n//#region node_modules/domutils/lib/esm/helpers.js\n/**\n* Given an array of nodes, remove any member that is contained by another\n* member.\n*\n* @category Helpers\n* @param nodes Nodes to filter.\n* @returns Remaining nodes that aren't contained by other nodes.\n*/\nfunction removeSubsets$1(nodes) {\n\tlet idx = nodes.length;\n\twhile (--idx >= 0) {\n\t\tconst node = nodes[idx];\n\t\tif (idx > 0 && nodes.lastIndexOf(node, idx - 1) >= 0) {\n\t\t\tnodes.splice(idx, 1);\n\t\t\tcontinue;\n\t\t}\n\t\tfor (let ancestor = node.parent; ancestor; ancestor = ancestor.parent) if (nodes.includes(ancestor)) {\n\t\t\tnodes.splice(idx, 1);\n\t\t\tbreak;\n\t\t}\n\t}\n\treturn nodes;\n}\n/**\n* @category Helpers\n* @see {@link http://dom.spec.whatwg.org/#dom-node-comparedocumentposition}\n*/\nvar DocumentPosition;\n(function(DocumentPosition) {\n\tDocumentPosition[DocumentPosition[\"DISCONNECTED\"] = 1] = \"DISCONNECTED\";\n\tDocumentPosition[DocumentPosition[\"PRECEDING\"] = 2] = \"PRECEDING\";\n\tDocumentPosition[DocumentPosition[\"FOLLOWING\"] = 4] = \"FOLLOWING\";\n\tDocumentPosition[DocumentPosition[\"CONTAINS\"] = 8] = \"CONTAINS\";\n\tDocumentPosition[DocumentPosition[\"CONTAINED_BY\"] = 16] = \"CONTAINED_BY\";\n})(DocumentPosition || (DocumentPosition = {}));\n/**\n* Compare the position of one node against another node in any other document,\n* returning a bitmask with the values from {@link DocumentPosition}.\n*\n* Document order:\n* > There is an ordering, document order, defined on all the nodes in the\n* > document corresponding to the order in which the first character of the\n* > XML representation of each node occurs in the XML representation of the\n* > document after expansion of general entities. Thus, the document element\n* > node will be the first node. Element nodes occur before their children.\n* > Thus, document order orders element nodes in order of the occurrence of\n* > their start-tag in the XML (after expansion of entities). The attribute\n* > nodes of an element occur after the element and before its children. The\n* > relative order of attribute nodes is implementation-dependent.\n*\n* Source:\n* http://www.w3.org/TR/DOM-Level-3-Core/glossary.html#dt-document-order\n*\n* @category Helpers\n* @param nodeA The first node to use in the comparison\n* @param nodeB The second node to use in the comparison\n* @returns A bitmask describing the input nodes' relative position.\n*\n* See http://dom.spec.whatwg.org/#dom-node-comparedocumentposition for\n* a description of these values.\n*/\nfunction compareDocumentPosition(nodeA, nodeB) {\n\tconst aParents = [];\n\tconst bParents = [];\n\tif (nodeA === nodeB) return 0;\n\tlet current = hasChildren(nodeA) ? nodeA : nodeA.parent;\n\twhile (current) {\n\t\taParents.unshift(current);\n\t\tcurrent = current.parent;\n\t}\n\tcurrent = hasChildren(nodeB) ? nodeB : nodeB.parent;\n\twhile (current) {\n\t\tbParents.unshift(current);\n\t\tcurrent = current.parent;\n\t}\n\tconst maxIdx = Math.min(aParents.length, bParents.length);\n\tlet idx = 0;\n\twhile (idx < maxIdx && aParents[idx] === bParents[idx]) idx++;\n\tif (idx === 0) return DocumentPosition.DISCONNECTED;\n\tconst sharedParent = aParents[idx - 1];\n\tconst siblings = sharedParent.children;\n\tconst aSibling = aParents[idx];\n\tconst bSibling = bParents[idx];\n\tif (siblings.indexOf(aSibling) > siblings.indexOf(bSibling)) {\n\t\tif (sharedParent === nodeB) return DocumentPosition.FOLLOWING | DocumentPosition.CONTAINED_BY;\n\t\treturn DocumentPosition.FOLLOWING;\n\t}\n\tif (sharedParent === nodeA) return DocumentPosition.PRECEDING | DocumentPosition.CONTAINS;\n\treturn DocumentPosition.PRECEDING;\n}\n/**\n* Sort an array of nodes based on their relative position in the document,\n* removing any duplicate nodes. If the array contains nodes that do not belong\n* to the same document, sort order is unspecified.\n*\n* @category Helpers\n* @param nodes Array of DOM nodes.\n* @returns Collection of unique nodes, sorted in document order.\n*/\nfunction uniqueSort(nodes) {\n\tnodes = nodes.filter((node, i, arr) => !arr.includes(node, i + 1));\n\tnodes.sort((a, b) => {\n\t\tconst relative = compareDocumentPosition(a, b);\n\t\tif (relative & DocumentPosition.PRECEDING) return -1;\n\t\telse if (relative & DocumentPosition.FOLLOWING) return 1;\n\t\treturn 0;\n\t});\n\treturn nodes;\n}\n//#endregion\n//#region node_modules/domutils/lib/esm/feeds.js\n/**\n* Get the feed object from the root of a DOM tree.\n*\n* @category Feeds\n* @param doc - The DOM to to extract the feed from.\n* @returns The feed.\n*/\nfunction getFeed(doc) {\n\tconst feedRoot = getOneElement(isValidFeed, doc);\n\treturn !feedRoot ? null : feedRoot.name === \"feed\" ? getAtomFeed(feedRoot) : getRssFeed(feedRoot);\n}\n/**\n* Parse an Atom feed.\n*\n* @param feedRoot The root of the feed.\n* @returns The parsed feed.\n*/\nfunction getAtomFeed(feedRoot) {\n\tvar _a;\n\tconst childs = feedRoot.children;\n\tconst feed = {\n\t\ttype: \"atom\",\n\t\titems: getElementsByTagName(\"entry\", childs).map((item) => {\n\t\t\tvar _a;\n\t\t\tconst { children } = item;\n\t\t\tconst entry = { media: getMediaElements(children) };\n\t\t\taddConditionally(entry, \"id\", \"id\", children);\n\t\t\taddConditionally(entry, \"title\", \"title\", children);\n\t\t\tconst href = (_a = getOneElement(\"link\", children)) === null || _a === void 0 ? void 0 : _a.attribs[\"href\"];\n\t\t\tif (href) entry.link = href;\n\t\t\tconst description = fetch(\"summary\", children) || fetch(\"content\", children);\n\t\t\tif (description) entry.description = description;\n\t\t\tconst pubDate = fetch(\"updated\", children);\n\t\t\tif (pubDate) entry.pubDate = new Date(pubDate);\n\t\t\treturn entry;\n\t\t})\n\t};\n\taddConditionally(feed, \"id\", \"id\", childs);\n\taddConditionally(feed, \"title\", \"title\", childs);\n\tconst href = (_a = getOneElement(\"link\", childs)) === null || _a === void 0 ? void 0 : _a.attribs[\"href\"];\n\tif (href) feed.link = href;\n\taddConditionally(feed, \"description\", \"subtitle\", childs);\n\tconst updated = fetch(\"updated\", childs);\n\tif (updated) feed.updated = new Date(updated);\n\taddConditionally(feed, \"author\", \"email\", childs, true);\n\treturn feed;\n}\n/**\n* Parse a RSS feed.\n*\n* @param feedRoot The root of the feed.\n* @returns The parsed feed.\n*/\nfunction getRssFeed(feedRoot) {\n\tvar _a, _b;\n\tconst childs = (_b = (_a = getOneElement(\"channel\", feedRoot.children)) === null || _a === void 0 ? void 0 : _a.children) !== null && _b !== void 0 ? _b : [];\n\tconst feed = {\n\t\ttype: feedRoot.name.substr(0, 3),\n\t\tid: \"\",\n\t\titems: getElementsByTagName(\"item\", feedRoot.children).map((item) => {\n\t\t\tconst { children } = item;\n\t\t\tconst entry = { media: getMediaElements(children) };\n\t\t\taddConditionally(entry, \"id\", \"guid\", children);\n\t\t\taddConditionally(entry, \"title\", \"title\", children);\n\t\t\taddConditionally(entry, \"link\", \"link\", children);\n\t\t\taddConditionally(entry, \"description\", \"description\", children);\n\t\t\tconst pubDate = fetch(\"pubDate\", children) || fetch(\"dc:date\", children);\n\t\t\tif (pubDate) entry.pubDate = new Date(pubDate);\n\t\t\treturn entry;\n\t\t})\n\t};\n\taddConditionally(feed, \"title\", \"title\", childs);\n\taddConditionally(feed, \"link\", \"link\", childs);\n\taddConditionally(feed, \"description\", \"description\", childs);\n\tconst updated = fetch(\"lastBuildDate\", childs);\n\tif (updated) feed.updated = new Date(updated);\n\taddConditionally(feed, \"author\", \"managingEditor\", childs, true);\n\treturn feed;\n}\nconst MEDIA_KEYS_STRING = [\n\t\"url\",\n\t\"type\",\n\t\"lang\"\n];\nconst MEDIA_KEYS_INT = [\n\t\"fileSize\",\n\t\"bitrate\",\n\t\"framerate\",\n\t\"samplingrate\",\n\t\"channels\",\n\t\"duration\",\n\t\"height\",\n\t\"width\"\n];\n/**\n* Get all media elements of a feed item.\n*\n* @param where Nodes to search in.\n* @returns Media elements.\n*/\nfunction getMediaElements(where) {\n\treturn getElementsByTagName(\"media:content\", where).map((elem) => {\n\t\tconst { attribs } = elem;\n\t\tconst media = {\n\t\t\tmedium: attribs[\"medium\"],\n\t\t\tisDefault: !!attribs[\"isDefault\"]\n\t\t};\n\t\tfor (const attrib of MEDIA_KEYS_STRING) if (attribs[attrib]) media[attrib] = attribs[attrib];\n\t\tfor (const attrib of MEDIA_KEYS_INT) if (attribs[attrib]) media[attrib] = parseInt(attribs[attrib], 10);\n\t\tif (attribs[\"expression\"]) media.expression = attribs[\"expression\"];\n\t\treturn media;\n\t});\n}\n/**\n* Get one element by tag name.\n*\n* @param tagName Tag name to look for\n* @param node Node to search in\n* @returns The element or null\n*/\nfunction getOneElement(tagName, node) {\n\treturn getElementsByTagName(tagName, node, true, 1)[0];\n}\n/**\n* Get the text content of an element with a certain tag name.\n*\n* @param tagName Tag name to look for.\n* @param where Node to search in.\n* @param recurse Whether to recurse into child nodes.\n* @returns The text content of the element.\n*/\nfunction fetch(tagName, where, recurse = false) {\n\treturn textContent(getElementsByTagName(tagName, where, recurse, 1)).trim();\n}\n/**\n* Adds a property to an object if it has a value.\n*\n* @param obj Object to be extended\n* @param prop Property name\n* @param tagName Tag name that contains the conditionally added property\n* @param where Element to search for the property\n* @param recurse Whether to recurse into child nodes.\n*/\nfunction addConditionally(obj, prop, tagName, where, recurse = false) {\n\tconst val = fetch(tagName, where, recurse);\n\tif (val) obj[prop] = val;\n}\n/**\n* Checks if an element is a feed root node.\n*\n* @param value The name of the element to check.\n* @returns Whether an element is a feed root node.\n*/\nfunction isValidFeed(value) {\n\treturn value === \"rss\" || value === \"feed\" || value === \"rdf:RDF\";\n}\n//#endregion\n//#region node_modules/domutils/lib/esm/index.js\nvar esm_exports = /* @__PURE__ */ __exportAll({\n\tDocumentPosition: () => DocumentPosition,\n\tappend: () => append,\n\tappendChild: () => appendChild,\n\tcompareDocumentPosition: () => compareDocumentPosition,\n\texistsOne: () => existsOne$1,\n\tfilter: () => filter,\n\tfind: () => find,\n\tfindAll: () => findAll$1,\n\tfindOne: () => findOne$1,\n\tfindOneChild: () => findOneChild,\n\tgetAttributeValue: () => getAttributeValue$1,\n\tgetChildren: () => getChildren$1,\n\tgetElementById: () => getElementById,\n\tgetElements: () => getElements,\n\tgetElementsByTagName: () => getElementsByTagName,\n\tgetElementsByTagType: () => getElementsByTagType,\n\tgetFeed: () => getFeed,\n\tgetInnerHTML: () => getInnerHTML,\n\tgetName: () => getName$1,\n\tgetOuterHTML: () => getOuterHTML,\n\tgetParent: () => getParent$1,\n\tgetSiblings: () => getSiblings$1,\n\tgetText: () => getText$1,\n\thasAttrib: () => hasAttrib$1,\n\thasChildren: () => hasChildren,\n\tinnerText: () => innerText,\n\tisCDATA: () => isCDATA,\n\tisComment: () => isComment,\n\tisDocument: () => isDocument,\n\tisTag: () => isTag$1,\n\tisText: () => isText,\n\tnextElementSibling: () => nextElementSibling,\n\tprepend: () => prepend,\n\tprependChild: () => prependChild,\n\tprevElementSibling: () => prevElementSibling,\n\tremoveElement: () => removeElement,\n\tremoveSubsets: () => removeSubsets$1,\n\treplaceElement: () => replaceElement,\n\ttestElement: () => testElement,\n\ttextContent: () => textContent,\n\tuniqueSort: () => uniqueSort\n});\n//#endregion\n//#region node_modules/boolbase/index.js\nvar require_boolbase = /* @__PURE__ */ __commonJSMin(((exports, module) => {\n\tmodule.exports = {\n\t\ttrueFunc: function trueFunc() {\n\t\t\treturn true;\n\t\t},\n\t\tfalseFunc: function falseFunc() {\n\t\t\treturn false;\n\t\t}\n\t};\n}));\n//#endregion\n//#region node_modules/css-what/lib/commonjs/types.js\nvar require_types = /* @__PURE__ */ __commonJSMin(((exports) => {\n\tObject.defineProperty(exports, \"__esModule\", { value: true });\n\texports.AttributeAction = exports.IgnoreCaseMode = exports.SelectorType = void 0;\n\t(function(SelectorType) {\n\t\tSelectorType[\"Attribute\"] = \"attribute\";\n\t\tSelectorType[\"Pseudo\"] = \"pseudo\";\n\t\tSelectorType[\"PseudoElement\"] = \"pseudo-element\";\n\t\tSelectorType[\"Tag\"] = \"tag\";\n\t\tSelectorType[\"Universal\"] = \"universal\";\n\t\tSelectorType[\"Adjacent\"] = \"adjacent\";\n\t\tSelectorType[\"Child\"] = \"child\";\n\t\tSelectorType[\"Descendant\"] = \"descendant\";\n\t\tSelectorType[\"Parent\"] = \"parent\";\n\t\tSelectorType[\"Sibling\"] = \"sibling\";\n\t\tSelectorType[\"ColumnCombinator\"] = \"column-combinator\";\n\t})(exports.SelectorType || (exports.SelectorType = {}));\n\t/**\n\t* Modes for ignore case.\n\t*\n\t* This could be updated to an enum, and the object is\n\t* the current stand-in that will allow code to be updated\n\t* without big changes.\n\t*/\n\texports.IgnoreCaseMode = {\n\t\tUnknown: null,\n\t\tQuirksMode: \"quirks\",\n\t\tIgnoreCase: true,\n\t\tCaseSensitive: false\n\t};\n\t(function(AttributeAction) {\n\t\tAttributeAction[\"Any\"] = \"any\";\n\t\tAttributeAction[\"Element\"] = \"element\";\n\t\tAttributeAction[\"End\"] = \"end\";\n\t\tAttributeAction[\"Equals\"] = \"equals\";\n\t\tAttributeAction[\"Exists\"] = \"exists\";\n\t\tAttributeAction[\"Hyphen\"] = \"hyphen\";\n\t\tAttributeAction[\"Not\"] = \"not\";\n\t\tAttributeAction[\"Start\"] = \"start\";\n\t})(exports.AttributeAction || (exports.AttributeAction = {}));\n}));\n//#endregion\n//#region node_modules/css-what/lib/commonjs/parse.js\nvar require_parse = /* @__PURE__ */ __commonJSMin(((exports) => {\n\tObject.defineProperty(exports, \"__esModule\", { value: true });\n\texports.parse = exports.isTraversal = void 0;\n\tvar types_1 = require_types();\n\tvar reName = /^[^\\\\#]?(?:\\\\(?:[\\da-f]{1,6}\\s?|.)|[\\w\\-\\u00b0-\\uFFFF])+/;\n\tvar reEscape = /\\\\([\\da-f]{1,6}\\s?|(\\s)|.)/gi;\n\tvar actionTypes = /* @__PURE__ */ new Map([\n\t\t[126, types_1.AttributeAction.Element],\n\t\t[94, types_1.AttributeAction.Start],\n\t\t[36, types_1.AttributeAction.End],\n\t\t[42, types_1.AttributeAction.Any],\n\t\t[33, types_1.AttributeAction.Not],\n\t\t[124, types_1.AttributeAction.Hyphen]\n\t]);\n\tvar unpackPseudos = /* @__PURE__ */ new Set([\n\t\t\"has\",\n\t\t\"not\",\n\t\t\"matches\",\n\t\t\"is\",\n\t\t\"where\",\n\t\t\"host\",\n\t\t\"host-context\"\n\t]);\n\t/**\n\t* Checks whether a specific selector is a traversal.\n\t* This is useful eg. in swapping the order of elements that\n\t* are not traversals.\n\t*\n\t* @param selector Selector to check.\n\t*/\n\tfunction isTraversal(selector) {\n\t\tswitch (selector.type) {\n\t\t\tcase types_1.SelectorType.Adjacent:\n\t\t\tcase types_1.SelectorType.Child:\n\t\t\tcase types_1.SelectorType.Descendant:\n\t\t\tcase types_1.SelectorType.Parent:\n\t\t\tcase types_1.SelectorType.Sibling:\n\t\t\tcase types_1.SelectorType.ColumnCombinator: return true;\n\t\t\tdefault: return false;\n\t\t}\n\t}\n\texports.isTraversal = isTraversal;\n\tvar stripQuotesFromPseudos = /* @__PURE__ */ new Set([\"contains\", \"icontains\"]);\n\tfunction funescape(_, escaped, escapedWhitespace) {\n\t\tvar high = parseInt(escaped, 16) - 65536;\n\t\treturn high !== high || escapedWhitespace ? escaped : high < 0 ? String.fromCharCode(high + 65536) : String.fromCharCode(high >> 10 | 55296, high & 1023 | 56320);\n\t}\n\tfunction unescapeCSS(str) {\n\t\treturn str.replace(reEscape, funescape);\n\t}\n\tfunction isQuote(c) {\n\t\treturn c === 39 || c === 34;\n\t}\n\tfunction isWhitespace(c) {\n\t\treturn c === 32 || c === 9 || c === 10 || c === 12 || c === 13;\n\t}\n\t/**\n\t* Parses `selector`, optionally with the passed `options`.\n\t*\n\t* @param selector Selector to parse.\n\t* @param options Options for parsing.\n\t* @returns Returns a two-dimensional array.\n\t* The first dimension represents selectors separated by commas (eg. `sub1, sub2`),\n\t* the second contains the relevant tokens for that selector.\n\t*/\n\tfunction parse(selector) {\n\t\tvar subselects = [];\n\t\tvar endIndex = parseSelector(subselects, \"\".concat(selector), 0);\n\t\tif (endIndex < selector.length) throw new Error(\"Unmatched selector: \".concat(selector.slice(endIndex)));\n\t\treturn subselects;\n\t}\n\texports.parse = parse;\n\tfunction parseSelector(subselects, selector, selectorIndex) {\n\t\tvar tokens = [];\n\t\tfunction getName(offset) {\n\t\t\tvar match = selector.slice(selectorIndex + offset).match(reName);\n\t\t\tif (!match) throw new Error(\"Expected name, found \".concat(selector.slice(selectorIndex)));\n\t\t\tvar name = match[0];\n\t\t\tselectorIndex += offset + name.length;\n\t\t\treturn unescapeCSS(name);\n\t\t}\n\t\tfunction stripWhitespace(offset) {\n\t\t\tselectorIndex += offset;\n\t\t\twhile (selectorIndex < selector.length && isWhitespace(selector.charCodeAt(selectorIndex))) selectorIndex++;\n\t\t}\n\t\tfunction readValueWithParenthesis() {\n\t\t\tselectorIndex += 1;\n\t\t\tvar start = selectorIndex;\n\t\t\tvar counter = 1;\n\t\t\tfor (; counter > 0 && selectorIndex < selector.length; selectorIndex++) if (selector.charCodeAt(selectorIndex) === 40 && !isEscaped(selectorIndex)) counter++;\n\t\t\telse if (selector.charCodeAt(selectorIndex) === 41 && !isEscaped(selectorIndex)) counter--;\n\t\t\tif (counter) throw new Error(\"Parenthesis not matched\");\n\t\t\treturn unescapeCSS(selector.slice(start, selectorIndex - 1));\n\t\t}\n\t\tfunction isEscaped(pos) {\n\t\t\tvar slashCount = 0;\n\t\t\twhile (selector.charCodeAt(--pos) === 92) slashCount++;\n\t\t\treturn (slashCount & 1) === 1;\n\t\t}\n\t\tfunction ensureNotTraversal() {\n\t\t\tif (tokens.length > 0 && isTraversal(tokens[tokens.length - 1])) throw new Error(\"Did not expect successive traversals.\");\n\t\t}\n\t\tfunction addTraversal(type) {\n\t\t\tif (tokens.length > 0 && tokens[tokens.length - 1].type === types_1.SelectorType.Descendant) {\n\t\t\t\ttokens[tokens.length - 1].type = type;\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tensureNotTraversal();\n\t\t\ttokens.push({ type });\n\t\t}\n\t\tfunction addSpecialAttribute(name, action) {\n\t\t\ttokens.push({\n\t\t\t\ttype: types_1.SelectorType.Attribute,\n\t\t\t\tname,\n\t\t\t\taction,\n\t\t\t\tvalue: getName(1),\n\t\t\t\tnamespace: null,\n\t\t\t\tignoreCase: \"quirks\"\n\t\t\t});\n\t\t}\n\t\t/**\n\t\t* We have finished parsing the current part of the selector.\n\t\t*\n\t\t* Remove descendant tokens at the end if they exist,\n\t\t* and return the last index, so that parsing can be\n\t\t* picked up from here.\n\t\t*/\n\t\tfunction finalizeSubselector() {\n\t\t\tif (tokens.length && tokens[tokens.length - 1].type === types_1.SelectorType.Descendant) tokens.pop();\n\t\t\tif (tokens.length === 0) throw new Error(\"Empty sub-selector\");\n\t\t\tsubselects.push(tokens);\n\t\t}\n\t\tstripWhitespace(0);\n\t\tif (selector.length === selectorIndex) return selectorIndex;\n\t\tloop: while (selectorIndex < selector.length) {\n\t\t\tvar firstChar = selector.charCodeAt(selectorIndex);\n\t\t\tswitch (firstChar) {\n\t\t\t\tcase 32:\n\t\t\t\tcase 9:\n\t\t\t\tcase 10:\n\t\t\t\tcase 12:\n\t\t\t\tcase 13:\n\t\t\t\t\tif (tokens.length === 0 || tokens[0].type !== types_1.SelectorType.Descendant) {\n\t\t\t\t\t\tensureNotTraversal();\n\t\t\t\t\t\ttokens.push({ type: types_1.SelectorType.Descendant });\n\t\t\t\t\t}\n\t\t\t\t\tstripWhitespace(1);\n\t\t\t\t\tbreak;\n\t\t\t\tcase 62:\n\t\t\t\t\taddTraversal(types_1.SelectorType.Child);\n\t\t\t\t\tstripWhitespace(1);\n\t\t\t\t\tbreak;\n\t\t\t\tcase 60:\n\t\t\t\t\taddTraversal(types_1.SelectorType.Parent);\n\t\t\t\t\tstripWhitespace(1);\n\t\t\t\t\tbreak;\n\t\t\t\tcase 126:\n\t\t\t\t\taddTraversal(types_1.SelectorType.Sibling);\n\t\t\t\t\tstripWhitespace(1);\n\t\t\t\t\tbreak;\n\t\t\t\tcase 43:\n\t\t\t\t\taddTraversal(types_1.SelectorType.Adjacent);\n\t\t\t\t\tstripWhitespace(1);\n\t\t\t\t\tbreak;\n\t\t\t\tcase 46:\n\t\t\t\t\taddSpecialAttribute(\"class\", types_1.AttributeAction.Element);\n\t\t\t\t\tbreak;\n\t\t\t\tcase 35:\n\t\t\t\t\taddSpecialAttribute(\"id\", types_1.AttributeAction.Equals);\n\t\t\t\t\tbreak;\n\t\t\t\tcase 91:\n\t\t\t\t\tstripWhitespace(1);\n\t\t\t\t\tvar name_1 = void 0;\n\t\t\t\t\tvar namespace = null;\n\t\t\t\t\tif (selector.charCodeAt(selectorIndex) === 124) name_1 = getName(1);\n\t\t\t\t\telse if (selector.startsWith(\"*|\", selectorIndex)) {\n\t\t\t\t\t\tnamespace = \"*\";\n\t\t\t\t\t\tname_1 = getName(2);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tname_1 = getName(0);\n\t\t\t\t\t\tif (selector.charCodeAt(selectorIndex) === 124 && selector.charCodeAt(selectorIndex + 1) !== 61) {\n\t\t\t\t\t\t\tnamespace = name_1;\n\t\t\t\t\t\t\tname_1 = getName(1);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tstripWhitespace(0);\n\t\t\t\t\tvar action = types_1.AttributeAction.Exists;\n\t\t\t\t\tvar possibleAction = actionTypes.get(selector.charCodeAt(selectorIndex));\n\t\t\t\t\tif (possibleAction) {\n\t\t\t\t\t\taction = possibleAction;\n\t\t\t\t\t\tif (selector.charCodeAt(selectorIndex + 1) !== 61) throw new Error(\"Expected `=`\");\n\t\t\t\t\t\tstripWhitespace(2);\n\t\t\t\t\t} else if (selector.charCodeAt(selectorIndex) === 61) {\n\t\t\t\t\t\taction = types_1.AttributeAction.Equals;\n\t\t\t\t\t\tstripWhitespace(1);\n\t\t\t\t\t}\n\t\t\t\t\tvar value = \"\";\n\t\t\t\t\tvar ignoreCase = null;\n\t\t\t\t\tif (action !== \"exists\") {\n\t\t\t\t\t\tif (isQuote(selector.charCodeAt(selectorIndex))) {\n\t\t\t\t\t\t\tvar quote = selector.charCodeAt(selectorIndex);\n\t\t\t\t\t\t\tvar sectionEnd = selectorIndex + 1;\n\t\t\t\t\t\t\twhile (sectionEnd < selector.length && (selector.charCodeAt(sectionEnd) !== quote || isEscaped(sectionEnd))) sectionEnd += 1;\n\t\t\t\t\t\t\tif (selector.charCodeAt(sectionEnd) !== quote) throw new Error(\"Attribute value didn't end\");\n\t\t\t\t\t\t\tvalue = unescapeCSS(selector.slice(selectorIndex + 1, sectionEnd));\n\t\t\t\t\t\t\tselectorIndex = sectionEnd + 1;\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tvar valueStart = selectorIndex;\n\t\t\t\t\t\t\twhile (selectorIndex < selector.length && (!isWhitespace(selector.charCodeAt(selectorIndex)) && selector.charCodeAt(selectorIndex) !== 93 || isEscaped(selectorIndex))) selectorIndex += 1;\n\t\t\t\t\t\t\tvalue = unescapeCSS(selector.slice(valueStart, selectorIndex));\n\t\t\t\t\t\t}\n\t\t\t\t\t\tstripWhitespace(0);\n\t\t\t\t\t\tvar forceIgnore = selector.charCodeAt(selectorIndex) | 32;\n\t\t\t\t\t\tif (forceIgnore === 115) {\n\t\t\t\t\t\t\tignoreCase = false;\n\t\t\t\t\t\t\tstripWhitespace(1);\n\t\t\t\t\t\t} else if (forceIgnore === 105) {\n\t\t\t\t\t\t\tignoreCase = true;\n\t\t\t\t\t\t\tstripWhitespace(1);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif (selector.charCodeAt(selectorIndex) !== 93) throw new Error(\"Attribute selector didn't terminate\");\n\t\t\t\t\tselectorIndex += 1;\n\t\t\t\t\tvar attributeSelector = {\n\t\t\t\t\t\ttype: types_1.SelectorType.Attribute,\n\t\t\t\t\t\tname: name_1,\n\t\t\t\t\t\taction,\n\t\t\t\t\t\tvalue,\n\t\t\t\t\t\tnamespace,\n\t\t\t\t\t\tignoreCase\n\t\t\t\t\t};\n\t\t\t\t\ttokens.push(attributeSelector);\n\t\t\t\t\tbreak;\n\t\t\t\tcase 58:\n\t\t\t\t\tif (selector.charCodeAt(selectorIndex + 1) === 58) {\n\t\t\t\t\t\ttokens.push({\n\t\t\t\t\t\t\ttype: types_1.SelectorType.PseudoElement,\n\t\t\t\t\t\t\tname: getName(2).toLowerCase(),\n\t\t\t\t\t\t\tdata: selector.charCodeAt(selectorIndex) === 40 ? readValueWithParenthesis() : null\n\t\t\t\t\t\t});\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t\tvar name_2 = getName(1).toLowerCase();\n\t\t\t\t\tvar data = null;\n\t\t\t\t\tif (selector.charCodeAt(selectorIndex) === 40) if (unpackPseudos.has(name_2)) {\n\t\t\t\t\t\tif (isQuote(selector.charCodeAt(selectorIndex + 1))) throw new Error(\"Pseudo-selector \".concat(name_2, \" cannot be quoted\"));\n\t\t\t\t\t\tdata = [];\n\t\t\t\t\t\tselectorIndex = parseSelector(data, selector, selectorIndex + 1);\n\t\t\t\t\t\tif (selector.charCodeAt(selectorIndex) !== 41) throw new Error(\"Missing closing parenthesis in :\".concat(name_2, \" (\").concat(selector, \")\"));\n\t\t\t\t\t\tselectorIndex += 1;\n\t\t\t\t\t} else {\n\t\t\t\t\t\tdata = readValueWithParenthesis();\n\t\t\t\t\t\tif (stripQuotesFromPseudos.has(name_2)) {\n\t\t\t\t\t\t\tvar quot = data.charCodeAt(0);\n\t\t\t\t\t\t\tif (quot === data.charCodeAt(data.length - 1) && isQuote(quot)) data = data.slice(1, -1);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tdata = unescapeCSS(data);\n\t\t\t\t\t}\n\t\t\t\t\ttokens.push({\n\t\t\t\t\t\ttype: types_1.SelectorType.Pseudo,\n\t\t\t\t\t\tname: name_2,\n\t\t\t\t\t\tdata\n\t\t\t\t\t});\n\t\t\t\t\tbreak;\n\t\t\t\tcase 44:\n\t\t\t\t\tfinalizeSubselector();\n\t\t\t\t\ttokens = [];\n\t\t\t\t\tstripWhitespace(1);\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\tif (selector.startsWith(\"/*\", selectorIndex)) {\n\t\t\t\t\t\tvar endIndex = selector.indexOf(\"*/\", selectorIndex + 2);\n\t\t\t\t\t\tif (endIndex < 0) throw new Error(\"Comment was not terminated\");\n\t\t\t\t\t\tselectorIndex = endIndex + 2;\n\t\t\t\t\t\tif (tokens.length === 0) stripWhitespace(0);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\tvar namespace = null;\n\t\t\t\t\tvar name_3 = void 0;\n\t\t\t\t\tif (firstChar === 42) {\n\t\t\t\t\t\tselectorIndex += 1;\n\t\t\t\t\t\tname_3 = \"*\";\n\t\t\t\t\t} else if (firstChar === 124) {\n\t\t\t\t\t\tname_3 = \"\";\n\t\t\t\t\t\tif (selector.charCodeAt(selectorIndex + 1) === 124) {\n\t\t\t\t\t\t\taddTraversal(types_1.SelectorType.ColumnCombinator);\n\t\t\t\t\t\t\tstripWhitespace(2);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t} else if (reName.test(selector.slice(selectorIndex))) name_3 = getName(0);\n\t\t\t\t\telse break loop;\n\t\t\t\t\tif (selector.charCodeAt(selectorIndex) === 124 && selector.charCodeAt(selectorIndex + 1) !== 124) {\n\t\t\t\t\t\tnamespace = name_3;\n\t\t\t\t\t\tif (selector.charCodeAt(selectorIndex + 1) === 42) {\n\t\t\t\t\t\t\tname_3 = \"*\";\n\t\t\t\t\t\t\tselectorIndex += 2;\n\t\t\t\t\t\t} else name_3 = getName(1);\n\t\t\t\t\t}\n\t\t\t\t\ttokens.push(name_3 === \"*\" ? {\n\t\t\t\t\t\ttype: types_1.SelectorType.Universal,\n\t\t\t\t\t\tnamespace\n\t\t\t\t\t} : {\n\t\t\t\t\t\ttype: types_1.SelectorType.Tag,\n\t\t\t\t\t\tname: name_3,\n\t\t\t\t\t\tnamespace\n\t\t\t\t\t});\n\t\t\t}\n\t\t}\n\t\tfinalizeSubselector();\n\t\treturn selectorIndex;\n\t}\n}));\n//#endregion\n//#region node_modules/css-what/lib/commonjs/stringify.js\nvar require_stringify = /* @__PURE__ */ __commonJSMin(((exports) => {\n\tvar __spreadArray = exports && exports.__spreadArray || function(to, from, pack) {\n\t\tif (pack || arguments.length === 2) {\n\t\t\tfor (var i = 0, l = from.length, ar; i < l; i++) if (ar || !(i in from)) {\n\t\t\t\tif (!ar) ar = Array.prototype.slice.call(from, 0, i);\n\t\t\t\tar[i] = from[i];\n\t\t\t}\n\t\t}\n\t\treturn to.concat(ar || Array.prototype.slice.call(from));\n\t};\n\tObject.defineProperty(exports, \"__esModule\", { value: true });\n\texports.stringify = void 0;\n\tvar types_1 = require_types();\n\tvar attribValChars = [\"\\\\\", \"\\\"\"];\n\tvar pseudoValChars = __spreadArray(__spreadArray([], attribValChars, true), [\"(\", \")\"], false);\n\tvar charsToEscapeInAttributeValue = new Set(attribValChars.map(function(c) {\n\t\treturn c.charCodeAt(0);\n\t}));\n\tvar charsToEscapeInPseudoValue = new Set(pseudoValChars.map(function(c) {\n\t\treturn c.charCodeAt(0);\n\t}));\n\tvar charsToEscapeInName = new Set(__spreadArray(__spreadArray([], pseudoValChars, true), [\n\t\t\"~\",\n\t\t\"^\",\n\t\t\"$\",\n\t\t\"*\",\n\t\t\"+\",\n\t\t\"!\",\n\t\t\"|\",\n\t\t\":\",\n\t\t\"[\",\n\t\t\"]\",\n\t\t\" \",\n\t\t\".\"\n\t], false).map(function(c) {\n\t\treturn c.charCodeAt(0);\n\t}));\n\t/**\n\t* Turns `selector` back into a string.\n\t*\n\t* @param selector Selector to stringify.\n\t*/\n\tfunction stringify(selector) {\n\t\treturn selector.map(function(token) {\n\t\t\treturn token.map(stringifyToken).join(\"\");\n\t\t}).join(\", \");\n\t}\n\texports.stringify = stringify;\n\tfunction stringifyToken(token, index, arr) {\n\t\tswitch (token.type) {\n\t\t\tcase types_1.SelectorType.Child: return index === 0 ? \"> \" : \" > \";\n\t\t\tcase types_1.SelectorType.Parent: return index === 0 ? \"< \" : \" < \";\n\t\t\tcase types_1.SelectorType.Sibling: return index === 0 ? \"~ \" : \" ~ \";\n\t\t\tcase types_1.SelectorType.Adjacent: return index === 0 ? \"+ \" : \" + \";\n\t\t\tcase types_1.SelectorType.Descendant: return \" \";\n\t\t\tcase types_1.SelectorType.ColumnCombinator: return index === 0 ? \"|| \" : \" || \";\n\t\t\tcase types_1.SelectorType.Universal: return token.namespace === \"*\" && index + 1 < arr.length && \"name\" in arr[index + 1] ? \"\" : \"\".concat(getNamespace(token.namespace), \"*\");\n\t\t\tcase types_1.SelectorType.Tag: return getNamespacedName(token);\n\t\t\tcase types_1.SelectorType.PseudoElement: return \"::\".concat(escapeName(token.name, charsToEscapeInName)).concat(token.data === null ? \"\" : \"(\".concat(escapeName(token.data, charsToEscapeInPseudoValue), \")\"));\n\t\t\tcase types_1.SelectorType.Pseudo: return \":\".concat(escapeName(token.name, charsToEscapeInName)).concat(token.data === null ? \"\" : \"(\".concat(typeof token.data === \"string\" ? escapeName(token.data, charsToEscapeInPseudoValue) : stringify(token.data), \")\"));\n\t\t\tcase types_1.SelectorType.Attribute:\n\t\t\t\tif (token.name === \"id\" && token.action === types_1.AttributeAction.Equals && token.ignoreCase === \"quirks\" && !token.namespace) return \"#\".concat(escapeName(token.value, charsToEscapeInName));\n\t\t\t\tif (token.name === \"class\" && token.action === types_1.AttributeAction.Element && token.ignoreCase === \"quirks\" && !token.namespace) return \".\".concat(escapeName(token.value, charsToEscapeInName));\n\t\t\t\tvar name_1 = getNamespacedName(token);\n\t\t\t\tif (token.action === types_1.AttributeAction.Exists) return \"[\".concat(name_1, \"]\");\n\t\t\t\treturn \"[\".concat(name_1).concat(getActionValue(token.action), \"=\\\"\").concat(escapeName(token.value, charsToEscapeInAttributeValue), \"\\\"\").concat(token.ignoreCase === null ? \"\" : token.ignoreCase ? \" i\" : \" s\", \"]\");\n\t\t}\n\t}\n\tfunction getActionValue(action) {\n\t\tswitch (action) {\n\t\t\tcase types_1.AttributeAction.Equals: return \"\";\n\t\t\tcase types_1.AttributeAction.Element: return \"~\";\n\t\t\tcase types_1.AttributeAction.Start: return \"^\";\n\t\t\tcase types_1.AttributeAction.End: return \"$\";\n\t\t\tcase types_1.AttributeAction.Any: return \"*\";\n\t\t\tcase types_1.AttributeAction.Not: return \"!\";\n\t\t\tcase types_1.AttributeAction.Hyphen: return \"|\";\n\t\t\tcase types_1.AttributeAction.Exists: throw new Error(\"Shouldn't be here\");\n\t\t}\n\t}\n\tfunction getNamespacedName(token) {\n\t\treturn \"\".concat(getNamespace(token.namespace)).concat(escapeName(token.name, charsToEscapeInName));\n\t}\n\tfunction getNamespace(namespace) {\n\t\treturn namespace !== null ? \"\".concat(namespace === \"*\" ? \"*\" : escapeName(namespace, charsToEscapeInName), \"|\") : \"\";\n\t}\n\tfunction escapeName(str, charsToEscape) {\n\t\tvar lastIdx = 0;\n\t\tvar ret = \"\";\n\t\tfor (var i = 0; i < str.length; i++) if (charsToEscape.has(str.charCodeAt(i))) {\n\t\t\tret += \"\".concat(str.slice(lastIdx, i), \"\\\\\").concat(str.charAt(i));\n\t\t\tlastIdx = i + 1;\n\t\t}\n\t\treturn ret.length > 0 ? ret + str.slice(lastIdx) : str;\n\t}\n}));\n//#endregion\n//#region node_modules/css-what/lib/commonjs/index.js\nvar require_commonjs = /* @__PURE__ */ __commonJSMin(((exports) => {\n\tvar __createBinding = exports && exports.__createBinding || (Object.create ? (function(o, m, k, k2) {\n\t\tif (k2 === void 0) k2 = k;\n\t\tvar desc = Object.getOwnPropertyDescriptor(m, k);\n\t\tif (!desc || (\"get\" in desc ? !m.__esModule : desc.writable || desc.configurable)) desc = {\n\t\t\tenumerable: true,\n\t\t\tget: function() {\n\t\t\t\treturn m[k];\n\t\t\t}\n\t\t};\n\t\tObject.defineProperty(o, k2, desc);\n\t}) : (function(o, m, k, k2) {\n\t\tif (k2 === void 0) k2 = k;\n\t\to[k2] = m[k];\n\t}));\n\tvar __exportStar = exports && exports.__exportStar || function(m, exports$1) {\n\t\tfor (var p in m) if (p !== \"default\" && !Object.prototype.hasOwnProperty.call(exports$1, p)) __createBinding(exports$1, m, p);\n\t};\n\tObject.defineProperty(exports, \"__esModule\", { value: true });\n\texports.stringify = exports.parse = exports.isTraversal = void 0;\n\t__exportStar(require_types(), exports);\n\tvar parse_1 = require_parse();\n\tObject.defineProperty(exports, \"isTraversal\", {\n\t\tenumerable: true,\n\t\tget: function() {\n\t\t\treturn parse_1.isTraversal;\n\t\t}\n\t});\n\tObject.defineProperty(exports, \"parse\", {\n\t\tenumerable: true,\n\t\tget: function() {\n\t\t\treturn parse_1.parse;\n\t\t}\n\t});\n\tvar stringify_1 = require_stringify();\n\tObject.defineProperty(exports, \"stringify\", {\n\t\tenumerable: true,\n\t\tget: function() {\n\t\t\treturn stringify_1.stringify;\n\t\t}\n\t});\n}));\n//#endregion\n//#region node_modules/css-select/lib/esm/sort.js\nvar import_boolbase = /* @__PURE__ */ __toESM(require_boolbase(), 1);\nvar import_commonjs = require_commonjs();\nconst procedure = /* @__PURE__ */ new Map([\n\t[import_commonjs.SelectorType.Universal, 50],\n\t[import_commonjs.SelectorType.Tag, 30],\n\t[import_commonjs.SelectorType.Attribute, 1],\n\t[import_commonjs.SelectorType.Pseudo, 0]\n]);\nfunction isTraversal(token) {\n\treturn !procedure.has(token.type);\n}\nconst attributes = /* @__PURE__ */ new Map([\n\t[import_commonjs.AttributeAction.Exists, 10],\n\t[import_commonjs.AttributeAction.Equals, 8],\n\t[import_commonjs.AttributeAction.Not, 7],\n\t[import_commonjs.AttributeAction.Start, 6],\n\t[import_commonjs.AttributeAction.End, 6],\n\t[import_commonjs.AttributeAction.Any, 5]\n]);\n/**\n* Sort the parts of the passed selector,\n* as there is potential for optimization\n* (some types of selectors are faster than others)\n*\n* @param arr Selector to sort\n*/\nfunction sortByProcedure(arr) {\n\tconst procs = arr.map(getProcedure);\n\tfor (let i = 1; i < arr.length; i++) {\n\t\tconst procNew = procs[i];\n\t\tif (procNew < 0) continue;\n\t\tfor (let j = i - 1; j >= 0 && procNew < procs[j]; j--) {\n\t\t\tconst token = arr[j + 1];\n\t\t\tarr[j + 1] = arr[j];\n\t\t\tarr[j] = token;\n\t\t\tprocs[j + 1] = procs[j];\n\t\t\tprocs[j] = procNew;\n\t\t}\n\t}\n}\nfunction getProcedure(token) {\n\tvar _a, _b;\n\tlet proc = (_a = procedure.get(token.type)) !== null && _a !== void 0 ? _a : -1;\n\tif (token.type === import_commonjs.SelectorType.Attribute) {\n\t\tproc = (_b = attributes.get(token.action)) !== null && _b !== void 0 ? _b : 4;\n\t\tif (token.action === import_commonjs.AttributeAction.Equals && token.name === \"id\") proc = 9;\n\t\tif (token.ignoreCase) proc >>= 1;\n\t} else if (token.type === import_commonjs.SelectorType.Pseudo) if (!token.data) proc = 3;\n\telse if (token.name === \"has\" || token.name === \"contains\") proc = 0;\n\telse if (Array.isArray(token.data)) {\n\t\tproc = Math.min(...token.data.map((d) => Math.min(...d.map(getProcedure))));\n\t\tif (proc < 0) proc = 0;\n\t} else proc = 2;\n\treturn proc;\n}\n//#endregion\n//#region node_modules/css-select/lib/esm/attributes.js\n/**\n* All reserved characters in a regex, used for escaping.\n*\n* Taken from XRegExp, (c) 2007-2020 Steven Levithan under the MIT license\n* https://github.com/slevithan/xregexp/blob/95eeebeb8fac8754d54eafe2b4743661ac1cf028/src/xregexp.js#L794\n*/\nconst reChars = /[-[\\]{}()*+?.,\\\\^$|#\\s]/g;\nfunction escapeRegex(value) {\n\treturn value.replace(reChars, \"\\\\$&\");\n}\n/**\n* Attributes that are case-insensitive in HTML.\n*\n* @private\n* @see https://html.spec.whatwg.org/multipage/semantics-other.html#case-sensitivity-of-selectors\n*/\nconst caseInsensitiveAttributes = /* @__PURE__ */ new Set([\n\t\"accept\",\n\t\"accept-charset\",\n\t\"align\",\n\t\"alink\",\n\t\"axis\",\n\t\"bgcolor\",\n\t\"charset\",\n\t\"checked\",\n\t\"clear\",\n\t\"codetype\",\n\t\"color\",\n\t\"compact\",\n\t\"declare\",\n\t\"defer\",\n\t\"dir\",\n\t\"direction\",\n\t\"disabled\",\n\t\"enctype\",\n\t\"face\",\n\t\"frame\",\n\t\"hreflang\",\n\t\"http-equiv\",\n\t\"lang\",\n\t\"language\",\n\t\"link\",\n\t\"media\",\n\t\"method\",\n\t\"multiple\",\n\t\"nohref\",\n\t\"noresize\",\n\t\"noshade\",\n\t\"nowrap\",\n\t\"readonly\",\n\t\"rel\",\n\t\"rev\",\n\t\"rules\",\n\t\"scope\",\n\t\"scrolling\",\n\t\"selected\",\n\t\"shape\",\n\t\"target\",\n\t\"text\",\n\t\"type\",\n\t\"valign\",\n\t\"valuetype\",\n\t\"vlink\"\n]);\nfunction shouldIgnoreCase(selector, options) {\n\treturn typeof selector.ignoreCase === \"boolean\" ? selector.ignoreCase : selector.ignoreCase === \"quirks\" ? !!options.quirksMode : !options.xmlMode && caseInsensitiveAttributes.has(selector.name);\n}\n/**\n* Attribute selectors\n*/\nconst attributeRules = {\n\tequals(next, data, options) {\n\t\tconst { adapter } = options;\n\t\tconst { name } = data;\n\t\tlet { value } = data;\n\t\tif (shouldIgnoreCase(data, options)) {\n\t\t\tvalue = value.toLowerCase();\n\t\t\treturn (elem) => {\n\t\t\t\tconst attr = adapter.getAttributeValue(elem, name);\n\t\t\t\treturn attr != null && attr.length === value.length && attr.toLowerCase() === value && next(elem);\n\t\t\t};\n\t\t}\n\t\treturn (elem) => adapter.getAttributeValue(elem, name) === value && next(elem);\n\t},\n\thyphen(next, data, options) {\n\t\tconst { adapter } = options;\n\t\tconst { name } = data;\n\t\tlet { value } = data;\n\t\tconst len = value.length;\n\t\tif (shouldIgnoreCase(data, options)) {\n\t\t\tvalue = value.toLowerCase();\n\t\t\treturn function hyphenIC(elem) {\n\t\t\t\tconst attr = adapter.getAttributeValue(elem, name);\n\t\t\t\treturn attr != null && (attr.length === len || attr.charAt(len) === \"-\") && attr.substr(0, len).toLowerCase() === value && next(elem);\n\t\t\t};\n\t\t}\n\t\treturn function hyphen(elem) {\n\t\t\tconst attr = adapter.getAttributeValue(elem, name);\n\t\t\treturn attr != null && (attr.length === len || attr.charAt(len) === \"-\") && attr.substr(0, len) === value && next(elem);\n\t\t};\n\t},\n\telement(next, data, options) {\n\t\tconst { adapter } = options;\n\t\tconst { name, value } = data;\n\t\tif (/\\s/.test(value)) return import_boolbase.default.falseFunc;\n\t\tconst regex = new RegExp(`(?:^|\\\\s)${escapeRegex(value)}(?:$|\\\\s)`, shouldIgnoreCase(data, options) ? \"i\" : \"\");\n\t\treturn function element(elem) {\n\t\t\tconst attr = adapter.getAttributeValue(elem, name);\n\t\t\treturn attr != null && attr.length >= value.length && regex.test(attr) && next(elem);\n\t\t};\n\t},\n\texists(next, { name }, { adapter }) {\n\t\treturn (elem) => adapter.hasAttrib(elem, name) && next(elem);\n\t},\n\tstart(next, data, options) {\n\t\tconst { adapter } = options;\n\t\tconst { name } = data;\n\t\tlet { value } = data;\n\t\tconst len = value.length;\n\t\tif (len === 0) return import_boolbase.default.falseFunc;\n\t\tif (shouldIgnoreCase(data, options)) {\n\t\t\tvalue = value.toLowerCase();\n\t\t\treturn (elem) => {\n\t\t\t\tconst attr = adapter.getAttributeValue(elem, name);\n\t\t\t\treturn attr != null && attr.length >= len && attr.substr(0, len).toLowerCase() === value && next(elem);\n\t\t\t};\n\t\t}\n\t\treturn (elem) => {\n\t\t\tvar _a;\n\t\t\treturn !!((_a = adapter.getAttributeValue(elem, name)) === null || _a === void 0 ? void 0 : _a.startsWith(value)) && next(elem);\n\t\t};\n\t},\n\tend(next, data, options) {\n\t\tconst { adapter } = options;\n\t\tconst { name } = data;\n\t\tlet { value } = data;\n\t\tconst len = -value.length;\n\t\tif (len === 0) return import_boolbase.default.falseFunc;\n\t\tif (shouldIgnoreCase(data, options)) {\n\t\t\tvalue = value.toLowerCase();\n\t\t\treturn (elem) => {\n\t\t\t\tvar _a;\n\t\t\t\treturn ((_a = adapter.getAttributeValue(elem, name)) === null || _a === void 0 ? void 0 : _a.substr(len).toLowerCase()) === value && next(elem);\n\t\t\t};\n\t\t}\n\t\treturn (elem) => {\n\t\t\tvar _a;\n\t\t\treturn !!((_a = adapter.getAttributeValue(elem, name)) === null || _a === void 0 ? void 0 : _a.endsWith(value)) && next(elem);\n\t\t};\n\t},\n\tany(next, data, options) {\n\t\tconst { adapter } = options;\n\t\tconst { name, value } = data;\n\t\tif (value === \"\") return import_boolbase.default.falseFunc;\n\t\tif (shouldIgnoreCase(data, options)) {\n\t\t\tconst regex = new RegExp(escapeRegex(value), \"i\");\n\t\t\treturn function anyIC(elem) {\n\t\t\t\tconst attr = adapter.getAttributeValue(elem, name);\n\t\t\t\treturn attr != null && attr.length >= value.length && regex.test(attr) && next(elem);\n\t\t\t};\n\t\t}\n\t\treturn (elem) => {\n\t\t\tvar _a;\n\t\t\treturn !!((_a = adapter.getAttributeValue(elem, name)) === null || _a === void 0 ? void 0 : _a.includes(value)) && next(elem);\n\t\t};\n\t},\n\tnot(next, data, options) {\n\t\tconst { adapter } = options;\n\t\tconst { name } = data;\n\t\tlet { value } = data;\n\t\tif (value === \"\") return (elem) => !!adapter.getAttributeValue(elem, name) && next(elem);\n\t\telse if (shouldIgnoreCase(data, options)) {\n\t\t\tvalue = value.toLowerCase();\n\t\t\treturn (elem) => {\n\t\t\t\tconst attr = adapter.getAttributeValue(elem, name);\n\t\t\t\treturn (attr == null || attr.length !== value.length || attr.toLowerCase() !== value) && next(elem);\n\t\t\t};\n\t\t}\n\t\treturn (elem) => adapter.getAttributeValue(elem, name) !== value && next(elem);\n\t}\n};\n//#endregion\n//#region node_modules/nth-check/lib/esm/parse.js\nconst whitespace = /* @__PURE__ */ new Set([\n\t9,\n\t10,\n\t12,\n\t13,\n\t32\n]);\nconst ZERO = \"0\".charCodeAt(0);\nconst NINE = \"9\".charCodeAt(0);\n/**\n* Parses an expression.\n*\n* @throws An `Error` if parsing fails.\n* @returns An array containing the integer step size and the integer offset of the nth rule.\n* @example nthCheck.parse(\"2n+3\"); // returns [2, 3]\n*/\nfunction parse$4(formula) {\n\tformula = formula.trim().toLowerCase();\n\tif (formula === \"even\") return [2, 0];\n\telse if (formula === \"odd\") return [2, 1];\n\tlet idx = 0;\n\tlet a = 0;\n\tlet sign = readSign();\n\tlet number = readNumber();\n\tif (idx < formula.length && formula.charAt(idx) === \"n\") {\n\t\tidx++;\n\t\ta = sign * (number !== null && number !== void 0 ? number : 1);\n\t\tskipWhitespace();\n\t\tif (idx < formula.length) {\n\t\t\tsign = readSign();\n\t\t\tskipWhitespace();\n\t\t\tnumber = readNumber();\n\t\t} else sign = number = 0;\n\t}\n\tif (number === null || idx < formula.length) throw new Error(`n-th rule couldn't be parsed ('${formula}')`);\n\treturn [a, sign * number];\n\tfunction readSign() {\n\t\tif (formula.charAt(idx) === \"-\") {\n\t\t\tidx++;\n\t\t\treturn -1;\n\t\t}\n\t\tif (formula.charAt(idx) === \"+\") idx++;\n\t\treturn 1;\n\t}\n\tfunction readNumber() {\n\t\tconst start = idx;\n\t\tlet value = 0;\n\t\twhile (idx < formula.length && formula.charCodeAt(idx) >= ZERO && formula.charCodeAt(idx) <= NINE) {\n\t\t\tvalue = value * 10 + (formula.charCodeAt(idx) - ZERO);\n\t\t\tidx++;\n\t\t}\n\t\treturn idx === start ? null : value;\n\t}\n\tfunction skipWhitespace() {\n\t\twhile (idx < formula.length && whitespace.has(formula.charCodeAt(idx))) idx++;\n\t}\n}\n//#endregion\n//#region node_modules/nth-check/lib/esm/compile.js\n/**\n* Returns a function that checks if an elements index matches the given rule\n* highly optimized to return the fastest solution.\n*\n* @param parsed A tuple [a, b], as returned by `parse`.\n* @returns A highly optimized function that returns whether an index matches the nth-check.\n* @example\n*\n* ```js\n* const check = nthCheck.compile([2, 3]);\n*\n* check(0); // `false`\n* check(1); // `false`\n* check(2); // `true`\n* check(3); // `false`\n* check(4); // `true`\n* check(5); // `false`\n* check(6); // `true`\n* ```\n*/\nfunction compile$2(parsed) {\n\tconst a = parsed[0];\n\tconst b = parsed[1] - 1;\n\tif (b < 0 && a <= 0) return import_boolbase.default.falseFunc;\n\tif (a === -1) return (index) => index <= b;\n\tif (a === 0) return (index) => index === b;\n\tif (a === 1) return b < 0 ? import_boolbase.default.trueFunc : (index) => index >= b;\n\tconst absA = Math.abs(a);\n\tconst bMod = (b % absA + absA) % absA;\n\treturn a > 1 ? (index) => index >= b && index % absA === bMod : (index) => index <= b && index % absA === bMod;\n}\n//#endregion\n//#region node_modules/nth-check/lib/esm/index.js\n/**\n* Parses and compiles a formula to a highly optimized function.\n* Combination of {@link parse} and {@link compile}.\n*\n* If the formula doesn't match any elements,\n* it returns [`boolbase`](https://github.com/fb55/boolbase)'s `falseFunc`.\n* Otherwise, a function accepting an _index_ is returned, which returns\n* whether or not the passed _index_ matches the formula.\n*\n* Note: The nth-rule starts counting at `1`, the returned function at `0`.\n*\n* @param formula The formula to compile.\n* @example\n* const check = nthCheck(\"2n+3\");\n*\n* check(0); // `false`\n* check(1); // `false`\n* check(2); // `true`\n* check(3); // `false`\n* check(4); // `true`\n* check(5); // `false`\n* check(6); // `true`\n*/\nfunction nthCheck(formula) {\n\treturn compile$2(parse$4(formula));\n}\n//#endregion\n//#region node_modules/css-select/lib/esm/pseudo-selectors/filters.js\nfunction getChildFunc(next, adapter) {\n\treturn (elem) => {\n\t\tconst parent = adapter.getParent(elem);\n\t\treturn parent != null && adapter.isTag(parent) && next(elem);\n\t};\n}\nconst filters = {\n\tcontains(next, text, { adapter }) {\n\t\treturn function contains(elem) {\n\t\t\treturn next(elem) && adapter.getText(elem).includes(text);\n\t\t};\n\t},\n\ticontains(next, text, { adapter }) {\n\t\tconst itext = text.toLowerCase();\n\t\treturn function icontains(elem) {\n\t\t\treturn next(elem) && adapter.getText(elem).toLowerCase().includes(itext);\n\t\t};\n\t},\n\t\"nth-child\"(next, rule, { adapter, equals }) {\n\t\tconst func = nthCheck(rule);\n\t\tif (func === import_boolbase.default.falseFunc) return import_boolbase.default.falseFunc;\n\t\tif (func === import_boolbase.default.trueFunc) return getChildFunc(next, adapter);\n\t\treturn function nthChild(elem) {\n\t\t\tconst siblings = adapter.getSiblings(elem);\n\t\t\tlet pos = 0;\n\t\t\tfor (let i = 0; i < siblings.length; i++) {\n\t\t\t\tif (equals(elem, siblings[i])) break;\n\t\t\t\tif (adapter.isTag(siblings[i])) pos++;\n\t\t\t}\n\t\t\treturn func(pos) && next(elem);\n\t\t};\n\t},\n\t\"nth-last-child\"(next, rule, { adapter, equals }) {\n\t\tconst func = nthCheck(rule);\n\t\tif (func === import_boolbase.default.falseFunc) return import_boolbase.default.falseFunc;\n\t\tif (func === import_boolbase.default.trueFunc) return getChildFunc(next, adapter);\n\t\treturn function nthLastChild(elem) {\n\t\t\tconst siblings = adapter.getSiblings(elem);\n\t\t\tlet pos = 0;\n\t\t\tfor (let i = siblings.length - 1; i >= 0; i--) {\n\t\t\t\tif (equals(elem, siblings[i])) break;\n\t\t\t\tif (adapter.isTag(siblings[i])) pos++;\n\t\t\t}\n\t\t\treturn func(pos) && next(elem);\n\t\t};\n\t},\n\t\"nth-of-type\"(next, rule, { adapter, equals }) {\n\t\tconst func = nthCheck(rule);\n\t\tif (func === import_boolbase.default.falseFunc) return import_boolbase.default.falseFunc;\n\t\tif (func === import_boolbase.default.trueFunc) return getChildFunc(next, adapter);\n\t\treturn function nthOfType(elem) {\n\t\t\tconst siblings = adapter.getSiblings(elem);\n\t\t\tlet pos = 0;\n\t\t\tfor (let i = 0; i < siblings.length; i++) {\n\t\t\t\tconst currentSibling = siblings[i];\n\t\t\t\tif (equals(elem, currentSibling)) break;\n\t\t\t\tif (adapter.isTag(currentSibling) && adapter.getName(currentSibling) === adapter.getName(elem)) pos++;\n\t\t\t}\n\t\t\treturn func(pos) && next(elem);\n\t\t};\n\t},\n\t\"nth-last-of-type\"(next, rule, { adapter, equals }) {\n\t\tconst func = nthCheck(rule);\n\t\tif (func === import_boolbase.default.falseFunc) return import_boolbase.default.falseFunc;\n\t\tif (func === import_boolbase.default.trueFunc) return getChildFunc(next, adapter);\n\t\treturn function nthLastOfType(elem) {\n\t\t\tconst siblings = adapter.getSiblings(elem);\n\t\t\tlet pos = 0;\n\t\t\tfor (let i = siblings.length - 1; i >= 0; i--) {\n\t\t\t\tconst currentSibling = siblings[i];\n\t\t\t\tif (equals(elem, currentSibling)) break;\n\t\t\t\tif (adapter.isTag(currentSibling) && adapter.getName(currentSibling) === adapter.getName(elem)) pos++;\n\t\t\t}\n\t\t\treturn func(pos) && next(elem);\n\t\t};\n\t},\n\troot(next, _rule, { adapter }) {\n\t\treturn (elem) => {\n\t\t\tconst parent = adapter.getParent(elem);\n\t\t\treturn (parent == null || !adapter.isTag(parent)) && next(elem);\n\t\t};\n\t},\n\tscope(next, rule, options, context) {\n\t\tconst { equals } = options;\n\t\tif (!context || context.length === 0) return filters[\"root\"](next, rule, options);\n\t\tif (context.length === 1) return (elem) => equals(context[0], elem) && next(elem);\n\t\treturn (elem) => context.includes(elem) && next(elem);\n\t},\n\thover: dynamicStatePseudo(\"isHovered\"),\n\tvisited: dynamicStatePseudo(\"isVisited\"),\n\tactive: dynamicStatePseudo(\"isActive\")\n};\n/**\n* Dynamic state pseudos. These depend on optional Adapter methods.\n*\n* @param name The name of the adapter method to call.\n* @returns Pseudo for the `filters` object.\n*/\nfunction dynamicStatePseudo(name) {\n\treturn function dynamicPseudo(next, _rule, { adapter }) {\n\t\tconst func = adapter[name];\n\t\tif (typeof func !== \"function\") return import_boolbase.default.falseFunc;\n\t\treturn function active(elem) {\n\t\t\treturn func(elem) && next(elem);\n\t\t};\n\t};\n}\n//#endregion\n//#region node_modules/css-select/lib/esm/pseudo-selectors/pseudos.js\nconst pseudos = {\n\tempty(elem, { adapter }) {\n\t\treturn !adapter.getChildren(elem).some((elem) => adapter.isTag(elem) || adapter.getText(elem) !== \"\");\n\t},\n\t\"first-child\"(elem, { adapter, equals }) {\n\t\tif (adapter.prevElementSibling) return adapter.prevElementSibling(elem) == null;\n\t\tconst firstChild = adapter.getSiblings(elem).find((elem) => adapter.isTag(elem));\n\t\treturn firstChild != null && equals(elem, firstChild);\n\t},\n\t\"last-child\"(elem, { adapter, equals }) {\n\t\tconst siblings = adapter.getSiblings(elem);\n\t\tfor (let i = siblings.length - 1; i >= 0; i--) {\n\t\t\tif (equals(elem, siblings[i])) return true;\n\t\t\tif (adapter.isTag(siblings[i])) break;\n\t\t}\n\t\treturn false;\n\t},\n\t\"first-of-type\"(elem, { adapter, equals }) {\n\t\tconst siblings = adapter.getSiblings(elem);\n\t\tconst elemName = adapter.getName(elem);\n\t\tfor (let i = 0; i < siblings.length; i++) {\n\t\t\tconst currentSibling = siblings[i];\n\t\t\tif (equals(elem, currentSibling)) return true;\n\t\t\tif (adapter.isTag(currentSibling) && adapter.getName(currentSibling) === elemName) break;\n\t\t}\n\t\treturn false;\n\t},\n\t\"last-of-type\"(elem, { adapter, equals }) {\n\t\tconst siblings = adapter.getSiblings(elem);\n\t\tconst elemName = adapter.getName(elem);\n\t\tfor (let i = siblings.length - 1; i >= 0; i--) {\n\t\t\tconst currentSibling = siblings[i];\n\t\t\tif (equals(elem, currentSibling)) return true;\n\t\t\tif (adapter.isTag(currentSibling) && adapter.getName(currentSibling) === elemName) break;\n\t\t}\n\t\treturn false;\n\t},\n\t\"only-of-type\"(elem, { adapter, equals }) {\n\t\tconst elemName = adapter.getName(elem);\n\t\treturn adapter.getSiblings(elem).every((sibling) => equals(elem, sibling) || !adapter.isTag(sibling) || adapter.getName(sibling) !== elemName);\n\t},\n\t\"only-child\"(elem, { adapter, equals }) {\n\t\treturn adapter.getSiblings(elem).every((sibling) => equals(elem, sibling) || !adapter.isTag(sibling));\n\t}\n};\nfunction verifyPseudoArgs(func, name, subselect, argIndex) {\n\tif (subselect === null) {\n\t\tif (func.length > argIndex) throw new Error(`Pseudo-class :${name} requires an argument`);\n\t} else if (func.length === argIndex) throw new Error(`Pseudo-class :${name} doesn't have any arguments`);\n}\n//#endregion\n//#region node_modules/css-select/lib/esm/pseudo-selectors/aliases.js\n/**\n* Aliases are pseudos that are expressed as selectors.\n*/\nconst aliases = {\n\t\"any-link\": \":is(a, area, link)[href]\",\n\tlink: \":any-link:not(:visited)\",\n\tdisabled: `:is(\n :is(button, input, select, textarea, optgroup, option)[disabled],\n optgroup[disabled] > option,\n fieldset[disabled]:not(fieldset[disabled] legend:first-of-type *)\n )`,\n\tenabled: \":not(:disabled)\",\n\tchecked: \":is(:is(input[type=radio], input[type=checkbox])[checked], option:selected)\",\n\trequired: \":is(input, select, textarea)[required]\",\n\toptional: \":is(input, select, textarea):not([required])\",\n\tselected: \"option:is([selected], select:not([multiple]):not(:has(> option[selected])) > :first-of-type)\",\n\tcheckbox: \"[type=checkbox]\",\n\tfile: \"[type=file]\",\n\tpassword: \"[type=password]\",\n\tradio: \"[type=radio]\",\n\treset: \"[type=reset]\",\n\timage: \"[type=image]\",\n\tsubmit: \"[type=submit]\",\n\tparent: \":not(:empty)\",\n\theader: \":is(h1, h2, h3, h4, h5, h6)\",\n\tbutton: \":is(button, input[type=button])\",\n\tinput: \":is(input, textarea, select, button)\",\n\ttext: \"input:is(:not([type!='']), [type=text])\"\n};\n//#endregion\n//#region node_modules/css-select/lib/esm/pseudo-selectors/subselects.js\n/** Used as a placeholder for :has. Will be replaced with the actual element. */\nconst PLACEHOLDER_ELEMENT = {};\nfunction ensureIsTag(next, adapter) {\n\tif (next === import_boolbase.default.falseFunc) return import_boolbase.default.falseFunc;\n\treturn (elem) => adapter.isTag(elem) && next(elem);\n}\nfunction getNextSiblings(elem, adapter) {\n\tconst siblings = adapter.getSiblings(elem);\n\tif (siblings.length <= 1) return [];\n\tconst elemIndex = siblings.indexOf(elem);\n\tif (elemIndex < 0 || elemIndex === siblings.length - 1) return [];\n\treturn siblings.slice(elemIndex + 1).filter(adapter.isTag);\n}\nfunction copyOptions(options) {\n\treturn {\n\t\txmlMode: !!options.xmlMode,\n\t\tlowerCaseAttributeNames: !!options.lowerCaseAttributeNames,\n\t\tlowerCaseTags: !!options.lowerCaseTags,\n\t\tquirksMode: !!options.quirksMode,\n\t\tcacheResults: !!options.cacheResults,\n\t\tpseudos: options.pseudos,\n\t\tadapter: options.adapter,\n\t\tequals: options.equals\n\t};\n}\nconst is$1 = (next, token, options, context, compileToken) => {\n\tconst func = compileToken(token, copyOptions(options), context);\n\treturn func === import_boolbase.default.trueFunc ? next : func === import_boolbase.default.falseFunc ? import_boolbase.default.falseFunc : (elem) => func(elem) && next(elem);\n};\nconst subselects = {\n\tis: is$1,\n\t/**\n\t* `:matches` and `:where` are aliases for `:is`.\n\t*/\n\tmatches: is$1,\n\twhere: is$1,\n\tnot(next, token, options, context, compileToken) {\n\t\tconst func = compileToken(token, copyOptions(options), context);\n\t\treturn func === import_boolbase.default.falseFunc ? next : func === import_boolbase.default.trueFunc ? import_boolbase.default.falseFunc : (elem) => !func(elem) && next(elem);\n\t},\n\thas(next, subselect, options, _context, compileToken) {\n\t\tconst { adapter } = options;\n\t\tconst opts = copyOptions(options);\n\t\topts.relativeSelector = true;\n\t\tconst context = subselect.some((s) => s.some(isTraversal)) ? [PLACEHOLDER_ELEMENT] : void 0;\n\t\tconst compiled = compileToken(subselect, opts, context);\n\t\tif (compiled === import_boolbase.default.falseFunc) return import_boolbase.default.falseFunc;\n\t\tconst hasElement = ensureIsTag(compiled, adapter);\n\t\tif (context && compiled !== import_boolbase.default.trueFunc) {\n\t\t\tconst { shouldTestNextSiblings = false } = compiled;\n\t\t\treturn (elem) => {\n\t\t\t\tif (!next(elem)) return false;\n\t\t\t\tcontext[0] = elem;\n\t\t\t\tconst childs = adapter.getChildren(elem);\n\t\t\t\tconst nextElements = shouldTestNextSiblings ? [...childs, ...getNextSiblings(elem, adapter)] : childs;\n\t\t\t\treturn adapter.existsOne(hasElement, nextElements);\n\t\t\t};\n\t\t}\n\t\treturn (elem) => next(elem) && adapter.existsOne(hasElement, adapter.getChildren(elem));\n\t}\n};\n//#endregion\n//#region node_modules/css-select/lib/esm/pseudo-selectors/index.js\nfunction compilePseudoSelector(next, selector, options, context, compileToken) {\n\tvar _a;\n\tconst { name, data } = selector;\n\tif (Array.isArray(data)) {\n\t\tif (!(name in subselects)) throw new Error(`Unknown pseudo-class :${name}(${data})`);\n\t\treturn subselects[name](next, data, options, context, compileToken);\n\t}\n\tconst userPseudo = (_a = options.pseudos) === null || _a === void 0 ? void 0 : _a[name];\n\tconst stringPseudo = typeof userPseudo === \"string\" ? userPseudo : aliases[name];\n\tif (typeof stringPseudo === \"string\") {\n\t\tif (data != null) throw new Error(`Pseudo ${name} doesn't have any arguments`);\n\t\tconst alias = (0, import_commonjs.parse)(stringPseudo);\n\t\treturn subselects[\"is\"](next, alias, options, context, compileToken);\n\t}\n\tif (typeof userPseudo === \"function\") {\n\t\tverifyPseudoArgs(userPseudo, name, data, 1);\n\t\treturn (elem) => userPseudo(elem, data) && next(elem);\n\t}\n\tif (name in filters) return filters[name](next, data, options, context);\n\tif (name in pseudos) {\n\t\tconst pseudo = pseudos[name];\n\t\tverifyPseudoArgs(pseudo, name, data, 2);\n\t\treturn (elem) => pseudo(elem, options, data) && next(elem);\n\t}\n\tthrow new Error(`Unknown pseudo-class :${name}`);\n}\n//#endregion\n//#region node_modules/css-select/lib/esm/general.js\nfunction getElementParent(node, adapter) {\n\tconst parent = adapter.getParent(node);\n\tif (parent && adapter.isTag(parent)) return parent;\n\treturn null;\n}\nfunction compileGeneralSelector(next, selector, options, context, compileToken) {\n\tconst { adapter, equals } = options;\n\tswitch (selector.type) {\n\t\tcase import_commonjs.SelectorType.PseudoElement: throw new Error(\"Pseudo-elements are not supported by css-select\");\n\t\tcase import_commonjs.SelectorType.ColumnCombinator: throw new Error(\"Column combinators are not yet supported by css-select\");\n\t\tcase import_commonjs.SelectorType.Attribute:\n\t\t\tif (selector.namespace != null) throw new Error(\"Namespaced attributes are not yet supported by css-select\");\n\t\t\tif (!options.xmlMode || options.lowerCaseAttributeNames) selector.name = selector.name.toLowerCase();\n\t\t\treturn attributeRules[selector.action](next, selector, options);\n\t\tcase import_commonjs.SelectorType.Pseudo: return compilePseudoSelector(next, selector, options, context, compileToken);\n\t\tcase import_commonjs.SelectorType.Tag: {\n\t\t\tif (selector.namespace != null) throw new Error(\"Namespaced tag names are not yet supported by css-select\");\n\t\t\tlet { name } = selector;\n\t\t\tif (!options.xmlMode || options.lowerCaseTags) name = name.toLowerCase();\n\t\t\treturn function tag(elem) {\n\t\t\t\treturn adapter.getName(elem) === name && next(elem);\n\t\t\t};\n\t\t}\n\t\tcase import_commonjs.SelectorType.Descendant: {\n\t\t\tif (options.cacheResults === false || typeof WeakSet === \"undefined\") return function descendant(elem) {\n\t\t\t\tlet current = elem;\n\t\t\t\twhile (current = getElementParent(current, adapter)) if (next(current)) return true;\n\t\t\t\treturn false;\n\t\t\t};\n\t\t\tconst isFalseCache = /* @__PURE__ */ new WeakSet();\n\t\t\treturn function cachedDescendant(elem) {\n\t\t\t\tlet current = elem;\n\t\t\t\twhile (current = getElementParent(current, adapter)) if (!isFalseCache.has(current)) {\n\t\t\t\t\tif (adapter.isTag(current) && next(current)) return true;\n\t\t\t\t\tisFalseCache.add(current);\n\t\t\t\t}\n\t\t\t\treturn false;\n\t\t\t};\n\t\t}\n\t\tcase \"_flexibleDescendant\": return function flexibleDescendant(elem) {\n\t\t\tlet current = elem;\n\t\t\tdo\n\t\t\t\tif (next(current)) return true;\n\t\t\twhile (current = getElementParent(current, adapter));\n\t\t\treturn false;\n\t\t};\n\t\tcase import_commonjs.SelectorType.Parent: return function parent(elem) {\n\t\t\treturn adapter.getChildren(elem).some((elem) => adapter.isTag(elem) && next(elem));\n\t\t};\n\t\tcase import_commonjs.SelectorType.Child: return function child(elem) {\n\t\t\tconst parent = adapter.getParent(elem);\n\t\t\treturn parent != null && adapter.isTag(parent) && next(parent);\n\t\t};\n\t\tcase import_commonjs.SelectorType.Sibling: return function sibling(elem) {\n\t\t\tconst siblings = adapter.getSiblings(elem);\n\t\t\tfor (let i = 0; i < siblings.length; i++) {\n\t\t\t\tconst currentSibling = siblings[i];\n\t\t\t\tif (equals(elem, currentSibling)) break;\n\t\t\t\tif (adapter.isTag(currentSibling) && next(currentSibling)) return true;\n\t\t\t}\n\t\t\treturn false;\n\t\t};\n\t\tcase import_commonjs.SelectorType.Adjacent:\n\t\t\tif (adapter.prevElementSibling) return function adjacent(elem) {\n\t\t\t\tconst previous = adapter.prevElementSibling(elem);\n\t\t\t\treturn previous != null && next(previous);\n\t\t\t};\n\t\t\treturn function adjacent(elem) {\n\t\t\t\tconst siblings = adapter.getSiblings(elem);\n\t\t\t\tlet lastElement;\n\t\t\t\tfor (let i = 0; i < siblings.length; i++) {\n\t\t\t\t\tconst currentSibling = siblings[i];\n\t\t\t\t\tif (equals(elem, currentSibling)) break;\n\t\t\t\t\tif (adapter.isTag(currentSibling)) lastElement = currentSibling;\n\t\t\t\t}\n\t\t\t\treturn !!lastElement && next(lastElement);\n\t\t\t};\n\t\tcase import_commonjs.SelectorType.Universal:\n\t\t\tif (selector.namespace != null && selector.namespace !== \"*\") throw new Error(\"Namespaced universal selectors are not yet supported by css-select\");\n\t\t\treturn next;\n\t}\n}\n//#endregion\n//#region node_modules/css-select/lib/esm/compile.js\n/**\n* Compiles a selector to an executable function.\n*\n* @param selector Selector to compile.\n* @param options Compilation options.\n* @param context Optional context for the selector.\n*/\nfunction compile$1(selector, options, context) {\n\treturn ensureIsTag(compileUnsafe(selector, options, context), options.adapter);\n}\nfunction compileUnsafe(selector, options, context) {\n\treturn compileToken(typeof selector === \"string\" ? (0, import_commonjs.parse)(selector) : selector, options, context);\n}\nfunction includesScopePseudo(t) {\n\treturn t.type === import_commonjs.SelectorType.Pseudo && (t.name === \"scope\" || Array.isArray(t.data) && t.data.some((data) => data.some(includesScopePseudo)));\n}\nconst DESCENDANT_TOKEN = { type: import_commonjs.SelectorType.Descendant };\nconst FLEXIBLE_DESCENDANT_TOKEN = { type: \"_flexibleDescendant\" };\nconst SCOPE_TOKEN = {\n\ttype: import_commonjs.SelectorType.Pseudo,\n\tname: \"scope\",\n\tdata: null\n};\nfunction absolutize(token, { adapter }, context) {\n\tconst hasContext = !!(context === null || context === void 0 ? void 0 : context.every((e) => {\n\t\tconst parent = adapter.isTag(e) && adapter.getParent(e);\n\t\treturn e === PLACEHOLDER_ELEMENT || parent && adapter.isTag(parent);\n\t}));\n\tfor (const t of token) {\n\t\tif (t.length > 0 && isTraversal(t[0]) && t[0].type !== import_commonjs.SelectorType.Descendant) {} else if (hasContext && !t.some(includesScopePseudo)) t.unshift(DESCENDANT_TOKEN);\n\t\telse continue;\n\t\tt.unshift(SCOPE_TOKEN);\n\t}\n}\nfunction compileToken(token, options, context) {\n\tvar _a;\n\ttoken.forEach(sortByProcedure);\n\tcontext = (_a = options.context) !== null && _a !== void 0 ? _a : context;\n\tconst isArrayContext = Array.isArray(context);\n\tconst finalContext = context && (Array.isArray(context) ? context : [context]);\n\tif (options.relativeSelector !== false) absolutize(token, options, finalContext);\n\telse if (token.some((t) => t.length > 0 && isTraversal(t[0]))) throw new Error(\"Relative selectors are not allowed when the `relativeSelector` option is disabled\");\n\tlet shouldTestNextSiblings = false;\n\tconst query = token.map((rules) => {\n\t\tif (rules.length >= 2) {\n\t\t\tconst [first, second] = rules;\n\t\t\tif (first.type !== import_commonjs.SelectorType.Pseudo || first.name !== \"scope\") {} else if (isArrayContext && second.type === import_commonjs.SelectorType.Descendant) rules[1] = FLEXIBLE_DESCENDANT_TOKEN;\n\t\t\telse if (second.type === import_commonjs.SelectorType.Adjacent || second.type === import_commonjs.SelectorType.Sibling) shouldTestNextSiblings = true;\n\t\t}\n\t\treturn compileRules(rules, options, finalContext);\n\t}).reduce(reduceRules, import_boolbase.default.falseFunc);\n\tquery.shouldTestNextSiblings = shouldTestNextSiblings;\n\treturn query;\n}\nfunction compileRules(rules, options, context) {\n\tvar _a;\n\treturn rules.reduce((previous, rule) => previous === import_boolbase.default.falseFunc ? import_boolbase.default.falseFunc : compileGeneralSelector(previous, rule, options, context, compileToken), (_a = options.rootFunc) !== null && _a !== void 0 ? _a : import_boolbase.default.trueFunc);\n}\nfunction reduceRules(a, b) {\n\tif (b === import_boolbase.default.falseFunc || a === import_boolbase.default.trueFunc) return a;\n\tif (a === import_boolbase.default.falseFunc || b === import_boolbase.default.trueFunc) return b;\n\treturn function combine(elem) {\n\t\treturn a(elem) || b(elem);\n\t};\n}\n//#endregion\n//#region node_modules/css-select/lib/esm/index.js\nconst defaultEquals = (a, b) => a === b;\nconst defaultOptions = {\n\tadapter: esm_exports,\n\tequals: defaultEquals\n};\nfunction convertOptionFormats(options) {\n\tvar _a, _b, _c, _d;\n\tconst opts = options !== null && options !== void 0 ? options : defaultOptions;\n\t(_a = opts.adapter) !== null && _a !== void 0 || (opts.adapter = esm_exports);\n\t(_b = opts.equals) !== null && _b !== void 0 || (opts.equals = (_d = (_c = opts.adapter) === null || _c === void 0 ? void 0 : _c.equals) !== null && _d !== void 0 ? _d : defaultEquals);\n\treturn opts;\n}\nfunction getSelectorFunc(searchFunc) {\n\treturn function select(query, elements, options) {\n\t\tconst opts = convertOptionFormats(options);\n\t\tif (typeof query !== \"function\") query = compileUnsafe(query, opts, elements);\n\t\tconst filteredElements = prepareContext(elements, opts.adapter, query.shouldTestNextSiblings);\n\t\treturn searchFunc(query, filteredElements, opts);\n\t};\n}\nfunction prepareContext(elems, adapter, shouldTestNextSiblings = false) {\n\tif (shouldTestNextSiblings) elems = appendNextSiblings(elems, adapter);\n\treturn Array.isArray(elems) ? adapter.removeSubsets(elems) : adapter.getChildren(elems);\n}\nfunction appendNextSiblings(elem, adapter) {\n\tconst elems = Array.isArray(elem) ? elem.slice(0) : [elem];\n\tconst elemsLength = elems.length;\n\tfor (let i = 0; i < elemsLength; i++) {\n\t\tconst nextSiblings = getNextSiblings(elems[i], adapter);\n\t\telems.push(...nextSiblings);\n\t}\n\treturn elems;\n}\n/**\n* @template Node The generic Node type for the DOM adapter being used.\n* @template ElementNode The Node type for elements for the DOM adapter being used.\n* @param elems Elements to query. If it is an element, its children will be queried..\n* @param query can be either a CSS selector string or a compiled query function.\n* @param [options] options for querying the document.\n* @see compile for supported selector queries.\n* @returns All matching elements.\n*\n*/\nconst selectAll = getSelectorFunc((query, elems, options) => query === import_boolbase.default.falseFunc || !elems || elems.length === 0 ? [] : options.adapter.findAll(query, elems));\n/**\n* @template Node The generic Node type for the DOM adapter being used.\n* @template ElementNode The Node type for elements for the DOM adapter being used.\n* @param elems Elements to query. If it is an element, its children will be queried..\n* @param query can be either a CSS selector string or a compiled query function.\n* @param [options] options for querying the document.\n* @see compile for supported selector queries.\n* @returns the first match, or null if there was no match.\n*/\nconst selectOne = getSelectorFunc((query, elems, options) => query === import_boolbase.default.falseFunc || !elems || elems.length === 0 ? null : options.adapter.findOne(query, elems));\n/**\n* Tests whether or not an element is matched by query.\n*\n* @template Node The generic Node type for the DOM adapter being used.\n* @template ElementNode The Node type for elements for the DOM adapter being used.\n* @param elem The element to test if it matches the query.\n* @param query can be either a CSS selector string or a compiled query function.\n* @param [options] options for querying the document.\n* @see compile for supported selector queries.\n* @returns\n*/\nfunction is(elem, query, options) {\n\tconst opts = convertOptionFormats(options);\n\treturn (typeof query === \"function\" ? query : compile$1(query, opts))(elem);\n}\n//#endregion\n//#region src/back.ts\nfunction arr_back(arr) {\n\treturn arr[arr.length - 1];\n}\n//#endregion\n//#region src/matcher.ts\nfunction isTag(node) {\n\treturn node && node.nodeType === 1;\n}\nfunction getAttributeValue(elem, name) {\n\treturn isTag(elem) ? elem.getAttribute(name) : void 0;\n}\nfunction getName(elem) {\n\treturn (elem && elem.rawTagName || \"\").toLowerCase();\n}\nfunction getChildren(node) {\n\treturn node && node.childNodes;\n}\nfunction getParent(node) {\n\treturn node ? node.parentNode : null;\n}\nfunction getText(node) {\n\treturn node.text;\n}\nfunction removeSubsets(nodes) {\n\tlet idx = nodes.length;\n\tlet node;\n\tlet ancestor;\n\tlet replace;\n\twhile (--idx > -1) {\n\t\tnode = ancestor = nodes[idx];\n\t\tnodes[idx] = null;\n\t\treplace = true;\n\t\twhile (ancestor) {\n\t\t\tif (nodes.indexOf(ancestor) > -1) {\n\t\t\t\treplace = false;\n\t\t\t\tnodes.splice(idx, 1);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tancestor = getParent(ancestor);\n\t\t}\n\t\tif (replace) nodes[idx] = node;\n\t}\n\treturn nodes;\n}\nfunction existsOne(test, elems) {\n\treturn elems.some((elem) => {\n\t\treturn isTag(elem) ? test(elem) || existsOne(test, getChildren(elem)) : false;\n\t});\n}\nfunction getSiblings(node) {\n\tconst parent = getParent(node);\n\treturn parent ? getChildren(parent) : [];\n}\nfunction hasAttrib(elem, name) {\n\treturn getAttributeValue(elem, name) !== void 0;\n}\nfunction findOne(test, elems) {\n\tlet elem = null;\n\tfor (let i = 0, l = elems === null || elems === void 0 ? void 0 : elems.length; i < l && !elem; i++) {\n\t\tconst el = elems[i];\n\t\tif (test(el)) elem = el;\n\t\telse {\n\t\t\tconst childs = getChildren(el);\n\t\t\tif (childs && childs.length > 0) elem = findOne(test, childs);\n\t\t}\n\t}\n\treturn elem;\n}\nfunction findAll(test, nodes) {\n\tlet result = [];\n\tfor (let i = 0, j = nodes.length; i < j; i++) {\n\t\tconst node = nodes[i];\n\t\tif (!isTag(node)) continue;\n\t\tif (test(node)) result.push(node);\n\t\tconst childs = getChildren(node);\n\t\tif (childs) result = result.concat(findAll(test, childs));\n\t}\n\treturn result;\n}\nconst matcher = {\n\tisTag,\n\tgetAttributeValue,\n\tgetName,\n\tgetChildren,\n\tgetParent,\n\tgetText,\n\tremoveSubsets,\n\texistsOne,\n\tgetSiblings,\n\thasAttrib,\n\tfindOne,\n\tfindAll\n};\n//#endregion\n//#region src/void-tag.ts\nvar VoidTag = class {\n\tconstructor(addClosingSlash = false, tags) {\n\t\tthis.addClosingSlash = addClosingSlash;\n\t\tif (Array.isArray(tags)) this.voidTags = tags.reduce((set, tag) => {\n\t\t\treturn set.add(tag.toLowerCase()).add(tag.toUpperCase()).add(tag);\n\t\t}, /* @__PURE__ */ new Set());\n\t\telse this.voidTags = [\n\t\t\t\"area\",\n\t\t\t\"base\",\n\t\t\t\"br\",\n\t\t\t\"col\",\n\t\t\t\"embed\",\n\t\t\t\"hr\",\n\t\t\t\"img\",\n\t\t\t\"input\",\n\t\t\t\"link\",\n\t\t\t\"meta\",\n\t\t\t\"param\",\n\t\t\t\"source\",\n\t\t\t\"track\",\n\t\t\t\"wbr\"\n\t\t].reduce((set, tag) => {\n\t\t\treturn set.add(tag.toLowerCase()).add(tag.toUpperCase()).add(tag);\n\t\t}, /* @__PURE__ */ new Set());\n\t}\n\tformatNode(tag, attrs, innerHTML) {\n\t\tconst addClosingSlash = this.addClosingSlash;\n\t\tconst closingSpace = addClosingSlash && attrs && !attrs.endsWith(\" \") ? \" \" : \"\";\n\t\tconst closingSlash = addClosingSlash ? `${closingSpace}/` : \"\";\n\t\treturn this.isVoidElement(tag.toLowerCase()) ? `<${tag}${attrs}${closingSlash}>` : `<${tag}${attrs}>${innerHTML}</${tag}>`;\n\t}\n\tisVoidElement(tag) {\n\t\treturn this.voidTags.has(tag);\n\t}\n};\n//#endregion\n//#region src/nodes/text.ts\n/**\n* TextNode to contain a text element in DOM tree.\n* @param {string} value [description]\n*/\nvar TextNode = class TextNode extends Node {\n\tclone() {\n\t\treturn new TextNode(this._rawText, null);\n\t}\n\tconstructor(rawText, parentNode = null, range) {\n\t\tsuper(parentNode, range);\n\t\tthis.nodeType = 3;\n\t\tthis.rawTagName = \"\";\n\t\tthis._rawText = rawText;\n\t}\n\tget rawText() {\n\t\treturn this._rawText;\n\t}\n\t/**\n\t* Set rawText and invalidate trimmed caches\n\t*/\n\tset rawText(text) {\n\t\tthis._rawText = text;\n\t\tthis._trimmedRawText = void 0;\n\t\tthis._trimmedText = void 0;\n\t}\n\t/**\n\t* Returns raw text with all whitespace trimmed except single leading/trailing non-breaking space\n\t*/\n\tget trimmedRawText() {\n\t\tif (this._trimmedRawText !== void 0) return this._trimmedRawText;\n\t\tthis._trimmedRawText = trimText(this.rawText);\n\t\treturn this._trimmedRawText;\n\t}\n\t/**\n\t* Returns text with all whitespace trimmed except single leading/trailing non-breaking space\n\t*/\n\tget trimmedText() {\n\t\tif (this._trimmedText !== void 0) return this._trimmedText;\n\t\tthis._trimmedText = trimText(this.text);\n\t\treturn this._trimmedText;\n\t}\n\t/**\n\t* Get unescaped text value of current node and its children.\n\t* @return {string} text content\n\t*/\n\tget text() {\n\t\treturn decodeHTML(this.rawText);\n\t}\n\t/**\n\t* Detect if the node contains only white space.\n\t* @return {boolean}\n\t*/\n\tget isWhitespace() {\n\t\treturn /^(\\s|&nbsp;)*$/.test(this.rawText);\n\t}\n\ttoString() {\n\t\treturn this.rawText;\n\t}\n};\n/**\n* Trim whitespace except single leading/trailing non-breaking space\n*/\nfunction trimText(text) {\n\tlet i = 0;\n\tlet startPos;\n\tlet endPos;\n\twhile (i >= 0 && i < text.length) {\n\t\tif (/\\S/.test(text[i])) if (startPos === void 0) {\n\t\t\tstartPos = i;\n\t\t\ti = text.length;\n\t\t} else {\n\t\t\tendPos = i;\n\t\t\ti = void 0;\n\t\t}\n\t\tif (startPos === void 0) i++;\n\t\telse i--;\n\t}\n\tif (startPos === void 0) startPos = 0;\n\tif (endPos === void 0) endPos = text.length - 1;\n\tconst hasLeadingSpace = startPos > 0 && /[^\\S\\r\\n]/.test(text[startPos - 1]);\n\tconst hasTrailingSpace = endPos < text.length - 1 && /[^\\S\\r\\n]/.test(text[endPos + 1]);\n\treturn (hasLeadingSpace ? \" \" : \"\") + text.slice(startPos, endPos + 1) + (hasTrailingSpace ? \" \" : \"\");\n}\n//#endregion\n//#region src/nodes/html.ts\nfunction decode(val) {\n\treturn decodeHTML(val);\n}\nconst Htags = [\n\t\"h1\",\n\t\"h2\",\n\t\"h3\",\n\t\"h4\",\n\t\"h5\",\n\t\"h6\",\n\t\"header\",\n\t\"hgroup\"\n];\nconst Dtags = [\n\t\"details\",\n\t\"dialog\",\n\t\"dd\",\n\t\"div\",\n\t\"dt\"\n];\nconst Ftags = [\n\t\"fieldset\",\n\t\"figcaption\",\n\t\"figure\",\n\t\"footer\",\n\t\"form\"\n];\nconst tableTags = [\n\t\"table\",\n\t\"td\",\n\t\"tr\"\n];\nconst htmlTags = [\n\t\"address\",\n\t\"article\",\n\t\"aside\",\n\t\"blockquote\",\n\t\"br\",\n\t\"hr\",\n\t\"li\",\n\t\"main\",\n\t\"nav\",\n\t\"ol\",\n\t\"p\",\n\t\"pre\",\n\t\"section\",\n\t\"ul\"\n];\nconst kBlockElements = /* @__PURE__ */ new Set();\nfunction addToKBlockElement(...args) {\n\tconst addToSet = (array) => {\n\t\tfor (let index = 0; index < array.length; index++) {\n\t\t\tconst element = array[index];\n\t\t\tkBlockElements.add(element);\n\t\t\tkBlockElements.add(element.toUpperCase());\n\t\t}\n\t};\n\tfor (const arg of args) addToSet(arg);\n}\naddToKBlockElement(Htags, Dtags, Ftags, tableTags, htmlTags);\nvar DOMTokenList = class {\n\t_validate(c) {\n\t\tif (/\\s/.test(c)) throw new Error(`DOMException in DOMTokenList.add: The token '${c}' contains HTML space characters, which are not valid in tokens.`);\n\t}\n\tconstructor(valuesInit = [], afterUpdate = () => null) {\n\t\tthis._set = new Set(valuesInit);\n\t\tthis._afterUpdate = afterUpdate;\n\t}\n\tadd(c) {\n\t\tthis._validate(c);\n\t\tthis._set.add(c);\n\t\tthis._afterUpdate(this);\n\t}\n\treplace(c1, c2) {\n\t\tthis._validate(c2);\n\t\tthis._set.delete(c1);\n\t\tthis._set.add(c2);\n\t\tthis._afterUpdate(this);\n\t}\n\tremove(c) {\n\t\tthis._set.delete(c) && this._afterUpdate(this);\n\t}\n\ttoggle(c) {\n\t\tthis._validate(c);\n\t\tif (this._set.has(c)) this._set.delete(c);\n\t\telse this._set.add(c);\n\t\tthis._afterUpdate(this);\n\t}\n\tcontains(c) {\n\t\treturn this._set.has(c);\n\t}\n\tget length() {\n\t\treturn this._set.size;\n\t}\n\tvalues() {\n\t\treturn this._set.values();\n\t}\n\tget value() {\n\t\treturn Array.from(this._set.values());\n\t}\n\ttoString() {\n\t\treturn Array.from(this._set.values()).join(\" \");\n\t}\n};\n/**\n* HTMLElement, which contains a set of children.\n*\n* Note: this is a minimalist implementation, no complete tree\n* structure provided (no parentNode, nextSibling,\n* previousSibling etc).\n* @class HTMLElement\n* @extends {Node}\n*/\nvar HTMLElement = class HTMLElement extends Node {\n\t/**\n\t* Quote attribute values\n\t* @param attr attribute value\n\t* @returns {string} quoted value\n\t*/\n\tquoteAttribute(attr) {\n\t\tif (attr == null) return \"null\";\n\t\treturn `\"${attr.replace(/\"/g, \"&quot;\")}\"`;\n\t}\n\t/**\n\t* Creates an instance of HTMLElement.\n\t* @param keyAttrs\tid and class attribute\n\t* @param [rawAttrs]\tattributes in string\n\t*\n\t* @memberof HTMLElement\n\t*/\n\tconstructor(tagName, keyAttrs, rawAttrs = \"\", parentNode = null, range, voidTag = new VoidTag(), _parseOptions = {}) {\n\t\tsuper(parentNode, range);\n\t\tthis.rawAttrs = rawAttrs;\n\t\tthis.voidTag = voidTag;\n\t\tthis.nodeType = 1;\n\t\tthis.rawTagName = tagName;\n\t\tthis.rawAttrs = rawAttrs || \"\";\n\t\tthis._id = keyAttrs.id || \"\";\n\t\tthis.childNodes = [];\n\t\tthis._parseOptions = _parseOptions;\n\t\tthis.classList = new DOMTokenList(keyAttrs.class ? keyAttrs.class.split(/\\s+/) : [], (classList) => this.setAttribute(\"class\", classList.toString()));\n\t\tif (keyAttrs.id) {\n\t\t\tif (!rawAttrs) this.rawAttrs = `id=\"${keyAttrs.id}\"`;\n\t\t}\n\t\tif (keyAttrs.class) {\n\t\t\tif (!rawAttrs) {\n\t\t\t\tconst cls = `class=\"${this.classList.toString()}\"`;\n\t\t\t\tif (this.rawAttrs) this.rawAttrs += ` ${cls}`;\n\t\t\t\telse this.rawAttrs = cls;\n\t\t\t}\n\t\t}\n\t}\n\t/**\n\t* Remove Child element from childNodes array\n\t* @param {HTMLElement} node node to remove\n\t*/\n\tremoveChild(node) {\n\t\tthis.childNodes = this.childNodes.filter((child) => {\n\t\t\treturn child !== node;\n\t\t});\n\t\treturn this;\n\t}\n\t/**\n\t* Exchanges given child with new child\n\t* @param {HTMLElement} oldNode node to exchange\n\t* @param {HTMLElement} newNode new node\n\t*/\n\texchangeChild(oldNode, newNode) {\n\t\tconst children = this.childNodes;\n\t\tthis.childNodes = children.map((child) => {\n\t\t\tif (child === oldNode) return newNode;\n\t\t\treturn child;\n\t\t});\n\t\treturn this;\n\t}\n\tget tagName() {\n\t\treturn this.rawTagName ? this.rawTagName.toUpperCase() : this.rawTagName;\n\t}\n\tset tagName(newname) {\n\t\tthis.rawTagName = newname.toLowerCase();\n\t}\n\tget localName() {\n\t\treturn this.rawTagName.toLowerCase();\n\t}\n\tget isVoidElement() {\n\t\treturn this.voidTag.isVoidElement(this.localName);\n\t}\n\tget id() {\n\t\treturn this._id;\n\t}\n\tset id(newid) {\n\t\tthis.setAttribute(\"id\", newid);\n\t}\n\t/**\n\t* Get escpaed (as-it) text value of current node and its children.\n\t* @return {string} text content\n\t*/\n\tget rawText() {\n\t\tif (/^br$/i.test(this.rawTagName)) return \"\\n\";\n\t\treturn this.childNodes.reduce((pre, cur) => {\n\t\t\treturn pre += cur.rawText;\n\t\t}, \"\");\n\t}\n\tget textContent() {\n\t\treturn decode(this.rawText);\n\t}\n\tset textContent(val) {\n\t\tconst content = [new TextNode(val, this)];\n\t\tthis.childNodes = content;\n\t}\n\t/**\n\t* Get unescaped text value of current node and its children.\n\t* @return {string} text content\n\t*/\n\tget text() {\n\t\treturn decode(this.rawText);\n\t}\n\t/**\n\t* Get structured Text (with '\\n' etc.)\n\t* @return {string} structured text\n\t*/\n\tget structuredText() {\n\t\tlet currentBlock = [];\n\t\tconst blocks = [currentBlock];\n\t\tfunction dfs(node) {\n\t\t\tif (node.nodeType === 1) if (kBlockElements.has(node.rawTagName)) {\n\t\t\t\tif (currentBlock.length > 0) blocks.push(currentBlock = []);\n\t\t\t\tnode.childNodes.forEach(dfs);\n\t\t\t\tif (currentBlock.length > 0) blocks.push(currentBlock = []);\n\t\t\t} else node.childNodes.forEach(dfs);\n\t\t\telse if (node.nodeType === 3) if (node.isWhitespace) currentBlock.prependWhitespace = true;\n\t\t\telse {\n\t\t\t\tlet text = node.trimmedText;\n\t\t\t\tif (currentBlock.prependWhitespace) {\n\t\t\t\t\ttext = ` ${text}`;\n\t\t\t\t\tcurrentBlock.prependWhitespace = false;\n\t\t\t\t}\n\t\t\t\tcurrentBlock.push(text);\n\t\t\t}\n\t\t}\n\t\tdfs(this);\n\t\treturn blocks.map((block) => {\n\t\t\treturn block.join(\"\").replace(/\\s{2,}/g, \" \");\n\t\t}).join(\"\\n\").replace(/\\s+$/, \"\");\n\t}\n\ttoString() {\n\t\tconst tag = this.rawTagName;\n\t\tif (tag) {\n\t\t\tconst attrs = this.rawAttrs ? ` ${this.rawAttrs}` : \"\";\n\t\t\treturn this.voidTag.formatNode(tag, attrs, this.innerHTML);\n\t\t}\n\t\treturn this.innerHTML;\n\t}\n\tget innerHTML() {\n\t\treturn this.childNodes.map((child) => {\n\t\t\treturn child.toString();\n\t\t}).join(\"\");\n\t}\n\tset innerHTML(content) {\n\t\tconst r = parse$1(content, this._parseOptions);\n\t\tconst nodes = r.childNodes.length ? r.childNodes : [new TextNode(content, this)];\n\t\tresetParent(nodes, this);\n\t\tresetParent(this.childNodes, null);\n\t\tthis.childNodes = nodes;\n\t}\n\tset_content(content, options = {}) {\n\t\tif (content instanceof Node) content = [content];\n\t\telse if (typeof content == \"string\") {\n\t\t\toptions = _objectSpread2(_objectSpread2({}, this._parseOptions), options);\n\t\t\tconst r = parse$1(content, options);\n\t\t\tcontent = r.childNodes.length ? r.childNodes : [new TextNode(r.innerHTML, this)];\n\t\t}\n\t\tresetParent(this.childNodes, null);\n\t\tresetParent(content, this);\n\t\tthis.childNodes = content;\n\t\treturn this;\n\t}\n\treplaceWith(...nodes) {\n\t\tconst parent = this.parentNode;\n\t\tconst content = nodes.map((node) => {\n\t\t\tif (node instanceof Node) return [node];\n\t\t\telse if (typeof node == \"string\") {\n\t\t\t\tconst r = parse$1(node, this._parseOptions);\n\t\t\t\treturn r.childNodes.length ? r.childNodes : [new TextNode(node, this)];\n\t\t\t}\n\t\t\treturn [];\n\t\t}).flat();\n\t\tconst idx = parent.childNodes.findIndex((child) => {\n\t\t\treturn child === this;\n\t\t});\n\t\tresetParent([this], null);\n\t\tparent.childNodes = [\n\t\t\t...parent.childNodes.slice(0, idx),\n\t\t\t...resetParent(content, parent),\n\t\t\t...parent.childNodes.slice(idx + 1)\n\t\t];\n\t\treturn this;\n\t}\n\tget outerHTML() {\n\t\treturn this.toString();\n\t}\n\t/**\n\t* Trim element from right (in block) after seeing pattern in a TextNode.\n\t* @param {RegExp} pattern pattern to find\n\t* @return {HTMLElement} reference to current node\n\t*/\n\ttrimRight(pattern) {\n\t\tfor (let i = 0; i < this.childNodes.length; i++) {\n\t\t\tconst childNode = this.childNodes[i];\n\t\t\tif (childNode.nodeType === 1) childNode.trimRight(pattern);\n\t\t\telse {\n\t\t\t\tconst index = childNode.rawText.search(pattern);\n\t\t\t\tif (index > -1) {\n\t\t\t\t\tchildNode.rawText = childNode.rawText.substr(0, index);\n\t\t\t\t\tthis.childNodes.length = i + 1;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn this;\n\t}\n\t/**\n\t* Get DOM structure\n\t* @return {string} structure\n\t*/\n\tget structure() {\n\t\tconst res = [];\n\t\tlet indention = 0;\n\t\tfunction write(str) {\n\t\t\tres.push(\" \".repeat(indention) + str);\n\t\t}\n\t\tfunction dfs(node) {\n\t\t\tconst idStr = node._id ? `#${node._id}` : \"\";\n\t\t\tconst classStr = node.classList.length ? `.${node.classList.value.join(\".\")}` : \"\";\n\t\t\twrite(`${node.rawTagName}${idStr}${classStr}`);\n\t\t\tindention++;\n\t\t\tnode.childNodes.forEach((childNode) => {\n\t\t\t\tif (childNode.nodeType === 1) dfs(childNode);\n\t\t\t\telse if (childNode.nodeType === 3) {\n\t\t\t\t\tif (!childNode.isWhitespace) write(\"#text\");\n\t\t\t\t}\n\t\t\t});\n\t\t\tindention--;\n\t\t}\n\t\tdfs(this);\n\t\treturn res.join(\"\\n\");\n\t}\n\t/**\n\t* Remove whitespaces in this sub tree.\n\t* @return {HTMLElement} pointer to this\n\t*/\n\tremoveWhitespace() {\n\t\tlet o = 0;\n\t\tthis.childNodes.forEach((node) => {\n\t\t\tif (node.nodeType === 3) {\n\t\t\t\tif (node.isWhitespace) return;\n\t\t\t\tnode.rawText = node.trimmedRawText;\n\t\t\t} else if (node.nodeType === 1) node.removeWhitespace();\n\t\t\tthis.childNodes[o++] = node;\n\t\t});\n\t\tthis.childNodes.length = o;\n\t\tconst attrs = Object.keys(this.rawAttributes).map((key) => {\n\t\t\tconst val = this.quoteAttribute(this.rawAttributes[key]);\n\t\t\tif (val === \"null\" || val === \"\\\"\\\"\") return key;\n\t\t\treturn `${key}=${val}`;\n\t\t}).join(\" \");\n\t\tthis.rawAttrs = attrs;\n\t\tdelete this._rawAttrs;\n\t\treturn this;\n\t}\n\t/**\n\t* Query CSS selector to find matching nodes.\n\t* @param {string} selector Simplified CSS selector\n\t* @return {HTMLElement[]} matching elements\n\t*/\n\tquerySelectorAll(selector) {\n\t\treturn selectAll(selector, this, {\n\t\t\txmlMode: true,\n\t\t\tadapter: matcher\n\t\t});\n\t}\n\t/**\n\t* Query CSS Selector to find matching node.\n\t* @param {string} selector Simplified CSS selector\n\t* @return {(HTMLElement|null)} matching node\n\t*/\n\tquerySelector(selector) {\n\t\treturn selectOne(selector, this, {\n\t\t\txmlMode: true,\n\t\t\tadapter: matcher\n\t\t});\n\t}\n\t/**\n\t* Tests whether the node matches a given CSS selector.\n\t* @param {string} selector Simplified CSS selector\n\t* @return {boolean}\n\t*/\n\tmatches(selector) {\n\t\treturn is(this, selector, {\n\t\t\txmlMode: true,\n\t\t\tadapter: matcher\n\t\t});\n\t}\n\t/**\n\t* find elements by their tagName\n\t* @param {string} tagName the tagName of the elements to select\n\t*/\n\tgetElementsByTagName(tagName) {\n\t\tconst upperCasedTagName = tagName.toUpperCase();\n\t\tconst re = [];\n\t\tconst stack = [];\n\t\tlet currentNodeReference = this;\n\t\tlet index = 0;\n\t\twhile (index !== void 0) {\n\t\t\tlet child;\n\t\t\tdo\n\t\t\t\tchild = currentNodeReference.childNodes[index++];\n\t\t\twhile (index < currentNodeReference.childNodes.length && child === void 0);\n\t\t\tif (child === void 0) {\n\t\t\t\tcurrentNodeReference = currentNodeReference.parentNode;\n\t\t\t\tindex = stack.pop();\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tif (child.nodeType === 1) {\n\t\t\t\tif (tagName === \"*\" || child.tagName === upperCasedTagName) re.push(child);\n\t\t\t\tif (child.childNodes.length > 0) {\n\t\t\t\t\tstack.push(index);\n\t\t\t\t\tcurrentNodeReference = child;\n\t\t\t\t\tindex = 0;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn re;\n\t}\n\t/**\n\t* find element by it's id\n\t* @param {string} id the id of the element to select\n\t* @returns {HTMLElement | null} the element with the given id or null if not found\n\t*/\n\tgetElementById(id) {\n\t\tconst stack = [];\n\t\tlet currentNodeReference = this;\n\t\tlet index = 0;\n\t\twhile (index !== void 0) {\n\t\t\tlet child;\n\t\t\tdo\n\t\t\t\tchild = currentNodeReference.childNodes[index++];\n\t\t\twhile (index < currentNodeReference.childNodes.length && child === void 0);\n\t\t\tif (child === void 0) {\n\t\t\t\tcurrentNodeReference = currentNodeReference.parentNode;\n\t\t\t\tindex = stack.pop();\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tif (child.nodeType === 1) {\n\t\t\t\tif (child._id === id) return child;\n\t\t\t\tif (child.childNodes.length > 0) {\n\t\t\t\t\tstack.push(index);\n\t\t\t\t\tcurrentNodeReference = child;\n\t\t\t\t\tindex = 0;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}\n\t/**\n\t* traverses the Element and its parents (heading toward the document root) until it finds a node that matches the provided selector string. Will return itself or the matching ancestor. If no such element exists, it returns null.\n\t* @param selector a DOMString containing a selector list\n\t* @returns {HTMLElement | null} the element with the given id or null if not found\n\t*/\n\tclosest(selector) {\n\t\tconst mapChild = /* @__PURE__ */ new Map();\n\t\tlet el = this;\n\t\tlet old = null;\n\t\tfunction findOne(test, elems) {\n\t\t\tlet elem = null;\n\t\t\tfor (let i = 0, l = elems.length; i < l && !elem; i++) {\n\t\t\t\tconst el = elems[i];\n\t\t\t\tif (test(el)) elem = el;\n\t\t\t\telse {\n\t\t\t\t\tconst child = mapChild.get(el);\n\t\t\t\t\tif (child) elem = findOne(test, [child]);\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn elem;\n\t\t}\n\t\twhile (el) {\n\t\t\tmapChild.set(el, old);\n\t\t\told = el;\n\t\t\tel = el.parentNode;\n\t\t}\n\t\tel = this;\n\t\twhile (el) {\n\t\t\tconst e = selectOne(selector, el, {\n\t\t\t\txmlMode: true,\n\t\t\t\tadapter: _objectSpread2(_objectSpread2({}, matcher), {}, {\n\t\t\t\t\tgetChildren(node) {\n\t\t\t\t\t\tconst child = mapChild.get(node);\n\t\t\t\t\t\treturn child && [child];\n\t\t\t\t\t},\n\t\t\t\t\tgetSiblings(node) {\n\t\t\t\t\t\treturn [node];\n\t\t\t\t\t},\n\t\t\t\t\tfindOne,\n\t\t\t\t\tfindAll() {\n\t\t\t\t\t\treturn [];\n\t\t\t\t\t}\n\t\t\t\t})\n\t\t\t});\n\t\t\tif (e) return e;\n\t\t\tel = el.parentNode;\n\t\t}\n\t\treturn null;\n\t}\n\t/**\n\t* Append a child node to childNodes\n\t* @param {Node} node node to append\n\t* @return {Node} node appended\n\t*/\n\tappendChild(node) {\n\t\tthis.append(node);\n\t\treturn node;\n\t}\n\t/**\n\t* Get attributes\n\t* @access private\n\t* @return {Object} parsed and unescaped attributes\n\t*/\n\tget attrs() {\n\t\tif (this._attrs) return this._attrs;\n\t\tthis._attrs = {};\n\t\tconst attrs = this.rawAttributes;\n\t\tfor (const key in attrs) {\n\t\t\tconst val = attrs[key] || \"\";\n\t\t\tthis._attrs[key.toLowerCase()] = decode(val);\n\t\t}\n\t\treturn this._attrs;\n\t}\n\tget attributes() {\n\t\tconst ret_attrs = {};\n\t\tconst attrs = this.rawAttributes;\n\t\tfor (const key in attrs) ret_attrs[key] = decode(attrs[key] || \"\");\n\t\treturn ret_attrs;\n\t}\n\t/**\n\t* Get escaped (as-is) attributes\n\t* @return {Object} parsed attributes\n\t*/\n\tget rawAttributes() {\n\t\tif (this._rawAttrs) return this._rawAttrs;\n\t\tconst attrs = {};\n\t\tif (this.rawAttrs) {\n\t\t\tconst re = /([a-zA-Z()[\\]#@$.?:][a-zA-Z0-9-._:()[\\]#]*)(?:\\s*=\\s*((?:'[^']*')|(?:\"[^\"]*\")|\\S+))?/g;\n\t\t\tlet match;\n\t\t\twhile (match = re.exec(this.rawAttrs)) {\n\t\t\t\tconst key = match[1];\n\t\t\t\tlet val = match[2] || null;\n\t\t\t\tif (val && (val[0] === `'` || val[0] === `\"`)) val = val.slice(1, val.length - 1);\n\t\t\t\tattrs[key] = attrs[key] || val;\n\t\t\t}\n\t\t}\n\t\tthis._rawAttrs = attrs;\n\t\treturn attrs;\n\t}\n\tremoveAttribute(key) {\n\t\tconst attrs = this.rawAttributes;\n\t\tdelete attrs[key];\n\t\tif (this._attrs) delete this._attrs[key];\n\t\tthis.rawAttrs = Object.keys(attrs).map((name) => {\n\t\t\tconst val = this.quoteAttribute(attrs[name]);\n\t\t\tif (val === \"null\" || val === \"\\\"\\\"\") return name;\n\t\t\treturn `${name}=${val}`;\n\t\t}).join(\" \");\n\t\tif (key === \"id\") this._id = \"\";\n\t\treturn this;\n\t}\n\thasAttribute(key) {\n\t\treturn key.toLowerCase() in this.attrs;\n\t}\n\t/**\n\t* Get an attribute\n\t* @return {string | undefined} value of the attribute; or undefined if not exist\n\t*/\n\tgetAttribute(key) {\n\t\treturn this.attrs[key.toLowerCase()];\n\t}\n\t/**\n\t* Set an attribute value to the HTMLElement\n\t* @param {string} key The attribute name\n\t* @param {string} value The value to set, or null / undefined to remove an attribute\n\t*/\n\tsetAttribute(key, value) {\n\t\tif (arguments.length < 2) throw new Error(\"Failed to execute 'setAttribute' on 'Element'\");\n\t\tconst k2 = key.toLowerCase();\n\t\tconst attrs = this.rawAttributes;\n\t\tfor (const k in attrs) if (k.toLowerCase() === k2) {\n\t\t\tkey = k;\n\t\t\tbreak;\n\t\t}\n\t\tattrs[key] = String(value);\n\t\tif (this._attrs) this._attrs[k2] = decode(attrs[key]);\n\t\tthis.rawAttrs = Object.keys(attrs).map((name) => {\n\t\t\tconst val = this.quoteAttribute(attrs[name]);\n\t\t\tif (val === \"null\" || val === \"\\\"\\\"\") return name;\n\t\t\treturn `${name}=${val}`;\n\t\t}).join(\" \");\n\t\tif (key === \"id\") this._id = value;\n\t\treturn this;\n\t}\n\t/**\n\t* Replace all the attributes of the HTMLElement by the provided attributes\n\t* @param {Attributes} attributes the new attribute set\n\t*/\n\tsetAttributes(attributes) {\n\t\tif (this._attrs) delete this._attrs;\n\t\tif (this._rawAttrs) delete this._rawAttrs;\n\t\tthis.rawAttrs = Object.keys(attributes).map((name) => {\n\t\t\tconst val = attributes[name];\n\t\t\tif (val === \"null\" || val === \"\\\"\\\"\") return name;\n\t\t\treturn `${name}=${this.quoteAttribute(String(val))}`;\n\t\t}).join(\" \");\n\t\tif (\"id\" in attributes) this._id = attributes[\"id\"];\n\t\treturn this;\n\t}\n\tinsertAdjacentHTML(where, html) {\n\t\tif (arguments.length < 2) throw new Error(\"2 arguments required\");\n\t\tconst p = parse$1(html, this._parseOptions);\n\t\tif (where === \"afterend\") this.after(...p.childNodes);\n\t\telse if (where === \"afterbegin\") this.prepend(...p.childNodes);\n\t\telse if (where === \"beforeend\") this.append(...p.childNodes);\n\t\telse if (where === \"beforebegin\") this.before(...p.childNodes);\n\t\telse throw new Error(`The value provided ('${where}') is not one of 'beforebegin', 'afterbegin', 'beforeend', or 'afterend'`);\n\t\treturn this;\n\t}\n\t/** Prepend nodes or strings to this node's children. */\n\tprepend(...insertable) {\n\t\tconst nodes = resolveInsertable(insertable);\n\t\tresetParent(nodes, this);\n\t\tthis.childNodes.unshift(...nodes);\n\t}\n\t/** Append nodes or strings to this node's children. */\n\tappend(...insertable) {\n\t\tconst nodes = resolveInsertable(insertable);\n\t\tresetParent(nodes, this);\n\t\tthis.childNodes.push(...nodes);\n\t}\n\t/** Insert nodes or strings before this node. */\n\tbefore(...insertable) {\n\t\tconst nodes = resolveInsertable(insertable);\n\t\tconst siblings = this.parentNode.childNodes;\n\t\tresetParent(nodes, this.parentNode);\n\t\tsiblings.splice(siblings.indexOf(this), 0, ...nodes);\n\t}\n\t/** Insert nodes or strings after this node. */\n\tafter(...insertable) {\n\t\tconst nodes = resolveInsertable(insertable);\n\t\tconst siblings = this.parentNode.childNodes;\n\t\tresetParent(nodes, this.parentNode);\n\t\tsiblings.splice(siblings.indexOf(this) + 1, 0, ...nodes);\n\t}\n\tget nextSibling() {\n\t\tif (this.parentNode) {\n\t\t\tconst children = this.parentNode.childNodes;\n\t\t\tlet i = 0;\n\t\t\twhile (i < children.length) {\n\t\t\t\tconst child = children[i++];\n\t\t\t\tif (this === child) return children[i] || null;\n\t\t\t}\n\t\t\treturn null;\n\t\t}\n\t}\n\tget nextElementSibling() {\n\t\tif (this.parentNode) {\n\t\t\tconst children = this.parentNode.childNodes;\n\t\t\tlet i = 0;\n\t\t\tlet find = false;\n\t\t\twhile (i < children.length) {\n\t\t\t\tconst child = children[i++];\n\t\t\t\tif (find) {\n\t\t\t\t\tif (child instanceof HTMLElement) return child || null;\n\t\t\t\t} else if (this === child) find = true;\n\t\t\t}\n\t\t\treturn null;\n\t\t}\n\t}\n\tget previousSibling() {\n\t\tif (this.parentNode) {\n\t\t\tconst children = this.parentNode.childNodes;\n\t\t\tlet i = children.length;\n\t\t\twhile (i > 0) {\n\t\t\t\tconst child = children[--i];\n\t\t\t\tif (this === child) return children[i - 1] || null;\n\t\t\t}\n\t\t\treturn null;\n\t\t}\n\t}\n\tget previousElementSibling() {\n\t\tif (this.parentNode) {\n\t\t\tconst children = this.parentNode.childNodes;\n\t\t\tlet i = children.length;\n\t\t\tlet find = false;\n\t\t\twhile (i > 0) {\n\t\t\t\tconst child = children[--i];\n\t\t\t\tif (find) {\n\t\t\t\t\tif (child instanceof HTMLElement) return child || null;\n\t\t\t\t} else if (this === child) find = true;\n\t\t\t}\n\t\t\treturn null;\n\t\t}\n\t}\n\t/** Get all childNodes of type {@link HTMLElement}. */\n\tget children() {\n\t\tconst children = [];\n\t\tfor (const childNode of this.childNodes) if (childNode instanceof HTMLElement) children.push(childNode);\n\t\treturn children;\n\t}\n\t/**\n\t* Get the first child node.\n\t* @return The first child or undefined if none exists.\n\t*/\n\tget firstChild() {\n\t\treturn this.childNodes[0];\n\t}\n\t/**\n\t* Get the first child node of type {@link HTMLElement}.\n\t* @return The first child element or undefined if none exists.\n\t*/\n\tget firstElementChild() {\n\t\treturn this.children[0];\n\t}\n\t/**\n\t* Get the last child node.\n\t* @return The last child or undefined if none exists.\n\t*/\n\tget lastChild() {\n\t\treturn arr_back(this.childNodes);\n\t}\n\t/**\n\t* Get the last child node of type {@link HTMLElement}.\n\t* @return The last child element or undefined if none exists.\n\t*/\n\tget lastElementChild() {\n\t\treturn this.children[this.children.length - 1];\n\t}\n\tget childElementCount() {\n\t\treturn this.children.length;\n\t}\n\tget classNames() {\n\t\treturn this.classList.toString();\n\t}\n\t/** Clone this Node */\n\tclone() {\n\t\treturn parse$1(this.toString(), this._parseOptions).firstChild;\n\t}\n};\nconst kMarkupPattern = /<!--[\\s\\S]*?-->|<(\\/?)([a-zA-Z][-.:0-9_a-zA-Z@\\xB7\\xC0-\\xD6\\xD8-\\xF6\\u00F8-\\u03A1\\u03A3-\\u03D9\\u03DB-\\u03EF\\u03F7-\\u03FF\\u0400-\\u04FF\\u0500-\\u052F\\u1D00-\\u1D2B\\u1D6B-\\u1D77\\u1D79-\\u1D9A\\u1E00-\\u1E9B\\u1F00-\\u1F15\\u1F18-\\u1F1D\\u1F20-\\u1F45\\u1F48-\\u1F4D\\u1F50-\\u1F57\\u1F59\\u1F5B\\u1F5D\\u1F5F-\\u1F7D\\u1F80-\\u1FB4\\u1FB6-\\u1FBC\\u1FBE\\u1FC2-\\u1FC4\\u1FC6-\\u1FCC\\u1FD0-\\u1FD3\\u1FD6-\\u1FDB\\u1FE0-\\u1FEC\\u1FF2-\\u1FF4\\u1FF6-\\u1FFC\\u2126\\u212A-\\u212B\\u2132\\u214E\\u2160-\\u2188\\u2C60-\\u2C7F\\uA722-\\uA787\\uA78B-\\uA78E\\uA790-\\uA7AD\\uA7B0-\\uA7B7\\uA7F7-\\uA7FF\\uAB30-\\uAB5A\\uAB5C-\\uAB5F\\uAB64-\\uAB65\\uFB00-\\uFB06\\uFB13-\\uFB17\\uFF21-\\uFF3A\\uFF41-\\uFF5A\\x37F-\\u1FFF\\u200C-\\u200D\\u203F-\\u2040\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD]*)((?:\\s+[^>]*?(?:(?:'[^']*')|(?:\"[^\"]*\"))?)*)\\s*(\\/?)>/gu;\nconst kMarkupPatternWithCDATA = /<!--[\\s\\S]*?-->|<!\\[CDATA\\[[\\s\\S]*?\\]\\]>|<(\\/?)([a-zA-Z][-.:0-9_a-zA-Z@\\xB7\\xC0-\\xD6\\xD8-\\xF6\\u00F8-\\u03A1\\u03A3-\\u03D9\\u03DB-\\u03EF\\u03F7-\\u03FF\\u0400-\\u04FF\\u0500-\\u052F\\u1D00-\\u1D2B\\u1D6B-\\u1D77\\u1D79-\\u1D9A\\u1E00-\\u1E9B\\u1F00-\\u1F15\\u1F18-\\u1F1D\\u1F20-\\u1F45\\u1F48-\\u1F4D\\u1F50-\\u1F57\\u1F59\\u1F5B\\u1F5D\\u1F5F-\\u1F7D\\u1F80-\\u1FB4\\u1FB6-\\u1FBC\\u1FBE\\u1FC2-\\u1FC4\\u1FC6-\\u1FCC\\u1FD0-\\u1FD3\\u1FD6-\\u1FDB\\u1FE0-\\u1FEC\\u1FF2-\\u1FF4\\u1FF6-\\u1FFC\\u2126\\u212A-\\u212B\\u2132\\u214E\\u2160-\\u2188\\u2C60-\\u2C7F\\uA722-\\uA787\\uA78B-\\uA78E\\uA790-\\uA7AD\\uA7B0-\\uA7B7\\uA7F7-\\uA7FF\\uAB30-\\uAB5A\\uAB5C-\\uAB5F\\uAB64-\\uAB65\\uFB00-\\uFB06\\uFB13-\\uFB17\\uFF21-\\uFF3A\\uFF41-\\uFF5A\\x37F-\\u1FFF\\u200C-\\u200D\\u203F-\\u2040\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD]*)((?:\\s+[^>]*?(?:(?:'[^']*')|(?:\"[^\"]*\"))?)*)\\s*(\\/?)>/gu;\nconst kAttributePattern = /(?:^|\\s)(id|class)\\s*=\\s*((?:'[^']*')|(?:\"[^\"]*\")|\\S+)/gi;\nconst kElementsClosedByOpening = {\n\tli: {\n\t\tli: true,\n\t\tLI: true\n\t},\n\tLI: {\n\t\tli: true,\n\t\tLI: true\n\t},\n\tp: {\n\t\tp: true,\n\t\tdiv: true,\n\t\tP: true,\n\t\tDIV: true\n\t},\n\tP: {\n\t\tp: true,\n\t\tdiv: true,\n\t\tP: true,\n\t\tDIV: true\n\t},\n\tb: {\n\t\tdiv: true,\n\t\tDIV: true\n\t},\n\tB: {\n\t\tdiv: true,\n\t\tDIV: true\n\t},\n\ttd: {\n\t\ttd: true,\n\t\tth: true,\n\t\tTD: true,\n\t\tTH: true\n\t},\n\tTD: {\n\t\ttd: true,\n\t\tth: true,\n\t\tTD: true,\n\t\tTH: true\n\t},\n\tth: {\n\t\ttd: true,\n\t\tth: true,\n\t\tTD: true,\n\t\tTH: true\n\t},\n\tTH: {\n\t\ttd: true,\n\t\tth: true,\n\t\tTD: true,\n\t\tTH: true\n\t},\n\th1: {\n\t\th1: true,\n\t\tH1: true\n\t},\n\tH1: {\n\t\th1: true,\n\t\tH1: true\n\t},\n\th2: {\n\t\th2: true,\n\t\tH2: true\n\t},\n\tH2: {\n\t\th2: true,\n\t\tH2: true\n\t},\n\th3: {\n\t\th3: true,\n\t\tH3: true\n\t},\n\tH3: {\n\t\th3: true,\n\t\tH3: true\n\t},\n\th4: {\n\t\th4: true,\n\t\tH4: true\n\t},\n\tH4: {\n\t\th4: true,\n\t\tH4: true\n\t},\n\th5: {\n\t\th5: true,\n\t\tH5: true\n\t},\n\tH5: {\n\t\th5: true,\n\t\tH5: true\n\t},\n\th6: {\n\t\th6: true,\n\t\tH6: true\n\t},\n\tH6: {\n\t\th6: true,\n\t\tH6: true\n\t}\n};\nconst kElementsClosedByClosing = {\n\tli: {\n\t\tul: true,\n\t\tol: true,\n\t\tUL: true,\n\t\tOL: true\n\t},\n\tLI: {\n\t\tul: true,\n\t\tol: true,\n\t\tUL: true,\n\t\tOL: true\n\t},\n\ta: {\n\t\tdiv: true,\n\t\tDIV: true\n\t},\n\tA: {\n\t\tdiv: true,\n\t\tDIV: true\n\t},\n\tb: {\n\t\tdiv: true,\n\t\tDIV: true\n\t},\n\tB: {\n\t\tdiv: true,\n\t\tDIV: true\n\t},\n\ti: {\n\t\tdiv: true,\n\t\tDIV: true\n\t},\n\tI: {\n\t\tdiv: true,\n\t\tDIV: true\n\t},\n\tp: {\n\t\tdiv: true,\n\t\tDIV: true\n\t},\n\tP: {\n\t\tdiv: true,\n\t\tDIV: true\n\t},\n\ttd: {\n\t\ttr: true,\n\t\ttable: true,\n\t\tTR: true,\n\t\tTABLE: true\n\t},\n\tTD: {\n\t\ttr: true,\n\t\ttable: true,\n\t\tTR: true,\n\t\tTABLE: true\n\t},\n\tth: {\n\t\ttr: true,\n\t\ttable: true,\n\t\tTR: true,\n\t\tTABLE: true\n\t},\n\tTH: {\n\t\ttr: true,\n\t\ttable: true,\n\t\tTR: true,\n\t\tTABLE: true\n\t}\n};\nconst kElementsClosedByClosingExcept = { p: {\n\ta: true,\n\taudio: true,\n\tdel: true,\n\tins: true,\n\tmap: true,\n\tnoscript: true,\n\tvideo: true\n} };\nconst frameflag = \"documentfragmentcontainer\";\n/**\n* Parses HTML and returns a root element\n* Parse a chuck of HTML source.\n* @param {string} data html\n* @return {HTMLElement} root element\n*/\nfunction base_parse(data, options = {}) {\n\tvar _options$voidTag, _options$voidTag2;\n\tconst voidTag = new VoidTag(options === null || options === void 0 || (_options$voidTag = options.voidTag) === null || _options$voidTag === void 0 ? void 0 : _options$voidTag.closingSlash, options === null || options === void 0 || (_options$voidTag2 = options.voidTag) === null || _options$voidTag2 === void 0 ? void 0 : _options$voidTag2.tags);\n\tconst hasCDATA = data.includes(\"<![CDATA[\");\n\tconst markupPattern = hasCDATA ? kMarkupPatternWithCDATA : kMarkupPattern;\n\tconst elements = options.blockTextElements || {\n\t\tscript: true,\n\t\tnoscript: true,\n\t\tstyle: true,\n\t\tpre: true\n\t};\n\tconst element_names = Object.keys(elements);\n\tconst kBlockTextElements = element_names.map((it) => new RegExp(`^${it}$`, \"i\"));\n\tconst kIgnoreElements = element_names.filter((it) => Boolean(elements[it])).map((it) => new RegExp(`^${it}$`, \"i\"));\n\tfunction element_should_be_ignore(tag) {\n\t\treturn kIgnoreElements.some((it) => it.test(tag));\n\t}\n\tfunction is_block_text_element(tag) {\n\t\treturn kBlockTextElements.some((it) => it.test(tag));\n\t}\n\tconst createRange = (startPos, endPos) => [startPos - frameFlagOffset, endPos - frameFlagOffset];\n\tconst root = new HTMLElement(null, {}, \"\", null, [0, data.length], voidTag, options);\n\tlet currentParent = root;\n\tconst stack = [root];\n\tlet lastTextPos = -1;\n\tlet noNestedTagIndex = void 0;\n\tlet match;\n\tdata = `<${frameflag}>${data}</${frameflag}>`;\n\tconst { lowerCaseTagName, fixNestedATags } = options;\n\tconst dataEndPos = data.length - 27;\n\tconst frameFlagOffset = 27;\n\tmarkupPattern.lastIndex = 0;\n\twhile (match = markupPattern.exec(data)) {\n\t\tlet { 0: matchText, 1: leadingSlash, 2: tagName, 3: attributes, 4: closingSlash } = match;\n\t\tconst matchLength = matchText.length;\n\t\tconst tagStartPos = markupPattern.lastIndex - matchLength;\n\t\tconst tagEndPos = markupPattern.lastIndex;\n\t\tif (lastTextPos > -1) {\n\t\t\tif (lastTextPos + matchLength < tagEndPos) {\n\t\t\t\tconst text = data.substring(lastTextPos, tagStartPos);\n\t\t\t\tcurrentParent.appendChild(new TextNode(text, currentParent, createRange(lastTextPos, tagStartPos)));\n\t\t\t}\n\t\t}\n\t\tlastTextPos = markupPattern.lastIndex;\n\t\tif (hasCDATA && matchText.startsWith(\"<![CDATA[\")) {\n\t\t\tcurrentParent.appendChild(new TextNode(matchText, currentParent, createRange(tagStartPos, tagEndPos)));\n\t\t\tcontinue;\n\t\t}\n\t\tif (tagName === frameflag) continue;\n\t\tif (matchText[1] === \"!\") {\n\t\t\tif (options.comment) {\n\t\t\t\tconst text = data.substring(tagStartPos + 4, tagEndPos - 3);\n\t\t\t\tcurrentParent.appendChild(new CommentNode(text, currentParent, createRange(tagStartPos, tagEndPos)));\n\t\t\t}\n\t\t\tcontinue;\n\t\t}\n\t\tif (lowerCaseTagName) tagName = tagName.toLowerCase();\n\t\tif (!leadingSlash) {\n\t\t\tconst attrs = {};\n\t\t\tfor (let attMatch; attMatch = kAttributePattern.exec(attributes);) {\n\t\t\t\tconst { 1: key, 2: val } = attMatch;\n\t\t\t\tconst isQuoted = val[0] === `'` || val[0] === `\"`;\n\t\t\t\tattrs[key.toLowerCase()] = isQuoted ? val.slice(1, val.length - 1) : val;\n\t\t\t}\n\t\t\tconst parentTagName = currentParent.rawTagName;\n\t\t\tif (!closingSlash && !options.preserveTagNesting && kElementsClosedByOpening[parentTagName]) {\n\t\t\t\tif (kElementsClosedByOpening[parentTagName][tagName]) {\n\t\t\t\t\tstack.pop();\n\t\t\t\t\tcurrentParent = arr_back(stack);\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (fixNestedATags && (tagName === \"a\" || tagName === \"A\")) {\n\t\t\t\tif (noNestedTagIndex !== void 0) {\n\t\t\t\t\tstack.splice(noNestedTagIndex);\n\t\t\t\t\tcurrentParent = arr_back(stack);\n\t\t\t\t}\n\t\t\t\tnoNestedTagIndex = stack.length;\n\t\t\t}\n\t\t\tconst tagEndPos = markupPattern.lastIndex;\n\t\t\tconst tagStartPos = tagEndPos - matchLength;\n\t\t\tcurrentParent = currentParent.appendChild(new HTMLElement(tagName, attrs, attributes.slice(1), null, createRange(tagStartPos, tagEndPos), voidTag, options));\n\t\t\tstack.push(currentParent);\n\t\t\tif (is_block_text_element(tagName)) {\n\t\t\t\tconst closeMarkup = `</${tagName}>`;\n\t\t\t\tconst closeIndex = lowerCaseTagName ? data.toLocaleLowerCase().indexOf(closeMarkup, markupPattern.lastIndex) : data.indexOf(closeMarkup, markupPattern.lastIndex);\n\t\t\t\tconst textEndPos = closeIndex === -1 ? dataEndPos : closeIndex;\n\t\t\t\tif (element_should_be_ignore(tagName)) {\n\t\t\t\t\tconst text = data.substring(tagEndPos, textEndPos);\n\t\t\t\t\tif (text.length > 0 && /\\S/.test(text)) currentParent.appendChild(new TextNode(text, currentParent, createRange(tagEndPos, textEndPos)));\n\t\t\t\t}\n\t\t\t\tif (closeIndex === -1) lastTextPos = markupPattern.lastIndex = data.length + 1;\n\t\t\t\telse {\n\t\t\t\t\tlastTextPos = markupPattern.lastIndex = closeIndex + closeMarkup.length;\n\t\t\t\t\tleadingSlash = \"/\";\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif (leadingSlash || closingSlash || voidTag.isVoidElement(tagName)) while (true) {\n\t\t\tif (noNestedTagIndex != null && (tagName === \"a\" || tagName === \"A\")) noNestedTagIndex = void 0;\n\t\t\tif (currentParent.rawTagName === tagName) {\n\t\t\t\tcurrentParent.range[1] = createRange(-1, Math.max(lastTextPos, tagEndPos))[1];\n\t\t\t\tstack.pop();\n\t\t\t\tcurrentParent = arr_back(stack);\n\t\t\t\tbreak;\n\t\t\t} else {\n\t\t\t\tconst parentTagName = currentParent.tagName;\n\t\t\t\tif (kElementsClosedByClosing[parentTagName]) {\n\t\t\t\t\tif (kElementsClosedByClosing[parentTagName][tagName]) {\n\t\t\t\t\t\tstack.pop();\n\t\t\t\t\t\tcurrentParent = arr_back(stack);\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tconst openTag = currentParent.rawTagName ? currentParent.rawTagName.toLowerCase() : \"\";\n\t\t\t\tif (kElementsClosedByClosingExcept[openTag]) {\n\t\t\t\t\tconst closingTag = tagName.toLowerCase();\n\t\t\t\t\tif (stack.length > 1) {\n\t\t\t\t\t\tconst possibleContainer = stack[stack.length - 2];\n\t\t\t\t\t\tif (possibleContainer && possibleContainer.rawTagName && possibleContainer.rawTagName.toLowerCase() === closingTag && !kElementsClosedByClosingExcept[openTag][closingTag]) {\n\t\t\t\t\t\t\tcurrentParent.range[1] = createRange(-1, Math.max(lastTextPos, tagEndPos))[1];\n\t\t\t\t\t\t\tstack.pop();\n\t\t\t\t\t\t\tcurrentParent = arr_back(stack);\n\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (options.closeAllByClosing === true) {\n\t\t\t\t\tlet i;\n\t\t\t\t\tfor (i = stack.length - 2; i >= 0; i--) if (stack[i].rawTagName === tagName) break;\n\t\t\t\t\tif (i >= 0) {\n\t\t\t\t\t\twhile (stack.length > i) {\n\t\t\t\t\t\t\tcurrentParent.range[1] = createRange(-1, Math.max(lastTextPos, tagEndPos))[1];\n\t\t\t\t\t\t\tstack.pop();\n\t\t\t\t\t\t\tcurrentParent = arr_back(stack);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}\n\treturn stack;\n}\n/**\n* Parses HTML and returns a root element\n* Parse a chuck of HTML source.\n*/\nfunction parse$1(data, options = {}) {\n\tconst stack = base_parse(data, options);\n\tconst [root] = stack;\n\twhile (stack.length > 1) {\n\t\tconst last = stack.pop();\n\t\tconst oneBefore = arr_back(stack);\n\t\tif (last.parentNode && last.parentNode.parentNode) {\n\t\t\tif (last.parentNode === oneBefore && last.tagName === oneBefore.tagName) {\n\t\t\t\tif (options.parseNoneClosedTags !== true) {\n\t\t\t\t\toneBefore.removeChild(last);\n\t\t\t\t\tlast.childNodes.forEach((child) => {\n\t\t\t\t\t\toneBefore.parentNode.appendChild(child);\n\t\t\t\t\t});\n\t\t\t\t\tstack.pop();\n\t\t\t\t}\n\t\t\t} else if (options.parseNoneClosedTags !== true) {\n\t\t\t\toneBefore.removeChild(last);\n\t\t\t\tlast.childNodes.forEach((child) => {\n\t\t\t\t\toneBefore.appendChild(child);\n\t\t\t\t});\n\t\t\t}\n\t\t}\n\t}\n\treturn root;\n}\n/**\n* Resolves a list of {@link NodeInsertable} to a list of nodes,\n* and removes nodes from any potential parent.\n*/\nfunction resolveInsertable(insertable) {\n\treturn insertable.map((val) => {\n\t\tif (typeof val === \"string\") return new TextNode(val);\n\t\tval.remove();\n\t\treturn val;\n\t});\n}\nfunction resetParent(nodes, parent) {\n\treturn nodes.map((node) => {\n\t\tnode.parentNode = parent;\n\t\treturn node;\n\t});\n}\n//#endregion\n//#region src/valid.ts\n/**\n* Parses HTML and returns a root element\n* Parse a chuck of HTML source.\n*/\nfunction valid(data, options = {}) {\n\tconst stack = base_parse(data, options);\n\treturn Boolean(stack.length === 1);\n}\n//#endregion\n//#region src/index.ts\nfunction parse(data, options = {}) {\n\treturn parse$1(data, options);\n}\nparse.parse = parse$1;\nparse.HTMLElement = HTMLElement;\nparse.CommentNode = CommentNode;\nparse.valid = valid;\nparse.Node = Node;\nparse.TextNode = TextNode;\nparse.NodeType = NodeType;\n//#endregion\nexport { CommentNode, HTMLElement, Node, NodeType, TextNode, parse as default, parse, valid };\n","/**\n * QTI Content Heuristics\n *\n * This module contains heuristics for handling non-standard QTI content commonly\n * found in real-world QTI packages from various authoring tools.\n *\n * ⚠️ IMPORTANT: These are NOT part of the QTI specification. They are pragmatic\n * workarounds for content that doesn't strictly follow QTI standards but is\n * commonly encountered in production.\n *\n * All heuristics:\n * - Are OPTIONAL and can be disabled\n * - Log when they are applied (in debug mode)\n * - Will NEVER hide real QTI errors\n * - Will NEVER break valid QTI content\n *\n * @see https://www.imsglobal.org/question/ for QTI specifications\n */\n/**\n * Default heuristics configuration\n * Enables common heuristics by default for better real-world compatibility\n */\nexport const DEFAULT_HEURISTICS_CONFIG = {\n enabled: true,\n feedbackTextFormatting: true,\n lenientImagePaths: true,\n lenientPackageResourcePaths: true,\n lenientAssetBasenames: true,\n autoPopulateFeedbackOutcome: true,\n};\n/**\n * Strict QTI configuration - disables all heuristics\n */\nexport const STRICT_QTI_CONFIG = {\n enabled: false,\n feedbackTextFormatting: false,\n lenientImagePaths: false,\n lenientPackageResourcePaths: false,\n lenientAssetBasenames: false,\n autoPopulateFeedbackOutcome: false,\n};\n/**\n * Merge user config with defaults\n */\nexport function normalizeHeuristicsConfig(config) {\n if (config?.enabled === false) {\n return STRICT_QTI_CONFIG;\n }\n return {\n enabled: config?.enabled ?? DEFAULT_HEURISTICS_CONFIG.enabled,\n feedbackTextFormatting: config?.feedbackTextFormatting ?? DEFAULT_HEURISTICS_CONFIG.feedbackTextFormatting,\n lenientImagePaths: config?.lenientImagePaths ?? DEFAULT_HEURISTICS_CONFIG.lenientImagePaths,\n lenientPackageResourcePaths: config?.lenientPackageResourcePaths ?? DEFAULT_HEURISTICS_CONFIG.lenientPackageResourcePaths,\n lenientAssetBasenames: config?.lenientAssetBasenames ?? DEFAULT_HEURISTICS_CONFIG.lenientAssetBasenames,\n autoPopulateFeedbackOutcome: config?.autoPopulateFeedbackOutcome ??\n DEFAULT_HEURISTICS_CONFIG.autoPopulateFeedbackOutcome,\n };\n}\n/**\n * Vendor-specific feedback text transforms\n *\n * These fix formatting issues in feedback text from certain authoring tools:\n * - Some tools add semicolons after \"Correct\" and \"Incorrect\" labels\n * - This is not required by QTI and looks awkward in display\n */\nexport const FEEDBACK_TEXT_TRANSFORMS = [\n {\n pattern: /<strong>Incorrect;<\\/strong>/gi,\n replacement: '<strong>Incorrect</strong> ',\n description: 'Remove semicolon after \"Incorrect\" in strong tags',\n vendor: 'Various authoring tools',\n },\n {\n pattern: /Incorrect;/gi,\n replacement: 'Incorrect ',\n description: 'Remove semicolon after \"Incorrect\"',\n vendor: 'Various authoring tools',\n },\n {\n pattern: /<strong>Correct;<\\/strong>/gi,\n replacement: '<strong>Correct</strong> ',\n description: 'Remove semicolon after \"Correct\" in strong tags',\n vendor: 'Various authoring tools',\n },\n {\n pattern: /Correct;/gi,\n replacement: 'Correct ',\n description: 'Remove semicolon after \"Correct\"',\n vendor: 'Various authoring tools',\n },\n];\n/**\n * Apply feedback text formatting heuristics\n *\n * @param content - HTML content to transform\n * @param config - Heuristics configuration\n * @param logger - Optional logger for debug output\n * @returns Transformed content\n */\nexport function applyFeedbackTextHeuristics(content, config, logger) {\n if (!config.enabled || !config.feedbackTextFormatting || !content) {\n return content;\n }\n let result = content;\n let appliedCount = 0;\n for (const transform of FEEDBACK_TEXT_TRANSFORMS) {\n const before = result;\n result = result.replace(transform.pattern, transform.replacement);\n if (result !== before) {\n appliedCount++;\n logger?.debug(`[QTI Heuristic] Applied feedback text transform: ${transform.description}`, { vendor: transform.vendor });\n }\n }\n if (appliedCount > 0) {\n logger?.debug(`[QTI Heuristic] Applied ${appliedCount} feedback text formatting fix(es). ` +\n `This content uses non-standard formatting common in certain authoring tools.`);\n }\n return result;\n}\n/**\n * Check if lenient image path resolution should be used\n *\n * @param config - Heuristics configuration\n * @param logger - Optional logger\n * @returns True if lenient resolution is enabled\n */\nexport function shouldUseLenientImagePaths(config, logger) {\n const enabled = config.enabled && config.lenientImagePaths;\n if (enabled) {\n logger?.debug('[QTI Heuristic] Using lenient image path resolution. ' +\n 'Will try multiple path strategies for images that do not follow strict relative path conventions.');\n }\n return enabled;\n}\n/**\n * Check if auto-populating FEEDBACK outcome should be used\n *\n * @param config - Heuristics configuration\n * @param logger - Optional logger\n * @returns True if auto-population is enabled\n */\nexport function shouldAutoPopulateFeedbackOutcome(config, logger) {\n const enabled = config.enabled && config.autoPopulateFeedbackOutcome;\n if (enabled) {\n logger?.debug('[QTI Heuristic] Will auto-populate FEEDBACK outcome if missing. ' +\n 'Some QTI templates use feedbackInline but only set SCORE outcome.');\n }\n return enabled;\n}\n//# sourceMappingURL=qti-heuristics.js.map","export function decodeXmlAttribute(value) {\n return value.replace(/&(#x[0-9a-fA-F]+|#[0-9]+|amp|lt|gt|quot|apos);/g, (match, entity) => {\n switch (entity) {\n case 'amp':\n return '&';\n case 'lt':\n return '<';\n case 'gt':\n return '>';\n case 'quot':\n return '\"';\n case 'apos':\n return \"'\";\n default: {\n const radix = entity.startsWith('#x') ? 16 : 10;\n const codePoint = Number.parseInt(entity.slice(radix === 16 ? 2 : 1), radix);\n if (!Number.isFinite(codePoint))\n return match;\n try {\n return String.fromCodePoint(codePoint);\n }\n catch {\n return match;\n }\n }\n }\n });\n}\nexport function parseSrcsetCandidates(value) {\n const candidates = [];\n let index = 0;\n while (index < value.length) {\n while (index < value.length && /[\\s,]/.test(value[index] ?? ''))\n index += 1;\n const start = index;\n if (start >= value.length)\n break;\n const isDataUrl = value.slice(index).toLowerCase().startsWith('data:');\n while (index < value.length && (isDataUrl ? !/\\s/.test(value[index] ?? '') : !/[\\s,]/.test(value[index] ?? ''))) {\n index += 1;\n }\n const url = value.slice(start, index);\n const descriptorStart = index;\n while (index < value.length && value[index] !== ',')\n index += 1;\n const raw = value.slice(start, index).trim();\n const descriptors = value.slice(descriptorStart, index).trim();\n if (url)\n candidates.push({ raw, url, descriptors });\n if (value[index] === ',')\n index += 1;\n }\n return candidates;\n}\nexport function isBlockedStylesheetCss(css) {\n const normalized = normalizeCssForPolicy(css);\n return /@import|url\\(|(?:-webkit-)?image-set\\(|<\\/style|expression\\(|javascript:|vbscript:|data:/i.test(normalized);\n}\nexport function normalizeCssForPolicy(css) {\n return decodeCssEscapes(css.replace(/\\/\\*[\\s\\S]*?\\*\\//g, '')).replace(/\\s+/g, '');\n}\nfunction decodeCssEscapes(css) {\n return css.replace(/\\\\([0-9a-fA-F]{1,6}\\s?|.)/g, (_, escaped) => {\n const hex = escaped.trim();\n if (/^[0-9a-fA-F]+$/.test(hex)) {\n const codePoint = Number.parseInt(hex, 16);\n if (Number.isFinite(codePoint) && codePoint >= 0 && codePoint <= 0x10ffff) {\n return String.fromCodePoint(codePoint);\n }\n }\n return escaped.charAt(0);\n });\n}\n//# sourceMappingURL=security-parsing.js.map","/**\n * Minimal DOM traversal helpers for namespace-heavy QTI XML.\n *\n * We use `localName` rather than `tagName` so default namespaces don't break matching.\n */\nexport function localName(node) {\n if (!node)\n return null;\n // Element.localName exists; for safety we also handle older Node shapes\n return node.localName || node.tagName || null;\n}\nexport function isElement(node) {\n return !!node && node.nodeType === 1;\n}\nexport function childElements(parent) {\n const out = [];\n const children = parent.childNodes;\n if (!children)\n return out;\n const len = typeof children.length === 'number' ? children.length : 0;\n for (let i = 0; i < len; i++) {\n const n = children[i];\n if (isElement(n))\n out.push(n);\n }\n return out;\n}\nexport function firstChildElement(parent) {\n for (const el of childElements(parent))\n return el;\n return null;\n}\nexport function getAttr(el, name) {\n const direct = el.getAttribute(name);\n if (direct !== null && direct !== '')\n return direct;\n // QTI 3.0 uses kebab-case attributes (for example base-type and variable-identifier)\n // where QTI 2.x uses camelCase. Keep operator parsing version-neutral.\n const kebab = name.replace(/[A-Z]/g, (char) => `-${char.toLowerCase()}`);\n if (kebab === name)\n return null;\n const mapped = el.getAttribute(kebab);\n return mapped === '' ? null : mapped;\n}\nexport function findFirstDescendant(parent, wantedLocalName) {\n const stack = [parent];\n while (stack.length) {\n const n = stack.pop();\n if (isElement(n) && localName(n)?.toLowerCase() === wantedLocalName.toLowerCase()) {\n return n;\n }\n const children = n.childNodes;\n if (children) {\n const len = typeof children.length === 'number' ? children.length : 0;\n for (let i = len - 1; i >= 0; i--)\n stack.push(children[i]);\n }\n }\n return null;\n}\nexport function findDescendants(parent, wantedLocalName) {\n const out = [];\n const stack = [parent];\n const wanted = wantedLocalName.toLowerCase();\n while (stack.length) {\n const n = stack.pop();\n if (isElement(n) && localName(n)?.toLowerCase() === wanted) {\n out.push(n);\n }\n const children = n.childNodes;\n if (children) {\n const len = typeof children.length === 'number' ? children.length : 0;\n for (let i = len - 1; i >= 0; i--)\n stack.push(children[i]);\n }\n }\n return out;\n}\nexport function findAssessmentItem(doc) {\n const root = doc.documentElement;\n if (!root)\n throw new Error('XML has no documentElement');\n const rootName = localName(root)?.toLowerCase();\n // QTI items can have <assessmentItem> (QTI 2.x) or <qti-assessment-item> (QTI 3.0) as root\n if (rootName === 'assessmentitem' || rootName === 'qti-assessment-item') {\n return root;\n }\n // Try QTI 2.x first\n let found = findFirstDescendant(root, 'assessmentItem');\n if (found)\n return found;\n // Try QTI 3.0\n found = findFirstDescendant(root, 'qti-assessment-item');\n if (found)\n return found;\n throw new Error('Could not find assessmentItem or qti-assessment-item element in XML');\n}\n//# sourceMappingURL=traverse.js.map","let nextId = 1;\nexport function newAstId(prefix) {\n return `${prefix}_${nextId++}`;\n}\n//# sourceMappingURL=id.js.map","'use strict';\n\n/**\n * Ponyfill for `Array.prototype.find` which is only available in ES6 runtimes.\n *\n * Works with anything that has a `length` property and index access properties,\n * including NodeList.\n *\n * @param {T[] | { length: number; [number]: T }} list\n * @param {function (item: T, index: number, list:T[]):boolean} predicate\n * @param {Partial<Pick<ArrayConstructor['prototype'], 'find'>>?} ac\n * Allows injecting a custom implementation in tests (`Array.prototype` by default).\n * @returns {T | undefined}\n * @template {unknown} T\n * @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/find\n * @see https://tc39.es/ecma262/multipage/indexed-collections.html#sec-array.prototype.find\n */\nfunction find(list, predicate, ac) {\n\tif (ac === undefined) {\n\t\tac = Array.prototype;\n\t}\n\tif (list && typeof ac.find === 'function') {\n\t\treturn ac.find.call(list, predicate);\n\t}\n\tfor (var i = 0; i < list.length; i++) {\n\t\tif (hasOwn(list, i)) {\n\t\t\tvar item = list[i];\n\t\t\tif (predicate.call(undefined, item, i, list)) {\n\t\t\t\treturn item;\n\t\t\t}\n\t\t}\n\t}\n}\n\n/**\n * \"Shallow freezes\" an object to render it immutable.\n * Uses `Object.freeze` if available,\n * otherwise the immutability is only in the type.\n *\n * Is used to create \"enum like\" objects.\n *\n * If `Object.getOwnPropertyDescriptors` is available,\n * a new object with all properties of object but without any prototype is created and returned\n * after freezing it.\n *\n * @param {T} object\n * The object to freeze.\n * @param {Pick<ObjectConstructor, 'create' | 'freeze' | 'getOwnPropertyDescriptors'>} [oc=Object]\n * `Object` by default,\n * allows to inject custom object constructor for tests.\n * @returns {Readonly<T>}\n * @template {Object} T\n * @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/freeze\n * @prettierignore\n */\nfunction freeze(object, oc) {\n\tif (oc === undefined) {\n\t\toc = Object;\n\t}\n\tif (oc && typeof oc.getOwnPropertyDescriptors === 'function') {\n\t\tobject = oc.create(null, oc.getOwnPropertyDescriptors(object));\n\t}\n\treturn oc && typeof oc.freeze === 'function' ? oc.freeze(object) : object;\n}\n\n/**\n * Implementation for `Object.hasOwn` but ES5 compatible.\n *\n * @param {any} object\n * @param {string | number} key\n * @returns {boolean}\n */\nfunction hasOwn(object, key) {\n\treturn Object.prototype.hasOwnProperty.call(object, key);\n}\n\n/**\n * Since xmldom can not rely on `Object.assign`,\n * it uses/provides a simplified version that is sufficient for its needs.\n *\n * @param {Object} target\n * @param {Object | null | undefined} source\n * @returns {Object}\n * The target with the merged/overridden properties.\n * @throws {TypeError}\n * If target is not an object.\n * @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/assign\n * @see https://tc39.es/ecma262/multipage/fundamental-objects.html#sec-object.assign\n */\nfunction assign(target, source) {\n\tif (target === null || typeof target !== 'object') {\n\t\tthrow new TypeError('target is not an object');\n\t}\n\tfor (var key in source) {\n\t\tif (hasOwn(source, key)) {\n\t\t\ttarget[key] = source[key];\n\t\t}\n\t}\n\treturn target;\n}\n\n/**\n * A number of attributes are boolean attributes.\n * The presence of a boolean attribute on an element represents the `true` value,\n * and the absence of the attribute represents the `false` value.\n *\n * If the attribute is present, its value must either be the empty string, or a value that is\n * an ASCII case-insensitive match for the attribute's canonical name,\n * with no leading or trailing whitespace.\n *\n * Note: The values `\"true\"` and `\"false\"` are not allowed on boolean attributes.\n * To represent a `false` value, the attribute has to be omitted altogether.\n *\n * @see https://html.spec.whatwg.org/#boolean-attributes\n * @see https://html.spec.whatwg.org/#attributes-3\n */\nvar HTML_BOOLEAN_ATTRIBUTES = freeze({\n\tallowfullscreen: true,\n\tasync: true,\n\tautofocus: true,\n\tautoplay: true,\n\tchecked: true,\n\tcontrols: true,\n\tdefault: true,\n\tdefer: true,\n\tdisabled: true,\n\tformnovalidate: true,\n\thidden: true,\n\tismap: true,\n\titemscope: true,\n\tloop: true,\n\tmultiple: true,\n\tmuted: true,\n\tnomodule: true,\n\tnovalidate: true,\n\topen: true,\n\tplaysinline: true,\n\treadonly: true,\n\trequired: true,\n\treversed: true,\n\tselected: true,\n});\n\n/**\n * Check if `name` is matching one of the HTML boolean attribute names.\n * This method doesn't check if such attributes are allowed in the context of the current\n * document/parsing.\n *\n * @param {string} name\n * @returns {boolean}\n * @see {@link HTML_BOOLEAN_ATTRIBUTES}\n * @see https://html.spec.whatwg.org/#boolean-attributes\n * @see https://html.spec.whatwg.org/#attributes-3\n */\nfunction isHTMLBooleanAttribute(name) {\n\treturn hasOwn(HTML_BOOLEAN_ATTRIBUTES, name.toLowerCase());\n}\n\n/**\n * Void elements only have a start tag; end tags must not be specified for void elements.\n * These elements should be written as self-closing like this: `<area />`.\n * This should not be confused with optional tags that HTML allows to omit the end tag for\n * (like `li`, `tr` and others), which can have content after them,\n * so they can not be written as self-closing.\n * xmldom does not have any logic for optional end tags cases,\n * and will report them as a warning.\n * Content that would go into the unopened element,\n * will instead be added as a sibling text node.\n *\n * @type {Readonly<{\n * \tarea: boolean;\n * \tcol: boolean;\n * \timg: boolean;\n * \twbr: boolean;\n * \tlink: boolean;\n * \thr: boolean;\n * \tsource: boolean;\n * \tbr: boolean;\n * \tinput: boolean;\n * \tparam: boolean;\n * \tmeta: boolean;\n * \tembed: boolean;\n * \ttrack: boolean;\n * \tbase: boolean;\n * }>}\n * @see https://html.spec.whatwg.org/#void-elements\n * @see https://html.spec.whatwg.org/#optional-tags\n */\nvar HTML_VOID_ELEMENTS = freeze({\n\tarea: true,\n\tbase: true,\n\tbr: true,\n\tcol: true,\n\tembed: true,\n\thr: true,\n\timg: true,\n\tinput: true,\n\tlink: true,\n\tmeta: true,\n\tparam: true,\n\tsource: true,\n\ttrack: true,\n\twbr: true,\n});\n\n/**\n * Check if `tagName` is matching one of the HTML void element names.\n * This method doesn't check if such tags are allowed in the context of the current\n * document/parsing.\n *\n * @param {string} tagName\n * @returns {boolean}\n * @see {@link HTML_VOID_ELEMENTS}\n * @see https://html.spec.whatwg.org/#void-elements\n */\nfunction isHTMLVoidElement(tagName) {\n\treturn hasOwn(HTML_VOID_ELEMENTS, tagName.toLowerCase());\n}\n\n/**\n * Tag names that are raw text elements according to HTML spec.\n * The value denotes whether they are escapable or not.\n *\n * @see {@link isHTMLEscapableRawTextElement}\n * @see {@link isHTMLRawTextElement}\n * @see https://html.spec.whatwg.org/#raw-text-elements\n * @see https://html.spec.whatwg.org/#escapable-raw-text-elements\n */\nvar HTML_RAW_TEXT_ELEMENTS = freeze({\n\tscript: false,\n\tstyle: false,\n\ttextarea: true,\n\ttitle: true,\n});\n\n/**\n * Check if `tagName` is matching one of the HTML raw text element names.\n * This method doesn't check if such tags are allowed in the context of the current\n * document/parsing.\n *\n * @param {string} tagName\n * @returns {boolean}\n * @see {@link isHTMLEscapableRawTextElement}\n * @see {@link HTML_RAW_TEXT_ELEMENTS}\n * @see https://html.spec.whatwg.org/#raw-text-elements\n * @see https://html.spec.whatwg.org/#escapable-raw-text-elements\n */\nfunction isHTMLRawTextElement(tagName) {\n\tvar key = tagName.toLowerCase();\n\treturn hasOwn(HTML_RAW_TEXT_ELEMENTS, key) && !HTML_RAW_TEXT_ELEMENTS[key];\n}\n/**\n * Check if `tagName` is matching one of the HTML escapable raw text element names.\n * This method doesn't check if such tags are allowed in the context of the current\n * document/parsing.\n *\n * @param {string} tagName\n * @returns {boolean}\n * @see {@link isHTMLRawTextElement}\n * @see {@link HTML_RAW_TEXT_ELEMENTS}\n * @see https://html.spec.whatwg.org/#raw-text-elements\n * @see https://html.spec.whatwg.org/#escapable-raw-text-elements\n */\nfunction isHTMLEscapableRawTextElement(tagName) {\n\tvar key = tagName.toLowerCase();\n\treturn hasOwn(HTML_RAW_TEXT_ELEMENTS, key) && HTML_RAW_TEXT_ELEMENTS[key];\n}\n/**\n * Only returns true if `value` matches MIME_TYPE.HTML, which indicates an HTML document.\n *\n * @param {string} mimeType\n * @returns {mimeType is 'text/html'}\n * @see https://www.iana.org/assignments/media-types/text/html\n * @see https://en.wikipedia.org/wiki/HTML\n * @see https://developer.mozilla.org/en-US/docs/Web/API/DOMParser/parseFromString\n * @see https://html.spec.whatwg.org/multipage/dynamic-markup-insertion.html#dom-domparser-parsefromstring\n */\nfunction isHTMLMimeType(mimeType) {\n\treturn mimeType === MIME_TYPE.HTML;\n}\n/**\n * For both the `text/html` and the `application/xhtml+xml` namespace the spec defines that the\n * HTML namespace is provided as the default.\n *\n * @param {string} mimeType\n * @returns {boolean}\n * @see https://dom.spec.whatwg.org/#dom-document-createelement\n * @see https://dom.spec.whatwg.org/#dom-domimplementation-createdocument\n * @see https://dom.spec.whatwg.org/#dom-domimplementation-createhtmldocument\n */\nfunction hasDefaultHTMLNamespace(mimeType) {\n\treturn isHTMLMimeType(mimeType) || mimeType === MIME_TYPE.XML_XHTML_APPLICATION;\n}\n\n/**\n * All mime types that are allowed as input to `DOMParser.parseFromString`\n *\n * @see https://developer.mozilla.org/en-US/docs/Web/API/DOMParser/parseFromString#Argument02\n * MDN\n * @see https://html.spec.whatwg.org/multipage/dynamic-markup-insertion.html#domparsersupportedtype\n * WHATWG HTML Spec\n * @see {@link DOMParser.prototype.parseFromString}\n */\nvar MIME_TYPE = freeze({\n\t/**\n\t * `text/html`, the only mime type that triggers treating an XML document as HTML.\n\t *\n\t * @see https://www.iana.org/assignments/media-types/text/html IANA MimeType registration\n\t * @see https://en.wikipedia.org/wiki/HTML Wikipedia\n\t * @see https://developer.mozilla.org/en-US/docs/Web/API/DOMParser/parseFromString MDN\n\t * @see https://html.spec.whatwg.org/multipage/dynamic-markup-insertion.html#dom-domparser-parsefromstring\n\t * WHATWG HTML Spec\n\t */\n\tHTML: 'text/html',\n\n\t/**\n\t * `application/xml`, the standard mime type for XML documents.\n\t *\n\t * @see https://www.iana.org/assignments/media-types/application/xml IANA MimeType\n\t * registration\n\t * @see https://tools.ietf.org/html/rfc7303#section-9.1 RFC 7303\n\t * @see https://en.wikipedia.org/wiki/XML_and_MIME Wikipedia\n\t */\n\tXML_APPLICATION: 'application/xml',\n\n\t/**\n\t * `text/xml`, an alias for `application/xml`.\n\t *\n\t * @see https://tools.ietf.org/html/rfc7303#section-9.2 RFC 7303\n\t * @see https://www.iana.org/assignments/media-types/text/xml IANA MimeType registration\n\t * @see https://en.wikipedia.org/wiki/XML_and_MIME Wikipedia\n\t */\n\tXML_TEXT: 'text/xml',\n\n\t/**\n\t * `application/xhtml+xml`, indicates an XML document that has the default HTML namespace,\n\t * but is parsed as an XML document.\n\t *\n\t * @see https://www.iana.org/assignments/media-types/application/xhtml+xml IANA MimeType\n\t * registration\n\t * @see https://dom.spec.whatwg.org/#dom-domimplementation-createdocument WHATWG DOM Spec\n\t * @see https://en.wikipedia.org/wiki/XHTML Wikipedia\n\t */\n\tXML_XHTML_APPLICATION: 'application/xhtml+xml',\n\n\t/**\n\t * `image/svg+xml`,\n\t *\n\t * @see https://www.iana.org/assignments/media-types/image/svg+xml IANA MimeType registration\n\t * @see https://www.w3.org/TR/SVG11/ W3C SVG 1.1\n\t * @see https://en.wikipedia.org/wiki/Scalable_Vector_Graphics Wikipedia\n\t */\n\tXML_SVG_IMAGE: 'image/svg+xml',\n});\n/**\n * @typedef {'application/xhtml+xml' | 'application/xml' | 'image/svg+xml' | 'text/html' | 'text/xml'}\n * MimeType\n */\n/**\n * @type {MimeType[]}\n * @private\n * Basically `Object.values`, which is not available in ES5.\n */\nvar _MIME_TYPES = Object.keys(MIME_TYPE).map(function (key) {\n\treturn MIME_TYPE[key];\n});\n\n/**\n * Only returns true if `mimeType` is one of the allowed values for\n * `DOMParser.parseFromString`.\n *\n * @param {string} mimeType\n * @returns {mimeType is 'application/xhtml+xml' | 'application/xml' | 'image/svg+xml' | 'text/html' | 'text/xml'}\n *\n */\nfunction isValidMimeType(mimeType) {\n\treturn _MIME_TYPES.indexOf(mimeType) > -1;\n}\n/**\n * Namespaces that are used in this code base.\n *\n * @see http://www.w3.org/TR/REC-xml-names\n */\nvar NAMESPACE = freeze({\n\t/**\n\t * The XHTML namespace.\n\t *\n\t * @see http://www.w3.org/1999/xhtml\n\t */\n\tHTML: 'http://www.w3.org/1999/xhtml',\n\n\t/**\n\t * The SVG namespace.\n\t *\n\t * @see http://www.w3.org/2000/svg\n\t */\n\tSVG: 'http://www.w3.org/2000/svg',\n\n\t/**\n\t * The `xml:` namespace.\n\t *\n\t * @see http://www.w3.org/XML/1998/namespace\n\t */\n\tXML: 'http://www.w3.org/XML/1998/namespace',\n\n\t/**\n\t * The `xmlns:` namespace.\n\t *\n\t * @see https://www.w3.org/2000/xmlns/\n\t */\n\tXMLNS: 'http://www.w3.org/2000/xmlns/',\n});\n\nexports.assign = assign;\nexports.find = find;\nexports.freeze = freeze;\nexports.HTML_BOOLEAN_ATTRIBUTES = HTML_BOOLEAN_ATTRIBUTES;\nexports.HTML_RAW_TEXT_ELEMENTS = HTML_RAW_TEXT_ELEMENTS;\nexports.HTML_VOID_ELEMENTS = HTML_VOID_ELEMENTS;\nexports.hasDefaultHTMLNamespace = hasDefaultHTMLNamespace;\nexports.hasOwn = hasOwn;\nexports.isHTMLBooleanAttribute = isHTMLBooleanAttribute;\nexports.isHTMLRawTextElement = isHTMLRawTextElement;\nexports.isHTMLEscapableRawTextElement = isHTMLEscapableRawTextElement;\nexports.isHTMLMimeType = isHTMLMimeType;\nexports.isHTMLVoidElement = isHTMLVoidElement;\nexports.isValidMimeType = isValidMimeType;\nexports.MIME_TYPE = MIME_TYPE;\nexports.NAMESPACE = NAMESPACE;\n","'use strict';\n\nvar conventions = require('./conventions');\n\nfunction extendError(constructor, writableName) {\n\tconstructor.prototype = Object.create(Error.prototype, {\n\t\tconstructor: { value: constructor },\n\t\tname: { value: constructor.name, enumerable: true, writable: writableName },\n\t});\n}\n\nvar DOMExceptionName = conventions.freeze({\n\t/**\n\t * the default value as defined by the spec\n\t */\n\tError: 'Error',\n\t/**\n\t * @deprecated\n\t * Use RangeError instead.\n\t */\n\tIndexSizeError: 'IndexSizeError',\n\t/**\n\t * @deprecated\n\t * Just to match the related static code, not part of the spec.\n\t */\n\tDomstringSizeError: 'DomstringSizeError',\n\tHierarchyRequestError: 'HierarchyRequestError',\n\tWrongDocumentError: 'WrongDocumentError',\n\tInvalidCharacterError: 'InvalidCharacterError',\n\t/**\n\t * @deprecated\n\t * Just to match the related static code, not part of the spec.\n\t */\n\tNoDataAllowedError: 'NoDataAllowedError',\n\tNoModificationAllowedError: 'NoModificationAllowedError',\n\tNotFoundError: 'NotFoundError',\n\tNotSupportedError: 'NotSupportedError',\n\tInUseAttributeError: 'InUseAttributeError',\n\tInvalidStateError: 'InvalidStateError',\n\tSyntaxError: 'SyntaxError',\n\tInvalidModificationError: 'InvalidModificationError',\n\tNamespaceError: 'NamespaceError',\n\t/**\n\t * @deprecated\n\t * Use TypeError for invalid arguments,\n\t * \"NotSupportedError\" DOMException for unsupported operations,\n\t * and \"NotAllowedError\" DOMException for denied requests instead.\n\t */\n\tInvalidAccessError: 'InvalidAccessError',\n\t/**\n\t * @deprecated\n\t * Just to match the related static code, not part of the spec.\n\t */\n\tValidationError: 'ValidationError',\n\t/**\n\t * @deprecated\n\t * Use TypeError instead.\n\t */\n\tTypeMismatchError: 'TypeMismatchError',\n\tSecurityError: 'SecurityError',\n\tNetworkError: 'NetworkError',\n\tAbortError: 'AbortError',\n\t/**\n\t * @deprecated\n\t * Just to match the related static code, not part of the spec.\n\t */\n\tURLMismatchError: 'URLMismatchError',\n\tQuotaExceededError: 'QuotaExceededError',\n\tTimeoutError: 'TimeoutError',\n\tInvalidNodeTypeError: 'InvalidNodeTypeError',\n\tDataCloneError: 'DataCloneError',\n\tEncodingError: 'EncodingError',\n\tNotReadableError: 'NotReadableError',\n\tUnknownError: 'UnknownError',\n\tConstraintError: 'ConstraintError',\n\tDataError: 'DataError',\n\tTransactionInactiveError: 'TransactionInactiveError',\n\tReadOnlyError: 'ReadOnlyError',\n\tVersionError: 'VersionError',\n\tOperationError: 'OperationError',\n\tNotAllowedError: 'NotAllowedError',\n\tOptOutError: 'OptOutError',\n});\nvar DOMExceptionNames = Object.keys(DOMExceptionName);\n\nfunction isValidDomExceptionCode(value) {\n\treturn typeof value === 'number' && value >= 1 && value <= 25;\n}\nfunction endsWithError(value) {\n\treturn typeof value === 'string' && value.substring(value.length - DOMExceptionName.Error.length) === DOMExceptionName.Error;\n}\n/**\n * DOM operations only raise exceptions in \"exceptional\" circumstances, i.e., when an operation\n * is impossible to perform (either for logical reasons, because data is lost, or because the\n * implementation has become unstable). In general, DOM methods return specific error values in\n * ordinary processing situations, such as out-of-bound errors when using NodeList.\n *\n * Implementations should raise other exceptions under other circumstances. For example,\n * implementations should raise an implementation-dependent exception if a null argument is\n * passed when null was not expected.\n *\n * This implementation supports the following usages:\n * 1. according to the living standard (both arguments are optional):\n * ```\n * new DOMException(\"message (can be empty)\", DOMExceptionNames.HierarchyRequestError)\n * ```\n * 2. according to previous xmldom implementation (only the first argument is required):\n * ```\n * new DOMException(DOMException.HIERARCHY_REQUEST_ERR, \"optional message\")\n * ```\n * both result in the proper name being set.\n *\n * @class DOMException\n * @param {number | string} messageOrCode\n * The reason why an operation is not acceptable.\n * If it is a number, it is used to determine the `name`, see\n * {@link https://www.w3.org/TR/DOM-Level-3-Core/core.html#ID-258A00AF ExceptionCode}\n * @param {string | keyof typeof DOMExceptionName | Error} [nameOrMessage]\n * The `name` to use for the error.\n * If `messageOrCode` is a number, this arguments is used as the `message` instead.\n * @augments Error\n * @see https://webidl.spec.whatwg.org/#idl-DOMException\n * @see https://webidl.spec.whatwg.org/#dfn-error-names-table\n * @see https://www.w3.org/TR/DOM-Level-3-Core/core.html#ID-17189187\n * @see http://www.w3.org/TR/2000/REC-DOM-Level-2-Core-20001113/ecma-script-binding.html\n * @see http://www.w3.org/TR/REC-DOM-Level-1/ecma-script-language-binding.html\n */\nfunction DOMException(messageOrCode, nameOrMessage) {\n\t// support old way of passing arguments: first argument is a valid number\n\tif (isValidDomExceptionCode(messageOrCode)) {\n\t\tthis.name = DOMExceptionNames[messageOrCode];\n\t\tthis.message = nameOrMessage || '';\n\t} else {\n\t\tthis.message = messageOrCode;\n\t\tthis.name = endsWithError(nameOrMessage) ? nameOrMessage : DOMExceptionName.Error;\n\t}\n\tif (Error.captureStackTrace) Error.captureStackTrace(this, DOMException);\n}\nextendError(DOMException, true);\nObject.defineProperties(DOMException.prototype, {\n\tcode: {\n\t\tenumerable: true,\n\t\tget: function () {\n\t\t\tvar code = DOMExceptionNames.indexOf(this.name);\n\t\t\tif (isValidDomExceptionCode(code)) return code;\n\t\t\treturn 0;\n\t\t},\n\t},\n});\n\nvar ExceptionCode = {\n\tINDEX_SIZE_ERR: 1,\n\tDOMSTRING_SIZE_ERR: 2,\n\tHIERARCHY_REQUEST_ERR: 3,\n\tWRONG_DOCUMENT_ERR: 4,\n\tINVALID_CHARACTER_ERR: 5,\n\tNO_DATA_ALLOWED_ERR: 6,\n\tNO_MODIFICATION_ALLOWED_ERR: 7,\n\tNOT_FOUND_ERR: 8,\n\tNOT_SUPPORTED_ERR: 9,\n\tINUSE_ATTRIBUTE_ERR: 10,\n\tINVALID_STATE_ERR: 11,\n\tSYNTAX_ERR: 12,\n\tINVALID_MODIFICATION_ERR: 13,\n\tNAMESPACE_ERR: 14,\n\tINVALID_ACCESS_ERR: 15,\n\tVALIDATION_ERR: 16,\n\tTYPE_MISMATCH_ERR: 17,\n\tSECURITY_ERR: 18,\n\tNETWORK_ERR: 19,\n\tABORT_ERR: 20,\n\tURL_MISMATCH_ERR: 21,\n\tQUOTA_EXCEEDED_ERR: 22,\n\tTIMEOUT_ERR: 23,\n\tINVALID_NODE_TYPE_ERR: 24,\n\tDATA_CLONE_ERR: 25,\n};\n\nvar entries = Object.entries(ExceptionCode);\nfor (var i = 0; i < entries.length; i++) {\n\tvar key = entries[i][0];\n\tDOMException[key] = entries[i][1];\n}\n\n/**\n * Creates an error that will not be caught by XMLReader aka the SAX parser.\n *\n * @class\n * @param {string} message\n * @param {any} [locator]\n * @param {Error} [cause]\n * The error that caused this one, e.g. a `DOMException` thrown while building the DOM.\n */\nfunction ParseError(message, locator, cause) {\n\tthis.message = message;\n\tthis.locator = locator;\n\tthis.cause = cause;\n\tif (Error.captureStackTrace) Error.captureStackTrace(this, ParseError);\n}\nextendError(ParseError);\n\nexports.DOMException = DOMException;\nexports.DOMExceptionName = DOMExceptionName;\nexports.ExceptionCode = ExceptionCode;\nexports.ParseError = ParseError;\n","'use strict';\n\n/**\n * Detects relevant unicode support for regular expressions in the runtime.\n * Should the runtime not accepts the flag `u` or unicode ranges,\n * character classes without unicode handling will be used.\n *\n * @param {typeof RegExp} [RegExpImpl=RegExp]\n * For testing: the RegExp class.\n * @returns {boolean}\n * @see https://node.green/#ES2015-syntax-RegExp--y--and--u--flags\n */\nfunction detectUnicodeSupport(RegExpImpl) {\n\ttry {\n\t\tif (typeof RegExpImpl !== 'function') {\n\t\t\tRegExpImpl = RegExp;\n\t\t}\n\t\t// eslint-disable-next-line es5/no-unicode-regex,es5/no-unicode-code-point-escape\n\t\tvar match = new RegExpImpl('\\u{1d306}', 'u').exec('𝌆');\n\t\treturn !!match && match[0].length === 2;\n\t} catch (error) {}\n\treturn false;\n}\nvar UNICODE_SUPPORT = detectUnicodeSupport();\n\n/**\n * Removes `[`, `]` and any trailing quantifiers from the source of a RegExp.\n *\n * @param {RegExp} regexp\n */\nfunction chars(regexp) {\n\tif (regexp.source[0] !== '[') {\n\t\tthrow new Error(regexp + ' can not be used with chars');\n\t}\n\treturn regexp.source.slice(1, regexp.source.lastIndexOf(']'));\n}\n\n/**\n * Creates a new character list regular expression,\n * by removing `search` from the source of `regexp`.\n *\n * @param {RegExp} regexp\n * @param {string} search\n * The character(s) to remove.\n * @returns {RegExp}\n */\nfunction chars_without(regexp, search) {\n\tif (regexp.source[0] !== '[') {\n\t\tthrow new Error('/' + regexp.source + '/ can not be used with chars_without');\n\t}\n\tif (!search || typeof search !== 'string') {\n\t\tthrow new Error(JSON.stringify(search) + ' is not a valid search');\n\t}\n\tif (regexp.source.indexOf(search) === -1) {\n\t\tthrow new Error('\"' + search + '\" is not is /' + regexp.source + '/');\n\t}\n\tif (search === '-' && regexp.source.indexOf(search) !== 1) {\n\t\tthrow new Error('\"' + search + '\" is not at the first postion of /' + regexp.source + '/');\n\t}\n\treturn new RegExp(regexp.source.replace(search, ''), UNICODE_SUPPORT ? 'u' : '');\n}\n\n/**\n * Combines and Regular expressions correctly by using `RegExp.source`.\n *\n * @param {...(RegExp | string)[]} args\n * @returns {RegExp}\n */\nfunction reg(args) {\n\tvar self = this;\n\treturn new RegExp(\n\t\tArray.prototype.slice\n\t\t\t.call(arguments)\n\t\t\t.map(function (part) {\n\t\t\t\tvar isStr = typeof part === 'string';\n\t\t\t\tif (isStr && self === undefined && part === '|') {\n\t\t\t\t\tthrow new Error('use regg instead of reg to wrap expressions with `|`!');\n\t\t\t\t}\n\t\t\t\treturn isStr ? part : part.source;\n\t\t\t})\n\t\t\t.join(''),\n\t\tUNICODE_SUPPORT ? 'u' : ''\n\t);\n}\n\n/**\n * Like `reg` but wraps the expression in `(?:`,`)` to create a non tracking group.\n *\n * @param {...(RegExp | string)[]} args\n * @returns {RegExp}\n */\nfunction regg(args) {\n\tif (arguments.length === 0) {\n\t\tthrow new Error('no parameters provided');\n\t}\n\treturn reg.apply(regg, ['(?:'].concat(Array.prototype.slice.call(arguments), [')']));\n}\n\n// /**\n// * Append ^ to the beginning of the expression.\n// * @param {...(RegExp | string)[]} args\n// * @returns {RegExp}\n// */\n// function reg_start(args) {\n// \tif (arguments.length === 0) {\n// \t\tthrow new Error('no parameters provided');\n// \t}\n// \treturn reg.apply(reg_start, ['^'].concat(Array.prototype.slice.call(arguments)));\n// }\n\n// https://www.w3.org/TR/xml/#document\n// `[1] document ::= prolog element Misc*`\n// https://www.w3.org/TR/xml11/#NT-document\n// `[1] document ::= ( prolog element Misc* ) - ( Char* RestrictedChar Char* )`\n\n/**\n * A character usually appearing in wrongly converted strings.\n *\n * @type {string}\n * @see https://en.wikipedia.org/wiki/Specials_(Unicode_block)#Replacement_character\n * @see https://nodejs.dev/en/api/v18/buffer/#buffers-and-character-encodings\n * @see https://www.unicode.org/faq/utf_bom.html#BOM\n * @readonly\n */\nvar UNICODE_REPLACEMENT_CHARACTER = '\\uFFFD';\n// https://www.w3.org/TR/xml/#NT-Char\n// any Unicode character, excluding the surrogate blocks, FFFE, and FFFF.\n// `[2] Char ::= #x9 | #xA | #xD | [#x20-#xD7FF] | [#xE000-#xFFFD] | [#x10000-#x10FFFF]`\n// https://www.w3.org/TR/xml11/#NT-Char\n// `[2] Char ::= [#x1-#xD7FF] | [#xE000-#xFFFD] | [#x10000-#x10FFFF]`\n// https://www.w3.org/TR/xml11/#NT-RestrictedChar\n// `[2a] RestrictedChar ::= [#x1-#x8] | [#xB-#xC] | [#xE-#x1F] | [#x7F-#x84] | [#x86-#x9F]`\n// https://www.w3.org/TR/xml11/#charsets\nvar Char = /[-\\x09\\x0A\\x0D\\x20-\\x2C\\x2E-\\uD7FF\\uE000-\\uFFFD]/; // without \\u10000-\\uEFFFF\nif (UNICODE_SUPPORT) {\n\t// eslint-disable-next-line es5/no-unicode-code-point-escape\n\tChar = reg('[', chars(Char), '\\\\u{10000}-\\\\u{10FFFF}', ']');\n}\n// Negation of Char: matches any character that is NOT a valid XML 1.0 Char.\n// Derived directly from the Char character class above (after the unicode-support extension).\n// XML 1.0 Char production [2]: #x9 | #xA | #xD | [#x20-#xD7FF] | [#xE000-#xFFFD] | [#x10000-#x10FFFF]\n// @see https://www.w3.org/TR/xml/#NT-Char\nvar InvalidChar = new RegExp('[^' + chars(Char) + ']', UNICODE_SUPPORT ? 'u' : '');\n\nvar _SChar = /[\\x20\\x09\\x0D\\x0A]/;\nvar SChar_s = chars(_SChar);\n// https://www.w3.org/TR/xml11/#NT-S\n// `[3] S ::= (#x20 | #x9 | #xD | #xA)+`\nvar S = reg(_SChar, '+');\n// optional whitespace described as `S?` in the grammar,\n// simplified to 0-n occurrences of the character class\n// instead of 0-1 occurrences of a non-capturing group around S\nvar S_OPT = reg(_SChar, '*');\n\n// https://www.w3.org/TR/xml11/#NT-NameStartChar\n// `[4] NameStartChar ::= \":\" | [A-Z] | \"_\" | [a-z] | [#xC0-#xD6] | [#xD8-#xF6] | [#xF8-#x2FF] | [#x370-#x37D] | [#x37F-#x1FFF] | [#x200C-#x200D] | [#x2070-#x218F] | [#x2C00-#x2FEF] | [#x3001-#xD7FF] | [#xF900-#xFDCF] | [#xFDF0-#xFFFD] | [#x10000-#xEFFFF]`\nvar NameStartChar =\n\t/[:_a-zA-Z\\xC0-\\xD6\\xD8-\\xF6\\xF8-\\u02FF\\u0370-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD]/; // without \\u10000-\\uEFFFF\nif (UNICODE_SUPPORT) {\n\t// eslint-disable-next-line es5/no-unicode-code-point-escape\n\tNameStartChar = reg('[', chars(NameStartChar), '\\\\u{10000}-\\\\u{10FFFF}', ']');\n}\nvar NameStartChar_s = chars(NameStartChar);\n\n// https://www.w3.org/TR/xml11/#NT-NameChar\n// `[4a] NameChar ::= NameStartChar | \"-\" | \".\" | [0-9] | #xB7 | [#x0300-#x036F] | [#x203F-#x2040]`\nvar NameChar = reg('[', NameStartChar_s, chars(/[-.0-9\\xB7]/), chars(/[\\u0300-\\u036F\\u203F-\\u2040]/), ']');\n// https://www.w3.org/TR/xml11/#NT-Name\n// `[5] Name ::= NameStartChar (NameChar)*`\nvar Name = reg(NameStartChar, NameChar, '*');\n// Full-string anchored matcher for requireWellFormed serializer checks\n// https://w3c.github.io/DOM-Parsing/#xml-serializing-a-document-node\nvar Name_exact = reg('^', Name, '$');\n/*\nhttps://www.w3.org/TR/xml11/#NT-Names\n`[6] Names ::= Name (#x20 Name)*`\n*/\n\n// https://www.w3.org/TR/xml11/#NT-Nmtoken\n// `[7] Nmtoken ::= (NameChar)+`\nvar Nmtoken = reg(NameChar, '+');\n/*\nhttps://www.w3.org/TR/xml11/#NT-Nmtokens\n`[8] Nmtokens ::= Nmtoken (#x20 Nmtoken)*`\nvar Nmtokens = reg(Nmtoken, regg(/\\x20/, Nmtoken), '*');\n*/\n\n// https://www.w3.org/TR/xml11/#NT-EntityRef\n// `[68] EntityRef ::= '&' Name ';'` [WFC: Entity Declared] [VC: Entity Declared] [WFC: Parsed Entity] [WFC: No Recursion]\nvar EntityRef = reg('&', Name, ';');\n// https://www.w3.org/TR/xml11/#NT-CharRef\n// `[66] CharRef ::= '&#' [0-9]+ ';' | '&#x' [0-9a-fA-F]+ ';'` [WFC: Legal Character]\nvar CharRef = regg(/&#[0-9]+;|&#x[0-9a-fA-F]+;/);\n\n/*\nhttps://www.w3.org/TR/xml11/#NT-Reference\n- `[67] Reference ::= EntityRef | CharRef`\n- `[66] CharRef ::= '&#' [0-9]+ ';' | '&#x' [0-9a-fA-F]+ ';'` [WFC: Legal Character]\n- `[68] EntityRef ::= '&' Name ';'` [WFC: Entity Declared] [VC: Entity Declared] [WFC: Parsed Entity] [WFC: No Recursion]\n*/\nvar Reference = regg(EntityRef, '|', CharRef);\n\n// https://www.w3.org/TR/xml11/#NT-PEReference\n// `[69] PEReference ::= '%' Name ';'`\n// [VC: Entity Declared] [WFC: No Recursion] [WFC: In DTD]\nvar PEReference = reg('%', Name, ';');\n\n// https://www.w3.org/TR/xml11/#NT-EntityValue\n// `[9] EntityValue ::= '\"' ([^%&\"] | PEReference | Reference)* '\"' | \"'\" ([^%&'] | PEReference | Reference)* \"'\"`\nvar EntityValue = regg(\n\treg('\"', regg(/[^%&\"]/, '|', PEReference, '|', Reference), '*', '\"'),\n\t'|',\n\treg(\"'\", regg(/[^%&']/, '|', PEReference, '|', Reference), '*', \"'\")\n);\n\n// https://www.w3.org/TR/xml11/#NT-AttValue\n// `[10] AttValue ::= '\"' ([^<&\"] | Reference)* '\"' | \"'\" ([^<&'] | Reference)* \"'\"`\nvar AttValue = regg('\"', regg(/[^<&\"]/, '|', Reference), '*', '\"', '|', \"'\", regg(/[^<&']/, '|', Reference), '*', \"'\");\n\n// https://www.w3.org/TR/xml-names/#ns-decl\n// https://www.w3.org/TR/xml-names/#ns-qualnames\n// NameStartChar without \":\"\nvar NCNameStartChar = chars_without(NameStartChar, ':');\n// https://www.w3.org/TR/xml-names/#orphans\n// `[5] NCNameChar ::= NameChar - ':'`\n// An XML NameChar, minus the \":\"\nvar NCNameChar = chars_without(NameChar, ':');\n// https://www.w3.org/TR/xml-names/#NT-NCName\n// `[4] NCName ::= Name - (Char* ':' Char*)`\n// An XML Name, minus the \":\"\nvar NCName = reg(NCNameStartChar, NCNameChar, '*');\n// Full-string anchored matcher for requireWellFormed serializer checks\n// https://w3c.github.io/DOM-Parsing/#xml-serializing-a-document-node\nvar NCName_exact = reg('^', NCName, '$');\n\n/**\nhttps://www.w3.org/TR/xml-names/#ns-qualnames\n\n```\n[7] QName ::= PrefixedName | UnprefixedName\n\t\t\t\t === (NCName ':' NCName) | NCName\n\t\t\t\t === NCName (':' NCName)?\n[8] PrefixedName ::= Prefix ':' LocalPart\n\t\t\t\t\t\t\t\t === NCName ':' NCName\n[9] UnprefixedName ::= LocalPart\n\t\t\t\t\t\t\t\t\t === NCName\n[10] Prefix ::= NCName\n[11] LocalPart ::= NCName\n```\n*/\nvar QName = reg(NCName, regg(':', NCName), '?');\nvar QName_exact = reg('^', QName, '$');\nvar QName_group = reg('(', QName, ')');\n\n// https://www.w3.org/TR/xml11/#NT-SystemLiteral\n// `[11] SystemLiteral ::= ('\"' [^\"]* '\"') | (\"'\" [^']* \"'\")`\nvar SystemLiteral = regg(/\"[^\"]*\"|'[^']*'/);\n\n/*\n https://www.w3.org/TR/xml11/#NT-PI\n ```\n [17] PITarget ::= Name - (('X' | 'x') ('M' | 'm') ('L' | 'l'))\n [16] PI ::= '<?' PITarget (S (Char* - (Char* '?>' Char*)))? '?>'\n ```\n target /xml/i is not excluded!\n*/\n// The `(?!S)` after the leading `S+` asserts the data starts with a non-whitespace\n// character (greedy `S+` already consumes all separating whitespace), pruning the\n// `S+`/`Char*?` whitespace overlap that otherwise makes an unterminated PI (no `?>`)\n// backtrack quadratically. The lookahead is non-capturing, so the data stays group 2.\nvar PI = reg(/^<\\?/, '(', Name, ')', regg(S, '(?!', _SChar, ')(', Char, '*?)'), '?', /\\?>/);\n\n// https://www.w3.org/TR/xml11/#NT-PubidChar\n// `[13] PubidChar ::= #x20 | #xD | #xA | [a-zA-Z0-9] | [-'()+,./:=?;!*#@$_%]`\nvar PubidChar = /[\\x20\\x0D\\x0Aa-zA-Z0-9-'()+,./:=?;!*#@$_%]/;\n\n// https://www.w3.org/TR/xml11/#NT-PubidLiteral\n// `[12] PubidLiteral ::= '\"' PubidChar* '\"' | \"'\" (PubidChar - \"'\")* \"'\"`\nvar PubidLiteral = regg('\"', PubidChar, '*\"', '|', \"'\", chars_without(PubidChar, \"'\"), \"*'\");\n\n// https://www.w3.org/TR/xml11/#NT-CharData\n// `[14] CharData ::= [^<&]* - ([^<&]* ']]>' [^<&]*)`\n\nvar COMMENT_START = '<!--';\nvar COMMENT_END = '-->';\n// https://www.w3.org/TR/xml11/#NT-Comment\n// `[15] Comment ::= '<!--' ((Char - '-') | ('-' (Char - '-')))* '-->'`\nvar Comment = reg(COMMENT_START, regg(chars_without(Char, '-'), '|', reg('-', chars_without(Char, '-'))), '*', COMMENT_END);\n\nvar PCDATA = '#PCDATA';\n// https://www.w3.org/TR/xml11/#NT-Mixed\n// `[51] Mixed ::= '(' S? '#PCDATA' (S? '|' S? Name)* S? ')*' | '(' S? '#PCDATA' S? ')'`\n// https://www.w3.org/TR/xml-names/#NT-Mixed\n// `[51] Mixed ::= '(' S? '#PCDATA' (S? '|' S? QName)* S? ')*' | '(' S? '#PCDATA' S? ')'`\n// [VC: Proper Group/PE Nesting] [VC: No Duplicate Types]\nvar Mixed = regg(\n\treg(/\\(/, S_OPT, PCDATA, regg(S_OPT, /\\|/, S_OPT, QName), '*', S_OPT, /\\)\\*/),\n\t'|',\n\treg(/\\(/, S_OPT, PCDATA, S_OPT, /\\)/)\n);\n\nvar _children_quantity = /[?*+]?/;\n/*\n `[49] choice ::= '(' S? cp ( S? '|' S? cp )+ S? ')'` [VC: Proper Group/PE Nesting]\n `[50] seq ::= '(' S? cp ( S? ',' S? cp )* S? ')'` [VC: Proper Group/PE Nesting]\n simplification to solve circular referencing, but doesn't check validity constraint \"Proper Group/PE Nesting\"\n var _choice_or_seq = reg('[', NameChar_s, SChar_s, chars(_children_quantity), '()|,]*');\n ```\n [48] cp ::= (Name | choice | seq) ('?' | '*' | '+')?\n === (Name | '(' S? cp ( S? '|' S? cp )+ S? ')' | '(' S? cp ( S? ',' S? cp )* S? ')') ('?' | '*' | '+')?\n !== (Name | [_choice_or_seq]*) ('?' | '*' | '+')?\n ```\n simplification to solve circular referencing, but doesn't check validity constraint \"Proper Group/PE Nesting\"\n var cp = reg(regg(Name, '|', _choice_or_seq), _children_quantity);\n*/\n/*\nInefficient regular expression (High)\nThis part of the regular expression may cause exponential backtracking on strings starting with '(|' and containing many repetitions of '|'.\nhttps://github.com/xmldom/xmldom/security/code-scanning/91\nvar choice = regg(/\\(/, S_OPT, cp, regg(S_OPT, /\\|/, S_OPT, cp), '+', S_OPT, /\\)/);\n*/\n/*\nInefficient regular expression (High)\nThis part of the regular expression may cause exponential backtracking on strings starting with '(,' and containing many repetitions of ','.\nhttps://github.com/xmldom/xmldom/security/code-scanning/92\nvar seq = regg(/\\(/, S_OPT, cp, regg(S_OPT, /,/, S_OPT, cp), '*', S_OPT, /\\)/);\n*/\n\n// `[47] children ::= (choice | seq) ('?' | '*' | '+')?`\n// simplification to solve circular referencing, but doesn't check validity constraint \"Proper Group/PE Nesting\"\nvar children = reg(/\\([^>]+\\)/, _children_quantity /*regg(choice, '|', seq), _children_quantity*/);\n\n// https://www.w3.org/TR/xml11/#NT-contentspec\n// `[46] contentspec ::= 'EMPTY' | 'ANY' | Mixed | children`\nvar contentspec = regg('EMPTY', '|', 'ANY', '|', Mixed, '|', children);\n\nvar ELEMENTDECL_START = '<!ELEMENT';\n// https://www.w3.org/TR/xml11/#NT-elementdecl\n// `[45] elementdecl ::= '<!ELEMENT' S Name S contentspec S? '>'`\n// https://www.w3.org/TR/xml-names/#NT-elementdecl\n// `[17] elementdecl ::= '<!ELEMENT' S QName S contentspec S? '>'`\n// because of https://www.w3.org/TR/xml11/#NT-PEReference\n// since xmldom is not supporting replacements of PEReferences in the DTD\n// this also supports PEReference in the possible places\nvar elementdecl = reg(ELEMENTDECL_START, S, regg(QName, '|', PEReference), S, regg(contentspec, '|', PEReference), S_OPT, '>');\n\n// https://www.w3.org/TR/xml11/#NT-NotationType\n// `[58] NotationType ::= 'NOTATION' S '(' S? Name (S? '|' S? Name)* S? ')'`\n// [VC: Notation Attributes] [VC: One Notation Per Element Type] [VC: No Notation on Empty Element] [VC: No Duplicate Tokens]\nvar NotationType = reg('NOTATION', S, /\\(/, S_OPT, Name, regg(S_OPT, /\\|/, S_OPT, Name), '*', S_OPT, /\\)/);\n// https://www.w3.org/TR/xml11/#NT-Enumeration\n// `[59] Enumeration ::= '(' S? Nmtoken (S? '|' S? Nmtoken)* S? ')'`\n// [VC: Enumeration] [VC: No Duplicate Tokens]\nvar Enumeration = reg(/\\(/, S_OPT, Nmtoken, regg(S_OPT, /\\|/, S_OPT, Nmtoken), '*', S_OPT, /\\)/);\n\n// https://www.w3.org/TR/xml11/#NT-EnumeratedType\n// `[57] EnumeratedType ::= NotationType | Enumeration`\nvar EnumeratedType = regg(NotationType, '|', Enumeration);\n\n/*\n```\n[55] StringType ::= 'CDATA'\n[56] TokenizedType ::= 'ID' [VC: ID] [VC: One ID per Element Type] [VC: ID Attribute Default]\n | 'IDREF' [VC: IDREF]\n | 'IDREFS' [VC: IDREF]\n\t | 'ENTITY' [VC: Entity Name]\n\t | 'ENTITIES' [VC: Entity Name]\n\t | 'NMTOKEN' [VC: Name Token]\n\t | 'NMTOKENS' [VC: Name Token]\n [54] AttType ::= StringType | TokenizedType | EnumeratedType\n```*/\nvar AttType = regg(/CDATA|ID|IDREF|IDREFS|ENTITY|ENTITIES|NMTOKEN|NMTOKENS/, '|', EnumeratedType);\n\n// `[60] DefaultDecl ::= '#REQUIRED' | '#IMPLIED' | (('#FIXED' S)? AttValue)`\n// [WFC: No < in Attribute Values] [WFC: No External Entity References]\n// [VC: Fixed Attribute Default] [VC: Required Attribute] [VC: Attribute Default Value Syntactically Correct]\nvar DefaultDecl = regg(/#REQUIRED|#IMPLIED/, '|', regg(regg('#FIXED', S), '?', AttValue));\n\n// https://www.w3.org/TR/xml11/#NT-AttDef\n// [53] AttDef ::= S Name S AttType S DefaultDecl\n// https://www.w3.org/TR/xml-names/#NT-AttDef\n// [1] NSAttName ::= PrefixedAttName | DefaultAttName\n// [2] PrefixedAttName ::= 'xmlns:' NCName [NSC: Reserved Prefixes and Namespace Names]\n// [3] DefaultAttName ::= 'xmlns'\n// [21] AttDef ::= S (QName | NSAttName) S AttType S DefaultDecl\n// \t\t\t\t\t\t === S Name S AttType S DefaultDecl\n// xmldom is not distinguishing between QName and NSAttName on this level\n// to support XML without namespaces in DTD we can not restrict it to QName\nvar AttDef = regg(S, Name, S, AttType, S, DefaultDecl);\n\nvar ATTLIST_DECL_START = '<!ATTLIST';\n// https://www.w3.org/TR/xml11/#NT-AttlistDecl\n// `[52] AttlistDecl ::= '<!ATTLIST' S Name AttDef* S? '>'`\n// https://www.w3.org/TR/xml-names/#NT-AttlistDecl\n// `[20] AttlistDecl ::= '<!ATTLIST' S QName AttDef* S? '>'`\n// to support XML without namespaces in DTD we can not restrict it to QName\nvar AttlistDecl = reg(ATTLIST_DECL_START, S, Name, AttDef, '*', S_OPT, '>');\n\n// https://html.spec.whatwg.org/multipage/urls-and-fetching.html#about:legacy-compat\nvar ABOUT_LEGACY_COMPAT = 'about:legacy-compat';\nvar ABOUT_LEGACY_COMPAT_SystemLiteral = regg('\"' + ABOUT_LEGACY_COMPAT + '\"', '|', \"'\" + ABOUT_LEGACY_COMPAT + \"'\");\nvar SYSTEM = 'SYSTEM';\nvar PUBLIC = 'PUBLIC';\n// https://www.w3.org/TR/xml11/#NT-ExternalID\n// `[75] ExternalID ::= 'SYSTEM' S SystemLiteral | 'PUBLIC' S PubidLiteral S SystemLiteral`\nvar ExternalID = regg(regg(SYSTEM, S, SystemLiteral), '|', regg(PUBLIC, S, PubidLiteral, S, SystemLiteral));\nvar ExternalID_match = reg(\n\t'^',\n\tregg(\n\t\tregg(SYSTEM, S, '(?<SystemLiteralOnly>', SystemLiteral, ')'),\n\t\t'|',\n\t\tregg(PUBLIC, S, '(?<PubidLiteral>', PubidLiteral, ')', S, '(?<SystemLiteral>', SystemLiteral, ')')\n\t)\n);\n// Full-string anchored matcher for requireWellFormed serializer checks\n// https://w3c.github.io/DOM-Parsing/#xml-serializing-a-document-node\nvar PubidLiteral_match = reg('^', PubidLiteral, '$');\n// Full-string anchored matcher for requireWellFormed serializer checks\n// https://w3c.github.io/DOM-Parsing/#xml-serializing-a-document-node\nvar SystemLiteral_match = reg('^', SystemLiteral, '$');\n\n// https://www.w3.org/TR/xml11/#NT-NDataDecl\n// `[76] NDataDecl ::= S 'NDATA' S Name` [VC: Notation Declared]\nvar NDataDecl = regg(S, 'NDATA', S, Name);\n\n// https://www.w3.org/TR/xml11/#NT-EntityDef\n// `[73] EntityDef ::= EntityValue | (ExternalID NDataDecl?)`\nvar EntityDef = regg(EntityValue, '|', regg(ExternalID, NDataDecl, '?'));\n\nvar ENTITY_DECL_START = '<!ENTITY';\n// https://www.w3.org/TR/xml11/#NT-GEDecl\n// `[71] GEDecl ::= '<!ENTITY' S Name S EntityDef S? '>'`\nvar GEDecl = reg(ENTITY_DECL_START, S, Name, S, EntityDef, S_OPT, '>');\n// https://www.w3.org/TR/xml11/#NT-PEDef\n// `[74] PEDef ::= EntityValue | ExternalID`\nvar PEDef = regg(EntityValue, '|', ExternalID);\n// https://www.w3.org/TR/xml11/#NT-PEDecl\n// `[72] PEDecl ::= '<!ENTITY' S '%' S Name S PEDef S? '>'`\nvar PEDecl = reg(ENTITY_DECL_START, S, '%', S, Name, S, PEDef, S_OPT, '>');\n// https://www.w3.org/TR/xml11/#NT-EntityDecl\n// `[70] EntityDecl ::= GEDecl | PEDecl`\nvar EntityDecl = regg(GEDecl, '|', PEDecl);\n\n// https://www.w3.org/TR/xml11/#NT-PublicID\n// `[83] PublicID ::= 'PUBLIC' S PubidLiteral`\nvar PublicID = reg(PUBLIC, S, PubidLiteral);\n// https://www.w3.org/TR/xml11/#NT-NotationDecl\n// `[82] NotationDecl ::= '<!NOTATION' S Name S (ExternalID | PublicID) S? '>'` [VC: Unique Notation Name]\nvar NotationDecl = reg('<!NOTATION', S, Name, S, regg(ExternalID, '|', PublicID), S_OPT, '>');\n\n// https://www.w3.org/TR/xml11/#NT-Eq\n// `[25] Eq ::= S? '=' S?`\nvar Eq = reg(S_OPT, '=', S_OPT);\n// https://www.w3.org/TR/xml/#NT-VersionNum\n// `[26] VersionNum ::= '1.' [0-9]+`\n// https://www.w3.org/TR/xml11/#NT-VersionNum\n// `[26] VersionNum ::= '1.1'`\nvar VersionNum = /1[.]\\d+/;\n// https://www.w3.org/TR/xml11/#NT-VersionInfo\n// `[24] VersionInfo ::= S 'version' Eq (\"'\" VersionNum \"'\" | '\"' VersionNum '\"')`\nvar VersionInfo = reg(S, 'version', Eq, regg(\"'\", VersionNum, \"'\", '|', '\"', VersionNum, '\"'));\n// https://www.w3.org/TR/xml11/#NT-EncName\n// `[81] EncName ::= [A-Za-z] ([A-Za-z0-9._] | '-')*`\nvar EncName = /[A-Za-z][-A-Za-z0-9._]*/;\n// https://www.w3.org/TR/xml11/#NT-EncDecl\n// `[80] EncodingDecl ::= S 'encoding' Eq ('\"' EncName '\"' | \"'\" EncName \"'\" )`\nvar EncodingDecl = regg(S, 'encoding', Eq, regg('\"', EncName, '\"', '|', \"'\", EncName, \"'\"));\n// https://www.w3.org/TR/xml11/#NT-SDDecl\n// `[32] SDDecl ::= S 'standalone' Eq ((\"'\" ('yes' | 'no') \"'\") | ('\"' ('yes' | 'no') '\"'))`\nvar SDDecl = regg(S, 'standalone', Eq, regg(\"'\", regg('yes', '|', 'no'), \"'\", '|', '\"', regg('yes', '|', 'no'), '\"'));\n// https://www.w3.org/TR/xml11/#NT-XMLDecl\n// [23] XMLDecl ::= '<?xml' VersionInfo EncodingDecl? SDDecl? S? '?>'\nvar XMLDecl = reg(/^<\\?xml/, VersionInfo, EncodingDecl, '?', SDDecl, '?', S_OPT, /\\?>/);\n\n/*\n https://www.w3.org/TR/xml/#NT-markupdecl\n https://www.w3.org/TR/xml11/#NT-markupdecl\n `[29] markupdecl ::= elementdecl | AttlistDecl | EntityDecl | NotationDecl | PI | Comment`\n var markupdecl = regg(elementdecl, '|', AttlistDecl, '|', EntityDecl, '|', NotationDecl, '|', PI_unsafe, '|', Comment);\n*/\n/*\n https://www.w3.org/TR/xml-names/#NT-doctypedecl\n`[28a] DeclSep ::= PEReference | S`\n https://www.w3.org/TR/xml11/#NT-intSubset\n```\n [28b] intSubset ::= (markupdecl | DeclSep)*\n === (markupdecl | PEReference | S)*\n```\n [WFC: PE Between Declarations]\n var intSubset = reg(regg(markupdecl, '|', PEReference, '|', S), '*');\n*/\nvar DOCTYPE_DECL_START = '<!DOCTYPE';\n/*\n https://www.w3.org/TR/xml11/#NT-doctypedecl\n `[28] doctypedecl ::= '<!DOCTYPE' S Name (S ExternalID)? S? ('[' intSubset ']' S?)? '>'`\n https://www.afterwardsw3.org/TR/xml-names/#NT-doctypedecl\n `[16] doctypedecl ::= '<!DOCTYPE' S QName (S ExternalID)? S? ('[' (markupdecl | PEReference | S)* ']' S?)? '>'`\n var doctypedecl = reg('<!DOCTYPE', S, Name, regg(S, ExternalID), '?', S_OPT, regg(/\\[/, intSubset, /]/, S_OPT), '?', '>');\n*/\n\nvar CDATA_START = '<![CDATA[';\nvar CDATA_END = ']]>';\nvar CDStart = /<!\\[CDATA\\[/;\nvar CDEnd = /\\]\\]>/;\nvar CData = reg(Char, '*?', CDEnd);\n/*\n https://www.w3.org/TR/xml/#dt-cdsection\n `[18] \tCDSect\t ::= \tCDStart CData CDEnd`\n `[19] \tCDStart\t ::= \t'<![CDATA['`\n `[20] \tCData\t ::= \t(Char* - (Char* ']]>' Char*))`\n `[21] \tCDEnd\t ::= \t']]>'`\n*/\nvar CDSect = reg(CDStart, CData);\n\n// unit tested\nexports.chars = chars;\nexports.chars_without = chars_without;\nexports.detectUnicodeSupport = detectUnicodeSupport;\nexports.reg = reg;\nexports.regg = regg;\nexports.ABOUT_LEGACY_COMPAT = ABOUT_LEGACY_COMPAT;\nexports.ABOUT_LEGACY_COMPAT_SystemLiteral = ABOUT_LEGACY_COMPAT_SystemLiteral;\nexports.AttlistDecl = AttlistDecl;\nexports.CDATA_START = CDATA_START;\nexports.CDATA_END = CDATA_END;\nexports.CDSect = CDSect;\nexports.Char = Char;\nexports.Comment = Comment;\nexports.COMMENT_START = COMMENT_START;\nexports.COMMENT_END = COMMENT_END;\nexports.DOCTYPE_DECL_START = DOCTYPE_DECL_START;\nexports.elementdecl = elementdecl;\nexports.EntityDecl = EntityDecl;\nexports.EntityValue = EntityValue;\nexports.ExternalID = ExternalID;\nexports.ExternalID_match = ExternalID_match;\nexports.Name = Name;\nexports.Name_exact = Name_exact;\nexports.NCName_exact = NCName_exact;\nexports.NotationDecl = NotationDecl;\nexports.Reference = Reference;\nexports.PEReference = PEReference;\nexports.PI = PI;\nexports.PUBLIC = PUBLIC;\nexports.PubidLiteral = PubidLiteral;\nexports.PubidLiteral_match = PubidLiteral_match;\nexports.QName = QName;\nexports.QName_exact = QName_exact;\nexports.QName_group = QName_group;\nexports.S = S;\nexports.SChar_s = SChar_s;\nexports.S_OPT = S_OPT;\nexports.SYSTEM = SYSTEM;\nexports.SystemLiteral = SystemLiteral;\nexports.SystemLiteral_match = SystemLiteral_match;\nexports.InvalidChar = InvalidChar;\nexports.UNICODE_REPLACEMENT_CHARACTER = UNICODE_REPLACEMENT_CHARACTER;\nexports.UNICODE_SUPPORT = UNICODE_SUPPORT;\nexports.XMLDecl = XMLDecl;\n","'use strict';\n\nvar conventions = require('./conventions');\nvar find = conventions.find;\nvar hasDefaultHTMLNamespace = conventions.hasDefaultHTMLNamespace;\nvar hasOwn = conventions.hasOwn;\nvar isHTMLMimeType = conventions.isHTMLMimeType;\nvar isHTMLRawTextElement = conventions.isHTMLRawTextElement;\nvar isHTMLVoidElement = conventions.isHTMLVoidElement;\nvar MIME_TYPE = conventions.MIME_TYPE;\nvar NAMESPACE = conventions.NAMESPACE;\n\n/**\n * Private DOM Constructor symbol\n *\n * Internal symbol used for construction of all classes whose constructors should be private.\n * Currently used for checks in `Node`, `Document`, `Element`, `Attr`, `CharacterData`, `Text`, `Comment`,\n * `CDATASection`, `DocumentType`, `Notation`, `Entity`, `EntityReference`, `DocumentFragment`, `ProcessingInstruction`\n * so the constructor can't be used from outside the module.\n */\nvar PDC = Symbol();\n\nvar errors = require('./errors');\nvar DOMException = errors.DOMException;\nvar DOMExceptionName = errors.DOMExceptionName;\n\nvar g = require('./grammar');\n\n/**\n * Checks if the given symbol equals the Private DOM Constructor symbol (PDC)\n * and throws an Illegal constructor exception when the symbols don't match.\n * This ensures that the constructor remains private and can't be used outside this module.\n */\nfunction checkSymbol(symbol) {\n\tif (symbol !== PDC) {\n\t\tthrow new TypeError('Illegal constructor');\n\t}\n}\n\n/**\n * A prerequisite for `[].filter`, to drop elements that are empty.\n *\n * @param {string} input\n * The string to be checked.\n * @returns {boolean}\n * Returns `true` if the input string is not empty, `false` otherwise.\n */\nfunction notEmptyString(input) {\n\treturn input !== '';\n}\n/**\n * Splits a string on ASCII whitespace characters (U+0009 TAB, U+000A LF, U+000C FF, U+000D CR,\n * U+0020 SPACE).\n * It follows the definition from the infra specification from WHATWG.\n *\n * @param {string} input\n * The string to be split.\n * @returns {string[]}\n * An array of the split strings. The array can be empty if the input string is empty or only\n * contains whitespace characters.\n * @see {@link https://infra.spec.whatwg.org/#split-on-ascii-whitespace}\n * @see {@link https://infra.spec.whatwg.org/#ascii-whitespace}\n */\nfunction splitOnASCIIWhitespace(input) {\n\t// U+0009 TAB, U+000A LF, U+000C FF, U+000D CR, U+0020 SPACE\n\treturn input ? input.split(/[\\t\\n\\f\\r ]+/).filter(notEmptyString) : [];\n}\n\n/**\n * Adds element as a key to current if it is not already present.\n *\n * @param {Record<string, boolean | undefined>} current\n * The current record object to which the element will be added as a key.\n * The object's keys are string types and values are either boolean or undefined.\n * @param {string} element\n * The string to be added as a key to the current record.\n * @returns {Record<string, boolean | undefined>}\n * The updated record object after the addition of the new element.\n */\nfunction orderedSetReducer(current, element) {\n\tif (!hasOwn(current, element)) {\n\t\tcurrent[element] = true;\n\t}\n\treturn current;\n}\n\n/**\n * Converts a string into an ordered set by splitting the input on ASCII whitespace and\n * ensuring uniqueness of elements.\n * This follows the definition of an ordered set from the infra specification by WHATWG.\n *\n * @param {string} input\n * The input string to be transformed into an ordered set.\n * @returns {string[]}\n * An array of unique strings obtained from the input, preserving the original order.\n * The array can be empty if the input string is empty or only contains whitespace characters.\n * @see {@link https://infra.spec.whatwg.org/#ordered-set}\n */\nfunction toOrderedSet(input) {\n\tif (!input) return [];\n\tvar list = splitOnASCIIWhitespace(input);\n\treturn Object.keys(list.reduce(orderedSetReducer, {}));\n}\n\n/**\n * Uses `list.indexOf` to implement a function that behaves like `Array.prototype.includes`.\n * This function is used in environments where `Array.prototype.includes` may not be available.\n *\n * @param {any[]} list\n * The array in which to search for the element.\n * @returns {function(any): boolean}\n * A function that accepts an element and returns a boolean indicating whether the element is\n * included in the provided list.\n */\nfunction arrayIncludes(list) {\n\treturn function (element) {\n\t\treturn list && list.indexOf(element) !== -1;\n\t};\n}\n\n/**\n * Validates a qualified name based on the criteria provided in the DOM specification by\n * WHATWG.\n *\n * @param {string} qualifiedName\n * The qualified name to be validated.\n * @throws {DOMException}\n * With code {@link DOMException.INVALID_CHARACTER_ERR} if the qualified name contains an\n * invalid character.\n * @see {@link https://dom.spec.whatwg.org/#validate}\n */\nfunction validateQualifiedName(qualifiedName) {\n\tif (!g.QName_exact.test(qualifiedName)) {\n\t\tthrow new DOMException(DOMException.INVALID_CHARACTER_ERR, 'invalid character in qualified name \"' + qualifiedName + '\"');\n\t}\n}\n\n/**\n * Validates a qualified name and the namespace associated with it,\n * based on the criteria provided in the DOM specification by WHATWG.\n *\n * @param {string | null} namespace\n * The namespace to be validated. It can be a string or null.\n * @param {string} qualifiedName\n * The qualified name to be validated.\n * @returns {[namespace: string | null, prefix: string | null, localName: string]}\n * Returns a tuple with the namespace,\n * prefix and local name of the qualified name.\n * @throws {DOMException}\n * Throws a DOMException if the qualified name or the namespace is not valid.\n * @see {@link https://dom.spec.whatwg.org/#validate-and-extract}\n */\nfunction validateAndExtract(namespace, qualifiedName) {\n\tvalidateQualifiedName(qualifiedName);\n\tnamespace = namespace || null;\n\t/**\n\t * @type {string | null}\n\t */\n\tvar prefix = null;\n\tvar localName = qualifiedName;\n\tif (qualifiedName.indexOf(':') >= 0) {\n\t\tvar splitResult = qualifiedName.split(':');\n\t\tprefix = splitResult[0];\n\t\tlocalName = splitResult[1];\n\t}\n\tif (prefix !== null && namespace === null) {\n\t\tthrow new DOMException(DOMException.NAMESPACE_ERR, 'prefix is non-null and namespace is null');\n\t}\n\tif (prefix === 'xml' && namespace !== conventions.NAMESPACE.XML) {\n\t\tthrow new DOMException(DOMException.NAMESPACE_ERR, 'prefix is \"xml\" and namespace is not the XML namespace');\n\t}\n\tif ((prefix === 'xmlns' || qualifiedName === 'xmlns') && namespace !== conventions.NAMESPACE.XMLNS) {\n\t\tthrow new DOMException(\n\t\t\tDOMException.NAMESPACE_ERR,\n\t\t\t'either qualifiedName or prefix is \"xmlns\" and namespace is not the XMLNS namespace'\n\t\t);\n\t}\n\tif (namespace === conventions.NAMESPACE.XMLNS && prefix !== 'xmlns' && qualifiedName !== 'xmlns') {\n\t\tthrow new DOMException(\n\t\t\tDOMException.NAMESPACE_ERR,\n\t\t\t'namespace is the XMLNS namespace and neither qualifiedName nor prefix is \"xmlns\"'\n\t\t);\n\t}\n\treturn [namespace, prefix, localName];\n}\n\n/**\n * Copies properties from one object to another.\n * It only copies the object's own (not inherited) properties.\n *\n * @param {Object} src\n * The source object from which properties are copied.\n * @param {Object} dest\n * The destination object to which properties are copied.\n */\nfunction copy(src, dest) {\n\tfor (var p in src) {\n\t\tif (hasOwn(src, p)) {\n\t\t\tdest[p] = src[p];\n\t\t}\n\t}\n}\n\n/**\n * Extends a class with the properties and methods of a super class.\n * It uses a form of prototypal inheritance, and establishes the `constructor` property\n * correctly(?).\n *\n * It is not clear to the current maintainers if this implementation is making sense,\n * since it creates an intermediate prototype function,\n * which all properties of `Super` are copied onto using `_copy`.\n *\n * @param {Object} Class\n * The class that is to be extended.\n * @param {Object} Super\n * The super class from which properties and methods are inherited.\n * @private\n */\nfunction _extends(Class, Super) {\n\tvar pt = Class.prototype;\n\tif (!(pt instanceof Super)) {\n\t\tfunction t() {}\n\t\tt.prototype = Super.prototype;\n\t\tt = new t();\n\t\tcopy(pt, t);\n\t\tClass.prototype = pt = t;\n\t}\n\tif (pt.constructor != Class) {\n\t\tif (typeof Class != 'function') {\n\t\t\tconsole.error('unknown Class:' + Class);\n\t\t}\n\t\tpt.constructor = Class;\n\t}\n}\n\nvar NodeType = {};\nvar ELEMENT_NODE = (NodeType.ELEMENT_NODE = 1);\nvar ATTRIBUTE_NODE = (NodeType.ATTRIBUTE_NODE = 2);\nvar TEXT_NODE = (NodeType.TEXT_NODE = 3);\nvar CDATA_SECTION_NODE = (NodeType.CDATA_SECTION_NODE = 4);\nvar ENTITY_REFERENCE_NODE = (NodeType.ENTITY_REFERENCE_NODE = 5);\nvar ENTITY_NODE = (NodeType.ENTITY_NODE = 6);\nvar PROCESSING_INSTRUCTION_NODE = (NodeType.PROCESSING_INSTRUCTION_NODE = 7);\nvar COMMENT_NODE = (NodeType.COMMENT_NODE = 8);\nvar DOCUMENT_NODE = (NodeType.DOCUMENT_NODE = 9);\nvar DOCUMENT_TYPE_NODE = (NodeType.DOCUMENT_TYPE_NODE = 10);\nvar DOCUMENT_FRAGMENT_NODE = (NodeType.DOCUMENT_FRAGMENT_NODE = 11);\nvar NOTATION_NODE = (NodeType.NOTATION_NODE = 12);\n\nvar DocumentPosition = conventions.freeze({\n\tDOCUMENT_POSITION_DISCONNECTED: 1,\n\tDOCUMENT_POSITION_PRECEDING: 2,\n\tDOCUMENT_POSITION_FOLLOWING: 4,\n\tDOCUMENT_POSITION_CONTAINS: 8,\n\tDOCUMENT_POSITION_CONTAINED_BY: 16,\n\tDOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC: 32,\n});\n\n//helper functions for compareDocumentPosition\n/**\n * Finds the common ancestor in two parent chains.\n *\n * @param {Node[]} a\n * The first parent chain.\n * @param {Node[]} b\n * The second parent chain.\n * @returns {Node}\n * The common ancestor node if it exists. If there is no common ancestor, the function will\n * return `null`.\n */\nfunction commonAncestor(a, b) {\n\tif (b.length < a.length) return commonAncestor(b, a);\n\tvar c = null;\n\tfor (var n in a) {\n\t\tif (a[n] !== b[n]) return c;\n\t\tc = a[n];\n\t}\n\treturn c;\n}\n\n/**\n * Assigns a unique identifier to a document to ensure consistency while comparing unrelated\n * nodes.\n *\n * @param {Document} doc\n * The document to which a unique identifier is to be assigned.\n * @returns {string}\n * The unique identifier of the document. If the document already had a unique identifier, the\n * function will return the existing one.\n */\nfunction docGUID(doc) {\n\tif (!doc.guid) doc.guid = Math.random();\n\treturn doc.guid;\n}\n//-- end of helper functions\n\n/**\n * The NodeList interface provides the abstraction of an ordered collection of nodes,\n * without defining or constraining how this collection is implemented.\n * NodeList objects in the DOM are live.\n * The items in the NodeList are accessible via an integral index, starting from 0.\n * You can also access the items of the NodeList with a `for...of` loop.\n *\n * @class NodeList\n * @see http://www.w3.org/TR/2000/REC-DOM-Level-2-Core-20001113/core.html#ID-536297177\n * @constructs NodeList\n */\nfunction NodeList() {}\nNodeList.prototype = {\n\t/**\n\t * The number of nodes in the list. The range of valid child node indices is 0 to length-1\n\t * inclusive.\n\t *\n\t * @type {number}\n\t */\n\tlength: 0,\n\t/**\n\t * Returns the item at `index`. If index is greater than or equal to the number of nodes in\n\t * the list, this returns null.\n\t *\n\t * @param index\n\t * Unsigned long Index into the collection.\n\t * @returns {Node | null}\n\t * The node at position `index` in the NodeList,\n\t * or null if that is not a valid index.\n\t */\n\titem: function (index) {\n\t\treturn index >= 0 && index < this.length ? this[index] : null;\n\t},\n\t/**\n\t * Returns a string representation of the NodeList.\n\t *\n\t * Accepts the same `options` object as `XMLSerializer.prototype.serializeToString`\n\t * (`requireWellFormed`, `splitCDATASections`, `nodeFilter`). Passing a function is treated as\n\t * a legacy `nodeFilter` for backward compatibility.\n\t *\n\t * @param {Object | function} [options]\n\t * @param {boolean} [options.requireWellFormed=false]\n\t * @param {boolean} [options.splitCDATASections=true]\n\t * @param {function} [options.nodeFilter]\n\t * @returns {string}\n\t */\n\ttoString: function (options) {\n\t\tvar opts;\n\t\tif (typeof options === 'function') {\n\t\t\topts = { requireWellFormed: false, splitCDATASections: true, nodeFilter: options };\n\t\t} else if (!!options) {\n\t\t\topts = {\n\t\t\t\trequireWellFormed: !!options.requireWellFormed,\n\t\t\t\tsplitCDATASections: options.splitCDATASections !== false,\n\t\t\t\tnodeFilter: options.nodeFilter || null,\n\t\t\t};\n\t\t} else {\n\t\t\topts = { requireWellFormed: false, splitCDATASections: true, nodeFilter: null };\n\t\t}\n\t\tfor (var buf = [], i = 0; i < this.length; i++) {\n\t\t\tserializeToString(this[i], buf, null, opts);\n\t\t}\n\t\treturn buf.join('');\n\t},\n\t/**\n\t * Filters the NodeList based on a predicate.\n\t *\n\t * @param {function(Node): boolean} predicate\n\t * - A predicate function to filter the NodeList.\n\t * @returns {Node[]}\n\t * An array of nodes that satisfy the predicate.\n\t * @private\n\t */\n\tfilter: function (predicate) {\n\t\treturn Array.prototype.filter.call(this, predicate);\n\t},\n\t/**\n\t * Returns the first index at which a given node can be found in the NodeList, or -1 if it is\n\t * not present.\n\t *\n\t * @param {Node} item\n\t * - The Node item to locate in the NodeList.\n\t * @returns {number}\n\t * The first index of the node in the NodeList; -1 if not found.\n\t * @private\n\t */\n\tindexOf: function (item) {\n\t\treturn Array.prototype.indexOf.call(this, item);\n\t},\n};\nNodeList.prototype[Symbol.iterator] = function () {\n\tvar me = this;\n\tvar index = 0;\n\n\treturn {\n\t\tnext: function () {\n\t\t\tif (index < me.length) {\n\t\t\t\treturn {\n\t\t\t\t\tvalue: me[index++],\n\t\t\t\t\tdone: false,\n\t\t\t\t};\n\t\t\t} else {\n\t\t\t\treturn {\n\t\t\t\t\tdone: true,\n\t\t\t\t};\n\t\t\t}\n\t\t},\n\t\treturn: function () {\n\t\t\treturn {\n\t\t\t\tdone: true,\n\t\t\t};\n\t\t},\n\t};\n};\n\n/**\n * Represents a live collection of nodes that is automatically updated when its associated\n * document changes.\n *\n * @class LiveNodeList\n * @param {Node} node\n * The associated node.\n * @param {function} refresh\n * The function to refresh the live node list.\n * @augments NodeList\n * @constructs LiveNodeList\n */\nfunction LiveNodeList(node, refresh) {\n\tthis._node = node;\n\tthis._refresh = refresh;\n\t_updateLiveList(this);\n}\n/**\n * Updates the live node list.\n *\n * @param {LiveNodeList} list\n * The live node list to update.\n * @private\n */\nfunction _updateLiveList(list) {\n\tvar inc = list._node._inc || list._node.ownerDocument._inc;\n\tif (list._inc !== inc) {\n\t\tvar ls = list._refresh(list._node);\n\t\t__set__(list, 'length', ls.length);\n\t\tif (!list.$$length || ls.length < list.$$length) {\n\t\t\tfor (var i = ls.length; i in list; i++) {\n\t\t\t\tif (hasOwn(list, i)) {\n\t\t\t\t\tdelete list[i];\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tcopy(ls, list);\n\t\tlist._inc = inc;\n\t}\n}\n/**\n * Returns the node at position `index` in the LiveNodeList, or null if that is not a valid\n * index.\n *\n * @param {number} i\n * Index into the collection.\n * @returns {Node | null}\n * The node at position `index` in the LiveNodeList, or null if that is not a valid index.\n */\nLiveNodeList.prototype.item = function (i) {\n\t_updateLiveList(this);\n\treturn this[i] || null;\n};\n\n_extends(LiveNodeList, NodeList);\n\n/**\n * Objects implementing the NamedNodeMap interface are used to represent collections of nodes\n * that can be accessed by name.\n * Note that NamedNodeMap does not inherit from NodeList;\n * NamedNodeMaps are not maintained in any particular order.\n * Objects contained in an object implementing NamedNodeMap may also be accessed by an ordinal\n * index,\n * but this is simply to allow convenient enumeration of the contents of a NamedNodeMap,\n * and does not imply that the DOM specifies an order to these Nodes.\n * NamedNodeMap objects in the DOM are live.\n * used for attributes or DocumentType entities\n *\n * This implementation only supports property indices, but does not support named properties,\n * as specified in the living standard.\n *\n * @class NamedNodeMap\n * @see https://dom.spec.whatwg.org/#interface-namednodemap\n * @see https://webidl.spec.whatwg.org/#dfn-supported-property-names\n * @constructs NamedNodeMap\n */\n/**\n * A live collection of an element's attributes, keyed by name.\n *\n * The numbered entries and `length` are the sole authority for attribute order.\n * A separate two-level null-prototype membership index (`namespaceURI` ->\n * `localName` -> `Attr`, with the null/empty namespace held in its own bucket)\n * lets the parse-time de-duplication in `setNamedItem` resolve an existing\n * attribute in O(1) instead of scanning the list, so building an element with M\n * attributes costs O(M) rather than O(M^2). The index never reorders attributes.\n */\nfunction NamedNodeMap() {\n\t// namespaceURI (non-empty string) -> (localName -> Attr)\n\tthis._nsIndex = Object.create(null);\n\t// localName -> Attr, for the null / empty-string namespace\n\tthis._noNsIndex = Object.create(null);\n}\n/**\n * Returns the index of a node within the list.\n *\n * @param {Array} list\n * The list of nodes.\n * @param {Node} node\n * The node to find.\n * @returns {number}\n * The index of the node within the list, or -1 if not found.\n * @private\n */\nfunction _findNodeIndex(list, node) {\n\tvar i = 0;\n\twhile (i < list.length) {\n\t\tif (list[i] === node) {\n\t\t\treturn i;\n\t\t}\n\t\ti++;\n\t}\n}\n/**\n * Returns the second-level index bucket (`localName` -> `Attr`) for a namespace,\n * replicating `getNamedItemNS`'s falsy-namespace normalization: `null`,\n * `undefined` and `''` all resolve to the dedicated null-namespace bucket, kept separate from\n * any real URI (so a namespace URI equal to the string `\"null\"`\n * cannot collide with the null namespace). Both levels are null-prototype objects, so an\n * attribute named `__proto__` or `constructor` is an ordinary key.\n *\n * @param {NamedNodeMap} map\n * @param {string | null | undefined} namespaceURI\n * @param {boolean} create\n * Create the bucket if it does not exist yet.\n * @returns {Object | undefined}\n * @private\n */\nfunction _nnmBucket(map, namespaceURI, create) {\n\tif (!namespaceURI) {\n\t\treturn map._noNsIndex;\n\t}\n\tvar bucket = map._nsIndex[namespaceURI];\n\tif (!bucket && create) {\n\t\tbucket = map._nsIndex[namespaceURI] = Object.create(null);\n\t}\n\treturn bucket;\n}\n/**\n * Looks up an attribute by namespace and local name through the membership index.\n *\n * @param {NamedNodeMap} map\n * @param {string | null | undefined} namespaceURI\n * @param {string} localName\n * @returns {Attr | null}\n * The matching attribute, or `null` when absent.\n * @private\n */\nfunction _nnmIndexFind(map, namespaceURI, localName) {\n\tvar bucket = _nnmBucket(map, namespaceURI, false);\n\tvar found = bucket && bucket[localName];\n\treturn found ? found : null;\n}\n/**\n * Records `attr` in the membership index under its namespace and local name,\n * replacing any previous attribute with the same key.\n *\n * @param {NamedNodeMap} map\n * @param {Attr} attr\n * @private\n */\nfunction _nnmIndexAdd(map, attr) {\n\t_nnmBucket(map, attr.namespaceURI, true)[attr.localName] = attr;\n}\n/**\n * Removes `attr` from the membership index.\n *\n * @param {NamedNodeMap} map\n * @param {Attr} attr\n * @private\n */\nfunction _nnmIndexRemove(map, attr) {\n\tvar bucket = _nnmBucket(map, attr.namespaceURI, false);\n\tif (bucket) {\n\t\tdelete bucket[attr.localName];\n\t}\n}\n/**\n * Adds a new attribute to the list and updates the owner element of the attribute.\n *\n * @param {Element} el\n * The element which will become the owner of the new attribute.\n * @param {NamedNodeMap} list\n * The list to which the new attribute will be added.\n * @param {Attr} newAttr\n * The new attribute to be added.\n * @param {Attr} oldAttr\n * The old attribute to be replaced, or null if no attribute is to be replaced.\n * @returns {void}\n * @private\n */\nfunction _addNamedNode(el, list, newAttr, oldAttr) {\n\tif (oldAttr) {\n\t\tlist[_findNodeIndex(list, oldAttr)] = newAttr;\n\t} else {\n\t\tlist[list.length] = newAttr;\n\t\tlist.length++;\n\t}\n\t// Keep the membership index in sync with the ordered list. On replacement\n\t// `oldAttr` shares `newAttr`'s (namespace, localName) key, so this overwrites\n\t// its entry; on append it adds a new one.\n\t_nnmIndexAdd(list, newAttr);\n\tif (el) {\n\t\tnewAttr.ownerElement = el;\n\t\tvar doc = el.ownerDocument;\n\t\tif (doc) {\n\t\t\toldAttr && _onRemoveAttribute(doc, el, oldAttr);\n\t\t\t_onAddAttribute(doc, el, newAttr);\n\t\t}\n\t}\n}\n/**\n * Removes an attribute from the list and updates the owner element of the attribute.\n *\n * @param {Element} el\n * The element which is the current owner of the attribute.\n * @param {NamedNodeMap} list\n * The list from which the attribute will be removed.\n * @param {Attr} attr\n * The attribute to be removed.\n * @returns {void}\n * @private\n */\nfunction _removeNamedNode(el, list, attr) {\n\t//console.log('remove attr:'+attr)\n\tvar i = _findNodeIndex(list, attr);\n\tif (i >= 0) {\n\t\tvar lastIndex = list.length - 1;\n\t\twhile (i <= lastIndex) {\n\t\t\tlist[i] = list[++i];\n\t\t}\n\t\tlist.length = lastIndex;\n\t\t_nnmIndexRemove(list, attr);\n\t\tif (el) {\n\t\t\tvar doc = el.ownerDocument;\n\t\t\tif (doc) {\n\t\t\t\t_onRemoveAttribute(doc, el, attr);\n\t\t\t}\n\t\t\tattr.ownerElement = null;\n\t\t}\n\t}\n}\nNamedNodeMap.prototype = {\n\tlength: 0,\n\titem: NodeList.prototype.item,\n\n\t/**\n\t * Get an attribute by name. Note: Name is in lower case in case of HTML namespace and\n\t * document.\n\t *\n\t * @param {string} localName\n\t * The local name of the attribute.\n\t * @returns {Attr | null}\n\t * The attribute with the given local name, or null if no such attribute exists.\n\t * @see https://dom.spec.whatwg.org/#concept-element-attributes-get-by-name\n\t */\n\tgetNamedItem: function (localName) {\n\t\tif (this._ownerElement && this._ownerElement._isInHTMLDocumentAndNamespace()) {\n\t\t\tlocalName = localName.toLowerCase();\n\t\t}\n\t\tvar i = 0;\n\t\twhile (i < this.length) {\n\t\t\tvar attr = this[i];\n\t\t\tif (attr.nodeName === localName) {\n\t\t\t\treturn attr;\n\t\t\t}\n\t\t\ti++;\n\t\t}\n\t\treturn null;\n\t},\n\n\t/**\n\t * Set an attribute.\n\t *\n\t * @param {Attr} attr\n\t * The attribute to set.\n\t * @returns {Attr | null}\n\t * The old attribute with the same local name and namespace URI as the new one, or null if no\n\t * such attribute exists.\n\t * @throws {DOMException}\n\t * With code:\n\t * - {@link INUSE_ATTRIBUTE_ERR} - If the attribute is already an attribute of another\n\t * element.\n\t * @see https://dom.spec.whatwg.org/#concept-element-attributes-set\n\t */\n\tsetNamedItem: function (attr) {\n\t\tvar el = attr.ownerElement;\n\t\tif (el && el !== this._ownerElement) {\n\t\t\tthrow new DOMException(DOMException.INUSE_ATTRIBUTE_ERR);\n\t\t}\n\t\t// Resolve any existing attribute with the same (namespace, localName)\n\t\t// through the O(1) membership index rather than an O(M) scan — this is the\n\t\t// parse-dedup hot path (`setAttributeNode` per attribute during parse).\n\t\tvar oldAttr = _nnmIndexFind(this, attr.namespaceURI, attr.localName);\n\t\tif (oldAttr === attr) {\n\t\t\treturn attr;\n\t\t}\n\t\t_addNamedNode(this._ownerElement, this, attr, oldAttr);\n\t\treturn oldAttr;\n\t},\n\n\t/**\n\t * Set an attribute, replacing an existing attribute with the same local name and namespace\n\t * URI if one exists.\n\t *\n\t * @param {Attr} attr\n\t * The attribute to set.\n\t * @returns {Attr | null}\n\t * The old attribute with the same local name and namespace URI as the new one, or null if no\n\t * such attribute exists.\n\t * @throws {DOMException}\n\t * Throws a DOMException with the name \"InUseAttributeError\" if the attribute is already an\n\t * attribute of another element.\n\t * @see https://dom.spec.whatwg.org/#concept-element-attributes-set\n\t */\n\tsetNamedItemNS: function (attr) {\n\t\treturn this.setNamedItem(attr);\n\t},\n\n\t/**\n\t * Removes an attribute specified by the local name.\n\t *\n\t * @param {string} localName\n\t * The local name of the attribute to be removed.\n\t * @returns {Attr}\n\t * The attribute node that was removed.\n\t * @throws {DOMException}\n\t * With code:\n\t * - {@link DOMException.NOT_FOUND_ERR} if no attribute with the given name is found.\n\t * @see https://dom.spec.whatwg.org/#dom-namednodemap-removenameditem\n\t * @see https://dom.spec.whatwg.org/#concept-element-attributes-remove-by-name\n\t */\n\tremoveNamedItem: function (localName) {\n\t\tvar attr = this.getNamedItem(localName);\n\t\tif (!attr) {\n\t\t\tthrow new DOMException(DOMException.NOT_FOUND_ERR, localName);\n\t\t}\n\t\t_removeNamedNode(this._ownerElement, this, attr);\n\t\treturn attr;\n\t},\n\n\t/**\n\t * Removes an attribute specified by the namespace and local name.\n\t *\n\t * @param {string | null} namespaceURI\n\t * The namespace URI of the attribute to be removed.\n\t * @param {string} localName\n\t * The local name of the attribute to be removed.\n\t * @returns {Attr}\n\t * The attribute node that was removed.\n\t * @throws {DOMException}\n\t * With code:\n\t * - {@link DOMException.NOT_FOUND_ERR} if no attribute with the given namespace URI and local\n\t * name is found.\n\t * @see https://dom.spec.whatwg.org/#dom-namednodemap-removenameditemns\n\t * @see https://dom.spec.whatwg.org/#concept-element-attributes-remove-by-namespace\n\t */\n\tremoveNamedItemNS: function (namespaceURI, localName) {\n\t\tvar attr = this.getNamedItemNS(namespaceURI, localName);\n\t\tif (!attr) {\n\t\t\tthrow new DOMException(DOMException.NOT_FOUND_ERR, namespaceURI ? namespaceURI + ' : ' + localName : localName);\n\t\t}\n\t\t_removeNamedNode(this._ownerElement, this, attr);\n\t\treturn attr;\n\t},\n\n\t/**\n\t * Get an attribute by namespace and local name.\n\t *\n\t * @param {string | null} namespaceURI\n\t * The namespace URI of the attribute.\n\t * @param {string} localName\n\t * The local name of the attribute.\n\t * @returns {Attr | null}\n\t * The attribute with the given namespace URI and local name, or null if no such attribute\n\t * exists.\n\t * @see https://dom.spec.whatwg.org/#concept-element-attributes-get-by-namespace\n\t */\n\tgetNamedItemNS: function (namespaceURI, localName) {\n\t\tif (!namespaceURI) {\n\t\t\tnamespaceURI = null;\n\t\t}\n\t\tvar i = 0;\n\t\twhile (i < this.length) {\n\t\t\tvar node = this[i];\n\t\t\tif (node.localName === localName && node.namespaceURI === namespaceURI) {\n\t\t\t\treturn node;\n\t\t\t}\n\t\t\ti++;\n\t\t}\n\t\treturn null;\n\t},\n};\nNamedNodeMap.prototype[Symbol.iterator] = function () {\n\tvar me = this;\n\tvar index = 0;\n\n\treturn {\n\t\tnext: function () {\n\t\t\tif (index < me.length) {\n\t\t\t\treturn {\n\t\t\t\t\tvalue: me[index++],\n\t\t\t\t\tdone: false,\n\t\t\t\t};\n\t\t\t} else {\n\t\t\t\treturn {\n\t\t\t\t\tdone: true,\n\t\t\t\t};\n\t\t\t}\n\t\t},\n\t\treturn: function () {\n\t\t\treturn {\n\t\t\t\tdone: true,\n\t\t\t};\n\t\t},\n\t};\n};\n\n/**\n * The DOMImplementation interface provides a number of methods for performing operations that\n * are independent of any particular instance of the document object model.\n *\n * The DOMImplementation interface represents an object providing methods which are not\n * dependent on any particular document.\n * Such an object is returned by the `Document.implementation` property.\n *\n * **The individual methods describe the differences compared to the specs**.\n *\n * @class DOMImplementation\n * @see https://developer.mozilla.org/en-US/docs/Web/API/DOMImplementation MDN\n * @see https://www.w3.org/TR/REC-DOM-Level-1/level-one-core.html#ID-102161490 DOM Level 1 Core\n * (Initial)\n * @see https://www.w3.org/TR/DOM-Level-2-Core/core.html#ID-102161490 DOM Level 2 Core\n * @see https://www.w3.org/TR/DOM-Level-3-Core/core.html#ID-102161490 DOM Level 3 Core\n * @see https://dom.spec.whatwg.org/#domimplementation DOM Living Standard\n * @constructs DOMImplementation\n */\nfunction DOMImplementation() {}\n\nDOMImplementation.prototype = {\n\t/**\n\t * Test if the DOM implementation implements a specific feature and version, as specified in\n\t * {@link https://www.w3.org/TR/DOM-Level-3-Core/core.html#DOMFeatures DOM Features}.\n\t *\n\t * The DOMImplementation.hasFeature() method returns a Boolean flag indicating if a given\n\t * feature is supported. The different implementations fairly diverged in what kind of\n\t * features were reported. The latest version of the spec settled to force this method to\n\t * always return true, where the functionality was accurate and in use.\n\t *\n\t * @deprecated\n\t * It is deprecated and modern browsers return true in all cases.\n\t * @function DOMImplementation#hasFeature\n\t * @param {string} feature\n\t * The name of the feature to test.\n\t * @param {string} [version]\n\t * This is the version number of the feature to test.\n\t * @returns {boolean}\n\t * Always returns true.\n\t * @see https://developer.mozilla.org/en-US/docs/Web/API/DOMImplementation/hasFeature MDN\n\t * @see https://www.w3.org/TR/REC-DOM-Level-1/level-one-core.html#ID-5CED94D7 DOM Level 1 Core\n\t * @see https://dom.spec.whatwg.org/#dom-domimplementation-hasfeature DOM Living Standard\n\t * @see https://www.w3.org/TR/DOM-Level-3-Core/core.html#ID-5CED94D7 DOM Level 3 Core\n\t */\n\thasFeature: function (feature, version) {\n\t\treturn true;\n\t},\n\t/**\n\t * Creates a DOM Document object of the specified type with its document element. Note that\n\t * based on the {@link DocumentType}\n\t * given to create the document, the implementation may instantiate specialized\n\t * {@link Document} objects that support additional features than the \"Core\", such as \"HTML\"\n\t * {@link https://www.w3.org/TR/DOM-Level-3-Core/references.html#DOM2HTML DOM Level 2 HTML}.\n\t * On the other hand, setting the {@link DocumentType} after the document was created makes\n\t * this very unlikely to happen. Alternatively, specialized {@link Document} creation methods,\n\t * such as createHTMLDocument\n\t * {@link https://www.w3.org/TR/DOM-Level-3-Core/references.html#DOM2HTML DOM Level 2 HTML},\n\t * can be used to obtain specific types of {@link Document} objects.\n\t *\n\t * __It behaves slightly different from the description in the living standard__:\n\t * - There is no interface/class `XMLDocument`, it returns a `Document`\n\t * instance (with it's `type` set to `'xml'`).\n\t * - `encoding`, `mode`, `origin`, `url` fields are currently not declared.\n\t *\n\t * @function DOMImplementation.createDocument\n\t * @param {string | null} namespaceURI\n\t * The\n\t * {@link https://www.w3.org/TR/DOM-Level-3-Core/glossary.html#dt-namespaceURI namespace URI}\n\t * of the document element to create or null.\n\t * @param {string | null} qualifiedName\n\t * The\n\t * {@link https://www.w3.org/TR/DOM-Level-3-Core/glossary.html#dt-qualifiedname qualified name}\n\t * of the document element to be created or null.\n\t * @param {DocumentType | null} [doctype=null]\n\t * The type of document to be created or null. When doctype is not null, its\n\t * {@link Node#ownerDocument} attribute is set to the document being created. Default is\n\t * `null`\n\t * @returns {Document}\n\t * A new {@link Document} object with its document element. If the NamespaceURI,\n\t * qualifiedName, and doctype are null, the returned {@link Document} is empty with no\n\t * document element.\n\t * @throws {DOMException}\n\t * With code:\n\t *\n\t * - `INVALID_CHARACTER_ERR`: Raised if the specified qualified name is not an XML name\n\t * according to {@link https://www.w3.org/TR/DOM-Level-3-Core/references.html#XML XML 1.0}.\n\t * - `NAMESPACE_ERR`: Raised if the qualifiedName is malformed, if the qualifiedName has a\n\t * prefix and the namespaceURI is null, or if the qualifiedName is null and the namespaceURI\n\t * is different from null, or if the qualifiedName has a prefix that is \"xml\" and the\n\t * namespaceURI is different from \"{@link http://www.w3.org/XML/1998/namespace}\"\n\t * {@link https://www.w3.org/TR/DOM-Level-3-Core/references.html#Namespaces XML Namespaces},\n\t * or if the DOM implementation does not support the \"XML\" feature but a non-null namespace\n\t * URI was provided, since namespaces were defined by XML.\n\t * - `WRONG_DOCUMENT_ERR`: Raised if doctype has already been used with a different document\n\t * or was created from a different implementation.\n\t * - `NOT_SUPPORTED_ERR`: May be raised if the implementation does not support the feature\n\t * \"XML\" and the language exposed through the Document does not support XML Namespaces (such\n\t * as {@link https://www.w3.org/TR/DOM-Level-3-Core/references.html#HTML40 HTML 4.01}).\n\t * @since DOM Level 2.\n\t * @see {@link #createHTMLDocument}\n\t * @see https://developer.mozilla.org/en-US/docs/Web/API/DOMImplementation/createDocument MDN\n\t * @see https://dom.spec.whatwg.org/#dom-domimplementation-createdocument DOM Living Standard\n\t * @see https://www.w3.org/TR/DOM-Level-3-Core/core.html#Level-2-Core-DOM-createDocument DOM\n\t * Level 3 Core\n\t * @see https://www.w3.org/TR/DOM-Level-2-Core/core.html#Level-2-Core-DOM-createDocument DOM\n\t * Level 2 Core (initial)\n\t */\n\tcreateDocument: function (namespaceURI, qualifiedName, doctype) {\n\t\tvar contentType = MIME_TYPE.XML_APPLICATION;\n\t\tif (namespaceURI === NAMESPACE.HTML) {\n\t\t\tcontentType = MIME_TYPE.XML_XHTML_APPLICATION;\n\t\t} else if (namespaceURI === NAMESPACE.SVG) {\n\t\t\tcontentType = MIME_TYPE.XML_SVG_IMAGE;\n\t\t}\n\t\tvar doc = new Document(PDC, { contentType: contentType });\n\t\tdoc.implementation = this;\n\t\tdoc.childNodes = new NodeList();\n\t\tdoc.doctype = doctype || null;\n\t\tif (doctype) {\n\t\t\tdoc.appendChild(doctype);\n\t\t}\n\t\tif (qualifiedName) {\n\t\t\tvar root = doc.createElementNS(namespaceURI, qualifiedName);\n\t\t\tdoc.appendChild(root);\n\t\t}\n\t\treturn doc;\n\t},\n\t/**\n\t * Creates an empty DocumentType node. Entity declarations and notations are not made\n\t * available. Entity reference expansions and default attribute additions do not occur.\n\t *\n\t * **This behavior is slightly different from the one in the specs**:\n\t * - `encoding`, `mode`, `origin`, `url` fields are currently not declared.\n\t * - `publicId` and `systemId` contain the raw data including any possible quotes,\n\t * so they can always be serialized back to the original value\n\t * - `internalSubset` contains the raw string between `[` and `]` if present,\n\t * but is not parsed or validated in any form.\n\t *\n\t * @function DOMImplementation#createDocumentType\n\t * @param {string} qualifiedName\n\t * The {@link https://www.w3.org/TR/DOM-Level-3-Core/glossary.html#dt-qualifiedname qualified\n\t * name} of the document type to be created.\n\t * @param {string} [publicId]\n\t * The external subset public identifier. Stored verbatim including surrounding quotes.\n\t * When serialized with `requireWellFormed: true`, the serializer throws `InvalidStateError`\n\t * if the value is non-empty and does not match the XML `PubidLiteral` production\n\t * (W3C DOM Parsing §3.2.1.3; XML 1.0 production [12]). Creation-time validation is not\n\t * enforced — deferred to a future breaking release.\n\t * @param {string} [systemId]\n\t * The external subset system identifier. Stored verbatim including surrounding quotes.\n\t * When serialized with `requireWellFormed: true`, the serializer throws `InvalidStateError`\n\t * if the value is non-empty and does not match the XML `SystemLiteral` production\n\t * (W3C DOM Parsing §3.2.1.3; XML 1.0 production [11]). Creation-time validation is not\n\t * enforced — deferred to a future breaking release.\n\t * @param {string} [internalSubset]\n\t * The internal subset or an empty string if it is not present. Stored verbatim.\n\t * When serialized with `requireWellFormed: true`, the serializer throws `InvalidStateError`\n\t * if the value contains `\"]>\"`. Creation-time validation is not enforced.\n\t * @returns {DocumentType}\n\t * A new {@link DocumentType} node with {@link Node#ownerDocument} set to null.\n\t * @throws {DOMException}\n\t * With code:\n\t *\n\t * - `INVALID_CHARACTER_ERR`: Raised if the specified qualified name is not an XML name\n\t * according to {@link https://www.w3.org/TR/DOM-Level-3-Core/references.html#XML XML 1.0}.\n\t * - `NAMESPACE_ERR`: Raised if the qualifiedName is malformed.\n\t * - `NOT_SUPPORTED_ERR`: May be raised if the implementation does not support the feature\n\t * \"XML\" and the language exposed through the Document does not support XML Namespaces (such\n\t * as {@link https://www.w3.org/TR/DOM-Level-3-Core/references.html#HTML40 HTML 4.01}).\n\t * @since DOM Level 2.\n\t * @see https://developer.mozilla.org/en-US/docs/Web/API/DOMImplementation/createDocumentType\n\t * MDN\n\t * @see https://dom.spec.whatwg.org/#dom-domimplementation-createdocumenttype DOM Living\n\t * Standard\n\t * @see https://www.w3.org/TR/DOM-Level-3-Core/core.html#Level-3-Core-DOM-createDocType DOM\n\t * Level 3 Core\n\t * @see https://www.w3.org/TR/DOM-Level-2-Core/core.html#Level-2-Core-DOM-createDocType DOM\n\t * Level 2 Core\n\t * @see https://github.com/xmldom/xmldom/blob/master/CHANGELOG.md#050\n\t * @see https://www.w3.org/TR/DOM-Level-2-Core/#core-ID-Core-DocType-internalSubset\n\t * @prettierignore\n\t */\n\tcreateDocumentType: function (qualifiedName, publicId, systemId, internalSubset) {\n\t\tvalidateQualifiedName(qualifiedName);\n\t\tvar node = new DocumentType(PDC);\n\t\tnode.name = qualifiedName;\n\t\tnode.nodeName = qualifiedName;\n\t\tnode.publicId = publicId || '';\n\t\tnode.systemId = systemId || '';\n\t\tnode.internalSubset = internalSubset || '';\n\t\tnode.childNodes = new NodeList();\n\n\t\treturn node;\n\t},\n\t/**\n\t * Returns an HTML document, that might already have a basic DOM structure.\n\t *\n\t * __It behaves slightly different from the description in the living standard__:\n\t * - If the first argument is `false` no initial nodes are added (steps 3-7 in the specs are\n\t * omitted)\n\t * - `encoding`, `mode`, `origin`, `url` fields are currently not declared.\n\t *\n\t * @param {string | false} [title]\n\t * A string containing the title to give the new HTML document.\n\t * @returns {Document}\n\t * The HTML document.\n\t * @since WHATWG Living Standard.\n\t * @see {@link #createDocument}\n\t * @see https://dom.spec.whatwg.org/#dom-domimplementation-createhtmldocument\n\t * @see https://dom.spec.whatwg.org/#html-document\n\t */\n\tcreateHTMLDocument: function (title) {\n\t\tvar doc = new Document(PDC, { contentType: MIME_TYPE.HTML });\n\t\tdoc.implementation = this;\n\t\tdoc.childNodes = new NodeList();\n\t\tif (title !== false) {\n\t\t\tdoc.doctype = this.createDocumentType('html');\n\t\t\tdoc.doctype.ownerDocument = doc;\n\t\t\tdoc.appendChild(doc.doctype);\n\t\t\tvar htmlNode = doc.createElement('html');\n\t\t\tdoc.appendChild(htmlNode);\n\t\t\tvar headNode = doc.createElement('head');\n\t\t\thtmlNode.appendChild(headNode);\n\t\t\tif (typeof title === 'string') {\n\t\t\t\tvar titleNode = doc.createElement('title');\n\t\t\t\ttitleNode.appendChild(doc.createTextNode(title));\n\t\t\t\theadNode.appendChild(titleNode);\n\t\t\t}\n\t\t\thtmlNode.appendChild(doc.createElement('body'));\n\t\t}\n\t\treturn doc;\n\t},\n};\n\n/**\n * The DOM Node interface is an abstract base class upon which many other DOM API objects are\n * based, thus letting those object types to be used similarly and often interchangeably. As an\n * abstract class, there is no such thing as a plain Node object. All objects that implement\n * Node functionality are based on one of its subclasses. Most notable are Document, Element,\n * and DocumentFragment.\n *\n * In addition, every kind of DOM node is represented by an interface based on Node. These\n * include Attr, CharacterData (which Text, Comment, CDATASection and ProcessingInstruction are\n * all based on), and DocumentType.\n *\n * In some cases, a particular feature of the base Node interface may not apply to one of its\n * child interfaces; in that case, the inheriting node may return null or throw an exception,\n * depending on circumstances. For example, attempting to add children to a node type that\n * cannot have children will throw an exception.\n *\n * **This behavior is slightly different from the in the specs**:\n * - unimplemented interfaces: `EventTarget`\n *\n * @class\n * @abstract\n * @param {Symbol} symbol\n * @see http://www.w3.org/TR/2000/REC-DOM-Level-2-Core-20001113/core.html#ID-1950641247\n * @see https://dom.spec.whatwg.org/#node\n * @prettierignore\n */\nfunction Node(symbol) {\n\tcheckSymbol(symbol);\n}\n\nNode.prototype = {\n\t/**\n\t * The first child of this node.\n\t *\n\t * @type {Node | null}\n\t */\n\tfirstChild: null,\n\t/**\n\t * The last child of this node.\n\t *\n\t * @type {Node | null}\n\t */\n\tlastChild: null,\n\t/**\n\t * The previous sibling of this node.\n\t *\n\t * @type {Node | null}\n\t */\n\tpreviousSibling: null,\n\t/**\n\t * The next sibling of this node.\n\t *\n\t * @type {Node | null}\n\t */\n\tnextSibling: null,\n\t/**\n\t * The parent node of this node.\n\t *\n\t * @type {Node | null}\n\t */\n\tparentNode: null,\n\t/**\n\t * The parent element of this node.\n\t *\n\t * @type {Element | null}\n\t */\n\tget parentElement() {\n\t\treturn this.parentNode && this.parentNode.nodeType === this.ELEMENT_NODE ? this.parentNode : null;\n\t},\n\t/**\n\t * The child nodes of this node.\n\t *\n\t * @type {NodeList}\n\t */\n\tchildNodes: null,\n\t/**\n\t * The document object associated with this node.\n\t *\n\t * @type {Document | null}\n\t */\n\townerDocument: null,\n\t/**\n\t * The value of this node.\n\t *\n\t * @type {string | null}\n\t */\n\tnodeValue: null,\n\t/**\n\t * The namespace URI of this node.\n\t *\n\t * @type {string | null}\n\t */\n\tnamespaceURI: null,\n\t/**\n\t * The prefix of the namespace for this node.\n\t *\n\t * @type {string | null}\n\t */\n\tprefix: null,\n\t/**\n\t * The local part of the qualified name of this node.\n\t *\n\t * @type {string | null}\n\t */\n\tlocalName: null,\n\t/**\n\t * The baseURI is currently always `about:blank`,\n\t * since that's what happens when you create a document from scratch.\n\t *\n\t * @type {'about:blank'}\n\t */\n\tbaseURI: 'about:blank',\n\t/**\n\t * Is true if this node is part of a document.\n\t *\n\t * @type {boolean}\n\t */\n\tget isConnected() {\n\t\tvar rootNode = this.getRootNode();\n\t\treturn rootNode && rootNode.nodeType === rootNode.DOCUMENT_NODE;\n\t},\n\t/**\n\t * Checks whether `other` is an inclusive descendant of this node.\n\t *\n\t * @param {Node | null | undefined} other\n\t * The node to check.\n\t * @returns {boolean}\n\t * True if `other` is an inclusive descendant of this node; false otherwise.\n\t * @see https://dom.spec.whatwg.org/#dom-node-contains\n\t */\n\tcontains: function (other) {\n\t\tif (!other) return false;\n\t\tvar parent = other;\n\t\tdo {\n\t\t\tif (this === parent) return true;\n\t\t\tparent = parent.parentNode;\n\t\t} while (parent);\n\t\treturn false;\n\t},\n\t/**\n\t * @typedef GetRootNodeOptions\n\t * @property {boolean} [composed=false]\n\t */\n\t/**\n\t * Searches for the root node of this node.\n\t *\n\t * **This behavior is slightly different from the in the specs**:\n\t * - ignores `options.composed`, since `ShadowRoot`s are unsupported, always returns root.\n\t *\n\t * @param {GetRootNodeOptions} [options]\n\t * @returns {Node}\n\t * Root node.\n\t * @see https://dom.spec.whatwg.org/#dom-node-getrootnode\n\t * @see https://dom.spec.whatwg.org/#concept-shadow-including-root\n\t */\n\tgetRootNode: function (options) {\n\t\tvar parent = this;\n\t\tdo {\n\t\t\tif (!parent.parentNode) {\n\t\t\t\treturn parent;\n\t\t\t}\n\t\t\tparent = parent.parentNode;\n\t\t} while (parent);\n\t},\n\t/**\n\t * Checks whether the given node is equal to this node.\n\t *\n\t * Two nodes are equal when they have the same type, defining characteristics (for the type),\n\t * and the same childNodes. The comparison is iterative to avoid stack overflows on\n\t * deeply-nested trees. Attribute nodes of each Element pair are also pushed onto the stack\n\t * and compared the same way.\n\t *\n\t * @param {Node} [otherNode]\n\t * @returns {boolean}\n\t * @see https://dom.spec.whatwg.org/#concept-node-equals\n\t * @see ../docs/walk-dom.md.\n\t */\n\tisEqualNode: function (otherNode) {\n\t\tif (!otherNode) return false;\n\n\t\t// Use an explicit {node, other} pair stack to avoid call-stack overflow on deep trees.\n\t\t// walkDOM cannot be used here — parallel two-tree traversal requires pairing\n\t\t// corresponding nodes at each step across both trees simultaneously.\n\t\tvar stack = [{ node: this, other: otherNode }];\n\t\twhile (stack.length > 0) {\n\t\t\tvar pair = stack.pop();\n\t\t\tvar node = pair.node;\n\t\t\tvar other = pair.other;\n\n\t\t\tif (node.nodeType !== other.nodeType) return false;\n\n\t\t\tswitch (node.nodeType) {\n\t\t\t\tcase node.DOCUMENT_TYPE_NODE:\n\t\t\t\t\tif (node.name !== other.name) return false;\n\t\t\t\t\tif (node.publicId !== other.publicId) return false;\n\t\t\t\t\tif (node.systemId !== other.systemId) return false;\n\t\t\t\t\tbreak;\n\t\t\t\tcase node.ELEMENT_NODE:\n\t\t\t\t\tif (node.namespaceURI !== other.namespaceURI) return false;\n\t\t\t\t\tif (node.prefix !== other.prefix) return false;\n\t\t\t\t\tif (node.localName !== other.localName) return false;\n\t\t\t\t\tif (node.attributes.length !== other.attributes.length) return false;\n\t\t\t\t\tfor (var i = 0; i < node.attributes.length; i++) {\n\t\t\t\t\t\tvar attr = node.attributes.item(i);\n\t\t\t\t\t\tvar otherAttr = other.getAttributeNodeNS(attr.namespaceURI, attr.localName);\n\t\t\t\t\t\tif (!otherAttr) return false;\n\t\t\t\t\t\tstack.push({ node: attr, other: otherAttr });\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase node.ATTRIBUTE_NODE:\n\t\t\t\t\tif (node.namespaceURI !== other.namespaceURI) return false;\n\t\t\t\t\tif (node.localName !== other.localName) return false;\n\t\t\t\t\tif (node.value !== other.value) return false;\n\t\t\t\t\tbreak;\n\t\t\t\tcase node.PROCESSING_INSTRUCTION_NODE:\n\t\t\t\t\tif (node.target !== other.target || node.data !== other.data) return false;\n\t\t\t\t\tbreak;\n\t\t\t\tcase node.TEXT_NODE:\n\t\t\t\tcase node.CDATA_SECTION_NODE:\n\t\t\t\tcase node.COMMENT_NODE:\n\t\t\t\t\tif (node.data !== other.data) return false;\n\t\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tif (node.childNodes.length !== other.childNodes.length) return false;\n\n\t\t\t// Push children in reverse order so index 0 is processed first (LIFO).\n\t\t\tfor (var i = node.childNodes.length - 1; i >= 0; i--) {\n\t\t\t\tstack.push({ node: node.childNodes[i], other: other.childNodes[i] });\n\t\t\t}\n\t\t}\n\n\t\treturn true;\n\t},\n\t/**\n\t * Checks whether or not the given node is this node.\n\t *\n\t * @param {Node} [otherNode]\n\t */\n\tisSameNode: function (otherNode) {\n\t\treturn this === otherNode;\n\t},\n\t/**\n\t * Inserts a node before a reference node as a child of this node.\n\t *\n\t * @param {Node} newChild\n\t * The new child node to be inserted.\n\t * @param {Node | null} refChild\n\t * The reference node before which newChild will be inserted.\n\t * @returns {Node}\n\t * The new child node successfully inserted.\n\t * @throws {DOMException}\n\t * Throws a DOMException if inserting the node would result in a DOM tree that is not\n\t * well-formed, or if `child` is provided but is not a child of `parent`.\n\t * See {@link _insertBefore} for more details.\n\t * @since Modified in DOM L2\n\t */\n\tinsertBefore: function (newChild, refChild) {\n\t\treturn _insertBefore(this, newChild, refChild);\n\t},\n\t/**\n\t * Replaces an old child node with a new child node within this node.\n\t *\n\t * @param {Node} newChild\n\t * The new node that is to replace the old node.\n\t * If it already exists in the DOM, it is removed from its original position.\n\t * @param {Node} oldChild\n\t * The existing child node to be replaced.\n\t * @returns {Node}\n\t * Returns the replaced child node.\n\t * @throws {DOMException}\n\t * Throws a DOMException if replacing the node would result in a DOM tree that is not\n\t * well-formed, or if `oldChild` is not a child of `this`.\n\t * This can also occur if the pre-replacement validity assertion fails.\n\t * See {@link _insertBefore}, {@link Node.removeChild}, and\n\t * {@link assertPreReplacementValidityInDocument} for more details.\n\t * @see https://dom.spec.whatwg.org/#concept-node-replace\n\t */\n\treplaceChild: function (newChild, oldChild) {\n\t\t_insertBefore(this, newChild, oldChild, assertPreReplacementValidityInDocument);\n\t\tif (oldChild) {\n\t\t\tthis.removeChild(oldChild);\n\t\t}\n\t},\n\t/**\n\t * Removes an existing child node from this node.\n\t *\n\t * @param {Node} oldChild\n\t * The child node to be removed.\n\t * @returns {Node}\n\t * Returns the removed child node.\n\t * @throws {DOMException}\n\t * Throws a DOMException if `oldChild` is not a child of `this`.\n\t * See {@link _removeChild} for more details.\n\t */\n\tremoveChild: function (oldChild) {\n\t\treturn _removeChild(this, oldChild);\n\t},\n\t/**\n\t * Appends a child node to this node.\n\t *\n\t * @param {Node} newChild\n\t * The child node to be appended to this node.\n\t * If it already exists in the DOM, it is removed from its original position.\n\t * @returns {Node}\n\t * Returns the appended child node.\n\t * @throws {DOMException}\n\t * Throws a DOMException if appending the node would result in a DOM tree that is not\n\t * well-formed, or if `newChild` is not a valid Node.\n\t * See {@link insertBefore} for more details.\n\t */\n\tappendChild: function (newChild) {\n\t\treturn this.insertBefore(newChild, null);\n\t},\n\t/**\n\t * Determines whether this node has any child nodes.\n\t *\n\t * @returns {boolean}\n\t * Returns true if this node has any child nodes, and false otherwise.\n\t */\n\thasChildNodes: function () {\n\t\treturn this.firstChild != null;\n\t},\n\t/**\n\t * Creates a copy of the calling node.\n\t *\n\t * @param {boolean} deep\n\t * If true, the contents of the node are recursively copied.\n\t * If false, only the node itself (and its attributes, if it is an element) are copied.\n\t * @returns {Node}\n\t * Returns the newly created copy of the node.\n\t * @throws {DOMException}\n\t * May throw a DOMException if operations within {@link Element#setAttributeNode} or\n\t * {@link Node#appendChild} (which are potentially invoked in this method) do not meet their\n\t * specific constraints.\n\t * @see {@link cloneNode}\n\t */\n\tcloneNode: function (deep) {\n\t\treturn cloneNode(this.ownerDocument || this, this, deep);\n\t},\n\t/**\n\t * Puts the specified node and all of its subtree into a \"normalized\" form. In a normalized\n\t * subtree, no text nodes in the subtree are empty and there are no adjacent text nodes.\n\t *\n\t * Specifically, this method merges any adjacent text nodes (i.e., nodes for which `nodeType`\n\t * is `TEXT_NODE`) into a single node with the combined data. It also removes any empty text\n\t * nodes.\n\t *\n\t * This method iterativly traverses all child nodes to normalize all descendent nodes within\n\t * the subtree.\n\t *\n\t * @throws {DOMException}\n\t * May throw a DOMException if operations within removeChild or appendData (which are\n\t * potentially invoked in this method) do not meet their specific constraints.\n\t * @since Modified in DOM Level 2\n\t * @see {@link Node.removeChild}\n\t * @see {@link CharacterData.appendData}\n\t * @see ../docs/walk-dom.md.\n\t */\n\tnormalize: function () {\n\t\twalkDOM(this, null, {\n\t\t\tenter: function (node) {\n\t\t\t\t// Merge adjacent text children of node before walkDOM schedules them.\n\t\t\t\t// walkDOM reads lastChild/previousSibling after enter returns, so the\n\t\t\t\t// surviving post-merge children are what it descends into.\n\t\t\t\tvar child = node.firstChild;\n\t\t\t\twhile (child) {\n\t\t\t\t\tvar next = child.nextSibling;\n\t\t\t\t\tif (next !== null && next.nodeType === TEXT_NODE && child.nodeType === TEXT_NODE) {\n\t\t\t\t\t\t// Merge the whole run of adjacent text nodes at once: gather the\n\t\t\t\t\t\t// following text siblings' data, unlink them in a single pass, and\n\t\t\t\t\t\t// re-index the child list a single time. Per-sibling `removeChild`\n\t\t\t\t\t\t// (each an O(K) re-index) plus per-sibling `appendData` (each an O(K)\n\t\t\t\t\t\t// string rebuild) is O(K^2) over a long run of single-character text\n\t\t\t\t\t\t// nodes; this keeps it O(K). The first text node of the run survives\n\t\t\t\t\t\t// and carries the concatenated data, preserving node identity and\n\t\t\t\t\t\t// locator semantics.\n\t\t\t\t\t\tvar tail = [];\n\t\t\t\t\t\tvar sibling = next;\n\t\t\t\t\t\twhile (sibling !== null && sibling.nodeType === TEXT_NODE) {\n\t\t\t\t\t\t\ttail.push(sibling.data);\n\t\t\t\t\t\t\tsibling = sibling.nextSibling;\n\t\t\t\t\t\t}\n\t\t\t\t\t\t// `sibling` is now the first non-text node after the run, or null.\n\t\t\t\t\t\tvar removed = child.nextSibling;\n\t\t\t\t\t\twhile (removed !== sibling) {\n\t\t\t\t\t\t\tvar following = removed.nextSibling;\n\t\t\t\t\t\t\tremoved.parentNode = null;\n\t\t\t\t\t\t\tremoved.previousSibling = null;\n\t\t\t\t\t\t\tremoved.nextSibling = null;\n\t\t\t\t\t\t\tremoved = following;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tchild.nextSibling = sibling;\n\t\t\t\t\t\tif (sibling !== null) {\n\t\t\t\t\t\t\tsibling.previousSibling = child;\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tnode.lastChild = child;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tchild.appendData(tail.join('')); // single O(K) string rebuild\n\t\t\t\t\t\t_onUpdateChild(node.ownerDocument, node); // single O(K) re-index\n\t\t\t\t\t\tchild = sibling;\n\t\t\t\t\t} else {\n\t\t\t\t\t\tchild = next;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\treturn true; // descend into surviving children\n\t\t\t},\n\t\t});\n\t},\n\t/**\n\t * Checks whether the DOM implementation implements a specific feature and its version.\n\t *\n\t * @deprecated\n\t * Since `DOMImplementation.hasFeature` is deprecated and always returns true.\n\t * @param {string} feature\n\t * The package name of the feature to test. This is the same name that can be passed to the\n\t * method `hasFeature` on `DOMImplementation`.\n\t * @param {string} version\n\t * This is the version number of the package name to test.\n\t * @returns {boolean}\n\t * Returns true in all cases in the current implementation.\n\t * @since Introduced in DOM Level 2\n\t * @see {@link DOMImplementation.hasFeature}\n\t */\n\tisSupported: function (feature, version) {\n\t\treturn this.ownerDocument.implementation.hasFeature(feature, version);\n\t},\n\t/**\n\t * Look up the prefix associated to the given namespace URI, starting from this node.\n\t * **The default namespace declarations are ignored by this method.**\n\t * See Namespace Prefix Lookup for details on the algorithm used by this method.\n\t *\n\t * **This behavior is different from the in the specs**:\n\t * - no node type specific handling\n\t * - uses the internal attribute _nsMap for resolving namespaces that is updated when changing attributes\n\t *\n\t * @param {string | null} namespaceURI\n\t * The namespace URI for which to find the associated prefix.\n\t * @returns {string | null}\n\t * The associated prefix, if found; otherwise, null.\n\t * @see https://www.w3.org/TR/DOM-Level-3-Core/core.html#Node3-lookupNamespacePrefix\n\t * @see https://www.w3.org/TR/DOM-Level-3-Core/namespaces-algorithms.html#lookupNamespacePrefixAlgo\n\t * @see https://dom.spec.whatwg.org/#dom-node-lookupprefix\n\t * @see https://github.com/xmldom/xmldom/issues/322\n\t * @prettierignore\n\t */\n\tlookupPrefix: function (namespaceURI) {\n\t\tvar el = this;\n\t\twhile (el) {\n\t\t\tvar map = el._nsMap;\n\t\t\t//console.dir(map)\n\t\t\tif (map) {\n\t\t\t\tfor (var n in map) {\n\t\t\t\t\tif (hasOwn(map, n) && map[n] === namespaceURI) {\n\t\t\t\t\t\treturn n;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tel = el.nodeType == ATTRIBUTE_NODE ? el.ownerDocument : el.parentNode;\n\t\t}\n\t\treturn null;\n\t},\n\t/**\n\t * This function is used to look up the namespace URI associated with the given prefix,\n\t * starting from this node.\n\t *\n\t * **This behavior is different from the in the specs**:\n\t * - no node type specific handling\n\t * - uses the internal attribute _nsMap for resolving namespaces that is updated when changing attributes\n\t *\n\t * @param {string | null} prefix\n\t * The prefix for which to find the associated namespace URI.\n\t * @returns {string | null}\n\t * The associated namespace URI, if found; otherwise, null.\n\t * @since DOM Level 3\n\t * @see https://dom.spec.whatwg.org/#dom-node-lookupnamespaceuri\n\t * @see https://www.w3.org/TR/DOM-Level-3-Core/core.html#Node3-lookupNamespaceURI\n\t * @prettierignore\n\t */\n\tlookupNamespaceURI: function (prefix) {\n\t\tvar el = this;\n\t\twhile (el) {\n\t\t\tvar map = el._nsMap;\n\t\t\t//console.dir(map)\n\t\t\tif (map) {\n\t\t\t\tif (hasOwn(map, prefix)) {\n\t\t\t\t\treturn map[prefix];\n\t\t\t\t}\n\t\t\t}\n\t\t\tel = el.nodeType == ATTRIBUTE_NODE ? el.ownerDocument : el.parentNode;\n\t\t}\n\t\treturn null;\n\t},\n\t/**\n\t * Determines whether the given namespace URI is the default namespace.\n\t *\n\t * The function works by looking up the prefix associated with the given namespace URI. If no\n\t * prefix is found (i.e., the namespace URI is not registered in the namespace map of this\n\t * node or any of its ancestors), it returns `true`, implying the namespace URI is considered\n\t * the default.\n\t *\n\t * **This behavior is different from the in the specs**:\n\t * - no node type specific handling\n\t * - uses the internal attribute _nsMap for resolving namespaces that is updated when changing attributes\n\t *\n\t * @param {string | null} namespaceURI\n\t * The namespace URI to be checked.\n\t * @returns {boolean}\n\t * Returns true if the given namespace URI is the default namespace, false otherwise.\n\t * @since DOM Level 3\n\t * @see https://www.w3.org/TR/DOM-Level-3-Core/core.html#Node3-isDefaultNamespace\n\t * @see https://dom.spec.whatwg.org/#dom-node-isdefaultnamespace\n\t * @prettierignore\n\t */\n\tisDefaultNamespace: function (namespaceURI) {\n\t\tvar prefix = this.lookupPrefix(namespaceURI);\n\t\treturn prefix == null;\n\t},\n\t/**\n\t * Compares the reference node with a node with regard to their position in the document and\n\t * according to the document order.\n\t *\n\t * @param {Node} other\n\t * The node to compare the reference node to.\n\t * @returns {number}\n\t * Returns how the node is positioned relatively to the reference node according to the\n\t * bitmask. 0 if reference node and given node are the same.\n\t * @since DOM Level 3\n\t * @see https://www.w3.org/TR/2004/REC-DOM-Level-3-Core-20040407/core.html#Node3-compare\n\t * @see https://dom.spec.whatwg.org/#dom-node-comparedocumentposition\n\t */\n\tcompareDocumentPosition: function (other) {\n\t\tif (this === other) return 0;\n\t\tvar node1 = other;\n\t\tvar node2 = this;\n\t\tvar attr1 = null;\n\t\tvar attr2 = null;\n\t\tif (node1 instanceof Attr) {\n\t\t\tattr1 = node1;\n\t\t\tnode1 = attr1.ownerElement;\n\t\t}\n\t\tif (node2 instanceof Attr) {\n\t\t\tattr2 = node2;\n\t\t\tnode2 = attr2.ownerElement;\n\t\t\tif (attr1 && node1 && node2 === node1) {\n\t\t\t\tfor (var i = 0, attr; (attr = node2.attributes[i]); i++) {\n\t\t\t\t\tif (attr === attr1)\n\t\t\t\t\t\treturn DocumentPosition.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC + DocumentPosition.DOCUMENT_POSITION_PRECEDING;\n\t\t\t\t\tif (attr === attr2)\n\t\t\t\t\t\treturn DocumentPosition.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC + DocumentPosition.DOCUMENT_POSITION_FOLLOWING;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif (!node1 || !node2 || node2.ownerDocument !== node1.ownerDocument) {\n\t\t\treturn (\n\t\t\t\tDocumentPosition.DOCUMENT_POSITION_DISCONNECTED +\n\t\t\t\tDocumentPosition.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC +\n\t\t\t\t(docGUID(node2.ownerDocument) > docGUID(node1.ownerDocument)\n\t\t\t\t\t? DocumentPosition.DOCUMENT_POSITION_FOLLOWING\n\t\t\t\t\t: DocumentPosition.DOCUMENT_POSITION_PRECEDING)\n\t\t\t);\n\t\t}\n\t\tif (attr2 && node1 === node2) {\n\t\t\treturn DocumentPosition.DOCUMENT_POSITION_CONTAINS + DocumentPosition.DOCUMENT_POSITION_PRECEDING;\n\t\t}\n\t\tif (attr1 && node1 === node2) {\n\t\t\treturn DocumentPosition.DOCUMENT_POSITION_CONTAINED_BY + DocumentPosition.DOCUMENT_POSITION_FOLLOWING;\n\t\t}\n\n\t\tvar chain1 = [];\n\t\tvar ancestor1 = node1.parentNode;\n\t\twhile (ancestor1) {\n\t\t\tif (!attr2 && ancestor1 === node2) {\n\t\t\t\treturn DocumentPosition.DOCUMENT_POSITION_CONTAINED_BY + DocumentPosition.DOCUMENT_POSITION_FOLLOWING;\n\t\t\t}\n\t\t\tchain1.push(ancestor1);\n\t\t\tancestor1 = ancestor1.parentNode;\n\t\t}\n\t\tchain1.reverse();\n\n\t\tvar chain2 = [];\n\t\tvar ancestor2 = node2.parentNode;\n\t\twhile (ancestor2) {\n\t\t\tif (!attr1 && ancestor2 === node1) {\n\t\t\t\treturn DocumentPosition.DOCUMENT_POSITION_CONTAINS + DocumentPosition.DOCUMENT_POSITION_PRECEDING;\n\t\t\t}\n\t\t\tchain2.push(ancestor2);\n\t\t\tancestor2 = ancestor2.parentNode;\n\t\t}\n\t\tchain2.reverse();\n\n\t\tvar ca = commonAncestor(chain1, chain2);\n\t\tfor (var n in ca.childNodes) {\n\t\t\tvar child = ca.childNodes[n];\n\t\t\tif (child === node2) return DocumentPosition.DOCUMENT_POSITION_FOLLOWING;\n\t\t\tif (child === node1) return DocumentPosition.DOCUMENT_POSITION_PRECEDING;\n\t\t\tif (chain2.indexOf(child) >= 0) return DocumentPosition.DOCUMENT_POSITION_FOLLOWING;\n\t\t\tif (chain1.indexOf(child) >= 0) return DocumentPosition.DOCUMENT_POSITION_PRECEDING;\n\t\t}\n\t\treturn 0;\n\t},\n};\n\n/**\n * Encodes special XML characters to their corresponding entities.\n *\n * @param {string} c\n * The character to be encoded.\n * @returns {string}\n * The encoded character.\n * @private\n */\nfunction _xmlEncoder(c) {\n\treturn (\n\t\t(c == '<' && '&lt;') || (c == '>' && '&gt;') || (c == '&' && '&amp;') || (c == '\"' && '&quot;') || '&#' + c.charCodeAt() + ';'\n\t);\n}\n\ncopy(NodeType, Node);\ncopy(NodeType, Node.prototype);\ncopy(DocumentPosition, Node);\ncopy(DocumentPosition, Node.prototype);\n\n/**\n * Visits every node in the subtree rooted at `node` in depth-first pre-order.\n *\n * Delegates to {@link walkDOM} for traversal. The `callback` is called on each node;\n * if it returns a truthy value, traversal stops immediately.\n *\n * @param {Node} node\n * Root of the subtree to visit.\n * @param {function(Node): *} callback\n * Called for each node. A truthy return value stops traversal early.\n */\nfunction _visitNode(node, callback) {\n\twalkDOM(node, null, {\n\t\tenter: function (n) {\n\t\t\treturn callback(n) ? walkDOM.STOP : true;\n\t\t},\n\t});\n}\n\n/**\n * Depth-first pre/post-order DOM tree walker.\n *\n * Visits every node in the subtree rooted at `node`. For each node:\n *\n * 1. Calls `callbacks.enter(node, context)` before descending into the node's children. The\n * return value becomes the `context` passed to each child's `enter` call and to the matching\n * `exit` call.\n * 2. If `enter` returns `null` or `undefined`, the node's children are skipped;\n * sibling traversal continues normally.\n * 3. If `enter` returns `walkDOM.STOP`, the entire traversal is aborted immediately — no\n * further `enter` or `exit` calls are made.\n * 4. `lastChild` and `previousSibling` are read **after** `enter` returns, so `enter` may\n * safely modify the node's own child list before the walker descends. Modifying siblings of\n * the current node or any other part of the tree produces unpredictable results: nodes already\n * queued on the stack are visited regardless of DOM changes, and newly inserted nodes outside\n * the current child list are never visited.\n * 5. Calls `callbacks.exit(node, context)` (if provided) after all of a node's children have\n * been visited, passing the same `context` that `enter`\n * returned for that node.\n *\n * This implementation uses an explicit stack and does not recurse — it is safe on arbitrarily\n * deep trees.\n *\n * @param {Node} node\n * Root of the subtree to walk.\n * @param {*} context\n * Initial context value passed to the root node's `enter`.\n * @param {{ enter: function(Node, *): *, exit?: function(Node, *): void }} callbacks\n * @returns {void | walkDOM.STOP}\n * @see ../docs/walk-dom.md.\n */\nfunction walkDOM(node, context, callbacks) {\n\t// Each stack frame is {node, context, phase}:\n\t// walkDOM.ENTER — call enter, then push children\n\t// walkDOM.EXIT — call exit\n\tvar stack = [{ node: node, context: context, phase: walkDOM.ENTER }];\n\twhile (stack.length > 0) {\n\t\tvar frame = stack.pop();\n\t\tif (frame.phase === walkDOM.ENTER) {\n\t\t\tvar childContext = callbacks.enter(frame.node, frame.context);\n\t\t\tif (childContext === walkDOM.STOP) {\n\t\t\t\treturn walkDOM.STOP;\n\t\t\t}\n\t\t\t// Push exit frame before children so it fires after all children are processed (Last In First Out)\n\t\t\tstack.push({ node: frame.node, context: childContext, phase: walkDOM.EXIT });\n\t\t\tif (childContext === null || childContext === undefined) {\n\t\t\t\tcontinue; // skip children\n\t\t\t}\n\t\t\t// lastChild is read after enter returns, so enter may modify the child list.\n\t\t\tvar child = frame.node.lastChild;\n\t\t\t// Traverse from lastChild backwards so that pushing onto the stack\n\t\t\t// naturally yields firstChild on top (processed first).\n\t\t\twhile (child) {\n\t\t\t\tstack.push({ node: child, context: childContext, phase: walkDOM.ENTER });\n\t\t\t\tchild = child.previousSibling;\n\t\t\t}\n\t\t} else {\n\t\t\t// frame.phase === walkDOM.EXIT\n\t\t\tif (callbacks.exit) {\n\t\t\t\tcallbacks.exit(frame.node, frame.context);\n\t\t\t}\n\t\t}\n\t}\n}\n\n/**\n * Sentinel value returned from a `walkDOM` `enter` callback to abort the entire traversal\n * immediately.\n *\n * @type {symbol}\n */\nwalkDOM.STOP = Symbol('walkDOM.STOP');\n/**\n * Phase constant for a stack frame that has not yet been visited.\n * The `enter` callback is called and children are scheduled.\n *\n * @type {number}\n */\nwalkDOM.ENTER = 0;\n/**\n * Phase constant for a stack frame whose subtree has been fully visited.\n * The `exit` callback is called.\n *\n * @type {number}\n */\nwalkDOM.EXIT = 1;\n\n/**\n * @typedef DocumentOptions\n * @property {string} [contentType=MIME_TYPE.XML_APPLICATION]\n */\n/**\n * The Document interface describes the common properties and methods for any kind of document.\n *\n * It should usually be created using `new DOMImplementation().createDocument(...)`\n * or `new DOMImplementation().createHTMLDocument(...)`.\n *\n * The constructor is considered a private API and offers to initially set the `contentType`\n * property via it's options parameter.\n *\n * @class\n * @param {Symbol} symbol\n * @param {DocumentOptions} [options]\n * @augments Node\n * @private\n * @see https://developer.mozilla.org/en-US/docs/Web/API/Document\n * @see https://dom.spec.whatwg.org/#interface-document\n */\nfunction Document(symbol, options) {\n\tcheckSymbol(symbol);\n\n\tvar opt = options || {};\n\tthis.ownerDocument = this;\n\t/**\n\t * The mime type of the document is determined at creation time and can not be modified.\n\t *\n\t * @type {string}\n\t * @see https://dom.spec.whatwg.org/#concept-document-content-type\n\t * @see {@link DOMImplementation}\n\t * @see {@link MIME_TYPE}\n\t * @readonly\n\t */\n\tthis.contentType = opt.contentType || MIME_TYPE.XML_APPLICATION;\n\t/**\n\t * @type {'html' | 'xml'}\n\t * @see https://dom.spec.whatwg.org/#concept-document-type\n\t * @see {@link DOMImplementation}\n\t * @readonly\n\t */\n\tthis.type = isHTMLMimeType(this.contentType) ? 'html' : 'xml';\n}\n\n/**\n * Updates the namespace mapping of an element when a new attribute is added.\n *\n * @param {Document} doc\n * The document that the element belongs to.\n * @param {Element} el\n * The element to which the attribute is being added.\n * @param {Attr} newAttr\n * The new attribute being added.\n * @private\n */\nfunction _onAddAttribute(doc, el, newAttr) {\n\tdoc && doc._inc++;\n\tvar ns = newAttr.namespaceURI;\n\tif (ns === NAMESPACE.XMLNS) {\n\t\t//update namespace\n\t\tel._nsMap[newAttr.prefix ? newAttr.localName : ''] = newAttr.value;\n\t}\n}\n\n/**\n * Updates the namespace mapping of an element when an attribute is removed.\n *\n * @param {Document} doc\n * The document that the element belongs to.\n * @param {Element} el\n * The element from which the attribute is being removed.\n * @param {Attr} newAttr\n * The attribute being removed.\n * @param {boolean} remove\n * Indicates whether the attribute is to be removed.\n * @private\n */\nfunction _onRemoveAttribute(doc, el, newAttr, remove) {\n\tdoc && doc._inc++;\n\tvar ns = newAttr.namespaceURI;\n\tif (ns === NAMESPACE.XMLNS) {\n\t\t//update namespace\n\t\tdelete el._nsMap[newAttr.prefix ? newAttr.localName : ''];\n\t}\n}\n\n/**\n * Updates `parent.childNodes`, adjusting the indexed items and its `length`.\n * If `newChild` is provided and has no nextSibling, it will be appended.\n * Otherwise, it's assumed that an item has been removed or inserted,\n * and `parent.firstNode` and its `.nextSibling` to re-indexing all child nodes of `parent`.\n *\n * @param {Document} doc\n * The parent document of `el`.\n * @param {Node} parent\n * The parent node whose childNodes list needs to be updated.\n * @param {Node} [newChild]\n * The new child node to be appended. If not provided, the function assumes a node has been\n * removed.\n * @private\n */\nfunction _onUpdateChild(doc, parent, newChild) {\n\tif (doc && doc._inc) {\n\t\tdoc._inc++;\n\t\tvar childNodes = parent.childNodes;\n\t\t// assumes nextSibling and previousSibling were already configured upfront\n\t\tif (newChild && !newChild.nextSibling) {\n\t\t\t// if an item has been appended, we only need to update the last index and the length\n\t\t\tchildNodes[childNodes.length++] = newChild;\n\t\t} else {\n\t\t\t// otherwise we need to reindex all items,\n\t\t\t// which can take a while when processing nodes with a lot of children\n\t\t\tvar child = parent.firstChild;\n\t\t\tvar i = 0;\n\t\t\twhile (child) {\n\t\t\t\tchildNodes[i++] = child;\n\t\t\t\tchild = child.nextSibling;\n\t\t\t}\n\t\t\tchildNodes.length = i;\n\t\t\tdelete childNodes[childNodes.length];\n\t\t}\n\t}\n}\n\n/**\n * Removes the connections between `parentNode` and `child`\n * and any existing `child.previousSibling` or `child.nextSibling`.\n *\n * @param {Node} parentNode\n * The parent node from which the child node is to be removed.\n * @param {Node} child\n * The child node to be removed from the parentNode.\n * @returns {Node}\n * Returns the child node that was removed.\n * @throws {DOMException}\n * With code:\n * - {@link DOMException.NOT_FOUND_ERR} If the parentNode is not the parent of the child node.\n * @private\n * @see https://github.com/xmldom/xmldom/issues/135\n * @see https://github.com/xmldom/xmldom/issues/145\n */\nfunction _removeChild(parentNode, child) {\n\tif (parentNode !== child.parentNode) {\n\t\tthrow new DOMException(DOMException.NOT_FOUND_ERR, \"child's parent is not parent\");\n\t}\n\tvar oldPreviousSibling = child.previousSibling;\n\tvar oldNextSibling = child.nextSibling;\n\tif (oldPreviousSibling) {\n\t\toldPreviousSibling.nextSibling = oldNextSibling;\n\t} else {\n\t\tparentNode.firstChild = oldNextSibling;\n\t}\n\tif (oldNextSibling) {\n\t\toldNextSibling.previousSibling = oldPreviousSibling;\n\t} else {\n\t\tparentNode.lastChild = oldPreviousSibling;\n\t}\n\t_onUpdateChild(parentNode.ownerDocument, parentNode);\n\tchild.parentNode = null;\n\tchild.previousSibling = null;\n\tchild.nextSibling = null;\n\treturn child;\n}\n\n/**\n * Returns `true` if `node` can be a parent for insertion.\n *\n * @param {Node} node\n * @returns {boolean}\n */\nfunction hasValidParentNodeType(node) {\n\treturn (\n\t\tnode &&\n\t\t(node.nodeType === Node.DOCUMENT_NODE || node.nodeType === Node.DOCUMENT_FRAGMENT_NODE || node.nodeType === Node.ELEMENT_NODE)\n\t);\n}\n\n/**\n * Returns `true` if `node` can be inserted according to it's `nodeType`.\n *\n * @param {Node} node\n * @returns {boolean}\n */\nfunction hasInsertableNodeType(node) {\n\treturn (\n\t\tnode &&\n\t\t(node.nodeType === Node.CDATA_SECTION_NODE ||\n\t\t\tnode.nodeType === Node.COMMENT_NODE ||\n\t\t\tnode.nodeType === Node.DOCUMENT_FRAGMENT_NODE ||\n\t\t\tnode.nodeType === Node.DOCUMENT_TYPE_NODE ||\n\t\t\tnode.nodeType === Node.ELEMENT_NODE ||\n\t\t\tnode.nodeType === Node.PROCESSING_INSTRUCTION_NODE ||\n\t\t\tnode.nodeType === Node.TEXT_NODE)\n\t);\n}\n\n/**\n * Returns true if `node` is a DOCTYPE node.\n *\n * @param {Node} node\n * @returns {boolean}\n */\nfunction isDocTypeNode(node) {\n\treturn node && node.nodeType === Node.DOCUMENT_TYPE_NODE;\n}\n\n/**\n * Returns true if the node is an element.\n *\n * @param {Node} node\n * @returns {boolean}\n */\nfunction isElementNode(node) {\n\treturn node && node.nodeType === Node.ELEMENT_NODE;\n}\n/**\n * Returns true if `node` is a text node.\n *\n * @param {Node} node\n * @returns {boolean}\n */\nfunction isTextNode(node) {\n\treturn node && node.nodeType === Node.TEXT_NODE;\n}\n\n/**\n * Check if en element node can be inserted before `child`, or at the end if child is falsy,\n * according to the presence and position of a doctype node on the same level.\n *\n * @param {Document} doc\n * The document node.\n * @param {Node} child\n * The node that would become the nextSibling if the element would be inserted.\n * @returns {boolean}\n * `true` if an element can be inserted before child.\n * @private\n */\nfunction isElementInsertionPossible(doc, child) {\n\tvar parentChildNodes = doc.childNodes || [];\n\tif (find(parentChildNodes, isElementNode) || isDocTypeNode(child)) {\n\t\treturn false;\n\t}\n\tvar docTypeNode = find(parentChildNodes, isDocTypeNode);\n\treturn !(child && docTypeNode && parentChildNodes.indexOf(docTypeNode) > parentChildNodes.indexOf(child));\n}\n\n/**\n * Check if en element node can be inserted before `child`, or at the end if child is falsy,\n * according to the presence and position of a doctype node on the same level.\n *\n * @param {Node} doc\n * The document node.\n * @param {Node} child\n * The node that would become the nextSibling if the element would be inserted.\n * @returns {boolean}\n * `true` if an element can be inserted before child.\n * @private\n */\nfunction isElementReplacementPossible(doc, child) {\n\tvar parentChildNodes = doc.childNodes || [];\n\n\tfunction hasElementChildThatIsNotChild(node) {\n\t\treturn isElementNode(node) && node !== child;\n\t}\n\n\tif (find(parentChildNodes, hasElementChildThatIsNotChild)) {\n\t\treturn false;\n\t}\n\tvar docTypeNode = find(parentChildNodes, isDocTypeNode);\n\treturn !(child && docTypeNode && parentChildNodes.indexOf(docTypeNode) > parentChildNodes.indexOf(child));\n}\n\n/**\n * Asserts pre-insertion validity of a node into a parent before a child.\n * Throws errors for invalid node combinations that would result in an ill-formed DOM.\n *\n * @param {Node} parent\n * The parent node to insert `node` into.\n * @param {Node} node\n * The node to insert.\n * @param {Node | null} child\n * The node that should become the `nextSibling` of `node`. If null, no sibling is considered.\n * @throws {DOMException}\n * With code:\n * - {@link DOMException.HIERARCHY_REQUEST_ERR} If `parent` is not a Document,\n * DocumentFragment, or Element node.\n * - {@link DOMException.HIERARCHY_REQUEST_ERR} If `node` is a host-including inclusive\n * ancestor of `parent`. (Currently not implemented)\n * - {@link DOMException.NOT_FOUND_ERR} If `child` is non-null and its `parent` is not\n * `parent`.\n * - {@link DOMException.HIERARCHY_REQUEST_ERR} If `node` is not a DocumentFragment,\n * DocumentType, Element, or CharacterData node.\n * - {@link DOMException.HIERARCHY_REQUEST_ERR} If either `node` is a Text node and `parent` is\n * a document, or if `node` is a doctype and `parent` is not a document.\n * @private\n * @see https://dom.spec.whatwg.org/#concept-node-ensure-pre-insertion-validity\n * @see https://dom.spec.whatwg.org/#concept-node-replace\n */\nfunction assertPreInsertionValidity1to5(parent, node, child) {\n\t// 1. If `parent` is not a Document, DocumentFragment, or Element node, then throw a \"HierarchyRequestError\" DOMException.\n\tif (!hasValidParentNodeType(parent)) {\n\t\tthrow new DOMException(DOMException.HIERARCHY_REQUEST_ERR, 'Unexpected parent node type ' + parent.nodeType);\n\t}\n\t// 2. If `node` is a host-including inclusive ancestor of `parent`, then throw a \"HierarchyRequestError\" DOMException.\n\t// not implemented!\n\t// 3. If `child` is non-null and its parent is not `parent`, then throw a \"NotFoundError\" DOMException.\n\tif (child && child.parentNode !== parent) {\n\t\tthrow new DOMException(DOMException.NOT_FOUND_ERR, 'child not in parent');\n\t}\n\tif (\n\t\t// 4. If `node` is not a DocumentFragment, DocumentType, Element, or CharacterData node, then throw a \"HierarchyRequestError\" DOMException.\n\t\t!hasInsertableNodeType(node) ||\n\t\t// 5. If either `node` is a Text node and `parent` is a document,\n\t\t// the sax parser currently adds top level text nodes, this will be fixed in 0.9.0\n\t\t// || (node.nodeType === Node.TEXT_NODE && parent.nodeType === Node.DOCUMENT_NODE)\n\t\t// or `node` is a doctype and `parent` is not a document, then throw a \"HierarchyRequestError\" DOMException.\n\t\t(isDocTypeNode(node) && parent.nodeType !== Node.DOCUMENT_NODE)\n\t) {\n\t\tthrow new DOMException(\n\t\t\tDOMException.HIERARCHY_REQUEST_ERR,\n\t\t\t'Unexpected node type ' + node.nodeType + ' for parent node type ' + parent.nodeType\n\t\t);\n\t}\n}\n\n/**\n * Asserts pre-insertion validity of a node into a document before a child.\n * Throws errors for invalid node combinations that would result in an ill-formed DOM.\n *\n * @param {Document} parent\n * The parent node to insert `node` into.\n * @param {Node} node\n * The node to insert.\n * @param {Node | undefined} child\n * The node that should become the `nextSibling` of `node`. If undefined, no sibling is\n * considered.\n * @returns {Node}\n * @throws {DOMException}\n * With code:\n * - {@link DOMException.HIERARCHY_REQUEST_ERR} If `node` is a DocumentFragment with more than\n * one element child or has a Text node child.\n * - {@link DOMException.HIERARCHY_REQUEST_ERR} If `node` is a DocumentFragment with one\n * element child and either `parent` has an element child, `child` is a doctype, or `child` is\n * non-null and a doctype is following `child`.\n * - {@link DOMException.HIERARCHY_REQUEST_ERR} If `node` is an Element and `parent` has an\n * element child, `child` is a doctype, or `child` is non-null and a doctype is following\n * `child`.\n * - {@link DOMException.HIERARCHY_REQUEST_ERR} If `node` is a DocumentType and `parent` has a\n * doctype child, `child` is non-null and an element is preceding `child`, or `child` is null\n * and `parent` has an element child.\n * @private\n * @see https://dom.spec.whatwg.org/#concept-node-ensure-pre-insertion-validity\n * @see https://dom.spec.whatwg.org/#concept-node-replace\n */\nfunction assertPreInsertionValidityInDocument(parent, node, child) {\n\tvar parentChildNodes = parent.childNodes || [];\n\tvar nodeChildNodes = node.childNodes || [];\n\n\t// DocumentFragment\n\tif (node.nodeType === Node.DOCUMENT_FRAGMENT_NODE) {\n\t\tvar nodeChildElements = nodeChildNodes.filter(isElementNode);\n\t\t// If node has more than one element child or has a Text node child.\n\t\tif (nodeChildElements.length > 1 || find(nodeChildNodes, isTextNode)) {\n\t\t\tthrow new DOMException(DOMException.HIERARCHY_REQUEST_ERR, 'More than one element or text in fragment');\n\t\t}\n\t\t// Otherwise, if `node` has one element child and either `parent` has an element child,\n\t\t// `child` is a doctype, or `child` is non-null and a doctype is following `child`.\n\t\tif (nodeChildElements.length === 1 && !isElementInsertionPossible(parent, child)) {\n\t\t\tthrow new DOMException(DOMException.HIERARCHY_REQUEST_ERR, 'Element in fragment can not be inserted before doctype');\n\t\t}\n\t}\n\t// Element\n\tif (isElementNode(node)) {\n\t\t// `parent` has an element child, `child` is a doctype,\n\t\t// or `child` is non-null and a doctype is following `child`.\n\t\tif (!isElementInsertionPossible(parent, child)) {\n\t\t\tthrow new DOMException(DOMException.HIERARCHY_REQUEST_ERR, 'Only one element can be added and only after doctype');\n\t\t}\n\t}\n\t// DocumentType\n\tif (isDocTypeNode(node)) {\n\t\t// `parent` has a doctype child,\n\t\tif (find(parentChildNodes, isDocTypeNode)) {\n\t\t\tthrow new DOMException(DOMException.HIERARCHY_REQUEST_ERR, 'Only one doctype is allowed');\n\t\t}\n\t\tvar parentElementChild = find(parentChildNodes, isElementNode);\n\t\t// `child` is non-null and an element is preceding `child`,\n\t\tif (child && parentChildNodes.indexOf(parentElementChild) < parentChildNodes.indexOf(child)) {\n\t\t\tthrow new DOMException(DOMException.HIERARCHY_REQUEST_ERR, 'Doctype can only be inserted before an element');\n\t\t}\n\t\t// or `child` is null and `parent` has an element child.\n\t\tif (!child && parentElementChild) {\n\t\t\tthrow new DOMException(DOMException.HIERARCHY_REQUEST_ERR, 'Doctype can not be appended since element is present');\n\t\t}\n\t}\n}\n\n/**\n * @param {Document} parent\n * The parent node to insert `node` into.\n * @param {Node} node\n * The node to insert.\n * @param {Node | undefined} child\n * the node that should become the `nextSibling` of `node`\n * @returns {Node}\n * @throws {DOMException}\n * For several node combinations that would create a DOM that is not well-formed.\n * @throws {DOMException}\n * If `child` is provided but is not a child of `parent`.\n * @private\n * @see https://dom.spec.whatwg.org/#concept-node-ensure-pre-insertion-validity\n * @see https://dom.spec.whatwg.org/#concept-node-replace\n */\nfunction assertPreReplacementValidityInDocument(parent, node, child) {\n\tvar parentChildNodes = parent.childNodes || [];\n\tvar nodeChildNodes = node.childNodes || [];\n\n\t// DocumentFragment\n\tif (node.nodeType === Node.DOCUMENT_FRAGMENT_NODE) {\n\t\tvar nodeChildElements = nodeChildNodes.filter(isElementNode);\n\t\t// If `node` has more than one element child or has a Text node child.\n\t\tif (nodeChildElements.length > 1 || find(nodeChildNodes, isTextNode)) {\n\t\t\tthrow new DOMException(DOMException.HIERARCHY_REQUEST_ERR, 'More than one element or text in fragment');\n\t\t}\n\t\t// Otherwise, if `node` has one element child and either `parent` has an element child that is not `child` or a doctype is following `child`.\n\t\tif (nodeChildElements.length === 1 && !isElementReplacementPossible(parent, child)) {\n\t\t\tthrow new DOMException(DOMException.HIERARCHY_REQUEST_ERR, 'Element in fragment can not be inserted before doctype');\n\t\t}\n\t}\n\t// Element\n\tif (isElementNode(node)) {\n\t\t// `parent` has an element child that is not `child` or a doctype is following `child`.\n\t\tif (!isElementReplacementPossible(parent, child)) {\n\t\t\tthrow new DOMException(DOMException.HIERARCHY_REQUEST_ERR, 'Only one element can be added and only after doctype');\n\t\t}\n\t}\n\t// DocumentType\n\tif (isDocTypeNode(node)) {\n\t\tfunction hasDoctypeChildThatIsNotChild(node) {\n\t\t\treturn isDocTypeNode(node) && node !== child;\n\t\t}\n\n\t\t// `parent` has a doctype child that is not `child`,\n\t\tif (find(parentChildNodes, hasDoctypeChildThatIsNotChild)) {\n\t\t\tthrow new DOMException(DOMException.HIERARCHY_REQUEST_ERR, 'Only one doctype is allowed');\n\t\t}\n\t\tvar parentElementChild = find(parentChildNodes, isElementNode);\n\t\t// or an element is preceding `child`.\n\t\tif (child && parentChildNodes.indexOf(parentElementChild) < parentChildNodes.indexOf(child)) {\n\t\t\tthrow new DOMException(DOMException.HIERARCHY_REQUEST_ERR, 'Doctype can only be inserted before an element');\n\t\t}\n\t}\n}\n\n/**\n * Inserts a node into a parent node before a child node.\n *\n * @param {Node} parent\n * The parent node to insert the node into.\n * @param {Node} node\n * The node to insert into the parent.\n * @param {Node | null} child\n * The node that should become the next sibling of the node.\n * If null, the function inserts the node at the end of the children of the parent node.\n * @param {Function} [_inDocumentAssertion]\n * An optional function to check pre-insertion validity if parent is a document node.\n * Defaults to {@link assertPreInsertionValidityInDocument}\n * @returns {Node}\n * Returns the inserted node.\n * @throws {DOMException}\n * Throws a DOMException if inserting the node would result in a DOM tree that is not\n * well-formed. See {@link assertPreInsertionValidity1to5},\n * {@link assertPreInsertionValidityInDocument}.\n * @throws {DOMException}\n * Throws a DOMException if child is provided but is not a child of the parent. See\n * {@link Node.removeChild}\n * @private\n * @see https://dom.spec.whatwg.org/#concept-node-ensure-pre-insertion-validity\n */\nfunction _insertBefore(parent, node, child, _inDocumentAssertion) {\n\t// To ensure pre-insertion validity of a node into a parent before a child, run these steps:\n\tassertPreInsertionValidity1to5(parent, node, child);\n\n\t// If parent is a document, and any of the statements below, switched on the interface node implements,\n\t// are true, then throw a \"HierarchyRequestError\" DOMException.\n\tif (parent.nodeType === Node.DOCUMENT_NODE) {\n\t\t(_inDocumentAssertion || assertPreInsertionValidityInDocument)(parent, node, child);\n\t}\n\n\tvar cp = node.parentNode;\n\tif (cp) {\n\t\tcp.removeChild(node); //remove and update\n\t}\n\tif (node.nodeType === DOCUMENT_FRAGMENT_NODE) {\n\t\tvar newFirst = node.firstChild;\n\t\tif (newFirst == null) {\n\t\t\treturn node;\n\t\t}\n\t\tvar newLast = node.lastChild;\n\t} else {\n\t\tnewFirst = newLast = node;\n\t}\n\tvar pre = child ? child.previousSibling : parent.lastChild;\n\n\tnewFirst.previousSibling = pre;\n\tnewLast.nextSibling = child;\n\n\tif (pre) {\n\t\tpre.nextSibling = newFirst;\n\t} else {\n\t\tparent.firstChild = newFirst;\n\t}\n\tif (child == null) {\n\t\tparent.lastChild = newLast;\n\t} else {\n\t\tchild.previousSibling = newLast;\n\t}\n\tdo {\n\t\tnewFirst.parentNode = parent;\n\t} while (newFirst !== newLast && (newFirst = newFirst.nextSibling));\n\t_onUpdateChild(parent.ownerDocument || parent, parent, node);\n\tif (node.nodeType == DOCUMENT_FRAGMENT_NODE) {\n\t\tnode.firstChild = node.lastChild = null;\n\t}\n\n\treturn node;\n}\n\nDocument.prototype = {\n\t/**\n\t * The implementation that created this document.\n\t *\n\t * @type DOMImplementation\n\t * @readonly\n\t */\n\timplementation: null,\n\tnodeName: '#document',\n\tnodeType: DOCUMENT_NODE,\n\t/**\n\t * The DocumentType node of the document.\n\t *\n\t * @type DocumentType\n\t * @readonly\n\t */\n\tdoctype: null,\n\tdocumentElement: null,\n\t_inc: 1,\n\n\tinsertBefore: function (newChild, refChild) {\n\t\t//raises\n\t\tif (newChild.nodeType === DOCUMENT_FRAGMENT_NODE) {\n\t\t\tvar child = newChild.firstChild;\n\t\t\twhile (child) {\n\t\t\t\tvar next = child.nextSibling;\n\t\t\t\tthis.insertBefore(child, refChild);\n\t\t\t\tchild = next;\n\t\t\t}\n\t\t\treturn newChild;\n\t\t}\n\t\t_insertBefore(this, newChild, refChild);\n\t\tnewChild.ownerDocument = this;\n\t\tif (this.documentElement === null && newChild.nodeType === ELEMENT_NODE) {\n\t\t\tthis.documentElement = newChild;\n\t\t}\n\n\t\treturn newChild;\n\t},\n\tremoveChild: function (oldChild) {\n\t\tvar removed = _removeChild(this, oldChild);\n\t\tif (removed === this.documentElement) {\n\t\t\tthis.documentElement = null;\n\t\t}\n\t\treturn removed;\n\t},\n\treplaceChild: function (newChild, oldChild) {\n\t\t//raises\n\t\t_insertBefore(this, newChild, oldChild, assertPreReplacementValidityInDocument);\n\t\tnewChild.ownerDocument = this;\n\t\tif (oldChild) {\n\t\t\tthis.removeChild(oldChild);\n\t\t}\n\t\tif (isElementNode(newChild)) {\n\t\t\tthis.documentElement = newChild;\n\t\t}\n\t},\n\t/**\n\t * Imports a node from another document into this document, creating a new copy owned by this\n\t * document. The source node and its subtree are not modified.\n\t *\n\t * @param {Node} importedNode\n\t * The node to import.\n\t * @param {boolean} deep\n\t * If true, the contents of the node are recursively imported.\n\t * If false, only the node itself (and its attributes, if it is an element) are imported.\n\t * @returns {Node}\n\t * Returns the newly created import of the node.\n\t * @see {@link importNode}\n\t * @see {@link https://dom.spec.whatwg.org/#dom-document-importnode}\n\t */\n\timportNode: function (importedNode, deep) {\n\t\treturn importNode(this, importedNode, deep);\n\t},\n\t// Introduced in DOM Level 2:\n\tgetElementById: function (id) {\n\t\tvar rtv = null;\n\t\t_visitNode(this.documentElement, function (node) {\n\t\t\tif (node.nodeType == ELEMENT_NODE) {\n\t\t\t\tif (node.getAttribute('id') == id) {\n\t\t\t\t\trtv = node;\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\treturn rtv;\n\t},\n\n\t/**\n\t * Creates a new `Element` that is owned by this `Document`.\n\t * In HTML Documents `localName` is the lower cased `tagName`,\n\t * otherwise no transformation is being applied.\n\t * When `contentType` implies the HTML namespace, it will be set as `namespaceURI`.\n\t *\n\t * __This implementation differs from the specification:__ - The provided name is not checked\n\t * against the `Name` production,\n\t * so no related error will be thrown.\n\t * - There is no interface `HTMLElement`, it is always an `Element`.\n\t * - There is no support for a second argument to indicate using custom elements.\n\t *\n\t * @param {string} tagName\n\t * @returns {Element}\n\t * @see https://developer.mozilla.org/en-US/docs/Web/API/Document/createElement\n\t * @see https://dom.spec.whatwg.org/#dom-document-createelement\n\t * @see https://dom.spec.whatwg.org/#concept-create-element\n\t */\n\tcreateElement: function (tagName) {\n\t\tvar node = new Element(PDC);\n\t\tnode.ownerDocument = this;\n\t\tif (this.type === 'html') {\n\t\t\ttagName = tagName.toLowerCase();\n\t\t}\n\t\tif (hasDefaultHTMLNamespace(this.contentType)) {\n\t\t\tnode.namespaceURI = NAMESPACE.HTML;\n\t\t}\n\t\tnode.nodeName = tagName;\n\t\tnode.tagName = tagName;\n\t\tnode.localName = tagName;\n\t\tnode.childNodes = new NodeList();\n\t\tvar attrs = (node.attributes = new NamedNodeMap());\n\t\tattrs._ownerElement = node;\n\t\treturn node;\n\t},\n\t/**\n\t * @returns {DocumentFragment}\n\t */\n\tcreateDocumentFragment: function () {\n\t\tvar node = new DocumentFragment(PDC);\n\t\tnode.ownerDocument = this;\n\t\tnode.childNodes = new NodeList();\n\t\treturn node;\n\t},\n\t/**\n\t * @param {string} data\n\t * @returns {Text}\n\t */\n\tcreateTextNode: function (data) {\n\t\tvar node = new Text(PDC);\n\t\tnode.ownerDocument = this;\n\t\tnode.childNodes = new NodeList();\n\t\tnode.appendData(data);\n\t\treturn node;\n\t},\n\t/**\n\t * @param {string} data\n\t * @returns {Comment}\n\t * @see https://dom.spec.whatwg.org/#dom-document-createcomment\n\t * @see https://www.w3.org/TR/xml/#NT-Comment XML 1.0 production [15]\n\t * @see https://www.w3.org/TR/DOM-Parsing/#dfn-concept-serialize-xml §3.2.1.3\n\t *\n\t * Note: no validation is performed at creation time. When the resulting document is\n\t * serialized with `requireWellFormed: true`, the serializer throws `InvalidStateError`\n\t * if the comment data contains `--` anywhere, ends with `-`, or contains characters\n\t * outside the XML Char production (W3C DOM Parsing §3.2.1.3). Without that option the\n\t * data is emitted verbatim.\n\t */\n\tcreateComment: function (data) {\n\t\tvar node = new Comment(PDC);\n\t\tnode.ownerDocument = this;\n\t\tnode.childNodes = new NodeList();\n\t\tnode.appendData(data);\n\t\treturn node;\n\t},\n\t/**\n\t * Returns a new CDATASection node whose data is `data`.\n\t *\n\t * __This implementation differs from the specification:__ - calling this method on an HTML\n\t * document does not throw `NotSupportedError`.\n\t *\n\t * @param {string} data\n\t * @returns {CDATASection}\n\t * @throws {DOMException}\n\t * With code `INVALID_CHARACTER_ERR` if `data` contains `\"]]>\"`.\n\t * @see https://developer.mozilla.org/en-US/docs/Web/API/Document/createCDATASection\n\t * @see https://dom.spec.whatwg.org/#dom-document-createcdatasection\n\t */\n\tcreateCDATASection: function (data) {\n\t\tif (data.indexOf(']]>') !== -1) {\n\t\t\tthrow new DOMException(DOMException.INVALID_CHARACTER_ERR, 'data contains \"]]>\"');\n\t\t}\n\t\tvar node = new CDATASection(PDC);\n\t\tnode.ownerDocument = this;\n\t\tnode.childNodes = new NodeList();\n\t\tnode.appendData(data);\n\t\treturn node;\n\t},\n\t/**\n\t * Returns a ProcessingInstruction node whose target is target and data is data.\n\t *\n\t * __This behavior is slightly different from the in the specs__:\n\t * - it does not do any input validation on the arguments and doesn't throw\n\t * \"InvalidCharacterError\".\n\t *\n\t * Note: When the resulting document is serialized with `requireWellFormed: true`, the\n\t * serializer throws `InvalidStateError` if `.target` is not a valid XML `NCName` (a `Name`\n\t * with no colon) or is an ASCII case-insensitive match for `\"xml\"`, or if `.data` contains\n\t * `?>` or characters outside the XML Char production (W3C DOM Parsing §3.2.1.7). Without that\n\t * option the target and data are emitted verbatim.\n\t *\n\t * @param {string} target\n\t * @param {string} data\n\t * @returns {ProcessingInstruction}\n\t * @see https://developer.mozilla.org/docs/Web/API/Document/createProcessingInstruction\n\t * @see https://dom.spec.whatwg.org/#dom-document-createprocessinginstruction\n\t * @see https://www.w3.org/TR/DOM-Parsing/#dfn-concept-serialize-xml §3.2.1.7\n\t */\n\tcreateProcessingInstruction: function (target, data) {\n\t\tvar node = new ProcessingInstruction(PDC);\n\t\tnode.ownerDocument = this;\n\t\tnode.childNodes = new NodeList();\n\t\tnode.nodeName = node.target = target;\n\t\tnode.nodeValue = node.data = data;\n\t\treturn node;\n\t},\n\t/**\n\t * Creates an `Attr` node that is owned by this document.\n\t * In HTML Documents `localName` is the lower cased `name`,\n\t * otherwise no transformation is being applied.\n\t *\n\t * __This implementation differs from the specification:__ - The provided name is not checked\n\t * against the `Name` production,\n\t * so no related error will be thrown.\n\t *\n\t * @param {string} name\n\t * @returns {Attr}\n\t * @see https://developer.mozilla.org/en-US/docs/Web/API/Document/createAttribute\n\t * @see https://dom.spec.whatwg.org/#dom-document-createattribute\n\t */\n\tcreateAttribute: function (name) {\n\t\tif (!g.QName_exact.test(name)) {\n\t\t\tthrow new DOMException(DOMException.INVALID_CHARACTER_ERR, 'invalid character in name \"' + name + '\"');\n\t\t}\n\t\tif (this.type === 'html') {\n\t\t\tname = name.toLowerCase();\n\t\t}\n\t\treturn this._createAttribute(name);\n\t},\n\t_createAttribute: function (name) {\n\t\tvar node = new Attr(PDC);\n\t\tnode.ownerDocument = this;\n\t\tnode.childNodes = new NodeList();\n\t\tnode.name = name;\n\t\tnode.nodeName = name;\n\t\tnode.localName = name;\n\t\tnode.specified = true;\n\t\treturn node;\n\t},\n\t/**\n\t * Creates an EntityReference object.\n\t * The current implementation does not fill the `childNodes` with those of the corresponding\n\t * `Entity`\n\t *\n\t * The `name` is validated against the XML `Name` production at creation time; an invalid name\n\t * throws `InvalidCharacterError`. When the resulting node is serialized with\n\t * `requireWellFormed: true`, the serializer re-validates `nodeName` against the XML `Name`\n\t * production and throws `InvalidStateError` if a later `nodeName` mutation made it invalid;\n\t * without that option the name is emitted verbatim.\n\t *\n\t * __This implementation differs from the specification:__ xmldom does not expand entities —\n\t * the parser resolves entity references inline and never constructs `EntityReference` nodes,\n\t * so this method is the only producer.\n\t *\n\t * @deprecated\n\t * In DOM Level 4.\n\t * @param {string} name\n\t * The name of the entity to reference. No namespace well-formedness checks are performed.\n\t * @returns {EntityReference}\n\t * @throws {DOMException}\n\t * With code `INVALID_CHARACTER_ERR` when `name` is not a valid XML `Name`.\n\t * @throws {DOMException}\n\t * with code `NOT_SUPPORTED_ERR` when the document is of type `html`\n\t * @see https://www.w3.org/TR/DOM-Level-3-Core/core.html#ID-392B75AE\n\t */\n\tcreateEntityReference: function (name) {\n\t\tif (!g.Name_exact.test(name)) {\n\t\t\tthrow new DOMException(DOMException.INVALID_CHARACTER_ERR, 'not a valid xml name \"' + name + '\"');\n\t\t}\n\t\tif (this.type === 'html') {\n\t\t\tthrow new DOMException('document is an html document', DOMExceptionName.NotSupportedError);\n\t\t}\n\n\t\tvar node = new EntityReference(PDC);\n\t\tnode.ownerDocument = this;\n\t\tnode.childNodes = new NodeList();\n\t\tnode.nodeName = name;\n\t\treturn node;\n\t},\n\t// Introduced in DOM Level 2:\n\t/**\n\t * @param {string} namespaceURI\n\t * @param {string} qualifiedName\n\t * @returns {Element}\n\t */\n\tcreateElementNS: function (namespaceURI, qualifiedName) {\n\t\tvar validated = validateAndExtract(namespaceURI, qualifiedName);\n\t\tvar node = new Element(PDC);\n\t\tvar attrs = (node.attributes = new NamedNodeMap());\n\t\tnode.childNodes = new NodeList();\n\t\tnode.ownerDocument = this;\n\t\tnode.nodeName = qualifiedName;\n\t\tnode.tagName = qualifiedName;\n\t\tnode.namespaceURI = validated[0];\n\t\tnode.prefix = validated[1];\n\t\tnode.localName = validated[2];\n\t\tattrs._ownerElement = node;\n\t\treturn node;\n\t},\n\t// Introduced in DOM Level 2:\n\t/**\n\t * @param {string} namespaceURI\n\t * @param {string} qualifiedName\n\t * @returns {Attr}\n\t */\n\tcreateAttributeNS: function (namespaceURI, qualifiedName) {\n\t\tvar validated = validateAndExtract(namespaceURI, qualifiedName);\n\t\tvar node = new Attr(PDC);\n\t\tnode.ownerDocument = this;\n\t\tnode.childNodes = new NodeList();\n\t\tnode.nodeName = qualifiedName;\n\t\tnode.name = qualifiedName;\n\t\tnode.specified = true;\n\t\tnode.namespaceURI = validated[0];\n\t\tnode.prefix = validated[1];\n\t\tnode.localName = validated[2];\n\t\treturn node;\n\t},\n};\n_extends(Document, Node);\n\nfunction Element(symbol) {\n\tcheckSymbol(symbol);\n\n\tthis._nsMap = Object.create(null);\n}\nElement.prototype = {\n\tnodeType: ELEMENT_NODE,\n\t/**\n\t * The attributes of this element.\n\t *\n\t * @type {NamedNodeMap | null}\n\t */\n\tattributes: null,\n\tgetQualifiedName: function () {\n\t\treturn this.prefix ? this.prefix + ':' + this.localName : this.localName;\n\t},\n\t_isInHTMLDocumentAndNamespace: function () {\n\t\treturn this.ownerDocument.type === 'html' && this.namespaceURI === NAMESPACE.HTML;\n\t},\n\t/**\n\t * Implementaton of Level2 Core function hasAttributes.\n\t *\n\t * @returns {boolean}\n\t * True if attribute list is not empty.\n\t * @see https://www.w3.org/TR/DOM-Level-2-Core/#core-ID-NodeHasAttrs\n\t */\n\thasAttributes: function () {\n\t\treturn !!(this.attributes && this.attributes.length);\n\t},\n\thasAttribute: function (name) {\n\t\treturn !!this.getAttributeNode(name);\n\t},\n\t/**\n\t * Returns element’s first attribute whose qualified name is `name`, and `null`\n\t * if there is no such attribute.\n\t *\n\t * @param {string} name\n\t * @returns {string | null}\n\t */\n\tgetAttribute: function (name) {\n\t\tvar attr = this.getAttributeNode(name);\n\t\treturn attr ? attr.value : null;\n\t},\n\tgetAttributeNode: function (name) {\n\t\tif (this._isInHTMLDocumentAndNamespace()) {\n\t\t\tname = name.toLowerCase();\n\t\t}\n\t\treturn this.attributes.getNamedItem(name);\n\t},\n\t/**\n\t * Sets the value of element’s first attribute whose qualified name is qualifiedName to value.\n\t *\n\t * @param {string} name\n\t * @param {string} value\n\t */\n\tsetAttribute: function (name, value) {\n\t\tif (this._isInHTMLDocumentAndNamespace()) {\n\t\t\tname = name.toLowerCase();\n\t\t}\n\t\tvar attr = this.getAttributeNode(name);\n\t\tif (attr) {\n\t\t\tattr.value = attr.nodeValue = '' + value;\n\t\t} else {\n\t\t\tattr = this.ownerDocument._createAttribute(name);\n\t\t\tattr.value = attr.nodeValue = '' + value;\n\t\t\tthis.setAttributeNode(attr);\n\t\t}\n\t},\n\tremoveAttribute: function (name) {\n\t\tvar attr = this.getAttributeNode(name);\n\t\tattr && this.removeAttributeNode(attr);\n\t},\n\tsetAttributeNode: function (newAttr) {\n\t\treturn this.attributes.setNamedItem(newAttr);\n\t},\n\tsetAttributeNodeNS: function (newAttr) {\n\t\treturn this.attributes.setNamedItemNS(newAttr);\n\t},\n\tremoveAttributeNode: function (oldAttr) {\n\t\t//console.log(this == oldAttr.ownerElement)\n\t\treturn this.attributes.removeNamedItem(oldAttr.nodeName);\n\t},\n\t//get real attribute name,and remove it by removeAttributeNode\n\tremoveAttributeNS: function (namespaceURI, localName) {\n\t\tvar old = this.getAttributeNodeNS(namespaceURI, localName);\n\t\told && this.removeAttributeNode(old);\n\t},\n\n\thasAttributeNS: function (namespaceURI, localName) {\n\t\treturn this.getAttributeNodeNS(namespaceURI, localName) != null;\n\t},\n\t/**\n\t * Returns element’s attribute whose namespace is `namespaceURI` and local name is\n\t * `localName`,\n\t * or `null` if there is no such attribute.\n\t *\n\t * @param {string} namespaceURI\n\t * @param {string} localName\n\t * @returns {string | null}\n\t */\n\tgetAttributeNS: function (namespaceURI, localName) {\n\t\tvar attr = this.getAttributeNodeNS(namespaceURI, localName);\n\t\treturn attr ? attr.value : null;\n\t},\n\t/**\n\t * Sets the value of element’s attribute whose namespace is `namespaceURI` and local name is\n\t * `localName` to value.\n\t *\n\t * @param {string} namespaceURI\n\t * @param {string} qualifiedName\n\t * @param {string} value\n\t * @see https://dom.spec.whatwg.org/#dom-element-setattributens\n\t */\n\tsetAttributeNS: function (namespaceURI, qualifiedName, value) {\n\t\tvar validated = validateAndExtract(namespaceURI, qualifiedName);\n\t\tvar localName = validated[2];\n\t\tvar attr = this.getAttributeNodeNS(namespaceURI, localName);\n\t\tif (attr) {\n\t\t\tattr.value = attr.nodeValue = '' + value;\n\t\t} else {\n\t\t\tattr = this.ownerDocument.createAttributeNS(namespaceURI, qualifiedName);\n\t\t\tattr.value = attr.nodeValue = '' + value;\n\t\t\tthis.setAttributeNode(attr);\n\t\t}\n\t},\n\tgetAttributeNodeNS: function (namespaceURI, localName) {\n\t\treturn this.attributes.getNamedItemNS(namespaceURI, localName);\n\t},\n\n\t/**\n\t * Returns a LiveNodeList of all child elements which have **all** of the given class name(s).\n\t *\n\t * Returns an empty list if `classNames` is an empty string or only contains HTML white space\n\t * characters.\n\t *\n\t * Warning: This returns a live LiveNodeList.\n\t * Changes in the DOM will reflect in the array as the changes occur.\n\t * If an element selected by this array no longer qualifies for the selector,\n\t * it will automatically be removed. Be aware of this for iteration purposes.\n\t *\n\t * @param {string} classNames\n\t * Is a string representing the class name(s) to match; multiple class names are separated by\n\t * (ASCII-)whitespace.\n\t * @see https://developer.mozilla.org/en-US/docs/Web/API/Element/getElementsByClassName\n\t * @see https://developer.mozilla.org/en-US/docs/Web/API/Document/getElementsByClassName\n\t * @see https://dom.spec.whatwg.org/#concept-getelementsbyclassname\n\t */\n\tgetElementsByClassName: function (classNames) {\n\t\tvar classNamesSet = toOrderedSet(classNames);\n\t\treturn new LiveNodeList(this, function (base) {\n\t\t\tvar ls = [];\n\t\t\tif (classNamesSet.length > 0) {\n\t\t\t\t_visitNode(base, function (node) {\n\t\t\t\t\tif (node !== base && node.nodeType === ELEMENT_NODE) {\n\t\t\t\t\t\tvar nodeClassNames = node.getAttribute('class');\n\t\t\t\t\t\t// can be null if the attribute does not exist\n\t\t\t\t\t\tif (nodeClassNames) {\n\t\t\t\t\t\t\t// before splitting and iterating just compare them for the most common case\n\t\t\t\t\t\t\tvar matches = classNames === nodeClassNames;\n\t\t\t\t\t\t\tif (!matches) {\n\t\t\t\t\t\t\t\tvar nodeClassNamesSet = toOrderedSet(nodeClassNames);\n\t\t\t\t\t\t\t\tmatches = classNamesSet.every(arrayIncludes(nodeClassNamesSet));\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tif (matches) {\n\t\t\t\t\t\t\t\tls.push(node);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t}\n\t\t\treturn ls;\n\t\t});\n\t},\n\n\t/**\n\t * Returns a LiveNodeList of elements with the given qualifiedName.\n\t * Searching for all descendants can be done by passing `*` as `qualifiedName`.\n\t *\n\t * All descendants of the specified element are searched, but not the element itself.\n\t * The returned list is live, which means it updates itself with the DOM tree automatically.\n\t * Therefore, there is no need to call `Element.getElementsByTagName()`\n\t * with the same element and arguments repeatedly if the DOM changes in between calls.\n\t *\n\t * When called on an HTML element in an HTML document,\n\t * `getElementsByTagName` lower-cases the argument before searching for it.\n\t * This is undesirable when trying to match camel-cased SVG elements (such as\n\t * `<linearGradient>`) in an HTML document.\n\t * Instead, use `Element.getElementsByTagNameNS()`,\n\t * which preserves the capitalization of the tag name.\n\t *\n\t * `Element.getElementsByTagName` is similar to `Document.getElementsByTagName()`,\n\t * except that it only searches for elements that are descendants of the specified element.\n\t *\n\t * @param {string} qualifiedName\n\t * @returns {LiveNodeList}\n\t * @see https://developer.mozilla.org/en-US/docs/Web/API/Element/getElementsByTagName\n\t * @see https://dom.spec.whatwg.org/#concept-getelementsbytagname\n\t */\n\tgetElementsByTagName: function (qualifiedName) {\n\t\tvar isHTMLDocument = (this.nodeType === DOCUMENT_NODE ? this : this.ownerDocument).type === 'html';\n\t\tvar lowerQualifiedName = qualifiedName.toLowerCase();\n\t\treturn new LiveNodeList(this, function (base) {\n\t\t\tvar ls = [];\n\t\t\t_visitNode(base, function (node) {\n\t\t\t\tif (node === base || node.nodeType !== ELEMENT_NODE) {\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tif (qualifiedName === '*') {\n\t\t\t\t\tls.push(node);\n\t\t\t\t} else {\n\t\t\t\t\tvar nodeQualifiedName = node.getQualifiedName();\n\t\t\t\t\tvar matchingQName = isHTMLDocument && node.namespaceURI === NAMESPACE.HTML ? lowerQualifiedName : qualifiedName;\n\t\t\t\t\tif (nodeQualifiedName === matchingQName) {\n\t\t\t\t\t\tls.push(node);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t});\n\t\t\treturn ls;\n\t\t});\n\t},\n\tgetElementsByTagNameNS: function (namespaceURI, localName) {\n\t\treturn new LiveNodeList(this, function (base) {\n\t\t\tvar ls = [];\n\t\t\t_visitNode(base, function (node) {\n\t\t\t\tif (\n\t\t\t\t\tnode !== base &&\n\t\t\t\t\tnode.nodeType === ELEMENT_NODE &&\n\t\t\t\t\t(namespaceURI === '*' || node.namespaceURI === namespaceURI) &&\n\t\t\t\t\t(localName === '*' || node.localName == localName)\n\t\t\t\t) {\n\t\t\t\t\tls.push(node);\n\t\t\t\t}\n\t\t\t});\n\t\t\treturn ls;\n\t\t});\n\t},\n};\nDocument.prototype.getElementsByClassName = Element.prototype.getElementsByClassName;\nDocument.prototype.getElementsByTagName = Element.prototype.getElementsByTagName;\nDocument.prototype.getElementsByTagNameNS = Element.prototype.getElementsByTagNameNS;\n\n_extends(Element, Node);\nfunction Attr(symbol) {\n\tcheckSymbol(symbol);\n\n\tthis.namespaceURI = null;\n\tthis.prefix = null;\n\tthis.ownerElement = null;\n}\nAttr.prototype.nodeType = ATTRIBUTE_NODE;\n_extends(Attr, Node);\n\nfunction CharacterData(symbol) {\n\tcheckSymbol(symbol);\n}\nCharacterData.prototype = {\n\tdata: '',\n\tsubstringData: function (offset, count) {\n\t\treturn this.data.substring(offset, offset + count);\n\t},\n\tappendData: function (text) {\n\t\ttext = this.data + text;\n\t\tthis.nodeValue = this.data = text;\n\t\tthis.length = text.length;\n\t},\n\tinsertData: function (offset, text) {\n\t\tthis.replaceData(offset, 0, text);\n\t},\n\tdeleteData: function (offset, count) {\n\t\tthis.replaceData(offset, count, '');\n\t},\n\treplaceData: function (offset, count, text) {\n\t\tvar start = this.data.substring(0, offset);\n\t\tvar end = this.data.substring(offset + count);\n\t\ttext = start + text + end;\n\t\tthis.nodeValue = this.data = text;\n\t\tthis.length = text.length;\n\t},\n};\n_extends(CharacterData, Node);\nfunction Text(symbol) {\n\tcheckSymbol(symbol);\n}\nText.prototype = {\n\tnodeName: '#text',\n\tnodeType: TEXT_NODE,\n\tsplitText: function (offset) {\n\t\tvar text = this.data;\n\t\tvar newText = text.substring(offset);\n\t\ttext = text.substring(0, offset);\n\t\tthis.data = this.nodeValue = text;\n\t\tthis.length = text.length;\n\t\tvar newNode = this.ownerDocument.createTextNode(newText);\n\t\tif (this.parentNode) {\n\t\t\tthis.parentNode.insertBefore(newNode, this.nextSibling);\n\t\t}\n\t\treturn newNode;\n\t},\n};\n_extends(Text, CharacterData);\nfunction Comment(symbol) {\n\tcheckSymbol(symbol);\n}\nComment.prototype = {\n\tnodeName: '#comment',\n\tnodeType: COMMENT_NODE,\n};\n_extends(Comment, CharacterData);\n\nfunction CDATASection(symbol) {\n\tcheckSymbol(symbol);\n}\nCDATASection.prototype = {\n\tnodeName: '#cdata-section',\n\tnodeType: CDATA_SECTION_NODE,\n};\n_extends(CDATASection, Text);\n\n/**\n * @class DocumentType\n * @augments Node\n * @property {string} name\n * The doctype name, stored verbatim. Declared `readonly` by the WHATWG DOM spec; xmldom does\n * not enforce this constraint — direct property writes succeed and the written value is\n * serialized verbatim. When serialized with `requireWellFormed: true`, the serializer\n * validates the value against the XML `Name` production and throws `InvalidStateError` if it\n * does not match.\n * @property {string} publicId\n * The external subset public identifier, stored verbatim (including surrounding quotes).\n * Declared `readonly` by the WHATWG DOM spec; xmldom does not enforce this constraint —\n * direct property writes succeed and the written value is serialized verbatim.\n * When serialized with `requireWellFormed: true`, the serializer validates the value against\n * the XML `PubidLiteral` production and throws `InvalidStateError` if it does not match.\n * @property {string} systemId\n * The external subset system identifier, stored verbatim (including surrounding quotes).\n * Declared `readonly` by the WHATWG DOM spec; xmldom does not enforce this constraint —\n * direct property writes succeed and the written value is serialized verbatim.\n * When serialized with `requireWellFormed: true`, the serializer validates the value against\n * the XML `SystemLiteral` production and throws `InvalidStateError` if it does not match.\n * @property {string} internalSubset\n * The internal subset string (the raw content between `[` and `]`), or an empty string.\n * Declared `readonly` by the WHATWG DOM spec; xmldom does not enforce this constraint —\n * direct property writes succeed and the written value is serialized verbatim.\n * When serialized with `requireWellFormed: true`, the serializer throws `InvalidStateError`\n * if the value contains `\"]>\"`.\n * @see https://developer.mozilla.org/docs/Web/API/DocumentType MDN\n * @see https://dom.spec.whatwg.org/#interface-documenttype WHATWG DOM\n * @prettierignore\n */\nfunction DocumentType(symbol) {\n\tcheckSymbol(symbol);\n}\nDocumentType.prototype.nodeType = DOCUMENT_TYPE_NODE;\n_extends(DocumentType, Node);\n\nfunction Notation(symbol) {\n\tcheckSymbol(symbol);\n}\nNotation.prototype.nodeType = NOTATION_NODE;\n_extends(Notation, Node);\n\nfunction Entity(symbol) {\n\tcheckSymbol(symbol);\n}\nEntity.prototype.nodeType = ENTITY_NODE;\n_extends(Entity, Node);\n\n/**\n * Represents an EntityReference node, serialized as `&nodeName;`.\n *\n * `nodeName` is the referenced entity's name, stored verbatim. When serialized with\n * `requireWellFormed: true`, the serializer validates `nodeName` against the XML `Name`\n * production and throws `InvalidStateError` if it does not match; without that option the name\n * is emitted verbatim between `&` and `;`.\n *\n * __This implementation differs from the specification:__ xmldom does not expand entities —\n * the parser resolves entity references inline and never constructs `EntityReference` nodes,\n * so the only producer is {@link Document#createEntityReference}.\n *\n * @class\n * @see https://www.w3.org/TR/xml/#NT-Name\n */\nfunction EntityReference(symbol) {\n\tcheckSymbol(symbol);\n}\nEntityReference.prototype.nodeType = ENTITY_REFERENCE_NODE;\n_extends(EntityReference, Node);\n\nfunction DocumentFragment(symbol) {\n\tcheckSymbol(symbol);\n}\nDocumentFragment.prototype.nodeName = '#document-fragment';\nDocumentFragment.prototype.nodeType = DOCUMENT_FRAGMENT_NODE;\n_extends(DocumentFragment, Node);\n\nfunction ProcessingInstruction(symbol) {\n\tcheckSymbol(symbol);\n}\nProcessingInstruction.prototype.nodeType = PROCESSING_INSTRUCTION_NODE;\n_extends(ProcessingInstruction, CharacterData);\nfunction XMLSerializer() {}\n/**\n * Returns the result of serializing `node` to XML.\n *\n * When `options.requireWellFormed` is `true`, the serializer throws `InvalidStateError` for\n * content that would produce ill-formed XML (e.g. CDATASection data containing `\"]]>\"`, Text\n * data containing characters outside the XML Char production, or a Document with no\n * `documentElement`).\n *\n * When `options.splitCDATASections` is `false`, CDATASection data is emitted verbatim even\n * when it contains `\"]]>\"`. When `true` (the default), `\"]]>\"` sequences are split across\n * concatenated CDATA sections — this behavior is **deprecated** and will be removed in the\n * next breaking release. Callers should migrate to `{ requireWellFormed: true }`, which throws\n * `InvalidStateError` instead of transforming.\n *\n * __This implementation differs from the specification:__ - CDATASection serialization is not\n * specified by W3C DOM Parsing or WHATWG DOM Parsing (see\n * {@link https://github.com/w3c/DOM-Parsing/issues/38 w3c/DOM-Parsing#38}).\n * When `splitCDATASections` is `true` (the default), `\"]]>\"` sequences in CDATASection data\n * are split across concatenated CDATA sections — this mechanism is derived from DOM Level 3\n * Core and is **deprecated**. The split mechanics will be removed in the next breaking\n * release. Callers that rely on this behavior should migrate to `{ requireWellFormed: true }`.\n * - W3C DOM Parsing §3.2.1.1 requires well-formedness checks on Element `localName`s,\n * prefixes,\n * and attribute serialization (duplicate attributes, namespace declarations, attribute value\n * characters) when `requireWellFormed` is `true`. Element and attribute qualified names (which\n * cover the namespace prefix) are validated against the XML `QName` production; the remaining\n * §3.2.1.1 checks (duplicate attributes, namespace-declaration consistency) and creation-time\n * name validation are **not implemented** in this release — see the tracking issue filed\n * against the next breaking milestone.\n *\n * @param {Node} node\n * @param {Object | function} [options]\n * Options object, or a legacy nodeFilter function (backward compatible).\n * @param {boolean} [options.requireWellFormed=false]\n * When `true`, throws `InvalidStateError` for content that would produce ill-formed XML.\n * @param {boolean} [options.splitCDATASections=true]\n * When `true` (default), splits `\"]]>\"` sequences in CDATASection data across concatenated\n * CDATA sections. **Deprecated** — will be removed in the next breaking release.\n * @param {function} [options.nodeFilter]\n * A filter function applied to each node before serialization.\n * @returns {string}\n * @throws {DOMException}\n * With name `InvalidStateError` when `requireWellFormed` is `true` and any of the following\n * conditions hold:\n * - an Element's qualified name (including any namespace prefix) is not a valid XML QName\n * - an attribute's qualified name (including a synthesized `xmlns:` namespace declaration) is\n * not a valid XML QName\n * - CDATASection data contains `\"]]>\"`\n * - Text data contains characters outside the XML Char production\n * - a Comment node's data contains `--` anywhere or ends with `-`\n * - a ProcessingInstruction's target is not a valid XML `NCName` (a `Name` with no colon) or is\n * an ASCII case-insensitive match for `\"xml\"`, or its data contains `?>` or characters outside\n * the XML Char production\n * - a DocumentType's `name` is not a valid XML `Name` (XML 1.0 production [5])\n * - a DocumentType's `publicId` is non-empty and does not match the XML `PubidLiteral`\n * production (W3C DOM Parsing §3.2.1.3; XML 1.0 production [12])\n * - a DocumentType's `systemId` is non-empty and does not match the XML `SystemLiteral`\n * production (W3C DOM Parsing §3.2.1.3; XML 1.0 production [11])\n * - a DocumentType's `internalSubset` contains `\"]>\"`\n * - an EntityReference's `nodeName` is not a valid XML `Name` (XML 1.0 production [5])\n * - the Document has no `documentElement`\n * @see https://developer.mozilla.org/docs/Web/API/XMLSerializer/serializeToString\n * @see https://html.spec.whatwg.org/#dom-xmlserializer-serializetostring\n * @see https://github.com/w3c/DOM-Parsing/issues/84\n * @prettierignore\n */\nXMLSerializer.prototype.serializeToString = function (node, options) {\n\treturn nodeSerializeToString.call(node, options);\n};\nNode.prototype.toString = nodeSerializeToString;\nfunction nodeSerializeToString(options) {\n\t// Normalize the user-supplied options into a single internal opts object so that the\n\t// internal serializer always works with a consistent shape rather than positional flags.\n\tvar opts;\n\tif (typeof options === 'function') {\n\t\topts = { requireWellFormed: false, splitCDATASections: true, nodeFilter: options };\n\t} else if (options != null) {\n\t\topts = {\n\t\t\trequireWellFormed: !!options.requireWellFormed,\n\t\t\tsplitCDATASections: options.splitCDATASections !== false,\n\t\t\tnodeFilter: options.nodeFilter || null,\n\t\t};\n\t} else {\n\t\topts = { requireWellFormed: false, splitCDATASections: true, nodeFilter: null };\n\t}\n\tvar buf = [];\n\tvar refNode = (this.nodeType === DOCUMENT_NODE && this.documentElement) || this;\n\tvar prefix = refNode.prefix;\n\tvar uri = refNode.namespaceURI;\n\n\tif (uri && prefix == null) {\n\t\tvar prefix = refNode.lookupPrefix(uri);\n\t\tif (prefix == null) {\n\t\t\tvar visibleNamespaces = [\n\t\t\t\t{ namespace: uri, prefix: null },\n\t\t\t\t//{namespace:uri,prefix:''}\n\t\t\t];\n\t\t}\n\t}\n\tserializeToString(this, buf, visibleNamespaces, opts);\n\treturn buf.join('');\n}\n\nfunction needNamespaceDefine(node, isHTML, visibleNamespaces) {\n\tvar prefix = node.prefix || '';\n\tvar uri = node.namespaceURI;\n\t// According to [Namespaces in XML 1.0](https://www.w3.org/TR/REC-xml-names/#ns-using) ,\n\t// and more specifically https://www.w3.org/TR/REC-xml-names/#nsc-NoPrefixUndecl :\n\t// > In a namespace declaration for a prefix [...], the attribute value MUST NOT be empty.\n\t// in a similar manner [Namespaces in XML 1.1](https://www.w3.org/TR/xml-names11/#ns-using)\n\t// and more specifically https://www.w3.org/TR/xml-names11/#nsc-NSDeclared :\n\t// > [...] Furthermore, the attribute value [...] must not be an empty string.\n\t// so serializing empty namespace value like xmlns:ds=\"\" would produce an invalid XML document.\n\tif (!uri) {\n\t\treturn false;\n\t}\n\tif ((prefix === 'xml' && uri === NAMESPACE.XML) || uri === NAMESPACE.XMLNS) {\n\t\treturn false;\n\t}\n\n\tvar i = visibleNamespaces.length;\n\twhile (i--) {\n\t\tvar ns = visibleNamespaces[i];\n\t\t// get namespace prefix\n\t\tif (ns.prefix === prefix) {\n\t\t\treturn ns.namespace !== uri;\n\t\t}\n\t}\n\treturn true;\n}\n/**\n * Literal whitespace other than space that appear in attribute values are serialized as\n * their entity references, so they will be preserved.\n * (In contrast to whitespace literals in the input which are normalized to spaces).\n *\n * Well-formed constraint: No < in Attribute Values:\n * > The replacement text of any entity referred to directly or indirectly\n * > in an attribute value must not contain a <.\n *\n * @see https://www.w3.org/TR/xml11/#CleanAttrVals\n * @see https://www.w3.org/TR/xml11/#NT-AttValue\n * @see https://www.w3.org/TR/xml11/#AVNormalize\n * @see https://w3c.github.io/DOM-Parsing/#serializing-an-element-s-attributes\n * @prettierignore\n */\nfunction addSerializedAttribute(buf, qualifiedName, value, requireWellFormed) {\n\tif (requireWellFormed && !g.QName_exact.test(qualifiedName)) {\n\t\tthrow new DOMException(\n\t\t\t'The attribute name \"' + qualifiedName + '\" is not a valid XML QName',\n\t\t\tDOMExceptionName.InvalidStateError\n\t\t);\n\t}\n\tbuf.push(' ', qualifiedName, '=\"', value.replace(/[<>&\"\\t\\n\\r]/g, _xmlEncoder), '\"');\n}\n\nfunction serializeToString(node, buf, visibleNamespaces, opts) {\n\tif (!visibleNamespaces) {\n\t\tvisibleNamespaces = [];\n\t}\n\tvar nodeFilter = opts.nodeFilter;\n\tvar requireWellFormed = opts.requireWellFormed;\n\tvar splitCDATASections = opts.splitCDATASections;\n\tvar doc = node.nodeType === DOCUMENT_NODE ? node : node.ownerDocument;\n\tvar isHTML = doc.type === 'html';\n\n\twalkDOM(\n\t\tnode,\n\t\t{ ns: visibleNamespaces },\n\t\t{\n\t\t\tenter: function (n, ctx) {\n\t\t\t\tvar namespaces = ctx.ns;\n\n\t\t\t\tif (nodeFilter) {\n\t\t\t\t\tn = nodeFilter(n);\n\t\t\t\t\tif (n) {\n\t\t\t\t\t\tif (typeof n == 'string') {\n\t\t\t\t\t\t\tbuf.push(n);\n\t\t\t\t\t\t\treturn null;\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\treturn null;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tswitch (n.nodeType) {\n\t\t\t\t\tcase ELEMENT_NODE:\n\t\t\t\t\t\tvar attrs = n.attributes;\n\t\t\t\t\t\tvar len = attrs.length;\n\t\t\t\t\t\tvar nodeName = n.tagName;\n\n\t\t\t\t\t\tvar prefixedNodeName = nodeName;\n\t\t\t\t\t\tif (!isHTML && !n.prefix && n.namespaceURI) {\n\t\t\t\t\t\t\tvar defaultNS;\n\t\t\t\t\t\t\t// lookup current default ns from `xmlns` attribute\n\t\t\t\t\t\t\tfor (var ai = 0; ai < attrs.length; ai++) {\n\t\t\t\t\t\t\t\tif (attrs.item(ai).name === 'xmlns') {\n\t\t\t\t\t\t\t\t\tdefaultNS = attrs.item(ai).value;\n\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tif (!defaultNS) {\n\t\t\t\t\t\t\t\t// lookup current default ns in visibleNamespaces\n\t\t\t\t\t\t\t\tfor (var nsi = namespaces.length - 1; nsi >= 0; nsi--) {\n\t\t\t\t\t\t\t\t\tvar nsEntry = namespaces[nsi];\n\t\t\t\t\t\t\t\t\tif (nsEntry.prefix === '' && nsEntry.namespace === n.namespaceURI) {\n\t\t\t\t\t\t\t\t\t\tdefaultNS = nsEntry.namespace;\n\t\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tif (defaultNS !== n.namespaceURI) {\n\t\t\t\t\t\t\t\tfor (var nsi = namespaces.length - 1; nsi >= 0; nsi--) {\n\t\t\t\t\t\t\t\t\tvar nsEntry = namespaces[nsi];\n\t\t\t\t\t\t\t\t\tif (nsEntry.namespace === n.namespaceURI) {\n\t\t\t\t\t\t\t\t\t\tif (nsEntry.prefix) {\n\t\t\t\t\t\t\t\t\t\t\tprefixedNodeName = nsEntry.prefix + ':' + nodeName;\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tif (requireWellFormed && !g.QName_exact.test(prefixedNodeName)) {\n\t\t\t\t\t\t\tthrow new DOMException(\n\t\t\t\t\t\t\t\t'The element name \"' + prefixedNodeName + '\" is not a valid XML QName',\n\t\t\t\t\t\t\t\tDOMExceptionName.InvalidStateError\n\t\t\t\t\t\t\t);\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tbuf.push('<', prefixedNodeName);\n\n\t\t\t\t\t\t// Build a fresh namespace snapshot for this element's children.\n\t\t\t\t\t\t// The slice prevents sibling elements from inheriting each other's declarations.\n\t\t\t\t\t\tvar childNamespaces = namespaces.slice();\n\n\t\t\t\t\t\tfor (var i = 0; i < len; i++) {\n\t\t\t\t\t\t\t// add namespaces for attributes\n\t\t\t\t\t\t\tvar attr = attrs.item(i);\n\t\t\t\t\t\t\tif (attr.prefix == 'xmlns') {\n\t\t\t\t\t\t\t\tchildNamespaces.push({\n\t\t\t\t\t\t\t\t\tprefix: attr.localName,\n\t\t\t\t\t\t\t\t\tnamespace: attr.value,\n\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t} else if (attr.nodeName == 'xmlns') {\n\t\t\t\t\t\t\t\tchildNamespaces.push({ prefix: '', namespace: attr.value });\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tfor (var i = 0; i < len; i++) {\n\t\t\t\t\t\t\tvar attr = attrs.item(i);\n\t\t\t\t\t\t\tif (needNamespaceDefine(attr, isHTML, childNamespaces)) {\n\t\t\t\t\t\t\t\tvar attrPrefix = attr.prefix || '';\n\t\t\t\t\t\t\t\tvar uri = attr.namespaceURI;\n\t\t\t\t\t\t\t\taddSerializedAttribute(buf, attrPrefix ? 'xmlns:' + attrPrefix : 'xmlns', uri, requireWellFormed);\n\t\t\t\t\t\t\t\tchildNamespaces.push({ prefix: attrPrefix, namespace: uri });\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t// Apply nodeFilter and serialize the attribute.\n\t\t\t\t\t\t\tvar filteredAttr = nodeFilter ? nodeFilter(attr) : attr;\n\t\t\t\t\t\t\tif (filteredAttr) {\n\t\t\t\t\t\t\t\tif (typeof filteredAttr === 'string') {\n\t\t\t\t\t\t\t\t\tbuf.push(filteredAttr);\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\taddSerializedAttribute(buf, filteredAttr.name, filteredAttr.value, requireWellFormed);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t// add namespace for current node\n\t\t\t\t\t\tif (nodeName === prefixedNodeName && needNamespaceDefine(n, isHTML, childNamespaces)) {\n\t\t\t\t\t\t\tvar nodePrefix = n.prefix || '';\n\t\t\t\t\t\t\tvar uri = n.namespaceURI;\n\t\t\t\t\t\t\taddSerializedAttribute(buf, nodePrefix ? 'xmlns:' + nodePrefix : 'xmlns', uri, requireWellFormed);\n\t\t\t\t\t\t\tchildNamespaces.push({ prefix: nodePrefix, namespace: uri });\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t// in XML elements can be closed when they have no children\n\t\t\t\t\t\tvar canCloseTag = !n.firstChild;\n\t\t\t\t\t\tif (canCloseTag && (isHTML || n.namespaceURI === NAMESPACE.HTML)) {\n\t\t\t\t\t\t\t// in HTML (doc or ns) only void elements can be closed right away\n\t\t\t\t\t\t\tcanCloseTag = isHTMLVoidElement(nodeName);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (canCloseTag) {\n\t\t\t\t\t\t\tbuf.push('/>');\n\t\t\t\t\t\t\t// Self-closing: no children and no closing tag needed from exit.\n\t\t\t\t\t\t\treturn null;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tbuf.push('>');\n\n\t\t\t\t\t\t// HTML raw text elements: serialize children as raw data without further descent.\n\t\t\t\t\t\tif (isHTML && isHTMLRawTextElement(nodeName)) {\n\t\t\t\t\t\t\tvar child = n.firstChild;\n\t\t\t\t\t\t\twhile (child) {\n\t\t\t\t\t\t\t\tif (child.data) {\n\t\t\t\t\t\t\t\t\tbuf.push(child.data);\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tserializeToString(child, buf, childNamespaces.slice(), opts);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tchild = child.nextSibling;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tbuf.push('</', prefixedNodeName, '>');\n\t\t\t\t\t\t\t// Children handled manually above; prevent walkDOM from also traversing them.\n\t\t\t\t\t\t\treturn null;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t// Return child context so walkDOM descends; exit will emit the closing tag.\n\t\t\t\t\t\treturn { ns: childNamespaces, tag: prefixedNodeName };\n\t\t\t\t\tcase DOCUMENT_NODE:\n\t\t\t\t\tcase DOCUMENT_FRAGMENT_NODE:\n\t\t\t\t\t\tif (requireWellFormed && n.nodeType === DOCUMENT_NODE && n.documentElement == null) {\n\t\t\t\t\t\t\tthrow new DOMException('The Document has no documentElement', DOMExceptionName.InvalidStateError);\n\t\t\t\t\t\t}\n\t\t\t\t\t\t// Pass namespaces through; each child element will slice independently.\n\t\t\t\t\t\treturn { ns: namespaces };\n\t\t\t\t\tcase ATTRIBUTE_NODE:\n\t\t\t\t\t\taddSerializedAttribute(buf, n.name, n.value, requireWellFormed);\n\t\t\t\t\t\treturn null;\n\t\t\t\t\tcase TEXT_NODE:\n\t\t\t\t\t\t/*\n\t\t\t\t\t\t * The ampersand character (&) and the left angle bracket (<) must not appear in their literal form,\n\t\t\t\t\t\t * except when used as markup delimiters, or within a comment, a processing instruction,\n\t\t\t\t\t\t * or a CDATA section.\n\t\t\t\t\t\t * If they are needed elsewhere, they must be escaped using either numeric character\n\t\t\t\t\t\t * references or the strings `&amp;` and `&lt;` respectively.\n\t\t\t\t\t\t * The right angle bracket (>) may be represented using the string \" &gt; \",\n\t\t\t\t\t\t * and must, for compatibility, be escaped using either `&gt;`,\n\t\t\t\t\t\t * or a character reference when it appears in the string `]]>` in content,\n\t\t\t\t\t\t * when that string is not marking the end of a CDATA section.\n\t\t\t\t\t\t *\n\t\t\t\t\t\t * In the content of elements, character data is any string of characters which does not\n\t\t\t\t\t\t * contain the start-delimiter of any markup and does not include the CDATA-section-close\n\t\t\t\t\t\t * delimiter, `]]>`.\n\t\t\t\t\t\t *\n\t\t\t\t\t\t * @see https://www.w3.org/TR/xml/#NT-CharData\n\t\t\t\t\t\t * @see https://w3c.github.io/DOM-Parsing/#xml-serializing-a-text-node\n\t\t\t\t\t\t */\n\t\t\t\t\t\tif (requireWellFormed && g.InvalidChar.test(n.data)) {\n\t\t\t\t\t\t\tthrow new DOMException(\n\t\t\t\t\t\t\t\t'The Text node data contains characters outside the XML Char production',\n\t\t\t\t\t\t\t\tDOMExceptionName.InvalidStateError\n\t\t\t\t\t\t\t);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tbuf.push(n.data.replace(/[<&>]/g, _xmlEncoder));\n\t\t\t\t\t\treturn null;\n\t\t\t\t\tcase CDATA_SECTION_NODE:\n\t\t\t\t\t\tif (requireWellFormed && n.data.indexOf(']]>') !== -1) {\n\t\t\t\t\t\t\tthrow new DOMException('The CDATASection data contains \"]]>\"', DOMExceptionName.InvalidStateError);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (splitCDATASections) {\n\t\t\t\t\t\t\tbuf.push(g.CDATA_START, n.data.replace(/]]>/g, ']]]]><![CDATA[>'), g.CDATA_END);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tbuf.push(g.CDATA_START, n.data, g.CDATA_END);\n\t\t\t\t\t\t}\n\t\t\t\t\t\treturn null;\n\t\t\t\t\tcase COMMENT_NODE:\n\t\t\t\t\t\tif (requireWellFormed) {\n\t\t\t\t\t\t\tif (g.InvalidChar.test(n.data)) {\n\t\t\t\t\t\t\t\tthrow new DOMException(\n\t\t\t\t\t\t\t\t\t'The comment node data contains characters outside the XML Char production',\n\t\t\t\t\t\t\t\t\tDOMExceptionName.InvalidStateError\n\t\t\t\t\t\t\t\t);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tif (n.data.indexOf('--') !== -1 || n.data[n.data.length - 1] === '-') {\n\t\t\t\t\t\t\t\tthrow new DOMException(\n\t\t\t\t\t\t\t\t\t'The comment node data contains \"--\" or ends with \"-\"',\n\t\t\t\t\t\t\t\t\tDOMExceptionName.InvalidStateError\n\t\t\t\t\t\t\t\t);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tbuf.push(g.COMMENT_START, n.data, g.COMMENT_END);\n\t\t\t\t\t\treturn null;\n\t\t\t\t\tcase DOCUMENT_TYPE_NODE:\n\t\t\t\t\t\tvar pubid = n.publicId;\n\t\t\t\t\t\tvar sysid = n.systemId;\n\t\t\t\t\t\tif (requireWellFormed) {\n\t\t\t\t\t\t\tif (!g.Name_exact.test(n.name)) {\n\t\t\t\t\t\t\t\tthrow new DOMException(\n\t\t\t\t\t\t\t\t\t'The doctype name \"' + n.name + '\" is not a valid XML Name',\n\t\t\t\t\t\t\t\t\tDOMExceptionName.InvalidStateError\n\t\t\t\t\t\t\t\t);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tif (pubid && !g.PubidLiteral_match.test(pubid)) {\n\t\t\t\t\t\t\t\tthrow new DOMException('DocumentType publicId is not a valid PubidLiteral', DOMExceptionName.InvalidStateError);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tif (sysid && sysid !== '.' && !g.SystemLiteral_match.test(sysid)) {\n\t\t\t\t\t\t\t\tthrow new DOMException('DocumentType systemId is not a valid SystemLiteral', DOMExceptionName.InvalidStateError);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tif (n.internalSubset && n.internalSubset.indexOf(']>') !== -1) {\n\t\t\t\t\t\t\t\tthrow new DOMException('DocumentType internalSubset contains \"]>\"', DOMExceptionName.InvalidStateError);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tbuf.push(g.DOCTYPE_DECL_START, ' ', n.name);\n\t\t\t\t\t\tif (pubid) {\n\t\t\t\t\t\t\tbuf.push(' ', g.PUBLIC, ' ', pubid);\n\t\t\t\t\t\t\tif (sysid && sysid !== '.') {\n\t\t\t\t\t\t\t\tbuf.push(' ', sysid);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} else if (sysid && sysid !== '.') {\n\t\t\t\t\t\t\tbuf.push(' ', g.SYSTEM, ' ', sysid);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (n.internalSubset) {\n\t\t\t\t\t\t\tbuf.push(' [', n.internalSubset, ']');\n\t\t\t\t\t\t}\n\t\t\t\t\t\tbuf.push('>');\n\t\t\t\t\t\treturn null;\n\t\t\t\t\tcase PROCESSING_INSTRUCTION_NODE:\n\t\t\t\t\t\tif (requireWellFormed) {\n\t\t\t\t\t\t\tif (!g.NCName_exact.test(n.target) || n.target.toLowerCase() === 'xml') {\n\t\t\t\t\t\t\t\tthrow new DOMException(\n\t\t\t\t\t\t\t\t\t'The processing instruction target \"' + n.target + '\" is not a valid XML NCName or is reserved',\n\t\t\t\t\t\t\t\t\tDOMExceptionName.InvalidStateError\n\t\t\t\t\t\t\t\t);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tif (g.InvalidChar.test(n.data)) {\n\t\t\t\t\t\t\t\tthrow new DOMException(\n\t\t\t\t\t\t\t\t\t'The ProcessingInstruction data contains characters outside the XML Char production',\n\t\t\t\t\t\t\t\t\tDOMExceptionName.InvalidStateError\n\t\t\t\t\t\t\t\t);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tif (n.data.indexOf('?>') !== -1) {\n\t\t\t\t\t\t\t\tthrow new DOMException('The ProcessingInstruction data contains \"?>\"', DOMExceptionName.InvalidStateError);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tbuf.push('<?', n.target, ' ', n.data, '?>');\n\t\t\t\t\t\treturn null;\n\t\t\t\t\tcase ENTITY_REFERENCE_NODE:\n\t\t\t\t\t\tif (requireWellFormed && !g.Name_exact.test(n.nodeName)) {\n\t\t\t\t\t\t\tthrow new DOMException(\n\t\t\t\t\t\t\t\t'The entity reference name \"' + n.nodeName + '\" is not a valid XML Name',\n\t\t\t\t\t\t\t\tDOMExceptionName.InvalidStateError\n\t\t\t\t\t\t\t);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tbuf.push('&', n.nodeName, ';');\n\t\t\t\t\t\treturn null;\n\t\t\t\t\t//case ENTITY_NODE:\n\t\t\t\t\t//case NOTATION_NODE:\n\t\t\t\t\tdefault:\n\t\t\t\t\t\tbuf.push('??', n.nodeName);\n\t\t\t\t\t\treturn null;\n\t\t\t\t}\n\t\t\t},\n\t\t\texit: function (n, childCtx) {\n\t\t\t\t// Emit the closing tag for elements that were opened (not self-closed, not raw text).\n\t\t\t\tif (childCtx && childCtx.tag) {\n\t\t\t\t\tbuf.push('</', childCtx.tag, '>');\n\t\t\t\t}\n\t\t\t},\n\t\t}\n\t);\n}\n/**\n * Imports a node from a different document into `doc`, creating a new copy.\n * Delegates to {@link walkDOM} for traversal. Each node in the subtree is shallow-cloned,\n * stamped with `doc` as its `ownerDocument`, and detached (`parentNode` set to `null`).\n * Children are imported recursively when `deep` is `true`; for {@link Attr} nodes `deep` is\n * always forced to `true`\n * because an attribute's value lives in a child text node.\n *\n * @param {Document} doc\n * The document that will own the imported node.\n * @param {Node} node\n * The node to import.\n * @param {boolean} deep\n * If `true`, descendants are imported recursively.\n * @returns {Node}\n * The newly imported node, now owned by `doc`.\n */\nfunction importNode(doc, node, deep) {\n\tvar destRoot;\n\twalkDOM(node, null, {\n\t\tenter: function (srcNode, destParent) {\n\t\t\t// Shallow-clone the node and stamp it into the target document.\n\t\t\tvar destNode = srcNode.cloneNode(false);\n\t\t\tdestNode.ownerDocument = doc;\n\t\t\tdestNode.parentNode = null;\n\t\t\t// capture as the root of the imported subtree or attach to parent.\n\t\t\tif (destParent === null) {\n\t\t\t\tdestRoot = destNode;\n\t\t\t} else {\n\t\t\t\tdestParent.appendChild(destNode);\n\t\t\t}\n\t\t\t// ATTRIBUTE_NODE must always be imported deeply: its value lives in a child text node.\n\t\t\tvar shouldDeep = srcNode.nodeType === ATTRIBUTE_NODE || deep;\n\t\t\treturn shouldDeep ? destNode : null;\n\t\t},\n\t});\n\treturn destRoot;\n}\n\n/**\n * Creates a copy of a node from an existing one.\n *\n * @param {Document} doc\n * The Document object representing the document that the new node will belong to.\n * @param {Node} node\n * The node to clone.\n * @param {boolean} deep\n * If true, the contents of the node are recursively copied.\n * If false, only the node itself (and its attributes, if it is an element) are copied.\n * @returns {Node}\n * Returns the newly created copy of the node.\n * @throws {DOMException}\n * May throw a DOMException if operations within setAttributeNode or appendChild (which are\n * potentially invoked in this function) do not meet their specific constraints.\n */\nfunction cloneNode(doc, node, deep) {\n\tvar destRoot;\n\twalkDOM(node, null, {\n\t\tenter: function (srcNode, destParent) {\n\t\t\t// 1. Create a blank node of the same type and copy all scalar own properties.\n\t\t\tvar destNode = new srcNode.constructor(PDC);\n\t\t\tfor (var n in srcNode) {\n\t\t\t\tif (hasOwn(srcNode, n)) {\n\t\t\t\t\tvar v = srcNode[n];\n\t\t\t\t\tif (typeof v != 'object') {\n\t\t\t\t\t\tif (v != destNode[n]) {\n\t\t\t\t\t\t\tdestNode[n] = v;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (srcNode.childNodes) {\n\t\t\t\tdestNode.childNodes = new NodeList();\n\t\t\t}\n\t\t\tdestNode.ownerDocument = doc;\n\t\t\t// 2. Handle node-type-specific setup.\n\t\t\t// Attributes are not DOM children, so they are cloned inline here\n\t\t\t// rather than by walkDOM descent.\n\t\t\t// ATTRIBUTE_NODE forces deep=true so its own children are walked.\n\t\t\tvar shouldDeep = deep;\n\t\t\tswitch (destNode.nodeType) {\n\t\t\t\tcase ELEMENT_NODE:\n\t\t\t\t\tvar attrs = srcNode.attributes;\n\t\t\t\t\tvar attrs2 = (destNode.attributes = new NamedNodeMap());\n\t\t\t\t\tvar len = attrs.length;\n\t\t\t\t\tattrs2._ownerElement = destNode;\n\t\t\t\t\tfor (var i = 0; i < len; i++) {\n\t\t\t\t\t\tdestNode.setAttributeNode(cloneNode(doc, attrs.item(i), true));\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase ATTRIBUTE_NODE:\n\t\t\t\t\tshouldDeep = true;\n\t\t\t}\n\t\t\t// 3. Attach to parent, or capture as the root of the cloned subtree.\n\t\t\tif (destParent !== null) {\n\t\t\t\tdestParent.appendChild(destNode);\n\t\t\t} else {\n\t\t\t\tdestRoot = destNode;\n\t\t\t}\n\t\t\t// 4. Return destNode as the context for children (causes walkDOM to descend),\n\t\t\t// or null to skip children (shallow clone).\n\t\t\treturn shouldDeep ? destNode : null;\n\t\t},\n\t});\n\treturn destRoot;\n}\n\nfunction __set__(object, key, value) {\n\tobject[key] = value;\n}\n\n// Returns a new array of direct Element children.\n// Passed to LiveNodeList to implement ParentNode.children.\n// https://dom.spec.whatwg.org/#dom-parentnode-children\nfunction childrenRefresh(node) {\n\tvar ls = [];\n\tvar child = node.firstChild;\n\twhile (child) {\n\t\tif (child.nodeType === ELEMENT_NODE) {\n\t\t\tls.push(child);\n\t\t}\n\t\tchild = child.nextSibling;\n\t}\n\treturn ls;\n}\n\n//do dynamic\ntry {\n\tif (Object.defineProperty) {\n\t\tObject.defineProperty(LiveNodeList.prototype, 'length', {\n\t\t\tget: function () {\n\t\t\t\t_updateLiveList(this);\n\t\t\t\treturn this.$$length;\n\t\t\t},\n\t\t});\n\n\t\t/**\n\t\t * The text content of this node and its descendants.\n\t\t *\n\t\t * For {@link Element} and {@link DocumentFragment} nodes, returns the concatenation of the\n\t\t * `nodeValue` of every descendant text node, excluding processing instruction and comment\n\t\t * nodes. For all other node types, returns `nodeValue`.\n\t\t *\n\t\t * Setting `textContent` on an element or document fragment replaces all child nodes with a\n\t\t * single text node; on other nodes it sets `data`, `value`, and `nodeValue` directly.\n\t\t *\n\t\t * @type {string | null}\n\t\t * @see {@link https://dom.spec.whatwg.org/#dom-node-textcontent}\n\t\t */\n\t\tObject.defineProperty(Node.prototype, 'textContent', {\n\t\t\tget: function () {\n\t\t\t\tif (this.nodeType === ELEMENT_NODE || this.nodeType === DOCUMENT_FRAGMENT_NODE) {\n\t\t\t\t\tvar buf = [];\n\t\t\t\t\twalkDOM(this, null, {\n\t\t\t\t\t\tenter: function (n) {\n\t\t\t\t\t\t\tif (n.nodeType === ELEMENT_NODE || n.nodeType === DOCUMENT_FRAGMENT_NODE) {\n\t\t\t\t\t\t\t\treturn true; // enter children\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tif (n.nodeType === PROCESSING_INSTRUCTION_NODE || n.nodeType === COMMENT_NODE) {\n\t\t\t\t\t\t\t\treturn null; // excluded from text content\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tbuf.push(n.nodeValue);\n\t\t\t\t\t\t},\n\t\t\t\t\t});\n\t\t\t\t\treturn buf.join('');\n\t\t\t\t}\n\t\t\t\treturn this.nodeValue;\n\t\t\t},\n\n\t\t\tset: function (data) {\n\t\t\t\tswitch (this.nodeType) {\n\t\t\t\t\tcase ELEMENT_NODE:\n\t\t\t\t\tcase DOCUMENT_FRAGMENT_NODE:\n\t\t\t\t\t\twhile (this.firstChild) {\n\t\t\t\t\t\t\tthis.removeChild(this.firstChild);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (data || String(data)) {\n\t\t\t\t\t\t\tthis.appendChild(this.ownerDocument.createTextNode(data));\n\t\t\t\t\t\t}\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\tdefault:\n\t\t\t\t\t\tthis.data = data;\n\t\t\t\t\t\tthis.value = data;\n\t\t\t\t\t\tthis.nodeValue = data;\n\t\t\t\t}\n\t\t\t},\n\t\t});\n\n\t\tObject.defineProperty(CharacterData.prototype, 'data', {\n\t\t\tget: function () {\n\t\t\t\treturn this._data != null ? this._data : '';\n\t\t\t},\n\t\t\tset: function (v) {\n\t\t\t\tthis._data = v;\n\t\t\t\tthis.length = typeof v === 'string' ? v.length : 0;\n\t\t\t},\n\t\t});\n\n\t\tObject.defineProperty(CharacterData.prototype, 'nodeValue', {\n\t\t\tget: function () {\n\t\t\t\treturn this.data;\n\t\t\t},\n\t\t\tset: function (v) {\n\t\t\t\tthis.data = v;\n\t\t\t},\n\t\t\tenumerable: true,\n\t\t\tconfigurable: true,\n\t\t});\n\n\t\tObject.defineProperty(Element.prototype, 'children', {\n\t\t\tget: function () {\n\t\t\t\treturn new LiveNodeList(this, childrenRefresh);\n\t\t\t},\n\t\t});\n\t\tObject.defineProperty(Document.prototype, 'children', {\n\t\t\tget: function () {\n\t\t\t\treturn new LiveNodeList(this, childrenRefresh);\n\t\t\t},\n\t\t});\n\t\tObject.defineProperty(DocumentFragment.prototype, 'children', {\n\t\t\tget: function () {\n\t\t\t\treturn new LiveNodeList(this, childrenRefresh);\n\t\t\t},\n\t\t});\n\n\t\t__set__ = function (object, key, value) {\n\t\t\t//console.log(value)\n\t\t\tobject['$$' + key] = value;\n\t\t};\n\t}\n} catch (e) {\n\t//ie8\n}\n\nexports._updateLiveList = _updateLiveList;\nexports.Attr = Attr;\nexports.CDATASection = CDATASection;\nexports.CharacterData = CharacterData;\nexports.Comment = Comment;\nexports.Document = Document;\nexports.DocumentFragment = DocumentFragment;\nexports.DocumentType = DocumentType;\nexports.DOMImplementation = DOMImplementation;\nexports.Element = Element;\nexports.Entity = Entity;\nexports.EntityReference = EntityReference;\nexports.LiveNodeList = LiveNodeList;\nexports.NamedNodeMap = NamedNodeMap;\nexports.Node = Node;\nexports.NodeList = NodeList;\nexports.Notation = Notation;\nexports.Text = Text;\nexports.ProcessingInstruction = ProcessingInstruction;\nexports.walkDOM = walkDOM;\nexports.XMLSerializer = XMLSerializer;\n","'use strict';\n\nvar freeze = require('./conventions').freeze;\n\n/**\n * The entities that are predefined in every XML document.\n *\n * @see https://www.w3.org/TR/2006/REC-xml11-20060816/#sec-predefined-ent W3C XML 1.1\n * @see https://www.w3.org/TR/2008/REC-xml-20081126/#sec-predefined-ent W3C XML 1.0\n * @see https://en.wikipedia.org/wiki/List_of_XML_and_HTML_character_entity_references#Predefined_entities_in_XML\n * Wikipedia\n */\nexports.XML_ENTITIES = freeze({\n\tamp: '&',\n\tapos: \"'\",\n\tgt: '>',\n\tlt: '<',\n\tquot: '\"',\n});\n\n/**\n * A map of all entities that are detected in an HTML document.\n * They contain all entries from `XML_ENTITIES`.\n *\n * @see {@link XML_ENTITIES}\n * @see {@link DOMParser.parseFromString}\n * @see {@link DOMImplementation.prototype.createHTMLDocument}\n * @see https://html.spec.whatwg.org/#named-character-references WHATWG HTML(5)\n * Spec\n * @see https://html.spec.whatwg.org/entities.json JSON\n * @see https://www.w3.org/TR/xml-entity-names/ W3C XML Entity Names\n * @see https://www.w3.org/TR/html4/sgml/entities.html W3C HTML4/SGML\n * @see https://en.wikipedia.org/wiki/List_of_XML_and_HTML_character_entity_references#Character_entity_references_in_HTML\n * Wikipedia (HTML)\n * @see https://en.wikipedia.org/wiki/List_of_XML_and_HTML_character_entity_references#Entities_representing_special_characters_in_XHTML\n * Wikpedia (XHTML)\n */\nexports.HTML_ENTITIES = freeze({\n\tAacute: '\\u00C1',\n\taacute: '\\u00E1',\n\tAbreve: '\\u0102',\n\tabreve: '\\u0103',\n\tac: '\\u223E',\n\tacd: '\\u223F',\n\tacE: '\\u223E\\u0333',\n\tAcirc: '\\u00C2',\n\tacirc: '\\u00E2',\n\tacute: '\\u00B4',\n\tAcy: '\\u0410',\n\tacy: '\\u0430',\n\tAElig: '\\u00C6',\n\taelig: '\\u00E6',\n\taf: '\\u2061',\n\tAfr: '\\uD835\\uDD04',\n\tafr: '\\uD835\\uDD1E',\n\tAgrave: '\\u00C0',\n\tagrave: '\\u00E0',\n\talefsym: '\\u2135',\n\taleph: '\\u2135',\n\tAlpha: '\\u0391',\n\talpha: '\\u03B1',\n\tAmacr: '\\u0100',\n\tamacr: '\\u0101',\n\tamalg: '\\u2A3F',\n\tAMP: '\\u0026',\n\tamp: '\\u0026',\n\tAnd: '\\u2A53',\n\tand: '\\u2227',\n\tandand: '\\u2A55',\n\tandd: '\\u2A5C',\n\tandslope: '\\u2A58',\n\tandv: '\\u2A5A',\n\tang: '\\u2220',\n\tange: '\\u29A4',\n\tangle: '\\u2220',\n\tangmsd: '\\u2221',\n\tangmsdaa: '\\u29A8',\n\tangmsdab: '\\u29A9',\n\tangmsdac: '\\u29AA',\n\tangmsdad: '\\u29AB',\n\tangmsdae: '\\u29AC',\n\tangmsdaf: '\\u29AD',\n\tangmsdag: '\\u29AE',\n\tangmsdah: '\\u29AF',\n\tangrt: '\\u221F',\n\tangrtvb: '\\u22BE',\n\tangrtvbd: '\\u299D',\n\tangsph: '\\u2222',\n\tangst: '\\u00C5',\n\tangzarr: '\\u237C',\n\tAogon: '\\u0104',\n\taogon: '\\u0105',\n\tAopf: '\\uD835\\uDD38',\n\taopf: '\\uD835\\uDD52',\n\tap: '\\u2248',\n\tapacir: '\\u2A6F',\n\tapE: '\\u2A70',\n\tape: '\\u224A',\n\tapid: '\\u224B',\n\tapos: '\\u0027',\n\tApplyFunction: '\\u2061',\n\tapprox: '\\u2248',\n\tapproxeq: '\\u224A',\n\tAring: '\\u00C5',\n\taring: '\\u00E5',\n\tAscr: '\\uD835\\uDC9C',\n\tascr: '\\uD835\\uDCB6',\n\tAssign: '\\u2254',\n\tast: '\\u002A',\n\tasymp: '\\u2248',\n\tasympeq: '\\u224D',\n\tAtilde: '\\u00C3',\n\tatilde: '\\u00E3',\n\tAuml: '\\u00C4',\n\tauml: '\\u00E4',\n\tawconint: '\\u2233',\n\tawint: '\\u2A11',\n\tbackcong: '\\u224C',\n\tbackepsilon: '\\u03F6',\n\tbackprime: '\\u2035',\n\tbacksim: '\\u223D',\n\tbacksimeq: '\\u22CD',\n\tBackslash: '\\u2216',\n\tBarv: '\\u2AE7',\n\tbarvee: '\\u22BD',\n\tBarwed: '\\u2306',\n\tbarwed: '\\u2305',\n\tbarwedge: '\\u2305',\n\tbbrk: '\\u23B5',\n\tbbrktbrk: '\\u23B6',\n\tbcong: '\\u224C',\n\tBcy: '\\u0411',\n\tbcy: '\\u0431',\n\tbdquo: '\\u201E',\n\tbecaus: '\\u2235',\n\tBecause: '\\u2235',\n\tbecause: '\\u2235',\n\tbemptyv: '\\u29B0',\n\tbepsi: '\\u03F6',\n\tbernou: '\\u212C',\n\tBernoullis: '\\u212C',\n\tBeta: '\\u0392',\n\tbeta: '\\u03B2',\n\tbeth: '\\u2136',\n\tbetween: '\\u226C',\n\tBfr: '\\uD835\\uDD05',\n\tbfr: '\\uD835\\uDD1F',\n\tbigcap: '\\u22C2',\n\tbigcirc: '\\u25EF',\n\tbigcup: '\\u22C3',\n\tbigodot: '\\u2A00',\n\tbigoplus: '\\u2A01',\n\tbigotimes: '\\u2A02',\n\tbigsqcup: '\\u2A06',\n\tbigstar: '\\u2605',\n\tbigtriangledown: '\\u25BD',\n\tbigtriangleup: '\\u25B3',\n\tbiguplus: '\\u2A04',\n\tbigvee: '\\u22C1',\n\tbigwedge: '\\u22C0',\n\tbkarow: '\\u290D',\n\tblacklozenge: '\\u29EB',\n\tblacksquare: '\\u25AA',\n\tblacktriangle: '\\u25B4',\n\tblacktriangledown: '\\u25BE',\n\tblacktriangleleft: '\\u25C2',\n\tblacktriangleright: '\\u25B8',\n\tblank: '\\u2423',\n\tblk12: '\\u2592',\n\tblk14: '\\u2591',\n\tblk34: '\\u2593',\n\tblock: '\\u2588',\n\tbne: '\\u003D\\u20E5',\n\tbnequiv: '\\u2261\\u20E5',\n\tbNot: '\\u2AED',\n\tbnot: '\\u2310',\n\tBopf: '\\uD835\\uDD39',\n\tbopf: '\\uD835\\uDD53',\n\tbot: '\\u22A5',\n\tbottom: '\\u22A5',\n\tbowtie: '\\u22C8',\n\tboxbox: '\\u29C9',\n\tboxDL: '\\u2557',\n\tboxDl: '\\u2556',\n\tboxdL: '\\u2555',\n\tboxdl: '\\u2510',\n\tboxDR: '\\u2554',\n\tboxDr: '\\u2553',\n\tboxdR: '\\u2552',\n\tboxdr: '\\u250C',\n\tboxH: '\\u2550',\n\tboxh: '\\u2500',\n\tboxHD: '\\u2566',\n\tboxHd: '\\u2564',\n\tboxhD: '\\u2565',\n\tboxhd: '\\u252C',\n\tboxHU: '\\u2569',\n\tboxHu: '\\u2567',\n\tboxhU: '\\u2568',\n\tboxhu: '\\u2534',\n\tboxminus: '\\u229F',\n\tboxplus: '\\u229E',\n\tboxtimes: '\\u22A0',\n\tboxUL: '\\u255D',\n\tboxUl: '\\u255C',\n\tboxuL: '\\u255B',\n\tboxul: '\\u2518',\n\tboxUR: '\\u255A',\n\tboxUr: '\\u2559',\n\tboxuR: '\\u2558',\n\tboxur: '\\u2514',\n\tboxV: '\\u2551',\n\tboxv: '\\u2502',\n\tboxVH: '\\u256C',\n\tboxVh: '\\u256B',\n\tboxvH: '\\u256A',\n\tboxvh: '\\u253C',\n\tboxVL: '\\u2563',\n\tboxVl: '\\u2562',\n\tboxvL: '\\u2561',\n\tboxvl: '\\u2524',\n\tboxVR: '\\u2560',\n\tboxVr: '\\u255F',\n\tboxvR: '\\u255E',\n\tboxvr: '\\u251C',\n\tbprime: '\\u2035',\n\tBreve: '\\u02D8',\n\tbreve: '\\u02D8',\n\tbrvbar: '\\u00A6',\n\tBscr: '\\u212C',\n\tbscr: '\\uD835\\uDCB7',\n\tbsemi: '\\u204F',\n\tbsim: '\\u223D',\n\tbsime: '\\u22CD',\n\tbsol: '\\u005C',\n\tbsolb: '\\u29C5',\n\tbsolhsub: '\\u27C8',\n\tbull: '\\u2022',\n\tbullet: '\\u2022',\n\tbump: '\\u224E',\n\tbumpE: '\\u2AAE',\n\tbumpe: '\\u224F',\n\tBumpeq: '\\u224E',\n\tbumpeq: '\\u224F',\n\tCacute: '\\u0106',\n\tcacute: '\\u0107',\n\tCap: '\\u22D2',\n\tcap: '\\u2229',\n\tcapand: '\\u2A44',\n\tcapbrcup: '\\u2A49',\n\tcapcap: '\\u2A4B',\n\tcapcup: '\\u2A47',\n\tcapdot: '\\u2A40',\n\tCapitalDifferentialD: '\\u2145',\n\tcaps: '\\u2229\\uFE00',\n\tcaret: '\\u2041',\n\tcaron: '\\u02C7',\n\tCayleys: '\\u212D',\n\tccaps: '\\u2A4D',\n\tCcaron: '\\u010C',\n\tccaron: '\\u010D',\n\tCcedil: '\\u00C7',\n\tccedil: '\\u00E7',\n\tCcirc: '\\u0108',\n\tccirc: '\\u0109',\n\tCconint: '\\u2230',\n\tccups: '\\u2A4C',\n\tccupssm: '\\u2A50',\n\tCdot: '\\u010A',\n\tcdot: '\\u010B',\n\tcedil: '\\u00B8',\n\tCedilla: '\\u00B8',\n\tcemptyv: '\\u29B2',\n\tcent: '\\u00A2',\n\tCenterDot: '\\u00B7',\n\tcenterdot: '\\u00B7',\n\tCfr: '\\u212D',\n\tcfr: '\\uD835\\uDD20',\n\tCHcy: '\\u0427',\n\tchcy: '\\u0447',\n\tcheck: '\\u2713',\n\tcheckmark: '\\u2713',\n\tChi: '\\u03A7',\n\tchi: '\\u03C7',\n\tcir: '\\u25CB',\n\tcirc: '\\u02C6',\n\tcirceq: '\\u2257',\n\tcirclearrowleft: '\\u21BA',\n\tcirclearrowright: '\\u21BB',\n\tcircledast: '\\u229B',\n\tcircledcirc: '\\u229A',\n\tcircleddash: '\\u229D',\n\tCircleDot: '\\u2299',\n\tcircledR: '\\u00AE',\n\tcircledS: '\\u24C8',\n\tCircleMinus: '\\u2296',\n\tCirclePlus: '\\u2295',\n\tCircleTimes: '\\u2297',\n\tcirE: '\\u29C3',\n\tcire: '\\u2257',\n\tcirfnint: '\\u2A10',\n\tcirmid: '\\u2AEF',\n\tcirscir: '\\u29C2',\n\tClockwiseContourIntegral: '\\u2232',\n\tCloseCurlyDoubleQuote: '\\u201D',\n\tCloseCurlyQuote: '\\u2019',\n\tclubs: '\\u2663',\n\tclubsuit: '\\u2663',\n\tColon: '\\u2237',\n\tcolon: '\\u003A',\n\tColone: '\\u2A74',\n\tcolone: '\\u2254',\n\tcoloneq: '\\u2254',\n\tcomma: '\\u002C',\n\tcommat: '\\u0040',\n\tcomp: '\\u2201',\n\tcompfn: '\\u2218',\n\tcomplement: '\\u2201',\n\tcomplexes: '\\u2102',\n\tcong: '\\u2245',\n\tcongdot: '\\u2A6D',\n\tCongruent: '\\u2261',\n\tConint: '\\u222F',\n\tconint: '\\u222E',\n\tContourIntegral: '\\u222E',\n\tCopf: '\\u2102',\n\tcopf: '\\uD835\\uDD54',\n\tcoprod: '\\u2210',\n\tCoproduct: '\\u2210',\n\tCOPY: '\\u00A9',\n\tcopy: '\\u00A9',\n\tcopysr: '\\u2117',\n\tCounterClockwiseContourIntegral: '\\u2233',\n\tcrarr: '\\u21B5',\n\tCross: '\\u2A2F',\n\tcross: '\\u2717',\n\tCscr: '\\uD835\\uDC9E',\n\tcscr: '\\uD835\\uDCB8',\n\tcsub: '\\u2ACF',\n\tcsube: '\\u2AD1',\n\tcsup: '\\u2AD0',\n\tcsupe: '\\u2AD2',\n\tctdot: '\\u22EF',\n\tcudarrl: '\\u2938',\n\tcudarrr: '\\u2935',\n\tcuepr: '\\u22DE',\n\tcuesc: '\\u22DF',\n\tcularr: '\\u21B6',\n\tcularrp: '\\u293D',\n\tCup: '\\u22D3',\n\tcup: '\\u222A',\n\tcupbrcap: '\\u2A48',\n\tCupCap: '\\u224D',\n\tcupcap: '\\u2A46',\n\tcupcup: '\\u2A4A',\n\tcupdot: '\\u228D',\n\tcupor: '\\u2A45',\n\tcups: '\\u222A\\uFE00',\n\tcurarr: '\\u21B7',\n\tcurarrm: '\\u293C',\n\tcurlyeqprec: '\\u22DE',\n\tcurlyeqsucc: '\\u22DF',\n\tcurlyvee: '\\u22CE',\n\tcurlywedge: '\\u22CF',\n\tcurren: '\\u00A4',\n\tcurvearrowleft: '\\u21B6',\n\tcurvearrowright: '\\u21B7',\n\tcuvee: '\\u22CE',\n\tcuwed: '\\u22CF',\n\tcwconint: '\\u2232',\n\tcwint: '\\u2231',\n\tcylcty: '\\u232D',\n\tDagger: '\\u2021',\n\tdagger: '\\u2020',\n\tdaleth: '\\u2138',\n\tDarr: '\\u21A1',\n\tdArr: '\\u21D3',\n\tdarr: '\\u2193',\n\tdash: '\\u2010',\n\tDashv: '\\u2AE4',\n\tdashv: '\\u22A3',\n\tdbkarow: '\\u290F',\n\tdblac: '\\u02DD',\n\tDcaron: '\\u010E',\n\tdcaron: '\\u010F',\n\tDcy: '\\u0414',\n\tdcy: '\\u0434',\n\tDD: '\\u2145',\n\tdd: '\\u2146',\n\tddagger: '\\u2021',\n\tddarr: '\\u21CA',\n\tDDotrahd: '\\u2911',\n\tddotseq: '\\u2A77',\n\tdeg: '\\u00B0',\n\tDel: '\\u2207',\n\tDelta: '\\u0394',\n\tdelta: '\\u03B4',\n\tdemptyv: '\\u29B1',\n\tdfisht: '\\u297F',\n\tDfr: '\\uD835\\uDD07',\n\tdfr: '\\uD835\\uDD21',\n\tdHar: '\\u2965',\n\tdharl: '\\u21C3',\n\tdharr: '\\u21C2',\n\tDiacriticalAcute: '\\u00B4',\n\tDiacriticalDot: '\\u02D9',\n\tDiacriticalDoubleAcute: '\\u02DD',\n\tDiacriticalGrave: '\\u0060',\n\tDiacriticalTilde: '\\u02DC',\n\tdiam: '\\u22C4',\n\tDiamond: '\\u22C4',\n\tdiamond: '\\u22C4',\n\tdiamondsuit: '\\u2666',\n\tdiams: '\\u2666',\n\tdie: '\\u00A8',\n\tDifferentialD: '\\u2146',\n\tdigamma: '\\u03DD',\n\tdisin: '\\u22F2',\n\tdiv: '\\u00F7',\n\tdivide: '\\u00F7',\n\tdivideontimes: '\\u22C7',\n\tdivonx: '\\u22C7',\n\tDJcy: '\\u0402',\n\tdjcy: '\\u0452',\n\tdlcorn: '\\u231E',\n\tdlcrop: '\\u230D',\n\tdollar: '\\u0024',\n\tDopf: '\\uD835\\uDD3B',\n\tdopf: '\\uD835\\uDD55',\n\tDot: '\\u00A8',\n\tdot: '\\u02D9',\n\tDotDot: '\\u20DC',\n\tdoteq: '\\u2250',\n\tdoteqdot: '\\u2251',\n\tDotEqual: '\\u2250',\n\tdotminus: '\\u2238',\n\tdotplus: '\\u2214',\n\tdotsquare: '\\u22A1',\n\tdoublebarwedge: '\\u2306',\n\tDoubleContourIntegral: '\\u222F',\n\tDoubleDot: '\\u00A8',\n\tDoubleDownArrow: '\\u21D3',\n\tDoubleLeftArrow: '\\u21D0',\n\tDoubleLeftRightArrow: '\\u21D4',\n\tDoubleLeftTee: '\\u2AE4',\n\tDoubleLongLeftArrow: '\\u27F8',\n\tDoubleLongLeftRightArrow: '\\u27FA',\n\tDoubleLongRightArrow: '\\u27F9',\n\tDoubleRightArrow: '\\u21D2',\n\tDoubleRightTee: '\\u22A8',\n\tDoubleUpArrow: '\\u21D1',\n\tDoubleUpDownArrow: '\\u21D5',\n\tDoubleVerticalBar: '\\u2225',\n\tDownArrow: '\\u2193',\n\tDownarrow: '\\u21D3',\n\tdownarrow: '\\u2193',\n\tDownArrowBar: '\\u2913',\n\tDownArrowUpArrow: '\\u21F5',\n\tDownBreve: '\\u0311',\n\tdowndownarrows: '\\u21CA',\n\tdownharpoonleft: '\\u21C3',\n\tdownharpoonright: '\\u21C2',\n\tDownLeftRightVector: '\\u2950',\n\tDownLeftTeeVector: '\\u295E',\n\tDownLeftVector: '\\u21BD',\n\tDownLeftVectorBar: '\\u2956',\n\tDownRightTeeVector: '\\u295F',\n\tDownRightVector: '\\u21C1',\n\tDownRightVectorBar: '\\u2957',\n\tDownTee: '\\u22A4',\n\tDownTeeArrow: '\\u21A7',\n\tdrbkarow: '\\u2910',\n\tdrcorn: '\\u231F',\n\tdrcrop: '\\u230C',\n\tDscr: '\\uD835\\uDC9F',\n\tdscr: '\\uD835\\uDCB9',\n\tDScy: '\\u0405',\n\tdscy: '\\u0455',\n\tdsol: '\\u29F6',\n\tDstrok: '\\u0110',\n\tdstrok: '\\u0111',\n\tdtdot: '\\u22F1',\n\tdtri: '\\u25BF',\n\tdtrif: '\\u25BE',\n\tduarr: '\\u21F5',\n\tduhar: '\\u296F',\n\tdwangle: '\\u29A6',\n\tDZcy: '\\u040F',\n\tdzcy: '\\u045F',\n\tdzigrarr: '\\u27FF',\n\tEacute: '\\u00C9',\n\teacute: '\\u00E9',\n\teaster: '\\u2A6E',\n\tEcaron: '\\u011A',\n\tecaron: '\\u011B',\n\tecir: '\\u2256',\n\tEcirc: '\\u00CA',\n\tecirc: '\\u00EA',\n\tecolon: '\\u2255',\n\tEcy: '\\u042D',\n\tecy: '\\u044D',\n\teDDot: '\\u2A77',\n\tEdot: '\\u0116',\n\teDot: '\\u2251',\n\tedot: '\\u0117',\n\tee: '\\u2147',\n\tefDot: '\\u2252',\n\tEfr: '\\uD835\\uDD08',\n\tefr: '\\uD835\\uDD22',\n\teg: '\\u2A9A',\n\tEgrave: '\\u00C8',\n\tegrave: '\\u00E8',\n\tegs: '\\u2A96',\n\tegsdot: '\\u2A98',\n\tel: '\\u2A99',\n\tElement: '\\u2208',\n\telinters: '\\u23E7',\n\tell: '\\u2113',\n\tels: '\\u2A95',\n\telsdot: '\\u2A97',\n\tEmacr: '\\u0112',\n\temacr: '\\u0113',\n\tempty: '\\u2205',\n\temptyset: '\\u2205',\n\tEmptySmallSquare: '\\u25FB',\n\temptyv: '\\u2205',\n\tEmptyVerySmallSquare: '\\u25AB',\n\temsp: '\\u2003',\n\temsp13: '\\u2004',\n\temsp14: '\\u2005',\n\tENG: '\\u014A',\n\teng: '\\u014B',\n\tensp: '\\u2002',\n\tEogon: '\\u0118',\n\teogon: '\\u0119',\n\tEopf: '\\uD835\\uDD3C',\n\teopf: '\\uD835\\uDD56',\n\tepar: '\\u22D5',\n\teparsl: '\\u29E3',\n\teplus: '\\u2A71',\n\tepsi: '\\u03B5',\n\tEpsilon: '\\u0395',\n\tepsilon: '\\u03B5',\n\tepsiv: '\\u03F5',\n\teqcirc: '\\u2256',\n\teqcolon: '\\u2255',\n\teqsim: '\\u2242',\n\teqslantgtr: '\\u2A96',\n\teqslantless: '\\u2A95',\n\tEqual: '\\u2A75',\n\tequals: '\\u003D',\n\tEqualTilde: '\\u2242',\n\tequest: '\\u225F',\n\tEquilibrium: '\\u21CC',\n\tequiv: '\\u2261',\n\tequivDD: '\\u2A78',\n\teqvparsl: '\\u29E5',\n\terarr: '\\u2971',\n\terDot: '\\u2253',\n\tEscr: '\\u2130',\n\tescr: '\\u212F',\n\tesdot: '\\u2250',\n\tEsim: '\\u2A73',\n\tesim: '\\u2242',\n\tEta: '\\u0397',\n\teta: '\\u03B7',\n\tETH: '\\u00D0',\n\teth: '\\u00F0',\n\tEuml: '\\u00CB',\n\teuml: '\\u00EB',\n\teuro: '\\u20AC',\n\texcl: '\\u0021',\n\texist: '\\u2203',\n\tExists: '\\u2203',\n\texpectation: '\\u2130',\n\tExponentialE: '\\u2147',\n\texponentiale: '\\u2147',\n\tfallingdotseq: '\\u2252',\n\tFcy: '\\u0424',\n\tfcy: '\\u0444',\n\tfemale: '\\u2640',\n\tffilig: '\\uFB03',\n\tfflig: '\\uFB00',\n\tffllig: '\\uFB04',\n\tFfr: '\\uD835\\uDD09',\n\tffr: '\\uD835\\uDD23',\n\tfilig: '\\uFB01',\n\tFilledSmallSquare: '\\u25FC',\n\tFilledVerySmallSquare: '\\u25AA',\n\tfjlig: '\\u0066\\u006A',\n\tflat: '\\u266D',\n\tfllig: '\\uFB02',\n\tfltns: '\\u25B1',\n\tfnof: '\\u0192',\n\tFopf: '\\uD835\\uDD3D',\n\tfopf: '\\uD835\\uDD57',\n\tForAll: '\\u2200',\n\tforall: '\\u2200',\n\tfork: '\\u22D4',\n\tforkv: '\\u2AD9',\n\tFouriertrf: '\\u2131',\n\tfpartint: '\\u2A0D',\n\tfrac12: '\\u00BD',\n\tfrac13: '\\u2153',\n\tfrac14: '\\u00BC',\n\tfrac15: '\\u2155',\n\tfrac16: '\\u2159',\n\tfrac18: '\\u215B',\n\tfrac23: '\\u2154',\n\tfrac25: '\\u2156',\n\tfrac34: '\\u00BE',\n\tfrac35: '\\u2157',\n\tfrac38: '\\u215C',\n\tfrac45: '\\u2158',\n\tfrac56: '\\u215A',\n\tfrac58: '\\u215D',\n\tfrac78: '\\u215E',\n\tfrasl: '\\u2044',\n\tfrown: '\\u2322',\n\tFscr: '\\u2131',\n\tfscr: '\\uD835\\uDCBB',\n\tgacute: '\\u01F5',\n\tGamma: '\\u0393',\n\tgamma: '\\u03B3',\n\tGammad: '\\u03DC',\n\tgammad: '\\u03DD',\n\tgap: '\\u2A86',\n\tGbreve: '\\u011E',\n\tgbreve: '\\u011F',\n\tGcedil: '\\u0122',\n\tGcirc: '\\u011C',\n\tgcirc: '\\u011D',\n\tGcy: '\\u0413',\n\tgcy: '\\u0433',\n\tGdot: '\\u0120',\n\tgdot: '\\u0121',\n\tgE: '\\u2267',\n\tge: '\\u2265',\n\tgEl: '\\u2A8C',\n\tgel: '\\u22DB',\n\tgeq: '\\u2265',\n\tgeqq: '\\u2267',\n\tgeqslant: '\\u2A7E',\n\tges: '\\u2A7E',\n\tgescc: '\\u2AA9',\n\tgesdot: '\\u2A80',\n\tgesdoto: '\\u2A82',\n\tgesdotol: '\\u2A84',\n\tgesl: '\\u22DB\\uFE00',\n\tgesles: '\\u2A94',\n\tGfr: '\\uD835\\uDD0A',\n\tgfr: '\\uD835\\uDD24',\n\tGg: '\\u22D9',\n\tgg: '\\u226B',\n\tggg: '\\u22D9',\n\tgimel: '\\u2137',\n\tGJcy: '\\u0403',\n\tgjcy: '\\u0453',\n\tgl: '\\u2277',\n\tgla: '\\u2AA5',\n\tglE: '\\u2A92',\n\tglj: '\\u2AA4',\n\tgnap: '\\u2A8A',\n\tgnapprox: '\\u2A8A',\n\tgnE: '\\u2269',\n\tgne: '\\u2A88',\n\tgneq: '\\u2A88',\n\tgneqq: '\\u2269',\n\tgnsim: '\\u22E7',\n\tGopf: '\\uD835\\uDD3E',\n\tgopf: '\\uD835\\uDD58',\n\tgrave: '\\u0060',\n\tGreaterEqual: '\\u2265',\n\tGreaterEqualLess: '\\u22DB',\n\tGreaterFullEqual: '\\u2267',\n\tGreaterGreater: '\\u2AA2',\n\tGreaterLess: '\\u2277',\n\tGreaterSlantEqual: '\\u2A7E',\n\tGreaterTilde: '\\u2273',\n\tGscr: '\\uD835\\uDCA2',\n\tgscr: '\\u210A',\n\tgsim: '\\u2273',\n\tgsime: '\\u2A8E',\n\tgsiml: '\\u2A90',\n\tGt: '\\u226B',\n\tGT: '\\u003E',\n\tgt: '\\u003E',\n\tgtcc: '\\u2AA7',\n\tgtcir: '\\u2A7A',\n\tgtdot: '\\u22D7',\n\tgtlPar: '\\u2995',\n\tgtquest: '\\u2A7C',\n\tgtrapprox: '\\u2A86',\n\tgtrarr: '\\u2978',\n\tgtrdot: '\\u22D7',\n\tgtreqless: '\\u22DB',\n\tgtreqqless: '\\u2A8C',\n\tgtrless: '\\u2277',\n\tgtrsim: '\\u2273',\n\tgvertneqq: '\\u2269\\uFE00',\n\tgvnE: '\\u2269\\uFE00',\n\tHacek: '\\u02C7',\n\thairsp: '\\u200A',\n\thalf: '\\u00BD',\n\thamilt: '\\u210B',\n\tHARDcy: '\\u042A',\n\thardcy: '\\u044A',\n\thArr: '\\u21D4',\n\tharr: '\\u2194',\n\tharrcir: '\\u2948',\n\tharrw: '\\u21AD',\n\tHat: '\\u005E',\n\thbar: '\\u210F',\n\tHcirc: '\\u0124',\n\thcirc: '\\u0125',\n\thearts: '\\u2665',\n\theartsuit: '\\u2665',\n\thellip: '\\u2026',\n\thercon: '\\u22B9',\n\tHfr: '\\u210C',\n\thfr: '\\uD835\\uDD25',\n\tHilbertSpace: '\\u210B',\n\thksearow: '\\u2925',\n\thkswarow: '\\u2926',\n\thoarr: '\\u21FF',\n\thomtht: '\\u223B',\n\thookleftarrow: '\\u21A9',\n\thookrightarrow: '\\u21AA',\n\tHopf: '\\u210D',\n\thopf: '\\uD835\\uDD59',\n\thorbar: '\\u2015',\n\tHorizontalLine: '\\u2500',\n\tHscr: '\\u210B',\n\thscr: '\\uD835\\uDCBD',\n\thslash: '\\u210F',\n\tHstrok: '\\u0126',\n\thstrok: '\\u0127',\n\tHumpDownHump: '\\u224E',\n\tHumpEqual: '\\u224F',\n\thybull: '\\u2043',\n\thyphen: '\\u2010',\n\tIacute: '\\u00CD',\n\tiacute: '\\u00ED',\n\tic: '\\u2063',\n\tIcirc: '\\u00CE',\n\ticirc: '\\u00EE',\n\tIcy: '\\u0418',\n\ticy: '\\u0438',\n\tIdot: '\\u0130',\n\tIEcy: '\\u0415',\n\tiecy: '\\u0435',\n\tiexcl: '\\u00A1',\n\tiff: '\\u21D4',\n\tIfr: '\\u2111',\n\tifr: '\\uD835\\uDD26',\n\tIgrave: '\\u00CC',\n\tigrave: '\\u00EC',\n\tii: '\\u2148',\n\tiiiint: '\\u2A0C',\n\tiiint: '\\u222D',\n\tiinfin: '\\u29DC',\n\tiiota: '\\u2129',\n\tIJlig: '\\u0132',\n\tijlig: '\\u0133',\n\tIm: '\\u2111',\n\tImacr: '\\u012A',\n\timacr: '\\u012B',\n\timage: '\\u2111',\n\tImaginaryI: '\\u2148',\n\timagline: '\\u2110',\n\timagpart: '\\u2111',\n\timath: '\\u0131',\n\timof: '\\u22B7',\n\timped: '\\u01B5',\n\tImplies: '\\u21D2',\n\tin: '\\u2208',\n\tincare: '\\u2105',\n\tinfin: '\\u221E',\n\tinfintie: '\\u29DD',\n\tinodot: '\\u0131',\n\tInt: '\\u222C',\n\tint: '\\u222B',\n\tintcal: '\\u22BA',\n\tintegers: '\\u2124',\n\tIntegral: '\\u222B',\n\tintercal: '\\u22BA',\n\tIntersection: '\\u22C2',\n\tintlarhk: '\\u2A17',\n\tintprod: '\\u2A3C',\n\tInvisibleComma: '\\u2063',\n\tInvisibleTimes: '\\u2062',\n\tIOcy: '\\u0401',\n\tiocy: '\\u0451',\n\tIogon: '\\u012E',\n\tiogon: '\\u012F',\n\tIopf: '\\uD835\\uDD40',\n\tiopf: '\\uD835\\uDD5A',\n\tIota: '\\u0399',\n\tiota: '\\u03B9',\n\tiprod: '\\u2A3C',\n\tiquest: '\\u00BF',\n\tIscr: '\\u2110',\n\tiscr: '\\uD835\\uDCBE',\n\tisin: '\\u2208',\n\tisindot: '\\u22F5',\n\tisinE: '\\u22F9',\n\tisins: '\\u22F4',\n\tisinsv: '\\u22F3',\n\tisinv: '\\u2208',\n\tit: '\\u2062',\n\tItilde: '\\u0128',\n\titilde: '\\u0129',\n\tIukcy: '\\u0406',\n\tiukcy: '\\u0456',\n\tIuml: '\\u00CF',\n\tiuml: '\\u00EF',\n\tJcirc: '\\u0134',\n\tjcirc: '\\u0135',\n\tJcy: '\\u0419',\n\tjcy: '\\u0439',\n\tJfr: '\\uD835\\uDD0D',\n\tjfr: '\\uD835\\uDD27',\n\tjmath: '\\u0237',\n\tJopf: '\\uD835\\uDD41',\n\tjopf: '\\uD835\\uDD5B',\n\tJscr: '\\uD835\\uDCA5',\n\tjscr: '\\uD835\\uDCBF',\n\tJsercy: '\\u0408',\n\tjsercy: '\\u0458',\n\tJukcy: '\\u0404',\n\tjukcy: '\\u0454',\n\tKappa: '\\u039A',\n\tkappa: '\\u03BA',\n\tkappav: '\\u03F0',\n\tKcedil: '\\u0136',\n\tkcedil: '\\u0137',\n\tKcy: '\\u041A',\n\tkcy: '\\u043A',\n\tKfr: '\\uD835\\uDD0E',\n\tkfr: '\\uD835\\uDD28',\n\tkgreen: '\\u0138',\n\tKHcy: '\\u0425',\n\tkhcy: '\\u0445',\n\tKJcy: '\\u040C',\n\tkjcy: '\\u045C',\n\tKopf: '\\uD835\\uDD42',\n\tkopf: '\\uD835\\uDD5C',\n\tKscr: '\\uD835\\uDCA6',\n\tkscr: '\\uD835\\uDCC0',\n\tlAarr: '\\u21DA',\n\tLacute: '\\u0139',\n\tlacute: '\\u013A',\n\tlaemptyv: '\\u29B4',\n\tlagran: '\\u2112',\n\tLambda: '\\u039B',\n\tlambda: '\\u03BB',\n\tLang: '\\u27EA',\n\tlang: '\\u27E8',\n\tlangd: '\\u2991',\n\tlangle: '\\u27E8',\n\tlap: '\\u2A85',\n\tLaplacetrf: '\\u2112',\n\tlaquo: '\\u00AB',\n\tLarr: '\\u219E',\n\tlArr: '\\u21D0',\n\tlarr: '\\u2190',\n\tlarrb: '\\u21E4',\n\tlarrbfs: '\\u291F',\n\tlarrfs: '\\u291D',\n\tlarrhk: '\\u21A9',\n\tlarrlp: '\\u21AB',\n\tlarrpl: '\\u2939',\n\tlarrsim: '\\u2973',\n\tlarrtl: '\\u21A2',\n\tlat: '\\u2AAB',\n\tlAtail: '\\u291B',\n\tlatail: '\\u2919',\n\tlate: '\\u2AAD',\n\tlates: '\\u2AAD\\uFE00',\n\tlBarr: '\\u290E',\n\tlbarr: '\\u290C',\n\tlbbrk: '\\u2772',\n\tlbrace: '\\u007B',\n\tlbrack: '\\u005B',\n\tlbrke: '\\u298B',\n\tlbrksld: '\\u298F',\n\tlbrkslu: '\\u298D',\n\tLcaron: '\\u013D',\n\tlcaron: '\\u013E',\n\tLcedil: '\\u013B',\n\tlcedil: '\\u013C',\n\tlceil: '\\u2308',\n\tlcub: '\\u007B',\n\tLcy: '\\u041B',\n\tlcy: '\\u043B',\n\tldca: '\\u2936',\n\tldquo: '\\u201C',\n\tldquor: '\\u201E',\n\tldrdhar: '\\u2967',\n\tldrushar: '\\u294B',\n\tldsh: '\\u21B2',\n\tlE: '\\u2266',\n\tle: '\\u2264',\n\tLeftAngleBracket: '\\u27E8',\n\tLeftArrow: '\\u2190',\n\tLeftarrow: '\\u21D0',\n\tleftarrow: '\\u2190',\n\tLeftArrowBar: '\\u21E4',\n\tLeftArrowRightArrow: '\\u21C6',\n\tleftarrowtail: '\\u21A2',\n\tLeftCeiling: '\\u2308',\n\tLeftDoubleBracket: '\\u27E6',\n\tLeftDownTeeVector: '\\u2961',\n\tLeftDownVector: '\\u21C3',\n\tLeftDownVectorBar: '\\u2959',\n\tLeftFloor: '\\u230A',\n\tleftharpoondown: '\\u21BD',\n\tleftharpoonup: '\\u21BC',\n\tleftleftarrows: '\\u21C7',\n\tLeftRightArrow: '\\u2194',\n\tLeftrightarrow: '\\u21D4',\n\tleftrightarrow: '\\u2194',\n\tleftrightarrows: '\\u21C6',\n\tleftrightharpoons: '\\u21CB',\n\tleftrightsquigarrow: '\\u21AD',\n\tLeftRightVector: '\\u294E',\n\tLeftTee: '\\u22A3',\n\tLeftTeeArrow: '\\u21A4',\n\tLeftTeeVector: '\\u295A',\n\tleftthreetimes: '\\u22CB',\n\tLeftTriangle: '\\u22B2',\n\tLeftTriangleBar: '\\u29CF',\n\tLeftTriangleEqual: '\\u22B4',\n\tLeftUpDownVector: '\\u2951',\n\tLeftUpTeeVector: '\\u2960',\n\tLeftUpVector: '\\u21BF',\n\tLeftUpVectorBar: '\\u2958',\n\tLeftVector: '\\u21BC',\n\tLeftVectorBar: '\\u2952',\n\tlEg: '\\u2A8B',\n\tleg: '\\u22DA',\n\tleq: '\\u2264',\n\tleqq: '\\u2266',\n\tleqslant: '\\u2A7D',\n\tles: '\\u2A7D',\n\tlescc: '\\u2AA8',\n\tlesdot: '\\u2A7F',\n\tlesdoto: '\\u2A81',\n\tlesdotor: '\\u2A83',\n\tlesg: '\\u22DA\\uFE00',\n\tlesges: '\\u2A93',\n\tlessapprox: '\\u2A85',\n\tlessdot: '\\u22D6',\n\tlesseqgtr: '\\u22DA',\n\tlesseqqgtr: '\\u2A8B',\n\tLessEqualGreater: '\\u22DA',\n\tLessFullEqual: '\\u2266',\n\tLessGreater: '\\u2276',\n\tlessgtr: '\\u2276',\n\tLessLess: '\\u2AA1',\n\tlesssim: '\\u2272',\n\tLessSlantEqual: '\\u2A7D',\n\tLessTilde: '\\u2272',\n\tlfisht: '\\u297C',\n\tlfloor: '\\u230A',\n\tLfr: '\\uD835\\uDD0F',\n\tlfr: '\\uD835\\uDD29',\n\tlg: '\\u2276',\n\tlgE: '\\u2A91',\n\tlHar: '\\u2962',\n\tlhard: '\\u21BD',\n\tlharu: '\\u21BC',\n\tlharul: '\\u296A',\n\tlhblk: '\\u2584',\n\tLJcy: '\\u0409',\n\tljcy: '\\u0459',\n\tLl: '\\u22D8',\n\tll: '\\u226A',\n\tllarr: '\\u21C7',\n\tllcorner: '\\u231E',\n\tLleftarrow: '\\u21DA',\n\tllhard: '\\u296B',\n\tlltri: '\\u25FA',\n\tLmidot: '\\u013F',\n\tlmidot: '\\u0140',\n\tlmoust: '\\u23B0',\n\tlmoustache: '\\u23B0',\n\tlnap: '\\u2A89',\n\tlnapprox: '\\u2A89',\n\tlnE: '\\u2268',\n\tlne: '\\u2A87',\n\tlneq: '\\u2A87',\n\tlneqq: '\\u2268',\n\tlnsim: '\\u22E6',\n\tloang: '\\u27EC',\n\tloarr: '\\u21FD',\n\tlobrk: '\\u27E6',\n\tLongLeftArrow: '\\u27F5',\n\tLongleftarrow: '\\u27F8',\n\tlongleftarrow: '\\u27F5',\n\tLongLeftRightArrow: '\\u27F7',\n\tLongleftrightarrow: '\\u27FA',\n\tlongleftrightarrow: '\\u27F7',\n\tlongmapsto: '\\u27FC',\n\tLongRightArrow: '\\u27F6',\n\tLongrightarrow: '\\u27F9',\n\tlongrightarrow: '\\u27F6',\n\tlooparrowleft: '\\u21AB',\n\tlooparrowright: '\\u21AC',\n\tlopar: '\\u2985',\n\tLopf: '\\uD835\\uDD43',\n\tlopf: '\\uD835\\uDD5D',\n\tloplus: '\\u2A2D',\n\tlotimes: '\\u2A34',\n\tlowast: '\\u2217',\n\tlowbar: '\\u005F',\n\tLowerLeftArrow: '\\u2199',\n\tLowerRightArrow: '\\u2198',\n\tloz: '\\u25CA',\n\tlozenge: '\\u25CA',\n\tlozf: '\\u29EB',\n\tlpar: '\\u0028',\n\tlparlt: '\\u2993',\n\tlrarr: '\\u21C6',\n\tlrcorner: '\\u231F',\n\tlrhar: '\\u21CB',\n\tlrhard: '\\u296D',\n\tlrm: '\\u200E',\n\tlrtri: '\\u22BF',\n\tlsaquo: '\\u2039',\n\tLscr: '\\u2112',\n\tlscr: '\\uD835\\uDCC1',\n\tLsh: '\\u21B0',\n\tlsh: '\\u21B0',\n\tlsim: '\\u2272',\n\tlsime: '\\u2A8D',\n\tlsimg: '\\u2A8F',\n\tlsqb: '\\u005B',\n\tlsquo: '\\u2018',\n\tlsquor: '\\u201A',\n\tLstrok: '\\u0141',\n\tlstrok: '\\u0142',\n\tLt: '\\u226A',\n\tLT: '\\u003C',\n\tlt: '\\u003C',\n\tltcc: '\\u2AA6',\n\tltcir: '\\u2A79',\n\tltdot: '\\u22D6',\n\tlthree: '\\u22CB',\n\tltimes: '\\u22C9',\n\tltlarr: '\\u2976',\n\tltquest: '\\u2A7B',\n\tltri: '\\u25C3',\n\tltrie: '\\u22B4',\n\tltrif: '\\u25C2',\n\tltrPar: '\\u2996',\n\tlurdshar: '\\u294A',\n\tluruhar: '\\u2966',\n\tlvertneqq: '\\u2268\\uFE00',\n\tlvnE: '\\u2268\\uFE00',\n\tmacr: '\\u00AF',\n\tmale: '\\u2642',\n\tmalt: '\\u2720',\n\tmaltese: '\\u2720',\n\tMap: '\\u2905',\n\tmap: '\\u21A6',\n\tmapsto: '\\u21A6',\n\tmapstodown: '\\u21A7',\n\tmapstoleft: '\\u21A4',\n\tmapstoup: '\\u21A5',\n\tmarker: '\\u25AE',\n\tmcomma: '\\u2A29',\n\tMcy: '\\u041C',\n\tmcy: '\\u043C',\n\tmdash: '\\u2014',\n\tmDDot: '\\u223A',\n\tmeasuredangle: '\\u2221',\n\tMediumSpace: '\\u205F',\n\tMellintrf: '\\u2133',\n\tMfr: '\\uD835\\uDD10',\n\tmfr: '\\uD835\\uDD2A',\n\tmho: '\\u2127',\n\tmicro: '\\u00B5',\n\tmid: '\\u2223',\n\tmidast: '\\u002A',\n\tmidcir: '\\u2AF0',\n\tmiddot: '\\u00B7',\n\tminus: '\\u2212',\n\tminusb: '\\u229F',\n\tminusd: '\\u2238',\n\tminusdu: '\\u2A2A',\n\tMinusPlus: '\\u2213',\n\tmlcp: '\\u2ADB',\n\tmldr: '\\u2026',\n\tmnplus: '\\u2213',\n\tmodels: '\\u22A7',\n\tMopf: '\\uD835\\uDD44',\n\tmopf: '\\uD835\\uDD5E',\n\tmp: '\\u2213',\n\tMscr: '\\u2133',\n\tmscr: '\\uD835\\uDCC2',\n\tmstpos: '\\u223E',\n\tMu: '\\u039C',\n\tmu: '\\u03BC',\n\tmultimap: '\\u22B8',\n\tmumap: '\\u22B8',\n\tnabla: '\\u2207',\n\tNacute: '\\u0143',\n\tnacute: '\\u0144',\n\tnang: '\\u2220\\u20D2',\n\tnap: '\\u2249',\n\tnapE: '\\u2A70\\u0338',\n\tnapid: '\\u224B\\u0338',\n\tnapos: '\\u0149',\n\tnapprox: '\\u2249',\n\tnatur: '\\u266E',\n\tnatural: '\\u266E',\n\tnaturals: '\\u2115',\n\tnbsp: '\\u00A0',\n\tnbump: '\\u224E\\u0338',\n\tnbumpe: '\\u224F\\u0338',\n\tncap: '\\u2A43',\n\tNcaron: '\\u0147',\n\tncaron: '\\u0148',\n\tNcedil: '\\u0145',\n\tncedil: '\\u0146',\n\tncong: '\\u2247',\n\tncongdot: '\\u2A6D\\u0338',\n\tncup: '\\u2A42',\n\tNcy: '\\u041D',\n\tncy: '\\u043D',\n\tndash: '\\u2013',\n\tne: '\\u2260',\n\tnearhk: '\\u2924',\n\tneArr: '\\u21D7',\n\tnearr: '\\u2197',\n\tnearrow: '\\u2197',\n\tnedot: '\\u2250\\u0338',\n\tNegativeMediumSpace: '\\u200B',\n\tNegativeThickSpace: '\\u200B',\n\tNegativeThinSpace: '\\u200B',\n\tNegativeVeryThinSpace: '\\u200B',\n\tnequiv: '\\u2262',\n\tnesear: '\\u2928',\n\tnesim: '\\u2242\\u0338',\n\tNestedGreaterGreater: '\\u226B',\n\tNestedLessLess: '\\u226A',\n\tNewLine: '\\u000A',\n\tnexist: '\\u2204',\n\tnexists: '\\u2204',\n\tNfr: '\\uD835\\uDD11',\n\tnfr: '\\uD835\\uDD2B',\n\tngE: '\\u2267\\u0338',\n\tnge: '\\u2271',\n\tngeq: '\\u2271',\n\tngeqq: '\\u2267\\u0338',\n\tngeqslant: '\\u2A7E\\u0338',\n\tnges: '\\u2A7E\\u0338',\n\tnGg: '\\u22D9\\u0338',\n\tngsim: '\\u2275',\n\tnGt: '\\u226B\\u20D2',\n\tngt: '\\u226F',\n\tngtr: '\\u226F',\n\tnGtv: '\\u226B\\u0338',\n\tnhArr: '\\u21CE',\n\tnharr: '\\u21AE',\n\tnhpar: '\\u2AF2',\n\tni: '\\u220B',\n\tnis: '\\u22FC',\n\tnisd: '\\u22FA',\n\tniv: '\\u220B',\n\tNJcy: '\\u040A',\n\tnjcy: '\\u045A',\n\tnlArr: '\\u21CD',\n\tnlarr: '\\u219A',\n\tnldr: '\\u2025',\n\tnlE: '\\u2266\\u0338',\n\tnle: '\\u2270',\n\tnLeftarrow: '\\u21CD',\n\tnleftarrow: '\\u219A',\n\tnLeftrightarrow: '\\u21CE',\n\tnleftrightarrow: '\\u21AE',\n\tnleq: '\\u2270',\n\tnleqq: '\\u2266\\u0338',\n\tnleqslant: '\\u2A7D\\u0338',\n\tnles: '\\u2A7D\\u0338',\n\tnless: '\\u226E',\n\tnLl: '\\u22D8\\u0338',\n\tnlsim: '\\u2274',\n\tnLt: '\\u226A\\u20D2',\n\tnlt: '\\u226E',\n\tnltri: '\\u22EA',\n\tnltrie: '\\u22EC',\n\tnLtv: '\\u226A\\u0338',\n\tnmid: '\\u2224',\n\tNoBreak: '\\u2060',\n\tNonBreakingSpace: '\\u00A0',\n\tNopf: '\\u2115',\n\tnopf: '\\uD835\\uDD5F',\n\tNot: '\\u2AEC',\n\tnot: '\\u00AC',\n\tNotCongruent: '\\u2262',\n\tNotCupCap: '\\u226D',\n\tNotDoubleVerticalBar: '\\u2226',\n\tNotElement: '\\u2209',\n\tNotEqual: '\\u2260',\n\tNotEqualTilde: '\\u2242\\u0338',\n\tNotExists: '\\u2204',\n\tNotGreater: '\\u226F',\n\tNotGreaterEqual: '\\u2271',\n\tNotGreaterFullEqual: '\\u2267\\u0338',\n\tNotGreaterGreater: '\\u226B\\u0338',\n\tNotGreaterLess: '\\u2279',\n\tNotGreaterSlantEqual: '\\u2A7E\\u0338',\n\tNotGreaterTilde: '\\u2275',\n\tNotHumpDownHump: '\\u224E\\u0338',\n\tNotHumpEqual: '\\u224F\\u0338',\n\tnotin: '\\u2209',\n\tnotindot: '\\u22F5\\u0338',\n\tnotinE: '\\u22F9\\u0338',\n\tnotinva: '\\u2209',\n\tnotinvb: '\\u22F7',\n\tnotinvc: '\\u22F6',\n\tNotLeftTriangle: '\\u22EA',\n\tNotLeftTriangleBar: '\\u29CF\\u0338',\n\tNotLeftTriangleEqual: '\\u22EC',\n\tNotLess: '\\u226E',\n\tNotLessEqual: '\\u2270',\n\tNotLessGreater: '\\u2278',\n\tNotLessLess: '\\u226A\\u0338',\n\tNotLessSlantEqual: '\\u2A7D\\u0338',\n\tNotLessTilde: '\\u2274',\n\tNotNestedGreaterGreater: '\\u2AA2\\u0338',\n\tNotNestedLessLess: '\\u2AA1\\u0338',\n\tnotni: '\\u220C',\n\tnotniva: '\\u220C',\n\tnotnivb: '\\u22FE',\n\tnotnivc: '\\u22FD',\n\tNotPrecedes: '\\u2280',\n\tNotPrecedesEqual: '\\u2AAF\\u0338',\n\tNotPrecedesSlantEqual: '\\u22E0',\n\tNotReverseElement: '\\u220C',\n\tNotRightTriangle: '\\u22EB',\n\tNotRightTriangleBar: '\\u29D0\\u0338',\n\tNotRightTriangleEqual: '\\u22ED',\n\tNotSquareSubset: '\\u228F\\u0338',\n\tNotSquareSubsetEqual: '\\u22E2',\n\tNotSquareSuperset: '\\u2290\\u0338',\n\tNotSquareSupersetEqual: '\\u22E3',\n\tNotSubset: '\\u2282\\u20D2',\n\tNotSubsetEqual: '\\u2288',\n\tNotSucceeds: '\\u2281',\n\tNotSucceedsEqual: '\\u2AB0\\u0338',\n\tNotSucceedsSlantEqual: '\\u22E1',\n\tNotSucceedsTilde: '\\u227F\\u0338',\n\tNotSuperset: '\\u2283\\u20D2',\n\tNotSupersetEqual: '\\u2289',\n\tNotTilde: '\\u2241',\n\tNotTildeEqual: '\\u2244',\n\tNotTildeFullEqual: '\\u2247',\n\tNotTildeTilde: '\\u2249',\n\tNotVerticalBar: '\\u2224',\n\tnpar: '\\u2226',\n\tnparallel: '\\u2226',\n\tnparsl: '\\u2AFD\\u20E5',\n\tnpart: '\\u2202\\u0338',\n\tnpolint: '\\u2A14',\n\tnpr: '\\u2280',\n\tnprcue: '\\u22E0',\n\tnpre: '\\u2AAF\\u0338',\n\tnprec: '\\u2280',\n\tnpreceq: '\\u2AAF\\u0338',\n\tnrArr: '\\u21CF',\n\tnrarr: '\\u219B',\n\tnrarrc: '\\u2933\\u0338',\n\tnrarrw: '\\u219D\\u0338',\n\tnRightarrow: '\\u21CF',\n\tnrightarrow: '\\u219B',\n\tnrtri: '\\u22EB',\n\tnrtrie: '\\u22ED',\n\tnsc: '\\u2281',\n\tnsccue: '\\u22E1',\n\tnsce: '\\u2AB0\\u0338',\n\tNscr: '\\uD835\\uDCA9',\n\tnscr: '\\uD835\\uDCC3',\n\tnshortmid: '\\u2224',\n\tnshortparallel: '\\u2226',\n\tnsim: '\\u2241',\n\tnsime: '\\u2244',\n\tnsimeq: '\\u2244',\n\tnsmid: '\\u2224',\n\tnspar: '\\u2226',\n\tnsqsube: '\\u22E2',\n\tnsqsupe: '\\u22E3',\n\tnsub: '\\u2284',\n\tnsubE: '\\u2AC5\\u0338',\n\tnsube: '\\u2288',\n\tnsubset: '\\u2282\\u20D2',\n\tnsubseteq: '\\u2288',\n\tnsubseteqq: '\\u2AC5\\u0338',\n\tnsucc: '\\u2281',\n\tnsucceq: '\\u2AB0\\u0338',\n\tnsup: '\\u2285',\n\tnsupE: '\\u2AC6\\u0338',\n\tnsupe: '\\u2289',\n\tnsupset: '\\u2283\\u20D2',\n\tnsupseteq: '\\u2289',\n\tnsupseteqq: '\\u2AC6\\u0338',\n\tntgl: '\\u2279',\n\tNtilde: '\\u00D1',\n\tntilde: '\\u00F1',\n\tntlg: '\\u2278',\n\tntriangleleft: '\\u22EA',\n\tntrianglelefteq: '\\u22EC',\n\tntriangleright: '\\u22EB',\n\tntrianglerighteq: '\\u22ED',\n\tNu: '\\u039D',\n\tnu: '\\u03BD',\n\tnum: '\\u0023',\n\tnumero: '\\u2116',\n\tnumsp: '\\u2007',\n\tnvap: '\\u224D\\u20D2',\n\tnVDash: '\\u22AF',\n\tnVdash: '\\u22AE',\n\tnvDash: '\\u22AD',\n\tnvdash: '\\u22AC',\n\tnvge: '\\u2265\\u20D2',\n\tnvgt: '\\u003E\\u20D2',\n\tnvHarr: '\\u2904',\n\tnvinfin: '\\u29DE',\n\tnvlArr: '\\u2902',\n\tnvle: '\\u2264\\u20D2',\n\tnvlt: '\\u003C\\u20D2',\n\tnvltrie: '\\u22B4\\u20D2',\n\tnvrArr: '\\u2903',\n\tnvrtrie: '\\u22B5\\u20D2',\n\tnvsim: '\\u223C\\u20D2',\n\tnwarhk: '\\u2923',\n\tnwArr: '\\u21D6',\n\tnwarr: '\\u2196',\n\tnwarrow: '\\u2196',\n\tnwnear: '\\u2927',\n\tOacute: '\\u00D3',\n\toacute: '\\u00F3',\n\toast: '\\u229B',\n\tocir: '\\u229A',\n\tOcirc: '\\u00D4',\n\tocirc: '\\u00F4',\n\tOcy: '\\u041E',\n\tocy: '\\u043E',\n\todash: '\\u229D',\n\tOdblac: '\\u0150',\n\todblac: '\\u0151',\n\todiv: '\\u2A38',\n\todot: '\\u2299',\n\todsold: '\\u29BC',\n\tOElig: '\\u0152',\n\toelig: '\\u0153',\n\tofcir: '\\u29BF',\n\tOfr: '\\uD835\\uDD12',\n\tofr: '\\uD835\\uDD2C',\n\togon: '\\u02DB',\n\tOgrave: '\\u00D2',\n\tograve: '\\u00F2',\n\togt: '\\u29C1',\n\tohbar: '\\u29B5',\n\tohm: '\\u03A9',\n\toint: '\\u222E',\n\tolarr: '\\u21BA',\n\tolcir: '\\u29BE',\n\tolcross: '\\u29BB',\n\toline: '\\u203E',\n\tolt: '\\u29C0',\n\tOmacr: '\\u014C',\n\tomacr: '\\u014D',\n\tOmega: '\\u03A9',\n\tomega: '\\u03C9',\n\tOmicron: '\\u039F',\n\tomicron: '\\u03BF',\n\tomid: '\\u29B6',\n\tominus: '\\u2296',\n\tOopf: '\\uD835\\uDD46',\n\toopf: '\\uD835\\uDD60',\n\topar: '\\u29B7',\n\tOpenCurlyDoubleQuote: '\\u201C',\n\tOpenCurlyQuote: '\\u2018',\n\toperp: '\\u29B9',\n\toplus: '\\u2295',\n\tOr: '\\u2A54',\n\tor: '\\u2228',\n\torarr: '\\u21BB',\n\tord: '\\u2A5D',\n\torder: '\\u2134',\n\torderof: '\\u2134',\n\tordf: '\\u00AA',\n\tordm: '\\u00BA',\n\torigof: '\\u22B6',\n\toror: '\\u2A56',\n\torslope: '\\u2A57',\n\torv: '\\u2A5B',\n\toS: '\\u24C8',\n\tOscr: '\\uD835\\uDCAA',\n\toscr: '\\u2134',\n\tOslash: '\\u00D8',\n\toslash: '\\u00F8',\n\tosol: '\\u2298',\n\tOtilde: '\\u00D5',\n\totilde: '\\u00F5',\n\tOtimes: '\\u2A37',\n\totimes: '\\u2297',\n\totimesas: '\\u2A36',\n\tOuml: '\\u00D6',\n\touml: '\\u00F6',\n\tovbar: '\\u233D',\n\tOverBar: '\\u203E',\n\tOverBrace: '\\u23DE',\n\tOverBracket: '\\u23B4',\n\tOverParenthesis: '\\u23DC',\n\tpar: '\\u2225',\n\tpara: '\\u00B6',\n\tparallel: '\\u2225',\n\tparsim: '\\u2AF3',\n\tparsl: '\\u2AFD',\n\tpart: '\\u2202',\n\tPartialD: '\\u2202',\n\tPcy: '\\u041F',\n\tpcy: '\\u043F',\n\tpercnt: '\\u0025',\n\tperiod: '\\u002E',\n\tpermil: '\\u2030',\n\tperp: '\\u22A5',\n\tpertenk: '\\u2031',\n\tPfr: '\\uD835\\uDD13',\n\tpfr: '\\uD835\\uDD2D',\n\tPhi: '\\u03A6',\n\tphi: '\\u03C6',\n\tphiv: '\\u03D5',\n\tphmmat: '\\u2133',\n\tphone: '\\u260E',\n\tPi: '\\u03A0',\n\tpi: '\\u03C0',\n\tpitchfork: '\\u22D4',\n\tpiv: '\\u03D6',\n\tplanck: '\\u210F',\n\tplanckh: '\\u210E',\n\tplankv: '\\u210F',\n\tplus: '\\u002B',\n\tplusacir: '\\u2A23',\n\tplusb: '\\u229E',\n\tpluscir: '\\u2A22',\n\tplusdo: '\\u2214',\n\tplusdu: '\\u2A25',\n\tpluse: '\\u2A72',\n\tPlusMinus: '\\u00B1',\n\tplusmn: '\\u00B1',\n\tplussim: '\\u2A26',\n\tplustwo: '\\u2A27',\n\tpm: '\\u00B1',\n\tPoincareplane: '\\u210C',\n\tpointint: '\\u2A15',\n\tPopf: '\\u2119',\n\tpopf: '\\uD835\\uDD61',\n\tpound: '\\u00A3',\n\tPr: '\\u2ABB',\n\tpr: '\\u227A',\n\tprap: '\\u2AB7',\n\tprcue: '\\u227C',\n\tprE: '\\u2AB3',\n\tpre: '\\u2AAF',\n\tprec: '\\u227A',\n\tprecapprox: '\\u2AB7',\n\tpreccurlyeq: '\\u227C',\n\tPrecedes: '\\u227A',\n\tPrecedesEqual: '\\u2AAF',\n\tPrecedesSlantEqual: '\\u227C',\n\tPrecedesTilde: '\\u227E',\n\tpreceq: '\\u2AAF',\n\tprecnapprox: '\\u2AB9',\n\tprecneqq: '\\u2AB5',\n\tprecnsim: '\\u22E8',\n\tprecsim: '\\u227E',\n\tPrime: '\\u2033',\n\tprime: '\\u2032',\n\tprimes: '\\u2119',\n\tprnap: '\\u2AB9',\n\tprnE: '\\u2AB5',\n\tprnsim: '\\u22E8',\n\tprod: '\\u220F',\n\tProduct: '\\u220F',\n\tprofalar: '\\u232E',\n\tprofline: '\\u2312',\n\tprofsurf: '\\u2313',\n\tprop: '\\u221D',\n\tProportion: '\\u2237',\n\tProportional: '\\u221D',\n\tpropto: '\\u221D',\n\tprsim: '\\u227E',\n\tprurel: '\\u22B0',\n\tPscr: '\\uD835\\uDCAB',\n\tpscr: '\\uD835\\uDCC5',\n\tPsi: '\\u03A8',\n\tpsi: '\\u03C8',\n\tpuncsp: '\\u2008',\n\tQfr: '\\uD835\\uDD14',\n\tqfr: '\\uD835\\uDD2E',\n\tqint: '\\u2A0C',\n\tQopf: '\\u211A',\n\tqopf: '\\uD835\\uDD62',\n\tqprime: '\\u2057',\n\tQscr: '\\uD835\\uDCAC',\n\tqscr: '\\uD835\\uDCC6',\n\tquaternions: '\\u210D',\n\tquatint: '\\u2A16',\n\tquest: '\\u003F',\n\tquesteq: '\\u225F',\n\tQUOT: '\\u0022',\n\tquot: '\\u0022',\n\trAarr: '\\u21DB',\n\trace: '\\u223D\\u0331',\n\tRacute: '\\u0154',\n\tracute: '\\u0155',\n\tradic: '\\u221A',\n\traemptyv: '\\u29B3',\n\tRang: '\\u27EB',\n\trang: '\\u27E9',\n\trangd: '\\u2992',\n\trange: '\\u29A5',\n\trangle: '\\u27E9',\n\traquo: '\\u00BB',\n\tRarr: '\\u21A0',\n\trArr: '\\u21D2',\n\trarr: '\\u2192',\n\trarrap: '\\u2975',\n\trarrb: '\\u21E5',\n\trarrbfs: '\\u2920',\n\trarrc: '\\u2933',\n\trarrfs: '\\u291E',\n\trarrhk: '\\u21AA',\n\trarrlp: '\\u21AC',\n\trarrpl: '\\u2945',\n\trarrsim: '\\u2974',\n\tRarrtl: '\\u2916',\n\trarrtl: '\\u21A3',\n\trarrw: '\\u219D',\n\trAtail: '\\u291C',\n\tratail: '\\u291A',\n\tratio: '\\u2236',\n\trationals: '\\u211A',\n\tRBarr: '\\u2910',\n\trBarr: '\\u290F',\n\trbarr: '\\u290D',\n\trbbrk: '\\u2773',\n\trbrace: '\\u007D',\n\trbrack: '\\u005D',\n\trbrke: '\\u298C',\n\trbrksld: '\\u298E',\n\trbrkslu: '\\u2990',\n\tRcaron: '\\u0158',\n\trcaron: '\\u0159',\n\tRcedil: '\\u0156',\n\trcedil: '\\u0157',\n\trceil: '\\u2309',\n\trcub: '\\u007D',\n\tRcy: '\\u0420',\n\trcy: '\\u0440',\n\trdca: '\\u2937',\n\trdldhar: '\\u2969',\n\trdquo: '\\u201D',\n\trdquor: '\\u201D',\n\trdsh: '\\u21B3',\n\tRe: '\\u211C',\n\treal: '\\u211C',\n\trealine: '\\u211B',\n\trealpart: '\\u211C',\n\treals: '\\u211D',\n\trect: '\\u25AD',\n\tREG: '\\u00AE',\n\treg: '\\u00AE',\n\tReverseElement: '\\u220B',\n\tReverseEquilibrium: '\\u21CB',\n\tReverseUpEquilibrium: '\\u296F',\n\trfisht: '\\u297D',\n\trfloor: '\\u230B',\n\tRfr: '\\u211C',\n\trfr: '\\uD835\\uDD2F',\n\trHar: '\\u2964',\n\trhard: '\\u21C1',\n\trharu: '\\u21C0',\n\trharul: '\\u296C',\n\tRho: '\\u03A1',\n\trho: '\\u03C1',\n\trhov: '\\u03F1',\n\tRightAngleBracket: '\\u27E9',\n\tRightArrow: '\\u2192',\n\tRightarrow: '\\u21D2',\n\trightarrow: '\\u2192',\n\tRightArrowBar: '\\u21E5',\n\tRightArrowLeftArrow: '\\u21C4',\n\trightarrowtail: '\\u21A3',\n\tRightCeiling: '\\u2309',\n\tRightDoubleBracket: '\\u27E7',\n\tRightDownTeeVector: '\\u295D',\n\tRightDownVector: '\\u21C2',\n\tRightDownVectorBar: '\\u2955',\n\tRightFloor: '\\u230B',\n\trightharpoondown: '\\u21C1',\n\trightharpoonup: '\\u21C0',\n\trightleftarrows: '\\u21C4',\n\trightleftharpoons: '\\u21CC',\n\trightrightarrows: '\\u21C9',\n\trightsquigarrow: '\\u219D',\n\tRightTee: '\\u22A2',\n\tRightTeeArrow: '\\u21A6',\n\tRightTeeVector: '\\u295B',\n\trightthreetimes: '\\u22CC',\n\tRightTriangle: '\\u22B3',\n\tRightTriangleBar: '\\u29D0',\n\tRightTriangleEqual: '\\u22B5',\n\tRightUpDownVector: '\\u294F',\n\tRightUpTeeVector: '\\u295C',\n\tRightUpVector: '\\u21BE',\n\tRightUpVectorBar: '\\u2954',\n\tRightVector: '\\u21C0',\n\tRightVectorBar: '\\u2953',\n\tring: '\\u02DA',\n\trisingdotseq: '\\u2253',\n\trlarr: '\\u21C4',\n\trlhar: '\\u21CC',\n\trlm: '\\u200F',\n\trmoust: '\\u23B1',\n\trmoustache: '\\u23B1',\n\trnmid: '\\u2AEE',\n\troang: '\\u27ED',\n\troarr: '\\u21FE',\n\trobrk: '\\u27E7',\n\tropar: '\\u2986',\n\tRopf: '\\u211D',\n\tropf: '\\uD835\\uDD63',\n\troplus: '\\u2A2E',\n\trotimes: '\\u2A35',\n\tRoundImplies: '\\u2970',\n\trpar: '\\u0029',\n\trpargt: '\\u2994',\n\trppolint: '\\u2A12',\n\trrarr: '\\u21C9',\n\tRrightarrow: '\\u21DB',\n\trsaquo: '\\u203A',\n\tRscr: '\\u211B',\n\trscr: '\\uD835\\uDCC7',\n\tRsh: '\\u21B1',\n\trsh: '\\u21B1',\n\trsqb: '\\u005D',\n\trsquo: '\\u2019',\n\trsquor: '\\u2019',\n\trthree: '\\u22CC',\n\trtimes: '\\u22CA',\n\trtri: '\\u25B9',\n\trtrie: '\\u22B5',\n\trtrif: '\\u25B8',\n\trtriltri: '\\u29CE',\n\tRuleDelayed: '\\u29F4',\n\truluhar: '\\u2968',\n\trx: '\\u211E',\n\tSacute: '\\u015A',\n\tsacute: '\\u015B',\n\tsbquo: '\\u201A',\n\tSc: '\\u2ABC',\n\tsc: '\\u227B',\n\tscap: '\\u2AB8',\n\tScaron: '\\u0160',\n\tscaron: '\\u0161',\n\tsccue: '\\u227D',\n\tscE: '\\u2AB4',\n\tsce: '\\u2AB0',\n\tScedil: '\\u015E',\n\tscedil: '\\u015F',\n\tScirc: '\\u015C',\n\tscirc: '\\u015D',\n\tscnap: '\\u2ABA',\n\tscnE: '\\u2AB6',\n\tscnsim: '\\u22E9',\n\tscpolint: '\\u2A13',\n\tscsim: '\\u227F',\n\tScy: '\\u0421',\n\tscy: '\\u0441',\n\tsdot: '\\u22C5',\n\tsdotb: '\\u22A1',\n\tsdote: '\\u2A66',\n\tsearhk: '\\u2925',\n\tseArr: '\\u21D8',\n\tsearr: '\\u2198',\n\tsearrow: '\\u2198',\n\tsect: '\\u00A7',\n\tsemi: '\\u003B',\n\tseswar: '\\u2929',\n\tsetminus: '\\u2216',\n\tsetmn: '\\u2216',\n\tsext: '\\u2736',\n\tSfr: '\\uD835\\uDD16',\n\tsfr: '\\uD835\\uDD30',\n\tsfrown: '\\u2322',\n\tsharp: '\\u266F',\n\tSHCHcy: '\\u0429',\n\tshchcy: '\\u0449',\n\tSHcy: '\\u0428',\n\tshcy: '\\u0448',\n\tShortDownArrow: '\\u2193',\n\tShortLeftArrow: '\\u2190',\n\tshortmid: '\\u2223',\n\tshortparallel: '\\u2225',\n\tShortRightArrow: '\\u2192',\n\tShortUpArrow: '\\u2191',\n\tshy: '\\u00AD',\n\tSigma: '\\u03A3',\n\tsigma: '\\u03C3',\n\tsigmaf: '\\u03C2',\n\tsigmav: '\\u03C2',\n\tsim: '\\u223C',\n\tsimdot: '\\u2A6A',\n\tsime: '\\u2243',\n\tsimeq: '\\u2243',\n\tsimg: '\\u2A9E',\n\tsimgE: '\\u2AA0',\n\tsiml: '\\u2A9D',\n\tsimlE: '\\u2A9F',\n\tsimne: '\\u2246',\n\tsimplus: '\\u2A24',\n\tsimrarr: '\\u2972',\n\tslarr: '\\u2190',\n\tSmallCircle: '\\u2218',\n\tsmallsetminus: '\\u2216',\n\tsmashp: '\\u2A33',\n\tsmeparsl: '\\u29E4',\n\tsmid: '\\u2223',\n\tsmile: '\\u2323',\n\tsmt: '\\u2AAA',\n\tsmte: '\\u2AAC',\n\tsmtes: '\\u2AAC\\uFE00',\n\tSOFTcy: '\\u042C',\n\tsoftcy: '\\u044C',\n\tsol: '\\u002F',\n\tsolb: '\\u29C4',\n\tsolbar: '\\u233F',\n\tSopf: '\\uD835\\uDD4A',\n\tsopf: '\\uD835\\uDD64',\n\tspades: '\\u2660',\n\tspadesuit: '\\u2660',\n\tspar: '\\u2225',\n\tsqcap: '\\u2293',\n\tsqcaps: '\\u2293\\uFE00',\n\tsqcup: '\\u2294',\n\tsqcups: '\\u2294\\uFE00',\n\tSqrt: '\\u221A',\n\tsqsub: '\\u228F',\n\tsqsube: '\\u2291',\n\tsqsubset: '\\u228F',\n\tsqsubseteq: '\\u2291',\n\tsqsup: '\\u2290',\n\tsqsupe: '\\u2292',\n\tsqsupset: '\\u2290',\n\tsqsupseteq: '\\u2292',\n\tsqu: '\\u25A1',\n\tSquare: '\\u25A1',\n\tsquare: '\\u25A1',\n\tSquareIntersection: '\\u2293',\n\tSquareSubset: '\\u228F',\n\tSquareSubsetEqual: '\\u2291',\n\tSquareSuperset: '\\u2290',\n\tSquareSupersetEqual: '\\u2292',\n\tSquareUnion: '\\u2294',\n\tsquarf: '\\u25AA',\n\tsquf: '\\u25AA',\n\tsrarr: '\\u2192',\n\tSscr: '\\uD835\\uDCAE',\n\tsscr: '\\uD835\\uDCC8',\n\tssetmn: '\\u2216',\n\tssmile: '\\u2323',\n\tsstarf: '\\u22C6',\n\tStar: '\\u22C6',\n\tstar: '\\u2606',\n\tstarf: '\\u2605',\n\tstraightepsilon: '\\u03F5',\n\tstraightphi: '\\u03D5',\n\tstrns: '\\u00AF',\n\tSub: '\\u22D0',\n\tsub: '\\u2282',\n\tsubdot: '\\u2ABD',\n\tsubE: '\\u2AC5',\n\tsube: '\\u2286',\n\tsubedot: '\\u2AC3',\n\tsubmult: '\\u2AC1',\n\tsubnE: '\\u2ACB',\n\tsubne: '\\u228A',\n\tsubplus: '\\u2ABF',\n\tsubrarr: '\\u2979',\n\tSubset: '\\u22D0',\n\tsubset: '\\u2282',\n\tsubseteq: '\\u2286',\n\tsubseteqq: '\\u2AC5',\n\tSubsetEqual: '\\u2286',\n\tsubsetneq: '\\u228A',\n\tsubsetneqq: '\\u2ACB',\n\tsubsim: '\\u2AC7',\n\tsubsub: '\\u2AD5',\n\tsubsup: '\\u2AD3',\n\tsucc: '\\u227B',\n\tsuccapprox: '\\u2AB8',\n\tsucccurlyeq: '\\u227D',\n\tSucceeds: '\\u227B',\n\tSucceedsEqual: '\\u2AB0',\n\tSucceedsSlantEqual: '\\u227D',\n\tSucceedsTilde: '\\u227F',\n\tsucceq: '\\u2AB0',\n\tsuccnapprox: '\\u2ABA',\n\tsuccneqq: '\\u2AB6',\n\tsuccnsim: '\\u22E9',\n\tsuccsim: '\\u227F',\n\tSuchThat: '\\u220B',\n\tSum: '\\u2211',\n\tsum: '\\u2211',\n\tsung: '\\u266A',\n\tSup: '\\u22D1',\n\tsup: '\\u2283',\n\tsup1: '\\u00B9',\n\tsup2: '\\u00B2',\n\tsup3: '\\u00B3',\n\tsupdot: '\\u2ABE',\n\tsupdsub: '\\u2AD8',\n\tsupE: '\\u2AC6',\n\tsupe: '\\u2287',\n\tsupedot: '\\u2AC4',\n\tSuperset: '\\u2283',\n\tSupersetEqual: '\\u2287',\n\tsuphsol: '\\u27C9',\n\tsuphsub: '\\u2AD7',\n\tsuplarr: '\\u297B',\n\tsupmult: '\\u2AC2',\n\tsupnE: '\\u2ACC',\n\tsupne: '\\u228B',\n\tsupplus: '\\u2AC0',\n\tSupset: '\\u22D1',\n\tsupset: '\\u2283',\n\tsupseteq: '\\u2287',\n\tsupseteqq: '\\u2AC6',\n\tsupsetneq: '\\u228B',\n\tsupsetneqq: '\\u2ACC',\n\tsupsim: '\\u2AC8',\n\tsupsub: '\\u2AD4',\n\tsupsup: '\\u2AD6',\n\tswarhk: '\\u2926',\n\tswArr: '\\u21D9',\n\tswarr: '\\u2199',\n\tswarrow: '\\u2199',\n\tswnwar: '\\u292A',\n\tszlig: '\\u00DF',\n\tTab: '\\u0009',\n\ttarget: '\\u2316',\n\tTau: '\\u03A4',\n\ttau: '\\u03C4',\n\ttbrk: '\\u23B4',\n\tTcaron: '\\u0164',\n\ttcaron: '\\u0165',\n\tTcedil: '\\u0162',\n\ttcedil: '\\u0163',\n\tTcy: '\\u0422',\n\ttcy: '\\u0442',\n\ttdot: '\\u20DB',\n\ttelrec: '\\u2315',\n\tTfr: '\\uD835\\uDD17',\n\ttfr: '\\uD835\\uDD31',\n\tthere4: '\\u2234',\n\tTherefore: '\\u2234',\n\ttherefore: '\\u2234',\n\tTheta: '\\u0398',\n\ttheta: '\\u03B8',\n\tthetasym: '\\u03D1',\n\tthetav: '\\u03D1',\n\tthickapprox: '\\u2248',\n\tthicksim: '\\u223C',\n\tThickSpace: '\\u205F\\u200A',\n\tthinsp: '\\u2009',\n\tThinSpace: '\\u2009',\n\tthkap: '\\u2248',\n\tthksim: '\\u223C',\n\tTHORN: '\\u00DE',\n\tthorn: '\\u00FE',\n\tTilde: '\\u223C',\n\ttilde: '\\u02DC',\n\tTildeEqual: '\\u2243',\n\tTildeFullEqual: '\\u2245',\n\tTildeTilde: '\\u2248',\n\ttimes: '\\u00D7',\n\ttimesb: '\\u22A0',\n\ttimesbar: '\\u2A31',\n\ttimesd: '\\u2A30',\n\ttint: '\\u222D',\n\ttoea: '\\u2928',\n\ttop: '\\u22A4',\n\ttopbot: '\\u2336',\n\ttopcir: '\\u2AF1',\n\tTopf: '\\uD835\\uDD4B',\n\ttopf: '\\uD835\\uDD65',\n\ttopfork: '\\u2ADA',\n\ttosa: '\\u2929',\n\ttprime: '\\u2034',\n\tTRADE: '\\u2122',\n\ttrade: '\\u2122',\n\ttriangle: '\\u25B5',\n\ttriangledown: '\\u25BF',\n\ttriangleleft: '\\u25C3',\n\ttrianglelefteq: '\\u22B4',\n\ttriangleq: '\\u225C',\n\ttriangleright: '\\u25B9',\n\ttrianglerighteq: '\\u22B5',\n\ttridot: '\\u25EC',\n\ttrie: '\\u225C',\n\ttriminus: '\\u2A3A',\n\tTripleDot: '\\u20DB',\n\ttriplus: '\\u2A39',\n\ttrisb: '\\u29CD',\n\ttritime: '\\u2A3B',\n\ttrpezium: '\\u23E2',\n\tTscr: '\\uD835\\uDCAF',\n\ttscr: '\\uD835\\uDCC9',\n\tTScy: '\\u0426',\n\ttscy: '\\u0446',\n\tTSHcy: '\\u040B',\n\ttshcy: '\\u045B',\n\tTstrok: '\\u0166',\n\ttstrok: '\\u0167',\n\ttwixt: '\\u226C',\n\ttwoheadleftarrow: '\\u219E',\n\ttwoheadrightarrow: '\\u21A0',\n\tUacute: '\\u00DA',\n\tuacute: '\\u00FA',\n\tUarr: '\\u219F',\n\tuArr: '\\u21D1',\n\tuarr: '\\u2191',\n\tUarrocir: '\\u2949',\n\tUbrcy: '\\u040E',\n\tubrcy: '\\u045E',\n\tUbreve: '\\u016C',\n\tubreve: '\\u016D',\n\tUcirc: '\\u00DB',\n\tucirc: '\\u00FB',\n\tUcy: '\\u0423',\n\tucy: '\\u0443',\n\tudarr: '\\u21C5',\n\tUdblac: '\\u0170',\n\tudblac: '\\u0171',\n\tudhar: '\\u296E',\n\tufisht: '\\u297E',\n\tUfr: '\\uD835\\uDD18',\n\tufr: '\\uD835\\uDD32',\n\tUgrave: '\\u00D9',\n\tugrave: '\\u00F9',\n\tuHar: '\\u2963',\n\tuharl: '\\u21BF',\n\tuharr: '\\u21BE',\n\tuhblk: '\\u2580',\n\tulcorn: '\\u231C',\n\tulcorner: '\\u231C',\n\tulcrop: '\\u230F',\n\tultri: '\\u25F8',\n\tUmacr: '\\u016A',\n\tumacr: '\\u016B',\n\tuml: '\\u00A8',\n\tUnderBar: '\\u005F',\n\tUnderBrace: '\\u23DF',\n\tUnderBracket: '\\u23B5',\n\tUnderParenthesis: '\\u23DD',\n\tUnion: '\\u22C3',\n\tUnionPlus: '\\u228E',\n\tUogon: '\\u0172',\n\tuogon: '\\u0173',\n\tUopf: '\\uD835\\uDD4C',\n\tuopf: '\\uD835\\uDD66',\n\tUpArrow: '\\u2191',\n\tUparrow: '\\u21D1',\n\tuparrow: '\\u2191',\n\tUpArrowBar: '\\u2912',\n\tUpArrowDownArrow: '\\u21C5',\n\tUpDownArrow: '\\u2195',\n\tUpdownarrow: '\\u21D5',\n\tupdownarrow: '\\u2195',\n\tUpEquilibrium: '\\u296E',\n\tupharpoonleft: '\\u21BF',\n\tupharpoonright: '\\u21BE',\n\tuplus: '\\u228E',\n\tUpperLeftArrow: '\\u2196',\n\tUpperRightArrow: '\\u2197',\n\tUpsi: '\\u03D2',\n\tupsi: '\\u03C5',\n\tupsih: '\\u03D2',\n\tUpsilon: '\\u03A5',\n\tupsilon: '\\u03C5',\n\tUpTee: '\\u22A5',\n\tUpTeeArrow: '\\u21A5',\n\tupuparrows: '\\u21C8',\n\turcorn: '\\u231D',\n\turcorner: '\\u231D',\n\turcrop: '\\u230E',\n\tUring: '\\u016E',\n\turing: '\\u016F',\n\turtri: '\\u25F9',\n\tUscr: '\\uD835\\uDCB0',\n\tuscr: '\\uD835\\uDCCA',\n\tutdot: '\\u22F0',\n\tUtilde: '\\u0168',\n\tutilde: '\\u0169',\n\tutri: '\\u25B5',\n\tutrif: '\\u25B4',\n\tuuarr: '\\u21C8',\n\tUuml: '\\u00DC',\n\tuuml: '\\u00FC',\n\tuwangle: '\\u29A7',\n\tvangrt: '\\u299C',\n\tvarepsilon: '\\u03F5',\n\tvarkappa: '\\u03F0',\n\tvarnothing: '\\u2205',\n\tvarphi: '\\u03D5',\n\tvarpi: '\\u03D6',\n\tvarpropto: '\\u221D',\n\tvArr: '\\u21D5',\n\tvarr: '\\u2195',\n\tvarrho: '\\u03F1',\n\tvarsigma: '\\u03C2',\n\tvarsubsetneq: '\\u228A\\uFE00',\n\tvarsubsetneqq: '\\u2ACB\\uFE00',\n\tvarsupsetneq: '\\u228B\\uFE00',\n\tvarsupsetneqq: '\\u2ACC\\uFE00',\n\tvartheta: '\\u03D1',\n\tvartriangleleft: '\\u22B2',\n\tvartriangleright: '\\u22B3',\n\tVbar: '\\u2AEB',\n\tvBar: '\\u2AE8',\n\tvBarv: '\\u2AE9',\n\tVcy: '\\u0412',\n\tvcy: '\\u0432',\n\tVDash: '\\u22AB',\n\tVdash: '\\u22A9',\n\tvDash: '\\u22A8',\n\tvdash: '\\u22A2',\n\tVdashl: '\\u2AE6',\n\tVee: '\\u22C1',\n\tvee: '\\u2228',\n\tveebar: '\\u22BB',\n\tveeeq: '\\u225A',\n\tvellip: '\\u22EE',\n\tVerbar: '\\u2016',\n\tverbar: '\\u007C',\n\tVert: '\\u2016',\n\tvert: '\\u007C',\n\tVerticalBar: '\\u2223',\n\tVerticalLine: '\\u007C',\n\tVerticalSeparator: '\\u2758',\n\tVerticalTilde: '\\u2240',\n\tVeryThinSpace: '\\u200A',\n\tVfr: '\\uD835\\uDD19',\n\tvfr: '\\uD835\\uDD33',\n\tvltri: '\\u22B2',\n\tvnsub: '\\u2282\\u20D2',\n\tvnsup: '\\u2283\\u20D2',\n\tVopf: '\\uD835\\uDD4D',\n\tvopf: '\\uD835\\uDD67',\n\tvprop: '\\u221D',\n\tvrtri: '\\u22B3',\n\tVscr: '\\uD835\\uDCB1',\n\tvscr: '\\uD835\\uDCCB',\n\tvsubnE: '\\u2ACB\\uFE00',\n\tvsubne: '\\u228A\\uFE00',\n\tvsupnE: '\\u2ACC\\uFE00',\n\tvsupne: '\\u228B\\uFE00',\n\tVvdash: '\\u22AA',\n\tvzigzag: '\\u299A',\n\tWcirc: '\\u0174',\n\twcirc: '\\u0175',\n\twedbar: '\\u2A5F',\n\tWedge: '\\u22C0',\n\twedge: '\\u2227',\n\twedgeq: '\\u2259',\n\tweierp: '\\u2118',\n\tWfr: '\\uD835\\uDD1A',\n\twfr: '\\uD835\\uDD34',\n\tWopf: '\\uD835\\uDD4E',\n\twopf: '\\uD835\\uDD68',\n\twp: '\\u2118',\n\twr: '\\u2240',\n\twreath: '\\u2240',\n\tWscr: '\\uD835\\uDCB2',\n\twscr: '\\uD835\\uDCCC',\n\txcap: '\\u22C2',\n\txcirc: '\\u25EF',\n\txcup: '\\u22C3',\n\txdtri: '\\u25BD',\n\tXfr: '\\uD835\\uDD1B',\n\txfr: '\\uD835\\uDD35',\n\txhArr: '\\u27FA',\n\txharr: '\\u27F7',\n\tXi: '\\u039E',\n\txi: '\\u03BE',\n\txlArr: '\\u27F8',\n\txlarr: '\\u27F5',\n\txmap: '\\u27FC',\n\txnis: '\\u22FB',\n\txodot: '\\u2A00',\n\tXopf: '\\uD835\\uDD4F',\n\txopf: '\\uD835\\uDD69',\n\txoplus: '\\u2A01',\n\txotime: '\\u2A02',\n\txrArr: '\\u27F9',\n\txrarr: '\\u27F6',\n\tXscr: '\\uD835\\uDCB3',\n\txscr: '\\uD835\\uDCCD',\n\txsqcup: '\\u2A06',\n\txuplus: '\\u2A04',\n\txutri: '\\u25B3',\n\txvee: '\\u22C1',\n\txwedge: '\\u22C0',\n\tYacute: '\\u00DD',\n\tyacute: '\\u00FD',\n\tYAcy: '\\u042F',\n\tyacy: '\\u044F',\n\tYcirc: '\\u0176',\n\tycirc: '\\u0177',\n\tYcy: '\\u042B',\n\tycy: '\\u044B',\n\tyen: '\\u00A5',\n\tYfr: '\\uD835\\uDD1C',\n\tyfr: '\\uD835\\uDD36',\n\tYIcy: '\\u0407',\n\tyicy: '\\u0457',\n\tYopf: '\\uD835\\uDD50',\n\tyopf: '\\uD835\\uDD6A',\n\tYscr: '\\uD835\\uDCB4',\n\tyscr: '\\uD835\\uDCCE',\n\tYUcy: '\\u042E',\n\tyucy: '\\u044E',\n\tYuml: '\\u0178',\n\tyuml: '\\u00FF',\n\tZacute: '\\u0179',\n\tzacute: '\\u017A',\n\tZcaron: '\\u017D',\n\tzcaron: '\\u017E',\n\tZcy: '\\u0417',\n\tzcy: '\\u0437',\n\tZdot: '\\u017B',\n\tzdot: '\\u017C',\n\tzeetrf: '\\u2128',\n\tZeroWidthSpace: '\\u200B',\n\tZeta: '\\u0396',\n\tzeta: '\\u03B6',\n\tZfr: '\\u2128',\n\tzfr: '\\uD835\\uDD37',\n\tZHcy: '\\u0416',\n\tzhcy: '\\u0436',\n\tzigrarr: '\\u21DD',\n\tZopf: '\\u2124',\n\tzopf: '\\uD835\\uDD6B',\n\tZscr: '\\uD835\\uDCB5',\n\tzscr: '\\uD835\\uDCCF',\n\tzwj: '\\u200D',\n\tzwnj: '\\u200C',\n});\n\n/**\n * @deprecated\n * Use `HTML_ENTITIES` instead.\n * @see {@link HTML_ENTITIES}\n */\nexports.entityMap = exports.HTML_ENTITIES;\n","'use strict';\n\nvar conventions = require('./conventions');\nvar g = require('./grammar');\nvar errors = require('./errors');\n\nvar isHTMLEscapableRawTextElement = conventions.isHTMLEscapableRawTextElement;\nvar isHTMLMimeType = conventions.isHTMLMimeType;\nvar isHTMLRawTextElement = conventions.isHTMLRawTextElement;\nvar hasOwn = conventions.hasOwn;\nvar NAMESPACE = conventions.NAMESPACE;\nvar ParseError = errors.ParseError;\nvar DOMException = errors.DOMException;\n\n//var handlers = 'resolveEntity,getExternalSubset,characters,endDocument,endElement,endPrefixMapping,ignorableWhitespace,processingInstruction,setDocumentLocator,skippedEntity,startDocument,startElement,startPrefixMapping,notationDecl,unparsedEntityDecl,error,fatalError,warning,attributeDecl,elementDecl,externalEntityDecl,internalEntityDecl,comment,endCDATA,endDTD,endEntity,startCDATA,startDTD,startEntity'.split(',')\n\n//S_TAG,\tS_ATTR,\tS_EQ,\tS_ATTR_NOQUOT_VALUE\n//S_ATTR_SPACE,\tS_ATTR_END,\tS_TAG_SPACE, S_TAG_CLOSE\nvar S_TAG = 0; //tag name offerring\nvar S_ATTR = 1; //attr name offerring\nvar S_ATTR_SPACE = 2; //attr name end and space offer\nvar S_EQ = 3; //=space?\nvar S_ATTR_NOQUOT_VALUE = 4; //attr value(no quot value only)\nvar S_ATTR_END = 5; //attr value end and no space(quot end)\nvar S_TAG_SPACE = 6; //(attr value end || tag end ) && (space offer)\nvar S_TAG_CLOSE = 7; //closed el<el />\n\nfunction XMLReader() {}\n\nXMLReader.prototype = {\n\tparse: function (source, defaultNSMap, entityMap) {\n\t\tvar domBuilder = this.domBuilder;\n\t\tdomBuilder.startDocument();\n\t\t_copy(defaultNSMap, (defaultNSMap = Object.create(null)));\n\t\tparse(source, defaultNSMap, entityMap, domBuilder, this.errorHandler);\n\t\tdomBuilder.endDocument();\n\t},\n};\n\n/**\n * Detecting everything that might be a reference,\n * including those without ending `;`, since those are allowed in HTML.\n * The entityReplacer takes care of verifying and transforming each occurrence,\n * and reports to the errorHandler on those that are not OK,\n * depending on the context.\n */\nvar ENTITY_REG = /&#?\\w+;?/g;\n\nfunction parse(source, defaultNSMapCopy, entityMap, domBuilder, errorHandler) {\n\tvar isHTML = isHTMLMimeType(domBuilder.mimeType);\n\tif (source.indexOf(g.UNICODE_REPLACEMENT_CHARACTER) >= 0) {\n\t\terrorHandler.warning('Unicode replacement character detected, source encoding issues?');\n\t}\n\n\tfunction fixedFromCharCode(code) {\n\t\t// String.prototype.fromCharCode does not supports\n\t\t// > 2 bytes unicode chars directly\n\t\tif (code > 0xffff) {\n\t\t\tcode -= 0x10000;\n\t\t\tvar surrogate1 = 0xd800 + (code >> 10),\n\t\t\t\tsurrogate2 = 0xdc00 + (code & 0x3ff);\n\n\t\t\treturn String.fromCharCode(surrogate1, surrogate2);\n\t\t} else {\n\t\t\treturn String.fromCharCode(code);\n\t\t}\n\t}\n\n\tfunction entityReplacer(a) {\n\t\tvar complete = a[a.length - 1] === ';' ? a : a + ';';\n\t\tif (!isHTML && complete !== a) {\n\t\t\terrorHandler.error('EntityRef: expecting ;');\n\t\t\treturn a;\n\t\t}\n\t\tvar match = g.Reference.exec(complete);\n\t\tif (!match || match[0].length !== complete.length) {\n\t\t\terrorHandler.error('entity not matching Reference production: ' + a);\n\t\t\treturn a;\n\t\t}\n\t\tvar k = complete.slice(1, -1);\n\t\tif (hasOwn(entityMap, k)) {\n\t\t\treturn entityMap[k];\n\t\t} else if (k.charAt(0) === '#') {\n\t\t\treturn fixedFromCharCode(parseInt(k.substring(1).replace('x', '0x')));\n\t\t} else {\n\t\t\terrorHandler.error('entity not found:' + a);\n\t\t\treturn a;\n\t\t}\n\t}\n\n\tfunction appendText(end) {\n\t\t//has some bugs\n\t\tif (end > start) {\n\t\t\tvar xt = source.substring(start, end).replace(ENTITY_REG, entityReplacer);\n\t\t\tlocator && position(start);\n\t\t\tdomBuilder.characters(xt, 0, end - start);\n\t\t\tstart = end;\n\t\t}\n\t}\n\n\tvar lineStart = 0;\n\tvar lineEnd = 0;\n\tvar linePattern = /\\r\\n?|\\n|$/g;\n\tvar locator = domBuilder.locator;\n\n\tfunction position(p, m) {\n\t\twhile (p >= lineEnd && (m = linePattern.exec(source))) {\n\t\t\tlineStart = lineEnd;\n\t\t\tlineEnd = m.index + m[0].length;\n\t\t\tlocator.lineNumber++;\n\t\t}\n\t\tlocator.columnNumber = p - lineStart + 1;\n\t}\n\n\tvar parseStack = [{ currentNSMap: defaultNSMapCopy }];\n\tvar unclosedTags = [];\n\tvar start = 0;\n\twhile (true) {\n\t\ttry {\n\t\t\tvar tagStart = source.indexOf('<', start);\n\t\t\tif (tagStart < 0) {\n\t\t\t\tif (!isHTML && unclosedTags.length > 0) {\n\t\t\t\t\treturn errorHandler.fatalError('unclosed xml tag(s): ' + unclosedTags.join(', '));\n\t\t\t\t}\n\t\t\t\tif (!source.substring(start).match(/^\\s*$/)) {\n\t\t\t\t\tvar doc = domBuilder.doc;\n\t\t\t\t\tvar text = doc.createTextNode(source.substring(start));\n\t\t\t\t\tif (doc.documentElement) {\n\t\t\t\t\t\t// `return errorHandler.error` is not a common pattern,\n\t\t\t\t\t\t// it is usually only used with `.fatalError`s.\n\t\t\t\t\t\t// In this case it is intentional, because it allows to stop parsing\n\t\t\t\t\t\t// and returning doc after reporting the extra content that will not be part of the document.\n\t\t\t\t\t\treturn errorHandler.error('Extra content at the end of the document');\n\t\t\t\t\t}\n\t\t\t\t\tdoc.appendChild(text);\n\t\t\t\t\tdomBuilder.currentElement = text;\n\t\t\t\t}\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tif (tagStart > start) {\n\t\t\t\tvar fromSource = source.substring(start, tagStart);\n\t\t\t\tif (!isHTML && unclosedTags.length === 0) {\n\t\t\t\t\tfromSource = fromSource.replace(new RegExp(g.S_OPT.source, 'g'), '');\n\t\t\t\t\tfromSource && errorHandler.error(\"Unexpected content outside root element: '\" + fromSource + \"'\");\n\t\t\t\t}\n\t\t\t\tappendText(tagStart);\n\t\t\t}\n\t\t\tswitch (source.charAt(tagStart + 1)) {\n\t\t\t\tcase '/':\n\t\t\t\t\tvar end = source.indexOf('>', tagStart + 2);\n\t\t\t\t\tvar tagNameRaw = source.substring(tagStart + 2, end > 0 ? end : undefined);\n\t\t\t\t\tif (!tagNameRaw) {\n\t\t\t\t\t\treturn errorHandler.fatalError('end tag name missing');\n\t\t\t\t\t}\n\t\t\t\t\tvar endTagNameStrict = g.reg('^', g.QName_group, g.S_OPT, '$');\n\t\t\t\t\tvar tagNameMatch = end > 0 && endTagNameStrict.exec(tagNameRaw);\n\t\t\t\t\tif (!tagNameMatch) {\n\t\t\t\t\t\tvar leadingTagNameMatch = end > 0 && g.reg('^', g.QName_group).exec(tagNameRaw);\n\t\t\t\t\t\tif (isHTML && leadingTagNameMatch) {\n\t\t\t\t\t\t\terrorHandler.warning('end tag name contains invalid trailing characters: \"' + tagNameRaw + '\"');\n\t\t\t\t\t\t\ttagNameMatch = leadingTagNameMatch;\n\t\t\t\t\t\t} else if (\n\t\t\t\t\t\t\t// Backward compatibility, remove this whole `else if` arm in the next breaking release\n\t\t\t\t\t\t\t// (XML then falls through to the `fatalError` below, for a clean mode split: XML fatal,\n\t\t\t\t\t\t\t// HTML warning). A valid end-tag name followed by a line break and trailing content was\n\t\t\t\t\t\t\t// silently accepted while `reg` still used the `m` flag; re-adding `m` here matches exactly\n\t\t\t\t\t\t\t// those inputs, kept recoverable and reported.\n\t\t\t\t\t\t\tleadingTagNameMatch &&\n\t\t\t\t\t\t\tnew RegExp(endTagNameStrict.source, endTagNameStrict.flags + 'm').test(tagNameRaw)\n\t\t\t\t\t\t) {\n\t\t\t\t\t\t\terrorHandler.error('end tag name is followed by a line break and trailing content: \"' + tagNameRaw + '\"');\n\t\t\t\t\t\t\ttagNameMatch = leadingTagNameMatch;\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\treturn errorHandler.fatalError('end tag name contains invalid characters: \"' + tagNameRaw + '\"');\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif (!domBuilder.currentElement && !domBuilder.doc.documentElement) {\n\t\t\t\t\t\t// not enough information to provide a helpful error message,\n\t\t\t\t\t\t// but parsing will throw since there is no root element\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t\tvar currentTagName =\n\t\t\t\t\t\tunclosedTags[unclosedTags.length - 1] ||\n\t\t\t\t\t\tdomBuilder.currentElement.tagName ||\n\t\t\t\t\t\tdomBuilder.doc.documentElement.tagName ||\n\t\t\t\t\t\t'';\n\t\t\t\t\tif (currentTagName !== tagNameMatch[1]) {\n\t\t\t\t\t\tvar tagNameLower = tagNameMatch[1].toLowerCase();\n\t\t\t\t\t\tif (!isHTML || currentTagName.toLowerCase() !== tagNameLower) {\n\t\t\t\t\t\t\treturn errorHandler.fatalError('Opening and ending tag mismatch: \"' + currentTagName + '\" != \"' + tagNameRaw + '\"');\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tvar config = parseStack.pop();\n\t\t\t\t\tunclosedTags.pop();\n\t\t\t\t\tvar localNSMap = config.localNSMap;\n\t\t\t\t\tdomBuilder.endElement(config.uri, config.localName, currentTagName);\n\t\t\t\t\tif (localNSMap) {\n\t\t\t\t\t\tfor (var prefix in localNSMap) {\n\t\t\t\t\t\t\tif (hasOwn(localNSMap, prefix)) {\n\t\t\t\t\t\t\t\tdomBuilder.endPrefixMapping(prefix);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\tend++;\n\t\t\t\t\tbreak;\n\t\t\t\t// end element\n\t\t\t\tcase '?': // <?...?>\n\t\t\t\t\tlocator && position(tagStart);\n\t\t\t\t\tend = parseProcessingInstruction(source, tagStart, domBuilder, errorHandler);\n\t\t\t\t\tbreak;\n\t\t\t\tcase '!': // <!doctype,<![CDATA,<!--\n\t\t\t\t\tlocator && position(tagStart);\n\t\t\t\t\tend = parseDoctypeCommentOrCData(source, tagStart, domBuilder, errorHandler, isHTML);\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\tlocator && position(tagStart);\n\t\t\t\t\tvar el = new ElementAttributes();\n\t\t\t\t\tvar currentNSMap = parseStack[parseStack.length - 1].currentNSMap;\n\t\t\t\t\t//elStartEnd\n\t\t\t\t\tvar end = parseElementStartPart(source, tagStart, el, currentNSMap, entityReplacer, errorHandler, isHTML);\n\t\t\t\t\tvar len = el.length;\n\n\t\t\t\t\tif (!el.closed) {\n\t\t\t\t\t\tif (isHTML && conventions.isHTMLVoidElement(el.tagName)) {\n\t\t\t\t\t\t\tel.closed = true;\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tunclosedTags.push(el.tagName);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif (locator && len) {\n\t\t\t\t\t\tvar locator2 = copyLocator(locator, {});\n\t\t\t\t\t\t//try{//attribute position fixed\n\t\t\t\t\t\tfor (var i = 0; i < len; i++) {\n\t\t\t\t\t\t\tvar a = el[i];\n\t\t\t\t\t\t\tposition(a.offset);\n\t\t\t\t\t\t\ta.locator = copyLocator(locator, {});\n\t\t\t\t\t\t}\n\t\t\t\t\t\tdomBuilder.locator = locator2;\n\t\t\t\t\t\tif (appendElement(el, domBuilder, currentNSMap)) {\n\t\t\t\t\t\t\tparseStack.push(el);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tdomBuilder.locator = locator;\n\t\t\t\t\t} else {\n\t\t\t\t\t\tif (appendElement(el, domBuilder, currentNSMap)) {\n\t\t\t\t\t\t\tparseStack.push(el);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\tif (isHTML && !el.closed) {\n\t\t\t\t\t\tend = parseHtmlSpecialContent(source, end, el.tagName, entityReplacer, domBuilder);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tend++;\n\t\t\t\t\t}\n\t\t\t}\n\t\t} catch (e) {\n\t\t\tif (e instanceof ParseError) {\n\t\t\t\tthrow e;\n\t\t\t} else if (e instanceof DOMException) {\n\t\t\t\t// A DOMException raised while building the DOM is not-well-formed input,\n\t\t\t\t// so it is wrapped into a ParseError and reported before being thrown.\n\t\t\t\treturn errorHandler.fatalError('Error constructing the DOM: ' + e.name + ': ' + e.message, e);\n\t\t\t}\n\t\t\terrorHandler.error('element parse error: ' + e);\n\t\t\tend = -1;\n\t\t}\n\t\tif (end > start) {\n\t\t\tstart = end;\n\t\t} else {\n\t\t\t//Possible sax fallback here, risk of positional error\n\t\t\tappendText(Math.max(tagStart, start) + 1);\n\t\t}\n\t}\n}\n\nfunction copyLocator(f, t) {\n\tt.lineNumber = f.lineNumber;\n\tt.columnNumber = f.columnNumber;\n\treturn t;\n}\n\n/**\n * @returns\n * end of the elementStartPart(end of elementEndPart for selfClosed el)\n * @see {@link #appendElement}\n */\nfunction parseElementStartPart(source, start, el, currentNSMap, entityReplacer, errorHandler, isHTML) {\n\t/**\n\t * @param {string} qname\n\t * @param {string} value\n\t * @param {number} startIndex\n\t */\n\tfunction addAttribute(qname, value, startIndex) {\n\t\tif (hasOwn(el.attributeNames, qname)) {\n\t\t\treturn errorHandler.fatalError('Attribute ' + qname + ' redefined');\n\t\t}\n\t\tif (!isHTML && value.indexOf('<') >= 0) {\n\t\t\treturn errorHandler.fatalError(\"Unescaped '<' not allowed in attributes values\");\n\t\t}\n\t\tel.addValue(\n\t\t\tqname,\n\t\t\t// @see https://www.w3.org/TR/xml/#AVNormalize\n\t\t\t// since the xmldom sax parser does not \"interpret\" DTD the following is not implemented:\n\t\t\t// - recursive replacement of (DTD) entity references\n\t\t\t// - trimming and collapsing multiple spaces into a single one for attributes that are not of type CDATA\n\t\t\tvalue.replace(/[\\t\\n\\r]/g, ' ').replace(ENTITY_REG, entityReplacer),\n\t\t\tstartIndex\n\t\t);\n\t}\n\n\tvar attrName;\n\tvar value;\n\tvar p = ++start;\n\tvar s = S_TAG; //status\n\twhile (true) {\n\t\tvar c = source.charAt(p);\n\t\tif (s === S_TAG && c === '<') {\n\t\t\t// A `<` can never occur inside a tag name. Without this guard the scan runs\n\t\t\t// on to the next `>` (or EOF) before `setTagName` rejects the whole slice, so\n\t\t\t// a document with many `<` inside a malformed tag makes each one-character\n\t\t\t// recovery step re-scan to the distant `>` — O(n^2). Stopping at the `<` keeps\n\t\t\t// each recovery step bounded. The candidate scanned so far is reported raw,\n\t\t\t// consistent with the sibling invalid-tag-name throw below.\n\t\t\tthrow new Error('unexpected < in tag name: ' + source.slice(start, p));\n\t\t}\n\t\tswitch (c) {\n\t\t\tcase '=':\n\t\t\t\tif (s === S_ATTR) {\n\t\t\t\t\t//attrName\n\t\t\t\t\tattrName = source.slice(start, p);\n\t\t\t\t\ts = S_EQ;\n\t\t\t\t} else if (s === S_ATTR_SPACE) {\n\t\t\t\t\ts = S_EQ;\n\t\t\t\t} else {\n\t\t\t\t\t//fatalError: equal must after attrName or space after attrName\n\t\t\t\t\tthrow new Error('attribute equal must after attrName');\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase \"'\":\n\t\t\tcase '\"':\n\t\t\t\tif (\n\t\t\t\t\ts === S_EQ ||\n\t\t\t\t\ts === S_ATTR //|| s == S_ATTR_SPACE\n\t\t\t\t) {\n\t\t\t\t\t//equal\n\t\t\t\t\tif (s === S_ATTR) {\n\t\t\t\t\t\terrorHandler.warning('attribute value must after \"=\"');\n\t\t\t\t\t\tattrName = source.slice(start, p);\n\t\t\t\t\t}\n\t\t\t\t\tstart = p + 1;\n\t\t\t\t\tp = source.indexOf(c, start);\n\t\t\t\t\tif (p > 0) {\n\t\t\t\t\t\tvalue = source.slice(start, p);\n\t\t\t\t\t\taddAttribute(attrName, value, start - 1);\n\t\t\t\t\t\ts = S_ATTR_END;\n\t\t\t\t\t} else {\n\t\t\t\t\t\t//fatalError: no end quot match\n\t\t\t\t\t\tthrow new Error(\"attribute value no end '\" + c + \"' match\");\n\t\t\t\t\t}\n\t\t\t\t} else if (s == S_ATTR_NOQUOT_VALUE) {\n\t\t\t\t\tvalue = source.slice(start, p);\n\t\t\t\t\taddAttribute(attrName, value, start);\n\t\t\t\t\terrorHandler.warning('attribute \"' + attrName + '\" missed start quot(' + c + ')!!');\n\t\t\t\t\tstart = p + 1;\n\t\t\t\t\ts = S_ATTR_END;\n\t\t\t\t} else {\n\t\t\t\t\t//fatalError: no equal before\n\t\t\t\t\tthrow new Error('attribute value must after \"=\"');\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase '/':\n\t\t\t\tswitch (s) {\n\t\t\t\t\tcase S_TAG:\n\t\t\t\t\t\tel.setTagName(source.slice(start, p));\n\t\t\t\t\tcase S_ATTR_END:\n\t\t\t\t\tcase S_TAG_SPACE:\n\t\t\t\t\tcase S_TAG_CLOSE:\n\t\t\t\t\t\ts = S_TAG_CLOSE;\n\t\t\t\t\t\tel.closed = true;\n\t\t\t\t\tcase S_ATTR_NOQUOT_VALUE:\n\t\t\t\t\tcase S_ATTR:\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase S_ATTR_SPACE:\n\t\t\t\t\t\tel.closed = true;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t//case S_EQ:\n\t\t\t\t\tdefault:\n\t\t\t\t\t\tthrow new Error(\"attribute invalid close char('/')\");\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase '': //end document\n\t\t\t\terrorHandler.error('unexpected end of input');\n\t\t\t\tif (s == S_TAG) {\n\t\t\t\t\tel.setTagName(source.slice(start, p));\n\t\t\t\t}\n\t\t\t\treturn p;\n\t\t\tcase '>':\n\t\t\t\tswitch (s) {\n\t\t\t\t\tcase S_TAG:\n\t\t\t\t\t\tel.setTagName(source.slice(start, p));\n\t\t\t\t\tcase S_ATTR_END:\n\t\t\t\t\tcase S_TAG_SPACE:\n\t\t\t\t\tcase S_TAG_CLOSE:\n\t\t\t\t\t\tbreak; //normal\n\t\t\t\t\tcase S_ATTR_NOQUOT_VALUE: //Compatible state\n\t\t\t\t\tcase S_ATTR:\n\t\t\t\t\t\tvalue = source.slice(start, p);\n\t\t\t\t\t\tif (value.slice(-1) === '/') {\n\t\t\t\t\t\t\tel.closed = true;\n\t\t\t\t\t\t\tvalue = value.slice(0, -1);\n\t\t\t\t\t\t}\n\t\t\t\t\tcase S_ATTR_SPACE:\n\t\t\t\t\t\tif (s === S_ATTR_SPACE) {\n\t\t\t\t\t\t\tvalue = attrName;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (s == S_ATTR_NOQUOT_VALUE) {\n\t\t\t\t\t\t\terrorHandler.warning('attribute \"' + value + '\" missed quot(\")!');\n\t\t\t\t\t\t\taddAttribute(attrName, value, start);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tif (!isHTML) {\n\t\t\t\t\t\t\t\terrorHandler.warning('attribute \"' + value + '\" missed value!! \"' + value + '\" instead!!');\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\taddAttribute(value, value, start);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase S_EQ:\n\t\t\t\t\t\tif (!isHTML) {\n\t\t\t\t\t\t\treturn errorHandler.fatalError('AttValue: \\' or \" expected');\n\t\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\treturn p;\n\t\t\t/*xml space '\\x20' | #x9 | #xD | #xA; */\n\t\t\tcase '\\u0080':\n\t\t\t\tc = ' ';\n\t\t\tdefault:\n\t\t\t\tif (c <= ' ') {\n\t\t\t\t\t//space\n\t\t\t\t\tswitch (s) {\n\t\t\t\t\t\tcase S_TAG:\n\t\t\t\t\t\t\tel.setTagName(source.slice(start, p)); //tagName\n\t\t\t\t\t\t\ts = S_TAG_SPACE;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase S_ATTR:\n\t\t\t\t\t\t\tattrName = source.slice(start, p);\n\t\t\t\t\t\t\ts = S_ATTR_SPACE;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase S_ATTR_NOQUOT_VALUE:\n\t\t\t\t\t\t\tvar value = source.slice(start, p);\n\t\t\t\t\t\t\terrorHandler.warning('attribute \"' + value + '\" missed quot(\")!!');\n\t\t\t\t\t\t\taddAttribute(attrName, value, start);\n\t\t\t\t\t\tcase S_ATTR_END:\n\t\t\t\t\t\t\ts = S_TAG_SPACE;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t//case S_TAG_SPACE:\n\t\t\t\t\t\t//case S_EQ:\n\t\t\t\t\t\t//case S_ATTR_SPACE:\n\t\t\t\t\t\t//\tvoid();break;\n\t\t\t\t\t\t//case S_TAG_CLOSE:\n\t\t\t\t\t\t//ignore warning\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\t//not space\n\t\t\t\t\t//S_TAG,\tS_ATTR,\tS_EQ,\tS_ATTR_NOQUOT_VALUE\n\t\t\t\t\t//S_ATTR_SPACE,\tS_ATTR_END,\tS_TAG_SPACE, S_TAG_CLOSE\n\t\t\t\t\tswitch (s) {\n\t\t\t\t\t\t//case S_TAG:void();break;\n\t\t\t\t\t\t//case S_ATTR:void();break;\n\t\t\t\t\t\t//case S_ATTR_NOQUOT_VALUE:void();break;\n\t\t\t\t\t\tcase S_ATTR_SPACE:\n\t\t\t\t\t\t\tif (!isHTML) {\n\t\t\t\t\t\t\t\terrorHandler.warning('attribute \"' + attrName + '\" missed value!! \"' + attrName + '\" instead2!!');\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\taddAttribute(attrName, attrName, start);\n\t\t\t\t\t\t\tstart = p;\n\t\t\t\t\t\t\ts = S_ATTR;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase S_ATTR_END:\n\t\t\t\t\t\t\terrorHandler.warning('attribute space is required\"' + attrName + '\"!!');\n\t\t\t\t\t\tcase S_TAG_SPACE:\n\t\t\t\t\t\t\ts = S_ATTR;\n\t\t\t\t\t\t\tstart = p;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase S_EQ:\n\t\t\t\t\t\t\ts = S_ATTR_NOQUOT_VALUE;\n\t\t\t\t\t\t\tstart = p;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase S_TAG_CLOSE:\n\t\t\t\t\t\t\tthrow new Error(\"elements closed character '/' and '>' must be connected to\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t} //end outer switch\n\t\tp++;\n\t}\n}\n\n/**\n * @returns\n * `true` if a new namespace has been defined.\n */\nfunction appendElement(el, domBuilder, currentNSMap) {\n\tvar tagName = el.tagName;\n\tvar localNSMap = null;\n\tvar i = el.length;\n\twhile (i--) {\n\t\tvar a = el[i];\n\t\tvar qName = a.qName;\n\t\tvar value = a.value;\n\t\tvar nsp = qName.indexOf(':');\n\t\tif (nsp > 0) {\n\t\t\tvar prefix = (a.prefix = qName.slice(0, nsp));\n\t\t\tvar localName = qName.slice(nsp + 1);\n\t\t\tvar nsPrefix = prefix === 'xmlns' && localName;\n\t\t} else {\n\t\t\tlocalName = qName;\n\t\t\tprefix = null;\n\t\t\tnsPrefix = qName === 'xmlns' && '';\n\t\t}\n\t\t//can not set prefix,because prefix !== ''\n\t\ta.localName = localName;\n\t\t//prefix == null for no ns prefix attribute\n\t\tif (nsPrefix !== false) {\n\t\t\t//hack!!\n\t\t\tif (localNSMap == null) {\n\t\t\t\tlocalNSMap = Object.create(null);\n\t\t\t\t// Derive the child scope's namespace map by prototype-chain inheritance\n\t\t\t\t// instead of a flat copy: lookups inherit ancestor prefixes transparently,\n\t\t\t\t// so a document nesting N scopes retains O(N) map entries rather than\n\t\t\t\t// sum(1..N) = O(N^2). `localNSMap` stays a flat own-only record of the\n\t\t\t\t// prefixes declared at THIS element, so own-property enumeration\n\t\t\t\t// (endPrefixMapping below) still reports only local declarations.\n\t\t\t\tcurrentNSMap = Object.create(currentNSMap);\n\t\t\t}\n\t\t\tcurrentNSMap[nsPrefix] = localNSMap[nsPrefix] = value;\n\t\t\ta.uri = NAMESPACE.XMLNS;\n\t\t\tdomBuilder.startPrefixMapping(nsPrefix, value);\n\t\t}\n\t}\n\tvar i = el.length;\n\twhile (i--) {\n\t\ta = el[i];\n\t\tif (a.prefix) {\n\t\t\t//no prefix attribute has no namespace\n\t\t\tif (a.prefix === 'xml') {\n\t\t\t\ta.uri = NAMESPACE.XML;\n\t\t\t}\n\t\t\tif (a.prefix !== 'xmlns') {\n\t\t\t\ta.uri = currentNSMap[a.prefix];\n\t\t\t}\n\t\t}\n\t}\n\tvar nsp = tagName.indexOf(':');\n\tif (nsp > 0) {\n\t\tprefix = el.prefix = tagName.slice(0, nsp);\n\t\tlocalName = el.localName = tagName.slice(nsp + 1);\n\t} else {\n\t\tprefix = null; //important!!\n\t\tlocalName = el.localName = tagName;\n\t}\n\t//no prefix element has default namespace\n\tvar ns = (el.uri = currentNSMap[prefix || '']);\n\tdomBuilder.startElement(ns, localName, tagName, el);\n\t//endPrefixMapping and startPrefixMapping have not any help for dom builder\n\t//localNSMap = null\n\tif (el.closed) {\n\t\tdomBuilder.endElement(ns, localName, tagName);\n\t\tif (localNSMap) {\n\t\t\tfor (prefix in localNSMap) {\n\t\t\t\tif (hasOwn(localNSMap, prefix)) {\n\t\t\t\t\tdomBuilder.endPrefixMapping(prefix);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t} else {\n\t\tel.currentNSMap = currentNSMap;\n\t\tel.localNSMap = localNSMap;\n\t\t//parseStack.push(el);\n\t\treturn true;\n\t}\n}\n\nfunction parseHtmlSpecialContent(source, elStartEnd, tagName, entityReplacer, domBuilder) {\n\t// https://html.spec.whatwg.org/#raw-text-elements\n\t// https://html.spec.whatwg.org/#escapable-raw-text-elements\n\t// https://html.spec.whatwg.org/#cdata-rcdata-restrictions:raw-text-elements\n\t// TODO: https://html.spec.whatwg.org/#cdata-rcdata-restrictions\n\tvar isEscapableRaw = isHTMLEscapableRawTextElement(tagName);\n\tif (isEscapableRaw || isHTMLRawTextElement(tagName)) {\n\t\t// The closing tag of a raw-text element matches case-insensitively\n\t\t// (WHATWG HTML §13.2.5.14 RAWTEXT end tag name state). A case-sensitive\n\t\t// search that missed the closing tag would return -1 and the `substring`\n\t\t// below would treat -1 as a backward slice from position 0, re-emitting all\n\t\t// prior source and amplifying output quadratically across repeated elements.\n\t\t// The regex is anchored to `elStartEnd` via `lastIndex` so it scans forward\n\t\t// only (O(distance), not the whole source).\n\t\tvar closeTag = new RegExp('</' + tagName.replace(/[.*+?^${}()|[\\]\\\\]/g, '\\\\$&') + '>', 'ig');\n\t\tcloseTag.lastIndex = elStartEnd;\n\t\tvar match = closeTag.exec(source);\n\t\tvar elEndStart = match ? match.index : -1;\n\t\tif (elEndStart < 0) {\n\t\t\t// No closing tag: never slice with a -1 end index. Leave the element to\n\t\t\t// the parse loop's normal recovery instead of back-capturing the source.\n\t\t\treturn elStartEnd + 1;\n\t\t}\n\t\tvar text = source.substring(elStartEnd + 1, elEndStart);\n\n\t\tif (isEscapableRaw) {\n\t\t\ttext = text.replace(ENTITY_REG, entityReplacer);\n\t\t}\n\t\tdomBuilder.characters(text, 0, text.length);\n\t\treturn elEndStart;\n\t}\n\treturn elStartEnd + 1;\n}\n\nfunction _copy(source, target) {\n\tfor (var n in source) {\n\t\tif (hasOwn(source, n)) {\n\t\t\ttarget[n] = source[n];\n\t\t}\n\t}\n}\n\n/**\n * @typedef ParseUtils\n * @property {function(relativeIndex: number?): string | undefined} char\n * Provides look ahead access to a singe character relative to the current index.\n * @property {function(): number} getIndex\n * Provides read-only access to the current index.\n * @property {function(reg: RegExp): string | null} getMatch\n * Applies the provided regular expression enforcing that it starts at the current index and\n * returns the complete matching string,\n * and moves the current index by the length of the matching string.\n * @property {function(): string} getSource\n * Provides read-only access to the complete source.\n * @property {function(places: number?): void} skip\n * moves the current index by places (defaults to 1)\n * @property {function(): number} skipBlanks\n * Moves the current index by the amount of white space that directly follows the current index\n * and returns the amount of whitespace chars skipped (0..n),\n * or -1 if the end of the source was reached.\n * @property {function(): string} substringFromIndex\n * creates a substring from the current index to the end of `source`\n * @property {function(compareWith: string): boolean} substringStartsWith\n * Checks if `source` contains `compareWith`, starting from the current index.\n * @property {function(compareWith: string): boolean} substringStartsWithCaseInsensitive\n * Checks if `source` contains `compareWith`, starting from the current index,\n * comparing the upper case of both sides.\n * @see {@link parseUtils}\n */\n\n/**\n * A temporary scope for parsing and look ahead operations in `source`,\n * starting from index `start`.\n *\n * Some operations move the current index by a number of positions,\n * after which `getIndex` returns the new index.\n *\n * @param {string} source\n * @param {number} start\n * @returns {ParseUtils}\n */\nfunction parseUtils(source, start) {\n\tvar index = start;\n\n\tfunction char(n) {\n\t\tn = n || 0;\n\t\treturn source.charAt(index + n);\n\t}\n\n\tfunction skip(n) {\n\t\tn = n || 1;\n\t\tindex += n;\n\t}\n\n\tfunction skipBlanks() {\n\t\tvar blanks = 0;\n\t\twhile (index < source.length) {\n\t\t\tvar c = char();\n\t\t\tif (c !== ' ' && c !== '\\n' && c !== '\\t' && c !== '\\r') {\n\t\t\t\treturn blanks;\n\t\t\t}\n\t\t\tblanks++;\n\t\t\tskip();\n\t\t}\n\t\treturn -1;\n\t}\n\tfunction substringFromIndex() {\n\t\treturn source.substring(index);\n\t}\n\tfunction substringStartsWith(text) {\n\t\treturn source.substring(index, index + text.length) === text;\n\t}\n\tfunction substringStartsWithCaseInsensitive(text) {\n\t\treturn source.substring(index, index + text.length).toUpperCase() === text.toUpperCase();\n\t}\n\n\tfunction getMatch(args) {\n\t\tvar expr = g.reg('^', args);\n\t\tvar match = expr.exec(substringFromIndex());\n\t\tif (match) {\n\t\t\tskip(match[0].length);\n\t\t\treturn match[0];\n\t\t}\n\t\treturn null;\n\t}\n\treturn {\n\t\tchar: char,\n\t\tgetIndex: function () {\n\t\t\treturn index;\n\t\t},\n\t\tgetMatch: getMatch,\n\t\tgetSource: function () {\n\t\t\treturn source;\n\t\t},\n\t\tskip: skip,\n\t\tskipBlanks: skipBlanks,\n\t\tsubstringFromIndex: substringFromIndex,\n\t\tsubstringStartsWith: substringStartsWith,\n\t\tsubstringStartsWithCaseInsensitive: substringStartsWithCaseInsensitive,\n\t};\n}\n\n/**\n * @param {ParseUtils} p\n * @param {DOMHandler} errorHandler\n * @returns {string}\n */\nfunction parseDoctypeInternalSubset(p, errorHandler) {\n\t/**\n\t * @param {ParseUtils} p\n\t * @param {DOMHandler} errorHandler\n\t * @returns {string}\n\t */\n\tfunction parsePI(p, errorHandler) {\n\t\tvar match = g.PI.exec(p.substringFromIndex());\n\t\tif (!match) {\n\t\t\treturn errorHandler.fatalError('processing instruction is not well-formed at position ' + p.getIndex());\n\t\t}\n\t\tif (match[1].toLowerCase() === 'xml') {\n\t\t\treturn errorHandler.fatalError(\n\t\t\t\t'xml declaration is only allowed at the start of the document, but found at position ' + p.getIndex()\n\t\t\t);\n\t\t}\n\t\tp.skip(match[0].length);\n\t\treturn match[0];\n\t}\n\t// Parse internal subset\n\tvar source = p.getSource();\n\tif (p.char() === '[') {\n\t\tp.skip(1);\n\t\tvar intSubsetStart = p.getIndex();\n\t\twhile (p.getIndex() < source.length) {\n\t\t\tp.skipBlanks();\n\t\t\tif (p.char() === ']') {\n\t\t\t\tvar internalSubset = source.substring(intSubsetStart, p.getIndex());\n\t\t\t\tp.skip(1);\n\t\t\t\treturn internalSubset;\n\t\t\t}\n\t\t\tvar current = null;\n\t\t\t// Only in external subset\n\t\t\t// if (char() === '<' && char(1) === '!' && char(2) === '[') {\n\t\t\t// \tparseConditionalSections(p, errorHandler);\n\t\t\t// } else\n\t\t\tif (p.char() === '<' && p.char(1) === '!') {\n\t\t\t\tswitch (p.char(2)) {\n\t\t\t\t\tcase 'E': // ELEMENT | ENTITY\n\t\t\t\t\t\tif (p.char(3) === 'L') {\n\t\t\t\t\t\t\tcurrent = p.getMatch(g.elementdecl);\n\t\t\t\t\t\t} else if (p.char(3) === 'N') {\n\t\t\t\t\t\t\tcurrent = p.getMatch(g.EntityDecl);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 'A': // ATTRIBUTE\n\t\t\t\t\t\tcurrent = p.getMatch(g.AttlistDecl);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 'N': // NOTATION\n\t\t\t\t\t\tcurrent = p.getMatch(g.NotationDecl);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase '-': // COMMENT\n\t\t\t\t\t\tcurrent = p.getMatch(g.Comment);\n\t\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t} else if (p.char() === '<' && p.char(1) === '?') {\n\t\t\t\tcurrent = parsePI(p, errorHandler);\n\t\t\t} else if (p.char() === '%') {\n\t\t\t\tcurrent = p.getMatch(g.PEReference);\n\t\t\t} else {\n\t\t\t\treturn errorHandler.fatalError('Error detected in Markup declaration');\n\t\t\t}\n\t\t\tif (!current) {\n\t\t\t\treturn errorHandler.fatalError('Error in internal subset at position ' + p.getIndex());\n\t\t\t}\n\t\t}\n\t\treturn errorHandler.fatalError('doctype internal subset is not well-formed, missing ]');\n\t}\n}\n\n/**\n * Called when the parser encounters an element starting with '<!'.\n *\n * @param {string} source\n * The xml.\n * @param {number} start\n * the start index of the '<!'\n * @param {DOMHandler} domBuilder\n * @param {DOMHandler} errorHandler\n * @param {boolean} isHTML\n * @returns {number | never}\n * The end index of the element.\n * @throws {ParseError}\n * In case the element is not well-formed.\n */\nfunction parseDoctypeCommentOrCData(source, start, domBuilder, errorHandler, isHTML) {\n\tvar p = parseUtils(source, start);\n\n\tswitch (isHTML ? p.char(2).toUpperCase() : p.char(2)) {\n\t\tcase '-':\n\t\t\t// should be a comment\n\t\t\tvar comment = p.getMatch(g.Comment);\n\t\t\tif (comment) {\n\t\t\t\tdomBuilder.comment(comment, g.COMMENT_START.length, comment.length - g.COMMENT_START.length - g.COMMENT_END.length);\n\t\t\t\treturn p.getIndex();\n\t\t\t} else {\n\t\t\t\treturn errorHandler.fatalError('comment is not well-formed at position ' + p.getIndex());\n\t\t\t}\n\t\tcase '[':\n\t\t\t// should be CDATA\n\t\t\tvar cdata = p.getMatch(g.CDSect);\n\t\t\tif (cdata) {\n\t\t\t\tif (!isHTML && !domBuilder.currentElement) {\n\t\t\t\t\treturn errorHandler.fatalError('CDATA outside of element');\n\t\t\t\t}\n\t\t\t\tdomBuilder.startCDATA();\n\t\t\t\tdomBuilder.characters(cdata, g.CDATA_START.length, cdata.length - g.CDATA_START.length - g.CDATA_END.length);\n\t\t\t\tdomBuilder.endCDATA();\n\t\t\t\treturn p.getIndex();\n\t\t\t} else {\n\t\t\t\treturn errorHandler.fatalError('Invalid CDATA starting at position ' + start);\n\t\t\t}\n\t\tcase 'D': {\n\t\t\t// should be DOCTYPE\n\t\t\tif (domBuilder.doc && domBuilder.doc.documentElement) {\n\t\t\t\treturn errorHandler.fatalError('Doctype not allowed inside or after documentElement at position ' + p.getIndex());\n\t\t\t}\n\t\t\tif (isHTML ? !p.substringStartsWithCaseInsensitive(g.DOCTYPE_DECL_START) : !p.substringStartsWith(g.DOCTYPE_DECL_START)) {\n\t\t\t\treturn errorHandler.fatalError('Expected ' + g.DOCTYPE_DECL_START + ' at position ' + p.getIndex());\n\t\t\t}\n\t\t\tp.skip(g.DOCTYPE_DECL_START.length);\n\t\t\tif (p.skipBlanks() < 1) {\n\t\t\t\treturn errorHandler.fatalError('Expected whitespace after ' + g.DOCTYPE_DECL_START + ' at position ' + p.getIndex());\n\t\t\t}\n\n\t\t\tvar doctype = {\n\t\t\t\tname: undefined,\n\t\t\t\tpublicId: undefined,\n\t\t\t\tsystemId: undefined,\n\t\t\t\tinternalSubset: undefined,\n\t\t\t};\n\t\t\t// Parse the DOCTYPE name\n\t\t\tdoctype.name = p.getMatch(g.Name);\n\t\t\tif (!doctype.name)\n\t\t\t\treturn errorHandler.fatalError('doctype name missing or contains unexpected characters at position ' + p.getIndex());\n\n\t\t\tif (isHTML && doctype.name.toLowerCase() !== 'html') {\n\t\t\t\terrorHandler.warning('Unexpected DOCTYPE in HTML document at position ' + p.getIndex());\n\t\t\t}\n\t\t\tp.skipBlanks();\n\n\t\t\t// Check for ExternalID\n\t\t\tif (p.substringStartsWith(g.PUBLIC) || p.substringStartsWith(g.SYSTEM)) {\n\t\t\t\tvar match = g.ExternalID_match.exec(p.substringFromIndex());\n\t\t\t\tif (!match) {\n\t\t\t\t\treturn errorHandler.fatalError('doctype external id is not well-formed at position ' + p.getIndex());\n\t\t\t\t}\n\t\t\t\tif (match.groups.SystemLiteralOnly !== undefined) {\n\t\t\t\t\tdoctype.systemId = match.groups.SystemLiteralOnly;\n\t\t\t\t} else {\n\t\t\t\t\tdoctype.systemId = match.groups.SystemLiteral;\n\t\t\t\t\tdoctype.publicId = match.groups.PubidLiteral;\n\t\t\t\t}\n\t\t\t\tp.skip(match[0].length);\n\t\t\t} else if (isHTML && p.substringStartsWithCaseInsensitive(g.SYSTEM)) {\n\t\t\t\t// https://html.spec.whatwg.org/multipage/syntax.html#doctype-legacy-string\n\t\t\t\tp.skip(g.SYSTEM.length);\n\t\t\t\tif (p.skipBlanks() < 1) {\n\t\t\t\t\treturn errorHandler.fatalError('Expected whitespace after ' + g.SYSTEM + ' at position ' + p.getIndex());\n\t\t\t\t}\n\t\t\t\tdoctype.systemId = p.getMatch(g.ABOUT_LEGACY_COMPAT_SystemLiteral);\n\t\t\t\tif (!doctype.systemId) {\n\t\t\t\t\treturn errorHandler.fatalError(\n\t\t\t\t\t\t'Expected ' + g.ABOUT_LEGACY_COMPAT + ' in single or double quotes after ' + g.SYSTEM + ' at position ' + p.getIndex()\n\t\t\t\t\t);\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (isHTML && doctype.systemId && !g.ABOUT_LEGACY_COMPAT_SystemLiteral.test(doctype.systemId)) {\n\t\t\t\terrorHandler.warning('Unexpected doctype.systemId in HTML document at position ' + p.getIndex());\n\t\t\t}\n\t\t\tif (!isHTML) {\n\t\t\t\tp.skipBlanks();\n\t\t\t\tdoctype.internalSubset = parseDoctypeInternalSubset(p, errorHandler);\n\t\t\t}\n\t\t\tp.skipBlanks();\n\t\t\tif (p.char() !== '>') {\n\t\t\t\treturn errorHandler.fatalError('doctype not terminated with > at position ' + p.getIndex());\n\t\t\t}\n\t\t\tp.skip(1);\n\t\t\tdomBuilder.startDTD(doctype.name, doctype.publicId, doctype.systemId, doctype.internalSubset);\n\t\t\tdomBuilder.endDTD();\n\t\t\treturn p.getIndex();\n\t\t}\n\t\tdefault:\n\t\t\treturn errorHandler.fatalError('Not well-formed XML starting with \"<!\" at position ' + start);\n\t}\n}\n\nfunction parseProcessingInstruction(source, start, domBuilder, errorHandler) {\n\tvar match = source.substring(start).match(g.PI);\n\tif (!match) {\n\t\treturn errorHandler.fatalError('Invalid processing instruction starting at position ' + start);\n\t}\n\tif (match[1].toLowerCase() === 'xml') {\n\t\tif (start > 0) {\n\t\t\treturn errorHandler.fatalError(\n\t\t\t\t'processing instruction at position ' + start + ' is an xml declaration which is only at the start of the document'\n\t\t\t);\n\t\t}\n\t\tif (!g.XMLDecl.test(source.substring(start))) {\n\t\t\treturn errorHandler.fatalError('xml declaration is not well-formed');\n\t\t}\n\t}\n\tdomBuilder.processingInstruction(match[1], match[2]);\n\treturn start + match[0].length;\n}\n\nfunction ElementAttributes() {\n\tthis.attributeNames = Object.create(null);\n}\n\nElementAttributes.prototype = {\n\tsetTagName: function (tagName) {\n\t\tif (!g.QName_exact.test(tagName)) {\n\t\t\tthrow new Error('invalid tagName:' + tagName);\n\t\t}\n\t\tthis.tagName = tagName;\n\t},\n\taddValue: function (qName, value, offset) {\n\t\tif (!g.QName_exact.test(qName)) {\n\t\t\tthrow new Error('invalid attribute:' + qName);\n\t\t}\n\t\tthis.attributeNames[qName] = this.length;\n\t\tthis[this.length++] = { qName: qName, value: value, offset: offset };\n\t},\n\tlength: 0,\n\tgetLocalName: function (i) {\n\t\treturn this[i].localName;\n\t},\n\tgetLocator: function (i) {\n\t\treturn this[i].locator;\n\t},\n\tgetQName: function (i) {\n\t\treturn this[i].qName;\n\t},\n\tgetURI: function (i) {\n\t\treturn this[i].uri;\n\t},\n\tgetValue: function (i) {\n\t\treturn this[i].value;\n\t},\n\t//\t,getIndex:function(uri, localName)){\n\t//\t\tif(localName){\n\t//\n\t//\t\t}else{\n\t//\t\t\tvar qName = uri\n\t//\t\t}\n\t//\t},\n\t//\tgetValue:function(){return this.getValue(this.getIndex.apply(this,arguments))},\n\t//\tgetType:function(uri,localName){}\n\t//\tgetType:function(i){},\n};\n\nexports.XMLReader = XMLReader;\nexports.parseUtils = parseUtils;\nexports.parseDoctypeCommentOrCData = parseDoctypeCommentOrCData;\n","'use strict';\n\nvar conventions = require('./conventions');\nvar dom = require('./dom');\nvar errors = require('./errors');\nvar entities = require('./entities');\nvar sax = require('./sax');\n\nvar DOMImplementation = dom.DOMImplementation;\n\nvar hasDefaultHTMLNamespace = conventions.hasDefaultHTMLNamespace;\nvar isHTMLMimeType = conventions.isHTMLMimeType;\nvar isValidMimeType = conventions.isValidMimeType;\nvar MIME_TYPE = conventions.MIME_TYPE;\nvar NAMESPACE = conventions.NAMESPACE;\nvar ParseError = errors.ParseError;\n\nvar XMLReader = sax.XMLReader;\n\n/**\n * Normalizes line ending according to <https://www.w3.org/TR/xml11/#sec-line-ends>,\n * including some Unicode \"newline\" characters:\n *\n * > XML parsed entities are often stored in computer files which,\n * > for editing convenience, are organized into lines.\n * > These lines are typically separated by some combination\n * > of the characters CARRIAGE RETURN (#xD) and LINE FEED (#xA).\n * >\n * > To simplify the tasks of applications, the XML processor must behave\n * > as if it normalized all line breaks in external parsed entities (including the document entity)\n * > on input, before parsing, by translating the following to a single #xA character:\n * >\n * > 1. the two-character sequence #xD #xA,\n * > 2. the two-character sequence #xD #x85,\n * > 3. the single character #x85,\n * > 4. the single character #x2028,\n * > 5. the single character #x2029,\n * > 6. any #xD character that is not immediately followed by #xA or #x85.\n *\n * @param {string} input\n * @returns {string}\n * @prettierignore\n */\nfunction normalizeLineEndings(input) {\n\treturn input.replace(/\\r[\\n\\u0085]/g, '\\n').replace(/[\\r\\u0085\\u2028\\u2029]/g, '\\n');\n}\n\n/**\n * @typedef Locator\n * @property {number} [columnNumber]\n * @property {number} [lineNumber]\n */\n\n/**\n * @typedef DOMParserOptions\n * @property {typeof assign} [assign]\n * The method to use instead of `conventions.assign`, which is used to copy values from\n * `options` before they are used for parsing.\n * @property {typeof DOMHandler} [domHandler]\n * For internal testing: The class for creating an instance for handling events from the SAX\n * parser.\n * *****Warning: By configuring a faulty implementation, the specified behavior can completely\n * be broken.*****.\n * @property {Function} [errorHandler]\n * DEPRECATED! use `onError` instead.\n * @property {function(level:ErrorLevel, message:string, context: DOMHandler):void}\n * [onError]\n * A function invoked for every error that occurs during parsing.\n *\n * If it is not provided, all errors are reported to `console.error`\n * and only `fatalError`s are thrown as a `ParseError`,\n * which prevents any further processing.\n * If the provided method throws, a `ParserError` is thrown,\n * which prevents any further processing.\n *\n * Be aware that many `warning`s are considered an error that prevents further processing in\n * most implementations.\n * @property {boolean} [locator=true]\n * Configures if the nodes created during parsing will have a `lineNumber` and a `columnNumber`\n * attribute describing their location in the XML string.\n * Default is true.\n * @property {(string) => string} [normalizeLineEndings]\n * used to replace line endings before parsing, defaults to exported `normalizeLineEndings`,\n * which normalizes line endings according to <https://www.w3.org/TR/xml11/#sec-line-ends>,\n * including some Unicode \"newline\" characters.\n * @property {Object} [xmlns]\n * The XML namespaces that should be assumed when parsing.\n * The default namespace can be provided by the key that is the empty string.\n * When the `mimeType` for HTML, XHTML or SVG are passed to `parseFromString`,\n * the default namespace that will be used,\n * will be overridden according to the specification.\n * @see {@link normalizeLineEndings}\n */\n\n/**\n * The DOMParser interface provides the ability to parse XML or HTML source code from a string\n * into a DOM `Document`.\n *\n * ***xmldom is different from the spec in that it allows an `options` parameter,\n * to control the behavior***.\n *\n * @class\n * @param {DOMParserOptions} [options]\n * @see https://developer.mozilla.org/en-US/docs/Web/API/DOMParser\n * @see https://html.spec.whatwg.org/multipage/dynamic-markup-insertion.html#dom-parsing-and-serialization\n */\nfunction DOMParser(options) {\n\toptions = options || {};\n\tif (options.locator === undefined) {\n\t\toptions.locator = true;\n\t}\n\n\t/**\n\t * The method to use instead of `conventions.assign`, which is used to copy values from\n\t * `options`\n\t * before they are used for parsing.\n\t *\n\t * @type {conventions.assign}\n\t * @private\n\t * @see {@link conventions.assign}\n\t * @readonly\n\t */\n\tthis.assign = options.assign || conventions.assign;\n\n\t/**\n\t * For internal testing: The class for creating an instance for handling events from the SAX\n\t * parser.\n\t * *****Warning: By configuring a faulty implementation, the specified behavior can completely\n\t * be broken*****.\n\t *\n\t * @type {typeof DOMHandler}\n\t * @private\n\t * @readonly\n\t */\n\tthis.domHandler = options.domHandler || DOMHandler;\n\n\t/**\n\t * A function that is invoked for every error that occurs during parsing.\n\t *\n\t * If it is not provided, all errors are reported to `console.error`\n\t * and only `fatalError`s are thrown as a `ParseError`,\n\t * which prevents any further processing.\n\t * If the provided method throws, a `ParserError` is thrown,\n\t * which prevents any further processing.\n\t *\n\t * Be aware that many `warning`s are considered an error that prevents further processing in\n\t * most implementations.\n\t *\n\t * @type {function(level:ErrorLevel, message:string, context: DOMHandler):void}\n\t * @see {@link onErrorStopParsing}\n\t * @see {@link onWarningStopParsing}\n\t */\n\tthis.onError = options.onError || options.errorHandler;\n\tif (options.errorHandler && typeof options.errorHandler !== 'function') {\n\t\tthrow new TypeError('errorHandler object is no longer supported, switch to onError!');\n\t} else if (options.errorHandler) {\n\t\toptions.errorHandler('warning', 'The `errorHandler` option has been deprecated, use `onError` instead!', this);\n\t}\n\n\t/**\n\t * used to replace line endings before parsing, defaults to `normalizeLineEndings`\n\t *\n\t * @type {(string) => string}\n\t * @readonly\n\t */\n\tthis.normalizeLineEndings = options.normalizeLineEndings || normalizeLineEndings;\n\n\t/**\n\t * Configures if the nodes created during parsing will have a `lineNumber` and a\n\t * `columnNumber`\n\t * attribute describing their location in the XML string.\n\t * Default is true.\n\t *\n\t * @type {boolean}\n\t * @readonly\n\t */\n\tthis.locator = !!options.locator;\n\n\t/**\n\t * The default namespace can be provided by the key that is the empty string.\n\t * When the `mimeType` for HTML, XHTML or SVG are passed to `parseFromString`,\n\t * the default namespace that will be used,\n\t * will be overridden according to the specification.\n\t *\n\t * @type {Readonly<Object>}\n\t * @readonly\n\t */\n\tthis.xmlns = this.assign(Object.create(null), options.xmlns);\n}\n\n/**\n * Parses `source` using the options in the way configured by the `DOMParserOptions` of `this`\n * `DOMParser`. If `mimeType` is `text/html` an HTML `Document` is created,\n * otherwise an XML `Document` is created.\n *\n * __It behaves different from the description in the living standard__:\n * - Uses the `options` passed to the `DOMParser` constructor to modify the behavior.\n * - Any unexpected input is reported to `onError` with either a `warning`,\n * `error` or `fatalError` level.\n * - Any `fatalError` throws a `ParseError` which prevents further processing.\n * - Any error thrown by `onError` is converted to a `ParseError` which prevents further\n * processing - If no `Document` was created during parsing it is reported as a `fatalError`.\n * - A `DOMException` raised while building the DOM (e.g. an unbound namespace prefix) is\n * reported as a `fatalError` and rethrown as a `ParseError` with the `DOMException` as its\n * `cause`.\n * *****Warning: By configuring a faulty DOMHandler implementation,\n * the specified behavior can completely be broken*****.\n *\n * @param {string} source\n * The XML mime type only allows string input!\n * @param {string} [mimeType='application/xml']\n * the mimeType or contentType of the document to be created determines the `type` of document\n * created (XML or HTML)\n * @returns {Document}\n * The `Document` node.\n * @throws {ParseError}\n * for any `fatalError` or anything that is thrown by `onError`\n * @throws {TypeError}\n * for any invalid `mimeType`\n * @see https://developer.mozilla.org/en-US/docs/Web/API/DOMParser/parseFromString\n * @see https://html.spec.whatwg.org/#dom-domparser-parsefromstring-dev\n */\nDOMParser.prototype.parseFromString = function (source, mimeType) {\n\tif (!isValidMimeType(mimeType)) {\n\t\tthrow new TypeError('DOMParser.parseFromString: the provided mimeType \"' + mimeType + '\" is not valid.');\n\t}\n\tvar defaultNSMap = this.assign(Object.create(null), this.xmlns);\n\tvar entityMap = entities.XML_ENTITIES;\n\tvar defaultNamespace = defaultNSMap[''] || null;\n\tif (hasDefaultHTMLNamespace(mimeType)) {\n\t\tentityMap = entities.HTML_ENTITIES;\n\t\tdefaultNamespace = NAMESPACE.HTML;\n\t} else if (mimeType === MIME_TYPE.XML_SVG_IMAGE) {\n\t\tdefaultNamespace = NAMESPACE.SVG;\n\t}\n\tdefaultNSMap[''] = defaultNamespace;\n\tdefaultNSMap.xml = defaultNSMap.xml || NAMESPACE.XML;\n\n\tvar domBuilder = new this.domHandler({\n\t\tmimeType: mimeType,\n\t\tdefaultNamespace: defaultNamespace,\n\t\tonError: this.onError,\n\t});\n\tvar locator = this.locator ? {} : undefined;\n\tif (this.locator) {\n\t\tdomBuilder.setDocumentLocator(locator);\n\t}\n\n\tvar sax = new XMLReader();\n\tsax.errorHandler = domBuilder;\n\tsax.domBuilder = domBuilder;\n\tvar isXml = !conventions.isHTMLMimeType(mimeType);\n\tif (isXml && typeof source !== 'string') {\n\t\tsax.errorHandler.fatalError('source is not a string');\n\t}\n\tsax.parse(this.normalizeLineEndings(String(source)), defaultNSMap, entityMap);\n\tif (!domBuilder.doc.documentElement) {\n\t\tsax.errorHandler.fatalError('missing root element');\n\t}\n\treturn domBuilder.doc;\n};\n\n/**\n * @typedef DOMHandlerOptions\n * @property {string} [mimeType=MIME_TYPE.XML_APPLICATION]\n * @property {string | null} [defaultNamespace=null]\n */\n/**\n * The class that is used to handle events from the SAX parser to create the related DOM\n * elements.\n *\n * Some methods are only implemented as an empty function,\n * since they are (at least currently) not relevant for xmldom.\n *\n * @class\n * @param {DOMHandlerOptions} [options]\n * @see http://www.saxproject.org/apidoc/org/xml/sax/ext/DefaultHandler2.html\n */\nfunction DOMHandler(options) {\n\tvar opt = options || {};\n\t/**\n\t * The mime type is used to determine if the DOM handler will create an XML or HTML document.\n\t * Only if it is set to `text/html` it will create an HTML document.\n\t * It defaults to MIME_TYPE.XML_APPLICATION.\n\t *\n\t * @type {string}\n\t * @see {@link MIME_TYPE}\n\t * @readonly\n\t */\n\tthis.mimeType = opt.mimeType || MIME_TYPE.XML_APPLICATION;\n\n\t/**\n\t * The namespace to use to create an XML document.\n\t * For the following reasons this is required:\n\t * - The SAX API for `startDocument` doesn't offer any way to pass a namespace,\n\t * since at that point there is no way for the parser to know what the default namespace from\n\t * the document will be.\n\t * - When creating using `DOMImplementation.createDocument` it is required to pass a\n\t * namespace,\n\t * to determine the correct `Document.contentType`, which should match `this.mimeType`.\n\t * - When parsing an XML document with the `application/xhtml+xml` mimeType,\n\t * the HTML namespace needs to be the default namespace.\n\t *\n\t * @type {string | null}\n\t * @private\n\t * @readonly\n\t */\n\tthis.defaultNamespace = opt.defaultNamespace || null;\n\n\t/**\n\t * @type {boolean}\n\t * @private\n\t */\n\tthis.cdata = false;\n\n\t/**\n\t * The last `Element` that was created by `startElement`.\n\t * `endElement` sets it to the `currentElement.parentNode`.\n\t *\n\t * Note: The sax parser currently sets it to white space text nodes between tags.\n\t *\n\t * @type {Element | Node | undefined}\n\t * @private\n\t */\n\tthis.currentElement = undefined;\n\n\t/**\n\t * The Document that is created as part of `startDocument`,\n\t * and returned by `DOMParser.parseFromString`.\n\t *\n\t * @type {Document | undefined}\n\t * @readonly\n\t */\n\tthis.doc = undefined;\n\n\t/**\n\t * The locator is stored as part of setDocumentLocator.\n\t * It is controlled and mutated by the SAX parser to store the current parsing position.\n\t * It is used by DOMHandler to set `columnNumber` and `lineNumber`\n\t * on the DOM nodes.\n\t *\n\t * @type {Readonly<Locator> | undefined}\n\t * @private\n\t * @readonly (the\n\t * sax parser currently sometimes set's it)\n\t */\n\tthis.locator = undefined;\n\t/**\n\t * @type {function (level:ErrorLevel ,message:string, context:DOMHandler):void}\n\t * @readonly\n\t */\n\tthis.onError = opt.onError;\n}\n\nfunction position(locator, node) {\n\tnode.lineNumber = locator.lineNumber;\n\tnode.columnNumber = locator.columnNumber;\n}\n\nDOMHandler.prototype = {\n\t/**\n\t * Either creates an XML or an HTML document and stores it under `this.doc`.\n\t * If it is an XML document, `this.defaultNamespace` is used to create it,\n\t * and it will not contain any `childNodes`.\n\t * If it is an HTML document, it will be created without any `childNodes`.\n\t *\n\t * @see http://www.saxproject.org/apidoc/org/xml/sax/ContentHandler.html\n\t */\n\tstartDocument: function () {\n\t\tvar impl = new DOMImplementation();\n\t\tthis.doc = isHTMLMimeType(this.mimeType) ? impl.createHTMLDocument(false) : impl.createDocument(this.defaultNamespace, '');\n\t},\n\tstartElement: function (namespaceURI, localName, qName, attrs) {\n\t\tvar doc = this.doc;\n\t\tvar el = doc.createElementNS(namespaceURI, qName || localName);\n\t\tvar len = attrs.length;\n\t\tappendElement(this, el);\n\t\tthis.currentElement = el;\n\n\t\tthis.locator && position(this.locator, el);\n\t\tfor (var i = 0; i < len; i++) {\n\t\t\tvar namespaceURI = attrs.getURI(i);\n\t\t\tvar value = attrs.getValue(i);\n\t\t\tvar qName = attrs.getQName(i);\n\t\t\tvar attr = doc.createAttributeNS(namespaceURI, qName);\n\t\t\tthis.locator && position(attrs.getLocator(i), attr);\n\t\t\tattr.value = attr.nodeValue = value;\n\t\t\tel.setAttributeNode(attr);\n\t\t}\n\t},\n\tendElement: function (namespaceURI, localName, qName) {\n\t\tthis.currentElement = this.currentElement.parentNode;\n\t},\n\tstartPrefixMapping: function (prefix, uri) {},\n\tendPrefixMapping: function (prefix) {},\n\tprocessingInstruction: function (target, data) {\n\t\tvar ins = this.doc.createProcessingInstruction(target, data);\n\t\tthis.locator && position(this.locator, ins);\n\t\tappendElement(this, ins);\n\t},\n\tignorableWhitespace: function (ch, start, length) {},\n\tcharacters: function (chars, start, length) {\n\t\tchars = _toString.apply(this, arguments);\n\t\t//console.log(chars)\n\t\tif (chars) {\n\t\t\tif (this.cdata) {\n\t\t\t\tvar charNode = this.doc.createCDATASection(chars);\n\t\t\t} else {\n\t\t\t\tvar charNode = this.doc.createTextNode(chars);\n\t\t\t}\n\t\t\tif (this.currentElement) {\n\t\t\t\tthis.currentElement.appendChild(charNode);\n\t\t\t} else if (/^\\s*$/.test(chars)) {\n\t\t\t\tthis.doc.appendChild(charNode);\n\t\t\t\t//process xml\n\t\t\t}\n\t\t\tthis.locator && position(this.locator, charNode);\n\t\t}\n\t},\n\tskippedEntity: function (name) {},\n\tendDocument: function () {\n\t\tthis.doc.normalize();\n\t},\n\t/**\n\t * Stores the locator to be able to set the `columnNumber` and `lineNumber`\n\t * on the created DOM nodes.\n\t *\n\t * @param {Locator} locator\n\t */\n\tsetDocumentLocator: function (locator) {\n\t\tif (locator) {\n\t\t\tlocator.lineNumber = 0;\n\t\t}\n\t\tthis.locator = locator;\n\t},\n\t//LexicalHandler\n\tcomment: function (chars, start, length) {\n\t\tchars = _toString.apply(this, arguments);\n\t\tvar comm = this.doc.createComment(chars);\n\t\tthis.locator && position(this.locator, comm);\n\t\tappendElement(this, comm);\n\t},\n\n\tstartCDATA: function () {\n\t\t//used in characters() methods\n\t\tthis.cdata = true;\n\t},\n\tendCDATA: function () {\n\t\tthis.cdata = false;\n\t},\n\n\tstartDTD: function (name, publicId, systemId, internalSubset) {\n\t\tvar impl = this.doc.implementation;\n\t\tif (impl && impl.createDocumentType) {\n\t\t\tvar dt = impl.createDocumentType(name, publicId, systemId, internalSubset);\n\t\t\tthis.locator && position(this.locator, dt);\n\t\t\tappendElement(this, dt);\n\t\t\tthis.doc.doctype = dt;\n\t\t}\n\t},\n\treportError: function (level, message) {\n\t\tif (typeof this.onError === 'function') {\n\t\t\ttry {\n\t\t\t\tthis.onError(level, message, this);\n\t\t\t} catch (e) {\n\t\t\t\tthrow new ParseError('Reporting ' + level + ' \"' + message + '\" caused ' + e, this.locator);\n\t\t\t}\n\t\t} else {\n\t\t\tconsole.error('[xmldom ' + level + ']\\t' + message, _locator(this.locator));\n\t\t}\n\t},\n\t/**\n\t * @see http://www.saxproject.org/apidoc/org/xml/sax/ErrorHandler.html\n\t */\n\twarning: function (message) {\n\t\tthis.reportError('warning', message);\n\t},\n\terror: function (message) {\n\t\tthis.reportError('error', message);\n\t},\n\t/**\n\t * This function reports a fatal error and throws a ParseError.\n\t *\n\t * @param {string} message\n\t * - The message to be used for reporting and throwing the error.\n\t * @param {Error} [cause]\n\t * The error that caused this fatal error, preserved as the thrown `ParseError`'s `cause`.\n\t * @returns {never}\n\t * This function always throws an error and never returns a value.\n\t * @throws {ParseError}\n\t * Always throws a ParseError with the provided message.\n\t */\n\tfatalError: function (message, cause) {\n\t\tthis.reportError('fatalError', message);\n\t\tthrow new ParseError(message, this.locator, cause);\n\t},\n};\n\nfunction _locator(l) {\n\tif (l) {\n\t\treturn '\\n@#[line:' + l.lineNumber + ',col:' + l.columnNumber + ']';\n\t}\n}\n\nfunction _toString(chars, start, length) {\n\tif (typeof chars == 'string') {\n\t\treturn chars.substr(start, length);\n\t} else {\n\t\t//java sax connect width xmldom on rhino(what about: \"? && !(chars instanceof String)\")\n\t\tif (chars.length >= start + length || start) {\n\t\t\treturn new java.lang.String(chars, start, length) + '';\n\t\t}\n\t\treturn chars;\n\t}\n}\n\n/*\n * @link http://www.saxproject.org/apidoc/org/xml/sax/ext/LexicalHandler.html\n * used method of org.xml.sax.ext.LexicalHandler:\n * #comment(chars, start, length)\n * #startCDATA()\n * #endCDATA()\n * #startDTD(name, publicId, systemId)\n *\n *\n * IGNORED method of org.xml.sax.ext.LexicalHandler:\n * #endDTD()\n * #startEntity(name)\n * #endEntity(name)\n *\n *\n * @link http://www.saxproject.org/apidoc/org/xml/sax/ext/DeclHandler.html\n * IGNORED method of org.xml.sax.ext.DeclHandler\n * \t#attributeDecl(eName, aName, type, mode, value)\n * #elementDecl(name, model)\n * #externalEntityDecl(name, publicId, systemId)\n * #internalEntityDecl(name, value)\n * @link http://www.saxproject.org/apidoc/org/xml/sax/ext/EntityResolver2.html\n * IGNORED method of org.xml.sax.EntityResolver2\n * #resolveEntity(String name,String publicId,String baseURI,String systemId)\n * #resolveEntity(publicId, systemId)\n * #getExternalSubset(name, baseURI)\n * @link http://www.saxproject.org/apidoc/org/xml/sax/DTDHandler.html\n * IGNORED method of org.xml.sax.DTDHandler\n * #notationDecl(name, publicId, systemId) {};\n * #unparsedEntityDecl(name, publicId, systemId, notationName) {};\n */\n'endDTD,startEntity,endEntity,attributeDecl,elementDecl,externalEntityDecl,internalEntityDecl,resolveEntity,getExternalSubset,notationDecl,unparsedEntityDecl'.replace(\n\t/\\w+/g,\n\tfunction (key) {\n\t\tDOMHandler.prototype[key] = function () {\n\t\t\treturn null;\n\t\t};\n\t}\n);\n\n/* Private static helpers treated below as private instance methods, so don't need to add these to the public API; we might use a Relator to also get rid of non-standard public properties */\nfunction appendElement(handler, node) {\n\tif (!handler.currentElement) {\n\t\thandler.doc.appendChild(node);\n\t} else {\n\t\thandler.currentElement.appendChild(node);\n\t}\n}\n\n/**\n * A method that prevents any further parsing when an `error`\n * with level `error` is reported during parsing.\n *\n * @see {@link DOMParserOptions.onError}\n * @see {@link onWarningStopParsing}\n */\nfunction onErrorStopParsing(level) {\n\tif (level === 'error') throw 'onErrorStopParsing';\n}\n\n/**\n * A method that prevents any further parsing when any `error` is reported during parsing.\n *\n * @see {@link DOMParserOptions.onError}\n * @see {@link onErrorStopParsing}\n */\nfunction onWarningStopParsing() {\n\tthrow 'onWarningStopParsing';\n}\n\nexports.__DOMHandler = DOMHandler;\nexports.DOMParser = DOMParser;\nexports.normalizeLineEndings = normalizeLineEndings;\nexports.onErrorStopParsing = onErrorStopParsing;\nexports.onWarningStopParsing = onWarningStopParsing;\n","'use strict';\nvar conventions = require('./conventions');\nexports.assign = conventions.assign;\nexports.hasDefaultHTMLNamespace = conventions.hasDefaultHTMLNamespace;\nexports.isHTMLMimeType = conventions.isHTMLMimeType;\nexports.isValidMimeType = conventions.isValidMimeType;\nexports.MIME_TYPE = conventions.MIME_TYPE;\nexports.NAMESPACE = conventions.NAMESPACE;\n\nvar errors = require('./errors');\nexports.DOMException = errors.DOMException;\nexports.DOMExceptionName = errors.DOMExceptionName;\nexports.ExceptionCode = errors.ExceptionCode;\nexports.ParseError = errors.ParseError;\n\nvar dom = require('./dom');\nexports.Attr = dom.Attr;\nexports.CDATASection = dom.CDATASection;\nexports.CharacterData = dom.CharacterData;\nexports.Comment = dom.Comment;\nexports.Document = dom.Document;\nexports.DocumentFragment = dom.DocumentFragment;\nexports.DocumentType = dom.DocumentType;\nexports.DOMImplementation = dom.DOMImplementation;\nexports.Element = dom.Element;\nexports.Entity = dom.Entity;\nexports.EntityReference = dom.EntityReference;\nexports.LiveNodeList = dom.LiveNodeList;\nexports.NamedNodeMap = dom.NamedNodeMap;\nexports.Node = dom.Node;\nexports.NodeList = dom.NodeList;\nexports.Notation = dom.Notation;\nexports.ProcessingInstruction = dom.ProcessingInstruction;\nexports.Text = dom.Text;\nexports.XMLSerializer = dom.XMLSerializer;\n\nvar domParser = require('./dom-parser');\nexports.DOMParser = domParser.DOMParser;\nexports.normalizeLineEndings = domParser.normalizeLineEndings;\nexports.onErrorStopParsing = domParser.onErrorStopParsing;\nexports.onWarningStopParsing = domParser.onWarningStopParsing;\n","import { DOMParser as XmldomDOMParser, XMLSerializer as XmldomXMLSerializer } from '@xmldom/xmldom';\nexport function parseXml(xml) {\n const DOMParserImpl = globalThis.DOMParser ?? XmldomDOMParser;\n const parser = new DOMParserImpl({\n // Silences xmldom's console reporting of warnings and recoverable errors;\n // a fatalError still throws a ParseError after this returns.\n onError: () => { },\n });\n const doc = parser.parseFromString(xml, 'text/xml');\n // xmldom represents parse errors using <parsererror> nodes in some cases.\n // We detect them and throw to make failures explicit.\n const parserErrors = doc.getElementsByTagName('parsererror');\n if (parserErrors && parserErrors.length > 0) {\n const msg = parserErrors[0]?.textContent?.trim() || 'XML parse error';\n throw new Error(msg);\n }\n return doc;\n}\nexport function serializeXml(node) {\n const XMLSerializerImpl = globalThis.XMLSerializer ?? XmldomXMLSerializer;\n return new XMLSerializerImpl().serializeToString(node);\n}\n//# sourceMappingURL=parse.js.map","import { childElements, firstChildElement, getAttr, localName, } from '../xml/traverse.js';\nimport { newAstId } from './id.js';\nimport { Qti2xElementNameMapper } from '@pie-qti/qti-common';\nimport { parseXml, serializeXml } from '../xml/parse.js';\nexport function buildTemplateProcessingAst(templateProcessingEl, options) {\n const scope = 'item';\n const buildOptions = { scope, ...options };\n return {\n kind: 'program',\n id: newAstId('program'),\n statements: buildStatements(childElements(templateProcessingEl), 'template', buildOptions),\n };\n}\nexport function buildResponseProcessingAst(responseProcessingEl, options) {\n const scope = 'item';\n const buildOptions = { scope, ...options };\n return {\n kind: 'program',\n id: newAstId('program'),\n statements: buildStatements(childElements(responseProcessingEl), 'response', buildOptions),\n };\n}\nexport function buildOutcomeProcessingAst(outcomeProcessingEl, options) {\n const scope = options?.scope ?? 'item';\n const buildOptions = { ...options, scope };\n return {\n kind: 'program',\n id: newAstId('program'),\n statements: buildStatements(childElements(outcomeProcessingEl), 'outcome', buildOptions),\n };\n}\nfunction buildStatements(els, mode, options, fragmentState = { stack: [], totalCharacters: 0 }) {\n const mapper = options.elementNameMapper ?? new Qti2xElementNameMapper();\n const out = [];\n for (const el of els) {\n const rawName = localName(el) || '';\n const tag = mapper.toCanonical(rawName);\n switch (tag) {\n case 'responseprocessingfragment': {\n // Inline fragments are equivalent to a grouped list of response rules.\n // Spec: ResponseProcessingFragment.Type (QTI 2.2.2) allows the same rule set as responseProcessing.\n if (mode !== 'response')\n break;\n out.push(...buildStatements(childElements(el), mode, options, fragmentState));\n break;\n }\n case 'outcomeprocessingfragment': {\n // Inline fragments are equivalent to a grouped list of outcome rules.\n // Spec: OutcomeProcessingFragment.Type (QTI 2.2.2) allows the same rule set as outcomeProcessing.\n if (mode !== 'outcome')\n break;\n out.push(...buildStatements(childElements(el), mode, options, fragmentState));\n break;\n }\n case 'include': {\n out.push(...buildIncludedStatements(el, mode, options, fragmentState));\n break;\n }\n case 'setoutcomevalue': {\n const identifier = getAttr(el, 'identifier');\n const exprEl = firstChildElement(el);\n if (!identifier || !exprEl)\n break;\n out.push({\n kind: 'stmt.setOutcomeValue',\n id: newAstId('stmt'),\n identifier,\n expr: buildExpression(exprEl, options),\n });\n break;\n }\n case 'lookupoutcomevalue': {\n if (mode !== 'outcome' && mode !== 'response')\n break;\n const identifier = getAttr(el, 'identifier');\n const exprEl = firstChildElement(el);\n if (!identifier || !exprEl)\n break;\n out.push({\n kind: 'stmt.lookupOutcomeValue',\n id: newAstId('stmt'),\n identifier,\n expr: buildExpression(exprEl, options),\n });\n break;\n }\n case 'setresponsevalue': {\n if (mode !== 'response')\n break;\n const identifier = getAttr(el, 'identifier');\n const exprEl = firstChildElement(el);\n if (!identifier || !exprEl)\n break;\n out.push({\n kind: 'stmt.setResponseValue',\n id: newAstId('stmt'),\n identifier,\n expr: buildExpression(exprEl, options),\n });\n break;\n }\n case 'settemplatevalue': {\n const identifier = getAttr(el, 'identifier');\n const exprEl = firstChildElement(el);\n if (!identifier || !exprEl)\n break;\n out.push({\n kind: 'stmt.setTemplateValue',\n id: newAstId('stmt'),\n identifier,\n expr: buildExpression(exprEl, options),\n });\n break;\n }\n case 'setcorrectresponse': {\n if (mode !== 'template')\n break;\n const identifier = getAttr(el, 'identifier');\n const exprEl = firstChildElement(el);\n if (!identifier || !exprEl)\n break;\n out.push({\n kind: 'stmt.setCorrectResponse',\n id: newAstId('stmt'),\n identifier,\n expr: buildExpression(exprEl, options),\n });\n break;\n }\n case 'setdefaultvalue': {\n // Commonly used in responseProcessing to reset a response to its declared <defaultValue>\n const identifier = getAttr(el, 'identifier');\n if (!identifier)\n break;\n out.push({\n kind: 'stmt.setDefaultValue',\n id: newAstId('stmt'),\n identifier,\n });\n break;\n }\n case 'exitresponse': {\n if (mode !== 'response')\n break;\n out.push({\n kind: 'stmt.exitResponse',\n id: newAstId('stmt'),\n });\n break;\n }\n case 'exittemplate': {\n if (mode !== 'template')\n break;\n out.push({\n kind: 'stmt.exitTemplate',\n id: newAstId('stmt'),\n });\n break;\n }\n case 'exittest': {\n // exitTest exists in outcomeProcessing (QTI 2.2.2). This is a test-level control-flow construct.\n // In the item-only player we still parse it so fixtures can track its presence.\n if (mode !== 'outcome')\n break;\n out.push({\n kind: 'stmt.exitTest',\n id: newAstId('stmt'),\n });\n break;\n }\n case 'responsecondition': {\n if (mode !== 'response')\n break;\n out.push(buildResponseCondition(el, options, fragmentState));\n break;\n }\n case 'outcomecondition': {\n if (mode !== 'outcome')\n break;\n out.push(buildOutcomeCondition(el, options, fragmentState));\n break;\n }\n case 'templatecondition': {\n if (mode !== 'template')\n break;\n out.push(buildTemplateCondition(el, options, fragmentState));\n break;\n }\n case 'templateconstraint': {\n if (mode !== 'template')\n break;\n const exprEl = firstChildElement(el);\n if (!exprEl) {\n throw new Error('<templateConstraint> requires exactly 1 child expression');\n }\n out.push({\n kind: 'stmt.templateConstraint',\n id: newAstId('stmt'),\n expr: buildExpression(exprEl, options),\n });\n break;\n }\n case 'console': {\n if (mode !== 'response') {\n throw new Error(`Unknown processing statement tag: <${tag}> (mode=${mode})`);\n }\n if (childElements(el).length > 0) {\n throw new Error('Unsupported processing statement tag: <console> with child elements');\n }\n // Diagnostic/vendor trace marker found in legacy fixtures; it has no QTI processing effect.\n break;\n }\n default:\n // Unknown statement tags in processing are almost always a correctness bug.\n // Fail loudly so we surface missing QTI coverage via fixtures/tests.\n throw new Error(`Unknown processing statement tag: <${tag}> (mode=${mode})`);\n }\n }\n return out;\n}\nfunction buildIncludedStatements(includeElement, mode, options, state) {\n const href = getAttr(includeElement, 'href')?.trim();\n if (!href) {\n throw new Error('xi:include in processing requires a non-empty href');\n }\n const parseMode = getAttr(includeElement, 'parse')?.trim().toLowerCase();\n if (parseMode && parseMode !== 'xml') {\n throw new Error(`xi:include parse=\"${parseMode}\" is not supported for QTI processing fragments`);\n }\n const maxDepth = options.maxProcessingFragmentDepth ?? 16;\n if (!Number.isSafeInteger(maxDepth) || maxDepth < 0) {\n throw new Error('maxProcessingFragmentDepth must be a non-negative safe integer');\n }\n if (state.stack.length >= maxDepth) {\n throw new Error(`QTI processing fragment include depth exceeds ${maxDepth}`);\n }\n if (state.stack.includes(href)) {\n throw new Error(`Circular QTI processing fragment include: ${[...state.stack, href].join(' -> ')}`);\n }\n const resolver = options.resolveProcessingFragment;\n let resolved;\n if (resolver) {\n resolved = resolver({\n href,\n mode,\n scope: options.scope,\n depth: state.stack.length,\n });\n }\n if (resolved == null) {\n const fallback = childElements(includeElement).find((child) => (localName(child) ?? '').toLowerCase() === 'fallback');\n if (fallback) {\n return buildStatements(childElements(fallback), mode, options, state);\n }\n if (!resolver) {\n throw new Error(`Cannot resolve QTI processing fragment '${href}': no resolveProcessingFragment host callback was provided`);\n }\n throw new Error(`QTI processing fragment resolver returned no content for '${href}'`);\n }\n const xml = typeof resolved === 'string' ? resolved : serializeXml(resolved);\n const maxCharacters = options.maxProcessingFragmentCharacters ?? 2 * 1024 * 1024;\n if (!Number.isSafeInteger(maxCharacters) || maxCharacters < 0) {\n throw new Error('maxProcessingFragmentCharacters must be a non-negative safe integer');\n }\n state.totalCharacters += xml.length;\n if (state.totalCharacters > maxCharacters) {\n throw new Error(`QTI processing fragments exceed ${maxCharacters} cumulative characters`);\n }\n const root = typeof resolved === 'string'\n ? parseXml(resolved).documentElement\n : resolved.documentElement ?? resolved;\n if (!root) {\n throw new Error(`QTI processing fragment '${href}' has no document element`);\n }\n const mapper = options.elementNameMapper ?? new Qti2xElementNameMapper();\n const rootTag = mapper.toCanonical(localName(root) ?? '');\n const processingRoot = `${mode}processing`;\n const fragmentRoot = `${mode}processingfragment`;\n const isAnyFragmentRoot = rootTag.endsWith('processingfragment');\n if (isAnyFragmentRoot && rootTag !== fragmentRoot) {\n throw new Error(`QTI processing fragment '${href}' has <${rootTag}> but is included from ${mode}Processing`);\n }\n const statements = rootTag === processingRoot || rootTag === fragmentRoot\n ? childElements(root)\n : [root];\n state.stack.push(href);\n try {\n return buildStatements(statements, mode, options, state);\n }\n finally {\n state.stack.pop();\n }\n}\nfunction buildResponseCondition(el, options, fragmentState) {\n const mapper = options.elementNameMapper ?? new Qti2xElementNameMapper();\n const children = childElements(el);\n const id = newAstId('stmt');\n const ifEl = children.find((c) => mapper.toCanonical(localName(c) || '') === 'responseif') || null;\n const elseIfEls = children.filter((c) => mapper.toCanonical(localName(c) || '') === 'responseelseif');\n const elseEl = children.find((c) => mapper.toCanonical(localName(c) || '') === 'responseelse') || null;\n const ifBranch = ifEl ? buildConditionalBranch(ifEl, 'response', options, fragmentState) : undefined;\n const elseIfBranches = elseIfEls.map((e) => buildConditionalBranch(e, 'response', options, fragmentState)).filter(Boolean);\n const elseBranch = elseEl ? buildElseBranch(elseEl, 'response', options, fragmentState) : undefined;\n return {\n kind: 'stmt.responseCondition',\n id,\n ifBranch,\n elseIfBranches,\n elseBranch,\n };\n}\nfunction buildTemplateCondition(el, options, fragmentState) {\n const mapper = options.elementNameMapper ?? new Qti2xElementNameMapper();\n const children = childElements(el);\n const id = newAstId('stmt');\n const ifEl = children.find((c) => mapper.toCanonical(localName(c) || '') === 'templateif') || null;\n const elseIfEls = children.filter((c) => mapper.toCanonical(localName(c) || '') === 'templateelseif');\n const elseEl = children.find((c) => mapper.toCanonical(localName(c) || '') === 'templateelse') || null;\n const ifBranch = ifEl ? buildConditionalBranch(ifEl, 'template', options, fragmentState) : undefined;\n const elseIfBranches = elseIfEls.map((e) => buildConditionalBranch(e, 'template', options, fragmentState)).filter(Boolean);\n const elseBranch = elseEl ? buildElseBranch(elseEl, 'template', options, fragmentState) : undefined;\n return {\n kind: 'stmt.templateCondition',\n id,\n ifBranch,\n elseIfBranches,\n elseBranch,\n };\n}\nfunction buildOutcomeCondition(el, options, fragmentState) {\n const mapper = options.elementNameMapper ?? new Qti2xElementNameMapper();\n const children = childElements(el);\n const id = newAstId('stmt');\n const ifEl = children.find((c) => mapper.toCanonical(localName(c) || '') === 'outcomeif') || null;\n const elseIfEls = children.filter((c) => mapper.toCanonical(localName(c) || '') === 'outcomeelseif');\n const elseEl = children.find((c) => mapper.toCanonical(localName(c) || '') === 'outcomeelse') || null;\n const ifBranch = ifEl ? buildConditionalBranch(ifEl, 'outcome', options, fragmentState) : undefined;\n const elseIfBranches = elseIfEls.map((e) => buildConditionalBranch(e, 'outcome', options, fragmentState)).filter(Boolean);\n const elseBranch = elseEl ? buildElseBranch(elseEl, 'outcome', options, fragmentState) : undefined;\n return {\n kind: 'stmt.outcomeCondition',\n id,\n ifBranch,\n elseIfBranches,\n elseBranch,\n };\n}\nfunction buildConditionalBranch(el, mode, options, fragmentState) {\n const condEl = firstChildElement(el);\n if (!condEl)\n return undefined;\n const cond = buildExpression(condEl, options);\n // Remaining child elements after condition are statements\n const els = childElements(el).slice(1);\n const statements = buildStatements(els, mode, options, fragmentState);\n return { condition: cond, statements };\n}\nfunction buildElseBranch(el, mode, options, fragmentState) {\n const statements = buildStatements(childElements(el), mode, options, fragmentState);\n return { statements };\n}\nexport function buildExpression(el, options) {\n const mapper = options?.elementNameMapper ?? new Qti2xElementNameMapper();\n const scope = options?.scope ?? 'item';\n const rawName = localName(el) || '';\n const tag = mapper.toCanonical(rawName);\n const id = newAstId('expr');\n const kids = childElements(el);\n const boolAttr = (name, defaultValue) => {\n const raw = (getAttr(el, name) || '').trim().toLowerCase();\n if (!raw)\n return defaultValue;\n if (raw === 'true' || raw === '1')\n return true;\n if (raw === 'false' || raw === '0')\n return false;\n return defaultValue;\n };\n const numAttr = (name, defaultValue) => {\n const raw = (getAttr(el, name) || '').trim();\n if (!raw)\n return defaultValue;\n const n = Number(raw);\n return Number.isFinite(n) ? n : defaultValue;\n };\n const strAttr = (name) => {\n const raw = (getAttr(el, name) || '').trim();\n return raw ? raw : undefined;\n };\n // QTI XSD uses \"VariableString.Type\" in many operator attributes (e.g. randomInteger@min/max/step).\n // For now we interpret:\n // - numeric literal => <baseValue>\n // - otherwise => <variable identifier=\"...\">\n const attrAsExpr = (name, baseType) => {\n const raw = (getAttr(el, name) || '').trim();\n if (!raw)\n return undefined;\n const n = Number(raw);\n if (Number.isFinite(n)) {\n return { kind: 'expr.baseValue', id: newAstId('expr'), baseType, text: raw };\n }\n return { kind: 'expr.variable', id: newAstId('expr'), identifier: raw };\n };\n const listAttr = (name) => {\n const raw = (getAttr(el, name) || '').trim();\n if (!raw)\n return undefined;\n return raw.split(/\\s+/).filter(Boolean);\n };\n switch (tag) {\n case 'testvariables':\n case 'outcomeminimum':\n case 'outcomemaximum': {\n if (scope !== 'test') {\n throw new Error(`${localName(el)} is a test-level outcomeProcessing expression and is not supported by the item-only player`);\n }\n if (tag === 'testvariables') {\n const variableIdentifier = getAttr(el, 'variableIdentifier') || '';\n if (!variableIdentifier)\n throw new Error('<testVariables> requires variableIdentifier');\n return {\n kind: 'expr.testVariables',\n id,\n variableIdentifier,\n baseType: (getAttr(el, 'baseType') || '').trim() || undefined,\n sectionIdentifier: (getAttr(el, 'sectionIdentifier') || '').trim() || undefined,\n includeCategory: listAttr('includeCategory'),\n excludeCategory: listAttr('excludeCategory'),\n weightIdentifier: (getAttr(el, 'weightIdentifier') || '').trim() || undefined,\n };\n }\n const outcomeIdentifier = getAttr(el, 'outcomeIdentifier') || '';\n if (!outcomeIdentifier)\n throw new Error(`<${tag}> requires outcomeIdentifier`);\n return {\n kind: tag === 'outcomeminimum' ? 'expr.outcomeMinimum' : 'expr.outcomeMaximum',\n id,\n outcomeIdentifier,\n sectionIdentifier: (getAttr(el, 'sectionIdentifier') || '').trim() || undefined,\n includeCategory: listAttr('includeCategory'),\n excludeCategory: listAttr('excludeCategory'),\n weightIdentifier: (getAttr(el, 'weightIdentifier') || '').trim() || undefined,\n };\n }\n case 'basevalue': {\n return {\n kind: 'expr.baseValue',\n id,\n baseType: getAttr(el, 'baseType') || 'string',\n text: (el.textContent || '').trim(),\n };\n }\n case 'null': {\n return { kind: 'expr.null', id };\n }\n case 'variable': {\n const identifier = getAttr(el, 'identifier') || '';\n return { kind: 'expr.variable', id, identifier };\n }\n case 'correct': {\n const identifier = getAttr(el, 'identifier') || '';\n return { kind: 'expr.correct', id, identifier };\n }\n case 'default': {\n const identifier = getAttr(el, 'identifier') || '';\n return { kind: 'expr.default', id, identifier };\n }\n case 'numbercorrect':\n case 'numberincorrect':\n case 'numberpresented':\n case 'numberresponded':\n case 'numberselected': {\n if (scope !== 'test') {\n // QTI 2.2.2: these are Outcome Processing expressions providing summative information and\n // include test-section/category filtering attributes. They are not meaningful for item-only processing.\n throw new Error(`<${tag}> is a test-level outcome processing expression and is not supported in the item-only player.`);\n }\n const kind = tag === 'numbercorrect' ? 'expr.numberCorrect' :\n tag === 'numberincorrect' ? 'expr.numberIncorrect' :\n tag === 'numberpresented' ? 'expr.numberPresented' :\n tag === 'numberresponded' ? 'expr.numberResponded' :\n 'expr.numberSelected';\n return {\n kind,\n id,\n sectionIdentifier: (getAttr(el, 'sectionIdentifier') || '').trim() || undefined,\n includeCategory: listAttr('includeCategory'),\n excludeCategory: listAttr('excludeCategory'),\n };\n }\n case 'customoperator': {\n const klass = (getAttr(el, 'class') || '').trim();\n const definition = (getAttr(el, 'definition') || '').trim();\n return {\n kind: 'expr.customOperator',\n id,\n class: klass || undefined,\n definition: definition || undefined,\n values: kids.map((k) => buildExpression(k, options)),\n };\n }\n case 'precondition': {\n const exprEl = kids[0];\n if (!exprEl)\n throw new Error('<preCondition> missing expression');\n return { kind: 'expr.preCondition', id, expr: buildExpression(exprEl, options) };\n }\n case 'match': {\n return { kind: 'expr.match', id, a: buildExpression(kids[0], options), b: buildExpression(kids[1], options) };\n }\n case 'equal': {\n const toleranceModeRaw = (getAttr(el, 'toleranceMode') || '').trim().toLowerCase();\n const toleranceMode = toleranceModeRaw === 'absolute' || toleranceModeRaw === 'relative' || toleranceModeRaw === 'exact'\n ? toleranceModeRaw\n : undefined;\n const toleranceRaw = strAttr('tolerance');\n const tolerance = toleranceRaw ? toleranceRaw.split(/\\s+/).filter(Boolean) : undefined;\n return {\n kind: 'expr.equal',\n id,\n a: buildExpression(kids[0], options),\n b: buildExpression(kids[1], options),\n toleranceMode,\n tolerance,\n includeLowerBound: toleranceMode ? boolAttr('includeLowerBound', true) : undefined,\n includeUpperBound: toleranceMode ? boolAttr('includeUpperBound', true) : undefined,\n };\n }\n case 'equalrounded': {\n // QTI 2.2.2: roundingMode is optional (default=\"significantFigures\").\n // For compatibility with QTI 2.1 and real-world content, accept singular forms and normalize.\n const roundingModeRaw = (getAttr(el, 'roundingMode') || 'significantFigures').trim();\n const figures = getAttr(el, 'figures') || '';\n if (!figures)\n throw new Error('<equalRounded> requires figures');\n const rm = roundingModeRaw.toLowerCase();\n const roundingMode = rm === 'decimalplace' || rm === 'decimalplaces'\n ? 'decimalPlaces'\n : rm === 'significantfigure' || rm === 'significantfigures'\n ? 'significantFigures'\n : null;\n if (!roundingMode) {\n throw new Error('<equalRounded> roundingMode must be \"decimalPlaces\"|\"significantFigures\"');\n }\n return {\n kind: 'expr.equalRounded',\n id,\n a: buildExpression(kids[0], options),\n b: buildExpression(kids[1], options),\n roundingMode,\n figures,\n };\n }\n case 'notequal': {\n return { kind: 'expr.notEqual', id, a: buildExpression(kids[0], options), b: buildExpression(kids[1], options) };\n }\n case 'member': {\n return {\n kind: 'expr.member',\n id,\n value: buildExpression(kids[0], options),\n container: buildExpression(kids[1], options),\n };\n }\n case 'contains': {\n return {\n kind: 'expr.contains',\n id,\n container: buildExpression(kids[0], options),\n value: buildExpression(kids[1], options),\n };\n }\n case 'containersize': {\n return { kind: 'expr.containerSize', id, container: buildExpression(kids[0], options) };\n }\n case 'index': {\n const indexAttr = attrAsExpr('n', 'integer');\n if (indexAttr) {\n if (kids.length !== 1) {\n throw new Error('<index n=\"...\"> requires exactly one child expression');\n }\n return {\n kind: 'expr.index',\n id,\n container: buildExpression(kids[0], options),\n index: indexAttr,\n };\n }\n if (kids.length !== 2) {\n throw new Error('<index> requires n attribute or two child expressions');\n }\n return {\n kind: 'expr.index',\n id,\n container: buildExpression(kids[0], options),\n index: buildExpression(kids[1], options),\n };\n }\n case 'ordered': {\n return { kind: 'expr.ordered', id, values: kids.map((k) => buildExpression(k, options)) };\n }\n case 'multiple': {\n return { kind: 'expr.multiple', id, values: kids.map((k) => buildExpression(k, options)) };\n }\n case 'delete': {\n return {\n kind: 'expr.delete',\n id,\n container: buildExpression(kids[0], options),\n value: buildExpression(kids[1], options),\n };\n }\n case 'repeat': {\n const raw = (getAttr(el, 'numberRepeats') || '').trim();\n if (!raw)\n throw new Error('<repeat> requires numberRepeats attribute');\n const asNum = Number(raw);\n const numberRepeats = Number.isFinite(asNum) && /^-?\\d+$/.test(raw) ? asNum : raw;\n if (kids.length < 1)\n throw new Error('<repeat> requires at least one child expression');\n return {\n kind: 'expr.repeat',\n id,\n numberRepeats,\n values: kids.map((k) => buildExpression(k, options)),\n };\n }\n case 'durationlt': {\n if (kids.length !== 2)\n throw new Error('<durationLT> requires exactly two child expressions');\n return { kind: 'expr.durationLT', id, a: buildExpression(kids[0], options), b: buildExpression(kids[1], options) };\n }\n case 'durationgte': {\n if (kids.length !== 2)\n throw new Error('<durationGTE> requires exactly two child expressions');\n return { kind: 'expr.durationGTE', id, a: buildExpression(kids[0], options), b: buildExpression(kids[1], options) };\n }\n case 'inside': {\n const shape = (getAttr(el, 'shape') || '').trim();\n const coords = (getAttr(el, 'coords') || '').trim();\n if (!shape)\n throw new Error('<inside> requires shape attribute');\n if (!coords)\n throw new Error('<inside> requires coords attribute');\n if (kids.length !== 1)\n throw new Error('<inside> requires exactly one child expression');\n return { kind: 'expr.inside', id, shape, coords, value: buildExpression(kids[0], options) };\n }\n case 'statsoperator': {\n const name = (getAttr(el, 'name') || '').trim();\n if (!name)\n throw new Error('<statsOperator> requires name attribute');\n if (kids.length !== 1)\n throw new Error('<statsOperator> requires exactly one child expression');\n return { kind: 'expr.statsOperator', id, name, values: buildExpression(kids[0], options) };\n }\n case 'record': {\n // QTI record: children are <fieldValue fieldIdentifier=\"...\">VALUE</fieldValue>\n const fields = childElements(el)\n .filter((c) => (localName(c) || '').toLowerCase() === 'fieldvalue')\n .map((c) => ({\n fieldIdentifier: getAttr(c, 'fieldIdentifier') || '',\n value: buildExpression(childElements(c)[0] ?? c),\n }))\n .filter((f) => Boolean(f.fieldIdentifier));\n return { kind: 'expr.record', id, fields };\n }\n case 'fieldvalue': {\n const fieldIdentifier = getAttr(el, 'fieldIdentifier') || '';\n return { kind: 'expr.fieldValue', id, fieldIdentifier, record: buildExpression(kids[0], options) };\n }\n case 'substring': {\n return {\n kind: 'expr.substring',\n id,\n value: buildExpression(kids[0], options),\n start: buildExpression(kids[1], options),\n length: kids[2] ? buildExpression(kids[2]) : undefined,\n };\n }\n case 'lookuptable': {\n const source = buildExpression(kids[0], options);\n const tableEl = kids[1];\n if (!tableEl) {\n throw new Error('<lookupTable> is missing its table element child');\n }\n const tableTag = (localName(tableEl) || '').toLowerCase();\n const tableKids = childElements(tableEl);\n const numAttrOn = (node, name) => {\n const raw = (getAttr(node, name) || '').trim();\n if (!raw)\n return undefined;\n const n = Number(raw);\n return Number.isFinite(n) ? n : undefined;\n };\n if (tableTag === 'matchtable') {\n const entries = tableKids\n .filter((e) => (localName(e) || '').toLowerCase() === 'matchtableentry')\n .map((e) => ({\n sourceValue: getAttr(e, 'sourceValue') || '',\n targetValue: getAttr(e, 'targetValue') || '',\n }));\n return {\n kind: 'expr.lookupTable',\n id,\n source,\n table: {\n kind: 'table.matchTable',\n defaultValue: numAttrOn(tableEl, 'defaultValue'),\n entries,\n },\n };\n }\n if (tableTag === 'interpolationtable') {\n const entries = tableKids\n .filter((e) => (localName(e) || '').toLowerCase() === 'interpolationtableentry')\n .map((e) => ({\n sourceValue: Number(getAttr(e, 'sourceValue') || ''),\n targetValue: Number(getAttr(e, 'targetValue') || ''),\n }))\n .filter((e) => Number.isFinite(e.sourceValue) && Number.isFinite(e.targetValue));\n return {\n kind: 'expr.lookupTable',\n id,\n source,\n table: {\n kind: 'table.interpolationTable',\n defaultValue: numAttrOn(tableEl, 'defaultValue'),\n interpolationMethod: (getAttr(tableEl, 'interpolationMethod') || 'linear').trim(),\n entries,\n },\n };\n }\n throw new Error(`<lookupTable> unsupported table element: <${tableTag}>`);\n }\n case 'power': {\n return { kind: 'expr.power', id, a: buildExpression(kids[0], options), b: buildExpression(kids[1], options) };\n }\n case 'mod': {\n return { kind: 'expr.mod', id, a: buildExpression(kids[0], options), b: buildExpression(kids[1], options) };\n }\n case 'integerdivide': {\n return { kind: 'expr.integerDivide', id, a: buildExpression(kids[0], options), b: buildExpression(kids[1], options) };\n }\n case 'mean': {\n return { kind: 'expr.mean', id, values: buildExpression(kids[0], options) };\n }\n case 'samplevariance': {\n return { kind: 'expr.sampleVariance', id, values: buildExpression(kids[0], options) };\n }\n case 'samplesd': {\n return { kind: 'expr.sampleSD', id, values: buildExpression(kids[0], options) };\n }\n case 'popvariance': {\n return { kind: 'expr.popVariance', id, values: buildExpression(kids[0], options) };\n }\n case 'popsd': {\n return { kind: 'expr.popSD', id, values: buildExpression(kids[0], options) };\n }\n case 'istypeof': {\n return {\n kind: 'expr.isTypeOf',\n id,\n value: buildExpression(kids[0], options),\n baseType: buildExpression(kids[1], options),\n };\n }\n case 'stringmatch': {\n return {\n kind: 'expr.stringMatch',\n id,\n a: buildExpression(kids[0], options),\n b: buildExpression(kids[1], options),\n caseSensitive: boolAttr('caseSensitive', false),\n substring: boolAttr('substring', false),\n };\n }\n case 'patternmatch': {\n return {\n kind: 'expr.patternMatch',\n id,\n value: buildExpression(kids[0], options),\n pattern: buildExpression(kids[1], options),\n caseSensitive: boolAttr('caseSensitive', true),\n };\n }\n case 'isnull': {\n return { kind: 'expr.isNull', id, expr: buildExpression(kids[0], options) };\n }\n case 'isnotnull': {\n return { kind: 'expr.isNotNull', id, expr: buildExpression(kids[0], options) };\n }\n case 'lt': {\n return { kind: 'expr.lt', id, a: buildExpression(kids[0], options), b: buildExpression(kids[1], options) };\n }\n case 'lte': {\n return { kind: 'expr.lte', id, a: buildExpression(kids[0], options), b: buildExpression(kids[1], options) };\n }\n case 'gt': {\n return { kind: 'expr.gt', id, a: buildExpression(kids[0], options), b: buildExpression(kids[1], options) };\n }\n case 'gte': {\n return { kind: 'expr.gte', id, a: buildExpression(kids[0], options), b: buildExpression(kids[1], options) };\n }\n case 'and': {\n return { kind: 'expr.and', id, ops: kids.map((k) => buildExpression(k, options)) };\n }\n case 'or': {\n return { kind: 'expr.or', id, ops: kids.map((k) => buildExpression(k, options)) };\n }\n case 'not': {\n return { kind: 'expr.not', id, expr: buildExpression(kids[0], options) };\n }\n case 'anyn': {\n // QTI anyN: true if min <= #true(children) <= max\n const min = numAttr('min', 1);\n const max = numAttr('max', kids.length);\n return { kind: 'expr.anyN', id, min, max, ops: kids.map((k) => buildExpression(k, options)) };\n }\n case 'alln': {\n // Historical/non-standard: true if #true(children) <= max\n const max = numAttr('max', kids.length);\n return { kind: 'expr.allN', id, max, ops: kids.map((k) => buildExpression(k, options)) };\n }\n case 'sum': {\n return { kind: 'expr.sum', id, values: kids.map((k) => buildExpression(k, options)) };\n }\n case 'subtract': {\n return { kind: 'expr.subtract', id, a: buildExpression(kids[0], options), b: buildExpression(kids[1], options) };\n }\n case 'product': {\n return { kind: 'expr.product', id, values: kids.map((k) => buildExpression(k, options)) };\n }\n case 'divide': {\n return { kind: 'expr.divide', id, a: buildExpression(kids[0], options), b: buildExpression(kids[1], options) };\n }\n case 'random': {\n if (kids.length !== 1)\n throw new Error('<random> requires exactly one child expression');\n return { kind: 'expr.random', id, value: buildExpression(kids[0], options) };\n }\n case 'max': {\n return { kind: 'expr.max', id, values: kids.map((k) => buildExpression(k, options)) };\n }\n case 'min': {\n return { kind: 'expr.min', id, values: kids.map((k) => buildExpression(k, options)) };\n }\n case 'round': {\n return { kind: 'expr.round', id, value: buildExpression(kids[0], options) };\n }\n case 'truncate': {\n return { kind: 'expr.truncate', id, value: buildExpression(kids[0], options) };\n }\n case 'mapresponse': {\n return { kind: 'expr.mapResponse', id, identifier: getAttr(el, 'identifier') || '' };\n }\n case 'mapoutcome': {\n return { kind: 'expr.mapOutcome', id, identifier: getAttr(el, 'identifier') || '' };\n }\n case 'mapresponsepoint': {\n return { kind: 'expr.mapResponsePoint', id, identifier: getAttr(el, 'identifier') || '' };\n }\n case 'randominteger': {\n // QTI 2.2.2: randomInteger is an empty element with min/max/step attributes.\n // For compatibility with older/variant content, also accept the legacy child-expression form.\n const minAttr = attrAsExpr('min', 'integer');\n const maxAttr = attrAsExpr('max', 'integer');\n const stepAttr = attrAsExpr('step', 'integer');\n if (minAttr && maxAttr) {\n return { kind: 'expr.randomInteger', id, min: minAttr, max: maxAttr, step: stepAttr };\n }\n if (!kids[0] || !kids[1])\n throw new Error('<randomInteger> requires min/max attributes or 2 child expressions');\n return {\n kind: 'expr.randomInteger',\n id,\n min: buildExpression(kids[0]),\n max: buildExpression(kids[1]),\n step: kids[2] ? buildExpression(kids[2]) : undefined,\n };\n }\n case 'randomfloat': {\n // QTI 2.2.2: empty element with min/max attributes.\n // For compatibility with older/variant content, also accept the legacy child-expression form.\n const minAttr = attrAsExpr('min', 'float');\n const maxAttr = attrAsExpr('max', 'float');\n if (minAttr && maxAttr) {\n return { kind: 'expr.randomFloat', id, min: minAttr, max: maxAttr };\n }\n if (!kids[0] || !kids[1])\n throw new Error('<randomFloat> requires min/max attributes or 2 child expressions');\n return { kind: 'expr.randomFloat', id, min: buildExpression(kids[0]), max: buildExpression(kids[1]) };\n }\n case 'mathconstant': {\n const name = (getAttr(el, 'name') || '').trim().toLowerCase();\n if (name !== 'pi' && name !== 'e') {\n throw new Error(`<mathConstant> requires name=\"pi\"|\"e\" (got ${JSON.stringify(name)})`);\n }\n return { kind: 'expr.mathConstant', id, name };\n }\n case 'mathoperator': {\n const name = (getAttr(el, 'name') || '').trim();\n if (!name)\n throw new Error('<mathOperator> requires name attribute');\n if (kids.length < 1)\n throw new Error('<mathOperator> requires at least one child expression');\n return { kind: 'expr.mathOperator', id, name, values: kids.map((k) => buildExpression(k, options)) };\n }\n case 'integermodulus': {\n if (!kids[0] || !kids[1])\n throw new Error('<integerModulus> requires 2 child expressions');\n return { kind: 'expr.integerModulus', id, a: buildExpression(kids[0]), b: buildExpression(kids[1]) };\n }\n case 'integertofloat': {\n if (!kids[0])\n throw new Error('<integerToFloat> requires 1 child expression');\n return { kind: 'expr.integerToFloat', id, value: buildExpression(kids[0]) };\n }\n case 'gcd': {\n if (kids.length < 1)\n throw new Error('<gcd> requires at least one child expression');\n return { kind: 'expr.gcd', id, values: kids.map((k) => buildExpression(k, options)) };\n }\n case 'lcm': {\n if (kids.length < 1)\n throw new Error('<lcm> requires at least one child expression');\n return { kind: 'expr.lcm', id, values: kids.map((k) => buildExpression(k, options)) };\n }\n case 'roundto': {\n const roundingMode = (getAttr(el, 'roundingMode') || '').trim();\n if (roundingMode !== 'decimalPlaces' && roundingMode !== 'significantFigures') {\n throw new Error('<roundTo> requires roundingMode=\"decimalPlaces\"|\"significantFigures\"');\n }\n const figuresAttr = attrAsExpr('figures', 'integer');\n if (!figuresAttr)\n throw new Error('<roundTo> requires figures attribute');\n if (!kids[0])\n throw new Error('<roundTo> requires a single child expression');\n return { kind: 'expr.roundTo', id, value: buildExpression(kids[0]), roundingMode, figures: figuresAttr };\n }\n default: {\n // Unknown expression tags in processing are almost always a correctness bug.\n // Fail loudly so we surface missing QTI coverage via fixtures/tests.\n throw new Error(`Unknown processing expression tag: <${tag}>`);\n }\n }\n}\n//# sourceMappingURL=build.js.map","/*!\r\n * decimal.js v10.6.0\r\n * An arbitrary-precision Decimal type for JavaScript.\r\n * https://github.com/MikeMcl/decimal.js\r\n * Copyright (c) 2025 Michael Mclaughlin <M8ch88l@gmail.com>\r\n * MIT Licence\r\n */\r\n\r\n\r\n// ----------------------------------- EDITABLE DEFAULTS ------------------------------------ //\r\n\r\n\r\n // The maximum exponent magnitude.\r\n // The limit on the value of `toExpNeg`, `toExpPos`, `minE` and `maxE`.\r\nvar EXP_LIMIT = 9e15, // 0 to 9e15\r\n\r\n // The limit on the value of `precision`, and on the value of the first argument to\r\n // `toDecimalPlaces`, `toExponential`, `toFixed`, `toPrecision` and `toSignificantDigits`.\r\n MAX_DIGITS = 1e9, // 0 to 1e9\r\n\r\n // Base conversion alphabet.\r\n NUMERALS = '0123456789abcdef',\r\n\r\n // The natural logarithm of 10 (1025 digits).\r\n LN10 = '2.3025850929940456840179914546843642076011014886287729760333279009675726096773524802359972050895982983419677840422862486334095254650828067566662873690987816894829072083255546808437998948262331985283935053089653777326288461633662222876982198867465436674744042432743651550489343149393914796194044002221051017141748003688084012647080685567743216228355220114804663715659121373450747856947683463616792101806445070648000277502684916746550586856935673420670581136429224554405758925724208241314695689016758940256776311356919292033376587141660230105703089634572075440370847469940168269282808481184289314848524948644871927809676271275775397027668605952496716674183485704422507197965004714951050492214776567636938662976979522110718264549734772662425709429322582798502585509785265383207606726317164309505995087807523710333101197857547331541421808427543863591778117054309827482385045648019095610299291824318237525357709750539565187697510374970888692180205189339507238539205144634197265287286965110862571492198849978748873771345686209167058',\r\n\r\n // Pi (1025 digits).\r\n PI = '3.1415926535897932384626433832795028841971693993751058209749445923078164062862089986280348253421170679821480865132823066470938446095505822317253594081284811174502841027019385211055596446229489549303819644288109756659334461284756482337867831652712019091456485669234603486104543266482133936072602491412737245870066063155881748815209209628292540917153643678925903600113305305488204665213841469519415116094330572703657595919530921861173819326117931051185480744623799627495673518857527248912279381830119491298336733624406566430860213949463952247371907021798609437027705392171762931767523846748184676694051320005681271452635608277857713427577896091736371787214684409012249534301465495853710507922796892589235420199561121290219608640344181598136297747713099605187072113499999983729780499510597317328160963185950244594553469083026425223082533446850352619311881710100031378387528865875332083814206171776691473035982534904287554687311595628638823537875937519577818577805321712268066130019278766111959092164201989380952572010654858632789',\r\n\r\n\r\n // The initial configuration properties of the Decimal constructor.\r\n DEFAULTS = {\r\n\r\n // These values must be integers within the stated ranges (inclusive).\r\n // Most of these values can be changed at run-time using the `Decimal.config` method.\r\n\r\n // The maximum number of significant digits of the result of a calculation or base conversion.\r\n // E.g. `Decimal.config({ precision: 20 });`\r\n precision: 20, // 1 to MAX_DIGITS\r\n\r\n // The rounding mode used when rounding to `precision`.\r\n //\r\n // ROUND_UP 0 Away from zero.\r\n // ROUND_DOWN 1 Towards zero.\r\n // ROUND_CEIL 2 Towards +Infinity.\r\n // ROUND_FLOOR 3 Towards -Infinity.\r\n // ROUND_HALF_UP 4 Towards nearest neighbour. If equidistant, up.\r\n // ROUND_HALF_DOWN 5 Towards nearest neighbour. If equidistant, down.\r\n // ROUND_HALF_EVEN 6 Towards nearest neighbour. If equidistant, towards even neighbour.\r\n // ROUND_HALF_CEIL 7 Towards nearest neighbour. If equidistant, towards +Infinity.\r\n // ROUND_HALF_FLOOR 8 Towards nearest neighbour. If equidistant, towards -Infinity.\r\n //\r\n // E.g.\r\n // `Decimal.rounding = 4;`\r\n // `Decimal.rounding = Decimal.ROUND_HALF_UP;`\r\n rounding: 4, // 0 to 8\r\n\r\n // The modulo mode used when calculating the modulus: a mod n.\r\n // The quotient (q = a / n) is calculated according to the corresponding rounding mode.\r\n // The remainder (r) is calculated as: r = a - n * q.\r\n //\r\n // UP 0 The remainder is positive if the dividend is negative, else is negative.\r\n // DOWN 1 The remainder has the same sign as the dividend (JavaScript %).\r\n // FLOOR 3 The remainder has the same sign as the divisor (Python %).\r\n // HALF_EVEN 6 The IEEE 754 remainder function.\r\n // EUCLID 9 Euclidian division. q = sign(n) * floor(a / abs(n)). Always positive.\r\n //\r\n // Truncated division (1), floored division (3), the IEEE 754 remainder (6), and Euclidian\r\n // division (9) are commonly used for the modulus operation. The other rounding modes can also\r\n // be used, but they may not give useful results.\r\n modulo: 1, // 0 to 9\r\n\r\n // The exponent value at and beneath which `toString` returns exponential notation.\r\n // JavaScript numbers: -7\r\n toExpNeg: -7, // 0 to -EXP_LIMIT\r\n\r\n // The exponent value at and above which `toString` returns exponential notation.\r\n // JavaScript numbers: 21\r\n toExpPos: 21, // 0 to EXP_LIMIT\r\n\r\n // The minimum exponent value, beneath which underflow to zero occurs.\r\n // JavaScript numbers: -324 (5e-324)\r\n minE: -EXP_LIMIT, // -1 to -EXP_LIMIT\r\n\r\n // The maximum exponent value, above which overflow to Infinity occurs.\r\n // JavaScript numbers: 308 (1.7976931348623157e+308)\r\n maxE: EXP_LIMIT, // 1 to EXP_LIMIT\r\n\r\n // Whether to use cryptographically-secure random number generation, if available.\r\n crypto: false // true/false\r\n },\r\n\r\n\r\n// ----------------------------------- END OF EDITABLE DEFAULTS ------------------------------- //\r\n\r\n\r\n inexact, quadrant,\r\n external = true,\r\n\r\n decimalError = '[DecimalError] ',\r\n invalidArgument = decimalError + 'Invalid argument: ',\r\n precisionLimitExceeded = decimalError + 'Precision limit exceeded',\r\n cryptoUnavailable = decimalError + 'crypto unavailable',\r\n tag = '[object Decimal]',\r\n\r\n mathfloor = Math.floor,\r\n mathpow = Math.pow,\r\n\r\n isBinary = /^0b([01]+(\\.[01]*)?|\\.[01]+)(p[+-]?\\d+)?$/i,\r\n isHex = /^0x([0-9a-f]+(\\.[0-9a-f]*)?|\\.[0-9a-f]+)(p[+-]?\\d+)?$/i,\r\n isOctal = /^0o([0-7]+(\\.[0-7]*)?|\\.[0-7]+)(p[+-]?\\d+)?$/i,\r\n isDecimal = /^(\\d+(\\.\\d*)?|\\.\\d+)(e[+-]?\\d+)?$/i,\r\n\r\n BASE = 1e7,\r\n LOG_BASE = 7,\r\n MAX_SAFE_INTEGER = 9007199254740991,\r\n\r\n LN10_PRECISION = LN10.length - 1,\r\n PI_PRECISION = PI.length - 1,\r\n\r\n // Decimal.prototype object\r\n P = { toStringTag: tag };\r\n\r\n\r\n// Decimal prototype methods\r\n\r\n\r\n/*\r\n * absoluteValue abs\r\n * ceil\r\n * clampedTo clamp\r\n * comparedTo cmp\r\n * cosine cos\r\n * cubeRoot cbrt\r\n * decimalPlaces dp\r\n * dividedBy div\r\n * dividedToIntegerBy divToInt\r\n * equals eq\r\n * floor\r\n * greaterThan gt\r\n * greaterThanOrEqualTo gte\r\n * hyperbolicCosine cosh\r\n * hyperbolicSine sinh\r\n * hyperbolicTangent tanh\r\n * inverseCosine acos\r\n * inverseHyperbolicCosine acosh\r\n * inverseHyperbolicSine asinh\r\n * inverseHyperbolicTangent atanh\r\n * inverseSine asin\r\n * inverseTangent atan\r\n * isFinite\r\n * isInteger isInt\r\n * isNaN\r\n * isNegative isNeg\r\n * isPositive isPos\r\n * isZero\r\n * lessThan lt\r\n * lessThanOrEqualTo lte\r\n * logarithm log\r\n * [maximum] [max]\r\n * [minimum] [min]\r\n * minus sub\r\n * modulo mod\r\n * naturalExponential exp\r\n * naturalLogarithm ln\r\n * negated neg\r\n * plus add\r\n * precision sd\r\n * round\r\n * sine sin\r\n * squareRoot sqrt\r\n * tangent tan\r\n * times mul\r\n * toBinary\r\n * toDecimalPlaces toDP\r\n * toExponential\r\n * toFixed\r\n * toFraction\r\n * toHexadecimal toHex\r\n * toNearest\r\n * toNumber\r\n * toOctal\r\n * toPower pow\r\n * toPrecision\r\n * toSignificantDigits toSD\r\n * toString\r\n * truncated trunc\r\n * valueOf toJSON\r\n */\r\n\r\n\r\n/*\r\n * Return a new Decimal whose value is the absolute value of this Decimal.\r\n *\r\n */\r\nP.absoluteValue = P.abs = function () {\r\n var x = new this.constructor(this);\r\n if (x.s < 0) x.s = 1;\r\n return finalise(x);\r\n};\r\n\r\n\r\n/*\r\n * Return a new Decimal whose value is the value of this Decimal rounded to a whole number in the\r\n * direction of positive Infinity.\r\n *\r\n */\r\nP.ceil = function () {\r\n return finalise(new this.constructor(this), this.e + 1, 2);\r\n};\r\n\r\n\r\n/*\r\n * Return a new Decimal whose value is the value of this Decimal clamped to the range\r\n * delineated by `min` and `max`.\r\n *\r\n * min {number|string|bigint|Decimal}\r\n * max {number|string|bigint|Decimal}\r\n *\r\n */\r\nP.clampedTo = P.clamp = function (min, max) {\r\n var k,\r\n x = this,\r\n Ctor = x.constructor;\r\n min = new Ctor(min);\r\n max = new Ctor(max);\r\n if (!min.s || !max.s) return new Ctor(NaN);\r\n if (min.gt(max)) throw Error(invalidArgument + max);\r\n k = x.cmp(min);\r\n return k < 0 ? min : x.cmp(max) > 0 ? max : new Ctor(x);\r\n};\r\n\r\n\r\n/*\r\n * Return\r\n * 1 if the value of this Decimal is greater than the value of `y`,\r\n * -1 if the value of this Decimal is less than the value of `y`,\r\n * 0 if they have the same value,\r\n * NaN if the value of either Decimal is NaN.\r\n *\r\n */\r\nP.comparedTo = P.cmp = function (y) {\r\n var i, j, xdL, ydL,\r\n x = this,\r\n xd = x.d,\r\n yd = (y = new x.constructor(y)).d,\r\n xs = x.s,\r\n ys = y.s;\r\n\r\n // Either NaN or ±Infinity?\r\n if (!xd || !yd) {\r\n return !xs || !ys ? NaN : xs !== ys ? xs : xd === yd ? 0 : !xd ^ xs < 0 ? 1 : -1;\r\n }\r\n\r\n // Either zero?\r\n if (!xd[0] || !yd[0]) return xd[0] ? xs : yd[0] ? -ys : 0;\r\n\r\n // Signs differ?\r\n if (xs !== ys) return xs;\r\n\r\n // Compare exponents.\r\n if (x.e !== y.e) return x.e > y.e ^ xs < 0 ? 1 : -1;\r\n\r\n xdL = xd.length;\r\n ydL = yd.length;\r\n\r\n // Compare digit by digit.\r\n for (i = 0, j = xdL < ydL ? xdL : ydL; i < j; ++i) {\r\n if (xd[i] !== yd[i]) return xd[i] > yd[i] ^ xs < 0 ? 1 : -1;\r\n }\r\n\r\n // Compare lengths.\r\n return xdL === ydL ? 0 : xdL > ydL ^ xs < 0 ? 1 : -1;\r\n};\r\n\r\n\r\n/*\r\n * Return a new Decimal whose value is the cosine of the value in radians of this Decimal.\r\n *\r\n * Domain: [-Infinity, Infinity]\r\n * Range: [-1, 1]\r\n *\r\n * cos(0) = 1\r\n * cos(-0) = 1\r\n * cos(Infinity) = NaN\r\n * cos(-Infinity) = NaN\r\n * cos(NaN) = NaN\r\n *\r\n */\r\nP.cosine = P.cos = function () {\r\n var pr, rm,\r\n x = this,\r\n Ctor = x.constructor;\r\n\r\n if (!x.d) return new Ctor(NaN);\r\n\r\n // cos(0) = cos(-0) = 1\r\n if (!x.d[0]) return new Ctor(1);\r\n\r\n pr = Ctor.precision;\r\n rm = Ctor.rounding;\r\n Ctor.precision = pr + Math.max(x.e, x.sd()) + LOG_BASE;\r\n Ctor.rounding = 1;\r\n\r\n x = cosine(Ctor, toLessThanHalfPi(Ctor, x));\r\n\r\n Ctor.precision = pr;\r\n Ctor.rounding = rm;\r\n\r\n return finalise(quadrant == 2 || quadrant == 3 ? x.neg() : x, pr, rm, true);\r\n};\r\n\r\n\r\n/*\r\n *\r\n * Return a new Decimal whose value is the cube root of the value of this Decimal, rounded to\r\n * `precision` significant digits using rounding mode `rounding`.\r\n *\r\n * cbrt(0) = 0\r\n * cbrt(-0) = -0\r\n * cbrt(1) = 1\r\n * cbrt(-1) = -1\r\n * cbrt(N) = N\r\n * cbrt(-I) = -I\r\n * cbrt(I) = I\r\n *\r\n * Math.cbrt(x) = (x < 0 ? -Math.pow(-x, 1/3) : Math.pow(x, 1/3))\r\n *\r\n */\r\nP.cubeRoot = P.cbrt = function () {\r\n var e, m, n, r, rep, s, sd, t, t3, t3plusx,\r\n x = this,\r\n Ctor = x.constructor;\r\n\r\n if (!x.isFinite() || x.isZero()) return new Ctor(x);\r\n external = false;\r\n\r\n // Initial estimate.\r\n s = x.s * mathpow(x.s * x, 1 / 3);\r\n\r\n // Math.cbrt underflow/overflow?\r\n // Pass x to Math.pow as integer, then adjust the exponent of the result.\r\n if (!s || Math.abs(s) == 1 / 0) {\r\n n = digitsToString(x.d);\r\n e = x.e;\r\n\r\n // Adjust n exponent so it is a multiple of 3 away from x exponent.\r\n if (s = (e - n.length + 1) % 3) n += (s == 1 || s == -2 ? '0' : '00');\r\n s = mathpow(n, 1 / 3);\r\n\r\n // Rarely, e may be one less than the result exponent value.\r\n e = mathfloor((e + 1) / 3) - (e % 3 == (e < 0 ? -1 : 2));\r\n\r\n if (s == 1 / 0) {\r\n n = '5e' + e;\r\n } else {\r\n n = s.toExponential();\r\n n = n.slice(0, n.indexOf('e') + 1) + e;\r\n }\r\n\r\n r = new Ctor(n);\r\n r.s = x.s;\r\n } else {\r\n r = new Ctor(s.toString());\r\n }\r\n\r\n sd = (e = Ctor.precision) + 3;\r\n\r\n // Halley's method.\r\n // TODO? Compare Newton's method.\r\n for (;;) {\r\n t = r;\r\n t3 = t.times(t).times(t);\r\n t3plusx = t3.plus(x);\r\n r = divide(t3plusx.plus(x).times(t), t3plusx.plus(t3), sd + 2, 1);\r\n\r\n // TODO? Replace with for-loop and checkRoundingDigits.\r\n if (digitsToString(t.d).slice(0, sd) === (n = digitsToString(r.d)).slice(0, sd)) {\r\n n = n.slice(sd - 3, sd + 1);\r\n\r\n // The 4th rounding digit may be in error by -1 so if the 4 rounding digits are 9999 or 4999\r\n // , i.e. approaching a rounding boundary, continue the iteration.\r\n if (n == '9999' || !rep && n == '4999') {\r\n\r\n // On the first iteration only, check to see if rounding up gives the exact result as the\r\n // nines may infinitely repeat.\r\n if (!rep) {\r\n finalise(t, e + 1, 0);\r\n\r\n if (t.times(t).times(t).eq(x)) {\r\n r = t;\r\n break;\r\n }\r\n }\r\n\r\n sd += 4;\r\n rep = 1;\r\n } else {\r\n\r\n // If the rounding digits are null, 0{0,4} or 50{0,3}, check for an exact result.\r\n // If not, then there are further digits and m will be truthy.\r\n if (!+n || !+n.slice(1) && n.charAt(0) == '5') {\r\n\r\n // Truncate to the first rounding digit.\r\n finalise(r, e + 1, 1);\r\n m = !r.times(r).times(r).eq(x);\r\n }\r\n\r\n break;\r\n }\r\n }\r\n }\r\n\r\n external = true;\r\n\r\n return finalise(r, e, Ctor.rounding, m);\r\n};\r\n\r\n\r\n/*\r\n * Return the number of decimal places of the value of this Decimal.\r\n *\r\n */\r\nP.decimalPlaces = P.dp = function () {\r\n var w,\r\n d = this.d,\r\n n = NaN;\r\n\r\n if (d) {\r\n w = d.length - 1;\r\n n = (w - mathfloor(this.e / LOG_BASE)) * LOG_BASE;\r\n\r\n // Subtract the number of trailing zeros of the last word.\r\n w = d[w];\r\n if (w) for (; w % 10 == 0; w /= 10) n--;\r\n if (n < 0) n = 0;\r\n }\r\n\r\n return n;\r\n};\r\n\r\n\r\n/*\r\n * n / 0 = I\r\n * n / N = N\r\n * n / I = 0\r\n * 0 / n = 0\r\n * 0 / 0 = N\r\n * 0 / N = N\r\n * 0 / I = 0\r\n * N / n = N\r\n * N / 0 = N\r\n * N / N = N\r\n * N / I = N\r\n * I / n = I\r\n * I / 0 = I\r\n * I / N = N\r\n * I / I = N\r\n *\r\n * Return a new Decimal whose value is the value of this Decimal divided by `y`, rounded to\r\n * `precision` significant digits using rounding mode `rounding`.\r\n *\r\n */\r\nP.dividedBy = P.div = function (y) {\r\n return divide(this, new this.constructor(y));\r\n};\r\n\r\n\r\n/*\r\n * Return a new Decimal whose value is the integer part of dividing the value of this Decimal\r\n * by the value of `y`, rounded to `precision` significant digits using rounding mode `rounding`.\r\n *\r\n */\r\nP.dividedToIntegerBy = P.divToInt = function (y) {\r\n var x = this,\r\n Ctor = x.constructor;\r\n return finalise(divide(x, new Ctor(y), 0, 1, 1), Ctor.precision, Ctor.rounding);\r\n};\r\n\r\n\r\n/*\r\n * Return true if the value of this Decimal is equal to the value of `y`, otherwise return false.\r\n *\r\n */\r\nP.equals = P.eq = function (y) {\r\n return this.cmp(y) === 0;\r\n};\r\n\r\n\r\n/*\r\n * Return a new Decimal whose value is the value of this Decimal rounded to a whole number in the\r\n * direction of negative Infinity.\r\n *\r\n */\r\nP.floor = function () {\r\n return finalise(new this.constructor(this), this.e + 1, 3);\r\n};\r\n\r\n\r\n/*\r\n * Return true if the value of this Decimal is greater than the value of `y`, otherwise return\r\n * false.\r\n *\r\n */\r\nP.greaterThan = P.gt = function (y) {\r\n return this.cmp(y) > 0;\r\n};\r\n\r\n\r\n/*\r\n * Return true if the value of this Decimal is greater than or equal to the value of `y`,\r\n * otherwise return false.\r\n *\r\n */\r\nP.greaterThanOrEqualTo = P.gte = function (y) {\r\n var k = this.cmp(y);\r\n return k == 1 || k === 0;\r\n};\r\n\r\n\r\n/*\r\n * Return a new Decimal whose value is the hyperbolic cosine of the value in radians of this\r\n * Decimal.\r\n *\r\n * Domain: [-Infinity, Infinity]\r\n * Range: [1, Infinity]\r\n *\r\n * cosh(x) = 1 + x^2/2! + x^4/4! + x^6/6! + ...\r\n *\r\n * cosh(0) = 1\r\n * cosh(-0) = 1\r\n * cosh(Infinity) = Infinity\r\n * cosh(-Infinity) = Infinity\r\n * cosh(NaN) = NaN\r\n *\r\n * x time taken (ms) result\r\n * 1000 9 9.8503555700852349694e+433\r\n * 10000 25 4.4034091128314607936e+4342\r\n * 100000 171 1.4033316802130615897e+43429\r\n * 1000000 3817 1.5166076984010437725e+434294\r\n * 10000000 abandoned after 2 minute wait\r\n *\r\n * TODO? Compare performance of cosh(x) = 0.5 * (exp(x) + exp(-x))\r\n *\r\n */\r\nP.hyperbolicCosine = P.cosh = function () {\r\n var k, n, pr, rm, len,\r\n x = this,\r\n Ctor = x.constructor,\r\n one = new Ctor(1);\r\n\r\n if (!x.isFinite()) return new Ctor(x.s ? 1 / 0 : NaN);\r\n if (x.isZero()) return one;\r\n\r\n pr = Ctor.precision;\r\n rm = Ctor.rounding;\r\n Ctor.precision = pr + Math.max(x.e, x.sd()) + 4;\r\n Ctor.rounding = 1;\r\n len = x.d.length;\r\n\r\n // Argument reduction: cos(4x) = 1 - 8cos^2(x) + 8cos^4(x) + 1\r\n // i.e. cos(x) = 1 - cos^2(x/4)(8 - 8cos^2(x/4))\r\n\r\n // Estimate the optimum number of times to use the argument reduction.\r\n // TODO? Estimation reused from cosine() and may not be optimal here.\r\n if (len < 32) {\r\n k = Math.ceil(len / 3);\r\n n = (1 / tinyPow(4, k)).toString();\r\n } else {\r\n k = 16;\r\n n = '2.3283064365386962890625e-10';\r\n }\r\n\r\n x = taylorSeries(Ctor, 1, x.times(n), new Ctor(1), true);\r\n\r\n // Reverse argument reduction\r\n var cosh2_x,\r\n i = k,\r\n d8 = new Ctor(8);\r\n for (; i--;) {\r\n cosh2_x = x.times(x);\r\n x = one.minus(cosh2_x.times(d8.minus(cosh2_x.times(d8))));\r\n }\r\n\r\n return finalise(x, Ctor.precision = pr, Ctor.rounding = rm, true);\r\n};\r\n\r\n\r\n/*\r\n * Return a new Decimal whose value is the hyperbolic sine of the value in radians of this\r\n * Decimal.\r\n *\r\n * Domain: [-Infinity, Infinity]\r\n * Range: [-Infinity, Infinity]\r\n *\r\n * sinh(x) = x + x^3/3! + x^5/5! + x^7/7! + ...\r\n *\r\n * sinh(0) = 0\r\n * sinh(-0) = -0\r\n * sinh(Infinity) = Infinity\r\n * sinh(-Infinity) = -Infinity\r\n * sinh(NaN) = NaN\r\n *\r\n * x time taken (ms)\r\n * 10 2 ms\r\n * 100 5 ms\r\n * 1000 14 ms\r\n * 10000 82 ms\r\n * 100000 886 ms 1.4033316802130615897e+43429\r\n * 200000 2613 ms\r\n * 300000 5407 ms\r\n * 400000 8824 ms\r\n * 500000 13026 ms 8.7080643612718084129e+217146\r\n * 1000000 48543 ms\r\n *\r\n * TODO? Compare performance of sinh(x) = 0.5 * (exp(x) - exp(-x))\r\n *\r\n */\r\nP.hyperbolicSine = P.sinh = function () {\r\n var k, pr, rm, len,\r\n x = this,\r\n Ctor = x.constructor;\r\n\r\n if (!x.isFinite() || x.isZero()) return new Ctor(x);\r\n\r\n pr = Ctor.precision;\r\n rm = Ctor.rounding;\r\n Ctor.precision = pr + Math.max(x.e, x.sd()) + 4;\r\n Ctor.rounding = 1;\r\n len = x.d.length;\r\n\r\n if (len < 3) {\r\n x = taylorSeries(Ctor, 2, x, x, true);\r\n } else {\r\n\r\n // Alternative argument reduction: sinh(3x) = sinh(x)(3 + 4sinh^2(x))\r\n // i.e. sinh(x) = sinh(x/3)(3 + 4sinh^2(x/3))\r\n // 3 multiplications and 1 addition\r\n\r\n // Argument reduction: sinh(5x) = sinh(x)(5 + sinh^2(x)(20 + 16sinh^2(x)))\r\n // i.e. sinh(x) = sinh(x/5)(5 + sinh^2(x/5)(20 + 16sinh^2(x/5)))\r\n // 4 multiplications and 2 additions\r\n\r\n // Estimate the optimum number of times to use the argument reduction.\r\n k = 1.4 * Math.sqrt(len);\r\n k = k > 16 ? 16 : k | 0;\r\n\r\n x = x.times(1 / tinyPow(5, k));\r\n x = taylorSeries(Ctor, 2, x, x, true);\r\n\r\n // Reverse argument reduction\r\n var sinh2_x,\r\n d5 = new Ctor(5),\r\n d16 = new Ctor(16),\r\n d20 = new Ctor(20);\r\n for (; k--;) {\r\n sinh2_x = x.times(x);\r\n x = x.times(d5.plus(sinh2_x.times(d16.times(sinh2_x).plus(d20))));\r\n }\r\n }\r\n\r\n Ctor.precision = pr;\r\n Ctor.rounding = rm;\r\n\r\n return finalise(x, pr, rm, true);\r\n};\r\n\r\n\r\n/*\r\n * Return a new Decimal whose value is the hyperbolic tangent of the value in radians of this\r\n * Decimal.\r\n *\r\n * Domain: [-Infinity, Infinity]\r\n * Range: [-1, 1]\r\n *\r\n * tanh(x) = sinh(x) / cosh(x)\r\n *\r\n * tanh(0) = 0\r\n * tanh(-0) = -0\r\n * tanh(Infinity) = 1\r\n * tanh(-Infinity) = -1\r\n * tanh(NaN) = NaN\r\n *\r\n */\r\nP.hyperbolicTangent = P.tanh = function () {\r\n var pr, rm,\r\n x = this,\r\n Ctor = x.constructor;\r\n\r\n if (!x.isFinite()) return new Ctor(x.s);\r\n if (x.isZero()) return new Ctor(x);\r\n\r\n pr = Ctor.precision;\r\n rm = Ctor.rounding;\r\n Ctor.precision = pr + 7;\r\n Ctor.rounding = 1;\r\n\r\n return divide(x.sinh(), x.cosh(), Ctor.precision = pr, Ctor.rounding = rm);\r\n};\r\n\r\n\r\n/*\r\n * Return a new Decimal whose value is the arccosine (inverse cosine) in radians of the value of\r\n * this Decimal.\r\n *\r\n * Domain: [-1, 1]\r\n * Range: [0, pi]\r\n *\r\n * acos(x) = pi/2 - asin(x)\r\n *\r\n * acos(0) = pi/2\r\n * acos(-0) = pi/2\r\n * acos(1) = 0\r\n * acos(-1) = pi\r\n * acos(1/2) = pi/3\r\n * acos(-1/2) = 2*pi/3\r\n * acos(|x| > 1) = NaN\r\n * acos(NaN) = NaN\r\n *\r\n */\r\nP.inverseCosine = P.acos = function () {\r\n var x = this,\r\n Ctor = x.constructor,\r\n k = x.abs().cmp(1),\r\n pr = Ctor.precision,\r\n rm = Ctor.rounding;\r\n\r\n if (k !== -1) {\r\n return k === 0\r\n // |x| is 1\r\n ? x.isNeg() ? getPi(Ctor, pr, rm) : new Ctor(0)\r\n // |x| > 1 or x is NaN\r\n : new Ctor(NaN);\r\n }\r\n\r\n if (x.isZero()) return getPi(Ctor, pr + 4, rm).times(0.5);\r\n\r\n // TODO? Special case acos(0.5) = pi/3 and acos(-0.5) = 2*pi/3\r\n\r\n Ctor.precision = pr + 6;\r\n Ctor.rounding = 1;\r\n\r\n // See https://github.com/MikeMcl/decimal.js/pull/217\r\n x = new Ctor(1).minus(x).div(x.plus(1)).sqrt().atan();\r\n\r\n Ctor.precision = pr;\r\n Ctor.rounding = rm;\r\n\r\n return x.times(2);\r\n};\r\n\r\n\r\n/*\r\n * Return a new Decimal whose value is the inverse of the hyperbolic cosine in radians of the\r\n * value of this Decimal.\r\n *\r\n * Domain: [1, Infinity]\r\n * Range: [0, Infinity]\r\n *\r\n * acosh(x) = ln(x + sqrt(x^2 - 1))\r\n *\r\n * acosh(x < 1) = NaN\r\n * acosh(NaN) = NaN\r\n * acosh(Infinity) = Infinity\r\n * acosh(-Infinity) = NaN\r\n * acosh(0) = NaN\r\n * acosh(-0) = NaN\r\n * acosh(1) = 0\r\n * acosh(-1) = NaN\r\n *\r\n */\r\nP.inverseHyperbolicCosine = P.acosh = function () {\r\n var pr, rm,\r\n x = this,\r\n Ctor = x.constructor;\r\n\r\n if (x.lte(1)) return new Ctor(x.eq(1) ? 0 : NaN);\r\n if (!x.isFinite()) return new Ctor(x);\r\n\r\n pr = Ctor.precision;\r\n rm = Ctor.rounding;\r\n Ctor.precision = pr + Math.max(Math.abs(x.e), x.sd()) + 4;\r\n Ctor.rounding = 1;\r\n external = false;\r\n\r\n x = x.times(x).minus(1).sqrt().plus(x);\r\n\r\n external = true;\r\n Ctor.precision = pr;\r\n Ctor.rounding = rm;\r\n\r\n return x.ln();\r\n};\r\n\r\n\r\n/*\r\n * Return a new Decimal whose value is the inverse of the hyperbolic sine in radians of the value\r\n * of this Decimal.\r\n *\r\n * Domain: [-Infinity, Infinity]\r\n * Range: [-Infinity, Infinity]\r\n *\r\n * asinh(x) = ln(x + sqrt(x^2 + 1))\r\n *\r\n * asinh(NaN) = NaN\r\n * asinh(Infinity) = Infinity\r\n * asinh(-Infinity) = -Infinity\r\n * asinh(0) = 0\r\n * asinh(-0) = -0\r\n *\r\n */\r\nP.inverseHyperbolicSine = P.asinh = function () {\r\n var pr, rm,\r\n x = this,\r\n Ctor = x.constructor;\r\n\r\n if (!x.isFinite() || x.isZero()) return new Ctor(x);\r\n\r\n pr = Ctor.precision;\r\n rm = Ctor.rounding;\r\n Ctor.precision = pr + 2 * Math.max(Math.abs(x.e), x.sd()) + 6;\r\n Ctor.rounding = 1;\r\n external = false;\r\n\r\n x = x.times(x).plus(1).sqrt().plus(x);\r\n\r\n external = true;\r\n Ctor.precision = pr;\r\n Ctor.rounding = rm;\r\n\r\n return x.ln();\r\n};\r\n\r\n\r\n/*\r\n * Return a new Decimal whose value is the inverse of the hyperbolic tangent in radians of the\r\n * value of this Decimal.\r\n *\r\n * Domain: [-1, 1]\r\n * Range: [-Infinity, Infinity]\r\n *\r\n * atanh(x) = 0.5 * ln((1 + x) / (1 - x))\r\n *\r\n * atanh(|x| > 1) = NaN\r\n * atanh(NaN) = NaN\r\n * atanh(Infinity) = NaN\r\n * atanh(-Infinity) = NaN\r\n * atanh(0) = 0\r\n * atanh(-0) = -0\r\n * atanh(1) = Infinity\r\n * atanh(-1) = -Infinity\r\n *\r\n */\r\nP.inverseHyperbolicTangent = P.atanh = function () {\r\n var pr, rm, wpr, xsd,\r\n x = this,\r\n Ctor = x.constructor;\r\n\r\n if (!x.isFinite()) return new Ctor(NaN);\r\n if (x.e >= 0) return new Ctor(x.abs().eq(1) ? x.s / 0 : x.isZero() ? x : NaN);\r\n\r\n pr = Ctor.precision;\r\n rm = Ctor.rounding;\r\n xsd = x.sd();\r\n\r\n if (Math.max(xsd, pr) < 2 * -x.e - 1) return finalise(new Ctor(x), pr, rm, true);\r\n\r\n Ctor.precision = wpr = xsd - x.e;\r\n\r\n x = divide(x.plus(1), new Ctor(1).minus(x), wpr + pr, 1);\r\n\r\n Ctor.precision = pr + 4;\r\n Ctor.rounding = 1;\r\n\r\n x = x.ln();\r\n\r\n Ctor.precision = pr;\r\n Ctor.rounding = rm;\r\n\r\n return x.times(0.5);\r\n};\r\n\r\n\r\n/*\r\n * Return a new Decimal whose value is the arcsine (inverse sine) in radians of the value of this\r\n * Decimal.\r\n *\r\n * Domain: [-Infinity, Infinity]\r\n * Range: [-pi/2, pi/2]\r\n *\r\n * asin(x) = 2*atan(x/(1 + sqrt(1 - x^2)))\r\n *\r\n * asin(0) = 0\r\n * asin(-0) = -0\r\n * asin(1/2) = pi/6\r\n * asin(-1/2) = -pi/6\r\n * asin(1) = pi/2\r\n * asin(-1) = -pi/2\r\n * asin(|x| > 1) = NaN\r\n * asin(NaN) = NaN\r\n *\r\n * TODO? Compare performance of Taylor series.\r\n *\r\n */\r\nP.inverseSine = P.asin = function () {\r\n var halfPi, k,\r\n pr, rm,\r\n x = this,\r\n Ctor = x.constructor;\r\n\r\n if (x.isZero()) return new Ctor(x);\r\n\r\n k = x.abs().cmp(1);\r\n pr = Ctor.precision;\r\n rm = Ctor.rounding;\r\n\r\n if (k !== -1) {\r\n\r\n // |x| is 1\r\n if (k === 0) {\r\n halfPi = getPi(Ctor, pr + 4, rm).times(0.5);\r\n halfPi.s = x.s;\r\n return halfPi;\r\n }\r\n\r\n // |x| > 1 or x is NaN\r\n return new Ctor(NaN);\r\n }\r\n\r\n // TODO? Special case asin(1/2) = pi/6 and asin(-1/2) = -pi/6\r\n\r\n Ctor.precision = pr + 6;\r\n Ctor.rounding = 1;\r\n\r\n x = x.div(new Ctor(1).minus(x.times(x)).sqrt().plus(1)).atan();\r\n\r\n Ctor.precision = pr;\r\n Ctor.rounding = rm;\r\n\r\n return x.times(2);\r\n};\r\n\r\n\r\n/*\r\n * Return a new Decimal whose value is the arctangent (inverse tangent) in radians of the value\r\n * of this Decimal.\r\n *\r\n * Domain: [-Infinity, Infinity]\r\n * Range: [-pi/2, pi/2]\r\n *\r\n * atan(x) = x - x^3/3 + x^5/5 - x^7/7 + ...\r\n *\r\n * atan(0) = 0\r\n * atan(-0) = -0\r\n * atan(1) = pi/4\r\n * atan(-1) = -pi/4\r\n * atan(Infinity) = pi/2\r\n * atan(-Infinity) = -pi/2\r\n * atan(NaN) = NaN\r\n *\r\n */\r\nP.inverseTangent = P.atan = function () {\r\n var i, j, k, n, px, t, r, wpr, x2,\r\n x = this,\r\n Ctor = x.constructor,\r\n pr = Ctor.precision,\r\n rm = Ctor.rounding;\r\n\r\n if (!x.isFinite()) {\r\n if (!x.s) return new Ctor(NaN);\r\n if (pr + 4 <= PI_PRECISION) {\r\n r = getPi(Ctor, pr + 4, rm).times(0.5);\r\n r.s = x.s;\r\n return r;\r\n }\r\n } else if (x.isZero()) {\r\n return new Ctor(x);\r\n } else if (x.abs().eq(1) && pr + 4 <= PI_PRECISION) {\r\n r = getPi(Ctor, pr + 4, rm).times(0.25);\r\n r.s = x.s;\r\n return r;\r\n }\r\n\r\n Ctor.precision = wpr = pr + 10;\r\n Ctor.rounding = 1;\r\n\r\n // TODO? if (x >= 1 && pr <= PI_PRECISION) atan(x) = halfPi * x.s - atan(1 / x);\r\n\r\n // Argument reduction\r\n // Ensure |x| < 0.42\r\n // atan(x) = 2 * atan(x / (1 + sqrt(1 + x^2)))\r\n\r\n k = Math.min(28, wpr / LOG_BASE + 2 | 0);\r\n\r\n for (i = k; i; --i) x = x.div(x.times(x).plus(1).sqrt().plus(1));\r\n\r\n external = false;\r\n\r\n j = Math.ceil(wpr / LOG_BASE);\r\n n = 1;\r\n x2 = x.times(x);\r\n r = new Ctor(x);\r\n px = x;\r\n\r\n // atan(x) = x - x^3/3 + x^5/5 - x^7/7 + ...\r\n for (; i !== -1;) {\r\n px = px.times(x2);\r\n t = r.minus(px.div(n += 2));\r\n\r\n px = px.times(x2);\r\n r = t.plus(px.div(n += 2));\r\n\r\n if (r.d[j] !== void 0) for (i = j; r.d[i] === t.d[i] && i--;);\r\n }\r\n\r\n if (k) r = r.times(2 << (k - 1));\r\n\r\n external = true;\r\n\r\n return finalise(r, Ctor.precision = pr, Ctor.rounding = rm, true);\r\n};\r\n\r\n\r\n/*\r\n * Return true if the value of this Decimal is a finite number, otherwise return false.\r\n *\r\n */\r\nP.isFinite = function () {\r\n return !!this.d;\r\n};\r\n\r\n\r\n/*\r\n * Return true if the value of this Decimal is an integer, otherwise return false.\r\n *\r\n */\r\nP.isInteger = P.isInt = function () {\r\n return !!this.d && mathfloor(this.e / LOG_BASE) > this.d.length - 2;\r\n};\r\n\r\n\r\n/*\r\n * Return true if the value of this Decimal is NaN, otherwise return false.\r\n *\r\n */\r\nP.isNaN = function () {\r\n return !this.s;\r\n};\r\n\r\n\r\n/*\r\n * Return true if the value of this Decimal is negative, otherwise return false.\r\n *\r\n */\r\nP.isNegative = P.isNeg = function () {\r\n return this.s < 0;\r\n};\r\n\r\n\r\n/*\r\n * Return true if the value of this Decimal is positive, otherwise return false.\r\n *\r\n */\r\nP.isPositive = P.isPos = function () {\r\n return this.s > 0;\r\n};\r\n\r\n\r\n/*\r\n * Return true if the value of this Decimal is 0 or -0, otherwise return false.\r\n *\r\n */\r\nP.isZero = function () {\r\n return !!this.d && this.d[0] === 0;\r\n};\r\n\r\n\r\n/*\r\n * Return true if the value of this Decimal is less than `y`, otherwise return false.\r\n *\r\n */\r\nP.lessThan = P.lt = function (y) {\r\n return this.cmp(y) < 0;\r\n};\r\n\r\n\r\n/*\r\n * Return true if the value of this Decimal is less than or equal to `y`, otherwise return false.\r\n *\r\n */\r\nP.lessThanOrEqualTo = P.lte = function (y) {\r\n return this.cmp(y) < 1;\r\n};\r\n\r\n\r\n/*\r\n * Return the logarithm of the value of this Decimal to the specified base, rounded to `precision`\r\n * significant digits using rounding mode `rounding`.\r\n *\r\n * If no base is specified, return log[10](arg).\r\n *\r\n * log[base](arg) = ln(arg) / ln(base)\r\n *\r\n * The result will always be correctly rounded if the base of the log is 10, and 'almost always'\r\n * otherwise:\r\n *\r\n * Depending on the rounding mode, the result may be incorrectly rounded if the first fifteen\r\n * rounding digits are [49]99999999999999 or [50]00000000000000. In that case, the maximum error\r\n * between the result and the correctly rounded result will be one ulp (unit in the last place).\r\n *\r\n * log[-b](a) = NaN\r\n * log[0](a) = NaN\r\n * log[1](a) = NaN\r\n * log[NaN](a) = NaN\r\n * log[Infinity](a) = NaN\r\n * log[b](0) = -Infinity\r\n * log[b](-0) = -Infinity\r\n * log[b](-a) = NaN\r\n * log[b](1) = 0\r\n * log[b](Infinity) = Infinity\r\n * log[b](NaN) = NaN\r\n *\r\n * [base] {number|string|bigint|Decimal} The base of the logarithm.\r\n *\r\n */\r\nP.logarithm = P.log = function (base) {\r\n var isBase10, d, denominator, k, inf, num, sd, r,\r\n arg = this,\r\n Ctor = arg.constructor,\r\n pr = Ctor.precision,\r\n rm = Ctor.rounding,\r\n guard = 5;\r\n\r\n // Default base is 10.\r\n if (base == null) {\r\n base = new Ctor(10);\r\n isBase10 = true;\r\n } else {\r\n base = new Ctor(base);\r\n d = base.d;\r\n\r\n // Return NaN if base is negative, or non-finite, or is 0 or 1.\r\n if (base.s < 0 || !d || !d[0] || base.eq(1)) return new Ctor(NaN);\r\n\r\n isBase10 = base.eq(10);\r\n }\r\n\r\n d = arg.d;\r\n\r\n // Is arg negative, non-finite, 0 or 1?\r\n if (arg.s < 0 || !d || !d[0] || arg.eq(1)) {\r\n return new Ctor(d && !d[0] ? -1 / 0 : arg.s != 1 ? NaN : d ? 0 : 1 / 0);\r\n }\r\n\r\n // The result will have a non-terminating decimal expansion if base is 10 and arg is not an\r\n // integer power of 10.\r\n if (isBase10) {\r\n if (d.length > 1) {\r\n inf = true;\r\n } else {\r\n for (k = d[0]; k % 10 === 0;) k /= 10;\r\n inf = k !== 1;\r\n }\r\n }\r\n\r\n external = false;\r\n sd = pr + guard;\r\n num = naturalLogarithm(arg, sd);\r\n denominator = isBase10 ? getLn10(Ctor, sd + 10) : naturalLogarithm(base, sd);\r\n\r\n // The result will have 5 rounding digits.\r\n r = divide(num, denominator, sd, 1);\r\n\r\n // If at a rounding boundary, i.e. the result's rounding digits are [49]9999 or [50]0000,\r\n // calculate 10 further digits.\r\n //\r\n // If the result is known to have an infinite decimal expansion, repeat this until it is clear\r\n // that the result is above or below the boundary. Otherwise, if after calculating the 10\r\n // further digits, the last 14 are nines, round up and assume the result is exact.\r\n // Also assume the result is exact if the last 14 are zero.\r\n //\r\n // Example of a result that will be incorrectly rounded:\r\n // log[1048576](4503599627370502) = 2.60000000000000009610279511444746...\r\n // The above result correctly rounded using ROUND_CEIL to 1 decimal place should be 2.7, but it\r\n // will be given as 2.6 as there are 15 zeros immediately after the requested decimal place, so\r\n // the exact result would be assumed to be 2.6, which rounded using ROUND_CEIL to 1 decimal\r\n // place is still 2.6.\r\n if (checkRoundingDigits(r.d, k = pr, rm)) {\r\n\r\n do {\r\n sd += 10;\r\n num = naturalLogarithm(arg, sd);\r\n denominator = isBase10 ? getLn10(Ctor, sd + 10) : naturalLogarithm(base, sd);\r\n r = divide(num, denominator, sd, 1);\r\n\r\n if (!inf) {\r\n\r\n // Check for 14 nines from the 2nd rounding digit, as the first may be 4.\r\n if (+digitsToString(r.d).slice(k + 1, k + 15) + 1 == 1e14) {\r\n r = finalise(r, pr + 1, 0);\r\n }\r\n\r\n break;\r\n }\r\n } while (checkRoundingDigits(r.d, k += 10, rm));\r\n }\r\n\r\n external = true;\r\n\r\n return finalise(r, pr, rm);\r\n};\r\n\r\n\r\n/*\r\n * Return a new Decimal whose value is the maximum of the arguments and the value of this Decimal.\r\n *\r\n * arguments {number|string|bigint|Decimal}\r\n *\r\nP.max = function () {\r\n Array.prototype.push.call(arguments, this);\r\n return maxOrMin(this.constructor, arguments, -1);\r\n};\r\n */\r\n\r\n\r\n/*\r\n * Return a new Decimal whose value is the minimum of the arguments and the value of this Decimal.\r\n *\r\n * arguments {number|string|bigint|Decimal}\r\n *\r\nP.min = function () {\r\n Array.prototype.push.call(arguments, this);\r\n return maxOrMin(this.constructor, arguments, 1);\r\n};\r\n */\r\n\r\n\r\n/*\r\n * n - 0 = n\r\n * n - N = N\r\n * n - I = -I\r\n * 0 - n = -n\r\n * 0 - 0 = 0\r\n * 0 - N = N\r\n * 0 - I = -I\r\n * N - n = N\r\n * N - 0 = N\r\n * N - N = N\r\n * N - I = N\r\n * I - n = I\r\n * I - 0 = I\r\n * I - N = N\r\n * I - I = N\r\n *\r\n * Return a new Decimal whose value is the value of this Decimal minus `y`, rounded to `precision`\r\n * significant digits using rounding mode `rounding`.\r\n *\r\n */\r\nP.minus = P.sub = function (y) {\r\n var d, e, i, j, k, len, pr, rm, xd, xe, xLTy, yd,\r\n x = this,\r\n Ctor = x.constructor;\r\n\r\n y = new Ctor(y);\r\n\r\n // If either is not finite...\r\n if (!x.d || !y.d) {\r\n\r\n // Return NaN if either is NaN.\r\n if (!x.s || !y.s) y = new Ctor(NaN);\r\n\r\n // Return y negated if x is finite and y is ±Infinity.\r\n else if (x.d) y.s = -y.s;\r\n\r\n // Return x if y is finite and x is ±Infinity.\r\n // Return x if both are ±Infinity with different signs.\r\n // Return NaN if both are ±Infinity with the same sign.\r\n else y = new Ctor(y.d || x.s !== y.s ? x : NaN);\r\n\r\n return y;\r\n }\r\n\r\n // If signs differ...\r\n if (x.s != y.s) {\r\n y.s = -y.s;\r\n return x.plus(y);\r\n }\r\n\r\n xd = x.d;\r\n yd = y.d;\r\n pr = Ctor.precision;\r\n rm = Ctor.rounding;\r\n\r\n // If either is zero...\r\n if (!xd[0] || !yd[0]) {\r\n\r\n // Return y negated if x is zero and y is non-zero.\r\n if (yd[0]) y.s = -y.s;\r\n\r\n // Return x if y is zero and x is non-zero.\r\n else if (xd[0]) y = new Ctor(x);\r\n\r\n // Return zero if both are zero.\r\n // From IEEE 754 (2008) 6.3: 0 - 0 = -0 - -0 = -0 when rounding to -Infinity.\r\n else return new Ctor(rm === 3 ? -0 : 0);\r\n\r\n return external ? finalise(y, pr, rm) : y;\r\n }\r\n\r\n // x and y are finite, non-zero numbers with the same sign.\r\n\r\n // Calculate base 1e7 exponents.\r\n e = mathfloor(y.e / LOG_BASE);\r\n xe = mathfloor(x.e / LOG_BASE);\r\n\r\n xd = xd.slice();\r\n k = xe - e;\r\n\r\n // If base 1e7 exponents differ...\r\n if (k) {\r\n xLTy = k < 0;\r\n\r\n if (xLTy) {\r\n d = xd;\r\n k = -k;\r\n len = yd.length;\r\n } else {\r\n d = yd;\r\n e = xe;\r\n len = xd.length;\r\n }\r\n\r\n // Numbers with massively different exponents would result in a very high number of\r\n // zeros needing to be prepended, but this can be avoided while still ensuring correct\r\n // rounding by limiting the number of zeros to `Math.ceil(pr / LOG_BASE) + 2`.\r\n i = Math.max(Math.ceil(pr / LOG_BASE), len) + 2;\r\n\r\n if (k > i) {\r\n k = i;\r\n d.length = 1;\r\n }\r\n\r\n // Prepend zeros to equalise exponents.\r\n d.reverse();\r\n for (i = k; i--;) d.push(0);\r\n d.reverse();\r\n\r\n // Base 1e7 exponents equal.\r\n } else {\r\n\r\n // Check digits to determine which is the bigger number.\r\n\r\n i = xd.length;\r\n len = yd.length;\r\n xLTy = i < len;\r\n if (xLTy) len = i;\r\n\r\n for (i = 0; i < len; i++) {\r\n if (xd[i] != yd[i]) {\r\n xLTy = xd[i] < yd[i];\r\n break;\r\n }\r\n }\r\n\r\n k = 0;\r\n }\r\n\r\n if (xLTy) {\r\n d = xd;\r\n xd = yd;\r\n yd = d;\r\n y.s = -y.s;\r\n }\r\n\r\n len = xd.length;\r\n\r\n // Append zeros to `xd` if shorter.\r\n // Don't add zeros to `yd` if shorter as subtraction only needs to start at `yd` length.\r\n for (i = yd.length - len; i > 0; --i) xd[len++] = 0;\r\n\r\n // Subtract yd from xd.\r\n for (i = yd.length; i > k;) {\r\n\r\n if (xd[--i] < yd[i]) {\r\n for (j = i; j && xd[--j] === 0;) xd[j] = BASE - 1;\r\n --xd[j];\r\n xd[i] += BASE;\r\n }\r\n\r\n xd[i] -= yd[i];\r\n }\r\n\r\n // Remove trailing zeros.\r\n for (; xd[--len] === 0;) xd.pop();\r\n\r\n // Remove leading zeros and adjust exponent accordingly.\r\n for (; xd[0] === 0; xd.shift()) --e;\r\n\r\n // Zero?\r\n if (!xd[0]) return new Ctor(rm === 3 ? -0 : 0);\r\n\r\n y.d = xd;\r\n y.e = getBase10Exponent(xd, e);\r\n\r\n return external ? finalise(y, pr, rm) : y;\r\n};\r\n\r\n\r\n/*\r\n * n % 0 = N\r\n * n % N = N\r\n * n % I = n\r\n * 0 % n = 0\r\n * -0 % n = -0\r\n * 0 % 0 = N\r\n * 0 % N = N\r\n * 0 % I = 0\r\n * N % n = N\r\n * N % 0 = N\r\n * N % N = N\r\n * N % I = N\r\n * I % n = N\r\n * I % 0 = N\r\n * I % N = N\r\n * I % I = N\r\n *\r\n * Return a new Decimal whose value is the value of this Decimal modulo `y`, rounded to\r\n * `precision` significant digits using rounding mode `rounding`.\r\n *\r\n * The result depends on the modulo mode.\r\n *\r\n */\r\nP.modulo = P.mod = function (y) {\r\n var q,\r\n x = this,\r\n Ctor = x.constructor;\r\n\r\n y = new Ctor(y);\r\n\r\n // Return NaN if x is ±Infinity or NaN, or y is NaN or ±0.\r\n if (!x.d || !y.s || y.d && !y.d[0]) return new Ctor(NaN);\r\n\r\n // Return x if y is ±Infinity or x is ±0.\r\n if (!y.d || x.d && !x.d[0]) {\r\n return finalise(new Ctor(x), Ctor.precision, Ctor.rounding);\r\n }\r\n\r\n // Prevent rounding of intermediate calculations.\r\n external = false;\r\n\r\n if (Ctor.modulo == 9) {\r\n\r\n // Euclidian division: q = sign(y) * floor(x / abs(y))\r\n // result = x - q * y where 0 <= result < abs(y)\r\n q = divide(x, y.abs(), 0, 3, 1);\r\n q.s *= y.s;\r\n } else {\r\n q = divide(x, y, 0, Ctor.modulo, 1);\r\n }\r\n\r\n q = q.times(y);\r\n\r\n external = true;\r\n\r\n return x.minus(q);\r\n};\r\n\r\n\r\n/*\r\n * Return a new Decimal whose value is the natural exponential of the value of this Decimal,\r\n * i.e. the base e raised to the power the value of this Decimal, rounded to `precision`\r\n * significant digits using rounding mode `rounding`.\r\n *\r\n */\r\nP.naturalExponential = P.exp = function () {\r\n return naturalExponential(this);\r\n};\r\n\r\n\r\n/*\r\n * Return a new Decimal whose value is the natural logarithm of the value of this Decimal,\r\n * rounded to `precision` significant digits using rounding mode `rounding`.\r\n *\r\n */\r\nP.naturalLogarithm = P.ln = function () {\r\n return naturalLogarithm(this);\r\n};\r\n\r\n\r\n/*\r\n * Return a new Decimal whose value is the value of this Decimal negated, i.e. as if multiplied by\r\n * -1.\r\n *\r\n */\r\nP.negated = P.neg = function () {\r\n var x = new this.constructor(this);\r\n x.s = -x.s;\r\n return finalise(x);\r\n};\r\n\r\n\r\n/*\r\n * n + 0 = n\r\n * n + N = N\r\n * n + I = I\r\n * 0 + n = n\r\n * 0 + 0 = 0\r\n * 0 + N = N\r\n * 0 + I = I\r\n * N + n = N\r\n * N + 0 = N\r\n * N + N = N\r\n * N + I = N\r\n * I + n = I\r\n * I + 0 = I\r\n * I + N = N\r\n * I + I = I\r\n *\r\n * Return a new Decimal whose value is the value of this Decimal plus `y`, rounded to `precision`\r\n * significant digits using rounding mode `rounding`.\r\n *\r\n */\r\nP.plus = P.add = function (y) {\r\n var carry, d, e, i, k, len, pr, rm, xd, yd,\r\n x = this,\r\n Ctor = x.constructor;\r\n\r\n y = new Ctor(y);\r\n\r\n // If either is not finite...\r\n if (!x.d || !y.d) {\r\n\r\n // Return NaN if either is NaN.\r\n if (!x.s || !y.s) y = new Ctor(NaN);\r\n\r\n // Return x if y is finite and x is ±Infinity.\r\n // Return x if both are ±Infinity with the same sign.\r\n // Return NaN if both are ±Infinity with different signs.\r\n // Return y if x is finite and y is ±Infinity.\r\n else if (!x.d) y = new Ctor(y.d || x.s === y.s ? x : NaN);\r\n\r\n return y;\r\n }\r\n\r\n // If signs differ...\r\n if (x.s != y.s) {\r\n y.s = -y.s;\r\n return x.minus(y);\r\n }\r\n\r\n xd = x.d;\r\n yd = y.d;\r\n pr = Ctor.precision;\r\n rm = Ctor.rounding;\r\n\r\n // If either is zero...\r\n if (!xd[0] || !yd[0]) {\r\n\r\n // Return x if y is zero.\r\n // Return y if y is non-zero.\r\n if (!yd[0]) y = new Ctor(x);\r\n\r\n return external ? finalise(y, pr, rm) : y;\r\n }\r\n\r\n // x and y are finite, non-zero numbers with the same sign.\r\n\r\n // Calculate base 1e7 exponents.\r\n k = mathfloor(x.e / LOG_BASE);\r\n e = mathfloor(y.e / LOG_BASE);\r\n\r\n xd = xd.slice();\r\n i = k - e;\r\n\r\n // If base 1e7 exponents differ...\r\n if (i) {\r\n\r\n if (i < 0) {\r\n d = xd;\r\n i = -i;\r\n len = yd.length;\r\n } else {\r\n d = yd;\r\n e = k;\r\n len = xd.length;\r\n }\r\n\r\n // Limit number of zeros prepended to max(ceil(pr / LOG_BASE), len) + 1.\r\n k = Math.ceil(pr / LOG_BASE);\r\n len = k > len ? k + 1 : len + 1;\r\n\r\n if (i > len) {\r\n i = len;\r\n d.length = 1;\r\n }\r\n\r\n // Prepend zeros to equalise exponents. Note: Faster to use reverse then do unshifts.\r\n d.reverse();\r\n for (; i--;) d.push(0);\r\n d.reverse();\r\n }\r\n\r\n len = xd.length;\r\n i = yd.length;\r\n\r\n // If yd is longer than xd, swap xd and yd so xd points to the longer array.\r\n if (len - i < 0) {\r\n i = len;\r\n d = yd;\r\n yd = xd;\r\n xd = d;\r\n }\r\n\r\n // Only start adding at yd.length - 1 as the further digits of xd can be left as they are.\r\n for (carry = 0; i;) {\r\n carry = (xd[--i] = xd[i] + yd[i] + carry) / BASE | 0;\r\n xd[i] %= BASE;\r\n }\r\n\r\n if (carry) {\r\n xd.unshift(carry);\r\n ++e;\r\n }\r\n\r\n // Remove trailing zeros.\r\n // No need to check for zero, as +x + +y != 0 && -x + -y != 0\r\n for (len = xd.length; xd[--len] == 0;) xd.pop();\r\n\r\n y.d = xd;\r\n y.e = getBase10Exponent(xd, e);\r\n\r\n return external ? finalise(y, pr, rm) : y;\r\n};\r\n\r\n\r\n/*\r\n * Return the number of significant digits of the value of this Decimal.\r\n *\r\n * [z] {boolean|number} Whether to count integer-part trailing zeros: true, false, 1 or 0.\r\n *\r\n */\r\nP.precision = P.sd = function (z) {\r\n var k,\r\n x = this;\r\n\r\n if (z !== void 0 && z !== !!z && z !== 1 && z !== 0) throw Error(invalidArgument + z);\r\n\r\n if (x.d) {\r\n k = getPrecision(x.d);\r\n if (z && x.e + 1 > k) k = x.e + 1;\r\n } else {\r\n k = NaN;\r\n }\r\n\r\n return k;\r\n};\r\n\r\n\r\n/*\r\n * Return a new Decimal whose value is the value of this Decimal rounded to a whole number using\r\n * rounding mode `rounding`.\r\n *\r\n */\r\nP.round = function () {\r\n var x = this,\r\n Ctor = x.constructor;\r\n\r\n return finalise(new Ctor(x), x.e + 1, Ctor.rounding);\r\n};\r\n\r\n\r\n/*\r\n * Return a new Decimal whose value is the sine of the value in radians of this Decimal.\r\n *\r\n * Domain: [-Infinity, Infinity]\r\n * Range: [-1, 1]\r\n *\r\n * sin(x) = x - x^3/3! + x^5/5! - ...\r\n *\r\n * sin(0) = 0\r\n * sin(-0) = -0\r\n * sin(Infinity) = NaN\r\n * sin(-Infinity) = NaN\r\n * sin(NaN) = NaN\r\n *\r\n */\r\nP.sine = P.sin = function () {\r\n var pr, rm,\r\n x = this,\r\n Ctor = x.constructor;\r\n\r\n if (!x.isFinite()) return new Ctor(NaN);\r\n if (x.isZero()) return new Ctor(x);\r\n\r\n pr = Ctor.precision;\r\n rm = Ctor.rounding;\r\n Ctor.precision = pr + Math.max(x.e, x.sd()) + LOG_BASE;\r\n Ctor.rounding = 1;\r\n\r\n x = sine(Ctor, toLessThanHalfPi(Ctor, x));\r\n\r\n Ctor.precision = pr;\r\n Ctor.rounding = rm;\r\n\r\n return finalise(quadrant > 2 ? x.neg() : x, pr, rm, true);\r\n};\r\n\r\n\r\n/*\r\n * Return a new Decimal whose value is the square root of this Decimal, rounded to `precision`\r\n * significant digits using rounding mode `rounding`.\r\n *\r\n * sqrt(-n) = N\r\n * sqrt(N) = N\r\n * sqrt(-I) = N\r\n * sqrt(I) = I\r\n * sqrt(0) = 0\r\n * sqrt(-0) = -0\r\n *\r\n */\r\nP.squareRoot = P.sqrt = function () {\r\n var m, n, sd, r, rep, t,\r\n x = this,\r\n d = x.d,\r\n e = x.e,\r\n s = x.s,\r\n Ctor = x.constructor;\r\n\r\n // Negative/NaN/Infinity/zero?\r\n if (s !== 1 || !d || !d[0]) {\r\n return new Ctor(!s || s < 0 && (!d || d[0]) ? NaN : d ? x : 1 / 0);\r\n }\r\n\r\n external = false;\r\n\r\n // Initial estimate.\r\n s = Math.sqrt(+x);\r\n\r\n // Math.sqrt underflow/overflow?\r\n // Pass x to Math.sqrt as integer, then adjust the exponent of the result.\r\n if (s == 0 || s == 1 / 0) {\r\n n = digitsToString(d);\r\n\r\n if ((n.length + e) % 2 == 0) n += '0';\r\n s = Math.sqrt(n);\r\n e = mathfloor((e + 1) / 2) - (e < 0 || e % 2);\r\n\r\n if (s == 1 / 0) {\r\n n = '5e' + e;\r\n } else {\r\n n = s.toExponential();\r\n n = n.slice(0, n.indexOf('e') + 1) + e;\r\n }\r\n\r\n r = new Ctor(n);\r\n } else {\r\n r = new Ctor(s.toString());\r\n }\r\n\r\n sd = (e = Ctor.precision) + 3;\r\n\r\n // Newton-Raphson iteration.\r\n for (;;) {\r\n t = r;\r\n r = t.plus(divide(x, t, sd + 2, 1)).times(0.5);\r\n\r\n // TODO? Replace with for-loop and checkRoundingDigits.\r\n if (digitsToString(t.d).slice(0, sd) === (n = digitsToString(r.d)).slice(0, sd)) {\r\n n = n.slice(sd - 3, sd + 1);\r\n\r\n // The 4th rounding digit may be in error by -1 so if the 4 rounding digits are 9999 or\r\n // 4999, i.e. approaching a rounding boundary, continue the iteration.\r\n if (n == '9999' || !rep && n == '4999') {\r\n\r\n // On the first iteration only, check to see if rounding up gives the exact result as the\r\n // nines may infinitely repeat.\r\n if (!rep) {\r\n finalise(t, e + 1, 0);\r\n\r\n if (t.times(t).eq(x)) {\r\n r = t;\r\n break;\r\n }\r\n }\r\n\r\n sd += 4;\r\n rep = 1;\r\n } else {\r\n\r\n // If the rounding digits are null, 0{0,4} or 50{0,3}, check for an exact result.\r\n // If not, then there are further digits and m will be truthy.\r\n if (!+n || !+n.slice(1) && n.charAt(0) == '5') {\r\n\r\n // Truncate to the first rounding digit.\r\n finalise(r, e + 1, 1);\r\n m = !r.times(r).eq(x);\r\n }\r\n\r\n break;\r\n }\r\n }\r\n }\r\n\r\n external = true;\r\n\r\n return finalise(r, e, Ctor.rounding, m);\r\n};\r\n\r\n\r\n/*\r\n * Return a new Decimal whose value is the tangent of the value in radians of this Decimal.\r\n *\r\n * Domain: [-Infinity, Infinity]\r\n * Range: [-Infinity, Infinity]\r\n *\r\n * tan(0) = 0\r\n * tan(-0) = -0\r\n * tan(Infinity) = NaN\r\n * tan(-Infinity) = NaN\r\n * tan(NaN) = NaN\r\n *\r\n */\r\nP.tangent = P.tan = function () {\r\n var pr, rm,\r\n x = this,\r\n Ctor = x.constructor;\r\n\r\n if (!x.isFinite()) return new Ctor(NaN);\r\n if (x.isZero()) return new Ctor(x);\r\n\r\n pr = Ctor.precision;\r\n rm = Ctor.rounding;\r\n Ctor.precision = pr + 10;\r\n Ctor.rounding = 1;\r\n\r\n x = x.sin();\r\n x.s = 1;\r\n x = divide(x, new Ctor(1).minus(x.times(x)).sqrt(), pr + 10, 0);\r\n\r\n Ctor.precision = pr;\r\n Ctor.rounding = rm;\r\n\r\n return finalise(quadrant == 2 || quadrant == 4 ? x.neg() : x, pr, rm, true);\r\n};\r\n\r\n\r\n/*\r\n * n * 0 = 0\r\n * n * N = N\r\n * n * I = I\r\n * 0 * n = 0\r\n * 0 * 0 = 0\r\n * 0 * N = N\r\n * 0 * I = N\r\n * N * n = N\r\n * N * 0 = N\r\n * N * N = N\r\n * N * I = N\r\n * I * n = I\r\n * I * 0 = N\r\n * I * N = N\r\n * I * I = I\r\n *\r\n * Return a new Decimal whose value is this Decimal times `y`, rounded to `precision` significant\r\n * digits using rounding mode `rounding`.\r\n *\r\n */\r\nP.times = P.mul = function (y) {\r\n var carry, e, i, k, r, rL, t, xdL, ydL,\r\n x = this,\r\n Ctor = x.constructor,\r\n xd = x.d,\r\n yd = (y = new Ctor(y)).d;\r\n\r\n y.s *= x.s;\r\n\r\n // If either is NaN, ±Infinity or ±0...\r\n if (!xd || !xd[0] || !yd || !yd[0]) {\r\n\r\n return new Ctor(!y.s || xd && !xd[0] && !yd || yd && !yd[0] && !xd\r\n\r\n // Return NaN if either is NaN.\r\n // Return NaN if x is ±0 and y is ±Infinity, or y is ±0 and x is ±Infinity.\r\n ? NaN\r\n\r\n // Return ±Infinity if either is ±Infinity.\r\n // Return ±0 if either is ±0.\r\n : !xd || !yd ? y.s / 0 : y.s * 0);\r\n }\r\n\r\n e = mathfloor(x.e / LOG_BASE) + mathfloor(y.e / LOG_BASE);\r\n xdL = xd.length;\r\n ydL = yd.length;\r\n\r\n // Ensure xd points to the longer array.\r\n if (xdL < ydL) {\r\n r = xd;\r\n xd = yd;\r\n yd = r;\r\n rL = xdL;\r\n xdL = ydL;\r\n ydL = rL;\r\n }\r\n\r\n // Initialise the result array with zeros.\r\n r = [];\r\n rL = xdL + ydL;\r\n for (i = rL; i--;) r.push(0);\r\n\r\n // Multiply!\r\n for (i = ydL; --i >= 0;) {\r\n carry = 0;\r\n for (k = xdL + i; k > i;) {\r\n t = r[k] + yd[i] * xd[k - i - 1] + carry;\r\n r[k--] = t % BASE | 0;\r\n carry = t / BASE | 0;\r\n }\r\n\r\n r[k] = (r[k] + carry) % BASE | 0;\r\n }\r\n\r\n // Remove trailing zeros.\r\n for (; !r[--rL];) r.pop();\r\n\r\n if (carry) ++e;\r\n else r.shift();\r\n\r\n y.d = r;\r\n y.e = getBase10Exponent(r, e);\r\n\r\n return external ? finalise(y, Ctor.precision, Ctor.rounding) : y;\r\n};\r\n\r\n\r\n/*\r\n * Return a string representing the value of this Decimal in base 2, round to `sd` significant\r\n * digits using rounding mode `rm`.\r\n *\r\n * If the optional `sd` argument is present then return binary exponential notation.\r\n *\r\n * [sd] {number} Significant digits. Integer, 1 to MAX_DIGITS inclusive.\r\n * [rm] {number} Rounding mode. Integer, 0 to 8 inclusive.\r\n *\r\n */\r\nP.toBinary = function (sd, rm) {\r\n return toStringBinary(this, 2, sd, rm);\r\n};\r\n\r\n\r\n/*\r\n * Return a new Decimal whose value is the value of this Decimal rounded to a maximum of `dp`\r\n * decimal places using rounding mode `rm` or `rounding` if `rm` is omitted.\r\n *\r\n * If `dp` is omitted, return a new Decimal whose value is the value of this Decimal.\r\n *\r\n * [dp] {number} Decimal places. Integer, 0 to MAX_DIGITS inclusive.\r\n * [rm] {number} Rounding mode. Integer, 0 to 8 inclusive.\r\n *\r\n */\r\nP.toDecimalPlaces = P.toDP = function (dp, rm) {\r\n var x = this,\r\n Ctor = x.constructor;\r\n\r\n x = new Ctor(x);\r\n if (dp === void 0) return x;\r\n\r\n checkInt32(dp, 0, MAX_DIGITS);\r\n\r\n if (rm === void 0) rm = Ctor.rounding;\r\n else checkInt32(rm, 0, 8);\r\n\r\n return finalise(x, dp + x.e + 1, rm);\r\n};\r\n\r\n\r\n/*\r\n * Return a string representing the value of this Decimal in exponential notation rounded to\r\n * `dp` fixed decimal places using rounding mode `rounding`.\r\n *\r\n * [dp] {number} Decimal places. Integer, 0 to MAX_DIGITS inclusive.\r\n * [rm] {number} Rounding mode. Integer, 0 to 8 inclusive.\r\n *\r\n */\r\nP.toExponential = function (dp, rm) {\r\n var str,\r\n x = this,\r\n Ctor = x.constructor;\r\n\r\n if (dp === void 0) {\r\n str = finiteToString(x, true);\r\n } else {\r\n checkInt32(dp, 0, MAX_DIGITS);\r\n\r\n if (rm === void 0) rm = Ctor.rounding;\r\n else checkInt32(rm, 0, 8);\r\n\r\n x = finalise(new Ctor(x), dp + 1, rm);\r\n str = finiteToString(x, true, dp + 1);\r\n }\r\n\r\n return x.isNeg() && !x.isZero() ? '-' + str : str;\r\n};\r\n\r\n\r\n/*\r\n * Return a string representing the value of this Decimal in normal (fixed-point) notation to\r\n * `dp` fixed decimal places and rounded using rounding mode `rm` or `rounding` if `rm` is\r\n * omitted.\r\n *\r\n * As with JavaScript numbers, (-0).toFixed(0) is '0', but e.g. (-0.00001).toFixed(0) is '-0'.\r\n *\r\n * [dp] {number} Decimal places. Integer, 0 to MAX_DIGITS inclusive.\r\n * [rm] {number} Rounding mode. Integer, 0 to 8 inclusive.\r\n *\r\n * (-0).toFixed(0) is '0', but (-0.1).toFixed(0) is '-0'.\r\n * (-0).toFixed(1) is '0.0', but (-0.01).toFixed(1) is '-0.0'.\r\n * (-0).toFixed(3) is '0.000'.\r\n * (-0.5).toFixed(0) is '-0'.\r\n *\r\n */\r\nP.toFixed = function (dp, rm) {\r\n var str, y,\r\n x = this,\r\n Ctor = x.constructor;\r\n\r\n if (dp === void 0) {\r\n str = finiteToString(x);\r\n } else {\r\n checkInt32(dp, 0, MAX_DIGITS);\r\n\r\n if (rm === void 0) rm = Ctor.rounding;\r\n else checkInt32(rm, 0, 8);\r\n\r\n y = finalise(new Ctor(x), dp + x.e + 1, rm);\r\n str = finiteToString(y, false, dp + y.e + 1);\r\n }\r\n\r\n // To determine whether to add the minus sign look at the value before it was rounded,\r\n // i.e. look at `x` rather than `y`.\r\n return x.isNeg() && !x.isZero() ? '-' + str : str;\r\n};\r\n\r\n\r\n/*\r\n * Return an array representing the value of this Decimal as a simple fraction with an integer\r\n * numerator and an integer denominator.\r\n *\r\n * The denominator will be a positive non-zero value less than or equal to the specified maximum\r\n * denominator. If a maximum denominator is not specified, the denominator will be the lowest\r\n * value necessary to represent the number exactly.\r\n *\r\n * [maxD] {number|string|bigint|Decimal} Maximum denominator. Integer >= 1 and < Infinity.\r\n *\r\n */\r\nP.toFraction = function (maxD) {\r\n var d, d0, d1, d2, e, k, n, n0, n1, pr, q, r,\r\n x = this,\r\n xd = x.d,\r\n Ctor = x.constructor;\r\n\r\n if (!xd) return new Ctor(x);\r\n\r\n n1 = d0 = new Ctor(1);\r\n d1 = n0 = new Ctor(0);\r\n\r\n d = new Ctor(d1);\r\n e = d.e = getPrecision(xd) - x.e - 1;\r\n k = e % LOG_BASE;\r\n d.d[0] = mathpow(10, k < 0 ? LOG_BASE + k : k);\r\n\r\n if (maxD == null) {\r\n\r\n // d is 10**e, the minimum max-denominator needed.\r\n maxD = e > 0 ? d : n1;\r\n } else {\r\n n = new Ctor(maxD);\r\n if (!n.isInt() || n.lt(n1)) throw Error(invalidArgument + n);\r\n maxD = n.gt(d) ? (e > 0 ? d : n1) : n;\r\n }\r\n\r\n external = false;\r\n n = new Ctor(digitsToString(xd));\r\n pr = Ctor.precision;\r\n Ctor.precision = e = xd.length * LOG_BASE * 2;\r\n\r\n for (;;) {\r\n q = divide(n, d, 0, 1, 1);\r\n d2 = d0.plus(q.times(d1));\r\n if (d2.cmp(maxD) == 1) break;\r\n d0 = d1;\r\n d1 = d2;\r\n d2 = n1;\r\n n1 = n0.plus(q.times(d2));\r\n n0 = d2;\r\n d2 = d;\r\n d = n.minus(q.times(d2));\r\n n = d2;\r\n }\r\n\r\n d2 = divide(maxD.minus(d0), d1, 0, 1, 1);\r\n n0 = n0.plus(d2.times(n1));\r\n d0 = d0.plus(d2.times(d1));\r\n n0.s = n1.s = x.s;\r\n\r\n // Determine which fraction is closer to x, n0/d0 or n1/d1?\r\n r = divide(n1, d1, e, 1).minus(x).abs().cmp(divide(n0, d0, e, 1).minus(x).abs()) < 1\r\n ? [n1, d1] : [n0, d0];\r\n\r\n Ctor.precision = pr;\r\n external = true;\r\n\r\n return r;\r\n};\r\n\r\n\r\n/*\r\n * Return a string representing the value of this Decimal in base 16, round to `sd` significant\r\n * digits using rounding mode `rm`.\r\n *\r\n * If the optional `sd` argument is present then return binary exponential notation.\r\n *\r\n * [sd] {number} Significant digits. Integer, 1 to MAX_DIGITS inclusive.\r\n * [rm] {number} Rounding mode. Integer, 0 to 8 inclusive.\r\n *\r\n */\r\nP.toHexadecimal = P.toHex = function (sd, rm) {\r\n return toStringBinary(this, 16, sd, rm);\r\n};\r\n\r\n\r\n/*\r\n * Returns a new Decimal whose value is the nearest multiple of `y` in the direction of rounding\r\n * mode `rm`, or `Decimal.rounding` if `rm` is omitted, to the value of this Decimal.\r\n *\r\n * The return value will always have the same sign as this Decimal, unless either this Decimal\r\n * or `y` is NaN, in which case the return value will be also be NaN.\r\n *\r\n * The return value is not affected by the value of `precision`.\r\n *\r\n * y {number|string|bigint|Decimal} The magnitude to round to a multiple of.\r\n * [rm] {number} Rounding mode. Integer, 0 to 8 inclusive.\r\n *\r\n * 'toNearest() rounding mode not an integer: {rm}'\r\n * 'toNearest() rounding mode out of range: {rm}'\r\n *\r\n */\r\nP.toNearest = function (y, rm) {\r\n var x = this,\r\n Ctor = x.constructor;\r\n\r\n x = new Ctor(x);\r\n\r\n if (y == null) {\r\n\r\n // If x is not finite, return x.\r\n if (!x.d) return x;\r\n\r\n y = new Ctor(1);\r\n rm = Ctor.rounding;\r\n } else {\r\n y = new Ctor(y);\r\n if (rm === void 0) {\r\n rm = Ctor.rounding;\r\n } else {\r\n checkInt32(rm, 0, 8);\r\n }\r\n\r\n // If x is not finite, return x if y is not NaN, else NaN.\r\n if (!x.d) return y.s ? x : y;\r\n\r\n // If y is not finite, return Infinity with the sign of x if y is Infinity, else NaN.\r\n if (!y.d) {\r\n if (y.s) y.s = x.s;\r\n return y;\r\n }\r\n }\r\n\r\n // If y is not zero, calculate the nearest multiple of y to x.\r\n if (y.d[0]) {\r\n external = false;\r\n x = divide(x, y, 0, rm, 1).times(y);\r\n external = true;\r\n finalise(x);\r\n\r\n // If y is zero, return zero with the sign of x.\r\n } else {\r\n y.s = x.s;\r\n x = y;\r\n }\r\n\r\n return x;\r\n};\r\n\r\n\r\n/*\r\n * Return the value of this Decimal converted to a number primitive.\r\n * Zero keeps its sign.\r\n *\r\n */\r\nP.toNumber = function () {\r\n return +this;\r\n};\r\n\r\n\r\n/*\r\n * Return a string representing the value of this Decimal in base 8, round to `sd` significant\r\n * digits using rounding mode `rm`.\r\n *\r\n * If the optional `sd` argument is present then return binary exponential notation.\r\n *\r\n * [sd] {number} Significant digits. Integer, 1 to MAX_DIGITS inclusive.\r\n * [rm] {number} Rounding mode. Integer, 0 to 8 inclusive.\r\n *\r\n */\r\nP.toOctal = function (sd, rm) {\r\n return toStringBinary(this, 8, sd, rm);\r\n};\r\n\r\n\r\n/*\r\n * Return a new Decimal whose value is the value of this Decimal raised to the power `y`, rounded\r\n * to `precision` significant digits using rounding mode `rounding`.\r\n *\r\n * ECMAScript compliant.\r\n *\r\n * pow(x, NaN) = NaN\r\n * pow(x, ±0) = 1\r\n\r\n * pow(NaN, non-zero) = NaN\r\n * pow(abs(x) > 1, +Infinity) = +Infinity\r\n * pow(abs(x) > 1, -Infinity) = +0\r\n * pow(abs(x) == 1, ±Infinity) = NaN\r\n * pow(abs(x) < 1, +Infinity) = +0\r\n * pow(abs(x) < 1, -Infinity) = +Infinity\r\n * pow(+Infinity, y > 0) = +Infinity\r\n * pow(+Infinity, y < 0) = +0\r\n * pow(-Infinity, odd integer > 0) = -Infinity\r\n * pow(-Infinity, even integer > 0) = +Infinity\r\n * pow(-Infinity, odd integer < 0) = -0\r\n * pow(-Infinity, even integer < 0) = +0\r\n * pow(+0, y > 0) = +0\r\n * pow(+0, y < 0) = +Infinity\r\n * pow(-0, odd integer > 0) = -0\r\n * pow(-0, even integer > 0) = +0\r\n * pow(-0, odd integer < 0) = -Infinity\r\n * pow(-0, even integer < 0) = +Infinity\r\n * pow(finite x < 0, finite non-integer) = NaN\r\n *\r\n * For non-integer or very large exponents pow(x, y) is calculated using\r\n *\r\n * x^y = exp(y*ln(x))\r\n *\r\n * Assuming the first 15 rounding digits are each equally likely to be any digit 0-9, the\r\n * probability of an incorrectly rounded result\r\n * P([49]9{14} | [50]0{14}) = 2 * 0.2 * 10^-14 = 4e-15 = 1/2.5e+14\r\n * i.e. 1 in 250,000,000,000,000\r\n *\r\n * If a result is incorrectly rounded the maximum error will be 1 ulp (unit in last place).\r\n *\r\n * y {number|string|bigint|Decimal} The power to which to raise this Decimal.\r\n *\r\n */\r\nP.toPower = P.pow = function (y) {\r\n var e, k, pr, r, rm, s,\r\n x = this,\r\n Ctor = x.constructor,\r\n yn = +(y = new Ctor(y));\r\n\r\n // Either ±Infinity, NaN or ±0?\r\n if (!x.d || !y.d || !x.d[0] || !y.d[0]) return new Ctor(mathpow(+x, yn));\r\n\r\n x = new Ctor(x);\r\n\r\n if (x.eq(1)) return x;\r\n\r\n pr = Ctor.precision;\r\n rm = Ctor.rounding;\r\n\r\n if (y.eq(1)) return finalise(x, pr, rm);\r\n\r\n // y exponent\r\n e = mathfloor(y.e / LOG_BASE);\r\n\r\n // If y is a small integer use the 'exponentiation by squaring' algorithm.\r\n if (e >= y.d.length - 1 && (k = yn < 0 ? -yn : yn) <= MAX_SAFE_INTEGER) {\r\n r = intPow(Ctor, x, k, pr);\r\n return y.s < 0 ? new Ctor(1).div(r) : finalise(r, pr, rm);\r\n }\r\n\r\n s = x.s;\r\n\r\n // if x is negative\r\n if (s < 0) {\r\n\r\n // if y is not an integer\r\n if (e < y.d.length - 1) return new Ctor(NaN);\r\n\r\n // Result is positive if x is negative and the last digit of integer y is even.\r\n if ((y.d[e] & 1) == 0) s = 1;\r\n\r\n // if x.eq(-1)\r\n if (x.e == 0 && x.d[0] == 1 && x.d.length == 1) {\r\n x.s = s;\r\n return x;\r\n }\r\n }\r\n\r\n // Estimate result exponent.\r\n // x^y = 10^e, where e = y * log10(x)\r\n // log10(x) = log10(x_significand) + x_exponent\r\n // log10(x_significand) = ln(x_significand) / ln(10)\r\n k = mathpow(+x, yn);\r\n e = k == 0 || !isFinite(k)\r\n ? mathfloor(yn * (Math.log('0.' + digitsToString(x.d)) / Math.LN10 + x.e + 1))\r\n : new Ctor(k + '').e;\r\n\r\n // Exponent estimate may be incorrect e.g. x: 0.999999999999999999, y: 2.29, e: 0, r.e: -1.\r\n\r\n // Overflow/underflow?\r\n if (e > Ctor.maxE + 1 || e < Ctor.minE - 1) return new Ctor(e > 0 ? s / 0 : 0);\r\n\r\n external = false;\r\n Ctor.rounding = x.s = 1;\r\n\r\n // Estimate the extra guard digits needed to ensure five correct rounding digits from\r\n // naturalLogarithm(x). Example of failure without these extra digits (precision: 10):\r\n // new Decimal(2.32456).pow('2087987436534566.46411')\r\n // should be 1.162377823e+764914905173815, but is 1.162355823e+764914905173815\r\n k = Math.min(12, (e + '').length);\r\n\r\n // r = x^y = exp(y*ln(x))\r\n r = naturalExponential(y.times(naturalLogarithm(x, pr + k)), pr);\r\n\r\n // r may be Infinity, e.g. (0.9999999999999999).pow(-1e+40)\r\n if (r.d) {\r\n\r\n // Truncate to the required precision plus five rounding digits.\r\n r = finalise(r, pr + 5, 1);\r\n\r\n // If the rounding digits are [49]9999 or [50]0000 increase the precision by 10 and recalculate\r\n // the result.\r\n if (checkRoundingDigits(r.d, pr, rm)) {\r\n e = pr + 10;\r\n\r\n // Truncate to the increased precision plus five rounding digits.\r\n r = finalise(naturalExponential(y.times(naturalLogarithm(x, e + k)), e), e + 5, 1);\r\n\r\n // Check for 14 nines from the 2nd rounding digit (the first rounding digit may be 4 or 9).\r\n if (+digitsToString(r.d).slice(pr + 1, pr + 15) + 1 == 1e14) {\r\n r = finalise(r, pr + 1, 0);\r\n }\r\n }\r\n }\r\n\r\n r.s = s;\r\n external = true;\r\n Ctor.rounding = rm;\r\n\r\n return finalise(r, pr, rm);\r\n};\r\n\r\n\r\n/*\r\n * Return a string representing the value of this Decimal rounded to `sd` significant digits\r\n * using rounding mode `rounding`.\r\n *\r\n * Return exponential notation if `sd` is less than the number of digits necessary to represent\r\n * the integer part of the value in normal notation.\r\n *\r\n * [sd] {number} Significant digits. Integer, 1 to MAX_DIGITS inclusive.\r\n * [rm] {number} Rounding mode. Integer, 0 to 8 inclusive.\r\n *\r\n */\r\nP.toPrecision = function (sd, rm) {\r\n var str,\r\n x = this,\r\n Ctor = x.constructor;\r\n\r\n if (sd === void 0) {\r\n str = finiteToString(x, x.e <= Ctor.toExpNeg || x.e >= Ctor.toExpPos);\r\n } else {\r\n checkInt32(sd, 1, MAX_DIGITS);\r\n\r\n if (rm === void 0) rm = Ctor.rounding;\r\n else checkInt32(rm, 0, 8);\r\n\r\n x = finalise(new Ctor(x), sd, rm);\r\n str = finiteToString(x, sd <= x.e || x.e <= Ctor.toExpNeg, sd);\r\n }\r\n\r\n return x.isNeg() && !x.isZero() ? '-' + str : str;\r\n};\r\n\r\n\r\n/*\r\n * Return a new Decimal whose value is the value of this Decimal rounded to a maximum of `sd`\r\n * significant digits using rounding mode `rm`, or to `precision` and `rounding` respectively if\r\n * omitted.\r\n *\r\n * [sd] {number} Significant digits. Integer, 1 to MAX_DIGITS inclusive.\r\n * [rm] {number} Rounding mode. Integer, 0 to 8 inclusive.\r\n *\r\n * 'toSD() digits out of range: {sd}'\r\n * 'toSD() digits not an integer: {sd}'\r\n * 'toSD() rounding mode not an integer: {rm}'\r\n * 'toSD() rounding mode out of range: {rm}'\r\n *\r\n */\r\nP.toSignificantDigits = P.toSD = function (sd, rm) {\r\n var x = this,\r\n Ctor = x.constructor;\r\n\r\n if (sd === void 0) {\r\n sd = Ctor.precision;\r\n rm = Ctor.rounding;\r\n } else {\r\n checkInt32(sd, 1, MAX_DIGITS);\r\n\r\n if (rm === void 0) rm = Ctor.rounding;\r\n else checkInt32(rm, 0, 8);\r\n }\r\n\r\n return finalise(new Ctor(x), sd, rm);\r\n};\r\n\r\n\r\n/*\r\n * Return a string representing the value of this Decimal.\r\n *\r\n * Return exponential notation if this Decimal has a positive exponent equal to or greater than\r\n * `toExpPos`, or a negative exponent equal to or less than `toExpNeg`.\r\n *\r\n */\r\nP.toString = function () {\r\n var x = this,\r\n Ctor = x.constructor,\r\n str = finiteToString(x, x.e <= Ctor.toExpNeg || x.e >= Ctor.toExpPos);\r\n\r\n return x.isNeg() && !x.isZero() ? '-' + str : str;\r\n};\r\n\r\n\r\n/*\r\n * Return a new Decimal whose value is the value of this Decimal truncated to a whole number.\r\n *\r\n */\r\nP.truncated = P.trunc = function () {\r\n return finalise(new this.constructor(this), this.e + 1, 1);\r\n};\r\n\r\n\r\n/*\r\n * Return a string representing the value of this Decimal.\r\n * Unlike `toString`, negative zero will include the minus sign.\r\n *\r\n */\r\nP.valueOf = P.toJSON = function () {\r\n var x = this,\r\n Ctor = x.constructor,\r\n str = finiteToString(x, x.e <= Ctor.toExpNeg || x.e >= Ctor.toExpPos);\r\n\r\n return x.isNeg() ? '-' + str : str;\r\n};\r\n\r\n\r\n// Helper functions for Decimal.prototype (P) and/or Decimal methods, and their callers.\r\n\r\n\r\n/*\r\n * digitsToString P.cubeRoot, P.logarithm, P.squareRoot, P.toFraction, P.toPower,\r\n * finiteToString, naturalExponential, naturalLogarithm\r\n * checkInt32 P.toDecimalPlaces, P.toExponential, P.toFixed, P.toNearest,\r\n * P.toPrecision, P.toSignificantDigits, toStringBinary, random\r\n * checkRoundingDigits P.logarithm, P.toPower, naturalExponential, naturalLogarithm\r\n * convertBase toStringBinary, parseOther\r\n * cos P.cos\r\n * divide P.atanh, P.cubeRoot, P.dividedBy, P.dividedToIntegerBy,\r\n * P.logarithm, P.modulo, P.squareRoot, P.tan, P.tanh, P.toFraction,\r\n * P.toNearest, toStringBinary, naturalExponential, naturalLogarithm,\r\n * taylorSeries, atan2, parseOther\r\n * finalise P.absoluteValue, P.atan, P.atanh, P.ceil, P.cos, P.cosh,\r\n * P.cubeRoot, P.dividedToIntegerBy, P.floor, P.logarithm, P.minus,\r\n * P.modulo, P.negated, P.plus, P.round, P.sin, P.sinh, P.squareRoot,\r\n * P.tan, P.times, P.toDecimalPlaces, P.toExponential, P.toFixed,\r\n * P.toNearest, P.toPower, P.toPrecision, P.toSignificantDigits,\r\n * P.truncated, divide, getLn10, getPi, naturalExponential,\r\n * naturalLogarithm, ceil, floor, round, trunc\r\n * finiteToString P.toExponential, P.toFixed, P.toPrecision, P.toString, P.valueOf,\r\n * toStringBinary\r\n * getBase10Exponent P.minus, P.plus, P.times, parseOther\r\n * getLn10 P.logarithm, naturalLogarithm\r\n * getPi P.acos, P.asin, P.atan, toLessThanHalfPi, atan2\r\n * getPrecision P.precision, P.toFraction\r\n * getZeroString digitsToString, finiteToString\r\n * intPow P.toPower, parseOther\r\n * isOdd toLessThanHalfPi\r\n * maxOrMin max, min\r\n * naturalExponential P.naturalExponential, P.toPower\r\n * naturalLogarithm P.acosh, P.asinh, P.atanh, P.logarithm, P.naturalLogarithm,\r\n * P.toPower, naturalExponential\r\n * nonFiniteToString finiteToString, toStringBinary\r\n * parseDecimal Decimal\r\n * parseOther Decimal\r\n * sin P.sin\r\n * taylorSeries P.cosh, P.sinh, cos, sin\r\n * toLessThanHalfPi P.cos, P.sin\r\n * toStringBinary P.toBinary, P.toHexadecimal, P.toOctal\r\n * truncate intPow\r\n *\r\n * Throws: P.logarithm, P.precision, P.toFraction, checkInt32, getLn10, getPi,\r\n * naturalLogarithm, config, parseOther, random, Decimal\r\n */\r\n\r\n\r\nfunction digitsToString(d) {\r\n var i, k, ws,\r\n indexOfLastWord = d.length - 1,\r\n str = '',\r\n w = d[0];\r\n\r\n if (indexOfLastWord > 0) {\r\n str += w;\r\n for (i = 1; i < indexOfLastWord; i++) {\r\n ws = d[i] + '';\r\n k = LOG_BASE - ws.length;\r\n if (k) str += getZeroString(k);\r\n str += ws;\r\n }\r\n\r\n w = d[i];\r\n ws = w + '';\r\n k = LOG_BASE - ws.length;\r\n if (k) str += getZeroString(k);\r\n } else if (w === 0) {\r\n return '0';\r\n }\r\n\r\n // Remove trailing zeros of last w.\r\n for (; w % 10 === 0;) w /= 10;\r\n\r\n return str + w;\r\n}\r\n\r\n\r\nfunction checkInt32(i, min, max) {\r\n if (i !== ~~i || i < min || i > max) {\r\n throw Error(invalidArgument + i);\r\n }\r\n}\r\n\r\n\r\n/*\r\n * Check 5 rounding digits if `repeating` is null, 4 otherwise.\r\n * `repeating == null` if caller is `log` or `pow`,\r\n * `repeating != null` if caller is `naturalLogarithm` or `naturalExponential`.\r\n */\r\nfunction checkRoundingDigits(d, i, rm, repeating) {\r\n var di, k, r, rd;\r\n\r\n // Get the length of the first word of the array d.\r\n for (k = d[0]; k >= 10; k /= 10) --i;\r\n\r\n // Is the rounding digit in the first word of d?\r\n if (--i < 0) {\r\n i += LOG_BASE;\r\n di = 0;\r\n } else {\r\n di = Math.ceil((i + 1) / LOG_BASE);\r\n i %= LOG_BASE;\r\n }\r\n\r\n // i is the index (0 - 6) of the rounding digit.\r\n // E.g. if within the word 3487563 the first rounding digit is 5,\r\n // then i = 4, k = 1000, rd = 3487563 % 1000 = 563\r\n k = mathpow(10, LOG_BASE - i);\r\n rd = d[di] % k | 0;\r\n\r\n if (repeating == null) {\r\n if (i < 3) {\r\n if (i == 0) rd = rd / 100 | 0;\r\n else if (i == 1) rd = rd / 10 | 0;\r\n r = rm < 4 && rd == 99999 || rm > 3 && rd == 49999 || rd == 50000 || rd == 0;\r\n } else {\r\n r = (rm < 4 && rd + 1 == k || rm > 3 && rd + 1 == k / 2) &&\r\n (d[di + 1] / k / 100 | 0) == mathpow(10, i - 2) - 1 ||\r\n (rd == k / 2 || rd == 0) && (d[di + 1] / k / 100 | 0) == 0;\r\n }\r\n } else {\r\n if (i < 4) {\r\n if (i == 0) rd = rd / 1000 | 0;\r\n else if (i == 1) rd = rd / 100 | 0;\r\n else if (i == 2) rd = rd / 10 | 0;\r\n r = (repeating || rm < 4) && rd == 9999 || !repeating && rm > 3 && rd == 4999;\r\n } else {\r\n r = ((repeating || rm < 4) && rd + 1 == k ||\r\n (!repeating && rm > 3) && rd + 1 == k / 2) &&\r\n (d[di + 1] / k / 1000 | 0) == mathpow(10, i - 3) - 1;\r\n }\r\n }\r\n\r\n return r;\r\n}\r\n\r\n\r\n// Convert string of `baseIn` to an array of numbers of `baseOut`.\r\n// Eg. convertBase('255', 10, 16) returns [15, 15].\r\n// Eg. convertBase('ff', 16, 10) returns [2, 5, 5].\r\nfunction convertBase(str, baseIn, baseOut) {\r\n var j,\r\n arr = [0],\r\n arrL,\r\n i = 0,\r\n strL = str.length;\r\n\r\n for (; i < strL;) {\r\n for (arrL = arr.length; arrL--;) arr[arrL] *= baseIn;\r\n arr[0] += NUMERALS.indexOf(str.charAt(i++));\r\n for (j = 0; j < arr.length; j++) {\r\n if (arr[j] > baseOut - 1) {\r\n if (arr[j + 1] === void 0) arr[j + 1] = 0;\r\n arr[j + 1] += arr[j] / baseOut | 0;\r\n arr[j] %= baseOut;\r\n }\r\n }\r\n }\r\n\r\n return arr.reverse();\r\n}\r\n\r\n\r\n/*\r\n * cos(x) = 1 - x^2/2! + x^4/4! - ...\r\n * |x| < pi/2\r\n *\r\n */\r\nfunction cosine(Ctor, x) {\r\n var k, len, y;\r\n\r\n if (x.isZero()) return x;\r\n\r\n // Argument reduction: cos(4x) = 8*(cos^4(x) - cos^2(x)) + 1\r\n // i.e. cos(x) = 8*(cos^4(x/4) - cos^2(x/4)) + 1\r\n\r\n // Estimate the optimum number of times to use the argument reduction.\r\n len = x.d.length;\r\n if (len < 32) {\r\n k = Math.ceil(len / 3);\r\n y = (1 / tinyPow(4, k)).toString();\r\n } else {\r\n k = 16;\r\n y = '2.3283064365386962890625e-10';\r\n }\r\n\r\n Ctor.precision += k;\r\n\r\n x = taylorSeries(Ctor, 1, x.times(y), new Ctor(1));\r\n\r\n // Reverse argument reduction\r\n for (var i = k; i--;) {\r\n var cos2x = x.times(x);\r\n x = cos2x.times(cos2x).minus(cos2x).times(8).plus(1);\r\n }\r\n\r\n Ctor.precision -= k;\r\n\r\n return x;\r\n}\r\n\r\n\r\n/*\r\n * Perform division in the specified base.\r\n */\r\nvar divide = (function () {\r\n\r\n // Assumes non-zero x and k, and hence non-zero result.\r\n function multiplyInteger(x, k, base) {\r\n var temp,\r\n carry = 0,\r\n i = x.length;\r\n\r\n for (x = x.slice(); i--;) {\r\n temp = x[i] * k + carry;\r\n x[i] = temp % base | 0;\r\n carry = temp / base | 0;\r\n }\r\n\r\n if (carry) x.unshift(carry);\r\n\r\n return x;\r\n }\r\n\r\n function compare(a, b, aL, bL) {\r\n var i, r;\r\n\r\n if (aL != bL) {\r\n r = aL > bL ? 1 : -1;\r\n } else {\r\n for (i = r = 0; i < aL; i++) {\r\n if (a[i] != b[i]) {\r\n r = a[i] > b[i] ? 1 : -1;\r\n break;\r\n }\r\n }\r\n }\r\n\r\n return r;\r\n }\r\n\r\n function subtract(a, b, aL, base) {\r\n var i = 0;\r\n\r\n // Subtract b from a.\r\n for (; aL--;) {\r\n a[aL] -= i;\r\n i = a[aL] < b[aL] ? 1 : 0;\r\n a[aL] = i * base + a[aL] - b[aL];\r\n }\r\n\r\n // Remove leading zeros.\r\n for (; !a[0] && a.length > 1;) a.shift();\r\n }\r\n\r\n return function (x, y, pr, rm, dp, base) {\r\n var cmp, e, i, k, logBase, more, prod, prodL, q, qd, rem, remL, rem0, sd, t, xi, xL, yd0,\r\n yL, yz,\r\n Ctor = x.constructor,\r\n sign = x.s == y.s ? 1 : -1,\r\n xd = x.d,\r\n yd = y.d;\r\n\r\n // Either NaN, Infinity or 0?\r\n if (!xd || !xd[0] || !yd || !yd[0]) {\r\n\r\n return new Ctor(// Return NaN if either NaN, or both Infinity or 0.\r\n !x.s || !y.s || (xd ? yd && xd[0] == yd[0] : !yd) ? NaN :\r\n\r\n // Return ±0 if x is 0 or y is ±Infinity, or return ±Infinity as y is 0.\r\n xd && xd[0] == 0 || !yd ? sign * 0 : sign / 0);\r\n }\r\n\r\n if (base) {\r\n logBase = 1;\r\n e = x.e - y.e;\r\n } else {\r\n base = BASE;\r\n logBase = LOG_BASE;\r\n e = mathfloor(x.e / logBase) - mathfloor(y.e / logBase);\r\n }\r\n\r\n yL = yd.length;\r\n xL = xd.length;\r\n q = new Ctor(sign);\r\n qd = q.d = [];\r\n\r\n // Result exponent may be one less than e.\r\n // The digit array of a Decimal from toStringBinary may have trailing zeros.\r\n for (i = 0; yd[i] == (xd[i] || 0); i++);\r\n\r\n if (yd[i] > (xd[i] || 0)) e--;\r\n\r\n if (pr == null) {\r\n sd = pr = Ctor.precision;\r\n rm = Ctor.rounding;\r\n } else if (dp) {\r\n sd = pr + (x.e - y.e) + 1;\r\n } else {\r\n sd = pr;\r\n }\r\n\r\n if (sd < 0) {\r\n qd.push(1);\r\n more = true;\r\n } else {\r\n\r\n // Convert precision in number of base 10 digits to base 1e7 digits.\r\n sd = sd / logBase + 2 | 0;\r\n i = 0;\r\n\r\n // divisor < 1e7\r\n if (yL == 1) {\r\n k = 0;\r\n yd = yd[0];\r\n sd++;\r\n\r\n // k is the carry.\r\n for (; (i < xL || k) && sd--; i++) {\r\n t = k * base + (xd[i] || 0);\r\n qd[i] = t / yd | 0;\r\n k = t % yd | 0;\r\n }\r\n\r\n more = k || i < xL;\r\n\r\n // divisor >= 1e7\r\n } else {\r\n\r\n // Normalise xd and yd so highest order digit of yd is >= base/2\r\n k = base / (yd[0] + 1) | 0;\r\n\r\n if (k > 1) {\r\n yd = multiplyInteger(yd, k, base);\r\n xd = multiplyInteger(xd, k, base);\r\n yL = yd.length;\r\n xL = xd.length;\r\n }\r\n\r\n xi = yL;\r\n rem = xd.slice(0, yL);\r\n remL = rem.length;\r\n\r\n // Add zeros to make remainder as long as divisor.\r\n for (; remL < yL;) rem[remL++] = 0;\r\n\r\n yz = yd.slice();\r\n yz.unshift(0);\r\n yd0 = yd[0];\r\n\r\n if (yd[1] >= base / 2) ++yd0;\r\n\r\n do {\r\n k = 0;\r\n\r\n // Compare divisor and remainder.\r\n cmp = compare(yd, rem, yL, remL);\r\n\r\n // If divisor < remainder.\r\n if (cmp < 0) {\r\n\r\n // Calculate trial digit, k.\r\n rem0 = rem[0];\r\n if (yL != remL) rem0 = rem0 * base + (rem[1] || 0);\r\n\r\n // k will be how many times the divisor goes into the current remainder.\r\n k = rem0 / yd0 | 0;\r\n\r\n // Algorithm:\r\n // 1. product = divisor * trial digit (k)\r\n // 2. if product > remainder: product -= divisor, k--\r\n // 3. remainder -= product\r\n // 4. if product was < remainder at 2:\r\n // 5. compare new remainder and divisor\r\n // 6. If remainder > divisor: remainder -= divisor, k++\r\n\r\n if (k > 1) {\r\n if (k >= base) k = base - 1;\r\n\r\n // product = divisor * trial digit.\r\n prod = multiplyInteger(yd, k, base);\r\n prodL = prod.length;\r\n remL = rem.length;\r\n\r\n // Compare product and remainder.\r\n cmp = compare(prod, rem, prodL, remL);\r\n\r\n // product > remainder.\r\n if (cmp == 1) {\r\n k--;\r\n\r\n // Subtract divisor from product.\r\n subtract(prod, yL < prodL ? yz : yd, prodL, base);\r\n }\r\n } else {\r\n\r\n // cmp is -1.\r\n // If k is 0, there is no need to compare yd and rem again below, so change cmp to 1\r\n // to avoid it. If k is 1 there is a need to compare yd and rem again below.\r\n if (k == 0) cmp = k = 1;\r\n prod = yd.slice();\r\n }\r\n\r\n prodL = prod.length;\r\n if (prodL < remL) prod.unshift(0);\r\n\r\n // Subtract product from remainder.\r\n subtract(rem, prod, remL, base);\r\n\r\n // If product was < previous remainder.\r\n if (cmp == -1) {\r\n remL = rem.length;\r\n\r\n // Compare divisor and new remainder.\r\n cmp = compare(yd, rem, yL, remL);\r\n\r\n // If divisor < new remainder, subtract divisor from remainder.\r\n if (cmp < 1) {\r\n k++;\r\n\r\n // Subtract divisor from remainder.\r\n subtract(rem, yL < remL ? yz : yd, remL, base);\r\n }\r\n }\r\n\r\n remL = rem.length;\r\n } else if (cmp === 0) {\r\n k++;\r\n rem = [0];\r\n } // if cmp === 1, k will be 0\r\n\r\n // Add the next digit, k, to the result array.\r\n qd[i++] = k;\r\n\r\n // Update the remainder.\r\n if (cmp && rem[0]) {\r\n rem[remL++] = xd[xi] || 0;\r\n } else {\r\n rem = [xd[xi]];\r\n remL = 1;\r\n }\r\n\r\n } while ((xi++ < xL || rem[0] !== void 0) && sd--);\r\n\r\n more = rem[0] !== void 0;\r\n }\r\n\r\n // Leading zero?\r\n if (!qd[0]) qd.shift();\r\n }\r\n\r\n // logBase is 1 when divide is being used for base conversion.\r\n if (logBase == 1) {\r\n q.e = e;\r\n inexact = more;\r\n } else {\r\n\r\n // To calculate q.e, first get the number of digits of qd[0].\r\n for (i = 1, k = qd[0]; k >= 10; k /= 10) i++;\r\n q.e = i + e * logBase - 1;\r\n\r\n finalise(q, dp ? pr + q.e + 1 : pr, rm, more);\r\n }\r\n\r\n return q;\r\n };\r\n})();\r\n\r\n\r\n/*\r\n * Round `x` to `sd` significant digits using rounding mode `rm`.\r\n * Check for over/under-flow.\r\n */\r\n function finalise(x, sd, rm, isTruncated) {\r\n var digits, i, j, k, rd, roundUp, w, xd, xdi,\r\n Ctor = x.constructor;\r\n\r\n // Don't round if sd is null or undefined.\r\n out: if (sd != null) {\r\n xd = x.d;\r\n\r\n // Infinity/NaN.\r\n if (!xd) return x;\r\n\r\n // rd: the rounding digit, i.e. the digit after the digit that may be rounded up.\r\n // w: the word of xd containing rd, a base 1e7 number.\r\n // xdi: the index of w within xd.\r\n // digits: the number of digits of w.\r\n // i: what would be the index of rd within w if all the numbers were 7 digits long (i.e. if\r\n // they had leading zeros)\r\n // j: if > 0, the actual index of rd within w (if < 0, rd is a leading zero).\r\n\r\n // Get the length of the first word of the digits array xd.\r\n for (digits = 1, k = xd[0]; k >= 10; k /= 10) digits++;\r\n i = sd - digits;\r\n\r\n // Is the rounding digit in the first word of xd?\r\n if (i < 0) {\r\n i += LOG_BASE;\r\n j = sd;\r\n w = xd[xdi = 0];\r\n\r\n // Get the rounding digit at index j of w.\r\n rd = w / mathpow(10, digits - j - 1) % 10 | 0;\r\n } else {\r\n xdi = Math.ceil((i + 1) / LOG_BASE);\r\n k = xd.length;\r\n if (xdi >= k) {\r\n if (isTruncated) {\r\n\r\n // Needed by `naturalExponential`, `naturalLogarithm` and `squareRoot`.\r\n for (; k++ <= xdi;) xd.push(0);\r\n w = rd = 0;\r\n digits = 1;\r\n i %= LOG_BASE;\r\n j = i - LOG_BASE + 1;\r\n } else {\r\n break out;\r\n }\r\n } else {\r\n w = k = xd[xdi];\r\n\r\n // Get the number of digits of w.\r\n for (digits = 1; k >= 10; k /= 10) digits++;\r\n\r\n // Get the index of rd within w.\r\n i %= LOG_BASE;\r\n\r\n // Get the index of rd within w, adjusted for leading zeros.\r\n // The number of leading zeros of w is given by LOG_BASE - digits.\r\n j = i - LOG_BASE + digits;\r\n\r\n // Get the rounding digit at index j of w.\r\n rd = j < 0 ? 0 : w / mathpow(10, digits - j - 1) % 10 | 0;\r\n }\r\n }\r\n\r\n // Are there any non-zero digits after the rounding digit?\r\n isTruncated = isTruncated || sd < 0 ||\r\n xd[xdi + 1] !== void 0 || (j < 0 ? w : w % mathpow(10, digits - j - 1));\r\n\r\n // The expression `w % mathpow(10, digits - j - 1)` returns all the digits of w to the right\r\n // of the digit at (left-to-right) index j, e.g. if w is 908714 and j is 2, the expression\r\n // will give 714.\r\n\r\n roundUp = rm < 4\r\n ? (rd || isTruncated) && (rm == 0 || rm == (x.s < 0 ? 3 : 2))\r\n : rd > 5 || rd == 5 && (rm == 4 || isTruncated || rm == 6 &&\r\n\r\n // Check whether the digit to the left of the rounding digit is odd.\r\n ((i > 0 ? j > 0 ? w / mathpow(10, digits - j) : 0 : xd[xdi - 1]) % 10) & 1 ||\r\n rm == (x.s < 0 ? 8 : 7));\r\n\r\n if (sd < 1 || !xd[0]) {\r\n xd.length = 0;\r\n if (roundUp) {\r\n\r\n // Convert sd to decimal places.\r\n sd -= x.e + 1;\r\n\r\n // 1, 0.1, 0.01, 0.001, 0.0001 etc.\r\n xd[0] = mathpow(10, (LOG_BASE - sd % LOG_BASE) % LOG_BASE);\r\n x.e = -sd || 0;\r\n } else {\r\n\r\n // Zero.\r\n xd[0] = x.e = 0;\r\n }\r\n\r\n return x;\r\n }\r\n\r\n // Remove excess digits.\r\n if (i == 0) {\r\n xd.length = xdi;\r\n k = 1;\r\n xdi--;\r\n } else {\r\n xd.length = xdi + 1;\r\n k = mathpow(10, LOG_BASE - i);\r\n\r\n // E.g. 56700 becomes 56000 if 7 is the rounding digit.\r\n // j > 0 means i > number of leading zeros of w.\r\n xd[xdi] = j > 0 ? (w / mathpow(10, digits - j) % mathpow(10, j) | 0) * k : 0;\r\n }\r\n\r\n if (roundUp) {\r\n for (;;) {\r\n\r\n // Is the digit to be rounded up in the first word of xd?\r\n if (xdi == 0) {\r\n\r\n // i will be the length of xd[0] before k is added.\r\n for (i = 1, j = xd[0]; j >= 10; j /= 10) i++;\r\n j = xd[0] += k;\r\n for (k = 1; j >= 10; j /= 10) k++;\r\n\r\n // if i != k the length has increased.\r\n if (i != k) {\r\n x.e++;\r\n if (xd[0] == BASE) xd[0] = 1;\r\n }\r\n\r\n break;\r\n } else {\r\n xd[xdi] += k;\r\n if (xd[xdi] != BASE) break;\r\n xd[xdi--] = 0;\r\n k = 1;\r\n }\r\n }\r\n }\r\n\r\n // Remove trailing zeros.\r\n for (i = xd.length; xd[--i] === 0;) xd.pop();\r\n }\r\n\r\n if (external) {\r\n\r\n // Overflow?\r\n if (x.e > Ctor.maxE) {\r\n\r\n // Infinity.\r\n x.d = null;\r\n x.e = NaN;\r\n\r\n // Underflow?\r\n } else if (x.e < Ctor.minE) {\r\n\r\n // Zero.\r\n x.e = 0;\r\n x.d = [0];\r\n // Ctor.underflow = true;\r\n } // else Ctor.underflow = false;\r\n }\r\n\r\n return x;\r\n}\r\n\r\n\r\nfunction finiteToString(x, isExp, sd) {\r\n if (!x.isFinite()) return nonFiniteToString(x);\r\n var k,\r\n e = x.e,\r\n str = digitsToString(x.d),\r\n len = str.length;\r\n\r\n if (isExp) {\r\n if (sd && (k = sd - len) > 0) {\r\n str = str.charAt(0) + '.' + str.slice(1) + getZeroString(k);\r\n } else if (len > 1) {\r\n str = str.charAt(0) + '.' + str.slice(1);\r\n }\r\n\r\n str = str + (x.e < 0 ? 'e' : 'e+') + x.e;\r\n } else if (e < 0) {\r\n str = '0.' + getZeroString(-e - 1) + str;\r\n if (sd && (k = sd - len) > 0) str += getZeroString(k);\r\n } else if (e >= len) {\r\n str += getZeroString(e + 1 - len);\r\n if (sd && (k = sd - e - 1) > 0) str = str + '.' + getZeroString(k);\r\n } else {\r\n if ((k = e + 1) < len) str = str.slice(0, k) + '.' + str.slice(k);\r\n if (sd && (k = sd - len) > 0) {\r\n if (e + 1 === len) str += '.';\r\n str += getZeroString(k);\r\n }\r\n }\r\n\r\n return str;\r\n}\r\n\r\n\r\n// Calculate the base 10 exponent from the base 1e7 exponent.\r\nfunction getBase10Exponent(digits, e) {\r\n var w = digits[0];\r\n\r\n // Add the number of digits of the first word of the digits array.\r\n for ( e *= LOG_BASE; w >= 10; w /= 10) e++;\r\n return e;\r\n}\r\n\r\n\r\nfunction getLn10(Ctor, sd, pr) {\r\n if (sd > LN10_PRECISION) {\r\n\r\n // Reset global state in case the exception is caught.\r\n external = true;\r\n if (pr) Ctor.precision = pr;\r\n throw Error(precisionLimitExceeded);\r\n }\r\n return finalise(new Ctor(LN10), sd, 1, true);\r\n}\r\n\r\n\r\nfunction getPi(Ctor, sd, rm) {\r\n if (sd > PI_PRECISION) throw Error(precisionLimitExceeded);\r\n return finalise(new Ctor(PI), sd, rm, true);\r\n}\r\n\r\n\r\nfunction getPrecision(digits) {\r\n var w = digits.length - 1,\r\n len = w * LOG_BASE + 1;\r\n\r\n w = digits[w];\r\n\r\n // If non-zero...\r\n if (w) {\r\n\r\n // Subtract the number of trailing zeros of the last word.\r\n for (; w % 10 == 0; w /= 10) len--;\r\n\r\n // Add the number of digits of the first word.\r\n for (w = digits[0]; w >= 10; w /= 10) len++;\r\n }\r\n\r\n return len;\r\n}\r\n\r\n\r\nfunction getZeroString(k) {\r\n var zs = '';\r\n for (; k--;) zs += '0';\r\n return zs;\r\n}\r\n\r\n\r\n/*\r\n * Return a new Decimal whose value is the value of Decimal `x` to the power `n`, where `n` is an\r\n * integer of type number.\r\n *\r\n * Implements 'exponentiation by squaring'. Called by `pow` and `parseOther`.\r\n *\r\n */\r\nfunction intPow(Ctor, x, n, pr) {\r\n var isTruncated,\r\n r = new Ctor(1),\r\n\r\n // Max n of 9007199254740991 takes 53 loop iterations.\r\n // Maximum digits array length; leaves [28, 34] guard digits.\r\n k = Math.ceil(pr / LOG_BASE + 4);\r\n\r\n external = false;\r\n\r\n for (;;) {\r\n if (n % 2) {\r\n r = r.times(x);\r\n if (truncate(r.d, k)) isTruncated = true;\r\n }\r\n\r\n n = mathfloor(n / 2);\r\n if (n === 0) {\r\n\r\n // To ensure correct rounding when r.d is truncated, increment the last word if it is zero.\r\n n = r.d.length - 1;\r\n if (isTruncated && r.d[n] === 0) ++r.d[n];\r\n break;\r\n }\r\n\r\n x = x.times(x);\r\n truncate(x.d, k);\r\n }\r\n\r\n external = true;\r\n\r\n return r;\r\n}\r\n\r\n\r\nfunction isOdd(n) {\r\n return n.d[n.d.length - 1] & 1;\r\n}\r\n\r\n\r\n/*\r\n * Handle `max` (`n` is -1) and `min` (`n` is 1).\r\n */\r\nfunction maxOrMin(Ctor, args, n) {\r\n var k, y,\r\n x = new Ctor(args[0]),\r\n i = 0;\r\n\r\n for (; ++i < args.length;) {\r\n y = new Ctor(args[i]);\r\n\r\n // NaN?\r\n if (!y.s) {\r\n x = y;\r\n break;\r\n }\r\n\r\n k = x.cmp(y);\r\n\r\n if (k === n || k === 0 && x.s === n) {\r\n x = y;\r\n }\r\n }\r\n\r\n return x;\r\n}\r\n\r\n\r\n/*\r\n * Return a new Decimal whose value is the natural exponential of `x` rounded to `sd` significant\r\n * digits.\r\n *\r\n * Taylor/Maclaurin series.\r\n *\r\n * exp(x) = x^0/0! + x^1/1! + x^2/2! + x^3/3! + ...\r\n *\r\n * Argument reduction:\r\n * Repeat x = x / 32, k += 5, until |x| < 0.1\r\n * exp(x) = exp(x / 2^k)^(2^k)\r\n *\r\n * Previously, the argument was initially reduced by\r\n * exp(x) = exp(r) * 10^k where r = x - k * ln10, k = floor(x / ln10)\r\n * to first put r in the range [0, ln10], before dividing by 32 until |x| < 0.1, but this was\r\n * found to be slower than just dividing repeatedly by 32 as above.\r\n *\r\n * Max integer argument: exp('20723265836946413') = 6.3e+9000000000000000\r\n * Min integer argument: exp('-20723265836946411') = 1.2e-9000000000000000\r\n * (Math object integer min/max: Math.exp(709) = 8.2e+307, Math.exp(-745) = 5e-324)\r\n *\r\n * exp(Infinity) = Infinity\r\n * exp(-Infinity) = 0\r\n * exp(NaN) = NaN\r\n * exp(±0) = 1\r\n *\r\n * exp(x) is non-terminating for any finite, non-zero x.\r\n *\r\n * The result will always be correctly rounded.\r\n *\r\n */\r\nfunction naturalExponential(x, sd) {\r\n var denominator, guard, j, pow, sum, t, wpr,\r\n rep = 0,\r\n i = 0,\r\n k = 0,\r\n Ctor = x.constructor,\r\n rm = Ctor.rounding,\r\n pr = Ctor.precision;\r\n\r\n // 0/NaN/Infinity?\r\n if (!x.d || !x.d[0] || x.e > 17) {\r\n\r\n return new Ctor(x.d\r\n ? !x.d[0] ? 1 : x.s < 0 ? 0 : 1 / 0\r\n : x.s ? x.s < 0 ? 0 : x : 0 / 0);\r\n }\r\n\r\n if (sd == null) {\r\n external = false;\r\n wpr = pr;\r\n } else {\r\n wpr = sd;\r\n }\r\n\r\n t = new Ctor(0.03125);\r\n\r\n // while abs(x) >= 0.1\r\n while (x.e > -2) {\r\n\r\n // x = x / 2^5\r\n x = x.times(t);\r\n k += 5;\r\n }\r\n\r\n // Use 2 * log10(2^k) + 5 (empirically derived) to estimate the increase in precision\r\n // necessary to ensure the first 4 rounding digits are correct.\r\n guard = Math.log(mathpow(2, k)) / Math.LN10 * 2 + 5 | 0;\r\n wpr += guard;\r\n denominator = pow = sum = new Ctor(1);\r\n Ctor.precision = wpr;\r\n\r\n for (;;) {\r\n pow = finalise(pow.times(x), wpr, 1);\r\n denominator = denominator.times(++i);\r\n t = sum.plus(divide(pow, denominator, wpr, 1));\r\n\r\n if (digitsToString(t.d).slice(0, wpr) === digitsToString(sum.d).slice(0, wpr)) {\r\n j = k;\r\n while (j--) sum = finalise(sum.times(sum), wpr, 1);\r\n\r\n // Check to see if the first 4 rounding digits are [49]999.\r\n // If so, repeat the summation with a higher precision, otherwise\r\n // e.g. with precision: 18, rounding: 1\r\n // exp(18.404272462595034083567793919843761) = 98372560.1229999999 (should be 98372560.123)\r\n // `wpr - guard` is the index of first rounding digit.\r\n if (sd == null) {\r\n\r\n if (rep < 3 && checkRoundingDigits(sum.d, wpr - guard, rm, rep)) {\r\n Ctor.precision = wpr += 10;\r\n denominator = pow = t = new Ctor(1);\r\n i = 0;\r\n rep++;\r\n } else {\r\n return finalise(sum, Ctor.precision = pr, rm, external = true);\r\n }\r\n } else {\r\n Ctor.precision = pr;\r\n return sum;\r\n }\r\n }\r\n\r\n sum = t;\r\n }\r\n}\r\n\r\n\r\n/*\r\n * Return a new Decimal whose value is the natural logarithm of `x` rounded to `sd` significant\r\n * digits.\r\n *\r\n * ln(-n) = NaN\r\n * ln(0) = -Infinity\r\n * ln(-0) = -Infinity\r\n * ln(1) = 0\r\n * ln(Infinity) = Infinity\r\n * ln(-Infinity) = NaN\r\n * ln(NaN) = NaN\r\n *\r\n * ln(n) (n != 1) is non-terminating.\r\n *\r\n */\r\nfunction naturalLogarithm(y, sd) {\r\n var c, c0, denominator, e, numerator, rep, sum, t, wpr, x1, x2,\r\n n = 1,\r\n guard = 10,\r\n x = y,\r\n xd = x.d,\r\n Ctor = x.constructor,\r\n rm = Ctor.rounding,\r\n pr = Ctor.precision;\r\n\r\n // Is x negative or Infinity, NaN, 0 or 1?\r\n if (x.s < 0 || !xd || !xd[0] || !x.e && xd[0] == 1 && xd.length == 1) {\r\n return new Ctor(xd && !xd[0] ? -1 / 0 : x.s != 1 ? NaN : xd ? 0 : x);\r\n }\r\n\r\n if (sd == null) {\r\n external = false;\r\n wpr = pr;\r\n } else {\r\n wpr = sd;\r\n }\r\n\r\n Ctor.precision = wpr += guard;\r\n c = digitsToString(xd);\r\n c0 = c.charAt(0);\r\n\r\n if (Math.abs(e = x.e) < 1.5e15) {\r\n\r\n // Argument reduction.\r\n // The series converges faster the closer the argument is to 1, so using\r\n // ln(a^b) = b * ln(a), ln(a) = ln(a^b) / b\r\n // multiply the argument by itself until the leading digits of the significand are 7, 8, 9,\r\n // 10, 11, 12 or 13, recording the number of multiplications so the sum of the series can\r\n // later be divided by this number, then separate out the power of 10 using\r\n // ln(a*10^b) = ln(a) + b*ln(10).\r\n\r\n // max n is 21 (gives 0.9, 1.0 or 1.1) (9e15 / 21 = 4.2e14).\r\n //while (c0 < 9 && c0 != 1 || c0 == 1 && c.charAt(1) > 1) {\r\n // max n is 6 (gives 0.7 - 1.3)\r\n while (c0 < 7 && c0 != 1 || c0 == 1 && c.charAt(1) > 3) {\r\n x = x.times(y);\r\n c = digitsToString(x.d);\r\n c0 = c.charAt(0);\r\n n++;\r\n }\r\n\r\n e = x.e;\r\n\r\n if (c0 > 1) {\r\n x = new Ctor('0.' + c);\r\n e++;\r\n } else {\r\n x = new Ctor(c0 + '.' + c.slice(1));\r\n }\r\n } else {\r\n\r\n // The argument reduction method above may result in overflow if the argument y is a massive\r\n // number with exponent >= 1500000000000000 (9e15 / 6 = 1.5e15), so instead recall this\r\n // function using ln(x*10^e) = ln(x) + e*ln(10).\r\n t = getLn10(Ctor, wpr + 2, pr).times(e + '');\r\n x = naturalLogarithm(new Ctor(c0 + '.' + c.slice(1)), wpr - guard).plus(t);\r\n Ctor.precision = pr;\r\n\r\n return sd == null ? finalise(x, pr, rm, external = true) : x;\r\n }\r\n\r\n // x1 is x reduced to a value near 1.\r\n x1 = x;\r\n\r\n // Taylor series.\r\n // ln(y) = ln((1 + x)/(1 - x)) = 2(x + x^3/3 + x^5/5 + x^7/7 + ...)\r\n // where x = (y - 1)/(y + 1) (|x| < 1)\r\n sum = numerator = x = divide(x.minus(1), x.plus(1), wpr, 1);\r\n x2 = finalise(x.times(x), wpr, 1);\r\n denominator = 3;\r\n\r\n for (;;) {\r\n numerator = finalise(numerator.times(x2), wpr, 1);\r\n t = sum.plus(divide(numerator, new Ctor(denominator), wpr, 1));\r\n\r\n if (digitsToString(t.d).slice(0, wpr) === digitsToString(sum.d).slice(0, wpr)) {\r\n sum = sum.times(2);\r\n\r\n // Reverse the argument reduction. Check that e is not 0 because, besides preventing an\r\n // unnecessary calculation, -0 + 0 = +0 and to ensure correct rounding -0 needs to stay -0.\r\n if (e !== 0) sum = sum.plus(getLn10(Ctor, wpr + 2, pr).times(e + ''));\r\n sum = divide(sum, new Ctor(n), wpr, 1);\r\n\r\n // Is rm > 3 and the first 4 rounding digits 4999, or rm < 4 (or the summation has\r\n // been repeated previously) and the first 4 rounding digits 9999?\r\n // If so, restart the summation with a higher precision, otherwise\r\n // e.g. with precision: 12, rounding: 1\r\n // ln(135520028.6126091714265381533) = 18.7246299999 when it should be 18.72463.\r\n // `wpr - guard` is the index of first rounding digit.\r\n if (sd == null) {\r\n if (checkRoundingDigits(sum.d, wpr - guard, rm, rep)) {\r\n Ctor.precision = wpr += guard;\r\n t = numerator = x = divide(x1.minus(1), x1.plus(1), wpr, 1);\r\n x2 = finalise(x.times(x), wpr, 1);\r\n denominator = rep = 1;\r\n } else {\r\n return finalise(sum, Ctor.precision = pr, rm, external = true);\r\n }\r\n } else {\r\n Ctor.precision = pr;\r\n return sum;\r\n }\r\n }\r\n\r\n sum = t;\r\n denominator += 2;\r\n }\r\n}\r\n\r\n\r\n// ±Infinity, NaN.\r\nfunction nonFiniteToString(x) {\r\n // Unsigned.\r\n return String(x.s * x.s / 0);\r\n}\r\n\r\n\r\n/*\r\n * Parse the value of a new Decimal `x` from string `str`.\r\n */\r\nfunction parseDecimal(x, str) {\r\n var e, i, len;\r\n\r\n // TODO BigInt str: no need to check for decimal point, exponential form or leading zeros.\r\n // Decimal point?\r\n if ((e = str.indexOf('.')) > -1) str = str.replace('.', '');\r\n\r\n // Exponential form?\r\n if ((i = str.search(/e/i)) > 0) {\r\n\r\n // Determine exponent.\r\n if (e < 0) e = i;\r\n e += +str.slice(i + 1);\r\n str = str.substring(0, i);\r\n } else if (e < 0) {\r\n\r\n // Integer.\r\n e = str.length;\r\n }\r\n\r\n // Determine leading zeros.\r\n for (i = 0; str.charCodeAt(i) === 48; i++);\r\n\r\n // Determine trailing zeros.\r\n for (len = str.length; str.charCodeAt(len - 1) === 48; --len);\r\n str = str.slice(i, len);\r\n\r\n if (str) {\r\n len -= i;\r\n x.e = e = e - i - 1;\r\n x.d = [];\r\n\r\n // Transform base\r\n\r\n // e is the base 10 exponent.\r\n // i is where to slice str to get the first word of the digits array.\r\n i = (e + 1) % LOG_BASE;\r\n if (e < 0) i += LOG_BASE;\r\n\r\n if (i < len) {\r\n if (i) x.d.push(+str.slice(0, i));\r\n for (len -= LOG_BASE; i < len;) x.d.push(+str.slice(i, i += LOG_BASE));\r\n str = str.slice(i);\r\n i = LOG_BASE - str.length;\r\n } else {\r\n i -= len;\r\n }\r\n\r\n for (; i--;) str += '0';\r\n x.d.push(+str);\r\n\r\n if (external) {\r\n\r\n // Overflow?\r\n if (x.e > x.constructor.maxE) {\r\n\r\n // Infinity.\r\n x.d = null;\r\n x.e = NaN;\r\n\r\n // Underflow?\r\n } else if (x.e < x.constructor.minE) {\r\n\r\n // Zero.\r\n x.e = 0;\r\n x.d = [0];\r\n // x.constructor.underflow = true;\r\n } // else x.constructor.underflow = false;\r\n }\r\n } else {\r\n\r\n // Zero.\r\n x.e = 0;\r\n x.d = [0];\r\n }\r\n\r\n return x;\r\n}\r\n\r\n\r\n/*\r\n * Parse the value of a new Decimal `x` from a string `str`, which is not a decimal value.\r\n */\r\nfunction parseOther(x, str) {\r\n var base, Ctor, divisor, i, isFloat, len, p, xd, xe;\r\n\r\n if (str.indexOf('_') > -1) {\r\n str = str.replace(/(\\d)_(?=\\d)/g, '$1');\r\n if (isDecimal.test(str)) return parseDecimal(x, str);\r\n } else if (str === 'Infinity' || str === 'NaN') {\r\n if (!+str) x.s = NaN;\r\n x.e = NaN;\r\n x.d = null;\r\n return x;\r\n }\r\n\r\n if (isHex.test(str)) {\r\n base = 16;\r\n str = str.toLowerCase();\r\n } else if (isBinary.test(str)) {\r\n base = 2;\r\n } else if (isOctal.test(str)) {\r\n base = 8;\r\n } else {\r\n throw Error(invalidArgument + str);\r\n }\r\n\r\n // Is there a binary exponent part?\r\n i = str.search(/p/i);\r\n\r\n if (i > 0) {\r\n p = +str.slice(i + 1);\r\n str = str.substring(2, i);\r\n } else {\r\n str = str.slice(2);\r\n }\r\n\r\n // Convert `str` as an integer then divide the result by `base` raised to a power such that the\r\n // fraction part will be restored.\r\n i = str.indexOf('.');\r\n isFloat = i >= 0;\r\n Ctor = x.constructor;\r\n\r\n if (isFloat) {\r\n str = str.replace('.', '');\r\n len = str.length;\r\n i = len - i;\r\n\r\n // log[10](16) = 1.2041... , log[10](88) = 1.9444....\r\n divisor = intPow(Ctor, new Ctor(base), i, i * 2);\r\n }\r\n\r\n xd = convertBase(str, base, BASE);\r\n xe = xd.length - 1;\r\n\r\n // Remove trailing zeros.\r\n for (i = xe; xd[i] === 0; --i) xd.pop();\r\n if (i < 0) return new Ctor(x.s * 0);\r\n x.e = getBase10Exponent(xd, xe);\r\n x.d = xd;\r\n external = false;\r\n\r\n // At what precision to perform the division to ensure exact conversion?\r\n // maxDecimalIntegerPartDigitCount = ceil(log[10](b) * otherBaseIntegerPartDigitCount)\r\n // log[10](2) = 0.30103, log[10](8) = 0.90309, log[10](16) = 1.20412\r\n // E.g. ceil(1.2 * 3) = 4, so up to 4 decimal digits are needed to represent 3 hex int digits.\r\n // maxDecimalFractionPartDigitCount = {Hex:4|Oct:3|Bin:1} * otherBaseFractionPartDigitCount\r\n // Therefore using 4 * the number of digits of str will always be enough.\r\n if (isFloat) x = divide(x, divisor, len * 4);\r\n\r\n // Multiply by the binary exponent part if present.\r\n if (p) x = x.times(Math.abs(p) < 54 ? mathpow(2, p) : Decimal.pow(2, p));\r\n external = true;\r\n\r\n return x;\r\n}\r\n\r\n\r\n/*\r\n * sin(x) = x - x^3/3! + x^5/5! - ...\r\n * |x| < pi/2\r\n *\r\n */\r\nfunction sine(Ctor, x) {\r\n var k,\r\n len = x.d.length;\r\n\r\n if (len < 3) {\r\n return x.isZero() ? x : taylorSeries(Ctor, 2, x, x);\r\n }\r\n\r\n // Argument reduction: sin(5x) = 16*sin^5(x) - 20*sin^3(x) + 5*sin(x)\r\n // i.e. sin(x) = 16*sin^5(x/5) - 20*sin^3(x/5) + 5*sin(x/5)\r\n // and sin(x) = sin(x/5)(5 + sin^2(x/5)(16sin^2(x/5) - 20))\r\n\r\n // Estimate the optimum number of times to use the argument reduction.\r\n k = 1.4 * Math.sqrt(len);\r\n k = k > 16 ? 16 : k | 0;\r\n\r\n x = x.times(1 / tinyPow(5, k));\r\n x = taylorSeries(Ctor, 2, x, x);\r\n\r\n // Reverse argument reduction\r\n var sin2_x,\r\n d5 = new Ctor(5),\r\n d16 = new Ctor(16),\r\n d20 = new Ctor(20);\r\n for (; k--;) {\r\n sin2_x = x.times(x);\r\n x = x.times(d5.plus(sin2_x.times(d16.times(sin2_x).minus(d20))));\r\n }\r\n\r\n return x;\r\n}\r\n\r\n\r\n// Calculate Taylor series for `cos`, `cosh`, `sin` and `sinh`.\r\nfunction taylorSeries(Ctor, n, x, y, isHyperbolic) {\r\n var j, t, u, x2,\r\n i = 1,\r\n pr = Ctor.precision,\r\n k = Math.ceil(pr / LOG_BASE);\r\n\r\n external = false;\r\n x2 = x.times(x);\r\n u = new Ctor(y);\r\n\r\n for (;;) {\r\n t = divide(u.times(x2), new Ctor(n++ * n++), pr, 1);\r\n u = isHyperbolic ? y.plus(t) : y.minus(t);\r\n y = divide(t.times(x2), new Ctor(n++ * n++), pr, 1);\r\n t = u.plus(y);\r\n\r\n if (t.d[k] !== void 0) {\r\n for (j = k; t.d[j] === u.d[j] && j--;);\r\n if (j == -1) break;\r\n }\r\n\r\n j = u;\r\n u = y;\r\n y = t;\r\n t = j;\r\n i++;\r\n }\r\n\r\n external = true;\r\n t.d.length = k + 1;\r\n\r\n return t;\r\n}\r\n\r\n\r\n// Exponent e must be positive and non-zero.\r\nfunction tinyPow(b, e) {\r\n var n = b;\r\n while (--e) n *= b;\r\n return n;\r\n}\r\n\r\n\r\n// Return the absolute value of `x` reduced to less than or equal to half pi.\r\nfunction toLessThanHalfPi(Ctor, x) {\r\n var t,\r\n isNeg = x.s < 0,\r\n pi = getPi(Ctor, Ctor.precision, 1),\r\n halfPi = pi.times(0.5);\r\n\r\n x = x.abs();\r\n\r\n if (x.lte(halfPi)) {\r\n quadrant = isNeg ? 4 : 1;\r\n return x;\r\n }\r\n\r\n t = x.divToInt(pi);\r\n\r\n if (t.isZero()) {\r\n quadrant = isNeg ? 3 : 2;\r\n } else {\r\n x = x.minus(t.times(pi));\r\n\r\n // 0 <= x < pi\r\n if (x.lte(halfPi)) {\r\n quadrant = isOdd(t) ? (isNeg ? 2 : 3) : (isNeg ? 4 : 1);\r\n return x;\r\n }\r\n\r\n quadrant = isOdd(t) ? (isNeg ? 1 : 4) : (isNeg ? 3 : 2);\r\n }\r\n\r\n return x.minus(pi).abs();\r\n}\r\n\r\n\r\n/*\r\n * Return the value of Decimal `x` as a string in base `baseOut`.\r\n *\r\n * If the optional `sd` argument is present include a binary exponent suffix.\r\n */\r\nfunction toStringBinary(x, baseOut, sd, rm) {\r\n var base, e, i, k, len, roundUp, str, xd, y,\r\n Ctor = x.constructor,\r\n isExp = sd !== void 0;\r\n\r\n if (isExp) {\r\n checkInt32(sd, 1, MAX_DIGITS);\r\n if (rm === void 0) rm = Ctor.rounding;\r\n else checkInt32(rm, 0, 8);\r\n } else {\r\n sd = Ctor.precision;\r\n rm = Ctor.rounding;\r\n }\r\n\r\n if (!x.isFinite()) {\r\n str = nonFiniteToString(x);\r\n } else {\r\n str = finiteToString(x);\r\n i = str.indexOf('.');\r\n\r\n // Use exponential notation according to `toExpPos` and `toExpNeg`? No, but if required:\r\n // maxBinaryExponent = floor((decimalExponent + 1) * log[2](10))\r\n // minBinaryExponent = floor(decimalExponent * log[2](10))\r\n // log[2](10) = 3.321928094887362347870319429489390175864\r\n\r\n if (isExp) {\r\n base = 2;\r\n if (baseOut == 16) {\r\n sd = sd * 4 - 3;\r\n } else if (baseOut == 8) {\r\n sd = sd * 3 - 2;\r\n }\r\n } else {\r\n base = baseOut;\r\n }\r\n\r\n // Convert the number as an integer then divide the result by its base raised to a power such\r\n // that the fraction part will be restored.\r\n\r\n // Non-integer.\r\n if (i >= 0) {\r\n str = str.replace('.', '');\r\n y = new Ctor(1);\r\n y.e = str.length - i;\r\n y.d = convertBase(finiteToString(y), 10, base);\r\n y.e = y.d.length;\r\n }\r\n\r\n xd = convertBase(str, 10, base);\r\n e = len = xd.length;\r\n\r\n // Remove trailing zeros.\r\n for (; xd[--len] == 0;) xd.pop();\r\n\r\n if (!xd[0]) {\r\n str = isExp ? '0p+0' : '0';\r\n } else {\r\n if (i < 0) {\r\n e--;\r\n } else {\r\n x = new Ctor(x);\r\n x.d = xd;\r\n x.e = e;\r\n x = divide(x, y, sd, rm, 0, base);\r\n xd = x.d;\r\n e = x.e;\r\n roundUp = inexact;\r\n }\r\n\r\n // The rounding digit, i.e. the digit after the digit that may be rounded up.\r\n i = xd[sd];\r\n k = base / 2;\r\n roundUp = roundUp || xd[sd + 1] !== void 0;\r\n\r\n roundUp = rm < 4\r\n ? (i !== void 0 || roundUp) && (rm === 0 || rm === (x.s < 0 ? 3 : 2))\r\n : i > k || i === k && (rm === 4 || roundUp || rm === 6 && xd[sd - 1] & 1 ||\r\n rm === (x.s < 0 ? 8 : 7));\r\n\r\n xd.length = sd;\r\n\r\n if (roundUp) {\r\n\r\n // Rounding up may mean the previous digit has to be rounded up and so on.\r\n for (; ++xd[--sd] > base - 1;) {\r\n xd[sd] = 0;\r\n if (!sd) {\r\n ++e;\r\n xd.unshift(1);\r\n }\r\n }\r\n }\r\n\r\n // Determine trailing zeros.\r\n for (len = xd.length; !xd[len - 1]; --len);\r\n\r\n // E.g. [4, 11, 15] becomes 4bf.\r\n for (i = 0, str = ''; i < len; i++) str += NUMERALS.charAt(xd[i]);\r\n\r\n // Add binary exponent suffix?\r\n if (isExp) {\r\n if (len > 1) {\r\n if (baseOut == 16 || baseOut == 8) {\r\n i = baseOut == 16 ? 4 : 3;\r\n for (--len; len % i; len++) str += '0';\r\n xd = convertBase(str, base, baseOut);\r\n for (len = xd.length; !xd[len - 1]; --len);\r\n\r\n // xd[0] will always be be 1\r\n for (i = 1, str = '1.'; i < len; i++) str += NUMERALS.charAt(xd[i]);\r\n } else {\r\n str = str.charAt(0) + '.' + str.slice(1);\r\n }\r\n }\r\n\r\n str = str + (e < 0 ? 'p' : 'p+') + e;\r\n } else if (e < 0) {\r\n for (; ++e;) str = '0' + str;\r\n str = '0.' + str;\r\n } else {\r\n if (++e > len) for (e -= len; e-- ;) str += '0';\r\n else if (e < len) str = str.slice(0, e) + '.' + str.slice(e);\r\n }\r\n }\r\n\r\n str = (baseOut == 16 ? '0x' : baseOut == 2 ? '0b' : baseOut == 8 ? '0o' : '') + str;\r\n }\r\n\r\n return x.s < 0 ? '-' + str : str;\r\n}\r\n\r\n\r\n// Does not strip trailing zeros.\r\nfunction truncate(arr, len) {\r\n if (arr.length > len) {\r\n arr.length = len;\r\n return true;\r\n }\r\n}\r\n\r\n\r\n// Decimal methods\r\n\r\n\r\n/*\r\n * abs\r\n * acos\r\n * acosh\r\n * add\r\n * asin\r\n * asinh\r\n * atan\r\n * atanh\r\n * atan2\r\n * cbrt\r\n * ceil\r\n * clamp\r\n * clone\r\n * config\r\n * cos\r\n * cosh\r\n * div\r\n * exp\r\n * floor\r\n * hypot\r\n * ln\r\n * log\r\n * log2\r\n * log10\r\n * max\r\n * min\r\n * mod\r\n * mul\r\n * pow\r\n * random\r\n * round\r\n * set\r\n * sign\r\n * sin\r\n * sinh\r\n * sqrt\r\n * sub\r\n * sum\r\n * tan\r\n * tanh\r\n * trunc\r\n */\r\n\r\n\r\n/*\r\n * Return a new Decimal whose value is the absolute value of `x`.\r\n *\r\n * x {number|string|bigint|Decimal}\r\n *\r\n */\r\nfunction abs(x) {\r\n return new this(x).abs();\r\n}\r\n\r\n\r\n/*\r\n * Return a new Decimal whose value is the arccosine in radians of `x`.\r\n *\r\n * x {number|string|bigint|Decimal}\r\n *\r\n */\r\nfunction acos(x) {\r\n return new this(x).acos();\r\n}\r\n\r\n\r\n/*\r\n * Return a new Decimal whose value is the inverse of the hyperbolic cosine of `x`, rounded to\r\n * `precision` significant digits using rounding mode `rounding`.\r\n *\r\n * x {number|string|bigint|Decimal} A value in radians.\r\n *\r\n */\r\nfunction acosh(x) {\r\n return new this(x).acosh();\r\n}\r\n\r\n\r\n/*\r\n * Return a new Decimal whose value is the sum of `x` and `y`, rounded to `precision` significant\r\n * digits using rounding mode `rounding`.\r\n *\r\n * x {number|string|bigint|Decimal}\r\n * y {number|string|bigint|Decimal}\r\n *\r\n */\r\nfunction add(x, y) {\r\n return new this(x).plus(y);\r\n}\r\n\r\n\r\n/*\r\n * Return a new Decimal whose value is the arcsine in radians of `x`, rounded to `precision`\r\n * significant digits using rounding mode `rounding`.\r\n *\r\n * x {number|string|bigint|Decimal}\r\n *\r\n */\r\nfunction asin(x) {\r\n return new this(x).asin();\r\n}\r\n\r\n\r\n/*\r\n * Return a new Decimal whose value is the inverse of the hyperbolic sine of `x`, rounded to\r\n * `precision` significant digits using rounding mode `rounding`.\r\n *\r\n * x {number|string|bigint|Decimal} A value in radians.\r\n *\r\n */\r\nfunction asinh(x) {\r\n return new this(x).asinh();\r\n}\r\n\r\n\r\n/*\r\n * Return a new Decimal whose value is the arctangent in radians of `x`, rounded to `precision`\r\n * significant digits using rounding mode `rounding`.\r\n *\r\n * x {number|string|bigint|Decimal}\r\n *\r\n */\r\nfunction atan(x) {\r\n return new this(x).atan();\r\n}\r\n\r\n\r\n/*\r\n * Return a new Decimal whose value is the inverse of the hyperbolic tangent of `x`, rounded to\r\n * `precision` significant digits using rounding mode `rounding`.\r\n *\r\n * x {number|string|bigint|Decimal} A value in radians.\r\n *\r\n */\r\nfunction atanh(x) {\r\n return new this(x).atanh();\r\n}\r\n\r\n\r\n/*\r\n * Return a new Decimal whose value is the arctangent in radians of `y/x` in the range -pi to pi\r\n * (inclusive), rounded to `precision` significant digits using rounding mode `rounding`.\r\n *\r\n * Domain: [-Infinity, Infinity]\r\n * Range: [-pi, pi]\r\n *\r\n * y {number|string|bigint|Decimal} The y-coordinate.\r\n * x {number|string|bigint|Decimal} The x-coordinate.\r\n *\r\n * atan2(±0, -0) = ±pi\r\n * atan2(±0, +0) = ±0\r\n * atan2(±0, -x) = ±pi for x > 0\r\n * atan2(±0, x) = ±0 for x > 0\r\n * atan2(-y, ±0) = -pi/2 for y > 0\r\n * atan2(y, ±0) = pi/2 for y > 0\r\n * atan2(±y, -Infinity) = ±pi for finite y > 0\r\n * atan2(±y, +Infinity) = ±0 for finite y > 0\r\n * atan2(±Infinity, x) = ±pi/2 for finite x\r\n * atan2(±Infinity, -Infinity) = ±3*pi/4\r\n * atan2(±Infinity, +Infinity) = ±pi/4\r\n * atan2(NaN, x) = NaN\r\n * atan2(y, NaN) = NaN\r\n *\r\n */\r\nfunction atan2(y, x) {\r\n y = new this(y);\r\n x = new this(x);\r\n var r,\r\n pr = this.precision,\r\n rm = this.rounding,\r\n wpr = pr + 4;\r\n\r\n // Either NaN\r\n if (!y.s || !x.s) {\r\n r = new this(NaN);\r\n\r\n // Both ±Infinity\r\n } else if (!y.d && !x.d) {\r\n r = getPi(this, wpr, 1).times(x.s > 0 ? 0.25 : 0.75);\r\n r.s = y.s;\r\n\r\n // x is ±Infinity or y is ±0\r\n } else if (!x.d || y.isZero()) {\r\n r = x.s < 0 ? getPi(this, pr, rm) : new this(0);\r\n r.s = y.s;\r\n\r\n // y is ±Infinity or x is ±0\r\n } else if (!y.d || x.isZero()) {\r\n r = getPi(this, wpr, 1).times(0.5);\r\n r.s = y.s;\r\n\r\n // Both non-zero and finite\r\n } else if (x.s < 0) {\r\n this.precision = wpr;\r\n this.rounding = 1;\r\n r = this.atan(divide(y, x, wpr, 1));\r\n x = getPi(this, wpr, 1);\r\n this.precision = pr;\r\n this.rounding = rm;\r\n r = y.s < 0 ? r.minus(x) : r.plus(x);\r\n } else {\r\n r = this.atan(divide(y, x, wpr, 1));\r\n }\r\n\r\n return r;\r\n}\r\n\r\n\r\n/*\r\n * Return a new Decimal whose value is the cube root of `x`, rounded to `precision` significant\r\n * digits using rounding mode `rounding`.\r\n *\r\n * x {number|string|bigint|Decimal}\r\n *\r\n */\r\nfunction cbrt(x) {\r\n return new this(x).cbrt();\r\n}\r\n\r\n\r\n/*\r\n * Return a new Decimal whose value is `x` rounded to an integer using `ROUND_CEIL`.\r\n *\r\n * x {number|string|bigint|Decimal}\r\n *\r\n */\r\nfunction ceil(x) {\r\n return finalise(x = new this(x), x.e + 1, 2);\r\n}\r\n\r\n\r\n/*\r\n * Return a new Decimal whose value is `x` clamped to the range delineated by `min` and `max`.\r\n *\r\n * x {number|string|bigint|Decimal}\r\n * min {number|string|bigint|Decimal}\r\n * max {number|string|bigint|Decimal}\r\n *\r\n */\r\nfunction clamp(x, min, max) {\r\n return new this(x).clamp(min, max);\r\n}\r\n\r\n\r\n/*\r\n * Configure global settings for a Decimal constructor.\r\n *\r\n * `obj` is an object with one or more of the following properties,\r\n *\r\n * precision {number}\r\n * rounding {number}\r\n * toExpNeg {number}\r\n * toExpPos {number}\r\n * maxE {number}\r\n * minE {number}\r\n * modulo {number}\r\n * crypto {boolean|number}\r\n * defaults {true}\r\n *\r\n * E.g. Decimal.config({ precision: 20, rounding: 4 })\r\n *\r\n */\r\nfunction config(obj) {\r\n if (!obj || typeof obj !== 'object') throw Error(decimalError + 'Object expected');\r\n var i, p, v,\r\n useDefaults = obj.defaults === true,\r\n ps = [\r\n 'precision', 1, MAX_DIGITS,\r\n 'rounding', 0, 8,\r\n 'toExpNeg', -EXP_LIMIT, 0,\r\n 'toExpPos', 0, EXP_LIMIT,\r\n 'maxE', 0, EXP_LIMIT,\r\n 'minE', -EXP_LIMIT, 0,\r\n 'modulo', 0, 9\r\n ];\r\n\r\n for (i = 0; i < ps.length; i += 3) {\r\n if (p = ps[i], useDefaults) this[p] = DEFAULTS[p];\r\n if ((v = obj[p]) !== void 0) {\r\n if (mathfloor(v) === v && v >= ps[i + 1] && v <= ps[i + 2]) this[p] = v;\r\n else throw Error(invalidArgument + p + ': ' + v);\r\n }\r\n }\r\n\r\n if (p = 'crypto', useDefaults) this[p] = DEFAULTS[p];\r\n if ((v = obj[p]) !== void 0) {\r\n if (v === true || v === false || v === 0 || v === 1) {\r\n if (v) {\r\n if (typeof crypto != 'undefined' && crypto &&\r\n (crypto.getRandomValues || crypto.randomBytes)) {\r\n this[p] = true;\r\n } else {\r\n throw Error(cryptoUnavailable);\r\n }\r\n } else {\r\n this[p] = false;\r\n }\r\n } else {\r\n throw Error(invalidArgument + p + ': ' + v);\r\n }\r\n }\r\n\r\n return this;\r\n}\r\n\r\n\r\n/*\r\n * Return a new Decimal whose value is the cosine of `x`, rounded to `precision` significant\r\n * digits using rounding mode `rounding`.\r\n *\r\n * x {number|string|bigint|Decimal} A value in radians.\r\n *\r\n */\r\nfunction cos(x) {\r\n return new this(x).cos();\r\n}\r\n\r\n\r\n/*\r\n * Return a new Decimal whose value is the hyperbolic cosine of `x`, rounded to precision\r\n * significant digits using rounding mode `rounding`.\r\n *\r\n * x {number|string|bigint|Decimal} A value in radians.\r\n *\r\n */\r\nfunction cosh(x) {\r\n return new this(x).cosh();\r\n}\r\n\r\n\r\n/*\r\n * Create and return a Decimal constructor with the same configuration properties as this Decimal\r\n * constructor.\r\n *\r\n */\r\nfunction clone(obj) {\r\n var i, p, ps;\r\n\r\n /*\r\n * The Decimal constructor and exported function.\r\n * Return a new Decimal instance.\r\n *\r\n * v {number|string|bigint|Decimal} A numeric value.\r\n *\r\n */\r\n function Decimal(v) {\r\n var e, i, t,\r\n x = this;\r\n\r\n // Decimal called without new.\r\n if (!(x instanceof Decimal)) return new Decimal(v);\r\n\r\n // Retain a reference to this Decimal constructor, and shadow Decimal.prototype.constructor\r\n // which points to Object.\r\n x.constructor = Decimal;\r\n\r\n if (isDecimalInstance(v)) {\r\n x.s = v.s;\r\n\r\n if (external) {\r\n if (!v.d || v.e > Decimal.maxE) {\r\n\r\n // Infinity.\r\n x.e = NaN;\r\n x.d = null;\r\n } else if (v.e < Decimal.minE) {\r\n\r\n // Zero.\r\n x.e = 0;\r\n x.d = [0];\r\n } else {\r\n x.e = v.e;\r\n x.d = v.d.slice();\r\n }\r\n } else {\r\n x.e = v.e;\r\n x.d = v.d ? v.d.slice() : v.d;\r\n }\r\n\r\n return;\r\n }\r\n\r\n t = typeof v;\r\n\r\n if (t === 'number') {\r\n if (v === 0) {\r\n x.s = 1 / v < 0 ? -1 : 1;\r\n x.e = 0;\r\n x.d = [0];\r\n return;\r\n }\r\n\r\n if (v < 0) {\r\n v = -v;\r\n x.s = -1;\r\n } else {\r\n x.s = 1;\r\n }\r\n\r\n // Fast path for small integers.\r\n if (v === ~~v && v < 1e7) {\r\n for (e = 0, i = v; i >= 10; i /= 10) e++;\r\n\r\n if (external) {\r\n if (e > Decimal.maxE) {\r\n x.e = NaN;\r\n x.d = null;\r\n } else if (e < Decimal.minE) {\r\n x.e = 0;\r\n x.d = [0];\r\n } else {\r\n x.e = e;\r\n x.d = [v];\r\n }\r\n } else {\r\n x.e = e;\r\n x.d = [v];\r\n }\r\n\r\n return;\r\n }\r\n\r\n // Infinity or NaN?\r\n if (v * 0 !== 0) {\r\n if (!v) x.s = NaN;\r\n x.e = NaN;\r\n x.d = null;\r\n return;\r\n }\r\n\r\n return parseDecimal(x, v.toString());\r\n }\r\n\r\n if (t === 'string') {\r\n if ((i = v.charCodeAt(0)) === 45) { // minus sign\r\n v = v.slice(1);\r\n x.s = -1;\r\n } else {\r\n if (i === 43) v = v.slice(1); // plus sign\r\n x.s = 1;\r\n }\r\n\r\n return isDecimal.test(v) ? parseDecimal(x, v) : parseOther(x, v);\r\n }\r\n\r\n if (t === 'bigint') {\r\n if (v < 0) {\r\n v = -v;\r\n x.s = -1;\r\n } else {\r\n x.s = 1;\r\n }\r\n\r\n return parseDecimal(x, v.toString());\r\n }\r\n\r\n throw Error(invalidArgument + v);\r\n }\r\n\r\n Decimal.prototype = P;\r\n\r\n Decimal.ROUND_UP = 0;\r\n Decimal.ROUND_DOWN = 1;\r\n Decimal.ROUND_CEIL = 2;\r\n Decimal.ROUND_FLOOR = 3;\r\n Decimal.ROUND_HALF_UP = 4;\r\n Decimal.ROUND_HALF_DOWN = 5;\r\n Decimal.ROUND_HALF_EVEN = 6;\r\n Decimal.ROUND_HALF_CEIL = 7;\r\n Decimal.ROUND_HALF_FLOOR = 8;\r\n Decimal.EUCLID = 9;\r\n\r\n Decimal.config = Decimal.set = config;\r\n Decimal.clone = clone;\r\n Decimal.isDecimal = isDecimalInstance;\r\n\r\n Decimal.abs = abs;\r\n Decimal.acos = acos;\r\n Decimal.acosh = acosh; // ES6\r\n Decimal.add = add;\r\n Decimal.asin = asin;\r\n Decimal.asinh = asinh; // ES6\r\n Decimal.atan = atan;\r\n Decimal.atanh = atanh; // ES6\r\n Decimal.atan2 = atan2;\r\n Decimal.cbrt = cbrt; // ES6\r\n Decimal.ceil = ceil;\r\n Decimal.clamp = clamp;\r\n Decimal.cos = cos;\r\n Decimal.cosh = cosh; // ES6\r\n Decimal.div = div;\r\n Decimal.exp = exp;\r\n Decimal.floor = floor;\r\n Decimal.hypot = hypot; // ES6\r\n Decimal.ln = ln;\r\n Decimal.log = log;\r\n Decimal.log10 = log10; // ES6\r\n Decimal.log2 = log2; // ES6\r\n Decimal.max = max;\r\n Decimal.min = min;\r\n Decimal.mod = mod;\r\n Decimal.mul = mul;\r\n Decimal.pow = pow;\r\n Decimal.random = random;\r\n Decimal.round = round;\r\n Decimal.sign = sign; // ES6\r\n Decimal.sin = sin;\r\n Decimal.sinh = sinh; // ES6\r\n Decimal.sqrt = sqrt;\r\n Decimal.sub = sub;\r\n Decimal.sum = sum;\r\n Decimal.tan = tan;\r\n Decimal.tanh = tanh; // ES6\r\n Decimal.trunc = trunc; // ES6\r\n\r\n if (obj === void 0) obj = {};\r\n if (obj) {\r\n if (obj.defaults !== true) {\r\n ps = ['precision', 'rounding', 'toExpNeg', 'toExpPos', 'maxE', 'minE', 'modulo', 'crypto'];\r\n for (i = 0; i < ps.length;) if (!obj.hasOwnProperty(p = ps[i++])) obj[p] = this[p];\r\n }\r\n }\r\n\r\n Decimal.config(obj);\r\n\r\n return Decimal;\r\n}\r\n\r\n\r\n/*\r\n * Return a new Decimal whose value is `x` divided by `y`, rounded to `precision` significant\r\n * digits using rounding mode `rounding`.\r\n *\r\n * x {number|string|bigint|Decimal}\r\n * y {number|string|bigint|Decimal}\r\n *\r\n */\r\nfunction div(x, y) {\r\n return new this(x).div(y);\r\n}\r\n\r\n\r\n/*\r\n * Return a new Decimal whose value is the natural exponential of `x`, rounded to `precision`\r\n * significant digits using rounding mode `rounding`.\r\n *\r\n * x {number|string|bigint|Decimal} The power to which to raise the base of the natural log.\r\n *\r\n */\r\nfunction exp(x) {\r\n return new this(x).exp();\r\n}\r\n\r\n\r\n/*\r\n * Return a new Decimal whose value is `x` round to an integer using `ROUND_FLOOR`.\r\n *\r\n * x {number|string|bigint|Decimal}\r\n *\r\n */\r\nfunction floor(x) {\r\n return finalise(x = new this(x), x.e + 1, 3);\r\n}\r\n\r\n\r\n/*\r\n * Return a new Decimal whose value is the square root of the sum of the squares of the arguments,\r\n * rounded to `precision` significant digits using rounding mode `rounding`.\r\n *\r\n * hypot(a, b, ...) = sqrt(a^2 + b^2 + ...)\r\n *\r\n * arguments {number|string|bigint|Decimal}\r\n *\r\n */\r\nfunction hypot() {\r\n var i, n,\r\n t = new this(0);\r\n\r\n external = false;\r\n\r\n for (i = 0; i < arguments.length;) {\r\n n = new this(arguments[i++]);\r\n if (!n.d) {\r\n if (n.s) {\r\n external = true;\r\n return new this(1 / 0);\r\n }\r\n t = n;\r\n } else if (t.d) {\r\n t = t.plus(n.times(n));\r\n }\r\n }\r\n\r\n external = true;\r\n\r\n return t.sqrt();\r\n}\r\n\r\n\r\n/*\r\n * Return true if object is a Decimal instance (where Decimal is any Decimal constructor),\r\n * otherwise return false.\r\n *\r\n */\r\nfunction isDecimalInstance(obj) {\r\n return obj instanceof Decimal || obj && obj.toStringTag === tag || false;\r\n}\r\n\r\n\r\n/*\r\n * Return a new Decimal whose value is the natural logarithm of `x`, rounded to `precision`\r\n * significant digits using rounding mode `rounding`.\r\n *\r\n * x {number|string|bigint|Decimal}\r\n *\r\n */\r\nfunction ln(x) {\r\n return new this(x).ln();\r\n}\r\n\r\n\r\n/*\r\n * Return a new Decimal whose value is the log of `x` to the base `y`, or to base 10 if no base\r\n * is specified, rounded to `precision` significant digits using rounding mode `rounding`.\r\n *\r\n * log[y](x)\r\n *\r\n * x {number|string|bigint|Decimal} The argument of the logarithm.\r\n * y {number|string|bigint|Decimal} The base of the logarithm.\r\n *\r\n */\r\nfunction log(x, y) {\r\n return new this(x).log(y);\r\n}\r\n\r\n\r\n/*\r\n * Return a new Decimal whose value is the base 2 logarithm of `x`, rounded to `precision`\r\n * significant digits using rounding mode `rounding`.\r\n *\r\n * x {number|string|bigint|Decimal}\r\n *\r\n */\r\nfunction log2(x) {\r\n return new this(x).log(2);\r\n}\r\n\r\n\r\n/*\r\n * Return a new Decimal whose value is the base 10 logarithm of `x`, rounded to `precision`\r\n * significant digits using rounding mode `rounding`.\r\n *\r\n * x {number|string|bigint|Decimal}\r\n *\r\n */\r\nfunction log10(x) {\r\n return new this(x).log(10);\r\n}\r\n\r\n\r\n/*\r\n * Return a new Decimal whose value is the maximum of the arguments.\r\n *\r\n * arguments {number|string|bigint|Decimal}\r\n *\r\n */\r\nfunction max() {\r\n return maxOrMin(this, arguments, -1);\r\n}\r\n\r\n\r\n/*\r\n * Return a new Decimal whose value is the minimum of the arguments.\r\n *\r\n * arguments {number|string|bigint|Decimal}\r\n *\r\n */\r\nfunction min() {\r\n return maxOrMin(this, arguments, 1);\r\n}\r\n\r\n\r\n/*\r\n * Return a new Decimal whose value is `x` modulo `y`, rounded to `precision` significant digits\r\n * using rounding mode `rounding`.\r\n *\r\n * x {number|string|bigint|Decimal}\r\n * y {number|string|bigint|Decimal}\r\n *\r\n */\r\nfunction mod(x, y) {\r\n return new this(x).mod(y);\r\n}\r\n\r\n\r\n/*\r\n * Return a new Decimal whose value is `x` multiplied by `y`, rounded to `precision` significant\r\n * digits using rounding mode `rounding`.\r\n *\r\n * x {number|string|bigint|Decimal}\r\n * y {number|string|bigint|Decimal}\r\n *\r\n */\r\nfunction mul(x, y) {\r\n return new this(x).mul(y);\r\n}\r\n\r\n\r\n/*\r\n * Return a new Decimal whose value is `x` raised to the power `y`, rounded to precision\r\n * significant digits using rounding mode `rounding`.\r\n *\r\n * x {number|string|bigint|Decimal} The base.\r\n * y {number|string|bigint|Decimal} The exponent.\r\n *\r\n */\r\nfunction pow(x, y) {\r\n return new this(x).pow(y);\r\n}\r\n\r\n\r\n/*\r\n * Returns a new Decimal with a random value equal to or greater than 0 and less than 1, and with\r\n * `sd`, or `Decimal.precision` if `sd` is omitted, significant digits (or less if trailing zeros\r\n * are produced).\r\n *\r\n * [sd] {number} Significant digits. Integer, 0 to MAX_DIGITS inclusive.\r\n *\r\n */\r\nfunction random(sd) {\r\n var d, e, k, n,\r\n i = 0,\r\n r = new this(1),\r\n rd = [];\r\n\r\n if (sd === void 0) sd = this.precision;\r\n else checkInt32(sd, 1, MAX_DIGITS);\r\n\r\n k = Math.ceil(sd / LOG_BASE);\r\n\r\n if (!this.crypto) {\r\n for (; i < k;) rd[i++] = Math.random() * 1e7 | 0;\r\n\r\n // Browsers supporting crypto.getRandomValues.\r\n } else if (crypto.getRandomValues) {\r\n d = crypto.getRandomValues(new Uint32Array(k));\r\n\r\n for (; i < k;) {\r\n n = d[i];\r\n\r\n // 0 <= n < 4294967296\r\n // Probability n >= 4.29e9, is 4967296 / 4294967296 = 0.00116 (1 in 865).\r\n if (n >= 4.29e9) {\r\n d[i] = crypto.getRandomValues(new Uint32Array(1))[0];\r\n } else {\r\n\r\n // 0 <= n <= 4289999999\r\n // 0 <= (n % 1e7) <= 9999999\r\n rd[i++] = n % 1e7;\r\n }\r\n }\r\n\r\n // Node.js supporting crypto.randomBytes.\r\n } else if (crypto.randomBytes) {\r\n\r\n // buffer\r\n d = crypto.randomBytes(k *= 4);\r\n\r\n for (; i < k;) {\r\n\r\n // 0 <= n < 2147483648\r\n n = d[i] + (d[i + 1] << 8) + (d[i + 2] << 16) + ((d[i + 3] & 0x7f) << 24);\r\n\r\n // Probability n >= 2.14e9, is 7483648 / 2147483648 = 0.0035 (1 in 286).\r\n if (n >= 2.14e9) {\r\n crypto.randomBytes(4).copy(d, i);\r\n } else {\r\n\r\n // 0 <= n <= 2139999999\r\n // 0 <= (n % 1e7) <= 9999999\r\n rd.push(n % 1e7);\r\n i += 4;\r\n }\r\n }\r\n\r\n i = k / 4;\r\n } else {\r\n throw Error(cryptoUnavailable);\r\n }\r\n\r\n k = rd[--i];\r\n sd %= LOG_BASE;\r\n\r\n // Convert trailing digits to zeros according to sd.\r\n if (k && sd) {\r\n n = mathpow(10, LOG_BASE - sd);\r\n rd[i] = (k / n | 0) * n;\r\n }\r\n\r\n // Remove trailing words which are zero.\r\n for (; rd[i] === 0; i--) rd.pop();\r\n\r\n // Zero?\r\n if (i < 0) {\r\n e = 0;\r\n rd = [0];\r\n } else {\r\n e = -1;\r\n\r\n // Remove leading words which are zero and adjust exponent accordingly.\r\n for (; rd[0] === 0; e -= LOG_BASE) rd.shift();\r\n\r\n // Count the digits of the first word of rd to determine leading zeros.\r\n for (k = 1, n = rd[0]; n >= 10; n /= 10) k++;\r\n\r\n // Adjust the exponent for leading zeros of the first word of rd.\r\n if (k < LOG_BASE) e -= LOG_BASE - k;\r\n }\r\n\r\n r.e = e;\r\n r.d = rd;\r\n\r\n return r;\r\n}\r\n\r\n\r\n/*\r\n * Return a new Decimal whose value is `x` rounded to an integer using rounding mode `rounding`.\r\n *\r\n * To emulate `Math.round`, set rounding to 7 (ROUND_HALF_CEIL).\r\n *\r\n * x {number|string|bigint|Decimal}\r\n *\r\n */\r\nfunction round(x) {\r\n return finalise(x = new this(x), x.e + 1, this.rounding);\r\n}\r\n\r\n\r\n/*\r\n * Return\r\n * 1 if x > 0,\r\n * -1 if x < 0,\r\n * 0 if x is 0,\r\n * -0 if x is -0,\r\n * NaN otherwise\r\n *\r\n * x {number|string|bigint|Decimal}\r\n *\r\n */\r\nfunction sign(x) {\r\n x = new this(x);\r\n return x.d ? (x.d[0] ? x.s : 0 * x.s) : x.s || NaN;\r\n}\r\n\r\n\r\n/*\r\n * Return a new Decimal whose value is the sine of `x`, rounded to `precision` significant digits\r\n * using rounding mode `rounding`.\r\n *\r\n * x {number|string|bigint|Decimal} A value in radians.\r\n *\r\n */\r\nfunction sin(x) {\r\n return new this(x).sin();\r\n}\r\n\r\n\r\n/*\r\n * Return a new Decimal whose value is the hyperbolic sine of `x`, rounded to `precision`\r\n * significant digits using rounding mode `rounding`.\r\n *\r\n * x {number|string|bigint|Decimal} A value in radians.\r\n *\r\n */\r\nfunction sinh(x) {\r\n return new this(x).sinh();\r\n}\r\n\r\n\r\n/*\r\n * Return a new Decimal whose value is the square root of `x`, rounded to `precision` significant\r\n * digits using rounding mode `rounding`.\r\n *\r\n * x {number|string|bigint|Decimal}\r\n *\r\n */\r\nfunction sqrt(x) {\r\n return new this(x).sqrt();\r\n}\r\n\r\n\r\n/*\r\n * Return a new Decimal whose value is `x` minus `y`, rounded to `precision` significant digits\r\n * using rounding mode `rounding`.\r\n *\r\n * x {number|string|bigint|Decimal}\r\n * y {number|string|bigint|Decimal}\r\n *\r\n */\r\nfunction sub(x, y) {\r\n return new this(x).sub(y);\r\n}\r\n\r\n\r\n/*\r\n * Return a new Decimal whose value is the sum of the arguments, rounded to `precision`\r\n * significant digits using rounding mode `rounding`.\r\n *\r\n * Only the result is rounded, not the intermediate calculations.\r\n *\r\n * arguments {number|string|bigint|Decimal}\r\n *\r\n */\r\nfunction sum() {\r\n var i = 0,\r\n args = arguments,\r\n x = new this(args[i]);\r\n\r\n external = false;\r\n for (; x.s && ++i < args.length;) x = x.plus(args[i]);\r\n external = true;\r\n\r\n return finalise(x, this.precision, this.rounding);\r\n}\r\n\r\n\r\n/*\r\n * Return a new Decimal whose value is the tangent of `x`, rounded to `precision` significant\r\n * digits using rounding mode `rounding`.\r\n *\r\n * x {number|string|bigint|Decimal} A value in radians.\r\n *\r\n */\r\nfunction tan(x) {\r\n return new this(x).tan();\r\n}\r\n\r\n\r\n/*\r\n * Return a new Decimal whose value is the hyperbolic tangent of `x`, rounded to `precision`\r\n * significant digits using rounding mode `rounding`.\r\n *\r\n * x {number|string|bigint|Decimal} A value in radians.\r\n *\r\n */\r\nfunction tanh(x) {\r\n return new this(x).tanh();\r\n}\r\n\r\n\r\n/*\r\n * Return a new Decimal whose value is `x` truncated to an integer.\r\n *\r\n * x {number|string|bigint|Decimal}\r\n *\r\n */\r\nfunction trunc(x) {\r\n return finalise(x = new this(x), x.e + 1, 1);\r\n}\r\n\r\n\r\nP[Symbol.for('nodejs.util.inspect.custom')] = P.toString;\r\nP[Symbol.toStringTag] = 'Decimal';\r\n\r\n// Create and configure initial Decimal constructor.\r\nexport var Decimal = P.constructor = clone(DEFAULTS);\r\n\r\n// Create the internal constants from their string values.\r\nLN10 = new Decimal(LN10);\r\nPI = new Decimal(PI);\r\n\r\nexport default Decimal;\r\n","export function qtiNull(baseType, cardinality) {\n return { kind: 'null', baseType, cardinality };\n}\nexport function qtiInvalid(message, baseType, cardinality) {\n return { kind: 'invalid', message, baseType, cardinality };\n}\nexport function qtiValue(baseType, cardinality, value) {\n return baseType === undefined\n ? { kind: 'value', cardinality, value }\n : { kind: 'value', baseType, cardinality, value };\n}\nexport function isNull(v) {\n return v.kind === 'null';\n}\nexport function isInvalid(v) {\n return v.kind === 'invalid';\n}\nexport function toBoolean(v) {\n if (v.kind === 'invalid')\n return false;\n if (v.kind === 'null')\n return false;\n // QTI boolean-context coercion:\n // - containers (multiple/ordered): true iff non-empty\n // - numbers: true iff non-zero\n // - strings/identifiers/uris: true iff non-empty\n // - otherwise: JS truthiness of the stored value\n const raw = v.value;\n if (v.cardinality === 'multiple' || v.cardinality === 'ordered') {\n return Array.isArray(raw) ? raw.length > 0 : Boolean(raw);\n }\n if (v.baseType === 'boolean')\n return Boolean(raw);\n if (v.baseType === 'integer' || v.baseType === 'float')\n return typeof raw === 'number' ? raw !== 0 : Number(raw) !== 0;\n if (v.baseType === 'string' ||\n v.baseType === 'identifier' ||\n v.baseType === 'uri' ||\n v.baseType === 'pair' ||\n v.baseType === 'directedPair' ||\n v.baseType === 'point' ||\n v.baseType === 'file') {\n return String(raw) !== '';\n }\n if (v.baseType === 'duration') {\n return typeof raw === 'number' ? raw !== 0 : Boolean(raw);\n }\n return Boolean(raw);\n}\nexport function toNumber(v) {\n if (v.kind === 'invalid')\n return NaN;\n if (v.kind === 'null')\n return NaN;\n const raw = v.value;\n if (typeof raw === 'number')\n return raw;\n if (v.kind === 'value' && v.baseType === 'duration' && typeof raw === 'string') {\n const ms = parseXsdDurationToMilliseconds(raw);\n return ms === null ? NaN : ms;\n }\n return Number(raw);\n}\nexport function toStringValue(v) {\n if (v.kind === 'invalid')\n return '';\n if (v.kind === 'null')\n return '';\n return String(v.value);\n}\nfunction parseXsdDurationToMilliseconds(text) {\n // xs:duration lexical space is ISO 8601 duration, e.g. \"P3DT4H30M\", \"PT0.5S\"\n // NOTE: years/months are variable-length in reality; we approximate:\n // - 1 year = 365 days\n // - 1 month = 30 days\n const t = text.trim();\n const m = /^(-)?P(?:(\\d+)Y)?(?:(\\d+)M)?(?:(\\d+)D)?(?:T(?:(\\d+)H)?(?:(\\d+)M)?(?:(\\d+(?:\\.\\d+)?)S)?)?$/.exec(t);\n if (!m)\n return null;\n const sign = m[1] ? -1 : 1;\n const years = m[2] ? Number(m[2]) : 0;\n const months = m[3] ? Number(m[3]) : 0;\n const days = m[4] ? Number(m[4]) : 0;\n const hours = m[5] ? Number(m[5]) : 0;\n const minutes = m[6] ? Number(m[6]) : 0;\n const seconds = m[7] ? Number(m[7]) : 0;\n if (![years, months, days, hours, minutes, seconds].every(Number.isFinite))\n return null;\n const totalSeconds = (((years * 365 + months * 30 + days) * 24 + hours) * 60 + minutes) * 60 + seconds;\n return sign * totalSeconds * 1000;\n}\nexport function coerceBaseValue(baseType, text) {\n const t = text.trim();\n switch (baseType) {\n case 'boolean':\n // xs:boolean allows true|false|1|0\n if (t === 'true' || t === '1')\n return qtiValue('boolean', 'single', true);\n if (t === 'false' || t === '0')\n return qtiValue('boolean', 'single', false);\n return qtiInvalid(`invalid boolean: ${t}`, 'boolean', 'single');\n case 'integer':\n case 'float': {\n const n = Number(t);\n if (!Number.isFinite(n))\n return qtiInvalid(`invalid number: ${t}`, baseType, 'single');\n if (baseType === 'integer')\n return qtiValue('integer', 'single', Math.trunc(n));\n return qtiValue('float', 'single', n);\n }\n case 'pair': {\n // Lexical form: \"A B\" (unordered)\n const parts = t.split(/\\s+/).filter(Boolean);\n if (parts.length < 2)\n return qtiValue('pair', 'single', t);\n const [a, b] = [parts[0], parts[1]].sort();\n return qtiValue('pair', 'single', `${a} ${b}`);\n }\n case 'directedPair': {\n // Lexical form: \"A B\" (ordered)\n const parts = t.split(/\\s+/).filter(Boolean);\n if (parts.length < 2)\n return qtiValue('directedPair', 'single', t);\n const a = parts[0];\n const b = parts[1];\n return qtiValue('directedPair', 'single', `${a} ${b}`);\n }\n case 'point': {\n // Lexical form: \"x y\"\n const parts = t.split(/\\s+/).filter(Boolean);\n if (parts.length < 2)\n return qtiValue('point', 'single', t);\n return qtiValue('point', 'single', `${parts[0]} ${parts[1]}`);\n }\n case 'duration': {\n const ms = parseXsdDurationToMilliseconds(t);\n if (ms === null)\n return qtiInvalid(`invalid duration: ${t}`, 'duration', 'single');\n // Store milliseconds as a number to make comparisons/lt/gt work naturally.\n return qtiValue('duration', 'single', ms);\n }\n case 'file':\n // Minimal representation for now: a string reference (e.g. file name, URI, etc).\n return qtiValue('file', 'single', t);\n case 'identifier':\n case 'string':\n case 'uri':\n default:\n return qtiValue(baseType, 'single', t);\n }\n}\nexport function normalizeForCompare(v) {\n // Used for multiset comparisons (multiple cardinality). Keep simple and deterministic.\n if (v === null || v === undefined)\n return '';\n if (typeof v === 'string')\n return v;\n if (typeof v === 'number' || typeof v === 'boolean')\n return String(v);\n try {\n const s = JSON.stringify(v);\n return s === undefined ? String(v) : s;\n }\n catch {\n return String(v);\n }\n}\n//# sourceMappingURL=value.js.map","import Decimal from 'decimal.js';\nimport { coerceBaseValue, normalizeForCompare, qtiInvalid, qtiNull, qtiValue, toBoolean, toNumber, toStringValue, } from '../runtime/value.js';\nexport function applyLookupTable(source, table) {\n if (source.kind === 'invalid')\n return qtiInvalid('lookupTable invalid');\n if (source.kind === 'null') {\n const def = table.defaultValue;\n return def === undefined ? qtiNull() : qtiValue('float', 'single', def);\n }\n if (source.kind !== 'value')\n return qtiNull();\n if (Array.isArray(source.value))\n return qtiInvalid('lookupTable expects single cardinality');\n if (table.kind === 'table.matchTable') {\n const srcIsNumber = source.baseType === 'integer' || source.baseType === 'float';\n if (srcIsNumber) {\n const x = toNumber(source);\n for (const entry of table.entries) {\n const k = Number(entry.sourceValue);\n if (!Number.isFinite(k))\n continue;\n if (x === k) {\n const n = Number(entry.targetValue);\n return Number.isFinite(n) ? qtiValue('float', 'single', n) : qtiValue('string', 'single', entry.targetValue);\n }\n }\n }\n else {\n const x = normalizeForCompare(source.value);\n for (const entry of table.entries) {\n if (x === normalizeForCompare(entry.sourceValue)) {\n const n = Number(entry.targetValue);\n return Number.isFinite(n) ? qtiValue('float', 'single', n) : qtiValue('string', 'single', entry.targetValue);\n }\n }\n }\n const def = table.defaultValue;\n return def === undefined ? qtiNull() : qtiValue('float', 'single', def);\n }\n // interpolation table\n if (source.baseType !== 'integer' && source.baseType !== 'float') {\n return qtiInvalid('lookupTable interpolation expects numeric source');\n }\n const method = (table.interpolationMethod || 'linear').toLowerCase();\n if (method !== 'linear')\n return qtiInvalid(`lookupTable unsupported interpolationMethod: ${method}`);\n const x = toNumber(source);\n if (!Number.isFinite(x))\n return qtiInvalid('lookupTable interpolation invalid number');\n const entries = [...table.entries].sort((a, b) => a.sourceValue - b.sourceValue);\n if (entries.length === 0) {\n const def = table.defaultValue;\n return def === undefined ? qtiNull() : qtiValue('float', 'single', def);\n }\n if (x <= entries[0].sourceValue)\n return qtiValue('float', 'single', entries[0].targetValue);\n if (x >= entries[entries.length - 1].sourceValue)\n return qtiValue('float', 'single', entries[entries.length - 1].targetValue);\n for (let i = 0; i < entries.length - 1; i++) {\n const a = entries[i];\n const b = entries[i + 1];\n if (x >= a.sourceValue && x <= b.sourceValue) {\n if (a.sourceValue === b.sourceValue)\n return qtiValue('float', 'single', a.targetValue);\n const t = (x - a.sourceValue) / (b.sourceValue - a.sourceValue);\n return qtiValue('float', 'single', a.targetValue + t * (b.targetValue - a.targetValue));\n }\n }\n // Fallback (shouldn't happen due to bounds checks)\n return qtiValue('float', 'single', entries[entries.length - 1].targetValue);\n}\nexport function evalExpr(env, expr) {\n const inferBaseType = (values, fallback = 'string') => {\n for (const v of values) {\n if (v.kind === 'value' && v.baseType)\n return v.baseType;\n }\n return fallback;\n };\n const resolveNumberOrVarRef = (raw) => {\n const s = (raw || '').trim();\n if (!s)\n return NaN;\n const n = Number(s);\n if (Number.isFinite(n))\n return n;\n const v = env.ctx.getValue(s);\n return toNumber(v);\n };\n const resolveTwoNumbersOrVarRefs = (raws) => {\n const items = (raws || []).map((s) => resolveNumberOrVarRef(s)).filter((n) => Number.isFinite(n));\n if (items.length === 1)\n return [items[0], items[0]];\n if (items.length >= 2)\n return [items[0], items[1]];\n return [NaN, NaN];\n };\n const roundDecimalPlaces = (x, places) => {\n if (!Number.isFinite(x) || !Number.isFinite(places))\n return NaN;\n const p = Math.max(0, Math.floor(places));\n // Use decimal.js to avoid common binary floating-point rounding surprises (e.g. 3.175).\n return new Decimal(String(x)).toDecimalPlaces(p, Decimal.ROUND_HALF_UP).toNumber();\n };\n const roundSignificantFigures = (x, figures) => {\n if (!Number.isFinite(x) || !Number.isFinite(figures))\n return NaN;\n const f = Math.max(1, Math.floor(figures));\n // Use decimal.js to avoid binary floating-point rounding surprises.\n return new Decimal(String(x)).toSignificantDigits(f, Decimal.ROUND_HALF_UP).toNumber();\n };\n const normalizeScalarForCompare = (v, baseType) => {\n if ((baseType === 'pair' || baseType === 'directedPair') && typeof v === 'string') {\n // pair: unordered \"A B\" == \"B A\"; directedPair: ordered\n const parts = v.trim().split(/\\s+/).filter(Boolean);\n if (parts.length >= 2) {\n const a = parts[0];\n const b = parts[1];\n if (baseType === 'pair')\n return [a, b].sort().join(' ');\n return `${a} ${b}`;\n }\n }\n return normalizeForCompare(v);\n };\n const qtiValuesMatch = (left, right) => {\n if (left.kind === 'invalid' || right.kind === 'invalid')\n return false;\n if (left.kind === 'null' || right.kind === 'null') {\n return left.kind === 'null' && right.kind === 'null';\n }\n if (left.cardinality !== right.cardinality || left.baseType !== right.baseType)\n return false;\n if (left.cardinality === 'record') {\n const leftRecord = left.value;\n const rightRecord = right.value;\n const leftFields = Object.keys(leftRecord).sort();\n const rightFields = Object.keys(rightRecord).sort();\n if (leftFields.length !== rightFields.length)\n return false;\n return leftFields.every((fieldIdentifier, index) => {\n if (fieldIdentifier !== rightFields[index])\n return false;\n return qtiValuesMatch(leftRecord[fieldIdentifier], rightRecord[fieldIdentifier]);\n });\n }\n const leftValue = left.value;\n const rightValue = right.value;\n if (Array.isArray(leftValue) || Array.isArray(rightValue)) {\n if (!Array.isArray(leftValue) || !Array.isArray(rightValue))\n return false;\n if (leftValue.length !== rightValue.length)\n return false;\n if (left.cardinality === 'multiple') {\n const counts = new Map();\n for (const value of rightValue) {\n const key = normalizeScalarForCompare(value, right.baseType);\n counts.set(key, (counts.get(key) ?? 0) + 1);\n }\n for (const value of leftValue) {\n const key = normalizeScalarForCompare(value, left.baseType);\n const count = counts.get(key) ?? 0;\n if (count === 0)\n return false;\n counts.set(key, count - 1);\n }\n return true;\n }\n return leftValue.every((value, index) => normalizeScalarForCompare(value, left.baseType) ===\n normalizeScalarForCompare(rightValue[index], right.baseType));\n }\n return (normalizeScalarForCompare(leftValue, left.baseType) ===\n normalizeScalarForCompare(rightValue, right.baseType));\n };\n const asBaseType = (raw) => {\n const s = (raw || '').trim();\n const allowed = [\n 'boolean',\n 'integer',\n 'float',\n 'string',\n 'identifier',\n 'uri',\n 'pair',\n 'directedPair',\n 'point',\n 'duration',\n 'file',\n ];\n return allowed.includes(s) ? s : undefined;\n };\n const filterTestItems = (filter) => {\n const items = env.test?.items;\n if (!items)\n return null;\n const sectionId = (filter.sectionIdentifier || '').trim();\n const include = (filter.includeCategory || []).filter(Boolean);\n const exclude = (filter.excludeCategory || []).filter(Boolean);\n return items.filter((it) => {\n if (sectionId) {\n const path = it.sectionIdentifiers || [];\n if (!path.includes(sectionId))\n return false;\n }\n const cats = new Set((it.categories || []).filter(Boolean));\n if (include.length > 0 && !include.some((c) => cats.has(c)))\n return false;\n if (exclude.length > 0 && exclude.some((c) => cats.has(c)))\n return false;\n return true;\n });\n };\n const resolveWeight = (it, weightIdentifier) => {\n const key = (weightIdentifier || '').trim();\n if (!key)\n return 1;\n const n = it.weights?.[key];\n return typeof n === 'number' && Number.isFinite(n) ? n : 1;\n };\n switch (expr.kind) {\n case 'expr.baseValue':\n return coerceBaseValue(expr.baseType, expr.text);\n case 'expr.null':\n return qtiNull();\n case 'expr.variable':\n return env.ctx.getValue(expr.identifier);\n case 'expr.correct':\n return env.ctx.getCorrectResponse(expr.identifier);\n case 'expr.default':\n return env.ctx.getDefaultValue(expr.identifier);\n case 'expr.testVariables': {\n const items = filterTestItems(expr);\n if (!items)\n return qtiInvalid('testVariables requires env.test');\n const targetBaseType = asBaseType(expr.baseType) || 'float';\n const out = [];\n for (const it of items) {\n const v = it.variables?.[expr.variableIdentifier];\n if (!v || v.kind !== 'value')\n continue;\n if (v.cardinality !== 'single')\n continue;\n if (v.value === null || v.value === undefined)\n continue;\n // Only variables with single cardinality are considered, all NULL values are ignored.\n let raw = v.value;\n // If weightIdentifier is provided, apply weight to numeric values.\n if (expr.weightIdentifier) {\n const w = resolveWeight(it, expr.weightIdentifier);\n const n = toNumber(v);\n if (Number.isFinite(n))\n raw = n * w;\n }\n // Coerce into requested baseType (best effort).\n switch (targetBaseType) {\n case 'boolean':\n out.push(Boolean(raw));\n break;\n case 'integer': {\n const n = Number(raw);\n if (Number.isFinite(n))\n out.push(Math.trunc(n));\n break;\n }\n case 'float': {\n const n = Number(raw);\n if (Number.isFinite(n))\n out.push(n);\n break;\n }\n default:\n out.push(String(raw));\n break;\n }\n }\n return qtiValue(targetBaseType, 'multiple', out);\n }\n case 'expr.outcomeMinimum':\n case 'expr.outcomeMaximum': {\n const items = filterTestItems(expr);\n if (!items)\n return qtiInvalid(`${expr.kind} requires env.test`);\n const values = [];\n for (const it of items) {\n const v = it.variables?.[expr.outcomeIdentifier];\n if (!v || v.kind !== 'value')\n continue;\n if (v.cardinality !== 'single')\n continue;\n const n = toNumber(v);\n if (!Number.isFinite(n))\n continue;\n const w = resolveWeight(it, expr.weightIdentifier);\n values.push(n * w);\n }\n if (values.length === 0)\n return qtiNull('float', 'single');\n const out = expr.kind === 'expr.outcomeMinimum' ? Math.min(...values) : Math.max(...values);\n return qtiValue('float', 'single', out);\n }\n case 'expr.numberCorrect':\n case 'expr.numberIncorrect':\n case 'expr.numberPresented':\n case 'expr.numberResponded':\n case 'expr.numberSelected': {\n const items = filterTestItems(expr);\n if (!items)\n return qtiInvalid(`${expr.kind} requires env.test`);\n const inferCorrectness = (it) => {\n // Prefer explicit flags if present.\n if (typeof it.correct === 'boolean' || typeof it.incorrect === 'boolean') {\n return { correct: it.correct === true, incorrect: it.incorrect === true };\n }\n // Fallback heuristic: correct iff SCORE == MAXSCORE and MAXSCORE > 0.\n const score = it.variables?.SCORE;\n const max = it.variables?.MAXSCORE;\n if (score?.kind === 'value' && max?.kind === 'value') {\n const s = toNumber(score);\n const m = toNumber(max);\n if (Number.isFinite(s) && Number.isFinite(m) && m > 0) {\n return { correct: s === m, incorrect: s !== m };\n }\n }\n return { correct: false, incorrect: false };\n };\n let count = 0;\n for (const it of items) {\n switch (expr.kind) {\n case 'expr.numberPresented':\n if (it.presented !== false)\n count++;\n break;\n case 'expr.numberResponded':\n if (it.responded === true)\n count++;\n break;\n case 'expr.numberSelected':\n if (it.selected === true)\n count++;\n break;\n case 'expr.numberCorrect': {\n const { correct } = inferCorrectness(it);\n if (correct)\n count++;\n break;\n }\n case 'expr.numberIncorrect': {\n const { incorrect } = inferCorrectness(it);\n if (incorrect)\n count++;\n break;\n }\n }\n }\n return qtiValue('integer', 'single', count);\n }\n case 'expr.customOperator': {\n // Extension hook. If there's no registered handler, return NULL (safe default).\n const values = expr.values.map((e) => evalExpr(env, e));\n if (values.some((v) => v.kind === 'null'))\n return qtiNull();\n const key = (expr.class || expr.definition || '').trim();\n const fn = key ? env.customOperators?.[key] : undefined;\n if (!fn)\n return qtiNull();\n try {\n return fn(values, { class: expr.class, definition: expr.definition });\n }\n catch {\n return qtiNull();\n }\n }\n case 'expr.preCondition': {\n // Treat as boolean-context wrapper. (Our boolean operators already treat NULL/invalid as false.)\n const v = evalExpr(env, expr.expr);\n return qtiValue('boolean', 'single', toBoolean(v));\n }\n case 'expr.isNull': {\n const v = evalExpr(env, expr.expr);\n return qtiValue('boolean', 'single', v.kind === 'null');\n }\n case 'expr.isNotNull': {\n const v = evalExpr(env, expr.expr);\n return qtiValue('boolean', 'single', v.kind !== 'null');\n }\n case 'expr.match': {\n const a = evalExpr(env, expr.a);\n const b = evalExpr(env, expr.b);\n if (a.kind === 'invalid' || b.kind === 'invalid')\n return qtiInvalid('match invalid');\n if (a.kind === 'null' || b.kind === 'null')\n return qtiValue('boolean', 'single', false);\n if (a.kind === 'value' && b.kind === 'value') {\n return qtiValue('boolean', 'single', qtiValuesMatch(a, b));\n }\n return qtiValue('boolean', 'single', false);\n }\n case 'expr.equal': {\n const a = evalExpr(env, expr.a);\n const b = evalExpr(env, expr.b);\n if (a.kind === 'invalid' || b.kind === 'invalid')\n return qtiInvalid('equal invalid');\n // Spec-aligned null propagation: boolean comparisons yield NULL if any operand is NULL.\n if (a.kind === 'null' || b.kind === 'null')\n return qtiNull('boolean', 'single');\n if (a.kind === 'value' && b.kind === 'value') {\n // QTI tolerance support (numeric only, single cardinality)\n if (expr.toleranceMode &&\n expr.toleranceMode !== 'exact' &&\n (a.baseType === 'integer' || a.baseType === 'float') &&\n (b.baseType === 'integer' || b.baseType === 'float') &&\n a.cardinality === 'single' &&\n b.cardinality === 'single' &&\n !Array.isArray(a.value) &&\n !Array.isArray(b.value)) {\n const x = toNumber(a);\n const y = toNumber(b);\n if (!Number.isFinite(x) || !Number.isFinite(y))\n return qtiInvalid('equal tolerance invalid number');\n const [t0, t1] = resolveTwoNumbersOrVarRefs(expr.tolerance);\n if (!Number.isFinite(t0) || !Number.isFinite(t1) || t0 < 0 || t1 < 0) {\n return qtiInvalid('equal tolerance invalid tolerance');\n }\n const includeLower = expr.includeLowerBound ?? true;\n const includeUpper = expr.includeUpperBound ?? true;\n let lower;\n let upper;\n if (expr.toleranceMode === 'absolute') {\n lower = x - t0;\n upper = x + t1;\n }\n else {\n // relative: t0/t1 treated as percentages\n lower = x - (x * t0) / 100;\n upper = x + (x * t1) / 100;\n }\n const okLower = includeLower ? y >= lower : y > lower;\n const okUpper = includeUpper ? y <= upper : y < upper;\n return qtiValue('boolean', 'single', okLower && okUpper);\n }\n const av = a.value;\n const bv = b.value;\n // Like match, but with normalization for scalar comparison.\n if (Array.isArray(av) && Array.isArray(bv)) {\n if (av.length !== bv.length)\n return qtiValue('boolean', 'single', false);\n if (a.cardinality === 'multiple' || b.cardinality === 'multiple') {\n const counts = new Map();\n for (const v of bv) {\n const k = normalizeScalarForCompare(v, b.baseType);\n counts.set(k, (counts.get(k) || 0) + 1);\n }\n for (const v of av) {\n const k = normalizeScalarForCompare(v, a.baseType);\n const n = counts.get(k) || 0;\n if (n <= 0)\n return qtiValue('boolean', 'single', false);\n counts.set(k, n - 1);\n }\n return qtiValue('boolean', 'single', true);\n }\n for (let i = 0; i < av.length; i++) {\n if (normalizeScalarForCompare(av[i], a.baseType) !== normalizeScalarForCompare(bv[i], b.baseType)) {\n return qtiValue('boolean', 'single', false);\n }\n }\n return qtiValue('boolean', 'single', true);\n }\n return qtiValue('boolean', 'single', normalizeScalarForCompare(av, a.baseType) === normalizeScalarForCompare(bv, b.baseType));\n }\n return qtiValue('boolean', 'single', false);\n }\n case 'expr.equalRounded': {\n const a = evalExpr(env, expr.a);\n const b = evalExpr(env, expr.b);\n if (a.kind === 'invalid' || b.kind === 'invalid')\n return qtiInvalid('equalRounded invalid');\n // Spec-aligned null propagation.\n if (a.kind === 'null' || b.kind === 'null')\n return qtiNull('boolean', 'single');\n if (a.kind !== 'value' || b.kind !== 'value')\n return qtiValue('boolean', 'single', false);\n if (Array.isArray(a.value) || Array.isArray(b.value))\n return qtiValue('boolean', 'single', false);\n const x = toNumber(a);\n const y = toNumber(b);\n if (!Number.isFinite(x) || !Number.isFinite(y))\n return qtiInvalid('equalRounded invalid number');\n const modeRaw = (expr.roundingMode || '').trim().toLowerCase();\n const mode = modeRaw === 'significantfigure' || modeRaw === 'significantfigures'\n ? 'significantFigures'\n : modeRaw === 'decimalplace' || modeRaw === 'decimalplaces'\n ? 'decimalPlaces'\n : undefined;\n if (!mode)\n return qtiInvalid(`equalRounded unsupported roundingMode: ${expr.roundingMode}`);\n const figs = resolveNumberOrVarRef(expr.figures);\n if (!Number.isFinite(figs))\n return qtiInvalid('equalRounded figures invalid');\n const nFigs = Math.floor(figs);\n if (mode === 'significantFigures' && nFigs <= 0)\n return qtiInvalid('equalRounded figures must be > 0');\n if (mode === 'decimalPlaces' && nFigs < 0)\n return qtiInvalid('equalRounded figures must be >= 0');\n const rx = mode === 'significantFigures' ? roundSignificantFigures(x, nFigs) : roundDecimalPlaces(x, nFigs);\n const ry = mode === 'significantFigures' ? roundSignificantFigures(y, nFigs) : roundDecimalPlaces(y, nFigs);\n if (!Number.isFinite(rx) || !Number.isFinite(ry))\n return qtiInvalid('equalRounded rounding invalid');\n return qtiValue('boolean', 'single', rx === ry);\n }\n case 'expr.notEqual': {\n const eq = evalExpr(env, { kind: 'expr.equal', id: expr.id, a: expr.a, b: expr.b });\n // Spec-aligned null/invalid propagation: if equality is null/invalid, notEqual is also null/invalid.\n // This prevents missing responses (NULL) from becoming truthy via boolean negation.\n if (eq.kind === 'null')\n return qtiNull();\n if (eq.kind === 'invalid')\n return eq;\n return qtiValue('boolean', 'single', !toBoolean(eq));\n }\n case 'expr.member': {\n const value = evalExpr(env, expr.value);\n const container = evalExpr(env, expr.container);\n if (value.kind === 'invalid' || container.kind === 'invalid')\n return qtiInvalid('member invalid');\n if (value.kind === 'null' || container.kind === 'null')\n return qtiValue('boolean', 'single', false);\n if (value.kind !== 'value' || container.kind !== 'value')\n return qtiValue('boolean', 'single', false);\n const v = value.value;\n const c = container.value;\n if (!Array.isArray(c))\n return qtiValue('boolean', 'single', false);\n const needle = normalizeScalarForCompare(v, container.baseType);\n return qtiValue('boolean', 'single', c.some((x) => normalizeScalarForCompare(x, container.baseType) === needle));\n }\n case 'expr.contains': {\n const container = evalExpr(env, expr.container);\n const value = evalExpr(env, expr.value);\n if (value.kind === 'invalid' || container.kind === 'invalid')\n return qtiInvalid('contains invalid');\n if (value.kind === 'null' || container.kind === 'null')\n return qtiValue('boolean', 'single', false);\n if (value.kind !== 'value' || container.kind !== 'value')\n return qtiValue('boolean', 'single', false);\n const c = container.value;\n if (!Array.isArray(c))\n return qtiValue('boolean', 'single', false);\n const needle = normalizeScalarForCompare(value.value, container.baseType);\n return qtiValue('boolean', 'single', c.some((x) => normalizeScalarForCompare(x, container.baseType) === needle));\n }\n case 'expr.containerSize': {\n const container = evalExpr(env, expr.container);\n if (container.kind === 'invalid')\n return qtiInvalid('containerSize invalid');\n if (container.kind === 'null')\n return qtiValue('integer', 'single', 0);\n if (container.kind !== 'value')\n return qtiValue('integer', 'single', 0);\n return qtiValue('integer', 'single', Array.isArray(container.value) ? container.value.length : container.value === null || container.value === undefined ? 0 : 1);\n }\n case 'expr.index': {\n const container = evalExpr(env, expr.container);\n const index = evalExpr(env, expr.index);\n if (container.kind === 'invalid' || index.kind === 'invalid')\n return qtiInvalid('index invalid');\n const outBaseType = container.kind === 'value'\n ? (container.baseType ?? 'string')\n : index.kind === 'value'\n ? // index operand doesn't tell us the output type; fall back to string\n 'string'\n : 'string';\n if (container.kind !== 'value')\n return qtiNull(outBaseType, 'single');\n if (!Array.isArray(container.value))\n return qtiNull(container.baseType, 'single');\n // QTI uses 1-based indexing\n const idx = Math.floor(toNumber(index)) - 1;\n if (!Number.isFinite(idx) || idx < 0 || idx >= container.value.length)\n return qtiNull(container.baseType, 'single');\n return qtiValue(container.baseType, 'single', container.value[idx]);\n }\n case 'expr.ordered':\n case 'expr.multiple': {\n const values = expr.values.map((v) => evalExpr(env, v));\n if (values.some((v) => v.kind === 'invalid'))\n return qtiInvalid(`${expr.kind} invalid`);\n const baseType = inferBaseType(values);\n const out = [];\n for (const v of values) {\n if (v.kind === 'null') {\n out.push(null);\n continue;\n }\n if (v.kind !== 'value')\n continue;\n if (Array.isArray(v.value))\n out.push(...v.value);\n else\n out.push(v.value);\n }\n const cardinality = expr.kind === 'expr.ordered' ? 'ordered' : 'multiple';\n return qtiValue(baseType, cardinality, out);\n }\n case 'expr.delete': {\n const container = evalExpr(env, expr.container);\n const value = evalExpr(env, expr.value);\n if (container.kind === 'invalid' || value.kind === 'invalid')\n return qtiInvalid('delete invalid');\n const baseType = container.kind === 'value'\n ? (container.baseType ?? 'string')\n : value.kind === 'value'\n ? (value.baseType ?? 'string')\n : 'string';\n const needle = value.kind === 'value'\n ? value.value\n : value.kind === 'null'\n ? null\n : null;\n const needles = Array.isArray(needle) ? new Set(needle.map((n) => normalizeForCompare(n))) : null;\n const needleKey = needles ? null : normalizeForCompare(needle);\n const remove = (x) => {\n const k = normalizeForCompare(x);\n if (needles)\n return needles.has(k);\n return k === needleKey;\n };\n if (container.kind !== 'value')\n return qtiNull(baseType, 'single');\n const outCard = container.cardinality;\n if (!Array.isArray(container.value)) {\n // Single value: remove => NULL, else unchanged\n return remove(container.value) ? qtiNull(baseType, 'single') : qtiValue(baseType, 'single', container.value);\n }\n return qtiValue(baseType, outCard, container.value.filter((item) => !remove(item)));\n }\n case 'expr.repeat': {\n // Spec (Repeat.Type): numberRepeats attribute (xs:int or variable identifier)\n let countRaw;\n if (typeof expr.numberRepeats === 'number') {\n countRaw = expr.numberRepeats;\n }\n else {\n const decl = env.ctx.getDeclaration(expr.numberRepeats);\n const v = decl?.value;\n if (!v || v.kind === 'null' || v.kind === 'invalid')\n return qtiNull();\n countRaw = Math.trunc(toNumber(v));\n }\n if (countRaw === undefined || !Number.isFinite(countRaw) || countRaw < 1)\n return qtiNull();\n const count = countRaw;\n let outBaseType = 'string';\n const out = [];\n let pushed = false;\n const pushFrom = (v) => {\n if (v.kind === 'null')\n return;\n if (v.kind === 'invalid') {\n // propagate invalid\n throw new Error('repeat invalid');\n }\n outBaseType = v.baseType ?? 'string';\n if (Array.isArray(v.value)) {\n for (const item of v.value) {\n if (item === null || item === undefined)\n continue;\n out.push(item);\n pushed = true;\n }\n return;\n }\n if (v.value === null || v.value === undefined)\n return;\n out.push(v.value);\n pushed = true;\n };\n try {\n for (let i = 0; i < count; i++) {\n for (const sub of expr.values) {\n const v = evalExpr(env, sub);\n pushFrom(v);\n }\n }\n }\n catch (e) {\n if (e instanceof Error && e.message === 'repeat invalid')\n return qtiInvalid('repeat invalid');\n throw e;\n }\n if (!pushed)\n return qtiNull(outBaseType, 'ordered');\n return qtiValue(outBaseType, 'ordered', out);\n }\n case 'expr.durationLT': {\n const a = evalExpr(env, expr.a);\n const b = evalExpr(env, expr.b);\n if (a.kind === 'invalid' || b.kind === 'invalid')\n return qtiInvalid('durationLT invalid');\n if (a.kind === 'null' || b.kind === 'null')\n return qtiNull('boolean', 'single');\n if (a.kind !== 'value' || b.kind !== 'value')\n return qtiInvalid('durationLT expects values');\n if (a.baseType !== 'duration' || b.baseType !== 'duration')\n return qtiInvalid('durationLT expects duration operands');\n return qtiValue('boolean', 'single', Number(a.value) < Number(b.value));\n }\n case 'expr.durationGTE': {\n const a = evalExpr(env, expr.a);\n const b = evalExpr(env, expr.b);\n if (a.kind === 'invalid' || b.kind === 'invalid')\n return qtiInvalid('durationGTE invalid');\n if (a.kind === 'null' || b.kind === 'null')\n return qtiNull('boolean', 'single');\n if (a.kind !== 'value' || b.kind !== 'value')\n return qtiInvalid('durationGTE expects values');\n if (a.baseType !== 'duration' || b.baseType !== 'duration')\n return qtiInvalid('durationGTE expects duration operands');\n return qtiValue('boolean', 'single', Number(a.value) >= Number(b.value));\n }\n case 'expr.inside': {\n const value = evalExpr(env, expr.value);\n if (value.kind === 'invalid')\n return qtiInvalid('inside invalid');\n if (value.kind === 'null')\n return qtiNull('boolean', 'single');\n if (value.kind !== 'value')\n return qtiInvalid('inside expects a value');\n if (value.baseType !== 'point')\n return qtiInvalid('inside expects point baseType');\n const numsFromCoords = (coords) => (coords.match(/-?\\d+(?:\\.\\d+)?/g) || []).map((s) => Number(s));\n const parsePoint = (v) => {\n if (typeof v !== 'string')\n return null;\n const parts = v.trim().split(/\\s+/);\n if (parts.length < 2)\n return null;\n const x = Number(parts[0]);\n const y = Number(parts[1]);\n if (!Number.isFinite(x) || !Number.isFinite(y))\n return null;\n return { x, y };\n };\n const inRect = (p, coords) => {\n const [x1, y1, x2, y2] = numsFromCoords(coords);\n if (![x1, y1, x2, y2].every((n) => Number.isFinite(n)))\n return false;\n const minX = Math.min(x1, x2);\n const maxX = Math.max(x1, x2);\n const minY = Math.min(y1, y2);\n const maxY = Math.max(y1, y2);\n return p.x >= minX && p.x <= maxX && p.y >= minY && p.y <= maxY;\n };\n const inCircle = (p, coords) => {\n const [cx, cy, r] = numsFromCoords(coords);\n if (![cx, cy, r].every((n) => Number.isFinite(n)))\n return false;\n const dx = p.x - cx;\n const dy = p.y - cy;\n return dx * dx + dy * dy <= r * r;\n };\n const inEllipse = (p, coords) => {\n const [cx, cy, rx, ry] = numsFromCoords(coords);\n if (![cx, cy, rx, ry].every((n) => Number.isFinite(n)))\n return false;\n if (rx === 0 || ry === 0)\n return false;\n const dx = (p.x - cx) / rx;\n const dy = (p.y - cy) / ry;\n return dx * dx + dy * dy <= 1;\n };\n // Ray casting algorithm for point in polygon\n const inPoly = (p, coords) => {\n const ns = numsFromCoords(coords);\n if (ns.length < 6 || ns.length % 2 !== 0)\n return false;\n let inside = false;\n for (let i = 0, j = ns.length - 2; i < ns.length; j = i, i += 2) {\n const xi = ns[i];\n const yi = ns[i + 1];\n const xj = ns[j];\n const yj = ns[j + 1];\n const intersects = (yi > p.y) !== (yj > p.y) && p.x < ((xj - xi) * (p.y - yi)) / (yj - yi) + xi;\n if (intersects)\n inside = !inside;\n }\n return inside;\n };\n const points = Array.isArray(value.value) ? value.value : [value.value];\n for (const raw of points) {\n if (raw === null || raw === undefined)\n return qtiNull('boolean', 'single');\n const p = parsePoint(raw);\n if (!p)\n continue;\n let ok = false;\n switch (expr.shape) {\n case 'default':\n ok = true;\n break;\n case 'rect':\n ok = inRect(p, expr.coords);\n break;\n case 'circle':\n ok = inCircle(p, expr.coords);\n break;\n case 'ellipse':\n ok = inEllipse(p, expr.coords);\n break;\n case 'poly':\n ok = inPoly(p, expr.coords);\n break;\n default:\n ok = false;\n break;\n }\n if (ok)\n return qtiValue('boolean', 'single', true);\n }\n return qtiValue('boolean', 'single', false);\n }\n case 'expr.statsOperator': {\n const values = evalExpr(env, expr.values);\n if (values.kind === 'invalid')\n return qtiInvalid('statsOperator invalid');\n if (values.kind === 'null')\n return qtiNull('float', 'single');\n if (values.kind !== 'value')\n return qtiNull('float', 'single');\n const arr = Array.isArray(values.value) ? values.value : [values.value];\n if (arr.length === 0)\n return qtiNull('float', 'single');\n if (arr.some((x) => x === null || x === undefined))\n return qtiNull('float', 'single');\n const nums = arr.map((x) => Number(x));\n if (nums.some((n) => !Number.isFinite(n)))\n return qtiNull('float', 'single');\n const mean = nums.reduce((a, b) => a + b, 0) / nums.length;\n if (expr.name === 'mean')\n return qtiValue('float', 'single', mean);\n const squared = nums.map((n) => (n - mean) * (n - mean)).reduce((a, b) => a + b, 0);\n const denom = expr.name === 'sampleVariance' || expr.name === 'sampleSD' ? nums.length - 1 : nums.length;\n if (denom <= 0)\n return qtiNull('float', 'single');\n const variance = squared / denom;\n if (expr.name === 'sampleVariance' || expr.name === 'popVariance')\n return qtiValue('float', 'single', variance);\n return qtiValue('float', 'single', Math.sqrt(variance));\n }\n case 'expr.record': {\n const record = {};\n for (const f of expr.fields) {\n record[f.fieldIdentifier] = evalExpr(env, f.value);\n }\n return qtiValue(undefined, 'record', record);\n }\n case 'expr.fieldValue': {\n const rec = evalExpr(env, expr.record);\n if (rec.kind !== 'value' || rec.cardinality !== 'record')\n return qtiNull();\n const obj = rec.value;\n return obj?.[expr.fieldIdentifier] ?? qtiNull();\n }\n case 'expr.substring': {\n const value = evalExpr(env, expr.value);\n const start = evalExpr(env, expr.start);\n const length = expr.length ? evalExpr(env, expr.length) : undefined;\n if (value.kind === 'invalid' || start.kind === 'invalid' || length?.kind === 'invalid')\n return qtiInvalid('substring invalid');\n if (value.kind === 'null')\n return qtiNull('string', 'single');\n const s = toStringValue(value);\n // QTI indexing is 1-based\n const startIdx = Math.max(0, Math.floor(toNumber(start)) - 1);\n if (!Number.isFinite(startIdx))\n return qtiInvalid('substring start invalid');\n if (!length)\n return qtiValue('string', 'single', s.substring(startIdx));\n const len = Math.max(0, Math.floor(toNumber(length)));\n if (!Number.isFinite(len))\n return qtiInvalid('substring length invalid');\n return qtiValue('string', 'single', s.substring(startIdx, startIdx + len));\n }\n case 'expr.lookupTable': {\n const source = evalExpr(env, expr.source);\n return applyLookupTable(source, expr.table);\n }\n case 'expr.random': {\n const v = evalExpr(env, expr.value);\n if (v.kind !== 'value')\n return v;\n if (!Array.isArray(v.value))\n return v;\n if (v.value.length === 0)\n return qtiNull(v.baseType, 'single');\n const idx = Math.min(v.value.length - 1, Math.floor(env.rng() * v.value.length));\n return qtiValue(v.baseType, 'single', v.value[idx]);\n }\n case 'expr.power': {\n const a = toNumber(evalExpr(env, expr.a));\n const b = toNumber(evalExpr(env, expr.b));\n const n = Math.pow(a, b);\n if (!Number.isFinite(n))\n return qtiInvalid('power invalid');\n return qtiValue('float', 'single', n);\n }\n case 'expr.mod': {\n const a = toNumber(evalExpr(env, expr.a));\n const b = toNumber(evalExpr(env, expr.b));\n const n = a % b;\n if (!Number.isFinite(n))\n return qtiInvalid('mod invalid');\n return qtiValue('float', 'single', n);\n }\n case 'expr.integerDivide': {\n const a = toNumber(evalExpr(env, expr.a));\n const b = toNumber(evalExpr(env, expr.b));\n if (!Number.isFinite(a) || !Number.isFinite(b) || b === 0)\n return qtiInvalid('integerDivide invalid');\n return qtiValue('integer', 'single', Math.trunc(a / b));\n }\n case 'expr.mean':\n case 'expr.sampleVariance':\n case 'expr.sampleSD':\n case 'expr.popVariance':\n case 'expr.popSD': {\n const valuesExpr = expr.values;\n const values = evalExpr(env, valuesExpr);\n if (values.kind === 'invalid')\n return qtiInvalid(`${expr.kind} invalid`);\n if (values.kind !== 'value')\n return qtiInvalid(`${expr.kind} expects a container`);\n const arr = Array.isArray(values.value) ? values.value : [values.value];\n const nums = arr.map((x) => Number(x));\n if (nums.length === 0)\n return qtiInvalid(`${expr.kind} empty`);\n if (nums.some((n) => Number.isNaN(n)))\n return qtiInvalid(`${expr.kind} NaN`);\n const mean = nums.reduce((a, b) => a + b, 0) / nums.length;\n if (expr.kind === 'expr.mean')\n return qtiValue('float', 'single', mean);\n const squared = nums.map((n) => (n - mean) * (n - mean)).reduce((a, b) => a + b, 0);\n const denom = expr.kind === 'expr.sampleVariance' || expr.kind === 'expr.sampleSD' ? nums.length - 1 : nums.length;\n if (denom <= 0)\n return qtiInvalid(`${expr.kind} requires at least 2 values`);\n const variance = squared / denom;\n if (expr.kind === 'expr.sampleVariance' || expr.kind === 'expr.popVariance') {\n return qtiValue('float', 'single', variance);\n }\n return qtiValue('float', 'single', Math.sqrt(variance));\n }\n case 'expr.isTypeOf': {\n const v = evalExpr(env, expr.value);\n const baseType = toStringValue(evalExpr(env, expr.baseType)).trim();\n if (!baseType)\n return qtiValue('boolean', 'single', false);\n return qtiValue('boolean', 'single', v.kind === 'value' && v.baseType?.toLowerCase() === baseType.toLowerCase());\n }\n case 'expr.stringMatch': {\n const a = evalExpr(env, expr.a);\n const b = evalExpr(env, expr.b);\n if (a.kind === 'invalid' || b.kind === 'invalid')\n return qtiInvalid('stringMatch invalid');\n if (a.kind === 'null' || b.kind === 'null')\n return qtiValue('boolean', 'single', false);\n const sa = toStringValue(a);\n const sb = toStringValue(b);\n const left = expr.caseSensitive ? sa : sa.toLowerCase();\n const right = expr.caseSensitive ? sb : sb.toLowerCase();\n if (expr.substring)\n return qtiValue('boolean', 'single', left.includes(right));\n return qtiValue('boolean', 'single', left === right);\n }\n case 'expr.patternMatch': {\n const value = evalExpr(env, expr.value);\n const pattern = evalExpr(env, expr.pattern);\n if (value.kind === 'invalid' || pattern.kind === 'invalid')\n return qtiInvalid('patternMatch invalid');\n if (value.kind === 'null' || pattern.kind === 'null')\n return qtiValue('boolean', 'single', false);\n const sv = toStringValue(value);\n const sp = toStringValue(pattern);\n try {\n const re = new RegExp(sp, expr.caseSensitive ? undefined : 'i');\n return qtiValue('boolean', 'single', re.test(sv));\n }\n catch {\n // Invalid regex pattern\n return qtiValue('boolean', 'single', false);\n }\n }\n case 'expr.lt':\n return qtiValue('boolean', 'single', toNumber(evalExpr(env, expr.a)) < toNumber(evalExpr(env, expr.b)));\n case 'expr.lte':\n return qtiValue('boolean', 'single', toNumber(evalExpr(env, expr.a)) <= toNumber(evalExpr(env, expr.b)));\n case 'expr.gt':\n return qtiValue('boolean', 'single', toNumber(evalExpr(env, expr.a)) > toNumber(evalExpr(env, expr.b)));\n case 'expr.gte':\n return qtiValue('boolean', 'single', toNumber(evalExpr(env, expr.a)) >= toNumber(evalExpr(env, expr.b)));\n case 'expr.and':\n return qtiValue('boolean', 'single', expr.ops.every((o) => toBoolean(evalExpr(env, o))));\n case 'expr.or':\n return qtiValue('boolean', 'single', expr.ops.some((o) => toBoolean(evalExpr(env, o))));\n case 'expr.not':\n return qtiValue('boolean', 'single', !toBoolean(evalExpr(env, expr.expr)));\n case 'expr.anyN': {\n const trueCount = expr.ops.reduce((acc, o) => acc + (toBoolean(evalExpr(env, o)) ? 1 : 0), 0);\n return qtiValue('boolean', 'single', trueCount >= expr.min && trueCount <= expr.max);\n }\n case 'expr.allN': {\n const trueCount = expr.ops.reduce((acc, o) => acc + (toBoolean(evalExpr(env, o)) ? 1 : 0), 0);\n return qtiValue('boolean', 'single', trueCount <= expr.max);\n }\n case 'expr.sum': {\n let acc = 0;\n let allInteger = expr.values.length > 0;\n for (const op of expr.values) {\n const v = evalExpr(env, op);\n if (v.kind === 'invalid')\n return qtiInvalid('sum operand invalid', 'float', 'single');\n if (v.kind === 'null')\n return qtiNull('float', 'single');\n const n = toNumber(v);\n if (!Number.isFinite(n))\n return qtiInvalid('sum operand is not a finite number', 'float', 'single');\n if (v.baseType !== 'integer')\n allInteger = false;\n acc += n;\n }\n return qtiValue(allInteger ? 'integer' : 'float', 'single', acc);\n }\n case 'expr.subtract': {\n const a = evalExpr(env, expr.a);\n const b = evalExpr(env, expr.b);\n if (a.kind === 'invalid' || b.kind === 'invalid')\n return qtiInvalid('subtract operand invalid', 'float', 'single');\n if (a.kind === 'null' || b.kind === 'null')\n return qtiNull('float', 'single');\n const na = toNumber(a);\n const nb = toNumber(b);\n if (!Number.isFinite(na) || !Number.isFinite(nb))\n return qtiInvalid('subtract operand is not a finite number', 'float', 'single');\n const out = na - nb;\n const subtractBaseType = a.baseType === 'integer' && b.baseType === 'integer' ? 'integer' : 'float';\n return Number.isFinite(out)\n ? qtiValue(subtractBaseType, 'single', out)\n : qtiInvalid('subtract result is not finite', 'float', 'single');\n }\n case 'expr.product': {\n let acc = 1;\n let allInteger = expr.values.length > 0;\n for (const op of expr.values) {\n const v = evalExpr(env, op);\n if (v.kind === 'invalid')\n return qtiInvalid('product operand invalid', 'float', 'single');\n if (v.kind === 'null')\n return qtiNull('float', 'single');\n const n = toNumber(v);\n if (!Number.isFinite(n))\n return qtiInvalid('product operand is not a finite number', 'float', 'single');\n if (v.baseType !== 'integer')\n allInteger = false;\n acc *= n;\n }\n return qtiValue(allInteger ? 'integer' : 'float', 'single', acc);\n }\n case 'expr.divide': {\n const a = evalExpr(env, expr.a);\n const b = evalExpr(env, expr.b);\n if (a.kind === 'invalid' || b.kind === 'invalid')\n return qtiInvalid('divide operand invalid', 'float', 'single');\n if (a.kind === 'null' || b.kind === 'null')\n return qtiNull('float', 'single');\n const na = toNumber(a);\n const nb = toNumber(b);\n if (!Number.isFinite(na) || !Number.isFinite(nb))\n return qtiInvalid('divide operand is not a finite number', 'float', 'single');\n const out = na / nb;\n return Number.isFinite(out) ? qtiValue('float', 'single', out) : qtiInvalid('divide result is not finite', 'float', 'single');\n }\n case 'expr.max': {\n if (expr.values.length === 0)\n return qtiInvalid('max requires at least one operand');\n const nums = [];\n let allInteger = true;\n for (const op of expr.values) {\n const v = evalExpr(env, op);\n if (v.kind === 'invalid')\n return qtiInvalid('max operand invalid', 'float', 'single');\n if (v.kind === 'null')\n return qtiNull('float', 'single');\n const n = toNumber(v);\n if (!Number.isFinite(n))\n return qtiInvalid('max operand is not a finite number', 'float', 'single');\n if (v.baseType !== 'integer')\n allInteger = false;\n nums.push(n);\n }\n return qtiValue(allInteger ? 'integer' : 'float', 'single', Math.max(...nums));\n }\n case 'expr.min': {\n if (expr.values.length === 0)\n return qtiInvalid('min requires at least one operand');\n const nums = [];\n let allInteger = true;\n for (const op of expr.values) {\n const v = evalExpr(env, op);\n if (v.kind === 'invalid')\n return qtiInvalid('min operand invalid', 'float', 'single');\n if (v.kind === 'null')\n return qtiNull('float', 'single');\n const n = toNumber(v);\n if (!Number.isFinite(n))\n return qtiInvalid('min operand is not a finite number', 'float', 'single');\n if (v.baseType !== 'integer')\n allInteger = false;\n nums.push(n);\n }\n return qtiValue(allInteger ? 'integer' : 'float', 'single', Math.min(...nums));\n }\n case 'expr.round': {\n const v = evalExpr(env, expr.value);\n if (v.kind === 'invalid')\n return qtiInvalid('round operand invalid', 'float', 'single');\n if (v.kind === 'null')\n return qtiNull('float', 'single');\n const n = toNumber(v);\n if (!Number.isFinite(n))\n return qtiInvalid('round operand is not a finite number', 'float', 'single');\n return qtiValue('float', 'single', Math.round(n));\n }\n case 'expr.truncate': {\n const v = evalExpr(env, expr.value);\n if (v.kind === 'invalid')\n return qtiInvalid('truncate operand invalid', 'float', 'single');\n if (v.kind === 'null')\n return qtiNull('float', 'single');\n const n = toNumber(v);\n if (!Number.isFinite(n))\n return qtiInvalid('truncate operand is not a finite number', 'float', 'single');\n return qtiValue('float', 'single', Math.trunc(n));\n }\n case 'expr.mapOutcome': {\n const decl = env.ctx.getDeclaration(expr.identifier);\n if (!decl?.mapping)\n return qtiValue('float', 'single', 0);\n const current = decl.value;\n if (current.kind !== 'value')\n return qtiValue('float', 'single', decl.mapping.defaultValue ?? 0);\n const normalizeMappingKey = (k) => {\n const raw = String(k ?? '').trim();\n if (decl.baseType === 'pair') {\n const parts = raw.split(/\\s+/).filter(Boolean);\n if (parts.length === 2)\n return [...parts].sort().join(' ');\n return raw;\n }\n if (decl.baseType === 'directedPair') {\n const parts = raw.split(/\\s+/).filter(Boolean);\n if (parts.length >= 2)\n return `${parts[0]} ${parts[1]}`;\n return raw;\n }\n return raw;\n };\n const mapOne = (key) => {\n const k = normalizeMappingKey(key);\n const entry = decl.mapping.entries[k] ??\n ((decl.baseType === 'string' || decl.baseType === 'identifier') ? decl.mapping.entries[k.toLowerCase()] : undefined);\n return entry ? Number(entry.mappedValue) : Number(decl.mapping.defaultValue ?? 0);\n };\n let raw = 0;\n if (decl.cardinality === 'multiple' || decl.cardinality === 'ordered') {\n const arr = Array.isArray(current.value) ? current.value : [current.value];\n raw = arr.map((x) => mapOne(String(x))).reduce((a, b) => a + b, 0);\n }\n else {\n raw = mapOne(String(current.value));\n }\n const lower = decl.mapping.lowerBound;\n const upper = decl.mapping.upperBound;\n if (typeof lower === 'number' && raw < lower)\n raw = lower;\n if (typeof upper === 'number' && raw > upper)\n raw = upper;\n return qtiValue('float', 'single', raw);\n }\n case 'expr.mapResponse': {\n const decl = env.ctx.getDeclaration(expr.identifier);\n if (!decl?.mapping)\n return qtiValue('float', 'single', 0);\n const current = decl.value;\n if (current.kind !== 'value')\n return qtiValue('float', 'single', decl.mapping.defaultValue ?? 0);\n const normalizeMappingKey = (k) => {\n const raw = String(k ?? '').trim();\n if (decl.baseType === 'pair') {\n const parts = raw.split(/\\s+/).filter(Boolean);\n if (parts.length === 2)\n return [...parts].sort().join(' ');\n return raw;\n }\n if (decl.baseType === 'directedPair') {\n const parts = raw.split(/\\s+/).filter(Boolean);\n if (parts.length >= 2)\n return `${parts[0]} ${parts[1]}`;\n return raw;\n }\n return raw;\n };\n const mapOne = (key) => {\n const k = normalizeMappingKey(key);\n const entry = decl.mapping.entries[k] ??\n ((decl.baseType === 'string' || decl.baseType === 'identifier') ? decl.mapping.entries[k.toLowerCase()] : undefined);\n return entry ? Number(entry.mappedValue) : Number(decl.mapping.defaultValue ?? 0);\n };\n let raw = 0;\n if (decl.cardinality === 'multiple' || decl.cardinality === 'ordered') {\n const arr = Array.isArray(current.value) ? current.value : [current.value];\n raw = arr.map((x) => mapOne(String(x))).reduce((a, b) => a + b, 0);\n }\n else {\n raw = mapOne(String(current.value));\n }\n const lower = decl.mapping.lowerBound;\n const upper = decl.mapping.upperBound;\n if (typeof lower === 'number' && raw < lower)\n raw = lower;\n if (typeof upper === 'number' && raw > upper)\n raw = upper;\n return qtiValue('float', 'single', raw);\n }\n case 'expr.mapResponsePoint': {\n const decl = env.ctx.getDeclaration(expr.identifier);\n if (!decl?.areaMapping)\n return qtiValue('float', 'single', 0);\n const current = decl.value;\n if (current.kind !== 'value')\n return qtiValue('float', 'single', decl.areaMapping.defaultValue ?? 0);\n const numsFromCoords = (coords) => (coords.match(/-?\\d+(?:\\.\\d+)?/g) || []).map((s) => Number(s));\n const parsePoint = (v) => {\n if (typeof v !== 'string')\n return null;\n const parts = v.trim().split(/\\s+/);\n if (parts.length < 2)\n return null;\n const x = Number(parts[0]);\n const y = Number(parts[1]);\n if (!Number.isFinite(x) || !Number.isFinite(y))\n return null;\n return { x, y };\n };\n const inRect = (p, coords) => {\n const [x1, y1, x2, y2] = numsFromCoords(coords);\n if (![x1, y1, x2, y2].every((n) => Number.isFinite(n)))\n return false;\n const minX = Math.min(x1, x2);\n const maxX = Math.max(x1, x2);\n const minY = Math.min(y1, y2);\n const maxY = Math.max(y1, y2);\n return p.x >= minX && p.x <= maxX && p.y >= minY && p.y <= maxY;\n };\n const inCircle = (p, coords) => {\n const [cx, cy, r] = numsFromCoords(coords);\n if (![cx, cy, r].every((n) => Number.isFinite(n)))\n return false;\n const dx = p.x - cx;\n const dy = p.y - cy;\n return dx * dx + dy * dy <= r * r;\n };\n const inEllipse = (p, coords) => {\n const [cx, cy, rx, ry] = numsFromCoords(coords);\n if (![cx, cy, rx, ry].every((n) => Number.isFinite(n)))\n return false;\n if (rx === 0 || ry === 0)\n return false;\n const dx = (p.x - cx) / rx;\n const dy = (p.y - cy) / ry;\n return dx * dx + dy * dy <= 1;\n };\n // Ray casting algorithm for point in polygon\n const inPoly = (p, coords) => {\n const ns = numsFromCoords(coords);\n if (ns.length < 6 || ns.length % 2 !== 0)\n return false;\n let inside = false;\n for (let i = 0, j = ns.length - 2; i < ns.length; j = i, i += 2) {\n const xi = ns[i];\n const yi = ns[i + 1];\n const xj = ns[j];\n const yj = ns[j + 1];\n const intersects = (yi > p.y) !== (yj > p.y) &&\n p.x < ((xj - xi) * (p.y - yi)) / (yj - yi) + xi;\n if (intersects)\n inside = !inside;\n }\n return inside;\n };\n const mapOnePoint = (pt) => {\n for (const e of decl.areaMapping.entries) {\n switch (e.shape) {\n case 'rect':\n if (inRect(pt, e.coords))\n return Number(e.mappedValue);\n break;\n case 'circle':\n if (inCircle(pt, e.coords))\n return Number(e.mappedValue);\n break;\n case 'ellipse':\n if (inEllipse(pt, e.coords))\n return Number(e.mappedValue);\n break;\n case 'poly':\n if (inPoly(pt, e.coords))\n return Number(e.mappedValue);\n break;\n case 'default':\n // default always matches if reached\n return Number(e.mappedValue);\n default:\n break;\n }\n }\n return Number(decl.areaMapping.defaultValue || 0);\n };\n let raw = 0;\n if (decl.cardinality === 'multiple' || decl.cardinality === 'ordered') {\n const arr = Array.isArray(current.value) ? current.value : [current.value];\n raw = arr\n .map((x) => parsePoint(x))\n .filter((p) => Boolean(p))\n .map(mapOnePoint)\n .reduce((a, b) => a + b, 0);\n }\n else {\n const p = parsePoint(current.value);\n raw = p ? mapOnePoint(p) : Number(decl.areaMapping.defaultValue || 0);\n }\n const lower = decl.areaMapping.lowerBound;\n const upper = decl.areaMapping.upperBound;\n if (typeof lower === 'number' && raw < lower)\n raw = lower;\n if (typeof upper === 'number' && raw > upper)\n raw = upper;\n return qtiValue('float', 'single', raw);\n }\n case 'expr.randomInteger': {\n // QTI 2.2.2: pick integer in [min,max] satisfying min + step*n\n const minRaw = toNumber(evalExpr(env, expr.min));\n const maxRaw = toNumber(evalExpr(env, expr.max));\n const stepRaw = expr.step ? toNumber(evalExpr(env, expr.step)) : 1;\n const min = Math.ceil(minRaw);\n const max = Math.floor(maxRaw);\n const step = Math.floor(stepRaw);\n if (!Number.isFinite(min) || !Number.isFinite(max) || !Number.isFinite(step) || step <= 0) {\n return qtiNull();\n }\n if (min > max)\n return qtiNull();\n const count = Math.floor((max - min) / step) + 1;\n const k = Math.floor(env.rng() * count);\n return qtiValue('integer', 'single', min + step * k);\n }\n case 'expr.randomFloat': {\n // QTI 2.2.2: pick float in [min,max]\n const min = toNumber(evalExpr(env, expr.min));\n const max = toNumber(evalExpr(env, expr.max));\n if (!Number.isFinite(min) || !Number.isFinite(max))\n return qtiNull();\n if (min > max)\n return qtiNull();\n const n = min + env.rng() * (max - min);\n return qtiValue('float', 'single', n);\n }\n case 'expr.mathConstant': {\n const v = expr.name === 'pi' ? Math.PI : Math.E;\n return qtiValue('float', 'single', v);\n }\n case 'expr.integerToFloat': {\n const v = evalExpr(env, expr.value);\n if (v.kind === 'invalid')\n return qtiNull();\n if (v.kind === 'null')\n return qtiNull();\n const n = toNumber(v);\n if (!Number.isFinite(n))\n return qtiNull();\n return qtiValue('float', 'single', n);\n }\n case 'expr.integerModulus': {\n const aV = evalExpr(env, expr.a);\n const bV = evalExpr(env, expr.b);\n if (aV.kind === 'invalid' || bV.kind === 'invalid')\n return qtiNull();\n if (aV.kind === 'null' || bV.kind === 'null')\n return qtiNull();\n const a = Math.trunc(toNumber(aV));\n const b = Math.trunc(toNumber(bV));\n if (!Number.isFinite(a) || !Number.isFinite(b) || b === 0)\n return qtiNull();\n // Mathematical modulus: a - b*floor(a/b)\n const m = a - b * Math.floor(a / b);\n return qtiValue('integer', 'single', m);\n }\n case 'expr.gcd': {\n const vals = expr.values.map((e) => evalExpr(env, e));\n if (vals.some((v) => v.kind === 'invalid' || v.kind === 'null'))\n return qtiNull();\n const ints = vals.map((v) => Math.trunc(toNumber(v)));\n if (ints.some((n) => !Number.isFinite(n)))\n return qtiNull();\n const gcd2 = (x, y) => {\n x = Math.abs(x);\n y = Math.abs(y);\n while (y !== 0) {\n const t = x % y;\n x = y;\n y = t;\n }\n return x;\n };\n return qtiValue('integer', 'single', ints.reduce((acc, n) => gcd2(acc, n), 0));\n }\n case 'expr.lcm': {\n const vals = expr.values.map((e) => evalExpr(env, e));\n if (vals.some((v) => v.kind === 'invalid' || v.kind === 'null'))\n return qtiNull();\n const ints = vals.map((v) => Math.trunc(toNumber(v)));\n if (ints.some((n) => !Number.isFinite(n)))\n return qtiNull();\n const gcd2 = (x, y) => {\n x = Math.abs(x);\n y = Math.abs(y);\n while (y !== 0) {\n const t = x % y;\n x = y;\n y = t;\n }\n return x;\n };\n const lcm2 = (x, y) => {\n x = Math.abs(x);\n y = Math.abs(y);\n if (x === 0 || y === 0)\n return 0;\n return (x / gcd2(x, y)) * y;\n };\n return qtiValue('integer', 'single', ints.reduce((acc, n) => lcm2(acc, n), 1));\n }\n case 'expr.mathOperator': {\n const args = expr.values.map((e) => evalExpr(env, e));\n if (args.some((v) => v.kind === 'invalid' || v.kind === 'null'))\n return qtiNull();\n const nums = args.map((v) => toNumber(v));\n if (nums.some((n) => !Number.isFinite(n)))\n return qtiNull();\n const one = () => nums[0];\n const two = () => [nums[0], nums[1]];\n const safeReciprocal = (x) => (x === 0 ? null : 1 / x);\n const inUnit = (x) => x >= -1 && x <= 1;\n let result = null;\n let resultBaseType = 'float';\n switch (expr.name) {\n case 'sin':\n result = Math.sin(one());\n break;\n case 'cos':\n result = Math.cos(one());\n break;\n case 'tan':\n result = Math.tan(one());\n break;\n case 'sec': {\n const r = safeReciprocal(Math.cos(one()));\n result = r;\n break;\n }\n case 'csc': {\n const r = safeReciprocal(Math.sin(one()));\n result = r;\n break;\n }\n case 'cot': {\n const r = safeReciprocal(Math.tan(one()));\n result = r;\n break;\n }\n case 'asin': {\n const x = one();\n result = inUnit(x) ? Math.asin(x) : null;\n break;\n }\n case 'acos': {\n const x = one();\n result = inUnit(x) ? Math.acos(x) : null;\n break;\n }\n case 'atan':\n result = Math.atan(one());\n break;\n case 'atan2': {\n if (nums.length < 2)\n return qtiNull();\n const [y, x] = two();\n result = Math.atan2(y, x);\n break;\n }\n case 'asec': {\n const inv = safeReciprocal(one());\n result = inv !== null && inUnit(inv) ? Math.acos(inv) : null;\n break;\n }\n case 'acsc': {\n const inv = safeReciprocal(one());\n result = inv !== null && inUnit(inv) ? Math.asin(inv) : null;\n break;\n }\n case 'acot': {\n const inv = safeReciprocal(one());\n result = inv !== null ? Math.atan(inv) : null;\n break;\n }\n case 'sinh':\n result = Math.sinh(one());\n break;\n case 'cosh':\n result = Math.cosh(one());\n break;\n case 'tanh':\n result = Math.tanh(one());\n break;\n case 'sech': {\n const r = safeReciprocal(Math.cosh(one()));\n result = r;\n break;\n }\n case 'csch': {\n const r = safeReciprocal(Math.sinh(one()));\n result = r;\n break;\n }\n case 'coth': {\n const r = safeReciprocal(Math.tanh(one()));\n result = r;\n break;\n }\n case 'log': {\n const x = one();\n result = x > 0 ? Math.log10(x) : null;\n break;\n }\n case 'ln': {\n const x = one();\n result = x > 0 ? Math.log(x) : null;\n break;\n }\n case 'exp':\n result = Math.exp(one());\n break;\n case 'abs':\n result = Math.abs(one());\n break;\n case 'signum':\n resultBaseType = 'integer';\n result = Math.sign(one());\n break;\n case 'floor':\n resultBaseType = 'integer';\n result = Math.floor(one());\n break;\n case 'ceil':\n resultBaseType = 'integer';\n result = Math.ceil(one());\n break;\n case 'toDegrees':\n result = (one() * 180) / Math.PI;\n break;\n case 'toRadians':\n result = (one() * Math.PI) / 180;\n break;\n default:\n return qtiNull();\n }\n if (result === null || !Number.isFinite(result))\n return qtiNull();\n return qtiValue(resultBaseType, 'single', result);\n }\n case 'expr.roundTo': {\n const value = toNumber(evalExpr(env, expr.value));\n const figures = Math.floor(toNumber(evalExpr(env, expr.figures)));\n if (!Number.isFinite(value) || !Number.isFinite(figures) || figures < 0)\n return qtiNull();\n try {\n const d = new Decimal(value);\n const rounded = expr.roundingMode === 'significantFigures'\n ? d.toSignificantDigits(figures, Decimal.ROUND_HALF_UP)\n : d.toDecimalPlaces(figures, Decimal.ROUND_HALF_UP);\n return qtiValue('float', 'single', Number(rounded.toString()));\n }\n catch {\n return qtiNull();\n }\n }\n default: {\n // If we missed a node kind, fail loudly.\n return qtiInvalid(`Unhandled expression kind: ${expr.kind}`);\n }\n }\n}\n//# sourceMappingURL=evaluator.js.map","export class OperatorRegistry {\n constructor() {\n this.ops = new Map();\n }\n register(name, impl) {\n this.ops.set(name.toLowerCase(), impl);\n }\n get(name) {\n return this.ops.get(name.toLowerCase());\n }\n}\n//# sourceMappingURL=operators.js.map","import { applyLookupTable, evalExpr } from '../eval/evaluator.js';\nimport { qtiInvalid, toBoolean } from '../runtime/value.js';\nclass QtiExit extends Error {\n constructor(scope) {\n super(`QTI exit (${scope})`);\n this.scope = scope;\n }\n}\nclass QtiTemplateConstraintRestart extends Error {\n constructor(constraintId) {\n super(`QTI templateConstraint restart (${constraintId})`);\n this.constraintId = constraintId;\n }\n}\nexport function execProgram(env, program) {\n const MAX_TEMPLATE_CONSTRAINT_ITERATIONS = 100;\n const constraintAttempts = new Map();\n let i = 0;\n while (i < program.statements.length) {\n try {\n execStatement(env, program.statements[i]);\n i++;\n }\n catch (e) {\n if (e instanceof QtiExit)\n return;\n if (e instanceof QtiTemplateConstraintRestart) {\n // Spec: if the constraint is false (including NULL), reset template variables to default and restart.\n // We cap retries to avoid endless loops; after the max is reached we keep defaults and continue\n // after the failing templateConstraint.\n const next = (constraintAttempts.get(e.constraintId) ?? 0) + 1;\n constraintAttempts.set(e.constraintId, next);\n resetTemplateVarsToDefault(env.ctx);\n if (next >= MAX_TEMPLATE_CONSTRAINT_ITERATIONS) {\n i++; // continue after the templateConstraint\n }\n else {\n i = 0; // restart templateProcessing from the beginning\n }\n continue;\n }\n throw e;\n }\n }\n}\nexport function execStatement(env, s) {\n switch (s.kind) {\n case 'stmt.exitResponse': {\n throw new QtiExit('response');\n }\n case 'stmt.exitTemplate': {\n throw new QtiExit('template');\n }\n case 'stmt.exitTest': {\n // This is primarily meaningful at test-processing scope.\n // For the item-only player, the best approximation is to stop executing the current program.\n throw new QtiExit('test');\n }\n case 'stmt.setOutcomeValue': {\n const v = evalExpr(env, s.expr);\n env.ctx.setValue(s.identifier, v);\n return;\n }\n case 'stmt.lookupOutcomeValue': {\n const d = env.ctx.getDeclaration(s.identifier);\n if (!d?.lookupTable) {\n env.ctx.setValue(s.identifier, qtiInvalid('lookupOutcomeValue requires matchTable/interpolationTable on outcomeDeclaration'));\n return;\n }\n const source = evalExpr(env, s.expr);\n const v = applyLookupTable(source, d.lookupTable);\n env.ctx.setValue(s.identifier, v);\n return;\n }\n case 'stmt.setResponseValue': {\n const v = evalExpr(env, s.expr);\n env.ctx.setValue(s.identifier, v);\n return;\n }\n case 'stmt.setTemplateValue': {\n const v = evalExpr(env, s.expr);\n env.ctx.setValue(s.identifier, v);\n return;\n }\n case 'stmt.setCorrectResponse': {\n const v = evalExpr(env, s.expr);\n env.ctx.setCorrectResponse(s.identifier, v);\n return;\n }\n case 'stmt.setDefaultValue': {\n env.ctx.resetToDefault(s.identifier);\n return;\n }\n case 'stmt.templateConstraint': {\n const cond = evalExpr(env, s.expr);\n const ok = toBoolean(cond);\n if (ok)\n return;\n throw new QtiTemplateConstraintRestart(s.id);\n }\n case 'stmt.responseCondition': {\n execCondition(env, s);\n return;\n }\n case 'stmt.outcomeCondition': {\n execCondition(env, s);\n return;\n }\n case 'stmt.templateCondition': {\n execCondition(env, s);\n return;\n }\n default:\n // fail loudly for unhandled statements\n throw new Error(`Unhandled statement kind: ${s.kind}`);\n }\n}\nfunction execCondition(env, s) {\n const testBranch = (branch) => {\n const cond = evalExpr(env, branch.condition);\n const ok = toBoolean(cond);\n if (!ok)\n return false;\n for (const st of branch.statements)\n execStatement(env, st);\n return true;\n };\n if (s.ifBranch && testBranch(s.ifBranch))\n return;\n for (const b of s.elseIfBranches || []) {\n if (testBranch(b))\n return;\n }\n if (s.elseBranch) {\n for (const st of s.elseBranch.statements)\n execStatement(env, st);\n }\n}\nfunction resetTemplateVarsToDefault(ctx) {\n const decls = ctx.getAll();\n for (const d of Object.values(decls)) {\n if (!d?.isTemplate)\n continue;\n ctx.resetToDefault(d.identifier);\n }\n}\n//# sourceMappingURL=execute.js.map","import { qtiNull } from './value.js';\nexport class DeclarationContext {\n constructor(decls) {\n this.decls = decls;\n }\n getDeclaration(id) {\n return this.decls[id];\n }\n getValue(id) {\n return this.decls[id]?.value ?? qtiNull();\n }\n getDefaultValue(id) {\n return this.decls[id]?.defaultValue ?? qtiNull();\n }\n setValue(id, value) {\n const d = this.decls[id];\n if (!d)\n return;\n d.value = conformNumericBaseType(value, d);\n }\n resetToDefault(id) {\n const d = this.decls[id];\n if (!d)\n return;\n // defaultValue is optional in declarations; missing defaults reset to NULL.\n const dv = d.defaultValue ?? qtiNull(d.baseType, d.cardinality);\n d.value = cloneQtiValue(dv);\n }\n getCorrectResponse(id) {\n return this.decls[id]?.correctResponse ?? qtiNull();\n }\n setCorrectResponse(id, value) {\n const d = this.decls[id];\n if (!d)\n return;\n d.correctResponse = value;\n }\n getAll() {\n return this.decls;\n }\n}\n/**\n * A variable holds values of its declared base-type. Numeric operators are allowed to widen\n * (integer + integer may yield float), so an assignment can arrive one numeric type away from\n * the declaration — and `match` is base-type strict, so an integer variable holding a float\n * silently stops matching integers. Restamp those; leave a fractional value assigned to an\n * integer declaration alone, since that is an authoring error the item should surface, not\n * something to round away.\n */\nfunction conformNumericBaseType(value, declaration) {\n if (value.kind !== 'value')\n return value;\n const declared = declaration.baseType;\n if (declared !== 'integer' && declared !== 'float')\n return value;\n if (value.baseType !== 'integer' && value.baseType !== 'float')\n return value;\n if (value.baseType === declared)\n return value;\n if (typeof value.value !== 'number' || !Number.isFinite(value.value))\n return value;\n if (declared === 'integer' && !Number.isInteger(value.value))\n return value;\n return { ...value, baseType: declared };\n}\nfunction cloneQtiValue(v) {\n if (v.kind !== 'value')\n return v;\n if (Array.isArray(v.value)) {\n return { ...v, value: [...v.value] };\n }\n if (v.value && typeof v.value === 'object') {\n // Best-effort shallow clone; most QTI value shapes here are primitives/arrays.\n return { ...v, value: { ...v.value } };\n }\n return v;\n}\n//# sourceMappingURL=context.js.map","import { Qti2xAttributeNameMapper as e, Qti2xElementNameMapper as t, Qti3AttributeNameMapper as n, Qti3ElementNameMapper as r, assignProps as i, createSvelteMountController as a, detectQtiVersion as o } from \"@pie-qti/qti-common\";\nimport { parse as s } from \"node-html-parser\";\nimport { decodeXmlAttribute as c, isBlockedStylesheetCss as l, normalizeCssForPolicy as u, normalizeHeuristicsConfig as d, parseSrcsetCandidates as f } from \"@pie-qti/ims-cp-core\";\nimport { DeclarationContext as p, OperatorRegistry as m, buildOutcomeProcessingAst as h, buildResponseProcessingAst as g, buildTemplateProcessingAst as _, childElements as v, coerceBaseValue as y, evalExpr as b, execProgram as ee, findAssessmentItem as x, findDescendants as S, findFirstDescendant as te, getAttr as C, parseXml as ne, qtiNull as re, qtiValue as w, serializeXml as ie, toBoolean as ae, toNumber as oe, toStringValue as se } from \"@pie-qti/qti-processing\";\n//#region ../../node_modules/.bun/svelte@5.57.1/node_modules/svelte/src/internal/shared/utils.js\nvar ce = Array.isArray, le = Array.prototype.indexOf, ue = Array.prototype.includes, de = Array.from, fe = Object.defineProperty, pe = Object.getOwnPropertyDescriptor, me = Object.getOwnPropertyDescriptors, he = Object.prototype, ge = Array.prototype, _e = Object.getPrototypeOf, ve = Object.isExtensible, ye = () => {};\nfunction be(e) {\n\tfor (var t = 0; t < e.length; t++) e[t]();\n}\nfunction xe() {\n\tvar e, t;\n\treturn {\n\t\tpromise: new Promise((n, r) => {\n\t\t\te = n, t = r;\n\t\t}),\n\t\tresolve: e,\n\t\treject: t\n\t};\n}\n//#endregion\n//#region \\0@oxc-project+runtime@0.144.0/helpers/esm/typeof.js\nfunction Se(e) {\n\t\"@babel/helpers - typeof\";\n\treturn Se = typeof Symbol == \"function\" && typeof Symbol.iterator == \"symbol\" ? function(e) {\n\t\treturn typeof e;\n\t} : function(e) {\n\t\treturn e && typeof Symbol == \"function\" && e.constructor === Symbol && e !== Symbol.prototype ? \"symbol\" : typeof e;\n\t}, Se(e);\n}\n//#endregion\n//#region \\0@oxc-project+runtime@0.144.0/helpers/esm/toPrimitive.js\nfunction Ce(e, t) {\n\tif (Se(e) != \"object\" || !e) return e;\n\tvar n = e[Symbol.toPrimitive];\n\tif (n !== void 0) {\n\t\tvar r = n.call(e, t || \"default\");\n\t\tif (Se(r) != \"object\") return r;\n\t\tthrow TypeError(\"@@toPrimitive must return a primitive value.\");\n\t}\n\treturn (t === \"string\" ? String : Number)(e);\n}\n//#endregion\n//#region \\0@oxc-project+runtime@0.144.0/helpers/esm/toPropertyKey.js\nfunction we(e) {\n\tvar t = Ce(e, \"string\");\n\treturn Se(t) == \"symbol\" ? t : t + \"\";\n}\n//#endregion\n//#region \\0@oxc-project+runtime@0.144.0/helpers/esm/defineProperty.js\nfunction Te(e, t, n) {\n\treturn (t = we(t)) in e ? Object.defineProperty(e, t, {\n\t\tvalue: n,\n\t\tenumerable: !0,\n\t\tconfigurable: !0,\n\t\twritable: !0\n\t}) : e[t] = n, e;\n}\n//#endregion\n//#region ../../node_modules/.bun/svelte@5.57.1/node_modules/svelte/src/internal/client/constants.js\nvar Ee = 1 << 24, De = 1024, Oe = 2048, ke = 4096, Ae = 8192, je = 16384, Me = 32768, Ne = 1 << 25, Pe = 65536, Fe = 1 << 19, Ie = 1 << 20, Le = 1 << 25, Re = 1 << 21, ze = 1 << 22, Be = 1 << 23, Ve = Symbol(\"$state\"), He = Symbol(\"component\"), Ue = Symbol(\"legacy props\"), We = Symbol(\"\"), Ge = Symbol(\"attributes\"), Ke = Symbol(\"class\"), qe = Symbol(\"style\"), Je = Symbol(\"text\"), Ye = Symbol(\"form reset\"), Xe = new class extends Error {\n\tconstructor(...e) {\n\t\tsuper(...e), Te(this, \"name\", \"StaleReactionError\"), Te(this, \"message\", \"The reaction that called `getAbortSignal()` was re-run or destroyed\");\n\t}\n}(), Ze = !!globalThis.document?.contentType && /* @__PURE__ */ globalThis.document.contentType.includes(\"xml\"), Qe = {}, T = Symbol(\"uninitialized\"), $e = \"http://www.w3.org/2000/svg\", et = \"http://www.w3.org/1998/Math/MathML\";\nfunction tt() {\n\tconsole.warn(\"https://svelte.dev/e/derived_inert\");\n}\nfunction nt(e) {\n\tconsole.warn(\"https://svelte.dev/e/hydration_mismatch\");\n}\nfunction rt() {\n\tconsole.warn(\"https://svelte.dev/e/select_multiple_invalid_value\");\n}\nfunction it() {\n\tconsole.warn(\"https://svelte.dev/e/svelte_boundary_reset_noop\");\n}\n//#endregion\n//#region ../../node_modules/.bun/svelte@5.57.1/node_modules/svelte/src/internal/client/dom/hydration.js\nvar E = !1;\nfunction at(e) {\n\tE = e;\n}\nvar D;\nfunction O(e) {\n\tif (e === null) throw nt(), Qe;\n\treturn D = e;\n}\nfunction ot() {\n\treturn O(/* @__PURE__ */ lr(D));\n}\nfunction k(e) {\n\tif (E) {\n\t\tif (/* @__PURE__ */ lr(D) !== null) throw nt(), Qe;\n\t\tD = e;\n\t}\n}\nfunction st(e = 1) {\n\tif (E) {\n\t\tfor (var t = e, n = D; t--;) n = /* @__PURE__ */ lr(n);\n\t\tD = n;\n\t}\n}\nfunction ct(e = !0) {\n\tfor (var t = 0, n = D;;) {\n\t\tif (n.nodeType === 8) {\n\t\t\tvar r = n.data;\n\t\t\tif (r === \"]\") {\n\t\t\t\tif (t === 0) return n;\n\t\t\t\t--t;\n\t\t\t} else (r === \"[\" || r === \"[!\" || r[0] === \"[\" && !isNaN(Number(r.slice(1)))) && (t += 1);\n\t\t}\n\t\tvar i = /* @__PURE__ */ lr(n);\n\t\te && n.remove(), n = i;\n\t}\n}\nfunction lt(e) {\n\tif (!e || e.nodeType !== 8) throw nt(), Qe;\n\treturn e.data;\n}\n//#endregion\n//#region ../../node_modules/.bun/svelte@5.57.1/node_modules/svelte/src/internal/client/reactivity/equality.js\nfunction ut(e) {\n\treturn e === this.v;\n}\nfunction dt(e, t) {\n\treturn e == e ? e !== t || typeof e == \"object\" && !!e || typeof e == \"function\" : t == t;\n}\nfunction ft(e) {\n\treturn !dt(e, this.v);\n}\n//#endregion\n//#region ../../node_modules/.bun/svelte@5.57.1/node_modules/svelte/src/internal/client/errors.js\nfunction pt() {\n\tthrow Error(\"https://svelte.dev/e/async_derived_orphan\");\n}\nfunction mt(e, t, n) {\n\tthrow Error(\"https://svelte.dev/e/each_key_duplicate\");\n}\nfunction ht(e) {\n\tthrow Error(\"https://svelte.dev/e/effect_in_teardown\");\n}\nfunction gt() {\n\tthrow Error(\"https://svelte.dev/e/effect_in_unowned_derived\");\n}\nfunction _t(e) {\n\tthrow Error(\"https://svelte.dev/e/effect_orphan\");\n}\nfunction vt() {\n\tthrow Error(\"https://svelte.dev/e/effect_update_depth_exceeded\");\n}\nfunction yt(e) {\n\tthrow Error(\"https://svelte.dev/e/props_invalid_value\");\n}\nfunction bt() {\n\tthrow Error(\"https://svelte.dev/e/state_descriptors_fixed\");\n}\nfunction xt() {\n\tthrow Error(\"https://svelte.dev/e/state_prototype_fixed\");\n}\nfunction St() {\n\tthrow Error(\"https://svelte.dev/e/state_unsafe_mutation\");\n}\nfunction Ct() {\n\tthrow Error(\"https://svelte.dev/e/svelte_boundary_reset_onerror\");\n}\n//#endregion\n//#region ../../node_modules/.bun/svelte@5.57.1/node_modules/svelte/src/internal/client/context.js\nvar wt = null;\nfunction Tt(e) {\n\twt = e;\n}\nfunction Et(e, t = !1, n) {\n\twt = {\n\t\tp: wt,\n\t\ti: !1,\n\t\tc: null,\n\t\te: null,\n\t\ts: e,\n\t\tx: null,\n\t\tr: W,\n\t\tl: null\n\t};\n}\nfunction Dt(e) {\n\tvar t = wt, n = t.e;\n\tif (n !== null) {\n\t\tt.e = null;\n\t\tfor (var r of n) Er(r);\n\t}\n\treturn e !== void 0 && (t.x = e), t.i = !0, wt = t.p, Ot(e);\n}\nfunction Ot(e = {}) {\n\treturn fe(e, He, { value: !0 }), e;\n}\nfunction kt() {\n\treturn !0;\n}\n//#endregion\n//#region ../../node_modules/.bun/svelte@5.57.1/node_modules/svelte/src/internal/client/dom/task.js\nvar At = [];\nfunction jt() {\n\tvar e = At;\n\tAt = [], be(e);\n}\nfunction Mt(e) {\n\tif (At.length === 0 && !sn) {\n\t\tvar t = At;\n\t\tqueueMicrotask(() => {\n\t\t\tt === At && jt();\n\t\t});\n\t}\n\tAt.push(e);\n}\n//#endregion\n//#region ../../node_modules/.bun/svelte@5.57.1/node_modules/svelte/src/internal/client/reactivity/status.js\nvar Nt = ~(Oe | ke | De);\nfunction A(e, t) {\n\te.f = e.f & Nt | t;\n}\nfunction Pt(e) {\n\te.f & 512 || e.deps === null ? A(e, De) : A(e, ke);\n}\n//#endregion\n//#region ../../node_modules/.bun/svelte@5.57.1/node_modules/svelte/src/internal/client/reactivity/utils.js\nfunction Ft(e, t, n) {\n\te.f & 2048 ? t.add(e) : e.f & 4096 && n.add(e), A(e, De);\n}\n//#endregion\n//#region ../../node_modules/.bun/svelte@5.57.1/node_modules/svelte/src/internal/client/dom/elements/misc.js\nfunction It(e, t) {\n\tif (t) {\n\t\tlet t = document.body;\n\t\te.autofocus = !0, Mt(() => {\n\t\t\tdocument.activeElement === t && e.focus();\n\t\t});\n\t}\n}\nvar Lt = !1;\nfunction Rt() {\n\tLt || (Lt = !0, document.addEventListener(\"reset\", (e) => {\n\t\tPromise.resolve().then(() => {\n\t\t\tif (!e.defaultPrevented) for (let t of e.target.elements) t[Ye]?.();\n\t\t});\n\t}, { capture: !0 }));\n}\n//#endregion\n//#region ../../node_modules/.bun/svelte@5.57.1/node_modules/svelte/src/internal/client/dom/elements/bindings/shared.js\nfunction zt(e) {\n\tvar t = U, n = W;\n\tYr(null), Xr(null);\n\ttry {\n\t\treturn e();\n\t} finally {\n\t\tYr(t), Xr(n);\n\t}\n}\n//#endregion\n//#region ../../node_modules/.bun/svelte@5.57.1/node_modules/svelte/src/internal/client/reactivity/async.js\nfunction Bt(e, t, n, r) {\n\tlet i = kt() ? Wt : qt;\n\tvar a = e.filter((e) => !e.settled), o = t.map(i);\n\tif (n.length === 0 && a.length === 0) {\n\t\tr(o);\n\t\treturn;\n\t}\n\tvar s = W, c = Vt(), l = a.length === 1 ? a[0].promise : a.length > 1 ? Promise.all(a.map((e) => e.promise)) : null;\n\tfunction u(e) {\n\t\tif (!(s.f & 16384)) {\n\t\t\tc();\n\t\t\ttry {\n\t\t\t\tr([...o, ...e]);\n\t\t\t} catch (e) {\n\t\t\t\tyr(e, s);\n\t\t\t}\n\t\t\tHt();\n\t\t}\n\t}\n\tvar d = Ut();\n\tif (n.length === 0) {\n\t\tl.then(() => u([])).finally(d);\n\t\treturn;\n\t}\n\tfunction f() {\n\t\tPromise.all(n.map((e) => /* @__PURE__ */ Kt(e))).then(u).catch((e) => yr(e, s)).finally(d);\n\t}\n\tl ? l.then(() => {\n\t\tc(), f(), Ht();\n\t}) : f();\n}\nfunction Vt() {\n\tvar e = W, t = U, n = wt, r = I;\n\treturn function(i = !0) {\n\t\tXr(e), Yr(t), Tt(n), i && !(e.f & 16384) && (r?.activate(), r?.apply());\n\t};\n}\nfunction Ht(e = !0) {\n\tXr(null), Yr(null), Tt(null), e && I?.deactivate();\n}\nfunction Ut() {\n\tvar e = W, t = e.b, n = I, r = !!t?.is_rendered();\n\treturn t?.update_pending_count(1, n), n.increment(r, e), () => {\n\t\tt?.update_pending_count(-1, n), n.decrement(r, e);\n\t};\n}\n/*#__NO_SIDE_EFFECTS__*/\nfunction Wt(e) {\n\tvar t = 2 | Oe;\n\treturn W !== null && (W.f |= Fe), {\n\t\tctx: wt,\n\t\tdeps: null,\n\t\teffects: null,\n\t\tequals: ut,\n\t\tf: t,\n\t\tfn: e,\n\t\treactions: null,\n\t\trv: 0,\n\t\tv: T,\n\t\twv: 0,\n\t\tparent: W,\n\t\tac: null\n\t};\n}\nvar Gt = Symbol(\"obsolete\");\n/*#__NO_SIDE_EFFECTS__*/\nfunction Kt(e, t, n) {\n\tlet r = W;\n\tr === null && pt();\n\tvar i = void 0, a = Kn(T), o = !U, s = /* @__PURE__ */ new Set();\n\treturn kr(() => {\n\t\tvar t = W, n = xe();\n\t\ti = n.promise;\n\t\ttry {\n\t\t\tPromise.resolve(e()).then(n.resolve, (e) => {\n\t\t\t\te !== Xe && n.reject(e);\n\t\t\t}).finally(Ht);\n\t\t} catch (e) {\n\t\t\tn.reject(e), Ht();\n\t\t}\n\t\tvar c = I;\n\t\tif (o) {\n\t\t\tif (t.f & 32768) var l = Ut();\n\t\t\tif (r.b?.is_rendered()) c.async_deriveds.get(t)?.reject(Gt);\n\t\t\telse for (let e of s.values()) e.reject(Gt);\n\t\t\ts.add(n), c.async_deriveds.set(t, n);\n\t\t}\n\t\tlet u = (e, t = void 0) => {\n\t\t\tl?.(), s.delete(n), t !== Gt && (c.activate(), t ? (a.f |= Be, Xn(a, t)) : (a.f & 8388608 && (a.f ^= Be), Xn(a, e)), c.deactivate());\n\t\t};\n\t\tn.promise.then(u, (e) => u(null, e || \"unknown\"));\n\t}), wr(() => {\n\t\tfor (let e of s) e.reject(Gt);\n\t}), new Promise((e) => {\n\t\tfunction t(n) {\n\t\t\tfunction r() {\n\t\t\t\tn === i ? e(a) : t(i);\n\t\t\t}\n\t\t\tn.then(r, r);\n\t\t}\n\t\tt(i);\n\t});\n}\n/*#__NO_SIDE_EFFECTS__*/\nfunction j(e) {\n\tlet t = /* @__PURE__ */ Wt(e);\n\treturn Qr(t), t;\n}\n/*#__NO_SIDE_EFFECTS__*/\nfunction qt(e) {\n\tlet t = /* @__PURE__ */ Wt(e);\n\treturn t.equals = ft, t;\n}\nfunction Jt(e) {\n\tvar t = e.effects;\n\tif (t !== null) {\n\t\te.effects = null;\n\t\tfor (var n = 0; n < t.length; n += 1) H(t[n]);\n\t}\n}\nfunction Yt(e) {\n\tvar t, n = W, r = e.parent;\n\tif (!Kr && r !== null && e.v !== T && r.f & 24576) return tt(), e.v;\n\tXr(r);\n\ttry {\n\t\tJt(e), t = ui(e);\n\t} finally {\n\t\tXr(n);\n\t}\n\treturn t;\n}\nfunction Xt(e) {\n\tvar t = Yt(e);\n\tif (!e.equals(t) && (e.wv = si(), (!I?.is_fork || e.deps === null) && (I === null ? e.v = t : (I.capture(e, t, !0), rn?.capture(e, t, !0)), e.deps === null))) {\n\t\tA(e, De);\n\t\treturn;\n\t}\n\tKr || (an === null ? Pt(e) : (Cr() || I?.is_fork) && an.set(e, t));\n}\nfunction Zt(e) {\n\tif (e.effects !== null) for (let t of e.effects) (t.teardown || t.ac) && (t.teardown?.(), t.ac !== null && zt(() => {\n\t\tt.ac.abort(Xe), t.ac = null;\n\t}), t.fn !== null && (t.teardown = ye), pi(t, 0), Fr(t));\n}\nfunction Qt(e) {\n\tif (e.effects !== null) for (let t of e.effects) t.teardown && t.fn !== null && mi(t);\n}\n//#endregion\n//#region \\0@oxc-project+runtime@0.144.0/helpers/esm/checkPrivateRedeclaration.js\nfunction $t(e, t) {\n\tif (t.has(e)) throw TypeError(\"Cannot initialize the same private elements twice on an object\");\n}\n//#endregion\n//#region \\0@oxc-project+runtime@0.144.0/helpers/esm/classPrivateMethodInitSpec.js\nfunction en(e, t) {\n\t$t(e, t), t.add(e);\n}\n//#endregion\n//#region \\0@oxc-project+runtime@0.144.0/helpers/esm/classPrivateFieldInitSpec.js\nfunction M(e, t, n) {\n\t$t(e, t), t.set(e, n);\n}\n//#endregion\n//#region \\0@oxc-project+runtime@0.144.0/helpers/esm/assertClassBrand.js\nfunction N(e, t, n) {\n\tif (typeof e == \"function\" ? e === t : e.has(t)) return arguments.length < 3 ? t : n;\n\tthrow TypeError(\"Private element is not present on this object\");\n}\n//#endregion\n//#region \\0@oxc-project+runtime@0.144.0/helpers/esm/classPrivateFieldSet2.js\nfunction P(e, t, n) {\n\treturn e.set(N(e, t), n), n;\n}\n//#endregion\n//#region \\0@oxc-project+runtime@0.144.0/helpers/esm/classPrivateFieldGet2.js\nfunction F(e, t) {\n\treturn e.get(N(e, t));\n}\n//#endregion\n//#region ../../node_modules/.bun/svelte@5.57.1/node_modules/svelte/src/internal/client/reactivity/batch.js\nvar tn, nn = null, I = null, rn = null, an = null, on = null, sn = !1, cn = !1, ln = null, un = null, dn = 0, fn = 1, pn = /* @__PURE__ */ new WeakMap(), mn = /* @__PURE__ */ new WeakMap(), hn = /* @__PURE__ */ new WeakMap(), gn = /* @__PURE__ */ new WeakMap(), _n = /* @__PURE__ */ new WeakMap(), vn = /* @__PURE__ */ new WeakMap(), yn = /* @__PURE__ */ new WeakMap(), bn = /* @__PURE__ */ new WeakMap(), xn = /* @__PURE__ */ new WeakMap(), Sn = /* @__PURE__ */ new WeakMap(), Cn = /* @__PURE__ */ new WeakMap(), wn = /* @__PURE__ */ new WeakMap(), Tn = /* @__PURE__ */ new WeakMap(), En = /* @__PURE__ */ new WeakMap(), Dn = /* @__PURE__ */ new WeakMap(), L = /* @__PURE__ */ new WeakSet(), On = class e {\n\tconstructor() {\n\t\ten(this, L), Te(this, \"id\", fn++), M(this, pn, !1), Te(this, \"linked\", !0), M(this, mn, null), M(this, hn, null), Te(this, \"async_deriveds\", /* @__PURE__ */ new Map()), Te(this, \"current\", /* @__PURE__ */ new Map()), Te(this, \"previous\", /* @__PURE__ */ new Map()), M(this, gn, /* @__PURE__ */ new Set()), M(this, _n, /* @__PURE__ */ new Set()), M(this, vn, 0), M(this, yn, /* @__PURE__ */ new Map()), M(this, bn, null), M(this, xn, []), M(this, Sn, []), M(this, Cn, /* @__PURE__ */ new Set()), M(this, wn, /* @__PURE__ */ new Set()), M(this, Tn, /* @__PURE__ */ new Map()), M(this, En, /* @__PURE__ */ new Set()), Te(this, \"is_fork\", !1), M(this, Dn, !1), nn === null ? nn = this : (P(hn, nn, this), P(mn, this, nn)), nn = this;\n\t}\n\tskip_effect(e) {\n\t\tF(Tn, this).has(e) || F(Tn, this).set(e, {\n\t\t\td: [],\n\t\t\tm: []\n\t\t}), F(En, this).delete(e);\n\t}\n\tunskip_effect(e, t = (e) => this.schedule(e)) {\n\t\tvar n = F(Tn, this).get(e);\n\t\tif (n) {\n\t\t\tF(Tn, this).delete(e);\n\t\t\tfor (var r of n.d) A(r, Oe), t(r);\n\t\t\tfor (r of n.m) A(r, ke), t(r);\n\t\t}\n\t\tF(En, this).add(e);\n\t}\n\tcapture(e, t, n = !1) {\n\t\te.v !== T && !this.previous.has(e) && this.previous.set(e, e.v), e.f & 8388608 || (this.current.set(e, [t, n]), an?.set(e, t)), this.is_fork || (e.v = t);\n\t}\n\tactivate() {\n\t\tI = this;\n\t}\n\tdeactivate() {\n\t\tI = null, an = null;\n\t}\n\tflush() {\n\t\ttry {\n\t\t\tcn = !0, I = this, N(L, this, jn).call(this);\n\t\t} finally {\n\t\t\tdn = 0, on = null, ln = null, un = null, cn = !1, I = null, an = null, Wn.clear();\n\t\t}\n\t}\n\tdiscard() {\n\t\tfor (let e of F(_n, this)) e(this);\n\t\tF(_n, this).clear();\n\t\tfor (let e of this.async_deriveds.values()) e.reject(Gt);\n\t\tN(L, this, In).call(this), F(bn, this)?.resolve();\n\t}\n\tregister_created_effect(e) {\n\t\tF(Sn, this).push(e);\n\t}\n\tincrement(e, t) {\n\t\tif (P(vn, this, F(vn, this) + 1), e) {\n\t\t\tlet e = F(yn, this).get(t) ?? 0;\n\t\t\tF(yn, this).set(t, e + 1);\n\t\t}\n\t}\n\tdecrement(e, t) {\n\t\tif (P(vn, this, F(vn, this) - 1), e) {\n\t\t\tlet e = F(yn, this).get(t) ?? 0;\n\t\t\te === 1 ? F(yn, this).delete(t) : F(yn, this).set(t, e - 1);\n\t\t}\n\t\tF(Dn, this) || (P(Dn, this, !0), Mt(() => {\n\t\t\tP(Dn, this, !1), this.linked && this.flush();\n\t\t}));\n\t}\n\ttransfer_effects(e, t) {\n\t\tfor (let t of e) F(Cn, this).add(t);\n\t\tfor (let e of t) F(wn, this).add(e);\n\t\te.clear(), t.clear();\n\t}\n\toncommit(e) {\n\t\tF(gn, this).add(e);\n\t}\n\tondiscard(e) {\n\t\tF(_n, this).add(e);\n\t}\n\tsettled() {\n\t\treturn (F(bn, this) ?? P(bn, this, xe())).promise;\n\t}\n\tstatic ensure() {\n\t\tif (I === null) {\n\t\t\tlet t = I = new e();\n\t\t\t!cn && Mt(() => {\n\t\t\t\tF(pn, t) || t.flush();\n\t\t\t});\n\t\t}\n\t\treturn I;\n\t}\n\tapply() {\n\t\tan = null;\n\t}\n\tschedule(e) {\n\t\tif (on = e, e.b?.is_pending && e.f & 16777228 && !(e.f & 32768)) {\n\t\t\te.b.defer_effect(e);\n\t\t\treturn;\n\t\t}\n\t\tF(xn, this).push(e);\n\t}\n};\ntn = On;\nfunction kn() {\n\tif (this.is_fork) return !0;\n\tfor (let n of F(yn, this).keys()) {\n\t\tfor (var e = n, t = !1; e.parent !== null;) {\n\t\t\tif (F(Tn, this).has(e)) {\n\t\t\t\tt = !0;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\te = e.parent;\n\t\t}\n\t\tif (!t) return !0;\n\t}\n\treturn !1;\n}\nfunction An() {\n\tvar e = [];\n\tfor (let i of F(xn, this)) if (!(i.f & 16384 || !(i.f & 6144))) {\n\t\tfor (var t = i, n = !1; t.parent !== null;) {\n\t\t\tt = t.parent;\n\t\t\tvar r = t.f;\n\t\t\tif (r & 96) {\n\t\t\t\tif (!(r & 1024)) {\n\t\t\t\t\tn = !0;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tt.f ^= De;\n\t\t\t}\n\t\t}\n\t\tn || e.push(t);\n\t}\n\treturn P(xn, this, []), e;\n}\nfunction jn() {\n\tP(pn, this, !0);\n\tfor (let e of F(Cn, this)) F(wn, this).delete(e), A(e, Oe), this.schedule(e);\n\tfor (let e of F(wn, this)) A(e, ke), this.schedule(e);\n\tthis.apply();\n\tfor (var e = ln = [], t = [], n = un = []; F(xn, this).length > 0;) {\n\t\tdn++ > 1e3 && (N(L, this, In).call(this), Ln());\n\t\tfor (let n of N(L, this, An).call(this)) try {\n\t\t\tN(L, this, Mn).call(this, n, e, t);\n\t\t} catch (e) {\n\t\t\tthrow Hn(n), N(L, this, kn).call(this) || this.discard(), e;\n\t\t}\n\t}\n\tif (I = null, n.length > 0) {\n\t\tvar r = tn.ensure();\n\t\tfor (let e of n) r.schedule(e);\n\t}\n\tif (ln = null, un = null, N(L, this, kn).call(this)) {\n\t\tN(L, this, Fn).call(this, t), N(L, this, Fn).call(this, e);\n\t\tfor (let [e, t] of F(Tn, this)) Vn(e, t);\n\t\tn.length > 0 && N(L, I, jn).call(I);\n\t\treturn;\n\t}\n\tlet i = N(L, this, Nn).call(this);\n\tif (i) {\n\t\tN(L, this, Fn).call(this, t), N(L, this, Fn).call(this, e), N(L, i, Pn).call(i, this);\n\t\treturn;\n\t}\n\tF(Cn, this).clear(), F(wn, this).clear();\n\tfor (let e of F(gn, this)) e(this);\n\tF(gn, this).clear(), rn = this, zn(t), zn(e), rn = null, F(bn, this)?.resolve();\n\tvar a = I;\n\tif (F(vn, this) === 0 && (F(xn, this).length === 0 || a !== null) && N(L, this, In).call(this), F(xn, this).length > 0) {\n\t\tif (a !== null) {\n\t\t\tfor (let e of F(xn, this)) F(xn, a).push(e);\n\t\t\tP(xn, this, []);\n\t\t} else a = this;\n\t}\n\ta !== null && (Wn.clear(), N(L, a, jn).call(a));\n}\nfunction Mn(e, t, n) {\n\te.f ^= De;\n\tfor (var r = e.first; r !== null;) {\n\t\tvar i = r.f, a = !!(i & 96);\n\t\tif (!(a && i & 1024 || i & 8192 || F(Tn, this).has(r)) && r.fn !== null) {\n\t\t\ta ? r.f ^= De : i & 4 ? t.push(r) : ci(r) && (i & 16 && F(wn, this).add(r), mi(r));\n\t\t\tvar o = r.first;\n\t\t\tif (o !== null) {\n\t\t\t\tr = o;\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t}\n\t\tfor (; r !== null;) {\n\t\t\tvar s = r.next;\n\t\t\tif (s !== null) {\n\t\t\t\tr = s;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tr = r.parent;\n\t\t}\n\t}\n}\nfunction Nn() {\n\tfor (var e = F(mn, this); e !== null;) {\n\t\tif (!e.is_fork) {\n\t\t\tfor (let [t, [, n]] of this.current) if (e.current.has(t) && !n) return e;\n\t\t}\n\t\te = F(mn, e);\n\t}\n\treturn null;\n}\nfunction Pn(e) {\n\tfor (let [t, n] of e.current) !this.previous.has(t) && e.previous.has(t) && this.previous.set(t, e.previous.get(t)), this.current.set(t, n);\n\tfor (let [t, n] of e.async_deriveds) {\n\t\tlet e = this.async_deriveds.get(t);\n\t\te && n.promise.then(e.resolve).catch(e.reject);\n\t}\n\te.async_deriveds.clear(), this.transfer_effects(F(Cn, e), F(wn, e));\n\tlet t = (e) => {\n\t\tvar n = e.reactions;\n\t\tif (n !== null && !(e.f & 2 && !(e.f & 6144))) for (let e of n) {\n\t\t\tvar r = e.f;\n\t\t\tif (r & 2) t(e);\n\t\t\telse {\n\t\t\t\tvar i = e;\n\t\t\t\tr & 4194320 && !this.async_deriveds.has(i) && (F(wn, this).delete(i), A(i, Oe), this.schedule(i));\n\t\t\t}\n\t\t}\n\t};\n\tfor (let e of this.current.keys()) t(e);\n\tthis.oncommit(() => e.discard()), N(L, e, In).call(e), I = this, N(L, this, jn).call(this);\n}\nfunction Fn(e) {\n\tfor (var t = 0; t < e.length; t += 1) Ft(e[t], F(Cn, this), F(wn, this));\n}\nfunction In() {\n\tif (this.linked) {\n\t\tvar e = F(mn, this), t = F(hn, this);\n\t\te === null || P(hn, e, t), t === null ? nn = e : P(mn, t, e), this.linked = !1;\n\t}\n}\nfunction Ln() {\n\ttry {\n\t\tvt();\n\t} catch (e) {\n\t\tyr(e, on);\n\t}\n}\nvar Rn = null;\nfunction zn(e) {\n\tvar t = e.length;\n\tif (t !== 0) {\n\t\tfor (var n = 0; n < t;) {\n\t\t\tvar r = e[n++];\n\t\t\tif (!(r.f & 24576) && ci(r) && (Rn = /* @__PURE__ */ new Set(), mi(r), r.deps === null && r.first === null && r.nodes === null && r.teardown === null && r.ac === null && Rr(r), Rn?.size > 0)) {\n\t\t\t\tWn.clear();\n\t\t\t\tfor (let e of Rn) {\n\t\t\t\t\tif (e.f & 24576) continue;\n\t\t\t\t\tlet t = [e], n = e.parent;\n\t\t\t\t\tfor (; n !== null;) Rn.has(n) && (Rn.delete(n), t.push(n)), n = n.parent;\n\t\t\t\t\tfor (let e = t.length - 1; e >= 0; e--) {\n\t\t\t\t\t\tlet n = t[e];\n\t\t\t\t\t\tn.f & 24576 || mi(n);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tRn.clear();\n\t\t\t}\n\t\t}\n\t\tRn = null;\n\t}\n}\nfunction Bn(e) {\n\tI.schedule(e);\n}\nfunction Vn(e, t) {\n\tif (!(e.f & 32 && e.f & 1024)) {\n\t\te.f & 2048 ? t.d.push(e) : e.f & 4096 && t.m.push(e), A(e, De);\n\t\tfor (var n = e.first; n !== null;) Vn(n, t), n = n.next;\n\t}\n}\nfunction Hn(e) {\n\tA(e, De);\n\tfor (var t = e.first; t !== null;) Hn(t), t = t.next;\n}\n//#endregion\n//#region ../../node_modules/.bun/svelte@5.57.1/node_modules/svelte/src/internal/client/reactivity/sources.js\nvar Un = /* @__PURE__ */ new Set(), Wn = /* @__PURE__ */ new Map(), Gn = !1;\nfunction Kn(e, t) {\n\treturn {\n\t\tf: 0,\n\t\tv: e,\n\t\treactions: null,\n\t\tequals: ut,\n\t\trv: 0,\n\t\twv: 0\n\t};\n}\n/*#__NO_SIDE_EFFECTS__*/\nfunction R(e, t) {\n\tlet n = Kn(e, t);\n\treturn Qr(n), n;\n}\n/*#__NO_SIDE_EFFECTS__*/\nfunction qn(e, t = !1, n = !0) {\n\tlet r = Kn(e);\n\treturn t || (r.equals = ft), r;\n}\nfunction z(e, t, n = !1) {\n\treturn U !== null && (!Jr || U.f & 131072) && kt() && U.f & 4325394 && (Zr === null || !Zr.has(e)) && St(), Xn(e, n ? er(t) : t, un);\n}\nvar Jn = null, Yn = 0;\nfunction Xn(e, t, n = null) {\n\tif (!e.equals(t)) {\n\t\tKr ? Wn.set(e, t) : Wn.has(e) || Wn.set(e, e.v);\n\t\tvar r = On.ensure();\n\t\tif (r.capture(e, t), e.f & 2) {\n\t\t\tlet t = e;\n\t\t\te.f & 2048 && Yt(t), an === null && Pt(t);\n\t\t}\n\t\te.wv = si(), Jn = null, Yn = 0, $n(e, Oe, n), Jn = null, kt() && W !== null && W.f & 1024 && !(W.f & 96) && (ti === null ? ni([e]) : ti.push(e)), !r.is_fork && Un.size > 0 && !Gn && Zn();\n\t}\n\treturn t;\n}\nfunction Zn() {\n\tGn = !1;\n\tfor (let e of Un) {\n\t\te.f & 1024 && A(e, ke);\n\t\tlet t;\n\t\ttry {\n\t\t\tt = ci(e);\n\t\t} catch {\n\t\t\tt = !0;\n\t\t}\n\t\tt && mi(e);\n\t}\n\tUn.clear();\n}\nfunction Qn(e) {\n\tz(e, e.v + 1);\n}\nfunction $n(e, t, n) {\n\tvar r = e.reactions;\n\tif (r !== null) {\n\t\tvar i = kt(), a = r.length;\n\t\tif (Yn += a, Yn > 1e5 && Jn === null && (Jn = /* @__PURE__ */ new Set()), Jn !== null) {\n\t\t\tif (Jn.has(e)) return;\n\t\t\tJn.add(e);\n\t\t}\n\t\tfor (var o = 0; o < a; o++) {\n\t\t\tvar s = r[o], c = s.f;\n\t\t\tif (!(!i && s === W)) {\n\t\t\t\tvar l = (c & Oe) === 0;\n\t\t\t\tif (l && A(s, t), c & 131072) Un.add(s);\n\t\t\t\telse if (c & 2) {\n\t\t\t\t\tvar u = s;\n\t\t\t\t\tan?.delete(u), $n(u, ke, n);\n\t\t\t\t} else if (l) {\n\t\t\t\t\tvar d = s;\n\t\t\t\t\tc & 16 && Rn !== null && Rn.add(d), n === null ? Bn(d) : n.push(d);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n}\nfunction er(e) {\n\tif (typeof e != \"object\" || !e || Ve in e || He in e) return e;\n\tlet t = _e(e);\n\tif (t !== he && t !== ge) return e;\n\tvar n = /* @__PURE__ */ new Map(), r = ce(e), i = /* @__PURE__ */ R(0), a = null, o = ai, s = (e) => {\n\t\tif (ai === o) return e();\n\t\tvar t = U, n = ai;\n\t\tYr(null), oi(o);\n\t\tvar r = e();\n\t\treturn Yr(t), oi(n), r;\n\t};\n\treturn r && n.set(\"length\", /* @__PURE__ */ R(e.length, a)), new Proxy(e, {\n\t\tdefineProperty(e, t, r) {\n\t\t\t(!(\"value\" in r) || r.configurable === !1 || r.enumerable === !1 || r.writable === !1) && bt();\n\t\t\tvar i = n.get(t);\n\t\t\treturn i === void 0 ? s(() => {\n\t\t\t\tvar e = /* @__PURE__ */ R(r.value, a);\n\t\t\t\treturn n.set(t, e), e;\n\t\t\t}) : z(i, r.value, !0), !0;\n\t\t},\n\t\tdeleteProperty(e, t) {\n\t\t\tvar r = n.get(t);\n\t\t\tif (r === void 0) {\n\t\t\t\tif (t in e) {\n\t\t\t\t\tlet e = s(() => /* @__PURE__ */ R(T, a));\n\t\t\t\t\tn.set(t, e), Qn(i);\n\t\t\t\t}\n\t\t\t} else z(r, T), Qn(i);\n\t\t\treturn !0;\n\t\t},\n\t\tget(t, r, i) {\n\t\t\tif (r === Ve) return e;\n\t\t\tvar o = n.get(r), c = r in t;\n\t\t\tif (o === void 0 && (!c || pe(t, r)?.writable) && (o = s(() => /* @__PURE__ */ R(er(c ? t[r] : T), a)), n.set(r, o)), o !== void 0) {\n\t\t\t\tvar l = G(o);\n\t\t\t\treturn l === T ? void 0 : l;\n\t\t\t}\n\t\t\treturn Reflect.get(t, r, i);\n\t\t},\n\t\tgetOwnPropertyDescriptor(e, t) {\n\t\t\tthis.has?.(e, t);\n\t\t\tvar r = Reflect.getOwnPropertyDescriptor(e, t), i = n.get(t);\n\t\t\tif (i !== void 0) {\n\t\t\t\tvar a = G(i);\n\t\t\t\tif (a === T) return;\n\t\t\t\tif (r && \"value\" in r) r.value = a;\n\t\t\t\telse return {\n\t\t\t\t\tenumerable: !0,\n\t\t\t\t\tconfigurable: !0,\n\t\t\t\t\tvalue: a,\n\t\t\t\t\twritable: !0\n\t\t\t\t};\n\t\t\t}\n\t\t\treturn r;\n\t\t},\n\t\thas(e, t) {\n\t\t\tif (t === Ve) return !0;\n\t\t\tvar r = n.get(t), i = r !== void 0 && r.v !== T || Reflect.has(e, t);\n\t\t\treturn (r !== void 0 || W !== null && (!i || pe(e, t)?.writable)) && (r === void 0 && (r = s(() => /* @__PURE__ */ R(i ? er(e[t]) : T, a)), n.set(t, r)), G(r) === T) ? !1 : i;\n\t\t},\n\t\tset(e, t, o, c) {\n\t\t\tvar l = n.get(t), u = t in e;\n\t\t\tif (r && t === \"length\") for (var d = o; d < l.v; d += 1) {\n\t\t\t\tvar f = n.get(d + \"\");\n\t\t\t\tf === void 0 ? d in e && (f = s(() => /* @__PURE__ */ R(T, a)), n.set(d + \"\", f)) : z(f, T);\n\t\t\t}\n\t\t\tif (l === void 0) (!u || pe(e, t)?.writable) && (l = s(() => /* @__PURE__ */ R(void 0, a)), z(l, er(o)), n.set(t, l));\n\t\t\telse {\n\t\t\t\tu = l.v !== T;\n\t\t\t\tvar p = s(() => er(o));\n\t\t\t\tz(l, p);\n\t\t\t}\n\t\t\tvar m = Reflect.getOwnPropertyDescriptor(e, t);\n\t\t\tif (m?.set && m.set.call(c, o), !u) {\n\t\t\t\tif (r && typeof t == \"string\") {\n\t\t\t\t\tvar h = n.get(\"length\"), g = Number(t);\n\t\t\t\t\tNumber.isInteger(g) && g >= h.v && z(h, g + 1);\n\t\t\t\t}\n\t\t\t\tQn(i);\n\t\t\t}\n\t\t\treturn !0;\n\t\t},\n\t\townKeys(e) {\n\t\t\tG(i);\n\t\t\tvar t = Reflect.ownKeys(e).filter((e) => {\n\t\t\t\tvar t = n.get(e);\n\t\t\t\treturn t === void 0 || t.v !== T;\n\t\t\t});\n\t\t\tfor (var [r, a] of n) a.v !== T && !(r in e) && t.push(r);\n\t\t\treturn t;\n\t\t},\n\t\tsetPrototypeOf() {\n\t\t\txt();\n\t\t}\n\t});\n}\nfunction tr(e) {\n\ttry {\n\t\tif (typeof e == \"object\" && e && Ve in e) return e[Ve];\n\t} catch {}\n\treturn e;\n}\nfunction nr(e, t) {\n\treturn Object.is(tr(e), tr(t));\n}\nvar rr, ir, ar, or;\nfunction sr() {\n\tif (rr === void 0) {\n\t\trr = window, ir = /Firefox/.test(navigator.userAgent);\n\t\tvar e = Element.prototype, t = Node.prototype, n = Text.prototype;\n\t\tar = pe(t, \"firstChild\").get, or = pe(t, \"nextSibling\").get, ve(e) && (e[Ke] = void 0, e[Ge] = null, e[qe] = void 0, e.__e = void 0), ve(n) && (n[Je] = void 0);\n\t}\n}\nfunction B(e = \"\") {\n\treturn document.createTextNode(e);\n}\n/*@__NO_SIDE_EFFECTS__*/\nfunction cr(e) {\n\treturn ar.call(e);\n}\n/*@__NO_SIDE_EFFECTS__*/\nfunction lr(e) {\n\treturn or.call(e);\n}\nfunction ur(e, t) {\n\tif (!E) return /* @__PURE__ */ cr(e);\n\tvar n = /* @__PURE__ */ cr(D);\n\tif (n === null) n = D.appendChild(B());\n\telse if (t && n.nodeType !== 3) {\n\t\tvar r = B();\n\t\treturn n?.before(r), O(r), r;\n\t}\n\treturn t && _r(n), O(n), n;\n}\nfunction dr(e, t = !1) {\n\tif (!E) {\n\t\tvar n = /* @__PURE__ */ cr(e);\n\t\treturn n instanceof Comment && n.data === \"\" ? /* @__PURE__ */ lr(n) : n;\n\t}\n\tif (t) {\n\t\tif (D?.nodeType !== 3) {\n\t\t\tvar r = B();\n\t\t\treturn D?.before(r), O(r), r;\n\t\t}\n\t\t_r(D);\n\t}\n\treturn D;\n}\nfunction fr(e, t = !1) {\n\tif (!E) return /* @__PURE__ */ cr(e);\n\tvar n = ur(e, t);\n\treturn k(e), n;\n}\nfunction pr(e, t = 1, n = !1) {\n\tlet r = E ? D : e;\n\tfor (var i; t--;) i = r, r = /* @__PURE__ */ lr(r);\n\tif (!E) return r;\n\tif (n) {\n\t\tif (r?.nodeType !== 3) {\n\t\t\tvar a = B();\n\t\t\treturn r === null ? i?.after(a) : r.before(a), O(a), a;\n\t\t}\n\t\t_r(r);\n\t}\n\treturn O(r), r;\n}\nfunction mr(e) {\n\te.textContent = \"\";\n}\nfunction hr() {\n\treturn !1;\n}\nfunction gr(e, t, n) {\n\treturn t == null || t === \"http://www.w3.org/1999/xhtml\" ? n ? document.createElement(e, { is: n }) : document.createElement(e) : n ? document.createElementNS(t, e, { is: n }) : document.createElementNS(t, e);\n}\nfunction _r(e) {\n\tif (e.nodeValue.length < 65536) return;\n\tlet t = e.nextSibling;\n\tfor (; t !== null && t.nodeType === 3;) t.remove(), e.nodeValue += t.nodeValue, t = e.nextSibling;\n}\nfunction vr(e) {\n\tvar t = W;\n\tif (t === null) return U.f |= Be, e;\n\tif (!(t.f & 32768) && !(t.f & 4)) throw e;\n\tyr(e, t);\n}\nfunction yr(e, t) {\n\tif (!(t !== null && t.f & 16384)) {\n\t\tfor (; t !== null;) {\n\t\t\tif (t.f & 128 && !(t.f & 33570816)) {\n\t\t\t\tif (!(t.f & 32768)) throw e;\n\t\t\t\ttry {\n\t\t\t\t\tt.b.error(e);\n\t\t\t\t\treturn;\n\t\t\t\t} catch (t) {\n\t\t\t\t\te = t;\n\t\t\t\t}\n\t\t\t}\n\t\t\tt = t.parent;\n\t\t}\n\t\tthrow e;\n\t}\n}\n//#endregion\n//#region ../../node_modules/.bun/svelte@5.57.1/node_modules/svelte/src/internal/client/reactivity/effects.js\nfunction br(e) {\n\tW === null && (U === null && _t(e), gt()), Kr && ht(e);\n}\nfunction xr(e, t) {\n\tvar n = t.last;\n\tn === null ? t.last = t.first = e : (n.next = e, e.prev = n, t.last = e);\n}\nfunction Sr(e, t) {\n\tvar n = W;\n\tn !== null && n.f & 8192 && (e |= Ae);\n\tvar r = {\n\t\tctx: wt,\n\t\tdeps: null,\n\t\tnodes: null,\n\t\tf: e | Oe | 512,\n\t\tfirst: null,\n\t\tfn: t,\n\t\tlast: null,\n\t\tnext: null,\n\t\tparent: n,\n\t\tb: n && n.b,\n\t\tprev: null,\n\t\tteardown: null,\n\t\twv: 0,\n\t\tac: null\n\t};\n\tI?.register_created_effect(r);\n\tvar i = r;\n\tif (e & 4) ln === null ? On.ensure().schedule(r) : ln.push(r);\n\telse if (t !== null) {\n\t\ttry {\n\t\t\tmi(r);\n\t\t} catch (e) {\n\t\t\tthrow H(r), e;\n\t\t}\n\t\ti.deps === null && i.teardown === null && i.nodes === null && i.first === i.last && !(i.f & 524288) && (i = i.first, e & 16 && e & 65536 && i !== null && (i.f |= Pe));\n\t}\n\tif (i !== null && (i.parent = n, n !== null && xr(i, n), U !== null && U.f & 2 && !(e & 64))) {\n\t\tvar a = U;\n\t\t(a.effects ?? (a.effects = [])).push(i);\n\t}\n\treturn r;\n}\nfunction Cr() {\n\treturn U !== null && !Jr;\n}\nfunction wr(e) {\n\tlet t = Sr(8, null);\n\treturn A(t, De), t.teardown = e, t;\n}\nfunction Tr(e) {\n\tbr(\"$effect\");\n\tvar t = W.f;\n\tif (!U && t & 32 && wt !== null && !wt.i) {\n\t\tvar n = wt;\n\t\t(n.e ?? (n.e = [])).push(e);\n\t} else return Er(e);\n}\nfunction Er(e) {\n\treturn Sr(4 | Ie, e);\n}\nfunction Dr(e) {\n\tOn.ensure();\n\tlet t = Sr(64 | Fe, e);\n\treturn (e = {}) => new Promise((n) => {\n\t\te.outro ? zr(t, () => {\n\t\t\tH(t), n(void 0);\n\t\t}) : (H(t), n(void 0));\n\t});\n}\nfunction Or(e) {\n\treturn Sr(4, e);\n}\nfunction kr(e) {\n\treturn Sr(ze | Fe, e);\n}\nfunction Ar(e, t = 0) {\n\treturn Sr(8 | t, e);\n}\nfunction V(e, t = [], n = [], r = []) {\n\tBt(r, t, n, (t) => {\n\t\tSr(8, () => {\n\t\t\te(...t.map(G));\n\t\t});\n\t});\n}\nfunction jr(e, t = 0) {\n\treturn Sr(16 | t, e);\n}\nfunction Mr(e, t = 0) {\n\treturn Sr(Ee | t, e);\n}\nfunction Nr(e) {\n\treturn Sr(32 | Fe, e);\n}\nfunction Pr(e) {\n\tvar t = e.teardown;\n\tif (t !== null) {\n\t\tlet n = Kr, r = U;\n\t\tqr(!0), Yr(null);\n\t\ttry {\n\t\t\tt.call(null);\n\t\t} catch (t) {\n\t\t\tyr(t, e.parent);\n\t\t} finally {\n\t\t\tqr(n), Yr(r);\n\t\t}\n\t}\n}\nfunction Fr(e, t = !1) {\n\tvar n = e.first;\n\tfor (e.first = e.last = null; n !== null;) {\n\t\tlet e = n.ac;\n\t\te !== null && zt(() => {\n\t\t\te.abort(Xe);\n\t\t});\n\t\tvar r = n.next;\n\t\tn.f & 64 ? n.parent = null : H(n, t), n = r;\n\t}\n}\nfunction Ir(e) {\n\tfor (var t = e.first; t !== null;) {\n\t\tvar n = t.next;\n\t\tt.f & 32 || H(t), t = n;\n\t}\n}\nfunction H(e, t = !0) {\n\tvar n = !1;\n\t(t || e.f & 262144) && e.nodes !== null && e.nodes.end !== null && (Lr(e.nodes.start, e.nodes.end), n = !0), e.f |= Ne, Fr(e, t && !n), pi(e, 0);\n\tvar r = e.nodes && e.nodes.t;\n\tif (r !== null) for (let e of r) e.stop();\n\tPr(e), e.f ^= Ne, e.f |= je;\n\tvar i = e.parent;\n\ti !== null && i.first !== null && Rr(e), e.next = e.prev = e.teardown = e.ctx = e.deps = e.fn = e.nodes = e.ac = e.b = null;\n}\nfunction Lr(e, t) {\n\tfor (; e !== null;) {\n\t\tvar n = e === t ? null : /* @__PURE__ */ lr(e);\n\t\te.remove(), e = n;\n\t}\n}\nfunction Rr(e) {\n\tvar t = e.parent, n = e.prev, r = e.next;\n\tn !== null && (n.next = r), r !== null && (r.prev = n), t !== null && (t.first === e && (t.first = r), t.last === e && (t.last = n));\n}\nfunction zr(e, t, n = !0) {\n\tvar r = [];\n\te.f |= 256, Br(e, r, !0);\n\tvar i = () => {\n\t\tn && H(e), t && t();\n\t}, a = r.length;\n\tif (a > 0) {\n\t\tvar o = () => --a || i();\n\t\tfor (var s of r) s.out(o);\n\t} else i();\n}\nfunction Br(e, t, n) {\n\tif (!(e.f & 8192)) {\n\t\te.f ^= Ae;\n\t\tvar r = e.nodes && e.nodes.t;\n\t\tif (r !== null) for (let e of r) (e.is_global || n) && t.push(e);\n\t\tfor (var i = e.first; i !== null;) {\n\t\t\tvar a = i.next;\n\t\t\tif (!(i.f & 64)) {\n\t\t\t\tvar o = !!(i.f & 65536) || !!(i.f & 32) && !!(e.f & 16);\n\t\t\t\tBr(i, t, o ? n : !1);\n\t\t\t}\n\t\t\ti = a;\n\t\t}\n\t}\n}\nfunction Vr(e) {\n\te.f &= -257, Hr(e, !0);\n}\nfunction Hr(e, t) {\n\tif (!(e.f & 256) && e.f & 8192) {\n\t\te.f ^= Ae, e.f & 1024 || (A(e, Oe), On.ensure().schedule(e));\n\t\tfor (var n = e.first; n !== null;) {\n\t\t\tvar r = n.next, i = !!(n.f & 65536) || !!(n.f & 32);\n\t\t\tHr(n, i ? t : !1), n = r;\n\t\t}\n\t\tvar a = e.nodes && e.nodes.t;\n\t\tif (a !== null) for (let e of a) (e.is_global || t) && e.in();\n\t}\n}\nfunction Ur(e, t) {\n\tif (e.nodes) for (var n = e.nodes.start, r = e.nodes.end; n !== null;) {\n\t\tvar i = n === r ? null : /* @__PURE__ */ lr(n);\n\t\tt.append(n), n = i;\n\t}\n}\n//#endregion\n//#region ../../node_modules/.bun/svelte@5.57.1/node_modules/svelte/src/internal/client/legacy.js\nvar Wr = null, Gr = !1, Kr = !1;\nfunction qr(e) {\n\tKr = e;\n}\nvar U = null, Jr = !1;\nfunction Yr(e) {\n\tU = e;\n}\nvar W = null;\nfunction Xr(e) {\n\tW = e;\n}\nvar Zr = null;\nfunction Qr(e) {\n\tU !== null && (U.f & 2097152 || U.f & 2) && (Zr ?? (Zr = /* @__PURE__ */ new Set())).add(e);\n}\nvar $r = null, ei = 0, ti = null;\nfunction ni(e) {\n\tti = e;\n}\nvar ri = 1, ii = 0, ai = ii;\nfunction oi(e) {\n\tai = e;\n}\nfunction si() {\n\treturn ++ri;\n}\nfunction ci(e) {\n\tvar t = e.f;\n\tif (t & 2048) return !0;\n\tif (t & 4096) {\n\t\tfor (var n = e.deps, r = n.length, i = 0; i < r; i++) {\n\t\t\tvar a = n[i];\n\t\t\tif (ci(a) && Xt(a), a.wv > e.wv) return !0;\n\t\t}\n\t\tt & 512 && an === null && A(e, De);\n\t}\n\treturn !1;\n}\nfunction li(e, t, n = !0) {\n\tvar r = e.reactions;\n\tif (r !== null && !(Zr !== null && Zr.has(e))) for (var i = 0; i < r.length; i++) {\n\t\tvar a = r[i];\n\t\ta.f & 2 ? li(a, t, !1) : t === a && (n ? A(a, Oe) : a.f & 1024 && A(a, ke), Bn(a));\n\t}\n}\nfunction ui(e) {\n\tvar t = $r, n = ei, r = ti, i = U, a = Zr, o = wt, s = Jr, c = ai, l = e.f;\n\t$r = null, ei = 0, ti = null, U = l & 96 ? null : e, Zr = null, Tt(e.ctx), Jr = !1, ai = ++ii, e.ac !== null && (zt(() => {\n\t\te.ac.abort(Xe);\n\t}), e.ac = null);\n\ttry {\n\t\te.f |= Re;\n\t\tvar u = e.fn, d = u();\n\t\te.f |= Me;\n\t\tvar f = di(e);\n\t\tif (kt() && ti !== null && !Jr && f !== null && !(e.f & 6146)) for (var p = 0; p < ti.length; p++) li(ti[p], e);\n\t\tif (i !== null && i !== e) {\n\t\t\tif (ii++, i.deps !== null) for (let e = 0; e < n; e += 1) i.deps[e].rv = ii;\n\t\t\tif (t !== null) for (let e of t) e.rv = ii;\n\t\t\tti !== null && (r === null ? r = ti : r.push(...ti));\n\t\t}\n\t\treturn e.f & 8388608 && (e.f ^= Be), d;\n\t} catch (t) {\n\t\treturn di(e), vr(t);\n\t} finally {\n\t\te.f ^= Re, $r = t, ei = n, ti = r, U = i, Zr = a, Tt(o), Jr = s, ai = c;\n\t}\n}\nfunction di(e) {\n\tvar t = e.deps, n = I?.is_fork;\n\tif ($r !== null) {\n\t\tvar r;\n\t\tif (n || pi(e, ei), t !== null && ei > 0) for (t.length = ei + $r.length, r = 0; r < $r.length; r++) t[ei + r] = $r[r];\n\t\telse e.deps = t = $r;\n\t\tif (Cr() && e.f & 512) for (r = ei; r < t.length; r++) {\n\t\t\tvar i;\n\t\t\t((i = t[r]).reactions ?? (i.reactions = [])).push(e);\n\t\t}\n\t} else !n && t !== null && ei < t.length && (pi(e, ei), t.length = ei);\n\treturn t;\n}\nfunction fi(e, t) {\n\tlet n = t.reactions;\n\tif (n !== null) {\n\t\tvar r = le.call(n, e);\n\t\tif (r !== -1) {\n\t\t\tvar i = n.length - 1;\n\t\t\ti === 0 ? n = t.reactions = null : (n[r] = n[i], n.pop());\n\t\t}\n\t}\n\tif (n === null && t.f & 2 && ($r === null || !ue.call($r, t))) {\n\t\tvar a = t;\n\t\ta.f & 512 && (a.f ^= 512), a.v !== T && Pt(a), a.ac !== null && zt(() => {\n\t\t\ta.ac.abort(Xe), a.ac = null, A(a, Oe);\n\t\t}), Zt(a), pi(a, 0);\n\t}\n}\nfunction pi(e, t) {\n\tvar n = e.deps;\n\tif (n !== null) for (var r = t; r < n.length; r++) fi(e, n[r]);\n}\nfunction mi(e) {\n\tvar t = e.f;\n\tif (!(t & 16384)) {\n\t\tA(e, De);\n\t\tvar n = W, r = Gr;\n\t\tW = e, Gr = !(t & 96);\n\t\ttry {\n\t\t\tt & 16777232 ? Ir(e) : Fr(e), Pr(e);\n\t\t\tvar i = ui(e);\n\t\t\te.teardown = typeof i == \"function\" ? i : null, e.wv = ri;\n\t\t} finally {\n\t\t\tGr = r, W = n;\n\t\t}\n\t}\n}\nfunction G(e) {\n\tvar t = !!(e.f & 2);\n\tif (Wr?.add(e), U !== null && !Jr && !(W !== null && W.f & 16384) && (Zr === null || !Zr.has(e))) {\n\t\tvar n = U.deps;\n\t\tif (U.f & 2097152) e.rv < ii && (e.rv = ii, $r === null && n !== null && n[ei] === e ? ei++ : $r === null ? $r = [e] : $r.push(e));\n\t\telse {\n\t\t\tvar r;\n\t\t\t(r = U).deps ?? (r.deps = []), ue.call(U.deps, e) || U.deps.push(e);\n\t\t\tvar i = e.reactions;\n\t\t\ti === null ? e.reactions = [U] : ue.call(i, U) || i.push(U);\n\t\t}\n\t}\n\tif (Kr && Wn.has(e)) return Wn.get(e);\n\tif (t) {\n\t\tvar a = e;\n\t\tif (Kr) {\n\t\t\tvar o = a.v;\n\t\t\treturn (!(a.f & 1024) && a.reactions !== null || gi(a)) && (o = Yt(a)), Wn.set(a, o), o;\n\t\t}\n\t\tvar s = !(a.f & 512) && !Jr && U !== null && (Gr || !!(U.f & 512)), c = (a.f & Me) === 0;\n\t\tci(a) && (s && (a.f |= 512), Xt(a)), s && !c && (Qt(a), hi(a));\n\t}\n\tif (an?.has(e)) return an.get(e);\n\tif (e.f & 8388608) throw e.v;\n\treturn e.v;\n}\nfunction hi(e) {\n\tif (e.f |= 512, e.deps !== null) for (let t of e.deps) (t.reactions ?? (t.reactions = [])).push(e), t.f & 2 && !(t.f & 512) && (Qt(t), hi(t));\n}\nfunction gi(e) {\n\tif (e.v === T) return !0;\n\tif (e.deps === null) return !1;\n\tfor (let t of e.deps) if (Wn.has(t) || t.f & 2 && gi(t)) return !0;\n\treturn !1;\n}\nfunction _i(e) {\n\tvar t = Jr;\n\ttry {\n\t\treturn Jr = !0, e();\n\t} finally {\n\t\tJr = t;\n\t}\n}\nfunction vi(e) {\n\tif (!(typeof e != \"object\" || !e || e instanceof EventTarget)) {\n\t\tif (Ve in e) yi(e);\n\t\telse if (!Array.isArray(e)) for (let t in e) {\n\t\t\tlet n = e[t];\n\t\t\ttypeof n == \"object\" && n && Ve in n && yi(n);\n\t\t}\n\t}\n}\nfunction yi(e, t = /* @__PURE__ */ new Set()) {\n\tif (typeof e == \"object\" && e && !(e instanceof EventTarget) && !t.has(e)) {\n\t\tt.add(e), e instanceof Date && e.getTime();\n\t\tfor (let n in e) try {\n\t\t\tyi(e[n], t);\n\t\t} catch {}\n\t\tlet n = _e(e);\n\t\tif (n !== Object.prototype && n !== Array.prototype && n !== Map.prototype && n !== Set.prototype && n !== Date.prototype) {\n\t\t\tlet t = me(n);\n\t\t\tfor (let n in t) {\n\t\t\t\tlet r = t[n].get;\n\t\t\t\tif (r) try {\n\t\t\t\t\tr.call(e);\n\t\t\t\t} catch {}\n\t\t\t}\n\t\t}\n\t}\n}\nfunction bi(e) {\n\treturn e.endsWith(\"capture\") && e !== \"gotpointercapture\" && e !== \"lostpointercapture\";\n}\nvar xi = [\n\t\"beforeinput\",\n\t\"click\",\n\t\"change\",\n\t\"dblclick\",\n\t\"contextmenu\",\n\t\"focusin\",\n\t\"focusout\",\n\t\"input\",\n\t\"keydown\",\n\t\"keyup\",\n\t\"mousedown\",\n\t\"mousemove\",\n\t\"mouseout\",\n\t\"mouseover\",\n\t\"mouseup\",\n\t\"pointerdown\",\n\t\"pointermove\",\n\t\"pointerout\",\n\t\"pointerover\",\n\t\"pointerup\",\n\t\"touchend\",\n\t\"touchmove\",\n\t\"touchstart\"\n];\nfunction Si(e) {\n\treturn xi.includes(e);\n}\nvar Ci = /* @__PURE__ */ \"allowfullscreen.async.autofocus.autoplay.checked.controls.default.disabled.formnovalidate.indeterminate.inert.ismap.loop.multiple.muted.nomodule.novalidate.open.playsinline.readonly.required.reversed.seamless.selected.webkitdirectory.defer.disablepictureinpicture.disableremoteplayback\".split(\".\"), wi = {\n\tformnovalidate: \"formNoValidate\",\n\tismap: \"isMap\",\n\tnomodule: \"noModule\",\n\tplaysinline: \"playsInline\",\n\treadonly: \"readOnly\",\n\tdefaultvalue: \"defaultValue\",\n\tdefaultchecked: \"defaultChecked\",\n\tsrcobject: \"srcObject\",\n\tnovalidate: \"noValidate\",\n\tallowfullscreen: \"allowFullscreen\",\n\tdisablepictureinpicture: \"disablePictureInPicture\",\n\tdisableremoteplayback: \"disableRemotePlayback\"\n};\nfunction Ti(e) {\n\treturn e = e.toLowerCase(), wi[e] ?? e;\n}\n[...Ci];\nvar Ei = [\"touchstart\", \"touchmove\"];\nfunction Di(e) {\n\treturn Ei.includes(e);\n}\nvar Oi = [\n\t\"textarea\",\n\t\"script\",\n\t\"style\",\n\t\"title\"\n];\nfunction ki(e) {\n\treturn Oi.includes(e);\n}\n//#endregion\n//#region ../../node_modules/.bun/svelte@5.57.1/node_modules/svelte/src/internal/client/dev/css.js\nvar Ai = Symbol(\"events\"), ji = /* @__PURE__ */ new Set(), Mi = /* @__PURE__ */ new Set();\nfunction Ni(e, t, n, r = {}) {\n\tfunction i(e) {\n\t\tif (r.capture || zi.call(t, e), !e.cancelBubble) return zt(() => n?.call(this, e));\n\t}\n\treturn e.startsWith(\"pointer\") || e.startsWith(\"touch\") || e === \"wheel\" ? (i.__removed = !1, Mt(() => {\n\t\ti.__removed || t.addEventListener(e, i, r);\n\t})) : t.addEventListener(e, i, r), i;\n}\nfunction Pi(e, t, n, r, i) {\n\tvar a = {\n\t\tcapture: r,\n\t\tpassive: i\n\t}, o = Ni(e, t, n, a);\n\t(t === document.body || t === window || t === document || t instanceof HTMLMediaElement) && wr(() => {\n\t\to.__removed = !0, t.removeEventListener(e, o, a);\n\t});\n}\nfunction Fi(e, t, n) {\n\t(t[Ai] ?? (t[Ai] = {}))[e] = n;\n}\nfunction Ii(e) {\n\tfor (var t = 0; t < e.length; t++) ji.add(e[t]);\n\tfor (var n of Mi) n(e);\n}\nvar Li = null, Ri = !1;\nfunction zi(e) {\n\tvar t = this, n = t.ownerDocument, r = e.type, i = e.composedPath?.() || [], a = i[0] || e.target;\n\tLi = e, Ri || (Ri = !0, setTimeout(() => {\n\t\tRi = !1, Li = null;\n\t}));\n\tvar o = 0, s = Li === e && e[Ai];\n\tif (s) {\n\t\tvar c = i.indexOf(s);\n\t\tif (c !== -1 && (t === document || t === window)) {\n\t\t\te[Ai] = t;\n\t\t\treturn;\n\t\t}\n\t\tvar l = i.indexOf(t);\n\t\tif (l === -1) return;\n\t\tc <= l && (o = c);\n\t}\n\tif (a = i[o] || e.target, a !== t) {\n\t\tfe(e, \"currentTarget\", {\n\t\t\tconfigurable: !0,\n\t\t\tget() {\n\t\t\t\treturn a || n;\n\t\t\t}\n\t\t});\n\t\tvar u = U, d = W;\n\t\tYr(null), Xr(null);\n\t\ttry {\n\t\t\tfor (var f, p = []; a !== null && a !== t;) {\n\t\t\t\ttry {\n\t\t\t\t\tvar m = a[Ai]?.[r];\n\t\t\t\t\tm != null && (!a.disabled || e.target === a) && m.call(a, e);\n\t\t\t\t} catch (e) {\n\t\t\t\t\tf ? p.push(e) : f = e;\n\t\t\t\t}\n\t\t\t\tif (e.cancelBubble) break;\n\t\t\t\to++, a = o < i.length ? i[o] : null;\n\t\t\t}\n\t\t\tif (f) {\n\t\t\t\tfor (let e of p) queueMicrotask(() => {\n\t\t\t\t\tthrow e;\n\t\t\t\t});\n\t\t\t\tthrow f;\n\t\t\t}\n\t\t} finally {\n\t\t\te[Ai] = t, delete e.currentTarget, Yr(u), Xr(d);\n\t\t}\n\t}\n}\n//#endregion\n//#region ../../node_modules/.bun/svelte@5.57.1/node_modules/svelte/src/internal/client/dom/reconciler.js\nvar Bi = globalThis?.window?.trustedTypes && /* @__PURE__ */ globalThis.window.trustedTypes.createPolicy(\"svelte-trusted-html\", { createHTML: (e) => e });\nfunction Vi(e) {\n\treturn Bi?.createHTML(e) ?? e;\n}\nfunction Hi(e) {\n\tvar t = gr(\"template\");\n\treturn t.innerHTML = Vi(e.replaceAll(\"<!>\", \"<!---->\")), t.content;\n}\n//#endregion\n//#region ../../node_modules/.bun/svelte@5.57.1/node_modules/svelte/src/internal/client/dom/template.js\nfunction Ui(e, t) {\n\tvar n = W;\n\tn.nodes === null && (n.nodes = {\n\t\tstart: e,\n\t\tend: t,\n\t\ta: null,\n\t\tt: null\n\t});\n}\n/*#__NO_SIDE_EFFECTS__*/\nfunction K(e, t) {\n\tvar n = !!(t & 1), r = !!(t & 2), i, a = !e.startsWith(\"<!>\");\n\treturn () => {\n\t\tif (E) return Ui(D, null), D;\n\t\ti === void 0 && (i = Hi(a ? e : \"<!>\" + e), n || (i = /* @__PURE__ */ cr(i)));\n\t\tvar t = r || ir ? document.importNode(i, !0) : i.cloneNode(!0);\n\t\tif (n) {\n\t\t\tvar o = /* @__PURE__ */ cr(t), s = t.lastChild;\n\t\t\tUi(o, s);\n\t\t} else Ui(t, t);\n\t\treturn t;\n\t};\n}\nfunction Wi(e = \"\") {\n\tif (!E) {\n\t\tvar t = B(e + \"\");\n\t\treturn Ui(t, t), t;\n\t}\n\tvar n = D;\n\treturn n.nodeType === 3 ? _r(n) : (n.before(n = B()), O(n)), Ui(n, n), n;\n}\nfunction Gi() {\n\tif (E) return Ui(D, null), D;\n\tvar e = document.createDocumentFragment(), t = document.createComment(\"\"), n = B();\n\treturn e.append(t, n), Ui(t, n), e;\n}\nfunction q(e, t) {\n\tif (E) {\n\t\tvar n = W;\n\t\t(!(n.f & 32768) || n.nodes.end === null) && (n.nodes.end = D), ot();\n\t\treturn;\n\t}\n\te !== null && e.before(t);\n}\n//#endregion\n//#region ../../node_modules/.bun/svelte@5.57.1/node_modules/svelte/src/reactivity/create-subscriber.js\nfunction Ki(e) {\n\tlet t = 0, n = Kn(0), r;\n\treturn () => {\n\t\tCr() && (G(n), Ar(() => (t === 0 && (r = _i(() => e(() => Qn(n)))), t += 1, () => {\n\t\t\tMt(() => {\n\t\t\t\t--t, t === 0 && (r?.(), r = void 0, Qn(n));\n\t\t\t});\n\t\t})));\n\t};\n}\n//#endregion\n//#region ../../node_modules/.bun/svelte@5.57.1/node_modules/svelte/src/internal/client/dom/blocks/boundary.js\nvar qi = Pe | Fe;\nfunction Ji(e, t, n, r) {\n\tnew da(e, t, n, r);\n}\nvar Yi = /* @__PURE__ */ new WeakMap(), Xi = /* @__PURE__ */ new WeakMap(), Zi = /* @__PURE__ */ new WeakMap(), Qi = /* @__PURE__ */ new WeakMap(), $i = /* @__PURE__ */ new WeakMap(), ea = /* @__PURE__ */ new WeakMap(), ta = /* @__PURE__ */ new WeakMap(), na = /* @__PURE__ */ new WeakMap(), ra = /* @__PURE__ */ new WeakMap(), ia = /* @__PURE__ */ new WeakMap(), aa = /* @__PURE__ */ new WeakMap(), oa = /* @__PURE__ */ new WeakMap(), sa = /* @__PURE__ */ new WeakMap(), ca = /* @__PURE__ */ new WeakMap(), la = /* @__PURE__ */ new WeakMap(), ua = /* @__PURE__ */ new WeakMap(), J = /* @__PURE__ */ new WeakSet(), da = class {\n\tconstructor(e, t, n, r) {\n\t\ten(this, J), Te(this, \"parent\", void 0), Te(this, \"is_pending\", !1), Te(this, \"transform_error\", void 0), M(this, Yi, void 0), M(this, Xi, E ? D : null), M(this, Zi, void 0), M(this, Qi, void 0), M(this, $i, void 0), M(this, ea, null), M(this, ta, null), M(this, na, null), M(this, ra, null), M(this, ia, 0), M(this, aa, 0), M(this, oa, !1), M(this, sa, /* @__PURE__ */ new Set()), M(this, ca, /* @__PURE__ */ new Set()), M(this, la, null), M(this, ua, Ki(() => (P(la, this, Kn(F(ia, this))), () => {\n\t\t\tP(la, this, null);\n\t\t}))), P(Yi, this, e), P(Zi, this, t), P(Qi, this, (e) => {\n\t\t\tvar t = W;\n\t\t\tt.b = this, t.f |= 128, n(e);\n\t\t}), this.parent = W.b, this.transform_error = r ?? this.parent?.transform_error ?? ((e) => e), P($i, this, jr(() => {\n\t\t\tif (E) {\n\t\t\t\tlet e = F(Xi, this);\n\t\t\t\tot();\n\t\t\t\tlet t = e.data === \"[!\";\n\t\t\t\tif (e.data.startsWith(\"[?\")) {\n\t\t\t\t\tlet t = JSON.parse(e.data.slice(2));\n\t\t\t\t\tN(J, this, pa).call(this, t);\n\t\t\t\t} else t ? N(J, this, ha).call(this) : N(J, this, fa).call(this);\n\t\t\t} else N(J, this, ga).call(this);\n\t\t}, qi)), E && P(Yi, this, D);\n\t}\n\tdefer_effect(e) {\n\t\tFt(e, F(sa, this), F(ca, this));\n\t}\n\tis_rendered() {\n\t\treturn !this.is_pending && (!this.parent || this.parent.is_rendered());\n\t}\n\thas_pending_snippet() {\n\t\treturn !!F(Zi, this).pending;\n\t}\n\tupdate_pending_count(e, t) {\n\t\tN(J, this, ya).call(this, e, t), P(ia, this, F(ia, this) + e), !(!F(la, this) || F(oa, this)) && (P(oa, this, !0), Mt(() => {\n\t\t\tP(oa, this, !1), F(la, this) && Xn(F(la, this), F(ia, this));\n\t\t}));\n\t}\n\tget_effect_pending() {\n\t\treturn F(ua, this).call(this), G(F(la, this));\n\t}\n\terror(e) {\n\t\tif (!F(Zi, this).onerror && !F(Zi, this).failed) throw e;\n\t\tI?.is_fork ? (F(ea, this) && I.skip_effect(F(ea, this)), F(ta, this) && I.skip_effect(F(ta, this)), F(na, this) && I.skip_effect(F(na, this)), I.oncommit(() => {\n\t\t\tN(J, this, ba).call(this, e);\n\t\t})) : N(J, this, ba).call(this, e);\n\t}\n};\nfunction fa() {\n\ttry {\n\t\tP(ea, this, Nr(() => F(Qi, this).call(this, F(Yi, this))));\n\t} catch (e) {\n\t\tthis.error(e);\n\t}\n}\nfunction pa(e) {\n\tlet t = F(Zi, this).failed, { reset: n, invoke_onerror: r } = N(J, this, ma).call(this, e);\n\tMt(r), t && P(na, this, Nr(() => {\n\t\tt(F(Yi, this), () => e, () => n);\n\t}));\n}\nfunction ma(e) {\n\tvar t = !1, n = !1;\n\tlet r = () => {\n\t\tif (t) {\n\t\t\tit();\n\t\t\treturn;\n\t\t}\n\t\tt = !0, n && Ct(), F(na, this) !== null && zr(F(na, this), () => {\n\t\t\tP(na, this, null);\n\t\t}), N(J, this, va).call(this, () => {\n\t\t\tN(J, this, ga).call(this);\n\t\t});\n\t};\n\treturn {\n\t\treset: r,\n\t\tinvoke_onerror: () => {\n\t\t\ttry {\n\t\t\t\tn = !0, F(Zi, this).onerror?.(e, r), n = !1;\n\t\t\t} catch (e) {\n\t\t\t\tyr(e, F($i, this) && F($i, this).parent);\n\t\t\t}\n\t\t}\n\t};\n}\nfunction ha() {\n\tlet e = F(Zi, this).pending;\n\te && (this.is_pending = !0, P(ta, this, Nr(() => e(F(Yi, this)))), Mt(() => {\n\t\tvar e = P(ra, this, document.createDocumentFragment()), t = B(), n = !1;\n\t\tif (e.append(t), P(ea, this, N(J, this, va).call(this, () => {\n\t\t\ttry {\n\t\t\t\treturn Nr(() => F(Qi, this).call(this, t));\n\t\t\t} catch (e) {\n\t\t\t\ttry {\n\t\t\t\t\tthis.error(e), n = !0;\n\t\t\t\t} catch (e) {\n\t\t\t\t\tyr(e, F($i, this).parent);\n\t\t\t\t}\n\t\t\t\treturn null;\n\t\t\t}\n\t\t})), F(ea, this) === null) {\n\t\t\tP(ra, this, null), n && N(J, this, _a).call(this, I);\n\t\t\treturn;\n\t\t}\n\t\tF(aa, this) === 0 && (F(Yi, this).before(e), P(ra, this, null), zr(F(ta, this), () => {\n\t\t\tP(ta, this, null);\n\t\t}), N(J, this, _a).call(this, I));\n\t}));\n}\nfunction ga() {\n\ttry {\n\t\tif (this.is_pending = this.has_pending_snippet(), P(aa, this, 0), P(ia, this, 0), P(ea, this, Nr(() => {\n\t\t\tF(Qi, this).call(this, F(Yi, this));\n\t\t})), F(aa, this) > 0) {\n\t\t\tvar e = P(ra, this, document.createDocumentFragment());\n\t\t\tUr(F(ea, this), e);\n\t\t\tlet t = F(Zi, this).pending;\n\t\t\tP(ta, this, Nr(() => t(F(Yi, this))));\n\t\t} else N(J, this, _a).call(this, I);\n\t} catch (e) {\n\t\tthis.error(e);\n\t}\n}\nfunction _a(e) {\n\tthis.is_pending = !1, e.transfer_effects(F(sa, this), F(ca, this));\n}\nfunction va(e) {\n\tvar t = W, n = U, r = wt;\n\tXr(F($i, this)), Yr(F($i, this)), Tt(F($i, this).ctx);\n\ttry {\n\t\treturn On.ensure(), e();\n\t} finally {\n\t\tXr(t), Yr(n), Tt(r);\n\t}\n}\nfunction ya(e, t) {\n\tif (!this.has_pending_snippet()) {\n\t\tif (this.parent) {\n\t\t\tvar n;\n\t\t\tN(J, n = this.parent, ya).call(n, e, t);\n\t\t}\n\t\treturn;\n\t}\n\tP(aa, this, F(aa, this) + e), F(aa, this) === 0 && (N(J, this, _a).call(this, t), F(ta, this) && zr(F(ta, this), () => {\n\t\tP(ta, this, null);\n\t}), F(ra, this) && (F(Yi, this).before(F(ra, this)), P(ra, this, null)));\n}\nfunction ba(e) {\n\tF(ea, this) && (H(F(ea, this)), P(ea, this, null)), F(ta, this) && (H(F(ta, this)), P(ta, this, null)), F(na, this) && (H(F(na, this)), P(na, this, null)), E && (O(F(Xi, this)), st(), O(ct()));\n\tlet t = F(Zi, this).failed, n = (e) => {\n\t\tlet { reset: n, invoke_onerror: r } = N(J, this, ma).call(this, e);\n\t\tr(), t && P(na, this, N(J, this, va).call(this, () => {\n\t\t\ttry {\n\t\t\t\treturn Nr(() => {\n\t\t\t\t\tvar r = W;\n\t\t\t\t\tr.b = this, r.f |= 128, t(F(Yi, this), () => e, () => n);\n\t\t\t\t});\n\t\t\t} catch (e) {\n\t\t\t\treturn yr(e, F($i, this).parent), null;\n\t\t\t}\n\t\t}));\n\t};\n\tMt(() => {\n\t\tvar t;\n\t\ttry {\n\t\t\tt = this.transform_error(e);\n\t\t} catch (e) {\n\t\t\tyr(e, F($i, this) && F($i, this).parent);\n\t\t\treturn;\n\t\t}\n\t\ttypeof t == \"object\" && t && typeof t.then == \"function\" ? t.then(n, (e) => yr(e, F($i, this) && F($i, this).parent)) : n(t);\n\t});\n}\nfunction xa(e, t) {\n\tvar n = t == null ? \"\" : typeof t == \"object\" ? `${t}` : t;\n\tn !== (e[Je] ?? (e[Je] = e.nodeValue)) && (e[Je] = n, e.nodeValue = `${n}`);\n}\nfunction Sa(e, t) {\n\treturn wa(e, t);\n}\nvar Ca = /* @__PURE__ */ new Map();\nfunction wa(e, { target: t, anchor: n, props: r = {}, events: i, context: a, intro: o = !0, transformError: s }) {\n\tsr();\n\tvar c = void 0, l = Dr(() => {\n\t\tvar o = n ?? t.appendChild(B());\n\t\tJi(o, { pending: () => {} }, (t) => {\n\t\t\tEt({});\n\t\t\tvar n = wt;\n\t\t\tif (a && (n.c = a), i && (r.$$events = i), E && Ui(t, null), c = e(t, r) || Ot(), E && (W.nodes.end = D, D === null || D.nodeType !== 8 || D.data !== \"]\")) throw nt(), Qe;\n\t\t\tDt();\n\t\t}, s);\n\t\tvar l = /* @__PURE__ */ new Set(), u = (e) => {\n\t\t\tfor (var n = 0; n < e.length; n++) {\n\t\t\t\tvar r = e[n];\n\t\t\t\tif (!l.has(r)) {\n\t\t\t\t\tl.add(r);\n\t\t\t\t\tvar i = Di(r);\n\t\t\t\t\tfor (let e of [t, document]) {\n\t\t\t\t\t\tvar a = Ca.get(e);\n\t\t\t\t\t\ta === void 0 && (a = /* @__PURE__ */ new Map(), Ca.set(e, a));\n\t\t\t\t\t\tvar o = a.get(r);\n\t\t\t\t\t\to === void 0 ? (e.addEventListener(r, zi, { passive: i }), a.set(r, 1)) : a.set(r, o + 1);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t};\n\t\treturn u(de(ji)), Mi.add(u), () => {\n\t\t\tfor (var e of l) for (let n of [t, document]) {\n\t\t\t\tvar r = Ca.get(n), i = r.get(e);\n\t\t\t\t--i == 0 ? (n.removeEventListener(e, zi), r.delete(e), r.size === 0 && Ca.delete(n)) : r.set(e, i);\n\t\t\t}\n\t\t\tMi.delete(u), o !== n && o.parentNode?.removeChild(o);\n\t\t};\n\t});\n\treturn Ta.set(c, l), c;\n}\nvar Ta = /* @__PURE__ */ new WeakMap();\nfunction Ea(e, t) {\n\tlet n = Ta.get(e);\n\treturn n ? (Ta.delete(e), n(t)) : Promise.resolve();\n}\n//#endregion\n//#region ../../node_modules/.bun/svelte@5.57.1/node_modules/svelte/src/internal/client/dom/blocks/branches.js\nvar Da = /* @__PURE__ */ new WeakMap(), Oa = /* @__PURE__ */ new WeakMap(), ka = /* @__PURE__ */ new WeakMap(), Aa = /* @__PURE__ */ new WeakMap(), ja = /* @__PURE__ */ new WeakMap(), Ma = /* @__PURE__ */ new WeakMap(), Na = /* @__PURE__ */ new WeakMap(), Pa = class {\n\tconstructor(e, t = !0) {\n\t\tTe(this, \"anchor\", void 0), M(this, Da, /* @__PURE__ */ new Map()), M(this, Oa, /* @__PURE__ */ new Map()), M(this, ka, /* @__PURE__ */ new Map()), M(this, Aa, /* @__PURE__ */ new Set()), M(this, ja, !0), M(this, Ma, (e) => {\n\t\t\tif (F(Da, this).has(e)) {\n\t\t\t\tvar t = F(Da, this).get(e), n = F(Oa, this).get(t);\n\t\t\t\tif (n) Vr(n), F(Aa, this).delete(t);\n\t\t\t\telse {\n\t\t\t\t\tvar r = F(ka, this).get(t);\n\t\t\t\t\tr && (Vr(r.effect), F(Oa, this).set(t, r.effect), F(ka, this).delete(t), r.fragment.lastChild.remove(), this.anchor.before(r.fragment), n = r.effect);\n\t\t\t\t}\n\t\t\t\tfor (let [t, n] of F(Da, this)) {\n\t\t\t\t\tif (F(Da, this).delete(t), t === e) break;\n\t\t\t\t\tlet r = F(ka, this).get(n);\n\t\t\t\t\tr && (H(r.effect), F(ka, this).delete(n));\n\t\t\t\t}\n\t\t\t\tfor (let [e, r] of F(Oa, this)) {\n\t\t\t\t\tif (e === t || F(Aa, this).has(e)) continue;\n\t\t\t\t\tlet i = () => {\n\t\t\t\t\t\tif (Array.from(F(Da, this).values()).includes(e)) {\n\t\t\t\t\t\t\tvar t = document.createDocumentFragment();\n\t\t\t\t\t\t\tUr(r, t), t.append(B()), F(ka, this).set(e, {\n\t\t\t\t\t\t\t\teffect: r,\n\t\t\t\t\t\t\t\tfragment: t\n\t\t\t\t\t\t\t});\n\t\t\t\t\t\t} else H(r);\n\t\t\t\t\t\tF(Aa, this).delete(e), F(Oa, this).delete(e);\n\t\t\t\t\t};\n\t\t\t\t\tF(ja, this) || !n ? (F(Aa, this).add(e), zr(r, i, !1)) : i();\n\t\t\t\t}\n\t\t\t}\n\t\t}), M(this, Na, (e) => {\n\t\t\tF(Da, this).delete(e);\n\t\t\tlet t = Array.from(F(Da, this).values());\n\t\t\tfor (let [e, n] of F(ka, this)) t.includes(e) || (H(n.effect), F(ka, this).delete(e));\n\t\t}), this.anchor = e, P(ja, this, t);\n\t}\n\tensure(e, t) {\n\t\tvar n = I, r = hr();\n\t\tif (t && !F(Oa, this).has(e) && !F(ka, this).has(e)) {\n\t\t\tif (r) {\n\t\t\t\tvar i = document.createDocumentFragment(), a = B();\n\t\t\t\ti.append(a), F(ka, this).set(e, {\n\t\t\t\t\teffect: Nr(() => t(a)),\n\t\t\t\t\tfragment: i\n\t\t\t\t});\n\t\t\t} else F(Oa, this).set(e, Nr(() => t(this.anchor)));\n\t\t}\n\t\tif (F(Da, this).set(n, e), r) {\n\t\t\tfor (let [t, r] of F(Oa, this)) t === e ? n.unskip_effect(r) : n.skip_effect(r);\n\t\t\tfor (let [t, r] of F(ka, this)) t === e ? n.unskip_effect(r.effect) : n.skip_effect(r.effect);\n\t\t\tn.oncommit(F(Ma, this)), n.ondiscard(F(Na, this));\n\t\t} else E && (this.anchor = D), F(Ma, this).call(this, n);\n\t}\n};\n//#endregion\n//#region ../../node_modules/.bun/svelte@5.57.1/node_modules/svelte/src/internal/client/dom/blocks/if.js\nfunction Fa(e, t, n = !1) {\n\tvar r;\n\tE && (r = D, ot());\n\tvar i = new Pa(e), a = n ? Pe : 0;\n\tfunction o(e, t) {\n\t\tif (E) {\n\t\t\tvar n = lt(r);\n\t\t\tif (e !== parseInt(n.substring(1))) {\n\t\t\t\tvar a = ct();\n\t\t\t\tO(a), i.anchor = a, at(!1), i.ensure(e, t), at(!0);\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t\ti.ensure(e, t);\n\t}\n\tjr(() => {\n\t\tvar e = !1;\n\t\tt((t, n = 0) => {\n\t\t\te = !0, o(n, t);\n\t\t}), e || o(-1, null);\n\t}, a);\n}\n//#endregion\n//#region ../../node_modules/.bun/svelte@5.57.1/node_modules/svelte/src/internal/client/dom/blocks/each.js\nfunction Ia(e, t) {\n\treturn t;\n}\nfunction La(e, t, n) {\n\tfor (var r = [], i = t.length, a, o = t.length, s = 0; s < i; s++) {\n\t\tlet n = t[s];\n\t\tzr(n, () => {\n\t\t\tif (a) {\n\t\t\t\tif (a.pending.delete(n), a.done.add(n), a.pending.size === 0) {\n\t\t\t\t\tvar t = e.outrogroups;\n\t\t\t\t\tRa(e, de(a.done)), t.delete(a), t.size === 0 && (e.outrogroups = null);\n\t\t\t\t}\n\t\t\t} else --o;\n\t\t}, !1);\n\t}\n\tif (o === 0) {\n\t\tvar c = r.length === 0 && n !== null && e.pending.size === 0;\n\t\tif (c) {\n\t\t\tvar l = n, u = l.parentNode;\n\t\t\tmr(u), u.append(l), e.items.clear();\n\t\t}\n\t\tRa(e, t, !c);\n\t} else a = {\n\t\tpending: new Set(t),\n\t\tdone: /* @__PURE__ */ new Set()\n\t}, (e.outrogroups ?? (e.outrogroups = /* @__PURE__ */ new Set())).add(a);\n}\nfunction Ra(e, t, n = !0) {\n\tvar r;\n\tif (e.pending.size > 0) {\n\t\tr = /* @__PURE__ */ new Set();\n\t\tfor (let t of e.pending.values()) for (let n of t) r.add(e.items.get(n).e);\n\t}\n\tfor (var i = 0; i < t.length; i++) {\n\t\tvar a = t[i];\n\t\tr?.has(a) ? (a.f |= Le, Ur(a, document.createDocumentFragment())) : H(t[i], n);\n\t}\n}\nvar za;\nfunction Ba(e, t, n, r, i, a = null) {\n\tvar o = e, s = /* @__PURE__ */ new Map();\n\tif (t & 4) {\n\t\tvar c = e;\n\t\to = E ? O(/* @__PURE__ */ cr(c)) : c.appendChild(B());\n\t}\n\tE && ot();\n\tvar l = null, u = /* @__PURE__ */ qt(() => {\n\t\tvar e = n();\n\t\treturn ce(e) ? e : e == null ? [] : de(e);\n\t}), d, f = /* @__PURE__ */ new Map(), p = !0;\n\tfunction m(e) {\n\t\tg.effect.f & 16384 || (g.pending.delete(e), g.fallback = l, Ha(g, d, o, t, r), l !== null && (d.length === 0 ? l.f & 33554432 ? (l.f ^= Le, Wa(l, null, o)) : Vr(l) : zr(l, () => {\n\t\t\tl = null;\n\t\t})));\n\t}\n\tfunction h(e) {\n\t\tg.pending.delete(e);\n\t}\n\tvar g = {\n\t\teffect: jr(() => {\n\t\t\td = G(u);\n\t\t\tvar e = d.length;\n\t\t\tlet c = !1;\n\t\t\tE && lt(o) === \"[!\" != (e === 0) && (o = ct(), O(o), at(!1), c = !0);\n\t\t\tfor (var g = /* @__PURE__ */ new Set(), _ = I, v = hr(), y = 0; y < e; y += 1) {\n\t\t\t\tE && D.nodeType === 8 && D.data === \"]\" && (o = D, c = !0, at(!1));\n\t\t\t\tvar b = d[y], ee = r(b, y), x = p ? null : s.get(ee);\n\t\t\t\tx ? (x.v && Xn(x.v, b), x.i && Xn(x.i, y), v && _.unskip_effect(x.e)) : (x = Ua(s, p ? o : za ?? (za = B()), b, ee, y, i, t, n), p || (x.e.f |= Le), s.set(ee, x)), g.add(ee);\n\t\t\t}\n\t\t\tif (e === 0 && a && !l && (p ? l = Nr(() => a(o)) : (l = Nr(() => a(za ?? (za = B()))), l.f |= Le)), e > g.size && mt(\"\", \"\", \"\"), E && e > 0 && O(ct()), !p) {\n\t\t\t\tif (f.set(_, g), v) {\n\t\t\t\t\tfor (let [e, t] of s) g.has(e) || _.skip_effect(t.e);\n\t\t\t\t\t_.oncommit(m), _.ondiscard(h);\n\t\t\t\t} else m(_);\n\t\t\t}\n\t\t\tc && at(!0), G(u);\n\t\t}),\n\t\tflags: t,\n\t\titems: s,\n\t\tpending: f,\n\t\toutrogroups: null,\n\t\tfallback: l\n\t};\n\tp = !1, E && (o = D);\n}\nfunction Va(e) {\n\tfor (; e !== null && !(e.f & 32);) e = e.next;\n\treturn e;\n}\nfunction Ha(e, t, n, r, i) {\n\tvar a = !!(r & 8), o = t.length, s = e.items, c = Va(e.effect.first), l, u = null, d, f = [], p = [], m, h, g, _;\n\tif (a) for (_ = 0; _ < o; _ += 1) m = t[_], h = i(m, _), g = s.get(h).e, g.f & 33554432 || (g.nodes?.a?.measure(), (d ?? (d = /* @__PURE__ */ new Set())).add(g));\n\tfor (_ = 0; _ < o; _ += 1) {\n\t\tif (m = t[_], h = i(m, _), g = s.get(h).e, e.outrogroups !== null) for (let t of e.outrogroups) t.pending.delete(g), t.done.delete(g);\n\t\tif (g.f & 8192 && (Vr(g), a && (g.nodes?.a?.unfix(), (d ?? (d = /* @__PURE__ */ new Set())).delete(g))), g.f & 33554432) {\n\t\t\tif (g.f ^= Le, g === c) Wa(g, null, n);\n\t\t\telse {\n\t\t\t\tvar v = u ? u.next : c;\n\t\t\t\tg === e.effect.last && (e.effect.last = g.prev), g.prev && (g.prev.next = g.next), g.next && (g.next.prev = g.prev), Ga(e, u, g), Ga(e, g, v), Wa(g, v, n), u = g, f = [], p = [], c = Va(u.next);\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t}\n\t\tif (g !== c) {\n\t\t\tif (l !== void 0 && l.has(g)) {\n\t\t\t\tif (f.length < p.length) {\n\t\t\t\t\tvar y = p[0], b;\n\t\t\t\t\tu = y.prev;\n\t\t\t\t\tvar ee = f[0], x = f[f.length - 1];\n\t\t\t\t\tfor (b = 0; b < f.length; b += 1) Wa(f[b], y, n);\n\t\t\t\t\tfor (b = 0; b < p.length; b += 1) l.delete(p[b]);\n\t\t\t\t\tGa(e, ee.prev, x.next), Ga(e, u, ee), Ga(e, x, y), c = y, u = x, --_, f = [], p = [];\n\t\t\t\t} else l.delete(g), Wa(g, c, n), Ga(e, g.prev, g.next), Ga(e, g, u === null ? e.effect.first : u.next), Ga(e, u, g), u = g;\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tfor (f = [], p = []; c !== null && c !== g;) (l ?? (l = /* @__PURE__ */ new Set())).add(c), p.push(c), c = Va(c.next);\n\t\t\tif (c === null) continue;\n\t\t}\n\t\tg.f & 33554432 || f.push(g), u = g, c = Va(g.next);\n\t}\n\tif (e.outrogroups !== null) {\n\t\tfor (let t of e.outrogroups) t.pending.size === 0 && (Ra(e, de(t.done)), e.outrogroups?.delete(t));\n\t\te.outrogroups.size === 0 && (e.outrogroups = null);\n\t}\n\tif (c !== null || l !== void 0) {\n\t\tvar S = [];\n\t\tif (l !== void 0) for (g of l) g.f & 8192 || S.push(g);\n\t\tfor (; c !== null;) !(c.f & 8192) && c !== e.fallback && S.push(c), c = Va(c.next);\n\t\tvar te = S.length;\n\t\tif (te > 0) {\n\t\t\tvar C = r & 4 && o === 0 ? n : null;\n\t\t\tif (a) {\n\t\t\t\tfor (_ = 0; _ < te; _ += 1) S[_].nodes?.a?.measure();\n\t\t\t\tfor (_ = 0; _ < te; _ += 1) S[_].nodes?.a?.fix();\n\t\t\t}\n\t\t\tLa(e, S, C);\n\t\t}\n\t}\n\ta && Mt(() => {\n\t\tif (d !== void 0) for (g of d) g.nodes?.a?.apply();\n\t});\n}\nfunction Ua(e, t, n, r, i, a, o, s) {\n\tvar c = o & 1 ? o & 16 ? Kn(n) : /* @__PURE__ */ qn(n, !1, !1) : null, l = o & 2 ? Kn(i) : null;\n\treturn {\n\t\tv: c,\n\t\ti: l,\n\t\te: Nr(() => (a(t, c ?? n, l ?? i, s), () => {\n\t\t\te.delete(r);\n\t\t}))\n\t};\n}\nfunction Wa(e, t, n) {\n\tif (e.nodes) for (var r = e.nodes.start, i = e.nodes.end, a = t && !(t.f & 33554432) ? t.nodes.start : n; r !== null;) {\n\t\tvar o = /* @__PURE__ */ lr(r);\n\t\tif (a.before(r), r === i) return;\n\t\tr = o;\n\t}\n}\nfunction Ga(e, t, n) {\n\tt === null ? e.effect.first = n : t.next = n, n === null ? e.effect.last = t : n.prev = t;\n}\nfunction Ka(e, t, n = !1, r = !1, i = !1, a = !1) {\n\tvar o = e, s = \"\";\n\tif (n) {\n\t\tvar c = e;\n\t\tE && (o = O(/* @__PURE__ */ cr(c)));\n\t}\n\tV(() => {\n\t\tvar e = W;\n\t\tif (s === (s = t() ?? \"\")) {\n\t\t\tE && ot();\n\t\t\treturn;\n\t\t}\n\t\tif (n && !E) {\n\t\t\te.nodes = null, c.innerHTML = s, s !== \"\" && Ui(/* @__PURE__ */ cr(c), c.lastChild);\n\t\t\treturn;\n\t\t}\n\t\tif (e.nodes !== null && (Lr(e.nodes.start, e.nodes.end), e.nodes = null), s !== \"\") {\n\t\t\tif (E) {\n\t\t\t\tfor (var a = D.data, l = ot(), u = l; l !== null && (l.nodeType !== 8 || l.data !== \"\");) u = l, l = /* @__PURE__ */ lr(l);\n\t\t\t\tif (l === null) throw nt(), Qe;\n\t\t\t\tUi(D, u), o = O(l);\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tvar d = gr(r ? \"svg\" : i ? \"math\" : \"template\", r ? $e : i ? et : void 0);\n\t\t\td.innerHTML = s;\n\t\t\tvar f = r || i ? d : d.content;\n\t\t\tif (Ui(/* @__PURE__ */ cr(f), f.lastChild), r || i) for (; /* @__PURE__ */ cr(f);) o.before(/* @__PURE__ */ cr(f));\n\t\t\telse o.before(f);\n\t\t}\n\t});\n}\n//#endregion\n//#region ../../node_modules/.bun/svelte@5.57.1/node_modules/svelte/src/internal/client/dom/blocks/svelte-element.js\nfunction qa(e, t, n, r, i, a) {\n\tlet o = E;\n\tE && ot();\n\tvar s = null;\n\tE && D.nodeType === 1 && (s = D, ot());\n\tvar c = E ? D : e, l = new Pa(c, !1);\n\tjr(() => {\n\t\tlet e = t() || null;\n\t\tvar a = i ? i() : n || e === \"svg\" ? $e : void 0;\n\t\tif (e === null) {\n\t\t\tl.ensure(null, null);\n\t\t\treturn;\n\t\t}\n\t\treturn l.ensure(e, (t) => {\n\t\t\tif (e) {\n\t\t\t\tif (s = E ? s : gr(e, a), Ui(s, s), r) {\n\t\t\t\t\tvar n = null;\n\t\t\t\t\tE && ki(e) && s.append(n = document.createComment(\"\"));\n\t\t\t\t\tvar i = E ? /* @__PURE__ */ cr(s) : s.appendChild(B());\n\t\t\t\t\tE && (i === null ? at(!1) : O(i)), r(s, i), n?.remove();\n\t\t\t\t}\n\t\t\t\tW.nodes.end = s, t.before(s);\n\t\t\t}\n\t\t\tE && O(t);\n\t\t}), () => {};\n\t}, Pe), wr(() => {}), o && (at(!0), O(c));\n}\n//#endregion\n//#region ../../node_modules/.bun/svelte@5.57.1/node_modules/svelte/src/internal/client/dom/css.js\nfunction Ja(e, t) {\n\tOr(() => {\n\t\te = W?.parent?.nodes?.start ?? e;\n\t\tvar n = e.getRootNode(), r = n.host ? n : n.head ?? n.ownerDocument.head;\n\t\tif (!r.querySelector(\"#\" + t.hash)) {\n\t\t\tlet e = gr(\"style\");\n\t\t\te.id = t.hash, e.textContent = t.code, r.appendChild(e);\n\t\t}\n\t});\n}\n//#endregion\n//#region ../../node_modules/.bun/svelte@5.57.1/node_modules/svelte/src/internal/client/dom/elements/actions.js\nfunction Ya(e, t, n) {\n\tOr(() => {\n\t\tvar r = _i(() => t(e, n?.()) || {});\n\t\tif (n && r?.update) {\n\t\t\tvar i = !1, a = {};\n\t\t\tAr(() => {\n\t\t\t\tvar e = n();\n\t\t\t\tvi(e), i && dt(a, e) && (a = e, r.update(e));\n\t\t\t}), i = !0;\n\t\t}\n\t\tif (r?.destroy) return () => r.destroy();\n\t});\n}\n//#endregion\n//#region ../../node_modules/.bun/svelte@5.57.1/node_modules/svelte/src/internal/client/dom/elements/attachments.js\nfunction Xa(e, t) {\n\tvar n = void 0, r;\n\tMr(() => {\n\t\tn !== (n = t()) && (r && (H(r), r = null), n && (r = Nr(() => {\n\t\t\tOr(() => n(e));\n\t\t})));\n\t});\n}\n//#endregion\n//#region ../../node_modules/.bun/clsx@2.1.1/node_modules/clsx/dist/clsx.mjs\nfunction Za(e) {\n\tvar t, n, r = \"\";\n\tif (typeof e == \"string\" || typeof e == \"number\") r += e;\n\telse if (typeof e == \"object\") {\n\t\tif (Array.isArray(e)) {\n\t\t\tvar i = e.length;\n\t\t\tfor (t = 0; t < i; t++) e[t] && (n = Za(e[t])) && (r && (r += \" \"), r += n);\n\t\t} else for (n in e) e[n] && (r && (r += \" \"), r += n);\n\t}\n\treturn r;\n}\nfunction Qa() {\n\tfor (var e, t, n = 0, r = \"\", i = arguments.length; n < i; n++) (e = arguments[n]) && (t = Za(e)) && (r && (r += \" \"), r += t);\n\treturn r;\n}\n//#endregion\n//#region ../../node_modules/.bun/svelte@5.57.1/node_modules/svelte/src/internal/shared/attributes.js\nfunction $a(e) {\n\treturn typeof e == \"object\" ? Qa(e) : e ?? \"\";\n}\nvar eo = [...\" \t\\n\\r\\f\\xA0\\v\"];\nfunction to(e, t, n) {\n\tvar r = e == null ? \"\" : \"\" + e;\n\tif (t && (r = r ? r + \" \" + t : t), n) {\n\t\tfor (var i of Object.keys(n)) if (n[i]) r = r ? r + \" \" + i : i;\n\t\telse if (r.length) for (var a = i.length, o = 0; (o = r.indexOf(i, o)) >= 0;) {\n\t\t\tvar s = o + a;\n\t\t\t(o === 0 || eo.includes(r[o - 1])) && (s === r.length || eo.includes(r[s])) ? r = (o === 0 ? \"\" : r.substring(0, o)) + r.substring(s + 1) : o = s;\n\t\t}\n\t}\n\treturn r === \"\" ? null : r;\n}\nfunction no(e, t = !1) {\n\tvar n = t ? \" !important;\" : \";\", r = \"\";\n\tfor (var i of Object.keys(e)) {\n\t\tvar a = e[i];\n\t\ta != null && a !== \"\" && (r += \" \" + i + \": \" + a + n);\n\t}\n\treturn r;\n}\nfunction ro(e) {\n\treturn e[0] !== \"-\" || e[1] !== \"-\" ? e.toLowerCase() : e;\n}\nfunction io(e, t) {\n\tif (t) {\n\t\tvar n = \"\", r, i;\n\t\tif (Array.isArray(t) ? (r = t[0], i = t[1]) : r = t, e) {\n\t\t\te = String(e).replaceAll(/\\/\\*.*?\\*\\//g, \"\").trim();\n\t\t\tvar a = !1, o = 0, s = !1, c = [];\n\t\t\tr && c.push(...Object.keys(r).map(ro)), i && c.push(...Object.keys(i).map(ro));\n\t\t\tvar l = 0, u = -1;\n\t\t\tlet t = e.length;\n\t\t\tfor (var d = 0; d < t; d++) {\n\t\t\t\tvar f = e[d];\n\t\t\t\tif (s ? f === \"/\" && e[d - 1] === \"*\" && (s = !1) : a ? a === f && (a = !1) : f === \"/\" && e[d + 1] === \"*\" ? s = !0 : f === \"\\\"\" || f === \"'\" ? a = f : f === \"(\" ? o++ : f === \")\" && o--, !s && a === !1 && o === 0) {\n\t\t\t\t\tif (f === \":\" && u === -1) u = d;\n\t\t\t\t\telse if (f === \";\" || d === t - 1) {\n\t\t\t\t\t\tif (u !== -1) {\n\t\t\t\t\t\t\tvar p = ro(e.substring(l, u).trim());\n\t\t\t\t\t\t\tif (!c.includes(p)) {\n\t\t\t\t\t\t\t\tf !== \";\" && d++;\n\t\t\t\t\t\t\t\tvar m = e.substring(l, d).trim();\n\t\t\t\t\t\t\t\tn += \" \" + m + \";\";\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tl = d + 1, u = -1;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn r && (n += no(r)), i && (n += no(i, !0)), n = n.trim(), n === \"\" ? null : n;\n\t}\n\treturn e == null ? null : String(e);\n}\n//#endregion\n//#region ../../node_modules/.bun/svelte@5.57.1/node_modules/svelte/src/internal/client/dom/elements/class.js\nfunction ao(e, t, n, r, i, a) {\n\tvar o = e[Ke];\n\tif (E || o !== n || o === void 0) {\n\t\tvar s = to(n, r, a);\n\t\t(!E || s !== e.getAttribute(\"class\")) && (s == null ? e.removeAttribute(\"class\") : t ? e.className = s : e.setAttribute(\"class\", s)), e[Ke] = n;\n\t} else if (a && i !== a) for (var c in a) {\n\t\tvar l = !!a[c];\n\t\t(i == null || l !== !!i[c]) && e.classList.toggle(c, l);\n\t}\n\treturn a;\n}\n//#endregion\n//#region ../../node_modules/.bun/svelte@5.57.1/node_modules/svelte/src/internal/client/dom/elements/style.js\nfunction oo(e, t = {}, n, r) {\n\tfor (var i in n) {\n\t\tvar a = n[i];\n\t\tt[i] !== a && (n[i] == null ? e.style.removeProperty(i) : e.style.setProperty(i, a, r));\n\t}\n}\nfunction so(e, t, n, r) {\n\tvar i = e[qe];\n\tif (E || i !== t) {\n\t\tvar a = io(t, r);\n\t\t(!E || a !== e.getAttribute(\"style\")) && (a == null ? e.removeAttribute(\"style\") : e.style.cssText = a), e[qe] = t;\n\t} else r && (Array.isArray(r) ? (oo(e, n?.[0], r[0]), oo(e, n?.[1], r[1], \"important\")) : oo(e, n, r));\n\treturn r;\n}\n//#endregion\n//#region ../../node_modules/.bun/svelte@5.57.1/node_modules/svelte/src/internal/client/dom/elements/bindings/select.js\nfunction co(e, t) {\n\tt ? e.hasAttribute(\"selected\") || e.setAttribute(\"selected\", \"\") : e.removeAttribute(\"selected\");\n}\nfunction lo(e, t) {\n\tvar n = !(\"__defaultValue\" in e);\n\t!n && e.__defaultValue === t || (e.__defaultValue = t, uo(e, !n || \"__value\" in e));\n}\nfunction uo(e, t) {\n\tvar n = e.__defaultValue, r = e.multiple, i = r ? n ?? [] : null;\n\tif (!(r && !ce(i))) {\n\t\tvar a = e.selectedIndex, o = t && r ? new Set(e.selectedOptions) : null;\n\t\tfor (var s of e.options) {\n\t\t\tvar c = mo(s);\n\t\t\tco(s, r ? i.includes(c) : nr(c, n));\n\t\t}\n\t\tif (t) {\n\t\t\tif (o !== null) for (s of e.options) {\n\t\t\t\tvar l = o.has(s);\n\t\t\t\ts.selected !== l && (s.selected = l);\n\t\t\t}\n\t\t\telse e.selectedIndex !== a && (e.selectedIndex = a);\n\t\t}\n\t}\n}\nfunction fo(e, t, n = !1) {\n\tif (e.multiple) {\n\t\tif (t == null) return;\n\t\tif (!ce(t)) return rt();\n\t\tfor (var r of e.options) r.selected = t.includes(mo(r));\n\t\treturn;\n\t}\n\tfor (r of e.options) if (nr(mo(r), t)) {\n\t\tr.selected = !0;\n\t\treturn;\n\t}\n\t(!n || t !== void 0) && (e.selectedIndex = -1);\n}\nfunction po(e) {\n\tvar t = new MutationObserver((t) => {\n\t\tt.every(ho) || (\"__defaultValue\" in e && uo(e, !1), \"__value\" in e && fo(e, e.__value));\n\t});\n\tt.observe(e, {\n\t\tchildList: !0,\n\t\tsubtree: !0,\n\t\tattributes: !0,\n\t\tattributeFilter: [\"value\"]\n\t}), wr(() => {\n\t\tt.disconnect();\n\t});\n}\nfunction mo(e) {\n\treturn \"__value\" in e ? e.__value : e.value;\n}\nfunction ho(e) {\n\tif (e.target.closest(\"selectedcontent\") !== null) return !0;\n\tif (e.type === \"childList\") {\n\t\tvar t = [...e.addedNodes, ...e.removedNodes];\n\t\treturn t.length > 0 && t.every((e) => e.nodeName === \"SELECTEDCONTENT\");\n\t}\n\treturn !1;\n}\n//#endregion\n//#region ../../node_modules/.bun/svelte@5.57.1/node_modules/svelte/src/internal/client/dom/elements/attributes.js\nvar go = Symbol(\"class\"), _o = Symbol(\"style\"), vo = Symbol(\"is custom element\"), yo = Symbol(\"is html\"), bo = Ze ? \"link\" : \"LINK\", xo = Ze ? \"input\" : \"INPUT\", So = Ze ? \"option\" : \"OPTION\", Co = Ze ? \"select\" : \"SELECT\", wo = Ze ? \"progress\" : \"PROGRESS\";\nfunction To(e) {\n\tif (E) {\n\t\tvar t = !1, n = () => {\n\t\t\tif (!t) {\n\t\t\t\tif (t = !0, e.hasAttribute(\"value\")) {\n\t\t\t\t\tvar n = e.value;\n\t\t\t\t\tY(e, \"value\", null), e.value = n;\n\t\t\t\t}\n\t\t\t\tif (e.hasAttribute(\"checked\")) {\n\t\t\t\t\tvar r = e.checked;\n\t\t\t\t\tY(e, \"checked\", null), e.checked = r;\n\t\t\t\t}\n\t\t\t}\n\t\t};\n\t\te[Ye] = n, Mt(n), Rt();\n\t}\n}\nfunction Eo(e, t) {\n\tvar n = ko(e);\n\tn.value !== (n.value = t ?? void 0) && (e.value !== t || t === 0 && e.nodeName === wo) && (e.value = t ?? \"\");\n}\nfunction Y(e, t, n, r) {\n\tvar i = ko(e);\n\tE && (i[t] = e.getAttribute(t), t === \"src\" || t === \"srcset\" || t === \"href\" && e.nodeName === bo) || i[t] !== (i[t] = n) && (t === \"loading\" && (e[We] = n), n == null ? e.removeAttribute(t) : typeof n != \"string\" && jo(e).has(t) ? e[t] = n : e.setAttribute(t, n));\n}\nfunction Do(e, t, n, r, i = !1, a = !1) {\n\tE && i && e.nodeName === xo && (\"defaultValue\" in n || \"defaultChecked\" in n || To(e));\n\tvar o = ko(e), s = o[vo], c = !o[yo];\n\tlet l = E && s;\n\tl && at(!1);\n\tvar u = t || {}, d = e.nodeName === So, f = e.nodeName === Co;\n\tfor (var p in t) !(p in n) && p[0] + p[1] !== \"$$\" && (n[p] = null);\n\tn.class ? n.class = $a(n.class) : (r || n[go]) && (n.class = null), n[_o] && (n.style ?? (n.style = null));\n\tvar m = jo(e);\n\tif (e.nodeName === xo && \"type\" in n && (\"value\" in n || \"__value\" in n)) {\n\t\tvar h = n.type;\n\t\t(h !== u.type || h === void 0 && e.hasAttribute(\"type\")) && (u.type = h, Y(e, \"type\", h, a));\n\t}\n\tfor (let i in n) {\n\t\tlet l = n[i];\n\t\tif (d && i === \"value\" && l == null) {\n\t\t\te.value = e.__value = \"\", u[i] = l;\n\t\t\tcontinue;\n\t\t}\n\t\tif (i === \"class\") {\n\t\t\tao(e, e.namespaceURI === \"http://www.w3.org/1999/xhtml\", l, r, t?.[go], n[go]), u[i] = l, u[go] = n[go];\n\t\t\tcontinue;\n\t\t}\n\t\tif (i === \"style\") {\n\t\t\tso(e, l, t?.[_o], n[_o]), u[i] = l, u[_o] = n[_o];\n\t\t\tcontinue;\n\t\t}\n\t\tvar g = u[i];\n\t\tif (!(l === g && !(l === void 0 && e.hasAttribute(i)))) {\n\t\t\tu[i] = l;\n\t\t\tvar _ = i[0] + i[1];\n\t\t\tif (_ !== \"$$\") {\n\t\t\t\tif (_ === \"on\") {\n\t\t\t\t\tlet t = {}, n = \"$$\" + i, r = i.slice(2);\n\t\t\t\t\tvar v = Si(r);\n\t\t\t\t\tif (bi(r) && (r = r.slice(0, -7), t.capture = !0), !v && g) {\n\t\t\t\t\t\tif (l != null) continue;\n\t\t\t\t\t\te.removeEventListener(r, u[n], t), u[n] = null;\n\t\t\t\t\t}\n\t\t\t\t\tif (v) Fi(r, e, l), Ii([r]);\n\t\t\t\t\telse if (l != null) {\n\t\t\t\t\t\tfunction a(e) {\n\t\t\t\t\t\t\tu[i].call(this, e);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tu[n] = Ni(r, e, a, t);\n\t\t\t\t\t}\n\t\t\t\t} else if (i === \"style\") Y(e, i, l);\n\t\t\t\telse if (i === \"autofocus\") It(e, !!l);\n\t\t\t\telse if (!s && (i === \"__value\" || i === \"value\" && l != null)) e.value = e.__value = l;\n\t\t\t\telse if (i === \"selected\" && d) co(e, l);\n\t\t\t\telse {\n\t\t\t\t\tvar y = i;\n\t\t\t\t\tc || (y = Ti(y));\n\t\t\t\t\tvar b = y === \"defaultValue\" || y === \"defaultChecked\";\n\t\t\t\t\tif (f && y === \"defaultValue\") continue;\n\t\t\t\t\tif (l == null && !s && !b) {\n\t\t\t\t\t\tif (o[i] = null, y === \"value\" || y === \"checked\") {\n\t\t\t\t\t\t\tlet n = e, r = t === void 0;\n\t\t\t\t\t\t\tif (y === \"value\") {\n\t\t\t\t\t\t\t\tlet e = n.defaultValue;\n\t\t\t\t\t\t\t\tn.removeAttribute(y), n.defaultValue = e, n.value = n.__value = r ? e : null;\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tlet e = n.defaultChecked;\n\t\t\t\t\t\t\t\tn.removeAttribute(y), n.defaultChecked = e, n.checked = r ? e : !1;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} else e.removeAttribute(i);\n\t\t\t\t\t} else b || (s || typeof l != \"string\") && m.has(y) ? (e[y] = l, y in o && (o[y] = T)) : typeof l != \"function\" && Y(e, y, l, a);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\treturn l && at(!0), u;\n}\nfunction Oo(e, t, n = [], r = [], i = [], a, o = !1, s = !1) {\n\tBt(i, n, r, (n) => {\n\t\tvar r = void 0, i = {}, c = e.nodeName === Co, l = !1;\n\t\tif (Mr(() => {\n\t\t\tvar u = t(...n.map(G)), d = Do(e, r, u, a, o, s);\n\t\t\tif (l && c) {\n\t\t\t\tvar f = e;\n\t\t\t\t\"defaultValue\" in u && lo(f, u.defaultValue), \"value\" in u && fo(f, u.value);\n\t\t\t}\n\t\t\tfor (let e of Object.getOwnPropertySymbols(i)) u[e] || H(i[e]);\n\t\t\tfor (let t of Object.getOwnPropertySymbols(u)) {\n\t\t\t\tvar p = u[t];\n\t\t\t\tt.description === \"@attach\" && (!r || p !== r[t]) && (i[t] && H(i[t]), i[t] = Nr(() => Xa(e, () => p))), d[t] = p;\n\t\t\t}\n\t\t\tr = d;\n\t\t}), c) {\n\t\t\tvar u = e;\n\t\t\tOr(() => {\n\t\t\t\tvar e = r;\n\t\t\t\t\"defaultValue\" in e && lo(u, e.defaultValue), fo(u, e.value, !0), po(u);\n\t\t\t});\n\t\t}\n\t\tl = !0;\n\t});\n}\nfunction ko(e) {\n\treturn e[Ge] ?? (e[Ge] = {\n\t\t[vo]: e.nodeName.includes(\"-\"),\n\t\t[yo]: e.namespaceURI === \"http://www.w3.org/1999/xhtml\"\n\t});\n}\nvar Ao = /* @__PURE__ */ new Map();\nfunction jo(e) {\n\tvar t = e.getAttribute(\"is\") || e.nodeName, n = Ao.get(t);\n\tif (n) return n;\n\tAo.set(t, n = /* @__PURE__ */ new Set());\n\tfor (var r, i = e, a = Element.prototype; a !== i;) {\n\t\tfor (var o in r = me(i), r) r[o].set && o !== \"innerHTML\" && o !== \"textContent\" && o !== \"innerText\" && n.add(o);\n\t\ti = _e(i);\n\t}\n\treturn n;\n}\n//#endregion\n//#region ../../node_modules/.bun/svelte@5.57.1/node_modules/svelte/src/internal/client/dom/elements/bindings/size.js\nvar Mo, No = /* @__PURE__ */ new WeakMap(), Po = /* @__PURE__ */ new WeakMap(), Fo = /* @__PURE__ */ new WeakMap(), Io = /* @__PURE__ */ new WeakSet(), Lo = class {\n\tconstructor(e) {\n\t\ten(this, Io), M(this, No, /* @__PURE__ */ new WeakMap()), M(this, Po, void 0), M(this, Fo, void 0), P(Fo, this, e);\n\t}\n\tobserve(e, t) {\n\t\tvar n = F(No, this).get(e) || /* @__PURE__ */ new Set();\n\t\treturn n.add(t), F(No, this).set(e, n), N(Io, this, Ro).call(this).observe(e, F(Fo, this)), () => {\n\t\t\tvar n = F(No, this).get(e);\n\t\t\tn.delete(t), n.size === 0 && (F(No, this).delete(e), F(Po, this).unobserve(e));\n\t\t};\n\t}\n};\nMo = Lo;\nfunction Ro() {\n\treturn F(Po, this) ?? P(Po, this, new ResizeObserver((e) => {\n\t\tfor (var t of e) {\n\t\t\tMo.entries.set(t.target, t);\n\t\t\tfor (var n of F(No, this).get(t.target) || []) n(t);\n\t\t}\n\t}));\n}\nTe(Lo, \"entries\", /* @__PURE__ */ new WeakMap());\n//#endregion\n//#region ../../node_modules/.bun/svelte@5.57.1/node_modules/svelte/src/internal/client/dom/elements/bindings/this.js\nfunction zo(e, t) {\n\treturn e === t || e?.[Ve] === t;\n}\nfunction Bo(e = Ot(), t, n, r) {\n\tvar i = wt.r, a = W;\n\treturn Or(() => {\n\t\tvar o, s;\n\t\treturn Ar(() => {\n\t\t\to = s, s = r?.() || [], _i(() => {\n\t\t\t\tzo(n(...s), e) || (t(e, ...s), o && zo(n(...o), e) && t(null, ...o));\n\t\t\t});\n\t\t}), () => {\n\t\t\tlet r = a;\n\t\t\tfor (; r !== i && r.parent !== null && r.parent.f & 33554432;) r = r.parent;\n\t\t\tlet o = () => {\n\t\t\t\ts && zo(n(...s), e) && t(null, ...s);\n\t\t\t}, c = r.teardown;\n\t\t\tr.teardown = () => {\n\t\t\t\to(), c?.();\n\t\t\t};\n\t\t};\n\t}), e;\n}\n//#endregion\n//#region ../../node_modules/.bun/svelte@5.57.1/node_modules/svelte/src/internal/client/reactivity/store.js\nvar Vo = !1;\nfunction Ho(e) {\n\tvar t = Vo;\n\ttry {\n\t\treturn Vo = !1, [e(), Vo];\n\t} finally {\n\t\tVo = t;\n\t}\n}\n//#endregion\n//#region ../../node_modules/.bun/svelte@5.57.1/node_modules/svelte/src/internal/client/reactivity/props.js\nfunction Uo(e, t, n, r) {\n\tvar i = !0, a = !!(n & 8), o = !!(n & 16), s = r, c = !0, l = void 0, u = () => o && i ? (l ?? (l = /* @__PURE__ */ Wt(r)), G(l)) : (c && (c = !1, s = o ? _i(r) : r), s);\n\tlet d;\n\tif (a) {\n\t\tvar f = Ve in e || Ue in e;\n\t\td = pe(e, t)?.set ?? (f && t in e ? (n) => e[t] = n : void 0);\n\t}\n\tvar p, m = !1;\n\ta ? [p, m] = Ho(() => e[t]) : p = e[t], p === void 0 && r !== void 0 && (p = u(), d && (i && yt(t), d(p)));\n\tvar h = i ? () => {\n\t\tvar n = e[t];\n\t\treturn n === void 0 ? u() : (c = !0, n);\n\t} : () => {\n\t\tvar n = e[t];\n\t\treturn n !== void 0 && (s = void 0), n === void 0 ? s : n;\n\t};\n\tif (i && !(n & 4)) return h;\n\tif (d) {\n\t\tvar g = e.$$legacy;\n\t\treturn (function(e, t) {\n\t\t\treturn arguments.length > 0 ? ((!i || !t || g || m) && d(t ? h() : e), e) : h();\n\t\t});\n\t}\n\tvar _ = !1, v = (n & 1 ? Wt : qt)(() => (_ = !1, h()));\n\ta && G(v);\n\tvar y = W;\n\treturn (function(e, t) {\n\t\tif (arguments.length > 0) {\n\t\t\tlet n = t ? G(v) : i && a ? er(e) : e;\n\t\t\treturn z(v, n), _ = !0, s !== void 0 && (s = n), e;\n\t\t}\n\t\treturn Kr && _ || y.f & 16384 ? v.v : G(v);\n\t});\n}\nvar Wo, Go = !1, Ko = /* @__PURE__ */ new WeakMap(), qo = /* @__PURE__ */ new WeakMap(), Jo = /* @__PURE__ */ new WeakMap(), Yo = /* @__PURE__ */ new WeakSet();\nWo = class extends Date {\n\tconstructor(...e) {\n\t\tsuper(...e), en(this, Yo), M(this, Ko, /* @__PURE__ */ R(super.getTime())), M(this, qo, /* @__PURE__ */ new Map()), M(this, Jo, U), Go || N(Yo, this, Xo).call(this);\n\t}\n};\nfunction Xo() {\n\tGo = !0;\n\tvar e = Wo.prototype, t = Date.prototype, n = Object.getOwnPropertyNames(t);\n\tfor (let r of n) (r.startsWith(\"get\") || r.startsWith(\"to\") || r === \"valueOf\") && (e[r] = function(...e) {\n\t\tif (e.length > 0) return G(F(Ko, this)), t[r].apply(this, e);\n\t\tvar n = F(qo, this).get(r);\n\t\tif (n === void 0) {\n\t\t\tlet i = U;\n\t\t\tYr(F(Jo, this)), n = /* @__PURE__ */ j(() => (G(F(Ko, this)), t[r].apply(this, e))), F(qo, this).set(r, n), Yr(i);\n\t\t}\n\t\treturn G(n);\n\t}), r.startsWith(\"set\") && (e[r] = function(...e) {\n\t\tvar n = t[r].apply(this, e);\n\t\treturn z(F(Ko, this), t.getTime.call(this)), n;\n\t});\n}\n//#endregion\n//#region ../../node_modules/.bun/svelte@5.57.1/node_modules/svelte/src/reactivity/set.js\nvar Zo, Qo, $o = [\n\t\"forEach\",\n\t\"isDisjointFrom\",\n\t\"isSubsetOf\",\n\t\"isSupersetOf\"\n], es = [\n\t\"difference\",\n\t\"intersection\",\n\t\"symmetricDifference\",\n\t\"union\"\n], ts = !1, ns = /* @__PURE__ */ new WeakMap(), rs = /* @__PURE__ */ new WeakMap(), is = /* @__PURE__ */ new WeakMap(), as = /* @__PURE__ */ new WeakMap(), os = /* @__PURE__ */ new WeakSet();\nQo = Symbol.iterator, Zo = class extends Set {\n\tconstructor(e) {\n\t\tif (super(), en(this, os), M(this, ns, /* @__PURE__ */ new Map()), M(this, rs, /* @__PURE__ */ R(0)), M(this, is, /* @__PURE__ */ R(0)), M(this, as, ai || -1), e) {\n\t\t\tfor (var t of e) super.add(t);\n\t\t\tF(is, this).v = super.size;\n\t\t}\n\t\tts || N(os, this, cs).call(this);\n\t}\n\thas(e) {\n\t\tvar t = super.has(e), n = F(ns, this), r = n.get(e);\n\t\tif (r === void 0) {\n\t\t\tif (!t) return G(F(rs, this)), !1;\n\t\t\tr = N(os, this, ss).call(this, !0), n.set(e, r);\n\t\t}\n\t\treturn G(r), t;\n\t}\n\tadd(e) {\n\t\treturn super.has(e) || (super.add(e), z(F(is, this), super.size), Qn(F(rs, this))), this;\n\t}\n\tdelete(e) {\n\t\tvar t = super.delete(e), n = F(ns, this), r = n.get(e);\n\t\treturn r !== void 0 && (n.delete(e), z(r, !1)), t && (z(F(is, this), super.size), Qn(F(rs, this))), t;\n\t}\n\tclear() {\n\t\tif (super.size !== 0) {\n\t\t\tsuper.clear();\n\t\t\tvar e = F(ns, this);\n\t\t\tfor (var t of e.values()) z(t, !1);\n\t\t\te.clear(), z(F(is, this), 0), Qn(F(rs, this));\n\t\t}\n\t}\n\tkeys() {\n\t\treturn this.values();\n\t}\n\tvalues() {\n\t\treturn G(F(rs, this)), super.values();\n\t}\n\tentries() {\n\t\treturn G(F(rs, this)), super.entries();\n\t}\n\t[Qo]() {\n\t\treturn this.keys();\n\t}\n\tget size() {\n\t\treturn G(F(is, this));\n\t}\n};\nfunction ss(e) {\n\treturn ai === F(as, this) ? /* @__PURE__ */ R(e) : Kn(e);\n}\nfunction cs() {\n\tts = !0;\n\tvar e = Zo.prototype, t = Set.prototype;\n\tfor (let n of $o) e[n] = function(...e) {\n\t\treturn G(F(rs, this)), t[n].apply(this, e);\n\t};\n\tfor (let n of es) e[n] = function(...e) {\n\t\tG(F(rs, this));\n\t\tvar r = t[n].apply(this, e);\n\t\treturn new Zo(r);\n\t};\n}\n//#endregion\n//#region \\0@oxc-project+runtime@0.144.0/helpers/esm/getPrototypeOf.js\nfunction ls(e) {\n\treturn ls = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(e) {\n\t\treturn e.__proto__ || Object.getPrototypeOf(e);\n\t}, ls(e);\n}\n//#endregion\n//#region \\0@oxc-project+runtime@0.144.0/helpers/esm/superPropBase.js\nfunction us(e, t) {\n\tfor (; !{}.hasOwnProperty.call(e, t) && (e = ls(e)) !== null;);\n\treturn e;\n}\n//#endregion\n//#region \\0@oxc-project+runtime@0.144.0/helpers/esm/get.js\nfunction ds() {\n\treturn ds = typeof Reflect < \"u\" && Reflect.get ? Reflect.get.bind() : function(e, t, n) {\n\t\tvar r = us(e, t);\n\t\tif (r) {\n\t\t\tvar i = Object.getOwnPropertyDescriptor(r, t);\n\t\t\treturn i.get ? i.get.call(arguments.length < 3 ? e : n) : i.value;\n\t\t}\n\t}, ds.apply(null, arguments);\n}\n//#endregion\n//#region \\0@oxc-project+runtime@0.144.0/helpers/esm/superPropGet.js\nfunction fs(e, t, n, r) {\n\tvar i = ds(ls(1 & r ? e.prototype : e), t, n);\n\treturn 2 & r && typeof i == \"function\" ? function(e) {\n\t\treturn i.apply(n, e);\n\t} : i;\n}\n//#endregion\n//#region ../../node_modules/.bun/svelte@5.57.1/node_modules/svelte/src/reactivity/map.js\nvar ps, ms, hs = /* @__PURE__ */ new WeakMap(), gs = /* @__PURE__ */ new WeakMap(), _s = /* @__PURE__ */ new WeakMap(), vs = /* @__PURE__ */ new WeakMap(), ys = /* @__PURE__ */ new WeakSet();\nms = Symbol.iterator, ps = class extends Map {\n\tconstructor(e) {\n\t\tif (super(), en(this, ys), M(this, hs, /* @__PURE__ */ new Map()), M(this, gs, /* @__PURE__ */ R(0)), M(this, _s, /* @__PURE__ */ R(0)), M(this, vs, ai || -1), e) {\n\t\t\tfor (var [t, n] of e) super.set(t, n);\n\t\t\tF(_s, this).v = super.size;\n\t\t}\n\t}\n\thas(e) {\n\t\tvar t = F(hs, this), n = t.get(e);\n\t\tif (n === void 0) {\n\t\t\tif (super.has(e)) n = N(ys, this, bs).call(this, 0), t.set(e, n);\n\t\t\telse return G(F(gs, this)), !1;\n\t\t}\n\t\treturn G(n), !0;\n\t}\n\tforEach(e, t) {\n\t\tN(ys, this, xs).call(this), super.forEach(e, t);\n\t}\n\tget(e) {\n\t\tvar t = F(hs, this), n = t.get(e);\n\t\tif (n === void 0) {\n\t\t\tif (super.has(e)) n = N(ys, this, bs).call(this, 0), t.set(e, n);\n\t\t\telse {\n\t\t\t\tG(F(gs, this));\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t\treturn G(n), super.get(e);\n\t}\n\tgetOrInsert(e, t) {\n\t\treturn super.has(e) || this.set(e, t), this.get(e);\n\t}\n\tgetOrInsertComputed(e, t) {\n\t\treturn super.has(e) || this.set(e, t(e)), this.get(e);\n\t}\n\tset(e, t) {\n\t\tvar n = F(hs, this), r = n.get(e), i = super.get(e), a = super.set(e, t), o = F(gs, this);\n\t\tif (r === void 0) r = N(ys, this, bs).call(this, 0), n.set(e, r), z(F(_s, this), super.size), Qn(o);\n\t\telse if (i !== t) {\n\t\t\tQn(r);\n\t\t\tvar s = o.reactions === null ? null : new Set(o.reactions);\n\t\t\t(s === null || !r.reactions?.every((e) => s.has(e))) && Qn(o);\n\t\t}\n\t\treturn a;\n\t}\n\tdelete(e) {\n\t\tvar t = F(hs, this), n = t.get(e), r = super.delete(e);\n\t\treturn n !== void 0 && (t.delete(e), z(n, -1)), r && (z(F(_s, this), super.size), Qn(F(gs, this))), r;\n\t}\n\tclear() {\n\t\tif (super.size !== 0) {\n\t\t\tsuper.clear();\n\t\t\tvar e = F(hs, this);\n\t\t\tz(F(_s, this), 0);\n\t\t\tfor (var t of e.values()) z(t, -1);\n\t\t\tQn(F(gs, this)), e.clear();\n\t\t}\n\t}\n\tkeys() {\n\t\treturn G(F(gs, this)), super.keys();\n\t}\n\tvalues() {\n\t\treturn N(ys, this, xs).call(this), super.values();\n\t}\n\tentries() {\n\t\treturn N(ys, this, xs).call(this), super.entries();\n\t}\n\t[ms]() {\n\t\treturn this.entries();\n\t}\n\tget size() {\n\t\treturn G(F(_s, this)), super.size;\n\t}\n};\nfunction bs(e) {\n\treturn ai === F(vs, this) ? /* @__PURE__ */ R(e) : Kn(e);\n}\nfunction xs() {\n\tG(F(gs, this));\n\tvar e = F(hs, this);\n\tif (F(_s, this).v !== e.size) {\n\t\tfor (var t of fs(ps.prototype, \"keys\", this, 2)([])) if (!e.has(t)) {\n\t\t\tvar n = N(ys, this, bs).call(this, 0);\n\t\t\te.set(t, n);\n\t\t}\n\t}\n\tfor ([, n] of F(hs, this)) G(n);\n}\n//#endregion\n//#region ../../node_modules/.bun/svelte@5.57.1/node_modules/svelte/src/internal/disclose-version.js\nif (typeof window < \"u\") {\n\tvar Ss, Cs;\n\t((Ss = (Cs = window).__svelte ?? (Cs.__svelte = {})).v ?? (Ss.v = /* @__PURE__ */ new Set())).add(\"5\");\n}\n//#endregion\n//#region src/extraction/types.ts\nvar ws = class extends Error {\n\tconstructor(e, t, n, r) {\n\t\tsuper(e), this.extractorId = t, this.elementType = n, this.cause = r, this.name = \"ExtractionError\";\n\t}\n}, Ts = Symbol(\"registerFrameworkDeliveryFields\"), Es = class e {\n\tconstructor(e) {\n\t\tthis.extractorsById = /* @__PURE__ */ new Map(), this.extractorsByType = /* @__PURE__ */ new Map(), this.deliveryFieldsByType = /* @__PURE__ */ new Map(), this.frameworkDeliveryFieldsByType = /* @__PURE__ */ new Map(), this.sealed = !1, this.qti2xMapper = new t(), this.elementNameMapper = e;\n\t}\n\tregister(e) {\n\t\tif (this.assertMutable(), this.extractorsById.has(e.id)) throw Error(`Extractor with ID '${e.id}' is already registered. Each extractor must have a unique ID.`);\n\t\tif (!e.id || typeof e.id != \"string\") throw Error(\"Extractor must have a valid string ID\");\n\t\tif (!e.elementTypes || e.elementTypes.length === 0) throw Error(`Extractor '${e.id}' must specify at least one element type`);\n\t\tif (typeof e.priority != \"number\") throw Error(`Extractor '${e.id}' must have a numeric priority`);\n\t\tif (e.outputType !== void 0 && (typeof e.outputType != \"string\" || !e.outputType)) throw Error(`Extractor '${e.id}' must have a non-empty outputType`);\n\t\tlet t = As(e);\n\t\tthis.extractorsById.set(t.id, t);\n\t\tfor (let e of t.elementTypes) {\n\t\t\tlet n = this.qti2xMapper.toCanonical(e), r = this.extractorsByType.get(n);\n\t\t\tr || (r = [], this.extractorsByType.set(n, r)), r.push(t), r.sort((e, t) => t.priority - e.priority);\n\t\t}\n\t}\n\tunregister(e) {\n\t\tthis.assertMutable();\n\t\tlet t = this.extractorsById.get(e);\n\t\tif (!t) return !1;\n\t\tthis.extractorsById.delete(e);\n\t\tfor (let n of t.elementTypes) {\n\t\t\tlet t = this.qti2xMapper.toCanonical(n), r = this.extractorsByType.get(t);\n\t\t\tif (r) {\n\t\t\t\tlet n = r.findIndex((t) => t.id === e);\n\t\t\t\tn !== -1 && r.splice(n, 1), r.length === 0 && this.extractorsByType.delete(t);\n\t\t\t}\n\t\t}\n\t\treturn !0;\n\t}\n\tfindExtractor(e, t) {\n\t\tlet n = e.rawTagName || \"\";\n\t\tn && this.elementNameMapper && (n = this.elementNameMapper.toCanonical(n));\n\t\tlet r = this.extractorsByType.get(n);\n\t\tif (!r || r.length === 0) return null;\n\t\tfor (let n of r) try {\n\t\t\tif (n.canHandle(e, t)) return n;\n\t\t} catch (e) {\n\t\t\tconsole.warn(`canHandle() failed for extractor '${n.id}' (${n.name}):`, e);\n\t\t}\n\t\treturn null;\n\t}\n\textract(e, t) {\n\t\tlet n = this.findExtractor(e, t);\n\t\tif (!n) {\n\t\t\tlet t = e.rawTagName || \"unknown\";\n\t\t\treturn {\n\t\t\t\tsuccess: !1,\n\t\t\t\terror: new ws(`No extractor available for element '${t}'. Registered types: ${Array.from(this.extractorsByType.keys()).join(\", \")}`, \"none\", t)\n\t\t\t};\n\t\t}\n\t\ttry {\n\t\t\tlet r = n.extract(e, t);\n\t\t\tif (n.validate) {\n\t\t\t\tlet t = n.validate(r);\n\t\t\t\tif (!t.valid) return {\n\t\t\t\t\tsuccess: !1,\n\t\t\t\t\terror: new ws(`Validation failed for extractor '${n.id}': ${t.errors?.join(\", \")}`, n.id, e.rawTagName || \"unknown\")\n\t\t\t\t};\n\t\t\t\tif (t.warnings && t.warnings.length > 0) return {\n\t\t\t\t\tsuccess: !0,\n\t\t\t\t\tdata: r,\n\t\t\t\t\textractor: n,\n\t\t\t\t\twarnings: t.warnings\n\t\t\t\t};\n\t\t\t}\n\t\t\treturn {\n\t\t\t\tsuccess: !0,\n\t\t\t\tdata: r,\n\t\t\t\textractor: n\n\t\t\t};\n\t\t} catch (t) {\n\t\t\tlet r = e.rawTagName || \"unknown\";\n\t\t\treturn {\n\t\t\t\tsuccess: !1,\n\t\t\t\terror: t instanceof ws ? t : new ws(`Extraction failed for '${r}': ${t instanceof Error ? t.message : String(t)}`, n.id, r, t instanceof Error ? t : void 0)\n\t\t\t};\n\t\t}\n\t}\n\tgetExtractors() {\n\t\tlet e = Array.from(this.extractorsById.values());\n\t\treturn e.sort((e, t) => t.priority - e.priority), e;\n\t}\n\tgetExtractorsForType(e) {\n\t\tlet t = this.qti2xMapper.toCanonical(e);\n\t\treturn Object.freeze([...this.extractorsByType.get(t) ?? []]);\n\t}\n\tregisterDeliveryFields(e, t) {\n\t\tthis.assertMutable();\n\t\tlet n = this.qti2xMapper.toCanonical(e), r = this.deliveryFieldsByType.get(n) ?? [];\n\t\tthis.deliveryFieldsByType.set(n, js([...r, ...t]));\n\t}\n\t[Ts](e, t) {\n\t\tthis.assertMutable();\n\t\tlet n = this.qti2xMapper.toCanonical(e), r = this.frameworkDeliveryFieldsByType.get(n) ?? [];\n\t\tthis.frameworkDeliveryFieldsByType.set(n, js([...r, ...t]));\n\t}\n\tgetDeliveryFieldsForType(e) {\n\t\tlet t = this.qti2xMapper.toCanonical(e);\n\t\treturn Ms(this.deliveryFieldsByType.get(t) ?? Ds, this.frameworkDeliveryFieldsByType.get(t) ?? Ds);\n\t}\n\thasExtractor(e) {\n\t\treturn this.extractorsById.has(e);\n\t}\n\tclear() {\n\t\tthis.assertMutable(), this.extractorsById.clear(), this.extractorsByType.clear(), this.deliveryFieldsByType.clear(), this.frameworkDeliveryFieldsByType.clear();\n\t}\n\tclone() {\n\t\tlet t = new e(this.elementNameMapper);\n\t\tfor (let e of this.extractorsById.values()) t.register(e);\n\t\tfor (let [e, n] of this.deliveryFieldsByType) t.deliveryFieldsByType.set(e, js(n));\n\t\tfor (let [e, n] of this.frameworkDeliveryFieldsByType) t.frameworkDeliveryFieldsByType.set(e, js(n));\n\t\treturn t;\n\t}\n\tseal() {\n\t\treturn this.sealed = !0, this;\n\t}\n\tisSealed() {\n\t\treturn this.sealed;\n\t}\n\tassertMutable() {\n\t\tif (this.sealed) throw Error(\"ExtractionRegistry is sealed for this AssessmentItem; create a new definition to change InteractionModules\");\n\t}\n}, Ds = Object.freeze([]);\nfunction Os(e) {\n\treturn new Es(e);\n}\nfunction ks(e, t, n) {\n\te[Ts](t, n);\n}\nfunction As(e) {\n\tlet t = e.delivery ? Object.freeze({ fields: js(e.delivery.fields) }) : void 0;\n\treturn Object.freeze({\n\t\tid: e.id,\n\t\tname: e.name,\n\t\tpriority: e.priority,\n\t\telementTypes: Object.freeze([...e.elementTypes]),\n\t\t...e.description ? { description: e.description } : {},\n\t\t...e.outputType ? { outputType: e.outputType } : {},\n\t\t...t ? { delivery: t } : {},\n\t\tcanHandle: e.canHandle.bind(e),\n\t\textract: e.extract.bind(e),\n\t\t...e.validate ? { validate: e.validate.bind(e) } : {}\n\t});\n}\nfunction js(e) {\n\treturn Object.freeze(e.map((e) => Object.freeze({\n\t\t...e,\n\t\tpath: Object.freeze([...e.path])\n\t})));\n}\nfunction Ms(e, t) {\n\tif (e.length === 0 && t.length === 0) return Ds;\n\tlet n = /* @__PURE__ */ new Map();\n\tfor (let r of [...e, ...t]) n.set(JSON.stringify(r.path), r);\n\treturn js([...n.values()]);\n}\n//#endregion\n//#region src/extraction/deliveryTypes.ts\nfunction Ns(...e) {\n\treturn {\n\t\tkind: \"html\",\n\t\tpath: e\n\t};\n}\nfunction Ps(e, ...t) {\n\treturn {\n\t\tkind: \"url\",\n\t\tpath: t,\n\t\tuse: e\n\t};\n}\n//#endregion\n//#region src/core/random.ts\nfunction Fs(e) {\n\tlet t = e >>> 0;\n\treturn () => {\n\t\tt = t + 1831565813 >>> 0;\n\t\tlet e = t;\n\t\treturn e = Math.imul(e ^ e >>> 15, e | 1), e ^= e + Math.imul(e ^ e >>> 7, e | 61), ((e ^ e >>> 14) >>> 0) / 4294967296;\n\t};\n}\n//#endregion\n//#region src/core/shuffle.ts\nfunction Is(e) {\n\tlet t = 2166136261;\n\tfor (let n = 0; n < e.length; n++) t ^= e.charCodeAt(n), t = Math.imul(t, 16777619);\n\treturn t >>> 0;\n}\nfunction Ls(e, t) {\n\treturn Fs(Is(`${e}:${t}`));\n}\nfunction Rs(e, t, n) {\n\tlet r = /* @__PURE__ */ new Map(), i = [];\n\tfor (let n = 0; n < e.length; n++) {\n\t\tlet a = e[n];\n\t\tt(a) ? r.set(n, a) : i.push(a);\n\t}\n\tfor (let e = i.length - 1; e > 0; e--) {\n\t\tlet t = Math.floor(n() * (e + 1));\n\t\t[i[e], i[t]] = [i[t], i[e]];\n\t}\n\tlet a = Array(e.length), o = 0;\n\tfor (let t = 0; t < e.length; t++) {\n\t\tlet e = r.get(t);\n\t\ta[t] = e === void 0 ? i[o++] : e;\n\t}\n\treturn a;\n}\nfunction zs(e, t, n) {\n\treturn !t || !n || e.length < 2 ? [...e] : Rs(e, (e) => e.fixed === !0, n);\n}\n//#endregion\n//#region src/interactions/associate/extractor.ts\nvar Bs = {\n\tid: \"qti:associate-interaction\",\n\tname: \"QTI Standard Associate Interaction\",\n\tpriority: 10,\n\telementTypes: [\"associateInteraction\"],\n\tdescription: \"Extracts standard QTI associateInteraction (associating items)\",\n\tcanHandle(e, t) {\n\t\treturn t.utils.matchesTag(e, \"associateInteraction\") && t.utils.hasChildWithTag(e, \"simpleAssociableChoice\");\n\t},\n\textract(e, t) {\n\t\tlet { utils: n } = t, r = n.getChildrenByTag(e, \"simpleAssociableChoice\").map((e) => {\n\t\t\tlet t = n.getClasses(e), r = n.getNumberAttribute(e, \"matchMax\", 1), i = n.getNumberAttribute(e, \"matchMin\", 0), a = n.getAttribute(e, \"matchGroup\", \"\").split(/\\s+/).filter(Boolean);\n\t\t\treturn {\n\t\t\t\tidentifier: n.getAttribute(e, \"identifier\", \"\"),\n\t\t\t\ttext: n.getHtmlContent(e),\n\t\t\t\tmatchMax: r,\n\t\t\t\t...i > 0 ? { matchMin: i } : {},\n\t\t\t\t...a.length > 0 ? { matchGroup: a } : {},\n\t\t\t\t...t.length > 0 ? { classes: t } : {}\n\t\t\t};\n\t\t}), i = n.getBooleanAttribute(e, \"shuffle\"), a = n.getNumberAttribute(e, \"maxAssociations\", 0), o = n.getNumberAttribute(e, \"minAssociations\", 0), s = n.getChildrenByTag(e, \"prompt\"), c = s.length > 0 ? n.getHtmlContent(s[0]) : null;\n\t\treturn {\n\t\t\tchoices: zs(r, i, t.shuffleRng),\n\t\t\tshuffle: i,\n\t\t\tmaxAssociations: a,\n\t\t\t...o > 0 ? { minAssociations: o } : {},\n\t\t\tprompt: c\n\t\t};\n\t},\n\tvalidate(e) {\n\t\tlet t = [];\n\t\tif ((!e.choices || e.choices.length < 2) && t.push(\"associateInteraction must have at least 2 choices\"), e.choices) {\n\t\t\tlet n = /* @__PURE__ */ new Set();\n\t\t\tfor (let r of e.choices) r.identifier ? n.has(r.identifier) ? t.push(`Duplicate choice identifier: ${r.identifier}`) : n.add(r.identifier) : t.push(\"All choices must have an identifier\"), r.matchMax < 0 && t.push(`matchMax must be non-negative for choice ${r.identifier}`), r.matchMin !== void 0 && r.matchMin < 0 && t.push(`matchMin must be non-negative for choice ${r.identifier}`);\n\t\t}\n\t\treturn e.maxAssociations < 0 && t.push(\"maxAssociations must be non-negative\"), e.minAssociations !== void 0 && e.minAssociations < 0 && t.push(\"minAssociations must be non-negative\"), {\n\t\t\tvalid: t.length === 0,\n\t\t\terrors: t.length > 0 ? t : void 0\n\t\t};\n\t}\n}, Vs = {\n\tid: \"qti:choice-interaction\",\n\tname: \"QTI Standard Choice Interaction\",\n\tpriority: 10,\n\telementTypes: [\"choiceInteraction\"],\n\tdescription: \"Extracts standard QTI choiceInteraction with simpleChoice elements\",\n\tcanHandle(e, t) {\n\t\treturn t.utils.hasChildWithTag(e, \"simpleChoice\");\n\t},\n\textract(e, t) {\n\t\tlet { utils: n } = t, r = n.getChildrenByTag(e, \"simpleChoice\").map((e) => {\n\t\t\tlet t = n.getClasses(e), r = n.getBooleanAttribute(e, \"fixed\");\n\t\t\treturn {\n\t\t\t\tidentifier: n.getAttribute(e, \"identifier\", \"\"),\n\t\t\t\ttext: n.getHtmlContent(e),\n\t\t\t\t...r ? { fixed: r } : {},\n\t\t\t\t...t.length > 0 ? { classes: t } : {}\n\t\t\t};\n\t\t}), i = n.querySelector(e, \"prompt\"), a = i ? n.getHtmlContent(i) : null, o = n.getBooleanAttribute(e, \"shuffle\"), s = n.getNumberAttribute(e, \"maxChoices\", 1), c = n.getNumberAttribute(e, \"minChoices\", 0), l = n.getClasses(e), u = n.getAttribute(e, \"data-max-selections-message\", \"\") || null, d = n.getAttribute(e, \"data-min-selections-message\", \"\") || null;\n\t\treturn {\n\t\t\tchoices: zs(r, o, t.shuffleRng),\n\t\t\tshuffle: o,\n\t\t\tmaxChoices: s,\n\t\t\tminChoices: c,\n\t\t\tprompt: a,\n\t\t\t...l.length > 0 ? { interactionClasses: l } : {},\n\t\t\t...u ? { maxSelectionsMessage: u } : {},\n\t\t\t...d ? { minSelectionsMessage: d } : {}\n\t\t};\n\t},\n\tvalidate(e) {\n\t\tlet t = [], n = [];\n\t\tif ((!e.choices || e.choices.length === 0) && t.push(\"choiceInteraction must have at least one choice\"), e.choices) {\n\t\t\tlet n = /* @__PURE__ */ new Set();\n\t\t\tfor (let r of e.choices) r.identifier ? n.has(r.identifier) ? t.push(`Duplicate choice identifier: ${r.identifier}`) : n.add(r.identifier) : t.push(\"All choices must have an identifier\");\n\t\t}\n\t\treturn e.maxChoices < 0 && t.push(\"maxChoices must be non-negative\"), e.maxChoices === 0 && n.push(\"maxChoices=0 means unlimited selections\"), e.maxChoices > e.choices.length && n.push(`maxChoices (${e.maxChoices}) is greater than the number of choices (${e.choices.length})`), {\n\t\t\tvalid: t.length === 0,\n\t\t\terrors: t.length > 0 ? t : void 0,\n\t\t\twarnings: n.length > 0 ? n : void 0\n\t\t};\n\t}\n}, Hs = {\n\tid: \"qti:custom-interaction\",\n\tname: \"QTI Standard Custom Interaction\",\n\tpriority: 10,\n\telementTypes: [\"customInteraction\"],\n\tdescription: \"Extracts standard QTI customInteraction (custom/portable interactions)\",\n\tcanHandle(e, t) {\n\t\tlet n = e.rawTagName?.toLowerCase() ?? \"\";\n\t\treturn n !== \"custominteraction\" && n !== \"qti-custom-interaction\" ? !1 : !Us(e);\n\t},\n\textract(e, t) {\n\t\tlet { utils: n } = t, r = e.outerHTML || e.toString(), i = {};\n\t\tif (e.attributes) for (let [t, n] of Object.entries(e.attributes)) i[t] = String(n);\n\t\tlet a = n.getChildrenByTag(e, \"prompt\");\n\t\treturn {\n\t\t\txml: r,\n\t\t\trawAttributes: i,\n\t\t\tprompt: a.length > 0 ? n.getHtmlContent(a[0]) : null\n\t\t};\n\t},\n\tvalidate(e) {\n\t\tlet t = [];\n\t\treturn (!e.xml || e.xml.trim() === \"\") && t.push(\"customInteraction has no XML content\"), {\n\t\t\tvalid: !0,\n\t\t\twarnings: t.length > 0 ? t : void 0\n\t\t};\n\t}\n};\nfunction Us(e) {\n\tlet t = (e) => {\n\t\tfor (let n of e.childNodes ?? []) {\n\t\t\tlet e = n, r = e.rawTagName?.toLowerCase() ?? \"\", i = r.includes(\":\") ? r.slice(r.lastIndexOf(\":\") + 1) : r;\n\t\t\tif (i === \"portablecustominteraction\" || i === \"qti-portable-custom-interaction\" || e.rawTagName && t(e)) return !0;\n\t\t}\n\t\treturn !1;\n\t};\n\treturn t(e);\n}\n//#endregion\n//#region src/security/styleValues.ts\nvar Ws = /^(?:\\d+(?:\\.\\d*)?|\\.\\d+)$/, Gs = 1e5;\nfunction Ks(e, t) {\n\tif (typeof e == \"number\") return Number.isFinite(e) && e >= 0 ? e : null;\n\tif (typeof e != \"string\") return null;\n\tlet n = e.trim();\n\tif (t && n.toLowerCase().endsWith(\"px\") && (n = n.slice(0, -2).trim()), !Ws.test(n)) return null;\n\tlet r = Number(n);\n\treturn Number.isFinite(r) && r >= 0 && r <= Gs ? r : null;\n}\nfunction qs(e) {\n\tlet t = Ks(e, !0);\n\treturn t === null ? null : `${t}px`;\n}\nfunction X(e, t) {\n\tlet n = Ks(e, !1);\n\tif (n !== null && n > 0) return String(n);\n\tif (t === void 0) return;\n\tlet r = Ks(t, !1);\n\treturn r !== null && r > 0 ? String(r) : void 0;\n}\n//#endregion\n//#region src/interactions/drawing/extractor.ts\nvar Js = {\n\tid: \"qti:drawing-interaction\",\n\tname: \"QTI Standard Drawing Interaction\",\n\tpriority: 10,\n\telementTypes: [\"drawingInteraction\"],\n\tdescription: \"Extracts standard QTI drawingInteraction (drawing on canvas)\",\n\tcanHandle(e, t) {\n\t\treturn t.utils.matchesTag(e, \"drawingInteraction\");\n\t},\n\textract(e, t) {\n\t\tlet { utils: n } = t, r = n.getChildrenByTag(e, \"object\"), i = null;\n\t\tif (r.length > 0) {\n\t\t\tlet e = r[0], t = n.getAttribute(e, \"type\", \"\"), a = n.getAttribute(e, \"data\", \"\"), o = X(n.getAttribute(e, \"width\", \"\")), s = X(n.getAttribute(e, \"height\", \"\"));\n\t\t\tt.startsWith(\"image/svg\") ? i = {\n\t\t\t\ttype: \"svg\",\n\t\t\t\tcontent: n.getHtmlContent(e),\n\t\t\t\t...o ? { width: o } : {},\n\t\t\t\t...s ? { height: s } : {}\n\t\t\t} : a && (i = {\n\t\t\t\ttype: \"image\",\n\t\t\t\tsrc: a,\n\t\t\t\t...o ? { width: o } : {},\n\t\t\t\t...s ? { height: s } : {}\n\t\t\t});\n\t\t}\n\t\tlet a = {};\n\t\tif (e.attributes) for (let [t, n] of Object.entries(e.attributes)) a[t] = String(n);\n\t\tlet o = n.getChildrenByTag(e, \"prompt\"), s = o.length > 0 ? n.getHtmlContent(o[0]) : null;\n\t\treturn {\n\t\t\timageData: i,\n\t\t\trawAttributes: a,\n\t\t\tprompt: s\n\t\t};\n\t},\n\tvalidate(e) {\n\t\tlet t = [];\n\t\treturn e.imageData || t.push(\"drawingInteraction has no background image - students will draw on a blank canvas\"), {\n\t\t\tvalid: !0,\n\t\t\twarnings: t.length > 0 ? t : void 0\n\t\t};\n\t}\n}, Ys = {\n\tid: \"qti:end-attempt-interaction\",\n\tname: \"QTI Standard End Attempt Interaction\",\n\tpriority: 10,\n\telementTypes: [\"endAttemptInteraction\"],\n\tdescription: \"Extracts standard QTI endAttemptInteraction (end attempt button)\",\n\tcanHandle(e, t) {\n\t\treturn t.utils.matchesTag(e, \"endAttemptInteraction\");\n\t},\n\textract(e, t) {\n\t\tlet { utils: n } = t, r = n.getAttribute(e, \"title\", \"End Attempt\"), i = !e.hasAttribute(\"countAttempt\") || n.getBooleanAttribute(e, \"countAttempt\"), a = n.getChildrenByTag(e, \"prompt\");\n\t\treturn {\n\t\t\ttitle: r,\n\t\t\tcountAttempt: i,\n\t\t\tprompt: a.length > 0 ? n.getHtmlContent(a[0]) : null\n\t\t};\n\t},\n\tvalidate(e) {\n\t\tlet t = [], n = [];\n\t\treturn (!e.title || e.title.trim() === \"\") && t.push(\"endAttemptInteraction must have a title\"), e.countAttempt === !1 && n.push(\"endAttemptInteraction has countAttempt=false - make sure this is intentional\"), {\n\t\t\tvalid: t.length === 0,\n\t\t\terrors: t.length > 0 ? t : void 0,\n\t\t\twarnings: n.length > 0 ? n : void 0\n\t\t};\n\t}\n}, Xs = {\n\tid: \"qti:extended-text-interaction\",\n\tname: \"QTI Standard Extended Text Interaction\",\n\tpriority: 10,\n\telementTypes: [\"extendedTextInteraction\"],\n\tdescription: \"Extracts standard QTI extendedTextInteraction (multi-line text input)\",\n\tcanHandle(e, t) {\n\t\treturn e.rawTagName === \"extendedTextInteraction\" || e.rawTagName === \"qti-extended-text-interaction\";\n\t},\n\textract(e, t) {\n\t\tlet { utils: n } = t, r = t.declarations.get(t.responseId), i = r?.cardinality ?? \"single\", a = n.getNumberAttribute(e, \"base\", 10), o = n.getAttribute(e, \"stringIdentifier\", \"\") || void 0, s = n.getNumberAttribute(e, \"minStrings\", 0), c = n.getNumberAttribute(e, \"maxStrings\", +(i === \"single\" || i === \"record\")), l = n.getNumberAttribute(e, \"expectedLines\", 3), u = n.getNumberAttribute(e, \"expectedLength\", 200), d = n.getAttribute(e, \"placeholderText\", \"\"), f = n.getAttribute(e, \"format\", \"plain\"), p = n.getAttribute(e, \"patternMask\", \"\") || null, m = n.getAttribute(e, \"patternMaskMessage\", \"\") || null, h = n.getClasses(e), g = n.getPrompt(e);\n\t\treturn {\n\t\t\tcardinality: i,\n\t\t\tbaseType: r?.baseType,\n\t\t\tbase: a,\n\t\t\t...o ? { stringIdentifier: o } : {},\n\t\t\tminStrings: s,\n\t\t\tmaxStrings: c,\n\t\t\texpectedLines: l,\n\t\t\texpectedLength: u,\n\t\t\tprompt: g,\n\t\t\tplaceholderText: d,\n\t\t\tformat: f,\n\t\t\t...p ? { patternMask: p } : {},\n\t\t\t...m ? { patternMaskMessage: m } : {},\n\t\t\t...h.length > 0 ? { interactionClasses: h } : {}\n\t\t};\n\t},\n\tvalidate(e) {\n\t\tlet t = [], n = [];\n\t\treturn e.cardinality === \"record\" ? (e.baseType && t.push(\"record cardinality must not declare a baseType\"), (e.minStrings > 1 || e.maxStrings > 1) && t.push(\"record cardinality captures exactly one numeric string\")) : [\n\t\t\t\"string\",\n\t\t\t\"integer\",\n\t\t\t\"float\"\n\t\t].includes(e.baseType ?? \"\") || t.push(\"extendedTextInteraction baseType must be string, integer, or float\"), (!Number.isInteger(e.base) || e.base < 2 || e.base > 36) && t.push(\"base must be an integer from 2 through 36\"), (!Number.isInteger(e.minStrings) || e.minStrings < 0) && t.push(\"minStrings must be a non-negative integer\"), (!Number.isInteger(e.maxStrings) || e.maxStrings < 0) && t.push(\"maxStrings must be a non-negative integer\"), e.maxStrings > 0 && e.minStrings > e.maxStrings && t.push(\"minStrings must not exceed maxStrings\"), (!Number.isInteger(e.expectedLines) || e.expectedLines < 0) && t.push(\"expectedLines must be a non-negative integer\"), (!Number.isInteger(e.expectedLength) || e.expectedLength < 0) && t.push(\"expectedLength must be a non-negative integer\"), [\n\t\t\t\"plain\",\n\t\t\t\"preFormatted\",\n\t\t\t\"preformatted\",\n\t\t\t\"xhtml\"\n\t\t].includes(e.format) || n.push(`Unrecognized format \"${e.format}\" - expected plain, preformatted, preFormatted, or xhtml`), {\n\t\t\tvalid: t.length === 0,\n\t\t\terrors: t.length > 0 ? t : void 0,\n\t\t\twarnings: n.length > 0 ? n : void 0\n\t\t};\n\t}\n}, Zs = /<(?:qti-gap|gap)(?=[\\s/>])([^>]*)\\/?>/gi, Qs = /<\\/(?:qti-gap|gap)>/gi, $s = /<(?:qti-gap-text|gapText)\\b[\\s\\S]*?<\\/(?:qti-gap-text|gapText)>/gi, ec = /<(?:qti-gap-match-interaction|gapMatchInteraction)\\b[^>]*>/i, tc = /<\\/(?:qti-gap-match-interaction|gapMatchInteraction)>/i, nc = /<(?:qti-prompt|prompt)\\b[\\s\\S]*?<\\/(?:qti-prompt|prompt)>/gi;\nfunction rc(e, t) {\n\tlet n = RegExp(`\\\\b${t}\\\\s*=\\\\s*(?:\"([^\"]*)\"|'([^']*)')`, \"i\").exec(e);\n\treturn (n?.[1] ?? n?.[2] ?? \"\").trim();\n}\nfunction ic(e) {\n\treturn e.replace(ec, \"\").replace(tc, \"\").replace(nc, \"\").replace($s, \"\").replace(Zs, (e, t) => {\n\t\tlet n = rc(t, \"identifier\");\n\t\treturn n ? `[GAP:${n}]` : \"\";\n\t}).replace(Qs, \"\").trim();\n}\nvar ac = {\n\tid: \"qti:gap-match-interaction\",\n\tname: \"QTI Standard Gap Match Interaction\",\n\tpriority: 10,\n\telementTypes: [\"gapMatchInteraction\"],\n\tdescription: \"Extracts standard QTI gapMatchInteraction (drag words into gaps)\",\n\tcanHandle(e, t) {\n\t\treturn t.utils.matchesTag(e, \"gapMatchInteraction\");\n\t},\n\textract(e, t) {\n\t\tlet { utils: n } = t, r = n.getChildrenByTag(e, \"gapText\").map((e) => {\n\t\t\tlet t = n.getClasses(e), r = n.getNumberAttribute(e, \"matchMax\", 1), i = n.getNumberAttribute(e, \"matchMin\", 0), a = n.getAttribute(e, \"matchGroup\", \"\").split(/\\s+/).filter(Boolean);\n\t\t\treturn {\n\t\t\t\tidentifier: n.getAttribute(e, \"identifier\", \"\"),\n\t\t\t\ttext: n.getTextContent(e),\n\t\t\t\tmatchMax: r,\n\t\t\t\t...i > 0 ? { matchMin: i } : {},\n\t\t\t\t...a.length > 0 ? { matchGroup: a } : {},\n\t\t\t\t...t.length > 0 ? { classes: t } : {}\n\t\t\t};\n\t\t}), i = n.getChildrenByTag(e, \"prompt\"), a = null, o = \"\", s = [];\n\t\tif (i.length > 0) {\n\t\t\tlet e = i[0];\n\t\t\ta = n.getHtmlContent(e);\n\t\t\tlet t = n.getChildrenByTag(e, \"gap\");\n\t\t\tfor (let e of t) s.push(n.getAttribute(e, \"identifier\", \"\"));\n\t\t\to = a.replace(Zs, (e, t) => {\n\t\t\t\tlet n = rc(t, \"identifier\");\n\t\t\t\treturn n ? `[GAP:${n}]` : \"\";\n\t\t\t}).replace(Qs, \"\").trim();\n\t\t}\n\t\tif (s.length === 0) {\n\t\t\tlet t = n.getHtmlContent(e), r = Array.from(t.matchAll(Zs));\n\t\t\tfor (let e of r) {\n\t\t\t\tlet t = rc(e[1] ?? \"\", \"identifier\");\n\t\t\t\tt && s.push(t);\n\t\t\t}\n\t\t\ts.length > 0 && (!o || !o.includes(\"[GAP:\")) && (o = ic(t));\n\t\t}\n\t\tlet c = n.getBooleanAttribute(e, \"shuffle\"), l = n.getClasses(e), u = qs(n.getAttribute(e, \"data-choices-container-width\", \"\")), d = n.getAttribute(e, \"data-max-selections-message\", \"\") || null, f = n.getAttribute(e, \"data-min-selections-message\", \"\") || null;\n\t\treturn {\n\t\t\tgapTexts: zs(r, c, t.shuffleRng),\n\t\t\tgaps: s,\n\t\t\tshuffle: c,\n\t\t\tprompt: a,\n\t\t\tpromptText: o,\n\t\t\t...l.length > 0 ? { interactionClasses: l } : {},\n\t\t\t...u ? { choicesContainerWidth: u } : {},\n\t\t\t...d ? { maxSelectionsMessage: d } : {},\n\t\t\t...f ? { minSelectionsMessage: f } : {}\n\t\t};\n\t},\n\tvalidate(e) {\n\t\tlet t = [];\n\t\tif ((!e.gapTexts || e.gapTexts.length === 0) && t.push(\"gapMatchInteraction must have at least one gapText\"), (!e.gaps || e.gaps.length === 0) && t.push(\"gapMatchInteraction must have at least one gap in the prompt\"), e.gapTexts) {\n\t\t\tlet n = /* @__PURE__ */ new Set();\n\t\t\tfor (let r of e.gapTexts) r.identifier ? n.has(r.identifier) ? t.push(`Duplicate gapText identifier: ${r.identifier}`) : n.add(r.identifier) : t.push(\"All gapTexts must have an identifier\"), r.matchMax < 0 && t.push(`matchMax must be non-negative for gapText ${r.identifier}`);\n\t\t}\n\t\tif (e.gaps) {\n\t\t\tlet n = /* @__PURE__ */ new Set();\n\t\t\tfor (let r of e.gaps) r ? n.has(r) ? t.push(`Duplicate gap identifier: ${r}`) : n.add(r) : t.push(\"All gaps must have an identifier\");\n\t\t}\n\t\treturn {\n\t\t\tvalid: t.length === 0,\n\t\t\terrors: t.length > 0 ? t : void 0\n\t\t};\n\t}\n}, oc = {\n\tid: \"qti:graphic-associate-interaction\",\n\tname: \"QTI Standard Graphic Associate Interaction\",\n\tpriority: 10,\n\telementTypes: [\"graphicAssociateInteraction\"],\n\tdescription: \"Extracts standard QTI graphicAssociateInteraction (associate items on image)\",\n\tcanHandle(e, t) {\n\t\treturn t.utils.matchesTag(e, \"graphicAssociateInteraction\");\n\t},\n\textract(e, t) {\n\t\tlet { utils: n } = t, r = n.getChildrenByTag(e, \"object\"), i = null;\n\t\tif (r.length > 0) {\n\t\t\tlet e = r[0], t = n.getAttribute(e, \"type\", \"\"), a = n.getAttribute(e, \"data\", \"\"), o = X(n.getAttribute(e, \"width\", \"\"), \"500\"), s = X(n.getAttribute(e, \"height\", \"\"), \"300\");\n\t\t\ti = t.startsWith(\"image/svg\") ? {\n\t\t\t\ttype: \"svg\",\n\t\t\t\tcontent: n.getHtmlContent(e),\n\t\t\t\twidth: o,\n\t\t\t\theight: s\n\t\t\t} : {\n\t\t\t\ttype: \"image\",\n\t\t\t\tsrc: a,\n\t\t\t\twidth: o,\n\t\t\t\theight: s\n\t\t\t};\n\t\t}\n\t\tlet a = n.getChildrenByTag(e, \"associableHotspot\").map((e) => {\n\t\t\tlet t = n.getClasses(e), r = n.getAttribute(e, \"identifier\", \"\"), i = n.getAttribute(e, \"shape\", \"rect\"), a = n.getAttribute(e, \"coords\", \"0,0,50,50\"), o = n.getNumberAttribute(e, \"matchMax\", 1), s = n.getNumberAttribute(e, \"matchMin\", 0), c = n.getAttribute(e, \"matchGroup\", \"\").split(/\\s+/).filter(Boolean);\n\t\t\treturn {\n\t\t\t\tidentifier: r,\n\t\t\t\tlabel: n.getTextContent(e).trim() || r,\n\t\t\t\tshape: i,\n\t\t\t\tcoords: a,\n\t\t\t\tmatchMax: o,\n\t\t\t\t...s > 0 ? { matchMin: s } : {},\n\t\t\t\t...c.length > 0 ? { matchGroup: c } : {},\n\t\t\t\t...t.length > 0 ? { classes: t } : {}\n\t\t\t};\n\t\t}), o = n.getNumberAttribute(e, \"maxAssociations\", 1), s = n.getNumberAttribute(e, \"minAssociations\", 0), c = n.getChildrenByTag(e, \"prompt\"), l = c.length > 0 ? n.getHtmlContent(c[0]) : null;\n\t\treturn {\n\t\t\timageData: i,\n\t\t\tassociableHotspots: a,\n\t\t\tmaxAssociations: o,\n\t\t\tminAssociations: s,\n\t\t\tprompt: l\n\t\t};\n\t},\n\tvalidate(e) {\n\t\tlet t = [], n = [];\n\t\tif (e.imageData ? e.imageData.type === \"image\" && !e.imageData.src ? t.push(\"graphicAssociateInteraction must have an image URL\") : e.imageData.type === \"svg\" && !e.imageData.content && t.push(\"graphicAssociateInteraction must have SVG content\") : n.push(\"graphicAssociateInteraction has no image data\"), (!e.associableHotspots || e.associableHotspots.length < 2) && t.push(\"graphicAssociateInteraction must have at least 2 hotspots\"), e.associableHotspots && e.associableHotspots.length > 0) {\n\t\t\tlet n = /* @__PURE__ */ new Set();\n\t\t\tfor (let r of e.associableHotspots) r.identifier ? n.has(r.identifier) ? t.push(`Duplicate hotspot identifier: ${r.identifier}`) : n.add(r.identifier) : t.push(\"All hotspots must have an identifier\"), r.coords || t.push(`Hotspot ${r.identifier} must have coords`), r.matchMax < 0 && t.push(`matchMax must be non-negative for hotspot ${r.identifier}`);\n\t\t}\n\t\treturn e.maxAssociations < 0 && t.push(\"maxAssociations must be non-negative\"), e.minAssociations < 0 && t.push(\"minAssociations must be non-negative\"), {\n\t\t\tvalid: t.length === 0,\n\t\t\terrors: t.length > 0 ? t : void 0,\n\t\t\twarnings: n.length > 0 ? n : void 0\n\t\t};\n\t}\n}, sc = {\n\tid: \"qti:graphic-gap-match-interaction\",\n\tname: \"QTI Standard Graphic Gap Match Interaction\",\n\tpriority: 10,\n\telementTypes: [\"graphicGapMatchInteraction\"],\n\tdescription: \"Extracts standard QTI graphicGapMatchInteraction (drag text/images into gaps)\",\n\tcanHandle(e, t) {\n\t\treturn t.utils.matchesTag(e, \"graphicGapMatchInteraction\");\n\t},\n\textract(e, t) {\n\t\tlet { utils: n } = t, r = n.getChildrenByTag(e, \"object\"), i = null;\n\t\tif (r.length > 0) {\n\t\t\tlet e = r[0], t = n.getAttribute(e, \"type\", \"\"), a = n.getAttribute(e, \"data\", \"\"), o = X(n.getAttribute(e, \"width\", \"\")), s = X(n.getAttribute(e, \"height\", \"\")), c = o ? Number(o) : void 0, l = s ? Number(s) : void 0;\n\t\t\tif (t.startsWith(\"image/svg\")) {\n\t\t\t\tlet t = n.getHtmlContent(e);\n\t\t\t\ti = /<svg[\\s>]/i.test(t) ? {\n\t\t\t\t\ttype: \"svg\",\n\t\t\t\t\tcontent: t,\n\t\t\t\t\t...c ? { width: c } : {},\n\t\t\t\t\t...l ? { height: l } : {}\n\t\t\t\t} : {\n\t\t\t\t\ttype: \"image\",\n\t\t\t\t\tsrc: a,\n\t\t\t\t\t...c ? { width: c } : {},\n\t\t\t\t\t...l ? { height: l } : {}\n\t\t\t\t};\n\t\t\t} else i = {\n\t\t\t\ttype: \"image\",\n\t\t\t\tsrc: a,\n\t\t\t\t...c ? { width: c } : {},\n\t\t\t\t...l ? { height: l } : {}\n\t\t\t};\n\t\t}\n\t\tlet a = n.getNumberAttribute(e, \"maxAssociations\", 0), o = n.getChildrenByTag(e, \"gapText\").map((e) => {\n\t\t\tlet t = n.getClasses(e), r = n.getNumberAttribute(e, \"matchMax\", 1), i = n.getNumberAttribute(e, \"matchMin\", 0), a = n.getAttribute(e, \"matchGroup\", \"\").split(/\\s+/).filter(Boolean), o = n.getHtmlContent(e);\n\t\t\treturn {\n\t\t\t\tidentifier: n.getAttribute(e, \"identifier\", \"\"),\n\t\t\t\ttext: o,\n\t\t\t\tmatchMax: r,\n\t\t\t\t...i > 0 ? { matchMin: i } : {},\n\t\t\t\t...a.length > 0 ? { matchGroup: a } : {},\n\t\t\t\t...t.length > 0 ? { classes: t } : {}\n\t\t\t};\n\t\t}), s = n.getChildrenByTag(e, \"gapImg\").map((e) => {\n\t\t\tlet t = n.getNumberAttribute(e, \"matchMax\", 1), r = n.getAttribute(e, \"matchGroup\", \"\").split(/\\s+/).filter(Boolean), i = n.getChildrenByTag(e, \"object\"), a = \"\", o = \"\", s, c;\n\t\t\tif (i.length > 0) {\n\t\t\t\tlet e = i[0];\n\t\t\t\ta = n.getAttribute(e, \"data\", \"\"), o = n.getTextContent(e);\n\t\t\t\tlet t = X(n.getAttribute(e, \"width\", \"\")), r = X(n.getAttribute(e, \"height\", \"\"));\n\t\t\t\tt && (s = Number(t)), r && (c = Number(r));\n\t\t\t}\n\t\t\treturn {\n\t\t\t\tidentifier: n.getAttribute(e, \"identifier\", \"\"),\n\t\t\t\tsrc: a,\n\t\t\t\talt: o,\n\t\t\t\tmatchMax: t,\n\t\t\t\t...r.length > 0 ? { matchGroup: r } : {},\n\t\t\t\t...s === void 0 ? {} : { width: s },\n\t\t\t\t...c === void 0 ? {} : { height: c }\n\t\t\t};\n\t\t}), c = n.getChildrenByTag(e, \"associableHotspot\").map((e) => ({\n\t\t\tidentifier: n.getAttribute(e, \"identifier\", \"\"),\n\t\t\tshape: n.getAttribute(e, \"shape\", \"rect\"),\n\t\t\tcoords: n.getAttribute(e, \"coords\", \"\"),\n\t\t\tmatchMax: n.getNumberAttribute(e, \"matchMax\", 1)\n\t\t})), l = n.getChildrenByTag(e, \"prompt\"), u = l.length > 0 ? n.getHtmlContent(l[0]) : null, d = n.getClasses(e), f = qs(n.getAttribute(e, \"data-choices-container-width\", \"\")), p = n.getAttribute(e, \"data-max-selections-message\", \"\") || null, m = n.getAttribute(e, \"data-min-selections-message\", \"\") || null;\n\t\treturn {\n\t\t\timageData: i,\n\t\t\tmaxAssociations: a,\n\t\t\tgapTexts: o,\n\t\t\tgapImages: s,\n\t\t\thotspots: c,\n\t\t\tprompt: u,\n\t\t\t...d.length > 0 ? { interactionClasses: d } : {},\n\t\t\t...f ? { choicesContainerWidth: f } : {},\n\t\t\t...p ? { maxSelectionsMessage: p } : {},\n\t\t\t...m ? { minSelectionsMessage: m } : {}\n\t\t};\n\t},\n\tvalidate(e) {\n\t\tlet t = [], n = [];\n\t\tif (e.imageData ? e.imageData.type === \"image\" && !e.imageData.src ? t.push(\"graphicGapMatchInteraction must have an image URL\") : e.imageData.type === \"svg\" && !e.imageData.content && t.push(\"graphicGapMatchInteraction must have SVG content\") : n.push(\"graphicGapMatchInteraction has no background image\"), (!e.gapTexts || e.gapTexts.length === 0) && (!e.gapImages || e.gapImages.length === 0) && t.push(\"graphicGapMatchInteraction must have at least one gapText or gapImg\"), (!e.hotspots || e.hotspots.length === 0) && t.push(\"graphicGapMatchInteraction must have at least one hotspot\"), e.gapTexts) {\n\t\t\tlet n = /* @__PURE__ */ new Set();\n\t\t\tfor (let r of e.gapTexts) r.identifier ? n.has(r.identifier) ? t.push(`Duplicate gapText identifier: ${r.identifier}`) : n.add(r.identifier) : t.push(\"All gapTexts must have an identifier\");\n\t\t}\n\t\tif (e.hotspots) {\n\t\t\tlet n = /* @__PURE__ */ new Set();\n\t\t\tfor (let r of e.hotspots) r.identifier ? n.has(r.identifier) ? t.push(`Duplicate hotspot identifier: ${r.identifier}`) : n.add(r.identifier) : t.push(\"All hotspots must have an identifier\"), r.coords || t.push(`Hotspot ${r.identifier} must have coords`);\n\t\t}\n\t\treturn {\n\t\t\tvalid: t.length === 0,\n\t\t\terrors: t.length > 0 ? t : void 0,\n\t\t\twarnings: n.length > 0 ? n : void 0\n\t\t};\n\t}\n}, cc = {\n\tid: \"qti:graphic-order-interaction\",\n\tname: \"QTI Standard Graphic Order Interaction\",\n\tpriority: 10,\n\telementTypes: [\"graphicOrderInteraction\"],\n\tdescription: \"Extracts standard QTI graphicOrderInteraction (order items on image)\",\n\tcanHandle(e, t) {\n\t\treturn t.utils.matchesTag(e, \"graphicOrderInteraction\");\n\t},\n\textract(e, t) {\n\t\tlet { utils: n } = t, r = n.getChildrenByTag(e, \"object\"), i = null;\n\t\tif (r.length > 0) {\n\t\t\tlet e = r[0], t = n.getAttribute(e, \"type\", \"\"), a = n.getAttribute(e, \"data\", \"\"), o = X(n.getAttribute(e, \"width\", \"\"), \"500\"), s = X(n.getAttribute(e, \"height\", \"\"), \"300\");\n\t\t\ti = t.startsWith(\"image/svg\") ? {\n\t\t\t\ttype: \"svg\",\n\t\t\t\tcontent: n.getHtmlContent(e),\n\t\t\t\twidth: o,\n\t\t\t\theight: s\n\t\t\t} : {\n\t\t\t\ttype: \"image\",\n\t\t\t\tsrc: a,\n\t\t\t\twidth: o,\n\t\t\t\theight: s\n\t\t\t};\n\t\t}\n\t\tlet a = n.getChildrenByTag(e, \"hotspotChoice\").map((e) => {\n\t\t\tlet t = n.getClasses(e), r = n.getAttribute(e, \"identifier\", \"\"), i = n.getAttribute(e, \"shape\", \"rect\"), a = n.getAttribute(e, \"coords\", \"0,0,50,50\"), o = n.getBooleanAttribute(e, \"fixed\");\n\t\t\treturn {\n\t\t\t\tidentifier: r,\n\t\t\t\tlabel: n.getTextContent(e).trim() || r,\n\t\t\t\tshape: i,\n\t\t\t\tcoords: a,\n\t\t\t\t...o ? { fixed: o } : {},\n\t\t\t\t...t.length > 0 ? { classes: t } : {}\n\t\t\t};\n\t\t}), o = n.getChildrenByTag(e, \"prompt\"), s = o.length > 0 ? n.getHtmlContent(o[0]) : null;\n\t\treturn {\n\t\t\timageData: i,\n\t\t\thotspotChoices: a,\n\t\t\tprompt: s\n\t\t};\n\t},\n\tvalidate(e) {\n\t\tlet t = [], n = [];\n\t\tif (e.imageData ? e.imageData.type === \"image\" && !e.imageData.src ? t.push(\"graphicOrderInteraction must have an image URL\") : e.imageData.type === \"svg\" && !e.imageData.content && t.push(\"graphicOrderInteraction must have SVG content\") : n.push(\"graphicOrderInteraction has no image data\"), (!e.hotspotChoices || e.hotspotChoices.length < 2) && t.push(\"graphicOrderInteraction must have at least 2 hotspots\"), e.hotspotChoices) {\n\t\t\tlet n = /* @__PURE__ */ new Set();\n\t\t\tfor (let r of e.hotspotChoices) r.identifier ? n.has(r.identifier) ? t.push(`Duplicate hotspot identifier: ${r.identifier}`) : n.add(r.identifier) : t.push(\"All hotspot choices must have an identifier\"), r.coords || t.push(`Hotspot ${r.identifier} must have coords`);\n\t\t}\n\t\treturn {\n\t\t\tvalid: t.length === 0,\n\t\t\terrors: t.length > 0 ? t : void 0,\n\t\t\twarnings: n.length > 0 ? n : void 0\n\t\t};\n\t}\n}, lc = {\n\tid: \"qti:hotspot-interaction\",\n\tname: \"QTI Standard Hotspot Interaction\",\n\tpriority: 10,\n\telementTypes: [\"hotspotInteraction\"],\n\tdescription: \"Extracts standard QTI hotspotInteraction (clickable areas on image)\",\n\tcanHandle(e, t) {\n\t\treturn t.utils.matchesTag(e, \"hotspotInteraction\");\n\t},\n\textract(e, t) {\n\t\tlet { utils: n } = t, r = n.getChildrenByTag(e, \"object\"), i = null;\n\t\tif (r.length > 0) {\n\t\t\tlet e = r[0], t = n.getAttribute(e, \"type\", \"\"), a = n.getAttribute(e, \"data\", \"\"), o = X(n.getAttribute(e, \"width\", \"\")), s = X(n.getAttribute(e, \"height\", \"\"));\n\t\t\tif (t.startsWith(\"image/svg\")) {\n\t\t\t\tlet t = n.getHtmlContent(e);\n\t\t\t\ti = /<svg[\\s>]/i.test(t) ? {\n\t\t\t\t\ttype: \"svg\",\n\t\t\t\t\tcontent: t,\n\t\t\t\t\t...o ? { width: o } : {},\n\t\t\t\t\t...s ? { height: s } : {}\n\t\t\t\t} : {\n\t\t\t\t\ttype: \"image\",\n\t\t\t\t\tsrc: a,\n\t\t\t\t\t...o ? { width: o } : {},\n\t\t\t\t\t...s ? { height: s } : {}\n\t\t\t\t};\n\t\t\t} else i = {\n\t\t\t\ttype: \"image\",\n\t\t\t\tsrc: a,\n\t\t\t\t...o ? { width: o } : {},\n\t\t\t\t...s ? { height: s } : {}\n\t\t\t};\n\t\t}\n\t\tlet a = n.getChildrenByTag(e, \"hotspotChoice\").map((e) => {\n\t\t\tlet t = n.getClasses(e), r = n.getAttribute(e, \"shape\", \"rect\"), i = n.getAttribute(e, \"coords\", \"\"), a = n.getAttribute(e, \"hotspotLabel\", \"\");\n\t\t\treturn {\n\t\t\t\tidentifier: n.getAttribute(e, \"identifier\", \"\"),\n\t\t\t\tshape: r,\n\t\t\t\tcoords: i,\n\t\t\t\t...a ? { hotspotLabel: a } : {},\n\t\t\t\t...t.length > 0 ? { classes: t } : {}\n\t\t\t};\n\t\t}), o = n.getNumberAttribute(e, \"maxChoices\", 1), s = n.getNumberAttribute(e, \"minChoices\", 0), c = n.getClasses(e), l = n.getAttribute(e, \"data-max-selections-message\", \"\") || null, u = n.getAttribute(e, \"data-min-selections-message\", \"\") || null, d = n.getChildrenByTag(e, \"prompt\"), f = d.length > 0 ? n.getHtmlContent(d[0]) : null;\n\t\treturn {\n\t\t\timageData: i,\n\t\t\thotspotChoices: a,\n\t\t\tmaxChoices: o,\n\t\t\t...s > 0 ? { minChoices: s } : {},\n\t\t\tprompt: f,\n\t\t\t...c.length > 0 ? { interactionClasses: c } : {},\n\t\t\t...l ? { maxSelectionsMessage: l } : {},\n\t\t\t...u ? { minSelectionsMessage: u } : {}\n\t\t};\n\t},\n\tvalidate(e) {\n\t\tlet t = [], n = [];\n\t\tif (e.imageData ? e.imageData.type === \"image\" && !e.imageData.src ? t.push(\"hotspotInteraction must have an image URL\") : e.imageData.type === \"svg\" && !e.imageData.content && t.push(\"hotspotInteraction must have SVG content\") : n.push(\"hotspotInteraction has no image data\"), (!e.hotspotChoices || e.hotspotChoices.length === 0) && t.push(\"hotspotInteraction must have at least one hotspot\"), e.hotspotChoices && e.hotspotChoices.length > 0) {\n\t\t\tlet r = /* @__PURE__ */ new Set();\n\t\t\tfor (let n of e.hotspotChoices) n.identifier ? r.has(n.identifier) ? t.push(`Duplicate hotspot identifier: ${n.identifier}`) : r.add(n.identifier) : t.push(\"All hotspots must have an identifier\"), n.coords || t.push(`Hotspot ${n.identifier} must have coords`);\n\t\t\te.maxChoices > e.hotspotChoices.length && n.push(`maxChoices (${e.maxChoices}) exceeds the number of hotspots (${e.hotspotChoices.length})`);\n\t\t}\n\t\treturn e.maxChoices < 0 && t.push(\"maxChoices must be non-negative\"), e.minChoices !== void 0 && e.minChoices < 0 && t.push(\"minChoices must be non-negative\"), e.minChoices !== void 0 && e.maxChoices > 0 && e.minChoices > e.maxChoices && t.push(\"minChoices cannot exceed maxChoices\"), {\n\t\t\tvalid: t.length === 0,\n\t\t\terrors: t.length > 0 ? t : void 0,\n\t\t\twarnings: n.length > 0 ? n : void 0\n\t\t};\n\t}\n}, uc = {\n\trejectDoctype: !0,\n\tmaxItemXmlBytes: 1e7,\n\tmaxHtmlBytes: 5e6,\n\tmaxHtmlNodes: 2e5,\n\tmaxHtmlDepth: 200\n};\nfunction dc(e) {\n\tlet t = globalThis.TextEncoder;\n\treturn t ? new t().encode(e).byteLength : e.length * 2;\n}\nfunction fc(e) {\n\tlet t = e?.parsingLimits;\n\treturn t?.enabled === !0 ? {\n\t\tenabled: !0,\n\t\trejectDoctype: t?.rejectDoctype ?? uc.rejectDoctype,\n\t\tmaxItemXmlBytes: t?.maxItemXmlBytes ?? uc.maxItemXmlBytes,\n\t\tmaxHtmlBytes: t?.maxHtmlBytes ?? uc.maxHtmlBytes,\n\t\tmaxHtmlNodes: t?.maxHtmlNodes ?? uc.maxHtmlNodes,\n\t\tmaxHtmlDepth: t?.maxHtmlDepth ?? uc.maxHtmlDepth\n\t} : {\n\t\tenabled: !1,\n\t\t...uc\n\t};\n}\nfunction pc(e, t) {\n\tlet n = fc(t);\n\tif (!n.enabled) return;\n\tlet r = dc(String(e ?? \"\"));\n\tif (r > n.maxItemXmlBytes) throw Error(`itemXml exceeds maxItemXmlBytes (${r} > ${n.maxItemXmlBytes})`);\n\tif (n.rejectDoctype && /<!\\s*doctype/i.test(e)) throw Error(\"itemXml contains <!DOCTYPE>, which is rejected by parsingLimits\");\n}\n//#endregion\n//#region src/core/urlPolicy.ts\nvar mc = {\n\tallowHttps: !0,\n\tallowHttp: !1,\n\tallowProtocolRelative: !1,\n\tallowDataImages: !0,\n\tallowSvgDataImages: !1,\n\tallowBlobImages: !1,\n\tallowBlobMedia: !1\n};\nfunction hc(e) {\n\treturn {\n\t\t...mc,\n\t\t...e ?? {}\n\t};\n}\nfunction gc(e) {\n\tlet t = e.toLowerCase().trim();\n\treturn t.startsWith(\"javascript:\") || t.startsWith(\"vbscript:\") || t.startsWith(\"data:text/html\");\n}\nfunction _c(e, t) {\n\tlet n = t.allowedHosts;\n\treturn !n || n.length === 0 || n.includes(e);\n}\nfunction vc(e, t) {\n\tlet n;\n\ttry {\n\t\tn = new URL(e);\n\t} catch {\n\t\treturn null;\n\t}\n\tlet r = n.protocol.toLowerCase();\n\treturn r === \"https:\" && !t.allowHttps || r === \"http:\" && !t.allowHttp || r !== \"https:\" && r !== \"http:\" || !_c(n.hostname, t) ? null : n.toString();\n}\nfunction yc(e, t, n) {\n\tlet r = e.toLowerCase().trim();\n\treturn !r.startsWith(\"data:\") || t !== \"img\" || !n.allowDataImages || !r.startsWith(\"data:image/\") || !n.allowSvgDataImages && r.startsWith(\"data:image/svg+xml\") ? null : e.trim();\n}\nfunction bc(e, t, n = \"any\") {\n\tlet r = hc(t), i = String(e ?? \"\").trim();\n\tif (!i) return null;\n\tlet a = c(i), o = Sc(a), s = xc(a).trim();\n\tif (!o || !s || gc(o)) return null;\n\tlet l = yc(o, n, r);\n\tif (l) return l;\n\tif (o.toLowerCase().startsWith(\"data:\")) return null;\n\tif (/^[\\\\/]{2}/.test(s)) return r.allowProtocolRelative ? vc(`https:${s.replace(/\\\\/g, \"/\")}`, r) : null;\n\tif (o.toLowerCase().startsWith(\"blob:\")) return n === \"img\" && r.allowBlobImages || n === \"media\" && r.allowBlobMedia ? o : null;\n\tlet u = /^[a-zA-Z][a-zA-Z\\d+\\-.]*:/.test(o);\n\tif (s.startsWith(\"/\") || s.startsWith(\"./\") || s.startsWith(\"../\") || !u) {\n\t\tif (r.assetBaseUrl) try {\n\t\t\tlet e = s.startsWith(\"/\") ? s.slice(1) : s;\n\t\t\treturn vc(new URL(e, r.assetBaseUrl).toString(), r);\n\t\t} catch {\n\t\t\treturn null;\n\t\t}\n\t\treturn s;\n\t}\n\treturn vc(o, r);\n}\nfunction xc(e) {\n\treturn Array.from(e).filter((e) => !Cc(e)).join(\"\");\n}\nfunction Sc(e) {\n\treturn Array.from(e).filter((e) => !Cc(e) && !/\\s/.test(e)).join(\"\");\n}\nfunction Cc(e) {\n\tlet t = e.charCodeAt(0);\n\treturn t <= 31 || t === 127;\n}\n//#endregion\n//#region src/core/sanitizer.ts\nvar wc = class extends Error {\n\tconstructor(e) {\n\t\tsuper(e);\n\t}\n};\nfunction Tc(e) {\n\treturn e?.security?.urlPolicy;\n}\nfunction Ec(e) {\n\treturn e?.security?.allowObjectEmbeds === !0;\n}\nfunction Dc(e) {\n\treturn e?.security?.allowIframes === !0;\n}\nfunction Oc(e) {\n\treturn e.replace(/&/g, \"&amp;\").replace(/\"/g, \"&quot;\").replace(/</g, \"&lt;\").replace(/>/g, \"&gt;\");\n}\nfunction kc(e, t) {\n\tlet n = e.getAttribute(t);\n\treturn n ? ` ${t}=\"${Oc(n)}\"` : \"\";\n}\nfunction Ac(e, t, n) {\n\tlet r = Tc(t), i = bc(e, r, n);\n\tif (!i) return null;\n\tif (!t?.sanitizeUrl) return i;\n\tlet a = t.sanitizeUrl(i, n);\n\treturn a ? bc(a, r, n) : null;\n}\nfunction jc(e, t, n) {\n\treturn Ac(e, t, n) ?? \"#\";\n}\nfunction Mc(e, t) {\n\tlet n = [];\n\tfor (let r of f(e)) {\n\t\tlet e = Ac(r.url, t, \"img\");\n\t\te && n.push([e, r.descriptors].filter(Boolean).join(\" \"));\n\t}\n\treturn n.join(\", \");\n}\nfunction Nc(e) {\n\tif (l(e)) return !0;\n\tlet t = u(e);\n\tfor (let e of t.matchAll(/(?:^|;)position:([^;]*)/gi)) {\n\t\tlet t = (e[1] ?? \"\").replace(/!important$/i, \"\");\n\t\tif (!/^(?:static|relative|absolute)$/i.test(t)) return !0;\n\t}\n\treturn !1;\n}\nvar Pc = new r();\nfunction Fc(e) {\n\tif (!e.startsWith(\"qti-\")) return !1;\n\tlet t = Pc.toCanonical(e);\n\treturn Pc.toNative(t) === e;\n}\nvar Ic = /* @__PURE__ */ new Set([\n\t\"clip-path\",\n\t\"color-profile\",\n\t\"cursor\",\n\t\"fill\",\n\t\"filter\",\n\t\"marker\",\n\t\"marker-end\",\n\t\"marker-mid\",\n\t\"marker-start\",\n\t\"mask\",\n\t\"stroke\"\n]), Lc = /* @__PURE__ */ new Set([\n\t\"animate\",\n\t\"animatecolor\",\n\t\"animatemotion\",\n\t\"animatetransform\",\n\t\"discard\",\n\t\"set\"\n]);\nfunction Rc(e) {\n\tlet t = u(e);\n\tif (!/url\\(/i.test(t)) return !1;\n\tlet n = !1, r = !1, i = t.replace(/url\\(([^)]*)\\)/gi, (e, t) => {\n\t\tn = !0;\n\t\tlet i = t.replace(/^(['\"])(.*)\\1$/, \"$2\");\n\t\treturn /^#[^'\"()\\s]+$/.test(i) || (r = !0), \"\";\n\t});\n\treturn r || !n || /url\\(/i.test(i);\n}\nfunction zc(e) {\n\tlet t = e.parentNode;\n\tfor (; t;) {\n\t\tif (t.rawTagName?.toLowerCase() === \"svg\") return !0;\n\t\tt = t.parentNode;\n\t}\n\treturn !1;\n}\nfunction Bc(e, t, n, r) {\n\tlet i = [...e.childNodes];\n\tfor (let e of i) e.rawTagName && Vc(e, t, n, r + 1);\n\te.replaceWith(...e.childNodes);\n}\nfunction Vc(e, t, n, r) {\n\tif (n.enabled) {\n\t\tif (r > n.maxDepth) throw new wc(`HTML depth exceeds maxHtmlDepth (${r} > ${n.maxDepth})`);\n\t\tif (n.nodes++, n.nodes > n.maxNodes) throw new wc(`HTML node count exceeds maxHtmlNodes (${n.nodes} > ${n.maxNodes})`);\n\t}\n\tlet i = e.rawTagName?.toLowerCase();\n\tif (i === \"script\") {\n\t\te.remove();\n\t\treturn;\n\t}\n\tif (i && Lc.has(i)) {\n\t\tif (zc(e)) {\n\t\t\te.remove();\n\t\t\treturn;\n\t\t}\n\t\tBc(e, t, n, r);\n\t\treturn;\n\t}\n\tif (i === \"iframe\" && !Dc(t)) {\n\t\te.remove();\n\t\treturn;\n\t}\n\tif ((i === \"object\" || i === \"embed\") && !Ec(t)) {\n\t\tlet n = Wc(e, t);\n\t\tif (n) {\n\t\t\te.replaceWith(n);\n\t\t\treturn;\n\t\t}\n\t\te.remove();\n\t\treturn;\n\t}\n\tif (i === \"base\" || i === \"meta\" || i === \"link\" || i === \"style\" || i === \"foreignobject\") {\n\t\te.remove();\n\t\treturn;\n\t}\n\tif (i?.includes(\"-\") && !Fc(i)) {\n\t\tBc(e, t, n, r);\n\t\treturn;\n\t}\n\tlet a = e.attributes || {};\n\tfor (let t of Object.keys(a)) t.toLowerCase().startsWith(\"on\") && e.removeAttribute(t);\n\tfor (let n of Object.keys(a)) {\n\t\tlet r = n.toLowerCase(), a = e.getAttribute(n);\n\t\tif (a) {\n\t\t\tif (r === \"srcdoc\") {\n\t\t\t\te.removeAttribute(n);\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tif (r === \"ping\") {\n\t\t\t\te.removeAttribute(n);\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tif (r === \"is\") {\n\t\t\t\te.removeAttribute(n);\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tif (r === \"style\" && Nc(a)) {\n\t\t\t\te.removeAttribute(n);\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tif (r === \"srcset\") {\n\t\t\t\tlet r = Mc(a, t);\n\t\t\t\tr ? r !== a && e.setAttribute(n, r) : e.removeAttribute(n);\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tif (Ic.has(r) && Rc(a)) {\n\t\t\t\te.removeAttribute(n);\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tif (r === \"background\") {\n\t\t\t\tlet r = Ac(a, t, \"img\");\n\t\t\t\tr ? r !== a && e.setAttribute(n, r) : e.removeAttribute(n);\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tif (r === \"href\" || r === \"xlink:href\" || r === \"src\" || r === \"data\" || r === \"action\" || r === \"formaction\" || r === \"poster\") {\n\t\t\t\tlet r = jc(a, t, i === \"img\" ? \"img\" : i === \"audio\" || i === \"video\" || i === \"source\" ? \"media\" : i === \"object\" || i === \"embed\" ? \"object\" : i === \"a\" ? \"link\" : \"any\");\n\t\t\t\tr !== a && e.setAttribute(n, r);\n\t\t\t}\n\t\t}\n\t}\n\tlet o = e.childNodes.filter((e) => e.rawTagName);\n\tfor (let e of o) Vc(e, t, n, r + 1);\n}\nfunction Hc(e, t) {\n\tif (!e || typeof e != \"string\") return \"\";\n\ttry {\n\t\tlet n = fc(t?.security);\n\t\tif (n.enabled) {\n\t\t\tlet t = globalThis.TextEncoder;\n\t\t\tif ((t ? new t().encode(e).byteLength : e.length * 2) > n.maxHtmlBytes) return \"\";\n\t\t}\n\t\tlet r = s(e, { comment: !1 }), i = r.childNodes.filter((e) => e.rawTagName), a = {\n\t\t\tenabled: n.enabled,\n\t\t\tnodes: 0,\n\t\t\tmaxNodes: n.maxHtmlNodes,\n\t\t\tmaxDepth: n.maxHtmlDepth\n\t\t};\n\t\tfor (let e of i) Vc(e, t, a, 1);\n\t\treturn r.toString();\n\t} catch (e) {\n\t\treturn e instanceof wc || console.error(\"HTML sanitization failed:\", e), \"\";\n\t}\n}\nfunction Uc(e, t) {\n\treturn !e || typeof e != \"string\" ? \"\" : /<[^>]+>/.test(e) ? Hc(e, t) : e;\n}\nfunction Wc(e, t) {\n\tif (e.rawTagName?.toLowerCase() !== \"object\") return null;\n\tlet n = e.getAttribute(\"type\")?.trim().toLowerCase() ?? \"\", r = e.getAttribute(\"data\")?.trim() ?? \"\";\n\tif (!n || !r) return null;\n\tlet i = `${kc(e, \"width\")}${kc(e, \"height\")}`, a = kc(e, \"class\"), o = kc(e, \"id\");\n\tif (n.startsWith(\"image/\")) {\n\t\tlet n = Ac(r, t, \"img\");\n\t\tif (!n) return null;\n\t\tlet s = e.getAttribute(\"aria-label\") ?? e.getAttribute(\"title\") ?? e.textContent?.trim() ?? \"\";\n\t\treturn `<img src=\"${Oc(n)}\" alt=\"${Oc(s)}\"${i}${a}${o}>`;\n\t}\n\tif (n.startsWith(\"audio/\")) {\n\t\tlet e = Ac(r, t, \"media\");\n\t\treturn e ? `<audio controls${a}${o}><source src=\"${Oc(e)}\" type=\"${Oc(n)}\"></audio>` : null;\n\t}\n\tif (n.startsWith(\"video/\")) {\n\t\tlet s = Ac(r, t, \"media\");\n\t\tif (!s) return null;\n\t\tlet c = e.getAttribute(\"poster\")?.trim() ?? \"\", l = c ? Ac(c, t, \"img\") : null;\n\t\treturn `<video controls${i}${a}${o}${l ? ` poster=\"${Oc(l)}\"` : \"\"}><source src=\"${Oc(s)}\" type=\"${Oc(n)}\"></video>`;\n\t}\n\treturn null;\n}\n//#endregion\n//#region src/interactions/hottext/extractor.ts\nvar Gc = {\n\tid: \"qti:hottext-interaction\",\n\tname: \"QTI Standard Hottext Interaction\",\n\tpriority: 10,\n\telementTypes: [\"hottextInteraction\"],\n\tdescription: \"Extracts standard QTI hottextInteraction (select text spans)\",\n\tcanHandle(e, t) {\n\t\treturn e.rawTagName === \"hottextInteraction\" || e.rawTagName === \"qti-hottext-interaction\";\n\t},\n\textract(e, t) {\n\t\tlet { utils: n } = t, r = (e) => {\n\t\t\tlet t = [];\n\t\t\tif ((e.rawTagName === \"hottext\" || e.rawTagName === \"qti-hottext\") && t.push(e), e.childNodes) for (let n of e.childNodes) typeof n != \"string\" && t.push(...r(n));\n\t\t\treturn t;\n\t\t}, i = r(e).map((e) => {\n\t\t\tlet t = n.getClasses(e);\n\t\t\treturn {\n\t\t\t\tidentifier: n.getAttribute(e, \"identifier\", \"\"),\n\t\t\t\ttext: n.getTextContent(e),\n\t\t\t\t...t.length > 0 ? { classes: t } : {}\n\t\t\t};\n\t\t}), a = n.getNumberAttribute(e, \"maxChoices\", 1), o = n.getNumberAttribute(e, \"minChoices\", 0), s = n.getClasses(e), c = n.getAttribute(e, \"data-max-selections-message\", \"\") || null, l = n.getAttribute(e, \"data-min-selections-message\", \"\") || null, u = n.getChildrenByTag(e, \"prompt\"), d = u.length > 0 ? n.getHtmlContent(u[0]) : null, f = \"\";\n\t\tfor (let t of e.childNodes) typeof t != \"string\" && t.rawTagName !== \"prompt\" && t.rawTagName !== \"qti-prompt\" ? f += t.outerHTML || t.toString() : typeof t == \"string\" && (f += t);\n\t\treturn f = Hc(f, { security: t.config.security }), {\n\t\t\thottextChoices: i,\n\t\t\tcontentHtml: f,\n\t\t\tmaxChoices: a,\n\t\t\tminChoices: o,\n\t\t\tprompt: d,\n\t\t\t...s.length > 0 ? { interactionClasses: s } : {},\n\t\t\t...c ? { maxSelectionsMessage: c } : {},\n\t\t\t...l ? { minSelectionsMessage: l } : {}\n\t\t};\n\t},\n\tvalidate(e) {\n\t\tlet t = [], n = [];\n\t\tif ((!e.hottextChoices || e.hottextChoices.length === 0) && t.push(\"hottextInteraction must have at least one hottext\"), e.hottextChoices) {\n\t\t\tlet n = /* @__PURE__ */ new Set();\n\t\t\tfor (let r of e.hottextChoices) r.identifier ? n.has(r.identifier) ? t.push(`Duplicate hottext identifier: ${r.identifier}`) : n.add(r.identifier) : t.push(\"All hottext elements must have an identifier\");\n\t\t}\n\t\treturn e.maxChoices < 0 && t.push(\"maxChoices must be non-negative\"), e.hottextChoices && e.maxChoices > e.hottextChoices.length && n.push(`maxChoices (${e.maxChoices}) exceeds the number of hottext choices (${e.hottextChoices.length})`), e.minChoices !== void 0 && e.minChoices < 0 && t.push(\"minChoices must be non-negative\"), e.minChoices !== void 0 && e.maxChoices > 0 && e.minChoices > e.maxChoices && n.push(`minChoices (${e.minChoices}) exceeds maxChoices (${e.maxChoices}); rendering interaction with authoring constraint warning`), {\n\t\t\tvalid: t.length === 0,\n\t\t\terrors: t.length > 0 ? t : void 0,\n\t\t\twarnings: n.length > 0 ? n : void 0\n\t\t};\n\t}\n}, Kc = {\n\tid: \"qti:inline-choice-interaction\",\n\tname: \"QTI Standard Inline Choice Interaction\",\n\tpriority: 10,\n\telementTypes: [\"inlineChoiceInteraction\"],\n\tdescription: \"Extracts standard QTI inlineChoiceInteraction (dropdown in text)\",\n\tcanHandle(e, t) {\n\t\treturn e.rawTagName === \"inlineChoiceInteraction\" || e.rawTagName === \"qti-inline-choice-interaction\";\n\t},\n\textract(e, t) {\n\t\tlet { utils: n } = t, r = n.getChildrenByTag(e, \"inlineChoice\").map((e) => {\n\t\t\tlet t = n.getBooleanAttribute(e, \"fixed\");\n\t\t\treturn {\n\t\t\t\tidentifier: n.getAttribute(e, \"identifier\", \"\"),\n\t\t\t\ttext: n.getTextContent(e),\n\t\t\t\t...t ? { fixed: t } : {}\n\t\t\t};\n\t\t}), i = n.getChildrenByTag(e, \"label\"), a = i.length > 0 ? n.getTextContent(i[0]) : null, o = n.getAttribute(e, \"data-prompt\", \"\") || null, s = n.getBooleanAttribute(e, \"shuffle\"), c = n.getClasses(e);\n\t\treturn {\n\t\t\tchoices: zs(r, s, t.shuffleRng),\n\t\t\tshuffle: s,\n\t\t\tlabel: a,\n\t\t\t...o ? { dataPrompt: o } : {},\n\t\t\t...c.length > 0 ? { interactionClasses: c } : {}\n\t\t};\n\t},\n\tvalidate(e) {\n\t\tlet t = [], n = [];\n\t\tif ((!e.choices || e.choices.length === 0) && t.push(\"inlineChoiceInteraction must have at least one choice\"), e.choices) {\n\t\t\tlet r = /* @__PURE__ */ new Set();\n\t\t\tfor (let n of e.choices) n.identifier ? r.has(n.identifier) ? t.push(`Duplicate choice identifier: ${n.identifier}`) : r.add(n.identifier) : t.push(\"All choices must have an identifier\");\n\t\t\te.choices.length >= 10 && n.push(`inlineChoiceInteraction has ${e.choices.length} choices - consider limiting for better usability`);\n\t\t}\n\t\treturn {\n\t\t\tvalid: t.length === 0,\n\t\t\terrors: t.length > 0 ? t : void 0,\n\t\t\twarnings: n.length > 0 ? n : void 0\n\t\t};\n\t}\n}, qc = {\n\tid: \"qti:match-interaction\",\n\tname: \"QTI Standard Match Interaction\",\n\tpriority: 10,\n\telementTypes: [\"matchInteraction\"],\n\tdescription: \"Extracts standard QTI matchInteraction (matching pairs)\",\n\tcanHandle(e, t) {\n\t\treturn e.rawTagName === \"matchInteraction\" || e.rawTagName === \"qti-match-interaction\";\n\t},\n\textract(e, t) {\n\t\tlet { utils: n } = t, r = n.getChildrenByTag(e, \"simpleAssociableChoice\"), i = n.getChildrenByTag(e, \"simpleMatchSet\"), a = [], o = [];\n\t\tif (i.length >= 2) {\n\t\t\tlet e = i[0];\n\t\t\ta = n.getChildrenByTag(e, \"simpleAssociableChoice\").map((e) => {\n\t\t\t\tlet t = n.getClasses(e), r = n.getNumberAttribute(e, \"matchMax\", 1), i = n.getNumberAttribute(e, \"matchMin\", 0), a = n.getAttribute(e, \"matchGroup\", \"\").split(/\\s+/).filter(Boolean);\n\t\t\t\treturn {\n\t\t\t\t\tidentifier: n.getAttribute(e, \"identifier\", \"\"),\n\t\t\t\t\ttext: n.getHtmlContent(e),\n\t\t\t\t\tmatchMax: r,\n\t\t\t\t\t...i > 0 ? { matchMin: i } : {},\n\t\t\t\t\t...a.length > 0 ? { matchGroup: a } : {},\n\t\t\t\t\t...t.length > 0 ? { classes: t } : {}\n\t\t\t\t};\n\t\t\t});\n\t\t\tlet t = i[1];\n\t\t\to = n.getChildrenByTag(t, \"simpleAssociableChoice\").map((e) => {\n\t\t\t\tlet t = n.getClasses(e), r = n.getNumberAttribute(e, \"matchMax\", 1), i = n.getNumberAttribute(e, \"matchMin\", 0), a = n.getAttribute(e, \"matchGroup\", \"\").split(/\\s+/).filter(Boolean);\n\t\t\t\treturn {\n\t\t\t\t\tidentifier: n.getAttribute(e, \"identifier\", \"\"),\n\t\t\t\t\ttext: n.getHtmlContent(e),\n\t\t\t\t\tmatchMax: r,\n\t\t\t\t\t...i > 0 ? { matchMin: i } : {},\n\t\t\t\t\t...a.length > 0 ? { matchGroup: a } : {},\n\t\t\t\t\t...t.length > 0 ? { classes: t } : {}\n\t\t\t\t};\n\t\t\t});\n\t\t} else {\n\t\t\tlet e = r.map((e) => {\n\t\t\t\tlet t = n.getClasses(e), r = n.getNumberAttribute(e, \"matchMax\", 1), i = n.getNumberAttribute(e, \"matchMin\", 0), a = n.getAttribute(e, \"matchGroup\", \"\").split(/\\s+/).filter(Boolean);\n\t\t\t\treturn {\n\t\t\t\t\tidentifier: n.getAttribute(e, \"identifier\", \"\"),\n\t\t\t\t\ttext: n.getHtmlContent(e),\n\t\t\t\t\tmatchMax: r,\n\t\t\t\t\t...i > 0 ? { matchMin: i } : {},\n\t\t\t\t\t...a.length > 0 ? { matchGroup: a } : {},\n\t\t\t\t\t...t.length > 0 ? { classes: t } : {}\n\t\t\t\t};\n\t\t\t});\n\t\t\ta = e, o = e;\n\t\t}\n\t\tlet s = n.getBooleanAttribute(e, \"shuffle\"), c = n.getNumberAttribute(e, \"maxAssociations\", 1), l = n.getNumberAttribute(e, \"minAssociations\", 0), u = l > 0 ? l : void 0, d = n.getClasses(e), f = n.getAttribute(e, \"data-qti-max-selections-message\", \"\") || null, p = n.getAttribute(e, \"data-qti-min-selections-message\", \"\") || null, m = n.getAttribute(e, \"data-qti-first-column-header\", \"\") || null, h = n.getChildrenByTag(e, \"prompt\"), g = h.length > 0 ? n.getHtmlContent(h[0]) : null;\n\t\treturn {\n\t\t\tsourceSet: zs(a, s, t.shuffleRng),\n\t\t\ttargetSet: zs(o, s, t.shuffleRng),\n\t\t\tshuffle: s,\n\t\t\tmaxAssociations: c,\n\t\t\t...u === void 0 ? {} : { minAssociations: u },\n\t\t\tprompt: g,\n\t\t\t...d.length > 0 ? { interactionClasses: d } : {},\n\t\t\t...f ? { maxSelectionsMessage: f } : {},\n\t\t\t...p ? { minSelectionsMessage: p } : {},\n\t\t\t...m ? { firstColumnHeader: m } : {}\n\t\t};\n\t},\n\tvalidate(e) {\n\t\tlet t = [];\n\t\tif ((!e.sourceSet || e.sourceSet.length === 0) && t.push(\"matchInteraction must have at least one source choice\"), (!e.targetSet || e.targetSet.length === 0) && t.push(\"matchInteraction must have at least one target choice\"), e.sourceSet) {\n\t\t\tlet n = /* @__PURE__ */ new Set();\n\t\t\tfor (let r of e.sourceSet) r.identifier ? n.has(r.identifier) ? t.push(`Duplicate source identifier: ${r.identifier}`) : n.add(r.identifier) : t.push(\"All source choices must have an identifier\");\n\t\t}\n\t\tif (e.targetSet) {\n\t\t\tlet n = /* @__PURE__ */ new Set();\n\t\t\tfor (let r of e.targetSet) r.identifier ? n.has(r.identifier) ? t.push(`Duplicate target identifier: ${r.identifier}`) : n.add(r.identifier) : t.push(\"All target choices must have an identifier\");\n\t\t}\n\t\treturn e.maxAssociations < 0 && t.push(\"maxAssociations must be non-negative\"), {\n\t\t\tvalid: t.length === 0,\n\t\t\terrors: t.length > 0 ? t : void 0\n\t\t};\n\t}\n}, Jc = {\n\tid: \"qti:media-interaction\",\n\tname: \"QTI Standard Media Interaction\",\n\tpriority: 10,\n\telementTypes: [\"mediaInteraction\"],\n\tdescription: \"Extracts standard QTI mediaInteraction (video/audio playback)\",\n\tcanHandle(e, t) {\n\t\treturn t.utils.matchesTag(e, \"mediaInteraction\");\n\t},\n\textract(e, t) {\n\t\tlet { utils: n } = t, r = n.getBooleanAttribute(e, \"autostart\", !1), i = n.getNumberAttribute(e, \"minPlays\", 0), a = n.getNumberAttribute(e, \"maxPlays\", 0), o = n.getBooleanAttribute(e, \"loop\", !1), s = n.getChildrenByTag(e, \"prompt\"), c = s.length > 0 ? n.getHtmlContent(s[0]) : null, l = null, u = n.getChildrenByTag(e, \"audio\");\n\t\tif (u.length > 0) {\n\t\t\tlet e = u[0], t = n.getChildrenByTag(e, \"source\");\n\t\t\tif (t.length === 0) throw Error(\"audio element must contain at least one source element\");\n\t\t\tlet r = t[0];\n\t\t\tl = {\n\t\t\t\ttype: \"audio\",\n\t\t\t\tsrc: n.getAttribute(r, \"src\", \"\"),\n\t\t\t\tmimeType: n.getAttribute(r, \"type\", \"\")\n\t\t\t};\n\t\t}\n\t\tlet d = n.getChildrenByTag(e, \"video\");\n\t\tif (d.length > 0) {\n\t\t\tlet e = d[0], t = n.getChildrenByTag(e, \"source\");\n\t\t\tif (t.length === 0) throw Error(\"video element must contain at least one source element\");\n\t\t\tlet r = t[0], i = n.getNumberAttribute(e, \"width\", 640), a = n.getNumberAttribute(e, \"height\", 480);\n\t\t\tl = {\n\t\t\t\ttype: \"video\",\n\t\t\t\tsrc: n.getAttribute(r, \"src\", \"\"),\n\t\t\t\tmimeType: n.getAttribute(r, \"type\", \"\"),\n\t\t\t\twidth: i,\n\t\t\t\theight: a\n\t\t\t};\n\t\t}\n\t\tlet f = n.getChildrenByTag(e, \"object\");\n\t\tif (f.length > 0) {\n\t\t\tlet e = f[0], t = n.getAttribute(e, \"data\", \"\");\n\t\t\tif (!t) throw Error(\"object element must have data attribute\");\n\t\t\tlet r = n.getNumberAttribute(e, \"width\", 0), i = n.getNumberAttribute(e, \"height\", 0);\n\t\t\tl = {\n\t\t\t\ttype: \"object\",\n\t\t\t\tsrc: t,\n\t\t\t\tmimeType: n.getAttribute(e, \"type\", \"\"),\n\t\t\t\t...r > 0 ? { width: r } : {},\n\t\t\t\t...i > 0 ? { height: i } : {}\n\t\t\t};\n\t\t}\n\t\tif (!l) throw Error(\"mediaInteraction must contain audio, video, or object element\");\n\t\treturn {\n\t\t\tmediaElement: l,\n\t\t\tautostart: r,\n\t\t\tminPlays: i,\n\t\t\tmaxPlays: a,\n\t\t\tloop: o,\n\t\t\tprompt: c\n\t\t};\n\t},\n\tvalidate(e) {\n\t\tlet t = [], n = [];\n\t\treturn e.mediaElement || t.push(\"mediaInteraction must have a mediaElement\"), e.minPlays < 0 && t.push(\"minPlays must be non-negative\"), e.maxPlays < 0 && t.push(\"maxPlays must be non-negative\"), e.maxPlays > 0 && e.minPlays > e.maxPlays && t.push(`maxPlays (${e.maxPlays}) must be greater than or equal to minPlays (${e.minPlays})`), e.loop && e.maxPlays > 0 && n.push(\"mediaInteraction has loop=true with maxPlays - loop may be ignored\"), {\n\t\t\tvalid: t.length === 0,\n\t\t\terrors: t.length > 0 ? t : void 0,\n\t\t\twarnings: n.length > 0 ? n : void 0\n\t\t};\n\t}\n}, Yc = {\n\tid: \"qti:order-interaction\",\n\tname: \"QTI Standard Order Interaction\",\n\tpriority: 10,\n\telementTypes: [\"orderInteraction\"],\n\tdescription: \"Extracts standard QTI orderInteraction (ordering/ranking tasks)\",\n\tcanHandle(e, t) {\n\t\treturn t.utils.hasChildWithTag(e, \"simpleChoice\");\n\t},\n\textract(e, t) {\n\t\tlet { utils: n } = t, r = n.getChildrenByTag(e, \"simpleChoice\").map((e) => {\n\t\t\tlet t = n.getClasses(e), r = n.getBooleanAttribute(e, \"fixed\");\n\t\t\treturn {\n\t\t\t\tidentifier: n.getAttribute(e, \"identifier\", \"\"),\n\t\t\t\ttext: n.getHtmlContent(e),\n\t\t\t\t...r ? { fixed: r } : {},\n\t\t\t\t...t.length > 0 ? { classes: t } : {}\n\t\t\t};\n\t\t}), i = n.querySelector(e, \"prompt\"), a = i ? n.getHtmlContent(i) : null, o = n.getBooleanAttribute(e, \"shuffle\"), s = n.getAttribute(e, \"orientation\", \"vertical\"), c = n.getNumberAttribute(e, \"minChoices\", 0), l = n.getNumberAttribute(e, \"maxChoices\", 0);\n\t\treturn {\n\t\t\tchoices: zs(r, o, t.shuffleRng),\n\t\t\tshuffle: o,\n\t\t\torientation: s,\n\t\t\tminChoices: c,\n\t\t\tmaxChoices: l,\n\t\t\tprompt: a\n\t\t};\n\t},\n\tvalidate(e) {\n\t\tlet t = [], n = [];\n\t\tif ((!e.choices || e.choices.length < 2) && t.push(\"orderInteraction must have at least 2 choices\"), e.choices && e.choices.length > 10 && n.push(`orderInteraction has ${e.choices.length} choices - this may be difficult for users to order`), e.choices) {\n\t\t\tlet n = /* @__PURE__ */ new Set();\n\t\t\tfor (let r of e.choices) r.identifier ? n.has(r.identifier) ? t.push(`Duplicate choice identifier: ${r.identifier}`) : n.add(r.identifier) : t.push(\"All choices must have an identifier\");\n\t\t}\n\t\tif (e.orientation) {\n\t\t\tlet t = [\"vertical\", \"horizontal\"];\n\t\t\tt.includes(e.orientation) || n.push(`orientation '${e.orientation}' is not standard (expected: ${t.join(\", \")})`);\n\t\t}\n\t\treturn {\n\t\t\tvalid: t.length === 0,\n\t\t\terrors: t.length > 0 ? t : void 0,\n\t\t\twarnings: n.length > 0 ? n : void 0\n\t\t};\n\t}\n};\n//#endregion\n//#region src/interactions/position-object/extractor.ts\nfunction Xc(e, t, n, r) {\n\tif (!e) return null;\n\tlet i = t.getAttribute(e, \"type\", \"\"), a = t.getAttribute(e, \"data\", \"\"), o = X(t.getAttribute(e, \"width\", \"\"), n), s = X(t.getAttribute(e, \"height\", \"\"), r), c = t.getHtmlContent(e);\n\treturn i.startsWith(\"image/svg\") && /<svg[\\s>]/i.test(c) ? {\n\t\ttype: \"svg\",\n\t\tcontent: c,\n\t\twidth: o,\n\t\theight: s\n\t} : {\n\t\ttype: \"image\",\n\t\tsrc: a,\n\t\twidth: o,\n\t\theight: s\n\t};\n}\nvar Zc = {\n\tid: \"qti:position-object-interaction\",\n\tname: \"QTI Standard Position Object Interaction\",\n\tpriority: 10,\n\telementTypes: [\"positionObjectInteraction\"],\n\tdescription: \"Extracts a positionObjectInteraction from its parent positionObjectStage\",\n\tcanHandle(e) {\n\t\tlet t = e.rawTagName?.toLowerCase();\n\t\treturn t === \"positionobjectinteraction\" || t === \"qti-position-object-interaction\";\n\t},\n\textract(e, t) {\n\t\tlet { utils: n, responseId: r } = t, i = e.parentNode, a = i?.rawTagName?.toLowerCase(), o = i && (a === \"positionobjectstage\" || a === \"qti-position-object-stage\") && n.getChildrenByTag(i, \"positionObjectInteraction\").includes(e) ? i : void 0, s = o ? n.getChildrenByTag(o, \"object\")[0] : void 0, c = n.getChildrenByTag(e, \"object\")[0], l = Xc(s, n, \"500\", \"300\"), u = Xc(c, n, \"50\", \"50\"), d = n.getNumberAttribute(e, \"maxChoices\", 1), f = n.getNumberAttribute(e, \"minChoices\", 0), p = n.getTextContent(c).trim() || r, m = n.getClasses(e), h = n.getPrompt(e);\n\t\treturn {\n\t\t\timageData: l,\n\t\t\tpositionObjectStages: [{\n\t\t\t\tidentifier: r,\n\t\t\t\tlabel: p,\n\t\t\t\tmatchMax: d,\n\t\t\t\tobjectData: u,\n\t\t\t\t...m.length > 0 ? { classes: m } : {}\n\t\t\t}],\n\t\t\tcenterPoint: !0,\n\t\t\tmaxChoices: d,\n\t\t\tminChoices: f,\n\t\t\tprompt: h\n\t\t};\n\t},\n\tvalidate(e) {\n\t\tlet t = [], n = [];\n\t\te.imageData ? e.imageData.type === \"image\" && !e.imageData.src ? t.push(\"positionObjectStage background object must have a data URL\") : e.imageData.type === \"svg\" && !e.imageData.content && t.push(\"positionObjectStage background object must have SVG content\") : t.push(\"positionObjectInteraction must have a parent positionObjectStage with a background object\");\n\t\tlet r = e.positionObjectStages[0];\n\t\treturn r?.objectData ? r.objectData.type === \"image\" && !r.objectData.src && t.push(\"positionObjectInteraction draggable object must have a data URL\") : t.push(\"positionObjectInteraction must contain one draggable object\"), e.maxChoices < 0 && t.push(\"maxChoices must be non-negative\"), e.minChoices < 0 && t.push(\"minChoices must be non-negative\"), e.maxChoices > 0 && e.minChoices > e.maxChoices && t.push(\"minChoices cannot exceed maxChoices\"), e.imageData?.type === \"image\" && n.push(`Ensure the declared positionObjectStage width/height match the image dimensions. Declared: ${e.imageData.width || \"unspecified\"}×${e.imageData.height || \"unspecified\"}`), {\n\t\t\tvalid: t.length === 0,\n\t\t\terrors: t.length > 0 ? t : void 0,\n\t\t\twarnings: n.length > 0 ? n : void 0\n\t\t};\n\t}\n}, Qc = {\n\tid: \"qti:portable-custom-interaction\",\n\tname: \"QTI Portable Custom Interaction\",\n\toutputType: \"portableCustomInteraction\",\n\tpriority: 20,\n\telementTypes: [\n\t\t\"customInteraction\",\n\t\t\"portableCustomInteraction\",\n\t\t\"qti-portable-custom-interaction\"\n\t],\n\tdescription: \"Extracts QTI 2.x/3.0 portable custom interaction module paths, markup, and config\",\n\tcanHandle(e, t) {\n\t\tlet n = $c(e);\n\t\treturn n === \"portablecustominteraction\" || n === \"qti-portable-custom-interaction\" || n === \"custominteraction\" && el(e, [\"portablecustominteraction\"]) !== null;\n\t},\n\textract(e, t) {\n\t\tlet { utils: n } = t, r = $c(e) === \"custominteraction\" ? el(e, [\"portablecustominteraction\"]) : e;\n\t\tif (!r) throw Error(\"customInteraction does not contain a portableCustomInteraction payload\");\n\t\tlet i = n.getAttribute(e, \"responseIdentifier\") || n.getAttribute(e, \"response-identifier\") || t.responseId || \"\", a = n.getAttribute(r, \"customInteractionTypeIdentifier\") || n.getAttribute(r, \"custom-interaction-type-identifier\") || n.getAttribute(r, \"customInteractionIdentifierType\") || n.getAttribute(r, \"custom-interaction-identifier-type\") || \"\", o = \"\", s, c = el(r, [\"interactionmodules\", \"qti-interaction-modules\"]);\n\t\tif (c) {\n\t\t\tlet e = el(c, [\"interactionmodule\", \"qti-interaction-module\"]);\n\t\t\tif (e) {\n\t\t\t\to = n.getAttribute(e, \"primaryPath\") || n.getAttribute(e, \"primary-path\") || \"\";\n\t\t\t\tlet t = n.getAttribute(e, \"fallbackPath\") || n.getAttribute(e, \"fallback-path\") || \"\";\n\t\t\t\tt && (s = t);\n\t\t\t}\n\t\t}\n\t\tlet l = el(r, [\"instance\"]);\n\t\tif (!o && l) {\n\t\t\tlet e = tl(l, [\"script\"]).find((e) => !!n.getAttribute(e, \"src\"));\n\t\t\to = e ? n.getAttribute(e, \"src\") : \"\";\n\t\t}\n\t\tlet u = el(r, [\"interactionmarkup\", \"qti-interaction-markup\"]) ?? l, d = u ? n.getHtmlContent(u) : \"\", f = {}, p = el(r, [\"pciproperties\", \"qti-pci-properties\"]);\n\t\tif (p) {\n\t\t\tlet e = tl(p, [\"pciproperty\", \"qti-pci-property\"]);\n\t\t\tfor (let t of e) {\n\t\t\t\tlet e = n.getAttribute(t, \"key\") || n.getAttribute(t, \"name\") || \"\", r = n.getAttribute(t, \"value\") || (t.textContent ?? \"\").trim() || \"\";\n\t\t\t\te && (f[e] = r);\n\t\t\t}\n\t\t}\n\t\treturn {\n\t\t\tresponseIdentifier: i,\n\t\t\tcustomInteractionTypeIdentifier: a,\n\t\t\tprimaryPath: o,\n\t\t\tfallbackPath: s,\n\t\t\tmarkup: d,\n\t\t\tconfig: f\n\t\t};\n\t},\n\tvalidate(e) {\n\t\tlet t = [], n = [];\n\t\treturn e.responseIdentifier || t.push(\"portableCustomInteraction is missing responseIdentifier\"), e.customInteractionTypeIdentifier || n.push(\"portableCustomInteraction is missing customInteractionTypeIdentifier\"), e.primaryPath || t.push(\"portableCustomInteraction has no primaryPath in qti-interaction-modules\"), {\n\t\t\tvalid: t.length === 0,\n\t\t\terrors: t.length ? t : void 0,\n\t\t\twarnings: n.length ? n : void 0\n\t\t};\n\t}\n};\nfunction $c(e) {\n\tlet t = e.rawTagName?.toLowerCase() ?? \"\";\n\treturn t.includes(\":\") ? t.slice(t.lastIndexOf(\":\") + 1) : t;\n}\nfunction el(e, t) {\n\treturn tl(e, t)[0] ?? null;\n}\nfunction tl(e, t) {\n\tlet n = new Set(t.map((e) => e.toLowerCase())), r = [], i = (e) => {\n\t\tfor (let t of e.childNodes ?? []) {\n\t\t\tlet e = t;\n\t\t\te.rawTagName && (n.has($c(e)) && r.push(e), i(e));\n\t\t}\n\t};\n\treturn i(e), r;\n}\n//#endregion\n//#region src/interactions/select-point/extractor.ts\nvar nl = {\n\tid: \"qti:select-point-interaction\",\n\tname: \"QTI Standard Select Point Interaction\",\n\tpriority: 10,\n\telementTypes: [\"selectPointInteraction\"],\n\tdescription: \"Extracts standard QTI selectPointInteraction (click point on image)\",\n\tcanHandle(e, t) {\n\t\treturn t.utils.matchesTag(e, \"selectPointInteraction\");\n\t},\n\textract(e, t) {\n\t\tlet { utils: n } = t, r = n.getChildrenByTag(e, \"object\"), i = n.getChildrenByTag(e, \"img\"), a = null;\n\t\tif (r.length > 0) {\n\t\t\tlet e = r[0], t = n.getAttribute(e, \"type\", \"\"), i = n.getAttribute(e, \"data\", \"\"), o = X(n.getAttribute(e, \"width\", \"\"), \"500\"), s = X(n.getAttribute(e, \"height\", \"\"), \"300\");\n\t\t\ta = t.startsWith(\"image/svg\") ? {\n\t\t\t\ttype: \"svg\",\n\t\t\t\tcontent: n.getHtmlContent(e),\n\t\t\t\twidth: o,\n\t\t\t\theight: s\n\t\t\t} : {\n\t\t\t\ttype: \"image\",\n\t\t\t\tsrc: i,\n\t\t\t\twidth: o,\n\t\t\t\theight: s\n\t\t\t};\n\t\t} else if (i.length > 0) {\n\t\t\tlet e = i[0];\n\t\t\ta = {\n\t\t\t\ttype: \"image\",\n\t\t\t\tsrc: n.getAttribute(e, \"src\", \"\"),\n\t\t\t\twidth: X(n.getAttribute(e, \"width\", \"\"), \"500\"),\n\t\t\t\theight: X(n.getAttribute(e, \"height\", \"\"), \"300\")\n\t\t\t};\n\t\t}\n\t\tlet o = n.getNumberAttribute(e, \"maxChoices\", 1), s = n.getNumberAttribute(e, \"minChoices\", 0), c = n.getChildrenByTag(e, \"prompt\"), l = c.length > 0 ? n.getHtmlContent(c[0]) : null;\n\t\treturn {\n\t\t\timageData: a,\n\t\t\tmaxChoices: o,\n\t\t\tminChoices: s,\n\t\t\tprompt: l\n\t\t};\n\t},\n\tvalidate(e) {\n\t\tlet t = [], n = [];\n\t\treturn e.imageData ? e.imageData.type === \"image\" && !e.imageData.src ? t.push(\"selectPointInteraction must have an image URL\") : e.imageData.type === \"svg\" && !e.imageData.content && t.push(\"selectPointInteraction must have SVG content\") : n.push(\"selectPointInteraction has no image data\"), e.maxChoices < 0 && t.push(\"maxChoices must be non-negative\"), e.minChoices < 0 && t.push(\"minChoices must be non-negative\"), e.maxChoices > 0 && e.minChoices > e.maxChoices && t.push(`minChoices (${e.minChoices}) must be less than or equal to maxChoices (${e.maxChoices})`), {\n\t\t\tvalid: t.length === 0,\n\t\t\terrors: t.length > 0 ? t : void 0,\n\t\t\twarnings: n.length > 0 ? n : void 0\n\t\t};\n\t}\n}, rl = {\n\tid: \"qti:slider-interaction\",\n\tname: \"QTI Standard Slider Interaction\",\n\tpriority: 10,\n\telementTypes: [\"sliderInteraction\"],\n\tdescription: \"Extracts standard QTI sliderInteraction (slider input)\",\n\tcanHandle(e, t) {\n\t\treturn t.utils.matchesTag(e, \"sliderInteraction\");\n\t},\n\textract(e, t) {\n\t\tlet { utils: n } = t, r = n.getNumberAttribute(e, \"lowerBound\", 0), i = n.getNumberAttribute(e, \"upperBound\", 100), a = n.getNumberAttribute(e, \"step\", 1), o = n.getAttribute(e, \"orientation\", \"horizontal\"), s = n.getBooleanAttribute(e, \"reverse\", !1), c = n.getBooleanAttribute(e, \"stepLabel\"), l = n.getChildrenByTag(e, \"prompt\"), u = l.length > 0 ? n.getHtmlContent(l[0]) : null;\n\t\treturn {\n\t\t\tlowerBound: r,\n\t\t\tupperBound: i,\n\t\t\tstep: a,\n\t\t\torientation: o,\n\t\t\treverse: s,\n\t\t\t...c ? { stepLabel: c } : {},\n\t\t\tprompt: u\n\t\t};\n\t},\n\tvalidate(e) {\n\t\tlet t = [], n = [];\n\t\te.lowerBound >= e.upperBound && t.push(\"lowerBound must be less than upperBound\"), e.step <= 0 && t.push(\"step must be greater than 0\"), e.orientation && ![\"horizontal\", \"vertical\"].includes(e.orientation) && t.push(\"orientation must be \\\"horizontal\\\" or \\\"vertical\\\"\");\n\t\tlet r = e.upperBound - e.lowerBound;\n\t\treturn e.step > r ? n.push(`step (${e.step}) is larger than the range (${r})`) : r % e.step !== 0 && n.push(`step ${e.step} does not evenly divide range ${r} (${e.lowerBound} to ${e.upperBound})`), {\n\t\t\tvalid: t.length === 0,\n\t\t\terrors: t.length > 0 ? t : void 0,\n\t\t\twarnings: n.length > 0 ? n : void 0\n\t\t};\n\t}\n}, il = {\n\tid: \"qti:text-entry-interaction\",\n\tname: \"QTI Standard Text Entry Interaction\",\n\tpriority: 10,\n\telementTypes: [\"textEntryInteraction\"],\n\tdescription: \"Extracts standard QTI textEntryInteraction (inline text input)\",\n\tcanHandle(e, t) {\n\t\treturn e.rawTagName === \"textEntryInteraction\" || e.rawTagName === \"qti-text-entry-interaction\";\n\t},\n\textract(e, t) {\n\t\tlet { utils: n } = t, r = n.getNumberAttribute(e, \"expectedLength\", 20), i = n.getAttribute(e, \"patternMask\", \"\"), a = n.getAttribute(e, \"placeholderText\", \"\"), o = n.getAttribute(e, \"format\", \"\"), s = n.getClasses(e), c = n.getAttribute(e, \"data-patternmask-message\", \"\") || null;\n\t\treturn {\n\t\t\texpectedLength: r,\n\t\t\tpatternMask: i || null,\n\t\t\tplaceholderText: a,\n\t\t\t...o ? { format: o } : {},\n\t\t\t...s.length > 0 ? { interactionClasses: s } : {},\n\t\t\t...c ? { patternMaskMessage: c } : {}\n\t\t};\n\t},\n\tvalidate(e) {\n\t\tlet t = [], n = [];\n\t\treturn e.expectedLength < 1 && t.push(\"expectedLength must be positive\"), e.expectedLength > 1e3 && n.push(`expectedLength (${e.expectedLength}) is very large - consider using extendedTextInteraction`), {\n\t\t\tvalid: t.length === 0,\n\t\t\terrors: t.length > 0 ? t : void 0,\n\t\t\twarnings: n.length > 0 ? n : void 0\n\t\t};\n\t}\n}, al = {\n\tid: \"qti:upload-interaction\",\n\tname: \"QTI Standard Upload Interaction\",\n\tpriority: 10,\n\telementTypes: [\"uploadInteraction\"],\n\tdescription: \"Extracts standard QTI uploadInteraction (file upload)\",\n\tcanHandle(e, t) {\n\t\treturn t.utils.matchesTag(e, \"uploadInteraction\");\n\t},\n\textract(e, t) {\n\t\tlet { utils: n } = t, r = n.getChildrenByTag(e, \"fileType\").map((e) => n.getTextContent(e));\n\t\tif (r.length === 0) {\n\t\t\tlet t = n.getAttribute(e, \"type\", \"\");\n\t\t\tt && (r = t.split(/\\s+/).filter(Boolean));\n\t\t}\n\t\tlet i = {};\n\t\tif (e.attributes) for (let [t, n] of Object.entries(e.attributes)) i[t] = String(n);\n\t\tlet a = n.getChildrenByTag(e, \"prompt\"), o = a.length > 0 ? n.getHtmlContent(a[0]) : null;\n\t\treturn {\n\t\t\tfileTypes: r,\n\t\t\trawAttributes: i,\n\t\t\tprompt: o\n\t\t};\n\t},\n\tvalidate(e) {\n\t\tlet t = [];\n\t\treturn (!e.fileTypes || e.fileTypes.length === 0) && t.push(\"uploadInteraction has no fileTypes - any file type will be accepted\"), {\n\t\t\tvalid: !0,\n\t\t\twarnings: t.length > 0 ? t : void 0\n\t\t};\n\t}\n}, Z = Ns(\"prompt\"), ol = [Ns(\"imageData\", \"content\"), Ps(\"img\", \"imageData\", \"src\")], sl = ml([\n\t{\n\t\ttype: \"choiceInteraction\",\n\t\textractor: Vs,\n\t\tplacement: \"block\",\n\t\tdelivery: [Z, Ns(\"choices\", \"*\", \"text\")]\n\t},\n\t{\n\t\ttype: \"textEntryInteraction\",\n\t\textractor: il,\n\t\tplacement: \"inline\",\n\t\tdelivery: []\n\t},\n\t{\n\t\ttype: \"extendedTextInteraction\",\n\t\textractor: Xs,\n\t\tplacement: \"block\",\n\t\tdelivery: [Z]\n\t},\n\t{\n\t\ttype: \"inlineChoiceInteraction\",\n\t\textractor: Kc,\n\t\tplacement: \"inline\",\n\t\tdelivery: []\n\t},\n\t{\n\t\ttype: \"orderInteraction\",\n\t\textractor: Yc,\n\t\tplacement: \"block\",\n\t\tdelivery: [Z, Ns(\"choices\", \"*\", \"text\")]\n\t},\n\t{\n\t\ttype: \"matchInteraction\",\n\t\textractor: qc,\n\t\tplacement: \"block\",\n\t\tdelivery: [\n\t\t\tZ,\n\t\t\tNs(\"sourceSet\", \"*\", \"text\"),\n\t\t\tNs(\"targetSet\", \"*\", \"text\")\n\t\t]\n\t},\n\t{\n\t\ttype: \"associateInteraction\",\n\t\textractor: Bs,\n\t\tplacement: \"block\",\n\t\tdelivery: [Z, Ns(\"choices\", \"*\", \"text\")]\n\t},\n\t{\n\t\ttype: \"gapMatchInteraction\",\n\t\textractor: ac,\n\t\tplacement: \"block\",\n\t\tdelivery: [Z, Ns(\"promptText\")]\n\t},\n\t{\n\t\ttype: \"sliderInteraction\",\n\t\textractor: rl,\n\t\tplacement: \"block\",\n\t\tdelivery: [Z]\n\t},\n\t{\n\t\ttype: \"hotspotInteraction\",\n\t\textractor: lc,\n\t\tplacement: \"block\",\n\t\tdelivery: [Z, ...ol]\n\t},\n\t{\n\t\ttype: \"graphicGapMatchInteraction\",\n\t\textractor: sc,\n\t\tplacement: \"block\",\n\t\tdelivery: [\n\t\t\tZ,\n\t\t\t...ol,\n\t\t\tPs(\"img\", \"gapImages\", \"*\", \"src\")\n\t\t]\n\t},\n\t{\n\t\ttype: \"uploadInteraction\",\n\t\textractor: al,\n\t\tplacement: \"block\",\n\t\tdelivery: [Z]\n\t},\n\t{\n\t\ttype: \"drawingInteraction\",\n\t\textractor: Js,\n\t\tplacement: \"block\",\n\t\tdelivery: [Z, ...ol]\n\t},\n\t{\n\t\ttype: \"customInteraction\",\n\t\textractor: Hs,\n\t\tplacement: \"block\",\n\t\tdelivery: [Z]\n\t},\n\t{\n\t\ttype: \"portableCustomInteraction\",\n\t\textractor: Qc,\n\t\tplacement: \"block\",\n\t\tdelivery: [Ns(\"markup\")]\n\t},\n\t{\n\t\ttype: \"mediaInteraction\",\n\t\textractor: Jc,\n\t\tplacement: \"block\",\n\t\tdelivery: [Z, Ps(\"media-or-object\", \"mediaElement\", \"src\")]\n\t},\n\t{\n\t\ttype: \"hottextInteraction\",\n\t\textractor: Gc,\n\t\tplacement: \"block\",\n\t\tdelivery: [Z, Ns(\"contentHtml\")]\n\t},\n\t{\n\t\ttype: \"selectPointInteraction\",\n\t\textractor: nl,\n\t\tplacement: \"block\",\n\t\tdelivery: [Z, ...ol]\n\t},\n\t{\n\t\ttype: \"graphicOrderInteraction\",\n\t\textractor: cc,\n\t\tplacement: \"block\",\n\t\tdelivery: [Z, ...ol]\n\t},\n\t{\n\t\ttype: \"graphicAssociateInteraction\",\n\t\textractor: oc,\n\t\tplacement: \"block\",\n\t\tdelivery: [Z, ...ol]\n\t},\n\t{\n\t\ttype: \"positionObjectInteraction\",\n\t\textractor: Zc,\n\t\tplacement: \"block\",\n\t\tdelivery: [\n\t\t\tZ,\n\t\t\t...ol,\n\t\t\tNs(\"positionObjectStages\", \"*\", \"objectData\", \"content\"),\n\t\t\tPs(\"img\", \"positionObjectStages\", \"*\", \"objectData\", \"src\")\n\t\t]\n\t},\n\t{\n\t\ttype: \"endAttemptInteraction\",\n\t\textractor: Ys,\n\t\tplacement: \"block\",\n\t\tdelivery: [Z]\n\t}\n]);\nfunction cl() {\n\treturn sl;\n}\nvar ll = new Map(sl.map((e) => [e.type.toLowerCase(), e.type]));\nfunction ul(e) {\n\tlet t = e.toLowerCase();\n\treturn t.startsWith(\"qti-\") ? t.slice(4).replace(/-([a-z])/g, (e, t) => t.toUpperCase()) : ll.get(t) ?? e;\n}\nfunction dl(e) {\n\tlet t = ul(e);\n\treturn sl.find((e) => e.type === t) ?? null;\n}\nfunction fl(e) {\n\treturn dl(e)?.placement === \"inline\";\n}\nfunction pl(e) {\n\treturn fl(ul(e));\n}\nfunction ml(e) {\n\treturn Object.freeze(e.map((e) => Object.freeze({\n\t\t...e,\n\t\tdelivery: Object.freeze(e.delivery.map((e) => Object.freeze({\n\t\t\t...e,\n\t\t\tpath: Object.freeze([...e.path])\n\t\t})))\n\t})));\n}\n//#endregion\n//#region src/core/ComponentRegistry.ts\nvar hl = {\n\tchoiceInteraction: {\n\t\tname: \"default-choice\",\n\t\ttagName: \"pie-qti-choice\"\n\t},\n\tsliderInteraction: {\n\t\tname: \"default-slider\",\n\t\ttagName: \"pie-qti-slider\"\n\t},\n\torderInteraction: {\n\t\tname: \"default-order\",\n\t\ttagName: \"pie-qti-order\"\n\t},\n\tmatchInteraction: {\n\t\tname: \"default-match\",\n\t\ttagName: \"pie-qti-match\"\n\t},\n\tassociateInteraction: {\n\t\tname: \"default-associate\",\n\t\ttagName: \"pie-qti-associate\"\n\t},\n\tgapMatchInteraction: {\n\t\tname: \"default-gap-match\",\n\t\ttagName: \"pie-qti-gap-match\"\n\t},\n\thotspotInteraction: {\n\t\tname: \"default-hotspot\",\n\t\ttagName: \"pie-qti-hotspot\"\n\t},\n\thottextInteraction: {\n\t\tname: \"default-hottext\",\n\t\ttagName: \"pie-qti-hottext\"\n\t},\n\tmediaInteraction: {\n\t\tname: \"default-media\",\n\t\ttagName: \"pie-qti-media\"\n\t},\n\tcustomInteraction: {\n\t\tname: \"default-custom\",\n\t\ttagName: \"pie-qti-custom\"\n\t},\n\tportableCustomInteraction: {\n\t\tname: \"default-portable-custom\",\n\t\ttagName: \"pie-qti-portable-custom\"\n\t},\n\tendAttemptInteraction: {\n\t\tname: \"default-end-attempt\",\n\t\ttagName: \"pie-qti-end-attempt\"\n\t},\n\tpositionObjectInteraction: {\n\t\tname: \"default-position-object\",\n\t\ttagName: \"pie-qti-position-object\"\n\t},\n\tgraphicGapMatchInteraction: {\n\t\tname: \"default-graphic-gap-match\",\n\t\ttagName: \"pie-qti-graphic-gap-match\"\n\t},\n\tgraphicOrderInteraction: {\n\t\tname: \"default-graphic-order\",\n\t\ttagName: \"pie-qti-graphic-order\"\n\t},\n\tgraphicAssociateInteraction: {\n\t\tname: \"default-graphic-associate\",\n\t\ttagName: \"pie-qti-graphic-associate\"\n\t},\n\tselectPointInteraction: {\n\t\tname: \"default-select-point\",\n\t\ttagName: \"pie-qti-select-point\"\n\t},\n\textendedTextInteraction: {\n\t\tname: \"default-extended-text\",\n\t\ttagName: \"pie-qti-extended-text\"\n\t},\n\tuploadInteraction: {\n\t\tname: \"default-upload\",\n\t\ttagName: \"pie-qti-upload\"\n\t},\n\tdrawingInteraction: {\n\t\tname: \"default-drawing\",\n\t\ttagName: \"pie-qti-drawing\"\n\t},\n\tcatalogPopup: {\n\t\tname: \"default-catalog-popup\",\n\t\ttagName: \"pie-qti-catalog-popup\"\n\t}\n}, gl = class {\n\tconstructor() {\n\t\tthis.components = /* @__PURE__ */ new Map(), this.definedElements = /* @__PURE__ */ new Set(), this.sealed = !1;\n\t}\n\tregister(e, t) {\n\t\tif (this.assertMutable(), !t.tagName.includes(\"-\")) throw Error(`Invalid tag name '${t.tagName}'. Web component tag names must contain a hyphen.`);\n\t\tlet n = this.createRegisteredComponent(t);\n\t\tthis.ensureCustomElementDefined(n.config);\n\t\tlet r = this.components.get(e);\n\t\tr || (r = [], this.components.set(e, r)), r.push(n), r.sort((e, t) => t.config.priority - e.config.priority);\n\t}\n\tcreateRegisteredComponent(e) {\n\t\treturn Object.freeze({ config: Object.freeze({\n\t\t\t...e,\n\t\t\tpriority: e.priority ?? 0,\n\t\t\tcanHandle: e.canHandle?.bind(e) ?? (() => !0)\n\t\t}) });\n\t}\n\tensureCustomElementDefined(e) {\n\t\tif (!e.componentClass || e.autoRegister === !1 || this.definedElements.has(e.tagName)) return;\n\t\tlet t = globalThis.customElements;\n\t\tt && (t.get(e.tagName) || t.define(e.tagName, e.componentClass), this.definedElements.add(e.tagName));\n\t}\n\tgetTagName(e) {\n\t\tlet t = this.components.get(e.type);\n\t\tif (!t || t.length === 0) throw Error(`No component registered for '${e.type}' interaction. Available types: ${Array.from(this.components.keys()).join(\", \")}`);\n\t\tfor (let { config: n } of t) try {\n\t\t\tif (n.canHandle(e)) return this.ensureCustomElementDefined(n), n.tagName;\n\t\t} catch (e) {\n\t\t\tconsole.warn(`canHandle() failed for '${n.name}' component:`, e);\n\t\t}\n\t\tlet n = t.map((e) => {\n\t\t\tlet t = e.config.description ? ` (${e.config.description})` : \"\";\n\t\t\treturn `${e.config.name}${t}`;\n\t\t}).join(\", \");\n\t\tthrow Error(`No component available for '${e.type}' interaction.\\nRegistered components: ${n}.\\nNone of these components matched the current interaction.`);\n\t}\n\tgetRegisteredTypes() {\n\t\treturn Array.from(this.components.keys());\n\t}\n\thasComponent(e) {\n\t\treturn this.components.has(e) && this.components.get(e).length > 0;\n\t}\n\tgetTagNameForType(e) {\n\t\tlet t = this.components.get(e);\n\t\tif (!t || t.length === 0) return null;\n\t\tlet n = t[0].config;\n\t\treturn this.ensureCustomElementDefined(n), n.tagName;\n\t}\n\tseal() {\n\t\treturn this.sealed = !0, this;\n\t}\n\tisSealed() {\n\t\treturn this.sealed;\n\t}\n\tassertMutable() {\n\t\tif (this.sealed) throw Error(\"ComponentRegistry is sealed for this AssessmentItem; create a new definition to change renderers\");\n\t}\n};\nfunction _l() {\n\tlet e = new gl();\n\treturn vl(e), e;\n}\nfunction vl(e) {\n\tfor (let [t, n] of Object.entries(hl)) e.register(t, {\n\t\t...n,\n\t\tdescription: `Default web component tag for ${t}`,\n\t\tpriority: -100\n\t});\n}\n//#endregion\n//#region src/document/AssessmentItemDocument.ts\nvar yl = class {\n\tconstructor({ itemXml: e, elementNameMapper: t, attributeNameMapper: n, security: r }) {\n\t\tthis.itemXml = e, this.security = r, this.mathMlPrefixes = Cl(e), this.elementNameMapper = t, this.attributeNameMapper = n, pc(this.itemXml, this.security), this.xmlDocument = ne(this.itemXml), this.assessmentItem = x(this.xmlDocument), this.extractionSource = this.serializeItemBodyForExtraction();\n\t}\n\tdetectVersion() {\n\t\tlet e = this.assessmentItem.namespaceURI;\n\t\tif (e?.includes(\"v3p0\") || e?.includes(\"imsqtiasi_v3p0\")) return \"3.0\";\n\t\tif (e?.includes(\"v2p2\") || e?.includes(\"imsqti_v2p2\")) return \"2.2\";\n\t\tif (e?.includes(\"v2p1\") || e?.includes(\"imsqti_v2p1\")) return \"2.1\";\n\t\tif (e?.includes(\"v2p0\") || e?.includes(\"imsqti_v2p0\")) return \"2.0\";\n\t\tlet t = this.assessmentItem.localName || this.assessmentItem.tagName;\n\t\tif (t === \"qti-assessment-item\" || t === \"qti-assessment-test\") return \"3.0\";\n\t\tlet n = this.assessmentItem.getAttribute(\"version\");\n\t\treturn n?.startsWith(\"3.\") ? \"3.0\" : n === \"2.2\" || n === \"2.1\" || n === \"2.0\" ? n : \"unknown\";\n\t}\n\tgetProcessingElement(e) {\n\t\tlet t = e === \"template\" ? \"templateprocessing\" : e === \"response\" ? \"responseprocessing\" : \"outcomeprocessing\";\n\t\treturn te(this.assessmentItem, this.elementNameMapper.toNative(t));\n\t}\n\tserializeItemBodyChildren() {\n\t\tlet e = this.getItemBodyElement();\n\t\treturn e ? this.serializeChildren(e) : \"\";\n\t}\n\tdescribeResponseProcessing() {\n\t\tlet e = this.getProcessingElement(\"response\");\n\t\tif (!e) return Object.freeze({\n\t\t\tpresent: !1,\n\t\t\thasStatements: !1\n\t\t});\n\t\tlet t = C(e, \"template\")?.trim() || void 0;\n\t\treturn Object.freeze({\n\t\t\tpresent: !0,\n\t\t\thasStatements: v(e).length > 0,\n\t\t\t...t ? { template: t } : {}\n\t\t});\n\t}\n\treadRubricBlocks() {\n\t\treturn this.findRubricElements().map((e) => {\n\t\t\tlet t = (C(e, \"view\") || \"\").trim().split(/[\\s,]+/).filter(Boolean), n = (C(e, \"use\") || \"\").trim() || void 0;\n\t\t\treturn Object.freeze({\n\t\t\t\tview: Object.freeze(t),\n\t\t\t\t...n ? { use: n } : {},\n\t\t\t\tscope: this.rubricElementScope(e),\n\t\t\t\tcontent: this.serializeChildren(e) || e.textContent || \"\"\n\t\t\t});\n\t\t});\n\t}\n\treadModalFeedback() {\n\t\treturn this.findModalFeedbackElements().map((e) => {\n\t\t\tlet t = this.getMappedAttribute(e, \"identifier\") || \"\", n = this.getMappedAttribute(e, \"outcomeIdentifier\") || \"\", r = this.getMappedAttribute(e, \"showHide\") || \"show\", i = this.getMappedAttribute(e, \"title\") || void 0;\n\t\t\treturn Object.freeze({\n\t\t\t\tidentifier: t,\n\t\t\t\toutcomeIdentifier: n,\n\t\t\t\tshowHide: r,\n\t\t\t\t...i ? { title: i } : {},\n\t\t\t\tcontent: this.serializeChildren(e) || e.textContent || \"\"\n\t\t\t});\n\t\t});\n\t}\n\tgetExtendedTextBase(e) {\n\t\tlet t = this.findExtractionElements([\"extendedTextInteraction\"]).find((t) => t.responseIdentifier === e);\n\t\tif (!t) return;\n\t\tlet n = Number(t.element.getAttribute?.(\"base\") ?? 10);\n\t\treturn Number.isInteger(n) && n >= 2 && n <= 36 ? n : 10;\n\t}\n\tfindRubricElements() {\n\t\treturn S(this.assessmentItem, this.elementNameMapper.toNative(\"rubricblock\"));\n\t}\n\trubricElementScope(e) {\n\t\tlet t = this.elementNameMapper.toNative(\"itembody\").toLowerCase(), n = e.parentNode;\n\t\tfor (; n && n !== this.assessmentItem;) {\n\t\t\tif (n.tagName?.toLowerCase() === t) return \"itemBody\";\n\t\t\tn = n.parentNode;\n\t\t}\n\t\treturn \"direct\";\n\t}\n\tfindModalFeedbackElements() {\n\t\treturn S(this.assessmentItem, this.elementNameMapper.toNative(\"modalfeedback\"));\n\t}\n\tfindDeclarationElements(e) {\n\t\tlet t = e === \"response\" ? \"responsedeclaration\" : e === \"outcome\" ? \"outcomedeclaration\" : \"templatedeclaration\";\n\t\treturn S(this.assessmentItem, this.elementNameMapper.toNative(t));\n\t}\n\tgetAssessmentItemAttribute(e) {\n\t\treturn this.assessmentItem.getAttribute(this.attributeNameMapper.toNative(e));\n\t}\n\tgetMappedAttribute(e, t) {\n\t\treturn e.getAttribute(this.attributeNameMapper.toNative(t));\n\t}\n\tserializeChildren(e) {\n\t\treturn wl(Sl(this.serializeChildNodes(e)), this.mathMlPrefixes);\n\t}\n\tfindExtractionElements(e) {\n\t\tlet t = this.createExtractionRoot();\n\t\tif (!t) return [];\n\t\tlet n = new Set([...e].map((e) => this.elementNameMapper.toCanonical(e))), r = [];\n\t\treturn this.walkExtractionChildren(t, (e) => {\n\t\t\tlet i = e.rawTagName;\n\t\t\tif (!i || !n.has(this.elementNameMapper.toCanonical(i))) return;\n\t\t\tlet a = this.getExtractionResponseIdentifier(e);\n\t\t\ta && r.push({\n\t\t\t\telement: e,\n\t\t\t\tcontextRoot: t,\n\t\t\t\tresponseIdentifier: a,\n\t\t\t\tnormalizedType: ul(i)\n\t\t\t});\n\t\t}), r;\n\t}\n\tcreateExtractionRoot() {\n\t\tlet e = s(this.extractionSource, {\n\t\t\tlowerCaseTagName: !1,\n\t\t\tcomment: !1\n\t\t}), t = this.elementNameMapper.toNative(\"itembody\").toLowerCase();\n\t\treturn e.querySelector?.(t) ?? null;\n\t}\n\tgetItemBodyElement() {\n\t\treturn te(this.assessmentItem, this.elementNameMapper.toNative(\"itembody\"));\n\t}\n\tserializeItemBodyForExtraction() {\n\t\tlet e = this.elementNameMapper.toNative(\"itembody\"), t = this.getItemBodyElement();\n\t\treturn `<assessmentItem><${e}>${t ? this.serializeChildren(t) : \"\"}</${e}></assessmentItem>`;\n\t}\n\tserializeChildNodes(e) {\n\t\tlet t = e.childNodes;\n\t\tif (!t) return \"\";\n\t\tlet n = [];\n\t\tfor (let e = 0; e < t.length; e++) {\n\t\t\tlet r = t[e];\n\t\t\tr && n.push(ie(r));\n\t\t}\n\t\treturn n.join(\"\");\n\t}\n\twalkExtractionChildren(e, t) {\n\t\tfor (let n of e.childNodes ?? []) {\n\t\t\tlet e = n;\n\t\t\te.rawTagName && (bl(e.rawTagName) || (t(e), this.walkExtractionChildren(e, t)));\n\t\t}\n\t}\n\tgetExtractionResponseIdentifier(e) {\n\t\tlet t = this.attributeNameMapper.toNative(\"responseIdentifier\");\n\t\treturn e.getAttribute?.(\"responseIdentifier\") || e.getAttribute?.(t) || e.getAttribute?.(\"response-identifier\") || e.getAttribute?.(\"responseidentifier\") || \"\";\n\t}\n};\nfunction bl(e) {\n\tlet t = e.toLowerCase();\n\treturn t === \"rubricblock\" || t === \"qti-rubric-block\";\n}\nfunction xl(e) {\n\treturn new yl(e);\n}\nfunction Sl(e) {\n\treturn e.replace(/<!\\[CDATA\\[([\\s\\S]*?)\\]\\]>/g, (e, t) => t);\n}\nfunction Cl(e) {\n\tlet t = /* @__PURE__ */ new Set();\n\tfor (let n of e.matchAll(/\\sxmlns:([A-Za-z_][\\w.-]*)=([\"'])http:\\/\\/www\\.w3\\.org\\/1998\\/Math\\/MathML\\2/g)) {\n\t\tlet e = n[1];\n\t\te && t.add(e);\n\t}\n\treturn t;\n}\nfunction wl(e, t) {\n\tlet n = e;\n\tfor (let e of t) {\n\t\tlet t = Tl(e);\n\t\tn = n.replace(RegExp(`(<\\\\/?)${t}:([A-Za-z][\\\\w.-]*)(?=[\\\\s>/])`, \"g\"), \"$1$2\").replace(RegExp(`\\\\sxmlns:${t}=([\"'])http:\\\\/\\\\/www\\\\.w3\\\\.org\\\\/1998\\\\/Math\\\\/MathML\\\\1`, \"g\"), \"\");\n\t}\n\treturn n;\n}\nfunction Tl(e) {\n\treturn e.replace(/[.*+?^${}()|[\\]\\\\]/g, \"\\\\$&\");\n}\n//#endregion\n//#region src/extraction/utils.ts\nfunction El(e) {\n\treturn e?.textContent?.trim() || \"\";\n}\nfunction Dl(e, t, n) {\n\treturn e?.childNodes ? e.childNodes.filter((e) => Ml(e.rawTagName, t, n)) : [];\n}\nfunction Ol(e, t, n = !1, r) {\n\tlet i = e.getAttribute(t);\n\tif (i == null && r) {\n\t\tlet n = r.toNative(t);\n\t\ti = e.getAttribute(n);\n\t}\n\treturn i == null ? n : i === \"true\";\n}\nfunction kl(e, t, n, r) {\n\tlet i = e.getAttribute(t);\n\tif (i == null && r) {\n\t\tlet n = r.toNative(t);\n\t\ti = e.getAttribute(n);\n\t}\n\treturn i ? Number(i) : n;\n}\nfunction Al(e, t, n = \"\", r) {\n\tlet i = e.getAttribute(t);\n\tif (i == null && r) {\n\t\tlet n = r.toNative(t);\n\t\ti = e.getAttribute(n);\n\t}\n\treturn i || n;\n}\nfunction jl(e) {\n\tlet t = e.getAttribute(\"class\");\n\treturn t ? t.split(/\\s+/).filter(Boolean) : [];\n}\nfunction Ml(e, t, n) {\n\tif (!e) return !1;\n\tlet r = t.toLowerCase(), i = n.toNative(r);\n\treturn e.toLowerCase() === i.toLowerCase();\n}\nfunction Nl(n, r, i) {\n\tlet a = r || new t(), o = i || new e();\n\treturn {\n\t\tmatchesTag(e, t) {\n\t\t\treturn Ml(e.rawTagName, t, a);\n\t\t},\n\t\tgetChildrenByTag(e, t) {\n\t\t\treturn Dl(e, t, a);\n\t\t},\n\t\tquerySelectorAll(e, t) {\n\t\t\tlet n = t.split(/\\s+/), r = [e];\n\t\t\tfor (let e of n) {\n\t\t\t\tlet t = [];\n\t\t\t\tfor (let n of r) if (Ml(n.rawTagName, e, a) && t.push(n), n.childNodes) for (let r of n.childNodes) typeof r != \"string\" && Ml(r.rawTagName, e, a) && t.push(r);\n\t\t\t\tr = t;\n\t\t\t}\n\t\t\treturn r;\n\t\t},\n\t\tquerySelector(e, t) {\n\t\t\tlet n = this.querySelectorAll(e, t);\n\t\t\treturn n.length > 0 ? n[0] : null;\n\t\t},\n\t\thasChildWithTag(e, t) {\n\t\t\tif (!e.childNodes) return !1;\n\t\t\tfor (let n of e.childNodes) if (typeof n != \"string\" && Ml(n.rawTagName, t, a)) return !0;\n\t\t\treturn !1;\n\t\t},\n\t\tgetHtmlContent(e) {\n\t\t\treturn Uc(e?.innerHTML?.trim() || \"\", { security: n });\n\t\t},\n\t\tgetTextContent(e) {\n\t\t\treturn El(e);\n\t\t},\n\t\tgetAttribute(e, t, n = \"\") {\n\t\t\treturn Al(e, t, n, o);\n\t\t},\n\t\tgetBooleanAttribute(e, t, n = !1) {\n\t\t\treturn Ol(e, t, n, o);\n\t\t},\n\t\tgetNumberAttribute(e, t, n = 0) {\n\t\t\treturn kl(e, t, n, o);\n\t\t},\n\t\tgetPrompt(e) {\n\t\t\tlet t = Dl(e, \"prompt\", a)[0];\n\t\t\treturn t ? this.getHtmlContent(t) : null;\n\t\t},\n\t\tgetClasses(e) {\n\t\t\treturn jl(e);\n\t\t}\n\t};\n}\n//#endregion\n//#region src/extraction/createContext.ts\nfunction Pl(e, t, n, r, i, a) {\n\tlet o = i.elementNameMapper, s = i.attributeNameMapper;\n\treturn {\n\t\telement: e,\n\t\tresponseId: t,\n\t\tdom: n,\n\t\tdeclarations: r,\n\t\tutils: Nl(i.security, o, s),\n\t\tconfig: i,\n\t\t...a ? { shuffleRng: Ls(a, t) } : {}\n\t};\n}\n//#endregion\n//#region src/core/trustedTypes.ts\nfunction Fl() {\n\treturn globalThis.trustedTypes;\n}\nvar Il = /* @__PURE__ */ new Map();\nfunction Ll(e) {\n\tlet t = Il.get(e);\n\tif (t) return t;\n\tlet n = Fl();\n\tif (!n?.createPolicy) return null;\n\ttry {\n\t\tlet t = n.createPolicy(e, { createHTML: (e) => e });\n\t\treturn t?.createHTML ? (Il.set(e, t), t) : null;\n\t} catch {\n\t\treturn null;\n\t}\n}\nfunction Rl(e, t) {\n\tif (!t) return e;\n\tif (!e) return \"\";\n\tlet n = Ll(t);\n\tif (!n) return e;\n\ttry {\n\t\treturn n.createHTML(e);\n\t} catch {\n\t\treturn e;\n\t}\n}\nfunction zl(e) {\n\treturn typeof e == \"string\" ? e : String(e);\n}\n//#endregion\n//#region src/extraction/interactionSecurity.ts\nfunction Bl(e, t, n, r = e.type) {\n\tlet i = Wl(e);\n\tfor (let e of t) Vl(i, e.path, (t, a, o) => {\n\t\tif (e.kind === \"html\") {\n\t\t\tUl(a, o, Rl(Hc(typeof t == \"string\" ? t : \"\", { security: n }), n?.trustedTypesPolicyName));\n\t\t\treturn;\n\t\t}\n\t\tif (typeof t != \"string\") {\n\t\t\tUl(a, o, \"\");\n\t\t\treturn;\n\t\t}\n\t\tlet s = Hl(e.use, i, r);\n\t\tUl(a, o, bc(t, n?.urlPolicy, s) ?? \"\");\n\t});\n\treturn r === \"mediaInteraction\" && (i.allowObjectEmbeds = n?.allowObjectEmbeds === !0), Gl(i);\n}\nfunction Vl(e, t, n, r, i) {\n\tif (t.length === 0) {\n\t\tr !== void 0 && i !== void 0 && n(e, r, i);\n\t\treturn;\n\t}\n\tif (typeof e != \"object\" || !e) return;\n\tlet [a, ...o] = t;\n\tif (a === \"*\") {\n\t\tif (Array.isArray(e)) {\n\t\t\tfor (let t = 0; t < e.length; t += 1) Vl(e[t], o, n, e, t);\n\t\t\treturn;\n\t\t}\n\t\tfor (let [t, r] of Object.entries(e)) Vl(r, o, n, e, t);\n\t\treturn;\n\t}\n\tlet s = e;\n\ta in s && Vl(s[a], o, n, s, a);\n}\nfunction Hl(e, t, n) {\n\tif (e !== \"media-or-object\") return e;\n\tlet r = n === \"mediaInteraction\" && \"mediaElement\" in t ? t.mediaElement : null;\n\treturn r && typeof r == \"object\" && \"type\" in r && r.type === \"object\" ? \"object\" : \"media\";\n}\nfunction Ul(e, t, n) {\n\tif (Array.isArray(e) && typeof t == \"number\") {\n\t\te[t] = n;\n\t\treturn;\n\t}\n\te[String(t)] = n;\n}\nfunction Wl(e) {\n\tif (Array.isArray(e)) return e.map((e) => Wl(e));\n\tif (e && typeof e == \"object\") {\n\t\tlet t = Object.getPrototypeOf(e);\n\t\treturn t !== Object.prototype && t !== null ? e : Object.fromEntries(Object.entries(e).map(([e, t]) => [e, Wl(t)]));\n\t}\n\treturn e;\n}\nfunction Gl(e) {\n\tif (!e || typeof e != \"object\" || Object.isFrozen(e)) return e;\n\tlet t = Object.getPrototypeOf(e);\n\tif (!Array.isArray(e) && t !== Object.prototype && t !== null) return e;\n\tObject.freeze(e);\n\tfor (let t of Object.values(e)) Gl(t);\n\treturn e;\n}\n//#endregion\n//#region src/extraction/interactionExtractionPipeline.ts\nfunction Kl({ document: e, extractionRegistry: t, declarations: n, config: r, sessionGuid: i }) {\n\tlet a = Yl(n), o = e.findExtractionElements(Jl(t)), s = [];\n\tfor (let e of o) {\n\t\tlet n = Pl(e.element, e.responseIdentifier, e.contextRoot, a, r, i), o = t.extract(e.element, n);\n\t\tif (!o.success) throw o.error;\n\t\tlet c = o.extractor, l = c?.outputType ?? e.normalizedType, u = {\n\t\t\t...o.data,\n\t\t\ttype: l,\n\t\t\tresponseId: e.responseIdentifier\n\t\t}, d = t.getDeliveryFieldsForType(e.normalizedType), f = c.delivery?.fields ?? [];\n\t\ts.push(Bl(u, ql(d, f), r.security, e.normalizedType));\n\t}\n\treturn Object.freeze(s);\n}\nfunction ql(e, t) {\n\tlet n = /* @__PURE__ */ new Map();\n\tfor (let r of [...t, ...e]) n.set(JSON.stringify(r.path), r);\n\treturn [...n.values()];\n}\nfunction Jl(e) {\n\tlet t = /* @__PURE__ */ new Set();\n\tfor (let n of e.getExtractors()) for (let e of n.elementTypes) t.add(e);\n\treturn [...t];\n}\nfunction Yl(e) {\n\tlet t = /* @__PURE__ */ new Map();\n\tfor (let n of Object.values(e)) t.set(n.identifier, {\n\t\tidentifier: n.identifier,\n\t\tcardinality: n.cardinality,\n\t\tbaseType: n.baseType\n\t});\n\treturn t;\n}\n//#endregion\n//#region src/pnp/applyPnp.ts\nvar Xl = \"data-qti-colorscheme\", Zl = \"data-qti-magnification\";\nfunction Ql(e, t) {\n\tlet n = t?.display?.colorScheme;\n\t!n || n === \"default\" ? e.removeAttribute(Xl) : e.setAttribute(Xl, n);\n\tlet r = t?.display?.magnification;\n\tr !== void 0 && Number.isFinite(r) && r > 0 ? (e.setAttribute(Zl, String(r)), e.style?.setProperty?.(\"--qti-magnification\", String(r))) : (e.removeAttribute(Zl), e.style?.removeProperty?.(\"--qti-magnification\"));\n}\n//#endregion\n//#region src/catalog/catalogExtractor.ts\nfunction $l(e) {\n\tif (!e.trim()) return /* @__PURE__ */ new Map();\n\tlet t = s(`<root>${e}</root>`, { lowerCaseTagName: !0 }).querySelector(\"qti-catalog-info\");\n\treturn t ? nu(t) : /* @__PURE__ */ new Map();\n}\nfunction eu(e) {\n\tlet t = s(e, { lowerCaseTagName: !0 }).querySelector(\"qti-catalog-info\");\n\treturn t ? nu(t) : /* @__PURE__ */ new Map();\n}\nfunction tu(e, t) {\n\tlet n = new Map(e);\n\tfor (let [e, r] of t) n.set(e, r);\n\treturn n;\n}\nfunction nu(e) {\n\tlet t = /* @__PURE__ */ new Map();\n\tfor (let n of e.querySelectorAll(\"qti-catalog\")) {\n\t\tlet e = n.getAttribute(\"id\") ?? n.getAttribute(\"identifier\");\n\t\tif (!e) continue;\n\t\tlet r = [];\n\t\tfor (let e of n.querySelectorAll(\"qti-card\")) {\n\t\t\tlet t = e.getAttribute(\"support\") ?? e.getAttribute(\"usage\");\n\t\t\tfor (let n of ru(e, t ?? void 0)) r.push(n);\n\t\t}\n\t\tr.length > 0 && t.set(e, { entries: r });\n\t}\n\tfor (let n of e.querySelectorAll(\"qti-card\")) {\n\t\tlet e = n.getAttribute(\"identifier\");\n\t\tif (!e) continue;\n\t\tlet r = ru(n);\n\t\tif (r.length > 0) {\n\t\t\tlet n = t.get(e);\n\t\t\tn ? n.entries.push(...r) : t.set(e, { entries: r });\n\t\t}\n\t}\n\treturn t;\n}\nfunction ru(e, t) {\n\tlet n = e.querySelectorAll(\"qti-card-entry\"), r = [];\n\tif (n.length > 0) {\n\t\tfor (let e of n) {\n\t\t\tlet n = e.getAttribute(\"usage\") ?? e.getAttribute(\"data-reading-type\") ?? t;\n\t\t\tn && r.push({\n\t\t\t\tusage: n,\n\t\t\t\tlang: iu(e),\n\t\t\t\thtml: au(e)\n\t\t\t});\n\t\t}\n\t\treturn r;\n\t}\n\treturn t && r.push({\n\t\tusage: t,\n\t\tlang: iu(e),\n\t\thtml: au(e)\n\t}), r;\n}\nfunction iu(e) {\n\treturn e.getAttribute(\"xml:lang\") ?? e.getAttribute(\"xmllang\") ?? e.getAttribute(\"lang\") ?? void 0;\n}\nfunction au(e) {\n\tlet t = e.querySelector(\"qti-html-content\"), n = e.querySelector(\"qti-file-href\");\n\treturn t ? t.innerHTML ?? t.text ?? \"\" : n ? n.getAttribute(\"src\") ?? n.text?.trim() ?? \"\" : \"\";\n}\n//#endregion\n//#region src/catalog/catalogLookup.ts\nfunction ou(e, t, n, r) {\n\tlet i = e.get(t);\n\tif (!i) return null;\n\tlet a = i.entries.filter((e) => e.usage === n);\n\tif (a.length === 0) return null;\n\tif (r) {\n\t\tlet e = a.find((e) => e.lang === r);\n\t\tif (e) return e.html;\n\t\tlet t = r.split(\"-\")[0], n = a.find((e) => e.lang && (e.lang === t || e.lang.startsWith(`${t}-`) || r.startsWith(`${e.lang}-`)));\n\t\tif (n) return n.html;\n\t}\n\tlet o = a.find((e) => !e.lang);\n\treturn o ? o.html : a.length === 1 ? a[0].html : null;\n}\n//#endregion\n//#region src/pci/types.ts\nvar su = class extends Error {\n\tconstructor(e, t) {\n\t\tsuper(`PCI module loading is disabled for response '${e}'. Provide a host-controlled moduleResolver before loading '${t}'.`), this.responseIdentifier = e, this.authoredPath = t, this.name = \"PciModuleResolverRequiredError\";\n\t}\n}, cu = class extends Error {\n\tconstructor(e, t, n) {\n\t\tsuper(t ? `PCI module failed to load from '${e}' and fallback '${t}'` : `PCI module failed to load from '${e}'`), this.primaryPath = e, this.fallbackPath = t, this.name = \"PciLoadError\", n && Object.defineProperty(this, \"cause\", {\n\t\t\tvalue: n,\n\t\t\twritable: !0,\n\t\t\tconfigurable: !0\n\t\t});\n\t}\n}, lu = class {\n\tconstructor(e, t = {}) {\n\t\tthis.module = null, this.destroyed = !1, this.loadGeneration = 0, this._response = null, this._hasResponse = !1, this._moduleOwnsResponse = !1, this._restorePending = !1, this._responseChangeListeners = /* @__PURE__ */ new Set(), this._remountRequestListeners = /* @__PURE__ */ new Set(), this.data = e, this.baseUrl = typeof t == \"string\" ? t : t.baseUrl ?? \"\", this.moduleResolver = typeof t == \"string\" ? void 0 : t.moduleResolver;\n\t}\n\tonResponseChange(e) {\n\t\treturn this._responseChangeListeners.add(e), () => this._responseChangeListeners.delete(e);\n\t}\n\tonRemountRequest(e) {\n\t\treturn this._remountRequestListeners.add(e), () => this._remountRequestListeners.delete(e);\n\t}\n\tasync load() {\n\t\tif (this.destroyed) throw Error(\"Cannot load a destroyed PciHost\");\n\t\tif (!this.moduleResolver) throw new su(this.data.responseIdentifier, this.data.primaryPath);\n\t\tlet e = ++this.loadGeneration, t = this.resolveUrl(this.data.primaryPath);\n\t\ttry {\n\t\t\tlet n = await this.resolveModule(t, this.data.primaryPath, \"primary\");\n\t\t\tthis.adoptResolvedModule(n, this.data.primaryPath, e);\n\t\t\treturn;\n\t\t} catch (t) {\n\t\t\tif (!this.isCurrentLoad(e)) throw t;\n\t\t\tif (!this.data.fallbackPath) throw new cu(this.data.primaryPath, void 0, t);\n\t\t}\n\t\tlet n = this.resolveUrl(this.data.fallbackPath);\n\t\ttry {\n\t\t\tlet t = await this.resolveModule(n, this.data.fallbackPath, \"fallback\");\n\t\t\tthis.adoptResolvedModule(t, this.data.fallbackPath, e);\n\t\t} catch (t) {\n\t\t\tthrow this.isCurrentLoad(e) ? new cu(this.data.primaryPath, this.data.fallbackPath, t) : t;\n\t\t}\n\t}\n\tinitialize(e) {\n\t\tif (!this.module) return;\n\t\tlet t = {\n\t\t\tonReady: () => {},\n\t\t\tonResponseChange: (e) => {\n\t\t\t\tthis._response = e, this._hasResponse = !0, this._moduleOwnsResponse = !0, this._restorePending = !1;\n\t\t\t\tfor (let t of this._responseChangeListeners) t(this.data.responseIdentifier, e);\n\t\t\t}\n\t\t};\n\t\ttry {\n\t\t\tthis.module.initialize(e, this.data.config, t), this._hasResponse && this.module.setResponse(this._response), this._restorePending = !1;\n\t\t} catch (e) {\n\t\t\tlet t = this.module;\n\t\t\tthrow this.module = null, t.destroy(), e;\n\t\t}\n\t}\n\tgetResponse() {\n\t\treturn this._restorePending ? this._response : this.module ? this.module.getResponse() : this._response;\n\t}\n\tofferResponse(e) {\n\t\treturn !this._moduleOwnsResponse && (this._response = e, this._hasResponse = !0, this.module && (this.module.setResponse(e), this._restorePending = !1), !0);\n\t}\n\trestore(e) {\n\t\tif (this._response = e, this._hasResponse = !0, this._moduleOwnsResponse = !1, this.module) {\n\t\t\tif (this._remountRequestListeners.size === 0) {\n\t\t\t\tthis.module.setResponse(e);\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tthis._restorePending = !0;\n\t\t\tfor (let e of this._remountRequestListeners) e();\n\t\t}\n\t}\n\tasync remount(e) {\n\t\tif (this.destroyed) throw Error(\"Cannot remount a destroyed PciHost\");\n\t\tthis.module?.destroy(), this.module = null, await this.load(), this.initialize(e);\n\t}\n\tdisable() {\n\t\tthis.module?.disable();\n\t}\n\tenable() {\n\t\tthis.module?.enable();\n\t}\n\tdestroy() {\n\t\tthis.destroyed = !0, this.loadGeneration++, this.module?.destroy(), this.module = null, this._responseChangeListeners.clear(), this._remountRequestListeners.clear();\n\t}\n\tresolveModule(e, t, n) {\n\t\treturn Promise.resolve(this.moduleResolver(e, {\n\t\t\tauthoredPath: t,\n\t\t\tkind: n,\n\t\t\tresponseIdentifier: this.data.responseIdentifier,\n\t\t\tcustomInteractionTypeIdentifier: this.data.customInteractionTypeIdentifier\n\t\t}));\n\t}\n\tresolveUrl(e) {\n\t\tif (/^[a-z][a-z\\d+.-]*:/i.test(e) || e.startsWith(\"//\") || e.startsWith(\"/\") || !this.baseUrl) return e;\n\t\tlet t = this.baseUrl.endsWith(\"/\") ? this.baseUrl : this.baseUrl + \"/\";\n\t\ttry {\n\t\t\treturn new URL(e, t).href;\n\t\t} catch {\n\t\t\treturn t + e;\n\t\t}\n\t}\n\tisCurrentLoad(e) {\n\t\treturn !this.destroyed && e === this.loadGeneration;\n\t}\n\tadoptResolvedModule(e, t, n) {\n\t\tlet r = this.extractPciInterface(e, t);\n\t\tif (!this.isCurrentLoad(n)) throw r.destroy(), Error(\"PciHost was destroyed before its module finished loading\");\n\t\tthis.module?.destroy(), this.module = r, this._moduleOwnsResponse = !1;\n\t}\n\textractPciInterface(e, t) {\n\t\tlet n = e?.default ?? e?.getInstance?.() ?? e, r = [\n\t\t\t\"initialize\",\n\t\t\t\"getResponse\",\n\t\t\t\"setResponse\",\n\t\t\t\"disable\",\n\t\t\t\"enable\",\n\t\t\t\"destroy\"\n\t\t].filter((e) => typeof n?.[e] != \"function\");\n\t\tif (r.length > 0) throw Error(`PCI module at '${t}' does not export a valid PciModule interface; missing: ${r.join(\", \")}`);\n\t\treturn n;\n\t}\n}, uu = {\n\tstringValue: \"string\",\n\tfloatValue: \"float\",\n\tintegerValue: \"integer\",\n\tleftDigits: \"integer\",\n\trightDigits: \"integer\",\n\tndp: \"integer\",\n\tnsf: \"integer\",\n\texponent: \"integer\"\n};\nfunction du(e) {\n\tlet t = e.toUpperCase().charCodeAt(0);\n\treturn t >= 48 && t <= 57 ? t - 48 : t >= 65 && t <= 90 ? t - 65 + 10 : -1;\n}\nfunction fu(e, t) {\n\tlet n = 0;\n\tfor (let r of e) {\n\t\tlet e = du(r);\n\t\tif (e < 0 || e >= t) return null;\n\t\tn = n * t + e;\n\t}\n\treturn n;\n}\nfunction pu(e, t) {\n\tif (!Number.isInteger(t) || t < 2 || t > 36) return {\n\t\tvalid: !1,\n\t\tvalue: null,\n\t\tintegerValue: null,\n\t\tleftDigits: null,\n\t\trightDigits: null,\n\t\tndp: null,\n\t\tnsf: null,\n\t\texponent: null\n\t};\n\tlet n = e.trim(), r = t === 10 ? /^([+-]?)([0-9]*)(?:\\.([0-9]*))?(?:[eE]([+-]?\\d+))?$/.exec(n) : /^([+-]?)([0-9A-Za-z]*)(?:\\.([0-9A-Za-z]*))?$/.exec(n), i = r?.[2] ?? \"\", a = r?.[3] ?? \"\";\n\tif (!r || i.length + a.length === 0) return {\n\t\tvalid: !1,\n\t\tvalue: null,\n\t\tintegerValue: null,\n\t\tleftDigits: null,\n\t\trightDigits: null,\n\t\tndp: null,\n\t\tnsf: null,\n\t\texponent: null\n\t};\n\tlet o = fu(i || \"0\", t), s = fu(a || \"0\", t);\n\tif (o === null || s === null) return {\n\t\tvalid: !1,\n\t\tvalue: null,\n\t\tintegerValue: null,\n\t\tleftDigits: null,\n\t\trightDigits: null,\n\t\tndp: null,\n\t\tnsf: null,\n\t\texponent: null\n\t};\n\tlet c = r[4] === void 0 ? null : Number.parseInt(r[4], 10), l = r[1] === \"-\" ? -1 : 1, u = o + s / t ** a.length, d = t === 10 ? Number(n) : l * u * t ** (c ?? 0);\n\tif (!Number.isFinite(d)) return {\n\t\tvalid: !1,\n\t\tvalue: null,\n\t\tintegerValue: null,\n\t\tleftDigits: null,\n\t\trightDigits: null,\n\t\tndp: null,\n\t\tnsf: null,\n\t\texponent: c\n\t};\n\tlet f = `${i}${a}`.replace(/^0+/, \"\"), p = f.length > 0 ? f.length : 1;\n\treturn {\n\t\tvalid: !0,\n\t\tvalue: d,\n\t\tintegerValue: a.length === 0 && c === null ? d : null,\n\t\tleftDigits: i.length,\n\t\trightDigits: a.length,\n\t\tndp: Math.max(0, a.length - (c ?? 0)),\n\t\tnsf: p,\n\t\texponent: c\n\t};\n}\nfunction mu(e, t = 10) {\n\tlet n = pu(e, t);\n\treturn {\n\t\tstringValue: e,\n\t\tfloatValue: n.value,\n\t\tintegerValue: n.integerValue,\n\t\tleftDigits: n.leftDigits,\n\t\trightDigits: n.rightDigits,\n\t\tndp: n.ndp,\n\t\tnsf: n.nsf,\n\t\texponent: n.exponent\n\t};\n}\n//#endregion\n//#region src/core/Player.ts\nfunction hu(e) {\n\tlet t = new _u(e, void 0, { compileOnly: !0 });\n\ttry {\n\t\treturn t.capturePreparedDefinition();\n\t} finally {\n\t\tt.destroy();\n\t}\n}\nfunction gu(e, t, n = !1) {\n\treturn new _u(e, t, { skipTemplateProcessing: n });\n}\nvar _u = class {\n\tconstructor(i, a, s = {}) {\n\t\tthis.interactionDataCache = null, this.warnedImpliedZeroMaxScore = !1, this.responseProcessingProgram = null, this.templateProcessingProgram = null, this.outcomeProcessingProgram = null, this._catalogIndex = /* @__PURE__ */ new Map(), this._stimulusCatalogIndexes = /* @__PURE__ */ new Map(), this._pciHosts = /* @__PURE__ */ new Map(), this._pnpChangeListeners = /* @__PURE__ */ new Set(), this.lifecycleStatus = \"initial\", this.accumulatedDurationMs = 0, this.config = i, this.itemXml = i.itemXml ?? \"\", this.role = i.role ?? \"candidate\", this.sessionGuid = yu(), this.sessionStartedAt = Date.now(), this.rng = i.rng ?? (typeof i.seed == \"number\" ? Fs(i.seed) : Math.random), this.mapper = a ? a.mapper : i.elementNameMapper ? i.elementNameMapper : o(this.itemXml) === \"3.0\" ? new r() : new t();\n\t\tlet c = a?.attributeMapper ?? i.attributeNameMapper ?? (this.mapper.version === \"3.0\" ? new n() : new e());\n\t\tif (this.config = {\n\t\t\t...i,\n\t\t\telementNameMapper: this.mapper,\n\t\t\tattributeNameMapper: c\n\t\t}, a ? (this.itemDocument = a.itemDocument, this.decls = bu(a.declarations)) : (this.itemDocument = xl({\n\t\t\titemXml: this.itemXml,\n\t\t\telementNameMapper: this.mapper,\n\t\t\tattributeNameMapper: c,\n\t\t\tsecurity: this.config.security\n\t\t}), this.decls = this.buildDeclarations(), this.ensureBuiltinDeclarations(this.decls)), this.sourceDeclarations = bu(this.decls), this.ctx = new p(this.decls), this.ops = new m(), this.extractionRegistry = this.config.extractionRegistry ?? Os(this.mapper), this.componentRegistry = this.config.componentRegistry ?? _l(), this.i18nProvider = this.config.i18nProvider ?? this.createDefaultI18nProvider(), !this.extractionRegistry.isSealed()) {\n\t\t\tfor (let e of cl()) this.extractionRegistry.register(e.extractor), ks(this.extractionRegistry, e.type, e.delivery);\n\t\t\tthis.extractionRegistry.seal();\n\t\t}\n\t\tlet l = {\n\t\t\telementNameMapper: this.mapper,\n\t\t\tresolveProcessingFragment: this.config.resolveProcessingFragment,\n\t\t\tmaxProcessingFragmentDepth: this.config.processingFragmentLimits?.maxDepth,\n\t\t\tmaxProcessingFragmentCharacters: this.config.processingFragmentLimits?.maxCharacters\n\t\t}, u = a ? null : this.itemDocument.getProcessingElement(\"template\");\n\t\tthis.templateProcessingProgram = a?.templateProcessingProgram ?? (u ? _(u, l) : null), this.templateProcessingProgram && !s.compileOnly && !s.skipTemplateProcessing && this.execTemplateProcessing();\n\t\tlet d = a ? null : this.itemDocument.getProcessingElement(\"response\");\n\t\tthis.responseProcessing = a?.responseProcessing ?? this.itemDocument.describeResponseProcessing(), this.responseProcessingProgram = a?.responseProcessingProgram ?? (d ? g(d, l) : null);\n\t\tlet f = a ? null : this.itemDocument.getProcessingElement(\"outcome\");\n\t\tthis.outcomeProcessingProgram = a?.outcomeProcessingProgram ?? (f ? h(f, l) : null);\n\t\tlet v = a ? null : this.detectQTIVersion();\n\t\tif (v === \"unknown\" ? console.warn(\"[QTI Player] Could not detect QTI version. Assuming QTI 2.2 compatibility.\") : v === \"2.0\" ? console.warn(\"[QTI Player] QTI 2.0 detected. Some features may not be fully supported. QTI 2.2 is recommended.\") : v === \"2.1\" && console.info(\"[QTI Player] QTI 2.1 detected. Using QTI 2.2 compatibility mode with CC2 template support.\"), this._pnp = this.config.pnp, a) this._catalogIndex = a.catalogIndex, this._stimulusCatalogIndexes = a.stimulusCatalogIndexes;\n\t\telse {\n\t\t\tlet e = /* @__PURE__ */ new Map(), t = /* @__PURE__ */ new Map();\n\t\t\tfor (let e of this.config.deliveryContext?.catalogSources ?? []) {\n\t\t\t\tlet n = $l(e.xml);\n\t\t\t\tif (e.scope === \"stimulus\" && e.stimulusIdentifier) {\n\t\t\t\t\tlet t = this._stimulusCatalogIndexes.get(e.stimulusIdentifier) ?? /* @__PURE__ */ new Map();\n\t\t\t\t\tthis._stimulusCatalogIndexes.set(e.stimulusIdentifier, tu(t, n));\n\t\t\t\t} else t = tu(t, n);\n\t\t\t}\n\t\t\tthis.config.catalogXml && (e = tu(e, eu(this.config.catalogXml))), e = tu(e, eu(this.itemXml)), this._catalogIndex = tu(e, t);\n\t\t}\n\t\t!a && this.config.strictQtiCompliance?.enabled && this.validateStrictCompliance();\n\t}\n\tcapturePreparedDefinition() {\n\t\tlet e = this.itemDocument.getAssessmentItemAttribute(\"identifier\")?.trim();\n\t\tif (!e) throw Error(\"AssessmentItemDefinition requires an assessment-item identifier\");\n\t\treturn Object.freeze({\n\t\t\tidentifier: e,\n\t\t\tmapper: this.mapper,\n\t\t\tattributeMapper: this.config.attributeNameMapper,\n\t\t\titemDocument: this.itemDocument,\n\t\t\tdeclarations: bu(this.sourceDeclarations),\n\t\t\tresponseProcessing: this.responseProcessing,\n\t\t\tresponseProcessingProgram: this.responseProcessingProgram,\n\t\t\ttemplateProcessingProgram: this.templateProcessingProgram,\n\t\t\toutcomeProcessingProgram: this.outcomeProcessingProgram,\n\t\t\tcatalogIndex: this._catalogIndex,\n\t\t\tstimulusCatalogIndexes: this._stimulusCatalogIndexes\n\t\t});\n\t}\n\tapplyPnp(e) {\n\t\tthis._rootEl = e, Ql(e, this._pnp);\n\t}\n\tupdatePnp(e) {\n\t\tthis._pnp = vu(this._pnp, e), this._rootEl && Ql(this._rootEl, this._pnp);\n\t\tfor (let e of this._pnpChangeListeners) e(this._pnp);\n\t}\n\tgetPnp() {\n\t\treturn this._pnp;\n\t}\n\tonPnpChange(e) {\n\t\treturn this._pnpChangeListeners.add(e), () => this._pnpChangeListeners.delete(e);\n\t}\n\tgetDeliveryContext() {\n\t\treturn this.config.deliveryContext;\n\t}\n\tgetCatalogEntry(e, t, n, r) {\n\t\tlet i = (r?.stimulusIdentifier ? ou(this._stimulusCatalogIndexes.get(r.stimulusIdentifier) ?? /* @__PURE__ */ new Map(), e, t, n) : null) ?? ou(this._catalogIndex, e, t, n);\n\t\treturn i === null ? null : Su(i) ? bc(i.trim(), this.config.security?.urlPolicy, \"img\") : Rl(this.sanitizeHtmlContent(i), this.config.security?.trustedTypesPolicyName);\n\t}\n\tsanitizeHtmlContent(e) {\n\t\treturn Hc(e, { security: this.config.security });\n\t}\n\tcreatePciHost(e) {\n\t\tlet t = new lu(e, {\n\t\t\tbaseUrl: this.config.pci?.baseUrl,\n\t\t\tmoduleResolver: this.config.pci?.moduleResolver\n\t\t});\n\t\treturn t.onResponseChange((e, t) => {\n\t\t\tif (this.lifecycleStatus !== \"initial\" && this.lifecycleStatus !== \"interacting\") return;\n\t\t\tlet n = this.decls[e];\n\t\t\tn && (n.value = this.coerceToDeclarationValue(n.baseType, n.cardinality, t, n.identifier));\n\t\t}), this._pciHosts.set(e.responseIdentifier, t), t;\n\t}\n\tofferPciResponse(e, t) {\n\t\tthis._pciHosts.get(e)?.offerResponse(t);\n\t}\n\trestorePciResponse(e, t) {\n\t\tthis._pciHosts.get(e)?.restore(t);\n\t}\n\tsyncPciDisabledState() {\n\t\tlet e = this.role !== \"candidate\";\n\t\tfor (let t of this._pciHosts.values()) e ? t.disable() : t.enable();\n\t}\n\tdestroyPciHosts() {\n\t\tfor (let e of this._pciHosts.values()) e.destroy();\n\t\tthis._pciHosts.clear();\n\t}\n\tgetDeclarations() {\n\t\treturn this.decls;\n\t}\n\tsetResponses(e) {\n\t\tthis.applyResponses(e, (e, t) => this.offerPciResponse(e, t));\n\t}\n\trestoreResponses(e) {\n\t\tthis.applyResponses(e, (e, t) => this.restorePciResponse(e, t));\n\t}\n\tapplyResponses(e, t) {\n\t\tfor (let [n, r] of Object.entries(e)) {\n\t\t\tlet e = this.decls[n];\n\t\t\te && (e.value = this.coerceToDeclarationValue(e.baseType, e.cardinality, r, e.identifier), t(n, this.qtiValueToPublic(e.value)));\n\t\t}\n\t}\n\tdestroy() {\n\t\tthis.destroyPciHosts();\n\t}\n\tprocessResponses() {\n\t\treturn this.runResponseProcessing({ finalizeNonAdaptiveAttempt: !0 });\n\t}\n\tsaveItemSession() {\n\t\treturn this.freezeDuration(), this.serializeItemSession();\n\t}\n\trestoreItemSession(e) {\n\t\tthis.sessionGuid = e.sessionGuid, this.interactionDataCache = null, this.lifecycleStatus = e.lifecycleStatus, this.accumulatedDurationMs = Math.max(0, Number(e.duration) || 0), this.sessionStartedAt = Date.now(), this.applySerializedVariables(e.responseVariables), this.applySerializedVariables(e.outcomeVariables), this.applySerializedVariables(e.templateVariables), this.applySerializedVariables(e.contextVariables), this.updateDuration();\n\t}\n\tgetLifecycleStatus() {\n\t\treturn this.lifecycleStatus;\n\t}\n\tactivateAttempt() {\n\t\tthis.lifecycleStatus === \"suspended\" && (this.lifecycleStatus = \"interacting\");\n\t}\n\tsuspendAttempt() {\n\t\treturn this.runItemSessionAction({ action: \"suspendAttempt\" });\n\t}\n\tendAttempt(e = {}) {\n\t\treturn this.runItemSessionAction({\n\t\t\taction: \"endAttempt\",\n\t\t\t...e\n\t\t});\n\t}\n\tscoreAttempt() {\n\t\treturn this.runItemSessionAction({ action: \"scoreAttempt\" });\n\t}\n\tnewTemplate(e = {}) {\n\t\treturn this.runItemSessionAction({\n\t\t\taction: \"newTemplate\",\n\t\t\t...e\n\t\t});\n\t}\n\trunItemSessionAction(e) {\n\t\tswitch (e.action) {\n\t\t\tcase \"suspendAttempt\": return this.runSuspendAttemptAction();\n\t\t\tcase \"endAttempt\": return this.runEndAttemptAction(e);\n\t\t\tcase \"scoreAttempt\": return this.runScoreAttemptAction();\n\t\t\tcase \"newTemplate\": return this.runNewTemplateAction(e);\n\t\t\tcase \"submitAttempt\": return this.runSubmitAttemptAction(e.countAttempt ?? !0);\n\t\t}\n\t}\n\trunSuspendAttemptAction() {\n\t\tlet e = this.validateResponses(this.getResponses());\n\t\tthis.lifecycleStatus = \"suspended\";\n\t\tlet t = this.saveItemSession();\n\t\treturn this.createItemSessionActionResult(\"suspendAttempt\", t, { validation: e });\n\t}\n\trunEndAttemptAction(e) {\n\t\tlet t = e.validateResponses ?? !1 ? this.validateResponses(this.getResponses()) : void 0;\n\t\tif (t && !t.valid) return this.createItemSessionActionResult(\"endAttempt\", this.saveItemSession(), { validation: t });\n\t\tlet n = this.isAdaptive() ? this.runAdaptiveSubmitAttempt(e.countAttempt ?? !0) : this.runResponseProcessing({\n\t\t\tfinalizeNonAdaptiveAttempt: !0,\n\t\t\tcountAttempt: e.countAttempt ?? !0\n\t\t});\n\t\treturn this.lifecycleStatus = n.completed ? \"closed\" : \"interacting\", this.createItemSessionActionResult(\"endAttempt\", this.saveItemSession(), {\n\t\t\tcompleted: n.completed,\n\t\t\tvalidation: t,\n\t\t\tscoring: n\n\t\t});\n\t}\n\trunScoreAttemptAction() {\n\t\tlet e = this.runResponseProcessing({ finalizeNonAdaptiveAttempt: !1 });\n\t\treturn this.createItemSessionActionResult(\"scoreAttempt\", this.saveItemSession(), {\n\t\t\tcompleted: e.completed,\n\t\t\tscoring: e\n\t\t});\n\t}\n\trunNewTemplateAction(e) {\n\t\treturn this.resetOutcomesToDefault(), (e.resetResponses ?? !0) && this.resetResponsesToDefault(), this.resetTemplatesToDefault(), this.ctx.setValue(\"completionStatus\", w(\"identifier\", \"single\", \"not_attempted\")), this.ctx.setValue(\"numAttempts\", w(\"integer\", \"single\", 0)), this.execTemplateProcessing(), this.lifecycleStatus = \"initial\", this.accumulatedDurationMs = 0, this.sessionStartedAt = Date.now(), this.updateDuration(), this.createItemSessionActionResult(\"newTemplate\", this.serializeItemSession());\n\t}\n\trunSubmitAttemptAction(e) {\n\t\tlet t = this.runAdaptiveSubmitAttempt(e);\n\t\treturn this.createItemSessionActionResult(\"submitAttempt\", this.saveItemSession(), {\n\t\t\tcompleted: t.completed,\n\t\t\tscoring: t\n\t\t});\n\t}\n\tcreateItemSessionActionResult(e, t, n = {}) {\n\t\treturn {\n\t\t\taction: e,\n\t\t\tlifecycleStatus: this.lifecycleStatus,\n\t\t\tcompletionStatus: this.getCompletionStatus(),\n\t\t\tnumAttempts: this.getNumAttempts(),\n\t\t\tduration: t.duration,\n\t\t\tcompleted: n.completed ?? this.isCompleted(),\n\t\t\tsessionState: t,\n\t\t\tvalidation: n.validation,\n\t\t\tscoring: n.scoring\n\t\t};\n\t}\n\tgetSecurityConfig() {\n\t\treturn this.config.security;\n\t}\n\tgetTrustedTypesPolicyName() {\n\t\treturn this.config.security?.trustedTypesPolicyName;\n\t}\n\tgetI18nProvider() {\n\t\treturn this.i18nProvider;\n\t}\n\tgetAttrMapped(e, t) {\n\t\tif (this.config.attributeNameMapper) {\n\t\t\tlet n = this.config.attributeNameMapper.toNative(t), r = e.getAttribute(n);\n\t\t\tif (r !== null) return r;\n\t\t}\n\t\treturn C(e, t);\n\t}\n\tcreateDefaultI18nProvider() {\n\t\treturn {\n\t\t\tgetLocale: () => \"en-US\",\n\t\t\tsetLocale: () => {},\n\t\t\tt: (e) => e,\n\t\t\tplural: (e) => e,\n\t\t\tformatNumber: (e) => e.toString(),\n\t\t\tformatDate: (e) => e.toISOString()\n\t\t};\n\t}\n\tdetectQTIVersion() {\n\t\treturn this.itemDocument.detectVersion();\n\t}\n\tvalidateStrictCompliance() {\n\t\tlet e = this.config.strictQtiCompliance;\n\t\tif (!e?.enabled) return;\n\t\tlet t = this.detectQTIVersion();\n\t\tif (t !== \"2.2\") {\n\t\t\tlet n = `[QTI Player] Strict compliance enabled but item version is ${t}, not 2.2`;\n\t\t\tif (e.rejectUnknownExtensions) throw Error(n);\n\t\t\te.logDeviations !== !1 && console.warn(n);\n\t\t}\n\t}\n\tresetOutcomesToDefault() {\n\t\tfor (let e of Object.values(this.decls)) e.__kind === \"outcome\" && e.identifier !== \"numAttempts\" && e.identifier !== \"completionStatus\" && e.identifier !== \"duration\" && this.ctx.resetToDefault(e.identifier);\n\t}\n\tresetResponsesToDefault() {\n\t\tfor (let e of Object.values(this.decls)) e.__kind === \"response\" && (this.ctx.resetToDefault(e.identifier), this.restorePciResponse(e.identifier, e.value.kind === \"value\" ? e.value.value : null));\n\t}\n\tresetTemplatesToDefault() {\n\t\tfor (let e of Object.values(this.decls)) e.isTemplate && this.ctx.resetToDefault(e.identifier);\n\t}\n\twarnOnceOnImpliedZeroMaxScore(e) {\n\t\tthis.warnedImpliedZeroMaxScore || this.decls.MAXSCORE?.impliedNumericDefault && e.MAXSCORE === 0 && (this.warnedImpliedZeroMaxScore = !0, console.warn(`[QTI Player] MAXSCORE is 0 for item \"${this.itemDocument.getAssessmentItemAttribute(\"identifier\") ?? \"unknown\"}\": its outcomeDeclaration has no <defaultValue>, so QTI initializes it to 0 and response processing never assigned it. Declare <defaultValue> on the MAXSCORE outcomeDeclaration to score against a real maximum.`));\n\t}\n\trunResponseProcessing(e) {\n\t\tif (this.updateDuration(), this.resetOutcomesToDefault(), this.responseProcessing.present && (this.responseProcessing.hasStatements ? this.execResponseProcessingProgram() : this.responseProcessing.template && this.execResponseProcessingTemplate(this.responseProcessing.template)), this.execOutcomeProcessingProgram(), !this.isAdaptive() && e.finalizeNonAdaptiveAttempt && (this.ctx.setValue(\"completionStatus\", w(\"identifier\", \"single\", \"completed\")), e.countAttempt ?? !0)) {\n\t\t\tlet e = this.getNumAttempts();\n\t\t\tthis.ctx.setValue(\"numAttempts\", w(\"integer\", \"single\", e + 1));\n\t\t}\n\t\tlet t = this.collectOutcomes();\n\t\treturn this.warnOnceOnImpliedZeroMaxScore(t), {\n\t\t\tscore: Number(t.SCORE ?? 0),\n\t\t\tmaxScore: Number(t.MAXSCORE ?? 1),\n\t\t\tcompleted: (t.completionStatus ?? \"not_attempted\") === \"completed\" || !this.isAdaptive() && e.finalizeNonAdaptiveAttempt,\n\t\t\toutcomeValues: t,\n\t\t\tmodalFeedback: this.getModalFeedback(t)\n\t\t};\n\t}\n\tgetItemBodyHtml() {\n\t\tlet e = this.itemDocument.serializeItemBodyChildren();\n\t\treturn e ? this.renderHtmlContent(e) : \"\";\n\t}\n\tgetRubrics(e = {}) {\n\t\tlet t = this.role, n = this.itemDocument.readRubricBlocks();\n\t\tif (n.length === 0) return [];\n\t\tlet r = [];\n\t\tfor (let i of n) {\n\t\t\tlet { scope: n } = i;\n\t\t\tif (e.scope && e.scope !== \"all\" && n !== e.scope) continue;\n\t\t\tlet a = [...i.view];\n\t\t\tif (a.length > 0 && t && !a.includes(t)) continue;\n\t\t\tlet o = Rl(Hc(this.renderPrintedVariables(i.content), { security: this.config.security }), this.config.security?.trustedTypesPolicyName);\n\t\t\tr.push({\n\t\t\t\tview: a,\n\t\t\t\thtml: o,\n\t\t\t\tscope: n,\n\t\t\t\tuse: i.use\n\t\t\t});\n\t\t}\n\t\treturn r;\n\t}\n\tgetComponentRegistry() {\n\t\treturn this.componentRegistry;\n\t}\n\tgetExtractionRegistry() {\n\t\treturn this.extractionRegistry;\n\t}\n\tgetInteractionData() {\n\t\treturn this.interactionDataCache || (this.interactionDataCache = Kl({\n\t\t\tdocument: this.itemDocument,\n\t\t\textractionRegistry: this.extractionRegistry,\n\t\t\tdeclarations: this.decls,\n\t\t\tconfig: this.config,\n\t\t\tsessionGuid: this.sessionGuid\n\t\t})), this.interactionDataCache;\n\t}\n\tgetInteractions() {\n\t\treturn this.getInteractionData().map((e) => ({\n\t\t\t...e,\n\t\t\tresponseIdentifier: e.responseId\n\t\t}));\n\t}\n\tgetResponseInteractions() {\n\t\treturn this.getInteractions().filter((e) => e.type !== \"endAttemptInteraction\");\n\t}\n\tgetHintEndAttemptIdentifiers() {\n\t\treturn this.getInteractions().filter((e) => e.type === \"endAttemptInteraction\" && e.countAttempt === !1).map((e) => e.responseIdentifier);\n\t}\n\tgetResponseIdentifiers() {\n\t\treturn this.getResponseInteractions().map((e) => e.responseIdentifier);\n\t}\n\tisAdaptive() {\n\t\treturn (this.itemDocument.getAssessmentItemAttribute(\"adaptive\") || \"\").toLowerCase() === \"true\";\n\t}\n\tgetNumAttempts() {\n\t\treturn Math.max(0, Math.floor(oe(this.ctx.getValue(\"numAttempts\")) || 0));\n\t}\n\tgetCompletionStatus() {\n\t\treturn (se(this.ctx.getValue(\"completionStatus\")) || \"\").trim() || \"not_attempted\";\n\t}\n\tisCompleted() {\n\t\treturn this.getCompletionStatus() === \"completed\";\n\t}\n\trunAdaptiveSubmitAttempt(e = !0) {\n\t\tif (this.isCompleted()) throw Error(\"Cannot submit: item is already completed\");\n\t\tif (this.isAdaptive() && e) {\n\t\t\tlet e = this.getNumAttempts() + 1;\n\t\t\tthis.ctx.setValue(\"numAttempts\", w(\"integer\", \"single\", e)), this.getCompletionStatus() === \"not_attempted\" && this.ctx.setValue(\"completionStatus\", w(\"identifier\", \"single\", \"unknown\"));\n\t\t}\n\t\tlet t = this.processResponses(), n = this.getCompletionStatus(), r = n === \"completed\", i = this.isAdaptive() ? !r : !1;\n\t\treturn {\n\t\t\t...t,\n\t\t\tcompleted: r,\n\t\t\tnumAttempts: this.getNumAttempts(),\n\t\t\tcompletionStatus: n,\n\t\t\tcanContinue: i\n\t\t};\n\t}\n\tgetResponses() {\n\t\tlet e = {};\n\t\tfor (let t of Object.values(this.decls)) {\n\t\t\tif (t.__kind !== \"response\") continue;\n\t\t\tlet n = this._pciHosts.get(t.identifier);\n\t\t\tif (n) {\n\t\t\t\tlet e = n.getResponse();\n\t\t\t\tt.value = this.coerceToDeclarationValue(t.baseType, t.cardinality, e, t.identifier);\n\t\t\t}\n\t\t\te[t.identifier] = this.qtiValueToPublic(t.value);\n\t\t}\n\t\treturn e;\n\t}\n\tgetCorrectResponse(e) {\n\t\tlet t = this.decls[e];\n\t\tif (!t || t.__kind !== \"response\") return;\n\t\tlet n = t;\n\t\tif (n.correctResponse && n.correctResponse.kind === \"value\") return this.qtiValueToPublic(n.correctResponse);\n\t}\n\tgetCorrectResponses() {\n\t\tlet e = {};\n\t\tfor (let t of Object.values(this.decls)) {\n\t\t\tif (t.__kind !== \"response\") continue;\n\t\t\tlet n = t;\n\t\t\t!n.correctResponse || n.correctResponse.kind !== \"value\" || (e[t.identifier] = this.qtiValueToPublic(n.correctResponse));\n\t\t}\n\t\treturn e;\n\t}\n\tgetTemplateVariables() {\n\t\tlet e = {};\n\t\tfor (let t of Object.values(this.decls)) t.isTemplate && (e[t.identifier] = this.qtiValueToPublic(t.value));\n\t\treturn e;\n\t}\n\tsetTemplateVariables(e) {\n\t\tfor (let [t, n] of Object.entries(e)) {\n\t\t\tlet e = this.decls[t];\n\t\t\te?.isTemplate && (e.value = this.coerceToDeclarationValue(e.baseType, e.cardinality, n, e.identifier));\n\t\t}\n\t}\n\tgetSessionState() {\n\t\tlet e = {};\n\t\tfor (let t of Object.values(this.decls)) e[t.identifier] = this.qtiValueToPublic(t.value);\n\t\treturn e;\n\t}\n\tvalidateResponses(e) {\n\t\tlet t = this.getInteractions(), n = {}, r = [];\n\t\tfor (let i of t) {\n\t\t\tlet t = i.responseIdentifier, a = this.decls[t], o = e[t], s = (e) => e == null ? !1 : typeof e != \"string\" || (i.type === \"extendedTextInteraction\" && i.format === \"xhtml\" ? e.replace(/<[^>]*>/g, \"\").replace(/&nbsp;|&#160;/gi, \" \") : e).trim().length > 0, c = [\n\t\t\t\t...i.choices ?? [],\n\t\t\t\t...i.gapTexts ?? [],\n\t\t\t\t...i.gapImages ?? [],\n\t\t\t\t...i.sourceSet ?? [],\n\t\t\t\t...i.targetSet ?? [],\n\t\t\t\t...i.associableHotspots ?? []\n\t\t\t], l = Math.max(0, Number(i.minChoices ?? 0), Number(i.minAssociations ?? 0), Number(i.minStrings ?? 0), Number(i.minPlays ?? 0)), u = i.type !== \"endAttemptInteraction\" && (l > 0 || c.some((e) => Number(e.matchMin ?? 0) > 0)), d = !u;\n\t\t\tif (i.type === \"mediaInteraction\" && u) {\n\t\t\t\tlet e = Number(i.minPlays || 0);\n\t\t\t\td = Number(o || 0) >= e;\n\t\t\t} else if (u) {\n\t\t\t\tif (Array.isArray(o)) {\n\t\t\t\t\tlet e = o.filter(s);\n\t\t\t\t\td = e.length > 0;\n\t\t\t\t\tlet t = Math.max(Number(i.minChoices ?? 0), Number(i.minAssociations ?? 0), Number(i.minStrings ?? 0));\n\t\t\t\t\td && t > 0 && (d = e.length >= t);\n\t\t\t\t\tfor (let e of c) {\n\t\t\t\t\t\tlet t = Number(e.matchMin || 0);\n\t\t\t\t\t\tif (t > 0 && o.filter((t) => {\n\t\t\t\t\t\t\tlet n = t.split(\" \");\n\t\t\t\t\t\t\treturn n[0] === e.identifier || n[1] === e.identifier;\n\t\t\t\t\t\t}).length < t) {\n\t\t\t\t\t\t\td = !1;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t} else d = a?.cardinality === \"record\" ? s(o && typeof o == \"object\" ? o.stringValue : void 0) : s(o);\n\t\t\t}\n\t\t\tlet f = [], p = [];\n\t\t\ta && (a.cardinality === \"multiple\" || a.cardinality === \"ordered\" ? o == null || Array.isArray(o) || f.push(`Expected an array for ${a.cardinality} response '${t}'`) : a.cardinality === \"record\" ? o == null || typeof o == \"object\" && !Array.isArray(o) || f.push(`Expected an object for record response '${t}'`) : Array.isArray(o) && f.push(`Expected a single value for response '${t}'`)), i.type === \"extendedTextInteraction\" && Array.isArray(o) && Number(i.maxStrings ?? 0) > 0 && o.filter(s).length > Number(i.maxStrings) && f.push(`Response '${t}' exceeds maxStrings=${i.maxStrings}`);\n\t\t\tlet m = f.length === 0;\n\t\t\tn[t] = {\n\t\t\t\tresponseId: t,\n\t\t\t\tinteractionType: i.type,\n\t\t\t\trequired: u,\n\t\t\t\tcomplete: d,\n\t\t\t\tvalid: m,\n\t\t\t\terrors: f,\n\t\t\t\twarnings: p\n\t\t\t};\n\t\t\tfor (let e of f) r.push({\n\t\t\t\tresponseId: t,\n\t\t\t\tcode: \"invalid_shape\",\n\t\t\t\tmessage: e,\n\t\t\t\tseverity: \"error\"\n\t\t\t});\n\t\t}\n\t\treturn {\n\t\t\tvalid: Object.values(n).every((e) => e.valid),\n\t\t\tentries: n,\n\t\t\tissues: r\n\t\t};\n\t}\n\tgetProgress(e) {\n\t\tlet t = this.validateResponses(e), n = Object.values(t.entries).filter((e) => e.required), r = n.filter((e) => e.complete).length, i = n.length;\n\t\treturn {\n\t\t\ttotal: i,\n\t\t\tanswered: r,\n\t\t\tunanswered: Math.max(0, i - r)\n\t\t};\n\t}\n\tcanSubmitResponses(e) {\n\t\tlet t = this.validateResponses(e), n = Object.values(t.entries).filter((e) => e.required);\n\t\treturn t.valid && n.every((e) => e.complete);\n\t}\n\tisAttempted(e) {\n\t\tfor (let t of this.getResponseInteractions()) {\n\t\t\tlet n = e[t.responseIdentifier], r = (e) => e == null ? !1 : typeof e != \"string\" || (t.type === \"extendedTextInteraction\" && t.format === \"xhtml\" ? e.replace(/<[^>]*>/g, \"\").replace(/&nbsp;|&#160;/gi, \" \") : e).trim().length > 0;\n\t\t\tif (t.type === \"mediaInteraction\") {\n\t\t\t\tif (Number(n || 0) > 0) return !0;\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tif (Array.isArray(n)) {\n\t\t\t\tif (n.some(r)) return !0;\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tif (n && typeof n == \"object\") {\n\t\t\t\tif (Object.values(n).some(r)) return !0;\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tif (r(n)) return !0;\n\t\t}\n\t\treturn !1;\n\t}\n\texecTemplateProcessing() {\n\t\tthis.templateProcessingProgram && ee({\n\t\t\tctx: this.ctx,\n\t\t\tops: this.ops,\n\t\t\trng: this.rng,\n\t\t\tcustomOperators: this.config.customOperators\n\t\t}, this.templateProcessingProgram);\n\t}\n\texecResponseProcessingProgram() {\n\t\tthis.responseProcessingProgram && ee({\n\t\t\tctx: this.ctx,\n\t\t\tops: this.ops,\n\t\t\trng: this.rng,\n\t\t\tcustomOperators: this.config.customOperators\n\t\t}, this.responseProcessingProgram);\n\t}\n\texecOutcomeProcessingProgram() {\n\t\tthis.outcomeProcessingProgram && ee({\n\t\t\tctx: this.ctx,\n\t\t\tops: this.ops,\n\t\t\trng: this.rng,\n\t\t\tcustomOperators: this.config.customOperators\n\t\t}, this.outcomeProcessingProgram);\n\t}\n\texecResponseProcessingTemplate(e) {\n\t\tlet t = e.split(\"/\").pop()?.toLowerCase().replace(/\\.xml$/, \"\");\n\t\tif (!t) {\n\t\t\tconsole.warn(`[QTI Player] Could not extract template name from URL: ${e}`);\n\t\t\treturn;\n\t\t}\n\t\tlet n = () => ae(b({\n\t\t\tctx: this.ctx,\n\t\t\tops: this.ops,\n\t\t\trng: this.rng,\n\t\t\tcustomOperators: this.config.customOperators\n\t\t}, {\n\t\t\tkind: \"expr.match\",\n\t\t\tid: \"fixed-template-match\",\n\t\t\ta: {\n\t\t\t\tkind: \"expr.variable\",\n\t\t\t\tid: \"fixed-template-response\",\n\t\t\t\tidentifier: \"RESPONSE\"\n\t\t\t},\n\t\t\tb: {\n\t\t\t\tkind: \"expr.correct\",\n\t\t\t\tid: \"fixed-template-correct\",\n\t\t\t\tidentifier: \"RESPONSE\"\n\t\t\t}\n\t\t})), r = (e) => {\n\t\t\tthis.ctx.setValue(\"SCORE\", w(\"float\", \"single\", e));\n\t\t}, i = (e, t) => {\n\t\t\tthis.ctx.setValue(e, w(\"identifier\", \"single\", t));\n\t\t}, a = (e) => {\n\t\t\tif (this.ctx.getValue(\"RESPONSE\").kind === \"null\") return 0;\n\t\t\tlet t = b({\n\t\t\t\tctx: this.ctx,\n\t\t\t\tops: this.ops,\n\t\t\t\trng: this.rng,\n\t\t\t\tcustomOperators: this.config.customOperators\n\t\t\t}, {\n\t\t\t\tkind: e ? \"expr.mapResponsePoint\" : \"expr.mapResponse\",\n\t\t\t\tid: e ? \"fixed-template-map-response-point\" : \"fixed-template-map-response\",\n\t\t\t\tidentifier: \"RESPONSE\"\n\t\t\t}), n = oe(t);\n\t\t\treturn Number.isFinite(n) ? n : 0;\n\t\t};\n\t\tswitch (t) {\n\t\t\tcase \"match_correct\":\n\t\t\tcase \"cc2_match\":\n\t\t\t\tr(+!!n());\n\t\t\t\treturn;\n\t\t\tcase \"cc2_match_basic\":\n\t\t\t\tif (n()) {\n\t\t\t\t\tlet e = oe(this.ctx.getValue(\"MAXSCORE\"));\n\t\t\t\t\tthis.ctx.setValue(\"SCORE\", Number.isFinite(e) ? w(\"float\", \"single\", e) : re(\"float\", \"single\")), i(\"FEEDBACKBASIC\", \"correct\");\n\t\t\t\t} else i(\"FEEDBACKBASIC\", \"incorrect\");\n\t\t\t\treturn;\n\t\t\tcase \"match_nothing\":\n\t\t\tcase \"cc2_match_nothing\": {\n\t\t\t\tlet e = ((e) => !e || e.kind === \"null\" ? !0 : e.kind === \"invalid\" ? !1 : e.value === null || e.value === void 0 ? !0 : Array.isArray(e.value) ? e.value.length === 0 : typeof e.value == \"string\" && e.value.trim().length === 0)(this.ctx.getValue(\"RESPONSE\")), t = oe(this.ctx.getValue(\"MAXSCORE\"));\n\t\t\t\tthis.ctx.setValue(\"SCORE\", w(\"float\", \"single\", e ? Number.isFinite(t) ? t : 1 : 0));\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tcase \"map_response\":\n\t\t\t\tr(a(!1));\n\t\t\t\treturn;\n\t\t\tcase \"cc2_map_response\": {\n\t\t\t\tlet e = a(!1);\n\t\t\t\tr(e);\n\t\t\t\tlet t = oe(this.ctx.getValue(\"MAXSCORE\"));\n\t\t\t\ti(\"FEEDBACK\", Number.isFinite(t) && e === t ? \"correct\" : \"incorrect\");\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tcase \"map_response_point\":\n\t\t\tcase \"cc2_map_response_point\":\n\t\t\t\tr(a(!0));\n\t\t\t\treturn;\n\t\t\tdefault:\n\t\t\t\tconsole.warn(`[QTI Player] Unsupported response processing template: ${t}`);\n\t\t\t\treturn;\n\t\t}\n\t}\n\tbuildDeclarations() {\n\t\tlet e = {}, t = (t, n) => {\n\t\t\tlet r = this.getAttrMapped(n, \"identifier\"), i = this.getAttrMapped(n, \"cardinality\") || \"single\", a = i === \"record\" ? void 0 : this.getAttrMapped(n, \"baseType\") || \"string\";\n\t\t\tif (!r) return;\n\t\t\tlet o = this.parseDefaultValue(n, a, i), s = !o && this.hasImpliedNumericDefault(t, a, i), c = o ?? this.impliedDefaultValue(t, a, i);\n\t\t\tif (e[r] = {\n\t\t\t\tidentifier: r,\n\t\t\t\t...a ? { baseType: a } : {},\n\t\t\t\tcardinality: i,\n\t\t\t\tdefaultValue: c,\n\t\t\t\tvalue: c,\n\t\t\t\tisTemplate: t === \"template\",\n\t\t\t\timpliedNumericDefault: s,\n\t\t\t\t__kind: t\n\t\t\t}, t === \"response\" || t === \"outcome\") {\n\t\t\t\tlet t = te(n, this.mapper.toNative(\"mapping\"));\n\t\t\t\tt && a && (e[r].mapping = this.parseMapping(t, a));\n\t\t\t}\n\t\t\tif (t === \"outcome\") {\n\t\t\t\tlet t = te(n, this.mapper.toNative(\"matchtable\")), i = te(n, this.mapper.toNative(\"interpolationtable\"));\n\t\t\t\tt ? e[r].lookupTable = this.parseMatchTable(t) : i && (e[r].lookupTable = this.parseInterpolationTable(i));\n\t\t\t}\n\t\t\tif (t === \"response\") {\n\t\t\t\tlet t = te(n, this.mapper.toNative(\"correctresponse\"));\n\t\t\t\tt && (e[r].correctResponse = this.parseCorrectResponse(t, a, i));\n\t\t\t\tlet o = te(n, this.mapper.toNative(\"areamapping\"));\n\t\t\t\to && (e[r].areaMapping = this.parseAreaMapping(o));\n\t\t\t}\n\t\t};\n\t\tfor (let e of this.itemDocument.findDeclarationElements(\"response\")) t(\"response\", e);\n\t\tfor (let e of this.itemDocument.findDeclarationElements(\"outcome\")) t(\"outcome\", e);\n\t\tfor (let e of this.itemDocument.findDeclarationElements(\"template\")) t(\"template\", e);\n\t\treturn e;\n\t}\n\tparseMatchTable(e) {\n\t\tlet t = (C(e, \"defaultValue\") || \"\").trim(), n = t ? Number(t) : void 0;\n\t\treturn {\n\t\t\tkind: \"table.matchTable\",\n\t\t\tdefaultValue: Number.isFinite(n) ? n : void 0,\n\t\t\tentries: S(e, this.mapper.toNative(\"matchtableentry\")).map((e) => ({\n\t\t\t\tsourceValue: (C(e, \"sourceValue\") || \"\").trim(),\n\t\t\t\ttargetValue: (C(e, \"targetValue\") || \"\").trim()\n\t\t\t}))\n\t\t};\n\t}\n\tparseInterpolationTable(e) {\n\t\tlet t = (C(e, \"defaultValue\") || \"\").trim(), n = t ? Number(t) : void 0, r = (C(e, \"interpolationMethod\") || \"linear\").trim();\n\t\treturn {\n\t\t\tkind: \"table.interpolationTable\",\n\t\t\tdefaultValue: Number.isFinite(n) ? n : void 0,\n\t\t\tinterpolationMethod: r,\n\t\t\tentries: S(e, this.mapper.toNative(\"interpolationtableentry\")).map((e) => ({\n\t\t\t\tsourceValue: Number((C(e, \"sourceValue\") || \"\").trim()),\n\t\t\t\ttargetValue: Number((C(e, \"targetValue\") || \"\").trim())\n\t\t\t})).filter((e) => Number.isFinite(e.sourceValue) && Number.isFinite(e.targetValue))\n\t\t};\n\t}\n\tensureBuiltinDeclarations(e) {\n\t\te.completionStatus || (e.completionStatus = {\n\t\t\tidentifier: \"completionStatus\",\n\t\t\tbaseType: \"identifier\",\n\t\t\tcardinality: \"single\",\n\t\t\tvalue: w(\"identifier\", \"single\", \"not_attempted\"),\n\t\t\tisTemplate: !1,\n\t\t\t__kind: \"outcome\"\n\t\t}), e.numAttempts || (e.numAttempts = {\n\t\t\tidentifier: \"numAttempts\",\n\t\t\tbaseType: \"integer\",\n\t\t\tcardinality: \"single\",\n\t\t\tdefaultValue: w(\"integer\", \"single\", 0),\n\t\t\tvalue: w(\"integer\", \"single\", 0),\n\t\t\tisTemplate: !1,\n\t\t\t__kind: \"outcome\"\n\t\t}), e.duration || (e.duration = {\n\t\t\tidentifier: \"duration\",\n\t\t\tbaseType: \"duration\",\n\t\t\tcardinality: \"single\",\n\t\t\tdefaultValue: w(\"duration\", \"single\", 0),\n\t\t\tvalue: w(\"duration\", \"single\", 0),\n\t\t\tisTemplate: !1,\n\t\t\t__kind: \"outcome\"\n\t\t}), e.SCORE || (e.SCORE = {\n\t\t\tidentifier: \"SCORE\",\n\t\t\tbaseType: \"float\",\n\t\t\tcardinality: \"single\",\n\t\t\tvalue: w(\"float\", \"single\", 0),\n\t\t\tisTemplate: !1,\n\t\t\t__kind: \"outcome\"\n\t\t}), e.MAXSCORE || (e.MAXSCORE = {\n\t\t\tidentifier: \"MAXSCORE\",\n\t\t\tbaseType: \"float\",\n\t\t\tcardinality: \"single\",\n\t\t\tvalue: w(\"float\", \"single\", 1),\n\t\t\tisTemplate: !1,\n\t\t\t__kind: \"outcome\"\n\t\t});\n\t}\n\tapplySessionState(e) {\n\t\tfor (let [t, n] of Object.entries(e)) {\n\t\t\tlet e = this.decls[t];\n\t\t\te && (e.value = this.coerceToDeclarationValue(e.baseType, e.cardinality, n, e.identifier));\n\t\t}\n\t\tlet t = Number(e.duration);\n\t\tNumber.isFinite(t) && t >= 0 && (this.accumulatedDurationMs = t, this.sessionStartedAt = Date.now(), this.updateDuration());\n\t}\n\tapplySerializedVariables(e) {\n\t\tfor (let t of Object.values(e)) {\n\t\t\tlet e = this.decls[t.identifier];\n\t\t\te && (e.value = this.coerceToDeclarationValue(e.baseType, e.cardinality, t.value, e.identifier), e.__kind === \"response\" && this.restorePciResponse(e.identifier, this.qtiValueToPublic(e.value)));\n\t\t}\n\t}\n\tserializeItemSession() {\n\t\tlet e = {}, t = {}, n = {}, r = {}, i = /* @__PURE__ */ new Set([\n\t\t\t\"completionStatus\",\n\t\t\t\"numAttempts\",\n\t\t\t\"duration\"\n\t\t]);\n\t\tfor (let a of Object.values(this.decls)) {\n\t\t\tlet o = this.serializeVariable(a);\n\t\t\ta.isTemplate ? n[a.identifier] = {\n\t\t\t\t...o,\n\t\t\t\tkind: \"template\"\n\t\t\t} : i.has(a.identifier) ? r[a.identifier] = {\n\t\t\t\t...o,\n\t\t\t\tkind: \"context\"\n\t\t\t} : a.__kind === \"response\" ? e[a.identifier] = {\n\t\t\t\t...o,\n\t\t\t\tkind: \"response\"\n\t\t\t} : a.__kind === \"outcome\" && (t[a.identifier] = {\n\t\t\t\t...o,\n\t\t\t\tkind: \"outcome\"\n\t\t\t});\n\t\t}\n\t\tlet a = this.validateResponses(this.getResponses());\n\t\treturn {\n\t\t\titemIdentifier: this.itemDocument.getAssessmentItemAttribute(\"identifier\") ?? void 0,\n\t\t\tsessionGuid: this.sessionGuid,\n\t\t\tlifecycleStatus: this.lifecycleStatus,\n\t\t\tcompletionStatus: this.getCompletionStatus(),\n\t\t\tnumAttempts: this.getNumAttempts(),\n\t\t\tduration: this.getDuration(),\n\t\t\tresponseVariables: e,\n\t\t\toutcomeVariables: t,\n\t\t\ttemplateVariables: n,\n\t\t\tcontextVariables: r,\n\t\t\tvalidationMessages: a.issues,\n\t\t\tsavedAt: (/* @__PURE__ */ new Date()).toISOString()\n\t\t};\n\t}\n\tserializeVariable(e) {\n\t\treturn {\n\t\t\tidentifier: e.identifier,\n\t\t\tkind: e.__kind ?? (e.isTemplate ? \"template\" : \"context\"),\n\t\t\t...e.baseType ? { baseType: e.baseType } : {},\n\t\t\tcardinality: e.cardinality,\n\t\t\tvalue: this.qtiValueToSerializable(e.value),\n\t\t\tdefaultValue: this.qtiValueToSerializable(e.defaultValue)\n\t\t};\n\t}\n\tqtiValueToSerializable(e) {\n\t\tif (!e || e.kind !== \"value\") return null;\n\t\tif (e.cardinality !== \"record\") return xu(e.value);\n\t\tlet t = {};\n\t\tfor (let [n, r] of Object.entries(e.value)) t[n] = {\n\t\t\t...r.baseType ? { baseType: r.baseType } : {},\n\t\t\tcardinality: r.cardinality ?? \"single\",\n\t\t\tvalue: this.qtiValueToSerializable(r)\n\t\t};\n\t\treturn t;\n\t}\n\tqtiValueToPublic(e) {\n\t\tif (!e || e.kind !== \"value\") return null;\n\t\tif (e.cardinality !== \"record\") return xu(e.value);\n\t\tlet t = {};\n\t\tfor (let [n, r] of Object.entries(e.value)) t[n] = this.qtiValueToPublic(r);\n\t\treturn t;\n\t}\n\tupdateDuration() {\n\t\tlet e = Math.max(0, Date.now() - this.sessionStartedAt), t = this.accumulatedDurationMs + e;\n\t\tthis.ctx.setValue(\"duration\", w(\"duration\", \"single\", t));\n\t}\n\tfreezeDuration() {\n\t\tthis.updateDuration();\n\t\tlet e = this.getDuration();\n\t\treturn this.accumulatedDurationMs = e, this.sessionStartedAt = Date.now(), e;\n\t}\n\tgetDuration() {\n\t\tlet e = this.ctx.getValue(\"duration\");\n\t\treturn Math.max(0, Math.floor(oe(e) || 0));\n\t}\n\thasImpliedNumericDefault(e, t, n) {\n\t\treturn e !== \"outcome\" || n !== \"single\" ? !1 : t === \"integer\" || t === \"float\";\n\t}\n\timpliedDefaultValue(e, t, n) {\n\t\treturn this.hasImpliedNumericDefault(e, t, n) ? w(t, \"single\", 0) : re(t, n);\n\t}\n\tparseDefaultValue(e, t, n) {\n\t\tlet r = te(e, this.mapper.toNative(\"defaultvalue\"));\n\t\tif (r) return this.parseDeclarationValues(r, t, n);\n\t}\n\tparseCorrectResponse(e, t, n) {\n\t\treturn this.parseDeclarationValues(e, t, n);\n\t}\n\tparseDeclarationValues(e, t, n) {\n\t\tlet r = S(e, this.mapper.toNative(\"value\"));\n\t\tif (n === \"record\") {\n\t\t\tlet e = {};\n\t\t\tfor (let t of r) {\n\t\t\t\tlet n = this.getAttrMapped(t, \"fieldIdentifier\"), r = this.getAttrMapped(t, \"baseType\");\n\t\t\t\t!n || !r || (e[n] = y(r, t.textContent || \"\"));\n\t\t\t}\n\t\t\treturn Object.keys(e).length > 0 ? w(void 0, \"record\", e) : re(void 0, \"record\");\n\t\t}\n\t\tif (!t) return re(void 0, n);\n\t\tlet i = r.map((e) => (e.textContent || \"\").trim());\n\t\treturn n === \"multiple\" || n === \"ordered\" ? w(t, n, i.map((e) => {\n\t\t\tlet n = y(t, e);\n\t\t\treturn n.kind === \"value\" ? n.value : null;\n\t\t})) : y(t, i[0] ?? \"\");\n\t}\n\tparseMapping(e, t) {\n\t\tlet n = Number(this.getAttrMapped(e, \"defaultValue\") || 0), r = this.getAttrMapped(e, \"lowerBound\") ? Number(this.getAttrMapped(e, \"lowerBound\")) : void 0, i = this.getAttrMapped(e, \"upperBound\") ? Number(this.getAttrMapped(e, \"upperBound\")) : void 0, a = this.getAttrMapped(e, \"caseSensitive\") || \"true\", o = {}, s = (e) => {\n\t\t\tlet t = e.trim().split(/\\s+/).filter(Boolean);\n\t\t\treturn t.length === 2 ? [...t].sort().join(\" \") : e.trim();\n\t\t}, c = (e) => {\n\t\t\tlet t = e.trim().split(/\\s+/).filter(Boolean);\n\t\t\treturn t.length >= 2 ? `${t[0]} ${t[1]}` : e.trim();\n\t\t};\n\t\tfor (let n of S(e, this.mapper.toNative(\"mapentry\"))) {\n\t\t\tlet e = this.getAttrMapped(n, \"mapKey\"), r = this.getAttrMapped(n, \"mappedValue\");\n\t\t\tif (!e || r === null) continue;\n\t\t\tlet i = this.getAttrMapped(n, \"caseSensitive\") || a || \"true\", l = t === \"pair\" ? s(e) : t === \"directedPair\" ? c(e) : e;\n\t\t\tif (o[l] = {\n\t\t\t\tmapKey: l,\n\t\t\t\tmappedValue: Number(r),\n\t\t\t\tcaseSensitive: i\n\t\t\t}, i !== \"true\") {\n\t\t\t\tlet e = l.toLowerCase();\n\t\t\t\to[e] = {\n\t\t\t\t\tmapKey: e,\n\t\t\t\t\tmappedValue: Number(r),\n\t\t\t\t\tcaseSensitive: i\n\t\t\t\t};\n\t\t\t}\n\t\t}\n\t\treturn {\n\t\t\tdefaultValue: n,\n\t\t\tlowerBound: r,\n\t\t\tupperBound: i,\n\t\t\tcaseSensitive: a,\n\t\t\tentries: o\n\t\t};\n\t}\n\tparseAreaMapping(e) {\n\t\tlet t = Number(C(e, \"defaultValue\") || 0), n = C(e, \"lowerBound\") ? Number(C(e, \"lowerBound\")) : void 0, r = C(e, \"upperBound\") ? Number(C(e, \"upperBound\")) : void 0, i = [];\n\t\tfor (let t of S(e, this.mapper.toNative(\"areamapentry\"))) {\n\t\t\tlet e = C(t, \"shape\") || \"default\", n = String(C(t, \"coords\") || \"\"), r = Number(C(t, \"mappedValue\") || 0);\n\t\t\ti.push({\n\t\t\t\tshape: e,\n\t\t\t\tcoords: n,\n\t\t\t\tmappedValue: r\n\t\t\t});\n\t\t}\n\t\treturn {\n\t\t\tdefaultValue: t,\n\t\t\tlowerBound: n,\n\t\t\tupperBound: r,\n\t\t\tentries: i\n\t\t};\n\t}\n\tcoerceToDeclarationValue(e, t, n, r) {\n\t\tif (n == null) return re(e, t);\n\t\tif (typeof n == \"object\" && n && \"kind\" in n) return xu(n);\n\t\tlet i = r ? this.getExtendedTextBase(r) : void 0;\n\t\tif (t === \"record\") return this.coerceRecordValue(n, i ?? 10);\n\t\tif (!e) return re(void 0, t);\n\t\tif (e === \"file\") return t === \"multiple\" || t === \"ordered\" ? w(e, t, xu((Array.isArray(n) ? n : [n]).filter((e) => e != null))) : w(e, t, xu(n));\n\t\tif (t === \"multiple\" || t === \"ordered\") {\n\t\t\tlet r = (Array.isArray(n) ? n : [n]).map((e) => String(e ?? \"\").trim()).filter((e) => e.length > 0).map((t) => {\n\t\t\t\tif (i && (e === \"integer\" || e === \"float\")) {\n\t\t\t\t\tlet n = mu(t, i);\n\t\t\t\t\treturn e === \"integer\" ? n.integerValue : n.floatValue;\n\t\t\t\t}\n\t\t\t\tlet n = y(e, t);\n\t\t\t\treturn n.kind === \"value\" ? n.value : null;\n\t\t\t}).filter((e) => e !== null);\n\t\t\treturn w(e, t, r);\n\t\t}\n\t\tlet a = String(n ?? \"\").trim();\n\t\tif (a.length === 0) return re(e, t);\n\t\tif (i && (e === \"integer\" || e === \"float\")) {\n\t\t\tlet t = mu(a, i), n = e === \"integer\" ? t.integerValue : t.floatValue;\n\t\t\treturn n === null ? re(e, \"single\") : w(e, \"single\", n);\n\t\t}\n\t\treturn y(e, a);\n\t}\n\tgetExtendedTextBase(e) {\n\t\treturn this.itemDocument.getExtendedTextBase(e);\n\t}\n\tcoerceRecordValue(e, t) {\n\t\tlet n = e;\n\t\tif (typeof n == \"string\") {\n\t\t\tlet e = n;\n\t\t\tif (e.trim().length === 0) return re(void 0, \"record\");\n\t\t\tif (e.trimStart().startsWith(\"{\")) try {\n\t\t\t\tn = JSON.parse(e);\n\t\t\t} catch {\n\t\t\t\treturn re(void 0, \"record\");\n\t\t\t}\n\t\t\telse n = mu(e, t);\n\t\t}\n\t\tif (!n || typeof n != \"object\" || Array.isArray(n)) return re(void 0, \"record\");\n\t\tlet r = {};\n\t\tfor (let [e, t] of Object.entries(n)) {\n\t\t\tif (t && typeof t == \"object\" && \"kind\" in t) {\n\t\t\t\tr[e] = t;\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tlet n = uu[e], i = t;\n\t\t\tif (t && typeof t == \"object\" && !Array.isArray(t) && \"value\" in t) {\n\t\t\t\tlet e = t;\n\t\t\t\tn = e.baseType ?? n, i = e.value;\n\t\t\t}\n\t\t\tn || (n = typeof i == \"boolean\" ? \"boolean\" : typeof i == \"number\" ? Number.isInteger(i) ? \"integer\" : \"float\" : \"string\"), r[e] = i == null ? re(n, \"single\") : n === \"file\" && typeof i == \"object\" ? w(\"file\", \"single\", i) : y(n, String(i));\n\t\t}\n\t\treturn Object.keys(r).length > 0 ? w(void 0, \"record\", r) : re(void 0, \"record\");\n\t}\n\tcollectOutcomes() {\n\t\tlet e = {};\n\t\tfor (let t of Object.values(this.decls)) t.__kind === \"outcome\" && (t.value.kind === \"value\" ? e[t.identifier] = this.qtiValueToPublic(t.value) : t.value.kind === \"null\" && (e[t.identifier] = null));\n\t\treturn (e.MAXSCORE === null || e.MAXSCORE === void 0) && (e.MAXSCORE = 1), e;\n\t}\n\trenderPrintedVariables(e) {\n\t\tlet t = (e) => {\n\t\t\tlet t = e.match(/identifier\\s*=\\s*(?:\"([^\"]+)\"|'([^']+)'|([^\\s>]+))/i);\n\t\t\treturn (t?.[1] || t?.[2] || t?.[3] || \"\").trim() || null;\n\t\t}, n = (e) => {\n\t\t\tif (!e) return \"\";\n\t\t\tlet t = this.ctx.getValue(e);\n\t\t\treturn t.kind === \"value\" ? Array.isArray(t.value) ? t.value.map(String).join(\", \") : String(t.value) : \"\";\n\t\t}, r = e.replace(/<printedVariable\\b([^>]*)>([\\s\\S]*?)<\\/printedVariable>/gi, (e, r) => n(t(String(r))));\n\t\treturn r = r.replace(/<printedVariable\\b([^>]*)\\/>/gi, (e, r) => n(t(String(r)))), r;\n\t}\n\trenderHtmlContent(e) {\n\t\treturn Rl(Hc(this.renderPrintedVariables(e), { security: this.config.security }), this.config.security?.trustedTypesPolicyName);\n\t}\n\tgetModalFeedback(e) {\n\t\tlet t = [];\n\t\tfor (let n of this.itemDocument.readModalFeedback()) {\n\t\t\tlet { identifier: r, outcomeIdentifier: i, showHide: a, title: o } = n, s = Rl(Hc(n.content, { security: this.config.security }), this.config.security?.trustedTypesPolicyName), c = e[i];\n\t\t\t(a === \"show\" ? c === r : c !== r) && s && t.push({\n\t\t\t\tidentifier: r,\n\t\t\t\toutcomeIdentifier: i,\n\t\t\t\tshowHide: a,\n\t\t\t\tcontent: s,\n\t\t\t\ttitle: o\n\t\t\t});\n\t\t}\n\t\treturn t;\n\t}\n};\nfunction vu(e, t) {\n\treturn {\n\t\tdisplay: {\n\t\t\t...e?.display ?? {},\n\t\t\t...t.display ?? {}\n\t\t},\n\t\tcontent: {\n\t\t\t...e?.content ?? {},\n\t\t\t...t.content ?? {}\n\t\t},\n\t\tcognitive: {\n\t\t\t...e?.cognitive ?? {},\n\t\t\t...t.cognitive ?? {}\n\t\t}\n\t};\n}\nfunction yu() {\n\tlet e = typeof crypto < \"u\" ? crypto : void 0;\n\tif (typeof e?.randomUUID == \"function\") return e.randomUUID();\n\tif (typeof e?.getRandomValues == \"function\") {\n\t\tlet t = /* @__PURE__ */ new Uint8Array(16);\n\t\treturn e.getRandomValues(t), `item-session-${Array.from(t, (e) => e.toString(16).padStart(2, \"0\")).join(\"\")}`;\n\t}\n\tthrow Error(\"No Web Crypto API available: cannot generate a session GUID. @pie-qti/item-player requires crypto.randomUUID or crypto.getRandomValues (present in all supported browsers and in Node >= 20).\");\n}\nfunction bu(e) {\n\treturn structuredClone(e);\n}\nfunction xu(e) {\n\treturn !e || typeof e != \"object\" ? e : structuredClone(e);\n}\nfunction Su(e) {\n\tlet t = e.trim();\n\treturn /^(https?:\\/\\/|\\/\\/|\\/|\\.{0,2}\\/|data:|blob:)/i.test(t) || /\\.(png|jpe?g|gif|webp|svg|mp3|wav|ogg|mp4|webm|pdf)(\\?.*)?$/i.test(t);\n}\n//#endregion\n//#region src/core/rolePolicy.ts\nvar Cu = /* @__PURE__ */ new Set([\n\t\"scorer\",\n\t\"author\",\n\t\"tutor\",\n\t\"testConstructor\"\n]);\nfunction wu(e) {\n\tlet t = e === \"candidate\", n = Cu.has(e);\n\treturn {\n\t\tisCandidate: t,\n\t\tisReadOnly: !t,\n\t\tcanViewCorrectResponses: n\n\t};\n}\n//#endregion\n//#region src/components/utils/feedbackUtils.ts\nvar Tu = [\n\t{\n\t\tpattern: /<strong>Incorrect;<\\/strong>/gi,\n\t\treplacement: \"<strong>Incorrect</strong> \"\n\t},\n\t{\n\t\tpattern: /Incorrect;/gi,\n\t\treplacement: \"Incorrect \"\n\t},\n\t{\n\t\tpattern: /<strong>Correct;<\\/strong>/gi,\n\t\treplacement: \"<strong>Correct</strong> \"\n\t},\n\t{\n\t\tpattern: /Correct;/gi,\n\t\treplacement: \"Correct \"\n\t}\n];\nfunction Eu(e, t = Tu) {\n\tif (!e) return e;\n\tlet n = e;\n\tfor (let e of t) n = n.replace(e.pattern, e.replacement);\n\treturn n;\n}\nfunction Du(e, t) {\n\tlet { outcomeValues: n, applyHeuristics: r = !1, wrapWithSpan: i = !1, transforms: a } = t;\n\treturn e && e.replace(/<feedbackInline\\b([^>]*)>([\\s\\S]*?)<\\/feedbackInline>/gi, (e, t, o) => {\n\t\tlet s = Ou(t, \"outcomeIdentifier\"), c = Ou(t, \"identifier\"), l = Ou(t, \"showHide\") ?? \"show\", u = s ? n[s] : void 0;\n\t\tif (s === null || c === null || u == null || u === \"\") return \"\";\n\t\tlet d = Array.isArray(u) ? u.includes(c) : u === c;\n\t\treturn (l.toLowerCase() === \"show\" ? d : !d) ? (r && (o = Eu(o, a)), i ? ` <span class=\"qti-feedback-inline\">${o}</span>` : o) : \"\";\n\t});\n}\nfunction Ou(e, t) {\n\treturn (RegExp(`\\\\b${t}\\\\s*=\\\\s*\"([^\"]*)\"`, \"i\").exec(e) ?? RegExp(`\\\\b${t}\\\\s*=\\\\s*'([^']*)'`, \"i\").exec(e))?.[1] ?? null;\n}\n//#endregion\n//#region src/components/utils/stylesheetRender.ts\nfunction ku(e, t = \"[data-qti-item-body-scope]\") {\n\treturn e ? e.stylesheets.map((e) => Au(e, t)).filter(Boolean).join(\"\\n\") : \"\";\n}\nfunction Au(e, t) {\n\tlet n = e.cssText?.trim();\n\treturn !n || l(n) ? \"\" : Pu(n, Lu(e, t)) || \"\";\n}\nvar ju = /* @__PURE__ */ new Set([\n\t\"media\",\n\t\"supports\",\n\t\"container\",\n\t\"layer\",\n\t\"scope\"\n]), Mu = /^(?::root|html|body)(?![\\w-])/, Nu = /^@(?:-[a-z]+-)?([\\w-]+)/i;\nfunction Pu(e, t = \"[data-qti-item-body-scope]\") {\n\tif (!e) return \"\";\n\tlet n = t?.trim();\n\treturn n ? Fu(Hu(e), n).trim() : e;\n}\nfunction Fu(e, t) {\n\tlet n = \"\", r = 0;\n\tfor (; r < e.length;) {\n\t\tlet i = zu(e, r);\n\t\tif (i.end <= r) break;\n\t\tn += Iu(i, t), r = i.end;\n\t}\n\treturn n;\n}\nfunction Iu(e, t) {\n\tif (e.kind === \"statement\") {\n\t\tlet t = e.text.trim();\n\t\treturn t === \";\" ? \"\" : `${t}\\n`;\n\t}\n\tif (e.kind === \"trailing\") return e.text.trim() ? `${e.text.trim()}\\n` : \"\";\n\tlet n = e.prelude.trim();\n\tif (!n) return \"\";\n\tif (n.startsWith(\"@\")) {\n\t\tlet r = Nu.exec(n)?.[1]?.toLowerCase();\n\t\tif (r && ju.has(r)) {\n\t\t\tlet r = Fu(e.block, t);\n\t\t\treturn r.trim() ? `${n} {\\n${r}}\\n` : \"\";\n\t\t}\n\t\treturn `${n} {${e.block}}\\n`;\n\t}\n\tlet r = e.block.trim();\n\tif (!r) return \"\";\n\tlet i = Vu(n, \",\").map((e) => Ru(e.trim(), t)).filter(Boolean);\n\treturn i.length === 0 ? \"\" : `${i.join(\", \")} { ${r} }\\n`;\n}\nfunction Lu(e, t) {\n\treturn e.source !== \"stimulus\" || !e.stimulusIdentifier ? t : `${t} [data-stimulus-idref=\"${Uu(e.stimulusIdentifier)}\"]`;\n}\nfunction Ru(e, t) {\n\tif (!e) return \"\";\n\tif (e === t || e.startsWith(`${t} `)) return e;\n\tlet n = Mu.exec(e);\n\treturn n ? `${t}${e.slice(n[0].length)}` : `${t} ${e}`;\n}\nfunction zu(e, t) {\n\tlet n = t, r = null, i = 0;\n\tfor (; n < e.length;) {\n\t\tlet a = e[n];\n\t\tif (r) a === \"\\\\\" ? n += 1 : a === r && (r = null);\n\t\telse if (a === \"\\\"\" || a === \"'\") r = a;\n\t\telse if (a === \"(\") i += 1;\n\t\telse if (a === \")\") i > 0 && --i;\n\t\telse if (i === 0 && a === \";\") return {\n\t\t\tkind: \"statement\",\n\t\t\ttext: e.slice(t, n + 1),\n\t\t\tend: n + 1\n\t\t};\n\t\telse if (i === 0 && a === \"{\") {\n\t\t\tlet r = Bu(e, n);\n\t\t\treturn {\n\t\t\t\tkind: \"rule\",\n\t\t\t\tprelude: e.slice(t, n),\n\t\t\t\tblock: e.slice(n + 1, r.contentEnd),\n\t\t\t\tend: r.end\n\t\t\t};\n\t\t}\n\t\tn += 1;\n\t}\n\treturn {\n\t\tkind: \"trailing\",\n\t\ttext: e.slice(t),\n\t\tend: e.length\n\t};\n}\nfunction Bu(e, t) {\n\tlet n = 0, r = null;\n\tfor (let i = t; i < e.length; i += 1) {\n\t\tlet t = e[i];\n\t\tif (r) {\n\t\t\tt === \"\\\\\" ? i += 1 : t === r && (r = null);\n\t\t\tcontinue;\n\t\t}\n\t\tif (t === \"\\\"\" || t === \"'\") {\n\t\t\tr = t;\n\t\t\tcontinue;\n\t\t}\n\t\tif (t === \"{\") n += 1;\n\t\telse if (t === \"}\" && (--n, n === 0)) return {\n\t\t\tcontentEnd: i,\n\t\t\tend: i + 1\n\t\t};\n\t}\n\treturn {\n\t\tcontentEnd: e.length,\n\t\tend: e.length\n\t};\n}\nfunction Vu(e, t) {\n\tlet n = [], r = \"\", i = null, a = 0;\n\tfor (let o = 0; o < e.length; o += 1) {\n\t\tlet s = e[o];\n\t\tif (i) {\n\t\t\tr += s, s === \"\\\\\" && o + 1 < e.length ? (r += e[o + 1], o += 1) : s === i && (i = null);\n\t\t\tcontinue;\n\t\t}\n\t\tif (s === \"\\\"\" || s === \"'\") {\n\t\t\ti = s, r += s;\n\t\t\tcontinue;\n\t\t}\n\t\tif (s === \"(\" ? a += 1 : s === \")\" && a > 0 && --a, s === t && a === 0) {\n\t\t\tn.push(r), r = \"\";\n\t\t\tcontinue;\n\t\t}\n\t\tr += s;\n\t}\n\treturn n.push(r), n;\n}\nfunction Hu(e) {\n\tlet t = \"\", n = null, r = 0;\n\tfor (; r < e.length;) {\n\t\tlet i = e[r];\n\t\tif (n) {\n\t\t\tif (t += i, i === \"\\\\\" && r + 1 < e.length) {\n\t\t\t\tt += e[r + 1], r += 2;\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\ti === n && (n = null), r += 1;\n\t\t\tcontinue;\n\t\t}\n\t\tif (i === \"\\\"\" || i === \"'\") {\n\t\t\tn = i, t += i, r += 1;\n\t\t\tcontinue;\n\t\t}\n\t\tif (i === \"/\" && e[r + 1] === \"*\") {\n\t\t\tlet n = e.indexOf(\"*/\", r + 2);\n\t\t\tr = n === -1 ? e.length : n + 2, t += \" \";\n\t\t\tcontinue;\n\t\t}\n\t\tt += i, r += 1;\n\t}\n\treturn t;\n}\nfunction Uu(e) {\n\treturn e.replace(/\\\\/g, \"\\\\\\\\\").replace(/\"/g, \"\\\\\\\"\").replace(/\\n|\\r|\\f/g, \" \");\n}\n//#endregion\n//#region src/components/utils/stimulusRender.ts\nfunction Wu(e, t) {\n\treturn Object.fromEntries(Object.entries(e?.stimuli ?? {}).map(([e, n]) => [e, t(n.bodyHtml)]));\n}\nfunction Gu(e, t) {\n\tif (Object.keys(t).length === 0) return e;\n\tlet n = /* @__PURE__ */ new Set(), r = e.replace(/<([a-z][\\w:-]*)([^>]*\\bdata-stimulus-idref=([\"'])([^\"']+)\\3[^>]*)>\\s*<\\/\\1>/gi, (e, r, i, a, o) => {\n\t\tlet s = t[o];\n\t\treturn s ? (n.add(o), `<${r}${qu(i, \"qti-stimulus-dock\")}>${s}</${r}>`) : e;\n\t});\n\tr = r.replace(/<qti-assessment-stimulus-ref\\b([^>]*)\\/?>\\s*(?:<\\/qti-assessment-stimulus-ref>)?/gi, (e, r) => {\n\t\tlet i = Ku(r, \"identifier\");\n\t\tif (!i) return e;\n\t\tif (n.has(i)) return \"\";\n\t\tlet a = t[i];\n\t\treturn a ? (n.add(i), `<div data-stimulus-idref=\"${Ju(i)}\" class=\"qti-stimulus-dock\">${a}</div>`) : e;\n\t});\n\tlet i = Object.entries(t).filter(([e]) => !n.has(e)).map(([e, t]) => `<div data-stimulus-idref=\"${Ju(e)}\" class=\"qti-stimulus-block\">${t}</div>`).join(\"\");\n\treturn i ? i + r : r;\n}\nfunction Ku(e, t) {\n\treturn e.match(RegExp(`\\\\b${t}\\\\s*=\\\\s*[\"']([^\"']+)[\"']`, \"i\"))?.[1] ?? null;\n}\nfunction qu(e, t) {\n\tlet n = e.match(/\\bclass\\s*=\\s*([\"'])([^\"']*)\\1/i);\n\tif (!n) return `${e} class=\"${t}\"`;\n\tlet r = n[1], i = n[2] ?? \"\", a = new Set(i.split(/\\s+/).filter(Boolean));\n\treturn a.add(t), e.replace(n[0], `class=${r}${Array.from(a).join(\" \")}${r}`);\n}\nfunction Ju(e) {\n\treturn e.replace(/&/g, \"&amp;\").replace(/\"/g, \"&quot;\").replace(/</g, \"&lt;\").replace(/>/g, \"&gt;\");\n}\n//#endregion\n//#region src/interactions/inline/render-plan.ts\nfunction Yu(e) {\n\treturn fl(e);\n}\nfunction Xu(e) {\n\treturn pl(e);\n}\nfunction Zu(e, t) {\n\treturn e.replace(/<textEntryInteraction[^>]*responseIdentifier=\"([^\"]+)\"[^>]*?(?:\\/>|><\\/textEntryInteraction>)/gi, (e, n) => ed(t, n, \"textEntryInteraction\") ? $u(\"textEntry\", n) : e).replace(/<qti-text-entry-interaction[^>]*response-identifier=\"([^\"]+)\"[^>]*?(?:\\/>|><\\/qti-text-entry-interaction>)/gi, (e, n) => ed(t, n, \"textEntryInteraction\") ? $u(\"textEntry\", n) : e).replace(/<inlineChoiceInteraction[^>]*responseIdentifier=\"([^\"]+)\"[^>]*>[\\s\\S]*?<\\/inlineChoiceInteraction>/gi, (e, n) => ed(t, n, \"inlineChoiceInteraction\") ? $u(\"inlineChoice\", n) : e).replace(/<qti-inline-choice-interaction[^>]*response-identifier=\"([^\"]+)\"[^>]*>[\\s\\S]*?<\\/qti-inline-choice-interaction>/gi, (e, n) => ed(t, n, \"inlineChoiceInteraction\") ? $u(\"inlineChoice\", n) : e);\n}\nfunction Qu(e, t) {\n\tlet n = Zu(e, t), r = [], i = /\\[TEXTENTRY:([^\\]]+)\\]|\\[INLINECHOICE:([^\\]]+)\\]/g, a = 0, o;\n\tfor (; (o = i.exec(n)) !== null;) {\n\t\tif (o.index > a && r.push({\n\t\t\ttype: \"html\",\n\t\t\tcontent: n.substring(a, o.index)\n\t\t}), o[0].startsWith(\"[TEXTENTRY:\")) {\n\t\t\tlet e = td(t, o[1], \"textEntryInteraction\");\n\t\t\te && r.push({\n\t\t\t\ttype: \"textEntry\",\n\t\t\t\tinteraction: e\n\t\t\t});\n\t\t} else {\n\t\t\tlet e = td(t, o[2], \"inlineChoiceInteraction\");\n\t\t\te && r.push({\n\t\t\t\ttype: \"inlineChoice\",\n\t\t\t\tinteraction: e\n\t\t\t});\n\t\t}\n\t\ta = o.index + o[0].length;\n\t}\n\treturn a < n.length && r.push({\n\t\ttype: \"html\",\n\t\tcontent: n.substring(a)\n\t}), r.length > 0 ? r : [{\n\t\ttype: \"html\",\n\t\tcontent: n\n\t}];\n}\nfunction $u(e, t) {\n\treturn e === \"textEntry\" ? `[TEXTENTRY:${t}]` : `[INLINECHOICE:${t}]`;\n}\nfunction ed(e, t, n) {\n\treturn !!td(e, t, n);\n}\nfunction td(e, t, n) {\n\treturn e.find((e) => e.responseId === t && e.type === n) ?? null;\n}\n//#endregion\n//#region src/presentation/itemPresentationPlan.ts\nfunction nd({ source: e, responses: t = {}, disabled: n = !1, role: r = \"candidate\", outcomeValues: i = {}, heuristicsConfig: a, itemBodyScopeSelector: o = \"[data-qti-item-body-scope]\", renderItemBodyRubrics: s = !0, onComponentError: c }) {\n\tlet l = wu(r), u = n || l.isReadOnly, d = l.canViewCorrectResponses ? e.correctResponses : {}, { html: f, scopedCss: p } = id({\n\t\tsource: e,\n\t\trole: r,\n\t\toutcomeValues: i,\n\t\theuristicsConfig: a,\n\t\titemBodyScopeSelector: o,\n\t\trenderItemBodyRubrics: s\n\t}), m = Qu(f, e.interactions).map((t) => t.type === \"html\" ? {\n\t\tkind: \"html\",\n\t\thtml: ad(Hc(t.content, { security: e.security }), e.security)\n\t} : t.type === \"textEntry\" ? {\n\t\tkind: \"interaction\",\n\t\tmount: {\n\t\t\tplacement: \"inline\",\n\t\t\trenderer: \"text-entry\",\n\t\t\tinteraction: t.interaction\n\t\t}\n\t} : {\n\t\tkind: \"interaction\",\n\t\tmount: {\n\t\t\tplacement: \"inline\",\n\t\t\trenderer: \"inline-choice\",\n\t\t\tinteraction: t.interaction\n\t\t}\n\t}), h = hd({\n\t\tinteractions: e.interactions,\n\t\tsource: e,\n\t\tresponses: t,\n\t\tcorrectResponses: d,\n\t\troleCapabilities: l,\n\t\teffectiveDisabled: u,\n\t\tonComponentError: c\n\t}).map((e) => ({\n\t\tkind: \"interaction\",\n\t\tmount: e\n\t}));\n\treturn rd({\n\t\tcapabilities: l,\n\t\tdisabled: u,\n\t\tcorrectResponses: d,\n\t\tdirectRubrics: e.directRubrics ?? [],\n\t\tflow: [...m, ...h],\n\t\tscopedCss: p\n\t});\n}\nfunction rd(e) {\n\tif (!e || typeof e != \"object\" || Object.isFrozen(e)) return e;\n\tlet t = Object.getPrototypeOf(e);\n\tif (!Array.isArray(e) && t !== Object.prototype && t !== null) return e;\n\tObject.freeze(e);\n\tfor (let t of Object.values(e)) rd(t);\n\treturn e;\n}\nfunction id({ source: e, role: t, outcomeValues: n, heuristicsConfig: r, itemBodyScopeSelector: i, renderItemBodyRubrics: a }) {\n\tlet o = zl(e.itemBodyHtml), s = ku(e.deliveryContext, i), c = Wu(e.deliveryContext, (t) => Hc(t, { security: e.security }));\n\to = Gu(o, c), o = od(o, t, { renderRubrics: a });\n\tlet l = d(r);\n\treturn o = Du(o, {\n\t\toutcomeValues: n,\n\t\tapplyHeuristics: l.feedbackTextFormatting,\n\t\twrapWithSpan: !1\n\t}), {\n\t\thtml: md(o),\n\t\tscopedCss: s\n\t};\n}\nfunction ad(e, t) {\n\treturn Rl(e, t?.trustedTypesPolicyName);\n}\nfunction od(e, t, { renderRubrics: n }) {\n\tif (!e || !/rubric-?block/i.test(e)) return e;\n\ttry {\n\t\tlet r = s(e, {\n\t\t\tlowerCaseTagName: !1,\n\t\t\tcomment: !1\n\t\t});\n\t\treturn sd(r, t, { renderRubrics: n }), r.toString();\n\t} catch {\n\t\treturn e;\n\t}\n}\nfunction sd(e, t, { renderRubrics: n }) {\n\tlet r = [...e.childNodes];\n\tfor (let e of r) {\n\t\tlet r = e.rawTagName?.toLowerCase();\n\t\tif (r && cd(r) && (!n || !ld(e, t))) {\n\t\t\te.remove();\n\t\t\tcontinue;\n\t\t}\n\t\te.childNodes?.length && sd(e, t, { renderRubrics: n }), r && cd(r) && e.replaceWith(ud(e));\n\t}\n}\nfunction cd(e) {\n\treturn e === \"rubricblock\" || e === \"qti-rubric-block\";\n}\nfunction ld(e, t) {\n\tlet n = e.getAttribute(\"view\")?.trim();\n\treturn !n || dd(n).includes(t);\n}\nfunction ud(e) {\n\tlet t = e.getAttribute(\"view\")?.trim(), n = e.getAttribute(\"use\")?.trim();\n\treturn `<div ${[\n\t\t\"class=\\\"qti-rubric-block\\\"\",\n\t\tt ? `data-qti-rubric-view=\"${pd(t)}\"` : \"\",\n\t\tn ? `data-qti-rubric-use=\"${pd(n)}\"` : \"\"\n\t].filter(Boolean).join(\" \")}>${fd(e)}</div>`;\n}\nfunction dd(e) {\n\treturn e.split(/[\\s,]+/).filter(Boolean);\n}\nfunction fd(e) {\n\treturn [...e.childNodes].map((e) => e.toString()).join(\"\");\n}\nfunction pd(e) {\n\treturn e.replace(/&/g, \"&amp;\").replace(/\"/g, \"&quot;\").replace(/</g, \"&lt;\").replace(/>/g, \"&gt;\");\n}\nfunction md(e) {\n\treturn e.replace(/<(\\w+Interaction|qti-[\\w-]+-interaction|positionObjectStage|qti-position-object-stage)(\\s[^>]*)?>[\\s\\S]*?<\\/\\1>/gi, (e, t) => Xu(t.toLowerCase()) ? e : `<span class=\"qti-hidden-interaction\">${e}</span>`);\n}\nfunction hd({ interactions: e, source: t, responses: n, correctResponses: r, roleCapabilities: i, effectiveDisabled: a, onComponentError: o }) {\n\treturn e.filter((e) => !Yu(e.type)).map((e) => {\n\t\ttry {\n\t\t\tlet o = \"stringIdentifier\" in e && typeof e.stringIdentifier == \"string\" ? e.stringIdentifier : void 0;\n\t\t\treturn {\n\t\t\t\tplacement: \"block\",\n\t\t\t\trenderer: \"web-component\",\n\t\t\t\tinteraction: e,\n\t\t\t\ttagName: t.componentRegistry.getTagName(e),\n\t\t\t\tkey: gd(e),\n\t\t\t\tresponse: n[e.responseId] ?? null,\n\t\t\t\t...o ? { stringResponse: n[o] ?? null } : {},\n\t\t\t\tcorrectResponse: i.canViewCorrectResponses ? r[e.responseId] ?? null : null,\n\t\t\t\tpnp: t.pnp,\n\t\t\t\teliminationTool: t.pnp?.cognitive?.eliminationTool === !0,\n\t\t\t\tdisabled: a,\n\t\t\t\tcomponentRole: i.canViewCorrectResponses ? \"scorer\" : void 0\n\t\t\t};\n\t\t} catch (t) {\n\t\t\treturn o?.(e, t), null;\n\t\t}\n\t}).filter((e) => e !== null);\n}\nfunction gd(e) {\n\tlet t = e, n = Array.isArray(t?.choices) && t.choices.length > 0 ? t.choices.map((e) => e?.identifier).filter(Boolean).join(\",\") : \"\", r = typeof t?.prompt == \"string\" ? t.prompt : \"\";\n\treturn `${e.type}|${e.responseId}|${n}|${r}`;\n}\n//#endregion\n//#region src/core/ItemSession.ts\nfunction _d(e) {\n\tlet t = e;\n\tif (typeof t.getRuntimeBinding != \"function\") throw Error(\"ItemSession runtime binding is unavailable\");\n\treturn t.getRuntimeBinding();\n}\nvar vd = class {\n\tconstructor(e, t, n = {}, r) {\n\t\tthis.itemIdentifier = e, this.listeners = /* @__PURE__ */ new Set(), this.revision = 0, this.disposed = !1, this.defaultRole = t.role ?? \"candidate\";\n\t\tlet i = { ...t };\n\t\tthis.player = r ? gu(i, r, !!n.restore) : new _u(i);\n\t\ttry {\n\t\t\tif (n.responses && this.assertKnownResponseIdentifiers(Object.keys(n.responses)), n.restore && this.player.restoreItemSession(n.restore), n.activate && this.player.getLifecycleStatus() === \"suspended\" && this.player.activateAttempt(), n.responses) {\n\t\t\t\tlet e = this.player.getLifecycleStatus();\n\t\t\t\tif (!yd(e)) throw Error(`Cannot override responses while item session is ${e}`);\n\t\t\t\tthis.player.setResponses({ ...n.responses });\n\t\t\t}\n\t\t\tthis.currentView = this.captureView();\n\t\t} catch (e) {\n\t\t\tthrow this.player.destroy(), e;\n\t\t}\n\t\tthis.runtimeBinding = this.createBinding();\n\t}\n\tstate() {\n\t\treturn wd(this.currentView);\n\t}\n\tdispatch(e) {\n\t\tif (this.assertActive(), bd(e) && !yd(this.currentView.lifecycleStatus)) throw Error(`Cannot ${xd(e)} while item session is ${this.currentView.lifecycleStatus}`);\n\t\tlet t = this.currentView, n;\n\t\tswitch (e.action) {\n\t\t\tcase \"setResponse\":\n\t\t\t\tthis.assertKnownResponseIdentifiers([e.responseIdentifier]), this.player.setResponses({ [e.responseIdentifier]: e.value });\n\t\t\t\tbreak;\n\t\t\tcase \"setResponses\":\n\t\t\t\tthis.assertKnownResponseIdentifiers(Object.keys(e.responses)), this.player.setResponses({ ...e.responses });\n\t\t\t\tbreak;\n\t\t\tcase \"updatePnp\":\n\t\t\t\tthis.player.updatePnp(e.profile);\n\t\t\t\tbreak;\n\t\t\tdefault: n = this.player.runItemSessionAction(e);\n\t\t}\n\t\tthis.revision += 1, this.currentView = this.captureView(n?.sessionState);\n\t\tlet r = Cd({\n\t\t\tcommand: e,\n\t\t\tprevious: t,\n\t\t\tcurrent: this.currentView,\n\t\t\tresult: n\n\t\t});\n\t\treturn this.notify(r), r;\n\t}\n\tpresent(e = {}) {\n\t\treturn this.assertActive(), nd({\n\t\t\t...e,\n\t\t\tdisabled: e.disabled === !0 || !yd(this.currentView.lifecycleStatus),\n\t\t\tsource: {\n\t\t\t\titemBodyHtml: this.player.getItemBodyHtml(),\n\t\t\t\tinteractions: this.player.getInteractionData(),\n\t\t\t\tcorrectResponses: this.player.getCorrectResponses(),\n\t\t\t\tcomponentRegistry: this.player.getComponentRegistry(),\n\t\t\t\tdeliveryContext: this.player.getDeliveryContext(),\n\t\t\t\tpnp: this.player.getPnp(),\n\t\t\t\tsecurity: this.player.getSecurityConfig(),\n\t\t\t\tdirectRubrics: this.player.getRubrics({ scope: \"direct\" })\n\t\t\t},\n\t\t\tresponses: wd(this.currentView.responses),\n\t\t\toutcomeValues: wd(this.currentView.outcomes),\n\t\t\trole: this.defaultRole\n\t\t});\n\t}\n\tsubscribe(e) {\n\t\treturn this.assertActive(), this.listeners.add(e), () => this.listeners.delete(e);\n\t}\n\tserialize() {\n\t\treturn this.assertActive(), wd(this.player.saveItemSession());\n\t}\n\tgetRuntimeBinding() {\n\t\treturn this.assertActive(), this.runtimeBinding;\n\t}\n\tdispose() {\n\t\tif (this.disposed) return;\n\t\tlet e = this.currentView;\n\t\tthis.disposed = !0, this.revision += 1, this.currentView = wd({\n\t\t\t...e,\n\t\t\trevision: this.revision,\n\t\t\tdisposed: !0\n\t\t}), this.player.destroy(), this.notify(Cd({\n\t\t\tcommand: { action: \"dispose\" },\n\t\t\tprevious: e,\n\t\t\tcurrent: this.currentView\n\t\t})), this.listeners.clear();\n\t}\n\tcaptureView(e = this.player.saveItemSession()) {\n\t\tlet t = Sd(e.responseVariables);\n\t\treturn wd({\n\t\t\trevision: this.revision,\n\t\t\titemIdentifier: e.itemIdentifier || this.itemIdentifier || void 0,\n\t\t\trole: this.defaultRole,\n\t\t\tlifecycleStatus: e.lifecycleStatus,\n\t\t\tcompletionStatus: e.completionStatus,\n\t\t\tnumAttempts: e.numAttempts,\n\t\t\tduration: e.duration,\n\t\t\tadaptive: this.player.isAdaptive(),\n\t\t\tcompleted: this.player.isCompleted(),\n\t\t\tcanSubmit: this.player.canSubmitResponses(t),\n\t\t\tdisposed: this.disposed,\n\t\t\tresponses: t,\n\t\t\toutcomes: Sd(e.outcomeVariables),\n\t\t\ttemplates: Sd(e.templateVariables),\n\t\t\tcontext: Sd(e.contextVariables)\n\t\t});\n\t}\n\tcreateBinding() {\n\t\treturn Object.freeze({\n\t\t\trole: this.defaultRole,\n\t\t\tapplyPnp: (e) => {\n\t\t\t\tthis.assertActive(), this.player.applyPnp(e);\n\t\t\t},\n\t\t\tgetPnp: () => (this.assertActive(), this.player.getPnp()),\n\t\t\tonPnpChange: (e) => (this.assertActive(), this.player.onPnpChange(() => e())),\n\t\t\tgetCatalogEntry: (e, t, n, r) => (this.assertActive(), this.player.getCatalogEntry(e, t, n, r)),\n\t\t\tgetComponentRegistry: () => (this.assertActive(), this.player.getComponentRegistry()),\n\t\t\tgetDeliveryContext: () => (this.assertActive(), this.player.getDeliveryContext()),\n\t\t\tgetSecurityConfig: () => (this.assertActive(), this.player.getSecurityConfig()),\n\t\t\tgetI18nProvider: () => (this.assertActive(), this.player.getI18nProvider()),\n\t\t\tcreatePciHost: (e) => {\n\t\t\t\tthis.assertActive();\n\t\t\t\tlet t = this.player.createPciHost(e);\n\t\t\t\treturn t.onResponseChange(() => {\n\t\t\t\t\tif (this.disposed || !yd(this.currentView.lifecycleStatus)) return;\n\t\t\t\t\tlet n = this.currentView;\n\t\t\t\t\tthis.revision += 1, this.currentView = this.captureView(), this.notify(Cd({\n\t\t\t\t\t\tcommand: {\n\t\t\t\t\t\t\taction: \"setResponse\",\n\t\t\t\t\t\t\tresponseIdentifier: e.responseIdentifier,\n\t\t\t\t\t\t\tvalue: t.getResponse()\n\t\t\t\t\t\t},\n\t\t\t\t\t\tprevious: n,\n\t\t\t\t\t\tcurrent: this.currentView\n\t\t\t\t\t}));\n\t\t\t\t}), t;\n\t\t\t}\n\t\t});\n\t}\n\tnotify(e) {\n\t\tfor (let t of [...this.listeners]) try {\n\t\t\tt(wd(e));\n\t\t} catch (e) {\n\t\t\tconsole.error(\"[QTI ItemSession] subscriber failed:\", e);\n\t\t}\n\t}\n\tassertActive() {\n\t\tif (this.disposed) throw Error(\"ItemSession has been disposed\");\n\t}\n\tassertKnownResponseIdentifiers(e) {\n\t\tlet t = new Set(Object.keys(this.player.getResponses())), n = e.find((e) => !t.has(e));\n\t\tif (n) throw Error(`Unknown response identifier '${n}'`);\n\t}\n};\nfunction yd(e) {\n\treturn e === \"initial\" || e === \"interacting\";\n}\nfunction bd(e) {\n\treturn e.action === \"setResponse\" || e.action === \"setResponses\" || e.action === \"suspendAttempt\" || e.action === \"endAttempt\" || e.action === \"submitAttempt\";\n}\nfunction xd(e) {\n\treturn e.action === \"setResponse\" || e.action === \"setResponses\" ? \"update responses\" : `run ${e.action}`;\n}\nfunction Sd(e) {\n\treturn Object.fromEntries(Object.entries(e).map(([e, t]) => [e, wd(t.value)]));\n}\nfunction Cd(e) {\n\treturn wd(e);\n}\nfunction wd(e) {\n\tif (Array.isArray(e)) return Object.freeze(e.map((e) => wd(e)));\n\tif (!e || typeof e != \"object\") return e;\n\tif (ArrayBuffer.isView(e)) return structuredClone(e);\n\tif (e instanceof ArrayBuffer) return e.slice(0);\n\tlet t = Object.getPrototypeOf(e);\n\tif (t !== Object.prototype && t !== null) return e;\n\tlet n = Object.fromEntries(Object.entries(e).map(([e, t]) => [e, wd(t)]));\n\treturn Object.freeze(n);\n}\n//#endregion\n//#region src/core/AssessmentItemDefinition.ts\nfunction Td(e) {\n\treturn new Ed(e);\n}\nvar Ed = class {\n\tconstructor(e) {\n\t\tif (!e.itemXml.trim()) throw Error(\"AssessmentItemDefinition requires non-empty itemXml\");\n\t\tthis.rngFactory = e.rngFactory;\n\t\tlet t = e.plugins ? Object.freeze([...e.plugins]) : Object.freeze([]), n = kd(e), { elementNameMapper: r, attributeNameMapper: i } = Od(n), a = Ad(n, {\n\t\t\telementNameMapper: r,\n\t\t\tattributeNameMapper: i\n\t\t}, t);\n\t\tthis.prepared = hu({ ...a }), this.identifier = Dd(this.prepared), this.playerConfig = a, Object.freeze(this);\n\t}\n\topenSession(e = {}) {\n\t\tif (e.restore?.itemIdentifier && this.identifier && e.restore.itemIdentifier !== this.identifier) throw Error(`Cannot restore item session for '${e.restore.itemIdentifier}' into '${this.identifier}'`);\n\t\treturn new vd(this.identifier, Md(this.playerConfig, this.rngFactory), e, this.prepared);\n\t}\n};\nfunction Dd(e) {\n\tif (!e || typeof e != \"object\" || !(\"identifier\" in e) || typeof e.identifier != \"string\") throw Error(\"AssessmentItemDefinition compilation did not produce an identifier\");\n\treturn e.identifier;\n}\nfunction Od(i) {\n\tif (i.elementNameMapper && i.attributeNameMapper) return {\n\t\telementNameMapper: i.elementNameMapper,\n\t\tattributeNameMapper: i.attributeNameMapper\n\t};\n\tlet a = o(i.itemXml ?? \"\") === \"3.0\";\n\treturn {\n\t\telementNameMapper: i.elementNameMapper ?? (a ? new r() : new t()),\n\t\tattributeNameMapper: i.attributeNameMapper ?? (a ? new n() : new e())\n\t};\n}\nfunction kd(e) {\n\tlet { plugins: t, rngFactory: n, ...r } = e, i = {\n\t\t...r,\n\t\titemXml: e.itemXml,\n\t\t...e.processingFragmentLimits ? { processingFragmentLimits: Object.freeze({ ...e.processingFragmentLimits }) } : {},\n\t\t...e.pci ? { pci: Object.freeze({ ...e.pci }) } : {},\n\t\t...e.customOperators ? { customOperators: Object.freeze({ ...e.customOperators }) } : {},\n\t\t...e.security ? { security: Nd(e.security) } : {},\n\t\t...e.pnp ? { pnp: Nd(e.pnp) } : {},\n\t\t...e.deliveryContext ? { deliveryContext: Nd(e.deliveryContext) } : {}\n\t};\n\treturn Object.freeze(i);\n}\nfunction Ad(e, t, n) {\n\tlet r = Os(t.elementNameMapper);\n\tfor (let e of cl()) r.register(e.extractor), ks(r, e.type, e.delivery);\n\tlet i = _l(), a = /* @__PURE__ */ new Set();\n\tfor (let e of n) jd(e, a), e.registerExtractors?.(r), e.registerComponents?.(i), a.add(e.name);\n\treturn r.seal(), i.seal(), Object.freeze({\n\t\t...e,\n\t\telementNameMapper: t.elementNameMapper,\n\t\tattributeNameMapper: t.attributeNameMapper,\n\t\textractionRegistry: r,\n\t\tcomponentRegistry: i\n\t});\n}\nfunction jd(e, t) {\n\tif (e.kind !== \"assessment-item-definition-plugin\") throw Error(`Definition plugin '${e.name || \"<unnamed>\"}' must declare kind 'assessment-item-definition-plugin'`);\n\tif (!e.name || typeof e.name != \"string\") throw Error(\"AssessmentItemDefinition plugin must have a valid name\");\n\tif (!/^\\d+\\.\\d+\\.\\d+/.test(e.version)) throw Error(`Definition plugin '${e.name}' has invalid version format: ${e.version}`);\n\tif (t.has(e.name)) throw Error(`Definition plugin '${e.name}' is registered more than once`);\n\tlet n = (e.dependencies ?? []).filter((e) => !t.has(e));\n\tif (n.length > 0) throw Error(`Definition plugin '${e.name}' has missing dependencies: ${n.join(\", \")}`);\n}\nfunction Md(e, t) {\n\treturn {\n\t\t...e,\n\t\t...t ? { rng: t() } : {}\n\t};\n}\nfunction Nd(e) {\n\tif (Array.isArray(e)) return Object.freeze(e.map((e) => Nd(e)));\n\tif (!e || typeof e != \"object\" || Object.getPrototypeOf(e) !== Object.prototype) return e;\n\tlet t = Object.fromEntries(Object.entries(e).map(([e, t]) => [e, Nd(t)]));\n\treturn Object.freeze(t);\n}\n//#endregion\n//#region src/components/actions/typesetAction.ts\nfunction Pd(e, t) {\n\tif (!(typeof window < \"u\" && typeof MutationObserver < \"u\")) return {\n\t\tupdate() {},\n\t\tdestroy() {}\n\t};\n\tlet n = !1, r = !1, i = null, a = t, o = () => {\n\t\tn || r || !a.typeset || (r = !0, requestAnimationFrame(async () => {\n\t\t\tif (r = !1, !(n || !a.typeset)) try {\n\t\t\t\tawait a.typeset(e);\n\t\t\t} catch {}\n\t\t}));\n\t}, s = () => {\n\t\ti || (i = new MutationObserver(() => o()), i.observe(e, {\n\t\t\tchildList: !0,\n\t\t\tsubtree: !0,\n\t\t\tcharacterData: !0\n\t\t}));\n\t}, c = () => {\n\t\ti?.disconnect(), i = null;\n\t};\n\treturn o(), a.observe !== !1 && s(), {\n\t\tupdate(e) {\n\t\t\ta = e, a.observe === !1 ? c() : s(), o();\n\t\t},\n\t\tdestroy() {\n\t\t\tn = !0, c();\n\t\t}\n\t};\n}\n//#endregion\n//#region src/catalog/applyGlossaryTriggers.ts\nvar Fd = [\n\t{\n\t\tusage: \"tts-pronunciation\",\n\t\tflag: \"ttsPronunciation\",\n\t\tlabel: \"Request pronunciation\",\n\t\ttext: \"P\"\n\t},\n\t{\n\t\tusage: \"signing-definition\",\n\t\tflag: \"signingDefinition\",\n\t\tlabel: \"Request signing definition\",\n\t\ttext: \"S\"\n\t},\n\t{\n\t\tusage: \"braille-text\",\n\t\tflag: \"brailleText\",\n\t\tlabel: \"Request braille text\",\n\t\ttext: \"B\"\n\t},\n\t{\n\t\tusage: \"audio-description\",\n\t\tflag: \"audioDescription\",\n\t\tlabel: \"Request audio description\",\n\t\ttext: \"A\"\n\t},\n\t{\n\t\tusage: \"extended-description\",\n\t\tflag: \"extendedDescription\",\n\t\tlabel: \"Request extended description\",\n\t\ttext: \"D\"\n\t}\n], Id = \"illustrated-glossary\", Ld = /* @__PURE__ */ new Set([\n\t\"glossary-on-screen\",\n\t\"keyword-translation\",\n\tId\n]), Rd = new Set(Fd.map((e) => e.flag)), zd = new Set(Fd.map((e) => e.usage)), Bd = /^[a-z][a-z0-9._-]*$/;\nfunction Vd(e, t) {\n\tHd(e);\n\tlet n = t.getPnp();\n\tif (!n) return () => Hd(e);\n\tlet r = n.content?.glossaryOnScreen === !0, i = n.content?.keywordTranslation, a = i?.active === !0 && !!i.languageCode, o = n.content?.illustratedGlossary === !0, s = n.content?.catalogSupports ?? {}, c = Kd(s), l = Fd.some((e) => Jd(qd(s, e)));\n\tif (!r && !a && !o && !l && c.length === 0) return () => Hd(e);\n\tlet u = e.querySelectorAll(\"[data-catalog-idref]\");\n\tif (u.length === 0) return () => Hd(e);\n\tlet d = null;\n\tfor (let e of Array.from(u)) {\n\t\tlet n = e.getAttribute(\"data-catalog-idref\");\n\t\tif (!n) continue;\n\t\tlet l = Gd(e), u = document.createElement(\"span\");\n\t\tif (u.className = \"qti-catalog-term\", u.style.cssText = \"position:relative;display:inline\", e.parentNode?.insertBefore(u, e), u.appendChild(e), r) {\n\t\t\tlet r = Ud(e.textContent ?? n, \"glossary-on-screen\", \"Show definition\");\n\t\t\tu.appendChild(r), r.addEventListener(\"click\", () => {\n\t\t\t\tif (d) {\n\t\t\t\t\td(), d = null;\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tlet i = t.getCatalogEntry(n, \"glossary-on-screen\", void 0, { stimulusIdentifier: l });\n\t\t\t\ti !== null && (d = Qd(u, e.textContent ?? n, i, r, t, () => {\n\t\t\t\t\td = null;\n\t\t\t\t}));\n\t\t\t});\n\t\t}\n\t\tif (a) {\n\t\t\tlet r = i.languageCode, a = Ud(e.textContent ?? n, \"keyword-translation\", \"Show translation\");\n\t\t\tu.appendChild(a), a.addEventListener(\"click\", () => {\n\t\t\t\tif (d) {\n\t\t\t\t\td(), d = null;\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tlet i = t.getCatalogEntry(n, \"keyword-translation\", r, { stimulusIdentifier: l });\n\t\t\t\ti !== null && (d = Qd(u, e.textContent ?? n, i, a, t, () => {\n\t\t\t\t\td = null;\n\t\t\t\t}));\n\t\t\t});\n\t\t}\n\t\tif (o) {\n\t\t\tlet r = Ud(e.textContent ?? n, Id, \"Show illustrated glossary\");\n\t\t\tu.appendChild(r), r.addEventListener(\"click\", () => {\n\t\t\t\tif (d) {\n\t\t\t\t\td(), d = null;\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tlet i = t.getCatalogEntry(n, Id, void 0, { stimulusIdentifier: l });\n\t\t\t\ti !== null && (d = Qd(u, e.textContent ?? n, i, r, t, () => {\n\t\t\t\t\td = null;\n\t\t\t\t}));\n\t\t\t});\n\t\t}\n\t\tfor (let r of Fd) {\n\t\t\tlet i = qd(s, r);\n\t\t\tJd(i) && Wd(u, e, n, {\n\t\t\t\t...r,\n\t\t\t\tlanguageCode: Yd(i)\n\t\t\t}, t, l);\n\t\t}\n\t\tfor (let r of c) Wd(u, e, n, r, t, l);\n\t}\n\treturn () => {\n\t\td?.(), Hd(e);\n\t};\n}\nfunction Hd(e) {\n\tfor (let t of Array.from(e.querySelectorAll(\".qti-catalog-term\"))) {\n\t\tlet e = Array.from(t.children).find((e) => e.getAttribute?.(\"data-catalog-idref\") !== null);\n\t\te && t.parentNode && t.parentNode.insertBefore(e, t), t.remove();\n\t}\n}\nfunction Ud(e, t, n, r) {\n\tlet i = document.createElement(\"button\");\n\treturn i.type = \"button\", i.className = \"qti-catalog-trigger\", i.style.cssText = \"display:inline-flex;align-items:center;justify-content:center;min-width:1.75rem;min-height:1.75rem;margin-inline:0.25rem;line-height:1;\", i.setAttribute(\"aria-label\", `${n}: ${e}`), i.setAttribute(\"data-catalog-usage\", t), i.textContent = r ?? (t === \"keyword-translation\" ? \"T\" : t === Id ? \"I\" : \"?\"), i;\n}\nfunction Wd(e, t, n, r, i, a) {\n\tlet o = i.getCatalogEntry(n, r.usage, r.languageCode, { stimulusIdentifier: a });\n\tif (o === null) return;\n\tlet s = Ud(t.textContent ?? n, r.usage, r.label, r.text);\n\te.appendChild(s), s.addEventListener(\"click\", () => {\n\t\ts.dispatchEvent(new CustomEvent(\"qti-catalog-lookup\", {\n\t\t\tbubbles: !0,\n\t\t\tcomposed: !0,\n\t\t\tdetail: {\n\t\t\t\tidref: n,\n\t\t\t\tusage: r.usage,\n\t\t\t\thtml: o,\n\t\t\t\tcontent: o,\n\t\t\t\tlanguageCode: r.languageCode\n\t\t\t}\n\t\t}));\n\t});\n}\nfunction Gd(e) {\n\treturn (e.closest?.(\"[data-stimulus-idref]\"))?.getAttribute?.(\"data-stimulus-idref\")?.trim() || void 0;\n}\nfunction Kd(e) {\n\treturn Object.entries(e).map(([e, t]) => ({\n\t\tusage: Xd(e),\n\t\tpreference: t\n\t})).filter(({ usage: e, preference: t }) => e !== null && Jd(t) && !Zd(e)).map(({ usage: e, preference: t }) => ({\n\t\tusage: e,\n\t\tlabel: `Request ${e.replace(/[-_]+/g, \" \")}`,\n\t\ttext: e.slice(0, 1).toUpperCase(),\n\t\tlanguageCode: Yd(t)\n\t}));\n}\nfunction qd(e, t) {\n\treturn e[t.flag] ?? e[t.usage];\n}\nfunction Jd(e) {\n\treturn e === void 0 ? !1 : typeof e == \"boolean\" ? e : e.active !== !1;\n}\nfunction Yd(e) {\n\tif (!e || typeof e == \"boolean\") return;\n\tlet t = e.languageCode?.trim();\n\tif (!(!t || !/^[a-zA-Z]{2,8}(?:-[a-zA-Z0-9]{1,8})*$/.test(t))) return t;\n}\nfunction Xd(e) {\n\tlet t = e.trim().toLowerCase();\n\treturn Bd.test(t) ? t : null;\n}\nfunction Zd(e) {\n\treturn Rd.has(e) || zd.has(e) || Ld.has(e);\n}\nfunction Qd(e, t, n, r, i, a) {\n\tlet o = i.getComponentRegistry(), s, c = !1;\n\tfunction l() {\n\t\tc || (c = !0, s.remove(), r.focus(), a());\n\t}\n\tlet u = o.getTagNameForType(\"catalogPopup\");\n\tif (u !== null) {\n\t\tlet r = document.createElement(u);\n\t\tr.content = n, r.label = t, r.onClose = l, e.appendChild(r), s = r;\n\t} else s = $d(t, n, l), e.appendChild(s);\n\treturn l;\n}\nfunction $d(e, t, n) {\n\tlet r = document.createElement(\"div\");\n\tr.className = \"card card-bordered bg-base-100 shadow-lg qti-catalog-popup\", r.setAttribute(\"role\", \"dialog\"), r.setAttribute(\"aria-label\", e), r.setAttribute(\"aria-modal\", \"true\"), r.style.cssText = \"position:absolute;z-index:1000;min-width:16rem;max-width:24rem\";\n\tlet i = document.createElement(\"div\");\n\ti.className = \"card-title flex justify-between items-center px-3 py-2 border-b border-base-300 bg-base-200\";\n\tlet a = document.createElement(\"span\");\n\ta.className = \"text-sm font-semibold\", a.textContent = e;\n\tlet o = document.createElement(\"button\");\n\to.type = \"button\", o.className = \"btn btn-ghost btn-xs\", o.setAttribute(\"aria-label\", \"Close\"), o.textContent = \"✕\", i.appendChild(a), i.appendChild(o);\n\tlet s = document.createElement(\"div\");\n\ts.className = \"card-body p-3\";\n\tlet c = zl(t);\n\tif (/^(https?:\\/\\/|\\/)/i.test(c.trim())) {\n\t\tlet t = document.createElement(\"img\");\n\t\tt.src = c.trim(), t.alt = e, t.className = \"max-w-full h-auto block mx-auto\", s.appendChild(t);\n\t} else s.innerHTML = t;\n\tr.appendChild(i), r.appendChild(s);\n\tfunction l(e) {\n\t\tif (e.key === \"Escape\") {\n\t\t\te.preventDefault(), o.click();\n\t\t\treturn;\n\t\t}\n\t\tif (e.key === \"Tab\") {\n\t\t\tlet t = Array.from(r.querySelectorAll(\"a[href], button:not([disabled]), input:not([disabled]), [tabindex]:not([tabindex=\\\"-1\\\"])\")).filter((e) => e.offsetParent !== null);\n\t\t\tif (t.length === 0) {\n\t\t\t\te.preventDefault();\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tlet n = t[0], i = t[t.length - 1];\n\t\t\te.shiftKey && document.activeElement === n ? (e.preventDefault(), i.focus()) : !e.shiftKey && document.activeElement === i && (e.preventDefault(), n.focus());\n\t\t}\n\t}\n\treturn r.addEventListener(\"keydown\", l), o.addEventListener(\"click\", () => n()), setTimeout(() => o.focus(), 0), r;\n}\n//#endregion\n//#region src/catalog/glossaryAction.ts\nfunction ef(e, t) {\n\tlet n = Vd(e, t.player), r = t.player.onPnpChange?.(() => {\n\t\tn(), n = Vd(e, t.player);\n\t}) ?? (() => {});\n\treturn {\n\t\tupdate(t) {\n\t\t\tn(), r(), n = Vd(e, t.player), r = t.player.onPnpChange?.(() => {\n\t\t\t\tn(), n = Vd(e, t.player);\n\t\t\t}) ?? (() => {});\n\t\t},\n\t\tdestroy() {\n\t\t\tr(), n();\n\t\t}\n\t};\n}\n//#endregion\n//#region src/interactions/inline-choice/InlineChoice.svelte\nvar tf = /* @__PURE__ */ K(\"<option> </option>\"), nf = /* @__PURE__ */ K(\"<span class=\\\"qti-inline-choice-correct-badge svelte-p2969z\\\"> </span>\"), rf = /* @__PURE__ */ K(\"<span class=\\\"inline-choice-wrapper svelte-p2969z\\\"><select><option> </option><!></select> <!></span>\"), af = {\n\thash: \"svelte-p2969z\",\n\tcode: \".inline-choice-wrapper.svelte-p2969z {position:relative;display:inline-block;}.qti-inline-select.svelte-p2969z {display:inline-block;width:auto;min-width:120px;margin:0 4px;padding:0.25rem 1.75rem 0.25rem 0.5rem;border:1px solid var(--pie-qti-base-300, oklch(95% 0 0));border-radius:0.5rem;background:var(--pie-qti-base-100, oklch(100% 0 0));color:var(--pie-qti-base-content, oklch(21% 0 0));font:inherit;}.qti-inline-select.svelte-p2969z:focus-visible {outline:2px solid var(--pie-qti-focus, var(--pie-qti-primary, oklch(45% 0.24 277)));outline-offset:2px;}.qti-inline-select-correct.svelte-p2969z {border-color:var(--pie-qti-success, oklch(76% 0.177 163.223));background:color-mix(in oklch, var(--pie-qti-success, oklch(76% 0.177 163.223)) 10%, transparent);}.qti-inline-choice-correct-badge.svelte-p2969z {position:absolute;top:-1.5rem;left:0;display:inline-flex;align-items:center;white-space:nowrap;min-height:1.1rem;padding:0 0.5rem;border:1px solid var(--pie-qti-success, oklch(76% 0.177 163.223));border-radius:9999px;background:color-mix(in oklch, var(--pie-qti-success, oklch(76% 0.177 163.223)) 12%, transparent);color:var(--pie-qti-base-content, oklch(21% 0 0));font-size:0.7rem;font-weight:600;}\"\n};\nfunction of(e, t) {\n\tEt(t, !0), Ja(e, af);\n\tlet n = Uo(t, \"response\", 3, \"\"), r = Uo(t, \"correctAnswer\", 3, null), i = Uo(t, \"disabled\", 3, !1), a = Uo(t, \"onResponseChange\", 3, () => {}), o = /* @__PURE__ */ j(() => r() === null ? n() : r()), s = /* @__PURE__ */ j(() => r() ? t.interaction.choices.find((e) => e.identifier === r()) : null);\n\tfunction c(e) {\n\t\tlet n = e.currentTarget?.value ?? \"\";\n\t\ta()(t.interaction.responseId, n);\n\t}\n\tvar l = rf(), u = ur(l);\n\tlet d;\n\tvar f = ur(u), p = fr(f, !0);\n\tf.value = f.__value = \"\", Ba(pr(f), 17, () => t.interaction.choices, Ia, (e, t) => {\n\t\tlet n = /* @__PURE__ */ j(() => r() === G(t).identifier);\n\t\tvar i = tf(), a = fr(i), o = {};\n\t\tV(() => {\n\t\t\txa(a, `${G(t).text ?? \"\"}${G(n) ? \" ✓\" : \"\"}`), o !== (o = G(t).identifier) && (i.value = (i.__value = o) ?? \"\");\n\t\t}), q(e, i);\n\t}), k(u);\n\tvar m;\n\tpo(u);\n\tvar h = pr(u, 2), g = (e) => {\n\t\tvar n = nf(), r = fr(n);\n\t\tV((e) => xa(r, `${e ?? \"\"}: ${G(s).text ?? \"\"}`), [() => t.i18n?.t(\"interactions.choice.correct\", \"Correct\") ?? \"Correct\"]), q(e, n);\n\t};\n\tFa(h, (e) => {\n\t\tr() !== null && G(s) && e(g);\n\t}), k(l), V((e) => {\n\t\tY(u, \"aria-label\", `Inline choice ${t.interaction.responseId}${r() && G(s) ? \". Correct answer: \" + G(s).text : \"\"}`), u.disabled = i(), d = ao(u, 1, \"svelte-p2969z\", null, d, {\n\t\t\t\"qti-inline-select\": !0,\n\t\t\t\"qti-inline-select-correct\": r() !== null\n\t\t}), xa(p, e), m !== (m = G(o)) && (u.value = (u.__value = m) ?? \"\", fo(u, m));\n\t}, [() => t.interaction.label ?? t.interaction.dataPrompt ?? t.i18n?.t(\"interactions.inline.selectPlaceholder\", \"Select...\")]), Fi(\"change\", u, c), q(e, l), Dt();\n}\nIi([\"change\"]);\n//#endregion\n//#region src/interactions/text-entry/InlineTextEntry.svelte\nvar sf = /* @__PURE__ */ K(\"<span role=\\\"alert\\\" class=\\\"qti-text-entry-error svelte-v4bfxs\\\"> </span>\"), cf = /* @__PURE__ */ K(\"<input type=\\\"text\\\"/> <!>\", 1), lf = {\n\thash: \"svelte-v4bfxs\",\n\tcode: \".qti-inline-input.svelte-v4bfxs {box-sizing:border-box;padding:0.25rem 0.5rem;border:1px solid var(--pie-qti-base-300, oklch(95% 0 0));border-radius:0.5rem;background:var(--pie-qti-base-100, oklch(100% 0 0));color:var(--pie-qti-base-content, oklch(21% 0 0));font:inherit;}.qti-inline-input.svelte-v4bfxs:focus-visible {outline:2px solid var(--pie-qti-focus, var(--pie-qti-primary, oklch(45% 0.24 277)));outline-offset:2px;}.qti-inline-input-correct.svelte-v4bfxs {border-color:var(--pie-qti-success, oklch(76% 0.177 163.223));background:color-mix(in oklch, var(--pie-qti-success, oklch(76% 0.177 163.223)) 10%, transparent);}.qti-text-entry-error.svelte-v4bfxs {display:block;color:var(--pie-qti-error, oklch(71% 0.194 13.428));font-size:0.75rem;}\"\n};\nfunction uf(e, t) {\n\tEt(t, !0), Ja(e, lf);\n\tlet n = Uo(t, \"response\", 3, \"\"), r = Uo(t, \"correctAnswer\", 3, null), i = Uo(t, \"disabled\", 3, !1), a = Uo(t, \"onResponseChange\", 3, () => {}), o = /* @__PURE__ */ R(null), s = /* @__PURE__ */ j(() => r() === null ? n() : r()), c = /* @__PURE__ */ j(() => (t.interaction.interactionClasses ?? []).find((e) => e.startsWith(\"qti-input-width-\"))), l = /* @__PURE__ */ j(() => (t.interaction.interactionClasses ?? []).filter((e) => !e.startsWith(\"qti-input-width-\")).join(\" \")), u = /* @__PURE__ */ j(() => `${t.interaction.responseId}-error`);\n\tfunction d(e) {\n\t\tlet n = e.currentTarget, r = n?.value ?? \"\";\n\t\ta()(t.interaction.responseId, r), n?.validity.valid && z(o, null);\n\t}\n\tfunction f(e) {\n\t\te.preventDefault(), z(o, t.interaction.patternMaskMessage ?? t.i18n?.t(\"interactions.textEntry.patternError\", \"Please match the required format\") ?? \"Please match the required format\", !0);\n\t}\n\tfunction p(e) {\n\t\te.currentTarget?.checkValidity();\n\t}\n\tvar m = cf(), h = dr(m);\n\tTo(h);\n\tvar g = pr(h, 2), _ = (e) => {\n\t\tvar t = sf(), n = fr(t, !0);\n\t\tV(() => {\n\t\t\tY(t, \"id\", G(u)), xa(n, G(o));\n\t\t}), q(e, t);\n\t};\n\tFa(g, (e) => {\n\t\tG(o) && e(_);\n\t}), V((e) => {\n\t\tao(h, 1, e, \"svelte-v4bfxs\"), so(h, G(c) ? \"min-width: 100px; display: inline-block; margin: 0 4px;\" : `width: ${t.interaction.expectedLength * 8}px; min-width: 100px; display: inline-block; margin: 0 4px;`), Y(h, \"placeholder\", t.interaction.placeholderText || \"...\"), Y(h, \"pattern\", t.interaction.patternMask || void 0), Y(h, \"title\", t.interaction.patternMask ? `Format: ${t.interaction.patternMask}` : void 0), Y(h, \"data-format\", t.interaction.format || void 0), Y(h, \"aria-label\", `Text entry ${t.interaction.responseId}${r() ? \". Correct answer: \" + r() : \"\"}`), Y(h, \"aria-invalid\", G(o) ? \"true\" : void 0), Y(h, \"aria-describedby\", G(o) ? G(u) : void 0), Eo(h, G(s)), h.disabled = i();\n\t}, [() => $a([\n\t\t\"qti-inline-input\",\n\t\tr() === null ? \"\" : \"qti-inline-input-correct\",\n\t\tG(c) ?? \"\",\n\t\tG(l)\n\t].filter(Boolean).join(\" \"))]), Fi(\"input\", h, d), Pi(\"invalid\", h, f), Pi(\"blur\", h, p), q(e, m), Dt();\n}\nIi([\"input\"]);\n//#endregion\n//#region src/components/ItemBody.svelte\nvar df = 0, ff = /* @__PURE__ */ K(\"<div class=\\\"qti-item-body svelte-11qbngh\\\"><div class=\\\"qti-item-body-content svelte-11qbngh\\\"><div class=\\\"inline-interaction-container svelte-11qbngh\\\"><!> <!></div></div> <!></div>\"), pf = {\n\thash: \"svelte-11qbngh\",\n\tcode: \"\\n\t/* Allow the whole item body to shrink inside flex/grid layouts (prevents overflow). */.qti-item-body.svelte-11qbngh {max-width:100%;min-width:0;}.qti-item-body-content.svelte-11qbngh {max-width:none;margin-bottom:1rem;}\\n\\n\t/*\\n\t * Custom elements default to inline; force them to be block-level and width-contained.\\n\t * This prevents wide interactions (SVGs, tables, canvases) from spilling outside panels.\\n\t */.qti-item-body :is(\\n\t\tpie-qti-choice,\\n\t\tpie-qti-slider,\\n\t\tpie-qti-order,\\n\t\tpie-qti-match,\\n\t\tpie-qti-associate,\\n\t\tpie-qti-gap-match,\\n\t\tpie-qti-hotspot,\\n\t\tpie-qti-hottext,\\n\t\tpie-qti-media,\\n\t\tpie-qti-custom,\\n\t\tpie-qti-portable-custom,\\n\t\tpie-qti-end-attempt,\\n\t\tpie-qti-position-object,\\n\t\tpie-qti-graphic-gap-match,\\n\t\tpie-qti-graphic-order,\\n\t\tpie-qti-graphic-associate,\\n\t\tpie-qti-select-point,\\n\t\tpie-qti-extended-text\\n\t) {display:block;max-width:100%;min-width:0;}\\n\\n\t/* Keep inline interactions from breaking paragraph flow */.inline-interaction-container.svelte-11qbngh p {display:inline;}\\n\\n\t/*\\n\t * Hide all QTI interaction elements wrapped with qti-hidden-interaction.\\n\t * These are rendered separately as web components above.\\n\t * Keeping them in the HTML (but hidden) makes debugging easier and is fully extensible.\\n\t * Any *Interaction element will be automatically wrapped and hidden - no hardcoded list needed!\\n\t */.qti-item-body .qti-hidden-interaction {display:none !important;}\\n\\n\t/*\\n\t * Style for inline feedback elements that appear within choice text or other content.\\n\t * Provides visual distinction and spacing for feedback that appears inline with content.\\n\t */.qti-feedback-inline {display:inline-block;margin-left:0.5rem;padding-left:0.5rem;border-left:2px solid var(--pie-qti-base-content, currentColor);opacity:0.8;}\\n\\n\t/* QTI 3.0 Shared Stimulus: stimulus blocks that were prepended before the item body */.qti-stimulus-block {margin-bottom:1rem;}\\n\\n\t/* QTI rubricBlock / qti-rubric-block content rendered in item-body source order. */.qti-item-body .qti-rubric-block {display:block;max-width:100%;min-width:0;margin:1rem 0;padding:1rem;overflow-x:auto;border:1px solid var(--pie-qti-base-300, #d1d5db);border-inline-start:4px solid var(--pie-qti-primary, #2563eb);border-radius:0.5rem;background:var(--pie-qti-base-200, #f8fafc);}.qti-item-body .qti-rubric-block > :first-child {margin-top:0;}.qti-item-body .qti-rubric-block > :last-child {margin-bottom:0;}.qti-item-body .qti-rubric-block table {max-width:100%;border-collapse:collapse;}.qti-item-body .qti-rubric-block th,\\n\t.qti-item-body .qti-rubric-block td {padding:0.5rem;border:1px solid var(--pie-qti-base-300, #d1d5db);vertical-align:top;}\\n\\n\t/* QTI 3.0 Shared Vocabulary: qti-input-width-N sets minimum input width in character units. */.qti-input-width-1 {min-width:1ch;}.qti-input-width-2 {min-width:2ch;}.qti-input-width-3 {min-width:3ch;}.qti-input-width-4 {min-width:4ch;}.qti-input-width-5 {min-width:5ch;}.qti-input-width-6 {min-width:6ch;}.qti-input-width-10 {min-width:10ch;}.qti-input-width-15 {min-width:15ch;}.qti-input-width-20 {min-width:20ch;}.qti-input-width-25 {min-width:25ch;}.qti-input-width-30 {min-width:30ch;}.qti-input-width-35 {min-width:35ch;}.qti-input-width-40 {min-width:40ch;}.qti-input-width-45 {min-width:45ch;}.qti-input-width-50 {min-width:50ch;}.qti-input-width-72 {min-width:72ch;}\"\n};\nfunction mf(e, t) {\n\tEt(t, !0), Ja(e, pf);\n\tlet n = Uo(t, \"disabled\", 3, !1), r = Uo(t, \"renderItemBodyRubrics\", 3, !0), a = `qti-item-body-${++df}`, o = `[data-qti-item-body-scope=\"${a}\"]`, s = /* @__PURE__ */ j(() => t.i18n?.getLocale()), c = /* @__PURE__ */ j(() => t.i18n?.getDirection?.()), l = /* @__PURE__ */ j(() => _d(t.session)), u = /* @__PURE__ */ j(() => (t.revision, t.session.state())), d = /* @__PURE__ */ j(() => G(u).responses), f = /* @__PURE__ */ j(() => (t.revision, t.session.present({\n\t\tdisabled: n(),\n\t\theuristicsConfig: t.heuristicsConfig,\n\t\titemBodyScopeSelector: o,\n\t\trenderItemBodyRubrics: r(),\n\t\tonComponentError: (e, t) => console.error(`Failed to get tag name for ${e.type}:`, t)\n\t}))), p = /* @__PURE__ */ j(() => G(f).flow.flatMap((e) => e.kind === \"interaction\" && e.mount.placement === \"block\" ? [e.mount] : []));\n\tfunction m(e) {\n\t\tlet t = G(d)[e];\n\t\treturn typeof t == \"string\" ? t : \"\";\n\t}\n\tfunction h(e, n) {\n\t\ttry {\n\t\t\tt.session.dispatch({\n\t\t\t\taction: \"setResponse\",\n\t\t\t\tresponseIdentifier: e,\n\t\t\t\tvalue: n\n\t\t\t}), t.onResponseChange?.(e, n);\n\t\t} catch (e) {\n\t\t\tif (t.onError) {\n\t\t\t\tt.onError(e);\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tthrow e;\n\t\t}\n\t}\n\tfunction g(e) {\n\t\tlet { responseId: t, value: n } = e.detail;\n\t\th(t, n);\n\t}\n\tlet _ = (e) => G(l).createPciHost(e), v = /* @__PURE__ */ R(null);\n\tTr(() => {\n\t\tif (!G(v)) return;\n\t\tt.revision, G(l).applyPnp(G(v));\n\t\tlet e = (e) => g(e), n = G(v);\n\t\treturn n.addEventListener(\"qti-change\", e), () => {\n\t\t\tn.removeEventListener(\"qti-change\", e);\n\t\t};\n\t});\n\tfunction y(e, t) {\n\t\treturn queueMicrotask(() => {\n\t\t\te && i(e, t);\n\t\t}), {\n\t\t\tupdate(t) {\n\t\t\t\ti(e, t);\n\t\t\t},\n\t\t\tdestroy() {}\n\t\t};\n\t}\n\tvar b = ff(), ee = ur(b), x = ur(ee), S = ur(x), te = (e) => {\n\t\tvar t = Gi();\n\t\tqa(dr(t), () => \"style\", !1, (e, t) => {\n\t\t\tOo(e, () => ({ \"data-qti-stylesheets\": \"resolved\" }));\n\t\t\tvar n = Wi();\n\t\t\tV(() => xa(n, G(f).scopedCss)), q(t, n);\n\t\t}), q(e, t);\n\t};\n\tFa(S, (e) => {\n\t\tG(f).scopedCss && e(te);\n\t}), Ba(pr(S, 2), 17, () => G(f).flow, Ia, (e, n) => {\n\t\tvar r = Gi(), i = dr(r), a = (e) => {\n\t\t\tvar t = Gi();\n\t\t\tKa(dr(t), () => G(n).html), q(e, t);\n\t\t}, o = (e) => {\n\t\t\tlet r = /* @__PURE__ */ j(() => G(f).capabilities.canViewCorrectResponses ? G(f).correctResponses[G(n).mount.interaction.responseId] ?? null : null);\n\t\t\t{\n\t\t\t\tlet i = /* @__PURE__ */ j(() => m(G(n).mount.interaction.responseId)), a = /* @__PURE__ */ j(() => G(f).capabilities.canViewCorrectResponses ? G(r) : null);\n\t\t\t\tuf(e, {\n\t\t\t\t\tget interaction() {\n\t\t\t\t\t\treturn G(n).mount.interaction;\n\t\t\t\t\t},\n\t\t\t\t\tget response() {\n\t\t\t\t\t\treturn G(i);\n\t\t\t\t\t},\n\t\t\t\t\tget correctAnswer() {\n\t\t\t\t\t\treturn G(a);\n\t\t\t\t\t},\n\t\t\t\t\tget disabled() {\n\t\t\t\t\t\treturn G(f).disabled;\n\t\t\t\t\t},\n\t\t\t\t\tget i18n() {\n\t\t\t\t\t\treturn t.i18n;\n\t\t\t\t\t},\n\t\t\t\t\tonResponseChange: h\n\t\t\t\t});\n\t\t\t}\n\t\t}, s = (e) => {\n\t\t\tlet r = /* @__PURE__ */ j(() => G(f).capabilities.canViewCorrectResponses ? G(f).correctResponses[G(n).mount.interaction.responseId] ?? null : null);\n\t\t\t{\n\t\t\t\tlet i = /* @__PURE__ */ j(() => m(G(n).mount.interaction.responseId)), a = /* @__PURE__ */ j(() => G(f).capabilities.canViewCorrectResponses ? G(r) : null);\n\t\t\t\tof(e, {\n\t\t\t\t\tget interaction() {\n\t\t\t\t\t\treturn G(n).mount.interaction;\n\t\t\t\t\t},\n\t\t\t\t\tget response() {\n\t\t\t\t\t\treturn G(i);\n\t\t\t\t\t},\n\t\t\t\t\tget correctAnswer() {\n\t\t\t\t\t\treturn G(a);\n\t\t\t\t\t},\n\t\t\t\t\tget disabled() {\n\t\t\t\t\t\treturn G(f).disabled;\n\t\t\t\t\t},\n\t\t\t\t\tget i18n() {\n\t\t\t\t\t\treturn t.i18n;\n\t\t\t\t\t},\n\t\t\t\t\tonResponseChange: h\n\t\t\t\t});\n\t\t\t}\n\t\t};\n\t\tFa(i, (e) => {\n\t\t\tG(n).kind === \"html\" ? e(a) : G(n).mount.renderer === \"text-entry\" ? e(o, 1) : G(n).mount.renderer === \"inline-choice\" && e(s, 2);\n\t\t}), q(e, r);\n\t}), k(x), k(ee), Ba(pr(ee, 2), 17, () => G(p), (e) => e.key, (e, n) => {\n\t\tvar r = Gi();\n\t\tqa(dr(r), () => G(n).tagName, !1, (e, r) => {\n\t\t\tYa(e, (e, t) => y?.(e, t), () => ({\n\t\t\t\ti18n: t.i18n,\n\t\t\t\ttypeset: t.typeset,\n\t\t\t\tinteraction: G(n).interaction,\n\t\t\t\tresponse: G(n).response,\n\t\t\t\tstringResponse: G(n).stringResponse,\n\t\t\t\tcorrectResponse: G(n).correctResponse,\n\t\t\t\tpnp: G(n).pnp,\n\t\t\t\teliminationTool: G(n).eliminationTool,\n\t\t\t\tdisabled: G(n).disabled,\n\t\t\t\trole: G(n).componentRole,\n\t\t\t\tsecurity: G(l).getSecurityConfig(),\n\t\t\t\tcreatePciHost: _\n\t\t\t}));\n\t\t}), q(e, r);\n\t}), k(b), Bo(b, (e) => z(v, e), () => G(v)), Ya(b, (e, t) => Pd?.(e, t), () => ({ typeset: t.typeset })), Ya(b, (e, t) => ef?.(e, t), () => ({ player: G(l) })), V(() => {\n\t\tY(b, \"data-qti-item-body-scope\", a), Y(b, \"lang\", G(s)), Y(b, \"dir\", G(c)), b.dir = b.dir;\n\t}), q(e, b), Dt();\n}\n//#endregion\n//#region src/components/ModalFeedbackDisplay.svelte\nvar hf = /* @__PURE__ */ K(\"<h3 class=\\\"qti-feedback-title svelte-i66ia0\\\"> </h3>\"), gf = /* @__PURE__ */ K(\"<div class=\\\"qti-feedback-content svelte-i66ia0\\\"></div>\"), _f = /* @__PURE__ */ K(\"<div><!> <!></div>\"), vf = /* @__PURE__ */ K(\"<dialog open=\\\"\\\" class=\\\"qti-feedback-modal svelte-i66ia0\\\" aria-modal=\\\"true\\\"><div class=\\\"qti-feedback-modal-box svelte-i66ia0\\\"><button class=\\\"qti-feedback-close-button svelte-i66ia0\\\" type=\\\"button\\\">✕</button> <!> <div class=\\\"qti-feedback-actions svelte-i66ia0\\\"><button class=\\\"qti-feedback-primary-button svelte-i66ia0\\\" type=\\\"button\\\"> </button></div></div></dialog>\"), yf = {\n\thash: \"svelte-i66ia0\",\n\tcode: \".qti-feedback-modal.svelte-i66ia0 {box-sizing:border-box;width:100%;height:100%;max-width:none;max-height:none;margin:0;padding:0;border:0;background-color:rgba(0, 0, 0, 0.5);color:var(--pie-qti-base-content, oklch(21% 0 0));}.qti-feedback-modal[open].svelte-i66ia0 {display:grid;place-items:center;}.qti-feedback-modal-box.svelte-i66ia0 {position:relative;box-sizing:border-box;width:min(48rem, calc(100vw - 2rem));max-height:80vh;overflow-y:auto;padding:1.5rem;border:1px solid var(--pie-qti-base-300, oklch(95% 0 0));border-radius:1rem;background:var(--pie-qti-base-100, oklch(100% 0 0));box-shadow:0 20px 45px rgba(0, 0, 0, 0.2);}.qti-feedback-close-button.svelte-i66ia0,\\n\t.qti-feedback-primary-button.svelte-i66ia0 {display:inline-flex;align-items:center;justify-content:center;border:1px solid var(--pie-qti-base-300, oklch(95% 0 0));background:var(--pie-qti-base-100, oklch(100% 0 0));color:var(--pie-qti-base-content, oklch(21% 0 0));font:inherit;cursor:pointer;}.qti-feedback-close-button.svelte-i66ia0 {position:absolute;top:0.5rem;right:0.5rem;width:2rem;height:2rem;padding:0;border-radius:9999px;background:transparent;border-color:transparent;}.qti-feedback-close-button.svelte-i66ia0:hover {background:var(--pie-qti-base-200, oklch(98% 0 0));border-color:var(--pie-qti-base-300, oklch(95% 0 0));}.qti-feedback-primary-button.svelte-i66ia0 {gap:0.5rem;padding:0.5rem 0.75rem;border-radius:0.75rem;border-color:var(--pie-qti-primary, oklch(45% 0.24 277));background:color-mix(in oklch, var(--pie-qti-primary, oklch(45% 0.24 277)) 12%, transparent);}.qti-feedback-close-button.svelte-i66ia0:focus-visible,\\n\t.qti-feedback-primary-button.svelte-i66ia0:focus-visible {outline:2px solid var(--pie-qti-focus, var(--pie-qti-primary, oklch(45% 0.24 277)));outline-offset:2px;}.qti-feedback-item.svelte-i66ia0 {margin-bottom:1rem;}.qti-feedback-item-bordered.svelte-i66ia0 {padding-bottom:1rem;border-bottom:1px solid var(--pie-qti-base-300, oklch(95% 0 0));}.qti-feedback-title.svelte-i66ia0 {margin:0 0 0.5rem;font-size:1.125rem;font-weight:700;}.qti-feedback-content.svelte-i66ia0 {max-width:none;}.qti-feedback-actions.svelte-i66ia0 {display:flex;justify-content:flex-end;margin-top:1rem;}\"\n};\nfunction bf(e, t) {\n\tEt(t, !0), Ja(e, yf);\n\tlet n = Uo(t, \"feedback\", 19, () => []), r = /* @__PURE__ */ j(() => n().length > 0), i = \"item-player-modal-feedback-title\", a = /* @__PURE__ */ j(() => n().find((e) => e.title)?.title);\n\tfunction o() {\n\t\tt.onClose?.();\n\t}\n\tfunction s(e) {\n\t\te.target === e.currentTarget && o();\n\t}\n\tvar c = Gi(), l = dr(c), u = (e) => {\n\t\tvar r = vf(), c = ur(r), l = ur(c), u = pr(l, 2);\n\t\tBa(u, 17, n, Ia, (e, r, a) => {\n\t\t\tvar o = _f();\n\t\t\tlet s;\n\t\t\tvar c = ur(o), l = (e) => {\n\t\t\t\tvar t = hf();\n\t\t\t\tY(t, \"id\", a === 0 ? i : void 0);\n\t\t\t\tvar n = fr(t, !0);\n\t\t\t\tV(() => xa(n, G(r).title)), q(e, t);\n\t\t\t};\n\t\t\tFa(c, (e) => {\n\t\t\t\tG(r).title && e(l);\n\t\t\t});\n\t\t\tvar u = pr(c, 2), d = (e) => {\n\t\t\t\tvar n = gf();\n\t\t\t\tKa(n, () => G(r).content, !0), k(n), Ya(n, (e, t) => Pd?.(e, t), () => ({ typeset: t.typeset })), q(e, n);\n\t\t\t}, f = (e) => {\n\t\t\t\tvar t = gf();\n\t\t\t\tKa(t, () => G(r).content, !0), k(t), q(e, t);\n\t\t\t};\n\t\t\tFa(u, (e) => {\n\t\t\t\tt.typeset ? e(d) : e(f, -1);\n\t\t\t}), k(o), V(() => s = ao(o, 1, \"svelte-i66ia0\", null, s, {\n\t\t\t\t\"qti-feedback-item\": !0,\n\t\t\t\t\"qti-feedback-item-bordered\": a < n().length - 1\n\t\t\t})), q(e, o);\n\t\t});\n\t\tvar d = pr(u, 2), f = ur(d), p = fr(f, !0);\n\t\tk(d), k(c), k(r), V((e, t, n) => {\n\t\t\tY(r, \"aria-labelledby\", G(a) ? i : void 0), Y(r, \"aria-label\", e), Y(l, \"aria-label\", t), xa(p, n);\n\t\t}, [\n\t\t\t() => G(a) ? void 0 : t.i18n?.t(\"feedback.title\") ?? \"Feedback\",\n\t\t\t() => t.i18n?.t(\"feedback.closeFeedback\") ?? \"Close feedback\",\n\t\t\t() => t.i18n?.t(\"common.continue\") ?? \"Continue\"\n\t\t]), Fi(\"click\", r, s), Fi(\"click\", l, o), Fi(\"click\", f, o), q(e, r);\n\t};\n\tFa(l, (e) => {\n\t\tG(r) && e(u);\n\t}), q(e, c), Dt();\n}\nIi([\"click\"]);\n//#endregion\n//#region src/components/ItemPlayer.svelte\nvar xf = /* @__PURE__ */ K(\"<div class=\\\"qti-player-alert qti-player-alert-error svelte-129urwy\\\"><span> </span></div>\"), Sf = /* @__PURE__ */ K(\"<span class=\\\"qti-player-badge qti-player-badge-success svelte-129urwy\\\"> </span>\"), Cf = /* @__PURE__ */ K(\"<span> </span>\"), wf = /* @__PURE__ */ K(\"<div class=\\\"qti-player-attempt-status svelte-129urwy\\\"><!></div>\"), Tf = /* @__PURE__ */ K(\"<div class=\\\"qti-player-actions svelte-129urwy\\\"><button class=\\\"qti-player-button qti-player-button-primary svelte-129urwy\\\"> </button> <!></div>\"), Ef = /* @__PURE__ */ K(\"<!> <!> <!>\", 1), Df = /* @__PURE__ */ K(\"<div class=\\\"qti-player-alert qti-player-alert-info svelte-129urwy\\\"><span> </span></div>\"), Of = /* @__PURE__ */ K(\"<div class=\\\"qti-item-player svelte-129urwy\\\"><!></div>\"), kf = {\n\thash: \"svelte-129urwy\",\n\tcode: \".qti-item-player.svelte-129urwy {color:var(--pie-qti-base-content, oklch(21% 0 0));}.qti-player-alert.svelte-129urwy {display:flex;align-items:center;gap:0.5rem;padding:0.75rem 1rem;border:1px solid var(--pie-qti-base-300, oklch(95% 0 0));border-radius:0.75rem;background:var(--pie-qti-base-200, oklch(98% 0 0));color:var(--pie-qti-base-content, oklch(21% 0 0));}.qti-player-alert-error.svelte-129urwy {border-color:var(--pie-qti-error, oklch(71% 0.194 13.428));background:color-mix(in oklch, var(--pie-qti-error, oklch(71% 0.194 13.428)) 8%, transparent);}.qti-player-alert-info.svelte-129urwy {border-color:var(--pie-qti-info, oklch(74% 0.16 232.661));background:color-mix(in oklch, var(--pie-qti-info, oklch(74% 0.16 232.661)) 8%, transparent);}.qti-player-actions.svelte-129urwy {display:flex;align-items:center;gap:1rem;margin-top:1.5rem;}.qti-player-button.svelte-129urwy {display:inline-flex;align-items:center;justify-content:center;gap:0.5rem;padding:0.5rem 0.75rem;border:1px solid var(--pie-qti-base-300, oklch(95% 0 0));border-radius:0.75rem;background:var(--pie-qti-base-200, oklch(98% 0 0));color:var(--pie-qti-base-content, oklch(21% 0 0));font:inherit;line-height:1.1;cursor:pointer;}.qti-player-button-primary.svelte-129urwy {border-color:var(--pie-qti-primary, oklch(45% 0.24 277));background:color-mix(in oklch, var(--pie-qti-primary, oklch(45% 0.24 277)) 12%, transparent);}.qti-player-button.svelte-129urwy:disabled {opacity:0.55;cursor:not-allowed;}.qti-player-button.svelte-129urwy:focus-visible {outline:2px solid var(--pie-qti-focus, var(--pie-qti-primary, oklch(45% 0.24 277)));outline-offset:2px;}.qti-player-attempt-status.svelte-129urwy {color:color-mix(in oklch, var(--pie-qti-base-content, oklch(21% 0 0)) 70%, transparent);font-size:0.875rem;}.qti-player-badge.svelte-129urwy {display:inline-flex;align-items:center;justify-content:center;min-height:1.25rem;padding:0 0.5rem;border:1px solid var(--pie-qti-base-300, oklch(95% 0 0));border-radius:9999px;font-size:0.75rem;font-weight:600;}.qti-player-badge-success.svelte-129urwy {border-color:var(--pie-qti-success, oklch(76% 0.177 163.223));background:color-mix(in oklch, var(--pie-qti-success, oklch(76% 0.177 163.223)) 12%, transparent);}\"\n};\nfunction Af(e, t) {\n\tEt(t, !0), Ja(e, kf);\n\tlet n = Uo(t, \"role\", 3, \"candidate\"), r = Uo(t, \"responses\", 19, () => ({})), i = Uo(t, \"disabled\", 3, !1), a = Uo(t, \"renderItemBodyRubrics\", 3, !0), o = /* @__PURE__ */ j(() => t.showSubmit ?? !!t.onSubmit), s = /* @__PURE__ */ R(null), c = /* @__PURE__ */ R(null), l = /* @__PURE__ */ R(null), u = /* @__PURE__ */ R(er([])), d = /* @__PURE__ */ j(() => G(c)?.adaptive ?? !1), f = /* @__PURE__ */ j(() => G(c)?.completed ?? !1), p = /* @__PURE__ */ j(() => G(c)?.numAttempts ?? 0), m = /* @__PURE__ */ j(() => G(c)?.canSubmit ?? !1), h = /* @__PURE__ */ j(() => G(c)?.role ?? n());\n\tfunction g(e) {\n\t\tz(c, e, !0);\n\t}\n\tTr(() => {\n\t\tlet e = null, i = !1;\n\t\ttry {\n\t\t\tif (t.session) e = t.session;\n\t\t\telse {\n\t\t\t\tlet a = _i(() => r());\n\t\t\t\te = Td({\n\t\t\t\t\titemXml: t.itemXml,\n\t\t\t\t\trole: n(),\n\t\t\t\t\tsecurity: t.security,\n\t\t\t\t\tpnp: t.pnp,\n\t\t\t\t\tdeliveryContext: t.deliveryContext,\n\t\t\t\t\tresolveProcessingFragment: t.resolveProcessingFragment,\n\t\t\t\t\tprocessingFragmentLimits: t.processingFragmentLimits,\n\t\t\t\t\tpci: t.pci,\n\t\t\t\t\tplugins: t.plugins\n\t\t\t\t}).openSession({ responses: a }), i = !0;\n\t\t\t}\n\t\t\tz(s, e, !0), g(e.state()), z(l, null), z(u, [], !0);\n\t\t\tlet a = e.subscribe(({ command: n, current: r }) => {\n\t\t\t\tif (g(r), r.disposed) {\n\t\t\t\t\tG(s) === e && z(s, null);\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tn.action === \"setResponse\" && t.onResponseChange?.(n.responseIdentifier, r.responses[n.responseIdentifier]);\n\t\t\t});\n\t\t\treturn () => {\n\t\t\t\ta(), i && e?.dispose(), G(s) === e && (z(s, null), z(c, null));\n\t\t\t};\n\t\t} catch (n) {\n\t\t\ti && e?.dispose(), z(l, n instanceof Error ? n.message : t.i18n?.t(\"item.parsingError\") ?? \"item.parsingError\", !0), z(s, null), z(c, null);\n\t\t}\n\t}), Tr(() => {\n\t\tlet e = r(), n = G(s);\n\t\tif (!n || t.session) return;\n\t\tlet i = n.state().responses;\n\t\tif ([.../* @__PURE__ */ new Set([...Object.keys(i), ...Object.keys(e)])].some((t) => i[t] !== e[t])) try {\n\t\t\tn.dispatch({\n\t\t\t\taction: \"setResponses\",\n\t\t\t\tresponses: e\n\t\t\t});\n\t\t} catch (e) {\n\t\t\tz(l, e instanceof Error ? e.message : t.i18n?.t(\"item.processingError\") ?? \"item.processingError\", !0);\n\t\t}\n\t});\n\tfunction _(e) {\n\t\tz(l, e instanceof Error ? e.message : t.i18n?.t(\"item.processingError\") ?? \"item.processingError\", !0);\n\t}\n\tfunction v(e = !0) {\n\t\tif (G(s)) try {\n\t\t\tlet n = G(s).dispatch(G(d) ? {\n\t\t\t\taction: \"submitAttempt\",\n\t\t\t\tcountAttempt: e\n\t\t\t} : {\n\t\t\t\taction: \"endAttempt\",\n\t\t\t\tcountAttempt: e\n\t\t\t}), r = n.result?.scoring;\n\t\t\tif (!r) throw Error(\"Item session submission did not produce a scoring result\");\n\t\t\tz(u, r.modalFeedback || [], !0);\n\t\t\tlet i = { ...n.current.responses };\n\t\t\tif (t.onSubmit?.(i, r), G(d)) {\n\t\t\t\tlet e = r;\n\t\t\t\treturn e.completed && t.onComplete?.(e), e;\n\t\t\t}\n\t\t\treturn r;\n\t\t} catch (e) {\n\t\t\tz(l, e instanceof Error ? e.message : t.i18n?.t(\"item.processingError\") ?? \"item.processingError\", !0);\n\t\t}\n\t}\n\tfunction y() {\n\t\tz(u, [], !0);\n\t}\n\tvar b = { submit: v }, ee = Of(), x = ur(ee), S = (e) => {\n\t\tvar t = xf(), n = fr(ur(t), !0);\n\t\tk(t), V(() => xa(n, G(l))), q(e, t);\n\t}, te = (e) => {\n\t\tvar n = Ef(), r = dr(n);\n\t\tmf(r, {\n\t\t\tget session() {\n\t\t\t\treturn G(s);\n\t\t\t},\n\t\t\tget revision() {\n\t\t\t\treturn G(c).revision;\n\t\t\t},\n\t\t\tget disabled() {\n\t\t\t\treturn i();\n\t\t\t},\n\t\t\tget typeset() {\n\t\t\t\treturn t.typeset;\n\t\t\t},\n\t\t\tget i18n() {\n\t\t\t\treturn t.i18n;\n\t\t\t},\n\t\t\tget renderItemBodyRubrics() {\n\t\t\t\treturn a();\n\t\t\t},\n\t\t\tonError: _\n\t\t});\n\t\tvar l = pr(r, 2), g = (e) => {\n\t\t\tvar n = Tf(), r = ur(n), i = fr(r, !0), a = pr(r, 2), o = (e) => {\n\t\t\t\tvar n = wf(), r = ur(n), i = (e) => {\n\t\t\t\t\tvar n = Sf(), r = fr(n, !0);\n\t\t\t\t\tV((e) => xa(r, e), [() => t.i18n?.t(\"item.complete\") ?? \"item.complete\"]), q(e, n);\n\t\t\t\t}, a = (e) => {\n\t\t\t\t\tvar n = Cf(), r = fr(n, !0);\n\t\t\t\t\tV((e) => xa(r, e), [() => t.i18n?.t(\"item.attempt\", { numAttempts: G(p) + 1 }) ?? `item.attempt (${G(p) + 1})`]), q(e, n);\n\t\t\t\t};\n\t\t\t\tFa(r, (e) => {\n\t\t\t\t\tG(f) ? e(i) : e(a, -1);\n\t\t\t\t}), k(n), q(e, n);\n\t\t\t};\n\t\t\tFa(a, (e) => {\n\t\t\t\tG(d) && e(o);\n\t\t\t}), k(n), V((e) => {\n\t\t\t\tr.disabled = G(f) || !G(m), xa(i, e);\n\t\t\t}, [() => G(d) && G(f) ? t.i18n?.t(\"item.completed\") ?? \"item.completed\" : t.i18n?.t(\"item.submit\") ?? \"item.submit\"]), Fi(\"click\", r, () => v(!0)), q(e, n);\n\t\t};\n\t\tFa(l, (e) => {\n\t\t\tG(h) === \"candidate\" && !i() && G(o) && e(g);\n\t\t}), bf(pr(l, 2), {\n\t\t\tget feedback() {\n\t\t\t\treturn G(u);\n\t\t\t},\n\t\t\tonClose: y,\n\t\t\tget typeset() {\n\t\t\t\treturn t.typeset;\n\t\t\t},\n\t\t\tget i18n() {\n\t\t\t\treturn t.i18n;\n\t\t\t}\n\t\t}), q(e, n);\n\t}, C = (e) => {\n\t\tvar n = Df(), r = fr(ur(n), !0);\n\t\tk(n), V((e) => xa(r, e), [() => t.i18n?.t(\"item.loading\") ?? \"item.loading\"]), q(e, n);\n\t};\n\treturn Fa(x, (e) => {\n\t\tG(l) ? e(S) : G(s) && G(c) ? e(te, 1) : e(C, -1);\n\t}), k(ee), q(e, ee), Dt(b);\n}\nIi([\"click\"]);\n//#endregion\n//#region src/element-class.ts\nvar jf = globalThis.HTMLElement ?? class {}, Mf = /* @__PURE__ */ new WeakMap(), Nf = /* @__PURE__ */ new WeakMap(), Pf = /* @__PURE__ */ new WeakMap(), Ff = /* @__PURE__ */ new WeakMap(), If = /* @__PURE__ */ new WeakMap(), Lf = /* @__PURE__ */ new WeakMap(), Rf = /* @__PURE__ */ new WeakMap(), zf = /* @__PURE__ */ new WeakMap(), Bf = /* @__PURE__ */ new WeakMap(), Vf = /* @__PURE__ */ new WeakMap(), Hf = /* @__PURE__ */ new WeakMap(), Uf = /* @__PURE__ */ new WeakMap(), Wf = /* @__PURE__ */ new WeakMap(), Gf = /* @__PURE__ */ new WeakMap(), Kf = /* @__PURE__ */ new WeakMap(), qf = /* @__PURE__ */ new WeakMap(), Jf = /* @__PURE__ */ new WeakMap(), Q = /* @__PURE__ */ new WeakSet(), Yf = class extends jf {\n\tconstructor(...e) {\n\t\tsuper(...e), en(this, Q), M(this, Mf, a({\n\t\t\thost: this,\n\t\t\tcreateSubscriber: Ki,\n\t\t\tmount: (e, t) => Sa(Af, {\n\t\t\t\ttarget: e,\n\t\t\t\tprops: t\n\t\t\t}),\n\t\t\tunmount: Ea\n\t\t})), M(this, Nf, \"\"), M(this, Pf, \"candidate\"), M(this, Ff, !1), M(this, If, void 0), M(this, Lf, !0), M(this, Rf, void 0), M(this, zf, void 0), M(this, Bf, void 0), M(this, Vf, void 0), M(this, Hf, void 0), M(this, Uf, void 0), M(this, Wf, void 0), M(this, Gf, void 0), M(this, Kf, void 0), M(this, qf, void 0), M(this, Jf, void 0);\n\t}\n\tstatic get observedAttributes() {\n\t\treturn [\n\t\t\t\"item-xml\",\n\t\t\t\"role\",\n\t\t\t\"disabled\",\n\t\t\t\"locale\"\n\t\t];\n\t}\n\tget itemXml() {\n\t\treturn F(Nf, this);\n\t}\n\tset itemXml(e) {\n\t\tP(Nf, this, e ?? \"\"), N(Q, this, $).call(this);\n\t}\n\tget role() {\n\t\treturn F(Pf, this);\n\t}\n\tset role(e) {\n\t\tP(Pf, this, e ?? \"candidate\"), N(Q, this, $).call(this);\n\t}\n\tget disabled() {\n\t\treturn F(Ff, this);\n\t}\n\tset disabled(e) {\n\t\tP(Ff, this, !!e), N(Q, this, $).call(this);\n\t}\n\tget locale() {\n\t\treturn F(If, this);\n\t}\n\tset locale(e) {\n\t\tP(If, this, e ?? void 0), N(Q, this, $).call(this);\n\t}\n\tget renderItemBodyRubrics() {\n\t\treturn F(Lf, this);\n\t}\n\tset renderItemBodyRubrics(e) {\n\t\tP(Lf, this, e !== !1), N(Q, this, $).call(this);\n\t}\n\tget typeset() {\n\t\treturn F(Rf, this);\n\t}\n\tset typeset(e) {\n\t\tP(Rf, this, e), N(Q, this, $).call(this);\n\t}\n\tget i18n() {\n\t\treturn F(zf, this);\n\t}\n\tset i18n(e) {\n\t\tP(zf, this, e), N(Q, this, $).call(this);\n\t}\n\tget security() {\n\t\treturn F(Bf, this);\n\t}\n\tset security(e) {\n\t\tP(Bf, this, e), N(Q, this, $).call(this);\n\t}\n\tget pnp() {\n\t\treturn F(Vf, this);\n\t}\n\tset pnp(e) {\n\t\tP(Vf, this, e), N(Q, this, $).call(this);\n\t}\n\tget deliveryContext() {\n\t\treturn F(Hf, this);\n\t}\n\tset deliveryContext(e) {\n\t\tP(Hf, this, e), N(Q, this, $).call(this);\n\t}\n\tget pci() {\n\t\treturn F(Gf, this);\n\t}\n\tset pci(e) {\n\t\tP(Gf, this, e), N(Q, this, $).call(this);\n\t}\n\tget plugins() {\n\t\treturn F(Kf, this);\n\t}\n\tset plugins(e) {\n\t\tP(Kf, this, e ? Object.freeze([...e]) : void 0), N(Q, this, $).call(this);\n\t}\n\tget resolveProcessingFragment() {\n\t\treturn F(Uf, this);\n\t}\n\tset resolveProcessingFragment(e) {\n\t\tP(Uf, this, e), N(Q, this, $).call(this);\n\t}\n\tget processingFragmentLimits() {\n\t\treturn F(Wf, this);\n\t}\n\tset processingFragmentLimits(e) {\n\t\tP(Wf, this, e), N(Q, this, $).call(this);\n\t}\n\tget responses() {\n\t\treturn F(Jf, this);\n\t}\n\tget session() {\n\t\treturn F(qf, this);\n\t}\n\tset session(e) {\n\t\tP(qf, this, e), N(Q, this, $).call(this);\n\t}\n\tset responses(e) {\n\t\tP(Jf, this, e ? { ...e } : void 0), N(Q, this, $).call(this);\n\t}\n\tconnectedCallback() {\n\t\tF(Mf, this).mountOrUpdate(N(Q, this, Zf).call(this)), queueMicrotask(() => {\n\t\t\tthis.isConnected && this.dispatchEvent(new CustomEvent(\"ready\", {\n\t\t\t\tbubbles: !0,\n\t\t\t\tcomposed: !0\n\t\t\t}));\n\t\t});\n\t}\n\tdisconnectedCallback() {\n\t\tF(Mf, this).teardown({ removeContainer: !0 });\n\t}\n\tattributeChangedCallback(e, t, n) {\n\t\te === \"item-xml\" ? P(Nf, this, n ?? \"\") : e === \"role\" ? P(Pf, this, n ?? \"candidate\") : e === \"disabled\" ? P(Ff, this, n !== null) : e === \"locale\" && P(If, this, n ?? void 0), N(Q, this, $).call(this);\n\t}\n\tsubmit(e = !0) {\n\t\treturn F(Mf, this).instance?.submit(e);\n\t}\n\taddEventListener(e, t, n) {\n\t\tsuper.addEventListener(e, t, n);\n\t}\n};\nfunction Xf() {\n\treturn !F(zf, this) || !F(If, this) ? F(zf, this) : F(zf, this).withLocale?.(F(If, this)) ?? F(zf, this);\n}\nfunction Zf() {\n\treturn {\n\t\titemXml: F(Nf, this),\n\t\tsession: F(qf, this),\n\t\trole: F(Pf, this),\n\t\tdisabled: F(Ff, this),\n\t\trenderItemBodyRubrics: F(Lf, this),\n\t\ttypeset: F(Rf, this),\n\t\ti18n: N(Q, this, Xf).call(this),\n\t\tsecurity: {\n\t\t\t...F(Bf, this) ?? {},\n\t\t\tparsingLimits: {\n\t\t\t\tenabled: !0,\n\t\t\t\t...F(Bf, this)?.parsingLimits ?? {}\n\t\t\t}\n\t\t},\n\t\tpnp: F(Vf, this),\n\t\tdeliveryContext: F(Hf, this),\n\t\tresolveProcessingFragment: F(Uf, this),\n\t\tprocessingFragmentLimits: F(Wf, this),\n\t\tpci: F(Gf, this),\n\t\tplugins: F(Kf, this),\n\t\tresponses: F(Jf, this),\n\t\tonResponseChange: (e, t) => {\n\t\t\tlet n = F(qf, this) ? { ...F(qf, this).state().responses } : {\n\t\t\t\t...F(Jf, this) ?? {},\n\t\t\t\t[e]: t\n\t\t\t};\n\t\t\tP(Jf, this, n), this.dispatchEvent(new CustomEvent(\"response-change\", {\n\t\t\t\tdetail: {\n\t\t\t\t\tresponseId: e,\n\t\t\t\t\tvalue: t,\n\t\t\t\t\tresponses: { ...n }\n\t\t\t\t},\n\t\t\t\tbubbles: !0,\n\t\t\t\tcomposed: !0\n\t\t\t}));\n\t\t},\n\t\tonSubmit: (e, t) => {\n\t\t\tlet n = { ...e };\n\t\t\tP(Jf, this, n), this.dispatchEvent(new CustomEvent(\"submit\", {\n\t\t\t\tdetail: {\n\t\t\t\t\tresponses: n,\n\t\t\t\t\tresult: t\n\t\t\t\t},\n\t\t\t\tbubbles: !0,\n\t\t\t\tcomposed: !0\n\t\t\t}));\n\t\t},\n\t\tshowSubmit: !1,\n\t\tonComplete: (e) => {\n\t\t\tthis.dispatchEvent(new CustomEvent(\"complete\", {\n\t\t\t\tdetail: { result: e },\n\t\t\t\tbubbles: !0,\n\t\t\t\tcomposed: !0\n\t\t\t}));\n\t\t}\n\t};\n}\nfunction $() {\n\tF(Mf, this).update(N(Q, this, Zf).call(this));\n}\n//#endregion\nexport { Yf as t };\n\n//# sourceMappingURL=element-class-B_qAd8ET.js.map"],"x_google_ignoreList":[8,13,14,15,16,17,18,19,20,23],"mappings":";;AAUA,IAAa,IAAb,MAAoC;CAChC,UAAU;CAMV,YAAY,GAAa;EACrB,OAAO,EAAY,YAAY;CACnC;CASA,SAAS,GAAe;EAGpB,OAAO;CACX;CAQA,mBAAmB,GAAa;EAG5B,OAAO,sBAAsB,KAAK,CAAW;CACjD;AACJ,GChCa,IAAgB;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