@pokash/n8n-nodes-ksef 0.2.12 → 0.2.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/node_modules/@oozcitak/dom/LICENSE +21 -0
- package/node_modules/@oozcitak/dom/README.md +32 -0
- package/node_modules/@oozcitak/dom/lib/algorithm/AbortAlgorithm.d.ts +21 -0
- package/node_modules/@oozcitak/dom/lib/algorithm/AbortAlgorithm.js +79 -0
- package/node_modules/@oozcitak/dom/lib/algorithm/AbortAlgorithm.js.map +1 -0
- package/node_modules/@oozcitak/dom/lib/algorithm/AttrAlgorithm.d.ts +8 -0
- package/node_modules/@oozcitak/dom/lib/algorithm/AttrAlgorithm.js +23 -0
- package/node_modules/@oozcitak/dom/lib/algorithm/AttrAlgorithm.js.map +1 -0
- package/node_modules/@oozcitak/dom/lib/algorithm/BoundaryPointAlgorithm.d.ts +8 -0
- package/node_modules/@oozcitak/dom/lib/algorithm/BoundaryPointAlgorithm.js +76 -0
- package/node_modules/@oozcitak/dom/lib/algorithm/BoundaryPointAlgorithm.js.map +1 -0
- package/node_modules/@oozcitak/dom/lib/algorithm/CharacterDataAlgorithm.d.ts +19 -0
- package/node_modules/@oozcitak/dom/lib/algorithm/CharacterDataAlgorithm.js +140 -0
- package/node_modules/@oozcitak/dom/lib/algorithm/CharacterDataAlgorithm.js.map +1 -0
- package/node_modules/@oozcitak/dom/lib/algorithm/CreateAlgorithm.d.ts +192 -0
- package/node_modules/@oozcitak/dom/lib/algorithm/CreateAlgorithm.js +303 -0
- package/node_modules/@oozcitak/dom/lib/algorithm/CreateAlgorithm.js.map +1 -0
- package/node_modules/@oozcitak/dom/lib/algorithm/CustomElementAlgorithm.d.ts +61 -0
- package/node_modules/@oozcitak/dom/lib/algorithm/CustomElementAlgorithm.js +108 -0
- package/node_modules/@oozcitak/dom/lib/algorithm/CustomElementAlgorithm.js.map +1 -0
- package/node_modules/@oozcitak/dom/lib/algorithm/DOMAlgorithm.d.ts +72 -0
- package/node_modules/@oozcitak/dom/lib/algorithm/DOMAlgorithm.js +288 -0
- package/node_modules/@oozcitak/dom/lib/algorithm/DOMAlgorithm.js.map +1 -0
- package/node_modules/@oozcitak/dom/lib/algorithm/DOMTokenListAlgorithm.d.ts +21 -0
- package/node_modules/@oozcitak/dom/lib/algorithm/DOMTokenListAlgorithm.js +61 -0
- package/node_modules/@oozcitak/dom/lib/algorithm/DOMTokenListAlgorithm.js.map +1 -0
- package/node_modules/@oozcitak/dom/lib/algorithm/DocumentAlgorithm.d.ts +29 -0
- package/node_modules/@oozcitak/dom/lib/algorithm/DocumentAlgorithm.js +161 -0
- package/node_modules/@oozcitak/dom/lib/algorithm/DocumentAlgorithm.js.map +1 -0
- package/node_modules/@oozcitak/dom/lib/algorithm/ElementAlgorithm.d.ts +121 -0
- package/node_modules/@oozcitak/dom/lib/algorithm/ElementAlgorithm.js +608 -0
- package/node_modules/@oozcitak/dom/lib/algorithm/ElementAlgorithm.js.map +1 -0
- package/node_modules/@oozcitak/dom/lib/algorithm/EventAlgorithm.d.ts +146 -0
- package/node_modules/@oozcitak/dom/lib/algorithm/EventAlgorithm.js +995 -0
- package/node_modules/@oozcitak/dom/lib/algorithm/EventAlgorithm.js.map +1 -0
- package/node_modules/@oozcitak/dom/lib/algorithm/EventTargetAlgorithm.d.ts +33 -0
- package/node_modules/@oozcitak/dom/lib/algorithm/EventTargetAlgorithm.js +142 -0
- package/node_modules/@oozcitak/dom/lib/algorithm/EventTargetAlgorithm.js.map +1 -0
- package/node_modules/@oozcitak/dom/lib/algorithm/MutationAlgorithm.d.ts +66 -0
- package/node_modules/@oozcitak/dom/lib/algorithm/MutationAlgorithm.js +1173 -0
- package/node_modules/@oozcitak/dom/lib/algorithm/MutationAlgorithm.js.map +1 -0
- package/node_modules/@oozcitak/dom/lib/algorithm/MutationObserverAlgorithm.d.ts +43 -0
- package/node_modules/@oozcitak/dom/lib/algorithm/MutationObserverAlgorithm.js +276 -0
- package/node_modules/@oozcitak/dom/lib/algorithm/MutationObserverAlgorithm.js.map +1 -0
- package/node_modules/@oozcitak/dom/lib/algorithm/NamespaceAlgorithm.d.ts +25 -0
- package/node_modules/@oozcitak/dom/lib/algorithm/NamespaceAlgorithm.js +85 -0
- package/node_modules/@oozcitak/dom/lib/algorithm/NamespaceAlgorithm.js.map +1 -0
- package/node_modules/@oozcitak/dom/lib/algorithm/NodeAlgorithm.d.ts +68 -0
- package/node_modules/@oozcitak/dom/lib/algorithm/NodeAlgorithm.js +543 -0
- package/node_modules/@oozcitak/dom/lib/algorithm/NodeAlgorithm.js.map +1 -0
- package/node_modules/@oozcitak/dom/lib/algorithm/NodeIteratorAlgorithm.d.ts +15 -0
- package/node_modules/@oozcitak/dom/lib/algorithm/NodeIteratorAlgorithm.js +105 -0
- package/node_modules/@oozcitak/dom/lib/algorithm/NodeIteratorAlgorithm.js.map +1 -0
- package/node_modules/@oozcitak/dom/lib/algorithm/OrderedSetAlgorithm.d.ts +27 -0
- package/node_modules/@oozcitak/dom/lib/algorithm/OrderedSetAlgorithm.js +125 -0
- package/node_modules/@oozcitak/dom/lib/algorithm/OrderedSetAlgorithm.js.map +1 -0
- package/node_modules/@oozcitak/dom/lib/algorithm/ParentNodeAlgorithm.d.ts +9 -0
- package/node_modules/@oozcitak/dom/lib/algorithm/ParentNodeAlgorithm.js +69 -0
- package/node_modules/@oozcitak/dom/lib/algorithm/ParentNodeAlgorithm.js.map +1 -0
- package/node_modules/@oozcitak/dom/lib/algorithm/RangeAlgorithm.d.ts +82 -0
- package/node_modules/@oozcitak/dom/lib/algorithm/RangeAlgorithm.js +829 -0
- package/node_modules/@oozcitak/dom/lib/algorithm/RangeAlgorithm.js.map +1 -0
- package/node_modules/@oozcitak/dom/lib/algorithm/SelectorsAlgorithm.d.ts +8 -0
- package/node_modules/@oozcitak/dom/lib/algorithm/SelectorsAlgorithm.js +21 -0
- package/node_modules/@oozcitak/dom/lib/algorithm/SelectorsAlgorithm.js.map +1 -0
- package/node_modules/@oozcitak/dom/lib/algorithm/ShadowTreeAlgorithm.d.ts +57 -0
- package/node_modules/@oozcitak/dom/lib/algorithm/ShadowTreeAlgorithm.js +316 -0
- package/node_modules/@oozcitak/dom/lib/algorithm/ShadowTreeAlgorithm.js.map +1 -0
- package/node_modules/@oozcitak/dom/lib/algorithm/TextAlgorithm.d.ts +30 -0
- package/node_modules/@oozcitak/dom/lib/algorithm/TextAlgorithm.js +226 -0
- package/node_modules/@oozcitak/dom/lib/algorithm/TextAlgorithm.js.map +1 -0
- package/node_modules/@oozcitak/dom/lib/algorithm/TraversalAlgorithm.d.ts +8 -0
- package/node_modules/@oozcitak/dom/lib/algorithm/TraversalAlgorithm.js +62 -0
- package/node_modules/@oozcitak/dom/lib/algorithm/TraversalAlgorithm.js.map +1 -0
- package/node_modules/@oozcitak/dom/lib/algorithm/TreeAlgorithm.d.ts +268 -0
- package/node_modules/@oozcitak/dom/lib/algorithm/TreeAlgorithm.js +853 -0
- package/node_modules/@oozcitak/dom/lib/algorithm/TreeAlgorithm.js.map +1 -0
- package/node_modules/@oozcitak/dom/lib/algorithm/TreeWalkerAlgorithm.d.ts +17 -0
- package/node_modules/@oozcitak/dom/lib/algorithm/TreeWalkerAlgorithm.js +147 -0
- package/node_modules/@oozcitak/dom/lib/algorithm/TreeWalkerAlgorithm.js.map +1 -0
- package/node_modules/@oozcitak/dom/lib/algorithm/WebIDLAlgorithm.d.ts +8 -0
- package/node_modules/@oozcitak/dom/lib/algorithm/WebIDLAlgorithm.js +14 -0
- package/node_modules/@oozcitak/dom/lib/algorithm/WebIDLAlgorithm.js.map +1 -0
- package/node_modules/@oozcitak/dom/lib/algorithm/XMLAlgorithm.d.ts +25 -0
- package/node_modules/@oozcitak/dom/lib/algorithm/XMLAlgorithm.js +164 -0
- package/node_modules/@oozcitak/dom/lib/algorithm/XMLAlgorithm.js.map +1 -0
- package/node_modules/@oozcitak/dom/lib/algorithm/index.d.ts +28 -0
- package/node_modules/@oozcitak/dom/lib/algorithm/index.js +34 -0
- package/node_modules/@oozcitak/dom/lib/algorithm/index.js.map +1 -0
- package/node_modules/@oozcitak/dom/lib/dom/AbortControllerImpl.d.ts +15 -0
- package/node_modules/@oozcitak/dom/lib/dom/AbortControllerImpl.js +32 -0
- package/node_modules/@oozcitak/dom/lib/dom/AbortControllerImpl.js.map +1 -0
- package/node_modules/@oozcitak/dom/lib/dom/AbortSignalImpl.d.ts +23 -0
- package/node_modules/@oozcitak/dom/lib/dom/AbortSignalImpl.js +59 -0
- package/node_modules/@oozcitak/dom/lib/dom/AbortSignalImpl.js.map +1 -0
- package/node_modules/@oozcitak/dom/lib/dom/AbstractRangeImpl.d.ts +23 -0
- package/node_modules/@oozcitak/dom/lib/dom/AbstractRangeImpl.js +70 -0
- package/node_modules/@oozcitak/dom/lib/dom/AbstractRangeImpl.js.map +1 -0
- package/node_modules/@oozcitak/dom/lib/dom/AttrImpl.d.ts +45 -0
- package/node_modules/@oozcitak/dom/lib/dom/AttrImpl.js +118 -0
- package/node_modules/@oozcitak/dom/lib/dom/AttrImpl.js.map +1 -0
- package/node_modules/@oozcitak/dom/lib/dom/CDATASectionImpl.d.ts +21 -0
- package/node_modules/@oozcitak/dom/lib/dom/CDATASectionImpl.js +51 -0
- package/node_modules/@oozcitak/dom/lib/dom/CDATASectionImpl.js.map +1 -0
- package/node_modules/@oozcitak/dom/lib/dom/CharacterDataImpl.d.ts +35 -0
- package/node_modules/@oozcitak/dom/lib/dom/CharacterDataImpl.js +132 -0
- package/node_modules/@oozcitak/dom/lib/dom/CharacterDataImpl.js.map +1 -0
- package/node_modules/@oozcitak/dom/lib/dom/ChildNodeImpl.d.ts +16 -0
- package/node_modules/@oozcitak/dom/lib/dom/ChildNodeImpl.js +165 -0
- package/node_modules/@oozcitak/dom/lib/dom/ChildNodeImpl.js.map +1 -0
- package/node_modules/@oozcitak/dom/lib/dom/CommentImpl.d.ts +21 -0
- package/node_modules/@oozcitak/dom/lib/dom/CommentImpl.js +52 -0
- package/node_modules/@oozcitak/dom/lib/dom/CommentImpl.js.map +1 -0
- package/node_modules/@oozcitak/dom/lib/dom/CustomEventImpl.d.ts +16 -0
- package/node_modules/@oozcitak/dom/lib/dom/CustomEventImpl.js +60 -0
- package/node_modules/@oozcitak/dom/lib/dom/CustomEventImpl.js.map +1 -0
- package/node_modules/@oozcitak/dom/lib/dom/DOMException.d.ts +171 -0
- package/node_modules/@oozcitak/dom/lib/dom/DOMException.js +347 -0
- package/node_modules/@oozcitak/dom/lib/dom/DOMException.js.map +1 -0
- package/node_modules/@oozcitak/dom/lib/dom/DOMImpl.d.ts +48 -0
- package/node_modules/@oozcitak/dom/lib/dom/DOMImpl.js +100 -0
- package/node_modules/@oozcitak/dom/lib/dom/DOMImpl.js.map +1 -0
- package/node_modules/@oozcitak/dom/lib/dom/DOMImplementationImpl.d.ts +29 -0
- package/node_modules/@oozcitak/dom/lib/dom/DOMImplementationImpl.js +149 -0
- package/node_modules/@oozcitak/dom/lib/dom/DOMImplementationImpl.js.map +1 -0
- package/node_modules/@oozcitak/dom/lib/dom/DOMTokenListImpl.d.ts +46 -0
- package/node_modules/@oozcitak/dom/lib/dom/DOMTokenListImpl.js +312 -0
- package/node_modules/@oozcitak/dom/lib/dom/DOMTokenListImpl.js.map +1 -0
- package/node_modules/@oozcitak/dom/lib/dom/DocumentFragmentImpl.d.ts +32 -0
- package/node_modules/@oozcitak/dom/lib/dom/DocumentFragmentImpl.js +103 -0
- package/node_modules/@oozcitak/dom/lib/dom/DocumentFragmentImpl.js.map +1 -0
- package/node_modules/@oozcitak/dom/lib/dom/DocumentImpl.d.ts +116 -0
- package/node_modules/@oozcitak/dom/lib/dom/DocumentImpl.js +545 -0
- package/node_modules/@oozcitak/dom/lib/dom/DocumentImpl.js.map +1 -0
- package/node_modules/@oozcitak/dom/lib/dom/DocumentOrShadowRootImpl.d.ts +11 -0
- package/node_modules/@oozcitak/dom/lib/dom/DocumentOrShadowRootImpl.js +17 -0
- package/node_modules/@oozcitak/dom/lib/dom/DocumentOrShadowRootImpl.js.map +1 -0
- package/node_modules/@oozcitak/dom/lib/dom/DocumentTypeImpl.d.ts +39 -0
- package/node_modules/@oozcitak/dom/lib/dom/DocumentTypeImpl.js +109 -0
- package/node_modules/@oozcitak/dom/lib/dom/DocumentTypeImpl.js.map +1 -0
- package/node_modules/@oozcitak/dom/lib/dom/ElementImpl.d.ts +132 -0
- package/node_modules/@oozcitak/dom/lib/dom/ElementImpl.js +714 -0
- package/node_modules/@oozcitak/dom/lib/dom/ElementImpl.js.map +1 -0
- package/node_modules/@oozcitak/dom/lib/dom/EventImpl.d.ts +74 -0
- package/node_modules/@oozcitak/dom/lib/dom/EventImpl.js +313 -0
- package/node_modules/@oozcitak/dom/lib/dom/EventImpl.js.map +1 -0
- package/node_modules/@oozcitak/dom/lib/dom/EventTargetImpl.d.ts +30 -0
- package/node_modules/@oozcitak/dom/lib/dom/EventTargetImpl.js +133 -0
- package/node_modules/@oozcitak/dom/lib/dom/EventTargetImpl.js.map +1 -0
- package/node_modules/@oozcitak/dom/lib/dom/HTMLCollectionImpl.d.ts +44 -0
- package/node_modules/@oozcitak/dom/lib/dom/HTMLCollectionImpl.js +157 -0
- package/node_modules/@oozcitak/dom/lib/dom/HTMLCollectionImpl.js.map +1 -0
- package/node_modules/@oozcitak/dom/lib/dom/MutationObserverImpl.d.ts +22 -0
- package/node_modules/@oozcitak/dom/lib/dom/MutationObserverImpl.js +184 -0
- package/node_modules/@oozcitak/dom/lib/dom/MutationObserverImpl.js.map +1 -0
- package/node_modules/@oozcitak/dom/lib/dom/MutationRecordImpl.d.ts +73 -0
- package/node_modules/@oozcitak/dom/lib/dom/MutationRecordImpl.js +116 -0
- package/node_modules/@oozcitak/dom/lib/dom/MutationRecordImpl.js.map +1 -0
- package/node_modules/@oozcitak/dom/lib/dom/NamedNodeMapImpl.d.ts +34 -0
- package/node_modules/@oozcitak/dom/lib/dom/NamedNodeMapImpl.js +112 -0
- package/node_modules/@oozcitak/dom/lib/dom/NamedNodeMapImpl.js.map +1 -0
- package/node_modules/@oozcitak/dom/lib/dom/NodeFilterImpl.d.ts +50 -0
- package/node_modules/@oozcitak/dom/lib/dom/NodeFilterImpl.js +64 -0
- package/node_modules/@oozcitak/dom/lib/dom/NodeFilterImpl.js.map +1 -0
- package/node_modules/@oozcitak/dom/lib/dom/NodeImpl.d.ts +252 -0
- package/node_modules/@oozcitak/dom/lib/dom/NodeImpl.js +891 -0
- package/node_modules/@oozcitak/dom/lib/dom/NodeImpl.js.map +1 -0
- package/node_modules/@oozcitak/dom/lib/dom/NodeIteratorImpl.d.ts +34 -0
- package/node_modules/@oozcitak/dom/lib/dom/NodeIteratorImpl.js +86 -0
- package/node_modules/@oozcitak/dom/lib/dom/NodeIteratorImpl.js.map +1 -0
- package/node_modules/@oozcitak/dom/lib/dom/NodeListImpl.d.ts +46 -0
- package/node_modules/@oozcitak/dom/lib/dom/NodeListImpl.js +198 -0
- package/node_modules/@oozcitak/dom/lib/dom/NodeListImpl.js.map +1 -0
- package/node_modules/@oozcitak/dom/lib/dom/NodeListStaticImpl.d.ts +49 -0
- package/node_modules/@oozcitak/dom/lib/dom/NodeListStaticImpl.js +188 -0
- package/node_modules/@oozcitak/dom/lib/dom/NodeListStaticImpl.js.map +1 -0
- package/node_modules/@oozcitak/dom/lib/dom/NonDocumentTypeChildNodeImpl.d.ts +12 -0
- package/node_modules/@oozcitak/dom/lib/dom/NonDocumentTypeChildNodeImpl.js +53 -0
- package/node_modules/@oozcitak/dom/lib/dom/NonDocumentTypeChildNodeImpl.js.map +1 -0
- package/node_modules/@oozcitak/dom/lib/dom/NonElementParentNodeImpl.d.ts +9 -0
- package/node_modules/@oozcitak/dom/lib/dom/NonElementParentNodeImpl.js +31 -0
- package/node_modules/@oozcitak/dom/lib/dom/NonElementParentNodeImpl.js.map +1 -0
- package/node_modules/@oozcitak/dom/lib/dom/ParentNodeImpl.d.ts +24 -0
- package/node_modules/@oozcitak/dom/lib/dom/ParentNodeImpl.js +158 -0
- package/node_modules/@oozcitak/dom/lib/dom/ParentNodeImpl.js.map +1 -0
- package/node_modules/@oozcitak/dom/lib/dom/ProcessingInstructionImpl.d.ts +25 -0
- package/node_modules/@oozcitak/dom/lib/dom/ProcessingInstructionImpl.js +59 -0
- package/node_modules/@oozcitak/dom/lib/dom/ProcessingInstructionImpl.js.map +1 -0
- package/node_modules/@oozcitak/dom/lib/dom/RangeImpl.d.ts +71 -0
- package/node_modules/@oozcitak/dom/lib/dom/RangeImpl.js +649 -0
- package/node_modules/@oozcitak/dom/lib/dom/RangeImpl.js.map +1 -0
- package/node_modules/@oozcitak/dom/lib/dom/ShadowRootImpl.d.ts +33 -0
- package/node_modules/@oozcitak/dom/lib/dom/ShadowRootImpl.js +82 -0
- package/node_modules/@oozcitak/dom/lib/dom/ShadowRootImpl.js.map +1 -0
- package/node_modules/@oozcitak/dom/lib/dom/SlotableImpl.d.ts +16 -0
- package/node_modules/@oozcitak/dom/lib/dom/SlotableImpl.js +35 -0
- package/node_modules/@oozcitak/dom/lib/dom/SlotableImpl.js.map +1 -0
- package/node_modules/@oozcitak/dom/lib/dom/StaticRangeImpl.d.ts +13 -0
- package/node_modules/@oozcitak/dom/lib/dom/StaticRangeImpl.js +48 -0
- package/node_modules/@oozcitak/dom/lib/dom/StaticRangeImpl.js.map +1 -0
- package/node_modules/@oozcitak/dom/lib/dom/TextImpl.d.ts +28 -0
- package/node_modules/@oozcitak/dom/lib/dom/TextImpl.js +109 -0
- package/node_modules/@oozcitak/dom/lib/dom/TextImpl.js.map +1 -0
- package/node_modules/@oozcitak/dom/lib/dom/TraverserImpl.d.ts +23 -0
- package/node_modules/@oozcitak/dom/lib/dom/TraverserImpl.js +41 -0
- package/node_modules/@oozcitak/dom/lib/dom/TraverserImpl.js.map +1 -0
- package/node_modules/@oozcitak/dom/lib/dom/TreeWalkerImpl.d.ts +36 -0
- package/node_modules/@oozcitak/dom/lib/dom/TreeWalkerImpl.js +249 -0
- package/node_modules/@oozcitak/dom/lib/dom/TreeWalkerImpl.js.map +1 -0
- package/node_modules/@oozcitak/dom/lib/dom/WindowImpl.d.ts +26 -0
- package/node_modules/@oozcitak/dom/lib/dom/WindowImpl.js +57 -0
- package/node_modules/@oozcitak/dom/lib/dom/WindowImpl.js.map +1 -0
- package/node_modules/@oozcitak/dom/lib/dom/XMLDocumentImpl.d.ts +11 -0
- package/node_modules/@oozcitak/dom/lib/dom/XMLDocumentImpl.js +31 -0
- package/node_modules/@oozcitak/dom/lib/dom/XMLDocumentImpl.js.map +1 -0
- package/node_modules/@oozcitak/dom/lib/dom/index.d.ts +36 -0
- package/node_modules/@oozcitak/dom/lib/dom/index.js +102 -0
- package/node_modules/@oozcitak/dom/lib/dom/index.js.map +1 -0
- package/node_modules/@oozcitak/dom/lib/dom/interfaces.d.ts +2218 -0
- package/node_modules/@oozcitak/dom/lib/dom/interfaces.js +91 -0
- package/node_modules/@oozcitak/dom/lib/dom/interfaces.js.map +1 -0
- package/node_modules/@oozcitak/dom/lib/index.d.ts +3 -0
- package/node_modules/@oozcitak/dom/lib/index.js +11 -0
- package/node_modules/@oozcitak/dom/lib/index.js.map +1 -0
- package/node_modules/@oozcitak/dom/lib/parser/DOMParserImpl.d.ts +11 -0
- package/node_modules/@oozcitak/dom/lib/parser/DOMParserImpl.js +37 -0
- package/node_modules/@oozcitak/dom/lib/parser/DOMParserImpl.js.map +1 -0
- package/node_modules/@oozcitak/dom/lib/parser/XMLParserImpl.d.ts +26 -0
- package/node_modules/@oozcitak/dom/lib/parser/XMLParserImpl.js +240 -0
- package/node_modules/@oozcitak/dom/lib/parser/XMLParserImpl.js.map +1 -0
- package/node_modules/@oozcitak/dom/lib/parser/XMLStringLexer.d.ts +159 -0
- package/node_modules/@oozcitak/dom/lib/parser/XMLStringLexer.js +512 -0
- package/node_modules/@oozcitak/dom/lib/parser/XMLStringLexer.js.map +1 -0
- package/node_modules/@oozcitak/dom/lib/parser/index.d.ts +1 -0
- package/node_modules/@oozcitak/dom/lib/parser/index.js +6 -0
- package/node_modules/@oozcitak/dom/lib/parser/index.js.map +1 -0
- package/node_modules/@oozcitak/dom/lib/parser/interfaces.d.ts +131 -0
- package/node_modules/@oozcitak/dom/lib/parser/interfaces.js +18 -0
- package/node_modules/@oozcitak/dom/lib/parser/interfaces.js.map +1 -0
- package/node_modules/@oozcitak/dom/lib/serializer/LocalNameSet.d.ts +27 -0
- package/node_modules/@oozcitak/dom/lib/serializer/LocalNameSet.js +56 -0
- package/node_modules/@oozcitak/dom/lib/serializer/LocalNameSet.js.map +1 -0
- package/node_modules/@oozcitak/dom/lib/serializer/NamespacePrefixMap.d.ts +52 -0
- package/node_modules/@oozcitak/dom/lib/serializer/NamespacePrefixMap.js +151 -0
- package/node_modules/@oozcitak/dom/lib/serializer/NamespacePrefixMap.js.map +1 -0
- package/node_modules/@oozcitak/dom/lib/serializer/XMLSerializerImpl.d.ts +166 -0
- package/node_modules/@oozcitak/dom/lib/serializer/XMLSerializerImpl.js +1479 -0
- package/node_modules/@oozcitak/dom/lib/serializer/XMLSerializerImpl.js.map +1 -0
- package/node_modules/@oozcitak/dom/lib/serializer/index.d.ts +1 -0
- package/node_modules/@oozcitak/dom/lib/serializer/index.js +6 -0
- package/node_modules/@oozcitak/dom/lib/serializer/index.js.map +1 -0
- package/node_modules/@oozcitak/dom/lib/serializer/interfaces.d.ts +15 -0
- package/node_modules/@oozcitak/dom/lib/serializer/interfaces.js +3 -0
- package/node_modules/@oozcitak/dom/lib/serializer/interfaces.js.map +1 -0
- package/node_modules/@oozcitak/dom/lib/util/Cast.d.ts +12 -0
- package/node_modules/@oozcitak/dom/lib/util/Cast.js +26 -0
- package/node_modules/@oozcitak/dom/lib/util/Cast.js.map +1 -0
- package/node_modules/@oozcitak/dom/lib/util/EmptySet.d.ts +13 -0
- package/node_modules/@oozcitak/dom/lib/util/EmptySet.js +61 -0
- package/node_modules/@oozcitak/dom/lib/util/EmptySet.js.map +1 -0
- package/node_modules/@oozcitak/dom/lib/util/Guard.d.ts +135 -0
- package/node_modules/@oozcitak/dom/lib/util/Guard.js +192 -0
- package/node_modules/@oozcitak/dom/lib/util/Guard.js.map +1 -0
- package/node_modules/@oozcitak/dom/lib/util/index.d.ts +3 -0
- package/node_modules/@oozcitak/dom/lib/util/index.js +9 -0
- package/node_modules/@oozcitak/dom/lib/util/index.js.map +1 -0
- package/node_modules/@oozcitak/dom/package.json +72 -0
- package/node_modules/@oozcitak/infra/LICENSE +21 -0
- package/node_modules/@oozcitak/infra/README.md +13 -0
- package/node_modules/@oozcitak/infra/lib/Base64.d.ts +12 -0
- package/node_modules/@oozcitak/infra/lib/Base64.js +82 -0
- package/node_modules/@oozcitak/infra/lib/Base64.js.map +1 -0
- package/node_modules/@oozcitak/infra/lib/Byte.d.ts +6 -0
- package/node_modules/@oozcitak/infra/lib/Byte.js +15 -0
- package/node_modules/@oozcitak/infra/lib/Byte.js.map +1 -0
- package/node_modules/@oozcitak/infra/lib/ByteSequence.d.ts +45 -0
- package/node_modules/@oozcitak/infra/lib/ByteSequence.js +171 -0
- package/node_modules/@oozcitak/infra/lib/ByteSequence.js.map +1 -0
- package/node_modules/@oozcitak/infra/lib/CodePoints.d.ts +82 -0
- package/node_modules/@oozcitak/infra/lib/CodePoints.js +85 -0
- package/node_modules/@oozcitak/infra/lib/CodePoints.js.map +1 -0
- package/node_modules/@oozcitak/infra/lib/JSON.d.ts +24 -0
- package/node_modules/@oozcitak/infra/lib/JSON.js +123 -0
- package/node_modules/@oozcitak/infra/lib/JSON.js.map +1 -0
- package/node_modules/@oozcitak/infra/lib/List.d.ts +101 -0
- package/node_modules/@oozcitak/infra/lib/List.js +325 -0
- package/node_modules/@oozcitak/infra/lib/List.js.map +1 -0
- package/node_modules/@oozcitak/infra/lib/Map.d.ts +87 -0
- package/node_modules/@oozcitak/infra/lib/Map.js +308 -0
- package/node_modules/@oozcitak/infra/lib/Map.js.map +1 -0
- package/node_modules/@oozcitak/infra/lib/Namespace.d.ts +6 -0
- package/node_modules/@oozcitak/infra/lib/Namespace.js +9 -0
- package/node_modules/@oozcitak/infra/lib/Namespace.js.map +1 -0
- package/node_modules/@oozcitak/infra/lib/Queue.d.ts +13 -0
- package/node_modules/@oozcitak/infra/lib/Queue.js +22 -0
- package/node_modules/@oozcitak/infra/lib/Queue.js.map +1 -0
- package/node_modules/@oozcitak/infra/lib/Set.d.ts +136 -0
- package/node_modules/@oozcitak/infra/lib/Set.js +467 -0
- package/node_modules/@oozcitak/infra/lib/Set.js.map +1 -0
- package/node_modules/@oozcitak/infra/lib/Stack.d.ts +13 -0
- package/node_modules/@oozcitak/infra/lib/Stack.js +22 -0
- package/node_modules/@oozcitak/infra/lib/Stack.js.map +1 -0
- package/node_modules/@oozcitak/infra/lib/String.d.ts +129 -0
- package/node_modules/@oozcitak/infra/lib/String.js +472 -0
- package/node_modules/@oozcitak/infra/lib/String.js.map +1 -0
- package/node_modules/@oozcitak/infra/lib/index.d.ts +13 -0
- package/node_modules/@oozcitak/infra/lib/index.js +34 -0
- package/node_modules/@oozcitak/infra/lib/index.js.map +1 -0
- package/node_modules/@oozcitak/infra/package.json +54 -0
- package/node_modules/@oozcitak/url/LICENSE +21 -0
- package/node_modules/@oozcitak/url/README.md +27 -0
- package/node_modules/@oozcitak/url/lib/URLAlgorithm.d.ts +267 -0
- package/node_modules/@oozcitak/url/lib/URLAlgorithm.js +2758 -0
- package/node_modules/@oozcitak/url/lib/URLAlgorithm.js.map +1 -0
- package/node_modules/@oozcitak/url/lib/URLImpl.d.ts +53 -0
- package/node_modules/@oozcitak/url/lib/URLImpl.js +377 -0
- package/node_modules/@oozcitak/url/lib/URLImpl.js.map +1 -0
- package/node_modules/@oozcitak/url/lib/URLSearchParamsImpl.d.ts +38 -0
- package/node_modules/@oozcitak/url/lib/URLSearchParamsImpl.js +303 -0
- package/node_modules/@oozcitak/url/lib/URLSearchParamsImpl.js.map +1 -0
- package/node_modules/@oozcitak/url/lib/index.d.ts +2 -0
- package/node_modules/@oozcitak/url/lib/index.js +7 -0
- package/node_modules/@oozcitak/url/lib/index.js.map +1 -0
- package/node_modules/@oozcitak/url/lib/interfaces.d.ts +195 -0
- package/node_modules/@oozcitak/url/lib/interfaces.js +31 -0
- package/node_modules/@oozcitak/url/lib/interfaces.js.map +1 -0
- package/node_modules/@oozcitak/url/package.json +55 -0
- package/node_modules/@oozcitak/util/LICENSE +21 -0
- package/node_modules/@oozcitak/util/README.md +10 -0
- package/node_modules/@oozcitak/util/lib/CompareCache.d.ts +32 -0
- package/node_modules/@oozcitak/util/lib/CompareCache.js +59 -0
- package/node_modules/@oozcitak/util/lib/CompareCache.js.map +1 -0
- package/node_modules/@oozcitak/util/lib/FixedSizeSet.d.ts +64 -0
- package/node_modules/@oozcitak/util/lib/FixedSizeSet.js +174 -0
- package/node_modules/@oozcitak/util/lib/FixedSizeSet.js.map +1 -0
- package/node_modules/@oozcitak/util/lib/Lazy.d.ts +18 -0
- package/node_modules/@oozcitak/util/lib/Lazy.js +34 -0
- package/node_modules/@oozcitak/util/lib/Lazy.js.map +1 -0
- package/node_modules/@oozcitak/util/lib/ObjectCache.d.ts +71 -0
- package/node_modules/@oozcitak/util/lib/ObjectCache.js +181 -0
- package/node_modules/@oozcitak/util/lib/ObjectCache.js.map +1 -0
- package/node_modules/@oozcitak/util/lib/StringWalker.d.ts +49 -0
- package/node_modules/@oozcitak/util/lib/StringWalker.js +105 -0
- package/node_modules/@oozcitak/util/lib/StringWalker.js.map +1 -0
- package/node_modules/@oozcitak/util/lib/index.d.ts +178 -0
- package/node_modules/@oozcitak/util/lib/index.js +439 -0
- package/node_modules/@oozcitak/util/lib/index.js.map +1 -0
- package/node_modules/@oozcitak/util/package.json +50 -0
- package/node_modules/@xmldom/is-dom-node/LICENSE.md +21 -0
- package/node_modules/@xmldom/is-dom-node/README.md +91 -0
- package/node_modules/@xmldom/is-dom-node/dist/index.d.ts +33 -0
- package/node_modules/@xmldom/is-dom-node/dist/index.js +91 -0
- package/node_modules/@xmldom/is-dom-node/dist/index.js.map +1 -0
- package/node_modules/@xmldom/is-dom-node/package.json +69 -0
- package/node_modules/@xmldom/xmldom/CHANGELOG.md +468 -0
- package/node_modules/@xmldom/xmldom/LICENSE +8 -0
- package/node_modules/@xmldom/xmldom/SECURITY.md +50 -0
- package/node_modules/@xmldom/xmldom/index.d.ts +43 -0
- package/node_modules/@xmldom/xmldom/lib/.eslintrc.yml +2 -0
- package/node_modules/@xmldom/xmldom/lib/conventions.js +203 -0
- package/node_modules/@xmldom/xmldom/lib/dom-parser.js +322 -0
- package/node_modules/@xmldom/xmldom/lib/dom.js +1879 -0
- package/node_modules/@xmldom/xmldom/lib/entities.js +2166 -0
- package/node_modules/@xmldom/xmldom/lib/index.js +4 -0
- package/node_modules/@xmldom/xmldom/lib/sax.js +662 -0
- package/node_modules/@xmldom/xmldom/package.json +71 -0
- package/node_modules/@xmldom/xmldom/readme.md +356 -0
- package/node_modules/esprima/ChangeLog +235 -0
- package/node_modules/esprima/LICENSE.BSD +21 -0
- package/node_modules/esprima/README.md +46 -0
- package/node_modules/esprima/bin/esparse.js +139 -0
- package/node_modules/esprima/bin/esvalidate.js +236 -0
- package/node_modules/esprima/dist/esprima.js +6709 -0
- package/node_modules/esprima/package.json +112 -0
- package/node_modules/node-forge/LICENSE +331 -0
- package/node_modules/node-forge/README.md +2071 -0
- package/node_modules/node-forge/dist/forge.all.min.js +2 -0
- package/node_modules/node-forge/dist/forge.all.min.js.map +1 -0
- package/node_modules/node-forge/dist/forge.min.js +2 -0
- package/node_modules/node-forge/dist/forge.min.js.map +1 -0
- package/node_modules/node-forge/dist/prime.worker.min.js +2 -0
- package/node_modules/node-forge/dist/prime.worker.min.js.map +1 -0
- package/node_modules/node-forge/flash/swf/SocketPool.swf +0 -0
- package/node_modules/node-forge/lib/aes.js +1091 -0
- package/node_modules/node-forge/lib/aesCipherSuites.js +282 -0
- package/node_modules/node-forge/lib/asn1-validator.js +91 -0
- package/node_modules/node-forge/lib/asn1.js +1503 -0
- package/node_modules/node-forge/lib/baseN.js +186 -0
- package/node_modules/node-forge/lib/cipher.js +230 -0
- package/node_modules/node-forge/lib/cipherModes.js +999 -0
- package/node_modules/node-forge/lib/des.js +496 -0
- package/node_modules/node-forge/lib/ed25519.js +1072 -0
- package/node_modules/node-forge/lib/forge.js +13 -0
- package/node_modules/node-forge/lib/form.js +149 -0
- package/node_modules/node-forge/lib/hmac.js +146 -0
- package/node_modules/node-forge/lib/http.js +1346 -0
- package/node_modules/node-forge/lib/index.all.js +16 -0
- package/node_modules/node-forge/lib/index.js +33 -0
- package/node_modules/node-forge/lib/jsbn.js +1264 -0
- package/node_modules/node-forge/lib/kem.js +168 -0
- package/node_modules/node-forge/lib/log.js +319 -0
- package/node_modules/node-forge/lib/md.all.js +13 -0
- package/node_modules/node-forge/lib/md.js +11 -0
- package/node_modules/node-forge/lib/md5.js +289 -0
- package/node_modules/node-forge/lib/mgf.js +12 -0
- package/node_modules/node-forge/lib/mgf1.js +57 -0
- package/node_modules/node-forge/lib/oids.js +179 -0
- package/node_modules/node-forge/lib/pbe.js +1023 -0
- package/node_modules/node-forge/lib/pbkdf2.js +211 -0
- package/node_modules/node-forge/lib/pem.js +237 -0
- package/node_modules/node-forge/lib/pkcs1.js +276 -0
- package/node_modules/node-forge/lib/pkcs12.js +1078 -0
- package/node_modules/node-forge/lib/pkcs7.js +1260 -0
- package/node_modules/node-forge/lib/pkcs7asn1.js +410 -0
- package/node_modules/node-forge/lib/pki.js +102 -0
- package/node_modules/node-forge/lib/prime.js +297 -0
- package/node_modules/node-forge/lib/prime.worker.js +168 -0
- package/node_modules/node-forge/lib/prng.js +419 -0
- package/node_modules/node-forge/lib/pss.js +241 -0
- package/node_modules/node-forge/lib/random.js +191 -0
- package/node_modules/node-forge/lib/rc2.js +410 -0
- package/node_modules/node-forge/lib/rsa.js +1949 -0
- package/node_modules/node-forge/lib/sha1.js +319 -0
- package/node_modules/node-forge/lib/sha256.js +327 -0
- package/node_modules/node-forge/lib/sha512.js +561 -0
- package/node_modules/node-forge/lib/socket.js +287 -0
- package/node_modules/node-forge/lib/ssh.js +236 -0
- package/node_modules/node-forge/lib/tls.js +4282 -0
- package/node_modules/node-forge/lib/tlssocket.js +249 -0
- package/node_modules/node-forge/lib/util.js +2652 -0
- package/node_modules/node-forge/lib/x509.js +3242 -0
- package/node_modules/node-forge/lib/xhr.js +738 -0
- package/node_modules/node-forge/package.json +123 -0
- package/node_modules/sprintf-js/.npmignore +1 -0
- package/node_modules/sprintf-js/LICENSE +24 -0
- package/node_modules/sprintf-js/README.md +88 -0
- package/node_modules/sprintf-js/bower.json +14 -0
- package/node_modules/sprintf-js/demo/angular.html +20 -0
- package/node_modules/sprintf-js/dist/angular-sprintf.min.js +4 -0
- package/node_modules/sprintf-js/dist/angular-sprintf.min.js.map +1 -0
- package/node_modules/sprintf-js/dist/angular-sprintf.min.map +1 -0
- package/node_modules/sprintf-js/dist/sprintf.min.js +4 -0
- package/node_modules/sprintf-js/dist/sprintf.min.js.map +1 -0
- package/node_modules/sprintf-js/dist/sprintf.min.map +1 -0
- package/node_modules/sprintf-js/gruntfile.js +36 -0
- package/node_modules/sprintf-js/package.json +22 -0
- package/node_modules/sprintf-js/src/angular-sprintf.js +18 -0
- package/node_modules/sprintf-js/src/sprintf.js +208 -0
- package/node_modules/sprintf-js/test/test.js +82 -0
- package/node_modules/xml-crypto/LICENSE +22 -0
- package/node_modules/xml-crypto/README.md +557 -0
- package/node_modules/xml-crypto/lib/c14n-canonicalization.d.ts +39 -0
- package/node_modules/xml-crypto/lib/c14n-canonicalization.js +230 -0
- package/node_modules/xml-crypto/lib/c14n-canonicalization.js.map +1 -0
- package/node_modules/xml-crypto/lib/enveloped-signature.d.ts +7 -0
- package/node_modules/xml-crypto/lib/enveloped-signature.js +43 -0
- package/node_modules/xml-crypto/lib/enveloped-signature.js.map +1 -0
- package/node_modules/xml-crypto/lib/exclusive-canonicalization.d.ts +38 -0
- package/node_modules/xml-crypto/lib/exclusive-canonicalization.js +246 -0
- package/node_modules/xml-crypto/lib/exclusive-canonicalization.js.map +1 -0
- package/node_modules/xml-crypto/lib/hash-algorithms.d.ts +13 -0
- package/node_modules/xml-crypto/lib/hash-algorithms.js +47 -0
- package/node_modules/xml-crypto/lib/hash-algorithms.js.map +1 -0
- package/node_modules/xml-crypto/lib/index.d.ts +5 -0
- package/node_modules/xml-crypto/lib/index.js +28 -0
- package/node_modules/xml-crypto/lib/index.js.map +1 -0
- package/node_modules/xml-crypto/lib/signature-algorithms.d.ts +47 -0
- package/node_modules/xml-crypto/lib/signature-algorithms.js +86 -0
- package/node_modules/xml-crypto/lib/signature-algorithms.js.map +1 -0
- package/node_modules/xml-crypto/lib/signed-xml.d.ts +225 -0
- package/node_modules/xml-crypto/lib/signed-xml.js +960 -0
- package/node_modules/xml-crypto/lib/signed-xml.js.map +1 -0
- package/node_modules/xml-crypto/lib/types.d.ts +125 -0
- package/node_modules/xml-crypto/lib/types.js +57 -0
- package/node_modules/xml-crypto/lib/types.js.map +1 -0
- package/node_modules/xml-crypto/lib/utils.d.ts +65 -0
- package/node_modules/xml-crypto/lib/utils.js +256 -0
- package/node_modules/xml-crypto/lib/utils.js.map +1 -0
- package/node_modules/xml-crypto/node_modules/xpath/LICENSE +22 -0
- package/node_modules/xml-crypto/node_modules/xpath/README.md +133 -0
- package/node_modules/xml-crypto/node_modules/xpath/docs/XPathEvaluator.md +62 -0
- package/node_modules/xml-crypto/node_modules/xpath/docs/XPathResult.md +47 -0
- package/node_modules/xml-crypto/node_modules/xpath/docs/function resolvers.md +88 -0
- package/node_modules/xml-crypto/node_modules/xpath/docs/namespace resolvers.md +69 -0
- package/node_modules/xml-crypto/node_modules/xpath/docs/parsed expressions.md +21 -0
- package/node_modules/xml-crypto/node_modules/xpath/docs/variable resolvers.md +89 -0
- package/node_modules/xml-crypto/node_modules/xpath/docs/xpath methods.md +39 -0
- package/node_modules/xml-crypto/node_modules/xpath/package.json +39 -0
- package/node_modules/xml-crypto/node_modules/xpath/test.js +1186 -0
- package/node_modules/xml-crypto/node_modules/xpath/xpath.d.ts +51 -0
- package/node_modules/xml-crypto/node_modules/xpath/xpath.js +4938 -0
- package/node_modules/xml-crypto/package.json +73 -0
- package/node_modules/xmlbuilder2/CHANGELOG.md +309 -0
- package/node_modules/xmlbuilder2/LICENSE +21 -0
- package/node_modules/xmlbuilder2/README.md +183 -0
- package/node_modules/xmlbuilder2/lib/builder/BuilderFunctions.d.ts +236 -0
- package/node_modules/xmlbuilder2/lib/builder/BuilderFunctions.js +108 -0
- package/node_modules/xmlbuilder2/lib/builder/BuilderFunctions.js.map +1 -0
- package/node_modules/xmlbuilder2/lib/builder/BuilderFunctionsCB.d.ts +17 -0
- package/node_modules/xmlbuilder2/lib/builder/BuilderFunctionsCB.js +26 -0
- package/node_modules/xmlbuilder2/lib/builder/BuilderFunctionsCB.js.map +1 -0
- package/node_modules/xmlbuilder2/lib/builder/XMLBuilderCBImpl.d.ts +124 -0
- package/node_modules/xmlbuilder2/lib/builder/XMLBuilderCBImpl.js +782 -0
- package/node_modules/xmlbuilder2/lib/builder/XMLBuilderCBImpl.js.map +1 -0
- package/node_modules/xmlbuilder2/lib/builder/XMLBuilderImpl.d.ts +143 -0
- package/node_modules/xmlbuilder2/lib/builder/XMLBuilderImpl.js +841 -0
- package/node_modules/xmlbuilder2/lib/builder/XMLBuilderImpl.js.map +1 -0
- package/node_modules/xmlbuilder2/lib/builder/dom.d.ts +8 -0
- package/node_modules/xmlbuilder2/lib/builder/dom.js +67 -0
- package/node_modules/xmlbuilder2/lib/builder/dom.js.map +1 -0
- package/node_modules/xmlbuilder2/lib/builder/index.d.ts +4 -0
- package/node_modules/xmlbuilder2/lib/builder/index.js +15 -0
- package/node_modules/xmlbuilder2/lib/builder/index.js.map +1 -0
- package/node_modules/xmlbuilder2/lib/constants.d.ts +1 -0
- package/node_modules/xmlbuilder2/lib/constants.js +4 -0
- package/node_modules/xmlbuilder2/lib/constants.js.map +1 -0
- package/node_modules/xmlbuilder2/lib/index.d.ts +1 -0
- package/node_modules/xmlbuilder2/lib/index.js +10 -0
- package/node_modules/xmlbuilder2/lib/index.js.map +1 -0
- package/node_modules/xmlbuilder2/lib/interfaces.d.ts +1355 -0
- package/node_modules/xmlbuilder2/lib/interfaces.js +76 -0
- package/node_modules/xmlbuilder2/lib/interfaces.js.map +1 -0
- package/node_modules/xmlbuilder2/lib/readers/BaseReader.d.ts +109 -0
- package/node_modules/xmlbuilder2/lib/readers/BaseReader.js +167 -0
- package/node_modules/xmlbuilder2/lib/readers/BaseReader.js.map +1 -0
- package/node_modules/xmlbuilder2/lib/readers/JSONReader.d.ts +14 -0
- package/node_modules/xmlbuilder2/lib/readers/JSONReader.js +38 -0
- package/node_modules/xmlbuilder2/lib/readers/JSONReader.js.map +1 -0
- package/node_modules/xmlbuilder2/lib/readers/ObjectReader.d.ts +15 -0
- package/node_modules/xmlbuilder2/lib/readers/ObjectReader.js +168 -0
- package/node_modules/xmlbuilder2/lib/readers/ObjectReader.js.map +1 -0
- package/node_modules/xmlbuilder2/lib/readers/XMLReader.d.ts +14 -0
- package/node_modules/xmlbuilder2/lib/readers/XMLReader.js +206 -0
- package/node_modules/xmlbuilder2/lib/readers/XMLReader.js.map +1 -0
- package/node_modules/xmlbuilder2/lib/readers/YAMLReader.d.ts +14 -0
- package/node_modules/xmlbuilder2/lib/readers/YAMLReader.js +44 -0
- package/node_modules/xmlbuilder2/lib/readers/YAMLReader.js.map +1 -0
- package/node_modules/xmlbuilder2/lib/readers/index.d.ts +4 -0
- package/node_modules/xmlbuilder2/lib/readers/index.js +11 -0
- package/node_modules/xmlbuilder2/lib/readers/index.js.map +1 -0
- package/node_modules/xmlbuilder2/lib/writers/BaseCBWriter.d.ts +110 -0
- package/node_modules/xmlbuilder2/lib/writers/BaseCBWriter.js +23 -0
- package/node_modules/xmlbuilder2/lib/writers/BaseCBWriter.js.map +1 -0
- package/node_modules/xmlbuilder2/lib/writers/BaseWriter.d.ts +276 -0
- package/node_modules/xmlbuilder2/lib/writers/BaseWriter.js +1603 -0
- package/node_modules/xmlbuilder2/lib/writers/BaseWriter.js.map +1 -0
- package/node_modules/xmlbuilder2/lib/writers/JSONCBWriter.d.ts +68 -0
- package/node_modules/xmlbuilder2/lib/writers/JSONCBWriter.js +172 -0
- package/node_modules/xmlbuilder2/lib/writers/JSONCBWriter.js.map +1 -0
- package/node_modules/xmlbuilder2/lib/writers/JSONWriter.d.ts +67 -0
- package/node_modules/xmlbuilder2/lib/writers/JSONWriter.js +222 -0
- package/node_modules/xmlbuilder2/lib/writers/JSONWriter.js.map +1 -0
- package/node_modules/xmlbuilder2/lib/writers/MapWriter.d.ts +27 -0
- package/node_modules/xmlbuilder2/lib/writers/MapWriter.js +84 -0
- package/node_modules/xmlbuilder2/lib/writers/MapWriter.js.map +1 -0
- package/node_modules/xmlbuilder2/lib/writers/ObjectWriter.d.ts +56 -0
- package/node_modules/xmlbuilder2/lib/writers/ObjectWriter.js +483 -0
- package/node_modules/xmlbuilder2/lib/writers/ObjectWriter.js.map +1 -0
- package/node_modules/xmlbuilder2/lib/writers/XMLCBWriter.d.ts +51 -0
- package/node_modules/xmlbuilder2/lib/writers/XMLCBWriter.js +165 -0
- package/node_modules/xmlbuilder2/lib/writers/XMLCBWriter.js.map +1 -0
- package/node_modules/xmlbuilder2/lib/writers/XMLWriter.d.ts +60 -0
- package/node_modules/xmlbuilder2/lib/writers/XMLWriter.js +236 -0
- package/node_modules/xmlbuilder2/lib/writers/XMLWriter.js.map +1 -0
- package/node_modules/xmlbuilder2/lib/writers/YAMLCBWriter.d.ts +61 -0
- package/node_modules/xmlbuilder2/lib/writers/YAMLCBWriter.js +161 -0
- package/node_modules/xmlbuilder2/lib/writers/YAMLCBWriter.js.map +1 -0
- package/node_modules/xmlbuilder2/lib/writers/YAMLWriter.d.ts +55 -0
- package/node_modules/xmlbuilder2/lib/writers/YAMLWriter.js +186 -0
- package/node_modules/xmlbuilder2/lib/writers/YAMLWriter.js.map +1 -0
- package/node_modules/xmlbuilder2/lib/writers/index.d.ts +5 -0
- package/node_modules/xmlbuilder2/lib/writers/index.js +13 -0
- package/node_modules/xmlbuilder2/lib/writers/index.js.map +1 -0
- package/node_modules/xmlbuilder2/lib/xmlbuilder2.min.js +8 -0
- package/node_modules/xmlbuilder2/node_modules/argparse/CHANGELOG.md +185 -0
- package/node_modules/xmlbuilder2/node_modules/argparse/LICENSE +21 -0
- package/node_modules/xmlbuilder2/node_modules/argparse/README.md +257 -0
- package/node_modules/xmlbuilder2/node_modules/argparse/index.js +3 -0
- package/node_modules/xmlbuilder2/node_modules/argparse/lib/action/append/constant.js +47 -0
- package/node_modules/xmlbuilder2/node_modules/argparse/lib/action/append.js +53 -0
- package/node_modules/xmlbuilder2/node_modules/argparse/lib/action/count.js +40 -0
- package/node_modules/xmlbuilder2/node_modules/argparse/lib/action/help.js +47 -0
- package/node_modules/xmlbuilder2/node_modules/argparse/lib/action/store/constant.js +43 -0
- package/node_modules/xmlbuilder2/node_modules/argparse/lib/action/store/false.js +27 -0
- package/node_modules/xmlbuilder2/node_modules/argparse/lib/action/store/true.js +26 -0
- package/node_modules/xmlbuilder2/node_modules/argparse/lib/action/store.js +50 -0
- package/node_modules/xmlbuilder2/node_modules/argparse/lib/action/subparsers.js +149 -0
- package/node_modules/xmlbuilder2/node_modules/argparse/lib/action/version.js +47 -0
- package/node_modules/xmlbuilder2/node_modules/argparse/lib/action.js +146 -0
- package/node_modules/xmlbuilder2/node_modules/argparse/lib/action_container.js +482 -0
- package/node_modules/xmlbuilder2/node_modules/argparse/lib/argparse.js +14 -0
- package/node_modules/xmlbuilder2/node_modules/argparse/lib/argument/error.js +50 -0
- package/node_modules/xmlbuilder2/node_modules/argparse/lib/argument/exclusive.js +54 -0
- package/node_modules/xmlbuilder2/node_modules/argparse/lib/argument/group.js +75 -0
- package/node_modules/xmlbuilder2/node_modules/argparse/lib/argument_parser.js +1161 -0
- package/node_modules/xmlbuilder2/node_modules/argparse/lib/const.js +21 -0
- package/node_modules/xmlbuilder2/node_modules/argparse/lib/help/added_formatters.js +87 -0
- package/node_modules/xmlbuilder2/node_modules/argparse/lib/help/formatter.js +795 -0
- package/node_modules/xmlbuilder2/node_modules/argparse/lib/namespace.js +76 -0
- package/node_modules/xmlbuilder2/node_modules/argparse/lib/utils.js +57 -0
- package/node_modules/xmlbuilder2/node_modules/argparse/package.json +34 -0
- package/node_modules/xmlbuilder2/node_modules/js-yaml/CHANGELOG.md +557 -0
- package/node_modules/xmlbuilder2/node_modules/js-yaml/LICENSE +21 -0
- package/node_modules/xmlbuilder2/node_modules/js-yaml/README.md +299 -0
- package/node_modules/xmlbuilder2/node_modules/js-yaml/bin/js-yaml.js +132 -0
- package/node_modules/xmlbuilder2/node_modules/js-yaml/dist/js-yaml.js +3989 -0
- package/node_modules/xmlbuilder2/node_modules/js-yaml/dist/js-yaml.min.js +1 -0
- package/node_modules/xmlbuilder2/node_modules/js-yaml/index.js +7 -0
- package/node_modules/xmlbuilder2/node_modules/js-yaml/lib/js-yaml/common.js +59 -0
- package/node_modules/xmlbuilder2/node_modules/js-yaml/lib/js-yaml/dumper.js +850 -0
- package/node_modules/xmlbuilder2/node_modules/js-yaml/lib/js-yaml/exception.js +43 -0
- package/node_modules/xmlbuilder2/node_modules/js-yaml/lib/js-yaml/loader.js +1644 -0
- package/node_modules/xmlbuilder2/node_modules/js-yaml/lib/js-yaml/mark.js +76 -0
- package/node_modules/xmlbuilder2/node_modules/js-yaml/lib/js-yaml/schema/core.js +18 -0
- package/node_modules/xmlbuilder2/node_modules/js-yaml/lib/js-yaml/schema/default_full.js +25 -0
- package/node_modules/xmlbuilder2/node_modules/js-yaml/lib/js-yaml/schema/default_safe.js +28 -0
- package/node_modules/xmlbuilder2/node_modules/js-yaml/lib/js-yaml/schema/failsafe.js +17 -0
- package/node_modules/xmlbuilder2/node_modules/js-yaml/lib/js-yaml/schema/json.js +25 -0
- package/node_modules/xmlbuilder2/node_modules/js-yaml/lib/js-yaml/schema.js +108 -0
- package/node_modules/xmlbuilder2/node_modules/js-yaml/lib/js-yaml/type/binary.js +138 -0
- package/node_modules/xmlbuilder2/node_modules/js-yaml/lib/js-yaml/type/bool.js +35 -0
- package/node_modules/xmlbuilder2/node_modules/js-yaml/lib/js-yaml/type/float.js +116 -0
- package/node_modules/xmlbuilder2/node_modules/js-yaml/lib/js-yaml/type/int.js +173 -0
- package/node_modules/xmlbuilder2/node_modules/js-yaml/lib/js-yaml/type/js/function.js +93 -0
- package/node_modules/xmlbuilder2/node_modules/js-yaml/lib/js-yaml/type/js/regexp.js +60 -0
- package/node_modules/xmlbuilder2/node_modules/js-yaml/lib/js-yaml/type/js/undefined.js +28 -0
- package/node_modules/xmlbuilder2/node_modules/js-yaml/lib/js-yaml/type/map.js +8 -0
- package/node_modules/xmlbuilder2/node_modules/js-yaml/lib/js-yaml/type/merge.js +12 -0
- package/node_modules/xmlbuilder2/node_modules/js-yaml/lib/js-yaml/type/null.js +34 -0
- package/node_modules/xmlbuilder2/node_modules/js-yaml/lib/js-yaml/type/omap.js +44 -0
- package/node_modules/xmlbuilder2/node_modules/js-yaml/lib/js-yaml/type/pairs.js +53 -0
- package/node_modules/xmlbuilder2/node_modules/js-yaml/lib/js-yaml/type/seq.js +8 -0
- package/node_modules/xmlbuilder2/node_modules/js-yaml/lib/js-yaml/type/set.js +29 -0
- package/node_modules/xmlbuilder2/node_modules/js-yaml/lib/js-yaml/type/str.js +8 -0
- package/node_modules/xmlbuilder2/node_modules/js-yaml/lib/js-yaml/type/timestamp.js +88 -0
- package/node_modules/xmlbuilder2/node_modules/js-yaml/lib/js-yaml/type.js +61 -0
- package/node_modules/xmlbuilder2/node_modules/js-yaml/lib/js-yaml.js +39 -0
- package/node_modules/xmlbuilder2/node_modules/js-yaml/package.json +49 -0
- package/node_modules/xmlbuilder2/package.json +82 -0
- package/node_modules/xpath/LICENSE +22 -0
- package/node_modules/xpath/README.md +133 -0
- package/node_modules/xpath/package.json +43 -0
- package/node_modules/xpath/xpath.d.ts +51 -0
- package/node_modules/xpath/xpath.js +5041 -0
- package/package.json +9 -2
|
@@ -0,0 +1,1173 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __values = (this && this.__values) || function(o) {
|
|
3
|
+
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
|
|
4
|
+
if (m) return m.call(o);
|
|
5
|
+
if (o && typeof o.length === "number") return {
|
|
6
|
+
next: function () {
|
|
7
|
+
if (o && i >= o.length) o = void 0;
|
|
8
|
+
return { value: o && o[i++], done: !o };
|
|
9
|
+
}
|
|
10
|
+
};
|
|
11
|
+
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
12
|
+
};
|
|
13
|
+
var __read = (this && this.__read) || function (o, n) {
|
|
14
|
+
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
15
|
+
if (!m) return o;
|
|
16
|
+
var i = m.call(o), r, ar = [], e;
|
|
17
|
+
try {
|
|
18
|
+
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
|
|
19
|
+
}
|
|
20
|
+
catch (error) { e = { error: error }; }
|
|
21
|
+
finally {
|
|
22
|
+
try {
|
|
23
|
+
if (r && !r.done && (m = i["return"])) m.call(i);
|
|
24
|
+
}
|
|
25
|
+
finally { if (e) throw e.error; }
|
|
26
|
+
}
|
|
27
|
+
return ar;
|
|
28
|
+
};
|
|
29
|
+
var __spread = (this && this.__spread) || function () {
|
|
30
|
+
for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i]));
|
|
31
|
+
return ar;
|
|
32
|
+
};
|
|
33
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
34
|
+
var DOMImpl_1 = require("../dom/DOMImpl");
|
|
35
|
+
var DOMException_1 = require("../dom/DOMException");
|
|
36
|
+
var interfaces_1 = require("../dom/interfaces");
|
|
37
|
+
var util_1 = require("../util");
|
|
38
|
+
var util_2 = require("@oozcitak/util");
|
|
39
|
+
var infra_1 = require("@oozcitak/infra");
|
|
40
|
+
var CustomElementAlgorithm_1 = require("./CustomElementAlgorithm");
|
|
41
|
+
var TreeAlgorithm_1 = require("./TreeAlgorithm");
|
|
42
|
+
var NodeIteratorAlgorithm_1 = require("./NodeIteratorAlgorithm");
|
|
43
|
+
var ShadowTreeAlgorithm_1 = require("./ShadowTreeAlgorithm");
|
|
44
|
+
var MutationObserverAlgorithm_1 = require("./MutationObserverAlgorithm");
|
|
45
|
+
var DOMAlgorithm_1 = require("./DOMAlgorithm");
|
|
46
|
+
var DocumentAlgorithm_1 = require("./DocumentAlgorithm");
|
|
47
|
+
/**
|
|
48
|
+
* Ensures pre-insertion validity of a node into a parent before a
|
|
49
|
+
* child.
|
|
50
|
+
*
|
|
51
|
+
* @param node - node to insert
|
|
52
|
+
* @param parent - parent node to receive node
|
|
53
|
+
* @param child - child node to insert node before
|
|
54
|
+
*/
|
|
55
|
+
function mutation_ensurePreInsertionValidity(node, parent, child) {
|
|
56
|
+
var e_1, _a, e_2, _b, e_3, _c, e_4, _d;
|
|
57
|
+
var parentNodeType = parent._nodeType;
|
|
58
|
+
var nodeNodeType = node._nodeType;
|
|
59
|
+
var childNodeType = child ? child._nodeType : null;
|
|
60
|
+
/**
|
|
61
|
+
* 1. If parent is not a Document, DocumentFragment, or Element node,
|
|
62
|
+
* throw a "HierarchyRequestError" DOMException.
|
|
63
|
+
*/
|
|
64
|
+
if (parentNodeType !== interfaces_1.NodeType.Document &&
|
|
65
|
+
parentNodeType !== interfaces_1.NodeType.DocumentFragment &&
|
|
66
|
+
parentNodeType !== interfaces_1.NodeType.Element)
|
|
67
|
+
throw new DOMException_1.HierarchyRequestError("Only document, document fragment and element nodes can contain child nodes. Parent node is " + parent.nodeName + ".");
|
|
68
|
+
/**
|
|
69
|
+
* 2. If node is a host-including inclusive ancestor of parent, throw a
|
|
70
|
+
* "HierarchyRequestError" DOMException.
|
|
71
|
+
*/
|
|
72
|
+
if (TreeAlgorithm_1.tree_isHostIncludingAncestorOf(parent, node, true))
|
|
73
|
+
throw new DOMException_1.HierarchyRequestError("The node to be inserted cannot be an inclusive ancestor of parent node. Node is " + node.nodeName + ", parent node is " + parent.nodeName + ".");
|
|
74
|
+
/**
|
|
75
|
+
* 3. If child is not null and its parent is not parent, then throw a
|
|
76
|
+
* "NotFoundError" DOMException.
|
|
77
|
+
*/
|
|
78
|
+
if (child !== null && child._parent !== parent)
|
|
79
|
+
throw new DOMException_1.NotFoundError("The reference child node cannot be found under parent node. Child node is " + child.nodeName + ", parent node is " + parent.nodeName + ".");
|
|
80
|
+
/**
|
|
81
|
+
* 4. If node is not a DocumentFragment, DocumentType, Element, Text,
|
|
82
|
+
* ProcessingInstruction, or Comment node, throw a "HierarchyRequestError"
|
|
83
|
+
* DOMException.
|
|
84
|
+
*/
|
|
85
|
+
if (nodeNodeType !== interfaces_1.NodeType.DocumentFragment &&
|
|
86
|
+
nodeNodeType !== interfaces_1.NodeType.DocumentType &&
|
|
87
|
+
nodeNodeType !== interfaces_1.NodeType.Element &&
|
|
88
|
+
nodeNodeType !== interfaces_1.NodeType.Text &&
|
|
89
|
+
nodeNodeType !== interfaces_1.NodeType.ProcessingInstruction &&
|
|
90
|
+
nodeNodeType !== interfaces_1.NodeType.CData &&
|
|
91
|
+
nodeNodeType !== interfaces_1.NodeType.Comment)
|
|
92
|
+
throw new DOMException_1.HierarchyRequestError("Only document fragment, document type, element, text, processing instruction, cdata section or comment nodes can be inserted. Node is " + node.nodeName + ".");
|
|
93
|
+
/**
|
|
94
|
+
* 5. If either node is a Text node and parent is a document, or node is a
|
|
95
|
+
* doctype and parent is not a document, throw a "HierarchyRequestError"
|
|
96
|
+
* DOMException.
|
|
97
|
+
*/
|
|
98
|
+
if (nodeNodeType === interfaces_1.NodeType.Text &&
|
|
99
|
+
parentNodeType === interfaces_1.NodeType.Document)
|
|
100
|
+
throw new DOMException_1.HierarchyRequestError("Cannot insert a text node as a child of a document node. Node is " + node.nodeName + ".");
|
|
101
|
+
if (nodeNodeType === interfaces_1.NodeType.DocumentType &&
|
|
102
|
+
parentNodeType !== interfaces_1.NodeType.Document)
|
|
103
|
+
throw new DOMException_1.HierarchyRequestError("A document type node can only be inserted under a document node. Parent node is " + parent.nodeName + ".");
|
|
104
|
+
/**
|
|
105
|
+
* 6. If parent is a document, and any of the statements below, switched on
|
|
106
|
+
* node, are true, throw a "HierarchyRequestError" DOMException.
|
|
107
|
+
* - DocumentFragment node
|
|
108
|
+
* If node has more than one element child or has a Text node child.
|
|
109
|
+
* Otherwise, if node has one element child and either parent has an element
|
|
110
|
+
* child, child is a doctype, or child is not null and a doctype is
|
|
111
|
+
* following child.
|
|
112
|
+
* - element
|
|
113
|
+
* parent has an element child, child is a doctype, or child is not null and
|
|
114
|
+
* a doctype is following child.
|
|
115
|
+
* - doctype
|
|
116
|
+
* parent has a doctype child, child is non-null and an element is preceding
|
|
117
|
+
* child, or child is null and parent has an element child.
|
|
118
|
+
*/
|
|
119
|
+
if (parentNodeType === interfaces_1.NodeType.Document) {
|
|
120
|
+
if (nodeNodeType === interfaces_1.NodeType.DocumentFragment) {
|
|
121
|
+
var eleCount = 0;
|
|
122
|
+
try {
|
|
123
|
+
for (var _e = __values(node._children), _f = _e.next(); !_f.done; _f = _e.next()) {
|
|
124
|
+
var childNode = _f.value;
|
|
125
|
+
if (childNode._nodeType === interfaces_1.NodeType.Element)
|
|
126
|
+
eleCount++;
|
|
127
|
+
else if (childNode._nodeType === interfaces_1.NodeType.Text)
|
|
128
|
+
throw new DOMException_1.HierarchyRequestError("Cannot insert text a node as a child of a document node. Node is " + childNode.nodeName + ".");
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
132
|
+
finally {
|
|
133
|
+
try {
|
|
134
|
+
if (_f && !_f.done && (_a = _e.return)) _a.call(_e);
|
|
135
|
+
}
|
|
136
|
+
finally { if (e_1) throw e_1.error; }
|
|
137
|
+
}
|
|
138
|
+
if (eleCount > 1) {
|
|
139
|
+
throw new DOMException_1.HierarchyRequestError("A document node can only have one document element node. Document fragment to be inserted has " + eleCount + " element nodes.");
|
|
140
|
+
}
|
|
141
|
+
else if (eleCount === 1) {
|
|
142
|
+
try {
|
|
143
|
+
for (var _g = __values(parent._children), _h = _g.next(); !_h.done; _h = _g.next()) {
|
|
144
|
+
var ele = _h.value;
|
|
145
|
+
if (ele._nodeType === interfaces_1.NodeType.Element)
|
|
146
|
+
throw new DOMException_1.HierarchyRequestError("The document node already has a document element node.");
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
|
150
|
+
finally {
|
|
151
|
+
try {
|
|
152
|
+
if (_h && !_h.done && (_b = _g.return)) _b.call(_g);
|
|
153
|
+
}
|
|
154
|
+
finally { if (e_2) throw e_2.error; }
|
|
155
|
+
}
|
|
156
|
+
if (child) {
|
|
157
|
+
if (childNodeType === interfaces_1.NodeType.DocumentType)
|
|
158
|
+
throw new DOMException_1.HierarchyRequestError("Cannot insert an element node before a document type node.");
|
|
159
|
+
var doctypeChild = child._nextSibling;
|
|
160
|
+
while (doctypeChild) {
|
|
161
|
+
if (doctypeChild._nodeType === interfaces_1.NodeType.DocumentType)
|
|
162
|
+
throw new DOMException_1.HierarchyRequestError("Cannot insert an element node before a document type node.");
|
|
163
|
+
doctypeChild = doctypeChild._nextSibling;
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
else if (nodeNodeType === interfaces_1.NodeType.Element) {
|
|
169
|
+
try {
|
|
170
|
+
for (var _j = __values(parent._children), _k = _j.next(); !_k.done; _k = _j.next()) {
|
|
171
|
+
var ele = _k.value;
|
|
172
|
+
if (ele._nodeType === interfaces_1.NodeType.Element)
|
|
173
|
+
throw new DOMException_1.HierarchyRequestError("Document already has a document element node. Node is " + node.nodeName + ".");
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
catch (e_3_1) { e_3 = { error: e_3_1 }; }
|
|
177
|
+
finally {
|
|
178
|
+
try {
|
|
179
|
+
if (_k && !_k.done && (_c = _j.return)) _c.call(_j);
|
|
180
|
+
}
|
|
181
|
+
finally { if (e_3) throw e_3.error; }
|
|
182
|
+
}
|
|
183
|
+
if (child) {
|
|
184
|
+
if (childNodeType === interfaces_1.NodeType.DocumentType)
|
|
185
|
+
throw new DOMException_1.HierarchyRequestError("Cannot insert an element node before a document type node. Node is " + node.nodeName + ".");
|
|
186
|
+
var doctypeChild = child._nextSibling;
|
|
187
|
+
while (doctypeChild) {
|
|
188
|
+
if (doctypeChild._nodeType === interfaces_1.NodeType.DocumentType)
|
|
189
|
+
throw new DOMException_1.HierarchyRequestError("Cannot insert an element node before a document type node. Node is " + node.nodeName + ".");
|
|
190
|
+
doctypeChild = doctypeChild._nextSibling;
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
}
|
|
194
|
+
else if (nodeNodeType === interfaces_1.NodeType.DocumentType) {
|
|
195
|
+
try {
|
|
196
|
+
for (var _l = __values(parent._children), _m = _l.next(); !_m.done; _m = _l.next()) {
|
|
197
|
+
var ele = _m.value;
|
|
198
|
+
if (ele._nodeType === interfaces_1.NodeType.DocumentType)
|
|
199
|
+
throw new DOMException_1.HierarchyRequestError("Document already has a document type node. Node is " + node.nodeName + ".");
|
|
200
|
+
}
|
|
201
|
+
}
|
|
202
|
+
catch (e_4_1) { e_4 = { error: e_4_1 }; }
|
|
203
|
+
finally {
|
|
204
|
+
try {
|
|
205
|
+
if (_m && !_m.done && (_d = _l.return)) _d.call(_l);
|
|
206
|
+
}
|
|
207
|
+
finally { if (e_4) throw e_4.error; }
|
|
208
|
+
}
|
|
209
|
+
if (child) {
|
|
210
|
+
var elementChild = child._previousSibling;
|
|
211
|
+
while (elementChild) {
|
|
212
|
+
if (elementChild._nodeType === interfaces_1.NodeType.Element)
|
|
213
|
+
throw new DOMException_1.HierarchyRequestError("Cannot insert a document type node before an element node. Node is " + node.nodeName + ".");
|
|
214
|
+
elementChild = elementChild._previousSibling;
|
|
215
|
+
}
|
|
216
|
+
}
|
|
217
|
+
else {
|
|
218
|
+
var elementChild = parent._firstChild;
|
|
219
|
+
while (elementChild) {
|
|
220
|
+
if (elementChild._nodeType === interfaces_1.NodeType.Element)
|
|
221
|
+
throw new DOMException_1.HierarchyRequestError("Cannot insert a document type node before an element node. Node is " + node.nodeName + ".");
|
|
222
|
+
elementChild = elementChild._nextSibling;
|
|
223
|
+
}
|
|
224
|
+
}
|
|
225
|
+
}
|
|
226
|
+
}
|
|
227
|
+
}
|
|
228
|
+
exports.mutation_ensurePreInsertionValidity = mutation_ensurePreInsertionValidity;
|
|
229
|
+
/**
|
|
230
|
+
* Ensures pre-insertion validity of a node into a parent before a
|
|
231
|
+
* child, then adopts the node to the tree and inserts it.
|
|
232
|
+
*
|
|
233
|
+
* @param node - node to insert
|
|
234
|
+
* @param parent - parent node to receive node
|
|
235
|
+
* @param child - child node to insert node before
|
|
236
|
+
*/
|
|
237
|
+
function mutation_preInsert(node, parent, child) {
|
|
238
|
+
/**
|
|
239
|
+
* 1. Ensure pre-insertion validity of node into parent before child.
|
|
240
|
+
* 2. Let reference child be child.
|
|
241
|
+
* 3. If reference child is node, set it to node’s next sibling.
|
|
242
|
+
* 4. Adopt node into parent’s node document.
|
|
243
|
+
* 5. Insert node into parent before reference child.
|
|
244
|
+
* 6. Return node.
|
|
245
|
+
*/
|
|
246
|
+
mutation_ensurePreInsertionValidity(node, parent, child);
|
|
247
|
+
var referenceChild = child;
|
|
248
|
+
if (referenceChild === node)
|
|
249
|
+
referenceChild = node._nextSibling;
|
|
250
|
+
DocumentAlgorithm_1.document_adopt(node, parent._nodeDocument);
|
|
251
|
+
mutation_insert(node, parent, referenceChild);
|
|
252
|
+
return node;
|
|
253
|
+
}
|
|
254
|
+
exports.mutation_preInsert = mutation_preInsert;
|
|
255
|
+
/**
|
|
256
|
+
* Inserts a node into a parent node before the given child node.
|
|
257
|
+
*
|
|
258
|
+
* @param node - node to insert
|
|
259
|
+
* @param parent - parent node to receive node
|
|
260
|
+
* @param child - child node to insert node before
|
|
261
|
+
* @param suppressObservers - whether to notify observers
|
|
262
|
+
*/
|
|
263
|
+
function mutation_insert(node, parent, child, suppressObservers) {
|
|
264
|
+
var e_5, _a;
|
|
265
|
+
// Optimized common case
|
|
266
|
+
if (child === null && node._nodeType !== interfaces_1.NodeType.DocumentFragment) {
|
|
267
|
+
mutation_insert_single(node, parent, suppressObservers);
|
|
268
|
+
return;
|
|
269
|
+
}
|
|
270
|
+
/**
|
|
271
|
+
* 1. Let count be the number of children of node if it is a
|
|
272
|
+
* DocumentFragment node, and one otherwise.
|
|
273
|
+
*/
|
|
274
|
+
var count = (node._nodeType === interfaces_1.NodeType.DocumentFragment ?
|
|
275
|
+
node._children.size : 1);
|
|
276
|
+
/**
|
|
277
|
+
* 2. If child is non-null, then:
|
|
278
|
+
*/
|
|
279
|
+
if (child !== null) {
|
|
280
|
+
/**
|
|
281
|
+
* 2.1. For each live range whose start node is parent and start
|
|
282
|
+
* offset is greater than child's index, increase its start
|
|
283
|
+
* offset by count.
|
|
284
|
+
* 2.2. For each live range whose end node is parent and end
|
|
285
|
+
* offset is greater than child's index, increase its end
|
|
286
|
+
* offset by count.
|
|
287
|
+
*/
|
|
288
|
+
if (DOMImpl_1.dom.rangeList.size !== 0) {
|
|
289
|
+
var index_1 = TreeAlgorithm_1.tree_index(child);
|
|
290
|
+
try {
|
|
291
|
+
for (var _b = __values(DOMImpl_1.dom.rangeList), _c = _b.next(); !_c.done; _c = _b.next()) {
|
|
292
|
+
var range = _c.value;
|
|
293
|
+
if (range._start[0] === parent && range._start[1] > index_1) {
|
|
294
|
+
range._start[1] += count;
|
|
295
|
+
}
|
|
296
|
+
if (range._end[0] === parent && range._end[1] > index_1) {
|
|
297
|
+
range._end[1] += count;
|
|
298
|
+
}
|
|
299
|
+
}
|
|
300
|
+
}
|
|
301
|
+
catch (e_5_1) { e_5 = { error: e_5_1 }; }
|
|
302
|
+
finally {
|
|
303
|
+
try {
|
|
304
|
+
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
305
|
+
}
|
|
306
|
+
finally { if (e_5) throw e_5.error; }
|
|
307
|
+
}
|
|
308
|
+
}
|
|
309
|
+
}
|
|
310
|
+
/**
|
|
311
|
+
* 3. Let nodes be node’s children, if node is a DocumentFragment node;
|
|
312
|
+
* otherwise « node ».
|
|
313
|
+
*/
|
|
314
|
+
var nodes = node._nodeType === interfaces_1.NodeType.DocumentFragment ? new (Array.bind.apply(Array, __spread([void 0], node._children)))() : [node];
|
|
315
|
+
/**
|
|
316
|
+
* 4. If node is a DocumentFragment node, remove its children with the
|
|
317
|
+
* suppress observers flag set.
|
|
318
|
+
*/
|
|
319
|
+
if (node._nodeType === interfaces_1.NodeType.DocumentFragment) {
|
|
320
|
+
while (node._firstChild) {
|
|
321
|
+
mutation_remove(node._firstChild, node, true);
|
|
322
|
+
}
|
|
323
|
+
}
|
|
324
|
+
/**
|
|
325
|
+
* 5. If node is a DocumentFragment node, then queue a tree mutation record
|
|
326
|
+
* for node with « », nodes, null, and null.
|
|
327
|
+
*/
|
|
328
|
+
if (DOMImpl_1.dom.features.mutationObservers) {
|
|
329
|
+
if (node._nodeType === interfaces_1.NodeType.DocumentFragment) {
|
|
330
|
+
MutationObserverAlgorithm_1.observer_queueTreeMutationRecord(node, [], nodes, null, null);
|
|
331
|
+
}
|
|
332
|
+
}
|
|
333
|
+
/**
|
|
334
|
+
* 6. Let previousSibling be child’s previous sibling or parent’s last
|
|
335
|
+
* child if child is null.
|
|
336
|
+
*/
|
|
337
|
+
var previousSibling = (child ? child._previousSibling : parent._lastChild);
|
|
338
|
+
var index = child === null ? -1 : TreeAlgorithm_1.tree_index(child);
|
|
339
|
+
/**
|
|
340
|
+
* 7. For each node in nodes, in tree order:
|
|
341
|
+
*/
|
|
342
|
+
for (var i = 0; i < nodes.length; i++) {
|
|
343
|
+
var node_1 = nodes[i];
|
|
344
|
+
if (util_1.Guard.isElementNode(node_1)) {
|
|
345
|
+
// set document element node
|
|
346
|
+
if (util_1.Guard.isDocumentNode(parent)) {
|
|
347
|
+
parent._documentElement = node_1;
|
|
348
|
+
}
|
|
349
|
+
// mark that the document has namespaces
|
|
350
|
+
if (!node_1._nodeDocument._hasNamespaces && (node_1._namespace !== null ||
|
|
351
|
+
node_1._namespacePrefix !== null)) {
|
|
352
|
+
node_1._nodeDocument._hasNamespaces = true;
|
|
353
|
+
}
|
|
354
|
+
}
|
|
355
|
+
/**
|
|
356
|
+
* 7.1. If child is null, then append node to parent’s children.
|
|
357
|
+
* 7.2. Otherwise, insert node into parent’s children before child’s
|
|
358
|
+
* index.
|
|
359
|
+
*/
|
|
360
|
+
node_1._parent = parent;
|
|
361
|
+
if (child === null) {
|
|
362
|
+
infra_1.set.append(parent._children, node_1);
|
|
363
|
+
}
|
|
364
|
+
else {
|
|
365
|
+
infra_1.set.insert(parent._children, node_1, index);
|
|
366
|
+
index++;
|
|
367
|
+
}
|
|
368
|
+
// assign siblings and children for quick lookups
|
|
369
|
+
if (parent._firstChild === null) {
|
|
370
|
+
node_1._previousSibling = null;
|
|
371
|
+
node_1._nextSibling = null;
|
|
372
|
+
parent._firstChild = node_1;
|
|
373
|
+
parent._lastChild = node_1;
|
|
374
|
+
}
|
|
375
|
+
else {
|
|
376
|
+
var prev = (child ? child._previousSibling : parent._lastChild);
|
|
377
|
+
var next = (child ? child : null);
|
|
378
|
+
node_1._previousSibling = prev;
|
|
379
|
+
node_1._nextSibling = next;
|
|
380
|
+
if (prev)
|
|
381
|
+
prev._nextSibling = node_1;
|
|
382
|
+
if (next)
|
|
383
|
+
next._previousSibling = node_1;
|
|
384
|
+
if (!prev)
|
|
385
|
+
parent._firstChild = node_1;
|
|
386
|
+
if (!next)
|
|
387
|
+
parent._lastChild = node_1;
|
|
388
|
+
}
|
|
389
|
+
/**
|
|
390
|
+
* 7.3. If parent is a shadow host and node is a slotable, then
|
|
391
|
+
* assign a slot for node.
|
|
392
|
+
*/
|
|
393
|
+
if (DOMImpl_1.dom.features.slots) {
|
|
394
|
+
if (parent._shadowRoot !== null && util_1.Guard.isSlotable(node_1)) {
|
|
395
|
+
ShadowTreeAlgorithm_1.shadowTree_assignASlot(node_1);
|
|
396
|
+
}
|
|
397
|
+
}
|
|
398
|
+
/**
|
|
399
|
+
* 7.4. If node is a Text node, run the child text content change
|
|
400
|
+
* steps for parent.
|
|
401
|
+
*/
|
|
402
|
+
if (DOMImpl_1.dom.features.steps) {
|
|
403
|
+
if (util_1.Guard.isTextNode(node_1)) {
|
|
404
|
+
DOMAlgorithm_1.dom_runChildTextContentChangeSteps(parent);
|
|
405
|
+
}
|
|
406
|
+
}
|
|
407
|
+
/**
|
|
408
|
+
* 7.5. If parent's root is a shadow root, and parent is a slot
|
|
409
|
+
* whose assigned nodes is the empty list, then run signal
|
|
410
|
+
* a slot change for parent.
|
|
411
|
+
*/
|
|
412
|
+
if (DOMImpl_1.dom.features.slots) {
|
|
413
|
+
if (util_1.Guard.isShadowRoot(TreeAlgorithm_1.tree_rootNode(parent)) &&
|
|
414
|
+
util_1.Guard.isSlot(parent) && util_2.isEmpty(parent._assignedNodes)) {
|
|
415
|
+
ShadowTreeAlgorithm_1.shadowTree_signalASlotChange(parent);
|
|
416
|
+
}
|
|
417
|
+
}
|
|
418
|
+
/**
|
|
419
|
+
* 7.6. Run assign slotables for a tree with node's root.
|
|
420
|
+
*/
|
|
421
|
+
if (DOMImpl_1.dom.features.slots) {
|
|
422
|
+
ShadowTreeAlgorithm_1.shadowTree_assignSlotablesForATree(TreeAlgorithm_1.tree_rootNode(node_1));
|
|
423
|
+
}
|
|
424
|
+
/**
|
|
425
|
+
* 7.7. For each shadow-including inclusive descendant
|
|
426
|
+
* inclusiveDescendant of node, in shadow-including tree
|
|
427
|
+
* order:
|
|
428
|
+
*/
|
|
429
|
+
var inclusiveDescendant = TreeAlgorithm_1.tree_getFirstDescendantNode(node_1, true, true);
|
|
430
|
+
while (inclusiveDescendant !== null) {
|
|
431
|
+
/**
|
|
432
|
+
* 7.7.1. Run the insertion steps with inclusiveDescendant.
|
|
433
|
+
*/
|
|
434
|
+
if (DOMImpl_1.dom.features.steps) {
|
|
435
|
+
DOMAlgorithm_1.dom_runInsertionSteps(inclusiveDescendant);
|
|
436
|
+
}
|
|
437
|
+
if (DOMImpl_1.dom.features.customElements) {
|
|
438
|
+
/**
|
|
439
|
+
* 7.7.2. If inclusiveDescendant is connected, then:
|
|
440
|
+
*/
|
|
441
|
+
if (util_1.Guard.isElementNode(inclusiveDescendant) &&
|
|
442
|
+
ShadowTreeAlgorithm_1.shadowTree_isConnected(inclusiveDescendant)) {
|
|
443
|
+
if (util_1.Guard.isCustomElementNode(inclusiveDescendant)) {
|
|
444
|
+
/**
|
|
445
|
+
* 7.7.2.1. If inclusiveDescendant is custom, then enqueue a custom
|
|
446
|
+
* element callback reaction with inclusiveDescendant, callback name
|
|
447
|
+
* "connectedCallback", and an empty argument list.
|
|
448
|
+
*/
|
|
449
|
+
CustomElementAlgorithm_1.customElement_enqueueACustomElementCallbackReaction(inclusiveDescendant, "connectedCallback", []);
|
|
450
|
+
}
|
|
451
|
+
else {
|
|
452
|
+
/**
|
|
453
|
+
* 7.7.2.2. Otherwise, try to upgrade inclusiveDescendant.
|
|
454
|
+
*/
|
|
455
|
+
CustomElementAlgorithm_1.customElement_tryToUpgrade(inclusiveDescendant);
|
|
456
|
+
}
|
|
457
|
+
}
|
|
458
|
+
}
|
|
459
|
+
inclusiveDescendant = TreeAlgorithm_1.tree_getNextDescendantNode(node_1, inclusiveDescendant, true, true);
|
|
460
|
+
}
|
|
461
|
+
}
|
|
462
|
+
/**
|
|
463
|
+
* 8. If suppress observers flag is unset, then queue a tree mutation record
|
|
464
|
+
* for parent with nodes, « », previousSibling, and child.
|
|
465
|
+
*/
|
|
466
|
+
if (DOMImpl_1.dom.features.mutationObservers) {
|
|
467
|
+
if (!suppressObservers) {
|
|
468
|
+
MutationObserverAlgorithm_1.observer_queueTreeMutationRecord(parent, nodes, [], previousSibling, child);
|
|
469
|
+
}
|
|
470
|
+
}
|
|
471
|
+
}
|
|
472
|
+
exports.mutation_insert = mutation_insert;
|
|
473
|
+
/**
|
|
474
|
+
* Inserts a node into a parent node. Optimized routine for the common case where
|
|
475
|
+
* node is not a document fragment node and it has no child nodes.
|
|
476
|
+
*
|
|
477
|
+
* @param node - node to insert
|
|
478
|
+
* @param parent - parent node to receive node
|
|
479
|
+
* @param suppressObservers - whether to notify observers
|
|
480
|
+
*/
|
|
481
|
+
function mutation_insert_single(node, parent, suppressObservers) {
|
|
482
|
+
/**
|
|
483
|
+
* 1. Let count be the number of children of node if it is a
|
|
484
|
+
* DocumentFragment node, and one otherwise.
|
|
485
|
+
* 2. If child is non-null, then:
|
|
486
|
+
* 2.1. For each live range whose start node is parent and start
|
|
487
|
+
* offset is greater than child's index, increase its start
|
|
488
|
+
* offset by count.
|
|
489
|
+
* 2.2. For each live range whose end node is parent and end
|
|
490
|
+
* offset is greater than child's index, increase its end
|
|
491
|
+
* offset by count.
|
|
492
|
+
* 3. Let nodes be node’s children, if node is a DocumentFragment node;
|
|
493
|
+
* otherwise « node ».
|
|
494
|
+
* 4. If node is a DocumentFragment node, remove its children with the
|
|
495
|
+
* suppress observers flag set.
|
|
496
|
+
* 5. If node is a DocumentFragment node, then queue a tree mutation record
|
|
497
|
+
* for node with « », nodes, null, and null.
|
|
498
|
+
*/
|
|
499
|
+
/**
|
|
500
|
+
* 6. Let previousSibling be child’s previous sibling or parent’s last
|
|
501
|
+
* child if child is null.
|
|
502
|
+
*/
|
|
503
|
+
var previousSibling = parent._lastChild;
|
|
504
|
+
// set document element node
|
|
505
|
+
if (util_1.Guard.isElementNode(node)) {
|
|
506
|
+
// set document element node
|
|
507
|
+
if (util_1.Guard.isDocumentNode(parent)) {
|
|
508
|
+
parent._documentElement = node;
|
|
509
|
+
}
|
|
510
|
+
// mark that the document has namespaces
|
|
511
|
+
if (!node._nodeDocument._hasNamespaces && (node._namespace !== null ||
|
|
512
|
+
node._namespacePrefix !== null)) {
|
|
513
|
+
node._nodeDocument._hasNamespaces = true;
|
|
514
|
+
}
|
|
515
|
+
}
|
|
516
|
+
/**
|
|
517
|
+
* 7. For each node in nodes, in tree order:
|
|
518
|
+
* 7.1. If child is null, then append node to parent’s children.
|
|
519
|
+
* 7.2. Otherwise, insert node into parent’s children before child’s
|
|
520
|
+
* index.
|
|
521
|
+
*/
|
|
522
|
+
node._parent = parent;
|
|
523
|
+
parent._children.add(node);
|
|
524
|
+
// assign siblings and children for quick lookups
|
|
525
|
+
if (parent._firstChild === null) {
|
|
526
|
+
node._previousSibling = null;
|
|
527
|
+
node._nextSibling = null;
|
|
528
|
+
parent._firstChild = node;
|
|
529
|
+
parent._lastChild = node;
|
|
530
|
+
}
|
|
531
|
+
else {
|
|
532
|
+
var prev = parent._lastChild;
|
|
533
|
+
node._previousSibling = prev;
|
|
534
|
+
node._nextSibling = null;
|
|
535
|
+
if (prev)
|
|
536
|
+
prev._nextSibling = node;
|
|
537
|
+
if (!prev)
|
|
538
|
+
parent._firstChild = node;
|
|
539
|
+
parent._lastChild = node;
|
|
540
|
+
}
|
|
541
|
+
/**
|
|
542
|
+
* 7.3. If parent is a shadow host and node is a slotable, then
|
|
543
|
+
* assign a slot for node.
|
|
544
|
+
*/
|
|
545
|
+
if (DOMImpl_1.dom.features.slots) {
|
|
546
|
+
if (parent._shadowRoot !== null && util_1.Guard.isSlotable(node)) {
|
|
547
|
+
ShadowTreeAlgorithm_1.shadowTree_assignASlot(node);
|
|
548
|
+
}
|
|
549
|
+
}
|
|
550
|
+
/**
|
|
551
|
+
* 7.4. If node is a Text node, run the child text content change
|
|
552
|
+
* steps for parent.
|
|
553
|
+
*/
|
|
554
|
+
if (DOMImpl_1.dom.features.steps) {
|
|
555
|
+
if (util_1.Guard.isTextNode(node)) {
|
|
556
|
+
DOMAlgorithm_1.dom_runChildTextContentChangeSteps(parent);
|
|
557
|
+
}
|
|
558
|
+
}
|
|
559
|
+
/**
|
|
560
|
+
* 7.5. If parent's root is a shadow root, and parent is a slot
|
|
561
|
+
* whose assigned nodes is the empty list, then run signal
|
|
562
|
+
* a slot change for parent.
|
|
563
|
+
*/
|
|
564
|
+
if (DOMImpl_1.dom.features.slots) {
|
|
565
|
+
if (util_1.Guard.isShadowRoot(TreeAlgorithm_1.tree_rootNode(parent)) &&
|
|
566
|
+
util_1.Guard.isSlot(parent) && util_2.isEmpty(parent._assignedNodes)) {
|
|
567
|
+
ShadowTreeAlgorithm_1.shadowTree_signalASlotChange(parent);
|
|
568
|
+
}
|
|
569
|
+
}
|
|
570
|
+
/**
|
|
571
|
+
* 7.6. Run assign slotables for a tree with node's root.
|
|
572
|
+
*/
|
|
573
|
+
if (DOMImpl_1.dom.features.slots) {
|
|
574
|
+
ShadowTreeAlgorithm_1.shadowTree_assignSlotablesForATree(TreeAlgorithm_1.tree_rootNode(node));
|
|
575
|
+
}
|
|
576
|
+
/**
|
|
577
|
+
* 7.7. For each shadow-including inclusive descendant
|
|
578
|
+
* inclusiveDescendant of node, in shadow-including tree
|
|
579
|
+
* order:
|
|
580
|
+
* 7.7.1. Run the insertion steps with inclusiveDescendant.
|
|
581
|
+
*/
|
|
582
|
+
if (DOMImpl_1.dom.features.steps) {
|
|
583
|
+
DOMAlgorithm_1.dom_runInsertionSteps(node);
|
|
584
|
+
}
|
|
585
|
+
if (DOMImpl_1.dom.features.customElements) {
|
|
586
|
+
/**
|
|
587
|
+
* 7.7.2. If inclusiveDescendant is connected, then:
|
|
588
|
+
*/
|
|
589
|
+
if (util_1.Guard.isElementNode(node) &&
|
|
590
|
+
ShadowTreeAlgorithm_1.shadowTree_isConnected(node)) {
|
|
591
|
+
if (util_1.Guard.isCustomElementNode(node)) {
|
|
592
|
+
/**
|
|
593
|
+
* 7.7.2.1. If inclusiveDescendant is custom, then enqueue a custom
|
|
594
|
+
* element callback reaction with inclusiveDescendant, callback name
|
|
595
|
+
* "connectedCallback", and an empty argument list.
|
|
596
|
+
*/
|
|
597
|
+
CustomElementAlgorithm_1.customElement_enqueueACustomElementCallbackReaction(node, "connectedCallback", []);
|
|
598
|
+
}
|
|
599
|
+
else {
|
|
600
|
+
/**
|
|
601
|
+
* 7.7.2.2. Otherwise, try to upgrade inclusiveDescendant.
|
|
602
|
+
*/
|
|
603
|
+
CustomElementAlgorithm_1.customElement_tryToUpgrade(node);
|
|
604
|
+
}
|
|
605
|
+
}
|
|
606
|
+
}
|
|
607
|
+
/**
|
|
608
|
+
* 8. If suppress observers flag is unset, then queue a tree mutation record
|
|
609
|
+
* for parent with nodes, « », previousSibling, and child.
|
|
610
|
+
*/
|
|
611
|
+
if (DOMImpl_1.dom.features.mutationObservers) {
|
|
612
|
+
if (!suppressObservers) {
|
|
613
|
+
MutationObserverAlgorithm_1.observer_queueTreeMutationRecord(parent, [node], [], previousSibling, null);
|
|
614
|
+
}
|
|
615
|
+
}
|
|
616
|
+
}
|
|
617
|
+
/**
|
|
618
|
+
* Appends a node to the children of a parent node.
|
|
619
|
+
*
|
|
620
|
+
* @param node - a node
|
|
621
|
+
* @param parent - the parent to receive node
|
|
622
|
+
*/
|
|
623
|
+
function mutation_append(node, parent) {
|
|
624
|
+
/**
|
|
625
|
+
* To append a node to a parent, pre-insert node into parent before null.
|
|
626
|
+
*/
|
|
627
|
+
return mutation_preInsert(node, parent, null);
|
|
628
|
+
}
|
|
629
|
+
exports.mutation_append = mutation_append;
|
|
630
|
+
/**
|
|
631
|
+
* Replaces a node with another node.
|
|
632
|
+
*
|
|
633
|
+
* @param child - child node to remove
|
|
634
|
+
* @param node - node to insert
|
|
635
|
+
* @param parent - parent node to receive node
|
|
636
|
+
*/
|
|
637
|
+
function mutation_replace(child, node, parent) {
|
|
638
|
+
var e_6, _a, e_7, _b, e_8, _c, e_9, _d;
|
|
639
|
+
/**
|
|
640
|
+
* 1. If parent is not a Document, DocumentFragment, or Element node,
|
|
641
|
+
* throw a "HierarchyRequestError" DOMException.
|
|
642
|
+
*/
|
|
643
|
+
if (parent._nodeType !== interfaces_1.NodeType.Document &&
|
|
644
|
+
parent._nodeType !== interfaces_1.NodeType.DocumentFragment &&
|
|
645
|
+
parent._nodeType !== interfaces_1.NodeType.Element)
|
|
646
|
+
throw new DOMException_1.HierarchyRequestError("Only document, document fragment and element nodes can contain child nodes. Parent node is " + parent.nodeName + ".");
|
|
647
|
+
/**
|
|
648
|
+
* 2. If node is a host-including inclusive ancestor of parent, throw a
|
|
649
|
+
* "HierarchyRequestError" DOMException.
|
|
650
|
+
*/
|
|
651
|
+
if (TreeAlgorithm_1.tree_isHostIncludingAncestorOf(parent, node, true))
|
|
652
|
+
throw new DOMException_1.HierarchyRequestError("The node to be inserted cannot be an ancestor of parent node. Node is " + node.nodeName + ", parent node is " + parent.nodeName + ".");
|
|
653
|
+
/**
|
|
654
|
+
* 3. If child’s parent is not parent, then throw a "NotFoundError"
|
|
655
|
+
* DOMException.
|
|
656
|
+
*/
|
|
657
|
+
if (child._parent !== parent)
|
|
658
|
+
throw new DOMException_1.NotFoundError("The reference child node cannot be found under parent node. Child node is " + child.nodeName + ", parent node is " + parent.nodeName + ".");
|
|
659
|
+
/**
|
|
660
|
+
* 4. If node is not a DocumentFragment, DocumentType, Element, Text,
|
|
661
|
+
* ProcessingInstruction, or Comment node, throw a "HierarchyRequestError"
|
|
662
|
+
* DOMException.
|
|
663
|
+
*/
|
|
664
|
+
if (node._nodeType !== interfaces_1.NodeType.DocumentFragment &&
|
|
665
|
+
node._nodeType !== interfaces_1.NodeType.DocumentType &&
|
|
666
|
+
node._nodeType !== interfaces_1.NodeType.Element &&
|
|
667
|
+
node._nodeType !== interfaces_1.NodeType.Text &&
|
|
668
|
+
node._nodeType !== interfaces_1.NodeType.ProcessingInstruction &&
|
|
669
|
+
node._nodeType !== interfaces_1.NodeType.CData &&
|
|
670
|
+
node._nodeType !== interfaces_1.NodeType.Comment)
|
|
671
|
+
throw new DOMException_1.HierarchyRequestError("Only document fragment, document type, element, text, processing instruction, cdata section or comment nodes can be inserted. Node is " + node.nodeName + ".");
|
|
672
|
+
/**
|
|
673
|
+
* 5. If either node is a Text node and parent is a document, or node is a
|
|
674
|
+
* doctype and parent is not a document, throw a "HierarchyRequestError"
|
|
675
|
+
* DOMException.
|
|
676
|
+
*/
|
|
677
|
+
if (node._nodeType === interfaces_1.NodeType.Text &&
|
|
678
|
+
parent._nodeType === interfaces_1.NodeType.Document)
|
|
679
|
+
throw new DOMException_1.HierarchyRequestError("Cannot insert a text node as a child of a document node. Node is " + node.nodeName + ".");
|
|
680
|
+
if (node._nodeType === interfaces_1.NodeType.DocumentType &&
|
|
681
|
+
parent._nodeType !== interfaces_1.NodeType.Document)
|
|
682
|
+
throw new DOMException_1.HierarchyRequestError("A document type node can only be inserted under a document node. Parent node is " + parent.nodeName + ".");
|
|
683
|
+
/**
|
|
684
|
+
* 6. If parent is a document, and any of the statements below, switched on
|
|
685
|
+
* node, are true, throw a "HierarchyRequestError" DOMException.
|
|
686
|
+
* - DocumentFragment node
|
|
687
|
+
* If node has more than one element child or has a Text node child.
|
|
688
|
+
* Otherwise, if node has one element child and either parent has an element
|
|
689
|
+
* child that is not child or a doctype is following child.
|
|
690
|
+
* - element
|
|
691
|
+
* parent has an element child that is not child or a doctype is
|
|
692
|
+
* following child.
|
|
693
|
+
* - doctype
|
|
694
|
+
* parent has a doctype child that is not child, or an element is
|
|
695
|
+
* preceding child.
|
|
696
|
+
*/
|
|
697
|
+
if (parent._nodeType === interfaces_1.NodeType.Document) {
|
|
698
|
+
if (node._nodeType === interfaces_1.NodeType.DocumentFragment) {
|
|
699
|
+
var eleCount = 0;
|
|
700
|
+
try {
|
|
701
|
+
for (var _e = __values(node._children), _f = _e.next(); !_f.done; _f = _e.next()) {
|
|
702
|
+
var childNode = _f.value;
|
|
703
|
+
if (childNode._nodeType === interfaces_1.NodeType.Element)
|
|
704
|
+
eleCount++;
|
|
705
|
+
else if (childNode._nodeType === interfaces_1.NodeType.Text)
|
|
706
|
+
throw new DOMException_1.HierarchyRequestError("Cannot insert text a node as a child of a document node. Node is " + childNode.nodeName + ".");
|
|
707
|
+
}
|
|
708
|
+
}
|
|
709
|
+
catch (e_6_1) { e_6 = { error: e_6_1 }; }
|
|
710
|
+
finally {
|
|
711
|
+
try {
|
|
712
|
+
if (_f && !_f.done && (_a = _e.return)) _a.call(_e);
|
|
713
|
+
}
|
|
714
|
+
finally { if (e_6) throw e_6.error; }
|
|
715
|
+
}
|
|
716
|
+
if (eleCount > 1) {
|
|
717
|
+
throw new DOMException_1.HierarchyRequestError("A document node can only have one document element node. Document fragment to be inserted has " + eleCount + " element nodes.");
|
|
718
|
+
}
|
|
719
|
+
else if (eleCount === 1) {
|
|
720
|
+
try {
|
|
721
|
+
for (var _g = __values(parent._children), _h = _g.next(); !_h.done; _h = _g.next()) {
|
|
722
|
+
var ele = _h.value;
|
|
723
|
+
if (ele._nodeType === interfaces_1.NodeType.Element && ele !== child)
|
|
724
|
+
throw new DOMException_1.HierarchyRequestError("The document node already has a document element node.");
|
|
725
|
+
}
|
|
726
|
+
}
|
|
727
|
+
catch (e_7_1) { e_7 = { error: e_7_1 }; }
|
|
728
|
+
finally {
|
|
729
|
+
try {
|
|
730
|
+
if (_h && !_h.done && (_b = _g.return)) _b.call(_g);
|
|
731
|
+
}
|
|
732
|
+
finally { if (e_7) throw e_7.error; }
|
|
733
|
+
}
|
|
734
|
+
var doctypeChild = child._nextSibling;
|
|
735
|
+
while (doctypeChild) {
|
|
736
|
+
if (doctypeChild._nodeType === interfaces_1.NodeType.DocumentType)
|
|
737
|
+
throw new DOMException_1.HierarchyRequestError("Cannot insert an element node before a document type node.");
|
|
738
|
+
doctypeChild = doctypeChild._nextSibling;
|
|
739
|
+
}
|
|
740
|
+
}
|
|
741
|
+
}
|
|
742
|
+
else if (node._nodeType === interfaces_1.NodeType.Element) {
|
|
743
|
+
try {
|
|
744
|
+
for (var _j = __values(parent._children), _k = _j.next(); !_k.done; _k = _j.next()) {
|
|
745
|
+
var ele = _k.value;
|
|
746
|
+
if (ele._nodeType === interfaces_1.NodeType.Element && ele !== child)
|
|
747
|
+
throw new DOMException_1.HierarchyRequestError("Document already has a document element node. Node is " + node.nodeName + ".");
|
|
748
|
+
}
|
|
749
|
+
}
|
|
750
|
+
catch (e_8_1) { e_8 = { error: e_8_1 }; }
|
|
751
|
+
finally {
|
|
752
|
+
try {
|
|
753
|
+
if (_k && !_k.done && (_c = _j.return)) _c.call(_j);
|
|
754
|
+
}
|
|
755
|
+
finally { if (e_8) throw e_8.error; }
|
|
756
|
+
}
|
|
757
|
+
var doctypeChild = child._nextSibling;
|
|
758
|
+
while (doctypeChild) {
|
|
759
|
+
if (doctypeChild._nodeType === interfaces_1.NodeType.DocumentType)
|
|
760
|
+
throw new DOMException_1.HierarchyRequestError("Cannot insert an element node before a document type node. Node is " + node.nodeName + ".");
|
|
761
|
+
doctypeChild = doctypeChild._nextSibling;
|
|
762
|
+
}
|
|
763
|
+
}
|
|
764
|
+
else if (node._nodeType === interfaces_1.NodeType.DocumentType) {
|
|
765
|
+
try {
|
|
766
|
+
for (var _l = __values(parent._children), _m = _l.next(); !_m.done; _m = _l.next()) {
|
|
767
|
+
var ele = _m.value;
|
|
768
|
+
if (ele._nodeType === interfaces_1.NodeType.DocumentType && ele !== child)
|
|
769
|
+
throw new DOMException_1.HierarchyRequestError("Document already has a document type node. Node is " + node.nodeName + ".");
|
|
770
|
+
}
|
|
771
|
+
}
|
|
772
|
+
catch (e_9_1) { e_9 = { error: e_9_1 }; }
|
|
773
|
+
finally {
|
|
774
|
+
try {
|
|
775
|
+
if (_m && !_m.done && (_d = _l.return)) _d.call(_l);
|
|
776
|
+
}
|
|
777
|
+
finally { if (e_9) throw e_9.error; }
|
|
778
|
+
}
|
|
779
|
+
var elementChild = child._previousSibling;
|
|
780
|
+
while (elementChild) {
|
|
781
|
+
if (elementChild._nodeType === interfaces_1.NodeType.Element)
|
|
782
|
+
throw new DOMException_1.HierarchyRequestError("Cannot insert a document type node before an element node. Node is " + node.nodeName + ".");
|
|
783
|
+
elementChild = elementChild._previousSibling;
|
|
784
|
+
}
|
|
785
|
+
}
|
|
786
|
+
}
|
|
787
|
+
/**
|
|
788
|
+
* 7. Let reference child be child’s next sibling.
|
|
789
|
+
* 8. If reference child is node, set it to node’s next sibling.
|
|
790
|
+
* 8. Let previousSibling be child’s previous sibling.
|
|
791
|
+
*/
|
|
792
|
+
var referenceChild = child._nextSibling;
|
|
793
|
+
if (referenceChild === node)
|
|
794
|
+
referenceChild = node._nextSibling;
|
|
795
|
+
var previousSibling = child._previousSibling;
|
|
796
|
+
/**
|
|
797
|
+
* 10. Adopt node into parent’s node document.
|
|
798
|
+
* 11. Let removedNodes be the empty list.
|
|
799
|
+
*/
|
|
800
|
+
DocumentAlgorithm_1.document_adopt(node, parent._nodeDocument);
|
|
801
|
+
var removedNodes = [];
|
|
802
|
+
/**
|
|
803
|
+
* 12. If child’s parent is not null, then:
|
|
804
|
+
*/
|
|
805
|
+
if (child._parent !== null) {
|
|
806
|
+
/**
|
|
807
|
+
* 12.1. Set removedNodes to [child].
|
|
808
|
+
* 12.2. Remove child from its parent with the suppress observers flag
|
|
809
|
+
* set.
|
|
810
|
+
*/
|
|
811
|
+
removedNodes.push(child);
|
|
812
|
+
mutation_remove(child, child._parent, true);
|
|
813
|
+
}
|
|
814
|
+
/**
|
|
815
|
+
* 13. Let nodes be node’s children if node is a DocumentFragment node;
|
|
816
|
+
* otherwise [node].
|
|
817
|
+
*/
|
|
818
|
+
var nodes = [];
|
|
819
|
+
if (node._nodeType === interfaces_1.NodeType.DocumentFragment) {
|
|
820
|
+
nodes = Array.from(node._children);
|
|
821
|
+
}
|
|
822
|
+
else {
|
|
823
|
+
nodes.push(node);
|
|
824
|
+
}
|
|
825
|
+
/**
|
|
826
|
+
* 14. Insert node into parent before reference child with the suppress
|
|
827
|
+
* observers flag set.
|
|
828
|
+
*/
|
|
829
|
+
mutation_insert(node, parent, referenceChild, true);
|
|
830
|
+
/**
|
|
831
|
+
* 15. Queue a tree mutation record for parent with nodes, removedNodes,
|
|
832
|
+
* previousSibling, and reference child.
|
|
833
|
+
*/
|
|
834
|
+
if (DOMImpl_1.dom.features.mutationObservers) {
|
|
835
|
+
MutationObserverAlgorithm_1.observer_queueTreeMutationRecord(parent, nodes, removedNodes, previousSibling, referenceChild);
|
|
836
|
+
}
|
|
837
|
+
/**
|
|
838
|
+
* 16. Return child.
|
|
839
|
+
*/
|
|
840
|
+
return child;
|
|
841
|
+
}
|
|
842
|
+
exports.mutation_replace = mutation_replace;
|
|
843
|
+
/**
|
|
844
|
+
* Replaces all nodes of a parent with the given node.
|
|
845
|
+
*
|
|
846
|
+
* @param node - node to insert
|
|
847
|
+
* @param parent - parent node to receive node
|
|
848
|
+
*/
|
|
849
|
+
function mutation_replaceAll(node, parent) {
|
|
850
|
+
var e_10, _a;
|
|
851
|
+
/**
|
|
852
|
+
* 1. If node is not null, adopt node into parent’s node document.
|
|
853
|
+
*/
|
|
854
|
+
if (node !== null) {
|
|
855
|
+
DocumentAlgorithm_1.document_adopt(node, parent._nodeDocument);
|
|
856
|
+
}
|
|
857
|
+
/**
|
|
858
|
+
* 2. Let removedNodes be parent’s children.
|
|
859
|
+
*/
|
|
860
|
+
var removedNodes = Array.from(parent._children);
|
|
861
|
+
/**
|
|
862
|
+
* 3. Let addedNodes be the empty list.
|
|
863
|
+
* 4. If node is DocumentFragment node, then set addedNodes to node’s
|
|
864
|
+
* children.
|
|
865
|
+
* 5. Otherwise, if node is non-null, set addedNodes to [node].
|
|
866
|
+
*/
|
|
867
|
+
var addedNodes = [];
|
|
868
|
+
if (node && node._nodeType === interfaces_1.NodeType.DocumentFragment) {
|
|
869
|
+
addedNodes = Array.from(node._children);
|
|
870
|
+
}
|
|
871
|
+
else if (node !== null) {
|
|
872
|
+
addedNodes.push(node);
|
|
873
|
+
}
|
|
874
|
+
try {
|
|
875
|
+
/**
|
|
876
|
+
* 6. Remove all parent’s children, in tree order, with the suppress
|
|
877
|
+
* observers flag set.
|
|
878
|
+
*/
|
|
879
|
+
for (var removedNodes_1 = __values(removedNodes), removedNodes_1_1 = removedNodes_1.next(); !removedNodes_1_1.done; removedNodes_1_1 = removedNodes_1.next()) {
|
|
880
|
+
var childNode = removedNodes_1_1.value;
|
|
881
|
+
mutation_remove(childNode, parent, true);
|
|
882
|
+
}
|
|
883
|
+
}
|
|
884
|
+
catch (e_10_1) { e_10 = { error: e_10_1 }; }
|
|
885
|
+
finally {
|
|
886
|
+
try {
|
|
887
|
+
if (removedNodes_1_1 && !removedNodes_1_1.done && (_a = removedNodes_1.return)) _a.call(removedNodes_1);
|
|
888
|
+
}
|
|
889
|
+
finally { if (e_10) throw e_10.error; }
|
|
890
|
+
}
|
|
891
|
+
/**
|
|
892
|
+
* 7. If node is not null, then insert node into parent before null with the
|
|
893
|
+
* suppress observers flag set.
|
|
894
|
+
*/
|
|
895
|
+
if (node !== null) {
|
|
896
|
+
mutation_insert(node, parent, null, true);
|
|
897
|
+
}
|
|
898
|
+
/**
|
|
899
|
+
* 8. Queue a tree mutation record for parent with addedNodes, removedNodes,
|
|
900
|
+
* null, and null.
|
|
901
|
+
*/
|
|
902
|
+
if (DOMImpl_1.dom.features.mutationObservers) {
|
|
903
|
+
MutationObserverAlgorithm_1.observer_queueTreeMutationRecord(parent, addedNodes, removedNodes, null, null);
|
|
904
|
+
}
|
|
905
|
+
}
|
|
906
|
+
exports.mutation_replaceAll = mutation_replaceAll;
|
|
907
|
+
/**
|
|
908
|
+
* Ensures pre-removal validity of a child node from a parent, then
|
|
909
|
+
* removes it.
|
|
910
|
+
*
|
|
911
|
+
* @param child - child node to remove
|
|
912
|
+
* @param parent - parent node
|
|
913
|
+
*/
|
|
914
|
+
function mutation_preRemove(child, parent) {
|
|
915
|
+
/**
|
|
916
|
+
* 1. If child’s parent is not parent, then throw a "NotFoundError"
|
|
917
|
+
* DOMException.
|
|
918
|
+
* 2. Remove child from parent.
|
|
919
|
+
* 3. Return child.
|
|
920
|
+
*/
|
|
921
|
+
if (child._parent !== parent)
|
|
922
|
+
throw new DOMException_1.NotFoundError("The child node cannot be found under parent node. Child node is " + child.nodeName + ", parent node is " + parent.nodeName + ".");
|
|
923
|
+
mutation_remove(child, parent);
|
|
924
|
+
return child;
|
|
925
|
+
}
|
|
926
|
+
exports.mutation_preRemove = mutation_preRemove;
|
|
927
|
+
/**
|
|
928
|
+
* Removes a child node from its parent.
|
|
929
|
+
*
|
|
930
|
+
* @param node - node to remove
|
|
931
|
+
* @param parent - parent node
|
|
932
|
+
* @param suppressObservers - whether to notify observers
|
|
933
|
+
*/
|
|
934
|
+
function mutation_remove(node, parent, suppressObservers) {
|
|
935
|
+
var e_11, _a, e_12, _b, e_13, _c, e_14, _d;
|
|
936
|
+
if (DOMImpl_1.dom.rangeList.size !== 0) {
|
|
937
|
+
/**
|
|
938
|
+
* 1. Let index be node’s index.
|
|
939
|
+
*/
|
|
940
|
+
var index = TreeAlgorithm_1.tree_index(node);
|
|
941
|
+
try {
|
|
942
|
+
/**
|
|
943
|
+
* 2. For each live range whose start node is an inclusive descendant of
|
|
944
|
+
* node, set its start to (parent, index).
|
|
945
|
+
* 3. For each live range whose end node is an inclusive descendant of
|
|
946
|
+
* node, set its end to (parent, index).
|
|
947
|
+
*/
|
|
948
|
+
for (var _e = __values(DOMImpl_1.dom.rangeList), _f = _e.next(); !_f.done; _f = _e.next()) {
|
|
949
|
+
var range = _f.value;
|
|
950
|
+
if (TreeAlgorithm_1.tree_isDescendantOf(node, range._start[0], true)) {
|
|
951
|
+
range._start = [parent, index];
|
|
952
|
+
}
|
|
953
|
+
if (TreeAlgorithm_1.tree_isDescendantOf(node, range._end[0], true)) {
|
|
954
|
+
range._end = [parent, index];
|
|
955
|
+
}
|
|
956
|
+
if (range._start[0] === parent && range._start[1] > index) {
|
|
957
|
+
range._start[1]--;
|
|
958
|
+
}
|
|
959
|
+
if (range._end[0] === parent && range._end[1] > index) {
|
|
960
|
+
range._end[1]--;
|
|
961
|
+
}
|
|
962
|
+
}
|
|
963
|
+
}
|
|
964
|
+
catch (e_11_1) { e_11 = { error: e_11_1 }; }
|
|
965
|
+
finally {
|
|
966
|
+
try {
|
|
967
|
+
if (_f && !_f.done && (_a = _e.return)) _a.call(_e);
|
|
968
|
+
}
|
|
969
|
+
finally { if (e_11) throw e_11.error; }
|
|
970
|
+
}
|
|
971
|
+
try {
|
|
972
|
+
/**
|
|
973
|
+
* 4. For each live range whose start node is parent and start offset is
|
|
974
|
+
* greater than index, decrease its start offset by 1.
|
|
975
|
+
* 5. For each live range whose end node is parent and end offset is greater
|
|
976
|
+
* than index, decrease its end offset by 1.
|
|
977
|
+
*/
|
|
978
|
+
for (var _g = __values(DOMImpl_1.dom.rangeList), _h = _g.next(); !_h.done; _h = _g.next()) {
|
|
979
|
+
var range = _h.value;
|
|
980
|
+
if (range._start[0] === parent && range._start[1] > index) {
|
|
981
|
+
range._start[1] -= 1;
|
|
982
|
+
}
|
|
983
|
+
if (range._end[0] === parent && range._end[1] > index) {
|
|
984
|
+
range._end[1] -= 1;
|
|
985
|
+
}
|
|
986
|
+
}
|
|
987
|
+
}
|
|
988
|
+
catch (e_12_1) { e_12 = { error: e_12_1 }; }
|
|
989
|
+
finally {
|
|
990
|
+
try {
|
|
991
|
+
if (_h && !_h.done && (_b = _g.return)) _b.call(_g);
|
|
992
|
+
}
|
|
993
|
+
finally { if (e_12) throw e_12.error; }
|
|
994
|
+
}
|
|
995
|
+
}
|
|
996
|
+
/**
|
|
997
|
+
* 6. For each NodeIterator object iterator whose root’s node document is
|
|
998
|
+
* node’s node document, run the NodeIterator pre-removing steps given node
|
|
999
|
+
* and iterator.
|
|
1000
|
+
*/
|
|
1001
|
+
if (DOMImpl_1.dom.features.steps) {
|
|
1002
|
+
try {
|
|
1003
|
+
for (var _j = __values(NodeIteratorAlgorithm_1.nodeIterator_iteratorList()), _k = _j.next(); !_k.done; _k = _j.next()) {
|
|
1004
|
+
var iterator = _k.value;
|
|
1005
|
+
if (iterator._root._nodeDocument === node._nodeDocument) {
|
|
1006
|
+
DOMAlgorithm_1.dom_runNodeIteratorPreRemovingSteps(iterator, node);
|
|
1007
|
+
}
|
|
1008
|
+
}
|
|
1009
|
+
}
|
|
1010
|
+
catch (e_13_1) { e_13 = { error: e_13_1 }; }
|
|
1011
|
+
finally {
|
|
1012
|
+
try {
|
|
1013
|
+
if (_k && !_k.done && (_c = _j.return)) _c.call(_j);
|
|
1014
|
+
}
|
|
1015
|
+
finally { if (e_13) throw e_13.error; }
|
|
1016
|
+
}
|
|
1017
|
+
}
|
|
1018
|
+
/**
|
|
1019
|
+
* 7. Let oldPreviousSibling be node’s previous sibling.
|
|
1020
|
+
* 8. Let oldNextSibling be node’s next sibling.
|
|
1021
|
+
*/
|
|
1022
|
+
var oldPreviousSibling = node._previousSibling;
|
|
1023
|
+
var oldNextSibling = node._nextSibling;
|
|
1024
|
+
// set document element node
|
|
1025
|
+
if (util_1.Guard.isDocumentNode(parent) && util_1.Guard.isElementNode(node)) {
|
|
1026
|
+
parent._documentElement = null;
|
|
1027
|
+
}
|
|
1028
|
+
/**
|
|
1029
|
+
* 9. Remove node from its parent’s children.
|
|
1030
|
+
*/
|
|
1031
|
+
node._parent = null;
|
|
1032
|
+
parent._children.delete(node);
|
|
1033
|
+
// assign siblings and children for quick lookups
|
|
1034
|
+
var prev = node._previousSibling;
|
|
1035
|
+
var next = node._nextSibling;
|
|
1036
|
+
node._previousSibling = null;
|
|
1037
|
+
node._nextSibling = null;
|
|
1038
|
+
if (prev)
|
|
1039
|
+
prev._nextSibling = next;
|
|
1040
|
+
if (next)
|
|
1041
|
+
next._previousSibling = prev;
|
|
1042
|
+
if (!prev)
|
|
1043
|
+
parent._firstChild = next;
|
|
1044
|
+
if (!next)
|
|
1045
|
+
parent._lastChild = prev;
|
|
1046
|
+
/**
|
|
1047
|
+
* 10. If node is assigned, then run assign slotables for node’s assigned
|
|
1048
|
+
* slot.
|
|
1049
|
+
*/
|
|
1050
|
+
if (DOMImpl_1.dom.features.slots) {
|
|
1051
|
+
if (util_1.Guard.isSlotable(node) && node._assignedSlot !== null && ShadowTreeAlgorithm_1.shadowTree_isAssigned(node)) {
|
|
1052
|
+
ShadowTreeAlgorithm_1.shadowTree_assignSlotables(node._assignedSlot);
|
|
1053
|
+
}
|
|
1054
|
+
}
|
|
1055
|
+
/**
|
|
1056
|
+
* 11. If parent’s root is a shadow root, and parent is a slot whose
|
|
1057
|
+
* assigned nodes is the empty list, then run signal a slot change for
|
|
1058
|
+
* parent.
|
|
1059
|
+
*/
|
|
1060
|
+
if (DOMImpl_1.dom.features.slots) {
|
|
1061
|
+
if (util_1.Guard.isShadowRoot(TreeAlgorithm_1.tree_rootNode(parent)) &&
|
|
1062
|
+
util_1.Guard.isSlot(parent) && util_2.isEmpty(parent._assignedNodes)) {
|
|
1063
|
+
ShadowTreeAlgorithm_1.shadowTree_signalASlotChange(parent);
|
|
1064
|
+
}
|
|
1065
|
+
}
|
|
1066
|
+
/**
|
|
1067
|
+
* 12. If node has an inclusive descendant that is a slot, then:
|
|
1068
|
+
* 12.1. Run assign slotables for a tree with parent's root.
|
|
1069
|
+
* 12.2. Run assign slotables for a tree with node.
|
|
1070
|
+
*/
|
|
1071
|
+
if (DOMImpl_1.dom.features.slots) {
|
|
1072
|
+
var descendant_1 = TreeAlgorithm_1.tree_getFirstDescendantNode(node, true, false, function (e) { return util_1.Guard.isSlot(e); });
|
|
1073
|
+
if (descendant_1 !== null) {
|
|
1074
|
+
ShadowTreeAlgorithm_1.shadowTree_assignSlotablesForATree(TreeAlgorithm_1.tree_rootNode(parent));
|
|
1075
|
+
ShadowTreeAlgorithm_1.shadowTree_assignSlotablesForATree(node);
|
|
1076
|
+
}
|
|
1077
|
+
}
|
|
1078
|
+
/**
|
|
1079
|
+
* 13. Run the removing steps with node and parent.
|
|
1080
|
+
*/
|
|
1081
|
+
if (DOMImpl_1.dom.features.steps) {
|
|
1082
|
+
DOMAlgorithm_1.dom_runRemovingSteps(node, parent);
|
|
1083
|
+
}
|
|
1084
|
+
/**
|
|
1085
|
+
* 14. If node is custom, then enqueue a custom element callback
|
|
1086
|
+
* reaction with node, callback name "disconnectedCallback",
|
|
1087
|
+
* and an empty argument list.
|
|
1088
|
+
*/
|
|
1089
|
+
if (DOMImpl_1.dom.features.customElements) {
|
|
1090
|
+
if (util_1.Guard.isCustomElementNode(node)) {
|
|
1091
|
+
CustomElementAlgorithm_1.customElement_enqueueACustomElementCallbackReaction(node, "disconnectedCallback", []);
|
|
1092
|
+
}
|
|
1093
|
+
}
|
|
1094
|
+
/**
|
|
1095
|
+
* 15. For each shadow-including descendant descendant of node,
|
|
1096
|
+
* in shadow-including tree order, then:
|
|
1097
|
+
*/
|
|
1098
|
+
var descendant = TreeAlgorithm_1.tree_getFirstDescendantNode(node, false, true);
|
|
1099
|
+
while (descendant !== null) {
|
|
1100
|
+
/**
|
|
1101
|
+
* 15.1. Run the removing steps with descendant.
|
|
1102
|
+
*/
|
|
1103
|
+
if (DOMImpl_1.dom.features.steps) {
|
|
1104
|
+
DOMAlgorithm_1.dom_runRemovingSteps(descendant, node);
|
|
1105
|
+
}
|
|
1106
|
+
/**
|
|
1107
|
+
* 15.2. If descendant is custom, then enqueue a custom element
|
|
1108
|
+
* callback reaction with descendant, callback name
|
|
1109
|
+
* "disconnectedCallback", and an empty argument list.
|
|
1110
|
+
*/
|
|
1111
|
+
if (DOMImpl_1.dom.features.customElements) {
|
|
1112
|
+
if (util_1.Guard.isCustomElementNode(descendant)) {
|
|
1113
|
+
CustomElementAlgorithm_1.customElement_enqueueACustomElementCallbackReaction(descendant, "disconnectedCallback", []);
|
|
1114
|
+
}
|
|
1115
|
+
}
|
|
1116
|
+
descendant = TreeAlgorithm_1.tree_getNextDescendantNode(node, descendant, false, true);
|
|
1117
|
+
}
|
|
1118
|
+
/**
|
|
1119
|
+
* 16. For each inclusive ancestor inclusiveAncestor of parent, and
|
|
1120
|
+
* then for each registered of inclusiveAncestor's registered
|
|
1121
|
+
* observer list, if registered's options's subtree is true,
|
|
1122
|
+
* then append a new transient registered observer whose
|
|
1123
|
+
* observer is registered's observer, options is registered's
|
|
1124
|
+
* options, and source is registered to node's registered
|
|
1125
|
+
* observer list.
|
|
1126
|
+
*/
|
|
1127
|
+
if (DOMImpl_1.dom.features.mutationObservers) {
|
|
1128
|
+
var inclusiveAncestor = TreeAlgorithm_1.tree_getFirstAncestorNode(parent, true);
|
|
1129
|
+
while (inclusiveAncestor !== null) {
|
|
1130
|
+
try {
|
|
1131
|
+
for (var _l = (e_14 = void 0, __values(inclusiveAncestor._registeredObserverList)), _m = _l.next(); !_m.done; _m = _l.next()) {
|
|
1132
|
+
var registered = _m.value;
|
|
1133
|
+
if (registered.options.subtree) {
|
|
1134
|
+
node._registeredObserverList.push({
|
|
1135
|
+
observer: registered.observer,
|
|
1136
|
+
options: registered.options,
|
|
1137
|
+
source: registered
|
|
1138
|
+
});
|
|
1139
|
+
}
|
|
1140
|
+
}
|
|
1141
|
+
}
|
|
1142
|
+
catch (e_14_1) { e_14 = { error: e_14_1 }; }
|
|
1143
|
+
finally {
|
|
1144
|
+
try {
|
|
1145
|
+
if (_m && !_m.done && (_d = _l.return)) _d.call(_l);
|
|
1146
|
+
}
|
|
1147
|
+
finally { if (e_14) throw e_14.error; }
|
|
1148
|
+
}
|
|
1149
|
+
inclusiveAncestor = TreeAlgorithm_1.tree_getNextAncestorNode(parent, inclusiveAncestor, true);
|
|
1150
|
+
}
|
|
1151
|
+
}
|
|
1152
|
+
/**
|
|
1153
|
+
* 17. If suppress observers flag is unset, then queue a tree mutation
|
|
1154
|
+
* record for parent with « », « node », oldPreviousSibling, and
|
|
1155
|
+
* oldNextSibling.
|
|
1156
|
+
*/
|
|
1157
|
+
if (DOMImpl_1.dom.features.mutationObservers) {
|
|
1158
|
+
if (!suppressObservers) {
|
|
1159
|
+
MutationObserverAlgorithm_1.observer_queueTreeMutationRecord(parent, [], [node], oldPreviousSibling, oldNextSibling);
|
|
1160
|
+
}
|
|
1161
|
+
}
|
|
1162
|
+
/**
|
|
1163
|
+
* 18. If node is a Text node, then run the child text content change steps
|
|
1164
|
+
* for parent.
|
|
1165
|
+
*/
|
|
1166
|
+
if (DOMImpl_1.dom.features.steps) {
|
|
1167
|
+
if (util_1.Guard.isTextNode(node)) {
|
|
1168
|
+
DOMAlgorithm_1.dom_runChildTextContentChangeSteps(parent);
|
|
1169
|
+
}
|
|
1170
|
+
}
|
|
1171
|
+
}
|
|
1172
|
+
exports.mutation_remove = mutation_remove;
|
|
1173
|
+
//# sourceMappingURL=MutationAlgorithm.js.map
|